@univerjs-pro/collaboration-client-ui 0.6.10-nightly.202504191606 → 0.6.10-nightly.202504201606
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/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/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 +15 -15
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x64ade9=_0x5795;(function(_0x3c88ca,_0x746fef){const _0x4aa34e=_0x5795,_0x4fcd5b=_0x3c88ca();while(!![]){try{const _0xf20154=-parseInt(_0x4aa34e(0x1cb))/0x1+parseInt(_0x4aa34e(0x1ca))/0x2*(-parseInt(_0x4aa34e(0x1d3))/0x3)+-parseInt(_0x4aa34e(0x1cd))/0x4*(parseInt(_0x4aa34e(0x1d8))/0x5)+parseInt(_0x4aa34e(0x1d1))/0x6+-parseInt(_0x4aa34e(0x1d6))/0x7+-parseInt(_0x4aa34e(0x1d2))/0x8*(parseInt(_0x4aa34e(0x1cf))/0x9)+parseInt(_0x4aa34e(0x1d9))/0xa*(parseInt(_0x4aa34e(0x1d5))/0xb);if(_0xf20154===_0x746fef)break;else _0x4fcd5b['push'](_0x4fcd5b['shift']());}catch(_0x19230b){_0x4fcd5b['push'](_0x4fcd5b['shift']());}}}(_0x8d11,0xd841e));function _0x5795(_0x13713a,_0x52eedb){const _0x8d11d6=_0x8d11();return _0x5795=function(_0x5795ca,_0x32b12e){_0x5795ca=_0x5795ca-0x1c8;let _0x5eb9a3=_0x8d11d6[_0x5795ca];return _0x5eb9a3;},_0x5795(_0x13713a,_0x52eedb);}function _0x8d11(){const _0x2dd450=['8nexopo','extend','12783249wZDBDa','_injector','10400586ppZnBH','8EIOUTr','57465YagKjr','FUniver','6589ofdlBI','11691624CdYpAk','runOnServer','2116945kxXmVG','94370ipvzVE','@univerjs/core/facade','@univerjs-pro/collaboration-client-ui','170yQCpLT','934858LdwmHQ','get'];_0x8d11=function(){return _0x2dd450;};return _0x8d11();}const t=require(_0x64ade9(0x1c9)),e=require(_0x64ade9(0x1c8));class c extends e['FUniver']{[_0x64ade9(0x1d7)](_0x3b0d6a,_0x5a7cb7,..._0x2fd52a){const _0x2c0c0d=_0x64ade9;return this[_0x2c0c0d(0x1d0)][_0x2c0c0d(0x1cc)](t['RemoteUniscriptService'])[_0x2c0c0d(0x1d7)](_0x3b0d6a,_0x5a7cb7,{},..._0x2fd52a);}}e[_0x64ade9(0x1d4)][_0x64ade9(0x1ce)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x4b2219=_0x45c8;(function(_0x3696f9,_0x482427){const _0x1a6a05=_0x45c8,_0x579b09=_0x3696f9();while(!![]){try{const _0x16b683=-parseInt(_0x1a6a05(0x356))/0x1+-parseInt(_0x1a6a05(0x37a))/0x2+-parseInt(_0x1a6a05(0x337))/0x3*(-parseInt(_0x1a6a05(0x3d8))/0x4)+-parseInt(_0x1a6a05(0x2c0))/0x5+parseInt(_0x1a6a05(0x2c3))/0x6+-parseInt(_0x1a6a05(0x2e7))/0x7*(parseInt(_0x1a6a05(0x230))/0x8)+parseInt(_0x1a6a05(0x329))/0x9;if(_0x16b683===_0x482427)break;else _0x579b09['push'](_0x579b09['shift']());}catch(_0x53d4d0){_0x579b09['push'](_0x579b09['shift']());}}}(_0x47dc,0x8f6ad));var Xe=Object[_0x4b2219(0x405)],Ge=(_0x4e71c3,_0x35903c,_0x117c15)=>_0x35903c in _0x4e71c3?Xe(_0x4e71c3,_0x35903c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x117c15}):_0x4e71c3[_0x35903c]=_0x117c15,_=(_0x1f0d24,_0x2dc747,_0x133131)=>Ge(_0x1f0d24,typeof _0x2dc747!=_0x4b2219(0x2c4)?_0x2dc747+'':_0x2dc747,_0x133131);Object['defineProperty'](exports,Symbol[_0x4b2219(0x1d9)],{'value':_0x4b2219(0x3e9)});function _0x47dc(){const _0x26461a=['bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getOwnPropertyDescriptor','handleInsertRow','syncEditingCollabCursor','override','InsertRangeMoveDownCommandId','getMemberID','_scheduleHeartbeat','apply','@univerjs-pro/collaboration','RegularPolygon','CollaborationController','getUnhiddenWorksheets','INVALID_INVITE_CODE','collabStatus.synced','_initEvent','hasOwnProperty','Shape','toString','setInterval','_toggleOnline','enableLocalCache','1641703MXoQOA','rxjs','add','getUnitId','EffectRefRangId','BrowserCollaborationSocketService','generateRandomId','getSkeleton','_refRangeService','column','deserializeRangeWithSheet','APPLY_PERMISSION_DENIED','_getScale','onMouseMove','ISnapshotServerService','UniverInstanceType','values','CommandType','div','history','getCellPositionByOffset','collab-text-range-','WebSocketService','BuiltInUIPart','DEFAULT_WS_SESSION_TICKET_URL','_saveCache','UPDATE_CURSOR','collabCursorState$','UNAUTHENTICATED','setUndoRedoMutationParamsCache','uni.network.url-service','handleIRemoveRow','url(#off-line-single_clip0_910_343)','currentSkeleton$','_transformService','getDocRanges','YUUMI_ASYNCIO_CANCELLED','combineLatest','getUnitStatus$','disableLocalCache','react/jsx-runtime','_startDocCollabCursor','IBeforeCloseService','_memberService','univer-online-status-title','_config','INTERNAL_ERROR','IUniverInstanceService','red300','restore','RECT','LOGIN_FAILED','startRow','OnLineSingle','ALREADY_EXISTS','_scheduleClearOtherTimer','mapTo','_transformPreviousActiveRange','replaceState','_createSocketURL','data','BehaviorSubject','[CollaborationDataLoaderController]','_unitOnClients','event$','_collabSessionService','9117144FnZwza','setItem','subUnitId','clsx','APPLY_NON_SEQUENTIAL_REVISION','MOBILE_HAS_BEEN_BOUND','YUUMI_NO_CUBOID_FOR_QUESTION','_refreshCollabCursors','_docTransformSelectionsService','xlink:href','_init','random','flatMap','APPLY_REVISION_CONFILICT','23235ywlVBx','deepClone','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','forwardRef','attrs','throttleTime','getCollabCursors$','toRgbString','registerRenderModule','_toggleOffline','result','SetTextSelectionsOperation','searchParams','#fff','on-line-single','reconnect','_shapes','PENDING','className','translate(.97)','use','replace','fillText','session.connection-failed','_session','off-line-single_clip0_910_343','saveTaskMap','m2Prime','getParam','ticket','38599UjRgci','_cachedData','_getSaveTimeout','MoveRangeCommandId','collabStatus.syncing','contains','_notificationService','_updateCollabCursors','path','endColumn','IDocClipboardService','code','_getSheetObject','CollaborationEvent','findNodePositionByCharIndex','pushState','createElement','CollaborationStatus','registerDependencies','serializeRangeWithSheet','switchMap','status$','Workbook','isTransformMutationFailure','isTransformMutationsWithChangesetSuccess','entries','bottom','getFocusedUnit','next','complete','filter','getStateCache','UNIVER_DOC','DOC_RANGE_TYPE','collaboration.single-unit.warning','executeCommand','509276ARMNdR','_render','push','DisposableCollection','displayName','YUUMI_RATE_OVER_LIMIT','_docSkeleton','LICENSE_EXPORT_SIZE_EXCEEDED','triggerDblclick','transformMutation','getSheetId','setParam','_eventUnsubscribe','_docTransformIMECacheService','_syncEditingCollabCursorService','stringify','LICENSE_MAX_UNITS_EXCEEDED','WebURLService','@univerjs/engine-render','_initCommandExecutedListener','_clearOtherTimers','toDisposable','InsertColCommandId','off-line-single','isArray','currentColor','indexOf','_cursorInfo$','black','_document','width','search','onlineStatus','_localStorageService','urlChange$','_scene','collabStatus.offline','length','YUUMI_UNABLE_LOAD_URL','getTypeOfUnitDisposed$','_revisionService','_onCursorUpdate','function','_transformUndoRedoStack','_saveTaskMap','univerjs-icon\x20univerjs-icon-','CONNECTOR_DATA_TOO_LARGE','collabStatus.conflict','addObjects','useRef','_updateSubUnitFromURLParams','SYNCED','CollaborationUIEventService','_lastPointer','_docTransformStateCacheService','handleDeleteRangeMoveUp','_handleHeartbeatEvent','_colorAssignService','@univerjs/ui','touchDependencies','HEADER_MENU','@univerjs/drawing','drawWith','mergeOverrideWithDependencies','on-line-single_clip0_910_349','colorChannel1','CONFLICT','min','_cursors','transformMutationsWithChangeset','_getSessionTicket','USER_NOT_INVITED_CODE','unload','init','_hover','sheetId','resize','_handleEvent','debounceTime','_sheetSkeletonManagerService','_color','1em','clearInterval','sheetID','save','addObject','SetWorksheetActivateCommand','_drawRectRange','onStarting','OTHER_CLIENT_EDITING','cursorInfo','_collabCursorController','Subject','_assignedColors','284mZdiXa','dispose','asObservable','getRelativeToViewportCoord','Disposable','from','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','gold400','FromArray','_configService','_handleHover','transformIMECache','_colorIndex','_entityInit$','DeleteRangeMoveUpCommandId','_entities','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','Module','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','@univerjs/docs-ui','engine','INotificationService','NodePositionConvertToRectRange','addHandlerCallback','getUniverSheetInstance','with','TOO_MANY_REQUESTS','NO_OTHER_CLIENTS_EDITING','invokeId','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','dispose$','RemoveRowCommandId','defIds','_logService','parse','HTTPService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','getSheetObject','purple300','_getMergeRange','arc','UniverCollaborationClientPlugin','_urlService','PERMISSION_DENIED','max','defineProperty','ThemeService','COLORS','@univerjs/sheets','eventID','RefRangeService','_univerInstanceService','executionId','endRow','origin','fillStyle','saveOfflineData','_registerRenderDependencies','onPointerEnter$','ILocalCacheService','UnitStatus','TEXT_RANGE_LAYER_INDEX','EMAIL_HAS_BEEN_BOUND','onCommandExecuted','getCurrentSelections','location','call','IConfigService','_context','error','_docClipboardService','collaboration.closeRoom','SOCKET_FAILED','newValue','DesktopCollaborationStatusDisplayController','forEach','_range','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_collaborationUIEventService','RemoteUniscriptService','JOIN_ROOM_FAILED','YUUMI_SUBSCRIPTION_NOT_FOUND','SNAPSHOT_HAS_BEEN_REMOVED','range','_messageService','getValue','ENSURE_SNAPSHOT_EXECUTION','collaboration-client.offline-data-not-saved','OffLineSingle','transformStateCache','_unitStatus','onPointerLeave$','Error','unit','RevisionService','TEXT','defs','_updateURLWithCurrentState','@univerjs/design','sessionStatus$','shareReplay','fill','removeParam','_status$','@univerjs/sheets-ui','_dataLoaderService','DeleteRangeMoveLeftCommandId','...','split','jsx','svg','_labelPosition','_initStatusComponent','IRemoteInstanceService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','registerRefRange','undoState','WECHAT_HAS_BEEN_BOUND','Failed','LICENSE_IMPORT_SIZE_EXCEEDED','_onCursorDelete','COMPLETION_FINISHED','_hovered','ranges','pipe','exhaustSavingTask','text','USERS_LEAVE','_initResize','WebBrowserSingleActiveUnitService','DocSelectionManagerService','MessageType','get','getMergeData','wsSessionTicketUrl','toStringTag','unitId','color','subunit','closePath','CollaborationSocketService','then','_docStateChangeManagerService','_selfUnitIDs','univer-online','concat','_initEntityListener','CHANGESET_REVISION_CONFILICT','SNAPSHOT_INVALID_SNAPSHOT','jiqing500','send','getConfig','collab-client.tooltip.reconnect','addEventListener','Rect','makeDirty','_docSyncEditingCollabCursorService','_cursorShapes','INVITE_CODE_REQUIRED','selection','UniverCollaborationClientUIPlugin','subscribe','getAncestorScale','beginPath','set','SetSelectionsOperation','type','updateOfflineData','entityInit$','INVALID_ARGUMENT','_anchorDot','onLocalMutation','_registerDependencies','_onRefRangeChange','CollaborationSessionService','UNIVER_SHEET','SUBMIT_CHANGESET_TIMEOUT','ColorKit','_roomMembers$','ITransformService','unshift','transformRemoteChangeset','univer-flex\x20univer-items-center','hovered','APPLY_DUPLICATED','ONLINE','takeUntil','onTransformChange$','ILogService','react','cursorInfo$','Rectangle','_textBubble','IImageIoService','_instanceService','_initStatusListener','_commandService','_collaborationController','params','SHEET_VIEWPORT_KEY','runOnServer','CollaborationStatusDisplay','Inject','selections','ICommandService','mutations','_removeClearOtherTimer','requireSession','getColor','textRanges','SetDocZoomRatioOperation','Warning','TRANSFORM_CHANGE_OBSERVABLE_TYPE','lineTo','getTypeOfUnitAdded$','@univerjs/rpc','assign','_drawTextRange','handleMoveRange','fillRule','DocIMEInputManagerService','onRendered','16lpDyeC','isActive','permission.content','rxjs/operators','Unknown\x20user','font','LICENSE_DISTRO_REJECTED','setAlpha','sessionTicket','Vector2','_id','SheetSkeletonManagerService','createSocket','registerComponent','getUndoRedoMutationParamsCache','MemberService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','moveTo','_backgroundColor','name','collabStatus.notCollab','@univerjs-pro/collaboration-client','url(#$1','roomMembers','SessionStatus','@univerjs/network','body','Tools','round','INVITE_CODE_ALREADY_BOUND','SheetsSelectionsService','CollaborationDataLoaderController','NOT_FOUND','_send','_removeCollabCursors','getSheetBySheetId','_initDependencies','hide','getOffsetConfig','RemoveColCommandId','source','_uiPartsService','_scheduleSaving','jsxs','unsubscribe','UniverIcon','none','_online','startColumn','IUIPartsService','getMember','_injector','labelPosition','getCoordByCell','OTHER_CLIENTS_EDITING','show','redoState','INVITE_CODE_HAS_BEEN_UES','replaceDocRanges','_localeService','post','M0\x200H16V16H0z','_hideTimer','CollaborationUIEventId','url(#on-line-single_clip0_910_349)','getRenderById','clearTimeout','extend','disposeWithMe','univer-offline','_localCacheService','find','setShapeProps','children','currentTheme$','InsertRangeMoveRightCommandId','useCallback','getRangePointData','IRenderManagerService','transformSelections','Optional','online','_updateLocalCursor','distinctUntilChanged','skeleton','_imageIoService','idSuffix','MUTATION','IURLService','clipPath','handleInsertCol','debounce','RxDisposable','disposeUnit','delete','prototype','_draw','_themeService','roomMembers$','height','_anchor','string','isEditing','_handleJoinEvent','fromEventSubject','rgba(255,\x20255,\x20255,\x200.01)','substring','unitID','getItem','NOT_COLLAB','some','measureText','_docSkeletonManagerService','debug','_renderManagerService','icon','useDependency','_cursor','editingUnit','_ensureSubject','LocaleService','assignAColorForMemberID','@univerjs/engine-formula','#FFF','connectInjector','transformByState','getCurrent','Injector','getActiveSheet','UNDEFINED','_beforeCloseService','offline','_setupSubUnitSync','collab-text-anchor-','APPLY_REJECT','_handleLeaveEvent','PY_RUNTIME_SCRIPT_ERROR','has','runId','DependentOn','subscribeEvent','docStateChange$','doc.mutation.rich-text-editing','DocCollaborationEntity','4877775VHLCcW','trim','size','4574256DoXNfK','symbol','_setupBeforeClosingHandler','tag','map','_heartbeatTimer','href','mask','pluginName','row','_collabCursorState$','_disabled','m1Prime','fromEvent'];_0x47dc=function(){return _0x26461a;};return _0x47dc();}const u=require(_0x4b2219(0x245)),a=require('@univerjs/core'),p=require(_0x4b2219(0x38c)),q=require(_0x4b2219(0x249)),b=require(_0x4b2219(0x3eb)),qe=require(_0x4b2219(0x3b7)),d=require(_0x4b2219(0x2e8)),Y=require('@univerjs/docs'),m=require(_0x4b2219(0x2da)),Te=require(_0x4b2219(0x2aa)),g=require(_0x4b2219(0x408)),$=require(_0x4b2219(0x233)),G=require(_0x4b2219(0x1ba)),P=require(_0x4b2219(0x30f)),O=require(_0x4b2219(0x3b4)),T=require(_0x4b2219(0x1b4)),M=require(_0x4b2219(0x20f)),Ke=require(_0x4b2219(0x229));var ze=Object['getOwnPropertyDescriptor'],Je=(_0x1b6874,_0x26aed0,_0x3f422f,_0x1b9bfd)=>{const _0x9c3eb1=_0x4b2219;for(var _0x86dcf3=_0x1b9bfd>0x1?void 0x0:_0x1b9bfd?ze(_0x26aed0,_0x3f422f):_0x26aed0,_0x365f6a=_0x1b6874[_0x9c3eb1(0x39f)]-0x1,_0x4853f5;_0x365f6a>=0x0;_0x365f6a--)(_0x4853f5=_0x1b6874[_0x365f6a])&&(_0x86dcf3=_0x4853f5(_0x86dcf3)||_0x86dcf3);return _0x86dcf3;},Oe=(_0x5e3538,_0xabb7d8)=>(_0x300878,_0xa252bb)=>_0xabb7d8(_0x300878,_0xa252bb,_0x5e3538);let fe=class extends a[_0x4b2219(0x28c)]{constructor(_0x4281ce,_0x200093){const _0x551386=_0x4b2219;super(),this[_0x551386(0x41e)]=_0x4281ce,this[_0x551386(0x285)]=_0x200093,this[_0x551386(0x333)]();}['_init'](){const _0x5ba4de=_0x4b2219,_0x10b2a0=this;this[_0x5ba4de(0x274)](this[_0x5ba4de(0x41e)]['addClipboardHook']({'onBeforePasteImage':async _0x5bdc29=>{const _0x3f09ba=_0x5ba4de,_0x6b1938=await _0x10b2a0[_0x3f09ba(0x285)]['saveImage'](_0x5bdc29);return _0x6b1938?{'source':_0x6b1938[_0x3f09ba(0x258)],'imageSourceType':_0x6b1938['imageSourceType']}:null;}}));}};fe=Je([Oe(0x0,b[_0x4b2219(0x360)]),Oe(0x1,qe[_0x4b2219(0x213)])],fe);const Re=[_0x4b2219(0x3fe),_0x4b2219(0x1e7),'verdancy600',_0x4b2219(0x317),'blue400',_0x4b2219(0x3df)];class Ce extends a[_0x4b2219(0x3dc)]{constructor(){const _0x2238f3=_0x4b2219;super(...arguments),_(this,_0x2238f3(0x3d7),new Map()),_(this,'_colorIndex',0x0);}[_0x4b2219(0x2a9)](_0x335fbf){const _0x832a45=_0x4b2219;if(this[_0x832a45(0x3d7)][_0x832a45(0x2b9)](_0x335fbf))return this['_assignedColors'][_0x832a45(0x1d6)](_0x335fbf);const _0x251ad4=Re[this[_0x832a45(0x3e4)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%Re[_0x832a45(0x39f)],this[_0x832a45(0x3d7)][_0x832a45(0x1f6)](_0x335fbf,_0x251ad4),_0x251ad4;}}function we(_0x3ca47d){let _0x2f823b='';for(const _0x182d43 of _0x3ca47d){const {startOffset:_0x1497f6,endOffset:_0x527d3d,isActive:_0x5a1de4,rangeType:_0x1ce6e1,segmentId:_0x1eb04d,segmentPage:_0xe42ed4}=_0x182d43;_0x2f823b['length']&&(_0x2f823b+=','),_0x2f823b+=_0x1497f6+':'+_0x527d3d+':'+(_0x5a1de4?'1':'0')+':'+_0x1ce6e1+':'+_0x1eb04d+':'+_0xe42ed4;}return _0x2f823b;}function Ze(_0x4bdd10){const _0x37f13e=_0x4b2219,_0x3b247f=_0x4bdd10['split'](','),_0x2c29c4=[];for(const _0x56f094 of _0x3b247f){const [_0x114e5e,_0xe1e487,_0x37baa2,_0x2cc19d,_0x49ac4e,_0x5419b2]=_0x56f094[_0x37f13e(0x1be)](':');_0x2c29c4[_0x37f13e(0x37c)]({'startOffset':Number(_0x114e5e),'endOffset':Number(_0xe1e487),'collapsed':_0x114e5e===_0xe1e487,'isActive':_0x37baa2==='1','rangeType':_0x2cc19d===a[_0x37f13e(0x377)][_0x37f13e(0x1b1)]?a[_0x37f13e(0x377)][_0x37f13e(0x1b1)]:a['DOC_RANGE_TYPE'][_0x37f13e(0x319)],'segmentId':typeof _0x49ac4e==_0x37f13e(0x295)?String(_0x49ac4e):'','segmentPage':Number(_0x5419b2!=null?_0x5419b2:-0x1)});}return _0x2c29c4[_0x37f13e(0x29e)](_0x41650f=>_0x41650f[_0x37f13e(0x231)])||(_0x2c29c4[0x0][_0x37f13e(0x231)]=!0x0),_0x2c29c4;}class pe extends a[_0x4b2219(0x28c)]{constructor(){const _0x1b2c78=_0x4b2219;super(...arguments),_(this,_0x1b2c78(0x2cd),new d[(_0x1b2c78(0x324))](null)),_(this,_0x1b2c78(0x302),this[_0x1b2c78(0x2cd)][_0x1b2c78(0x3da)]());}[_0x4b2219(0x2d4)](_0x2b5f67){const _0x3b6cf9=_0x4b2219,{unitID:_0x27dff2,memberID:_0x394fb0,textRanges:_0x40f945}=_0x2b5f67,_0x5695f1=we(_0x40f945);if(_0x5695f1==='')return;const _0x5e3db8={'unitID':_0x27dff2,'memberID':_0x394fb0,'selection':_0x5695f1};this[_0x3b6cf9(0x2cd)][_0x3b6cf9(0x372)](_0x5e3db8);}}var Qe=Object['getOwnPropertyDescriptor'],et=(_0x680fb9,_0xf46490,_0x3f159e,_0x5cc7f4)=>{const _0x567443=_0x4b2219;for(var _0x55feac=_0x5cc7f4>0x1?void 0x0:_0x5cc7f4?Qe(_0xf46490,_0x3f159e):_0xf46490,_0x66e052=_0x680fb9[_0x567443(0x39f)]-0x1,_0x3e8dad;_0x66e052>=0x0;_0x66e052--)(_0x3e8dad=_0x680fb9[_0x66e052])&&(_0x55feac=_0x3e8dad(_0x55feac)||_0x55feac);return _0x55feac;},L=(_0x380846,_0x59e562)=>(_0x4573ba,_0x99a666)=>_0x59e562(_0x4573ba,_0x99a666,_0x380846);const tt=0x12c,st=0x64;let Se=class extends a[_0x4b2219(0x28c)]{constructor(_0x4d055c,_0xd7378f,_0xfe7994,_0x20b833,_0x1fc270,_0x4016f7,_0x215c9d,_0x579192,_0xed5356){const _0x520e73=_0x4b2219;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,_0x520e73(0x395),new d[(_0x520e73(0x324))](new Map())),_(this,_0x520e73(0x210),this[_0x520e73(0x395)]['asObservable']()),_(this,_0x520e73(0x204),new d[(_0x520e73(0x324))]([])),_(this,'roomMembers$',this[_0x520e73(0x204)][_0x520e73(0x1ce)](d[_0x520e73(0x3c8)](tt))),_(this,_0x520e73(0x282),a[_0x520e73(0x28b)](_0x183db2=>{const _0x13477e=_0x520e73,_0x49f621={'eventID':m['CollaborationEvent'][_0x13477e(0x301)],'data':{'unitID':this[_0x13477e(0x29b)],'memberID':this['_session']['getMemberID'](),'selection':we(_0x183db2)}};this['_session'][_0x13477e(0x1e8)](_0x49f621,this[_0x13477e(0x29b)]);},st)),(this[_0x520e73(0x29b)]=_0x4d055c,this[_0x520e73(0x350)]=_0xd7378f,this['_injector']=_0xfe7994,this['_colorAssignService']=_0x20b833,this[_0x520e73(0x312)]=_0x1fc270,this['_syncEditingCollabCursorService']=_0x4016f7,this[_0x520e73(0x309)]=_0x215c9d,this['_univerInstanceService']=_0x579192,this[_0x520e73(0x216)]=_0xed5356);}get[_0x4b2219(0x3d4)](){const _0x342a51=_0x4b2219;return this['_cursorInfo$'][_0x342a51(0x42d)]();}get['roomMembers'](){const _0x18094d=_0x4b2219;return this['_roomMembers$'][_0x18094d(0x42d)]();}[_0x4b2219(0x3d9)](){const _0x454328=_0x4b2219;super[_0x454328(0x3d9)](),this['_cursorInfo$']['next'](new Map()),this[_0x454328(0x395)]['complete'](),this[_0x454328(0x204)][_0x454328(0x372)]([]),this['_roomMembers$'][_0x454328(0x373)]();}['init'](){const _0x4ee293=_0x4b2219;this[_0x4ee293(0x333)]||(this['_init']=!0x0,this[_0x4ee293(0x350)]['sessionStatus$']['pipe'](d[_0x4ee293(0x20c)](this[_0x4ee293(0x3f6)]))['subscribe'](_0x33e910=>{const _0x96b90d=_0x4ee293;_0x33e910===u[_0x96b90d(0x248)][_0x96b90d(0x20b)]?this[_0x96b90d(0x2e5)]():this[_0x96b90d(0x341)]();}),this['_session']['event$'][_0x4ee293(0x1ce)](d[_0x4ee293(0x20c)](this[_0x4ee293(0x3f6)]))['subscribe'](_0x3d854f=>{const _0x4dc9a1=_0x4ee293,_0x375f2f=_0x3d854f[_0x4dc9a1(0x409)];_0x375f2f===m[_0x4dc9a1(0x363)][_0x4dc9a1(0x301)]&&this[_0x4dc9a1(0x3a3)](_0x3d854f),_0x375f2f===m[_0x4dc9a1(0x363)][_0x4dc9a1(0x1d1)]&&this[_0x4dc9a1(0x1ca)](_0x3d854f);}),this[_0x4ee293(0x274)](this[_0x4ee293(0x216)][_0x4ee293(0x417)](_0x52b84d=>{const _0x256033=_0x4ee293,_0x96aef0=_0x52b84d[_0x256033(0x218)];_0x96aef0!=null&&this['_online']&&_0x52b84d['id']===Y[_0x256033(0x343)]['id']&&_0x96aef0[_0x256033(0x1da)]===this[_0x256033(0x29b)]&&_0x96aef0[_0x256033(0x296)]===!0x1&&_0x96aef0['ranges'][_0x256033(0x39f)]>0x0&&this[_0x256033(0x282)](_0x96aef0[_0x256033(0x1cd)]);})),this[_0x4ee293(0x388)][_0x4ee293(0x302)][_0x4ee293(0x1ce)](d[_0x4ee293(0x20c)](this[_0x4ee293(0x3f6)]))[_0x4ee293(0x1f3)](_0xc59696=>{const _0x41c9cf=_0x4ee293;if((_0xc59696==null?void 0x0:_0xc59696['unitID'])!==this[_0x41c9cf(0x29b)])return;const _0x52e420={'eventID':m['CollaborationEvent'][_0x41c9cf(0x301)],'data':_0xc59696};this[_0x41c9cf(0x3a3)](_0x52e420);}),this[_0x4ee293(0x274)](this[_0x4ee293(0x216)][_0x4ee293(0x417)](_0x53efc1=>{const _0x377d6f=_0x4ee293;if(_0x53efc1[_0x377d6f(0x218)]==null)return;const _0x362aed=_0x53efc1['params'];if(_0x53efc1['id']!==Y['RichTextEditingMutation']['id']||_0x362aed[_0x377d6f(0x1da)]!==this['unitID'])return;const _0x24fd88={'id':'doc.mutation.rich-text-editing','params':_0x362aed},_0x45485b=this[_0x377d6f(0x3d4)];for(const [_0x4311df,_0x509c56]of _0x45485b){const _0x1c7df6={'id':_0x377d6f(0x2be),'params':{'unitId':this[_0x377d6f(0x29b)],'actions':null,'textRanges':_0x509c56[_0x377d6f(0x1cd)]}},_0x3c24b7=this[_0x377d6f(0x309)][_0x377d6f(0x383)](_0x24fd88,_0x1c7df6,!0x1);if(m[_0x377d6f(0x36d)](_0x3c24b7))throw _0x3c24b7[_0x377d6f(0x41d)];_0x45485b[_0x377d6f(0x1f6)](_0x4311df,{..._0x509c56,'ranges':_0x3c24b7[_0x377d6f(0x353)]['params'][_0x377d6f(0x223)]});}queueMicrotask(()=>{const _0x3dcc1a=_0x377d6f;this['_cursorInfo$'][_0x3dcc1a(0x372)](_0x45485b);});})));}['_onCursorUpdate'](_0x5ea52e){const _0x646100=_0x4b2219;var _0x376d86,_0x3aefc2;const {memberID:_0x587282,selection:_0x15d66d}=_0x5ea52e['data'],_0x121c25=Ze(_0x15d66d),_0x21ecb6=(_0x3aefc2=(_0x376d86=this[_0x646100(0x312)][_0x646100(0x262)](this['unitID'],_0x587282))==null?void 0x0:_0x376d86[_0x646100(0x243)])!=null?_0x3aefc2:_0x646100(0x234),_0x490e56={'color':this[_0x646100(0x3b3)][_0x646100(0x2a9)](_0x587282),'name':_0x21ecb6,'ranges':_0x121c25},_0x17facd=this[_0x646100(0x3d4)];_0x17facd['set'](_0x587282,_0x490e56),this[_0x646100(0x395)]['next'](_0x17facd);}[_0x4b2219(0x1ca)](_0x461d9f){const _0x495531=_0x4b2219,{memberID:_0x27011b}=_0x461d9f[_0x495531(0x323)],_0x42ec01=this[_0x495531(0x3d4)];_0x42ec01[_0x495531(0x28e)](_0x27011b),this['_cursorInfo$'][_0x495531(0x372)](_0x42ec01);}['_toggleOnline'](){const _0x13c090=_0x4b2219;var _0x2e5b50;if(this[_0x13c090(0x25f)]=!0x0,((_0x2e5b50=this[_0x13c090(0x40b)][_0x13c090(0x371)]())==null?void 0x0:_0x2e5b50[_0x13c090(0x2ea)]())!==this[_0x13c090(0x29b)])return;const _0x40c17a=this[_0x13c090(0x263)][_0x13c090(0x1d6)](Y[_0x13c090(0x1d4)])[_0x13c090(0x30a)]();Array[_0x13c090(0x392)](_0x40c17a)&&_0x40c17a[_0x13c090(0x39f)]>0x0&&this[_0x13c090(0x282)](_0x40c17a);}['_toggleOffline'](){this['_online']=!0x1;}};Se=et([L(0x2,a['Inject'](a[_0x4b2219(0x2af)])),L(0x3,a[_0x4b2219(0x21c)](Ce)),L(0x4,a['Inject'](u['MemberService'])),L(0x5,a['Inject'](pe)),L(0x6,m[_0x4b2219(0x205)]),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x4b2219(0x21e)])],Se);var nt=Object[_0x4b2219(0x2d2)],it=(_0x1640f3,_0x3ebeff,_0x2f6067,_0x5ec69d)=>{const _0x532f5a=_0x4b2219;for(var _0x167420=_0x5ec69d>0x1?void 0x0:_0x5ec69d?nt(_0x3ebeff,_0x2f6067):_0x3ebeff,_0x2de164=_0x1640f3[_0x532f5a(0x39f)]-0x1,_0x444b14;_0x2de164>=0x0;_0x2de164--)(_0x444b14=_0x1640f3[_0x2de164])&&(_0x167420=_0x444b14(_0x167420)||_0x167420);return _0x167420;},A=(_0x529b3f,_0x1a9cb4)=>(_0x226e72,_0x2f8411)=>_0x1a9cb4(_0x226e72,_0x2f8411,_0x529b3f);function _0x45c8(_0x3ac048,_0x457502){const _0x47dc68=_0x47dc();return _0x45c8=function(_0x45c8c9,_0x15c48b){_0x45c8c9=_0x45c8c9-0x1af;let _0x5dd2a8=_0x47dc68[_0x45c8c9];return _0x5dd2a8;},_0x45c8(_0x3ac048,_0x457502);}const rt=0x12c,ot=0x64,at=()=>{let _0x3aa31b=[],_0x41eaeb=!0x1;return _0x5584d0=>{const _0x8840f7=_0x45c8;_0x3aa31b[_0x8840f7(0x37c)](_0x5584d0),_0x41eaeb||(_0x41eaeb=!0x0,setTimeout(()=>{const _0x352b3c=_0x8840f7;_0x3aa31b[_0x352b3c(0x423)](_0x1e43b7=>_0x1e43b7()),_0x3aa31b=[],_0x41eaeb=!0x1;}));};};let Ie=class extends a[_0x4b2219(0x28c)]{constructor(_0x23e138,_0x434563,_0x3d97ab,_0x5d5175,_0x4807c1,_0x4d8339,_0x5a0053,_0x5e9416){const _0x51abde=_0x4b2219;super(),_(this,'_online',!0x1),_(this,_0x51abde(0x333),!0x1),_(this,_0x51abde(0x395),new d['BehaviorSubject'](new Map())),_(this,_0x51abde(0x210),this[_0x51abde(0x395)][_0x51abde(0x3da)]()),_(this,_0x51abde(0x204),new d['BehaviorSubject']([])),_(this,_0x51abde(0x292),this[_0x51abde(0x204)][_0x51abde(0x1ce)](d[_0x51abde(0x3c8)](rt))),_(this,_0x51abde(0x282),a['debounce']((_0x2f7322,_0x2820a9)=>{const _0x389756=_0x51abde,_0x27cb50={'eventID':m[_0x389756(0x363)][_0x389756(0x301)],'data':{'unitID':this[_0x389756(0x29b)],'memberID':this['_session'][_0x389756(0x2d7)](),'selection':Te[_0x389756(0x369)](_0x2f7322,_0x2820a9[_0x389756(0x42b)])}};this[_0x389756(0x350)][_0x389756(0x1e8)](_0x27cb50,this[_0x389756(0x29b)]);},ot)),(this[_0x51abde(0x29b)]=_0x23e138,this[_0x51abde(0x350)]=_0x434563,this['_injector']=_0x3d97ab,this[_0x51abde(0x3b3)]=_0x5d5175,this[_0x51abde(0x312)]=_0x4807c1,this[_0x51abde(0x40b)]=_0x4d8339,this[_0x51abde(0x216)]=_0x5a0053,this[_0x51abde(0x2ef)]=_0x5e9416);}get[_0x4b2219(0x3d4)](){const _0x3720b6=_0x4b2219;return this[_0x3720b6(0x395)][_0x3720b6(0x42d)]();}get[_0x4b2219(0x247)](){const _0x2a8677=_0x4b2219;return this[_0x2a8677(0x204)][_0x2a8677(0x42d)]();}[_0x4b2219(0x3d9)](){const _0x21119e=_0x4b2219;super[_0x21119e(0x3d9)](),this[_0x21119e(0x395)]['next'](new Map()),this[_0x21119e(0x395)][_0x21119e(0x373)](),this[_0x21119e(0x204)][_0x21119e(0x372)]([]),this[_0x21119e(0x204)]['complete']();}['init'](){const _0x4c61b2=_0x4b2219;this[_0x4c61b2(0x333)]||(this[_0x4c61b2(0x333)]=!0x0,this[_0x4c61b2(0x350)][_0x4c61b2(0x1b5)][_0x4c61b2(0x1ce)](d[_0x4c61b2(0x20c)](this[_0x4c61b2(0x3f6)]))[_0x4c61b2(0x1f3)](_0x59961a=>{const _0x19fe1e=_0x4c61b2;_0x59961a===u[_0x19fe1e(0x248)][_0x19fe1e(0x20b)]?this[_0x19fe1e(0x2e5)]():this[_0x19fe1e(0x341)]();}),this[_0x4c61b2(0x350)][_0x4c61b2(0x327)][_0x4c61b2(0x1ce)](d[_0x4c61b2(0x20c)](this['dispose$']))[_0x4c61b2(0x1f3)](_0x252da6=>{const _0x581c09=_0x4c61b2,_0x38d2a0=_0x252da6[_0x581c09(0x409)];_0x38d2a0===m[_0x581c09(0x363)][_0x581c09(0x301)]&&this[_0x581c09(0x3a3)](_0x252da6),_0x38d2a0===m[_0x581c09(0x363)][_0x581c09(0x1d1)]&&this[_0x581c09(0x1ca)](_0x252da6);}),this[_0x4c61b2(0x1ff)](),this[_0x4c61b2(0x274)](this[_0x4c61b2(0x216)][_0x4c61b2(0x417)](_0x4a56a1=>{const _0x22a10f=_0x4c61b2;if(this[_0x22a10f(0x25f)]&&_0x4a56a1['id']===g[_0x22a10f(0x1f7)]['id']&&_0x4a56a1[_0x22a10f(0x218)][_0x22a10f(0x1da)]===this[_0x22a10f(0x29b)]){const _0x3c6b56=_0x4a56a1[_0x22a10f(0x218)];this[_0x22a10f(0x282)](_0x3c6b56[_0x22a10f(0x32b)],_0x3c6b56[_0x22a10f(0x21d)][0x0]);}})));}[_0x4b2219(0x3a3)](_0x272289){const _0xe2a969=_0x4b2219;var _0x37e657,_0x41823;const {memberID:_0x446e06,selection:_0xce517c}=_0x272289['data'],{sheetName:_0x43fcca,range:_0x479cb3}=Te[_0xe2a969(0x2f1)](_0xce517c),_0x156324={'name':(_0x41823=(_0x37e657=this['_memberService'][_0xe2a969(0x262)](this[_0xe2a969(0x29b)],_0x446e06))==null?void 0x0:_0x37e657['name'])!=null?_0x41823:_0xe2a969(0x234),'range':this[_0xe2a969(0x3ff)](_0x43fcca,_0x479cb3),'sheetID':_0x43fcca,'color':this[_0xe2a969(0x3b3)][_0xe2a969(0x2a9)](_0x446e06),'selection':_0xce517c},_0x13a345=this['cursorInfo'];_0x13a345['set'](_0x446e06,_0x156324),this[_0xe2a969(0x395)][_0xe2a969(0x372)](_0x13a345);}[_0x4b2219(0x1ca)](_0xe8cfd3){const _0x4c4ce8=_0x4b2219,{memberID:_0x12be8b}=_0xe8cfd3[_0x4c4ce8(0x323)],_0x5789fa=this['cursorInfo'];_0x5789fa['delete'](_0x12be8b),this[_0x4c4ce8(0x395)][_0x4c4ce8(0x372)](_0x5789fa);}['_getMergeRange'](_0x2e1e7a,_0x4cb803){const _0x4b9595=_0x4b2219;var _0x2019ef,_0x47b07c;const _0xaedaaa=(_0x47b07c=(_0x2019ef=this[_0x4b9595(0x40b)][_0x4b9595(0x3f0)](this[_0x4b9595(0x29b)]))==null?void 0x0:_0x2019ef[_0x4b9595(0x253)](_0x2e1e7a))==null?void 0x0:_0x47b07c[_0x4b9595(0x1d7)]();return(_0xaedaaa==null?void 0x0:_0xaedaaa[_0x4b9595(0x277)](_0x244f1d=>a[_0x4b9595(0x211)][_0x4b9595(0x35b)](_0x244f1d,_0x4cb803)))||_0x4cb803;}[_0x4b2219(0x1ff)](){const _0x3d20e1=_0x4b2219,_0x1dff66=new a[(_0x3d20e1(0x37d))](),_0x2f1014=at(),_0x46f19b=()=>{const _0x5952aa=_0x3d20e1;_0x1dff66[_0x5952aa(0x3d9)]();const _0x56d044=(_0x2ae03d,_0x342baf,_0x4b7de7,_0x721fa9)=>{const _0x1851bb=_0x5952aa;let _0x1749f3=[];switch(_0x2ae03d['id']){case g[_0x1851bb(0x2eb)][_0x1851bb(0x1bc)]:{_0x1749f3=g['handleDeleteRangeMoveLeft'](_0x2ae03d,_0x721fa9);break;}case g['EffectRefRangId'][_0x1851bb(0x3e6)]:{_0x1749f3=g[_0x1851bb(0x3b1)](_0x2ae03d,_0x721fa9);break;}case g['EffectRefRangId'][_0x1851bb(0x390)]:{_0x1749f3=g[_0x1851bb(0x28a)](_0x2ae03d,_0x721fa9);break;}case g['EffectRefRangId'][_0x1851bb(0x2d6)]:{_0x1749f3=g['handleInsertRangeMoveDown'](_0x2ae03d,_0x721fa9);break;}case g[_0x1851bb(0x2eb)][_0x1851bb(0x27b)]:{_0x1749f3=g['handleInsertRangeMoveRight'](_0x2ae03d,_0x721fa9);break;}case g[_0x1851bb(0x2eb)]['InsertRowCommandId']:{_0x1749f3=g[_0x1851bb(0x2d3)](_0x2ae03d,_0x721fa9);break;}case g[_0x1851bb(0x2eb)][_0x1851bb(0x359)]:{_0x1749f3=g[_0x1851bb(0x22c)](_0x2ae03d,_0x721fa9);break;}case g['EffectRefRangId'][_0x1851bb(0x257)]:{_0x1749f3=g['handleIRemoveCol'](_0x2ae03d,_0x721fa9);break;}case g[_0x1851bb(0x2eb)][_0x1851bb(0x3f7)]:{_0x1749f3=g[_0x1851bb(0x306)](_0x2ae03d,_0x721fa9);break;}}const _0xdaf94c=g['runRefRangeMutations'](_0x1749f3,_0x721fa9),_0x126f16=this[_0x1851bb(0x3d4)][_0x1851bb(0x1d6)](_0x342baf);if(_0x126f16&&_0xdaf94c){const _0x37a058={..._0x126f16,'range':_0xdaf94c};this[_0x1851bb(0x3d4)]['set'](_0x342baf,_0x37a058),_0x2f1014(()=>{const _0x522797=_0x1851bb,_0x5b5029=this[_0x522797(0x2ef)][_0x522797(0x1c5)](_0xdaf94c,_0x5f0709=>(_0x5b5029[_0x522797(0x3d9)](),_0x56d044(_0x5f0709,_0x342baf,_0x4b7de7,_0xdaf94c)));_0x1dff66[_0x522797(0x2e9)](_0x5b5029);});}return{'redos':[],'undos':[]};};this[_0x5952aa(0x3d4)][_0x5952aa(0x423)]((_0x104242,_0x5b3c7c)=>{const _0x761f93=_0x5952aa,{range:_0x2fade3,sheetID:_0x23f03}=_0x104242,_0x227b4b=this[_0x761f93(0x2ef)][_0x761f93(0x1c5)](_0x2fade3,_0x317d2d=>(_0x227b4b[_0x761f93(0x3d9)](),_0x56d044(_0x317d2d,_0x5b3c7c,_0x23f03,_0x2fade3)));_0x1dff66[_0x761f93(0x2e9)](_0x227b4b);});};this['disposeWithMe'](a['toDisposable'](this[_0x3d20e1(0x395)][_0x3d20e1(0x1f3)](()=>{_0x46f19b();})));}[_0x4b2219(0x2e5)](){const _0xf4f9d1=_0x4b2219;var _0x16e18f,_0x79753f;if(this['_online']=!0x0,((_0x16e18f=this[_0xf4f9d1(0x40b)]['getFocusedUnit']())==null?void 0x0:_0x16e18f['getUnitId']())!==this[_0xf4f9d1(0x29b)])return;const _0x2b8492=(_0x79753f=this[_0xf4f9d1(0x263)][_0xf4f9d1(0x1d6)](g[_0xf4f9d1(0x24e)])[_0xf4f9d1(0x418)]())==null?void 0x0:_0x79753f[0x0],_0x129dec=this[_0xf4f9d1(0x40b)]['getCurrentUnitForType'](a[_0xf4f9d1(0x2f6)][_0xf4f9d1(0x201)])['getActiveSheet']();_0x2b8492&&_0x129dec&&this[_0xf4f9d1(0x282)](_0x129dec[_0xf4f9d1(0x384)](),_0x2b8492);}['_toggleOffline'](){this['_online']=!0x1;}};Ie=it([A(0x2,a['Inject'](a['Injector'])),A(0x3,a[_0x4b2219(0x21c)](Ce)),A(0x4,a[_0x4b2219(0x21c)](u[_0x4b2219(0x23f)])),A(0x5,a[_0x4b2219(0x316)]),A(0x6,a['ICommandService']),A(0x7,a[_0x4b2219(0x21c)](g[_0x4b2219(0x40a)]))],Ie);var ct=Object['getOwnPropertyDescriptor'],lt=(_0x3a6987,_0xd03378,_0x589531,_0x16ec9e)=>{for(var _0x5ba0b6=_0x16ec9e>0x1?void 0x0:_0x16ec9e?ct(_0xd03378,_0x589531):_0xd03378,_0x59d9e1=_0x3a6987['length']-0x1,_0x57ba00;_0x59d9e1>=0x0;_0x59d9e1--)(_0x57ba00=_0x3a6987[_0x59d9e1])&&(_0x5ba0b6=_0x57ba00(_0x5ba0b6)||_0x5ba0b6);return _0x5ba0b6;},ie=(_0x3bc588,_0x4ad05c)=>(_0x45d25c,_0x185cb8)=>_0x4ad05c(_0x45d25c,_0x185cb8,_0x3bc588);let x=class extends a[_0x4b2219(0x28c)]{constructor(_0x29574e,_0x19e90b,_0x37ed0c){const _0x4ee714=_0x4b2219;super(),_(this,_0x4ee714(0x3e7),new Map()),_(this,'_entityInit$',new d[(_0x4ee714(0x3d6))]()),(this['_univerInstanceService']=_0x29574e,this[_0x4ee714(0x263)]=_0x19e90b,this[_0x4ee714(0x328)]=_0x37ed0c,this['_init']());}[_0x4b2219(0x3d9)](){const _0x14b262=_0x4b2219;super['dispose'](),this[_0x14b262(0x3e5)][_0x14b262(0x373)](),this[_0x14b262(0x3e7)][_0x14b262(0x423)](_0x4b4903=>_0x4b4903[_0x14b262(0x3d9)]());}['getCollabCursors$'](_0x523d28){const _0x32c1c=_0x4b2219;return this[_0x32c1c(0x3e7)][_0x32c1c(0x2b9)](_0x523d28)?this['_entities'][_0x32c1c(0x1d6)](_0x523d28)[_0x32c1c(0x210)]:this[_0x32c1c(0x3e5)][_0x32c1c(0x1ce)](d['filter'](_0x312cfe=>_0x312cfe[_0x32c1c(0x29b)]===_0x523d28),d[_0x32c1c(0x36a)](_0x57fd2e=>_0x57fd2e[_0x32c1c(0x210)]));}['_init'](){const _0x31a465=_0x4b2219;this[_0x31a465(0x40b)][_0x31a465(0x228)](a[_0x31a465(0x2f6)]['UNIVER_SHEET'])[_0x31a465(0x1ce)](d[_0x31a465(0x20c)](this[_0x31a465(0x3f6)]))['subscribe'](async _0x319a76=>{const _0x374bef=_0x31a465,_0x226657=_0x319a76[_0x374bef(0x2ea)](),_0x15c0ce=await this['_startSheetCollabCursor'](_0x226657);this[_0x374bef(0x3e5)][_0x374bef(0x372)](_0x15c0ce),this['_entities'][_0x374bef(0x1f6)](_0x226657,_0x15c0ce);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x31a465(0x376)])[_0x31a465(0x1ce)](d[_0x31a465(0x20c)](this['dispose$']))[_0x31a465(0x1ce)](d[_0x31a465(0x374)](_0x2c1b03=>!_0x2c1b03[_0x31a465(0x2ea)]()['startsWith']('__')))[_0x31a465(0x1f3)](async _0x155978=>{const _0x54e60e=_0x31a465,_0x29faa9=_0x155978[_0x54e60e(0x2ea)](),_0x5b08e7=await this[_0x54e60e(0x310)](_0x29faa9);this['_entityInit$'][_0x54e60e(0x372)](_0x5b08e7),this[_0x54e60e(0x3e7)][_0x54e60e(0x1f6)](_0x29faa9,_0x5b08e7);}),d['merge'](this['_univerInstanceService'][_0x31a465(0x3a1)](a['UniverInstanceType'][_0x31a465(0x376)]),this[_0x31a465(0x40b)][_0x31a465(0x3a1)](a[_0x31a465(0x2f6)][_0x31a465(0x201)]))['pipe'](d['takeUntil'](this[_0x31a465(0x3f6)]))[_0x31a465(0x1f3)](_0x16fe24=>{const _0x468ace=_0x31a465,_0x4e0b0c=_0x16fe24['getUnitId'](),_0x21124f=this[_0x468ace(0x3e7)][_0x468ace(0x1d6)](_0x4e0b0c);_0x21124f&&(_0x21124f[_0x468ace(0x3d9)](),this[_0x468ace(0x3e7)][_0x468ace(0x28e)](_0x4e0b0c));});}async['_startSheetCollabCursor'](_0x2f1bea){const _0xb31635=_0x4b2219,_0x89bfd=await this[_0xb31635(0x328)][_0xb31635(0x221)](_0x2f1bea),_0x575e00=this['_injector']['createInstance'](Ie,_0x2f1bea,_0x89bfd);return _0x575e00['init'](),_0x575e00;}async[_0x4b2219(0x310)](_0x308642){const _0xfbf0e4=_0x4b2219,_0x1ed614=await this[_0xfbf0e4(0x328)][_0xfbf0e4(0x221)](_0x308642),_0x520c4e=this[_0xfbf0e4(0x263)]['createInstance'](Se,_0x308642,_0x1ed614);return _0x520c4e[_0xfbf0e4(0x3c3)](),_0x520c4e;}};x=lt([ie(0x0,a[_0x4b2219(0x316)]),ie(0x1,a['Inject'](a[_0x4b2219(0x2af)])),ie(0x2,a['Inject'](u[_0x4b2219(0x200)]))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0x3d8163,_0x2dced1){const _0x2609a3=_0x4b2219;let {radius:_0x451ef8,width:_0x1fb2a5,height:_0x325dfe}=_0x2dced1;_0x451ef8=_0x451ef8!=null?_0x451ef8:0x0,_0x1fb2a5=_0x1fb2a5!=null?_0x1fb2a5:0x1e,_0x325dfe=_0x325dfe!=null?_0x325dfe:0x1e;let _0x31c237=0x0,_0x33f375=0x0,_0x32ad53=0x0;_0x31c237=_0x33f375=_0x32ad53=Math[_0x2609a3(0x3bd)](_0x451ef8,_0x1fb2a5/0x2,_0x325dfe/0x2),_0x3d8163[_0x2609a3(0x1f5)](),_0x3d8163[_0x2609a3(0x241)](_0x31c237,0x0),_0x3d8163[_0x2609a3(0x227)](_0x1fb2a5-_0x33f375,0x0),_0x3d8163['arc'](_0x1fb2a5-_0x33f375,_0x33f375,_0x33f375,Math['PI']*0x3/0x2,0x0,!0x1),_0x3d8163[_0x2609a3(0x227)](_0x1fb2a5,_0x325dfe-_0x32ad53),_0x3d8163['arc'](_0x1fb2a5-_0x32ad53,_0x325dfe-_0x32ad53,_0x32ad53,0x0,Math['PI']/0x2,!0x1),_0x3d8163[_0x2609a3(0x227)](0x0,_0x325dfe),_0x3d8163[_0x2609a3(0x227)](0x0,_0x31c237),_0x3d8163[_0x2609a3(0x400)](_0x31c237,_0x31c237,_0x31c237,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3d8163[_0x2609a3(0x1dd)](),_0x2dced1[_0x2609a3(0x1b7)]&&(_0x3d8163[_0x2609a3(0x3ce)](),_0x3d8163[_0x2609a3(0x40f)]=_0x2dced1[_0x2609a3(0x1b7)],_0x2dced1[_0x2609a3(0x22d)]==='evenodd'?_0x3d8163['fill']('evenodd'):_0x3d8163['fill'](),_0x3d8163['restore']());}class te extends p[_0x4b2219(0x2e2)]{constructor(_0x3e13c0,_0x4b4716){const _0x5ab8e2=_0x4b2219;super(_0x3e13c0,_0x4b4716),_(this,_0x5ab8e2(0x1db)),_(this,'text'),(this[_0x5ab8e2(0x1db)]=_0x4b4716==null?void 0x0:_0x4b4716[_0x5ab8e2(0x1db)],this['text']=_0x4b4716==null?void 0x0:_0x4b4716[_0x5ab8e2(0x1d0)]);}static['drawWith'](_0x17ea12,_0xe8063e){const _0x38546a=_0x4b2219,{text:_0x54698d,color:_0x284f7b}=_0xe8063e;_0x17ea12[_0x38546a(0x3ce)](),_0x17ea12[_0x38546a(0x235)]=_0x38546a(0x2d1);const _0x5a6a37=_0x17ea12[_0x38546a(0x29f)](_0x54698d)[_0x38546a(0x398)],_0x685d72=Math[_0x38546a(0x3bd)](_0x5a6a37+0x2*re,De);ht(_0x17ea12,{'height':K,'radius':0x4,'width':_0x685d72,'fill':_0x284f7b}),_0x17ea12[_0x38546a(0x40f)]=_0x38546a(0x2ab);const _0x4c7520=re,_0x488b2d=K-_t,_0x1a2bce=De-0x2*re;if(_0x5a6a37>_0x1a2bce){let _0x3a19ee='',_0x1ead02=0x0;for(const _0x43bc4 of _0x54698d){const _0x22fa58=_0x17ea12[_0x38546a(0x29f)](_0x43bc4)[_0x38546a(0x398)];if(_0x1ead02+_0x22fa58<=_0x1a2bce-_0x17ea12[_0x38546a(0x29f)](_0x38546a(0x1bd))['width'])_0x3a19ee+=_0x43bc4,_0x1ead02+=_0x22fa58;else{_0x3a19ee+='...';break;}}_0x17ea12[_0x38546a(0x34e)](_0x3a19ee,_0x4c7520,_0x488b2d);}else _0x17ea12[_0x38546a(0x34e)](_0x54698d,_0x4c7520,_0x488b2d);_0x17ea12[_0x38546a(0x318)]();}[_0x4b2219(0x290)](_0x33afc1){const _0xdb0b5=_0x4b2219;te[_0xdb0b5(0x3b8)](_0x33afc1,this);}}const oe=_0x4b2219(0x2b5),ut=_0x4b2219(0x2fc),dt='collab-rect-range-',k=0x6,ft=1.5,ae=0x4,St=1.5,It=_0x4b2219(0x299);class Ue{constructor(_0x4626d4,_0x28bc61,_0x1b449d,_0x10475e){const _0xd3d83d=_0x4b2219;_(this,_0xd3d83d(0x348),[]),_(this,_0xd3d83d(0x294),null),_(this,'_textBubble',null),_(this,_0xd3d83d(0x1fc),null),_(this,'_hideTimer',null),_(this,_0xd3d83d(0x386),null),(this[_0xd3d83d(0x2a5)]=_0x4626d4,this['_scene']=_0x28bc61,this[_0xd3d83d(0x380)]=_0x1b449d,this[_0xd3d83d(0x397)]=_0x10475e,this[_0xd3d83d(0x37b)]());}set[_0x4b2219(0x3c4)](_0x1c6bac){const _0xbb2c5b=_0x4b2219;_0x1c6bac?(this[_0xbb2c5b(0x1fc)]&&this[_0xbb2c5b(0x1fc)][_0xbb2c5b(0x255)](),this['_textBubble']&&this[_0xbb2c5b(0x212)][_0xbb2c5b(0x267)]()):(this[_0xbb2c5b(0x1fc)]&&this[_0xbb2c5b(0x1fc)][_0xbb2c5b(0x267)](),this[_0xbb2c5b(0x212)]&&this[_0xbb2c5b(0x212)][_0xbb2c5b(0x255)]());}[_0x4b2219(0x3d9)](){const _0x4913b9=_0x4b2219;for(const _0x5dc90b of this[_0x4913b9(0x348)])_0x5dc90b[_0x4913b9(0x3d9)]();this[_0x4913b9(0x212)]&&this[_0x4913b9(0x212)][_0x4913b9(0x3d9)](),this[_0x4913b9(0x1fc)]&&this[_0x4913b9(0x1fc)]['dispose'](),this[_0x4913b9(0x294)]&&this[_0x4913b9(0x294)][_0x4913b9(0x3d9)](),this[_0x4913b9(0x386)]&&this[_0x4913b9(0x386)]();}[_0x4b2219(0x37b)](){const _0x2e3c46=_0x4b2219;var _0x3b1e22;const {_docSkeleton:_0x57303d,_document:_0x2642bd}=this,{color:_0x46c7e2,name:_0x4062be,ranges:_0x240428}=this[_0x2e3c46(0x2a5)],_0x50a24d=_0x2642bd[_0x2e3c46(0x256)](),{docsLeft:_0x1f6324,docsTop:_0x212981}=_0x50a24d,_0x53d78c=new b['NodePositionConvertToCursor'](_0x50a24d,_0x57303d);for(const {startOffset:_0x49b6b1,endOffset:_0x58832e,rangeType:_0x5e4c5b,segmentId:_0x61f92d,segmentPage:_0x3c9390,collapsed:_0x2138b7,isActive:_0x3ee549}of _0x240428){const _0x1d4ecd=_0x57303d['findNodePositionByCharIndex'](_0x49b6b1,!0x0,_0x61f92d,_0x3c9390);let _0x25a7af=_0x57303d[_0x2e3c46(0x364)](_0x58832e,!0x0,_0x61f92d,_0x3c9390);if(_0x25a7af==null&&(_0x25a7af=_0x57303d[_0x2e3c46(0x364)](_0x58832e-0x1,!0x1,_0x61f92d,_0x3c9390)),_0x3ee549){const {contentBoxPointGroup:_0x12e77a}=_0x53d78c[_0x2e3c46(0x27d)](_0x25a7af,_0x25a7af);if(_0x12e77a[_0x2e3c46(0x39f)]===0x0)continue;this['_drawAnchor'](_0x46c7e2,_0x12e77a,_0x1f6324,_0x212981,_0x4062be),this[_0x2e3c46(0x386)]=this['_handleHover']();}if(_0x1d4ecd&&_0x25a7af){if(_0x5e4c5b===a[_0x2e3c46(0x377)]['RECT']){const _0x22c90c=new b[(_0x2e3c46(0x3ee))](_0x50a24d,_0x57303d),{pointGroup:_0x58f281}=(_0x3b1e22=_0x22c90c[_0x2e3c46(0x27d)](_0x1d4ecd,_0x25a7af))!=null?_0x3b1e22:{};if(_0x58f281==null||_0x58f281['length']===0x0)continue;this[_0x2e3c46(0x3d1)](_0x46c7e2,_0x58f281,_0x1f6324,_0x212981);}else{if(!_0x2138b7){const {borderBoxPointGroup:_0x4f2e51}=_0x53d78c['getRangePointData'](_0x1d4ecd,_0x25a7af);if(_0x4f2e51['length']===0x0)continue;this[_0x2e3c46(0x22b)](_0x46c7e2,_0x4f2e51,_0x1f6324,_0x212981);}}}}}['_drawAnchor'](_0x1cf4a3,_0xd3c754,_0x5c58a2,_0x45e532,_0x2308bc){const _0xc5f89=_0x4b2219,_0x35b4c8=this['_getAnchorBounding'](_0xd3c754),{left:_0x29b25d,top:_0x5140bb,height:_0x5b4701}=_0x35b4c8,_0x46818e=this['_getScale'](),_0x3eb3aa=St/_0x46818e,_0x34e3c6=new p[(_0xc5f89(0x1ec))](oe+a[_0xc5f89(0x24b)]['generateRandomId'](k),{'left':_0x29b25d+_0x5c58a2-_0x3eb3aa,'top':_0x5140bb+_0x45e532,'height':_0x5b4701,'width':ft,'fill':_0x1cf4a3||p[_0xc5f89(0x222)](a[_0xc5f89(0x407)][_0xc5f89(0x396)],0x0),'strokeWidth':_0x3eb3aa,'stroke':It,'evented':!0x0});this[_0xc5f89(0x294)]=_0x34e3c6,this[_0xc5f89(0x39d)]['addObject'](_0x34e3c6,b['TEXT_RANGE_LAYER_INDEX']);const _0x52da98=new p[(_0xc5f89(0x1ec))](oe+a[_0xc5f89(0x24b)][_0xc5f89(0x2ed)](k),{'left':_0x29b25d+_0x5c58a2-_0x3eb3aa,'top':_0x5140bb+_0x45e532-ae/0x2,'height':ae,'width':ae,'fill':_0x1cf4a3||p['getColor'](a[_0xc5f89(0x407)][_0xc5f89(0x396)],0x0),'strokeWidth':0x0,'stroke':_0x1cf4a3||p[_0xc5f89(0x222)](a[_0xc5f89(0x407)][_0xc5f89(0x396)],0x0),'evented':!0x1});this[_0xc5f89(0x1fc)]=_0x52da98,this[_0xc5f89(0x39d)]['addObject'](_0x52da98,b[_0xc5f89(0x415)]);const _0x4aca1c=new te(oe+a[_0xc5f89(0x24b)][_0xc5f89(0x2ed)](k),{'left':_0x29b25d+_0x5c58a2-_0x3eb3aa,'top':_0x5140bb+_0x45e532-K,'text':_0x2308bc,'color':_0x1cf4a3});this[_0xc5f89(0x212)]=_0x4aca1c,this['_scene'][_0xc5f89(0x3cf)](_0x4aca1c,b[_0xc5f89(0x415)]),this['_hover']=!0x1;}[_0x4b2219(0x3e2)](){const _0x358a99=_0x4b2219,_0x4fedb4=this[_0x358a99(0x294)]['onPointerEnter$'][_0x358a99(0x2bc)](()=>{this['_hover']=!0x0;}),_0x10810c=this[_0x358a99(0x294)][_0x358a99(0x433)][_0x358a99(0x2bc)](()=>{const _0x21bcfe=_0x358a99;this[_0x21bcfe(0x26e)]&&clearTimeout(this[_0x21bcfe(0x26e)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x125687=_0x358a99;_0x4fedb4[_0x125687(0x25c)](),_0x10810c[_0x125687(0x25c)]();};}[_0x4b2219(0x22b)](_0x3b73e1,_0x1a8ca2,_0x101dc9,_0x952d11){const _0x1fa5f6=_0x4b2219,_0x1a41b9=new a['ColorKit'](_0x3b73e1)[_0x1fa5f6(0x237)](0.2)['toRgbString'](),_0x4c8942=new p[(_0x1fa5f6(0x2db))](ut+a[_0x1fa5f6(0x24b)][_0x1fa5f6(0x2ed)](k),{'pointsGroup':_0x1a8ca2,'fill':_0x1a41b9||p['getColor'](a[_0x1fa5f6(0x407)][_0x1fa5f6(0x396)],0.2),'left':_0x101dc9,'top':_0x952d11,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1fa5f6(0x348)]['push'](_0x4c8942),this['_scene']['addObject'](_0x4c8942,b[_0x1fa5f6(0x415)]);}[_0x4b2219(0x3d1)](_0x571a37,_0x5d5d78,_0x43cc75,_0x1a4aa5){const _0x22d3b7=_0x4b2219,_0x4800ca=new a[(_0x22d3b7(0x203))](_0x571a37)[_0x22d3b7(0x237)](0.2)[_0x22d3b7(0x33f)](),_0x4bb675=new p[(_0x22d3b7(0x2db))](dt+a[_0x22d3b7(0x24b)][_0x22d3b7(0x2ed)](k),{'pointsGroup':_0x5d5d78,'fill':_0x4800ca||p[_0x22d3b7(0x222)](a[_0x22d3b7(0x407)]['black'],0.2),'left':_0x43cc75,'top':_0x1a4aa5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x22d3b7(0x348)]['push'](_0x4bb675),this[_0x22d3b7(0x39d)][_0x22d3b7(0x3cf)](_0x4bb675,b[_0x22d3b7(0x415)]);}['_getAnchorBounding'](_0x1f8b96){const _0x47f4ea=_0x1f8b96[0x0],_0x52ca96=_0x47f4ea[0x0],_0x2bd5f8=_0x47f4ea[0x2],{x:_0x42182a,y:_0x3ed868}=_0x52ca96,{x:_0x561668,y:_0x156745}=_0x2bd5f8;return{'left':_0x42182a,'top':_0x3ed868,'width':_0x561668-_0x42182a,'height':_0x156745-_0x3ed868};}[_0x4b2219(0x2f3)](){const _0x564d18=_0x4b2219,{scaleX:_0x4d717f,scaleY:_0x56e43e}=this[_0x564d18(0x39d)][_0x564d18(0x1f4)]();return Math[_0x564d18(0x404)](_0x4d717f,_0x56e43e);}}var vt=Object[_0x4b2219(0x2d2)],gt=(_0x68cd58,_0x425aea,_0xf36b41,_0x170d5f)=>{const _0x7b7c9b=_0x4b2219;for(var _0x2e39a2=_0x170d5f>0x1?void 0x0:_0x170d5f?vt(_0x425aea,_0xf36b41):_0x425aea,_0x4f1dda=_0x68cd58[_0x7b7c9b(0x39f)]-0x1,_0x4c4c30;_0x4f1dda>=0x0;_0x4f1dda--)(_0x4c4c30=_0x68cd58[_0x4f1dda])&&(_0x2e39a2=_0x4c4c30(_0x2e39a2)||_0x2e39a2);return _0x2e39a2;},V=(_0x2759d0,_0x1101a4)=>(_0x277d3d,_0x3dab26)=>_0x1101a4(_0x277d3d,_0x3dab26,_0x2759d0);let ve=class extends a[_0x4b2219(0x28c)]{constructor(_0x26a667,_0x306dde,_0x336ac2,_0x3c08e7,_0xd1bfc8){const _0xee6a42=_0x4b2219;super(),_(this,_0xee6a42(0x1ef),[]),_(this,_0xee6a42(0x3be),[]),(this[_0xee6a42(0x41c)]=_0x26a667,this[_0xee6a42(0x2a0)]=_0x306dde,this[_0xee6a42(0x3d5)]=_0x336ac2,this[_0xee6a42(0x216)]=_0x3c08e7,this['_themeService']=_0xd1bfc8,this[_0xee6a42(0x333)]());}[_0x4b2219(0x333)](){const _0x2fe870=_0x4b2219,_0x3b538e=this[_0x2fe870(0x41c)]['unitId'],_0x5cd51e=this[_0x2fe870(0x2a0)];this['disposeWithMe'](d[_0x2fe870(0x30c)]([this[_0x2fe870(0x3d5)]['getCollabCursors$'](_0x3b538e),this['_themeService']['currentTheme$']])[_0x2fe870(0x1ce)]($['map'](([_0x428c57,_0x1d78e3])=>({'skeleton':_0x5cd51e[_0x2fe870(0x2ee)](),'cursors':[..._0x428c57[_0x2fe870(0x2f7)]()][_0x2fe870(0x335)](_0x57a83b=>({..._0x57a83b,'color':_0x1d78e3[_0x57a83b[_0x2fe870(0x1db)]]}))})))['subscribe'](_0x2de87b=>{if(this['_removeCollabCursors'](),_0x2de87b){const {skeleton:_0x53efde,cursors:_0x5bb622}=_0x2de87b;this['_updateCollabCursors'](_0x53efde,_0x5bb622);}})),this[_0x2fe870(0x1d2)](),this[_0x2fe870(0x38d)]();}[_0x4b2219(0x35d)](_0x4c06ad,_0x358535){const _0x135d96=_0x4b2219,{scene:_0x4c31ed,mainComponent:_0x4be0c1}=this[_0x135d96(0x41c)],_0x26f4e7=_0x358535['map'](_0x50331d=>new Ue(_0x50331d,_0x4c31ed,_0x4c06ad,_0x4be0c1));this['_cursorShapes']=_0x26f4e7,this[_0x135d96(0x3be)]=_0x358535;}[_0x4b2219(0x330)](){const _0x30f925=_0x4b2219;this[_0x30f925(0x252)]();const {scene:_0x122f0a,mainComponent:_0x59db51}=this[_0x30f925(0x41c)],_0x544ae8=this[_0x30f925(0x2a0)][_0x30f925(0x2ee)](),_0x3e61f2=this[_0x30f925(0x3be)]['map'](_0x3afd42=>new Ue(_0x3afd42,_0x122f0a,_0x544ae8,_0x59db51));this[_0x30f925(0x1ef)]=_0x3e61f2;}[_0x4b2219(0x252)](){const _0x4730c4=_0x4b2219;this[_0x4730c4(0x1ef)][_0x4730c4(0x423)](_0x48f395=>_0x48f395[_0x4730c4(0x3d9)]()),this[_0x4730c4(0x1ef)]=[];}['_initCommandExecutedListener'](){const _0x114a93=_0x4b2219,_0x951cbc=[b[_0x114a93(0x224)]['id']];this[_0x114a93(0x274)](this[_0x114a93(0x216)][_0x114a93(0x417)](_0x355d96=>{const _0x402d63=_0x114a93;_0x951cbc['includes'](_0x355d96['id'])&&_0x355d96['params']['unitId']===this[_0x402d63(0x41c)][_0x402d63(0x1da)]&&this['_refreshCollabCursors']();}));}[_0x4b2219(0x1d2)](){const _0x55c919=_0x4b2219;this[_0x55c919(0x274)](a[_0x55c919(0x298)](this[_0x55c919(0x41c)][_0x55c919(0x3ec)][_0x55c919(0x20d)])[_0x55c919(0x1ce)]($['filter'](_0x4e7ec3=>_0x4e7ec3[_0x55c919(0x1f8)]===p[_0x55c919(0x226)][_0x55c919(0x3c6)]),$[_0x55c919(0x33d)](0x10))[_0x55c919(0x1f3)](()=>{const _0x28af27=_0x55c919;this[_0x28af27(0x330)]();}));}};ve=gt([V(0x1,a['Inject'](Y['DocSkeletonManagerService'])),V(0x2,a['Inject'](x)),V(0x3,a[_0x4b2219(0x21e)]),V(0x4,a[_0x4b2219(0x21c)](a[_0x4b2219(0x406)]))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x4b2219(0x2e2)]{constructor(_0x475e6e,_0x51185c){const _0x13b7ed=_0x4b2219;super(_0x475e6e,_0x51185c),_(this,'_color'),_(this,_0x13b7ed(0x1cc),!0x1),_(this,_0x13b7ed(0x424)),_(this,'_name',''),_(this,_0x13b7ed(0x1c1),'top'),_(this,_0x13b7ed(0x242)),(_0x51185c&&this[_0x13b7ed(0x278)](_0x51185c),this[_0x13b7ed(0x412)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x13b7ed(0x2bc)](()=>this[_0x13b7ed(0x278)]({'hovered':!0x1})));}[_0x4b2219(0x278)](_0xa71c90){const _0x2d8ec8=_0x4b2219;var _0x36456c,_0x2ede44,_0x2da37f,_0x25cbab,_0x1ca571,_0x982582;this['_color']=(_0x36456c=_0xa71c90[_0x2d8ec8(0x1db)])!=null?_0x36456c:this[_0x2d8ec8(0x3ca)],this['_hovered']=(_0x2ede44=_0xa71c90[_0x2d8ec8(0x209)])!=null?_0x2ede44:this[_0x2d8ec8(0x1cc)],this[_0x2d8ec8(0x424)]=(_0x2da37f=_0xa71c90[_0x2d8ec8(0x42b)])!=null?_0x2da37f:this[_0x2d8ec8(0x424)],this['_name']=(_0x25cbab=_0xa71c90[_0x2d8ec8(0x243)])!=null?_0x25cbab:this['_name'],this[_0x2d8ec8(0x1c1)]=(_0x1ca571=_0xa71c90[_0x2d8ec8(0x264)])!=null?_0x1ca571:this[_0x2d8ec8(0x1c1)],this['_backgroundColor']=(_0x982582=_0xa71c90['backgroundColor'])!=null?_0x982582:this['_backgroundColor'],this[_0x2d8ec8(0x2ad)]({'width':_0xa71c90[_0x2d8ec8(0x398)],'height':_0xa71c90[_0x2d8ec8(0x293)]});}['onMouseMove'](_0x503eff){const _0x406d37=_0x4b2219,{row:_0x1878d3,column:_0x7dc233}=_0x503eff;if(_0x1878d3>=this[_0x406d37(0x424)][_0x406d37(0x31b)]&&_0x1878d3<=this[_0x406d37(0x424)][_0x406d37(0x40d)]&&_0x7dc233>=this[_0x406d37(0x424)][_0x406d37(0x260)]&&_0x7dc233<=this[_0x406d37(0x424)][_0x406d37(0x35f)]){this[_0x406d37(0x278)]({'hovered':!0x0});return;}this[_0x406d37(0x278)]({'hovered':!0x1});}[_0x4b2219(0x382)](_0x5a741f){return!0x1;}[_0x4b2219(0x290)](_0x465c28){const _0x2e9386=_0x4b2219;p[_0x2e9386(0x1ec)]['drawWith'](_0x465c28,{'width':this[_0x2e9386(0x398)],'height':this[_0x2e9386(0x293)],'strokeWidth':Ct,'stroke':this[_0x2e9386(0x3ca)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x2e9386(0x1cc)]&&(_0x465c28[_0x2e9386(0x3ce)](),_0x465c28['transform'](0x1,0x0,0x0,0x1,this[_0x2e9386(0x398)],this[_0x2e9386(0x1c1)]===_0x2e9386(0x370)?0x0:-0x14),te[_0x2e9386(0x3b8)](_0x465c28,{'text':this['_name'],'color':this[_0x2e9386(0x3ca)]}),_0x465c28[_0x2e9386(0x318)]());}}var pt=Object[_0x4b2219(0x2d2)],bt=(_0x2c2d03,_0x282df5,_0x5c2d46,_0x9a5ee8)=>{const _0x320aaf=_0x4b2219;for(var _0x4efeee=_0x9a5ee8>0x1?void 0x0:_0x9a5ee8?pt(_0x282df5,_0x5c2d46):_0x282df5,_0xd18b85=_0x2c2d03[_0x320aaf(0x39f)]-0x1,_0x34a6be;_0xd18b85>=0x0;_0xd18b85--)(_0x34a6be=_0x2c2d03[_0xd18b85])&&(_0x4efeee=_0x34a6be(_0x4efeee)||_0x4efeee);return _0x4efeee;},ce=(_0x44187d,_0x39e1fc)=>(_0xad17b8,_0x281c30)=>_0x39e1fc(_0xad17b8,_0x281c30,_0x44187d);const Et=0x1389;let ge=class extends a[_0x4b2219(0x28c)]{constructor(_0x13a913,_0x2d92d4,_0x4651bf,_0x2e1f67){const _0x5f4da1=_0x4b2219;super(),_(this,_0x5f4da1(0x3be),new Set()),_(this,'_lastPointer',null),(this[_0x5f4da1(0x41c)]=_0x13a913,this[_0x5f4da1(0x3c9)]=_0x2d92d4,this[_0x5f4da1(0x3d5)]=_0x4651bf,this['_themeService']=_0x2e1f67,this[_0x5f4da1(0x333)]());}[_0x4b2219(0x333)](){const _0x139ff6=_0x4b2219;this[_0x139ff6(0x3c9)]['currentSkeleton$'][_0x139ff6(0x1ce)]($[_0x139ff6(0x20c)](this[_0x139ff6(0x3f6)]),$[_0x139ff6(0x36a)](_0x2b829a=>{const _0x58c6bc=_0x139ff6;if(_0x2b829a){const _0x381527=_0x2b829a[_0x58c6bc(0x3c5)];return d[_0x58c6bc(0x30c)](this[_0x58c6bc(0x3d5)][_0x58c6bc(0x33e)](this[_0x58c6bc(0x41c)]['unitId']),this[_0x58c6bc(0x291)][_0x58c6bc(0x27a)])['pipe']($['map'](([_0x28ab50,_0x5bee61])=>{const _0x599fd5=_0x58c6bc,_0x412c59=new Map();return _0x28ab50[_0x599fd5(0x423)]((_0xb2994c,_0x4b4a4d)=>{const _0x5a19f9=_0x599fd5;if(_0xb2994c[_0x5a19f9(0x3cd)]===_0x381527){const _0x10934d={..._0xb2994c};_0x10934d['color']=_0x5bee61[_0xb2994c['color']],_0x412c59[_0x5a19f9(0x1f6)](_0x4b4a4d,_0x10934d);}}),{'skeleton':_0x2b829a,'cursors':_0x412c59};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x139ff6(0x1f3)](({skeleton:_0x11d6b1,cursors:_0x2abf96})=>{const _0x3350c=_0x139ff6;this[_0x3350c(0x252)](),_0x11d6b1&&this[_0x3350c(0x35d)](_0x11d6b1,_0x2abf96);}),this[_0x139ff6(0x3c9)][_0x139ff6(0x308)]['subscribe'](_0x125e50=>{const _0x487738=_0x139ff6;if(_0x125e50==null)return;const {skeleton:_0x75fe3}=_0x125e50,{scene:_0x170998}=this[_0x487738(0x41c)];_0x170998['onPointerMove$']['subscribeEvent'](a[_0x487738(0x28b)](_0x5efa6a=>{const _0x281201=_0x487738;var _0x239498,_0x1f8ead;const {offsetX:_0x293603,offsetY:_0x256c01}=_0x5efa6a,{x:_0x330b9a,y:_0x48248b}=_0x170998[_0x281201(0x3db)](p[_0x281201(0x239)]['FromArray']([_0x293603,_0x256c01])),{scaleX:_0x1193fc,scaleY:_0x722217}=_0x170998[_0x281201(0x1f4)](),_0xf2db2e=_0x170998['getViewport'](p[_0x281201(0x219)]['VIEW_MAIN']),_0x49e5f7=_0x170998['getVpScrollXYInfoByPosToVp'](p[_0x281201(0x239)][_0x281201(0x3e0)]([_0x330b9a,_0x48248b]),_0xf2db2e),_0x3702a3=_0x75fe3[_0x281201(0x2fb)](_0x293603,_0x256c01,_0x1193fc,_0x722217,_0x49e5f7);((_0x239498=this[_0x281201(0x3af)])==null?void 0x0:_0x239498[_0x281201(0x2f0)])===_0x3702a3[_0x281201(0x2f0)]&&((_0x1f8ead=this[_0x281201(0x3af)])==null?void 0x0:_0x1f8ead[_0x281201(0x2cc)])===_0x3702a3[_0x281201(0x2cc)]||this[_0x281201(0x3be)][_0x281201(0x423)](_0x446803=>{const _0x3f9b89=_0x281201;_0x446803[_0x3f9b89(0x2f4)](_0x3702a3);});},0x64));});}[_0x4b2219(0x35d)](_0x527b1c,_0x3a9508){const _0x5e2e91=_0x4b2219;var _0x4a4df3;const _0x58c201=(_0x4a4df3=this[_0x5e2e91(0x3c9)][_0x5e2e91(0x2ae)]())==null?void 0x0:_0x4a4df3[_0x5e2e91(0x284)];if(!_0x58c201)return;const _0x2c1b3f=this['_getSheetObject']();if(!_0x2c1b3f)return;this[_0x5e2e91(0x3be)][_0x5e2e91(0x423)](_0x3db315=>{const _0x221a20=_0x5e2e91;_0x3db315[_0x221a20(0x1ed)]();});const {scene:_0x2dbdfd}=_0x2c1b3f,_0x3a92f8=Tt(Array[_0x5e2e91(0x3dd)](_0x3a9508[_0x5e2e91(0x2f7)]()))['map'](_0x5aeb07=>{const _0x16696b=_0x5e2e91,{color:_0x23d82d,range:_0x220cdc,name:_0x3aaa89,selection:_0x1f27a1,sheetID:_0x5a1a2d}=_0x5aeb07,{startColumn:_0x47a8f8,startRow:_0x5448ea,endColumn:_0x4ed436,endRow:_0x331a78}=_0x220cdc,_0x4d7bb5=G[_0x16696b(0x265)](_0x5448ea,_0x47a8f8,_0x2dbdfd,_0x58c201),_0x4a0a37=G[_0x16696b(0x265)](_0x331a78,_0x4ed436,_0x2dbdfd,_0x58c201),{columnHeaderHeightAndMarginTop:_0x49dd41}=_0x58c201,{startX:_0x576365,startY:_0x8df816}=_0x4d7bb5,{endX:_0xbb8204,endY:_0x290f04}=_0x4a0a37,_0x4792ab=_0xbb8204-_0x576365,_0x333de4=_0x290f04-_0x8df816,_0x5d2ab7={'labelPosition':_0x8df816-_0x49dd41>=K?'top':_0x16696b(0x370),'sheetID':_0x5a1a2d,'range':_0x220cdc,'color':_0x23d82d,'name':_0x3aaa89,'selection':_0x1f27a1,'left':_0x576365,'top':_0x8df816,'width':_0x4792ab,'height':_0x333de4,'evented':!0x1,'zIndex':Et};return new Ae(_0x3aaa89,_0x5d2ab7);});_0x2dbdfd[_0x5e2e91(0x3aa)](_0x3a92f8,mt),this[_0x5e2e91(0x3be)]=new Set(_0x3a92f8);}[_0x4b2219(0x252)](){const _0x918aa0=_0x4b2219;var _0x5c5afa;(_0x5c5afa=this[_0x918aa0(0x3be)])==null||_0x5c5afa[_0x918aa0(0x423)](_0x3839da=>_0x3839da[_0x918aa0(0x3d9)]());}[_0x4b2219(0x362)](){const _0x44e5bf=_0x4b2219;return G[_0x44e5bf(0x3fd)](this[_0x44e5bf(0x41c)][_0x44e5bf(0x1af)],this[_0x44e5bf(0x41c)]);}};ge=bt([ce(0x1,a['Inject'](G[_0x4b2219(0x23b)])),ce(0x2,a['Inject'](x)),ce(0x3,a[_0x4b2219(0x21c)](a[_0x4b2219(0x406)]))],ge);function Tt(_0x4a74dc){const _0x13dab4=_0x4b2219,_0x49448d=new Map();return _0x4a74dc[_0x13dab4(0x423)](_0x41a1a4=>{const _0x41b6cf=_0x13dab4;if(_0x49448d[_0x41b6cf(0x2b9)](_0x41a1a4['selection'])){const _0x252bd4=_0x49448d[_0x41b6cf(0x1d6)](_0x41a1a4[_0x41b6cf(0x1f1)]);_0x252bd4[_0x41b6cf(0x243)]+=',\x20'+_0x41a1a4[_0x41b6cf(0x243)];}else _0x49448d[_0x41b6cf(0x1f6)](_0x41a1a4[_0x41b6cf(0x1f1)],_0x41a1a4);}),Array[_0x13dab4(0x3dd)](_0x49448d['values']());}var E=function(){const _0x334623=_0x4b2219;return E=Object[_0x334623(0x22a)]||function(_0x239987){const _0x3a1da2=_0x334623;for(var _0xb52827,_0x5831a7=0x1,_0x4bb6f4=arguments[_0x3a1da2(0x39f)];_0x5831a7<_0x4bb6f4;_0x5831a7++){_0xb52827=arguments[_0x5831a7];for(var _0x3f2259 in _0xb52827)Object[_0x3a1da2(0x28f)][_0x3a1da2(0x2e1)][_0x3a1da2(0x41a)](_0xb52827,_0x3f2259)&&(_0x239987[_0x3f2259]=_0xb52827[_0x3f2259]);}return _0x239987;},E[_0x334623(0x2d9)](this,arguments);},Ot=function(_0x134b2a,_0x424519){const _0x79ea11=_0x4b2219;var _0x58f82d={};for(var _0x1e9478 in _0x134b2a)Object[_0x79ea11(0x28f)][_0x79ea11(0x2e1)][_0x79ea11(0x41a)](_0x134b2a,_0x1e9478)&&_0x424519[_0x79ea11(0x394)](_0x1e9478)<0x0&&(_0x58f82d[_0x1e9478]=_0x134b2a[_0x1e9478]);if(_0x134b2a!=null&&typeof Object['getOwnPropertySymbols']==_0x79ea11(0x3a4)){for(var _0x979357=0x0,_0x1e9478=Object['getOwnPropertySymbols'](_0x134b2a);_0x979357<_0x1e9478[_0x79ea11(0x39f)];_0x979357++)_0x424519[_0x79ea11(0x394)](_0x1e9478[_0x979357])<0x0&&Object[_0x79ea11(0x28f)]['propertyIsEnumerable'][_0x79ea11(0x41a)](_0x134b2a,_0x1e9478[_0x979357])&&(_0x58f82d[_0x1e9478[_0x979357]]=_0x134b2a[_0x1e9478[_0x979357]]);}return _0x58f82d;},be=M['forwardRef'](function(_0x37419f,_0x5c61e8){const _0x212b65=_0x4b2219;var _0x64b38=_0x37419f[_0x212b65(0x2a3)],_0x869f1d=_0x37419f['id'],_0xbbdea0=_0x37419f[_0x212b65(0x34a)],_0x404e6c=_0x37419f['extend'],_0x3113ca=Ot(_0x37419f,[_0x212b65(0x2a3),'id',_0x212b65(0x34a),_0x212b65(0x273)]),_0x5ac299=_0x212b65(0x3a7)['concat'](_0x869f1d,'\x20')[_0x212b65(0x1e3)](_0xbbdea0||'')[_0x212b65(0x2c1)](),_0x3cc010=M[_0x212b65(0x3ab)]('_'[_0x212b65(0x1e3)](Ut()));return ye(_0x64b38,''['concat'](_0x869f1d),{'defIds':_0x64b38[_0x212b65(0x3f8)],'idSuffix':_0x3cc010['current']},E({'ref':_0x5c61e8,'className':_0x5ac299},_0x3113ca),_0x404e6c);});function ye(_0x5dc2be,_0x171e30,_0x494bc3,_0x1a63d1,_0x489a57){const _0x58be57=_0x4b2219;return M[_0x58be57(0x366)](_0x5dc2be[_0x58be57(0x2c6)],E(E({'key':_0x171e30},Rt(_0x5dc2be,_0x494bc3,_0x489a57)),_0x1a63d1),(Dt(_0x5dc2be,_0x494bc3)[_0x58be57(0x279)]||[])[_0x58be57(0x2c7)](function(_0x2485a3,_0x5dcb60){const _0x850ee2=_0x58be57;return ye(_0x2485a3,''[_0x850ee2(0x1e3)](_0x171e30,'-')['concat'](_0x5dc2be[_0x850ee2(0x2c6)],'-')[_0x850ee2(0x1e3)](_0x5dcb60),_0x494bc3,void 0x0,_0x489a57);}));}function Rt(_0x5f1cd3,_0x1291f0,_0x53da09){const _0x464606=_0x4b2219;var _0x2ec3c5=E({},_0x5f1cd3[_0x464606(0x33c)]);_0x53da09!=null&&_0x53da09[_0x464606(0x3bb)]&&_0x2ec3c5[_0x464606(0x1b7)]===_0x464606(0x3bb)&&(_0x2ec3c5[_0x464606(0x1b7)]=_0x53da09['colorChannel1']),_0x5f1cd3[_0x464606(0x2c6)]===_0x464606(0x2ca)&&_0x2ec3c5['id']&&(_0x2ec3c5['id']=_0x2ec3c5['id']+_0x1291f0['idSuffix']),Object['entries'](_0x2ec3c5)[_0x464606(0x423)](function(_0x2d0162){const _0x47b4c5=_0x464606;var _0x3e98ba=_0x2d0162[0x0],_0xa5a115=_0x2d0162[0x1];_0x3e98ba==='mask'&&typeof _0xa5a115=='string'&&(_0x2ec3c5[_0x3e98ba]=_0xa5a115[_0x47b4c5(0x34d)](/url\(#(.*)\)/,_0x47b4c5(0x246)[_0x47b4c5(0x1e3)](_0x1291f0[_0x47b4c5(0x286)],')')));});var _0x327ebf=_0x1291f0[_0x464606(0x3f8)];return!_0x327ebf||_0x327ebf[_0x464606(0x39f)]===0x0||(_0x5f1cd3[_0x464606(0x2c6)]===_0x464606(0x34c)&&_0x2ec3c5[_0x464606(0x332)]&&(_0x2ec3c5[_0x464606(0x332)]=_0x2ec3c5[_0x464606(0x332)]+_0x1291f0[_0x464606(0x286)]),Object[_0x464606(0x36f)](_0x2ec3c5)['forEach'](function(_0x8bb6de){const _0x19eb5b=_0x464606;var _0x5d6753=_0x8bb6de[0x0],_0x13e253=_0x8bb6de[0x1];typeof _0x13e253==_0x19eb5b(0x295)&&(_0x2ec3c5[_0x5d6753]=_0x13e253[_0x19eb5b(0x34d)](/url\(#(.*)\)/,_0x19eb5b(0x246)[_0x19eb5b(0x1e3)](_0x1291f0['idSuffix'],')')));})),_0x2ec3c5;}function Dt(_0x2c737f,_0x2656bb){const _0x314515=_0x4b2219;var _0xc73e1a,_0xaf908b=_0x2656bb['defIds'];return!_0xaf908b||_0xaf908b['length']===0x0?_0x2c737f:_0x2c737f[_0x314515(0x2c6)]===_0x314515(0x1b2)&&(!((_0xc73e1a=_0x2c737f[_0x314515(0x279)])===null||_0xc73e1a===void 0x0)&&_0xc73e1a['length'])?E(E({},_0x2c737f),{'children':_0x2c737f[_0x314515(0x279)]['map'](function(_0x5dd2a5){const _0x2bd1f8=_0x314515;return typeof _0x5dd2a5[_0x2bd1f8(0x33c)]['id']==_0x2bd1f8(0x295)&&_0xaf908b&&_0xaf908b[_0x2bd1f8(0x394)](_0x5dd2a5['attrs']['id'])>-0x1?E(E({},_0x5dd2a5),{'attrs':E(E({},_0x5dd2a5[_0x2bd1f8(0x33c)]),{'id':_0x5dd2a5[_0x2bd1f8(0x33c)]['id']+_0x2656bb['idSuffix']})}):_0x5dd2a5;})}):_0x2c737f;}function Ut(){const _0x229df4=_0x4b2219;return Math[_0x229df4(0x334)]()[_0x229df4(0x2e3)](0x24)[_0x229df4(0x29a)](0x2,0x8);}be[_0x4b2219(0x37e)]=_0x4b2219(0x25d);var Nt={'tag':_0x4b2219(0x1c0),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x4b2219(0x3cb),'height':_0x4b2219(0x3cb)},'children':[{'tag':'g','attrs':{'clipPath':_0x4b2219(0x307)},'children':[{'tag':_0x4b2219(0x35e),'attrs':{'stroke':'currentColor','d':_0x4b2219(0x3de),'strokeLinecap':'round','strokeLinejoin':_0x4b2219(0x24c),'strokeWidth':1.2}}]},{'tag':_0x4b2219(0x1b2),'attrs':{},'children':[{'tag':_0x4b2219(0x289),'attrs':{'id':_0x4b2219(0x351)},'children':[{'tag':'path','attrs':{'fill':_0x4b2219(0x345),'d':_0x4b2219(0x26d)}}]}]}],'defIds':[_0x4b2219(0x351)]},$e=M[_0x4b2219(0x33b)](function(_0x491196,_0x604fdd){const _0x17af77=_0x4b2219;return M[_0x17af77(0x366)](be,Object['assign']({},_0x491196,{'id':_0x17af77(0x391),'ref':_0x604fdd,'icon':Nt}));});$e['displayName']=_0x4b2219(0x430);var Mt={'tag':_0x4b2219(0x1c0),'attrs':{'fill':_0x4b2219(0x25e),'viewBox':'0\x200\x2017\x2016','width':_0x4b2219(0x3cb),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4b2219(0x270)},'children':[{'tag':'path','attrs':{'stroke':_0x4b2219(0x393),'d':_0x4b2219(0x3ea),'strokeLinecap':_0x4b2219(0x24c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4b2219(0x1b2),'attrs':{},'children':[{'tag':_0x4b2219(0x289),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x4b2219(0x35e),'attrs':{'fill':_0x4b2219(0x345),'d':_0x4b2219(0x26d),'transform':_0x4b2219(0x34b)}}]}]}],'defIds':[_0x4b2219(0x3ba)]},xe=M[_0x4b2219(0x33b)](function(_0x4eaf5c,_0x44ad1d){const _0x16487a=_0x4b2219;return M[_0x16487a(0x366)](be,Object[_0x16487a(0x22a)]({},_0x4eaf5c,{'id':_0x16487a(0x346),'ref':_0x44ad1d,'icon':Mt}));});xe['displayName']=_0x4b2219(0x31c);const Lt='univer-online-status-icon',Pt=_0x4b2219(0x313),wt='univer-online-status',At=_0x4b2219(0x1e2),yt=_0x4b2219(0x275),H={'onlineStatusIcon':Lt,'onlineStatusTitle':Pt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0xc243c0){const _0x7269f1=_0x4b2219;switch(_0xc243c0){case u[_0x7269f1(0x367)]['OFFLINE']:return _0x7269f1(0x39e);case u[_0x7269f1(0x367)][_0x7269f1(0x3bc)]:return _0x7269f1(0x3a9);case u[_0x7269f1(0x367)]['FETCH_MISS']:return'collabStatus.fetchMiss';case u[_0x7269f1(0x367)][_0x7269f1(0x29d)]:return _0x7269f1(0x244);case u[_0x7269f1(0x367)]['AWAITING']:case u[_0x7269f1(0x367)]['AWAITING_WITH_PENDING']:return _0x7269f1(0x35a);case u[_0x7269f1(0x367)][_0x7269f1(0x3ad)]:case u['CollaborationStatus'][_0x7269f1(0x349)]:return _0x7269f1(0x2df);}}function je(_0x47b027){const _0x4d0b46=_0x4b2219,{status$:_0x3f9af5}=_0x47b027,_0x4fafdc=O['useObservable'](_0x3f9af5,u[_0x4d0b46(0x367)][_0x4d0b46(0x29d)]),_0x490b42=O[_0x4d0b46(0x2a4)](a['LocaleService']),_0x2dbbca=O[_0x4d0b46(0x2a4)](u['CollaborationSessionService']),_0x2a5027=_0x4fafdc!==u[_0x4d0b46(0x367)]['OFFLINE'],_0x573ad1=_0x490b42['t']($t(_0x4fafdc)),_0x2eeb39=T[_0x4d0b46(0x32c)](H[_0x4d0b46(0x39a)],{[H[_0x4d0b46(0x281)]]:_0x2a5027,[H[_0x4d0b46(0x2b3)]]:!_0x2a5027}),_0x4375f7=_0x2a5027?P[_0x4d0b46(0x1bf)](xe,{}):P[_0x4d0b46(0x1bf)]($e,{}),_0x3dcac2=M[_0x4d0b46(0x27c)](()=>{const _0x127973=_0x4d0b46;_0x2a5027||_0x2dbbca[_0x127973(0x347)]();},[_0x2a5027,_0x2dbbca]);function _0x31fec0(){const _0x34a3eb=_0x4d0b46;return P[_0x34a3eb(0x25b)](_0x34a3eb(0x2f9),{'className':T[_0x34a3eb(0x32c)](_0x2eeb39,_0x34a3eb(0x208)),'onClick':_0x3dcac2,'children':[P[_0x34a3eb(0x1bf)](_0x34a3eb(0x2f9),{'className':H['onlineStatusIcon'],'children':_0x4375f7}),P['jsx'](_0x34a3eb(0x2f9),{'className':H['onlineStatusTitle'],'children':_0x573ad1})]});}return _0x2a5027?_0x31fec0():P[_0x4d0b46(0x1bf)](T['Tooltip'],{'title':_0x490b42['t'](_0x4d0b46(0x1ea)),'children':_0x31fec0()});}var xt=Object['getOwnPropertyDescriptor'],jt=(_0x51e0b1,_0x579507,_0x4d9678,_0x265b6f)=>{const _0x422987=_0x4b2219;for(var _0x162cca=_0x265b6f>0x1?void 0x0:_0x265b6f?xt(_0x579507,_0x4d9678):_0x579507,_0x2b1546=_0x51e0b1[_0x422987(0x39f)]-0x1,_0x50aaed;_0x2b1546>=0x0;_0x2b1546--)(_0x50aaed=_0x51e0b1[_0x2b1546])&&(_0x162cca=_0x50aaed(_0x162cca)||_0x162cca);return _0x162cca;},X=(_0x724f4,_0x1f9cd2)=>(_0x220a70,_0x29624d)=>_0x1f9cd2(_0x220a70,_0x29624d,_0x724f4);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x4b2219(0x3dc)]{constructor(_0x34aa55,_0x359042,_0x397c72,_0xc9c4b1){const _0x8ad548=_0x4b2219;super(),_(this,_0x8ad548(0x1b9),new d[(_0x8ad548(0x324))](u[_0x8ad548(0x367)][_0x8ad548(0x29d)])),(this['_univerInstanceService']=_0x34aa55,this[_0x8ad548(0x263)]=_0x359042,this['_collaborationController']=_0x397c72,this['_uiPartsService']=_0xc9c4b1,this[_0x8ad548(0x1c2)](),this['_initStatusListener']());}[_0x4b2219(0x215)](){const _0x2c1474=_0x4b2219;this[_0x2c1474(0x274)](this['_univerInstanceService']['focused$'][_0x2c1474(0x1ce)](d['switchMap'](()=>{const _0x11061e=_0x2c1474,_0x2b3b7d=this['_univerInstanceService'][_0x11061e(0x371)]();return _0x2b3b7d?this[_0x11061e(0x217)]['getCollabEntity$'](_0x2b3b7d[_0x11061e(0x2ea)]()):d['of'](null);}),d[_0x2c1474(0x36a)](_0x5a9af0=>_0x5a9af0?_0x5a9af0[_0x2c1474(0x36b)]:d['of'](u[_0x2c1474(0x367)]['NOT_COLLAB'])))[_0x2c1474(0x1f3)](_0x5ceaec=>{const _0x2571db=_0x2c1474;this[_0x2571db(0x1b9)][_0x2571db(0x372)](_0x5ceaec);}));}[_0x4b2219(0x1c2)](){const _0x4f23e8=_0x4b2219;this['disposeWithMe'](this[_0x4f23e8(0x259)][_0x4f23e8(0x23d)](O[_0x4f23e8(0x2fe)][_0x4f23e8(0x3b6)],()=>O[_0x4f23e8(0x2ac)](Bt({'status$':this['_status$'][_0x4f23e8(0x3da)]()}),this[_0x4f23e8(0x263)])));}},exports[_0x4b2219(0x422)]=jt([X(0x0,a['IUniverInstanceService']),X(0x1,a['Inject'](a[_0x4b2219(0x2af)])),X(0x2,a[_0x4b2219(0x21c)](u[_0x4b2219(0x2dc)])),X(0x3,O[_0x4b2219(0x261)])],exports[_0x4b2219(0x422)]);function Bt(_0x35b35e){const {status$:_0x389738}=_0x35b35e;return function(){const _0x2efc1b=_0x45c8;return P[_0x2efc1b(0x1bf)](je,{'status$':_0x389738});};}var kt=Object[_0x4b2219(0x2d2)],Ht=(_0x3d0a2d,_0x2bfc92,_0x19d2ce,_0x1c44cc)=>{const _0x5160fd=_0x4b2219;for(var _0x19149a=_0x1c44cc>0x1?void 0x0:_0x1c44cc?kt(_0x2bfc92,_0x19d2ce):_0x2bfc92,_0x168942=_0x3d0a2d[_0x5160fd(0x39f)]-0x1,_0x2167e8;_0x168942>=0x0;_0x168942--)(_0x2167e8=_0x3d0a2d[_0x168942])&&(_0x19149a=_0x2167e8(_0x19149a)||_0x19149a);return _0x19149a;},y=(_0x20e18d,_0xdf452)=>(_0x50d4d9,_0x1fd4a4)=>_0xdf452(_0x50d4d9,_0x1fd4a4,_0x20e18d);let z=class extends a[_0x4b2219(0x3dc)]{constructor(_0x1ebfc7,_0x239eff,_0x2a7ec0,_0x3e9134,_0x45f2e4,_0x526187){const _0x3d5c65=_0x4b2219;super(),this[_0x3d5c65(0x2b2)]=_0x1ebfc7,this['_localCacheService']=_0x239eff,this['_collaborationUIEventService']=_0x2a7ec0,this[_0x3d5c65(0x42c)]=_0x3e9134,this[_0x3d5c65(0x35c)]=_0x45f2e4,this[_0x3d5c65(0x26b)]=_0x526187,this[_0x3d5c65(0x2c5)](),this[_0x3d5c65(0x2e0)]();}[_0x4b2219(0x2c5)](){this['disposeWithMe'](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x19829b=_0x45c8;if(this[_0x19829b(0x276)][_0x19829b(0x352)][_0x19829b(0x2c2)])return this[_0x19829b(0x26b)]['t'](_0x19829b(0x42f));}));}['_initEvent'](){const _0x3d3db0=_0x4b2219;this[_0x3d3db0(0x274)](this[_0x3d3db0(0x426)][_0x3d3db0(0x327)]['subscribe'](_0x47d7f9=>{const _0x2e7b19=_0x3d3db0;_0x47d7f9['id']===u[_0x2e7b19(0x26f)][_0x2e7b19(0x3d3)]&&this['_messageService']['show']({'type':T['MessageType']['Warning'],'content':this[_0x2e7b19(0x26b)]['t'](_0x2e7b19(0x378))}),_0x47d7f9['id']===u[_0x2e7b19(0x26f)]['CLOSE_ROOM']&&this[_0x2e7b19(0x42c)]['show']({'type':T[_0x2e7b19(0x1d5)][_0x2e7b19(0x225)],'content':this[_0x2e7b19(0x26b)]['t'](_0x2e7b19(0x41f))}),_0x47d7f9['id']===u['CollaborationUIEventId'][_0x2e7b19(0x403)]&&this[_0x2e7b19(0x35c)][_0x2e7b19(0x267)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x2e7b19(0x26b)]['t'](_0x2e7b19(0x232)),'type':_0x2e7b19(0x41d),'duration':0x0}),_0x47d7f9['id']===u[_0x2e7b19(0x26f)][_0x2e7b19(0x3bc)]&&this['_messageService']['show']({'type':T[_0x2e7b19(0x1d5)][_0x2e7b19(0x434)],'content':this[_0x2e7b19(0x26b)]['t'](_0x2e7b19(0x41f))+'('+_0x47d7f9[_0x2e7b19(0x323)]+')'}),_0x47d7f9['id']===u['CollaborationUIEventId'][_0x2e7b19(0x428)]&&this[_0x2e7b19(0x42c)][_0x2e7b19(0x267)]({'type':T[_0x2e7b19(0x1d5)]['Warning'],'content':this['_localeService']['t'](_0x47d7f9[_0x2e7b19(0x323)]||'')}),_0x47d7f9['id']===u[_0x2e7b19(0x26f)]['SOCKET_FAILED_RETRY']&&this[_0x2e7b19(0x42c)][_0x2e7b19(0x267)]({'type':T[_0x2e7b19(0x1d5)][_0x2e7b19(0x225)],'content':this['_localeService']['t']('session.will-retry')}),_0x47d7f9['id']===u['CollaborationUIEventId'][_0x2e7b19(0x420)]&&this['_messageService'][_0x2e7b19(0x267)]({'type':T['MessageType'][_0x2e7b19(0x434)],'content':this[_0x2e7b19(0x26b)]['t'](_0x2e7b19(0x34f))}),_0x47d7f9['id']===u[_0x2e7b19(0x26f)][_0x2e7b19(0x202)]&&this['_messageService'][_0x2e7b19(0x267)]({'type':T['MessageType']['Error'],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};z=Ht([y(0x0,O[_0x4b2219(0x311)]),y(0x1,u[_0x4b2219(0x413)]),y(0x2,a[_0x4b2219(0x21c)](u[_0x4b2219(0x3ae)])),y(0x3,O['IMessageService']),y(0x4,O[_0x4b2219(0x3ed)]),y(0x5,a[_0x4b2219(0x21c)](a[_0x4b2219(0x2a8)]))],z);const Ft='collaboration-client-ui.config',Ne={},Ee=a['createIdentifier'](_0x4b2219(0x305));var Wt=Object['getOwnPropertyDescriptor'],Yt=(_0x318884,_0x152e4b,_0x42be7a,_0x29b960)=>{const _0x1147cc=_0x4b2219;for(var _0x4139ea=_0x29b960>0x1?void 0x0:_0x29b960?Wt(_0x152e4b,_0x42be7a):_0x152e4b,_0x320c8d=_0x318884[_0x1147cc(0x39f)]-0x1,_0x57bab9;_0x320c8d>=0x0;_0x320c8d--)(_0x57bab9=_0x318884[_0x320c8d])&&(_0x4139ea=_0x57bab9(_0x4139ea)||_0x4139ea);return _0x4139ea;},F=(_0x17a8d5,_0x28e637)=>(_0x8cef44,_0x4c2a8c)=>_0x28e637(_0x8cef44,_0x4c2a8c,_0x17a8d5);exports[_0x4b2219(0x24f)]=class extends a['RxDisposable']{constructor(_0x5ebd05,_0xad5d45,_0x2719e2,_0x3ba3a8,_0x56af36){const _0xa30550=_0x4b2219;super(),this[_0xa30550(0x402)]=_0x5ebd05,this[_0xa30550(0x3f9)]=_0xad5d45,this[_0xa30550(0x216)]=_0x2719e2,this[_0xa30550(0x1bb)]=_0x3ba3a8,_0x56af36?_0x56af36==null||_0x56af36['whenReady']()[_0xa30550(0x1df)](()=>this['_init']()):(this[_0xa30550(0x3f9)]['debug'](_0xa30550(0x325),_0xa30550(0x425)),this[_0xa30550(0x333)]());}async[_0x4b2219(0x333)](){const _0x203e50=_0x4b2219,_0x1094f2=this[_0x203e50(0x402)]['getParam'](_0x203e50(0x1af)),_0x13d127=this[_0x203e50(0x402)][_0x203e50(0x354)](_0x203e50(0x1f8)),_0x170446=this[_0x203e50(0x402)][_0x203e50(0x354)](_0x203e50(0x1dc));if(!_0x1094f2||!_0x13d127){this[_0x203e50(0x3f9)][_0x203e50(0x2a1)](_0x203e50(0x325),_0x203e50(0x3e8));return;}const _0x19fda6=await this[_0x203e50(0x1bb)]['loadUnit'](_0x1094f2,Number(_0x13d127),_0x170446);_0x19fda6&&_0x19fda6 instanceof a[_0x203e50(0x36c)]&&this[_0x203e50(0x2b4)](_0x19fda6);}async[_0x4b2219(0x2b4)](_0x3e28b6){const _0x1e914b=_0x4b2219;await this[_0x1e914b(0x3ac)](_0x3e28b6),_0x3e28b6['activeSheet$'][_0x1e914b(0x1ce)](d[_0x1e914b(0x20c)](this[_0x1e914b(0x3f6)]))[_0x1e914b(0x1f3)](_0x2d7b7a=>{const _0x3a0b6e=_0x1e914b;_0x2d7b7a&&this[_0x3a0b6e(0x1b3)](_0x2d7b7a);}),this['_urlService'][_0x1e914b(0x39c)][_0x1e914b(0x1ce)](d[_0x1e914b(0x20c)](this['dispose$']))[_0x1e914b(0x1f3)](()=>this[_0x1e914b(0x3ac)](_0x3e28b6));}[_0x4b2219(0x1b3)](_0x94b6a9,_0x21d7b0=!0x1){const _0x2385c2=_0x4b2219,_0x33ecd1=this[_0x2385c2(0x402)][_0x2385c2(0x354)]('subunit');_0x94b6a9[_0x2385c2(0x384)]()!==_0x33ecd1&&this['_urlService'][_0x2385c2(0x385)](_0x2385c2(0x1dc),_0x94b6a9[_0x2385c2(0x384)](),_0x21d7b0);}async[_0x4b2219(0x3ac)](_0xee336d){const _0x5cc3c1=_0x4b2219;var _0x2c70a3;const _0x4355bc=this['_urlService'][_0x5cc3c1(0x354)](_0x5cc3c1(0x1dc));if(!_0x4355bc||!_0xee336d[_0x5cc3c1(0x253)](_0x4355bc)){const _0x577492=_0xee336d[_0x5cc3c1(0x2dd)]()[0x0],_0x3ea04d=_0xee336d[_0x5cc3c1(0x253)](_0x577492);if(!_0x3ea04d)return;this[_0x5cc3c1(0x1b3)](_0x3ea04d,!0x0),await this[_0x5cc3c1(0x216)][_0x5cc3c1(0x379)](g[_0x5cc3c1(0x3d0)]['id'],{'unitId':_0xee336d[_0x5cc3c1(0x2ea)](),'subUnitId':_0x577492});return;}((_0x2c70a3=_0xee336d[_0x5cc3c1(0x2b0)]())==null?void 0x0:_0x2c70a3['getSheetId']())!==_0x4355bc&&await this['_commandService']['executeCommand'](g[_0x5cc3c1(0x3d0)]['id'],{'unitId':_0xee336d[_0x5cc3c1(0x2ea)](),'subUnitId':_0x4355bc});}},exports[_0x4b2219(0x24f)]=Yt([F(0x0,Ee),F(0x1,a[_0x4b2219(0x20e)]),F(0x2,a[_0x4b2219(0x21e)]),F(0x3,a[_0x4b2219(0x21c)](u['DataLoaderService'])),F(0x4,a[_0x4b2219(0x280)](Ke[_0x4b2219(0x1c3)]))],exports[_0x4b2219(0x24f)]);var Vt=Object[_0x4b2219(0x2d2)],Xt=(_0x59609c,_0x45c6ef,_0xeeac86,_0x463bf4)=>{const _0x25653d=_0x4b2219;for(var _0x3dd3bc=_0x463bf4>0x1?void 0x0:_0x463bf4?Vt(_0x45c6ef,_0xeeac86):_0x45c6ef,_0xa73aa2=_0x59609c[_0x25653d(0x39f)]-0x1,_0x9a484d;_0xa73aa2>=0x0;_0xa73aa2--)(_0x9a484d=_0x59609c[_0xa73aa2])&&(_0x3dd3bc=_0x9a484d(_0x3dd3bc)||_0x3dd3bc);return _0x3dd3bc;},le=(_0x5b6bd3,_0x35aa79)=>(_0x537bb1,_0x30013e)=>_0x35aa79(_0x537bb1,_0x30013e,_0x5b6bd3);let J=class{constructor(_0x2f8790,_0xb56aa5,_0x30faef){const _0x72bfd2=_0x4b2219;this[_0x72bfd2(0x263)]=_0x2f8790,this[_0x72bfd2(0x309)]=_0xb56aa5,this[_0x72bfd2(0x2a2)]=_0x30faef;}[_0x4b2219(0x3e3)](_0x17493){const _0x1ec7c9=_0x4b2219;this[_0x1ec7c9(0x3a5)](_0x17493),this[_0x1ec7c9(0x320)](_0x17493);}['transformRemoteChangeset'](_0x273f9e){const _0x58f8c4=_0x4b2219,{unitID:_0x4e115f}=_0x273f9e,_0x51dec7=this['_renderManagerService']['getRenderById'](_0x4e115f)[_0x58f8c4(0x3f1)](b[_0x58f8c4(0x22e)]),{redoCache:_0x3a158a}=_0x51dec7['getUndoRedoMutationParamsCache']();if(_0x3a158a[_0x58f8c4(0x39f)]===0x0)return _0x273f9e;let _0x18171f=a[_0x58f8c4(0x24b)][_0x58f8c4(0x338)](_0x273f9e[_0x58f8c4(0x21f)][0x0]);for(let _0x37ea07=0x0;_0x37ea07<_0x3a158a[_0x58f8c4(0x39f)];_0x37ea07++){const _0x13bffc={'id':_0x58f8c4(0x2be),'params':{..._0x3a158a[_0x37ea07]}},_0x290066=this['_transformService'][_0x58f8c4(0x383)](_0x18171f,_0x13bffc,!0x1);if(m[_0x58f8c4(0x36d)](_0x290066))throw _0x290066[_0x58f8c4(0x41d)];_0x18171f=_0x290066[_0x58f8c4(0x2cf)];}return{...a[_0x58f8c4(0x24b)][_0x58f8c4(0x338)](_0x273f9e),'mutations':[_0x18171f]};}[_0x4b2219(0x3a5)](_0x5098c5){const _0x5be687=_0x4b2219,{unitID:_0x4e0a33}=_0x5098c5,_0x4d9b4f=this['_renderManagerService'][_0x5be687(0x271)](_0x4e0a33)[_0x5be687(0x3f1)](b[_0x5be687(0x22e)]),{undoCache:_0x218bb3,redoCache:_0x36c3c9}=_0x4d9b4f[_0x5be687(0x23e)]();if(_0x218bb3[_0x5be687(0x39f)]===0x0||_0x36c3c9[_0x5be687(0x39f)]===0x0)return;const _0x56d48f=[],_0x4c3928=[];let _0x2d0df6=a['Tools'][_0x5be687(0x338)](_0x5098c5['mutations'][0x0]),_0x2d5478=a[_0x5be687(0x24b)]['deepClone'](_0x5098c5[_0x5be687(0x21f)][0x0]);for(let _0x211415=_0x218bb3[_0x5be687(0x39f)]-0x1;_0x211415>=0x0;_0x211415--){const _0x295739={'id':'doc.mutation.rich-text-editing','params':{..._0x218bb3[_0x211415]}},_0xaf9394={'id':_0x5be687(0x2be),'params':{..._0x36c3c9[_0x211415]}},_0x14c397=this[_0x5be687(0x309)][_0x5be687(0x383)](_0x2d0df6,_0x295739,!0x1),_0x30d965=this[_0x5be687(0x309)][_0x5be687(0x383)](_0x2d5478,_0xaf9394,!0x1);if(m[_0x5be687(0x36d)](_0x14c397))throw _0x14c397[_0x5be687(0x41d)];if(m[_0x5be687(0x36d)](_0x30d965))throw _0x30d965[_0x5be687(0x41d)];_0x56d48f[_0x5be687(0x206)](_0x14c397[_0x5be687(0x353)][_0x5be687(0x218)]),_0x4c3928[_0x5be687(0x206)](_0x30d965[_0x5be687(0x353)]['params']),_0x2d0df6=_0x14c397[_0x5be687(0x2cf)],_0x2d5478=_0x30d965['m1Prime'];}_0x4d9b4f[_0x5be687(0x304)]({'undoCache':_0x56d48f,'redoCache':_0x4c3928});}[_0x4b2219(0x320)](_0x323933){const _0x32947b=_0x4b2219,{unitID:_0xa8a98b}=_0x323933,_0x2dacc6=this[_0x32947b(0x2a2)]['getRenderById'](_0xa8a98b)['with'](b['DocIMEInputManagerService']),_0x3ddd8e=_0x2dacc6['getActiveRange']();if(_0x3ddd8e==null)return;const _0x26369f=[{'id':_0x32947b(0x2be),'params':{'unitId':_0x323933[_0x32947b(0x29b)],'actions':null,'textRanges':[_0x3ddd8e]}}],_0x4926f2=this[_0x32947b(0x309)][_0x32947b(0x3bf)](_0x323933,_0x26369f);if(!m['isTransformMutationsWithChangesetSuccess'](_0x4926f2))throw _0x4926f2[_0x32947b(0x41d)];const _0x627fd6=_0x4926f2['m2Prime'][0x0][_0x32947b(0x218)][_0x32947b(0x223)];Array[_0x32947b(0x392)](_0x627fd6)&&_0x627fd6[_0x32947b(0x39f)]&&_0x2dacc6['setActiveRange'](_0x627fd6[0x0]);}};J=Xt([le(0x0,a[_0x4b2219(0x21c)](a['Injector'])),le(0x1,m[_0x4b2219(0x205)]),le(0x2,p[_0x4b2219(0x27e)])],J);var Gt=Object['getOwnPropertyDescriptor'],qt=(_0x597339,_0xdbe4d1,_0x267b4f,_0x4c0177)=>{const _0x2e143f=_0x4b2219;for(var _0x2f9b3b=_0x4c0177>0x1?void 0x0:_0x4c0177?Gt(_0xdbe4d1,_0x267b4f):_0xdbe4d1,_0x248614=_0x597339[_0x2e143f(0x39f)]-0x1,_0xc7d7a7;_0x248614>=0x0;_0x248614--)(_0xc7d7a7=_0x597339[_0x248614])&&(_0x2f9b3b=_0xc7d7a7(_0x2f9b3b)||_0x2f9b3b);return _0x2f9b3b;},_e=(_0x193021,_0x4c97ad)=>(_0x1f2c72,_0x3995b9)=>_0x4c97ad(_0x1f2c72,_0x3995b9,_0x193021);let Z=class{constructor(_0x5b74de,_0x256a3c,_0x133294){const _0x475789=_0x4b2219;this[_0x475789(0x263)]=_0x5b74de,this['_transformService']=_0x256a3c,this['_docStateChangeManagerService']=_0x133294;}['transformStateCache'](_0x3a8b95){this['_transformHistoryAndStateStack'](_0x3a8b95);}[_0x4b2219(0x207)](_0x1a5e39){const _0x2430b7=_0x4b2219,{unitID:_0x5907af}=_0x1a5e39,{collaboration:_0x3c7eba}=this[_0x2430b7(0x1e0)][_0x2430b7(0x375)](_0x5907af);if(_0x3c7eba[_0x2430b7(0x39f)]===0x0)return _0x1a5e39;let _0x49fc6b=a[_0x2430b7(0x24b)][_0x2430b7(0x338)](_0x1a5e39[_0x2430b7(0x21f)][0x0]);for(let _0x5c5ca4=0x0;_0x5c5ca4<_0x3c7eba[_0x2430b7(0x39f)];_0x5c5ca4++){const _0x23ae8f={'id':_0x2430b7(0x2be),'params':{'unitId':_0x3c7eba[_0x5c5ca4]['unitId'],..._0x3c7eba[_0x5c5ca4][_0x2430b7(0x268)]}},_0x13b611=this[_0x2430b7(0x309)][_0x2430b7(0x383)](_0x49fc6b,_0x23ae8f,!0x1);if(m['isTransformMutationFailure'](_0x13b611))throw _0x13b611[_0x2430b7(0x41d)];_0x49fc6b=_0x13b611[_0x2430b7(0x2cf)];}return{...a[_0x2430b7(0x24b)]['deepClone'](_0x1a5e39),'mutations':[_0x49fc6b]};}['_transformHistoryAndStateStack'](_0x1042ff){const _0x19e690=_0x4b2219,{unitID:_0x5f0383}=_0x1042ff,{history:_0x5b43e1,collaboration:_0x76ec86}=this[_0x19e690(0x1e0)][_0x19e690(0x375)](_0x5f0383);if(_0x5b43e1['length']===0x0&&_0x76ec86[_0x19e690(0x39f)]===0x0)return;const _0x2344d1=[],_0x4327a6=[];let _0x15cd8b=a[_0x19e690(0x24b)]['deepClone'](_0x1042ff[_0x19e690(0x21f)][0x0]),_0x38a6fb=a[_0x19e690(0x24b)]['deepClone'](_0x1042ff[_0x19e690(0x21f)][0x0]);for(let _0x5a6135=_0x5b43e1[_0x19e690(0x39f)]-0x1;_0x5a6135>=0x0;_0x5a6135--){const _0x2dba41={'id':_0x19e690(0x2be),'params':{'unitId':_0x5b43e1[_0x5a6135][_0x19e690(0x1da)],..._0x5b43e1[_0x5a6135][_0x19e690(0x1c6)]}},_0x6ccac0={'id':_0x19e690(0x2be),'params':{'unitId':_0x5b43e1[_0x5a6135][_0x19e690(0x1da)],..._0x5b43e1[_0x5a6135]['redoState']}},_0x2fac94=this[_0x19e690(0x309)][_0x19e690(0x383)](_0x15cd8b,_0x2dba41,!0x1),_0x176f63=this['_transformService'][_0x19e690(0x383)](_0x38a6fb,_0x6ccac0,!0x1);if(m[_0x19e690(0x36d)](_0x2fac94))throw _0x2fac94[_0x19e690(0x41d)];if(m[_0x19e690(0x36d)](_0x176f63))throw _0x176f63[_0x19e690(0x41d)];_0x2344d1['unshift']({..._0x5b43e1[_0x5a6135],'undoState':_0x2fac94[_0x19e690(0x353)]['params'],'redoState':_0x176f63[_0x19e690(0x353)][_0x19e690(0x218)]}),_0x15cd8b=_0x2fac94[_0x19e690(0x2cf)],_0x38a6fb=_0x176f63[_0x19e690(0x2cf)];}_0x15cd8b=a[_0x19e690(0x24b)][_0x19e690(0x338)](_0x1042ff[_0x19e690(0x21f)][0x0]),_0x38a6fb=a[_0x19e690(0x24b)][_0x19e690(0x338)](_0x1042ff[_0x19e690(0x21f)][0x0]);for(let _0x40a782=_0x76ec86[_0x19e690(0x39f)]-0x1;_0x40a782>=0x0;_0x40a782--){const _0x3b770c={'id':_0x19e690(0x2be),'params':{'unitId':_0x76ec86[_0x40a782][_0x19e690(0x1da)],..._0x76ec86[_0x40a782][_0x19e690(0x1c6)]}},_0x2d513e={'id':_0x19e690(0x2be),'params':{'unitId':_0x76ec86[_0x40a782][_0x19e690(0x1da)],..._0x76ec86[_0x40a782][_0x19e690(0x268)]}},_0x56bd4a=this[_0x19e690(0x309)][_0x19e690(0x383)](_0x15cd8b,_0x3b770c,!0x1),_0xb5c697=this['_transformService'][_0x19e690(0x383)](_0x38a6fb,_0x2d513e,!0x1);if(m['isTransformMutationFailure'](_0x56bd4a))throw _0x56bd4a[_0x19e690(0x41d)];if(m[_0x19e690(0x36d)](_0xb5c697))throw _0xb5c697[_0x19e690(0x41d)];_0x4327a6[_0x19e690(0x206)]({..._0x76ec86[_0x40a782],'undoState':_0x56bd4a[_0x19e690(0x353)][_0x19e690(0x218)],'redoState':_0xb5c697['m2Prime']['params']}),_0x15cd8b=_0x56bd4a[_0x19e690(0x2cf)],_0x38a6fb=_0xb5c697[_0x19e690(0x2cf)];}this[_0x19e690(0x1e0)]['setStateCache'](_0x5f0383,{'history':_0x2344d1,'collaboration':_0x4327a6});}};Z=qt([_e(0x0,a[_0x4b2219(0x21c)](a[_0x4b2219(0x2af)])),_e(0x1,m[_0x4b2219(0x205)]),_e(0x2,a[_0x4b2219(0x21c)](b['DocStateChangeManagerService']))],Z);var Kt=Object[_0x4b2219(0x2d2)],zt=(_0x401cf1,_0x45116b,_0x563e54,_0x4c55b1)=>{const _0xc9db0b=_0x4b2219;for(var _0xeeedae=_0x4c55b1>0x1?void 0x0:_0x4c55b1?Kt(_0x45116b,_0x563e54):_0x45116b,_0x55805a=_0x401cf1[_0xc9db0b(0x39f)]-0x1,_0x2f1ba4;_0x55805a>=0x0;_0x55805a--)(_0x2f1ba4=_0x401cf1[_0x55805a])&&(_0xeeedae=_0x2f1ba4(_0xeeedae)||_0xeeedae);return _0xeeedae;},Me=(_0xd00e31,_0x5da11b)=>(_0x30c762,_0x21cc45)=>_0x5da11b(_0x30c762,_0x21cc45,_0xd00e31);let Q=class{constructor(_0x188eed,_0x1c6f07){const _0x41aec9=_0x4b2219;this['_injector']=_0x188eed,this[_0x41aec9(0x309)]=_0x1c6f07;}['transformSelections'](_0x50f1b4){const _0x166644=_0x4b2219;var _0x3f9983;const _0x3005c4=this[_0x166644(0x263)]['get'](Y[_0x166644(0x1d4)]),_0x42b408=(_0x3f9983=_0x3005c4[_0x166644(0x30a)]())!=null?_0x3f9983:[];if(_0x42b408['length']===0x0)return;const _0x333158=_0x50f1b4['unitID'],_0x5214da=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x333158,'actions':null,'textRanges':_0x42b408}}],_0x4bdb55=this[_0x166644(0x309)][_0x166644(0x3bf)](_0x50f1b4,_0x5214da);if(!m[_0x166644(0x36e)](_0x4bdb55))throw _0x4bdb55[_0x166644(0x41d)];const _0x130ff5=_0x4bdb55[_0x166644(0x353)][0x0][_0x166644(0x218)][_0x166644(0x223)];Array[_0x166644(0x392)](_0x130ff5)&&_0x130ff5['length']&&_0x3005c4[_0x166644(0x26a)](_0x130ff5,{'unitId':_0x333158,'subUnitId':_0x333158},!0x1);}};Q=zt([Me(0x0,a[_0x4b2219(0x21c)](a[_0x4b2219(0x2af)])),Me(0x1,m[_0x4b2219(0x205)])],Q);var Jt=Object[_0x4b2219(0x2d2)],Zt=(_0x463646,_0x4a49f7,_0x287bd9,_0x17c32b)=>{for(var _0x4d774e=_0x17c32b>0x1?void 0x0:_0x17c32b?Jt(_0x4a49f7,_0x287bd9):_0x4a49f7,_0x6bf878=_0x463646['length']-0x1,_0x12dd69;_0x6bf878>=0x0;_0x6bf878--)(_0x12dd69=_0x463646[_0x6bf878])&&(_0x4d774e=_0x12dd69(_0x4d774e)||_0x4d774e);return _0x4d774e;},N=(_0xf096aa,_0x1dae7c)=>(_0x35bed9,_0x1ff3f8)=>_0x1dae7c(_0x35bed9,_0x1ff3f8,_0xf096aa);let ee=class extends a['Disposable']{constructor(_0x4dfdc7,_0x28cdce,_0x476b11,_0x33184d,_0x115be1,_0x1dd6d9,_0x5ecd17,_0x4af089){const _0x558750=_0x4b2219;super(),_(this,_0x558750(0x1b9),new d[(_0x558750(0x324))](u[_0x558750(0x367)][_0x558750(0x29d)])),(this[_0x558750(0x1e0)]=_0x4dfdc7,this[_0x558750(0x217)]=_0x28cdce,this[_0x558750(0x387)]=_0x476b11,this[_0x558750(0x3b0)]=_0x33184d,this[_0x558750(0x331)]=_0x115be1,this[_0x558750(0x1ee)]=_0x1dd6d9,this[_0x558750(0x42c)]=_0x5ecd17,this[_0x558750(0x26b)]=_0x4af089,this[_0x558750(0x1e4)]());}[_0x4b2219(0x1e4)](){const _0x16d81d=_0x4b2219;this[_0x16d81d(0x274)](this['_collaborationController'][_0x16d81d(0x1fa)][_0x16d81d(0x1f3)](_0x1d13ee=>{const _0x13b46d=_0x16d81d,_0x4d0b2e=this[_0x13b46d(0x1e0)][_0x13b46d(0x2bd)][_0x13b46d(0x1f3)](_0x57884a=>{const _0x8c4eb3=_0x13b46d;if(_0x57884a==null)return;const {unitId:_0x5d89f3,redoState:_0xecc39f,commandId:_0x5147c0}=_0x57884a;if(_0x5d89f3!==_0x1d13ee[_0x8c4eb3(0x29b)])return;const _0x763184={'id':_0x5147c0,'type':a[_0x8c4eb3(0x2f8)][_0x8c4eb3(0x287)],'params':{'unitId':_0x5d89f3,'actions':_0xecc39f['actions'],'textRanges':null}};_0x1d13ee[_0x8c4eb3(0x1fd)](_0x763184);});if(_0x1d13ee['disposeWithMe'](_0x4d0b2e),_0x1d13ee instanceof u[_0x13b46d(0x2bf)]){const _0x2681f4={'onTransformIME':_0x5dc855=>this[_0x13b46d(0x387)][_0x13b46d(0x3e3)](_0x5dc855),'onTransformState':_0x31b5e8=>this[_0x13b46d(0x3b0)][_0x13b46d(0x431)](_0x31b5e8),'onTransformSelections':_0x3d4e18=>this[_0x13b46d(0x331)][_0x13b46d(0x27f)](_0x3d4e18),'onSyncEditingCollabCursor':_0x4ec1b8=>this[_0x13b46d(0x1ee)][_0x13b46d(0x2d4)](_0x4ec1b8),'onTransformRemoteChangesetByIMECache':_0x1b13e6=>this['_docTransformIMECacheService'][_0x13b46d(0x207)](_0x1b13e6),'onTransformRemoteChangesetByStateCache':_0x40f02b=>this['_docTransformStateCacheService'][_0x13b46d(0x207)](_0x40f02b)};_0x1d13ee[_0x13b46d(0x3ef)](_0x2681f4);}}));}};ee=Zt([N(0x0,a[_0x4b2219(0x21c)](b['DocStateChangeManagerService'])),N(0x1,a['Inject'](u[_0x4b2219(0x2dc)])),N(0x2,a['Inject'](J)),N(0x3,a['Inject'](Z)),N(0x4,a[_0x4b2219(0x21c)](Q)),N(0x5,a[_0x4b2219(0x21c)](pe)),N(0x6,O['IMessageService']),N(0x7,a['Inject'](a[_0x4b2219(0x2a8)]))],ee);var Qt=Object['getOwnPropertyDescriptor'],es=(_0x307e11,_0x154c0e,_0x4530b7,_0x34aa9a)=>{const _0x960918=_0x4b2219;for(var _0x36eb7a=_0x34aa9a>0x1?void 0x0:_0x34aa9a?Qt(_0x154c0e,_0x4530b7):_0x154c0e,_0x1e9703=_0x307e11[_0x960918(0x39f)]-0x1,_0x5de81c;_0x1e9703>=0x0;_0x1e9703--)(_0x5de81c=_0x307e11[_0x1e9703])&&(_0x36eb7a=_0x5de81c(_0x36eb7a)||_0x36eb7a);return _0x36eb7a;},he=(_0x35c2f1,_0x203613)=>(_0x3ff816,_0x5f48e2)=>_0x203613(_0x3ff816,_0x5f48e2,_0x35c2f1);let me=class extends a[_0x4b2219(0x3dc)]{constructor(_0x1bbbb3,_0x2c2a05,_0x4f9354){const _0x1ceb31=_0x4b2219;super(),_(this,_0x1ceb31(0x357),new Map()),_(this,_0x1ceb31(0x3a6),new Map()),_(this,_0x1ceb31(0x2ce),!0x1),(this[_0x1ceb31(0x3e1)]=_0x1bbbb3,this[_0x1ceb31(0x39b)]=_0x2c2a05,this[_0x1ceb31(0x3a2)]=_0x4f9354);}[_0x4b2219(0x30e)](){const _0x448aac=_0x4b2219;this[_0x448aac(0x2ce)]=!0x0;}[_0x4b2219(0x2e6)](){const _0x16c3fa=_0x4b2219;this[_0x16c3fa(0x2ce)]=!0x1;}get['saveTaskMap'](){const _0x1efb65=_0x4b2219;return this[_0x1efb65(0x3a6)];}[_0x4b2219(0x3d9)](){const _0x1115a9=_0x4b2219;this[_0x1115a9(0x1cf)]()[_0x1115a9(0x1df)](()=>super[_0x1115a9(0x3d9)]());}async['loadOfflineData'](_0x2834c3){const _0x5778a5=_0x4b2219;return this[_0x5778a5(0x2ce)]?null:this[_0x5778a5(0x39b)][_0x5778a5(0x29c)](u['getLocalCacheKey'](_0x2834c3));}async[_0x4b2219(0x410)](_0x339a99,_0x445c22){const _0x1f5948=_0x4b2219;return!!this[_0x1f5948(0x39b)]['setItem'](_0x339a99,_0x445c22);}[_0x4b2219(0x1f9)](_0x4737d8,_0x1ffad2,_0x11c802,_0x3cbad4){const _0x38c146=_0x4b2219,_0x4d1708=this[_0x38c146(0x3a2)]['getCurrentRevOfUnit'](_0x4737d8);this[_0x38c146(0x357)][_0x38c146(0x1f6)](_0x4737d8,{'unitID':_0x4737d8,'type':_0x1ffad2,'awaitingChangeset':_0x11c802,'mutations':_0x3cbad4,'rev':_0x4d1708}),this[_0x38c146(0x3a6)][_0x38c146(0x2b9)](_0x4737d8)||this[_0x38c146(0x25a)](_0x4737d8);}[_0x4b2219(0x25a)](_0x3d8331){const _0x5a1275=_0x4b2219,_0x3bec6c=this[_0x5a1275(0x358)]();_0x3bec6c===0x0?this[_0x5a1275(0x300)](_0x3d8331):this['_saveTaskMap'][_0x5a1275(0x1f6)](_0x3d8331,setTimeout(()=>this[_0x5a1275(0x300)](_0x3d8331),_0x3bec6c));}[_0x4b2219(0x358)](){const _0x1d96de=_0x4b2219;var _0x13b9d6;return(_0x13b9d6=this[_0x1d96de(0x3e1)][_0x1d96de(0x1e9)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x13b9d6:u['LOCAL_CACHE_INTERVAL'];}[_0x4b2219(0x300)](_0x580698){const _0x28414e=_0x4b2219,_0x373902=this[_0x28414e(0x3a6)][_0x28414e(0x1d6)](_0x580698);return _0x373902!==void 0x0&&window[_0x28414e(0x272)](_0x373902),this['_localStorageService'][_0x28414e(0x32a)](u['getLocalCacheKey'](_0x580698),this['_cachedData'][_0x28414e(0x1d6)](_0x580698))[_0x28414e(0x1df)](()=>this[_0x28414e(0x3a6)][_0x28414e(0x28e)](_0x580698));}async[_0x4b2219(0x1cf)](){const _0x51df89=[];this['_saveTaskMap']['forEach']((_0x1ce422,_0x4f9b7e)=>{const _0x3323ea=_0x45c8;window[_0x3323ea(0x272)](_0x1ce422),_0x51df89['push'](this['_saveCache'](_0x4f9b7e)[_0x3323ea(0x1df)](()=>{this['_saveTaskMap']['delete'](_0x4f9b7e);}));}),await Promise['all'](_0x51df89);}};me=es([he(0x0,a['IConfigService']),he(0x1,a['ILocalStorageService']),he(0x2,a[_0x4b2219(0x21c)](m[_0x4b2219(0x1b0)]))],me);class Be extends a['RxDisposable']{constructor(){const _0x2afa36=_0x4b2219;super(),_(this,'urlChange$'),this[_0x2afa36(0x39c)]=d[_0x2afa36(0x2d0)](window,'popstate')['pipe'](d[_0x2afa36(0x20c)](this[_0x2afa36(0x3f6)]),d[_0x2afa36(0x1b6)](0x1),d[_0x2afa36(0x31f)](void 0x0));}[_0x4b2219(0x385)](_0x571fbe,_0x5c88bb,_0x559baf=!0x1){const _0x25dfe4=_0x4b2219,_0x410927=new URL(window[_0x25dfe4(0x419)]['href']);_0x410927[_0x25dfe4(0x344)][_0x25dfe4(0x1f6)](_0x571fbe,_0x5c88bb),_0x559baf?window[_0x25dfe4(0x2fa)][_0x25dfe4(0x321)]('','',_0x410927[_0x25dfe4(0x2e3)]()):window[_0x25dfe4(0x2fa)][_0x25dfe4(0x365)]('','',_0x410927[_0x25dfe4(0x2e3)]());}[_0x4b2219(0x1b8)](_0x47bbcf,_0x401f71=!0x1){const _0x42e001=_0x4b2219,_0x2a2196=new URL(window['location']['href']);_0x2a2196[_0x42e001(0x344)][_0x42e001(0x28e)](_0x47bbcf),_0x401f71?window[_0x42e001(0x2fa)][_0x42e001(0x321)]('','',_0x2a2196[_0x42e001(0x2e3)]()):window[_0x42e001(0x2fa)][_0x42e001(0x365)]('','',_0x2a2196[_0x42e001(0x2e3)]());}[_0x4b2219(0x354)](_0xbad0a5){const _0x4481bf=_0x4b2219;var _0x3476b7;return(_0x3476b7=new URL(window[_0x4481bf(0x419)]['href'])[_0x4481bf(0x344)][_0x4481bf(0x1d6)](_0xbad0a5))!=null?_0x3476b7:void 0x0;}}var ts=Object[_0x4b2219(0x405)],ss=Object[_0x4b2219(0x2d2)],ns=(_0x27ff9f,_0x34c748,_0x548103)=>_0x34c748 in _0x27ff9f?ts(_0x27ff9f,_0x34c748,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x548103}):_0x27ff9f[_0x34c748]=_0x548103,is=(_0x20e209,_0x1dd8be,_0x4e3bee,_0x2d170d)=>{const _0x323571=_0x4b2219;for(var _0x8cbbec=_0x2d170d>0x1?void 0x0:_0x2d170d?ss(_0x1dd8be,_0x4e3bee):_0x1dd8be,_0x42fdbf=_0x20e209[_0x323571(0x39f)]-0x1,_0x4a8b58;_0x42fdbf>=0x0;_0x42fdbf--)(_0x4a8b58=_0x20e209[_0x42fdbf])&&(_0x8cbbec=_0x4a8b58(_0x8cbbec)||_0x8cbbec);return _0x8cbbec;},ue=(_0x53a0d4,_0xa99969)=>(_0x416cc2,_0xf7d67b)=>_0xa99969(_0x416cc2,_0xf7d67b,_0x53a0d4),rs=(_0xba23e7,_0x32ade0,_0x62fa47)=>ns(_0xba23e7,_0x32ade0+'',_0x62fa47);const os=_0x4b2219(0x3fc);exports[_0x4b2219(0x1f2)]=class extends a['Plugin']{constructor(_0x14bb83=Ne,_0x3dbafd,_0x31cbc2,_0x26b83d){const _0x93f431=_0x4b2219;super(),this[_0x93f431(0x314)]=_0x14bb83,this[_0x93f431(0x2a2)]=_0x3dbafd,this[_0x93f431(0x263)]=_0x31cbc2,this['_configService']=_0x26b83d;const {..._0x1e9014}=a['merge']({},Ne,this[_0x93f431(0x314)]);this[_0x93f431(0x3e1)]['setConfig'](Ft,_0x1e9014);}[_0x4b2219(0x3d2)](){const _0x4e1b34=_0x4b2219;this[_0x4e1b34(0x1fe)](),this['_initDependencies']();}[_0x4b2219(0x22f)](){const _0x2d3c30=_0x4b2219;this[_0x2d3c30(0x411)]();}['_registerDependencies'](){const _0x97aed1=_0x4b2219;var _0xf7ccf8;const _0x54dcaa=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q['ISocketService'],{'useClass':q[_0x97aed1(0x2fd)]}],[u[_0x97aed1(0x413)],{'useClass':me}],[exports[_0x97aed1(0x422)]],[ee],[z],[x],[fe],[exports[_0x97aed1(0x24f)]]];a[_0x97aed1(0x368)](this['_injector'],a[_0x97aed1(0x3b9)](_0x54dcaa,(_0xf7ccf8=this[_0x97aed1(0x314)])==null?void 0x0:_0xf7ccf8[_0x97aed1(0x2d5)]));}[_0x4b2219(0x411)](){const _0x217955=_0x4b2219;this[_0x217955(0x274)](this['_renderManagerService'][_0x217955(0x340)](a[_0x217955(0x2f6)][_0x217955(0x376)],[ve])),this[_0x217955(0x274)](this[_0x217955(0x2a2)][_0x217955(0x340)](a['UniverInstanceType'][_0x217955(0x201)],[ge]));}[_0x4b2219(0x254)](){const _0xffff46=_0x4b2219;a[_0xffff46(0x3b5)](this[_0xffff46(0x263)],[[x],[exports[_0xffff46(0x422)]],[ee],[z],[exports[_0xffff46(0x24f)]]]);}},rs(exports[_0x4b2219(0x1f2)],_0x4b2219(0x2cb),os),exports[_0x4b2219(0x1f2)]=is([a[_0x4b2219(0x2bb)](u[_0x4b2219(0x401)]),ue(0x1,p[_0x4b2219(0x27e)]),ue(0x2,a[_0x4b2219(0x21c)](a[_0x4b2219(0x2af)])),ue(0x3,a['IConfigService'])],exports[_0x4b2219(0x1f2)]);var as=Object[_0x4b2219(0x2d2)],cs=(_0x521ffe,_0x565d60,_0x20a771,_0x58dcfa)=>{const _0x4b55e3=_0x4b2219;for(var _0x1b024d=_0x58dcfa>0x1?void 0x0:_0x58dcfa?as(_0x565d60,_0x20a771):_0x565d60,_0x45e65f=_0x521ffe[_0x4b55e3(0x39f)]-0x1,_0x23935b;_0x45e65f>=0x0;_0x45e65f--)(_0x23935b=_0x521ffe[_0x45e65f])&&(_0x1b024d=_0x23935b(_0x1b024d)||_0x1b024d);return _0x1b024d;},W=(_0x50906c,_0x25b06d)=>(_0x5b9c3c,_0x3e6964)=>_0x25b06d(_0x5b9c3c,_0x3e6964,_0x50906c);exports[_0x4b2219(0x2ec)]=class extends u[_0x4b2219(0x1de)]{constructor(_0x1944a6,_0x5edce0,_0x389bc9,_0x290ccf,_0x497907){super(_0x1944a6,_0x5edce0,_0x389bc9,_0x290ccf,_0x497907);}async[_0x4b2219(0x23c)](_0x4dc51b){const _0x17f119=_0x4b2219,_0x5dee95=await this[_0x17f119(0x3c0)](),_0xa65e7b=this[_0x17f119(0x322)](_0x4dc51b,_0x5dee95);return this['_doCreateSocket'](_0xa65e7b);}[_0x4b2219(0x322)](_0x1a4921,_0x20a381){const _0x214694=_0x4b2219,_0x30f69a=typeof window>'u'?new URL(_0x1a4921):new URL(_0x1a4921,window['location'][_0x214694(0x40e)]);_0x30f69a[_0x214694(0x344)][_0x214694(0x1f6)](_0x214694(0x238),_0x20a381);const _0x345ac1=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x214694(0x419)][_0x214694(0x399)]);return _0x345ac1['get']('runId')&&_0x30f69a[_0x214694(0x344)][_0x214694(0x1f6)](_0x214694(0x2ba),_0x345ac1[_0x214694(0x1d6)](_0x214694(0x2ba))),_0x30f69a[_0x214694(0x2e3)]();}async[_0x4b2219(0x3c0)](){const _0x21d1cd=_0x4b2219;var _0x3f562b,_0x4e25a0,_0x3e9b31;const _0x40a698=this['_configService'][_0x21d1cd(0x1e9)](u[_0x21d1cd(0x339)]),_0x274054=(_0x3f562b=_0x40a698==null?void 0x0:_0x40a698[_0x21d1cd(0x1d8)])!=null?_0x3f562b:u[_0x21d1cd(0x2ff)];return(_0x3e9b31=(_0x4e25a0=(await this['_httpService'][_0x21d1cd(0x1d6)](_0x274054,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x4e25a0[_0x21d1cd(0x355)])!=null?_0x3e9b31:'';}},exports[_0x4b2219(0x2ec)]=cs([W(0x0,a['Inject'](a[_0x4b2219(0x2af)])),W(0x1,a[_0x4b2219(0x21c)](q['HTTPService'])),W(0x2,a[_0x4b2219(0x41b)]),W(0x3,a[_0x4b2219(0x20e)]),W(0x4,m[_0x4b2219(0x2f5)])],exports[_0x4b2219(0x2ec)]);const Le=0x7530,Pe='ACTIVE_UNIT_EVENT_CHANNEL';class ls extends a[_0x4b2219(0x3dc)]{constructor(){const _0x42f773=_0x4b2219;super(),_(this,_0x42f773(0x23a),a[_0x42f773(0x2ed)]()),_(this,_0x42f773(0x1e1),new Set()),_(this,_0x42f773(0x326),new Map()),_(this,'_heartbeatTimer',null),_(this,_0x42f773(0x38e),new Map()),_(this,_0x42f773(0x432),new Map()),this[_0x42f773(0x333)]();}[_0x4b2219(0x3d9)](){const _0x4c98ec=_0x4b2219;super[_0x4c98ec(0x3d9)](),this[_0x4c98ec(0x38e)][_0x4c98ec(0x423)]((_0xa855cb,_0x4d7782)=>this[_0x4c98ec(0x220)](_0x4d7782)),this['_heartbeatTimer']&&window[_0x4c98ec(0x3cc)](this[_0x4c98ec(0x2c8)]);}[_0x4b2219(0x30d)](_0xed28c7){const _0x495777=_0x4b2219;return this[_0x495777(0x2a7)](_0xed28c7)[_0x495777(0x1ce)](d[_0x495777(0x283)]());}[_0x4b2219(0x2a6)](_0x964716){const _0x541894=_0x4b2219;this[_0x541894(0x1e1)][_0x541894(0x2c2)]===0x0&&this[_0x541894(0x2d8)](),this['_selfUnitIDs'][_0x541894(0x2e9)](_0x964716),this['_send']({'type':0x0,'memberID':this[_0x541894(0x23a)],'unitIDs':[_0x964716],'isForwarded':!0x1});}[_0x4b2219(0x28d)](_0x31a51c){const _0x1a6fad=_0x4b2219;this[_0x1a6fad(0x1e1)][_0x1a6fad(0x28e)](_0x31a51c),this[_0x1a6fad(0x1e1)][_0x1a6fad(0x2c2)]===0x0&&this['_heartbeatTimer']&&window[_0x1a6fad(0x3cc)](this[_0x1a6fad(0x2c8)]);}['_init'](){const _0x4cf761=_0x4b2219;this['disposeWithMe'](a[_0x4cf761(0x38f)](d[_0x4cf761(0x2d0)](window,'storage')[_0x4cf761(0x1f3)](_0x34b9ed=>{const _0xdbd5d9=_0x4cf761;if(_0x34b9ed['key']!==Pe||!_0x34b9ed['newValue'])return;const _0x2a5686=JSON[_0xdbd5d9(0x3fa)](_0x34b9ed[_0xdbd5d9(0x421)]);this[_0xdbd5d9(0x3c7)](_0x2a5686);}))),window[_0x4cf761(0x1eb)](_0x4cf761(0x3c2),()=>this[_0x4cf761(0x251)]({'type':0x1,'memberID':this[_0x4cf761(0x23a)],'unitIDs':Array[_0x4cf761(0x3dd)](this['_selfUnitIDs'])}));}[_0x4b2219(0x3c7)](_0x299183){const _0x3b1e97=_0x4b2219;switch(_0x299183[_0x3b1e97(0x1f8)]){case 0x0:this[_0x3b1e97(0x297)](_0x299183);break;case 0x1:this[_0x3b1e97(0x2b7)](_0x299183);break;case 0x2:this[_0x3b1e97(0x3b2)](_0x299183);break;}}['_handleJoinEvent'](_0x54c5e1){const _0xd135dc=_0x4b2219,{unitIDs:_0x241b67,memberID:_0x3724a1,isForwarded:_0x550b25}=_0x54c5e1;_0x241b67['forEach'](_0x4f7b46=>{const _0x24f2ef=_0x45c8;if(!_0x550b25&&this[_0x24f2ef(0x326)][_0x24f2ef(0x2b9)](_0x4f7b46)&&this[_0x24f2ef(0x2a7)](_0x4f7b46)[_0x24f2ef(0x372)](u[_0x24f2ef(0x414)][_0x24f2ef(0x266)]),!this[_0x24f2ef(0x326)][_0x24f2ef(0x2b9)](_0x4f7b46)||!this[_0x24f2ef(0x326)]['get'](_0x4f7b46)[_0x24f2ef(0x2b9)](_0x3724a1)){const _0x3bfb16=this[_0x24f2ef(0x326)][_0x24f2ef(0x1d6)](_0x4f7b46)||new Set();_0x3bfb16['add'](_0x3724a1),this['_unitOnClients']['set'](_0x4f7b46,_0x3bfb16),this[_0x24f2ef(0x31e)](_0x3724a1);}}),_0x550b25||this[_0xd135dc(0x251)]({'type':0x0,'memberID':this[_0xd135dc(0x23a)],'unitIDs':[...this[_0xd135dc(0x1e1)]],'isForwarded':!0x0});}[_0x4b2219(0x31e)](_0x443fe7){const _0x4e53ee=_0x4b2219;this[_0x4e53ee(0x220)](_0x443fe7);const _0x1861a9=window['setTimeout'](()=>{const _0x4d7bb4=_0x4e53ee;this[_0x4d7bb4(0x326)][_0x4d7bb4(0x423)](_0x122aa6=>{const _0x360245=_0x4d7bb4;_0x122aa6[_0x360245(0x28e)](_0x443fe7);});},Le*0x2);this[_0x4e53ee(0x38e)][_0x4e53ee(0x1f6)](_0x443fe7,_0x1861a9);}['_removeClearOtherTimer'](_0x2d0741){const _0x4ed439=_0x4b2219;if(this[_0x4ed439(0x38e)][_0x4ed439(0x2b9)](_0x2d0741)){const _0x90403d=this[_0x4ed439(0x38e)]['get'](_0x2d0741);_0x90403d&&window[_0x4ed439(0x272)](_0x90403d),this[_0x4ed439(0x38e)][_0x4ed439(0x1f6)](_0x2d0741,null);}}[_0x4b2219(0x2b7)](_0x312243){const _0x46af9f=_0x4b2219,{memberID:_0x36b5f3,unitIDs:_0x51013f}=_0x312243;_0x51013f[_0x46af9f(0x423)](_0x5bf10d=>{const _0x33c194=_0x46af9f;var _0x352094;const _0x23a828=this[_0x33c194(0x326)][_0x33c194(0x1d6)](_0x5bf10d);_0x23a828&&(_0x23a828['delete'](_0x36b5f3),(_0x352094=this[_0x33c194(0x2a7)](_0x5bf10d))==null||_0x352094[_0x33c194(0x372)](_0x23a828['size']===0x0?u[_0x33c194(0x414)]['NO_OTHER_CLIENTS_EDITING']:u[_0x33c194(0x414)][_0x33c194(0x266)]));}),this[_0x46af9f(0x220)](_0x36b5f3);}[_0x4b2219(0x3b2)](_0x21cf05){const _0x42cf1c=_0x4b2219;this[_0x42cf1c(0x31e)](_0x21cf05['memberID']);}[_0x4b2219(0x251)](_0x27e1a4){const _0x4b514d=_0x4b2219;localStorage[_0x4b514d(0x32a)](Pe,JSON['stringify'](_0x27e1a4));}[_0x4b2219(0x2d8)](){const _0x3da17b=_0x4b2219;this[_0x3da17b(0x2c8)]=window[_0x3da17b(0x2e4)](()=>{const _0x1554e5=_0x3da17b;this[_0x1554e5(0x251)]({'type':0x2,'memberID':this['_id']});},Le);}['_ensureSubject'](_0xc362c2){const _0xcc9bd=_0x4b2219;return this[_0xcc9bd(0x432)][_0xcc9bd(0x2b9)](_0xc362c2)||this['_unitStatus'][_0xcc9bd(0x1f6)](_0xc362c2,new d[(_0xcc9bd(0x324))](u[_0xcc9bd(0x414)][_0xcc9bd(0x3f3)])),this[_0xcc9bd(0x432)]['get'](_0xc362c2);}}var ke=(_0x1a1f03=>(_0x1a1f03[_0x1a1f03[_0x4b2219(0x2b1)]=0x0]=_0x4b2219(0x2b1),_0x1a1f03[_0x1a1f03['OK']=0x1]='OK',_0x1a1f03[_0x1a1f03['INTERNAL_ERROR']=0x2]=_0x4b2219(0x315),_0x1a1f03[_0x1a1f03[_0x4b2219(0x403)]=0x3]=_0x4b2219(0x403),_0x1a1f03[_0x1a1f03[_0x4b2219(0x250)]=0x4]='NOT_FOUND',_0x1a1f03[_0x1a1f03[_0x4b2219(0x303)]=0x5]=_0x4b2219(0x303),_0x1a1f03[_0x1a1f03[_0x4b2219(0x31d)]=0x6]=_0x4b2219(0x31d),_0x1a1f03[_0x1a1f03[_0x4b2219(0x1fb)]=0x7]='INVALID_ARGUMENT',_0x1a1f03[_0x1a1f03[_0x4b2219(0x3f2)]=0x8]='TOO_MANY_REQUESTS',_0x1a1f03[_0x1a1f03[_0x4b2219(0x1cb)]=0x9]=_0x4b2219(0x1cb),_0x1a1f03[_0x1a1f03[_0x4b2219(0x31a)]=0xa]=_0x4b2219(0x31a),_0x1a1f03[_0x1a1f03[_0x4b2219(0x1e5)]=0x1389]=_0x4b2219(0x1e5),_0x1a1f03[_0x1a1f03[_0x4b2219(0x1e6)]=0x1771]=_0x4b2219(0x1e6),_0x1a1f03[_0x1a1f03[_0x4b2219(0x42a)]=0x1772]=_0x4b2219(0x42a),_0x1a1f03[_0x1a1f03[_0x4b2219(0x42e)]=0x1773]=_0x4b2219(0x42e),_0x1a1f03[_0x1a1f03[_0x4b2219(0x2b6)]=0x1b59]=_0x4b2219(0x2b6),_0x1a1f03[_0x1a1f03['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x4b2219(0x32d),_0x1a1f03[_0x1a1f03[_0x4b2219(0x336)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x1a1f03[_0x1a1f03[_0x4b2219(0x2f2)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x1a1f03[_0x1a1f03['APPLY_DUPLICATED']=0x1b5d]=_0x4b2219(0x20a),_0x1a1f03[_0x1a1f03[_0x4b2219(0x3a8)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x1a1f03[_0x1a1f03[_0x4b2219(0x38a)]=0x2329]=_0x4b2219(0x38a),_0x1a1f03[_0x1a1f03['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x4b2219(0x33a),_0x1a1f03[_0x1a1f03[_0x4b2219(0x1c9)]=0x232b]=_0x4b2219(0x1c9),_0x1a1f03[_0x1a1f03[_0x4b2219(0x381)]=0x232c]=_0x4b2219(0x381),_0x1a1f03[_0x1a1f03[_0x4b2219(0x236)]=0x232d]=_0x4b2219(0x236),_0x1a1f03[_0x1a1f03[_0x4b2219(0x3a0)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x1a1f03[_0x1a1f03['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x1a1f03[_0x1a1f03[_0x4b2219(0x37f)]=0x2713]=_0x4b2219(0x37f),_0x1a1f03[_0x1a1f03[_0x4b2219(0x429)]=0x2714]=_0x4b2219(0x429),_0x1a1f03[_0x1a1f03[_0x4b2219(0x32f)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x1a1f03[_0x1a1f03[_0x4b2219(0x30b)]=0x271b]=_0x4b2219(0x30b),_0x1a1f03[_0x1a1f03[_0x4b2219(0x2b8)]=0x2af9]=_0x4b2219(0x2b8),_0x1a1f03[_0x1a1f03['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x4b2219(0x269),_0x1a1f03[_0x1a1f03[_0x4b2219(0x2de)]=0x2ee2]=_0x4b2219(0x2de),_0x1a1f03[_0x1a1f03[_0x4b2219(0x1f0)]=0x2ee3]=_0x4b2219(0x1f0),_0x1a1f03[_0x1a1f03[_0x4b2219(0x3c1)]=0x2ee4]=_0x4b2219(0x3c1),_0x1a1f03[_0x1a1f03[_0x4b2219(0x24d)]=0x2ee5]=_0x4b2219(0x24d),_0x1a1f03[_0x1a1f03[_0x4b2219(0x1c7)]=0x32c9]=_0x4b2219(0x1c7),_0x1a1f03[_0x1a1f03['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x4b2219(0x32e),_0x1a1f03[_0x1a1f03[_0x4b2219(0x416)]=0x32cb]=_0x4b2219(0x416),_0x1a1f03[_0x1a1f03['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x1a1f03))(ke||{}),_s=Object[_0x4b2219(0x2d2)],hs=(_0x2dfb79,_0x2c6795,_0x5f2bb1,_0x38295c)=>{for(var _0x4d7b75=_0x38295c>0x1?void 0x0:_0x38295c?_s(_0x2c6795,_0x5f2bb1):_0x2c6795,_0x46276c=_0x2dfb79['length']-0x1,_0x134ac7;_0x46276c>=0x0;_0x46276c--)(_0x134ac7=_0x2dfb79[_0x46276c])&&(_0x4d7b75=_0x134ac7(_0x4d7b75)||_0x4d7b75);return _0x4d7b75;},de=(_0x5b5f90,_0x52f480)=>(_0x255729,_0x5449a1)=>_0x52f480(_0x255729,_0x5449a1,_0x5b5f90);exports['RemoteUniscriptService']=class extends a[_0x4b2219(0x3dc)]{constructor(_0x37f98b,_0x128b02,_0x3fdd91){const _0x12cb60=_0x4b2219;super(),this[_0x12cb60(0x214)]=_0x37f98b,this['_httpService']=_0x128b02,this['_configService']=_0x3fdd91;}async[_0x4b2219(0x21a)](_0x4cb83e,_0x3c6cc0,_0x3b1145,..._0x33c57a){const _0x1e2fbd=_0x4b2219;var _0x6b3b4c,_0x14b850,_0x51efe8,_0x485051;const _0x52a83f=this[_0x1e2fbd(0x214)][_0x1e2fbd(0x371)]();if(!_0x52a83f)throw new Error(_0x1e2fbd(0x240));const _0x25a8a6=((_0x6b3b4c=this['_configService'][_0x1e2fbd(0x1e9)](u[_0x1e2fbd(0x1c4)]))!=null?_0x6b3b4c:u[_0x1e2fbd(0x3f5)])+'/'+_0x4cb83e+'/run/'+_0x3c6cc0,_0x932eeb=new URL(window[_0x1e2fbd(0x419)][_0x1e2fbd(0x2c9)]),_0x5a8f67={'scriptId':_0x4cb83e,'runId':(_0x14b850=_0x932eeb[_0x1e2fbd(0x344)][_0x1e2fbd(0x1d6)](_0x1e2fbd(0x2ba)))!=null?_0x14b850:'','function':_0x3c6cc0,'unitId':_0x52a83f[_0x1e2fbd(0x2ea)](),'argsOfFunction':JSON[_0x1e2fbd(0x389)](_0x33c57a),'invokeId':(_0x51efe8=_0x3b1145[_0x1e2fbd(0x3f4)])!=null?_0x51efe8:'','executionId':(_0x485051=_0x3b1145[_0x1e2fbd(0x40c)])!=null?_0x485051:''};try{const _0x4ad82f=await this['_httpService'][_0x1e2fbd(0x26c)](_0x25a8a6,{'body':_0x5a8f67});return _0x4ad82f[_0x1e2fbd(0x24a)][_0x1e2fbd(0x41d)]&&_0x4ad82f[_0x1e2fbd(0x24a)][_0x1e2fbd(0x41d)][_0x1e2fbd(0x361)]!==ke['OK']?_0x1e2fbd(0x1c8):_0x4ad82f[_0x1e2fbd(0x24a)][_0x1e2fbd(0x342)];}catch{return _0x1e2fbd(0x1c8);}}},exports['RemoteUniscriptService']=hs([de(0x0,a[_0x4b2219(0x316)]),de(0x1,a[_0x4b2219(0x21c)](q[_0x4b2219(0x3fb)])),de(0x2,a['IConfigService'])],exports[_0x4b2219(0x427)]),exports[_0x4b2219(0x21b)]=je,exports[_0x4b2219(0x288)]=Ee,exports['SheetCollabCursorShape']=Ae,exports[_0x4b2219(0x1d3)]=ls,exports[_0x4b2219(0x38b)]=Be;
|
|
1
|
+
'use strict';const _0x151a7c=_0x2459;(function(_0x438915,_0x51a419){const _0x42bf29=_0x2459,_0x14cab5=_0x438915();while(!![]){try{const _0x3a201b=parseInt(_0x42bf29(0x334))/0x1*(parseInt(_0x42bf29(0x340))/0x2)+-parseInt(_0x42bf29(0x40d))/0x3+-parseInt(_0x42bf29(0x238))/0x4+parseInt(_0x42bf29(0x270))/0x5+parseInt(_0x42bf29(0x1c1))/0x6+parseInt(_0x42bf29(0x383))/0x7+-parseInt(_0x42bf29(0x2b9))/0x8;if(_0x3a201b===_0x51a419)break;else _0x14cab5['push'](_0x14cab5['shift']());}catch(_0x3468d5){_0x14cab5['push'](_0x14cab5['shift']());}}}(_0x448a,0x7e4bc));var Xe=Object[_0x151a7c(0x209)],Ge=(_0x12bd8e,_0x495464,_0x50ea8f)=>_0x495464 in _0x12bd8e?Xe(_0x12bd8e,_0x495464,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50ea8f}):_0x12bd8e[_0x495464]=_0x50ea8f,_=(_0x2a42e8,_0x59d789,_0x53656f)=>Ge(_0x2a42e8,typeof _0x59d789!=_0x151a7c(0x41e)?_0x59d789+'':_0x59d789,_0x53656f);Object[_0x151a7c(0x209)](exports,Symbol[_0x151a7c(0x1ef)],{'value':_0x151a7c(0x2c7)});const u=require(_0x151a7c(0x1fb)),a=require('@univerjs/core'),p=require(_0x151a7c(0x2f9)),q=require(_0x151a7c(0x37a)),b=require(_0x151a7c(0x3ae)),qe=require('@univerjs/drawing'),d=require(_0x151a7c(0x398)),Y=require('@univerjs/docs'),m=require('@univerjs-pro/collaboration'),Te=require(_0x151a7c(0x3de)),g=require(_0x151a7c(0x239)),$=require(_0x151a7c(0x330)),G=require(_0x151a7c(0x1a3)),P=require(_0x151a7c(0x30e)),O=require(_0x151a7c(0x25f)),T=require(_0x151a7c(0x1c6)),M=require(_0x151a7c(0x1b1)),Ke=require('@univerjs/rpc');var ze=Object['getOwnPropertyDescriptor'],Je=(_0x24e6e1,_0x51b53f,_0x54d605,_0xb4e4a5)=>{const _0x31ae3c=_0x151a7c;for(var _0x526a1b=_0xb4e4a5>0x1?void 0x0:_0xb4e4a5?ze(_0x51b53f,_0x54d605):_0x51b53f,_0x1291d5=_0x24e6e1[_0x31ae3c(0x3b3)]-0x1,_0x48f98b;_0x1291d5>=0x0;_0x1291d5--)(_0x48f98b=_0x24e6e1[_0x1291d5])&&(_0x526a1b=_0x48f98b(_0x526a1b)||_0x526a1b);return _0x526a1b;},Oe=(_0xd890d3,_0x197f11)=>(_0x3f3d8a,_0x1a8436)=>_0x197f11(_0x3f3d8a,_0x1a8436,_0xd890d3);let fe=class extends a[_0x151a7c(0x2c2)]{constructor(_0x461e82,_0x134388){const _0x3e94cf=_0x151a7c;super(),this[_0x3e94cf(0x276)]=_0x461e82,this['_imageIoService']=_0x134388,this[_0x3e94cf(0x1c8)]();}[_0x151a7c(0x1c8)](){const _0x5f001e=_0x151a7c,_0xb8872a=this;this[_0x5f001e(0x2f6)](this[_0x5f001e(0x276)][_0x5f001e(0x2da)]({'onBeforePasteImage':async _0x2421cb=>{const _0x38582d=_0x5f001e,_0x17521a=await _0xb8872a[_0x38582d(0x3a0)]['saveImage'](_0x2421cb);return _0x17521a?{'source':_0x17521a[_0x38582d(0x261)],'imageSourceType':_0x17521a[_0x38582d(0x2ba)]}:null;}}));}};fe=Je([Oe(0x0,b[_0x151a7c(0x3eb)]),Oe(0x1,qe[_0x151a7c(0x284)])],fe);const Re=['purple300',_0x151a7c(0x3a1),_0x151a7c(0x1d4),_0x151a7c(0x27a),_0x151a7c(0x318),_0x151a7c(0x1c7)];function _0x2459(_0x5d9cd1,_0x336af7){const _0x448ab5=_0x448a();return _0x2459=function(_0x2459b9,_0x45346f){_0x2459b9=_0x2459b9-0x197;let _0x463363=_0x448ab5[_0x2459b9];return _0x463363;},_0x2459(_0x5d9cd1,_0x336af7);}class Ce extends a[_0x151a7c(0x38f)]{constructor(){const _0x4306bd=_0x151a7c;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x4306bd(0x3ef),0x0);}[_0x151a7c(0x28c)](_0x470957){const _0x47ac2d=_0x151a7c;if(this[_0x47ac2d(0x26d)][_0x47ac2d(0x3ff)](_0x470957))return this[_0x47ac2d(0x26d)][_0x47ac2d(0x35b)](_0x470957);const _0x36e185=Re[this[_0x47ac2d(0x3ef)]];return this[_0x47ac2d(0x3ef)]=(this[_0x47ac2d(0x3ef)]+0x1)%Re[_0x47ac2d(0x3b3)],this['_assignedColors']['set'](_0x470957,_0x36e185),_0x36e185;}}function we(_0x568a45){const _0x2efd58=_0x151a7c;let _0x35c16d='';for(const _0x41d4e9 of _0x568a45){const {startOffset:_0x2b9ab6,endOffset:_0x43f48e,isActive:_0x5896dd,rangeType:_0x32a1ff,segmentId:_0xa2e5f6,segmentPage:_0xaa5dab}=_0x41d4e9;_0x35c16d[_0x2efd58(0x3b3)]&&(_0x35c16d+=','),_0x35c16d+=_0x2b9ab6+':'+_0x43f48e+':'+(_0x5896dd?'1':'0')+':'+_0x32a1ff+':'+_0xa2e5f6+':'+_0xaa5dab;}return _0x35c16d;}function Ze(_0x28e6c9){const _0x5df5b5=_0x151a7c,_0x246243=_0x28e6c9[_0x5df5b5(0x1f5)](','),_0x46a7c9=[];for(const _0x1f2112 of _0x246243){const [_0x307a42,_0x1b687d,_0x384489,_0x3f9a84,_0x1cc1e7,_0x2c990c]=_0x1f2112[_0x5df5b5(0x1f5)](':');_0x46a7c9[_0x5df5b5(0x264)]({'startOffset':Number(_0x307a42),'endOffset':Number(_0x1b687d),'collapsed':_0x307a42===_0x1b687d,'isActive':_0x384489==='1','rangeType':_0x3f9a84===a[_0x5df5b5(0x216)]['TEXT']?a[_0x5df5b5(0x216)][_0x5df5b5(0x394)]:a[_0x5df5b5(0x216)]['RECT'],'segmentId':typeof _0x1cc1e7==_0x5df5b5(0x20f)?String(_0x1cc1e7):'','segmentPage':Number(_0x2c990c!=null?_0x2c990c:-0x1)});}return _0x46a7c9[_0x5df5b5(0x325)](_0x45084d=>_0x45084d[_0x5df5b5(0x3bc)])||(_0x46a7c9[0x0][_0x5df5b5(0x3bc)]=!0x0),_0x46a7c9;}class pe extends a[_0x151a7c(0x2c2)]{constructor(){const _0x4fe524=_0x151a7c;super(...arguments),_(this,_0x4fe524(0x262),new d['BehaviorSubject'](null)),_(this,'collabCursorState$',this[_0x4fe524(0x262)][_0x4fe524(0x33c)]());}[_0x151a7c(0x399)](_0x227c57){const _0x5a762d=_0x151a7c,{unitID:_0x278db8,memberID:_0x3d85a0,textRanges:_0x4b3023}=_0x227c57,_0x520f20=we(_0x4b3023);if(_0x520f20==='')return;const _0x216cab={'unitID':_0x278db8,'memberID':_0x3d85a0,'selection':_0x520f20};this[_0x5a762d(0x262)][_0x5a762d(0x336)](_0x216cab);}}var Qe=Object['getOwnPropertyDescriptor'],et=(_0x1128ea,_0x33b58e,_0x584f5b,_0x33fb57)=>{for(var _0x107f24=_0x33fb57>0x1?void 0x0:_0x33fb57?Qe(_0x33b58e,_0x584f5b):_0x33b58e,_0x345be9=_0x1128ea['length']-0x1,_0x4df22b;_0x345be9>=0x0;_0x345be9--)(_0x4df22b=_0x1128ea[_0x345be9])&&(_0x107f24=_0x4df22b(_0x107f24)||_0x107f24);return _0x107f24;},L=(_0x2625da,_0x305fe2)=>(_0x2139ed,_0x5e5777)=>_0x305fe2(_0x2139ed,_0x5e5777,_0x2625da);const tt=0x12c,st=0x64;let Se=class extends a[_0x151a7c(0x2c2)]{constructor(_0x1525e9,_0x3841e3,_0x20efb3,_0x56602d,_0x17f329,_0x124951,_0x3abafa,_0x119a01,_0x602baf){const _0x5cbc83=_0x151a7c;super(),_(this,_0x5cbc83(0x3e2),!0x1),_(this,'_init',!0x1),_(this,_0x5cbc83(0x390),new d[(_0x5cbc83(0x1dd))](new Map())),_(this,_0x5cbc83(0x3ea),this['_cursorInfo$']['asObservable']()),_(this,'_roomMembers$',new d[(_0x5cbc83(0x1dd))]([])),_(this,_0x5cbc83(0x321),this['_roomMembers$'][_0x5cbc83(0x271)](d[_0x5cbc83(0x2b4)](tt))),_(this,_0x5cbc83(0x2aa),a[_0x5cbc83(0x36c)](_0x38c72f=>{const _0x4691ed=_0x5cbc83,_0x2d4573={'eventID':m[_0x4691ed(0x372)][_0x4691ed(0x258)],'data':{'unitID':this[_0x4691ed(0x328)],'memberID':this['_session']['getMemberID'](),'selection':we(_0x38c72f)}};this[_0x4691ed(0x375)][_0x4691ed(0x220)](_0x2d4573,this[_0x4691ed(0x328)]);},st)),(this[_0x5cbc83(0x328)]=_0x1525e9,this['_session']=_0x3841e3,this[_0x5cbc83(0x388)]=_0x20efb3,this[_0x5cbc83(0x1b7)]=_0x56602d,this[_0x5cbc83(0x3f9)]=_0x17f329,this[_0x5cbc83(0x219)]=_0x124951,this[_0x5cbc83(0x21b)]=_0x3abafa,this[_0x5cbc83(0x344)]=_0x119a01,this['_commandService']=_0x602baf);}get[_0x151a7c(0x2ac)](){const _0x2ab020=_0x151a7c;return this[_0x2ab020(0x390)]['getValue']();}get['roomMembers'](){const _0x324996=_0x151a7c;return this[_0x324996(0x376)][_0x324996(0x1ae)]();}[_0x151a7c(0x3a3)](){const _0x596e35=_0x151a7c;super['dispose'](),this[_0x596e35(0x390)]['next'](new Map()),this['_cursorInfo$'][_0x596e35(0x3ed)](),this[_0x596e35(0x376)][_0x596e35(0x336)]([]),this[_0x596e35(0x376)][_0x596e35(0x3ed)]();}[_0x151a7c(0x256)](){const _0x557e18=_0x151a7c;this[_0x557e18(0x1c8)]||(this['_init']=!0x0,this[_0x557e18(0x375)][_0x557e18(0x36d)]['pipe'](d[_0x557e18(0x407)](this[_0x557e18(0x326)]))[_0x557e18(0x22b)](_0x3f119e=>{const _0x2e431c=_0x557e18;_0x3f119e===u[_0x2e431c(0x3be)][_0x2e431c(0x3b5)]?this[_0x2e431c(0x3f6)]():this[_0x2e431c(0x2a7)]();}),this[_0x557e18(0x375)][_0x557e18(0x322)][_0x557e18(0x271)](d[_0x557e18(0x407)](this[_0x557e18(0x326)]))[_0x557e18(0x22b)](_0x3f5061=>{const _0x34e550=_0x557e18,_0x3f9574=_0x3f5061['eventID'];_0x3f9574===m[_0x34e550(0x372)][_0x34e550(0x258)]&&this[_0x34e550(0x28d)](_0x3f5061),_0x3f9574===m['CollaborationEvent'][_0x34e550(0x1e0)]&&this[_0x34e550(0x217)](_0x3f5061);}),this[_0x557e18(0x2f6)](this[_0x557e18(0x357)][_0x557e18(0x3c9)](_0x725c4b=>{const _0xdd05f2=_0x557e18,_0x293cbf=_0x725c4b[_0xdd05f2(0x28e)];_0x293cbf!=null&&this[_0xdd05f2(0x3e2)]&&_0x725c4b['id']===Y[_0xdd05f2(0x223)]['id']&&_0x293cbf['unitId']===this[_0xdd05f2(0x328)]&&_0x293cbf[_0xdd05f2(0x36b)]===!0x1&&_0x293cbf['ranges']['length']>0x0&&this[_0xdd05f2(0x2aa)](_0x293cbf['ranges']);})),this['_syncEditingCollabCursorService'][_0x557e18(0x224)]['pipe'](d['takeUntil'](this[_0x557e18(0x326)]))[_0x557e18(0x22b)](_0x58ab30=>{const _0x3134a0=_0x557e18;if((_0x58ab30==null?void 0x0:_0x58ab30[_0x3134a0(0x328)])!==this[_0x3134a0(0x328)])return;const _0x300506={'eventID':m[_0x3134a0(0x372)][_0x3134a0(0x258)],'data':_0x58ab30};this[_0x3134a0(0x28d)](_0x300506);}),this[_0x557e18(0x2f6)](this[_0x557e18(0x357)][_0x557e18(0x3c9)](_0x11e879=>{const _0x5c5d4d=_0x557e18;if(_0x11e879['params']==null)return;const _0x3aad92=_0x11e879[_0x5c5d4d(0x28e)];if(_0x11e879['id']!==Y['RichTextEditingMutation']['id']||_0x3aad92[_0x5c5d4d(0x1de)]!==this['unitID'])return;const _0x4aa314={'id':_0x5c5d4d(0x1d3),'params':_0x3aad92},_0x37369a=this['cursorInfo'];for(const [_0x51aea3,_0x453078]of _0x37369a){const _0x10c74b={'id':_0x5c5d4d(0x1d3),'params':{'unitId':this[_0x5c5d4d(0x328)],'actions':null,'textRanges':_0x453078[_0x5c5d4d(0x3d4)]}},_0x36feec=this[_0x5c5d4d(0x21b)][_0x5c5d4d(0x350)](_0x4aa314,_0x10c74b,!0x1);if(m[_0x5c5d4d(0x2e1)](_0x36feec))throw _0x36feec['error'];_0x37369a[_0x5c5d4d(0x2a4)](_0x51aea3,{..._0x453078,'ranges':_0x36feec[_0x5c5d4d(0x293)][_0x5c5d4d(0x28e)][_0x5c5d4d(0x31e)]});}queueMicrotask(()=>{const _0x495e79=_0x5c5d4d;this[_0x495e79(0x390)][_0x495e79(0x336)](_0x37369a);});})));}[_0x151a7c(0x28d)](_0x4679d0){const _0xd59dd4=_0x151a7c;var _0x2b81fe,_0x21c1b5;const {memberID:_0x2f4d19,selection:_0x4ea73a}=_0x4679d0['data'],_0xe3eaf8=Ze(_0x4ea73a),_0x336e17=(_0x21c1b5=(_0x2b81fe=this['_memberService'][_0xd59dd4(0x3af)](this[_0xd59dd4(0x328)],_0x2f4d19))==null?void 0x0:_0x2b81fe['name'])!=null?_0x21c1b5:_0xd59dd4(0x40f),_0x2926af={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x2f4d19),'name':_0x336e17,'ranges':_0xe3eaf8},_0x1f6086=this['cursorInfo'];_0x1f6086['set'](_0x2f4d19,_0x2926af),this[_0xd59dd4(0x390)][_0xd59dd4(0x336)](_0x1f6086);}[_0x151a7c(0x217)](_0x54198a){const _0xea2887=_0x151a7c,{memberID:_0x2a12d9}=_0x54198a[_0xea2887(0x2eb)],_0x4ef1fc=this[_0xea2887(0x2ac)];_0x4ef1fc['delete'](_0x2a12d9),this[_0xea2887(0x390)][_0xea2887(0x336)](_0x4ef1fc);}[_0x151a7c(0x3f6)](){const _0x2b501d=_0x151a7c;var _0x1fc73f;if(this['_online']=!0x0,((_0x1fc73f=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x1fc73f[_0x2b501d(0x27f)]())!==this['unitID'])return;const _0xe9a96d=this[_0x2b501d(0x388)]['get'](Y['DocSelectionManagerService'])[_0x2b501d(0x417)]();Array[_0x2b501d(0x2d3)](_0xe9a96d)&&_0xe9a96d[_0x2b501d(0x3b3)]>0x0&&this[_0x2b501d(0x2aa)](_0xe9a96d);}['_toggleOffline'](){const _0xb5ebe9=_0x151a7c;this[_0xb5ebe9(0x3e2)]=!0x1;}};Se=et([L(0x2,a[_0x151a7c(0x2db)](a['Injector'])),L(0x3,a['Inject'](Ce)),L(0x4,a[_0x151a7c(0x2db)](u['MemberService'])),L(0x5,a['Inject'](pe)),L(0x6,m['ITransformService']),L(0x7,a['IUniverInstanceService']),L(0x8,a['ICommandService'])],Se);var nt=Object[_0x151a7c(0x300)],it=(_0x141b79,_0x1dd05d,_0x3a750f,_0x17e097)=>{const _0x8d33=_0x151a7c;for(var _0x5bec42=_0x17e097>0x1?void 0x0:_0x17e097?nt(_0x1dd05d,_0x3a750f):_0x1dd05d,_0x29de05=_0x141b79[_0x8d33(0x3b3)]-0x1,_0x11f286;_0x29de05>=0x0;_0x29de05--)(_0x11f286=_0x141b79[_0x29de05])&&(_0x5bec42=_0x11f286(_0x5bec42)||_0x5bec42);return _0x5bec42;},A=(_0x2ad6fa,_0x348561)=>(_0x45f3a5,_0xbfd77e)=>_0x348561(_0x45f3a5,_0xbfd77e,_0x2ad6fa);const rt=0x12c,ot=0x64,at=()=>{let _0x519874=[],_0x303615=!0x1;return _0x2fa49f=>{const _0x4aa2d9=_0x2459;_0x519874[_0x4aa2d9(0x264)](_0x2fa49f),_0x303615||(_0x303615=!0x0,setTimeout(()=>{_0x519874['forEach'](_0x400299=>_0x400299()),_0x519874=[],_0x303615=!0x1;}));};};let Ie=class extends a['RxDisposable']{constructor(_0x4ae759,_0x1a05ed,_0x431e66,_0xb1945c,_0x52473a,_0x220014,_0x46d237,_0x32127b){const _0x2c326f=_0x151a7c;super(),_(this,'_online',!0x1),_(this,_0x2c326f(0x1c8),!0x1),_(this,'_cursorInfo$',new d[(_0x2c326f(0x1dd))](new Map())),_(this,_0x2c326f(0x3ea),this[_0x2c326f(0x390)][_0x2c326f(0x33c)]()),_(this,'_roomMembers$',new d[(_0x2c326f(0x1dd))]([])),_(this,_0x2c326f(0x321),this['_roomMembers$'][_0x2c326f(0x271)](d['debounceTime'](rt))),_(this,_0x2c326f(0x2aa),a[_0x2c326f(0x36c)]((_0x478256,_0x76fb7f)=>{const _0x1806ce=_0x2c326f,_0x562137={'eventID':m[_0x1806ce(0x372)][_0x1806ce(0x258)],'data':{'unitID':this[_0x1806ce(0x328)],'memberID':this[_0x1806ce(0x375)][_0x1806ce(0x211)](),'selection':Te['serializeRangeWithSheet'](_0x478256,_0x76fb7f[_0x1806ce(0x416)])}};this[_0x1806ce(0x375)][_0x1806ce(0x220)](_0x562137,this[_0x1806ce(0x328)]);},ot)),(this[_0x2c326f(0x328)]=_0x4ae759,this[_0x2c326f(0x375)]=_0x1a05ed,this[_0x2c326f(0x388)]=_0x431e66,this['_colorAssignService']=_0xb1945c,this[_0x2c326f(0x3f9)]=_0x52473a,this[_0x2c326f(0x344)]=_0x220014,this[_0x2c326f(0x357)]=_0x46d237,this[_0x2c326f(0x215)]=_0x32127b);}get['cursorInfo'](){const _0x4d9e8f=_0x151a7c;return this[_0x4d9e8f(0x390)]['getValue']();}get[_0x151a7c(0x3c1)](){const _0x5ea00c=_0x151a7c;return this[_0x5ea00c(0x376)][_0x5ea00c(0x1ae)]();}['dispose'](){const _0x26da31=_0x151a7c;super['dispose'](),this['_cursorInfo$'][_0x26da31(0x336)](new Map()),this[_0x26da31(0x390)][_0x26da31(0x3ed)](),this['_roomMembers$'][_0x26da31(0x336)]([]),this[_0x26da31(0x376)][_0x26da31(0x3ed)]();}[_0x151a7c(0x256)](){const _0x2693b1=_0x151a7c;this[_0x2693b1(0x1c8)]||(this['_init']=!0x0,this[_0x2693b1(0x375)]['sessionStatus$'][_0x2693b1(0x271)](d[_0x2693b1(0x407)](this[_0x2693b1(0x326)]))['subscribe'](_0x15e385=>{const _0x4e7567=_0x2693b1;_0x15e385===u[_0x4e7567(0x3be)][_0x4e7567(0x3b5)]?this[_0x4e7567(0x3f6)]():this['_toggleOffline']();}),this[_0x2693b1(0x375)]['event$'][_0x2693b1(0x271)](d[_0x2693b1(0x407)](this[_0x2693b1(0x326)]))[_0x2693b1(0x22b)](_0x23eba7=>{const _0x222e14=_0x2693b1,_0x4cfcac=_0x23eba7[_0x222e14(0x31b)];_0x4cfcac===m[_0x222e14(0x372)][_0x222e14(0x258)]&&this[_0x222e14(0x28d)](_0x23eba7),_0x4cfcac===m[_0x222e14(0x372)][_0x222e14(0x1e0)]&&this['_onCursorDelete'](_0x23eba7);}),this['_onRefRangeChange'](),this[_0x2693b1(0x2f6)](this[_0x2693b1(0x357)][_0x2693b1(0x3c9)](_0xcb9eba=>{const _0x43418e=_0x2693b1;if(this['_online']&&_0xcb9eba['id']===g[_0x43418e(0x246)]['id']&&_0xcb9eba['params'][_0x43418e(0x1de)]===this['unitID']){const _0x5b4144=_0xcb9eba[_0x43418e(0x28e)];this[_0x43418e(0x2aa)](_0x5b4144[_0x43418e(0x210)],_0x5b4144[_0x43418e(0x402)][0x0]);}})));}['_onCursorUpdate'](_0x4036d4){const _0x179a9a=_0x151a7c;var _0x56def6,_0x3b8249;const {memberID:_0x353444,selection:_0x2fc5b4}=_0x4036d4['data'],{sheetName:_0x4249d0,range:_0x323946}=Te[_0x179a9a(0x3d7)](_0x2fc5b4),_0x6f358b={'name':(_0x3b8249=(_0x56def6=this['_memberService'][_0x179a9a(0x3af)](this[_0x179a9a(0x328)],_0x353444))==null?void 0x0:_0x56def6['name'])!=null?_0x3b8249:'Unknown\x20user','range':this[_0x179a9a(0x315)](_0x4249d0,_0x323946),'sheetID':_0x4249d0,'color':this[_0x179a9a(0x1b7)][_0x179a9a(0x28c)](_0x353444),'selection':_0x2fc5b4},_0x3c345e=this[_0x179a9a(0x2ac)];_0x3c345e['set'](_0x353444,_0x6f358b),this[_0x179a9a(0x390)][_0x179a9a(0x336)](_0x3c345e);}[_0x151a7c(0x217)](_0x54909f){const _0x4ed2e1=_0x151a7c,{memberID:_0x39ef69}=_0x54909f['data'],_0x24151d=this['cursorInfo'];_0x24151d['delete'](_0x39ef69),this['_cursorInfo$'][_0x4ed2e1(0x336)](_0x24151d);}[_0x151a7c(0x315)](_0x1107ab,_0x5199d1){const _0x58ae37=_0x151a7c;var _0x26cca4,_0x625634;const _0x316142=(_0x625634=(_0x26cca4=this[_0x58ae37(0x344)]['getUniverSheetInstance'](this[_0x58ae37(0x328)]))==null?void 0x0:_0x26cca4[_0x58ae37(0x331)](_0x1107ab))==null?void 0x0:_0x625634[_0x58ae37(0x247)]();return(_0x316142==null?void 0x0:_0x316142[_0x58ae37(0x2a5)](_0x523dfc=>a[_0x58ae37(0x30c)][_0x58ae37(0x21a)](_0x523dfc,_0x5199d1)))||_0x5199d1;}[_0x151a7c(0x3f2)](){const _0x53cbbd=_0x151a7c,_0x185a80=new a[(_0x53cbbd(0x39a))](),_0xa04540=at(),_0x47ffcb=()=>{const _0x39c682=_0x53cbbd;_0x185a80[_0x39c682(0x3a3)]();const _0x36b153=(_0x3ec865,_0x285ce7,_0x9e39f0,_0x1bde78)=>{const _0x18a6fd=_0x39c682;let _0x51be70=[];switch(_0x3ec865['id']){case g[_0x18a6fd(0x379)][_0x18a6fd(0x400)]:{_0x51be70=g[_0x18a6fd(0x360)](_0x3ec865,_0x1bde78);break;}case g['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x51be70=g['handleDeleteRangeMoveUp'](_0x3ec865,_0x1bde78);break;}case g['EffectRefRangId']['InsertColCommandId']:{_0x51be70=g[_0x18a6fd(0x30d)](_0x3ec865,_0x1bde78);break;}case g[_0x18a6fd(0x379)][_0x18a6fd(0x20c)]:{_0x51be70=g[_0x18a6fd(0x333)](_0x3ec865,_0x1bde78);break;}case g[_0x18a6fd(0x379)][_0x18a6fd(0x411)]:{_0x51be70=g[_0x18a6fd(0x33a)](_0x3ec865,_0x1bde78);break;}case g[_0x18a6fd(0x379)][_0x18a6fd(0x1d2)]:{_0x51be70=g[_0x18a6fd(0x232)](_0x3ec865,_0x1bde78);break;}case g['EffectRefRangId'][_0x18a6fd(0x385)]:{_0x51be70=g[_0x18a6fd(0x1aa)](_0x3ec865,_0x1bde78);break;}case g['EffectRefRangId'][_0x18a6fd(0x3a9)]:{_0x51be70=g['handleIRemoveCol'](_0x3ec865,_0x1bde78);break;}case g[_0x18a6fd(0x379)]['RemoveRowCommandId']:{_0x51be70=g[_0x18a6fd(0x23a)](_0x3ec865,_0x1bde78);break;}}const _0x50b593=g[_0x18a6fd(0x35d)](_0x51be70,_0x1bde78),_0x3edf5c=this[_0x18a6fd(0x2ac)]['get'](_0x285ce7);if(_0x3edf5c&&_0x50b593){const _0x21f87d={..._0x3edf5c,'range':_0x50b593};this[_0x18a6fd(0x2ac)]['set'](_0x285ce7,_0x21f87d),_0xa04540(()=>{const _0x35c597=_0x18a6fd,_0x4b12dc=this['_refRangeService'][_0x35c597(0x272)](_0x50b593,_0x43df33=>(_0x4b12dc[_0x35c597(0x3a3)](),_0x36b153(_0x43df33,_0x285ce7,_0x9e39f0,_0x50b593)));_0x185a80[_0x35c597(0x2ec)](_0x4b12dc);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x39c682(0x2bd)]((_0x569f28,_0x69812f)=>{const _0x3cc4ea=_0x39c682,{range:_0x4b7c14,sheetID:_0xf3a777}=_0x569f28,_0xe2d48a=this[_0x3cc4ea(0x215)][_0x3cc4ea(0x272)](_0x4b7c14,_0x21541a=>(_0xe2d48a['dispose'](),_0x36b153(_0x21541a,_0x69812f,_0xf3a777,_0x4b7c14)));_0x185a80['add'](_0xe2d48a);});};this[_0x53cbbd(0x2f6)](a[_0x53cbbd(0x2c0)](this[_0x53cbbd(0x390)][_0x53cbbd(0x22b)](()=>{_0x47ffcb();})));}[_0x151a7c(0x3f6)](){const _0x5853bd=_0x151a7c;var _0x14479c,_0x86ba68;if(this['_online']=!0x0,((_0x14479c=this[_0x5853bd(0x344)][_0x5853bd(0x34c)]())==null?void 0x0:_0x14479c['getUnitId']())!==this[_0x5853bd(0x328)])return;const _0x378306=(_0x86ba68=this[_0x5853bd(0x388)][_0x5853bd(0x35b)](g[_0x5853bd(0x226)])[_0x5853bd(0x290)]())==null?void 0x0:_0x86ba68[0x0],_0x40cfb8=this['_univerInstanceService'][_0x5853bd(0x201)](a['UniverInstanceType'][_0x5853bd(0x3c5)])['getActiveSheet']();_0x378306&&_0x40cfb8&&this[_0x5853bd(0x2aa)](_0x40cfb8[_0x5853bd(0x358)](),_0x378306);}['_toggleOffline'](){const _0x2a8837=_0x151a7c;this[_0x2a8837(0x3e2)]=!0x1;}};Ie=it([A(0x2,a['Inject'](a[_0x151a7c(0x34d)])),A(0x3,a[_0x151a7c(0x2db)](Ce)),A(0x4,a[_0x151a7c(0x2db)](u['MemberService'])),A(0x5,a[_0x151a7c(0x1e8)]),A(0x6,a[_0x151a7c(0x39e)]),A(0x7,a[_0x151a7c(0x2db)](g[_0x151a7c(0x410)]))],Ie);var ct=Object['getOwnPropertyDescriptor'],lt=(_0x1c73ab,_0x1a305a,_0x184270,_0x4251d8)=>{for(var _0x1e4333=_0x4251d8>0x1?void 0x0:_0x4251d8?ct(_0x1a305a,_0x184270):_0x1a305a,_0x2bc2ba=_0x1c73ab['length']-0x1,_0x5ea2b8;_0x2bc2ba>=0x0;_0x2bc2ba--)(_0x5ea2b8=_0x1c73ab[_0x2bc2ba])&&(_0x1e4333=_0x5ea2b8(_0x1e4333)||_0x1e4333);return _0x1e4333;},ie=(_0x305ca8,_0x310fb8)=>(_0x31c461,_0x3ec033)=>_0x310fb8(_0x31c461,_0x3ec033,_0x305ca8);let x=class extends a['RxDisposable']{constructor(_0x3b119b,_0x3f45d3,_0x2e8bf3){const _0x16bcfe=_0x151a7c;super(),_(this,_0x16bcfe(0x3a2),new Map()),_(this,_0x16bcfe(0x289),new d[(_0x16bcfe(0x368))]()),(this[_0x16bcfe(0x344)]=_0x3b119b,this['_injector']=_0x3f45d3,this[_0x16bcfe(0x2ee)]=_0x2e8bf3,this[_0x16bcfe(0x1c8)]());}[_0x151a7c(0x3a3)](){const _0x1f44d5=_0x151a7c;super[_0x1f44d5(0x3a3)](),this[_0x1f44d5(0x289)]['complete'](),this[_0x1f44d5(0x3a2)][_0x1f44d5(0x2bd)](_0x315270=>_0x315270[_0x1f44d5(0x3a3)]());}[_0x151a7c(0x1fa)](_0x21bd1b){const _0x15aa94=_0x151a7c;return this['_entities'][_0x15aa94(0x3ff)](_0x21bd1b)?this[_0x15aa94(0x3a2)]['get'](_0x21bd1b)[_0x15aa94(0x3ea)]:this[_0x15aa94(0x289)][_0x15aa94(0x271)](d['filter'](_0x557790=>_0x557790[_0x15aa94(0x328)]===_0x21bd1b),d[_0x15aa94(0x39d)](_0x43b471=>_0x43b471[_0x15aa94(0x3ea)]));}[_0x151a7c(0x1c8)](){const _0x13227a=_0x151a7c;this[_0x13227a(0x344)][_0x13227a(0x2ed)](a['UniverInstanceType'][_0x13227a(0x3c5)])[_0x13227a(0x271)](d[_0x13227a(0x407)](this['dispose$']))[_0x13227a(0x22b)](async _0x4308bc=>{const _0x35e1b1=_0x13227a,_0x1050dd=_0x4308bc['getUnitId'](),_0x4d98d7=await this[_0x35e1b1(0x35c)](_0x1050dd);this[_0x35e1b1(0x289)][_0x35e1b1(0x336)](_0x4d98d7),this[_0x35e1b1(0x3a2)]['set'](_0x1050dd,_0x4d98d7);}),this[_0x13227a(0x344)][_0x13227a(0x2ed)](a[_0x13227a(0x319)][_0x13227a(0x378)])[_0x13227a(0x271)](d[_0x13227a(0x407)](this[_0x13227a(0x326)]))[_0x13227a(0x271)](d[_0x13227a(0x296)](_0x319452=>!_0x319452[_0x13227a(0x27f)]()[_0x13227a(0x327)]('__')))[_0x13227a(0x22b)](async _0x54940a=>{const _0x168f26=_0x13227a,_0x41e214=_0x54940a[_0x168f26(0x27f)](),_0x32f4df=await this[_0x168f26(0x31c)](_0x41e214);this[_0x168f26(0x289)][_0x168f26(0x336)](_0x32f4df),this[_0x168f26(0x3a2)][_0x168f26(0x2a4)](_0x41e214,_0x32f4df);}),d[_0x13227a(0x22d)](this[_0x13227a(0x344)]['getTypeOfUnitDisposed$'](a[_0x13227a(0x319)]['UNIVER_DOC']),this[_0x13227a(0x344)][_0x13227a(0x1c0)](a[_0x13227a(0x319)][_0x13227a(0x3c5)]))['pipe'](d[_0x13227a(0x407)](this['dispose$']))['subscribe'](_0x17f144=>{const _0x38eee6=_0x13227a,_0x336616=_0x17f144['getUnitId'](),_0x20ed69=this[_0x38eee6(0x3a2)][_0x38eee6(0x35b)](_0x336616);_0x20ed69&&(_0x20ed69[_0x38eee6(0x3a3)](),this['_entities']['delete'](_0x336616));});}async['_startSheetCollabCursor'](_0x1d82d9){const _0x152625=_0x151a7c,_0x5227b6=await this[_0x152625(0x2ee)][_0x152625(0x21d)](_0x1d82d9),_0x3117e5=this['_injector'][_0x152625(0x24f)](Ie,_0x1d82d9,_0x5227b6);return _0x3117e5[_0x152625(0x256)](),_0x3117e5;}async[_0x151a7c(0x31c)](_0x31af0a){const _0x291ae5=_0x151a7c,_0x1da679=await this[_0x291ae5(0x2ee)][_0x291ae5(0x21d)](_0x31af0a),_0x3db6f6=this[_0x291ae5(0x388)]['createInstance'](Se,_0x31af0a,_0x1da679);return _0x3db6f6[_0x291ae5(0x256)](),_0x3db6f6;}};x=lt([ie(0x0,a[_0x151a7c(0x1e8)]),ie(0x1,a['Inject'](a[_0x151a7c(0x34d)])),ie(0x2,a['Inject'](u[_0x151a7c(0x3dd)]))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0x41e529,_0x3cb198){const _0x37a7b2=_0x151a7c;let {radius:_0x144cf4,width:_0x4e8068,height:_0x590fdd}=_0x3cb198;_0x144cf4=_0x144cf4!=null?_0x144cf4:0x0,_0x4e8068=_0x4e8068!=null?_0x4e8068:0x1e,_0x590fdd=_0x590fdd!=null?_0x590fdd:0x1e;let _0x52868e=0x0,_0x517d0c=0x0,_0x368f3a=0x0;_0x52868e=_0x517d0c=_0x368f3a=Math[_0x37a7b2(0x3a5)](_0x144cf4,_0x4e8068/0x2,_0x590fdd/0x2),_0x41e529[_0x37a7b2(0x41a)](),_0x41e529[_0x37a7b2(0x287)](_0x52868e,0x0),_0x41e529['lineTo'](_0x4e8068-_0x517d0c,0x0),_0x41e529[_0x37a7b2(0x2e9)](_0x4e8068-_0x517d0c,_0x517d0c,_0x517d0c,Math['PI']*0x3/0x2,0x0,!0x1),_0x41e529['lineTo'](_0x4e8068,_0x590fdd-_0x368f3a),_0x41e529[_0x37a7b2(0x2e9)](_0x4e8068-_0x368f3a,_0x590fdd-_0x368f3a,_0x368f3a,0x0,Math['PI']/0x2,!0x1),_0x41e529[_0x37a7b2(0x341)](0x0,_0x590fdd),_0x41e529['lineTo'](0x0,_0x52868e),_0x41e529[_0x37a7b2(0x2e9)](_0x52868e,_0x52868e,_0x52868e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x41e529['closePath'](),_0x3cb198[_0x37a7b2(0x36a)]&&(_0x41e529[_0x37a7b2(0x1b6)](),_0x41e529[_0x37a7b2(0x229)]=_0x3cb198[_0x37a7b2(0x36a)],_0x3cb198['fillRule']==='evenodd'?_0x41e529[_0x37a7b2(0x36a)](_0x37a7b2(0x311)):_0x41e529[_0x37a7b2(0x36a)](),_0x41e529[_0x37a7b2(0x41b)]());}class te extends p[_0x151a7c(0x297)]{constructor(_0x51d6f9,_0x539d38){const _0x1e421b=_0x151a7c;super(_0x51d6f9,_0x539d38),_(this,_0x1e421b(0x203)),_(this,_0x1e421b(0x2bb)),(this[_0x1e421b(0x203)]=_0x539d38==null?void 0x0:_0x539d38[_0x1e421b(0x203)],this[_0x1e421b(0x2bb)]=_0x539d38==null?void 0x0:_0x539d38[_0x1e421b(0x2bb)]);}static[_0x151a7c(0x3f3)](_0x3caf37,_0x184355){const _0x2b8248=_0x151a7c,{text:_0x257c28,color:_0x223cf2}=_0x184355;_0x3caf37[_0x2b8248(0x1b6)](),_0x3caf37[_0x2b8248(0x3b8)]=_0x2b8248(0x3f5);const _0x570133=_0x3caf37[_0x2b8248(0x2c6)](_0x257c28)[_0x2b8248(0x386)],_0x6c22cb=Math[_0x2b8248(0x3a5)](_0x570133+0x2*re,De);ht(_0x3caf37,{'height':K,'radius':0x4,'width':_0x6c22cb,'fill':_0x223cf2}),_0x3caf37[_0x2b8248(0x229)]='#FFF';const _0xdcc60b=re,_0x5c934f=K-_t,_0x31f076=De-0x2*re;if(_0x570133>_0x31f076){let _0x34ac4e='',_0x222a3d=0x0;for(const _0x3befb6 of _0x257c28){const _0xf1e70=_0x3caf37[_0x2b8248(0x2c6)](_0x3befb6)['width'];if(_0x222a3d+_0xf1e70<=_0x31f076-_0x3caf37['measureText']('...')[_0x2b8248(0x386)])_0x34ac4e+=_0x3befb6,_0x222a3d+=_0xf1e70;else{_0x34ac4e+=_0x2b8248(0x324);break;}}_0x3caf37['fillText'](_0x34ac4e,_0xdcc60b,_0x5c934f);}else _0x3caf37[_0x2b8248(0x1ec)](_0x257c28,_0xdcc60b,_0x5c934f);_0x3caf37[_0x2b8248(0x41b)]();}[_0x151a7c(0x1a5)](_0x448a5c){const _0x5a262e=_0x151a7c;te[_0x5a262e(0x3f3)](_0x448a5c,this);}}const oe=_0x151a7c(0x3ca),ut=_0x151a7c(0x382),dt=_0x151a7c(0x28a),k=0x6,ft=1.5,ae=0x4,St=1.5,It=_0x151a7c(0x36e);class Ue{constructor(_0xd21ee2,_0x1d178a,_0x69eb3e,_0x3be158){const _0x410ca7=_0x151a7c;_(this,_0x410ca7(0x202),[]),_(this,_0x410ca7(0x1b3),null),_(this,_0x410ca7(0x32c),null),_(this,_0x410ca7(0x2d4),null),_(this,_0x410ca7(0x1cd),null),_(this,'_eventUnsubscribe',null),(this[_0x410ca7(0x35e)]=_0xd21ee2,this[_0x410ca7(0x1e4)]=_0x1d178a,this[_0x410ca7(0x406)]=_0x69eb3e,this[_0x410ca7(0x359)]=_0x3be158,this[_0x410ca7(0x1c2)]());}set[_0x151a7c(0x329)](_0x200e0b){const _0x4f41c2=_0x151a7c;_0x200e0b?(this['_anchorDot']&&this['_anchorDot'][_0x4f41c2(0x1d6)](),this[_0x4f41c2(0x32c)]&&this[_0x4f41c2(0x32c)][_0x4f41c2(0x1f4)]()):(this['_anchorDot']&&this[_0x4f41c2(0x2d4)][_0x4f41c2(0x1f4)](),this[_0x4f41c2(0x32c)]&&this['_textBubble'][_0x4f41c2(0x1d6)]());}[_0x151a7c(0x3a3)](){const _0x48a878=_0x151a7c;for(const _0x5cb6f7 of this[_0x48a878(0x202)])_0x5cb6f7[_0x48a878(0x3a3)]();this[_0x48a878(0x32c)]&&this['_textBubble'][_0x48a878(0x3a3)](),this[_0x48a878(0x2d4)]&&this[_0x48a878(0x2d4)][_0x48a878(0x3a3)](),this[_0x48a878(0x1b3)]&&this[_0x48a878(0x1b3)]['dispose'](),this[_0x48a878(0x2e8)]&&this[_0x48a878(0x2e8)]();}[_0x151a7c(0x1c2)](){const _0x2eb61f=_0x151a7c;var _0x3a3f35;const {_docSkeleton:_0x33be5d,_document:_0x296765}=this,{color:_0x49a28d,name:_0x701e85,ranges:_0x18c988}=this[_0x2eb61f(0x35e)],_0x37d91c=_0x296765[_0x2eb61f(0x19a)](),{docsLeft:_0x468ce2,docsTop:_0x4aa0f7}=_0x37d91c,_0x4a55d7=new b[(_0x2eb61f(0x37b))](_0x37d91c,_0x33be5d);for(const {startOffset:_0x1a5096,endOffset:_0x51ad63,rangeType:_0x2db4b7,segmentId:_0x5e590a,segmentPage:_0x4bbe00,collapsed:_0x363310,isActive:_0x5acd87}of _0x18c988){const _0x520192=_0x33be5d[_0x2eb61f(0x19b)](_0x1a5096,!0x0,_0x5e590a,_0x4bbe00);let _0x4cceb9=_0x33be5d['findNodePositionByCharIndex'](_0x51ad63,!0x0,_0x5e590a,_0x4bbe00);if(_0x4cceb9==null&&(_0x4cceb9=_0x33be5d['findNodePositionByCharIndex'](_0x51ad63-0x1,!0x1,_0x5e590a,_0x4bbe00)),_0x5acd87){const {contentBoxPointGroup:_0x1c3ff7}=_0x4a55d7['getRangePointData'](_0x4cceb9,_0x4cceb9);if(_0x1c3ff7[_0x2eb61f(0x3b3)]===0x0)continue;this[_0x2eb61f(0x351)](_0x49a28d,_0x1c3ff7,_0x468ce2,_0x4aa0f7,_0x701e85),this['_eventUnsubscribe']=this[_0x2eb61f(0x3ad)]();}if(_0x520192&&_0x4cceb9){if(_0x2db4b7===a[_0x2eb61f(0x216)][_0x2eb61f(0x31a)]){const _0x28a6b8=new b[(_0x2eb61f(0x337))](_0x37d91c,_0x33be5d),{pointGroup:_0x4ac459}=(_0x3a3f35=_0x28a6b8[_0x2eb61f(0x2d1)](_0x520192,_0x4cceb9))!=null?_0x3a3f35:{};if(_0x4ac459==null||_0x4ac459[_0x2eb61f(0x3b3)]===0x0)continue;this[_0x2eb61f(0x3ab)](_0x49a28d,_0x4ac459,_0x468ce2,_0x4aa0f7);}else{if(!_0x363310){const {borderBoxPointGroup:_0x29d4dc}=_0x4a55d7['getRangePointData'](_0x520192,_0x4cceb9);if(_0x29d4dc[_0x2eb61f(0x3b3)]===0x0)continue;this[_0x2eb61f(0x3c6)](_0x49a28d,_0x29d4dc,_0x468ce2,_0x4aa0f7);}}}}}[_0x151a7c(0x351)](_0x2ef2b8,_0x4b3527,_0x5297ce,_0x572526,_0x3e73a0){const _0x2234d5=_0x151a7c,_0x216aa6=this['_getAnchorBounding'](_0x4b3527),{left:_0x3f4bce,top:_0x255116,height:_0x775695}=_0x216aa6,_0x443f39=this['_getScale'](),_0x571171=St/_0x443f39,_0x3b3581=new p[(_0x2234d5(0x27c))](oe+a['Tools']['generateRandomId'](k),{'left':_0x3f4bce+_0x5297ce-_0x571171,'top':_0x255116+_0x572526,'height':_0x775695,'width':ft,'fill':_0x2ef2b8||p['getColor'](a[_0x2234d5(0x3f1)][_0x2234d5(0x392)],0x0),'strokeWidth':_0x571171,'stroke':It,'evented':!0x0});this['_anchor']=_0x3b3581,this[_0x2234d5(0x1e4)][_0x2234d5(0x2a3)](_0x3b3581,b[_0x2234d5(0x1f1)]);const _0x2745d8=new p['Rect'](oe+a[_0x2234d5(0x2f1)][_0x2234d5(0x1a8)](k),{'left':_0x3f4bce+_0x5297ce-_0x571171,'top':_0x255116+_0x572526-ae/0x2,'height':ae,'width':ae,'fill':_0x2ef2b8||p[_0x2234d5(0x41c)](a[_0x2234d5(0x3f1)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x2ef2b8||p['getColor'](a[_0x2234d5(0x3f1)]['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x2745d8,this[_0x2234d5(0x1e4)][_0x2234d5(0x2a3)](_0x2745d8,b[_0x2234d5(0x1f1)]);const _0x3d39f4=new te(oe+a[_0x2234d5(0x2f1)][_0x2234d5(0x1a8)](k),{'left':_0x3f4bce+_0x5297ce-_0x571171,'top':_0x255116+_0x572526-K,'text':_0x3e73a0,'color':_0x2ef2b8});this['_textBubble']=_0x3d39f4,this[_0x2234d5(0x1e4)][_0x2234d5(0x2a3)](_0x3d39f4,b[_0x2234d5(0x1f1)]),this['_hover']=!0x1;}[_0x151a7c(0x3ad)](){const _0x34755c=_0x151a7c,_0xf2875a=this[_0x34755c(0x1b3)][_0x34755c(0x2b8)][_0x34755c(0x1df)](()=>{const _0x3193aa=_0x34755c;this[_0x3193aa(0x329)]=!0x0;}),_0x374fab=this[_0x34755c(0x1b3)][_0x34755c(0x1f6)][_0x34755c(0x1df)](()=>{const _0x257304=_0x34755c;this[_0x257304(0x1cd)]&&clearTimeout(this['_hideTimer']),this[_0x257304(0x1cd)]=setTimeout(()=>{const _0x323d80=_0x257304;this[_0x323d80(0x329)]=!0x1;},0x7d0);});return()=>{const _0x3b213e=_0x34755c;_0xf2875a['unsubscribe'](),_0x374fab[_0x3b213e(0x3f4)]();};}[_0x151a7c(0x3c6)](_0x4c1ef5,_0xf8fc09,_0x2cbbc7,_0x14f248){const _0x3f1bf4=_0x151a7c,_0x50c4bb=new a[(_0x3f1bf4(0x412))](_0x4c1ef5)[_0x3f1bf4(0x323)](0.2)[_0x3f1bf4(0x3d9)](),_0x574ebb=new p[(_0x3f1bf4(0x3d0))](ut+a[_0x3f1bf4(0x2f1)][_0x3f1bf4(0x1a8)](k),{'pointsGroup':_0xf8fc09,'fill':_0x50c4bb||p[_0x3f1bf4(0x41c)](a['COLORS'][_0x3f1bf4(0x392)],0.2),'left':_0x2cbbc7,'top':_0x14f248,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3f1bf4(0x202)][_0x3f1bf4(0x264)](_0x574ebb),this[_0x3f1bf4(0x1e4)][_0x3f1bf4(0x2a3)](_0x574ebb,b['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x3f4a1d,_0x17ffd6,_0x254cb1,_0x101465){const _0x4aa4e1=_0x151a7c,_0x988e97=new a['ColorKit'](_0x3f4a1d)[_0x4aa4e1(0x323)](0.2)['toRgbString'](),_0x202fd5=new p[(_0x4aa4e1(0x3d0))](dt+a['Tools']['generateRandomId'](k),{'pointsGroup':_0x17ffd6,'fill':_0x988e97||p['getColor'](a[_0x4aa4e1(0x3f1)]['black'],0.2),'left':_0x254cb1,'top':_0x101465,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x202fd5),this['_scene']['addObject'](_0x202fd5,b[_0x4aa4e1(0x1f1)]);}[_0x151a7c(0x241)](_0x2d6894){const _0x37b776=_0x2d6894[0x0],_0x42726a=_0x37b776[0x0],_0x49b0ee=_0x37b776[0x2],{x:_0x4cd480,y:_0x517ed5}=_0x42726a,{x:_0x285182,y:_0x4539c7}=_0x49b0ee;return{'left':_0x4cd480,'top':_0x517ed5,'width':_0x285182-_0x4cd480,'height':_0x4539c7-_0x517ed5};}['_getScale'](){const _0x134a96=_0x151a7c,{scaleX:_0x354b9e,scaleY:_0x432049}=this[_0x134a96(0x1e4)]['getAncestorScale']();return Math['max'](_0x354b9e,_0x432049);}}var vt=Object[_0x151a7c(0x300)],gt=(_0x586eb0,_0x2be8ed,_0x1c66f8,_0xd44e58)=>{const _0xc2109b=_0x151a7c;for(var _0x133a62=_0xd44e58>0x1?void 0x0:_0xd44e58?vt(_0x2be8ed,_0x1c66f8):_0x2be8ed,_0x1545f2=_0x586eb0[_0xc2109b(0x3b3)]-0x1,_0x580002;_0x1545f2>=0x0;_0x1545f2--)(_0x580002=_0x586eb0[_0x1545f2])&&(_0x133a62=_0x580002(_0x133a62)||_0x133a62);return _0x133a62;},V=(_0x382d30,_0x128d1b)=>(_0x217dd5,_0x446858)=>_0x128d1b(_0x217dd5,_0x446858,_0x382d30);let ve=class extends a[_0x151a7c(0x2c2)]{constructor(_0x29d85c,_0x17a7df,_0x1a2876,_0x1420c3,_0x20f02b){const _0x430eec=_0x151a7c;super(),_(this,_0x430eec(0x1cc),[]),_(this,_0x430eec(0x415),[]),(this[_0x430eec(0x1a7)]=_0x29d85c,this[_0x430eec(0x2a0)]=_0x17a7df,this[_0x430eec(0x404)]=_0x1a2876,this[_0x430eec(0x357)]=_0x1420c3,this['_themeService']=_0x20f02b,this[_0x430eec(0x1c8)]());}[_0x151a7c(0x1c8)](){const _0x5494d5=_0x151a7c,_0x2b4a6c=this[_0x5494d5(0x1a7)]['unitId'],_0x148c6a=this['_docSkeletonManagerService'];this[_0x5494d5(0x2f6)](d[_0x5494d5(0x342)]([this[_0x5494d5(0x404)][_0x5494d5(0x1fa)](_0x2b4a6c),this['_themeService'][_0x5494d5(0x1d1)]])[_0x5494d5(0x271)]($['map'](([_0x57dab1,_0xfd4bde])=>({'skeleton':_0x148c6a[_0x5494d5(0x338)](),'cursors':[..._0x57dab1[_0x5494d5(0x2cd)]()][_0x5494d5(0x3a6)](_0x14a95d=>({..._0x14a95d,'color':_0xfd4bde[_0x14a95d['color']]}))})))[_0x5494d5(0x22b)](_0x197968=>{const _0x168490=_0x5494d5;if(this['_removeCollabCursors'](),_0x197968){const {skeleton:_0x7d459d,cursors:_0x514243}=_0x197968;this[_0x168490(0x395)](_0x7d459d,_0x514243);}})),this[_0x5494d5(0x21c)](),this['_initCommandExecutedListener']();}[_0x151a7c(0x395)](_0x1c30b9,_0x1c3c3a){const _0x825d62=_0x151a7c,{scene:_0x17f30f,mainComponent:_0x2bae90}=this[_0x825d62(0x1a7)],_0x3cc548=_0x1c3c3a[_0x825d62(0x33d)](_0x268213=>new Ue(_0x268213,_0x17f30f,_0x1c30b9,_0x2bae90));this[_0x825d62(0x1cc)]=_0x3cc548,this[_0x825d62(0x415)]=_0x1c3c3a;}[_0x151a7c(0x1e1)](){const _0x12fdb4=_0x151a7c;this[_0x12fdb4(0x2fb)]();const {scene:_0x129b5d,mainComponent:_0x190949}=this['_context'],_0x7b08be=this['_docSkeletonManagerService']['getSkeleton'](),_0x4a8259=this[_0x12fdb4(0x415)][_0x12fdb4(0x33d)](_0x1a94fe=>new Ue(_0x1a94fe,_0x129b5d,_0x7b08be,_0x190949));this[_0x12fdb4(0x1cc)]=_0x4a8259;}['_removeCollabCursors'](){const _0x3a9c6e=_0x151a7c;this[_0x3a9c6e(0x1cc)][_0x3a9c6e(0x2bd)](_0x4918e7=>_0x4918e7[_0x3a9c6e(0x3a3)]()),this[_0x3a9c6e(0x1cc)]=[];}[_0x151a7c(0x2cc)](){const _0x4f4a1e=_0x151a7c,_0x36d6df=[b[_0x4f4a1e(0x25b)]['id']];this[_0x4f4a1e(0x2f6)](this[_0x4f4a1e(0x357)]['onCommandExecuted'](_0x1b5deb=>{const _0x3f80bf=_0x4f4a1e;_0x36d6df[_0x3f80bf(0x2ab)](_0x1b5deb['id'])&&_0x1b5deb[_0x3f80bf(0x28e)][_0x3f80bf(0x1de)]===this[_0x3f80bf(0x1a7)][_0x3f80bf(0x1de)]&&this[_0x3f80bf(0x1e1)]();}));}[_0x151a7c(0x21c)](){const _0x10d2fc=_0x151a7c;this['disposeWithMe'](a['fromEventSubject'](this[_0x10d2fc(0x1a7)][_0x10d2fc(0x309)]['onTransformChange$'])[_0x10d2fc(0x271)]($[_0x10d2fc(0x296)](_0x347b14=>_0x347b14[_0x10d2fc(0x3fa)]===p[_0x10d2fc(0x1ed)][_0x10d2fc(0x1da)]),$['throttleTime'](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};ve=gt([V(0x1,a[_0x151a7c(0x2db)](Y[_0x151a7c(0x37e)])),V(0x2,a[_0x151a7c(0x2db)](x)),V(0x3,a['ICommandService']),V(0x4,a[_0x151a7c(0x2db)](a['ThemeService']))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x151a7c(0x297)]{constructor(_0x291203,_0x2dfd14){const _0x3aa7f9=_0x151a7c;super(_0x291203,_0x2dfd14),_(this,'_color'),_(this,_0x3aa7f9(0x339),!0x1),_(this,_0x3aa7f9(0x31d)),_(this,_0x3aa7f9(0x414),''),_(this,'_labelPosition',_0x3aa7f9(0x1fc)),_(this,_0x3aa7f9(0x280)),(_0x2dfd14&&this['setShapeProps'](_0x2dfd14),this[_0x3aa7f9(0x2b8)][_0x3aa7f9(0x1df)](()=>this[_0x3aa7f9(0x2ef)]({'hovered':!0x0})),this[_0x3aa7f9(0x1f6)][_0x3aa7f9(0x1df)](()=>this[_0x3aa7f9(0x2ef)]({'hovered':!0x1})));}[_0x151a7c(0x2ef)](_0x15a753){const _0x1b079d=_0x151a7c;var _0x2a805e,_0x3751c4,_0x547f6c,_0x7df6b7,_0x2a9e1d,_0x1a8f3b;this['_color']=(_0x2a805e=_0x15a753[_0x1b079d(0x203)])!=null?_0x2a805e:this[_0x1b079d(0x3d3)],this[_0x1b079d(0x339)]=(_0x3751c4=_0x15a753[_0x1b079d(0x2b1)])!=null?_0x3751c4:this[_0x1b079d(0x339)],this[_0x1b079d(0x31d)]=(_0x547f6c=_0x15a753[_0x1b079d(0x416)])!=null?_0x547f6c:this[_0x1b079d(0x31d)],this[_0x1b079d(0x414)]=(_0x7df6b7=_0x15a753['name'])!=null?_0x7df6b7:this[_0x1b079d(0x414)],this[_0x1b079d(0x292)]=(_0x2a9e1d=_0x15a753[_0x1b079d(0x2c3)])!=null?_0x2a9e1d:this[_0x1b079d(0x292)],this['_backgroundColor']=(_0x1a8f3b=_0x15a753[_0x1b079d(0x1b5)])!=null?_0x1a8f3b:this[_0x1b079d(0x280)],this[_0x1b079d(0x353)]({'width':_0x15a753[_0x1b079d(0x386)],'height':_0x15a753['height']});}[_0x151a7c(0x244)](_0x3ac218){const _0x3ec6d2=_0x151a7c,{row:_0xf3b5ab,column:_0x338a59}=_0x3ac218;if(_0xf3b5ab>=this['_range'][_0x3ec6d2(0x2c8)]&&_0xf3b5ab<=this[_0x3ec6d2(0x31d)]['endRow']&&_0x338a59>=this['_range'][_0x3ec6d2(0x26f)]&&_0x338a59<=this['_range'][_0x3ec6d2(0x2f7)]){this[_0x3ec6d2(0x2ef)]({'hovered':!0x0});return;}this[_0x3ec6d2(0x2ef)]({'hovered':!0x1});}[_0x151a7c(0x371)](_0x13dd1a){return!0x1;}[_0x151a7c(0x1a5)](_0x51bfd8){const _0x4eb7d6=_0x151a7c;p[_0x4eb7d6(0x27c)][_0x4eb7d6(0x3f3)](_0x51bfd8,{'width':this[_0x4eb7d6(0x386)],'height':this[_0x4eb7d6(0x233)],'strokeWidth':Ct,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x4eb7d6(0x280)]}),this[_0x4eb7d6(0x339)]&&(_0x51bfd8['save'](),_0x51bfd8[_0x4eb7d6(0x281)](0x1,0x0,0x0,0x1,this['width'],this[_0x4eb7d6(0x292)]==='bottom'?0x0:-0x14),te[_0x4eb7d6(0x3f3)](_0x51bfd8,{'text':this['_name'],'color':this[_0x4eb7d6(0x3d3)]}),_0x51bfd8[_0x4eb7d6(0x41b)]());}}var pt=Object[_0x151a7c(0x300)],bt=(_0x4e57e3,_0x2657bc,_0x680df5,_0x2b21d2)=>{const _0x489b64=_0x151a7c;for(var _0x496524=_0x2b21d2>0x1?void 0x0:_0x2b21d2?pt(_0x2657bc,_0x680df5):_0x2657bc,_0xda89a8=_0x4e57e3[_0x489b64(0x3b3)]-0x1,_0x136575;_0xda89a8>=0x0;_0xda89a8--)(_0x136575=_0x4e57e3[_0xda89a8])&&(_0x496524=_0x136575(_0x496524)||_0x496524);return _0x496524;},ce=(_0xbebc09,_0x2f80cd)=>(_0x5589e2,_0x16b1df)=>_0x2f80cd(_0x5589e2,_0x16b1df,_0xbebc09);const Et=0x1389;let ge=class extends a[_0x151a7c(0x2c2)]{constructor(_0x120cd8,_0x3fc2de,_0x25995f,_0x2e412b){const _0x4e45fb=_0x151a7c;super(),_(this,_0x4e45fb(0x415),new Set()),_(this,_0x4e45fb(0x218),null),(this[_0x4e45fb(0x1a7)]=_0x120cd8,this[_0x4e45fb(0x313)]=_0x3fc2de,this['_collabCursorController']=_0x25995f,this[_0x4e45fb(0x26e)]=_0x2e412b,this['_init']());}[_0x151a7c(0x1c8)](){const _0x3179d1=_0x151a7c;this[_0x3179d1(0x313)]['currentSkeleton$']['pipe']($[_0x3179d1(0x407)](this['dispose$']),$[_0x3179d1(0x39d)](_0x385170=>{const _0x5bb755=_0x3179d1;if(_0x385170){const _0x257017=_0x385170[_0x5bb755(0x273)];return d[_0x5bb755(0x342)](this[_0x5bb755(0x404)][_0x5bb755(0x1fa)](this[_0x5bb755(0x1a7)][_0x5bb755(0x1de)]),this[_0x5bb755(0x26e)][_0x5bb755(0x1d1)])[_0x5bb755(0x271)]($['map'](([_0x48d1db,_0x20f3f7])=>{const _0x835768=_0x5bb755,_0xe69e3e=new Map();return _0x48d1db[_0x835768(0x2bd)]((_0xabc206,_0x457458)=>{const _0x58eede=_0x835768;if(_0xabc206[_0x58eede(0x1b8)]===_0x257017){const _0x56f064={..._0xabc206};_0x56f064[_0x58eede(0x203)]=_0x20f3f7[_0xabc206[_0x58eede(0x203)]],_0xe69e3e[_0x58eede(0x2a4)](_0x457458,_0x56f064);}}),{'skeleton':_0x385170,'cursors':_0xe69e3e};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x3179d1(0x22b)](({skeleton:_0x788dd9,cursors:_0x54a71f})=>{const _0x195862=_0x3179d1;this[_0x195862(0x2fb)](),_0x788dd9&&this[_0x195862(0x395)](_0x788dd9,_0x54a71f);}),this['_sheetSkeletonManagerService'][_0x3179d1(0x1d9)][_0x3179d1(0x22b)](_0x3d5d65=>{const _0x3467c8=_0x3179d1;if(_0x3d5d65==null)return;const {skeleton:_0x5d9464}=_0x3d5d65,{scene:_0x47471c}=this[_0x3467c8(0x1a7)];_0x47471c['onPointerMove$'][_0x3467c8(0x1df)](a[_0x3467c8(0x36c)](_0x26e9e5=>{const _0x24e06d=_0x3467c8;var _0x5dcffb,_0x586d9a;const {offsetX:_0x61e906,offsetY:_0x33cbde}=_0x26e9e5,{x:_0x3b04eb,y:_0x4fb6fb}=_0x47471c[_0x24e06d(0x2c4)](p[_0x24e06d(0x2df)][_0x24e06d(0x1c9)]([_0x61e906,_0x33cbde])),{scaleX:_0x56690d,scaleY:_0x404687}=_0x47471c[_0x24e06d(0x2e3)](),_0x5bc46d=_0x47471c[_0x24e06d(0x349)](p[_0x24e06d(0x23d)][_0x24e06d(0x380)]),_0x49f4c9=_0x47471c['getVpScrollXYInfoByPosToVp'](p[_0x24e06d(0x2df)]['FromArray']([_0x3b04eb,_0x4fb6fb]),_0x5bc46d),_0x13b85c=_0x5d9464[_0x24e06d(0x3d6)](_0x61e906,_0x33cbde,_0x56690d,_0x404687,_0x49f4c9);((_0x5dcffb=this[_0x24e06d(0x218)])==null?void 0x0:_0x5dcffb[_0x24e06d(0x348)])===_0x13b85c[_0x24e06d(0x348)]&&((_0x586d9a=this['_lastPointer'])==null?void 0x0:_0x586d9a['row'])===_0x13b85c['row']||this[_0x24e06d(0x415)][_0x24e06d(0x2bd)](_0x4a762a=>{const _0x236146=_0x24e06d;_0x4a762a[_0x236146(0x244)](_0x13b85c);});},0x64));});}[_0x151a7c(0x395)](_0x48ef07,_0x3385b6){const _0x1f8792=_0x151a7c;var _0x333eb3;const _0x3eacdc=(_0x333eb3=this[_0x1f8792(0x313)][_0x1f8792(0x200)]())==null?void 0x0:_0x333eb3[_0x1f8792(0x29d)];if(!_0x3eacdc)return;const _0x5f3bdd=this[_0x1f8792(0x199)]();if(!_0x5f3bdd)return;this[_0x1f8792(0x415)][_0x1f8792(0x2bd)](_0x4648a9=>{const _0x2e61ea=_0x1f8792;_0x4648a9[_0x2e61ea(0x257)]();});const {scene:_0x344878}=_0x5f3bdd,_0x5423fe=Tt(Array['from'](_0x3385b6[_0x1f8792(0x2cd)]()))[_0x1f8792(0x33d)](_0x2c0558=>{const _0x1ff08e=_0x1f8792,{color:_0x192ac8,range:_0x41028d,name:_0x497cbb,selection:_0x2d1be3,sheetID:_0x565ac7}=_0x2c0558,{startColumn:_0x7b24ff,startRow:_0x335510,endColumn:_0x3772dd,endRow:_0x291672}=_0x41028d,_0x3acf8e=G[_0x1ff08e(0x20d)](_0x335510,_0x7b24ff,_0x344878,_0x3eacdc),_0x2e7464=G[_0x1ff08e(0x20d)](_0x291672,_0x3772dd,_0x344878,_0x3eacdc),{columnHeaderHeightAndMarginTop:_0x1af5ed}=_0x3eacdc,{startX:_0x35f7f6,startY:_0x10c0cf}=_0x3acf8e,{endX:_0x5dba4e,endY:_0x30830d}=_0x2e7464,_0x5c624f=_0x5dba4e-_0x35f7f6,_0x315920=_0x30830d-_0x10c0cf,_0x333dd1={'labelPosition':_0x10c0cf-_0x1af5ed>=K?_0x1ff08e(0x1fc):'bottom','sheetID':_0x565ac7,'range':_0x41028d,'color':_0x192ac8,'name':_0x497cbb,'selection':_0x2d1be3,'left':_0x35f7f6,'top':_0x10c0cf,'width':_0x5c624f,'height':_0x315920,'evented':!0x1,'zIndex':Et};return new Ae(_0x497cbb,_0x333dd1);});_0x344878[_0x1f8792(0x1cb)](_0x5423fe,mt),this[_0x1f8792(0x415)]=new Set(_0x5423fe);}[_0x151a7c(0x2fb)](){const _0x86ab57=_0x151a7c;var _0x2ac5f4;(_0x2ac5f4=this[_0x86ab57(0x415)])==null||_0x2ac5f4['forEach'](_0x229ec6=>_0x229ec6[_0x86ab57(0x3a3)]());}[_0x151a7c(0x199)](){const _0x1e014a=_0x151a7c;return G[_0x1e014a(0x283)](this['_context'][_0x1e014a(0x2f4)],this['_context']);}};ge=bt([ce(0x1,a[_0x151a7c(0x2db)](G[_0x151a7c(0x391)])),ce(0x2,a[_0x151a7c(0x2db)](x)),ce(0x3,a[_0x151a7c(0x2db)](a[_0x151a7c(0x312)]))],ge);function Tt(_0x272928){const _0x3aa976=_0x151a7c,_0x2738f9=new Map();return _0x272928[_0x3aa976(0x2bd)](_0x1b3a05=>{const _0x51c237=_0x3aa976;if(_0x2738f9['has'](_0x1b3a05['selection'])){const _0x5520c0=_0x2738f9[_0x51c237(0x35b)](_0x1b3a05[_0x51c237(0x206)]);_0x5520c0[_0x51c237(0x2b5)]+=',\x20'+_0x1b3a05[_0x51c237(0x2b5)];}else _0x2738f9[_0x51c237(0x2a4)](_0x1b3a05['selection'],_0x1b3a05);}),Array[_0x3aa976(0x38e)](_0x2738f9['values']());}var E=function(){const _0x3c97dd=_0x151a7c;return E=Object['assign']||function(_0x5512ca){const _0x27dbb4=_0x2459;for(var _0x333f71,_0x3bcd3d=0x1,_0x4fddfe=arguments[_0x27dbb4(0x3b3)];_0x3bcd3d<_0x4fddfe;_0x3bcd3d++){_0x333f71=arguments[_0x3bcd3d];for(var _0x47b4f5 in _0x333f71)Object[_0x27dbb4(0x1ff)][_0x27dbb4(0x3c0)][_0x27dbb4(0x3fc)](_0x333f71,_0x47b4f5)&&(_0x5512ca[_0x47b4f5]=_0x333f71[_0x47b4f5]);}return _0x5512ca;},E[_0x3c97dd(0x24a)](this,arguments);},Ot=function(_0x172db2,_0x549aca){const _0x4552c9=_0x151a7c;var _0x367c3b={};for(var _0x2a3d77 in _0x172db2)Object[_0x4552c9(0x1ff)][_0x4552c9(0x3c0)][_0x4552c9(0x3fc)](_0x172db2,_0x2a3d77)&&_0x549aca[_0x4552c9(0x3e7)](_0x2a3d77)<0x0&&(_0x367c3b[_0x2a3d77]=_0x172db2[_0x2a3d77]);if(_0x172db2!=null&&typeof Object[_0x4552c9(0x2ad)]==_0x4552c9(0x314)){for(var _0x342109=0x0,_0x2a3d77=Object[_0x4552c9(0x2ad)](_0x172db2);_0x342109<_0x2a3d77[_0x4552c9(0x3b3)];_0x342109++)_0x549aca[_0x4552c9(0x3e7)](_0x2a3d77[_0x342109])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x4552c9(0x3fc)](_0x172db2,_0x2a3d77[_0x342109])&&(_0x367c3b[_0x2a3d77[_0x342109]]=_0x172db2[_0x2a3d77[_0x342109]]);}return _0x367c3b;},be=M[_0x151a7c(0x1b2)](function(_0x38b368,_0x23fbbd){const _0x8310f9=_0x151a7c;var _0x2e6685=_0x38b368[_0x8310f9(0x2d5)],_0x570bf6=_0x38b368['id'],_0x303134=_0x38b368[_0x8310f9(0x367)],_0x45beba=_0x38b368['extend'],_0xb1be25=Ot(_0x38b368,[_0x8310f9(0x2d5),'id','className','extend']),_0x4018b9=_0x8310f9(0x1be)[_0x8310f9(0x20e)](_0x570bf6,'\x20')[_0x8310f9(0x20e)](_0x303134||'')[_0x8310f9(0x3e0)](),_0x35bb32=M[_0x8310f9(0x1af)]('_'[_0x8310f9(0x20e)](Ut()));return ye(_0x2e6685,''[_0x8310f9(0x20e)](_0x570bf6),{'defIds':_0x2e6685[_0x8310f9(0x286)],'idSuffix':_0x35bb32[_0x8310f9(0x25d)]},E({'ref':_0x23fbbd,'className':_0x4018b9},_0xb1be25),_0x45beba);});function ye(_0x59334c,_0x44b164,_0x495286,_0x67ff46,_0x402ee2){const _0x1bd2b9=_0x151a7c;return M['createElement'](_0x59334c['tag'],E(E({'key':_0x44b164},Rt(_0x59334c,_0x495286,_0x402ee2)),_0x67ff46),(Dt(_0x59334c,_0x495286)['children']||[])[_0x1bd2b9(0x33d)](function(_0x26cc73,_0x48d51b){const _0x532848=_0x1bd2b9;return ye(_0x26cc73,''[_0x532848(0x20e)](_0x44b164,'-')[_0x532848(0x20e)](_0x59334c[_0x532848(0x346)],'-')[_0x532848(0x20e)](_0x48d51b),_0x495286,void 0x0,_0x402ee2);}));}function Rt(_0xec290d,_0x1955b2,_0x8c9768){const _0x4f4f7b=_0x151a7c;var _0x1e79a9=E({},_0xec290d['attrs']);_0x8c9768!=null&&_0x8c9768[_0x4f4f7b(0x356)]&&_0x1e79a9[_0x4f4f7b(0x36a)]==='colorChannel1'&&(_0x1e79a9[_0x4f4f7b(0x36a)]=_0x8c9768[_0x4f4f7b(0x356)]),_0xec290d['tag']===_0x4f4f7b(0x23f)&&_0x1e79a9['id']&&(_0x1e79a9['id']=_0x1e79a9['id']+_0x1955b2[_0x4f4f7b(0x225)]),Object['entries'](_0x1e79a9)[_0x4f4f7b(0x2bd)](function(_0x683803){const _0x14385d=_0x4f4f7b;var _0x4f026f=_0x683803[0x0],_0x5d9a20=_0x683803[0x1];_0x4f026f===_0x14385d(0x23f)&&typeof _0x5d9a20==_0x14385d(0x20f)&&(_0x1e79a9[_0x4f026f]=_0x5d9a20['replace'](/url\(#(.*)\)/,_0x14385d(0x2a1)['concat'](_0x1955b2[_0x14385d(0x225)],')')));});var _0x334404=_0x1955b2[_0x4f4f7b(0x286)];return!_0x334404||_0x334404[_0x4f4f7b(0x3b3)]===0x0||(_0xec290d['tag']==='use'&&_0x1e79a9[_0x4f4f7b(0x1dc)]&&(_0x1e79a9['xlink:href']=_0x1e79a9['xlink:href']+_0x1955b2[_0x4f4f7b(0x225)]),Object[_0x4f4f7b(0x1e9)](_0x1e79a9)['forEach'](function(_0x3d548b){const _0x4b3db8=_0x4f4f7b;var _0x40bc75=_0x3d548b[0x0],_0x4fba8d=_0x3d548b[0x1];typeof _0x4fba8d==_0x4b3db8(0x20f)&&(_0x1e79a9[_0x40bc75]=_0x4fba8d['replace'](/url\(#(.*)\)/,_0x4b3db8(0x2a1)[_0x4b3db8(0x20e)](_0x1955b2[_0x4b3db8(0x225)],')')));})),_0x1e79a9;}function Dt(_0xc1c3e6,_0x5c750e){const _0x535541=_0x151a7c;var _0x8c3b69,_0x173fdf=_0x5c750e[_0x535541(0x286)];return!_0x173fdf||_0x173fdf[_0x535541(0x3b3)]===0x0?_0xc1c3e6:_0xc1c3e6[_0x535541(0x346)]===_0x535541(0x298)&&(!((_0x8c3b69=_0xc1c3e6['children'])===null||_0x8c3b69===void 0x0)&&_0x8c3b69[_0x535541(0x3b3)])?E(E({},_0xc1c3e6),{'children':_0xc1c3e6[_0x535541(0x231)][_0x535541(0x33d)](function(_0x158bdb){const _0x3847d2=_0x535541;return typeof _0x158bdb[_0x3847d2(0x1eb)]['id']==_0x3847d2(0x20f)&&_0x173fdf&&_0x173fdf[_0x3847d2(0x3e7)](_0x158bdb[_0x3847d2(0x1eb)]['id'])>-0x1?E(E({},_0x158bdb),{'attrs':E(E({},_0x158bdb[_0x3847d2(0x1eb)]),{'id':_0x158bdb[_0x3847d2(0x1eb)]['id']+_0x5c750e[_0x3847d2(0x225)]})}):_0x158bdb;})}):_0xc1c3e6;}function Ut(){const _0x5d2980=_0x151a7c;return Math[_0x5d2980(0x1d5)]()[_0x5d2980(0x208)](0x24)[_0x5d2980(0x3cf)](0x2,0x8);}be[_0x151a7c(0x291)]='UniverIcon';var Nt={'tag':_0x151a7c(0x260),'attrs':{'fill':'none','viewBox':_0x151a7c(0x248),'width':_0x151a7c(0x22e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x151a7c(0x303)},'children':[{'tag':_0x151a7c(0x228),'attrs':{'stroke':_0x151a7c(0x2ce),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':_0x151a7c(0x3e8),'strokeWidth':1.2}}]},{'tag':_0x151a7c(0x298),'attrs':{},'children':[{'tag':_0x151a7c(0x3fe),'attrs':{'id':_0x151a7c(0x2ca)},'children':[{'tag':_0x151a7c(0x228),'attrs':{'fill':_0x151a7c(0x27b),'d':_0x151a7c(0x32e)}}]}]}],'defIds':[_0x151a7c(0x2ca)]},$e=M['forwardRef'](function(_0x51ce39,_0x1e8ba0){const _0xb69a8b=_0x151a7c;return M['createElement'](be,Object[_0xb69a8b(0x1f2)]({},_0x51ce39,{'id':_0xb69a8b(0x26a),'ref':_0x1e8ba0,'icon':Nt}));});$e['displayName']='OffLineSingle';var Mt={'tag':_0x151a7c(0x260),'attrs':{'fill':_0x151a7c(0x24d),'viewBox':_0x151a7c(0x1d7),'width':_0x151a7c(0x22e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x151a7c(0x228),'attrs':{'stroke':_0x151a7c(0x2ce),'d':_0x151a7c(0x397),'strokeLinecap':_0x151a7c(0x3e8),'strokeLinejoin':_0x151a7c(0x3e8),'strokeWidth':1.2}}]},{'tag':_0x151a7c(0x298),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x151a7c(0x320)},'children':[{'tag':_0x151a7c(0x228),'attrs':{'fill':_0x151a7c(0x27b),'d':'M0\x200H16V16H0z','transform':_0x151a7c(0x361)}}]}]}],'defIds':[_0x151a7c(0x320)]},xe=M[_0x151a7c(0x1b2)](function(_0x191a8d,_0x8ad816){const _0x5cf6df=_0x151a7c;return M[_0x5cf6df(0x409)](be,Object[_0x5cf6df(0x1f2)]({},_0x191a8d,{'id':_0x5cf6df(0x2cf),'ref':_0x8ad816,'icon':Mt}));});xe[_0x151a7c(0x291)]=_0x151a7c(0x37d);const Lt=_0x151a7c(0x3f0),Pt=_0x151a7c(0x373),wt=_0x151a7c(0x259),At='univer-online',yt=_0x151a7c(0x32f),H={'onlineStatusIcon':Lt,'onlineStatusTitle':Pt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0x7bd5){const _0x15af3b=_0x151a7c;switch(_0x7bd5){case u[_0x15af3b(0x354)]['OFFLINE']:return'collabStatus.offline';case u[_0x15af3b(0x354)][_0x15af3b(0x252)]:return'collabStatus.conflict';case u[_0x15af3b(0x354)][_0x15af3b(0x242)]:return _0x15af3b(0x268);case u['CollaborationStatus'][_0x15af3b(0x19e)]:return'collabStatus.notCollab';case u[_0x15af3b(0x354)][_0x15af3b(0x30a)]:case u[_0x15af3b(0x354)][_0x15af3b(0x2af)]:return'collabStatus.syncing';case u[_0x15af3b(0x354)]['SYNCED']:case u[_0x15af3b(0x354)][_0x15af3b(0x3d8)]:return'collabStatus.synced';}}function je(_0x54bfe4){const _0x5cf939=_0x151a7c,{status$:_0x4d7b0a}=_0x54bfe4,_0x4d9163=O[_0x5cf939(0x3aa)](_0x4d7b0a,u[_0x5cf939(0x354)][_0x5cf939(0x19e)]),_0x3d9a5d=O['useDependency'](a[_0x5cf939(0x1ea)]),_0x51f260=O['useDependency'](u[_0x5cf939(0x3dd)]),_0x299a56=_0x4d9163!==u['CollaborationStatus'][_0x5cf939(0x370)],_0x507e62=_0x3d9a5d['t']($t(_0x4d9163)),_0x3093d3=T[_0x5cf939(0x27e)](H['onlineStatus'],{[H[_0x5cf939(0x307)]]:_0x299a56,[H['offline']]:!_0x299a56}),_0x4c3d0e=_0x299a56?P[_0x5cf939(0x2fd)](xe,{}):P[_0x5cf939(0x2fd)]($e,{}),_0xfccba8=M[_0x5cf939(0x1bf)](()=>{_0x299a56||_0x51f260['reconnect']();},[_0x299a56,_0x51f260]);function _0x2ed29d(){const _0x2070a2=_0x5cf939;return P[_0x2070a2(0x374)](_0x2070a2(0x3c3),{'className':T[_0x2070a2(0x27e)](_0x3093d3,_0x2070a2(0x39b)),'onClick':_0xfccba8,'children':[P['jsx']('div',{'className':H[_0x2070a2(0x3a4)],'children':_0x4c3d0e}),P[_0x2070a2(0x2fd)](_0x2070a2(0x3c3),{'className':H[_0x2070a2(0x1b0)],'children':_0x507e62})]});}return _0x299a56?_0x2ed29d():P[_0x5cf939(0x2fd)](T['Tooltip'],{'title':_0x3d9a5d['t'](_0x5cf939(0x304)),'children':_0x2ed29d()});}var xt=Object[_0x151a7c(0x300)],jt=(_0x3d785f,_0x9e2d0b,_0x2b1315,_0x3488aa)=>{const _0x5d4cc9=_0x151a7c;for(var _0x500212=_0x3488aa>0x1?void 0x0:_0x3488aa?xt(_0x9e2d0b,_0x2b1315):_0x9e2d0b,_0xd45593=_0x3d785f[_0x5d4cc9(0x3b3)]-0x1,_0x3888ca;_0xd45593>=0x0;_0xd45593--)(_0x3888ca=_0x3d785f[_0xd45593])&&(_0x500212=_0x3888ca(_0x500212)||_0x500212);return _0x500212;},X=(_0x833d25,_0x7134a8)=>(_0x17cdae,_0x192c8c)=>_0x7134a8(_0x17cdae,_0x192c8c,_0x833d25);exports[_0x151a7c(0x3b6)]=class extends a['Disposable']{constructor(_0x288161,_0x989683,_0x4cd516,_0x3886e3){const _0x38450b=_0x151a7c;super(),_(this,'_status$',new d[(_0x38450b(0x1dd))](u[_0x38450b(0x354)][_0x38450b(0x19e)])),(this['_univerInstanceService']=_0x288161,this[_0x38450b(0x388)]=_0x989683,this[_0x38450b(0x343)]=_0x4cd516,this['_uiPartsService']=_0x3886e3,this['_initStatusComponent'](),this[_0x38450b(0x3db)]());}[_0x151a7c(0x3db)](){const _0x5a1da3=_0x151a7c;this[_0x5a1da3(0x2f6)](this['_univerInstanceService'][_0x5a1da3(0x245)][_0x5a1da3(0x271)](d[_0x5a1da3(0x39d)](()=>{const _0xbc6bd4=_0x5a1da3,_0x11c253=this['_univerInstanceService'][_0xbc6bd4(0x34c)]();return _0x11c253?this[_0xbc6bd4(0x343)]['getCollabEntity$'](_0x11c253['getUnitId']()):d['of'](null);}),d[_0x5a1da3(0x39d)](_0x1c69c4=>_0x1c69c4?_0x1c69c4[_0x5a1da3(0x2a8)]:d['of'](u[_0x5a1da3(0x354)][_0x5a1da3(0x19e)])))[_0x5a1da3(0x22b)](_0xfee4a9=>{const _0x335290=_0x5a1da3;this[_0x335290(0x253)]['next'](_0xfee4a9);}));}[_0x151a7c(0x230)](){const _0x1c5465=_0x151a7c;this[_0x1c5465(0x2f6)](this[_0x1c5465(0x1e2)][_0x1c5465(0x3bf)](O['BuiltInUIPart']['HEADER_MENU'],()=>O['connectInjector'](Bt({'status$':this[_0x1c5465(0x253)][_0x1c5465(0x33c)]()}),this['_injector'])));}},exports[_0x151a7c(0x3b6)]=jt([X(0x0,a[_0x151a7c(0x1e8)]),X(0x1,a['Inject'](a[_0x151a7c(0x34d)])),X(0x2,a[_0x151a7c(0x2db)](u[_0x151a7c(0x19d)])),X(0x3,O['IUIPartsService'])],exports[_0x151a7c(0x3b6)]);function _0x448a(){const _0x40c311=['getSheetId','_document','CollaborationSocketService','get','_startSheetCollabCursor','runRefRangeMutations','_cursor','_dataLoaderService','handleDeleteRangeMoveLeft','translate(.97)','distinctUntilChanged','_id','UniverCollaborationClientUIPlugin','getParam','UniverCollaborationClientPlugin','className','Subject','_unitOnClients','fill','isEditing','debounce','sessionStatus$','rgba(255,\x20255,\x20255,\x200.01)','SUBMIT_CHANGESET_TIMEOUT','OFFLINE','triggerDblclick','CollaborationEvent','univer-online-status-title','jsxs','_session','_roomMembers$','addHandlerCallback','UNIVER_DOC','EffectRefRangId','@univerjs/network','NodePositionConvertToCursor','fromEvent','OnLineSingle','DocSkeletonManagerService','searchParams','VIEW_MAIN','setStateCache','collab-text-range-','4908792FzGNqT','m1Prime','MoveRangeCommandId','width','_scheduleHeartbeat','_injector','error','CollaborationStatusDisplay','_clearOtherTimers','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','undoState','from','Disposable','_cursorInfo$','SheetSkeletonManagerService','black','_doCreateSocket','TEXT','_updateCollabCursors','getCurrentRevOfUnit','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','rxjs','syncEditingCollabCursor','DisposableCollection','univer-flex\x20univer-items-center','WebSocketService','switchMap','ICommandService','_docTransformSelectionsService','_imageIoService','jiqing500','_entities','dispose','onlineStatusIcon','min','flatMap','SNAPSHOT_HAS_BEEN_REMOVED','LICENSE_IMPORT_SIZE_EXCEEDED','RemoveColCommandId','useObservable','_drawRectRange','getItem','_handleHover','@univerjs/docs-ui','getMember','_notificationService','HTTPService','runId','length','SOCKET_FAILED_RETRY','ONLINE','DesktopCollaborationStatusDisplayController','DataLoaderService','font','getUnitStatus$','DocCollaborationEntity','with','isActive','deepClone','SessionStatus','registerComponent','hasOwnProperty','roomMembers','removeParam','div','storage','UNIVER_SHEET','_drawTextRange','_transformUndoRedoStack','Failed','onCommandExecuted','collab-text-anchor-','getLocalCacheKey','subunit','_renderManagerService','MUTATION','substring','RegularPolygon','mapTo','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_color','ranges','shareReplay','getCellPositionByOffset','deserializeRangeWithSheet','PENDING','toRgbString','OTHER_CLIENT_EDITING','_initStatusListener','CollaborationDataLoaderController','CollaborationSessionService','@univerjs/engine-formula','getUndoRedoMutationParamsCache','trim','WebBrowserSingleActiveUnitService','_online','YUUMI_RATE_OVER_LIMIT','_configService','Error','_disabled','indexOf','round','LICENSE_EXPORT_SIZE_EXCEEDED','cursorInfo$','IDocClipboardService','_handleHeartbeatEvent','complete','OTHER_CLIENTS_EDITING','_colorIndex','univer-online-status-icon','COLORS','_onRefRangeChange','drawWith','unsubscribe','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_toggleOnline','_ensureSubject','_send','_memberService','type','stringify','call','session.connection-failed','clipPath','has','DeleteRangeMoveLeftCommandId','_getSessionTicket','selections','_revisionService','_collabCursorController','_instanceService','_docSkeleton','takeUntil','onStarting','createElement','IRenderManagerService','editingUnit','INVALID_ARGUMENT','427497JxVwRZ','executeCommand','Unknown\x20user','RefRangeService','InsertRangeMoveRightCommandId','ColorKit','search','_name','_cursors','range','getDocRanges','DocIMEInputManagerService','SetWorksheetActivateCommand','beginPath','restore','getColor','transformRemoteChangeset','symbol','Optional','getConfig','_getSheetObject','getOffsetConfig','findNodePositionByCharIndex','YUUMI_UNABLE_LOAD_URL','CollaborationController','NOT_COLLAB','_httpService','_registerRenderDependencies','_scheduleSaving','createSocket','@univerjs/sheets-ui','WebURLService','_draw','_removeClearOtherTimer','_context','generateRandomId','onRendered','handleMoveRange','_docStateChangeManagerService','loadOfflineData','APPLY_REJECT','getValue','useRef','onlineStatusTitle','react','forwardRef','_anchor','IMessageService','backgroundColor','save','_colorAssignService','sheetID','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','unshift','ILocalStorageService','_cachedData','UnitStatus','univerjs-icon\x20univerjs-icon-','useCallback','getTypeOfUnitDisposed$','2402598DIEXRf','_render','DEFAULT_WS_SESSION_TICKET_URL','SNAPSHOT_INVALID_SNAPSHOT','saveOfflineData','@univerjs/design','gold400','_init','FromArray','MessageType','addObjects','_cursorShapes','_hideTimer','LOCAL_CACHE_INTERVAL_KEY','_updateURLWithCurrentState','transformSelections','currentTheme$','InsertRowCommandId','doc.mutation.rich-text-editing','verdancy600','random','hide','0\x200\x2017\x2016','_saveTaskMap','currentSkeleton$','resize','invokeId','xlink:href','BehaviorSubject','unitId','subscribeEvent','USERS_LEAVE','_refreshCollabCursors','_uiPartsService','memberID','_scene','transformMutationsWithChangeset','size','_logService','IUniverInstanceService','entries','LocaleService','attrs','fillText','TRANSFORM_CHANGE_OBSERVABLE_TYPE','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','toStringTag','_urlService','TEXT_RANGE_LAYER_INDEX','assign','PY_RUNTIME_SCRIPT_ERROR','show','split','onPointerLeave$','ILogService','CONNECTOR_DATA_TOO_LARGE','CollaborationUIEventService','getCollabCursors$','@univerjs-pro/collaboration-client','top','APPLY_PERMISSION_DENIED','CHANGESET_REVISION_CONFILICT','prototype','getCurrent','getCurrentUnitForType','_shapes','color','COMPLETION_FINISHED','IRemoteInstanceService','selection','collaboration.closeRoom','toString','defineProperty','_transformHistoryAndStateStack','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','InsertRangeMoveDownCommandId','getCoordByCell','concat','string','subUnitId','getMemberID','YUUMI_URL_COL_OUT_OF_RANGE','clearInterval','_getSaveTimeout','_refRangeService','DOC_RANGE_TYPE','_onCursorDelete','_lastPointer','_syncEditingCollabCursorService','contains','_transformService','_initResize','requireSession','enableLocalCache','_saveCache','send','exhaustSavingTask','_initDependencies','SetTextSelectionsOperation','collabCursorState$','idSuffix','SheetsSelectionsService','_scheduleClearOtherTimer','path','fillStyle','INVITE_CODE_REQUIRED','subscribe','disposeUnit','merge','1em','_heartbeatTimer','_initStatusComponent','children','handleInsertRow','height','entityInit$','INTERNAL_ERROR','setTimeout','_config','1912412hEpUIA','@univerjs/sheets','handleIRemoveRow','_unitStatus','[CollaborationDataLoaderController]','SHEET_VIEWPORT_KEY','delete','mask','APPLY_DUPLICATED','_getAnchorBounding','FETCH_MISS','APPLY_REVISION_CONFILICT','onMouseMove','focused$','SetSelectionsOperation','getMergeData','0\x200\x2016\x2016','_collaborationUIEventService','apply','Plugin','_initEvent','none','LOGIN_FAILED','createInstance','newValue','INVALID_INVITE_CODE','CONFLICT','_status$','APPLY_NON_SEQUENTIAL_REVISION','docStateChange$','init','makeDirty','UPDATE_CURSOR','univer-online-status','setActiveRange','SetDocZoomRatioOperation','isTransformMutationsWithChangesetSuccess','current','pushState','@univerjs/ui','svg','source','_collabCursorState$','registerRenderModule','push','IURLService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','registerBeforeClose','collabStatus.fetchMiss','INVITE_CODE_ALREADY_BOUND','off-line-single','debug','updateOfflineData','_assignedColors','_themeService','startColumn','2483165kSEGmR','pipe','registerRefRange','sheetId','location','body','_docClipboardService','permission.content','NOT_FOUND','runOnServer','red300','#fff','Rect','ISocketService','clsx','getUnitId','_backgroundColor','transform','saveTaskMap','getSheetObject','IImageIoService','CollaborationUIEventId','defIds','moveTo','transformStateCache','_entityInit$','collab-rect-range-','EMAIL_HAS_BEEN_BOUND','assignAColorForMemberID','_onCursorUpdate','params','WECHAT_HAS_BEEN_BOUND','getCurrentSelections','displayName','_labelPosition','m2Prime','redoState','getStateCache','filter','Shape','defs','disableLocalCache','_handleJoinEvent','_updateSubUnitFromURLParams','INVITE_CODE_HAS_BEEN_UES','skeleton','result','_handleLeaveEvent','_docSkeletonManagerService','url(#$1','_messageService','addObject','set','find','UNDEFINED','_toggleOffline','status$','IConfigService','_updateLocalCursor','includes','cursorInfo','getOwnPropertySymbols','_setupBeforeClosingHandler','AWAITING_WITH_PENDING','setInterval','hovered','addEventListener','parse','debounceTime','name','_docSyncEditingCollabCursorService','ALREADY_EXISTS','onPointerEnter$','8116608NnggXS','imageSourceType','text','setItem','forEach','MOBILE_HAS_BEEN_BOUND','_initEntityListener','toDisposable','YUUMI_SUBSCRIPTION_NOT_FOUND','RxDisposable','labelPosition','getRelativeToViewportCoord','_localCacheService','measureText','Module','startRow','LICENSE_MAX_UNITS_EXCEEDED','off-line-single_clip0_910_343','ITransformService','_initCommandExecutedListener','values','currentColor','on-line-single','setConfig','getRangePointData','popstate','isArray','_anchorDot','icon','sessionTicket','CLOSE_ROOM','collaboration.single-unit.warning','unload','addClipboardHook','Inject','urlChange$','transformIMECache','pluginName','Vector2','application/json','isTransformMutationFailure','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','getAncestorScale','JOIN_ROOM_FAILED','_handleEvent','SheetCollabCursorShape','clearTimeout','_eventUnsubscribe','arc','_createSocketURL','data','add','getTypeOfUnitAdded$','_collabSessionService','setShapeProps','_selfUnitIDs','Tools','LOCAL_CACHE_INTERVAL','ILocalCacheService','unit','getRenderById','disposeWithMe','endColumn','UNRECOGNIZED','@univerjs/engine-render','_transformPreviousActiveRange','_removeCollabCursors','executionId','jsx','USER_NOT_INVITED_CODE','history','getOwnPropertyDescriptor','_setupSubUnitSync','CommandType','url(#off-line-single_clip0_910_343)','collab-client.tooltip.reconnect','replaceState','ENSURE_SNAPSHOT_EXECUTION','online','_localStorageService','engine','AWAITING','NO_OTHER_CLIENTS_EDITING','Rectangle','handleInsertCol','react/jsx-runtime','permission.title','then','evenodd','ThemeService','_sheetSkeletonManagerService','function','_getMergeRange','activeSheet$','_localeService','blue400','UniverInstanceType','RECT','eventID','_startDocCollabCursor','_range','textRanges','key','on-line-single_clip0_910_349','roomMembers$','event$','setAlpha','...','some','dispose$','startsWith','unitID','_hover','PERMISSION_DENIED','Warning','_textBubble','_registerDependencies','M0\x200H16V16H0z','univer-offline','rxjs/operators','getSheetBySheetId','mutations','handleInsertRangeMoveDown','52NCrNgM','uni.network.url-service','next','NodePositionConvertToRectRange','getSkeleton','_hovered','handleInsertRangeMoveRight','UNAUTHENTICATED','asObservable','map','_docTransformIMECacheService','loadUnit','21314CVEJXl','lineTo','combineLatest','_collaborationController','_univerInstanceService','DocStateChangeManagerService','tag','YUUMI_NO_CUBOID_FOR_QUESTION','column','getViewport','YUUMI_ASYNCIO_CANCELLED','href','getFocusedUnit','Injector','BrowserCollaborationSocketService','LICENSE_DISTRO_REJECTED','transformMutation','_drawAnchor','code','transformByState','CollaborationStatus','_docTransformStateCacheService','colorChannel1','_commandService'];_0x448a=function(){return _0x40c311;};return _0x448a();}function Bt(_0x40b411){const {status$:_0x2909ac}=_0x40b411;return function(){return P['jsx'](je,{'status$':_0x2909ac});};}var kt=Object[_0x151a7c(0x300)],Ht=(_0x30d12c,_0x4c3c35,_0x2117c8,_0x298084)=>{for(var _0x453fdf=_0x298084>0x1?void 0x0:_0x298084?kt(_0x4c3c35,_0x2117c8):_0x4c3c35,_0x4e078b=_0x30d12c['length']-0x1,_0x21fe98;_0x4e078b>=0x0;_0x4e078b--)(_0x21fe98=_0x30d12c[_0x4e078b])&&(_0x453fdf=_0x21fe98(_0x453fdf)||_0x453fdf);return _0x453fdf;},y=(_0xd19a24,_0x40977d)=>(_0x70a3d1,_0x5efd91)=>_0x40977d(_0x70a3d1,_0x5efd91,_0xd19a24);let z=class extends a['Disposable']{constructor(_0x5b7d3f,_0x3fa014,_0x43ba6f,_0x4161ca,_0x1c9a85,_0x54b231){const _0x4f13cb=_0x151a7c;super(),this['_beforeCloseService']=_0x5b7d3f,this[_0x4f13cb(0x2c5)]=_0x3fa014,this[_0x4f13cb(0x249)]=_0x43ba6f,this[_0x4f13cb(0x2a2)]=_0x4161ca,this[_0x4f13cb(0x3b0)]=_0x1c9a85,this[_0x4f13cb(0x317)]=_0x54b231,this[_0x4f13cb(0x2ae)](),this[_0x4f13cb(0x24c)]();}[_0x151a7c(0x2ae)](){const _0x3f725f=_0x151a7c;this[_0x3f725f(0x2f6)](this['_beforeCloseService'][_0x3f725f(0x267)](()=>{const _0x1dbb9a=_0x3f725f;if(this[_0x1dbb9a(0x2c5)][_0x1dbb9a(0x282)][_0x1dbb9a(0x1e6)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}[_0x151a7c(0x24c)](){const _0x13616d=_0x151a7c;this[_0x13616d(0x2f6)](this[_0x13616d(0x249)]['event$'][_0x13616d(0x22b)](_0x304d2a=>{const _0x5e9b57=_0x13616d;_0x304d2a['id']===u['CollaborationUIEventId'][_0x5e9b57(0x3da)]&&this['_messageService']['show']({'type':T['MessageType']['Warning'],'content':this[_0x5e9b57(0x317)]['t'](_0x5e9b57(0x2d8))}),_0x304d2a['id']===u[_0x5e9b57(0x285)][_0x5e9b57(0x2d7)]&&this[_0x5e9b57(0x2a2)][_0x5e9b57(0x1f4)]({'type':T[_0x5e9b57(0x1ca)]['Warning'],'content':this[_0x5e9b57(0x317)]['t'](_0x5e9b57(0x207))}),_0x304d2a['id']===u[_0x5e9b57(0x285)][_0x5e9b57(0x32a)]&&this[_0x5e9b57(0x3b0)][_0x5e9b57(0x1f4)]({'title':this['_localeService']['t'](_0x5e9b57(0x30f)),'content':this[_0x5e9b57(0x317)]['t'](_0x5e9b57(0x277)),'type':_0x5e9b57(0x389),'duration':0x0}),_0x304d2a['id']===u[_0x5e9b57(0x285)][_0x5e9b57(0x252)]&&this[_0x5e9b57(0x2a2)]['show']({'type':T['MessageType'][_0x5e9b57(0x3e5)],'content':this[_0x5e9b57(0x317)]['t']('collaboration.closeRoom')+'('+_0x304d2a['data']+')'}),_0x304d2a['id']===u[_0x5e9b57(0x285)][_0x5e9b57(0x2e4)]&&this[_0x5e9b57(0x2a2)][_0x5e9b57(0x1f4)]({'type':T[_0x5e9b57(0x1ca)]['Warning'],'content':this[_0x5e9b57(0x317)]['t'](_0x304d2a['data']||'')}),_0x304d2a['id']===u[_0x5e9b57(0x285)][_0x5e9b57(0x3b4)]&&this['_messageService'][_0x5e9b57(0x1f4)]({'type':T['MessageType'][_0x5e9b57(0x32b)],'content':this[_0x5e9b57(0x317)]['t']('session.will-retry')}),_0x304d2a['id']===u[_0x5e9b57(0x285)]['SOCKET_FAILED']&&this[_0x5e9b57(0x2a2)][_0x5e9b57(0x1f4)]({'type':T[_0x5e9b57(0x1ca)][_0x5e9b57(0x3e5)],'content':this['_localeService']['t'](_0x5e9b57(0x3fd))}),_0x304d2a['id']===u[_0x5e9b57(0x285)][_0x5e9b57(0x36f)]&&this['_messageService'][_0x5e9b57(0x1f4)]({'type':T['MessageType']['Error'],'content':this[_0x5e9b57(0x317)]['t']('session.collaboration-timeout')});}));}};z=Ht([y(0x0,O['IBeforeCloseService']),y(0x1,u[_0x151a7c(0x2f3)]),y(0x2,a['Inject'](u[_0x151a7c(0x1f9)])),y(0x3,O[_0x151a7c(0x1b4)]),y(0x4,O['INotificationService']),y(0x5,a['Inject'](a[_0x151a7c(0x1ea)]))],z);const Ft='collaboration-client-ui.config',Ne={},Ee=a['createIdentifier'](_0x151a7c(0x335));var Wt=Object[_0x151a7c(0x300)],Yt=(_0x5df7d5,_0x1f00f0,_0x50cc47,_0x386586)=>{const _0x127f2d=_0x151a7c;for(var _0x4f411b=_0x386586>0x1?void 0x0:_0x386586?Wt(_0x1f00f0,_0x50cc47):_0x1f00f0,_0x4aa2f3=_0x5df7d5[_0x127f2d(0x3b3)]-0x1,_0xba1a22;_0x4aa2f3>=0x0;_0x4aa2f3--)(_0xba1a22=_0x5df7d5[_0x4aa2f3])&&(_0x4f411b=_0xba1a22(_0x4f411b)||_0x4f411b);return _0x4f411b;},F=(_0x342764,_0x2ff37f)=>(_0x289618,_0x26c7cd)=>_0x2ff37f(_0x289618,_0x26c7cd,_0x342764);exports['CollaborationDataLoaderController']=class extends a[_0x151a7c(0x2c2)]{constructor(_0x5d6446,_0x3f4d88,_0x105548,_0x8cc5ea,_0x2ae25e){const _0x1de37c=_0x151a7c;super(),this['_urlService']=_0x5d6446,this[_0x1de37c(0x1e7)]=_0x3f4d88,this[_0x1de37c(0x357)]=_0x105548,this[_0x1de37c(0x35f)]=_0x8cc5ea,_0x2ae25e?_0x2ae25e==null||_0x2ae25e['whenReady']()[_0x1de37c(0x310)](()=>this[_0x1de37c(0x1c8)]()):(this[_0x1de37c(0x1e7)][_0x1de37c(0x26b)](_0x1de37c(0x23c),_0x1de37c(0x1ee)),this[_0x1de37c(0x1c8)]());}async[_0x151a7c(0x1c8)](){const _0x5e8edf=_0x151a7c,_0x153a6f=this[_0x5e8edf(0x1f0)][_0x5e8edf(0x365)](_0x5e8edf(0x2f4)),_0xa2b009=this[_0x5e8edf(0x1f0)]['getParam'](_0x5e8edf(0x3fa)),_0x5a07e0=this['_urlService'][_0x5e8edf(0x365)]('subunit');if(!_0x153a6f||!_0xa2b009){this[_0x5e8edf(0x1e7)][_0x5e8edf(0x26b)](_0x5e8edf(0x23c),_0x5e8edf(0x1b9));return;}const _0x160442=await this[_0x5e8edf(0x35f)][_0x5e8edf(0x33f)](_0x153a6f,Number(_0xa2b009),_0x5a07e0);_0x160442&&_0x160442 instanceof a['Workbook']&&this['_setupSubUnitSync'](_0x160442);}async[_0x151a7c(0x301)](_0x1c744b){const _0xb13933=_0x151a7c;await this['_updateSubUnitFromURLParams'](_0x1c744b),_0x1c744b[_0xb13933(0x316)][_0xb13933(0x271)](d[_0xb13933(0x407)](this[_0xb13933(0x326)]))[_0xb13933(0x22b)](_0x32f3f5=>{const _0x449d0e=_0xb13933;_0x32f3f5&&this[_0x449d0e(0x1cf)](_0x32f3f5);}),this[_0xb13933(0x1f0)][_0xb13933(0x2dc)][_0xb13933(0x271)](d[_0xb13933(0x407)](this[_0xb13933(0x326)]))[_0xb13933(0x22b)](()=>this['_updateSubUnitFromURLParams'](_0x1c744b));}[_0x151a7c(0x1cf)](_0x228fc5,_0x5dfcd9=!0x1){const _0x7760c5=_0x151a7c,_0x28dcc9=this['_urlService']['getParam']('subunit');_0x228fc5[_0x7760c5(0x358)]()!==_0x28dcc9&&this[_0x7760c5(0x1f0)]['setParam']('subunit',_0x228fc5[_0x7760c5(0x358)](),_0x5dfcd9);}async[_0x151a7c(0x29b)](_0x5a9086){const _0x324c4f=_0x151a7c;var _0x45f586;const _0x4060ea=this[_0x324c4f(0x1f0)][_0x324c4f(0x365)](_0x324c4f(0x3cc));if(!_0x4060ea||!_0x5a9086[_0x324c4f(0x331)](_0x4060ea)){const _0x21c581=_0x5a9086['getUnhiddenWorksheets']()[0x0],_0x19049d=_0x5a9086[_0x324c4f(0x331)](_0x21c581);if(!_0x19049d)return;this[_0x324c4f(0x1cf)](_0x19049d,!0x0),await this[_0x324c4f(0x357)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x5a9086[_0x324c4f(0x27f)](),'subUnitId':_0x21c581});return;}((_0x45f586=_0x5a9086['getActiveSheet']())==null?void 0x0:_0x45f586[_0x324c4f(0x358)]())!==_0x4060ea&&await this[_0x324c4f(0x357)][_0x324c4f(0x40e)](g[_0x324c4f(0x419)]['id'],{'unitId':_0x5a9086[_0x324c4f(0x27f)](),'subUnitId':_0x4060ea});}},exports[_0x151a7c(0x3dc)]=Yt([F(0x0,Ee),F(0x1,a['ILogService']),F(0x2,a['ICommandService']),F(0x3,a[_0x151a7c(0x2db)](u[_0x151a7c(0x3b7)])),F(0x4,a[_0x151a7c(0x197)](Ke[_0x151a7c(0x205)]))],exports['CollaborationDataLoaderController']);var Vt=Object[_0x151a7c(0x300)],Xt=(_0x580b92,_0x3a33c7,_0x543952,_0x35cb93)=>{const _0x5de058=_0x151a7c;for(var _0x1f656=_0x35cb93>0x1?void 0x0:_0x35cb93?Vt(_0x3a33c7,_0x543952):_0x3a33c7,_0x3fe6f9=_0x580b92[_0x5de058(0x3b3)]-0x1,_0x5574a2;_0x3fe6f9>=0x0;_0x3fe6f9--)(_0x5574a2=_0x580b92[_0x3fe6f9])&&(_0x1f656=_0x5574a2(_0x1f656)||_0x1f656);return _0x1f656;},le=(_0xb8019b,_0x53ae31)=>(_0x206b44,_0x584b66)=>_0x53ae31(_0x206b44,_0x584b66,_0xb8019b);let J=class{constructor(_0x3e4038,_0x4c9674,_0x2e6bc5){const _0xd2f6ab=_0x151a7c;this[_0xd2f6ab(0x388)]=_0x3e4038,this['_transformService']=_0x4c9674,this[_0xd2f6ab(0x3cd)]=_0x2e6bc5;}[_0x151a7c(0x2dd)](_0x1bd23e){const _0xe67f6a=_0x151a7c;this[_0xe67f6a(0x3c7)](_0x1bd23e),this[_0xe67f6a(0x2fa)](_0x1bd23e);}['transformRemoteChangeset'](_0x4e3802){const _0xb80fd2=_0x151a7c,{unitID:_0x4008fb}=_0x4e3802,_0x44800a=this[_0xb80fd2(0x3cd)][_0xb80fd2(0x2f5)](_0x4008fb)[_0xb80fd2(0x3bb)](b[_0xb80fd2(0x418)]),{redoCache:_0x32d893}=_0x44800a[_0xb80fd2(0x3df)]();if(_0x32d893[_0xb80fd2(0x3b3)]===0x0)return _0x4e3802;let _0x3f1da0=a[_0xb80fd2(0x2f1)]['deepClone'](_0x4e3802[_0xb80fd2(0x332)][0x0]);for(let _0x5f26f7=0x0;_0x5f26f7<_0x32d893['length'];_0x5f26f7++){const _0x73e38f={'id':_0xb80fd2(0x1d3),'params':{..._0x32d893[_0x5f26f7]}},_0x38c5db=this[_0xb80fd2(0x21b)][_0xb80fd2(0x350)](_0x3f1da0,_0x73e38f,!0x1);if(m[_0xb80fd2(0x2e1)](_0x38c5db))throw _0x38c5db['error'];_0x3f1da0=_0x38c5db[_0xb80fd2(0x384)];}return{...a[_0xb80fd2(0x2f1)][_0xb80fd2(0x3bd)](_0x4e3802),'mutations':[_0x3f1da0]};}['_transformUndoRedoStack'](_0x227f9b){const _0x3779ea=_0x151a7c,{unitID:_0x5d0ab7}=_0x227f9b,_0x182b2f=this[_0x3779ea(0x3cd)][_0x3779ea(0x2f5)](_0x5d0ab7)[_0x3779ea(0x3bb)](b[_0x3779ea(0x418)]),{undoCache:_0x224908,redoCache:_0x6abb4a}=_0x182b2f['getUndoRedoMutationParamsCache']();if(_0x224908['length']===0x0||_0x6abb4a[_0x3779ea(0x3b3)]===0x0)return;const _0x122fec=[],_0x967445=[];let _0x5b3037=a[_0x3779ea(0x2f1)][_0x3779ea(0x3bd)](_0x227f9b['mutations'][0x0]),_0x5e3223=a[_0x3779ea(0x2f1)][_0x3779ea(0x3bd)](_0x227f9b[_0x3779ea(0x332)][0x0]);for(let _0x5c812b=_0x224908[_0x3779ea(0x3b3)]-0x1;_0x5c812b>=0x0;_0x5c812b--){const _0x2a0bfc={'id':'doc.mutation.rich-text-editing','params':{..._0x224908[_0x5c812b]}},_0x533d41={'id':_0x3779ea(0x1d3),'params':{..._0x6abb4a[_0x5c812b]}},_0x36c8d=this[_0x3779ea(0x21b)]['transformMutation'](_0x5b3037,_0x2a0bfc,!0x1),_0x8569db=this[_0x3779ea(0x21b)][_0x3779ea(0x350)](_0x5e3223,_0x533d41,!0x1);if(m['isTransformMutationFailure'](_0x36c8d))throw _0x36c8d['error'];if(m[_0x3779ea(0x2e1)](_0x8569db))throw _0x8569db['error'];_0x122fec[_0x3779ea(0x1ba)](_0x36c8d[_0x3779ea(0x293)][_0x3779ea(0x28e)]),_0x967445['unshift'](_0x8569db[_0x3779ea(0x293)][_0x3779ea(0x28e)]),_0x5b3037=_0x36c8d[_0x3779ea(0x384)],_0x5e3223=_0x8569db[_0x3779ea(0x384)];}_0x182b2f['setUndoRedoMutationParamsCache']({'undoCache':_0x122fec,'redoCache':_0x967445});}[_0x151a7c(0x2fa)](_0x3b9949){const _0x63990=_0x151a7c,{unitID:_0x412bb7}=_0x3b9949,_0x4870a7=this[_0x63990(0x3cd)][_0x63990(0x2f5)](_0x412bb7)['with'](b[_0x63990(0x418)]),_0x502ddc=_0x4870a7['getActiveRange']();if(_0x502ddc==null)return;const _0x1ff83a=[{'id':_0x63990(0x1d3),'params':{'unitId':_0x3b9949['unitID'],'actions':null,'textRanges':[_0x502ddc]}}],_0x3fe9be=this[_0x63990(0x21b)][_0x63990(0x1e5)](_0x3b9949,_0x1ff83a);if(!m[_0x63990(0x25c)](_0x3fe9be))throw _0x3fe9be['error'];const _0x29bd29=_0x3fe9be['m2Prime'][0x0][_0x63990(0x28e)][_0x63990(0x31e)];Array[_0x63990(0x2d3)](_0x29bd29)&&_0x29bd29[_0x63990(0x3b3)]&&_0x4870a7[_0x63990(0x25a)](_0x29bd29[0x0]);}};J=Xt([le(0x0,a[_0x151a7c(0x2db)](a[_0x151a7c(0x34d)])),le(0x1,m['ITransformService']),le(0x2,p[_0x151a7c(0x40a)])],J);var Gt=Object[_0x151a7c(0x300)],qt=(_0x5cf5f9,_0x4f062e,_0x4fddec,_0x401017)=>{for(var _0x1713b3=_0x401017>0x1?void 0x0:_0x401017?Gt(_0x4f062e,_0x4fddec):_0x4f062e,_0x5401c9=_0x5cf5f9['length']-0x1,_0x5efb44;_0x5401c9>=0x0;_0x5401c9--)(_0x5efb44=_0x5cf5f9[_0x5401c9])&&(_0x1713b3=_0x5efb44(_0x1713b3)||_0x1713b3);return _0x1713b3;},_e=(_0x47b6a3,_0x3e05d0)=>(_0x3d142c,_0x27dc3b)=>_0x3e05d0(_0x3d142c,_0x27dc3b,_0x47b6a3);let Z=class{constructor(_0x3d54c5,_0x3293ce,_0xf33489){const _0xc3c319=_0x151a7c;this[_0xc3c319(0x388)]=_0x3d54c5,this[_0xc3c319(0x21b)]=_0x3293ce,this['_docStateChangeManagerService']=_0xf33489;}[_0x151a7c(0x288)](_0x57aa7e){this['_transformHistoryAndStateStack'](_0x57aa7e);}[_0x151a7c(0x41d)](_0x1545ec){const _0x55b5de=_0x151a7c,{unitID:_0x4bffea}=_0x1545ec,{collaboration:_0x1c7682}=this['_docStateChangeManagerService'][_0x55b5de(0x295)](_0x4bffea);if(_0x1c7682['length']===0x0)return _0x1545ec;let _0x5c59a5=a[_0x55b5de(0x2f1)]['deepClone'](_0x1545ec[_0x55b5de(0x332)][0x0]);for(let _0x4416e5=0x0;_0x4416e5<_0x1c7682['length'];_0x4416e5++){const _0x1ba36a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1c7682[_0x4416e5][_0x55b5de(0x1de)],..._0x1c7682[_0x4416e5]['redoState']}},_0x386410=this[_0x55b5de(0x21b)]['transformMutation'](_0x5c59a5,_0x1ba36a,!0x1);if(m[_0x55b5de(0x2e1)](_0x386410))throw _0x386410[_0x55b5de(0x389)];_0x5c59a5=_0x386410[_0x55b5de(0x384)];}return{...a[_0x55b5de(0x2f1)][_0x55b5de(0x3bd)](_0x1545ec),'mutations':[_0x5c59a5]};}[_0x151a7c(0x20a)](_0x5bd0e9){const _0x5b2db0=_0x151a7c,{unitID:_0x2a51c4}=_0x5bd0e9,{history:_0x80011d,collaboration:_0x312e37}=this[_0x5b2db0(0x1ab)]['getStateCache'](_0x2a51c4);if(_0x80011d['length']===0x0&&_0x312e37[_0x5b2db0(0x3b3)]===0x0)return;const _0x12989a=[],_0x142d50=[];let _0x3f2c20=a[_0x5b2db0(0x2f1)][_0x5b2db0(0x3bd)](_0x5bd0e9['mutations'][0x0]),_0x2f17e4=a[_0x5b2db0(0x2f1)]['deepClone'](_0x5bd0e9[_0x5b2db0(0x332)][0x0]);for(let _0x6cf208=_0x80011d[_0x5b2db0(0x3b3)]-0x1;_0x6cf208>=0x0;_0x6cf208--){const _0x532613={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x80011d[_0x6cf208][_0x5b2db0(0x1de)],..._0x80011d[_0x6cf208][_0x5b2db0(0x38d)]}},_0x269e5f={'id':_0x5b2db0(0x1d3),'params':{'unitId':_0x80011d[_0x6cf208][_0x5b2db0(0x1de)],..._0x80011d[_0x6cf208][_0x5b2db0(0x294)]}},_0x5801a5=this[_0x5b2db0(0x21b)]['transformMutation'](_0x3f2c20,_0x532613,!0x1),_0xc9a729=this[_0x5b2db0(0x21b)]['transformMutation'](_0x2f17e4,_0x269e5f,!0x1);if(m[_0x5b2db0(0x2e1)](_0x5801a5))throw _0x5801a5[_0x5b2db0(0x389)];if(m[_0x5b2db0(0x2e1)](_0xc9a729))throw _0xc9a729[_0x5b2db0(0x389)];_0x12989a['unshift']({..._0x80011d[_0x6cf208],'undoState':_0x5801a5[_0x5b2db0(0x293)][_0x5b2db0(0x28e)],'redoState':_0xc9a729[_0x5b2db0(0x293)][_0x5b2db0(0x28e)]}),_0x3f2c20=_0x5801a5[_0x5b2db0(0x384)],_0x2f17e4=_0xc9a729['m1Prime'];}_0x3f2c20=a[_0x5b2db0(0x2f1)][_0x5b2db0(0x3bd)](_0x5bd0e9[_0x5b2db0(0x332)][0x0]),_0x2f17e4=a[_0x5b2db0(0x2f1)]['deepClone'](_0x5bd0e9['mutations'][0x0]);for(let _0x280327=_0x312e37[_0x5b2db0(0x3b3)]-0x1;_0x280327>=0x0;_0x280327--){const _0x59f244={'id':_0x5b2db0(0x1d3),'params':{'unitId':_0x312e37[_0x280327][_0x5b2db0(0x1de)],..._0x312e37[_0x280327][_0x5b2db0(0x38d)]}},_0x2a134e={'id':_0x5b2db0(0x1d3),'params':{'unitId':_0x312e37[_0x280327]['unitId'],..._0x312e37[_0x280327][_0x5b2db0(0x294)]}},_0x1002dc=this['_transformService']['transformMutation'](_0x3f2c20,_0x59f244,!0x1),_0x4c2548=this['_transformService']['transformMutation'](_0x2f17e4,_0x2a134e,!0x1);if(m['isTransformMutationFailure'](_0x1002dc))throw _0x1002dc[_0x5b2db0(0x389)];if(m[_0x5b2db0(0x2e1)](_0x4c2548))throw _0x4c2548['error'];_0x142d50[_0x5b2db0(0x1ba)]({..._0x312e37[_0x280327],'undoState':_0x1002dc[_0x5b2db0(0x293)][_0x5b2db0(0x28e)],'redoState':_0x4c2548['m2Prime']['params']}),_0x3f2c20=_0x1002dc[_0x5b2db0(0x384)],_0x2f17e4=_0x4c2548[_0x5b2db0(0x384)];}this[_0x5b2db0(0x1ab)][_0x5b2db0(0x381)](_0x2a51c4,{'history':_0x12989a,'collaboration':_0x142d50});}};Z=qt([_e(0x0,a[_0x151a7c(0x2db)](a[_0x151a7c(0x34d)])),_e(0x1,m[_0x151a7c(0x2cb)]),_e(0x2,a[_0x151a7c(0x2db)](b[_0x151a7c(0x345)]))],Z);var Kt=Object[_0x151a7c(0x300)],zt=(_0x419203,_0x1e6892,_0x285f35,_0x518e58)=>{const _0x40ba59=_0x151a7c;for(var _0x4654c=_0x518e58>0x1?void 0x0:_0x518e58?Kt(_0x1e6892,_0x285f35):_0x1e6892,_0x5b7057=_0x419203[_0x40ba59(0x3b3)]-0x1,_0x51a60f;_0x5b7057>=0x0;_0x5b7057--)(_0x51a60f=_0x419203[_0x5b7057])&&(_0x4654c=_0x51a60f(_0x4654c)||_0x4654c);return _0x4654c;},Me=(_0xaada60,_0x1fa6e4)=>(_0xe39989,_0x46df9c)=>_0x1fa6e4(_0xe39989,_0x46df9c,_0xaada60);let Q=class{constructor(_0x2b06b4,_0x3087f2){const _0x5a29ae=_0x151a7c;this[_0x5a29ae(0x388)]=_0x2b06b4,this[_0x5a29ae(0x21b)]=_0x3087f2;}[_0x151a7c(0x1d0)](_0x24a075){const _0x2e9c18=_0x151a7c;var _0x27abe7;const _0x9c09b4=this[_0x2e9c18(0x388)][_0x2e9c18(0x35b)](Y['DocSelectionManagerService']),_0x26e986=(_0x27abe7=_0x9c09b4[_0x2e9c18(0x417)]())!=null?_0x27abe7:[];if(_0x26e986[_0x2e9c18(0x3b3)]===0x0)return;const _0x181497=_0x24a075[_0x2e9c18(0x328)],_0x377f74=[{'id':_0x2e9c18(0x1d3),'params':{'unitId':_0x181497,'actions':null,'textRanges':_0x26e986}}],_0x365a12=this['_transformService'][_0x2e9c18(0x1e5)](_0x24a075,_0x377f74);if(!m[_0x2e9c18(0x25c)](_0x365a12))throw _0x365a12['error'];const _0x54bb8d=_0x365a12[_0x2e9c18(0x293)][0x0][_0x2e9c18(0x28e)][_0x2e9c18(0x31e)];Array[_0x2e9c18(0x2d3)](_0x54bb8d)&&_0x54bb8d['length']&&_0x9c09b4['replaceDocRanges'](_0x54bb8d,{'unitId':_0x181497,'subUnitId':_0x181497},!0x1);}};Q=zt([Me(0x0,a[_0x151a7c(0x2db)](a[_0x151a7c(0x34d)])),Me(0x1,m['ITransformService'])],Q);var Jt=Object[_0x151a7c(0x300)],Zt=(_0x16384d,_0x53780f,_0x4ce0fa,_0x4aea6d)=>{for(var _0x1f09ba=_0x4aea6d>0x1?void 0x0:_0x4aea6d?Jt(_0x53780f,_0x4ce0fa):_0x53780f,_0x352a05=_0x16384d['length']-0x1,_0x38d778;_0x352a05>=0x0;_0x352a05--)(_0x38d778=_0x16384d[_0x352a05])&&(_0x1f09ba=_0x38d778(_0x1f09ba)||_0x1f09ba);return _0x1f09ba;},N=(_0x38d15c,_0x3de968)=>(_0xbed3ef,_0xb400dc)=>_0x3de968(_0xbed3ef,_0xb400dc,_0x38d15c);let ee=class extends a['Disposable']{constructor(_0x57b377,_0x1a98c0,_0x35c8c5,_0x23d844,_0x1b9e6e,_0x39b189,_0x4b89d8,_0x338775){const _0x34a402=_0x151a7c;super(),_(this,'_status$',new d[(_0x34a402(0x1dd))](u[_0x34a402(0x354)]['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x57b377,this[_0x34a402(0x343)]=_0x1a98c0,this[_0x34a402(0x33e)]=_0x35c8c5,this[_0x34a402(0x355)]=_0x23d844,this[_0x34a402(0x39f)]=_0x1b9e6e,this[_0x34a402(0x2b6)]=_0x39b189,this[_0x34a402(0x2a2)]=_0x4b89d8,this[_0x34a402(0x317)]=_0x338775,this[_0x34a402(0x2bf)]());}[_0x151a7c(0x2bf)](){const _0x13ae5b=_0x151a7c;this['disposeWithMe'](this[_0x13ae5b(0x343)][_0x13ae5b(0x234)][_0x13ae5b(0x22b)](_0x419cd1=>{const _0x278b14=_0x13ae5b,_0x1f6c33=this[_0x278b14(0x1ab)][_0x278b14(0x255)][_0x278b14(0x22b)](_0x46e136=>{const _0x43fbd5=_0x278b14;if(_0x46e136==null)return;const {unitId:_0x1d1cc0,redoState:_0x399936,commandId:_0x1e8d19}=_0x46e136;if(_0x1d1cc0!==_0x419cd1[_0x43fbd5(0x328)])return;const _0xc15b03={'id':_0x1e8d19,'type':a[_0x43fbd5(0x302)][_0x43fbd5(0x3ce)],'params':{'unitId':_0x1d1cc0,'actions':_0x399936['actions'],'textRanges':null}};_0x419cd1['onLocalMutation'](_0xc15b03);});if(_0x419cd1[_0x278b14(0x2f6)](_0x1f6c33),_0x419cd1 instanceof u[_0x278b14(0x3ba)]){const _0x245b33={'onTransformIME':_0xf9c3f9=>this[_0x278b14(0x33e)][_0x278b14(0x2dd)](_0xf9c3f9),'onTransformState':_0x3aa3a4=>this[_0x278b14(0x355)]['transformStateCache'](_0x3aa3a4),'onTransformSelections':_0x14456c=>this[_0x278b14(0x39f)]['transformSelections'](_0x14456c),'onSyncEditingCollabCursor':_0x3a84a1=>this[_0x278b14(0x2b6)]['syncEditingCollabCursor'](_0x3a84a1),'onTransformRemoteChangesetByIMECache':_0x3fdefc=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x3fdefc),'onTransformRemoteChangesetByStateCache':_0x182954=>this[_0x278b14(0x355)][_0x278b14(0x41d)](_0x182954)};_0x419cd1[_0x278b14(0x377)](_0x245b33);}}));}};ee=Zt([N(0x0,a[_0x151a7c(0x2db)](b['DocStateChangeManagerService'])),N(0x1,a[_0x151a7c(0x2db)](u[_0x151a7c(0x19d)])),N(0x2,a[_0x151a7c(0x2db)](J)),N(0x3,a[_0x151a7c(0x2db)](Z)),N(0x4,a['Inject'](Q)),N(0x5,a[_0x151a7c(0x2db)](pe)),N(0x6,O[_0x151a7c(0x1b4)]),N(0x7,a['Inject'](a[_0x151a7c(0x1ea)]))],ee);var Qt=Object['getOwnPropertyDescriptor'],es=(_0x1cc134,_0x198360,_0x206ad2,_0x181e58)=>{const _0x27aa71=_0x151a7c;for(var _0x2d87e0=_0x181e58>0x1?void 0x0:_0x181e58?Qt(_0x198360,_0x206ad2):_0x198360,_0x325cc0=_0x1cc134[_0x27aa71(0x3b3)]-0x1,_0x5eed21;_0x325cc0>=0x0;_0x325cc0--)(_0x5eed21=_0x1cc134[_0x325cc0])&&(_0x2d87e0=_0x5eed21(_0x2d87e0)||_0x2d87e0);return _0x2d87e0;},he=(_0x10e649,_0x2c5cc2)=>(_0xa6b55f,_0x34ce69)=>_0x2c5cc2(_0xa6b55f,_0x34ce69,_0x10e649);let me=class extends a[_0x151a7c(0x38f)]{constructor(_0x312a6f,_0x585fd7,_0x3d2563){const _0x213b1b=_0x151a7c;super(),_(this,'_cachedData',new Map()),_(this,_0x213b1b(0x1d8),new Map()),_(this,_0x213b1b(0x3e6),!0x1),(this['_configService']=_0x312a6f,this[_0x213b1b(0x308)]=_0x585fd7,this[_0x213b1b(0x403)]=_0x3d2563);}[_0x151a7c(0x299)](){const _0x2ad8db=_0x151a7c;this[_0x2ad8db(0x3e6)]=!0x0;}[_0x151a7c(0x21e)](){this['_disabled']=!0x1;}get[_0x151a7c(0x282)](){const _0x32feab=_0x151a7c;return this[_0x32feab(0x1d8)];}['dispose'](){this['exhaustSavingTask']()['then'](()=>super['dispose']());}async[_0x151a7c(0x1ac)](_0x220884){const _0x46b7af=_0x151a7c;return this[_0x46b7af(0x3e6)]?null:this[_0x46b7af(0x308)][_0x46b7af(0x3ac)](u[_0x46b7af(0x3cb)](_0x220884));}async[_0x151a7c(0x1c5)](_0x1e0f07,_0x178c58){const _0x2bdf96=_0x151a7c;return!!this[_0x2bdf96(0x308)][_0x2bdf96(0x2bc)](_0x1e0f07,_0x178c58);}[_0x151a7c(0x26c)](_0x9b0a2c,_0x3555cc,_0x1e3679,_0x3b2603){const _0x17f236=_0x151a7c,_0x2e19a9=this[_0x17f236(0x403)][_0x17f236(0x396)](_0x9b0a2c);this['_cachedData'][_0x17f236(0x2a4)](_0x9b0a2c,{'unitID':_0x9b0a2c,'type':_0x3555cc,'awaitingChangeset':_0x1e3679,'mutations':_0x3b2603,'rev':_0x2e19a9}),this['_saveTaskMap']['has'](_0x9b0a2c)||this[_0x17f236(0x1a1)](_0x9b0a2c);}[_0x151a7c(0x1a1)](_0x217c3d){const _0x1f5727=_0x151a7c,_0x4c2877=this['_getSaveTimeout']();_0x4c2877===0x0?this[_0x1f5727(0x21f)](_0x217c3d):this[_0x1f5727(0x1d8)][_0x1f5727(0x2a4)](_0x217c3d,setTimeout(()=>this['_saveCache'](_0x217c3d),_0x4c2877));}[_0x151a7c(0x214)](){const _0xae3a10=_0x151a7c;var _0x40e642;return(_0x40e642=this['_configService'][_0xae3a10(0x198)](u[_0xae3a10(0x1ce)]))!=null?_0x40e642:u[_0xae3a10(0x2f2)];}[_0x151a7c(0x21f)](_0x5c0dd6){const _0x2fb083=_0x151a7c,_0x5e0dca=this[_0x2fb083(0x1d8)][_0x2fb083(0x35b)](_0x5c0dd6);return _0x5e0dca!==void 0x0&&window[_0x2fb083(0x2e7)](_0x5e0dca),this[_0x2fb083(0x308)][_0x2fb083(0x2bc)](u[_0x2fb083(0x3cb)](_0x5c0dd6),this[_0x2fb083(0x1bc)]['get'](_0x5c0dd6))['then'](()=>this['_saveTaskMap'][_0x2fb083(0x23e)](_0x5c0dd6));}async[_0x151a7c(0x221)](){const _0x551a72=_0x151a7c,_0x370684=[];this[_0x551a72(0x1d8)][_0x551a72(0x2bd)]((_0x12b8b1,_0x5399cd)=>{const _0x330ad0=_0x551a72;window[_0x330ad0(0x2e7)](_0x12b8b1),_0x370684[_0x330ad0(0x264)](this[_0x330ad0(0x21f)](_0x5399cd)[_0x330ad0(0x310)](()=>{this['_saveTaskMap']['delete'](_0x5399cd);}));}),await Promise['all'](_0x370684);}};me=es([he(0x0,a[_0x151a7c(0x2a9)]),he(0x1,a[_0x151a7c(0x1bb)]),he(0x2,a['Inject'](m['RevisionService']))],me);class Be extends a['RxDisposable']{constructor(){const _0x291ab2=_0x151a7c;super(),_(this,'urlChange$'),this[_0x291ab2(0x2dc)]=d[_0x291ab2(0x37c)](window,_0x291ab2(0x2d2))[_0x291ab2(0x271)](d[_0x291ab2(0x407)](this['dispose$']),d[_0x291ab2(0x3d5)](0x1),d[_0x291ab2(0x3d1)](void 0x0));}['setParam'](_0x52be02,_0x4c8d43,_0x1f4fbc=!0x1){const _0x5d381b=_0x151a7c,_0xf56e1=new URL(window[_0x5d381b(0x274)][_0x5d381b(0x34b)]);_0xf56e1[_0x5d381b(0x37f)][_0x5d381b(0x2a4)](_0x52be02,_0x4c8d43),_0x1f4fbc?window[_0x5d381b(0x2ff)][_0x5d381b(0x305)]('','',_0xf56e1['toString']()):window[_0x5d381b(0x2ff)][_0x5d381b(0x25e)]('','',_0xf56e1[_0x5d381b(0x208)]());}[_0x151a7c(0x3c2)](_0x49b301,_0x3111fd=!0x1){const _0x235b60=_0x151a7c,_0x278253=new URL(window[_0x235b60(0x274)]['href']);_0x278253[_0x235b60(0x37f)][_0x235b60(0x23e)](_0x49b301),_0x3111fd?window[_0x235b60(0x2ff)][_0x235b60(0x305)]('','',_0x278253[_0x235b60(0x208)]()):window[_0x235b60(0x2ff)][_0x235b60(0x25e)]('','',_0x278253[_0x235b60(0x208)]());}['getParam'](_0xa2f79e){const _0x4cb578=_0x151a7c;var _0x34af2c;return(_0x34af2c=new URL(window[_0x4cb578(0x274)][_0x4cb578(0x34b)])[_0x4cb578(0x37f)][_0x4cb578(0x35b)](_0xa2f79e))!=null?_0x34af2c:void 0x0;}}var ts=Object[_0x151a7c(0x209)],ss=Object['getOwnPropertyDescriptor'],ns=(_0x49a86e,_0x4a6887,_0x449435)=>_0x4a6887 in _0x49a86e?ts(_0x49a86e,_0x4a6887,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x449435}):_0x49a86e[_0x4a6887]=_0x449435,is=(_0x288c90,_0x753819,_0xdc80d,_0x554c29)=>{const _0x38c93d=_0x151a7c;for(var _0x1df130=_0x554c29>0x1?void 0x0:_0x554c29?ss(_0x753819,_0xdc80d):_0x753819,_0x283e55=_0x288c90[_0x38c93d(0x3b3)]-0x1,_0x3395d7;_0x283e55>=0x0;_0x283e55--)(_0x3395d7=_0x288c90[_0x283e55])&&(_0x1df130=_0x3395d7(_0x1df130)||_0x1df130);return _0x1df130;},ue=(_0x1568f5,_0x544d61)=>(_0x3cada9,_0x1c8e1f)=>_0x544d61(_0x3cada9,_0x1c8e1f,_0x1568f5),rs=(_0x36d0a3,_0x245148,_0x172e2a)=>ns(_0x36d0a3,_0x245148+'',_0x172e2a);const os=_0x151a7c(0x2e2);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x151a7c(0x24b)]{constructor(_0xdb98c2=Ne,_0x3b0b9e,_0x39dcda,_0x1a69fa){const _0xb2e978=_0x151a7c;super(),this[_0xb2e978(0x237)]=_0xdb98c2,this[_0xb2e978(0x3cd)]=_0x3b0b9e,this[_0xb2e978(0x388)]=_0x39dcda,this[_0xb2e978(0x3e4)]=_0x1a69fa;const {..._0x17f159}=a[_0xb2e978(0x22d)]({},Ne,this[_0xb2e978(0x237)]);this[_0xb2e978(0x3e4)][_0xb2e978(0x2d0)](Ft,_0x17f159);}[_0x151a7c(0x408)](){const _0x2e1ab9=_0x151a7c;this[_0x2e1ab9(0x32d)](),this[_0x2e1ab9(0x222)]();}[_0x151a7c(0x1a9)](){const _0x10bfac=_0x151a7c;this[_0x10bfac(0x1a0)]();}[_0x151a7c(0x32d)](){const _0x2b0740=_0x151a7c;var _0x2252bc;const _0x1492a9=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q[_0x2b0740(0x27d)],{'useClass':q[_0x2b0740(0x39c)]}],[u['ILocalCacheService'],{'useClass':me}],[exports[_0x2b0740(0x3b6)]],[ee],[z],[x],[fe],[exports['CollaborationDataLoaderController']]];a['registerDependencies'](this[_0x2b0740(0x388)],a['mergeOverrideWithDependencies'](_0x1492a9,(_0x2252bc=this[_0x2b0740(0x237)])==null?void 0x0:_0x2252bc['override']));}[_0x151a7c(0x1a0)](){const _0x21be4c=_0x151a7c;this[_0x21be4c(0x2f6)](this[_0x21be4c(0x3cd)][_0x21be4c(0x263)](a['UniverInstanceType'][_0x21be4c(0x378)],[ve])),this[_0x21be4c(0x2f6)](this[_0x21be4c(0x3cd)][_0x21be4c(0x263)](a[_0x21be4c(0x319)]['UNIVER_SHEET'],[ge]));}[_0x151a7c(0x222)](){const _0x51a896=_0x151a7c;a['touchDependencies'](this[_0x51a896(0x388)],[[x],[exports[_0x51a896(0x3b6)]],[ee],[z],[exports['CollaborationDataLoaderController']]]);}},rs(exports['UniverCollaborationClientUIPlugin'],_0x151a7c(0x2de),os),exports[_0x151a7c(0x364)]=is([a['DependentOn'](u[_0x151a7c(0x366)]),ue(0x1,p[_0x151a7c(0x40a)]),ue(0x2,a[_0x151a7c(0x2db)](a[_0x151a7c(0x34d)])),ue(0x3,a['IConfigService'])],exports[_0x151a7c(0x364)]);var as=Object[_0x151a7c(0x300)],cs=(_0x1346b9,_0x42ec4f,_0x14570a,_0x588cff)=>{for(var _0x581957=_0x588cff>0x1?void 0x0:_0x588cff?as(_0x42ec4f,_0x14570a):_0x42ec4f,_0x3b1bb1=_0x1346b9['length']-0x1,_0x27b504;_0x3b1bb1>=0x0;_0x3b1bb1--)(_0x27b504=_0x1346b9[_0x3b1bb1])&&(_0x581957=_0x27b504(_0x581957)||_0x581957);return _0x581957;},W=(_0x3ac5de,_0x1f6829)=>(_0x57141c,_0x5efadf)=>_0x1f6829(_0x57141c,_0x5efadf,_0x3ac5de);exports[_0x151a7c(0x34e)]=class extends u[_0x151a7c(0x35a)]{constructor(_0x1d7023,_0x545671,_0x59140f,_0x1560e9,_0x338dd5){super(_0x1d7023,_0x545671,_0x59140f,_0x1560e9,_0x338dd5);}async[_0x151a7c(0x1a2)](_0x507eb3){const _0x3e9992=_0x151a7c,_0x3faaf2=await this[_0x3e9992(0x401)](),_0xc8d0c0=this[_0x3e9992(0x2ea)](_0x507eb3,_0x3faaf2);return this[_0x3e9992(0x393)](_0xc8d0c0);}[_0x151a7c(0x2ea)](_0x4c8ff8,_0x41cddb){const _0x1708f4=_0x151a7c,_0x4c8586=typeof window>'u'?new URL(_0x4c8ff8):new URL(_0x4c8ff8,window[_0x1708f4(0x274)]['origin']);_0x4c8586['searchParams'][_0x1708f4(0x2a4)](_0x1708f4(0x2d6),_0x41cddb);const _0x570b48=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1708f4(0x274)][_0x1708f4(0x413)]);return _0x570b48['get']('runId')&&_0x4c8586['searchParams'][_0x1708f4(0x2a4)](_0x1708f4(0x3b2),_0x570b48['get']('runId')),_0x4c8586[_0x1708f4(0x208)]();}async['_getSessionTicket'](){const _0x274cd6=_0x151a7c;var _0x338ccf,_0x51b43d,_0x1ec05e;const _0x361e3e=this['_configService'][_0x274cd6(0x198)](u[_0x274cd6(0x38c)]),_0x209f84=(_0x338ccf=_0x361e3e==null?void 0x0:_0x361e3e['wsSessionTicketUrl'])!=null?_0x338ccf:u[_0x274cd6(0x1c3)];return(_0x1ec05e=(_0x51b43d=(await this[_0x274cd6(0x19f)][_0x274cd6(0x35b)](_0x209f84,{'headers':{'Content-Type':_0x274cd6(0x2e0)}}))[_0x274cd6(0x275)])==null?void 0x0:_0x51b43d['ticket'])!=null?_0x1ec05e:'';}},exports[_0x151a7c(0x34e)]=cs([W(0x0,a[_0x151a7c(0x2db)](a[_0x151a7c(0x34d)])),W(0x1,a[_0x151a7c(0x2db)](q['HTTPService'])),W(0x2,a[_0x151a7c(0x2a9)]),W(0x3,a[_0x151a7c(0x1f7)]),W(0x4,m['ISnapshotServerService'])],exports[_0x151a7c(0x34e)]);const Le=0x7530,Pe='ACTIVE_UNIT_EVENT_CHANNEL';class ls extends a['Disposable']{constructor(){const _0x1bf179=_0x151a7c;super(),_(this,_0x1bf179(0x363),a[_0x1bf179(0x1a8)]()),_(this,_0x1bf179(0x2f0),new Set()),_(this,_0x1bf179(0x369),new Map()),_(this,_0x1bf179(0x22f),null),_(this,_0x1bf179(0x38b),new Map()),_(this,_0x1bf179(0x23b),new Map()),this['_init']();}[_0x151a7c(0x3a3)](){const _0x53e07a=_0x151a7c;super[_0x53e07a(0x3a3)](),this[_0x53e07a(0x38b)][_0x53e07a(0x2bd)]((_0x4d43d7,_0x3ae137)=>this[_0x53e07a(0x1a6)](_0x3ae137)),this[_0x53e07a(0x22f)]&&window[_0x53e07a(0x213)](this[_0x53e07a(0x22f)]);}[_0x151a7c(0x3b9)](_0x1495ec){const _0x39c588=_0x151a7c;return this[_0x39c588(0x3f7)](_0x1495ec)[_0x39c588(0x271)](d[_0x39c588(0x362)]());}[_0x151a7c(0x40b)](_0x2e1e89){const _0x3bdec9=_0x151a7c;this[_0x3bdec9(0x2f0)][_0x3bdec9(0x1e6)]===0x0&&this[_0x3bdec9(0x387)](),this['_selfUnitIDs'][_0x3bdec9(0x2ec)](_0x2e1e89),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x2e1e89],'isForwarded':!0x1});}[_0x151a7c(0x22c)](_0x59ff09){const _0x1f1bd6=_0x151a7c;this['_selfUnitIDs'][_0x1f1bd6(0x23e)](_0x59ff09),this[_0x1f1bd6(0x2f0)][_0x1f1bd6(0x1e6)]===0x0&&this[_0x1f1bd6(0x22f)]&&window['clearInterval'](this[_0x1f1bd6(0x22f)]);}[_0x151a7c(0x1c8)](){const _0x649067=_0x151a7c;this[_0x649067(0x2f6)](a[_0x649067(0x2c0)](d[_0x649067(0x37c)](window,_0x649067(0x3c4))[_0x649067(0x22b)](_0x1222f0=>{const _0x4c4e55=_0x649067;if(_0x1222f0[_0x4c4e55(0x31f)]!==Pe||!_0x1222f0[_0x4c4e55(0x250)])return;const _0x40a0cb=JSON[_0x4c4e55(0x2b3)](_0x1222f0[_0x4c4e55(0x250)]);this[_0x4c4e55(0x2e5)](_0x40a0cb);}))),window[_0x649067(0x2b2)](_0x649067(0x2d9),()=>this[_0x649067(0x3f8)]({'type':0x1,'memberID':this[_0x649067(0x363)],'unitIDs':Array[_0x649067(0x38e)](this[_0x649067(0x2f0)])}));}['_handleEvent'](_0x5e44e2){const _0x4f75eb=_0x151a7c;switch(_0x5e44e2[_0x4f75eb(0x3fa)]){case 0x0:this[_0x4f75eb(0x29a)](_0x5e44e2);break;case 0x1:this[_0x4f75eb(0x29f)](_0x5e44e2);break;case 0x2:this[_0x4f75eb(0x3ec)](_0x5e44e2);break;}}[_0x151a7c(0x29a)](_0x2e632e){const _0x1358a7=_0x151a7c,{unitIDs:_0x14276d,memberID:_0x5df078,isForwarded:_0x4b787d}=_0x2e632e;_0x14276d[_0x1358a7(0x2bd)](_0x418044=>{const _0x3c52a2=_0x1358a7;if(!_0x4b787d&&this['_unitOnClients'][_0x3c52a2(0x3ff)](_0x418044)&&this[_0x3c52a2(0x3f7)](_0x418044)[_0x3c52a2(0x336)](u[_0x3c52a2(0x1bd)][_0x3c52a2(0x3ee)]),!this[_0x3c52a2(0x369)][_0x3c52a2(0x3ff)](_0x418044)||!this[_0x3c52a2(0x369)][_0x3c52a2(0x35b)](_0x418044)['has'](_0x5df078)){const _0x287241=this[_0x3c52a2(0x369)]['get'](_0x418044)||new Set();_0x287241['add'](_0x5df078),this[_0x3c52a2(0x369)][_0x3c52a2(0x2a4)](_0x418044,_0x287241),this[_0x3c52a2(0x227)](_0x5df078);}}),_0x4b787d||this['_send']({'type':0x0,'memberID':this[_0x1358a7(0x363)],'unitIDs':[...this[_0x1358a7(0x2f0)]],'isForwarded':!0x0});}[_0x151a7c(0x227)](_0x3bf4de){const _0x5e6196=_0x151a7c;this['_removeClearOtherTimer'](_0x3bf4de);const _0x38feac=window[_0x5e6196(0x236)](()=>{const _0x197f95=_0x5e6196;this[_0x197f95(0x369)][_0x197f95(0x2bd)](_0x250999=>{const _0x49c0fd=_0x197f95;_0x250999[_0x49c0fd(0x23e)](_0x3bf4de);});},Le*0x2);this[_0x5e6196(0x38b)][_0x5e6196(0x2a4)](_0x3bf4de,_0x38feac);}[_0x151a7c(0x1a6)](_0x886221){const _0x5b2103=_0x151a7c;if(this[_0x5b2103(0x38b)][_0x5b2103(0x3ff)](_0x886221)){const _0x4dbf06=this[_0x5b2103(0x38b)][_0x5b2103(0x35b)](_0x886221);_0x4dbf06&&window[_0x5b2103(0x2e7)](_0x4dbf06),this['_clearOtherTimers'][_0x5b2103(0x2a4)](_0x886221,null);}}[_0x151a7c(0x29f)](_0x322d1e){const _0x1f4a68=_0x151a7c,{memberID:_0x1a07cd,unitIDs:_0x231a3a}=_0x322d1e;_0x231a3a['forEach'](_0x1a7e86=>{const _0x26d8d5=_0x2459;var _0xac7b09;const _0x39401a=this['_unitOnClients'][_0x26d8d5(0x35b)](_0x1a7e86);_0x39401a&&(_0x39401a[_0x26d8d5(0x23e)](_0x1a07cd),(_0xac7b09=this[_0x26d8d5(0x3f7)](_0x1a7e86))==null||_0xac7b09['next'](_0x39401a[_0x26d8d5(0x1e6)]===0x0?u['UnitStatus'][_0x26d8d5(0x30b)]:u[_0x26d8d5(0x1bd)]['OTHER_CLIENTS_EDITING']));}),this[_0x1f4a68(0x1a6)](_0x1a07cd);}[_0x151a7c(0x3ec)](_0x18ce84){const _0x491ce3=_0x151a7c;this['_scheduleClearOtherTimer'](_0x18ce84[_0x491ce3(0x1e3)]);}[_0x151a7c(0x3f8)](_0x29415e){const _0x2f2572=_0x151a7c;localStorage[_0x2f2572(0x2bc)](Pe,JSON[_0x2f2572(0x3fb)](_0x29415e));}[_0x151a7c(0x387)](){const _0x2acaf0=_0x151a7c;this[_0x2acaf0(0x22f)]=window[_0x2acaf0(0x2b0)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},Le);}[_0x151a7c(0x3f7)](_0x5579c4){const _0x1d74a2=_0x151a7c;return this[_0x1d74a2(0x23b)][_0x1d74a2(0x3ff)](_0x5579c4)||this['_unitStatus']['set'](_0x5579c4,new d[(_0x1d74a2(0x1dd))](u['UnitStatus'][_0x1d74a2(0x30b)])),this[_0x1d74a2(0x23b)]['get'](_0x5579c4);}}var ke=(_0x32ffd0=>(_0x32ffd0[_0x32ffd0[_0x151a7c(0x2a6)]=0x0]='UNDEFINED',_0x32ffd0[_0x32ffd0['OK']=0x1]='OK',_0x32ffd0[_0x32ffd0[_0x151a7c(0x235)]=0x2]=_0x151a7c(0x235),_0x32ffd0[_0x32ffd0[_0x151a7c(0x32a)]=0x3]=_0x151a7c(0x32a),_0x32ffd0[_0x32ffd0['NOT_FOUND']=0x4]=_0x151a7c(0x278),_0x32ffd0[_0x32ffd0[_0x151a7c(0x33b)]=0x5]=_0x151a7c(0x33b),_0x32ffd0[_0x32ffd0[_0x151a7c(0x2b7)]=0x6]='ALREADY_EXISTS',_0x32ffd0[_0x32ffd0[_0x151a7c(0x40c)]=0x7]=_0x151a7c(0x40c),_0x32ffd0[_0x32ffd0['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x32ffd0[_0x32ffd0[_0x151a7c(0x204)]=0x9]=_0x151a7c(0x204),_0x32ffd0[_0x32ffd0['LOGIN_FAILED']=0xa]=_0x151a7c(0x24e),_0x32ffd0[_0x32ffd0[_0x151a7c(0x1fe)]=0x1389]=_0x151a7c(0x1fe),_0x32ffd0[_0x32ffd0['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x151a7c(0x1c4),_0x32ffd0[_0x32ffd0['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x151a7c(0x3a7),_0x32ffd0[_0x32ffd0[_0x151a7c(0x306)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x32ffd0[_0x32ffd0[_0x151a7c(0x1ad)]=0x1b59]=_0x151a7c(0x1ad),_0x32ffd0[_0x32ffd0[_0x151a7c(0x254)]=0x1b5a]=_0x151a7c(0x254),_0x32ffd0[_0x32ffd0[_0x151a7c(0x243)]=0x1b5b]=_0x151a7c(0x243),_0x32ffd0[_0x32ffd0[_0x151a7c(0x1fd)]=0x1b5c]=_0x151a7c(0x1fd),_0x32ffd0[_0x32ffd0[_0x151a7c(0x240)]=0x1b5d]=_0x151a7c(0x240),_0x32ffd0[_0x32ffd0[_0x151a7c(0x1f8)]=0x1f41]=_0x151a7c(0x1f8),_0x32ffd0[_0x32ffd0['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x151a7c(0x2c9),_0x32ffd0[_0x32ffd0[_0x151a7c(0x3d2)]=0x232a]=_0x151a7c(0x3d2),_0x32ffd0[_0x32ffd0[_0x151a7c(0x3a8)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x32ffd0[_0x32ffd0[_0x151a7c(0x3e9)]=0x232c]=_0x151a7c(0x3e9),_0x32ffd0[_0x32ffd0[_0x151a7c(0x34f)]=0x232d]=_0x151a7c(0x34f),_0x32ffd0[_0x32ffd0[_0x151a7c(0x19c)]=0x2711]=_0x151a7c(0x19c),_0x32ffd0[_0x32ffd0['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x151a7c(0x212),_0x32ffd0[_0x32ffd0[_0x151a7c(0x3e3)]=0x2713]=_0x151a7c(0x3e3),_0x32ffd0[_0x32ffd0['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x151a7c(0x2c1),_0x32ffd0[_0x32ffd0[_0x151a7c(0x347)]=0x271a]=_0x151a7c(0x347),_0x32ffd0[_0x32ffd0[_0x151a7c(0x34a)]=0x271b]=_0x151a7c(0x34a),_0x32ffd0[_0x32ffd0[_0x151a7c(0x1f3)]=0x2af9]=_0x151a7c(0x1f3),_0x32ffd0[_0x32ffd0[_0x151a7c(0x29c)]=0x2ee1]=_0x151a7c(0x29c),_0x32ffd0[_0x32ffd0[_0x151a7c(0x251)]=0x2ee2]=_0x151a7c(0x251),_0x32ffd0[_0x32ffd0['INVITE_CODE_REQUIRED']=0x2ee3]=_0x151a7c(0x22a),_0x32ffd0[_0x32ffd0[_0x151a7c(0x2fe)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x32ffd0[_0x32ffd0['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x151a7c(0x269),_0x32ffd0[_0x32ffd0[_0x151a7c(0x28f)]=0x32c9]=_0x151a7c(0x28f),_0x32ffd0[_0x32ffd0['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x151a7c(0x2be),_0x32ffd0[_0x32ffd0[_0x151a7c(0x28b)]=0x32cb]=_0x151a7c(0x28b),_0x32ffd0[_0x32ffd0[_0x151a7c(0x2f8)]=-0x1]='UNRECOGNIZED',_0x32ffd0))(ke||{}),_s=Object[_0x151a7c(0x300)],hs=(_0x39d4a0,_0xb4e74d,_0x4f0400,_0x44450b)=>{const _0x413403=_0x151a7c;for(var _0x13bfd6=_0x44450b>0x1?void 0x0:_0x44450b?_s(_0xb4e74d,_0x4f0400):_0xb4e74d,_0x17a785=_0x39d4a0[_0x413403(0x3b3)]-0x1,_0x4cb13f;_0x17a785>=0x0;_0x17a785--)(_0x4cb13f=_0x39d4a0[_0x17a785])&&(_0x13bfd6=_0x4cb13f(_0x13bfd6)||_0x13bfd6);return _0x13bfd6;},de=(_0x298000,_0x33b490)=>(_0x16b777,_0x44109d)=>_0x33b490(_0x16b777,_0x44109d,_0x298000);exports['RemoteUniscriptService']=class extends a['Disposable']{constructor(_0x3edd54,_0x1a7fec,_0x18d04d){const _0xfb0e03=_0x151a7c;super(),this[_0xfb0e03(0x405)]=_0x3edd54,this[_0xfb0e03(0x19f)]=_0x1a7fec,this['_configService']=_0x18d04d;}async[_0x151a7c(0x279)](_0x187e95,_0x1b37b5,_0x25df05,..._0xc5cfac){const _0x3bb337=_0x151a7c;var _0x2361cf,_0x1936a0,_0x29c2a6,_0x36eb7c;const _0x437802=this[_0x3bb337(0x405)][_0x3bb337(0x34c)]();if(!_0x437802)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x596703=((_0x2361cf=this[_0x3bb337(0x3e4)]['getConfig'](u[_0x3bb337(0x266)]))!=null?_0x2361cf:u[_0x3bb337(0x20b)])+'/'+_0x187e95+'/run/'+_0x1b37b5,_0x1974d0=new URL(window[_0x3bb337(0x274)][_0x3bb337(0x34b)]),_0x1f6b43={'scriptId':_0x187e95,'runId':(_0x1936a0=_0x1974d0['searchParams'][_0x3bb337(0x35b)](_0x3bb337(0x3b2)))!=null?_0x1936a0:'','function':_0x1b37b5,'unitId':_0x437802[_0x3bb337(0x27f)](),'argsOfFunction':JSON[_0x3bb337(0x3fb)](_0xc5cfac),'invokeId':(_0x29c2a6=_0x25df05[_0x3bb337(0x1db)])!=null?_0x29c2a6:'','executionId':(_0x36eb7c=_0x25df05[_0x3bb337(0x2fc)])!=null?_0x36eb7c:''};try{const _0xd4da7=await this['_httpService']['post'](_0x596703,{'body':_0x1f6b43});return _0xd4da7[_0x3bb337(0x275)][_0x3bb337(0x389)]&&_0xd4da7[_0x3bb337(0x275)][_0x3bb337(0x389)][_0x3bb337(0x352)]!==ke['OK']?'Failed':_0xd4da7[_0x3bb337(0x275)][_0x3bb337(0x29e)];}catch{return _0x3bb337(0x3c8);}}},exports['RemoteUniscriptService']=hs([de(0x0,a[_0x151a7c(0x1e8)]),de(0x1,a['Inject'](q[_0x151a7c(0x3b1)])),de(0x2,a[_0x151a7c(0x2a9)])],exports['RemoteUniscriptService']),exports[_0x151a7c(0x38a)]=je,exports[_0x151a7c(0x265)]=Ee,exports[_0x151a7c(0x2e6)]=Ae,exports[_0x151a7c(0x3e1)]=ls,exports[_0x151a7c(0x1a4)]=Be;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x156e02=_0x28d4;function _0x152e(){const _0x2e31fa=['5155115XSlEip','Collaboration\x20Conflict','601995otPdMQ','1002793IvSeve','56IsTweF','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.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','10931412BydJJl','Syncing...','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','1789792iwYLaB','446943vETLKw','Click\x20to\x20Reconnect','Synced','Local\x20file','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','457324EnBXdw','Authentication\x20Error','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Edit\x20conflicts'];_0x152e=function(){return _0x2e31fa;};return _0x152e();}function _0x28d4(_0x2ce6e7,_0x1bd3f4){const _0x152e1f=_0x152e();return _0x28d4=function(_0x28d448,_0x426ea4){_0x28d448=_0x28d448-0x190;let _0x4a9bc4=_0x152e1f[_0x28d448];return _0x4a9bc4;},_0x28d4(_0x2ce6e7,_0x1bd3f4);}(function(_0x45d20d,_0x5c8987){const _0x375570=_0x28d4,_0xbd495=_0x45d20d();while(!![]){try{const _0xd86c66=-parseInt(_0x375570(0x19e))/0x1+-parseInt(_0x375570(0x197))/0x2+parseInt(_0x375570(0x19d))/0x3+-parseInt(_0x375570(0x190))/0x4+parseInt(_0x375570(0x19b))/0x5+parseInt(_0x375570(0x1a3))/0x6+-parseInt(_0x375570(0x191))/0x7*(parseInt(_0x375570(0x19f))/0x8);if(_0xd86c66===_0x5c8987)break;else _0xbd495['push'](_0xbd495['shift']());}catch(_0x385927){_0xbd495['push'](_0xbd495['shift']());}}}(_0x152e,0xe2800));const e={'collab-client':{'tooltip':{'reconnect':_0x156e02(0x192)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x156e02(0x19a),'notCollab':_0x156e02(0x194),'synced':_0x156e02(0x193),'syncing':_0x156e02(0x1a4),'offline':_0x156e02(0x1a1)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x156e02(0x1a2),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x156e02(0x196)},'conflict':{'title':_0x156e02(0x19c),'content':_0x156e02(0x1a0)},'permission':{'title':_0x156e02(0x198),'content':_0x156e02(0x195)},'collaboration':{'single-unit':{'warning':_0x156e02(0x199)},'closeRoom':_0x156e02(0x1a5)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};module['exports']=e;
|