@univerjs-pro/collaboration-client-ui 0.6.0 → 0.6.1
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/en-US.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/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/en-US.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/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/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.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/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 +22 -22
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2e59f5=_0x5986;(function(_0x30a33b,_0x16dea8){const _0x1a70af=_0x5986,_0x5126d5=_0x30a33b();while(!![]){try{const _0x4e5601=parseInt(_0x1a70af(0x7e))/0x1*(parseInt(_0x1a70af(0x8d))/0x2)+parseInt(_0x1a70af(0x86))/0x3+-parseInt(_0x1a70af(0x81))/0x4+-parseInt(_0x1a70af(0x80))/0x5+parseInt(_0x1a70af(0x82))/0x6*(parseInt(_0x1a70af(0x7f))/0x7)+-parseInt(_0x1a70af(0x85))/0x8*(-parseInt(_0x1a70af(0x87))/0x9)+-parseInt(_0x1a70af(0x84))/0xa;if(_0x4e5601===_0x16dea8)break;else _0x5126d5['push'](_0x5126d5['shift']());}catch(_0x7d17ee){_0x5126d5['push'](_0x5126d5['shift']());}}}(_0x4310,0xd2187));const t=require(_0x2e59f5(0x8a)),e=require(_0x2e59f5(0x7d));class c extends e['FUniver']{[_0x2e59f5(0x8b)](_0x58f284,_0x379475,..._0x119702){const _0x5da746=_0x2e59f5;return this[_0x5da746(0x88)][_0x5da746(0x83)](t[_0x5da746(0x89)])['runOnServer'](_0x58f284,_0x379475,{},..._0x119702);}}e[_0x2e59f5(0x8c)]['extend'](c);function _0x5986(_0x517d03,_0x4be297){const _0x43102c=_0x4310();return _0x5986=function(_0x598699,_0x56f418){_0x598699=_0x598699-0x7d;let _0x48031f=_0x43102c[_0x598699];return _0x48031f;},_0x5986(_0x517d03,_0x4be297);}function _0x4310(){const _0x1c990f=['get','13552750cWpOgN','8zZVZVt','3929907dSoSZx','5274693ksgAyJ','_injector','RemoteUniscriptService','@univerjs-pro/collaboration-client-ui','runOnServer','FUniver','1652TsQIdZ','@univerjs/core/facade','1944wlhoIL','7NqIfqK','6611800mccliS','2974488uVHGqO','4680108BPBlhl'];_0x4310=function(){return _0x1c990f;};return _0x4310();}
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function _0x565a(){const _0xffc0aa=['session.connection-failed','[RemoteUniscriptService]:\x20no\x20focused\x20unit','svg','_updateCollabCursors','blue400','saveTaskMap','send','row','getActiveSheet','ONLINE','toStringTag','UPDATE_CURSOR','_assignedColors','_labelPosition','filter','_textBubble','bottom','_ensureSubject','DesktopCollaborationStatusDisplayController','COMPLETION_FINISHED','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_range','_getAnchorBounding','EffectRefRangId','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','random','transformSelections','mergeOverrideWithDependencies','RemoveColCommandId','Optional','YUUMI_SUBSCRIPTION_NOT_FOUND','fill','forwardRef','_getScale','_shapes','_memberService','BrowserCollaborationSocketService','url(#on-line-single_clip0_910_349)','getValue','params','none','UNDEFINED','resize','univerjs-icon\x20univerjs-icon-','APPLY_REVISION_CONFILICT','_dataLoaderService','IUniverInstanceService','_draw','CHANGESET_REVISION_CONFILICT','asObservable','getTypeOfUnitDisposed$','univer-online-status-icon','function','on-line-single','_refRangeService','uni.network.url-service','Injector','selection','idSuffix','createSocket','IConfigService','translate(.97)','@univerjs/docs-ui','textRanges','DocCollaborationEntity','onlineStatusTitle','useObservable','mutations','setItem','_scheduleSaving','_docSyncEditingCollabCursorService','useDependency','ranges','_drawTextRange','getUnitId','_clearOtherTimers','requireSession','registerRefRange','NOT_FOUND','_createSocketURL','closePath','getAncestorScale','takeUntil','registerBeforeClose','setActiveRange','_imageIoService','min','override','imageSourceType','findNodePositionByCharIndex','handleIRemoveRow','unshift','ILocalCacheService','key','width','setParam','_send','application/json','disposeUnit','sessionStatus$','mapTo','getConfig','hide','actions','906hxhSUO','hovered','from','entityInit$','search','SHEET_VIEWPORT_KEY','doc.mutation.rich-text-editing','selections','univer-online-status','getCollabCursors$','startRow','Module','getFocusedUnit','black','@univerjs/design','fromEvent','_initCommandExecutedListener','_status$','RegularPolygon','redoState','ThemeService','ILogService','editingUnit','popstate','focused$','runRefRangeMutations','touchDependencies','switchMap','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','71051ypMzIA','onMouseMove','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','SYNCED','APPLY_PERMISSION_DENIED','ALREADY_EXISTS','univer-online-status-title','collaboration.single-unit.warning','_collaborationUIEventService','attrs','makeDirty','_cursorShapes','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','defIds','arc','complete','registerDependencies','_init','getViewport','5826712LCAYDG','APPLY_NON_SEQUENTIAL_REVISION','Unknown\x20user','RemoteUniscriptService','_collabCursorState$','removeParam','get','SetSelectionsOperation','_startSheetCollabCursor','Inject','restore','_sheetSkeletonManagerService','status$','IBeforeCloseService','OnLineSingle','currentSkeleton$','ENSURE_SNAPSHOT_EXECUTION','ticket','CONNECTOR_DATA_TOO_LARGE','UniverInstanceType','_id','registerComponent','getSkeleton','storage','HTTPService','m2Prime','SheetCollabCursorShape','ISocketService','substring','connectInjector','text','offline','getStateCache','_urlService','code','_hover','Plugin','size','_instanceService','_removeClearOtherTimer','transformByState','_context','_cursorInfo$','enableLocalCache','onPointerLeave$','values','path','CollaborationSocketService','_transformPreviousActiveRange','transform','PENDING','length','OTHER_CLIENTS_EDITING','whenReady','runId','clipPath','univer-flex\x20univer-items-center','YUUMI_UNABLE_LOAD_URL','debounceTime','_onRefRangeChange','_getMergeRange','#FFF','eventID','Subject','TOO_MANY_REQUESTS','runOnServer','cursorInfo','then','_docTransformIMECacheService','IMessageService','COLORS','_initResize','getUndoRedoMutationParamsCache','session.collaboration-timeout','memberID','debug','USERS_LEAVE','getSheetBySheetId','WebBrowserSingleActiveUnitService','_renderManagerService','RECT','UNIVER_DOC','createInstance','OTHER_CLIENT_EDITING','startColumn','...','7Wfhlph','all','next','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','getMemberID','TEXT','PY_RUNTIME_SCRIPT_ERROR','_getSessionTicket','AWAITING','isEditing','_beforeCloseService','[CollaborationDataLoaderController]','getCollabEntity$','FromArray','CollaborationSessionService','_transformUndoRedoStack','_docSkeleton','sheetId','extend','data','getUnhiddenWorksheets','31060JFSMoA','_initStatusListener','hasOwnProperty','evenodd','getRenderById','isActive','ITransformService','SNAPSHOT_INVALID_SNAPSHOT','entries','_scene','assignAColorForMemberID','_localStorageService','collabStatus.fetchMiss','ColorKit','NodePositionConvertToRectRange','_selfUnitIDs','use','subscribe','_session','saveImage','type','call','registerRenderModule','TEXT_RANGE_LAYER_INDEX','_disabled','labelPosition','setUndoRedoMutationParamsCache','searchParams','getRangePointData','transformRemoteChangeset','height','SOCKET_FAILED_RETRY','UNAUTHENTICATED','split','_cursor','_themeService','symbol','getRelativeToViewportCoord','currentColor','measureText','CollaborationStatus','APPLY_DUPLICATED','_entityInit$','InsertColCommandId','getItem','6082876pyaYne','CommandType','UnitStatus','handleInsertRow','body','168msDXym','onlineStatusIcon','getCurrent','onCommandExecuted','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_cursors','_collaborationController','displayName','_heartbeatTimer','_docStateChangeManagerService','pluginName','transformIMECache','getLocalCacheKey','RevisionService','drawWith','transformMutation','handleDeleteRangeMoveUp','on-line-single_clip0_910_349','_notificationService','addHandlerCallback','rgba(255,\x20255,\x20255,\x200.01)','INVALID_ARGUMENT','_docClipboardService','combineLatest','SessionStatus','currentTheme$','some','_univerInstanceService','_roomMembers$','LICENSE_DISTRO_REJECTED','DOC_RANGE_TYPE','syncEditingCollabCursor','PERMISSION_DENIED','InsertRowCommandId','off-line-single_clip0_910_343','onPointerMove$','endRow','origin','RemoveRowCommandId','_handleEvent','pipe','propertyIsEnumerable','className','dispose$','transformMutationsWithChangeset','_document','m1Prime','column','assign','Rectangle','exhaustSavingTask','collaboration-client.offline-data-not-saved','LICENSE_MAX_UNITS_EXCEEDED','_logService','transformStateCache','disposeWithMe','round','unit','SUBMIT_CHANGESET_TIMEOUT','rxjs/operators','AWAITING_WITH_PENDING','subunit','10824948xrUlKA','show','SheetSkeletonManagerService','_registerRenderDependencies','_eventUnsubscribe','setShapeProps','startsWith','string','color','save','CONFLICT','result','onTransformChange$','_entities','location','collaboration.closeRoom','_lastPointer','_transformHistoryAndStateStack','concat','_scheduleHeartbeat','Error','_hideTimer','getParam','deepClone','add','react/jsx-runtime','OFFLINE','MemberService','12mgvKbo','UNRECOGNIZED','unitID','CollaborationDataLoaderController','_uiPartsService','setAlpha','WebSocketService','undoState','_httpService','InsertRangeMoveDownCommandId','roomMembers','_removeCollabCursors','collaboration-client-ui.config','updateOfflineData','dispose','getTypeOfUnitAdded$','_toggleOffline','engine','range','Disposable','children','ACTIVE_UNIT_EVENT_CHANNEL','urlChange$','DocSkeletonManagerService','_unitStatus','univer-offline','endColumn','setStateCache','url(#$1','@univerjs/docs','toDisposable','OffLineSingle','toRgbString','_hovered','jiqing500','_registerDependencies','clearTimeout','addObject','Warning','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getDocRanges','addEventListener','pushState','skeleton','Shape','_toggleOnline','roomMembers$','indexOf','NOT_COLLAB','replaceState','_updateSubUnitFromURLParams','createElement','_doCreateSocket','gold400','subscribeEvent','docStateChange$','SetTextSelectionsOperation','2255957AXFGIA','_setupBeforeClosingHandler','IRemoteInstanceService','executeCommand','lineTo','_saveCache','#fff','off-line-single','Vector2','toString','setConfig','_getSaveTimeout','getSheetId','prototype','collabStatus.syncing','CollaborationStatusDisplay','INotificationService','IImageIoService','DataLoaderService','parse','disableLocalCache','href','_collabCursorController','flatMap','SNAPSHOT_HAS_BEEN_REMOVED','_render','_onCursorDelete','generateRandomId','_anchor','map','saveOfflineData','max','DocSelectionManagerService','unload','getColor','name','shareReplay','YUUMI_URL_COL_OUT_OF_RANGE','@univerjs/engine-formula','RxDisposable','_initEvent','LOCAL_CACHE_INTERVAL','@univerjs/sheets','Rect','debounce','_anchorDot','collabStatus.offline','MUTATION','_name','delete','stringify','_startDocCollabCursor','CollaborationUIEventId','LICENSE_EXPORT_SIZE_EXCEEDED','_syncEditingCollabCursorService','sessionTicket','collab-text-range-','onlineStatus','_colorIndex','invokeId','_localCacheService','unitId','ICommandService','_drawRectRange','_online','_handleLeaveEvent','apply','collabCursorState$','getVpScrollXYInfoByPosToVp','_updateLocalCursor','InsertRangeMoveRightCommandId','addClipboardHook','@univerjs/engine-render','getActiveRange','IDocClipboardService','_initEntityListener','post','loadUnit','cursorInfo$','forEach','isArray','Tools','unsubscribe','SetWorksheetActivateCommand','getCurrentSelections','CollaborationEvent','error','M0\x200H16V16H0z','useRef','find','UniverIcon','_messageService','fillText','subUnitId','icon','_collabSessionService','_unitOnClients','_colorAssignService','defs','_handleHover','_injector','DisposableCollection','set','LocaleService','11000860TqlNOA','HEADER_MENU','isTransformMutationFailure','onLocalMutation','_commandService','handleMoveRange','IRenderManagerService','merge','IURLService','_onCursorUpdate','defineProperty','ILocalStorageService','handleDeleteRangeMoveLeft','getOwnPropertyDescriptor','@univerjs/network','collabStatus.conflict','_color','_transformService','_cachedData','with','_setupSubUnitSync','handleInsertRangeMoveRight','_localeService','_updateURLWithCurrentState','JOIN_ROOM_FAILED','jsx','WebURLService','getCellPositionByOffset','DependentOn','sheetID','_configService','top','3NEoADS','IUIPartsService','serializeRangeWithSheet','newValue','RefRangeService','collab-rect-range-','getMember','backgroundColor','1em','_initStatusComponent','push','isTransformMutationsWithChangesetSuccess','_docTransformStateCacheService','/run/','useCallback','_scheduleClearOtherTimer','BehaviorSubject','MessageType','UniverCollaborationClientUIPlugin','_backgroundColor','_getSheetObject','UniverCollaborationClientPlugin','div','has','@univerjs-pro/collaboration-client','tag','collabStatus.notCollab','event$','distinctUntilChanged','_docSkeletonManagerService','@univerjs/sheets-ui','_refreshCollabCursors','Failed','YUUMI_RATE_OVER_LIMIT','FETCH_MISS','history','init','getOffsetConfig','collab-client.tooltip.reconnect','getCoordByCell','_docTransformSelectionsService','getUnitStatus$','_saveTaskMap','LICENSE_IMPORT_SIZE_EXCEEDED','onPointerEnter$','INTERNAL_ERROR','_revisionService','xlink:href'];_0x565a=function(){return _0xffc0aa;};return _0x565a();}const _0x41f8c8=_0xee62;(function(_0x1d5c06,_0x377b40){const _0x4df670=_0xee62,_0x32d432=_0x1d5c06();while(!![]){try{const _0x45aa42=-parseInt(_0x4df670(0x30f))/0x1*(parseInt(_0x4df670(0x199))/0x2)+-parseInt(_0x4df670(0x25a))/0x3*(parseInt(_0x4df670(0x13a))/0x4)+parseInt(_0x4df670(0x10d))/0x5*(-parseInt(_0x4df670(0x2f2))/0x6)+parseInt(_0x4df670(0xf8))/0x7*(parseInt(_0x4df670(0x322))/0x8)+parseInt(_0x4df670(0x17d))/0x9+-parseInt(_0x4df670(0x23a))/0xa+-parseInt(_0x4df670(0x1d2))/0xb*(-parseInt(_0x4df670(0x13f))/0xc);if(_0x45aa42===_0x377b40)break;else _0x32d432['push'](_0x32d432['shift']());}catch(_0x4bb670){_0x32d432['push'](_0x32d432['shift']());}}}(_0x565a,0xc7836));var qe=Object[_0x41f8c8(0x244)],Ke=(_0x2184ca,_0x496911,_0x138611)=>_0x496911 in _0x2184ca?qe(_0x2184ca,_0x496911,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x138611}):_0x2184ca[_0x496911]=_0x138611,h=(_0x16c5f9,_0x313503,_0x227701)=>Ke(_0x16c5f9,typeof _0x313503!=_0x41f8c8(0x131)?_0x313503+'':_0x313503,_0x227701);Object[_0x41f8c8(0x244)](exports,Symbol[_0x41f8c8(0x294)],{'value':_0x41f8c8(0x2fd)});const u=require(_0x41f8c8(0x272)),a=require('@univerjs/core'),p=require(_0x41f8c8(0x21a)),q=require(_0x41f8c8(0x248)),b=require(_0x41f8c8(0x2c8)),ze=require('@univerjs/drawing'),d=require('rxjs'),Y=require(_0x41f8c8(0x1b6)),m=require('@univerjs-pro/collaboration'),Te=require(_0x41f8c8(0x1f8)),I=require(_0x41f8c8(0x1fc)),$=require(_0x41f8c8(0x17a)),G=require(_0x41f8c8(0x278)),w=require(_0x41f8c8(0x196)),T=require('@univerjs/ui'),M=require(_0x41f8c8(0x300)),P=require('react'),Je=require('@univerjs/rpc');var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x801cf0,_0x4150e7,_0x1e0c77,_0x499c6f)=>{const _0x5e08b3=_0x41f8c8;for(var _0x5891c9=_0x499c6f>0x1?void 0x0:_0x499c6f?Ze(_0x4150e7,_0x1e0c77):_0x4150e7,_0x5d5b76=_0x801cf0[_0x5e08b3(0xd5)]-0x1,_0x8bd5af;_0x5d5b76>=0x0;_0x5d5b76--)(_0x8bd5af=_0x801cf0[_0x5d5b76])&&(_0x5891c9=_0x8bd5af(_0x5891c9)||_0x5891c9);return _0x5891c9;},Re=(_0xf56164,_0x434457)=>(_0x33510c,_0x83c783)=>_0x434457(_0x33510c,_0x83c783,_0xf56164);let fe=class extends a[_0x41f8c8(0x1f9)]{constructor(_0xe4df55,_0x5d54d9){super(),this['_docClipboardService']=_0xe4df55,this['_imageIoService']=_0x5d54d9,this['_init']();}[_0x41f8c8(0x320)](){const _0x41ea83=_0x41f8c8,_0x5b8197=this;this[_0x41ea83(0x176)](this[_0x41ea83(0x155)][_0x41ea83(0x219)]({'onBeforePasteImage':async _0x2860f7=>{const _0x5ad4c5=_0x41ea83,_0x31a114=await _0x5b8197[_0x5ad4c5(0x2df)][_0x5ad4c5(0x120)](_0x2860f7);return _0x31a114?{'source':_0x31a114['source'],'imageSourceType':_0x31a114[_0x5ad4c5(0x2e2)]}:null;}}));}};fe=Qe([Re(0x0,b[_0x41f8c8(0x21c)]),Re(0x1,ze[_0x41f8c8(0x1e3)])],fe);const Oe=['purple300',_0x41f8c8(0x1bb),'verdancy600','red300',_0x41f8c8(0x28e),_0x41f8c8(0x1ce)];class Ce extends a[_0x41f8c8(0x1ac)]{constructor(){const _0x581f05=_0x41f8c8;super(...arguments),h(this,_0x581f05(0x296),new Map()),h(this,'_colorIndex',0x0);}[_0x41f8c8(0x117)](_0x36fb09){const _0x4293e1=_0x41f8c8;if(this[_0x4293e1(0x296)][_0x4293e1(0x271)](_0x36fb09))return this[_0x4293e1(0x296)]['get'](_0x36fb09);const _0x5915ed=Oe[this[_0x4293e1(0x20c)]];return this[_0x4293e1(0x20c)]=(this[_0x4293e1(0x20c)]+0x1)%Oe[_0x4293e1(0xd5)],this[_0x4293e1(0x296)][_0x4293e1(0x238)](_0x36fb09,_0x5915ed),_0x5915ed;}}function ye(_0x4c24ed){let _0x22f282='';for(const _0x3bda5c of _0x4c24ed){const {startOffset:_0xf192fc,endOffset:_0x104da3,isActive:_0x26c818,rangeType:_0x145f2c,segmentId:_0x25b48c,segmentPage:_0x57eb1c}=_0x3bda5c;_0x22f282['length']&&(_0x22f282+=','),_0x22f282+=_0xf192fc+':'+_0x104da3+':'+(_0x26c818?'1':'0')+':'+_0x145f2c+':'+_0x25b48c+':'+_0x57eb1c;}return _0x22f282;}function et(_0x2bc2ce){const _0x2e762d=_0x41f8c8,_0x42c0ef=_0x2bc2ce[_0x2e762d(0x12e)](','),_0x4ac6e5=[];for(const _0x17c765 of _0x42c0ef){const [_0x2776bc,_0x5b8c17,_0x5b88d4,_0x5cbd32,_0x2c13ec,_0x18d3a2]=_0x17c765[_0x2e762d(0x12e)](':');_0x4ac6e5[_0x2e762d(0x264)]({'startOffset':Number(_0x2776bc),'endOffset':Number(_0x5b8c17),'collapsed':_0x2776bc===_0x5b8c17,'isActive':_0x5b88d4==='1','rangeType':_0x5cbd32===a[_0x2e762d(0x15d)][_0x2e762d(0xfd)]?a[_0x2e762d(0x15d)][_0x2e762d(0xfd)]:a[_0x2e762d(0x15d)]['RECT'],'segmentId':typeof _0x2c13ec==_0x2e762d(0x184)?String(_0x2c13ec):'','segmentPage':Number(_0x18d3a2!=null?_0x18d3a2:-0x1)});}return _0x4ac6e5[_0x2e762d(0x159)](_0x2b8e15=>_0x2b8e15[_0x2e762d(0x112)])||(_0x4ac6e5[0x0]['isActive']=!0x0),_0x4ac6e5;}class pe extends a[_0x41f8c8(0x1f9)]{constructor(){const _0x27392e=_0x41f8c8;super(...arguments),h(this,_0x27392e(0x326),new d[(_0x27392e(0x26a))](null)),h(this,_0x27392e(0x215),this['_collabCursorState$'][_0x27392e(0x2bb)]());}[_0x41f8c8(0x15e)](_0x22d986){const _0x17ea89=_0x41f8c8,{unitID:_0x43683a,memberID:_0x2cdc70,textRanges:_0x521e25}=_0x22d986,_0x4ac233=ye(_0x521e25);if(_0x4ac233==='')return;const _0x4ab73c={'unitID':_0x43683a,'memberID':_0x2cdc70,'selection':_0x4ac233};this[_0x17ea89(0x326)][_0x17ea89(0xfa)](_0x4ab73c);}}var tt=Object['getOwnPropertyDescriptor'],st=(_0xa9a914,_0x3682bd,_0x47c274,_0x4b9683)=>{for(var _0x302ca5=_0x4b9683>0x1?void 0x0:_0x4b9683?tt(_0x3682bd,_0x47c274):_0x3682bd,_0x4b624c=_0xa9a914['length']-0x1,_0x42075b;_0x4b624c>=0x0;_0x4b624c--)(_0x42075b=_0xa9a914[_0x4b624c])&&(_0x302ca5=_0x42075b(_0x302ca5)||_0x302ca5);return _0x302ca5;},N=(_0x5861f9,_0x2c0ce7)=>(_0xfb5869,_0x5bd1b0)=>_0x2c0ce7(_0xfb5869,_0x5bd1b0,_0x5861f9);const nt=0x12c,it=0x64;let Se=class extends a[_0x41f8c8(0x1f9)]{constructor(_0x4c5bd6,_0x4971ed,_0x2966ce,_0x13dec9,_0x7620de,_0x233f3b,_0x13840a,_0x507b08,_0x3eef04){const _0x327d8d=_0x41f8c8;super(),h(this,_0x327d8d(0x212),!0x1),h(this,'_init',!0x1),h(this,_0x327d8d(0xcc),new d[(_0x327d8d(0x26a))](new Map())),h(this,'cursorInfo$',this[_0x327d8d(0xcc)]['asObservable']()),h(this,_0x327d8d(0x15b),new d['BehaviorSubject']([])),h(this,'roomMembers$',this[_0x327d8d(0x15b)][_0x327d8d(0x167)](d[_0x327d8d(0xdc)](nt))),h(this,_0x327d8d(0x217),a[_0x327d8d(0x1fe)](_0x1991f8=>{const _0x568573=_0x327d8d,_0x15d83e={'eventID':m[_0x568573(0x227)][_0x568573(0x295)],'data':{'unitID':this[_0x568573(0x19b)],'memberID':this[_0x568573(0x11f)][_0x568573(0xfc)](),'selection':ye(_0x1991f8)}};this[_0x568573(0x11f)][_0x568573(0x290)](_0x15d83e,this[_0x568573(0x19b)]);},it)),(this[_0x327d8d(0x19b)]=_0x4c5bd6,this[_0x327d8d(0x11f)]=_0x4971ed,this[_0x327d8d(0x236)]=_0x2966ce,this[_0x327d8d(0x233)]=_0x13dec9,this['_memberService']=_0x7620de,this[_0x327d8d(0x208)]=_0x233f3b,this['_transformService']=_0x13840a,this[_0x327d8d(0x15a)]=_0x507b08,this[_0x327d8d(0x23e)]=_0x3eef04);}get[_0x41f8c8(0xe4)](){const _0xf17a90=_0x41f8c8;return this[_0xf17a90(0xcc)][_0xf17a90(0x2b0)]();}get[_0x41f8c8(0x1a3)](){const _0x436fd9=_0x41f8c8;return this[_0x436fd9(0x15b)][_0x436fd9(0x2b0)]();}['dispose'](){const _0x2967d8=_0x41f8c8;super[_0x2967d8(0x1a7)](),this[_0x2967d8(0xcc)][_0x2967d8(0xfa)](new Map()),this[_0x2967d8(0xcc)][_0x2967d8(0x31e)](),this[_0x2967d8(0x15b)][_0x2967d8(0xfa)]([]),this[_0x2967d8(0x15b)][_0x2967d8(0x31e)]();}[_0x41f8c8(0x27e)](){const _0x145710=_0x41f8c8;this[_0x145710(0x320)]||(this['_init']=!0x0,this[_0x145710(0x11f)]['sessionStatus$'][_0x145710(0x167)](d['takeUntil'](this[_0x145710(0x16a)]))[_0x145710(0x11e)](_0x1f7e13=>{const _0x4dffd4=_0x145710;_0x1f7e13===u[_0x4dffd4(0x157)][_0x4dffd4(0x293)]?this['_toggleOnline']():this[_0x4dffd4(0x1a9)]();}),this['_session'][_0x145710(0x275)][_0x145710(0x167)](d[_0x145710(0x2dc)](this[_0x145710(0x16a)]))[_0x145710(0x11e)](_0x33203a=>{const _0x1cda35=_0x145710,_0x1908b6=_0x33203a[_0x1cda35(0xe0)];_0x1908b6===m['CollaborationEvent'][_0x1cda35(0x295)]&&this[_0x1cda35(0x243)](_0x33203a),_0x1908b6===m[_0x1cda35(0x227)][_0x1cda35(0xee)]&&this[_0x1cda35(0x1ec)](_0x33203a);}),this['disposeWithMe'](this[_0x145710(0x23e)][_0x145710(0x142)](_0x2d89dd=>{const _0x495805=_0x145710,_0x894a1e=_0x2d89dd[_0x495805(0x2b1)];_0x894a1e!=null&&this[_0x495805(0x212)]&&_0x2d89dd['id']===Y[_0x495805(0x1d1)]['id']&&_0x894a1e['unitId']===this[_0x495805(0x19b)]&&_0x894a1e[_0x495805(0x101)]===!0x1&&_0x894a1e['ranges']['length']>0x0&&this[_0x495805(0x217)](_0x894a1e[_0x495805(0x2d2)]);})),this['_syncEditingCollabCursorService'][_0x145710(0x215)][_0x145710(0x167)](d[_0x145710(0x2dc)](this[_0x145710(0x16a)]))['subscribe'](_0x32ada1=>{const _0x1a21e8=_0x145710;if((_0x32ada1==null?void 0x0:_0x32ada1[_0x1a21e8(0x19b)])!==this[_0x1a21e8(0x19b)])return;const _0x2bbb82={'eventID':m[_0x1a21e8(0x227)][_0x1a21e8(0x295)],'data':_0x32ada1};this[_0x1a21e8(0x243)](_0x2bbb82);}),this[_0x145710(0x176)](this['_commandService']['onCommandExecuted'](_0x5a5c72=>{const _0x28a1ab=_0x145710;if(_0x5a5c72[_0x28a1ab(0x2b1)]==null)return;const _0x42915e=_0x5a5c72[_0x28a1ab(0x2b1)];if(_0x5a5c72['id']!==Y['RichTextEditingMutation']['id']||_0x42915e[_0x28a1ab(0x20f)]!==this[_0x28a1ab(0x19b)])return;const _0x5635c0={'id':_0x28a1ab(0x2f8),'params':_0x42915e},_0xd62c31=this[_0x28a1ab(0xe4)];for(const [_0x34bbe3,_0x1ca2dc]of _0xd62c31){const _0x59f80e={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x28a1ab(0x19b)],'actions':null,'textRanges':_0x1ca2dc[_0x28a1ab(0x2d2)]}},_0xede5c8=this[_0x28a1ab(0x24b)][_0x28a1ab(0x14e)](_0x5635c0,_0x59f80e,!0x1);if(m[_0x28a1ab(0x23c)](_0xede5c8))throw _0xede5c8['error'];_0xd62c31[_0x28a1ab(0x238)](_0x34bbe3,{..._0x1ca2dc,'ranges':_0xede5c8[_0x28a1ab(0x33b)][_0x28a1ab(0x2b1)][_0x28a1ab(0x2c9)]});}queueMicrotask(()=>{const _0x1158e0=_0x28a1ab;this[_0x1158e0(0xcc)]['next'](_0xd62c31);});})));}[_0x41f8c8(0x243)](_0x34d87f){const _0x26b75a=_0x41f8c8;var _0x1b0d7f,_0x16b42c;const {memberID:_0x5104b4,selection:_0x4ff72a}=_0x34d87f[_0x26b75a(0x10b)],_0x57d248=et(_0x4ff72a),_0x257960=(_0x16b42c=(_0x1b0d7f=this['_memberService']['getMember'](this['unitID'],_0x5104b4))==null?void 0x0:_0x1b0d7f[_0x26b75a(0x1f5)])!=null?_0x16b42c:_0x26b75a(0x324),_0x31f62a={'color':this[_0x26b75a(0x233)]['assignAColorForMemberID'](_0x5104b4),'name':_0x257960,'ranges':_0x57d248},_0x4c41d=this['cursorInfo'];_0x4c41d['set'](_0x5104b4,_0x31f62a),this[_0x26b75a(0xcc)][_0x26b75a(0xfa)](_0x4c41d);}[_0x41f8c8(0x1ec)](_0x3fa7c8){const _0x2f1960=_0x41f8c8,{memberID:_0x2f9dd0}=_0x3fa7c8[_0x2f1960(0x10b)],_0x2b0ae0=this[_0x2f1960(0xe4)];_0x2b0ae0[_0x2f1960(0x203)](_0x2f9dd0),this[_0x2f1960(0xcc)][_0x2f1960(0xfa)](_0x2b0ae0);}[_0x41f8c8(0x1c6)](){const _0x6e2525=_0x41f8c8;var _0x413db7;if(this[_0x6e2525(0x212)]=!0x0,((_0x413db7=this[_0x6e2525(0x15a)]['getFocusedUnit']())==null?void 0x0:_0x413db7[_0x6e2525(0x2d4)]())!==this[_0x6e2525(0x19b)])return;const _0x115f7c=this[_0x6e2525(0x236)][_0x6e2525(0x328)](Y[_0x6e2525(0x1f2)])[_0x6e2525(0x1c1)]();Array[_0x6e2525(0x222)](_0x115f7c)&&_0x115f7c['length']>0x0&&this[_0x6e2525(0x217)](_0x115f7c);}[_0x41f8c8(0x1a9)](){const _0x160e40=_0x41f8c8;this[_0x160e40(0x212)]=!0x1;}};Se=st([N(0x2,a['Inject'](a[_0x41f8c8(0x2c2)])),N(0x3,a['Inject'](Ce)),N(0x4,a['Inject'](u['MemberService'])),N(0x5,a[_0x41f8c8(0x32b)](pe)),N(0x6,m[_0x41f8c8(0x113)]),N(0x7,a[_0x41f8c8(0x2b8)]),N(0x8,a['ICommandService'])],Se);var rt=Object[_0x41f8c8(0x247)],ot=(_0x3244fd,_0x574c04,_0x2c20f8,_0x42ffd3)=>{const _0x5d2858=_0x41f8c8;for(var _0x49a3df=_0x42ffd3>0x1?void 0x0:_0x42ffd3?rt(_0x574c04,_0x2c20f8):_0x574c04,_0x2c1a45=_0x3244fd[_0x5d2858(0xd5)]-0x1,_0x558a36;_0x2c1a45>=0x0;_0x2c1a45--)(_0x558a36=_0x3244fd[_0x2c1a45])&&(_0x49a3df=_0x558a36(_0x49a3df)||_0x49a3df);return _0x49a3df;},y=(_0xf89470,_0x33e327)=>(_0x18901e,_0x20344b)=>_0x33e327(_0x18901e,_0x20344b,_0xf89470);const at=0x12c,ct=0x64,lt=()=>{let _0x38457c=[],_0x1d1303=!0x1;return _0x2d04ae=>{const _0x2c96b0=_0xee62;_0x38457c[_0x2c96b0(0x264)](_0x2d04ae),_0x1d1303||(_0x1d1303=!0x0,setTimeout(()=>{const _0x1f8dc1=_0x2c96b0;_0x38457c[_0x1f8dc1(0x221)](_0x48a11b=>_0x48a11b()),_0x38457c=[],_0x1d1303=!0x1;}));};};let ve=class extends a[_0x41f8c8(0x1f9)]{constructor(_0x336086,_0x5f1d1b,_0x57ba54,_0x2b0936,_0x45bb19,_0x2066c8,_0xb5da90,_0x569b60){const _0x3ff435=_0x41f8c8;super(),h(this,_0x3ff435(0x212),!0x1),h(this,_0x3ff435(0x320),!0x1),h(this,_0x3ff435(0xcc),new d[(_0x3ff435(0x26a))](new Map())),h(this,_0x3ff435(0x220),this['_cursorInfo$'][_0x3ff435(0x2bb)]()),h(this,_0x3ff435(0x15b),new d[(_0x3ff435(0x26a))]([])),h(this,_0x3ff435(0x1c7),this[_0x3ff435(0x15b)][_0x3ff435(0x167)](d[_0x3ff435(0xdc)](at))),h(this,_0x3ff435(0x217),a['debounce']((_0x191230,_0x41ed10)=>{const _0x40934d=_0x3ff435,_0x2f2348={'eventID':m['CollaborationEvent'][_0x40934d(0x295)],'data':{'unitID':this[_0x40934d(0x19b)],'memberID':this[_0x40934d(0x11f)][_0x40934d(0xfc)](),'selection':Te[_0x40934d(0x25c)](_0x191230,_0x41ed10['range'])}};this[_0x40934d(0x11f)]['send'](_0x2f2348,this[_0x40934d(0x19b)]);},ct)),(this[_0x3ff435(0x19b)]=_0x336086,this['_session']=_0x5f1d1b,this[_0x3ff435(0x236)]=_0x57ba54,this[_0x3ff435(0x233)]=_0x2b0936,this['_memberService']=_0x45bb19,this[_0x3ff435(0x15a)]=_0x2066c8,this[_0x3ff435(0x23e)]=_0xb5da90,this[_0x3ff435(0x2c0)]=_0x569b60);}get[_0x41f8c8(0xe4)](){const _0x26e378=_0x41f8c8;return this[_0x26e378(0xcc)]['getValue']();}get['roomMembers'](){const _0x5cbe91=_0x41f8c8;return this[_0x5cbe91(0x15b)][_0x5cbe91(0x2b0)]();}[_0x41f8c8(0x1a7)](){const _0x4ed641=_0x41f8c8;super[_0x4ed641(0x1a7)](),this['_cursorInfo$']['next'](new Map()),this[_0x4ed641(0xcc)][_0x4ed641(0x31e)](),this['_roomMembers$']['next']([]),this[_0x4ed641(0x15b)][_0x4ed641(0x31e)]();}['init'](){const _0x4d18af=_0x41f8c8;this['_init']||(this[_0x4d18af(0x320)]=!0x0,this[_0x4d18af(0x11f)][_0x4d18af(0x2ed)]['pipe'](d[_0x4d18af(0x2dc)](this[_0x4d18af(0x16a)]))[_0x4d18af(0x11e)](_0x214b3f=>{const _0x1d2b17=_0x4d18af;_0x214b3f===u[_0x1d2b17(0x157)]['ONLINE']?this[_0x1d2b17(0x1c6)]():this[_0x1d2b17(0x1a9)]();}),this[_0x4d18af(0x11f)]['event$']['pipe'](d['takeUntil'](this[_0x4d18af(0x16a)]))[_0x4d18af(0x11e)](_0x16c254=>{const _0x2accff=_0x4d18af,_0x54fb67=_0x16c254['eventID'];_0x54fb67===m[_0x2accff(0x227)][_0x2accff(0x295)]&&this[_0x2accff(0x243)](_0x16c254),_0x54fb67===m[_0x2accff(0x227)][_0x2accff(0xee)]&&this[_0x2accff(0x1ec)](_0x16c254);}),this['_onRefRangeChange'](),this[_0x4d18af(0x176)](this[_0x4d18af(0x23e)]['onCommandExecuted'](_0x529d0f=>{const _0x2b1d14=_0x4d18af;if(this['_online']&&_0x529d0f['id']===I[_0x2b1d14(0x329)]['id']&&_0x529d0f[_0x2b1d14(0x2b1)][_0x2b1d14(0x20f)]===this[_0x2b1d14(0x19b)]){const _0x96d60e=_0x529d0f['params'];this[_0x2b1d14(0x217)](_0x96d60e[_0x2b1d14(0x22f)],_0x96d60e[_0x2b1d14(0x2f9)][0x0]);}})));}['_onCursorUpdate'](_0x3904c5){const _0x4bf269=_0x41f8c8;var _0x26e2e8,_0x422914;const {memberID:_0x2dc320,selection:_0x1eb684}=_0x3904c5[_0x4bf269(0x10b)],{sheetName:_0x4ee832,range:_0x2be2e5}=Te['deserializeRangeWithSheet'](_0x1eb684),_0x51d908={'name':(_0x422914=(_0x26e2e8=this[_0x4bf269(0x2ad)][_0x4bf269(0x260)](this[_0x4bf269(0x19b)],_0x2dc320))==null?void 0x0:_0x26e2e8[_0x4bf269(0x1f5)])!=null?_0x422914:_0x4bf269(0x324),'range':this[_0x4bf269(0xde)](_0x4ee832,_0x2be2e5),'sheetID':_0x4ee832,'color':this[_0x4bf269(0x233)]['assignAColorForMemberID'](_0x2dc320),'selection':_0x1eb684},_0x1f88d7=this['cursorInfo'];_0x1f88d7[_0x4bf269(0x238)](_0x2dc320,_0x51d908),this[_0x4bf269(0xcc)][_0x4bf269(0xfa)](_0x1f88d7);}['_onCursorDelete'](_0x36db54){const _0x10b956=_0x41f8c8,{memberID:_0x2f3470}=_0x36db54[_0x10b956(0x10b)],_0x5689f0=this[_0x10b956(0xe4)];_0x5689f0['delete'](_0x2f3470),this[_0x10b956(0xcc)][_0x10b956(0xfa)](_0x5689f0);}['_getMergeRange'](_0xcbfe4b,_0x38c8a1){const _0x7a1465=_0x41f8c8;var _0x347c68,_0x54dbe9;const _0x20cfc6=(_0x54dbe9=(_0x347c68=this['_univerInstanceService']['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x347c68['getSheetBySheetId'](_0xcbfe4b))==null?void 0x0:_0x54dbe9['getMergeData']();return(_0x20cfc6==null?void 0x0:_0x20cfc6[_0x7a1465(0x22b)](_0x49d9bd=>a[_0x7a1465(0x170)]['contains'](_0x49d9bd,_0x38c8a1)))||_0x38c8a1;}[_0x41f8c8(0xdd)](){const _0x202734=_0x41f8c8,_0x252768=new a[(_0x202734(0x237))](),_0x93a175=lt(),_0x37602a=()=>{const _0x21487f=_0x202734;_0x252768['dispose']();const _0x484a4c=(_0x3141e6,_0x27f727,_0xa6b754,_0xd32eda)=>{const _0xa940c5=_0xee62;let _0x16b8bc=[];switch(_0x3141e6['id']){case I['EffectRefRangId']['DeleteRangeMoveLeftCommandId']:{_0x16b8bc=I[_0xa940c5(0x246)](_0x3141e6,_0xd32eda);break;}case I['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x16b8bc=I[_0xa940c5(0x14f)](_0x3141e6,_0xd32eda);break;}case I[_0xa940c5(0x2a1)][_0xa940c5(0x138)]:{_0x16b8bc=I['handleInsertCol'](_0x3141e6,_0xd32eda);break;}case I[_0xa940c5(0x2a1)][_0xa940c5(0x1a2)]:{_0x16b8bc=I['handleInsertRangeMoveDown'](_0x3141e6,_0xd32eda);break;}case I['EffectRefRangId'][_0xa940c5(0x218)]:{_0x16b8bc=I[_0xa940c5(0x24f)](_0x3141e6,_0xd32eda);break;}case I['EffectRefRangId'][_0xa940c5(0x160)]:{_0x16b8bc=I[_0xa940c5(0x13d)](_0x3141e6,_0xd32eda);break;}case I[_0xa940c5(0x2a1)]['MoveRangeCommandId']:{_0x16b8bc=I[_0xa940c5(0x23f)](_0x3141e6,_0xd32eda);break;}case I[_0xa940c5(0x2a1)][_0xa940c5(0x2a6)]:{_0x16b8bc=I['handleIRemoveCol'](_0x3141e6,_0xd32eda);break;}case I[_0xa940c5(0x2a1)][_0xa940c5(0x165)]:{_0x16b8bc=I[_0xa940c5(0x2e4)](_0x3141e6,_0xd32eda);break;}}const _0x59e2cd=I[_0xa940c5(0x30b)](_0x16b8bc,_0xd32eda),_0x54a8c5=this[_0xa940c5(0xe4)][_0xa940c5(0x328)](_0x27f727);if(_0x54a8c5&&_0x59e2cd){const _0x101891={..._0x54a8c5,'range':_0x59e2cd};this['cursorInfo'][_0xa940c5(0x238)](_0x27f727,_0x101891),_0x93a175(()=>{const _0x309145=_0xa940c5,_0x54c2e5=this[_0x309145(0x2c0)][_0x309145(0x2d7)](_0x59e2cd,_0x366f82=>(_0x54c2e5['dispose'](),_0x484a4c(_0x366f82,_0x27f727,_0xa6b754,_0x59e2cd)));_0x252768[_0x309145(0x195)](_0x54c2e5);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x21487f(0x221)]((_0xa9d25e,_0x1fd6c6)=>{const _0x1d71f7=_0x21487f,{range:_0xfc1443,sheetID:_0x53f619}=_0xa9d25e,_0x5e10a1=this[_0x1d71f7(0x2c0)]['registerRefRange'](_0xfc1443,_0x386cb7=>(_0x5e10a1[_0x1d71f7(0x1a7)](),_0x484a4c(_0x386cb7,_0x1fd6c6,_0x53f619,_0xfc1443)));_0x252768[_0x1d71f7(0x195)](_0x5e10a1);});};this['disposeWithMe'](a[_0x202734(0x1b7)](this[_0x202734(0xcc)][_0x202734(0x11e)](()=>{_0x37602a();})));}[_0x41f8c8(0x1c6)](){const _0x5ec82e=_0x41f8c8;var _0x55a8d8,_0x44cdb7;if(this[_0x5ec82e(0x212)]=!0x0,((_0x55a8d8=this[_0x5ec82e(0x15a)][_0x5ec82e(0x2fe)]())==null?void 0x0:_0x55a8d8['getUnitId']())!==this[_0x5ec82e(0x19b)])return;const _0x5915cf=(_0x44cdb7=this[_0x5ec82e(0x236)][_0x5ec82e(0x328)](I['SheetsSelectionsService'])[_0x5ec82e(0x226)]())==null?void 0x0:_0x44cdb7[0x0],_0x180a19=this['_univerInstanceService']['getCurrentUnitForType'](a['UniverInstanceType']['UNIVER_SHEET'])[_0x5ec82e(0x292)]();_0x5915cf&&_0x180a19&&this[_0x5ec82e(0x217)](_0x180a19['getSheetId'](),_0x5915cf);}['_toggleOffline'](){const _0x181308=_0x41f8c8;this[_0x181308(0x212)]=!0x1;}};ve=ot([y(0x2,a['Inject'](a[_0x41f8c8(0x2c2)])),y(0x3,a[_0x41f8c8(0x32b)](Ce)),y(0x4,a[_0x41f8c8(0x32b)](u[_0x41f8c8(0x198)])),y(0x5,a[_0x41f8c8(0x2b8)]),y(0x6,a[_0x41f8c8(0x210)]),y(0x7,a[_0x41f8c8(0x32b)](I[_0x41f8c8(0x25e)]))],ve);var ht=Object['getOwnPropertyDescriptor'],_t=(_0x570588,_0x48a238,_0x1a7902,_0x17cc3d)=>{const _0x2b13a6=_0x41f8c8;for(var _0x625fc6=_0x17cc3d>0x1?void 0x0:_0x17cc3d?ht(_0x48a238,_0x1a7902):_0x48a238,_0x180e0b=_0x570588[_0x2b13a6(0xd5)]-0x1,_0x6a432e;_0x180e0b>=0x0;_0x180e0b--)(_0x6a432e=_0x570588[_0x180e0b])&&(_0x625fc6=_0x6a432e(_0x625fc6)||_0x625fc6);return _0x625fc6;},ie=(_0x5d6130,_0x3d2fa2)=>(_0x17e5ec,_0x16e0fa)=>_0x3d2fa2(_0x17e5ec,_0x16e0fa,_0x5d6130);let x=class extends a[_0x41f8c8(0x1f9)]{constructor(_0x2212d3,_0x52f0a2,_0x2b1707){const _0x479818=_0x41f8c8;super(),h(this,_0x479818(0x18a),new Map()),h(this,_0x479818(0x137),new d[(_0x479818(0xe1))]()),(this[_0x479818(0x15a)]=_0x2212d3,this[_0x479818(0x236)]=_0x52f0a2,this[_0x479818(0x231)]=_0x2b1707,this[_0x479818(0x320)]());}[_0x41f8c8(0x1a7)](){const _0x3f835a=_0x41f8c8;super['dispose'](),this[_0x3f835a(0x137)][_0x3f835a(0x31e)](),this['_entities'][_0x3f835a(0x221)](_0x35d0ea=>_0x35d0ea['dispose']());}[_0x41f8c8(0x2fb)](_0x478f29){const _0x22a2b9=_0x41f8c8;return this['_entities'][_0x22a2b9(0x271)](_0x478f29)?this['_entities'][_0x22a2b9(0x328)](_0x478f29)[_0x22a2b9(0x220)]:this['_entityInit$'][_0x22a2b9(0x167)](d['filter'](_0x384055=>_0x384055['unitID']===_0x478f29),d['switchMap'](_0x37eeb8=>_0x37eeb8['cursorInfo$']));}[_0x41f8c8(0x320)](){const _0x23cbd2=_0x41f8c8;this[_0x23cbd2(0x15a)][_0x23cbd2(0x1a8)](a[_0x23cbd2(0x335)]['UNIVER_SHEET'])['pipe'](d[_0x23cbd2(0x2dc)](this['dispose$']))[_0x23cbd2(0x11e)](async _0x560df3=>{const _0x3d10d2=_0x23cbd2,_0x3c4b42=_0x560df3[_0x3d10d2(0x2d4)](),_0x4a6bf2=await this[_0x3d10d2(0x32a)](_0x3c4b42);this[_0x3d10d2(0x137)][_0x3d10d2(0xfa)](_0x4a6bf2),this['_entities']['set'](_0x3c4b42,_0x4a6bf2);}),this[_0x23cbd2(0x15a)][_0x23cbd2(0x1a8)](a[_0x23cbd2(0x335)][_0x23cbd2(0xf3)])[_0x23cbd2(0x167)](d[_0x23cbd2(0x2dc)](this[_0x23cbd2(0x16a)]))[_0x23cbd2(0x167)](d['filter'](_0x4dc373=>!_0x4dc373[_0x23cbd2(0x2d4)]()[_0x23cbd2(0x183)]('__')))[_0x23cbd2(0x11e)](async _0x5a6161=>{const _0x58d951=_0x23cbd2,_0x4a1c89=_0x5a6161[_0x58d951(0x2d4)](),_0xfac45b=await this[_0x58d951(0x205)](_0x4a1c89);this[_0x58d951(0x137)]['next'](_0xfac45b),this[_0x58d951(0x18a)][_0x58d951(0x238)](_0x4a1c89,_0xfac45b);}),d[_0x23cbd2(0x241)](this[_0x23cbd2(0x15a)][_0x23cbd2(0x2bc)](a[_0x23cbd2(0x335)]['UNIVER_DOC']),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a['UniverInstanceType']['UNIVER_SHEET']))[_0x23cbd2(0x167)](d[_0x23cbd2(0x2dc)](this[_0x23cbd2(0x16a)]))['subscribe'](_0x332c79=>{const _0x430899=_0x23cbd2,_0x349113=_0x332c79[_0x430899(0x2d4)](),_0x1e78bb=this[_0x430899(0x18a)][_0x430899(0x328)](_0x349113);_0x1e78bb&&(_0x1e78bb[_0x430899(0x1a7)](),this[_0x430899(0x18a)]['delete'](_0x349113));});}async['_startSheetCollabCursor'](_0x288271){const _0x1e6f38=_0x41f8c8,_0x4c3b7e=await this['_collabSessionService'][_0x1e6f38(0x2d6)](_0x288271),_0x136cc1=this[_0x1e6f38(0x236)][_0x1e6f38(0xf4)](ve,_0x288271,_0x4c3b7e);return _0x136cc1[_0x1e6f38(0x27e)](),_0x136cc1;}async[_0x41f8c8(0x205)](_0x4e424a){const _0x3ff77b=_0x41f8c8,_0x569514=await this[_0x3ff77b(0x231)]['requireSession'](_0x4e424a),_0x190afa=this[_0x3ff77b(0x236)][_0x3ff77b(0xf4)](Se,_0x4e424a,_0x569514);return _0x190afa['init'](),_0x190afa;}};x=_t([ie(0x0,a[_0x41f8c8(0x2b8)]),ie(0x1,a[_0x41f8c8(0x32b)](a[_0x41f8c8(0x2c2)])),ie(0x2,a[_0x41f8c8(0x32b)](u[_0x41f8c8(0x106)]))],x);const K=0x14,De=0xc8,re=0x4,ut=0x5;function dt(_0x3d2502,_0x3f5e7f){const _0x4e4e11=_0x41f8c8;let {radius:_0x2f0e63,width:_0x4d591e,height:_0x1e2e33}=_0x3f5e7f;_0x2f0e63=_0x2f0e63!=null?_0x2f0e63:0x0,_0x4d591e=_0x4d591e!=null?_0x4d591e:0x1e,_0x1e2e33=_0x1e2e33!=null?_0x1e2e33:0x1e;let _0x1558fb=0x0,_0x55bcbf=0x0,_0x3a27d1=0x0;_0x1558fb=_0x55bcbf=_0x3a27d1=Math[_0x4e4e11(0x2e0)](_0x2f0e63,_0x4d591e/0x2,_0x1e2e33/0x2),_0x3d2502['beginPath'](),_0x3d2502['moveTo'](_0x1558fb,0x0),_0x3d2502['lineTo'](_0x4d591e-_0x55bcbf,0x0),_0x3d2502[_0x4e4e11(0x31d)](_0x4d591e-_0x55bcbf,_0x55bcbf,_0x55bcbf,Math['PI']*0x3/0x2,0x0,!0x1),_0x3d2502[_0x4e4e11(0x1d6)](_0x4d591e,_0x1e2e33-_0x3a27d1),_0x3d2502[_0x4e4e11(0x31d)](_0x4d591e-_0x3a27d1,_0x1e2e33-_0x3a27d1,_0x3a27d1,0x0,Math['PI']/0x2,!0x1),_0x3d2502[_0x4e4e11(0x1d6)](0x0,_0x1e2e33),_0x3d2502[_0x4e4e11(0x1d6)](0x0,_0x1558fb),_0x3d2502[_0x4e4e11(0x31d)](_0x1558fb,_0x1558fb,_0x1558fb,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3d2502[_0x4e4e11(0x2da)](),_0x3f5e7f['fill']&&(_0x3d2502[_0x4e4e11(0x186)](),_0x3d2502['fillStyle']=_0x3f5e7f[_0x4e4e11(0x2a9)],_0x3f5e7f['fillRule']===_0x4e4e11(0x110)?_0x3d2502[_0x4e4e11(0x2a9)](_0x4e4e11(0x110)):_0x3d2502['fill'](),_0x3d2502[_0x4e4e11(0x32c)]());}class te extends p[_0x41f8c8(0x1c5)]{constructor(_0x363ec5,_0x51a4d3){const _0x18604c=_0x41f8c8;super(_0x363ec5,_0x51a4d3),h(this,_0x18604c(0x185)),h(this,_0x18604c(0x340)),(this[_0x18604c(0x185)]=_0x51a4d3==null?void 0x0:_0x51a4d3['color'],this[_0x18604c(0x340)]=_0x51a4d3==null?void 0x0:_0x51a4d3[_0x18604c(0x340)]);}static['drawWith'](_0x353ac3,_0x45e694){const _0x457d78=_0x41f8c8,{text:_0xaf046a,color:_0x3c42fa}=_0x45e694;_0x353ac3[_0x457d78(0x186)](),_0x353ac3['font']=_0x457d78(0x1c0);const _0x4e70b1=_0x353ac3[_0x457d78(0x134)](_0xaf046a)[_0x457d78(0x2e8)],_0x530eed=Math[_0x457d78(0x2e0)](_0x4e70b1+0x2*re,De);dt(_0x353ac3,{'height':K,'radius':0x4,'width':_0x530eed,'fill':_0x3c42fa}),_0x353ac3['fillStyle']=_0x457d78(0xdf);const _0x3a258f=re,_0x2f36a4=K-ut,_0x5bfbeb=De-0x2*re;if(_0x4e70b1>_0x5bfbeb){let _0x1f277f='',_0x1d85fd=0x0;for(const _0x46fe58 of _0xaf046a){const _0x680dd6=_0x353ac3[_0x457d78(0x134)](_0x46fe58)[_0x457d78(0x2e8)];if(_0x1d85fd+_0x680dd6<=_0x5bfbeb-_0x353ac3[_0x457d78(0x134)]('...')[_0x457d78(0x2e8)])_0x1f277f+=_0x46fe58,_0x1d85fd+=_0x680dd6;else{_0x1f277f+=_0x457d78(0xf7);break;}}_0x353ac3[_0x457d78(0x22e)](_0x1f277f,_0x3a258f,_0x2f36a4);}else _0x353ac3[_0x457d78(0x22e)](_0xaf046a,_0x3a258f,_0x2f36a4);_0x353ac3[_0x457d78(0x32c)]();}[_0x41f8c8(0x2b9)](_0x3cef2b){const _0x2ff9a2=_0x41f8c8;te[_0x2ff9a2(0x14d)](_0x3cef2b,this);}}const oe='collab-text-anchor-',ft=_0x41f8c8(0x20a),St=_0x41f8c8(0x25f),B=0x6,vt=1.5,ae=0x4,gt=1.5,It=_0x41f8c8(0x153);class Ue{constructor(_0x3c5943,_0x49add5,_0x333272,_0x2495df){const _0x202f15=_0x41f8c8;h(this,'_shapes',[]),h(this,_0x202f15(0x1ee),null),h(this,'_textBubble',null),h(this,_0x202f15(0x1ff),null),h(this,_0x202f15(0x192),null),h(this,_0x202f15(0x181),null),(this[_0x202f15(0x12f)]=_0x3c5943,this['_scene']=_0x49add5,this[_0x202f15(0x108)]=_0x333272,this[_0x202f15(0x16c)]=_0x2495df,this['_render']());}set[_0x41f8c8(0xc5)](_0x19efec){const _0x1b1c00=_0x41f8c8;_0x19efec?(this[_0x1b1c00(0x1ff)]&&this['_anchorDot'][_0x1b1c00(0x2f0)](),this[_0x1b1c00(0x299)]&&this[_0x1b1c00(0x299)][_0x1b1c00(0x17e)]()):(this[_0x1b1c00(0x1ff)]&&this[_0x1b1c00(0x1ff)][_0x1b1c00(0x17e)](),this[_0x1b1c00(0x299)]&&this['_textBubble'][_0x1b1c00(0x2f0)]());}[_0x41f8c8(0x1a7)](){const _0x51bec3=_0x41f8c8;for(const _0x5612d5 of this[_0x51bec3(0x2ac)])_0x5612d5[_0x51bec3(0x1a7)]();this[_0x51bec3(0x299)]&&this[_0x51bec3(0x299)][_0x51bec3(0x1a7)](),this['_anchorDot']&&this[_0x51bec3(0x1ff)]['dispose'](),this[_0x51bec3(0x1ee)]&&this[_0x51bec3(0x1ee)]['dispose'](),this[_0x51bec3(0x181)]&&this[_0x51bec3(0x181)]();}[_0x41f8c8(0x1eb)](){const _0x5c40ea=_0x41f8c8;var _0x5b63e9;const {_docSkeleton:_0x99274a,_document:_0x2404af}=this,{color:_0x3201bd,name:_0x3edf9e,ranges:_0x74c4ce}=this[_0x5c40ea(0x12f)],_0x15e775=_0x2404af[_0x5c40ea(0x27f)](),{docsLeft:_0x264c54,docsTop:_0x3d04d6}=_0x15e775,_0x538399=new b['NodePositionConvertToCursor'](_0x15e775,_0x99274a);for(const {startOffset:_0x5cce10,endOffset:_0x444050,rangeType:_0x17db8d,segmentId:_0x200baa,segmentPage:_0x2fde96,collapsed:_0x4857fc,isActive:_0x3894dc}of _0x74c4ce){const _0x57bcb6=_0x99274a[_0x5c40ea(0x2e3)](_0x5cce10,!0x0,_0x200baa,_0x2fde96);let _0xcb4042=_0x99274a['findNodePositionByCharIndex'](_0x444050,!0x0,_0x200baa,_0x2fde96);if(_0xcb4042==null&&(_0xcb4042=_0x99274a[_0x5c40ea(0x2e3)](_0x444050-0x1,!0x1,_0x200baa,_0x2fde96)),_0x3894dc){const {contentBoxPointGroup:_0x51cda2}=_0x538399[_0x5c40ea(0x129)](_0xcb4042,_0xcb4042);if(_0x51cda2[_0x5c40ea(0xd5)]===0x0)continue;this['_drawAnchor'](_0x3201bd,_0x51cda2,_0x264c54,_0x3d04d6,_0x3edf9e),this[_0x5c40ea(0x181)]=this[_0x5c40ea(0x235)]();}if(_0x57bcb6&&_0xcb4042){if(_0x17db8d===a[_0x5c40ea(0x15d)][_0x5c40ea(0xf2)]){const _0x1954c9=new b[(_0x5c40ea(0x11b))](_0x15e775,_0x99274a),{pointGroup:_0x319420}=(_0x5b63e9=_0x1954c9['getRangePointData'](_0x57bcb6,_0xcb4042))!=null?_0x5b63e9:{};if(_0x319420==null||_0x319420['length']===0x0)continue;this[_0x5c40ea(0x211)](_0x3201bd,_0x319420,_0x264c54,_0x3d04d6);}else{if(!_0x4857fc){const {borderBoxPointGroup:_0xab3afe}=_0x538399[_0x5c40ea(0x129)](_0x57bcb6,_0xcb4042);if(_0xab3afe[_0x5c40ea(0xd5)]===0x0)continue;this[_0x5c40ea(0x2d3)](_0x3201bd,_0xab3afe,_0x264c54,_0x3d04d6);}}}}}['_drawAnchor'](_0x38c343,_0x538f50,_0x4b69d3,_0x1f799a,_0x3bc4ba){const _0x36e081=_0x41f8c8,_0x49a77d=this['_getAnchorBounding'](_0x538f50),{left:_0x4425a9,top:_0xc3be1f,height:_0x24650a}=_0x49a77d,_0x16b507=this[_0x36e081(0x2ab)](),_0x5afe4c=gt/_0x16b507,_0x4529a0=new p[(_0x36e081(0x1fd))](oe+a[_0x36e081(0x223)][_0x36e081(0x1ed)](B),{'left':_0x4425a9+_0x4b69d3-_0x5afe4c,'top':_0xc3be1f+_0x1f799a,'height':_0x24650a,'width':vt,'fill':_0x38c343||p[_0x36e081(0x1f4)](a[_0x36e081(0xe8)]['black'],0x0),'strokeWidth':_0x5afe4c,'stroke':It,'evented':!0x0});this[_0x36e081(0x1ee)]=_0x4529a0,this[_0x36e081(0x116)][_0x36e081(0x1be)](_0x4529a0,b[_0x36e081(0x124)]);const _0x648ea1=new p[(_0x36e081(0x1fd))](oe+a[_0x36e081(0x223)]['generateRandomId'](B),{'left':_0x4425a9+_0x4b69d3-_0x5afe4c,'top':_0xc3be1f+_0x1f799a-ae/0x2,'height':ae,'width':ae,'fill':_0x38c343||p['getColor'](a[_0x36e081(0xe8)][_0x36e081(0x2ff)],0x0),'strokeWidth':0x0,'stroke':_0x38c343||p[_0x36e081(0x1f4)](a[_0x36e081(0xe8)][_0x36e081(0x2ff)],0x0),'evented':!0x1});this[_0x36e081(0x1ff)]=_0x648ea1,this[_0x36e081(0x116)]['addObject'](_0x648ea1,b[_0x36e081(0x124)]);const _0x36587f=new te(oe+a[_0x36e081(0x223)]['generateRandomId'](B),{'left':_0x4425a9+_0x4b69d3-_0x5afe4c,'top':_0xc3be1f+_0x1f799a-K,'text':_0x3bc4ba,'color':_0x38c343});this[_0x36e081(0x299)]=_0x36587f,this['_scene'][_0x36e081(0x1be)](_0x36587f,b[_0x36e081(0x124)]),this['_hover']=!0x1;}[_0x41f8c8(0x235)](){const _0x5b9332=_0x41f8c8,_0x3ddc70=this['_anchor'][_0x5b9332(0x286)]['subscribeEvent'](()=>{const _0x1726af=_0x5b9332;this[_0x1726af(0xc5)]=!0x0;}),_0x5b322d=this[_0x5b9332(0x1ee)][_0x5b9332(0xce)][_0x5b9332(0x1cf)](()=>{const _0x23ae62=_0x5b9332;this[_0x23ae62(0x192)]&&clearTimeout(this[_0x23ae62(0x192)]),this[_0x23ae62(0x192)]=setTimeout(()=>{const _0x24a278=_0x23ae62;this[_0x24a278(0xc5)]=!0x1;},0x7d0);});return()=>{const _0x22f20e=_0x5b9332;_0x3ddc70[_0x22f20e(0x224)](),_0x5b322d[_0x22f20e(0x224)]();};}[_0x41f8c8(0x2d3)](_0x5b0a36,_0x4a4bfe,_0x47ab45,_0x55abcb){const _0x239d0a=_0x41f8c8,_0x4446ad=new a[(_0x239d0a(0x11a))](_0x5b0a36)['setAlpha'](0.2)[_0x239d0a(0x1b9)](),_0x2a9605=new p[(_0x239d0a(0x304))](ft+a[_0x239d0a(0x223)]['generateRandomId'](B),{'pointsGroup':_0x4a4bfe,'fill':_0x4446ad||p[_0x239d0a(0x1f4)](a['COLORS'][_0x239d0a(0x2ff)],0.2),'left':_0x47ab45,'top':_0x55abcb,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x2a9605),this['_scene'][_0x239d0a(0x1be)](_0x2a9605,b[_0x239d0a(0x124)]);}[_0x41f8c8(0x211)](_0x6eb4ea,_0x3b9d5f,_0x4f9758,_0x33c395){const _0x107866=_0x41f8c8,_0x3fc08d=new a[(_0x107866(0x11a))](_0x6eb4ea)[_0x107866(0x19e)](0.2)[_0x107866(0x1b9)](),_0x129db7=new p[(_0x107866(0x304))](St+a['Tools'][_0x107866(0x1ed)](B),{'pointsGroup':_0x3b9d5f,'fill':_0x3fc08d||p[_0x107866(0x1f4)](a[_0x107866(0xe8)][_0x107866(0x2ff)],0.2),'left':_0x4f9758,'top':_0x33c395,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x107866(0x264)](_0x129db7),this[_0x107866(0x116)][_0x107866(0x1be)](_0x129db7,b['TEXT_RANGE_LAYER_INDEX']);}[_0x41f8c8(0x2a0)](_0x5a9014){const _0x1af863=_0x5a9014[0x0],_0x17d0cf=_0x1af863[0x0],_0x55c3f8=_0x1af863[0x2],{x:_0x5d67e5,y:_0x1045d7}=_0x17d0cf,{x:_0x56e5f9,y:_0x32066f}=_0x55c3f8;return{'left':_0x5d67e5,'top':_0x1045d7,'width':_0x56e5f9-_0x5d67e5,'height':_0x32066f-_0x1045d7};}[_0x41f8c8(0x2ab)](){const _0x666ebc=_0x41f8c8,{scaleX:_0x2c19a4,scaleY:_0x38c83e}=this[_0x666ebc(0x116)][_0x666ebc(0x2db)]();return Math[_0x666ebc(0x1f1)](_0x2c19a4,_0x38c83e);}}var mt=Object['getOwnPropertyDescriptor'],Ct=(_0x361872,_0x2bd2d3,_0x21fbf7,_0x43fb4b)=>{for(var _0x5684ea=_0x43fb4b>0x1?void 0x0:_0x43fb4b?mt(_0x2bd2d3,_0x21fbf7):_0x2bd2d3,_0x1615c4=_0x361872['length']-0x1,_0x6079a0;_0x1615c4>=0x0;_0x1615c4--)(_0x6079a0=_0x361872[_0x1615c4])&&(_0x5684ea=_0x6079a0(_0x5684ea)||_0x5684ea);return _0x5684ea;},X=(_0x418a77,_0x4a2b73)=>(_0x1c4052,_0x40ca1e)=>_0x4a2b73(_0x1c4052,_0x40ca1e,_0x418a77);let ge=class extends a[_0x41f8c8(0x1f9)]{constructor(_0x1799a5,_0x1f5041,_0xe742cc,_0x36baec,_0x11e467){const _0x29349f=_0x41f8c8;super(),h(this,'_cursorShapes',[]),h(this,_0x29349f(0x144),[]),(this['_context']=_0x1799a5,this[_0x29349f(0x277)]=_0x1f5041,this[_0x29349f(0x1e8)]=_0xe742cc,this[_0x29349f(0x23e)]=_0x36baec,this['_themeService']=_0x11e467,this[_0x29349f(0x320)]());}[_0x41f8c8(0x320)](){const _0x466960=_0x41f8c8,_0x5861e7=this[_0x466960(0xcb)][_0x466960(0x20f)],_0x4e4330=this[_0x466960(0x277)];this[_0x466960(0x176)](d[_0x466960(0x156)]([this[_0x466960(0x1e8)]['getCollabCursors$'](_0x5861e7),this[_0x466960(0x130)][_0x466960(0x158)]])[_0x466960(0x167)]($[_0x466960(0x1ef)](([_0x4e5bd8,_0x9654a9])=>({'skeleton':_0x4e4330['getSkeleton'](),'cursors':[..._0x4e5bd8[_0x466960(0xcf)]()][_0x466960(0x1e9)](_0x58b273=>({..._0x58b273,'color':_0x9654a9[_0x58b273[_0x466960(0x185)]]}))})))[_0x466960(0x11e)](_0xd54b97=>{if(this['_removeCollabCursors'](),_0xd54b97){const {skeleton:_0x1fac88,cursors:_0x32146c}=_0xd54b97;this['_updateCollabCursors'](_0x1fac88,_0x32146c);}})),this[_0x466960(0xe9)](),this[_0x466960(0x302)]();}[_0x41f8c8(0x28d)](_0x20dfd7,_0x2c2208){const _0x43d1bd=_0x41f8c8,{scene:_0x2023ae,mainComponent:_0xc5821c}=this[_0x43d1bd(0xcb)],_0x904ae6=_0x2c2208[_0x43d1bd(0x1ef)](_0x5d9fdf=>new Ue(_0x5d9fdf,_0x2023ae,_0x20dfd7,_0xc5821c));this[_0x43d1bd(0x31a)]=_0x904ae6,this[_0x43d1bd(0x144)]=_0x2c2208;}[_0x41f8c8(0x279)](){const _0x451987=_0x41f8c8;this[_0x451987(0x1a4)]();const {scene:_0x30ea81,mainComponent:_0x1ba769}=this['_context'],_0x6c7ab5=this['_docSkeletonManagerService'][_0x451987(0x338)](),_0x36482e=this[_0x451987(0x144)][_0x451987(0x1ef)](_0x571ebd=>new Ue(_0x571ebd,_0x30ea81,_0x6c7ab5,_0x1ba769));this[_0x451987(0x31a)]=_0x36482e;}['_removeCollabCursors'](){const _0xb59938=_0x41f8c8;this[_0xb59938(0x31a)]['forEach'](_0x4e56e3=>_0x4e56e3['dispose']()),this[_0xb59938(0x31a)]=[];}['_initCommandExecutedListener'](){const _0x4f1700=_0x41f8c8,_0x5dc063=[b['SetDocZoomRatioOperation']['id']];this[_0x4f1700(0x176)](this['_commandService'][_0x4f1700(0x142)](_0x10ee1d=>{const _0x35409c=_0x4f1700;_0x5dc063['includes'](_0x10ee1d['id'])&&_0x10ee1d[_0x35409c(0x2b1)][_0x35409c(0x20f)]===this['_context'][_0x35409c(0x20f)]&&this[_0x35409c(0x279)]();}));}[_0x41f8c8(0xe9)](){const _0x4b8b3d=_0x41f8c8;this[_0x4b8b3d(0x176)](a['fromEventSubject'](this[_0x4b8b3d(0xcb)][_0x4b8b3d(0x1aa)][_0x4b8b3d(0x189)])['pipe']($[_0x4b8b3d(0x298)](_0x14df6b=>_0x14df6b['type']===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x4b8b3d(0x2b4)]),$['throttleTime'](0x10))[_0x4b8b3d(0x11e)](()=>{const _0x542392=_0x4b8b3d;this[_0x542392(0x279)]();}));}};ge=Ct([X(0x1,a[_0x41f8c8(0x32b)](Y[_0x41f8c8(0x1b0)])),X(0x2,a['Inject'](x)),X(0x3,a[_0x41f8c8(0x210)]),X(0x4,a['Inject'](a[_0x41f8c8(0x306)]))],ge);const pt=0x1,bt=1.5;class Ae extends p[_0x41f8c8(0x1c5)]{constructor(_0x463943,_0x464570){const _0x3cb5a5=_0x41f8c8;super(_0x463943,_0x464570),h(this,_0x3cb5a5(0x24a)),h(this,'_hovered',!0x1),h(this,_0x3cb5a5(0x29f)),h(this,'_name',''),h(this,_0x3cb5a5(0x297),'top'),h(this,_0x3cb5a5(0x26d)),(_0x464570&&this[_0x3cb5a5(0x182)](_0x464570),this[_0x3cb5a5(0x286)][_0x3cb5a5(0x1cf)](()=>this[_0x3cb5a5(0x182)]({'hovered':!0x0})),this[_0x3cb5a5(0xce)][_0x3cb5a5(0x1cf)](()=>this[_0x3cb5a5(0x182)]({'hovered':!0x1})));}['setShapeProps'](_0x3dde0e){const _0x164fa9=_0x41f8c8;var _0x39f9a9,_0x5d697c,_0x32dc3b,_0x583107,_0x163f7f,_0x50ae1f;this[_0x164fa9(0x24a)]=(_0x39f9a9=_0x3dde0e[_0x164fa9(0x185)])!=null?_0x39f9a9:this['_color'],this['_hovered']=(_0x5d697c=_0x3dde0e[_0x164fa9(0x2f3)])!=null?_0x5d697c:this[_0x164fa9(0x1ba)],this[_0x164fa9(0x29f)]=(_0x32dc3b=_0x3dde0e[_0x164fa9(0x1ab)])!=null?_0x32dc3b:this[_0x164fa9(0x29f)],this[_0x164fa9(0x202)]=(_0x583107=_0x3dde0e['name'])!=null?_0x583107:this[_0x164fa9(0x202)],this[_0x164fa9(0x297)]=(_0x163f7f=_0x3dde0e[_0x164fa9(0x126)])!=null?_0x163f7f:this[_0x164fa9(0x297)],this[_0x164fa9(0x26d)]=(_0x50ae1f=_0x3dde0e[_0x164fa9(0x261)])!=null?_0x50ae1f:this['_backgroundColor'],this[_0x164fa9(0xca)]({'width':_0x3dde0e[_0x164fa9(0x2e8)],'height':_0x3dde0e[_0x164fa9(0x12b)]});}[_0x41f8c8(0x310)](_0x1d2609){const _0x586340=_0x41f8c8,{row:_0x4fcfdf,column:_0x352686}=_0x1d2609;if(_0x4fcfdf>=this[_0x586340(0x29f)][_0x586340(0x2fc)]&&_0x4fcfdf<=this[_0x586340(0x29f)][_0x586340(0x163)]&&_0x352686>=this[_0x586340(0x29f)][_0x586340(0xf6)]&&_0x352686<=this[_0x586340(0x29f)][_0x586340(0x1b3)]){this[_0x586340(0x182)]({'hovered':!0x0});return;}this[_0x586340(0x182)]({'hovered':!0x1});}['triggerDblclick'](_0x102550){return!0x1;}['_draw'](_0x119253){const _0x3f5763=_0x41f8c8;p['Rect'][_0x3f5763(0x14d)](_0x119253,{'width':this[_0x3f5763(0x2e8)],'height':this[_0x3f5763(0x12b)],'strokeWidth':bt,'stroke':this[_0x3f5763(0x24a)],'evented':!0x1,'fill':this[_0x3f5763(0x26d)]}),this[_0x3f5763(0x1ba)]&&(_0x119253[_0x3f5763(0x186)](),_0x119253[_0x3f5763(0xd3)](0x1,0x0,0x0,0x1,this[_0x3f5763(0x2e8)],this[_0x3f5763(0x297)]==='bottom'?0x0:-0x14),te[_0x3f5763(0x14d)](_0x119253,{'text':this[_0x3f5763(0x202)],'color':this[_0x3f5763(0x24a)]}),_0x119253[_0x3f5763(0x32c)]());}}var Et=Object[_0x41f8c8(0x247)],Tt=(_0x4c2ab3,_0x2e457e,_0x14c673,_0x292b2d)=>{const _0x1152c1=_0x41f8c8;for(var _0x5e0ea7=_0x292b2d>0x1?void 0x0:_0x292b2d?Et(_0x2e457e,_0x14c673):_0x2e457e,_0x19edc4=_0x4c2ab3[_0x1152c1(0xd5)]-0x1,_0x5d338f;_0x19edc4>=0x0;_0x19edc4--)(_0x5d338f=_0x4c2ab3[_0x19edc4])&&(_0x5e0ea7=_0x5d338f(_0x5e0ea7)||_0x5e0ea7);return _0x5e0ea7;},ce=(_0x564294,_0x25dcfb)=>(_0x10ec9a,_0x404c4c)=>_0x25dcfb(_0x10ec9a,_0x404c4c,_0x564294);const Rt=0x1389;let Ie=class extends a[_0x41f8c8(0x1f9)]{constructor(_0x3130b0,_0x5e1ae9,_0x580d0e,_0x546204){const _0x42ceb2=_0x41f8c8;super(),h(this,'_cursors',new Set()),h(this,'_lastPointer',null),(this[_0x42ceb2(0xcb)]=_0x3130b0,this[_0x42ceb2(0x32d)]=_0x5e1ae9,this[_0x42ceb2(0x1e8)]=_0x580d0e,this[_0x42ceb2(0x130)]=_0x546204,this[_0x42ceb2(0x320)]());}[_0x41f8c8(0x320)](){const _0x114e1c=_0x41f8c8;this[_0x114e1c(0x32d)][_0x114e1c(0x331)][_0x114e1c(0x167)]($[_0x114e1c(0x2dc)](this['dispose$']),$[_0x114e1c(0x30d)](_0x53a722=>{const _0xeeeaaa=_0x114e1c;if(_0x53a722){const _0x56dbdb=_0x53a722[_0xeeeaaa(0x109)];return d[_0xeeeaaa(0x156)](this['_collabCursorController'][_0xeeeaaa(0x2fb)](this[_0xeeeaaa(0xcb)][_0xeeeaaa(0x20f)]),this[_0xeeeaaa(0x130)][_0xeeeaaa(0x158)])[_0xeeeaaa(0x167)]($[_0xeeeaaa(0x1ef)](([_0x3a77e1,_0x244a7c])=>{const _0x5a74f6=new Map();return _0x3a77e1['forEach']((_0x217303,_0x599abc)=>{const _0x127db2=_0xee62;if(_0x217303[_0x127db2(0x257)]===_0x56dbdb){const _0x9aa3da={..._0x217303};_0x9aa3da[_0x127db2(0x185)]=_0x244a7c[_0x217303[_0x127db2(0x185)]],_0x5a74f6[_0x127db2(0x238)](_0x599abc,_0x9aa3da);}}),{'skeleton':_0x53a722,'cursors':_0x5a74f6};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x429775,cursors:_0x214caa})=>{const _0xc4d9cb=_0x114e1c;this[_0xc4d9cb(0x1a4)](),_0x429775&&this[_0xc4d9cb(0x28d)](_0x429775,_0x214caa);}),this['_sheetSkeletonManagerService'][_0x114e1c(0x331)]['subscribe'](_0x55126e=>{const _0x5d4945=_0x114e1c;if(_0x55126e==null)return;const {skeleton:_0x49db05}=_0x55126e,{scene:_0x3fccb3}=this[_0x5d4945(0xcb)];_0x3fccb3[_0x5d4945(0x162)][_0x5d4945(0x1cf)](a['debounce'](_0x14e400=>{const _0x51e987=_0x5d4945;var _0x270b43,_0x30fad4;const {offsetX:_0x7cf8d5,offsetY:_0x3fdf36}=_0x14e400,{x:_0x525b5b,y:_0x1578c6}=_0x3fccb3[_0x51e987(0x132)](p[_0x51e987(0x1da)][_0x51e987(0x105)]([_0x7cf8d5,_0x3fdf36])),{scaleX:_0x204077,scaleY:_0x2a09aa}=_0x3fccb3[_0x51e987(0x2db)](),_0xd88acd=_0x3fccb3[_0x51e987(0x321)](p[_0x51e987(0x2f7)]['VIEW_MAIN']),_0x2d9750=_0x3fccb3[_0x51e987(0x216)](p[_0x51e987(0x1da)]['FromArray']([_0x525b5b,_0x1578c6]),_0xd88acd),_0x199007=_0x49db05[_0x51e987(0x255)](_0x7cf8d5,_0x3fdf36,_0x204077,_0x2a09aa,_0x2d9750);((_0x270b43=this[_0x51e987(0x18d)])==null?void 0x0:_0x270b43[_0x51e987(0x16e)])===_0x199007[_0x51e987(0x16e)]&&((_0x30fad4=this['_lastPointer'])==null?void 0x0:_0x30fad4[_0x51e987(0x291)])===_0x199007[_0x51e987(0x291)]||this[_0x51e987(0x144)][_0x51e987(0x221)](_0x5c2427=>{const _0x5d1ba9=_0x51e987;_0x5c2427[_0x5d1ba9(0x310)](_0x199007);});},0x64));});}[_0x41f8c8(0x28d)](_0x5230ba,_0x5fc2b2){const _0x4bb593=_0x41f8c8;var _0x1b8cd5;const _0x11581d=(_0x1b8cd5=this[_0x4bb593(0x32d)][_0x4bb593(0x141)]())==null?void 0x0:_0x1b8cd5[_0x4bb593(0x1c4)];if(!_0x11581d)return;const _0x29f1d6=this[_0x4bb593(0x26e)]();if(!_0x29f1d6)return;this[_0x4bb593(0x144)][_0x4bb593(0x221)](_0x5953d4=>{const _0x152672=_0x4bb593;_0x5953d4[_0x152672(0x319)]();});const {scene:_0x58fe77}=_0x29f1d6,_0x3c40fb=Ot(Array[_0x4bb593(0x2f4)](_0x5fc2b2['values']()))[_0x4bb593(0x1ef)](_0x5b5da9=>{const _0x3d738b=_0x4bb593,{color:_0x1cdaa9,range:_0x4d4a3d,name:_0x223788,selection:_0x58d188,sheetID:_0x43e49c}=_0x5b5da9,{startColumn:_0xae472d,startRow:_0x16f3d5,endColumn:_0x2debe2,endRow:_0x583ae9}=_0x4d4a3d,_0x4628a9=G[_0x3d738b(0x281)](_0x16f3d5,_0xae472d,_0x58fe77,_0x11581d),_0x26636f=G['getCoordByCell'](_0x583ae9,_0x2debe2,_0x58fe77,_0x11581d),{columnHeaderHeightAndMarginTop:_0x324aab}=_0x11581d,{startX:_0x39231b,startY:_0x17078d}=_0x4628a9,{endX:_0x427f59,endY:_0x1142ba}=_0x26636f,_0x266447=_0x427f59-_0x39231b,_0x1984db=_0x1142ba-_0x17078d,_0x45be3c={'labelPosition':_0x17078d-_0x324aab>=K?_0x3d738b(0x259):_0x3d738b(0x29a),'sheetID':_0x43e49c,'range':_0x4d4a3d,'color':_0x1cdaa9,'name':_0x223788,'selection':_0x58d188,'left':_0x39231b,'top':_0x17078d,'width':_0x266447,'height':_0x1984db,'evented':!0x1,'zIndex':Rt};return new Ae(_0x223788,_0x45be3c);});_0x58fe77['addObjects'](_0x3c40fb,pt),this[_0x4bb593(0x144)]=new Set(_0x3c40fb);}[_0x41f8c8(0x1a4)](){const _0x2e1366=_0x41f8c8;var _0x15d4f7;(_0x15d4f7=this[_0x2e1366(0x144)])==null||_0x15d4f7[_0x2e1366(0x221)](_0x375300=>_0x375300[_0x2e1366(0x1a7)]());}[_0x41f8c8(0x26e)](){const _0x32a17a=_0x41f8c8;return G['getSheetObject'](this['_context']['unit'],this[_0x32a17a(0xcb)]);}};Ie=Tt([ce(0x1,a[_0x41f8c8(0x32b)](G[_0x41f8c8(0x17f)])),ce(0x2,a[_0x41f8c8(0x32b)](x)),ce(0x3,a[_0x41f8c8(0x32b)](a['ThemeService']))],Ie);function Ot(_0x702f95){const _0x3f5bc5=_0x41f8c8,_0x19fa55=new Map();return _0x702f95['forEach'](_0x42745d=>{const _0x12128c=_0xee62;if(_0x19fa55[_0x12128c(0x271)](_0x42745d[_0x12128c(0x2c3)])){const _0x26b6aa=_0x19fa55[_0x12128c(0x328)](_0x42745d[_0x12128c(0x2c3)]);_0x26b6aa[_0x12128c(0x1f5)]+=',\x20'+_0x42745d['name'];}else _0x19fa55[_0x12128c(0x238)](_0x42745d[_0x12128c(0x2c3)],_0x42745d);}),Array['from'](_0x19fa55[_0x3f5bc5(0xcf)]());}var E=function(){const _0x2933df=_0x41f8c8;return E=Object[_0x2933df(0x16f)]||function(_0x36c5e9){const _0xff3d69=_0x2933df;for(var _0x2c2c33,_0x50a69f=0x1,_0x8a49c1=arguments[_0xff3d69(0xd5)];_0x50a69f<_0x8a49c1;_0x50a69f++){_0x2c2c33=arguments[_0x50a69f];for(var _0x1857fc in _0x2c2c33)Object[_0xff3d69(0x1df)][_0xff3d69(0x10f)][_0xff3d69(0x122)](_0x2c2c33,_0x1857fc)&&(_0x36c5e9[_0x1857fc]=_0x2c2c33[_0x1857fc]);}return _0x36c5e9;},E[_0x2933df(0x214)](this,arguments);},Dt=function(_0x4355e9,_0x547891){const _0x41438a=_0x41f8c8;var _0x5057bf={};for(var _0x4f9332 in _0x4355e9)Object[_0x41438a(0x1df)][_0x41438a(0x10f)][_0x41438a(0x122)](_0x4355e9,_0x4f9332)&&_0x547891['indexOf'](_0x4f9332)<0x0&&(_0x5057bf[_0x4f9332]=_0x4355e9[_0x4f9332]);if(_0x4355e9!=null&&typeof Object['getOwnPropertySymbols']==_0x41438a(0x2be)){for(var _0x42aaf7=0x0,_0x4f9332=Object['getOwnPropertySymbols'](_0x4355e9);_0x42aaf7<_0x4f9332['length'];_0x42aaf7++)_0x547891['indexOf'](_0x4f9332[_0x42aaf7])<0x0&&Object[_0x41438a(0x1df)][_0x41438a(0x168)][_0x41438a(0x122)](_0x4355e9,_0x4f9332[_0x42aaf7])&&(_0x5057bf[_0x4f9332[_0x42aaf7]]=_0x4355e9[_0x4f9332[_0x42aaf7]]);}return _0x5057bf;},be=P[_0x41f8c8(0x2aa)](function(_0x798f46,_0x3d7d40){const _0x360471=_0x41f8c8;var _0x97df7d=_0x798f46[_0x360471(0x230)],_0x32025f=_0x798f46['id'],_0x21d6c7=_0x798f46['className'],_0x20e689=_0x798f46[_0x360471(0x10a)],_0x4d9c8e=Dt(_0x798f46,[_0x360471(0x230),'id',_0x360471(0x169),_0x360471(0x10a)]),_0x23164b=_0x360471(0x2b5)['concat'](_0x32025f,'\x20')[_0x360471(0x18f)](_0x21d6c7||'')['trim'](),_0x20cedb=P[_0x360471(0x22a)]('_'[_0x360471(0x18f)](Pt()));return $e(_0x97df7d,''['concat'](_0x32025f),{'defIds':_0x97df7d[_0x360471(0x31c)],'idSuffix':_0x20cedb['current']},E({'ref':_0x3d7d40,'className':_0x23164b},_0x4d9c8e),_0x20e689);});function _0xee62(_0x367d0a,_0xa887ed){const _0x565ad2=_0x565a();return _0xee62=function(_0xee62b9,_0x2e0de8){_0xee62b9=_0xee62b9-0xc4;let _0x1fd876=_0x565ad2[_0xee62b9];return _0x1fd876;},_0xee62(_0x367d0a,_0xa887ed);}function $e(_0x593e8c,_0x569446,_0x1268e4,_0xcb4aeb,_0x9c5f5){const _0x5b2df1=_0x41f8c8;return P[_0x5b2df1(0x1cc)](_0x593e8c[_0x5b2df1(0x273)],E(E({'key':_0x569446},Ut(_0x593e8c,_0x1268e4,_0x9c5f5)),_0xcb4aeb),(Mt(_0x593e8c,_0x1268e4)[_0x5b2df1(0x1ad)]||[])[_0x5b2df1(0x1ef)](function(_0x51986c,_0x359274){const _0x4fd9bb=_0x5b2df1;return $e(_0x51986c,''['concat'](_0x569446,'-')[_0x4fd9bb(0x18f)](_0x593e8c[_0x4fd9bb(0x273)],'-')[_0x4fd9bb(0x18f)](_0x359274),_0x1268e4,void 0x0,_0x9c5f5);}));}function Ut(_0x5e625a,_0xeb9124,_0x5356de){const _0x589229=_0x41f8c8;var _0x22da70=E({},_0x5e625a[_0x589229(0x318)]);_0x5356de!=null&&_0x5356de['colorChannel1']&&_0x22da70['fill']==='colorChannel1'&&(_0x22da70[_0x589229(0x2a9)]=_0x5356de['colorChannel1']);var _0x1cd1bb=_0xeb9124[_0x589229(0x31c)];return!_0x1cd1bb||_0x1cd1bb[_0x589229(0xd5)]===0x0||(_0x5e625a[_0x589229(0x273)]===_0x589229(0x11d)&&_0x22da70[_0x589229(0x289)]&&(_0x22da70[_0x589229(0x289)]=_0x22da70[_0x589229(0x289)]+_0xeb9124[_0x589229(0x2c4)]),Object[_0x589229(0x115)](_0x22da70)[_0x589229(0x221)](function(_0x556d11){const _0x459a42=_0x589229;var _0x32688e=_0x556d11[0x0],_0x1cf441=_0x556d11[0x1];typeof _0x1cf441==_0x459a42(0x184)&&(_0x22da70[_0x32688e]=_0x1cf441['replace'](/url\(#(.*)\)/,_0x459a42(0x1b5)['concat'](_0xeb9124['idSuffix'],')')));})),_0x22da70;}function Mt(_0x403604,_0x5bc343){const _0x130afc=_0x41f8c8;var _0x31fc74,_0x4ac883=_0x5bc343[_0x130afc(0x31c)];return!_0x4ac883||_0x4ac883['length']===0x0?_0x403604:_0x403604['tag']===_0x130afc(0x234)&&(!((_0x31fc74=_0x403604[_0x130afc(0x1ad)])===null||_0x31fc74===void 0x0)&&_0x31fc74['length'])?E(E({},_0x403604),{'children':_0x403604[_0x130afc(0x1ad)][_0x130afc(0x1ef)](function(_0x56b0f7){const _0x553f91=_0x130afc;return typeof _0x56b0f7['attrs']['id']==_0x553f91(0x184)&&_0x4ac883&&_0x4ac883[_0x553f91(0x1c8)](_0x56b0f7[_0x553f91(0x318)]['id'])>-0x1?E(E({},_0x56b0f7),{'attrs':E(E({},_0x56b0f7['attrs']),{'id':_0x56b0f7[_0x553f91(0x318)]['id']+_0x5bc343['idSuffix']})}):_0x56b0f7;})}):_0x403604;}function Pt(){const _0x556840=_0x41f8c8;return Math[_0x556840(0x2a3)]()[_0x556840(0x1db)](0x24)[_0x556840(0x33e)](0x2,0x8);}be[_0x41f8c8(0x146)]=_0x41f8c8(0x22c);var Nt={'tag':_0x41f8c8(0x28c),'attrs':{'fill':_0x41f8c8(0x2b2),'viewBox':'0\x200\x2016\x2016','width':_0x41f8c8(0x262),'height':_0x41f8c8(0x262)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x41f8c8(0xd0),'attrs':{'stroke':_0x41f8c8(0x133),'d':_0x41f8c8(0x2a2),'strokeLinecap':_0x41f8c8(0x177),'strokeLinejoin':_0x41f8c8(0x177),'strokeWidth':1.2}}]},{'tag':_0x41f8c8(0x234),'attrs':{},'children':[{'tag':_0x41f8c8(0xd9),'attrs':{'id':_0x41f8c8(0x161)},'children':[{'tag':_0x41f8c8(0xd0),'attrs':{'fill':_0x41f8c8(0x1d8),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},xe=P['forwardRef'](function(_0x322c3a,_0x39401a){const _0x465ec8=_0x41f8c8;return P['createElement'](be,Object['assign']({},_0x322c3a,{'id':_0x465ec8(0x1d9),'ref':_0x39401a,'icon':Nt}));});xe[_0x41f8c8(0x146)]=_0x41f8c8(0x1b8);var wt={'tag':'svg','attrs':{'fill':_0x41f8c8(0x2b2),'viewBox':'0\x200\x2017\x2016','width':_0x41f8c8(0x262),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x41f8c8(0x2af)},'children':[{'tag':'path','attrs':{'stroke':_0x41f8c8(0x133),'d':_0x41f8c8(0x30e),'strokeLinecap':_0x41f8c8(0x177),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x41f8c8(0x234),'attrs':{},'children':[{'tag':_0x41f8c8(0xd9),'attrs':{'id':_0x41f8c8(0x150)},'children':[{'tag':_0x41f8c8(0xd0),'attrs':{'fill':_0x41f8c8(0x1d8),'d':_0x41f8c8(0x229),'transform':_0x41f8c8(0x2c7)}}]}]}],'defIds':[_0x41f8c8(0x150)]},je=P['forwardRef'](function(_0x24d17a,_0x4dd015){const _0x523c49=_0x41f8c8;return P[_0x523c49(0x1cc)](be,Object[_0x523c49(0x16f)]({},_0x24d17a,{'id':_0x523c49(0x2bf),'ref':_0x4dd015,'icon':wt}));});je[_0x41f8c8(0x146)]=_0x41f8c8(0x330);function ke(_0x504e9c){const _0x15ddac=_0x41f8c8;var _0x41ba5f,_0x2e49e7,_0x2d08ce='';if(typeof _0x504e9c==_0x15ddac(0x184)||typeof _0x504e9c=='number')_0x2d08ce+=_0x504e9c;else{if(typeof _0x504e9c=='object'){if(Array[_0x15ddac(0x222)](_0x504e9c)){var _0x260fd6=_0x504e9c[_0x15ddac(0xd5)];for(_0x41ba5f=0x0;_0x41ba5f<_0x260fd6;_0x41ba5f++)_0x504e9c[_0x41ba5f]&&(_0x2e49e7=ke(_0x504e9c[_0x41ba5f]))&&(_0x2d08ce&&(_0x2d08ce+='\x20'),_0x2d08ce+=_0x2e49e7);}else{for(_0x2e49e7 in _0x504e9c)_0x504e9c[_0x2e49e7]&&(_0x2d08ce&&(_0x2d08ce+='\x20'),_0x2d08ce+=_0x2e49e7);}}}return _0x2d08ce;}function Me(){const _0x4b1274=_0x41f8c8;for(var _0x2a1a50,_0x3fb3c8,_0x5caeaa=0x0,_0x9ca919='',_0x1eaf79=arguments[_0x4b1274(0xd5)];_0x5caeaa<_0x1eaf79;_0x5caeaa++)(_0x2a1a50=arguments[_0x5caeaa])&&(_0x3fb3c8=ke(_0x2a1a50))&&(_0x9ca919&&(_0x9ca919+='\x20'),_0x9ca919+=_0x3fb3c8);return _0x9ca919;}const Lt=_0x41f8c8(0x2bd),yt=_0x41f8c8(0x315),At=_0x41f8c8(0x2fa),$t='univer-online',xt=_0x41f8c8(0x1b2),H={'onlineStatusIcon':Lt,'onlineStatusTitle':yt,'onlineStatus':At,'online':$t,'offline':xt};function jt(_0x4ad3cb){const _0x4230a6=_0x41f8c8;switch(_0x4ad3cb){case u[_0x4230a6(0x135)][_0x4230a6(0x197)]:return _0x4230a6(0x200);case u['CollaborationStatus'][_0x4230a6(0x187)]:return _0x4230a6(0x249);case u[_0x4230a6(0x135)][_0x4230a6(0x27c)]:return _0x4230a6(0x119);case u[_0x4230a6(0x135)]['NOT_COLLAB']:return _0x4230a6(0x274);case u['CollaborationStatus'][_0x4230a6(0x100)]:case u['CollaborationStatus'][_0x4230a6(0x17b)]:return _0x4230a6(0x1e0);case u['CollaborationStatus'][_0x4230a6(0x312)]:case u['CollaborationStatus'][_0x4230a6(0xd4)]:return'collabStatus.synced';}}function Be(_0x5fccd8){const _0x1b7494=_0x41f8c8,{status$:_0x4ab502}=_0x5fccd8,_0x7f5a21=T[_0x1b7494(0x2cc)](_0x4ab502,u['CollaborationStatus'][_0x1b7494(0x1c9)]),_0x571f18=T[_0x1b7494(0x2d1)](a[_0x1b7494(0x239)]),_0x521676=T[_0x1b7494(0x2d1)](u['CollaborationSessionService']),_0x80988e=_0x7f5a21!==u[_0x1b7494(0x135)]['OFFLINE'],_0x557f5e=_0x571f18['t'](jt(_0x7f5a21)),_0x57ac12=Me(H[_0x1b7494(0x20b)],{[H['online']]:_0x80988e,[H[_0x1b7494(0x341)]]:!_0x80988e}),_0x19085a=_0x80988e?w['jsx'](je,{}):w[_0x1b7494(0x253)](xe,{}),_0x5e3eec=P[_0x1b7494(0x268)](()=>{_0x80988e||_0x521676['reconnect']();},[_0x80988e,_0x521676]);function _0x180af9(){const _0x2c097c=_0x1b7494;return w['jsxs'](_0x2c097c(0x270),{'className':Me(_0x57ac12,_0x2c097c(0xda)),'onClick':_0x5e3eec,'children':[w['jsx']('div',{'className':H[_0x2c097c(0x140)],'children':_0x19085a}),w[_0x2c097c(0x253)](_0x2c097c(0x270),{'className':H[_0x2c097c(0x2cb)],'children':_0x557f5e})]});}return _0x80988e?_0x180af9():w[_0x1b7494(0x253)](M['Tooltip'],{'title':_0x571f18['t'](_0x1b7494(0x280)),'children':_0x180af9()});}var kt=Object[_0x41f8c8(0x247)],Bt=(_0x5f27a5,_0x3817a3,_0x5e9461,_0x2d653f)=>{for(var _0x454009=_0x2d653f>0x1?void 0x0:_0x2d653f?kt(_0x3817a3,_0x5e9461):_0x3817a3,_0x484bf1=_0x5f27a5['length']-0x1,_0x1223b2;_0x484bf1>=0x0;_0x484bf1--)(_0x1223b2=_0x5f27a5[_0x484bf1])&&(_0x454009=_0x1223b2(_0x454009)||_0x454009);return _0x454009;},V=(_0x15d608,_0x1c1ca5)=>(_0xf1b9de,_0x252cbb)=>_0x1c1ca5(_0xf1b9de,_0x252cbb,_0x15d608);exports[_0x41f8c8(0x29c)]=class extends a[_0x41f8c8(0x1ac)]{constructor(_0x89a86a,_0x2e9a93,_0x558954,_0x17418b){const _0x524aa1=_0x41f8c8;super(),h(this,_0x524aa1(0x303),new d[(_0x524aa1(0x26a))](u[_0x524aa1(0x135)][_0x524aa1(0x1c9)])),(this[_0x524aa1(0x15a)]=_0x89a86a,this['_injector']=_0x2e9a93,this[_0x524aa1(0x145)]=_0x558954,this['_uiPartsService']=_0x17418b,this[_0x524aa1(0x263)](),this[_0x524aa1(0x10e)]());}['_initStatusListener'](){const _0xbfe118=_0x41f8c8;this[_0xbfe118(0x176)](this[_0xbfe118(0x15a)][_0xbfe118(0x30a)][_0xbfe118(0x167)](d[_0xbfe118(0x30d)](()=>{const _0xe64ef2=_0xbfe118,_0x25dc7c=this[_0xe64ef2(0x15a)]['getFocusedUnit']();return _0x25dc7c?this[_0xe64ef2(0x145)][_0xe64ef2(0x104)](_0x25dc7c['getUnitId']()):d['of'](null);}),d[_0xbfe118(0x30d)](_0x5b3302=>_0x5b3302?_0x5b3302[_0xbfe118(0x32e)]:d['of'](u[_0xbfe118(0x135)][_0xbfe118(0x1c9)])))['subscribe'](_0x5b6334=>{const _0x1cc842=_0xbfe118;this[_0x1cc842(0x303)][_0x1cc842(0xfa)](_0x5b6334);}));}[_0x41f8c8(0x263)](){const _0x4ad92e=_0x41f8c8;this[_0x4ad92e(0x176)](this[_0x4ad92e(0x19d)][_0x4ad92e(0x337)](T['BuiltInUIPart'][_0x4ad92e(0x23b)],()=>T[_0x4ad92e(0x33f)](Ht({'status$':this['_status$']['asObservable']()}),this[_0x4ad92e(0x236)])));}},exports['DesktopCollaborationStatusDisplayController']=Bt([V(0x0,a[_0x41f8c8(0x2b8)]),V(0x1,a[_0x41f8c8(0x32b)](a[_0x41f8c8(0x2c2)])),V(0x2,a[_0x41f8c8(0x32b)](u['CollaborationController'])),V(0x3,T[_0x41f8c8(0x25b)])],exports[_0x41f8c8(0x29c)]);function Ht(_0x24ad68){const {status$:_0x418179}=_0x24ad68;return function(){const _0x2cf1b8=_0xee62;return w[_0x2cf1b8(0x253)](Be,{'status$':_0x418179});};}var Wt=Object[_0x41f8c8(0x247)],Ft=(_0x3378f9,_0x2478a9,_0x4c0e34,_0x4b4b61)=>{for(var _0x482129=_0x4b4b61>0x1?void 0x0:_0x4b4b61?Wt(_0x2478a9,_0x4c0e34):_0x2478a9,_0x206e50=_0x3378f9['length']-0x1,_0x5452fa;_0x206e50>=0x0;_0x206e50--)(_0x5452fa=_0x3378f9[_0x206e50])&&(_0x482129=_0x5452fa(_0x482129)||_0x482129);return _0x482129;},A=(_0x368931,_0x3ed219)=>(_0x4d78e3,_0x371429)=>_0x3ed219(_0x4d78e3,_0x371429,_0x368931);let z=class extends a[_0x41f8c8(0x1ac)]{constructor(_0x58af05,_0x15faf7,_0xa89d25,_0x4e2a8f,_0x32c9e9,_0x41fc9a){const _0x23ed50=_0x41f8c8;super(),this[_0x23ed50(0x102)]=_0x58af05,this[_0x23ed50(0x20e)]=_0x15faf7,this[_0x23ed50(0x317)]=_0xa89d25,this[_0x23ed50(0x22d)]=_0x4e2a8f,this[_0x23ed50(0x151)]=_0x32c9e9,this['_localeService']=_0x41fc9a,this[_0x23ed50(0x1d3)](),this['_initEvent']();}[_0x41f8c8(0x1d3)](){const _0x5c2627=_0x41f8c8;this[_0x5c2627(0x176)](this[_0x5c2627(0x102)][_0x5c2627(0x2dd)](()=>{const _0x2444e6=_0x5c2627;if(this[_0x2444e6(0x20e)][_0x2444e6(0x28f)][_0x2444e6(0xc7)])return this[_0x2444e6(0x250)]['t'](_0x2444e6(0x172));}));}[_0x41f8c8(0x1fa)](){const _0x4d7e45=_0x41f8c8;this[_0x4d7e45(0x176)](this['_collaborationUIEventService'][_0x4d7e45(0x275)][_0x4d7e45(0x11e)](_0x123b6c=>{const _0x25ab9a=_0x4d7e45;_0x123b6c['id']===u[_0x25ab9a(0x206)][_0x25ab9a(0xf5)]&&this[_0x25ab9a(0x22d)][_0x25ab9a(0x17e)]({'type':M[_0x25ab9a(0x26b)][_0x25ab9a(0x1bf)],'content':this[_0x25ab9a(0x250)]['t'](_0x25ab9a(0x316))}),_0x123b6c['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this['_messageService'][_0x25ab9a(0x17e)]({'type':M['MessageType'][_0x25ab9a(0x1bf)],'content':this['_localeService']['t'](_0x25ab9a(0x18c))}),_0x123b6c['id']===u[_0x25ab9a(0x206)][_0x25ab9a(0x15f)]&&this[_0x25ab9a(0x151)][_0x25ab9a(0x17e)]({'title':this[_0x25ab9a(0x250)]['t']('permission.title'),'content':this[_0x25ab9a(0x250)]['t']('permission.content'),'type':'error','duration':0x0}),_0x123b6c['id']===u[_0x25ab9a(0x206)][_0x25ab9a(0x187)]&&this[_0x25ab9a(0x22d)][_0x25ab9a(0x17e)]({'type':M['MessageType'][_0x25ab9a(0x191)],'content':this[_0x25ab9a(0x250)]['t']('collaboration.closeRoom')+'('+_0x123b6c[_0x25ab9a(0x10b)]+')'}),_0x123b6c['id']===u[_0x25ab9a(0x206)][_0x25ab9a(0x252)]&&this['_messageService']['show']({'type':M[_0x25ab9a(0x26b)]['Warning'],'content':this[_0x25ab9a(0x250)]['t'](_0x123b6c[_0x25ab9a(0x10b)]||'')}),_0x123b6c['id']===u[_0x25ab9a(0x206)][_0x25ab9a(0x12c)]&&this[_0x25ab9a(0x22d)][_0x25ab9a(0x17e)]({'type':M[_0x25ab9a(0x26b)][_0x25ab9a(0x1bf)],'content':this[_0x25ab9a(0x250)]['t']('session.will-retry')}),_0x123b6c['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this[_0x25ab9a(0x22d)][_0x25ab9a(0x17e)]({'type':M[_0x25ab9a(0x26b)][_0x25ab9a(0x191)],'content':this[_0x25ab9a(0x250)]['t'](_0x25ab9a(0x28a))}),_0x123b6c['id']===u['CollaborationUIEventId'][_0x25ab9a(0x179)]&&this[_0x25ab9a(0x22d)]['show']({'type':M[_0x25ab9a(0x26b)][_0x25ab9a(0x191)],'content':this[_0x25ab9a(0x250)]['t'](_0x25ab9a(0xeb))});}));}};z=Ft([A(0x0,T[_0x41f8c8(0x32f)]),A(0x1,u[_0x41f8c8(0x2e6)]),A(0x2,a[_0x41f8c8(0x32b)](u['CollaborationUIEventService'])),A(0x3,T['IMessageService']),A(0x4,T[_0x41f8c8(0x1e2)]),A(0x5,a[_0x41f8c8(0x32b)](a[_0x41f8c8(0x239)]))],z);const Yt=_0x41f8c8(0x1a5),Pe={},Ee=a['createIdentifier'](_0x41f8c8(0x2c1));var Xt=Object[_0x41f8c8(0x247)],Vt=(_0x2a0199,_0xfe168a,_0x5d5894,_0x30e0af)=>{const _0x41e0f6=_0x41f8c8;for(var _0x582731=_0x30e0af>0x1?void 0x0:_0x30e0af?Xt(_0xfe168a,_0x5d5894):_0xfe168a,_0x34daf6=_0x2a0199[_0x41e0f6(0xd5)]-0x1,_0x5e9029;_0x34daf6>=0x0;_0x34daf6--)(_0x5e9029=_0x2a0199[_0x34daf6])&&(_0x582731=_0x5e9029(_0x582731)||_0x582731);return _0x582731;},W=(_0x4c4ed6,_0x3f529a)=>(_0x2f4b42,_0x5a8338)=>_0x3f529a(_0x2f4b42,_0x5a8338,_0x4c4ed6);exports[_0x41f8c8(0x19c)]=class extends a[_0x41f8c8(0x1f9)]{constructor(_0x382068,_0xb9a3ae,_0x1c60ea,_0x5dda13,_0x473789){const _0x1e4ca2=_0x41f8c8;super(),this[_0x1e4ca2(0x343)]=_0x382068,this['_logService']=_0xb9a3ae,this[_0x1e4ca2(0x23e)]=_0x1c60ea,this[_0x1e4ca2(0x2b7)]=_0x5dda13,_0x473789?_0x473789==null||_0x473789[_0x1e4ca2(0xd7)]()[_0x1e4ca2(0xe5)](()=>this[_0x1e4ca2(0x320)]()):(this[_0x1e4ca2(0x174)][_0x1e4ca2(0xed)](_0x1e4ca2(0x103),_0x1e4ca2(0x311)),this[_0x1e4ca2(0x320)]());}async[_0x41f8c8(0x320)](){const _0x17cf11=_0x41f8c8,_0x4166fa=this[_0x17cf11(0x343)][_0x17cf11(0x193)](_0x17cf11(0x178)),_0x5424c5=this[_0x17cf11(0x343)][_0x17cf11(0x193)](_0x17cf11(0x121)),_0x43b40d=this[_0x17cf11(0x343)][_0x17cf11(0x193)](_0x17cf11(0x17c));if(!_0x4166fa||!_0x5424c5){this[_0x17cf11(0x174)][_0x17cf11(0xed)](_0x17cf11(0x103),_0x17cf11(0x143));return;}const _0xc56f4=await this[_0x17cf11(0x2b7)][_0x17cf11(0x21f)](_0x4166fa,Number(_0x5424c5),_0x43b40d);_0xc56f4&&_0xc56f4 instanceof a['Workbook']&&this[_0x17cf11(0x24e)](_0xc56f4);}async[_0x41f8c8(0x24e)](_0x40e54a){const _0x253924=_0x41f8c8;await this['_updateSubUnitFromURLParams'](_0x40e54a),_0x40e54a['activeSheet$'][_0x253924(0x167)](d[_0x253924(0x2dc)](this[_0x253924(0x16a)]))[_0x253924(0x11e)](_0x3426f9=>{const _0x598955=_0x253924;_0x3426f9&&this[_0x598955(0x251)](_0x3426f9);}),this[_0x253924(0x343)][_0x253924(0x1af)][_0x253924(0x167)](d[_0x253924(0x2dc)](this['dispose$']))['subscribe'](()=>this[_0x253924(0x1cb)](_0x40e54a));}[_0x41f8c8(0x251)](_0x59c0e5,_0x2f8056=!0x1){const _0x1d36c5=_0x41f8c8,_0x14537a=this[_0x1d36c5(0x343)][_0x1d36c5(0x193)](_0x1d36c5(0x17c));_0x59c0e5[_0x1d36c5(0x1de)]()!==_0x14537a&&this['_urlService'][_0x1d36c5(0x2e9)]('subunit',_0x59c0e5['getSheetId'](),_0x2f8056);}async[_0x41f8c8(0x1cb)](_0x2f9980){const _0x2d16d3=_0x41f8c8;var _0x5a49cc;const _0x1a41ea=this[_0x2d16d3(0x343)][_0x2d16d3(0x193)](_0x2d16d3(0x17c));if(!_0x1a41ea||!_0x2f9980['getSheetBySheetId'](_0x1a41ea)){const _0x7707b3=_0x2f9980[_0x2d16d3(0x10c)]()[0x0],_0x4c1dc9=_0x2f9980[_0x2d16d3(0xef)](_0x7707b3);if(!_0x4c1dc9)return;this['_updateURLWithCurrentState'](_0x4c1dc9,!0x0),await this['_commandService']['executeCommand'](I[_0x2d16d3(0x225)]['id'],{'unitId':_0x2f9980[_0x2d16d3(0x2d4)](),'subUnitId':_0x7707b3});return;}((_0x5a49cc=_0x2f9980[_0x2d16d3(0x292)]())==null?void 0x0:_0x5a49cc[_0x2d16d3(0x1de)]())!==_0x1a41ea&&await this[_0x2d16d3(0x23e)][_0x2d16d3(0x1d5)](I[_0x2d16d3(0x225)]['id'],{'unitId':_0x2f9980[_0x2d16d3(0x2d4)](),'subUnitId':_0x1a41ea});}},exports[_0x41f8c8(0x19c)]=Vt([W(0x0,Ee),W(0x1,a[_0x41f8c8(0x307)]),W(0x2,a[_0x41f8c8(0x210)]),W(0x3,a[_0x41f8c8(0x32b)](u[_0x41f8c8(0x1e4)])),W(0x4,a[_0x41f8c8(0x2a7)](Je[_0x41f8c8(0x1d4)]))],exports['CollaborationDataLoaderController']);var Gt=Object['getOwnPropertyDescriptor'],qt=(_0x4db40c,_0x353da2,_0x22997f,_0x279e95)=>{for(var _0x4b3389=_0x279e95>0x1?void 0x0:_0x279e95?Gt(_0x353da2,_0x22997f):_0x353da2,_0x3f31a6=_0x4db40c['length']-0x1,_0x2653c1;_0x3f31a6>=0x0;_0x3f31a6--)(_0x2653c1=_0x4db40c[_0x3f31a6])&&(_0x4b3389=_0x2653c1(_0x4b3389)||_0x4b3389);return _0x4b3389;},le=(_0x4cb4ce,_0x4b253f)=>(_0x499edf,_0x44bff1)=>_0x4b253f(_0x499edf,_0x44bff1,_0x4cb4ce);let J=class{constructor(_0x209743,_0x39ca63,_0x1d114f){const _0x138aa9=_0x41f8c8;this[_0x138aa9(0x236)]=_0x209743,this['_transformService']=_0x39ca63,this['_renderManagerService']=_0x1d114f;}[_0x41f8c8(0x14a)](_0x1e0c0a){const _0x23c972=_0x41f8c8;this[_0x23c972(0x107)](_0x1e0c0a),this[_0x23c972(0xd2)](_0x1e0c0a);}[_0x41f8c8(0x12a)](_0x5a80b4){const _0x3053ab=_0x41f8c8,{unitID:_0x49bd8f}=_0x5a80b4,_0x33bd6e=this['_renderManagerService'][_0x3053ab(0x111)](_0x49bd8f)[_0x3053ab(0x24d)](b['DocIMEInputManagerService']),{redoCache:_0x33bddf}=_0x33bd6e[_0x3053ab(0xea)]();if(_0x33bddf['length']===0x0)return _0x5a80b4;let _0x45713a=a[_0x3053ab(0x223)][_0x3053ab(0x194)](_0x5a80b4['mutations'][0x0]);for(let _0x4268bd=0x0;_0x4268bd<_0x33bddf[_0x3053ab(0xd5)];_0x4268bd++){const _0x5eb383={'id':_0x3053ab(0x2f8),'params':{..._0x33bddf[_0x4268bd]}},_0x5eefb2=this[_0x3053ab(0x24b)][_0x3053ab(0x14e)](_0x45713a,_0x5eb383,!0x1);if(m['isTransformMutationFailure'](_0x5eefb2))throw _0x5eefb2[_0x3053ab(0x228)];_0x45713a=_0x5eefb2[_0x3053ab(0x16d)];}return{...a['Tools']['deepClone'](_0x5a80b4),'mutations':[_0x45713a]};}[_0x41f8c8(0x107)](_0x37323e){const _0x79866b=_0x41f8c8,{unitID:_0x55a00a}=_0x37323e,_0x422d69=this[_0x79866b(0xf1)]['getRenderById'](_0x55a00a)[_0x79866b(0x24d)](b['DocIMEInputManagerService']),{undoCache:_0x720ea,redoCache:_0x5d5a77}=_0x422d69['getUndoRedoMutationParamsCache']();if(_0x720ea[_0x79866b(0xd5)]===0x0||_0x5d5a77[_0x79866b(0xd5)]===0x0)return;const _0x5d39e6=[],_0x207b8d=[];let _0xfdc716=a['Tools'][_0x79866b(0x194)](_0x37323e[_0x79866b(0x2cd)][0x0]),_0x447d07=a[_0x79866b(0x223)][_0x79866b(0x194)](_0x37323e['mutations'][0x0]);for(let _0x2bc4c6=_0x720ea['length']-0x1;_0x2bc4c6>=0x0;_0x2bc4c6--){const _0x343938={'id':_0x79866b(0x2f8),'params':{..._0x720ea[_0x2bc4c6]}},_0x5e4f92={'id':_0x79866b(0x2f8),'params':{..._0x5d5a77[_0x2bc4c6]}},_0xaaef32=this[_0x79866b(0x24b)][_0x79866b(0x14e)](_0xfdc716,_0x343938,!0x1),_0x1869a4=this['_transformService'][_0x79866b(0x14e)](_0x447d07,_0x5e4f92,!0x1);if(m[_0x79866b(0x23c)](_0xaaef32))throw _0xaaef32[_0x79866b(0x228)];if(m[_0x79866b(0x23c)](_0x1869a4))throw _0x1869a4['error'];_0x5d39e6[_0x79866b(0x2e5)](_0xaaef32['m2Prime'][_0x79866b(0x2b1)]),_0x207b8d[_0x79866b(0x2e5)](_0x1869a4[_0x79866b(0x33b)][_0x79866b(0x2b1)]),_0xfdc716=_0xaaef32[_0x79866b(0x16d)],_0x447d07=_0x1869a4[_0x79866b(0x16d)];}_0x422d69[_0x79866b(0x127)]({'undoCache':_0x5d39e6,'redoCache':_0x207b8d});}[_0x41f8c8(0xd2)](_0x29b2d8){const _0x3edc93=_0x41f8c8,{unitID:_0x11ed0b}=_0x29b2d8,_0x141219=this[_0x3edc93(0xf1)]['getRenderById'](_0x11ed0b)['with'](b['DocIMEInputManagerService']),_0xa17d1a=_0x141219[_0x3edc93(0x21b)]();if(_0xa17d1a==null)return;const _0x40cf88=[{'id':_0x3edc93(0x2f8),'params':{'unitId':_0x29b2d8['unitID'],'actions':null,'textRanges':[_0xa17d1a]}}],_0xb33d17=this['_transformService']['transformMutationsWithChangeset'](_0x29b2d8,_0x40cf88);if(!m[_0x3edc93(0x265)](_0xb33d17))throw _0xb33d17[_0x3edc93(0x228)];const _0x1ac67b=_0xb33d17[_0x3edc93(0x33b)][0x0][_0x3edc93(0x2b1)][_0x3edc93(0x2c9)];Array['isArray'](_0x1ac67b)&&_0x1ac67b[_0x3edc93(0xd5)]&&_0x141219[_0x3edc93(0x2de)](_0x1ac67b[0x0]);}};J=qt([le(0x0,a[_0x41f8c8(0x32b)](a['Injector'])),le(0x1,m[_0x41f8c8(0x113)]),le(0x2,p[_0x41f8c8(0x240)])],J);var Kt=Object['getOwnPropertyDescriptor'],zt=(_0x264edf,_0x17937b,_0x322879,_0x2b802d)=>{const _0xf9e372=_0x41f8c8;for(var _0x4a951c=_0x2b802d>0x1?void 0x0:_0x2b802d?Kt(_0x17937b,_0x322879):_0x17937b,_0x5d5cfd=_0x264edf[_0xf9e372(0xd5)]-0x1,_0x468c87;_0x5d5cfd>=0x0;_0x5d5cfd--)(_0x468c87=_0x264edf[_0x5d5cfd])&&(_0x4a951c=_0x468c87(_0x4a951c)||_0x4a951c);return _0x4a951c;},he=(_0x280870,_0x2720d9)=>(_0x3d2087,_0x4d17fc)=>_0x2720d9(_0x3d2087,_0x4d17fc,_0x280870);let Z=class{constructor(_0xcc63c7,_0x3574ea,_0x4e63b0){const _0x719fd3=_0x41f8c8;this[_0x719fd3(0x236)]=_0xcc63c7,this['_transformService']=_0x3574ea,this[_0x719fd3(0x148)]=_0x4e63b0;}[_0x41f8c8(0x175)](_0x3eacab){const _0x3901f0=_0x41f8c8;this[_0x3901f0(0x18e)](_0x3eacab);}[_0x41f8c8(0x12a)](_0x495ae){const _0x2686ac=_0x41f8c8,{unitID:_0xf278bf}=_0x495ae,{collaboration:_0x4ce6a3}=this[_0x2686ac(0x148)][_0x2686ac(0x342)](_0xf278bf);if(_0x4ce6a3['length']===0x0)return _0x495ae;let _0x24e72a=a[_0x2686ac(0x223)][_0x2686ac(0x194)](_0x495ae[_0x2686ac(0x2cd)][0x0]);for(let _0x4fe185=0x0;_0x4fe185<_0x4ce6a3[_0x2686ac(0xd5)];_0x4fe185++){const _0x27cbd7={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4ce6a3[_0x4fe185][_0x2686ac(0x20f)],..._0x4ce6a3[_0x4fe185][_0x2686ac(0x305)]}},_0x1da982=this[_0x2686ac(0x24b)][_0x2686ac(0x14e)](_0x24e72a,_0x27cbd7,!0x1);if(m[_0x2686ac(0x23c)](_0x1da982))throw _0x1da982['error'];_0x24e72a=_0x1da982['m1Prime'];}return{...a[_0x2686ac(0x223)][_0x2686ac(0x194)](_0x495ae),'mutations':[_0x24e72a]};}[_0x41f8c8(0x18e)](_0x273a86){const _0x1296d5=_0x41f8c8,{unitID:_0x4fe656}=_0x273a86,{history:_0x18a953,collaboration:_0x18797f}=this[_0x1296d5(0x148)][_0x1296d5(0x342)](_0x4fe656);if(_0x18a953[_0x1296d5(0xd5)]===0x0&&_0x18797f['length']===0x0)return;const _0x163476=[],_0x55af08=[];let _0x2041f3=a[_0x1296d5(0x223)]['deepClone'](_0x273a86['mutations'][0x0]),_0x8f6479=a['Tools'][_0x1296d5(0x194)](_0x273a86['mutations'][0x0]);for(let _0x363a05=_0x18a953[_0x1296d5(0xd5)]-0x1;_0x363a05>=0x0;_0x363a05--){const _0x362d10={'id':_0x1296d5(0x2f8),'params':{'unitId':_0x18a953[_0x363a05][_0x1296d5(0x20f)],..._0x18a953[_0x363a05][_0x1296d5(0x1a0)]}},_0x3a8f4c={'id':_0x1296d5(0x2f8),'params':{'unitId':_0x18a953[_0x363a05][_0x1296d5(0x20f)],..._0x18a953[_0x363a05][_0x1296d5(0x305)]}},_0x407fb5=this[_0x1296d5(0x24b)][_0x1296d5(0x14e)](_0x2041f3,_0x362d10,!0x1),_0x12dce0=this['_transformService'][_0x1296d5(0x14e)](_0x8f6479,_0x3a8f4c,!0x1);if(m[_0x1296d5(0x23c)](_0x407fb5))throw _0x407fb5[_0x1296d5(0x228)];if(m[_0x1296d5(0x23c)](_0x12dce0))throw _0x12dce0['error'];_0x163476[_0x1296d5(0x2e5)]({..._0x18a953[_0x363a05],'undoState':_0x407fb5[_0x1296d5(0x33b)][_0x1296d5(0x2b1)],'redoState':_0x12dce0[_0x1296d5(0x33b)][_0x1296d5(0x2b1)]}),_0x2041f3=_0x407fb5['m1Prime'],_0x8f6479=_0x12dce0[_0x1296d5(0x16d)];}_0x2041f3=a[_0x1296d5(0x223)][_0x1296d5(0x194)](_0x273a86[_0x1296d5(0x2cd)][0x0]),_0x8f6479=a[_0x1296d5(0x223)][_0x1296d5(0x194)](_0x273a86[_0x1296d5(0x2cd)][0x0]);for(let _0x19d25e=_0x18797f[_0x1296d5(0xd5)]-0x1;_0x19d25e>=0x0;_0x19d25e--){const _0x45b0ac={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x18797f[_0x19d25e][_0x1296d5(0x20f)],..._0x18797f[_0x19d25e]['undoState']}},_0x50c7ce={'id':_0x1296d5(0x2f8),'params':{'unitId':_0x18797f[_0x19d25e][_0x1296d5(0x20f)],..._0x18797f[_0x19d25e][_0x1296d5(0x305)]}},_0x3813b4=this['_transformService'][_0x1296d5(0x14e)](_0x2041f3,_0x45b0ac,!0x1),_0x1600d5=this[_0x1296d5(0x24b)][_0x1296d5(0x14e)](_0x8f6479,_0x50c7ce,!0x1);if(m[_0x1296d5(0x23c)](_0x3813b4))throw _0x3813b4[_0x1296d5(0x228)];if(m[_0x1296d5(0x23c)](_0x1600d5))throw _0x1600d5[_0x1296d5(0x228)];_0x55af08[_0x1296d5(0x2e5)]({..._0x18797f[_0x19d25e],'undoState':_0x3813b4[_0x1296d5(0x33b)]['params'],'redoState':_0x1600d5[_0x1296d5(0x33b)][_0x1296d5(0x2b1)]}),_0x2041f3=_0x3813b4['m1Prime'],_0x8f6479=_0x1600d5[_0x1296d5(0x16d)];}this[_0x1296d5(0x148)][_0x1296d5(0x1b4)](_0x4fe656,{'history':_0x163476,'collaboration':_0x55af08});}};Z=zt([he(0x0,a[_0x41f8c8(0x32b)](a[_0x41f8c8(0x2c2)])),he(0x1,m[_0x41f8c8(0x113)]),he(0x2,a[_0x41f8c8(0x32b)](b['DocStateChangeManagerService']))],Z);var Jt=Object['getOwnPropertyDescriptor'],Zt=(_0x509a12,_0x302c1d,_0x4caaa9,_0x46cfda)=>{const _0x4ff67a=_0x41f8c8;for(var _0x2f5361=_0x46cfda>0x1?void 0x0:_0x46cfda?Jt(_0x302c1d,_0x4caaa9):_0x302c1d,_0x5d4fbc=_0x509a12[_0x4ff67a(0xd5)]-0x1,_0x30fe6d;_0x5d4fbc>=0x0;_0x5d4fbc--)(_0x30fe6d=_0x509a12[_0x5d4fbc])&&(_0x2f5361=_0x30fe6d(_0x2f5361)||_0x2f5361);return _0x2f5361;},Ne=(_0x6b474e,_0x45c051)=>(_0x1bfc48,_0x12683a)=>_0x45c051(_0x1bfc48,_0x12683a,_0x6b474e);let Q=class{constructor(_0x5127e7,_0x3459ed){const _0x23da9e=_0x41f8c8;this['_injector']=_0x5127e7,this[_0x23da9e(0x24b)]=_0x3459ed;}[_0x41f8c8(0x2a4)](_0x2b114d){const _0x2fd42e=_0x41f8c8;var _0x2d4403;const _0x2d5ec5=this[_0x2fd42e(0x236)][_0x2fd42e(0x328)](Y[_0x2fd42e(0x1f2)]),_0xb28dad=(_0x2d4403=_0x2d5ec5['getDocRanges']())!=null?_0x2d4403:[];if(_0xb28dad[_0x2fd42e(0xd5)]===0x0)return;const _0x103922=_0x2b114d[_0x2fd42e(0x19b)],_0x32182b=[{'id':_0x2fd42e(0x2f8),'params':{'unitId':_0x103922,'actions':null,'textRanges':_0xb28dad}}],_0x3d737e=this[_0x2fd42e(0x24b)][_0x2fd42e(0x16b)](_0x2b114d,_0x32182b);if(!m['isTransformMutationsWithChangesetSuccess'](_0x3d737e))throw _0x3d737e[_0x2fd42e(0x228)];const _0x8e78c5=_0x3d737e[_0x2fd42e(0x33b)][0x0][_0x2fd42e(0x2b1)][_0x2fd42e(0x2c9)];Array[_0x2fd42e(0x222)](_0x8e78c5)&&_0x8e78c5[_0x2fd42e(0xd5)]&&_0x2d5ec5['replaceDocRanges'](_0x8e78c5,{'unitId':_0x103922,'subUnitId':_0x103922},!0x1);}};Q=Zt([Ne(0x0,a['Inject'](a['Injector'])),Ne(0x1,m[_0x41f8c8(0x113)])],Q);var Qt=Object['getOwnPropertyDescriptor'],es=(_0x194f64,_0x543f48,_0x4f8a15,_0x42f8f6)=>{const _0x16ada8=_0x41f8c8;for(var _0x2afb8c=_0x42f8f6>0x1?void 0x0:_0x42f8f6?Qt(_0x543f48,_0x4f8a15):_0x543f48,_0x5504cd=_0x194f64[_0x16ada8(0xd5)]-0x1,_0x5ee75d;_0x5504cd>=0x0;_0x5504cd--)(_0x5ee75d=_0x194f64[_0x5504cd])&&(_0x2afb8c=_0x5ee75d(_0x2afb8c)||_0x2afb8c);return _0x2afb8c;},U=(_0x4aacb8,_0x5c1523)=>(_0x4eb319,_0x5b59bc)=>_0x5c1523(_0x4eb319,_0x5b59bc,_0x4aacb8);let ee=class extends a[_0x41f8c8(0x1ac)]{constructor(_0xd134f7,_0x1f7c62,_0x4feaaf,_0x5d4225,_0x4fee56,_0x290b46,_0x45e564,_0x4aa2a3){const _0x20930f=_0x41f8c8;super(),h(this,_0x20930f(0x303),new d[(_0x20930f(0x26a))](u[_0x20930f(0x135)][_0x20930f(0x1c9)])),(this[_0x20930f(0x148)]=_0xd134f7,this[_0x20930f(0x145)]=_0x1f7c62,this[_0x20930f(0xe6)]=_0x4feaaf,this[_0x20930f(0x266)]=_0x5d4225,this[_0x20930f(0x282)]=_0x4fee56,this[_0x20930f(0x2d0)]=_0x290b46,this[_0x20930f(0x22d)]=_0x45e564,this[_0x20930f(0x250)]=_0x4aa2a3,this[_0x20930f(0x21d)]());}[_0x41f8c8(0x21d)](){const _0x350c9f=_0x41f8c8;this['disposeWithMe'](this[_0x350c9f(0x145)][_0x350c9f(0x2f5)][_0x350c9f(0x11e)](_0x515af2=>{const _0x409ebe=_0x350c9f,_0x3042b9=this['_docStateChangeManagerService'][_0x409ebe(0x1d0)]['subscribe'](_0x4f53ab=>{const _0x271520=_0x409ebe;if(_0x4f53ab==null)return;const {unitId:_0x17e6ae,redoState:_0x706d96,commandId:_0x390cce}=_0x4f53ab;if(_0x17e6ae!==_0x515af2[_0x271520(0x19b)])return;const _0x11f3ee={'id':_0x390cce,'type':a[_0x271520(0x13b)][_0x271520(0x201)],'params':{'unitId':_0x17e6ae,'actions':_0x706d96[_0x271520(0x2f1)],'textRanges':null}};_0x515af2[_0x271520(0x23d)](_0x11f3ee);});if(_0x515af2['disposeWithMe'](_0x3042b9),_0x515af2 instanceof u[_0x409ebe(0x2ca)]){const _0x1376b1={'onTransformIME':_0x161534=>this[_0x409ebe(0xe6)][_0x409ebe(0x14a)](_0x161534),'onTransformState':_0x394e2f=>this[_0x409ebe(0x266)]['transformStateCache'](_0x394e2f),'onTransformSelections':_0x461017=>this[_0x409ebe(0x282)][_0x409ebe(0x2a4)](_0x461017),'onSyncEditingCollabCursor':_0x28676e=>this[_0x409ebe(0x2d0)]['syncEditingCollabCursor'](_0x28676e),'onTransformRemoteChangesetByIMECache':_0x3b1d62=>this[_0x409ebe(0xe6)]['transformRemoteChangeset'](_0x3b1d62),'onTransformRemoteChangesetByStateCache':_0x468693=>this[_0x409ebe(0x266)][_0x409ebe(0x12a)](_0x468693)};_0x515af2[_0x409ebe(0x152)](_0x1376b1);}}));}};ee=es([U(0x0,a[_0x41f8c8(0x32b)](b['DocStateChangeManagerService'])),U(0x1,a[_0x41f8c8(0x32b)](u['CollaborationController'])),U(0x2,a[_0x41f8c8(0x32b)](J)),U(0x3,a[_0x41f8c8(0x32b)](Z)),U(0x4,a[_0x41f8c8(0x32b)](Q)),U(0x5,a[_0x41f8c8(0x32b)](pe)),U(0x6,T[_0x41f8c8(0xe7)]),U(0x7,a[_0x41f8c8(0x32b)](a['LocaleService']))],ee);var ts=Object[_0x41f8c8(0x247)],ss=(_0xddd2e4,_0x387f6f,_0x1e4818,_0x494b9e)=>{const _0x79930f=_0x41f8c8;for(var _0x332690=_0x494b9e>0x1?void 0x0:_0x494b9e?ts(_0x387f6f,_0x1e4818):_0x387f6f,_0x56c9cd=_0xddd2e4[_0x79930f(0xd5)]-0x1,_0x569cc5;_0x56c9cd>=0x0;_0x56c9cd--)(_0x569cc5=_0xddd2e4[_0x56c9cd])&&(_0x332690=_0x569cc5(_0x332690)||_0x332690);return _0x332690;},_e=(_0x31326b,_0x5414ba)=>(_0x38994c,_0x515913)=>_0x5414ba(_0x38994c,_0x515913,_0x31326b);let me=class extends a[_0x41f8c8(0x1ac)]{constructor(_0x382157,_0x462ad5,_0x59923c){const _0x21bd2e=_0x41f8c8;super(),h(this,'_cachedData',new Map()),h(this,_0x21bd2e(0x284),new Map()),h(this,'_disabled',!0x1),(this['_configService']=_0x382157,this[_0x21bd2e(0x118)]=_0x462ad5,this['_revisionService']=_0x59923c);}[_0x41f8c8(0x1e6)](){const _0x57bf47=_0x41f8c8;this[_0x57bf47(0x125)]=!0x0;}[_0x41f8c8(0xcd)](){const _0x4c7039=_0x41f8c8;this[_0x4c7039(0x125)]=!0x1;}get[_0x41f8c8(0x28f)](){const _0x37c000=_0x41f8c8;return this[_0x37c000(0x284)];}[_0x41f8c8(0x1a7)](){const _0x2c21be=_0x41f8c8;this[_0x2c21be(0x171)]()['then'](()=>super[_0x2c21be(0x1a7)]());}async['loadOfflineData'](_0x46a75b){const _0xf89c0=_0x41f8c8;return this[_0xf89c0(0x125)]?null:this[_0xf89c0(0x118)][_0xf89c0(0x139)](u[_0xf89c0(0x14b)](_0x46a75b));}async[_0x41f8c8(0x1f0)](_0x3ab8f0,_0x2e5835){const _0x2b8ad5=_0x41f8c8;return!!this[_0x2b8ad5(0x118)]['setItem'](_0x3ab8f0,_0x2e5835);}[_0x41f8c8(0x1a6)](_0x2e6743,_0xc65d04,_0x151295,_0xb3dbce){const _0x2d194f=_0x41f8c8,_0x34e4a3=this[_0x2d194f(0x288)]['getCurrentRevOfUnit'](_0x2e6743);this[_0x2d194f(0x24c)][_0x2d194f(0x238)](_0x2e6743,{'unitID':_0x2e6743,'type':_0xc65d04,'awaitingChangeset':_0x151295,'mutations':_0xb3dbce,'rev':_0x34e4a3}),this[_0x2d194f(0x284)]['has'](_0x2e6743)||this[_0x2d194f(0x2cf)](_0x2e6743);}['_scheduleSaving'](_0x10624b){const _0x3cc1ac=_0x41f8c8,_0x2a8dc6=this[_0x3cc1ac(0x1dd)]();_0x2a8dc6===0x0?this[_0x3cc1ac(0x1d7)](_0x10624b):this[_0x3cc1ac(0x284)]['set'](_0x10624b,setTimeout(()=>this[_0x3cc1ac(0x1d7)](_0x10624b),_0x2a8dc6));}['_getSaveTimeout'](){const _0x25d4c3=_0x41f8c8;var _0x54e236;return(_0x54e236=this[_0x25d4c3(0x258)][_0x25d4c3(0x2ef)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x54e236:u[_0x25d4c3(0x1fb)];}['_saveCache'](_0x5084a3){const _0x839dc=_0x41f8c8,_0x799009=this[_0x839dc(0x284)][_0x839dc(0x328)](_0x5084a3);return _0x799009!==void 0x0&&window['clearTimeout'](_0x799009),this[_0x839dc(0x118)][_0x839dc(0x2ce)](u[_0x839dc(0x14b)](_0x5084a3),this[_0x839dc(0x24c)][_0x839dc(0x328)](_0x5084a3))['then'](()=>this[_0x839dc(0x284)][_0x839dc(0x203)](_0x5084a3));}async[_0x41f8c8(0x171)](){const _0xfcf7ab=_0x41f8c8,_0x4f6f9e=[];this[_0xfcf7ab(0x284)][_0xfcf7ab(0x221)]((_0x4c362b,_0x5f07d0)=>{const _0x298320=_0xfcf7ab;window[_0x298320(0x1bd)](_0x4c362b),_0x4f6f9e[_0x298320(0x264)](this[_0x298320(0x1d7)](_0x5f07d0)[_0x298320(0xe5)](()=>{this['_saveTaskMap']['delete'](_0x5f07d0);}));}),await Promise[_0xfcf7ab(0xf9)](_0x4f6f9e);}};me=ss([_e(0x0,a[_0x41f8c8(0x2c6)]),_e(0x1,a[_0x41f8c8(0x245)]),_e(0x2,a[_0x41f8c8(0x32b)](m[_0x41f8c8(0x14c)]))],me);class He extends a['RxDisposable']{constructor(){const _0x4d2f9e=_0x41f8c8;super(),h(this,_0x4d2f9e(0x1af)),this[_0x4d2f9e(0x1af)]=d['fromEvent'](window,_0x4d2f9e(0x309))['pipe'](d[_0x4d2f9e(0x2dc)](this[_0x4d2f9e(0x16a)]),d[_0x4d2f9e(0x1f6)](0x1),d[_0x4d2f9e(0x2ee)](void 0x0));}[_0x41f8c8(0x2e9)](_0x1743ea,_0x16daf5,_0x5a573b=!0x1){const _0x10e07a=_0x41f8c8,_0x454378=new URL(window[_0x10e07a(0x18b)]['href']);_0x454378['searchParams']['set'](_0x1743ea,_0x16daf5),_0x5a573b?window[_0x10e07a(0x27d)][_0x10e07a(0x1ca)]('','',_0x454378[_0x10e07a(0x1db)]()):window[_0x10e07a(0x27d)][_0x10e07a(0x1c3)]('','',_0x454378['toString']());}[_0x41f8c8(0x327)](_0x42f461,_0x46a793=!0x1){const _0x15e71f=_0x41f8c8,_0x3d0b2a=new URL(window[_0x15e71f(0x18b)][_0x15e71f(0x1e7)]);_0x3d0b2a[_0x15e71f(0x128)]['delete'](_0x42f461),_0x46a793?window[_0x15e71f(0x27d)]['replaceState']('','',_0x3d0b2a[_0x15e71f(0x1db)]()):window[_0x15e71f(0x27d)][_0x15e71f(0x1c3)]('','',_0x3d0b2a[_0x15e71f(0x1db)]());}[_0x41f8c8(0x193)](_0x2a8cd1){const _0x5278dc=_0x41f8c8;var _0x378ec3;return(_0x378ec3=new URL(window['location'][_0x5278dc(0x1e7)])['searchParams'][_0x5278dc(0x328)](_0x2a8cd1))!=null?_0x378ec3:void 0x0;}}var ns=Object[_0x41f8c8(0x244)],is=Object['getOwnPropertyDescriptor'],rs=(_0x35ad69,_0x55775c,_0x29e80a)=>_0x55775c in _0x35ad69?ns(_0x35ad69,_0x55775c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29e80a}):_0x35ad69[_0x55775c]=_0x29e80a,os=(_0xf6169f,_0x32ac1e,_0x274ca1,_0x506ee2)=>{const _0x2e33b3=_0x41f8c8;for(var _0x1cad45=_0x506ee2>0x1?void 0x0:_0x506ee2?is(_0x32ac1e,_0x274ca1):_0x32ac1e,_0x23c5d7=_0xf6169f[_0x2e33b3(0xd5)]-0x1,_0xf0fdbb;_0x23c5d7>=0x0;_0x23c5d7--)(_0xf0fdbb=_0xf6169f[_0x23c5d7])&&(_0x1cad45=_0xf0fdbb(_0x1cad45)||_0x1cad45);return _0x1cad45;},ue=(_0x14b022,_0x35653d)=>(_0x2fd38f,_0x15754c)=>_0x35653d(_0x2fd38f,_0x15754c,_0x14b022),as=(_0x9e0e57,_0x4326e3,_0x2328fa)=>rs(_0x9e0e57,_0x4326e3+'',_0x2328fa);const cs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x41f8c8(0x26c)]=class extends a[_0x41f8c8(0xc6)]{constructor(_0x2adb2f=Pe,_0xeaa64a,_0x326ade,_0xb6a428){const _0x534a8b=_0x41f8c8;super(),this['_config']=_0x2adb2f,this['_renderManagerService']=_0xeaa64a,this[_0x534a8b(0x236)]=_0x326ade,this[_0x534a8b(0x258)]=_0xb6a428;const {..._0x50f06b}=a[_0x534a8b(0x241)]({},Pe,this['_config']);this['_configService'][_0x534a8b(0x1dc)](Yt,_0x50f06b);}['onStarting'](){this['_registerDependencies'](),this['_initDependencies']();}['onRendered'](){this['_registerRenderDependencies']();}[_0x41f8c8(0x1bc)](){const _0x276bbf=_0x41f8c8;var _0x1cca8f;const _0x4bc7bf=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':He}],[q[_0x276bbf(0x33d)],{'useClass':q[_0x276bbf(0x19f)]}],[u['ILocalCacheService'],{'useClass':me}],[exports[_0x276bbf(0x29c)]],[ee],[z],[x],[fe],[exports[_0x276bbf(0x19c)]]];a[_0x276bbf(0x31f)](this[_0x276bbf(0x236)],a[_0x276bbf(0x2a5)](_0x4bc7bf,(_0x1cca8f=this['_config'])==null?void 0x0:_0x1cca8f[_0x276bbf(0x2e1)]));}[_0x41f8c8(0x180)](){const _0x5460ee=_0x41f8c8;this[_0x5460ee(0x176)](this[_0x5460ee(0xf1)][_0x5460ee(0x123)](a['UniverInstanceType'][_0x5460ee(0xf3)],[ge])),this[_0x5460ee(0x176)](this[_0x5460ee(0xf1)][_0x5460ee(0x123)](a[_0x5460ee(0x335)]['UNIVER_SHEET'],[Ie]));}['_initDependencies'](){const _0x21d8b4=_0x41f8c8;a[_0x21d8b4(0x30c)](this[_0x21d8b4(0x236)],[[x],[exports[_0x21d8b4(0x29c)]],[ee],[z],[exports[_0x21d8b4(0x19c)]]]);}},as(exports[_0x41f8c8(0x26c)],_0x41f8c8(0x149),cs),exports[_0x41f8c8(0x26c)]=os([a[_0x41f8c8(0x256)](u[_0x41f8c8(0x26f)]),ue(0x1,p[_0x41f8c8(0x240)]),ue(0x2,a['Inject'](a['Injector'])),ue(0x3,a[_0x41f8c8(0x2c6)])],exports[_0x41f8c8(0x26c)]);var ls=Object['getOwnPropertyDescriptor'],hs=(_0x410863,_0x1305b2,_0x2fe54a,_0x5e68e2)=>{for(var _0x38cab5=_0x5e68e2>0x1?void 0x0:_0x5e68e2?ls(_0x1305b2,_0x2fe54a):_0x1305b2,_0x420cbe=_0x410863['length']-0x1,_0x30ac60;_0x420cbe>=0x0;_0x420cbe--)(_0x30ac60=_0x410863[_0x420cbe])&&(_0x38cab5=_0x30ac60(_0x38cab5)||_0x38cab5);return _0x38cab5;},F=(_0x272f8a,_0x553aca)=>(_0x3b3992,_0x3e80fa)=>_0x553aca(_0x3b3992,_0x3e80fa,_0x272f8a);exports[_0x41f8c8(0x2ae)]=class extends u[_0x41f8c8(0xd1)]{constructor(_0x3d9c71,_0x57e007,_0x210060,_0x412d3a,_0x572f04){super(_0x3d9c71,_0x57e007,_0x210060,_0x412d3a,_0x572f04);}async[_0x41f8c8(0x2c5)](_0x35c146){const _0x5e17c1=_0x41f8c8,_0x2361eb=await this[_0x5e17c1(0xff)](),_0x529fd8=this[_0x5e17c1(0x2d9)](_0x35c146,_0x2361eb);return this[_0x5e17c1(0x1cd)](_0x529fd8);}[_0x41f8c8(0x2d9)](_0x3bd114,_0x567715){const _0x4ccc97=_0x41f8c8,_0x3ad88b=typeof window>'u'?new URL(_0x3bd114):new URL(_0x3bd114,window[_0x4ccc97(0x18b)][_0x4ccc97(0x164)]);_0x3ad88b[_0x4ccc97(0x128)][_0x4ccc97(0x238)](_0x4ccc97(0x209),_0x567715);const _0x4e7198=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4ccc97(0x18b)][_0x4ccc97(0x2f6)]);return _0x4e7198['get'](_0x4ccc97(0xd8))&&_0x3ad88b[_0x4ccc97(0x128)]['set'](_0x4ccc97(0xd8),_0x4e7198[_0x4ccc97(0x328)](_0x4ccc97(0xd8))),_0x3ad88b[_0x4ccc97(0x1db)]();}async[_0x41f8c8(0xff)](){const _0x122db8=_0x41f8c8;var _0x3bfe16,_0x21296c,_0x5ac4f5;const _0x162be9=this[_0x122db8(0x258)][_0x122db8(0x2ef)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x1ca246=(_0x3bfe16=_0x162be9==null?void 0x0:_0x162be9['wsSessionTicketUrl'])!=null?_0x3bfe16:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x5ac4f5=(_0x21296c=(await this[_0x122db8(0x1a1)][_0x122db8(0x328)](_0x1ca246,{'headers':{'Content-Type':_0x122db8(0x2eb)}}))['body'])==null?void 0x0:_0x21296c[_0x122db8(0x333)])!=null?_0x5ac4f5:'';}},exports['BrowserCollaborationSocketService']=hs([F(0x0,a['Inject'](a['Injector'])),F(0x1,a[_0x41f8c8(0x32b)](q[_0x41f8c8(0x33a)])),F(0x2,a[_0x41f8c8(0x2c6)]),F(0x3,a[_0x41f8c8(0x307)]),F(0x4,m['ISnapshotServerService'])],exports[_0x41f8c8(0x2ae)]);const we=0x7530,Le=_0x41f8c8(0x1ae);class _s extends a[_0x41f8c8(0x1ac)]{constructor(){const _0x38f320=_0x41f8c8;super(),h(this,_0x38f320(0x336),a[_0x38f320(0x223)]['generateRandomId']()),h(this,'_selfUnitIDs',new Set()),h(this,_0x38f320(0x232),new Map()),h(this,_0x38f320(0x147),null),h(this,_0x38f320(0x2d5),new Map()),h(this,_0x38f320(0x1b1),new Map()),this[_0x38f320(0x320)]();}[_0x41f8c8(0x1a7)](){const _0x168864=_0x41f8c8;super[_0x168864(0x1a7)](),this['_clearOtherTimers'][_0x168864(0x221)]((_0x524020,_0x3aa4b5)=>this['_removeClearOtherTimer'](_0x3aa4b5)),this[_0x168864(0x147)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x41f8c8(0x283)](_0x3f50ee){const _0x461491=_0x41f8c8;return this['_ensureSubject'](_0x3f50ee)[_0x461491(0x167)](d[_0x461491(0x276)]());}[_0x41f8c8(0x308)](_0x5c17fd){const _0x1a171e=_0x41f8c8;this[_0x1a171e(0x11c)]['size']===0x0&&this[_0x1a171e(0x190)](),this[_0x1a171e(0x11c)][_0x1a171e(0x195)](_0x5c17fd),this[_0x1a171e(0x2ea)]({'type':0x0,'memberID':this[_0x1a171e(0x336)],'unitIDs':[_0x5c17fd],'isForwarded':!0x1});}[_0x41f8c8(0x2ec)](_0x34a06f){const _0x3d2eaa=_0x41f8c8;this[_0x3d2eaa(0x11c)]['delete'](_0x34a06f),this['_selfUnitIDs'][_0x3d2eaa(0xc7)]===0x0&&this[_0x3d2eaa(0x147)]&&window['clearInterval'](this[_0x3d2eaa(0x147)]);}[_0x41f8c8(0x320)](){const _0x21a173=_0x41f8c8;this[_0x21a173(0x176)](a[_0x21a173(0x1b7)](d[_0x21a173(0x301)](window,_0x21a173(0x339))['subscribe'](_0x84878c=>{const _0x1c1edb=_0x21a173;if(_0x84878c[_0x1c1edb(0x2e7)]!==Le||!_0x84878c[_0x1c1edb(0x25d)])return;const _0x812a20=JSON[_0x1c1edb(0x1e5)](_0x84878c[_0x1c1edb(0x25d)]);this[_0x1c1edb(0x166)](_0x812a20);}))),window[_0x21a173(0x1c2)](_0x21a173(0x1f3),()=>this[_0x21a173(0x2ea)]({'type':0x1,'memberID':this[_0x21a173(0x336)],'unitIDs':Array[_0x21a173(0x2f4)](this[_0x21a173(0x11c)])}));}[_0x41f8c8(0x166)](_0x2591d9){const _0x4a9d51=_0x41f8c8;switch(_0x2591d9[_0x4a9d51(0x121)]){case 0x0:this['_handleJoinEvent'](_0x2591d9);break;case 0x1:this['_handleLeaveEvent'](_0x2591d9);break;case 0x2:this['_handleHeartbeatEvent'](_0x2591d9);break;}}['_handleJoinEvent'](_0x5bf538){const _0x2edac3=_0x41f8c8,{unitIDs:_0x475a65,memberID:_0x249642,isForwarded:_0x1ae0b6}=_0x5bf538;_0x475a65[_0x2edac3(0x221)](_0x1e625d=>{const _0x27a5e0=_0x2edac3;if(!_0x1ae0b6&&this['_unitOnClients'][_0x27a5e0(0x271)](_0x1e625d)&&this['_ensureSubject'](_0x1e625d)[_0x27a5e0(0xfa)](u[_0x27a5e0(0x13c)][_0x27a5e0(0xd6)]),!this[_0x27a5e0(0x232)]['has'](_0x1e625d)||!this[_0x27a5e0(0x232)][_0x27a5e0(0x328)](_0x1e625d)['has'](_0x249642)){const _0x37d4f0=this['_unitOnClients'][_0x27a5e0(0x328)](_0x1e625d)||new Set();_0x37d4f0['add'](_0x249642),this['_unitOnClients']['set'](_0x1e625d,_0x37d4f0),this[_0x27a5e0(0x269)](_0x249642);}}),_0x1ae0b6||this['_send']({'type':0x0,'memberID':this[_0x2edac3(0x336)],'unitIDs':[...this[_0x2edac3(0x11c)]],'isForwarded':!0x0});}[_0x41f8c8(0x269)](_0x1eaf90){const _0x31b4ea=_0x41f8c8;this[_0x31b4ea(0xc9)](_0x1eaf90);const _0x5cf20d=window['setTimeout'](()=>{const _0x59be08=_0x31b4ea;this[_0x59be08(0x232)][_0x59be08(0x221)](_0x500101=>{const _0x51f6ca=_0x59be08;_0x500101[_0x51f6ca(0x203)](_0x1eaf90);});},we*0x2);this[_0x31b4ea(0x2d5)][_0x31b4ea(0x238)](_0x1eaf90,_0x5cf20d);}['_removeClearOtherTimer'](_0xf4a9a4){const _0x3a8933=_0x41f8c8;if(this[_0x3a8933(0x2d5)][_0x3a8933(0x271)](_0xf4a9a4)){const _0x3dcab4=this[_0x3a8933(0x2d5)][_0x3a8933(0x328)](_0xf4a9a4);_0x3dcab4&&window[_0x3a8933(0x1bd)](_0x3dcab4),this[_0x3a8933(0x2d5)][_0x3a8933(0x238)](_0xf4a9a4,null);}}[_0x41f8c8(0x213)](_0x2626b8){const _0x189e8c=_0x41f8c8,{memberID:_0x4137e0,unitIDs:_0x5414ac}=_0x2626b8;_0x5414ac[_0x189e8c(0x221)](_0x10778f=>{const _0x17171a=_0x189e8c;var _0x136186;const _0x13a68d=this[_0x17171a(0x232)][_0x17171a(0x328)](_0x10778f);_0x13a68d&&(_0x13a68d[_0x17171a(0x203)](_0x4137e0),(_0x136186=this[_0x17171a(0x29b)](_0x10778f))==null||_0x136186['next'](_0x13a68d[_0x17171a(0xc7)]===0x0?u['UnitStatus']['NO_OTHER_CLIENTS_EDITING']:u[_0x17171a(0x13c)][_0x17171a(0xd6)]));}),this[_0x189e8c(0xc9)](_0x4137e0);}['_handleHeartbeatEvent'](_0x316921){const _0x372b76=_0x41f8c8;this[_0x372b76(0x269)](_0x316921[_0x372b76(0xec)]);}[_0x41f8c8(0x2ea)](_0x2e10b4){const _0x23d1c9=_0x41f8c8;localStorage['setItem'](Le,JSON[_0x23d1c9(0x204)](_0x2e10b4));}[_0x41f8c8(0x190)](){const _0x49af16=_0x41f8c8;this[_0x49af16(0x147)]=window['setInterval'](()=>{const _0x47f8cc=_0x49af16;this[_0x47f8cc(0x2ea)]({'type':0x2,'memberID':this['_id']});},we);}['_ensureSubject'](_0x4b810d){const _0x26310b=_0x41f8c8;return this[_0x26310b(0x1b1)][_0x26310b(0x271)](_0x4b810d)||this[_0x26310b(0x1b1)][_0x26310b(0x238)](_0x4b810d,new d[(_0x26310b(0x26a))](u[_0x26310b(0x13c)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x26310b(0x1b1)][_0x26310b(0x328)](_0x4b810d);}}var We=(_0x4c3e4e=>(_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x2b3)]=0x0]=_0x41f8c8(0x2b3),_0x4c3e4e[_0x4c3e4e['OK']=0x1]='OK',_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x287)]=0x2]=_0x41f8c8(0x287),_0x4c3e4e[_0x4c3e4e['PERMISSION_DENIED']=0x3]=_0x41f8c8(0x15f),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x2d8)]=0x4]=_0x41f8c8(0x2d8),_0x4c3e4e[_0x4c3e4e['UNAUTHENTICATED']=0x5]=_0x41f8c8(0x12d),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x314)]=0x6]=_0x41f8c8(0x314),_0x4c3e4e[_0x4c3e4e['INVALID_ARGUMENT']=0x7]=_0x41f8c8(0x154),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0xe2)]=0x8]=_0x41f8c8(0xe2),_0x4c3e4e[_0x4c3e4e['COMPLETION_FINISHED']=0x9]=_0x41f8c8(0x29d),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x2ba)]=0x1389]=_0x41f8c8(0x2ba),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x114)]=0x1771]=_0x41f8c8(0x114),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x1ea)]=0x1772]=_0x41f8c8(0x1ea),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x332)]=0x1773]=_0x41f8c8(0x332),_0x4c3e4e[_0x4c3e4e['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x323)]=0x1b5a]=_0x41f8c8(0x323),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x2b6)]=0x1b5b]=_0x41f8c8(0x2b6),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x313)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x136)]=0x1b5d]=_0x41f8c8(0x136),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x334)]=0x1f41]=_0x41f8c8(0x334),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x173)]=0x2329]=_0x41f8c8(0x173),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x31b)]=0x232a]=_0x41f8c8(0x31b),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x285)]=0x232b]=_0x41f8c8(0x285),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x207)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x15c)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0xdb)]=0x2711]=_0x41f8c8(0xdb),_0x4c3e4e[_0x4c3e4e['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x41f8c8(0x1f7),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x27b)]=0x2713]=_0x41f8c8(0x27b),_0x4c3e4e[_0x4c3e4e['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x41f8c8(0x2a8),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0xfe)]=0x2af9]=_0x41f8c8(0xfe),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x19a)]=-0x1]=_0x41f8c8(0x19a),_0x4c3e4e))(We||{}),us=Object[_0x41f8c8(0x247)],ds=(_0x4fa216,_0x500380,_0xc42333,_0x563a96)=>{for(var _0x16c608=_0x563a96>0x1?void 0x0:_0x563a96?us(_0x500380,_0xc42333):_0x500380,_0x3974d3=_0x4fa216['length']-0x1,_0x4d1b41;_0x3974d3>=0x0;_0x3974d3--)(_0x4d1b41=_0x4fa216[_0x3974d3])&&(_0x16c608=_0x4d1b41(_0x16c608)||_0x16c608);return _0x16c608;},de=(_0x39f10e,_0x31d73d)=>(_0x2871bb,_0x129418)=>_0x31d73d(_0x2871bb,_0x129418,_0x39f10e);exports['RemoteUniscriptService']=class extends a[_0x41f8c8(0x1ac)]{constructor(_0x430ca1,_0x29dcab,_0x21265e){const _0x1622ac=_0x41f8c8;super(),this[_0x1622ac(0xc8)]=_0x430ca1,this[_0x1622ac(0x1a1)]=_0x29dcab,this[_0x1622ac(0x258)]=_0x21265e;}async[_0x41f8c8(0xe3)](_0x15fc43,_0x3be7f4,_0x2cebeb,..._0x4eb22b){const _0x4331b0=_0x41f8c8;var _0x175ff5,_0x4a88f8,_0x51b924,_0x56a77a;const _0x4c0422=this['_instanceService'][_0x4331b0(0x2fe)]();if(!_0x4c0422)throw new Error(_0x4331b0(0x28b));const _0x372a6f=((_0x175ff5=this['_configService'][_0x4331b0(0x2ef)](u[_0x4331b0(0xfb)]))!=null?_0x175ff5:u[_0x4331b0(0x29e)])+'/'+_0x15fc43+_0x4331b0(0x267)+_0x3be7f4,_0x363cb9=new URL(window[_0x4331b0(0x18b)][_0x4331b0(0x1e7)]),_0x154729={'scriptId':_0x15fc43,'runId':(_0x4a88f8=_0x363cb9['searchParams'][_0x4331b0(0x328)](_0x4331b0(0xd8)))!=null?_0x4a88f8:'','function':_0x3be7f4,'unitId':_0x4c0422[_0x4331b0(0x2d4)](),'argsOfFunction':JSON[_0x4331b0(0x204)](_0x4eb22b),'invokeId':(_0x51b924=_0x2cebeb[_0x4331b0(0x20d)])!=null?_0x51b924:'','executionId':(_0x56a77a=_0x2cebeb['executionId'])!=null?_0x56a77a:''};try{const _0xdc74cc=await this[_0x4331b0(0x1a1)][_0x4331b0(0x21e)](_0x372a6f,{'body':_0x154729});return _0xdc74cc[_0x4331b0(0x13e)][_0x4331b0(0x228)]&&_0xdc74cc[_0x4331b0(0x13e)][_0x4331b0(0x228)][_0x4331b0(0xc4)]!==We['OK']?_0x4331b0(0x27a):_0xdc74cc[_0x4331b0(0x13e)][_0x4331b0(0x188)];}catch{return _0x4331b0(0x27a);}}},exports[_0x41f8c8(0x325)]=ds([de(0x0,a[_0x41f8c8(0x2b8)]),de(0x1,a[_0x41f8c8(0x32b)](q[_0x41f8c8(0x33a)])),de(0x2,a['IConfigService'])],exports[_0x41f8c8(0x325)]),exports[_0x41f8c8(0x1e1)]=Be,exports[_0x41f8c8(0x242)]=Ee,exports[_0x41f8c8(0x33c)]=Ae,exports[_0x41f8c8(0xf0)]=_s,exports[_0x41f8c8(0x254)]=He;
|
|
1
|
+
'use strict';const _0x5ee2b4=_0x2347;(function(_0x3df7a5,_0x409fbc){const _0x46dd6b=_0x2347,_0x2edcbb=_0x3df7a5();while(!![]){try{const _0x5496c9=parseInt(_0x46dd6b(0x25f))/0x1*(parseInt(_0x46dd6b(0x352))/0x2)+-parseInt(_0x46dd6b(0x31e))/0x3+parseInt(_0x46dd6b(0x1d7))/0x4+-parseInt(_0x46dd6b(0x254))/0x5+-parseInt(_0x46dd6b(0x17f))/0x6*(parseInt(_0x46dd6b(0x179))/0x7)+-parseInt(_0x46dd6b(0x251))/0x8+parseInt(_0x46dd6b(0x346))/0x9*(parseInt(_0x46dd6b(0x2fa))/0xa);if(_0x5496c9===_0x409fbc)break;else _0x2edcbb['push'](_0x2edcbb['shift']());}catch(_0x73a774){_0x2edcbb['push'](_0x2edcbb['shift']());}}}(_0x380c,0xb3a9e));var qe=Object[_0x5ee2b4(0x351)],Ke=(_0x448a77,_0x2c538a,_0x52d0ef)=>_0x2c538a in _0x448a77?qe(_0x448a77,_0x2c538a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x52d0ef}):_0x448a77[_0x2c538a]=_0x52d0ef,h=(_0x493a5f,_0xe4a442,_0x276319)=>Ke(_0x493a5f,typeof _0xe4a442!='symbol'?_0xe4a442+'':_0xe4a442,_0x276319);Object[_0x5ee2b4(0x351)](exports,Symbol[_0x5ee2b4(0x22b)],{'value':_0x5ee2b4(0x282)});const _=require(_0x5ee2b4(0x353)),a=require('@univerjs/core'),p=require(_0x5ee2b4(0x171)),q=require(_0x5ee2b4(0x16a)),b=require('@univerjs/docs-ui'),ze=require(_0x5ee2b4(0x2f8)),d=require(_0x5ee2b4(0x12c)),Y=require('@univerjs/docs'),m=require(_0x5ee2b4(0x2fc)),Te=require(_0x5ee2b4(0x21a)),I=require(_0x5ee2b4(0x35f)),$=require(_0x5ee2b4(0x292)),G=require(_0x5ee2b4(0x2b2)),w=require(_0x5ee2b4(0x306)),T=require(_0x5ee2b4(0x1bc)),M=require(_0x5ee2b4(0x1a1)),P=require(_0x5ee2b4(0x13a)),Je=require(_0x5ee2b4(0x20c));var Ze=Object[_0x5ee2b4(0x147)],Qe=(_0x2e0b6e,_0x29bcfd,_0x2ccf3b,_0x4e3729)=>{const _0x170963=_0x5ee2b4;for(var _0x44b714=_0x4e3729>0x1?void 0x0:_0x4e3729?Ze(_0x29bcfd,_0x2ccf3b):_0x29bcfd,_0x493175=_0x2e0b6e[_0x170963(0x21d)]-0x1,_0x1fe02d;_0x493175>=0x0;_0x493175--)(_0x1fe02d=_0x2e0b6e[_0x493175])&&(_0x44b714=_0x1fe02d(_0x44b714)||_0x44b714);return _0x44b714;},Re=(_0x44dfb1,_0x3b29ea)=>(_0x3f5da3,_0x3ce8fc)=>_0x3b29ea(_0x3f5da3,_0x3ce8fc,_0x44dfb1);let fe=class extends a[_0x5ee2b4(0x38e)]{constructor(_0x4adc42,_0x4af272){const _0x3805c8=_0x5ee2b4;super(),this[_0x3805c8(0x148)]=_0x4adc42,this['_imageIoService']=_0x4af272,this['_init']();}[_0x5ee2b4(0x1f5)](){const _0x2c99fb=_0x5ee2b4,_0xb9a539=this;this[_0x2c99fb(0x15d)](this[_0x2c99fb(0x148)][_0x2c99fb(0x339)]({'onBeforePasteImage':async _0x116349=>{const _0xf753df=_0x2c99fb,_0x42705a=await _0xb9a539[_0xf753df(0x217)][_0xf753df(0x1f1)](_0x116349);return _0x42705a?{'source':_0x42705a[_0xf753df(0x33c)],'imageSourceType':_0x42705a[_0xf753df(0x191)]}:null;}}));}};fe=Qe([Re(0x0,b['IDocClipboardService']),Re(0x1,ze[_0x5ee2b4(0x2b5)])],fe);const Oe=[_0x5ee2b4(0x21b),'jiqing500',_0x5ee2b4(0x32d),'red300',_0x5ee2b4(0x24b),_0x5ee2b4(0x19f)];class Ce extends a[_0x5ee2b4(0x261)]{constructor(){const _0x2a999c=_0x5ee2b4;super(...arguments),h(this,_0x2a999c(0x21f),new Map()),h(this,_0x2a999c(0x167),0x0);}[_0x5ee2b4(0x1e4)](_0x38ddbd){const _0x15402e=_0x5ee2b4;if(this['_assignedColors']['has'](_0x38ddbd))return this[_0x15402e(0x21f)][_0x15402e(0x287)](_0x38ddbd);const _0x26b963=Oe[this[_0x15402e(0x167)]];return this['_colorIndex']=(this[_0x15402e(0x167)]+0x1)%Oe[_0x15402e(0x21d)],this[_0x15402e(0x21f)][_0x15402e(0x379)](_0x38ddbd,_0x26b963),_0x26b963;}}function ye(_0x182ff4){let _0x5479dc='';for(const _0x43ab22 of _0x182ff4){const {startOffset:_0x1d4ed7,endOffset:_0x587f7c,isActive:_0x532475,rangeType:_0x2486c8,segmentId:_0x46d320,segmentPage:_0x267f47}=_0x43ab22;_0x5479dc['length']&&(_0x5479dc+=','),_0x5479dc+=_0x1d4ed7+':'+_0x587f7c+':'+(_0x532475?'1':'0')+':'+_0x2486c8+':'+_0x46d320+':'+_0x267f47;}return _0x5479dc;}function et(_0x590acd){const _0x11da47=_0x5ee2b4,_0x103335=_0x590acd[_0x11da47(0x2ef)](','),_0x4a8a1b=[];for(const _0xdba558 of _0x103335){const [_0x25f355,_0x2bb1e8,_0x98a7b2,_0x355bb9,_0x1183d2,_0x13c0a5]=_0xdba558[_0x11da47(0x2ef)](':');_0x4a8a1b[_0x11da47(0x382)]({'startOffset':Number(_0x25f355),'endOffset':Number(_0x2bb1e8),'collapsed':_0x25f355===_0x2bb1e8,'isActive':_0x98a7b2==='1','rangeType':_0x355bb9===a[_0x11da47(0x248)][_0x11da47(0x31c)]?a['DOC_RANGE_TYPE'][_0x11da47(0x31c)]:a[_0x11da47(0x248)][_0x11da47(0x1c9)],'segmentId':typeof _0x1183d2==_0x11da47(0x399)?String(_0x1183d2):'','segmentPage':Number(_0x13c0a5!=null?_0x13c0a5:-0x1)});}return _0x4a8a1b[_0x11da47(0x174)](_0x5dfdb6=>_0x5dfdb6[_0x11da47(0x2c7)])||(_0x4a8a1b[0x0][_0x11da47(0x2c7)]=!0x0),_0x4a8a1b;}class pe extends a[_0x5ee2b4(0x38e)]{constructor(){const _0x4ad0ae=_0x5ee2b4;super(...arguments),h(this,_0x4ad0ae(0x235),new d[(_0x4ad0ae(0x211))](null)),h(this,_0x4ad0ae(0x32b),this[_0x4ad0ae(0x235)][_0x4ad0ae(0x2af)]());}['syncEditingCollabCursor'](_0x45b14e){const _0x4b1d26=_0x5ee2b4,{unitID:_0x251e78,memberID:_0x36d779,textRanges:_0xa4741e}=_0x45b14e,_0x3585f0=ye(_0xa4741e);if(_0x3585f0==='')return;const _0x467a5c={'unitID':_0x251e78,'memberID':_0x36d779,'selection':_0x3585f0};this[_0x4b1d26(0x235)][_0x4b1d26(0x11d)](_0x467a5c);}}var tt=Object[_0x5ee2b4(0x147)],st=(_0x12dbab,_0x360cdd,_0x335c58,_0xd38702)=>{for(var _0x227a97=_0xd38702>0x1?void 0x0:_0xd38702?tt(_0x360cdd,_0x335c58):_0x360cdd,_0x17ac73=_0x12dbab['length']-0x1,_0x56dbdf;_0x17ac73>=0x0;_0x17ac73--)(_0x56dbdf=_0x12dbab[_0x17ac73])&&(_0x227a97=_0x56dbdf(_0x227a97)||_0x227a97);return _0x227a97;},N=(_0x134ba0,_0x1d414d)=>(_0x370eba,_0x50e39b)=>_0x1d414d(_0x370eba,_0x50e39b,_0x134ba0);const nt=0x12c,it=0x64;let Se=class extends a[_0x5ee2b4(0x38e)]{constructor(_0x30cec0,_0x22ddb9,_0x5b41d5,_0x4d3b36,_0x434adf,_0x58a09a,_0x3387a8,_0x174282,_0x54565a){const _0x1d0af6=_0x5ee2b4;super(),h(this,_0x1d0af6(0x2e3),!0x1),h(this,_0x1d0af6(0x1f5),!0x1),h(this,_0x1d0af6(0x2a4),new d[(_0x1d0af6(0x211))](new Map())),h(this,'cursorInfo$',this[_0x1d0af6(0x2a4)]['asObservable']()),h(this,_0x1d0af6(0x20e),new d[(_0x1d0af6(0x211))]([])),h(this,'roomMembers$',this[_0x1d0af6(0x20e)][_0x1d0af6(0x22a)](d[_0x1d0af6(0x33d)](nt))),h(this,'_updateLocalCursor',a[_0x1d0af6(0x310)](_0x308f02=>{const _0x1cb554=_0x1d0af6,_0x5e874d={'eventID':m[_0x1cb554(0x1b8)][_0x1cb554(0x1af)],'data':{'unitID':this[_0x1cb554(0x14c)],'memberID':this[_0x1cb554(0x324)]['getMemberID'](),'selection':ye(_0x308f02)}};this[_0x1cb554(0x324)][_0x1cb554(0x1d3)](_0x5e874d,this['unitID']);},it)),(this[_0x1d0af6(0x14c)]=_0x30cec0,this['_session']=_0x22ddb9,this[_0x1d0af6(0x170)]=_0x5b41d5,this['_colorAssignService']=_0x4d3b36,this[_0x1d0af6(0x290)]=_0x434adf,this[_0x1d0af6(0x26d)]=_0x58a09a,this[_0x1d0af6(0x284)]=_0x3387a8,this['_univerInstanceService']=_0x174282,this['_commandService']=_0x54565a);}get[_0x5ee2b4(0x1cd)](){const _0x36e431=_0x5ee2b4;return this[_0x36e431(0x2a4)][_0x36e431(0x1e9)]();}get[_0x5ee2b4(0x276)](){const _0x23f68d=_0x5ee2b4;return this[_0x23f68d(0x20e)][_0x23f68d(0x1e9)]();}[_0x5ee2b4(0x2a9)](){const _0x41b9b4=_0x5ee2b4;super['dispose'](),this[_0x41b9b4(0x2a4)]['next'](new Map()),this[_0x41b9b4(0x2a4)][_0x41b9b4(0x2a0)](),this['_roomMembers$'][_0x41b9b4(0x11d)]([]),this['_roomMembers$'][_0x41b9b4(0x2a0)]();}[_0x5ee2b4(0x2ea)](){const _0x56b1ad=_0x5ee2b4;this[_0x56b1ad(0x1f5)]||(this[_0x56b1ad(0x1f5)]=!0x0,this[_0x56b1ad(0x324)][_0x56b1ad(0x396)][_0x56b1ad(0x22a)](d[_0x56b1ad(0x1b9)](this['dispose$']))[_0x56b1ad(0x237)](_0xcd07ca=>{const _0x293fb8=_0x56b1ad;_0xcd07ca===_['SessionStatus']['ONLINE']?this['_toggleOnline']():this[_0x293fb8(0x332)]();}),this[_0x56b1ad(0x324)][_0x56b1ad(0x23c)][_0x56b1ad(0x22a)](d[_0x56b1ad(0x1b9)](this[_0x56b1ad(0x240)]))[_0x56b1ad(0x237)](_0x204535=>{const _0x47e9fd=_0x56b1ad,_0x1f667a=_0x204535[_0x47e9fd(0x1de)];_0x1f667a===m[_0x47e9fd(0x1b8)][_0x47e9fd(0x1af)]&&this[_0x47e9fd(0x2df)](_0x204535),_0x1f667a===m[_0x47e9fd(0x1b8)][_0x47e9fd(0x377)]&&this[_0x47e9fd(0x28d)](_0x204535);}),this[_0x56b1ad(0x15d)](this['_commandService'][_0x56b1ad(0x125)](_0x21e2fd=>{const _0x246802=_0x56b1ad,_0x3ad02c=_0x21e2fd[_0x246802(0x3ae)];_0x3ad02c!=null&&this['_online']&&_0x21e2fd['id']===Y[_0x246802(0x258)]['id']&&_0x3ad02c[_0x246802(0x2d3)]===this[_0x246802(0x14c)]&&_0x3ad02c[_0x246802(0x2e5)]===!0x1&&_0x3ad02c[_0x246802(0x15a)][_0x246802(0x21d)]>0x0&&this[_0x246802(0x25a)](_0x3ad02c[_0x246802(0x15a)]);})),this[_0x56b1ad(0x26d)][_0x56b1ad(0x32b)][_0x56b1ad(0x22a)](d[_0x56b1ad(0x1b9)](this['dispose$']))['subscribe'](_0x993c56=>{const _0x49d7a0=_0x56b1ad;if((_0x993c56==null?void 0x0:_0x993c56[_0x49d7a0(0x14c)])!==this[_0x49d7a0(0x14c)])return;const _0x593cf0={'eventID':m[_0x49d7a0(0x1b8)][_0x49d7a0(0x1af)],'data':_0x993c56};this[_0x49d7a0(0x2df)](_0x593cf0);}),this['disposeWithMe'](this[_0x56b1ad(0x1a4)][_0x56b1ad(0x125)](_0x564f82=>{const _0x5a45b0=_0x56b1ad;if(_0x564f82['params']==null)return;const _0x196982=_0x564f82[_0x5a45b0(0x3ae)];if(_0x564f82['id']!==Y[_0x5a45b0(0x30f)]['id']||_0x196982[_0x5a45b0(0x2d3)]!==this[_0x5a45b0(0x14c)])return;const _0x4234aa={'id':_0x5a45b0(0x3a3),'params':_0x196982},_0x12e43c=this['cursorInfo'];for(const [_0x22cc55,_0x15c9a4]of _0x12e43c){const _0x6278b2={'id':_0x5a45b0(0x3a3),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x15c9a4[_0x5a45b0(0x15a)]}},_0x525aae=this[_0x5a45b0(0x284)][_0x5a45b0(0x22f)](_0x4234aa,_0x6278b2,!0x1);if(m[_0x5a45b0(0x19d)](_0x525aae))throw _0x525aae[_0x5a45b0(0x172)];_0x12e43c[_0x5a45b0(0x379)](_0x22cc55,{..._0x15c9a4,'ranges':_0x525aae[_0x5a45b0(0x28e)][_0x5a45b0(0x3ae)][_0x5a45b0(0x2fb)]});}queueMicrotask(()=>{const _0x4569b5=_0x5a45b0;this[_0x4569b5(0x2a4)]['next'](_0x12e43c);});})));}[_0x5ee2b4(0x2df)](_0x5269a0){const _0x4e4451=_0x5ee2b4;var _0x158aeb,_0x419ed7;const {memberID:_0x39c401,selection:_0x4f856c}=_0x5269a0['data'],_0x44355e=et(_0x4f856c),_0x15f7da=(_0x419ed7=(_0x158aeb=this['_memberService'][_0x4e4451(0x26a)](this[_0x4e4451(0x14c)],_0x39c401))==null?void 0x0:_0x158aeb['name'])!=null?_0x419ed7:_0x4e4451(0x273),_0x294393={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x39c401),'name':_0x15f7da,'ranges':_0x44355e},_0x32ae49=this[_0x4e4451(0x1cd)];_0x32ae49[_0x4e4451(0x379)](_0x39c401,_0x294393),this[_0x4e4451(0x2a4)][_0x4e4451(0x11d)](_0x32ae49);}['_onCursorDelete'](_0x375775){const _0x256b91=_0x5ee2b4,{memberID:_0x229eb1}=_0x375775[_0x256b91(0x1e7)],_0x3142d6=this[_0x256b91(0x1cd)];_0x3142d6[_0x256b91(0x220)](_0x229eb1),this['_cursorInfo$'][_0x256b91(0x11d)](_0x3142d6);}[_0x5ee2b4(0x37a)](){const _0x13aad7=_0x5ee2b4;var _0x3ab07d;if(this[_0x13aad7(0x2e3)]=!0x0,((_0x3ab07d=this['_univerInstanceService'][_0x13aad7(0x2a5)]())==null?void 0x0:_0x3ab07d['getUnitId']())!==this[_0x13aad7(0x14c)])return;const _0x14e136=this[_0x13aad7(0x170)]['get'](Y[_0x13aad7(0x32e)])['getDocRanges']();Array['isArray'](_0x14e136)&&_0x14e136['length']>0x0&&this['_updateLocalCursor'](_0x14e136);}['_toggleOffline'](){const _0x1fe62c=_0x5ee2b4;this[_0x1fe62c(0x2e3)]=!0x1;}};Se=st([N(0x2,a[_0x5ee2b4(0x210)](a[_0x5ee2b4(0x227)])),N(0x3,a[_0x5ee2b4(0x210)](Ce)),N(0x4,a[_0x5ee2b4(0x210)](_[_0x5ee2b4(0x1ae)])),N(0x5,a[_0x5ee2b4(0x210)](pe)),N(0x6,m[_0x5ee2b4(0x39a)]),N(0x7,a[_0x5ee2b4(0x27c)]),N(0x8,a['ICommandService'])],Se);var rt=Object[_0x5ee2b4(0x147)],ot=(_0x2f67f9,_0x4be9f0,_0x13f821,_0xfe8491)=>{const _0x2c19e9=_0x5ee2b4;for(var _0x3dcd42=_0xfe8491>0x1?void 0x0:_0xfe8491?rt(_0x4be9f0,_0x13f821):_0x4be9f0,_0x44e90d=_0x2f67f9[_0x2c19e9(0x21d)]-0x1,_0x2ff816;_0x44e90d>=0x0;_0x44e90d--)(_0x2ff816=_0x2f67f9[_0x44e90d])&&(_0x3dcd42=_0x2ff816(_0x3dcd42)||_0x3dcd42);return _0x3dcd42;},y=(_0x292d5c,_0x19b89e)=>(_0x382f84,_0x5f4e37)=>_0x19b89e(_0x382f84,_0x5f4e37,_0x292d5c);const at=0x12c,ct=0x64,lt=()=>{let _0x4c1785=[],_0x289fa4=!0x1;return _0x304a15=>{const _0x11cca1=_0x2347;_0x4c1785[_0x11cca1(0x382)](_0x304a15),_0x289fa4||(_0x289fa4=!0x0,setTimeout(()=>{const _0x3ae9f4=_0x11cca1;_0x4c1785[_0x3ae9f4(0x294)](_0x31b5fb=>_0x31b5fb()),_0x4c1785=[],_0x289fa4=!0x1;}));};};let ve=class extends a[_0x5ee2b4(0x38e)]{constructor(_0x4a3bc2,_0x536b61,_0x1fd184,_0x5a7eac,_0x23457e,_0x466743,_0x4afc0b,_0x12bbb8){const _0x3b0551=_0x5ee2b4;super(),h(this,_0x3b0551(0x2e3),!0x1),h(this,_0x3b0551(0x1f5),!0x1),h(this,_0x3b0551(0x2a4),new d[(_0x3b0551(0x211))](new Map())),h(this,'cursorInfo$',this['_cursorInfo$'][_0x3b0551(0x2af)]()),h(this,'_roomMembers$',new d[(_0x3b0551(0x211))]([])),h(this,_0x3b0551(0x19b),this[_0x3b0551(0x20e)][_0x3b0551(0x22a)](d[_0x3b0551(0x33d)](at))),h(this,_0x3b0551(0x25a),a[_0x3b0551(0x310)]((_0x3ab4ed,_0x131bcc)=>{const _0x151fb6=_0x3b0551,_0x598b33={'eventID':m[_0x151fb6(0x1b8)][_0x151fb6(0x1af)],'data':{'unitID':this[_0x151fb6(0x14c)],'memberID':this[_0x151fb6(0x324)][_0x151fb6(0x35b)](),'selection':Te['serializeRangeWithSheet'](_0x3ab4ed,_0x131bcc['range'])}};this[_0x151fb6(0x324)]['send'](_0x598b33,this[_0x151fb6(0x14c)]);},ct)),(this[_0x3b0551(0x14c)]=_0x4a3bc2,this[_0x3b0551(0x324)]=_0x536b61,this['_injector']=_0x1fd184,this[_0x3b0551(0x1e8)]=_0x5a7eac,this[_0x3b0551(0x290)]=_0x23457e,this[_0x3b0551(0x178)]=_0x466743,this[_0x3b0551(0x1a4)]=_0x4afc0b,this['_refRangeService']=_0x12bbb8);}get[_0x5ee2b4(0x1cd)](){const _0x156a85=_0x5ee2b4;return this[_0x156a85(0x2a4)][_0x156a85(0x1e9)]();}get[_0x5ee2b4(0x276)](){const _0x50e5ae=_0x5ee2b4;return this[_0x50e5ae(0x20e)][_0x50e5ae(0x1e9)]();}[_0x5ee2b4(0x2a9)](){const _0x259f58=_0x5ee2b4;super[_0x259f58(0x2a9)](),this[_0x259f58(0x2a4)][_0x259f58(0x11d)](new Map()),this[_0x259f58(0x2a4)][_0x259f58(0x2a0)](),this[_0x259f58(0x20e)][_0x259f58(0x11d)]([]),this[_0x259f58(0x20e)][_0x259f58(0x2a0)]();}[_0x5ee2b4(0x2ea)](){const _0x1ade16=_0x5ee2b4;this[_0x1ade16(0x1f5)]||(this[_0x1ade16(0x1f5)]=!0x0,this[_0x1ade16(0x324)][_0x1ade16(0x396)][_0x1ade16(0x22a)](d['takeUntil'](this['dispose$']))[_0x1ade16(0x237)](_0x5a97fb=>{const _0x44d0b5=_0x1ade16;_0x5a97fb===_['SessionStatus'][_0x44d0b5(0x3a9)]?this['_toggleOnline']():this[_0x44d0b5(0x332)]();}),this[_0x1ade16(0x324)][_0x1ade16(0x23c)][_0x1ade16(0x22a)](d['takeUntil'](this[_0x1ade16(0x240)]))['subscribe'](_0xc8dc6d=>{const _0x3b0fdc=_0x1ade16,_0x58489b=_0xc8dc6d['eventID'];_0x58489b===m[_0x3b0fdc(0x1b8)][_0x3b0fdc(0x1af)]&&this[_0x3b0fdc(0x2df)](_0xc8dc6d),_0x58489b===m[_0x3b0fdc(0x1b8)][_0x3b0fdc(0x377)]&&this[_0x3b0fdc(0x28d)](_0xc8dc6d);}),this[_0x1ade16(0x2a7)](),this[_0x1ade16(0x15d)](this[_0x1ade16(0x1a4)][_0x1ade16(0x125)](_0x3b270e=>{const _0xf9174=_0x1ade16;if(this[_0xf9174(0x2e3)]&&_0x3b270e['id']===I[_0xf9174(0x1f6)]['id']&&_0x3b270e['params'][_0xf9174(0x2d3)]===this[_0xf9174(0x14c)]){const _0x522dbd=_0x3b270e[_0xf9174(0x3ae)];this[_0xf9174(0x25a)](_0x522dbd[_0xf9174(0x14d)],_0x522dbd[_0xf9174(0x395)][0x0]);}})));}['_onCursorUpdate'](_0x58f8c0){const _0x263244=_0x5ee2b4;var _0x146c35,_0x117b15;const {memberID:_0x3630c2,selection:_0x2afbfd}=_0x58f8c0[_0x263244(0x1e7)],{sheetName:_0x4e9306,range:_0x522f80}=Te[_0x263244(0x1a9)](_0x2afbfd),_0x5d0992={'name':(_0x117b15=(_0x146c35=this[_0x263244(0x290)][_0x263244(0x26a)](this[_0x263244(0x14c)],_0x3630c2))==null?void 0x0:_0x146c35['name'])!=null?_0x117b15:_0x263244(0x273),'range':this[_0x263244(0x1dc)](_0x4e9306,_0x522f80),'sheetID':_0x4e9306,'color':this[_0x263244(0x1e8)][_0x263244(0x1e4)](_0x3630c2),'selection':_0x2afbfd},_0x3a2ecc=this[_0x263244(0x1cd)];_0x3a2ecc[_0x263244(0x379)](_0x3630c2,_0x5d0992),this['_cursorInfo$']['next'](_0x3a2ecc);}[_0x5ee2b4(0x28d)](_0x4b898c){const _0x3ff8d3=_0x5ee2b4,{memberID:_0x356bf3}=_0x4b898c[_0x3ff8d3(0x1e7)],_0x4ccf93=this['cursorInfo'];_0x4ccf93[_0x3ff8d3(0x220)](_0x356bf3),this[_0x3ff8d3(0x2a4)][_0x3ff8d3(0x11d)](_0x4ccf93);}[_0x5ee2b4(0x1dc)](_0xa638a4,_0x3bebe4){const _0x3eb292=_0x5ee2b4;var _0x292988,_0x17f58b;const _0x2a7812=(_0x17f58b=(_0x292988=this[_0x3eb292(0x178)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x292988[_0x3eb292(0x1c8)](_0xa638a4))==null?void 0x0:_0x17f58b[_0x3eb292(0x20b)]();return(_0x2a7812==null?void 0x0:_0x2a7812[_0x3eb292(0x29c)](_0xe89df2=>a['Rectangle']['contains'](_0xe89df2,_0x3bebe4)))||_0x3bebe4;}[_0x5ee2b4(0x2a7)](){const _0x4472c7=_0x5ee2b4,_0x45ac20=new a[(_0x4472c7(0x2b6))](),_0x579833=lt(),_0x2c8727=()=>{const _0x2176e9=_0x4472c7;_0x45ac20[_0x2176e9(0x2a9)]();const _0x1cd417=(_0x2d1ab9,_0x5975f2,_0x14663c,_0xdb05bb)=>{const _0x169af5=_0x2176e9;let _0x47a0af=[];switch(_0x2d1ab9['id']){case I['EffectRefRangId'][_0x169af5(0x25b)]:{_0x47a0af=I[_0x169af5(0x164)](_0x2d1ab9,_0xdb05bb);break;}case I[_0x169af5(0x222)][_0x169af5(0x17c)]:{_0x47a0af=I[_0x169af5(0x137)](_0x2d1ab9,_0xdb05bb);break;}case I[_0x169af5(0x222)][_0x169af5(0x38a)]:{_0x47a0af=I[_0x169af5(0x288)](_0x2d1ab9,_0xdb05bb);break;}case I[_0x169af5(0x222)]['InsertRangeMoveDownCommandId']:{_0x47a0af=I[_0x169af5(0x1d5)](_0x2d1ab9,_0xdb05bb);break;}case I[_0x169af5(0x222)][_0x169af5(0x230)]:{_0x47a0af=I[_0x169af5(0x140)](_0x2d1ab9,_0xdb05bb);break;}case I['EffectRefRangId'][_0x169af5(0x2cd)]:{_0x47a0af=I[_0x169af5(0x12f)](_0x2d1ab9,_0xdb05bb);break;}case I['EffectRefRangId'][_0x169af5(0x1ec)]:{_0x47a0af=I[_0x169af5(0x388)](_0x2d1ab9,_0xdb05bb);break;}case I[_0x169af5(0x222)]['RemoveColCommandId']:{_0x47a0af=I[_0x169af5(0x218)](_0x2d1ab9,_0xdb05bb);break;}case I[_0x169af5(0x222)][_0x169af5(0x375)]:{_0x47a0af=I[_0x169af5(0x169)](_0x2d1ab9,_0xdb05bb);break;}}const _0x12cb27=I[_0x169af5(0x32c)](_0x47a0af,_0xdb05bb),_0xbd1c6e=this[_0x169af5(0x1cd)]['get'](_0x5975f2);if(_0xbd1c6e&&_0x12cb27){const _0x55459e={..._0xbd1c6e,'range':_0x12cb27};this[_0x169af5(0x1cd)]['set'](_0x5975f2,_0x55459e),_0x579833(()=>{const _0x323c9b=_0x169af5,_0x4bd548=this[_0x323c9b(0x12b)][_0x323c9b(0x286)](_0x12cb27,_0x4b0eef=>(_0x4bd548[_0x323c9b(0x2a9)](),_0x1cd417(_0x4b0eef,_0x5975f2,_0x14663c,_0x12cb27)));_0x45ac20[_0x323c9b(0x36d)](_0x4bd548);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x21d659,_0x262825)=>{const _0x157eb4=_0x2176e9,{range:_0x5b10ef,sheetID:_0x36d77d}=_0x21d659,_0x5e73d5=this[_0x157eb4(0x12b)][_0x157eb4(0x286)](_0x5b10ef,_0x423a52=>(_0x5e73d5[_0x157eb4(0x2a9)](),_0x1cd417(_0x423a52,_0x262825,_0x36d77d,_0x5b10ef)));_0x45ac20[_0x157eb4(0x36d)](_0x5e73d5);});};this[_0x4472c7(0x15d)](a[_0x4472c7(0x1ca)](this['_cursorInfo$'][_0x4472c7(0x237)](()=>{_0x2c8727();})));}['_toggleOnline'](){const _0x362be5=_0x5ee2b4;var _0x57ba7d,_0x2a341e;if(this[_0x362be5(0x2e3)]=!0x0,((_0x57ba7d=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x57ba7d[_0x362be5(0x2da)]())!==this[_0x362be5(0x14c)])return;const _0x338395=(_0x2a341e=this[_0x362be5(0x170)]['get'](I[_0x362be5(0x26b)])[_0x362be5(0x333)]())==null?void 0x0:_0x2a341e[0x0],_0x4c8a7a=this['_univerInstanceService'][_0x362be5(0x357)](a[_0x362be5(0x157)]['UNIVER_SHEET'])[_0x362be5(0x17b)]();_0x338395&&_0x4c8a7a&&this[_0x362be5(0x25a)](_0x4c8a7a[_0x362be5(0x184)](),_0x338395);}[_0x5ee2b4(0x332)](){const _0x7a61ad=_0x5ee2b4;this[_0x7a61ad(0x2e3)]=!0x1;}};ve=ot([y(0x2,a[_0x5ee2b4(0x210)](a[_0x5ee2b4(0x227)])),y(0x3,a['Inject'](Ce)),y(0x4,a[_0x5ee2b4(0x210)](_[_0x5ee2b4(0x1ae)])),y(0x5,a[_0x5ee2b4(0x27c)]),y(0x6,a['ICommandService']),y(0x7,a[_0x5ee2b4(0x210)](I[_0x5ee2b4(0x11e)]))],ve);var ht=Object[_0x5ee2b4(0x147)],ut=(_0x5bfea1,_0x4f9407,_0x2f0b05,_0x56df44)=>{const _0x4abb38=_0x5ee2b4;for(var _0x223b44=_0x56df44>0x1?void 0x0:_0x56df44?ht(_0x4f9407,_0x2f0b05):_0x4f9407,_0x3b7619=_0x5bfea1[_0x4abb38(0x21d)]-0x1,_0x4268aa;_0x3b7619>=0x0;_0x3b7619--)(_0x4268aa=_0x5bfea1[_0x3b7619])&&(_0x223b44=_0x4268aa(_0x223b44)||_0x223b44);return _0x223b44;},ie=(_0x1497ac,_0x36245a)=>(_0x36a28a,_0xbfd2e5)=>_0x36245a(_0x36a28a,_0xbfd2e5,_0x1497ac);let x=class extends a[_0x5ee2b4(0x38e)]{constructor(_0x5467bb,_0x58b667,_0x4af792){const _0x2a7f84=_0x5ee2b4;super(),h(this,_0x2a7f84(0x269),new Map()),h(this,_0x2a7f84(0x350),new d[(_0x2a7f84(0x308))]()),(this[_0x2a7f84(0x178)]=_0x5467bb,this[_0x2a7f84(0x170)]=_0x58b667,this[_0x2a7f84(0x2cb)]=_0x4af792,this[_0x2a7f84(0x1f5)]());}[_0x5ee2b4(0x2a9)](){const _0x8b6aab=_0x5ee2b4;super[_0x8b6aab(0x2a9)](),this[_0x8b6aab(0x350)][_0x8b6aab(0x2a0)](),this['_entities']['forEach'](_0x389a55=>_0x389a55[_0x8b6aab(0x2a9)]());}[_0x5ee2b4(0x13c)](_0x576d2e){const _0x249af7=_0x5ee2b4;return this[_0x249af7(0x269)][_0x249af7(0x1df)](_0x576d2e)?this[_0x249af7(0x269)]['get'](_0x576d2e)[_0x249af7(0x238)]:this[_0x249af7(0x350)]['pipe'](d[_0x249af7(0x29a)](_0x332cb9=>_0x332cb9[_0x249af7(0x14c)]===_0x576d2e),d[_0x249af7(0x359)](_0x26f65f=>_0x26f65f['cursorInfo$']));}[_0x5ee2b4(0x1f5)](){const _0x6069b9=_0x5ee2b4;this[_0x6069b9(0x178)][_0x6069b9(0x271)](a[_0x6069b9(0x157)]['UNIVER_SHEET'])[_0x6069b9(0x22a)](d[_0x6069b9(0x1b9)](this[_0x6069b9(0x240)]))[_0x6069b9(0x237)](async _0xaa7cbf=>{const _0x166dca=_0x6069b9,_0x29f40b=_0xaa7cbf[_0x166dca(0x2da)](),_0x4ba628=await this[_0x166dca(0x166)](_0x29f40b);this[_0x166dca(0x350)][_0x166dca(0x11d)](_0x4ba628),this[_0x166dca(0x269)][_0x166dca(0x379)](_0x29f40b,_0x4ba628);}),this[_0x6069b9(0x178)]['getTypeOfUnitAdded$'](a[_0x6069b9(0x157)]['UNIVER_DOC'])[_0x6069b9(0x22a)](d['takeUntil'](this[_0x6069b9(0x240)]))[_0x6069b9(0x22a)](d['filter'](_0x4eb97c=>!_0x4eb97c[_0x6069b9(0x2da)]()[_0x6069b9(0x299)]('__')))[_0x6069b9(0x237)](async _0x550a91=>{const _0x2e9b27=_0x6069b9,_0x4d6000=_0x550a91[_0x2e9b27(0x2da)](),_0x21bc6f=await this['_startDocCollabCursor'](_0x4d6000);this[_0x2e9b27(0x350)][_0x2e9b27(0x11d)](_0x21bc6f),this[_0x2e9b27(0x269)][_0x2e9b27(0x379)](_0x4d6000,_0x21bc6f);}),d[_0x6069b9(0x24f)](this['_univerInstanceService'][_0x6069b9(0x23b)](a[_0x6069b9(0x157)][_0x6069b9(0x2f6)]),this['_univerInstanceService'][_0x6069b9(0x23b)](a[_0x6069b9(0x157)][_0x6069b9(0x236)]))[_0x6069b9(0x22a)](d[_0x6069b9(0x1b9)](this[_0x6069b9(0x240)]))[_0x6069b9(0x237)](_0x5e790f=>{const _0x5acfd1=_0x6069b9,_0x4cfb7e=_0x5e790f[_0x5acfd1(0x2da)](),_0x30c0d0=this[_0x5acfd1(0x269)][_0x5acfd1(0x287)](_0x4cfb7e);_0x30c0d0&&(_0x30c0d0['dispose'](),this[_0x5acfd1(0x269)][_0x5acfd1(0x220)](_0x4cfb7e));});}async['_startSheetCollabCursor'](_0x5cfed5){const _0x5c8747=_0x5ee2b4,_0x2dccd7=await this[_0x5c8747(0x2cb)][_0x5c8747(0x2b9)](_0x5cfed5),_0x14b6fd=this[_0x5c8747(0x170)][_0x5c8747(0x12a)](ve,_0x5cfed5,_0x2dccd7);return _0x14b6fd['init'](),_0x14b6fd;}async[_0x5ee2b4(0x280)](_0x2e45cc){const _0x14b7da=_0x5ee2b4,_0xf638ef=await this[_0x14b7da(0x2cb)][_0x14b7da(0x2b9)](_0x2e45cc),_0x14dea7=this[_0x14b7da(0x170)][_0x14b7da(0x12a)](Se,_0x2e45cc,_0xf638ef);return _0x14dea7[_0x14b7da(0x2ea)](),_0x14dea7;}};function _0x380c(){const _0x2344f4=['hasOwnProperty','defs','_entities','getMember','SheetsSelectionsService','setAlpha','_syncEditingCollabCursorService','SHEET_VIEWPORT_KEY','body','ICommandService','getTypeOfUnitAdded$','YUUMI_UNABLE_LOAD_URL','Unknown\x20user','trim','removeParam','roomMembers','Workbook','displayName','sessionTicket','univer-flex\x20univer-items-center','Failed','IUniverInstanceService','OnLineSingle','_transformHistoryAndStateStack','TEXT_RANGE_LAYER_INDEX','_startDocCollabCursor','saveOfflineData','Module','touchDependencies','_transformService','ticket','registerRefRange','get','handleInsertCol','collabStatus.synced','onLocalMutation','_localCacheService','Optional','_onCursorDelete','m2Prime','collab-rect-range-','_memberService','on-line-single','rxjs/operators','executeCommand','forEach','translate(.97)','_themeService','WebBrowserSingleActiveUnitService','isArray','startsWith','filter','name','find','SUBMIT_CHANGESET_TIMEOUT','currentColor','current','complete','on-line-single_clip0_910_349','clearTimeout','CollaborationUIEventId','_cursorInfo$','getFocusedUnit','generateRandomId','_onRefRangeChange','permission.content','dispose','M0\x200H16V16H0z','fillText','CLOSE_ROOM','_transformUndoRedoStack','unit','asObservable','object','saveTaskMap','@univerjs/sheets-ui','YUUMI_SUBSCRIPTION_NOT_FOUND','_hovered','IImageIoService','DisposableCollection','setShapeProps','_anchor','requireSession','activeSheet$','function','runOnServer','SYNCED','entityInit$','with','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','round','registerDependencies','runId','CollaborationStatusDisplay','_handleLeaveEvent','IMessageService','isActive','_updateCollabCursors','storage','ILogService','_collabSessionService','ENSURE_SNAPSHOT_EXECUTION','InsertRowCommandId','_docTransformStateCacheService','transformStateCache','addEventListener','_cachedData','RegularPolygon','unitId','disableLocalCache','_handleEvent','getUnitStatus$','_anchorDot','AWAITING','univer-online','getUnitId','_docSkeletonManagerService','docStateChange$','getDocRanges','_context','_onCursorUpdate','actions','clipPath','text','_online','RemoteUniscriptService','isEditing','UNDEFINED','OffLineSingle','className','_ensureSubject','init','focused$','unsubscribe','startColumn','_handleHeartbeatEvent','split','APPLY_NON_SEQUENTIAL_REVISION','DesktopCollaborationStatusDisplayController','_scene','_doCreateSocket','setStateCache','CONNECTOR_DATA_TOO_LARGE','UNIVER_DOC','online','@univerjs/drawing','WebSocketService','55910wtYXeB','textRanges','@univerjs-pro/collaboration','_getScale','UniverIcon','_initDependencies','collabStatus.fetchMiss','[CollaborationDataLoaderController]','stringify','width','setItem','UNAUTHENTICATED','react/jsx-runtime','transformMutationsWithChangeset','Subject','PY_RUNTIME_SCRIPT_ERROR','_collabCursorController','CollaborationSocketService','fromEvent','univer-online-status-title','useDependency','RichTextEditingMutation','debounce','collaboration.single-unit.warning','Warning','CollaborationController','_scheduleClearOtherTimer','updateOfflineData','getAncestorScale','NO_OTHER_CLIENTS_EDITING','_scheduleHeartbeat','measureText','CollaborationSessionService','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','TEXT','m1Prime','1742745enmHkj','_initCommandExecutedListener','getOffsetConfig','_registerRenderDependencies','INotificationService','moveTo','_session','YUUMI_RATE_OVER_LIMIT','getVpScrollXYInfoByPosToVp','getRelativeToViewportCoord','_drawTextRange','_docTransformSelectionsService','memberID','collabCursorState$','runRefRangeMutations','verdancy600','DocSelectionManagerService','NOT_FOUND','getCoordByCell','shareReplay','_toggleOffline','getCurrentSelections','range','pushState','univer-online-status','univer-online-status-icon','beginPath','addClipboardHook','_name','defIds','source','debounceTime','Tooltip','toRgbString','setUndoRedoMutationParamsCache','IRenderManagerService','deepClone','icon','SNAPSHOT_INVALID_SNAPSHOT','ILocalCacheService','4239eGfNrv','/run/','fillStyle','getCollabEntity$','FromArray','includes','DocStateChangeManagerService','drawWith','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_initStatusComponent','_entityInit$','defineProperty','177058gNpZIv','@univerjs-pro/collaboration-client','CONFLICT','mask','_lastPointer','getCurrentUnitForType','startRow','switchMap','children','getMemberID','FETCH_MISS','transformIMECache','fill','@univerjs/sheets','TOO_MANY_REQUESTS','_instanceService','type','ISnapshotServerService','offline','setParam','forwardRef','subscribeEvent','show','getUndoRedoMutationParamsCache','urlChange$','from','lineTo','add','location','INVALID_ARGUMENT','transformByState','IConfigService','idSuffix','column','Shape','RemoveRowCommandId','application/json','USERS_LEAVE','ILocalStorageService','set','_toggleOnline','COLORS','exhaustSavingTask','onPointerEnter$','_docSkeleton','backgroundColor','endRow','Error','push','createIdentifier','NOT_COLLAB','UniverCollaborationClientUIPlugin','YUUMI_URL_COL_OUT_OF_RANGE','setConfig','handleMoveRange','_getSaveTimeout','InsertColCommandId','mutations','_id','addHandlerCallback','RxDisposable','jsx','_textBubble','pluginName','INTERNAL_ERROR','height','_getSessionTicket','selections','sessionStatus$','replace','size','string','ITransformService','onlineStatusIcon','LOCAL_CACHE_INTERVAL_KEY','search','_unitOnClients','ISocketService','JOIN_ROOM_FAILED','_document','onPointerMove$','doc.mutation.rich-text-editing','_removeCollabCursors','_collaborationUIEventService','_config','_range','clearInterval','ONLINE','_saveCache','hovered','_hover','_messageService','params','_backgroundColor','sheetID','PENDING','onRendered','next','RefRangeService','ACTIVE_UNIT_EVENT_CHANNEL','_httpService','off-line-single_clip0_910_343','_localStorageService','distinctUntilChanged','transformSelections','onCommandExecuted','transformRemoteChangeset','getActiveRange','svg','random','createInstance','_refRangeService','rxjs','createElement','IRemoteInstanceService','handleInsertRow','_drawRectRange','CommandType','_hideTimer','isTransformMutationsWithChangesetSuccess','selection','VIEW_MAIN','getUnhiddenWorksheets','handleDeleteRangeMoveUp','TRANSFORM_CHANGE_OBSERVABLE_TYPE','indexOf','react','Tools','getCollabCursors$','SOCKET_FAILED','resize','_removeClearOtherTimer','handleInsertRangeMoveRight','session.will-retry','getStateCache','debug','[RemoteUniscriptService]:\x20no\x20focused\x20unit','...','useCallback','getOwnPropertyDescriptor','_docClipboardService','loadOfflineData','getRenderById','COMPLETION_FINISHED','unitID','subUnitId','url(#$1','font','session.collaboration-timeout','setTimeout','arc','rgba(255,\x20255,\x20255,\x200.01)','_send','IBeforeCloseService','getOwnPropertySymbols','UniverInstanceType','tag','createSocket','ranges','_docSyncEditingCollabCursorService','_clearOtherTimers','disposeWithMe','flatMap','href','_cursors','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','black','_color','handleDeleteRangeMoveLeft','collaboration-client.offline-data-not-saved','_startSheetCollabCursor','_colorIndex','_render','handleIRemoveRow','@univerjs/network','_urlService','UnitStatus','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_docStateChangeManagerService','mapTo','_injector','@univerjs/engine-render','error','_disabled','some','xlink:href','_status$','_saveTaskMap','_univerInstanceService','14xeXAPi','propertyIsEnumerable','getActiveSheet','DeleteRangeMoveUpCommandId','subunit','DataLoaderService','3998820eqBEzH','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','onMouseMove','APPLY_REJECT','sheetId','getSheetId','history','_localeService','collabStatus.notCollab','parse','undoState','_renderManagerService','DocIMEInputManagerService','IURLService','ColorKit','extend','CollaborationUIEventService','_labelPosition','imageSourceType','closePath','Rect','_shapes','row','univerjs-icon\x20univerjs-icon-','_getSheetObject','0\x200\x2017\x2016','div','uni.network.url-service','roomMembers$','getCurrentRevOfUnit','isTransformMutationFailure','_initStatusListener','gold400','0\x200\x2016\x2016','@univerjs/design','combineLatest','origin','_commandService','getCellPositionByOffset','entries','SetWorksheetActivateCommand','CollaborationDataLoaderController','deserializeRangeWithSheet','#fff','_collaborationController','max','BrowserCollaborationSocketService','MemberService','UPDATE_CURSOR','wsSessionTicketUrl','restore','save','LICENSE_DISTRO_REJECTED','DocSkeletonManagerService','_docTransformIMECacheService','labelPosition','_handleHover','CollaborationEvent','takeUntil','toString','number','@univerjs/ui','newValue','currentTheme$','_initEvent','_draw','_eventUnsubscribe','override','getConfig','fillRule','CHANGESET_REVISION_CONFILICT','onPointerLeave$','fromEventSubject','getSheetBySheetId','RECT','toDisposable','_setupBeforeClosingHandler','Plugin','cursorInfo','_beforeCloseService','disposeUnit','assign','evenodd','replaceState','send','WebURLService','handleInsertRangeMoveDown','_notificationService','4893276uhdEii','unload','hide','mergeOverrideWithDependencies','_unitStatus','_getMergeRange','UniverCollaborationClientPlugin','eventID','has','_uiPartsService','_getAnchorBounding','unshift','APPLY_DUPLICATED','assignAColorForMemberID','map','SOCKET_FAILED_RETRY','data','_colorAssignService','getValue','_updateSubUnitFromURLParams','invokeId','MoveRangeCommandId','PERMISSION_DENIED','bottom','_cursorShapes','Vector2','saveImage','attrs','HTTPService','NodePositionConvertToRectRange','_init','SetSelectionsOperation','none','_createSocketURL','collab-client.tooltip.reconnect','_heartbeatTimer','off-line-single','color','top','reconnect','univer-offline','_transformPreviousActiveRange','LocaleService','concat','_initEntityListener','addObject','min','currentSkeleton$','MessageType','OTHER_CLIENT_EDITING','HEADER_MENU','code','getMergeData','@univerjs/rpc','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_roomMembers$','getColor','Inject','BehaviorSubject','_initResize','useObservable','useRef','getLocalCacheKey','1em','_imageIoService','handleIRemoveCol','throttleTime','@univerjs/engine-formula','purple300','jsxs','length','searchParams','_assignedColors','delete','popstate','EffectRefRangId','setActiveRange','path','MUTATION','SetDocZoomRatioOperation','Injector','prototype','CollaborationStatus','pipe','toStringTag','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','_dataLoaderService','_cursor','transformMutation','InsertRangeMoveRightCommandId','then','collab-text-anchor-','_revisionService','colorChannel1','_collabCursorState$','UNIVER_SHEET','subscribe','cursorInfo$','_sheetSkeletonManagerService','_scheduleSaving','getTypeOfUnitDisposed$','event$','LICENSE_MAX_UNITS_EXCEEDED','transform','collaboration.closeRoom','dispose$','SheetSkeletonManagerService','editingUnit','ThemeService','_setupSubUnitSync','_handleJoinEvent','getParam','registerBeforeClose','DOC_RANGE_TYPE','AWAITING_WITH_PENDING','values','blue400','replaceDocRanges','OTHER_CLIENTS_EDITING','LICENSE_EXPORT_SIZE_EXCEEDED','merge','call','10122344hJNrsY','_refreshCollabCursors','_selfUnitIDs','593440jRaEbm','getSkeleton','_configService','_logService','SetTextSelectionsOperation','_updateURLWithCurrentState','_updateLocalCursor','DeleteRangeMoveLeftCommandId','SNAPSHOT_HAS_BEEN_REMOVED','post','_drawAnchor','2uIgvSY','substring','Disposable','_registerDependencies','status$','findNodePositionByCharIndex','getCurrent','redoState'];_0x380c=function(){return _0x2344f4;};return _0x380c();}x=ut([ie(0x0,a[_0x5ee2b4(0x27c)]),ie(0x1,a[_0x5ee2b4(0x210)](a[_0x5ee2b4(0x227)])),ie(0x2,a[_0x5ee2b4(0x210)](_['CollaborationSessionService']))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function dt(_0x34d8fe,_0x14de72){const _0x17f36a=_0x5ee2b4;let {radius:_0x5c5bc7,width:_0x28d354,height:_0x4dec18}=_0x14de72;_0x5c5bc7=_0x5c5bc7!=null?_0x5c5bc7:0x0,_0x28d354=_0x28d354!=null?_0x28d354:0x1e,_0x4dec18=_0x4dec18!=null?_0x4dec18:0x1e;let _0x54029e=0x0,_0x31ee3b=0x0,_0x3e5e96=0x0;_0x54029e=_0x31ee3b=_0x3e5e96=Math[_0x17f36a(0x205)](_0x5c5bc7,_0x28d354/0x2,_0x4dec18/0x2),_0x34d8fe[_0x17f36a(0x338)](),_0x34d8fe[_0x17f36a(0x323)](_0x54029e,0x0),_0x34d8fe[_0x17f36a(0x36c)](_0x28d354-_0x31ee3b,0x0),_0x34d8fe['arc'](_0x28d354-_0x31ee3b,_0x31ee3b,_0x31ee3b,Math['PI']*0x3/0x2,0x0,!0x1),_0x34d8fe[_0x17f36a(0x36c)](_0x28d354,_0x4dec18-_0x3e5e96),_0x34d8fe[_0x17f36a(0x152)](_0x28d354-_0x3e5e96,_0x4dec18-_0x3e5e96,_0x3e5e96,0x0,Math['PI']/0x2,!0x1),_0x34d8fe[_0x17f36a(0x36c)](0x0,_0x4dec18),_0x34d8fe[_0x17f36a(0x36c)](0x0,_0x54029e),_0x34d8fe['arc'](_0x54029e,_0x54029e,_0x54029e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x34d8fe[_0x17f36a(0x192)](),_0x14de72[_0x17f36a(0x35e)]&&(_0x34d8fe['save'](),_0x34d8fe[_0x17f36a(0x348)]=_0x14de72['fill'],_0x14de72[_0x17f36a(0x1c4)]===_0x17f36a(0x1d1)?_0x34d8fe[_0x17f36a(0x35e)](_0x17f36a(0x1d1)):_0x34d8fe['fill'](),_0x34d8fe['restore']());}class te extends p[_0x5ee2b4(0x374)]{constructor(_0x595283,_0x22de7e){const _0x56225e=_0x5ee2b4;super(_0x595283,_0x22de7e),h(this,_0x56225e(0x1fc)),h(this,_0x56225e(0x2e2)),(this[_0x56225e(0x1fc)]=_0x22de7e==null?void 0x0:_0x22de7e[_0x56225e(0x1fc)],this[_0x56225e(0x2e2)]=_0x22de7e==null?void 0x0:_0x22de7e[_0x56225e(0x2e2)]);}static['drawWith'](_0x2794ca,_0x426039){const _0x1a138e=_0x5ee2b4,{text:_0x58e18d,color:_0x4aa111}=_0x426039;_0x2794ca['save'](),_0x2794ca[_0x1a138e(0x14f)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x1393d5=_0x2794ca[_0x1a138e(0x319)](_0x58e18d)[_0x1a138e(0x303)],_0x1cb08c=Math[_0x1a138e(0x205)](_0x1393d5+0x2*re,De);dt(_0x2794ca,{'height':K,'radius':0x4,'width':_0x1cb08c,'fill':_0x4aa111}),_0x2794ca[_0x1a138e(0x348)]='#FFF';const _0x5c0e31=re,_0x555e64=K-_t,_0x1537df=De-0x2*re;if(_0x1393d5>_0x1537df){let _0x4adb36='',_0x1cc216=0x0;for(const _0x334212 of _0x58e18d){const _0x12934b=_0x2794ca[_0x1a138e(0x319)](_0x334212)[_0x1a138e(0x303)];if(_0x1cc216+_0x12934b<=_0x1537df-_0x2794ca['measureText'](_0x1a138e(0x145))[_0x1a138e(0x303)])_0x4adb36+=_0x334212,_0x1cc216+=_0x12934b;else{_0x4adb36+=_0x1a138e(0x145);break;}}_0x2794ca['fillText'](_0x4adb36,_0x5c0e31,_0x555e64);}else _0x2794ca[_0x1a138e(0x2ab)](_0x58e18d,_0x5c0e31,_0x555e64);_0x2794ca[_0x1a138e(0x1b1)]();}[_0x5ee2b4(0x1c0)](_0x5d950a){const _0xd089ca=_0x5ee2b4;te[_0xd089ca(0x34d)](_0x5d950a,this);}}const oe=_0x5ee2b4(0x232),ft='collab-text-range-',St=_0x5ee2b4(0x28f),B=0x6,vt=1.5,ae=0x4,gt=1.5,It=_0x5ee2b4(0x153);class Ue{constructor(_0x212b83,_0x562eb7,_0x44f65e,_0xb1e295){const _0x22109=_0x5ee2b4;h(this,_0x22109(0x194),[]),h(this,_0x22109(0x2b8),null),h(this,_0x22109(0x390),null),h(this,_0x22109(0x2d7),null),h(this,_0x22109(0x132),null),h(this,_0x22109(0x1c1),null),(this[_0x22109(0x22e)]=_0x212b83,this[_0x22109(0x2f2)]=_0x562eb7,this[_0x22109(0x37e)]=_0x44f65e,this[_0x22109(0x3a1)]=_0xb1e295,this[_0x22109(0x168)]());}set[_0x5ee2b4(0x3ac)](_0x164310){const _0x7b7659=_0x5ee2b4;_0x164310?(this[_0x7b7659(0x2d7)]&&this[_0x7b7659(0x2d7)][_0x7b7659(0x1d9)](),this[_0x7b7659(0x390)]&&this['_textBubble'][_0x7b7659(0x368)]()):(this['_anchorDot']&&this[_0x7b7659(0x2d7)][_0x7b7659(0x368)](),this[_0x7b7659(0x390)]&&this[_0x7b7659(0x390)][_0x7b7659(0x1d9)]());}['dispose'](){const _0x2e8636=_0x5ee2b4;for(const _0x3a2876 of this['_shapes'])_0x3a2876['dispose']();this[_0x2e8636(0x390)]&&this['_textBubble']['dispose'](),this['_anchorDot']&&this[_0x2e8636(0x2d7)][_0x2e8636(0x2a9)](),this[_0x2e8636(0x2b8)]&&this['_anchor']['dispose'](),this[_0x2e8636(0x1c1)]&&this[_0x2e8636(0x1c1)]();}[_0x5ee2b4(0x168)](){const _0x272db8=_0x5ee2b4;var _0x2fff2f;const {_docSkeleton:_0x1f1e66,_document:_0x393829}=this,{color:_0x903b8c,name:_0x4d7701,ranges:_0x5353d1}=this[_0x272db8(0x22e)],_0xd4ec58=_0x393829[_0x272db8(0x320)](),{docsLeft:_0x294ad9,docsTop:_0x20dc0a}=_0xd4ec58,_0x3bcb0b=new b['NodePositionConvertToCursor'](_0xd4ec58,_0x1f1e66);for(const {startOffset:_0x4b075f,endOffset:_0x5824b5,rangeType:_0x32f562,segmentId:_0x39ed1c,segmentPage:_0x3c583e,collapsed:_0x1139ab,isActive:_0x32715a}of _0x5353d1){const _0x14c1c5=_0x1f1e66['findNodePositionByCharIndex'](_0x4b075f,!0x0,_0x39ed1c,_0x3c583e);let _0x289bc4=_0x1f1e66[_0x272db8(0x264)](_0x5824b5,!0x0,_0x39ed1c,_0x3c583e);if(_0x289bc4==null&&(_0x289bc4=_0x1f1e66[_0x272db8(0x264)](_0x5824b5-0x1,!0x1,_0x39ed1c,_0x3c583e)),_0x32715a){const {contentBoxPointGroup:_0x44218a}=_0x3bcb0b['getRangePointData'](_0x289bc4,_0x289bc4);if(_0x44218a[_0x272db8(0x21d)]===0x0)continue;this[_0x272db8(0x25e)](_0x903b8c,_0x44218a,_0x294ad9,_0x20dc0a,_0x4d7701),this[_0x272db8(0x1c1)]=this[_0x272db8(0x1b7)]();}if(_0x14c1c5&&_0x289bc4){if(_0x32f562===a[_0x272db8(0x248)][_0x272db8(0x1c9)]){const _0xbe6725=new b[(_0x272db8(0x1f4))](_0xd4ec58,_0x1f1e66),{pointGroup:_0x5d55a3}=(_0x2fff2f=_0xbe6725['getRangePointData'](_0x14c1c5,_0x289bc4))!=null?_0x2fff2f:{};if(_0x5d55a3==null||_0x5d55a3[_0x272db8(0x21d)]===0x0)continue;this[_0x272db8(0x130)](_0x903b8c,_0x5d55a3,_0x294ad9,_0x20dc0a);}else{if(!_0x1139ab){const {borderBoxPointGroup:_0xf42d22}=_0x3bcb0b['getRangePointData'](_0x14c1c5,_0x289bc4);if(_0xf42d22[_0x272db8(0x21d)]===0x0)continue;this[_0x272db8(0x328)](_0x903b8c,_0xf42d22,_0x294ad9,_0x20dc0a);}}}}}[_0x5ee2b4(0x25e)](_0xe2ec0e,_0x50a355,_0x5ca87a,_0x33e44f,_0x7ae2a0){const _0x34f96e=_0x5ee2b4,_0x3851e6=this[_0x34f96e(0x1e1)](_0x50a355),{left:_0x127a23,top:_0x3aec53,height:_0x2bf1f6}=_0x3851e6,_0x25ff96=this[_0x34f96e(0x2fd)](),_0x4891c8=gt/_0x25ff96,_0x1b7906=new p['Rect'](oe+a[_0x34f96e(0x13b)][_0x34f96e(0x2a6)](B),{'left':_0x127a23+_0x5ca87a-_0x4891c8,'top':_0x3aec53+_0x33e44f,'height':_0x2bf1f6,'width':vt,'fill':_0xe2ec0e||p[_0x34f96e(0x20f)](a['COLORS'][_0x34f96e(0x162)],0x0),'strokeWidth':_0x4891c8,'stroke':It,'evented':!0x0});this[_0x34f96e(0x2b8)]=_0x1b7906,this['_scene'][_0x34f96e(0x204)](_0x1b7906,b[_0x34f96e(0x27f)]);const _0x2fdb21=new p[(_0x34f96e(0x193))](oe+a[_0x34f96e(0x13b)][_0x34f96e(0x2a6)](B),{'left':_0x127a23+_0x5ca87a-_0x4891c8,'top':_0x3aec53+_0x33e44f-ae/0x2,'height':ae,'width':ae,'fill':_0xe2ec0e||p[_0x34f96e(0x20f)](a['COLORS'][_0x34f96e(0x162)],0x0),'strokeWidth':0x0,'stroke':_0xe2ec0e||p[_0x34f96e(0x20f)](a['COLORS'][_0x34f96e(0x162)],0x0),'evented':!0x1});this['_anchorDot']=_0x2fdb21,this[_0x34f96e(0x2f2)][_0x34f96e(0x204)](_0x2fdb21,b['TEXT_RANGE_LAYER_INDEX']);const _0x100bda=new te(oe+a[_0x34f96e(0x13b)][_0x34f96e(0x2a6)](B),{'left':_0x127a23+_0x5ca87a-_0x4891c8,'top':_0x3aec53+_0x33e44f-K,'text':_0x7ae2a0,'color':_0xe2ec0e});this['_textBubble']=_0x100bda,this[_0x34f96e(0x2f2)]['addObject'](_0x100bda,b['TEXT_RANGE_LAYER_INDEX']),this[_0x34f96e(0x3ac)]=!0x1;}[_0x5ee2b4(0x1b7)](){const _0x1b6020=_0x5ee2b4,_0x1c9fa1=this[_0x1b6020(0x2b8)]['onPointerEnter$']['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x1b8be1=this[_0x1b6020(0x2b8)][_0x1b6020(0x1c6)][_0x1b6020(0x367)](()=>{const _0x7c1ad1=_0x1b6020;this[_0x7c1ad1(0x132)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x52c490=_0x7c1ad1;this[_0x52c490(0x3ac)]=!0x1;},0x7d0);});return()=>{const _0x5dfb4e=_0x1b6020;_0x1c9fa1[_0x5dfb4e(0x2ec)](),_0x1b8be1[_0x5dfb4e(0x2ec)]();};}[_0x5ee2b4(0x328)](_0x1af31c,_0x632a29,_0x3ea90c,_0x6fb7fd){const _0x4c5df4=_0x5ee2b4,_0x86146=new a['ColorKit'](_0x1af31c)['setAlpha'](0.2)[_0x4c5df4(0x33f)](),_0x26ef10=new p[(_0x4c5df4(0x2d2))](ft+a['Tools'][_0x4c5df4(0x2a6)](B),{'pointsGroup':_0x632a29,'fill':_0x86146||p[_0x4c5df4(0x20f)](a[_0x4c5df4(0x37b)]['black'],0.2),'left':_0x3ea90c,'top':_0x6fb7fd,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x4c5df4(0x382)](_0x26ef10),this[_0x4c5df4(0x2f2)][_0x4c5df4(0x204)](_0x26ef10,b['TEXT_RANGE_LAYER_INDEX']);}[_0x5ee2b4(0x130)](_0x10a60f,_0x100df8,_0x3cce96,_0x40e1f8){const _0x43819b=_0x5ee2b4,_0x5db4c0=new a[(_0x43819b(0x18d))](_0x10a60f)[_0x43819b(0x26c)](0.2)[_0x43819b(0x33f)](),_0x3aa391=new p['RegularPolygon'](St+a[_0x43819b(0x13b)]['generateRandomId'](B),{'pointsGroup':_0x100df8,'fill':_0x5db4c0||p[_0x43819b(0x20f)](a[_0x43819b(0x37b)][_0x43819b(0x162)],0.2),'left':_0x3cce96,'top':_0x40e1f8,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x43819b(0x382)](_0x3aa391),this[_0x43819b(0x2f2)][_0x43819b(0x204)](_0x3aa391,b[_0x43819b(0x27f)]);}['_getAnchorBounding'](_0x44b57e){const _0x36e4ab=_0x44b57e[0x0],_0x5423e0=_0x36e4ab[0x0],_0x525734=_0x36e4ab[0x2],{x:_0x447196,y:_0x371fa3}=_0x5423e0,{x:_0x44742d,y:_0x1fe0f8}=_0x525734;return{'left':_0x447196,'top':_0x371fa3,'width':_0x44742d-_0x447196,'height':_0x1fe0f8-_0x371fa3};}['_getScale'](){const _0x360a53=_0x5ee2b4,{scaleX:_0x3850c4,scaleY:_0x21e222}=this[_0x360a53(0x2f2)]['getAncestorScale']();return Math[_0x360a53(0x1ac)](_0x3850c4,_0x21e222);}}var mt=Object['getOwnPropertyDescriptor'],Ct=(_0x554594,_0x425042,_0x2a27c6,_0xf53197)=>{const _0xfadb83=_0x5ee2b4;for(var _0x29504b=_0xf53197>0x1?void 0x0:_0xf53197?mt(_0x425042,_0x2a27c6):_0x425042,_0x386e88=_0x554594[_0xfadb83(0x21d)]-0x1,_0x12e18b;_0x386e88>=0x0;_0x386e88--)(_0x12e18b=_0x554594[_0x386e88])&&(_0x29504b=_0x12e18b(_0x29504b)||_0x29504b);return _0x29504b;},X=(_0x3ba4d4,_0x5198d4)=>(_0x1c3dd4,_0x346a43)=>_0x5198d4(_0x1c3dd4,_0x346a43,_0x3ba4d4);let ge=class extends a[_0x5ee2b4(0x38e)]{constructor(_0x289947,_0x3bccba,_0x257761,_0x30b405,_0x1fb183){const _0xe94230=_0x5ee2b4;super(),h(this,_0xe94230(0x1ef),[]),h(this,'_cursors',[]),(this[_0xe94230(0x2de)]=_0x289947,this[_0xe94230(0x2db)]=_0x3bccba,this[_0xe94230(0x30a)]=_0x257761,this['_commandService']=_0x30b405,this[_0xe94230(0x296)]=_0x1fb183,this['_init']());}[_0x5ee2b4(0x1f5)](){const _0x56f209=_0x5ee2b4,_0x1ed72c=this[_0x56f209(0x2de)][_0x56f209(0x2d3)],_0x28eab7=this[_0x56f209(0x2db)];this['disposeWithMe'](d[_0x56f209(0x1a2)]([this[_0x56f209(0x30a)][_0x56f209(0x13c)](_0x1ed72c),this[_0x56f209(0x296)][_0x56f209(0x1be)]])[_0x56f209(0x22a)]($[_0x56f209(0x1e5)](([_0x162994,_0x3e0d7a])=>({'skeleton':_0x28eab7[_0x56f209(0x255)](),'cursors':[..._0x162994[_0x56f209(0x24a)]()][_0x56f209(0x15e)](_0x1cc3ec=>({..._0x1cc3ec,'color':_0x3e0d7a[_0x1cc3ec['color']]}))})))[_0x56f209(0x237)](_0x278d2e=>{const _0x36b22d=_0x56f209;if(this[_0x36b22d(0x3a4)](),_0x278d2e){const {skeleton:_0x181f4e,cursors:_0x54f618}=_0x278d2e;this[_0x36b22d(0x2c8)](_0x181f4e,_0x54f618);}})),this[_0x56f209(0x212)](),this[_0x56f209(0x31f)]();}[_0x5ee2b4(0x2c8)](_0x377096,_0x20372c){const _0x3474da=_0x5ee2b4,{scene:_0x43d471,mainComponent:_0x5dcf6d}=this[_0x3474da(0x2de)],_0x381745=_0x20372c['map'](_0x22211e=>new Ue(_0x22211e,_0x43d471,_0x377096,_0x5dcf6d));this[_0x3474da(0x1ef)]=_0x381745,this[_0x3474da(0x160)]=_0x20372c;}[_0x5ee2b4(0x252)](){const _0x241378=_0x5ee2b4;this[_0x241378(0x3a4)]();const {scene:_0x2e4736,mainComponent:_0x58495d}=this[_0x241378(0x2de)],_0x5ce899=this[_0x241378(0x2db)]['getSkeleton'](),_0x45bf52=this[_0x241378(0x160)][_0x241378(0x1e5)](_0x1210fc=>new Ue(_0x1210fc,_0x2e4736,_0x5ce899,_0x58495d));this[_0x241378(0x1ef)]=_0x45bf52;}[_0x5ee2b4(0x3a4)](){const _0x2089bf=_0x5ee2b4;this[_0x2089bf(0x1ef)][_0x2089bf(0x294)](_0x307969=>_0x307969[_0x2089bf(0x2a9)]()),this[_0x2089bf(0x1ef)]=[];}['_initCommandExecutedListener'](){const _0x26e07a=_0x5ee2b4,_0x3b0e58=[b[_0x26e07a(0x226)]['id']];this[_0x26e07a(0x15d)](this[_0x26e07a(0x1a4)][_0x26e07a(0x125)](_0x188639=>{const _0x4c4b95=_0x26e07a;_0x3b0e58[_0x4c4b95(0x34b)](_0x188639['id'])&&_0x188639[_0x4c4b95(0x3ae)]['unitId']===this[_0x4c4b95(0x2de)][_0x4c4b95(0x2d3)]&&this[_0x4c4b95(0x252)]();}));}[_0x5ee2b4(0x212)](){const _0x34cca1=_0x5ee2b4;this['disposeWithMe'](a[_0x34cca1(0x1c7)](this[_0x34cca1(0x2de)]['engine']['onTransformChange$'])[_0x34cca1(0x22a)]($[_0x34cca1(0x29a)](_0x26c1d9=>_0x26c1d9['type']===p[_0x34cca1(0x138)][_0x34cca1(0x13e)]),$[_0x34cca1(0x219)](0x10))[_0x34cca1(0x237)](()=>{const _0x46a4c2=_0x34cca1;this[_0x46a4c2(0x252)]();}));}};ge=Ct([X(0x1,a[_0x5ee2b4(0x210)](Y[_0x5ee2b4(0x1b4)])),X(0x2,a[_0x5ee2b4(0x210)](x)),X(0x3,a['ICommandService']),X(0x4,a[_0x5ee2b4(0x210)](a[_0x5ee2b4(0x243)]))],ge);const pt=0x1,bt=1.5;function _0x2347(_0x19b081,_0x54ddde){const _0x380c1f=_0x380c();return _0x2347=function(_0x234780,_0x5aaeb2){_0x234780=_0x234780-0x11a;let _0x40cbc5=_0x380c1f[_0x234780];return _0x40cbc5;},_0x2347(_0x19b081,_0x54ddde);}class Ae extends p[_0x5ee2b4(0x374)]{constructor(_0x415cf3,_0x59b243){const _0x3915b2=_0x5ee2b4;super(_0x415cf3,_0x59b243),h(this,_0x3915b2(0x163)),h(this,'_hovered',!0x1),h(this,_0x3915b2(0x3a7)),h(this,_0x3915b2(0x33a),''),h(this,'_labelPosition','top'),h(this,_0x3915b2(0x3af)),(_0x59b243&&this[_0x3915b2(0x2b7)](_0x59b243),this[_0x3915b2(0x37d)]['subscribeEvent'](()=>this[_0x3915b2(0x2b7)]({'hovered':!0x0})),this[_0x3915b2(0x1c6)]['subscribeEvent'](()=>this[_0x3915b2(0x2b7)]({'hovered':!0x1})));}[_0x5ee2b4(0x2b7)](_0x5ccdb6){const _0x5e15ed=_0x5ee2b4;var _0x4f87c5,_0x1e9b90,_0x418409,_0x468bc8,_0x5ab0a7,_0x15a95a;this[_0x5e15ed(0x163)]=(_0x4f87c5=_0x5ccdb6['color'])!=null?_0x4f87c5:this[_0x5e15ed(0x163)],this[_0x5e15ed(0x2b4)]=(_0x1e9b90=_0x5ccdb6[_0x5e15ed(0x3ab)])!=null?_0x1e9b90:this[_0x5e15ed(0x2b4)],this[_0x5e15ed(0x3a7)]=(_0x418409=_0x5ccdb6[_0x5e15ed(0x334)])!=null?_0x418409:this[_0x5e15ed(0x3a7)],this[_0x5e15ed(0x33a)]=(_0x468bc8=_0x5ccdb6[_0x5e15ed(0x29b)])!=null?_0x468bc8:this['_name'],this['_labelPosition']=(_0x5ab0a7=_0x5ccdb6[_0x5e15ed(0x1b6)])!=null?_0x5ab0a7:this['_labelPosition'],this[_0x5e15ed(0x3af)]=(_0x15a95a=_0x5ccdb6[_0x5e15ed(0x37f)])!=null?_0x15a95a:this['_backgroundColor'],this[_0x5e15ed(0x370)]({'width':_0x5ccdb6[_0x5e15ed(0x303)],'height':_0x5ccdb6[_0x5e15ed(0x393)]});}[_0x5ee2b4(0x181)](_0x17b0f3){const _0x5f3255=_0x5ee2b4,{row:_0x1cc228,column:_0x54aec9}=_0x17b0f3;if(_0x1cc228>=this[_0x5f3255(0x3a7)][_0x5f3255(0x358)]&&_0x1cc228<=this[_0x5f3255(0x3a7)][_0x5f3255(0x380)]&&_0x54aec9>=this['_range'][_0x5f3255(0x2ed)]&&_0x54aec9<=this[_0x5f3255(0x3a7)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0xc6b255){return!0x1;}[_0x5ee2b4(0x1c0)](_0x1505c1){const _0x197c91=_0x5ee2b4;p['Rect']['drawWith'](_0x1505c1,{'width':this['width'],'height':this['height'],'strokeWidth':bt,'stroke':this[_0x197c91(0x163)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x1505c1[_0x197c91(0x1b2)](),_0x1505c1[_0x197c91(0x23e)](0x1,0x0,0x0,0x1,this[_0x197c91(0x303)],this[_0x197c91(0x190)]===_0x197c91(0x1ee)?0x0:-0x14),te[_0x197c91(0x34d)](_0x1505c1,{'text':this[_0x197c91(0x33a)],'color':this[_0x197c91(0x163)]}),_0x1505c1[_0x197c91(0x1b1)]());}}var Et=Object['getOwnPropertyDescriptor'],Tt=(_0x114de1,_0x3f414e,_0x1ff7c9,_0x36d45f)=>{const _0xe2ae7=_0x5ee2b4;for(var _0x30edfd=_0x36d45f>0x1?void 0x0:_0x36d45f?Et(_0x3f414e,_0x1ff7c9):_0x3f414e,_0x336da3=_0x114de1[_0xe2ae7(0x21d)]-0x1,_0x1bce88;_0x336da3>=0x0;_0x336da3--)(_0x1bce88=_0x114de1[_0x336da3])&&(_0x30edfd=_0x1bce88(_0x30edfd)||_0x30edfd);return _0x30edfd;},ce=(_0xd0945b,_0x42ea9d)=>(_0x3eccd1,_0x398714)=>_0x42ea9d(_0x3eccd1,_0x398714,_0xd0945b);const Rt=0x1389;let Ie=class extends a[_0x5ee2b4(0x38e)]{constructor(_0x34dd43,_0x345bfe,_0x2d04d3,_0x579c2c){const _0x49893f=_0x5ee2b4;super(),h(this,'_cursors',new Set()),h(this,_0x49893f(0x356),null),(this[_0x49893f(0x2de)]=_0x34dd43,this[_0x49893f(0x239)]=_0x345bfe,this[_0x49893f(0x30a)]=_0x2d04d3,this[_0x49893f(0x296)]=_0x579c2c,this['_init']());}[_0x5ee2b4(0x1f5)](){const _0x120df2=_0x5ee2b4;this[_0x120df2(0x239)][_0x120df2(0x206)]['pipe']($['takeUntil'](this[_0x120df2(0x240)]),$['switchMap'](_0xcd431b=>{const _0x1dad65=_0x120df2;if(_0xcd431b){const _0x3db660=_0xcd431b[_0x1dad65(0x183)];return d[_0x1dad65(0x1a2)](this['_collabCursorController'][_0x1dad65(0x13c)](this[_0x1dad65(0x2de)][_0x1dad65(0x2d3)]),this[_0x1dad65(0x296)]['currentTheme$'])['pipe']($[_0x1dad65(0x1e5)](([_0x3a1bd0,_0x2fd254])=>{const _0x39e19f=new Map();return _0x3a1bd0['forEach']((_0x6f84ae,_0x162c4f)=>{const _0x5b4d69=_0x2347;if(_0x6f84ae[_0x5b4d69(0x11a)]===_0x3db660){const _0x406e5b={..._0x6f84ae};_0x406e5b['color']=_0x2fd254[_0x6f84ae[_0x5b4d69(0x1fc)]],_0x39e19f['set'](_0x162c4f,_0x406e5b);}}),{'skeleton':_0xcd431b,'cursors':_0x39e19f};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x120df2(0x237)](({skeleton:_0x192f02,cursors:_0x552379})=>{const _0x4cdb0c=_0x120df2;this[_0x4cdb0c(0x3a4)](),_0x192f02&&this[_0x4cdb0c(0x2c8)](_0x192f02,_0x552379);}),this[_0x120df2(0x239)][_0x120df2(0x206)]['subscribe'](_0xd1b833=>{const _0x1f9d3f=_0x120df2;if(_0xd1b833==null)return;const {skeleton:_0x1aabfc}=_0xd1b833,{scene:_0x3266ea}=this[_0x1f9d3f(0x2de)];_0x3266ea[_0x1f9d3f(0x3a2)][_0x1f9d3f(0x367)](a['debounce'](_0x11db7b=>{const _0x128c2f=_0x1f9d3f;var _0x5ebdd7,_0x1ebd5a;const {offsetX:_0xafa094,offsetY:_0x3825d5}=_0x11db7b,{x:_0x4078ce,y:_0x17b432}=_0x3266ea[_0x128c2f(0x327)](p[_0x128c2f(0x1f0)][_0x128c2f(0x34a)]([_0xafa094,_0x3825d5])),{scaleX:_0x2f75d1,scaleY:_0x290b78}=_0x3266ea[_0x128c2f(0x316)](),_0x1f4517=_0x3266ea['getViewport'](p[_0x128c2f(0x26e)][_0x128c2f(0x135)]),_0x16d4f9=_0x3266ea[_0x128c2f(0x326)](p[_0x128c2f(0x1f0)][_0x128c2f(0x34a)]([_0x4078ce,_0x17b432]),_0x1f4517),_0x2a5c5b=_0x1aabfc[_0x128c2f(0x1a5)](_0xafa094,_0x3825d5,_0x2f75d1,_0x290b78,_0x16d4f9);((_0x5ebdd7=this[_0x128c2f(0x356)])==null?void 0x0:_0x5ebdd7['column'])===_0x2a5c5b[_0x128c2f(0x373)]&&((_0x1ebd5a=this[_0x128c2f(0x356)])==null?void 0x0:_0x1ebd5a[_0x128c2f(0x195)])===_0x2a5c5b['row']||this['_cursors'][_0x128c2f(0x294)](_0x4aa9f7=>{const _0x41e4a4=_0x128c2f;_0x4aa9f7[_0x41e4a4(0x181)](_0x2a5c5b);});},0x64));});}[_0x5ee2b4(0x2c8)](_0x4d64dc,_0x5645a2){const _0x2e3120=_0x5ee2b4;var _0x1bfb79;const _0x205495=(_0x1bfb79=this[_0x2e3120(0x239)][_0x2e3120(0x265)]())==null?void 0x0:_0x1bfb79['skeleton'];if(!_0x205495)return;const _0x233413=this[_0x2e3120(0x197)]();if(!_0x233413)return;this[_0x2e3120(0x160)][_0x2e3120(0x294)](_0x1a128e=>{_0x1a128e['makeDirty']();});const {scene:_0x510f85}=_0x233413,_0x3d464f=Ot(Array[_0x2e3120(0x36b)](_0x5645a2[_0x2e3120(0x24a)]()))['map'](_0x48d58f=>{const _0x141d69=_0x2e3120,{color:_0x103a62,range:_0x13b31e,name:_0x14a6ce,selection:_0x5a0741,sheetID:_0x575736}=_0x48d58f,{startColumn:_0x4a7b35,startRow:_0x92fd16,endColumn:_0x1d33cd,endRow:_0xa4f7aa}=_0x13b31e,_0x4da30f=G[_0x141d69(0x330)](_0x92fd16,_0x4a7b35,_0x510f85,_0x205495),_0x2261de=G[_0x141d69(0x330)](_0xa4f7aa,_0x1d33cd,_0x510f85,_0x205495),{columnHeaderHeightAndMarginTop:_0xce96f4}=_0x205495,{startX:_0x47a789,startY:_0x7394a7}=_0x4da30f,{endX:_0x35584b,endY:_0x4edd74}=_0x2261de,_0x3842b7=_0x35584b-_0x47a789,_0xb132a8=_0x4edd74-_0x7394a7,_0x351744={'labelPosition':_0x7394a7-_0xce96f4>=K?_0x141d69(0x1fd):_0x141d69(0x1ee),'sheetID':_0x575736,'range':_0x13b31e,'color':_0x103a62,'name':_0x14a6ce,'selection':_0x5a0741,'left':_0x47a789,'top':_0x7394a7,'width':_0x3842b7,'height':_0xb132a8,'evented':!0x1,'zIndex':Rt};return new Ae(_0x14a6ce,_0x351744);});_0x510f85['addObjects'](_0x3d464f,pt),this[_0x2e3120(0x160)]=new Set(_0x3d464f);}[_0x5ee2b4(0x3a4)](){const _0x137990=_0x5ee2b4;var _0x41c743;(_0x41c743=this['_cursors'])==null||_0x41c743[_0x137990(0x294)](_0x4d7a96=>_0x4d7a96[_0x137990(0x2a9)]());}[_0x5ee2b4(0x197)](){const _0x1babef=_0x5ee2b4;return G['getSheetObject'](this[_0x1babef(0x2de)][_0x1babef(0x2ae)],this[_0x1babef(0x2de)]);}};Ie=Tt([ce(0x1,a[_0x5ee2b4(0x210)](G[_0x5ee2b4(0x241)])),ce(0x2,a[_0x5ee2b4(0x210)](x)),ce(0x3,a[_0x5ee2b4(0x210)](a[_0x5ee2b4(0x243)]))],Ie);function Ot(_0x5b1068){const _0x58d4fc=_0x5ee2b4,_0x389e14=new Map();return _0x5b1068[_0x58d4fc(0x294)](_0x31d1b3=>{const _0xe03935=_0x58d4fc;if(_0x389e14[_0xe03935(0x1df)](_0x31d1b3['selection'])){const _0x74ffff=_0x389e14[_0xe03935(0x287)](_0x31d1b3[_0xe03935(0x134)]);_0x74ffff[_0xe03935(0x29b)]+=',\x20'+_0x31d1b3['name'];}else _0x389e14[_0xe03935(0x379)](_0x31d1b3['selection'],_0x31d1b3);}),Array[_0x58d4fc(0x36b)](_0x389e14[_0x58d4fc(0x24a)]());}var E=function(){const _0x4c1eca=_0x5ee2b4;return E=Object[_0x4c1eca(0x1d0)]||function(_0x3edb5d){const _0x23940f=_0x4c1eca;for(var _0x4ee171,_0xe7c2ef=0x1,_0x2d2ade=arguments[_0x23940f(0x21d)];_0xe7c2ef<_0x2d2ade;_0xe7c2ef++){_0x4ee171=arguments[_0xe7c2ef];for(var _0x80269 in _0x4ee171)Object[_0x23940f(0x228)][_0x23940f(0x267)][_0x23940f(0x250)](_0x4ee171,_0x80269)&&(_0x3edb5d[_0x80269]=_0x4ee171[_0x80269]);}return _0x3edb5d;},E['apply'](this,arguments);},Dt=function(_0x711cd2,_0x4fe3dd){const _0x20dd4b=_0x5ee2b4;var _0x127469={};for(var _0x5a2eae in _0x711cd2)Object[_0x20dd4b(0x228)][_0x20dd4b(0x267)]['call'](_0x711cd2,_0x5a2eae)&&_0x4fe3dd[_0x20dd4b(0x139)](_0x5a2eae)<0x0&&(_0x127469[_0x5a2eae]=_0x711cd2[_0x5a2eae]);if(_0x711cd2!=null&&typeof Object[_0x20dd4b(0x156)]==_0x20dd4b(0x2bb)){for(var _0x2e1a95=0x0,_0x5a2eae=Object['getOwnPropertySymbols'](_0x711cd2);_0x2e1a95<_0x5a2eae[_0x20dd4b(0x21d)];_0x2e1a95++)_0x4fe3dd[_0x20dd4b(0x139)](_0x5a2eae[_0x2e1a95])<0x0&&Object[_0x20dd4b(0x228)][_0x20dd4b(0x17a)][_0x20dd4b(0x250)](_0x711cd2,_0x5a2eae[_0x2e1a95])&&(_0x127469[_0x5a2eae[_0x2e1a95]]=_0x711cd2[_0x5a2eae[_0x2e1a95]]);}return _0x127469;},be=P['forwardRef'](function(_0x12bd66,_0x1dc4e8){const _0x349a52=_0x5ee2b4;var _0x22c200=_0x12bd66[_0x349a52(0x343)],_0xef3d9f=_0x12bd66['id'],_0x8ad101=_0x12bd66[_0x349a52(0x2e8)],_0x1cb148=_0x12bd66[_0x349a52(0x18e)],_0x5808f3=Dt(_0x12bd66,['icon','id',_0x349a52(0x2e8),_0x349a52(0x18e)]),_0x5ef321=_0x349a52(0x196)[_0x349a52(0x202)](_0xef3d9f,'\x20')[_0x349a52(0x202)](_0x8ad101||'')[_0x349a52(0x274)](),_0x269219=P[_0x349a52(0x214)]('_'['concat'](Pt()));return $e(_0x22c200,''['concat'](_0xef3d9f),{'defIds':_0x22c200[_0x349a52(0x33b)],'idSuffix':_0x269219[_0x349a52(0x29f)]},E({'ref':_0x1dc4e8,'className':_0x5ef321},_0x5808f3),_0x1cb148);});function $e(_0x538e72,_0x31b783,_0xf7aec2,_0x21dcee,_0x192422){const _0x4df784=_0x5ee2b4;return P[_0x4df784(0x12d)](_0x538e72['tag'],E(E({'key':_0x31b783},Ut(_0x538e72,_0xf7aec2,_0x192422)),_0x21dcee),(Mt(_0x538e72,_0xf7aec2)[_0x4df784(0x35a)]||[])[_0x4df784(0x1e5)](function(_0x4d42d1,_0x179626){const _0x20aef6=_0x4df784;return $e(_0x4d42d1,''[_0x20aef6(0x202)](_0x31b783,'-')['concat'](_0x538e72[_0x20aef6(0x158)],'-')[_0x20aef6(0x202)](_0x179626),_0xf7aec2,void 0x0,_0x192422);}));}function Ut(_0x18a769,_0x59fe96,_0xeaea52){const _0x1df80e=_0x5ee2b4;var _0x4f413c=E({},_0x18a769['attrs']);_0xeaea52!=null&&_0xeaea52[_0x1df80e(0x234)]&&_0x4f413c[_0x1df80e(0x35e)]===_0x1df80e(0x234)&&(_0x4f413c[_0x1df80e(0x35e)]=_0xeaea52[_0x1df80e(0x234)]),_0x18a769[_0x1df80e(0x158)]===_0x1df80e(0x355)&&_0x4f413c['id']&&(_0x4f413c['id']=_0x4f413c['id']+_0x59fe96[_0x1df80e(0x372)]),Object[_0x1df80e(0x1a6)](_0x4f413c)[_0x1df80e(0x294)](function(_0xd53b4c){const _0x23b2c5=_0x1df80e;var _0x579fa5=_0xd53b4c[0x0],_0x3b0240=_0xd53b4c[0x1];_0x579fa5===_0x23b2c5(0x355)&&typeof _0x3b0240==_0x23b2c5(0x399)&&(_0x4f413c[_0x579fa5]=_0x3b0240['replace'](/url\(#(.*)\)/,'url(#$1'[_0x23b2c5(0x202)](_0x59fe96[_0x23b2c5(0x372)],')')));});var _0x39a180=_0x59fe96[_0x1df80e(0x33b)];return!_0x39a180||_0x39a180['length']===0x0||(_0x18a769[_0x1df80e(0x158)]==='use'&&_0x4f413c['xlink:href']&&(_0x4f413c[_0x1df80e(0x175)]=_0x4f413c[_0x1df80e(0x175)]+_0x59fe96['idSuffix']),Object[_0x1df80e(0x1a6)](_0x4f413c)[_0x1df80e(0x294)](function(_0x375d3e){const _0x314585=_0x1df80e;var _0x52a5a4=_0x375d3e[0x0],_0x137032=_0x375d3e[0x1];typeof _0x137032==_0x314585(0x399)&&(_0x4f413c[_0x52a5a4]=_0x137032[_0x314585(0x397)](/url\(#(.*)\)/,_0x314585(0x14e)[_0x314585(0x202)](_0x59fe96[_0x314585(0x372)],')')));})),_0x4f413c;}function Mt(_0x1ed57a,_0xaf173b){const _0x557d0b=_0x5ee2b4;var _0x4a53fb,_0x31986a=_0xaf173b['defIds'];return!_0x31986a||_0x31986a[_0x557d0b(0x21d)]===0x0?_0x1ed57a:_0x1ed57a[_0x557d0b(0x158)]===_0x557d0b(0x268)&&(!((_0x4a53fb=_0x1ed57a[_0x557d0b(0x35a)])===null||_0x4a53fb===void 0x0)&&_0x4a53fb[_0x557d0b(0x21d)])?E(E({},_0x1ed57a),{'children':_0x1ed57a[_0x557d0b(0x35a)][_0x557d0b(0x1e5)](function(_0xc96967){const _0x307434=_0x557d0b;return typeof _0xc96967[_0x307434(0x1f2)]['id']=='string'&&_0x31986a&&_0x31986a[_0x307434(0x139)](_0xc96967[_0x307434(0x1f2)]['id'])>-0x1?E(E({},_0xc96967),{'attrs':E(E({},_0xc96967[_0x307434(0x1f2)]),{'id':_0xc96967[_0x307434(0x1f2)]['id']+_0xaf173b['idSuffix']})}):_0xc96967;})}):_0x1ed57a;}function Pt(){const _0x3391f2=_0x5ee2b4;return Math[_0x3391f2(0x129)]()['toString'](0x24)[_0x3391f2(0x260)](0x2,0x8);}be[_0x5ee2b4(0x278)]=_0x5ee2b4(0x2fe);var Nt={'tag':_0x5ee2b4(0x128),'attrs':{'fill':_0x5ee2b4(0x1f7),'viewBox':_0x5ee2b4(0x1a0),'width':_0x5ee2b4(0x216),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x5ee2b4(0x224),'attrs':{'stroke':_0x5ee2b4(0x29e),'d':_0x5ee2b4(0x31b),'strokeLinecap':_0x5ee2b4(0x2c1),'strokeLinejoin':_0x5ee2b4(0x2c1),'strokeWidth':1.2}}]},{'tag':_0x5ee2b4(0x268),'attrs':{},'children':[{'tag':_0x5ee2b4(0x2e1),'attrs':{'id':_0x5ee2b4(0x121)},'children':[{'tag':_0x5ee2b4(0x224),'attrs':{'fill':_0x5ee2b4(0x1aa),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},xe=P['forwardRef'](function(_0x30bb19,_0x521393){const _0x296dcc=_0x5ee2b4;return P['createElement'](be,Object[_0x296dcc(0x1d0)]({},_0x30bb19,{'id':_0x296dcc(0x1fb),'ref':_0x521393,'icon':Nt}));});xe['displayName']=_0x5ee2b4(0x2e7);var wt={'tag':_0x5ee2b4(0x128),'attrs':{'fill':_0x5ee2b4(0x1f7),'viewBox':_0x5ee2b4(0x198),'width':_0x5ee2b4(0x216),'height':_0x5ee2b4(0x216)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x5ee2b4(0x224),'attrs':{'stroke':_0x5ee2b4(0x29e),'d':_0x5ee2b4(0x22c),'strokeLinecap':'round','strokeLinejoin':_0x5ee2b4(0x2c1),'strokeWidth':1.2}}]},{'tag':_0x5ee2b4(0x268),'attrs':{},'children':[{'tag':_0x5ee2b4(0x2e1),'attrs':{'id':_0x5ee2b4(0x2a1)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x5ee2b4(0x2aa),'transform':_0x5ee2b4(0x295)}}]}]}],'defIds':[_0x5ee2b4(0x2a1)]},je=P[_0x5ee2b4(0x366)](function(_0x1c39d1,_0x2a7c2b){const _0x2a8d50=_0x5ee2b4;return P['createElement'](be,Object[_0x2a8d50(0x1d0)]({},_0x1c39d1,{'id':_0x2a8d50(0x291),'ref':_0x2a7c2b,'icon':wt}));});je[_0x5ee2b4(0x278)]=_0x5ee2b4(0x27d);function ke(_0x2b83f8){const _0x353dd9=_0x5ee2b4;var _0x263d4a,_0xb783eb,_0x2ee92d='';if(typeof _0x2b83f8==_0x353dd9(0x399)||typeof _0x2b83f8==_0x353dd9(0x1bb))_0x2ee92d+=_0x2b83f8;else{if(typeof _0x2b83f8==_0x353dd9(0x2b0)){if(Array[_0x353dd9(0x298)](_0x2b83f8)){var _0x21db8c=_0x2b83f8[_0x353dd9(0x21d)];for(_0x263d4a=0x0;_0x263d4a<_0x21db8c;_0x263d4a++)_0x2b83f8[_0x263d4a]&&(_0xb783eb=ke(_0x2b83f8[_0x263d4a]))&&(_0x2ee92d&&(_0x2ee92d+='\x20'),_0x2ee92d+=_0xb783eb);}else{for(_0xb783eb in _0x2b83f8)_0x2b83f8[_0xb783eb]&&(_0x2ee92d&&(_0x2ee92d+='\x20'),_0x2ee92d+=_0xb783eb);}}}return _0x2ee92d;}function Me(){for(var _0xec44c5,_0x310756,_0x838e92=0x0,_0x396e0e='',_0x212252=arguments['length'];_0x838e92<_0x212252;_0x838e92++)(_0xec44c5=arguments[_0x838e92])&&(_0x310756=ke(_0xec44c5))&&(_0x396e0e&&(_0x396e0e+='\x20'),_0x396e0e+=_0x310756);return _0x396e0e;}const Lt=_0x5ee2b4(0x337),yt=_0x5ee2b4(0x30d),At=_0x5ee2b4(0x336),$t=_0x5ee2b4(0x2d9),xt=_0x5ee2b4(0x1ff),H={'onlineStatusIcon':Lt,'onlineStatusTitle':yt,'onlineStatus':At,'online':$t,'offline':xt};function jt(_0x4222e9){const _0x55149b=_0x5ee2b4;switch(_0x4222e9){case _[_0x55149b(0x229)]['OFFLINE']:return'collabStatus.offline';case _[_0x55149b(0x229)][_0x55149b(0x354)]:return'collabStatus.conflict';case _['CollaborationStatus'][_0x55149b(0x35c)]:return _0x55149b(0x300);case _[_0x55149b(0x229)][_0x55149b(0x384)]:return _0x55149b(0x187);case _['CollaborationStatus'][_0x55149b(0x2d8)]:case _['CollaborationStatus'][_0x55149b(0x249)]:return'collabStatus.syncing';case _[_0x55149b(0x229)][_0x55149b(0x2bd)]:case _['CollaborationStatus'][_0x55149b(0x11b)]:return _0x55149b(0x289);}}function Be(_0x48decd){const _0x5cdb4c=_0x5ee2b4,{status$:_0x41fef8}=_0x48decd,_0x459d1f=T[_0x5cdb4c(0x213)](_0x41fef8,_['CollaborationStatus'][_0x5cdb4c(0x384)]),_0x4c7d28=T['useDependency'](a[_0x5cdb4c(0x201)]),_0x22a0f7=T[_0x5cdb4c(0x30e)](_[_0x5cdb4c(0x31a)]),_0x1df3c2=_0x459d1f!==_['CollaborationStatus']['OFFLINE'],_0x4aa0ef=_0x4c7d28['t'](jt(_0x459d1f)),_0x581a3a=Me(H['onlineStatus'],{[H[_0x5cdb4c(0x2f7)]]:_0x1df3c2,[H[_0x5cdb4c(0x364)]]:!_0x1df3c2}),_0x3df289=_0x1df3c2?w[_0x5cdb4c(0x38f)](je,{}):w['jsx'](xe,{}),_0x1c6d40=P[_0x5cdb4c(0x146)](()=>{const _0xdc460e=_0x5cdb4c;_0x1df3c2||_0x22a0f7[_0xdc460e(0x1fe)]();},[_0x1df3c2,_0x22a0f7]);function _0x28ec09(){const _0x2b6327=_0x5cdb4c;return w[_0x2b6327(0x21c)](_0x2b6327(0x199),{'className':Me(_0x581a3a,_0x2b6327(0x27a)),'onClick':_0x1c6d40,'children':[w['jsx'](_0x2b6327(0x199),{'className':H[_0x2b6327(0x39b)],'children':_0x3df289}),w['jsx'](_0x2b6327(0x199),{'className':H['onlineStatusTitle'],'children':_0x4aa0ef})]});}return _0x1df3c2?_0x28ec09():w[_0x5cdb4c(0x38f)](M[_0x5cdb4c(0x33e)],{'title':_0x4c7d28['t'](_0x5cdb4c(0x1f9)),'children':_0x28ec09()});}var kt=Object[_0x5ee2b4(0x147)],Bt=(_0x23c009,_0x257b5f,_0x25cf0a,_0x22c0eb)=>{const _0x1490f0=_0x5ee2b4;for(var _0x931a9=_0x22c0eb>0x1?void 0x0:_0x22c0eb?kt(_0x257b5f,_0x25cf0a):_0x257b5f,_0x395383=_0x23c009[_0x1490f0(0x21d)]-0x1,_0xac73ba;_0x395383>=0x0;_0x395383--)(_0xac73ba=_0x23c009[_0x395383])&&(_0x931a9=_0xac73ba(_0x931a9)||_0x931a9);return _0x931a9;},V=(_0x334c40,_0x482c22)=>(_0x2d4e97,_0x19f129)=>_0x482c22(_0x2d4e97,_0x19f129,_0x334c40);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x283414,_0x17ea5c,_0x476d5f,_0x29fe9f){const _0xcd63=_0x5ee2b4;super(),h(this,_0xcd63(0x176),new d[(_0xcd63(0x211))](_[_0xcd63(0x229)][_0xcd63(0x384)])),(this[_0xcd63(0x178)]=_0x283414,this[_0xcd63(0x170)]=_0x17ea5c,this[_0xcd63(0x1ab)]=_0x476d5f,this['_uiPartsService']=_0x29fe9f,this[_0xcd63(0x34f)](),this['_initStatusListener']());}[_0x5ee2b4(0x19e)](){const _0x79606c=_0x5ee2b4;this[_0x79606c(0x15d)](this[_0x79606c(0x178)][_0x79606c(0x2eb)][_0x79606c(0x22a)](d[_0x79606c(0x359)](()=>{const _0x476a31=_0x79606c,_0x44abad=this[_0x476a31(0x178)][_0x476a31(0x2a5)]();return _0x44abad?this[_0x476a31(0x1ab)][_0x476a31(0x349)](_0x44abad[_0x476a31(0x2da)]()):d['of'](null);}),d[_0x79606c(0x359)](_0x3d632e=>_0x3d632e?_0x3d632e[_0x79606c(0x263)]:d['of'](_[_0x79606c(0x229)][_0x79606c(0x384)])))[_0x79606c(0x237)](_0x2d5b7a=>{const _0xc96a9b=_0x79606c;this['_status$'][_0xc96a9b(0x11d)](_0x2d5b7a);}));}[_0x5ee2b4(0x34f)](){const _0xa27472=_0x5ee2b4;this[_0xa27472(0x15d)](this[_0xa27472(0x1e0)]['registerComponent'](T['BuiltInUIPart'][_0xa27472(0x209)],()=>T['connectInjector'](Ht({'status$':this[_0xa27472(0x176)]['asObservable']()}),this['_injector'])));}},exports[_0x5ee2b4(0x2f1)]=Bt([V(0x0,a['IUniverInstanceService']),V(0x1,a[_0x5ee2b4(0x210)](a[_0x5ee2b4(0x227)])),V(0x2,a[_0x5ee2b4(0x210)](_[_0x5ee2b4(0x313)])),V(0x3,T['IUIPartsService'])],exports[_0x5ee2b4(0x2f1)]);function Ht(_0x1b8c87){const {status$:_0x3bce38}=_0x1b8c87;return function(){const _0xad1873=_0x2347;return w[_0xad1873(0x38f)](Be,{'status$':_0x3bce38});};}var Wt=Object[_0x5ee2b4(0x147)],Ft=(_0x524f9c,_0x578958,_0x22a1bd,_0x573488)=>{const _0x56bbaa=_0x5ee2b4;for(var _0x4ae6c4=_0x573488>0x1?void 0x0:_0x573488?Wt(_0x578958,_0x22a1bd):_0x578958,_0x1179a3=_0x524f9c[_0x56bbaa(0x21d)]-0x1,_0xe2d112;_0x1179a3>=0x0;_0x1179a3--)(_0xe2d112=_0x524f9c[_0x1179a3])&&(_0x4ae6c4=_0xe2d112(_0x4ae6c4)||_0x4ae6c4);return _0x4ae6c4;},A=(_0x17df37,_0x4153b7)=>(_0x594876,_0x7d5df8)=>_0x4153b7(_0x594876,_0x7d5df8,_0x17df37);let z=class extends a[_0x5ee2b4(0x261)]{constructor(_0x1e5506,_0x28a913,_0x43b107,_0x48a8a9,_0x1c6431,_0x321b78){const _0x422a8a=_0x5ee2b4;super(),this['_beforeCloseService']=_0x1e5506,this[_0x422a8a(0x28b)]=_0x28a913,this[_0x422a8a(0x3a5)]=_0x43b107,this[_0x422a8a(0x3ad)]=_0x48a8a9,this[_0x422a8a(0x1d6)]=_0x1c6431,this[_0x422a8a(0x186)]=_0x321b78,this[_0x422a8a(0x1cb)](),this[_0x422a8a(0x1bf)]();}['_setupBeforeClosingHandler'](){const _0x514237=_0x5ee2b4;this[_0x514237(0x15d)](this[_0x514237(0x1ce)][_0x514237(0x247)](()=>{const _0x248dd0=_0x514237;if(this[_0x248dd0(0x28b)][_0x248dd0(0x2b1)][_0x248dd0(0x398)])return this[_0x248dd0(0x186)]['t'](_0x248dd0(0x165));}));}[_0x5ee2b4(0x1bf)](){const _0x3f4920=_0x5ee2b4;this[_0x3f4920(0x15d)](this[_0x3f4920(0x3a5)][_0x3f4920(0x23c)]['subscribe'](_0x36d877=>{const _0xa37937=_0x3f4920;_0x36d877['id']===_['CollaborationUIEventId'][_0xa37937(0x208)]&&this[_0xa37937(0x3ad)]['show']({'type':M[_0xa37937(0x207)][_0xa37937(0x312)],'content':this['_localeService']['t'](_0xa37937(0x311))}),_0x36d877['id']===_[_0xa37937(0x2a3)][_0xa37937(0x2ac)]&&this[_0xa37937(0x3ad)][_0xa37937(0x368)]({'type':M[_0xa37937(0x207)][_0xa37937(0x312)],'content':this[_0xa37937(0x186)]['t'](_0xa37937(0x23f))}),_0x36d877['id']===_[_0xa37937(0x2a3)]['PERMISSION_DENIED']&&this['_notificationService'][_0xa37937(0x368)]({'title':this[_0xa37937(0x186)]['t']('permission.title'),'content':this[_0xa37937(0x186)]['t'](_0xa37937(0x2a8)),'type':'error','duration':0x0}),_0x36d877['id']===_[_0xa37937(0x2a3)][_0xa37937(0x354)]&&this[_0xa37937(0x3ad)][_0xa37937(0x368)]({'type':M[_0xa37937(0x207)][_0xa37937(0x381)],'content':this[_0xa37937(0x186)]['t'](_0xa37937(0x23f))+'('+_0x36d877[_0xa37937(0x1e7)]+')'}),_0x36d877['id']===_[_0xa37937(0x2a3)][_0xa37937(0x3a0)]&&this[_0xa37937(0x3ad)][_0xa37937(0x368)]({'type':M[_0xa37937(0x207)][_0xa37937(0x312)],'content':this[_0xa37937(0x186)]['t'](_0x36d877[_0xa37937(0x1e7)]||'')}),_0x36d877['id']===_[_0xa37937(0x2a3)][_0xa37937(0x1e6)]&&this[_0xa37937(0x3ad)][_0xa37937(0x368)]({'type':M[_0xa37937(0x207)][_0xa37937(0x312)],'content':this['_localeService']['t'](_0xa37937(0x141))}),_0x36d877['id']===_[_0xa37937(0x2a3)][_0xa37937(0x13d)]&&this[_0xa37937(0x3ad)][_0xa37937(0x368)]({'type':M[_0xa37937(0x207)]['Error'],'content':this[_0xa37937(0x186)]['t']('session.connection-failed')}),_0x36d877['id']===_['CollaborationUIEventId'][_0xa37937(0x29d)]&&this[_0xa37937(0x3ad)][_0xa37937(0x368)]({'type':M[_0xa37937(0x207)]['Error'],'content':this['_localeService']['t'](_0xa37937(0x150))});}));}};z=Ft([A(0x0,T[_0x5ee2b4(0x155)]),A(0x1,_[_0x5ee2b4(0x345)]),A(0x2,a[_0x5ee2b4(0x210)](_[_0x5ee2b4(0x18f)])),A(0x3,T[_0x5ee2b4(0x2c6)]),A(0x4,T[_0x5ee2b4(0x322)]),A(0x5,a[_0x5ee2b4(0x210)](a[_0x5ee2b4(0x201)]))],z);const Yt='collaboration-client-ui.config',Pe={},Ee=a[_0x5ee2b4(0x383)](_0x5ee2b4(0x19a));var Xt=Object[_0x5ee2b4(0x147)],Vt=(_0x4cd160,_0x2af4f5,_0x2213d9,_0x38486c)=>{const _0x15fb78=_0x5ee2b4;for(var _0x53daac=_0x38486c>0x1?void 0x0:_0x38486c?Xt(_0x2af4f5,_0x2213d9):_0x2af4f5,_0x5432b8=_0x4cd160[_0x15fb78(0x21d)]-0x1,_0x5820eb;_0x5432b8>=0x0;_0x5432b8--)(_0x5820eb=_0x4cd160[_0x5432b8])&&(_0x53daac=_0x5820eb(_0x53daac)||_0x53daac);return _0x53daac;},W=(_0x6df90e,_0x233312)=>(_0x2fda4c,_0x279aa1)=>_0x233312(_0x2fda4c,_0x279aa1,_0x6df90e);exports[_0x5ee2b4(0x1a8)]=class extends a[_0x5ee2b4(0x38e)]{constructor(_0x292569,_0x22c449,_0x3fd94f,_0x817ba0,_0x3cb2b0){const _0x18131a=_0x5ee2b4;super(),this[_0x18131a(0x16b)]=_0x292569,this[_0x18131a(0x257)]=_0x22c449,this[_0x18131a(0x1a4)]=_0x3fd94f,this['_dataLoaderService']=_0x817ba0,_0x3cb2b0?_0x3cb2b0==null||_0x3cb2b0['whenReady']()[_0x18131a(0x231)](()=>this[_0x18131a(0x1f5)]()):(this[_0x18131a(0x257)][_0x18131a(0x143)](_0x18131a(0x301),_0x18131a(0x16d)),this[_0x18131a(0x1f5)]());}async['_init'](){const _0x427a4e=_0x5ee2b4,_0x31336d=this[_0x427a4e(0x16b)][_0x427a4e(0x246)](_0x427a4e(0x2ae)),_0x52a06b=this[_0x427a4e(0x16b)][_0x427a4e(0x246)](_0x427a4e(0x362)),_0x57f11a=this[_0x427a4e(0x16b)][_0x427a4e(0x246)](_0x427a4e(0x17d));if(!_0x31336d||!_0x52a06b){this['_logService'][_0x427a4e(0x143)](_0x427a4e(0x301),_0x427a4e(0x2c0));return;}const _0x223492=await this[_0x427a4e(0x22d)]['loadUnit'](_0x31336d,Number(_0x52a06b),_0x57f11a);_0x223492&&_0x223492 instanceof a[_0x427a4e(0x277)]&&this[_0x427a4e(0x244)](_0x223492);}async[_0x5ee2b4(0x244)](_0x5c9924){const _0x5119e0=_0x5ee2b4;await this[_0x5119e0(0x1ea)](_0x5c9924),_0x5c9924[_0x5119e0(0x2ba)][_0x5119e0(0x22a)](d['takeUntil'](this[_0x5119e0(0x240)]))[_0x5119e0(0x237)](_0x168295=>{const _0x15dfa0=_0x5119e0;_0x168295&&this[_0x15dfa0(0x259)](_0x168295);}),this['_urlService'][_0x5119e0(0x36a)][_0x5119e0(0x22a)](d[_0x5119e0(0x1b9)](this[_0x5119e0(0x240)]))['subscribe'](()=>this[_0x5119e0(0x1ea)](_0x5c9924));}['_updateURLWithCurrentState'](_0x432fe2,_0x4c5bc7=!0x1){const _0x188a21=_0x5ee2b4,_0x1ff1f2=this[_0x188a21(0x16b)][_0x188a21(0x246)]('subunit');_0x432fe2[_0x188a21(0x184)]()!==_0x1ff1f2&&this[_0x188a21(0x16b)][_0x188a21(0x365)](_0x188a21(0x17d),_0x432fe2[_0x188a21(0x184)](),_0x4c5bc7);}async['_updateSubUnitFromURLParams'](_0x4944b5){const _0x237585=_0x5ee2b4;var _0x365dc6;const _0x32eebc=this[_0x237585(0x16b)][_0x237585(0x246)]('subunit');if(!_0x32eebc||!_0x4944b5['getSheetBySheetId'](_0x32eebc)){const _0x42d0f0=_0x4944b5[_0x237585(0x136)]()[0x0],_0x2055de=_0x4944b5[_0x237585(0x1c8)](_0x42d0f0);if(!_0x2055de)return;this[_0x237585(0x259)](_0x2055de,!0x0),await this[_0x237585(0x1a4)][_0x237585(0x293)](I[_0x237585(0x1a7)]['id'],{'unitId':_0x4944b5['getUnitId'](),'subUnitId':_0x42d0f0});return;}((_0x365dc6=_0x4944b5[_0x237585(0x17b)]())==null?void 0x0:_0x365dc6['getSheetId']())!==_0x32eebc&&await this[_0x237585(0x1a4)][_0x237585(0x293)](I['SetWorksheetActivateCommand']['id'],{'unitId':_0x4944b5['getUnitId'](),'subUnitId':_0x32eebc});}},exports['CollaborationDataLoaderController']=Vt([W(0x0,Ee),W(0x1,a[_0x5ee2b4(0x2ca)]),W(0x2,a[_0x5ee2b4(0x270)]),W(0x3,a['Inject'](_[_0x5ee2b4(0x17e)])),W(0x4,a[_0x5ee2b4(0x28c)](Je[_0x5ee2b4(0x12e)]))],exports[_0x5ee2b4(0x1a8)]);var Gt=Object['getOwnPropertyDescriptor'],qt=(_0x195b64,_0x4d6b19,_0x44c0e7,_0x50e15a)=>{for(var _0x58083e=_0x50e15a>0x1?void 0x0:_0x50e15a?Gt(_0x4d6b19,_0x44c0e7):_0x4d6b19,_0x94bc9=_0x195b64['length']-0x1,_0x7c03d4;_0x94bc9>=0x0;_0x94bc9--)(_0x7c03d4=_0x195b64[_0x94bc9])&&(_0x58083e=_0x7c03d4(_0x58083e)||_0x58083e);return _0x58083e;},le=(_0x5d5c8f,_0x1b7329)=>(_0x140969,_0x23b267)=>_0x1b7329(_0x140969,_0x23b267,_0x5d5c8f);let J=class{constructor(_0x383b48,_0x25b56f,_0x1c1422){const _0x3637f1=_0x5ee2b4;this[_0x3637f1(0x170)]=_0x383b48,this[_0x3637f1(0x284)]=_0x25b56f,this[_0x3637f1(0x18a)]=_0x1c1422;}[_0x5ee2b4(0x35d)](_0x3c051a){const _0x3eeab2=_0x5ee2b4;this[_0x3eeab2(0x2ad)](_0x3c051a),this[_0x3eeab2(0x200)](_0x3c051a);}[_0x5ee2b4(0x126)](_0x4c62a6){const _0x3c2b7d=_0x5ee2b4,{unitID:_0x5ac7f9}=_0x4c62a6,_0x11c9af=this[_0x3c2b7d(0x18a)][_0x3c2b7d(0x14a)](_0x5ac7f9)[_0x3c2b7d(0x2bf)](b[_0x3c2b7d(0x18b)]),{redoCache:_0x41d53c}=_0x11c9af[_0x3c2b7d(0x369)]();if(_0x41d53c[_0x3c2b7d(0x21d)]===0x0)return _0x4c62a6;let _0x1fd665=a[_0x3c2b7d(0x13b)]['deepClone'](_0x4c62a6[_0x3c2b7d(0x38b)][0x0]);for(let _0x7d53bc=0x0;_0x7d53bc<_0x41d53c[_0x3c2b7d(0x21d)];_0x7d53bc++){const _0x14c0b5={'id':_0x3c2b7d(0x3a3),'params':{..._0x41d53c[_0x7d53bc]}},_0x1dcd0a=this['_transformService'][_0x3c2b7d(0x22f)](_0x1fd665,_0x14c0b5,!0x1);if(m['isTransformMutationFailure'](_0x1dcd0a))throw _0x1dcd0a[_0x3c2b7d(0x172)];_0x1fd665=_0x1dcd0a[_0x3c2b7d(0x31d)];}return{...a[_0x3c2b7d(0x13b)]['deepClone'](_0x4c62a6),'mutations':[_0x1fd665]};}['_transformUndoRedoStack'](_0x19b8ce){const _0x3c09e7=_0x5ee2b4,{unitID:_0x3fb6bf}=_0x19b8ce,_0x41af6f=this[_0x3c09e7(0x18a)][_0x3c09e7(0x14a)](_0x3fb6bf)[_0x3c09e7(0x2bf)](b[_0x3c09e7(0x18b)]),{undoCache:_0x16d40b,redoCache:_0x15c428}=_0x41af6f[_0x3c09e7(0x369)]();if(_0x16d40b['length']===0x0||_0x15c428[_0x3c09e7(0x21d)]===0x0)return;const _0x2190b0=[],_0x58d9b6=[];let _0x171586=a[_0x3c09e7(0x13b)][_0x3c09e7(0x342)](_0x19b8ce[_0x3c09e7(0x38b)][0x0]),_0xe5de95=a[_0x3c09e7(0x13b)][_0x3c09e7(0x342)](_0x19b8ce['mutations'][0x0]);for(let _0x346f36=_0x16d40b[_0x3c09e7(0x21d)]-0x1;_0x346f36>=0x0;_0x346f36--){const _0x1f7155={'id':'doc.mutation.rich-text-editing','params':{..._0x16d40b[_0x346f36]}},_0x179283={'id':'doc.mutation.rich-text-editing','params':{..._0x15c428[_0x346f36]}},_0x1107df=this[_0x3c09e7(0x284)][_0x3c09e7(0x22f)](_0x171586,_0x1f7155,!0x1),_0x1cbfd2=this[_0x3c09e7(0x284)][_0x3c09e7(0x22f)](_0xe5de95,_0x179283,!0x1);if(m[_0x3c09e7(0x19d)](_0x1107df))throw _0x1107df[_0x3c09e7(0x172)];if(m['isTransformMutationFailure'](_0x1cbfd2))throw _0x1cbfd2[_0x3c09e7(0x172)];_0x2190b0[_0x3c09e7(0x1e2)](_0x1107df[_0x3c09e7(0x28e)][_0x3c09e7(0x3ae)]),_0x58d9b6[_0x3c09e7(0x1e2)](_0x1cbfd2[_0x3c09e7(0x28e)][_0x3c09e7(0x3ae)]),_0x171586=_0x1107df['m1Prime'],_0xe5de95=_0x1cbfd2[_0x3c09e7(0x31d)];}_0x41af6f[_0x3c09e7(0x340)]({'undoCache':_0x2190b0,'redoCache':_0x58d9b6});}[_0x5ee2b4(0x200)](_0x24adcf){const _0x5eb63a=_0x5ee2b4,{unitID:_0x4e7022}=_0x24adcf,_0x5d50c1=this[_0x5eb63a(0x18a)][_0x5eb63a(0x14a)](_0x4e7022)[_0x5eb63a(0x2bf)](b[_0x5eb63a(0x18b)]),_0x47cfd5=_0x5d50c1[_0x5eb63a(0x127)]();if(_0x47cfd5==null)return;const _0x229286=[{'id':_0x5eb63a(0x3a3),'params':{'unitId':_0x24adcf[_0x5eb63a(0x14c)],'actions':null,'textRanges':[_0x47cfd5]}}],_0x5bc95d=this['_transformService'][_0x5eb63a(0x307)](_0x24adcf,_0x229286);if(!m[_0x5eb63a(0x133)](_0x5bc95d))throw _0x5bc95d[_0x5eb63a(0x172)];const _0x21686d=_0x5bc95d['m2Prime'][0x0]['params'][_0x5eb63a(0x2fb)];Array['isArray'](_0x21686d)&&_0x21686d[_0x5eb63a(0x21d)]&&_0x5d50c1[_0x5eb63a(0x223)](_0x21686d[0x0]);}};J=qt([le(0x0,a['Inject'](a['Injector'])),le(0x1,m['ITransformService']),le(0x2,p[_0x5ee2b4(0x341)])],J);var Kt=Object[_0x5ee2b4(0x147)],zt=(_0x327a2b,_0x1946b4,_0x4c0d1c,_0x523347)=>{const _0x2b6804=_0x5ee2b4;for(var _0x12e1d9=_0x523347>0x1?void 0x0:_0x523347?Kt(_0x1946b4,_0x4c0d1c):_0x1946b4,_0x1c5068=_0x327a2b[_0x2b6804(0x21d)]-0x1,_0x24e4e1;_0x1c5068>=0x0;_0x1c5068--)(_0x24e4e1=_0x327a2b[_0x1c5068])&&(_0x12e1d9=_0x24e4e1(_0x12e1d9)||_0x12e1d9);return _0x12e1d9;},he=(_0x71912f,_0x20e882)=>(_0x5b025b,_0x853598)=>_0x20e882(_0x5b025b,_0x853598,_0x71912f);let Z=class{constructor(_0x237671,_0x246895,_0x1f422a){const _0x2c7012=_0x5ee2b4;this[_0x2c7012(0x170)]=_0x237671,this[_0x2c7012(0x284)]=_0x246895,this[_0x2c7012(0x16e)]=_0x1f422a;}['transformStateCache'](_0x282c06){const _0x116bcb=_0x5ee2b4;this[_0x116bcb(0x27e)](_0x282c06);}[_0x5ee2b4(0x126)](_0xeb838){const _0x4aec22=_0x5ee2b4,{unitID:_0x564136}=_0xeb838,{collaboration:_0x4016ed}=this['_docStateChangeManagerService'][_0x4aec22(0x142)](_0x564136);if(_0x4016ed[_0x4aec22(0x21d)]===0x0)return _0xeb838;let _0x3bb335=a[_0x4aec22(0x13b)][_0x4aec22(0x342)](_0xeb838[_0x4aec22(0x38b)][0x0]);for(let _0x5730b8=0x0;_0x5730b8<_0x4016ed[_0x4aec22(0x21d)];_0x5730b8++){const _0x4d9f54={'id':_0x4aec22(0x3a3),'params':{'unitId':_0x4016ed[_0x5730b8][_0x4aec22(0x2d3)],..._0x4016ed[_0x5730b8][_0x4aec22(0x266)]}},_0x7c4c54=this['_transformService']['transformMutation'](_0x3bb335,_0x4d9f54,!0x1);if(m[_0x4aec22(0x19d)](_0x7c4c54))throw _0x7c4c54[_0x4aec22(0x172)];_0x3bb335=_0x7c4c54[_0x4aec22(0x31d)];}return{...a[_0x4aec22(0x13b)]['deepClone'](_0xeb838),'mutations':[_0x3bb335]};}[_0x5ee2b4(0x27e)](_0x526e92){const _0x226d09=_0x5ee2b4,{unitID:_0x366bd6}=_0x526e92,{history:_0x363450,collaboration:_0x121483}=this['_docStateChangeManagerService']['getStateCache'](_0x366bd6);if(_0x363450[_0x226d09(0x21d)]===0x0&&_0x121483['length']===0x0)return;const _0x4fb9b4=[],_0x580204=[];let _0x149cf7=a[_0x226d09(0x13b)][_0x226d09(0x342)](_0x526e92['mutations'][0x0]),_0x554773=a['Tools']['deepClone'](_0x526e92['mutations'][0x0]);for(let _0x16d92b=_0x363450[_0x226d09(0x21d)]-0x1;_0x16d92b>=0x0;_0x16d92b--){const _0x416ab9={'id':_0x226d09(0x3a3),'params':{'unitId':_0x363450[_0x16d92b][_0x226d09(0x2d3)],..._0x363450[_0x16d92b][_0x226d09(0x189)]}},_0x1791df={'id':_0x226d09(0x3a3),'params':{'unitId':_0x363450[_0x16d92b][_0x226d09(0x2d3)],..._0x363450[_0x16d92b][_0x226d09(0x266)]}},_0x1a6f9e=this[_0x226d09(0x284)][_0x226d09(0x22f)](_0x149cf7,_0x416ab9,!0x1),_0xcff039=this['_transformService']['transformMutation'](_0x554773,_0x1791df,!0x1);if(m[_0x226d09(0x19d)](_0x1a6f9e))throw _0x1a6f9e[_0x226d09(0x172)];if(m[_0x226d09(0x19d)](_0xcff039))throw _0xcff039['error'];_0x4fb9b4[_0x226d09(0x1e2)]({..._0x363450[_0x16d92b],'undoState':_0x1a6f9e['m2Prime']['params'],'redoState':_0xcff039[_0x226d09(0x28e)]['params']}),_0x149cf7=_0x1a6f9e[_0x226d09(0x31d)],_0x554773=_0xcff039[_0x226d09(0x31d)];}_0x149cf7=a[_0x226d09(0x13b)][_0x226d09(0x342)](_0x526e92[_0x226d09(0x38b)][0x0]),_0x554773=a[_0x226d09(0x13b)][_0x226d09(0x342)](_0x526e92[_0x226d09(0x38b)][0x0]);for(let _0x4a8b4b=_0x121483[_0x226d09(0x21d)]-0x1;_0x4a8b4b>=0x0;_0x4a8b4b--){const _0x1bd704={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x121483[_0x4a8b4b][_0x226d09(0x2d3)],..._0x121483[_0x4a8b4b]['undoState']}},_0x4e60bb={'id':_0x226d09(0x3a3),'params':{'unitId':_0x121483[_0x4a8b4b][_0x226d09(0x2d3)],..._0x121483[_0x4a8b4b][_0x226d09(0x266)]}},_0x400433=this[_0x226d09(0x284)]['transformMutation'](_0x149cf7,_0x1bd704,!0x1),_0x178309=this[_0x226d09(0x284)][_0x226d09(0x22f)](_0x554773,_0x4e60bb,!0x1);if(m[_0x226d09(0x19d)](_0x400433))throw _0x400433[_0x226d09(0x172)];if(m[_0x226d09(0x19d)](_0x178309))throw _0x178309[_0x226d09(0x172)];_0x580204['unshift']({..._0x121483[_0x4a8b4b],'undoState':_0x400433[_0x226d09(0x28e)][_0x226d09(0x3ae)],'redoState':_0x178309[_0x226d09(0x28e)][_0x226d09(0x3ae)]}),_0x149cf7=_0x400433[_0x226d09(0x31d)],_0x554773=_0x178309[_0x226d09(0x31d)];}this[_0x226d09(0x16e)][_0x226d09(0x2f4)](_0x366bd6,{'history':_0x4fb9b4,'collaboration':_0x580204});}};Z=zt([he(0x0,a[_0x5ee2b4(0x210)](a[_0x5ee2b4(0x227)])),he(0x1,m[_0x5ee2b4(0x39a)]),he(0x2,a[_0x5ee2b4(0x210)](b['DocStateChangeManagerService']))],Z);var Jt=Object[_0x5ee2b4(0x147)],Zt=(_0x1f815c,_0x325cdd,_0xf0b62f,_0x20f585)=>{const _0x2d40e6=_0x5ee2b4;for(var _0x3138f2=_0x20f585>0x1?void 0x0:_0x20f585?Jt(_0x325cdd,_0xf0b62f):_0x325cdd,_0x5ad1c8=_0x1f815c[_0x2d40e6(0x21d)]-0x1,_0x4318d8;_0x5ad1c8>=0x0;_0x5ad1c8--)(_0x4318d8=_0x1f815c[_0x5ad1c8])&&(_0x3138f2=_0x4318d8(_0x3138f2)||_0x3138f2);return _0x3138f2;},Ne=(_0x50c276,_0x2f5df1)=>(_0x25b3b3,_0x2287d1)=>_0x2f5df1(_0x25b3b3,_0x2287d1,_0x50c276);let Q=class{constructor(_0x46af8c,_0x4058c){const _0x2dab31=_0x5ee2b4;this[_0x2dab31(0x170)]=_0x46af8c,this[_0x2dab31(0x284)]=_0x4058c;}[_0x5ee2b4(0x124)](_0xec6091){const _0x1d977a=_0x5ee2b4;var _0x5b586e;const _0x33aea9=this[_0x1d977a(0x170)][_0x1d977a(0x287)](Y['DocSelectionManagerService']),_0x519f17=(_0x5b586e=_0x33aea9[_0x1d977a(0x2dd)]())!=null?_0x5b586e:[];if(_0x519f17['length']===0x0)return;const _0x460a9a=_0xec6091[_0x1d977a(0x14c)],_0x679b71=[{'id':_0x1d977a(0x3a3),'params':{'unitId':_0x460a9a,'actions':null,'textRanges':_0x519f17}}],_0x17fe28=this[_0x1d977a(0x284)][_0x1d977a(0x307)](_0xec6091,_0x679b71);if(!m[_0x1d977a(0x133)](_0x17fe28))throw _0x17fe28[_0x1d977a(0x172)];const _0x6c7ae4=_0x17fe28[_0x1d977a(0x28e)][0x0]['params'][_0x1d977a(0x2fb)];Array['isArray'](_0x6c7ae4)&&_0x6c7ae4[_0x1d977a(0x21d)]&&_0x33aea9[_0x1d977a(0x24c)](_0x6c7ae4,{'unitId':_0x460a9a,'subUnitId':_0x460a9a},!0x1);}};Q=Zt([Ne(0x0,a[_0x5ee2b4(0x210)](a[_0x5ee2b4(0x227)])),Ne(0x1,m[_0x5ee2b4(0x39a)])],Q);var Qt=Object['getOwnPropertyDescriptor'],es=(_0x2ca827,_0x5c62b3,_0x5976b9,_0x342f6b)=>{const _0x5c7aef=_0x5ee2b4;for(var _0xad8229=_0x342f6b>0x1?void 0x0:_0x342f6b?Qt(_0x5c62b3,_0x5976b9):_0x5c62b3,_0x52f618=_0x2ca827[_0x5c7aef(0x21d)]-0x1,_0x4b25f2;_0x52f618>=0x0;_0x52f618--)(_0x4b25f2=_0x2ca827[_0x52f618])&&(_0xad8229=_0x4b25f2(_0xad8229)||_0xad8229);return _0xad8229;},U=(_0x3a62c6,_0x5e418a)=>(_0x181c1c,_0x5a3297)=>_0x5e418a(_0x181c1c,_0x5a3297,_0x3a62c6);let ee=class extends a[_0x5ee2b4(0x261)]{constructor(_0x91df44,_0x3c8ad7,_0x680c7c,_0x5aee19,_0x28902e,_0x1430a7,_0x21d1c5,_0x1a9f42){const _0x507609=_0x5ee2b4;super(),h(this,'_status$',new d['BehaviorSubject'](_['CollaborationStatus'][_0x507609(0x384)])),(this[_0x507609(0x16e)]=_0x91df44,this[_0x507609(0x1ab)]=_0x3c8ad7,this['_docTransformIMECacheService']=_0x680c7c,this[_0x507609(0x2ce)]=_0x5aee19,this[_0x507609(0x329)]=_0x28902e,this[_0x507609(0x15b)]=_0x1430a7,this['_messageService']=_0x21d1c5,this['_localeService']=_0x1a9f42,this[_0x507609(0x203)]());}[_0x5ee2b4(0x203)](){const _0x315e9c=_0x5ee2b4;this[_0x315e9c(0x15d)](this[_0x315e9c(0x1ab)][_0x315e9c(0x2be)]['subscribe'](_0x5251f3=>{const _0x582a71=_0x315e9c,_0x5b81a8=this[_0x582a71(0x16e)][_0x582a71(0x2dc)][_0x582a71(0x237)](_0x290b0f=>{const _0x1c287c=_0x582a71;if(_0x290b0f==null)return;const {unitId:_0x58cc23,redoState:_0x285ee3,commandId:_0x510ac7}=_0x290b0f;if(_0x58cc23!==_0x5251f3[_0x1c287c(0x14c)])return;const _0xb20f13={'id':_0x510ac7,'type':a[_0x1c287c(0x131)][_0x1c287c(0x225)],'params':{'unitId':_0x58cc23,'actions':_0x285ee3[_0x1c287c(0x2e0)],'textRanges':null}};_0x5251f3[_0x1c287c(0x28a)](_0xb20f13);});if(_0x5251f3[_0x582a71(0x15d)](_0x5b81a8),_0x5251f3 instanceof _['DocCollaborationEntity']){const _0x44cfc2={'onTransformIME':_0x18ca90=>this[_0x582a71(0x1b5)][_0x582a71(0x35d)](_0x18ca90),'onTransformState':_0x2a0093=>this[_0x582a71(0x2ce)][_0x582a71(0x2cf)](_0x2a0093),'onTransformSelections':_0x1d7738=>this[_0x582a71(0x329)][_0x582a71(0x124)](_0x1d7738),'onSyncEditingCollabCursor':_0x311b52=>this[_0x582a71(0x15b)]['syncEditingCollabCursor'](_0x311b52),'onTransformRemoteChangesetByIMECache':_0xa0a82e=>this[_0x582a71(0x1b5)][_0x582a71(0x126)](_0xa0a82e),'onTransformRemoteChangesetByStateCache':_0x58e535=>this[_0x582a71(0x2ce)][_0x582a71(0x126)](_0x58e535)};_0x5251f3[_0x582a71(0x38d)](_0x44cfc2);}}));}};ee=es([U(0x0,a[_0x5ee2b4(0x210)](b[_0x5ee2b4(0x34c)])),U(0x1,a[_0x5ee2b4(0x210)](_[_0x5ee2b4(0x313)])),U(0x2,a['Inject'](J)),U(0x3,a[_0x5ee2b4(0x210)](Z)),U(0x4,a[_0x5ee2b4(0x210)](Q)),U(0x5,a[_0x5ee2b4(0x210)](pe)),U(0x6,T[_0x5ee2b4(0x2c6)]),U(0x7,a[_0x5ee2b4(0x210)](a[_0x5ee2b4(0x201)]))],ee);var ts=Object[_0x5ee2b4(0x147)],ss=(_0x3312fd,_0x5910fb,_0x3f4382,_0x32156b)=>{const _0xb3b189=_0x5ee2b4;for(var _0x418a46=_0x32156b>0x1?void 0x0:_0x32156b?ts(_0x5910fb,_0x3f4382):_0x5910fb,_0x305225=_0x3312fd[_0xb3b189(0x21d)]-0x1,_0x43f282;_0x305225>=0x0;_0x305225--)(_0x43f282=_0x3312fd[_0x305225])&&(_0x418a46=_0x43f282(_0x418a46)||_0x418a46);return _0x418a46;},ue=(_0x2db9c7,_0x124732)=>(_0x1312af,_0x31d1dc)=>_0x124732(_0x1312af,_0x31d1dc,_0x2db9c7);let me=class extends a['Disposable']{constructor(_0x25edd5,_0x10babf,_0x1f1dcc){const _0x32cb19=_0x5ee2b4;super(),h(this,_0x32cb19(0x2d1),new Map()),h(this,_0x32cb19(0x177),new Map()),h(this,'_disabled',!0x1),(this[_0x32cb19(0x256)]=_0x25edd5,this[_0x32cb19(0x122)]=_0x10babf,this[_0x32cb19(0x233)]=_0x1f1dcc);}[_0x5ee2b4(0x2d4)](){const _0xabafea=_0x5ee2b4;this[_0xabafea(0x173)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get[_0x5ee2b4(0x2b1)](){const _0x130b90=_0x5ee2b4;return this[_0x130b90(0x177)];}[_0x5ee2b4(0x2a9)](){const _0x3b04f2=_0x5ee2b4;this[_0x3b04f2(0x37c)]()['then'](()=>super['dispose']());}async[_0x5ee2b4(0x149)](_0x456585){const _0xab5d20=_0x5ee2b4;return this[_0xab5d20(0x173)]?null:this[_0xab5d20(0x122)]['getItem'](_[_0xab5d20(0x215)](_0x456585));}async[_0x5ee2b4(0x281)](_0x372b06,_0x5d9007){const _0x5aa34a=_0x5ee2b4;return!!this[_0x5aa34a(0x122)][_0x5aa34a(0x304)](_0x372b06,_0x5d9007);}[_0x5ee2b4(0x315)](_0x13d808,_0x15b1fc,_0xf531e7,_0x2a930f){const _0x1b9207=_0x5ee2b4,_0x4ed978=this['_revisionService'][_0x1b9207(0x19c)](_0x13d808);this[_0x1b9207(0x2d1)][_0x1b9207(0x379)](_0x13d808,{'unitID':_0x13d808,'type':_0x15b1fc,'awaitingChangeset':_0xf531e7,'mutations':_0x2a930f,'rev':_0x4ed978}),this[_0x1b9207(0x177)][_0x1b9207(0x1df)](_0x13d808)||this[_0x1b9207(0x23a)](_0x13d808);}['_scheduleSaving'](_0x331108){const _0x49b925=_0x5ee2b4,_0x1abdcf=this[_0x49b925(0x389)]();_0x1abdcf===0x0?this['_saveCache'](_0x331108):this[_0x49b925(0x177)]['set'](_0x331108,setTimeout(()=>this[_0x49b925(0x3aa)](_0x331108),_0x1abdcf));}[_0x5ee2b4(0x389)](){const _0x2994ec=_0x5ee2b4;var _0xed5bcb;return(_0xed5bcb=this[_0x2994ec(0x256)][_0x2994ec(0x1c3)](_[_0x2994ec(0x39c)]))!=null?_0xed5bcb:_['LOCAL_CACHE_INTERVAL'];}[_0x5ee2b4(0x3aa)](_0x1e6655){const _0x44550e=_0x5ee2b4,_0x2b281c=this[_0x44550e(0x177)][_0x44550e(0x287)](_0x1e6655);return _0x2b281c!==void 0x0&&window[_0x44550e(0x2a2)](_0x2b281c),this[_0x44550e(0x122)]['setItem'](_[_0x44550e(0x215)](_0x1e6655),this[_0x44550e(0x2d1)]['get'](_0x1e6655))['then'](()=>this['_saveTaskMap'][_0x44550e(0x220)](_0x1e6655));}async[_0x5ee2b4(0x37c)](){const _0x34507b=_0x5ee2b4,_0x76b901=[];this['_saveTaskMap'][_0x34507b(0x294)]((_0x31bd7e,_0x4e00cd)=>{const _0x316c65=_0x34507b;window[_0x316c65(0x2a2)](_0x31bd7e),_0x76b901[_0x316c65(0x382)](this[_0x316c65(0x3aa)](_0x4e00cd)[_0x316c65(0x231)](()=>{const _0x2b66e5=_0x316c65;this[_0x2b66e5(0x177)][_0x2b66e5(0x220)](_0x4e00cd);}));}),await Promise['all'](_0x76b901);}};me=ss([ue(0x0,a[_0x5ee2b4(0x371)]),ue(0x1,a[_0x5ee2b4(0x378)]),ue(0x2,a[_0x5ee2b4(0x210)](m['RevisionService']))],me);class He extends a[_0x5ee2b4(0x38e)]{constructor(){const _0x43b606=_0x5ee2b4;super(),h(this,'urlChange$'),this['urlChange$']=d[_0x43b606(0x30c)](window,_0x43b606(0x221))[_0x43b606(0x22a)](d['takeUntil'](this[_0x43b606(0x240)]),d[_0x43b606(0x331)](0x1),d[_0x43b606(0x16f)](void 0x0));}[_0x5ee2b4(0x365)](_0x47d434,_0x1f15bc,_0x5e1d8f=!0x1){const _0x228118=_0x5ee2b4,_0x1b7838=new URL(window[_0x228118(0x36e)][_0x228118(0x15f)]);_0x1b7838[_0x228118(0x21e)][_0x228118(0x379)](_0x47d434,_0x1f15bc),_0x5e1d8f?window[_0x228118(0x185)][_0x228118(0x1d2)]('','',_0x1b7838[_0x228118(0x1ba)]()):window['history']['pushState']('','',_0x1b7838[_0x228118(0x1ba)]());}[_0x5ee2b4(0x275)](_0x195d81,_0x363632=!0x1){const _0x1f3dd7=_0x5ee2b4,_0x418cfa=new URL(window[_0x1f3dd7(0x36e)][_0x1f3dd7(0x15f)]);_0x418cfa['searchParams'][_0x1f3dd7(0x220)](_0x195d81),_0x363632?window[_0x1f3dd7(0x185)]['replaceState']('','',_0x418cfa[_0x1f3dd7(0x1ba)]()):window[_0x1f3dd7(0x185)][_0x1f3dd7(0x335)]('','',_0x418cfa[_0x1f3dd7(0x1ba)]());}[_0x5ee2b4(0x246)](_0x294fdd){const _0xc6e487=_0x5ee2b4;var _0x3f59f9;return(_0x3f59f9=new URL(window['location'][_0xc6e487(0x15f)])['searchParams']['get'](_0x294fdd))!=null?_0x3f59f9:void 0x0;}}var ns=Object[_0x5ee2b4(0x351)],is=Object['getOwnPropertyDescriptor'],rs=(_0x3d705d,_0xc0a4db,_0x95af9b)=>_0xc0a4db in _0x3d705d?ns(_0x3d705d,_0xc0a4db,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x95af9b}):_0x3d705d[_0xc0a4db]=_0x95af9b,os=(_0x36052a,_0x2613be,_0xa65513,_0x5382b6)=>{const _0x82e141=_0x5ee2b4;for(var _0x1a37c5=_0x5382b6>0x1?void 0x0:_0x5382b6?is(_0x2613be,_0xa65513):_0x2613be,_0x2af254=_0x36052a[_0x82e141(0x21d)]-0x1,_0xa22ee1;_0x2af254>=0x0;_0x2af254--)(_0xa22ee1=_0x36052a[_0x2af254])&&(_0x1a37c5=_0xa22ee1(_0x1a37c5)||_0x1a37c5);return _0x1a37c5;},_e=(_0x4afbd4,_0x32b2d4)=>(_0x2a07d6,_0x115d63)=>_0x32b2d4(_0x2a07d6,_0x115d63,_0x4afbd4),as=(_0x589092,_0x14f9e9,_0x290b64)=>rs(_0x589092,_0x14f9e9+'',_0x290b64);const cs=_0x5ee2b4(0x180);exports[_0x5ee2b4(0x385)]=class extends a[_0x5ee2b4(0x1cc)]{constructor(_0x4d08ad=Pe,_0x4bcca1,_0x5e99bc,_0x222ddb){const _0x57d502=_0x5ee2b4;super(),this[_0x57d502(0x3a6)]=_0x4d08ad,this[_0x57d502(0x18a)]=_0x4bcca1,this[_0x57d502(0x170)]=_0x5e99bc,this[_0x57d502(0x256)]=_0x222ddb;const {..._0x2464cf}=a[_0x57d502(0x24f)]({},Pe,this['_config']);this[_0x57d502(0x256)][_0x57d502(0x387)](Yt,_0x2464cf);}['onStarting'](){const _0x57a82f=_0x5ee2b4;this[_0x57a82f(0x262)](),this[_0x57a82f(0x2ff)]();}[_0x5ee2b4(0x11c)](){const _0x5982df=_0x5ee2b4;this[_0x5982df(0x321)]();}['_registerDependencies'](){const _0x40ff46=_0x5ee2b4;var _0x4440a6;const _0x160cdb=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':He}],[q[_0x40ff46(0x39f)],{'useClass':q[_0x40ff46(0x2f9)]}],[_['ILocalCacheService'],{'useClass':me}],[exports[_0x40ff46(0x2f1)]],[ee],[z],[x],[fe],[exports['CollaborationDataLoaderController']]];a[_0x40ff46(0x2c2)](this[_0x40ff46(0x170)],a[_0x40ff46(0x1da)](_0x160cdb,(_0x4440a6=this[_0x40ff46(0x3a6)])==null?void 0x0:_0x4440a6[_0x40ff46(0x1c2)]));}['_registerRenderDependencies'](){const _0x3a1488=_0x5ee2b4;this[_0x3a1488(0x15d)](this[_0x3a1488(0x18a)]['registerRenderModule'](a[_0x3a1488(0x157)][_0x3a1488(0x2f6)],[ge])),this['disposeWithMe'](this[_0x3a1488(0x18a)]['registerRenderModule'](a[_0x3a1488(0x157)]['UNIVER_SHEET'],[Ie]));}[_0x5ee2b4(0x2ff)](){const _0x448157=_0x5ee2b4;a[_0x448157(0x283)](this[_0x448157(0x170)],[[x],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[exports[_0x448157(0x1a8)]]]);}},as(exports[_0x5ee2b4(0x385)],_0x5ee2b4(0x391),cs),exports['UniverCollaborationClientUIPlugin']=os([a['DependentOn'](_[_0x5ee2b4(0x1dd)]),_e(0x1,p['IRenderManagerService']),_e(0x2,a['Inject'](a['Injector'])),_e(0x3,a[_0x5ee2b4(0x371)])],exports[_0x5ee2b4(0x385)]);var ls=Object[_0x5ee2b4(0x147)],hs=(_0x544e72,_0x35ed17,_0x5aa4a9,_0x25e7ec)=>{for(var _0x569ea7=_0x25e7ec>0x1?void 0x0:_0x25e7ec?ls(_0x35ed17,_0x5aa4a9):_0x35ed17,_0x32a571=_0x544e72['length']-0x1,_0x27fed6;_0x32a571>=0x0;_0x32a571--)(_0x27fed6=_0x544e72[_0x32a571])&&(_0x569ea7=_0x27fed6(_0x569ea7)||_0x569ea7);return _0x569ea7;},F=(_0x276700,_0x438f4d)=>(_0xc071f2,_0x3a28a3)=>_0x438f4d(_0xc071f2,_0x3a28a3,_0x276700);exports[_0x5ee2b4(0x1ad)]=class extends _[_0x5ee2b4(0x30b)]{constructor(_0x4b11db,_0xbba33f,_0x132666,_0x2b8280,_0x589a83){super(_0x4b11db,_0xbba33f,_0x132666,_0x2b8280,_0x589a83);}async[_0x5ee2b4(0x159)](_0x40b443){const _0x4a5d85=_0x5ee2b4,_0xfbb2b6=await this[_0x4a5d85(0x394)](),_0x37fb89=this[_0x4a5d85(0x1f8)](_0x40b443,_0xfbb2b6);return this[_0x4a5d85(0x2f3)](_0x37fb89);}[_0x5ee2b4(0x1f8)](_0x2cc4fe,_0x1a88a4){const _0x29a2eb=_0x5ee2b4,_0x1d655d=typeof window>'u'?new URL(_0x2cc4fe):new URL(_0x2cc4fe,window[_0x29a2eb(0x36e)][_0x29a2eb(0x1a3)]);_0x1d655d['searchParams'][_0x29a2eb(0x379)](_0x29a2eb(0x279),_0x1a88a4);const _0x52d962=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x29a2eb(0x39d)]);return _0x52d962[_0x29a2eb(0x287)]('runId')&&_0x1d655d[_0x29a2eb(0x21e)][_0x29a2eb(0x379)]('runId',_0x52d962[_0x29a2eb(0x287)](_0x29a2eb(0x2c3))),_0x1d655d['toString']();}async[_0x5ee2b4(0x394)](){const _0x383da0=_0x5ee2b4;var _0x500fb7,_0x138636,_0x4e4a1c;const _0x2d32bc=this[_0x383da0(0x256)]['getConfig'](_[_0x383da0(0x161)]),_0x5cf9fe=(_0x500fb7=_0x2d32bc==null?void 0x0:_0x2d32bc[_0x383da0(0x1b0)])!=null?_0x500fb7:_['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x4e4a1c=(_0x138636=(await this['_httpService'][_0x383da0(0x287)](_0x5cf9fe,{'headers':{'Content-Type':_0x383da0(0x376)}}))[_0x383da0(0x26f)])==null?void 0x0:_0x138636[_0x383da0(0x285)])!=null?_0x4e4a1c:'';}},exports['BrowserCollaborationSocketService']=hs([F(0x0,a[_0x5ee2b4(0x210)](a[_0x5ee2b4(0x227)])),F(0x1,a[_0x5ee2b4(0x210)](q[_0x5ee2b4(0x1f3)])),F(0x2,a[_0x5ee2b4(0x371)]),F(0x3,a[_0x5ee2b4(0x2ca)]),F(0x4,m[_0x5ee2b4(0x363)])],exports[_0x5ee2b4(0x1ad)]);const we=0x7530,Le=_0x5ee2b4(0x11f);class us extends a[_0x5ee2b4(0x261)]{constructor(){const _0x18d4db=_0x5ee2b4;super(),h(this,_0x18d4db(0x38c),a[_0x18d4db(0x2a6)]()),h(this,'_selfUnitIDs',new Set()),h(this,_0x18d4db(0x39e),new Map()),h(this,_0x18d4db(0x1fa),null),h(this,_0x18d4db(0x15c),new Map()),h(this,_0x18d4db(0x1db),new Map()),this[_0x18d4db(0x1f5)]();}[_0x5ee2b4(0x2a9)](){const _0x1d4da0=_0x5ee2b4;super[_0x1d4da0(0x2a9)](),this[_0x1d4da0(0x15c)][_0x1d4da0(0x294)]((_0x2fa644,_0x140aed)=>this[_0x1d4da0(0x13f)](_0x140aed)),this[_0x1d4da0(0x1fa)]&&window[_0x1d4da0(0x3a8)](this[_0x1d4da0(0x1fa)]);}[_0x5ee2b4(0x2d6)](_0x7aced8){const _0x439829=_0x5ee2b4;return this['_ensureSubject'](_0x7aced8)[_0x439829(0x22a)](d[_0x439829(0x123)]());}[_0x5ee2b4(0x242)](_0x566c3b){const _0x3d6c07=_0x5ee2b4;this[_0x3d6c07(0x253)]['size']===0x0&&this[_0x3d6c07(0x318)](),this[_0x3d6c07(0x253)][_0x3d6c07(0x36d)](_0x566c3b),this['_send']({'type':0x0,'memberID':this[_0x3d6c07(0x38c)],'unitIDs':[_0x566c3b],'isForwarded':!0x1});}[_0x5ee2b4(0x1cf)](_0x32c61c){const _0x54c6fa=_0x5ee2b4;this['_selfUnitIDs'][_0x54c6fa(0x220)](_0x32c61c),this[_0x54c6fa(0x253)][_0x54c6fa(0x398)]===0x0&&this[_0x54c6fa(0x1fa)]&&window[_0x54c6fa(0x3a8)](this[_0x54c6fa(0x1fa)]);}[_0x5ee2b4(0x1f5)](){const _0x4bcf75=_0x5ee2b4;this[_0x4bcf75(0x15d)](a[_0x4bcf75(0x1ca)](d['fromEvent'](window,_0x4bcf75(0x2c9))['subscribe'](_0x328806=>{const _0x261849=_0x4bcf75;if(_0x328806['key']!==Le||!_0x328806[_0x261849(0x1bd)])return;const _0x1745c8=JSON[_0x261849(0x188)](_0x328806[_0x261849(0x1bd)]);this[_0x261849(0x2d5)](_0x1745c8);}))),window[_0x4bcf75(0x2d0)](_0x4bcf75(0x1d8),()=>this['_send']({'type':0x1,'memberID':this[_0x4bcf75(0x38c)],'unitIDs':Array['from'](this[_0x4bcf75(0x253)])}));}[_0x5ee2b4(0x2d5)](_0x240287){const _0x4115c2=_0x5ee2b4;switch(_0x240287[_0x4115c2(0x362)]){case 0x0:this[_0x4115c2(0x245)](_0x240287);break;case 0x1:this[_0x4115c2(0x2c5)](_0x240287);break;case 0x2:this[_0x4115c2(0x2ee)](_0x240287);break;}}['_handleJoinEvent'](_0x16170f){const _0x50309c=_0x5ee2b4,{unitIDs:_0x4ff0e7,memberID:_0x186a46,isForwarded:_0x325e85}=_0x16170f;_0x4ff0e7['forEach'](_0x54f2e9=>{const _0x3b84d4=_0x2347;if(!_0x325e85&&this[_0x3b84d4(0x39e)]['has'](_0x54f2e9)&&this[_0x3b84d4(0x2e9)](_0x54f2e9)['next'](_[_0x3b84d4(0x16c)][_0x3b84d4(0x24d)]),!this[_0x3b84d4(0x39e)][_0x3b84d4(0x1df)](_0x54f2e9)||!this[_0x3b84d4(0x39e)][_0x3b84d4(0x287)](_0x54f2e9)[_0x3b84d4(0x1df)](_0x186a46)){const _0x76ea82=this[_0x3b84d4(0x39e)]['get'](_0x54f2e9)||new Set();_0x76ea82[_0x3b84d4(0x36d)](_0x186a46),this[_0x3b84d4(0x39e)][_0x3b84d4(0x379)](_0x54f2e9,_0x76ea82),this['_scheduleClearOtherTimer'](_0x186a46);}}),_0x325e85||this[_0x50309c(0x154)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x50309c(0x253)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x50afeb){const _0x1ea94f=_0x5ee2b4;this['_removeClearOtherTimer'](_0x50afeb);const _0x85976=window[_0x1ea94f(0x151)](()=>{const _0x3d64d7=_0x1ea94f;this[_0x3d64d7(0x39e)][_0x3d64d7(0x294)](_0x17fe9f=>{const _0x19ac89=_0x3d64d7;_0x17fe9f[_0x19ac89(0x220)](_0x50afeb);});},we*0x2);this[_0x1ea94f(0x15c)][_0x1ea94f(0x379)](_0x50afeb,_0x85976);}[_0x5ee2b4(0x13f)](_0x3f41ea){const _0x11c776=_0x5ee2b4;if(this[_0x11c776(0x15c)][_0x11c776(0x1df)](_0x3f41ea)){const _0x337327=this[_0x11c776(0x15c)]['get'](_0x3f41ea);_0x337327&&window[_0x11c776(0x2a2)](_0x337327),this['_clearOtherTimers']['set'](_0x3f41ea,null);}}[_0x5ee2b4(0x2c5)](_0xf47ec8){const _0x2f4d9c=_0x5ee2b4,{memberID:_0x451e52,unitIDs:_0x37563d}=_0xf47ec8;_0x37563d['forEach'](_0x4217ec=>{const _0x19ef78=_0x2347;var _0x45b6a0;const _0x5f4d3a=this['_unitOnClients'][_0x19ef78(0x287)](_0x4217ec);_0x5f4d3a&&(_0x5f4d3a[_0x19ef78(0x220)](_0x451e52),(_0x45b6a0=this[_0x19ef78(0x2e9)](_0x4217ec))==null||_0x45b6a0['next'](_0x5f4d3a[_0x19ef78(0x398)]===0x0?_[_0x19ef78(0x16c)]['NO_OTHER_CLIENTS_EDITING']:_['UnitStatus'][_0x19ef78(0x24d)]));}),this[_0x2f4d9c(0x13f)](_0x451e52);}[_0x5ee2b4(0x2ee)](_0x4d170f){const _0x2686f9=_0x5ee2b4;this[_0x2686f9(0x314)](_0x4d170f[_0x2686f9(0x32a)]);}[_0x5ee2b4(0x154)](_0x241fcf){const _0x14167d=_0x5ee2b4;localStorage[_0x14167d(0x304)](Le,JSON[_0x14167d(0x302)](_0x241fcf));}[_0x5ee2b4(0x318)](){const _0x21be2f=_0x5ee2b4;this[_0x21be2f(0x1fa)]=window['setInterval'](()=>{const _0x6d187d=_0x21be2f;this['_send']({'type':0x2,'memberID':this[_0x6d187d(0x38c)]});},we);}['_ensureSubject'](_0x171e51){const _0x1f7f79=_0x5ee2b4;return this[_0x1f7f79(0x1db)][_0x1f7f79(0x1df)](_0x171e51)||this[_0x1f7f79(0x1db)][_0x1f7f79(0x379)](_0x171e51,new d[(_0x1f7f79(0x211))](_[_0x1f7f79(0x16c)][_0x1f7f79(0x317)])),this[_0x1f7f79(0x1db)]['get'](_0x171e51);}}var We=(_0x1d6aac=>(_0x1d6aac[_0x1d6aac[_0x5ee2b4(0x2e6)]=0x0]='UNDEFINED',_0x1d6aac[_0x1d6aac['OK']=0x1]='OK',_0x1d6aac[_0x1d6aac[_0x5ee2b4(0x392)]=0x2]=_0x5ee2b4(0x392),_0x1d6aac[_0x1d6aac['PERMISSION_DENIED']=0x3]=_0x5ee2b4(0x1ed),_0x1d6aac[_0x1d6aac['NOT_FOUND']=0x4]=_0x5ee2b4(0x32f),_0x1d6aac[_0x1d6aac['UNAUTHENTICATED']=0x5]=_0x5ee2b4(0x305),_0x1d6aac[_0x1d6aac['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x1d6aac[_0x1d6aac[_0x5ee2b4(0x36f)]=0x7]=_0x5ee2b4(0x36f),_0x1d6aac[_0x1d6aac[_0x5ee2b4(0x360)]=0x8]=_0x5ee2b4(0x360),_0x1d6aac[_0x1d6aac[_0x5ee2b4(0x14b)]=0x9]=_0x5ee2b4(0x14b),_0x1d6aac[_0x1d6aac[_0x5ee2b4(0x1c5)]=0x1389]=_0x5ee2b4(0x1c5),_0x1d6aac[_0x1d6aac[_0x5ee2b4(0x344)]=0x1771]=_0x5ee2b4(0x344),_0x1d6aac[_0x1d6aac[_0x5ee2b4(0x25c)]=0x1772]=_0x5ee2b4(0x25c),_0x1d6aac[_0x1d6aac['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x5ee2b4(0x2cc),_0x1d6aac[_0x1d6aac[_0x5ee2b4(0x182)]=0x1b59]=_0x5ee2b4(0x182),_0x1d6aac[_0x1d6aac[_0x5ee2b4(0x2f0)]=0x1b5a]=_0x5ee2b4(0x2f0),_0x1d6aac[_0x1d6aac['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x1d6aac[_0x1d6aac['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x1d6aac[_0x1d6aac[_0x5ee2b4(0x1e3)]=0x1b5d]=_0x5ee2b4(0x1e3),_0x1d6aac[_0x1d6aac[_0x5ee2b4(0x2f5)]=0x1f41]=_0x5ee2b4(0x2f5),_0x1d6aac[_0x1d6aac['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x5ee2b4(0x23d),_0x1d6aac[_0x1d6aac[_0x5ee2b4(0x20d)]=0x232a]=_0x5ee2b4(0x20d),_0x1d6aac[_0x1d6aac['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x1d6aac[_0x1d6aac[_0x5ee2b4(0x24e)]=0x232c]=_0x5ee2b4(0x24e),_0x1d6aac[_0x1d6aac[_0x5ee2b4(0x1b3)]=0x232d]=_0x5ee2b4(0x1b3),_0x1d6aac[_0x1d6aac[_0x5ee2b4(0x272)]=0x2711]=_0x5ee2b4(0x272),_0x1d6aac[_0x1d6aac['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x5ee2b4(0x386),_0x1d6aac[_0x1d6aac['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x5ee2b4(0x325),_0x1d6aac[_0x1d6aac[_0x5ee2b4(0x2b3)]=0x2714]=_0x5ee2b4(0x2b3),_0x1d6aac[_0x1d6aac[_0x5ee2b4(0x309)]=0x2af9]=_0x5ee2b4(0x309),_0x1d6aac[_0x1d6aac['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x1d6aac))(We||{}),_s=Object['getOwnPropertyDescriptor'],ds=(_0x54f5dc,_0x58f556,_0x4ab08d,_0x3761c4)=>{const _0x5d8ff1=_0x5ee2b4;for(var _0x24a06d=_0x3761c4>0x1?void 0x0:_0x3761c4?_s(_0x58f556,_0x4ab08d):_0x58f556,_0x32bacf=_0x54f5dc[_0x5d8ff1(0x21d)]-0x1,_0x9f301b;_0x32bacf>=0x0;_0x32bacf--)(_0x9f301b=_0x54f5dc[_0x32bacf])&&(_0x24a06d=_0x9f301b(_0x24a06d)||_0x24a06d);return _0x24a06d;},de=(_0x39ee41,_0x2455d9)=>(_0x5ebd21,_0x208163)=>_0x2455d9(_0x5ebd21,_0x208163,_0x39ee41);exports['RemoteUniscriptService']=class extends a[_0x5ee2b4(0x261)]{constructor(_0x18c9b1,_0x255920,_0x54dfe7){const _0x3b6c9c=_0x5ee2b4;super(),this[_0x3b6c9c(0x361)]=_0x18c9b1,this[_0x3b6c9c(0x120)]=_0x255920,this[_0x3b6c9c(0x256)]=_0x54dfe7;}async[_0x5ee2b4(0x2bc)](_0x1f7303,_0x382fa2,_0x298dae,..._0x5a52cd){const _0x135a12=_0x5ee2b4;var _0x273214,_0x15277b,_0x1cf3dc,_0x3534a1;const _0x169cfa=this[_0x135a12(0x361)]['getFocusedUnit']();if(!_0x169cfa)throw new Error(_0x135a12(0x144));const _0x732355=((_0x273214=this[_0x135a12(0x256)]['getConfig'](_[_0x135a12(0x34e)]))!=null?_0x273214:_['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x1f7303+_0x135a12(0x347)+_0x382fa2,_0x1825da=new URL(window['location'][_0x135a12(0x15f)]),_0x274bdb={'scriptId':_0x1f7303,'runId':(_0x15277b=_0x1825da['searchParams'][_0x135a12(0x287)](_0x135a12(0x2c3)))!=null?_0x15277b:'','function':_0x382fa2,'unitId':_0x169cfa['getUnitId'](),'argsOfFunction':JSON[_0x135a12(0x302)](_0x5a52cd),'invokeId':(_0x1cf3dc=_0x298dae[_0x135a12(0x1eb)])!=null?_0x1cf3dc:'','executionId':(_0x3534a1=_0x298dae['executionId'])!=null?_0x3534a1:''};try{const _0x188e6b=await this[_0x135a12(0x120)][_0x135a12(0x25d)](_0x732355,{'body':_0x274bdb});return _0x188e6b[_0x135a12(0x26f)][_0x135a12(0x172)]&&_0x188e6b[_0x135a12(0x26f)][_0x135a12(0x172)][_0x135a12(0x20a)]!==We['OK']?_0x135a12(0x27b):_0x188e6b[_0x135a12(0x26f)]['result'];}catch{return'Failed';}}},exports[_0x5ee2b4(0x2e4)]=ds([de(0x0,a['IUniverInstanceService']),de(0x1,a[_0x5ee2b4(0x210)](q['HTTPService'])),de(0x2,a[_0x5ee2b4(0x371)])],exports[_0x5ee2b4(0x2e4)]),exports[_0x5ee2b4(0x2c4)]=Be,exports[_0x5ee2b4(0x18c)]=Ee,exports['SheetCollabCursorShape']=Ae,exports[_0x5ee2b4(0x297)]=us,exports[_0x5ee2b4(0x1d4)]=He;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xcd4b1a=_0x45c4;(function(_0x2110bb,_0x5b442f){const _0x9f7783=_0x45c4,_0x29a387=_0x2110bb();while(!![]){try{const _0x1914ea=parseInt(_0x9f7783(0x194))/0x1+-parseInt(_0x9f7783(0x1a4))/0x2+-parseInt(_0x9f7783(0x198))/0x3*(-parseInt(_0x9f7783(0x191))/0x4)+-parseInt(_0x9f7783(0x1a0))/0x5+-parseInt(_0x9f7783(0x1a3))/0x6+-parseInt(_0x9f7783(0x18e))/0x7+-parseInt(_0x9f7783(0x1a2))/0x8*(-parseInt(_0x9f7783(0x19d))/0x9);if(_0x1914ea===_0x5b442f)break;else _0x29a387['push'](_0x29a387['shift']());}catch(_0x3f577e){_0x29a387['push'](_0x29a387['shift']());}}}(_0x6e5a,0xb2d0d));function _0x45c4(_0x2dcc3e,_0x2de68e){const _0x6e5a34=_0x6e5a();return _0x45c4=function(_0x45c49,_0x17c540){_0x45c49=_0x45c49-0x18c;let _0x52e503=_0x6e5a34[_0x45c49];return _0x52e503;},_0x45c4(_0x2dcc3e,_0x2de68e);}const e={'collab-client':{'tooltip':{'reconnect':_0xcd4b1a(0x19b)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0xcd4b1a(0x199),'notCollab':_0xcd4b1a(0x19c),'synced':_0xcd4b1a(0x19f),'syncing':_0xcd4b1a(0x195),'offline':_0xcd4b1a(0x190)},'session':{'connection-failed':_0xcd4b1a(0x18d),'will-retry':_0xcd4b1a(0x197),'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':_0xcd4b1a(0x1a1),'content':_0xcd4b1a(0x196)},'permission':{'title':_0xcd4b1a(0x18c),'content':_0xcd4b1a(0x19e)},'collaboration':{'single-unit':{'warning':_0xcd4b1a(0x192)},'closeRoom':_0xcd4b1a(0x18f)},'auth':{'needGotoLoginAlert':_0xcd4b1a(0x19a)}};function _0x6e5a(){const _0x4ae550=['1552089PsngZz','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','1950136woSyVl','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','exports','1089874yGXXlF','Syncing...','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.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','6FtqyzM','Edit\x20conflicts','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Click\x20to\x20Reconnect','Local\x20file','252seTqLx','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Synced','5388965iiQvne','Collaboration\x20Conflict','608480RYZTjv','7682502KKeMYK','1764512IGGImr','Authentication\x20Error','Connection\x20failed,\x20please\x20check\x20your\x20network.'];_0x6e5a=function(){return _0x4ae550;};return _0x6e5a();}module[_0xcd4b1a(0x193)]=e;
|