@univerjs-pro/collaboration-client-ui 0.9.2-nightly.202507181608 → 0.9.3-nightly.202507250750
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/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/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/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/types/index.d.ts +0 -2
- 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/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 +33 -17
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x28a245=_0x1afd;(function(_0x22c7a7,_0x301750){const _0x1e5b0b=_0x1afd,_0x52c467=_0x22c7a7();while(!![]){try{const _0x2eef69=parseInt(_0x1e5b0b(0x86))/0x1+-parseInt(_0x1e5b0b(0x88))/0x2+-parseInt(_0x1e5b0b(0x84))/0x3*(-parseInt(_0x1e5b0b(0x83))/0x4)+parseInt(_0x1e5b0b(0x7d))/0x5*(-parseInt(_0x1e5b0b(0x89))/0x6)+-parseInt(_0x1e5b0b(0x80))/0x7+parseInt(_0x1e5b0b(0x7c))/0x8+-parseInt(_0x1e5b0b(0x7b))/0x9*(parseInt(_0x1e5b0b(0x82))/0xa);if(_0x2eef69===_0x301750)break;else _0x52c467['push'](_0x52c467['shift']());}catch(_0x55b0cb){_0x52c467['push'](_0x52c467['shift']());}}}(_0x1340,0x3e537));const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');function _0x1afd(_0x2b8d99,_0x40f283){const _0x1340f7=_0x1340();return _0x1afd=function(_0x1afd85,_0x5df442){_0x1afd85=_0x1afd85-0x7b;let _0x2dcfc3=_0x1340f7[_0x1afd85];return _0x2dcfc3;},_0x1afd(_0x2b8d99,_0x40f283);}class c extends e['FUniver']{[_0x28a245(0x7e)](_0x338824,_0x1fc9ed,..._0x416884){const _0xb98ed0=_0x28a245;return this[_0xb98ed0(0x81)][_0xb98ed0(0x87)](t[_0xb98ed0(0x85)])[_0xb98ed0(0x7e)](_0x338824,_0x1fc9ed,{},..._0x416884);}}e['FUniver'][_0x28a245(0x7f)](c);function _0x1340(){const _0x3f178a=['_injector','110wSTSwU','2029556qBXFSy','3KHIJts','RemoteUniscriptService','324779uDpuJv','get','121890CcrtIL','6iNULkv','274977jWeEps','3340176urCZKb','1962960TvjPHT','runOnServer','extend','1433481vOUQRz'];_0x1340=function(){return _0x3f178a;};return _0x1340();}
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0xb1f837=_0x48f4;(function(_0x3608dd,_0x237221){const _0x1aa5ae=_0x48f4,_0x37151e=_0x3608dd();while(!![]){try{const _0x5c5bb1=parseInt(_0x1aa5ae(0x12f))/0x1*(-parseInt(_0x1aa5ae(0x116))/0x2)+-parseInt(_0x1aa5ae(0x167))/0x3*(parseInt(_0x1aa5ae(0xbf))/0x4)+-parseInt(_0x1aa5ae(0x1a9))/0x5+parseInt(_0x1aa5ae(0x1ef))/0x6*(parseInt(_0x1aa5ae(0x17a))/0x7)+-parseInt(_0x1aa5ae(0x21a))/0x8+-parseInt(_0x1aa5ae(0xab))/0x9+parseInt(_0x1aa5ae(0x2a1))/0xa;if(_0x5c5bb1===_0x237221)break;else _0x37151e['push'](_0x37151e['shift']());}catch(_0x54b833){_0x37151e['push'](_0x37151e['shift']());}}}(_0xd3b9,0xa7d44));var Ve=Object['defineProperty'],Xe=(_0x38d7fa,_0x3109be,_0x591fbb)=>_0x3109be in _0x38d7fa?Ve(_0x38d7fa,_0x3109be,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x591fbb}):_0x38d7fa[_0x3109be]=_0x591fbb,h=(_0x71385a,_0x38f520,_0x285afd)=>Xe(_0x71385a,typeof _0x38f520!='symbol'?_0x38f520+'':_0x38f520,_0x285afd);Object[_0xb1f837(0x1ca)](exports,Symbol[_0xb1f837(0x202)],{'value':_0xb1f837(0x139)});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),G=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),d=require('rxjs'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),be=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),$=require('rxjs/operators'),X=require('@univerjs/sheets-ui'),P=require('react/jsx-runtime'),O=require('@univerjs/ui'),D=require('@univerjs/design'),M=require('react'),Ke=require('@univerjs/rpc');var qe=Object[_0xb1f837(0x19a)],ze=(_0x34a293,_0x223e71,_0x469792,_0x37e7e9)=>{const _0x3379e3=_0xb1f837;for(var _0x1f939b=_0x37e7e9>0x1?void 0x0:_0x37e7e9?qe(_0x223e71,_0x469792):_0x223e71,_0x250244=_0x34a293[_0x3379e3(0x257)]-0x1,_0x4f7c6a;_0x250244>=0x0;_0x250244--)(_0x4f7c6a=_0x34a293[_0x250244])&&(_0x1f939b=_0x4f7c6a(_0x1f939b)||_0x1f939b);return _0x1f939b;},Oe=(_0x243767,_0x5bb6ca)=>(_0x4235f7,_0x9fbd00)=>_0x5bb6ca(_0x4235f7,_0x9fbd00,_0x243767);let de=class extends a[_0xb1f837(0x292)]{constructor(_0x4e527f,_0x2b5b91){const _0x320d83=_0xb1f837;super(),this[_0x320d83(0xa3)]=_0x4e527f,this['_imageIoService']=_0x2b5b91,this['_init']();}[_0xb1f837(0x26a)](){const _0xcb9d10=_0xb1f837,_0x498701=this;this['disposeWithMe'](this[_0xcb9d10(0xa3)][_0xcb9d10(0x101)]({'onBeforePasteImage':async _0x2243e7=>{const _0x28120e=_0xcb9d10,_0x22b179=await _0x498701[_0x28120e(0x2d0)]['saveImage'](_0x2243e7);return _0x22b179?{'source':_0x22b179[_0x28120e(0x28d)],'imageSourceType':_0x22b179[_0x28120e(0x196)]}:null;}}));}};de=ze([Oe(0x0,E['IDocClipboardService']),Oe(0x1,Ge[_0xb1f837(0x200)])],de);const Te=['purple.300',_0xb1f837(0x293),_0xb1f837(0x1bb),_0xb1f837(0xec),_0xb1f837(0x136),_0xb1f837(0x198)];class me extends a['Disposable']{constructor(){const _0x1c8dd9=_0xb1f837;super(...arguments),h(this,_0x1c8dd9(0x26c),new Map()),h(this,_0x1c8dd9(0x23a),0x0);}['assignAColorForMemberID'](_0x1b9bd4){const _0x1b7046=_0xb1f837;if(this[_0x1b7046(0x26c)][_0x1b7046(0x1ea)](_0x1b9bd4))return this[_0x1b7046(0x26c)][_0x1b7046(0xd1)](_0x1b9bd4);const _0x14d5f6=Te[this['_colorIndex']];return this[_0x1b7046(0x23a)]=(this[_0x1b7046(0x23a)]+0x1)%Te[_0x1b7046(0x257)],this['_assignedColors'][_0x1b7046(0x134)](_0x1b9bd4,_0x14d5f6),_0x14d5f6;}}function Pe(_0x17bc09){const _0x33c1e7=_0xb1f837;let _0x4a9685='';for(const _0x41ef4c of _0x17bc09){const {startOffset:_0x33f084,endOffset:_0x40d7f9,isActive:_0x21a022,rangeType:_0xff6ce3,segmentId:_0x5c8a23,segmentPage:_0x51d7ca}=_0x41ef4c;_0x4a9685[_0x33c1e7(0x257)]&&(_0x4a9685+=','),_0x4a9685+=_0x33f084+':'+_0x40d7f9+':'+(_0x21a022?'1':'0')+':'+_0xff6ce3+':'+_0x5c8a23+':'+_0x51d7ca;}return _0x4a9685;}function Je(_0x57bb20){const _0x4c0aaf=_0xb1f837,_0x216439=_0x57bb20['split'](','),_0x383981=[];for(const _0x5a7c32 of _0x216439){const [_0x43a511,_0x4d7745,_0x1990a2,_0x239ce9,_0x19c508,_0x562dcd]=_0x5a7c32['split'](':');_0x383981[_0x4c0aaf(0xf9)]({'startOffset':Number(_0x43a511),'endOffset':Number(_0x4d7745),'collapsed':_0x43a511===_0x4d7745,'isActive':_0x1990a2==='1','rangeType':_0x239ce9===a[_0x4c0aaf(0xe3)][_0x4c0aaf(0x183)]?a[_0x4c0aaf(0xe3)][_0x4c0aaf(0x183)]:a[_0x4c0aaf(0xe3)][_0x4c0aaf(0x216)],'segmentId':typeof _0x19c508==_0x4c0aaf(0x73)?String(_0x19c508):'','segmentPage':Number(_0x562dcd!=null?_0x562dcd:-0x1)});}return _0x383981[_0x4c0aaf(0x1dd)](_0x3055cb=>_0x3055cb[_0x4c0aaf(0x204)])||(_0x383981[0x0][_0x4c0aaf(0x204)]=!0x0),_0x383981;}function _0xd3b9(){const _0x380b9f=['ILogService','_initDependencies','getTypeOfUnitAdded$','INVALID_INVITE_CODE','CONNECTOR_DATA_TOO_LARGE','_syncEditingCollabCursorService','_clearOtherTimers','onMouseMove','InsertRowCommandId','_init','_initEvent','_assignedColors','handleInsertRangeMoveRight','Unknown\x20user','key','_collabSessionService','createInstance','SetWorksheetActivateCommand','forwardRef','_docSkeleton','_commandService','history','_startDocCollabCursor','_urlService','dispose$','PY_RUNTIME_SCRIPT_ERROR','DeleteRangeMoveUpCommandId','IMessageService','post','SUBMIT_CHANGESET_TIMEOUT','white','MemberService','MUTATION','0\x200\x2016\x2016','data','ALREADY_EXISTS','DocSelectionManagerService','setItem','concat','sheetId','assign','location','_drawTextRange','addObjects','source','drawWith','pipe','findNodePositionByCharIndex','add','RxDisposable','jiqing.500','CollaborationSocketService','getLocalCacheKey','_refRangeService','ticket','_startSheetCollabCursor','UnitStatus','UNIVER_DOC','_themeService','_initStatusListener','_anchor','touchDependencies','registerBeforeClose','YUUMI_URL_COL_OUT_OF_RANGE','37488590fiqXLr','UniverIcon','tag','selections','_draw','Workbook','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','newValue','_scheduleClearOtherTimer','toDisposable','_updateURLWithCurrentState','stringify','map','_drawAnchor','Disposable','SNAPSHOT_HAS_BEEN_REMOVED','CollaborationStatusDisplay','1em','bottom','LICENSE_MAX_UNITS_EXCEEDED','measureText','replace','extend','transformStateCache','ACTIVE_UNIT_EVENT_CHANNEL','collabCursorState$','_name','switchMap','_refreshCollabCursors','SetSelectionsOperation','href','SOCKET_FAILED','_collabCursorController','DataLoaderService','getCollabCursors$','YUUMI_CONNECTOR_URL_NOT_FOUND','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','contains','_docStateChangeManagerService','off-line-icon_clip0_910_343','indexOf','getCoordByCell','debounceTime','JOIN_ROOM_FAILED','getColor','Tools','height','_imageIoService','YUUMI_ASYNCIO_CANCELLED','NOT_FOUND','onStarting','saveTaskMap','_unitOnClients','NodePositionConvertToRectRange','INVITE_CODE_ALREADY_BOUND','fillStyle','from','getUniverSheetInstance','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','onPointerLeave$','backgroundColor','Subject','color','executeCommand','transformMutation','isTransformMutationsWithChangesetSuccess','APPLY_PERMISSION_DENIED','_saveCache','sessionTicket','Error','LOCAL_CACHE_INTERVAL','_scene','handleIRemoveRow','_localStorageService','rgba(255,\x20255,\x20255,\x200.01)','clearInterval','RemoteUniscriptService','useDependency','send','_unitStatus','selection','row','collab-client.tooltip.reconnect','prototype','string','pushState','translate(.97)','_univerInstanceService','getUndoRedoMutationParamsCache','unsubscribe','permission.title','DocSkeletonManagerService','_session','function','debug','cursorInfo$','registerRenderModule','WebBrowserSingleActiveUnitService','_render','OffLineIcon','_doCreateSocket','INTERNAL_ERROR','_range','_collaborationController','ColorKit','COLORS','YUUMI_NO_CUBOID_FOR_QUESTION','LICENSE_IMPORT_SIZE_EXCEEDED','_anchorDot','dispose','startsWith','getMember','width','collab-text-range-','_cachedData','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','hide','skeleton','_hover','_removeCollabCursors','arc','enableLocalCache','TEXT_RANGE_LAYER_INDEX','subscribeEvent','isArray','_hideTimer','_toggleOnline','_toggleOffline','toRgbString','subunit','getViewport','getTypeOfUnitDisposed$','_docClipboardService','icon','_localeService','getActiveSheet','none','/run/','hasOwnProperty','m1Prime','1835874ZvbYPw','OnLineIcon','path','setActiveRange','getMergeData','BehaviorSubject','propertyIsEnumerable','Rect','defIds','CollaborationSessionService','_updateLocalCursor','CollaborationController','getRelativeToViewportCoord','_send','handleDeleteRangeMoveUp','max','SOCKET_FAILED_RETRY','mutations','uni.network.url-service','BrowserCollaborationSocketService','64024cIrYTU','_dataLoaderService','defs','flatMap','transformSelections','Vector2','_createSocketURL','colorChannel1','_cursors','handleIRemoveCol','[CollaborationDataLoaderController]','debounce','Plugin','fillText','SheetCollabCursorShape','_docTransformStateCacheService','_removeClearOtherTimer','fill','get','isEditing','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','getUnitId','_selfUnitIDs','disposeWithMe','runId','Failed','NO_OTHER_CLIENTS_EDITING','loadUnit','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','className','NOT_COLLAB','INotificationService','next','asObservable','replaceState','CollaborationUIEventService','DOC_RANGE_TYPE','transformRemoteChangeset','_getScale','YUUMI_ALL_TABLES_IS_INVALID','INVALID_ARGUMENT','setParam','_online','transformMutationsWithChangeset','all','red.300','_labelPosition','url(#on-line-icon_clip0_910_349)','range','call','_uiPartsService','ILocalCacheService','_logService','DeleteRangeMoveLeftCommandId','current','LOGIN_FAILED','collabStatus.notCollab','useCallback','push','requireSession','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getParam','_docSyncEditingCollabCursorService','DependentOn','params','getConfig','addClipboardHook','with','application/json','_id','ILocalStorageService','disableLocalCache','FETCH_MISS','getMemberID','getCollabEntity$','createElement','_scheduleSaving','doc.mutation.rich-text-editing','_getMergeRange','[RemoteUniscriptService]:\x20no\x20focused\x20unit','CHANGESET_REVISION_CONFILICT','createSocket','jsx','startRow','collabStatus.synced','min','YUUMI_TABLE_NOT_FOUND_IN_UNIT','2522426ooBlXZ','transformIMECache','_renderManagerService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','LICENSE_DISTRO_REJECTED','_context','distinctUntilChanged','entries','_notificationService','UNIVER_SHEET','collabStatus.syncing','hovered','_getSessionTicket','DisposableCollection','searchParams','_saveTaskMap','ranges','_getSheetObject','collaboration.closeRoom','SYNCED','_configService','DocStateChangeManagerService','reconnect','undoState','getUnitStatus$','1GDwDeE','APPLY_DUPLICATED','_disabled','ENSURE_SNAPSHOT_EXECUTION','MessageType','set','replaceDocRanges','blue.400','handleDeleteRangeMoveLeft','storage','Module','getCurrentRevOfUnit','EMAIL_HAS_BEEN_BOUND','_registerRenderDependencies','entityInit$','currentTheme$','forEach','collaboration.single-unit.warning','getSheetObject','TOO_MANY_REQUESTS','Warning','_injector','jsxs','getOwnPropertySymbols','_updateCollabCursors','IUIPartsService','_initCommandExecutedListener','div','getSheetId','urlChange$','_beforeCloseService','getColorFromTheme','IBeforeCloseService','AWAITING','subUnitId','OTHER_CLIENT_EDITING','PERMISSION_DENIED','LocaleService','onRendered','HEADER_MENU','docStateChange$','black','memberID','getAncestorScale','complete','moveTo','_backgroundColor','_heartbeatTimer','addObject','_eventUnsubscribe','_handleEvent','init','CONFLICT','...','textRanges','_hovered','129TpWlxp','eventID','_cursorShapes','registerRefRange','IRemoteInstanceService','_revisionService','_lastPointer','_collabCursorState$','setShapeProps','_entityInit$','CommandType','Injector','_onCursorUpdate','_config','Inject','INVITE_CODE_HAS_BEEN_UES','sessionStatus$','UniverCollaborationClientUIPlugin','_messageService','7JQahXS','deepClone','_handleLeaveEvent','YUUMI_RATE_OVER_LIMIT','YUUMI_AI_RUN_FAILED','_shapes','toString','Optional','sheetID','TEXT','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','assignAColorForMemberID','_initResize','CLOSE_ROOM','#FFF','http://www.w3.org/2000/svg','IUniverInstanceService','labelPosition','on-line-icon','addHandlerCallback','registerDependencies','_handleHover','MoveRangeCommandId','SHEET_VIEWPORT_KEY','show','LOCAL_CACHE_INTERVAL_KEY','DesktopCollaborationStatusDisplayController','attrs','imageSourceType','_onCursorDelete','yellow.400','children','getOwnPropertyDescriptor','M0\x200H16V16H0z','ICommandService','filter','redoState','isTransformMutationFailure','getSkeleton','OTHER_CLIENTS_EDITING','fillRule','override','generateRandomId','getRangePointData','substring','InsertRangeMoveRightCommandId','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','5007800gGmndA','endColumn','collabStatus.fetchMiss','_sheetSkeletonManagerService','column','ISocketService','engine','_docTransformSelectionsService','error','delete','handleInsertCol','_handleHeartbeatEvent','exhaustSavingTask','xlink:href','includes','onCommandExecuted','status$','then','green.600','ONLINE','displayName','UniverInstanceType','_roomMembers$','fromEvent','handleInsertRangeMoveDown','SNAPSHOT_INVALID_SNAPSHOT','collaboration-client-ui.config','ITransformService','YUUMI_SUBSCRIPTION_NOT_FOUND','combineLatest','_registerDependencies','SetTextSelectionsOperation','find','defineProperty','save','_setupBeforeClosingHandler','subscribe','getFocusedUnit','name','session.collaboration-timeout','setStateCache','UNRECOGNIZED','origin','focused$','MOBILE_HAS_BEEN_BOUND','_textBubble','APPLY_NON_SEQUENTIAL_REVISION','clearTimeout','onLocalMutation','url(#$1','idSuffix','_onRefRangeChange','some','clipPath','size','SessionStatus','cursorInfo','unitID','FromArray','font','setInterval','roomMembers$','_cursor','DocCollaborationEntity','_transformHistoryAndStateStack','has','currentSkeleton$','_transformPreviousActiveRange','ISnapshotServerService','round','1548030yTVLmH','getRenderById','ThemeService','getStateCache','activeSheet$','APPLY_REVISION_CONFILICT','CollaborationStatus','_localCacheService','_memberService','_scheduleHeartbeat','transform','UNAUTHENTICATED','use','removeParam','on-line-icon_clip0_910_349','text','CollaborationDataLoaderController','IImageIoService','roomMembers','toStringTag','LICENSE_EXPORT_SIZE_EXCEEDED','isActive','INVITE_CODE_REQUIRED','takeUntil','body','COMPLETION_FINISHED','_handleJoinEvent','DEFAULT_WS_SESSION_TICKET_URL','merge','useObservable','connectInjector','_document','top','mergeOverrideWithDependencies','unitId','_status$','collabStatus.offline','resize','_transformUndoRedoStack','RECT','getVpScrollXYInfoByPosToVp','getDocRanges','random','1315352TQxiis','WECHAT_HAS_BEEN_BOUND','session.connection-failed','RegularPolygon','values','_drawRectRange','_colorAssignService','lineTo','setTimeout','apply','UNDEFINED','_setupSubUnitSync','serializeRangeWithSheet','CollaborationUIEventId','onPointerEnter$','restore','DocIMEInputManagerService','OFFLINE','RemoveColCommandId','_cursorInfo$','_ensureSubject','_docSkeletonManagerService','_httpService','UPDATE_CURSOR','unit','getValue','mapTo','USER_NOT_INVITED_CODE','YUUMI_UNABLE_LOAD_URL','_docTransformIMECacheService','getCurrent','unshift','_colorIndex','_instanceService','EffectRefRangId','event$','RevisionService','_initEntityListener','CollaborationEvent','MOBILE_VERIFY_CODE_MISMATCH','getSheetBySheetId','InsertColCommandId','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_updateSubUnitFromURLParams','mask','_initStatusComponent','getOffsetConfig','HTTPService','transformByState','trim','_color','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','m2Prime','_collaborationUIEventService','_transformService','syncEditingCollabCursor','_getSaveTimeout','IConfigService','RemoveRowCommandId','currentColor','getUnhiddenWorksheets','length','parse','_entities','Tooltip','saveOfflineData','onPointerMove$','UniverCollaborationClientPlugin','USERS_LEAVE','Rectangle','APPLY_REJECT'];_0xd3b9=function(){return _0x380b9f;};return _0xd3b9();}class Ce extends a[_0xb1f837(0x292)]{constructor(){const _0x521f71=_0xb1f837;super(...arguments),h(this,_0x521f71(0x16e),new d[(_0x521f71(0xb0))](null)),h(this,_0x521f71(0x2ba),this[_0x521f71(0x16e)]['asObservable']());}[_0xb1f837(0x251)](_0x243aeb){const _0x4d6be8=_0xb1f837,{unitID:_0x563cee,memberID:_0x477e3e,textRanges:_0x18a888}=_0x243aeb,_0x522687=Pe(_0x18a888);if(_0x522687==='')return;const _0x191600={'unitID':_0x563cee,'memberID':_0x477e3e,'selection':_0x522687};this[_0x4d6be8(0x16e)][_0x4d6be8(0xdf)](_0x191600);}}var Ze=Object[_0xb1f837(0x19a)],Qe=(_0xf63b76,_0x18aba5,_0x52ff09,_0x43def2)=>{const _0x5ae4aa=_0xb1f837;for(var _0x104232=_0x43def2>0x1?void 0x0:_0x43def2?Ze(_0x18aba5,_0x52ff09):_0x18aba5,_0x55bab1=_0xf63b76[_0x5ae4aa(0x257)]-0x1,_0x10c8bf;_0x55bab1>=0x0;_0x55bab1--)(_0x10c8bf=_0xf63b76[_0x55bab1])&&(_0x104232=_0x10c8bf(_0x104232)||_0x104232);return _0x104232;},L=(_0xe48de9,_0x44fd87)=>(_0x35286d,_0x2cfdcd)=>_0x44fd87(_0x35286d,_0x2cfdcd,_0xe48de9);const et=0x12c,tt=0x64;let Ie=class extends a[_0xb1f837(0x292)]{constructor(_0x17cab1,_0x1dcd59,_0x1a496a,_0x102e3c,_0x1a1a68,_0x55141f,_0x1e8edc,_0x658578,_0x4c59eb){const _0x5d6973=_0xb1f837;super(),h(this,_0x5d6973(0xe9),!0x1),h(this,_0x5d6973(0x26a),!0x1),h(this,_0x5d6973(0x22d),new d['BehaviorSubject'](new Map())),h(this,_0x5d6973(0x7e),this['_cursorInfo$'][_0x5d6973(0xe0)]()),h(this,'_roomMembers$',new d['BehaviorSubject']([])),h(this,_0x5d6973(0x1e6),this[_0x5d6973(0x1bf)]['pipe'](d['debounceTime'](et))),h(this,_0x5d6973(0xb5),a[_0x5d6973(0xca)](_0x292cb6=>{const _0x522298=_0x5d6973,_0xeb8ef1={'eventID':m[_0x522298(0x240)][_0x522298(0x231)],'data':{'unitID':this[_0x522298(0x1e2)],'memberID':this['_session'][_0x522298(0x108)](),'selection':Pe(_0x292cb6)}};this['_session'][_0x522298(0x6d)](_0xeb8ef1,this['unitID']);},tt)),(this[_0x5d6973(0x1e2)]=_0x17cab1,this[_0x5d6973(0x7b)]=_0x1dcd59,this[_0x5d6973(0x144)]=_0x1a496a,this[_0x5d6973(0x220)]=_0x102e3c,this[_0x5d6973(0x1f7)]=_0x1a1a68,this[_0x5d6973(0x266)]=_0x55141f,this[_0x5d6973(0x250)]=_0x1e8edc,this[_0x5d6973(0x76)]=_0x658578,this[_0x5d6973(0x275)]=_0x4c59eb);}get['cursorInfo'](){const _0x489bf5=_0xb1f837;return this[_0x489bf5(0x22d)][_0x489bf5(0x233)]();}get[_0xb1f837(0x201)](){const _0x243130=_0xb1f837;return this['_roomMembers$'][_0x243130(0x233)]();}[_0xb1f837(0x8c)](){const _0x15d682=_0xb1f837;super[_0x15d682(0x8c)](),this[_0x15d682(0x22d)]['next'](new Map()),this[_0x15d682(0x22d)][_0x15d682(0x15b)](),this['_roomMembers$'][_0x15d682(0xdf)]([]),this[_0x15d682(0x1bf)]['complete']();}[_0xb1f837(0x162)](){const _0x20f7b5=_0xb1f837;this['_init']||(this[_0x20f7b5(0x26a)]=!0x0,this[_0x20f7b5(0x7b)][_0x20f7b5(0x177)][_0x20f7b5(0x28f)](d[_0x20f7b5(0x206)](this[_0x20f7b5(0x279)]))[_0x20f7b5(0x1cd)](_0x14c572=>{const _0x59228e=_0x20f7b5;_0x14c572===u[_0x59228e(0x1e0)][_0x59228e(0x1bc)]?this[_0x59228e(0x9d)]():this[_0x59228e(0x9e)]();}),this[_0x20f7b5(0x7b)][_0x20f7b5(0x23d)][_0x20f7b5(0x28f)](d['takeUntil'](this[_0x20f7b5(0x279)]))[_0x20f7b5(0x1cd)](_0x3891c0=>{const _0x3b2981=_0x20f7b5,_0x24e78f=_0x3891c0[_0x3b2981(0x168)];_0x24e78f===m['CollaborationEvent'][_0x3b2981(0x231)]&&this[_0x3b2981(0x173)](_0x3891c0),_0x24e78f===m[_0x3b2981(0x240)][_0x3b2981(0x25e)]&&this[_0x3b2981(0x197)](_0x3891c0);}),this[_0x20f7b5(0xd6)](this[_0x20f7b5(0x275)][_0x20f7b5(0x1b8)](_0x16883a=>{const _0x4f22fa=_0x20f7b5,_0x1508fc=_0x16883a['params'];_0x1508fc!=null&&this['_online']&&_0x16883a['id']===Y[_0x4f22fa(0x1c8)]['id']&&_0x1508fc['unitId']===this['unitID']&&_0x1508fc[_0x4f22fa(0xd2)]===!0x1&&_0x1508fc[_0x4f22fa(0x126)]['length']>0x0&&this[_0x4f22fa(0xb5)](_0x1508fc[_0x4f22fa(0x126)]);})),this[_0x20f7b5(0x266)][_0x20f7b5(0x2ba)]['pipe'](d[_0x20f7b5(0x206)](this['dispose$']))[_0x20f7b5(0x1cd)](_0x36822b=>{const _0x509463=_0x20f7b5;if((_0x36822b==null?void 0x0:_0x36822b[_0x509463(0x1e2)])!==this[_0x509463(0x1e2)])return;const _0x38e683={'eventID':m[_0x509463(0x240)][_0x509463(0x231)],'data':_0x36822b};this[_0x509463(0x173)](_0x38e683);}),this[_0x20f7b5(0xd6)](this[_0x20f7b5(0x275)][_0x20f7b5(0x1b8)](_0x49db34=>{const _0x2ac159=_0x20f7b5;if(_0x49db34[_0x2ac159(0xff)]==null)return;const _0x141048=_0x49db34[_0x2ac159(0xff)];if(_0x49db34['id']!==Y['RichTextEditingMutation']['id']||_0x141048[_0x2ac159(0x211)]!==this['unitID'])return;const _0x1325ce={'id':'doc.mutation.rich-text-editing','params':_0x141048},_0x26d83f=this[_0x2ac159(0x1e1)];for(const [_0x2f3780,_0x21a859]of _0x26d83f){const _0x319800={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x2ac159(0x1e2)],'actions':null,'textRanges':_0x21a859[_0x2ac159(0x126)]}},_0x9b6527=this[_0x2ac159(0x250)]['transformMutation'](_0x1325ce,_0x319800,!0x1);if(m[_0x2ac159(0x19f)](_0x9b6527))throw _0x9b6527[_0x2ac159(0x1b1)];_0x26d83f['set'](_0x2f3780,{..._0x21a859,'ranges':_0x9b6527['m2Prime']['params']['textRanges']});}queueMicrotask(()=>{const _0x5bf57a=_0x2ac159;this[_0x5bf57a(0x22d)]['next'](_0x26d83f);});})));}[_0xb1f837(0x173)](_0x54dc94){const _0x4faf7b=_0xb1f837;var _0x463f5f,_0x5e41ee;const {memberID:_0x5f3c5c,selection:_0x487188}=_0x54dc94['data'],_0x5348cb=Je(_0x487188),_0x5e2961=(_0x5e41ee=(_0x463f5f=this['_memberService'][_0x4faf7b(0x8e)](this[_0x4faf7b(0x1e2)],_0x5f3c5c))==null?void 0x0:_0x463f5f['name'])!=null?_0x5e41ee:'Unknown\x20user',_0x3c7269={'color':this['_colorAssignService'][_0x4faf7b(0x185)](_0x5f3c5c),'name':_0x5e2961,'ranges':_0x5348cb},_0x536858=this[_0x4faf7b(0x1e1)];_0x536858[_0x4faf7b(0x134)](_0x5f3c5c,_0x3c7269),this['_cursorInfo$'][_0x4faf7b(0xdf)](_0x536858);}[_0xb1f837(0x197)](_0xef0e49){const _0x20e753=_0xb1f837,{memberID:_0x507298}=_0xef0e49[_0x20e753(0x283)],_0x48476b=this['cursorInfo'];_0x48476b['delete'](_0x507298),this[_0x20e753(0x22d)][_0x20e753(0xdf)](_0x48476b);}['_toggleOnline'](){const _0x3dcc30=_0xb1f837;var _0x1871ed;if(this[_0x3dcc30(0xe9)]=!0x0,((_0x1871ed=this[_0x3dcc30(0x76)][_0x3dcc30(0x1ce)]())==null?void 0x0:_0x1871ed[_0x3dcc30(0xd4)]())!==this[_0x3dcc30(0x1e2)])return;const _0x2ac9e2=this['_injector'][_0x3dcc30(0xd1)](Y['DocSelectionManagerService'])[_0x3dcc30(0x218)]();Array[_0x3dcc30(0x9b)](_0x2ac9e2)&&_0x2ac9e2[_0x3dcc30(0x257)]>0x0&&this[_0x3dcc30(0xb5)](_0x2ac9e2);}[_0xb1f837(0x9e)](){const _0x20131d=_0xb1f837;this[_0x20131d(0xe9)]=!0x1;}};Ie=Qe([L(0x2,a[_0xb1f837(0x175)](a[_0xb1f837(0x172)])),L(0x3,a[_0xb1f837(0x175)](me)),L(0x4,a['Inject'](u['MemberService'])),L(0x5,a[_0xb1f837(0x175)](Ce)),L(0x6,m[_0xb1f837(0x1c4)]),L(0x7,a[_0xb1f837(0x18a)]),L(0x8,a[_0xb1f837(0x19c)])],Ie);var st=Object[_0xb1f837(0x19a)],it=(_0x3c4f9a,_0x10e4f5,_0x5daf7c,_0x27763f)=>{for(var _0x5054f8=_0x27763f>0x1?void 0x0:_0x27763f?st(_0x10e4f5,_0x5daf7c):_0x10e4f5,_0x57f4de=_0x3c4f9a['length']-0x1,_0x2db314;_0x57f4de>=0x0;_0x57f4de--)(_0x2db314=_0x3c4f9a[_0x57f4de])&&(_0x5054f8=_0x2db314(_0x5054f8)||_0x5054f8);return _0x5054f8;},A=(_0x34e1fa,_0x268fb7)=>(_0x36791d,_0x3962f8)=>_0x268fb7(_0x36791d,_0x3962f8,_0x34e1fa);const nt=0x12c,rt=0x64,ot=()=>{let _0xc4f643=[],_0x4ff7eb=!0x1;return _0x5a0a39=>{_0xc4f643['push'](_0x5a0a39),_0x4ff7eb||(_0x4ff7eb=!0x0,setTimeout(()=>{const _0x26dae4=_0x48f4;_0xc4f643[_0x26dae4(0x13f)](_0x26e1cc=>_0x26e1cc()),_0xc4f643=[],_0x4ff7eb=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x4d2dad,_0x57bcec,_0x393856,_0x4761f9,_0x2ef8bd,_0x18fca2,_0x2177da,_0x5b3c4f){const _0x5344c4=_0xb1f837;super(),h(this,'_online',!0x1),h(this,_0x5344c4(0x26a),!0x1),h(this,_0x5344c4(0x22d),new d['BehaviorSubject'](new Map())),h(this,_0x5344c4(0x7e),this[_0x5344c4(0x22d)][_0x5344c4(0xe0)]()),h(this,'_roomMembers$',new d[(_0x5344c4(0xb0))]([])),h(this,_0x5344c4(0x1e6),this[_0x5344c4(0x1bf)]['pipe'](d[_0x5344c4(0x2cb)](nt))),h(this,_0x5344c4(0xb5),a[_0x5344c4(0xca)]((_0x4ef0fa,_0x310ac4)=>{const _0x5e9cdb=_0x5344c4,_0x1ce614={'eventID':m['CollaborationEvent'][_0x5e9cdb(0x231)],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':be[_0x5e9cdb(0x226)](_0x4ef0fa,_0x310ac4[_0x5e9cdb(0xef)])}};this['_session'][_0x5e9cdb(0x6d)](_0x1ce614,this[_0x5e9cdb(0x1e2)]);},rt)),(this['unitID']=_0x4d2dad,this[_0x5344c4(0x7b)]=_0x57bcec,this[_0x5344c4(0x144)]=_0x393856,this[_0x5344c4(0x220)]=_0x4761f9,this[_0x5344c4(0x1f7)]=_0x2ef8bd,this[_0x5344c4(0x76)]=_0x18fca2,this[_0x5344c4(0x275)]=_0x2177da,this['_refRangeService']=_0x5b3c4f);}get['cursorInfo'](){const _0x5b4481=_0xb1f837;return this['_cursorInfo$'][_0x5b4481(0x233)]();}get[_0xb1f837(0x201)](){const _0x31cf12=_0xb1f837;return this[_0x31cf12(0x1bf)][_0x31cf12(0x233)]();}['dispose'](){const _0x5defd4=_0xb1f837;super[_0x5defd4(0x8c)](),this[_0x5defd4(0x22d)][_0x5defd4(0xdf)](new Map()),this['_cursorInfo$'][_0x5defd4(0x15b)](),this[_0x5defd4(0x1bf)][_0x5defd4(0xdf)]([]),this['_roomMembers$'][_0x5defd4(0x15b)]();}[_0xb1f837(0x162)](){const _0x2d42c3=_0xb1f837;this[_0x2d42c3(0x26a)]||(this['_init']=!0x0,this[_0x2d42c3(0x7b)][_0x2d42c3(0x177)][_0x2d42c3(0x28f)](d[_0x2d42c3(0x206)](this[_0x2d42c3(0x279)]))[_0x2d42c3(0x1cd)](_0x54368f=>{const _0x32684f=_0x2d42c3;_0x54368f===u[_0x32684f(0x1e0)][_0x32684f(0x1bc)]?this[_0x32684f(0x9d)]():this[_0x32684f(0x9e)]();}),this['_session']['event$']['pipe'](d[_0x2d42c3(0x206)](this[_0x2d42c3(0x279)]))[_0x2d42c3(0x1cd)](_0x46b768=>{const _0x47e5ae=_0x2d42c3,_0x3f1cea=_0x46b768[_0x47e5ae(0x168)];_0x3f1cea===m['CollaborationEvent'][_0x47e5ae(0x231)]&&this[_0x47e5ae(0x173)](_0x46b768),_0x3f1cea===m[_0x47e5ae(0x240)][_0x47e5ae(0x25e)]&&this[_0x47e5ae(0x197)](_0x46b768);}),this[_0x2d42c3(0x1dc)](),this[_0x2d42c3(0xd6)](this[_0x2d42c3(0x275)]['onCommandExecuted'](_0x45dcf8=>{const _0x45ca45=_0x2d42c3;if(this[_0x45ca45(0xe9)]&&_0x45dcf8['id']===g[_0x45ca45(0x2be)]['id']&&_0x45dcf8[_0x45ca45(0xff)][_0x45ca45(0x211)]===this[_0x45ca45(0x1e2)]){const _0x336542=_0x45dcf8['params'];this[_0x45ca45(0xb5)](_0x336542[_0x45ca45(0x151)],_0x336542[_0x45ca45(0x2a4)][0x0]);}})));}[_0xb1f837(0x173)](_0x223fac){const _0x2aba24=_0xb1f837;var _0x11b069,_0x12257c;const {memberID:_0x3ac1e9,selection:_0x4fae72}=_0x223fac[_0x2aba24(0x283)],{sheetName:_0x4ed1bb,range:_0x2ea872}=be['deserializeRangeWithSheet'](_0x4fae72),_0x219178={'name':(_0x12257c=(_0x11b069=this['_memberService'][_0x2aba24(0x8e)](this['unitID'],_0x3ac1e9))==null?void 0x0:_0x11b069['name'])!=null?_0x12257c:_0x2aba24(0x26e),'range':this[_0x2aba24(0x10d)](_0x4ed1bb,_0x2ea872),'sheetID':_0x4ed1bb,'color':this[_0x2aba24(0x220)][_0x2aba24(0x185)](_0x3ac1e9),'selection':_0x4fae72},_0x1294b8=this[_0x2aba24(0x1e1)];_0x1294b8['set'](_0x3ac1e9,_0x219178),this['_cursorInfo$'][_0x2aba24(0xdf)](_0x1294b8);}[_0xb1f837(0x197)](_0x4deaf5){const _0x55cc80=_0xb1f837,{memberID:_0x19fae9}=_0x4deaf5[_0x55cc80(0x283)],_0x3a287f=this[_0x55cc80(0x1e1)];_0x3a287f[_0x55cc80(0x1b2)](_0x19fae9),this['_cursorInfo$'][_0x55cc80(0xdf)](_0x3a287f);}[_0xb1f837(0x10d)](_0x3c5f21,_0x126858){const _0x18ac6d=_0xb1f837;var _0x496bbd,_0x4b9b29;const _0x1f9d29=(_0x4b9b29=(_0x496bbd=this['_univerInstanceService'][_0x18ac6d(0x2da)](this[_0x18ac6d(0x1e2)]))==null?void 0x0:_0x496bbd['getSheetBySheetId'](_0x3c5f21))==null?void 0x0:_0x4b9b29[_0x18ac6d(0xaf)]();return(_0x1f9d29==null?void 0x0:_0x1f9d29[_0x18ac6d(0x1c9)](_0xbc3001=>a[_0x18ac6d(0x25f)][_0x18ac6d(0x2c6)](_0xbc3001,_0x126858)))||_0x126858;}[_0xb1f837(0x1dc)](){const _0x355586=_0xb1f837,_0x2b226c=new a[(_0x355586(0x123))](),_0x5f4af4=ot(),_0xeb0188=()=>{const _0x5b90ff=_0x355586;_0x2b226c[_0x5b90ff(0x8c)]();const _0x19b73e=(_0x2026bf,_0x514ced,_0x3ccf9a,_0x436a56)=>{const _0x19a7ff=_0x5b90ff;let _0x1acc34=[];switch(_0x2026bf['id']){case g[_0x19a7ff(0x23c)][_0x19a7ff(0xf4)]:{_0x1acc34=g[_0x19a7ff(0x137)](_0x2026bf,_0x436a56);break;}case g[_0x19a7ff(0x23c)][_0x19a7ff(0x27b)]:{_0x1acc34=g[_0x19a7ff(0xb9)](_0x2026bf,_0x436a56);break;}case g[_0x19a7ff(0x23c)][_0x19a7ff(0x243)]:{_0x1acc34=g[_0x19a7ff(0x1b3)](_0x2026bf,_0x436a56);break;}case g[_0x19a7ff(0x23c)]['InsertRangeMoveDownCommandId']:{_0x1acc34=g[_0x19a7ff(0x1c1)](_0x2026bf,_0x436a56);break;}case g['EffectRefRangId'][_0x19a7ff(0x1a7)]:{_0x1acc34=g[_0x19a7ff(0x26d)](_0x2026bf,_0x436a56);break;}case g[_0x19a7ff(0x23c)][_0x19a7ff(0x269)]:{_0x1acc34=g['handleInsertRow'](_0x2026bf,_0x436a56);break;}case g[_0x19a7ff(0x23c)][_0x19a7ff(0x190)]:{_0x1acc34=g['handleMoveRange'](_0x2026bf,_0x436a56);break;}case g[_0x19a7ff(0x23c)][_0x19a7ff(0x22c)]:{_0x1acc34=g[_0x19a7ff(0xc8)](_0x2026bf,_0x436a56);break;}case g[_0x19a7ff(0x23c)][_0x19a7ff(0x254)]:{_0x1acc34=g[_0x19a7ff(0x2e9)](_0x2026bf,_0x436a56);break;}}const _0x164092=g['runRefRangeMutations'](_0x1acc34,_0x436a56),_0x160f96=this[_0x19a7ff(0x1e1)][_0x19a7ff(0xd1)](_0x514ced);if(_0x160f96&&_0x164092){const _0x199022={..._0x160f96,'range':_0x164092};this['cursorInfo']['set'](_0x514ced,_0x199022),_0x5f4af4(()=>{const _0x3b3eb9=_0x19a7ff,_0x39413e=this[_0x3b3eb9(0x296)]['registerRefRange'](_0x164092,_0x164d7b=>(_0x39413e[_0x3b3eb9(0x8c)](),_0x19b73e(_0x164d7b,_0x514ced,_0x3ccf9a,_0x164092)));_0x2b226c['add'](_0x39413e);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x5b90ff(0x13f)]((_0x418eea,_0x1028ab)=>{const _0x247172=_0x5b90ff,{range:_0x3d9640,sheetID:_0x579ed7}=_0x418eea,_0x1fe987=this['_refRangeService'][_0x247172(0x16a)](_0x3d9640,_0x1d2caf=>(_0x1fe987['dispose'](),_0x19b73e(_0x1d2caf,_0x1028ab,_0x579ed7,_0x3d9640)));_0x2b226c[_0x247172(0x291)](_0x1fe987);});};this[_0x355586(0xd6)](a[_0x355586(0x2aa)](this['_cursorInfo$'][_0x355586(0x1cd)](()=>{_0xeb0188();})));}[_0xb1f837(0x9d)](){const _0xac19c2=_0xb1f837;var _0x11ca21,_0x56ba36;if(this['_online']=!0x0,((_0x11ca21=this['_univerInstanceService'][_0xac19c2(0x1ce)]())==null?void 0x0:_0x11ca21[_0xac19c2(0xd4)]())!==this[_0xac19c2(0x1e2)])return;const _0x12bcae=(_0x56ba36=this[_0xac19c2(0x144)][_0xac19c2(0xd1)](g['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x56ba36[0x0],_0x4132c8=this[_0xac19c2(0x76)]['getCurrentUnitForType'](a[_0xac19c2(0x1be)]['UNIVER_SHEET'])['getActiveSheet']();_0x12bcae&&_0x4132c8&&this[_0xac19c2(0xb5)](_0x4132c8[_0xac19c2(0x14b)](),_0x12bcae);}[_0xb1f837(0x9e)](){this['_online']=!0x1;}};Se=it([A(0x2,a[_0xb1f837(0x175)](a[_0xb1f837(0x172)])),A(0x3,a[_0xb1f837(0x175)](me)),A(0x4,a['Inject'](u[_0xb1f837(0x280)])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0xb1f837(0x19c)]),A(0x7,a[_0xb1f837(0x175)](g['RefRangeService']))],Se);var at=Object[_0xb1f837(0x19a)],ct=(_0x2207bc,_0x567e4c,_0x4b30f5,_0x54eb05)=>{const _0x21ce95=_0xb1f837;for(var _0xb848f7=_0x54eb05>0x1?void 0x0:_0x54eb05?at(_0x567e4c,_0x4b30f5):_0x567e4c,_0x19e957=_0x2207bc[_0x21ce95(0x257)]-0x1,_0x363d58;_0x19e957>=0x0;_0x19e957--)(_0x363d58=_0x2207bc[_0x19e957])&&(_0xb848f7=_0x363d58(_0xb848f7)||_0xb848f7);return _0xb848f7;},ie=(_0x41b9b8,_0x2ddcce)=>(_0x65ae80,_0xa7ead3)=>_0x2ddcce(_0x65ae80,_0xa7ead3,_0x41b9b8);let x=class extends a[_0xb1f837(0x292)]{constructor(_0x1687b7,_0x4f9d80,_0x4f9537){const _0x2f85bb=_0xb1f837;super(),h(this,_0x2f85bb(0x259),new Map()),h(this,_0x2f85bb(0x170),new d[(_0x2f85bb(0x2de))]()),(this[_0x2f85bb(0x76)]=_0x1687b7,this['_injector']=_0x4f9d80,this[_0x2f85bb(0x270)]=_0x4f9537,this[_0x2f85bb(0x26a)]());}[_0xb1f837(0x8c)](){const _0x395974=_0xb1f837;super[_0x395974(0x8c)](),this[_0x395974(0x170)][_0x395974(0x15b)](),this['_entities'][_0x395974(0x13f)](_0x53a5f9=>_0x53a5f9['dispose']());}[_0xb1f837(0x2c3)](_0x2091bb){const _0x242b2f=_0xb1f837;return this[_0x242b2f(0x259)]['has'](_0x2091bb)?this['_entities'][_0x242b2f(0xd1)](_0x2091bb)[_0x242b2f(0x7e)]:this[_0x242b2f(0x170)][_0x242b2f(0x28f)](d[_0x242b2f(0x19d)](_0x48c560=>_0x48c560[_0x242b2f(0x1e2)]===_0x2091bb),d['switchMap'](_0x1ec27b=>_0x1ec27b['cursorInfo$']));}['_init'](){const _0x35b233=_0xb1f837;this[_0x35b233(0x76)][_0x35b233(0x263)](a[_0x35b233(0x1be)][_0x35b233(0x11f)])[_0x35b233(0x28f)](d[_0x35b233(0x206)](this['dispose$']))['subscribe'](async _0xae911c=>{const _0x2c2966=_0x35b233,_0x3236f2=_0xae911c[_0x2c2966(0xd4)](),_0x10c3ad=await this[_0x2c2966(0x298)](_0x3236f2);this[_0x2c2966(0x170)][_0x2c2966(0xdf)](_0x10c3ad),this['_entities'][_0x2c2966(0x134)](_0x3236f2,_0x10c3ad);}),this[_0x35b233(0x76)][_0x35b233(0x263)](a[_0x35b233(0x1be)][_0x35b233(0x29a)])[_0x35b233(0x28f)](d[_0x35b233(0x206)](this['dispose$']))[_0x35b233(0x28f)](d[_0x35b233(0x19d)](_0x43fcf6=>!_0x43fcf6[_0x35b233(0xd4)]()[_0x35b233(0x8d)]('__')))['subscribe'](async _0x2fc17e=>{const _0x5cf01c=_0x35b233,_0x3fef6e=_0x2fc17e[_0x5cf01c(0xd4)](),_0x4b8bd0=await this['_startDocCollabCursor'](_0x3fef6e);this['_entityInit$'][_0x5cf01c(0xdf)](_0x4b8bd0),this[_0x5cf01c(0x259)][_0x5cf01c(0x134)](_0x3fef6e,_0x4b8bd0);}),d[_0x35b233(0x20b)](this[_0x35b233(0x76)][_0x35b233(0xa2)](a[_0x35b233(0x1be)][_0x35b233(0x29a)]),this[_0x35b233(0x76)][_0x35b233(0xa2)](a['UniverInstanceType'][_0x35b233(0x11f)]))[_0x35b233(0x28f)](d[_0x35b233(0x206)](this['dispose$']))['subscribe'](_0x515bc5=>{const _0x45187f=_0x35b233,_0x378870=_0x515bc5[_0x45187f(0xd4)](),_0x525a0a=this[_0x45187f(0x259)]['get'](_0x378870);_0x525a0a&&(_0x525a0a[_0x45187f(0x8c)](),this[_0x45187f(0x259)][_0x45187f(0x1b2)](_0x378870));});}async[_0xb1f837(0x298)](_0x1ea965){const _0x2ac999=_0xb1f837,_0x196579=await this[_0x2ac999(0x270)]['requireSession'](_0x1ea965),_0x27aee9=this[_0x2ac999(0x144)]['createInstance'](Se,_0x1ea965,_0x196579);return _0x27aee9[_0x2ac999(0x162)](),_0x27aee9;}async[_0xb1f837(0x277)](_0x752475){const _0x4f1202=_0xb1f837,_0x57dbdb=await this['_collabSessionService'][_0x4f1202(0xfa)](_0x752475),_0x1cbd1b=this[_0x4f1202(0x144)][_0x4f1202(0x271)](Ie,_0x752475,_0x57dbdb);return _0x1cbd1b[_0x4f1202(0x162)](),_0x1cbd1b;}};x=ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0xb1f837(0x175)](a[_0xb1f837(0x172)])),ie(0x2,a[_0xb1f837(0x175)](u[_0xb1f837(0xb4)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x4a82fe,_0x5c9666){const _0x38d3ed=_0xb1f837;let {radius:_0x4cdfae,width:_0x5afed0,height:_0x39d15f}=_0x5c9666;_0x4cdfae=_0x4cdfae!=null?_0x4cdfae:0x0,_0x5afed0=_0x5afed0!=null?_0x5afed0:0x1e,_0x39d15f=_0x39d15f!=null?_0x39d15f:0x1e;let _0x5f2df6=0x0,_0x18864a=0x0,_0x168b7c=0x0;_0x5f2df6=_0x18864a=_0x168b7c=Math[_0x38d3ed(0x114)](_0x4cdfae,_0x5afed0/0x2,_0x39d15f/0x2),_0x4a82fe['beginPath'](),_0x4a82fe[_0x38d3ed(0x15c)](_0x5f2df6,0x0),_0x4a82fe[_0x38d3ed(0x221)](_0x5afed0-_0x18864a,0x0),_0x4a82fe[_0x38d3ed(0x97)](_0x5afed0-_0x18864a,_0x18864a,_0x18864a,Math['PI']*0x3/0x2,0x0,!0x1),_0x4a82fe[_0x38d3ed(0x221)](_0x5afed0,_0x39d15f-_0x168b7c),_0x4a82fe['arc'](_0x5afed0-_0x168b7c,_0x39d15f-_0x168b7c,_0x168b7c,0x0,Math['PI']/0x2,!0x1),_0x4a82fe[_0x38d3ed(0x221)](0x0,_0x39d15f),_0x4a82fe['lineTo'](0x0,_0x5f2df6),_0x4a82fe['arc'](_0x5f2df6,_0x5f2df6,_0x5f2df6,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4a82fe['closePath'](),_0x5c9666[_0x38d3ed(0xd0)]&&(_0x4a82fe['save'](),_0x4a82fe[_0x38d3ed(0x2d8)]=_0x5c9666[_0x38d3ed(0xd0)],_0x5c9666[_0x38d3ed(0x1a2)]==='evenodd'?_0x4a82fe['fill']('evenodd'):_0x4a82fe['fill'](),_0x4a82fe[_0x38d3ed(0x229)]());}class ee extends p['Shape']{constructor(_0x5e7628,_0x467f7b){const _0x354222=_0xb1f837;super(_0x5e7628,_0x467f7b),h(this,_0x354222(0x2df)),h(this,_0x354222(0x1fe)),(this['color']=_0x467f7b==null?void 0x0:_0x467f7b['color'],this[_0x354222(0x1fe)]=_0x467f7b==null?void 0x0:_0x467f7b['text']);}static[_0xb1f837(0x28e)](_0x35cc06,_0x133650){const _0x139330=_0xb1f837,{text:_0x4a8854,color:_0x8d07d9}=_0x133650;_0x35cc06[_0x139330(0x1cb)](),_0x35cc06[_0x139330(0x1e4)]=_0x139330(0xfb);const _0x2794f6=_0x35cc06['measureText'](_0x4a8854)[_0x139330(0x8f)],_0x24cf9d=Math[_0x139330(0x114)](_0x2794f6+0x2*ne,Re);_t(_0x35cc06,{'height':K,'radius':0x4,'width':_0x24cf9d,'fill':_0x8d07d9}),_0x35cc06[_0x139330(0x2d8)]=_0x139330(0x188);const _0x3dfcee=ne,_0xcac2c8=K-lt,_0xbe8d53=Re-0x2*ne;if(_0x2794f6>_0xbe8d53){let _0x1a39f0='',_0x51637f=0x0;for(const _0x54f7ee of _0x4a8854){const _0x29ea4c=_0x35cc06['measureText'](_0x54f7ee)['width'];if(_0x51637f+_0x29ea4c<=_0xbe8d53-_0x35cc06[_0x139330(0x2b5)](_0x139330(0x164))['width'])_0x1a39f0+=_0x54f7ee,_0x51637f+=_0x29ea4c;else{_0x1a39f0+=_0x139330(0x164);break;}}_0x35cc06[_0x139330(0xcc)](_0x1a39f0,_0x3dfcee,_0xcac2c8);}else _0x35cc06['fillText'](_0x4a8854,_0x3dfcee,_0xcac2c8);_0x35cc06[_0x139330(0x229)]();}[_0xb1f837(0x2a5)](_0x4250e3){const _0x1e1ff4=_0xb1f837;ee[_0x1e1ff4(0x28e)](_0x4250e3,this);}}const re='collab-text-anchor-',ht=_0xb1f837(0x90),ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0xb1f837(0x2eb);class De{constructor(_0x53925c,_0x5abe4a,_0x93e40f,_0x439b4f){const _0x56c2b0=_0xb1f837;h(this,_0x56c2b0(0x17f),[]),h(this,_0x56c2b0(0x29d),null),h(this,_0x56c2b0(0x1d6),null),h(this,'_anchorDot',null),h(this,_0x56c2b0(0x9c),null),h(this,_0x56c2b0(0x160),null),(this[_0x56c2b0(0x1e7)]=_0x53925c,this['_scene']=_0x5abe4a,this[_0x56c2b0(0x274)]=_0x93e40f,this[_0x56c2b0(0x20e)]=_0x439b4f,this[_0x56c2b0(0x81)]());}set['_hover'](_0xaa9f74){const _0xad53f2=_0xb1f837;_0xaa9f74?(this[_0xad53f2(0x8b)]&&this[_0xad53f2(0x8b)]['hide'](),this[_0xad53f2(0x1d6)]&&this[_0xad53f2(0x1d6)][_0xad53f2(0x192)]()):(this[_0xad53f2(0x8b)]&&this[_0xad53f2(0x8b)][_0xad53f2(0x192)](),this[_0xad53f2(0x1d6)]&&this[_0xad53f2(0x1d6)][_0xad53f2(0x93)]());}[_0xb1f837(0x8c)](){const _0x235f30=_0xb1f837;for(const _0x266aef of this['_shapes'])_0x266aef['dispose']();this['_textBubble']&&this[_0x235f30(0x1d6)][_0x235f30(0x8c)](),this[_0x235f30(0x8b)]&&this['_anchorDot'][_0x235f30(0x8c)](),this[_0x235f30(0x29d)]&&this[_0x235f30(0x29d)][_0x235f30(0x8c)](),this[_0x235f30(0x160)]&&this['_eventUnsubscribe']();}[_0xb1f837(0x81)](){const _0x2ee2b3=_0xb1f837;var _0x11261b;const {_docSkeleton:_0x150245,_document:_0xe11cf0}=this,{color:_0x548914,name:_0x4c5b08,ranges:_0x2ab1e8}=this[_0x2ee2b3(0x1e7)],_0x43948e=_0xe11cf0[_0x2ee2b3(0x248)](),{docsLeft:_0x2cbed9,docsTop:_0x395182}=_0x43948e,_0x582ab9=new E['NodePositionConvertToCursor'](_0x43948e,_0x150245);for(const {startOffset:_0x28d00a,endOffset:_0x21d18c,rangeType:_0x58bde7,segmentId:_0x5b5998,segmentPage:_0x4a98c3,collapsed:_0x262203,isActive:_0x41e34f}of _0x2ab1e8){const _0x10bc69=_0x150245[_0x2ee2b3(0x290)](_0x28d00a,!0x0,_0x5b5998,_0x4a98c3);let _0x2b2efe=_0x150245[_0x2ee2b3(0x290)](_0x21d18c,!0x0,_0x5b5998,_0x4a98c3);if(_0x2b2efe==null&&(_0x2b2efe=_0x150245[_0x2ee2b3(0x290)](_0x21d18c-0x1,!0x1,_0x5b5998,_0x4a98c3)),_0x41e34f){const {contentBoxPointGroup:_0x407eac}=_0x582ab9[_0x2ee2b3(0x1a5)](_0x2b2efe,_0x2b2efe);if(_0x407eac[_0x2ee2b3(0x257)]===0x0)continue;this[_0x2ee2b3(0x2ae)](_0x548914,_0x407eac,_0x2cbed9,_0x395182,_0x4c5b08),this['_eventUnsubscribe']=this[_0x2ee2b3(0x18f)]();}if(_0x10bc69&&_0x2b2efe){if(_0x58bde7===a['DOC_RANGE_TYPE'][_0x2ee2b3(0x216)]){const _0x43aa78=new E[(_0x2ee2b3(0x2d6))](_0x43948e,_0x150245),{pointGroup:_0x2525b6}=(_0x11261b=_0x43aa78[_0x2ee2b3(0x1a5)](_0x10bc69,_0x2b2efe))!=null?_0x11261b:{};if(_0x2525b6==null||_0x2525b6[_0x2ee2b3(0x257)]===0x0)continue;this[_0x2ee2b3(0x21f)](_0x548914,_0x2525b6,_0x2cbed9,_0x395182);}else{if(!_0x262203){const {borderBoxPointGroup:_0xb00c12}=_0x582ab9[_0x2ee2b3(0x1a5)](_0x10bc69,_0x2b2efe);if(_0xb00c12['length']===0x0)continue;this[_0x2ee2b3(0x28b)](_0x548914,_0xb00c12,_0x2cbed9,_0x395182);}}}}}[_0xb1f837(0x2ae)](_0x5a9690,_0x441679,_0x45f750,_0x2bad5e,_0x40bc50){const _0x562e2a=_0xb1f837,_0x275e61=this['_getAnchorBounding'](_0x441679),{left:_0x4d6fb2,top:_0x4bbc1f,height:_0x4ac571}=_0x275e61,_0x31ba20=this[_0x562e2a(0xe5)](),_0xf647c0=It/_0x31ba20,_0x5666cd=new p['Rect'](re+a['generateRandomId'](k),{'left':_0x4d6fb2+_0x45f750-_0xf647c0,'top':_0x4bbc1f+_0x2bad5e,'height':_0x4ac571,'width':dt,'fill':_0x5a9690||p[_0x562e2a(0x2cd)](a[_0x562e2a(0x88)]['black'],0x0),'strokeWidth':_0xf647c0,'stroke':St,'evented':!0x0});this[_0x562e2a(0x29d)]=_0x5666cd,this['_scene'][_0x562e2a(0x15f)](_0x5666cd,E['TEXT_RANGE_LAYER_INDEX']);const _0x51d4a6=new p[(_0x562e2a(0xb2))](re+a['generateRandomId'](k),{'left':_0x4d6fb2+_0x45f750-_0xf647c0,'top':_0x4bbc1f+_0x2bad5e-oe/0x2,'height':oe,'width':oe,'fill':_0x5a9690||p['getColor'](a[_0x562e2a(0x88)][_0x562e2a(0x158)],0x0),'strokeWidth':0x0,'stroke':_0x5a9690||p['getColor'](a[_0x562e2a(0x88)]['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x51d4a6,this[_0x562e2a(0x2e8)][_0x562e2a(0x15f)](_0x51d4a6,E['TEXT_RANGE_LAYER_INDEX']);const _0xce453=new ee(re+a[_0x562e2a(0x1a4)](k),{'left':_0x4d6fb2+_0x45f750-_0xf647c0,'top':_0x4bbc1f+_0x2bad5e-K,'text':_0x40bc50,'color':_0x5a9690});this[_0x562e2a(0x1d6)]=_0xce453,this['_scene']['addObject'](_0xce453,E[_0x562e2a(0x99)]),this[_0x562e2a(0x95)]=!0x1;}['_handleHover'](){const _0xa8060c=_0xb1f837,_0x516c64=this[_0xa8060c(0x29d)][_0xa8060c(0x228)]['subscribeEvent'](()=>{const _0x3be0f4=_0xa8060c;this[_0x3be0f4(0x95)]=!0x0;}),_0x12fe44=this[_0xa8060c(0x29d)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x5b4635=_0xa8060c;this[_0x5b4635(0x9c)]&&clearTimeout(this[_0x5b4635(0x9c)]),this[_0x5b4635(0x9c)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x35971f=_0xa8060c;_0x516c64[_0x35971f(0x78)](),_0x12fe44['unsubscribe']();};}[_0xb1f837(0x28b)](_0x289c34,_0x2b90cd,_0x1ceecc,_0x24a711){const _0x306410=_0xb1f837,_0x4bf386=new a[(_0x306410(0x87))](_0x289c34)['setAlpha'](0.2)['toRgbString'](),_0x387ebb=new p[(_0x306410(0x21d))](ht+a['generateRandomId'](k),{'pointsGroup':_0x2b90cd,'fill':_0x4bf386||p[_0x306410(0x2cd)](a[_0x306410(0x88)][_0x306410(0x158)],0.2),'left':_0x1ceecc,'top':_0x24a711,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x306410(0x17f)]['push'](_0x387ebb),this[_0x306410(0x2e8)][_0x306410(0x15f)](_0x387ebb,E[_0x306410(0x99)]);}['_drawRectRange'](_0x82aa3f,_0x2cd9f1,_0x3797a7,_0x5a05d5){const _0x52760a=_0xb1f837,_0x1bba3e=new a[(_0x52760a(0x87))](_0x82aa3f)['setAlpha'](0.2)[_0x52760a(0x9f)](),_0x5afdc9=new p[(_0x52760a(0x21d))](ut+a[_0x52760a(0x1a4)](k),{'pointsGroup':_0x2cd9f1,'fill':_0x1bba3e||p[_0x52760a(0x2cd)](a['COLORS']['black'],0.2),'left':_0x3797a7,'top':_0x5a05d5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x52760a(0x17f)]['push'](_0x5afdc9),this[_0x52760a(0x2e8)][_0x52760a(0x15f)](_0x5afdc9,E[_0x52760a(0x99)]);}['_getAnchorBounding'](_0x5deed1){const _0x24280f=_0x5deed1[0x0],_0x2e94b1=_0x24280f[0x0],_0x365f40=_0x24280f[0x2],{x:_0x31e692,y:_0x507bdf}=_0x2e94b1,{x:_0x55e5b7,y:_0x4d0bd8}=_0x365f40;return{'left':_0x31e692,'top':_0x507bdf,'width':_0x55e5b7-_0x31e692,'height':_0x4d0bd8-_0x507bdf};}[_0xb1f837(0xe5)](){const _0xe3360f=_0xb1f837,{scaleX:_0x3c58b7,scaleY:_0x404461}=this[_0xe3360f(0x2e8)][_0xe3360f(0x15a)]();return Math[_0xe3360f(0xba)](_0x3c58b7,_0x404461);}}var ft=Object[_0xb1f837(0x19a)],vt=(_0xa49687,_0x764b4a,_0xabd093,_0x59056a)=>{const _0x3aa602=_0xb1f837;for(var _0x309b9e=_0x59056a>0x1?void 0x0:_0x59056a?ft(_0x764b4a,_0xabd093):_0x764b4a,_0x4750ca=_0xa49687[_0x3aa602(0x257)]-0x1,_0x5cf7bf;_0x4750ca>=0x0;_0x4750ca--)(_0x5cf7bf=_0xa49687[_0x4750ca])&&(_0x309b9e=_0x5cf7bf(_0x309b9e)||_0x309b9e);return _0x309b9e;},W=(_0x212e92,_0x57138a)=>(_0x3c0758,_0x7dd095)=>_0x57138a(_0x3c0758,_0x7dd095,_0x212e92);let fe=class extends a[_0xb1f837(0x292)]{constructor(_0x411fa0,_0x2cb659,_0x3749ff,_0x2b4665,_0x2028b6){const _0x558744=_0xb1f837;super(),h(this,_0x558744(0x169),[]),h(this,_0x558744(0xc7),[]),(this[_0x558744(0x11b)]=_0x411fa0,this[_0x558744(0x22f)]=_0x2cb659,this[_0x558744(0x2c1)]=_0x3749ff,this[_0x558744(0x275)]=_0x2b4665,this[_0x558744(0x29b)]=_0x2028b6,this['_init']());}[_0xb1f837(0x26a)](){const _0x48437f=_0xb1f837,_0x3aed12=this[_0x48437f(0x11b)][_0x48437f(0x211)],_0xd93e25=this['_docSkeletonManagerService'];this[_0x48437f(0xd6)](d[_0x48437f(0x1c6)]([this['_collabCursorController']['getCollabCursors$'](_0x3aed12),this[_0x48437f(0x29b)][_0x48437f(0x13e)]])[_0x48437f(0x28f)]($['map'](([_0x90f6af,_0x5c9e02])=>({'skeleton':_0xd93e25[_0x48437f(0x1a0)](),'cursors':[..._0x90f6af[_0x48437f(0x21e)]()][_0x48437f(0xc2)](_0x37fd95=>({..._0x37fd95,'color':this[_0x48437f(0x29b)]['getColorFromTheme'](_0x37fd95[_0x48437f(0x2df)])}))})))[_0x48437f(0x1cd)](_0xcec307=>{const _0x23eff4=_0x48437f;if(this[_0x23eff4(0x96)](),_0xcec307){const {skeleton:_0x526713,cursors:_0x377da6}=_0xcec307;this[_0x23eff4(0x147)](_0x526713,_0x377da6);}})),this[_0x48437f(0x186)](),this[_0x48437f(0x149)]();}[_0xb1f837(0x147)](_0xfe4011,_0xf8404b){const _0x5d3432=_0xb1f837,{scene:_0x2ffe36,mainComponent:_0xe5c2c5}=this[_0x5d3432(0x11b)],_0x5eb740=_0xf8404b[_0x5d3432(0x2ad)](_0x26ecc6=>new De(_0x26ecc6,_0x2ffe36,_0xfe4011,_0xe5c2c5));this[_0x5d3432(0x169)]=_0x5eb740,this['_cursors']=_0xf8404b;}[_0xb1f837(0x2bd)](){const _0x265570=_0xb1f837;this[_0x265570(0x96)]();const {scene:_0x3122c5,mainComponent:_0xb994a8}=this[_0x265570(0x11b)],_0x4c184a=this['_docSkeletonManagerService'][_0x265570(0x1a0)](),_0x5ca67d=this[_0x265570(0xc7)][_0x265570(0x2ad)](_0x5ea604=>new De(_0x5ea604,_0x3122c5,_0x4c184a,_0xb994a8));this[_0x265570(0x169)]=_0x5ca67d;}[_0xb1f837(0x96)](){const _0x877b8d=_0xb1f837;this['_cursorShapes'][_0x877b8d(0x13f)](_0xbd8d8e=>_0xbd8d8e[_0x877b8d(0x8c)]()),this[_0x877b8d(0x169)]=[];}[_0xb1f837(0x149)](){const _0x3ce523=_0xb1f837,_0x1c6ade=[E['SetDocZoomRatioOperation']['id']];this[_0x3ce523(0xd6)](this[_0x3ce523(0x275)][_0x3ce523(0x1b8)](_0x1da168=>{const _0x23d9fd=_0x3ce523;_0x1c6ade[_0x23d9fd(0x1b7)](_0x1da168['id'])&&_0x1da168[_0x23d9fd(0xff)][_0x23d9fd(0x211)]===this[_0x23d9fd(0x11b)][_0x23d9fd(0x211)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x3f292d=_0xb1f837;this[_0x3f292d(0xd6)](a['fromEventSubject'](this[_0x3f292d(0x11b)][_0x3f292d(0x1af)]['onTransformChange$'])['pipe']($[_0x3f292d(0x19d)](_0x2006ec=>_0x2006ec['type']===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x3f292d(0x214)]),$['throttleTime'](0x10))[_0x3f292d(0x1cd)](()=>{const _0x436aff=_0x3f292d;this[_0x436aff(0x2bd)]();}));}};fe=vt([W(0x1,a[_0xb1f837(0x175)](Y[_0xb1f837(0x7a)])),W(0x2,a[_0xb1f837(0x175)](x)),W(0x3,a['ICommandService']),W(0x4,a[_0xb1f837(0x175)](a[_0xb1f837(0x1f1)]))],fe);const gt=0x1,mt=1.5;class we extends p['Shape']{constructor(_0x4c7b53,_0x797dd7){const _0x440d52=_0xb1f837;super(_0x4c7b53,_0x797dd7),h(this,'_color'),h(this,'_hovered',!0x1),h(this,_0x440d52(0x85)),h(this,_0x440d52(0x2bb),''),h(this,_0x440d52(0xed),_0x440d52(0x20f)),h(this,'_backgroundColor'),(_0x797dd7&&this['setShapeProps'](_0x797dd7),this[_0x440d52(0x228)][_0x440d52(0x9a)](()=>this[_0x440d52(0x16f)]({'hovered':!0x0})),this[_0x440d52(0x2dc)]['subscribeEvent'](()=>this[_0x440d52(0x16f)]({'hovered':!0x1})));}[_0xb1f837(0x16f)](_0x1ba00a){const _0x31a791=_0xb1f837;var _0x59b0a3,_0x2c3cf9,_0x3486c6,_0x3d6bc4,_0x4b4f26,_0x37e47b;this[_0x31a791(0x24c)]=(_0x59b0a3=_0x1ba00a['color'])!=null?_0x59b0a3:this[_0x31a791(0x24c)],this['_hovered']=(_0x2c3cf9=_0x1ba00a[_0x31a791(0x121)])!=null?_0x2c3cf9:this[_0x31a791(0x166)],this[_0x31a791(0x85)]=(_0x3486c6=_0x1ba00a['range'])!=null?_0x3486c6:this[_0x31a791(0x85)],this[_0x31a791(0x2bb)]=(_0x3d6bc4=_0x1ba00a[_0x31a791(0x1cf)])!=null?_0x3d6bc4:this[_0x31a791(0x2bb)],this[_0x31a791(0xed)]=(_0x4b4f26=_0x1ba00a[_0x31a791(0x18b)])!=null?_0x4b4f26:this[_0x31a791(0xed)],this[_0x31a791(0x15d)]=(_0x37e47b=_0x1ba00a[_0x31a791(0x2dd)])!=null?_0x37e47b:this['_backgroundColor'],this[_0x31a791(0x24a)]({'width':_0x1ba00a[_0x31a791(0x8f)],'height':_0x1ba00a[_0x31a791(0x2cf)]});}[_0xb1f837(0x268)](_0x4f6519){const _0x38d4ce=_0xb1f837,{row:_0x4d6a7f,column:_0x287ddb}=_0x4f6519;if(_0x4d6a7f>=this[_0x38d4ce(0x85)][_0x38d4ce(0x112)]&&_0x4d6a7f<=this[_0x38d4ce(0x85)]['endRow']&&_0x287ddb>=this[_0x38d4ce(0x85)]['startColumn']&&_0x287ddb<=this[_0x38d4ce(0x85)][_0x38d4ce(0x1aa)]){this[_0x38d4ce(0x16f)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x434b41){return!0x1;}[_0xb1f837(0x2a5)](_0xd8a927){const _0x55b400=_0xb1f837;p['Rect'][_0x55b400(0x28e)](_0xd8a927,{'width':this[_0x55b400(0x8f)],'height':this[_0x55b400(0x2cf)],'strokeWidth':mt,'stroke':this[_0x55b400(0x24c)],'evented':!0x1,'fill':this[_0x55b400(0x15d)]}),this[_0x55b400(0x166)]&&(_0xd8a927[_0x55b400(0x1cb)](),_0xd8a927[_0x55b400(0x1f9)](0x1,0x0,0x0,0x1,this[_0x55b400(0x8f)],this['_labelPosition']==='bottom'?0x0:-0x14),ee[_0x55b400(0x28e)](_0xd8a927,{'text':this[_0x55b400(0x2bb)],'color':this[_0x55b400(0x24c)]}),_0xd8a927['restore']());}}var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x30fc8e,_0x5484c6,_0x279519,_0x37ded5)=>{const _0x42ed9a=_0xb1f837;for(var _0x43d283=_0x37ded5>0x1?void 0x0:_0x37ded5?Ct(_0x5484c6,_0x279519):_0x5484c6,_0x50b177=_0x30fc8e[_0x42ed9a(0x257)]-0x1,_0x9f17f8;_0x50b177>=0x0;_0x50b177--)(_0x9f17f8=_0x30fc8e[_0x50b177])&&(_0x43d283=_0x9f17f8(_0x43d283)||_0x43d283);return _0x43d283;},ae=(_0x2aa26a,_0x377826)=>(_0x43ce17,_0xcf2a64)=>_0x377826(_0x43ce17,_0xcf2a64,_0x2aa26a);const Et=0x1389;let ve=class extends a[_0xb1f837(0x292)]{constructor(_0x5c593d,_0x1e85ab,_0x30eea2,_0x4cfe58){const _0x181cdd=_0xb1f837;super(),h(this,_0x181cdd(0xc7),new Set()),h(this,_0x181cdd(0x16d),null),(this[_0x181cdd(0x11b)]=_0x5c593d,this['_sheetSkeletonManagerService']=_0x1e85ab,this[_0x181cdd(0x2c1)]=_0x30eea2,this[_0x181cdd(0x29b)]=_0x4cfe58,this[_0x181cdd(0x26a)]());}[_0xb1f837(0x26a)](){const _0x4ed027=_0xb1f837;this[_0x4ed027(0x1ac)]['currentSkeleton$'][_0x4ed027(0x28f)]($[_0x4ed027(0x206)](this[_0x4ed027(0x279)]),$[_0x4ed027(0x2bc)](_0x44e913=>{const _0x5f58f2=_0x4ed027;if(_0x44e913){const _0x2740d6=_0x44e913[_0x5f58f2(0x288)];return d[_0x5f58f2(0x1c6)](this[_0x5f58f2(0x2c1)][_0x5f58f2(0x2c3)](this[_0x5f58f2(0x11b)][_0x5f58f2(0x211)]),this[_0x5f58f2(0x29b)][_0x5f58f2(0x13e)])['pipe']($[_0x5f58f2(0x2ad)](([_0x1dc910,_0x541fa4])=>{const _0x11afe8=new Map();return _0x1dc910['forEach']((_0x317efa,_0x1ba4d9)=>{const _0x54a43a=_0x48f4;if(_0x317efa[_0x54a43a(0x182)]===_0x2740d6){const _0x220085={..._0x317efa};_0x220085[_0x54a43a(0x2df)]=this['_themeService'][_0x54a43a(0x14e)](_0x317efa[_0x54a43a(0x2df)]),_0x11afe8[_0x54a43a(0x134)](_0x1ba4d9,_0x220085);}}),{'skeleton':_0x44e913,'cursors':_0x11afe8};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x12b71a,cursors:_0x4be9c3})=>{const _0x1c5ae0=_0x4ed027;this[_0x1c5ae0(0x96)](),_0x12b71a&&this[_0x1c5ae0(0x147)](_0x12b71a,_0x4be9c3);}),this['_sheetSkeletonManagerService'][_0x4ed027(0x1eb)][_0x4ed027(0x1cd)](_0x686b2=>{const _0x4816ea=_0x4ed027;if(_0x686b2==null)return;const {skeleton:_0x4d92cd}=_0x686b2,{scene:_0x33427b}=this[_0x4816ea(0x11b)];_0x33427b[_0x4816ea(0x25c)][_0x4816ea(0x9a)](a[_0x4816ea(0xca)](_0x441ff7=>{const _0x52f0d7=_0x4816ea;var _0x410ca7,_0x1b89a3;const {offsetX:_0x45df8b,offsetY:_0x28ccac}=_0x441ff7,{x:_0x3ddacf,y:_0x38d619}=_0x33427b[_0x52f0d7(0xb7)](p[_0x52f0d7(0xc4)][_0x52f0d7(0x1e3)]([_0x45df8b,_0x28ccac])),{scaleX:_0x1eb67a,scaleY:_0x34ed2a}=_0x33427b['getAncestorScale'](),_0x460271=_0x33427b[_0x52f0d7(0xa1)](p[_0x52f0d7(0x191)]['VIEW_MAIN']),_0x5c8393=_0x33427b[_0x52f0d7(0x217)](p[_0x52f0d7(0xc4)][_0x52f0d7(0x1e3)]([_0x3ddacf,_0x38d619]),_0x460271),_0x10d48b=_0x4d92cd['getCellPositionByOffset'](_0x45df8b,_0x28ccac,_0x1eb67a,_0x34ed2a,_0x5c8393);((_0x410ca7=this[_0x52f0d7(0x16d)])==null?void 0x0:_0x410ca7[_0x52f0d7(0x1ad)])===_0x10d48b[_0x52f0d7(0x1ad)]&&((_0x1b89a3=this[_0x52f0d7(0x16d)])==null?void 0x0:_0x1b89a3['row'])===_0x10d48b[_0x52f0d7(0x70)]||this[_0x52f0d7(0xc7)][_0x52f0d7(0x13f)](_0x1d9370=>{_0x1d9370['onMouseMove'](_0x10d48b);});},0x64));});}['_updateCollabCursors'](_0x110e6a,_0x516d9f){const _0x2bd2f4=_0xb1f837;var _0x58edfa;const _0x50e1dc=(_0x58edfa=this[_0x2bd2f4(0x1ac)][_0x2bd2f4(0x238)]())==null?void 0x0:_0x58edfa[_0x2bd2f4(0x94)];if(!_0x50e1dc)return;const _0x29f33c=this['_getSheetObject']();if(!_0x29f33c)return;this['_cursors'][_0x2bd2f4(0x13f)](_0x13d333=>{_0x13d333['makeDirty']();});const {scene:_0x4ab849}=_0x29f33c,_0x2bf76b=bt(Array[_0x2bd2f4(0x2d9)](_0x516d9f['values']()))[_0x2bd2f4(0x2ad)](_0x2676d4=>{const _0x214835=_0x2bd2f4,{color:_0x36853a,range:_0x192ad4,name:_0x5944bf,selection:_0x101c82,sheetID:_0x43431b}=_0x2676d4,{startColumn:_0x34905b,startRow:_0x44f94c,endColumn:_0xa70252,endRow:_0x447a38}=_0x192ad4,_0x2b72c2=X[_0x214835(0x2ca)](_0x44f94c,_0x34905b,_0x4ab849,_0x50e1dc),_0x45d143=X[_0x214835(0x2ca)](_0x447a38,_0xa70252,_0x4ab849,_0x50e1dc),{columnHeaderHeightAndMarginTop:_0xab74c6}=_0x50e1dc,{startX:_0x126406,startY:_0x2a0012}=_0x2b72c2,{endX:_0x5cba44,endY:_0x12164e}=_0x45d143,_0x3afd77=_0x5cba44-_0x126406,_0x7689ea=_0x12164e-_0x2a0012,_0xf8839d={'labelPosition':_0x2a0012-_0xab74c6>=K?'top':_0x214835(0x2b3),'sheetID':_0x43431b,'range':_0x192ad4,'color':_0x36853a,'name':_0x5944bf,'selection':_0x101c82,'left':_0x126406,'top':_0x2a0012,'width':_0x3afd77,'height':_0x7689ea,'evented':!0x1,'zIndex':Et};return new we(_0x5944bf,_0xf8839d);});_0x4ab849[_0x2bd2f4(0x28c)](_0x2bf76b,gt),this['_cursors']=new Set(_0x2bf76b);}[_0xb1f837(0x96)](){const _0x4727c9=_0xb1f837;var _0x5deafd;(_0x5deafd=this[_0x4727c9(0xc7)])==null||_0x5deafd['forEach'](_0x5bc31e=>_0x5bc31e[_0x4727c9(0x8c)]());}[_0xb1f837(0x127)](){const _0x3ec2ed=_0xb1f837;return X[_0x3ec2ed(0x141)](this[_0x3ec2ed(0x11b)][_0x3ec2ed(0x232)],this['_context']);}};ve=pt([ae(0x1,a[_0xb1f837(0x175)](X['SheetSkeletonManagerService'])),ae(0x2,a[_0xb1f837(0x175)](x)),ae(0x3,a[_0xb1f837(0x175)](a[_0xb1f837(0x1f1)]))],ve);function bt(_0x262298){const _0x4565c8=_0xb1f837,_0x1920a1=new Map();return _0x262298['forEach'](_0x18ab5d=>{const _0x37bdb5=_0x48f4;if(_0x1920a1['has'](_0x18ab5d[_0x37bdb5(0x6f)])){const _0x4cec43=_0x1920a1[_0x37bdb5(0xd1)](_0x18ab5d['selection']);_0x4cec43[_0x37bdb5(0x1cf)]+=',\x20'+_0x18ab5d[_0x37bdb5(0x1cf)];}else _0x1920a1[_0x37bdb5(0x134)](_0x18ab5d[_0x37bdb5(0x6f)],_0x18ab5d);}),Array[_0x4565c8(0x2d9)](_0x1920a1[_0x4565c8(0x21e)]());}var b=function(){const _0x4b6138=_0xb1f837;return b=Object['assign']||function(_0x3fb3d4){const _0x349586=_0x48f4;for(var _0x5d308b,_0x4ff4b9=0x1,_0x4c15cf=arguments[_0x349586(0x257)];_0x4ff4b9<_0x4c15cf;_0x4ff4b9++){_0x5d308b=arguments[_0x4ff4b9];for(var _0x2c932e in _0x5d308b)Object[_0x349586(0x72)][_0x349586(0xa9)][_0x349586(0xf0)](_0x5d308b,_0x2c932e)&&(_0x3fb3d4[_0x2c932e]=_0x5d308b[_0x2c932e]);}return _0x3fb3d4;},b[_0x4b6138(0x223)](this,arguments);},Ot=function(_0x2fa42a,_0x5cf83f){const _0x3e13ef=_0xb1f837;var _0x534ecd={};for(var _0x7b26a0 in _0x2fa42a)Object[_0x3e13ef(0x72)][_0x3e13ef(0xa9)][_0x3e13ef(0xf0)](_0x2fa42a,_0x7b26a0)&&_0x5cf83f[_0x3e13ef(0x2c9)](_0x7b26a0)<0x0&&(_0x534ecd[_0x7b26a0]=_0x2fa42a[_0x7b26a0]);if(_0x2fa42a!=null&&typeof Object[_0x3e13ef(0x146)]==_0x3e13ef(0x7c)){for(var _0x5197a6=0x0,_0x7b26a0=Object[_0x3e13ef(0x146)](_0x2fa42a);_0x5197a6<_0x7b26a0['length'];_0x5197a6++)_0x5cf83f[_0x3e13ef(0x2c9)](_0x7b26a0[_0x5197a6])<0x0&&Object['prototype'][_0x3e13ef(0xb1)][_0x3e13ef(0xf0)](_0x2fa42a,_0x7b26a0[_0x5197a6])&&(_0x534ecd[_0x7b26a0[_0x5197a6]]=_0x2fa42a[_0x7b26a0[_0x5197a6]]);}return _0x534ecd;},pe=M[_0xb1f837(0x273)](function(_0x1a7c15,_0xeab5ca){const _0x2a0310=_0xb1f837;var _0x30cb09=_0x1a7c15['icon'],_0x1bd6e5=_0x1a7c15['id'],_0x2439a6=_0x1a7c15[_0x2a0310(0xdc)],_0xd9c136=_0x1a7c15[_0x2a0310(0x2b7)],_0x3c3384=Ot(_0x1a7c15,[_0x2a0310(0xa4),'id',_0x2a0310(0xdc),_0x2a0310(0x2b7)]),_0x3d9135='univerjs-icon\x20univerjs-icon-'[_0x2a0310(0x287)](_0x1bd6e5,'\x20')[_0x2a0310(0x287)](_0x2439a6||'')[_0x2a0310(0x24b)](),_0x4698b8=M['useRef']('_'[_0x2a0310(0x287)](Dt()));return Ae(_0x30cb09,''[_0x2a0310(0x287)](_0x1bd6e5),{'defIds':_0x30cb09['defIds'],'idSuffix':_0x4698b8[_0x2a0310(0xf5)]},b({'ref':_0xeab5ca,'className':_0x3d9135},_0x3c3384),_0xd9c136);});function Ae(_0x3c931e,_0xa7a7de,_0xa02547,_0x5b3466,_0x2559e6){const _0x1a7ca6=_0xb1f837;return M['createElement'](_0x3c931e['tag'],b(b({'key':_0xa7a7de},Tt(_0x3c931e,_0xa02547,_0x2559e6)),_0x5b3466),(Rt(_0x3c931e,_0xa02547)[_0x1a7ca6(0x199)]||[])[_0x1a7ca6(0x2ad)](function(_0x2bb598,_0x1425db){const _0x488651=_0x1a7ca6;return Ae(_0x2bb598,''[_0x488651(0x287)](_0xa7a7de,'-')[_0x488651(0x287)](_0x3c931e[_0x488651(0x2a3)],'-')[_0x488651(0x287)](_0x1425db),_0xa02547,void 0x0,_0x2559e6);}));}function Tt(_0xbbe0a7,_0x5823bc,_0x311bf2){const _0x5ec3ba=_0xb1f837;var _0x2a3101=b({},_0xbbe0a7['attrs']);_0x311bf2!=null&&_0x311bf2[_0x5ec3ba(0xc6)]&&_0x2a3101[_0x5ec3ba(0xd0)]===_0x5ec3ba(0xc6)&&(_0x2a3101['fill']=_0x311bf2['colorChannel1']),_0xbbe0a7[_0x5ec3ba(0x2a3)]===_0x5ec3ba(0x246)&&_0x2a3101['id']&&(_0x2a3101['id']=_0x2a3101['id']+_0x5823bc[_0x5ec3ba(0x1db)]),Object[_0x5ec3ba(0x11d)](_0x2a3101)['forEach'](function(_0x505685){const _0x326a1d=_0x5ec3ba;var _0x578386=_0x505685[0x0],_0x27e616=_0x505685[0x1];_0x578386===_0x326a1d(0x246)&&typeof _0x27e616=='string'&&(_0x2a3101[_0x578386]=_0x27e616[_0x326a1d(0x2b6)](/url\(#(.*)\)/,'url(#$1'[_0x326a1d(0x287)](_0x5823bc['idSuffix'],')')));});var _0x36cd76=_0x5823bc[_0x5ec3ba(0xb3)];return!_0x36cd76||_0x36cd76[_0x5ec3ba(0x257)]===0x0||(_0xbbe0a7[_0x5ec3ba(0x2a3)]===_0x5ec3ba(0x1fb)&&_0x2a3101[_0x5ec3ba(0x1b6)]&&(_0x2a3101[_0x5ec3ba(0x1b6)]=_0x2a3101[_0x5ec3ba(0x1b6)]+_0x5823bc[_0x5ec3ba(0x1db)]),Object['entries'](_0x2a3101)[_0x5ec3ba(0x13f)](function(_0x1130b9){const _0x377d2f=_0x5ec3ba;var _0x3e6a05=_0x1130b9[0x0],_0x1906fe=_0x1130b9[0x1];typeof _0x1906fe=='string'&&(_0x2a3101[_0x3e6a05]=_0x1906fe['replace'](/url\(#(.*)\)/,_0x377d2f(0x1da)['concat'](_0x5823bc[_0x377d2f(0x1db)],')')));})),_0x2a3101;}function Rt(_0x5670e7,_0x5b5331){const _0x12842a=_0xb1f837;var _0x25c89b,_0x55cbac=_0x5b5331[_0x12842a(0xb3)];return!_0x55cbac||_0x55cbac[_0x12842a(0x257)]===0x0?_0x5670e7:_0x5670e7[_0x12842a(0x2a3)]===_0x12842a(0xc1)&&(!((_0x25c89b=_0x5670e7[_0x12842a(0x199)])===null||_0x25c89b===void 0x0)&&_0x25c89b['length'])?b(b({},_0x5670e7),{'children':_0x5670e7['children'][_0x12842a(0x2ad)](function(_0x37f47a){const _0xfe10e1=_0x12842a;return typeof _0x37f47a['attrs']['id']=='string'&&_0x55cbac&&_0x55cbac[_0xfe10e1(0x1b7)](_0x37f47a[_0xfe10e1(0x195)]['id'])?b(b({},_0x37f47a),{'attrs':b(b({},_0x37f47a['attrs']),{'id':_0x37f47a['attrs']['id']+_0x5b5331[_0xfe10e1(0x1db)]})}):_0x37f47a;})}):_0x5670e7;}function Dt(){const _0x4b055b=_0xb1f837;return Math[_0x4b055b(0x219)]()[_0x4b055b(0x180)](0x24)[_0x4b055b(0x1a6)](0x2,0x8);}pe['displayName']=_0xb1f837(0x2a2);var Ut={'tag':'svg','attrs':{'xmlns':_0xb1f837(0x189),'fill':_0xb1f837(0xa7),'viewBox':_0xb1f837(0x282),'width':_0xb1f837(0x2b2),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0xb1f837(0x255),'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':_0xb1f837(0x1ee),'strokeWidth':1.2}}]},{'tag':_0xb1f837(0xc1),'attrs':{},'children':[{'tag':_0xb1f837(0x1de),'attrs':{'id':_0xb1f837(0x2c8)},'children':[{'tag':_0xb1f837(0xad),'attrs':{'fill':_0xb1f837(0x27f),'d':_0xb1f837(0x19b)}}]}]}],'defIds':[_0xb1f837(0x2c8)]},ye=M[_0xb1f837(0x273)](function(_0x193720,_0x1d264f){const _0x4d0d9f=_0xb1f837;return M['createElement'](pe,Object[_0x4d0d9f(0x289)]({},_0x193720,{'id':'off-line-icon','ref':_0x1d264f,'icon':Ut}));});ye[_0xb1f837(0x1bd)]=_0xb1f837(0x82);var Nt={'tag':'svg','attrs':{'xmlns':_0xb1f837(0x189),'fill':_0xb1f837(0xa7),'viewBox':'0\x200\x2017\x2016','width':_0xb1f837(0x2b2),'height':_0xb1f837(0x2b2)},'children':[{'tag':'g','attrs':{'clipPath':_0xb1f837(0xee)},'children':[{'tag':_0xb1f837(0xad),'attrs':{'stroke':_0xb1f837(0x255),'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':_0xb1f837(0x1ee),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xb1f837(0xc1),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xb1f837(0x1fd)},'children':[{'tag':_0xb1f837(0xad),'attrs':{'fill':_0xb1f837(0x27f),'d':_0xb1f837(0x19b),'transform':_0xb1f837(0x75)}}]}]}],'defIds':[_0xb1f837(0x1fd)]},$e=M['forwardRef'](function(_0x157ec4,_0x54270b){const _0x54e51a=_0xb1f837;return M[_0x54e51a(0x10a)](pe,Object[_0x54e51a(0x289)]({},_0x157ec4,{'id':_0x54e51a(0x18c),'ref':_0x54270b,'icon':Nt}));});$e[_0xb1f837(0x1bd)]=_0xb1f837(0xac);function Mt(_0x4ad039){const _0x1a8b71=_0xb1f837;switch(_0x4ad039){case u[_0x1a8b71(0x1f5)][_0x1a8b71(0x22b)]:return _0x1a8b71(0x213);case u[_0x1a8b71(0x1f5)][_0x1a8b71(0x163)]:return'collabStatus.conflict';case u['CollaborationStatus'][_0x1a8b71(0x107)]:return _0x1a8b71(0x1ab);case u[_0x1a8b71(0x1f5)]['NOT_COLLAB']:return _0x1a8b71(0xf7);case u['CollaborationStatus'][_0x1a8b71(0x150)]:case u[_0x1a8b71(0x1f5)]['AWAITING_WITH_PENDING']:return _0x1a8b71(0x120);case u[_0x1a8b71(0x1f5)][_0x1a8b71(0x129)]:case u['CollaborationStatus']['PENDING']:return _0x1a8b71(0x113);}}function xe(_0x19e3dc){const _0x3a7831=_0xb1f837,{status$:_0x54ec30}=_0x19e3dc,_0x1820a0=O[_0x3a7831(0x20c)](_0x54ec30,u[_0x3a7831(0x1f5)][_0x3a7831(0xdd)]),_0x13cbe8=O['useDependency'](a['LocaleService']),_0x2aaddb=O[_0x3a7831(0x6c)](u[_0x3a7831(0xb4)]),_0x439a8e=_0x1820a0!==u['CollaborationStatus'][_0x3a7831(0x22b)],_0x259ada=_0x13cbe8['t'](Mt(_0x1820a0)),_0x22a0e0=_0x439a8e?P[_0x3a7831(0x111)]($e,{}):P[_0x3a7831(0x111)](ye,{}),_0x58c935=M[_0x3a7831(0xf8)](()=>{const _0x3231ad=_0x3a7831;_0x439a8e||_0x2aaddb[_0x3231ad(0x12c)]();},[_0x439a8e,_0x2aaddb]);function _0x4727a2(){const _0xcf13f6=_0x3a7831;return P[_0xcf13f6(0x145)](_0xcf13f6(0x14a),{'className':'univer-flex\x20univer-items-center','onClick':_0x58c935,'children':[P[_0xcf13f6(0x111)]('div',{'className':D['clsx']('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x439a8e,'univer-text-red-500':!_0x439a8e}),'children':_0x22a0e0}),P['jsx']('div',{'className':_0xcf13f6(0xdb),'children':_0x259ada})]});}return _0x439a8e?_0x4727a2():P[_0x3a7831(0x111)](D[_0x3a7831(0x25a)],{'title':_0x13cbe8['t'](_0x3a7831(0x71)),'children':_0x4727a2()});}var Lt=Object[_0xb1f837(0x19a)],Pt=(_0x2e5d61,_0x52e2eb,_0x5880ca,_0x55821c)=>{const _0x47bd3c=_0xb1f837;for(var _0x231ec7=_0x55821c>0x1?void 0x0:_0x55821c?Lt(_0x52e2eb,_0x5880ca):_0x52e2eb,_0x8cb3c1=_0x2e5d61[_0x47bd3c(0x257)]-0x1,_0x64c2a1;_0x8cb3c1>=0x0;_0x8cb3c1--)(_0x64c2a1=_0x2e5d61[_0x8cb3c1])&&(_0x231ec7=_0x64c2a1(_0x231ec7)||_0x231ec7);return _0x231ec7;},V=(_0x35e362,_0x40434d)=>(_0x4363e1,_0x5ea00b)=>_0x40434d(_0x4363e1,_0x5ea00b,_0x35e362);exports[_0xb1f837(0x194)]=class extends a[_0xb1f837(0x2af)]{constructor(_0x2562c2,_0x56e677,_0x13c1f7,_0x1567ff){const _0x1918c1=_0xb1f837;super(),h(this,_0x1918c1(0x212),new d['BehaviorSubject'](u[_0x1918c1(0x1f5)][_0x1918c1(0xdd)])),(this['_univerInstanceService']=_0x2562c2,this[_0x1918c1(0x144)]=_0x56e677,this[_0x1918c1(0x86)]=_0x13c1f7,this[_0x1918c1(0xf1)]=_0x1567ff,this[_0x1918c1(0x247)](),this[_0x1918c1(0x29c)]());}[_0xb1f837(0x29c)](){const _0x20c763=_0xb1f837;this[_0x20c763(0xd6)](this[_0x20c763(0x76)][_0x20c763(0x1d4)]['pipe'](d['switchMap'](()=>{const _0x5533d4=_0x20c763,_0x236265=this['_univerInstanceService'][_0x5533d4(0x1ce)]();return _0x236265?this['_collaborationController'][_0x5533d4(0x109)](_0x236265['getUnitId']()):d['of'](null);}),d[_0x20c763(0x2bc)](_0x2c1ef1=>_0x2c1ef1?_0x2c1ef1[_0x20c763(0x1b9)]:d['of'](u[_0x20c763(0x1f5)]['NOT_COLLAB'])))[_0x20c763(0x1cd)](_0x180e5c=>{const _0xfc5e06=_0x20c763;this['_status$'][_0xfc5e06(0xdf)](_0x180e5c);}));}['_initStatusComponent'](){const _0x56aae1=_0xb1f837;this[_0x56aae1(0xd6)](this[_0x56aae1(0xf1)]['registerComponent'](O['BuiltInUIPart'][_0x56aae1(0x156)],()=>O[_0x56aae1(0x20d)](wt({'status$':this[_0x56aae1(0x212)][_0x56aae1(0xe0)]()}),this[_0x56aae1(0x144)])));}},exports[_0xb1f837(0x194)]=Pt([V(0x0,a[_0xb1f837(0x18a)]),V(0x1,a[_0xb1f837(0x175)](a[_0xb1f837(0x172)])),V(0x2,a['Inject'](u['CollaborationController'])),V(0x3,O[_0xb1f837(0x148)])],exports[_0xb1f837(0x194)]);function wt(_0x28f58c){const {status$:_0x287119}=_0x28f58c;return function(){const _0x14e8ea=_0x48f4;return P[_0x14e8ea(0x111)](xe,{'status$':_0x287119});};}var At=Object[_0xb1f837(0x19a)],yt=(_0x438d58,_0xd613b7,_0x105050,_0x3c6b17)=>{const _0x5115f4=_0xb1f837;for(var _0x158176=_0x3c6b17>0x1?void 0x0:_0x3c6b17?At(_0xd613b7,_0x105050):_0xd613b7,_0x464901=_0x438d58[_0x5115f4(0x257)]-0x1,_0x51b9e7;_0x464901>=0x0;_0x464901--)(_0x51b9e7=_0x438d58[_0x464901])&&(_0x158176=_0x51b9e7(_0x158176)||_0x158176);return _0x158176;},y=(_0x2d4b02,_0x4db63a)=>(_0x4e0f79,_0x465983)=>_0x4db63a(_0x4e0f79,_0x465983,_0x2d4b02);let q=class extends a['Disposable']{constructor(_0x23e41b,_0x23f3c0,_0x36bd2b,_0x2fd6a1,_0x5606d,_0x5639aa){const _0x164515=_0xb1f837;super(),this[_0x164515(0x14d)]=_0x23e41b,this[_0x164515(0x1f6)]=_0x23f3c0,this[_0x164515(0x24f)]=_0x36bd2b,this[_0x164515(0x179)]=_0x2fd6a1,this[_0x164515(0x11e)]=_0x5606d,this[_0x164515(0xa5)]=_0x5639aa,this['_setupBeforeClosingHandler'](),this[_0x164515(0x26b)]();}[_0xb1f837(0x1cc)](){const _0x5815be=_0xb1f837;this[_0x5815be(0xd6)](this[_0x5815be(0x14d)][_0x5815be(0x29f)](()=>{const _0x10a15b=_0x5815be;if(this[_0x10a15b(0x1f6)][_0x10a15b(0x2d4)][_0x10a15b(0x1df)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}[_0xb1f837(0x26b)](){const _0x510478=_0xb1f837;this['disposeWithMe'](this[_0x510478(0x24f)]['event$'][_0x510478(0x1cd)](_0x17e960=>{const _0x5d32ea=_0x510478;_0x17e960['id']===u['CollaborationUIEventId'][_0x5d32ea(0x152)]&&this[_0x5d32ea(0x179)][_0x5d32ea(0x192)]({'type':D[_0x5d32ea(0x133)][_0x5d32ea(0x143)],'content':this[_0x5d32ea(0xa5)]['t'](_0x5d32ea(0x140))}),_0x17e960['id']===u[_0x5d32ea(0x227)][_0x5d32ea(0x187)]&&this['_messageService']['show']({'type':D[_0x5d32ea(0x133)]['Warning'],'content':this[_0x5d32ea(0xa5)]['t'](_0x5d32ea(0x128))}),_0x17e960['id']===u[_0x5d32ea(0x227)]['PERMISSION_DENIED']&&this[_0x5d32ea(0x11e)][_0x5d32ea(0x192)]({'title':this[_0x5d32ea(0xa5)]['t'](_0x5d32ea(0x79)),'content':this[_0x5d32ea(0xa5)]['t']('permission.content'),'type':'error','duration':0x0}),_0x17e960['id']===u[_0x5d32ea(0x227)][_0x5d32ea(0x163)]&&this[_0x5d32ea(0x179)][_0x5d32ea(0x192)]({'type':D[_0x5d32ea(0x133)][_0x5d32ea(0x2e6)],'content':this[_0x5d32ea(0xa5)]['t'](_0x5d32ea(0x128))+'('+_0x17e960[_0x5d32ea(0x283)]+')'}),_0x17e960['id']===u[_0x5d32ea(0x227)][_0x5d32ea(0x2cc)]&&this[_0x5d32ea(0x179)][_0x5d32ea(0x192)]({'type':D[_0x5d32ea(0x133)][_0x5d32ea(0x143)],'content':this[_0x5d32ea(0xa5)]['t'](_0x17e960[_0x5d32ea(0x283)]||'')}),_0x17e960['id']===u[_0x5d32ea(0x227)][_0x5d32ea(0xbb)]&&this['_messageService'][_0x5d32ea(0x192)]({'type':D['MessageType'][_0x5d32ea(0x143)],'content':this['_localeService']['t']('session.will-retry')}),_0x17e960['id']===u[_0x5d32ea(0x227)][_0x5d32ea(0x2c0)]&&this[_0x5d32ea(0x179)][_0x5d32ea(0x192)]({'type':D[_0x5d32ea(0x133)][_0x5d32ea(0x2e6)],'content':this[_0x5d32ea(0xa5)]['t'](_0x5d32ea(0x21c))}),_0x17e960['id']===u[_0x5d32ea(0x227)][_0x5d32ea(0x27e)]&&this[_0x5d32ea(0x179)]['show']({'type':D[_0x5d32ea(0x133)][_0x5d32ea(0x2e6)],'content':this['_localeService']['t'](_0x5d32ea(0x1d0))});}));}};q=yt([y(0x0,O[_0xb1f837(0x14f)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0xb1f837(0x175)](u[_0xb1f837(0xe2)])),y(0x3,O[_0xb1f837(0x27c)]),y(0x4,O[_0xb1f837(0xde)]),y(0x5,a[_0xb1f837(0x175)](a[_0xb1f837(0x154)]))],q);const $t=_0xb1f837(0x1c3),Ue={},Ee=a['createIdentifier'](_0xb1f837(0xbd));var xt=Object['getOwnPropertyDescriptor'],Bt=(_0x11c3e1,_0x5ef7ed,_0x40594e,_0x5bce7b)=>{const _0x46482d=_0xb1f837;for(var _0x42513f=_0x5bce7b>0x1?void 0x0:_0x5bce7b?xt(_0x5ef7ed,_0x40594e):_0x5ef7ed,_0x29cbdc=_0x11c3e1[_0x46482d(0x257)]-0x1,_0x3418cd;_0x29cbdc>=0x0;_0x29cbdc--)(_0x3418cd=_0x11c3e1[_0x29cbdc])&&(_0x42513f=_0x3418cd(_0x42513f)||_0x42513f);return _0x42513f;},F=(_0x2237d4,_0x1e9ae2)=>(_0x59bc69,_0x28475e)=>_0x1e9ae2(_0x59bc69,_0x28475e,_0x2237d4);exports[_0xb1f837(0x1ff)]=class extends a[_0xb1f837(0x292)]{constructor(_0x52a21d,_0x3291,_0x5122b7,_0x36bc11,_0x2cbb8e){const _0x272531=_0xb1f837;super(),this[_0x272531(0x278)]=_0x52a21d,this[_0x272531(0xf3)]=_0x3291,this[_0x272531(0x275)]=_0x5122b7,this[_0x272531(0xc0)]=_0x36bc11,_0x2cbb8e?_0x2cbb8e==null||_0x2cbb8e['whenReady']()[_0x272531(0x1ba)](()=>this[_0x272531(0x26a)]()):(this['_logService'][_0x272531(0x7d)](_0x272531(0xc9),_0x272531(0x2c5)),this[_0x272531(0x26a)]());}async[_0xb1f837(0x26a)](){const _0x33e881=_0xb1f837,_0x4ea310=this['_urlService'][_0x33e881(0xfc)](_0x33e881(0x232)),_0x5dc0ff=this['_urlService']['getParam']('type'),_0x59772b=this['_urlService'][_0x33e881(0xfc)]('subunit');if(!_0x4ea310||!_0x5dc0ff){this[_0x33e881(0xf3)][_0x33e881(0x7d)](_0x33e881(0xc9),_0x33e881(0x244));return;}const _0x539c2e=await this[_0x33e881(0xc0)][_0x33e881(0xda)](_0x4ea310,Number(_0x5dc0ff),_0x59772b);_0x539c2e&&_0x539c2e instanceof a[_0x33e881(0x2a6)]&&this[_0x33e881(0x225)](_0x539c2e);}async['_setupSubUnitSync'](_0xe58aab){const _0x2b2f61=_0xb1f837;await this[_0x2b2f61(0x245)](_0xe58aab),_0xe58aab[_0x2b2f61(0x1f3)][_0x2b2f61(0x28f)](d['takeUntil'](this[_0x2b2f61(0x279)]))[_0x2b2f61(0x1cd)](_0x503a9f=>{_0x503a9f&&this['_updateURLWithCurrentState'](_0x503a9f);}),this[_0x2b2f61(0x278)][_0x2b2f61(0x14c)][_0x2b2f61(0x28f)](d[_0x2b2f61(0x206)](this[_0x2b2f61(0x279)]))[_0x2b2f61(0x1cd)](()=>this[_0x2b2f61(0x245)](_0xe58aab));}[_0xb1f837(0x2ab)](_0x27e96f,_0x135c25=!0x1){const _0x2ee746=_0xb1f837,_0x439444=this['_urlService'][_0x2ee746(0xfc)](_0x2ee746(0xa0));_0x27e96f[_0x2ee746(0x14b)]()!==_0x439444&&this[_0x2ee746(0x278)]['setParam'](_0x2ee746(0xa0),_0x27e96f[_0x2ee746(0x14b)](),_0x135c25);}async[_0xb1f837(0x245)](_0x175b02){const _0x26fec4=_0xb1f837;var _0x134d74;const _0x21f165=this[_0x26fec4(0x278)]['getParam'](_0x26fec4(0xa0));if(!_0x21f165||!_0x175b02[_0x26fec4(0x242)](_0x21f165)){const _0x2df19f=_0x175b02[_0x26fec4(0x256)]()[0x0],_0x6a4d33=_0x175b02[_0x26fec4(0x242)](_0x2df19f);if(!_0x6a4d33)return;this[_0x26fec4(0x2ab)](_0x6a4d33,!0x0),await this[_0x26fec4(0x275)][_0x26fec4(0x2e0)](g[_0x26fec4(0x272)]['id'],{'unitId':_0x175b02[_0x26fec4(0xd4)](),'subUnitId':_0x2df19f});return;}((_0x134d74=_0x175b02[_0x26fec4(0xa6)]())==null?void 0x0:_0x134d74[_0x26fec4(0x14b)]())!==_0x21f165&&await this['_commandService']['executeCommand'](g[_0x26fec4(0x272)]['id'],{'unitId':_0x175b02[_0x26fec4(0xd4)](),'subUnitId':_0x21f165});}},exports[_0xb1f837(0x1ff)]=Bt([F(0x0,Ee),F(0x1,a[_0xb1f837(0x261)]),F(0x2,a[_0xb1f837(0x19c)]),F(0x3,a[_0xb1f837(0x175)](u[_0xb1f837(0x2c2)])),F(0x4,a[_0xb1f837(0x181)](Ke[_0xb1f837(0x16b)]))],exports[_0xb1f837(0x1ff)]);var jt=Object[_0xb1f837(0x19a)],kt=(_0x2ae741,_0x1be8c0,_0x5b750f,_0x3a846d)=>{const _0x3bb871=_0xb1f837;for(var _0x1246c0=_0x3a846d>0x1?void 0x0:_0x3a846d?jt(_0x1be8c0,_0x5b750f):_0x1be8c0,_0x24144b=_0x2ae741[_0x3bb871(0x257)]-0x1,_0x364b56;_0x24144b>=0x0;_0x24144b--)(_0x364b56=_0x2ae741[_0x24144b])&&(_0x1246c0=_0x364b56(_0x1246c0)||_0x1246c0);return _0x1246c0;},ce=(_0x390e77,_0x48938f)=>(_0x36d30f,_0x1e3825)=>_0x48938f(_0x36d30f,_0x1e3825,_0x390e77);let z=class{constructor(_0x44b821,_0x3a023d,_0x3ec4cf){const _0x332eb3=_0xb1f837;this[_0x332eb3(0x144)]=_0x44b821,this[_0x332eb3(0x250)]=_0x3a023d,this[_0x332eb3(0x118)]=_0x3ec4cf;}[_0xb1f837(0x117)](_0x4d2557){const _0x146414=_0xb1f837;this[_0x146414(0x215)](_0x4d2557),this[_0x146414(0x1ec)](_0x4d2557);}['transformRemoteChangeset'](_0x2d1a00){const _0x4ba10f=_0xb1f837,{unitID:_0x1ba8f8}=_0x2d1a00,_0x5ee9ea=this[_0x4ba10f(0x118)][_0x4ba10f(0x1f0)](_0x1ba8f8)[_0x4ba10f(0x102)](E['DocIMEInputManagerService']),{redoCache:_0x34f4e3}=_0x5ee9ea['getUndoRedoMutationParamsCache']();if(_0x34f4e3[_0x4ba10f(0x257)]===0x0)return _0x2d1a00;let _0x5f50d3=a[_0x4ba10f(0x2ce)][_0x4ba10f(0x17b)](_0x2d1a00[_0x4ba10f(0xbc)][0x0]);for(let _0x195e1c=0x0;_0x195e1c<_0x34f4e3['length'];_0x195e1c++){const _0x169bd3={'id':_0x4ba10f(0x10c),'params':{..._0x34f4e3[_0x195e1c]}},_0x486547=this[_0x4ba10f(0x250)][_0x4ba10f(0x2e1)](_0x5f50d3,_0x169bd3,!0x1);if(m[_0x4ba10f(0x19f)](_0x486547))throw _0x486547['error'];_0x5f50d3=_0x486547[_0x4ba10f(0xaa)];}return{...a['Tools']['deepClone'](_0x2d1a00),'mutations':[_0x5f50d3]};}[_0xb1f837(0x215)](_0x53d259){const _0xb6fd0d=_0xb1f837,{unitID:_0x4ad461}=_0x53d259,_0xe37ab0=this[_0xb6fd0d(0x118)][_0xb6fd0d(0x1f0)](_0x4ad461)[_0xb6fd0d(0x102)](E[_0xb6fd0d(0x22a)]),{undoCache:_0x53f2e8,redoCache:_0x312f63}=_0xe37ab0[_0xb6fd0d(0x77)]();if(_0x53f2e8[_0xb6fd0d(0x257)]===0x0||_0x312f63[_0xb6fd0d(0x257)]===0x0)return;const _0x5bf148=[],_0x4ddf2d=[];let _0x77221c=a[_0xb6fd0d(0x2ce)][_0xb6fd0d(0x17b)](_0x53d259[_0xb6fd0d(0xbc)][0x0]),_0x54d1b1=a[_0xb6fd0d(0x2ce)][_0xb6fd0d(0x17b)](_0x53d259[_0xb6fd0d(0xbc)][0x0]);for(let _0x29c6c4=_0x53f2e8[_0xb6fd0d(0x257)]-0x1;_0x29c6c4>=0x0;_0x29c6c4--){const _0x2731be={'id':_0xb6fd0d(0x10c),'params':{..._0x53f2e8[_0x29c6c4]}},_0x5982bf={'id':_0xb6fd0d(0x10c),'params':{..._0x312f63[_0x29c6c4]}},_0x4f8349=this['_transformService'][_0xb6fd0d(0x2e1)](_0x77221c,_0x2731be,!0x1),_0x64efd0=this[_0xb6fd0d(0x250)]['transformMutation'](_0x54d1b1,_0x5982bf,!0x1);if(m[_0xb6fd0d(0x19f)](_0x4f8349))throw _0x4f8349['error'];if(m['isTransformMutationFailure'](_0x64efd0))throw _0x64efd0[_0xb6fd0d(0x1b1)];_0x5bf148[_0xb6fd0d(0x239)](_0x4f8349['m2Prime'][_0xb6fd0d(0xff)]),_0x4ddf2d['unshift'](_0x64efd0['m2Prime']['params']),_0x77221c=_0x4f8349[_0xb6fd0d(0xaa)],_0x54d1b1=_0x64efd0[_0xb6fd0d(0xaa)];}_0xe37ab0['setUndoRedoMutationParamsCache']({'undoCache':_0x5bf148,'redoCache':_0x4ddf2d});}[_0xb1f837(0x1ec)](_0x35c099){const _0x485873=_0xb1f837,{unitID:_0x511f9d}=_0x35c099,_0x10bd29=this[_0x485873(0x118)][_0x485873(0x1f0)](_0x511f9d)[_0x485873(0x102)](E[_0x485873(0x22a)]),_0x520ba5=_0x10bd29['getActiveRange']();if(_0x520ba5==null)return;const _0x111f18=[{'id':_0x485873(0x10c),'params':{'unitId':_0x35c099[_0x485873(0x1e2)],'actions':null,'textRanges':[_0x520ba5]}}],_0x30dd92=this[_0x485873(0x250)][_0x485873(0xea)](_0x35c099,_0x111f18);if(!m[_0x485873(0x2e2)](_0x30dd92))throw _0x30dd92[_0x485873(0x1b1)];const _0x6789b4=_0x30dd92[_0x485873(0x24e)][0x0][_0x485873(0xff)][_0x485873(0x165)];Array[_0x485873(0x9b)](_0x6789b4)&&_0x6789b4['length']&&_0x10bd29[_0x485873(0xae)](_0x6789b4[0x0]);}};z=kt([ce(0x0,a[_0xb1f837(0x175)](a[_0xb1f837(0x172)])),ce(0x1,m[_0xb1f837(0x1c4)]),ce(0x2,p['IRenderManagerService'])],z);var Ft=Object[_0xb1f837(0x19a)],Ht=(_0x1d32b0,_0x4844f0,_0x561eed,_0x57118e)=>{for(var _0x28491b=_0x57118e>0x1?void 0x0:_0x57118e?Ft(_0x4844f0,_0x561eed):_0x4844f0,_0x238f48=_0x1d32b0['length']-0x1,_0xdd6c39;_0x238f48>=0x0;_0x238f48--)(_0xdd6c39=_0x1d32b0[_0x238f48])&&(_0x28491b=_0xdd6c39(_0x28491b)||_0x28491b);return _0x28491b;},le=(_0x36e746,_0x4b805e)=>(_0x4b9cf7,_0x22a9f8)=>_0x4b805e(_0x4b9cf7,_0x22a9f8,_0x36e746);let J=class{constructor(_0x18ab27,_0x18d1a2,_0x3234a8){const _0x515351=_0xb1f837;this[_0x515351(0x144)]=_0x18ab27,this[_0x515351(0x250)]=_0x18d1a2,this['_docStateChangeManagerService']=_0x3234a8;}[_0xb1f837(0x2b8)](_0x4f81c6){const _0x69084d=_0xb1f837;this[_0x69084d(0x1e9)](_0x4f81c6);}['transformRemoteChangeset'](_0x24ff37){const _0x2ae374=_0xb1f837,{unitID:_0x2fa0c6}=_0x24ff37,{collaboration:_0x4a2f13}=this[_0x2ae374(0x2c7)][_0x2ae374(0x1f2)](_0x2fa0c6);if(_0x4a2f13[_0x2ae374(0x257)]===0x0)return _0x24ff37;let _0x1e56dd=a['Tools']['deepClone'](_0x24ff37['mutations'][0x0]);for(let _0x104e25=0x0;_0x104e25<_0x4a2f13[_0x2ae374(0x257)];_0x104e25++){const _0x306e17={'id':_0x2ae374(0x10c),'params':{'unitId':_0x4a2f13[_0x104e25][_0x2ae374(0x211)],..._0x4a2f13[_0x104e25][_0x2ae374(0x19e)]}},_0x5a740b=this['_transformService'][_0x2ae374(0x2e1)](_0x1e56dd,_0x306e17,!0x1);if(m[_0x2ae374(0x19f)](_0x5a740b))throw _0x5a740b[_0x2ae374(0x1b1)];_0x1e56dd=_0x5a740b[_0x2ae374(0xaa)];}return{...a[_0x2ae374(0x2ce)][_0x2ae374(0x17b)](_0x24ff37),'mutations':[_0x1e56dd]};}[_0xb1f837(0x1e9)](_0x4ebd39){const _0x4a291f=_0xb1f837,{unitID:_0x4726f0}=_0x4ebd39,{history:_0x33565b,collaboration:_0x27e8a4}=this[_0x4a291f(0x2c7)][_0x4a291f(0x1f2)](_0x4726f0);if(_0x33565b['length']===0x0&&_0x27e8a4[_0x4a291f(0x257)]===0x0)return;const _0xea436e=[],_0x4a371f=[];let _0x2c5401=a['Tools'][_0x4a291f(0x17b)](_0x4ebd39['mutations'][0x0]),_0x37fca3=a[_0x4a291f(0x2ce)][_0x4a291f(0x17b)](_0x4ebd39[_0x4a291f(0xbc)][0x0]);for(let _0x606623=_0x33565b[_0x4a291f(0x257)]-0x1;_0x606623>=0x0;_0x606623--){const _0x3d34aa={'id':_0x4a291f(0x10c),'params':{'unitId':_0x33565b[_0x606623][_0x4a291f(0x211)],..._0x33565b[_0x606623][_0x4a291f(0x12d)]}},_0x2e2727={'id':_0x4a291f(0x10c),'params':{'unitId':_0x33565b[_0x606623][_0x4a291f(0x211)],..._0x33565b[_0x606623]['redoState']}},_0x27c487=this[_0x4a291f(0x250)]['transformMutation'](_0x2c5401,_0x3d34aa,!0x1),_0x3c399b=this[_0x4a291f(0x250)]['transformMutation'](_0x37fca3,_0x2e2727,!0x1);if(m[_0x4a291f(0x19f)](_0x27c487))throw _0x27c487[_0x4a291f(0x1b1)];if(m[_0x4a291f(0x19f)](_0x3c399b))throw _0x3c399b[_0x4a291f(0x1b1)];_0xea436e[_0x4a291f(0x239)]({..._0x33565b[_0x606623],'undoState':_0x27c487[_0x4a291f(0x24e)]['params'],'redoState':_0x3c399b['m2Prime']['params']}),_0x2c5401=_0x27c487[_0x4a291f(0xaa)],_0x37fca3=_0x3c399b[_0x4a291f(0xaa)];}_0x2c5401=a[_0x4a291f(0x2ce)][_0x4a291f(0x17b)](_0x4ebd39['mutations'][0x0]),_0x37fca3=a[_0x4a291f(0x2ce)]['deepClone'](_0x4ebd39[_0x4a291f(0xbc)][0x0]);for(let _0x57eb69=_0x27e8a4[_0x4a291f(0x257)]-0x1;_0x57eb69>=0x0;_0x57eb69--){const _0x54422e={'id':_0x4a291f(0x10c),'params':{'unitId':_0x27e8a4[_0x57eb69][_0x4a291f(0x211)],..._0x27e8a4[_0x57eb69][_0x4a291f(0x12d)]}},_0x659cac={'id':_0x4a291f(0x10c),'params':{'unitId':_0x27e8a4[_0x57eb69][_0x4a291f(0x211)],..._0x27e8a4[_0x57eb69][_0x4a291f(0x19e)]}},_0x1078e3=this['_transformService']['transformMutation'](_0x2c5401,_0x54422e,!0x1),_0x1ed673=this['_transformService']['transformMutation'](_0x37fca3,_0x659cac,!0x1);if(m['isTransformMutationFailure'](_0x1078e3))throw _0x1078e3[_0x4a291f(0x1b1)];if(m[_0x4a291f(0x19f)](_0x1ed673))throw _0x1ed673['error'];_0x4a371f[_0x4a291f(0x239)]({..._0x27e8a4[_0x57eb69],'undoState':_0x1078e3[_0x4a291f(0x24e)][_0x4a291f(0xff)],'redoState':_0x1ed673[_0x4a291f(0x24e)][_0x4a291f(0xff)]}),_0x2c5401=_0x1078e3[_0x4a291f(0xaa)],_0x37fca3=_0x1ed673[_0x4a291f(0xaa)];}this[_0x4a291f(0x2c7)][_0x4a291f(0x1d1)](_0x4726f0,{'history':_0xea436e,'collaboration':_0x4a371f});}};J=Ht([le(0x0,a[_0xb1f837(0x175)](a[_0xb1f837(0x172)])),le(0x1,m[_0xb1f837(0x1c4)]),le(0x2,a['Inject'](E[_0xb1f837(0x12b)]))],J);var Yt=Object[_0xb1f837(0x19a)],Wt=(_0xa74f42,_0x2228cb,_0x2ec1b7,_0x5ca474)=>{for(var _0x122c23=_0x5ca474>0x1?void 0x0:_0x5ca474?Yt(_0x2228cb,_0x2ec1b7):_0x2228cb,_0x5acd17=_0xa74f42['length']-0x1,_0x519248;_0x5acd17>=0x0;_0x5acd17--)(_0x519248=_0xa74f42[_0x5acd17])&&(_0x122c23=_0x519248(_0x122c23)||_0x122c23);return _0x122c23;},Ne=(_0x45f633,_0x2105c9)=>(_0x400f24,_0x5c4ffa)=>_0x2105c9(_0x400f24,_0x5c4ffa,_0x45f633);function _0x48f4(_0x4d2ba8,_0x52210d){const _0xd3b9a0=_0xd3b9();return _0x48f4=function(_0x48f47,_0x4bc85e){_0x48f47=_0x48f47-0x6a;let _0x7c40b1=_0xd3b9a0[_0x48f47];return _0x7c40b1;},_0x48f4(_0x4d2ba8,_0x52210d);}let Z=class{constructor(_0x2a2540,_0x4b850c){this['_injector']=_0x2a2540,this['_transformService']=_0x4b850c;}[_0xb1f837(0xc3)](_0x5cdd7e){const _0x1f3dc5=_0xb1f837;var _0x51652a;const _0x3d8c41=this[_0x1f3dc5(0x144)][_0x1f3dc5(0xd1)](Y[_0x1f3dc5(0x285)]),_0x5b5bd1=(_0x51652a=_0x3d8c41[_0x1f3dc5(0x218)]())!=null?_0x51652a:[];if(_0x5b5bd1['length']===0x0)return;const _0x1d19e7=_0x5cdd7e[_0x1f3dc5(0x1e2)],_0x59f53c=[{'id':_0x1f3dc5(0x10c),'params':{'unitId':_0x1d19e7,'actions':null,'textRanges':_0x5b5bd1}}],_0x15fed7=this[_0x1f3dc5(0x250)][_0x1f3dc5(0xea)](_0x5cdd7e,_0x59f53c);if(!m['isTransformMutationsWithChangesetSuccess'](_0x15fed7))throw _0x15fed7[_0x1f3dc5(0x1b1)];const _0xa29767=_0x15fed7[_0x1f3dc5(0x24e)][0x0][_0x1f3dc5(0xff)][_0x1f3dc5(0x165)];Array[_0x1f3dc5(0x9b)](_0xa29767)&&_0xa29767['length']&&_0x3d8c41[_0x1f3dc5(0x135)](_0xa29767,{'unitId':_0x1d19e7,'subUnitId':_0x1d19e7},!0x1);}};Z=Wt([Ne(0x0,a['Inject'](a[_0xb1f837(0x172)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x1d3b5d,_0x1a57fa,_0x3088cb,_0x225197)=>{const _0x177c9c=_0xb1f837;for(var _0x1ae496=_0x225197>0x1?void 0x0:_0x225197?Vt(_0x1a57fa,_0x3088cb):_0x1a57fa,_0x43ef67=_0x1d3b5d[_0x177c9c(0x257)]-0x1,_0x2dd383;_0x43ef67>=0x0;_0x43ef67--)(_0x2dd383=_0x1d3b5d[_0x43ef67])&&(_0x1ae496=_0x2dd383(_0x1ae496)||_0x1ae496);return _0x1ae496;},N=(_0x5c4ec5,_0x1f26c9)=>(_0x33827c,_0x58030c)=>_0x1f26c9(_0x33827c,_0x58030c,_0x5c4ec5);let Q=class extends a['Disposable']{constructor(_0x17dee0,_0x452e7c,_0x2b3e76,_0x1fc4ff,_0x4719a5,_0x234b7a,_0x468b5c,_0x2b426f){const _0x19fa97=_0xb1f837;super(),h(this,_0x19fa97(0x212),new d['BehaviorSubject'](u[_0x19fa97(0x1f5)][_0x19fa97(0xdd)])),(this['_docStateChangeManagerService']=_0x17dee0,this['_collaborationController']=_0x452e7c,this[_0x19fa97(0x237)]=_0x2b3e76,this[_0x19fa97(0xce)]=_0x1fc4ff,this['_docTransformSelectionsService']=_0x4719a5,this[_0x19fa97(0xfd)]=_0x234b7a,this['_messageService']=_0x468b5c,this[_0x19fa97(0xa5)]=_0x2b426f,this[_0x19fa97(0x23f)]());}[_0xb1f837(0x23f)](){const _0x36b2c9=_0xb1f837;this[_0x36b2c9(0xd6)](this[_0x36b2c9(0x86)][_0x36b2c9(0x13d)][_0x36b2c9(0x1cd)](_0x3cce6d=>{const _0x323436=_0x36b2c9,_0x40019e=this[_0x323436(0x2c7)][_0x323436(0x157)]['subscribe'](_0x322aec=>{const _0x332679=_0x323436;if(_0x322aec==null)return;const {unitId:_0x396ecc,redoState:_0x521a37,commandId:_0x23ce78}=_0x322aec;if(_0x396ecc!==_0x3cce6d[_0x332679(0x1e2)])return;const _0x4b477a={'id':_0x23ce78,'type':a[_0x332679(0x171)][_0x332679(0x281)],'params':{'unitId':_0x396ecc,'actions':_0x521a37['actions'],'textRanges':null}};_0x3cce6d[_0x332679(0x1d9)](_0x4b477a);});if(_0x3cce6d[_0x323436(0xd6)](_0x40019e),_0x3cce6d instanceof u[_0x323436(0x1e8)]){const _0x4d0914={'onTransformIME':_0x5d6cf5=>this['_docTransformIMECacheService'][_0x323436(0x117)](_0x5d6cf5),'onTransformState':_0x4dac9b=>this[_0x323436(0xce)][_0x323436(0x2b8)](_0x4dac9b),'onTransformSelections':_0x32ccee=>this[_0x323436(0x1b0)][_0x323436(0xc3)](_0x32ccee),'onSyncEditingCollabCursor':_0x18d523=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x18d523),'onTransformRemoteChangesetByIMECache':_0x457835=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x457835),'onTransformRemoteChangesetByStateCache':_0x36b29d=>this[_0x323436(0xce)][_0x323436(0xe4)](_0x36b29d)};_0x3cce6d[_0x323436(0x18d)](_0x4d0914);}}));}};Q=Xt([N(0x0,a['Inject'](E[_0xb1f837(0x12b)])),N(0x1,a['Inject'](u[_0xb1f837(0xb6)])),N(0x2,a[_0xb1f837(0x175)](z)),N(0x3,a['Inject'](J)),N(0x4,a[_0xb1f837(0x175)](Z)),N(0x5,a[_0xb1f837(0x175)](Ce)),N(0x6,O[_0xb1f837(0x27c)]),N(0x7,a[_0xb1f837(0x175)](a[_0xb1f837(0x154)]))],Q);var Gt=Object[_0xb1f837(0x19a)],Kt=(_0x1d52a2,_0x48460b,_0x4ceed9,_0x5df50b)=>{for(var _0x45dc40=_0x5df50b>0x1?void 0x0:_0x5df50b?Gt(_0x48460b,_0x4ceed9):_0x48460b,_0x413a03=_0x1d52a2['length']-0x1,_0x2afd7a;_0x413a03>=0x0;_0x413a03--)(_0x2afd7a=_0x1d52a2[_0x413a03])&&(_0x45dc40=_0x2afd7a(_0x45dc40)||_0x45dc40);return _0x45dc40;},_e=(_0x53777b,_0x12f8f2)=>(_0x2e1c04,_0x126c02)=>_0x12f8f2(_0x2e1c04,_0x126c02,_0x53777b);let ge=class extends a['Disposable']{constructor(_0x35bd6a,_0x2d868a,_0x58ccd8){const _0x100743=_0xb1f837;super(),h(this,_0x100743(0x91),new Map()),h(this,_0x100743(0x125),new Map()),h(this,_0x100743(0x131),!0x1),(this['_configService']=_0x35bd6a,this[_0x100743(0x2ea)]=_0x2d868a,this[_0x100743(0x16c)]=_0x58ccd8);}[_0xb1f837(0x106)](){const _0x19bd86=_0xb1f837;this[_0x19bd86(0x131)]=!0x0;}[_0xb1f837(0x98)](){const _0x1afdcd=_0xb1f837;this[_0x1afdcd(0x131)]=!0x1;}get['saveTaskMap'](){const _0x5f282f=_0xb1f837;return this[_0x5f282f(0x125)];}[_0xb1f837(0x8c)](){const _0x2a5bad=_0xb1f837;this['exhaustSavingTask']()[_0x2a5bad(0x1ba)](()=>super['dispose']());}async['loadOfflineData'](_0x3eae20){const _0x50707b=_0xb1f837;return this[_0x50707b(0x131)]?null:this[_0x50707b(0x2ea)]['getItem'](u[_0x50707b(0x295)](_0x3eae20));}async[_0xb1f837(0x25b)](_0x10a218,_0x3c39db){const _0x1d2691=_0xb1f837;return!!this[_0x1d2691(0x2ea)][_0x1d2691(0x286)](_0x10a218,_0x3c39db);}['updateOfflineData'](_0x397517,_0x1cf947,_0x4b32a7,_0x570885){const _0x30cf75=_0xb1f837,_0x1e2ffa=this['_revisionService'][_0x30cf75(0x13a)](_0x397517);this[_0x30cf75(0x91)][_0x30cf75(0x134)](_0x397517,{'unitID':_0x397517,'type':_0x1cf947,'awaitingChangeset':_0x4b32a7,'mutations':_0x570885,'rev':_0x1e2ffa}),this[_0x30cf75(0x125)]['has'](_0x397517)||this[_0x30cf75(0x10b)](_0x397517);}[_0xb1f837(0x10b)](_0x134d8c){const _0x554f0c=_0xb1f837,_0x54d5bd=this[_0x554f0c(0x252)]();_0x54d5bd===0x0?this['_saveCache'](_0x134d8c):this[_0x554f0c(0x125)]['set'](_0x134d8c,setTimeout(()=>this['_saveCache'](_0x134d8c),_0x54d5bd));}[_0xb1f837(0x252)](){const _0x3ab6f1=_0xb1f837;var _0x2ef190;return(_0x2ef190=this[_0x3ab6f1(0x12a)][_0x3ab6f1(0x100)](u[_0x3ab6f1(0x193)]))!=null?_0x2ef190:u[_0x3ab6f1(0x2e7)];}[_0xb1f837(0x2e4)](_0xf67444){const _0x25dc92=_0xb1f837,_0x4f77c2=this['_saveTaskMap']['get'](_0xf67444);return _0x4f77c2!==void 0x0&&window[_0x25dc92(0x1d8)](_0x4f77c2),this[_0x25dc92(0x2ea)][_0x25dc92(0x286)](u[_0x25dc92(0x295)](_0xf67444),this[_0x25dc92(0x91)]['get'](_0xf67444))[_0x25dc92(0x1ba)](()=>this[_0x25dc92(0x125)][_0x25dc92(0x1b2)](_0xf67444));}async[_0xb1f837(0x1b5)](){const _0x15860e=_0xb1f837,_0x314456=[];this['_saveTaskMap']['forEach']((_0x318cc3,_0x2f2a67)=>{const _0x1dd3e9=_0x48f4;window[_0x1dd3e9(0x1d8)](_0x318cc3),_0x314456['push'](this[_0x1dd3e9(0x2e4)](_0x2f2a67)['then'](()=>{const _0x4dfea4=_0x1dd3e9;this[_0x4dfea4(0x125)][_0x4dfea4(0x1b2)](_0x2f2a67);}));}),await Promise[_0x15860e(0xeb)](_0x314456);}};ge=Kt([_e(0x0,a[_0xb1f837(0x253)]),_e(0x1,a[_0xb1f837(0x105)]),_e(0x2,a['Inject'](m[_0xb1f837(0x23e)]))],ge);class Be extends a['RxDisposable']{constructor(){const _0x19715c=_0xb1f837;super(),h(this,_0x19715c(0x14c)),this['urlChange$']=d['fromEvent'](window,'popstate')[_0x19715c(0x28f)](d[_0x19715c(0x206)](this[_0x19715c(0x279)]),d['shareReplay'](0x1),d[_0x19715c(0x234)](void 0x0));}[_0xb1f837(0xe8)](_0x4c2cb5,_0x29d655,_0x4cb74b=!0x1){const _0x236f33=_0xb1f837,_0x1325b1=new URL(window[_0x236f33(0x28a)]['href']);_0x1325b1[_0x236f33(0x124)][_0x236f33(0x134)](_0x4c2cb5,_0x29d655),_0x4cb74b?window[_0x236f33(0x276)]['replaceState']('','',_0x1325b1['toString']()):window[_0x236f33(0x276)][_0x236f33(0x74)]('','',_0x1325b1['toString']());}[_0xb1f837(0x1fc)](_0x25ca3f,_0x46fdbc=!0x1){const _0xee324c=_0xb1f837,_0x20d2f6=new URL(window[_0xee324c(0x28a)][_0xee324c(0x2bf)]);_0x20d2f6[_0xee324c(0x124)][_0xee324c(0x1b2)](_0x25ca3f),_0x46fdbc?window[_0xee324c(0x276)][_0xee324c(0xe1)]('','',_0x20d2f6['toString']()):window[_0xee324c(0x276)]['pushState']('','',_0x20d2f6[_0xee324c(0x180)]());}[_0xb1f837(0xfc)](_0x546399){const _0x27d923=_0xb1f837;var _0x10c355;return(_0x10c355=new URL(window[_0x27d923(0x28a)][_0x27d923(0x2bf)])[_0x27d923(0x124)][_0x27d923(0xd1)](_0x546399))!=null?_0x10c355:void 0x0;}}var qt=Object[_0xb1f837(0x1ca)],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x494147,_0x23791f,_0x5e130b)=>_0x23791f in _0x494147?qt(_0x494147,_0x23791f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e130b}):_0x494147[_0x23791f]=_0x5e130b,Zt=(_0xdec0b1,_0x3e52ca,_0x23aa9d,_0x522ce4)=>{for(var _0x2b510c=_0x522ce4>0x1?void 0x0:_0x522ce4?zt(_0x3e52ca,_0x23aa9d):_0x3e52ca,_0x53d9a2=_0xdec0b1['length']-0x1,_0x3e620c;_0x53d9a2>=0x0;_0x53d9a2--)(_0x3e620c=_0xdec0b1[_0x53d9a2])&&(_0x2b510c=_0x3e620c(_0x2b510c)||_0x2b510c);return _0x2b510c;},he=(_0x2cb4fe,_0x3ca6f3)=>(_0x3fe25e,_0x70892c)=>_0x3ca6f3(_0x3fe25e,_0x70892c,_0x2cb4fe),Qt=(_0x173248,_0x1ef21b,_0x35c077)=>Jt(_0x173248,_0x1ef21b+'',_0x35c077);const es=_0xb1f837(0x184);exports[_0xb1f837(0x178)]=class extends a[_0xb1f837(0xcb)]{constructor(_0x2dfc0d=Ue,_0x52ce36,_0x1707ec,_0x3c21d7){const _0x34f971=_0xb1f837;super(),this[_0x34f971(0x174)]=_0x2dfc0d,this['_renderManagerService']=_0x52ce36,this[_0x34f971(0x144)]=_0x1707ec,this[_0x34f971(0x12a)]=_0x3c21d7;const {..._0x47f3db}=a[_0x34f971(0x20b)]({},Ue,this[_0x34f971(0x174)]);this['_configService']['setConfig']($t,_0x47f3db);}[_0xb1f837(0x2d3)](){const _0x320650=_0xb1f837;this[_0x320650(0x1c7)](),this[_0x320650(0x262)]();}[_0xb1f837(0x155)](){const _0x3ccc5f=_0xb1f837;this[_0x3ccc5f(0x13c)]();}[_0xb1f837(0x1c7)](){const _0x711e65=_0xb1f837;var _0x20914e;const _0x17bd3c=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G[_0x711e65(0x1ae)],{'useClass':G['WebSocketService']}],[u[_0x711e65(0xf2)],{'useClass':ge}],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[x],[de],[exports[_0x711e65(0x1ff)]]];a[_0x711e65(0x18e)](this[_0x711e65(0x144)],a[_0x711e65(0x210)](_0x17bd3c,(_0x20914e=this[_0x711e65(0x174)])==null?void 0x0:_0x20914e[_0x711e65(0x1a3)]));}[_0xb1f837(0x13c)](){const _0x579303=_0xb1f837;this['disposeWithMe'](this[_0x579303(0x118)][_0x579303(0x7f)](a[_0x579303(0x1be)][_0x579303(0x29a)],[fe])),this[_0x579303(0xd6)](this[_0x579303(0x118)][_0x579303(0x7f)](a[_0x579303(0x1be)][_0x579303(0x11f)],[ve]));}[_0xb1f837(0x262)](){const _0x35e3fd=_0xb1f837;a[_0x35e3fd(0x29e)](this[_0x35e3fd(0x144)],[[x],[exports[_0x35e3fd(0x194)]],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],'pluginName',es),exports[_0xb1f837(0x178)]=Zt([a[_0xb1f837(0xfe)](u[_0xb1f837(0x25d)]),he(0x1,p['IRenderManagerService']),he(0x2,a['Inject'](a[_0xb1f837(0x172)])),he(0x3,a[_0xb1f837(0x253)])],exports[_0xb1f837(0x178)]);var ts=Object[_0xb1f837(0x19a)],ss=(_0xc53a5b,_0x14e784,_0x11243a,_0x2d821b)=>{const _0x5ab469=_0xb1f837;for(var _0xe55518=_0x2d821b>0x1?void 0x0:_0x2d821b?ts(_0x14e784,_0x11243a):_0x14e784,_0x5ccec1=_0xc53a5b[_0x5ab469(0x257)]-0x1,_0x6633bc;_0x5ccec1>=0x0;_0x5ccec1--)(_0x6633bc=_0xc53a5b[_0x5ccec1])&&(_0xe55518=_0x6633bc(_0xe55518)||_0xe55518);return _0xe55518;},H=(_0xb9d7ea,_0x5030c2)=>(_0x459a9d,_0x5f4246)=>_0x5030c2(_0x459a9d,_0x5f4246,_0xb9d7ea);exports['BrowserCollaborationSocketService']=class extends u[_0xb1f837(0x294)]{constructor(_0x5b6b2b,_0x58f1bd,_0x5a0b28,_0x2baa2a,_0x1bcff2){super(_0x5b6b2b,_0x58f1bd,_0x5a0b28,_0x2baa2a,_0x1bcff2);}async[_0xb1f837(0x110)](_0x3a4af4){const _0x530449=_0xb1f837,_0x99e49c=await this[_0x530449(0x122)](),_0x449730=this[_0x530449(0xc5)](_0x3a4af4,_0x99e49c);return this[_0x530449(0x83)](_0x449730);}['_createSocketURL'](_0x356a5f,_0x16ba8d){const _0x3f1ba6=_0xb1f837,_0x4bb9c9=typeof window>'u'?new URL(_0x356a5f):new URL(_0x356a5f,window[_0x3f1ba6(0x28a)][_0x3f1ba6(0x1d3)]);_0x4bb9c9['searchParams'][_0x3f1ba6(0x134)](_0x3f1ba6(0x2e5),_0x16ba8d);const _0x96f99=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3f1ba6(0x28a)]['search']);return _0x96f99[_0x3f1ba6(0xd1)]('runId')&&_0x4bb9c9[_0x3f1ba6(0x124)][_0x3f1ba6(0x134)](_0x3f1ba6(0xd7),_0x96f99[_0x3f1ba6(0xd1)](_0x3f1ba6(0xd7))),_0x4bb9c9[_0x3f1ba6(0x180)]();}async[_0xb1f837(0x122)](){const _0x57d343=_0xb1f837;var _0x261735,_0x36e358,_0x19a6c5;const _0x5b700b=this[_0x57d343(0x12a)]['getConfig'](u[_0x57d343(0x2a7)]),_0x422bf3=(_0x261735=_0x5b700b==null?void 0x0:_0x5b700b['wsSessionTicketUrl'])!=null?_0x261735:u[_0x57d343(0x20a)];return(_0x19a6c5=(_0x36e358=(await this['_httpService'][_0x57d343(0xd1)](_0x422bf3,{'headers':{'Content-Type':_0x57d343(0x103)}}))[_0x57d343(0x207)])==null?void 0x0:_0x36e358[_0x57d343(0x297)])!=null?_0x19a6c5:'';}},exports[_0xb1f837(0xbe)]=ss([H(0x0,a['Inject'](a[_0xb1f837(0x172)])),H(0x1,a['Inject'](G[_0xb1f837(0x249)])),H(0x2,a['IConfigService']),H(0x3,a[_0xb1f837(0x261)]),H(0x4,m[_0xb1f837(0x1ed)])],exports[_0xb1f837(0xbe)]);const Me=0x7530,Le=_0xb1f837(0x2b9);class is extends a[_0xb1f837(0x2af)]{constructor(){const _0x5bf4a3=_0xb1f837;super(),h(this,_0x5bf4a3(0x104),a[_0x5bf4a3(0x1a4)]()),h(this,_0x5bf4a3(0xd5),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x5bf4a3(0x15e),null),h(this,_0x5bf4a3(0x267),new Map()),h(this,_0x5bf4a3(0x6e),new Map()),this[_0x5bf4a3(0x26a)]();}[_0xb1f837(0x8c)](){const _0x552e7d=_0xb1f837;super[_0x552e7d(0x8c)](),this[_0x552e7d(0x267)][_0x552e7d(0x13f)]((_0x3f27aa,_0x5e812a)=>this[_0x552e7d(0xcf)](_0x5e812a)),this[_0x552e7d(0x15e)]&&window[_0x552e7d(0x6a)](this[_0x552e7d(0x15e)]);}[_0xb1f837(0x12e)](_0x451f10){const _0x5780bd=_0xb1f837;return this[_0x5780bd(0x22e)](_0x451f10)[_0x5780bd(0x28f)](d[_0x5780bd(0x11c)]());}['editingUnit'](_0x3e6223){const _0x365108=_0xb1f837;this['_selfUnitIDs'][_0x365108(0x1df)]===0x0&&this[_0x365108(0x1f8)](),this['_selfUnitIDs'][_0x365108(0x291)](_0x3e6223),this[_0x365108(0xb8)]({'type':0x0,'memberID':this[_0x365108(0x104)],'unitIDs':[_0x3e6223],'isForwarded':!0x1});}['disposeUnit'](_0x277e01){const _0x46b87d=_0xb1f837;this['_selfUnitIDs'][_0x46b87d(0x1b2)](_0x277e01),this[_0x46b87d(0xd5)][_0x46b87d(0x1df)]===0x0&&this[_0x46b87d(0x15e)]&&window[_0x46b87d(0x6a)](this[_0x46b87d(0x15e)]);}['_init'](){const _0x19b282=_0xb1f837;this[_0x19b282(0xd6)](a[_0x19b282(0x2aa)](d[_0x19b282(0x1c0)](window,_0x19b282(0x138))[_0x19b282(0x1cd)](_0x1eec56=>{const _0x2909e8=_0x19b282;if(_0x1eec56[_0x2909e8(0x26f)]!==Le||!_0x1eec56[_0x2909e8(0x2a8)])return;const _0xe9ebbf=JSON[_0x2909e8(0x258)](_0x1eec56[_0x2909e8(0x2a8)]);this[_0x2909e8(0x161)](_0xe9ebbf);}))),window['addEventListener']('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x19b282(0x104)],'unitIDs':Array[_0x19b282(0x2d9)](this[_0x19b282(0xd5)])}));}[_0xb1f837(0x161)](_0x5ac4fb){const _0x22a37f=_0xb1f837;switch(_0x5ac4fb['type']){case 0x0:this[_0x22a37f(0x209)](_0x5ac4fb);break;case 0x1:this[_0x22a37f(0x17c)](_0x5ac4fb);break;case 0x2:this[_0x22a37f(0x1b4)](_0x5ac4fb);break;}}[_0xb1f837(0x209)](_0x16e364){const _0x355724=_0xb1f837,{unitIDs:_0x378144,memberID:_0x182b1c,isForwarded:_0x21ce93}=_0x16e364;_0x378144['forEach'](_0x4ac8b2=>{const _0x5b325f=_0x48f4;if(!_0x21ce93&&this[_0x5b325f(0x2d5)][_0x5b325f(0x1ea)](_0x4ac8b2)&&this[_0x5b325f(0x22e)](_0x4ac8b2)[_0x5b325f(0xdf)](u[_0x5b325f(0x299)][_0x5b325f(0x1a1)]),!this['_unitOnClients'][_0x5b325f(0x1ea)](_0x4ac8b2)||!this[_0x5b325f(0x2d5)][_0x5b325f(0xd1)](_0x4ac8b2)[_0x5b325f(0x1ea)](_0x182b1c)){const _0x54c143=this[_0x5b325f(0x2d5)][_0x5b325f(0xd1)](_0x4ac8b2)||new Set();_0x54c143[_0x5b325f(0x291)](_0x182b1c),this[_0x5b325f(0x2d5)][_0x5b325f(0x134)](_0x4ac8b2,_0x54c143),this['_scheduleClearOtherTimer'](_0x182b1c);}}),_0x21ce93||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x355724(0xd5)]],'isForwarded':!0x0});}[_0xb1f837(0x2a9)](_0x49a130){const _0x4a4f17=_0xb1f837;this['_removeClearOtherTimer'](_0x49a130);const _0x3cbae2=window[_0x4a4f17(0x222)](()=>{const _0x52bafe=_0x4a4f17;this[_0x52bafe(0x2d5)][_0x52bafe(0x13f)](_0x6415c7=>{const _0x3a5569=_0x52bafe;_0x6415c7[_0x3a5569(0x1b2)](_0x49a130);});},Me*0x2);this[_0x4a4f17(0x267)][_0x4a4f17(0x134)](_0x49a130,_0x3cbae2);}[_0xb1f837(0xcf)](_0xc5b1fa){const _0x2796f5=_0xb1f837;if(this['_clearOtherTimers'][_0x2796f5(0x1ea)](_0xc5b1fa)){const _0x46b2a0=this[_0x2796f5(0x267)][_0x2796f5(0xd1)](_0xc5b1fa);_0x46b2a0&&window[_0x2796f5(0x1d8)](_0x46b2a0),this[_0x2796f5(0x267)]['set'](_0xc5b1fa,null);}}[_0xb1f837(0x17c)](_0x511a7b){const _0x261c18=_0xb1f837,{memberID:_0x5549d1,unitIDs:_0x3005f4}=_0x511a7b;_0x3005f4[_0x261c18(0x13f)](_0x9899a4=>{const _0x1ebed3=_0x261c18;var _0x451358;const _0x2879b1=this[_0x1ebed3(0x2d5)][_0x1ebed3(0xd1)](_0x9899a4);_0x2879b1&&(_0x2879b1[_0x1ebed3(0x1b2)](_0x5549d1),(_0x451358=this['_ensureSubject'](_0x9899a4))==null||_0x451358[_0x1ebed3(0xdf)](_0x2879b1[_0x1ebed3(0x1df)]===0x0?u[_0x1ebed3(0x299)][_0x1ebed3(0xd9)]:u[_0x1ebed3(0x299)][_0x1ebed3(0x1a1)]));}),this['_removeClearOtherTimer'](_0x5549d1);}[_0xb1f837(0x1b4)](_0x1ea991){const _0x28012e=_0xb1f837;this[_0x28012e(0x2a9)](_0x1ea991[_0x28012e(0x159)]);}[_0xb1f837(0xb8)](_0x41e9f5){const _0x336a17=_0xb1f837;localStorage[_0x336a17(0x286)](Le,JSON[_0x336a17(0x2ac)](_0x41e9f5));}[_0xb1f837(0x1f8)](){const _0x131b03=_0xb1f837;this[_0x131b03(0x15e)]=window[_0x131b03(0x1e5)](()=>{const _0x409f44=_0x131b03;this[_0x409f44(0xb8)]({'type':0x2,'memberID':this['_id']});},Me);}['_ensureSubject'](_0x58ba82){const _0x4bf3b6=_0xb1f837;return this[_0x4bf3b6(0x6e)][_0x4bf3b6(0x1ea)](_0x58ba82)||this[_0x4bf3b6(0x6e)][_0x4bf3b6(0x134)](_0x58ba82,new d['BehaviorSubject'](u['UnitStatus'][_0x4bf3b6(0xd9)])),this[_0x4bf3b6(0x6e)]['get'](_0x58ba82);}}var je=(_0x3c24ca=>(_0x3c24ca[_0x3c24ca[_0xb1f837(0x224)]=0x0]=_0xb1f837(0x224),_0x3c24ca[_0x3c24ca['OK']=0x1]='OK',_0x3c24ca[_0x3c24ca['INTERNAL_ERROR']=0x2]=_0xb1f837(0x84),_0x3c24ca[_0x3c24ca[_0xb1f837(0x153)]=0x3]=_0xb1f837(0x153),_0x3c24ca[_0x3c24ca['NOT_FOUND']=0x4]=_0xb1f837(0x2d2),_0x3c24ca[_0x3c24ca['UNAUTHENTICATED']=0x5]=_0xb1f837(0x1fa),_0x3c24ca[_0x3c24ca[_0xb1f837(0x284)]=0x6]=_0xb1f837(0x284),_0x3c24ca[_0x3c24ca[_0xb1f837(0xe7)]=0x7]=_0xb1f837(0xe7),_0x3c24ca[_0x3c24ca[_0xb1f837(0x142)]=0x8]=_0xb1f837(0x142),_0x3c24ca[_0x3c24ca[_0xb1f837(0x208)]=0x9]=_0xb1f837(0x208),_0x3c24ca[_0x3c24ca[_0xb1f837(0xf6)]=0xa]='LOGIN_FAILED',_0x3c24ca[_0x3c24ca[_0xb1f837(0x241)]=0xb]=_0xb1f837(0x241),_0x3c24ca[_0x3c24ca[_0xb1f837(0x24d)]=0xc]=_0xb1f837(0x24d),_0x3c24ca[_0x3c24ca['EMAIL_VERIFY_CODE_MISMATCH']=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x3c24ca[_0x3c24ca[_0xb1f837(0x92)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x3c24ca[_0x3c24ca[_0xb1f837(0x10f)]=0x1389]=_0xb1f837(0x10f),_0x3c24ca[_0x3c24ca[_0xb1f837(0x1c2)]=0x1771]=_0xb1f837(0x1c2),_0x3c24ca[_0x3c24ca[_0xb1f837(0x2b0)]=0x1772]=_0xb1f837(0x2b0),_0x3c24ca[_0x3c24ca[_0xb1f837(0x132)]=0x1773]=_0xb1f837(0x132),_0x3c24ca[_0x3c24ca['APPLY_REJECT']=0x1b59]=_0xb1f837(0x260),_0x3c24ca[_0x3c24ca['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0xb1f837(0x1d7),_0x3c24ca[_0x3c24ca[_0xb1f837(0x1f4)]=0x1b5b]=_0xb1f837(0x1f4),_0x3c24ca[_0x3c24ca[_0xb1f837(0x2e3)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x3c24ca[_0x3c24ca[_0xb1f837(0x130)]=0x1b5d]=_0xb1f837(0x130),_0x3c24ca[_0x3c24ca['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0xb1f837(0x265),_0x3c24ca[_0x3c24ca[_0xb1f837(0x2b4)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x3c24ca[_0x3c24ca[_0xb1f837(0x2db)]=0x232a]=_0xb1f837(0x2db),_0x3c24ca[_0x3c24ca[_0xb1f837(0x8a)]=0x232b]=_0xb1f837(0x8a),_0x3c24ca[_0x3c24ca[_0xb1f837(0x203)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x3c24ca[_0x3c24ca[_0xb1f837(0x11a)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x3c24ca[_0x3c24ca[_0xb1f837(0x236)]=0x2711]=_0xb1f837(0x236),_0x3c24ca[_0x3c24ca['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0xb1f837(0x2a0),_0x3c24ca[_0x3c24ca[_0xb1f837(0x17d)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x3c24ca[_0x3c24ca[_0xb1f837(0x1c5)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x3c24ca[_0x3c24ca[_0xb1f837(0x89)]=0x271a]=_0xb1f837(0x89),_0x3c24ca[_0x3c24ca['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0xb1f837(0x2d1),_0x3c24ca[_0x3c24ca[_0xb1f837(0x115)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x3c24ca[_0x3c24ca[_0xb1f837(0xe6)]=0x271d]=_0xb1f837(0xe6),_0x3c24ca[_0x3c24ca[_0xb1f837(0xd3)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x3c24ca[_0x3c24ca[_0xb1f837(0x17e)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x3c24ca[_0x3c24ca[_0xb1f837(0x2c4)]=0x2720]=_0xb1f837(0x2c4),_0x3c24ca[_0x3c24ca[_0xb1f837(0x27a)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x3c24ca[_0x3c24ca[_0xb1f837(0x176)]=0x2ee1]=_0xb1f837(0x176),_0x3c24ca[_0x3c24ca[_0xb1f837(0x264)]=0x2ee2]=_0xb1f837(0x264),_0x3c24ca[_0x3c24ca[_0xb1f837(0x205)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x3c24ca[_0x3c24ca['USER_NOT_INVITED_CODE']=0x2ee4]=_0xb1f837(0x235),_0x3c24ca[_0x3c24ca['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0xb1f837(0x2d7),_0x3c24ca[_0x3c24ca[_0xb1f837(0x21b)]=0x32c9]=_0xb1f837(0x21b),_0x3c24ca[_0x3c24ca[_0xb1f837(0x1d5)]=0x32ca]=_0xb1f837(0x1d5),_0x3c24ca[_0x3c24ca[_0xb1f837(0x13b)]=0x32cb]=_0xb1f837(0x13b),_0x3c24ca[_0x3c24ca[_0xb1f837(0x1d2)]=-0x1]=_0xb1f837(0x1d2),_0x3c24ca))(je||{}),ns=Object[_0xb1f837(0x19a)],rs=(_0xc6c893,_0x51fa73,_0x10ba34,_0x1fd2cc)=>{const _0x3a6f14=_0xb1f837;for(var _0x90887=_0x1fd2cc>0x1?void 0x0:_0x1fd2cc?ns(_0x51fa73,_0x10ba34):_0x51fa73,_0x3c34fe=_0xc6c893[_0x3a6f14(0x257)]-0x1,_0x1e97fd;_0x3c34fe>=0x0;_0x3c34fe--)(_0x1e97fd=_0xc6c893[_0x3c34fe])&&(_0x90887=_0x1e97fd(_0x90887)||_0x90887);return _0x90887;},ue=(_0x51db21,_0x7c557b)=>(_0x564e31,_0x2b6fd5)=>_0x7c557b(_0x564e31,_0x2b6fd5,_0x51db21);exports[_0xb1f837(0x6b)]=class extends a[_0xb1f837(0x2af)]{constructor(_0x73fb11,_0x4ab750,_0x5b8d7f){const _0x4e85a2=_0xb1f837;super(),this[_0x4e85a2(0x23b)]=_0x73fb11,this[_0x4e85a2(0x230)]=_0x4ab750,this['_configService']=_0x5b8d7f;}async['runOnServer'](_0x5af24b,_0x104527,_0x54768a,..._0x470134){const _0x21ff6a=_0xb1f837;var _0x4f7920,_0x4a124c,_0x3ba94b,_0xc339fa;const _0x31af48=this[_0x21ff6a(0x23b)][_0x21ff6a(0x1ce)]();if(!_0x31af48)throw new Error(_0x21ff6a(0x10e));const _0xcd7930=((_0x4f7920=this['_configService'][_0x21ff6a(0x100)](u[_0x21ff6a(0x1a8)]))!=null?_0x4f7920:u[_0x21ff6a(0x119)])+'/'+_0x5af24b+_0x21ff6a(0xa8)+_0x104527,_0x4e9b0b=new URL(window[_0x21ff6a(0x28a)][_0x21ff6a(0x2bf)]),_0x1379dd={'scriptId':_0x5af24b,'runId':(_0x4a124c=_0x4e9b0b[_0x21ff6a(0x124)]['get'](_0x21ff6a(0xd7)))!=null?_0x4a124c:'','function':_0x104527,'unitId':_0x31af48[_0x21ff6a(0xd4)](),'argsOfFunction':JSON['stringify'](_0x470134),'invokeId':(_0x3ba94b=_0x54768a['invokeId'])!=null?_0x3ba94b:'','executionId':(_0xc339fa=_0x54768a['executionId'])!=null?_0xc339fa:''};try{const _0x41c80e=await this[_0x21ff6a(0x230)][_0x21ff6a(0x27d)](_0xcd7930,{'body':_0x1379dd});return _0x41c80e[_0x21ff6a(0x207)][_0x21ff6a(0x1b1)]&&_0x41c80e['body'][_0x21ff6a(0x1b1)]['code']!==je['OK']?_0x21ff6a(0xd8):_0x41c80e['body']['result'];}catch{return _0x21ff6a(0xd8);}}},exports[_0xb1f837(0x6b)]=rs([ue(0x0,a[_0xb1f837(0x18a)]),ue(0x1,a['Inject'](G[_0xb1f837(0x249)])),ue(0x2,a['IConfigService'])],exports[_0xb1f837(0x6b)]),exports[_0xb1f837(0x2b1)]=xe,exports['IURLService']=Ee,exports[_0xb1f837(0xcd)]=we,exports[_0xb1f837(0x80)]=is,exports['WebURLService']=Be;
|
|
1
|
+
'use strict';const _0x5586cb=_0x13cb;(function(_0x1de0aa,_0x5afa3b){const _0x2f0c15=_0x13cb,_0x2e521d=_0x1de0aa();while(!![]){try{const _0x35ae93=-parseInt(_0x2f0c15(0xf1))/0x1*(parseInt(_0x2f0c15(0x263))/0x2)+-parseInt(_0x2f0c15(0x2c3))/0x3*(parseInt(_0x2f0c15(0x113))/0x4)+parseInt(_0x2f0c15(0xe6))/0x5*(parseInt(_0x2f0c15(0xe5))/0x6)+parseInt(_0x2f0c15(0x1ca))/0x7*(-parseInt(_0x2f0c15(0x22c))/0x8)+-parseInt(_0x2f0c15(0x2c8))/0x9*(-parseInt(_0x2f0c15(0xc2))/0xa)+-parseInt(_0x2f0c15(0x11b))/0xb*(-parseInt(_0x2f0c15(0xa2))/0xc)+-parseInt(_0x2f0c15(0x9e))/0xd*(parseInt(_0x2f0c15(0x28b))/0xe);if(_0x35ae93===_0x5afa3b)break;else _0x2e521d['push'](_0x2e521d['shift']());}catch(_0x3ff7bb){_0x2e521d['push'](_0x2e521d['shift']());}}}(_0x5245,0xda065));var We=Object['defineProperty'],Ve=(_0x321e8c,_0x32c978,_0x6215bc)=>_0x32c978 in _0x321e8c?We(_0x321e8c,_0x32c978,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6215bc}):_0x321e8c[_0x32c978]=_0x6215bc,h=(_0x164455,_0x5cde16,_0x47907f)=>Ve(_0x164455,typeof _0x5cde16!='symbol'?_0x5cde16+'':_0x5cde16,_0x47907f);Object[_0x5586cb(0x2d3)](exports,Symbol[_0x5586cb(0x164)],{'value':_0x5586cb(0xfb)});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),G=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Xe=require('@univerjs/drawing'),d=require('rxjs'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),be=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),$=require('rxjs/operators'),X=require('@univerjs/sheets-ui'),P=require('react/jsx-runtime'),O=require('@univerjs/ui'),D=require('@univerjs/design'),M=require('react'),Ge=require('@univerjs/rpc');var Ke=Object[_0x5586cb(0x84)],qe=(_0x1d9e02,_0x1389c2,_0x12ef0c,_0x4f10a9)=>{const _0x5a0db4=_0x5586cb;for(var _0x3ffcf1=_0x4f10a9>0x1?void 0x0:_0x4f10a9?Ke(_0x1389c2,_0x12ef0c):_0x1389c2,_0x11f07c=_0x1d9e02[_0x5a0db4(0x99)]-0x1,_0x534eaa;_0x11f07c>=0x0;_0x11f07c--)(_0x534eaa=_0x1d9e02[_0x11f07c])&&(_0x3ffcf1=_0x534eaa(_0x3ffcf1)||_0x3ffcf1);return _0x3ffcf1;},Oe=(_0xe557f2,_0x45d60c)=>(_0x1c38a2,_0x5f37c9)=>_0x45d60c(_0x1c38a2,_0x5f37c9,_0xe557f2);let de=class extends a[_0x5586cb(0x2bc)]{constructor(_0x3ed304,_0x5c5544){const _0x7d40cc=_0x5586cb;super(),this[_0x7d40cc(0xe4)]=_0x3ed304,this[_0x7d40cc(0x108)]=_0x5c5544,this['_init']();}[_0x5586cb(0x17f)](){const _0x42aeff=_0x5586cb,_0x4380cc=this;this[_0x42aeff(0x142)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x1c7609=>{const _0x581450=_0x42aeff,_0x3f3e5d=await _0x4380cc[_0x581450(0x108)][_0x581450(0x2d9)](_0x1c7609);return _0x3f3e5d?{'source':_0x3f3e5d['source'],'imageSourceType':_0x3f3e5d[_0x581450(0x19f)]}:null;}}));}};de=qe([Oe(0x0,E[_0x5586cb(0x213)]),Oe(0x1,Xe['IImageIoService'])],de);const Te=['purple.300',_0x5586cb(0x11a),_0x5586cb(0x1cc),_0x5586cb(0x14d),_0x5586cb(0x279),'yellow.400'];class me extends a[_0x5586cb(0x160)]{constructor(){const _0x2a30a9=_0x5586cb;super(...arguments),h(this,_0x2a30a9(0x2c0),new Map()),h(this,'_colorIndex',0x0);}[_0x5586cb(0x1be)](_0x471b0a){const _0x12ff76=_0x5586cb;if(this[_0x12ff76(0x2c0)][_0x12ff76(0xdc)](_0x471b0a))return this[_0x12ff76(0x2c0)][_0x12ff76(0x2ec)](_0x471b0a);const _0x348697=Te[this[_0x12ff76(0x153)]];return this[_0x12ff76(0x153)]=(this['_colorIndex']+0x1)%Te['length'],this['_assignedColors'][_0x12ff76(0xf4)](_0x471b0a,_0x348697),_0x348697;}}function Pe(_0xd0ab19){const _0xef1b7f=_0x5586cb;let _0x52ad6d='';for(const _0x226552 of _0xd0ab19){const {startOffset:_0x924d61,endOffset:_0x1a2173,isActive:_0x510b8e,rangeType:_0x389b5c,segmentId:_0x228d13,segmentPage:_0x313132}=_0x226552;_0x52ad6d[_0xef1b7f(0x99)]&&(_0x52ad6d+=','),_0x52ad6d+=_0x924d61+':'+_0x1a2173+':'+(_0x510b8e?'1':'0')+':'+_0x389b5c+':'+_0x228d13+':'+_0x313132;}return _0x52ad6d;}function ze(_0x3ffcd9){const _0x120674=_0x5586cb,_0x1e3f2c=_0x3ffcd9[_0x120674(0x1d9)](','),_0x5f0681=[];for(const _0xd3bd83 of _0x1e3f2c){const [_0x4790bd,_0x406a3c,_0xcca727,_0x1e56a8,_0x2e3a7f,_0x494c5b]=_0xd3bd83[_0x120674(0x1d9)](':');_0x5f0681[_0x120674(0x1e2)]({'startOffset':Number(_0x4790bd),'endOffset':Number(_0x406a3c),'collapsed':_0x4790bd===_0x406a3c,'isActive':_0xcca727==='1','rangeType':_0x1e56a8===a[_0x120674(0x121)][_0x120674(0xe9)]?a[_0x120674(0x121)][_0x120674(0xe9)]:a[_0x120674(0x121)]['RECT'],'segmentId':typeof _0x2e3a7f==_0x120674(0x87)?String(_0x2e3a7f):'','segmentPage':Number(_0x494c5b!=null?_0x494c5b:-0x1)});}return _0x5f0681[_0x120674(0x27a)](_0x148fe6=>_0x148fe6[_0x120674(0x1ce)])||(_0x5f0681[0x0][_0x120674(0x1ce)]=!0x0),_0x5f0681;}class Ce extends a['RxDisposable']{constructor(){const _0x14957c=_0x5586cb;super(...arguments),h(this,'_collabCursorState$',new d[(_0x14957c(0x2dc))](null)),h(this,_0x14957c(0x2b3),this[_0x14957c(0x17a)]['asObservable']());}[_0x5586cb(0xa7)](_0x53de79){const {unitID:_0x1b9abc,memberID:_0x27b24b,textRanges:_0x215d8e}=_0x53de79,_0x3f6f37=Pe(_0x215d8e);if(_0x3f6f37==='')return;const _0x5619d6={'unitID':_0x1b9abc,'memberID':_0x27b24b,'selection':_0x3f6f37};this['_collabCursorState$']['next'](_0x5619d6);}}var Je=Object[_0x5586cb(0x84)],Ze=(_0x2617a5,_0xc0d0a5,_0x50af97,_0x3b2385)=>{const _0x16ee21=_0x5586cb;for(var _0x4838f1=_0x3b2385>0x1?void 0x0:_0x3b2385?Je(_0xc0d0a5,_0x50af97):_0xc0d0a5,_0x5e5e7f=_0x2617a5[_0x16ee21(0x99)]-0x1,_0x298060;_0x5e5e7f>=0x0;_0x5e5e7f--)(_0x298060=_0x2617a5[_0x5e5e7f])&&(_0x4838f1=_0x298060(_0x4838f1)||_0x4838f1);return _0x4838f1;},L=(_0x558fe7,_0xca5618)=>(_0x298c2b,_0x148d14)=>_0xca5618(_0x298c2b,_0x148d14,_0x558fe7);const Qe=0x12c,et=0x64;let Ie=class extends a[_0x5586cb(0x2bc)]{constructor(_0x3ce2b3,_0x563b4d,_0x220cec,_0x9515e3,_0x24c3bd,_0x1fdadf,_0x46461b,_0x583dd1,_0x4065d1){const _0x3e72ce=_0x5586cb;super(),h(this,_0x3e72ce(0x18c),!0x1),h(this,_0x3e72ce(0x17f),!0x1),h(this,'_cursorInfo$',new d[(_0x3e72ce(0x2dc))](new Map())),h(this,'cursorInfo$',this[_0x3e72ce(0x103)]['asObservable']()),h(this,_0x3e72ce(0x9f),new d[(_0x3e72ce(0x2dc))]([])),h(this,_0x3e72ce(0x78),this[_0x3e72ce(0x9f)][_0x3e72ce(0x162)](d[_0x3e72ce(0x2d2)](Qe))),h(this,_0x3e72ce(0xe0),a[_0x3e72ce(0x1a5)](_0x1e5217=>{const _0x2e23e8=_0x3e72ce,_0x81805e={'eventID':m['CollaborationEvent'][_0x2e23e8(0xc3)],'data':{'unitID':this[_0x2e23e8(0x1c0)],'memberID':this[_0x2e23e8(0x249)]['getMemberID'](),'selection':Pe(_0x1e5217)}};this[_0x2e23e8(0x249)]['send'](_0x81805e,this[_0x2e23e8(0x1c0)]);},et)),(this[_0x3e72ce(0x1c0)]=_0x3ce2b3,this['_session']=_0x563b4d,this[_0x3e72ce(0x277)]=_0x220cec,this[_0x3e72ce(0x2b2)]=_0x9515e3,this['_memberService']=_0x24c3bd,this['_syncEditingCollabCursorService']=_0x1fdadf,this['_transformService']=_0x46461b,this['_univerInstanceService']=_0x583dd1,this[_0x3e72ce(0x28d)]=_0x4065d1);}get[_0x5586cb(0x110)](){const _0xc2ea4a=_0x5586cb;return this[_0xc2ea4a(0x103)][_0xc2ea4a(0x7a)]();}get[_0x5586cb(0x1c3)](){const _0x29f697=_0x5586cb;return this[_0x29f697(0x9f)][_0x29f697(0x7a)]();}[_0x5586cb(0x24a)](){const _0x1cea89=_0x5586cb;super[_0x1cea89(0x24a)](),this[_0x1cea89(0x103)][_0x1cea89(0x229)](new Map()),this[_0x1cea89(0x103)]['complete'](),this[_0x1cea89(0x9f)]['next']([]),this[_0x1cea89(0x9f)][_0x1cea89(0x284)]();}[_0x5586cb(0x2c7)](){const _0x32d3ca=_0x5586cb;this[_0x32d3ca(0x17f)]||(this[_0x32d3ca(0x17f)]=!0x0,this[_0x32d3ca(0x249)][_0x32d3ca(0x105)]['pipe'](d['takeUntil'](this[_0x32d3ca(0x1dd)]))[_0x32d3ca(0x2a2)](_0x51682e=>{const _0x3069d7=_0x32d3ca;_0x51682e===u[_0x3069d7(0x1f3)][_0x3069d7(0x15a)]?this['_toggleOnline']():this[_0x3069d7(0xb8)]();}),this[_0x32d3ca(0x249)][_0x32d3ca(0x268)][_0x32d3ca(0x162)](d[_0x32d3ca(0xed)](this[_0x32d3ca(0x1dd)]))[_0x32d3ca(0x2a2)](_0x2a64ac=>{const _0x4a8e20=_0x32d3ca,_0x1d37b2=_0x2a64ac['eventID'];_0x1d37b2===m[_0x4a8e20(0x137)][_0x4a8e20(0xc3)]&&this['_onCursorUpdate'](_0x2a64ac),_0x1d37b2===m['CollaborationEvent']['USERS_LEAVE']&&this['_onCursorDelete'](_0x2a64ac);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x135ed5=>{const _0x54cf7d=_0x32d3ca,_0x1f1e56=_0x135ed5[_0x54cf7d(0x2ac)];_0x1f1e56!=null&&this[_0x54cf7d(0x18c)]&&_0x135ed5['id']===Y['SetTextSelectionsOperation']['id']&&_0x1f1e56[_0x54cf7d(0x115)]===this['unitID']&&_0x1f1e56[_0x54cf7d(0x1eb)]===!0x1&&_0x1f1e56[_0x54cf7d(0x208)][_0x54cf7d(0x99)]>0x0&&this['_updateLocalCursor'](_0x1f1e56[_0x54cf7d(0x208)]);})),this[_0x32d3ca(0x186)][_0x32d3ca(0x2b3)][_0x32d3ca(0x162)](d[_0x32d3ca(0xed)](this[_0x32d3ca(0x1dd)]))['subscribe'](_0x21098d=>{const _0x51b807=_0x32d3ca;if((_0x21098d==null?void 0x0:_0x21098d['unitID'])!==this[_0x51b807(0x1c0)])return;const _0xf2a71a={'eventID':m[_0x51b807(0x137)]['UPDATE_CURSOR'],'data':_0x21098d};this['_onCursorUpdate'](_0xf2a71a);}),this['disposeWithMe'](this[_0x32d3ca(0x28d)][_0x32d3ca(0x1cb)](_0x206c6b=>{const _0x4aefb8=_0x32d3ca;if(_0x206c6b['params']==null)return;const _0x5cf8ff=_0x206c6b[_0x4aefb8(0x2ac)];if(_0x206c6b['id']!==Y[_0x4aefb8(0x1fe)]['id']||_0x5cf8ff['unitId']!==this[_0x4aefb8(0x1c0)])return;const _0x367386={'id':_0x4aefb8(0x278),'params':_0x5cf8ff},_0x34d060=this[_0x4aefb8(0x110)];for(const [_0x2ad38c,_0x1be8bb]of _0x34d060){const _0x57ff7a={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x4aefb8(0x1c0)],'actions':null,'textRanges':_0x1be8bb[_0x4aefb8(0x208)]}},_0x35df73=this[_0x4aefb8(0xb4)][_0x4aefb8(0xdb)](_0x367386,_0x57ff7a,!0x1);if(m['isTransformMutationFailure'](_0x35df73))throw _0x35df73[_0x4aefb8(0xf8)];_0x34d060['set'](_0x2ad38c,{..._0x1be8bb,'ranges':_0x35df73[_0x4aefb8(0x252)][_0x4aefb8(0x2ac)][_0x4aefb8(0x20e)]});}queueMicrotask(()=>{const _0x2c85bf=_0x4aefb8;this[_0x2c85bf(0x103)]['next'](_0x34d060);});})));}[_0x5586cb(0xb2)](_0x4f8c2c){const _0x401437=_0x5586cb;var _0xcae034,_0x1cdc17;const {memberID:_0x14cdef,selection:_0xe52859}=_0x4f8c2c[_0x401437(0xb9)],_0xc7f3ea=ze(_0xe52859),_0x5b7bf8=(_0x1cdc17=(_0xcae034=this[_0x401437(0x85)][_0x401437(0x15e)](this['unitID'],_0x14cdef))==null?void 0x0:_0xcae034[_0x401437(0x26d)])!=null?_0x1cdc17:_0x401437(0xbf),_0x424f79={'color':this['_colorAssignService'][_0x401437(0x1be)](_0x14cdef),'name':_0x5b7bf8,'ranges':_0xc7f3ea},_0x3ef65f=this[_0x401437(0x110)];_0x3ef65f[_0x401437(0xf4)](_0x14cdef,_0x424f79),this[_0x401437(0x103)][_0x401437(0x229)](_0x3ef65f);}['_onCursorDelete'](_0x147e07){const _0x2c800d=_0x5586cb,{memberID:_0x534302}=_0x147e07['data'],_0xc5226f=this[_0x2c800d(0x110)];_0xc5226f[_0x2c800d(0x181)](_0x534302),this['_cursorInfo$']['next'](_0xc5226f);}[_0x5586cb(0x1ba)](){const _0x36b4a5=_0x5586cb;var _0x14ce0c;if(this['_online']=!0x0,((_0x14ce0c=this['_univerInstanceService'][_0x36b4a5(0x158)]())==null?void 0x0:_0x14ce0c[_0x36b4a5(0x109)]())!==this[_0x36b4a5(0x1c0)])return;const _0x50371b=this[_0x36b4a5(0x277)][_0x36b4a5(0x2ec)](Y[_0x36b4a5(0x1a3)])['getDocRanges']();Array[_0x36b4a5(0x26f)](_0x50371b)&&_0x50371b[_0x36b4a5(0x99)]>0x0&&this[_0x36b4a5(0xe0)](_0x50371b);}[_0x5586cb(0xb8)](){const _0x214033=_0x5586cb;this[_0x214033(0x18c)]=!0x1;}};Ie=Ze([L(0x2,a['Inject'](a[_0x5586cb(0x144)])),L(0x3,a[_0x5586cb(0x187)](me)),L(0x4,a[_0x5586cb(0x187)](u['MemberService'])),L(0x5,a[_0x5586cb(0x187)](Ce)),L(0x6,m[_0x5586cb(0x12c)]),L(0x7,a[_0x5586cb(0x270)]),L(0x8,a['ICommandService'])],Ie);var tt=Object[_0x5586cb(0x84)],st=(_0x580004,_0x564b09,_0x534e07,_0x269ed1)=>{const _0x1fe9a2=_0x5586cb;for(var _0x3d100d=_0x269ed1>0x1?void 0x0:_0x269ed1?tt(_0x564b09,_0x534e07):_0x564b09,_0x1d379e=_0x580004[_0x1fe9a2(0x99)]-0x1,_0x4a4075;_0x1d379e>=0x0;_0x1d379e--)(_0x4a4075=_0x580004[_0x1d379e])&&(_0x3d100d=_0x4a4075(_0x3d100d)||_0x3d100d);return _0x3d100d;},A=(_0x7841a8,_0x4bf1ac)=>(_0x1509ef,_0x2dc9ea)=>_0x4bf1ac(_0x1509ef,_0x2dc9ea,_0x7841a8);const it=0x12c,nt=0x64,rt=()=>{let _0x12cc75=[],_0x3733af=!0x1;return _0x11246f=>{const _0x4d2e4f=_0x13cb;_0x12cc75[_0x4d2e4f(0x1e2)](_0x11246f),_0x3733af||(_0x3733af=!0x0,setTimeout(()=>{const _0x38855f=_0x4d2e4f;_0x12cc75[_0x38855f(0x1de)](_0x4f1494=>_0x4f1494()),_0x12cc75=[],_0x3733af=!0x1;}));};};let Se=class extends a[_0x5586cb(0x2bc)]{constructor(_0x461d7a,_0x4e4a20,_0x1e2d7c,_0x122892,_0x88435a,_0x47dc25,_0x5011a0,_0x34df61){const _0x564b59=_0x5586cb;super(),h(this,_0x564b59(0x18c),!0x1),h(this,'_init',!0x1),h(this,_0x564b59(0x103),new d[(_0x564b59(0x2dc))](new Map())),h(this,_0x564b59(0x221),this['_cursorInfo$'][_0x564b59(0x13b)]()),h(this,'_roomMembers$',new d['BehaviorSubject']([])),h(this,_0x564b59(0x78),this[_0x564b59(0x9f)]['pipe'](d[_0x564b59(0x2d2)](it))),h(this,_0x564b59(0xe0),a[_0x564b59(0x1a5)]((_0x1339da,_0x3bad9d)=>{const _0x5f25e5=_0x564b59,_0x557008={'eventID':m[_0x5f25e5(0x137)][_0x5f25e5(0xc3)],'data':{'unitID':this[_0x5f25e5(0x1c0)],'memberID':this['_session'][_0x5f25e5(0x2ba)](),'selection':be[_0x5f25e5(0x194)](_0x1339da,_0x3bad9d[_0x5f25e5(0x101)])}};this[_0x5f25e5(0x249)][_0x5f25e5(0xc0)](_0x557008,this[_0x5f25e5(0x1c0)]);},nt)),(this[_0x564b59(0x1c0)]=_0x461d7a,this[_0x564b59(0x249)]=_0x4e4a20,this[_0x564b59(0x277)]=_0x1e2d7c,this[_0x564b59(0x2b2)]=_0x122892,this[_0x564b59(0x85)]=_0x88435a,this[_0x564b59(0x1bc)]=_0x47dc25,this[_0x564b59(0x28d)]=_0x5011a0,this[_0x564b59(0x219)]=_0x34df61);}get[_0x5586cb(0x110)](){return this['_cursorInfo$']['getValue']();}get[_0x5586cb(0x1c3)](){const _0x183e6d=_0x5586cb;return this[_0x183e6d(0x9f)][_0x183e6d(0x7a)]();}[_0x5586cb(0x24a)](){const _0x5babc5=_0x5586cb;super[_0x5babc5(0x24a)](),this['_cursorInfo$'][_0x5babc5(0x229)](new Map()),this['_cursorInfo$'][_0x5babc5(0x284)](),this['_roomMembers$']['next']([]),this[_0x5babc5(0x9f)]['complete']();}['init'](){const _0x49bac0=_0x5586cb;this['_init']||(this[_0x49bac0(0x17f)]=!0x0,this[_0x49bac0(0x249)][_0x49bac0(0x105)][_0x49bac0(0x162)](d[_0x49bac0(0xed)](this[_0x49bac0(0x1dd)]))['subscribe'](_0x482d07=>{const _0x233846=_0x49bac0;_0x482d07===u[_0x233846(0x1f3)][_0x233846(0x15a)]?this[_0x233846(0x1ba)]():this[_0x233846(0xb8)]();}),this[_0x49bac0(0x249)]['event$'][_0x49bac0(0x162)](d[_0x49bac0(0xed)](this[_0x49bac0(0x1dd)]))[_0x49bac0(0x2a2)](_0x466797=>{const _0x291e08=_0x49bac0,_0x4ee33f=_0x466797[_0x291e08(0x23f)];_0x4ee33f===m['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x291e08(0xb2)](_0x466797),_0x4ee33f===m[_0x291e08(0x137)][_0x291e08(0x1b9)]&&this[_0x291e08(0x2ca)](_0x466797);}),this[_0x49bac0(0x248)](),this[_0x49bac0(0x142)](this['_commandService'][_0x49bac0(0x1cb)](_0x28f76f=>{const _0x16c50d=_0x49bac0;if(this['_online']&&_0x28f76f['id']===g['SetSelectionsOperation']['id']&&_0x28f76f[_0x16c50d(0x2ac)][_0x16c50d(0x115)]===this[_0x16c50d(0x1c0)]){const _0x8f31df=_0x28f76f['params'];this['_updateLocalCursor'](_0x8f31df[_0x16c50d(0x2ee)],_0x8f31df[_0x16c50d(0x107)][0x0]);}})));}[_0x5586cb(0xb2)](_0x2e42df){const _0xc94bda=_0x5586cb;var _0x54cbff,_0x5e2285;const {memberID:_0x5b6b1e,selection:_0x56deed}=_0x2e42df[_0xc94bda(0xb9)],{sheetName:_0x4b60b6,range:_0x38b052}=be[_0xc94bda(0x8e)](_0x56deed),_0xe63fe5={'name':(_0x5e2285=(_0x54cbff=this[_0xc94bda(0x85)]['getMember'](this[_0xc94bda(0x1c0)],_0x5b6b1e))==null?void 0x0:_0x54cbff[_0xc94bda(0x26d)])!=null?_0x5e2285:'Unknown\x20user','range':this[_0xc94bda(0x1b7)](_0x4b60b6,_0x38b052),'sheetID':_0x4b60b6,'color':this[_0xc94bda(0x2b2)][_0xc94bda(0x1be)](_0x5b6b1e),'selection':_0x56deed},_0x5ecec8=this[_0xc94bda(0x110)];_0x5ecec8[_0xc94bda(0xf4)](_0x5b6b1e,_0xe63fe5),this['_cursorInfo$']['next'](_0x5ecec8);}[_0x5586cb(0x2ca)](_0x368931){const _0x53aff5=_0x5586cb,{memberID:_0x792328}=_0x368931['data'],_0x32fb46=this['cursorInfo'];_0x32fb46['delete'](_0x792328),this[_0x53aff5(0x103)][_0x53aff5(0x229)](_0x32fb46);}[_0x5586cb(0x1b7)](_0x34b911,_0x2f485a){const _0x4c5bf1=_0x5586cb;var _0x476f83,_0x56a7c2;const _0x4e1327=(_0x56a7c2=(_0x476f83=this[_0x4c5bf1(0x1bc)][_0x4c5bf1(0x151)](this['unitID']))==null?void 0x0:_0x476f83[_0x4c5bf1(0xfa)](_0x34b911))==null?void 0x0:_0x56a7c2['getMergeData']();return(_0x4e1327==null?void 0x0:_0x4e1327[_0x4c5bf1(0x1ea)](_0xe3048=>a['Rectangle'][_0x4c5bf1(0xa6)](_0xe3048,_0x2f485a)))||_0x2f485a;}[_0x5586cb(0x248)](){const _0x16aa1c=_0x5586cb,_0x326714=new a[(_0x16aa1c(0x1e5))](),_0x15acf=rt(),_0x45aca3=()=>{const _0x1e99ee=_0x16aa1c;_0x326714[_0x1e99ee(0x24a)]();const _0xd1d937=(_0x1cf588,_0x5239a8,_0x555192,_0x1ecb35)=>{const _0x1d7984=_0x1e99ee;let _0x55b04b=[];switch(_0x1cf588['id']){case g[_0x1d7984(0x22d)][_0x1d7984(0xfe)]:{_0x55b04b=g[_0x1d7984(0x2c1)](_0x1cf588,_0x1ecb35);break;}case g[_0x1d7984(0x22d)][_0x1d7984(0x19c)]:{_0x55b04b=g[_0x1d7984(0x1d3)](_0x1cf588,_0x1ecb35);break;}case g[_0x1d7984(0x22d)][_0x1d7984(0x1bb)]:{_0x55b04b=g[_0x1d7984(0x12f)](_0x1cf588,_0x1ecb35);break;}case g['EffectRefRangId'][_0x1d7984(0x1cf)]:{_0x55b04b=g[_0x1d7984(0x1f4)](_0x1cf588,_0x1ecb35);break;}case g[_0x1d7984(0x22d)][_0x1d7984(0x254)]:{_0x55b04b=g[_0x1d7984(0x147)](_0x1cf588,_0x1ecb35);break;}case g[_0x1d7984(0x22d)][_0x1d7984(0x210)]:{_0x55b04b=g[_0x1d7984(0x201)](_0x1cf588,_0x1ecb35);break;}case g[_0x1d7984(0x22d)][_0x1d7984(0x24d)]:{_0x55b04b=g['handleMoveRange'](_0x1cf588,_0x1ecb35);break;}case g[_0x1d7984(0x22d)][_0x1d7984(0x241)]:{_0x55b04b=g[_0x1d7984(0x22e)](_0x1cf588,_0x1ecb35);break;}case g[_0x1d7984(0x22d)]['RemoveRowCommandId']:{_0x55b04b=g[_0x1d7984(0xf2)](_0x1cf588,_0x1ecb35);break;}}const _0x1d0138=g['runRefRangeMutations'](_0x55b04b,_0x1ecb35),_0x2b62d9=this[_0x1d7984(0x110)]['get'](_0x5239a8);if(_0x2b62d9&&_0x1d0138){const _0x471a97={..._0x2b62d9,'range':_0x1d0138};this[_0x1d7984(0x110)][_0x1d7984(0xf4)](_0x5239a8,_0x471a97),_0x15acf(()=>{const _0x19d2c7=_0x1d7984,_0x258e1e=this[_0x19d2c7(0x219)]['registerRefRange'](_0x1d0138,_0x1adb17=>(_0x258e1e['dispose'](),_0xd1d937(_0x1adb17,_0x5239a8,_0x555192,_0x1d0138)));_0x326714['add'](_0x258e1e);});}return{'redos':[],'undos':[]};};this[_0x1e99ee(0x110)][_0x1e99ee(0x1de)]((_0x2a51f5,_0x11ba5)=>{const _0xee9222=_0x1e99ee,{range:_0x108d08,sheetID:_0x2b5745}=_0x2a51f5,_0x2811b9=this[_0xee9222(0x219)][_0xee9222(0x1d4)](_0x108d08,_0x1168b8=>(_0x2811b9['dispose'](),_0xd1d937(_0x1168b8,_0x11ba5,_0x2b5745,_0x108d08)));_0x326714[_0xee9222(0x143)](_0x2811b9);});};this['disposeWithMe'](a[_0x16aa1c(0x9a)](this['_cursorInfo$']['subscribe'](()=>{_0x45aca3();})));}[_0x5586cb(0x1ba)](){const _0x4e11a1=_0x5586cb;var _0x58fc6c,_0x2aef53;if(this[_0x4e11a1(0x18c)]=!0x0,((_0x58fc6c=this[_0x4e11a1(0x1bc)][_0x4e11a1(0x158)]())==null?void 0x0:_0x58fc6c[_0x4e11a1(0x109)]())!==this[_0x4e11a1(0x1c0)])return;const _0x5a150a=(_0x2aef53=this['_injector']['get'](g[_0x4e11a1(0x262)])[_0x4e11a1(0x7e)]())==null?void 0x0:_0x2aef53[0x0],_0x2db5a2=this[_0x4e11a1(0x1bc)]['getCurrentUnitForType'](a[_0x4e11a1(0xdd)][_0x4e11a1(0x83)])[_0x4e11a1(0xeb)]();_0x5a150a&&_0x2db5a2&&this['_updateLocalCursor'](_0x2db5a2[_0x4e11a1(0x196)](),_0x5a150a);}[_0x5586cb(0xb8)](){const _0x4bdd9e=_0x5586cb;this[_0x4bdd9e(0x18c)]=!0x1;}};Se=st([A(0x2,a[_0x5586cb(0x187)](a['Injector'])),A(0x3,a[_0x5586cb(0x187)](me)),A(0x4,a['Inject'](u[_0x5586cb(0xc6)])),A(0x5,a[_0x5586cb(0x270)]),A(0x6,a['ICommandService']),A(0x7,a[_0x5586cb(0x187)](g['RefRangeService']))],Se);var ot=Object[_0x5586cb(0x84)],at=(_0x1c6717,_0x31fa51,_0x212cdc,_0x2c3011)=>{const _0x138688=_0x5586cb;for(var _0x1ed06f=_0x2c3011>0x1?void 0x0:_0x2c3011?ot(_0x31fa51,_0x212cdc):_0x31fa51,_0x8ddad4=_0x1c6717[_0x138688(0x99)]-0x1,_0x5ee324;_0x8ddad4>=0x0;_0x8ddad4--)(_0x5ee324=_0x1c6717[_0x8ddad4])&&(_0x1ed06f=_0x5ee324(_0x1ed06f)||_0x1ed06f);return _0x1ed06f;},ie=(_0x2bdd7c,_0x4828f2)=>(_0x389e70,_0x24101a)=>_0x4828f2(_0x389e70,_0x24101a,_0x2bdd7c);function _0x13cb(_0x53b34f,_0x3386cc){const _0x524533=_0x5245();return _0x13cb=function(_0x13cb40,_0x2eafa2){_0x13cb40=_0x13cb40-0x77;let _0x2e1045=_0x524533[_0x13cb40];return _0x2e1045;},_0x13cb(_0x53b34f,_0x3386cc);}let x=class extends a[_0x5586cb(0x2bc)]{constructor(_0xb1e220,_0x55ffab,_0xb6da62){const _0x5119b6=_0x5586cb;super(),h(this,_0x5119b6(0x168),new Map()),h(this,_0x5119b6(0x1ef),new d['Subject']()),(this[_0x5119b6(0x1bc)]=_0xb1e220,this[_0x5119b6(0x277)]=_0x55ffab,this[_0x5119b6(0x261)]=_0xb6da62,this['_init']());}[_0x5586cb(0x24a)](){const _0x2f99d9=_0x5586cb;super[_0x2f99d9(0x24a)](),this['_entityInit$']['complete'](),this[_0x2f99d9(0x168)]['forEach'](_0x3d28a7=>_0x3d28a7[_0x2f99d9(0x24a)]());}[_0x5586cb(0x7f)](_0x271234){const _0x5cdc69=_0x5586cb;return this['_entities']['has'](_0x271234)?this[_0x5cdc69(0x168)]['get'](_0x271234)[_0x5cdc69(0x221)]:this[_0x5cdc69(0x1ef)][_0x5cdc69(0x162)](d[_0x5cdc69(0x114)](_0x1f4e90=>_0x1f4e90[_0x5cdc69(0x1c0)]===_0x271234),d['switchMap'](_0x5ec149=>_0x5ec149[_0x5cdc69(0x221)]));}['_init'](){const _0x645cbe=_0x5586cb;this[_0x645cbe(0x1bc)][_0x645cbe(0x2d0)](a[_0x645cbe(0xdd)][_0x645cbe(0x83)])[_0x645cbe(0x162)](d[_0x645cbe(0xed)](this[_0x645cbe(0x1dd)]))[_0x645cbe(0x2a2)](async _0x492246=>{const _0x4ddd47=_0x645cbe,_0x5490c4=_0x492246['getUnitId'](),_0x20fbdb=await this['_startSheetCollabCursor'](_0x5490c4);this[_0x4ddd47(0x1ef)][_0x4ddd47(0x229)](_0x20fbdb),this[_0x4ddd47(0x168)][_0x4ddd47(0xf4)](_0x5490c4,_0x20fbdb);}),this['_univerInstanceService'][_0x645cbe(0x2d0)](a[_0x645cbe(0xdd)][_0x645cbe(0x225)])[_0x645cbe(0x162)](d[_0x645cbe(0xed)](this[_0x645cbe(0x1dd)]))[_0x645cbe(0x162)](d[_0x645cbe(0x114)](_0x44eac3=>!_0x44eac3['getUnitId']()[_0x645cbe(0x12b)]('__')))['subscribe'](async _0x232aac=>{const _0x20f6b1=_0x645cbe,_0x3d37b7=_0x232aac['getUnitId'](),_0xca0f83=await this['_startDocCollabCursor'](_0x3d37b7);this[_0x20f6b1(0x1ef)]['next'](_0xca0f83),this[_0x20f6b1(0x168)]['set'](_0x3d37b7,_0xca0f83);}),d[_0x645cbe(0x22b)](this[_0x645cbe(0x1bc)][_0x645cbe(0x1ee)](a[_0x645cbe(0xdd)]['UNIVER_DOC']),this[_0x645cbe(0x1bc)][_0x645cbe(0x1ee)](a['UniverInstanceType']['UNIVER_SHEET']))['pipe'](d[_0x645cbe(0xed)](this[_0x645cbe(0x1dd)]))[_0x645cbe(0x2a2)](_0x273859=>{const _0x3b769f=_0x645cbe,_0x224daf=_0x273859[_0x3b769f(0x109)](),_0x3574c2=this[_0x3b769f(0x168)][_0x3b769f(0x2ec)](_0x224daf);_0x3574c2&&(_0x3574c2[_0x3b769f(0x24a)](),this[_0x3b769f(0x168)][_0x3b769f(0x181)](_0x224daf));});}async[_0x5586cb(0x1a7)](_0x31861d){const _0x4edf6b=_0x5586cb,_0x4238fe=await this[_0x4edf6b(0x261)][_0x4edf6b(0x17b)](_0x31861d),_0x2d21d3=this['_injector'][_0x4edf6b(0x2a5)](Se,_0x31861d,_0x4238fe);return _0x2d21d3[_0x4edf6b(0x2c7)](),_0x2d21d3;}async[_0x5586cb(0x29b)](_0x3aa892){const _0x2297d6=_0x5586cb,_0x1b6686=await this[_0x2297d6(0x261)]['requireSession'](_0x3aa892),_0x2ccca1=this['_injector'][_0x2297d6(0x2a5)](Ie,_0x3aa892,_0x1b6686);return _0x2ccca1[_0x2297d6(0x2c7)](),_0x2ccca1;}};x=at([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x5586cb(0x187)](a[_0x5586cb(0x144)])),ie(0x2,a['Inject'](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,ct=0x5;function lt(_0x5a98d2,_0x1a9c1b){const _0x19702c=_0x5586cb;let {radius:_0x419ea3,width:_0x601f83,height:_0x2acbea}=_0x1a9c1b;_0x419ea3=_0x419ea3!=null?_0x419ea3:0x0,_0x601f83=_0x601f83!=null?_0x601f83:0x1e,_0x2acbea=_0x2acbea!=null?_0x2acbea:0x1e;let _0x1e14ce=0x0,_0x440f38=0x0,_0x1b0ac0=0x0;_0x1e14ce=_0x440f38=_0x1b0ac0=Math['min'](_0x419ea3,_0x601f83/0x2,_0x2acbea/0x2),_0x5a98d2[_0x19702c(0x125)](),_0x5a98d2[_0x19702c(0x16b)](_0x1e14ce,0x0),_0x5a98d2[_0x19702c(0x169)](_0x601f83-_0x440f38,0x0),_0x5a98d2['arc'](_0x601f83-_0x440f38,_0x440f38,_0x440f38,Math['PI']*0x3/0x2,0x0,!0x1),_0x5a98d2[_0x19702c(0x169)](_0x601f83,_0x2acbea-_0x1b0ac0),_0x5a98d2[_0x19702c(0x1a8)](_0x601f83-_0x1b0ac0,_0x2acbea-_0x1b0ac0,_0x1b0ac0,0x0,Math['PI']/0x2,!0x1),_0x5a98d2[_0x19702c(0x169)](0x0,_0x2acbea),_0x5a98d2[_0x19702c(0x169)](0x0,_0x1e14ce),_0x5a98d2[_0x19702c(0x1a8)](_0x1e14ce,_0x1e14ce,_0x1e14ce,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5a98d2[_0x19702c(0x10d)](),_0x1a9c1b['fill']&&(_0x5a98d2['save'](),_0x5a98d2['fillStyle']=_0x1a9c1b['fill'],_0x1a9c1b[_0x19702c(0x82)]===_0x19702c(0x1aa)?_0x5a98d2['fill'](_0x19702c(0x1aa)):_0x5a98d2[_0x19702c(0x14a)](),_0x5a98d2['restore']());}class ee extends p[_0x5586cb(0x124)]{constructor(_0x540fee,_0x425ac2){const _0x285055=_0x5586cb;super(_0x540fee,_0x425ac2),h(this,_0x285055(0x182)),h(this,'text'),(this[_0x285055(0x182)]=_0x425ac2==null?void 0x0:_0x425ac2[_0x285055(0x182)],this[_0x285055(0x1d8)]=_0x425ac2==null?void 0x0:_0x425ac2[_0x285055(0x1d8)]);}static[_0x5586cb(0x27f)](_0x326cc0,_0x53f310){const _0x2062da=_0x5586cb,{text:_0x3d3319,color:_0x439c11}=_0x53f310;_0x326cc0[_0x2062da(0x299)](),_0x326cc0[_0x2062da(0x11e)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x30fa33=_0x326cc0[_0x2062da(0x245)](_0x3d3319)['width'],_0x54cf18=Math[_0x2062da(0x297)](_0x30fa33+0x2*ne,Re);lt(_0x326cc0,{'height':K,'radius':0x4,'width':_0x54cf18,'fill':_0x439c11}),_0x326cc0[_0x2062da(0x29a)]='#FFF';const _0x268234=ne,_0x184313=K-ct,_0x16c051=Re-0x2*ne;if(_0x30fa33>_0x16c051){let _0x45c85b='',_0x38a2b7=0x0;for(const _0x2851c6 of _0x3d3319){const _0x35d508=_0x326cc0[_0x2062da(0x245)](_0x2851c6)[_0x2062da(0x1e4)];if(_0x38a2b7+_0x35d508<=_0x16c051-_0x326cc0[_0x2062da(0x245)](_0x2062da(0x2a7))['width'])_0x45c85b+=_0x2851c6,_0x38a2b7+=_0x35d508;else{_0x45c85b+=_0x2062da(0x2a7);break;}}_0x326cc0['fillText'](_0x45c85b,_0x268234,_0x184313);}else _0x326cc0[_0x2062da(0x174)](_0x3d3319,_0x268234,_0x184313);_0x326cc0['restore']();}[_0x5586cb(0x157)](_0x4d387f){const _0x26a380=_0x5586cb;ee[_0x26a380(0x27f)](_0x4d387f,this);}}const re=_0x5586cb(0x2be),_t='collab-text-range-',ht='collab-rect-range-',k=0x6,ut=1.5,oe=0x4,dt=1.5,It=_0x5586cb(0x136);class De{constructor(_0x275949,_0x369772,_0x296e09,_0x5f499a){const _0x33ba4f=_0x5586cb;h(this,_0x33ba4f(0x16d),[]),h(this,'_anchor',null),h(this,'_textBubble',null),h(this,'_anchorDot',null),h(this,'_hideTimer',null),h(this,'_eventUnsubscribe',null),(this['_cursor']=_0x275949,this[_0x33ba4f(0x199)]=_0x369772,this['_docSkeleton']=_0x296e09,this[_0x33ba4f(0x2e7)]=_0x5f499a,this[_0x33ba4f(0x16c)]());}set[_0x5586cb(0x28f)](_0x20281b){const _0x2e61ba=_0x5586cb;_0x20281b?(this['_anchorDot']&&this[_0x2e61ba(0x16a)][_0x2e61ba(0x2e2)](),this[_0x2e61ba(0x289)]&&this[_0x2e61ba(0x289)][_0x2e61ba(0x100)]()):(this['_anchorDot']&&this['_anchorDot'][_0x2e61ba(0x100)](),this[_0x2e61ba(0x289)]&&this[_0x2e61ba(0x289)][_0x2e61ba(0x2e2)]());}[_0x5586cb(0x24a)](){const _0x444119=_0x5586cb;for(const _0x4b2eb0 of this['_shapes'])_0x4b2eb0[_0x444119(0x24a)]();this['_textBubble']&&this[_0x444119(0x289)][_0x444119(0x24a)](),this[_0x444119(0x16a)]&&this[_0x444119(0x16a)][_0x444119(0x24a)](),this['_anchor']&&this[_0x444119(0x295)][_0x444119(0x24a)](),this['_eventUnsubscribe']&&this[_0x444119(0x1a1)]();}[_0x5586cb(0x16c)](){const _0x101460=_0x5586cb;var _0x4fe717;const {_docSkeleton:_0x223499,_document:_0x5e1917}=this,{color:_0x576a7c,name:_0x212d0f,ranges:_0x400bf7}=this['_cursor'],_0x4198df=_0x5e1917[_0x101460(0xb6)](),{docsLeft:_0x583fcb,docsTop:_0x4ecc19}=_0x4198df,_0x463156=new E[(_0x101460(0x79))](_0x4198df,_0x223499);for(const {startOffset:_0x5083eb,endOffset:_0x31fb32,rangeType:_0x38485f,segmentId:_0x1e43b5,segmentPage:_0x18813e,collapsed:_0x17323b,isActive:_0x501ca0}of _0x400bf7){const _0x3ac2b1=_0x223499['findNodePositionByCharIndex'](_0x5083eb,!0x0,_0x1e43b5,_0x18813e);let _0x4afe5f=_0x223499['findNodePositionByCharIndex'](_0x31fb32,!0x0,_0x1e43b5,_0x18813e);if(_0x4afe5f==null&&(_0x4afe5f=_0x223499['findNodePositionByCharIndex'](_0x31fb32-0x1,!0x1,_0x1e43b5,_0x18813e)),_0x501ca0){const {contentBoxPointGroup:_0x4219ff}=_0x463156[_0x101460(0x2a3)](_0x4afe5f,_0x4afe5f);if(_0x4219ff[_0x101460(0x99)]===0x0)continue;this['_drawAnchor'](_0x576a7c,_0x4219ff,_0x583fcb,_0x4ecc19,_0x212d0f),this['_eventUnsubscribe']=this[_0x101460(0x2eb)]();}if(_0x3ac2b1&&_0x4afe5f){if(_0x38485f===a[_0x101460(0x121)]['RECT']){const _0x2884e=new E[(_0x101460(0xe3))](_0x4198df,_0x223499),{pointGroup:_0x52e381}=(_0x4fe717=_0x2884e[_0x101460(0x2a3)](_0x3ac2b1,_0x4afe5f))!=null?_0x4fe717:{};if(_0x52e381==null||_0x52e381['length']===0x0)continue;this[_0x101460(0x222)](_0x576a7c,_0x52e381,_0x583fcb,_0x4ecc19);}else{if(!_0x17323b){const {borderBoxPointGroup:_0x10e4f1}=_0x463156[_0x101460(0x2a3)](_0x3ac2b1,_0x4afe5f);if(_0x10e4f1[_0x101460(0x99)]===0x0)continue;this[_0x101460(0x14e)](_0x576a7c,_0x10e4f1,_0x583fcb,_0x4ecc19);}}}}}['_drawAnchor'](_0x161289,_0x5e8117,_0x919bdb,_0x45cdd1,_0x507e14){const _0xdbde5b=_0x5586cb,_0x19d690=this[_0xdbde5b(0x29d)](_0x5e8117),{left:_0x431da4,top:_0x43b98b,height:_0x13004a}=_0x19d690,_0xa4cd5e=this[_0xdbde5b(0x244)](),_0x2dab63=dt/_0xa4cd5e,_0x532e12=new p[(_0xdbde5b(0xab))](re+a[_0xdbde5b(0x171)](k),{'left':_0x431da4+_0x919bdb-_0x2dab63,'top':_0x43b98b+_0x45cdd1,'height':_0x13004a,'width':ut,'fill':_0x161289||p[_0xdbde5b(0x1ec)](a[_0xdbde5b(0x8a)][_0xdbde5b(0x2cc)],0x0),'strokeWidth':_0x2dab63,'stroke':It,'evented':!0x0});this[_0xdbde5b(0x295)]=_0x532e12,this[_0xdbde5b(0x199)]['addObject'](_0x532e12,E[_0xdbde5b(0x1af)]);const _0x26dc57=new p['Rect'](re+a['generateRandomId'](k),{'left':_0x431da4+_0x919bdb-_0x2dab63,'top':_0x43b98b+_0x45cdd1-oe/0x2,'height':oe,'width':oe,'fill':_0x161289||p[_0xdbde5b(0x1ec)](a[_0xdbde5b(0x8a)][_0xdbde5b(0x2cc)],0x0),'strokeWidth':0x0,'stroke':_0x161289||p['getColor'](a['COLORS']['black'],0x0),'evented':!0x1});this[_0xdbde5b(0x16a)]=_0x26dc57,this['_scene']['addObject'](_0x26dc57,E['TEXT_RANGE_LAYER_INDEX']);const _0x132d4c=new ee(re+a[_0xdbde5b(0x171)](k),{'left':_0x431da4+_0x919bdb-_0x2dab63,'top':_0x43b98b+_0x45cdd1-K,'text':_0x507e14,'color':_0x161289});this[_0xdbde5b(0x289)]=_0x132d4c,this['_scene']['addObject'](_0x132d4c,E[_0xdbde5b(0x1af)]),this[_0xdbde5b(0x28f)]=!0x1;}[_0x5586cb(0x2eb)](){const _0x588b88=_0x5586cb,_0xe0e2a9=this[_0x588b88(0x295)][_0x588b88(0x298)][_0x588b88(0x1d0)](()=>{const _0x2e617d=_0x588b88;this[_0x2e617d(0x28f)]=!0x0;}),_0x287d9e=this[_0x588b88(0x295)][_0x588b88(0x15b)][_0x588b88(0x1d0)](()=>{const _0x1a508e=_0x588b88;this['_hideTimer']&&clearTimeout(this[_0x1a508e(0x193)]),this[_0x1a508e(0x193)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0xc84930=_0x588b88;_0xe0e2a9[_0xc84930(0x204)](),_0x287d9e[_0xc84930(0x204)]();};}[_0x5586cb(0x14e)](_0x16eb8e,_0xaaa334,_0x4d0462,_0x1f93a3){const _0x2a36da=_0x5586cb,_0x182f59=new a['ColorKit'](_0x16eb8e)['setAlpha'](0.2)[_0x2a36da(0x118)](),_0x541f08=new p[(_0x2a36da(0x21d))](_t+a[_0x2a36da(0x171)](k),{'pointsGroup':_0xaaa334,'fill':_0x182f59||p['getColor'](a[_0x2a36da(0x8a)][_0x2a36da(0x2cc)],0.2),'left':_0x4d0462,'top':_0x1f93a3,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2a36da(0x16d)][_0x2a36da(0x1e2)](_0x541f08),this[_0x2a36da(0x199)]['addObject'](_0x541f08,E[_0x2a36da(0x1af)]);}[_0x5586cb(0x222)](_0x2d7611,_0x21100c,_0x10f5e6,_0x5d675e){const _0x473b0c=_0x5586cb,_0x2a031e=new a[(_0x473b0c(0x198))](_0x2d7611)[_0x473b0c(0x15c)](0.2)['toRgbString'](),_0x588bea=new p['RegularPolygon'](ht+a['generateRandomId'](k),{'pointsGroup':_0x21100c,'fill':_0x2a031e||p['getColor'](a['COLORS']['black'],0.2),'left':_0x10f5e6,'top':_0x5d675e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x473b0c(0x16d)][_0x473b0c(0x1e2)](_0x588bea),this[_0x473b0c(0x199)][_0x473b0c(0x280)](_0x588bea,E[_0x473b0c(0x1af)]);}['_getAnchorBounding'](_0x300e48){const _0x4f5f49=_0x300e48[0x0],_0x2f73e0=_0x4f5f49[0x0],_0x2f0112=_0x4f5f49[0x2],{x:_0x2cbfa2,y:_0x292a60}=_0x2f73e0,{x:_0xfa55f5,y:_0x4f1bb6}=_0x2f0112;return{'left':_0x2cbfa2,'top':_0x292a60,'width':_0xfa55f5-_0x2cbfa2,'height':_0x4f1bb6-_0x292a60};}[_0x5586cb(0x244)](){const _0x42d1fc=_0x5586cb,{scaleX:_0x1d360b,scaleY:_0x467886}=this[_0x42d1fc(0x199)][_0x42d1fc(0xcc)]();return Math[_0x42d1fc(0x106)](_0x1d360b,_0x467886);}}var St=Object[_0x5586cb(0x84)],ft=(_0x3a1fb0,_0x504e73,_0x3308b5,_0x39cd19)=>{const _0x2fd699=_0x5586cb;for(var _0x19b0df=_0x39cd19>0x1?void 0x0:_0x39cd19?St(_0x504e73,_0x3308b5):_0x504e73,_0x1f701e=_0x3a1fb0[_0x2fd699(0x99)]-0x1,_0x5551d8;_0x1f701e>=0x0;_0x1f701e--)(_0x5551d8=_0x3a1fb0[_0x1f701e])&&(_0x19b0df=_0x5551d8(_0x19b0df)||_0x19b0df);return _0x19b0df;},W=(_0x58ba37,_0x5d7a66)=>(_0x31d985,_0x5e82fe)=>_0x5d7a66(_0x31d985,_0x5e82fe,_0x58ba37);let fe=class extends a[_0x5586cb(0x2bc)]{constructor(_0x29f82d,_0x4781e7,_0x4972ae,_0x8bcd85,_0x569069){const _0x1197de=_0x5586cb;super(),h(this,'_cursorShapes',[]),h(this,_0x1197de(0x1db),[]),(this[_0x1197de(0x10f)]=_0x29f82d,this[_0x1197de(0x1da)]=_0x4781e7,this['_collabCursorController']=_0x4972ae,this[_0x1197de(0x28d)]=_0x8bcd85,this[_0x1197de(0x1e9)]=_0x569069,this[_0x1197de(0x17f)]());}[_0x5586cb(0x17f)](){const _0x12414e=_0x5586cb,_0x3c7bca=this[_0x12414e(0x10f)][_0x12414e(0x115)],_0x26a0e8=this[_0x12414e(0x1da)];this[_0x12414e(0x142)](d['combineLatest']([this['_collabCursorController'][_0x12414e(0x7f)](_0x3c7bca),this[_0x12414e(0x1e9)][_0x12414e(0x227)]])[_0x12414e(0x162)]($[_0x12414e(0x1c4)](([_0x566da9,_0xe6ce5c])=>({'skeleton':_0x26a0e8['getSkeleton'](),'cursors':[..._0x566da9['values']()][_0x12414e(0x1d1)](_0x50f70b=>({..._0x50f70b,'color':this[_0x12414e(0x1e9)][_0x12414e(0x1d6)](_0x50f70b[_0x12414e(0x182)])}))})))[_0x12414e(0x2a2)](_0x3d3fe0=>{const _0x2159bc=_0x12414e;if(this[_0x2159bc(0x19d)](),_0x3d3fe0){const {skeleton:_0x4591ed,cursors:_0x1812ef}=_0x3d3fe0;this[_0x2159bc(0x17c)](_0x4591ed,_0x1812ef);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x5586cb(0x17c)](_0x2ef871,_0x443c83){const _0x48a6d8=_0x5586cb,{scene:_0x3293df,mainComponent:_0x44f718}=this[_0x48a6d8(0x10f)],_0x381e01=_0x443c83[_0x48a6d8(0x1c4)](_0x3b6208=>new De(_0x3b6208,_0x3293df,_0x2ef871,_0x44f718));this[_0x48a6d8(0x239)]=_0x381e01,this[_0x48a6d8(0x1db)]=_0x443c83;}[_0x5586cb(0x1f8)](){const _0x4011c4=_0x5586cb;this[_0x4011c4(0x19d)]();const {scene:_0x24591f,mainComponent:_0x3ec12e}=this['_context'],_0x353f1a=this['_docSkeletonManagerService']['getSkeleton'](),_0x39850d=this[_0x4011c4(0x1db)][_0x4011c4(0x1c4)](_0x14078d=>new De(_0x14078d,_0x24591f,_0x353f1a,_0x3ec12e));this[_0x4011c4(0x239)]=_0x39850d;}[_0x5586cb(0x19d)](){const _0xa09a21=_0x5586cb;this[_0xa09a21(0x239)][_0xa09a21(0x1de)](_0x5807e5=>_0x5807e5[_0xa09a21(0x24a)]()),this[_0xa09a21(0x239)]=[];}[_0x5586cb(0x25f)](){const _0x5c0c36=_0x5586cb,_0xdbf68=[E['SetDocZoomRatioOperation']['id']];this[_0x5c0c36(0x142)](this[_0x5c0c36(0x28d)][_0x5c0c36(0x1cb)](_0x36ad8f=>{const _0x14c8ab=_0x5c0c36;_0xdbf68[_0x14c8ab(0x97)](_0x36ad8f['id'])&&_0x36ad8f[_0x14c8ab(0x2ac)][_0x14c8ab(0x115)]===this[_0x14c8ab(0x10f)][_0x14c8ab(0x115)]&&this[_0x14c8ab(0x1f8)]();}));}[_0x5586cb(0xd6)](){const _0x125bf4=_0x5586cb;this[_0x125bf4(0x142)](a[_0x125bf4(0x250)](this['_context']['engine'][_0x125bf4(0x29e)])[_0x125bf4(0x162)]($[_0x125bf4(0x114)](_0x3f88f8=>_0x3f88f8[_0x125bf4(0xa9)]===p[_0x125bf4(0x1cd)][_0x125bf4(0x287)]),$[_0x125bf4(0x2a4)](0x10))['subscribe'](()=>{const _0x57997c=_0x125bf4;this[_0x57997c(0x1f8)]();}));}};fe=ft([W(0x1,a[_0x5586cb(0x187)](Y[_0x5586cb(0xcd)])),W(0x2,a[_0x5586cb(0x187)](x)),W(0x3,a['ICommandService']),W(0x4,a[_0x5586cb(0x187)](a[_0x5586cb(0x156)]))],fe);const vt=0x1,gt=1.5;class we extends p[_0x5586cb(0x124)]{constructor(_0x5626f8,_0x477dcb){const _0x9cdc64=_0x5586cb;super(_0x5626f8,_0x477dcb),h(this,_0x9cdc64(0x23d)),h(this,_0x9cdc64(0x11c),!0x1),h(this,_0x9cdc64(0x12e)),h(this,_0x9cdc64(0x27d),''),h(this,_0x9cdc64(0x1e6),_0x9cdc64(0x21f)),h(this,_0x9cdc64(0xd0)),(_0x477dcb&&this[_0x9cdc64(0x281)](_0x477dcb),this[_0x9cdc64(0x298)][_0x9cdc64(0x1d0)](()=>this[_0x9cdc64(0x281)]({'hovered':!0x0})),this[_0x9cdc64(0x15b)][_0x9cdc64(0x1d0)](()=>this[_0x9cdc64(0x281)]({'hovered':!0x1})));}[_0x5586cb(0x281)](_0x482b44){const _0x4d048=_0x5586cb;var _0x23aad9,_0x41d12a,_0x605aa7,_0x34041a,_0x32db92,_0xfc44a0;this['_color']=(_0x23aad9=_0x482b44[_0x4d048(0x182)])!=null?_0x23aad9:this[_0x4d048(0x23d)],this[_0x4d048(0x11c)]=(_0x41d12a=_0x482b44[_0x4d048(0x1f0)])!=null?_0x41d12a:this[_0x4d048(0x11c)],this['_range']=(_0x605aa7=_0x482b44[_0x4d048(0x101)])!=null?_0x605aa7:this[_0x4d048(0x12e)],this[_0x4d048(0x27d)]=(_0x34041a=_0x482b44['name'])!=null?_0x34041a:this[_0x4d048(0x27d)],this['_labelPosition']=(_0x32db92=_0x482b44[_0x4d048(0x26c)])!=null?_0x32db92:this[_0x4d048(0x1e6)],this[_0x4d048(0xd0)]=(_0xfc44a0=_0x482b44[_0x4d048(0x176)])!=null?_0xfc44a0:this['_backgroundColor'],this[_0x4d048(0x2e4)]({'width':_0x482b44['width'],'height':_0x482b44[_0x4d048(0x20d)]});}[_0x5586cb(0x10c)](_0x35df60){const _0x403370=_0x5586cb,{row:_0x367af9,column:_0x17fabc}=_0x35df60;if(_0x367af9>=this[_0x403370(0x12e)][_0x403370(0x127)]&&_0x367af9<=this[_0x403370(0x12e)]['endRow']&&_0x17fabc>=this[_0x403370(0x12e)][_0x403370(0x1b8)]&&_0x17fabc<=this[_0x403370(0x12e)][_0x403370(0x230)]){this[_0x403370(0x281)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x5586cb(0xae)](_0x5a94db){return!0x1;}['_draw'](_0x2f0621){const _0x20400a=_0x5586cb;p[_0x20400a(0xab)][_0x20400a(0x27f)](_0x2f0621,{'width':this[_0x20400a(0x1e4)],'height':this['height'],'strokeWidth':gt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x20400a(0xd0)]}),this[_0x20400a(0x11c)]&&(_0x2f0621[_0x20400a(0x299)](),_0x2f0621[_0x20400a(0x11d)](0x1,0x0,0x0,0x1,this[_0x20400a(0x1e4)],this[_0x20400a(0x1e6)]===_0x20400a(0xc9)?0x0:-0x14),ee['drawWith'](_0x2f0621,{'text':this[_0x20400a(0x27d)],'color':this['_color']}),_0x2f0621[_0x20400a(0x13a)]());}}var mt=Object[_0x5586cb(0x84)],Ct=(_0x34e0d9,_0x3e32a2,_0x152da0,_0x5304ad)=>{const _0x4ed1c3=_0x5586cb;for(var _0x5b736f=_0x5304ad>0x1?void 0x0:_0x5304ad?mt(_0x3e32a2,_0x152da0):_0x3e32a2,_0x35763d=_0x34e0d9[_0x4ed1c3(0x99)]-0x1,_0x5f10a1;_0x35763d>=0x0;_0x35763d--)(_0x5f10a1=_0x34e0d9[_0x35763d])&&(_0x5b736f=_0x5f10a1(_0x5b736f)||_0x5b736f);return _0x5b736f;},ae=(_0x281af7,_0x55e865)=>(_0x384b32,_0x1a9707)=>_0x55e865(_0x384b32,_0x1a9707,_0x281af7);const pt=0x1389;let ve=class extends a[_0x5586cb(0x2bc)]{constructor(_0xd52f9b,_0x3a9d77,_0x5ebceb,_0x361e0f){const _0x3ad134=_0x5586cb;super(),h(this,'_cursors',new Set()),h(this,'_lastPointer',null),(this[_0x3ad134(0x10f)]=_0xd52f9b,this[_0x3ad134(0x218)]=_0x3a9d77,this[_0x3ad134(0x132)]=_0x5ebceb,this[_0x3ad134(0x1e9)]=_0x361e0f,this['_init']());}[_0x5586cb(0x17f)](){const _0x29fd72=_0x5586cb;this[_0x29fd72(0x218)][_0x29fd72(0x1e3)]['pipe']($['takeUntil'](this['dispose$']),$['switchMap'](_0x411c60=>{const _0x3fd28b=_0x29fd72;if(_0x411c60){const _0x18aa82=_0x411c60[_0x3fd28b(0x1e8)];return d[_0x3fd28b(0xa5)](this[_0x3fd28b(0x132)][_0x3fd28b(0x7f)](this[_0x3fd28b(0x10f)][_0x3fd28b(0x115)]),this[_0x3fd28b(0x1e9)][_0x3fd28b(0x227)])['pipe']($['map'](([_0x163507,_0x2352bb])=>{const _0x4c2eed=_0x3fd28b,_0x26dc97=new Map();return _0x163507[_0x4c2eed(0x1de)]((_0xdedca6,_0xdd4c02)=>{const _0x960008=_0x4c2eed;if(_0xdedca6[_0x960008(0xd2)]===_0x18aa82){const _0x2dba41={..._0xdedca6};_0x2dba41[_0x960008(0x182)]=this['_themeService'][_0x960008(0x1d6)](_0xdedca6['color']),_0x26dc97[_0x960008(0xf4)](_0xdd4c02,_0x2dba41);}}),{'skeleton':_0x411c60,'cursors':_0x26dc97};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x29fd72(0x2a2)](({skeleton:_0x15789d,cursors:_0x3ae5f0})=>{const _0x523444=_0x29fd72;this[_0x523444(0x19d)](),_0x15789d&&this[_0x523444(0x17c)](_0x15789d,_0x3ae5f0);}),this[_0x29fd72(0x218)][_0x29fd72(0x1e3)][_0x29fd72(0x2a2)](_0xba2356=>{const _0x5b4292=_0x29fd72;if(_0xba2356==null)return;const {skeleton:_0x236967}=_0xba2356,{scene:_0x30ab33}=this[_0x5b4292(0x10f)];_0x30ab33[_0x5b4292(0x23b)][_0x5b4292(0x1d0)](a[_0x5b4292(0x1a5)](_0x2523c0=>{const _0x26129b=_0x5b4292;var _0x23b3f2,_0x27d444;const {offsetX:_0x59af3f,offsetY:_0x3f7aff}=_0x2523c0,{x:_0x41406e,y:_0x42372a}=_0x30ab33[_0x26129b(0x2ab)](p['Vector2'][_0x26129b(0x112)]([_0x59af3f,_0x3f7aff])),{scaleX:_0x271f8c,scaleY:_0x2d0968}=_0x30ab33[_0x26129b(0xcc)](),_0x555bdd=_0x30ab33[_0x26129b(0xaa)](p[_0x26129b(0x216)][_0x26129b(0x296)]),_0xa91428=_0x30ab33[_0x26129b(0x226)](p[_0x26129b(0xb5)][_0x26129b(0x112)]([_0x41406e,_0x42372a]),_0x555bdd),_0x50f6d0=_0x236967[_0x26129b(0x288)](_0x59af3f,_0x3f7aff,_0x271f8c,_0x2d0968,_0xa91428);((_0x23b3f2=this[_0x26129b(0x24f)])==null?void 0x0:_0x23b3f2[_0x26129b(0x28a)])===_0x50f6d0[_0x26129b(0x28a)]&&((_0x27d444=this['_lastPointer'])==null?void 0x0:_0x27d444['row'])===_0x50f6d0['row']||this[_0x26129b(0x1db)]['forEach'](_0x4165bf=>{const _0x4c48c0=_0x26129b;_0x4165bf[_0x4c48c0(0x10c)](_0x50f6d0);});},0x64));});}['_updateCollabCursors'](_0x2610f2,_0x258156){const _0x4c6a63=_0x5586cb;var _0x5485c9;const _0x1e9ae7=(_0x5485c9=this[_0x4c6a63(0x218)][_0x4c6a63(0x2e8)]())==null?void 0x0:_0x5485c9[_0x4c6a63(0x1c9)];if(!_0x1e9ae7)return;const _0x453998=this[_0x4c6a63(0xd1)]();if(!_0x453998)return;this['_cursors']['forEach'](_0x4d7261=>{const _0x2ea702=_0x4c6a63;_0x4d7261[_0x2ea702(0xce)]();});const {scene:_0x5103ca}=_0x453998,_0x45b041=Et(Array[_0x4c6a63(0x1fc)](_0x258156[_0x4c6a63(0x14c)]()))[_0x4c6a63(0x1c4)](_0x34a5d6=>{const _0x5a2de9=_0x4c6a63,{color:_0x59a0d2,range:_0x1d094e,name:_0x11d03b,selection:_0xbfe358,sheetID:_0x2a23de}=_0x34a5d6,{startColumn:_0x68e76f,startRow:_0x164b96,endColumn:_0x4d287b,endRow:_0x101a11}=_0x1d094e,_0x712b1e=X[_0x5a2de9(0x2f0)](_0x164b96,_0x68e76f,_0x5103ca,_0x1e9ae7),_0x4bcdd3=X['getCoordByCell'](_0x101a11,_0x4d287b,_0x5103ca,_0x1e9ae7),{columnHeaderHeightAndMarginTop:_0xa7cce9}=_0x1e9ae7,{startX:_0x174754,startY:_0x218b6c}=_0x712b1e,{endX:_0x1dc2d2,endY:_0x559d1a}=_0x4bcdd3,_0x3be9ed=_0x1dc2d2-_0x174754,_0x339497=_0x559d1a-_0x218b6c,_0x3eb0b8={'labelPosition':_0x218b6c-_0xa7cce9>=K?_0x5a2de9(0x21f):_0x5a2de9(0xc9),'sheetID':_0x2a23de,'range':_0x1d094e,'color':_0x59a0d2,'name':_0x11d03b,'selection':_0xbfe358,'left':_0x174754,'top':_0x218b6c,'width':_0x3be9ed,'height':_0x339497,'evented':!0x1,'zIndex':pt};return new we(_0x11d03b,_0x3eb0b8);});_0x5103ca[_0x4c6a63(0x23c)](_0x45b041,vt),this[_0x4c6a63(0x1db)]=new Set(_0x45b041);}[_0x5586cb(0x19d)](){const _0xb5cd07=_0x5586cb;var _0x1b227b;(_0x1b227b=this[_0xb5cd07(0x1db)])==null||_0x1b227b['forEach'](_0x39d0bc=>_0x39d0bc[_0xb5cd07(0x24a)]());}['_getSheetObject'](){const _0xcc004a=_0x5586cb;return X['getSheetObject'](this[_0xcc004a(0x10f)][_0xcc004a(0x1b0)],this[_0xcc004a(0x10f)]);}};ve=Ct([ae(0x1,a[_0x5586cb(0x187)](X[_0x5586cb(0x2c5)])),ae(0x2,a[_0x5586cb(0x187)](x)),ae(0x3,a[_0x5586cb(0x187)](a['ThemeService']))],ve);function Et(_0xd4c675){const _0x242b0d=_0x5586cb,_0x4a9677=new Map();return _0xd4c675[_0x242b0d(0x1de)](_0x29ac62=>{const _0x270dd5=_0x242b0d;if(_0x4a9677[_0x270dd5(0xdc)](_0x29ac62[_0x270dd5(0x1c1)])){const _0x4d6604=_0x4a9677[_0x270dd5(0x2ec)](_0x29ac62['selection']);_0x4d6604[_0x270dd5(0x26d)]+=',\x20'+_0x29ac62[_0x270dd5(0x26d)];}else _0x4a9677[_0x270dd5(0xf4)](_0x29ac62['selection'],_0x29ac62);}),Array[_0x242b0d(0x1fc)](_0x4a9677['values']());}var b=function(){const _0x6a8f68=_0x5586cb;return b=Object[_0x6a8f68(0x21c)]||function(_0x2ab608){const _0xe7f87f=_0x6a8f68;for(var _0xa9ce81,_0x3bc38a=0x1,_0xd12e5=arguments[_0xe7f87f(0x99)];_0x3bc38a<_0xd12e5;_0x3bc38a++){_0xa9ce81=arguments[_0x3bc38a];for(var _0x50c8c7 in _0xa9ce81)Object['prototype'][_0xe7f87f(0x2bf)][_0xe7f87f(0x253)](_0xa9ce81,_0x50c8c7)&&(_0x2ab608[_0x50c8c7]=_0xa9ce81[_0x50c8c7]);}return _0x2ab608;},b[_0x6a8f68(0x2db)](this,arguments);},bt=function(_0x5699b8,_0x9943d9){const _0x27a260=_0x5586cb;var _0x3ac76b={};for(var _0x2541b3 in _0x5699b8)Object[_0x27a260(0x25e)][_0x27a260(0x2bf)][_0x27a260(0x253)](_0x5699b8,_0x2541b3)&&_0x9943d9['indexOf'](_0x2541b3)<0x0&&(_0x3ac76b[_0x2541b3]=_0x5699b8[_0x2541b3]);if(_0x5699b8!=null&&typeof Object[_0x27a260(0x77)]==_0x27a260(0xad)){for(var _0x4e7008=0x0,_0x2541b3=Object[_0x27a260(0x77)](_0x5699b8);_0x4e7008<_0x2541b3[_0x27a260(0x99)];_0x4e7008++)_0x9943d9[_0x27a260(0x9c)](_0x2541b3[_0x4e7008])<0x0&&Object[_0x27a260(0x25e)][_0x27a260(0x2b9)][_0x27a260(0x253)](_0x5699b8,_0x2541b3[_0x4e7008])&&(_0x3ac76b[_0x2541b3[_0x4e7008]]=_0x5699b8[_0x2541b3[_0x4e7008]]);}return _0x3ac76b;},pe=M['forwardRef'](function(_0x2ac105,_0x31a205){const _0x4f0034=_0x5586cb;var _0x35367d=_0x2ac105['icon'],_0x2285f5=_0x2ac105['id'],_0x34f0d7=_0x2ac105['className'],_0x4d9b75=_0x2ac105[_0x4f0034(0x257)],_0x5e783d=bt(_0x2ac105,[_0x4f0034(0x1ab),'id',_0x4f0034(0x20a),'extend']),_0x3ea28d=_0x4f0034(0x2af)[_0x4f0034(0x2a0)](_0x2285f5,'\x20')['concat'](_0x34f0d7||'')[_0x4f0034(0x2b8)](),_0x1b3401=M[_0x4f0034(0x211)]('_'[_0x4f0034(0x2a0)](Rt()));return Ae(_0x35367d,''[_0x4f0034(0x2a0)](_0x2285f5),{'defIds':_0x35367d['defIds'],'idSuffix':_0x1b3401[_0x4f0034(0x8f)]},b({'ref':_0x31a205,'className':_0x3ea28d},_0x5e783d),_0x4d9b75);});function Ae(_0x4a0f70,_0x33f02b,_0x351d31,_0x54af1e,_0x4fd9be){const _0x54e47b=_0x5586cb;return M[_0x54e47b(0x8b)](_0x4a0f70[_0x54e47b(0x80)],b(b({'key':_0x33f02b},Ot(_0x4a0f70,_0x351d31,_0x4fd9be)),_0x54af1e),(Tt(_0x4a0f70,_0x351d31)[_0x54e47b(0x251)]||[])[_0x54e47b(0x1c4)](function(_0x16b47d,_0x2d1a65){const _0x13c64c=_0x54e47b;return Ae(_0x16b47d,''[_0x13c64c(0x2a0)](_0x33f02b,'-')[_0x13c64c(0x2a0)](_0x4a0f70['tag'],'-')[_0x13c64c(0x2a0)](_0x2d1a65),_0x351d31,void 0x0,_0x4fd9be);}));}function Ot(_0x193aab,_0x2d87e7,_0x30b1f2){const _0x2df714=_0x5586cb;var _0x5e4f76=b({},_0x193aab[_0x2df714(0x1a2)]);_0x30b1f2!=null&&_0x30b1f2[_0x2df714(0x1fb)]&&_0x5e4f76[_0x2df714(0x14a)]==='colorChannel1'&&(_0x5e4f76['fill']=_0x30b1f2[_0x2df714(0x1fb)]),_0x193aab['tag']==='mask'&&_0x5e4f76['id']&&(_0x5e4f76['id']=_0x5e4f76['id']+_0x2d87e7[_0x2df714(0x2b7)]),Object[_0x2df714(0xdf)](_0x5e4f76)[_0x2df714(0x1de)](function(_0x4098f7){const _0x11faf2=_0x2df714;var _0x426668=_0x4098f7[0x0],_0x15b26b=_0x4098f7[0x1];_0x426668===_0x11faf2(0x192)&&typeof _0x15b26b==_0x11faf2(0x87)&&(_0x5e4f76[_0x426668]=_0x15b26b[_0x11faf2(0x12a)](/url\(#(.*)\)/,_0x11faf2(0x23e)['concat'](_0x2d87e7['idSuffix'],')')));});var _0x4bc0f0=_0x2d87e7[_0x2df714(0x2a1)];return!_0x4bc0f0||_0x4bc0f0[_0x2df714(0x99)]===0x0||(_0x193aab['tag']===_0x2df714(0xd4)&&_0x5e4f76['xlink:href']&&(_0x5e4f76[_0x2df714(0x2ae)]=_0x5e4f76['xlink:href']+_0x2d87e7[_0x2df714(0x2b7)]),Object[_0x2df714(0xdf)](_0x5e4f76)[_0x2df714(0x1de)](function(_0x572058){const _0x3886aa=_0x2df714;var _0xef2664=_0x572058[0x0],_0x590b19=_0x572058[0x1];typeof _0x590b19==_0x3886aa(0x87)&&(_0x5e4f76[_0xef2664]=_0x590b19[_0x3886aa(0x12a)](/url\(#(.*)\)/,_0x3886aa(0x23e)[_0x3886aa(0x2a0)](_0x2d87e7['idSuffix'],')')));})),_0x5e4f76;}function Tt(_0x3a9e9d,_0x4cabf9){const _0x2ff455=_0x5586cb;var _0x3ed2a1,_0x296c2c=_0x4cabf9['defIds'];return!_0x296c2c||_0x296c2c[_0x2ff455(0x99)]===0x0?_0x3a9e9d:_0x3a9e9d[_0x2ff455(0x80)]==='defs'&&(!((_0x3ed2a1=_0x3a9e9d['children'])===null||_0x3ed2a1===void 0x0)&&_0x3ed2a1[_0x2ff455(0x99)])?b(b({},_0x3a9e9d),{'children':_0x3a9e9d[_0x2ff455(0x251)][_0x2ff455(0x1c4)](function(_0x1519df){const _0x231318=_0x2ff455;return typeof _0x1519df[_0x231318(0x1a2)]['id']==_0x231318(0x87)&&_0x296c2c&&_0x296c2c['includes'](_0x1519df[_0x231318(0x1a2)]['id'])?b(b({},_0x1519df),{'attrs':b(b({},_0x1519df[_0x231318(0x1a2)]),{'id':_0x1519df[_0x231318(0x1a2)]['id']+_0x4cabf9[_0x231318(0x2b7)]})}):_0x1519df;})}):_0x3a9e9d;}function Rt(){const _0x267355=_0x5586cb;return Math[_0x267355(0x10b)]()[_0x267355(0x9b)](0x24)[_0x267355(0x1fa)](0x2,0x8);}pe[_0x5586cb(0x17d)]='UniverIcon';var Dt={'tag':_0x5586cb(0x1bf),'attrs':{'xmlns':_0x5586cb(0xda),'fill':_0x5586cb(0x223),'viewBox':'0\x200\x2016\x2016','width':_0x5586cb(0x13f),'height':_0x5586cb(0x13f)},'children':[{'tag':'g','attrs':{'clipPath':_0x5586cb(0x15f)},'children':[{'tag':_0x5586cb(0x172),'attrs':{'stroke':_0x5586cb(0x22f),'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':_0x5586cb(0x117),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5586cb(0xaf),'attrs':{},'children':[{'tag':_0x5586cb(0x11f),'attrs':{'id':_0x5586cb(0x185)},'children':[{'tag':_0x5586cb(0x172),'attrs':{'fill':_0x5586cb(0x175),'d':_0x5586cb(0x20b)}}]}]}],'defIds':[_0x5586cb(0x185)]},ye=M[_0x5586cb(0x1f5)](function(_0xd4271a,_0x5e7e94){const _0x4053c2=_0x5586cb;return M['createElement'](pe,Object[_0x4053c2(0x21c)]({},_0xd4271a,{'id':_0x4053c2(0x128),'ref':_0x5e7e94,'icon':Dt}));});ye['displayName']=_0x5586cb(0x1e7);var Ut={'tag':_0x5586cb(0x1bf),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5586cb(0x223),'viewBox':_0x5586cb(0x16f),'width':_0x5586cb(0x13f),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x5586cb(0x228)},'children':[{'tag':'path','attrs':{'stroke':_0x5586cb(0x22f),'d':_0x5586cb(0x246),'strokeLinecap':'round','strokeLinejoin':_0x5586cb(0x117),'strokeWidth':1.2}}]},{'tag':_0x5586cb(0xaf),'attrs':{},'children':[{'tag':_0x5586cb(0x11f),'attrs':{'id':_0x5586cb(0x283)},'children':[{'tag':_0x5586cb(0x172),'attrs':{'fill':_0x5586cb(0x175),'d':_0x5586cb(0x20b),'transform':_0x5586cb(0x293)}}]}]}],'defIds':[_0x5586cb(0x283)]},$e=M[_0x5586cb(0x1f5)](function(_0x52362b,_0x2b7cc8){const _0x370772=_0x5586cb;return M[_0x370772(0x8b)](pe,Object['assign']({},_0x52362b,{'id':_0x370772(0xbd),'ref':_0x2b7cc8,'icon':Ut}));});$e[_0x5586cb(0x17d)]='OnLineIcon';function Nt(_0x16da98){const _0x3afa1d=_0x5586cb;switch(_0x16da98){case u[_0x3afa1d(0x2f1)][_0x3afa1d(0x178)]:return _0x3afa1d(0xde);case u[_0x3afa1d(0x2f1)]['CONFLICT']:return _0x3afa1d(0xf3);case u[_0x3afa1d(0x2f1)]['FETCH_MISS']:return _0x3afa1d(0x258);case u['CollaborationStatus'][_0x3afa1d(0x1d5)]:return _0x3afa1d(0x2d6);case u[_0x3afa1d(0x2f1)][_0x3afa1d(0x25c)]:case u[_0x3afa1d(0x2f1)][_0x3afa1d(0x233)]:return'collabStatus.syncing';case u[_0x3afa1d(0x2f1)][_0x3afa1d(0x150)]:case u['CollaborationStatus'][_0x3afa1d(0x165)]:return _0x3afa1d(0x273);}}function Mt(_0x24f730){const _0x1da24c=_0x5586cb,{status$:_0x403d53}=_0x24f730,_0x32570b=O['useObservable'](_0x403d53,u[_0x1da24c(0x2f1)][_0x1da24c(0x1d5)]),_0x1bad05=O['useDependency'](a[_0x1da24c(0x1e1)]),_0x204acb=O['useDependency'](u[_0x1da24c(0x19e)]),_0x5e8316=_0x32570b!==u[_0x1da24c(0x2f1)][_0x1da24c(0x178)],_0x41f604=_0x1bad05['t'](Nt(_0x32570b)),_0x145acf=_0x5e8316?P[_0x1da24c(0x1bd)]($e,{}):P['jsx'](ye,{}),_0x1cac51=M[_0x1da24c(0x212)](()=>{const _0x32d801=_0x1da24c;_0x5e8316||_0x204acb[_0x32d801(0x2bd)]();},[_0x5e8316,_0x204acb]);function _0x12af5f(){const _0x33ada4=_0x1da24c;return P['jsxs'](_0x33ada4(0x98),{'className':_0x33ada4(0x1b6),'onClick':_0x1cac51,'children':[P[_0x33ada4(0x1bd)](_0x33ada4(0x98),{'className':D[_0x33ada4(0x17e)](_0x33ada4(0x217),{'univer-text-green-500':_0x5e8316,'univer-text-red-500':!_0x5e8316}),'children':_0x145acf}),P[_0x33ada4(0x1bd)](_0x33ada4(0x98),{'className':_0x33ada4(0xa8),'children':_0x41f604})]});}return _0x5e8316?_0x12af5f():P['jsx'](D[_0x1da24c(0x86)],{'title':_0x1bad05['t'](_0x1da24c(0x152)),'children':_0x12af5f()});}var Lt=Object['getOwnPropertyDescriptor'],Pt=(_0x521145,_0x34e9c4,_0x99e39f,_0x747e19)=>{const _0x53a9e0=_0x5586cb;for(var _0x41f8ba=_0x747e19>0x1?void 0x0:_0x747e19?Lt(_0x34e9c4,_0x99e39f):_0x34e9c4,_0x187741=_0x521145[_0x53a9e0(0x99)]-0x1,_0x5d1c03;_0x187741>=0x0;_0x187741--)(_0x5d1c03=_0x521145[_0x187741])&&(_0x41f8ba=_0x5d1c03(_0x41f8ba)||_0x41f8ba);return _0x41f8ba;},V=(_0x5ec30a,_0x4c0f13)=>(_0x17637f,_0x46c5bd)=>_0x4c0f13(_0x17637f,_0x46c5bd,_0x5ec30a);exports[_0x5586cb(0xe1)]=class extends a[_0x5586cb(0x160)]{constructor(_0x41d48c,_0xe81508,_0x599918,_0x37637d){const _0x56720a=_0x5586cb;super(),h(this,_0x56720a(0x1dc),new d[(_0x56720a(0x2dc))](u[_0x56720a(0x2f1)][_0x56720a(0x1d5)])),(this[_0x56720a(0x1bc)]=_0x41d48c,this[_0x56720a(0x277)]=_0xe81508,this[_0x56720a(0x205)]=_0x599918,this[_0x56720a(0x220)]=_0x37637d,this[_0x56720a(0x163)](),this[_0x56720a(0x134)]());}['_initStatusListener'](){const _0x191fcd=_0x5586cb;this['disposeWithMe'](this[_0x191fcd(0x1bc)][_0x191fcd(0x286)][_0x191fcd(0x162)](d['switchMap'](()=>{const _0x4ba486=_0x191fcd,_0x54460f=this[_0x4ba486(0x1bc)][_0x4ba486(0x158)]();return _0x54460f?this[_0x4ba486(0x205)][_0x4ba486(0x18e)](_0x54460f[_0x4ba486(0x109)]()):d['of'](null);}),d[_0x191fcd(0x2c2)](_0x2e07bb=>_0x2e07bb?_0x2e07bb[_0x191fcd(0x285)]:d['of'](u['CollaborationStatus'][_0x191fcd(0x1d5)])))['subscribe'](_0x58246b=>{const _0x43e785=_0x191fcd;this['_status$'][_0x43e785(0x229)](_0x58246b);}));}['_initStatusComponent'](){const _0x24daf4=_0x5586cb;this[_0x24daf4(0x142)](this[_0x24daf4(0x220)][_0x24daf4(0x274)](O['BuiltInUIPart']['HEADER_MENU'],()=>O[_0x24daf4(0x23a)](wt({'status$':this[_0x24daf4(0x1dc)][_0x24daf4(0x13b)]()}),this[_0x24daf4(0x277)])));}},exports[_0x5586cb(0xe1)]=Pt([V(0x0,a[_0x5586cb(0x270)]),V(0x1,a[_0x5586cb(0x187)](a[_0x5586cb(0x144)])),V(0x2,a[_0x5586cb(0x187)](u['CollaborationController'])),V(0x3,O[_0x5586cb(0x190)])],exports[_0x5586cb(0xe1)]);function wt(_0xbf4046){const {status$:_0xe38514}=_0xbf4046;return function(){return P['jsx'](Mt,{'status$':_0xe38514});};}var At=Object[_0x5586cb(0x84)],yt=(_0x3110b9,_0x238e65,_0x1888c7,_0x132ac4)=>{const _0x333431=_0x5586cb;for(var _0x10b5a9=_0x132ac4>0x1?void 0x0:_0x132ac4?At(_0x238e65,_0x1888c7):_0x238e65,_0x14bc9a=_0x3110b9[_0x333431(0x99)]-0x1,_0x574fa2;_0x14bc9a>=0x0;_0x14bc9a--)(_0x574fa2=_0x3110b9[_0x14bc9a])&&(_0x10b5a9=_0x574fa2(_0x10b5a9)||_0x10b5a9);return _0x10b5a9;},y=(_0x2f5500,_0x1d2255)=>(_0x13d640,_0x305cef)=>_0x1d2255(_0x13d640,_0x305cef,_0x2f5500);let q=class extends a[_0x5586cb(0x160)]{constructor(_0x342e4f,_0x2de94f,_0x2ab3cf,_0x488d9f,_0x190c85,_0x30e206){const _0x4bb4bd=_0x5586cb;super(),this[_0x4bb4bd(0x146)]=_0x342e4f,this[_0x4bb4bd(0x256)]=_0x2de94f,this['_collaborationUIEventService']=_0x2ab3cf,this[_0x4bb4bd(0x93)]=_0x488d9f,this['_notificationService']=_0x190c85,this[_0x4bb4bd(0x173)]=_0x30e206,this[_0x4bb4bd(0x130)](),this[_0x4bb4bd(0x133)]();}[_0x5586cb(0x130)](){const _0x507873=_0x5586cb;this[_0x507873(0x142)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x253e37=_0x507873;if(this[_0x253e37(0x256)][_0x253e37(0x1ad)][_0x253e37(0x242)])return this[_0x253e37(0x173)]['t'](_0x253e37(0x267));}));}[_0x5586cb(0x133)](){const _0x9463ae=_0x5586cb;this[_0x9463ae(0x142)](this[_0x9463ae(0x1b2)][_0x9463ae(0x268)][_0x9463ae(0x2a2)](_0x3b1531=>{const _0x2a0fc3=_0x9463ae;_0x3b1531['id']===u[_0x2a0fc3(0x179)]['OTHER_CLIENT_EDITING']&&this[_0x2a0fc3(0x93)][_0x2a0fc3(0x100)]({'type':D[_0x2a0fc3(0xc1)][_0x2a0fc3(0x141)],'content':this[_0x2a0fc3(0x173)]['t'](_0x2a0fc3(0x21b))}),_0x3b1531['id']===u[_0x2a0fc3(0x179)]['CLOSE_ROOM']&&this[_0x2a0fc3(0x93)]['show']({'type':D[_0x2a0fc3(0xc1)][_0x2a0fc3(0x141)],'content':this[_0x2a0fc3(0x173)]['t']('collaboration.closeRoom')}),_0x3b1531['id']===u[_0x2a0fc3(0x179)][_0x2a0fc3(0x126)]&&this['_notificationService'][_0x2a0fc3(0x100)]({'title':this[_0x2a0fc3(0x173)]['t']('permission.title'),'content':this[_0x2a0fc3(0x173)]['t'](_0x2a0fc3(0x119)),'type':'error','duration':0x0}),_0x3b1531['id']===u[_0x2a0fc3(0x179)][_0x2a0fc3(0x180)]&&this[_0x2a0fc3(0x93)][_0x2a0fc3(0x100)]({'type':D['MessageType'][_0x2a0fc3(0x135)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x3b1531['data']+')'}),_0x3b1531['id']===u['CollaborationUIEventId'][_0x2a0fc3(0x95)]&&this[_0x2a0fc3(0x93)][_0x2a0fc3(0x100)]({'type':D[_0x2a0fc3(0xc1)][_0x2a0fc3(0x141)],'content':this[_0x2a0fc3(0x173)]['t'](_0x3b1531['data']||'')}),_0x3b1531['id']===u[_0x2a0fc3(0x179)][_0x2a0fc3(0xe2)]&&this['_messageService']['show']({'type':D['MessageType'][_0x2a0fc3(0x141)],'content':this[_0x2a0fc3(0x173)]['t'](_0x2a0fc3(0x92))}),_0x3b1531['id']===u[_0x2a0fc3(0x179)][_0x2a0fc3(0x28e)]&&this['_messageService'][_0x2a0fc3(0x100)]({'type':D[_0x2a0fc3(0xc1)]['Error'],'content':this[_0x2a0fc3(0x173)]['t']('session.connection-failed')}),_0x3b1531['id']===u['CollaborationUIEventId'][_0x2a0fc3(0x96)]&&this['_messageService'][_0x2a0fc3(0x100)]({'type':D[_0x2a0fc3(0xc1)][_0x2a0fc3(0x135)],'content':this[_0x2a0fc3(0x173)]['t'](_0x2a0fc3(0x2d1))});}));}};q=yt([y(0x0,O[_0x5586cb(0x2df)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x5586cb(0x187)](u['CollaborationUIEventService'])),y(0x3,O['IMessageService']),y(0x4,O[_0x5586cb(0x10a)]),y(0x5,a[_0x5586cb(0x187)](a['LocaleService']))],q);const $t=_0x5586cb(0xea),Ue={},Ee=a[_0x5586cb(0xa3)]('uni.network.url-service');var xt=Object[_0x5586cb(0x84)],Bt=(_0x384beb,_0x314124,_0x368f8a,_0x353649)=>{const _0x108324=_0x5586cb;for(var _0x31b3ed=_0x353649>0x1?void 0x0:_0x353649?xt(_0x314124,_0x368f8a):_0x314124,_0x141f40=_0x384beb[_0x108324(0x99)]-0x1,_0x5d19a0;_0x141f40>=0x0;_0x141f40--)(_0x5d19a0=_0x384beb[_0x141f40])&&(_0x31b3ed=_0x5d19a0(_0x31b3ed)||_0x31b3ed);return _0x31b3ed;},F=(_0x4a0153,_0x9ca32e)=>(_0x1f1a6d,_0x26be51)=>_0x9ca32e(_0x1f1a6d,_0x26be51,_0x4a0153);exports[_0x5586cb(0x2ea)]=class extends a[_0x5586cb(0x2bc)]{constructor(_0x13a2b2,_0xe339ec,_0x139edf,_0x180a63,_0x85e36f){const _0x29d779=_0x5586cb;super(),this[_0x29d779(0xf9)]=_0x13a2b2,this[_0x29d779(0xf7)]=_0xe339ec,this[_0x29d779(0x28d)]=_0x139edf,this[_0x29d779(0x206)]=_0x180a63,_0x85e36f?_0x85e36f==null||_0x85e36f['whenReady']()[_0x29d779(0x9d)](()=>this['_init']()):(this['_logService']['debug'](_0x29d779(0x2a6),_0x29d779(0x195)),this['_init']());}async[_0x5586cb(0x17f)](){const _0x3510d3=_0x5586cb,_0x343cc9=this[_0x3510d3(0xf9)]['getParam']('unit'),_0x2ff0d5=this[_0x3510d3(0xf9)][_0x3510d3(0x236)](_0x3510d3(0xa9)),_0x4777c4=this[_0x3510d3(0xf9)]['getParam'](_0x3510d3(0xbe));if(!_0x343cc9||!_0x2ff0d5){this[_0x3510d3(0xf7)][_0x3510d3(0x27e)](_0x3510d3(0x2a6),_0x3510d3(0x188));return;}const _0x47104e=await this[_0x3510d3(0x206)]['loadUnit'](_0x343cc9,Number(_0x2ff0d5),_0x4777c4);_0x47104e&&_0x47104e instanceof a[_0x3510d3(0x224)]&&this[_0x3510d3(0x269)](_0x47104e);}async[_0x5586cb(0x269)](_0x1084c0){const _0x214050=_0x5586cb;await this[_0x214050(0x25d)](_0x1084c0),_0x1084c0[_0x214050(0x2c4)][_0x214050(0x162)](d[_0x214050(0xed)](this[_0x214050(0x1dd)]))[_0x214050(0x2a2)](_0x1e6c6e=>{const _0x898bc=_0x214050;_0x1e6c6e&&this[_0x898bc(0x1ac)](_0x1e6c6e);}),this[_0x214050(0xf9)][_0x214050(0xff)][_0x214050(0x162)](d[_0x214050(0xed)](this[_0x214050(0x1dd)]))[_0x214050(0x2a2)](()=>this[_0x214050(0x25d)](_0x1084c0));}[_0x5586cb(0x1ac)](_0x517859,_0x5b815d=!0x1){const _0x89fc0=_0x5586cb,_0x5abdf5=this[_0x89fc0(0xf9)][_0x89fc0(0x236)]('subunit');_0x517859[_0x89fc0(0x196)]()!==_0x5abdf5&&this[_0x89fc0(0xf9)][_0x89fc0(0x1c6)](_0x89fc0(0xbe),_0x517859[_0x89fc0(0x196)](),_0x5b815d);}async[_0x5586cb(0x25d)](_0x5ef39b){const _0x2eb5ed=_0x5586cb;var _0x535f5b;const _0x220c34=this['_urlService'][_0x2eb5ed(0x236)]('subunit');if(!_0x220c34||!_0x5ef39b[_0x2eb5ed(0xfa)](_0x220c34)){const _0x30e2c6=_0x5ef39b[_0x2eb5ed(0x232)]()[0x0],_0xdf734d=_0x5ef39b['getSheetBySheetId'](_0x30e2c6);if(!_0xdf734d)return;this[_0x2eb5ed(0x1ac)](_0xdf734d,!0x0),await this[_0x2eb5ed(0x28d)][_0x2eb5ed(0x2e9)](g[_0x2eb5ed(0x145)]['id'],{'unitId':_0x5ef39b[_0x2eb5ed(0x109)](),'subUnitId':_0x30e2c6});return;}((_0x535f5b=_0x5ef39b['getActiveSheet']())==null?void 0x0:_0x535f5b[_0x2eb5ed(0x196)]())!==_0x220c34&&await this['_commandService'][_0x2eb5ed(0x2e9)](g[_0x2eb5ed(0x145)]['id'],{'unitId':_0x5ef39b[_0x2eb5ed(0x109)](),'subUnitId':_0x220c34});}},exports[_0x5586cb(0x2ea)]=Bt([F(0x0,Ee),F(0x1,a['ILogService']),F(0x2,a[_0x5586cb(0x1c5)]),F(0x3,a[_0x5586cb(0x187)](u[_0x5586cb(0xef)])),F(0x4,a[_0x5586cb(0x116)](Ge[_0x5586cb(0x1fd)]))],exports['CollaborationDataLoaderController']);var jt=Object[_0x5586cb(0x84)],kt=(_0x452f76,_0x1de880,_0x182a58,_0x1b1d86)=>{for(var _0x5e8c3f=_0x1b1d86>0x1?void 0x0:_0x1b1d86?jt(_0x1de880,_0x182a58):_0x1de880,_0x4a8f81=_0x452f76['length']-0x1,_0x188a05;_0x4a8f81>=0x0;_0x4a8f81--)(_0x188a05=_0x452f76[_0x4a8f81])&&(_0x5e8c3f=_0x188a05(_0x5e8c3f)||_0x5e8c3f);return _0x5e8c3f;},ce=(_0x29322f,_0x4185dd)=>(_0x133228,_0xddf1cb)=>_0x4185dd(_0x133228,_0xddf1cb,_0x29322f);let z=class{constructor(_0x12282f,_0x4af6dc,_0x434e8e){const _0x55818c=_0x5586cb;this['_injector']=_0x12282f,this[_0x55818c(0xb4)]=_0x4af6dc,this[_0x55818c(0x240)]=_0x434e8e;}['transformIMECache'](_0x337dce){const _0x1f425d=_0x5586cb;this[_0x1f425d(0x1f2)](_0x337dce),this[_0x1f425d(0x123)](_0x337dce);}[_0x5586cb(0x2e1)](_0x322c4c){const _0x48b384=_0x5586cb,{unitID:_0x34bf9e}=_0x322c4c,_0x247bd3=this[_0x48b384(0x240)][_0x48b384(0x2ed)](_0x34bf9e)[_0x48b384(0xfd)](E[_0x48b384(0x18b)]),{redoCache:_0x3407ad}=_0x247bd3[_0x48b384(0x1b5)]();if(_0x3407ad['length']===0x0)return _0x322c4c;let _0x5b2910=a[_0x48b384(0x2e5)]['deepClone'](_0x322c4c[_0x48b384(0x91)][0x0]);for(let _0x310d28=0x0;_0x310d28<_0x3407ad[_0x48b384(0x99)];_0x310d28++){const _0x2329f9={'id':'doc.mutation.rich-text-editing','params':{..._0x3407ad[_0x310d28]}},_0x49f046=this[_0x48b384(0xb4)]['transformMutation'](_0x5b2910,_0x2329f9,!0x1);if(m[_0x48b384(0x1ed)](_0x49f046))throw _0x49f046[_0x48b384(0xf8)];_0x5b2910=_0x49f046[_0x48b384(0x140)];}return{...a[_0x48b384(0x2e5)]['deepClone'](_0x322c4c),'mutations':[_0x5b2910]};}[_0x5586cb(0x1f2)](_0x5521c0){const _0x4cf3c3=_0x5586cb,{unitID:_0x16f2ee}=_0x5521c0,_0x2e71d8=this[_0x4cf3c3(0x240)][_0x4cf3c3(0x2ed)](_0x16f2ee)[_0x4cf3c3(0xfd)](E[_0x4cf3c3(0x18b)]),{undoCache:_0x33df3a,redoCache:_0x1650eb}=_0x2e71d8['getUndoRedoMutationParamsCache']();if(_0x33df3a[_0x4cf3c3(0x99)]===0x0||_0x1650eb['length']===0x0)return;const _0x48ecfb=[],_0x1f8f8a=[];let _0x32024d=a['Tools']['deepClone'](_0x5521c0['mutations'][0x0]),_0x302366=a[_0x4cf3c3(0x2e5)][_0x4cf3c3(0x1f7)](_0x5521c0[_0x4cf3c3(0x91)][0x0]);for(let _0x1d7635=_0x33df3a[_0x4cf3c3(0x99)]-0x1;_0x1d7635>=0x0;_0x1d7635--){const _0x4bace8={'id':_0x4cf3c3(0x278),'params':{..._0x33df3a[_0x1d7635]}},_0x28f42e={'id':'doc.mutation.rich-text-editing','params':{..._0x1650eb[_0x1d7635]}},_0x519fdb=this[_0x4cf3c3(0xb4)]['transformMutation'](_0x32024d,_0x4bace8,!0x1),_0x5b3453=this[_0x4cf3c3(0xb4)][_0x4cf3c3(0xdb)](_0x302366,_0x28f42e,!0x1);if(m['isTransformMutationFailure'](_0x519fdb))throw _0x519fdb[_0x4cf3c3(0xf8)];if(m[_0x4cf3c3(0x1ed)](_0x5b3453))throw _0x5b3453[_0x4cf3c3(0xf8)];_0x48ecfb[_0x4cf3c3(0x2e3)](_0x519fdb[_0x4cf3c3(0x252)]['params']),_0x1f8f8a['unshift'](_0x5b3453[_0x4cf3c3(0x252)][_0x4cf3c3(0x2ac)]),_0x32024d=_0x519fdb['m1Prime'],_0x302366=_0x5b3453[_0x4cf3c3(0x140)];}_0x2e71d8[_0x4cf3c3(0x1f9)]({'undoCache':_0x48ecfb,'redoCache':_0x1f8f8a});}[_0x5586cb(0x123)](_0x5699b9){const _0x7bfedd=_0x5586cb,{unitID:_0x4db954}=_0x5699b9,_0x51f1b9=this[_0x7bfedd(0x240)][_0x7bfedd(0x2ed)](_0x4db954)['with'](E[_0x7bfedd(0x18b)]),_0x3af454=_0x51f1b9['getActiveRange']();if(_0x3af454==null)return;const _0x1c7316=[{'id':_0x7bfedd(0x278),'params':{'unitId':_0x5699b9[_0x7bfedd(0x1c0)],'actions':null,'textRanges':[_0x3af454]}}],_0x1bacb0=this[_0x7bfedd(0xb4)][_0x7bfedd(0xb7)](_0x5699b9,_0x1c7316);if(!m['isTransformMutationsWithChangesetSuccess'](_0x1bacb0))throw _0x1bacb0[_0x7bfedd(0xf8)];const _0x4855af=_0x1bacb0[_0x7bfedd(0x252)][0x0][_0x7bfedd(0x2ac)][_0x7bfedd(0x20e)];Array[_0x7bfedd(0x26f)](_0x4855af)&&_0x4855af[_0x7bfedd(0x99)]&&_0x51f1b9['setActiveRange'](_0x4855af[0x0]);}};z=kt([ce(0x0,a['Inject'](a[_0x5586cb(0x144)])),ce(0x1,m[_0x5586cb(0x12c)]),ce(0x2,p['IRenderManagerService'])],z);var Ft=Object[_0x5586cb(0x84)],Ht=(_0x3d33f9,_0x56331a,_0x39ffec,_0xe1e07)=>{const _0x398a15=_0x5586cb;for(var _0x3cb0f7=_0xe1e07>0x1?void 0x0:_0xe1e07?Ft(_0x56331a,_0x39ffec):_0x56331a,_0x472675=_0x3d33f9[_0x398a15(0x99)]-0x1,_0x19a7a8;_0x472675>=0x0;_0x472675--)(_0x19a7a8=_0x3d33f9[_0x472675])&&(_0x3cb0f7=_0x19a7a8(_0x3cb0f7)||_0x3cb0f7);return _0x3cb0f7;},le=(_0x1d4ec4,_0x1e1697)=>(_0xf97675,_0x5d3fa4)=>_0x1e1697(_0xf97675,_0x5d3fa4,_0x1d4ec4);let J=class{constructor(_0x4e8187,_0x15541f,_0x54edd0){const _0x156b96=_0x5586cb;this['_injector']=_0x4e8187,this[_0x156b96(0xb4)]=_0x15541f,this[_0x156b96(0xa0)]=_0x54edd0;}[_0x5586cb(0x235)](_0x1620b4){this['_transformHistoryAndStateStack'](_0x1620b4);}['transformRemoteChangeset'](_0x4e36cd){const _0x2ccdee=_0x5586cb,{unitID:_0x2671f9}=_0x4e36cd,{collaboration:_0x23038e}=this['_docStateChangeManagerService'][_0x2ccdee(0x15d)](_0x2671f9);if(_0x23038e[_0x2ccdee(0x99)]===0x0)return _0x4e36cd;let _0x1d6741=a['Tools'][_0x2ccdee(0x1f7)](_0x4e36cd[_0x2ccdee(0x91)][0x0]);for(let _0x490907=0x0;_0x490907<_0x23038e[_0x2ccdee(0x99)];_0x490907++){const _0x48d764={'id':_0x2ccdee(0x278),'params':{'unitId':_0x23038e[_0x490907][_0x2ccdee(0x115)],..._0x23038e[_0x490907][_0x2ccdee(0x20f)]}},_0x418e1e=this['_transformService']['transformMutation'](_0x1d6741,_0x48d764,!0x1);if(m[_0x2ccdee(0x1ed)](_0x418e1e))throw _0x418e1e['error'];_0x1d6741=_0x418e1e[_0x2ccdee(0x140)];}return{...a[_0x2ccdee(0x2e5)][_0x2ccdee(0x1f7)](_0x4e36cd),'mutations':[_0x1d6741]};}[_0x5586cb(0x191)](_0x158e7a){const _0x3024fb=_0x5586cb,{unitID:_0x4352ba}=_0x158e7a,{history:_0x50a660,collaboration:_0x2f8d24}=this[_0x3024fb(0xa0)][_0x3024fb(0x15d)](_0x4352ba);if(_0x50a660[_0x3024fb(0x99)]===0x0&&_0x2f8d24[_0x3024fb(0x99)]===0x0)return;const _0x20f3b9=[],_0x2e658b=[];let _0x32366f=a[_0x3024fb(0x2e5)][_0x3024fb(0x1f7)](_0x158e7a['mutations'][0x0]),_0xbf6332=a[_0x3024fb(0x2e5)][_0x3024fb(0x1f7)](_0x158e7a['mutations'][0x0]);for(let _0x304bdd=_0x50a660[_0x3024fb(0x99)]-0x1;_0x304bdd>=0x0;_0x304bdd--){const _0x22fe9a={'id':_0x3024fb(0x278),'params':{'unitId':_0x50a660[_0x304bdd][_0x3024fb(0x115)],..._0x50a660[_0x304bdd][_0x3024fb(0xd5)]}},_0x36b479={'id':_0x3024fb(0x278),'params':{'unitId':_0x50a660[_0x304bdd][_0x3024fb(0x115)],..._0x50a660[_0x304bdd][_0x3024fb(0x20f)]}},_0x38f2d8=this['_transformService'][_0x3024fb(0xdb)](_0x32366f,_0x22fe9a,!0x1),_0x2ebc0d=this[_0x3024fb(0xb4)]['transformMutation'](_0xbf6332,_0x36b479,!0x1);if(m[_0x3024fb(0x1ed)](_0x38f2d8))throw _0x38f2d8[_0x3024fb(0xf8)];if(m[_0x3024fb(0x1ed)](_0x2ebc0d))throw _0x2ebc0d[_0x3024fb(0xf8)];_0x20f3b9[_0x3024fb(0x2e3)]({..._0x50a660[_0x304bdd],'undoState':_0x38f2d8[_0x3024fb(0x252)]['params'],'redoState':_0x2ebc0d[_0x3024fb(0x252)][_0x3024fb(0x2ac)]}),_0x32366f=_0x38f2d8[_0x3024fb(0x140)],_0xbf6332=_0x2ebc0d[_0x3024fb(0x140)];}_0x32366f=a[_0x3024fb(0x2e5)]['deepClone'](_0x158e7a[_0x3024fb(0x91)][0x0]),_0xbf6332=a['Tools'][_0x3024fb(0x1f7)](_0x158e7a['mutations'][0x0]);for(let _0x3f39c6=_0x2f8d24[_0x3024fb(0x99)]-0x1;_0x3f39c6>=0x0;_0x3f39c6--){const _0x57e5f3={'id':_0x3024fb(0x278),'params':{'unitId':_0x2f8d24[_0x3f39c6][_0x3024fb(0x115)],..._0x2f8d24[_0x3f39c6][_0x3024fb(0xd5)]}},_0xd6462f={'id':_0x3024fb(0x278),'params':{'unitId':_0x2f8d24[_0x3f39c6][_0x3024fb(0x115)],..._0x2f8d24[_0x3f39c6][_0x3024fb(0x20f)]}},_0x35fd06=this[_0x3024fb(0xb4)][_0x3024fb(0xdb)](_0x32366f,_0x57e5f3,!0x1),_0x3e615e=this[_0x3024fb(0xb4)][_0x3024fb(0xdb)](_0xbf6332,_0xd6462f,!0x1);if(m[_0x3024fb(0x1ed)](_0x35fd06))throw _0x35fd06[_0x3024fb(0xf8)];if(m[_0x3024fb(0x1ed)](_0x3e615e))throw _0x3e615e['error'];_0x2e658b[_0x3024fb(0x2e3)]({..._0x2f8d24[_0x3f39c6],'undoState':_0x35fd06[_0x3024fb(0x252)]['params'],'redoState':_0x3e615e[_0x3024fb(0x252)][_0x3024fb(0x2ac)]}),_0x32366f=_0x35fd06['m1Prime'],_0xbf6332=_0x3e615e['m1Prime'];}this[_0x3024fb(0xa0)]['setStateCache'](_0x4352ba,{'history':_0x20f3b9,'collaboration':_0x2e658b});}};J=Ht([le(0x0,a['Inject'](a[_0x5586cb(0x144)])),le(0x1,m[_0x5586cb(0x12c)]),le(0x2,a[_0x5586cb(0x187)](E[_0x5586cb(0x16e)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0xdaf074,_0x1fc293,_0xbb850d,_0x3b38fe)=>{const _0x23a674=_0x5586cb;for(var _0x24aa38=_0x3b38fe>0x1?void 0x0:_0x3b38fe?Yt(_0x1fc293,_0xbb850d):_0x1fc293,_0x249e6b=_0xdaf074[_0x23a674(0x99)]-0x1,_0x43e883;_0x249e6b>=0x0;_0x249e6b--)(_0x43e883=_0xdaf074[_0x249e6b])&&(_0x24aa38=_0x43e883(_0x24aa38)||_0x24aa38);return _0x24aa38;},Ne=(_0x3edb06,_0x420f66)=>(_0x55df38,_0x254dfb)=>_0x420f66(_0x55df38,_0x254dfb,_0x3edb06);function _0x5245(){const _0x151368=['none','Workbook','UNIVER_DOC','getVpScrollXYInfoByPosToVp','currentTheme$','url(#on-line-icon_clip0_910_349)','next','RemoteUniscriptService','merge','1014712zCLWNb','EffectRefRangId','handleIRemoveCol','currentColor','endColumn','newValue','getUnhiddenWorksheets','AWAITING_WITH_PENDING','UniverCollaborationClientPlugin','transformStateCache','getParam','YUUMI_CONNECTOR_URL_NOT_FOUND','_scheduleHeartbeat','_cursorShapes','connectInjector','onPointerMove$','addObjects','_color','url(#$1','eventID','_renderManagerService','RemoveColCommandId','size','editingUnit','_getScale','measureText','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','getUnitStatus$','_onRefRangeChange','_session','dispose','body','setItem','MoveRangeCommandId','_getSessionTicket','_lastPointer','fromEventSubject','children','m2Prime','call','InsertRangeMoveRightCommandId','WebSocketService','_localCacheService','extend','collabStatus.fetchMiss','runOnServer','_id','getCurrentRevOfUnit','AWAITING','_updateSubUnitFromURLParams','prototype','_initCommandExecutedListener','sessionTicket','_collabSessionService','SheetsSelectionsService','2ILnLqG','BrowserCollaborationSocketService','_doCreateSocket','APPLY_DUPLICATED','collaboration-client.offline-data-not-saved','event$','_setupSubUnitSync','UNDEFINED','getConfig','labelPosition','name','_disabled','isArray','IUniverInstanceService','history','TOO_MANY_REQUESTS','collabStatus.synced','registerComponent','Failed','ENSURE_SNAPSHOT_EXECUTION','_injector','doc.mutation.rich-text-editing','blue.400','some','SNAPSHOT_INVALID_SNAPSHOT','MUTATION','_name','debug','drawWith','addObject','setShapeProps','getItem','on-line-icon_clip0_910_349','complete','status$','focused$','resize','getCellPositionByOffset','_textBubble','column','5052446GnhqCw','_docSyncEditingCollabCursorService','_commandService','SOCKET_FAILED','_hover','APPLY_PERMISSION_DENIED','onLocalMutation','EMAIL_HAS_BEEN_BOUND','translate(.97)','result','_anchor','VIEW_MAIN','min','onPointerEnter$','save','fillStyle','_startDocCollabCursor','ACTIVE_UNIT_EVENT_CHANNEL','_getAnchorBounding','onTransformChange$','CONNECTOR_DATA_TOO_LARGE','concat','defIds','subscribe','getRangePointData','throttleTime','createInstance','[CollaborationDataLoaderController]','...','_instanceService','_cachedData','_docTransformIMECacheService','getRelativeToViewportCoord','params','setConfig','xlink:href','univerjs-icon\x20univerjs-icon-','search','NOT_FOUND','_colorAssignService','collabCursorState$','code','_config','all','idSuffix','trim','propertyIsEnumerable','getMemberID','pushState','RxDisposable','reconnect','collab-text-anchor-','hasOwnProperty','_assignedColors','handleDeleteRangeMoveLeft','switchMap','111KIOqFN','activeSheet$','SheetSkeletonManagerService','_scheduleSaving','init','15374547cwiKWi','IMessageService','_onCursorDelete','invokeId','black','[RemoteUniscriptService]:\x20no\x20focused\x20unit','DocCollaborationEntity','storage','getTypeOfUnitAdded$','session.collaboration-timeout','debounceTime','defineProperty','clearTimeout','YUUMI_RATE_OVER_LIMIT','collabStatus.notCollab','/run/','setTimeout','saveImage','_scheduleClearOtherTimer','apply','BehaviorSubject','OTHER_CLIENTS_EDITING','updateOfflineData','IBeforeCloseService','_httpService','transformRemoteChangeset','hide','unshift','transformByState','Tools','registerRenderModule','_document','getCurrent','executeCommand','CollaborationDataLoaderController','_handleHover','get','getRenderById','subUnitId','LICENSE_EXPORT_SIZE_EXCEEDED','getCoordByCell','CollaborationStatus','getOwnPropertySymbols','roomMembers$','NodePositionConvertToCursor','getValue','WECHAT_HAS_BEEN_BOUND','_createSocketURL','_selfUnitIDs','getCurrentSelections','getCollabCursors$','tag','_unitStatus','fillRule','UNIVER_SHEET','getOwnPropertyDescriptor','_memberService','Tooltip','string','_ensureSubject','transformSelections','COLORS','createElement','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','exhaustSavingTask','deserializeRangeWithSheet','current','pluginName','mutations','session.will-retry','_messageService','saveOfflineData','JOIN_ROOM_FAILED','SUBMIT_CHANGESET_TIMEOUT','includes','div','length','toDisposable','toString','indexOf','then','13enGHuC','_roomMembers$','_docStateChangeManagerService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','16908amDVzM','createIdentifier','origin','combineLatest','contains','syncEditingCollabCursor','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','type','getViewport','Rect','getLocalCacheKey','function','triggerDblclick','defs','YUUMI_ALL_TABLES_IS_INVALID','clearInterval','_onCursorUpdate','YUUMI_UNABLE_LOAD_URL','_transformService','Vector2','getOffsetConfig','transformMutationsWithChangeset','_toggleOffline','data','runId','ALREADY_EXISTS','transformIMECache','on-line-icon','subunit','Unknown\x20user','send','MessageType','10MYuOMB','UPDATE_CURSOR','UniverCollaborationClientUIPlugin','ISocketService','MemberService','replaceState','DEFAULT_WS_SESSION_TICKET_URL','bottom','ILocalStorageService','ILocalCacheService','getAncestorScale','DocSkeletonManagerService','makeDirty','createSocket','_backgroundColor','_getSheetObject','sheetID','addEventListener','use','undoState','_initResize','mapTo','CommandType','CollaborationController','http://www.w3.org/2000/svg','transformMutation','has','UniverInstanceType','collabStatus.offline','entries','_updateLocalCursor','DesktopCollaborationStatusDisplayController','SOCKET_FAILED_RETRY','NodePositionConvertToRectRange','_docClipboardService','48TSYTAy','994255CeebHl','href','_registerDependencies','TEXT','collaboration-client-ui.config','getActiveSheet','fromEvent','takeUntil','INVALID_INVITE_CODE','DataLoaderService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','266942lliLHQ','handleIRemoveRow','collabStatus.conflict','set','loadOfflineData','RevisionService','_logService','error','_urlService','getSheetBySheetId','Module','stringify','with','DeleteRangeMoveLeftCommandId','urlChange$','show','range','_saveCache','_cursorInfo$','IURLService','sessionStatus$','max','selections','_imageIoService','getUnitId','INotificationService','random','onMouseMove','closePath','USER_NOT_INVITED_CODE','_context','cursorInfo','_saveTaskMap','FromArray','160396lXIfAs','filter','unitId','Optional','round','toRgbString','permission.content','jiqing.500','671QMLmTL','_hovered','transform','font','clipPath','_handleEvent','DOC_RANGE_TYPE','CollaborationSocketService','_transformPreviousActiveRange','Shape','beginPath','PERMISSION_DENIED','startRow','off-line-icon','YUUMI_TABLE_NOT_FOUND_IN_UNIT','replace','startsWith','ITransformService','_clearOtherTimers','_range','handleInsertCol','_setupBeforeClosingHandler','_removeClearOtherTimer','_collabCursorController','_initEvent','_initStatusListener','Error','rgba(255,\x20255,\x20255,\x200.01)','CollaborationEvent','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','INVITE_CODE_HAS_BEEN_UES','restore','asObservable','_heartbeatTimer','LICENSE_IMPORT_SIZE_EXCEEDED','location','1em','m1Prime','Warning','disposeWithMe','add','Injector','SetWorksheetActivateCommand','_beforeCloseService','handleInsertRangeMoveRight','ISnapshotServerService','UNRECOGNIZED','fill','replaceDocRanges','values','red.300','_drawTextRange','registerDependencies','SYNCED','getUniverSheetInstance','collab-client.tooltip.reconnect','_colorIndex','_unitOnClients','_docTransformStateCacheService','ThemeService','_draw','getFocusedUnit','_registerRenderDependencies','ONLINE','onPointerLeave$','setAlpha','getStateCache','getMember','url(#off-line-icon_clip0_910_343)','Disposable','_localStorageService','pipe','_initStatusComponent','toStringTag','PENDING','_configService','EMAIL_VERIFY_CODE_MISMATCH','_entities','lineTo','_anchorDot','moveTo','_render','_shapes','DocStateChangeManagerService','0\x200\x2017\x2016','IConfigService','generateRandomId','path','_localeService','fillText','white','backgroundColor','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','OFFLINE','CollaborationUIEventId','_collabCursorState$','requireSession','_updateCollabCursors','displayName','clsx','_init','CONFLICT','delete','color','PY_RUNTIME_SCRIPT_ERROR','shareReplay','off-line-icon_clip0_910_343','_syncEditingCollabCursorService','Inject','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_initDependencies','_docTransformSelectionsService','DocIMEInputManagerService','_online','unload','getCollabEntity$','YUUMI_ASYNCIO_CANCELLED','IUIPartsService','_transformHistoryAndStateStack','mask','_hideTimer','serializeRangeWithSheet','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getSheetId','disposeUnit','ColorKit','_scene','IRenderManagerService','YUUMI_NO_CUBOID_FOR_QUESTION','DeleteRangeMoveUpCommandId','_removeCollabCursors','CollaborationSessionService','imageSourceType','UnitStatus','_eventUnsubscribe','attrs','DocSelectionManagerService','APPLY_NON_SEQUENTIAL_REVISION','debounce','YUUMI_AI_RUN_FAILED','_startSheetCollabCursor','arc','key','evenodd','icon','_updateURLWithCurrentState','saveTaskMap','HTTPService','TEXT_RANGE_LAYER_INDEX','unit','onRendered','_collaborationUIEventService','SheetCollabCursorShape','LICENSE_DISTRO_REJECTED','getUndoRedoMutationParamsCache','univer-flex\x20univer-items-center','_getMergeRange','startColumn','USERS_LEAVE','_toggleOnline','InsertColCommandId','_univerInstanceService','jsx','assignAColorForMemberID','svg','unitID','selection','NO_OTHER_CLIENTS_EDITING','roomMembers','map','ICommandService','setParam','CHANGESET_REVISION_CONFILICT','APPLY_REJECT','skeleton','21RjTyQF','onCommandExecuted','green.600','TRANSFORM_CHANGE_OBSERVABLE_TYPE','isActive','InsertRangeMoveDownCommandId','subscribeEvent','flatMap','UNAUTHENTICATED','handleDeleteRangeMoveUp','registerRefRange','NOT_COLLAB','getColorFromTheme','Plugin','text','split','_docSkeletonManagerService','_cursors','_status$','dispose$','forEach','ticket','_revisionService','LocaleService','push','currentSkeleton$','width','DisposableCollection','_labelPosition','OffLineIcon','sheetId','_themeService','find','isEditing','getColor','isTransformMutationFailure','getTypeOfUnitDisposed$','_entityInit$','hovered','_send','_transformUndoRedoStack','SessionStatus','handleInsertRangeMoveDown','forwardRef','actions','deepClone','_refreshCollabCursors','setUndoRedoMutationParamsCache','substring','colorChannel1','from','IRemoteInstanceService','RichTextEditingMutation','_handleJoinEvent','YUUMI_SUBSCRIPTION_NOT_FOUND','handleInsertRow','_initEntityListener','searchParams','unsubscribe','_collaborationController','_dataLoaderService','post','ranges','mergeOverrideWithDependencies','className','M0\x200H16V16H0z','addHandlerCallback','height','textRanges','redoState','InsertRowCommandId','useRef','useCallback','IDocClipboardService','_getSaveTimeout','_handleHeartbeatEvent','SHEET_VIEWPORT_KEY','univer-mr-2\x20univer-flex\x20univer-text-xl','_sheetSkeletonManagerService','_refRangeService','DependentOn','collaboration.single-unit.warning','assign','RegularPolygon','WebBrowserSingleActiveUnitService','top','_uiPartsService','cursorInfo$','_drawRectRange'];_0x5245=function(){return _0x151368;};return _0x5245();}let Z=class{constructor(_0x2a47d6,_0x3d772d){const _0x25f66f=_0x5586cb;this[_0x25f66f(0x277)]=_0x2a47d6,this[_0x25f66f(0xb4)]=_0x3d772d;}[_0x5586cb(0x89)](_0x33dccf){const _0x24cb01=_0x5586cb;var _0x284937;const _0x5c6007=this[_0x24cb01(0x277)]['get'](Y[_0x24cb01(0x1a3)]),_0x162536=(_0x284937=_0x5c6007['getDocRanges']())!=null?_0x284937:[];if(_0x162536[_0x24cb01(0x99)]===0x0)return;const _0x482f01=_0x33dccf[_0x24cb01(0x1c0)],_0x2be960=[{'id':_0x24cb01(0x278),'params':{'unitId':_0x482f01,'actions':null,'textRanges':_0x162536}}],_0x566139=this[_0x24cb01(0xb4)][_0x24cb01(0xb7)](_0x33dccf,_0x2be960);if(!m['isTransformMutationsWithChangesetSuccess'](_0x566139))throw _0x566139[_0x24cb01(0xf8)];const _0x5e36c2=_0x566139[_0x24cb01(0x252)][0x0][_0x24cb01(0x2ac)][_0x24cb01(0x20e)];Array[_0x24cb01(0x26f)](_0x5e36c2)&&_0x5e36c2[_0x24cb01(0x99)]&&_0x5c6007[_0x24cb01(0x14b)](_0x5e36c2,{'unitId':_0x482f01,'subUnitId':_0x482f01},!0x1);}};Z=Wt([Ne(0x0,a[_0x5586cb(0x187)](a['Injector'])),Ne(0x1,m[_0x5586cb(0x12c)])],Z);var Vt=Object[_0x5586cb(0x84)],Xt=(_0xe22c71,_0x1790ad,_0x51ddac,_0x48f9e3)=>{const _0x25eff5=_0x5586cb;for(var _0x11b1fb=_0x48f9e3>0x1?void 0x0:_0x48f9e3?Vt(_0x1790ad,_0x51ddac):_0x1790ad,_0x1cbedf=_0xe22c71[_0x25eff5(0x99)]-0x1,_0x44f946;_0x1cbedf>=0x0;_0x1cbedf--)(_0x44f946=_0xe22c71[_0x1cbedf])&&(_0x11b1fb=_0x44f946(_0x11b1fb)||_0x11b1fb);return _0x11b1fb;},N=(_0x3e4183,_0x2ab3eb)=>(_0x224b82,_0x27e3a9)=>_0x2ab3eb(_0x224b82,_0x27e3a9,_0x3e4183);let Q=class extends a['Disposable']{constructor(_0x1b89fd,_0x1f1937,_0x37f529,_0x505e78,_0x11c8df,_0x40724f,_0x499461,_0x2362fc){const _0x1a20ad=_0x5586cb;super(),h(this,_0x1a20ad(0x1dc),new d[(_0x1a20ad(0x2dc))](u[_0x1a20ad(0x2f1)][_0x1a20ad(0x1d5)])),(this[_0x1a20ad(0xa0)]=_0x1b89fd,this[_0x1a20ad(0x205)]=_0x1f1937,this[_0x1a20ad(0x2aa)]=_0x37f529,this[_0x1a20ad(0x155)]=_0x505e78,this[_0x1a20ad(0x18a)]=_0x11c8df,this[_0x1a20ad(0x28c)]=_0x40724f,this['_messageService']=_0x499461,this[_0x1a20ad(0x173)]=_0x2362fc,this[_0x1a20ad(0x202)]());}[_0x5586cb(0x202)](){const _0x4c4bc2=_0x5586cb;this['disposeWithMe'](this[_0x4c4bc2(0x205)]['entityInit$'][_0x4c4bc2(0x2a2)](_0x5236ac=>{const _0x209913=_0x4c4bc2,_0x2d690a=this[_0x209913(0xa0)]['docStateChange$'][_0x209913(0x2a2)](_0x4ca924=>{const _0x2da835=_0x209913;if(_0x4ca924==null)return;const {unitId:_0x926f91,redoState:_0x40d85f,commandId:_0x333d88}=_0x4ca924;if(_0x926f91!==_0x5236ac[_0x2da835(0x1c0)])return;const _0x174786={'id':_0x333d88,'type':a[_0x2da835(0xd8)][_0x2da835(0x27c)],'params':{'unitId':_0x926f91,'actions':_0x40d85f[_0x2da835(0x1f6)],'textRanges':null}};_0x5236ac[_0x2da835(0x291)](_0x174786);});if(_0x5236ac[_0x209913(0x142)](_0x2d690a),_0x5236ac instanceof u[_0x209913(0x2ce)]){const _0x60406c={'onTransformIME':_0x515a55=>this['_docTransformIMECacheService'][_0x209913(0xbc)](_0x515a55),'onTransformState':_0x546e13=>this[_0x209913(0x155)][_0x209913(0x235)](_0x546e13),'onTransformSelections':_0x1d5ddf=>this[_0x209913(0x18a)]['transformSelections'](_0x1d5ddf),'onSyncEditingCollabCursor':_0x188249=>this[_0x209913(0x28c)]['syncEditingCollabCursor'](_0x188249),'onTransformRemoteChangesetByIMECache':_0x11c538=>this[_0x209913(0x2aa)][_0x209913(0x2e1)](_0x11c538),'onTransformRemoteChangesetByStateCache':_0x1cbaf8=>this[_0x209913(0x155)][_0x209913(0x2e1)](_0x1cbaf8)};_0x5236ac[_0x209913(0x20c)](_0x60406c);}}));}};Q=Xt([N(0x0,a[_0x5586cb(0x187)](E[_0x5586cb(0x16e)])),N(0x1,a[_0x5586cb(0x187)](u[_0x5586cb(0xd9)])),N(0x2,a[_0x5586cb(0x187)](z)),N(0x3,a[_0x5586cb(0x187)](J)),N(0x4,a[_0x5586cb(0x187)](Z)),N(0x5,a['Inject'](Ce)),N(0x6,O[_0x5586cb(0x2c9)]),N(0x7,a[_0x5586cb(0x187)](a[_0x5586cb(0x1e1)]))],Q);var Gt=Object[_0x5586cb(0x84)],Kt=(_0x17525d,_0x464302,_0x39e601,_0x2e9fc7)=>{for(var _0x4b41fd=_0x2e9fc7>0x1?void 0x0:_0x2e9fc7?Gt(_0x464302,_0x39e601):_0x464302,_0x4c8bae=_0x17525d['length']-0x1,_0x37c91f;_0x4c8bae>=0x0;_0x4c8bae--)(_0x37c91f=_0x17525d[_0x4c8bae])&&(_0x4b41fd=_0x37c91f(_0x4b41fd)||_0x4b41fd);return _0x4b41fd;},_e=(_0xa022ec,_0x402e2a)=>(_0x598f49,_0x5627a3)=>_0x402e2a(_0x598f49,_0x5627a3,_0xa022ec);let ge=class extends a[_0x5586cb(0x160)]{constructor(_0x395a1c,_0x60faa4,_0x481265){const _0x57c40e=_0x5586cb;super(),h(this,_0x57c40e(0x2a9),new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0x57c40e(0x26e),!0x1),(this[_0x57c40e(0x166)]=_0x395a1c,this[_0x57c40e(0x161)]=_0x60faa4,this[_0x57c40e(0x1e0)]=_0x481265);}['disableLocalCache'](){const _0x2b78ab=_0x5586cb;this[_0x2b78ab(0x26e)]=!0x0;}['enableLocalCache'](){const _0x3dc0c9=_0x5586cb;this[_0x3dc0c9(0x26e)]=!0x1;}get[_0x5586cb(0x1ad)](){const _0x54a707=_0x5586cb;return this[_0x54a707(0x111)];}[_0x5586cb(0x24a)](){const _0xda1a9e=_0x5586cb;this[_0xda1a9e(0x8d)]()['then'](()=>super['dispose']());}async[_0x5586cb(0xf5)](_0x37e4e9){const _0x57a302=_0x5586cb;return this[_0x57a302(0x26e)]?null:this['_localStorageService'][_0x57a302(0x282)](u[_0x57a302(0xac)](_0x37e4e9));}async[_0x5586cb(0x94)](_0x469252,_0x11c7fa){const _0x58a87c=_0x5586cb;return!!this[_0x58a87c(0x161)][_0x58a87c(0x24c)](_0x469252,_0x11c7fa);}[_0x5586cb(0x2de)](_0xdb82af,_0x370dfe,_0x480650,_0x63927c){const _0x283329=_0x5586cb,_0x2a7a2b=this[_0x283329(0x1e0)][_0x283329(0x25b)](_0xdb82af);this[_0x283329(0x2a9)]['set'](_0xdb82af,{'unitID':_0xdb82af,'type':_0x370dfe,'awaitingChangeset':_0x480650,'mutations':_0x63927c,'rev':_0x2a7a2b}),this['_saveTaskMap']['has'](_0xdb82af)||this[_0x283329(0x2c6)](_0xdb82af);}[_0x5586cb(0x2c6)](_0x6d45cd){const _0x47c70c=_0x5586cb,_0x1b7425=this[_0x47c70c(0x214)]();_0x1b7425===0x0?this[_0x47c70c(0x102)](_0x6d45cd):this[_0x47c70c(0x111)][_0x47c70c(0xf4)](_0x6d45cd,setTimeout(()=>this[_0x47c70c(0x102)](_0x6d45cd),_0x1b7425));}[_0x5586cb(0x214)](){var _0x336a18;return(_0x336a18=this['_configService']['getConfig'](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x336a18:u['LOCAL_CACHE_INTERVAL'];}[_0x5586cb(0x102)](_0x528826){const _0x2e0454=_0x5586cb,_0x491243=this[_0x2e0454(0x111)][_0x2e0454(0x2ec)](_0x528826);return _0x491243!==void 0x0&&window[_0x2e0454(0x2d4)](_0x491243),this['_localStorageService'][_0x2e0454(0x24c)](u[_0x2e0454(0xac)](_0x528826),this[_0x2e0454(0x2a9)]['get'](_0x528826))[_0x2e0454(0x9d)](()=>this[_0x2e0454(0x111)][_0x2e0454(0x181)](_0x528826));}async['exhaustSavingTask'](){const _0x23c257=_0x5586cb,_0x70182a=[];this[_0x23c257(0x111)][_0x23c257(0x1de)]((_0x2000cc,_0x2cb5c)=>{const _0x27140d=_0x23c257;window[_0x27140d(0x2d4)](_0x2000cc),_0x70182a['push'](this['_saveCache'](_0x2cb5c)[_0x27140d(0x9d)](()=>{const _0x3dca1b=_0x27140d;this[_0x3dca1b(0x111)]['delete'](_0x2cb5c);}));}),await Promise[_0x23c257(0x2b6)](_0x70182a);}};ge=Kt([_e(0x0,a[_0x5586cb(0x170)]),_e(0x1,a[_0x5586cb(0xca)]),_e(0x2,a[_0x5586cb(0x187)](m[_0x5586cb(0xf6)]))],ge);class xe extends a['RxDisposable']{constructor(){const _0x15e161=_0x5586cb;super(),h(this,_0x15e161(0xff)),this[_0x15e161(0xff)]=d[_0x15e161(0xec)](window,'popstate')[_0x15e161(0x162)](d[_0x15e161(0xed)](this[_0x15e161(0x1dd)]),d[_0x15e161(0x184)](0x1),d[_0x15e161(0xd7)](void 0x0));}[_0x5586cb(0x1c6)](_0x3680e7,_0x51186a,_0xbb4336=!0x1){const _0x2153c1=_0x5586cb,_0x1580f2=new URL(window[_0x2153c1(0x13e)][_0x2153c1(0xe7)]);_0x1580f2['searchParams'][_0x2153c1(0xf4)](_0x3680e7,_0x51186a),_0xbb4336?window[_0x2153c1(0x271)][_0x2153c1(0xc7)]('','',_0x1580f2[_0x2153c1(0x9b)]()):window[_0x2153c1(0x271)]['pushState']('','',_0x1580f2['toString']());}['removeParam'](_0x30d4b3,_0x4b8970=!0x1){const _0x2081ed=_0x5586cb,_0x547416=new URL(window['location'][_0x2081ed(0xe7)]);_0x547416[_0x2081ed(0x203)]['delete'](_0x30d4b3),_0x4b8970?window[_0x2081ed(0x271)][_0x2081ed(0xc7)]('','',_0x547416[_0x2081ed(0x9b)]()):window['history'][_0x2081ed(0x2bb)]('','',_0x547416[_0x2081ed(0x9b)]());}[_0x5586cb(0x236)](_0x39dd79){const _0x1c5ff0=_0x5586cb;var _0x38404b;return(_0x38404b=new URL(window['location'][_0x1c5ff0(0xe7)])[_0x1c5ff0(0x203)][_0x1c5ff0(0x2ec)](_0x39dd79))!=null?_0x38404b:void 0x0;}}var qt=Object[_0x5586cb(0x2d3)],zt=Object[_0x5586cb(0x84)],Jt=(_0x15ffc5,_0x3ae444,_0x5da298)=>_0x3ae444 in _0x15ffc5?qt(_0x15ffc5,_0x3ae444,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5da298}):_0x15ffc5[_0x3ae444]=_0x5da298,Zt=(_0x45242f,_0x4f3a36,_0x2f20a,_0x18ef69)=>{for(var _0x165855=_0x18ef69>0x1?void 0x0:_0x18ef69?zt(_0x4f3a36,_0x2f20a):_0x4f3a36,_0x3b75fa=_0x45242f['length']-0x1,_0x5a8251;_0x3b75fa>=0x0;_0x3b75fa--)(_0x5a8251=_0x45242f[_0x3b75fa])&&(_0x165855=_0x5a8251(_0x165855)||_0x165855);return _0x165855;},he=(_0x16e1d3,_0x10ad38)=>(_0x57fa86,_0x495523)=>_0x10ad38(_0x57fa86,_0x495523,_0x16e1d3),Qt=(_0xd10e14,_0x233633,_0x3096b3)=>Jt(_0xd10e14,_0x233633+'',_0x3096b3);const es=_0x5586cb(0x177);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x5586cb(0x1d7)]{constructor(_0x307e2f=Ue,_0x5cf972,_0x408adf,_0x3516f9){const _0x4cbc91=_0x5586cb;super(),this[_0x4cbc91(0x2b5)]=_0x307e2f,this[_0x4cbc91(0x240)]=_0x5cf972,this['_injector']=_0x408adf,this[_0x4cbc91(0x166)]=_0x3516f9;const {..._0x3f9d68}=a['merge']({},Ue,this['_config']);this[_0x4cbc91(0x166)][_0x4cbc91(0x2ad)]($t,_0x3f9d68);}['onStarting'](){const _0x47133c=_0x5586cb;this[_0x47133c(0xe8)](),this[_0x47133c(0x189)]();}[_0x5586cb(0x1b1)](){this['_registerRenderDependencies']();}[_0x5586cb(0xe8)](){const _0x52b32d=_0x5586cb;var _0x32a21c;const _0x4ef69=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':xe}],[G[_0x52b32d(0xc5)],{'useClass':G[_0x52b32d(0x255)]}],[u[_0x52b32d(0xcb)],{'useClass':ge}],[exports[_0x52b32d(0xe1)]],[Q],[q],[x],[de],[exports[_0x52b32d(0x2ea)]]];a[_0x52b32d(0x14f)](this[_0x52b32d(0x277)],a[_0x52b32d(0x209)](_0x4ef69,(_0x32a21c=this[_0x52b32d(0x2b5)])==null?void 0x0:_0x32a21c['override']));}[_0x5586cb(0x159)](){const _0x3330dd=_0x5586cb;this[_0x3330dd(0x142)](this[_0x3330dd(0x240)][_0x3330dd(0x2e6)](a[_0x3330dd(0xdd)][_0x3330dd(0x225)],[fe])),this[_0x3330dd(0x142)](this['_renderManagerService']['registerRenderModule'](a[_0x3330dd(0xdd)]['UNIVER_SHEET'],[ve]));}[_0x5586cb(0x189)](){const _0x5a7dce=_0x5586cb;a['touchDependencies'](this['_injector'],[[x],[exports[_0x5a7dce(0xe1)]],[Q],[q],[exports[_0x5a7dce(0x2ea)]]]);}},Qt(exports[_0x5586cb(0xc4)],_0x5586cb(0x90),es),exports['UniverCollaborationClientUIPlugin']=Zt([a[_0x5586cb(0x21a)](u[_0x5586cb(0x234)]),he(0x1,p[_0x5586cb(0x19a)]),he(0x2,a[_0x5586cb(0x187)](a[_0x5586cb(0x144)])),he(0x3,a['IConfigService'])],exports[_0x5586cb(0xc4)]);var ts=Object[_0x5586cb(0x84)],ss=(_0x370d13,_0xbcf573,_0x410955,_0x5635d6)=>{for(var _0x84a8ac=_0x5635d6>0x1?void 0x0:_0x5635d6?ts(_0xbcf573,_0x410955):_0xbcf573,_0x5c8bb8=_0x370d13['length']-0x1,_0x3d0a8f;_0x5c8bb8>=0x0;_0x5c8bb8--)(_0x3d0a8f=_0x370d13[_0x5c8bb8])&&(_0x84a8ac=_0x3d0a8f(_0x84a8ac)||_0x84a8ac);return _0x84a8ac;},H=(_0x59c783,_0x3134fa)=>(_0x360bc8,_0x446510)=>_0x3134fa(_0x360bc8,_0x446510,_0x59c783);exports[_0x5586cb(0x264)]=class extends u[_0x5586cb(0x122)]{constructor(_0x3ea09f,_0xf147bb,_0x4fc84a,_0x4cf62a,_0x497a9e){super(_0x3ea09f,_0xf147bb,_0x4fc84a,_0x4cf62a,_0x497a9e);}async[_0x5586cb(0xcf)](_0x5ea7d2){const _0x1ba11c=_0x5586cb,_0x14c86a=await this['_getSessionTicket'](),_0xc93073=this[_0x1ba11c(0x7c)](_0x5ea7d2,_0x14c86a);return this[_0x1ba11c(0x265)](_0xc93073);}['_createSocketURL'](_0x1c51d4,_0xc709f){const _0x472933=_0x5586cb,_0x3f8195=typeof window>'u'?new URL(_0x1c51d4):new URL(_0x1c51d4,window['location'][_0x472933(0xa4)]);_0x3f8195[_0x472933(0x203)][_0x472933(0xf4)](_0x472933(0x260),_0xc709f);const _0x2b2d3b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x472933(0x13e)][_0x472933(0x2b0)]);return _0x2b2d3b['get'](_0x472933(0xba))&&_0x3f8195['searchParams']['set'](_0x472933(0xba),_0x2b2d3b[_0x472933(0x2ec)](_0x472933(0xba))),_0x3f8195[_0x472933(0x9b)]();}async[_0x5586cb(0x24e)](){const _0x48a471=_0x5586cb;var _0x4cba83,_0x22aa8e,_0x92da72;const _0x2dda6c=this[_0x48a471(0x166)][_0x48a471(0x26b)](u[_0x48a471(0xf0)]),_0x19e7fb=(_0x4cba83=_0x2dda6c==null?void 0x0:_0x2dda6c['wsSessionTicketUrl'])!=null?_0x4cba83:u[_0x48a471(0xc8)];return(_0x92da72=(_0x22aa8e=(await this[_0x48a471(0x2e0)]['get'](_0x19e7fb,{'headers':{'Content-Type':'application/json'}}))[_0x48a471(0x24b)])==null?void 0x0:_0x22aa8e[_0x48a471(0x1df)])!=null?_0x92da72:'';}},exports['BrowserCollaborationSocketService']=ss([H(0x0,a[_0x5586cb(0x187)](a[_0x5586cb(0x144)])),H(0x1,a[_0x5586cb(0x187)](G['HTTPService'])),H(0x2,a['IConfigService']),H(0x3,a['ILogService']),H(0x4,m[_0x5586cb(0x148)])],exports['BrowserCollaborationSocketService']);const Me=0x7530,Le=_0x5586cb(0x29c);class is extends a[_0x5586cb(0x160)]{constructor(){const _0x1ea9a8=_0x5586cb;super(),h(this,'_id',a[_0x1ea9a8(0x171)]()),h(this,_0x1ea9a8(0x7d),new Set()),h(this,_0x1ea9a8(0x154),new Map()),h(this,_0x1ea9a8(0x13c),null),h(this,_0x1ea9a8(0x12d),new Map()),h(this,_0x1ea9a8(0x81),new Map()),this[_0x1ea9a8(0x17f)]();}[_0x5586cb(0x24a)](){const _0x54458e=_0x5586cb;super[_0x54458e(0x24a)](),this[_0x54458e(0x12d)][_0x54458e(0x1de)]((_0x36d442,_0x1a1e41)=>this[_0x54458e(0x131)](_0x1a1e41)),this[_0x54458e(0x13c)]&&window[_0x54458e(0xb1)](this[_0x54458e(0x13c)]);}[_0x5586cb(0x247)](_0x1c15ac){const _0x144db3=_0x5586cb;return this[_0x144db3(0x88)](_0x1c15ac)[_0x144db3(0x162)](d['distinctUntilChanged']());}[_0x5586cb(0x243)](_0x345bec){const _0x507f6b=_0x5586cb;this[_0x507f6b(0x7d)][_0x507f6b(0x242)]===0x0&&this[_0x507f6b(0x238)](),this['_selfUnitIDs'][_0x507f6b(0x143)](_0x345bec),this[_0x507f6b(0x1f1)]({'type':0x0,'memberID':this[_0x507f6b(0x25a)],'unitIDs':[_0x345bec],'isForwarded':!0x1});}[_0x5586cb(0x197)](_0x127312){const _0x5917e5=_0x5586cb;this[_0x5917e5(0x7d)]['delete'](_0x127312),this[_0x5917e5(0x7d)]['size']===0x0&&this[_0x5917e5(0x13c)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x5586cb(0x17f)](){const _0x5c4b2e=_0x5586cb;this[_0x5c4b2e(0x142)](a[_0x5c4b2e(0x9a)](d[_0x5c4b2e(0xec)](window,_0x5c4b2e(0x2cf))[_0x5c4b2e(0x2a2)](_0x54dfb3=>{const _0xe4c05a=_0x5c4b2e;if(_0x54dfb3[_0xe4c05a(0x1a9)]!==Le||!_0x54dfb3[_0xe4c05a(0x231)])return;const _0x4c3f68=JSON['parse'](_0x54dfb3[_0xe4c05a(0x231)]);this['_handleEvent'](_0x4c3f68);}))),window[_0x5c4b2e(0xd3)](_0x5c4b2e(0x18d),()=>this[_0x5c4b2e(0x1f1)]({'type':0x1,'memberID':this[_0x5c4b2e(0x25a)],'unitIDs':Array[_0x5c4b2e(0x1fc)](this[_0x5c4b2e(0x7d)])}));}[_0x5586cb(0x120)](_0x2b5f72){const _0x13cf4c=_0x5586cb;switch(_0x2b5f72[_0x13cf4c(0xa9)]){case 0x0:this['_handleJoinEvent'](_0x2b5f72);break;case 0x1:this['_handleLeaveEvent'](_0x2b5f72);break;case 0x2:this[_0x13cf4c(0x215)](_0x2b5f72);break;}}[_0x5586cb(0x1ff)](_0x292d24){const _0x29a231=_0x5586cb,{unitIDs:_0x104d5d,memberID:_0x2d76db,isForwarded:_0x14ffeb}=_0x292d24;_0x104d5d['forEach'](_0x980b88=>{const _0xd60571=_0x13cb;if(!_0x14ffeb&&this[_0xd60571(0x154)]['has'](_0x980b88)&&this[_0xd60571(0x88)](_0x980b88)['next'](u['UnitStatus'][_0xd60571(0x2dd)]),!this[_0xd60571(0x154)][_0xd60571(0xdc)](_0x980b88)||!this[_0xd60571(0x154)][_0xd60571(0x2ec)](_0x980b88)['has'](_0x2d76db)){const _0x152ab6=this[_0xd60571(0x154)]['get'](_0x980b88)||new Set();_0x152ab6[_0xd60571(0x143)](_0x2d76db),this[_0xd60571(0x154)][_0xd60571(0xf4)](_0x980b88,_0x152ab6),this[_0xd60571(0x2da)](_0x2d76db);}}),_0x14ffeb||this['_send']({'type':0x0,'memberID':this[_0x29a231(0x25a)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x5586cb(0x2da)](_0x5b6759){const _0x21eedf=_0x5586cb;this['_removeClearOtherTimer'](_0x5b6759);const _0x26fd9f=window[_0x21eedf(0x2d8)](()=>{const _0x58194e=_0x21eedf;this[_0x58194e(0x154)][_0x58194e(0x1de)](_0x95d791=>{const _0x43296b=_0x58194e;_0x95d791[_0x43296b(0x181)](_0x5b6759);});},Me*0x2);this[_0x21eedf(0x12d)][_0x21eedf(0xf4)](_0x5b6759,_0x26fd9f);}[_0x5586cb(0x131)](_0x3d5946){const _0x1393ae=_0x5586cb;if(this[_0x1393ae(0x12d)]['has'](_0x3d5946)){const _0x5af238=this[_0x1393ae(0x12d)][_0x1393ae(0x2ec)](_0x3d5946);_0x5af238&&window[_0x1393ae(0x2d4)](_0x5af238),this['_clearOtherTimers']['set'](_0x3d5946,null);}}['_handleLeaveEvent'](_0x4cc759){const _0x1068d2=_0x5586cb,{memberID:_0x508592,unitIDs:_0x1bd086}=_0x4cc759;_0x1bd086[_0x1068d2(0x1de)](_0x556d49=>{const _0x13d063=_0x1068d2;var _0x2420bd;const _0x2174e4=this[_0x13d063(0x154)]['get'](_0x556d49);_0x2174e4&&(_0x2174e4[_0x13d063(0x181)](_0x508592),(_0x2420bd=this['_ensureSubject'](_0x556d49))==null||_0x2420bd[_0x13d063(0x229)](_0x2174e4[_0x13d063(0x242)]===0x0?u['UnitStatus'][_0x13d063(0x1c2)]:u[_0x13d063(0x1a0)][_0x13d063(0x2dd)]));}),this[_0x1068d2(0x131)](_0x508592);}[_0x5586cb(0x215)](_0x3d6772){const _0x1fa76f=_0x5586cb;this[_0x1fa76f(0x2da)](_0x3d6772['memberID']);}['_send'](_0x48bbf0){const _0x12f7df=_0x5586cb;localStorage[_0x12f7df(0x24c)](Le,JSON['stringify'](_0x48bbf0));}[_0x5586cb(0x238)](){const _0xc9d8fe=_0x5586cb;this[_0xc9d8fe(0x13c)]=window['setInterval'](()=>{const _0x99fd70=_0xc9d8fe;this[_0x99fd70(0x1f1)]({'type':0x2,'memberID':this[_0x99fd70(0x25a)]});},Me);}[_0x5586cb(0x88)](_0x462856){const _0x23bf51=_0x5586cb;return this[_0x23bf51(0x81)][_0x23bf51(0xdc)](_0x462856)||this['_unitStatus'][_0x23bf51(0xf4)](_0x462856,new d[(_0x23bf51(0x2dc))](u['UnitStatus'][_0x23bf51(0x1c2)])),this[_0x23bf51(0x81)]['get'](_0x462856);}}var Be=(_0x5bcc86=>(_0x5bcc86[_0x5bcc86[_0x5586cb(0x26a)]=0x0]='UNDEFINED',_0x5bcc86[_0x5bcc86['OK']=0x1]='OK',_0x5bcc86[_0x5bcc86['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x5bcc86[_0x5bcc86[_0x5586cb(0x126)]=0x3]='PERMISSION_DENIED',_0x5bcc86[_0x5bcc86[_0x5586cb(0x2b1)]=0x4]=_0x5586cb(0x2b1),_0x5bcc86[_0x5bcc86[_0x5586cb(0x1d2)]=0x5]=_0x5586cb(0x1d2),_0x5bcc86[_0x5bcc86[_0x5586cb(0xbb)]=0x6]='ALREADY_EXISTS',_0x5bcc86[_0x5bcc86['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x5bcc86[_0x5bcc86[_0x5586cb(0x272)]=0x8]=_0x5586cb(0x272),_0x5bcc86[_0x5bcc86['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x5bcc86[_0x5bcc86['LOGIN_FAILED']=0xa]='LOGIN_FAILED',_0x5bcc86[_0x5bcc86['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x5bcc86[_0x5bcc86['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x5bcc86[_0x5bcc86[_0x5586cb(0x167)]=0xd]=_0x5586cb(0x167),_0x5bcc86[_0x5bcc86[_0x5586cb(0x138)]=0xe]=_0x5586cb(0x138),_0x5bcc86[_0x5bcc86[_0x5586cb(0x1c7)]=0x1389]=_0x5586cb(0x1c7),_0x5bcc86[_0x5bcc86['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x5586cb(0x27b),_0x5bcc86[_0x5bcc86['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x5bcc86[_0x5bcc86[_0x5586cb(0x276)]=0x1773]=_0x5586cb(0x276),_0x5bcc86[_0x5bcc86['APPLY_REJECT']=0x1b59]=_0x5586cb(0x1c8),_0x5bcc86[_0x5bcc86['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x5586cb(0x1a4),_0x5bcc86[_0x5bcc86['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x5bcc86[_0x5bcc86['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x5586cb(0x290),_0x5bcc86[_0x5bcc86[_0x5586cb(0x266)]=0x1b5d]=_0x5586cb(0x266),_0x5bcc86[_0x5bcc86[_0x5586cb(0x29f)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5bcc86[_0x5bcc86['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x5bcc86[_0x5bcc86['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x5586cb(0xa1),_0x5bcc86[_0x5bcc86[_0x5586cb(0x13d)]=0x232b]=_0x5586cb(0x13d),_0x5bcc86[_0x5bcc86[_0x5586cb(0x2ef)]=0x232c]=_0x5586cb(0x2ef),_0x5bcc86[_0x5bcc86[_0x5586cb(0x1b4)]=0x232d]=_0x5586cb(0x1b4),_0x5bcc86[_0x5bcc86[_0x5586cb(0xb3)]=0x2711]=_0x5586cb(0xb3),_0x5bcc86[_0x5bcc86['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x5bcc86[_0x5bcc86[_0x5586cb(0x2d5)]=0x2713]=_0x5586cb(0x2d5),_0x5bcc86[_0x5bcc86[_0x5586cb(0x200)]=0x2714]=_0x5586cb(0x200),_0x5bcc86[_0x5bcc86[_0x5586cb(0x19b)]=0x271a]=_0x5586cb(0x19b),_0x5bcc86[_0x5bcc86[_0x5586cb(0x18f)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x5bcc86[_0x5bcc86[_0x5586cb(0x129)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x5bcc86[_0x5bcc86[_0x5586cb(0xb0)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x5bcc86[_0x5bcc86['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x5586cb(0x8c),_0x5bcc86[_0x5bcc86[_0x5586cb(0x1a6)]=0x271f]=_0x5586cb(0x1a6),_0x5bcc86[_0x5bcc86['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x5586cb(0x237),_0x5bcc86[_0x5bcc86[_0x5586cb(0x183)]=0x2af9]=_0x5586cb(0x183),_0x5bcc86[_0x5bcc86[_0x5586cb(0x139)]=0x2ee1]=_0x5586cb(0x139),_0x5bcc86[_0x5bcc86[_0x5586cb(0xee)]=0x2ee2]=_0x5586cb(0xee),_0x5bcc86[_0x5bcc86['INVITE_CODE_REQUIRED']=0x2ee3]='INVITE_CODE_REQUIRED',_0x5bcc86[_0x5bcc86[_0x5586cb(0x10e)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x5bcc86[_0x5bcc86['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x5bcc86[_0x5bcc86[_0x5586cb(0x7b)]=0x32c9]=_0x5586cb(0x7b),_0x5bcc86[_0x5bcc86['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x5bcc86[_0x5bcc86[_0x5586cb(0x292)]=0x32cb]=_0x5586cb(0x292),_0x5bcc86[_0x5bcc86[_0x5586cb(0x149)]=-0x1]=_0x5586cb(0x149),_0x5bcc86))(Be||{}),ns=Object[_0x5586cb(0x84)],rs=(_0x5a87ec,_0x39272b,_0x1df097,_0x2ecfac)=>{const _0x29d84a=_0x5586cb;for(var _0x159235=_0x2ecfac>0x1?void 0x0:_0x2ecfac?ns(_0x39272b,_0x1df097):_0x39272b,_0x272408=_0x5a87ec[_0x29d84a(0x99)]-0x1,_0x36e3de;_0x272408>=0x0;_0x272408--)(_0x36e3de=_0x5a87ec[_0x272408])&&(_0x159235=_0x36e3de(_0x159235)||_0x159235);return _0x159235;},ue=(_0x5c6f3b,_0x8da3bd)=>(_0x466b5a,_0x5611e9)=>_0x8da3bd(_0x466b5a,_0x5611e9,_0x5c6f3b);exports[_0x5586cb(0x22a)]=class extends a[_0x5586cb(0x160)]{constructor(_0x640eb8,_0x1cb504,_0x308e6e){const _0xbc1440=_0x5586cb;super(),this[_0xbc1440(0x2a8)]=_0x640eb8,this[_0xbc1440(0x2e0)]=_0x1cb504,this['_configService']=_0x308e6e;}async[_0x5586cb(0x259)](_0x16b323,_0x37efc3,_0x491d70,..._0x337f9e){const _0x4a2ffb=_0x5586cb;var _0x207d65,_0x4c68e5,_0x26767c,_0x3bcdaa;const _0x42f086=this[_0x4a2ffb(0x2a8)][_0x4a2ffb(0x158)]();if(!_0x42f086)throw new Error(_0x4a2ffb(0x2cd));const _0x418b4d=((_0x207d65=this[_0x4a2ffb(0x166)][_0x4a2ffb(0x26b)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x207d65:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x16b323+_0x4a2ffb(0x2d7)+_0x37efc3,_0x45e61b=new URL(window[_0x4a2ffb(0x13e)][_0x4a2ffb(0xe7)]),_0x27900d={'scriptId':_0x16b323,'runId':(_0x4c68e5=_0x45e61b[_0x4a2ffb(0x203)][_0x4a2ffb(0x2ec)](_0x4a2ffb(0xba)))!=null?_0x4c68e5:'','function':_0x37efc3,'unitId':_0x42f086[_0x4a2ffb(0x109)](),'argsOfFunction':JSON[_0x4a2ffb(0xfc)](_0x337f9e),'invokeId':(_0x26767c=_0x491d70[_0x4a2ffb(0x2cb)])!=null?_0x26767c:'','executionId':(_0x3bcdaa=_0x491d70['executionId'])!=null?_0x3bcdaa:''};try{const _0x5e343a=await this[_0x4a2ffb(0x2e0)][_0x4a2ffb(0x207)](_0x418b4d,{'body':_0x27900d});return _0x5e343a[_0x4a2ffb(0x24b)]['error']&&_0x5e343a[_0x4a2ffb(0x24b)][_0x4a2ffb(0xf8)][_0x4a2ffb(0x2b4)]!==Be['OK']?_0x4a2ffb(0x275):_0x5e343a[_0x4a2ffb(0x24b)][_0x4a2ffb(0x294)];}catch{return'Failed';}}},exports[_0x5586cb(0x22a)]=rs([ue(0x0,a[_0x5586cb(0x270)]),ue(0x1,a[_0x5586cb(0x187)](G[_0x5586cb(0x1ae)])),ue(0x2,a[_0x5586cb(0x170)])],exports[_0x5586cb(0x22a)]),exports[_0x5586cb(0x104)]=Ee,exports[_0x5586cb(0x1b3)]=we,exports[_0x5586cb(0x21e)]=is,exports['WebURLService']=xe;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x210e3f=_0x1e11;(function(_0x212ec2,_0x4eefd9){const _0x4e8918=_0x1e11,_0x5dc06d=_0x212ec2();while(!![]){try{const _0x40d2d4=parseInt(_0x4e8918(0x17e))/0x1*(parseInt(_0x4e8918(0x175))/0x2)+-parseInt(_0x4e8918(0x174))/0x3*(parseInt(_0x4e8918(0x184))/0x4)+parseInt(_0x4e8918(0x182))/0x5*(parseInt(_0x4e8918(0x17f))/0x6)+-parseInt(_0x4e8918(0x185))/0x7*(parseInt(_0x4e8918(0x171))/0x8)+parseInt(_0x4e8918(0x176))/0x9*(-parseInt(_0x4e8918(0x180))/0xa)+-parseInt(_0x4e8918(0x187))/0xb*(parseInt(_0x4e8918(0x17c))/0xc)+-parseInt(_0x4e8918(0x173))/0xd*(-parseInt(_0x4e8918(0x178))/0xe);if(_0x40d2d4===_0x4eefd9)break;else _0x5dc06d['push'](_0x5dc06d['shift']());}catch(_0x2bced7){_0x5dc06d['push'](_0x5dc06d['shift']());}}}(_0x2050,0x6e3c2));function _0x2050(){const _0x4a0cfb=['Edit\x20conflicts','56518IFpqyK','Local\x20file','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Collaboration\x20Conflict','48xAHWWL','Syncing\x20server\x20data...','2PmTXqo','60rSKHaK','2620CBbcLP','Connection\x20failed,\x20please\x20check\x20your\x20network.','268495rkDnoN','exports','140144aBUyMV','4762695Gdwlso','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','1666115kpHDuY','Authentication\x20Error','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','8TUwYxS','Click\x20to\x20Reconnect','4303pyxFBC','9TmIABh','398270DsXbUR','14724HVtSZf'];_0x2050=function(){return _0x4a0cfb;};return _0x2050();}function _0x1e11(_0x3c36e,_0x158783){const _0x2050c4=_0x2050();return _0x1e11=function(_0x1e113b,_0x457ec5){_0x1e113b=_0x1e113b-0x16f;let _0x39952e=_0x2050c4[_0x1e113b];return _0x39952e;},_0x1e11(_0x3c36e,_0x158783);}const e={'collab-client':{'tooltip':{'reconnect':_0x210e3f(0x172)}},'collabStatus':{'fetchMiss':_0x210e3f(0x17d),'conflict':_0x210e3f(0x177),'notCollab':_0x210e3f(0x179),'synced':'Synced','syncing':'Syncing...','offline':_0x210e3f(0x170)},'session':{'connection-failed':_0x210e3f(0x181),'will-retry':_0x210e3f(0x17a),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x210e3f(0x17b),'content':'There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.'},'permission':{'title':_0x210e3f(0x188),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':_0x210e3f(0x186)},'closeRoom':_0x210e3f(0x16f)},'auth':{'needGotoLoginAlert':_0x210e3f(0x189)}},o=e;module[_0x210e3f(0x183)]=o;
|