@univerjs-pro/collaboration-client-ui 1.0.0-alpha.7 → 1.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.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/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.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-HK.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/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.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/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.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-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.css +1 -5
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.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/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/collab-cursor/board-collab-cursor-entity.d.ts +3 -3
- package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +2 -2
- package/lib/types/controllers/collab-cursor/slide-collab-cursor-entity.d.ts +3 -3
- package/lib/types/models/cursor.d.ts +0 -2
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.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/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.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-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +23 -22
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x180295=_0x1f19;(function(_0x12aeb3,_0x6ede53){const _0x5e8e3a=_0x1f19,_0x152a2f=_0x12aeb3();while(!![]){try{const _0x2e9292=parseInt(_0x5e8e3a(0x180))/0x1+parseInt(_0x5e8e3a(0x2e5))/0x2*(-parseInt(_0x5e8e3a(0x12c))/0x3)+parseInt(_0x5e8e3a(0x128))/0x4*(parseInt(_0x5e8e3a(0x202))/0x5)+parseInt(_0x5e8e3a(0x256))/0x6*(parseInt(_0x5e8e3a(0x350))/0x7)+parseInt(_0x5e8e3a(0x17d))/0x8*(-parseInt(_0x5e8e3a(0x34b))/0x9)+-parseInt(_0x5e8e3a(0xd3))/0xa+parseInt(_0x5e8e3a(0x21d))/0xb*(parseInt(_0x5e8e3a(0x268))/0xc);if(_0x2e9292===_0x6ede53)break;else _0x152a2f['push'](_0x152a2f['shift']());}catch(_0x53f525){_0x152a2f['push'](_0x152a2f['shift']());}}}(_0x163c,0x1bba1));import{BOARD_TOP_RIGHT_MENU_LEADING_PART as _0x23de8d,IBoardElementStateService as _0x529da1,getBoardElementRenderObjectKey as _0x303dee}from'@univerjs-pro/boards-ui';function _0x1f19(_0x43dc26,_0x240785){_0x43dc26=_0x43dc26-0xc9;const _0x163c03=_0x163c();let _0x1f19ca=_0x163c03[_0x43dc26];return _0x1f19ca;}import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0xe7c7ad,CollaborationController as _0x3ee1a3,CollaborationSessionService as _0x15d204,CollaborationSocketService as _0x376aca,CollaborationStatus as _0x59afca,CollaborationUIEventId as _0x27161e,CollaborationUIEventService as _0x1497f9,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x4ad282,DEFAULT_WS_SESSION_TICKET_URL as _0x1e71f8,DataLoaderService as _0x146d2a,DocCollaborationEntity as _0x1daa24,ILocalCacheService as _0x53bf61,LOCAL_CACHE_INTERVAL as _0x42b94b,LOCAL_CACHE_INTERVAL_KEY as _0x11f754,MemberService as _0x2482b2,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x4bfd76,SessionStatus as _0x2aa264,UnitStatus as _0x137032,UniverCollaborationClientPlugin as _0x2c8fa2,getLocalCacheKey as _0x742ec9}from'@univerjs-pro/collaboration-client';import{COLORS as _0xd02da4,CanceledError as _0x5154ab,ColorKit as _0x5f2d2c,DOC_RANGE_TYPE as _0x844c4,DependentOn as _0x5a661e,Disposable as _0x29f5c8,DisposableCollection as _0xd58489,ICommandService as _0xfdef4,IConfigService as _0x1e3991,IImageIoService as _0x143374,ILocalStorageService as _0x1bf959,ILogService as _0xe47834,IUniverInstanceService as _0x51fce4,Inject as _0x2c46ac,Injector as _0x1237ae,LocaleService as _0x1c14e4,Optional as _0x2dc2f1,Plugin as _0x4f4b2b,PluginService as _0x5e3584,Rectangle as _0x3fdb1e,RxDisposable as _0x4301ed,ThemeService as _0x3f5e9f,Tools as _0x2d178b,UniverInstanceType as _0x56bd01,Workbook as _0x8c16fd,createIdentifier as _0x5d25db,debounce as _0x3e837e,fromEventSubject as _0x5b73b0,generateRandomId as _0x3046d0,isFormulaId as _0x403937,isFormulaString as _0x343da5,isInternalEditorID as _0x415985,merge as _0x12955b,mergeOverrideWithDependencies as _0x23016b,registerDependencies as _0x201624,toDisposable as _0x2b809e,touchDependencies as _0x2ade29}from'@univerjs/core';import{BuiltInUIPart as _0x24e304,IBeforeCloseService as _0x58139c,IMessageService as _0xcfc953,INotificationService as _0x189f65,IShortcutService as _0x3cd818,IUIPartsService as _0x12b2df,connectInjector as _0x1f3cf8,useDependency as _0x5e663a,useObservable as _0x199906}from'@univerjs/ui';import{BehaviorSubject as _0xca67ac,Subject as _0x29fc1a,combineLatest as _0xe474ec,debounceTime as _0x525b2f,distinctUntilChanged as _0x1acc9b,filter as _0x4064b7,fromEvent as _0x244599,mapTo as _0x188ea1,merge as _0x5b1b0a,of as _0x3d882f,shareReplay as _0x33d5d5,switchMap as _0xee390b,takeUntil as _0x323499}from'rxjs';import{distinctUntilChanged as _0x20eee9,filter as _0x660a28,map as _0x9d1f39,switchMap as _0x316170,takeUntil as _0x1ba4d0,throttleTime as _0xc4bc12}from'rxjs/operators';import{Button as _0x3024f7,MessageType as _0x211eee,Tooltip as _0x3e942f,clsx as _0x4d0eea}from'@univerjs/design';import{LoadingMultiIcon as _0x25bd06,OffLineIcon as _0x34b9c1,OnLineIcon as _0x419cfd,WarningIcon as _0x562a85}from'@univerjs/icons';import{createElement as _0x4edf11,useCallback as _0x1281ed,useMemo as _0x1ea95d}from'react';import{Fragment as _0xd0f0a5,jsx as _0x485da0,jsxs as _0x5b03b8}from'react/jsx-runtime';import{IRenderManagerService as _0x42ba88,Rect as _0x3eb209,RegularPolygon as _0x3d0880,SHEET_VIEWPORT_KEY as _0x1c50ba,Shape as _0xe5b994,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x2ab8d7,Vector2 as _0x2b6913,getColor as _0x476b84}from'@univerjs/engine-render';import{HTTPService as _0x5ebf20,ISocketService as _0x5d1429,WebSocketService as _0x2fc76f}from'@univerjs/network';import{DocIMEInputManagerService as _0x44ab6d,IDocClipboardService as _0x2090df,NodePositionConvertToCursor as _0x4792c3,NodePositionConvertToRectRange as _0x54d53d,SetDocZoomRatioOperation as _0x166c31,TEXT_RANGE_LAYER_INDEX as _0x4420aa}from'@univerjs/docs-ui';import{CollaborationEvent as _0x2b7202,ISnapshotServerService as _0x830088,ITransformService as _0x2e253c,RevisionService as _0x73dd5c,SnapshotLoadStage as _0x26ace9,SnapshotLoadingService as _0x112286,isTransformMutationFailure as _0x154fb1,isTransformMutationsWithChangesetSuccess as _0xd7d825}from'@univerjs-pro/collaboration';import{DocSelectionManagerService as _0x326801,DocSkeletonManagerService as _0x4b87eb,DocStateChangeManagerService as _0x1c2025,RichTextEditingMutation as _0x52d8ce,SetTextSelectionsOperation as _0x507013}from'@univerjs/docs';import{FormulaExecuteStageType as _0x9743e5,FormulaExecutedStateType as _0x5f12f1,SetFormulaCalculationNotificationMutation as _0x60e275,SetFormulaCalculationStartMutation as _0x5c5a39,deserializeRangeWithSheet as _0x32ee33,serializeRangeWithSheet as _0xb92403}from'@univerjs/engine-formula';import{EffectRefRangId as _0x851581,RefRangeService as _0x148c68,SetSelectionsOperation as _0x103ced,SetWorksheetActivateCommand as _0x4541f8,SheetsSelectionsService as _0x1dec06,handleDeleteRangeMoveLeft as _0x1a77c6,handleDeleteRangeMoveUp as _0x1e912a,handleIRemoveCol as _0x384681,handleIRemoveRow as _0x1755f0,handleInsertCol as _0x1e885c,handleInsertRangeMoveDown as _0x5d963b,handleInsertRangeMoveRight as _0x561865,handleInsertRow as _0x2ddeb5,handleMoveRange as _0x4b2cc0,runRefRangeMutations as _0x51c35a}from'@univerjs/sheets';import{ISlideDrawingStateService as _0x5a16f6,buildDrawingOKey as _0x6503d5}from'@univerjs-pro/slides-ui';import{ISheetLoadingRenderService as _0x15fbe5,SheetSkeletonManagerService as _0x4d3808,getCoordByCell as _0x4d9c15,getSheetObject as _0x24bbf6}from'@univerjs/sheets-ui';import{IRemoteInstanceService as _0x4a164d}from'@univerjs/rpc';import{ErrorCode as _0x3cd106}from'@univerjs/protocol';function cn(_0x23a75a){const _0x4e85a5=_0x1f19;switch(_0x23a75a){case _0x59afca['OFFLINE']:return{'icon':_0x485da0(_0x34b9c1,{}),'colorClass':_0x4e85a5(0xf6),'i18nKey':_0x4e85a5(0xe2),'tooltipKey':_0x4e85a5(0x21e),'clickable':!0x0,'indicator':'static'};case _0x59afca[_0x4e85a5(0x100)]:return{'icon':_0x485da0(_0x34b9c1,{}),'colorClass':_0x4e85a5(0x2fe),'i18nKey':'collaboration-client-ui.collabStatus.conflict','clickable':!0x1,'indicator':_0x4e85a5(0xd5)};case _0x59afca[_0x4e85a5(0x2f9)]:return{'icon':_0x485da0(_0x25bd06,{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.fetchMiss','clickable':!0x1,'indicator':_0x4e85a5(0x210)};case _0x59afca[_0x4e85a5(0x1a5)]:return{'icon':_0x485da0(_0x419cfd,{}),'colorClass':_0x4e85a5(0x1f2),'i18nKey':_0x4e85a5(0x1c6),'clickable':!0x1,'indicator':'static'};case _0x59afca[_0x4e85a5(0x330)]:case _0x59afca['AWAITING_WITH_PENDING']:return{'icon':_0x485da0(_0x25bd06,{}),'colorClass':_0x4e85a5(0x280),'i18nKey':_0x4e85a5(0x2dd),'clickable':!0x1,'indicator':_0x4e85a5(0x210)};case _0x59afca[_0x4e85a5(0x318)]:return{'icon':_0x485da0(_0x25bd06,{}),'colorClass':_0x4e85a5(0x280),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x4e85a5(0x210)};case _0x59afca[_0x4e85a5(0x1f3)]:return{'icon':_0x485da0(_0x419cfd,{}),'colorClass':_0x4e85a5(0x168),'i18nKey':_0x4e85a5(0xee),'clickable':!0x1,'indicator':_0x4e85a5(0xd5)};}}function ln(_0x5e56f2){const _0x52bd96=_0x1f19;let {status$:_0x47901f}=_0x5e56f2,_0x3d6665=_0x199906(_0x47901f,_0x59afca[_0x52bd96(0x1a5)]),_0x2df69f=_0x5e663a(_0x1c14e4),_0x1d570f=_0x5e663a(_0x15d204),_0x7ba345=_0x1ea95d(()=>cn(_0x3d6665),[_0x3d6665]),_0x48e47e=_0x3d6665!==_0x59afca[_0x52bd96(0x276)],_0x21a318=_0x2df69f['t'](_0x7ba345[_0x52bd96(0x2f4)]),_0x49f890=_0x7ba345[_0x52bd96(0x2bb)]?_0x2df69f['t'](_0x7ba345['tooltipKey']):_0x21a318,_0x5c0943=_0x1281ed(()=>{const _0x12b986=_0x52bd96;_0x48e47e||_0x1d570f[_0x12b986(0x1f6)]();},[_0x48e47e,_0x1d570f]),_0x472cf8=_0x1281ed(_0x1e92ce=>{const _0x1c32ca=_0x52bd96;!_0x48e47e&&(_0x1e92ce[_0x1c32ca(0xfb)]===_0x1c32ca(0x106)||_0x1e92ce[_0x1c32ca(0xfb)]==='\x20')&&(_0x1e92ce[_0x1c32ca(0x329)](),_0x1d570f[_0x1c32ca(0x1f6)]());},[_0x48e47e,_0x1d570f]),_0x455f50=_0x485da0(_0x52bd96(0x365),{'className':_0x4d0eea(_0x52bd96(0x173),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x7ba345['colorClass'],{'univer-animate-spin':_0x7ba345[_0x52bd96(0x238)]===_0x52bd96(0x210),'univer-animate-pulse':_0x7ba345[_0x52bd96(0x238)]==='pulse'}),'aria-hidden':_0x52bd96(0x101),'children':_0x7ba345[_0x52bd96(0x260)]}),_0x37581b=_0x485da0(_0x52bd96(0x365),{'className':_0x4d0eea(_0x52bd96(0x173),'univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x52bd96(0x28d),_0x52bd96(0x11b),'dark:focus:!univer-ring-offset-gray-800',{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x7ba345[_0x52bd96(0x1e0)],'univer-cursor-default':!_0x7ba345[_0x52bd96(0x1e0)]}),'children':_0x455f50});return _0x7ba345[_0x52bd96(0x1e0)]?_0x485da0(_0x3e942f,{'title':_0x49f890,'placement':_0x52bd96(0x333),'children':_0x485da0('button',{'type':_0x52bd96(0x2b5),'onClick':_0x5c0943,'onKeyDown':_0x472cf8,'className':_0x4d0eea(_0x52bd96(0x217),_0x52bd96(0x18a),'univer-m-0\x20univer-p-0',_0x52bd96(0x305)),'aria-label':_0x21a318+_0x52bd96(0x345)+_0x49f890,'role':_0x52bd96(0x320),'aria-live':_0x52bd96(0xd6),'aria-atomic':_0x52bd96(0x101),'children':_0x37581b})}):_0x485da0(_0x3e942f,{'title':_0x49f890,'placement':_0x52bd96(0x333),'children':_0x485da0(_0x52bd96(0x1a0),{'className':_0x4d0eea('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x52bd96(0x18a),'univer-m-0\x20univer-p-0'),'aria-label':_0x21a318,'role':_0x52bd96(0x320),'aria-live':_0x52bd96(0xd6),'aria-atomic':_0x52bd96(0x101),'children':_0x37581b})});}function K(_0x193127){'@babel/helpers - typeof';const _0x52ed4f=_0x1f19;return K=typeof Symbol==_0x52ed4f(0x27c)&&typeof Symbol[_0x52ed4f(0x196)]==_0x52ed4f(0x2ef)?function(_0x500ddb){return typeof _0x500ddb;}:function(_0xdbc7c9){const _0x552c8c=_0x52ed4f;return _0xdbc7c9&&typeof Symbol==_0x552c8c(0x27c)&&_0xdbc7c9['constructor']===Symbol&&_0xdbc7c9!==Symbol[_0x552c8c(0x200)]?_0x552c8c(0x2ef):typeof _0xdbc7c9;},K(_0x193127);}function un(_0x2bf58d,_0x2429f2){const _0x5dec97=_0x1f19;if(K(_0x2bf58d)!='object'||!_0x2bf58d)return _0x2bf58d;var _0x21f3cb=_0x2bf58d[Symbol[_0x5dec97(0x149)]];if(_0x21f3cb!==void 0x0){var _0x4928ad=_0x21f3cb[_0x5dec97(0x2d8)](_0x2bf58d,_0x2429f2||_0x5dec97(0x1b7));if(K(_0x4928ad)!='object')return _0x4928ad;throw TypeError(_0x5dec97(0x227));}return(_0x2429f2===_0x5dec97(0x1e4)?String:Number)(_0x2bf58d);}function dn(_0x90b589){const _0x16f2b9=_0x1f19;var _0x258243=un(_0x90b589,'string');return K(_0x258243)==_0x16f2b9(0x2ef)?_0x258243:_0x258243+'';}function q(_0x2af93a,_0x5d4027,_0x19414d){const _0x17a697=_0x1f19;return(_0x5d4027=dn(_0x5d4027))in _0x2af93a?Object[_0x17a697(0x32f)](_0x2af93a,_0x5d4027,{'value':_0x19414d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2af93a[_0x5d4027]=_0x19414d,_0x2af93a;}function J(_0x33c84d,_0x35863e){return function(_0x1e156c,_0x2ab2d7){_0x35863e(_0x1e156c,_0x2ab2d7,_0x33c84d);};}function Y(_0x36718f,_0x58021e,_0xe954cd,_0x3cd0c1){const _0x2a498d=_0x1f19;var _0x1156dc=arguments[_0x2a498d(0x33b)],_0x4d9935=_0x1156dc<0x3?_0x58021e:_0x3cd0c1===null?_0x3cd0c1=Object[_0x2a498d(0x359)](_0x58021e,_0xe954cd):_0x3cd0c1,_0xed078b;if(typeof Reflect==_0x2a498d(0xe4)&&typeof Reflect[_0x2a498d(0x2dc)]==_0x2a498d(0x27c))_0x4d9935=Reflect[_0x2a498d(0x2dc)](_0x36718f,_0x58021e,_0xe954cd,_0x3cd0c1);else{for(var _0x4cda1f=_0x36718f['length']-0x1;_0x4cda1f>=0x0;_0x4cda1f--)(_0xed078b=_0x36718f[_0x4cda1f])&&(_0x4d9935=(_0x1156dc<0x3?_0xed078b(_0x4d9935):_0x1156dc>0x3?_0xed078b(_0x58021e,_0xe954cd,_0x4d9935):_0xed078b(_0x58021e,_0xe954cd))||_0x4d9935);}return _0x1156dc>0x3&&_0x4d9935&&Object[_0x2a498d(0x32f)](_0x58021e,_0xe954cd,_0x4d9935),_0x4d9935;}let X=class extends _0x29f5c8{constructor(_0x2ef5aa,_0x1ecbfc,_0x32a67a,_0x58a003){const _0x4409f6=_0x1f19;super(),this[_0x4409f6(0x209)]=_0x2ef5aa,this['_injector']=_0x1ecbfc,this[_0x4409f6(0x2c7)]=_0x32a67a,this[_0x4409f6(0x109)]=_0x58a003,q(this,_0x4409f6(0x161),new _0xca67ac(_0x59afca[_0x4409f6(0x1a5)])),this[_0x4409f6(0x32d)](),this[_0x4409f6(0x176)]();}[_0x180295(0x176)](){const _0x589c5a=_0x180295;this[_0x589c5a(0x299)](_0x5b1b0a(this[_0x589c5a(0x209)][_0x589c5a(0x2bc)],this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x56bd01['UNIVER_DOC']),this[_0x589c5a(0x209)][_0x589c5a(0x363)](_0x56bd01['UNIVER_SHEET']))[_0x589c5a(0x24d)](_0x9d1f39(()=>pn(this[_0x589c5a(0x209)])),_0x20eee9(),_0xee390b(_0x43bf2c=>_0x43bf2c?this[_0x589c5a(0x2c7)]['getCollabEntity$'](_0x43bf2c):_0x3d882f(null)),_0xee390b(_0x4c410c=>_0x4c410c?_0x4c410c[_0x589c5a(0x2e2)]:_0x3d882f(_0x59afca['NOT_COLLAB'])))[_0x589c5a(0x25e)](_0x1f6bbe=>{const _0x5cc5cd=_0x589c5a;this[_0x5cc5cd(0x161)][_0x5cc5cd(0x11c)](_0x1f6bbe);}));}[_0x180295(0x32d)](){const _0x542a80=_0x180295;this['disposeWithMe'](this['_uiPartsService'][_0x542a80(0x2ec)](_0x24e304[_0x542a80(0x1e8)],()=>_0x1f3cf8(hn({'status$':this[_0x542a80(0x161)][_0x542a80(0x25d)]()}),this[_0x542a80(0x250)])));}};X=Y([J(0x0,_0x51fce4),J(0x1,_0x2c46ac(_0x1237ae)),J(0x2,_0x2c46ac(_0x3ee1a3)),J(0x3,_0x12b2df)],X);let fn=class extends _0x29f5c8{constructor(_0x4fb845,_0x4431a6,_0xc17aa5,_0x3e1984){const _0x46fc32=_0x180295;super(),this[_0x46fc32(0x209)]=_0x4fb845,this[_0x46fc32(0x250)]=_0x4431a6,this['_collaborationController']=_0xc17aa5,this[_0x46fc32(0x109)]=_0x3e1984,q(this,_0x46fc32(0x161),new _0xca67ac(_0x59afca[_0x46fc32(0x1a5)])),this['_initStatusComponent'](),this[_0x46fc32(0x176)]();}[_0x180295(0x176)](){const _0x37e0ab=_0x180295;this[_0x37e0ab(0x299)](_0x5b1b0a(_0x3d882f(null),this[_0x37e0ab(0x209)][_0x37e0ab(0x363)](_0x56bd01[_0x37e0ab(0x242)]))[_0x37e0ab(0x24d)](_0x9d1f39(()=>mn(this[_0x37e0ab(0x209)])),_0x20eee9(),_0xee390b(_0x17f8c7=>_0x17f8c7?this[_0x37e0ab(0x2c7)][_0x37e0ab(0x2b3)](_0x17f8c7):_0x3d882f(null)),_0xee390b(_0x74c989=>_0x74c989?_0x74c989[_0x37e0ab(0x2e2)]:_0x3d882f(_0x59afca[_0x37e0ab(0x1a5)])))[_0x37e0ab(0x25e)](_0x3d7df0=>{const _0xf0182e=_0x37e0ab;this[_0xf0182e(0x161)][_0xf0182e(0x11c)](_0x3d7df0);}));}[_0x180295(0x32d)](){const _0x28c425=_0x180295;this[_0x28c425(0x299)](this[_0x28c425(0x109)][_0x28c425(0x2ec)](_0x23de8d,()=>_0x1f3cf8(hn({'status$':this['_status$'][_0x28c425(0x25d)]()}),this['_injector'])));}};fn=Y([J(0x0,_0x51fce4),J(0x1,_0x2c46ac(_0x1237ae)),J(0x2,_0x2c46ac(_0x3ee1a3)),J(0x3,_0x12b2df)],fn);function pn(_0x472392){const _0x3d8c48=_0x180295;let _0x153771=_0x472392[_0x3d8c48(0x19c)](),_0x4c4532=_0x153771==null?void 0x0:_0x153771[_0x3d8c48(0x22b)]();if(_0x4c4532&&!_0x415985(_0x4c4532))return _0x4c4532;let _0x43a3c9=_0x472392[_0x3d8c48(0x303)](_0x56bd01['UNIVER_DOC']),_0x3588ad=_0x43a3c9==null?void 0x0:_0x43a3c9[_0x3d8c48(0x22b)]();if(_0x3588ad&&!_0x415985(_0x3588ad))return _0x3588ad;let _0x300499=_0x472392[_0x3d8c48(0x303)](_0x56bd01[_0x3d8c48(0x2a3)]);if(_0x300499)return _0x300499['getUnitId']();let _0x436f98=_0x472392['getAllUnitsForType'](_0x56bd01['UNIVER_DOC'])[_0x3d8c48(0x18f)](_0x14934e=>!_0x415985(_0x14934e['getUnitId']()));return _0x436f98?_0x436f98[_0x3d8c48(0x22b)]():null;}function mn(_0x215812){const _0x1d7840=_0x180295;var _0x19705f;let _0x36496a=_0x215812[_0x1d7840(0x303)](_0x56bd01[_0x1d7840(0x242)]);return(_0x19705f=_0x36496a==null?void 0x0:_0x36496a[_0x1d7840(0x22b)]())==null?null:_0x19705f;}function hn(_0x1e0d0d){let {status$:_0x4a6dd0}=_0x1e0d0d;return function(){return _0x485da0(ln,{'status$':_0x4a6dd0});};}var gn=_0x180295(0x182),_n=_0x180295(0x26f);const vn={};let yn=class extends _0x4301ed{constructor(_0x23f86d,_0x58a4f7){const _0x353851=_0x180295;super(),this[_0x353851(0x13d)]=_0x23f86d,this[_0x353851(0x34c)]=_0x58a4f7,this['_init']();}['_init'](){const _0x70b2f5=_0x180295;let _0x2420f2=this;this[_0x70b2f5(0x299)](this[_0x70b2f5(0x13d)][_0x70b2f5(0x351)]({'onBeforePasteImage':async _0x46f9b9=>{const _0x45d257=_0x70b2f5;let _0x24ab50=await _0x2420f2['_imageIoService'][_0x45d257(0x2ce)](_0x46f9b9);return _0x24ab50?{'source':_0x24ab50['source'],'imageSourceType':_0x24ab50[_0x45d257(0x1fd)]}:null;}}));}};yn=Y([J(0x0,_0x2090df),J(0x1,_0x143374)],yn);function bn(_0x2821e9,_0x4638cd){const _0x4b93f5=_0x180295;_0x2821e9[_0x4b93f5(0x19d)](),_0x2821e9[_0x4b93f5(0x354)]=_0x4b93f5(0x30c);let _0x2b6b11=_0x2821e9[_0x4b93f5(0x189)](_0x4638cd)['width'];return _0x2821e9[_0x4b93f5(0x162)](),Math['min'](_0x2b6b11+0x8,0xc8);}function xn(_0xda3e74,_0x39ccc8){const _0x33c191=_0x180295;var _0x19847a,_0x2db4a6,_0x4e566a;let {radius:_0x307b4c,width:_0x460533,height:_0x442c03}=_0x39ccc8;_0x307b4c=(_0x19847a=_0x307b4c)==null?0x0:_0x19847a,_0x460533=(_0x2db4a6=_0x460533)==null?0x1e:_0x2db4a6,_0x442c03=(_0x4e566a=_0x442c03)==null?0x1e:_0x4e566a;let _0x3a1a71=0x0,_0x503e83=0x0,_0x290378=0x0;_0x3a1a71=_0x503e83=_0x290378=Math[_0x33c191(0x14d)](_0x307b4c,_0x460533/0x2,_0x442c03/0x2),_0xda3e74['beginPath'](),_0xda3e74['moveTo'](_0x3a1a71,0x0),_0xda3e74[_0x33c191(0x2f5)](_0x460533-_0x503e83,0x0),_0xda3e74['arc'](_0x460533-_0x503e83,_0x503e83,_0x503e83,Math['PI']*0x3/0x2,0x0,!0x1),_0xda3e74['lineTo'](_0x460533,_0x442c03-_0x290378),_0xda3e74[_0x33c191(0x16e)](_0x460533-_0x290378,_0x442c03-_0x290378,_0x290378,0x0,Math['PI']/0x2,!0x1),_0xda3e74[_0x33c191(0x2f5)](0x0,_0x442c03),_0xda3e74[_0x33c191(0x2f5)](0x0,_0x3a1a71),_0xda3e74[_0x33c191(0x16e)](_0x3a1a71,_0x3a1a71,_0x3a1a71,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xda3e74[_0x33c191(0x1ae)](),_0x39ccc8[_0x33c191(0x223)]&&(_0xda3e74[_0x33c191(0x19d)](),_0xda3e74['fillStyle']=_0x39ccc8[_0x33c191(0x223)],_0x39ccc8[_0x33c191(0x2d6)]===_0x33c191(0x2c3)?_0xda3e74[_0x33c191(0x223)]('evenodd'):_0xda3e74[_0x33c191(0x223)](),_0xda3e74[_0x33c191(0x162)]());}var Sn=class e extends _0xe5b994{constructor(_0x1d513d,_0x1d0593){const _0x5631b5=_0x180295;super(_0x1d513d,_0x1d0593),q(this,'color',void 0x0),q(this,'text',void 0x0),this[_0x5631b5(0x205)]=_0x1d0593==null?void 0x0:_0x1d0593[_0x5631b5(0x205)],this[_0x5631b5(0x191)]=_0x1d0593==null?void 0x0:_0x1d0593[_0x5631b5(0x191)];}static[_0x180295(0x2ca)](_0x56dff6,_0x36fdee){const _0x5159d6=_0x180295;let {text:_0x5cc316,color:_0x53ff1c}=_0x36fdee;_0x56dff6[_0x5159d6(0x19d)](),_0x56dff6['font']=_0x5159d6(0x20a);let _0x1f602b=_0x56dff6['measureText'](_0x5cc316)[_0x5159d6(0x14f)];if(xn(_0x56dff6,{'height':0x14,'radius':0x4,'width':bn(_0x56dff6,_0x5cc316),'fill':_0x53ff1c,'evented':!0x1}),_0x56dff6[_0x5159d6(0xe6)]='#FFF',_0x1f602b>0xc0){let _0x5ccfa6='',_0x3bd693=0x0;for(let _0x3eb388 of _0x5cc316){let _0xfa57da=_0x56dff6[_0x5159d6(0x189)](_0x3eb388)[_0x5159d6(0x14f)];if(_0x3bd693+_0xfa57da<=0xc0-_0x56dff6[_0x5159d6(0x189)](_0x5159d6(0x117))[_0x5159d6(0x14f)])_0x5ccfa6+=_0x3eb388,_0x3bd693+=_0xfa57da;else{_0x5ccfa6+=_0x5159d6(0x117);break;}}_0x56dff6['fillText'](_0x5ccfa6,0x4,0xf);}else _0x56dff6[_0x5159d6(0x35c)](_0x5cc316,0x4,0xf);_0x56dff6[_0x5159d6(0x162)]();}[_0x180295(0x278)](_0x561a85){const _0x28beb0=_0x180295;e[_0x28beb0(0x2ca)](_0x561a85,this);}};const Cn=0x138a;var wn=class extends _0xe5b994{constructor(_0x489c2f,_0x1fda25){const _0x1977aa=_0x180295;super(_0x489c2f,{..._0x1fda25,'evented':!0x1}),q(this,'_color',_0x1977aa(0x257)),q(this,'_name',''),q(this,_0x1977aa(0x308),!0x0),_0x1fda25&&this['setShapeProps'](_0x1fda25);}['setShapeProps'](_0x2fb769){const _0x37f8ca=_0x180295;var _0x5c76a7,_0x48018e,_0x2dde62,_0x619238,_0x1ab0ae,_0x2092af,_0x56c3d5,_0x53da64;this[_0x37f8ca(0x147)]=(_0x5c76a7=_0x2fb769[_0x37f8ca(0x205)])==null?this[_0x37f8ca(0x147)]:_0x5c76a7,this[_0x37f8ca(0x225)]=(_0x48018e=_0x2fb769[_0x37f8ca(0x13f)])==null?this[_0x37f8ca(0x225)]:_0x48018e,this[_0x37f8ca(0x308)]=(_0x2dde62=_0x2fb769[_0x37f8ca(0x10d)])==null?this[_0x37f8ca(0x308)]:_0x2dde62,this['evented']=!0x1,this[_0x37f8ca(0x23c)]({'left':(_0x619238=_0x2fb769[_0x37f8ca(0xcf)])==null?this['left']:_0x619238,'top':(_0x1ab0ae=_0x2fb769[_0x37f8ca(0x1e1)])==null?this['top']:_0x1ab0ae,'width':(_0x2092af=_0x2fb769[_0x37f8ca(0x14f)])==null?this[_0x37f8ca(0x14f)]:_0x2092af,'height':(_0x56c3d5=_0x2fb769[_0x37f8ca(0x1a7)])==null?this[_0x37f8ca(0x1a7)]:_0x56c3d5,'angle':(_0x53da64=_0x2fb769[_0x37f8ca(0x29d)])==null?this[_0x37f8ca(0x29d)]:_0x53da64});}[_0x180295(0x278)](_0x4bd81f){const _0x28c442=_0x180295;_0x4bd81f[_0x28c442(0x19d)](),_0x4bd81f[_0x28c442(0x343)]=this['_color'],_0x4bd81f['lineWidth']=this[_0x28c442(0x261)]||1.5,_0x4bd81f[_0x28c442(0x2c2)]([0x6,0x4]),_0x4bd81f[_0x28c442(0x164)](0x0,0x0,this[_0x28c442(0x14f)],this[_0x28c442(0x1a7)]),_0x4bd81f[_0x28c442(0x162)](),this[_0x28c442(0x308)]&&(_0x4bd81f[_0x28c442(0x19d)](),_0x4bd81f[_0x28c442(0x2b8)](0x1,0x0,0x0,0x1,this['width'],-0x14),Sn[_0x28c442(0x2ca)](_0x4bd81f,{'text':this[_0x28c442(0x225)],'color':this[_0x28c442(0x147)]}),_0x4bd81f['restore']());}};const Tn=[_0x180295(0x15d),_0x180295(0x185),_0x180295(0x335),_0x180295(0x208),_0x180295(0xce),_0x180295(0x20e)];var Z=class extends _0x29f5c8{constructor(..._0x482db3){const _0x5f2d9b=_0x180295;super(..._0x482db3),q(this,_0x5f2d9b(0x224),new Map()),q(this,_0x5f2d9b(0x34d),0x0);}[_0x180295(0x184)](_0x1ea6ae){const _0x1f63b5=_0x180295;if(this[_0x1f63b5(0x224)][_0x1f63b5(0x2d3)](_0x1ea6ae))return this[_0x1f63b5(0x224)]['get'](_0x1ea6ae);let _0x21aa88=Tn[this[_0x1f63b5(0x34d)]];return this['_colorIndex']=(this[_0x1f63b5(0x34d)]+0x1)%Tn[_0x1f63b5(0x33b)],this[_0x1f63b5(0x224)][_0x1f63b5(0x285)](_0x1ea6ae,_0x21aa88),_0x21aa88;}};function En(_0xfabe85){const _0x147b6a=_0x180295;let _0x594f45;try{_0x594f45=JSON[_0x147b6a(0x1a9)](_0xfabe85);}catch{return null;}if(typeof _0x594f45!=_0x147b6a(0xe4)||!_0x594f45)return null;let _0x34c64a=_0x594f45;if(_0x34c64a[_0x147b6a(0x319)]!==_0x147b6a(0x1d7)||typeof _0x34c64a[_0x147b6a(0xd2)]!='string'||typeof _0x34c64a[_0x147b6a(0x234)]!=_0x147b6a(0x1e4))return null;let _0x40dbb7=Array[_0x147b6a(0x222)](_0x34c64a[_0x147b6a(0x1de)])?_0x34c64a[_0x147b6a(0x1de)][_0x147b6a(0xd9)](_0x37d2e0=>typeof _0x37d2e0==_0x147b6a(0x1e4)):[],_0x27a6eb=typeof _0x34c64a['focusedId']=='string'?_0x34c64a[_0x147b6a(0xf7)]:null;return{'kind':_0x147b6a(0x1d7),'unitId':_0x34c64a[_0x147b6a(0xd2)],'subUnitId':_0x34c64a['subUnitId'],'selectedIds':_0x40dbb7,'focusedId':_0x27a6eb};}let Dn=class extends _0x4301ed{get['cursorInfo'](){const _0x3e1f87=_0x180295;return this['_cursorInfo$'][_0x3e1f87(0x293)]();}get[_0x180295(0x201)](){return this['_roomMembers$']['getValue']();}constructor(_0x491d53,_0x2545d7,_0x3c2179,_0x394452,_0x369176){const _0x235656=_0x180295;super(),this['unitID']=_0x491d53,this[_0x235656(0x361)]=_0x2545d7,this['_colorAssignService']=_0x3c2179,this[_0x235656(0x1e9)]=_0x394452,this[_0x235656(0x2b0)]=_0x369176,q(this,_0x235656(0x156),!0x1),q(this,_0x235656(0x22c),!0x1),q(this,_0x235656(0x103),new _0xca67ac(new Map())),q(this,_0x235656(0x15c),this[_0x235656(0x103)][_0x235656(0x25d)]()),q(this,'_roomMembers$',new _0xca67ac([])),q(this,_0x235656(0x228),this[_0x235656(0x344)][_0x235656(0x24d)](_0x525b2f(0x12c))),q(this,_0x235656(0x1ca),_0x3e837e(_0x46b54c=>{const _0x29d1b5=_0x235656;let _0xae65d0=_0x46b54c[_0x29d1b5(0xfd)];if(!_0xae65d0||_0xae65d0[_0x29d1b5(0xd2)]!==this[_0x29d1b5(0x326)])return;let _0x5a88d0={'kind':_0x29d1b5(0x1d7),'unitId':_0xae65d0[_0x29d1b5(0xd2)],'subUnitId':_0xae65d0[_0x29d1b5(0x234)],'selectedIds':_0x46b54c[_0x29d1b5(0x1de)][_0x29d1b5(0xd9)](_0x36cd43=>typeof _0x36cd43==_0x29d1b5(0x1e4)),'focusedId':_0x46b54c[_0x29d1b5(0xf7)]},_0x45a573={'eventID':_0x2b7202[_0x29d1b5(0x339)],'data':{'unitID':this['unitID'],'memberID':this[_0x29d1b5(0x361)][_0x29d1b5(0x360)](),'selection':JSON['stringify'](_0x5a88d0)}};this[_0x29d1b5(0x361)][_0x29d1b5(0x171)](_0x45a573,this[_0x29d1b5(0x326)]);},0x64));}[_0x180295(0x1ed)](){const _0x4b5c38=_0x180295;super[_0x4b5c38(0x1ed)](),this[_0x4b5c38(0x103)][_0x4b5c38(0x11c)](new Map()),this[_0x4b5c38(0x103)]['complete'](),this['_roomMembers$']['next']([]),this['_roomMembers$']['complete']();}[_0x180295(0xfc)](){const _0x2dfb5a=_0x180295;this['_init']||(this['_init']=!0x0,this[_0x2dfb5a(0x361)][_0x2dfb5a(0xf3)][_0x2dfb5a(0x24d)](_0x323499(this[_0x2dfb5a(0x2e8)]))[_0x2dfb5a(0x25e)](_0x495045=>{const _0x19887b=_0x2dfb5a;_0x495045===_0x2aa264[_0x19887b(0x282)]?this[_0x19887b(0x14a)]():this[_0x19887b(0x160)]();}),this[_0x2dfb5a(0x361)][_0x2dfb5a(0x157)][_0x2dfb5a(0x24d)](_0x323499(this[_0x2dfb5a(0x2e8)]))[_0x2dfb5a(0x25e)](_0x3d06e5=>{const _0x19b314=_0x2dfb5a;let _0x3faa3a=_0x3d06e5[_0x19b314(0x1dc)];_0x3faa3a===_0x2b7202[_0x19b314(0x339)]&&this[_0x19b314(0x231)](_0x3d06e5),_0x3faa3a===_0x2b7202['USERS_LEAVE']&&this['_onCursorDelete'](_0x3d06e5);}),this[_0x2dfb5a(0x2b0)][_0x2dfb5a(0x141)][_0x2dfb5a(0x24d)](_0x323499(this[_0x2dfb5a(0x2e8)]))[_0x2dfb5a(0x25e)](_0x4cb03c=>{const _0x28250a=_0x2dfb5a;this[_0x28250a(0x156)]&&this[_0x28250a(0x1ca)](_0x4cb03c);}));}[_0x180295(0x231)](_0x2fef11){const _0x238800=_0x180295;var _0x41143a,_0x4580a8,_0x5c8014,_0x381bc1;let {memberID:_0x34957b,selection:_0x1e87ee}=_0x2fef11['data'];if(_0x34957b===((_0x41143a=(_0x4580a8=this[_0x238800(0x361)])[_0x238800(0x360)])==null?void 0x0:_0x41143a[_0x238800(0x2d8)](_0x4580a8)))return;let _0x576b17=En(_0x1e87ee);if(!_0x576b17||_0x576b17[_0x238800(0xd2)]!==this[_0x238800(0x326)])return;let _0x3aa616=(_0x5c8014=(_0x381bc1=this[_0x238800(0x1e9)][_0x238800(0x17a)](this[_0x238800(0x326)],_0x34957b))==null?void 0x0:_0x381bc1['name'])==null?_0x238800(0x1bb):_0x5c8014,_0x34f220={'color':this[_0x238800(0x26e)]['assignAColorForMemberID'](_0x34957b),'name':_0x3aa616,'unitId':_0x576b17[_0x238800(0xd2)],'subUnitId':_0x576b17[_0x238800(0x234)],'selectedIds':_0x576b17[_0x238800(0x1de)],'focusedId':_0x576b17[_0x238800(0xf7)],'selection':_0x1e87ee},_0xbc501a=new Map(this[_0x238800(0x298)]);_0xbc501a[_0x238800(0x285)](_0x34957b,_0x34f220),this[_0x238800(0x103)][_0x238800(0x11c)](_0xbc501a);}[_0x180295(0x15f)](_0x381252){const _0x156a9b=_0x180295;let {memberID:_0x3fc6c4}=_0x381252[_0x156a9b(0x2ba)],_0x54702b=new Map(this['cursorInfo']);_0x54702b['delete'](_0x3fc6c4),this[_0x156a9b(0x103)]['next'](_0x54702b);}[_0x180295(0x14a)](){const _0x4dc2aa=_0x180295;this[_0x4dc2aa(0x156)]=!0x0,this[_0x4dc2aa(0x1ca)](this[_0x4dc2aa(0x2b0)][_0x4dc2aa(0x107)]());}[_0x180295(0x160)](){const _0x533763=_0x180295;this[_0x533763(0x156)]=!0x1;}};Dn=Y([J(0x2,_0x2c46ac(Z)),J(0x3,_0x2c46ac(_0x2482b2)),J(0x4,_0x2c46ac(_0x529da1))],Dn);function On(_0x598940){const _0x22948d=_0x180295;let _0x57940c='';for(let _0x1745e9 of _0x598940){let {startOffset:_0x213810,endOffset:_0x54c2ec,isActive:_0x3f6b54,rangeType:_0x53a251,segmentId:_0x320df4,segmentPage:_0x19bc61}=_0x1745e9;_0x57940c[_0x22948d(0x33b)]&&(_0x57940c+=','),_0x57940c+=_0x213810+':'+_0x54c2ec+':'+(_0x3f6b54?'1':'0')+':'+_0x53a251+':'+_0x320df4+':'+_0x19bc61;}return _0x57940c;}function kn(_0x14dc40){const _0xb03740=_0x180295;let _0x2c2492=_0x14dc40['split'](','),_0x2a082c=[];for(let _0x158464 of _0x2c2492){let [_0xb9b407,_0x3e8656,_0xf61d38,_0x1757be,_0x382879,_0x6490a8]=_0x158464[_0xb03740(0x30b)](':');_0x2a082c[_0xb03740(0x312)]({'startOffset':Number(_0xb9b407),'endOffset':Number(_0x3e8656),'collapsed':_0xb9b407===_0x3e8656,'isActive':_0xf61d38==='1','rangeType':_0x1757be===_0x844c4[_0xb03740(0x194)]?_0x844c4['TEXT']:_0x844c4[_0xb03740(0x23a)],'segmentId':typeof _0x382879==_0xb03740(0x1e4)?String(_0x382879):'','segmentPage':Number(_0x6490a8==null?-0x1:_0x6490a8)});}return _0x2a082c[_0xb03740(0xef)](_0x1a52ae=>_0x1a52ae[_0xb03740(0xdb)])||(_0x2a082c[0x0]['isActive']=!0x0),_0x2a082c;}var An=class extends _0x4301ed{constructor(..._0x19bd68){const _0x22e726=_0x180295;super(..._0x19bd68),q(this,'_collabCursorState$',new _0xca67ac(null)),q(this,'collabCursorState$',this['_collabCursorState$'][_0x22e726(0x25d)]());}[_0x180295(0xfa)](_0x538952){let {unitID:_0x2c7e91,memberID:_0x46fd71,textRanges:_0x40c78b}=_0x538952,_0x3b952d=On(_0x40c78b);if(_0x3b952d==='')return;let _0x7d4385={'unitID':_0x2c7e91,'memberID':_0x46fd71,'selection':_0x3b952d};this['_collabCursorState$']['next'](_0x7d4385);}};let jn=class extends _0x4301ed{get['cursorInfo'](){const _0x3a1d94=_0x180295;return this['_cursorInfo$'][_0x3a1d94(0x293)]();}get[_0x180295(0x201)](){const _0x368dd5=_0x180295;return this[_0x368dd5(0x344)]['getValue']();}constructor(_0x15dd3a,_0x465d19,_0x460d20,_0x5981e5,_0xc29aa6,_0xa841dc,_0x410ba4,_0x61ad41,_0x4d7f5c){const _0x2e918a=_0x180295;super(),this[_0x2e918a(0x326)]=_0x15dd3a,this[_0x2e918a(0x361)]=_0x465d19,this[_0x2e918a(0x250)]=_0x460d20,this[_0x2e918a(0x26e)]=_0x5981e5,this[_0x2e918a(0x1e9)]=_0xc29aa6,this[_0x2e918a(0x21f)]=_0xa841dc,this[_0x2e918a(0x1c1)]=_0x410ba4,this[_0x2e918a(0x209)]=_0x61ad41,this[_0x2e918a(0xcc)]=_0x4d7f5c,q(this,_0x2e918a(0x156),!0x1),q(this,'_init',!0x1),q(this,_0x2e918a(0x103),new _0xca67ac(new Map())),q(this,'cursorInfo$',this['_cursorInfo$'][_0x2e918a(0x25d)]()),q(this,_0x2e918a(0x344),new _0xca67ac([])),q(this,'roomMembers$',this[_0x2e918a(0x344)][_0x2e918a(0x24d)](_0x525b2f(0x12c))),q(this,'_updateLocalCursor',_0x3e837e(_0x4522f3=>{const _0x46c9fc=_0x2e918a;let _0x3d8df5={'eventID':_0x2b7202[_0x46c9fc(0x339)],'data':{'unitID':this[_0x46c9fc(0x326)],'memberID':this[_0x46c9fc(0x361)][_0x46c9fc(0x360)](),'selection':On(_0x4522f3)}};this[_0x46c9fc(0x361)][_0x46c9fc(0x171)](_0x3d8df5,this['unitID']);},0x64));}[_0x180295(0x1ed)](){const _0x580b9a=_0x180295;super[_0x580b9a(0x1ed)](),this[_0x580b9a(0x103)][_0x580b9a(0x11c)](new Map()),this[_0x580b9a(0x103)][_0x580b9a(0x237)](),this[_0x580b9a(0x344)][_0x580b9a(0x11c)]([]),this[_0x580b9a(0x344)][_0x580b9a(0x237)]();}[_0x180295(0xfc)](){const _0xe60ed=_0x180295;this[_0xe60ed(0x22c)]||(this[_0xe60ed(0x22c)]=!0x0,this[_0xe60ed(0x361)]['sessionStatus$'][_0xe60ed(0x24d)](_0x323499(this['dispose$']))[_0xe60ed(0x25e)](_0x459430=>{const _0x75b562=_0xe60ed;_0x459430===_0x2aa264[_0x75b562(0x282)]?this['_toggleOnline']():this[_0x75b562(0x160)]();}),this[_0xe60ed(0x361)][_0xe60ed(0x157)][_0xe60ed(0x24d)](_0x323499(this[_0xe60ed(0x2e8)]))[_0xe60ed(0x25e)](_0x2676f8=>{const _0x99a4a5=_0xe60ed;let _0x4eb5ad=_0x2676f8[_0x99a4a5(0x1dc)];_0x4eb5ad===_0x2b7202[_0x99a4a5(0x339)]&&this['_onCursorUpdate'](_0x2676f8),_0x4eb5ad===_0x2b7202[_0x99a4a5(0xff)]&&this[_0x99a4a5(0x15f)](_0x2676f8);}),this[_0xe60ed(0x299)](this['_commandService'][_0xe60ed(0xc9)](_0x506f0d=>{const _0x50fd51=_0xe60ed;let _0xc5e42a=_0x506f0d[_0x50fd51(0xdc)];_0xc5e42a!=null&&this[_0x50fd51(0x156)]&&_0x506f0d['id']===_0x507013['id']&&_0xc5e42a[_0x50fd51(0xd2)]===this[_0x50fd51(0x326)]&&_0xc5e42a[_0x50fd51(0x1d3)]===!0x1&&_0xc5e42a[_0x50fd51(0xda)][_0x50fd51(0x33b)]>0x0&&this['_updateLocalCursor'](_0xc5e42a[_0x50fd51(0xda)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0xe60ed(0x24d)](_0x323499(this['dispose$']))['subscribe'](_0x2c02b8=>{const _0x2f9a46=_0xe60ed;if((_0x2c02b8==null?void 0x0:_0x2c02b8[_0x2f9a46(0x326)])!==this['unitID'])return;let _0x5858f3={'eventID':_0x2b7202[_0x2f9a46(0x339)],'data':_0x2c02b8};this['_onCursorUpdate'](_0x5858f3);}),this[_0xe60ed(0x299)](this[_0xe60ed(0xcc)][_0xe60ed(0xc9)](_0x48ab0d=>{const _0x7a9388=_0xe60ed;if(_0x48ab0d[_0x7a9388(0xdc)]==null)return;let _0x2397e2=_0x48ab0d[_0x7a9388(0xdc)];if(_0x48ab0d['id']!==_0x52d8ce['id']||_0x2397e2[_0x7a9388(0xd2)]!==this[_0x7a9388(0x326)])return;let _0x36358e={'id':_0x7a9388(0x1aa),'params':_0x2397e2},_0x791fe2=this[_0x7a9388(0x298)];for(let [_0x5aeeb2,_0x3be6c0]of _0x791fe2){let _0xde1082={'id':_0x7a9388(0x1aa),'params':{'unitId':this[_0x7a9388(0x326)],'actions':null,'textRanges':_0x3be6c0['ranges']}},_0x4bf693=this[_0x7a9388(0x1c1)][_0x7a9388(0xea)](_0x36358e,_0xde1082,!0x1);if(_0x154fb1(_0x4bf693))throw _0x4bf693[_0x7a9388(0x35d)];_0x791fe2[_0x7a9388(0x285)](_0x5aeeb2,{..._0x3be6c0,'ranges':_0x4bf693['m2Prime'][_0x7a9388(0xdc)]['textRanges']});}queueMicrotask(()=>{const _0xc268a=_0x7a9388;this['_cursorInfo$'][_0xc268a(0x11c)](_0x791fe2);});})));}[_0x180295(0x231)](_0x18634f){const _0x1d72f1=_0x180295;var _0x49ddc0,_0x42ff64;let {memberID:_0x24b1d3,selection:_0x170e4d}=_0x18634f['data'],_0x5c48e8=kn(_0x170e4d),_0x413e68=(_0x49ddc0=(_0x42ff64=this[_0x1d72f1(0x1e9)][_0x1d72f1(0x17a)](this[_0x1d72f1(0x326)],_0x24b1d3))==null?void 0x0:_0x42ff64[_0x1d72f1(0x13f)])==null?'Unknown\x20user':_0x49ddc0,_0x16d040={'color':this[_0x1d72f1(0x26e)][_0x1d72f1(0x184)](_0x24b1d3),'name':_0x413e68,'ranges':_0x5c48e8},_0x1b33cb=this['cursorInfo'];_0x1b33cb[_0x1d72f1(0x285)](_0x24b1d3,_0x16d040),this[_0x1d72f1(0x103)][_0x1d72f1(0x11c)](_0x1b33cb);}[_0x180295(0x15f)](_0x5200b4){const _0x2f5d4d=_0x180295;let {memberID:_0x4a6b6e}=_0x5200b4[_0x2f5d4d(0x2ba)],_0x1ac5d0=this['cursorInfo'];_0x1ac5d0[_0x2f5d4d(0x1fb)](_0x4a6b6e),this[_0x2f5d4d(0x103)][_0x2f5d4d(0x11c)](_0x1ac5d0);}[_0x180295(0x14a)](){const _0x3c1c5f=_0x180295;var _0x4cdf91;if(this['_online']=!0x0,((_0x4cdf91=this[_0x3c1c5f(0x209)][_0x3c1c5f(0x19c)]())==null?void 0x0:_0x4cdf91['getUnitId']())!==this[_0x3c1c5f(0x326)])return;let _0x11575f=this[_0x3c1c5f(0x250)][_0x3c1c5f(0x19b)](_0x326801)['getDocRanges']();Array[_0x3c1c5f(0x222)](_0x11575f)&&_0x11575f[_0x3c1c5f(0x33b)]>0x0&&this['_updateLocalCursor'](_0x11575f);}[_0x180295(0x160)](){const _0x88ca82=_0x180295;this[_0x88ca82(0x156)]=!0x1;}};jn=Y([J(0x2,_0x2c46ac(_0x1237ae)),J(0x3,_0x2c46ac(Z)),J(0x4,_0x2c46ac(_0x2482b2)),J(0x5,_0x2c46ac(An)),J(0x6,_0x2e253c),J(0x7,_0x51fce4),J(0x8,_0xfdef4)],jn);const Mn=()=>{let _0xb7e62e=[],_0x478181=!0x1;return _0x4f431c=>{const _0x21c3f4=_0x1f19;_0xb7e62e[_0x21c3f4(0x312)](_0x4f431c),_0x478181||(_0x478181=!0x0,setTimeout(()=>{const _0x1e5309=_0x21c3f4;_0xb7e62e[_0x1e5309(0x1d0)](_0x327da6=>_0x327da6()),_0xb7e62e=[],_0x478181=!0x1;}));};};let Nn=class extends _0x4301ed{get['cursorInfo'](){const _0x22a3bc=_0x180295;return this[_0x22a3bc(0x103)][_0x22a3bc(0x293)]();}get[_0x180295(0x201)](){const _0x39bb74=_0x180295;return this[_0x39bb74(0x344)][_0x39bb74(0x293)]();}constructor(_0x9b3927,_0x15e1a5,_0x17b4bf,_0x50eb99,_0x2288ec,_0xc363ac,_0x4b629e,_0x24ea49){const _0x4ee778=_0x180295;super(),this['unitID']=_0x9b3927,this['_session']=_0x15e1a5,this['_injector']=_0x17b4bf,this['_colorAssignService']=_0x50eb99,this['_memberService']=_0x2288ec,this['_univerInstanceService']=_0xc363ac,this[_0x4ee778(0xcc)]=_0x4b629e,this['_refRangeService']=_0x24ea49,q(this,_0x4ee778(0x156),!0x1),q(this,_0x4ee778(0x22c),!0x1),q(this,_0x4ee778(0x103),new _0xca67ac(new Map())),q(this,_0x4ee778(0x15c),this[_0x4ee778(0x103)][_0x4ee778(0x25d)]()),q(this,_0x4ee778(0x344),new _0xca67ac([])),q(this,_0x4ee778(0x228),this['_roomMembers$'][_0x4ee778(0x24d)](_0x525b2f(0x12c))),q(this,_0x4ee778(0x1ca),_0x3e837e((_0x245c80,_0x206b73)=>{const _0x500809=_0x4ee778;let _0x3bc7a9={'eventID':_0x2b7202[_0x500809(0x339)],'data':{'unitID':this[_0x500809(0x326)],'memberID':this[_0x500809(0x361)][_0x500809(0x360)](),'selection':_0xb92403(_0x245c80,_0x206b73[_0x500809(0x2e3)])}};this['_session'][_0x500809(0x171)](_0x3bc7a9,this[_0x500809(0x326)]);},0x64));}[_0x180295(0x1ed)](){const _0x2ffae8=_0x180295;super[_0x2ffae8(0x1ed)](),this[_0x2ffae8(0x103)][_0x2ffae8(0x11c)](new Map()),this['_cursorInfo$'][_0x2ffae8(0x237)](),this[_0x2ffae8(0x344)][_0x2ffae8(0x11c)]([]),this[_0x2ffae8(0x344)][_0x2ffae8(0x237)]();}[_0x180295(0xfc)](){const _0x54a776=_0x180295;this[_0x54a776(0x22c)]||(this['_init']=!0x0,this['_session'][_0x54a776(0xf3)]['pipe'](_0x323499(this[_0x54a776(0x2e8)]))['subscribe'](_0x3ca8e5=>{const _0x1aae1f=_0x54a776;_0x3ca8e5===_0x2aa264[_0x1aae1f(0x282)]?this['_toggleOnline']():this[_0x1aae1f(0x160)]();}),this[_0x54a776(0x361)]['event$']['pipe'](_0x323499(this[_0x54a776(0x2e8)]))[_0x54a776(0x25e)](_0x55d6ef=>{const _0x4613da=_0x54a776;let _0xfc26fa=_0x55d6ef[_0x4613da(0x1dc)];_0xfc26fa===_0x2b7202[_0x4613da(0x339)]&&this[_0x4613da(0x231)](_0x55d6ef),_0xfc26fa===_0x2b7202['USERS_LEAVE']&&this[_0x4613da(0x15f)](_0x55d6ef);}),this[_0x54a776(0x12d)](),this[_0x54a776(0x299)](this[_0x54a776(0xcc)][_0x54a776(0xc9)](_0x10bcc2=>{const _0x49bd9c=_0x54a776;if(this['_online']&&_0x10bcc2['id']===_0x103ced['id']&&_0x10bcc2[_0x49bd9c(0xdc)][_0x49bd9c(0xd2)]===this[_0x49bd9c(0x326)]){let _0x18a754=_0x10bcc2[_0x49bd9c(0xdc)];this[_0x49bd9c(0x1ca)](_0x18a754[_0x49bd9c(0x234)],_0x18a754[_0x49bd9c(0x2fc)][0x0]);}})));}[_0x180295(0x231)](_0x27f1d1){const _0x4f6418=_0x180295;var _0x3a525f,_0x21fa57;let {memberID:_0x4397b2,selection:_0x2681e2}=_0x27f1d1[_0x4f6418(0x2ba)],{sheetName:_0x4b8a14,range:_0x528c9e}=_0x32ee33(_0x2681e2),_0x6450c3={'name':(_0x3a525f=(_0x21fa57=this[_0x4f6418(0x1e9)][_0x4f6418(0x17a)](this[_0x4f6418(0x326)],_0x4397b2))==null?void 0x0:_0x21fa57[_0x4f6418(0x13f)])==null?_0x4f6418(0x1bb):_0x3a525f,'range':this[_0x4f6418(0x317)](_0x4b8a14,_0x528c9e),'sheetID':_0x4b8a14,'color':this[_0x4f6418(0x26e)][_0x4f6418(0x184)](_0x4397b2),'selection':_0x2681e2},_0x13c9ce=this['cursorInfo'];_0x13c9ce[_0x4f6418(0x285)](_0x4397b2,_0x6450c3),this[_0x4f6418(0x103)][_0x4f6418(0x11c)](_0x13c9ce);}['_onCursorDelete'](_0x5b07ab){const _0x5e77a1=_0x180295;let {memberID:_0x5d16da}=_0x5b07ab[_0x5e77a1(0x2ba)],_0x4dd0d7=this[_0x5e77a1(0x298)];_0x4dd0d7[_0x5e77a1(0x1fb)](_0x5d16da),this[_0x5e77a1(0x103)][_0x5e77a1(0x11c)](_0x4dd0d7);}[_0x180295(0x317)](_0x24be81,_0x119627){const _0x3caf50=_0x180295;var _0x432eb1;let _0x4407a5=(_0x432eb1=this[_0x3caf50(0x209)][_0x3caf50(0x2cb)](this['unitID']))==null||(_0x432eb1=_0x432eb1[_0x3caf50(0x367)](_0x24be81))==null?void 0x0:_0x432eb1[_0x3caf50(0x1e3)]();return(_0x4407a5==null?void 0x0:_0x4407a5[_0x3caf50(0x18f)](_0x4debc0=>_0x3fdb1e[_0x3caf50(0x167)](_0x4debc0,_0x119627)))||_0x119627;}[_0x180295(0x12d)](){const _0x1b9919=_0x180295;let _0x332ca6=new _0xd58489(),_0x5f5368=Mn(),_0x3b4ccf=()=>{const _0x1fcfea=_0x1f19;_0x332ca6[_0x1fcfea(0x1ed)]();let _0x366c2e=(_0x9e8ee9,_0x3d3473,_0xdb5af1,_0x399954)=>{const _0x1f08ce=_0x1fcfea;let _0x869de0=[];switch(_0x9e8ee9['id']){case _0x851581[_0x1f08ce(0x331)]:_0x869de0=_0x1a77c6(_0x9e8ee9,_0x399954);break;case _0x851581['DeleteRangeMoveUpCommandId']:_0x869de0=_0x1e912a(_0x9e8ee9,_0x399954);break;case _0x851581[_0x1f08ce(0x12a)]:_0x869de0=_0x1e885c(_0x9e8ee9,_0x399954);break;case _0x851581['InsertRangeMoveDownCommandId']:_0x869de0=_0x5d963b(_0x9e8ee9,_0x399954);break;case _0x851581[_0x1f08ce(0x127)]:_0x869de0=_0x561865(_0x9e8ee9,_0x399954);break;case _0x851581[_0x1f08ce(0x143)]:_0x869de0=_0x2ddeb5(_0x9e8ee9,_0x399954);break;case _0x851581[_0x1f08ce(0x1df)]:_0x869de0=_0x4b2cc0(_0x9e8ee9,_0x399954);break;case _0x851581[_0x1f08ce(0x17e)]:_0x869de0=_0x384681(_0x9e8ee9,_0x399954);break;case _0x851581[_0x1f08ce(0x263)]:_0x869de0=_0x1755f0(_0x9e8ee9,_0x399954);break;}let _0x1ac41a=_0x51c35a(_0x869de0,_0x399954),_0x14624b=this[_0x1f08ce(0x298)][_0x1f08ce(0x19b)](_0x3d3473);if(_0x14624b&&_0x1ac41a){let _0x3ee60f={..._0x14624b,'range':_0x1ac41a};this[_0x1f08ce(0x298)]['set'](_0x3d3473,_0x3ee60f),_0x5f5368(()=>{const _0x54524b=_0x1f08ce;let _0x2e31e9=this[_0x54524b(0x140)][_0x54524b(0x214)](_0x1ac41a,_0x15bca5=>(_0x2e31e9[_0x54524b(0x1ed)](),_0x366c2e(_0x15bca5,_0x3d3473,_0xdb5af1,_0x1ac41a)));_0x332ca6[_0x54524b(0xd8)](_0x2e31e9);});}return{'redos':[],'undos':[]};};this[_0x1fcfea(0x298)]['forEach']((_0x444b2b,_0xcff71b)=>{const _0xee163f=_0x1fcfea;let {range:_0x5c73a6,sheetID:_0x17f067}=_0x444b2b,_0x621ca2=this[_0xee163f(0x140)][_0xee163f(0x214)](_0x5c73a6,_0x4e1f33=>(_0x621ca2[_0xee163f(0x1ed)](),_0x366c2e(_0x4e1f33,_0xcff71b,_0x17f067,_0x5c73a6)));_0x332ca6[_0xee163f(0xd8)](_0x621ca2);});};this[_0x1b9919(0x299)](_0x2b809e(this['_cursorInfo$'][_0x1b9919(0x25e)](()=>{_0x3b4ccf();})));}[_0x180295(0x14a)](){const _0x1ace9f=_0x180295;var _0x2b4d17,_0x1e982b;if(this[_0x1ace9f(0x156)]=!0x0,((_0x2b4d17=this[_0x1ace9f(0x209)][_0x1ace9f(0x19c)]())==null?void 0x0:_0x2b4d17[_0x1ace9f(0x22b)]())!==this[_0x1ace9f(0x326)])return;let _0x177772=(_0x1e982b=this[_0x1ace9f(0x250)][_0x1ace9f(0x19b)](_0x1dec06)[_0x1ace9f(0xf8)]())==null?void 0x0:_0x1e982b[0x0],_0x338e65=this[_0x1ace9f(0x209)][_0x1ace9f(0x303)](_0x56bd01['UNIVER_SHEET'])['getActiveSheet']();_0x177772&&_0x338e65&&this[_0x1ace9f(0x1ca)](_0x338e65[_0x1ace9f(0x148)](),_0x177772);}[_0x180295(0x160)](){this['_online']=!0x1;}};Nn=Y([J(0x2,_0x2c46ac(_0x1237ae)),J(0x3,_0x2c46ac(Z)),J(0x4,_0x2c46ac(_0x2482b2)),J(0x5,_0x51fce4),J(0x6,_0xfdef4),J(0x7,_0x2c46ac(_0x148c68))],Nn);function Pn(_0x186a63){const _0x3c89d1=_0x180295;let _0x372707;try{_0x372707=JSON[_0x3c89d1(0x1a9)](_0x186a63);}catch{return null;}if(typeof _0x372707!='object'||!_0x372707)return null;let _0x28b03a=_0x372707;if(_0x28b03a[_0x3c89d1(0x319)]!==_0x3c89d1(0x2ee)||typeof _0x28b03a['unitId']!='string'||typeof _0x28b03a[_0x3c89d1(0x234)]!=_0x3c89d1(0x1e4))return null;let _0x32f925=Array['isArray'](_0x28b03a[_0x3c89d1(0x1de)])?_0x28b03a[_0x3c89d1(0x1de)][_0x3c89d1(0xd9)](_0x351928=>typeof _0x351928==_0x3c89d1(0x1e4)):[],_0x9ca6f8=typeof _0x28b03a['focusedId']==_0x3c89d1(0x1e4)?_0x28b03a[_0x3c89d1(0xf7)]:null;return{'kind':_0x3c89d1(0x2ee),'unitId':_0x28b03a[_0x3c89d1(0xd2)],'subUnitId':_0x28b03a[_0x3c89d1(0x234)],'selectedIds':_0x32f925,'focusedId':_0x9ca6f8};}let Fn=class extends _0x4301ed{get['cursorInfo'](){const _0x1c7d8a=_0x180295;return this['_cursorInfo$'][_0x1c7d8a(0x293)]();}get[_0x180295(0x201)](){const _0x457f87=_0x180295;return this[_0x457f87(0x344)][_0x457f87(0x293)]();}constructor(_0x5959d5,_0x505939,_0x3267d3,_0xe6d203,_0x4e3073){const _0x1aec36=_0x180295;super(),this[_0x1aec36(0x326)]=_0x5959d5,this[_0x1aec36(0x361)]=_0x505939,this[_0x1aec36(0x26e)]=_0x3267d3,this[_0x1aec36(0x1e9)]=_0xe6d203,this[_0x1aec36(0x2e6)]=_0x4e3073,q(this,'_online',!0x1),q(this,'_init',!0x1),q(this,_0x1aec36(0x103),new _0xca67ac(new Map())),q(this,_0x1aec36(0x15c),this[_0x1aec36(0x103)][_0x1aec36(0x25d)]()),q(this,_0x1aec36(0x344),new _0xca67ac([])),q(this,_0x1aec36(0x228),this[_0x1aec36(0x344)][_0x1aec36(0x24d)](_0x525b2f(0x12c))),q(this,'_updateLocalCursor',_0x3e837e(_0x1422a1=>{const _0x1ee078=_0x1aec36;let _0x20a26e=_0x1422a1[_0x1ee078(0xfd)];if(!_0x20a26e||_0x20a26e['unitId']!==this[_0x1ee078(0x326)])return;let _0x15fc16={'kind':_0x1ee078(0x2ee),'unitId':_0x20a26e[_0x1ee078(0xd2)],'subUnitId':_0x20a26e[_0x1ee078(0x234)],'selectedIds':_0x1422a1['selectedIds']['filter'](_0x35b1cc=>typeof _0x35b1cc==_0x1ee078(0x1e4)),'focusedId':_0x1422a1['focusedId']},_0x311064={'eventID':_0x2b7202[_0x1ee078(0x339)],'data':{'unitID':this[_0x1ee078(0x326)],'memberID':this[_0x1ee078(0x361)][_0x1ee078(0x360)](),'selection':JSON[_0x1ee078(0x247)](_0x15fc16)}};this['_session']['send'](_0x311064,this['unitID']);},0x64));}['dispose'](){const _0x2a0dbf=_0x180295;super[_0x2a0dbf(0x1ed)](),this[_0x2a0dbf(0x103)][_0x2a0dbf(0x11c)](new Map()),this[_0x2a0dbf(0x103)]['complete'](),this[_0x2a0dbf(0x344)]['next']([]),this[_0x2a0dbf(0x344)][_0x2a0dbf(0x237)]();}[_0x180295(0xfc)](){const _0x93b8ca=_0x180295;this[_0x93b8ca(0x22c)]||(this[_0x93b8ca(0x22c)]=!0x0,this[_0x93b8ca(0x361)]['sessionStatus$'][_0x93b8ca(0x24d)](_0x323499(this['dispose$']))[_0x93b8ca(0x25e)](_0x1ba287=>{const _0x102d80=_0x93b8ca;_0x1ba287===_0x2aa264['ONLINE']?this[_0x102d80(0x14a)]():this[_0x102d80(0x160)]();}),this['_session'][_0x93b8ca(0x157)][_0x93b8ca(0x24d)](_0x323499(this[_0x93b8ca(0x2e8)]))['subscribe'](_0x62ff=>{const _0x35a9d5=_0x93b8ca;let _0x31ca88=_0x62ff[_0x35a9d5(0x1dc)];_0x31ca88===_0x2b7202[_0x35a9d5(0x339)]&&this['_onCursorUpdate'](_0x62ff),_0x31ca88===_0x2b7202[_0x35a9d5(0xff)]&&this[_0x35a9d5(0x15f)](_0x62ff);}),this['_slideDrawingStateService'][_0x93b8ca(0x141)]['pipe'](_0x323499(this['dispose$']))['subscribe'](_0x3da12a=>{const _0x4d9a71=_0x93b8ca;this['_online']&&this[_0x4d9a71(0x1ca)](_0x3da12a);}));}[_0x180295(0x231)](_0x591c92){const _0x4e7f87=_0x180295;var _0x3ddeab,_0x1305de,_0x3be24f,_0x5b145e;let {memberID:_0x3665a2,selection:_0x1a3571}=_0x591c92['data'];if(_0x3665a2===((_0x3ddeab=(_0x1305de=this[_0x4e7f87(0x361)])[_0x4e7f87(0x360)])==null?void 0x0:_0x3ddeab[_0x4e7f87(0x2d8)](_0x1305de)))return;let _0x2ac037=Pn(_0x1a3571);if(!_0x2ac037||_0x2ac037[_0x4e7f87(0xd2)]!==this[_0x4e7f87(0x326)])return;let _0x129ce4=(_0x3be24f=(_0x5b145e=this[_0x4e7f87(0x1e9)][_0x4e7f87(0x17a)](this[_0x4e7f87(0x326)],_0x3665a2))==null?void 0x0:_0x5b145e['name'])==null?_0x4e7f87(0x1bb):_0x3be24f,_0x394374={'color':this[_0x4e7f87(0x26e)]['assignAColorForMemberID'](_0x3665a2),'name':_0x129ce4,'unitId':_0x2ac037['unitId'],'subUnitId':_0x2ac037[_0x4e7f87(0x234)],'selectedIds':_0x2ac037[_0x4e7f87(0x1de)],'focusedId':_0x2ac037[_0x4e7f87(0xf7)],'selection':_0x1a3571},_0x405e72=new Map(this[_0x4e7f87(0x298)]);_0x405e72['set'](_0x3665a2,_0x394374),this['_cursorInfo$'][_0x4e7f87(0x11c)](_0x405e72);}['_onCursorDelete'](_0x3fba50){const _0xf8883b=_0x180295;let {memberID:_0x3a6d7b}=_0x3fba50[_0xf8883b(0x2ba)],_0x1007e7=new Map(this[_0xf8883b(0x298)]);_0x1007e7['delete'](_0x3a6d7b),this[_0xf8883b(0x103)][_0xf8883b(0x11c)](_0x1007e7);}[_0x180295(0x14a)](){const _0x595026=_0x180295;this[_0x595026(0x156)]=!0x0,this[_0x595026(0x1ca)](this['_slideDrawingStateService'][_0x595026(0x107)]());}[_0x180295(0x160)](){const _0x4c0dfa=_0x180295;this[_0x4c0dfa(0x156)]=!0x1;}};Fn=Y([J(0x2,_0x2c46ac(Z)),J(0x3,_0x2c46ac(_0x2482b2)),J(0x4,_0x2c46ac(_0x5a16f6))],Fn);let Q=class extends _0x4301ed{constructor(_0x27f08e,_0x834010,_0x554d71){const _0x107aae=_0x180295;super(),this[_0x107aae(0x209)]=_0x27f08e,this['_injector']=_0x834010,this[_0x107aae(0x110)]=_0x554d71,q(this,_0x107aae(0x213),new Map()),q(this,_0x107aae(0x15b),new _0x29fc1a()),this[_0x107aae(0x22c)]();}['dispose'](){const _0x40d247=_0x180295;super['dispose'](),this['_entityInit$'][_0x40d247(0x237)](),this[_0x40d247(0x213)][_0x40d247(0x1d0)](_0x69f9a2=>_0x69f9a2[_0x40d247(0x1ed)]());}['getCollabCursors$'](_0x482036){const _0x1ed79f=_0x180295;return this[_0x1ed79f(0x213)]['has'](_0x482036)?this[_0x1ed79f(0x213)][_0x1ed79f(0x19b)](_0x482036)['cursorInfo$']:this[_0x1ed79f(0x15b)][_0x1ed79f(0x24d)](_0x4064b7(_0x24e8f5=>_0x24e8f5[_0x1ed79f(0x326)]===_0x482036),_0xee390b(_0x3db4dd=>_0x3db4dd[_0x1ed79f(0x15c)]));}[_0x180295(0x22c)](){const _0x4479a2=_0x180295;this[_0x4479a2(0x209)][_0x4479a2(0x2e0)](_0x56bd01['UNIVER_SHEET'])[_0x4479a2(0x24d)](_0x323499(this[_0x4479a2(0x2e8)]))[_0x4479a2(0x25e)](async _0x1a785f=>{const _0x48699c=_0x4479a2;let _0x5248fa=_0x1a785f[_0x48699c(0x15e)][_0x48699c(0x22b)](),_0x5efc82=await this['_startSheetCollabCursor'](_0x5248fa);this[_0x48699c(0x15b)][_0x48699c(0x11c)](_0x5efc82),this[_0x48699c(0x213)][_0x48699c(0x285)](_0x5248fa,_0x5efc82);}),this[_0x4479a2(0x209)]['getTypeOfUnitAdded$'](_0x56bd01[_0x4479a2(0x150)])[_0x4479a2(0x24d)](_0x323499(this['dispose$']))[_0x4479a2(0x24d)](_0x4064b7(_0x2f1d51=>!_0x2f1d51[_0x4479a2(0x15e)][_0x4479a2(0x22b)]()[_0x4479a2(0x10f)]('__')))[_0x4479a2(0x25e)](async _0x1f7ab8=>{const _0x54bedd=_0x4479a2;let {unit:_0x47f459}=_0x1f7ab8,_0x56e49f=_0x47f459[_0x54bedd(0x22b)](),_0x49808d=await this[_0x54bedd(0x2a0)](_0x56e49f);this['_entityInit$']['next'](_0x49808d),this[_0x54bedd(0x213)][_0x54bedd(0x285)](_0x56e49f,_0x49808d);}),this[_0x4479a2(0x209)][_0x4479a2(0x2e0)](_0x56bd01[_0x4479a2(0x13b)])['pipe'](_0x323499(this['dispose$']))[_0x4479a2(0x25e)](async _0x11916c=>{const _0x139063=_0x4479a2;let _0x460698=_0x11916c[_0x139063(0x15e)]['getUnitId'](),_0x305123=await this[_0x139063(0x259)](_0x460698);this[_0x139063(0x15b)][_0x139063(0x11c)](_0x305123),this[_0x139063(0x213)][_0x139063(0x285)](_0x460698,_0x305123);}),this[_0x4479a2(0x209)][_0x4479a2(0x2e0)](_0x56bd01[_0x4479a2(0x242)])[_0x4479a2(0x24d)](_0x323499(this[_0x4479a2(0x2e8)]))[_0x4479a2(0x25e)](async _0x174175=>{const _0x84b25d=_0x4479a2;let _0x120a57=_0x174175[_0x84b25d(0x15e)]['getUnitId'](),_0x42b788=await this[_0x84b25d(0x2d7)](_0x120a57);this[_0x84b25d(0x15b)][_0x84b25d(0x11c)](_0x42b788),this[_0x84b25d(0x213)][_0x84b25d(0x285)](_0x120a57,_0x42b788);}),_0x5b1b0a(this[_0x4479a2(0x209)][_0x4479a2(0x31c)](_0x56bd01[_0x4479a2(0x150)]),this['_univerInstanceService'][_0x4479a2(0x31c)](_0x56bd01[_0x4479a2(0x2a3)]),this[_0x4479a2(0x209)][_0x4479a2(0x31c)](_0x56bd01[_0x4479a2(0x13b)]),this[_0x4479a2(0x209)][_0x4479a2(0x31c)](_0x56bd01[_0x4479a2(0x242)]))[_0x4479a2(0x24d)](_0x323499(this[_0x4479a2(0x2e8)]))['subscribe'](_0x22ccb8=>{const _0x3dbbf3=_0x4479a2;let _0xd1b837=_0x22ccb8['getUnitId'](),_0x8d7ae5=this[_0x3dbbf3(0x213)][_0x3dbbf3(0x19b)](_0xd1b837);_0x8d7ae5&&(_0x8d7ae5['dispose'](),this[_0x3dbbf3(0x213)][_0x3dbbf3(0x1fb)](_0xd1b837));});}async[_0x180295(0x144)](_0xefd5ce){const _0x5f4446=_0x180295;let _0xa161bb=await this[_0x5f4446(0x110)]['requireSession'](_0xefd5ce),_0x25fe98=this['_injector']['createInstance'](Nn,_0xefd5ce,_0xa161bb);return _0x25fe98[_0x5f4446(0xfc)](),_0x25fe98;}async[_0x180295(0x2a0)](_0x3e5656){const _0x2cd812=_0x180295;let _0x4f563f=await this[_0x2cd812(0x110)][_0x2cd812(0x2bd)](_0x3e5656),_0x40ff42=this[_0x2cd812(0x250)][_0x2cd812(0x34e)](jn,_0x3e5656,_0x4f563f);return _0x40ff42['init'](),_0x40ff42;}async['_startSlideCollabCursor'](_0x4c039b){const _0x3a7535=_0x180295;let _0x59eda6=await this[_0x3a7535(0x110)]['requireSession'](_0x4c039b),_0x1008e6=this[_0x3a7535(0x250)]['createInstance'](Fn,_0x4c039b,_0x59eda6);return _0x1008e6[_0x3a7535(0xfc)](),_0x1008e6;}async[_0x180295(0x2d7)](_0x4e11da){const _0x1ddb35=_0x180295;let _0x346cd4=await this[_0x1ddb35(0x110)][_0x1ddb35(0x2bd)](_0x4e11da),_0x138209=this[_0x1ddb35(0x250)]['createInstance'](Dn,_0x4e11da,_0x346cd4);return _0x138209[_0x1ddb35(0xfc)](),_0x138209;}};Q=Y([J(0x0,_0x51fce4),J(0x1,_0x2c46ac(_0x1237ae)),J(0x2,_0x2c46ac(_0x15d204))],Q);let In=class extends _0x4301ed{constructor(_0x5bbc22,_0xb315fe,_0x19c63d){const _0x4495df=_0x180295;super(),this[_0x4495df(0x2ab)]=_0x5bbc22,this['_collabCursorController']=_0xb315fe,this[_0x4495df(0x281)]=_0x19c63d,q(this,_0x4495df(0x175),new Set()),q(this,_0x4495df(0x1bc),!0x1),q(this,_0x4495df(0x124),!0x1),q(this,'_latestCursors',new Map()),this[_0x4495df(0x22c)]();}[_0x180295(0x1ed)](){const _0x59a068=_0x180295;this[_0x59a068(0x27f)](),super[_0x59a068(0x1ed)]();}[_0x180295(0x22c)](){const _0x517431=_0x180295;let _0x3b4536=this[_0x517431(0x287)]['getCollabCursors$'](this[_0x517431(0x2ab)][_0x517431(0xd2)]);this[_0x517431(0x299)](_0x2b809e(_0xe474ec([_0x3b4536,this[_0x517431(0x2ab)][_0x517431(0x15e)][_0x517431(0xe7)],this['_themeService'][_0x517431(0x1a4)]])[_0x517431(0x24d)](_0x323499(this['dispose$']))[_0x517431(0x25e)](([_0xdcc158])=>{const _0x5d218d=_0x517431;let _0x1599e2=this[_0x5d218d(0x2ab)][_0x5d218d(0x15e)][_0x5d218d(0x32e)](),_0x1614bc=new Map();_0xdcc158['forEach']((_0x2537a1,_0x4ddfa0)=>{const _0x4e4fe0=_0x5d218d;_0x2537a1[_0x4e4fe0(0x234)]===_0x1599e2&&_0x1614bc[_0x4e4fe0(0x285)](_0x4ddfa0,{..._0x2537a1,'color':this[_0x4e4fe0(0x281)]['getColorFromTheme'](_0x2537a1['color'])});}),this['_latestCursors']=_0x1614bc,this[_0x5d218d(0x2ed)]();})));let _0x4ed897=this[_0x517431(0x2ab)][_0x517431(0x178)];this[_0x517431(0x299)](_0x2b809e(_0x4ed897[_0x517431(0x1cd)][_0x517431(0x24d)](_0x323499(this['dispose$']))[_0x517431(0x25e)](()=>{const _0x377889=_0x517431;this['_isApplyingOverlays']||this[_0x377889(0x2ed)]();})));}[_0x180295(0x2ed)](){const _0x4a71d8=_0x180295;this[_0x4a71d8(0x1bc)]||(this['_renderScheduled']=!0x0,Promise['resolve']()[_0x4a71d8(0x1ea)](()=>{const _0x106c92=_0x4a71d8;this[_0x106c92(0x1bc)]=!0x1,this[_0x106c92(0x324)]();}));}['_render'](){const _0x4adc52=_0x180295;this[_0x4adc52(0x27f)]();let _0x4380df=this[_0x4adc52(0x2ab)][_0x4adc52(0x15e)]['getActivePageId'](),_0x1b9e41=[];if(this[_0x4adc52(0x31a)][_0x4adc52(0x1d0)]((_0x4b4a44,_0x126f05)=>{const _0x55b7b5=_0x4adc52;_0x4b4a44['subUnitId']===_0x4380df&&_0x4b4a44[_0x55b7b5(0x1de)]['forEach'](_0x150be4=>{const _0x178011=_0x55b7b5;let _0x25315d=_0x303dee(_0x4b4a44[_0x178011(0xd2)],_0x150be4),_0x392d46=this[_0x178011(0x23b)](_0x25315d);if(!_0x392d46)return;let _0x357faf=this['_getObjectBounds'](_0x392d46);_0x1b9e41[_0x178011(0x312)](new wn(_0x178011(0x215)+_0x126f05+'-'+_0x150be4,{..._0x4b4a44,'left':_0x357faf['left'],'top':_0x357faf[_0x178011(0x1e1)],'width':_0x357faf[_0x178011(0x14f)],'height':_0x357faf['height'],'angle':_0x392d46[_0x178011(0x29d)],'evented':!0x1,'zIndex':Cn}));});}),_0x1b9e41[_0x4adc52(0x33b)]===0x0){this[_0x4adc52(0x2ab)][_0x4adc52(0x178)][_0x4adc52(0x315)](!0x0);return;}this['_isApplyingOverlays']=!0x0,this[_0x4adc52(0x2ab)][_0x4adc52(0x178)]['addObjects'](_0x1b9e41,Cn),this['_isApplyingOverlays']=!0x1,this[_0x4adc52(0x175)]=new Set(_0x1b9e41),this['_context'][_0x4adc52(0x178)][_0x4adc52(0x315)](!0x0);}[_0x180295(0x27f)](){const _0x5567b2=_0x180295;let _0x15bb48=Array[_0x5567b2(0x1a1)](this[_0x5567b2(0x175)]);if(_0x15bb48[_0x5567b2(0x33b)]===0x0)return;let _0x295a1e=this['_context']['scene'];_0x5567b2(0x130)in _0x295a1e&&typeof _0x295a1e[_0x5567b2(0x130)]=='function'?_0x295a1e[_0x5567b2(0x130)](_0x15bb48):_0x15bb48[_0x5567b2(0x1d0)](_0x20dba5=>{const _0x4e084a=_0x5567b2;_0x4e084a(0x1ef)in _0x295a1e&&typeof _0x295a1e[_0x4e084a(0x1ef)]=='function'?_0x295a1e[_0x4e084a(0x1ef)](_0x20dba5):_0x20dba5['dispose']();}),this[_0x5567b2(0x175)][_0x5567b2(0x2df)](),_0x295a1e['makeDirty'](!0x0);}[_0x180295(0x23b)](_0x33e99a){const _0x40dfb7=_0x180295;var _0xed6194,_0x200feb,_0x2eabf5;let _0x3bb012=this[_0x40dfb7(0x2ab)]['scene'];return(_0xed6194=(_0x200feb=(_0x2eabf5=_0x3bb012[_0x40dfb7(0xf1)])==null?void 0x0:_0x2eabf5[_0x40dfb7(0x2d8)](_0x3bb012,_0x33e99a))==null?_0x3bb012['getObject'](_0x33e99a):_0x200feb)==null?null:_0xed6194;}[_0x180295(0x1a3)](_0x584f20){const _0x554976=_0x180295;var _0x4fb26d,_0x371c34;let _0x48746c=_0x584f20;return(_0x4fb26d=(_0x371c34=_0x48746c[_0x554976(0x248)])==null?void 0x0:_0x371c34['call'](_0x48746c))==null?{'left':_0x584f20[_0x554976(0xcf)],'top':_0x584f20[_0x554976(0x1e1)],'width':_0x584f20['width'],'height':_0x584f20[_0x554976(0x1a7)]}:_0x4fb26d;}};In=Y([J(0x1,_0x2c46ac(Q)),J(0x2,_0x2c46ac(_0x3f5e9f))],In);const Ln=_0x180295(0x277);var Rn=class{constructor(_0x1a1912,_0x38671d,_0x1a5734,_0x30a97f){const _0x212ede=_0x180295;this[_0x212ede(0x1af)]=_0x1a1912,this[_0x212ede(0x2bf)]=_0x38671d,this['_docSkeleton']=_0x1a5734,this[_0x212ede(0x2ac)]=_0x30a97f,q(this,_0x212ede(0x229),[]),q(this,_0x212ede(0x29c),null),q(this,'_textBubble',null),q(this,_0x212ede(0x322),null),q(this,_0x212ede(0x114),null),q(this,_0x212ede(0x151),null),this[_0x212ede(0x324)]();}set[_0x180295(0x2e4)](_0x5dc3af){const _0x100803=_0x180295;_0x5dc3af?(this[_0x100803(0x322)]&&this[_0x100803(0x322)]['hide'](),this[_0x100803(0x11f)]&&this[_0x100803(0x11f)][_0x100803(0x108)]()):(this[_0x100803(0x322)]&&this[_0x100803(0x322)][_0x100803(0x108)](),this['_textBubble']&&this[_0x100803(0x11f)][_0x100803(0xec)]());}[_0x180295(0x1ed)](){const _0x2fe304=_0x180295;for(let _0x4f042d of this['_shapes'])_0x4f042d['dispose']();this[_0x2fe304(0x11f)]&&this[_0x2fe304(0x11f)][_0x2fe304(0x1ed)](),this[_0x2fe304(0x322)]&&this[_0x2fe304(0x322)]['dispose'](),this[_0x2fe304(0x29c)]&&this[_0x2fe304(0x29c)][_0x2fe304(0x1ed)](),this[_0x2fe304(0x151)]&&this[_0x2fe304(0x151)]();}[_0x180295(0x324)](){const _0x4f3424=_0x180295;let {_docSkeleton:_0x4ef59f,_document:_0x28b834}=this,{color:_0x211a81,name:_0x5e6dc7,ranges:_0x166e16}=this[_0x4f3424(0x1af)],_0x41090f=_0x28b834[_0x4f3424(0x2f7)](),{docsLeft:_0xf27d0b,docsTop:_0x2644c3}=_0x41090f,_0x376531=new _0x4792c3(_0x41090f,_0x4ef59f);for(let {startOffset:_0x51f326,endOffset:_0x5c58e9,rangeType:_0x1fe469,segmentId:_0x5a32ca,segmentPage:_0x179400,collapsed:_0x185a88,isActive:_0x2ea6f6}of _0x166e16){let _0x1fb25d=_0x4ef59f[_0x4f3424(0x249)](_0x51f326,!0x0,_0x5a32ca,_0x179400),_0x34dba8=_0x4ef59f[_0x4f3424(0x249)](_0x5c58e9,!0x0,_0x5a32ca,_0x179400);if(_0x34dba8==null&&(_0x34dba8=_0x4ef59f[_0x4f3424(0x249)](_0x5c58e9-0x1,!0x1,_0x5a32ca,_0x179400)),_0x2ea6f6){let {contentBoxPointGroup:_0x1d2886}=_0x376531[_0x4f3424(0x332)](_0x34dba8,_0x34dba8);if(_0x1d2886[_0x4f3424(0x33b)]===0x0)continue;this[_0x4f3424(0x25c)](_0x211a81,_0x1d2886,_0xf27d0b,_0x2644c3,_0x5e6dc7),this[_0x4f3424(0x151)]=this[_0x4f3424(0xcd)]();}if(_0x1fb25d&&_0x34dba8){if(_0x1fe469===_0x844c4[_0x4f3424(0x23a)]){var _0x1bfa1b;let {pointGroup:_0x67cf8c}=(_0x1bfa1b=new _0x54d53d(_0x41090f,_0x4ef59f)[_0x4f3424(0x332)](_0x1fb25d,_0x34dba8))==null?{}:_0x1bfa1b;if(_0x67cf8c==null||_0x67cf8c['length']===0x0)continue;this[_0x4f3424(0x33e)](_0x211a81,_0x67cf8c,_0xf27d0b,_0x2644c3);}else{if(!_0x185a88){let {borderBoxPointGroup:_0x1c1aae}=_0x376531[_0x4f3424(0x332)](_0x1fb25d,_0x34dba8);if(_0x1c1aae['length']===0x0)continue;this[_0x4f3424(0x1d5)](_0x211a81,_0x1c1aae,_0xf27d0b,_0x2644c3);}}}}}[_0x180295(0x25c)](_0x1b5d73,_0x2b9efc,_0x2cc1f6,_0xed824b,_0x27e284){const _0x9462da=_0x180295;let {left:_0x432495,top:_0x32eca1,height:_0x392ebd}=this[_0x9462da(0x19a)](_0x2b9efc),_0x3875a3=1.5/this[_0x9462da(0x170)](),_0x5a93db=new _0x3eb209(Ln+_0x3046d0(0x6),{'left':_0x432495+_0x2cc1f6-_0x3875a3,'top':_0x32eca1+_0xed824b,'height':_0x392ebd,'width':1.5,'fill':_0x1b5d73||_0x476b84(_0xd02da4[_0x9462da(0x2de)],0x0),'strokeWidth':_0x3875a3,'stroke':_0x9462da(0x104),'evented':!0x0});this[_0x9462da(0x29c)]=_0x5a93db,this[_0x9462da(0x2bf)][_0x9462da(0x174)](_0x5a93db,_0x4420aa);let _0x5b5d68=new _0x3eb209(Ln+_0x3046d0(0x6),{'left':_0x432495+_0x2cc1f6-_0x3875a3,'top':_0x32eca1+_0xed824b-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x1b5d73||_0x476b84(_0xd02da4['black'],0x0),'strokeWidth':0x0,'stroke':_0x1b5d73||_0x476b84(_0xd02da4['black'],0x0),'evented':!0x1});this[_0x9462da(0x322)]=_0x5b5d68,this['_scene'][_0x9462da(0x174)](_0x5b5d68,_0x4420aa);let _0x3ba2cc=new Sn(Ln+_0x3046d0(0x6),{'left':_0x432495+_0x2cc1f6-_0x3875a3,'top':_0x32eca1+_0xed824b-0x14,'text':_0x27e284,'color':_0x1b5d73});this[_0x9462da(0x11f)]=_0x3ba2cc,this[_0x9462da(0x2bf)][_0x9462da(0x174)](_0x3ba2cc,_0x4420aa),this[_0x9462da(0x2e4)]=!0x1;}[_0x180295(0xcd)](){const _0x169734=_0x180295;let _0x29c530=this['_anchor'][_0x169734(0x135)][_0x169734(0x2ae)](()=>{const _0xe204ea=_0x169734;this[_0xe204ea(0x2e4)]=!0x0;}),_0x50033b=this[_0x169734(0x29c)][_0x169734(0x34f)][_0x169734(0x2ae)](()=>{const _0x2bf005=_0x169734;this[_0x2bf005(0x114)]&&clearTimeout(this['_hideTimer']),this[_0x2bf005(0x114)]=setTimeout(()=>{const _0x614bde=_0x2bf005;this[_0x614bde(0x2e4)]=!0x1;},0x7d0);});return()=>{const _0x2b5387=_0x169734;_0x29c530[_0x2b5387(0x29a)](),_0x50033b[_0x2b5387(0x29a)]();};}[_0x180295(0x1d5)](_0x6a0f01,_0x1a7898,_0x173029,_0xe4cc20){const _0x4426a2=_0x180295;let _0x1a64c2=0.2,_0x300483=new _0x5f2d2c(_0x6a0f01)[_0x4426a2(0x2b4)](_0x1a64c2)[_0x4426a2(0x116)](),_0x1986dd=new _0x3d0880(_0x4426a2(0x265)+_0x3046d0(0x6),{'pointsGroup':_0x1a7898,'fill':_0x300483||_0x476b84(_0xd02da4['black'],_0x1a64c2),'left':_0x173029,'top':_0xe4cc20,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4426a2(0x229)][_0x4426a2(0x312)](_0x1986dd),this[_0x4426a2(0x2bf)][_0x4426a2(0x174)](_0x1986dd,_0x4420aa);}[_0x180295(0x33e)](_0x537ec4,_0x3de6f6,_0x33fb83,_0x359efb){const _0xa9fee3=_0x180295;let _0x2b0b18=0.2,_0xc33d91=new _0x5f2d2c(_0x537ec4)[_0xa9fee3(0x2b4)](_0x2b0b18)[_0xa9fee3(0x116)](),_0x49cac0=new _0x3d0880(_0xa9fee3(0x1e5)+_0x3046d0(0x6),{'pointsGroup':_0x3de6f6,'fill':_0xc33d91||_0x476b84(_0xd02da4['black'],_0x2b0b18),'left':_0x33fb83,'top':_0x359efb,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0xa9fee3(0x312)](_0x49cac0),this[_0xa9fee3(0x2bf)][_0xa9fee3(0x174)](_0x49cac0,_0x4420aa);}[_0x180295(0x19a)](_0x2fd479){let _0x125532=_0x2fd479[0x0],_0x522a01=_0x125532[0x0],_0x4a2203=_0x125532[0x2],{x:_0x435508,y:_0x5c5008}=_0x522a01,{x:_0x3df4c8,y:_0x39adaa}=_0x4a2203;return{'left':_0x435508,'top':_0x5c5008,'width':_0x3df4c8-_0x435508,'height':_0x39adaa-_0x5c5008};}[_0x180295(0x170)](){const _0x408fae=_0x180295;let {scaleX:_0x5e4044,scaleY:_0x3b4bb0}=this[_0x408fae(0x2bf)]['getAncestorScale']();return Math[_0x408fae(0x362)](_0x5e4044,_0x3b4bb0);}};let zn=class extends _0x4301ed{constructor(_0x776d00,_0x251ac3,_0x2abf97,_0x4afa7f,_0x3f8d5f){const _0x354ae0=_0x180295;super(),this['_context']=_0x776d00,this[_0x354ae0(0x2c1)]=_0x251ac3,this[_0x354ae0(0x287)]=_0x2abf97,this[_0x354ae0(0xcc)]=_0x4afa7f,this[_0x354ae0(0x281)]=_0x3f8d5f,q(this,_0x354ae0(0x35b),[]),q(this,'_cursors',[]),this[_0x354ae0(0x22c)]();}['_init'](){const _0x5e1b24=_0x180295;let _0x1720f4=this[_0x5e1b24(0x2ab)][_0x5e1b24(0xd2)],_0x546933=this[_0x5e1b24(0x2c1)];this['disposeWithMe'](_0xe474ec([this['_collabCursorController'][_0x5e1b24(0x2ea)](_0x1720f4),this[_0x5e1b24(0x281)][_0x5e1b24(0x1a4)]])[_0x5e1b24(0x24d)](_0x9d1f39(([_0x525296,_0x15b8fc])=>({'skeleton':_0x546933[_0x5e1b24(0x172)](),'cursors':[..._0x525296['values']()]['flatMap'](_0x383963=>({..._0x383963,'color':this[_0x5e1b24(0x281)]['getColorFromTheme'](_0x383963['color'])}))})))[_0x5e1b24(0x25e)](_0x5ba22d=>{if(this['_removeCollabCursors'](),_0x5ba22d){let {skeleton:_0x5c040a,cursors:_0x3e0a3c}=_0x5ba22d;this['_updateCollabCursors'](_0x5c040a,_0x3e0a3c);}})),this[_0x5e1b24(0x190)](),this[_0x5e1b24(0x138)]();}[_0x180295(0x16f)](_0x4d2f69,_0x35ec52){const _0x67077d=_0x180295;let {scene:_0x5beb42,mainComponent:_0x23937f}=this[_0x67077d(0x2ab)],_0x5bfb14=_0x35ec52['map'](_0x2b5f56=>new Rn(_0x2b5f56,_0x5beb42,_0x4d2f69,_0x23937f));this[_0x67077d(0x35b)]=_0x5bfb14,this[_0x67077d(0x175)]=_0x35ec52;}[_0x180295(0x134)](){const _0x2fe8cd=_0x180295;this[_0x2fe8cd(0x27f)]();let {scene:_0x24cac9,mainComponent:_0x3973a4}=this[_0x2fe8cd(0x2ab)],_0x49531f=this[_0x2fe8cd(0x2c1)][_0x2fe8cd(0x172)](),_0x2f589b=this[_0x2fe8cd(0x175)][_0x2fe8cd(0x33a)](_0x240112=>new Rn(_0x240112,_0x24cac9,_0x49531f,_0x3973a4));this[_0x2fe8cd(0x35b)]=_0x2f589b;}[_0x180295(0x27f)](){const _0x519e21=_0x180295;this[_0x519e21(0x35b)][_0x519e21(0x1d0)](_0x211cc4=>_0x211cc4['dispose']()),this[_0x519e21(0x35b)]=[];}['_initCommandExecutedListener'](){const _0x52f94a=_0x180295;let _0x4b6d68=[_0x166c31['id']];this['disposeWithMe'](this[_0x52f94a(0xcc)][_0x52f94a(0xc9)](_0xe2dabd=>{const _0x4a46af=_0x52f94a;_0x4b6d68[_0x4a46af(0x245)](_0xe2dabd['id'])&&_0xe2dabd[_0x4a46af(0xdc)][_0x4a46af(0xd2)]===this[_0x4a46af(0x2ab)][_0x4a46af(0xd2)]&&this['_refreshCollabCursors']();}));}[_0x180295(0x190)](){const _0xb5d385=_0x180295;this[_0xb5d385(0x299)](_0x5b73b0(this[_0xb5d385(0x2ab)][_0xb5d385(0x2c5)][_0xb5d385(0x1c5)])['pipe'](_0x660a28(_0x57a1a7=>_0x57a1a7[_0xb5d385(0x20c)]===_0x2ab8d7['resize']),_0xc4bc12(0x10))[_0xb5d385(0x25e)](()=>{const _0x343f7e=_0xb5d385;this[_0x343f7e(0x134)]();}));}};zn=Y([J(0x1,_0x2c46ac(_0x4b87eb)),J(0x2,_0x2c46ac(Q)),J(0x3,_0xfdef4),J(0x4,_0x2c46ac(_0x3f5e9f))],zn);var Bn=class extends _0xe5b994{constructor(_0x19d9ee,_0x2a1374){const _0x5825ea=_0x180295;if(super(_0x19d9ee,_0x2a1374),q(this,_0x5825ea(0x147),void 0x0),q(this,_0x5825ea(0x1a6),!0x1),q(this,_0x5825ea(0x14c),void 0x0),q(this,'_name',''),q(this,'_labelPosition',_0x5825ea(0x1e1)),q(this,_0x5825ea(0x244),void 0x0),q(this,_0x5825ea(0x308),void 0x0),q(this,_0x5825ea(0x1c9),void 0x0),q(this,_0x5825ea(0x26c),0x4),q(this,_0x5825ea(0x1be),void 0x0),q(this,_0x5825ea(0x1b1),void 0x0),q(this,_0x5825ea(0x159),!0x0),q(this,'_offsetY',0x0),q(this,_0x5825ea(0x24f),'right'),_0x2a1374){var _0x4c6097;if(this['setShapeProps'](_0x2a1374),_0x2a1374[_0x5825ea(0x33d)]&&((_0x4c6097=_0x2a1374['highlightSecond'])==null?this[_0x5825ea(0x26c)]:_0x4c6097)){var _0x59e453;this[_0x5825ea(0xf0)]((_0x59e453=_0x2a1374['highlightSecond'])==null?this[_0x5825ea(0x26c)]:_0x59e453);}}this['onPointerEnter$'][_0x5825ea(0x2ae)](()=>this[_0x5825ea(0x1c2)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1}));}[_0x180295(0x307)](_0x1f05ac){const _0x18afa2=_0x180295;this[_0x18afa2(0x25f)]=_0x1f05ac;}[_0x180295(0x1c2)](_0x1b16d6){const _0x461da9=_0x180295;var _0x313d24,_0x3b2013,_0x13eef2,_0x4a5eaf,_0x5087bf,_0x3856bb,_0x9189fa,_0x102fe4;this[_0x461da9(0x147)]=(_0x313d24=_0x1b16d6[_0x461da9(0x205)])==null?this[_0x461da9(0x147)]:_0x313d24,this[_0x461da9(0x1a6)]=(_0x3b2013=_0x1b16d6[_0x461da9(0xe1)])==null?this[_0x461da9(0x1a6)]:_0x3b2013,this['_range']=(_0x13eef2=_0x1b16d6[_0x461da9(0x2e3)])==null?this[_0x461da9(0x14c)]:_0x13eef2,this[_0x461da9(0x225)]=(_0x4a5eaf=_0x1b16d6['name'])==null?this['_name']:_0x4a5eaf,this[_0x461da9(0x1eb)]=(_0x5087bf=_0x1b16d6[_0x461da9(0x166)])==null?this[_0x461da9(0x1eb)]:_0x5087bf,this[_0x461da9(0x244)]=(_0x3856bb=_0x1b16d6['backgroundColor'])==null?this['_backgroundColor']:_0x3856bb,this['_showText']=(_0x9189fa=_0x1b16d6[_0x461da9(0x10d)])==null?this['_showText']:_0x9189fa,this[_0x461da9(0x24f)]=(_0x102fe4=_0x1b16d6[_0x461da9(0xe9)])==null?this[_0x461da9(0x24f)]:_0x102fe4,_0x1b16d6[_0x461da9(0x31e)]!==void 0x0&&(this[_0x461da9(0x26c)]=_0x1b16d6[_0x461da9(0x31e)]),_0x1b16d6[_0x461da9(0x33d)]!==void 0x0&&(this[_0x461da9(0x1c9)]=_0x1b16d6['highlight']),_0x1b16d6[_0x461da9(0x22f)]!==void 0x0&&(this[_0x461da9(0x25f)]=_0x1b16d6[_0x461da9(0x22f)]),this[_0x461da9(0x23c)]({'width':_0x1b16d6[_0x461da9(0x14f)],'height':_0x1b16d6[_0x461da9(0x1a7)]});}[_0x180295(0x1d8)](_0xfaf623){const _0x4d9ce=_0x180295;let {row:_0x563a88,column:_0x3df4fe}=_0xfaf623;if(_0x563a88>=this['_range'][_0x4d9ce(0xf5)]&&_0x563a88<=this[_0x4d9ce(0x14c)][_0x4d9ce(0x11d)]&&_0x3df4fe>=this[_0x4d9ce(0x14c)][_0x4d9ce(0x1cb)]&&_0x3df4fe<=this[_0x4d9ce(0x14c)][_0x4d9ce(0x2c4)]){this[_0x4d9ce(0x1c2)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['_startBlinking'](_0x5b6553){const _0x110051=_0x180295;this[_0x110051(0x352)](),this[_0x110051(0x159)]=!0x0,this[_0x110051(0x1b1)]=window[_0x110051(0xd4)](()=>{const _0x224ece=_0x110051;this[_0x224ece(0x159)]=!this[_0x224ece(0x159)],this[_0x224ece(0x315)](!0x0);},0x1f4),this['_blinkTimer']=window[_0x110051(0x1cc)](()=>{const _0x55dd08=_0x110051;this[_0x55dd08(0x352)](),this['_isBlinkVisible']=!0x0,this['makeDirty'](!0x0);},_0x5b6553*0x3e8);}[_0x180295(0x352)](){const _0x213f7a=_0x180295;this[_0x213f7a(0x1b1)]&&(window[_0x213f7a(0x34a)](this[_0x213f7a(0x1b1)]),this[_0x213f7a(0x1b1)]=void 0x0),this[_0x213f7a(0x1be)]&&(window['clearTimeout'](this[_0x213f7a(0x1be)]),this['_blinkTimer']=void 0x0);}[_0x180295(0x2a5)](_0x5b8af6){return!0x1;}[_0x180295(0x1ed)](){const _0x4c1205=_0x180295;this[_0x4c1205(0x352)](),super[_0x4c1205(0x1ed)]();}[_0x180295(0x278)](_0x20ac44){const _0x56cb2b=_0x180295;let _0x8d84e=this[_0x56cb2b(0x147)],_0x37eded=this[_0x56cb2b(0x244)];if(this['_highlight']&&!this[_0x56cb2b(0x159)]&&(_0x8d84e=this[_0x56cb2b(0x236)](this['_color']),_0x37eded=this[_0x56cb2b(0x244)]?this[_0x56cb2b(0x236)](this[_0x56cb2b(0x244)]):void 0x0),_0x3eb209['drawWith'](_0x20ac44,{'width':this[_0x56cb2b(0x14f)],'height':this[_0x56cb2b(0x1a7)],'strokeWidth':this['strokeWidth']||1.5,'stroke':_0x8d84e,'evented':!0x1,'fill':_0x37eded}),this[_0x56cb2b(0x1a6)]||this[_0x56cb2b(0x308)]){var _0x1fa03f;_0x20ac44[_0x56cb2b(0x19d)]();let _0x506d5b=this[_0x56cb2b(0x24f)]==='left'?-bn(_0x20ac44,this[_0x56cb2b(0x225)]):this['width'];_0x20ac44['transform'](0x1,0x0,0x0,0x1,_0x506d5b,(this['_labelPosition']===_0x56cb2b(0x333)?0x0:-0x14)+((_0x1fa03f=this[_0x56cb2b(0x25f)])==null?0x0:_0x1fa03f)),Sn[_0x56cb2b(0x2ca)](_0x20ac44,{'text':this['_name'],'color':_0x8d84e}),_0x20ac44['restore']();}}[_0x180295(0x236)](_0x5dacd0){const _0x145e47=_0x180295;return _0x5dacd0[_0x145e47(0x10f)]('#')?_0x145e47(0x13a)+Number[_0x145e47(0x1cf)](_0x5dacd0[_0x145e47(0x2e7)](0x1,0x3),0x10)+',\x20'+Number[_0x145e47(0x1cf)](_0x5dacd0[_0x145e47(0x2e7)](0x3,0x5),0x10)+',\x20'+Number[_0x145e47(0x1cf)](_0x5dacd0[_0x145e47(0x2e7)](0x5,0x7),0x10)+',\x200.2)':_0x5dacd0[_0x145e47(0x10f)]('rgba')?_0x5dacd0[_0x145e47(0x246)](/[\d.]+\)$/g,_0x145e47(0x2db)):_0x5dacd0[_0x145e47(0x10f)](_0x145e47(0xd1))?_0x5dacd0['replace'](_0x145e47(0xd1),_0x145e47(0x1f4))[_0x145e47(0x246)](')',_0x145e47(0x10c)):_0x5dacd0;}};let Vn=class extends _0x4301ed{constructor(_0x5273ff,_0x32a8b8,_0x3db242,_0x59e46f){const _0xfed644=_0x180295;super(),this['_context']=_0x5273ff,this[_0xfed644(0x20b)]=_0x32a8b8,this[_0xfed644(0x287)]=_0x3db242,this[_0xfed644(0x281)]=_0x59e46f,q(this,'_cursors',new Set()),q(this,_0xfed644(0x1ab),null),q(this,_0xfed644(0xdf),null),this['_init']();}[_0x180295(0x22c)](){const _0x3ce2f5=_0x180295;this[_0x3ce2f5(0x20b)][_0x3ce2f5(0x30e)][_0x3ce2f5(0x24d)](_0x1ba4d0(this[_0x3ce2f5(0x2e8)]),_0x316170(_0x5ce8bd=>{const _0x5204df=_0x3ce2f5;if(_0x5ce8bd){let _0x2a8841=_0x5ce8bd[_0x5204df(0x1f0)];return _0xe474ec(this[_0x5204df(0x287)][_0x5204df(0x2ea)](this[_0x5204df(0x2ab)][_0x5204df(0xd2)]),this['_themeService'][_0x5204df(0x1a4)])[_0x5204df(0x24d)](_0x9d1f39(([_0x1bb129,_0xba513b])=>{let _0x5e7198=new Map();return _0x1bb129['forEach']((_0x21ab74,_0x208883)=>{const _0x107cc3=_0x1f19;if(_0x21ab74[_0x107cc3(0x1fc)]===_0x2a8841){let _0x1d7307={..._0x21ab74};_0x1d7307[_0x107cc3(0x205)]=this['_themeService']['getColorFromTheme'](_0x21ab74[_0x107cc3(0x205)]),_0x5e7198[_0x107cc3(0x285)](_0x208883,_0x1d7307);}}),{'skeleton':_0x5ce8bd,'cursors':_0x5e7198};}));}return _0x3d882f({'skeleton':null,'cursors':new Map()});}))[_0x3ce2f5(0x25e)](({skeleton:_0x424cf5,cursors:_0x2f03fa})=>{const _0x9f80c7=_0x3ce2f5;this[_0x9f80c7(0x27f)](),_0x424cf5&&this[_0x9f80c7(0x16f)](_0x424cf5,_0x2f03fa);}),this[_0x3ce2f5(0x299)](this[_0x3ce2f5(0x20b)][_0x3ce2f5(0x30e)][_0x3ce2f5(0x24d)](_0x1ba4d0(this['dispose$']))[_0x3ce2f5(0x25e)](_0xab90b2=>{const _0x4d8e56=_0x3ce2f5;var _0x12c749;if(_0xab90b2==null)return;(_0x12c749=this['_pointerMoveDisposable'])==null||_0x12c749['unsubscribe'](),this[_0x4d8e56(0xdf)]=null;let {skeleton:_0x34a1af}=_0xab90b2,{scene:_0x49fc98}=this['_context'];this[_0x4d8e56(0xdf)]=_0x49fc98[_0x4d8e56(0x1db)][_0x4d8e56(0x2ae)](_0x3e837e(_0x24b42a=>{const _0x455e6c=_0x4d8e56;var _0xaf0d0f,_0x501e25;let {offsetX:_0x23bd8e,offsetY:_0x39042d}=_0x24b42a,{x:_0x22b235,y:_0xcd69af}=_0x49fc98[_0x455e6c(0x139)](_0x2b6913[_0x455e6c(0x153)]([_0x23bd8e,_0x39042d])),{scaleX:_0x31c09c,scaleY:_0xdf8ec6}=_0x49fc98[_0x455e6c(0x1c4)](),_0x4acf06=_0x49fc98[_0x455e6c(0x272)](_0x1c50ba[_0x455e6c(0x2b2)]),_0x21b1e9=_0x49fc98[_0x455e6c(0x12b)](_0x2b6913[_0x455e6c(0x153)]([_0x22b235,_0xcd69af]),_0x4acf06),_0x11be73=_0x34a1af[_0x455e6c(0xd7)](_0x23bd8e,_0x39042d,_0x31c09c,_0xdf8ec6,_0x21b1e9);((_0xaf0d0f=this[_0x455e6c(0x1ab)])==null?void 0x0:_0xaf0d0f[_0x455e6c(0x346)])===_0x11be73[_0x455e6c(0x346)]&&((_0x501e25=this[_0x455e6c(0x1ab)])==null?void 0x0:_0x501e25[_0x455e6c(0x123)])===_0x11be73['row']||this[_0x455e6c(0x175)][_0x455e6c(0x1d0)](_0x2c1402=>{const _0x88b3f4=_0x455e6c;_0x2c1402[_0x88b3f4(0x1d8)](_0x11be73);});},0x64));})),this[_0x3ce2f5(0x299)](_0x2b809e(()=>{const _0x39ff3a=_0x3ce2f5;var _0x285428;(_0x285428=this[_0x39ff3a(0xdf)])==null||_0x285428[_0x39ff3a(0x29a)](),this[_0x39ff3a(0xdf)]=null;}));}[_0x180295(0x16f)](_0x5d546f,_0x181f66){const _0x5ad37d=_0x180295;let _0xc8ca33=this['_sheetSkeletonManagerService'][_0x5ad37d(0x1b5)]();if(!_0xc8ca33)return;let _0x3d7a20=this['_getSheetObject']();if(!_0x3d7a20)return;this['_cursors'][_0x5ad37d(0x1d0)](_0x48b70e=>{const _0x4b8ace=_0x5ad37d;_0x48b70e[_0x4b8ace(0x315)]();});let {scene:_0x56f73e}=_0x3d7a20,_0x4f36ad=Hn(Array[_0x5ad37d(0x1a1)](_0x181f66[_0x5ad37d(0x302)]()))[_0x5ad37d(0x33a)](_0x5588b0=>{const _0x592729=_0x5ad37d;let {color:_0x3bed53,range:_0x737f8,name:_0x5c9284,selection:_0xb72c6c,sheetID:_0x5dcea2}=_0x5588b0,{startColumn:_0x4c97f0,startRow:_0x94a0bf,endColumn:_0x4c8ca5,endRow:_0x4faef9}=_0x737f8,_0x5be587=_0x4d9c15(_0x94a0bf,_0x4c97f0,_0x56f73e,_0xc8ca33),_0x272f08=_0x4d9c15(_0x4faef9,_0x4c8ca5,_0x56f73e,_0xc8ca33),{columnHeaderHeightAndMarginTop:_0x36c979}=_0xc8ca33,{startX:_0x2aac82,startY:_0xcef6a8}=_0x5be587,{endX:_0x2528f8,endY:_0x530c46}=_0x272f08,_0x11c7f6=_0x2528f8-_0x2aac82,_0x312f67=_0x530c46-_0xcef6a8;return new Bn(_0x5c9284,{'labelPosition':_0xcef6a8-_0x36c979>=0x14?_0x592729(0x1e1):_0x592729(0x333),'sheetID':_0x5dcea2,'range':_0x737f8,'color':_0x3bed53,'name':_0x5c9284,'selection':_0xb72c6c,'left':_0x2aac82,'top':_0xcef6a8,'width':_0x11c7f6,'height':_0x312f67,'evented':!0x1,'zIndex':0x1389});});_0x56f73e[_0x5ad37d(0x27a)](_0x4f36ad,0x1),this['_cursors']=new Set(_0x4f36ad);}[_0x180295(0x27f)](){const _0x3b4558=_0x180295;var _0x212dce;(_0x212dce=this[_0x3b4558(0x175)])==null||_0x212dce[_0x3b4558(0x1d0)](_0x3ca6be=>_0x3ca6be['dispose']());}[_0x180295(0x13e)](){const _0x45a516=_0x180295;return _0x24bbf6(this[_0x45a516(0x2ab)][_0x45a516(0x15e)],this[_0x45a516(0x2ab)]);}};Vn=Y([J(0x1,_0x2c46ac(_0x4d3808)),J(0x2,_0x2c46ac(Q)),J(0x3,_0x2c46ac(_0x3f5e9f))],Vn);function Hn(_0x3bdad4){const _0x586bf0=_0x180295;let _0x3c4df0=new Map();return _0x3bdad4['forEach'](_0x4e5f92=>{const _0x1fb222=_0x1f19;if(_0x3c4df0[_0x1fb222(0x2d3)](_0x4e5f92[_0x1fb222(0x270)])){let _0x5e5ed0=_0x3c4df0[_0x1fb222(0x19b)](_0x4e5f92[_0x1fb222(0x270)]);_0x5e5ed0[_0x1fb222(0x13f)]+=',\x20'+_0x4e5f92[_0x1fb222(0x13f)];}else _0x3c4df0[_0x1fb222(0x285)](_0x4e5f92[_0x1fb222(0x270)],_0x4e5f92);}),Array[_0x586bf0(0x1a1)](_0x3c4df0[_0x586bf0(0x302)]());}let Un=class extends _0x4301ed{constructor(_0x4cc54a,_0x249119,_0x2f4e44){const _0x335f42=_0x180295;super(),this[_0x335f42(0x2ab)]=_0x4cc54a,this[_0x335f42(0x287)]=_0x249119,this[_0x335f42(0x281)]=_0x2f4e44,q(this,_0x335f42(0x175),new Set()),q(this,_0x335f42(0x1bc),!0x1),q(this,'_isApplyingOverlays',!0x1),q(this,'_latestCursors',new Map()),this[_0x335f42(0x22c)]();}['dispose'](){const _0x395a58=_0x180295;this[_0x395a58(0x27f)](),super[_0x395a58(0x1ed)]();}[_0x180295(0x22c)](){const _0x133e0d=_0x180295;let _0x5cb00b=this[_0x133e0d(0x2ab)]['unit'][_0x133e0d(0x1f9)][_0x133e0d(0x2f3)],_0x8c2953=this[_0x133e0d(0x287)]['getCollabCursors$'](this[_0x133e0d(0x2ab)][_0x133e0d(0xd2)]);this[_0x133e0d(0x299)](_0x2b809e(_0xe474ec([_0x8c2953,_0x5cb00b,this['_themeService']['currentTheme$']])[_0x133e0d(0x24d)](_0x323499(this[_0x133e0d(0x2e8)]))[_0x133e0d(0x25e)](([_0x1f2fb5,_0x4d3dd5])=>{const _0x1b8733=_0x133e0d;let _0x170d9e=new Map();_0x1f2fb5[_0x1b8733(0x1d0)]((_0x59f012,_0x5bf4ff)=>{const _0x5b9749=_0x1b8733;_0x59f012['subUnitId']===_0x4d3dd5&&_0x170d9e[_0x5b9749(0x285)](_0x5bf4ff,{..._0x59f012,'color':this[_0x5b9749(0x281)][_0x5b9749(0x295)](_0x59f012[_0x5b9749(0x205)])});}),this[_0x1b8733(0x31a)]=_0x170d9e,this[_0x1b8733(0x2ed)]();})));let _0x5f5a0e=this['_context'][_0x133e0d(0x178)];this['disposeWithMe'](_0x2b809e(_0x5f5a0e[_0x133e0d(0x1cd)][_0x133e0d(0x24d)](_0x323499(this['dispose$']))[_0x133e0d(0x25e)](()=>{const _0x42d45d=_0x133e0d;this['_isApplyingOverlays']||this[_0x42d45d(0x2ed)]();})));}[_0x180295(0x2ed)](){const _0x30036b=_0x180295;this[_0x30036b(0x1bc)]||(this['_renderScheduled']=!0x0,Promise[_0x30036b(0x289)]()['then'](()=>{const _0x1d010f=_0x30036b;this[_0x1d010f(0x1bc)]=!0x1,this['_render']();}));}[_0x180295(0x324)](){const _0x33ffae=_0x180295;var _0x4f5db0;this[_0x33ffae(0x27f)]();let _0x3392ed=(_0x4f5db0=this[_0x33ffae(0x2ab)][_0x33ffae(0x15e)][_0x33ffae(0x1f9)][_0x33ffae(0x251)]())==null?void 0x0:_0x4f5db0[_0x33ffae(0x1b4)]();if(!_0x3392ed)return;let _0x2a0f83=[];if(this[_0x33ffae(0x31a)][_0x33ffae(0x1d0)]((_0x4398c1,_0xfe0147)=>{const _0x46feee=_0x33ffae;_0x4398c1[_0x46feee(0x234)]===_0x3392ed&&_0x4398c1[_0x46feee(0x1de)][_0x46feee(0x1d0)](_0x1ff616=>{const _0x54f8ff=_0x46feee;let _0x4dce6d=_0x6503d5(_0x4398c1[_0x54f8ff(0xd2)],_0x4398c1[_0x54f8ff(0x234)],_0x1ff616),_0x35f0e2=this[_0x54f8ff(0x23b)](_0x4dce6d);if(!_0x35f0e2)return;let _0x437b93=this[_0x54f8ff(0x1a3)](_0x35f0e2);_0x2a0f83[_0x54f8ff(0x312)](new wn(_0x54f8ff(0x235)+_0xfe0147+'-'+_0x1ff616,{..._0x4398c1,'left':_0x437b93[_0x54f8ff(0xcf)],'top':_0x437b93[_0x54f8ff(0x1e1)],'width':_0x437b93['width'],'height':_0x437b93[_0x54f8ff(0x1a7)],'angle':_0x35f0e2[_0x54f8ff(0x29d)],'evented':!0x1,'zIndex':Cn}));});}),_0x2a0f83[_0x33ffae(0x33b)]===0x0){this[_0x33ffae(0x2ab)]['scene']['makeDirty'](!0x0);return;}this[_0x33ffae(0x124)]=!0x0,this[_0x33ffae(0x2ab)][_0x33ffae(0x178)][_0x33ffae(0x27a)](_0x2a0f83,Cn),this[_0x33ffae(0x124)]=!0x1,this[_0x33ffae(0x175)]=new Set(_0x2a0f83),this[_0x33ffae(0x2ab)][_0x33ffae(0x178)][_0x33ffae(0x315)](!0x0);}[_0x180295(0x27f)](){const _0xc83c11=_0x180295;let _0x1585db=Array[_0xc83c11(0x1a1)](this[_0xc83c11(0x175)]);if(_0x1585db[_0xc83c11(0x33b)]===0x0)return;let _0x22eba2=this['_context'][_0xc83c11(0x178)];_0xc83c11(0x130)in _0x22eba2&&typeof _0x22eba2[_0xc83c11(0x130)]==_0xc83c11(0x27c)?_0x22eba2[_0xc83c11(0x130)](_0x1585db):_0x1585db[_0xc83c11(0x1d0)](_0x59c1b8=>{const _0x9cd6bf=_0xc83c11;_0x9cd6bf(0x1ef)in _0x22eba2&&typeof _0x22eba2[_0x9cd6bf(0x1ef)]==_0x9cd6bf(0x27c)?_0x22eba2['removeObject'](_0x59c1b8):_0x59c1b8[_0x9cd6bf(0x1ed)]();}),this['_cursors'][_0xc83c11(0x2df)](),_0x22eba2[_0xc83c11(0x315)](!0x0);}[_0x180295(0x23b)](_0x2c0023){const _0x2a0f34=_0x180295;var _0x578a24,_0x22686b,_0x1006f5;let _0x5b2a2a=this[_0x2a0f34(0x2ab)][_0x2a0f34(0x178)];return(_0x578a24=(_0x22686b=(_0x1006f5=_0x5b2a2a[_0x2a0f34(0xf1)])==null?void 0x0:_0x1006f5[_0x2a0f34(0x2d8)](_0x5b2a2a,_0x2c0023))==null?_0x5b2a2a[_0x2a0f34(0x336)](_0x2c0023):_0x22686b)==null?null:_0x578a24;}['_getObjectBounds'](_0x29a38e){const _0xd7a124=_0x180295;var _0x42634d,_0x1547c2;let _0x14cbe0=_0x29a38e;return(_0x42634d=(_0x1547c2=_0x14cbe0[_0xd7a124(0x248)])==null?void 0x0:_0x1547c2[_0xd7a124(0x2d8)](_0x14cbe0))==null?{'left':_0x29a38e[_0xd7a124(0xcf)],'top':_0x29a38e[_0xd7a124(0x1e1)],'width':_0x29a38e[_0xd7a124(0x14f)],'height':_0x29a38e[_0xd7a124(0x1a7)]}:_0x42634d;}};Un=Y([J(0x1,_0x2c46ac(Q)),J(0x2,_0x2c46ac(_0x3f5e9f))],Un);let Wn=class extends _0x29f5c8{constructor(_0xfbc5af,_0x13a507,_0x28534b,_0x317a53,_0x111d16,_0x4506b5){const _0x1e181b=_0x180295;super(),this[_0x1e181b(0x328)]=_0xfbc5af,this[_0x1e181b(0x18c)]=_0x13a507,this[_0x1e181b(0x126)]=_0x28534b,this[_0x1e181b(0x1fa)]=_0x317a53,this[_0x1e181b(0x115)]=_0x111d16,this[_0x1e181b(0x19f)]=_0x4506b5,this[_0x1e181b(0xcb)](),this[_0x1e181b(0x255)]();}[_0x180295(0xcb)](){const _0x1c312f=_0x180295;this[_0x1c312f(0x299)](this['_beforeCloseService'][_0x1c312f(0xe8)](()=>{const _0x10f8cf=_0x1c312f;if(this['_localCacheService'][_0x10f8cf(0x275)][_0x10f8cf(0x1fe)])return this[_0x10f8cf(0x19f)]['t'](_0x10f8cf(0x2f6));}));}['_initEvent'](){const _0xda6f23=_0x180295;this[_0xda6f23(0x299)](this[_0xda6f23(0x126)]['event$'][_0xda6f23(0x25e)](_0x974bb5=>{const _0x3fcd51=_0xda6f23;_0x974bb5['id']===_0x27161e[_0x3fcd51(0x24c)]&&this[_0x3fcd51(0x1fa)][_0x3fcd51(0x108)]({'type':_0x211eee[_0x3fcd51(0x179)],'content':this[_0x3fcd51(0x19f)]['t'](_0x3fcd51(0x253))}),_0x974bb5['id']===_0x27161e[_0x3fcd51(0x2a4)]&&this['_messageService'][_0x3fcd51(0x108)]({'type':_0x211eee['Warning'],'content':this[_0x3fcd51(0x19f)]['t'](_0x3fcd51(0xd0))}),_0x974bb5['id']===_0x27161e['PERMISSION_DENIED']&&this[_0x3fcd51(0x115)][_0x3fcd51(0x108)]({'title':this[_0x3fcd51(0x19f)]['t'](_0x3fcd51(0x220)),'content':this[_0x3fcd51(0x19f)]['t'](_0x3fcd51(0x2f1)),'type':_0x3fcd51(0x35d),'duration':0x0}),_0x974bb5['id']===_0x27161e[_0x3fcd51(0x100)]&&this[_0x3fcd51(0x115)]['show']({'title':this[_0x3fcd51(0x19f)]['t'](_0x3fcd51(0x355)),'content':this[_0x3fcd51(0x19f)]['t']('collaboration-client-ui.conflict.content'),'type':_0x3fcd51(0x35d),'duration':0x0}),_0x974bb5['id']===_0x27161e[_0x3fcd51(0x2a1)]&&this[_0x3fcd51(0x1fa)]['show']({'type':_0x211eee[_0x3fcd51(0x179)],'content':this['_localeService']['t'](_0x974bb5[_0x3fcd51(0x2ba)]||'')}),_0x974bb5['id']===_0x27161e[_0x3fcd51(0x155)]&&this[_0x3fcd51(0x1fa)]['show']({'type':_0x211eee['Warning'],'content':this['_localeService']['t'](_0x3fcd51(0x252))}),_0x974bb5['id']===_0x27161e[_0x3fcd51(0x313)]&&this[_0x3fcd51(0x1fa)][_0x3fcd51(0x108)]({'type':_0x211eee[_0x3fcd51(0x21b)],'content':this[_0x3fcd51(0x19f)]['t'](_0x3fcd51(0x207))}),_0x974bb5['id']===_0x27161e[_0x3fcd51(0x266)]&&this[_0x3fcd51(0x1fa)][_0x3fcd51(0x108)]({'type':_0x211eee[_0x3fcd51(0x21b)],'content':this[_0x3fcd51(0x19f)]['t'](_0x3fcd51(0x26a))});}));}};Wn=Y([J(0x0,_0x58139c),J(0x1,_0x53bf61),J(0x2,_0x2c46ac(_0x1497f9)),J(0x3,_0xcfc953),J(0x4,_0x189f65),J(0x5,_0x2c46ac(_0x1c14e4))],Wn);const Gn=_0x5d25db(_0x180295(0x133));let Kn=class extends _0x4301ed{constructor(_0x590257,_0x499d15,_0x2f479b,_0x23adb3,_0x543dba){const _0x3392b0=_0x180295;super(),this[_0x3392b0(0x240)]=_0x590257,this[_0x3392b0(0x1e7)]=_0x499d15,this['_commandService']=_0x2f479b,this['_dataLoaderService']=_0x23adb3,_0x543dba?_0x543dba[_0x3392b0(0x2fa)]()[_0x3392b0(0x1ea)](()=>this[_0x3392b0(0x22c)]()):(this['_logService']['debug'](_0x3392b0(0x2f8),_0x3392b0(0x356)),this[_0x3392b0(0x22c)]());}async[_0x180295(0x22c)](){const _0x12d669=_0x180295;let _0x527e70=this[_0x12d669(0x240)][_0x12d669(0x211)](_0x12d669(0x15e)),_0x33a302=this[_0x12d669(0x240)][_0x12d669(0x211)](_0x12d669(0x20c)),_0x4ba610=this[_0x12d669(0x240)]['getParam'](_0x12d669(0x347));if(!_0x527e70||!_0x33a302){this[_0x12d669(0x1e7)]['debug'](_0x12d669(0x2f8),_0x12d669(0x1d4));return;}let _0x3d10ea=await this[_0x12d669(0x13c)][_0x12d669(0x1b9)](_0x527e70,Number(_0x33a302),_0x4ba610);_0x3d10ea&&_0x3d10ea instanceof _0x8c16fd&&this[_0x12d669(0x181)](_0x3d10ea);}async[_0x180295(0x181)](_0x140609){const _0x40eeee=_0x180295;await this[_0x40eeee(0x2f0)](_0x140609),_0x140609[_0x40eeee(0x310)][_0x40eeee(0x24d)](_0x323499(this[_0x40eeee(0x2e8)]))[_0x40eeee(0x25e)](_0xa6aedb=>{const _0x636efc=_0x40eeee;_0xa6aedb&&this[_0x636efc(0x1c3)](_0xa6aedb);}),this[_0x40eeee(0x240)]['urlChange$'][_0x40eeee(0x24d)](_0x323499(this['dispose$']))[_0x40eeee(0x25e)](()=>this[_0x40eeee(0x2f0)](_0x140609));}[_0x180295(0x1c3)](_0x2298a7,_0x4228b0=!0x1){const _0x2c0a59=_0x180295;let _0xbdd863=this[_0x2c0a59(0x240)][_0x2c0a59(0x211)](_0x2c0a59(0x347));_0x2298a7['getSheetId']()!==_0xbdd863&&this[_0x2c0a59(0x240)][_0x2c0a59(0x131)](_0x2c0a59(0x347),_0x2298a7[_0x2c0a59(0x148)](),_0x4228b0);}async['_updateSubUnitFromURLParams'](_0x29f654){const _0xd235b1=_0x180295;var _0x28801f;let _0x27ba38=this[_0xd235b1(0x240)]['getParam'](_0xd235b1(0x347));if(!_0x27ba38||!_0x29f654['getSheetBySheetId'](_0x27ba38)){let _0x1b854e=_0x29f654[_0xd235b1(0x2be)]()[0x0],_0x4dcf09=_0x29f654['getSheetBySheetId'](_0x1b854e);if(!_0x4dcf09)return;this[_0xd235b1(0x1c3)](_0x4dcf09,!0x0),await this[_0xd235b1(0xcc)][_0xd235b1(0x26b)](_0x4541f8['id'],{'unitId':_0x29f654[_0xd235b1(0x22b)](),'subUnitId':_0x1b854e});return;}((_0x28801f=_0x29f654[_0xd235b1(0x16a)]())==null?void 0x0:_0x28801f['getSheetId']())!==_0x27ba38&&await this['_commandService'][_0xd235b1(0x26b)](_0x4541f8['id'],{'unitId':_0x29f654[_0xd235b1(0x22b)](),'subUnitId':_0x27ba38});}};Kn=Y([J(0x0,Gn),J(0x1,_0xe47834),J(0x2,_0xfdef4),J(0x3,_0x2c46ac(_0x146d2a)),J(0x4,_0x2dc2f1(_0x4a164d))],Kn);let qn=class{constructor(_0x4f6394,_0x3c8ac7){const _0x5a5708=_0x180295;this['_transformService']=_0x4f6394,this[_0x5a5708(0x306)]=_0x3c8ac7;}[_0x180295(0x112)](_0x958e8b){const _0x1becd4=_0x180295;this[_0x1becd4(0xeb)](_0x958e8b),this[_0x1becd4(0x25b)](_0x958e8b);}[_0x180295(0x14e)](_0x1356d9){const _0x244b78=_0x180295;let {unitID:_0x3da7e4}=_0x1356d9,{redoCache:_0x1a5a8d}=this[_0x244b78(0x306)]['getRenderById'](_0x3da7e4)[_0x244b78(0x2af)](_0x44ab6d)['getUndoRedoMutationParamsCache']();if(_0x1a5a8d[_0x244b78(0x33b)]===0x0)return _0x1356d9;let _0x9e556=_0x2d178b['deepClone'](_0x1356d9[_0x244b78(0x186)][0x0]);for(let _0x4719b8=0x0;_0x4719b8<_0x1a5a8d['length'];_0x4719b8++){let _0x4c2940={'id':'doc.mutation.rich-text-editing','params':{..._0x1a5a8d[_0x4719b8]}},_0xeac7e5=this[_0x244b78(0x1c1)][_0x244b78(0xea)](_0x9e556,_0x4c2940,!0x1);if(_0x154fb1(_0xeac7e5))throw _0xeac7e5[_0x244b78(0x35d)];_0x9e556=_0xeac7e5['m1Prime'];}return{..._0x2d178b['deepClone'](_0x1356d9),'mutations':[_0x9e556]};}['_transformUndoRedoStack'](_0x4881b1){const _0x36776e=_0x180295;let {unitID:_0x4e33e5}=_0x4881b1,_0x348e89=this[_0x36776e(0x306)]['getRenderById'](_0x4e33e5)[_0x36776e(0x2af)](_0x44ab6d),{undoCache:_0x41997b,redoCache:_0x1fb2b4}=_0x348e89['getUndoRedoMutationParamsCache']();if(_0x41997b[_0x36776e(0x33b)]===0x0||_0x1fb2b4[_0x36776e(0x33b)]===0x0)return;let _0x4964ad=[],_0x20517f=[],_0x11f9be=_0x2d178b[_0x36776e(0x254)](_0x4881b1[_0x36776e(0x186)][0x0]),_0x9c07df=_0x2d178b['deepClone'](_0x4881b1[_0x36776e(0x186)][0x0]);for(let _0x39b10c=_0x41997b[_0x36776e(0x33b)]-0x1;_0x39b10c>=0x0;_0x39b10c--){let _0x51b372={'id':_0x36776e(0x1aa),'params':{..._0x41997b[_0x39b10c]}},_0x3fc9ec={'id':_0x36776e(0x1aa),'params':{..._0x1fb2b4[_0x39b10c]}},_0x2261f2=this[_0x36776e(0x1c1)][_0x36776e(0xea)](_0x11f9be,_0x51b372,!0x1),_0x13e855=this['_transformService']['transformMutation'](_0x9c07df,_0x3fc9ec,!0x1);if(_0x154fb1(_0x2261f2))throw _0x2261f2[_0x36776e(0x35d)];if(_0x154fb1(_0x13e855))throw _0x13e855[_0x36776e(0x35d)];_0x4964ad[_0x36776e(0x24b)](_0x2261f2[_0x36776e(0x1dd)][_0x36776e(0xdc)]),_0x20517f[_0x36776e(0x24b)](_0x13e855[_0x36776e(0x1dd)][_0x36776e(0xdc)]),_0x11f9be=_0x2261f2[_0x36776e(0x1ac)],_0x9c07df=_0x13e855[_0x36776e(0x1ac)];}_0x348e89[_0x36776e(0x338)]({'undoCache':_0x4964ad,'redoCache':_0x20517f});}[_0x180295(0x25b)](_0x55c286){const _0x295a03=_0x180295;let {unitID:_0xaa202}=_0x55c286,_0x1abef7=this[_0x295a03(0x306)]['getRenderById'](_0xaa202)['with'](_0x44ab6d),_0x58402a=_0x1abef7[_0x295a03(0x16c)]();if(_0x58402a==null)return;let _0x5151aa=[{'id':_0x295a03(0x1aa),'params':{'unitId':_0x55c286[_0x295a03(0x326)],'actions':null,'textRanges':[_0x58402a]}}],_0x9e921a=this[_0x295a03(0x1c1)][_0x295a03(0x323)](_0x55c286,_0x5151aa);if(!_0xd7d825(_0x9e921a))throw _0x9e921a[_0x295a03(0x35d)];let _0x1e72db=_0x9e921a[_0x295a03(0x1dd)][0x0][_0x295a03(0xdc)][_0x295a03(0x2d0)];Array['isArray'](_0x1e72db)&&_0x1e72db[_0x295a03(0x33b)]&&_0x1abef7[_0x295a03(0x2b7)](_0x1e72db[0x0]);}};qn=Y([J(0x0,_0x2e253c),J(0x1,_0x42ba88)],qn);let Jn=class{constructor(_0x4942c9,_0x545a31,_0x10da72){const _0x51188a=_0x180295;this[_0x51188a(0x250)]=_0x4942c9,this[_0x51188a(0x1c1)]=_0x545a31,this['_docStateChangeManagerService']=_0x10da72;}[_0x180295(0x358)](_0x3f0df9){const _0x598824=_0x180295;this[_0x598824(0x241)](_0x3f0df9);}['transformRemoteChangeset'](_0x5b38c0){const _0x4338d3=_0x180295;let {unitID:_0xa0fffd}=_0x5b38c0,{collaboration:_0x43697f}=this[_0x4338d3(0x31d)]['getStateCache'](_0xa0fffd);if(_0x43697f['length']===0x0)return _0x5b38c0;let _0x28085d=_0x2d178b[_0x4338d3(0x254)](_0x5b38c0[_0x4338d3(0x186)][0x0]);for(let _0x28ff88=0x0;_0x28ff88<_0x43697f[_0x4338d3(0x33b)];_0x28ff88++){let _0x27c7cf={'id':_0x4338d3(0x1aa),'params':{'unitId':_0x43697f[_0x28ff88][_0x4338d3(0xd2)],..._0x43697f[_0x28ff88][_0x4338d3(0x22a)]}},_0x10b8df=this[_0x4338d3(0x1c1)][_0x4338d3(0xea)](_0x28085d,_0x27c7cf,!0x1);if(_0x154fb1(_0x10b8df))throw _0x10b8df[_0x4338d3(0x35d)];_0x28085d=_0x10b8df['m1Prime'];}return{..._0x2d178b[_0x4338d3(0x254)](_0x5b38c0),'mutations':[_0x28085d]};}[_0x180295(0x241)](_0x205370){const _0x6e70c5=_0x180295;let {unitID:_0x2ec8e3}=_0x205370,{history:_0x4534fa,collaboration:_0x713aa2}=this[_0x6e70c5(0x31d)][_0x6e70c5(0x296)](_0x2ec8e3);if(_0x4534fa[_0x6e70c5(0x33b)]===0x0&&_0x713aa2[_0x6e70c5(0x33b)]===0x0)return;let _0x1adcb0=[],_0x3737f2=[],_0x245b7a=_0x2d178b[_0x6e70c5(0x254)](_0x205370[_0x6e70c5(0x186)][0x0]),_0x17e899=_0x2d178b['deepClone'](_0x205370[_0x6e70c5(0x186)][0x0]);for(let _0xa4a9af=_0x4534fa[_0x6e70c5(0x33b)]-0x1;_0xa4a9af>=0x0;_0xa4a9af--){let _0x1522a4={'id':_0x6e70c5(0x1aa),'params':{'unitId':_0x4534fa[_0xa4a9af]['unitId'],..._0x4534fa[_0xa4a9af]['undoState']}},_0x3ce21b={'id':_0x6e70c5(0x1aa),'params':{'unitId':_0x4534fa[_0xa4a9af]['unitId'],..._0x4534fa[_0xa4a9af][_0x6e70c5(0x22a)]}},_0x42e05e=this[_0x6e70c5(0x1c1)][_0x6e70c5(0xea)](_0x245b7a,_0x1522a4,!0x1),_0x469296=this[_0x6e70c5(0x1c1)][_0x6e70c5(0xea)](_0x17e899,_0x3ce21b,!0x1);if(_0x154fb1(_0x42e05e))throw _0x42e05e[_0x6e70c5(0x35d)];if(_0x154fb1(_0x469296))throw _0x469296[_0x6e70c5(0x35d)];_0x1adcb0[_0x6e70c5(0x24b)]({..._0x4534fa[_0xa4a9af],'undoState':_0x42e05e[_0x6e70c5(0x1dd)][_0x6e70c5(0xdc)],'redoState':_0x469296[_0x6e70c5(0x1dd)][_0x6e70c5(0xdc)]}),_0x245b7a=_0x42e05e[_0x6e70c5(0x1ac)],_0x17e899=_0x469296['m1Prime'];}_0x245b7a=_0x2d178b['deepClone'](_0x205370['mutations'][0x0]),_0x17e899=_0x2d178b[_0x6e70c5(0x254)](_0x205370[_0x6e70c5(0x186)][0x0]);for(let _0x429704=_0x713aa2[_0x6e70c5(0x33b)]-0x1;_0x429704>=0x0;_0x429704--){let _0xb776bc={'id':_0x6e70c5(0x1aa),'params':{'unitId':_0x713aa2[_0x429704]['unitId'],..._0x713aa2[_0x429704]['undoState']}},_0x7213ca={'id':_0x6e70c5(0x1aa),'params':{'unitId':_0x713aa2[_0x429704][_0x6e70c5(0xd2)],..._0x713aa2[_0x429704]['redoState']}},_0x369a5b=this[_0x6e70c5(0x1c1)]['transformMutation'](_0x245b7a,_0xb776bc,!0x1),_0x57f3fb=this['_transformService']['transformMutation'](_0x17e899,_0x7213ca,!0x1);if(_0x154fb1(_0x369a5b))throw _0x369a5b[_0x6e70c5(0x35d)];if(_0x154fb1(_0x57f3fb))throw _0x57f3fb[_0x6e70c5(0x35d)];_0x3737f2[_0x6e70c5(0x24b)]({..._0x713aa2[_0x429704],'undoState':_0x369a5b[_0x6e70c5(0x1dd)][_0x6e70c5(0xdc)],'redoState':_0x57f3fb[_0x6e70c5(0x1dd)][_0x6e70c5(0xdc)]}),_0x245b7a=_0x369a5b[_0x6e70c5(0x1ac)],_0x17e899=_0x57f3fb[_0x6e70c5(0x1ac)];}this['_docStateChangeManagerService']['setStateCache'](_0x2ec8e3,{'history':_0x1adcb0,'collaboration':_0x3737f2});}};Jn=Y([J(0x0,_0x2c46ac(_0x1237ae)),J(0x1,_0x2e253c),J(0x2,_0x2c46ac(_0x1c2025))],Jn);let Yn=class{constructor(_0x56dc11,_0x4bceea){const _0x4f5e77=_0x180295;this[_0x4f5e77(0x250)]=_0x56dc11,this[_0x4f5e77(0x1c1)]=_0x4bceea;}[_0x180295(0x28e)](_0x3b5ef7){const _0x5621bc=_0x180295;var _0x2d46c9;let _0x5cb2cc=this[_0x5621bc(0x250)][_0x5621bc(0x19b)](_0x326801),_0x216e66=(_0x2d46c9=_0x5cb2cc['getDocRanges']())==null?[]:_0x2d46c9;if(_0x216e66[_0x5621bc(0x33b)]===0x0)return;let _0x3f092c=_0x3b5ef7[_0x5621bc(0x326)],_0x1a49da=[{'id':_0x5621bc(0x1aa),'params':{'unitId':_0x3f092c,'actions':null,'textRanges':_0x216e66}}],_0x13c3c2=this[_0x5621bc(0x1c1)][_0x5621bc(0x323)](_0x3b5ef7,_0x1a49da);if(!_0xd7d825(_0x13c3c2))throw _0x13c3c2['error'];let _0x1e90ee=_0x13c3c2[_0x5621bc(0x1dd)][0x0][_0x5621bc(0xdc)][_0x5621bc(0x2d0)];Array[_0x5621bc(0x222)](_0x1e90ee)&&_0x1e90ee[_0x5621bc(0x33b)]&&_0x5cb2cc[_0x5621bc(0x2ad)](_0x1e90ee,{'unitId':_0x3f092c,'subUnitId':_0x3f092c},!0x1);}};Yn=Y([J(0x0,_0x2c46ac(_0x1237ae)),J(0x1,_0x2e253c)],Yn);let Xn=class extends _0x29f5c8{constructor(_0x200ad7,_0x3b53c8,_0x298f72,_0xc90824,_0x314e43,_0x2c6d15,_0x388381){const _0x3b9c53=_0x180295;super(),this[_0x3b9c53(0x2c7)]=_0x200ad7,this[_0x3b9c53(0x12f)]=_0x3b53c8,this[_0x3b9c53(0x233)]=_0x298f72,this['_docTransformSelectionsService']=_0xc90824,this[_0x3b9c53(0x311)]=_0x314e43,this[_0x3b9c53(0x1fa)]=_0x2c6d15,this[_0x3b9c53(0x19f)]=_0x388381,q(this,_0x3b9c53(0x161),new _0xca67ac(_0x59afca[_0x3b9c53(0x1a5)])),this['_initEntityListener']();}[_0x180295(0x2f2)](){const _0x3d50c=_0x180295;this[_0x3d50c(0x299)](this['_collaborationController'][_0x3d50c(0x292)][_0x3d50c(0x25e)](_0x25669c=>{const _0x25c259=_0x3d50c;_0x25669c instanceof _0x1daa24&&_0x25669c['addHandlerCallback']({'onTransformIME':_0x43e51e=>this[_0x25c259(0x12f)][_0x25c259(0x112)](_0x43e51e),'onTransformState':_0x29e6af=>this['_docTransformStateCacheService'][_0x25c259(0x358)](_0x29e6af),'onTransformSelections':_0x289de2=>this[_0x25c259(0x1c0)][_0x25c259(0x28e)](_0x289de2),'onSyncEditingCollabCursor':_0x98c840=>this[_0x25c259(0x311)][_0x25c259(0xfa)](_0x98c840),'onTransformRemoteChangesetByIMECache':_0x518276=>this[_0x25c259(0x12f)][_0x25c259(0x14e)](_0x518276),'onTransformRemoteChangesetByStateCache':_0x24a147=>this[_0x25c259(0x233)][_0x25c259(0x14e)](_0x24a147)});}));}};Xn=Y([J(0x0,_0x2c46ac(_0x3ee1a3)),J(0x1,_0x2c46ac(qn)),J(0x2,_0x2c46ac(Jn)),J(0x3,_0x2c46ac(Yn)),J(0x4,_0x2c46ac(An)),J(0x5,_0xcfc953),J(0x6,_0x2c46ac(_0x1c14e4))],Xn);function _0x163c(){const _0x55fc3e=['univer-text-gray-400','SYNCED','rgba','stack','reconnect','/universer-api/frontend/logs','saveOfflineData','pageManager','_messageService','delete','sheetID','imageSourceType','size','_checkAndWaitForCalculationPermission','prototype','roomMembers','1685vPaOsi','workbookShell','totalBlocks','color','_interactionBlocked$','collaboration-client-ui.session.connection-failed','red.300','_univerInstanceService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_sheetSkeletonManagerService','type','stage','yellow.400','getItem','spin','getParam','join','_entities','registerRefRange','board-collab-cursor-','enableLocalCache','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_hidePreview','snapshot-loading-interaction-guard','_showGuardMessage','Error','_disabled','1023ciZNHU','collaboration-client-ui.collabClient.tooltip.reconnect','_syncEditingCollabCursorService','collaboration-client-ui.permission.title','getConfig','isArray','fill','_assignedColors','_name','_handleJoinEvent','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','roomMembers$','_shapes','redoState','getUnitId','_init','_httpService','_maxFormulaLimit','offsetY','colno','_onCursorUpdate','_clearTimeoutState','_docTransformStateCacheService','subUnitId','slide-collab-cursor-','_getLighterColor','complete','indicator','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','RECT','_getSceneObjectByKey','transformByState','_removeClearOtherTimer','getUnit','_configService','_urlService','_transformHistoryAndStateStack','UNIVER_BOARD','_revisionService','_backgroundColor','includes','replace','stringify','getRealBound','findNodePositionByCharIndex','_sheetLoadingRenderService','unshift','OTHER_CLIENT_EDITING','pipe','wsSessionTicketUrl','_labelHorizontalPosition','_injector','getActiveSlide','collaboration-client-ui.session.will-retry','collaboration-client-ui.collaboration.single-unit.warning','deepClone','_initEvent','5538XqhdZx','#4f46e5','_blockProgressWatches','_startSlideCollabCursor','[Unhandled\x20Rejection]:\x20','_transformPreviousActiveRange','_drawAnchor','asObservable','subscribe','_offsetY','icon','strokeWidth','ticket','RemoveRowCommandId','dirtyRanges','collab-text-range-','SUBMIT_CHANGESET_TIMEOUT','_lastResponseTimestamp','31788rJBnDO','_checkCalculationAvailable','collaboration-client-ui.session.collaboration-timeout','executeCommand','_highlightSecond','body','_colorAssignService','1.0.0-alpha.7','selection','_registerDependencies','getViewport','_initCommandInterceptor','collaboration-client-ui.formula.calculation.unable','saveTaskMap','OFFLINE','collab-text-anchor-','_draw','[RemoteUniscriptService]:\x20no\x20focused\x20unit','addObjects','_getSheetLoadingRenderService','function','refreshLabel','_initUserListener','_removeCollabCursors','univer-text-blue-500','_themeService','ONLINE','timeoutId','onStarting','set','primary','_collabCursorController','alert','resolve','removeEventListener','sessionTicket','shift','univer-transition-all\x20univer-duration-200','transformSelections','_doCreateSocket','forceDisable','timedOut','entityInit$','getValue','_startCalculationLimit','getColorFromTheme','getStateCache','/universer-api/license/formula/limit/status','cursorInfo','disposeWithMe','unsubscribe','COMPLETE','_anchor','angle','_createSocketURL','?taskId=','_startDocCollabCursor','JOIN_ROOM_FAILED','_updateMessage','UNIVER_SHEET','CLOSE_ROOM','triggerDblclick','socket$','_releaseCalculationLimit','collaboration-client-ui.formula.calculation.waiting','invokeId','unhandledrejection','_context','_document','replaceDocRanges','subscribeEvent','with','_boardElementStateService','unload','VIEW_MAIN','getCollabEntity$','setAlpha','button','reason','setActiveRange','transform','currentUsage','data','tooltipKey','focused$','requireSession','getUnhiddenWorksheets','_scene','showSkeleton','_docSkeletonManagerService','setLineDash','evenodd','endColumn','engine','enableFrontendLog','_collaborationController','_getSaveTimeout','_currentUsage','drawWith','getUniverSheetInstance','ACTIVE_UNIT_EVENT_CHANNEL','timeoutState$','saveImage','loadOfflineData','textRanges','collaboration-client-ui.snapshotLoading.timeout','snapshot-loading-','has','memberID','_clearPolling','fillRule','_startBoardCollabCursor','call','collaboration-client-ui.config','collaboration-client-ui.collabStatus.fetchMiss','0.2)','decorate','collaboration-client-ui.collabStatus.syncing','black','clear','getTypeOfUnitAdded$','setConfig','status$','range','_hover','16cyWbPm','_slideDrawingStateService','slice','dispose$','_shortcutBlock','getCollabCursors$','_scheduleClearOtherTimer','registerComponent','_scheduleRender','slide-element-selection','symbol','_updateSubUnitFromURLParams','collaboration-client-ui.permission.content','_initEntityListener','activeSlideId$','i18nKey','lineTo','collaboration-client-ui.collaboration.offline-data-not-saved','getOffsetConfig','[CollaborationDataLoaderController]','FETCH_MISS','whenReady','_config','selections','previewReady','univer-text-orange-500','reload','loadedBlocks','history','values','getCurrentUnitOfType','enableDocumentCollaborationUI','univer-appearance-none','_renderManagerService','setOffsetY','_showText','_messageIds','/universer-api/license/formula/limit/done','split','bold\x2013px\x20Arial,\x20sans-serif','_setFormulaLimitStatus','currentSkeleton$','_scheduleHeartbeat','activeSheet$','_docSyncEditingCollabCursorService','push','SOCKET_FAILED','executionId','makeDirty','_taskIds','_getMergeRange','PENDING','kind','_latestCursors','collaboration-client-ui.formula.calculation.started','getTypeOfUnitDisposed$','_docStateChangeManagerService','highlightSecond','activeSheetId','status','_watchBlockProgress','_anchorDot','transformMutationsWithChangeset','_render','toISOString','unitID','getCurrentRevOfUnit','_beforeCloseService','preventDefault','_unitOnClients','_hasFormulaInDirtyRanges','functionsExecutedState','_initStatusComponent','getActivePageId','defineProperty','AWAITING','DeleteRangeMoveLeftCommandId','getRangePointData','bottom','_uploadLog','green.600','getObject','_shortcutService','setUndoRedoMutationParamsCache','UPDATE_CURSOR','map','length','snapshot-loading-timeout','highlight','_drawRectRange','catch','stageInfo','now','packageName','strokeStyle','_roomMembers$','\x20-\x20','column','subunit','content','_cachedData','clearInterval','18nkmvDN','_imageIoService','_colorIndex','createInstance','onPointerLeave$','231dGcvXj','addClipboardHook','_stopBlinking','getUnitStatus$','font','collaboration-client-ui.conflict.title','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_snapshotLoadingService','transformStateCache','getOwnPropertyDescriptor','exhaustSavingTask','_cursorShapes','fillText','error','filename','_handleHeartbeatEvent','getMemberID','_session','max','getCurrentTypeOfUnit$','_unitStatus','span','bind','getSheetBySheetId','onCommandExecuted','_latestStates','_setupBeforeClosingHandler','_commandService','_handleHover','blue.400','left','collaboration-client-ui.collaboration.closeRoom','rgb','unitId','1510370EUPbmt','setInterval','static','polite','getCellPositionByOffset','add','filter','ranges','isActive','params','_handoffUnitIds','Failed','_pointerMoveDisposable','createSocket','hovered','collaboration-client-ui.collabStatus.offline','urlChange$','object','/universer-api/license/formula/limit/start','fillStyle','theme$','registerBeforeClose','labelHorizontalPosition','transformMutation','_transformUndoRedoStack','hide','href','collaboration-client-ui.collabStatus.synced','some','_startBlinking','getObjectIncludeInGroup','getFormulaLimitStatusUrl','sessionStatus$','disposeUnit','startRow','univer-text-red-500','focusedId','getCurrentSelections','all','syncEditingCollabCursor','key','init','context','_localStorageService','USERS_LEAVE','CONFLICT','true','_isVisibleUnit','_cursorInfo$','rgba(255,\x20255,\x20255,\x200.01)','onRendered','Enter','getSnapshot','show','_uiPartsService','_instanceService','_setInteractionBlocked',',\x200.2)','showText','small','startsWith','_collabSessionService','_selfUnitIDs','transformIMECache','_initWindowErrorListener','_hideTimer','_notificationService','toRgbString','...','backupOfflineData','replaceState','collaboration-client-ui.snapshotLoading.loadingSheet','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','next','endRow','_registerRenderDependencies','_textBubble','origin','/run/','pushState','row','_isApplyingOverlays','_scheduleSaving','_collaborationUIEventService','InsertRangeMoveRightCommandId','928iuiTHy','handoff','InsertColCommandId','getVpScrollXYInfoByPosToVp','18723NxvrPg','_onRefRangeChange','location','_docTransformIMECacheService','removeObjects','setParam','_updateSheetPreview','uni.network.url-service','_refreshCollabCursors','onPointerEnter$','_previewUnitId','toString','_initCommandExecutedListener','getRelativeToViewportCoord','rgba(','UNIVER_SLIDE','_dataLoaderService','_docClipboardService','_getSheetObject','name','_refRangeService','state$','addEventListener','InsertRowCommandId','_startSheetCollabCursor','_collaborationSessionService','removeParam','_color','getSheetId','toPrimitive','_toggleOnline','_send','_range','min','transformRemoteChangeset','width','UNIVER_DOC','_eventUnsubscribe','_pollingInterval','FromArray','_pluginService','SOCKET_FAILED_RETRY','_online','event$','[LogService\x20Error]:\x20','_isBlinkVisible','\x20at\x20','_entityInit$','cursorInfo$','purple.300','unit','_onCursorDelete','_toggleOffline','_status$','restore','value','strokeRect','LOADING_SNAPSHOT','labelPosition','contains','univer-text-green-500','setItem','getActiveSheet','_memberID','getActiveRange','_clearBlockProgressWatch','arc','_updateCollabCursors','_getScale','send','getSkeleton','univer-flex\x20univer-items-center\x20univer-justify-center','addObject','_cursors','_initStatusListener','newValue','scene','Warning','getMember','clearTimeout','Success','469592qZZjIV','RemoveColCommandId','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-white\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-white','76932ysdPtL','_setupSubUnitSync','@univerjs-pro/collaboration-client-ui','lineno','assignAColorForMemberID','jiqing.500','mutations','univer-fixed\x20univer-inset-0\x20univer-z-[1000]\x20univer-cursor-wait','_handleEvent','measureText','univer-border-none\x20univer-bg-transparent','_saveCache','_localCacheService','_handoffPreview','_saveTaskMap','find','_initResize','text','remove',':backup:','TEXT','searchParams','iterator','application/json','override','Loading','_getAnchorBounding','get','getFocusedUnit','save','runId','_localeService','div','from','_timeoutState$','_getObjectBounds','currentTheme$','NOT_COLLAB','_hovered','height','ERROR','parse','doc.mutation.rich-text-editing','_lastPointer','m1Prime','_getSessionTicket','closePath','_cursor','_getFormulaLimitStatus','_blinkIntervalTimer','code','registerRenderModule','getId','getCurrentSkeleton','_initDependencies','default','_clearOtherTimers','loadUnit','post','Unknown\x20user','_renderScheduled','message','_blinkTimer','_monkeyPatchLogService','_docTransformSelectionsService','_transformService','setShapeProps','_updateURLWithCurrentState','getAncestorScale','onTransformChange$','collaboration-client-ui.collabStatus.notCollab','_id','runOnServer','_highlight','_updateLocalCursor','startColumn','setTimeout','addObject$','updateOfflineData','parseInt','forEach','_heartbeatTimer','limitInfo','isEditing','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_drawTextRange','search','board-element-selection','onMouseMove','_applyCommand','_ensureSubject','onPointerMove$','eventID','m2Prime','selectedIds','MoveRangeCommandId','clickable','top','START_CALCULATION','getMergeData','string','collab-rect-range-','OTHER_CLIENTS_EDITING','_logService','HEADER_MENU','_memberService','then','_labelPosition','_initUnhandledRejectionListener','dispose','NO_OTHER_CLIENTS_EDITING','removeObject','sheetId','LOADING_BLOCKS'];_0x163c=function(){return _0x55fc3e;};return _0x163c();}let Zn=class extends _0x29f5c8{constructor(_0x2cf963,_0x447f5a,_0x56d7a3,_0x4fb8ec){const _0x4aa0e4=_0x180295;super(),this['_injector']=_0x2cf963,this['_httpService']=_0x447f5a,this[_0x4aa0e4(0x1e7)]=_0x56d7a3,this[_0x4aa0e4(0x145)]=_0x4fb8ec,q(this,'_memberID',void 0x0),this['_init']();}[_0x180295(0x22c)](){const _0x96861a=_0x180295;this[_0x96861a(0x113)](),this['_initUnhandledRejectionListener'](),this[_0x96861a(0x1bf)](),this[_0x96861a(0x27e)]();}[_0x180295(0x27e)](){const _0x589144=_0x180295;this[_0x589144(0x299)](this[_0x589144(0x145)][_0x589144(0x2a6)][_0x589144(0x25e)](_0x4e408e=>{const _0x5aef5c=_0x589144;this[_0x5aef5c(0x16b)]=_0x4e408e==null?void 0x0:_0x4e408e[_0x5aef5c(0x2d4)];}));}[_0x180295(0x113)](){const _0x5ed9e8=_0x180295;let _0x1fc203=_0x1e05da=>{const _0x234e4b=_0x1f19;var _0x75a660;this[_0x234e4b(0x334)](_0x234e4b(0x35d),'[Window\x20Error]:\x20'+_0x1e05da[_0x234e4b(0x1bd)]+_0x234e4b(0x15a)+_0x1e05da[_0x234e4b(0x35e)]+':'+_0x1e05da[_0x234e4b(0x183)]+':'+_0x1e05da[_0x234e4b(0x230)]+'\x0a'+(((_0x75a660=_0x1e05da[_0x234e4b(0x35d)])==null?void 0x0:_0x75a660[_0x234e4b(0x1f5)])||''));};window[_0x5ed9e8(0x142)](_0x5ed9e8(0x35d),_0x1fc203),this['disposeWithMe'](()=>{window['removeEventListener']('error',_0x1fc203);});}[_0x180295(0x1ec)](){const _0x21d8ea=_0x180295;let _0x3d186c=_0x5db880=>{const _0x1e40e1=_0x1f19;this[_0x1e40e1(0x334)]('error',_0x1e40e1(0x25a)+_0x5db880[_0x1e40e1(0x2b6)]);};window[_0x21d8ea(0x142)](_0x21d8ea(0x2aa),_0x3d186c),this['disposeWithMe'](()=>{const _0x36af05=_0x21d8ea;window[_0x36af05(0x28a)]('unhandledrejection',_0x3d186c);});}[_0x180295(0x1bf)](){const _0x5a875a=_0x180295;let _0xa953d2=this['_logService'][_0x5a875a(0x35d)][_0x5a875a(0x366)](this[_0x5a875a(0x1e7)]);this['_logService'][_0x5a875a(0x35d)]=(..._0x5da1f8)=>{const _0x6cbde2=_0x5a875a;let _0x5423fe=_0x5da1f8[_0x6cbde2(0x33a)](_0x3466ad=>_0x3466ad instanceof Error?_0x3466ad[_0x6cbde2(0x1bd)]+'\x0a'+_0x3466ad['stack']:String(_0x3466ad))[_0x6cbde2(0x212)]('\x20');this['_uploadLog'](_0x6cbde2(0x35d),_0x6cbde2(0x158)+_0x5423fe),_0xa953d2(..._0x5da1f8);},this[_0x5a875a(0x299)](()=>{const _0x1614c2=_0x5a875a;this['_logService'][_0x1614c2(0x35d)]=_0xa953d2;});}[_0x180295(0x334)](_0x5a0474,_0x5e11d0){const _0xf843e1=_0x180295;try{let _0x3b172c={'userId':this['_memberID'],'logLabel':_0x5a0474,'content':_0x5e11d0};this[_0xf843e1(0x22d)][_0xf843e1(0x1ba)](_0xf843e1(0x1f7),{'body':_0x3b172c})[_0xf843e1(0x33f)](()=>{});}catch{}}};Zn=Y([J(0x0,_0x2c46ac(_0x1237ae)),J(0x1,_0x2c46ac(_0x5ebf20)),J(0x2,_0xe47834),J(0x3,_0x2c46ac(_0x15d204))],Zn);function Qn({state$:_0x48d6b1,interactionBlocked$:_0x55124f}){const _0x5954fb=_0x180295;return _0x5b03b8(_0xd0f0a5,{'children':[_0x199906(_0x55124f,!0x1,!0x0)&&_0x485da0(_0x5954fb(0x1a0),{'data-u-comp':_0x5954fb(0x219),'aria-hidden':!0x0,'className':_0x5954fb(0x187)}),_0x485da0($n,{'state$':_0x48d6b1})]});}function $n({state$:_0x897bbc}){const _0x265690=_0x180295;let _0x58f89b=_0x199906(_0x897bbc,null,!0x0);return _0x58f89b?_0x5b03b8(_0x265690(0x1a0),{'data-u-comp':_0x265690(0x33c),'role':_0x265690(0x288),'className':_0x265690(0x17f),'children':[_0x485da0(_0x562a85,{'className':_0x265690(0x239)}),_0x485da0(_0x265690(0x365),{'children':_0x58f89b[_0x265690(0x348)]}),_0x485da0(_0x3024f7,{'size':_0x265690(0x10e),'variant':_0x265690(0x286),'onClick':()=>window[_0x265690(0x12e)][_0x265690(0x2ff)](),'children':_0x58f89b[_0x265690(0x27d)]})]}):null;}const er=_0x180295(0x2d2);let tr=class extends _0x29f5c8{constructor(_0x38d7ee,_0x1c6240,_0x335380,_0xe0cf1a,_0x345389,_0x90ebcd,_0x6ad8f5,_0x24bd0){const _0x41f790=_0x180295;super(),this[_0x41f790(0x357)]=_0x38d7ee,this[_0x41f790(0x1fa)]=_0x1c6240,this['_localeService']=_0x335380,this[_0x41f790(0x250)]=_0xe0cf1a,this['_pluginService']=_0x345389,this['_shortcutService']=_0x6ad8f5,this[_0x41f790(0x240)]=_0x24bd0,q(this,_0x41f790(0x1a2),new _0xca67ac(null)),q(this,_0x41f790(0x206),new _0xca67ac(!0x1)),q(this,_0x41f790(0x309),new Set()),q(this,'_blockProgressWatches',new Map()),q(this,_0x41f790(0xdd),new Set()),q(this,_0x41f790(0xca),new Map()),q(this,'_previewUnitId',void 0x0),q(this,_0x41f790(0x2e9),void 0x0),q(this,_0x41f790(0x24a),void 0x0),q(this,_0x41f790(0x2cd),this[_0x41f790(0x1a2)]['asObservable']());let _0x47c139=()=>_0x4edf11(Qn,{'state$':this[_0x41f790(0x2cd)],'interactionBlocked$':this[_0x41f790(0x206)]});this[_0x41f790(0x299)](_0x90ebcd['registerComponent'](_0x24e304['GLOBAL'],()=>_0x1f3cf8(_0x47c139,this[_0x41f790(0x250)]))),this[_0x41f790(0x299)](this[_0x41f790(0x357)][_0x41f790(0x141)][_0x41f790(0x25e)](_0x1093b4=>{const _0x1d579b=_0x41f790;this[_0x1d579b(0xca)]=_0x1093b4,_0x1093b4[_0x1d579b(0x1d0)](_0x4471ac=>{const _0x102c27=_0x1d579b;this[_0x102c27(0x2a2)](_0x4471ac),this[_0x102c27(0x132)](_0x4471ac);});})),this[_0x41f790(0x299)](this[_0x41f790(0x240)][_0x41f790(0xe3)]['subscribe'](()=>{const _0x111b56=_0x41f790;this[_0x111b56(0xca)][_0x111b56(0x1d0)](_0x456626=>{const _0x6fca58=_0x111b56;this['_updateMessage'](_0x456626),this[_0x6fca58(0x132)](_0x456626);});}));}[_0x180295(0x1ed)](){const _0x2c5518=_0x180295;var _0x4644c2;if(this[_0x2c5518(0x309)][_0x2c5518(0x1d0)](_0x40fbee=>this[_0x2c5518(0x1fa)][_0x2c5518(0x192)](_0x40fbee)),this[_0x2c5518(0x309)][_0x2c5518(0x2df)](),this['_previewUnitId']){var _0xa302ca;(_0xa302ca=this[_0x2c5518(0x24a)])==null||_0xa302ca[_0x2c5518(0xec)](this[_0x2c5518(0x136)]);}this['_previewUnitId']=void 0x0,this['_blockProgressWatches'][_0x2c5518(0x1d0)](({timeoutId:_0x22c037})=>clearTimeout(_0x22c037)),this['_blockProgressWatches'][_0x2c5518(0x2df)](),(_0x4644c2=this[_0x2c5518(0x2e9)])==null||_0x4644c2[_0x2c5518(0x1ed)](),this['_shortcutBlock']=void 0x0,this[_0x2c5518(0x1a2)][_0x2c5518(0x237)](),this[_0x2c5518(0x206)]['complete'](),super[_0x2c5518(0x1ed)]();}[_0x180295(0x2a2)](_0x1e4bb5){const _0x35f651=_0x180295;let _0x3cb857=''+er+_0x1e4bb5[_0x35f651(0xd2)];if(_0x1e4bb5[_0x35f651(0x20d)]===_0x26ace9[_0x35f651(0x29b)]){if(this[_0x35f651(0x16d)](_0x1e4bb5[_0x35f651(0xd2)]),this['_isVisibleUnit'](_0x1e4bb5[_0x35f651(0xd2)])&&this['_previewUnitId']===_0x1e4bb5[_0x35f651(0xd2)]){this['_messageService']['show']({'id':_0x3cb857,'type':_0x211eee[_0x35f651(0x199)],'duration':0x1/0x0,'content':this['_localeService']['t'](_0x35f651(0x11a))}),this['_messageIds'][_0x35f651(0xd8)](_0x3cb857);return;}this[_0x35f651(0x232)](_0x1e4bb5['unitId']),this[_0x35f651(0x1fa)][_0x35f651(0x192)](_0x3cb857),this['_messageIds'][_0x35f651(0x1fb)](_0x3cb857);return;}if(!this[_0x35f651(0x102)](_0x1e4bb5[_0x35f651(0xd2)])){this[_0x35f651(0x16d)](_0x1e4bb5[_0x35f651(0xd2)]),this[_0x35f651(0x232)](_0x1e4bb5[_0x35f651(0xd2)]),this['_messageService']['remove'](_0x3cb857),this[_0x35f651(0x309)][_0x35f651(0x1fb)](_0x3cb857);return;}if(_0x1e4bb5[_0x35f651(0x20d)]===_0x26ace9[_0x35f651(0x1a8)]){this[_0x35f651(0x16d)](_0x1e4bb5[_0x35f651(0xd2)]),this[_0x35f651(0x232)](_0x1e4bb5[_0x35f651(0xd2)]),this[_0x35f651(0x1fa)][_0x35f651(0x108)]({'id':_0x3cb857,'type':_0x211eee[_0x35f651(0x21b)],'content':this[_0x35f651(0x19f)]['t'](_0x35f651(0x207))}),this[_0x35f651(0x309)][_0x35f651(0x1fb)](_0x3cb857);return;}if(_0x1e4bb5[_0x35f651(0x20d)]!==_0x26ace9['LOADING_BLOCKS']||_0x1e4bb5['totalBlocks']<=0xa){this[_0x35f651(0x16d)](_0x1e4bb5[_0x35f651(0xd2)]),this[_0x35f651(0x1fa)][_0x35f651(0x192)](_0x3cb857),this['_messageIds'][_0x35f651(0x1fb)](_0x3cb857);return;}this[_0x35f651(0x321)](_0x1e4bb5)||(this[_0x35f651(0x1fa)]['show']({'id':_0x3cb857,'type':_0x211eee[_0x35f651(0x199)],'duration':0x1/0x0,'content':this[_0x35f651(0x19f)]['t'](_0x35f651(0x2da))+'\x20'+_0x1e4bb5[_0x35f651(0x300)]+'/'+_0x1e4bb5[_0x35f651(0x204)]}),this[_0x35f651(0x309)]['add'](_0x3cb857));}[_0x180295(0x321)](_0x11664f){const _0x5a38ae=_0x180295;let _0x13f9e2=this['_blockProgressWatches'][_0x5a38ae(0x19b)](_0x11664f[_0x5a38ae(0xd2)]);if((_0x13f9e2==null?void 0x0:_0x13f9e2[_0x5a38ae(0x300)])===_0x11664f[_0x5a38ae(0x300)])return _0x13f9e2[_0x5a38ae(0x291)];this[_0x5a38ae(0x16d)](_0x11664f['unitId']);let _0x2a967c=setTimeout(()=>{const _0x394ee4=_0x5a38ae;let _0x5c60aa=this[_0x394ee4(0x258)][_0x394ee4(0x19b)](_0x11664f[_0x394ee4(0xd2)]);if(!_0x5c60aa||_0x5c60aa[_0x394ee4(0x283)]!==_0x2a967c)return;_0x5c60aa['timedOut']=!0x0;let _0x589a55=''+er+_0x11664f[_0x394ee4(0xd2)];this['_messageService'][_0x394ee4(0x192)](_0x589a55),this[_0x394ee4(0x309)]['delete'](_0x589a55),this[_0x394ee4(0x1a2)][_0x394ee4(0x11c)]({'unitId':_0x11664f['unitId'],'content':this[_0x394ee4(0x19f)]['t'](_0x394ee4(0x2d1),String(_0x11664f[_0x394ee4(0x300)]),String(_0x11664f[_0x394ee4(0x204)])),'refreshLabel':this[_0x394ee4(0x19f)]['t']('collaboration-client-ui.snapshotLoading.refresh')});},0xea60);return this[_0x5a38ae(0x258)]['set'](_0x11664f[_0x5a38ae(0xd2)],{'loadedBlocks':_0x11664f['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x2a967c}),!0x1;}[_0x180295(0x16d)](_0x46800d){const _0x9104eb=_0x180295;let _0x172382=this[_0x9104eb(0x258)][_0x9104eb(0x19b)](_0x46800d);_0x172382&&(clearTimeout(_0x172382[_0x9104eb(0x283)]),this[_0x9104eb(0x258)][_0x9104eb(0x1fb)](_0x46800d),this[_0x9104eb(0x232)](_0x46800d));}[_0x180295(0x232)](_0x167459){const _0x4ab6eb=_0x180295;var _0x4617cd;((_0x4617cd=this[_0x4ab6eb(0x1a2)][_0x4ab6eb(0x163)])==null?void 0x0:_0x4617cd[_0x4ab6eb(0xd2)])===_0x167459&&this[_0x4ab6eb(0x1a2)]['next'](null);}[_0x180295(0x132)](_0x5a0a07){const _0x474031=_0x180295;if(_0x5a0a07[_0x474031(0x20d)]===_0x26ace9[_0x474031(0x165)]&&this[_0x474031(0xdd)][_0x474031(0x1fb)](_0x5a0a07['unitId']),!this[_0x474031(0x102)](_0x5a0a07[_0x474031(0xd2)])){this[_0x474031(0x218)](_0x5a0a07['unitId']);return;}if(_0x5a0a07['stage']===_0x26ace9[_0x474031(0x1a8)]||_0x5a0a07[_0x474031(0x204)]<=0xa){this[_0x474031(0x218)](_0x5a0a07[_0x474031(0xd2)]);return;}if(_0x5a0a07[_0x474031(0x20d)]===_0x26ace9['COMPLETE']){this[_0x474031(0x18d)](_0x5a0a07[_0x474031(0xd2)]);return;}if(_0x5a0a07[_0x474031(0x20d)]===_0x26ace9[_0x474031(0x1f1)]&&_0x5a0a07[_0x474031(0x203)]&&_0x5a0a07['activeSheetId']){let _0x5ad100=this[_0x474031(0x27b)]();if(!_0x5ad100)return;this['_previewUnitId']&&this['_previewUnitId']!==_0x5a0a07[_0x474031(0xd2)]&&this[_0x474031(0x218)](this[_0x474031(0x136)]),_0x5ad100[_0x474031(0x2c0)](_0x5a0a07[_0x474031(0x203)],_0x5a0a07[_0x474031(0x31f)]),this[_0x474031(0x136)]=_0x5a0a07[_0x474031(0xd2)],this[_0x474031(0x10b)](!0x0),_0x5a0a07[_0x474031(0x2fd)]&&_0x5ad100[_0x474031(0x108)](_0x5a0a07[_0x474031(0x203)],_0x5a0a07[_0x474031(0x31f)],_0x5a0a07['previewCellData']);}}[_0x180295(0x18d)](_0x46a8be){const _0x4a01be=_0x180295;if(this['_previewUnitId']!==_0x46a8be||this[_0x4a01be(0xdd)][_0x4a01be(0x2d3)](_0x46a8be))return;let _0x2b5e7b=this['_sheetLoadingRenderService'];_0x2b5e7b&&(this[_0x4a01be(0xdd)][_0x4a01be(0xd8)](_0x46a8be),_0x2b5e7b[_0x4a01be(0x129)](_0x46a8be,0x2710)[_0x4a01be(0x1ea)](_0x20a2a0=>{const _0x59e681=_0x4a01be;if(this[_0x59e681(0x136)]!==_0x46a8be)return;if(_0x20a2a0){let _0x87b869=''+er+_0x46a8be;this[_0x59e681(0x1fa)][_0x59e681(0x192)](_0x87b869),this[_0x59e681(0x309)][_0x59e681(0x1fb)](_0x87b869),this[_0x59e681(0x136)]=void 0x0,this[_0x59e681(0x10b)](!0x1);return;}let _0x4d9bcb=''+er+_0x46a8be;this[_0x59e681(0x1fa)][_0x59e681(0x192)](_0x4d9bcb),this['_messageIds'][_0x59e681(0x1fb)](_0x4d9bcb),this[_0x59e681(0x1a2)]['next']({'unitId':_0x46a8be,'content':this[_0x59e681(0x19f)]['t'](_0x59e681(0x207)),'refreshLabel':this[_0x59e681(0x19f)]['t']('collaboration-client-ui.snapshotLoading.refresh')});}));}[_0x180295(0x218)](_0x1534fa){const _0x2a0390=_0x180295;var _0x3b5fc4;this[_0x2a0390(0x136)]===_0x1534fa&&((_0x3b5fc4=this[_0x2a0390(0x24a)])==null||_0x3b5fc4['hide'](_0x1534fa),this[_0x2a0390(0x136)]=void 0x0,this['_setInteractionBlocked'](!0x1));}[_0x180295(0x10b)](_0x532f2b){const _0x29dedc=_0x180295;if(_0x532f2b!==this['_interactionBlocked$']['value']){if(_0x532f2b)this[_0x29dedc(0x2e9)]=this[_0x29dedc(0x337)][_0x29dedc(0x290)]();else{var _0x527f93;(_0x527f93=this['_shortcutBlock'])==null||_0x527f93[_0x29dedc(0x1ed)](),this[_0x29dedc(0x2e9)]=void 0x0;}this['_interactionBlocked$'][_0x29dedc(0x11c)](_0x532f2b);}}['_isVisibleUnit'](_0x1d99ed){const _0x49d51a=_0x180295;let _0x554150=this['_urlService']['getParam'](_0x49d51a(0x15e));return!_0x554150||_0x554150===_0x1d99ed;}[_0x180295(0x27b)](){const _0x42bcea=_0x180295;return this[_0x42bcea(0x24a)]?this[_0x42bcea(0x24a)]:(this[_0x42bcea(0x154)]['startPluginsForType'](_0x56bd01[_0x42bcea(0x2a3)]),this['_injector'][_0x42bcea(0x2d3)](_0x15fbe5)&&(this[_0x42bcea(0x24a)]=this[_0x42bcea(0x250)]['get'](_0x15fbe5)),this[_0x42bcea(0x24a)]);}};tr=Y([J(0x0,_0x2c46ac(_0x112286)),J(0x1,_0xcfc953),J(0x2,_0x2c46ac(_0x1c14e4)),J(0x3,_0x2c46ac(_0x1237ae)),J(0x4,_0x2c46ac(_0x5e3584)),J(0x5,_0x12b2df),J(0x6,_0x3cd818),J(0x7,Gn)],tr);function nr(_0x4af334){const _0x2a3e6b=_0x180295;var _0xb96849,_0x2b919c;let _0x26cf1c=(_0xb96849=_0x4af334[_0x2a3e6b(0x340)])==null?void 0x0:_0xb96849['stage'],_0x1d6f7f=((_0x2b919c=_0x4af334['stageInfo'])==null?void 0x0:_0x2b919c['totalFormulasToCalculate'])||0x0;return _0x26cf1c===_0x9743e5[_0x2a3e6b(0x1e2)]&&_0x1d6f7f>0x0;}function rr(_0x3e6004){const _0x3ad7f9=_0x180295;return _0x3e6004[_0x3ad7f9(0x32c)]===_0x5f12f1['SUCCESS'];}let ir=class extends _0x29f5c8{constructor(_0x8a9dff,_0x229322,_0x395945,_0x395f9f,_0x47f111,_0x18b8b6,_0x9ae943){const _0x3b51d8=_0x180295;super(),this[_0x3b51d8(0x1fa)]=_0x8a9dff,this[_0x3b51d8(0xcc)]=_0x229322,this['_configService']=_0x395945,this['_httpService']=_0x395f9f,this[_0x3b51d8(0x209)]=_0x47f111,this[_0x3b51d8(0x1e7)]=_0x18b8b6,this[_0x3b51d8(0x19f)]=_0x9ae943,q(this,_0x3b51d8(0x152),null),q(this,_0x3b51d8(0x22e),0x0),q(this,_0x3b51d8(0x2c9),0x0),q(this,_0x3b51d8(0x316),[]),q(this,_0x3b51d8(0x267),0x0),this[_0x3b51d8(0x273)]();}[_0x180295(0x273)](){const _0x3a998c=_0x180295;this['disposeWithMe'](this[_0x3a998c(0xcc)]['beforeCommandExecuted']((_0x1c635d,_0x1d0f6b)=>{const _0x448e29=_0x3a998c;var _0x26e2a3;if(_0x1c635d['id']!==_0x5c5a39['id'])return;let _0x517782=_0x1c635d[_0x448e29(0xdc)];if(this[_0x448e29(0x32b)]((_0x26e2a3=_0x517782[_0x448e29(0x264)])==null?[]:_0x26e2a3)&&!this[_0x448e29(0x269)]())throw this[_0x448e29(0x1ff)](_0x1c635d,_0x1d0f6b),this['_showGuardMessage'](),new _0x5154ab();})),this[_0x3a998c(0x299)](this['_commandService']['onCommandExecuted']((_0x12c2e9,_0x22bc58)=>{const _0x48265b=_0x3a998c;if(_0x12c2e9['id']!==_0x60e275['id'])return;let _0x488ac9=_0x12c2e9['params'];if(nr(_0x488ac9)){let _0x4752c9=_0x3046d0();this['_taskIds'][_0x48265b(0x312)](_0x4752c9),this[_0x48265b(0x294)](_0x4752c9);}else{if(rr(_0x488ac9)&&this['_taskIds']['length']>0x0){let _0x37b3f0=this['_taskIds'][_0x48265b(0x28c)]();this[_0x48265b(0x2a7)](_0x37b3f0);}}}));}['dispose'](){const _0x44badf=_0x180295;super[_0x44badf(0x1ed)](),this[_0x44badf(0x2d5)](),this[_0x44badf(0x316)]=[],this['_currentUsage']=0x0,this[_0x44badf(0x22e)]=0x0,this[_0x44badf(0x267)]=0x0;}async[_0x180295(0x1ff)](_0x31bb84,_0x443fb4){const _0x212861=_0x180295;for(let _0x4b3d3d=0x0;_0x4b3d3d<0x1e;_0x4b3d3d++)try{if(await this[_0x212861(0x1b0)](),this[_0x212861(0x269)]()){this[_0x212861(0x1d9)](_0x31bb84,_0x443fb4),this[_0x212861(0x1fa)][_0x212861(0x108)]({'content':this[_0x212861(0x19f)]['t'](_0x212861(0x31b)),'type':_0x211eee[_0x212861(0x17c)]});return;}await new Promise(_0x2599b9=>{const _0x3eaf0a=_0x212861;this[_0x3eaf0a(0x152)]=window[_0x3eaf0a(0x1cc)](_0x2599b9,0x3e8);});}catch(_0x2f305b){this[_0x212861(0x1e7)][_0x212861(0x35d)](_0x2f305b);}this[_0x212861(0x1fa)][_0x212861(0x108)]({'content':this[_0x212861(0x19f)]['t'](_0x212861(0x274)),'type':_0x211eee[_0x212861(0x21b)]});}[_0x180295(0x1d9)](_0x4b86e2,_0x50821a){const _0x3347fa=_0x180295;try{this[_0x3347fa(0xcc)][_0x3347fa(0x26b)](_0x4b86e2['id'],_0x4b86e2['params'],_0x50821a);}catch(_0x4786a8){this[_0x3347fa(0x1e7)][_0x3347fa(0x35d)](_0x4786a8);}}['_setFormulaLimitStatus'](_0x1b15f8,_0x568ce7){const _0xd0cbca=_0x180295;_0x568ce7<this[_0xd0cbca(0x267)]||(this[_0xd0cbca(0x267)]=_0x568ce7,this[_0xd0cbca(0x22e)]=Number[_0xd0cbca(0x1cf)](_0x1b15f8['maxFormulaLimit']),this['_currentUsage']=Number[_0xd0cbca(0x1cf)](_0x1b15f8[_0xd0cbca(0x2b9)]));}async[_0x180295(0x294)](_0x5b4761){const _0xcc2b66=_0x180295;let _0x14b60b=Date['now']();try{var _0xb2cc19,_0x2f78ce;let _0x36e42a=((_0xb2cc19=this[_0xcc2b66(0x23f)]['getConfig'](_0xe7c7ad))==null?void 0x0:_0xb2cc19['startFormulaLimitUrl'])||_0xcc2b66(0xe5),_0x2300ec=(await this[_0xcc2b66(0x22d)][_0xcc2b66(0x1ba)](_0x36e42a,{'body':JSON['stringify']({'taskId':_0x5b4761})}))[_0xcc2b66(0x26d)];if(((_0x2f78ce=_0x2300ec[_0xcc2b66(0x35d)])==null?void 0x0:_0x2f78ce[_0xcc2b66(0x1b2)])!==_0x3cd106['OK'])return;this[_0xcc2b66(0x30d)](_0x2300ec[_0xcc2b66(0x1d2)],_0x14b60b);}catch(_0xe5a793){this[_0xcc2b66(0x1e7)]['error'](_0xe5a793);}}async[_0x180295(0x1b0)](_0x12393c){const _0x5075ba=_0x180295;let _0x17b882=Date[_0x5075ba(0x341)]();try{var _0x17305a,_0x165c7a;let _0x4d1ea9=((_0x17305a=this['_configService']['getConfig'](_0xe7c7ad))==null?void 0x0:_0x17305a[_0x5075ba(0xf2)])||_0x5075ba(0x297),_0x399269=_0x12393c?_0x4d1ea9+_0x5075ba(0x29f)+encodeURIComponent(_0x12393c):_0x4d1ea9,_0x32f26d=(await this[_0x5075ba(0x22d)][_0x5075ba(0x19b)](_0x399269))[_0x5075ba(0x26d)];if(((_0x165c7a=_0x32f26d[_0x5075ba(0x35d)])==null?void 0x0:_0x165c7a[_0x5075ba(0x1b2)])!==_0x3cd106['OK'])return;this[_0x5075ba(0x30d)](_0x32f26d[_0x5075ba(0x1d2)],_0x17b882);}catch(_0x549292){this[_0x5075ba(0x1e7)][_0x5075ba(0x35d)](_0x549292);}}async[_0x180295(0x2a7)](_0x570265){const _0x1ab073=_0x180295;let _0x193c3d=Date[_0x1ab073(0x341)]();try{var _0x3e3da7,_0x5dd361;let _0x2e6682=((_0x3e3da7=this[_0x1ab073(0x23f)][_0x1ab073(0x221)](_0xe7c7ad))==null?void 0x0:_0x3e3da7['releaseFormulaLimitUrl'])||_0x1ab073(0x30a),_0x120740=(await this['_httpService'][_0x1ab073(0x1ba)](_0x2e6682,{'body':JSON[_0x1ab073(0x247)]({'taskId':_0x570265})}))[_0x1ab073(0x26d)];if(((_0x5dd361=_0x120740[_0x1ab073(0x35d)])==null?void 0x0:_0x5dd361[_0x1ab073(0x1b2)])!==_0x3cd106['OK'])return;this[_0x1ab073(0x30d)](_0x120740[_0x1ab073(0x1d2)],_0x193c3d);}catch(_0xbb8ff7){this[_0x1ab073(0x1e7)]['error'](_0xbb8ff7);}}[_0x180295(0x269)](){const _0x3b9b0e=_0x180295;return this[_0x3b9b0e(0x22e)]===0x0?!0x0:this[_0x3b9b0e(0x22e)]-this[_0x3b9b0e(0x2c9)]>0x0;}[_0x180295(0x2d5)](){const _0x2aba53=_0x180295;this[_0x2aba53(0x152)]&&(clearTimeout(this[_0x2aba53(0x152)]),this[_0x2aba53(0x152)]=null);}[_0x180295(0x21a)](){const _0x17dc4a=_0x180295;this[_0x17dc4a(0x1fa)]['show']({'content':this[_0x17dc4a(0x19f)]['t'](_0x17dc4a(0x2a8)),'type':_0x211eee[_0x17dc4a(0x199)]});}['_hasFormulaInDirtyRanges'](_0x16e6e3){const _0x51cb90=_0x180295;for(let _0xb91f1d of _0x16e6e3){let {unitId:_0x12226f,sheetId:_0x5efb17,range:_0x1d8859}=_0xb91f1d,_0x466ef1=this[_0x51cb90(0x209)][_0x51cb90(0x23e)](_0x12226f);if(!_0x466ef1)continue;let _0x547bbf=_0x466ef1[_0x51cb90(0x367)](_0x5efb17);if(!_0x547bbf)continue;let _0x473a29=_0x547bbf['getCellMatrix']();for(let _0x4abf13=_0x1d8859[_0x51cb90(0xf5)];_0x4abf13<=_0x1d8859[_0x51cb90(0x11d)];_0x4abf13++)for(let _0x2d96bd=_0x1d8859[_0x51cb90(0x1cb)];_0x2d96bd<=_0x1d8859[_0x51cb90(0x2c4)];_0x2d96bd++){let _0x3b5845=_0x473a29[_0x51cb90(0x293)](_0x4abf13,_0x2d96bd);if(_0x3b5845&&(_0x343da5(_0x3b5845['f'])||_0x403937(_0x3b5845['si'])))return!0x0;}}return!0x1;}};ir=Y([J(0x0,_0x2c46ac(_0xcfc953)),J(0x1,_0xfdef4),J(0x2,_0x1e3991),J(0x3,_0x2c46ac(_0x5ebf20)),J(0x4,_0x51fce4),J(0x5,_0xe47834),J(0x6,_0x2c46ac(_0x1c14e4))],ir);let ar=class extends _0x29f5c8{constructor(_0x5f00eb,_0x2411e5,_0x41b7ce){const _0x49d695=_0x180295;super(),this[_0x49d695(0x23f)]=_0x5f00eb,this['_localStorageService']=_0x2411e5,this[_0x49d695(0x243)]=_0x41b7ce,q(this,'_cachedData',new Map()),q(this,_0x49d695(0x18e),new Map()),q(this,_0x49d695(0x21c),!0x1);}['disableLocalCache'](){const _0x59367d=_0x180295;this[_0x59367d(0x21c)]=!0x0;}[_0x180295(0x216)](){const _0x2bdff1=_0x180295;this[_0x2bdff1(0x21c)]=!0x1;}get['saveTaskMap'](){const _0x4c164d=_0x180295;return this[_0x4c164d(0x18e)];}[_0x180295(0x1ed)](){const _0x397a43=_0x180295;this[_0x397a43(0x35a)]()['then'](()=>super['dispose']());}async[_0x180295(0x2cf)](_0x2665f6){const _0x4373aa=_0x180295;return this[_0x4373aa(0x21c)]?null:this[_0x4373aa(0xfe)][_0x4373aa(0x20f)](_0x742ec9(_0x2665f6));}async[_0x180295(0x1f8)](_0x5b1a14,_0x22538a){const _0x329039=_0x180295;return!!this['_localStorageService'][_0x329039(0x169)](_0x742ec9(_0x5b1a14),_0x22538a);}async[_0x180295(0x118)](_0x95148a,_0x3aed4f){const _0x101732=_0x180295;var _0x2a5a00;let _0x1b81ae=(_0x2a5a00=this[_0x101732(0x349)]['get'](_0x95148a))==null?await this['_localStorageService'][_0x101732(0x20f)](_0x742ec9(_0x95148a)):_0x2a5a00;if(!_0x1b81ae)return;let _0x3fc0cf=Date[_0x101732(0x341)](),_0x3c2e7d=new Date(_0x3fc0cf)[_0x101732(0x325)]();await this[_0x101732(0xfe)][_0x101732(0x169)](_0x742ec9(_0x95148a)+_0x101732(0x193)+_0x3fc0cf,{'reason':_0x3aed4f,'createdAt':_0x3c2e7d,'data':_0x1b81ae});}[_0x180295(0x1ce)](_0x5d0328,_0x5d5581,_0x1b09f1,_0xb2349a){const _0x416a9f=_0x180295;let _0x4b7062=this['_revisionService'][_0x416a9f(0x327)](_0x5d0328);this['_cachedData'][_0x416a9f(0x285)](_0x5d0328,{'unitID':_0x5d0328,'type':_0x5d5581,'awaitingChangeset':_0x1b09f1,'mutations':_0xb2349a,'rev':_0x4b7062}),this['_saveTaskMap']['has'](_0x5d0328)||this[_0x416a9f(0x125)](_0x5d0328);}['_scheduleSaving'](_0x5cda47){const _0x474ff9=_0x180295;let _0x519116=this[_0x474ff9(0x2c8)]();_0x519116===0x0?this['_saveCache'](_0x5cda47):this[_0x474ff9(0x18e)]['set'](_0x5cda47,window[_0x474ff9(0x1cc)](()=>this[_0x474ff9(0x18b)](_0x5cda47),_0x519116));}[_0x180295(0x2c8)](){const _0xa9f9e9=_0x180295;var _0x13d0c2;return(_0x13d0c2=this[_0xa9f9e9(0x23f)][_0xa9f9e9(0x221)](_0x11f754))==null?_0x42b94b:_0x13d0c2;}[_0x180295(0x18b)](_0x4ea056){const _0x46abdc=_0x180295;let _0x4865d3=this['_saveTaskMap'][_0x46abdc(0x19b)](_0x4ea056);return _0x4865d3!==void 0x0&&window['clearTimeout'](_0x4865d3),this['_localStorageService'][_0x46abdc(0x169)](_0x742ec9(_0x4ea056),this[_0x46abdc(0x349)][_0x46abdc(0x19b)](_0x4ea056))[_0x46abdc(0x1ea)](()=>this[_0x46abdc(0x18e)]['delete'](_0x4ea056));}async[_0x180295(0x35a)](){const _0x32950a=_0x180295;let _0x32fe18=[];this['_saveTaskMap']['forEach']((_0x263d52,_0x1e6ad5)=>{const _0x1f670a=_0x1f19;window['clearTimeout'](_0x263d52),_0x32fe18['push'](this[_0x1f670a(0x18b)](_0x1e6ad5)[_0x1f670a(0x1ea)](()=>{const _0xeedde6=_0x1f670a;this[_0xeedde6(0x18e)][_0xeedde6(0x1fb)](_0x1e6ad5);}));}),await Promise[_0x32950a(0xf9)](_0x32fe18);}};ar=Y([J(0x0,_0x1e3991),J(0x1,_0x1bf959),J(0x2,_0x2c46ac(_0x73dd5c))],ar);var or=class extends _0x4301ed{constructor(){const _0x257c59=_0x180295;super(),q(this,'urlChange$',void 0x0),this['urlChange$']=_0x244599(window,'popstate')[_0x257c59(0x24d)](_0x323499(this[_0x257c59(0x2e8)]),_0x33d5d5({'bufferSize':0x1,'refCount':!0x0}),_0x188ea1(void 0x0));}[_0x180295(0x131)](_0x5a1cc3,_0x1dcf53,_0x34aa38=!0x1){const _0x21cbee=_0x180295;let _0x43d478=new URL(window[_0x21cbee(0x12e)][_0x21cbee(0xed)]);_0x43d478[_0x21cbee(0x195)][_0x21cbee(0x285)](_0x5a1cc3,_0x1dcf53),_0x34aa38?window[_0x21cbee(0x301)]['replaceState']('','',_0x43d478[_0x21cbee(0x137)]()):window[_0x21cbee(0x301)]['pushState']('','',_0x43d478[_0x21cbee(0x137)]());}[_0x180295(0x146)](_0x3617b1,_0x4b1316=!0x1){const _0x440678=_0x180295;let _0x22a5ef=new URL(window[_0x440678(0x12e)]['href']);_0x22a5ef[_0x440678(0x195)][_0x440678(0x1fb)](_0x3617b1),_0x4b1316?window['history'][_0x440678(0x119)]('','',_0x22a5ef[_0x440678(0x137)]()):window[_0x440678(0x301)][_0x440678(0x122)]('','',_0x22a5ef['toString']());}[_0x180295(0x211)](_0x15f17d){const _0x37c849=_0x180295;var _0x4de9c5;return(_0x4de9c5=new URL(window[_0x37c849(0x12e)][_0x37c849(0xed)])[_0x37c849(0x195)][_0x37c849(0x19b)](_0x15f17d))==null?void 0x0:_0x4de9c5;}};let $=class extends _0x4f4b2b{constructor(_0x151200=vn,_0xebbbce,_0x506628,_0x18b085){const _0x37b619=_0x180295;super(),this['_config']=_0x151200,this['_renderManagerService']=_0xebbbce,this[_0x37b619(0x250)]=_0x506628,this[_0x37b619(0x23f)]=_0x18b085;let {..._0x5a8620}=_0x12955b({},vn,this[_0x37b619(0x2fb)]);this[_0x37b619(0x23f)][_0x37b619(0x2e1)](_0x37b619(0x2d9),_0x5a8620);}[_0x180295(0x284)](){const _0xd45279=_0x180295;this[_0xd45279(0x271)](),this[_0xd45279(0x1b6)]();}[_0x180295(0x105)](){const _0x2d3100=_0x180295;this[_0x2d3100(0x11e)]();}[_0x180295(0x271)](){const _0x32c479=_0x180295;var _0x2defd3;let _0x3467b2=[[Z],[ir],[Gn,{'useClass':or}],[_0x5d1429,{'useClass':_0x2fc76f}],[_0x53bf61,{'useClass':ar}],[X],[fn],[Wn],[Q],[Kn],[tr]];this['_config'][_0x32c479(0x304)]!==!0x1&&_0x3467b2[_0x32c479(0x312)]([Yn],[qn],[Jn],[An],[Xn],[yn]),this[_0x32c479(0x2fb)][_0x32c479(0x2c6)]&&_0x3467b2[_0x32c479(0x312)]([Zn]),_0x201624(this[_0x32c479(0x250)],_0x23016b(_0x3467b2,(_0x2defd3=this['_config'])==null?void 0x0:_0x2defd3[_0x32c479(0x198)]));}[_0x180295(0x11e)](){const _0xdabb17=_0x180295;this[_0xdabb17(0x2fb)][_0xdabb17(0x304)]!==!0x1&&this['disposeWithMe'](this[_0xdabb17(0x306)][_0xdabb17(0x1b3)](_0x56bd01[_0xdabb17(0x150)],[zn])),this[_0xdabb17(0x299)](this[_0xdabb17(0x306)][_0xdabb17(0x1b3)](_0x56bd01['UNIVER_SHEET'],[Vn])),this[_0xdabb17(0x299)](this[_0xdabb17(0x306)][_0xdabb17(0x1b3)](_0x56bd01[_0xdabb17(0x13b)],[Un])),this[_0xdabb17(0x299)](this[_0xdabb17(0x306)][_0xdabb17(0x1b3)](_0x56bd01[_0xdabb17(0x242)],[In]));}[_0x180295(0x1b6)](){const _0x5e14d7=_0x180295;_0x2ade29(this[_0x5e14d7(0x250)],[[Q],[X],[fn],[Wn],[Kn],[ir],[tr]]),this[_0x5e14d7(0x2fb)][_0x5e14d7(0x304)]!==!0x1&&_0x2ade29(this['_injector'],[[Xn],[yn]]),this['_config'][_0x5e14d7(0x2c6)]&&_0x2ade29(this[_0x5e14d7(0x250)],[[Zn]]);}};q($,'pluginName','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN'),q($,_0x180295(0x342),gn),q($,'version',_n),$=Y([_0x5a661e(_0x2c8fa2),J(0x1,_0x42ba88),J(0x2,_0x2c46ac(_0x1237ae)),J(0x3,_0x1e3991)],$);let sr=class extends _0x376aca{constructor(_0x5e94e6,_0x2b6e95,_0x58cc98,_0x2d9ed0,_0x1ef3ae){super(_0x5e94e6,_0x2b6e95,_0x58cc98,_0x2d9ed0,_0x1ef3ae);}async[_0x180295(0xe0)](_0x4eed42){const _0x1ff278=_0x180295;let _0x2d513e=await this[_0x1ff278(0x1ad)](),_0xbca90e=this[_0x1ff278(0x29e)](_0x4eed42,_0x2d513e);return this[_0x1ff278(0x28f)](_0xbca90e);}['_createSocketURL'](_0x811247,_0x457be0){const _0x17b51e=_0x180295;let _0x44204c=typeof window>'u'?new URL(_0x811247):new URL(_0x811247,window[_0x17b51e(0x12e)][_0x17b51e(0x120)]);_0x44204c['searchParams'][_0x17b51e(0x285)](_0x17b51e(0x28b),_0x457be0);let _0x3019b9=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x17b51e(0x12e)][_0x17b51e(0x1d6)]);return _0x3019b9[_0x17b51e(0x19b)](_0x17b51e(0x19e))&&_0x44204c[_0x17b51e(0x195)][_0x17b51e(0x285)](_0x17b51e(0x19e),_0x3019b9['get'](_0x17b51e(0x19e))),_0x44204c[_0x17b51e(0x137)]();}async[_0x180295(0x1ad)](){const _0x55f90f=_0x180295;var _0x200343,_0x21d2f2,_0x9639c2;let _0x34019b=this['_configService'][_0x55f90f(0x221)](_0xe7c7ad),_0x5123d0=(_0x200343=_0x34019b==null?void 0x0:_0x34019b[_0x55f90f(0x24e)])==null?_0x1e71f8:_0x200343;return(_0x21d2f2=(_0x9639c2=(await this[_0x55f90f(0x22d)][_0x55f90f(0x19b)](_0x5123d0,{'headers':{'Content-Type':_0x55f90f(0x197)}}))['body'])==null?void 0x0:_0x9639c2[_0x55f90f(0x262)])==null?'':_0x21d2f2;}};sr=Y([J(0x0,_0x2c46ac(_0x1237ae)),J(0x1,_0x2c46ac(_0x5ebf20)),J(0x2,_0x1e3991),J(0x3,_0xe47834),J(0x4,_0x830088)],sr);let cr=class extends _0x29f5c8{constructor(_0x520462,_0x490bf6,_0x40c659){const _0x54c1ed=_0x180295;super(),this[_0x54c1ed(0x10a)]=_0x520462,this[_0x54c1ed(0x22d)]=_0x490bf6,this[_0x54c1ed(0x23f)]=_0x40c659;}async[_0x180295(0x1c8)](_0x28daa7,_0x3437a8,_0x251867,..._0x2eabec){const _0x4cf15c=_0x180295;var _0x4d2dfe,_0x4c750b,_0x27e599,_0x2d2fb3;let _0x5727ba=this['_instanceService'][_0x4cf15c(0x19c)]();if(!_0x5727ba)throw Error(_0x4cf15c(0x279));let _0x3b016f=((_0x4d2dfe=this[_0x4cf15c(0x23f)]['getConfig'](_0x4bfd76))==null?_0x4ad282:_0x4d2dfe)+'/'+_0x28daa7+_0x4cf15c(0x121)+_0x3437a8,_0x4bcac6={'scriptId':_0x28daa7,'runId':(_0x4c750b=new URL(window['location']['href'])[_0x4cf15c(0x195)][_0x4cf15c(0x19b)](_0x4cf15c(0x19e)))==null?'':_0x4c750b,'function':_0x3437a8,'unitId':_0x5727ba[_0x4cf15c(0x22b)](),'argsOfFunction':JSON[_0x4cf15c(0x247)](_0x2eabec),'invokeId':(_0x27e599=_0x251867[_0x4cf15c(0x2a9)])==null?'':_0x27e599,'executionId':(_0x2d2fb3=_0x251867[_0x4cf15c(0x314)])==null?'':_0x2d2fb3};try{let _0x125ce2=await this[_0x4cf15c(0x22d)][_0x4cf15c(0x1ba)](_0x3b016f,{'body':_0x4bcac6});return _0x125ce2[_0x4cf15c(0x26d)][_0x4cf15c(0x35d)]&&_0x125ce2[_0x4cf15c(0x26d)][_0x4cf15c(0x35d)][_0x4cf15c(0x1b2)]!==_0x3cd106['OK']?_0x4cf15c(0xde):_0x125ce2[_0x4cf15c(0x26d)]['result'];}catch{return _0x4cf15c(0xde);}}};cr=Y([J(0x0,_0x51fce4),J(0x1,_0x2c46ac(_0x5ebf20)),J(0x2,_0x1e3991)],cr);const lr=0x7530,ur=_0x180295(0x2cc);var dr=class extends _0x29f5c8{constructor(){const _0x3859c4=_0x180295;super(),q(this,_0x3859c4(0x1c7),_0x3046d0()),q(this,'_selfUnitIDs',new Set()),q(this,'_unitOnClients',new Map()),q(this,_0x3859c4(0x1d1),null),q(this,_0x3859c4(0x1b8),new Map()),q(this,'_unitStatus',new Map()),this[_0x3859c4(0x22c)]();}[_0x180295(0x1ed)](){const _0x453f77=_0x180295;super[_0x453f77(0x1ed)](),this[_0x453f77(0x1b8)][_0x453f77(0x1d0)]((_0x305ba4,_0x10e9f1)=>this[_0x453f77(0x23d)](_0x10e9f1)),this[_0x453f77(0x1d1)]&&window[_0x453f77(0x34a)](this[_0x453f77(0x1d1)]);}[_0x180295(0x353)](_0x1db890){const _0x23881e=_0x180295;return this[_0x23881e(0x1da)](_0x1db890)[_0x23881e(0x24d)](_0x1acc9b());}['editingUnit'](_0x34e62f){const _0x3eba18=_0x180295;this['_selfUnitIDs'][_0x3eba18(0x1fe)]===0x0&&this['_scheduleHeartbeat'](),this[_0x3eba18(0x111)][_0x3eba18(0xd8)](_0x34e62f),this[_0x3eba18(0x14b)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x34e62f],'isForwarded':!0x1});}[_0x180295(0xf4)](_0x44e7d2){const _0x3a2cf8=_0x180295;this[_0x3a2cf8(0x111)][_0x3a2cf8(0x1fb)](_0x44e7d2),this[_0x3a2cf8(0x111)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x3a2cf8(0x34a)](this['_heartbeatTimer']);}[_0x180295(0x22c)](){const _0x281db3=_0x180295;this[_0x281db3(0x299)](_0x2b809e(_0x244599(window,'storage')[_0x281db3(0x25e)](_0x4471fc=>{const _0x48d375=_0x281db3;if(_0x4471fc['key']!==ur||!_0x4471fc[_0x48d375(0x177)])return;let _0x28ccac=JSON[_0x48d375(0x1a9)](_0x4471fc['newValue']);this['_handleEvent'](_0x28ccac);}))),window[_0x281db3(0x142)](_0x281db3(0x2b1),()=>this['_send']({'type':0x1,'memberID':this[_0x281db3(0x1c7)],'unitIDs':Array[_0x281db3(0x1a1)](this[_0x281db3(0x111)])}));}[_0x180295(0x188)](_0x316687){const _0x23bb07=_0x180295;switch(_0x316687[_0x23bb07(0x20c)]){case 0x0:this[_0x23bb07(0x226)](_0x316687);break;case 0x1:this['_handleLeaveEvent'](_0x316687);break;case 0x2:this[_0x23bb07(0x35f)](_0x316687);break;}}['_handleJoinEvent'](_0x1c3e34){const _0x5a4203=_0x180295;let {unitIDs:_0x32010e,memberID:_0x6dc554,isForwarded:_0x3a6dda}=_0x1c3e34;_0x32010e['forEach'](_0x1450c1=>{const _0x1d2a76=_0x1f19;if(!_0x3a6dda&&this[_0x1d2a76(0x32a)]['has'](_0x1450c1)&&this[_0x1d2a76(0x1da)](_0x1450c1)[_0x1d2a76(0x11c)](_0x137032[_0x1d2a76(0x1e6)]),!this[_0x1d2a76(0x32a)][_0x1d2a76(0x2d3)](_0x1450c1)||!this[_0x1d2a76(0x32a)]['get'](_0x1450c1)['has'](_0x6dc554)){let _0x51d8c8=this['_unitOnClients'][_0x1d2a76(0x19b)](_0x1450c1)||new Set();_0x51d8c8[_0x1d2a76(0xd8)](_0x6dc554),this[_0x1d2a76(0x32a)][_0x1d2a76(0x285)](_0x1450c1,_0x51d8c8),this[_0x1d2a76(0x2eb)](_0x6dc554);}}),_0x3a6dda||this[_0x5a4203(0x14b)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x180295(0x2eb)](_0x29482a){const _0x38f426=_0x180295;this['_removeClearOtherTimer'](_0x29482a);let _0x25279e=window[_0x38f426(0x1cc)](()=>{const _0x1d0d9a=_0x38f426;this['_unitOnClients'][_0x1d0d9a(0x1d0)](_0x2ad26f=>{const _0x4edde6=_0x1d0d9a;_0x2ad26f[_0x4edde6(0x1fb)](_0x29482a);});},lr*0x2);this[_0x38f426(0x1b8)][_0x38f426(0x285)](_0x29482a,_0x25279e);}[_0x180295(0x23d)](_0x229ffd){const _0x8a78b=_0x180295;if(this[_0x8a78b(0x1b8)]['has'](_0x229ffd)){let _0x36b27c=this['_clearOtherTimers'][_0x8a78b(0x19b)](_0x229ffd);_0x36b27c&&window[_0x8a78b(0x17b)](_0x36b27c),this['_clearOtherTimers']['set'](_0x229ffd,null);}}['_handleLeaveEvent'](_0x4d2ce1){const _0x4db07b=_0x180295;let {memberID:_0x3f01b,unitIDs:_0x24a692}=_0x4d2ce1;_0x24a692[_0x4db07b(0x1d0)](_0x31f123=>{const _0x49a3e7=_0x4db07b;var _0x5a46d7;let _0x580321=this[_0x49a3e7(0x32a)][_0x49a3e7(0x19b)](_0x31f123);_0x580321&&(_0x580321[_0x49a3e7(0x1fb)](_0x3f01b),(_0x5a46d7=this[_0x49a3e7(0x1da)](_0x31f123))==null||_0x5a46d7['next'](_0x580321['size']===0x0?_0x137032[_0x49a3e7(0x1ee)]:_0x137032['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x3f01b);}[_0x180295(0x35f)](_0x51d152){const _0x1ad34b=_0x180295;this['_scheduleClearOtherTimer'](_0x51d152[_0x1ad34b(0x2d4)]);}[_0x180295(0x14b)](_0x1d008d){const _0x22d667=_0x180295;localStorage[_0x22d667(0x169)](ur,JSON[_0x22d667(0x247)](_0x1d008d));}[_0x180295(0x30f)](){const _0x12f276=_0x180295;this[_0x12f276(0x1d1)]=window[_0x12f276(0xd4)](()=>{const _0xc5746d=_0x12f276;this[_0xc5746d(0x14b)]({'type':0x2,'memberID':this[_0xc5746d(0x1c7)]});},lr);}[_0x180295(0x1da)](_0x16d5b7){const _0x20a310=_0x180295;return this['_unitStatus'][_0x20a310(0x2d3)](_0x16d5b7)||this[_0x20a310(0x364)]['set'](_0x16d5b7,new _0xca67ac(_0x137032[_0x20a310(0x1ee)])),this['_unitStatus'][_0x20a310(0x19b)](_0x16d5b7);}};export{sr as BrowserCollaborationSocketService,X as DesktopCollaborationStatusDisplayController,Gn as IURLService,cr as RemoteUniscriptService,Bn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,dr as WebBrowserSingleActiveUnitService};
|
|
1
|
+
const _0x3bc3ed=_0xb747;(function(_0x5e039a,_0x144b39){const _0x5efd46=_0xb747,_0x2062c9=_0x5e039a();while(!![]){try{const _0x5471a6=parseInt(_0x5efd46(0x3e6))/0x1+parseInt(_0x5efd46(0x218))/0x2+parseInt(_0x5efd46(0x3ed))/0x3+-parseInt(_0x5efd46(0x1f8))/0x4+parseInt(_0x5efd46(0x3b5))/0x5*(-parseInt(_0x5efd46(0x3b4))/0x6)+-parseInt(_0x5efd46(0x37c))/0x7+parseInt(_0x5efd46(0x2b9))/0x8;if(_0x5471a6===_0x144b39)break;else _0x2062c9['push'](_0x2062c9['shift']());}catch(_0x421bc8){_0x2062c9['push'](_0x2062c9['shift']());}}}(_0x29fa,0x5c33d));import{BOARD_TOP_RIGHT_MENU_LEADING_PART as _0x52a79c,IBoardElementStateService as _0x141412,getBoardElementRenderObjectKey as _0x15af57}from'@univerjs-pro/boards-ui';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3d763c,CollaborationController as _0x37bcf2,CollaborationSessionService as _0x48f983,CollaborationSocketService as _0x58047a,CollaborationStatus as _0x331606,CollaborationUIEventId as _0x5e38ec,CollaborationUIEventService as _0x36c2f5,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x210c45,DEFAULT_WS_SESSION_TICKET_URL as _0x2d3b4c,DataLoaderService as _0x21830c,DocCollaborationEntity as _0x42f238,ILocalCacheService as _0x571f9b,LOCAL_CACHE_INTERVAL as _0x44bde3,LOCAL_CACHE_INTERVAL_KEY as _0x4fb8cb,MemberService as _0x1dadcd,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0xc1e12a,SessionStatus as _0x5ea676,UnitStatus as _0x14eb9b,UniverCollaborationClientPlugin as _0x38b492,getLocalCacheKey as _0x419d06}from'@univerjs-pro/collaboration-client';import{COLORS as _0x21d29b,CanceledError as _0x4e0243,ColorKit as _0x489bde,DOC_RANGE_TYPE as _0x41cd22,DependentOn as _0x1e8dea,Disposable as _0x1b14aa,DisposableCollection as _0x5b1175,ICommandService as _0x581e85,IConfigService as _0x3f2cb5,IImageIoService as _0x281c7f,ILocalStorageService as _0x1352c2,ILogService as _0x483e73,IUniverInstanceService as _0x449dc1,Inject as _0x4d1fed,Injector as _0x57f253,LocaleService as _0x2d2bf4,Optional as _0x122b91,Plugin as _0x5172e1,PluginService as _0x25f263,Rectangle as _0x186f70,RxDisposable as _0x2c69b2,ThemeService as _0x8d2d0f,Tools as _0x5e4224,UniverInstanceType as _0x410a65,Workbook as _0x3b5356,createIdentifier as _0x1f7596,debounce as _0x57d052,fromEventSubject as _0x4b7ade,generateRandomId as _0x1294de,isFormulaId as _0x26cc3f,isFormulaString as _0x158c7b,isInternalEditorID as _0x3ccad3,merge as _0x437a63,mergeOverrideWithDependencies as _0x437474,registerDependencies as _0x50dcc9,toDisposable as _0x9b2c48,touchDependencies as _0x2e8102}from'@univerjs/core';import{BuiltInUIPart as _0x504019,IBeforeCloseService as _0x5149b9,IMessageService as _0x454719,INotificationService as _0x546073,IShortcutService as _0x184422,IUIPartsService as _0x175ddd,connectInjector as _0x2aafc2,useDependency as _0x364691,useObservable as _0x40d51c}from'@univerjs/ui';import{BehaviorSubject as _0x5c73ce,Subject as _0x5ded12,combineLatest as _0x20eef1,debounceTime as _0x4598fc,distinctUntilChanged as _0x13c171,filter as _0x10eeb,fromEvent as _0x237140,mapTo as _0x382d75,merge as _0x739bae,of as _0x6a4fab,shareReplay as _0x1b1f07,switchMap as _0x3c42c4,takeUntil as _0x18a3e8}from'rxjs';import{distinctUntilChanged as _0x57b04f,filter as _0x39b3f9,map as _0x8474ef,switchMap as _0x338146,takeUntil as _0x17f81b,throttleTime as _0x312d34}from'rxjs/operators';import{Button as _0x320797,MessageType as _0x4703d3,Tooltip as _0x3b2a4f,clsx as _0x142495}from'@univerjs/design';import{LoadingMultiIcon as _0x5116a6,OffLineIcon as _0x5df0b1,OnLineIcon as _0x48ae2e,WarningIcon as _0x590f24}from'@univerjs/icons';import{createElement as _0x13edf8,useCallback as _0x14706a,useMemo as _0x473967}from'react';import{Fragment as _0x5cf6b0,jsx as _0x1332bc,jsxs as _0x89ce4a}from'react/jsx-runtime';import{CollaborationEvent as _0x5db27d,ISnapshotServerService as _0x58c39f,ITransformService as _0x1ca2f6,RevisionService as _0x731ae8,SnapshotLoadStage as _0x28cb8d,SnapshotLoadingService as _0x114337,UniverCollaborationPlugin as _0x285ff7,isTransformMutationFailure as _0x4a2b76,isTransformMutationsWithChangesetSuccess as _0x257abb}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0x2566dd}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x514f9f,DocSkeletonManagerService as _0x258d37,DocStateChangeManagerService as _0x358cad,RichTextEditingMutation as _0x175756,SetTextSelectionsOperation as _0x306fe8,UniverDocsPlugin as _0x282738}from'@univerjs/docs';import{DocIMEInputManagerService as _0x52a25d,IDocClipboardService as _0x568477,NodePositionConvertToCursor as _0x4641fe,NodePositionConvertToRectRange as _0x2d87b3,SetDocZoomRatioOperation as _0x4447c9,TEXT_RANGE_LAYER_INDEX as _0x5b3e02,UniverDocsUIPlugin as _0x8f0a5a}from'@univerjs/docs-ui';import{IRenderManagerService as _0x4b25cc,Rect as _0x18e662,RegularPolygon as _0x60c9b6,SHEET_VIEWPORT_KEY as _0x55e659,Shape as _0x301f9c,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x38414a,UniverRenderEnginePlugin as _0x295a3d,Vector2 as _0x195cd0,getColor as _0x46dc64}from'@univerjs/engine-render';import{HTTPService as _0x1365bf,ISocketService as _0x13621c,UniverNetworkPlugin as _0x544056,WebSocketService as _0x2a48b1}from'@univerjs/network';import{FormulaExecuteStageType as _0x144f31,FormulaExecutedStateType as _0x1e8a08,SetFormulaCalculationNotificationMutation as _0x85d638,SetFormulaCalculationStartMutation as _0x150725,deserializeRangeWithSheet as _0x428444,serializeRangeWithSheet as _0x3fc7ee}from'@univerjs/engine-formula';import{EffectRefRangId as _0x4ee3b0,RefRangeService as _0x46b02d,SetSelectionsOperation as _0x148457,SetWorksheetActivateCommand as _0x40784d,SheetsSelectionsService as _0x1265bd,handleDeleteRangeMoveLeft as _0x390f96,handleDeleteRangeMoveUp as _0x121ffe,handleIRemoveCol as _0x54040f,handleIRemoveRow as _0x4a00ed,handleInsertCol as _0x14d9b5,handleInsertRangeMoveDown as _0x52df76,handleInsertRangeMoveRight as _0x5abb5e,handleInsertRow as _0x384857,handleMoveRange as _0x65e08,runRefRangeMutations as _0x13d8bd}from'@univerjs/sheets';import{ISlideDrawingStateService as _0x3f17c0,buildDrawingOKey as _0x5f12b3}from'@univerjs-pro/slides-ui';import{ISheetLoadingRenderService as _0x233bcb,SheetSkeletonManagerService as _0x7009c4,getCoordByCell as _0x5cd088,getSheetObject as _0x56ed87}from'@univerjs/sheets-ui';import{IRemoteInstanceService as _0x3e11b5}from'@univerjs/rpc';import{ErrorCode as _0x4f2945}from'@univerjs/protocol';function mn(_0x25b66a){const _0x519b41=_0xb747;switch(_0x25b66a){case _0x331606['OFFLINE']:return{'icon':_0x1332bc(_0x5df0b1,{}),'colorClass':_0x519b41(0x2ab),'i18nKey':_0x519b41(0x43b),'tooltipKey':_0x519b41(0x431),'clickable':!0x0,'indicator':_0x519b41(0x3bc)};case _0x331606[_0x519b41(0x2ea)]:return{'icon':_0x1332bc(_0x5df0b1,{}),'colorClass':_0x519b41(0x362),'i18nKey':'collaboration-client-ui.collabStatus.conflict','clickable':!0x1,'indicator':_0x519b41(0x3bc)};case _0x331606[_0x519b41(0x2fe)]:return{'icon':_0x1332bc(_0x5116a6,{}),'colorClass':_0x519b41(0x3fc),'i18nKey':_0x519b41(0x3a1),'clickable':!0x1,'indicator':_0x519b41(0x2c4)};case _0x331606[_0x519b41(0x2e6)]:return{'icon':_0x1332bc(_0x48ae2e,{}),'colorClass':_0x519b41(0x1c2),'i18nKey':_0x519b41(0x391),'clickable':!0x1,'indicator':_0x519b41(0x3bc)};case _0x331606[_0x519b41(0x235)]:case _0x331606[_0x519b41(0x350)]:return{'icon':_0x1332bc(_0x5116a6,{}),'colorClass':_0x519b41(0x3fc),'i18nKey':_0x519b41(0x3f6),'clickable':!0x1,'indicator':_0x519b41(0x2c4)};case _0x331606[_0x519b41(0x331)]:return{'icon':_0x1332bc(_0x5116a6,{}),'colorClass':_0x519b41(0x3fc),'i18nKey':_0x519b41(0x3f6),'clickable':!0x1,'indicator':_0x519b41(0x2c4)};case _0x331606[_0x519b41(0x44b)]:return{'icon':_0x1332bc(_0x48ae2e,{}),'colorClass':_0x519b41(0x439),'i18nKey':_0x519b41(0x1ff),'clickable':!0x1,'indicator':_0x519b41(0x3bc)};}}function hn(_0x1181f4){const _0x143834=_0xb747;let {status$:_0x2c49c0}=_0x1181f4,_0xe16119=_0x40d51c(_0x2c49c0,_0x331606['NOT_COLLAB']),_0x1f0c57=_0x364691(_0x2d2bf4),_0x44b81b=_0x364691(_0x48f983),_0x47b2aa=_0x473967(()=>mn(_0xe16119),[_0xe16119]),_0xabd03a=_0xe16119!==_0x331606['OFFLINE'],_0x4288b8=_0x1f0c57['t'](_0x47b2aa[_0x143834(0x3ea)]),_0x4365b8=_0x47b2aa[_0x143834(0x2f7)]?_0x1f0c57['t'](_0x47b2aa[_0x143834(0x2f7)]):_0x4288b8,_0xb91f3f=_0x14706a(()=>{const _0x5221df=_0x143834;_0xabd03a||_0x44b81b[_0x5221df(0x24f)]();},[_0xabd03a,_0x44b81b]),_0x34fb44=_0x14706a(_0x54b024=>{const _0x5c97fa=_0x143834;!_0xabd03a&&(_0x54b024['key']===_0x5c97fa(0x285)||_0x54b024[_0x5c97fa(0x35d)]==='\x20')&&(_0x54b024[_0x5c97fa(0x236)](),_0x44b81b['reconnect']());},[_0xabd03a,_0x44b81b]),_0x4b59da=_0x1332bc(_0x143834(0x40a),{'className':_0x142495(_0x143834(0x2b6),_0x143834(0x410),_0x47b2aa[_0x143834(0x208)],{'univer-animate-spin':_0x47b2aa[_0x143834(0x35b)]===_0x143834(0x2c4),'univer-animate-pulse':_0x47b2aa[_0x143834(0x35b)]==='pulse'}),'aria-hidden':'true','children':_0x47b2aa[_0x143834(0x41a)]}),_0x50e168=_0x1332bc(_0x143834(0x40a),{'className':_0x142495(_0x143834(0x2b6),_0x143834(0x2d6),_0x143834(0x3e2),'focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2',_0x143834(0x443),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x47b2aa[_0x143834(0x254)],'univer-cursor-default':!_0x47b2aa[_0x143834(0x254)]}),'children':_0x4b59da});return _0x47b2aa[_0x143834(0x254)]?_0x1332bc(_0x3b2a4f,{'title':_0x4365b8,'placement':_0x143834(0x223),'children':_0x1332bc(_0x143834(0x398),{'type':_0x143834(0x398),'onClick':_0xb91f3f,'onKeyDown':_0x34fb44,'className':_0x142495(_0x143834(0x2ca),'univer-border-none\x20univer-bg-transparent',_0x143834(0x355),_0x143834(0x3a4)),'aria-label':_0x4288b8+_0x143834(0x445)+_0x4365b8,'role':_0x143834(0x295),'aria-live':_0x143834(0x283),'aria-atomic':_0x143834(0x1fc),'children':_0x50e168})}):_0x1332bc(_0x3b2a4f,{'title':_0x4365b8,'placement':_0x143834(0x223),'children':_0x1332bc(_0x143834(0x274),{'className':_0x142495(_0x143834(0x2ca),'univer-border-none\x20univer-bg-transparent','univer-m-0\x20univer-p-0'),'aria-label':_0x4288b8,'role':'status','aria-live':_0x143834(0x283),'aria-atomic':_0x143834(0x1fc),'children':_0x50e168})});}function K(_0x25310a){'@babel/helpers - typeof';return K=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x3b7d41){return typeof _0x3b7d41;}:function(_0x51b19b){const _0xb88116=_0xb747;return _0x51b19b&&typeof Symbol==_0xb88116(0x312)&&_0x51b19b['constructor']===Symbol&&_0x51b19b!==Symbol[_0xb88116(0x225)]?_0xb88116(0x2c8):typeof _0x51b19b;},K(_0x25310a);}function gn(_0x3521fb,_0x342c4b){const _0x543e4f=_0xb747;if(K(_0x3521fb)!=_0x543e4f(0x364)||!_0x3521fb)return _0x3521fb;var _0x52936a=_0x3521fb[Symbol[_0x543e4f(0x449)]];if(_0x52936a!==void 0x0){var _0x26bb09=_0x52936a[_0x543e4f(0x1c9)](_0x3521fb,_0x342c4b||_0x543e4f(0x289));if(K(_0x26bb09)!=_0x543e4f(0x364))return _0x26bb09;throw TypeError(_0x543e4f(0x313));}return(_0x342c4b==='string'?String:Number)(_0x3521fb);}function _n(_0x4d7e34){const _0x2eb7e0=_0xb747;var _0x3a4d96=gn(_0x4d7e34,_0x2eb7e0(0x2e9));return K(_0x3a4d96)=='symbol'?_0x3a4d96:_0x3a4d96+'';}function q(_0x1c03b1,_0xf87d8b,_0x430c60){return(_0xf87d8b=_n(_0xf87d8b))in _0x1c03b1?Object['defineProperty'](_0x1c03b1,_0xf87d8b,{'value':_0x430c60,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1c03b1[_0xf87d8b]=_0x430c60,_0x1c03b1;}function J(_0xdba0e6,_0x3c99a8){return function(_0x4b304a,_0x40fbff){_0x3c99a8(_0x4b304a,_0x40fbff,_0xdba0e6);};}function Y(_0x460c89,_0x1f351c,_0x52342f,_0x5812bb){const _0x50ce09=_0xb747;var _0xbacc05=arguments[_0x50ce09(0x1f0)],_0x45e42a=_0xbacc05<0x3?_0x1f351c:_0x5812bb===null?_0x5812bb=Object[_0x50ce09(0x3d4)](_0x1f351c,_0x52342f):_0x5812bb,_0x15c168;if(typeof Reflect==_0x50ce09(0x364)&&typeof Reflect[_0x50ce09(0x1db)]=='function')_0x45e42a=Reflect['decorate'](_0x460c89,_0x1f351c,_0x52342f,_0x5812bb);else{for(var _0x556e49=_0x460c89['length']-0x1;_0x556e49>=0x0;_0x556e49--)(_0x15c168=_0x460c89[_0x556e49])&&(_0x45e42a=(_0xbacc05<0x3?_0x15c168(_0x45e42a):_0xbacc05>0x3?_0x15c168(_0x1f351c,_0x52342f,_0x45e42a):_0x15c168(_0x1f351c,_0x52342f))||_0x45e42a);}return _0xbacc05>0x3&&_0x45e42a&&Object[_0x50ce09(0x2a3)](_0x1f351c,_0x52342f,_0x45e42a),_0x45e42a;}let X=class extends _0x1b14aa{constructor(_0x1b2b7d,_0xe4eb82,_0x3ede15,_0x59bfa7){const _0x3238b7=_0xb747;super(),this['_univerInstanceService']=_0x1b2b7d,this[_0x3238b7(0x33f)]=_0xe4eb82,this[_0x3238b7(0x29b)]=_0x3ede15,this['_uiPartsService']=_0x59bfa7,q(this,_0x3238b7(0x3c1),new _0x5c73ce(_0x331606[_0x3238b7(0x2e6)])),this[_0x3238b7(0x237)](),this[_0x3238b7(0x266)]();}['_initStatusListener'](){const _0x237fc5=_0xb747;this['disposeWithMe'](_0x739bae(this[_0x237fc5(0x3a6)][_0x237fc5(0x38f)],this[_0x237fc5(0x3a6)][_0x237fc5(0x397)](_0x410a65[_0x237fc5(0x1d8)]),this['_univerInstanceService'][_0x237fc5(0x397)](_0x410a65[_0x237fc5(0x3a0)]))[_0x237fc5(0x320)](_0x8474ef(()=>yn(this[_0x237fc5(0x3a6)])),_0x57b04f(),_0x3c42c4(_0x331d99=>_0x331d99?this[_0x237fc5(0x29b)][_0x237fc5(0x40e)](_0x331d99):_0x6a4fab(null)),_0x3c42c4(_0x1f324f=>_0x1f324f?_0x1f324f['status$']:_0x6a4fab(_0x331606['NOT_COLLAB'])))['subscribe'](_0x2cbf8e=>{const _0x579685=_0x237fc5;this[_0x579685(0x3c1)]['next'](_0x2cbf8e);}));}[_0x3bc3ed(0x237)](){const _0x44ee32=_0x3bc3ed;this[_0x44ee32(0x239)](this['_uiPartsService'][_0x44ee32(0x36b)](_0x504019[_0x44ee32(0x1d4)],()=>_0x2aafc2(xn({'status$':this[_0x44ee32(0x3c1)]['asObservable']()}),this['_injector'])));}};X=Y([J(0x0,_0x449dc1),J(0x1,_0x4d1fed(_0x57f253)),J(0x2,_0x4d1fed(_0x37bcf2)),J(0x3,_0x175ddd)],X);let vn=class extends _0x1b14aa{constructor(_0x318ae7,_0x161684,_0x46498e,_0x14466a){const _0x31e742=_0x3bc3ed;super(),this[_0x31e742(0x3a6)]=_0x318ae7,this[_0x31e742(0x33f)]=_0x161684,this[_0x31e742(0x29b)]=_0x46498e,this[_0x31e742(0x424)]=_0x14466a,q(this,_0x31e742(0x3c1),new _0x5c73ce(_0x331606[_0x31e742(0x2e6)])),this['_initStatusComponent'](),this[_0x31e742(0x266)]();}[_0x3bc3ed(0x266)](){const _0x27f8d8=_0x3bc3ed;this[_0x27f8d8(0x239)](_0x739bae(_0x6a4fab(null),this[_0x27f8d8(0x3a6)][_0x27f8d8(0x397)](_0x410a65[_0x27f8d8(0x3f9)]))[_0x27f8d8(0x320)](_0x8474ef(()=>bn(this['_univerInstanceService'])),_0x57b04f(),_0x3c42c4(_0x48eeeb=>_0x48eeeb?this[_0x27f8d8(0x29b)]['getCollabEntity$'](_0x48eeeb):_0x6a4fab(null)),_0x3c42c4(_0x3a3c5b=>_0x3a3c5b?_0x3a3c5b[_0x27f8d8(0x422)]:_0x6a4fab(_0x331606[_0x27f8d8(0x2e6)])))[_0x27f8d8(0x1f2)](_0x51de0f=>{const _0x122a79=_0x27f8d8;this[_0x122a79(0x3c1)][_0x122a79(0x36a)](_0x51de0f);}));}[_0x3bc3ed(0x237)](){const _0xf2b0eb=_0x3bc3ed;this[_0xf2b0eb(0x239)](this['_uiPartsService'][_0xf2b0eb(0x36b)](_0x52a79c,()=>_0x2aafc2(xn({'status$':this[_0xf2b0eb(0x3c1)][_0xf2b0eb(0x2ae)]()}),this['_injector'])));}};vn=Y([J(0x0,_0x449dc1),J(0x1,_0x4d1fed(_0x57f253)),J(0x2,_0x4d1fed(_0x37bcf2)),J(0x3,_0x175ddd)],vn);function yn(_0x58fbf9){const _0x3ac337=_0x3bc3ed;let _0x587d25=_0x58fbf9[_0x3ac337(0x267)](),_0x13e5e3=_0x587d25==null?void 0x0:_0x587d25[_0x3ac337(0x275)]();if(_0x13e5e3&&!_0x3ccad3(_0x13e5e3))return _0x13e5e3;let _0x75c6ae=_0x58fbf9[_0x3ac337(0x3bb)](_0x410a65['UNIVER_DOC']),_0x51d9a1=_0x75c6ae==null?void 0x0:_0x75c6ae[_0x3ac337(0x275)]();if(_0x51d9a1&&!_0x3ccad3(_0x51d9a1))return _0x51d9a1;let _0x29f8eb=_0x58fbf9['getCurrentUnitOfType'](_0x410a65['UNIVER_SHEET']);if(_0x29f8eb)return _0x29f8eb[_0x3ac337(0x275)]();let _0x57ab74=_0x58fbf9[_0x3ac337(0x325)](_0x410a65[_0x3ac337(0x1d8)])['find'](_0x345e95=>!_0x3ccad3(_0x345e95[_0x3ac337(0x275)]()));return _0x57ab74?_0x57ab74[_0x3ac337(0x275)]():null;}function bn(_0x575515){const _0x3a4125=_0x3bc3ed;let _0x3b3fe6=_0x575515[_0x3a4125(0x3bb)](_0x410a65[_0x3a4125(0x3f9)]);return(_0x3b3fe6==null?void 0x0:_0x3b3fe6[_0x3a4125(0x275)]())??null;}function xn(_0x1ba24d){let {status$:_0x4e9aa2}=_0x1ba24d;return function(){return _0x1332bc(hn,{'status$':_0x4e9aa2});};}var Sn=_0x3bc3ed(0x417),Cn=_0x3bc3ed(0x229);const wn={};let Tn=class extends _0x2c69b2{constructor(_0x35ddba,_0x234625){const _0x5f0653=_0x3bc3ed;super(),this[_0x5f0653(0x2c0)]=_0x35ddba,this[_0x5f0653(0x2b0)]=_0x234625,this[_0x5f0653(0x3a5)]();}['_init'](){const _0x424d06=_0x3bc3ed;let _0x590a4b=this;this[_0x424d06(0x239)](this[_0x424d06(0x2c0)][_0x424d06(0x3fa)]({'onBeforePasteImage':async _0x15b137=>{const _0x1ecae8=_0x424d06;let _0x4df53e=await _0x590a4b[_0x1ecae8(0x2b0)][_0x1ecae8(0x24a)](_0x15b137);return _0x4df53e?{'source':_0x4df53e[_0x1ecae8(0x3f4)],'imageSourceType':_0x4df53e['imageSourceType']}:null;}}));}};Tn=Y([J(0x0,_0x568477),J(0x1,_0x281c7f)],Tn);function En(_0x4347f4,_0x2fc0fc){const _0x4c8edd=_0x3bc3ed;_0x4347f4[_0x4c8edd(0x1f3)](),_0x4347f4[_0x4c8edd(0x2fd)]=_0x4c8edd(0x32e);let _0x585fcd=_0x4347f4[_0x4c8edd(0x3eb)](_0x2fc0fc)[_0x4c8edd(0x2fc)];return _0x4347f4[_0x4c8edd(0x400)](),Math['min'](_0x585fcd+0x8,0xc8);}function Dn(_0x538da8,_0x109952){const _0x15fcca=_0x3bc3ed;let {radius:_0x54c4b8,width:_0x125b7a,height:_0x3140ab}=_0x109952;_0x54c4b8??=0x0,_0x125b7a??=0x1e,_0x3140ab??=0x1e;let _0x95f7b6=0x0,_0x2c0ef9=0x0,_0x8b3c83=0x0;_0x95f7b6=_0x2c0ef9=_0x8b3c83=Math[_0x15fcca(0x2aa)](_0x54c4b8,_0x125b7a/0x2,_0x3140ab/0x2),_0x538da8[_0x15fcca(0x3e9)](),_0x538da8[_0x15fcca(0x353)](_0x95f7b6,0x0),_0x538da8['lineTo'](_0x125b7a-_0x2c0ef9,0x0),_0x538da8[_0x15fcca(0x3f0)](_0x125b7a-_0x2c0ef9,_0x2c0ef9,_0x2c0ef9,Math['PI']*0x3/0x2,0x0,!0x1),_0x538da8[_0x15fcca(0x34e)](_0x125b7a,_0x3140ab-_0x8b3c83),_0x538da8[_0x15fcca(0x3f0)](_0x125b7a-_0x8b3c83,_0x3140ab-_0x8b3c83,_0x8b3c83,0x0,Math['PI']/0x2,!0x1),_0x538da8['lineTo'](0x0,_0x3140ab),_0x538da8[_0x15fcca(0x34e)](0x0,_0x95f7b6),_0x538da8['arc'](_0x95f7b6,_0x95f7b6,_0x95f7b6,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x538da8[_0x15fcca(0x42e)](),_0x109952[_0x15fcca(0x20f)]&&(_0x538da8['save'](),_0x538da8[_0x15fcca(0x427)]=_0x109952['fill'],_0x109952['fillRule']===_0x15fcca(0x22f)?_0x538da8['fill'](_0x15fcca(0x22f)):_0x538da8[_0x15fcca(0x20f)](),_0x538da8['restore']());}var On=class e extends _0x301f9c{constructor(_0x237373,_0x42dade){const _0x159e7c=_0x3bc3ed;super(_0x237373,_0x42dade),q(this,'color',void 0x0),q(this,'text',void 0x0),this[_0x159e7c(0x2b3)]=_0x42dade==null?void 0x0:_0x42dade[_0x159e7c(0x2b3)],this['text']=_0x42dade==null?void 0x0:_0x42dade['text'];}static[_0x3bc3ed(0x27e)](_0x48c813,_0x2ec224){const _0x2cf42a=_0x3bc3ed;let {text:_0x4ff622,color:_0x479fe1}=_0x2ec224;_0x48c813[_0x2cf42a(0x1f3)](),_0x48c813['font']=_0x2cf42a(0x377);let _0xfb3243=_0x48c813[_0x2cf42a(0x3eb)](_0x4ff622)[_0x2cf42a(0x2fc)];if(Dn(_0x48c813,{'height':0x14,'radius':0x4,'width':En(_0x48c813,_0x4ff622),'fill':_0x479fe1,'evented':!0x1}),_0x48c813[_0x2cf42a(0x427)]=_0x2cf42a(0x2b5),_0xfb3243>0xc0){let _0x4a4036='',_0x1c8a3f=0x0;for(let _0x3bb987 of _0x4ff622){let _0x40b66d=_0x48c813[_0x2cf42a(0x3eb)](_0x3bb987)[_0x2cf42a(0x2fc)];if(_0x1c8a3f+_0x40b66d<=0xc0-_0x48c813[_0x2cf42a(0x3eb)](_0x2cf42a(0x3ee))['width'])_0x4a4036+=_0x3bb987,_0x1c8a3f+=_0x40b66d;else{_0x4a4036+=_0x2cf42a(0x3ee);break;}}_0x48c813['fillText'](_0x4a4036,0x4,0xf);}else _0x48c813[_0x2cf42a(0x1d5)](_0x4ff622,0x4,0xf);_0x48c813[_0x2cf42a(0x400)]();}[_0x3bc3ed(0x3ba)](_0x6d6058){e['drawWith'](_0x6d6058,this);}};const kn=0x138a;var An=class extends _0x301f9c{constructor(_0x2a878c,_0x2b9d5f){const _0x11b617=_0x3bc3ed;super(_0x2a878c,{..._0x2b9d5f,'evented':!0x1}),q(this,_0x11b617(0x2fb),_0x11b617(0x2a7)),q(this,_0x11b617(0x231),''),q(this,_0x11b617(0x3a7),!0x0),_0x2b9d5f&&this[_0x11b617(0x284)](_0x2b9d5f);}['setShapeProps'](_0x4e3a1a){const _0x1ccae9=_0x3bc3ed;this['_color']=_0x4e3a1a[_0x1ccae9(0x2b3)]??this[_0x1ccae9(0x2fb)],this[_0x1ccae9(0x231)]=_0x4e3a1a[_0x1ccae9(0x270)]??this[_0x1ccae9(0x231)],this[_0x1ccae9(0x3a7)]=_0x4e3a1a[_0x1ccae9(0x39c)]??this[_0x1ccae9(0x3a7)],this['evented']=!0x1,this[_0x1ccae9(0x2a9)]({'left':_0x4e3a1a[_0x1ccae9(0x321)]??this[_0x1ccae9(0x321)],'top':_0x4e3a1a['top']??this[_0x1ccae9(0x305)],'width':_0x4e3a1a[_0x1ccae9(0x2fc)]??this[_0x1ccae9(0x2fc)],'height':_0x4e3a1a[_0x1ccae9(0x1ed)]??this[_0x1ccae9(0x1ed)],'angle':_0x4e3a1a['angle']??this[_0x1ccae9(0x3cb)]});}[_0x3bc3ed(0x3ba)](_0x46c8b5){const _0x3b221d=_0x3bc3ed;_0x46c8b5['save'](),_0x46c8b5[_0x3b221d(0x232)]=this[_0x3b221d(0x2fb)],_0x46c8b5[_0x3b221d(0x389)]=this[_0x3b221d(0x3ad)]||1.5,_0x46c8b5['setLineDash']([0x6,0x4]),_0x46c8b5[_0x3b221d(0x395)](0x0,0x0,this[_0x3b221d(0x2fc)],this[_0x3b221d(0x1ed)]),_0x46c8b5[_0x3b221d(0x400)](),this[_0x3b221d(0x3a7)]&&(_0x46c8b5[_0x3b221d(0x1f3)](),_0x46c8b5[_0x3b221d(0x35c)](0x1,0x0,0x0,0x1,this[_0x3b221d(0x2fc)],-0x14),On['drawWith'](_0x46c8b5,{'text':this[_0x3b221d(0x231)],'color':this[_0x3b221d(0x2fb)]}),_0x46c8b5[_0x3b221d(0x400)]());}};const jn=[_0x3bc3ed(0x1cd),'jiqing.500',_0x3bc3ed(0x3b9),_0x3bc3ed(0x282),'blue.400',_0x3bc3ed(0x3b6)];var Z=class extends _0x1b14aa{constructor(..._0x16ecc9){const _0x4bbea1=_0x3bc3ed;super(..._0x16ecc9),q(this,_0x4bbea1(0x293),new Map()),q(this,'_colorIndex',0x0);}[_0x3bc3ed(0x35e)](_0x44f0ba){const _0x6018e=_0x3bc3ed;if(this[_0x6018e(0x293)]['has'](_0x44f0ba))return this[_0x6018e(0x293)][_0x6018e(0x240)](_0x44f0ba);let _0x32a2aa=jn[this[_0x6018e(0x3d6)]];return this['_colorIndex']=(this[_0x6018e(0x3d6)]+0x1)%jn['length'],this['_assignedColors'][_0x6018e(0x34c)](_0x44f0ba,_0x32a2aa),_0x32a2aa;}};function Mn(_0x300c73){const _0x36596b=_0x3bc3ed;let _0xd6e918;try{_0xd6e918=JSON[_0x36596b(0x2e5)](_0x300c73);}catch{return null;}if(typeof _0xd6e918!=_0x36596b(0x364)||!_0xd6e918)return null;let _0x4ab509=_0xd6e918;if(_0x4ab509[_0x36596b(0x3d9)]!==_0x36596b(0x1ee)||typeof _0x4ab509[_0x36596b(0x2e4)]!=_0x36596b(0x2e9)||typeof _0x4ab509['subUnitId']!=_0x36596b(0x2e9))return null;let _0x58a2ce=Array[_0x36596b(0x298)](_0x4ab509[_0x36596b(0x370)])?_0x4ab509[_0x36596b(0x370)][_0x36596b(0x259)](_0x205c36=>typeof _0x205c36=='string'):[],_0x2acd5f=typeof _0x4ab509[_0x36596b(0x448)]=='string'?_0x4ab509['focusedId']:null;return{'kind':_0x36596b(0x1ee),'unitId':_0x4ab509[_0x36596b(0x2e4)],'subUnitId':_0x4ab509[_0x36596b(0x2dd)],'selectedIds':_0x58a2ce,'focusedId':_0x2acd5f};}let Nn=class extends _0x2c69b2{get[_0x3bc3ed(0x2e0)](){const _0x3b154e=_0x3bc3ed;return this[_0x3b154e(0x27f)][_0x3b154e(0x303)]();}get[_0x3bc3ed(0x23a)](){const _0x2c0854=_0x3bc3ed;return this[_0x2c0854(0x290)][_0x2c0854(0x303)]();}constructor(_0x12fc30,_0x14bd61,_0x13d77f,_0x14a7d9,_0x390445){const _0x150307=_0x3bc3ed;super(),this['unitID']=_0x12fc30,this[_0x150307(0x388)]=_0x14bd61,this['_colorAssignService']=_0x13d77f,this[_0x150307(0x1d6)]=_0x14a7d9,this['_boardElementStateService']=_0x390445,q(this,_0x150307(0x2bc),!0x1),q(this,_0x150307(0x3a5),!0x1),q(this,'_cursorInfo$',new _0x5c73ce(new Map())),q(this,_0x150307(0x301),this['_cursorInfo$'][_0x150307(0x2ae)]()),q(this,_0x150307(0x290),new _0x5c73ce([])),q(this,_0x150307(0x2d4),this[_0x150307(0x290)][_0x150307(0x320)](_0x4598fc(0x12c))),q(this,_0x150307(0x26f),_0x57d052(_0x3acda3=>{const _0x5e0080=_0x150307;let _0x40f9f4=_0x3acda3['context'];if(!_0x40f9f4||_0x40f9f4[_0x5e0080(0x2e4)]!==this[_0x5e0080(0x2cc)])return;let _0x31e315={'kind':'board-element-selection','unitId':_0x40f9f4[_0x5e0080(0x2e4)],'subUnitId':_0x40f9f4['subUnitId'],'selectedIds':_0x3acda3['selectedIds']['filter'](_0x23158b=>typeof _0x23158b==_0x5e0080(0x2e9)),'focusedId':_0x3acda3[_0x5e0080(0x448)]},_0x5473eb={'eventID':_0x5db27d[_0x5e0080(0x415)],'data':{'unitID':this[_0x5e0080(0x2cc)],'memberID':this[_0x5e0080(0x388)]['getMemberID'](),'selection':JSON['stringify'](_0x31e315)}};this[_0x5e0080(0x388)][_0x5e0080(0x31b)](_0x5473eb,this['unitID']);},0x64));}[_0x3bc3ed(0x44f)](){const _0x462bc3=_0x3bc3ed;super['dispose'](),this['_cursorInfo$'][_0x462bc3(0x36a)](new Map()),this['_cursorInfo$'][_0x462bc3(0x429)](),this[_0x462bc3(0x290)][_0x462bc3(0x36a)]([]),this[_0x462bc3(0x290)][_0x462bc3(0x429)]();}[_0x3bc3ed(0x435)](){const _0x41b3cb=_0x3bc3ed;this[_0x41b3cb(0x3a5)]||(this[_0x41b3cb(0x3a5)]=!0x0,this[_0x41b3cb(0x388)][_0x41b3cb(0x2d9)][_0x41b3cb(0x320)](_0x18a3e8(this['dispose$']))[_0x41b3cb(0x1f2)](_0x22e38a=>{const _0x1c7933=_0x41b3cb;_0x22e38a===_0x5ea676[_0x1c7933(0x324)]?this[_0x1c7933(0x3d5)]():this[_0x1c7933(0x27d)]();}),this[_0x41b3cb(0x388)][_0x41b3cb(0x316)][_0x41b3cb(0x320)](_0x18a3e8(this[_0x41b3cb(0x263)]))[_0x41b3cb(0x1f2)](_0x50a9eb=>{const _0x361642=_0x41b3cb;let _0x39d291=_0x50a9eb[_0x361642(0x2bf)];_0x39d291===_0x5db27d[_0x361642(0x415)]&&this[_0x361642(0x411)](_0x50a9eb),_0x39d291===_0x5db27d[_0x361642(0x1fb)]&&this[_0x361642(0x2cb)](_0x50a9eb);}),this['_boardElementStateService'][_0x41b3cb(0x24d)][_0x41b3cb(0x320)](_0x18a3e8(this[_0x41b3cb(0x263)]))[_0x41b3cb(0x1f2)](_0x5581d5=>{const _0x42c828=_0x41b3cb;this[_0x42c828(0x2bc)]&&this[_0x42c828(0x26f)](_0x5581d5);}));}['_onCursorUpdate'](_0x5a2efd){const _0x25f826=_0x3bc3ed;var _0x1ae32a,_0x22cc2e,_0x462665;let {memberID:_0x48c525,selection:_0x2e1b4b}=_0x5a2efd['data'];if(_0x48c525===((_0x1ae32a=(_0x22cc2e=this[_0x25f826(0x388)])[_0x25f826(0x36d)])==null?void 0x0:_0x1ae32a['call'](_0x22cc2e)))return;let _0x483a15=Mn(_0x2e1b4b);if(!_0x483a15||_0x483a15['unitId']!==this[_0x25f826(0x2cc)])return;let _0x483e8a=((_0x462665=this['_memberService'][_0x25f826(0x230)](this[_0x25f826(0x2cc)],_0x48c525))==null?void 0x0:_0x462665['name'])??'Unknown\x20user',_0x55e4af={'color':this[_0x25f826(0x404)]['assignAColorForMemberID'](_0x48c525),'name':_0x483e8a,'unitId':_0x483a15[_0x25f826(0x2e4)],'subUnitId':_0x483a15[_0x25f826(0x2dd)],'selectedIds':_0x483a15[_0x25f826(0x370)],'focusedId':_0x483a15[_0x25f826(0x448)],'selection':_0x2e1b4b},_0x3ef086=new Map(this[_0x25f826(0x2e0)]);_0x3ef086[_0x25f826(0x34c)](_0x48c525,_0x55e4af),this[_0x25f826(0x27f)]['next'](_0x3ef086);}['_onCursorDelete'](_0x3706ae){const _0x5abd22=_0x3bc3ed;let {memberID:_0x307388}=_0x3706ae[_0x5abd22(0x276)],_0x269b66=new Map(this['cursorInfo']);_0x269b66[_0x5abd22(0x3aa)](_0x307388),this['_cursorInfo$'][_0x5abd22(0x36a)](_0x269b66);}['_toggleOnline'](){const _0x124837=_0x3bc3ed;this[_0x124837(0x2bc)]=!0x0,this['_updateLocalCursor'](this['_boardElementStateService']['getSnapshot']());}[_0x3bc3ed(0x27d)](){const _0x526202=_0x3bc3ed;this[_0x526202(0x2bc)]=!0x1;}};Nn=Y([J(0x2,_0x4d1fed(Z)),J(0x3,_0x4d1fed(_0x1dadcd)),J(0x4,_0x4d1fed(_0x141412))],Nn);function Pn(_0x43d814){const _0x49eedd=_0x3bc3ed;let _0x5443a2='';for(let _0x10987c of _0x43d814){let {startOffset:_0x39d6bf,endOffset:_0x337437,isActive:_0x27383d,rangeType:_0x4bb8ba,segmentId:_0x563691,segmentPage:_0xab0892}=_0x10987c;_0x5443a2[_0x49eedd(0x1f0)]&&(_0x5443a2+=','),_0x5443a2+=_0x39d6bf+':'+_0x337437+':'+(_0x27383d?'1':'0')+':'+_0x4bb8ba+':'+_0x563691+':'+_0xab0892;}return _0x5443a2;}function Fn(_0x18f009){const _0x4d432e=_0x3bc3ed;let _0x4d81ab=_0x18f009[_0x4d432e(0x31f)](','),_0xd9e650=[];for(let _0x3887c8 of _0x4d81ab){let [_0x4cc7be,_0x14a3e5,_0x2ea2a2,_0x3f8ba2,_0x2fe050,_0x1930bf]=_0x3887c8[_0x4d432e(0x31f)](':');_0xd9e650[_0x4d432e(0x368)]({'startOffset':Number(_0x4cc7be),'endOffset':Number(_0x14a3e5),'collapsed':_0x4cc7be===_0x14a3e5,'isActive':_0x2ea2a2==='1','rangeType':_0x3f8ba2===_0x41cd22[_0x4d432e(0x216)]?_0x41cd22[_0x4d432e(0x216)]:_0x41cd22[_0x4d432e(0x3ce)],'segmentId':typeof _0x2fe050==_0x4d432e(0x2e9)?String(_0x2fe050):'','segmentPage':Number(_0x1930bf??-0x1)});}return _0xd9e650[_0x4d432e(0x3e8)](_0x1701a1=>_0x1701a1[_0x4d432e(0x34a)])||(_0xd9e650[0x0][_0x4d432e(0x34a)]=!0x0),_0xd9e650;}var In=class extends _0x2c69b2{constructor(..._0x5cd7b6){const _0x3bc77a=_0x3bc3ed;super(..._0x5cd7b6),q(this,'_collabCursorState$',new _0x5c73ce(null)),q(this,_0x3bc77a(0x2eb),this[_0x3bc77a(0x250)][_0x3bc77a(0x2ae)]());}[_0x3bc3ed(0x3ae)](_0x32a724){const _0x1b30ba=_0x3bc3ed;let {unitID:_0x3af6df,memberID:_0xc4478f,textRanges:_0x447f5a}=_0x32a724,_0x50e084=Pn(_0x447f5a);if(_0x50e084==='')return;let _0x3b84b3={'unitID':_0x3af6df,'memberID':_0xc4478f,'selection':_0x50e084};this[_0x1b30ba(0x250)][_0x1b30ba(0x36a)](_0x3b84b3);}};let Ln=class extends _0x2c69b2{get[_0x3bc3ed(0x2e0)](){const _0x22ea84=_0x3bc3ed;return this['_cursorInfo$'][_0x22ea84(0x303)]();}get[_0x3bc3ed(0x23a)](){const _0x29a5b9=_0x3bc3ed;return this['_roomMembers$'][_0x29a5b9(0x303)]();}constructor(_0x349f4b,_0x3a3ab2,_0x415820,_0x41e6fb,_0x46c3f9,_0x4d304c,_0x5ea6b2,_0x22445f,_0x5edff9){const _0x57edbe=_0x3bc3ed;super(),this[_0x57edbe(0x2cc)]=_0x349f4b,this[_0x57edbe(0x388)]=_0x3a3ab2,this['_injector']=_0x415820,this['_colorAssignService']=_0x41e6fb,this[_0x57edbe(0x1d6)]=_0x46c3f9,this['_syncEditingCollabCursorService']=_0x4d304c,this['_transformService']=_0x5ea6b2,this[_0x57edbe(0x3a6)]=_0x22445f,this['_commandService']=_0x5edff9,q(this,'_online',!0x1),q(this,_0x57edbe(0x3a5),!0x1),q(this,'_cursorInfo$',new _0x5c73ce(new Map())),q(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),q(this,_0x57edbe(0x290),new _0x5c73ce([])),q(this,_0x57edbe(0x2d4),this[_0x57edbe(0x290)][_0x57edbe(0x320)](_0x4598fc(0x12c))),q(this,'_updateLocalCursor',_0x57d052(_0x36b223=>{const _0x332412=_0x57edbe;let _0x1a7f02={'eventID':_0x5db27d[_0x332412(0x415)],'data':{'unitID':this[_0x332412(0x2cc)],'memberID':this[_0x332412(0x388)][_0x332412(0x36d)](),'selection':Pn(_0x36b223)}};this[_0x332412(0x388)][_0x332412(0x31b)](_0x1a7f02,this[_0x332412(0x2cc)]);},0x64));}['dispose'](){const _0x16502a=_0x3bc3ed;super[_0x16502a(0x44f)](),this[_0x16502a(0x27f)][_0x16502a(0x36a)](new Map()),this[_0x16502a(0x27f)][_0x16502a(0x429)](),this[_0x16502a(0x290)][_0x16502a(0x36a)]([]),this[_0x16502a(0x290)]['complete']();}[_0x3bc3ed(0x435)](){const _0x4aae20=_0x3bc3ed;this[_0x4aae20(0x3a5)]||(this[_0x4aae20(0x3a5)]=!0x0,this[_0x4aae20(0x388)][_0x4aae20(0x2d9)][_0x4aae20(0x320)](_0x18a3e8(this[_0x4aae20(0x263)]))[_0x4aae20(0x1f2)](_0x3c47b1=>{const _0x32f4a0=_0x4aae20;_0x3c47b1===_0x5ea676[_0x32f4a0(0x324)]?this[_0x32f4a0(0x3d5)]():this[_0x32f4a0(0x27d)]();}),this['_session'][_0x4aae20(0x316)]['pipe'](_0x18a3e8(this[_0x4aae20(0x263)]))['subscribe'](_0x3de843=>{const _0x1c7641=_0x4aae20;let _0x54485c=_0x3de843[_0x1c7641(0x2bf)];_0x54485c===_0x5db27d[_0x1c7641(0x415)]&&this[_0x1c7641(0x411)](_0x3de843),_0x54485c===_0x5db27d[_0x1c7641(0x1fb)]&&this['_onCursorDelete'](_0x3de843);}),this[_0x4aae20(0x239)](this[_0x4aae20(0x20e)][_0x4aae20(0x222)](_0x1b52a5=>{const _0x5a6ffe=_0x4aae20;let _0x2589d5=_0x1b52a5[_0x5a6ffe(0x278)];_0x2589d5!=null&&this[_0x5a6ffe(0x2bc)]&&_0x1b52a5['id']===_0x306fe8['id']&&_0x2589d5[_0x5a6ffe(0x2e4)]===this[_0x5a6ffe(0x2cc)]&&_0x2589d5[_0x5a6ffe(0x264)]===!0x1&&_0x2589d5['ranges'][_0x5a6ffe(0x1f0)]>0x0&&this[_0x5a6ffe(0x26f)](_0x2589d5[_0x5a6ffe(0x407)]);})),this[_0x4aae20(0x1f7)]['collabCursorState$'][_0x4aae20(0x320)](_0x18a3e8(this[_0x4aae20(0x263)]))[_0x4aae20(0x1f2)](_0x14e3c7=>{const _0x582753=_0x4aae20;if((_0x14e3c7==null?void 0x0:_0x14e3c7[_0x582753(0x2cc)])!==this[_0x582753(0x2cc)])return;let _0x3242ea={'eventID':_0x5db27d[_0x582753(0x415)],'data':_0x14e3c7};this[_0x582753(0x411)](_0x3242ea);}),this['disposeWithMe'](this['_commandService'][_0x4aae20(0x222)](_0xbbc817=>{const _0x566d45=_0x4aae20;if(_0xbbc817[_0x566d45(0x278)]==null)return;let _0x55ae69=_0xbbc817[_0x566d45(0x278)];if(_0xbbc817['id']!==_0x175756['id']||_0x55ae69[_0x566d45(0x2e4)]!==this[_0x566d45(0x2cc)])return;let _0x30b4f0={'id':'doc.mutation.rich-text-editing','params':_0x55ae69},_0x35480b=this[_0x566d45(0x2e0)];for(let [_0x14151d,_0x3c76a9]of _0x35480b){let _0x557450={'id':_0x566d45(0x22b),'params':{'unitId':this[_0x566d45(0x2cc)],'actions':null,'textRanges':_0x3c76a9['ranges']}},_0x54e680=this['_transformService'][_0x566d45(0x344)](_0x30b4f0,_0x557450,!0x1);if(_0x4a2b76(_0x54e680))throw _0x54e680[_0x566d45(0x3d0)];_0x35480b[_0x566d45(0x34c)](_0x14151d,{..._0x3c76a9,'ranges':_0x54e680[_0x566d45(0x26c)][_0x566d45(0x278)]['textRanges']});}queueMicrotask(()=>{const _0x902783=_0x566d45;this['_cursorInfo$'][_0x902783(0x36a)](_0x35480b);});})));}[_0x3bc3ed(0x411)](_0x500b18){const _0x1eca0e=_0x3bc3ed;var _0x3f714a;let {memberID:_0x4704fa,selection:_0x11a30b}=_0x500b18['data'],_0x7df61e=Fn(_0x11a30b),_0xa2d65a=((_0x3f714a=this['_memberService'][_0x1eca0e(0x230)](this[_0x1eca0e(0x2cc)],_0x4704fa))==null?void 0x0:_0x3f714a[_0x1eca0e(0x270)])??_0x1eca0e(0x242),_0x433a04={'color':this['_colorAssignService'][_0x1eca0e(0x35e)](_0x4704fa),'name':_0xa2d65a,'ranges':_0x7df61e},_0x297601=this[_0x1eca0e(0x2e0)];_0x297601['set'](_0x4704fa,_0x433a04),this[_0x1eca0e(0x27f)][_0x1eca0e(0x36a)](_0x297601);}[_0x3bc3ed(0x2cb)](_0x5fa6){const _0x24e73b=_0x3bc3ed;let {memberID:_0x42d6bc}=_0x5fa6[_0x24e73b(0x276)],_0x8dff9e=this[_0x24e73b(0x2e0)];_0x8dff9e[_0x24e73b(0x3aa)](_0x42d6bc),this['_cursorInfo$'][_0x24e73b(0x36a)](_0x8dff9e);}['_toggleOnline'](){const _0x4d8aa6=_0x3bc3ed;var _0x48d8cb;if(this[_0x4d8aa6(0x2bc)]=!0x0,((_0x48d8cb=this['_univerInstanceService'][_0x4d8aa6(0x267)]())==null?void 0x0:_0x48d8cb['getUnitId']())!==this[_0x4d8aa6(0x2cc)])return;let _0x8a59cf=this[_0x4d8aa6(0x33f)][_0x4d8aa6(0x240)](_0x514f9f)['getDocRanges']();Array[_0x4d8aa6(0x298)](_0x8a59cf)&&_0x8a59cf[_0x4d8aa6(0x1f0)]>0x0&&this[_0x4d8aa6(0x26f)](_0x8a59cf);}[_0x3bc3ed(0x27d)](){this['_online']=!0x1;}};Ln=Y([J(0x2,_0x4d1fed(_0x57f253)),J(0x3,_0x4d1fed(Z)),J(0x4,_0x4d1fed(_0x1dadcd)),J(0x5,_0x4d1fed(In)),J(0x6,_0x1ca2f6),J(0x7,_0x449dc1),J(0x8,_0x581e85)],Ln);const Rn=()=>{let _0x1cae59=[],_0x586564=!0x1;return _0x960c71=>{const _0x351f78=_0xb747;_0x1cae59[_0x351f78(0x368)](_0x960c71),_0x586564||(_0x586564=!0x0,setTimeout(()=>{_0x1cae59['forEach'](_0x1189c2=>_0x1189c2()),_0x1cae59=[],_0x586564=!0x1;}));};};let zn=class extends _0x2c69b2{get['cursorInfo'](){const _0x49f39e=_0x3bc3ed;return this[_0x49f39e(0x27f)][_0x49f39e(0x303)]();}get[_0x3bc3ed(0x23a)](){const _0x1e7c0c=_0x3bc3ed;return this[_0x1e7c0c(0x290)][_0x1e7c0c(0x303)]();}constructor(_0x2fd024,_0x595728,_0x17ae97,_0x1afde6,_0x31ae2c,_0x18dc13,_0x2a87ba,_0x9f6eb2){const _0x20b242=_0x3bc3ed;super(),this[_0x20b242(0x2cc)]=_0x2fd024,this[_0x20b242(0x388)]=_0x595728,this[_0x20b242(0x33f)]=_0x17ae97,this['_colorAssignService']=_0x1afde6,this[_0x20b242(0x1d6)]=_0x31ae2c,this[_0x20b242(0x3a6)]=_0x18dc13,this['_commandService']=_0x2a87ba,this['_refRangeService']=_0x9f6eb2,q(this,_0x20b242(0x2bc),!0x1),q(this,'_init',!0x1),q(this,_0x20b242(0x27f),new _0x5c73ce(new Map())),q(this,_0x20b242(0x301),this[_0x20b242(0x27f)][_0x20b242(0x2ae)]()),q(this,_0x20b242(0x290),new _0x5c73ce([])),q(this,_0x20b242(0x2d4),this[_0x20b242(0x290)]['pipe'](_0x4598fc(0x12c))),q(this,'_updateLocalCursor',_0x57d052((_0x512afc,_0x5a74cc)=>{const _0x46526a=_0x20b242;let _0x192ce2={'eventID':_0x5db27d[_0x46526a(0x415)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x46526a(0x36d)](),'selection':_0x3fc7ee(_0x512afc,_0x5a74cc[_0x46526a(0x327)])}};this['_session'][_0x46526a(0x31b)](_0x192ce2,this[_0x46526a(0x2cc)]);},0x64));}['dispose'](){const _0x3e42cf=_0x3bc3ed;super['dispose'](),this[_0x3e42cf(0x27f)][_0x3e42cf(0x36a)](new Map()),this[_0x3e42cf(0x27f)][_0x3e42cf(0x429)](),this[_0x3e42cf(0x290)]['next']([]),this[_0x3e42cf(0x290)][_0x3e42cf(0x429)]();}['init'](){const _0x1bfbf0=_0x3bc3ed;this[_0x1bfbf0(0x3a5)]||(this[_0x1bfbf0(0x3a5)]=!0x0,this[_0x1bfbf0(0x388)]['sessionStatus$']['pipe'](_0x18a3e8(this[_0x1bfbf0(0x263)]))[_0x1bfbf0(0x1f2)](_0x52f50c=>{const _0x4e6b02=_0x1bfbf0;_0x52f50c===_0x5ea676[_0x4e6b02(0x324)]?this[_0x4e6b02(0x3d5)]():this[_0x4e6b02(0x27d)]();}),this[_0x1bfbf0(0x388)][_0x1bfbf0(0x316)][_0x1bfbf0(0x320)](_0x18a3e8(this[_0x1bfbf0(0x263)]))[_0x1bfbf0(0x1f2)](_0x1f8267=>{const _0x438688=_0x1bfbf0;let _0x7de95d=_0x1f8267[_0x438688(0x2bf)];_0x7de95d===_0x5db27d['UPDATE_CURSOR']&&this[_0x438688(0x411)](_0x1f8267),_0x7de95d===_0x5db27d[_0x438688(0x1fb)]&&this[_0x438688(0x2cb)](_0x1f8267);}),this['_onRefRangeChange'](),this[_0x1bfbf0(0x239)](this[_0x1bfbf0(0x20e)][_0x1bfbf0(0x222)](_0x20ed6c=>{const _0x2dd7e7=_0x1bfbf0;if(this[_0x2dd7e7(0x2bc)]&&_0x20ed6c['id']===_0x148457['id']&&_0x20ed6c[_0x2dd7e7(0x278)][_0x2dd7e7(0x2e4)]===this[_0x2dd7e7(0x2cc)]){let _0x561ee0=_0x20ed6c[_0x2dd7e7(0x278)];this[_0x2dd7e7(0x26f)](_0x561ee0[_0x2dd7e7(0x2dd)],_0x561ee0[_0x2dd7e7(0x1e9)][0x0]);}})));}[_0x3bc3ed(0x411)](_0x5c0abc){const _0x3fcb32=_0x3bc3ed;var _0x143fbd;let {memberID:_0x22b167,selection:_0x3f0be1}=_0x5c0abc['data'],{sheetName:_0x461508,range:_0x1b578a}=_0x428444(_0x3f0be1),_0x437159={'name':((_0x143fbd=this[_0x3fcb32(0x1d6)][_0x3fcb32(0x230)](this[_0x3fcb32(0x2cc)],_0x22b167))==null?void 0x0:_0x143fbd[_0x3fcb32(0x270)])??_0x3fcb32(0x242),'range':this[_0x3fcb32(0x361)](_0x461508,_0x1b578a),'sheetID':_0x461508,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x22b167),'selection':_0x3f0be1},_0x16ef49=this[_0x3fcb32(0x2e0)];_0x16ef49[_0x3fcb32(0x34c)](_0x22b167,_0x437159),this['_cursorInfo$'][_0x3fcb32(0x36a)](_0x16ef49);}[_0x3bc3ed(0x2cb)](_0x28e2bb){const _0x32dea8=_0x3bc3ed;let {memberID:_0x577e78}=_0x28e2bb[_0x32dea8(0x276)],_0x2925c5=this[_0x32dea8(0x2e0)];_0x2925c5[_0x32dea8(0x3aa)](_0x577e78),this[_0x32dea8(0x27f)]['next'](_0x2925c5);}[_0x3bc3ed(0x361)](_0x25e86,_0x4829fa){const _0x160bea=_0x3bc3ed;var _0x180534;let _0x201c4a=(_0x180534=this[_0x160bea(0x3a6)]['getUnit'](this[_0x160bea(0x2cc)],_0x410a65[_0x160bea(0x3a0)]))==null||(_0x180534=_0x180534[_0x160bea(0x1dd)](_0x25e86))==null?void 0x0:_0x180534[_0x160bea(0x1e3)]();return(_0x201c4a==null?void 0x0:_0x201c4a[_0x160bea(0x329)](_0x3c0802=>_0x186f70['contains'](_0x3c0802,_0x4829fa)))||_0x4829fa;}['_onRefRangeChange'](){const _0x4abfe3=_0x3bc3ed;let _0x1aa2c3=new _0x5b1175(),_0x40c69f=Rn(),_0x2277ce=()=>{const _0x55f578=_0xb747;_0x1aa2c3[_0x55f578(0x44f)]();let _0x23fb68=(_0x1e80e3,_0x3b9376,_0x457c24,_0x24e545)=>{const _0x542762=_0x55f578;let _0x41e4ef=[];switch(_0x1e80e3['id']){case _0x4ee3b0[_0x542762(0x2e7)]:_0x41e4ef=_0x390f96(_0x1e80e3,_0x24e545);break;case _0x4ee3b0[_0x542762(0x23c)]:_0x41e4ef=_0x121ffe(_0x1e80e3,_0x24e545);break;case _0x4ee3b0[_0x542762(0x3a2)]:_0x41e4ef=_0x14d9b5(_0x1e80e3,_0x24e545);break;case _0x4ee3b0['InsertRangeMoveDownCommandId']:_0x41e4ef=_0x52df76(_0x1e80e3,_0x24e545);break;case _0x4ee3b0['InsertRangeMoveRightCommandId']:_0x41e4ef=_0x5abb5e(_0x1e80e3,_0x24e545);break;case _0x4ee3b0[_0x542762(0x2f3)]:_0x41e4ef=_0x384857(_0x1e80e3,_0x24e545);break;case _0x4ee3b0[_0x542762(0x30c)]:_0x41e4ef=_0x65e08(_0x1e80e3,_0x24e545);break;case _0x4ee3b0['RemoveColCommandId']:_0x41e4ef=_0x54040f(_0x1e80e3,_0x24e545);break;case _0x4ee3b0['RemoveRowCommandId']:_0x41e4ef=_0x4a00ed(_0x1e80e3,_0x24e545);break;}let _0x37aaee=_0x13d8bd(_0x41e4ef,_0x24e545),_0x284324=this['cursorInfo']['get'](_0x3b9376);if(_0x284324&&_0x37aaee){let _0x2c9926={..._0x284324,'range':_0x37aaee};this[_0x542762(0x2e0)][_0x542762(0x34c)](_0x3b9376,_0x2c9926),_0x40c69f(()=>{const _0x2badaf=_0x542762;let _0x28fa80=this[_0x2badaf(0x41c)][_0x2badaf(0x226)](_0x37aaee,_0x303ec3=>(_0x28fa80['dispose'](),_0x23fb68(_0x303ec3,_0x3b9376,_0x457c24,_0x37aaee)));_0x1aa2c3['add'](_0x28fa80);});}return{'redos':[],'undos':[]};};this[_0x55f578(0x2e0)]['forEach']((_0x1391a7,_0x551d9e)=>{const _0x8d8c7a=_0x55f578;let {range:_0x5a2408,sheetID:_0x202eaf}=_0x1391a7,_0x13a2e3=this['_refRangeService'][_0x8d8c7a(0x226)](_0x5a2408,_0x334854=>(_0x13a2e3[_0x8d8c7a(0x44f)](),_0x23fb68(_0x334854,_0x551d9e,_0x202eaf,_0x5a2408)));_0x1aa2c3[_0x8d8c7a(0x31d)](_0x13a2e3);});};this[_0x4abfe3(0x239)](_0x9b2c48(this['_cursorInfo$']['subscribe'](()=>{_0x2277ce();})));}[_0x3bc3ed(0x3d5)](){const _0x5e1931=_0x3bc3ed;var _0x35fad2,_0x16764a;if(this[_0x5e1931(0x2bc)]=!0x0,((_0x35fad2=this['_univerInstanceService'][_0x5e1931(0x267)]())==null?void 0x0:_0x35fad2[_0x5e1931(0x275)]())!==this[_0x5e1931(0x2cc)])return;let _0x486de5=(_0x16764a=this[_0x5e1931(0x33f)][_0x5e1931(0x240)](_0x1265bd)[_0x5e1931(0x24b)]())==null?void 0x0:_0x16764a[0x0],_0x1bbeb7=this[_0x5e1931(0x3a6)][_0x5e1931(0x3bb)](_0x410a65[_0x5e1931(0x3a0)])['getActiveSheet']();_0x486de5&&_0x1bbeb7&&this[_0x5e1931(0x26f)](_0x1bbeb7[_0x5e1931(0x22c)](),_0x486de5);}['_toggleOffline'](){const _0x394b18=_0x3bc3ed;this[_0x394b18(0x2bc)]=!0x1;}};zn=Y([J(0x2,_0x4d1fed(_0x57f253)),J(0x3,_0x4d1fed(Z)),J(0x4,_0x4d1fed(_0x1dadcd)),J(0x5,_0x449dc1),J(0x6,_0x581e85),J(0x7,_0x4d1fed(_0x46b02d))],zn);function Bn(_0x513e30){const _0x56897d=_0x3bc3ed;let _0x29f007;try{_0x29f007=JSON['parse'](_0x513e30);}catch{return null;}if(typeof _0x29f007!=_0x56897d(0x364)||!_0x29f007)return null;let _0x4c59c4=_0x29f007;if(_0x4c59c4['kind']!=='slide-element-selection'||typeof _0x4c59c4[_0x56897d(0x2e4)]!=_0x56897d(0x2e9)||typeof _0x4c59c4[_0x56897d(0x2dd)]!=_0x56897d(0x2e9))return null;let _0xe86a3a=Array[_0x56897d(0x298)](_0x4c59c4[_0x56897d(0x370)])?_0x4c59c4[_0x56897d(0x370)][_0x56897d(0x259)](_0x5be16f=>typeof _0x5be16f==_0x56897d(0x2e9)):[],_0x28acb5=typeof _0x4c59c4['focusedId']==_0x56897d(0x2e9)?_0x4c59c4[_0x56897d(0x448)]:null;return{'kind':_0x56897d(0x28a),'unitId':_0x4c59c4[_0x56897d(0x2e4)],'subUnitId':_0x4c59c4[_0x56897d(0x2dd)],'selectedIds':_0xe86a3a,'focusedId':_0x28acb5};}function _0xb747(_0x48d97d,_0x1d45f){_0x48d97d=_0x48d97d-0x1c2;const _0x29faf4=_0x29fa();let _0xb747b4=_0x29faf4[_0x48d97d];return _0xb747b4;}let Vn=class extends _0x2c69b2{get[_0x3bc3ed(0x2e0)](){const _0x1cba97=_0x3bc3ed;return this['_cursorInfo$'][_0x1cba97(0x303)]();}get[_0x3bc3ed(0x23a)](){const _0x4f5446=_0x3bc3ed;return this['_roomMembers$'][_0x4f5446(0x303)]();}constructor(_0x36eaef,_0x1cb057,_0x4c60d2,_0x1a9751,_0x2d6c13){const _0x6d3987=_0x3bc3ed;super(),this[_0x6d3987(0x2cc)]=_0x36eaef,this[_0x6d3987(0x388)]=_0x1cb057,this[_0x6d3987(0x404)]=_0x4c60d2,this[_0x6d3987(0x1d6)]=_0x1a9751,this[_0x6d3987(0x2cf)]=_0x2d6c13,q(this,_0x6d3987(0x2bc),!0x1),q(this,_0x6d3987(0x3a5),!0x1),q(this,_0x6d3987(0x27f),new _0x5c73ce(new Map())),q(this,_0x6d3987(0x301),this['_cursorInfo$'][_0x6d3987(0x2ae)]()),q(this,_0x6d3987(0x290),new _0x5c73ce([])),q(this,_0x6d3987(0x2d4),this[_0x6d3987(0x290)][_0x6d3987(0x320)](_0x4598fc(0x12c))),q(this,_0x6d3987(0x26f),_0x57d052(_0x305e53=>{const _0x4ac21c=_0x6d3987;let _0x27b493=_0x305e53[_0x4ac21c(0x386)];if(!_0x27b493||_0x27b493[_0x4ac21c(0x2e4)]!==this['unitID'])return;let _0x2a614a={'kind':_0x4ac21c(0x28a),'unitId':_0x27b493[_0x4ac21c(0x2e4)],'subUnitId':_0x27b493['subUnitId'],'selectedIds':_0x305e53[_0x4ac21c(0x370)][_0x4ac21c(0x259)](_0x420aa0=>typeof _0x420aa0=='string'),'focusedId':_0x305e53[_0x4ac21c(0x448)]},_0x53e453={'eventID':_0x5db27d[_0x4ac21c(0x415)],'data':{'unitID':this[_0x4ac21c(0x2cc)],'memberID':this[_0x4ac21c(0x388)][_0x4ac21c(0x36d)](),'selection':JSON[_0x4ac21c(0x1f6)](_0x2a614a)}};this[_0x4ac21c(0x388)][_0x4ac21c(0x31b)](_0x53e453,this[_0x4ac21c(0x2cc)]);},0x64));}[_0x3bc3ed(0x44f)](){const _0x4ce692=_0x3bc3ed;super[_0x4ce692(0x44f)](),this['_cursorInfo$'][_0x4ce692(0x36a)](new Map()),this[_0x4ce692(0x27f)][_0x4ce692(0x429)](),this[_0x4ce692(0x290)][_0x4ce692(0x36a)]([]),this[_0x4ce692(0x290)]['complete']();}['init'](){const _0xebed91=_0x3bc3ed;this['_init']||(this[_0xebed91(0x3a5)]=!0x0,this['_session'][_0xebed91(0x2d9)]['pipe'](_0x18a3e8(this['dispose$']))[_0xebed91(0x1f2)](_0x3cef38=>{const _0x36a5ad=_0xebed91;_0x3cef38===_0x5ea676[_0x36a5ad(0x324)]?this[_0x36a5ad(0x3d5)]():this[_0x36a5ad(0x27d)]();}),this[_0xebed91(0x388)][_0xebed91(0x316)][_0xebed91(0x320)](_0x18a3e8(this[_0xebed91(0x263)]))['subscribe'](_0x493371=>{const _0xbe56fd=_0xebed91;let _0xb91c85=_0x493371[_0xbe56fd(0x2bf)];_0xb91c85===_0x5db27d[_0xbe56fd(0x415)]&&this[_0xbe56fd(0x411)](_0x493371),_0xb91c85===_0x5db27d['USERS_LEAVE']&&this['_onCursorDelete'](_0x493371);}),this['_slideDrawingStateService'][_0xebed91(0x24d)][_0xebed91(0x320)](_0x18a3e8(this[_0xebed91(0x263)]))[_0xebed91(0x1f2)](_0x3c36e2=>{const _0x1bc06c=_0xebed91;this[_0x1bc06c(0x2bc)]&&this['_updateLocalCursor'](_0x3c36e2);}));}[_0x3bc3ed(0x411)](_0x3270e7){const _0x4db486=_0x3bc3ed;var _0x2f1e18,_0x5aab99,_0x41fed1;let {memberID:_0x4013f2,selection:_0x5a6341}=_0x3270e7[_0x4db486(0x276)];if(_0x4013f2===((_0x2f1e18=(_0x5aab99=this[_0x4db486(0x388)])['getMemberID'])==null?void 0x0:_0x2f1e18[_0x4db486(0x1c9)](_0x5aab99)))return;let _0x3aa75a=Bn(_0x5a6341);if(!_0x3aa75a||_0x3aa75a['unitId']!==this[_0x4db486(0x2cc)])return;let _0x1fd031=((_0x41fed1=this[_0x4db486(0x1d6)]['getMember'](this[_0x4db486(0x2cc)],_0x4013f2))==null?void 0x0:_0x41fed1[_0x4db486(0x270)])??_0x4db486(0x242),_0x45eb79={'color':this[_0x4db486(0x404)][_0x4db486(0x35e)](_0x4013f2),'name':_0x1fd031,'unitId':_0x3aa75a[_0x4db486(0x2e4)],'subUnitId':_0x3aa75a[_0x4db486(0x2dd)],'selectedIds':_0x3aa75a['selectedIds'],'focusedId':_0x3aa75a[_0x4db486(0x448)],'selection':_0x5a6341},_0x3b11d4=new Map(this[_0x4db486(0x2e0)]);_0x3b11d4[_0x4db486(0x34c)](_0x4013f2,_0x45eb79),this[_0x4db486(0x27f)][_0x4db486(0x36a)](_0x3b11d4);}[_0x3bc3ed(0x2cb)](_0x284d1d){const _0x5b694d=_0x3bc3ed;let {memberID:_0xdd8902}=_0x284d1d[_0x5b694d(0x276)],_0xff4d66=new Map(this['cursorInfo']);_0xff4d66['delete'](_0xdd8902),this['_cursorInfo$'][_0x5b694d(0x36a)](_0xff4d66);}[_0x3bc3ed(0x3d5)](){const _0x2cdbdb=_0x3bc3ed;this[_0x2cdbdb(0x2bc)]=!0x0,this['_updateLocalCursor'](this[_0x2cdbdb(0x2cf)]['getSnapshot']());}['_toggleOffline'](){const _0x4cfc67=_0x3bc3ed;this[_0x4cfc67(0x2bc)]=!0x1;}};Vn=Y([J(0x2,_0x4d1fed(Z)),J(0x3,_0x4d1fed(_0x1dadcd)),J(0x4,_0x4d1fed(_0x3f17c0))],Vn);let Q=class extends _0x2c69b2{constructor(_0x428da4,_0x214c21,_0x3233c0){const _0x2b7efe=_0x3bc3ed;super(),this['_univerInstanceService']=_0x428da4,this[_0x2b7efe(0x33f)]=_0x214c21,this[_0x2b7efe(0x3ab)]=_0x3233c0,q(this,'_entities',new Map()),q(this,_0x2b7efe(0x418),new _0x5ded12()),this[_0x2b7efe(0x3a5)]();}['dispose'](){const _0xc011e2=_0x3bc3ed;super[_0xc011e2(0x44f)](),this['_entityInit$'][_0xc011e2(0x429)](),this[_0xc011e2(0x3e4)][_0xc011e2(0x348)](_0x33279c=>_0x33279c[_0xc011e2(0x44f)]());}[_0x3bc3ed(0x27a)](_0x21399f){const _0x595eab=_0x3bc3ed;return this[_0x595eab(0x3e4)]['has'](_0x21399f)?this[_0x595eab(0x3e4)][_0x595eab(0x240)](_0x21399f)[_0x595eab(0x301)]:this[_0x595eab(0x418)][_0x595eab(0x320)](_0x10eeb(_0x48a705=>_0x48a705[_0x595eab(0x2cc)]===_0x21399f),_0x3c42c4(_0x111478=>_0x111478[_0x595eab(0x301)]));}[_0x3bc3ed(0x3a5)](){const _0x5d700b=_0x3bc3ed;this[_0x5d700b(0x3a6)][_0x5d700b(0x3c6)](_0x410a65[_0x5d700b(0x3a0)])['pipe'](_0x18a3e8(this[_0x5d700b(0x263)]))[_0x5d700b(0x1f2)](async _0x51d9d2=>{const _0x5c0616=_0x5d700b;let _0x1b5b39=_0x51d9d2['unit'][_0x5c0616(0x275)](),_0x1c8f37=await this[_0x5c0616(0x241)](_0x1b5b39);this[_0x5c0616(0x418)]['next'](_0x1c8f37),this[_0x5c0616(0x3e4)][_0x5c0616(0x34c)](_0x1b5b39,_0x1c8f37);}),this[_0x5d700b(0x3a6)][_0x5d700b(0x3c6)](_0x410a65[_0x5d700b(0x1d8)])[_0x5d700b(0x320)](_0x18a3e8(this[_0x5d700b(0x263)]))[_0x5d700b(0x320)](_0x10eeb(_0x45a07b=>!_0x45a07b['unit'][_0x5d700b(0x275)]()[_0x5d700b(0x1da)]('__')))[_0x5d700b(0x1f2)](async _0x31c843=>{const _0x277e3f=_0x5d700b;let {unit:_0xee090f}=_0x31c843,_0x11f2ca=_0xee090f[_0x277e3f(0x275)](),_0x39cd85=await this[_0x277e3f(0x243)](_0x11f2ca);this['_entityInit$'][_0x277e3f(0x36a)](_0x39cd85),this[_0x277e3f(0x3e4)][_0x277e3f(0x34c)](_0x11f2ca,_0x39cd85);}),this['_univerInstanceService'][_0x5d700b(0x3c6)](_0x410a65['UNIVER_SLIDE'])['pipe'](_0x18a3e8(this[_0x5d700b(0x263)]))[_0x5d700b(0x1f2)](async _0x5850a9=>{const _0x501c82=_0x5d700b;let _0x327013=_0x5850a9[_0x501c82(0x207)][_0x501c82(0x275)](),_0x29ca6e=await this[_0x501c82(0x393)](_0x327013);this['_entityInit$'][_0x501c82(0x36a)](_0x29ca6e),this['_entities']['set'](_0x327013,_0x29ca6e);}),this[_0x5d700b(0x3a6)]['getTypeOfUnitAdded$'](_0x410a65[_0x5d700b(0x3f9)])['pipe'](_0x18a3e8(this[_0x5d700b(0x263)]))[_0x5d700b(0x1f2)](async _0x36abec=>{const _0x22c3e5=_0x5d700b;let _0x8b293d=_0x36abec[_0x22c3e5(0x207)]['getUnitId'](),_0x5333a9=await this['_startBoardCollabCursor'](_0x8b293d);this['_entityInit$'][_0x22c3e5(0x36a)](_0x5333a9),this[_0x22c3e5(0x3e4)][_0x22c3e5(0x34c)](_0x8b293d,_0x5333a9);}),_0x739bae(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x410a65[_0x5d700b(0x1d8)]),this[_0x5d700b(0x3a6)][_0x5d700b(0x354)](_0x410a65['UNIVER_SHEET']),this['_univerInstanceService'][_0x5d700b(0x354)](_0x410a65['UNIVER_SLIDE']),this[_0x5d700b(0x3a6)][_0x5d700b(0x354)](_0x410a65[_0x5d700b(0x3f9)]))[_0x5d700b(0x320)](_0x18a3e8(this[_0x5d700b(0x263)]))[_0x5d700b(0x1f2)](_0x2664fa=>{const _0xf051f4=_0x5d700b;let _0x534e6d=_0x2664fa[_0xf051f4(0x275)](),_0x59374d=this[_0xf051f4(0x3e4)][_0xf051f4(0x240)](_0x534e6d);_0x59374d&&(_0x59374d[_0xf051f4(0x44f)](),this[_0xf051f4(0x3e4)][_0xf051f4(0x3aa)](_0x534e6d));});}async[_0x3bc3ed(0x241)](_0x26d84b){const _0x4683bc=_0x3bc3ed;let _0x4e1088=await this['_collabSessionService'][_0x4683bc(0x2b4)](_0x26d84b),_0x319a96=this[_0x4683bc(0x33f)][_0x4683bc(0x1f4)](zn,_0x26d84b,_0x4e1088);return _0x319a96[_0x4683bc(0x435)](),_0x319a96;}async[_0x3bc3ed(0x243)](_0x4e8ddf){const _0x45887a=_0x3bc3ed;let _0x3ef4ce=await this[_0x45887a(0x3ab)][_0x45887a(0x2b4)](_0x4e8ddf),_0x4545fc=this[_0x45887a(0x33f)][_0x45887a(0x1f4)](Ln,_0x4e8ddf,_0x3ef4ce);return _0x4545fc[_0x45887a(0x435)](),_0x4545fc;}async[_0x3bc3ed(0x393)](_0x13da26){const _0x1e5895=_0x3bc3ed;let _0x1304f9=await this[_0x1e5895(0x3ab)][_0x1e5895(0x2b4)](_0x13da26),_0xdce84c=this[_0x1e5895(0x33f)][_0x1e5895(0x1f4)](Vn,_0x13da26,_0x1304f9);return _0xdce84c[_0x1e5895(0x435)](),_0xdce84c;}async[_0x3bc3ed(0x258)](_0x408d47){const _0x3a1af5=_0x3bc3ed;let _0x118526=await this[_0x3a1af5(0x3ab)]['requireSession'](_0x408d47),_0x22b954=this[_0x3a1af5(0x33f)][_0x3a1af5(0x1f4)](Nn,_0x408d47,_0x118526);return _0x22b954[_0x3a1af5(0x435)](),_0x22b954;}};Q=Y([J(0x0,_0x449dc1),J(0x1,_0x4d1fed(_0x57f253)),J(0x2,_0x4d1fed(_0x48f983))],Q);let Hn=class extends _0x2c69b2{constructor(_0x5d4151,_0x4f17b8,_0x4c95ef){const _0x4d0917=_0x3bc3ed;super(),this[_0x4d0917(0x1d0)]=_0x5d4151,this[_0x4d0917(0x37d)]=_0x4f17b8,this[_0x4d0917(0x291)]=_0x4c95ef,q(this,_0x4d0917(0x1c7),new Set()),q(this,_0x4d0917(0x34b),!0x1),q(this,_0x4d0917(0x2f2),!0x1),q(this,_0x4d0917(0x326),new Map()),this[_0x4d0917(0x3a5)]();}[_0x3bc3ed(0x44f)](){const _0x7894c8=_0x3bc3ed;this['_removeCollabCursors'](),super[_0x7894c8(0x44f)]();}[_0x3bc3ed(0x3a5)](){const _0xcbae5=_0x3bc3ed;let _0x1dd12e=this[_0xcbae5(0x37d)][_0xcbae5(0x27a)](this[_0xcbae5(0x1d0)][_0xcbae5(0x2e4)]);this[_0xcbae5(0x239)](_0x9b2c48(_0x20eef1([_0x1dd12e,this[_0xcbae5(0x1d0)][_0xcbae5(0x207)][_0xcbae5(0x430)],this[_0xcbae5(0x291)][_0xcbae5(0x30e)]])[_0xcbae5(0x320)](_0x18a3e8(this[_0xcbae5(0x263)]))[_0xcbae5(0x1f2)](([_0x24afa3])=>{const _0x42420d=_0xcbae5;let _0x574ab5=this['_context']['unit']['getActivePageId'](),_0x49ad99=new Map();_0x24afa3[_0x42420d(0x348)]((_0xd1117a,_0x4d28b3)=>{const _0x2c4fb7=_0x42420d;_0xd1117a[_0x2c4fb7(0x2dd)]===_0x574ab5&&_0x49ad99[_0x2c4fb7(0x34c)](_0x4d28b3,{..._0xd1117a,'color':this[_0x2c4fb7(0x291)]['getColorFromTheme'](_0xd1117a[_0x2c4fb7(0x2b3)])});}),this[_0x42420d(0x326)]=_0x49ad99,this[_0x42420d(0x1f1)]();})));let _0x240539=this['_context']['scene'];this[_0xcbae5(0x239)](_0x9b2c48(_0x240539[_0xcbae5(0x402)][_0xcbae5(0x320)](_0x18a3e8(this[_0xcbae5(0x263)]))['subscribe'](()=>{const _0x45839f=_0xcbae5;this[_0x45839f(0x2f2)]||this[_0x45839f(0x1f1)]();})));}[_0x3bc3ed(0x1f1)](){const _0x4d2624=_0x3bc3ed;this[_0x4d2624(0x34b)]||(this[_0x4d2624(0x34b)]=!0x0,Promise[_0x4d2624(0x253)]()[_0x4d2624(0x1ce)](()=>{const _0x401f09=_0x4d2624;this[_0x401f09(0x34b)]=!0x1,this[_0x401f09(0x3b8)]();}));}[_0x3bc3ed(0x3b8)](){const _0x36e82f=_0x3bc3ed;this[_0x36e82f(0x378)]();let _0x2511ea=this['_context'][_0x36e82f(0x207)][_0x36e82f(0x2fa)](),_0x3632d2=[];if(this[_0x36e82f(0x326)][_0x36e82f(0x348)]((_0x797379,_0x3bf3a2)=>{const _0x27b00e=_0x36e82f;_0x797379[_0x27b00e(0x2dd)]===_0x2511ea&&_0x797379['selectedIds'][_0x27b00e(0x348)](_0x3e2bc5=>{const _0x5cc99a=_0x27b00e;let _0x197ca5=_0x15af57(_0x797379['unitId'],_0x3e2bc5),_0x570fac=this['_getSceneObjectByKey'](_0x197ca5);if(!_0x570fac)return;let _0x534201=this['_getObjectBounds'](_0x570fac);_0x3632d2[_0x5cc99a(0x368)](new An(_0x5cc99a(0x333)+_0x3bf3a2+'-'+_0x3e2bc5,{..._0x797379,'left':_0x534201[_0x5cc99a(0x321)],'top':_0x534201[_0x5cc99a(0x305)],'width':_0x534201[_0x5cc99a(0x2fc)],'height':_0x534201[_0x5cc99a(0x1ed)],'angle':_0x570fac['angle'],'evented':!0x1,'zIndex':kn}));});}),_0x3632d2[_0x36e82f(0x1f0)]===0x0){this[_0x36e82f(0x1d0)][_0x36e82f(0x27c)][_0x36e82f(0x20c)](!0x0);return;}this[_0x36e82f(0x2f2)]=!0x0,this[_0x36e82f(0x1d0)]['scene'][_0x36e82f(0x3f8)](_0x3632d2,kn),this[_0x36e82f(0x2f2)]=!0x1,this['_cursors']=new Set(_0x3632d2),this[_0x36e82f(0x1d0)]['scene']['makeDirty'](!0x0);}[_0x3bc3ed(0x378)](){const _0x4e9fba=_0x3bc3ed;let _0x1581bb=Array[_0x4e9fba(0x1e4)](this[_0x4e9fba(0x1c7)]);if(_0x1581bb[_0x4e9fba(0x1f0)]===0x0)return;let _0xe70cf8=this[_0x4e9fba(0x1d0)]['scene'];_0x4e9fba(0x2b8)in _0xe70cf8&&typeof _0xe70cf8['removeObjects']=='function'?_0xe70cf8[_0x4e9fba(0x2b8)](_0x1581bb):_0x1581bb[_0x4e9fba(0x348)](_0x206d30=>{const _0x14bde3=_0x4e9fba;_0x14bde3(0x3dd)in _0xe70cf8&&typeof _0xe70cf8[_0x14bde3(0x3dd)]==_0x14bde3(0x312)?_0xe70cf8[_0x14bde3(0x3dd)](_0x206d30):_0x206d30[_0x14bde3(0x44f)]();}),this[_0x4e9fba(0x1c7)][_0x4e9fba(0x3c7)](),_0xe70cf8['makeDirty'](!0x0);}['_getSceneObjectByKey'](_0x1326ce){const _0x22e5a5=_0x3bc3ed;var _0x585ff4;let _0x37ee1f=this[_0x22e5a5(0x1d0)][_0x22e5a5(0x27c)];return((_0x585ff4=_0x37ee1f[_0x22e5a5(0x3fd)])==null?void 0x0:_0x585ff4[_0x22e5a5(0x1c9)](_0x37ee1f,_0x1326ce))??_0x37ee1f[_0x22e5a5(0x30b)](_0x1326ce)??null;}['_getObjectBounds'](_0x4421fa){const _0x5880ac=_0x3bc3ed;var _0x32a218;let _0x5b2ae=_0x4421fa;return((_0x32a218=_0x5b2ae['getRealBound'])==null?void 0x0:_0x32a218['call'](_0x5b2ae))??{'left':_0x4421fa[_0x5880ac(0x321)],'top':_0x4421fa[_0x5880ac(0x305)],'width':_0x4421fa[_0x5880ac(0x2fc)],'height':_0x4421fa[_0x5880ac(0x1ed)]};}};Hn=Y([J(0x1,_0x4d1fed(Q)),J(0x2,_0x4d1fed(_0x8d2d0f))],Hn);const Un=_0x3bc3ed(0x3e3);var Wn=class{constructor(_0x5e4d72,_0x85aefc,_0x3e4c6c,_0xccde00){const _0x119c38=_0x3bc3ed;this[_0x119c38(0x2a8)]=_0x5e4d72,this[_0x119c38(0x36e)]=_0x85aefc,this['_docSkeleton']=_0x3e4c6c,this['_document']=_0xccde00,q(this,_0x119c38(0x307),[]),q(this,_0x119c38(0x23f),null),q(this,'_textBubble',null),q(this,'_anchorDot',null),q(this,_0x119c38(0x202),null),q(this,'_eventUnsubscribe',null),this['_render']();}set['_hover'](_0xa68aa8){const _0x424e8c=_0x3bc3ed;_0xa68aa8?(this[_0x424e8c(0x2b1)]&&this[_0x424e8c(0x2b1)][_0x424e8c(0x3a9)](),this[_0x424e8c(0x447)]&&this[_0x424e8c(0x447)][_0x424e8c(0x20a)]()):(this['_anchorDot']&&this[_0x424e8c(0x2b1)][_0x424e8c(0x20a)](),this[_0x424e8c(0x447)]&&this[_0x424e8c(0x447)][_0x424e8c(0x3a9)]());}[_0x3bc3ed(0x44f)](){const _0xaaff00=_0x3bc3ed;for(let _0x5c1dbb of this[_0xaaff00(0x307)])_0x5c1dbb[_0xaaff00(0x44f)]();this[_0xaaff00(0x447)]&&this['_textBubble']['dispose'](),this[_0xaaff00(0x2b1)]&&this[_0xaaff00(0x2b1)][_0xaaff00(0x44f)](),this[_0xaaff00(0x23f)]&&this[_0xaaff00(0x23f)][_0xaaff00(0x44f)](),this[_0xaaff00(0x347)]&&this['_eventUnsubscribe']();}[_0x3bc3ed(0x3b8)](){const _0x2b4674=_0x3bc3ed;let {_docSkeleton:_0x44f599,_document:_0x190e12}=this,{color:_0xac1dcb,name:_0x5b7794,ranges:_0x195365}=this[_0x2b4674(0x2a8)],_0x52ba9a=_0x190e12['getOffsetConfig'](),{docsLeft:_0x316a68,docsTop:_0x4b4eaa}=_0x52ba9a,_0x38fbb7=new _0x4641fe(_0x52ba9a,_0x44f599);for(let {startOffset:_0x56c292,endOffset:_0xa73ce1,rangeType:_0x6d60f2,segmentId:_0x5cdd2d,segmentPage:_0x41c388,collapsed:_0x464509,isActive:_0x3c80ed}of _0x195365){let _0x461e06=_0x44f599[_0x2b4674(0x41e)](_0x56c292,!0x0,_0x5cdd2d,_0x41c388),_0x5418b9=_0x44f599[_0x2b4674(0x41e)](_0xa73ce1,!0x0,_0x5cdd2d,_0x41c388);if(_0x5418b9??=_0x44f599[_0x2b4674(0x41e)](_0xa73ce1-0x1,!0x1,_0x5cdd2d,_0x41c388),_0x3c80ed){let {contentBoxPointGroup:_0x354e49}=_0x38fbb7['getRangePointData'](_0x5418b9,_0x5418b9);if(_0x354e49['length']===0x0)continue;this[_0x2b4674(0x3c5)](_0xac1dcb,_0x354e49,_0x316a68,_0x4b4eaa,_0x5b7794),this['_eventUnsubscribe']=this[_0x2b4674(0x2e1)]();}if(_0x461e06&&_0x5418b9){if(_0x6d60f2===_0x41cd22['RECT']){let {pointGroup:_0x38f317}=new _0x2d87b3(_0x52ba9a,_0x44f599)[_0x2b4674(0x201)](_0x461e06,_0x5418b9)??{};if(_0x38f317==null||_0x38f317[_0x2b4674(0x1f0)]===0x0)continue;this[_0x2b4674(0x39a)](_0xac1dcb,_0x38f317,_0x316a68,_0x4b4eaa);}else{if(!_0x464509){let {borderBoxPointGroup:_0x2edc8c}=_0x38fbb7['getRangePointData'](_0x461e06,_0x5418b9);if(_0x2edc8c['length']===0x0)continue;this[_0x2b4674(0x2f6)](_0xac1dcb,_0x2edc8c,_0x316a68,_0x4b4eaa);}}}}}[_0x3bc3ed(0x3c5)](_0x23a71c,_0x959673,_0x242882,_0x5ecce4,_0x2ad5e0){const _0x574f50=_0x3bc3ed;let {left:_0x206558,top:_0x5c0079,height:_0x8ae80c}=this[_0x574f50(0x37f)](_0x959673),_0x354c44=1.5/this[_0x574f50(0x28f)](),_0x4f5b5e=new _0x18e662(Un+_0x1294de(0x6),{'left':_0x206558+_0x242882-_0x354c44,'top':_0x5c0079+_0x5ecce4,'height':_0x8ae80c,'width':1.5,'fill':_0x23a71c||_0x46dc64(_0x21d29b[_0x574f50(0x214)],0x0),'strokeWidth':_0x354c44,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this[_0x574f50(0x23f)]=_0x4f5b5e,this[_0x574f50(0x36e)][_0x574f50(0x29f)](_0x4f5b5e,_0x5b3e02);let _0x5950af=new _0x18e662(Un+_0x1294de(0x6),{'left':_0x206558+_0x242882-_0x354c44,'top':_0x5c0079+_0x5ecce4-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x23a71c||_0x46dc64(_0x21d29b[_0x574f50(0x214)],0x0),'strokeWidth':0x0,'stroke':_0x23a71c||_0x46dc64(_0x21d29b[_0x574f50(0x214)],0x0),'evented':!0x1});this[_0x574f50(0x2b1)]=_0x5950af,this[_0x574f50(0x36e)]['addObject'](_0x5950af,_0x5b3e02);let _0x46a714=new On(Un+_0x1294de(0x6),{'left':_0x206558+_0x242882-_0x354c44,'top':_0x5c0079+_0x5ecce4-0x14,'text':_0x2ad5e0,'color':_0x23a71c});this[_0x574f50(0x447)]=_0x46a714,this[_0x574f50(0x36e)][_0x574f50(0x29f)](_0x46a714,_0x5b3e02),this['_hover']=!0x1;}[_0x3bc3ed(0x2e1)](){const _0x39d50c=_0x3bc3ed;let _0x311e7f=this[_0x39d50c(0x23f)][_0x39d50c(0x292)][_0x39d50c(0x220)](()=>{this['_hover']=!0x0;}),_0x4d5a07=this['_anchor'][_0x39d50c(0x26b)]['subscribeEvent'](()=>{const _0x3c23b8=_0x39d50c;this['_hideTimer']&&clearTimeout(this[_0x3c23b8(0x202)]),this['_hideTimer']=setTimeout(()=>{const _0x2ee1b0=_0x3c23b8;this[_0x2ee1b0(0x1c5)]=!0x1;},0x7d0);});return()=>{const _0x5711d4=_0x39d50c;_0x311e7f[_0x5711d4(0x373)](),_0x4d5a07[_0x5711d4(0x373)]();};}[_0x3bc3ed(0x2f6)](_0x13cef2,_0x35c646,_0x49bce2,_0x36fdbf){const _0x5a9950=_0x3bc3ed;let _0x2cc486=0.2,_0x5bcbab=new _0x489bde(_0x13cef2)[_0x5a9950(0x2c2)](_0x2cc486)['toRgbString'](),_0x41c36e=new _0x60c9b6(_0x5a9950(0x384)+_0x1294de(0x6),{'pointsGroup':_0x35c646,'fill':_0x5bcbab||_0x46dc64(_0x21d29b[_0x5a9950(0x214)],_0x2cc486),'left':_0x49bce2,'top':_0x36fdbf,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5a9950(0x307)]['push'](_0x41c36e),this['_scene'][_0x5a9950(0x29f)](_0x41c36e,_0x5b3e02);}[_0x3bc3ed(0x39a)](_0x3c880c,_0x544ca5,_0x1c78f4,_0x3371d2){const _0x503c45=_0x3bc3ed;let _0x148f39=0.2,_0x4a9be2=new _0x489bde(_0x3c880c)[_0x503c45(0x2c2)](_0x148f39)[_0x503c45(0x3df)](),_0x532f7d=new _0x60c9b6(_0x503c45(0x210)+_0x1294de(0x6),{'pointsGroup':_0x544ca5,'fill':_0x4a9be2||_0x46dc64(_0x21d29b[_0x503c45(0x214)],_0x148f39),'left':_0x1c78f4,'top':_0x3371d2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x503c45(0x307)][_0x503c45(0x368)](_0x532f7d),this['_scene']['addObject'](_0x532f7d,_0x5b3e02);}[_0x3bc3ed(0x37f)](_0x1b997f){let _0x8f631c=_0x1b997f[0x0],_0x4cf0ef=_0x8f631c[0x0],_0x5e958a=_0x8f631c[0x2],{x:_0x4b652a,y:_0xc63a50}=_0x4cf0ef,{x:_0x62cca2,y:_0xf573f2}=_0x5e958a;return{'left':_0x4b652a,'top':_0xc63a50,'width':_0x62cca2-_0x4b652a,'height':_0xf573f2-_0xc63a50};}['_getScale'](){const _0x56e298=_0x3bc3ed;let {scaleX:_0x951ad4,scaleY:_0x3b45c2}=this[_0x56e298(0x36e)][_0x56e298(0x3af)]();return Math[_0x56e298(0x221)](_0x951ad4,_0x3b45c2);}};let Gn=class extends _0x2c69b2{constructor(_0x1d8457,_0x30530e,_0xd515ce,_0x45200d,_0xed9d85){const _0x3f91fc=_0x3bc3ed;super(),this['_context']=_0x1d8457,this['_docSkeletonManagerService']=_0x30530e,this['_collabCursorController']=_0xd515ce,this[_0x3f91fc(0x20e)]=_0x45200d,this[_0x3f91fc(0x291)]=_0xed9d85,q(this,_0x3f91fc(0x29c),[]),q(this,'_cursors',[]),this['_init']();}[_0x3bc3ed(0x3a5)](){const _0x1ebe48=_0x3bc3ed;let _0x427c58=this[_0x1ebe48(0x1d0)][_0x1ebe48(0x2e4)],_0x1ab34c=this[_0x1ebe48(0x299)];this[_0x1ebe48(0x239)](_0x20eef1([this[_0x1ebe48(0x37d)][_0x1ebe48(0x27a)](_0x427c58),this[_0x1ebe48(0x291)]['currentTheme$']])[_0x1ebe48(0x320)](_0x8474ef(([_0x4c1793,_0x5724cb])=>({'skeleton':_0x1ab34c[_0x1ebe48(0x39d)](),'cursors':[..._0x4c1793['values']()][_0x1ebe48(0x381)](_0x3ac881=>({..._0x3ac881,'color':this[_0x1ebe48(0x291)][_0x1ebe48(0x257)](_0x3ac881[_0x1ebe48(0x2b3)])}))})))['subscribe'](_0x302591=>{const _0x4db321=_0x1ebe48;if(this['_removeCollabCursors'](),_0x302591){let {skeleton:_0x53464c,cursors:_0x42f185}=_0x302591;this[_0x4db321(0x24e)](_0x53464c,_0x42f185);}})),this[_0x1ebe48(0x1e5)](),this[_0x1ebe48(0x2a2)]();}[_0x3bc3ed(0x24e)](_0x2c000b,_0x244854){const _0x5e4b03=_0x3bc3ed;let {scene:_0x2de4b5,mainComponent:_0x44032f}=this['_context'],_0x267ff4=_0x244854['map'](_0x182860=>new Wn(_0x182860,_0x2de4b5,_0x2c000b,_0x44032f));this[_0x5e4b03(0x29c)]=_0x267ff4,this[_0x5e4b03(0x1c7)]=_0x244854;}['_refreshCollabCursors'](){const _0x2f3617=_0x3bc3ed;this[_0x2f3617(0x378)]();let {scene:_0x3a9d88,mainComponent:_0x5ac8b3}=this['_context'],_0x3d9a68=this['_docSkeletonManagerService']['getSkeleton'](),_0x3f5961=this['_cursors'][_0x2f3617(0x2f4)](_0x11297e=>new Wn(_0x11297e,_0x3a9d88,_0x3d9a68,_0x5ac8b3));this['_cursorShapes']=_0x3f5961;}[_0x3bc3ed(0x378)](){const _0x5b1f7c=_0x3bc3ed;this[_0x5b1f7c(0x29c)]['forEach'](_0x390f66=>_0x390f66[_0x5b1f7c(0x44f)]()),this[_0x5b1f7c(0x29c)]=[];}[_0x3bc3ed(0x2a2)](){const _0x4370ed=_0x3bc3ed;let _0x3434ff=[_0x4447c9['id']];this[_0x4370ed(0x239)](this[_0x4370ed(0x20e)][_0x4370ed(0x222)](_0x46d34a=>{const _0x17710a=_0x4370ed;_0x3434ff[_0x17710a(0x39e)](_0x46d34a['id'])&&_0x46d34a['params'][_0x17710a(0x2e4)]===this[_0x17710a(0x1d0)][_0x17710a(0x2e4)]&&this[_0x17710a(0x360)]();}));}[_0x3bc3ed(0x1e5)](){const _0x2dea0b=_0x3bc3ed;this['disposeWithMe'](_0x4b7ade(this['_context'][_0x2dea0b(0x36c)]['onTransformChange$'])[_0x2dea0b(0x320)](_0x39b3f9(_0x163696=>_0x163696[_0x2dea0b(0x1cb)]===_0x38414a[_0x2dea0b(0x357)]),_0x312d34(0x10))[_0x2dea0b(0x1f2)](()=>{this['_refreshCollabCursors']();}));}};Gn=Y([J(0x1,_0x4d1fed(_0x258d37)),J(0x2,_0x4d1fed(Q)),J(0x3,_0x581e85),J(0x4,_0x4d1fed(_0x8d2d0f))],Gn);var Kn=class extends _0x301f9c{constructor(_0x4e15ca,_0x5165d7){const _0x5131c0=_0x3bc3ed;super(_0x4e15ca,_0x5165d7),q(this,_0x5131c0(0x2fb),void 0x0),q(this,'_hovered',!0x1),q(this,_0x5131c0(0x43c),void 0x0),q(this,_0x5131c0(0x231),''),q(this,'_labelPosition',_0x5131c0(0x305)),q(this,_0x5131c0(0x2be),void 0x0),q(this,_0x5131c0(0x3a7),void 0x0),q(this,'_highlight',void 0x0),q(this,_0x5131c0(0x1d9),0x4),q(this,_0x5131c0(0x3d2),void 0x0),q(this,_0x5131c0(0x2f1),void 0x0),q(this,'_isBlinkVisible',!0x0),q(this,_0x5131c0(0x21e),0x0),q(this,'_labelHorizontalPosition',_0x5131c0(0x271)),_0x5165d7&&(this[_0x5131c0(0x284)](_0x5165d7),_0x5165d7[_0x5131c0(0x245)]&&(_0x5165d7[_0x5131c0(0x35a)]??this[_0x5131c0(0x1d9)])&&this[_0x5131c0(0x1ca)](_0x5165d7[_0x5131c0(0x35a)]??this[_0x5131c0(0x1d9)])),this[_0x5131c0(0x292)][_0x5131c0(0x220)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x5131c0(0x26b)][_0x5131c0(0x220)](()=>this[_0x5131c0(0x284)]({'hovered':!0x1}));}[_0x3bc3ed(0x308)](_0x48a2b0){const _0x187644=_0x3bc3ed;this[_0x187644(0x21e)]=_0x48a2b0;}[_0x3bc3ed(0x284)](_0x131081){const _0x533e30=_0x3bc3ed;this[_0x533e30(0x2fb)]=_0x131081[_0x533e30(0x2b3)]??this[_0x533e30(0x2fb)],this['_hovered']=_0x131081[_0x533e30(0x338)]??this[_0x533e30(0x358)],this[_0x533e30(0x43c)]=_0x131081[_0x533e30(0x327)]??this[_0x533e30(0x43c)],this[_0x533e30(0x231)]=_0x131081[_0x533e30(0x270)]??this[_0x533e30(0x231)],this[_0x533e30(0x437)]=_0x131081[_0x533e30(0x20d)]??this[_0x533e30(0x437)],this[_0x533e30(0x2be)]=_0x131081[_0x533e30(0x25c)]??this['_backgroundColor'],this[_0x533e30(0x3a7)]=_0x131081[_0x533e30(0x39c)]??this[_0x533e30(0x3a7)],this['_labelHorizontalPosition']=_0x131081[_0x533e30(0x3b1)]??this[_0x533e30(0x40b)],_0x131081[_0x533e30(0x35a)]!==void 0x0&&(this['_highlightSecond']=_0x131081[_0x533e30(0x35a)]),_0x131081[_0x533e30(0x245)]!==void 0x0&&(this[_0x533e30(0x2df)]=_0x131081[_0x533e30(0x245)]),_0x131081[_0x533e30(0x387)]!==void 0x0&&(this['_offsetY']=_0x131081[_0x533e30(0x387)]),this['transformByState']({'width':_0x131081[_0x533e30(0x2fc)],'height':_0x131081[_0x533e30(0x1ed)]});}[_0x3bc3ed(0x251)](_0x5c7d6d){const _0x342fdf=_0x3bc3ed;let {row:_0x3c5f5b,column:_0x5a5d7d}=_0x5c7d6d;if(_0x3c5f5b>=this['_range'][_0x342fdf(0x22d)]&&_0x3c5f5b<=this['_range'][_0x342fdf(0x380)]&&_0x5a5d7d>=this[_0x342fdf(0x43c)][_0x342fdf(0x38c)]&&_0x5a5d7d<=this['_range']['endColumn']){this[_0x342fdf(0x284)]({'hovered':!0x0});return;}this[_0x342fdf(0x284)]({'hovered':!0x1});}[_0x3bc3ed(0x1ca)](_0x3a900b){const _0x1afc93=_0x3bc3ed;this[_0x1afc93(0x272)](),this[_0x1afc93(0x1ec)]=!0x0,this[_0x1afc93(0x2f1)]=window[_0x1afc93(0x2ce)](()=>{const _0x53e089=_0x1afc93;this[_0x53e089(0x1ec)]=!this[_0x53e089(0x1ec)],this['makeDirty'](!0x0);},0x1f4),this[_0x1afc93(0x3d2)]=window[_0x1afc93(0x269)](()=>{const _0x1d648a=_0x1afc93;this[_0x1d648a(0x272)](),this['_isBlinkVisible']=!0x0,this[_0x1d648a(0x20c)](!0x0);},_0x3a900b*0x3e8);}['_stopBlinking'](){const _0x4f0629=_0x3bc3ed;this['_blinkIntervalTimer']&&=(window[_0x4f0629(0x433)](this[_0x4f0629(0x2f1)]),void 0x0),this[_0x4f0629(0x3d2)]&&=(window[_0x4f0629(0x21d)](this[_0x4f0629(0x3d2)]),void 0x0);}[_0x3bc3ed(0x2f0)](_0x319ea0){return!0x1;}[_0x3bc3ed(0x44f)](){const _0x3835aa=_0x3bc3ed;this[_0x3835aa(0x272)](),super[_0x3835aa(0x44f)]();}['_draw'](_0x793bb9){const _0x100b88=_0x3bc3ed;let _0x332d68=this['_color'],_0x4da41f=this['_backgroundColor'];if(this['_highlight']&&!this[_0x100b88(0x1ec)]&&(_0x332d68=this[_0x100b88(0x434)](this[_0x100b88(0x2fb)]),_0x4da41f=this[_0x100b88(0x2be)]?this[_0x100b88(0x434)](this[_0x100b88(0x2be)]):void 0x0),_0x18e662[_0x100b88(0x27e)](_0x793bb9,{'width':this['width'],'height':this['height'],'strokeWidth':this[_0x100b88(0x3ad)]||1.5,'stroke':_0x332d68,'evented':!0x1,'fill':_0x4da41f}),this[_0x100b88(0x358)]||this[_0x100b88(0x3a7)]){_0x793bb9[_0x100b88(0x1f3)]();let _0x2af37a=this[_0x100b88(0x40b)]===_0x100b88(0x321)?-En(_0x793bb9,this[_0x100b88(0x231)]):this['width'];_0x793bb9['transform'](0x1,0x0,0x0,0x1,_0x2af37a,(this[_0x100b88(0x437)]===_0x100b88(0x223)?0x0:-0x14)+(this[_0x100b88(0x21e)]??0x0)),On[_0x100b88(0x27e)](_0x793bb9,{'text':this[_0x100b88(0x231)],'color':_0x332d68}),_0x793bb9[_0x100b88(0x400)]();}}[_0x3bc3ed(0x434)](_0x4a7e1b){const _0x2edbfe=_0x3bc3ed;return _0x4a7e1b['startsWith']('#')?_0x2edbfe(0x20b)+Number['parseInt'](_0x4a7e1b[_0x2edbfe(0x1de)](0x1,0x3),0x10)+',\x20'+Number[_0x2edbfe(0x420)](_0x4a7e1b[_0x2edbfe(0x1de)](0x3,0x5),0x10)+',\x20'+Number[_0x2edbfe(0x420)](_0x4a7e1b[_0x2edbfe(0x1de)](0x5,0x7),0x10)+_0x2edbfe(0x252):_0x4a7e1b['startsWith'](_0x2edbfe(0x426))?_0x4a7e1b[_0x2edbfe(0x438)](/[\d.]+\)$/g,_0x2edbfe(0x1e6)):_0x4a7e1b[_0x2edbfe(0x1da)]('rgb')?_0x4a7e1b[_0x2edbfe(0x438)]('rgb',_0x2edbfe(0x426))[_0x2edbfe(0x438)](')',_0x2edbfe(0x252)):_0x4a7e1b;}};let qn=class extends _0x2c69b2{constructor(_0x536ed2,_0x35c7df,_0x25b020,_0x2bdd66){const _0x4733f7=_0x3bc3ed;super(),this[_0x4733f7(0x1d0)]=_0x536ed2,this[_0x4733f7(0x2c6)]=_0x35c7df,this['_collabCursorController']=_0x25b020,this[_0x4733f7(0x291)]=_0x2bdd66,q(this,_0x4733f7(0x1c7),new Set()),q(this,'_lastPointer',null),q(this,'_pointerMoveDisposable',null),this[_0x4733f7(0x3a5)]();}[_0x3bc3ed(0x3a5)](){const _0x2e586e=_0x3bc3ed;this['_sheetSkeletonManagerService'][_0x2e586e(0x379)][_0x2e586e(0x320)](_0x17f81b(this[_0x2e586e(0x263)]),_0x338146(_0x5bbde4=>{const _0x591a30=_0x2e586e;if(_0x5bbde4){let _0x202dc4=_0x5bbde4[_0x591a30(0x30f)];return _0x20eef1(this[_0x591a30(0x37d)][_0x591a30(0x27a)](this['_context']['unitId']),this[_0x591a30(0x291)]['currentTheme$'])[_0x591a30(0x320)](_0x8474ef(([_0x179d52,_0x1b4972])=>{const _0x2fea10=_0x591a30;let _0x5afc79=new Map();return _0x179d52[_0x2fea10(0x348)]((_0xe34b33,_0x587929)=>{const _0x154ea6=_0x2fea10;if(_0xe34b33['sheetID']===_0x202dc4){let _0x405604={..._0xe34b33};_0x405604['color']=this[_0x154ea6(0x291)][_0x154ea6(0x257)](_0xe34b33['color']),_0x5afc79[_0x154ea6(0x34c)](_0x587929,_0x405604);}}),{'skeleton':_0x5bbde4,'cursors':_0x5afc79};}));}return _0x6a4fab({'skeleton':null,'cursors':new Map()});}))[_0x2e586e(0x1f2)](({skeleton:_0x38f3ba,cursors:_0x5017c2})=>{const _0x16a6e1=_0x2e586e;this[_0x16a6e1(0x378)](),_0x38f3ba&&this[_0x16a6e1(0x24e)](_0x38f3ba,_0x5017c2);}),this['disposeWithMe'](this['_sheetSkeletonManagerService'][_0x2e586e(0x379)][_0x2e586e(0x320)](_0x17f81b(this['dispose$']))[_0x2e586e(0x1f2)](_0x323160=>{const _0x38d4c9=_0x2e586e;var _0x3eefad;if(_0x323160==null)return;(_0x3eefad=this[_0x38d4c9(0x2ac)])==null||_0x3eefad[_0x38d4c9(0x373)](),this[_0x38d4c9(0x2ac)]=null;let {skeleton:_0x4e090a}=_0x323160,{scene:_0x2efb28}=this[_0x38d4c9(0x1d0)];this[_0x38d4c9(0x2ac)]=_0x2efb28[_0x38d4c9(0x294)][_0x38d4c9(0x220)](_0x57d052(_0x2fc3a3=>{const _0x517f79=_0x38d4c9;var _0x4fad57,_0x5e8224;let {offsetX:_0x187ca8,offsetY:_0x441a5e}=_0x2fc3a3,{x:_0x592ded,y:_0x2256aa}=_0x2efb28[_0x517f79(0x322)](_0x195cd0['FromArray']([_0x187ca8,_0x441a5e])),{scaleX:_0x5407ac,scaleY:_0x59cffc}=_0x2efb28['getAncestorScale'](),_0x380414=_0x2efb28[_0x517f79(0x22e)](_0x55e659[_0x517f79(0x337)]),_0x1bc0b9=_0x2efb28[_0x517f79(0x32a)](_0x195cd0[_0x517f79(0x297)]([_0x592ded,_0x2256aa]),_0x380414),_0x26f5d5=_0x4e090a[_0x517f79(0x300)](_0x187ca8,_0x441a5e,_0x5407ac,_0x59cffc,_0x1bc0b9);(((_0x4fad57=this['_lastPointer'])==null?void 0x0:_0x4fad57[_0x517f79(0x25a)])!==_0x26f5d5[_0x517f79(0x25a)]||((_0x5e8224=this[_0x517f79(0x432)])==null?void 0x0:_0x5e8224['row'])!==_0x26f5d5[_0x517f79(0x2ed)])&&this[_0x517f79(0x1c7)][_0x517f79(0x348)](_0x5c275d=>{const _0x476a17=_0x517f79;_0x5c275d[_0x476a17(0x251)](_0x26f5d5);});},0x64));})),this[_0x2e586e(0x239)](_0x9b2c48(()=>{var _0x5e64d9;(_0x5e64d9=this['_pointerMoveDisposable'])==null||_0x5e64d9['unsubscribe'](),this['_pointerMoveDisposable']=null;}));}['_updateCollabCursors'](_0x13da6e,_0x4f194e){const _0x4d2df2=_0x3bc3ed;let _0x2c2e64=this[_0x4d2df2(0x2c6)]['getCurrentSkeleton']();if(!_0x2c2e64)return;let _0x39c798=this[_0x4d2df2(0x3fe)]();if(!_0x39c798)return;this['_cursors'][_0x4d2df2(0x348)](_0x1e263a=>{const _0x30ea2f=_0x4d2df2;_0x1e263a[_0x30ea2f(0x20c)]();});let {scene:_0x3ce150}=_0x39c798,_0x3debda=Jn(Array[_0x4d2df2(0x1e4)](_0x4f194e[_0x4d2df2(0x28b)]()))[_0x4d2df2(0x2f4)](_0x403c08=>{const _0x1a93b8=_0x4d2df2;let {color:_0x3da4ff,range:_0x3bd35b,name:_0x58126d,selection:_0x1a92bf,sheetID:_0x2f4aa7}=_0x403c08,{startColumn:_0x3a7b45,startRow:_0x20e406,endColumn:_0x19a54b,endRow:_0x4da65e}=_0x3bd35b,_0x4c41d4=_0x5cd088(_0x20e406,_0x3a7b45,_0x3ce150,_0x2c2e64),_0x149fb9=_0x5cd088(_0x4da65e,_0x19a54b,_0x3ce150,_0x2c2e64),{columnHeaderHeightAndMarginTop:_0x55e685}=_0x2c2e64,{startX:_0x1fcb7a,startY:_0x2551cb}=_0x4c41d4,{endX:_0x23cf3c,endY:_0x9f67c0}=_0x149fb9,_0x51d092=_0x23cf3c-_0x1fcb7a,_0x5cd5f4=_0x9f67c0-_0x2551cb;return new Kn(_0x58126d,{'labelPosition':_0x2551cb-_0x55e685>=0x14?_0x1a93b8(0x305):_0x1a93b8(0x223),'sheetID':_0x2f4aa7,'range':_0x3bd35b,'color':_0x3da4ff,'name':_0x58126d,'selection':_0x1a92bf,'left':_0x1fcb7a,'top':_0x2551cb,'width':_0x51d092,'height':_0x5cd5f4,'evented':!0x1,'zIndex':0x1389});});_0x3ce150[_0x4d2df2(0x3f8)](_0x3debda,0x1),this[_0x4d2df2(0x1c7)]=new Set(_0x3debda);}[_0x3bc3ed(0x378)](){const _0x53bb8d=_0x3bc3ed;var _0x4ff1af;(_0x4ff1af=this[_0x53bb8d(0x1c7)])==null||_0x4ff1af['forEach'](_0x3e55de=>_0x3e55de[_0x53bb8d(0x44f)]());}[_0x3bc3ed(0x3fe)](){const _0x56bfe6=_0x3bc3ed;return _0x56ed87(this[_0x56bfe6(0x1d0)][_0x56bfe6(0x207)],this['_context']);}};qn=Y([J(0x1,_0x4d1fed(_0x7009c4)),J(0x2,_0x4d1fed(Q)),J(0x3,_0x4d1fed(_0x8d2d0f))],qn);function Jn(_0xa538fc){const _0x9bb303=_0x3bc3ed;let _0x55a497=new Map();return _0xa538fc[_0x9bb303(0x348)](_0x57c52b=>{const _0x11a199=_0x9bb303;if(_0x55a497[_0x11a199(0x1e8)](_0x57c52b[_0x11a199(0x280)])){let _0x1aad54=_0x55a497[_0x11a199(0x240)](_0x57c52b[_0x11a199(0x280)]);_0x1aad54[_0x11a199(0x270)]+=',\x20'+_0x57c52b[_0x11a199(0x270)];}else _0x55a497[_0x11a199(0x34c)](_0x57c52b[_0x11a199(0x280)],_0x57c52b);}),Array[_0x9bb303(0x1e4)](_0x55a497[_0x9bb303(0x28b)]());}let Yn=class extends _0x2c69b2{constructor(_0x4c852c,_0xd3f486,_0x2db897){const _0x2f6edc=_0x3bc3ed;super(),this[_0x2f6edc(0x1d0)]=_0x4c852c,this[_0x2f6edc(0x37d)]=_0xd3f486,this[_0x2f6edc(0x291)]=_0x2db897,q(this,_0x2f6edc(0x1c7),new Set()),q(this,'_renderScheduled',!0x1),q(this,_0x2f6edc(0x2f2),!0x1),q(this,_0x2f6edc(0x326),new Map()),this[_0x2f6edc(0x3a5)]();}[_0x3bc3ed(0x44f)](){const _0xf99bf5=_0x3bc3ed;this[_0xf99bf5(0x378)](),super[_0xf99bf5(0x44f)]();}[_0x3bc3ed(0x3a5)](){const _0x519c08=_0x3bc3ed;let _0x1ccab2=this[_0x519c08(0x1d0)][_0x519c08(0x207)][_0x519c08(0x31a)][_0x519c08(0x366)],_0x439a1b=this[_0x519c08(0x37d)]['getCollabCursors$'](this[_0x519c08(0x1d0)][_0x519c08(0x2e4)]);this[_0x519c08(0x239)](_0x9b2c48(_0x20eef1([_0x439a1b,_0x1ccab2,this[_0x519c08(0x291)][_0x519c08(0x30e)]])['pipe'](_0x18a3e8(this[_0x519c08(0x263)]))[_0x519c08(0x1f2)](([_0x113163,_0x135967])=>{const _0x9b3d55=_0x519c08;let _0x2e0401=new Map();_0x113163[_0x9b3d55(0x348)]((_0x2d7b7b,_0x4421ae)=>{const _0x48ac31=_0x9b3d55;_0x2d7b7b[_0x48ac31(0x2dd)]===_0x135967&&_0x2e0401['set'](_0x4421ae,{..._0x2d7b7b,'color':this[_0x48ac31(0x291)][_0x48ac31(0x257)](_0x2d7b7b[_0x48ac31(0x2b3)])});}),this[_0x9b3d55(0x326)]=_0x2e0401,this[_0x9b3d55(0x1f1)]();})));let _0x5ac6b8=this['_context'][_0x519c08(0x27c)];this[_0x519c08(0x239)](_0x9b2c48(_0x5ac6b8[_0x519c08(0x402)][_0x519c08(0x320)](_0x18a3e8(this[_0x519c08(0x263)]))[_0x519c08(0x1f2)](()=>{const _0x3c2250=_0x519c08;this[_0x3c2250(0x2f2)]||this['_scheduleRender']();})));}[_0x3bc3ed(0x1f1)](){const _0x16de38=_0x3bc3ed;this['_renderScheduled']||(this[_0x16de38(0x34b)]=!0x0,Promise['resolve']()[_0x16de38(0x1ce)](()=>{const _0x25df6c=_0x16de38;this[_0x25df6c(0x34b)]=!0x1,this[_0x25df6c(0x3b8)]();}));}[_0x3bc3ed(0x3b8)](){const _0x324afc=_0x3bc3ed;var _0x548e2f;this['_removeCollabCursors']();let _0x5c9f9c=(_0x548e2f=this[_0x324afc(0x1d0)][_0x324afc(0x207)][_0x324afc(0x31a)][_0x324afc(0x340)]())==null?void 0x0:_0x548e2f[_0x324afc(0x403)]();if(!_0x5c9f9c)return;let _0x95a2d6=[];if(this[_0x324afc(0x326)][_0x324afc(0x348)]((_0x299237,_0x4b74f7)=>{const _0x524fdd=_0x324afc;_0x299237[_0x524fdd(0x2dd)]===_0x5c9f9c&&_0x299237[_0x524fdd(0x370)][_0x524fdd(0x348)](_0x21bc22=>{const _0x1d6f18=_0x524fdd;let _0x4af230=_0x5f12b3(_0x299237[_0x1d6f18(0x2e4)],_0x299237[_0x1d6f18(0x2dd)],_0x21bc22),_0x749889=this[_0x1d6f18(0x341)](_0x4af230);if(!_0x749889)return;let _0x1d486d=this['_getObjectBounds'](_0x749889);_0x95a2d6[_0x1d6f18(0x368)](new An(_0x1d6f18(0x215)+_0x4b74f7+'-'+_0x21bc22,{..._0x299237,'left':_0x1d486d[_0x1d6f18(0x321)],'top':_0x1d486d[_0x1d6f18(0x305)],'width':_0x1d486d[_0x1d6f18(0x2fc)],'height':_0x1d486d[_0x1d6f18(0x1ed)],'angle':_0x749889[_0x1d6f18(0x3cb)],'evented':!0x1,'zIndex':kn}));});}),_0x95a2d6[_0x324afc(0x1f0)]===0x0){this[_0x324afc(0x1d0)]['scene'][_0x324afc(0x20c)](!0x0);return;}this[_0x324afc(0x2f2)]=!0x0,this[_0x324afc(0x1d0)][_0x324afc(0x27c)][_0x324afc(0x3f8)](_0x95a2d6,kn),this[_0x324afc(0x2f2)]=!0x1,this['_cursors']=new Set(_0x95a2d6),this[_0x324afc(0x1d0)][_0x324afc(0x27c)]['makeDirty'](!0x0);}[_0x3bc3ed(0x378)](){const _0x455516=_0x3bc3ed;let _0x1ca6d7=Array[_0x455516(0x1e4)](this[_0x455516(0x1c7)]);if(_0x1ca6d7[_0x455516(0x1f0)]===0x0)return;let _0x876e7f=this[_0x455516(0x1d0)][_0x455516(0x27c)];'removeObjects'in _0x876e7f&&typeof _0x876e7f['removeObjects']==_0x455516(0x312)?_0x876e7f['removeObjects'](_0x1ca6d7):_0x1ca6d7[_0x455516(0x348)](_0x3752cf=>{const _0x3cb8b7=_0x455516;_0x3cb8b7(0x3dd)in _0x876e7f&&typeof _0x876e7f[_0x3cb8b7(0x3dd)]==_0x3cb8b7(0x312)?_0x876e7f[_0x3cb8b7(0x3dd)](_0x3752cf):_0x3752cf[_0x3cb8b7(0x44f)]();}),this['_cursors'][_0x455516(0x3c7)](),_0x876e7f[_0x455516(0x20c)](!0x0);}[_0x3bc3ed(0x341)](_0x4182e4){const _0x1791f2=_0x3bc3ed;var _0x3d817c;let _0x1e26a7=this[_0x1791f2(0x1d0)][_0x1791f2(0x27c)];return((_0x3d817c=_0x1e26a7['getObjectIncludeInGroup'])==null?void 0x0:_0x3d817c[_0x1791f2(0x1c9)](_0x1e26a7,_0x4182e4))??_0x1e26a7[_0x1791f2(0x30b)](_0x4182e4)??null;}[_0x3bc3ed(0x2f8)](_0x515b52){const _0x51b7f8=_0x3bc3ed;var _0x3f6f04;let _0x248695=_0x515b52;return((_0x3f6f04=_0x248695[_0x51b7f8(0x1e2)])==null?void 0x0:_0x3f6f04[_0x51b7f8(0x1c9)](_0x248695))??{'left':_0x515b52[_0x51b7f8(0x321)],'top':_0x515b52['top'],'width':_0x515b52['width'],'height':_0x515b52[_0x51b7f8(0x1ed)]};}};Yn=Y([J(0x1,_0x4d1fed(Q)),J(0x2,_0x4d1fed(_0x8d2d0f))],Yn);let Xn=class extends _0x1b14aa{constructor(_0x14b9be,_0x18e031,_0x31e3e1,_0x2c3a4d,_0x28c080,_0x1784a6){const _0x196457=_0x3bc3ed;super(),this['_beforeCloseService']=_0x14b9be,this['_localCacheService']=_0x18e031,this[_0x196457(0x3d1)]=_0x31e3e1,this[_0x196457(0x43a)]=_0x2c3a4d,this[_0x196457(0x1e7)]=_0x28c080,this[_0x196457(0x43f)]=_0x1784a6,this[_0x196457(0x2bb)](),this[_0x196457(0x311)]();}['_setupBeforeClosingHandler'](){const _0xc8ab1b=_0x3bc3ed;this[_0xc8ab1b(0x239)](this[_0xc8ab1b(0x246)]['registerBeforeClose'](()=>{const _0x3e598a=_0xc8ab1b;if(this[_0x3e598a(0x44e)][_0x3e598a(0x206)][_0x3e598a(0x336)])return this[_0x3e598a(0x43f)]['t'](_0x3e598a(0x446));}));}[_0x3bc3ed(0x311)](){const _0x5b29c2=_0x3bc3ed;this[_0x5b29c2(0x239)](this[_0x5b29c2(0x3d1)][_0x5b29c2(0x316)][_0x5b29c2(0x1f2)](_0x13f9ca=>{const _0x1c7735=_0x5b29c2;_0x13f9ca['id']===_0x5e38ec[_0x1c7735(0x23b)]&&this[_0x1c7735(0x43a)][_0x1c7735(0x20a)]({'type':_0x4703d3[_0x1c7735(0x25d)],'content':this['_localeService']['t'](_0x1c7735(0x413))}),_0x13f9ca['id']===_0x5e38ec['CLOSE_ROOM']&&this[_0x1c7735(0x43a)][_0x1c7735(0x20a)]({'type':_0x4703d3[_0x1c7735(0x25d)],'content':this[_0x1c7735(0x43f)]['t'](_0x1c7735(0x436))}),_0x13f9ca['id']===_0x5e38ec[_0x1c7735(0x42d)]&&this[_0x1c7735(0x1e7)]['show']({'title':this['_localeService']['t']('collaboration-client-ui.permission.title'),'content':this['_localeService']['t'](_0x1c7735(0x310)),'type':'error','duration':0x0}),_0x13f9ca['id']===_0x5e38ec[_0x1c7735(0x2ea)]&&this['_notificationService'][_0x1c7735(0x20a)]({'title':this[_0x1c7735(0x43f)]['t'](_0x1c7735(0x2e3)),'content':this[_0x1c7735(0x43f)]['t'](_0x1c7735(0x1fa)),'type':_0x1c7735(0x3d0),'duration':0x0}),_0x13f9ca['id']===_0x5e38ec[_0x1c7735(0x3ec)]&&this[_0x1c7735(0x43a)][_0x1c7735(0x20a)]({'type':_0x4703d3[_0x1c7735(0x25d)],'content':this['_localeService']['t'](_0x13f9ca[_0x1c7735(0x276)]||'')}),_0x13f9ca['id']===_0x5e38ec['SOCKET_FAILED_RETRY']&&this['_messageService'][_0x1c7735(0x20a)]({'type':_0x4703d3[_0x1c7735(0x25d)],'content':this[_0x1c7735(0x43f)]['t'](_0x1c7735(0x2d3))}),_0x13f9ca['id']===_0x5e38ec[_0x1c7735(0x260)]&&this[_0x1c7735(0x43a)][_0x1c7735(0x20a)]({'type':_0x4703d3[_0x1c7735(0x309)],'content':this[_0x1c7735(0x43f)]['t']('collaboration-client-ui.session.connection-failed')}),_0x13f9ca['id']===_0x5e38ec['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x1c7735(0x43a)]['show']({'type':_0x4703d3['Error'],'content':this[_0x1c7735(0x43f)]['t']('collaboration-client-ui.session.collaboration-timeout')});}));}};Xn=Y([J(0x0,_0x5149b9),J(0x1,_0x571f9b),J(0x2,_0x4d1fed(_0x36c2f5)),J(0x3,_0x454719),J(0x4,_0x546073),J(0x5,_0x4d1fed(_0x2d2bf4))],Xn);const Zn=_0x1f7596('uni.network.url-service');let Qn=class extends _0x2c69b2{constructor(_0x2d5511,_0x414d10,_0x3029d1,_0x14a989,_0x40ea57){const _0x20c956=_0x3bc3ed;super(),this[_0x20c956(0x32c)]=_0x2d5511,this[_0x20c956(0x21c)]=_0x414d10,this['_commandService']=_0x3029d1,this[_0x20c956(0x23d)]=_0x14a989,_0x40ea57?_0x40ea57['whenReady']()[_0x20c956(0x1ce)](()=>this[_0x20c956(0x3a5)]()):(this['_logService'][_0x20c956(0x212)](_0x20c956(0x39f),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async['_init'](){const _0x50d436=_0x3bc3ed;let _0x30abbd=this[_0x50d436(0x32c)][_0x50d436(0x1f5)](_0x50d436(0x207)),_0x5661fe=this[_0x50d436(0x32c)][_0x50d436(0x1f5)](_0x50d436(0x1cb)),_0x295dcb=this[_0x50d436(0x32c)][_0x50d436(0x1f5)](_0x50d436(0x262));if(!_0x30abbd||!_0x5661fe){this[_0x50d436(0x21c)]['debug'](_0x50d436(0x39f),_0x50d436(0x2d1));return;}let _0x2aed91=await this[_0x50d436(0x23d)][_0x50d436(0x3f1)](_0x30abbd,Number(_0x5661fe),_0x295dcb);_0x2aed91&&_0x2aed91 instanceof _0x3b5356&&this[_0x50d436(0x2f5)](_0x2aed91);}async[_0x3bc3ed(0x2f5)](_0x53f0ec){const _0x15e2a9=_0x3bc3ed;await this[_0x15e2a9(0x2ba)](_0x53f0ec),_0x53f0ec[_0x15e2a9(0x273)][_0x15e2a9(0x320)](_0x18a3e8(this['dispose$']))['subscribe'](_0x38da23=>{const _0x208367=_0x15e2a9;_0x38da23&&this[_0x208367(0x33b)](_0x38da23);}),this[_0x15e2a9(0x32c)][_0x15e2a9(0x209)][_0x15e2a9(0x320)](_0x18a3e8(this[_0x15e2a9(0x263)]))[_0x15e2a9(0x1f2)](()=>this[_0x15e2a9(0x2ba)](_0x53f0ec));}[_0x3bc3ed(0x33b)](_0x5223bb,_0x175d12=!0x1){const _0x136336=_0x3bc3ed;let _0x50ded4=this['_urlService'][_0x136336(0x1f5)](_0x136336(0x262));_0x5223bb[_0x136336(0x22c)]()!==_0x50ded4&&this['_urlService'][_0x136336(0x256)](_0x136336(0x262),_0x5223bb[_0x136336(0x22c)](),_0x175d12);}async[_0x3bc3ed(0x2ba)](_0x4c4549){const _0x297840=_0x3bc3ed;var _0x2bf47d;let _0x3b3da3=this[_0x297840(0x32c)][_0x297840(0x1f5)](_0x297840(0x262));if(!_0x3b3da3||!_0x4c4549[_0x297840(0x1dd)](_0x3b3da3)){let _0x134c02=_0x4c4549[_0x297840(0x204)]()[0x0],_0x22ba2e=_0x4c4549['getSheetBySheetId'](_0x134c02);if(!_0x22ba2e)return;this['_updateURLWithCurrentState'](_0x22ba2e,!0x0),await this[_0x297840(0x20e)]['executeCommand'](_0x40784d['id'],{'unitId':_0x4c4549[_0x297840(0x275)](),'subUnitId':_0x134c02});return;}((_0x2bf47d=_0x4c4549[_0x297840(0x304)]())==null?void 0x0:_0x2bf47d[_0x297840(0x22c)]())!==_0x3b3da3&&await this['_commandService'][_0x297840(0x29e)](_0x40784d['id'],{'unitId':_0x4c4549[_0x297840(0x275)](),'subUnitId':_0x3b3da3});}};Qn=Y([J(0x0,Zn),J(0x1,_0x483e73),J(0x2,_0x581e85),J(0x3,_0x4d1fed(_0x21830c)),J(0x4,_0x122b91(_0x3e11b5))],Qn);let $n=class{constructor(_0x4d45cc,_0x53cb0f){const _0x452398=_0x3bc3ed;this[_0x452398(0x442)]=_0x4d45cc,this['_renderManagerService']=_0x53cb0f;}[_0x3bc3ed(0x28c)](_0x3fefb0){const _0x8880c8=_0x3bc3ed;this[_0x8880c8(0x233)](_0x3fefb0),this[_0x8880c8(0x382)](_0x3fefb0);}[_0x3bc3ed(0x21f)](_0x4e0855){const _0x5eb7d6=_0x3bc3ed;let {unitID:_0x289a68}=_0x4e0855,{redoCache:_0x11b46a}=this[_0x5eb7d6(0x3f3)][_0x5eb7d6(0x2a1)](_0x289a68)[_0x5eb7d6(0x2ff)](_0x52a25d)[_0x5eb7d6(0x332)]();if(_0x11b46a['length']===0x0)return _0x4e0855;let _0x5072e0=_0x5e4224[_0x5eb7d6(0x421)](_0x4e0855[_0x5eb7d6(0x1e1)][0x0]);for(let _0x4de80f=0x0;_0x4de80f<_0x11b46a[_0x5eb7d6(0x1f0)];_0x4de80f++){let _0xb8b082={'id':'doc.mutation.rich-text-editing','params':{..._0x11b46a[_0x4de80f]}},_0xd51162=this[_0x5eb7d6(0x442)]['transformMutation'](_0x5072e0,_0xb8b082,!0x1);if(_0x4a2b76(_0xd51162))throw _0xd51162['error'];_0x5072e0=_0xd51162[_0x5eb7d6(0x211)];}return{..._0x5e4224[_0x5eb7d6(0x421)](_0x4e0855),'mutations':[_0x5072e0]};}[_0x3bc3ed(0x233)](_0x1046ab){const _0x1db8c9=_0x3bc3ed;let {unitID:_0x592a44}=_0x1046ab,_0x14a9c6=this[_0x1db8c9(0x3f3)][_0x1db8c9(0x2a1)](_0x592a44)['with'](_0x52a25d),{undoCache:_0xa1b871,redoCache:_0x54aad0}=_0x14a9c6['getUndoRedoMutationParamsCache']();if(_0xa1b871[_0x1db8c9(0x1f0)]===0x0||_0x54aad0[_0x1db8c9(0x1f0)]===0x0)return;let _0x11aa13=[],_0x28a157=[],_0x455203=_0x5e4224['deepClone'](_0x1046ab['mutations'][0x0]),_0x162885=_0x5e4224[_0x1db8c9(0x421)](_0x1046ab['mutations'][0x0]);for(let _0xaa348c=_0xa1b871[_0x1db8c9(0x1f0)]-0x1;_0xaa348c>=0x0;_0xaa348c--){let _0x5f3b09={'id':_0x1db8c9(0x22b),'params':{..._0xa1b871[_0xaa348c]}},_0x5dd8d7={'id':_0x1db8c9(0x22b),'params':{..._0x54aad0[_0xaa348c]}},_0x33a673=this[_0x1db8c9(0x442)][_0x1db8c9(0x344)](_0x455203,_0x5f3b09,!0x1),_0x1e8736=this[_0x1db8c9(0x442)]['transformMutation'](_0x162885,_0x5dd8d7,!0x1);if(_0x4a2b76(_0x33a673))throw _0x33a673[_0x1db8c9(0x3d0)];if(_0x4a2b76(_0x1e8736))throw _0x1e8736[_0x1db8c9(0x3d0)];_0x11aa13[_0x1db8c9(0x1dc)](_0x33a673['m2Prime'][_0x1db8c9(0x278)]),_0x28a157[_0x1db8c9(0x1dc)](_0x1e8736[_0x1db8c9(0x26c)][_0x1db8c9(0x278)]),_0x455203=_0x33a673[_0x1db8c9(0x211)],_0x162885=_0x1e8736[_0x1db8c9(0x211)];}_0x14a9c6['setUndoRedoMutationParamsCache']({'undoCache':_0x11aa13,'redoCache':_0x28a157});}[_0x3bc3ed(0x382)](_0xdb421){const _0x3e013d=_0x3bc3ed;let {unitID:_0x1dd963}=_0xdb421,_0x727147=this['_renderManagerService'][_0x3e013d(0x2a1)](_0x1dd963)[_0x3e013d(0x2ff)](_0x52a25d),_0x173c17=_0x727147['getActiveRange']();if(_0x173c17==null)return;let _0x5c75e5=[{'id':_0x3e013d(0x22b),'params':{'unitId':_0xdb421[_0x3e013d(0x2cc)],'actions':null,'textRanges':[_0x173c17]}}],_0x309a1d=this[_0x3e013d(0x442)][_0x3e013d(0x255)](_0xdb421,_0x5c75e5);if(!_0x257abb(_0x309a1d))throw _0x309a1d[_0x3e013d(0x3d0)];let _0x21dcdc=_0x309a1d[_0x3e013d(0x26c)][0x0]['params'][_0x3e013d(0x3a3)];Array[_0x3e013d(0x298)](_0x21dcdc)&&_0x21dcdc[_0x3e013d(0x1f0)]&&_0x727147[_0x3e013d(0x3c2)](_0x21dcdc[0x0]);}};$n=Y([J(0x0,_0x1ca2f6),J(0x1,_0x4b25cc)],$n);let er=class{constructor(_0x3c3647,_0x4efff0,_0x5e74b9){const _0x3019d5=_0x3bc3ed;this[_0x3019d5(0x33f)]=_0x3c3647,this['_transformService']=_0x4efff0,this[_0x3019d5(0x414)]=_0x5e74b9;}[_0x3bc3ed(0x22a)](_0x2dfd3f){const _0xab5ad2=_0x3bc3ed;this[_0xab5ad2(0x261)](_0x2dfd3f);}['transformRemoteChangeset'](_0x1ea195){const _0x1e1e65=_0x3bc3ed;let {unitID:_0xd5fa5a}=_0x1ea195,{collaboration:_0x1873ec}=this[_0x1e1e65(0x414)][_0x1e1e65(0x1d3)](_0xd5fa5a);if(_0x1873ec['length']===0x0)return _0x1ea195;let _0x4a17c9=_0x5e4224[_0x1e1e65(0x421)](_0x1ea195['mutations'][0x0]);for(let _0x4964b6=0x0;_0x4964b6<_0x1873ec[_0x1e1e65(0x1f0)];_0x4964b6++){let _0x132d97={'id':_0x1e1e65(0x22b),'params':{'unitId':_0x1873ec[_0x4964b6]['unitId'],..._0x1873ec[_0x4964b6][_0x1e1e65(0x323)]}},_0x50141f=this[_0x1e1e65(0x442)][_0x1e1e65(0x344)](_0x4a17c9,_0x132d97,!0x1);if(_0x4a2b76(_0x50141f))throw _0x50141f[_0x1e1e65(0x3d0)];_0x4a17c9=_0x50141f[_0x1e1e65(0x211)];}return{..._0x5e4224[_0x1e1e65(0x421)](_0x1ea195),'mutations':[_0x4a17c9]};}[_0x3bc3ed(0x261)](_0xb4c3a5){const _0x2eb1d2=_0x3bc3ed;let {unitID:_0x597821}=_0xb4c3a5,{history:_0x57ea75,collaboration:_0x148dac}=this['_docStateChangeManagerService'][_0x2eb1d2(0x1d3)](_0x597821);if(_0x57ea75[_0x2eb1d2(0x1f0)]===0x0&&_0x148dac['length']===0x0)return;let _0x3702fc=[],_0x24ce2a=[],_0x220fe2=_0x5e4224[_0x2eb1d2(0x421)](_0xb4c3a5['mutations'][0x0]),_0x2df8f6=_0x5e4224[_0x2eb1d2(0x421)](_0xb4c3a5[_0x2eb1d2(0x1e1)][0x0]);for(let _0x2e62c1=_0x57ea75[_0x2eb1d2(0x1f0)]-0x1;_0x2e62c1>=0x0;_0x2e62c1--){let _0x254736={'id':_0x2eb1d2(0x22b),'params':{'unitId':_0x57ea75[_0x2e62c1]['unitId'],..._0x57ea75[_0x2e62c1][_0x2eb1d2(0x3ef)]}},_0x17b9ef={'id':_0x2eb1d2(0x22b),'params':{'unitId':_0x57ea75[_0x2e62c1][_0x2eb1d2(0x2e4)],..._0x57ea75[_0x2e62c1]['redoState']}},_0x38c1ce=this['_transformService'][_0x2eb1d2(0x344)](_0x220fe2,_0x254736,!0x1),_0xb06764=this['_transformService'][_0x2eb1d2(0x344)](_0x2df8f6,_0x17b9ef,!0x1);if(_0x4a2b76(_0x38c1ce))throw _0x38c1ce['error'];if(_0x4a2b76(_0xb06764))throw _0xb06764['error'];_0x3702fc[_0x2eb1d2(0x1dc)]({..._0x57ea75[_0x2e62c1],'undoState':_0x38c1ce[_0x2eb1d2(0x26c)]['params'],'redoState':_0xb06764[_0x2eb1d2(0x26c)]['params']}),_0x220fe2=_0x38c1ce['m1Prime'],_0x2df8f6=_0xb06764[_0x2eb1d2(0x211)];}_0x220fe2=_0x5e4224['deepClone'](_0xb4c3a5['mutations'][0x0]),_0x2df8f6=_0x5e4224['deepClone'](_0xb4c3a5[_0x2eb1d2(0x1e1)][0x0]);for(let _0x252a45=_0x148dac['length']-0x1;_0x252a45>=0x0;_0x252a45--){let _0x2687e0={'id':_0x2eb1d2(0x22b),'params':{'unitId':_0x148dac[_0x252a45][_0x2eb1d2(0x2e4)],..._0x148dac[_0x252a45][_0x2eb1d2(0x3ef)]}},_0x395869={'id':_0x2eb1d2(0x22b),'params':{'unitId':_0x148dac[_0x252a45][_0x2eb1d2(0x2e4)],..._0x148dac[_0x252a45][_0x2eb1d2(0x323)]}},_0x5e8b4d=this[_0x2eb1d2(0x442)]['transformMutation'](_0x220fe2,_0x2687e0,!0x1),_0x382f98=this[_0x2eb1d2(0x442)][_0x2eb1d2(0x344)](_0x2df8f6,_0x395869,!0x1);if(_0x4a2b76(_0x5e8b4d))throw _0x5e8b4d['error'];if(_0x4a2b76(_0x382f98))throw _0x382f98['error'];_0x24ce2a[_0x2eb1d2(0x1dc)]({..._0x148dac[_0x252a45],'undoState':_0x5e8b4d[_0x2eb1d2(0x26c)][_0x2eb1d2(0x278)],'redoState':_0x382f98[_0x2eb1d2(0x26c)]['params']}),_0x220fe2=_0x5e8b4d[_0x2eb1d2(0x211)],_0x2df8f6=_0x382f98['m1Prime'];}this[_0x2eb1d2(0x414)][_0x2eb1d2(0x41d)](_0x597821,{'history':_0x3702fc,'collaboration':_0x24ce2a});}};er=Y([J(0x0,_0x4d1fed(_0x57f253)),J(0x1,_0x1ca2f6),J(0x2,_0x4d1fed(_0x358cad))],er);let tr=class{constructor(_0x22b54d,_0x4af991){this['_injector']=_0x22b54d,this['_transformService']=_0x4af991;}[_0x3bc3ed(0x351)](_0x31fbce){const _0x473301=_0x3bc3ed;let _0x2cb7d4=this[_0x473301(0x33f)][_0x473301(0x240)](_0x514f9f),_0x66a348=_0x2cb7d4[_0x473301(0x279)]()??[];if(_0x66a348[_0x473301(0x1f0)]===0x0)return;let _0x1aba75=_0x31fbce[_0x473301(0x2cc)],_0x4d65c8=[{'id':_0x473301(0x22b),'params':{'unitId':_0x1aba75,'actions':null,'textRanges':_0x66a348}}],_0x88affd=this[_0x473301(0x442)][_0x473301(0x255)](_0x31fbce,_0x4d65c8);if(!_0x257abb(_0x88affd))throw _0x88affd[_0x473301(0x3d0)];let _0x328711=_0x88affd[_0x473301(0x26c)][0x0]['params'][_0x473301(0x3a3)];Array['isArray'](_0x328711)&&_0x328711[_0x473301(0x1f0)]&&_0x2cb7d4[_0x473301(0x3d7)](_0x328711,{'unitId':_0x1aba75,'subUnitId':_0x1aba75},!0x1);}};tr=Y([J(0x0,_0x4d1fed(_0x57f253)),J(0x1,_0x1ca2f6)],tr);let nr=class extends _0x1b14aa{constructor(_0x3c4861,_0x47e915,_0x406186,_0x5a33f8,_0x518e06,_0x69a3bf,_0x418d8d){const _0x116171=_0x3bc3ed;super(),this[_0x116171(0x29b)]=_0x3c4861,this['_docTransformIMECacheService']=_0x47e915,this[_0x116171(0x244)]=_0x406186,this[_0x116171(0x41b)]=_0x5a33f8,this[_0x116171(0x3a8)]=_0x518e06,this[_0x116171(0x43a)]=_0x69a3bf,this[_0x116171(0x43f)]=_0x418d8d,q(this,_0x116171(0x3c1),new _0x5c73ce(_0x331606[_0x116171(0x2e6)])),this[_0x116171(0x249)]();}[_0x3bc3ed(0x249)](){const _0x479168=_0x3bc3ed;this[_0x479168(0x239)](this[_0x479168(0x29b)][_0x479168(0x416)][_0x479168(0x1f2)](_0x557805=>{const _0x28647a=_0x479168;_0x557805 instanceof _0x42f238&&_0x557805[_0x28647a(0x3bd)]({'onTransformIME':_0x2ee79b=>this[_0x28647a(0x2ef)][_0x28647a(0x28c)](_0x2ee79b),'onTransformState':_0x156cdc=>this[_0x28647a(0x244)][_0x28647a(0x22a)](_0x156cdc),'onTransformSelections':_0x4fa632=>this[_0x28647a(0x41b)][_0x28647a(0x351)](_0x4fa632),'onSyncEditingCollabCursor':_0x58ea9f=>this[_0x28647a(0x3a8)][_0x28647a(0x3ae)](_0x58ea9f),'onTransformRemoteChangesetByIMECache':_0x58caf8=>this[_0x28647a(0x2ef)][_0x28647a(0x21f)](_0x58caf8),'onTransformRemoteChangesetByStateCache':_0x2bb3fe=>this[_0x28647a(0x244)][_0x28647a(0x21f)](_0x2bb3fe)});}));}};nr=Y([J(0x0,_0x4d1fed(_0x37bcf2)),J(0x1,_0x4d1fed($n)),J(0x2,_0x4d1fed(er)),J(0x3,_0x4d1fed(tr)),J(0x4,_0x4d1fed(In)),J(0x5,_0x454719),J(0x6,_0x4d1fed(_0x2d2bf4))],nr);let rr=class extends _0x1b14aa{constructor(_0x44a12d,_0x39866e,_0x1d74f9,_0x3bec87){const _0x6aa203=_0x3bc3ed;super(),this[_0x6aa203(0x33f)]=_0x44a12d,this['_httpService']=_0x39866e,this['_logService']=_0x1d74f9,this[_0x6aa203(0x42a)]=_0x3bec87,q(this,_0x6aa203(0x3c8),void 0x0),this[_0x6aa203(0x3a5)]();}[_0x3bc3ed(0x3a5)](){this['_initWindowErrorListener'](),this['_initUnhandledRejectionListener'](),this['_monkeyPatchLogService'](),this['_initUserListener']();}[_0x3bc3ed(0x203)](){const _0x312b89=_0x3bc3ed;this['disposeWithMe'](this[_0x312b89(0x42a)][_0x312b89(0x2db)][_0x312b89(0x1f2)](_0x2f4960=>{const _0x884d54=_0x312b89;this[_0x884d54(0x3c8)]=_0x2f4960==null?void 0x0:_0x2f4960[_0x884d54(0x26d)];}));}[_0x3bc3ed(0x1c4)](){const _0x3fe429=_0x3bc3ed;let _0xeb903=_0x3880cb=>{const _0x4188c9=_0xb747;var _0x35a70c;this[_0x4188c9(0x412)](_0x4188c9(0x3d0),_0x4188c9(0x425)+_0x3880cb[_0x4188c9(0x31c)]+'\x20at\x20'+_0x3880cb[_0x4188c9(0x25e)]+':'+_0x3880cb[_0x4188c9(0x3cd)]+':'+_0x3880cb[_0x4188c9(0x227)]+'\x0a'+(((_0x35a70c=_0x3880cb[_0x4188c9(0x3d0)])==null?void 0x0:_0x35a70c[_0x4188c9(0x444)])||''));};window[_0x3fe429(0x3dc)](_0x3fe429(0x3d0),_0xeb903),this['disposeWithMe'](()=>{const _0x2d8ae0=_0x3fe429;window['removeEventListener'](_0x2d8ae0(0x3d0),_0xeb903);});}[_0x3bc3ed(0x3f2)](){const _0x2f6e74=_0x3bc3ed;let _0x2dcadb=_0x52ea8c=>{const _0x4360ad=_0xb747;this[_0x4360ad(0x412)](_0x4360ad(0x3d0),'[Unhandled\x20Rejection]:\x20'+_0x52ea8c[_0x4360ad(0x43e)]);};window['addEventListener'](_0x2f6e74(0x2a4),_0x2dcadb),this['disposeWithMe'](()=>{const _0x54281b=_0x2f6e74;window[_0x54281b(0x3c0)](_0x54281b(0x2a4),_0x2dcadb);});}['_monkeyPatchLogService'](){const _0x31efc2=_0x3bc3ed;let _0x41a52e=this['_logService']['error'][_0x31efc2(0x440)](this['_logService']);this['_logService']['error']=(..._0x1be56f)=>{const _0x1036d0=_0x31efc2;let _0x47309a=_0x1be56f[_0x1036d0(0x2f4)](_0x275a3e=>_0x275a3e instanceof Error?_0x275a3e[_0x1036d0(0x31c)]+'\x0a'+_0x275a3e[_0x1036d0(0x444)]:String(_0x275a3e))['join']('\x20');this[_0x1036d0(0x412)](_0x1036d0(0x3d0),_0x1036d0(0x33d)+_0x47309a),_0x41a52e(..._0x1be56f);},this[_0x31efc2(0x239)](()=>{const _0x146c95=_0x31efc2;this[_0x146c95(0x21c)][_0x146c95(0x3d0)]=_0x41a52e;});}[_0x3bc3ed(0x412)](_0x2c1122,_0x1f53e4){const _0x405dab=_0x3bc3ed;try{let _0x3a0ad1={'userId':this['_memberID'],'logLabel':_0x2c1122,'content':_0x1f53e4};this[_0x405dab(0x217)][_0x405dab(0x287)](_0x405dab(0x306),{'body':_0x3a0ad1})['catch'](()=>{});}catch{}}};rr=Y([J(0x0,_0x4d1fed(_0x57f253)),J(0x1,_0x4d1fed(_0x1365bf)),J(0x2,_0x483e73),J(0x3,_0x4d1fed(_0x48f983))],rr);function ir({state$:_0x1ae72a,interactionBlocked$:_0x1b9f56}){const _0x1ac62d=_0x3bc3ed;return _0x89ce4a(_0x5cf6b0,{'children':[_0x40d51c(_0x1b9f56,!0x1,!0x0)&&_0x1332bc(_0x1ac62d(0x274),{'data-u-comp':_0x1ac62d(0x39b),'aria-hidden':!0x0,'className':_0x1ac62d(0x228)}),_0x1332bc(ar,{'state$':_0x1ae72a})]});}function ar({state$:_0x3717e7}){const _0x4a3ca9=_0x3bc3ed;let _0x40d7f8=_0x40d51c(_0x3717e7,null,!0x0);return _0x40d7f8?_0x89ce4a(_0x4a3ca9(0x274),{'data-u-comp':_0x4a3ca9(0x352),'role':_0x4a3ca9(0x2c1),'className':_0x4a3ca9(0x2ec),'children':[_0x1332bc(_0x590f24,{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),_0x1332bc(_0x4a3ca9(0x40a),{'children':_0x40d7f8['content']}),_0x1332bc(_0x320797,{'size':_0x4a3ca9(0x36f),'variant':_0x4a3ca9(0x392),'onClick':()=>window['location']['reload'](),'children':_0x40d7f8[_0x4a3ca9(0x2a0)]})]}):null;}const or='snapshot-loading-';let sr=class extends _0x1b14aa{constructor(_0x4712bc,_0xf1dd4e,_0x2f9974,_0x1da482,_0x5e6779,_0x457525,_0x519573,_0x4e1f23){const _0x3409c1=_0x3bc3ed;super(),this['_snapshotLoadingService']=_0x4712bc,this[_0x3409c1(0x43a)]=_0xf1dd4e,this[_0x3409c1(0x43f)]=_0x2f9974,this[_0x3409c1(0x33f)]=_0x1da482,this[_0x3409c1(0x372)]=_0x5e6779,this[_0x3409c1(0x41f)]=_0x519573,this[_0x3409c1(0x32c)]=_0x4e1f23,q(this,_0x3409c1(0x2c9),new _0x5c73ce(null)),q(this,_0x3409c1(0x1c8),new _0x5c73ce(!0x1)),q(this,_0x3409c1(0x219),new Set()),q(this,'_blockProgressWatches',new Map()),q(this,_0x3409c1(0x423),new Set()),q(this,_0x3409c1(0x374),new Map()),q(this,'_previewUnitId',void 0x0),q(this,'_shortcutBlock',void 0x0),q(this,_0x3409c1(0x318),void 0x0),q(this,_0x3409c1(0x359),this['_timeoutState$'][_0x3409c1(0x2ae)]());let _0xa51b25=()=>_0x13edf8(ir,{'state$':this[_0x3409c1(0x359)],'interactionBlocked$':this[_0x3409c1(0x1c8)]});this['disposeWithMe'](_0x457525[_0x3409c1(0x36b)](_0x504019[_0x3409c1(0x3cf)],()=>_0x2aafc2(_0xa51b25,this[_0x3409c1(0x33f)]))),this[_0x3409c1(0x239)](this['_snapshotLoadingService'][_0x3409c1(0x24d)][_0x3409c1(0x1f2)](_0x24f26b=>{const _0x1415b0=_0x3409c1;this[_0x1415b0(0x374)]=_0x24f26b,_0x24f26b['forEach'](_0x48bf58=>{const _0x1115cf=_0x1415b0;this[_0x1115cf(0x2cd)](_0x48bf58),this[_0x1115cf(0x234)](_0x48bf58);});})),this['disposeWithMe'](this[_0x3409c1(0x32c)][_0x3409c1(0x209)][_0x3409c1(0x1f2)](()=>{const _0x1aa391=_0x3409c1;this[_0x1aa391(0x374)][_0x1aa391(0x348)](_0x29bbee=>{const _0x58846d=_0x1aa391;this['_updateMessage'](_0x29bbee),this[_0x58846d(0x234)](_0x29bbee);});}));}[_0x3bc3ed(0x44f)](){const _0x153dc6=_0x3bc3ed;var _0x52a590;if(this[_0x153dc6(0x219)][_0x153dc6(0x348)](_0x4c8fbc=>this['_messageService'][_0x153dc6(0x317)](_0x4c8fbc)),this[_0x153dc6(0x219)][_0x153dc6(0x3c7)](),this[_0x153dc6(0x3f7)]){var _0x2aff06;(_0x2aff06=this['_sheetLoadingRenderService'])==null||_0x2aff06[_0x153dc6(0x3a9)](this[_0x153dc6(0x3f7)]);}this[_0x153dc6(0x3f7)]=void 0x0,this[_0x153dc6(0x213)][_0x153dc6(0x348)](({timeoutId:_0x3f1fc5})=>clearTimeout(_0x3f1fc5)),this[_0x153dc6(0x213)]['clear'](),(_0x52a590=this['_shortcutBlock'])==null||_0x52a590[_0x153dc6(0x44f)](),this[_0x153dc6(0x3e0)]=void 0x0,this[_0x153dc6(0x2c9)][_0x153dc6(0x429)](),this[_0x153dc6(0x1c8)]['complete'](),super[_0x153dc6(0x44f)]();}[_0x3bc3ed(0x2cd)](_0x310da8){const _0x1b8736=_0x3bc3ed;let _0x987796=''+or+_0x310da8[_0x1b8736(0x2e4)];if(_0x310da8[_0x1b8736(0x394)]===_0x28cb8d['COMPLETE']){if(this[_0x1b8736(0x40c)](_0x310da8[_0x1b8736(0x2e4)]),this['_isVisibleUnit'](_0x310da8[_0x1b8736(0x2e4)])&&this[_0x1b8736(0x3f7)]===_0x310da8[_0x1b8736(0x2e4)]){this[_0x1b8736(0x43a)]['show']({'id':_0x987796,'type':_0x4703d3[_0x1b8736(0x319)],'duration':0x1/0x0,'content':this[_0x1b8736(0x43f)]['t'](_0x1b8736(0x43d))}),this['_messageIds'][_0x1b8736(0x31d)](_0x987796);return;}this[_0x1b8736(0x302)](_0x310da8['unitId']),this[_0x1b8736(0x43a)][_0x1b8736(0x317)](_0x987796),this[_0x1b8736(0x219)]['delete'](_0x987796);return;}if(!this[_0x1b8736(0x3ac)](_0x310da8[_0x1b8736(0x2e4)])){this[_0x1b8736(0x40c)](_0x310da8[_0x1b8736(0x2e4)]),this[_0x1b8736(0x302)](_0x310da8[_0x1b8736(0x2e4)]),this[_0x1b8736(0x43a)][_0x1b8736(0x317)](_0x987796),this[_0x1b8736(0x219)][_0x1b8736(0x3aa)](_0x987796);return;}if(_0x310da8['stage']===_0x28cb8d[_0x1b8736(0x3cc)]){this['_clearBlockProgressWatch'](_0x310da8['unitId']),this[_0x1b8736(0x302)](_0x310da8['unitId']),this[_0x1b8736(0x43a)][_0x1b8736(0x20a)]({'id':_0x987796,'type':_0x4703d3['Error'],'content':this[_0x1b8736(0x43f)]['t'](_0x1b8736(0x1e0))}),this[_0x1b8736(0x219)][_0x1b8736(0x3aa)](_0x987796);return;}if(_0x310da8['stage']!==_0x28cb8d[_0x1b8736(0x3e1)]||_0x310da8[_0x1b8736(0x277)]<=0xa){this['_clearBlockProgressWatch'](_0x310da8[_0x1b8736(0x2e4)]),this[_0x1b8736(0x43a)][_0x1b8736(0x317)](_0x987796),this[_0x1b8736(0x219)]['delete'](_0x987796);return;}this['_watchBlockProgress'](_0x310da8)||(this[_0x1b8736(0x43a)][_0x1b8736(0x20a)]({'id':_0x987796,'type':_0x4703d3[_0x1b8736(0x319)],'duration':0x1/0x0,'content':this['_localeService']['t'](_0x1b8736(0x3a1))+'\x20'+_0x310da8[_0x1b8736(0x288)]+'/'+_0x310da8['totalBlocks']}),this[_0x1b8736(0x219)][_0x1b8736(0x31d)](_0x987796));}[_0x3bc3ed(0x21a)](_0x4738e5){const _0x169c8a=_0x3bc3ed;let _0x23e0f9=this[_0x169c8a(0x213)]['get'](_0x4738e5[_0x169c8a(0x2e4)]);if((_0x23e0f9==null?void 0x0:_0x23e0f9[_0x169c8a(0x288)])===_0x4738e5['loadedBlocks'])return _0x23e0f9[_0x169c8a(0x3fb)];this[_0x169c8a(0x40c)](_0x4738e5[_0x169c8a(0x2e4)]);let _0x4b2e38=setTimeout(()=>{const _0x57cd15=_0x169c8a;let _0x216fbb=this[_0x57cd15(0x213)][_0x57cd15(0x240)](_0x4738e5[_0x57cd15(0x2e4)]);if(!_0x216fbb||_0x216fbb[_0x57cd15(0x38e)]!==_0x4b2e38)return;_0x216fbb[_0x57cd15(0x3fb)]=!0x0;let _0x7391c7=''+or+_0x4738e5[_0x57cd15(0x2e4)];this[_0x57cd15(0x43a)][_0x57cd15(0x317)](_0x7391c7),this[_0x57cd15(0x219)][_0x57cd15(0x3aa)](_0x7391c7),this['_timeoutState$']['next']({'unitId':_0x4738e5[_0x57cd15(0x2e4)],'content':this['_localeService']['t'](_0x57cd15(0x247),String(_0x4738e5[_0x57cd15(0x288)]),String(_0x4738e5['totalBlocks'])),'refreshLabel':this[_0x57cd15(0x43f)]['t'](_0x57cd15(0x38d))});},0xea60);return this[_0x169c8a(0x213)][_0x169c8a(0x34c)](_0x4738e5[_0x169c8a(0x2e4)],{'loadedBlocks':_0x4738e5['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x4b2e38}),!0x1;}[_0x3bc3ed(0x40c)](_0x4a43c9){const _0x5cf08d=_0x3bc3ed;let _0x3b92c9=this[_0x5cf08d(0x213)][_0x5cf08d(0x240)](_0x4a43c9);_0x3b92c9&&(clearTimeout(_0x3b92c9[_0x5cf08d(0x38e)]),this['_blockProgressWatches'][_0x5cf08d(0x3aa)](_0x4a43c9),this[_0x5cf08d(0x302)](_0x4a43c9));}[_0x3bc3ed(0x302)](_0x166639){const _0x46c511=_0x3bc3ed;var _0x8df358;((_0x8df358=this[_0x46c511(0x2c9)][_0x46c511(0x268)])==null?void 0x0:_0x8df358[_0x46c511(0x2e4)])===_0x166639&&this[_0x46c511(0x2c9)][_0x46c511(0x36a)](null);}['_updateSheetPreview'](_0x4758d7){const _0x14655a=_0x3bc3ed;if(_0x4758d7[_0x14655a(0x394)]===_0x28cb8d[_0x14655a(0x44c)]&&this[_0x14655a(0x423)][_0x14655a(0x3aa)](_0x4758d7[_0x14655a(0x2e4)]),!this['_isVisibleUnit'](_0x4758d7[_0x14655a(0x2e4)])){this[_0x14655a(0x314)](_0x4758d7[_0x14655a(0x2e4)]);return;}if(_0x4758d7['stage']===_0x28cb8d[_0x14655a(0x3cc)]||_0x4758d7[_0x14655a(0x277)]<=0xa){this['_hidePreview'](_0x4758d7[_0x14655a(0x2e4)]);return;}if(_0x4758d7[_0x14655a(0x394)]===_0x28cb8d[_0x14655a(0x37e)]){this[_0x14655a(0x339)](_0x4758d7['unitId']);return;}if(_0x4758d7[_0x14655a(0x394)]===_0x28cb8d[_0x14655a(0x3e1)]&&_0x4758d7[_0x14655a(0x34f)]&&_0x4758d7[_0x14655a(0x2d0)]){let _0x4304c0=this[_0x14655a(0x3ff)]();if(!_0x4304c0)return;this[_0x14655a(0x3f7)]&&this[_0x14655a(0x3f7)]!==_0x4758d7['unitId']&&this[_0x14655a(0x314)](this['_previewUnitId']),_0x4304c0[_0x14655a(0x32f)](_0x4758d7[_0x14655a(0x34f)],_0x4758d7[_0x14655a(0x2d0)]),this[_0x14655a(0x3f7)]=_0x4758d7[_0x14655a(0x2e4)],this[_0x14655a(0x238)](!0x0),_0x4758d7['previewReady']&&_0x4304c0[_0x14655a(0x20a)](_0x4758d7['workbookShell'],_0x4758d7[_0x14655a(0x2d0)],_0x4758d7[_0x14655a(0x3b0)]);}}['_handoffPreview'](_0x468398){const _0x1d1d77=_0x3bc3ed;if(this[_0x1d1d77(0x3f7)]!==_0x468398||this[_0x1d1d77(0x423)]['has'](_0x468398))return;let _0x2f9491=this[_0x1d1d77(0x318)];_0x2f9491&&(this['_handoffUnitIds'][_0x1d1d77(0x31d)](_0x468398),_0x2f9491[_0x1d1d77(0x44d)](_0x468398,0x2710)[_0x1d1d77(0x1ce)](_0x152f00=>{const _0x14412b=_0x1d1d77;if(this[_0x14412b(0x3f7)]!==_0x468398)return;if(_0x152f00){let _0x58bbfe=''+or+_0x468398;this['_messageService'][_0x14412b(0x317)](_0x58bbfe),this[_0x14412b(0x219)]['delete'](_0x58bbfe),this['_previewUnitId']=void 0x0,this[_0x14412b(0x238)](!0x1);return;}let _0x56f1fc=''+or+_0x468398;this[_0x14412b(0x43a)]['remove'](_0x56f1fc),this['_messageIds'][_0x14412b(0x3aa)](_0x56f1fc),this['_timeoutState$']['next']({'unitId':_0x468398,'content':this['_localeService']['t'](_0x14412b(0x1e0)),'refreshLabel':this[_0x14412b(0x43f)]['t'](_0x14412b(0x38d))});}));}['_hidePreview'](_0x27cd8f){const _0x108042=_0x3bc3ed;var _0x2c44c9;this[_0x108042(0x3f7)]===_0x27cd8f&&((_0x2c44c9=this[_0x108042(0x318)])==null||_0x2c44c9[_0x108042(0x3a9)](_0x27cd8f),this[_0x108042(0x3f7)]=void 0x0,this[_0x108042(0x238)](!0x1));}['_setInteractionBlocked'](_0x485c5b){const _0x26121c=_0x3bc3ed;if(_0x485c5b!==this[_0x26121c(0x1c8)][_0x26121c(0x268)]){if(_0x485c5b)this[_0x26121c(0x3e0)]=this['_shortcutService'][_0x26121c(0x399)]();else{var _0x3d417a;(_0x3d417a=this[_0x26121c(0x3e0)])==null||_0x3d417a['dispose'](),this[_0x26121c(0x3e0)]=void 0x0;}this[_0x26121c(0x1c8)][_0x26121c(0x36a)](_0x485c5b);}}[_0x3bc3ed(0x3ac)](_0x53f3fd){const _0x3f14b9=_0x3bc3ed;let _0x18ca95=this[_0x3f14b9(0x32c)][_0x3f14b9(0x1f5)](_0x3f14b9(0x207));return!_0x18ca95||_0x18ca95===_0x53f3fd;}[_0x3bc3ed(0x3ff)](){const _0x1adb04=_0x3bc3ed;return this[_0x1adb04(0x318)]?this[_0x1adb04(0x318)]:(this[_0x1adb04(0x372)][_0x1adb04(0x3b3)](_0x410a65[_0x1adb04(0x3a0)]),this[_0x1adb04(0x33f)][_0x1adb04(0x1e8)](_0x233bcb)&&(this['_sheetLoadingRenderService']=this[_0x1adb04(0x33f)]['get'](_0x233bcb)),this[_0x1adb04(0x318)]);}};sr=Y([J(0x0,_0x4d1fed(_0x114337)),J(0x1,_0x454719),J(0x2,_0x4d1fed(_0x2d2bf4)),J(0x3,_0x4d1fed(_0x57f253)),J(0x4,_0x4d1fed(_0x25f263)),J(0x5,_0x175ddd),J(0x6,_0x184422),J(0x7,Zn)],sr);function cr(_0x54a82f){const _0x286f59=_0x3bc3ed;var _0x4cdb86,_0x4f10a1;let _0x5cd15c=(_0x4cdb86=_0x54a82f[_0x286f59(0x1df)])==null?void 0x0:_0x4cdb86[_0x286f59(0x394)],_0xe4be92=((_0x4f10a1=_0x54a82f[_0x286f59(0x1df)])==null?void 0x0:_0x4f10a1[_0x286f59(0x405)])||0x0;return _0x5cd15c===_0x144f31['START_CALCULATION']&&_0xe4be92>0x0;}function lr(_0x2281be){const _0x5daa91=_0x3bc3ed;return _0x2281be[_0x5daa91(0x33c)]===_0x1e8a08[_0x5daa91(0x2bd)];}let ur=class extends _0x1b14aa{constructor(_0x523af4,_0x4ba366,_0x7cdf25,_0x47d378,_0x1f4cc7,_0x4b3150,_0x392443){const _0x550366=_0x3bc3ed;super(),this[_0x550366(0x43a)]=_0x523af4,this[_0x550366(0x20e)]=_0x4ba366,this[_0x550366(0x376)]=_0x7cdf25,this['_httpService']=_0x47d378,this['_univerInstanceService']=_0x1f4cc7,this['_logService']=_0x4b3150,this[_0x550366(0x43f)]=_0x392443,q(this,_0x550366(0x3e7),null),q(this,'_maxFormulaLimit',0x0),q(this,_0x550366(0x1d1),0x0),q(this,_0x550366(0x38b),[]),q(this,_0x550366(0x383),0x0),this['_initCommandInterceptor']();}[_0x3bc3ed(0x25b)](){const _0x5aad4c=_0x3bc3ed;this[_0x5aad4c(0x239)](this['_commandService'][_0x5aad4c(0x375)]((_0x431372,_0x5101f6)=>{const _0x313019=_0x5aad4c;if(_0x431372['id']!==_0x150725['id'])return;let _0x54a50a=_0x431372[_0x313019(0x278)];if(this[_0x313019(0x33a)](_0x54a50a[_0x313019(0x3d3)]??[])&&!this[_0x313019(0x401)]())throw this[_0x313019(0x2af)](_0x431372,_0x5101f6),this['_showGuardMessage'](),new _0x4e0243();})),this[_0x5aad4c(0x239)](this[_0x5aad4c(0x20e)][_0x5aad4c(0x222)]((_0x15544b,_0x695b81)=>{const _0xa0d39a=_0x5aad4c;if(_0x15544b['id']!==_0x85d638['id'])return;let _0x2ac2c0=_0x15544b[_0xa0d39a(0x278)];if(cr(_0x2ac2c0)){let _0xa2d33e=_0x1294de();this['_taskIds'][_0xa0d39a(0x368)](_0xa2d33e),this[_0xa0d39a(0x1ea)](_0xa2d33e);}else{if(lr(_0x2ac2c0)&&this['_taskIds'][_0xa0d39a(0x1f0)]>0x0){let _0x590e29=this[_0xa0d39a(0x38b)][_0xa0d39a(0x38a)]();this[_0xa0d39a(0x224)](_0x590e29);}}}));}[_0x3bc3ed(0x44f)](){const _0x21062c=_0x3bc3ed;super[_0x21062c(0x44f)](),this[_0x21062c(0x3be)](),this[_0x21062c(0x38b)]=[],this[_0x21062c(0x1d1)]=0x0,this[_0x21062c(0x1cc)]=0x0,this[_0x21062c(0x383)]=0x0;}async[_0x3bc3ed(0x2af)](_0x3cf023,_0x4ed464){const _0x239952=_0x3bc3ed;for(let _0x2c8755=0x0;_0x2c8755<0x1e;_0x2c8755++)try{if(await this[_0x239952(0x21b)](),this[_0x239952(0x401)]()){this[_0x239952(0x1fe)](_0x3cf023,_0x4ed464),this[_0x239952(0x43a)][_0x239952(0x20a)]({'content':this[_0x239952(0x43f)]['t']('collaboration-client-ui.formula.calculation.started'),'type':_0x4703d3['Success']});return;}await new Promise(_0x4c2c98=>{const _0x12683c=_0x239952;this[_0x12683c(0x3e7)]=window[_0x12683c(0x269)](_0x4c2c98,0x3e8);});}catch(_0x2fa360){this['_logService'][_0x239952(0x3d0)](_0x2fa360);}this[_0x239952(0x43a)][_0x239952(0x20a)]({'content':this[_0x239952(0x43f)]['t'](_0x239952(0x2d7)),'type':_0x4703d3[_0x239952(0x309)]});}['_applyCommand'](_0x5c78d4,_0x24592f){const _0x376a93=_0x3bc3ed;try{this[_0x376a93(0x20e)][_0x376a93(0x29e)](_0x5c78d4['id'],_0x5c78d4['params'],_0x24592f);}catch(_0x26311e){this[_0x376a93(0x21c)][_0x376a93(0x3d0)](_0x26311e);}}[_0x3bc3ed(0x1c6)](_0x189f8a,_0x108a6c){const _0x4ffc9c=_0x3bc3ed;_0x108a6c<this[_0x4ffc9c(0x383)]||(this[_0x4ffc9c(0x383)]=_0x108a6c,this[_0x4ffc9c(0x1cc)]=Number['parseInt'](_0x189f8a[_0x4ffc9c(0x205)]),this[_0x4ffc9c(0x1d1)]=Number[_0x4ffc9c(0x420)](_0x189f8a[_0x4ffc9c(0x42f)]));}async[_0x3bc3ed(0x1ea)](_0x4d3316){const _0xf349b=_0x3bc3ed;let _0xed3c19=Date[_0xf349b(0x2a5)]();try{var _0x551a25,_0x2d7a2a;let _0x73930c=((_0x551a25=this[_0xf349b(0x376)][_0xf349b(0x363)](_0x3d763c))==null?void 0x0:_0x551a25[_0xf349b(0x24c)])||_0xf349b(0x27b),_0x544cfc=(await this[_0xf349b(0x217)][_0xf349b(0x287)](_0x73930c,{'body':JSON['stringify']({'taskId':_0x4d3316})}))[_0xf349b(0x1cf)];if(((_0x2d7a2a=_0x544cfc['error'])==null?void 0x0:_0x2d7a2a['code'])!==_0x4f2945['OK'])return;this['_setFormulaLimitStatus'](_0x544cfc[_0xf349b(0x42b)],_0xed3c19);}catch(_0x1d7faf){this[_0xf349b(0x21c)][_0xf349b(0x3d0)](_0x1d7faf);}}async[_0x3bc3ed(0x21b)](_0x1fd273){const _0x5a1455=_0x3bc3ed;let _0x3b03ff=Date[_0x5a1455(0x2a5)]();try{var _0x270e62,_0x5c0e7e;let _0x392ba3=((_0x270e62=this[_0x5a1455(0x376)]['getConfig'](_0x3d763c))==null?void 0x0:_0x270e62[_0x5a1455(0x265)])||_0x5a1455(0x385),_0x58dbc8=_0x1fd273?_0x392ba3+_0x5a1455(0x408)+encodeURIComponent(_0x1fd273):_0x392ba3,_0x409aa0=(await this[_0x5a1455(0x217)]['get'](_0x58dbc8))['body'];if(((_0x5c0e7e=_0x409aa0[_0x5a1455(0x3d0)])==null?void 0x0:_0x5c0e7e['code'])!==_0x4f2945['OK'])return;this[_0x5a1455(0x1c6)](_0x409aa0[_0x5a1455(0x42b)],_0x3b03ff);}catch(_0x4d86b7){this[_0x5a1455(0x21c)][_0x5a1455(0x3d0)](_0x4d86b7);}}async[_0x3bc3ed(0x224)](_0xf8d101){const _0x2bc968=_0x3bc3ed;let _0xd4d382=Date[_0x2bc968(0x2a5)]();try{var _0x5daea5,_0xca0e35;let _0x30c330=((_0x5daea5=this['_configService'][_0x2bc968(0x363)](_0x3d763c))==null?void 0x0:_0x5daea5[_0x2bc968(0x349)])||_0x2bc968(0x2a6),_0x2fe715=(await this['_httpService'][_0x2bc968(0x287)](_0x30c330,{'body':JSON[_0x2bc968(0x1f6)]({'taskId':_0xf8d101})}))[_0x2bc968(0x1cf)];if(((_0xca0e35=_0x2fe715[_0x2bc968(0x3d0)])==null?void 0x0:_0xca0e35[_0x2bc968(0x200)])!==_0x4f2945['OK'])return;this[_0x2bc968(0x1c6)](_0x2fe715[_0x2bc968(0x42b)],_0xd4d382);}catch(_0x73a886){this[_0x2bc968(0x21c)][_0x2bc968(0x3d0)](_0x73a886);}}[_0x3bc3ed(0x401)](){const _0x300650=_0x3bc3ed;return this[_0x300650(0x1cc)]===0x0||this[_0x300650(0x1cc)]-this[_0x300650(0x1d1)]>0x0;}[_0x3bc3ed(0x3be)](){const _0x49ebc1=_0x3bc3ed;this[_0x49ebc1(0x3e7)]&&=(clearTimeout(this['_pollingInterval']),null);}['_showGuardMessage'](){const _0x1c1b6e=_0x3bc3ed;this[_0x1c1b6e(0x43a)]['show']({'content':this['_localeService']['t'](_0x1c1b6e(0x3e5)),'type':_0x4703d3['Loading']});}[_0x3bc3ed(0x33a)](_0x271ea0){const _0x546e02=_0x3bc3ed;for(let _0x31f3d5 of _0x271ea0){let {unitId:_0x29fdc2,sheetId:_0x161a42,range:_0x414483}=_0x31f3d5,_0x32cb8f=this['_univerInstanceService'][_0x546e02(0x32b)](_0x29fdc2,_0x410a65[_0x546e02(0x3a0)]);if(!_0x32cb8f)continue;let _0x234ab3=_0x32cb8f[_0x546e02(0x1dd)](_0x161a42);if(!_0x234ab3)continue;let _0x3d38d9=_0x234ab3[_0x546e02(0x428)]();for(let _0x200292=_0x414483[_0x546e02(0x22d)];_0x200292<=_0x414483[_0x546e02(0x380)];_0x200292++)for(let _0x14f8fd=_0x414483['startColumn'];_0x14f8fd<=_0x414483[_0x546e02(0x34d)];_0x14f8fd++){let _0x5d8c67=_0x3d38d9[_0x546e02(0x303)](_0x200292,_0x14f8fd);if(_0x5d8c67&&(_0x158c7b(_0x5d8c67['f'])||_0x26cc3f(_0x5d8c67['si'])))return!0x0;}}return!0x1;}};ur=Y([J(0x0,_0x4d1fed(_0x454719)),J(0x1,_0x581e85),J(0x2,_0x3f2cb5),J(0x3,_0x4d1fed(_0x1365bf)),J(0x4,_0x449dc1),J(0x5,_0x483e73),J(0x6,_0x4d1fed(_0x2d2bf4))],ur);let dr=class extends _0x1b14aa{constructor(_0x50e506,_0x2bcb83,_0x7a7498){const _0x62d4b=_0x3bc3ed;super(),this[_0x62d4b(0x376)]=_0x50e506,this[_0x62d4b(0x286)]=_0x2bcb83,this[_0x62d4b(0x29d)]=_0x7a7498,q(this,'_cachedData',new Map()),q(this,_0x62d4b(0x26a),new Map()),q(this,_0x62d4b(0x369),!0x1);}[_0x3bc3ed(0x3de)](){const _0x55d592=_0x3bc3ed;this[_0x55d592(0x369)]=!0x0;}[_0x3bc3ed(0x367)](){this['_disabled']=!0x1;}get[_0x3bc3ed(0x206)](){return this['_saveTaskMap'];}[_0x3bc3ed(0x44f)](){const _0x20211a=_0x3bc3ed;this[_0x20211a(0x37a)]()['then'](()=>super[_0x20211a(0x44f)]());}async['loadOfflineData'](_0x17d259){const _0x48b5e0=_0x3bc3ed;return this[_0x48b5e0(0x369)]?null:this[_0x48b5e0(0x286)]['getItem'](_0x419d06(_0x17d259));}async['saveOfflineData'](_0x5a7abe,_0x32036b){const _0x24e200=_0x3bc3ed;return!!this[_0x24e200(0x286)][_0x24e200(0x3bf)](_0x419d06(_0x5a7abe),_0x32036b);}async[_0x3bc3ed(0x334)](_0x2ad4e3,_0x256d4a){const _0x39f6af=_0x3bc3ed;let _0x54fe65=this['_cachedData']['get'](_0x2ad4e3)??await this[_0x39f6af(0x286)][_0x39f6af(0x345)](_0x419d06(_0x2ad4e3));if(!_0x54fe65)return;let _0x157b4b=Date[_0x39f6af(0x2a5)](),_0x465261=new Date(_0x157b4b)[_0x39f6af(0x42c)]();await this[_0x39f6af(0x286)][_0x39f6af(0x3bf)](_0x419d06(_0x2ad4e3)+_0x39f6af(0x419)+_0x157b4b,{'reason':_0x256d4a,'createdAt':_0x465261,'data':_0x54fe65});}[_0x3bc3ed(0x40f)](_0x1678cc,_0x3b0adf,_0x433f7f,_0x1b5968){const _0x4976f7=_0x3bc3ed;let _0x4ccb9c=this['_revisionService'][_0x4976f7(0x2c7)](_0x1678cc);this[_0x4976f7(0x1c3)][_0x4976f7(0x34c)](_0x1678cc,{'unitID':_0x1678cc,'type':_0x3b0adf,'awaitingChangeset':_0x433f7f,'mutations':_0x1b5968,'rev':_0x4ccb9c}),this[_0x4976f7(0x26a)][_0x4976f7(0x1e8)](_0x1678cc)||this[_0x4976f7(0x26e)](_0x1678cc);}[_0x3bc3ed(0x26e)](_0x546d98){const _0x4123d3=_0x3bc3ed;let _0x32324b=this[_0x4123d3(0x1d7)]();_0x32324b===0x0?this[_0x4123d3(0x3c9)](_0x546d98):this[_0x4123d3(0x26a)][_0x4123d3(0x34c)](_0x546d98,window[_0x4123d3(0x269)](()=>this[_0x4123d3(0x3c9)](_0x546d98),_0x32324b));}[_0x3bc3ed(0x1d7)](){const _0x32b84d=_0x3bc3ed;return this[_0x32b84d(0x376)][_0x32b84d(0x363)](_0x4fb8cb)??_0x44bde3;}[_0x3bc3ed(0x3c9)](_0x481edb){const _0x5cea94=_0x3bc3ed;let _0x45050b=this['_saveTaskMap']['get'](_0x481edb);return _0x45050b!==void 0x0&&window[_0x5cea94(0x21d)](_0x45050b),this[_0x5cea94(0x286)][_0x5cea94(0x3bf)](_0x419d06(_0x481edb),this[_0x5cea94(0x1c3)][_0x5cea94(0x240)](_0x481edb))[_0x5cea94(0x1ce)](()=>this[_0x5cea94(0x26a)]['delete'](_0x481edb));}async[_0x3bc3ed(0x37a)](){const _0x48b669=_0x3bc3ed;let _0x2cad35=[];this['_saveTaskMap']['forEach']((_0x4540c9,_0x17ef2a)=>{const _0x3203a8=_0xb747;window[_0x3203a8(0x21d)](_0x4540c9),_0x2cad35[_0x3203a8(0x368)](this['_saveCache'](_0x17ef2a)[_0x3203a8(0x1ce)](()=>{const _0x1b6be1=_0x3203a8;this[_0x1b6be1(0x26a)]['delete'](_0x17ef2a);}));}),await Promise[_0x48b669(0x281)](_0x2cad35);}};dr=Y([J(0x0,_0x3f2cb5),J(0x1,_0x1352c2),J(0x2,_0x4d1fed(_0x731ae8))],dr);var fr=class extends _0x2c69b2{constructor(){const _0x2e021a=_0x3bc3ed;super(),q(this,_0x2e021a(0x209),void 0x0),this['urlChange$']=_0x237140(window,_0x2e021a(0x40d))[_0x2e021a(0x320)](_0x18a3e8(this[_0x2e021a(0x263)]),_0x1b1f07({'bufferSize':0x1,'refCount':!0x0}),_0x382d75(void 0x0));}[_0x3bc3ed(0x256)](_0x117efd,_0x1c3cb4,_0x2d9537=!0x1){const _0x4fb5cd=_0x3bc3ed;let _0x416705=new URL(window[_0x4fb5cd(0x33e)][_0x4fb5cd(0x328)]);_0x416705[_0x4fb5cd(0x28e)][_0x4fb5cd(0x34c)](_0x117efd,_0x1c3cb4),_0x2d9537?window[_0x4fb5cd(0x335)][_0x4fb5cd(0x25f)]('','',_0x416705[_0x4fb5cd(0x1ef)]()):window[_0x4fb5cd(0x335)]['pushState']('','',_0x416705['toString']());}['removeParam'](_0x4acb2d,_0x583b0d=!0x1){const _0x275b4b=_0x3bc3ed;let _0x38f68d=new URL(window['location'][_0x275b4b(0x328)]);_0x38f68d[_0x275b4b(0x28e)][_0x275b4b(0x3aa)](_0x4acb2d),_0x583b0d?window[_0x275b4b(0x335)][_0x275b4b(0x25f)]('','',_0x38f68d['toString']()):window['history'][_0x275b4b(0x2ee)]('','',_0x38f68d[_0x275b4b(0x1ef)]());}[_0x3bc3ed(0x1f5)](_0x1fec10){const _0x344e31=_0x3bc3ed;return new URL(window[_0x344e31(0x33e)]['href'])[_0x344e31(0x28e)][_0x344e31(0x240)](_0x1fec10)??void 0x0;}};let $=class extends _0x5172e1{constructor(_0x51da59=wn,_0x62ffa3,_0x380e41,_0x155ea2){const _0x255380=_0x3bc3ed;super(),this[_0x255380(0x441)]=_0x51da59,this[_0x255380(0x3f3)]=_0x62ffa3,this[_0x255380(0x33f)]=_0x380e41,this[_0x255380(0x376)]=_0x155ea2;let {..._0x27d869}=_0x437a63({},wn,this[_0x255380(0x441)]);this[_0x255380(0x376)][_0x255380(0x2b2)](_0x255380(0x3d8),_0x27d869);}[_0x3bc3ed(0x35f)](){const _0x5b26ee=_0x3bc3ed;this[_0x5b26ee(0x1eb)](),this[_0x5b26ee(0x1f9)]();}['onRendered'](){const _0x39fd26=_0x3bc3ed;this[_0x39fd26(0x1fd)]();}['_registerDependencies'](){const _0x21cd31=_0x3bc3ed;var _0x104552;let _0x339904=[[Z],[ur],[Zn,{'useClass':fr}],[_0x13621c,{'useClass':_0x2a48b1}],[_0x571f9b,{'useClass':dr}],[X],[vn],[Xn],[Q],[Qn],[sr]];this['_config']['enableDocumentCollaborationUI']!==!0x1&&_0x339904[_0x21cd31(0x368)]([tr],[$n],[er],[In],[nr],[Tn]),this[_0x21cd31(0x441)][_0x21cd31(0x2d5)]&&_0x339904[_0x21cd31(0x368)]([rr]),_0x50dcc9(this[_0x21cd31(0x33f)],_0x437474(_0x339904,(_0x104552=this[_0x21cd31(0x441)])==null?void 0x0:_0x104552[_0x21cd31(0x44a)]));}['_registerRenderDependencies'](){const _0x37f781=_0x3bc3ed;this[_0x37f781(0x441)][_0x37f781(0x2e8)]!==!0x1&&this['disposeWithMe'](this[_0x37f781(0x3f3)]['registerRenderModule'](_0x410a65[_0x37f781(0x1d8)],[Gn])),this[_0x37f781(0x239)](this['_renderManagerService'][_0x37f781(0x32d)](_0x410a65[_0x37f781(0x3a0)],[qn])),this['disposeWithMe'](this[_0x37f781(0x3f3)]['registerRenderModule'](_0x410a65[_0x37f781(0x3f5)],[Yn])),this[_0x37f781(0x239)](this[_0x37f781(0x3f3)][_0x37f781(0x32d)](_0x410a65['UNIVER_BOARD'],[Hn]));}[_0x3bc3ed(0x1f9)](){const _0x53bf28=_0x3bc3ed;_0x2e8102(this[_0x53bf28(0x33f)],[[Q],[X],[vn],[Xn],[Qn],[ur],[sr]]),this[_0x53bf28(0x441)][_0x53bf28(0x2e8)]!==!0x1&&_0x2e8102(this[_0x53bf28(0x33f)],[[nr],[Tn]]),this['_config']['enableFrontendLog']&&_0x2e8102(this[_0x53bf28(0x33f)],[[rr]]);}};q($,'pluginName','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN'),q($,_0x3bc3ed(0x3ca),Sn),q($,'version',Cn),$=Y([_0x1e8dea(_0x2566dd,_0x282738,_0x295a3d,_0x544056,_0x285ff7,_0x8f0a5a,_0x38b492),J(0x1,_0x4b25cc),J(0x2,_0x4d1fed(_0x57f253)),J(0x3,_0x3f2cb5)],$);let pr=class extends _0x58047a{constructor(_0x3a5880,_0x13c053,_0x1d7420,_0x3cade5,_0x3da178){super(_0x3a5880,_0x13c053,_0x1d7420,_0x3cade5,_0x3da178);}async[_0x3bc3ed(0x23e)](_0x535c5c){const _0x7330ce=_0x3bc3ed;let _0x49d285=await this['_getSessionTicket'](),_0x13584d=this[_0x7330ce(0x3da)](_0x535c5c,_0x49d285);return this[_0x7330ce(0x2c5)](_0x13584d);}['_createSocketURL'](_0x1fc5d1,_0x10975f){const _0x4ade1c=_0x3bc3ed;let _0x5ad0c4=typeof window>'u'?new URL(_0x1fc5d1):new URL(_0x1fc5d1,window[_0x4ade1c(0x33e)][_0x4ade1c(0x365)]);_0x5ad0c4['searchParams'][_0x4ade1c(0x34c)](_0x4ade1c(0x248),_0x10975f);let _0x5807de=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x4ade1c(0x2d2)]);return _0x5807de[_0x4ade1c(0x240)]('runId')&&_0x5ad0c4[_0x4ade1c(0x28e)][_0x4ade1c(0x34c)]('runId',_0x5807de[_0x4ade1c(0x240)](_0x4ade1c(0x3c3))),_0x5ad0c4[_0x4ade1c(0x1ef)]();}async[_0x3bc3ed(0x343)](){const _0x34942d=_0x3bc3ed;var _0x1d7742;let _0x184873=this[_0x34942d(0x376)][_0x34942d(0x363)](_0x3d763c),_0x9d8095=(_0x184873==null?void 0x0:_0x184873[_0x34942d(0x296)])??_0x2d3b4c;return((_0x1d7742=(await this['_httpService'][_0x34942d(0x240)](_0x9d8095,{'headers':{'Content-Type':_0x34942d(0x2b7)}}))[_0x34942d(0x1cf)])==null?void 0x0:_0x1d7742['ticket'])??'';}};pr=Y([J(0x0,_0x4d1fed(_0x57f253)),J(0x1,_0x4d1fed(_0x1365bf)),J(0x2,_0x3f2cb5),J(0x3,_0x483e73),J(0x4,_0x58c39f)],pr);let mr=class extends _0x1b14aa{constructor(_0x515ffa,_0x3d7550,_0x527644){const _0x497899=_0x3bc3ed;super(),this[_0x497899(0x371)]=_0x515ffa,this[_0x497899(0x217)]=_0x3d7550,this[_0x497899(0x376)]=_0x527644;}async[_0x3bc3ed(0x31e)](_0x865b81,_0xeb52c8,_0x4cc1bc,..._0x2b96b7){const _0x976f40=_0x3bc3ed;let _0x4ce593=this['_instanceService']['getFocusedUnit']();if(!_0x4ce593)throw Error(_0x976f40(0x30d));let _0x19bf31=(this[_0x976f40(0x376)]['getConfig'](_0xc1e12a)??_0x210c45)+'/'+_0x865b81+_0x976f40(0x2c3)+_0xeb52c8,_0x575845={'scriptId':_0x865b81,'runId':new URL(window[_0x976f40(0x33e)]['href'])[_0x976f40(0x28e)][_0x976f40(0x240)](_0x976f40(0x3c3))??'','function':_0xeb52c8,'unitId':_0x4ce593[_0x976f40(0x275)](),'argsOfFunction':JSON['stringify'](_0x2b96b7),'invokeId':_0x4cc1bc[_0x976f40(0x390)]??'','executionId':_0x4cc1bc[_0x976f40(0x2f9)]??''};try{let _0x2c8672=await this[_0x976f40(0x217)][_0x976f40(0x287)](_0x19bf31,{'body':_0x575845});return _0x2c8672[_0x976f40(0x1cf)]['error']&&_0x2c8672[_0x976f40(0x1cf)]['error']['code']!==_0x4f2945['OK']?_0x976f40(0x2e2):_0x2c8672[_0x976f40(0x1cf)]['result'];}catch{return _0x976f40(0x2e2);}}};function _0x29fa(){const _0x5989f2=['searchParams','_getScale','_roomMembers$','_themeService','onPointerEnter$','_assignedColors','onPointerMove$','status','wsSessionTicketUrl','FromArray','isArray','_docSkeletonManagerService','_scheduleClearOtherTimer','_collaborationController','_cursorShapes','_revisionService','executeCommand','addObject','refreshLabel','getRenderUnitById','_initCommandExecutedListener','defineProperty','unhandledrejection','now','/universer-api/license/formula/limit/done','#4f46e5','_cursor','transformByState','min','univer-text-red-500','_pointerMoveDisposable','NO_OTHER_CLIENTS_EDITING','asObservable','_checkAndWaitForCalculationPermission','_imageIoService','_anchorDot','setConfig','color','requireSession','#FFF','univer-flex\x20univer-items-center\x20univer-justify-center','application/json','removeObjects','23888tijZKc','_updateSubUnitFromURLParams','_setupBeforeClosingHandler','_online','SUCCESS','_backgroundColor','eventID','_docClipboardService','alert','setAlpha','/run/','spin','_doCreateSocket','_sheetSkeletonManagerService','getCurrentRevOfUnit','symbol','_timeoutState$','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_onCursorDelete','unitID','_updateMessage','setInterval','_slideDrawingStateService','activeSheetId','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','search','collaboration-client-ui.session.will-retry','roomMembers$','enableFrontendLog','univer-h-8\x20univer-w-8\x20univer-rounded-lg','collaboration-client-ui.formula.calculation.unable','_send','sessionStatus$','unload','socket$','_unitOnClients','subUnitId','_heartbeatTimer','_highlight','cursorInfo','_handleHover','Failed','collaboration-client-ui.conflict.title','unitId','parse','NOT_COLLAB','DeleteRangeMoveLeftCommandId','enableDocumentCollaborationUI','string','CONFLICT','collabCursorState$','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-white\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-white','row','pushState','_docTransformIMECacheService','triggerDblclick','_blinkIntervalTimer','_isApplyingOverlays','InsertRowCommandId','map','_setupSubUnitSync','_drawTextRange','tooltipKey','_getObjectBounds','executionId','getActivePageId','_color','width','font','FETCH_MISS','with','getCellIndexByOffset','cursorInfo$','_clearTimeoutState','getValue','getActiveSheet','top','/universer-api/frontend/logs','_shapes','setOffsetY','Error','_handleJoinEvent','getObject','MoveRangeCommandId','[RemoteUniscriptService]:\x20no\x20focused\x20unit','currentTheme$','sheetId','collaboration-client-ui.permission.content','_initEvent','function','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_hidePreview','_handleHeartbeatEvent','event$','remove','_sheetLoadingRenderService','Loading','pageManager','send','message','add','runOnServer','split','pipe','left','getCoordRelativeToViewport','redoState','ONLINE','getAllUnitsForType','_latestCursors','range','href','find','getScrollXYInfoByViewport','getUnit','_urlService','registerRenderModule','bold\x2013px\x20Arial,\x20sans-serif','showSkeleton','_handleEvent','PENDING','getUndoRedoMutationParamsCache','board-collab-cursor-','backupOfflineData','history','size','VIEW_MAIN','hovered','_handoffPreview','_hasFormulaInDirtyRanges','_updateURLWithCurrentState','functionsExecutedState','[LogService\x20Error]:\x20','location','_injector','getActiveSlide','_getSceneObjectByKey','newValue','_getSessionTicket','transformMutation','getItem','_handleLeaveEvent','_eventUnsubscribe','forEach','releaseFormulaLimitUrl','isActive','_renderScheduled','set','endColumn','lineTo','workbookShell','AWAITING_WITH_PENDING','transformSelections','snapshot-loading-timeout','moveTo','getTypeOfUnitDisposed$','univer-m-0\x20univer-p-0','disposeUnit','resize','_hovered','timeoutState$','highlightSecond','indicator','transform','key','assignAColorForMemberID','onStarting','_refreshCollabCursors','_getMergeRange','univer-text-orange-500','getConfig','object','origin','activeSlideId$','enableLocalCache','push','_disabled','next','registerComponent','engine','getMemberID','_scene','small','selectedIds','_instanceService','_pluginService','unsubscribe','_latestStates','beforeCommandExecuted','_configService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_removeCollabCursors','currentSkeleton$','exhaustSavingTask','_clearOtherTimers','1929970trhjjS','_collabCursorController','COMPLETE','_getAnchorBounding','endRow','flatMap','_transformPreviousActiveRange','_lastResponseTimestamp','collab-text-range-','/universer-api/license/formula/limit/status','context','offsetY','_session','lineWidth','shift','_taskIds','startColumn','collaboration-client-ui.snapshotLoading.refresh','timeoutId','focused$','invokeId','collaboration-client-ui.collabStatus.notCollab','primary','_startSlideCollabCursor','stage','strokeRect','ACTIVE_UNIT_EVENT_CHANNEL','getCurrentTypeOfUnit$','button','forceDisable','_drawRectRange','snapshot-loading-interaction-guard','showText','getSkeleton','includes','[CollaborationDataLoaderController]','UNIVER_SHEET','collaboration-client-ui.collabStatus.fetchMiss','InsertColCommandId','textRanges','univer-appearance-none','_init','_univerInstanceService','_showText','_docSyncEditingCollabCursorService','hide','delete','_collabSessionService','_isVisibleUnit','strokeWidth','syncEditingCollabCursor','getAncestorScale','previewCellData','labelHorizontalPosition','OTHER_CLIENTS_EDITING','startPluginsForType','993132EMpZju','5wbWkuH','yellow.400','editingUnit','_render','green.600','_draw','getCurrentUnitOfType','static','addHandlerCallback','_clearPolling','setItem','removeEventListener','_status$','setActiveRange','runId','_selfUnitIDs','_drawAnchor','getTypeOfUnitAdded$','clear','_memberID','_saveCache','packageName','angle','ERROR','lineno','RECT','GLOBAL','error','_collaborationUIEventService','_blinkTimer','dirtyRanges','getOwnPropertyDescriptor','_toggleOnline','_colorIndex','replaceDocRanges','collaboration-client-ui.config','kind','_createSocketURL','_scheduleHeartbeat','addEventListener','removeObject','disableLocalCache','toRgbString','_shortcutBlock','LOADING_BLOCKS','univer-transition-all\x20univer-duration-200','collab-text-anchor-','_entities','collaboration-client-ui.formula.calculation.waiting','613835nmkMnf','_pollingInterval','some','beginPath','i18nKey','measureText','JOIN_ROOM_FAILED','1862604NgDTHv','...','undoState','arc','loadUnit','_initUnhandledRejectionListener','_renderManagerService','source','UNIVER_SLIDE','collaboration-client-ui.collabStatus.syncing','_previewUnitId','addObjects','UNIVER_BOARD','addClipboardHook','timedOut','univer-text-blue-500','getObjectIncludeInGroup','_getSheetObject','_getSheetLoadingRenderService','restore','_checkCalculationAvailable','addObject$','getId','_colorAssignService','totalFormulasToCalculate','_id','ranges','?taskId=','_removeClearOtherTimer','span','_labelHorizontalPosition','_clearBlockProgressWatch','popstate','getCollabEntity$','updateOfflineData','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','_onCursorUpdate','_uploadLog','collaboration-client-ui.collaboration.single-unit.warning','_docStateChangeManagerService','UPDATE_CURSOR','entityInit$','@univerjs-pro/collaboration-client-ui','_entityInit$',':backup:','icon','_docTransformSelectionsService','_refRangeService','setStateCache','findNodePositionByCharIndex','_shortcutService','parseInt','deepClone','status$','_handoffUnitIds','_uiPartsService','[Window\x20Error]:\x20','rgba','fillStyle','getCellMatrix','complete','_collaborationSessionService','limitInfo','toISOString','PERMISSION_DENIED','closePath','currentUsage','theme$','collaboration-client-ui.collabClient.tooltip.reconnect','_lastPointer','clearInterval','_getLighterColor','init','collaboration-client-ui.collaboration.closeRoom','_labelPosition','replace','univer-text-green-500','_messageService','collaboration-client-ui.collabStatus.offline','_range','collaboration-client-ui.snapshotLoading.loadingSheet','reason','_localeService','bind','_config','_transformService','dark:focus:!univer-ring-offset-gray-800','stack','\x20-\x20','collaboration-client-ui.collaboration.offline-data-not-saved','_textBubble','focusedId','toPrimitive','override','SYNCED','LOADING_SNAPSHOT','handoff','_localCacheService','dispose','univer-text-gray-400','_cachedData','_initWindowErrorListener','_hover','_setFormulaLimitStatus','_cursors','_interactionBlocked$','call','_startBlinking','type','_maxFormulaLimit','purple.300','then','body','_context','_currentUsage','_ensureSubject','getStateCache','HEADER_MENU','fillText','_memberService','_getSaveTimeout','UNIVER_DOC','_highlightSecond','startsWith','decorate','unshift','getSheetBySheetId','slice','stageInfo','collaboration-client-ui.session.connection-failed','mutations','getRealBound','getMergeData','from','_initResize','0.2)','_notificationService','has','selections','_startCalculationLimit','_registerDependencies','_isBlinkVisible','height','board-element-selection','toString','length','_scheduleRender','subscribe','save','createInstance','getParam','stringify','_syncEditingCollabCursorService','1915320DugHPb','_initDependencies','collaboration-client-ui.conflict.content','USERS_LEAVE','true','_registerRenderDependencies','_applyCommand','collaboration-client-ui.collabStatus.synced','code','getRangePointData','_hideTimer','_initUserListener','getUnhiddenWorksheets','maxFormulaLimit','saveTaskMap','unit','colorClass','urlChange$','show','rgba(','makeDirty','labelPosition','_commandService','fill','collab-rect-range-','m1Prime','debug','_blockProgressWatches','black','slide-collab-cursor-','TEXT','_httpService','120068aJTTFW','_messageIds','_watchBlockProgress','_getFormulaLimitStatus','_logService','clearTimeout','_offsetY','transformRemoteChangeset','subscribeEvent','max','onCommandExecuted','bottom','_releaseCalculationLimit','prototype','registerRefRange','colno','univer-fixed\x20univer-inset-0\x20univer-z-[1000]\x20univer-cursor-wait','1.0.0-beta.0','transformStateCache','doc.mutation.rich-text-editing','getSheetId','startRow','getViewport','evenodd','getMember','_name','strokeStyle','_transformUndoRedoStack','_updateSheetPreview','AWAITING','preventDefault','_initStatusComponent','_setInteractionBlocked','disposeWithMe','roomMembers','OTHER_CLIENT_EDITING','DeleteRangeMoveUpCommandId','_dataLoaderService','createSocket','_anchor','get','_startSheetCollabCursor','Unknown\x20user','_startDocCollabCursor','_docTransformStateCacheService','highlight','_beforeCloseService','collaboration-client-ui.snapshotLoading.timeout','sessionTicket','_initEntityListener','saveImage','getCurrentSelections','startFormulaLimitUrl','state$','_updateCollabCursors','reconnect','_collabCursorState$','onMouseMove',',\x200.2)','resolve','clickable','transformMutationsWithChangeset','setParam','getColorFromTheme','_startBoardCollabCursor','filter','column','_initCommandInterceptor','backgroundColor','Warning','filename','replaceState','SOCKET_FAILED','_transformHistoryAndStateStack','subunit','dispose$','isEditing','getFormulaLimitStatusUrl','_initStatusListener','getFocusedUnit','value','setTimeout','_saveTaskMap','onPointerLeave$','m2Prime','memberID','_scheduleSaving','_updateLocalCursor','name','right','_stopBlinking','activeSheet$','div','getUnitId','data','totalBlocks','params','getDocRanges','getCollabCursors$','/universer-api/license/formula/limit/start','scene','_toggleOffline','drawWith','_cursorInfo$','selection','all','red.300','polite','setShapeProps','Enter','_localStorageService','post','loadedBlocks','default','slide-element-selection','values','transformIMECache','_unitStatus'];_0x29fa=function(){return _0x5989f2;};return _0x29fa();}mr=Y([J(0x0,_0x449dc1),J(0x1,_0x4d1fed(_0x1365bf)),J(0x2,_0x3f2cb5)],mr);const hr=0x7530,gr=_0x3bc3ed(0x396);var _r=class extends _0x1b14aa{constructor(){const _0x28ae4e=_0x3bc3ed;super(),q(this,_0x28ae4e(0x406),_0x1294de()),q(this,_0x28ae4e(0x3c4),new Set()),q(this,_0x28ae4e(0x2dc),new Map()),q(this,_0x28ae4e(0x2de),null),q(this,'_clearOtherTimers',new Map()),q(this,_0x28ae4e(0x28d),new Map()),this[_0x28ae4e(0x3a5)]();}[_0x3bc3ed(0x44f)](){const _0x5b257a=_0x3bc3ed;super['dispose'](),this[_0x5b257a(0x37b)][_0x5b257a(0x348)]((_0x41efdc,_0x29cb13)=>this[_0x5b257a(0x409)](_0x29cb13)),this[_0x5b257a(0x2de)]&&window[_0x5b257a(0x433)](this[_0x5b257a(0x2de)]);}['getUnitStatus$'](_0x9a05ce){return this['_ensureSubject'](_0x9a05ce)['pipe'](_0x13c171());}[_0x3bc3ed(0x3b7)](_0xd885ec){const _0x298b62=_0x3bc3ed;this[_0x298b62(0x3c4)][_0x298b62(0x336)]===0x0&&this[_0x298b62(0x3db)](),this[_0x298b62(0x3c4)][_0x298b62(0x31d)](_0xd885ec),this[_0x298b62(0x2d8)]({'type':0x0,'memberID':this[_0x298b62(0x406)],'unitIDs':[_0xd885ec],'isForwarded':!0x1});}[_0x3bc3ed(0x356)](_0x5e044e){const _0x16e7ad=_0x3bc3ed;this[_0x16e7ad(0x3c4)][_0x16e7ad(0x3aa)](_0x5e044e),this[_0x16e7ad(0x3c4)][_0x16e7ad(0x336)]===0x0&&this[_0x16e7ad(0x2de)]&&window[_0x16e7ad(0x433)](this[_0x16e7ad(0x2de)]);}['_init'](){const _0x381acd=_0x3bc3ed;this[_0x381acd(0x239)](_0x9b2c48(_0x237140(window,'storage')[_0x381acd(0x1f2)](_0x448aef=>{const _0x41b17c=_0x381acd;if(_0x448aef[_0x41b17c(0x35d)]!==gr||!_0x448aef[_0x41b17c(0x342)])return;let _0x2ecb3f=JSON[_0x41b17c(0x2e5)](_0x448aef[_0x41b17c(0x342)]);this[_0x41b17c(0x330)](_0x2ecb3f);}))),window[_0x381acd(0x3dc)](_0x381acd(0x2da),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x381acd(0x3c4)])}));}['_handleEvent'](_0x57ce53){const _0x40b719=_0x3bc3ed;switch(_0x57ce53[_0x40b719(0x1cb)]){case 0x0:this[_0x40b719(0x30a)](_0x57ce53);break;case 0x1:this[_0x40b719(0x346)](_0x57ce53);break;case 0x2:this[_0x40b719(0x315)](_0x57ce53);break;}}[_0x3bc3ed(0x30a)](_0x467bdc){const _0x3c1248=_0x3bc3ed;let {unitIDs:_0x525eee,memberID:_0x36c4cc,isForwarded:_0x18854d}=_0x467bdc;_0x525eee[_0x3c1248(0x348)](_0x26a9a9=>{const _0x58c3f9=_0x3c1248;if(!_0x18854d&&this['_unitOnClients']['has'](_0x26a9a9)&&this[_0x58c3f9(0x1d2)](_0x26a9a9)[_0x58c3f9(0x36a)](_0x14eb9b[_0x58c3f9(0x3b2)]),!this['_unitOnClients'][_0x58c3f9(0x1e8)](_0x26a9a9)||!this[_0x58c3f9(0x2dc)][_0x58c3f9(0x240)](_0x26a9a9)[_0x58c3f9(0x1e8)](_0x36c4cc)){let _0xaa987=this[_0x58c3f9(0x2dc)][_0x58c3f9(0x240)](_0x26a9a9)||new Set();_0xaa987[_0x58c3f9(0x31d)](_0x36c4cc),this['_unitOnClients'][_0x58c3f9(0x34c)](_0x26a9a9,_0xaa987),this['_scheduleClearOtherTimer'](_0x36c4cc);}}),_0x18854d||this[_0x3c1248(0x2d8)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x3c1248(0x3c4)]],'isForwarded':!0x0});}[_0x3bc3ed(0x29a)](_0x2f29e5){const _0x1273e4=_0x3bc3ed;this[_0x1273e4(0x409)](_0x2f29e5);let _0x6d9140=window[_0x1273e4(0x269)](()=>{const _0x9b4956=_0x1273e4;this[_0x9b4956(0x2dc)][_0x9b4956(0x348)](_0x2337e0=>{const _0x196b2e=_0x9b4956;_0x2337e0[_0x196b2e(0x3aa)](_0x2f29e5);});},hr*0x2);this[_0x1273e4(0x37b)][_0x1273e4(0x34c)](_0x2f29e5,_0x6d9140);}[_0x3bc3ed(0x409)](_0x2f1bf2){const _0xfc3d7e=_0x3bc3ed;if(this['_clearOtherTimers'][_0xfc3d7e(0x1e8)](_0x2f1bf2)){let _0xdca9a4=this['_clearOtherTimers'][_0xfc3d7e(0x240)](_0x2f1bf2);_0xdca9a4&&window['clearTimeout'](_0xdca9a4),this[_0xfc3d7e(0x37b)][_0xfc3d7e(0x34c)](_0x2f1bf2,null);}}[_0x3bc3ed(0x346)](_0x4edbd5){const _0x56987d=_0x3bc3ed;let {memberID:_0x31b525,unitIDs:_0x59b7f3}=_0x4edbd5;_0x59b7f3[_0x56987d(0x348)](_0x2de971=>{const _0x1645c5=_0x56987d;var _0x333b70;let _0x3628e7=this[_0x1645c5(0x2dc)][_0x1645c5(0x240)](_0x2de971);_0x3628e7&&(_0x3628e7['delete'](_0x31b525),(_0x333b70=this[_0x1645c5(0x1d2)](_0x2de971))==null||_0x333b70['next'](_0x3628e7['size']===0x0?_0x14eb9b[_0x1645c5(0x2ad)]:_0x14eb9b['OTHER_CLIENTS_EDITING']));}),this[_0x56987d(0x409)](_0x31b525);}[_0x3bc3ed(0x315)](_0x551e8d){const _0x6aed9f=_0x3bc3ed;this[_0x6aed9f(0x29a)](_0x551e8d['memberID']);}[_0x3bc3ed(0x2d8)](_0x32b253){const _0x4736b2=_0x3bc3ed;localStorage[_0x4736b2(0x3bf)](gr,JSON[_0x4736b2(0x1f6)](_0x32b253));}['_scheduleHeartbeat'](){const _0x5f35b7=_0x3bc3ed;this[_0x5f35b7(0x2de)]=window[_0x5f35b7(0x2ce)](()=>{const _0x2eb15a=_0x5f35b7;this[_0x2eb15a(0x2d8)]({'type':0x2,'memberID':this[_0x2eb15a(0x406)]});},hr);}[_0x3bc3ed(0x1d2)](_0x37f497){const _0x466e7a=_0x3bc3ed;return this['_unitStatus'][_0x466e7a(0x1e8)](_0x37f497)||this['_unitStatus'][_0x466e7a(0x34c)](_0x37f497,new _0x5c73ce(_0x14eb9b[_0x466e7a(0x2ad)])),this[_0x466e7a(0x28d)][_0x466e7a(0x240)](_0x37f497);}};export{pr as BrowserCollaborationSocketService,X as DesktopCollaborationStatusDisplayController,Zn as IURLService,mr as RemoteUniscriptService,Kn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,_r as WebBrowserSingleActiveUnitService};
|