@univerjs-pro/collaboration-client-ui 0.10.2-nightly.202508080617 → 0.10.3-experimental.20250812-b4b6f1a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x2ff3(){const _0x455feb=['RemoteUniscriptService','3309048jfTcaY','110922ChfnNp','FUniver','extend','runOnServer','4dKbLWU','2481795kNKXKW','9CZXQUR','1591990NHTUYv','619226HFKFky','1440984TJEqvp','_injector','1493403Rtxwgs','72zIJNsA'];_0x2ff3=function(){return _0x455feb;};return _0x2ff3();}const _0x29197f=_0x1cb9;(function(_0x224308,_0x566d98){const _0x4376c7=_0x1cb9,_0x36a2dd=_0x224308();while(!![]){try{const _0x2c3229=parseInt(_0x4376c7(0x16a))/0x1+-parseInt(_0x4376c7(0x15c))/0x2+-parseInt(_0x4376c7(0x15e))/0x3*(parseInt(_0x4376c7(0x166))/0x4)+parseInt(_0x4376c7(0x167))/0x5+parseInt(_0x4376c7(0x161))/0x6+-parseInt(_0x4376c7(0x162))/0x7*(-parseInt(_0x4376c7(0x15f))/0x8)+-parseInt(_0x4376c7(0x168))/0x9*(parseInt(_0x4376c7(0x169))/0xa);if(_0x2c3229===_0x566d98)break;else _0x36a2dd['push'](_0x36a2dd['shift']());}catch(_0x351409){_0x36a2dd['push'](_0x36a2dd['shift']());}}}(_0x2ff3,0x69857));function _0x1cb9(_0x3733b1,_0x437095){const _0x2ff387=_0x2ff3();return _0x1cb9=function(_0x1cb93a,_0x33978b){_0x1cb93a=_0x1cb93a-0x15c;let _0x2db559=_0x2ff387[_0x1cb93a];return _0x2db559;},_0x1cb9(_0x3733b1,_0x437095);}const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');class c extends e['FUniver']{[_0x29197f(0x165)](_0x19a3c7,_0x4248c7,..._0x369309){const _0x1a62a0=_0x29197f;return this[_0x1a62a0(0x15d)]['get'](t[_0x1a62a0(0x160)])[_0x1a62a0(0x165)](_0x19a3c7,_0x4248c7,{},..._0x369309);}}e[_0x29197f(0x163)][_0x29197f(0x164)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x2a17cf=_0x1209;(function(_0x474b0b,_0x1aa536){const _0x8960d=_0x1209,_0x361050=_0x474b0b();while(!![]){try{const _0x2a8bee=-parseInt(_0x8960d(0x2da))/0x1*(-parseInt(_0x8960d(0x2c0))/0x2)+parseInt(_0x8960d(0x2b8))/0x3+-parseInt(_0x8960d(0x27d))/0x4*(-parseInt(_0x8960d(0x362))/0x5)+parseInt(_0x8960d(0x283))/0x6+parseInt(_0x8960d(0x182))/0x7+-parseInt(_0x8960d(0x387))/0x8*(-parseInt(_0x8960d(0x3a3))/0x9)+-parseInt(_0x8960d(0x1b3))/0xa;if(_0x2a8bee===_0x1aa536)break;else _0x361050['push'](_0x361050['shift']());}catch(_0x1f99b3){_0x361050['push'](_0x361050['shift']());}}}(_0x14db,0x94491));var We=Object[_0x2a17cf(0x3a7)],Ve=(_0x1c531f,_0x1ce9c9,_0x36a4f4)=>_0x1ce9c9 in _0x1c531f?We(_0x1c531f,_0x1ce9c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36a4f4}):_0x1c531f[_0x1ce9c9]=_0x36a4f4,h=(_0x533e03,_0xacfc57,_0x226348)=>Ve(_0x533e03,typeof _0xacfc57!=_0x2a17cf(0x21f)?_0xacfc57+'':_0xacfc57,_0x226348);Object['defineProperty'](exports,Symbol[_0x2a17cf(0x29e)],{'value':_0x2a17cf(0x397)});const P=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),d=require('rxjs'),D=require('@univerjs/design'),M=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),p=require('@univerjs/engine-render'),K=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),Ee=require('@univerjs/engine-formula'),$=require('rxjs/operators'),G=require('@univerjs/sheets-ui');var b=function(){const _0x4ccfdc=_0x2a17cf;return b=Object[_0x4ccfdc(0x3e5)]||function(_0x31b1e9){const _0x4bbe7f=_0x4ccfdc;for(var _0x4e3559,_0x2af00c=0x1,_0x6a2e75=arguments[_0x4bbe7f(0x1fd)];_0x2af00c<_0x6a2e75;_0x2af00c++){_0x4e3559=arguments[_0x2af00c];for(var _0x43adb0 in _0x4e3559)Object[_0x4bbe7f(0x210)][_0x4bbe7f(0x24f)][_0x4bbe7f(0x2ff)](_0x4e3559,_0x43adb0)&&(_0x31b1e9[_0x43adb0]=_0x4e3559[_0x43adb0]);}return _0x31b1e9;},b[_0x4ccfdc(0x1b5)](this,arguments);},Ke=function(_0x3dcd95,_0x56a288){const _0x16e611=_0x2a17cf;var _0x4a9370={};for(var _0x1669b0 in _0x3dcd95)Object['prototype'][_0x16e611(0x24f)][_0x16e611(0x2ff)](_0x3dcd95,_0x1669b0)&&_0x56a288[_0x16e611(0x243)](_0x1669b0)<0x0&&(_0x4a9370[_0x1669b0]=_0x3dcd95[_0x1669b0]);if(_0x3dcd95!=null&&typeof Object[_0x16e611(0x388)]==_0x16e611(0x225)){for(var _0x147d41=0x0,_0x1669b0=Object[_0x16e611(0x388)](_0x3dcd95);_0x147d41<_0x1669b0[_0x16e611(0x1fd)];_0x147d41++)_0x56a288[_0x16e611(0x243)](_0x1669b0[_0x147d41])<0x0&&Object[_0x16e611(0x210)][_0x16e611(0x377)][_0x16e611(0x2ff)](_0x3dcd95,_0x1669b0[_0x147d41])&&(_0x4a9370[_0x1669b0[_0x147d41]]=_0x3dcd95[_0x1669b0[_0x147d41]]);}return _0x4a9370;},ge=M['forwardRef'](function(_0x75ab15,_0x17d4f6){const _0x438277=_0x2a17cf;var _0x39d765=_0x75ab15['icon'],_0x3d2e38=_0x75ab15['id'],_0x58388a=_0x75ab15[_0x438277(0x1f9)],_0x58271a=_0x75ab15[_0x438277(0x380)],_0x346cd4=Ke(_0x75ab15,[_0x438277(0x23d),'id','className',_0x438277(0x380)]),_0x3ebb6c=_0x438277(0x1a8)[_0x438277(0x2bc)](_0x3d2e38,'\x20')[_0x438277(0x2bc)](_0x58388a||'')[_0x438277(0x3d9)](),_0xe32b78=M[_0x438277(0x2ad)]('_'['concat'](Je()));return Pe(_0x39d765,''['concat'](_0x3d2e38),{'defIds':_0x39d765['defIds'],'idSuffix':_0xe32b78['current']},b({'ref':_0x17d4f6,'className':_0x3ebb6c},_0x346cd4),_0x58271a);});function Pe(_0x6012a,_0x28be30,_0x6d5f73,_0x44a466,_0x445d36){const _0x4ad51b=_0x2a17cf;return M['createElement'](_0x6012a[_0x4ad51b(0x1ec)],b(b({'key':_0x28be30},qe(_0x6012a,_0x6d5f73,_0x445d36)),_0x44a466),(ze(_0x6012a,_0x6d5f73)['children']||[])[_0x4ad51b(0x183)](function(_0x44127f,_0x22625b){const _0x5468f1=_0x4ad51b;return Pe(_0x44127f,''[_0x5468f1(0x2bc)](_0x28be30,'-')[_0x5468f1(0x2bc)](_0x6012a[_0x5468f1(0x1ec)],'-')['concat'](_0x22625b),_0x6d5f73,void 0x0,_0x445d36);}));}function qe(_0x4f7fe9,_0x1a246a,_0x2195b5){const _0x282a1e=_0x2a17cf;var _0x15ae3e=b({},_0x4f7fe9[_0x282a1e(0x3c9)]);_0x2195b5!=null&&_0x2195b5['colorChannel1']&&_0x15ae3e[_0x282a1e(0x36d)]===_0x282a1e(0x2a3)&&(_0x15ae3e['fill']=_0x2195b5[_0x282a1e(0x2a3)]),_0x4f7fe9[_0x282a1e(0x1ec)]==='mask'&&_0x15ae3e['id']&&(_0x15ae3e['id']=_0x15ae3e['id']+_0x1a246a[_0x282a1e(0x389)]),Object[_0x282a1e(0x3a0)](_0x15ae3e)[_0x282a1e(0x1ce)](function(_0x55680c){const _0x3e5784=_0x282a1e;var _0x34fac0=_0x55680c[0x0],_0x3c6f37=_0x55680c[0x1];_0x34fac0===_0x3e5784(0x3b7)&&typeof _0x3c6f37=='string'&&(_0x15ae3e[_0x34fac0]=_0x3c6f37[_0x3e5784(0x3f4)](/url\(#(.*)\)/,_0x3e5784(0x357)[_0x3e5784(0x2bc)](_0x1a246a[_0x3e5784(0x389)],')')));});var _0x5e7ad6=_0x1a246a[_0x282a1e(0x3ef)];return!_0x5e7ad6||_0x5e7ad6[_0x282a1e(0x1fd)]===0x0||(_0x4f7fe9[_0x282a1e(0x1ec)]===_0x282a1e(0x25b)&&_0x15ae3e['xlink:href']&&(_0x15ae3e[_0x282a1e(0x2f9)]=_0x15ae3e[_0x282a1e(0x2f9)]+_0x1a246a['idSuffix']),Object['entries'](_0x15ae3e)['forEach'](function(_0x4c8bef){const _0xe54388=_0x282a1e;var _0x416775=_0x4c8bef[0x0],_0x489040=_0x4c8bef[0x1];typeof _0x489040=='string'&&(_0x15ae3e[_0x416775]=_0x489040['replace'](/url\(#(.*)\)/,_0xe54388(0x357)[_0xe54388(0x2bc)](_0x1a246a[_0xe54388(0x389)],')')));})),_0x15ae3e;}function ze(_0x42844c,_0x42ca05){const _0x3bbd56=_0x2a17cf;var _0x39b6f2,_0x23dbbb=_0x42ca05['defIds'];return!_0x23dbbb||_0x23dbbb['length']===0x0?_0x42844c:_0x42844c['tag']==='defs'&&(!((_0x39b6f2=_0x42844c[_0x3bbd56(0x29f)])===null||_0x39b6f2===void 0x0)&&_0x39b6f2['length'])?b(b({},_0x42844c),{'children':_0x42844c[_0x3bbd56(0x29f)][_0x3bbd56(0x183)](function(_0x363f45){const _0x557f49=_0x3bbd56;return typeof _0x363f45[_0x557f49(0x3c9)]['id']==_0x557f49(0x230)&&_0x23dbbb&&_0x23dbbb[_0x557f49(0x1b7)](_0x363f45['attrs']['id'])?b(b({},_0x363f45),{'attrs':b(b({},_0x363f45[_0x557f49(0x3c9)]),{'id':_0x363f45[_0x557f49(0x3c9)]['id']+_0x42ca05[_0x557f49(0x389)]})}):_0x363f45;})}):_0x42844c;}function Je(){const _0x5de6da=_0x2a17cf;return Math[_0x5de6da(0x396)]()[_0x5de6da(0x2c5)](0x24)[_0x5de6da(0x181)](0x2,0x8);}function _0x14db(){const _0x1a5875=['OFFLINE','_startSheetCollabCursor','_handleEvent','_hideTimer','location','UniverInstanceType','getLocalCacheKey','useRef','_initStatusComponent','generateRandomId','forwardRef','purple.300','Disposable','APPLY_NON_SEQUENTIAL_REVISION','_transformUndoRedoStack','transformRemoteChangeset','path','RemoteUniscriptService','3493581yvDyJm','_hovered','collab-text-anchor-','next','concat','_cursor','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_themeService','70858SqfZDx','_renderManagerService','params','CommandType','AWAITING','toString','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_render','YUUMI_CONNECTOR_URL_NOT_FOUND','docStateChange$','isTransformMutationFailure','disposeUnit','some','SNAPSHOT_INVALID_SNAPSHOT','white','disableLocalCache','storage','DocSkeletonManagerService','RevisionService','combineLatest','_onCursorDelete','registerRenderModule','_unitStatus','collabStatus.synced','0\x200\x2016\x2016','_getScale','5XwraoL','BehaviorSubject','_initEvent','_saveTaskMap','ITransformService','ColorKit','onPointerEnter$','_name','getUnitId','transformStateCache','_collaborationUIEventService','_handleJoinEvent','APPLY_PERMISSION_DENIED','LICENSE_DISTRO_REJECTED','_drawRectRange','SheetsSelectionsService','_updateSubUnitFromURLParams','ILocalCacheService','save','YUUMI_UNABLE_LOAD_URL','getCollabEntity$','UniverCollaborationClientUIPlugin','_textBubble','_collabSessionService','eventID','LICENSE_MAX_UNITS_EXCEEDED','_collabCursorState$','cursorInfo','status$','application/json','getColorFromTheme','xlink:href','SHEET_VIEWPORT_KEY','searchParams','handleDeleteRangeMoveLeft','debounceTime','_unitOnClients','call','getCurrentUnitForType','_docTransformStateCacheService','get','_sheetSkeletonManagerService','CollaborationController','_docTransformSelectionsService','_saveCache','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_initEntityListener','_updateURLWithCurrentState','_context','textRanges','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','connectInjector','stringify','_initResize','_createSocketURL','_send','getCollabCursors$','_shapes','clipPath','_registerDependencies','serializeRangeWithSheet','_anchor','SheetCollabCursorShape','source','redoState','collab-rect-range-','div','handleInsertRow','YUUMI_ALL_TABLES_IS_INVALID','getSheetObject','top','_refRangeService','complete','RichTextEditingMutation','_scheduleHeartbeat','measureText','_setupBeforeClosingHandler','permission.title','makeDirty','getMemberID','getRenderById','setConfig','_document','UPDATE_CURSOR','NOT_FOUND','_heartbeatTimer','getOwnPropertyDescriptor','NOT_COLLAB','WECHAT_HAS_BEEN_BOUND','_selfUnitIDs','MessageType','collabStatus.conflict','getConfig','_toggleOnline','reconnect','getUniverSheetInstance','enableLocalCache','DeleteRangeMoveUpCommandId','collabCursorState$','backgroundColor','registerRefRange','fillStyle','IConfigService','IRemoteInstanceService','whenReady','row','handleIRemoveCol','imageSourceType','APPLY_REJECT','UNIVER_DOC','text','_logService','_getSheetObject','UNDEFINED','_startDocCollabCursor','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','onCommandExecuted','pushState','_commandService','NodePositionConvertToRectRange','getTypeOfUnitDisposed$','_localeService','_cachedData','beginPath','runOnServer','url(#$1','_onRefRangeChange','RxDisposable','newValue','YUUMI_TABLE_NOT_FOUND_IN_UNIT','deserializeRangeWithSheet','isArray','ALREADY_EXISTS','none','roomMembers','send','3295FXmqBV','_lastPointer','collab-text-range-','DocSelectionManagerService','CollaborationEvent','DocCollaborationEntity','_draw','_configService','saveTaskMap','0\x200\x2017\x2016','CONFLICT','fill','green.600','_revisionService','selections','origin','INTERNAL_ERROR','InsertRowCommandId','addObject','history','WebSocketService','propertyIsEnumerable','add','EMAIL_HAS_BEEN_BOUND','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','INVALID_INVITE_CODE','CollaborationDataLoaderController','setActiveRange','APPLY_REVISION_CONFILICT','hide','extend','_roomMembers$','PENDING','UniverIcon','IBeforeCloseService','COLORS','PERMISSION_DENIED','1192BVCrqh','getOwnPropertySymbols','idSuffix','CONNECTOR_DATA_TOO_LARGE','YUUMI_RATE_OVER_LIMIT','CollaborationUIEventId','sessionStatus$','transform','WebURLService','getCurrentRevOfUnit','SYNCED','_cursorInfo$','YUUMI_SUBSCRIPTION_NOT_FOUND','_notificationService','black','random','Module','getSkeleton','values','univer-mr-2\x20univer-flex\x20univer-text-xl','height','DocStateChangeManagerService','ENSURE_SNAPSHOT_EXECUTION','subunit','addEventListener','entries','useDependency','DisposableCollection','18477QwLcaT','createInstance','startRow','pipe','defineProperty','addClipboardHook','_docStateChangeManagerService','collab-client.tooltip.reconnect','CollaborationSocketService','_scheduleClearOtherTimer','getUnitStatus$','LOGIN_FAILED','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_online','handleInsertCol','INVITE_CODE_REQUIRED','TOO_MANY_REQUESTS','switchMap','selection','round','mask','_range','SetTextSelectionsOperation','_labelPosition','subUnitId','IImageIoService','has','_ensureSubject','_handleLeaveEvent','off-line-icon_clip0_910_343','red.300','INVITE_CODE_HAS_BEEN_UES','href','_cursorShapes','moveTo','LOCAL_CACHE_INTERVAL','size','_collabCursorController','attrs','getActiveRange','_hover','fromEvent','_beforeCloseService','onStarting','setItem','syncEditingCollabCursor','toRgbString','YUUMI_NO_CUBOID_FOR_QUESTION','onLocalMutation','evenodd','cursorInfo$','getFocusedUnit','min','subscribeEvent','trim','_transformHistoryAndStateStack','_dataLoaderService','transformSelections','error','_scene','RECT','labelPosition','unshift','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','NO_OTHER_CLIENTS_EDITING','fromEventSubject','assign','getUndoRedoMutationParamsCache','getMember','session.connection-failed','IMessageService','setShapeProps','_entityInit$','HTTPService','#FFF','CollaborationStatus','defIds','runRefRangeMutations','saveOfflineData','mapTo','then','replace','off-line-icon','EffectRefRangId','subscribe','from','_clearOtherTimers','getActiveSheet','isActive','endRow','width','Rect','DesktopCollaborationStatusDisplayController','dispose$','_status$','INVITE_CODE_ALREADY_BOUND','dispose','UnitStatus','throttleTime','asObservable','_doCreateSocket','SheetSkeletonManagerService','substring','3832031dsRIkq','map','delete','_initDependencies','doc.mutation.rich-text-editing','clearInterval','InsertRangeMoveDownCommandId','debounce','InsertRangeMoveRightCommandId','UniverCollaborationClientPlugin','blue.400','rgba(255,\x20255,\x20255,\x200.01)','isTransformMutationsWithChangesetSuccess','collaboration.closeRoom','_backgroundColor','urlChange$','_collaborationController','DOC_RANGE_TYPE','onPointerMove$','_syncEditingCollabCursorService','[CollaborationDataLoaderController]','column','Tooltip','CollaborationSessionService','executionId','setTimeout','_getSessionTicket','USER_NOT_INVITED_CODE','ISocketService','TEXT_RANGE_LAYER_INDEX','_initStatusListener','M0\x200H16V16H0z','getSheetBySheetId','_registerRenderDependencies','search','merge','_eventUnsubscribe','_handleHover','univerjs-icon\x20univerjs-icon-','EMAIL_VERIFY_CODE_MISMATCH','clearTimeout','event$','override','getCurrent','getOffsetConfig','AWAITING_WITH_PENDING','Unknown\x20user','DEFAULT_WS_SESSION_TICKET_URL','distinctUntilChanged','29820340IQbZho','1em','apply','TRANSFORM_CHANGE_OBSERVABLE_TYPE','includes','transformMutationsWithChangeset','getRangePointData','USERS_LEAVE','_httpService','SNAPSHOT_HAS_BEEN_REMOVED','translate(.97)','popstate','...','FETCH_MISS','unsubscribe','transformByState','handleIRemoveRow','getViewport','clsx','_setupSubUnitSync','_removeCollabCursors','IDocClipboardService','session.collaboration-timeout','ThemeService','IUIPartsService','roomMembers$','SOCKET_FAILED','forEach','DeleteRangeMoveLeftCommandId','data','handleInsertRangeMoveDown','mergeOverrideWithDependencies','url(#off-line-icon_clip0_910_343)','permission.content','getParam','CLOSE_ROOM','_handleHeartbeatEvent','_updateLocalCursor','getValue','_cursors','RemoveRowCommandId','ILocalStorageService','startColumn','BrowserCollaborationSocketService','name','getMergeData','BuiltInUIPart','jsx','getStateCache','max','setParam','UNRECOGNIZED','setAlpha','CHANGESET_REVISION_CONFILICT','Shape','transformMutation','memberID','tag','_colorAssignService','SetDocZoomRatioOperation','bottom','_session','Vector2','_urlService','_anchorDot','runId','disposeWithMe','sheetID','_uiPartsService','getAncestorScale','className','resize','_disabled','SOCKET_FAILED_RETRY','length','IURLService','Plugin','mutations','currentColor','LocaleService','push','_color','CollaborationUIEventService','currentSkeleton$','SessionStatus','Failed','COMPLETION_FINISHED','HEADER_MENU','color','_docSkeletonManagerService','ILogService','APPLY_DUPLICATED','_transformService','prototype','_onCursorUpdate','m2Prime','_updateCollabCursors','with','_univerInstanceService','_colorIndex','addHandlerCallback','hovered','_localCacheService','Workbook','currentTheme$','MOBILE_VERIFY_CODE_MISMATCH','TEXT','DependentOn','symbol','_entities','getColor','key','shareReplay','_messageService','function','deepClone','show','set','_assignedColors','createSocket','Inject','UNIVER_SHEET','undoState','unit','engine','string','Injector','type','arc','Warning','handleMoveRange','useCallback','filter','displayName','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','ONLINE','wsSessionTicketUrl','INotificationService','icon','MUTATION','contains','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','restore','all','indexOf','handleInsertRangeMoveRight','takeUntil','on-line-icon_clip0_910_349','_imageIoService','_toggleOffline','result','requireSession','VIEW_MAIN','toDisposable','m1Prime','onPointerLeave$','hasOwnProperty','collabStatus.syncing','ICommandService','PY_RUNTIME_SCRIPT_ERROR','_transformPreviousActiveRange','_docClipboardService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','ACTIVE_UNIT_EVENT_CHANNEL','find','_localStorageService','_init','collabStatus.notCollab','use','unload','/run/','_id','_getAnchorBounding','onMouseMove','MOBILE_HAS_BEEN_BOUND','touchDependencies','registerComponent','_docSyncEditingCollabCursorService','lineTo','YUUMI_ASYNCIO_CANCELLED','_docTransformIMECacheService','_removeClearOtherTimer','getRelativeToViewportCoord','replaceState','http://www.w3.org/2000/svg','MemberService','loadUnit','init','body','addObjects','setInterval','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','closePath','RemoveColCommandId','updateOfflineData','WebBrowserSingleActiveUnitService','getItem','onRendered','drawWith','ISnapshotServerService','_config','ticket','4460mLpJbC','_memberService','invokeId','NodePositionConvertToCursor','IUniverInstanceService','_instanceService','3957744WPKAvb','createElement','_refreshCollabCursors','_drawTextRange','ranges','MoveRangeCommandId','focused$','_injector','getDocRanges','post','getTypeOfUnitAdded$','removeParam','Error','DocIMEInputManagerService','fillText','yellow.400','executeCommand','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','svg','_getSaveTimeout','UNAUTHENTICATED','getSheetId','_scheduleSaving','transformIMECache','exhaustSavingTask','_initCommandExecutedListener','actions','toStringTag','children','getCoordByCell','unitId','unitID','colorChannel1','OnLineIcon','Tools'];_0x14db=function(){return _0x1a5875;};return _0x14db();}ge[_0x2a17cf(0x238)]=_0x2a17cf(0x383);var Ze={'tag':_0x2a17cf(0x295),'attrs':{'xmlns':_0x2a17cf(0x26b),'fill':_0x2a17cf(0x35f),'viewBox':_0x2a17cf(0x2d8),'width':'1em','height':_0x2a17cf(0x1b4)},'children':[{'tag':'g','attrs':{'clipPath':_0x2a17cf(0x1d3)},'children':[{'tag':_0x2a17cf(0x2b6),'attrs':{'stroke':'currentColor','d':_0x2a17cf(0x30c),'strokeLinecap':_0x2a17cf(0x3b6),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2a17cf(0x314),'attrs':{'id':_0x2a17cf(0x3c0)},'children':[{'tag':_0x2a17cf(0x2b6),'attrs':{'fill':_0x2a17cf(0x2ce),'d':_0x2a17cf(0x1a1)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},we=M[_0x2a17cf(0x2b0)](function(_0x2c392f,_0x2df672){const _0x531acd=_0x2a17cf;return M[_0x531acd(0x284)](ge,Object[_0x531acd(0x3e5)]({},_0x2c392f,{'id':_0x531acd(0x3f5),'ref':_0x2df672,'icon':Ze}));});we[_0x2a17cf(0x238)]='OffLineIcon';var Qe={'tag':_0x2a17cf(0x295),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2a17cf(0x35f),'viewBox':_0x2a17cf(0x36b),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x2a17cf(0x2b6),'attrs':{'stroke':_0x2a17cf(0x201),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x2a17cf(0x3b6),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2a17cf(0x314),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x2a17cf(0x2b6),'attrs':{'fill':_0x2a17cf(0x2ce),'d':'M0\x200H16V16H0z','transform':_0x2a17cf(0x1bd)}}]}]}],'defIds':[_0x2a17cf(0x246)]},Ae=M[_0x2a17cf(0x2b0)](function(_0x4d7708,_0x38cafe){const _0xdfa54e=_0x2a17cf;return M['createElement'](ge,Object[_0xdfa54e(0x3e5)]({},_0x4d7708,{'id':'on-line-icon','ref':_0x38cafe,'icon':Qe}));});Ae['displayName']=_0x2a17cf(0x2a4);function et(_0x1544b7){const _0x2f77da=_0x2a17cf;switch(_0x1544b7){case u[_0x2f77da(0x3ee)]['OFFLINE']:return'collabStatus.offline';case u[_0x2f77da(0x3ee)][_0x2f77da(0x36c)]:return _0x2f77da(0x335);case u[_0x2f77da(0x3ee)][_0x2f77da(0x1c0)]:return'collabStatus.fetchMiss';case u[_0x2f77da(0x3ee)][_0x2f77da(0x331)]:return _0x2f77da(0x25a);case u[_0x2f77da(0x3ee)][_0x2f77da(0x2c4)]:case u[_0x2f77da(0x3ee)][_0x2f77da(0x1af)]:return _0x2f77da(0x250);case u[_0x2f77da(0x3ee)][_0x2f77da(0x391)]:case u['CollaborationStatus'][_0x2f77da(0x382)]:return _0x2f77da(0x2d7);}}function tt(_0x1e9343){const _0x118127=_0x2a17cf,{status$:_0x355187}=_0x1e9343,_0x56b376=O['useObservable'](_0x355187,u[_0x118127(0x3ee)][_0x118127(0x331)]),_0x32e94e=O[_0x118127(0x3a1)](a[_0x118127(0x202)]),_0x39888e=O[_0x118127(0x3a1)](u['CollaborationSessionService']),_0x4147d5=_0x56b376!==u[_0x118127(0x3ee)][_0x118127(0x2a6)],_0xd0c130=_0x32e94e['t'](et(_0x56b376)),_0x5cd867=_0x4147d5?P[_0x118127(0x1e2)](Ae,{}):P['jsx'](we,{}),_0x281c4f=M[_0x118127(0x236)](()=>{const _0x24dd3b=_0x118127;_0x4147d5||_0x39888e[_0x24dd3b(0x338)]();},[_0x4147d5,_0x39888e]);function _0x1170e3(){const _0x5c75c1=_0x118127;return P['jsxs'](_0x5c75c1(0x31c),{'className':'univer-flex\x20univer-items-center','onClick':_0x281c4f,'children':[P[_0x5c75c1(0x1e2)](_0x5c75c1(0x31c),{'className':D[_0x5c75c1(0x1c5)](_0x5c75c1(0x39a),{'univer-text-green-500':_0x4147d5,'univer-text-red-500':!_0x4147d5}),'children':_0x5cd867}),P[_0x5c75c1(0x1e2)](_0x5c75c1(0x31c),{'className':_0x5c75c1(0x240),'children':_0xd0c130})]});}return _0x4147d5?_0x1170e3():P[_0x118127(0x1e2)](D[_0x118127(0x198)],{'title':_0x32e94e['t'](_0x118127(0x3aa)),'children':_0x1170e3()});}var st=Object[_0x2a17cf(0x330)],it=(_0x1a60f3,_0x289195,_0x371353,_0x28536d)=>{const _0x511a9c=_0x2a17cf;for(var _0x2b30bd=_0x28536d>0x1?void 0x0:_0x28536d?st(_0x289195,_0x371353):_0x289195,_0x102f60=_0x1a60f3[_0x511a9c(0x1fd)]-0x1,_0x4843f1;_0x102f60>=0x0;_0x102f60--)(_0x4843f1=_0x1a60f3[_0x102f60])&&(_0x2b30bd=_0x4843f1(_0x2b30bd)||_0x2b30bd);return _0x2b30bd;},V=(_0x540a86,_0x147e34)=>(_0x636cdc,_0x136bdd)=>_0x147e34(_0x636cdc,_0x136bdd,_0x540a86);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x2a17cf(0x2b2)]{constructor(_0x453ee2,_0x2add46,_0x18fc18,_0x447a6f){const _0x1c3bbe=_0x2a17cf;super(),h(this,_0x1c3bbe(0x179),new d[(_0x1c3bbe(0x2db))](u[_0x1c3bbe(0x3ee)]['NOT_COLLAB'])),(this[_0x1c3bbe(0x215)]=_0x453ee2,this[_0x1c3bbe(0x28a)]=_0x2add46,this[_0x1c3bbe(0x192)]=_0x18fc18,this['_uiPartsService']=_0x447a6f,this['_initStatusComponent'](),this[_0x1c3bbe(0x1a0)]());}['_initStatusListener'](){const _0x55ff3e=_0x2a17cf;this['disposeWithMe'](this['_univerInstanceService'][_0x55ff3e(0x289)][_0x55ff3e(0x3a6)](d['switchMap'](()=>{const _0xd51bce=_0x55ff3e,_0x2bee73=this['_univerInstanceService']['getFocusedUnit']();return _0x2bee73?this['_collaborationController'][_0xd51bce(0x2ee)](_0x2bee73[_0xd51bce(0x2e2)]()):d['of'](null);}),d[_0x55ff3e(0x3b4)](_0x56c594=>_0x56c594?_0x56c594[_0x55ff3e(0x2f6)]:d['of'](u[_0x55ff3e(0x3ee)][_0x55ff3e(0x331)])))[_0x55ff3e(0x3f7)](_0x1455be=>{const _0x1ec065=_0x55ff3e;this[_0x1ec065(0x179)][_0x1ec065(0x2bb)](_0x1455be);}));}[_0x2a17cf(0x2ae)](){const _0x328d65=_0x2a17cf;this[_0x328d65(0x1f5)](this[_0x328d65(0x1f7)][_0x328d65(0x263)](O[_0x328d65(0x1e1)][_0x328d65(0x20a)],()=>O[_0x328d65(0x30d)](nt({'status$':this[_0x328d65(0x179)][_0x328d65(0x17e)]()}),this[_0x328d65(0x28a)])));}},exports[_0x2a17cf(0x177)]=it([V(0x0,a[_0x2a17cf(0x281)]),V(0x1,a['Inject'](a[_0x2a17cf(0x231)])),V(0x2,a[_0x2a17cf(0x22b)](u[_0x2a17cf(0x304)])),V(0x3,O[_0x2a17cf(0x1cb)])],exports['DesktopCollaborationStatusDisplayController']);function nt(_0x344f8f){const {status$:_0x19a8a8}=_0x344f8f;return function(){const _0x60089d=_0x1209;return P[_0x60089d(0x1e2)](tt,{'status$':_0x19a8a8});};}const me=a['createIdentifier']('uni.network.url-service');var rt=Object[_0x2a17cf(0x330)],ot=(_0x542c86,_0x5a1466,_0x1100cf,_0x511a60)=>{const _0x395996=_0x2a17cf;for(var _0x1256ef=_0x511a60>0x1?void 0x0:_0x511a60?rt(_0x5a1466,_0x1100cf):_0x5a1466,_0x4a9163=_0x542c86[_0x395996(0x1fd)]-0x1,_0x4de3f0;_0x4a9163>=0x0;_0x4a9163--)(_0x4de3f0=_0x542c86[_0x4a9163])&&(_0x1256ef=_0x4de3f0(_0x1256ef)||_0x1256ef);return _0x1256ef;},k=(_0x280157,_0x34bb91)=>(_0x493150,_0x561db3)=>_0x34bb91(_0x493150,_0x561db3,_0x280157);exports[_0x2a17cf(0x37c)]=class extends a['RxDisposable']{constructor(_0x121462,_0x49a8bb,_0x363331,_0x4c0b22,_0x3ed8fb){const _0xbbd43e=_0x2a17cf;super(),this[_0xbbd43e(0x1f2)]=_0x121462,this[_0xbbd43e(0x349)]=_0x49a8bb,this[_0xbbd43e(0x350)]=_0x363331,this[_0xbbd43e(0x3db)]=_0x4c0b22,_0x3ed8fb?_0x3ed8fb==null||_0x3ed8fb[_0xbbd43e(0x342)]()[_0xbbd43e(0x3f3)](()=>this['_init']()):(this['_logService']['debug'](_0xbbd43e(0x196),_0xbbd43e(0x34d)),this['_init']());}async[_0x2a17cf(0x259)](){const _0x9f1331=_0x2a17cf,_0x274c87=this['_urlService'][_0x9f1331(0x1d5)](_0x9f1331(0x22e)),_0x1eda22=this[_0x9f1331(0x1f2)]['getParam'](_0x9f1331(0x232)),_0x50ce92=this['_urlService']['getParam']('subunit');if(!_0x274c87||!_0x1eda22){this[_0x9f1331(0x349)]['debug']('[CollaborationDataLoaderController]',_0x9f1331(0x2c6));return;}const _0x4d5ae7=await this[_0x9f1331(0x3db)][_0x9f1331(0x26d)](_0x274c87,Number(_0x1eda22),_0x50ce92);_0x4d5ae7&&_0x4d5ae7 instanceof a[_0x9f1331(0x21a)]&&this[_0x9f1331(0x1c6)](_0x4d5ae7);}async[_0x2a17cf(0x1c6)](_0x227c26){const _0x126d43=_0x2a17cf;await this[_0x126d43(0x2ea)](_0x227c26),_0x227c26['activeSheet$'][_0x126d43(0x3a6)](d[_0x126d43(0x245)](this['dispose$']))[_0x126d43(0x3f7)](_0x530264=>{const _0x37c05b=_0x126d43;_0x530264&&this[_0x37c05b(0x309)](_0x530264);}),this[_0x126d43(0x1f2)]['urlChange$'][_0x126d43(0x3a6)](d['takeUntil'](this[_0x126d43(0x178)]))[_0x126d43(0x3f7)](()=>this[_0x126d43(0x2ea)](_0x227c26));}[_0x2a17cf(0x309)](_0x1ba9f6,_0x4da002=!0x1){const _0x3b0904=_0x2a17cf,_0x220c5b=this[_0x3b0904(0x1f2)][_0x3b0904(0x1d5)]('subunit');_0x1ba9f6[_0x3b0904(0x298)]()!==_0x220c5b&&this[_0x3b0904(0x1f2)]['setParam'](_0x3b0904(0x39e),_0x1ba9f6[_0x3b0904(0x298)](),_0x4da002);}async[_0x2a17cf(0x2ea)](_0x28f76c){const _0x4fdc93=_0x2a17cf;var _0x52eed0;const _0x1ce017=this['_urlService']['getParam'](_0x4fdc93(0x39e));if(!_0x1ce017||!_0x28f76c['getSheetBySheetId'](_0x1ce017)){const _0x4de874=_0x28f76c['getUnhiddenWorksheets']()[0x0],_0x27a5f3=_0x28f76c[_0x4fdc93(0x1a2)](_0x4de874);if(!_0x27a5f3)return;this[_0x4fdc93(0x309)](_0x27a5f3,!0x0),await this[_0x4fdc93(0x350)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x28f76c[_0x4fdc93(0x2e2)](),'subUnitId':_0x4de874});return;}((_0x52eed0=_0x28f76c[_0x4fdc93(0x3fa)]())==null?void 0x0:_0x52eed0[_0x4fdc93(0x298)]())!==_0x1ce017&&await this[_0x4fdc93(0x350)][_0x4fdc93(0x293)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x28f76c[_0x4fdc93(0x2e2)](),'subUnitId':_0x1ce017});}},exports[_0x2a17cf(0x37c)]=ot([k(0x0,me),k(0x1,a[_0x2a17cf(0x20d)]),k(0x2,a[_0x2a17cf(0x251)]),k(0x3,a[_0x2a17cf(0x22b)](u['DataLoaderService'])),k(0x4,a['Optional'](Xe[_0x2a17cf(0x341)]))],exports[_0x2a17cf(0x37c)]);var at=Object[_0x2a17cf(0x330)],ct=(_0x5c180a,_0x1f4b99,_0x45157e,_0x12c125)=>{const _0xd08f1e=_0x2a17cf;for(var _0x1271bb=_0x12c125>0x1?void 0x0:_0x12c125?at(_0x1f4b99,_0x45157e):_0x1f4b99,_0x5043ef=_0x5c180a[_0xd08f1e(0x1fd)]-0x1,_0x17f5da;_0x5043ef>=0x0;_0x5043ef--)(_0x17f5da=_0x5c180a[_0x5043ef])&&(_0x1271bb=_0x17f5da(_0x1271bb)||_0x1271bb);return _0x1271bb;},be=(_0x2383f9,_0x7f6658)=>(_0x26d07e,_0x3f399a)=>_0x7f6658(_0x26d07e,_0x3f399a,_0x2383f9);let ue=class extends a[_0x2a17cf(0x359)]{constructor(_0x82ef3d,_0x2c8e79){const _0x4ce67f=_0x2a17cf;super(),this[_0x4ce67f(0x254)]=_0x82ef3d,this['_imageIoService']=_0x2c8e79,this[_0x4ce67f(0x259)]();}[_0x2a17cf(0x259)](){const _0x1fcba7=_0x2a17cf,_0x58e11a=this;this['disposeWithMe'](this[_0x1fcba7(0x254)][_0x1fcba7(0x3a8)]({'onBeforePasteImage':async _0x40f24f=>{const _0x1dc509=_0x1fcba7,_0x2e0ea1=await _0x58e11a[_0x1dc509(0x247)]['saveImage'](_0x40f24f);return _0x2e0ea1?{'source':_0x2e0ea1[_0x1dc509(0x319)],'imageSourceType':_0x2e0ea1[_0x1dc509(0x345)]}:null;}}));}};ue=ct([be(0x0,E[_0x2a17cf(0x1c8)]),be(0x1,Ge[_0x2a17cf(0x3bc)])],ue);const Oe=[_0x2a17cf(0x2b1),'jiqing.500',_0x2a17cf(0x36e),_0x2a17cf(0x3c1),_0x2a17cf(0x18c),_0x2a17cf(0x292)];class Ce extends a[_0x2a17cf(0x2b2)]{constructor(){const _0x5b82fe=_0x2a17cf;super(...arguments),h(this,_0x5b82fe(0x229),new Map()),h(this,_0x5b82fe(0x216),0x0);}['assignAColorForMemberID'](_0x3e2d2b){const _0xc19046=_0x2a17cf;if(this[_0xc19046(0x229)][_0xc19046(0x3bd)](_0x3e2d2b))return this['_assignedColors'][_0xc19046(0x302)](_0x3e2d2b);const _0x13b788=Oe[this[_0xc19046(0x216)]];return this['_colorIndex']=(this[_0xc19046(0x216)]+0x1)%Oe[_0xc19046(0x1fd)],this[_0xc19046(0x229)]['set'](_0x3e2d2b,_0x13b788),_0x13b788;}}function ye(_0x21b423){const _0x34b009=_0x2a17cf;let _0x1a3ce9='';for(const _0x3be538 of _0x21b423){const {startOffset:_0x461b1f,endOffset:_0xf2c987,isActive:_0x5e6d33,rangeType:_0x38dc25,segmentId:_0x49151c,segmentPage:_0xdcd50c}=_0x3be538;_0x1a3ce9[_0x34b009(0x1fd)]&&(_0x1a3ce9+=','),_0x1a3ce9+=_0x461b1f+':'+_0xf2c987+':'+(_0x5e6d33?'1':'0')+':'+_0x38dc25+':'+_0x49151c+':'+_0xdcd50c;}return _0x1a3ce9;}function lt(_0x19feb3){const _0x17598f=_0x2a17cf,_0x5d2cce=_0x19feb3['split'](','),_0x218c5=[];for(const _0x5d6f81 of _0x5d2cce){const [_0xf97326,_0x10b24d,_0x325158,_0x40f8e2,_0x30a8bb,_0x412bc2]=_0x5d6f81['split'](':');_0x218c5['push']({'startOffset':Number(_0xf97326),'endOffset':Number(_0x10b24d),'collapsed':_0xf97326===_0x10b24d,'isActive':_0x325158==='1','rangeType':_0x40f8e2===a[_0x17598f(0x193)][_0x17598f(0x21d)]?a['DOC_RANGE_TYPE'][_0x17598f(0x21d)]:a['DOC_RANGE_TYPE']['RECT'],'segmentId':typeof _0x30a8bb=='string'?String(_0x30a8bb):'','segmentPage':Number(_0x412bc2!=null?_0x412bc2:-0x1)});}return _0x218c5[_0x17598f(0x2cc)](_0x1d448f=>_0x1d448f[_0x17598f(0x173)])||(_0x218c5[0x0]['isActive']=!0x0),_0x218c5;}class pe extends a[_0x2a17cf(0x359)]{constructor(){const _0x11bf5e=_0x2a17cf;super(...arguments),h(this,_0x11bf5e(0x2f4),new d[(_0x11bf5e(0x2db))](null)),h(this,_0x11bf5e(0x33c),this[_0x11bf5e(0x2f4)][_0x11bf5e(0x17e)]());}[_0x2a17cf(0x3d0)](_0x528a50){const _0x298516=_0x2a17cf,{unitID:_0x3069f6,memberID:_0x3d7e27,textRanges:_0x3e99c4}=_0x528a50,_0x483743=ye(_0x3e99c4);if(_0x483743==='')return;const _0x45128b={'unitID':_0x3069f6,'memberID':_0x3d7e27,'selection':_0x483743};this[_0x298516(0x2f4)]['next'](_0x45128b);}}var _t=Object[_0x2a17cf(0x330)],ht=(_0x57746,_0x4f6ad5,_0xaea275,_0x1e75d8)=>{const _0x388ffe=_0x2a17cf;for(var _0x4373db=_0x1e75d8>0x1?void 0x0:_0x1e75d8?_t(_0x4f6ad5,_0xaea275):_0x4f6ad5,_0x16612f=_0x57746[_0x388ffe(0x1fd)]-0x1,_0x5310a0;_0x16612f>=0x0;_0x16612f--)(_0x5310a0=_0x57746[_0x16612f])&&(_0x4373db=_0x5310a0(_0x4373db)||_0x4373db);return _0x4373db;},L=(_0x34e8d2,_0x2fe2c8)=>(_0x2a1697,_0x219812)=>_0x2fe2c8(_0x2a1697,_0x219812,_0x34e8d2);const ut=0x12c,dt=0x64;let de=class extends a[_0x2a17cf(0x359)]{constructor(_0x2e391b,_0x4a9da2,_0x21f023,_0x305519,_0x43aba5,_0x3e7dea,_0x5c0136,_0x4dabbc,_0x29c376){const _0x317548=_0x2a17cf;super(),h(this,'_online',!0x1),h(this,'_init',!0x1),h(this,_0x317548(0x392),new d['BehaviorSubject'](new Map())),h(this,_0x317548(0x3d5),this['_cursorInfo$']['asObservable']()),h(this,_0x317548(0x381),new d[(_0x317548(0x2db))]([])),h(this,_0x317548(0x1cc),this[_0x317548(0x381)][_0x317548(0x3a6)](d[_0x317548(0x2fd)](ut))),h(this,_0x317548(0x1d8),a[_0x317548(0x189)](_0x517c6c=>{const _0x34613d=_0x317548,_0xab57a={'eventID':m[_0x34613d(0x366)][_0x34613d(0x32d)],'data':{'unitID':this['unitID'],'memberID':this[_0x34613d(0x1f0)][_0x34613d(0x329)](),'selection':ye(_0x517c6c)}};this[_0x34613d(0x1f0)][_0x34613d(0x361)](_0xab57a,this[_0x34613d(0x2a2)]);},dt)),(this[_0x317548(0x2a2)]=_0x2e391b,this[_0x317548(0x1f0)]=_0x4a9da2,this[_0x317548(0x28a)]=_0x21f023,this['_colorAssignService']=_0x305519,this[_0x317548(0x27e)]=_0x43aba5,this[_0x317548(0x195)]=_0x3e7dea,this[_0x317548(0x20f)]=_0x5c0136,this['_univerInstanceService']=_0x4dabbc,this[_0x317548(0x350)]=_0x29c376);}get[_0x2a17cf(0x2f5)](){const _0x3dddb1=_0x2a17cf;return this[_0x3dddb1(0x392)]['getValue']();}get[_0x2a17cf(0x360)](){const _0x37ee12=_0x2a17cf;return this[_0x37ee12(0x381)]['getValue']();}[_0x2a17cf(0x17b)](){const _0x13d3f2=_0x2a17cf;super[_0x13d3f2(0x17b)](),this[_0x13d3f2(0x392)][_0x13d3f2(0x2bb)](new Map()),this[_0x13d3f2(0x392)][_0x13d3f2(0x322)](),this['_roomMembers$'][_0x13d3f2(0x2bb)]([]),this[_0x13d3f2(0x381)][_0x13d3f2(0x322)]();}['init'](){const _0x525e59=_0x2a17cf;this['_init']||(this['_init']=!0x0,this[_0x525e59(0x1f0)][_0x525e59(0x38d)][_0x525e59(0x3a6)](d[_0x525e59(0x245)](this[_0x525e59(0x178)]))[_0x525e59(0x3f7)](_0x112942=>{const _0x22ea15=_0x525e59;_0x112942===u['SessionStatus'][_0x22ea15(0x23a)]?this[_0x22ea15(0x337)]():this['_toggleOffline']();}),this[_0x525e59(0x1f0)][_0x525e59(0x1ab)][_0x525e59(0x3a6)](d['takeUntil'](this['dispose$']))[_0x525e59(0x3f7)](_0x4ddf95=>{const _0x26381f=_0x525e59,_0x21b9ca=_0x4ddf95[_0x26381f(0x2f2)];_0x21b9ca===m[_0x26381f(0x366)][_0x26381f(0x32d)]&&this[_0x26381f(0x211)](_0x4ddf95),_0x21b9ca===m[_0x26381f(0x366)][_0x26381f(0x1ba)]&&this[_0x26381f(0x2d4)](_0x4ddf95);}),this[_0x525e59(0x1f5)](this['_commandService']['onCommandExecuted'](_0x577b35=>{const _0x2b805d=_0x525e59,_0x1f00f9=_0x577b35[_0x2b805d(0x2c2)];_0x1f00f9!=null&&this[_0x2b805d(0x3b0)]&&_0x577b35['id']===Y[_0x2b805d(0x3b9)]['id']&&_0x1f00f9['unitId']===this[_0x2b805d(0x2a2)]&&_0x1f00f9['isEditing']===!0x1&&_0x1f00f9[_0x2b805d(0x287)][_0x2b805d(0x1fd)]>0x0&&this[_0x2b805d(0x1d8)](_0x1f00f9[_0x2b805d(0x287)]);})),this[_0x525e59(0x195)][_0x525e59(0x33c)][_0x525e59(0x3a6)](d['takeUntil'](this[_0x525e59(0x178)]))[_0x525e59(0x3f7)](_0x34da9e=>{const _0x40a221=_0x525e59;if((_0x34da9e==null?void 0x0:_0x34da9e[_0x40a221(0x2a2)])!==this[_0x40a221(0x2a2)])return;const _0x268a4e={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x34da9e};this[_0x40a221(0x211)](_0x268a4e);}),this[_0x525e59(0x1f5)](this[_0x525e59(0x350)]['onCommandExecuted'](_0x39bdb6=>{const _0xb3ad8d=_0x525e59;if(_0x39bdb6['params']==null)return;const _0x36a735=_0x39bdb6['params'];if(_0x39bdb6['id']!==Y[_0xb3ad8d(0x323)]['id']||_0x36a735[_0xb3ad8d(0x2a1)]!==this[_0xb3ad8d(0x2a2)])return;const _0x19ce19={'id':_0xb3ad8d(0x186),'params':_0x36a735},_0x4e3ac5=this[_0xb3ad8d(0x2f5)];for(const [_0xbd7f8c,_0x3f265f]of _0x4e3ac5){const _0x54c17d={'id':_0xb3ad8d(0x186),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x3f265f[_0xb3ad8d(0x287)]}},_0x31427e=this[_0xb3ad8d(0x20f)]['transformMutation'](_0x19ce19,_0x54c17d,!0x1);if(m[_0xb3ad8d(0x2ca)](_0x31427e))throw _0x31427e['error'];_0x4e3ac5[_0xb3ad8d(0x228)](_0xbd7f8c,{..._0x3f265f,'ranges':_0x31427e['m2Prime'][_0xb3ad8d(0x2c2)][_0xb3ad8d(0x30b)]});}queueMicrotask(()=>{const _0x30ede6=_0xb3ad8d;this[_0x30ede6(0x392)]['next'](_0x4e3ac5);});})));}[_0x2a17cf(0x211)](_0x5f5014){const _0x20103d=_0x2a17cf;var _0x512da0,_0x573a9e;const {memberID:_0x4d16fc,selection:_0x531324}=_0x5f5014[_0x20103d(0x1d0)],_0x31f2c0=lt(_0x531324),_0x2b3b2d=(_0x573a9e=(_0x512da0=this[_0x20103d(0x27e)][_0x20103d(0x3e7)](this[_0x20103d(0x2a2)],_0x4d16fc))==null?void 0x0:_0x512da0[_0x20103d(0x1df)])!=null?_0x573a9e:_0x20103d(0x1b0),_0x453e7c={'color':this[_0x20103d(0x1ed)]['assignAColorForMemberID'](_0x4d16fc),'name':_0x2b3b2d,'ranges':_0x31f2c0},_0x252ef5=this[_0x20103d(0x2f5)];_0x252ef5[_0x20103d(0x228)](_0x4d16fc,_0x453e7c),this[_0x20103d(0x392)][_0x20103d(0x2bb)](_0x252ef5);}['_onCursorDelete'](_0x48f836){const _0x27763b=_0x2a17cf,{memberID:_0x4a6fda}=_0x48f836['data'],_0x4a0909=this['cursorInfo'];_0x4a0909['delete'](_0x4a6fda),this[_0x27763b(0x392)][_0x27763b(0x2bb)](_0x4a0909);}['_toggleOnline'](){const _0x411681=_0x2a17cf;var _0x10ba6e;if(this[_0x411681(0x3b0)]=!0x0,((_0x10ba6e=this[_0x411681(0x215)][_0x411681(0x3d6)]())==null?void 0x0:_0x10ba6e[_0x411681(0x2e2)]())!==this[_0x411681(0x2a2)])return;const _0x372896=this[_0x411681(0x28a)][_0x411681(0x302)](Y[_0x411681(0x365)])[_0x411681(0x28b)]();Array['isArray'](_0x372896)&&_0x372896[_0x411681(0x1fd)]>0x0&&this[_0x411681(0x1d8)](_0x372896);}[_0x2a17cf(0x248)](){const _0x1df678=_0x2a17cf;this[_0x1df678(0x3b0)]=!0x1;}};de=ht([L(0x2,a['Inject'](a[_0x2a17cf(0x231)])),L(0x3,a[_0x2a17cf(0x22b)](Ce)),L(0x4,a[_0x2a17cf(0x22b)](u[_0x2a17cf(0x26c)])),L(0x5,a[_0x2a17cf(0x22b)](pe)),L(0x6,m[_0x2a17cf(0x2de)]),L(0x7,a[_0x2a17cf(0x281)]),L(0x8,a[_0x2a17cf(0x251)])],de);var St=Object[_0x2a17cf(0x330)],ft=(_0x390501,_0x503694,_0x485486,_0x428a9a)=>{const _0x51f557=_0x2a17cf;for(var _0x1a0859=_0x428a9a>0x1?void 0x0:_0x428a9a?St(_0x503694,_0x485486):_0x503694,_0x51feb4=_0x390501[_0x51f557(0x1fd)]-0x1,_0x5cc5e3;_0x51feb4>=0x0;_0x51feb4--)(_0x5cc5e3=_0x390501[_0x51feb4])&&(_0x1a0859=_0x5cc5e3(_0x1a0859)||_0x1a0859);return _0x1a0859;},A=(_0x47907d,_0x37894d)=>(_0x47465a,_0x30981d)=>_0x37894d(_0x47465a,_0x30981d,_0x47907d);const It=0x12c,vt=0x64,gt=()=>{let _0x26d615=[],_0x694c89=!0x1;return _0x1716cc=>{_0x26d615['push'](_0x1716cc),_0x694c89||(_0x694c89=!0x0,setTimeout(()=>{const _0x126a6b=_0x1209;_0x26d615[_0x126a6b(0x1ce)](_0x599997=>_0x599997()),_0x26d615=[],_0x694c89=!0x1;}));};};let Se=class extends a[_0x2a17cf(0x359)]{constructor(_0x2d7456,_0x398886,_0x110928,_0x198252,_0x1e6800,_0x43e8d7,_0x6c4ed1,_0x5677c4){const _0x2687a5=_0x2a17cf;super(),h(this,_0x2687a5(0x3b0),!0x1),h(this,_0x2687a5(0x259),!0x1),h(this,_0x2687a5(0x392),new d[(_0x2687a5(0x2db))](new Map())),h(this,_0x2687a5(0x3d5),this[_0x2687a5(0x392)]['asObservable']()),h(this,_0x2687a5(0x381),new d[(_0x2687a5(0x2db))]([])),h(this,_0x2687a5(0x1cc),this[_0x2687a5(0x381)]['pipe'](d[_0x2687a5(0x2fd)](It))),h(this,_0x2687a5(0x1d8),a[_0x2687a5(0x189)]((_0x433090,_0x450919)=>{const _0x203a88=_0x2687a5,_0x5e73ca={'eventID':m[_0x203a88(0x366)][_0x203a88(0x32d)],'data':{'unitID':this[_0x203a88(0x2a2)],'memberID':this[_0x203a88(0x1f0)]['getMemberID'](),'selection':Ee[_0x203a88(0x316)](_0x433090,_0x450919['range'])}};this['_session'][_0x203a88(0x361)](_0x5e73ca,this['unitID']);},vt)),(this['unitID']=_0x2d7456,this['_session']=_0x398886,this['_injector']=_0x110928,this['_colorAssignService']=_0x198252,this[_0x2687a5(0x27e)]=_0x1e6800,this['_univerInstanceService']=_0x43e8d7,this[_0x2687a5(0x350)]=_0x6c4ed1,this['_refRangeService']=_0x5677c4);}get[_0x2a17cf(0x2f5)](){const _0x1bba97=_0x2a17cf;return this['_cursorInfo$'][_0x1bba97(0x1d9)]();}get[_0x2a17cf(0x360)](){const _0x17cef5=_0x2a17cf;return this['_roomMembers$'][_0x17cef5(0x1d9)]();}[_0x2a17cf(0x17b)](){const _0x2ab00f=_0x2a17cf;super['dispose'](),this[_0x2ab00f(0x392)][_0x2ab00f(0x2bb)](new Map()),this[_0x2ab00f(0x392)]['complete'](),this[_0x2ab00f(0x381)]['next']([]),this[_0x2ab00f(0x381)][_0x2ab00f(0x322)]();}[_0x2a17cf(0x26e)](){const _0xc1a0dc=_0x2a17cf;this[_0xc1a0dc(0x259)]||(this[_0xc1a0dc(0x259)]=!0x0,this[_0xc1a0dc(0x1f0)][_0xc1a0dc(0x38d)]['pipe'](d[_0xc1a0dc(0x245)](this['dispose$']))[_0xc1a0dc(0x3f7)](_0x152af4=>{const _0x462a5a=_0xc1a0dc;_0x152af4===u[_0x462a5a(0x207)][_0x462a5a(0x23a)]?this[_0x462a5a(0x337)]():this[_0x462a5a(0x248)]();}),this[_0xc1a0dc(0x1f0)][_0xc1a0dc(0x1ab)][_0xc1a0dc(0x3a6)](d[_0xc1a0dc(0x245)](this[_0xc1a0dc(0x178)]))[_0xc1a0dc(0x3f7)](_0x3834ca=>{const _0x2e426f=_0xc1a0dc,_0x102b75=_0x3834ca[_0x2e426f(0x2f2)];_0x102b75===m['CollaborationEvent'][_0x2e426f(0x32d)]&&this['_onCursorUpdate'](_0x3834ca),_0x102b75===m['CollaborationEvent'][_0x2e426f(0x1ba)]&&this[_0x2e426f(0x2d4)](_0x3834ca);}),this[_0xc1a0dc(0x358)](),this[_0xc1a0dc(0x1f5)](this['_commandService'][_0xc1a0dc(0x34e)](_0x4579cd=>{const _0x4d8cb9=_0xc1a0dc;if(this[_0x4d8cb9(0x3b0)]&&_0x4579cd['id']===g['SetSelectionsOperation']['id']&&_0x4579cd[_0x4d8cb9(0x2c2)][_0x4d8cb9(0x2a1)]===this[_0x4d8cb9(0x2a2)]){const _0x170410=_0x4579cd[_0x4d8cb9(0x2c2)];this[_0x4d8cb9(0x1d8)](_0x170410[_0x4d8cb9(0x3bb)],_0x170410[_0x4d8cb9(0x370)][0x0]);}})));}[_0x2a17cf(0x211)](_0x1be056){const _0x1e780b=_0x2a17cf;var _0x5e6bc5,_0x2831bd;const {memberID:_0xdea852,selection:_0x3bb25e}=_0x1be056[_0x1e780b(0x1d0)],{sheetName:_0x1f32b5,range:_0x193806}=Ee[_0x1e780b(0x35c)](_0x3bb25e),_0x19bddc={'name':(_0x2831bd=(_0x5e6bc5=this[_0x1e780b(0x27e)][_0x1e780b(0x3e7)](this[_0x1e780b(0x2a2)],_0xdea852))==null?void 0x0:_0x5e6bc5['name'])!=null?_0x2831bd:'Unknown\x20user','range':this['_getMergeRange'](_0x1f32b5,_0x193806),'sheetID':_0x1f32b5,'color':this[_0x1e780b(0x1ed)]['assignAColorForMemberID'](_0xdea852),'selection':_0x3bb25e},_0x53294b=this[_0x1e780b(0x2f5)];_0x53294b[_0x1e780b(0x228)](_0xdea852,_0x19bddc),this[_0x1e780b(0x392)][_0x1e780b(0x2bb)](_0x53294b);}['_onCursorDelete'](_0x3a637b){const _0x2e8afb=_0x2a17cf,{memberID:_0x5a578a}=_0x3a637b[_0x2e8afb(0x1d0)],_0x1d5a95=this[_0x2e8afb(0x2f5)];_0x1d5a95[_0x2e8afb(0x184)](_0x5a578a),this[_0x2e8afb(0x392)]['next'](_0x1d5a95);}['_getMergeRange'](_0x4e5854,_0x5ce635){const _0x12deba=_0x2a17cf;var _0x3fcdbc,_0x475c03;const _0x2a83bd=(_0x475c03=(_0x3fcdbc=this[_0x12deba(0x215)][_0x12deba(0x339)](this[_0x12deba(0x2a2)]))==null?void 0x0:_0x3fcdbc[_0x12deba(0x1a2)](_0x4e5854))==null?void 0x0:_0x475c03[_0x12deba(0x1e0)]();return(_0x2a83bd==null?void 0x0:_0x2a83bd[_0x12deba(0x257)](_0x2b3583=>a['Rectangle'][_0x12deba(0x23f)](_0x2b3583,_0x5ce635)))||_0x5ce635;}[_0x2a17cf(0x358)](){const _0x24e610=_0x2a17cf,_0x561fa1=new a[(_0x24e610(0x3a2))](),_0x49aef2=gt(),_0x5845a5=()=>{const _0x4c69aa=_0x24e610;_0x561fa1[_0x4c69aa(0x17b)]();const _0x2e7b8c=(_0x58d3de,_0x5b3992,_0x1cd0e3,_0x532915)=>{const _0xbd3b11=_0x4c69aa;let _0x49caf1=[];switch(_0x58d3de['id']){case g[_0xbd3b11(0x3f6)][_0xbd3b11(0x1cf)]:{_0x49caf1=g[_0xbd3b11(0x2fc)](_0x58d3de,_0x532915);break;}case g[_0xbd3b11(0x3f6)][_0xbd3b11(0x33b)]:{_0x49caf1=g['handleDeleteRangeMoveUp'](_0x58d3de,_0x532915);break;}case g[_0xbd3b11(0x3f6)]['InsertColCommandId']:{_0x49caf1=g[_0xbd3b11(0x3b1)](_0x58d3de,_0x532915);break;}case g[_0xbd3b11(0x3f6)][_0xbd3b11(0x188)]:{_0x49caf1=g[_0xbd3b11(0x1d1)](_0x58d3de,_0x532915);break;}case g[_0xbd3b11(0x3f6)][_0xbd3b11(0x18a)]:{_0x49caf1=g[_0xbd3b11(0x244)](_0x58d3de,_0x532915);break;}case g[_0xbd3b11(0x3f6)][_0xbd3b11(0x373)]:{_0x49caf1=g[_0xbd3b11(0x31d)](_0x58d3de,_0x532915);break;}case g[_0xbd3b11(0x3f6)][_0xbd3b11(0x288)]:{_0x49caf1=g[_0xbd3b11(0x235)](_0x58d3de,_0x532915);break;}case g[_0xbd3b11(0x3f6)][_0xbd3b11(0x274)]:{_0x49caf1=g[_0xbd3b11(0x344)](_0x58d3de,_0x532915);break;}case g[_0xbd3b11(0x3f6)][_0xbd3b11(0x1db)]:{_0x49caf1=g[_0xbd3b11(0x1c3)](_0x58d3de,_0x532915);break;}}const _0x3c6733=g[_0xbd3b11(0x3f0)](_0x49caf1,_0x532915),_0x4ba9ce=this[_0xbd3b11(0x2f5)]['get'](_0x5b3992);if(_0x4ba9ce&&_0x3c6733){const _0xb57a4e={..._0x4ba9ce,'range':_0x3c6733};this[_0xbd3b11(0x2f5)][_0xbd3b11(0x228)](_0x5b3992,_0xb57a4e),_0x49aef2(()=>{const _0x541b15=_0xbd3b11,_0x308ea1=this[_0x541b15(0x321)]['registerRefRange'](_0x3c6733,_0x2b9d84=>(_0x308ea1[_0x541b15(0x17b)](),_0x2e7b8c(_0x2b9d84,_0x5b3992,_0x1cd0e3,_0x3c6733)));_0x561fa1[_0x541b15(0x378)](_0x308ea1);});}return{'redos':[],'undos':[]};};this[_0x4c69aa(0x2f5)][_0x4c69aa(0x1ce)]((_0x5e0eb5,_0x15a675)=>{const _0xc12516=_0x4c69aa,{range:_0x3015be,sheetID:_0xb0e827}=_0x5e0eb5,_0x3451c8=this['_refRangeService'][_0xc12516(0x33e)](_0x3015be,_0x592119=>(_0x3451c8[_0xc12516(0x17b)](),_0x2e7b8c(_0x592119,_0x15a675,_0xb0e827,_0x3015be)));_0x561fa1['add'](_0x3451c8);});};this[_0x24e610(0x1f5)](a['toDisposable'](this['_cursorInfo$'][_0x24e610(0x3f7)](()=>{_0x5845a5();})));}[_0x2a17cf(0x337)](){const _0x2a150d=_0x2a17cf;var _0x476604,_0x3b911d;if(this['_online']=!0x0,((_0x476604=this[_0x2a150d(0x215)][_0x2a150d(0x3d6)]())==null?void 0x0:_0x476604[_0x2a150d(0x2e2)]())!==this[_0x2a150d(0x2a2)])return;const _0x423681=(_0x3b911d=this['_injector'][_0x2a150d(0x302)](g[_0x2a150d(0x2e9)])['getCurrentSelections']())==null?void 0x0:_0x3b911d[0x0],_0x17bc45=this[_0x2a150d(0x215)][_0x2a150d(0x300)](a[_0x2a150d(0x2ab)][_0x2a150d(0x22c)])['getActiveSheet']();_0x423681&&_0x17bc45&&this[_0x2a150d(0x1d8)](_0x17bc45[_0x2a150d(0x298)](),_0x423681);}[_0x2a17cf(0x248)](){const _0x146e5c=_0x2a17cf;this[_0x146e5c(0x3b0)]=!0x1;}};Se=ft([A(0x2,a[_0x2a17cf(0x22b)](a['Injector'])),A(0x3,a[_0x2a17cf(0x22b)](Ce)),A(0x4,a[_0x2a17cf(0x22b)](u[_0x2a17cf(0x26c)])),A(0x5,a['IUniverInstanceService']),A(0x6,a['ICommandService']),A(0x7,a['Inject'](g['RefRangeService']))],Se);var mt=Object[_0x2a17cf(0x330)],Ct=(_0x11f6c7,_0x4fa241,_0x5ebaad,_0x26610d)=>{const _0x510764=_0x2a17cf;for(var _0x3bec61=_0x26610d>0x1?void 0x0:_0x26610d?mt(_0x4fa241,_0x5ebaad):_0x4fa241,_0x457fea=_0x11f6c7[_0x510764(0x1fd)]-0x1,_0x24c2bb;_0x457fea>=0x0;_0x457fea--)(_0x24c2bb=_0x11f6c7[_0x457fea])&&(_0x3bec61=_0x24c2bb(_0x3bec61)||_0x3bec61);return _0x3bec61;},ie=(_0x164d26,_0x4f36b8)=>(_0x6f9dc,_0x3c31da)=>_0x4f36b8(_0x6f9dc,_0x3c31da,_0x164d26);let x=class extends a[_0x2a17cf(0x359)]{constructor(_0xaf2e36,_0x38b474,_0x573f9c){const _0x537f2d=_0x2a17cf;super(),h(this,_0x537f2d(0x220),new Map()),h(this,_0x537f2d(0x3eb),new d['Subject']()),(this[_0x537f2d(0x215)]=_0xaf2e36,this[_0x537f2d(0x28a)]=_0x38b474,this[_0x537f2d(0x2f1)]=_0x573f9c,this['_init']());}[_0x2a17cf(0x17b)](){const _0x3d324b=_0x2a17cf;super[_0x3d324b(0x17b)](),this[_0x3d324b(0x3eb)][_0x3d324b(0x322)](),this[_0x3d324b(0x220)][_0x3d324b(0x1ce)](_0x373488=>_0x373488['dispose']());}[_0x2a17cf(0x312)](_0x2e5de5){const _0xc22fa4=_0x2a17cf;return this[_0xc22fa4(0x220)]['has'](_0x2e5de5)?this[_0xc22fa4(0x220)]['get'](_0x2e5de5)[_0xc22fa4(0x3d5)]:this[_0xc22fa4(0x3eb)][_0xc22fa4(0x3a6)](d[_0xc22fa4(0x237)](_0xc6a178=>_0xc6a178['unitID']===_0x2e5de5),d[_0xc22fa4(0x3b4)](_0x28ccb8=>_0x28ccb8[_0xc22fa4(0x3d5)]));}[_0x2a17cf(0x259)](){const _0x2bcaa4=_0x2a17cf;this[_0x2bcaa4(0x215)][_0x2bcaa4(0x28d)](a[_0x2bcaa4(0x2ab)]['UNIVER_SHEET'])[_0x2bcaa4(0x3a6)](d[_0x2bcaa4(0x245)](this[_0x2bcaa4(0x178)]))['subscribe'](async _0x3a0ac0=>{const _0x3f0949=_0x2bcaa4,_0x583e60=_0x3a0ac0[_0x3f0949(0x2e2)](),_0x4e4805=await this[_0x3f0949(0x2a7)](_0x583e60);this[_0x3f0949(0x3eb)][_0x3f0949(0x2bb)](_0x4e4805),this[_0x3f0949(0x220)][_0x3f0949(0x228)](_0x583e60,_0x4e4805);}),this[_0x2bcaa4(0x215)][_0x2bcaa4(0x28d)](a[_0x2bcaa4(0x2ab)]['UNIVER_DOC'])[_0x2bcaa4(0x3a6)](d[_0x2bcaa4(0x245)](this[_0x2bcaa4(0x178)]))[_0x2bcaa4(0x3a6)](d[_0x2bcaa4(0x237)](_0x306d7f=>!_0x306d7f[_0x2bcaa4(0x2e2)]()['startsWith']('__')))['subscribe'](async _0x5eb47f=>{const _0x3d1329=_0x2bcaa4,_0x382300=_0x5eb47f[_0x3d1329(0x2e2)](),_0x32aad1=await this['_startDocCollabCursor'](_0x382300);this[_0x3d1329(0x3eb)][_0x3d1329(0x2bb)](_0x32aad1),this[_0x3d1329(0x220)][_0x3d1329(0x228)](_0x382300,_0x32aad1);}),d['merge'](this['_univerInstanceService'][_0x2bcaa4(0x352)](a[_0x2bcaa4(0x2ab)][_0x2bcaa4(0x347)]),this[_0x2bcaa4(0x215)][_0x2bcaa4(0x352)](a[_0x2bcaa4(0x2ab)]['UNIVER_SHEET']))[_0x2bcaa4(0x3a6)](d[_0x2bcaa4(0x245)](this[_0x2bcaa4(0x178)]))[_0x2bcaa4(0x3f7)](_0x22be8c=>{const _0x3ae681=_0x2bcaa4,_0x43e8c5=_0x22be8c[_0x3ae681(0x2e2)](),_0x4b7f05=this[_0x3ae681(0x220)]['get'](_0x43e8c5);_0x4b7f05&&(_0x4b7f05['dispose'](),this[_0x3ae681(0x220)]['delete'](_0x43e8c5));});}async[_0x2a17cf(0x2a7)](_0x46ab8c){const _0x222993=_0x2a17cf,_0x16bf49=await this[_0x222993(0x2f1)][_0x222993(0x24a)](_0x46ab8c),_0x54962b=this['_injector'][_0x222993(0x3a4)](Se,_0x46ab8c,_0x16bf49);return _0x54962b[_0x222993(0x26e)](),_0x54962b;}async[_0x2a17cf(0x34c)](_0x95f837){const _0x593916=_0x2a17cf,_0x199aed=await this['_collabSessionService'][_0x593916(0x24a)](_0x95f837),_0x75b283=this[_0x593916(0x28a)]['createInstance'](de,_0x95f837,_0x199aed);return _0x75b283[_0x593916(0x26e)](),_0x75b283;}};x=Ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x2a17cf(0x22b)](a['Injector'])),ie(0x2,a[_0x2a17cf(0x22b)](u[_0x2a17cf(0x199)]))],x);const W=0x14,Te=0xc8,ne=0x4,pt=0x5;function Et(_0x1b7119,_0x474fdb){const _0x2a1617=_0x2a17cf;let {radius:_0x1d0e64,width:_0x43384e,height:_0x1d93f4}=_0x474fdb;_0x1d0e64=_0x1d0e64!=null?_0x1d0e64:0x0,_0x43384e=_0x43384e!=null?_0x43384e:0x1e,_0x1d93f4=_0x1d93f4!=null?_0x1d93f4:0x1e;let _0x26ff6c=0x0,_0x468c3f=0x0,_0x35c415=0x0;_0x26ff6c=_0x468c3f=_0x35c415=Math['min'](_0x1d0e64,_0x43384e/0x2,_0x1d93f4/0x2),_0x1b7119[_0x2a1617(0x355)](),_0x1b7119[_0x2a1617(0x3c5)](_0x26ff6c,0x0),_0x1b7119['lineTo'](_0x43384e-_0x468c3f,0x0),_0x1b7119[_0x2a1617(0x233)](_0x43384e-_0x468c3f,_0x468c3f,_0x468c3f,Math['PI']*0x3/0x2,0x0,!0x1),_0x1b7119[_0x2a1617(0x265)](_0x43384e,_0x1d93f4-_0x35c415),_0x1b7119['arc'](_0x43384e-_0x35c415,_0x1d93f4-_0x35c415,_0x35c415,0x0,Math['PI']/0x2,!0x1),_0x1b7119[_0x2a1617(0x265)](0x0,_0x1d93f4),_0x1b7119[_0x2a1617(0x265)](0x0,_0x26ff6c),_0x1b7119[_0x2a1617(0x233)](_0x26ff6c,_0x26ff6c,_0x26ff6c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1b7119[_0x2a1617(0x273)](),_0x474fdb['fill']&&(_0x1b7119['save'](),_0x1b7119[_0x2a1617(0x33f)]=_0x474fdb[_0x2a1617(0x36d)],_0x474fdb['fillRule']===_0x2a1617(0x3d4)?_0x1b7119['fill']('evenodd'):_0x1b7119[_0x2a1617(0x36d)](),_0x1b7119[_0x2a1617(0x241)]());}class ee extends p[_0x2a17cf(0x1e9)]{constructor(_0x3d4a20,_0x8ab86e){const _0xe3e50a=_0x2a17cf;super(_0x3d4a20,_0x8ab86e),h(this,_0xe3e50a(0x20b)),h(this,_0xe3e50a(0x348)),(this['color']=_0x8ab86e==null?void 0x0:_0x8ab86e[_0xe3e50a(0x20b)],this[_0xe3e50a(0x348)]=_0x8ab86e==null?void 0x0:_0x8ab86e[_0xe3e50a(0x348)]);}static[_0x2a17cf(0x279)](_0xff5b7a,_0x3fc8ed){const _0x547878=_0x2a17cf,{text:_0xd652b9,color:_0x1cc952}=_0x3fc8ed;_0xff5b7a[_0x547878(0x2ec)](),_0xff5b7a['font']=_0x547878(0x255);const _0x1a3de1=_0xff5b7a[_0x547878(0x325)](_0xd652b9)[_0x547878(0x175)],_0x4bda6d=Math[_0x547878(0x3d7)](_0x1a3de1+0x2*ne,Te);Et(_0xff5b7a,{'height':W,'radius':0x4,'width':_0x4bda6d,'fill':_0x1cc952}),_0xff5b7a[_0x547878(0x33f)]=_0x547878(0x3ed);const _0x88d912=ne,_0x382ea1=W-pt,_0x3580e8=Te-0x2*ne;if(_0x1a3de1>_0x3580e8){let _0x16d9e9='',_0x19eedd=0x0;for(const _0x255c29 of _0xd652b9){const _0x5bc2ce=_0xff5b7a[_0x547878(0x325)](_0x255c29)['width'];if(_0x19eedd+_0x5bc2ce<=_0x3580e8-_0xff5b7a[_0x547878(0x325)](_0x547878(0x1bf))['width'])_0x16d9e9+=_0x255c29,_0x19eedd+=_0x5bc2ce;else{_0x16d9e9+='...';break;}}_0xff5b7a[_0x547878(0x291)](_0x16d9e9,_0x88d912,_0x382ea1);}else _0xff5b7a[_0x547878(0x291)](_0xd652b9,_0x88d912,_0x382ea1);_0xff5b7a['restore']();}[_0x2a17cf(0x368)](_0x2997cf){const _0x2ffb78=_0x2a17cf;ee[_0x2ffb78(0x279)](_0x2997cf,this);}}const re=_0x2a17cf(0x2ba),bt=_0x2a17cf(0x364),Ot=_0x2a17cf(0x31b),F=0x6,Tt=1.5,oe=0x4,Rt=1.5,Dt=_0x2a17cf(0x18d);class Re{constructor(_0x181591,_0x167c45,_0x21601f,_0x50b446){const _0x1ee91=_0x2a17cf;h(this,'_shapes',[]),h(this,_0x1ee91(0x317),null),h(this,_0x1ee91(0x2f0),null),h(this,_0x1ee91(0x1f3),null),h(this,_0x1ee91(0x2a9),null),h(this,_0x1ee91(0x1a6),null),(this[_0x1ee91(0x2bd)]=_0x181591,this[_0x1ee91(0x3de)]=_0x167c45,this['_docSkeleton']=_0x21601f,this[_0x1ee91(0x32c)]=_0x50b446,this[_0x1ee91(0x2c7)]());}set['_hover'](_0x3f9e33){const _0x2dd81b=_0x2a17cf;_0x3f9e33?(this[_0x2dd81b(0x1f3)]&&this[_0x2dd81b(0x1f3)][_0x2dd81b(0x37f)](),this[_0x2dd81b(0x2f0)]&&this[_0x2dd81b(0x2f0)][_0x2dd81b(0x227)]()):(this[_0x2dd81b(0x1f3)]&&this[_0x2dd81b(0x1f3)][_0x2dd81b(0x227)](),this[_0x2dd81b(0x2f0)]&&this['_textBubble']['hide']());}[_0x2a17cf(0x17b)](){const _0x41048c=_0x2a17cf;for(const _0x2f8047 of this[_0x41048c(0x313)])_0x2f8047['dispose']();this[_0x41048c(0x2f0)]&&this[_0x41048c(0x2f0)][_0x41048c(0x17b)](),this['_anchorDot']&&this[_0x41048c(0x1f3)]['dispose'](),this[_0x41048c(0x317)]&&this['_anchor']['dispose'](),this[_0x41048c(0x1a6)]&&this[_0x41048c(0x1a6)]();}[_0x2a17cf(0x2c7)](){const _0x52e462=_0x2a17cf;var _0x4132c7;const {_docSkeleton:_0x197f79,_document:_0x5884aa}=this,{color:_0x5ce654,name:_0x2641fc,ranges:_0x1605f4}=this[_0x52e462(0x2bd)],_0x5aad3f=_0x5884aa[_0x52e462(0x1ae)](),{docsLeft:_0x3c5f8d,docsTop:_0x184e46}=_0x5aad3f,_0x7e7713=new E[(_0x52e462(0x280))](_0x5aad3f,_0x197f79);for(const {startOffset:_0x28f5cd,endOffset:_0x163522,rangeType:_0x28d841,segmentId:_0x162924,segmentPage:_0x2bd9bb,collapsed:_0x531106,isActive:_0x4b4f2b}of _0x1605f4){const _0xdb2366=_0x197f79['findNodePositionByCharIndex'](_0x28f5cd,!0x0,_0x162924,_0x2bd9bb);let _0x446ac9=_0x197f79['findNodePositionByCharIndex'](_0x163522,!0x0,_0x162924,_0x2bd9bb);if(_0x446ac9==null&&(_0x446ac9=_0x197f79['findNodePositionByCharIndex'](_0x163522-0x1,!0x1,_0x162924,_0x2bd9bb)),_0x4b4f2b){const {contentBoxPointGroup:_0x9d9ebe}=_0x7e7713[_0x52e462(0x1b9)](_0x446ac9,_0x446ac9);if(_0x9d9ebe['length']===0x0)continue;this['_drawAnchor'](_0x5ce654,_0x9d9ebe,_0x3c5f8d,_0x184e46,_0x2641fc),this[_0x52e462(0x1a6)]=this[_0x52e462(0x1a7)]();}if(_0xdb2366&&_0x446ac9){if(_0x28d841===a[_0x52e462(0x193)][_0x52e462(0x3df)]){const _0x1c7dca=new E[(_0x52e462(0x351))](_0x5aad3f,_0x197f79),{pointGroup:_0x3e78cb}=(_0x4132c7=_0x1c7dca[_0x52e462(0x1b9)](_0xdb2366,_0x446ac9))!=null?_0x4132c7:{};if(_0x3e78cb==null||_0x3e78cb[_0x52e462(0x1fd)]===0x0)continue;this[_0x52e462(0x2e8)](_0x5ce654,_0x3e78cb,_0x3c5f8d,_0x184e46);}else{if(!_0x531106){const {borderBoxPointGroup:_0x534393}=_0x7e7713[_0x52e462(0x1b9)](_0xdb2366,_0x446ac9);if(_0x534393[_0x52e462(0x1fd)]===0x0)continue;this[_0x52e462(0x286)](_0x5ce654,_0x534393,_0x3c5f8d,_0x184e46);}}}}}['_drawAnchor'](_0x18ee29,_0x4bf9d8,_0x3b77f3,_0x9bea4c,_0x57d75a){const _0x319c9f=_0x2a17cf,_0x17177b=this['_getAnchorBounding'](_0x4bf9d8),{left:_0x226d8e,top:_0x743f47,height:_0x53097a}=_0x17177b,_0x4be26b=this[_0x319c9f(0x2d9)](),_0x54c1ce=Rt/_0x4be26b,_0x356b91=new p[(_0x319c9f(0x176))](re+a[_0x319c9f(0x2af)](F),{'left':_0x226d8e+_0x3b77f3-_0x54c1ce,'top':_0x743f47+_0x9bea4c,'height':_0x53097a,'width':Tt,'fill':_0x18ee29||p[_0x319c9f(0x221)](a[_0x319c9f(0x385)][_0x319c9f(0x395)],0x0),'strokeWidth':_0x54c1ce,'stroke':Dt,'evented':!0x0});this[_0x319c9f(0x317)]=_0x356b91,this[_0x319c9f(0x3de)][_0x319c9f(0x374)](_0x356b91,E[_0x319c9f(0x19f)]);const _0xb6b84d=new p[(_0x319c9f(0x176))](re+a['generateRandomId'](F),{'left':_0x226d8e+_0x3b77f3-_0x54c1ce,'top':_0x743f47+_0x9bea4c-oe/0x2,'height':oe,'width':oe,'fill':_0x18ee29||p[_0x319c9f(0x221)](a['COLORS'][_0x319c9f(0x395)],0x0),'strokeWidth':0x0,'stroke':_0x18ee29||p[_0x319c9f(0x221)](a[_0x319c9f(0x385)][_0x319c9f(0x395)],0x0),'evented':!0x1});this['_anchorDot']=_0xb6b84d,this[_0x319c9f(0x3de)][_0x319c9f(0x374)](_0xb6b84d,E[_0x319c9f(0x19f)]);const _0x476d86=new ee(re+a[_0x319c9f(0x2af)](F),{'left':_0x226d8e+_0x3b77f3-_0x54c1ce,'top':_0x743f47+_0x9bea4c-W,'text':_0x57d75a,'color':_0x18ee29});this[_0x319c9f(0x2f0)]=_0x476d86,this[_0x319c9f(0x3de)][_0x319c9f(0x374)](_0x476d86,E[_0x319c9f(0x19f)]),this[_0x319c9f(0x3cb)]=!0x1;}[_0x2a17cf(0x1a7)](){const _0x47a036=_0x2a17cf,_0x3afd64=this[_0x47a036(0x317)][_0x47a036(0x2e0)][_0x47a036(0x3d8)](()=>{const _0x237c33=_0x47a036;this[_0x237c33(0x3cb)]=!0x0;}),_0x55dc04=this[_0x47a036(0x317)][_0x47a036(0x24e)][_0x47a036(0x3d8)](()=>{this['_hideTimer']&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x5a66af=_0x1209;this[_0x5a66af(0x3cb)]=!0x1;},0x7d0);});return()=>{const _0x3948f3=_0x47a036;_0x3afd64[_0x3948f3(0x1c1)](),_0x55dc04[_0x3948f3(0x1c1)]();};}['_drawTextRange'](_0x164ed5,_0x6eaf9e,_0x403422,_0x1cbef7){const _0x3662d7=_0x2a17cf,_0x27f869=new a[(_0x3662d7(0x2df))](_0x164ed5)[_0x3662d7(0x1e7)](0.2)[_0x3662d7(0x3d1)](),_0x4625c1=new p['RegularPolygon'](bt+a[_0x3662d7(0x2af)](F),{'pointsGroup':_0x6eaf9e,'fill':_0x27f869||p['getColor'](a[_0x3662d7(0x385)][_0x3662d7(0x395)],0.2),'left':_0x403422,'top':_0x1cbef7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3662d7(0x313)][_0x3662d7(0x203)](_0x4625c1),this[_0x3662d7(0x3de)][_0x3662d7(0x374)](_0x4625c1,E[_0x3662d7(0x19f)]);}[_0x2a17cf(0x2e8)](_0xa96fba,_0x565f5a,_0x31b1ab,_0x1fb1e2){const _0x5a653c=_0x2a17cf,_0x4771f8=new a[(_0x5a653c(0x2df))](_0xa96fba)[_0x5a653c(0x1e7)](0.2)[_0x5a653c(0x3d1)](),_0x2809d8=new p['RegularPolygon'](Ot+a['generateRandomId'](F),{'pointsGroup':_0x565f5a,'fill':_0x4771f8||p[_0x5a653c(0x221)](a[_0x5a653c(0x385)][_0x5a653c(0x395)],0.2),'left':_0x31b1ab,'top':_0x1fb1e2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5a653c(0x313)]['push'](_0x2809d8),this[_0x5a653c(0x3de)]['addObject'](_0x2809d8,E[_0x5a653c(0x19f)]);}[_0x2a17cf(0x25f)](_0x2b50ba){const _0x8f4291=_0x2b50ba[0x0],_0x58ce27=_0x8f4291[0x0],_0x10bf0a=_0x8f4291[0x2],{x:_0x7c1dd9,y:_0x4ca5ec}=_0x58ce27,{x:_0x13c9f5,y:_0x2aaeb9}=_0x10bf0a;return{'left':_0x7c1dd9,'top':_0x4ca5ec,'width':_0x13c9f5-_0x7c1dd9,'height':_0x2aaeb9-_0x4ca5ec};}['_getScale'](){const _0x3be70d=_0x2a17cf,{scaleX:_0x2389f3,scaleY:_0x4fa7be}=this['_scene'][_0x3be70d(0x1f8)]();return Math[_0x3be70d(0x1e4)](_0x2389f3,_0x4fa7be);}}var Ut=Object['getOwnPropertyDescriptor'],Nt=(_0x392dc0,_0x48f805,_0x21c174,_0x5435a0)=>{const _0x526f5c=_0x2a17cf;for(var _0x13bce8=_0x5435a0>0x1?void 0x0:_0x5435a0?Ut(_0x48f805,_0x21c174):_0x48f805,_0x31f015=_0x392dc0[_0x526f5c(0x1fd)]-0x1,_0x4b7ad8;_0x31f015>=0x0;_0x31f015--)(_0x4b7ad8=_0x392dc0[_0x31f015])&&(_0x13bce8=_0x4b7ad8(_0x13bce8)||_0x13bce8);return _0x13bce8;},X=(_0x3184ee,_0x23e7bf)=>(_0x24d35f,_0x3fe87f)=>_0x23e7bf(_0x24d35f,_0x3fe87f,_0x3184ee);let fe=class extends a[_0x2a17cf(0x359)]{constructor(_0x174add,_0x136ff9,_0x4c5409,_0x11310d,_0xf72085){const _0x32fdd3=_0x2a17cf;super(),h(this,_0x32fdd3(0x3c4),[]),h(this,_0x32fdd3(0x1da),[]),(this[_0x32fdd3(0x30a)]=_0x174add,this[_0x32fdd3(0x20c)]=_0x136ff9,this[_0x32fdd3(0x3c8)]=_0x4c5409,this['_commandService']=_0x11310d,this[_0x32fdd3(0x2bf)]=_0xf72085,this['_init']());}[_0x2a17cf(0x259)](){const _0x2ad521=_0x2a17cf,_0x4d6119=this[_0x2ad521(0x30a)][_0x2ad521(0x2a1)],_0x1c55ac=this[_0x2ad521(0x20c)];this[_0x2ad521(0x1f5)](d[_0x2ad521(0x2d3)]([this[_0x2ad521(0x3c8)][_0x2ad521(0x312)](_0x4d6119),this['_themeService'][_0x2ad521(0x21b)]])[_0x2ad521(0x3a6)]($[_0x2ad521(0x183)](([_0x5c447a,_0x428de2])=>({'skeleton':_0x1c55ac['getSkeleton'](),'cursors':[..._0x5c447a[_0x2ad521(0x399)]()]['flatMap'](_0x2e9d4e=>({..._0x2e9d4e,'color':this[_0x2ad521(0x2bf)]['getColorFromTheme'](_0x2e9d4e[_0x2ad521(0x20b)])}))})))[_0x2ad521(0x3f7)](_0x3f8fd8=>{const _0x59305e=_0x2ad521;if(this[_0x59305e(0x1c7)](),_0x3f8fd8){const {skeleton:_0x33c9d4,cursors:_0x2e58f7}=_0x3f8fd8;this[_0x59305e(0x213)](_0x33c9d4,_0x2e58f7);}})),this[_0x2ad521(0x30f)](),this[_0x2ad521(0x29c)]();}[_0x2a17cf(0x213)](_0x32b5df,_0x5e9ce7){const _0x4f4614=_0x2a17cf,{scene:_0x32da93,mainComponent:_0x2ac6e0}=this[_0x4f4614(0x30a)],_0x1a6860=_0x5e9ce7[_0x4f4614(0x183)](_0x424ceb=>new Re(_0x424ceb,_0x32da93,_0x32b5df,_0x2ac6e0));this[_0x4f4614(0x3c4)]=_0x1a6860,this[_0x4f4614(0x1da)]=_0x5e9ce7;}[_0x2a17cf(0x285)](){const _0x38087f=_0x2a17cf;this[_0x38087f(0x1c7)]();const {scene:_0x166b9f,mainComponent:_0x38a566}=this['_context'],_0x55647d=this[_0x38087f(0x20c)][_0x38087f(0x398)](),_0x486791=this[_0x38087f(0x1da)][_0x38087f(0x183)](_0x491f9a=>new Re(_0x491f9a,_0x166b9f,_0x55647d,_0x38a566));this['_cursorShapes']=_0x486791;}[_0x2a17cf(0x1c7)](){const _0x2bee0c=_0x2a17cf;this[_0x2bee0c(0x3c4)][_0x2bee0c(0x1ce)](_0x1ad7e9=>_0x1ad7e9[_0x2bee0c(0x17b)]()),this[_0x2bee0c(0x3c4)]=[];}[_0x2a17cf(0x29c)](){const _0xfa7f9d=_0x2a17cf,_0x22632b=[E[_0xfa7f9d(0x1ee)]['id']];this[_0xfa7f9d(0x1f5)](this[_0xfa7f9d(0x350)][_0xfa7f9d(0x34e)](_0x6d49e7=>{const _0x1ee79d=_0xfa7f9d;_0x22632b[_0x1ee79d(0x1b7)](_0x6d49e7['id'])&&_0x6d49e7[_0x1ee79d(0x2c2)]['unitId']===this['_context']['unitId']&&this[_0x1ee79d(0x285)]();}));}['_initResize'](){const _0x530a23=_0x2a17cf;this['disposeWithMe'](a[_0x530a23(0x3e4)](this[_0x530a23(0x30a)][_0x530a23(0x22f)]['onTransformChange$'])['pipe']($[_0x530a23(0x237)](_0x2b0510=>_0x2b0510[_0x530a23(0x232)]===p[_0x530a23(0x1b6)][_0x530a23(0x1fa)]),$[_0x530a23(0x17d)](0x10))[_0x530a23(0x3f7)](()=>{const _0x3e5133=_0x530a23;this[_0x3e5133(0x285)]();}));}};fe=Nt([X(0x1,a[_0x2a17cf(0x22b)](Y[_0x2a17cf(0x2d1)])),X(0x2,a['Inject'](x)),X(0x3,a[_0x2a17cf(0x251)]),X(0x4,a['Inject'](a[_0x2a17cf(0x1ca)]))],fe);const Mt=0x1,Lt=1.5;class $e extends p[_0x2a17cf(0x1e9)]{constructor(_0x172862,_0x3b1441){const _0x2a5272=_0x2a17cf;super(_0x172862,_0x3b1441),h(this,_0x2a5272(0x204)),h(this,_0x2a5272(0x2b9),!0x1),h(this,'_range'),h(this,_0x2a5272(0x2e1),''),h(this,_0x2a5272(0x3ba),_0x2a5272(0x320)),h(this,_0x2a5272(0x190)),(_0x3b1441&&this['setShapeProps'](_0x3b1441),this[_0x2a5272(0x2e0)][_0x2a5272(0x3d8)](()=>this[_0x2a5272(0x3ea)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2a17cf(0x3ea)](_0x442dfd){const _0x23e5e0=_0x2a17cf;var _0x19c71f,_0x258fd7,_0xf7a9f,_0x4a72a0,_0x14f990,_0x85e80f;this[_0x23e5e0(0x204)]=(_0x19c71f=_0x442dfd['color'])!=null?_0x19c71f:this[_0x23e5e0(0x204)],this[_0x23e5e0(0x2b9)]=(_0x258fd7=_0x442dfd[_0x23e5e0(0x218)])!=null?_0x258fd7:this[_0x23e5e0(0x2b9)],this[_0x23e5e0(0x3b8)]=(_0xf7a9f=_0x442dfd['range'])!=null?_0xf7a9f:this[_0x23e5e0(0x3b8)],this[_0x23e5e0(0x2e1)]=(_0x4a72a0=_0x442dfd[_0x23e5e0(0x1df)])!=null?_0x4a72a0:this[_0x23e5e0(0x2e1)],this[_0x23e5e0(0x3ba)]=(_0x14f990=_0x442dfd[_0x23e5e0(0x3e0)])!=null?_0x14f990:this[_0x23e5e0(0x3ba)],this[_0x23e5e0(0x190)]=(_0x85e80f=_0x442dfd[_0x23e5e0(0x33d)])!=null?_0x85e80f:this[_0x23e5e0(0x190)],this[_0x23e5e0(0x1c2)]({'width':_0x442dfd[_0x23e5e0(0x175)],'height':_0x442dfd[_0x23e5e0(0x39b)]});}[_0x2a17cf(0x260)](_0x361072){const _0x2a76b9=_0x2a17cf,{row:_0x3f5e38,column:_0x49c4b3}=_0x361072;if(_0x3f5e38>=this[_0x2a76b9(0x3b8)][_0x2a76b9(0x3a5)]&&_0x3f5e38<=this[_0x2a76b9(0x3b8)][_0x2a76b9(0x174)]&&_0x49c4b3>=this['_range'][_0x2a76b9(0x1dd)]&&_0x49c4b3<=this[_0x2a76b9(0x3b8)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x2a76b9(0x3ea)]({'hovered':!0x1});}['triggerDblclick'](_0x19971e){return!0x1;}['_draw'](_0x17bd14){const _0x3adae7=_0x2a17cf;p[_0x3adae7(0x176)]['drawWith'](_0x17bd14,{'width':this[_0x3adae7(0x175)],'height':this[_0x3adae7(0x39b)],'strokeWidth':Lt,'stroke':this[_0x3adae7(0x204)],'evented':!0x1,'fill':this[_0x3adae7(0x190)]}),this[_0x3adae7(0x2b9)]&&(_0x17bd14[_0x3adae7(0x2ec)](),_0x17bd14[_0x3adae7(0x38e)](0x1,0x0,0x0,0x1,this['width'],this[_0x3adae7(0x3ba)]===_0x3adae7(0x1ef)?0x0:-W),ee[_0x3adae7(0x279)](_0x17bd14,{'text':this[_0x3adae7(0x2e1)],'color':this[_0x3adae7(0x204)]}),_0x17bd14[_0x3adae7(0x241)]());}}var Pt=Object[_0x2a17cf(0x330)],wt=(_0x479b21,_0x2ae7b9,_0x36d623,_0x2b4f9a)=>{const _0x25364e=_0x2a17cf;for(var _0x6499f6=_0x2b4f9a>0x1?void 0x0:_0x2b4f9a?Pt(_0x2ae7b9,_0x36d623):_0x2ae7b9,_0x1d321a=_0x479b21[_0x25364e(0x1fd)]-0x1,_0x25c4c1;_0x1d321a>=0x0;_0x1d321a--)(_0x25c4c1=_0x479b21[_0x1d321a])&&(_0x6499f6=_0x25c4c1(_0x6499f6)||_0x6499f6);return _0x6499f6;},ae=(_0x4980f7,_0x16abd5)=>(_0x317a20,_0x5077f9)=>_0x16abd5(_0x317a20,_0x5077f9,_0x4980f7);const At=0x1389;let Ie=class extends a[_0x2a17cf(0x359)]{constructor(_0x3282f8,_0x1aafc9,_0x295bfa,_0x203aaf){const _0x349138=_0x2a17cf;super(),h(this,_0x349138(0x1da),new Set()),h(this,_0x349138(0x363),null),(this['_context']=_0x3282f8,this[_0x349138(0x303)]=_0x1aafc9,this[_0x349138(0x3c8)]=_0x295bfa,this[_0x349138(0x2bf)]=_0x203aaf,this[_0x349138(0x259)]());}[_0x2a17cf(0x259)](){const _0x262ec1=_0x2a17cf;this[_0x262ec1(0x303)][_0x262ec1(0x206)][_0x262ec1(0x3a6)]($[_0x262ec1(0x245)](this[_0x262ec1(0x178)]),$['switchMap'](_0x3d8759=>{const _0x53250a=_0x262ec1;if(_0x3d8759){const _0x1cec4c=_0x3d8759['sheetId'];return d[_0x53250a(0x2d3)](this[_0x53250a(0x3c8)][_0x53250a(0x312)](this[_0x53250a(0x30a)][_0x53250a(0x2a1)]),this[_0x53250a(0x2bf)][_0x53250a(0x21b)])[_0x53250a(0x3a6)]($['map'](([_0x367abc,_0x157d76])=>{const _0x4e967d=_0x53250a,_0x67802d=new Map();return _0x367abc[_0x4e967d(0x1ce)]((_0x3c66d2,_0x5b4d9b)=>{const _0x325d8b=_0x4e967d;if(_0x3c66d2[_0x325d8b(0x1f6)]===_0x1cec4c){const _0x439bad={..._0x3c66d2};_0x439bad[_0x325d8b(0x20b)]=this[_0x325d8b(0x2bf)][_0x325d8b(0x2f8)](_0x3c66d2[_0x325d8b(0x20b)]),_0x67802d[_0x325d8b(0x228)](_0x5b4d9b,_0x439bad);}}),{'skeleton':_0x3d8759,'cursors':_0x67802d};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x262ec1(0x3f7)](({skeleton:_0x49372a,cursors:_0xb80d51})=>{const _0x24ccea=_0x262ec1;this['_removeCollabCursors'](),_0x49372a&&this[_0x24ccea(0x213)](_0x49372a,_0xb80d51);}),this[_0x262ec1(0x303)][_0x262ec1(0x206)][_0x262ec1(0x3f7)](_0x4809a7=>{const _0x3f0fbd=_0x262ec1;if(_0x4809a7==null)return;const {skeleton:_0x489f8a}=_0x4809a7,{scene:_0x511942}=this['_context'];_0x511942[_0x3f0fbd(0x194)][_0x3f0fbd(0x3d8)](a[_0x3f0fbd(0x189)](_0x5942df=>{const _0x5437c2=_0x3f0fbd;var _0x5157e8,_0x5b2c17;const {offsetX:_0x445e84,offsetY:_0x1cbc48}=_0x5942df,{x:_0x7fa675,y:_0x50c13e}=_0x511942[_0x5437c2(0x269)](p[_0x5437c2(0x1f1)]['FromArray']([_0x445e84,_0x1cbc48])),{scaleX:_0x2230b5,scaleY:_0x1ff3d1}=_0x511942['getAncestorScale'](),_0x162838=_0x511942[_0x5437c2(0x1c4)](p[_0x5437c2(0x2fa)][_0x5437c2(0x24b)]),_0x3f09b6=_0x511942['getVpScrollXYInfoByPosToVp'](p[_0x5437c2(0x1f1)]['FromArray']([_0x7fa675,_0x50c13e]),_0x162838),_0x335d63=_0x489f8a['getCellPositionByOffset'](_0x445e84,_0x1cbc48,_0x2230b5,_0x1ff3d1,_0x3f09b6);((_0x5157e8=this[_0x5437c2(0x363)])==null?void 0x0:_0x5157e8['column'])===_0x335d63[_0x5437c2(0x197)]&&((_0x5b2c17=this[_0x5437c2(0x363)])==null?void 0x0:_0x5b2c17[_0x5437c2(0x343)])===_0x335d63[_0x5437c2(0x343)]||this[_0x5437c2(0x1da)][_0x5437c2(0x1ce)](_0x47d603=>{const _0x2cf254=_0x5437c2;_0x47d603[_0x2cf254(0x260)](_0x335d63);});},0x64));});}[_0x2a17cf(0x213)](_0x3a4a79,_0x1c733b){const _0x5606ce=_0x2a17cf;var _0x410fa6;const _0x398724=(_0x410fa6=this['_sheetSkeletonManagerService'][_0x5606ce(0x1ad)]())==null?void 0x0:_0x410fa6['skeleton'];if(!_0x398724)return;const _0x9a5e3c=this['_getSheetObject']();if(!_0x9a5e3c)return;this[_0x5606ce(0x1da)][_0x5606ce(0x1ce)](_0x5adffb=>{const _0x1ce5b6=_0x5606ce;_0x5adffb[_0x1ce5b6(0x328)]();});const {scene:_0x4fc03f}=_0x9a5e3c,_0x167537=yt(Array[_0x5606ce(0x3f8)](_0x1c733b[_0x5606ce(0x399)]()))['map'](_0x4f988e=>{const _0x511280=_0x5606ce,{color:_0x244d66,range:_0x3dfa93,name:_0x2eff2b,selection:_0x54f214,sheetID:_0x413a77}=_0x4f988e,{startColumn:_0x1df985,startRow:_0x2931e6,endColumn:_0x37c5c6,endRow:_0x15bbbb}=_0x3dfa93,_0x226091=G[_0x511280(0x2a0)](_0x2931e6,_0x1df985,_0x4fc03f,_0x398724),_0x22b112=G[_0x511280(0x2a0)](_0x15bbbb,_0x37c5c6,_0x4fc03f,_0x398724),{columnHeaderHeightAndMarginTop:_0x4802ce}=_0x398724,{startX:_0x471072,startY:_0x36d5bb}=_0x226091,{endX:_0x51a717,endY:_0x5bbba0}=_0x22b112,_0x4de1c4=_0x51a717-_0x471072,_0x5ba887=_0x5bbba0-_0x36d5bb,_0x3a84fc={'labelPosition':_0x36d5bb-_0x4802ce>=W?_0x511280(0x320):_0x511280(0x1ef),'sheetID':_0x413a77,'range':_0x3dfa93,'color':_0x244d66,'name':_0x2eff2b,'selection':_0x54f214,'left':_0x471072,'top':_0x36d5bb,'width':_0x4de1c4,'height':_0x5ba887,'evented':!0x1,'zIndex':At};return new $e(_0x2eff2b,_0x3a84fc);});_0x4fc03f[_0x5606ce(0x270)](_0x167537,Mt),this[_0x5606ce(0x1da)]=new Set(_0x167537);}[_0x2a17cf(0x1c7)](){const _0x19437b=_0x2a17cf;var _0x29eb48;(_0x29eb48=this[_0x19437b(0x1da)])==null||_0x29eb48['forEach'](_0x268611=>_0x268611[_0x19437b(0x17b)]());}[_0x2a17cf(0x34a)](){const _0x23e59a=_0x2a17cf;return G[_0x23e59a(0x31f)](this[_0x23e59a(0x30a)][_0x23e59a(0x22e)],this[_0x23e59a(0x30a)]);}};Ie=wt([ae(0x1,a[_0x2a17cf(0x22b)](G[_0x2a17cf(0x180)])),ae(0x2,a[_0x2a17cf(0x22b)](x)),ae(0x3,a[_0x2a17cf(0x22b)](a[_0x2a17cf(0x1ca)]))],Ie);function yt(_0x34218c){const _0x47f36b=_0x2a17cf,_0x592dc6=new Map();return _0x34218c[_0x47f36b(0x1ce)](_0x496db2=>{const _0x34d73b=_0x47f36b;if(_0x592dc6[_0x34d73b(0x3bd)](_0x496db2[_0x34d73b(0x3b5)])){const _0x428475=_0x592dc6['get'](_0x496db2[_0x34d73b(0x3b5)]);_0x428475[_0x34d73b(0x1df)]+=',\x20'+_0x496db2[_0x34d73b(0x1df)];}else _0x592dc6['set'](_0x496db2[_0x34d73b(0x3b5)],_0x496db2);}),Array['from'](_0x592dc6[_0x47f36b(0x399)]());}var $t=Object[_0x2a17cf(0x330)],xt=(_0x5b22cf,_0x19cada,_0x7ac04d,_0x359e9b)=>{const _0x24b955=_0x2a17cf;for(var _0x4cfb2f=_0x359e9b>0x1?void 0x0:_0x359e9b?$t(_0x19cada,_0x7ac04d):_0x19cada,_0x40e1ba=_0x5b22cf[_0x24b955(0x1fd)]-0x1,_0x1e34f3;_0x40e1ba>=0x0;_0x40e1ba--)(_0x1e34f3=_0x5b22cf[_0x40e1ba])&&(_0x4cfb2f=_0x1e34f3(_0x4cfb2f)||_0x4cfb2f);return _0x4cfb2f;},y=(_0xa43581,_0x1ba57)=>(_0x373dff,_0x76d878)=>_0x1ba57(_0x373dff,_0x76d878,_0xa43581);let q=class extends a[_0x2a17cf(0x2b2)]{constructor(_0x16a100,_0x2e7980,_0xdf7ad0,_0x20aab1,_0x1c5293,_0x3bfa66){const _0x5a1ea0=_0x2a17cf;super(),this[_0x5a1ea0(0x3cd)]=_0x16a100,this[_0x5a1ea0(0x219)]=_0x2e7980,this[_0x5a1ea0(0x2e4)]=_0xdf7ad0,this[_0x5a1ea0(0x224)]=_0x20aab1,this[_0x5a1ea0(0x394)]=_0x1c5293,this[_0x5a1ea0(0x353)]=_0x3bfa66,this[_0x5a1ea0(0x326)](),this[_0x5a1ea0(0x2dc)]();}[_0x2a17cf(0x326)](){const _0x1523c2=_0x2a17cf;this[_0x1523c2(0x1f5)](this[_0x1523c2(0x3cd)]['registerBeforeClose'](()=>{const _0x3a36cc=_0x1523c2;if(this[_0x3a36cc(0x219)][_0x3a36cc(0x36a)][_0x3a36cc(0x3c7)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}['_initEvent'](){const _0x5941ae=_0x2a17cf;this[_0x5941ae(0x1f5)](this[_0x5941ae(0x2e4)][_0x5941ae(0x1ab)][_0x5941ae(0x3f7)](_0x5186d2=>{const _0x127ce1=_0x5941ae;_0x5186d2['id']===u['CollaborationUIEventId']['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x127ce1(0x227)]({'type':D[_0x127ce1(0x334)][_0x127ce1(0x234)],'content':this[_0x127ce1(0x353)]['t']('collaboration.single-unit.warning')}),_0x5186d2['id']===u[_0x127ce1(0x38c)][_0x127ce1(0x1d6)]&&this[_0x127ce1(0x224)]['show']({'type':D['MessageType'][_0x127ce1(0x234)],'content':this[_0x127ce1(0x353)]['t'](_0x127ce1(0x18f))}),_0x5186d2['id']===u[_0x127ce1(0x38c)]['PERMISSION_DENIED']&&this[_0x127ce1(0x394)][_0x127ce1(0x227)]({'title':this[_0x127ce1(0x353)]['t'](_0x127ce1(0x327)),'content':this['_localeService']['t'](_0x127ce1(0x1d4)),'type':_0x127ce1(0x3dd),'duration':0x0}),_0x5186d2['id']===u[_0x127ce1(0x38c)]['CONFLICT']&&this['_messageService'][_0x127ce1(0x227)]({'type':D[_0x127ce1(0x334)][_0x127ce1(0x28f)],'content':this[_0x127ce1(0x353)]['t'](_0x127ce1(0x18f))+'('+_0x5186d2[_0x127ce1(0x1d0)]+')'}),_0x5186d2['id']===u[_0x127ce1(0x38c)]['JOIN_ROOM_FAILED']&&this[_0x127ce1(0x224)][_0x127ce1(0x227)]({'type':D['MessageType']['Warning'],'content':this['_localeService']['t'](_0x5186d2[_0x127ce1(0x1d0)]||'')}),_0x5186d2['id']===u[_0x127ce1(0x38c)][_0x127ce1(0x1fc)]&&this[_0x127ce1(0x224)][_0x127ce1(0x227)]({'type':D[_0x127ce1(0x334)]['Warning'],'content':this['_localeService']['t']('session.will-retry')}),_0x5186d2['id']===u['CollaborationUIEventId'][_0x127ce1(0x1cd)]&&this['_messageService']['show']({'type':D[_0x127ce1(0x334)]['Error'],'content':this[_0x127ce1(0x353)]['t'](_0x127ce1(0x3e8))}),_0x5186d2['id']===u[_0x127ce1(0x38c)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x127ce1(0x224)]['show']({'type':D[_0x127ce1(0x334)][_0x127ce1(0x28f)],'content':this[_0x127ce1(0x353)]['t'](_0x127ce1(0x1c9))});}));}};q=xt([y(0x0,O[_0x2a17cf(0x384)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x2a17cf(0x22b)](u[_0x2a17cf(0x205)])),y(0x3,O[_0x2a17cf(0x3e9)]),y(0x4,O[_0x2a17cf(0x23c)]),y(0x5,a[_0x2a17cf(0x22b)](a[_0x2a17cf(0x202)]))],q);const Bt='collaboration-client-ui.config',De={};var jt=Object[_0x2a17cf(0x330)],kt=(_0xc0c17c,_0x38b8a7,_0x5a6dde,_0x58486b)=>{const _0x3a0cd5=_0x2a17cf;for(var _0x1e2ae5=_0x58486b>0x1?void 0x0:_0x58486b?jt(_0x38b8a7,_0x5a6dde):_0x38b8a7,_0x58397b=_0xc0c17c[_0x3a0cd5(0x1fd)]-0x1,_0x5e1d18;_0x58397b>=0x0;_0x58397b--)(_0x5e1d18=_0xc0c17c[_0x58397b])&&(_0x1e2ae5=_0x5e1d18(_0x1e2ae5)||_0x1e2ae5);return _0x1e2ae5;},Ue=(_0x2067ba,_0x53b008)=>(_0x503907,_0x2b9a65)=>_0x53b008(_0x503907,_0x2b9a65,_0x2067ba);let z=class{constructor(_0x483f01,_0x5603ef){const _0x2498bc=_0x2a17cf;this['_transformService']=_0x483f01,this[_0x2498bc(0x2c1)]=_0x5603ef;}['transformIMECache'](_0x52b6e0){const _0x375a0f=_0x2a17cf;this['_transformUndoRedoStack'](_0x52b6e0),this[_0x375a0f(0x253)](_0x52b6e0);}['transformRemoteChangeset'](_0x57fcb8){const _0x901577=_0x2a17cf,{unitID:_0x478022}=_0x57fcb8,_0x516858=this[_0x901577(0x2c1)]['getRenderById'](_0x478022)[_0x901577(0x214)](E['DocIMEInputManagerService']),{redoCache:_0x3bf288}=_0x516858[_0x901577(0x3e6)]();if(_0x3bf288[_0x901577(0x1fd)]===0x0)return _0x57fcb8;let _0x124f79=a['Tools']['deepClone'](_0x57fcb8[_0x901577(0x200)][0x0]);for(let _0x4664b4=0x0;_0x4664b4<_0x3bf288[_0x901577(0x1fd)];_0x4664b4++){const _0x319bbb={'id':_0x901577(0x186),'params':{..._0x3bf288[_0x4664b4]}},_0x62dc85=this[_0x901577(0x20f)][_0x901577(0x1ea)](_0x124f79,_0x319bbb,!0x1);if(m[_0x901577(0x2ca)](_0x62dc85))throw _0x62dc85[_0x901577(0x3dd)];_0x124f79=_0x62dc85[_0x901577(0x24d)];}return{...a[_0x901577(0x2a5)][_0x901577(0x226)](_0x57fcb8),'mutations':[_0x124f79]};}[_0x2a17cf(0x2b4)](_0x421a5f){const _0xa313b2=_0x2a17cf,{unitID:_0x28a7ca}=_0x421a5f,_0x398d9b=this[_0xa313b2(0x2c1)][_0xa313b2(0x32a)](_0x28a7ca)[_0xa313b2(0x214)](E[_0xa313b2(0x290)]),{undoCache:_0x2660c8,redoCache:_0xf77ee}=_0x398d9b[_0xa313b2(0x3e6)]();if(_0x2660c8[_0xa313b2(0x1fd)]===0x0||_0xf77ee[_0xa313b2(0x1fd)]===0x0)return;const _0x438706=[],_0x291b1a=[];let _0x5dc9c8=a['Tools'][_0xa313b2(0x226)](_0x421a5f[_0xa313b2(0x200)][0x0]),_0x4938c6=a['Tools'][_0xa313b2(0x226)](_0x421a5f['mutations'][0x0]);for(let _0x5937f5=_0x2660c8[_0xa313b2(0x1fd)]-0x1;_0x5937f5>=0x0;_0x5937f5--){const _0x37f99f={'id':_0xa313b2(0x186),'params':{..._0x2660c8[_0x5937f5]}},_0x59d713={'id':'doc.mutation.rich-text-editing','params':{..._0xf77ee[_0x5937f5]}},_0x358140=this[_0xa313b2(0x20f)]['transformMutation'](_0x5dc9c8,_0x37f99f,!0x1),_0xd1a9d1=this[_0xa313b2(0x20f)]['transformMutation'](_0x4938c6,_0x59d713,!0x1);if(m[_0xa313b2(0x2ca)](_0x358140))throw _0x358140[_0xa313b2(0x3dd)];if(m['isTransformMutationFailure'](_0xd1a9d1))throw _0xd1a9d1[_0xa313b2(0x3dd)];_0x438706['unshift'](_0x358140[_0xa313b2(0x212)][_0xa313b2(0x2c2)]),_0x291b1a['unshift'](_0xd1a9d1['m2Prime'][_0xa313b2(0x2c2)]),_0x5dc9c8=_0x358140[_0xa313b2(0x24d)],_0x4938c6=_0xd1a9d1['m1Prime'];}_0x398d9b['setUndoRedoMutationParamsCache']({'undoCache':_0x438706,'redoCache':_0x291b1a});}[_0x2a17cf(0x253)](_0x5cdc11){const _0x1f3bfb=_0x2a17cf,{unitID:_0x7e5ee8}=_0x5cdc11,_0x5c0f1a=this[_0x1f3bfb(0x2c1)]['getRenderById'](_0x7e5ee8)[_0x1f3bfb(0x214)](E[_0x1f3bfb(0x290)]),_0x26eadb=_0x5c0f1a[_0x1f3bfb(0x3ca)]();if(_0x26eadb==null)return;const _0x39a70d=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5cdc11[_0x1f3bfb(0x2a2)],'actions':null,'textRanges':[_0x26eadb]}}],_0x292d56=this['_transformService']['transformMutationsWithChangeset'](_0x5cdc11,_0x39a70d);if(!m[_0x1f3bfb(0x18e)](_0x292d56))throw _0x292d56[_0x1f3bfb(0x3dd)];const _0x1bb18c=_0x292d56['m2Prime'][0x0]['params'][_0x1f3bfb(0x30b)];Array[_0x1f3bfb(0x35d)](_0x1bb18c)&&_0x1bb18c[_0x1f3bfb(0x1fd)]&&_0x5c0f1a[_0x1f3bfb(0x37d)](_0x1bb18c[0x0]);}};z=kt([Ue(0x0,m[_0x2a17cf(0x2de)]),Ue(0x1,p['IRenderManagerService'])],z);var Ft=Object['getOwnPropertyDescriptor'],Ht=(_0x2a8ba5,_0x1d64a8,_0x32171b,_0x579742)=>{const _0x1c9fe7=_0x2a17cf;for(var _0x59931d=_0x579742>0x1?void 0x0:_0x579742?Ft(_0x1d64a8,_0x32171b):_0x1d64a8,_0x4ffeb6=_0x2a8ba5[_0x1c9fe7(0x1fd)]-0x1,_0x355654;_0x4ffeb6>=0x0;_0x4ffeb6--)(_0x355654=_0x2a8ba5[_0x4ffeb6])&&(_0x59931d=_0x355654(_0x59931d)||_0x59931d);return _0x59931d;},ce=(_0x32a637,_0x5166da)=>(_0x13c9ae,_0x17d3d8)=>_0x5166da(_0x13c9ae,_0x17d3d8,_0x32a637);let J=class{constructor(_0x44ff95,_0x6d6512,_0x126a22){const _0x4fdf44=_0x2a17cf;this[_0x4fdf44(0x28a)]=_0x44ff95,this[_0x4fdf44(0x20f)]=_0x6d6512,this['_docStateChangeManagerService']=_0x126a22;}[_0x2a17cf(0x2e3)](_0x2ab688){const _0x20a1a3=_0x2a17cf;this[_0x20a1a3(0x3da)](_0x2ab688);}['transformRemoteChangeset'](_0x44e925){const _0x57b711=_0x2a17cf,{unitID:_0x1c7da3}=_0x44e925,{collaboration:_0x4d4d34}=this[_0x57b711(0x3a9)][_0x57b711(0x1e3)](_0x1c7da3);if(_0x4d4d34[_0x57b711(0x1fd)]===0x0)return _0x44e925;let _0x6fffdb=a[_0x57b711(0x2a5)][_0x57b711(0x226)](_0x44e925['mutations'][0x0]);for(let _0x126192=0x0;_0x126192<_0x4d4d34['length'];_0x126192++){const _0x35b20d={'id':_0x57b711(0x186),'params':{'unitId':_0x4d4d34[_0x126192][_0x57b711(0x2a1)],..._0x4d4d34[_0x126192]['redoState']}},_0x44721a=this[_0x57b711(0x20f)]['transformMutation'](_0x6fffdb,_0x35b20d,!0x1);if(m[_0x57b711(0x2ca)](_0x44721a))throw _0x44721a[_0x57b711(0x3dd)];_0x6fffdb=_0x44721a[_0x57b711(0x24d)];}return{...a[_0x57b711(0x2a5)]['deepClone'](_0x44e925),'mutations':[_0x6fffdb]};}['_transformHistoryAndStateStack'](_0x326baa){const _0x98d708=_0x2a17cf,{unitID:_0x3d5f54}=_0x326baa,{history:_0x59f9a6,collaboration:_0x1e1782}=this[_0x98d708(0x3a9)][_0x98d708(0x1e3)](_0x3d5f54);if(_0x59f9a6['length']===0x0&&_0x1e1782[_0x98d708(0x1fd)]===0x0)return;const _0x2ec88c=[],_0x2102d4=[];let _0x34662b=a[_0x98d708(0x2a5)]['deepClone'](_0x326baa[_0x98d708(0x200)][0x0]),_0x5660d4=a[_0x98d708(0x2a5)][_0x98d708(0x226)](_0x326baa['mutations'][0x0]);for(let _0x31e94d=_0x59f9a6[_0x98d708(0x1fd)]-0x1;_0x31e94d>=0x0;_0x31e94d--){const _0x209afa={'id':_0x98d708(0x186),'params':{'unitId':_0x59f9a6[_0x31e94d][_0x98d708(0x2a1)],..._0x59f9a6[_0x31e94d][_0x98d708(0x22d)]}},_0x5ba66d={'id':_0x98d708(0x186),'params':{'unitId':_0x59f9a6[_0x31e94d][_0x98d708(0x2a1)],..._0x59f9a6[_0x31e94d][_0x98d708(0x31a)]}},_0x20e8ce=this[_0x98d708(0x20f)][_0x98d708(0x1ea)](_0x34662b,_0x209afa,!0x1),_0x4cf54d=this['_transformService'][_0x98d708(0x1ea)](_0x5660d4,_0x5ba66d,!0x1);if(m[_0x98d708(0x2ca)](_0x20e8ce))throw _0x20e8ce['error'];if(m[_0x98d708(0x2ca)](_0x4cf54d))throw _0x4cf54d['error'];_0x2ec88c[_0x98d708(0x3e1)]({..._0x59f9a6[_0x31e94d],'undoState':_0x20e8ce['m2Prime'][_0x98d708(0x2c2)],'redoState':_0x4cf54d[_0x98d708(0x212)][_0x98d708(0x2c2)]}),_0x34662b=_0x20e8ce['m1Prime'],_0x5660d4=_0x4cf54d[_0x98d708(0x24d)];}_0x34662b=a[_0x98d708(0x2a5)][_0x98d708(0x226)](_0x326baa[_0x98d708(0x200)][0x0]),_0x5660d4=a[_0x98d708(0x2a5)][_0x98d708(0x226)](_0x326baa['mutations'][0x0]);for(let _0x216133=_0x1e1782[_0x98d708(0x1fd)]-0x1;_0x216133>=0x0;_0x216133--){const _0x598b81={'id':_0x98d708(0x186),'params':{'unitId':_0x1e1782[_0x216133][_0x98d708(0x2a1)],..._0x1e1782[_0x216133][_0x98d708(0x22d)]}},_0x2d2e3d={'id':_0x98d708(0x186),'params':{'unitId':_0x1e1782[_0x216133][_0x98d708(0x2a1)],..._0x1e1782[_0x216133][_0x98d708(0x31a)]}},_0x3a5389=this[_0x98d708(0x20f)][_0x98d708(0x1ea)](_0x34662b,_0x598b81,!0x1),_0x223094=this[_0x98d708(0x20f)][_0x98d708(0x1ea)](_0x5660d4,_0x2d2e3d,!0x1);if(m[_0x98d708(0x2ca)](_0x3a5389))throw _0x3a5389['error'];if(m['isTransformMutationFailure'](_0x223094))throw _0x223094[_0x98d708(0x3dd)];_0x2102d4[_0x98d708(0x3e1)]({..._0x1e1782[_0x216133],'undoState':_0x3a5389[_0x98d708(0x212)][_0x98d708(0x2c2)],'redoState':_0x223094['m2Prime'][_0x98d708(0x2c2)]}),_0x34662b=_0x3a5389[_0x98d708(0x24d)],_0x5660d4=_0x223094['m1Prime'];}this['_docStateChangeManagerService']['setStateCache'](_0x3d5f54,{'history':_0x2ec88c,'collaboration':_0x2102d4});}};J=Ht([ce(0x0,a[_0x2a17cf(0x22b)](a[_0x2a17cf(0x231)])),ce(0x1,m[_0x2a17cf(0x2de)]),ce(0x2,a[_0x2a17cf(0x22b)](E[_0x2a17cf(0x39c)]))],J);var Yt=Object[_0x2a17cf(0x330)],Wt=(_0x1ef32c,_0x33f934,_0x1e6504,_0x2fa8d1)=>{const _0x827298=_0x2a17cf;for(var _0x42bcd1=_0x2fa8d1>0x1?void 0x0:_0x2fa8d1?Yt(_0x33f934,_0x1e6504):_0x33f934,_0x190fb6=_0x1ef32c[_0x827298(0x1fd)]-0x1,_0x423f19;_0x190fb6>=0x0;_0x190fb6--)(_0x423f19=_0x1ef32c[_0x190fb6])&&(_0x42bcd1=_0x423f19(_0x42bcd1)||_0x42bcd1);return _0x42bcd1;},Ne=(_0x9935b0,_0x2494a5)=>(_0x48c5b7,_0x5dba24)=>_0x2494a5(_0x48c5b7,_0x5dba24,_0x9935b0);let Z=class{constructor(_0x4cc033,_0xf697e8){const _0x3601d6=_0x2a17cf;this[_0x3601d6(0x28a)]=_0x4cc033,this[_0x3601d6(0x20f)]=_0xf697e8;}['transformSelections'](_0x228d32){const _0x5a6968=_0x2a17cf;var _0x3433aa;const _0x207b52=this[_0x5a6968(0x28a)][_0x5a6968(0x302)](Y[_0x5a6968(0x365)]),_0x3da38d=(_0x3433aa=_0x207b52[_0x5a6968(0x28b)]())!=null?_0x3433aa:[];if(_0x3da38d[_0x5a6968(0x1fd)]===0x0)return;const _0x4267ad=_0x228d32[_0x5a6968(0x2a2)],_0x32a740=[{'id':_0x5a6968(0x186),'params':{'unitId':_0x4267ad,'actions':null,'textRanges':_0x3da38d}}],_0x394151=this[_0x5a6968(0x20f)][_0x5a6968(0x1b8)](_0x228d32,_0x32a740);if(!m['isTransformMutationsWithChangesetSuccess'](_0x394151))throw _0x394151[_0x5a6968(0x3dd)];const _0x56449c=_0x394151[_0x5a6968(0x212)][0x0][_0x5a6968(0x2c2)][_0x5a6968(0x30b)];Array['isArray'](_0x56449c)&&_0x56449c[_0x5a6968(0x1fd)]&&_0x207b52['replaceDocRanges'](_0x56449c,{'unitId':_0x4267ad,'subUnitId':_0x4267ad},!0x1);}};function _0x1209(_0x2133d8,_0x439fca){const _0x14db8a=_0x14db();return _0x1209=function(_0x120910,_0x5e9ae7){_0x120910=_0x120910-0x173;let _0x44fa2c=_0x14db8a[_0x120910];return _0x44fa2c;},_0x1209(_0x2133d8,_0x439fca);}Z=Wt([Ne(0x0,a[_0x2a17cf(0x22b)](a[_0x2a17cf(0x231)])),Ne(0x1,m[_0x2a17cf(0x2de)])],Z);var Vt=Object[_0x2a17cf(0x330)],Xt=(_0x12d300,_0x25e7a7,_0x45f287,_0x157b33)=>{for(var _0x290d36=_0x157b33>0x1?void 0x0:_0x157b33?Vt(_0x25e7a7,_0x45f287):_0x25e7a7,_0x9c6419=_0x12d300['length']-0x1,_0x194383;_0x9c6419>=0x0;_0x9c6419--)(_0x194383=_0x12d300[_0x9c6419])&&(_0x290d36=_0x194383(_0x290d36)||_0x290d36);return _0x290d36;},N=(_0xe975a7,_0xed34c2)=>(_0x5da30a,_0x5bbe91)=>_0xed34c2(_0x5da30a,_0x5bbe91,_0xe975a7);let Q=class extends a[_0x2a17cf(0x2b2)]{constructor(_0x288782,_0x539271,_0x3edec6,_0x3b9f95,_0x2027c8,_0x5b5465,_0x5dcf69,_0x20e7c8){const _0xea3b8a=_0x2a17cf;super(),h(this,_0xea3b8a(0x179),new d['BehaviorSubject'](u[_0xea3b8a(0x3ee)][_0xea3b8a(0x331)])),(this[_0xea3b8a(0x3a9)]=_0x288782,this[_0xea3b8a(0x192)]=_0x539271,this['_docTransformIMECacheService']=_0x3edec6,this[_0xea3b8a(0x301)]=_0x3b9f95,this['_docTransformSelectionsService']=_0x2027c8,this[_0xea3b8a(0x264)]=_0x5b5465,this[_0xea3b8a(0x224)]=_0x5dcf69,this[_0xea3b8a(0x353)]=_0x20e7c8,this[_0xea3b8a(0x308)]());}[_0x2a17cf(0x308)](){const _0x23acbf=_0x2a17cf;this[_0x23acbf(0x1f5)](this[_0x23acbf(0x192)]['entityInit$'][_0x23acbf(0x3f7)](_0x5a1b3f=>{const _0x376643=_0x23acbf,_0x3b209b=this['_docStateChangeManagerService'][_0x376643(0x2c9)][_0x376643(0x3f7)](_0x4cade9=>{const _0x5a75e2=_0x376643;if(_0x4cade9==null)return;const {unitId:_0x2c5625,redoState:_0x5f0abb,commandId:_0x7de971}=_0x4cade9;if(_0x2c5625!==_0x5a1b3f[_0x5a75e2(0x2a2)])return;const _0x1c8086={'id':_0x7de971,'type':a[_0x5a75e2(0x2c3)][_0x5a75e2(0x23e)],'params':{'unitId':_0x2c5625,'actions':_0x5f0abb[_0x5a75e2(0x29d)],'textRanges':null}};_0x5a1b3f[_0x5a75e2(0x3d3)](_0x1c8086);});if(_0x5a1b3f['disposeWithMe'](_0x3b209b),_0x5a1b3f instanceof u[_0x376643(0x367)]){const _0x474cb5={'onTransformIME':_0x1b87c7=>this[_0x376643(0x267)][_0x376643(0x29a)](_0x1b87c7),'onTransformState':_0x4aa659=>this[_0x376643(0x301)][_0x376643(0x2e3)](_0x4aa659),'onTransformSelections':_0x591caf=>this[_0x376643(0x305)][_0x376643(0x3dc)](_0x591caf),'onSyncEditingCollabCursor':_0x4c1096=>this[_0x376643(0x264)]['syncEditingCollabCursor'](_0x4c1096),'onTransformRemoteChangesetByIMECache':_0x43dce8=>this[_0x376643(0x267)][_0x376643(0x2b5)](_0x43dce8),'onTransformRemoteChangesetByStateCache':_0xc29624=>this[_0x376643(0x301)][_0x376643(0x2b5)](_0xc29624)};_0x5a1b3f[_0x376643(0x217)](_0x474cb5);}}));}};Q=Xt([N(0x0,a[_0x2a17cf(0x22b)](E[_0x2a17cf(0x39c)])),N(0x1,a['Inject'](u[_0x2a17cf(0x304)])),N(0x2,a[_0x2a17cf(0x22b)](z)),N(0x3,a[_0x2a17cf(0x22b)](J)),N(0x4,a['Inject'](Z)),N(0x5,a[_0x2a17cf(0x22b)](pe)),N(0x6,O[_0x2a17cf(0x3e9)]),N(0x7,a[_0x2a17cf(0x22b)](a[_0x2a17cf(0x202)]))],Q);var Gt=Object[_0x2a17cf(0x330)],Kt=(_0x1ec232,_0x507f76,_0x46f16b,_0x5087ce)=>{for(var _0x47bc59=_0x5087ce>0x1?void 0x0:_0x5087ce?Gt(_0x507f76,_0x46f16b):_0x507f76,_0x144736=_0x1ec232['length']-0x1,_0x129c79;_0x144736>=0x0;_0x144736--)(_0x129c79=_0x1ec232[_0x144736])&&(_0x47bc59=_0x129c79(_0x47bc59)||_0x47bc59);return _0x47bc59;},le=(_0x483d99,_0x1154f4)=>(_0x2b4ed4,_0x314ed2)=>_0x1154f4(_0x2b4ed4,_0x314ed2,_0x483d99);let ve=class extends a['Disposable']{constructor(_0x156656,_0x14bff7,_0x29215c){const _0x44af1e=_0x2a17cf;super(),h(this,_0x44af1e(0x354),new Map()),h(this,'_saveTaskMap',new Map()),h(this,'_disabled',!0x1),(this[_0x44af1e(0x369)]=_0x156656,this[_0x44af1e(0x258)]=_0x14bff7,this['_revisionService']=_0x29215c);}[_0x2a17cf(0x2cf)](){this['_disabled']=!0x0;}[_0x2a17cf(0x33a)](){const _0x4fb039=_0x2a17cf;this[_0x4fb039(0x1fb)]=!0x1;}get[_0x2a17cf(0x36a)](){return this['_saveTaskMap'];}['dispose'](){const _0x4e63e0=_0x2a17cf;this[_0x4e63e0(0x29b)]()['then'](()=>super['dispose']());}async['loadOfflineData'](_0x47b281){const _0x35fb13=_0x2a17cf;return this[_0x35fb13(0x1fb)]?null:this[_0x35fb13(0x258)][_0x35fb13(0x277)](u[_0x35fb13(0x2ac)](_0x47b281));}async[_0x2a17cf(0x3f1)](_0x280d2f,_0x225b25){const _0x517ae4=_0x2a17cf;return!!this['_localStorageService'][_0x517ae4(0x3cf)](_0x280d2f,_0x225b25);}[_0x2a17cf(0x275)](_0x32a4e5,_0x387b67,_0x1c8ea9,_0x389b00){const _0x6c2c8d=_0x2a17cf,_0x1e28ed=this[_0x6c2c8d(0x36f)][_0x6c2c8d(0x390)](_0x32a4e5);this[_0x6c2c8d(0x354)][_0x6c2c8d(0x228)](_0x32a4e5,{'unitID':_0x32a4e5,'type':_0x387b67,'awaitingChangeset':_0x1c8ea9,'mutations':_0x389b00,'rev':_0x1e28ed}),this[_0x6c2c8d(0x2dd)]['has'](_0x32a4e5)||this[_0x6c2c8d(0x299)](_0x32a4e5);}[_0x2a17cf(0x299)](_0x277ebc){const _0x445c23=_0x2a17cf,_0x4838d6=this[_0x445c23(0x296)]();_0x4838d6===0x0?this[_0x445c23(0x306)](_0x277ebc):this['_saveTaskMap'][_0x445c23(0x228)](_0x277ebc,setTimeout(()=>this[_0x445c23(0x306)](_0x277ebc),_0x4838d6));}[_0x2a17cf(0x296)](){const _0x4bbb1a=_0x2a17cf;var _0x2c2227;return(_0x2c2227=this['_configService']['getConfig'](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x2c2227:u[_0x4bbb1a(0x3c6)];}[_0x2a17cf(0x306)](_0x2bfe6d){const _0x3a28c4=_0x2a17cf,_0x416214=this['_saveTaskMap']['get'](_0x2bfe6d);return _0x416214!==void 0x0&&window[_0x3a28c4(0x1aa)](_0x416214),this['_localStorageService']['setItem'](u[_0x3a28c4(0x2ac)](_0x2bfe6d),this[_0x3a28c4(0x354)]['get'](_0x2bfe6d))[_0x3a28c4(0x3f3)](()=>this[_0x3a28c4(0x2dd)][_0x3a28c4(0x184)](_0x2bfe6d));}async[_0x2a17cf(0x29b)](){const _0x539a26=_0x2a17cf,_0x34e6bf=[];this['_saveTaskMap']['forEach']((_0x3a0e62,_0x51e505)=>{const _0x2ac10e=_0x1209;window['clearTimeout'](_0x3a0e62),_0x34e6bf['push'](this[_0x2ac10e(0x306)](_0x51e505)[_0x2ac10e(0x3f3)](()=>{const _0x295371=_0x2ac10e;this[_0x295371(0x2dd)][_0x295371(0x184)](_0x51e505);}));}),await Promise[_0x539a26(0x242)](_0x34e6bf);}};ve=Kt([le(0x0,a[_0x2a17cf(0x340)]),le(0x1,a[_0x2a17cf(0x1dc)]),le(0x2,a[_0x2a17cf(0x22b)](m[_0x2a17cf(0x2d2)]))],ve);class xe extends a[_0x2a17cf(0x359)]{constructor(){const _0xc44f3a=_0x2a17cf;super(),h(this,'urlChange$'),this[_0xc44f3a(0x191)]=d[_0xc44f3a(0x3cc)](window,_0xc44f3a(0x1be))[_0xc44f3a(0x3a6)](d[_0xc44f3a(0x245)](this[_0xc44f3a(0x178)]),d[_0xc44f3a(0x223)](0x1),d[_0xc44f3a(0x3f2)](void 0x0));}[_0x2a17cf(0x1e5)](_0x5b18e,_0x18a7c0,_0x5d8419=!0x1){const _0x443c18=_0x2a17cf,_0x26a2c0=new URL(window['location'][_0x443c18(0x3c3)]);_0x26a2c0[_0x443c18(0x2fb)][_0x443c18(0x228)](_0x5b18e,_0x18a7c0),_0x5d8419?window[_0x443c18(0x375)][_0x443c18(0x26a)]('','',_0x26a2c0[_0x443c18(0x2c5)]()):window['history'][_0x443c18(0x34f)]('','',_0x26a2c0[_0x443c18(0x2c5)]());}[_0x2a17cf(0x28e)](_0xc3a64a,_0x432293=!0x1){const _0x20f2a4=_0x2a17cf,_0x27886e=new URL(window[_0x20f2a4(0x2aa)]['href']);_0x27886e[_0x20f2a4(0x2fb)][_0x20f2a4(0x184)](_0xc3a64a),_0x432293?window[_0x20f2a4(0x375)]['replaceState']('','',_0x27886e[_0x20f2a4(0x2c5)]()):window[_0x20f2a4(0x375)][_0x20f2a4(0x34f)]('','',_0x27886e[_0x20f2a4(0x2c5)]());}['getParam'](_0x1b3a56){const _0x4edba5=_0x2a17cf;var _0x255d0a;return(_0x255d0a=new URL(window['location']['href'])[_0x4edba5(0x2fb)][_0x4edba5(0x302)](_0x1b3a56))!=null?_0x255d0a:void 0x0;}}var qt=Object[_0x2a17cf(0x3a7)],zt=Object[_0x2a17cf(0x330)],Jt=(_0xe716a3,_0x35b263,_0x5018d2)=>_0x35b263 in _0xe716a3?qt(_0xe716a3,_0x35b263,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5018d2}):_0xe716a3[_0x35b263]=_0x5018d2,Zt=(_0x4654a3,_0x2419ca,_0x68ba48,_0x4e31f4)=>{const _0x2a9a2e=_0x2a17cf;for(var _0x50b015=_0x4e31f4>0x1?void 0x0:_0x4e31f4?zt(_0x2419ca,_0x68ba48):_0x2419ca,_0xfa4053=_0x4654a3[_0x2a9a2e(0x1fd)]-0x1,_0x581033;_0xfa4053>=0x0;_0xfa4053--)(_0x581033=_0x4654a3[_0xfa4053])&&(_0x50b015=_0x581033(_0x50b015)||_0x50b015);return _0x50b015;},_e=(_0x371ce1,_0x562475)=>(_0x5313cb,_0x45bebc)=>_0x562475(_0x5313cb,_0x45bebc,_0x371ce1),Qt=(_0x2501cd,_0x367aa6,_0x1e8525)=>Jt(_0x2501cd,_0x367aa6+'',_0x1e8525);const es=_0x2a17cf(0x239);exports[_0x2a17cf(0x2ef)]=class extends a[_0x2a17cf(0x1ff)]{constructor(_0x1ea33e=De,_0x20200c,_0x56d81a,_0x1fae31){const _0x26416d=_0x2a17cf;super(),this[_0x26416d(0x27b)]=_0x1ea33e,this['_renderManagerService']=_0x20200c,this[_0x26416d(0x28a)]=_0x56d81a,this[_0x26416d(0x369)]=_0x1fae31;const {..._0x4ef2c6}=a[_0x26416d(0x1a5)]({},De,this[_0x26416d(0x27b)]);this[_0x26416d(0x369)][_0x26416d(0x32b)](Bt,_0x4ef2c6);}[_0x2a17cf(0x3ce)](){const _0x44db9f=_0x2a17cf;this[_0x44db9f(0x315)](),this['_initDependencies']();}[_0x2a17cf(0x278)](){this['_registerRenderDependencies']();}[_0x2a17cf(0x315)](){const _0x32c801=_0x2a17cf;var _0x154494;const _0x354d33=[[Ce],[Z],[z],[J],[pe],[me,{'useClass':xe}],[K[_0x32c801(0x19e)],{'useClass':K[_0x32c801(0x376)]}],[u[_0x32c801(0x2eb)],{'useClass':ve}],[exports[_0x32c801(0x177)]],[Q],[q],[x],[ue],[exports[_0x32c801(0x37c)]]];a['registerDependencies'](this['_injector'],a[_0x32c801(0x1d2)](_0x354d33,(_0x154494=this[_0x32c801(0x27b)])==null?void 0x0:_0x154494[_0x32c801(0x1ac)]));}[_0x2a17cf(0x1a3)](){const _0x2a8371=_0x2a17cf;this['disposeWithMe'](this[_0x2a8371(0x2c1)][_0x2a8371(0x2d5)](a[_0x2a8371(0x2ab)]['UNIVER_DOC'],[fe])),this[_0x2a8371(0x1f5)](this[_0x2a8371(0x2c1)][_0x2a8371(0x2d5)](a[_0x2a8371(0x2ab)]['UNIVER_SHEET'],[Ie]));}[_0x2a17cf(0x185)](){const _0x2ba74c=_0x2a17cf;a[_0x2ba74c(0x262)](this[_0x2ba74c(0x28a)],[[x],[exports[_0x2ba74c(0x177)]],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports[_0x2a17cf(0x2ef)],'pluginName',es),exports[_0x2a17cf(0x2ef)]=Zt([a[_0x2a17cf(0x21e)](u[_0x2a17cf(0x18b)]),_e(0x1,p['IRenderManagerService']),_e(0x2,a['Inject'](a[_0x2a17cf(0x231)])),_e(0x3,a['IConfigService'])],exports[_0x2a17cf(0x2ef)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x1d8b82,_0x49070e,_0x24ab25,_0x410760)=>{const _0x3b92c8=_0x2a17cf;for(var _0x4d9534=_0x410760>0x1?void 0x0:_0x410760?ts(_0x49070e,_0x24ab25):_0x49070e,_0x26b11f=_0x1d8b82[_0x3b92c8(0x1fd)]-0x1,_0x10b207;_0x26b11f>=0x0;_0x26b11f--)(_0x10b207=_0x1d8b82[_0x26b11f])&&(_0x4d9534=_0x10b207(_0x4d9534)||_0x4d9534);return _0x4d9534;},H=(_0x1d94c9,_0x5a01a6)=>(_0x3c5e42,_0x3c5d06)=>_0x5a01a6(_0x3c5e42,_0x3c5d06,_0x1d94c9);exports[_0x2a17cf(0x1de)]=class extends u[_0x2a17cf(0x3ab)]{constructor(_0xda54c6,_0x4cde9f,_0x2690f5,_0x246c4b,_0x1d565b){super(_0xda54c6,_0x4cde9f,_0x2690f5,_0x246c4b,_0x1d565b);}async[_0x2a17cf(0x22a)](_0x231687){const _0x3034b8=_0x2a17cf,_0x57e6a1=await this[_0x3034b8(0x19c)](),_0x267c72=this['_createSocketURL'](_0x231687,_0x57e6a1);return this[_0x3034b8(0x17f)](_0x267c72);}[_0x2a17cf(0x310)](_0x46c41a,_0x5a0bc3){const _0x226255=_0x2a17cf,_0x3dc8d9=typeof window>'u'?new URL(_0x46c41a):new URL(_0x46c41a,window[_0x226255(0x2aa)][_0x226255(0x371)]);_0x3dc8d9['searchParams'][_0x226255(0x228)]('sessionTicket',_0x5a0bc3);const _0x423bbf=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x226255(0x2aa)][_0x226255(0x1a4)]);return _0x423bbf[_0x226255(0x302)](_0x226255(0x1f4))&&_0x3dc8d9[_0x226255(0x2fb)]['set']('runId',_0x423bbf[_0x226255(0x302)](_0x226255(0x1f4))),_0x3dc8d9[_0x226255(0x2c5)]();}async[_0x2a17cf(0x19c)](){const _0x213363=_0x2a17cf;var _0x214ae1,_0x1b9b06,_0x4c1259;const _0x3dc4e9=this[_0x213363(0x369)][_0x213363(0x336)](u[_0x213363(0x37a)]),_0x406c4a=(_0x214ae1=_0x3dc4e9==null?void 0x0:_0x3dc4e9[_0x213363(0x23b)])!=null?_0x214ae1:u[_0x213363(0x1b1)];return(_0x4c1259=(_0x1b9b06=(await this[_0x213363(0x1bb)][_0x213363(0x302)](_0x406c4a,{'headers':{'Content-Type':_0x213363(0x2f7)}}))[_0x213363(0x26f)])==null?void 0x0:_0x1b9b06[_0x213363(0x27c)])!=null?_0x4c1259:'';}},exports[_0x2a17cf(0x1de)]=ss([H(0x0,a['Inject'](a['Injector'])),H(0x1,a[_0x2a17cf(0x22b)](K[_0x2a17cf(0x3ec)])),H(0x2,a[_0x2a17cf(0x340)]),H(0x3,a[_0x2a17cf(0x20d)]),H(0x4,m[_0x2a17cf(0x27a)])],exports[_0x2a17cf(0x1de)]);var Be=(_0x240f70=>(_0x240f70[_0x240f70[_0x2a17cf(0x34b)]=0x0]=_0x2a17cf(0x34b),_0x240f70[_0x240f70['OK']=0x1]='OK',_0x240f70[_0x240f70[_0x2a17cf(0x372)]=0x2]='INTERNAL_ERROR',_0x240f70[_0x240f70[_0x2a17cf(0x386)]=0x3]='PERMISSION_DENIED',_0x240f70[_0x240f70[_0x2a17cf(0x32e)]=0x4]=_0x2a17cf(0x32e),_0x240f70[_0x240f70['UNAUTHENTICATED']=0x5]=_0x2a17cf(0x297),_0x240f70[_0x240f70[_0x2a17cf(0x35e)]=0x6]=_0x2a17cf(0x35e),_0x240f70[_0x240f70['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x240f70[_0x240f70[_0x2a17cf(0x3b3)]=0x8]='TOO_MANY_REQUESTS',_0x240f70[_0x240f70[_0x2a17cf(0x209)]=0x9]=_0x2a17cf(0x209),_0x240f70[_0x240f70[_0x2a17cf(0x3ae)]=0xa]=_0x2a17cf(0x3ae),_0x240f70[_0x240f70[_0x2a17cf(0x21c)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x240f70[_0x240f70[_0x2a17cf(0x294)]=0xc]=_0x2a17cf(0x294),_0x240f70[_0x240f70[_0x2a17cf(0x1a9)]=0xd]=_0x2a17cf(0x1a9),_0x240f70[_0x240f70[_0x2a17cf(0x3e2)]=0xe]=_0x2a17cf(0x3e2),_0x240f70[_0x240f70[_0x2a17cf(0x1e8)]=0x1389]=_0x2a17cf(0x1e8),_0x240f70[_0x240f70[_0x2a17cf(0x2cd)]=0x1771]=_0x2a17cf(0x2cd),_0x240f70[_0x240f70[_0x2a17cf(0x1bc)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x240f70[_0x240f70['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x2a17cf(0x39d),_0x240f70[_0x240f70[_0x2a17cf(0x346)]=0x1b59]=_0x2a17cf(0x346),_0x240f70[_0x240f70[_0x2a17cf(0x2b3)]=0x1b5a]=_0x2a17cf(0x2b3),_0x240f70[_0x240f70[_0x2a17cf(0x37e)]=0x1b5b]=_0x2a17cf(0x37e),_0x240f70[_0x240f70[_0x2a17cf(0x2e6)]=0x1b5c]=_0x2a17cf(0x2e6),_0x240f70[_0x240f70[_0x2a17cf(0x20e)]=0x1b5d]=_0x2a17cf(0x20e),_0x240f70[_0x240f70[_0x2a17cf(0x38a)]=0x1f41]=_0x2a17cf(0x38a),_0x240f70[_0x240f70[_0x2a17cf(0x2f3)]=0x2329]=_0x2a17cf(0x2f3),_0x240f70[_0x240f70['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x2a17cf(0x2be),_0x240f70[_0x240f70['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x240f70[_0x240f70['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x240f70[_0x240f70[_0x2a17cf(0x2e7)]=0x232d]=_0x2a17cf(0x2e7),_0x240f70[_0x240f70[_0x2a17cf(0x2ed)]=0x2711]=_0x2a17cf(0x2ed),_0x240f70[_0x240f70['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x240f70[_0x240f70['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x2a17cf(0x38b),_0x240f70[_0x240f70[_0x2a17cf(0x393)]=0x2714]=_0x2a17cf(0x393),_0x240f70[_0x240f70['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x2a17cf(0x3d2),_0x240f70[_0x240f70[_0x2a17cf(0x266)]=0x271b]=_0x2a17cf(0x266),_0x240f70[_0x240f70[_0x2a17cf(0x35b)]=0x271c]=_0x2a17cf(0x35b),_0x240f70[_0x240f70[_0x2a17cf(0x31e)]=0x271d]=_0x2a17cf(0x31e),_0x240f70[_0x240f70[_0x2a17cf(0x3af)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x240f70[_0x240f70['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0x240f70[_0x240f70['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x2a17cf(0x2c8),_0x240f70[_0x240f70['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x2a17cf(0x252),_0x240f70[_0x240f70[_0x2a17cf(0x3c2)]=0x2ee1]=_0x2a17cf(0x3c2),_0x240f70[_0x240f70[_0x2a17cf(0x37b)]=0x2ee2]=_0x2a17cf(0x37b),_0x240f70[_0x240f70['INVITE_CODE_REQUIRED']=0x2ee3]=_0x2a17cf(0x3b2),_0x240f70[_0x240f70[_0x2a17cf(0x19d)]=0x2ee4]=_0x2a17cf(0x19d),_0x240f70[_0x240f70[_0x2a17cf(0x17a)]=0x2ee5]=_0x2a17cf(0x17a),_0x240f70[_0x240f70[_0x2a17cf(0x332)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x240f70[_0x240f70[_0x2a17cf(0x261)]=0x32ca]=_0x2a17cf(0x261),_0x240f70[_0x240f70[_0x2a17cf(0x379)]=0x32cb]=_0x2a17cf(0x379),_0x240f70[_0x240f70[_0x2a17cf(0x1e6)]=-0x1]=_0x2a17cf(0x1e6),_0x240f70))(Be||{}),is=Object[_0x2a17cf(0x330)],ns=(_0x272f65,_0x2d8820,_0xfe6f5f,_0x58f8e2)=>{const _0x471af1=_0x2a17cf;for(var _0x26f3db=_0x58f8e2>0x1?void 0x0:_0x58f8e2?is(_0x2d8820,_0xfe6f5f):_0x2d8820,_0x32b862=_0x272f65[_0x471af1(0x1fd)]-0x1,_0x1ef60b;_0x32b862>=0x0;_0x32b862--)(_0x1ef60b=_0x272f65[_0x32b862])&&(_0x26f3db=_0x1ef60b(_0x26f3db)||_0x26f3db);return _0x26f3db;},he=(_0x2105dc,_0x338053)=>(_0x10958a,_0x490348)=>_0x338053(_0x10958a,_0x490348,_0x2105dc);exports[_0x2a17cf(0x2b7)]=class extends a[_0x2a17cf(0x2b2)]{constructor(_0x363ce7,_0x4479ca,_0xa03036){const _0x3743df=_0x2a17cf;super(),this[_0x3743df(0x282)]=_0x363ce7,this['_httpService']=_0x4479ca,this['_configService']=_0xa03036;}async[_0x2a17cf(0x356)](_0x193b9b,_0x15b89c,_0x4a4b01,..._0x542009){const _0x517262=_0x2a17cf;var _0x4a4a4c,_0x510f17,_0x278cf9,_0xe027a7;const _0x466c2e=this[_0x517262(0x282)][_0x517262(0x3d6)]();if(!_0x466c2e)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x2820a6=((_0x4a4a4c=this[_0x517262(0x369)][_0x517262(0x336)](u[_0x517262(0x307)]))!=null?_0x4a4a4c:u[_0x517262(0x272)])+'/'+_0x193b9b+_0x517262(0x25d)+_0x15b89c,_0xd4d3f4=new URL(window[_0x517262(0x2aa)][_0x517262(0x3c3)]),_0x28a743={'scriptId':_0x193b9b,'runId':(_0x510f17=_0xd4d3f4[_0x517262(0x2fb)][_0x517262(0x302)]('runId'))!=null?_0x510f17:'','function':_0x15b89c,'unitId':_0x466c2e['getUnitId'](),'argsOfFunction':JSON[_0x517262(0x30e)](_0x542009),'invokeId':(_0x278cf9=_0x4a4b01[_0x517262(0x27f)])!=null?_0x278cf9:'','executionId':(_0xe027a7=_0x4a4b01[_0x517262(0x19a)])!=null?_0xe027a7:''};try{const _0x2dff36=await this[_0x517262(0x1bb)][_0x517262(0x28c)](_0x2820a6,{'body':_0x28a743});return _0x2dff36['body'][_0x517262(0x3dd)]&&_0x2dff36[_0x517262(0x26f)][_0x517262(0x3dd)]['code']!==Be['OK']?_0x517262(0x208):_0x2dff36[_0x517262(0x26f)][_0x517262(0x249)];}catch{return _0x517262(0x208);}}},exports['RemoteUniscriptService']=ns([he(0x0,a[_0x2a17cf(0x281)]),he(0x1,a[_0x2a17cf(0x22b)](K[_0x2a17cf(0x3ec)])),he(0x2,a['IConfigService'])],exports[_0x2a17cf(0x2b7)]);const Me=0x7530,Le=_0x2a17cf(0x256);class rs extends a[_0x2a17cf(0x2b2)]{constructor(){const _0x5d7ca9=_0x2a17cf;super(),h(this,_0x5d7ca9(0x25e),a[_0x5d7ca9(0x2af)]()),h(this,_0x5d7ca9(0x333),new Set()),h(this,_0x5d7ca9(0x2fe),new Map()),h(this,_0x5d7ca9(0x32f),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x5d7ca9(0x2d6),new Map()),this[_0x5d7ca9(0x259)]();}['dispose'](){const _0x565438=_0x2a17cf;super['dispose'](),this[_0x565438(0x3f9)]['forEach']((_0x24c63a,_0x13fd49)=>this[_0x565438(0x268)](_0x13fd49)),this[_0x565438(0x32f)]&&window[_0x565438(0x187)](this['_heartbeatTimer']);}[_0x2a17cf(0x3ad)](_0x4a40c9){const _0x2e7160=_0x2a17cf;return this[_0x2e7160(0x3be)](_0x4a40c9)[_0x2e7160(0x3a6)](d[_0x2e7160(0x1b2)]());}['editingUnit'](_0x3a3c85){const _0x341a38=_0x2a17cf;this['_selfUnitIDs'][_0x341a38(0x3c7)]===0x0&&this['_scheduleHeartbeat'](),this[_0x341a38(0x333)][_0x341a38(0x378)](_0x3a3c85),this[_0x341a38(0x311)]({'type':0x0,'memberID':this[_0x341a38(0x25e)],'unitIDs':[_0x3a3c85],'isForwarded':!0x1});}[_0x2a17cf(0x2cb)](_0x207af6){const _0x265b3c=_0x2a17cf;this[_0x265b3c(0x333)]['delete'](_0x207af6),this[_0x265b3c(0x333)][_0x265b3c(0x3c7)]===0x0&&this[_0x265b3c(0x32f)]&&window[_0x265b3c(0x187)](this[_0x265b3c(0x32f)]);}['_init'](){const _0x21578e=_0x2a17cf;this[_0x21578e(0x1f5)](a[_0x21578e(0x24c)](d[_0x21578e(0x3cc)](window,_0x21578e(0x2d0))[_0x21578e(0x3f7)](_0x419105=>{const _0x249220=_0x21578e;if(_0x419105[_0x249220(0x222)]!==Le||!_0x419105['newValue'])return;const _0x2ff673=JSON['parse'](_0x419105[_0x249220(0x35a)]);this[_0x249220(0x2a8)](_0x2ff673);}))),window[_0x21578e(0x39f)](_0x21578e(0x25c),()=>this['_send']({'type':0x1,'memberID':this[_0x21578e(0x25e)],'unitIDs':Array[_0x21578e(0x3f8)](this['_selfUnitIDs'])}));}[_0x2a17cf(0x2a8)](_0x41d66d){const _0x329261=_0x2a17cf;switch(_0x41d66d[_0x329261(0x232)]){case 0x0:this['_handleJoinEvent'](_0x41d66d);break;case 0x1:this['_handleLeaveEvent'](_0x41d66d);break;case 0x2:this[_0x329261(0x1d7)](_0x41d66d);break;}}[_0x2a17cf(0x2e5)](_0x57d607){const _0x444a7d=_0x2a17cf,{unitIDs:_0x53e4ff,memberID:_0x181a97,isForwarded:_0x40e4b9}=_0x57d607;_0x53e4ff[_0x444a7d(0x1ce)](_0x17f977=>{const _0x7d423c=_0x444a7d;if(!_0x40e4b9&&this['_unitOnClients'][_0x7d423c(0x3bd)](_0x17f977)&&this[_0x7d423c(0x3be)](_0x17f977)['next'](u[_0x7d423c(0x17c)]['OTHER_CLIENTS_EDITING']),!this[_0x7d423c(0x2fe)][_0x7d423c(0x3bd)](_0x17f977)||!this[_0x7d423c(0x2fe)][_0x7d423c(0x302)](_0x17f977)[_0x7d423c(0x3bd)](_0x181a97)){const _0x4ded9f=this['_unitOnClients']['get'](_0x17f977)||new Set();_0x4ded9f[_0x7d423c(0x378)](_0x181a97),this[_0x7d423c(0x2fe)][_0x7d423c(0x228)](_0x17f977,_0x4ded9f),this[_0x7d423c(0x3ac)](_0x181a97);}}),_0x40e4b9||this['_send']({'type':0x0,'memberID':this[_0x444a7d(0x25e)],'unitIDs':[...this[_0x444a7d(0x333)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x439ac8){const _0x5b4469=_0x2a17cf;this[_0x5b4469(0x268)](_0x439ac8);const _0x3bcee8=window[_0x5b4469(0x19b)](()=>{const _0x3041df=_0x5b4469;this[_0x3041df(0x2fe)][_0x3041df(0x1ce)](_0x317910=>{_0x317910['delete'](_0x439ac8);});},Me*0x2);this[_0x5b4469(0x3f9)]['set'](_0x439ac8,_0x3bcee8);}[_0x2a17cf(0x268)](_0xcb345a){const _0x4441cc=_0x2a17cf;if(this[_0x4441cc(0x3f9)][_0x4441cc(0x3bd)](_0xcb345a)){const _0x3ba278=this['_clearOtherTimers']['get'](_0xcb345a);_0x3ba278&&window['clearTimeout'](_0x3ba278),this[_0x4441cc(0x3f9)][_0x4441cc(0x228)](_0xcb345a,null);}}[_0x2a17cf(0x3bf)](_0x1457db){const _0xa7dc4f=_0x2a17cf,{memberID:_0x2f6598,unitIDs:_0x26698a}=_0x1457db;_0x26698a['forEach'](_0x34ff93=>{const _0x5cd99d=_0x1209;var _0x592cae;const _0x5c2fb8=this[_0x5cd99d(0x2fe)][_0x5cd99d(0x302)](_0x34ff93);_0x5c2fb8&&(_0x5c2fb8[_0x5cd99d(0x184)](_0x2f6598),(_0x592cae=this['_ensureSubject'](_0x34ff93))==null||_0x592cae['next'](_0x5c2fb8[_0x5cd99d(0x3c7)]===0x0?u[_0x5cd99d(0x17c)][_0x5cd99d(0x3e3)]:u[_0x5cd99d(0x17c)]['OTHER_CLIENTS_EDITING']));}),this[_0xa7dc4f(0x268)](_0x2f6598);}['_handleHeartbeatEvent'](_0x307850){const _0x1b432e=_0x2a17cf;this['_scheduleClearOtherTimer'](_0x307850[_0x1b432e(0x1eb)]);}['_send'](_0x5cc46){const _0x4347a1=_0x2a17cf;localStorage[_0x4347a1(0x3cf)](Le,JSON[_0x4347a1(0x30e)](_0x5cc46));}[_0x2a17cf(0x324)](){const _0x105888=_0x2a17cf;this[_0x105888(0x32f)]=window[_0x105888(0x271)](()=>{const _0x5359b0=_0x105888;this[_0x5359b0(0x311)]({'type':0x2,'memberID':this[_0x5359b0(0x25e)]});},Me);}['_ensureSubject'](_0x79f46a){const _0x2bef88=_0x2a17cf;return this[_0x2bef88(0x2d6)][_0x2bef88(0x3bd)](_0x79f46a)||this[_0x2bef88(0x2d6)][_0x2bef88(0x228)](_0x79f46a,new d[(_0x2bef88(0x2db))](u[_0x2bef88(0x17c)][_0x2bef88(0x3e3)])),this['_unitStatus'][_0x2bef88(0x302)](_0x79f46a);}}exports[_0x2a17cf(0x1fe)]=me,exports[_0x2a17cf(0x318)]=$e,exports[_0x2a17cf(0x276)]=rs,exports[_0x2a17cf(0x38f)]=xe;
|
|
1
|
+
'use strict';const _0xa70a6a=_0x1cff;(function(_0x98cec7,_0xfc551c){const _0x701a5c=_0x1cff,_0x204fcb=_0x98cec7();while(!![]){try{const _0x3b7bb7=parseInt(_0x701a5c(0x2a6))/0x1*(-parseInt(_0x701a5c(0x393))/0x2)+parseInt(_0x701a5c(0x3aa))/0x3*(-parseInt(_0x701a5c(0x39b))/0x4)+parseInt(_0x701a5c(0x1bb))/0x5*(-parseInt(_0x701a5c(0x2e4))/0x6)+parseInt(_0x701a5c(0x255))/0x7*(parseInt(_0x701a5c(0x3bb))/0x8)+-parseInt(_0x701a5c(0x38a))/0x9*(parseInt(_0x701a5c(0x3b2))/0xa)+parseInt(_0x701a5c(0x229))/0xb*(parseInt(_0x701a5c(0x381))/0xc)+parseInt(_0x701a5c(0x3b8))/0xd;if(_0x3b7bb7===_0xfc551c)break;else _0x204fcb['push'](_0x204fcb['shift']());}catch(_0x4f0456){_0x204fcb['push'](_0x204fcb['shift']());}}}(_0x287c,0xb9f67));var We=Object['defineProperty'],Ve=(_0x5a20ca,_0x23b984,_0x3f8ab9)=>_0x23b984 in _0x5a20ca?We(_0x5a20ca,_0x23b984,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3f8ab9}):_0x5a20ca[_0x23b984]=_0x3f8ab9,h=(_0x170ebf,_0x2d262a,_0x5b659d)=>Ve(_0x170ebf,typeof _0x2d262a!=_0xa70a6a(0x327)?_0x2d262a+'':_0x2d262a,_0x5b659d);Object['defineProperty'](exports,Symbol[_0xa70a6a(0x22b)],{'value':_0xa70a6a(0x26a)});const P=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),d=require('rxjs'),D=require('@univerjs/design'),M=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),p=require('@univerjs/engine-render'),K=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),Ee=require('@univerjs/engine-formula'),$=require('rxjs/operators'),G=require('@univerjs/sheets-ui');var b=function(){const _0x41d7b0=_0xa70a6a;return b=Object['assign']||function(_0x163a00){const _0x3fffce=_0x1cff;for(var _0x3ae217,_0x3aa58d=0x1,_0x207e50=arguments[_0x3fffce(0x154)];_0x3aa58d<_0x207e50;_0x3aa58d++){_0x3ae217=arguments[_0x3aa58d];for(var _0x24b100 in _0x3ae217)Object['prototype'][_0x3fffce(0x396)]['call'](_0x3ae217,_0x24b100)&&(_0x163a00[_0x24b100]=_0x3ae217[_0x24b100]);}return _0x163a00;},b[_0x41d7b0(0x1aa)](this,arguments);},Ke=function(_0x1c96db,_0xba18da){const _0x31e4fe=_0xa70a6a;var _0x5a23bd={};for(var _0x2facb6 in _0x1c96db)Object[_0x31e4fe(0x18a)][_0x31e4fe(0x396)]['call'](_0x1c96db,_0x2facb6)&&_0xba18da[_0x31e4fe(0x308)](_0x2facb6)<0x0&&(_0x5a23bd[_0x2facb6]=_0x1c96db[_0x2facb6]);if(_0x1c96db!=null&&typeof Object[_0x31e4fe(0x263)]==_0x31e4fe(0x1c5)){for(var _0x34742c=0x0,_0x2facb6=Object[_0x31e4fe(0x263)](_0x1c96db);_0x34742c<_0x2facb6['length'];_0x34742c++)_0xba18da[_0x31e4fe(0x308)](_0x2facb6[_0x34742c])<0x0&&Object[_0x31e4fe(0x18a)][_0x31e4fe(0x23a)][_0x31e4fe(0x27d)](_0x1c96db,_0x2facb6[_0x34742c])&&(_0x5a23bd[_0x2facb6[_0x34742c]]=_0x1c96db[_0x2facb6[_0x34742c]]);}return _0x5a23bd;},ge=M['forwardRef'](function(_0x134623,_0x4747e5){const _0x3bef61=_0xa70a6a;var _0x548c59=_0x134623[_0x3bef61(0x201)],_0x3ab801=_0x134623['id'],_0x19d9a8=_0x134623[_0x3bef61(0x2a9)],_0x13979b=_0x134623['extend'],_0x4184a3=Ke(_0x134623,['icon','id',_0x3bef61(0x2a9),_0x3bef61(0x299)]),_0x1b8a69='univerjs-icon\x20univerjs-icon-'[_0x3bef61(0x277)](_0x3ab801,'\x20')[_0x3bef61(0x277)](_0x19d9a8||'')[_0x3bef61(0x334)](),_0x303e2e=M[_0x3bef61(0x2b1)]('_'[_0x3bef61(0x277)](Je()));return Pe(_0x548c59,''[_0x3bef61(0x277)](_0x3ab801),{'defIds':_0x548c59[_0x3bef61(0x1e2)],'idSuffix':_0x303e2e[_0x3bef61(0x3a4)]},b({'ref':_0x4747e5,'className':_0x1b8a69},_0x4184a3),_0x13979b);});function Pe(_0x20e925,_0x2892eb,_0x134240,_0x270d42,_0x4ccda4){const _0x1eb7ce=_0xa70a6a;return M[_0x1eb7ce(0x36a)](_0x20e925['tag'],b(b({'key':_0x2892eb},qe(_0x20e925,_0x134240,_0x4ccda4)),_0x270d42),(ze(_0x20e925,_0x134240)[_0x1eb7ce(0x3c1)]||[])[_0x1eb7ce(0x186)](function(_0x40d261,_0x3834ee){const _0x1a9dcf=_0x1eb7ce;return Pe(_0x40d261,''[_0x1a9dcf(0x277)](_0x2892eb,'-')[_0x1a9dcf(0x277)](_0x20e925[_0x1a9dcf(0x2f5)],'-')['concat'](_0x3834ee),_0x134240,void 0x0,_0x4ccda4);}));}function qe(_0x14d4d2,_0x1764c3,_0x4529a7){const _0x57034d=_0xa70a6a;var _0x117003=b({},_0x14d4d2[_0x57034d(0x19d)]);_0x4529a7!=null&&_0x4529a7[_0x57034d(0x17f)]&&_0x117003[_0x57034d(0x25b)]==='colorChannel1'&&(_0x117003['fill']=_0x4529a7[_0x57034d(0x17f)]),_0x14d4d2[_0x57034d(0x2f5)]===_0x57034d(0x1a6)&&_0x117003['id']&&(_0x117003['id']=_0x117003['id']+_0x1764c3[_0x57034d(0x331)]),Object[_0x57034d(0x2c7)](_0x117003)[_0x57034d(0x1d1)](function(_0x10eb5f){const _0x1a1417=_0x57034d;var _0xe4b3d9=_0x10eb5f[0x0],_0x88179d=_0x10eb5f[0x1];_0xe4b3d9===_0x1a1417(0x1a6)&&typeof _0x88179d==_0x1a1417(0x2de)&&(_0x117003[_0xe4b3d9]=_0x88179d[_0x1a1417(0x370)](/url\(#(.*)\)/,_0x1a1417(0x2bd)['concat'](_0x1764c3[_0x1a1417(0x331)],')')));});var _0x825c67=_0x1764c3[_0x57034d(0x1e2)];return!_0x825c67||_0x825c67['length']===0x0||(_0x14d4d2[_0x57034d(0x2f5)]==='use'&&_0x117003['xlink:href']&&(_0x117003[_0x57034d(0x24a)]=_0x117003[_0x57034d(0x24a)]+_0x1764c3[_0x57034d(0x331)]),Object[_0x57034d(0x2c7)](_0x117003)[_0x57034d(0x1d1)](function(_0x4aee9c){const _0x242739=_0x57034d;var _0x486b5c=_0x4aee9c[0x0],_0xae0f41=_0x4aee9c[0x1];typeof _0xae0f41==_0x242739(0x2de)&&(_0x117003[_0x486b5c]=_0xae0f41[_0x242739(0x370)](/url\(#(.*)\)/,_0x242739(0x2bd)[_0x242739(0x277)](_0x1764c3[_0x242739(0x331)],')')));})),_0x117003;}function ze(_0x58288a,_0x326e19){const _0x3bdd3a=_0xa70a6a;var _0x2b333f,_0x94e5aa=_0x326e19[_0x3bdd3a(0x1e2)];return!_0x94e5aa||_0x94e5aa[_0x3bdd3a(0x154)]===0x0?_0x58288a:_0x58288a[_0x3bdd3a(0x2f5)]==='defs'&&(!((_0x2b333f=_0x58288a[_0x3bdd3a(0x3c1)])===null||_0x2b333f===void 0x0)&&_0x2b333f[_0x3bdd3a(0x154)])?b(b({},_0x58288a),{'children':_0x58288a[_0x3bdd3a(0x3c1)][_0x3bdd3a(0x186)](function(_0x2dd2cf){const _0x4b13f6=_0x3bdd3a;return typeof _0x2dd2cf[_0x4b13f6(0x19d)]['id']==_0x4b13f6(0x2de)&&_0x94e5aa&&_0x94e5aa[_0x4b13f6(0x321)](_0x2dd2cf[_0x4b13f6(0x19d)]['id'])?b(b({},_0x2dd2cf),{'attrs':b(b({},_0x2dd2cf['attrs']),{'id':_0x2dd2cf[_0x4b13f6(0x19d)]['id']+_0x326e19[_0x4b13f6(0x331)]})}):_0x2dd2cf;})}):_0x58288a;}function Je(){const _0x47378f=_0xa70a6a;return Math[_0x47378f(0x250)]()['toString'](0x24)[_0x47378f(0x26b)](0x2,0x8);}ge[_0xa70a6a(0x3b0)]=_0xa70a6a(0x17d);var Ze={'tag':_0xa70a6a(0x2f1),'attrs':{'xmlns':_0xa70a6a(0x1a8),'fill':_0xa70a6a(0x2f9),'viewBox':'0\x200\x2016\x2016','width':_0xa70a6a(0x2b7),'height':_0xa70a6a(0x2b7)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0xa70a6a(0x36c),'attrs':{'stroke':_0xa70a6a(0x150),'d':_0xa70a6a(0x362),'strokeLinecap':_0xa70a6a(0x390),'strokeLinejoin':_0xa70a6a(0x390),'strokeWidth':1.2}}]},{'tag':_0xa70a6a(0x241),'attrs':{},'children':[{'tag':_0xa70a6a(0x2f6),'attrs':{'id':_0xa70a6a(0x175)},'children':[{'tag':_0xa70a6a(0x36c),'attrs':{'fill':_0xa70a6a(0x360),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},we=M[_0xa70a6a(0x180)](function(_0x39b07b,_0x51565d){const _0x1b1754=_0xa70a6a;return M['createElement'](ge,Object[_0x1b1754(0x3ad)]({},_0x39b07b,{'id':_0x1b1754(0x1f5),'ref':_0x51565d,'icon':Ze}));});we[_0xa70a6a(0x3b0)]=_0xa70a6a(0x2cd);var Qe={'tag':_0xa70a6a(0x2f1),'attrs':{'xmlns':_0xa70a6a(0x1a8),'fill':_0xa70a6a(0x2f9),'viewBox':_0xa70a6a(0x2c6),'width':_0xa70a6a(0x2b7),'height':_0xa70a6a(0x2b7)},'children':[{'tag':'g','attrs':{'clipPath':_0xa70a6a(0x386)},'children':[{'tag':_0xa70a6a(0x36c),'attrs':{'stroke':_0xa70a6a(0x150),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0xa70a6a(0x390),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xa70a6a(0x241),'attrs':{},'children':[{'tag':_0xa70a6a(0x2f6),'attrs':{'id':_0xa70a6a(0x275)},'children':[{'tag':_0xa70a6a(0x36c),'attrs':{'fill':_0xa70a6a(0x360),'d':_0xa70a6a(0x266),'transform':_0xa70a6a(0x1ca)}}]}]}],'defIds':[_0xa70a6a(0x275)]},Ae=M[_0xa70a6a(0x180)](function(_0xa0a2c8,_0x28874b){const _0xb27a65=_0xa70a6a;return M['createElement'](ge,Object[_0xb27a65(0x3ad)]({},_0xa0a2c8,{'id':_0xb27a65(0x1a1),'ref':_0x28874b,'icon':Qe}));});Ae[_0xa70a6a(0x3b0)]=_0xa70a6a(0x39c);function et(_0x3e4d6f){const _0x527e33=_0xa70a6a;switch(_0x3e4d6f){case u['CollaborationStatus']['OFFLINE']:return _0x527e33(0x2fc);case u['CollaborationStatus']['CONFLICT']:return _0x527e33(0x2a8);case u[_0x527e33(0x29c)]['FETCH_MISS']:return _0x527e33(0x2f7);case u['CollaborationStatus']['NOT_COLLAB']:return _0x527e33(0x2b8);case u[_0x527e33(0x29c)]['AWAITING']:case u[_0x527e33(0x29c)]['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case u[_0x527e33(0x29c)][_0x527e33(0x343)]:case u[_0x527e33(0x29c)]['PENDING']:return'collabStatus.synced';}}function tt(_0x152345){const _0x2a4c32=_0xa70a6a,{status$:_0x566576}=_0x152345,_0x586ca7=O[_0x2a4c32(0x1fd)](_0x566576,u[_0x2a4c32(0x29c)]['NOT_COLLAB']),_0x2548ba=O[_0x2a4c32(0x36b)](a[_0x2a4c32(0x173)]),_0x10183f=O[_0x2a4c32(0x36b)](u[_0x2a4c32(0x2c2)]),_0x470c78=_0x586ca7!==u['CollaborationStatus'][_0x2a4c32(0x19a)],_0x52bee9=_0x2548ba['t'](et(_0x586ca7)),_0x55da6e=_0x470c78?P[_0x2a4c32(0x254)](Ae,{}):P[_0x2a4c32(0x254)](we,{}),_0x5510ab=M[_0x2a4c32(0x1da)](()=>{const _0x3a4bb4=_0x2a4c32;_0x470c78||_0x10183f[_0x3a4bb4(0x1b7)]();},[_0x470c78,_0x10183f]);function _0x1a6dd9(){const _0x181b3d=_0x2a4c32;return P['jsxs'](_0x181b3d(0x16d),{'className':_0x181b3d(0x170),'onClick':_0x5510ab,'children':[P[_0x181b3d(0x254)](_0x181b3d(0x16d),{'className':D[_0x181b3d(0x29b)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x470c78,'univer-text-red-500':!_0x470c78}),'children':_0x55da6e}),P['jsx'](_0x181b3d(0x16d),{'className':_0x181b3d(0x15f),'children':_0x52bee9})]});}return _0x470c78?_0x1a6dd9():P[_0x2a4c32(0x254)](D[_0x2a4c32(0x31b)],{'title':_0x2548ba['t']('collab-client.tooltip.reconnect'),'children':_0x1a6dd9()});}var st=Object['getOwnPropertyDescriptor'],it=(_0xea65ba,_0x751730,_0xe81de7,_0x3946bb)=>{const _0x88a2c6=_0xa70a6a;for(var _0x2b8f8c=_0x3946bb>0x1?void 0x0:_0x3946bb?st(_0x751730,_0xe81de7):_0x751730,_0x2a3135=_0xea65ba[_0x88a2c6(0x154)]-0x1,_0x53abb3;_0x2a3135>=0x0;_0x2a3135--)(_0x53abb3=_0xea65ba[_0x2a3135])&&(_0x2b8f8c=_0x53abb3(_0x2b8f8c)||_0x2b8f8c);return _0x2b8f8c;},V=(_0x418eff,_0xc776ec)=>(_0x21e745,_0x3a52a1)=>_0xc776ec(_0x21e745,_0x3a52a1,_0x418eff);exports[_0xa70a6a(0x33e)]=class extends a['Disposable']{constructor(_0x140ea4,_0x199af7,_0x2e8446,_0x2f4ac7){const _0x55d3d2=_0xa70a6a;super(),h(this,_0x55d3d2(0x33b),new d['BehaviorSubject'](u['CollaborationStatus'][_0x55d3d2(0x1e0)])),(this['_univerInstanceService']=_0x140ea4,this[_0x55d3d2(0x1d9)]=_0x199af7,this[_0x55d3d2(0x152)]=_0x2e8446,this['_uiPartsService']=_0x2f4ac7,this[_0x55d3d2(0x27f)](),this[_0x55d3d2(0x3af)]());}[_0xa70a6a(0x3af)](){const _0x494146=_0xa70a6a;this[_0x494146(0x39d)](this['_univerInstanceService'][_0x494146(0x302)][_0x494146(0x28e)](d['switchMap'](()=>{const _0x1ca147=_0x494146,_0x5bae47=this['_univerInstanceService']['getFocusedUnit']();return _0x5bae47?this['_collaborationController'][_0x1ca147(0x31c)](_0x5bae47['getUnitId']()):d['of'](null);}),d[_0x494146(0x20c)](_0x58fe60=>_0x58fe60?_0x58fe60['status$']:d['of'](u[_0x494146(0x29c)]['NOT_COLLAB'])))[_0x494146(0x236)](_0x317ea0=>{const _0x1c0742=_0x494146;this[_0x1c0742(0x33b)][_0x1c0742(0x1b3)](_0x317ea0);}));}[_0xa70a6a(0x27f)](){const _0x3dab96=_0xa70a6a;this['disposeWithMe'](this[_0x3dab96(0x3cd)][_0x3dab96(0x18f)](O[_0x3dab96(0x300)][_0x3dab96(0x234)],()=>O['connectInjector'](nt({'status$':this[_0x3dab96(0x33b)][_0x3dab96(0x17b)]()}),this[_0x3dab96(0x1d9)])));}},exports[_0xa70a6a(0x33e)]=it([V(0x0,a[_0xa70a6a(0x313)]),V(0x1,a['Inject'](a[_0xa70a6a(0x262)])),V(0x2,a['Inject'](u['CollaborationController'])),V(0x3,O['IUIPartsService'])],exports[_0xa70a6a(0x33e)]);function nt(_0x491719){const {status$:_0x5eb63d}=_0x491719;return function(){const _0x3e2bdb=_0x1cff;return P[_0x3e2bdb(0x254)](tt,{'status$':_0x5eb63d});};}const me=a[_0xa70a6a(0x202)](_0xa70a6a(0x301));var rt=Object[_0xa70a6a(0x33d)],ot=(_0x4fc59c,_0x4c7ff1,_0x3e13cd,_0x4c3c45)=>{const _0x2ee242=_0xa70a6a;for(var _0x411719=_0x4c3c45>0x1?void 0x0:_0x4c3c45?rt(_0x4c7ff1,_0x3e13cd):_0x4c7ff1,_0x43c21f=_0x4fc59c[_0x2ee242(0x154)]-0x1,_0x59ec58;_0x43c21f>=0x0;_0x43c21f--)(_0x59ec58=_0x4fc59c[_0x43c21f])&&(_0x411719=_0x59ec58(_0x411719)||_0x411719);return _0x411719;},k=(_0x2f0c23,_0x34c251)=>(_0x4a6948,_0x4d0dea)=>_0x34c251(_0x4a6948,_0x4d0dea,_0x2f0c23);exports[_0xa70a6a(0x2c4)]=class extends a[_0xa70a6a(0x306)]{constructor(_0x503eae,_0x193526,_0x44e6ed,_0x4c988a,_0xdd4e8f){const _0x304454=_0xa70a6a;super(),this[_0x304454(0x15b)]=_0x503eae,this[_0x304454(0x1cc)]=_0x193526,this['_commandService']=_0x44e6ed,this[_0x304454(0x2ae)]=_0x4c988a,_0xdd4e8f?_0xdd4e8f==null||_0xdd4e8f[_0x304454(0x38b)]()['then'](()=>this[_0x304454(0x373)]()):(this[_0x304454(0x1cc)][_0x304454(0x281)](_0x304454(0x357),_0x304454(0x267)),this[_0x304454(0x373)]());}async['_init'](){const _0x552cd7=_0xa70a6a,_0x55d167=this[_0x552cd7(0x15b)]['getParam']('unit'),_0x1b0dd5=this[_0x552cd7(0x15b)][_0x552cd7(0x1cd)]('type'),_0x27baa0=this['_urlService']['getParam'](_0x552cd7(0x3ce));if(!_0x55d167||!_0x1b0dd5){this['_logService'][_0x552cd7(0x281)](_0x552cd7(0x357),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x1a2119=await this['_dataLoaderService'][_0x552cd7(0x19c)](_0x55d167,Number(_0x1b0dd5),_0x27baa0);_0x1a2119&&_0x1a2119 instanceof a[_0x552cd7(0x1ec)]&&this['_setupSubUnitSync'](_0x1a2119);}async[_0xa70a6a(0x310)](_0x7519e0){const _0x4bb145=_0xa70a6a;await this[_0x4bb145(0x24f)](_0x7519e0),_0x7519e0[_0x4bb145(0x307)][_0x4bb145(0x28e)](d[_0x4bb145(0x22d)](this[_0x4bb145(0x2ef)]))[_0x4bb145(0x236)](_0x3449bb=>{const _0x1c9949=_0x4bb145;_0x3449bb&&this[_0x1c9949(0x39f)](_0x3449bb);}),this['_urlService'][_0x4bb145(0x161)][_0x4bb145(0x28e)](d[_0x4bb145(0x22d)](this[_0x4bb145(0x2ef)]))['subscribe'](()=>this[_0x4bb145(0x24f)](_0x7519e0));}[_0xa70a6a(0x39f)](_0x5ef451,_0x3d466e=!0x1){const _0x596309=_0xa70a6a,_0x27e591=this[_0x596309(0x15b)]['getParam'](_0x596309(0x3ce));_0x5ef451[_0x596309(0x260)]()!==_0x27e591&&this['_urlService'][_0x596309(0x336)](_0x596309(0x3ce),_0x5ef451[_0x596309(0x260)](),_0x3d466e);}async[_0xa70a6a(0x24f)](_0x42478e){const _0xa796d4=_0xa70a6a;var _0x52e4b8;const _0x254828=this[_0xa796d4(0x15b)][_0xa796d4(0x1cd)](_0xa796d4(0x3ce));if(!_0x254828||!_0x42478e[_0xa796d4(0x167)](_0x254828)){const _0xab1d2f=_0x42478e['getUnhiddenWorksheets']()[0x0],_0x3d19a0=_0x42478e[_0xa796d4(0x167)](_0xab1d2f);if(!_0x3d19a0)return;this[_0xa796d4(0x39f)](_0x3d19a0,!0x0),await this[_0xa796d4(0x324)][_0xa796d4(0x38d)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x42478e['getUnitId'](),'subUnitId':_0xab1d2f});return;}((_0x52e4b8=_0x42478e[_0xa796d4(0x2e8)]())==null?void 0x0:_0x52e4b8[_0xa796d4(0x260)]())!==_0x254828&&await this[_0xa796d4(0x324)]['executeCommand'](g[_0xa796d4(0x2a7)]['id'],{'unitId':_0x42478e[_0xa796d4(0x217)](),'subUnitId':_0x254828});}},exports[_0xa70a6a(0x2c4)]=ot([k(0x0,me),k(0x1,a['ILogService']),k(0x2,a[_0xa70a6a(0x1fe)]),k(0x3,a[_0xa70a6a(0x312)](u[_0xa70a6a(0x2fa)])),k(0x4,a[_0xa70a6a(0x1f1)](Xe['IRemoteInstanceService']))],exports[_0xa70a6a(0x2c4)]);var at=Object[_0xa70a6a(0x33d)],ct=(_0xf420e,_0x2c1405,_0x25e361,_0x23c03e)=>{const _0x4c19d5=_0xa70a6a;for(var _0x4a6939=_0x23c03e>0x1?void 0x0:_0x23c03e?at(_0x2c1405,_0x25e361):_0x2c1405,_0x2458d6=_0xf420e[_0x4c19d5(0x154)]-0x1,_0x408b3b;_0x2458d6>=0x0;_0x2458d6--)(_0x408b3b=_0xf420e[_0x2458d6])&&(_0x4a6939=_0x408b3b(_0x4a6939)||_0x4a6939);return _0x4a6939;},be=(_0x3889b5,_0x4c0946)=>(_0x1c6b92,_0x2a59a9)=>_0x4c0946(_0x1c6b92,_0x2a59a9,_0x3889b5);let ue=class extends a[_0xa70a6a(0x306)]{constructor(_0x3af390,_0x79276e){const _0x4aef66=_0xa70a6a;super(),this[_0x4aef66(0x17c)]=_0x3af390,this[_0x4aef66(0x32a)]=_0x79276e,this[_0x4aef66(0x373)]();}[_0xa70a6a(0x373)](){const _0x21ede5=_0xa70a6a,_0x30ca07=this;this[_0x21ede5(0x39d)](this[_0x21ede5(0x17c)]['addClipboardHook']({'onBeforePasteImage':async _0x6a4fc6=>{const _0x16618f=_0x21ede5,_0x139245=await _0x30ca07[_0x16618f(0x32a)][_0x16618f(0x32d)](_0x6a4fc6);return _0x139245?{'source':_0x139245[_0x16618f(0x2ca)],'imageSourceType':_0x139245['imageSourceType']}:null;}}));}};ue=ct([be(0x0,E[_0xa70a6a(0x273)]),be(0x1,Ge[_0xa70a6a(0x223)])],ue);const Oe=[_0xa70a6a(0x2db),_0xa70a6a(0x3b1),_0xa70a6a(0x3d2),_0xa70a6a(0x2da),_0xa70a6a(0x3b4),'yellow.400'];class Ce extends a[_0xa70a6a(0x270)]{constructor(){const _0x539761=_0xa70a6a;super(...arguments),h(this,'_assignedColors',new Map()),h(this,_0x539761(0x1fc),0x0);}[_0xa70a6a(0x2fd)](_0x5ba74c){const _0x420cf8=_0xa70a6a;if(this[_0x420cf8(0x295)][_0x420cf8(0x2b6)](_0x5ba74c))return this[_0x420cf8(0x295)][_0x420cf8(0x258)](_0x5ba74c);const _0x3ecc5c=Oe[this[_0x420cf8(0x1fc)]];return this[_0x420cf8(0x1fc)]=(this[_0x420cf8(0x1fc)]+0x1)%Oe['length'],this[_0x420cf8(0x295)][_0x420cf8(0x2d9)](_0x5ba74c,_0x3ecc5c),_0x3ecc5c;}}function ye(_0x184bbf){const _0x4095e1=_0xa70a6a;let _0x1690c6='';for(const _0x31e63d of _0x184bbf){const {startOffset:_0x25604d,endOffset:_0x4a8c54,isActive:_0x4ab8aa,rangeType:_0x5b43bb,segmentId:_0x3b748a,segmentPage:_0x154903}=_0x31e63d;_0x1690c6[_0x4095e1(0x154)]&&(_0x1690c6+=','),_0x1690c6+=_0x25604d+':'+_0x4a8c54+':'+(_0x4ab8aa?'1':'0')+':'+_0x5b43bb+':'+_0x3b748a+':'+_0x154903;}return _0x1690c6;}function lt(_0x285504){const _0x283cc0=_0xa70a6a,_0x496099=_0x285504[_0x283cc0(0x1c4)](','),_0x138b60=[];for(const _0x7e4444 of _0x496099){const [_0x3584f8,_0x1258e4,_0x3de92f,_0xc7eab0,_0x4ed454,_0xc4a535]=_0x7e4444['split'](':');_0x138b60[_0x283cc0(0x392)]({'startOffset':Number(_0x3584f8),'endOffset':Number(_0x1258e4),'collapsed':_0x3584f8===_0x1258e4,'isActive':_0x3de92f==='1','rangeType':_0xc7eab0===a[_0x283cc0(0x2b2)][_0x283cc0(0x191)]?a['DOC_RANGE_TYPE'][_0x283cc0(0x191)]:a[_0x283cc0(0x2b2)][_0x283cc0(0x372)],'segmentId':typeof _0x4ed454==_0x283cc0(0x2de)?String(_0x4ed454):'','segmentPage':Number(_0xc4a535!=null?_0xc4a535:-0x1)});}return _0x138b60[_0x283cc0(0x368)](_0x4ebad1=>_0x4ebad1['isActive'])||(_0x138b60[0x0][_0x283cc0(0x196)]=!0x0),_0x138b60;}class pe extends a[_0xa70a6a(0x306)]{constructor(){const _0x1da93e=_0xa70a6a;super(...arguments),h(this,_0x1da93e(0x2e7),new d[(_0x1da93e(0x239))](null)),h(this,_0x1da93e(0x1a7),this[_0x1da93e(0x2e7)]['asObservable']());}[_0xa70a6a(0x18b)](_0x2f8cc7){const _0x4dfb74=_0xa70a6a,{unitID:_0x1de51,memberID:_0x36cd41,textRanges:_0x325f55}=_0x2f8cc7,_0x4b1470=ye(_0x325f55);if(_0x4b1470==='')return;const _0x2f7ff0={'unitID':_0x1de51,'memberID':_0x36cd41,'selection':_0x4b1470};this[_0x4dfb74(0x2e7)][_0x4dfb74(0x1b3)](_0x2f7ff0);}}var _t=Object[_0xa70a6a(0x33d)],ht=(_0x5621ca,_0x464acc,_0xa1c61c,_0x8ce27b)=>{const _0x4e5589=_0xa70a6a;for(var _0x21c26a=_0x8ce27b>0x1?void 0x0:_0x8ce27b?_t(_0x464acc,_0xa1c61c):_0x464acc,_0x29208c=_0x5621ca[_0x4e5589(0x154)]-0x1,_0x4b8e1a;_0x29208c>=0x0;_0x29208c--)(_0x4b8e1a=_0x5621ca[_0x29208c])&&(_0x21c26a=_0x4b8e1a(_0x21c26a)||_0x21c26a);return _0x21c26a;},L=(_0x48ab2c,_0x2900b5)=>(_0x465372,_0x58355e)=>_0x2900b5(_0x465372,_0x58355e,_0x48ab2c);const ut=0x12c,dt=0x64;let de=class extends a[_0xa70a6a(0x306)]{constructor(_0x590a7d,_0xc6cd2c,_0xd81f2d,_0x20082e,_0x157a47,_0xdc0087,_0x16cbdb,_0x27deb8,_0x548175){const _0x1eacab=_0xa70a6a;super(),h(this,_0x1eacab(0x2d2),!0x1),h(this,'_init',!0x1),h(this,'_cursorInfo$',new d['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this['_cursorInfo$'][_0x1eacab(0x17b)]()),h(this,_0x1eacab(0x25a),new d[(_0x1eacab(0x239))]([])),h(this,_0x1eacab(0x387),this[_0x1eacab(0x25a)][_0x1eacab(0x28e)](d[_0x1eacab(0x274)](ut))),h(this,_0x1eacab(0x23e),a['debounce'](_0x497d57=>{const _0x2179ca=_0x1eacab,_0x4b88c6={'eventID':m[_0x2179ca(0x346)][_0x2179ca(0x194)],'data':{'unitID':this['unitID'],'memberID':this[_0x2179ca(0x163)][_0x2179ca(0x20a)](),'selection':ye(_0x497d57)}};this[_0x2179ca(0x163)]['send'](_0x4b88c6,this[_0x2179ca(0x3d1)]);},dt)),(this[_0x1eacab(0x3d1)]=_0x590a7d,this[_0x1eacab(0x163)]=_0xc6cd2c,this[_0x1eacab(0x1d9)]=_0xd81f2d,this['_colorAssignService']=_0x20082e,this[_0x1eacab(0x1dc)]=_0x157a47,this[_0x1eacab(0x38c)]=_0xdc0087,this[_0x1eacab(0x374)]=_0x16cbdb,this[_0x1eacab(0x3a3)]=_0x27deb8,this[_0x1eacab(0x324)]=_0x548175);}get[_0xa70a6a(0x382)](){const _0x5cd4aa=_0xa70a6a;return this[_0x5cd4aa(0x279)][_0x5cd4aa(0x272)]();}get[_0xa70a6a(0x330)](){const _0x43fa3a=_0xa70a6a;return this[_0x43fa3a(0x25a)]['getValue']();}[_0xa70a6a(0x37e)](){const _0x4bfe44=_0xa70a6a;super[_0x4bfe44(0x37e)](),this[_0x4bfe44(0x279)]['next'](new Map()),this[_0x4bfe44(0x279)]['complete'](),this[_0x4bfe44(0x25a)]['next']([]),this[_0x4bfe44(0x25a)]['complete']();}['init'](){const _0x2a8838=_0xa70a6a;this[_0x2a8838(0x373)]||(this[_0x2a8838(0x373)]=!0x0,this[_0x2a8838(0x163)][_0x2a8838(0x176)][_0x2a8838(0x28e)](d[_0x2a8838(0x22d)](this[_0x2a8838(0x2ef)]))['subscribe'](_0x5d874e=>{const _0x16ffd1=_0x2a8838;_0x5d874e===u[_0x16ffd1(0x290)][_0x16ffd1(0x3d0)]?this[_0x16ffd1(0x1df)]():this[_0x16ffd1(0x256)]();}),this[_0x2a8838(0x163)][_0x2a8838(0x169)][_0x2a8838(0x28e)](d[_0x2a8838(0x22d)](this['dispose$']))[_0x2a8838(0x236)](_0x224215=>{const _0x3e2998=_0x2a8838,_0x1ac681=_0x224215[_0x3e2998(0x298)];_0x1ac681===m[_0x3e2998(0x346)][_0x3e2998(0x194)]&&this[_0x3e2998(0x1f6)](_0x224215),_0x1ac681===m[_0x3e2998(0x346)][_0x3e2998(0x22a)]&&this[_0x3e2998(0x215)](_0x224215);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x5dc448=>{const _0x50320c=_0x2a8838,_0x42d6f9=_0x5dc448['params'];_0x42d6f9!=null&&this['_online']&&_0x5dc448['id']===Y[_0x50320c(0x2d8)]['id']&&_0x42d6f9[_0x50320c(0x16c)]===this[_0x50320c(0x3d1)]&&_0x42d6f9[_0x50320c(0x3a6)]===!0x1&&_0x42d6f9[_0x50320c(0x2d1)][_0x50320c(0x154)]>0x0&&this[_0x50320c(0x23e)](_0x42d6f9[_0x50320c(0x2d1)]);})),this[_0x2a8838(0x38c)]['collabCursorState$']['pipe'](d[_0x2a8838(0x22d)](this[_0x2a8838(0x2ef)]))['subscribe'](_0x2e839c=>{const _0xe77f12=_0x2a8838;if((_0x2e839c==null?void 0x0:_0x2e839c[_0xe77f12(0x3d1)])!==this['unitID'])return;const _0x1db1fd={'eventID':m['CollaborationEvent'][_0xe77f12(0x194)],'data':_0x2e839c};this['_onCursorUpdate'](_0x1db1fd);}),this[_0x2a8838(0x39d)](this['_commandService'][_0x2a8838(0x1a0)](_0x3a57d7=>{const _0x408e39=_0x2a8838;if(_0x3a57d7['params']==null)return;const _0x4a05fc=_0x3a57d7[_0x408e39(0x1f3)];if(_0x3a57d7['id']!==Y[_0x408e39(0x2e5)]['id']||_0x4a05fc['unitId']!==this[_0x408e39(0x3d1)])return;const _0x33f06c={'id':_0x408e39(0x2ad),'params':_0x4a05fc},_0x3907e1=this[_0x408e39(0x382)];for(const [_0x18cedd,_0x497047]of _0x3907e1){const _0x591e2c={'id':_0x408e39(0x2ad),'params':{'unitId':this[_0x408e39(0x3d1)],'actions':null,'textRanges':_0x497047['ranges']}},_0x34f882=this['_transformService']['transformMutation'](_0x33f06c,_0x591e2c,!0x1);if(m[_0x408e39(0x238)](_0x34f882))throw _0x34f882[_0x408e39(0x1c9)];_0x3907e1[_0x408e39(0x2d9)](_0x18cedd,{..._0x497047,'ranges':_0x34f882['m2Prime']['params'][_0x408e39(0x2df)]});}queueMicrotask(()=>{const _0x5a433a=_0x408e39;this['_cursorInfo$'][_0x5a433a(0x1b3)](_0x3907e1);});})));}['_onCursorUpdate'](_0x2baf25){const _0x3d991c=_0xa70a6a;var _0x3c05b3,_0x339ddb;const {memberID:_0x53fdf0,selection:_0x352fda}=_0x2baf25['data'],_0x33dd81=lt(_0x352fda),_0x3bd9c2=(_0x339ddb=(_0x3c05b3=this[_0x3d991c(0x1dc)][_0x3d991c(0x323)](this[_0x3d991c(0x3d1)],_0x53fdf0))==null?void 0x0:_0x3c05b3['name'])!=null?_0x339ddb:_0x3d991c(0x25d),_0x5d5fb5={'color':this[_0x3d991c(0x2f4)][_0x3d991c(0x2fd)](_0x53fdf0),'name':_0x3bd9c2,'ranges':_0x33dd81},_0x537e37=this[_0x3d991c(0x382)];_0x537e37['set'](_0x53fdf0,_0x5d5fb5),this['_cursorInfo$'][_0x3d991c(0x1b3)](_0x537e37);}[_0xa70a6a(0x215)](_0x547bed){const _0x21fdb2=_0xa70a6a,{memberID:_0xd92201}=_0x547bed[_0x21fdb2(0x1de)],_0x33f8be=this[_0x21fdb2(0x382)];_0x33f8be[_0x21fdb2(0x15d)](_0xd92201),this[_0x21fdb2(0x279)][_0x21fdb2(0x1b3)](_0x33f8be);}[_0xa70a6a(0x1df)](){const _0x2df38f=_0xa70a6a;var _0x4bb267;if(this[_0x2df38f(0x2d2)]=!0x0,((_0x4bb267=this['_univerInstanceService'][_0x2df38f(0x269)]())==null?void 0x0:_0x4bb267[_0x2df38f(0x217)]())!==this['unitID'])return;const _0x20110d=this[_0x2df38f(0x1d9)][_0x2df38f(0x258)](Y[_0x2df38f(0x3c3)])[_0x2df38f(0x1ac)]();Array[_0x2df38f(0x1d5)](_0x20110d)&&_0x20110d[_0x2df38f(0x154)]>0x0&&this[_0x2df38f(0x23e)](_0x20110d);}['_toggleOffline'](){this['_online']=!0x1;}};de=ht([L(0x2,a['Inject'](a[_0xa70a6a(0x262)])),L(0x3,a['Inject'](Ce)),L(0x4,a['Inject'](u[_0xa70a6a(0x27b)])),L(0x5,a['Inject'](pe)),L(0x6,m[_0xa70a6a(0x1ae)]),L(0x7,a[_0xa70a6a(0x313)]),L(0x8,a[_0xa70a6a(0x1fe)])],de);var St=Object[_0xa70a6a(0x33d)],ft=(_0x5267ca,_0x519935,_0x24633a,_0x3c990b)=>{const _0x555e7a=_0xa70a6a;for(var _0x1206d6=_0x3c990b>0x1?void 0x0:_0x3c990b?St(_0x519935,_0x24633a):_0x519935,_0x3bf515=_0x5267ca[_0x555e7a(0x154)]-0x1,_0x1bb77c;_0x3bf515>=0x0;_0x3bf515--)(_0x1bb77c=_0x5267ca[_0x3bf515])&&(_0x1206d6=_0x1bb77c(_0x1206d6)||_0x1206d6);return _0x1206d6;},A=(_0x21f175,_0x32c055)=>(_0x45f920,_0x27bfe1)=>_0x32c055(_0x45f920,_0x27bfe1,_0x21f175);const It=0x12c,vt=0x64,gt=()=>{let _0x508a27=[],_0x2c8e42=!0x1;return _0xb51a10=>{const _0x1a86ea=_0x1cff;_0x508a27[_0x1a86ea(0x392)](_0xb51a10),_0x2c8e42||(_0x2c8e42=!0x0,setTimeout(()=>{_0x508a27['forEach'](_0x18183f=>_0x18183f()),_0x508a27=[],_0x2c8e42=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x1086de,_0xaeca52,_0x37ffb7,_0x33ef00,_0x51b0c4,_0x1d85a9,_0x45180f,_0x421d94){const _0x7724a1=_0xa70a6a;super(),h(this,_0x7724a1(0x2d2),!0x1),h(this,_0x7724a1(0x373),!0x1),h(this,_0x7724a1(0x279),new d[(_0x7724a1(0x239))](new Map())),h(this,_0x7724a1(0x214),this[_0x7724a1(0x279)][_0x7724a1(0x17b)]()),h(this,_0x7724a1(0x25a),new d[(_0x7724a1(0x239))]([])),h(this,_0x7724a1(0x387),this[_0x7724a1(0x25a)]['pipe'](d[_0x7724a1(0x274)](It))),h(this,_0x7724a1(0x23e),a[_0x7724a1(0x2af)]((_0xea2e82,_0x26618e)=>{const _0xc4dfca=_0x7724a1,_0x2abd1a={'eventID':m['CollaborationEvent'][_0xc4dfca(0x194)],'data':{'unitID':this[_0xc4dfca(0x3d1)],'memberID':this[_0xc4dfca(0x163)][_0xc4dfca(0x20a)](),'selection':Ee[_0xc4dfca(0x35c)](_0xea2e82,_0x26618e[_0xc4dfca(0x364)])}};this[_0xc4dfca(0x163)][_0xc4dfca(0x1e3)](_0x2abd1a,this[_0xc4dfca(0x3d1)]);},vt)),(this[_0x7724a1(0x3d1)]=_0x1086de,this[_0x7724a1(0x163)]=_0xaeca52,this[_0x7724a1(0x1d9)]=_0x37ffb7,this[_0x7724a1(0x2f4)]=_0x33ef00,this[_0x7724a1(0x1dc)]=_0x51b0c4,this['_univerInstanceService']=_0x1d85a9,this[_0x7724a1(0x324)]=_0x45180f,this['_refRangeService']=_0x421d94);}get[_0xa70a6a(0x382)](){const _0x17e930=_0xa70a6a;return this['_cursorInfo$'][_0x17e930(0x272)]();}get[_0xa70a6a(0x330)](){const _0x2da454=_0xa70a6a;return this[_0x2da454(0x25a)][_0x2da454(0x272)]();}['dispose'](){const _0x55171d=_0xa70a6a;super['dispose'](),this[_0x55171d(0x279)][_0x55171d(0x1b3)](new Map()),this[_0x55171d(0x279)][_0x55171d(0x278)](),this[_0x55171d(0x25a)][_0x55171d(0x1b3)]([]),this[_0x55171d(0x25a)]['complete']();}['init'](){const _0x370de5=_0xa70a6a;this[_0x370de5(0x373)]||(this[_0x370de5(0x373)]=!0x0,this[_0x370de5(0x163)][_0x370de5(0x176)][_0x370de5(0x28e)](d[_0x370de5(0x22d)](this[_0x370de5(0x2ef)]))[_0x370de5(0x236)](_0x31f1ea=>{const _0x23b15c=_0x370de5;_0x31f1ea===u[_0x23b15c(0x290)][_0x23b15c(0x3d0)]?this[_0x23b15c(0x1df)]():this[_0x23b15c(0x256)]();}),this[_0x370de5(0x163)][_0x370de5(0x169)][_0x370de5(0x28e)](d[_0x370de5(0x22d)](this[_0x370de5(0x2ef)]))['subscribe'](_0x4bf093=>{const _0x817a4c=_0x370de5,_0x10a566=_0x4bf093[_0x817a4c(0x298)];_0x10a566===m[_0x817a4c(0x346)][_0x817a4c(0x194)]&&this[_0x817a4c(0x1f6)](_0x4bf093),_0x10a566===m[_0x817a4c(0x346)][_0x817a4c(0x22a)]&&this[_0x817a4c(0x215)](_0x4bf093);}),this[_0x370de5(0x1d2)](),this['disposeWithMe'](this[_0x370de5(0x324)][_0x370de5(0x1a0)](_0x3c6baf=>{const _0x47a3f6=_0x370de5;if(this['_online']&&_0x3c6baf['id']===g[_0x47a3f6(0x1e8)]['id']&&_0x3c6baf['params'][_0x47a3f6(0x16c)]===this['unitID']){const _0x259f20=_0x3c6baf['params'];this[_0x47a3f6(0x23e)](_0x259f20[_0x47a3f6(0x25c)],_0x259f20[_0x47a3f6(0x1a2)][0x0]);}})));}['_onCursorUpdate'](_0x387efb){const _0xdd2bc6=_0xa70a6a;var _0x5cbcd3,_0xe120e1;const {memberID:_0x4f3e8a,selection:_0x88bc81}=_0x387efb[_0xdd2bc6(0x1de)],{sheetName:_0x338b43,range:_0x1c9749}=Ee['deserializeRangeWithSheet'](_0x88bc81),_0x4e858d={'name':(_0xe120e1=(_0x5cbcd3=this[_0xdd2bc6(0x1dc)][_0xdd2bc6(0x323)](this['unitID'],_0x4f3e8a))==null?void 0x0:_0x5cbcd3[_0xdd2bc6(0x30f)])!=null?_0xe120e1:_0xdd2bc6(0x25d),'range':this[_0xdd2bc6(0x395)](_0x338b43,_0x1c9749),'sheetID':_0x338b43,'color':this['_colorAssignService'][_0xdd2bc6(0x2fd)](_0x4f3e8a),'selection':_0x88bc81},_0x51a9a8=this[_0xdd2bc6(0x382)];_0x51a9a8['set'](_0x4f3e8a,_0x4e858d),this[_0xdd2bc6(0x279)][_0xdd2bc6(0x1b3)](_0x51a9a8);}[_0xa70a6a(0x215)](_0x317e4c){const _0x13b1de=_0xa70a6a,{memberID:_0x497d74}=_0x317e4c[_0x13b1de(0x1de)],_0x28aefc=this[_0x13b1de(0x382)];_0x28aefc[_0x13b1de(0x15d)](_0x497d74),this[_0x13b1de(0x279)][_0x13b1de(0x1b3)](_0x28aefc);}['_getMergeRange'](_0x2427ce,_0x155e0c){const _0x3f5ed8=_0xa70a6a;var _0x4d8b2c,_0x41369a;const _0x1e7273=(_0x41369a=(_0x4d8b2c=this[_0x3f5ed8(0x3a3)][_0x3f5ed8(0x242)](this['unitID']))==null?void 0x0:_0x4d8b2c[_0x3f5ed8(0x167)](_0x2427ce))==null?void 0x0:_0x41369a['getMergeData']();return(_0x1e7273==null?void 0x0:_0x1e7273['find'](_0x2ddc16=>a[_0x3f5ed8(0x245)][_0x3f5ed8(0x1c7)](_0x2ddc16,_0x155e0c)))||_0x155e0c;}['_onRefRangeChange'](){const _0x58dcaf=_0xa70a6a,_0x3b6ec6=new a['DisposableCollection'](),_0x37cbf8=gt(),_0x356f03=()=>{const _0x23fd83=_0x1cff;_0x3b6ec6[_0x23fd83(0x37e)]();const _0x2a73bf=(_0x43dd9a,_0xdfc545,_0x185bb6,_0x4a09cf)=>{const _0x1206c2=_0x23fd83;let _0x24d2d9=[];switch(_0x43dd9a['id']){case g[_0x1206c2(0x2a2)]['DeleteRangeMoveLeftCommandId']:{_0x24d2d9=g['handleDeleteRangeMoveLeft'](_0x43dd9a,_0x4a09cf);break;}case g['EffectRefRangId'][_0x1206c2(0x288)]:{_0x24d2d9=g[_0x1206c2(0x1f7)](_0x43dd9a,_0x4a09cf);break;}case g[_0x1206c2(0x2a2)][_0x1206c2(0x1e1)]:{_0x24d2d9=g[_0x1206c2(0x1ef)](_0x43dd9a,_0x4a09cf);break;}case g['EffectRefRangId'][_0x1206c2(0x340)]:{_0x24d2d9=g[_0x1206c2(0x211)](_0x43dd9a,_0x4a09cf);break;}case g[_0x1206c2(0x2a2)][_0x1206c2(0x26e)]:{_0x24d2d9=g['handleInsertRangeMoveRight'](_0x43dd9a,_0x4a09cf);break;}case g['EffectRefRangId'][_0x1206c2(0x178)]:{_0x24d2d9=g[_0x1206c2(0x34c)](_0x43dd9a,_0x4a09cf);break;}case g[_0x1206c2(0x2a2)][_0x1206c2(0x375)]:{_0x24d2d9=g['handleMoveRange'](_0x43dd9a,_0x4a09cf);break;}case g[_0x1206c2(0x2a2)][_0x1206c2(0x1f8)]:{_0x24d2d9=g[_0x1206c2(0x1b5)](_0x43dd9a,_0x4a09cf);break;}case g[_0x1206c2(0x2a2)][_0x1206c2(0x3a2)]:{_0x24d2d9=g[_0x1206c2(0x353)](_0x43dd9a,_0x4a09cf);break;}}const _0x478bca=g[_0x1206c2(0x2a1)](_0x24d2d9,_0x4a09cf),_0x421553=this[_0x1206c2(0x382)][_0x1206c2(0x258)](_0xdfc545);if(_0x421553&&_0x478bca){const _0x18f0d8={..._0x421553,'range':_0x478bca};this[_0x1206c2(0x382)][_0x1206c2(0x2d9)](_0xdfc545,_0x18f0d8),_0x37cbf8(()=>{const _0x467161=_0x1206c2,_0x3243e9=this['_refRangeService'][_0x467161(0x35d)](_0x478bca,_0x1562ce=>(_0x3243e9[_0x467161(0x37e)](),_0x2a73bf(_0x1562ce,_0xdfc545,_0x185bb6,_0x478bca)));_0x3b6ec6[_0x467161(0x228)](_0x3243e9);});}return{'redos':[],'undos':[]};};this[_0x23fd83(0x382)][_0x23fd83(0x1d1)]((_0x749d83,_0x33e8b4)=>{const _0x4ca579=_0x23fd83,{range:_0x206007,sheetID:_0x219c4f}=_0x749d83,_0x3d28d2=this[_0x4ca579(0x304)]['registerRefRange'](_0x206007,_0x29d914=>(_0x3d28d2[_0x4ca579(0x37e)](),_0x2a73bf(_0x29d914,_0x33e8b4,_0x219c4f,_0x206007)));_0x3b6ec6[_0x4ca579(0x228)](_0x3d28d2);});};this[_0x58dcaf(0x39d)](a[_0x58dcaf(0x16a)](this[_0x58dcaf(0x279)][_0x58dcaf(0x236)](()=>{_0x356f03();})));}[_0xa70a6a(0x1df)](){const _0x21887e=_0xa70a6a;var _0x5ea992,_0x44e3bd;if(this['_online']=!0x0,((_0x5ea992=this[_0x21887e(0x3a3)]['getFocusedUnit']())==null?void 0x0:_0x5ea992['getUnitId']())!==this[_0x21887e(0x3d1)])return;const _0x5d56e7=(_0x44e3bd=this['_injector'][_0x21887e(0x258)](g['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x44e3bd[0x0],_0x570e84=this[_0x21887e(0x3a3)][_0x21887e(0x333)](a[_0x21887e(0x3be)][_0x21887e(0x1c8)])[_0x21887e(0x2e8)]();_0x5d56e7&&_0x570e84&&this['_updateLocalCursor'](_0x570e84[_0x21887e(0x260)](),_0x5d56e7);}[_0xa70a6a(0x256)](){const _0x49fa89=_0xa70a6a;this[_0x49fa89(0x2d2)]=!0x1;}};Se=ft([A(0x2,a['Inject'](a[_0xa70a6a(0x262)])),A(0x3,a[_0xa70a6a(0x312)](Ce)),A(0x4,a['Inject'](u[_0xa70a6a(0x27b)])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0xa70a6a(0x1fe)]),A(0x7,a[_0xa70a6a(0x312)](g[_0xa70a6a(0x3ca)]))],Se);var mt=Object[_0xa70a6a(0x33d)],Ct=(_0x430bd4,_0x34bc46,_0x270803,_0x4bc6ef)=>{const _0x356908=_0xa70a6a;for(var _0x1a4c27=_0x4bc6ef>0x1?void 0x0:_0x4bc6ef?mt(_0x34bc46,_0x270803):_0x34bc46,_0x36e173=_0x430bd4[_0x356908(0x154)]-0x1,_0x27998a;_0x36e173>=0x0;_0x36e173--)(_0x27998a=_0x430bd4[_0x36e173])&&(_0x1a4c27=_0x27998a(_0x1a4c27)||_0x1a4c27);return _0x1a4c27;},ie=(_0x204893,_0x19508e)=>(_0x4b40d7,_0x307967)=>_0x19508e(_0x4b40d7,_0x307967,_0x204893);let x=class extends a['RxDisposable']{constructor(_0x1c902c,_0x3bb015,_0x4a47d){const _0xeeb8c=_0xa70a6a;super(),h(this,_0xeeb8c(0x1e6),new Map()),h(this,_0xeeb8c(0x35f),new d['Subject']()),(this[_0xeeb8c(0x3a3)]=_0x1c902c,this['_injector']=_0x3bb015,this['_collabSessionService']=_0x4a47d,this['_init']());}['dispose'](){const _0x27f787=_0xa70a6a;super[_0x27f787(0x37e)](),this[_0x27f787(0x35f)][_0x27f787(0x278)](),this[_0x27f787(0x1e6)][_0x27f787(0x1d1)](_0xb903e2=>_0xb903e2[_0x27f787(0x37e)]());}['getCollabCursors$'](_0x144001){const _0x4b8c46=_0xa70a6a;return this[_0x4b8c46(0x1e6)]['has'](_0x144001)?this[_0x4b8c46(0x1e6)][_0x4b8c46(0x258)](_0x144001)['cursorInfo$']:this['_entityInit$'][_0x4b8c46(0x28e)](d[_0x4b8c46(0x37a)](_0x1140fa=>_0x1140fa[_0x4b8c46(0x3d1)]===_0x144001),d['switchMap'](_0xb6a28d=>_0xb6a28d[_0x4b8c46(0x214)]));}[_0xa70a6a(0x373)](){const _0x305890=_0xa70a6a;this['_univerInstanceService'][_0x305890(0x287)](a[_0x305890(0x3be)][_0x305890(0x1c8)])[_0x305890(0x28e)](d[_0x305890(0x22d)](this['dispose$']))[_0x305890(0x236)](async _0x5d8c7f=>{const _0xdcefaa=_0x305890,_0x25962c=_0x5d8c7f[_0xdcefaa(0x217)](),_0x10b76f=await this[_0xdcefaa(0x30e)](_0x25962c);this['_entityInit$'][_0xdcefaa(0x1b3)](_0x10b76f),this['_entities']['set'](_0x25962c,_0x10b76f);}),this['_univerInstanceService'][_0x305890(0x287)](a[_0x305890(0x3be)][_0x305890(0x316)])[_0x305890(0x28e)](d['takeUntil'](this[_0x305890(0x2ef)]))['pipe'](d[_0x305890(0x37a)](_0x10a4f1=>!_0x10a4f1[_0x305890(0x217)]()[_0x305890(0x2f8)]('__')))[_0x305890(0x236)](async _0x276fa7=>{const _0x5be132=_0x305890,_0x2397f9=_0x276fa7['getUnitId'](),_0x4a2f59=await this[_0x5be132(0x32c)](_0x2397f9);this['_entityInit$']['next'](_0x4a2f59),this[_0x5be132(0x1e6)][_0x5be132(0x2d9)](_0x2397f9,_0x4a2f59);}),d[_0x305890(0x1ee)](this[_0x305890(0x3a3)]['getTypeOfUnitDisposed$'](a[_0x305890(0x3be)]['UNIVER_DOC']),this['_univerInstanceService'][_0x305890(0x351)](a[_0x305890(0x3be)]['UNIVER_SHEET']))[_0x305890(0x28e)](d[_0x305890(0x22d)](this[_0x305890(0x2ef)]))[_0x305890(0x236)](_0x448a5f=>{const _0xd91b14=_0x305890,_0x531bb3=_0x448a5f[_0xd91b14(0x217)](),_0x3a5b58=this[_0xd91b14(0x1e6)]['get'](_0x531bb3);_0x3a5b58&&(_0x3a5b58[_0xd91b14(0x37e)](),this[_0xd91b14(0x1e6)][_0xd91b14(0x15d)](_0x531bb3));});}async[_0xa70a6a(0x30e)](_0x1ea3af){const _0x54834b=_0xa70a6a,_0x4fd2c9=await this[_0x54834b(0x24d)]['requireSession'](_0x1ea3af),_0x51203a=this[_0x54834b(0x1d9)][_0x54834b(0x192)](Se,_0x1ea3af,_0x4fd2c9);return _0x51203a[_0x54834b(0x318)](),_0x51203a;}async[_0xa70a6a(0x32c)](_0x507481){const _0x604346=_0xa70a6a,_0x1c5e4a=await this[_0x604346(0x24d)][_0x604346(0x1db)](_0x507481),_0x59849a=this[_0x604346(0x1d9)][_0x604346(0x192)](de,_0x507481,_0x1c5e4a);return _0x59849a[_0x604346(0x318)](),_0x59849a;}};x=Ct([ie(0x0,a[_0xa70a6a(0x313)]),ie(0x1,a['Inject'](a[_0xa70a6a(0x262)])),ie(0x2,a['Inject'](u[_0xa70a6a(0x2c2)]))],x);const W=0x14,Te=0xc8,ne=0x4,pt=0x5;function _0x287c(){const _0x5b9b53=['ThemeService','labelPosition','_hovered','_eventUnsubscribe','key','ENSURE_SNAPSHOT_EXECUTION','_setupBeforeClosingHandler','type','toRgbString','IImageIoService','wsSessionTicketUrl','_configService','_messageService','_scheduleSaving','add','44TjiMxw','USERS_LEAVE','toStringTag','distinctUntilChanged','takeUntil','IURLService','ColorKit','_id','entityInit$','_shapes','_cursor','HEADER_MENU','addObject','subscribe','size','isTransformMutationFailure','BehaviorSubject','propertyIsEnumerable','_anchor','Error','_docStateChangeManagerService','_updateLocalCursor','_docTransformIMECacheService','popstate','defs','getUniverSheetInstance','setConfig','height','Rectangle','UNRECOGNIZED','setUndoRedoMutationParamsCache','WebBrowserSingleActiveUnitService','session.collaboration-timeout','xlink:href','loadOfflineData','beginPath','_collabSessionService','TEXT_RANGE_LAYER_INDEX','_updateSubUnitFromURLParams','random','onStarting','MUTATION','DocIMEInputManagerService','jsx','3493byTxyd','_toggleOffline','resize','get','bottom','_roomMembers$','fill','subUnitId','Unknown\x20user','disposeUnit','sheetId','getSheetId','transform','Injector','getOwnPropertySymbols','_removeCollabCursors','backgroundColor','M0\x200H16V16H0z','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','EMAIL_HAS_BEEN_BOUND','getFocusedUnit','Module','substring','_instanceService','permission.title','InsertRangeMoveRightCommandId','INVITE_CODE_HAS_BEEN_UES','Disposable','_createSocketURL','getValue','IDocClipboardService','debounceTime','on-line-icon_clip0_910_349','getColor','concat','complete','_cursorInfo$','MessageType','MemberService','USER_NOT_INVITED_CODE','call','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_initStatusComponent','code','debug','RevisionService','removeParam','ISnapshotServerService','PY_RUNTIME_SCRIPT_ERROR','_getSessionTicket','getTypeOfUnitAdded$','DeleteRangeMoveUpCommandId','fillText','_collaborationUIEventService','restore','COMPLETION_FINISHED','updateOfflineData','pipe','font','SessionStatus','_getAnchorBounding','_unitOnClients','_name','setItem','_assignedColors','_docTransformStateCacheService','LICENSE_EXPORT_SIZE_EXCEEDED','eventID','extend','permission.content','clsx','CollaborationStatus','MOBILE_VERIFY_CODE_MISMATCH','_handleJoinEvent','redoState','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','runRefRangeMutations','EffectRefRangId','_getSaveTimeout','toString','SNAPSHOT_HAS_BEEN_REMOVED','12635iXHPGq','SetWorksheetActivateCommand','collabStatus.conflict','className','RegularPolygon','IRenderManagerService','origin','doc.mutation.rich-text-editing','_dataLoaderService','debounce','getSheetObject','useRef','DOC_RANGE_TYPE','_handleHeartbeatEvent','ILocalCacheService','getCoordByCell','has','1em','collabStatus.notCollab','replaceState','clearTimeout','LICENSE_IMPORT_SIZE_EXCEEDED','mutations','url(#$1','mergeOverrideWithDependencies','setShapeProps','_textBubble','max','CollaborationSessionService','Warning','CollaborationDataLoaderController','_handleEvent','0\x200\x2017\x2016','entries','memberID','from','source','collaboration.closeRoom','DEFAULT_WS_SESSION_TICKET_URL','OffLineIcon','IBeforeCloseService','INVALID_ARGUMENT','Plugin','ranges','_online','all','INotificationService','SheetSkeletonManagerService','getCurrentRevOfUnit','_cursorShapes','SetTextSelectionsOperation','set','red.300','purple.300','APPLY_NON_SEQUENTIAL_REVISION','WebURLService','string','textRanges','APPLY_REJECT','mapTo','_initEntityListener','measureText','47046NcCVMm','RichTextEditingMutation','UNDEFINED','_collabCursorState$','getActiveSheet','#FFF','searchParams','_scheduleHeartbeat','disableLocalCache','_beforeCloseService','pushState','dispose$','TOO_MANY_REQUESTS','svg','DocCollaborationEntity','_heartbeatTimer','_colorAssignService','tag','clipPath','collabStatus.fetchMiss','startsWith','none','DataLoaderService','_docTransformSelectionsService','collabStatus.offline','assignAColorForMemberID','registerBeforeClose','application/json','BuiltInUIPart','uni.network.url-service','focused$','endRow','_refRangeService','session.connection-failed','RxDisposable','activeSheet$','indexOf','collab-text-anchor-','_refreshCollabCursors','SOCKET_FAILED_RETRY','href','_revisionService','_startSheetCollabCursor','name','_setupSubUnitSync','getUndoRedoMutationParamsCache','Inject','IUniverInstanceService','APPLY_REVISION_CONFILICT','getRelativeToViewportCoord','UNIVER_DOC','_notificationService','init','with','show','Tooltip','getCollabEntity$','selection','undoState','Tools','_scheduleClearOtherTimer','includes','CollaborationUIEventService','getMember','_commandService','getLocalCacheKey','evenodd','symbol','onMouseMove','location','_imageIoService','CHANGESET_REVISION_CONFILICT','_startDocCollabCursor','saveImage','ACTIVE_UNIT_EVENT_CHANNEL','saveTaskMap','roomMembers','idSuffix','_themeService','getCurrentUnitForType','trim','session.will-retry','setParam','LICENSE_MAX_UNITS_EXCEEDED','unshift','getSkeleton','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_status$','IConfigService','getOwnPropertyDescriptor','DesktopCollaborationStatusDisplayController','m2Prime','InsertRangeMoveDownCommandId','getViewport','getConfig','SYNCED','result','_doCreateSocket','CollaborationEvent','_registerRenderDependencies','Failed','RemoteUniscriptService','_localeService','_config','handleInsertRow','isTransformMutationsWithChangesetSuccess','onTransformChange$','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','CollaborationSocketService','getTypeOfUnitDisposed$','save','handleIRemoveRow','LICENSE_DISTRO_REJECTED','exhaustSavingTask','hovered','[CollaborationDataLoaderController]','startRow','values','LOCAL_CACHE_INTERVAL','_drawAnchor','serializeRangeWithSheet','registerRefRange','stringify','_entityInit$','white','UniverCollaborationClientUIPlugin','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','_saveTaskMap','range','clearInterval','ticket','addObjects','some','PERMISSION_DENIED','createElement','useDependency','path','_drawRectRange','setInterval','_registerDependencies','replace','width','RECT','_init','_transformService','MoveRangeCommandId','DocSkeletonManagerService','replaceDocRanges','top','_labelPosition','filter','_backgroundColor','unload','_transformHistoryAndStateStack','dispose','TRANSFORM_CHANGE_OBSERVABLE_TYPE','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','3138708ktOWtU','cursorInfo','editingUnit','_drawTextRange','getStateCache','url(#on-line-icon_clip0_910_349)','roomMembers$','WECHAT_HAS_BEEN_BOUND','touchDependencies','99krZCsJ','whenReady','_syncEditingCollabCursorService','executeCommand','_httpService','closePath','round','APPLY_PERMISSION_DENIED','push','2tQyWpt','_collabCursorController','_getMergeRange','hasOwnProperty','onPointerLeave$','YUUMI_NO_CUBOID_FOR_QUESTION','_draw','getRenderById','106660oRmGXI','OnLineIcon','disposeWithMe','generateRandomId','_updateURLWithCurrentState','_initResize','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','RemoveRowCommandId','_univerInstanceService','current','CommandType','isEditing','color','_anchorDot','unsubscribe','39igZOxF','UniverCollaborationClientPlugin','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','assign','_scene','_initStatusListener','displayName','jiqing.500','498310LJWpfH','[RemoteUniscriptService]:\x20no\x20focused\x20unit','blue.400','skeleton','Rect','_getSheetObject','7102940AVFgjz','WebSocketService','_sheetSkeletonManagerService','6632SiXaGF','BrowserCollaborationSocketService','override','UniverInstanceType','newValue','text','children','lineTo','DocSelectionManagerService','transformMutationsWithChangeset','getActiveRange','VIEW_MAIN','_docSkeleton','_initDependencies','_hover','RefRangeService','registerRenderModule','throttleTime','_uiPartsService','subunit','NO_OTHER_CLIENTS_EDITING','ONLINE','unitID','green.600','APPLY_DUPLICATED','UNAUTHENTICATED','currentColor','getAncestorScale','_collaborationController','MOBILE_HAS_BEEN_BOUND','length','_getScale','rgba(255,\x20255,\x20255,\x200.01)','NodePositionConvertToRectRange','_context','pluginName','_initCommandExecutedListener','_urlService','deepClone','delete','executionId','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','INVITE_CODE_ALREADY_BOUND','urlChange$','EMAIL_VERIFY_CODE_MISMATCH','_session','_docSkeletonManagerService','FromArray','engine','getSheetBySheetId','row','event$','toDisposable','runId','unitId','div','_hideTimer','CollaborationController','univer-flex\x20univer-items-center','setAlpha','_cachedData','LocaleService','transformIMECache','off-line-icon_clip0_910_343','sessionStatus$','combineLatest','InsertRowCommandId','YUUMI_CONNECTOR_URL_NOT_FOUND','arc','asObservable','_docClipboardService','UniverIcon','makeDirty','colorChannel1','forwardRef','_handleLeaveEvent','onRendered','setTimeout','YUUMI_ALL_TABLES_IS_INVALID','getVpScrollXYInfoByPosToVp','map','_unitStatus','transformSelections','column','prototype','syncEditingCollabCursor','findNodePositionByCharIndex','drawWith','enableLocalCache','registerComponent','setStateCache','TEXT','createInstance','_range','UPDATE_CURSOR','_disabled','isActive','_initEvent','HTTPService','body','OFFLINE','NOT_FOUND','loadUnit','attrs','_selfUnitIDs','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','onCommandExecuted','on-line-icon','selections','DocStateChangeManagerService','LOGIN_FAILED','ISocketService','mask','collabCursorState$','http://www.w3.org/2000/svg','_handleHover','apply','sessionTicket','getDocRanges','history','ITransformService','startColumn','black','_transformPreviousActiveRange','INVITE_CODE_REQUIRED','next','sheetID','handleIRemoveCol','unit','reconnect','flatMap','_cursors','defineProperty','215qGsMDz','m1Prime','OTHER_CLIENTS_EDITING','setActiveRange','min','transformRemoteChangeset','SOCKET_FAILED','CollaborationUIEventId','runOnServer','split','function','...','contains','UNIVER_SHEET','error','translate(.97)','shareReplay','_logService','getParam','_send','_localStorageService','transformStateCache','forEach','_onRefRangeChange','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','then','isArray','_docSyncEditingCollabCursorService','Vector2','getCollabCursors$','_injector','useCallback','requireSession','_memberService','YUUMI_URL_COL_OUT_OF_RANGE','data','_toggleOnline','NOT_COLLAB','InsertColCommandId','defIds','send','fromEvent','CONNECTOR_DATA_TOO_LARGE','_entities','Shape','SetSelectionsOperation','fromEventSubject','_color','triggerDblclick','Workbook','transformMutation','merge','handleInsertCol','_lastPointer','Optional','SetDocZoomRatioOperation','params','COLORS','off-line-icon','_onCursorUpdate','handleDeleteRangeMoveUp','RemoveColCommandId','UnitStatus','fillStyle','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_colorIndex','useObservable','ICommandService','_localCacheService','onPointerEnter$','icon','createIdentifier','hide','getRangePointData','parse','YUUMI_ASYNCIO_CANCELLED','getUnitStatus$','INTERNAL_ERROR','_updateCollabCursors','getMemberID','_renderManagerService','switchMap','YUUMI_RATE_OVER_LIMIT','_removeClearOtherTimer','INVALID_INVITE_CODE','_ensureSubject','handleInsertRangeMoveDown','SNAPSHOT_INVALID_SNAPSHOT','YUUMI_SUBSCRIPTION_NOT_FOUND','cursorInfo$','_onCursorDelete','_clearOtherTimers','getUnitId','collab-rect-range-','subscribeEvent'];_0x287c=function(){return _0x5b9b53;};return _0x287c();}function Et(_0x189786,_0x560366){const _0x57e4ba=_0xa70a6a;let {radius:_0x225001,width:_0x519686,height:_0x145bbf}=_0x560366;_0x225001=_0x225001!=null?_0x225001:0x0,_0x519686=_0x519686!=null?_0x519686:0x1e,_0x145bbf=_0x145bbf!=null?_0x145bbf:0x1e;let _0x4a4f47=0x0,_0x429fbc=0x0,_0x1d3b1c=0x0;_0x4a4f47=_0x429fbc=_0x1d3b1c=Math['min'](_0x225001,_0x519686/0x2,_0x145bbf/0x2),_0x189786[_0x57e4ba(0x24c)](),_0x189786['moveTo'](_0x4a4f47,0x0),_0x189786['lineTo'](_0x519686-_0x429fbc,0x0),_0x189786[_0x57e4ba(0x17a)](_0x519686-_0x429fbc,_0x429fbc,_0x429fbc,Math['PI']*0x3/0x2,0x0,!0x1),_0x189786[_0x57e4ba(0x3c2)](_0x519686,_0x145bbf-_0x1d3b1c),_0x189786[_0x57e4ba(0x17a)](_0x519686-_0x1d3b1c,_0x145bbf-_0x1d3b1c,_0x1d3b1c,0x0,Math['PI']/0x2,!0x1),_0x189786['lineTo'](0x0,_0x145bbf),_0x189786['lineTo'](0x0,_0x4a4f47),_0x189786[_0x57e4ba(0x17a)](_0x4a4f47,_0x4a4f47,_0x4a4f47,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x189786[_0x57e4ba(0x38f)](),_0x560366[_0x57e4ba(0x25b)]&&(_0x189786['save'](),_0x189786[_0x57e4ba(0x1fa)]=_0x560366[_0x57e4ba(0x25b)],_0x560366['fillRule']===_0x57e4ba(0x326)?_0x189786[_0x57e4ba(0x25b)](_0x57e4ba(0x326)):_0x189786[_0x57e4ba(0x25b)](),_0x189786[_0x57e4ba(0x28b)]());}class ee extends p['Shape']{constructor(_0x4a369b,_0x40611a){const _0x640905=_0xa70a6a;super(_0x4a369b,_0x40611a),h(this,_0x640905(0x3a7)),h(this,_0x640905(0x3c0)),(this[_0x640905(0x3a7)]=_0x40611a==null?void 0x0:_0x40611a[_0x640905(0x3a7)],this[_0x640905(0x3c0)]=_0x40611a==null?void 0x0:_0x40611a[_0x640905(0x3c0)]);}static[_0xa70a6a(0x18d)](_0x52a3e2,_0x23050f){const _0x4fb090=_0xa70a6a,{text:_0x3102e3,color:_0x5af324}=_0x23050f;_0x52a3e2[_0x4fb090(0x352)](),_0x52a3e2[_0x4fb090(0x28f)]=_0x4fb090(0x34f);const _0x5e14ff=_0x52a3e2[_0x4fb090(0x2e3)](_0x3102e3)['width'],_0x11f75d=Math[_0x4fb090(0x1bf)](_0x5e14ff+0x2*ne,Te);Et(_0x52a3e2,{'height':W,'radius':0x4,'width':_0x11f75d,'fill':_0x5af324}),_0x52a3e2['fillStyle']=_0x4fb090(0x2e9);const _0x1faeff=ne,_0x30fa09=W-pt,_0x14c9e0=Te-0x2*ne;if(_0x5e14ff>_0x14c9e0){let _0x4a2e4a='',_0x1798ba=0x0;for(const _0x25e905 of _0x3102e3){const _0x1d862b=_0x52a3e2['measureText'](_0x25e905)[_0x4fb090(0x371)];if(_0x1798ba+_0x1d862b<=_0x14c9e0-_0x52a3e2[_0x4fb090(0x2e3)]('...')['width'])_0x4a2e4a+=_0x25e905,_0x1798ba+=_0x1d862b;else{_0x4a2e4a+=_0x4fb090(0x1c6);break;}}_0x52a3e2[_0x4fb090(0x289)](_0x4a2e4a,_0x1faeff,_0x30fa09);}else _0x52a3e2[_0x4fb090(0x289)](_0x3102e3,_0x1faeff,_0x30fa09);_0x52a3e2[_0x4fb090(0x28b)]();}[_0xa70a6a(0x399)](_0x1884ea){const _0x2b65f0=_0xa70a6a;ee[_0x2b65f0(0x18d)](_0x1884ea,this);}}const re=_0xa70a6a(0x309),bt='collab-text-range-',Ot=_0xa70a6a(0x218),F=0x6,Tt=1.5,oe=0x4,Rt=1.5,Dt=_0xa70a6a(0x156);class Re{constructor(_0x238db3,_0x7985af,_0x5b767b,_0x38a49c){const _0x383ca9=_0xa70a6a;h(this,_0x383ca9(0x232),[]),h(this,_0x383ca9(0x23b),null),h(this,_0x383ca9(0x2c0),null),h(this,_0x383ca9(0x3a8),null),h(this,'_hideTimer',null),h(this,_0x383ca9(0x21d),null),(this[_0x383ca9(0x233)]=_0x238db3,this['_scene']=_0x7985af,this[_0x383ca9(0x3c7)]=_0x5b767b,this['_document']=_0x38a49c,this['_render']());}set[_0xa70a6a(0x3c9)](_0x5f0bbd){const _0x55f9b8=_0xa70a6a;_0x5f0bbd?(this[_0x55f9b8(0x3a8)]&&this[_0x55f9b8(0x3a8)][_0x55f9b8(0x203)](),this[_0x55f9b8(0x2c0)]&&this[_0x55f9b8(0x2c0)][_0x55f9b8(0x31a)]()):(this[_0x55f9b8(0x3a8)]&&this[_0x55f9b8(0x3a8)]['show'](),this[_0x55f9b8(0x2c0)]&&this[_0x55f9b8(0x2c0)]['hide']());}[_0xa70a6a(0x37e)](){const _0x1a5693=_0xa70a6a;for(const _0x407da8 of this[_0x1a5693(0x232)])_0x407da8[_0x1a5693(0x37e)]();this[_0x1a5693(0x2c0)]&&this[_0x1a5693(0x2c0)]['dispose'](),this['_anchorDot']&&this['_anchorDot']['dispose'](),this['_anchor']&&this[_0x1a5693(0x23b)][_0x1a5693(0x37e)](),this[_0x1a5693(0x21d)]&&this[_0x1a5693(0x21d)]();}['_render'](){const _0x10844f=_0xa70a6a;var _0x9ec2b0;const {_docSkeleton:_0x4f07b3,_document:_0x873662}=this,{color:_0x5e96ef,name:_0x421660,ranges:_0x485f51}=this[_0x10844f(0x233)],_0x7e3b5=_0x873662['getOffsetConfig'](),{docsLeft:_0x3c74c0,docsTop:_0x1f3b1d}=_0x7e3b5,_0x471524=new E['NodePositionConvertToCursor'](_0x7e3b5,_0x4f07b3);for(const {startOffset:_0x377988,endOffset:_0x5f5bf7,rangeType:_0x2cacfc,segmentId:_0x236f82,segmentPage:_0x3dbbf4,collapsed:_0x2a89a4,isActive:_0x5339d2}of _0x485f51){const _0x164fda=_0x4f07b3['findNodePositionByCharIndex'](_0x377988,!0x0,_0x236f82,_0x3dbbf4);let _0x3928e8=_0x4f07b3[_0x10844f(0x18c)](_0x5f5bf7,!0x0,_0x236f82,_0x3dbbf4);if(_0x3928e8==null&&(_0x3928e8=_0x4f07b3[_0x10844f(0x18c)](_0x5f5bf7-0x1,!0x1,_0x236f82,_0x3dbbf4)),_0x5339d2){const {contentBoxPointGroup:_0xb64990}=_0x471524[_0x10844f(0x204)](_0x3928e8,_0x3928e8);if(_0xb64990[_0x10844f(0x154)]===0x0)continue;this['_drawAnchor'](_0x5e96ef,_0xb64990,_0x3c74c0,_0x1f3b1d,_0x421660),this[_0x10844f(0x21d)]=this[_0x10844f(0x1a9)]();}if(_0x164fda&&_0x3928e8){if(_0x2cacfc===a[_0x10844f(0x2b2)][_0x10844f(0x372)]){const _0xd4f632=new E[(_0x10844f(0x157))](_0x7e3b5,_0x4f07b3),{pointGroup:_0x1cf160}=(_0x9ec2b0=_0xd4f632[_0x10844f(0x204)](_0x164fda,_0x3928e8))!=null?_0x9ec2b0:{};if(_0x1cf160==null||_0x1cf160[_0x10844f(0x154)]===0x0)continue;this[_0x10844f(0x36d)](_0x5e96ef,_0x1cf160,_0x3c74c0,_0x1f3b1d);}else{if(!_0x2a89a4){const {borderBoxPointGroup:_0x38ace8}=_0x471524['getRangePointData'](_0x164fda,_0x3928e8);if(_0x38ace8['length']===0x0)continue;this[_0x10844f(0x384)](_0x5e96ef,_0x38ace8,_0x3c74c0,_0x1f3b1d);}}}}}[_0xa70a6a(0x35b)](_0x12c3c0,_0x3c2a72,_0x935394,_0x380b64,_0x4206bd){const _0x5e9191=_0xa70a6a,_0x265f0b=this[_0x5e9191(0x291)](_0x3c2a72),{left:_0x2ff0c5,top:_0x4c68be,height:_0x32aa85}=_0x265f0b,_0x3ca5de=this[_0x5e9191(0x155)](),_0x2cf38a=Rt/_0x3ca5de,_0x111d2e=new p[(_0x5e9191(0x3b6))](re+a[_0x5e9191(0x39e)](F),{'left':_0x2ff0c5+_0x935394-_0x2cf38a,'top':_0x4c68be+_0x380b64,'height':_0x32aa85,'width':Tt,'fill':_0x12c3c0||p[_0x5e9191(0x276)](a['COLORS'][_0x5e9191(0x1b0)],0x0),'strokeWidth':_0x2cf38a,'stroke':Dt,'evented':!0x0});this[_0x5e9191(0x23b)]=_0x111d2e,this[_0x5e9191(0x3ae)][_0x5e9191(0x235)](_0x111d2e,E[_0x5e9191(0x24e)]);const _0x9bfe88=new p[(_0x5e9191(0x3b6))](re+a[_0x5e9191(0x39e)](F),{'left':_0x2ff0c5+_0x935394-_0x2cf38a,'top':_0x4c68be+_0x380b64-oe/0x2,'height':oe,'width':oe,'fill':_0x12c3c0||p['getColor'](a[_0x5e9191(0x1f4)][_0x5e9191(0x1b0)],0x0),'strokeWidth':0x0,'stroke':_0x12c3c0||p['getColor'](a[_0x5e9191(0x1f4)][_0x5e9191(0x1b0)],0x0),'evented':!0x1});this[_0x5e9191(0x3a8)]=_0x9bfe88,this[_0x5e9191(0x3ae)][_0x5e9191(0x235)](_0x9bfe88,E['TEXT_RANGE_LAYER_INDEX']);const _0x3e3ad6=new ee(re+a['generateRandomId'](F),{'left':_0x2ff0c5+_0x935394-_0x2cf38a,'top':_0x4c68be+_0x380b64-W,'text':_0x4206bd,'color':_0x12c3c0});this[_0x5e9191(0x2c0)]=_0x3e3ad6,this[_0x5e9191(0x3ae)][_0x5e9191(0x235)](_0x3e3ad6,E['TEXT_RANGE_LAYER_INDEX']),this[_0x5e9191(0x3c9)]=!0x1;}['_handleHover'](){const _0x5dd50e=_0xa70a6a,_0x5f2d0f=this[_0x5dd50e(0x23b)][_0x5dd50e(0x200)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x5ccac4=this[_0x5dd50e(0x23b)][_0x5dd50e(0x397)]['subscribeEvent'](()=>{const _0x2655f0=_0x5dd50e;this[_0x2655f0(0x16e)]&&clearTimeout(this[_0x2655f0(0x16e)]),this[_0x2655f0(0x16e)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x4450b0=_0x5dd50e;_0x5f2d0f[_0x4450b0(0x3a9)](),_0x5ccac4['unsubscribe']();};}[_0xa70a6a(0x384)](_0x42ab36,_0x492a01,_0x5038fb,_0x2944c2){const _0x11fe99=_0xa70a6a,_0x2ace60=new a[(_0x11fe99(0x22f))](_0x42ab36)[_0x11fe99(0x171)](0.2)['toRgbString'](),_0x29cd65=new p[(_0x11fe99(0x2aa))](bt+a[_0x11fe99(0x39e)](F),{'pointsGroup':_0x492a01,'fill':_0x2ace60||p[_0x11fe99(0x276)](a[_0x11fe99(0x1f4)][_0x11fe99(0x1b0)],0.2),'left':_0x5038fb,'top':_0x2944c2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x11fe99(0x232)][_0x11fe99(0x392)](_0x29cd65),this['_scene'][_0x11fe99(0x235)](_0x29cd65,E[_0x11fe99(0x24e)]);}[_0xa70a6a(0x36d)](_0xe9114c,_0x271610,_0x5bd409,_0xab8fe6){const _0x25bfbd=_0xa70a6a,_0x51df9c=new a[(_0x25bfbd(0x22f))](_0xe9114c)[_0x25bfbd(0x171)](0.2)[_0x25bfbd(0x222)](),_0x4b3db3=new p[(_0x25bfbd(0x2aa))](Ot+a['generateRandomId'](F),{'pointsGroup':_0x271610,'fill':_0x51df9c||p[_0x25bfbd(0x276)](a['COLORS'][_0x25bfbd(0x1b0)],0.2),'left':_0x5bd409,'top':_0xab8fe6,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x25bfbd(0x392)](_0x4b3db3),this[_0x25bfbd(0x3ae)][_0x25bfbd(0x235)](_0x4b3db3,E[_0x25bfbd(0x24e)]);}[_0xa70a6a(0x291)](_0x5b410c){const _0x1d2b6c=_0x5b410c[0x0],_0x409e05=_0x1d2b6c[0x0],_0x56ae98=_0x1d2b6c[0x2],{x:_0x5e51f2,y:_0x2e7734}=_0x409e05,{x:_0x5794f1,y:_0x1c6fee}=_0x56ae98;return{'left':_0x5e51f2,'top':_0x2e7734,'width':_0x5794f1-_0x5e51f2,'height':_0x1c6fee-_0x2e7734};}[_0xa70a6a(0x155)](){const _0xcec85=_0xa70a6a,{scaleX:_0x33bfa8,scaleY:_0x4434d4}=this['_scene']['getAncestorScale']();return Math[_0xcec85(0x2c1)](_0x33bfa8,_0x4434d4);}}var Ut=Object[_0xa70a6a(0x33d)],Nt=(_0x2dd33c,_0x46749c,_0x5f153c,_0x23011a)=>{const _0x971064=_0xa70a6a;for(var _0x3a803b=_0x23011a>0x1?void 0x0:_0x23011a?Ut(_0x46749c,_0x5f153c):_0x46749c,_0x27eecf=_0x2dd33c[_0x971064(0x154)]-0x1,_0x4a8da8;_0x27eecf>=0x0;_0x27eecf--)(_0x4a8da8=_0x2dd33c[_0x27eecf])&&(_0x3a803b=_0x4a8da8(_0x3a803b)||_0x3a803b);return _0x3a803b;},X=(_0x2f7ea7,_0x14b073)=>(_0x7b29e9,_0x1d4e85)=>_0x14b073(_0x7b29e9,_0x1d4e85,_0x2f7ea7);let fe=class extends a[_0xa70a6a(0x306)]{constructor(_0x1bbf8a,_0x23ecfb,_0x3010ba,_0x43e2b6,_0x9221a9){const _0x1c51a0=_0xa70a6a;super(),h(this,_0x1c51a0(0x2d7),[]),h(this,_0x1c51a0(0x1b9),[]),(this[_0x1c51a0(0x158)]=_0x1bbf8a,this['_docSkeletonManagerService']=_0x23ecfb,this[_0x1c51a0(0x394)]=_0x3010ba,this[_0x1c51a0(0x324)]=_0x43e2b6,this[_0x1c51a0(0x332)]=_0x9221a9,this[_0x1c51a0(0x373)]());}[_0xa70a6a(0x373)](){const _0x4cc8f2=_0xa70a6a,_0x49d322=this[_0x4cc8f2(0x158)][_0x4cc8f2(0x16c)],_0x5e0999=this[_0x4cc8f2(0x164)];this[_0x4cc8f2(0x39d)](d[_0x4cc8f2(0x177)]([this[_0x4cc8f2(0x394)][_0x4cc8f2(0x1d8)](_0x49d322),this[_0x4cc8f2(0x332)]['currentTheme$']])['pipe']($[_0x4cc8f2(0x186)](([_0x27fb18,_0xac15b1])=>({'skeleton':_0x5e0999[_0x4cc8f2(0x339)](),'cursors':[..._0x27fb18['values']()][_0x4cc8f2(0x1b8)](_0x2fb58a=>({..._0x2fb58a,'color':this[_0x4cc8f2(0x332)]['getColorFromTheme'](_0x2fb58a[_0x4cc8f2(0x3a7)])}))})))['subscribe'](_0x16ba62=>{const _0x2a64a9=_0x4cc8f2;if(this[_0x2a64a9(0x264)](),_0x16ba62){const {skeleton:_0x2523f7,cursors:_0x1598d4}=_0x16ba62;this[_0x2a64a9(0x209)](_0x2523f7,_0x1598d4);}})),this[_0x4cc8f2(0x3a0)](),this[_0x4cc8f2(0x15a)]();}[_0xa70a6a(0x209)](_0x33f414,_0x19f810){const _0x1d3bbd=_0xa70a6a,{scene:_0x31b1ea,mainComponent:_0x13f83c}=this[_0x1d3bbd(0x158)],_0x5db86a=_0x19f810['map'](_0x2f6fa0=>new Re(_0x2f6fa0,_0x31b1ea,_0x33f414,_0x13f83c));this[_0x1d3bbd(0x2d7)]=_0x5db86a,this[_0x1d3bbd(0x1b9)]=_0x19f810;}[_0xa70a6a(0x30a)](){const _0x14b383=_0xa70a6a;this[_0x14b383(0x264)]();const {scene:_0x2ffd15,mainComponent:_0x8dfd94}=this[_0x14b383(0x158)],_0x4f4f71=this[_0x14b383(0x164)]['getSkeleton'](),_0x15403e=this[_0x14b383(0x1b9)][_0x14b383(0x186)](_0x1b1f26=>new Re(_0x1b1f26,_0x2ffd15,_0x4f4f71,_0x8dfd94));this['_cursorShapes']=_0x15403e;}['_removeCollabCursors'](){const _0x379e9b=_0xa70a6a;this['_cursorShapes']['forEach'](_0x22d52c=>_0x22d52c[_0x379e9b(0x37e)]()),this['_cursorShapes']=[];}[_0xa70a6a(0x15a)](){const _0x345d9c=_0xa70a6a,_0x36cf85=[E[_0x345d9c(0x1f2)]['id']];this[_0x345d9c(0x39d)](this[_0x345d9c(0x324)][_0x345d9c(0x1a0)](_0x1fa85c=>{const _0x5921b1=_0x345d9c;_0x36cf85[_0x5921b1(0x321)](_0x1fa85c['id'])&&_0x1fa85c['params'][_0x5921b1(0x16c)]===this[_0x5921b1(0x158)][_0x5921b1(0x16c)]&&this['_refreshCollabCursors']();}));}[_0xa70a6a(0x3a0)](){const _0x3a6b7d=_0xa70a6a;this[_0x3a6b7d(0x39d)](a[_0x3a6b7d(0x1e9)](this['_context'][_0x3a6b7d(0x166)][_0x3a6b7d(0x34e)])[_0x3a6b7d(0x28e)]($[_0x3a6b7d(0x37a)](_0x2d1d25=>_0x2d1d25[_0x3a6b7d(0x221)]===p[_0x3a6b7d(0x37f)][_0x3a6b7d(0x257)]),$[_0x3a6b7d(0x3cc)](0x10))[_0x3a6b7d(0x236)](()=>{this['_refreshCollabCursors']();}));}};fe=Nt([X(0x1,a[_0xa70a6a(0x312)](Y[_0xa70a6a(0x376)])),X(0x2,a['Inject'](x)),X(0x3,a[_0xa70a6a(0x1fe)]),X(0x4,a[_0xa70a6a(0x312)](a[_0xa70a6a(0x21a)]))],fe);const Mt=0x1,Lt=1.5;class $e extends p[_0xa70a6a(0x1e7)]{constructor(_0x4c47a6,_0x5ddf96){const _0x45771d=_0xa70a6a;super(_0x4c47a6,_0x5ddf96),h(this,_0x45771d(0x1ea)),h(this,_0x45771d(0x21c),!0x1),h(this,'_range'),h(this,_0x45771d(0x293),''),h(this,_0x45771d(0x379),_0x45771d(0x378)),h(this,_0x45771d(0x37b)),(_0x5ddf96&&this[_0x45771d(0x2bf)](_0x5ddf96),this[_0x45771d(0x200)][_0x45771d(0x219)](()=>this[_0x45771d(0x2bf)]({'hovered':!0x0})),this[_0x45771d(0x397)]['subscribeEvent'](()=>this[_0x45771d(0x2bf)]({'hovered':!0x1})));}['setShapeProps'](_0x56f9a5){const _0x45f121=_0xa70a6a;var _0x3dcd6b,_0x2a5290,_0x369d3f,_0x3f5285,_0x2ac5b4,_0x257302;this[_0x45f121(0x1ea)]=(_0x3dcd6b=_0x56f9a5[_0x45f121(0x3a7)])!=null?_0x3dcd6b:this['_color'],this[_0x45f121(0x21c)]=(_0x2a5290=_0x56f9a5[_0x45f121(0x356)])!=null?_0x2a5290:this[_0x45f121(0x21c)],this['_range']=(_0x369d3f=_0x56f9a5[_0x45f121(0x364)])!=null?_0x369d3f:this[_0x45f121(0x193)],this[_0x45f121(0x293)]=(_0x3f5285=_0x56f9a5[_0x45f121(0x30f)])!=null?_0x3f5285:this['_name'],this[_0x45f121(0x379)]=(_0x2ac5b4=_0x56f9a5[_0x45f121(0x21b)])!=null?_0x2ac5b4:this[_0x45f121(0x379)],this[_0x45f121(0x37b)]=(_0x257302=_0x56f9a5[_0x45f121(0x265)])!=null?_0x257302:this[_0x45f121(0x37b)],this['transformByState']({'width':_0x56f9a5[_0x45f121(0x371)],'height':_0x56f9a5[_0x45f121(0x244)]});}['onMouseMove'](_0x2efed0){const _0x291ac8=_0xa70a6a,{row:_0x397ef1,column:_0x359e3c}=_0x2efed0;if(_0x397ef1>=this[_0x291ac8(0x193)][_0x291ac8(0x358)]&&_0x397ef1<=this[_0x291ac8(0x193)][_0x291ac8(0x303)]&&_0x359e3c>=this[_0x291ac8(0x193)][_0x291ac8(0x1af)]&&_0x359e3c<=this['_range']['endColumn']){this[_0x291ac8(0x2bf)]({'hovered':!0x0});return;}this[_0x291ac8(0x2bf)]({'hovered':!0x1});}[_0xa70a6a(0x1eb)](_0xe030eb){return!0x1;}[_0xa70a6a(0x399)](_0x846d30){const _0x201465=_0xa70a6a;p[_0x201465(0x3b6)][_0x201465(0x18d)](_0x846d30,{'width':this[_0x201465(0x371)],'height':this[_0x201465(0x244)],'strokeWidth':Lt,'stroke':this[_0x201465(0x1ea)],'evented':!0x1,'fill':this[_0x201465(0x37b)]}),this['_hovered']&&(_0x846d30['save'](),_0x846d30[_0x201465(0x261)](0x1,0x0,0x0,0x1,this['width'],this[_0x201465(0x379)]===_0x201465(0x259)?0x0:-W),ee['drawWith'](_0x846d30,{'text':this[_0x201465(0x293)],'color':this[_0x201465(0x1ea)]}),_0x846d30[_0x201465(0x28b)]());}}var Pt=Object[_0xa70a6a(0x33d)],wt=(_0x56b77c,_0x383521,_0x29fe6e,_0xc539c8)=>{for(var _0x39d7e5=_0xc539c8>0x1?void 0x0:_0xc539c8?Pt(_0x383521,_0x29fe6e):_0x383521,_0x2c5d59=_0x56b77c['length']-0x1,_0x57150d;_0x2c5d59>=0x0;_0x2c5d59--)(_0x57150d=_0x56b77c[_0x2c5d59])&&(_0x39d7e5=_0x57150d(_0x39d7e5)||_0x39d7e5);return _0x39d7e5;},ae=(_0x323b03,_0x38de22)=>(_0x4a511f,_0x190d03)=>_0x38de22(_0x4a511f,_0x190d03,_0x323b03);const At=0x1389;let Ie=class extends a['RxDisposable']{constructor(_0x4f231e,_0xf7c0f4,_0x486a68,_0x5799fc){const _0x3f54ea=_0xa70a6a;super(),h(this,_0x3f54ea(0x1b9),new Set()),h(this,_0x3f54ea(0x1f0),null),(this[_0x3f54ea(0x158)]=_0x4f231e,this[_0x3f54ea(0x3ba)]=_0xf7c0f4,this[_0x3f54ea(0x394)]=_0x486a68,this[_0x3f54ea(0x332)]=_0x5799fc,this[_0x3f54ea(0x373)]());}[_0xa70a6a(0x373)](){const _0x30d159=_0xa70a6a;this[_0x30d159(0x3ba)]['currentSkeleton$'][_0x30d159(0x28e)]($[_0x30d159(0x22d)](this[_0x30d159(0x2ef)]),$[_0x30d159(0x20c)](_0x2d4f79=>{const _0xd97547=_0x30d159;if(_0x2d4f79){const _0xa60205=_0x2d4f79[_0xd97547(0x25f)];return d['combineLatest'](this['_collabCursorController'][_0xd97547(0x1d8)](this['_context'][_0xd97547(0x16c)]),this[_0xd97547(0x332)]['currentTheme$'])['pipe']($[_0xd97547(0x186)](([_0x3c980c,_0x562087])=>{const _0xf5ddee=_0xd97547,_0x133c83=new Map();return _0x3c980c[_0xf5ddee(0x1d1)]((_0x2d4620,_0x438e1d)=>{const _0x2e5678=_0xf5ddee;if(_0x2d4620[_0x2e5678(0x1b4)]===_0xa60205){const _0x529bf2={..._0x2d4620};_0x529bf2[_0x2e5678(0x3a7)]=this[_0x2e5678(0x332)]['getColorFromTheme'](_0x2d4620[_0x2e5678(0x3a7)]),_0x133c83[_0x2e5678(0x2d9)](_0x438e1d,_0x529bf2);}}),{'skeleton':_0x2d4f79,'cursors':_0x133c83};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x30d159(0x236)](({skeleton:_0x14f7c9,cursors:_0x338a94})=>{const _0x64f2fc=_0x30d159;this[_0x64f2fc(0x264)](),_0x14f7c9&&this[_0x64f2fc(0x209)](_0x14f7c9,_0x338a94);}),this[_0x30d159(0x3ba)]['currentSkeleton$'][_0x30d159(0x236)](_0x4596a6=>{const _0x56a3e4=_0x30d159;if(_0x4596a6==null)return;const {skeleton:_0x442202}=_0x4596a6,{scene:_0x4c3137}=this[_0x56a3e4(0x158)];_0x4c3137['onPointerMove$'][_0x56a3e4(0x219)](a[_0x56a3e4(0x2af)](_0xe18bbe=>{const _0x34b6ed=_0x56a3e4;var _0x5f4858,_0x4727d8;const {offsetX:_0x552dfd,offsetY:_0x15991f}=_0xe18bbe,{x:_0x397352,y:_0x659536}=_0x4c3137[_0x34b6ed(0x315)](p[_0x34b6ed(0x1d7)][_0x34b6ed(0x165)]([_0x552dfd,_0x15991f])),{scaleX:_0x45a652,scaleY:_0x33751e}=_0x4c3137[_0x34b6ed(0x151)](),_0x588c6a=_0x4c3137[_0x34b6ed(0x341)](p['SHEET_VIEWPORT_KEY'][_0x34b6ed(0x3c6)]),_0x442d8d=_0x4c3137[_0x34b6ed(0x185)](p['Vector2']['FromArray']([_0x397352,_0x659536]),_0x588c6a),_0x26cd8a=_0x442202['getCellPositionByOffset'](_0x552dfd,_0x15991f,_0x45a652,_0x33751e,_0x442d8d);((_0x5f4858=this[_0x34b6ed(0x1f0)])==null?void 0x0:_0x5f4858[_0x34b6ed(0x189)])===_0x26cd8a[_0x34b6ed(0x189)]&&((_0x4727d8=this[_0x34b6ed(0x1f0)])==null?void 0x0:_0x4727d8[_0x34b6ed(0x168)])===_0x26cd8a[_0x34b6ed(0x168)]||this[_0x34b6ed(0x1b9)][_0x34b6ed(0x1d1)](_0xf8d8e6=>{const _0xfa8a3b=_0x34b6ed;_0xf8d8e6[_0xfa8a3b(0x328)](_0x26cd8a);});},0x64));});}['_updateCollabCursors'](_0x3a9b46,_0x3f234a){const _0x460185=_0xa70a6a;var _0x3d9e44;const _0x26b509=(_0x3d9e44=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x3d9e44[_0x460185(0x3b5)];if(!_0x26b509)return;const _0x216b93=this['_getSheetObject']();if(!_0x216b93)return;this[_0x460185(0x1b9)]['forEach'](_0x5352a9=>{const _0x197dca=_0x460185;_0x5352a9[_0x197dca(0x17e)]();});const {scene:_0x34968d}=_0x216b93,_0x1a7a30=yt(Array[_0x460185(0x2c9)](_0x3f234a[_0x460185(0x359)]()))['map'](_0x1dcc9a=>{const _0x50b995=_0x460185,{color:_0x3f0930,range:_0x31befc,name:_0x45516d,selection:_0x28b080,sheetID:_0x1a5a77}=_0x1dcc9a,{startColumn:_0x190f34,startRow:_0x466ab7,endColumn:_0x443958,endRow:_0x5cf37a}=_0x31befc,_0x133502=G['getCoordByCell'](_0x466ab7,_0x190f34,_0x34968d,_0x26b509),_0x144d43=G[_0x50b995(0x2b5)](_0x5cf37a,_0x443958,_0x34968d,_0x26b509),{columnHeaderHeightAndMarginTop:_0x44fde5}=_0x26b509,{startX:_0x180c16,startY:_0x738b33}=_0x133502,{endX:_0x45589c,endY:_0x4f25b4}=_0x144d43,_0x2087b4=_0x45589c-_0x180c16,_0x2cded0=_0x4f25b4-_0x738b33,_0x5c236c={'labelPosition':_0x738b33-_0x44fde5>=W?'top':'bottom','sheetID':_0x1a5a77,'range':_0x31befc,'color':_0x3f0930,'name':_0x45516d,'selection':_0x28b080,'left':_0x180c16,'top':_0x738b33,'width':_0x2087b4,'height':_0x2cded0,'evented':!0x1,'zIndex':At};return new $e(_0x45516d,_0x5c236c);});_0x34968d[_0x460185(0x367)](_0x1a7a30,Mt),this[_0x460185(0x1b9)]=new Set(_0x1a7a30);}['_removeCollabCursors'](){const _0x49f32d=_0xa70a6a;var _0x30e9dd;(_0x30e9dd=this[_0x49f32d(0x1b9)])==null||_0x30e9dd[_0x49f32d(0x1d1)](_0x3d0254=>_0x3d0254[_0x49f32d(0x37e)]());}[_0xa70a6a(0x3b7)](){const _0x4f6796=_0xa70a6a;return G[_0x4f6796(0x2b0)](this[_0x4f6796(0x158)][_0x4f6796(0x1b6)],this[_0x4f6796(0x158)]);}};Ie=wt([ae(0x1,a['Inject'](G[_0xa70a6a(0x2d5)])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0xa70a6a(0x312)](a[_0xa70a6a(0x21a)]))],Ie);function yt(_0x1e61ff){const _0x253b9f=_0xa70a6a,_0x5cda1b=new Map();return _0x1e61ff[_0x253b9f(0x1d1)](_0x358714=>{const _0x50ed3f=_0x253b9f;if(_0x5cda1b['has'](_0x358714[_0x50ed3f(0x31d)])){const _0x220961=_0x5cda1b['get'](_0x358714['selection']);_0x220961[_0x50ed3f(0x30f)]+=',\x20'+_0x358714[_0x50ed3f(0x30f)];}else _0x5cda1b[_0x50ed3f(0x2d9)](_0x358714[_0x50ed3f(0x31d)],_0x358714);}),Array[_0x253b9f(0x2c9)](_0x5cda1b[_0x253b9f(0x359)]());}var $t=Object[_0xa70a6a(0x33d)],xt=(_0x2c51e8,_0x3daff8,_0x17b3be,_0x4ef3f1)=>{const _0x10bd18=_0xa70a6a;for(var _0x2eeca0=_0x4ef3f1>0x1?void 0x0:_0x4ef3f1?$t(_0x3daff8,_0x17b3be):_0x3daff8,_0x4953b9=_0x2c51e8[_0x10bd18(0x154)]-0x1,_0x23ad95;_0x4953b9>=0x0;_0x4953b9--)(_0x23ad95=_0x2c51e8[_0x4953b9])&&(_0x2eeca0=_0x23ad95(_0x2eeca0)||_0x2eeca0);return _0x2eeca0;},y=(_0x1c7af5,_0x102c1f)=>(_0x1c138a,_0x271065)=>_0x102c1f(_0x1c138a,_0x271065,_0x1c7af5);let q=class extends a[_0xa70a6a(0x270)]{constructor(_0x15c812,_0xd0031d,_0x18b70b,_0x2c2650,_0x150e3d,_0x4ea12c){const _0x2a9cb2=_0xa70a6a;super(),this[_0x2a9cb2(0x2ed)]=_0x15c812,this['_localCacheService']=_0xd0031d,this[_0x2a9cb2(0x28a)]=_0x18b70b,this[_0x2a9cb2(0x226)]=_0x2c2650,this[_0x2a9cb2(0x317)]=_0x150e3d,this['_localeService']=_0x4ea12c,this[_0x2a9cb2(0x220)](),this[_0x2a9cb2(0x197)]();}[_0xa70a6a(0x220)](){const _0x371e5b=_0xa70a6a;this['disposeWithMe'](this[_0x371e5b(0x2ed)][_0x371e5b(0x2fe)](()=>{const _0x46d2c8=_0x371e5b;if(this[_0x46d2c8(0x1ff)][_0x46d2c8(0x32f)][_0x46d2c8(0x237)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}[_0xa70a6a(0x197)](){const _0x1917d9=_0xa70a6a;this[_0x1917d9(0x39d)](this[_0x1917d9(0x28a)][_0x1917d9(0x169)][_0x1917d9(0x236)](_0x398508=>{const _0x4175b3=_0x1917d9;_0x398508['id']===u[_0x4175b3(0x1c2)]['OTHER_CLIENT_EDITING']&&this['_messageService']['show']({'type':D['MessageType']['Warning'],'content':this[_0x4175b3(0x34a)]['t']('collaboration.single-unit.warning')}),_0x398508['id']===u[_0x4175b3(0x1c2)]['CLOSE_ROOM']&&this[_0x4175b3(0x226)][_0x4175b3(0x31a)]({'type':D['MessageType'][_0x4175b3(0x2c3)],'content':this[_0x4175b3(0x34a)]['t']('collaboration.closeRoom')}),_0x398508['id']===u[_0x4175b3(0x1c2)][_0x4175b3(0x369)]&&this['_notificationService'][_0x4175b3(0x31a)]({'title':this[_0x4175b3(0x34a)]['t'](_0x4175b3(0x26d)),'content':this[_0x4175b3(0x34a)]['t'](_0x4175b3(0x29a)),'type':_0x4175b3(0x1c9),'duration':0x0}),_0x398508['id']===u[_0x4175b3(0x1c2)]['CONFLICT']&&this[_0x4175b3(0x226)][_0x4175b3(0x31a)]({'type':D[_0x4175b3(0x27a)]['Error'],'content':this[_0x4175b3(0x34a)]['t'](_0x4175b3(0x2cb))+'('+_0x398508[_0x4175b3(0x1de)]+')'}),_0x398508['id']===u[_0x4175b3(0x1c2)]['JOIN_ROOM_FAILED']&&this['_messageService'][_0x4175b3(0x31a)]({'type':D[_0x4175b3(0x27a)][_0x4175b3(0x2c3)],'content':this['_localeService']['t'](_0x398508['data']||'')}),_0x398508['id']===u[_0x4175b3(0x1c2)][_0x4175b3(0x30b)]&&this[_0x4175b3(0x226)][_0x4175b3(0x31a)]({'type':D['MessageType']['Warning'],'content':this['_localeService']['t'](_0x4175b3(0x335))}),_0x398508['id']===u[_0x4175b3(0x1c2)][_0x4175b3(0x1c1)]&&this[_0x4175b3(0x226)][_0x4175b3(0x31a)]({'type':D['MessageType'][_0x4175b3(0x23c)],'content':this['_localeService']['t'](_0x4175b3(0x305))}),_0x398508['id']===u[_0x4175b3(0x1c2)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x4175b3(0x226)]['show']({'type':D['MessageType']['Error'],'content':this['_localeService']['t'](_0x4175b3(0x249))});}));}};q=xt([y(0x0,O[_0xa70a6a(0x2ce)]),y(0x1,u[_0xa70a6a(0x2b4)]),y(0x2,a['Inject'](u[_0xa70a6a(0x322)])),y(0x3,O['IMessageService']),y(0x4,O[_0xa70a6a(0x2d4)]),y(0x5,a[_0xa70a6a(0x312)](a[_0xa70a6a(0x173)]))],q);const Bt='collaboration-client-ui.config',De={};var jt=Object[_0xa70a6a(0x33d)],kt=(_0x3ce9cb,_0x5b718a,_0x2fc69f,_0x1f244)=>{const _0x19c106=_0xa70a6a;for(var _0x5f4e45=_0x1f244>0x1?void 0x0:_0x1f244?jt(_0x5b718a,_0x2fc69f):_0x5b718a,_0x5287f0=_0x3ce9cb[_0x19c106(0x154)]-0x1,_0xdaac3c;_0x5287f0>=0x0;_0x5287f0--)(_0xdaac3c=_0x3ce9cb[_0x5287f0])&&(_0x5f4e45=_0xdaac3c(_0x5f4e45)||_0x5f4e45);return _0x5f4e45;},Ue=(_0x77fd64,_0x26dbf9)=>(_0x2a5abe,_0x116deb)=>_0x26dbf9(_0x2a5abe,_0x116deb,_0x77fd64);let z=class{constructor(_0x1334d0,_0x55648d){const _0x2fdb32=_0xa70a6a;this[_0x2fdb32(0x374)]=_0x1334d0,this['_renderManagerService']=_0x55648d;}[_0xa70a6a(0x174)](_0x474911){this['_transformUndoRedoStack'](_0x474911),this['_transformPreviousActiveRange'](_0x474911);}['transformRemoteChangeset'](_0x5e03de){const _0x1b90dd=_0xa70a6a,{unitID:_0x1b32fd}=_0x5e03de,_0x295459=this['_renderManagerService']['getRenderById'](_0x1b32fd)[_0x1b90dd(0x319)](E['DocIMEInputManagerService']),{redoCache:_0x39cea0}=_0x295459[_0x1b90dd(0x311)]();if(_0x39cea0[_0x1b90dd(0x154)]===0x0)return _0x5e03de;let _0x2ffb7d=a[_0x1b90dd(0x31f)][_0x1b90dd(0x15c)](_0x5e03de['mutations'][0x0]);for(let _0x2a5a30=0x0;_0x2a5a30<_0x39cea0[_0x1b90dd(0x154)];_0x2a5a30++){const _0x17842d={'id':_0x1b90dd(0x2ad),'params':{..._0x39cea0[_0x2a5a30]}},_0x58e5f7=this['_transformService'][_0x1b90dd(0x1ed)](_0x2ffb7d,_0x17842d,!0x1);if(m[_0x1b90dd(0x238)](_0x58e5f7))throw _0x58e5f7[_0x1b90dd(0x1c9)];_0x2ffb7d=_0x58e5f7[_0x1b90dd(0x1bc)];}return{...a['Tools'][_0x1b90dd(0x15c)](_0x5e03de),'mutations':[_0x2ffb7d]};}['_transformUndoRedoStack'](_0x402c59){const _0x391eaf=_0xa70a6a,{unitID:_0x2e2a3b}=_0x402c59,_0x2d2dfc=this[_0x391eaf(0x20b)][_0x391eaf(0x39a)](_0x2e2a3b)[_0x391eaf(0x319)](E['DocIMEInputManagerService']),{undoCache:_0x1e227a,redoCache:_0x5f55f5}=_0x2d2dfc['getUndoRedoMutationParamsCache']();if(_0x1e227a[_0x391eaf(0x154)]===0x0||_0x5f55f5[_0x391eaf(0x154)]===0x0)return;const _0x83078d=[],_0xfccc46=[];let _0x31c1cf=a['Tools']['deepClone'](_0x402c59[_0x391eaf(0x2bc)][0x0]),_0x95c63f=a[_0x391eaf(0x31f)]['deepClone'](_0x402c59['mutations'][0x0]);for(let _0x34c203=_0x1e227a[_0x391eaf(0x154)]-0x1;_0x34c203>=0x0;_0x34c203--){const _0x1ed8c9={'id':_0x391eaf(0x2ad),'params':{..._0x1e227a[_0x34c203]}},_0x30a647={'id':_0x391eaf(0x2ad),'params':{..._0x5f55f5[_0x34c203]}},_0x2a7041=this[_0x391eaf(0x374)][_0x391eaf(0x1ed)](_0x31c1cf,_0x1ed8c9,!0x1),_0x39739e=this[_0x391eaf(0x374)][_0x391eaf(0x1ed)](_0x95c63f,_0x30a647,!0x1);if(m[_0x391eaf(0x238)](_0x2a7041))throw _0x2a7041['error'];if(m['isTransformMutationFailure'](_0x39739e))throw _0x39739e[_0x391eaf(0x1c9)];_0x83078d['unshift'](_0x2a7041[_0x391eaf(0x33f)][_0x391eaf(0x1f3)]),_0xfccc46[_0x391eaf(0x338)](_0x39739e[_0x391eaf(0x33f)][_0x391eaf(0x1f3)]),_0x31c1cf=_0x2a7041[_0x391eaf(0x1bc)],_0x95c63f=_0x39739e[_0x391eaf(0x1bc)];}_0x2d2dfc[_0x391eaf(0x247)]({'undoCache':_0x83078d,'redoCache':_0xfccc46});}[_0xa70a6a(0x1b1)](_0x2470ba){const _0x427ad2=_0xa70a6a,{unitID:_0x364fb5}=_0x2470ba,_0x3b0e67=this['_renderManagerService']['getRenderById'](_0x364fb5)[_0x427ad2(0x319)](E[_0x427ad2(0x253)]),_0xa063f5=_0x3b0e67[_0x427ad2(0x3c5)]();if(_0xa063f5==null)return;const _0x32574d=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2470ba[_0x427ad2(0x3d1)],'actions':null,'textRanges':[_0xa063f5]}}],_0x54ac6b=this[_0x427ad2(0x374)][_0x427ad2(0x3c4)](_0x2470ba,_0x32574d);if(!m[_0x427ad2(0x34d)](_0x54ac6b))throw _0x54ac6b[_0x427ad2(0x1c9)];const _0x28b676=_0x54ac6b[_0x427ad2(0x33f)][0x0][_0x427ad2(0x1f3)][_0x427ad2(0x2df)];Array[_0x427ad2(0x1d5)](_0x28b676)&&_0x28b676['length']&&_0x3b0e67[_0x427ad2(0x1be)](_0x28b676[0x0]);}};z=kt([Ue(0x0,m['ITransformService']),Ue(0x1,p[_0xa70a6a(0x2ab)])],z);var Ft=Object['getOwnPropertyDescriptor'],Ht=(_0x399cc3,_0x1e7c9b,_0x341e9f,_0x2582da)=>{const _0x431ad4=_0xa70a6a;for(var _0x13b149=_0x2582da>0x1?void 0x0:_0x2582da?Ft(_0x1e7c9b,_0x341e9f):_0x1e7c9b,_0x5d31d3=_0x399cc3[_0x431ad4(0x154)]-0x1,_0x3d79ed;_0x5d31d3>=0x0;_0x5d31d3--)(_0x3d79ed=_0x399cc3[_0x5d31d3])&&(_0x13b149=_0x3d79ed(_0x13b149)||_0x13b149);return _0x13b149;},ce=(_0x173da5,_0x4d778c)=>(_0x4d1775,_0x1daa54)=>_0x4d778c(_0x4d1775,_0x1daa54,_0x173da5);let J=class{constructor(_0x1a6c6f,_0x459393,_0x54da54){const _0x5d2660=_0xa70a6a;this['_injector']=_0x1a6c6f,this[_0x5d2660(0x374)]=_0x459393,this['_docStateChangeManagerService']=_0x54da54;}[_0xa70a6a(0x1d0)](_0x215333){const _0x237685=_0xa70a6a;this[_0x237685(0x37d)](_0x215333);}['transformRemoteChangeset'](_0xc5651b){const _0x692926=_0xa70a6a,{unitID:_0x4adc31}=_0xc5651b,{collaboration:_0xf403b0}=this[_0x692926(0x23d)][_0x692926(0x385)](_0x4adc31);if(_0xf403b0[_0x692926(0x154)]===0x0)return _0xc5651b;let _0x30817a=a[_0x692926(0x31f)][_0x692926(0x15c)](_0xc5651b[_0x692926(0x2bc)][0x0]);for(let _0x5e638b=0x0;_0x5e638b<_0xf403b0[_0x692926(0x154)];_0x5e638b++){const _0x256016={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xf403b0[_0x5e638b][_0x692926(0x16c)],..._0xf403b0[_0x5e638b][_0x692926(0x29f)]}},_0x5af13e=this['_transformService'][_0x692926(0x1ed)](_0x30817a,_0x256016,!0x1);if(m[_0x692926(0x238)](_0x5af13e))throw _0x5af13e['error'];_0x30817a=_0x5af13e[_0x692926(0x1bc)];}return{...a['Tools'][_0x692926(0x15c)](_0xc5651b),'mutations':[_0x30817a]};}[_0xa70a6a(0x37d)](_0x1e61e2){const _0x46deef=_0xa70a6a,{unitID:_0x219898}=_0x1e61e2,{history:_0x486700,collaboration:_0x54ea7c}=this[_0x46deef(0x23d)][_0x46deef(0x385)](_0x219898);if(_0x486700[_0x46deef(0x154)]===0x0&&_0x54ea7c[_0x46deef(0x154)]===0x0)return;const _0x140b6f=[],_0x2b8b6c=[];let _0xb19775=a[_0x46deef(0x31f)]['deepClone'](_0x1e61e2[_0x46deef(0x2bc)][0x0]),_0x463c88=a['Tools'][_0x46deef(0x15c)](_0x1e61e2[_0x46deef(0x2bc)][0x0]);for(let _0x363ed2=_0x486700[_0x46deef(0x154)]-0x1;_0x363ed2>=0x0;_0x363ed2--){const _0x44c0f2={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x486700[_0x363ed2][_0x46deef(0x16c)],..._0x486700[_0x363ed2][_0x46deef(0x31e)]}},_0x32f888={'id':_0x46deef(0x2ad),'params':{'unitId':_0x486700[_0x363ed2][_0x46deef(0x16c)],..._0x486700[_0x363ed2][_0x46deef(0x29f)]}},_0x399b01=this['_transformService'][_0x46deef(0x1ed)](_0xb19775,_0x44c0f2,!0x1),_0x1395b0=this['_transformService']['transformMutation'](_0x463c88,_0x32f888,!0x1);if(m[_0x46deef(0x238)](_0x399b01))throw _0x399b01[_0x46deef(0x1c9)];if(m[_0x46deef(0x238)](_0x1395b0))throw _0x1395b0[_0x46deef(0x1c9)];_0x140b6f[_0x46deef(0x338)]({..._0x486700[_0x363ed2],'undoState':_0x399b01['m2Prime']['params'],'redoState':_0x1395b0[_0x46deef(0x33f)][_0x46deef(0x1f3)]}),_0xb19775=_0x399b01[_0x46deef(0x1bc)],_0x463c88=_0x1395b0[_0x46deef(0x1bc)];}_0xb19775=a[_0x46deef(0x31f)]['deepClone'](_0x1e61e2[_0x46deef(0x2bc)][0x0]),_0x463c88=a[_0x46deef(0x31f)][_0x46deef(0x15c)](_0x1e61e2[_0x46deef(0x2bc)][0x0]);for(let _0x4f53bf=_0x54ea7c[_0x46deef(0x154)]-0x1;_0x4f53bf>=0x0;_0x4f53bf--){const _0x554b30={'id':_0x46deef(0x2ad),'params':{'unitId':_0x54ea7c[_0x4f53bf][_0x46deef(0x16c)],..._0x54ea7c[_0x4f53bf][_0x46deef(0x31e)]}},_0x2c051a={'id':_0x46deef(0x2ad),'params':{'unitId':_0x54ea7c[_0x4f53bf]['unitId'],..._0x54ea7c[_0x4f53bf]['redoState']}},_0x4fc462=this[_0x46deef(0x374)][_0x46deef(0x1ed)](_0xb19775,_0x554b30,!0x1),_0x5ca698=this[_0x46deef(0x374)][_0x46deef(0x1ed)](_0x463c88,_0x2c051a,!0x1);if(m['isTransformMutationFailure'](_0x4fc462))throw _0x4fc462[_0x46deef(0x1c9)];if(m[_0x46deef(0x238)](_0x5ca698))throw _0x5ca698['error'];_0x2b8b6c[_0x46deef(0x338)]({..._0x54ea7c[_0x4f53bf],'undoState':_0x4fc462[_0x46deef(0x33f)]['params'],'redoState':_0x5ca698[_0x46deef(0x33f)][_0x46deef(0x1f3)]}),_0xb19775=_0x4fc462[_0x46deef(0x1bc)],_0x463c88=_0x5ca698[_0x46deef(0x1bc)];}this[_0x46deef(0x23d)][_0x46deef(0x190)](_0x219898,{'history':_0x140b6f,'collaboration':_0x2b8b6c});}};J=Ht([ce(0x0,a[_0xa70a6a(0x312)](a[_0xa70a6a(0x262)])),ce(0x1,m[_0xa70a6a(0x1ae)]),ce(0x2,a['Inject'](E[_0xa70a6a(0x1a3)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0x35a077,_0x8c3565,_0x271091,_0x57a82d)=>{const _0xbc4e4e=_0xa70a6a;for(var _0x51a215=_0x57a82d>0x1?void 0x0:_0x57a82d?Yt(_0x8c3565,_0x271091):_0x8c3565,_0xe75627=_0x35a077[_0xbc4e4e(0x154)]-0x1,_0x3f7539;_0xe75627>=0x0;_0xe75627--)(_0x3f7539=_0x35a077[_0xe75627])&&(_0x51a215=_0x3f7539(_0x51a215)||_0x51a215);return _0x51a215;},Ne=(_0x357712,_0x567fa2)=>(_0x5a9d82,_0x57f6aa)=>_0x567fa2(_0x5a9d82,_0x57f6aa,_0x357712);let Z=class{constructor(_0x50f4e6,_0x3a7bc){const _0x523bf1=_0xa70a6a;this[_0x523bf1(0x1d9)]=_0x50f4e6,this['_transformService']=_0x3a7bc;}[_0xa70a6a(0x188)](_0x41f613){const _0x19fb90=_0xa70a6a;var _0x94266a;const _0x159f5d=this['_injector'][_0x19fb90(0x258)](Y['DocSelectionManagerService']),_0x54f690=(_0x94266a=_0x159f5d['getDocRanges']())!=null?_0x94266a:[];if(_0x54f690[_0x19fb90(0x154)]===0x0)return;const _0x577ca3=_0x41f613['unitID'],_0x4b692e=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x577ca3,'actions':null,'textRanges':_0x54f690}}],_0x30f441=this[_0x19fb90(0x374)][_0x19fb90(0x3c4)](_0x41f613,_0x4b692e);if(!m[_0x19fb90(0x34d)](_0x30f441))throw _0x30f441[_0x19fb90(0x1c9)];const _0x371ed2=_0x30f441[_0x19fb90(0x33f)][0x0][_0x19fb90(0x1f3)][_0x19fb90(0x2df)];Array[_0x19fb90(0x1d5)](_0x371ed2)&&_0x371ed2[_0x19fb90(0x154)]&&_0x159f5d[_0x19fb90(0x377)](_0x371ed2,{'unitId':_0x577ca3,'subUnitId':_0x577ca3},!0x1);}};Z=Wt([Ne(0x0,a[_0xa70a6a(0x312)](a['Injector'])),Ne(0x1,m[_0xa70a6a(0x1ae)])],Z);var Vt=Object[_0xa70a6a(0x33d)],Xt=(_0x280c36,_0x411f62,_0x377325,_0x46ec53)=>{const _0x2dc656=_0xa70a6a;for(var _0x554298=_0x46ec53>0x1?void 0x0:_0x46ec53?Vt(_0x411f62,_0x377325):_0x411f62,_0x568443=_0x280c36[_0x2dc656(0x154)]-0x1,_0x253134;_0x568443>=0x0;_0x568443--)(_0x253134=_0x280c36[_0x568443])&&(_0x554298=_0x253134(_0x554298)||_0x554298);return _0x554298;},N=(_0x5b116f,_0x325c93)=>(_0x43a952,_0x2f974d)=>_0x325c93(_0x43a952,_0x2f974d,_0x5b116f);let Q=class extends a[_0xa70a6a(0x270)]{constructor(_0x1fc17f,_0x62c3e2,_0x266d08,_0x54186c,_0x6a6d85,_0x32b2e3,_0x429d1e,_0x299584){const _0x2f75f2=_0xa70a6a;super(),h(this,_0x2f75f2(0x33b),new d['BehaviorSubject'](u['CollaborationStatus'][_0x2f75f2(0x1e0)])),(this[_0x2f75f2(0x23d)]=_0x1fc17f,this[_0x2f75f2(0x152)]=_0x62c3e2,this[_0x2f75f2(0x23f)]=_0x266d08,this[_0x2f75f2(0x296)]=_0x54186c,this[_0x2f75f2(0x2fb)]=_0x6a6d85,this[_0x2f75f2(0x1d6)]=_0x32b2e3,this['_messageService']=_0x429d1e,this[_0x2f75f2(0x34a)]=_0x299584,this[_0x2f75f2(0x2e2)]());}['_initEntityListener'](){const _0x1e0aca=_0xa70a6a;this[_0x1e0aca(0x39d)](this[_0x1e0aca(0x152)][_0x1e0aca(0x231)][_0x1e0aca(0x236)](_0x4d0283=>{const _0x2f072f=_0x1e0aca,_0xdc2452=this[_0x2f072f(0x23d)]['docStateChange$'][_0x2f072f(0x236)](_0x3a4573=>{const _0x348f03=_0x2f072f;if(_0x3a4573==null)return;const {unitId:_0x2c380b,redoState:_0x5ec4a1,commandId:_0x1b5354}=_0x3a4573;if(_0x2c380b!==_0x4d0283[_0x348f03(0x3d1)])return;const _0x4c263b={'id':_0x1b5354,'type':a[_0x348f03(0x3a5)][_0x348f03(0x252)],'params':{'unitId':_0x2c380b,'actions':_0x5ec4a1['actions'],'textRanges':null}};_0x4d0283['onLocalMutation'](_0x4c263b);});if(_0x4d0283[_0x2f072f(0x39d)](_0xdc2452),_0x4d0283 instanceof u[_0x2f072f(0x2f2)]){const _0x5585b0={'onTransformIME':_0x417bad=>this['_docTransformIMECacheService'][_0x2f072f(0x174)](_0x417bad),'onTransformState':_0x34b4cf=>this[_0x2f072f(0x296)][_0x2f072f(0x1d0)](_0x34b4cf),'onTransformSelections':_0x2ac6f5=>this[_0x2f072f(0x2fb)]['transformSelections'](_0x2ac6f5),'onSyncEditingCollabCursor':_0x27d935=>this[_0x2f072f(0x1d6)][_0x2f072f(0x18b)](_0x27d935),'onTransformRemoteChangesetByIMECache':_0x5527e9=>this[_0x2f072f(0x23f)][_0x2f072f(0x1c0)](_0x5527e9),'onTransformRemoteChangesetByStateCache':_0x31fde4=>this[_0x2f072f(0x296)][_0x2f072f(0x1c0)](_0x31fde4)};_0x4d0283['addHandlerCallback'](_0x5585b0);}}));}};Q=Xt([N(0x0,a[_0xa70a6a(0x312)](E[_0xa70a6a(0x1a3)])),N(0x1,a[_0xa70a6a(0x312)](u[_0xa70a6a(0x16f)])),N(0x2,a['Inject'](z)),N(0x3,a[_0xa70a6a(0x312)](J)),N(0x4,a['Inject'](Z)),N(0x5,a[_0xa70a6a(0x312)](pe)),N(0x6,O['IMessageService']),N(0x7,a[_0xa70a6a(0x312)](a[_0xa70a6a(0x173)]))],Q);var Gt=Object[_0xa70a6a(0x33d)],Kt=(_0x50e73c,_0xd23119,_0x4a8fb8,_0x17d44f)=>{for(var _0xcaf8c9=_0x17d44f>0x1?void 0x0:_0x17d44f?Gt(_0xd23119,_0x4a8fb8):_0xd23119,_0x2c5620=_0x50e73c['length']-0x1,_0x53ced2;_0x2c5620>=0x0;_0x2c5620--)(_0x53ced2=_0x50e73c[_0x2c5620])&&(_0xcaf8c9=_0x53ced2(_0xcaf8c9)||_0xcaf8c9);return _0xcaf8c9;},le=(_0x2c25f1,_0x5cfeab)=>(_0x1a5cc3,_0x4d6460)=>_0x5cfeab(_0x1a5cc3,_0x4d6460,_0x2c25f1);let ve=class extends a[_0xa70a6a(0x270)]{constructor(_0x5efafb,_0x106903,_0x412285){const _0x1bc910=_0xa70a6a;super(),h(this,_0x1bc910(0x172),new Map()),h(this,_0x1bc910(0x363),new Map()),h(this,_0x1bc910(0x195),!0x1),(this[_0x1bc910(0x225)]=_0x5efafb,this['_localStorageService']=_0x106903,this[_0x1bc910(0x30d)]=_0x412285);}[_0xa70a6a(0x2ec)](){this['_disabled']=!0x0;}[_0xa70a6a(0x18e)](){const _0x1b68a5=_0xa70a6a;this[_0x1b68a5(0x195)]=!0x1;}get[_0xa70a6a(0x32f)](){const _0x3ee3ba=_0xa70a6a;return this[_0x3ee3ba(0x363)];}[_0xa70a6a(0x37e)](){const _0xcd1651=_0xa70a6a;this['exhaustSavingTask']()[_0xcd1651(0x1d4)](()=>super[_0xcd1651(0x37e)]());}async[_0xa70a6a(0x24b)](_0x1f0cd0){const _0x5a9949=_0xa70a6a;return this[_0x5a9949(0x195)]?null:this[_0x5a9949(0x1cf)]['getItem'](u[_0x5a9949(0x325)](_0x1f0cd0));}async['saveOfflineData'](_0x37981b,_0x11f37d){const _0x128622=_0xa70a6a;return!!this['_localStorageService'][_0x128622(0x294)](_0x37981b,_0x11f37d);}[_0xa70a6a(0x28d)](_0x106784,_0x5d95c5,_0x459af5,_0x40bd8c){const _0x214ac4=_0xa70a6a,_0xad7788=this[_0x214ac4(0x30d)][_0x214ac4(0x2d6)](_0x106784);this[_0x214ac4(0x172)][_0x214ac4(0x2d9)](_0x106784,{'unitID':_0x106784,'type':_0x5d95c5,'awaitingChangeset':_0x459af5,'mutations':_0x40bd8c,'rev':_0xad7788}),this[_0x214ac4(0x363)][_0x214ac4(0x2b6)](_0x106784)||this[_0x214ac4(0x227)](_0x106784);}[_0xa70a6a(0x227)](_0x310a6c){const _0x457f32=_0xa70a6a,_0x2c756a=this[_0x457f32(0x2a3)]();_0x2c756a===0x0?this['_saveCache'](_0x310a6c):this[_0x457f32(0x363)]['set'](_0x310a6c,setTimeout(()=>this['_saveCache'](_0x310a6c),_0x2c756a));}[_0xa70a6a(0x2a3)](){const _0xd50a7f=_0xa70a6a;var _0x34e822;return(_0x34e822=this[_0xd50a7f(0x225)][_0xd50a7f(0x342)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x34e822:u[_0xd50a7f(0x35a)];}['_saveCache'](_0x58c6f5){const _0x4b11f1=_0xa70a6a,_0x1c4c0c=this[_0x4b11f1(0x363)][_0x4b11f1(0x258)](_0x58c6f5);return _0x1c4c0c!==void 0x0&&window['clearTimeout'](_0x1c4c0c),this[_0x4b11f1(0x1cf)][_0x4b11f1(0x294)](u[_0x4b11f1(0x325)](_0x58c6f5),this[_0x4b11f1(0x172)]['get'](_0x58c6f5))['then'](()=>this['_saveTaskMap'][_0x4b11f1(0x15d)](_0x58c6f5));}async[_0xa70a6a(0x355)](){const _0x514df8=_0xa70a6a,_0x8251ea=[];this[_0x514df8(0x363)]['forEach']((_0x5df08f,_0x1d81f3)=>{const _0x282047=_0x514df8;window['clearTimeout'](_0x5df08f),_0x8251ea['push'](this['_saveCache'](_0x1d81f3)[_0x282047(0x1d4)](()=>{const _0x3f5d17=_0x282047;this[_0x3f5d17(0x363)][_0x3f5d17(0x15d)](_0x1d81f3);}));}),await Promise[_0x514df8(0x2d3)](_0x8251ea);}};ve=Kt([le(0x0,a[_0xa70a6a(0x33c)]),le(0x1,a['ILocalStorageService']),le(0x2,a[_0xa70a6a(0x312)](m[_0xa70a6a(0x282)]))],ve);class xe extends a[_0xa70a6a(0x306)]{constructor(){const _0x3f8e77=_0xa70a6a;super(),h(this,_0x3f8e77(0x161)),this[_0x3f8e77(0x161)]=d[_0x3f8e77(0x1e4)](window,_0x3f8e77(0x240))[_0x3f8e77(0x28e)](d['takeUntil'](this[_0x3f8e77(0x2ef)]),d[_0x3f8e77(0x1cb)](0x1),d[_0x3f8e77(0x2e1)](void 0x0));}[_0xa70a6a(0x336)](_0x5e625d,_0x3e42c8,_0x1eea14=!0x1){const _0x1ff310=_0xa70a6a,_0x2bff34=new URL(window[_0x1ff310(0x329)][_0x1ff310(0x30c)]);_0x2bff34[_0x1ff310(0x2ea)][_0x1ff310(0x2d9)](_0x5e625d,_0x3e42c8),_0x1eea14?window[_0x1ff310(0x1ad)][_0x1ff310(0x2b9)]('','',_0x2bff34['toString']()):window[_0x1ff310(0x1ad)][_0x1ff310(0x2ee)]('','',_0x2bff34[_0x1ff310(0x2a4)]());}[_0xa70a6a(0x283)](_0x463700,_0x32266c=!0x1){const _0x3f34de=_0xa70a6a,_0x136e28=new URL(window[_0x3f34de(0x329)][_0x3f34de(0x30c)]);_0x136e28[_0x3f34de(0x2ea)][_0x3f34de(0x15d)](_0x463700),_0x32266c?window[_0x3f34de(0x1ad)][_0x3f34de(0x2b9)]('','',_0x136e28[_0x3f34de(0x2a4)]()):window[_0x3f34de(0x1ad)][_0x3f34de(0x2ee)]('','',_0x136e28[_0x3f34de(0x2a4)]());}[_0xa70a6a(0x1cd)](_0x4912ca){const _0x166f57=_0xa70a6a;var _0x1cdf56;return(_0x1cdf56=new URL(window[_0x166f57(0x329)][_0x166f57(0x30c)])[_0x166f57(0x2ea)][_0x166f57(0x258)](_0x4912ca))!=null?_0x1cdf56:void 0x0;}}var qt=Object[_0xa70a6a(0x1ba)],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x2158e1,_0x2688ce,_0x40b671)=>_0x2688ce in _0x2158e1?qt(_0x2158e1,_0x2688ce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x40b671}):_0x2158e1[_0x2688ce]=_0x40b671,Zt=(_0x25121f,_0x324248,_0x23cb88,_0x56722b)=>{const _0x53fdad=_0xa70a6a;for(var _0x909db6=_0x56722b>0x1?void 0x0:_0x56722b?zt(_0x324248,_0x23cb88):_0x324248,_0x1b10d1=_0x25121f[_0x53fdad(0x154)]-0x1,_0x1f4fee;_0x1b10d1>=0x0;_0x1b10d1--)(_0x1f4fee=_0x25121f[_0x1b10d1])&&(_0x909db6=_0x1f4fee(_0x909db6)||_0x909db6);return _0x909db6;},_e=(_0x133822,_0x442d76)=>(_0x4bc063,_0x1e579d)=>_0x442d76(_0x4bc063,_0x1e579d,_0x133822),Qt=(_0x3da56a,_0x3de909,_0x1dc790)=>Jt(_0x3da56a,_0x3de909+'',_0x1dc790);const es=_0xa70a6a(0x33a);exports['UniverCollaborationClientUIPlugin']=class extends a[_0xa70a6a(0x2d0)]{constructor(_0x5714dd=De,_0x18721d,_0x58e017,_0x539dad){const _0x2f015c=_0xa70a6a;super(),this[_0x2f015c(0x34b)]=_0x5714dd,this[_0x2f015c(0x20b)]=_0x18721d,this['_injector']=_0x58e017,this[_0x2f015c(0x225)]=_0x539dad;const {..._0x63fbda}=a[_0x2f015c(0x1ee)]({},De,this[_0x2f015c(0x34b)]);this[_0x2f015c(0x225)][_0x2f015c(0x243)](Bt,_0x63fbda);}[_0xa70a6a(0x251)](){const _0x26a540=_0xa70a6a;this[_0x26a540(0x36f)](),this['_initDependencies']();}[_0xa70a6a(0x182)](){const _0x5d3d35=_0xa70a6a;this[_0x5d3d35(0x347)]();}[_0xa70a6a(0x36f)](){const _0x463c16=_0xa70a6a;var _0x5ed2b7;const _0x3a203a=[[Ce],[Z],[z],[J],[pe],[me,{'useClass':xe}],[K[_0x463c16(0x1a5)],{'useClass':K[_0x463c16(0x3b9)]}],[u[_0x463c16(0x2b4)],{'useClass':ve}],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[x],[ue],[exports[_0x463c16(0x2c4)]]];a['registerDependencies'](this[_0x463c16(0x1d9)],a[_0x463c16(0x2be)](_0x3a203a,(_0x5ed2b7=this[_0x463c16(0x34b)])==null?void 0x0:_0x5ed2b7[_0x463c16(0x3bd)]));}[_0xa70a6a(0x347)](){const _0x2ee86a=_0xa70a6a;this[_0x2ee86a(0x39d)](this[_0x2ee86a(0x20b)][_0x2ee86a(0x3cb)](a[_0x2ee86a(0x3be)][_0x2ee86a(0x316)],[fe])),this[_0x2ee86a(0x39d)](this[_0x2ee86a(0x20b)][_0x2ee86a(0x3cb)](a[_0x2ee86a(0x3be)][_0x2ee86a(0x1c8)],[Ie]));}[_0xa70a6a(0x3c8)](){const _0x823372=_0xa70a6a;a[_0x823372(0x389)](this['_injector'],[[x],[exports[_0x823372(0x33e)]],[Q],[q],[exports[_0x823372(0x2c4)]]]);}},Qt(exports[_0xa70a6a(0x361)],_0xa70a6a(0x159),es),exports['UniverCollaborationClientUIPlugin']=Zt([a['DependentOn'](u[_0xa70a6a(0x3ab)]),_e(0x1,p[_0xa70a6a(0x2ab)]),_e(0x2,a[_0xa70a6a(0x312)](a['Injector'])),_e(0x3,a['IConfigService'])],exports[_0xa70a6a(0x361)]);var ts=Object[_0xa70a6a(0x33d)],ss=(_0x50a0cb,_0x3ba6f3,_0xfd370b,_0xfbf16b)=>{const _0x5368a5=_0xa70a6a;for(var _0x578a87=_0xfbf16b>0x1?void 0x0:_0xfbf16b?ts(_0x3ba6f3,_0xfd370b):_0x3ba6f3,_0x41e012=_0x50a0cb[_0x5368a5(0x154)]-0x1,_0x2cc275;_0x41e012>=0x0;_0x41e012--)(_0x2cc275=_0x50a0cb[_0x41e012])&&(_0x578a87=_0x2cc275(_0x578a87)||_0x578a87);return _0x578a87;},H=(_0x1a6d37,_0x4fa0ff)=>(_0x1229e5,_0x36d0ae)=>_0x4fa0ff(_0x1229e5,_0x36d0ae,_0x1a6d37);exports[_0xa70a6a(0x3bc)]=class extends u[_0xa70a6a(0x350)]{constructor(_0x4caa13,_0x510c42,_0x1756a1,_0x582ced,_0x20264e){super(_0x4caa13,_0x510c42,_0x1756a1,_0x582ced,_0x20264e);}async['createSocket'](_0x19fbcb){const _0x2fe4a1=_0xa70a6a,_0x157933=await this[_0x2fe4a1(0x286)](),_0x39dfe8=this[_0x2fe4a1(0x271)](_0x19fbcb,_0x157933);return this[_0x2fe4a1(0x345)](_0x39dfe8);}[_0xa70a6a(0x271)](_0x4a4eb1,_0xddb15b){const _0xf2dbf5=_0xa70a6a,_0x241c12=typeof window>'u'?new URL(_0x4a4eb1):new URL(_0x4a4eb1,window[_0xf2dbf5(0x329)][_0xf2dbf5(0x2ac)]);_0x241c12['searchParams'][_0xf2dbf5(0x2d9)](_0xf2dbf5(0x1ab),_0xddb15b);const _0x271819=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xf2dbf5(0x329)]['search']);return _0x271819[_0xf2dbf5(0x258)]('runId')&&_0x241c12[_0xf2dbf5(0x2ea)][_0xf2dbf5(0x2d9)](_0xf2dbf5(0x16b),_0x271819[_0xf2dbf5(0x258)]('runId')),_0x241c12['toString']();}async[_0xa70a6a(0x286)](){const _0x301ad8=_0xa70a6a;var _0x4efcb2,_0x38d47e,_0xc9fd7b;const _0x4db8fc=this[_0x301ad8(0x225)]['getConfig'](u[_0x301ad8(0x1d3)]),_0x1f301c=(_0x4efcb2=_0x4db8fc==null?void 0x0:_0x4db8fc[_0x301ad8(0x224)])!=null?_0x4efcb2:u[_0x301ad8(0x2cc)];return(_0xc9fd7b=(_0x38d47e=(await this[_0x301ad8(0x38e)][_0x301ad8(0x258)](_0x1f301c,{'headers':{'Content-Type':_0x301ad8(0x2ff)}}))[_0x301ad8(0x199)])==null?void 0x0:_0x38d47e[_0x301ad8(0x366)])!=null?_0xc9fd7b:'';}},exports['BrowserCollaborationSocketService']=ss([H(0x0,a[_0xa70a6a(0x312)](a[_0xa70a6a(0x262)])),H(0x1,a[_0xa70a6a(0x312)](K[_0xa70a6a(0x198)])),H(0x2,a[_0xa70a6a(0x33c)]),H(0x3,a['ILogService']),H(0x4,m[_0xa70a6a(0x284)])],exports[_0xa70a6a(0x3bc)]);function _0x1cff(_0x4a10af,_0x31fb0f){const _0x287c00=_0x287c();return _0x1cff=function(_0x1cff58,_0x184e55){_0x1cff58=_0x1cff58-0x14e;let _0x51493c=_0x287c00[_0x1cff58];return _0x51493c;},_0x1cff(_0x4a10af,_0x31fb0f);}var Be=(_0xb53ac1=>(_0xb53ac1[_0xb53ac1[_0xa70a6a(0x2e6)]=0x0]='UNDEFINED',_0xb53ac1[_0xb53ac1['OK']=0x1]='OK',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x208)]=0x2]='INTERNAL_ERROR',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x369)]=0x3]=_0xa70a6a(0x369),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x19b)]=0x4]=_0xa70a6a(0x19b),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x14f)]=0x5]=_0xa70a6a(0x14f),_0xb53ac1[_0xb53ac1['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x2cf)]=0x7]='INVALID_ARGUMENT',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x2f0)]=0x8]='TOO_MANY_REQUESTS',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x28c)]=0x9]=_0xa70a6a(0x28c),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x1a4)]=0xa]=_0xa70a6a(0x1a4),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x29d)]=0xb]=_0xa70a6a(0x29d),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x3ac)]=0xc]=_0xa70a6a(0x3ac),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x162)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x380)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0xb53ac1[_0xb53ac1['CHANGESET_REVISION_CONFILICT']=0x1389]=_0xa70a6a(0x32b),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x212)]=0x1771]=_0xa70a6a(0x212),_0xb53ac1[_0xb53ac1['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0xa70a6a(0x2a5),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x21f)]=0x1773]=_0xa70a6a(0x21f),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x2e0)]=0x1b59]=_0xa70a6a(0x2e0),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x2dc)]=0x1b5a]=_0xa70a6a(0x2dc),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x314)]=0x1b5b]=_0xa70a6a(0x314),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x391)]=0x1b5c]=_0xa70a6a(0x391),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x14e)]=0x1b5d]=_0xa70a6a(0x14e),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x1e5)]=0x1f41]=_0xa70a6a(0x1e5),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x337)]=0x2329]=_0xa70a6a(0x337),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x19f)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x2bb)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x297)]=0x232c]=_0xa70a6a(0x297),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x354)]=0x232d]=_0xa70a6a(0x354),_0xb53ac1[_0xb53ac1['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x1dd)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x20d)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x213)]=0x2714]=_0xa70a6a(0x213),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x398)]=0x271a]=_0xa70a6a(0x398),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x206)]=0x271b]=_0xa70a6a(0x206),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x1fb)]=0x271c]=_0xa70a6a(0x1fb),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x184)]=0x271d]=_0xa70a6a(0x184),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x2a0)]=0x271e]=_0xa70a6a(0x2a0),_0xb53ac1[_0xb53ac1['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x179)]=0x2720]=_0xa70a6a(0x179),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x285)]=0x2af9]=_0xa70a6a(0x285),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x26f)]=0x2ee1]=_0xa70a6a(0x26f),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x20f)]=0x2ee2]=_0xa70a6a(0x20f),_0xb53ac1[_0xb53ac1['INVITE_CODE_REQUIRED']=0x2ee3]=_0xa70a6a(0x1b2),_0xb53ac1[_0xb53ac1['USER_NOT_INVITED_CODE']=0x2ee4]=_0xa70a6a(0x27c),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x160)]=0x2ee5]=_0xa70a6a(0x160),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x388)]=0x32c9]=_0xa70a6a(0x388),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x153)]=0x32ca]=_0xa70a6a(0x153),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x268)]=0x32cb]=_0xa70a6a(0x268),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x246)]=-0x1]=_0xa70a6a(0x246),_0xb53ac1))(Be||{}),is=Object[_0xa70a6a(0x33d)],ns=(_0x15bfbf,_0x355e17,_0x226a86,_0x9ee58f)=>{const _0x3fe877=_0xa70a6a;for(var _0x52d6c5=_0x9ee58f>0x1?void 0x0:_0x9ee58f?is(_0x355e17,_0x226a86):_0x355e17,_0x245586=_0x15bfbf[_0x3fe877(0x154)]-0x1,_0x41ca7d;_0x245586>=0x0;_0x245586--)(_0x41ca7d=_0x15bfbf[_0x245586])&&(_0x52d6c5=_0x41ca7d(_0x52d6c5)||_0x52d6c5);return _0x52d6c5;},he=(_0xef1d68,_0x19b1cc)=>(_0x2e7c3a,_0x4bd849)=>_0x19b1cc(_0x2e7c3a,_0x4bd849,_0xef1d68);exports[_0xa70a6a(0x349)]=class extends a[_0xa70a6a(0x270)]{constructor(_0x23ec8e,_0x4816fd,_0x1ff73f){const _0x2261ec=_0xa70a6a;super(),this[_0x2261ec(0x26c)]=_0x23ec8e,this[_0x2261ec(0x38e)]=_0x4816fd,this['_configService']=_0x1ff73f;}async[_0xa70a6a(0x1c3)](_0x508e9c,_0x155be7,_0x27968e,..._0x39cd56){const _0x28b532=_0xa70a6a;var _0x3d549d,_0x57bbc1,_0x197ae5,_0x574266;const _0x2528a3=this[_0x28b532(0x26c)][_0x28b532(0x269)]();if(!_0x2528a3)throw new Error(_0x28b532(0x3b3));const _0x5f3248=((_0x3d549d=this[_0x28b532(0x225)][_0x28b532(0x342)](u[_0x28b532(0x3a1)]))!=null?_0x3d549d:u[_0x28b532(0x27e)])+'/'+_0x508e9c+'/run/'+_0x155be7,_0x5b94be=new URL(window[_0x28b532(0x329)][_0x28b532(0x30c)]),_0x47c1ef={'scriptId':_0x508e9c,'runId':(_0x57bbc1=_0x5b94be[_0x28b532(0x2ea)][_0x28b532(0x258)](_0x28b532(0x16b)))!=null?_0x57bbc1:'','function':_0x155be7,'unitId':_0x2528a3[_0x28b532(0x217)](),'argsOfFunction':JSON[_0x28b532(0x35e)](_0x39cd56),'invokeId':(_0x197ae5=_0x27968e['invokeId'])!=null?_0x197ae5:'','executionId':(_0x574266=_0x27968e[_0x28b532(0x15e)])!=null?_0x574266:''};try{const _0x342f5b=await this[_0x28b532(0x38e)]['post'](_0x5f3248,{'body':_0x47c1ef});return _0x342f5b['body'][_0x28b532(0x1c9)]&&_0x342f5b[_0x28b532(0x199)]['error'][_0x28b532(0x280)]!==Be['OK']?_0x28b532(0x348):_0x342f5b['body'][_0x28b532(0x344)];}catch{return _0x28b532(0x348);}}},exports[_0xa70a6a(0x349)]=ns([he(0x0,a[_0xa70a6a(0x313)]),he(0x1,a[_0xa70a6a(0x312)](K['HTTPService'])),he(0x2,a[_0xa70a6a(0x33c)])],exports[_0xa70a6a(0x349)]);const Me=0x7530,Le=_0xa70a6a(0x32e);class rs extends a[_0xa70a6a(0x270)]{constructor(){const _0x4b5287=_0xa70a6a;super(),h(this,_0x4b5287(0x230),a[_0x4b5287(0x39e)]()),h(this,_0x4b5287(0x19e),new Set()),h(this,_0x4b5287(0x292),new Map()),h(this,_0x4b5287(0x2f3),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x4b5287(0x187),new Map()),this[_0x4b5287(0x373)]();}[_0xa70a6a(0x37e)](){const _0x10ee73=_0xa70a6a;super[_0x10ee73(0x37e)](),this['_clearOtherTimers'][_0x10ee73(0x1d1)]((_0x1c1ada,_0x4311a4)=>this['_removeClearOtherTimer'](_0x4311a4)),this[_0x10ee73(0x2f3)]&&window[_0x10ee73(0x365)](this[_0x10ee73(0x2f3)]);}[_0xa70a6a(0x207)](_0x45f430){const _0xd0d754=_0xa70a6a;return this[_0xd0d754(0x210)](_0x45f430)[_0xd0d754(0x28e)](d[_0xd0d754(0x22c)]());}[_0xa70a6a(0x383)](_0x358016){const _0xd14f85=_0xa70a6a;this[_0xd14f85(0x19e)][_0xd14f85(0x237)]===0x0&&this[_0xd14f85(0x2eb)](),this[_0xd14f85(0x19e)][_0xd14f85(0x228)](_0x358016),this[_0xd14f85(0x1ce)]({'type':0x0,'memberID':this[_0xd14f85(0x230)],'unitIDs':[_0x358016],'isForwarded':!0x1});}[_0xa70a6a(0x25e)](_0x549fb8){const _0x225ef4=_0xa70a6a;this['_selfUnitIDs'][_0x225ef4(0x15d)](_0x549fb8),this[_0x225ef4(0x19e)][_0x225ef4(0x237)]===0x0&&this[_0x225ef4(0x2f3)]&&window[_0x225ef4(0x365)](this[_0x225ef4(0x2f3)]);}[_0xa70a6a(0x373)](){const _0x19fde4=_0xa70a6a;this[_0x19fde4(0x39d)](a[_0x19fde4(0x16a)](d['fromEvent'](window,'storage')[_0x19fde4(0x236)](_0x379652=>{const _0x2a3ca0=_0x19fde4;if(_0x379652[_0x2a3ca0(0x21e)]!==Le||!_0x379652[_0x2a3ca0(0x3bf)])return;const _0xf83177=JSON[_0x2a3ca0(0x205)](_0x379652[_0x2a3ca0(0x3bf)]);this[_0x2a3ca0(0x2c5)](_0xf83177);}))),window['addEventListener'](_0x19fde4(0x37c),()=>this[_0x19fde4(0x1ce)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x19fde4(0x2c9)](this[_0x19fde4(0x19e)])}));}[_0xa70a6a(0x2c5)](_0x6635ce){const _0x1ec3ce=_0xa70a6a;switch(_0x6635ce[_0x1ec3ce(0x221)]){case 0x0:this[_0x1ec3ce(0x29e)](_0x6635ce);break;case 0x1:this[_0x1ec3ce(0x181)](_0x6635ce);break;case 0x2:this[_0x1ec3ce(0x2b3)](_0x6635ce);break;}}[_0xa70a6a(0x29e)](_0x53b62a){const _0x1efb88=_0xa70a6a,{unitIDs:_0x14163b,memberID:_0x4113a9,isForwarded:_0x540f8b}=_0x53b62a;_0x14163b[_0x1efb88(0x1d1)](_0x59bd2a=>{const _0x214856=_0x1efb88;if(!_0x540f8b&&this[_0x214856(0x292)][_0x214856(0x2b6)](_0x59bd2a)&&this[_0x214856(0x210)](_0x59bd2a)['next'](u[_0x214856(0x1f9)][_0x214856(0x1bd)]),!this[_0x214856(0x292)]['has'](_0x59bd2a)||!this[_0x214856(0x292)][_0x214856(0x258)](_0x59bd2a)[_0x214856(0x2b6)](_0x4113a9)){const _0x4373d9=this[_0x214856(0x292)]['get'](_0x59bd2a)||new Set();_0x4373d9['add'](_0x4113a9),this[_0x214856(0x292)]['set'](_0x59bd2a,_0x4373d9),this['_scheduleClearOtherTimer'](_0x4113a9);}}),_0x540f8b||this['_send']({'type':0x0,'memberID':this[_0x1efb88(0x230)],'unitIDs':[...this[_0x1efb88(0x19e)]],'isForwarded':!0x0});}[_0xa70a6a(0x320)](_0x1817ef){const _0x4be804=_0xa70a6a;this[_0x4be804(0x20e)](_0x1817ef);const _0x4b59e1=window[_0x4be804(0x183)](()=>{const _0x12985d=_0x4be804;this['_unitOnClients'][_0x12985d(0x1d1)](_0x40a25b=>{const _0x35e585=_0x12985d;_0x40a25b[_0x35e585(0x15d)](_0x1817ef);});},Me*0x2);this[_0x4be804(0x216)][_0x4be804(0x2d9)](_0x1817ef,_0x4b59e1);}[_0xa70a6a(0x20e)](_0x38ed00){const _0xde182a=_0xa70a6a;if(this[_0xde182a(0x216)]['has'](_0x38ed00)){const _0x579696=this[_0xde182a(0x216)][_0xde182a(0x258)](_0x38ed00);_0x579696&&window[_0xde182a(0x2ba)](_0x579696),this[_0xde182a(0x216)][_0xde182a(0x2d9)](_0x38ed00,null);}}['_handleLeaveEvent'](_0xa65036){const _0x5c95ab=_0xa70a6a,{memberID:_0x56fa50,unitIDs:_0x5f3158}=_0xa65036;_0x5f3158[_0x5c95ab(0x1d1)](_0x41a5b8=>{const _0xff7271=_0x5c95ab;var _0x345227;const _0x499fa1=this[_0xff7271(0x292)][_0xff7271(0x258)](_0x41a5b8);_0x499fa1&&(_0x499fa1[_0xff7271(0x15d)](_0x56fa50),(_0x345227=this[_0xff7271(0x210)](_0x41a5b8))==null||_0x345227[_0xff7271(0x1b3)](_0x499fa1[_0xff7271(0x237)]===0x0?u[_0xff7271(0x1f9)][_0xff7271(0x3cf)]:u['UnitStatus'][_0xff7271(0x1bd)]));}),this[_0x5c95ab(0x20e)](_0x56fa50);}[_0xa70a6a(0x2b3)](_0x3e0599){const _0x12eff1=_0xa70a6a;this['_scheduleClearOtherTimer'](_0x3e0599[_0x12eff1(0x2c8)]);}[_0xa70a6a(0x1ce)](_0x44d1e6){const _0x9f977e=_0xa70a6a;localStorage[_0x9f977e(0x294)](Le,JSON['stringify'](_0x44d1e6));}['_scheduleHeartbeat'](){const _0x1a6dc3=_0xa70a6a;this[_0x1a6dc3(0x2f3)]=window[_0x1a6dc3(0x36e)](()=>{const _0x4248dc=_0x1a6dc3;this['_send']({'type':0x2,'memberID':this[_0x4248dc(0x230)]});},Me);}[_0xa70a6a(0x210)](_0x354116){const _0x197211=_0xa70a6a;return this[_0x197211(0x187)][_0x197211(0x2b6)](_0x354116)||this[_0x197211(0x187)][_0x197211(0x2d9)](_0x354116,new d[(_0x197211(0x239))](u[_0x197211(0x1f9)][_0x197211(0x3cf)])),this[_0x197211(0x187)][_0x197211(0x258)](_0x354116);}}exports[_0xa70a6a(0x22e)]=me,exports['SheetCollabCursorShape']=$e,exports[_0xa70a6a(0x248)]=rs,exports[_0xa70a6a(0x2dd)]=xe;
|