@univerjs-pro/collaboration-client-ui 1.0.1 → 1.0.3

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.
Files changed (93) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.css +37 -0
  45. package/lib/index.js +1 -1
  46. package/lib/locale/ar-SA.js +1 -1
  47. package/lib/locale/ca-ES.js +1 -1
  48. package/lib/locale/de-DE.js +1 -1
  49. package/lib/locale/en-US.js +1 -1
  50. package/lib/locale/es-ES.js +1 -1
  51. package/lib/locale/fa-IR.js +1 -1
  52. package/lib/locale/fr-FR.js +1 -1
  53. package/lib/locale/id-ID.js +1 -1
  54. package/lib/locale/it-IT.js +1 -1
  55. package/lib/locale/ja-JP.js +1 -1
  56. package/lib/locale/ko-KR.js +1 -1
  57. package/lib/locale/pl-PL.js +1 -1
  58. package/lib/locale/pt-BR.js +1 -1
  59. package/lib/locale/ru-RU.js +1 -1
  60. package/lib/locale/sk-SK.js +1 -1
  61. package/lib/locale/vi-VN.js +1 -1
  62. package/lib/locale/zh-CN.js +1 -1
  63. package/lib/locale/zh-HK.js +1 -1
  64. package/lib/locale/zh-TW.js +1 -1
  65. package/lib/types/controllers/collab-cursor/board-collab-cursor-entity.d.ts +32 -0
  66. package/lib/types/controllers/collab-cursor/board-collab-cursor-render.controller.d.ts +21 -0
  67. package/lib/types/controllers/collab-cursor/slide-collab-cursor-entity.d.ts +35 -0
  68. package/lib/types/controllers/collab-cursor/slide-collab-cursor-render.controller.d.ts +21 -0
  69. package/lib/types/services/formula-calculation-guard/formula-calculation-guard.service.d.ts +38 -0
  70. package/lib/types/services/formula-calculation-guard/util.d.ts +11 -0
  71. package/lib/types/views/shapes/slide-collab-cursor.shape.d.ts +15 -0
  72. package/lib/umd/facade.js +1 -1
  73. package/lib/umd/index.js +1 -1
  74. package/lib/umd/locale/ar-SA.js +1 -1
  75. package/lib/umd/locale/ca-ES.js +1 -1
  76. package/lib/umd/locale/de-DE.js +1 -1
  77. package/lib/umd/locale/en-US.js +1 -1
  78. package/lib/umd/locale/es-ES.js +1 -1
  79. package/lib/umd/locale/fa-IR.js +1 -1
  80. package/lib/umd/locale/fr-FR.js +1 -1
  81. package/lib/umd/locale/id-ID.js +1 -1
  82. package/lib/umd/locale/it-IT.js +1 -1
  83. package/lib/umd/locale/ja-JP.js +1 -1
  84. package/lib/umd/locale/ko-KR.js +1 -1
  85. package/lib/umd/locale/pl-PL.js +1 -1
  86. package/lib/umd/locale/pt-BR.js +1 -1
  87. package/lib/umd/locale/ru-RU.js +1 -1
  88. package/lib/umd/locale/sk-SK.js +1 -1
  89. package/lib/umd/locale/vi-VN.js +1 -1
  90. package/lib/umd/locale/zh-CN.js +1 -1
  91. package/lib/umd/locale/zh-HK.js +1 -1
  92. package/lib/umd/locale/zh-TW.js +1 -1
  93. package/package.json +18 -18
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x14429d=_0x3d03;(function(_0x3a6a69,_0x213dcf){const _0x1e9183=_0x3d03,_0x45f7ca=_0x3a6a69();while(!![]){try{const _0x556e52=parseInt(_0x1e9183(0x3d8))/0x1+-parseInt(_0x1e9183(0x3ea))/0x2+-parseInt(_0x1e9183(0x2fb))/0x3*(-parseInt(_0x1e9183(0x296))/0x4)+parseInt(_0x1e9183(0x32a))/0x5*(parseInt(_0x1e9183(0x2c4))/0x6)+-parseInt(_0x1e9183(0x38e))/0x7*(-parseInt(_0x1e9183(0x2cd))/0x8)+parseInt(_0x1e9183(0x314))/0x9*(-parseInt(_0x1e9183(0x2fc))/0xa)+-parseInt(_0x1e9183(0x292))/0xb*(parseInt(_0x1e9183(0x2c3))/0xc);if(_0x556e52===_0x213dcf)break;else _0x45f7ca['push'](_0x45f7ca['shift']());}catch(_0x2f70a3){_0x45f7ca['push'](_0x45f7ca['shift']());}}}(_0x2133,0x258ef));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x11040d,CollaborationController as _0x479467,CollaborationSessionService as _0x2b2a41,CollaborationSocketService as _0x3ab735,CollaborationStatus as _0x22cbf4,CollaborationUIEventId as _0x797de9,CollaborationUIEventService as _0x57af61,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0xb50b00,DEFAULT_WS_SESSION_TICKET_URL as _0x4cdb73,DataLoaderService as _0x5c5342,DocCollaborationEntity as _0x2b3bac,ILocalCacheService as _0x4ed906,LOCAL_CACHE_INTERVAL as _0x22821c,LOCAL_CACHE_INTERVAL_KEY as _0x4a71d9,MemberService as _0x529951,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x40ac4f,SessionStatus as _0x411373,UnitStatus as _0x12fc42,UniverCollaborationClientPlugin as _0x4990f6,getLocalCacheKey as _0x96f6b8}from'@univerjs-pro/collaboration-client';import{COLORS as _0x330629,ColorKit as _0x22b6b1,CommandType as _0x3d1507,DOC_RANGE_TYPE as _0xfd1486,DependentOn as _0x565f3d,Disposable as _0x4af7ce,DisposableCollection as _0x15436c,ICommandService as _0xdaa582,IConfigService as _0x3d218d,IImageIoService as _0x1ef202,ILocalStorageService as _0x30998f,ILogService as _0x2a6bbd,IUniverInstanceService as _0x4d77cc,Inject as _0x439243,Injector as _0x2c4c1e,LocaleService as _0x2d982f,Plugin as _0x28f90b,Rectangle as _0x2cdee5,RxDisposable as _0x32162e,ThemeService as _0xa61525,Tools as _0x59eb5c,UniverInstanceType as _0x4d263b,Workbook as _0xc04914,createIdentifier as _0x4ed343,debounce as _0x43c2fb,fromEventSubject as _0x3b1a74,generateRandomId as _0x5b5013,isInternalEditorID as _0x3f0d0f,merge as _0x13839f,mergeOverrideWithDependencies as _0x356ba2,registerDependencies as _0x572e92,toDisposable as _0x1c7e61,touchDependencies as _0x2b77cb}from'@univerjs/core';import{BuiltInUIPart as _0x589fc3,IBeforeCloseService as _0x333f87,IMessageService as _0x42a5ed,INotificationService as _0x279df2,IUIPartsService as _0x36acb8,IUnitPresenceUIAdapterRegistry as _0x2873f9,connectInjector as _0x9d541b,useDependency as _0x4a4611,useObservable as _0x40178e}from'@univerjs/ui';import{BehaviorSubject as _0x4a802e,Subject as _0x2894b9,combineLatest as _0x4f55e7,debounceTime as _0x4e32e2,distinctUntilChanged as _0x53e16d,filter as _0x49082d,fromEvent as _0x377d93,mapTo as _0x318933,merge as _0x17436b,of as _0x5f1171,shareReplay as _0xe8e11e,switchMap as _0x76e02a,takeUntil as _0x54edaf,throttle as _0x6b057b,timer as _0x5f3da1}from'rxjs';import{distinctUntilChanged as _0x4e5d12,filter as _0x225bc6,map as _0x37d85c,switchMap as _0x48ade1,takeUntil as _0x535fcc,throttleTime as _0x27ed7f}from'rxjs/operators';import{Button as _0x3c19f4,MessageType as _0x3e9b02,Tooltip as _0x4710ce,clsx as _0x163047}from'@univerjs/design';import{LoadingMultiIcon as _0x2346d5,OffLineIcon as _0x5369a1,OnLineIcon as _0x1dc6d7,WarningIcon as _0x4d4450}from'@univerjs/icons';import{createElement as _0x1b7724,useCallback as _0x5af805,useMemo as _0x5a19e1}from'react';import{jsx as _0x55526a,jsxs as _0x17f736}from'react/jsx-runtime';import{CollaborationEvent as _0x228507,ISnapshotServerService as _0x5da708,ITransformService as _0x3e0970,RevisionService as _0x4c1d46,SnapshotLoadStage as _0x56bb07,SnapshotLoadingService as _0x15d5cd,UniverCollaborationPlugin as _0x42bc38,isTransformMutationFailure as _0x51b014,isTransformMutationsWithChangesetSuccess as _0x5da30d}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0x52194a}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x25ff25,DocSkeletonManagerService as _0x101420,DocStateChangeManagerService as _0x12942b,RichTextEditingMutation as _0x56c228,SetTextSelectionsOperation as _0x54f38f,UniverDocsPlugin as _0x2f2fac}from'@univerjs/docs';import{DocIMEInputManagerService as _0x5e2811,IDocClipboardService as _0x3014aa,NodePositionConvertToCursor as _0x3e63cb,NodePositionConvertToRectRange as _0x40d888,SetDocZoomRatioOperation as _0x4c78d2,TEXT_RANGE_LAYER_INDEX as _0x2e23a0,UniverDocsUIPlugin as _0x4d590a}from'@univerjs/docs-ui';import{DocumentSkeletonPageType as _0x19d442,IRenderManagerService as _0x3ddfbd,Rect as _0x58a20d,RegularPolygon as _0x24bbe3,SHEET_VIEWPORT_KEY as _0xa2fb8c,Shape as _0xcdd8d1,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x435aa5,UniverRenderEnginePlugin as _0xb44e6a,Vector2 as _0x164f70,getColor as _0x457359,getDocumentSkeletonColumnPagePathInfo as _0x131357}from'@univerjs/engine-render';import{HTTPService as _0x103ec5,ISocketService as _0xfb68a9,UniverNetworkPlugin as _0x420728,WebSocketService as _0x4ffb7d}from'@univerjs/network';import{deserializeRangeWithSheet as _0x2f5144,serializeRangeWithSheet as _0x2e0d4e}from'@univerjs/engine-formula';import{EffectRefRangId as _0x5b9a17,RefRangeService as _0xb0be48,SetSelectionsOperation as _0x3ab318,SetWorksheetActivateCommand as _0x37f956,SheetsSelectionsService as _0x2dca29,handleDeleteRangeMoveLeft as _0x545bc5,handleDeleteRangeMoveUp as _0x16e771,handleIRemoveCol as _0xab56f7,handleIRemoveRow as _0xc812f3,handleInsertCol as _0xc026ab,handleInsertRangeMoveDown as _0x236619,handleInsertRangeMoveRight as _0x13224b,handleInsertRow as _0x41c0ed,handleMoveRange as _0xbfefff,runRefRangeMutations as _0x4964ac}from'@univerjs/sheets';import{SheetSkeletonManagerService as _0x405920,getCoordByCell as _0x527228,getSheetObject as _0x478dc1}from'@univerjs/sheets-ui';import{ErrorCode as _0x41baea}from'@univerjs/protocol';function rn(_0x4ea931){const _0x4b7801=_0x3d03;switch(_0x4ea931){case _0x22cbf4['OFFLINE']:return{'icon':_0x55526a(_0x5369a1,{}),'colorClass':_0x4b7801(0x39f),'i18nKey':'collaboration-client-ui.collabStatus.offline','tooltipKey':_0x4b7801(0x240),'clickable':!0x0,'indicator':'static'};case _0x22cbf4[_0x4b7801(0x390)]:return{'icon':_0x55526a(_0x5369a1,{}),'colorClass':_0x4b7801(0x35e),'i18nKey':_0x4b7801(0x2cf),'clickable':!0x1,'indicator':_0x4b7801(0x26c)};case _0x22cbf4['FETCH_MISS']:return{'icon':_0x55526a(_0x2346d5,{}),'colorClass':_0x4b7801(0x248),'i18nKey':_0x4b7801(0x3a1),'clickable':!0x1,'indicator':_0x4b7801(0x34f)};case _0x22cbf4[_0x4b7801(0x1e0)]:return{'icon':_0x55526a(_0x1dc6d7,{}),'colorClass':_0x4b7801(0x2e3),'i18nKey':_0x4b7801(0x389),'clickable':!0x1,'indicator':'static'};case _0x22cbf4[_0x4b7801(0x30e)]:case _0x22cbf4[_0x4b7801(0x42f)]:return{'icon':_0x55526a(_0x2346d5,{}),'colorClass':_0x4b7801(0x248),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x4b7801(0x34f)};case _0x22cbf4[_0x4b7801(0x256)]:return{'icon':_0x55526a(_0x2346d5,{}),'colorClass':_0x4b7801(0x248),'i18nKey':_0x4b7801(0x246),'clickable':!0x1,'indicator':_0x4b7801(0x34f)};case _0x22cbf4[_0x4b7801(0x239)]:return{'icon':_0x55526a(_0x1dc6d7,{}),'colorClass':'univer-text-green-500','i18nKey':'collaboration-client-ui.collabStatus.synced','clickable':!0x1,'indicator':_0x4b7801(0x26c)};}}function an(_0x1ebc79){const _0x519f6e=_0x3d03;let {status$:_0x633857}=_0x1ebc79,_0x3e7ea0=_0x40178e(_0x633857,_0x22cbf4['NOT_COLLAB']),_0x131fbb=_0x4a4611(_0x2d982f),_0x11e5bd=_0x4a4611(_0x2b2a41),_0x318e62=_0x5a19e1(()=>rn(_0x3e7ea0),[_0x3e7ea0]),_0x3fc5c1=_0x3e7ea0!==_0x22cbf4[_0x519f6e(0x343)],_0x1aed05=_0x131fbb['t'](_0x318e62[_0x519f6e(0x27c)]),_0x59f841=_0x318e62[_0x519f6e(0x311)]?_0x131fbb['t'](_0x318e62[_0x519f6e(0x311)]):_0x1aed05,_0x3b9b27=_0x5af805(()=>{const _0x2fc0a3=_0x519f6e;_0x3fc5c1||_0x11e5bd[_0x2fc0a3(0x1e1)]();},[_0x3fc5c1,_0x11e5bd]),_0x143181=_0x5af805(_0x82399f=>{const _0x552a8b=_0x519f6e;!_0x3fc5c1&&(_0x82399f[_0x552a8b(0x217)]==='Enter'||_0x82399f['key']==='\x20')&&(_0x82399f[_0x552a8b(0x372)](),_0x11e5bd['reconnect']());},[_0x3fc5c1,_0x11e5bd]),_0x5d6af0=_0x55526a('span',{'className':_0x163047(_0x519f6e(0x40b),_0x519f6e(0x25a),_0x318e62[_0x519f6e(0x3af)],{'univer-animate-spin':_0x318e62[_0x519f6e(0x378)]===_0x519f6e(0x34f),'univer-animate-pulse':_0x318e62[_0x519f6e(0x378)]==='pulse'}),'aria-hidden':_0x519f6e(0x3f8),'children':_0x318e62[_0x519f6e(0x202)]}),_0x57580d=_0x55526a(_0x519f6e(0x36e),{'className':_0x163047(_0x519f6e(0x40b),_0x519f6e(0x3fd),_0x519f6e(0x267),_0x519f6e(0x423),_0x519f6e(0x39e),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x318e62[_0x519f6e(0x435)],'univer-cursor-default':!_0x318e62[_0x519f6e(0x435)]}),'children':_0x5d6af0});return _0x318e62[_0x519f6e(0x435)]?_0x55526a(_0x4710ce,{'title':_0x59f841,'placement':_0x519f6e(0x3b4),'children':_0x55526a(_0x519f6e(0x36b),{'type':_0x519f6e(0x36b),'onClick':_0x3b9b27,'onKeyDown':_0x143181,'className':_0x163047(_0x519f6e(0x2f3),_0x519f6e(0x1fa),_0x519f6e(0x280),_0x519f6e(0x2fd)),'aria-label':_0x1aed05+_0x519f6e(0x37d)+_0x59f841,'role':_0x519f6e(0x412),'aria-live':_0x519f6e(0x322),'aria-atomic':'true','children':_0x57580d})}):_0x55526a(_0x4710ce,{'title':_0x59f841,'placement':_0x519f6e(0x3b4),'children':_0x55526a('div',{'className':_0x163047(_0x519f6e(0x2f3),_0x519f6e(0x1fa),_0x519f6e(0x280)),'aria-label':_0x1aed05,'role':_0x519f6e(0x412),'aria-live':'polite','aria-atomic':_0x519f6e(0x3f8),'children':_0x57580d})});}function W(_0x4ff731){'@babel/helpers - typeof';const _0x404d93=_0x3d03;return W=typeof Symbol==_0x404d93(0x2e0)&&typeof Symbol[_0x404d93(0x23d)]=='symbol'?function(_0x2bcc0d){return typeof _0x2bcc0d;}:function(_0x36bc80){const _0x7b955d=_0x404d93;return _0x36bc80&&typeof Symbol==_0x7b955d(0x2e0)&&_0x36bc80['constructor']===Symbol&&_0x36bc80!==Symbol['prototype']?_0x7b955d(0x3f6):typeof _0x36bc80;},W(_0x4ff731);}function on(_0x28c4c6,_0x2bd210){const _0x18d39e=_0x3d03;if(W(_0x28c4c6)!='object'||!_0x28c4c6)return _0x28c4c6;var _0x4045c8=_0x28c4c6[Symbol['toPrimitive']];if(_0x4045c8!==void 0x0){var _0x450e99=_0x4045c8[_0x18d39e(0x23f)](_0x28c4c6,_0x2bd210||_0x18d39e(0x265));if(W(_0x450e99)!=_0x18d39e(0x26a))return _0x450e99;throw TypeError(_0x18d39e(0x350));}return(_0x2bd210==='string'?String:Number)(_0x28c4c6);}function sn(_0x224b0e){const _0x5642b2=_0x3d03;var _0x2cd307=on(_0x224b0e,_0x5642b2(0x2df));return W(_0x2cd307)==_0x5642b2(0x3f6)?_0x2cd307:_0x2cd307+'';}function G(_0x227af3,_0x272ed3,_0x2fe22e){const _0x4950d8=_0x3d03;return(_0x272ed3=sn(_0x272ed3))in _0x227af3?Object[_0x4950d8(0x228)](_0x227af3,_0x272ed3,{'value':_0x2fe22e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x227af3[_0x272ed3]=_0x2fe22e,_0x227af3;}function K(_0x233def,_0x36486b){return function(_0x5654b9,_0x5a25c5){_0x36486b(_0x5654b9,_0x5a25c5,_0x233def);};}function q(_0x56ac42,_0x4913eb,_0x1ba2cc,_0x16a8ee){const _0x23dac2=_0x3d03;var _0x54f100=arguments[_0x23dac2(0x3a5)],_0x8f30af=_0x54f100<0x3?_0x4913eb:_0x16a8ee===null?_0x16a8ee=Object[_0x23dac2(0x233)](_0x4913eb,_0x1ba2cc):_0x16a8ee,_0x220ef2;if(typeof Reflect==_0x23dac2(0x26a)&&typeof Reflect[_0x23dac2(0x32e)]=='function')_0x8f30af=Reflect[_0x23dac2(0x32e)](_0x56ac42,_0x4913eb,_0x1ba2cc,_0x16a8ee);else{for(var _0x12dfb3=_0x56ac42[_0x23dac2(0x3a5)]-0x1;_0x12dfb3>=0x0;_0x12dfb3--)(_0x220ef2=_0x56ac42[_0x12dfb3])&&(_0x8f30af=(_0x54f100<0x3?_0x220ef2(_0x8f30af):_0x54f100>0x3?_0x220ef2(_0x4913eb,_0x1ba2cc,_0x8f30af):_0x220ef2(_0x4913eb,_0x1ba2cc))||_0x8f30af);}return _0x54f100>0x3&&_0x8f30af&&Object[_0x23dac2(0x228)](_0x4913eb,_0x1ba2cc,_0x8f30af),_0x8f30af;}let J=class extends _0x4af7ce{constructor(_0x184143,_0xb96a31,_0x10fd6f,_0x277712,_0x50b09f){const _0x4b87bd=_0x3d03;super(),this[_0x4b87bd(0x3d9)]=_0x184143,this[_0x4b87bd(0x34e)]=_0xb96a31,this[_0x4b87bd(0x421)]=_0x10fd6f,this[_0x4b87bd(0x250)]=_0x277712,this['_presenceAdapterRegistry']=_0x50b09f,G(this,_0x4b87bd(0x2da),new _0x4a802e(_0x22cbf4[_0x4b87bd(0x1e0)])),G(this,'_presenceStatusRegistrations',new Map()),this[_0x4b87bd(0x2ca)](),this[_0x4b87bd(0x1f7)](),this[_0x4b87bd(0x3b9)]();}['dispose'](){const _0x2a4710=_0x3d03;this[_0x2a4710(0x358)]['forEach'](_0x404e3d=>_0x404e3d['dispose']()),this[_0x2a4710(0x358)]['clear'](),this['_status$'][_0x2a4710(0x24e)](),super[_0x2a4710(0x381)]();}['_initStatusListener'](){const _0x1d45dc=_0x3d03;this[_0x1d45dc(0x406)](_0x17436b(this['_univerInstanceService']['focused$'],this[_0x1d45dc(0x3d9)][_0x1d45dc(0x208)](_0x4d263b['UNIVER_DOC']),this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x4d263b[_0x1d45dc(0x1d9)]))[_0x1d45dc(0x203)](_0x37d85c(()=>cn(this[_0x1d45dc(0x3d9)])),_0x4e5d12(),_0x76e02a(_0x2063ce=>_0x2063ce?this[_0x1d45dc(0x421)][_0x1d45dc(0x22e)](_0x2063ce):_0x5f1171(null)),_0x76e02a(_0x291fdb=>_0x291fdb?_0x291fdb[_0x1d45dc(0x2fe)]:_0x5f1171(_0x22cbf4['NOT_COLLAB'])))[_0x1d45dc(0x21d)](_0x59facf=>{const _0x49d3e4=_0x1d45dc;this[_0x49d3e4(0x2da)][_0x49d3e4(0x362)](_0x59facf);}));}['_initStatusComponent'](){const _0x909642=_0x3d03;this[_0x909642(0x406)](this[_0x909642(0x250)][_0x909642(0x276)](_0x589fc3['HEADER_MENU'],()=>_0x9d541b(ln({'status$':this[_0x909642(0x2da)][_0x909642(0x1e6)]()}),this[_0x909642(0x34e)])));}[_0x14429d(0x3b9)](){const _0x53cb27=_0x14429d;let _0x2b769e=this[_0x53cb27(0x324)][_0x53cb27(0x365)][_0x53cb27(0x21d)](_0x1c27b6=>{const _0xd4d2fb=_0x53cb27;this[_0xd4d2fb(0x309)](_0x1c27b6);});this[_0x53cb27(0x406)](_0x1c7e61(()=>_0x2b769e[_0x53cb27(0x329)]()));}[_0x14429d(0x309)](_0x228217){const _0x2792f8=_0x14429d;let _0x4cccb4=new Map(_0x228217[_0x2792f8(0x21c)](_0x229e49=>_0x229e49[_0x2792f8(0x33d)]!=null)['map'](_0x103031=>[_0x103031['unitType'],_0x103031]));this[_0x2792f8(0x358)][_0x2792f8(0x333)]((_0x1a99cf,_0x44360c)=>{const _0x2239d2=_0x2792f8;_0x4cccb4[_0x2239d2(0x38f)](_0x44360c)||(_0x1a99cf[_0x2239d2(0x381)](),this[_0x2239d2(0x358)][_0x2239d2(0x2a0)](_0x44360c));}),_0x4cccb4[_0x2792f8(0x333)]((_0x38ea98,_0x369b68)=>{const _0x549e10=_0x2792f8;this['_presenceStatusRegistrations'][_0x549e10(0x38f)](_0x369b68)||this['_registerPresenceStatusComponent'](_0x38ea98);});}[_0x14429d(0x416)](_0x588327){const _0xce4ca2=_0x14429d;let _0x484b92=_0x588327[_0xce4ca2(0x33d)];if(!_0x484b92)return;let _0x3a945a=new _0x15436c(),_0x250694=new _0x4a802e(_0x22cbf4['NOT_COLLAB']);_0x3a945a[_0xce4ca2(0x264)](_0x1c7e61(()=>_0x250694['complete']())),_0x3a945a['add'](this[_0xce4ca2(0x250)][_0xce4ca2(0x276)](_0x484b92,()=>_0x9d541b(ln({'status$':_0x250694[_0xce4ca2(0x1e6)]()}),this[_0xce4ca2(0x34e)])));let _0x501801=this[_0xce4ca2(0x3d9)]['getCurrentTypeOfUnit$'](_0x588327[_0xce4ca2(0x382)])[_0xce4ca2(0x203)](_0x37d85c(_0x5cf216=>(_0x5cf216==null?void 0x0:_0x5cf216[_0xce4ca2(0x252)]())??null),_0x4e5d12(),_0x76e02a(_0xdb24ea=>_0xdb24ea?this['_collaborationController'][_0xce4ca2(0x22e)](_0xdb24ea):_0x5f1171(null)),_0x76e02a(_0x3a7304=>(_0x3a7304==null?void 0x0:_0x3a7304[_0xce4ca2(0x2fe)])??_0x5f1171(_0x22cbf4[_0xce4ca2(0x1e0)])))[_0xce4ca2(0x21d)](_0x5f5dd3=>_0x250694[_0xce4ca2(0x362)](_0x5f5dd3));_0x3a945a['add'](_0x1c7e61(()=>_0x501801[_0xce4ca2(0x329)]())),this[_0xce4ca2(0x358)][_0xce4ca2(0x1fc)](_0x588327[_0xce4ca2(0x382)],_0x3a945a);}};J=q([K(0x0,_0x4d77cc),K(0x1,_0x439243(_0x2c4c1e)),K(0x2,_0x439243(_0x479467)),K(0x3,_0x36acb8),K(0x4,_0x439243(_0x2873f9))],J);function cn(_0x220465){const _0x54370c=_0x14429d;let _0x3f3305=_0x220465[_0x54370c(0x254)](),_0x257dd3=_0x3f3305==null?void 0x0:_0x3f3305[_0x54370c(0x252)]();if(_0x257dd3&&!_0x3f0d0f(_0x257dd3))return _0x257dd3;let _0x2956b3=_0x220465[_0x54370c(0x32f)](_0x4d263b[_0x54370c(0x1e8)]),_0x47b350=_0x2956b3==null?void 0x0:_0x2956b3['getUnitId']();if(_0x47b350&&!_0x3f0d0f(_0x47b350))return _0x47b350;let _0x55bb50=_0x220465[_0x54370c(0x32f)](_0x4d263b[_0x54370c(0x1d9)]);if(_0x55bb50)return _0x55bb50[_0x54370c(0x252)]();let _0x3d6cef=_0x220465[_0x54370c(0x219)](_0x4d263b[_0x54370c(0x1e8)])['find'](_0xf5075b=>!_0x3f0d0f(_0xf5075b[_0x54370c(0x252)]()));return _0x3d6cef?_0x3d6cef[_0x54370c(0x252)]():null;}function ln(_0x4fe189){let {status$:_0x3308a1}=_0x4fe189;return function(){return _0x55526a(an,{'status$':_0x3308a1});};}var un=_0x14429d(0x2de),dn=_0x14429d(0x31b);const Y={'id':_0x14429d(0x212),'type':_0x3d1507['OPERATION'],'handler':(_0x62c38d,_0x47ee84)=>{const _0x21c3b1=_0x14429d;let _0x5e217d=_0x62c38d[_0x21c3b1(0x341)](_0x2873f9)[_0x21c3b1(0x341)](_0x47ee84['unitType']);if(!_0x5e217d)return!0x1;switch(_0x47ee84[_0x21c3b1(0x424)]['type']){case _0x21c3b1(0x1fc):return _0x5e217d['setRemotePresence'](_0x47ee84[_0x21c3b1(0x424)][_0x21c3b1(0x313)]),!0x0;case'remove':return _0x5e217d[_0x21c3b1(0x1e4)](_0x47ee84[_0x21c3b1(0x424)][_0x21c3b1(0x210)],_0x47ee84['update'][_0x21c3b1(0x21f)]),!0x0;case _0x21c3b1(0x1d7):return _0x5e217d[_0x21c3b1(0x328)](_0x47ee84[_0x21c3b1(0x424)]['unitId']),!0x0;default:return!0x1;}}},fn={};let X=class extends _0x32162e{constructor(_0x17452a,_0x4bb1d6){const _0x4ace77=_0x14429d;super(),this[_0x4ace77(0x268)]=_0x17452a,this[_0x4ace77(0x2e1)]=_0x4bb1d6,this[_0x4ace77(0x3b8)]();}[_0x14429d(0x3b8)](){const _0x28bcc7=_0x14429d;let _0x299cef=this;this['disposeWithMe'](this[_0x28bcc7(0x268)][_0x28bcc7(0x3a9)]({'onBeforePasteImage':async _0x171680=>{const _0x1a34de=_0x28bcc7;let _0x58015d=await _0x299cef['_imageIoService'][_0x1a34de(0x27e)](_0x171680);return _0x58015d?{'source':_0x58015d[_0x1a34de(0x375)],'imageSourceType':_0x58015d['imageSourceType']}:null;}}));}};X=q([K(0x0,_0x3014aa),K(0x1,_0x1ef202)],X);const pn=[_0x14429d(0x436),_0x14429d(0x3d0),'green.600',_0x14429d(0x41a),_0x14429d(0x339),_0x14429d(0x353)];var mn=class extends _0x4af7ce{constructor(..._0x1da7f9){const _0x26112d=_0x14429d;super(..._0x1da7f9),G(this,_0x26112d(0x3c3),new Map()),G(this,_0x26112d(0x405),0x0);}[_0x14429d(0x373)](_0x102edf){const _0x414c7c=_0x14429d;if(this['_assignedColors'][_0x414c7c(0x38f)](_0x102edf))return this[_0x414c7c(0x3c3)][_0x414c7c(0x341)](_0x102edf);let _0x5b45bd=pn[this[_0x414c7c(0x405)]];return this[_0x414c7c(0x405)]=(this['_colorIndex']+0x1)%pn[_0x414c7c(0x3a5)],this[_0x414c7c(0x3c3)]['set'](_0x102edf,_0x5b45bd),_0x5b45bd;}};function hn(_0x1e19fb){const _0x11d176=_0x14429d;let _0x10867d='';for(let _0x50576d of _0x1e19fb){let {startOffset:_0x4c0557,endOffset:_0x49e23f,isActive:_0x1fa1e7,rangeType:_0x268ff1,segmentId:_0xf9904a,segmentPage:_0x46b026}=_0x50576d;_0x10867d[_0x11d176(0x3a5)]&&(_0x10867d+=','),_0x10867d+=_0x4c0557+':'+_0x49e23f+':'+(_0x1fa1e7?'1':'0')+':'+_0x268ff1+':'+_0xf9904a+':'+_0x46b026;}return _0x10867d;}function gn(_0xe90c9a){const _0x221f04=_0x14429d;let _0x16ab2a=_0xe90c9a[_0x221f04(0x1fe)](','),_0x488bda=[];for(let _0x456f2b of _0x16ab2a){let [_0x5e1b67,_0x3bd095,_0x28fa02,_0x3a99bb,_0x611319,_0x36f51c]=_0x456f2b[_0x221f04(0x1fe)](':');_0x488bda[_0x221f04(0x305)]({'startOffset':Number(_0x5e1b67),'endOffset':Number(_0x3bd095),'collapsed':_0x5e1b67===_0x3bd095,'isActive':_0x28fa02==='1','rangeType':_0x3a99bb===_0xfd1486[_0x221f04(0x297)]?_0xfd1486['TEXT']:_0xfd1486[_0x221f04(0x279)],'segmentId':typeof _0x611319==_0x221f04(0x2df)?String(_0x611319):'','segmentPage':Number(_0x36f51c??-0x1)});}return _0x488bda['some'](_0x2930e7=>_0x2930e7[_0x221f04(0x299)])||(_0x488bda[0x0][_0x221f04(0x299)]=!0x0),_0x488bda;}var _n=class extends _0x32162e{constructor(..._0x5906c2){const _0x45b4db=_0x14429d;super(..._0x5906c2),G(this,_0x45b4db(0x32c),new _0x4a802e(null)),G(this,_0x45b4db(0x308),this[_0x45b4db(0x32c)][_0x45b4db(0x1e6)]());}[_0x14429d(0x245)](_0x43b4bd){const _0x6eaa0=_0x14429d;let {unitID:_0x412017,memberID:_0x3c1c6d,textRanges:_0x5cf398}=_0x43b4bd,_0x51f911=hn(_0x5cf398);if(_0x51f911==='')return;let _0x1fb0d4={'unitID':_0x412017,'memberID':_0x3c1c6d,'selection':_0x51f911};this[_0x6eaa0(0x32c)][_0x6eaa0(0x362)](_0x1fb0d4);}};let vn=class extends _0x32162e{get[_0x14429d(0x2ef)](){const _0x3aa4e8=_0x14429d;return this[_0x3aa4e8(0x2dd)][_0x3aa4e8(0x2eb)]();}get[_0x14429d(0x40f)](){const _0x3243b6=_0x14429d;return this[_0x3243b6(0x1c9)][_0x3243b6(0x2eb)]();}constructor(_0x211958,_0x1327f3,_0x21219b,_0x1e57df,_0x2e92f9,_0x3130a8,_0x3f2e8d,_0x3f5e98,_0x5f036c){const _0x5aa36d=_0x14429d;super(),this[_0x5aa36d(0x369)]=_0x211958,this['_session']=_0x1327f3,this['_injector']=_0x21219b,this[_0x5aa36d(0x2bc)]=_0x1e57df,this[_0x5aa36d(0x41e)]=_0x2e92f9,this[_0x5aa36d(0x3fa)]=_0x3130a8,this['_transformService']=_0x3f2e8d,this[_0x5aa36d(0x3d9)]=_0x3f5e98,this[_0x5aa36d(0x236)]=_0x5f036c,G(this,_0x5aa36d(0x224),!0x1),G(this,_0x5aa36d(0x3b8),!0x1),G(this,_0x5aa36d(0x2dd),new _0x4a802e(new Map())),G(this,'cursorInfo$',this[_0x5aa36d(0x2dd)]['asObservable']()),G(this,_0x5aa36d(0x1c9),new _0x4a802e([])),G(this,_0x5aa36d(0x3ee),this[_0x5aa36d(0x1c9)]['pipe'](_0x4e32e2(0x12c))),G(this,'_updateLocalCursor',_0x43c2fb(_0x2f2ea6=>{const _0x5d31fb=_0x5aa36d;let _0x1278ec={'eventID':_0x228507[_0x5d31fb(0x270)],'data':{'unitID':this[_0x5d31fb(0x369)],'memberID':this[_0x5d31fb(0x227)][_0x5d31fb(0x291)](),'selection':hn(_0x2f2ea6)}};this[_0x5d31fb(0x227)][_0x5d31fb(0x1f8)](_0x1278ec,this['unitID']);},0x64));}[_0x14429d(0x381)](){const _0x597d24=_0x14429d;super[_0x597d24(0x381)](),this[_0x597d24(0x2dd)][_0x597d24(0x362)](new Map()),this[_0x597d24(0x2dd)][_0x597d24(0x24e)](),this[_0x597d24(0x1c9)]['next']([]),this[_0x597d24(0x1c9)][_0x597d24(0x24e)]();}[_0x14429d(0x271)](){const _0x2cc28c=_0x14429d;this['_init']||(this[_0x2cc28c(0x3b8)]=!0x0,this[_0x2cc28c(0x227)]['sessionStatus$'][_0x2cc28c(0x203)](_0x54edaf(this[_0x2cc28c(0x29b)]))[_0x2cc28c(0x21d)](_0x1d80a5=>{const _0x5f4636=_0x2cc28c;_0x1d80a5===_0x411373['ONLINE']?this[_0x5f4636(0x2f2)]():this[_0x5f4636(0x1dc)]();}),this[_0x2cc28c(0x227)][_0x2cc28c(0x272)]['pipe'](_0x54edaf(this[_0x2cc28c(0x29b)]))[_0x2cc28c(0x21d)](_0x1e8f4b=>{const _0x3093fc=_0x2cc28c;let _0x281f74=_0x1e8f4b[_0x3093fc(0x43d)];_0x281f74===_0x228507[_0x3093fc(0x270)]&&this[_0x3093fc(0x3d2)](_0x1e8f4b),_0x281f74===_0x228507['USERS_LEAVE']&&this['_onCursorDelete'](_0x1e8f4b);}),this[_0x2cc28c(0x406)](this[_0x2cc28c(0x236)][_0x2cc28c(0x326)](_0x15d46d=>{const _0x2e3294=_0x2cc28c;let _0x187be8=_0x15d46d[_0x2e3294(0x38c)];_0x187be8!=null&&this[_0x2e3294(0x224)]&&_0x15d46d['id']===_0x54f38f['id']&&_0x187be8[_0x2e3294(0x210)]===this[_0x2e3294(0x369)]&&_0x187be8[_0x2e3294(0x425)]===!0x1&&_0x187be8[_0x2e3294(0x34a)]['length']>0x0&&this['_updateLocalCursor'](_0x187be8[_0x2e3294(0x34a)]);})),this['_syncEditingCollabCursorService'][_0x2cc28c(0x308)][_0x2cc28c(0x203)](_0x54edaf(this[_0x2cc28c(0x29b)]))[_0x2cc28c(0x21d)](_0x1082af=>{const _0x27315d=_0x2cc28c;if((_0x1082af==null?void 0x0:_0x1082af[_0x27315d(0x369)])!==this[_0x27315d(0x369)])return;let _0x7a769d={'eventID':_0x228507[_0x27315d(0x270)],'data':_0x1082af};this[_0x27315d(0x3d2)](_0x7a769d);}),this[_0x2cc28c(0x406)](this[_0x2cc28c(0x236)]['onCommandExecuted'](_0x965abc=>{const _0x250a56=_0x2cc28c;if(_0x965abc[_0x250a56(0x38c)]==null)return;let _0x2efb4e=_0x965abc[_0x250a56(0x38c)];if(_0x965abc['id']!==_0x56c228['id']||_0x2efb4e[_0x250a56(0x210)]!==this['unitID'])return;let _0x132c63={'id':_0x250a56(0x3b6),'params':_0x2efb4e},_0x10b6f6=this['cursorInfo'];for(let [_0x2a012b,_0x577fb4]of _0x10b6f6){let _0x5cb2ca={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x250a56(0x369)],'actions':null,'textRanges':_0x577fb4[_0x250a56(0x34a)]}},_0x431eb9=this['_transformService'][_0x250a56(0x26d)](_0x132c63,_0x5cb2ca,!0x1);if(_0x51b014(_0x431eb9))throw _0x431eb9['error'];_0x10b6f6[_0x250a56(0x1fc)](_0x2a012b,{..._0x577fb4,'ranges':_0x431eb9[_0x250a56(0x33c)][_0x250a56(0x38c)]['textRanges']});}queueMicrotask(()=>{const _0x4c8842=_0x250a56;this[_0x4c8842(0x2dd)][_0x4c8842(0x362)](_0x10b6f6);});})));}['_onCursorUpdate'](_0x470068){const _0x9a0477=_0x14429d;var _0x14fe0c;let {memberID:_0x40fe87,selection:_0x57f91b}=_0x470068['data'],_0x1b683a=gn(_0x57f91b),_0x45a19d=((_0x14fe0c=this[_0x9a0477(0x41e)][_0x9a0477(0x303)](this['unitID'],_0x40fe87))==null?void 0x0:_0x14fe0c[_0x9a0477(0x27f)])??'Unknown\x20user',_0x4ce062={'color':this[_0x9a0477(0x2bc)][_0x9a0477(0x373)](_0x40fe87),'name':_0x45a19d,'ranges':_0x1b683a},_0x283710=this[_0x9a0477(0x2ef)];_0x283710[_0x9a0477(0x1fc)](_0x40fe87,_0x4ce062),this['_cursorInfo$'][_0x9a0477(0x362)](_0x283710);}['_onCursorDelete'](_0x3e3ced){const _0x440d3c=_0x14429d;let {memberID:_0x3e7781}=_0x3e3ced[_0x440d3c(0x1cc)],_0x5c7afa=this[_0x440d3c(0x2ef)];_0x5c7afa[_0x440d3c(0x2a0)](_0x3e7781),this['_cursorInfo$'][_0x440d3c(0x362)](_0x5c7afa);}[_0x14429d(0x2f2)](){const _0x85b1d=_0x14429d;var _0x38bad1;if(this[_0x85b1d(0x224)]=!0x0,((_0x38bad1=this[_0x85b1d(0x3d9)][_0x85b1d(0x254)]())==null?void 0x0:_0x38bad1['getUnitId']())!==this['unitID'])return;let _0x5bd1a0=this['_injector'][_0x85b1d(0x341)](_0x25ff25)[_0x85b1d(0x1d6)]();Array[_0x85b1d(0x2fa)](_0x5bd1a0)&&_0x5bd1a0[_0x85b1d(0x3a5)]>0x0&&this[_0x85b1d(0x359)](_0x5bd1a0);}['_toggleOffline'](){this['_online']=!0x1;}};vn=q([K(0x2,_0x439243(_0x2c4c1e)),K(0x3,_0x439243(mn)),K(0x4,_0x439243(_0x529951)),K(0x5,_0x439243(_n)),K(0x6,_0x3e0970),K(0x7,_0x4d77cc),K(0x8,_0xdaa582)],vn);const yn=()=>{let _0x1e9ba4=[],_0x4bb944=!0x1;return _0x2c5384=>{_0x1e9ba4['push'](_0x2c5384),_0x4bb944||(_0x4bb944=!0x0,setTimeout(()=>{const _0x5455b8=_0x3d03;_0x1e9ba4[_0x5455b8(0x333)](_0x1d7769=>_0x1d7769()),_0x1e9ba4=[],_0x4bb944=!0x1;}));};};let bn=class extends _0x32162e{get[_0x14429d(0x2ef)](){const _0x42cbfe=_0x14429d;return this[_0x42cbfe(0x2dd)][_0x42cbfe(0x2eb)]();}get[_0x14429d(0x40f)](){const _0x294aa7=_0x14429d;return this[_0x294aa7(0x1c9)][_0x294aa7(0x2eb)]();}constructor(_0x1561cc,_0x12b9fc,_0x5a9bda,_0x545472,_0x473c73,_0x438a6e,_0x23bcd7,_0xfd880a){const _0x44ad65=_0x14429d;super(),this[_0x44ad65(0x369)]=_0x1561cc,this[_0x44ad65(0x227)]=_0x12b9fc,this['_injector']=_0x5a9bda,this[_0x44ad65(0x2bc)]=_0x545472,this['_memberService']=_0x473c73,this[_0x44ad65(0x3d9)]=_0x438a6e,this['_commandService']=_0x23bcd7,this[_0x44ad65(0x3c5)]=_0xfd880a,G(this,_0x44ad65(0x224),!0x1),G(this,'_init',!0x1),G(this,_0x44ad65(0x2dd),new _0x4a802e(new Map())),G(this,_0x44ad65(0x1da),this[_0x44ad65(0x2dd)][_0x44ad65(0x1e6)]()),G(this,_0x44ad65(0x1c9),new _0x4a802e([])),G(this,'roomMembers$',this[_0x44ad65(0x1c9)][_0x44ad65(0x203)](_0x4e32e2(0x12c))),G(this,'_updateLocalCursor',_0x43c2fb((_0x262d8e,_0x51a171)=>{const _0x343385=_0x44ad65;let _0x39a16f={'eventID':_0x228507['UPDATE_CURSOR'],'data':{'unitID':this[_0x343385(0x369)],'memberID':this['_session'][_0x343385(0x291)](),'selection':_0x2e0d4e(_0x262d8e,_0x51a171[_0x343385(0x3ff)])}};this[_0x343385(0x227)][_0x343385(0x1f8)](_0x39a16f,this[_0x343385(0x369)]);},0x64));}[_0x14429d(0x381)](){const _0x5d8691=_0x14429d;super[_0x5d8691(0x381)](),this[_0x5d8691(0x2dd)][_0x5d8691(0x362)](new Map()),this[_0x5d8691(0x2dd)]['complete'](),this['_roomMembers$'][_0x5d8691(0x362)]([]),this[_0x5d8691(0x1c9)]['complete']();}[_0x14429d(0x271)](){const _0x2fa933=_0x14429d;this[_0x2fa933(0x3b8)]||(this['_init']=!0x0,this[_0x2fa933(0x227)][_0x2fa933(0x428)][_0x2fa933(0x203)](_0x54edaf(this[_0x2fa933(0x29b)]))[_0x2fa933(0x21d)](_0x5550fe=>{const _0x361258=_0x2fa933;_0x5550fe===_0x411373[_0x361258(0x3cb)]?this[_0x361258(0x2f2)]():this['_toggleOffline']();}),this[_0x2fa933(0x227)][_0x2fa933(0x272)][_0x2fa933(0x203)](_0x54edaf(this[_0x2fa933(0x29b)]))['subscribe'](_0x5142f2=>{const _0x311779=_0x2fa933;let _0x53fa50=_0x5142f2[_0x311779(0x43d)];_0x53fa50===_0x228507[_0x311779(0x270)]&&this[_0x311779(0x3d2)](_0x5142f2),_0x53fa50===_0x228507['USERS_LEAVE']&&this[_0x311779(0x355)](_0x5142f2);}),this[_0x2fa933(0x273)](),this['disposeWithMe'](this[_0x2fa933(0x236)]['onCommandExecuted'](_0x3c05c6=>{const _0x1a5bf0=_0x2fa933;if(this[_0x1a5bf0(0x224)]&&_0x3c05c6['id']===_0x3ab318['id']&&_0x3c05c6[_0x1a5bf0(0x38c)][_0x1a5bf0(0x210)]===this[_0x1a5bf0(0x369)]){let _0x194c85=_0x3c05c6[_0x1a5bf0(0x38c)];this[_0x1a5bf0(0x359)](_0x194c85[_0x1a5bf0(0x36d)],_0x194c85[_0x1a5bf0(0x337)][0x0]);}})));}[_0x14429d(0x3d2)](_0x5b4692){const _0x460d9e=_0x14429d;var _0x25b0e4;let {memberID:_0x344fed,selection:_0x6da859}=_0x5b4692['data'],{sheetName:_0x3b3d38,range:_0x437fac}=_0x2f5144(_0x6da859),_0x492840={'name':((_0x25b0e4=this[_0x460d9e(0x41e)][_0x460d9e(0x303)](this[_0x460d9e(0x369)],_0x344fed))==null?void 0x0:_0x25b0e4[_0x460d9e(0x27f)])??_0x460d9e(0x364),'range':this['_getMergeRange'](_0x3b3d38,_0x437fac),'sheetID':_0x3b3d38,'color':this[_0x460d9e(0x2bc)]['assignAColorForMemberID'](_0x344fed),'selection':_0x6da859},_0x412322=this[_0x460d9e(0x2ef)];_0x412322[_0x460d9e(0x1fc)](_0x344fed,_0x492840),this[_0x460d9e(0x2dd)][_0x460d9e(0x362)](_0x412322);}['_onCursorDelete'](_0x37161e){const _0x208149=_0x14429d;let {memberID:_0x2d1d8d}=_0x37161e[_0x208149(0x1cc)],_0x50e920=this[_0x208149(0x2ef)];_0x50e920[_0x208149(0x2a0)](_0x2d1d8d),this[_0x208149(0x2dd)][_0x208149(0x362)](_0x50e920);}[_0x14429d(0x315)](_0x4711d6,_0x4ae6de){const _0x54efb5=_0x14429d;var _0x4ce92e;let _0x353ca9=(_0x4ce92e=this[_0x54efb5(0x3d9)][_0x54efb5(0x1ed)](this[_0x54efb5(0x369)],_0x4d263b[_0x54efb5(0x1d9)]))==null||(_0x4ce92e=_0x4ce92e['getSheetBySheetId'](_0x4711d6))==null?void 0x0:_0x4ce92e[_0x54efb5(0x374)]();return(_0x353ca9==null?void 0x0:_0x353ca9['find'](_0x4c47cb=>_0x2cdee5[_0x54efb5(0x43e)](_0x4c47cb,_0x4ae6de)))||_0x4ae6de;}['_onRefRangeChange'](){const _0x315e04=_0x14429d;let _0x2d46cc=new _0x15436c(),_0x484629=yn(),_0x266af7=()=>{const _0x2153bf=_0x3d03;_0x2d46cc[_0x2153bf(0x381)]();let _0x4d1bf2=(_0x14aec6,_0x36a993,_0x27ea71,_0x3c2b9f)=>{const _0x29204f=_0x2153bf;let _0x5bc7db=[];switch(_0x14aec6['id']){case _0x5b9a17['DeleteRangeMoveLeftCommandId']:_0x5bc7db=_0x545bc5(_0x14aec6,_0x3c2b9f);break;case _0x5b9a17['DeleteRangeMoveUpCommandId']:_0x5bc7db=_0x16e771(_0x14aec6,_0x3c2b9f);break;case _0x5b9a17[_0x29204f(0x391)]:_0x5bc7db=_0xc026ab(_0x14aec6,_0x3c2b9f);break;case _0x5b9a17[_0x29204f(0x1f3)]:_0x5bc7db=_0x236619(_0x14aec6,_0x3c2b9f);break;case _0x5b9a17[_0x29204f(0x2d4)]:_0x5bc7db=_0x13224b(_0x14aec6,_0x3c2b9f);break;case _0x5b9a17[_0x29204f(0x407)]:_0x5bc7db=_0x41c0ed(_0x14aec6,_0x3c2b9f);break;case _0x5b9a17['MoveRangeCommandId']:_0x5bc7db=_0xbfefff(_0x14aec6,_0x3c2b9f);break;case _0x5b9a17[_0x29204f(0x307)]:_0x5bc7db=_0xab56f7(_0x14aec6,_0x3c2b9f);break;case _0x5b9a17[_0x29204f(0x2a3)]:_0x5bc7db=_0xc812f3(_0x14aec6,_0x3c2b9f);}let _0x5e87e3=_0x4964ac(_0x5bc7db,_0x3c2b9f),_0x406d0a=this[_0x29204f(0x2ef)][_0x29204f(0x341)](_0x36a993);if(_0x406d0a&&_0x5e87e3){let _0x38cc78={..._0x406d0a,'range':_0x5e87e3};this['cursorInfo'][_0x29204f(0x1fc)](_0x36a993,_0x38cc78),_0x484629(()=>{const _0x212488=_0x29204f;let _0x23b7c0=this['_refRangeService'][_0x212488(0x3c1)](_0x5e87e3,_0x617dff=>(_0x23b7c0['dispose'](),_0x4d1bf2(_0x617dff,_0x36a993,_0x27ea71,_0x5e87e3)));_0x2d46cc['add'](_0x23b7c0);});}return{'redos':[],'undos':[]};};this[_0x2153bf(0x2ef)]['forEach']((_0x1d1fac,_0x55924b)=>{const _0x357eff=_0x2153bf;let {range:_0x3fe1b8,sheetID:_0x55ed99}=_0x1d1fac,_0x20a980=this[_0x357eff(0x3c5)][_0x357eff(0x3c1)](_0x3fe1b8,_0x30225d=>(_0x20a980[_0x357eff(0x381)](),_0x4d1bf2(_0x30225d,_0x55924b,_0x55ed99,_0x3fe1b8)));_0x2d46cc[_0x357eff(0x264)](_0x20a980);});};this[_0x315e04(0x406)](_0x1c7e61(this['_cursorInfo$'][_0x315e04(0x21d)](()=>{_0x266af7();})));}[_0x14429d(0x2f2)](){const _0xc3ff40=_0x14429d;var _0xb15091,_0x273580;if(this[_0xc3ff40(0x224)]=!0x0,((_0xb15091=this[_0xc3ff40(0x3d9)][_0xc3ff40(0x254)]())==null?void 0x0:_0xb15091['getUnitId']())!==this[_0xc3ff40(0x369)])return;let _0x5ef7d7=(_0x273580=this[_0xc3ff40(0x34e)]['get'](_0x2dca29)[_0xc3ff40(0x298)]())==null?void 0x0:_0x273580[0x0],_0x397b34=this[_0xc3ff40(0x3d9)][_0xc3ff40(0x32f)](_0x4d263b[_0xc3ff40(0x1d9)])[_0xc3ff40(0x229)]();_0x5ef7d7&&_0x397b34&&this['_updateLocalCursor'](_0x397b34['getSheetId'](),_0x5ef7d7);}[_0x14429d(0x1dc)](){this['_online']=!0x1;}};bn=q([K(0x2,_0x439243(_0x2c4c1e)),K(0x3,_0x439243(mn)),K(0x4,_0x439243(_0x529951)),K(0x5,_0x4d77cc),K(0x6,_0xdaa582),K(0x7,_0x439243(_0xb0be48))],bn);let Z=class extends _0x32162e{constructor(_0x413a05,_0x44665d,_0x3e1c70){const _0x37d0f7=_0x14429d;super(),this[_0x37d0f7(0x3d9)]=_0x413a05,this[_0x37d0f7(0x34e)]=_0x44665d,this['_collabSessionService']=_0x3e1c70,G(this,'_entities',new Map()),G(this,_0x37d0f7(0x1f1),new _0x2894b9()),this[_0x37d0f7(0x3b8)]();}[_0x14429d(0x381)](){const _0xf79db1=_0x14429d;super['dispose'](),this[_0xf79db1(0x1f1)][_0xf79db1(0x24e)](),this[_0xf79db1(0x1f9)][_0xf79db1(0x333)](_0x327f09=>_0x327f09[_0xf79db1(0x381)]());}[_0x14429d(0x335)](_0x282aef){const _0x54d975=_0x14429d;let _0x3a5af9=this[_0x54d975(0x1f9)][_0x54d975(0x341)](_0x282aef);return _0x3a5af9?_0x3a5af9[_0x54d975(0x1da)]:this[_0x54d975(0x1f1)][_0x54d975(0x203)](_0x49082d(_0x5cf358=>_0x5cf358[_0x54d975(0x369)]===_0x282aef),_0x76e02a(_0x2c493c=>_0x2c493c[_0x54d975(0x1da)]));}[_0x14429d(0x3b8)](){const _0x5ad89d=_0x14429d;this[_0x5ad89d(0x3d9)]['getTypeOfUnitAdded$'](_0x4d263b['UNIVER_SHEET'])[_0x5ad89d(0x203)](_0x54edaf(this[_0x5ad89d(0x29b)]))[_0x5ad89d(0x21d)](async _0x9f5696=>{const _0x2bdbf3=_0x5ad89d;let _0x245a48=_0x9f5696['unit'][_0x2bdbf3(0x252)](),_0x4ca243=await this[_0x2bdbf3(0x2ed)](_0x245a48);this[_0x2bdbf3(0x1f1)][_0x2bdbf3(0x362)](_0x4ca243),this['_entities'][_0x2bdbf3(0x1fc)](_0x245a48,_0x4ca243);}),this['_univerInstanceService'][_0x5ad89d(0x21a)](_0x4d263b[_0x5ad89d(0x1e8)])[_0x5ad89d(0x203)](_0x54edaf(this[_0x5ad89d(0x29b)]))[_0x5ad89d(0x203)](_0x49082d(_0xd7feb1=>!_0xd7feb1[_0x5ad89d(0x262)][_0x5ad89d(0x252)]()[_0x5ad89d(0x3ba)]('__')))[_0x5ad89d(0x21d)](async _0x57d501=>{const _0x56277a=_0x5ad89d;let {unit:_0x3f99cd}=_0x57d501,_0x5af36e=_0x3f99cd['getUnitId'](),_0x461747=await this[_0x56277a(0x395)](_0x5af36e);this[_0x56277a(0x1f1)][_0x56277a(0x362)](_0x461747),this[_0x56277a(0x1f9)][_0x56277a(0x1fc)](_0x5af36e,_0x461747);}),_0x17436b(this['_univerInstanceService'][_0x5ad89d(0x3c9)](_0x4d263b[_0x5ad89d(0x1e8)]),this[_0x5ad89d(0x3d9)]['getTypeOfUnitDisposed$'](_0x4d263b[_0x5ad89d(0x1d9)]))[_0x5ad89d(0x203)](_0x54edaf(this[_0x5ad89d(0x29b)]))[_0x5ad89d(0x21d)](_0x3f4cb4=>{const _0x1fea29=_0x5ad89d;let _0x193a37=_0x3f4cb4[_0x1fea29(0x252)](),_0x2ee410=this[_0x1fea29(0x1f9)][_0x1fea29(0x341)](_0x193a37);_0x2ee410&&(_0x2ee410[_0x1fea29(0x381)](),this[_0x1fea29(0x1f9)][_0x1fea29(0x2a0)](_0x193a37));});}async[_0x14429d(0x2ed)](_0x414f67){const _0x2fc756=_0x14429d;let _0x29beee=await this[_0x2fc756(0x237)][_0x2fc756(0x3eb)](_0x414f67),_0x1d29c7=this[_0x2fc756(0x34e)][_0x2fc756(0x3dc)](bn,_0x414f67,_0x29beee);return _0x1d29c7[_0x2fc756(0x271)](),_0x1d29c7;}async[_0x14429d(0x395)](_0x2537d0){const _0x432e96=_0x14429d;let _0x25e3d8=await this[_0x432e96(0x237)][_0x432e96(0x3eb)](_0x2537d0),_0xf315c6=this[_0x432e96(0x34e)][_0x432e96(0x3dc)](vn,_0x2537d0,_0x25e3d8);return _0xf315c6[_0x432e96(0x271)](),_0xf315c6;}};Z=q([K(0x0,_0x4d77cc),K(0x1,_0x439243(_0x2c4c1e)),K(0x2,_0x439243(_0x2b2a41))],Z);function _0x3d03(_0x27ce4,_0x3260c6){_0x27ce4=_0x27ce4-0x1c8;const _0x2133e8=_0x2133();let _0x3d0383=_0x2133e8[_0x27ce4];return _0x3d0383;}function xn(_0x14f969,_0x1daeeb){const _0x49e6b3=_0x14429d;_0x14f969['save'](),_0x14f969[_0x49e6b3(0x396)]=_0x49e6b3(0x3f7);let _0x41c0c=_0x14f969[_0x49e6b3(0x2ad)](_0x1daeeb)['width'];return _0x14f969[_0x49e6b3(0x1db)](),Math['min'](_0x41c0c+0x8,0xc8);}function Sn(_0xe453b7,_0x2ab393){const _0x5b5bda=_0x14429d;let {radius:_0x4d61fd,width:_0x2494ff,height:_0x5ec977}=_0x2ab393;_0x4d61fd??=0x0,_0x2494ff??=0x1e,_0x5ec977??=0x1e;let _0x45c484=0x0,_0x10880b=0x0,_0x47f483=0x0;_0x45c484=_0x10880b=_0x47f483=Math[_0x5b5bda(0x2d6)](_0x4d61fd,_0x2494ff/0x2,_0x5ec977/0x2),_0xe453b7[_0x5b5bda(0x31a)](),_0xe453b7[_0x5b5bda(0x38b)](_0x45c484,0x0),_0xe453b7[_0x5b5bda(0x2be)](_0x2494ff-_0x10880b,0x0),_0xe453b7[_0x5b5bda(0x2af)](_0x2494ff-_0x10880b,_0x10880b,_0x10880b,Math['PI']*0x3/0x2,0x0,!0x1),_0xe453b7['lineTo'](_0x2494ff,_0x5ec977-_0x47f483),_0xe453b7[_0x5b5bda(0x2af)](_0x2494ff-_0x47f483,_0x5ec977-_0x47f483,_0x47f483,0x0,Math['PI']/0x2,!0x1),_0xe453b7[_0x5b5bda(0x2be)](0x0,_0x5ec977),_0xe453b7['lineTo'](0x0,_0x45c484),_0xe453b7[_0x5b5bda(0x2af)](_0x45c484,_0x45c484,_0x45c484,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xe453b7[_0x5b5bda(0x2e2)](),_0x2ab393[_0x5b5bda(0x334)]&&(_0xe453b7['save'](),_0xe453b7['fillStyle']=_0x2ab393['fill'],_0x2ab393[_0x5b5bda(0x2f1)]===_0x5b5bda(0x201)?_0xe453b7[_0x5b5bda(0x334)](_0x5b5bda(0x201)):_0xe453b7['fill'](),_0xe453b7[_0x5b5bda(0x1db)]());}var Cn=class e extends _0xcdd8d1{constructor(_0x2641a2,_0xb775fd){const _0x233653=_0x14429d;super(_0x2641a2,_0xb775fd),G(this,_0x233653(0x302),void 0x0),G(this,_0x233653(0x3f9),void 0x0),this[_0x233653(0x302)]=_0xb775fd==null?void 0x0:_0xb775fd['color'],this[_0x233653(0x3f9)]=_0xb775fd==null?void 0x0:_0xb775fd[_0x233653(0x3f9)];}static[_0x14429d(0x3d4)](_0x40422a,_0x4f5bc5){const _0x59e2ee=_0x14429d;let {text:_0x55226f,color:_0x5afdf6}=_0x4f5bc5;_0x40422a[_0x59e2ee(0x352)](),_0x40422a[_0x59e2ee(0x396)]=_0x59e2ee(0x2c8);let _0x3c417e=_0x40422a['measureText'](_0x55226f)[_0x59e2ee(0x3ef)];if(Sn(_0x40422a,{'height':0x14,'radius':0x4,'width':xn(_0x40422a,_0x55226f),'fill':_0x5afdf6,'evented':!0x1}),_0x40422a[_0x59e2ee(0x3e3)]=_0x59e2ee(0x2db),_0x3c417e>0xc0){let _0x442709='',_0xf74572=0x0;for(let _0x3310df of _0x55226f){let _0x59dd97=_0x40422a[_0x59e2ee(0x2ad)](_0x3310df)[_0x59e2ee(0x3ef)];if(_0xf74572+_0x59dd97<=0xc0-_0x40422a[_0x59e2ee(0x2ad)](_0x59e2ee(0x2d1))[_0x59e2ee(0x3ef)])_0x442709+=_0x3310df,_0xf74572+=_0x59dd97;else{_0x442709+=_0x59e2ee(0x2d1);break;}}_0x40422a[_0x59e2ee(0x20a)](_0x442709,0x4,0xf);}else _0x40422a[_0x59e2ee(0x20a)](_0x55226f,0x4,0xf);_0x40422a['restore']();}[_0x14429d(0x29d)](_0x4ece4a){const _0x35750f=_0x14429d;e[_0x35750f(0x3d4)](_0x4ece4a,this);}};const wn=_0x14429d(0x403);var Tn=class{constructor(_0x352a0e,_0xd6524c,_0x52c2f6,_0x21f9cd){const _0x24b09c=_0x14429d;this[_0x24b09c(0x404)]=_0x352a0e,this[_0x24b09c(0x370)]=_0xd6524c,this[_0x24b09c(0x40d)]=_0x52c2f6,this[_0x24b09c(0x24b)]=_0x21f9cd,G(this,_0x24b09c(0x431),[]),G(this,_0x24b09c(0x37e),null),G(this,_0x24b09c(0x316),null),G(this,_0x24b09c(0x3ab),null),G(this,_0x24b09c(0x3c8),null),G(this,'_eventUnsubscribe',null),this['_render']();}set[_0x14429d(0x2d7)](_0x251831){const _0x526127=_0x14429d;_0x251831?(this['_anchorDot']&&this[_0x526127(0x3ab)][_0x526127(0x3be)](),this['_textBubble']&&this[_0x526127(0x316)][_0x526127(0x23e)]()):(this[_0x526127(0x3ab)]&&this[_0x526127(0x3ab)]['show'](),this['_textBubble']&&this['_textBubble']['hide']());}[_0x14429d(0x381)](){const _0x2101a4=_0x14429d;for(let _0x371925 of this[_0x2101a4(0x431)])_0x371925[_0x2101a4(0x381)]();this['_textBubble']&&this[_0x2101a4(0x316)]['dispose'](),this[_0x2101a4(0x3ab)]&&this['_anchorDot'][_0x2101a4(0x381)](),this[_0x2101a4(0x37e)]&&this['_anchor'][_0x2101a4(0x381)](),this[_0x2101a4(0x42b)]&&this['_eventUnsubscribe']();}[_0x14429d(0x20f)](){const _0x565445=_0x14429d;let {_docSkeleton:_0x15fa05,_document:_0x13b99f}=this,{color:_0x2cfbb0,name:_0x3b565a,ranges:_0x20c2ab}=this['_cursor'],_0xdfd1fa=_0x13b99f['getOffsetConfig'](),{docsLeft:_0x487a91,docsTop:_0x377d63}=_0xdfd1fa,_0x31f272=new _0x3e63cb(_0xdfd1fa,_0x15fa05);for(let {startOffset:_0x11be7a,endOffset:_0x5de3a1,rangeType:_0x188a5f,segmentId:_0x8affbb,segmentPage:_0x690886,collapsed:_0x36a37f,isActive:_0x42a9de}of _0x20c2ab){let _0xd8aafb=_0x15fa05[_0x565445(0x1d0)](_0x11be7a,!0x0,_0x8affbb,_0x690886),_0x412030=_0x15fa05['findNodePositionByCharIndex'](_0x5de3a1,!0x0,_0x8affbb,_0x690886);_0x412030??=_0x15fa05[_0x565445(0x1d0)](_0x5de3a1-0x1,!0x1,_0x8affbb,_0x690886);let _0x204009=En(_0xd8aafb,_0x412030);if(_0x42a9de&&_0x204009[_0x565445(0x3db)]){let {contentBoxPointGroup:_0x58a7a8}=_0x31f272[_0x565445(0x22a)](_0x412030,_0x412030);if(_0x58a7a8[_0x565445(0x3a5)]===0x0)continue;this[_0x565445(0x3a0)](_0x2cfbb0,_0x58a7a8,_0x487a91,_0x377d63,_0x3b565a),this[_0x565445(0x42b)]=this[_0x565445(0x23c)]();}if(_0xd8aafb&&_0x412030){if(_0x188a5f===_0xfd1486['RECT']){let {pointGroup:_0x470f2f}=new _0x40d888(_0xdfd1fa,_0x15fa05)[_0x565445(0x22a)](_0xd8aafb,_0x412030)??{};if(_0x470f2f==null||_0x470f2f['length']===0x0)continue;this['_drawRectRange'](_0x2cfbb0,_0x470f2f,_0x487a91,_0x377d63);}else{if(!_0x36a37f&&_0x204009[_0x565445(0x1ff)]){let {borderBoxPointGroup:_0x16feed}=_0x31f272[_0x565445(0x22a)](_0xd8aafb,_0x412030);if(_0x16feed[_0x565445(0x3a5)]===0x0)continue;this[_0x565445(0x1d1)](_0x2cfbb0,_0x16feed,_0x487a91,_0x377d63);}}}}}[_0x14429d(0x3a0)](_0x49b85b,_0x34941c,_0x27a881,_0x5e4ffa,_0x53781e){const _0x5134d9=_0x14429d;let {left:_0x70a8dc,top:_0xef8d3f,height:_0x2c22fa}=this[_0x5134d9(0x1f4)](_0x34941c),_0x49b0dc=1.5/this[_0x5134d9(0x31f)](),_0x554daf=new _0x58a20d(wn+_0x5b5013(0x6),{'left':_0x70a8dc+_0x27a881-_0x49b0dc,'top':_0xef8d3f+_0x5e4ffa,'height':_0x2c22fa,'width':1.5,'fill':_0x49b85b||_0x457359(_0x330629[_0x5134d9(0x1f5)],0x0),'strokeWidth':_0x49b0dc,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this[_0x5134d9(0x37e)]=_0x554daf,this['_scene'][_0x5134d9(0x204)](_0x554daf,_0x2e23a0);let _0x125d60=new _0x58a20d(wn+_0x5b5013(0x6),{'left':_0x70a8dc+_0x27a881-_0x49b0dc,'top':_0xef8d3f+_0x5e4ffa-0x2,'height':0x4,'width':0x4,'fill':_0x49b85b||_0x457359(_0x330629[_0x5134d9(0x1f5)],0x0),'strokeWidth':0x0,'stroke':_0x49b85b||_0x457359(_0x330629[_0x5134d9(0x1f5)],0x0),'evented':!0x1});this[_0x5134d9(0x3ab)]=_0x125d60,this[_0x5134d9(0x370)][_0x5134d9(0x204)](_0x125d60,_0x2e23a0);let _0x414fdb=new Cn(wn+_0x5b5013(0x6),{'left':_0x70a8dc+_0x27a881-_0x49b0dc,'top':_0xef8d3f+_0x5e4ffa-0x14,'text':_0x53781e,'color':_0x49b85b});this[_0x5134d9(0x316)]=_0x414fdb,this['_scene']['addObject'](_0x414fdb,_0x2e23a0),this[_0x5134d9(0x2d7)]=!0x1;}[_0x14429d(0x23c)](){const _0x5d7be2=_0x14429d;let _0x502cc6=this[_0x5d7be2(0x37e)]['onPointerEnter$'][_0x5d7be2(0x207)](()=>{const _0x5555d6=_0x5d7be2;this[_0x5555d6(0x2d7)]=!0x0;}),_0x18dfe4=this['_anchor']['onPointerLeave$'][_0x5d7be2(0x207)](()=>{const _0x3bd797=_0x5d7be2;this[_0x3bd797(0x3c8)]&&clearTimeout(this[_0x3bd797(0x3c8)]),this[_0x3bd797(0x3c8)]=setTimeout(()=>{const _0x48edbf=_0x3bd797;this[_0x48edbf(0x2d7)]=!0x1;},0x7d0);});return()=>{const _0x1d3e92=_0x5d7be2;_0x502cc6['unsubscribe'](),_0x18dfe4[_0x1d3e92(0x329)]();};}[_0x14429d(0x1d1)](_0x24b36b,_0x128e4e,_0x40cd62,_0x5b3dfe){const _0x32048e=_0x14429d;let _0x32e004=0.2,_0x5f2624=new _0x22b6b1(_0x24b36b)[_0x32048e(0x1fd)](_0x32e004)[_0x32048e(0x28e)](),_0x3f61fa=new _0x24bbe3(_0x32048e(0x37c)+_0x5b5013(0x6),{'pointsGroup':_0x128e4e,'fill':_0x5f2624||_0x457359(_0x330629[_0x32048e(0x1f5)],_0x32e004),'left':_0x40cd62,'top':_0x5b3dfe,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x32048e(0x305)](_0x3f61fa),this[_0x32048e(0x370)][_0x32048e(0x204)](_0x3f61fa,_0x2e23a0);}[_0x14429d(0x310)](_0x2fddfb,_0xb06d94,_0x523026,_0x1c9b39){const _0x2a352f=_0x14429d;let _0x5b63aa=0.2,_0x5d8a0c=new _0x22b6b1(_0x2fddfb)['setAlpha'](_0x5b63aa)[_0x2a352f(0x28e)](),_0x4c4fa6=new _0x24bbe3('collab-rect-range-'+_0x5b5013(0x6),{'pointsGroup':_0xb06d94,'fill':_0x5d8a0c||_0x457359(_0x330629['black'],_0x5b63aa),'left':_0x523026,'top':_0x1c9b39,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2a352f(0x431)][_0x2a352f(0x305)](_0x4c4fa6),this[_0x2a352f(0x370)][_0x2a352f(0x204)](_0x4c4fa6,_0x2e23a0);}[_0x14429d(0x1f4)](_0x5e195a){let _0x21d69a=_0x5e195a[0x0],_0x38f4bb=_0x21d69a[0x0],_0xdbcc49=_0x21d69a[0x2],{x:_0xd3d298,y:_0xd2cb30}=_0x38f4bb,{x:_0x5acc65,y:_0xdf765a}=_0xdbcc49;return{'left':_0xd3d298,'top':_0xd2cb30,'width':_0x5acc65-_0xd3d298,'height':_0xdf765a-_0xd2cb30};}['_getScale'](){const _0x1f5207=_0x14429d;let {scaleX:_0xc02cd8,scaleY:_0x35301b}=this[_0x1f5207(0x370)][_0x1f5207(0x1df)]();return Math[_0x1f5207(0x432)](_0xc02cd8,_0x35301b);}};function En(_0x2355a1,_0x170c5e){const _0x16ca82=_0x14429d;if(!_0x170c5e)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x2355a1||_0x2355a1[_0x16ca82(0x413)]!==_0x170c5e['pageType']||(_0x2355a1['pageType']===_0x19d442[_0x16ca82(0x2a9)]||_0x2355a1['pageType']===_0x19d442['FOOTER'])&&_0x2355a1[_0x16ca82(0x27a)]!==_0x170c5e[_0x16ca82(0x27a)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x47be13=_0x131357(_0x2355a1),_0x23b21a=_0x131357(_0x170c5e);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x47be13==null||_0x23b21a==null?_0x47be13==null&&_0x23b21a==null:_0x47be13[_0x16ca82(0x22d)]===_0x23b21a[_0x16ca82(0x22d)]&&_0x47be13[_0x16ca82(0x2b4)]===_0x23b21a[_0x16ca82(0x2b4)]&&_0x47be13[_0x16ca82(0x1e7)]===_0x23b21a[_0x16ca82(0x1e7)]};}let Dn=class extends _0x32162e{constructor(_0x5a0902,_0x4ca4e7,_0x3a651c,_0x2652f8,_0x33bbaf){const _0x5435df=_0x14429d;super(),this[_0x5435df(0x30c)]=_0x5a0902,this[_0x5435df(0x422)]=_0x4ca4e7,this[_0x5435df(0x3ad)]=_0x3a651c,this[_0x5435df(0x236)]=_0x2652f8,this['_themeService']=_0x33bbaf,G(this,_0x5435df(0x3ca),[]),G(this,_0x5435df(0x2c1),[]),this[_0x5435df(0x3b8)]();}[_0x14429d(0x3b8)](){const _0x249207=_0x14429d;let _0x1d06d8=this[_0x249207(0x30c)][_0x249207(0x210)],_0x35c416=this['_docSkeletonManagerService'];this[_0x249207(0x406)](_0x4f55e7([this['_collabCursorController'][_0x249207(0x335)](_0x1d06d8),this[_0x249207(0x1f6)][_0x249207(0x253)]])['pipe'](_0x37d85c(([_0x1341e2,_0xd20b7f])=>({'skeleton':_0x35c416[_0x249207(0x319)](),'cursors':[..._0x1341e2[_0x249207(0x3d1)]()][_0x249207(0x3e5)](_0x56b124=>({..._0x56b124,'color':this[_0x249207(0x1f6)][_0x249207(0x393)](_0x56b124[_0x249207(0x302)])}))})))['subscribe'](_0x5074e5=>{const _0x4d3224=_0x249207;if(this[_0x4d3224(0x3cd)](),_0x5074e5){let {skeleton:_0x3fee60,cursors:_0x1a5920}=_0x5074e5;this[_0x4d3224(0x2f4)](_0x3fee60,_0x1a5920);}})),this[_0x249207(0x2b2)](),this[_0x249207(0x354)]();}[_0x14429d(0x2f4)](_0x25c5d7,_0x1afdbb){const _0x29e66c=_0x14429d;let {scene:_0x200912,mainComponent:_0x125f86}=this[_0x29e66c(0x30c)],_0x48ad1f=_0x1afdbb[_0x29e66c(0x249)](_0x256b18=>new Tn(_0x256b18,_0x200912,_0x25c5d7,_0x125f86));this[_0x29e66c(0x3ca)]=_0x48ad1f,this[_0x29e66c(0x2c1)]=_0x1afdbb;}[_0x14429d(0x349)](){const _0x3ef9fa=_0x14429d;this[_0x3ef9fa(0x3cd)]();let {scene:_0x21fae8,mainComponent:_0x12ee2e}=this[_0x3ef9fa(0x30c)],_0x3cae51=this[_0x3ef9fa(0x422)]['getSkeleton'](),_0x246623=this['_cursors']['map'](_0x139b0d=>new Tn(_0x139b0d,_0x21fae8,_0x3cae51,_0x12ee2e));this['_cursorShapes']=_0x246623;}[_0x14429d(0x3cd)](){const _0x73d81d=_0x14429d;this[_0x73d81d(0x3ca)][_0x73d81d(0x333)](_0x59e4bc=>_0x59e4bc[_0x73d81d(0x381)]()),this[_0x73d81d(0x3ca)]=[];}[_0x14429d(0x354)](){const _0x37882c=_0x14429d;let _0x3fcc26=[_0x4c78d2['id']];this['disposeWithMe'](this[_0x37882c(0x236)][_0x37882c(0x326)](_0xd63ebd=>{const _0x1de205=_0x37882c;_0x3fcc26['includes'](_0xd63ebd['id'])&&_0xd63ebd[_0x1de205(0x38c)]['unitId']===this[_0x1de205(0x30c)][_0x1de205(0x210)]&&this[_0x1de205(0x349)]();}));}[_0x14429d(0x2b2)](){const _0x4bbe2a=_0x14429d;this[_0x4bbe2a(0x406)](_0x3b1a74(this[_0x4bbe2a(0x30c)][_0x4bbe2a(0x293)]['onTransformChange$'])[_0x4bbe2a(0x203)](_0x225bc6(_0x4540a0=>_0x4540a0[_0x4bbe2a(0x3e6)]===_0x435aa5[_0x4bbe2a(0x243)]),_0x27ed7f(0x10))[_0x4bbe2a(0x21d)](()=>{const _0x2187db=_0x4bbe2a;this[_0x2187db(0x349)]();}));}};Dn=q([K(0x1,_0x439243(_0x101420)),K(0x2,_0x439243(Z)),K(0x3,_0xdaa582),K(0x4,_0x439243(_0xa61525))],Dn);var On=class extends _0xcdd8d1{constructor(_0x3ec857,_0x17094f){const _0x5c3053=_0x14429d;super(_0x3ec857,_0x17094f),G(this,_0x5c3053(0x306),void 0x0),G(this,_0x5c3053(0x3de),!0x1),G(this,_0x5c3053(0x28f),void 0x0),G(this,'_name',''),G(this,_0x5c3053(0x2ab),_0x5c3053(0x379)),G(this,_0x5c3053(0x2e5),void 0x0),G(this,_0x5c3053(0x1d8),void 0x0),G(this,'_highlight',void 0x0),G(this,_0x5c3053(0x34d),0x4),G(this,'_blinkTimer',void 0x0),G(this,_0x5c3053(0x3e8),void 0x0),G(this,'_isBlinkVisible',!0x0),G(this,_0x5c3053(0x3d6),0x0),G(this,_0x5c3053(0x325),_0x5c3053(0x214)),_0x17094f&&(this[_0x5c3053(0x26b)](_0x17094f),_0x17094f[_0x5c3053(0x411)]&&(_0x17094f['highlightSecond']??this[_0x5c3053(0x34d)])&&this[_0x5c3053(0x2a1)](_0x17094f[_0x5c3053(0x24c)]??this['_highlightSecond'])),this[_0x5c3053(0x25d)][_0x5c3053(0x207)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x5c3053(0x430)][_0x5c3053(0x207)](()=>this[_0x5c3053(0x26b)]({'hovered':!0x1}));}[_0x14429d(0x3c6)](_0x9be35b){const _0x538e60=_0x14429d;this[_0x538e60(0x3d6)]=_0x9be35b;}[_0x14429d(0x26b)](_0x3720c2){const _0x15f67e=_0x14429d;this[_0x15f67e(0x306)]=_0x3720c2[_0x15f67e(0x302)]??this[_0x15f67e(0x306)],this['_hovered']=_0x3720c2[_0x15f67e(0x409)]??this[_0x15f67e(0x3de)],this[_0x15f67e(0x28f)]=_0x3720c2[_0x15f67e(0x3ff)]??this[_0x15f67e(0x28f)],this[_0x15f67e(0x40a)]=_0x3720c2[_0x15f67e(0x27f)]??this[_0x15f67e(0x40a)],this['_labelPosition']=_0x3720c2['labelPosition']??this[_0x15f67e(0x2ab)],this[_0x15f67e(0x2e5)]=_0x3720c2[_0x15f67e(0x218)]??this[_0x15f67e(0x2e5)],this['_showText']=_0x3720c2[_0x15f67e(0x24d)]??this['_showText'],this[_0x15f67e(0x325)]=_0x3720c2[_0x15f67e(0x3da)]??this['_labelHorizontalPosition'],_0x3720c2['highlightSecond']!==void 0x0&&(this['_highlightSecond']=_0x3720c2[_0x15f67e(0x24c)]),_0x3720c2[_0x15f67e(0x411)]!==void 0x0&&(this[_0x15f67e(0x31e)]=_0x3720c2['highlight']),_0x3720c2['offsetY']!==void 0x0&&(this[_0x15f67e(0x3d6)]=_0x3720c2[_0x15f67e(0x348)]),this[_0x15f67e(0x2e7)]({'width':_0x3720c2['width'],'height':_0x3720c2[_0x15f67e(0x3fc)]});}['onMouseMove'](_0x512a2f){const _0x136b2c=_0x14429d;let {row:_0x1b65fc,column:_0x5d3606}=_0x512a2f;if(_0x1b65fc>=this['_range'][_0x136b2c(0x20e)]&&_0x1b65fc<=this[_0x136b2c(0x28f)][_0x136b2c(0x39c)]&&_0x5d3606>=this[_0x136b2c(0x28f)][_0x136b2c(0x420)]&&_0x5d3606<=this[_0x136b2c(0x28f)][_0x136b2c(0x36c)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x136b2c(0x26b)]({'hovered':!0x1});}[_0x14429d(0x2a1)](_0x5aa9e2){const _0x38a252=_0x14429d;this[_0x38a252(0x344)](),this[_0x38a252(0x30d)]=!0x0,this[_0x38a252(0x3e8)]=window[_0x38a252(0x2c5)](()=>{const _0x54ac0d=_0x38a252;this['_isBlinkVisible']=!this[_0x54ac0d(0x30d)],this[_0x54ac0d(0x384)](!0x0);},0x1f4),this[_0x38a252(0x363)]=window[_0x38a252(0x1fb)](()=>{const _0xdd611f=_0x38a252;this['_stopBlinking'](),this[_0xdd611f(0x30d)]=!0x0,this[_0xdd611f(0x384)](!0x0);},_0x5aa9e2*0x3e8);}[_0x14429d(0x344)](){const _0x300347=_0x14429d;this['_blinkIntervalTimer']&&=(window[_0x300347(0x275)](this[_0x300347(0x3e8)]),void 0x0),this[_0x300347(0x363)]&&=(window[_0x300347(0x3ec)](this[_0x300347(0x363)]),void 0x0);}[_0x14429d(0x200)](_0x4ef6cc){return!0x1;}['dispose'](){const _0x871b3b=_0x14429d;this[_0x871b3b(0x344)](),super[_0x871b3b(0x381)]();}[_0x14429d(0x29d)](_0x544e74){const _0x216413=_0x14429d;let _0x1d57f1=this[_0x216413(0x306)],_0x1f0277=this[_0x216413(0x2e5)];if(this[_0x216413(0x31e)]&&!this[_0x216413(0x30d)]&&(_0x1d57f1=this[_0x216413(0x22b)](this[_0x216413(0x306)]),_0x1f0277=this[_0x216413(0x2e5)]?this[_0x216413(0x22b)](this[_0x216413(0x2e5)]):void 0x0),_0x58a20d['drawWith'](_0x544e74,{'width':this[_0x216413(0x3ef)],'height':this[_0x216413(0x3fc)],'strokeWidth':this[_0x216413(0x226)]||1.5,'stroke':_0x1d57f1,'evented':!0x1,'fill':_0x1f0277}),this['_hovered']||this['_showText']){_0x544e74['save']();let _0x394dab=this[_0x216413(0x325)]===_0x216413(0x3d7)?-xn(_0x544e74,this[_0x216413(0x40a)]):this[_0x216413(0x3ef)];_0x544e74['transform'](0x1,0x0,0x0,0x1,_0x394dab,(this['_labelPosition']===_0x216413(0x3b4)?0x0:-0x14)+(this[_0x216413(0x3d6)]??0x0)),Cn[_0x216413(0x3d4)](_0x544e74,{'text':this[_0x216413(0x40a)],'color':_0x1d57f1}),_0x544e74[_0x216413(0x1db)]();}}[_0x14429d(0x22b)](_0xc03473){const _0x5bddaa=_0x14429d;return _0xc03473[_0x5bddaa(0x3ba)]('#')?_0x5bddaa(0x3c7)+Number[_0x5bddaa(0x2a7)](_0xc03473[_0x5bddaa(0x34c)](0x1,0x3),0x10)+',\x20'+Number[_0x5bddaa(0x2a7)](_0xc03473[_0x5bddaa(0x34c)](0x3,0x5),0x10)+',\x20'+Number[_0x5bddaa(0x2a7)](_0xc03473[_0x5bddaa(0x34c)](0x5,0x7),0x10)+',\x200.2)':_0xc03473[_0x5bddaa(0x3ba)](_0x5bddaa(0x321))?_0xc03473['replace'](/[\d.]+\)$/g,'0.2)'):_0xc03473[_0x5bddaa(0x3ba)](_0x5bddaa(0x261))?_0xc03473[_0x5bddaa(0x361)]('rgb',_0x5bddaa(0x321))['replace'](')',_0x5bddaa(0x2a2)):_0xc03473;}};let kn=class extends _0x32162e{constructor(_0xb7ad0e,_0x489c47,_0x5e8038,_0x1340ac){const _0x507a0c=_0x14429d;super(),this[_0x507a0c(0x30c)]=_0xb7ad0e,this['_sheetSkeletonManagerService']=_0x489c47,this[_0x507a0c(0x3ad)]=_0x5e8038,this[_0x507a0c(0x1f6)]=_0x1340ac,G(this,_0x507a0c(0x2c1),new Set()),G(this,'_lastPointer',null),G(this,_0x507a0c(0x37a),null),this[_0x507a0c(0x3b8)]();}['_init'](){const _0xb6f585=_0x14429d;this['_sheetSkeletonManagerService'][_0xb6f585(0x2a8)][_0xb6f585(0x203)](_0x535fcc(this['dispose$']),_0x48ade1(_0x936387=>{const _0x499846=_0xb6f585;if(_0x936387){let _0x24a7bf=_0x936387[_0x499846(0x20d)];return _0x4f55e7(this[_0x499846(0x3ad)][_0x499846(0x335)](this[_0x499846(0x30c)][_0x499846(0x210)]),this[_0x499846(0x1f6)]['currentTheme$'])[_0x499846(0x203)](_0x37d85c(([_0x357f3a,_0x33c806])=>{const _0x39d995=_0x499846;let _0xe392f0=new Map();return _0x357f3a[_0x39d995(0x333)]((_0x472169,_0x24dd3f)=>{const _0x302ce9=_0x39d995;if(_0x472169[_0x302ce9(0x2f0)]===_0x24a7bf){let _0x3a6f11={..._0x472169};_0x3a6f11['color']=this[_0x302ce9(0x1f6)][_0x302ce9(0x393)](_0x472169[_0x302ce9(0x302)]),_0xe392f0[_0x302ce9(0x1fc)](_0x24dd3f,_0x3a6f11);}}),{'skeleton':_0x936387,'cursors':_0xe392f0};}));}return _0x5f1171({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x2318e8,cursors:_0x38fe48})=>{const _0x11e735=_0xb6f585;this[_0x11e735(0x3cd)](),_0x2318e8&&this['_updateCollabCursors'](_0x2318e8,_0x38fe48);}),this[_0xb6f585(0x406)](this[_0xb6f585(0x285)]['currentSkeleton$'][_0xb6f585(0x203)](_0x535fcc(this['dispose$']))['subscribe'](_0x552382=>{const _0x303a14=_0xb6f585;var _0xe4e4e0;if(_0x552382==null)return;(_0xe4e4e0=this['_pointerMoveDisposable'])==null||_0xe4e4e0[_0x303a14(0x329)](),this[_0x303a14(0x37a)]=null;let {skeleton:_0x1e0841}=_0x552382,{scene:_0x3b0ec0}=this[_0x303a14(0x30c)];this[_0x303a14(0x37a)]=_0x3b0ec0[_0x303a14(0x3ac)][_0x303a14(0x207)](_0x43c2fb(_0x224812=>{const _0x1c219a=_0x303a14;var _0x1d9403,_0x4966e6;let {offsetX:_0x235c39,offsetY:_0x46853c}=_0x224812,{x:_0x297f43,y:_0x51e0a9}=_0x3b0ec0[_0x1c219a(0x3a6)](_0x164f70['FromArray']([_0x235c39,_0x46853c])),{scaleX:_0x10cdad,scaleY:_0x1c15f8}=_0x3b0ec0[_0x1c219a(0x1df)](),_0x50478b=_0x3b0ec0[_0x1c219a(0x251)](_0xa2fb8c[_0x1c219a(0x3e1)]),_0x419cae=_0x3b0ec0[_0x1c219a(0x438)](_0x164f70[_0x1c219a(0x230)]([_0x297f43,_0x51e0a9]),_0x50478b),_0x57c52b=_0x1e0841[_0x1c219a(0x2c2)](_0x235c39,_0x46853c,_0x10cdad,_0x1c15f8,_0x419cae);(((_0x1d9403=this[_0x1c219a(0x215)])==null?void 0x0:_0x1d9403[_0x1c219a(0x1e3)])!==_0x57c52b[_0x1c219a(0x1e3)]||((_0x4966e6=this[_0x1c219a(0x215)])==null?void 0x0:_0x4966e6[_0x1c219a(0x2e4)])!==_0x57c52b['row'])&&this[_0x1c219a(0x2c1)][_0x1c219a(0x333)](_0x59fa26=>{_0x59fa26['onMouseMove'](_0x57c52b);});},0x64));})),this['disposeWithMe'](_0x1c7e61(()=>{const _0x2c42e6=_0xb6f585;var _0x43a55f;(_0x43a55f=this['_pointerMoveDisposable'])==null||_0x43a55f[_0x2c42e6(0x329)](),this[_0x2c42e6(0x37a)]=null;}));}[_0x14429d(0x2f4)](_0x2060bb,_0x5c332b){const _0x479a66=_0x14429d;let _0x457c9c=this[_0x479a66(0x285)][_0x479a66(0x437)]();if(!_0x457c9c)return;let _0x2e7056=this[_0x479a66(0x3dd)]();if(!_0x2e7056)return;this[_0x479a66(0x2c1)][_0x479a66(0x333)](_0x80f1d2=>{const _0xae8107=_0x479a66;_0x80f1d2[_0xae8107(0x384)]();});let {scene:_0x443d74}=_0x2e7056,_0x4e4e6e=An(Array[_0x479a66(0x2d2)](_0x5c332b[_0x479a66(0x3d1)]()))[_0x479a66(0x249)](_0x2cb599=>{const _0x126250=_0x479a66;let {color:_0x2d25f0,range:_0x40b538,name:_0x4ec218,selection:_0x4e7115,sheetID:_0x5b4345}=_0x2cb599,{startColumn:_0x13910c,startRow:_0xb2ed4d,endColumn:_0x5cef47,endRow:_0x854d12}=_0x40b538,_0x2dc75a=_0x527228(_0xb2ed4d,_0x13910c,_0x443d74,_0x457c9c),_0x17a5f2=_0x527228(_0x854d12,_0x5cef47,_0x443d74,_0x457c9c),{columnHeaderHeightAndMarginTop:_0x564238}=_0x457c9c,{startX:_0x521df5,startY:_0x5366ad}=_0x2dc75a,{endX:_0x4aff10,endY:_0x3a912e}=_0x17a5f2,_0x1e4b11=_0x4aff10-_0x521df5,_0x4bee39=_0x3a912e-_0x5366ad;return new On(_0x4ec218,{'labelPosition':_0x5366ad-_0x564238>=0x14?_0x126250(0x379):_0x126250(0x3b4),'sheetID':_0x5b4345,'range':_0x40b538,'color':_0x2d25f0,'name':_0x4ec218,'selection':_0x4e7115,'left':_0x521df5,'top':_0x5366ad,'width':_0x1e4b11,'height':_0x4bee39,'evented':!0x1,'zIndex':0x1389});});_0x443d74[_0x479a66(0x231)](_0x4e4e6e,0x1),this[_0x479a66(0x2c1)]=new Set(_0x4e4e6e);}[_0x14429d(0x3cd)](){const _0x39a03e=_0x14429d;var _0x34b57c;(_0x34b57c=this[_0x39a03e(0x2c1)])==null||_0x34b57c[_0x39a03e(0x333)](_0x4f8233=>_0x4f8233[_0x39a03e(0x381)]());}[_0x14429d(0x3dd)](){const _0x26b533=_0x14429d;return _0x478dc1(this[_0x26b533(0x30c)][_0x26b533(0x262)],this['_context']);}};kn=q([K(0x1,_0x439243(_0x405920)),K(0x2,_0x439243(Z)),K(0x3,_0x439243(_0xa61525))],kn);function An(_0x35099e){const _0x1f8576=_0x14429d;let _0x42eb62=new Map();return _0x35099e[_0x1f8576(0x333)](_0x1bc57b=>{const _0x3640b7=_0x1f8576;if(_0x42eb62[_0x3640b7(0x38f)](_0x1bc57b['selection'])){let _0x477f03=_0x42eb62[_0x3640b7(0x341)](_0x1bc57b['selection']);_0x477f03[_0x3640b7(0x27f)]+=',\x20'+_0x1bc57b['name'];}else _0x42eb62['set'](_0x1bc57b['selection'],_0x1bc57b);}),Array[_0x1f8576(0x2d2)](_0x42eb62[_0x1f8576(0x3d1)]());}function jn(_0x4cb989){return typeof _0x4cb989=='object'&&!!_0x4cb989;}function Mn(_0x51900d){const _0x35389d=_0x14429d;return _0x51900d['eventID']===_0x228507[_0x35389d(0x270)]&&_0x35389d(0x1cc)in _0x51900d&&jn(_0x51900d[_0x35389d(0x1cc)])&&typeof _0x51900d['data']['memberID']==_0x35389d(0x2df)&&typeof _0x51900d[_0x35389d(0x1cc)][_0x35389d(0x304)]=='string';}function Nn(_0x261de8){const _0x379a2f=_0x14429d;return _0x261de8[_0x379a2f(0x43d)]===_0x228507[_0x379a2f(0x42e)]&&_0x379a2f(0x1cc)in _0x261de8&&jn(_0x261de8[_0x379a2f(0x1cc)])&&typeof _0x261de8[_0x379a2f(0x1cc)]['memberID']==_0x379a2f(0x2df);}function Pn(_0x5848b8,_0x501e0f){const _0x1bc03d=_0x14429d;let _0x25f683;try{_0x25f683=JSON['parse'](_0x5848b8);}catch{return null;}if(!jn(_0x25f683)||typeof _0x25f683[_0x1bc03d(0x318)]!='string'||typeof _0x25f683[_0x1bc03d(0x210)]!=_0x1bc03d(0x2df)||typeof _0x25f683[_0x1bc03d(0x36d)]!=_0x1bc03d(0x2df))return null;let _0x2b1997=typeof _0x25f683[_0x1bc03d(0x382)]==_0x1bc03d(0x33f)?_0x25f683[_0x1bc03d(0x382)]:_0x501e0f;if(_0x2b1997==null)return null;let _0x5a5756=jn(_0x25f683[_0x1bc03d(0x223)])&&typeof _0x25f683[_0x1bc03d(0x223)]['x']=='number'&&Number[_0x1bc03d(0x41d)](_0x25f683['pointer']['x'])&&typeof _0x25f683['pointer']['y']==_0x1bc03d(0x33f)&&Number['isFinite'](_0x25f683[_0x1bc03d(0x223)]['y'])?{'x':_0x25f683[_0x1bc03d(0x223)]['x'],'y':_0x25f683[_0x1bc03d(0x223)]['y']}:null;return{'kind':_0x25f683['kind'],'unitType':_0x2b1997,'unitId':_0x25f683[_0x1bc03d(0x210)],'subUnitId':_0x25f683['subUnitId'],'selectedIds':Array['isArray'](_0x25f683[_0x1bc03d(0x42d)])?_0x25f683['selectedIds']['filter'](_0x46198b=>typeof _0x46198b==_0x1bc03d(0x2df)):[],'focusedId':typeof _0x25f683['focusedId']==_0x1bc03d(0x2df)?_0x25f683[_0x1bc03d(0x274)]:null,'pointer':_0x5a5756};}function Fn(_0x97fd09,_0x325a8d,_0x43f445){const _0x303c11=_0x14429d;return{'kind':_0x325a8d,'unitType':_0x97fd09,'unitId':_0x43f445[_0x303c11(0x210)],'subUnitId':_0x43f445['subUnitId'],'selectedIds':Array[_0x303c11(0x2d2)](_0x43f445[_0x303c11(0x42d)]),'focusedId':_0x43f445['focusedId'],'pointer':_0x43f445[_0x303c11(0x223)]?{..._0x43f445[_0x303c11(0x223)]}:null};}let In=class extends _0x32162e{constructor(_0x262ef6,_0x4bce5d,_0x4c72d4,_0x1c930f,_0x22899b,_0x103f39){const _0x5e8f4a=_0x14429d;super(),this['unitId']=_0x262ef6,this[_0x5e8f4a(0x227)]=_0x4bce5d,this[_0x5e8f4a(0x28c)]=_0x4c72d4,this['_colorAssignService']=_0x1c930f,this[_0x5e8f4a(0x41e)]=_0x22899b,this['_commandService']=_0x103f39,G(this,_0x5e8f4a(0x224),!0x1),G(this,_0x5e8f4a(0x2dc),!0x1);}get[_0x14429d(0x382)](){const _0x32b78c=_0x14429d;return this[_0x32b78c(0x28c)][_0x32b78c(0x382)];}[_0x14429d(0x381)](){const _0x52725d=_0x14429d;this[_0x52725d(0x2cc)](),super['dispose']();}[_0x14429d(0x271)](){const _0x153fdf=_0x14429d;this[_0x153fdf(0x2dc)]||(this['_initialized']=!0x0,this[_0x153fdf(0x227)][_0x153fdf(0x428)][_0x153fdf(0x203)](_0x54edaf(this[_0x153fdf(0x29b)]))[_0x153fdf(0x21d)](_0x2233e6=>{const _0x309695=_0x153fdf;if(_0x2233e6===_0x411373['ONLINE']){this[_0x309695(0x224)]=!0x0;let _0x727c67=this[_0x309695(0x28c)]['getLocalPresence'](this[_0x309695(0x210)]);_0x727c67&&this[_0x309695(0x29a)](_0x727c67);return;}this[_0x309695(0x224)]=!0x1,this[_0x309695(0x2cc)]();}),this[_0x153fdf(0x227)][_0x153fdf(0x272)][_0x153fdf(0x203)](_0x54edaf(this[_0x153fdf(0x29b)]))[_0x153fdf(0x21d)](_0x219067=>{const _0xec59f0=_0x153fdf;Mn(_0x219067)?this['_handleCursorUpdate'](_0x219067):Nn(_0x219067)&&this[_0xec59f0(0x1f0)](_0x219067[_0xec59f0(0x1cc)][_0xec59f0(0x1c8)]);}),this[_0x153fdf(0x28c)]['localPresence$'][_0x153fdf(0x203)](_0x49082d(_0x401631=>this['_online']&&_0x401631['unitId']===this[_0x153fdf(0x210)]),_0x6b057b(_0x22ef94=>_0x5f3da1(_0x22ef94[_0x153fdf(0x2d0)]),{'leading':!0x0,'trailing':!0x0}),_0x54edaf(this[_0x153fdf(0x29b)]))[_0x153fdf(0x21d)](_0x4bca24=>this['_sendLocalPresence'](_0x4bca24)));}[_0x14429d(0x29a)](_0x195d76){const _0x3c560c=_0x14429d;let _0x2a5578=this['_session'][_0x3c560c(0x291)]();if(!_0x2a5578||!this[_0x3c560c(0x224)])return;let _0x23dfaf={'eventID':_0x228507[_0x3c560c(0x270)],'data':{'unitID':this[_0x3c560c(0x210)],'memberID':_0x2a5578,'selection':JSON[_0x3c560c(0x26f)](Fn(this[_0x3c560c(0x382)],this[_0x3c560c(0x28c)]['presenceKind'],_0x195d76))}};this[_0x3c560c(0x227)][_0x3c560c(0x1f8)](_0x23dfaf,this[_0x3c560c(0x210)])[_0x3c560c(0x2d8)](()=>void 0x0);}[_0x14429d(0x366)](_0x23ff35){const _0x1d5d0d=_0x14429d;let {memberID:_0x14f34b,selection:_0xd723ab}=_0x23ff35[_0x1d5d0d(0x1cc)];if(_0x14f34b===this['_session'][_0x1d5d0d(0x291)]())return;let _0x5584d1=Pn(_0xd723ab,this['unitType']);if(!_0x5584d1||_0x5584d1[_0x1d5d0d(0x318)]!==this[_0x1d5d0d(0x28c)][_0x1d5d0d(0x2aa)]||_0x5584d1['unitType']!==this[_0x1d5d0d(0x382)]||_0x5584d1[_0x1d5d0d(0x210)]!==this[_0x1d5d0d(0x210)])return;let _0x407526=this[_0x1d5d0d(0x41e)]['getMember'](this[_0x1d5d0d(0x210)],_0x14f34b),_0x25b5a8={'unitId':_0x5584d1[_0x1d5d0d(0x210)],'subUnitId':_0x5584d1[_0x1d5d0d(0x36d)],'selectedIds':_0x5584d1['selectedIds'],'focusedId':_0x5584d1['focusedId'],'pointer':_0x5584d1[_0x1d5d0d(0x223)],'memberId':_0x14f34b,'color':this[_0x1d5d0d(0x2bc)][_0x1d5d0d(0x373)](_0x14f34b),'name':(_0x407526==null?void 0x0:_0x407526['name'])??_0x14f34b};this['_commandService'][_0x1d5d0d(0x33a)](Y['id'],{'unitType':this[_0x1d5d0d(0x382)],'update':{'type':_0x1d5d0d(0x1fc),'state':_0x25b5a8}})[_0x1d5d0d(0x2d8)](()=>void 0x0);}[_0x14429d(0x1f0)](_0x69ef2a){const _0x2a9227=_0x14429d;this[_0x2a9227(0x236)][_0x2a9227(0x33a)](Y['id'],{'unitType':this[_0x2a9227(0x382)],'update':{'type':_0x2a9227(0x3b5),'unitId':this[_0x2a9227(0x210)],'memberId':_0x69ef2a}})['catch'](()=>void 0x0);}['_clearRemotePresences'](){const _0x1f9b11=_0x14429d;this[_0x1f9b11(0x236)][_0x1f9b11(0x33a)](Y['id'],{'unitType':this[_0x1f9b11(0x382)],'update':{'type':'clear','unitId':this[_0x1f9b11(0x210)]}})[_0x1f9b11(0x2d8)](()=>void 0x0);}};In=q([K(0x3,_0x439243(mn)),K(0x4,_0x439243(_0x529951)),K(0x5,_0x439243(_0xdaa582))],In);let Q=class extends _0x32162e{constructor(_0x245bfb,_0xf267e6,_0x4d0d32,_0x20a0e7){const _0x2266f9=_0x14429d;super(),this[_0x2266f9(0x3d9)]=_0x245bfb,this['_injector']=_0xf267e6,this[_0x2266f9(0x237)]=_0x4d0d32,this[_0x2266f9(0x3a2)]=_0x20a0e7,G(this,_0x2266f9(0x419),!0x1),G(this,_0x2266f9(0x1f9),new Map()),G(this,_0x2266f9(0x3a7),new Map()),G(this,'_adapterDisposables',new Map()),this[_0x2266f9(0x3b8)]();}[_0x14429d(0x381)](){const _0x2ef656=_0x14429d;this[_0x2ef656(0x419)]=!0x0,this[_0x2ef656(0x3f2)][_0x2ef656(0x333)](_0x4255e3=>_0x4255e3[_0x2ef656(0x381)]()),this[_0x2ef656(0x3f2)][_0x2ef656(0x1d7)](),this[_0x2ef656(0x1f9)]['forEach'](_0x2a2e92=>_0x2a2e92[_0x2ef656(0x381)]()),this[_0x2ef656(0x1f9)]['clear'](),this['_pendingEntities']['clear'](),super[_0x2ef656(0x381)]();}[_0x14429d(0x3b8)](){const _0x2da72c=_0x14429d;this['_adapterRegistry'][_0x2da72c(0x365)][_0x2da72c(0x203)](_0x54edaf(this[_0x2da72c(0x29b)]))['subscribe'](_0x4c2f20=>this['_syncAdapters'](_0x4c2f20));}[_0x14429d(0x1ec)](_0x515f56){const _0x1ab920=_0x14429d;let _0x1ddbc3=new Set(_0x515f56[_0x1ab920(0x249)](_0xc02e3d=>_0xc02e3d['unitType']));this[_0x1ab920(0x3f2)][_0x1ab920(0x333)]((_0x45b2ad,_0xbc937a)=>{const _0x3254d4=_0x1ab920;_0x1ddbc3[_0x3254d4(0x38f)](_0xbc937a)||(_0x45b2ad[_0x3254d4(0x381)](),this[_0x3254d4(0x3f2)][_0x3254d4(0x2a0)](_0xbc937a),this[_0x3254d4(0x2b1)](_0xbc937a));}),_0x515f56['forEach'](_0x2b611b=>{const _0x205012=_0x1ab920;this['_adapterDisposables'][_0x205012(0x38f)](_0x2b611b[_0x205012(0x382)])||this[_0x205012(0x234)](_0x2b611b);});}['_bindAdapter'](_0x11fdc9){const _0x34f542=_0x14429d;let _0x26524c=new _0x15436c();this[_0x34f542(0x3f2)][_0x34f542(0x1fc)](_0x11fdc9[_0x34f542(0x382)],_0x26524c),_0x26524c['add'](_0x11fdc9[_0x34f542(0x317)]()),this[_0x34f542(0x3d9)][_0x34f542(0x219)](_0x11fdc9[_0x34f542(0x382)])[_0x34f542(0x333)](_0x135068=>this[_0x34f542(0x24a)](_0x135068[_0x34f542(0x252)](),_0x11fdc9)['catch'](()=>void 0x0));let _0x4a50d7=this['_univerInstanceService'][_0x34f542(0x21a)](_0x11fdc9[_0x34f542(0x382)])[_0x34f542(0x21d)](({unit:_0x4a0ad2})=>this[_0x34f542(0x24a)](_0x4a0ad2[_0x34f542(0x252)](),_0x11fdc9)[_0x34f542(0x2d8)](()=>void 0x0));_0x26524c['add'](_0x1c7e61(()=>_0x4a50d7[_0x34f542(0x329)]()));let _0x267068=this['_univerInstanceService'][_0x34f542(0x3c9)](_0x11fdc9['unitType'])[_0x34f542(0x21d)](_0x3317fc=>this[_0x34f542(0x1cf)](_0x3317fc[_0x34f542(0x252)]()));_0x26524c[_0x34f542(0x264)](_0x1c7e61(()=>_0x267068[_0x34f542(0x329)]()));}async['_startEntity'](_0x5204bf,_0x478efb){const _0x329269=_0x14429d;if(this[_0x329269(0x1f9)][_0x329269(0x38f)](_0x5204bf)||this[_0x329269(0x3a7)][_0x329269(0x38f)](_0x5204bf))return;let _0x9e8967={};this[_0x329269(0x3a7)][_0x329269(0x1fc)](_0x5204bf,_0x9e8967);let _0x572d5d=await this['_collabSessionService']['requireSession'](_0x5204bf)['catch'](_0x5eda0f=>{const _0x455378=_0x329269;throw this['_pendingEntities'][_0x455378(0x341)](_0x5204bf)===_0x9e8967&&this[_0x455378(0x3a7)][_0x455378(0x2a0)](_0x5204bf),_0x5eda0f;});if(this[_0x329269(0x419)]||this['_pendingEntities'][_0x329269(0x341)](_0x5204bf)!==_0x9e8967||this[_0x329269(0x3a2)][_0x329269(0x341)](_0x478efb['unitType'])!==_0x478efb){this[_0x329269(0x3a7)][_0x329269(0x341)](_0x5204bf)===_0x9e8967&&this[_0x329269(0x3a7)]['delete'](_0x5204bf);return;}let _0x30ada7=this[_0x329269(0x34e)][_0x329269(0x3dc)](In,_0x5204bf,_0x572d5d,_0x478efb);_0x30ada7['init'](),this[_0x329269(0x3a7)][_0x329269(0x2a0)](_0x5204bf),this[_0x329269(0x1f9)]['set'](_0x5204bf,_0x30ada7);}[_0x14429d(0x1cf)](_0x202b60){const _0x35bfeb=_0x14429d;this['_pendingEntities'][_0x35bfeb(0x2a0)](_0x202b60);let _0x1ea4ac=this[_0x35bfeb(0x1f9)][_0x35bfeb(0x341)](_0x202b60);_0x1ea4ac&&(_0x1ea4ac[_0x35bfeb(0x381)](),this[_0x35bfeb(0x1f9)]['delete'](_0x202b60));}[_0x14429d(0x2b1)](_0x241cbc){const _0x54572a=_0x14429d;this['_univerInstanceService'][_0x54572a(0x219)](_0x241cbc)[_0x54572a(0x333)](_0x16a1e5=>this['_pendingEntities'][_0x54572a(0x2a0)](_0x16a1e5[_0x54572a(0x252)]())),Array[_0x54572a(0x2d2)](this[_0x54572a(0x1f9)][_0x54572a(0x3ce)]())[_0x54572a(0x333)](([_0x473094,_0x3a152e])=>{const _0x504543=_0x54572a;_0x3a152e[_0x504543(0x382)]===_0x241cbc&&this[_0x504543(0x1cf)](_0x473094);});}};Q=q([K(0x0,_0x4d77cc),K(0x1,_0x439243(_0x2c4c1e)),K(0x2,_0x439243(_0x2b2a41)),K(0x3,_0x439243(_0x2873f9))],Q);let Ln=class extends _0x4af7ce{constructor(_0x478af2,_0x52c5dc,_0x33f156,_0x1a26a6,_0x26f42d,_0x401a86){const _0x4dc92b=_0x14429d;super(),this[_0x4dc92b(0x27d)]=_0x478af2,this[_0x4dc92b(0x33e)]=_0x52c5dc,this[_0x4dc92b(0x383)]=_0x33f156,this['_messageService']=_0x1a26a6,this['_notificationService']=_0x26f42d,this[_0x4dc92b(0x221)]=_0x401a86,G(this,_0x4dc92b(0x25e),null),G(this,'_retryingConflictCacheUnitIDs',new Set()),this[_0x4dc92b(0x320)](),this[_0x4dc92b(0x2cb)]();}['dispose'](){const _0x22a08f=_0x14429d;var _0x3d608c;(_0x3d608c=this['_conflictNotification'])==null||_0x3d608c['dispose'](),this[_0x22a08f(0x25e)]=null,super[_0x22a08f(0x381)]();}[_0x14429d(0x320)](){const _0x24d486=_0x14429d;this[_0x24d486(0x406)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x2fc291=_0x24d486;if(this['_localCacheService'][_0x2fc291(0x22c)][_0x2fc291(0x241)])return this[_0x2fc291(0x221)]['t'](_0x2fc291(0x32b));}));}[_0x14429d(0x2cb)](){const _0x100dec=_0x14429d;this[_0x100dec(0x406)](this[_0x100dec(0x383)]['event$'][_0x100dec(0x21d)](_0x47142e=>{const _0x2d7664=_0x100dec;_0x47142e['id']===_0x797de9[_0x2d7664(0x39b)]&&this[_0x2d7664(0x439)][_0x2d7664(0x23e)]({'type':_0x3e9b02[_0x2d7664(0x332)],'content':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x392))}),_0x47142e['id']===_0x797de9[_0x2d7664(0x21e)]&&this[_0x2d7664(0x439)][_0x2d7664(0x23e)]({'type':_0x3e9b02['Warning'],'content':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x28b))}),_0x47142e['id']===_0x797de9['PERMISSION_DENIED']&&this[_0x2d7664(0x2b3)]({'title':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x400)),'content':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x3e7)),'type':_0x2d7664(0x356),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x1de)),'onClick':_0x216a45=>{const _0x124559=_0x2d7664;_0x216a45['preventDefault'](),window[_0x124559(0x35c)][_0x124559(0x21b)]();}}}),_0x47142e['id']===_0x797de9[_0x2d7664(0x3cc)]&&this[_0x2d7664(0x2e9)](),_0x47142e['id']===_0x797de9[_0x2d7664(0x2b8)]&&_0x47142e[_0x2d7664(0x369)]&&this[_0x2d7664(0x28d)](_0x47142e[_0x2d7664(0x369)]),_0x47142e['id']===_0x797de9[_0x2d7664(0x390)]&&this['_replaceConflictNotification']({'title':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x30f)),'content':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x415)),'type':'error','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this['_localeService']['t'](_0x2d7664(0x1de)),'onClick':_0x3797ea=>{const _0x3bc090=_0x2d7664;_0x3797ea[_0x3bc090(0x372)](),window[_0x3bc090(0x35c)][_0x3bc090(0x21b)]();}}}),_0x47142e['id']===_0x797de9[_0x2d7664(0x3f4)]&&this[_0x2d7664(0x439)]['show']({'type':_0x3e9b02[_0x2d7664(0x332)],'content':this[_0x2d7664(0x221)]['t'](_0x47142e['data']||'')}),_0x47142e['id']===_0x797de9[_0x2d7664(0x368)]&&this[_0x2d7664(0x439)]['show']({'type':_0x3e9b02['Warning'],'content':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x402))}),_0x47142e['id']===_0x797de9[_0x2d7664(0x3b3)]&&this[_0x2d7664(0x439)]['show']({'type':_0x3e9b02[_0x2d7664(0x41f)],'content':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x380))}),_0x47142e['id']===_0x797de9[_0x2d7664(0x2ff)]&&this[_0x2d7664(0x439)][_0x2d7664(0x23e)]({'type':_0x3e9b02[_0x2d7664(0x41f)],'content':this[_0x2d7664(0x221)]['t']('collaboration-client-ui.session.collaboration-timeout')});}));}[_0x14429d(0x2e9)](){const _0x20830b=_0x14429d;this[_0x20830b(0x2b3)]({'title':this[_0x20830b(0x221)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x20830b(0x221)]['t'](_0x20830b(0x2c0)),'type':_0x20830b(0x1dd),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}[_0x14429d(0x28d)](_0x1c41e0){const _0x10f24b=_0x14429d;this['_replaceConflictNotification']({'title':this['_localeService']['t'](_0x10f24b(0x30f)),'content':this['_localeService']['t']('collaboration-client-ui.conflict.clearFailed'),'type':_0x10f24b(0x356),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this[_0x10f24b(0x221)]['t']('collaboration-client-ui.conflict.retry'),'onClick':_0x304b07=>{const _0x91d486=_0x10f24b;_0x304b07[_0x91d486(0x372)](),this['_retryConflictCacheClear'](_0x1c41e0);}}});}[_0x14429d(0x294)](_0x376ead){const _0x2df03f=_0x14429d;this[_0x2df03f(0x3b2)]['has'](_0x376ead)||(this['_retryingConflictCacheUnitIDs'][_0x2df03f(0x264)](_0x376ead),this['_showConflictProcessingNotification'](),this[_0x2df03f(0x33e)][_0x2df03f(0x27b)](_0x376ead)[_0x2df03f(0x238)](()=>window[_0x2df03f(0x35c)][_0x2df03f(0x21b)]())[_0x2df03f(0x2d8)](()=>this[_0x2df03f(0x28d)](_0x376ead))[_0x2df03f(0x3e2)](()=>this['_retryingConflictCacheUnitIDs'][_0x2df03f(0x2a0)](_0x376ead)));}[_0x14429d(0x2b3)](_0x25511c){const _0x3cab6a=_0x14429d;var _0x39293c;(_0x39293c=this[_0x3cab6a(0x25e)])==null||_0x39293c[_0x3cab6a(0x381)](),this[_0x3cab6a(0x25e)]=this['_notificationService'][_0x3cab6a(0x23e)](_0x25511c);}};Ln=q([K(0x0,_0x333f87),K(0x1,_0x4ed906),K(0x2,_0x439243(_0x57af61)),K(0x3,_0x42a5ed),K(0x4,_0x279df2),K(0x5,_0x439243(_0x2d982f))],Ln);function _0x2133(){const _0x3edb17=['RemoveColCommandId','collabCursorState$','_syncPresenceStatusComponents','_getSaveTimeout','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','_context','_isBlinkVisible','AWAITING','collaboration-client-ui.conflict.title','_drawRectRange','tooltipKey','snapshot-loading-','state','369AjYoXI','_getMergeRange','_textBubble','activate','kind','getSkeleton','beginPath','1.0.1','_blockProgressWatches','_trackActiveSaveTask','_highlight','_getScale','_setupBeforeClosingHandler','rgba','polite','executionId','_presenceAdapterRegistry','_labelHorizontalPosition','onCommandExecuted','_registerRenderDependencies','clearRemotePresences','unsubscribe','180XawXKe','collaboration-client-ui.collaboration.offline-data-not-saved','_collabCursorState$','unload','decorate','getCurrentUnitOfType','value','_urlService','Warning','forEach','fill','getCollabCursors$','allSettled','selections','/universer-api/frontend/logs','blue.400','executeCommand','timedOut','m2Prime','statusUIPart','_localCacheService','number','_isVisibleUnit','get','storage','OFFLINE','_stopBlinking','setStateCache','_memberID','_handleJoinEvent','offsetY','_refreshCollabCursors','ranges','disableLocalCache','slice','_highlightSecond','_injector','spin','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pushState','save','yellow.400','_initCommandExecutedListener','_onCursorDelete','error','_initWindowErrorListener','_presenceStatusRegistrations','_updateLocalCursor','LOADING_BLOCKS','override','location','now','univer-text-orange-500','_createSocketURL','newValue','replace','next','_blinkTimer','Unknown\x20user','adapters$','_handleCursorUpdate','removeEventListener','SOCKET_FAILED_RETRY','unitID','setItem','button','endColumn','subUnitId','span','_cachedData','_scene','message','preventDefault','assignAColorForMemberID','getMergeData','source','_collaborationSessionService','transformMutationsWithChangeset','indicator','top','_pointerMoveDisposable','_initUnhandledRejectionListener','collab-text-range-','\x20-\x20','_anchor','addEventListener','collaboration-client-ui.session.connection-failed','dispose','unitType','_collaborationUIEventService','makeDirty','updateOfflineData','m1Prime','stage','_monkeyPatchLogService','collaboration-client-ui.collabStatus.notCollab','loadOfflineData','moveTo','params','href','7nTiNOw','has','CONFLICT','InsertColCommandId','collaboration-client-ui.collaboration.single-unit.warning','getColorFromTheme','_logService','_startDocCollabCursor','font','activeSheet$','_renderManagerService','_scheduleClearOtherTimer','onRendered','OTHER_CLIENT_EDITING','endRow','transformIMECache','dark:focus:!univer-ring-offset-gray-800','univer-text-red-500','_drawAnchor','collaboration-client-ui.collabStatus.fetchMiss','_adapterRegistry','_watchBlockProgress','mutations','length','getCoordRelativeToViewport','_pendingEntities','urlChange$','addClipboardHook','getUndoRedoMutationParamsCache','_anchorDot','onPointerMove$','_collabCursorController','timeoutId','colorClass','_initUserListener','unhandledrejection','_retryingConflictCacheUnitIDs','SOCKET_FAILED','bottom','remove','doc.mutation.rich-text-editing','getUnitStatus$','_init','_initPresenceStatusComponents','startsWith','result','lineno','_getSessionTicket','hide','loadUnit','_localStorageService','registerRefRange','getSheetBySheetId','_assignedColors','\x20at\x20','_refRangeService','setOffsetY','rgba(','_hideTimer','getTypeOfUnitDisposed$','_cursorShapes','ONLINE','CONFLICT_PROCESSING','_removeCollabCursors','entries','wsSessionTicketUrl','jiqing.500','values','_onCursorUpdate','_disposed','drawWith','ERROR','_offsetY','left','150552Chbwfn','_univerInstanceService','labelHorizontalPosition','canRenderAnchor','createInstance','_getSheetObject','_hovered','NO_OTHER_CLIENTS_EDITING','_dataLoaderService','VIEW_MAIN','finally','fillStyle','replaceSelectionInfoWithoutRefresh','flatMap','type','collaboration-client-ui.permission.content','_blinkIntervalTimer','_clearOtherTimers','215572wyNIam','requireSession','clearTimeout','debug','roomMembers$','width','_saveCache','_httpService','_adapterDisposables','_registerDependencies','JOIN_ROOM_FAILED','_configService','symbol','bold\x2013px\x20Arial,\x20sans-serif','true','text','_syncEditingCollabCursorService','_send','height','univer-h-8\x20univer-w-8\x20univer-rounded-lg','_setupSubUnitSync','range','collaboration-client-ui.permission.title','enableFrontendLog','collaboration-client-ui.session.will-retry','collab-text-anchor-','_cursor','_colorIndex','disposeWithMe','InsertRowCommandId','[LogService\x20Error]:\x20','hovered','_name','univer-flex\x20univer-items-center\x20univer-justify-center','_activeSaveTaskMap','_docSkeleton','getRenderUnitById','roomMembers','_clearTimeoutState','highlight','status','pageType','getItem','collaboration-client-ui.conflict.content','_registerPresenceStatusComponent','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_heartbeatTimer','_isDisposed','red.300','exhaustSavingTask','_initEntityListener','isFinite','_memberService','Error','startColumn','_collaborationController','_docSkeletonManagerService','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','update','isEditing','deepClone','getParam','sessionStatus$','getActiveRange','options','_eventUnsubscribe','sessionTicket','selectedIds','USERS_LEAVE','AWAITING_WITH_PENDING','onPointerLeave$','_shapes','max','primary','_id','clickable','purple.300','getCurrentSkeleton','getScrollXYInfoByViewport','_messageService','_removeClearOtherTimer','getSheetId','tableId','eventID','contains','_clearBlockProgressWatch','memberID','_roomMembers$','_timeoutState$','invokeId','data','small','editingUnit','_disposeEntity','findNodePositionByCharIndex','_drawTextRange','pluginName','transformRemoteChangeset','_updateURLWithCurrentState','_docTransformSelectionsService','getDocRanges','clear','_showText','UNIVER_SHEET','cursorInfo$','restore','_toggleOffline','loading','collaboration-client-ui.snapshotLoading.refresh','getAncestorScale','NOT_COLLAB','reconnect','_transformPreviousActiveRange','column','removeRemotePresence','unshift','asObservable','columnIndex','UNIVER_DOC','div','_doCreateSocket','runId','_syncAdapters','getUnit','alert','_initDependencies','_removeRemotePresence','_entityInit$','transformStateCache','InsertRangeMoveDownCommandId','_getAnchorBounding','black','_themeService','_initStatusListener','send','_entities','univer-border-none\x20univer-bg-transparent','setTimeout','set','setAlpha','split','canRenderSelection','triggerDblclick','evenodd','icon','pipe','addObject','setActiveRange','uni.network.url-service','subscribeEvent','getCurrentTypeOfUnit$','_docTransformStateCacheService','fillText','_handleLeaveEvent','_scheduleHeartbeat','sheetId','startRow','_render','unitId','registerRenderModule','collaboration-client-ui.operation.update-remote-unit-presence','GLOBAL','right','_lastPointer','socket$','key','backgroundColor','getAllUnitsForType','getTypeOfUnitAdded$','reload','filter','subscribe','CLOSE_ROOM','memberId','_instanceService','_localeService','search','pointer','_online','[RemoteUniscriptService]:\x20no\x20focused\x20unit','strokeWidth','_session','defineProperty','getActiveSheet','getRangePointData','_getLighterColor','saveTaskMap','pageIndex','getCollabEntity$','_disabled','FromArray','addObjects','_uploadLog','getOwnPropertyDescriptor','_bindAdapter','_handleHeartbeatEvent','_commandService','_collabSessionService','then','SYNCED','setUndoRedoMutationParamsCache','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-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','_handleHover','iterator','show','call','collaboration-client-ui.collabClient.tooltip.reconnect','size','post','resize','_saveTaskMap','syncEditingCollabCursor','collaboration-client-ui.collabStatus.syncing','_transformService','univer-text-blue-500','map','_startEntity','_document','highlightSecond','showText','complete','_updateSubUnitFromURLParams','_uiPartsService','getViewport','getUnitId','currentTheme$','getFocusedUnit','runOnServer','PENDING','tableSource','content','with','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','getConfig','[Window\x20Error]:\x20','onPointerEnter$','_conflictNotification','Loading','_revisionService','rgb','unit','_latestStates','add','default','undoState','univer-transition-all\x20univer-duration-200','_docClipboardService','setConfig','object','setShapeProps','static','transformMutation','loadedBlocks','stringify','UPDATE_CURSOR','init','event$','_onRefRangeChange','focusedId','clearInterval','registerComponent','saveOfflineData','getStateCache','RECT','segmentPage','clearOfflineData','i18nKey','_beforeCloseService','saveImage','name','univer-m-0\x20univer-p-0','[CollaborationDataLoaderController]','_docStateChangeManagerService','popstate','_unitStatus','_sheetSkeletonManagerService','COMPLETE','some','_config','_unitOnClients','stack','collaboration-client-ui.collaboration.closeRoom','_adapter','_showConflictCacheClearFailedNotification','toRgbString','_range','all','getMemberID','1269136tNAygD','engine','_retryConflictCacheClear','replaceState','853148plqWNc','TEXT','getCurrentSelections','isActive','_sendLocalPresence','dispose$','subunit','_draw','_selfUnitIDs','history','delete','_startBlinking',',\x200.2)','RemoveRowCommandId','getUnhiddenWorksheets','totalBlocks','state$','parseInt','currentSkeleton$','HEADER','presenceKind','_labelPosition','origin','measureText','redoState','arc','_docSyncEditingCollabCursorService','_disposeEntitiesForType','_initResize','_replaceConflictNotification','columnGroupId','reason','prepareTransformSelections','removeItem','CONFLICT_CACHE_CLEAR_FAILED','disposeUnit','_transformUndoRedoStack','_transformHistoryAndStateStack','_colorAssignService','_docTransformIMECacheService','lineTo','textRanges','collaboration-client-ui.conflict.processing','_cursors','getCellIndexByOffset','48DXIOPq','40278OiSJcI','setInterval','_docSelectionManagerService','getSelectionInfo','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_handleEvent','_initStatusComponent','_initEvent','_clearRemotePresences','1672088EBjsja','parse','collaboration-client-ui.collabStatus.conflict','shareInterval','...','from','_updateMessage','InsertRangeMoveRightCommandId','OTHER_CLIENTS_EDITING','min','_hover','catch','registerCommand','_status$','#FFF','_initialized','_cursorInfo$','@univerjs-pro/collaboration-client-ui','string','function','_imageIoService','closePath','univer-text-gray-400','row','_backgroundColor','snapshot-loading-timeout','transformByState','onStarting','_showConflictProcessingNotification','toISOString','getValue','toString','_startSheetCollabCursor','collaboration-client-ui.snapshotLoading.timeout','cursorInfo','sheetID','fillRule','_toggleOnline','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_updateCollabCursors','_messageIds','_ensureSubject','createSocket','/run/','searchParams','isArray','3Sjtbmg','22290fdkXau','univer-appearance-none','status$','SUBMIT_CHANGESET_TIMEOUT','removeParam','timeoutState$','color','getMember','selection','push','_color'];_0x2133=function(){return _0x3edb17;};return _0x2133();}const Rn=_0x4ed343(_0x14429d(0x206));let zn=class extends _0x32162e{constructor(_0x3c463f,_0x17d4e1,_0x2cb85a,_0x2dfece){const _0xc190db=_0x14429d;super(),this[_0xc190db(0x331)]=_0x3c463f,this['_logService']=_0x17d4e1,this['_commandService']=_0x2cb85a,this[_0xc190db(0x3e0)]=_0x2dfece,this['_init']()[_0xc190db(0x2d8)](_0x46425e=>this['_logService'][_0xc190db(0x356)]('[CollaborationDataLoaderController]',_0x46425e));}async[_0x14429d(0x3b8)](){const _0xab14ed=_0x14429d;let _0x4f2f9c=this[_0xab14ed(0x331)][_0xab14ed(0x427)]('unit'),_0x8e47e3=this[_0xab14ed(0x331)][_0xab14ed(0x427)](_0xab14ed(0x3e6)),_0x28080a=this['_urlService'][_0xab14ed(0x427)](_0xab14ed(0x29c));if(!_0x4f2f9c||!_0x8e47e3){this[_0xab14ed(0x394)][_0xab14ed(0x3ed)](_0xab14ed(0x281),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x5af270=await this['_dataLoaderService'][_0xab14ed(0x3bf)](_0x4f2f9c,Number(_0x8e47e3),_0x28080a);this[_0xab14ed(0x3d3)]||_0x5af270&&_0x5af270 instanceof _0xc04914&&await this[_0xab14ed(0x3fe)](_0x5af270);}async[_0x14429d(0x3fe)](_0x79c135){const _0x35010f=_0x14429d;await this['_updateSubUnitFromURLParams'](_0x79c135,!0x0),!this[_0x35010f(0x3d3)]&&(_0x79c135[_0x35010f(0x397)][_0x35010f(0x203)](_0x54edaf(this[_0x35010f(0x29b)]))[_0x35010f(0x21d)](_0xa85152=>{const _0x4436a1=_0x35010f;_0xa85152&&this[_0x4436a1(0x1d4)](_0xa85152);}),this[_0x35010f(0x331)]['urlChange$'][_0x35010f(0x203)](_0x54edaf(this['dispose$']))[_0x35010f(0x21d)](()=>{const _0x54ba42=_0x35010f;this[_0x54ba42(0x24f)](_0x79c135)[_0x54ba42(0x2d8)](_0x12a3bd=>this['_logService']['error'](_0x54ba42(0x281),_0x12a3bd));}));}[_0x14429d(0x1d4)](_0x1eb55d,_0x553350=!0x1){const _0x279736=_0x14429d;let _0x57df06=this['_urlService']['getParam']('subunit');_0x1eb55d[_0x279736(0x43b)]()!==_0x57df06&&this['_urlService']['setParam'](_0x279736(0x29c),_0x1eb55d[_0x279736(0x43b)](),_0x553350);}async['_updateSubUnitFromURLParams'](_0x1d56a5,_0x3d1140=!0x1){const _0x173e41=_0x14429d;var _0x5cdfb4;let _0x27f781=this[_0x173e41(0x331)][_0x173e41(0x427)](_0x173e41(0x29c));if(!_0x27f781||!_0x1d56a5[_0x173e41(0x3c2)](_0x27f781)){let _0x1f68f4=_0x1d56a5[_0x173e41(0x2a4)]()[0x0],_0x3af0d5=_0x1d56a5['getSheetBySheetId'](_0x1f68f4);if(!_0x3af0d5||(this[_0x173e41(0x1d4)](_0x3af0d5,!0x0),this[_0x173e41(0x3d3)]))return;await this[_0x173e41(0x236)][_0x173e41(0x33a)](_0x37f956['id'],{'unitId':_0x1d56a5[_0x173e41(0x252)](),'subUnitId':_0x1f68f4});return;}(_0x3d1140||((_0x5cdfb4=_0x1d56a5[_0x173e41(0x229)]())==null?void 0x0:_0x5cdfb4['getSheetId']())!==_0x27f781)&&await this['_commandService'][_0x173e41(0x33a)](_0x37f956['id'],{'unitId':_0x1d56a5[_0x173e41(0x252)](),'subUnitId':_0x27f781});}};zn=q([K(0x0,Rn),K(0x1,_0x2a6bbd),K(0x2,_0xdaa582),K(0x3,_0x439243(_0x5c5342))],zn);let Bn=class{constructor(_0x3e8c9d,_0x425e93){const _0x3f0ffe=_0x14429d;this[_0x3f0ffe(0x247)]=_0x3e8c9d,this[_0x3f0ffe(0x398)]=_0x425e93;}['transformIMECache'](_0x164f10){const _0xec2e2c=_0x14429d;this['_transformUndoRedoStack'](_0x164f10),this[_0xec2e2c(0x1e2)](_0x164f10);}[_0x14429d(0x1d3)](_0x3a0758){const _0x583e1d=_0x14429d;let {unitID:_0x5b89da}=_0x3a0758,{redoCache:_0x5cd1f5}=this[_0x583e1d(0x398)][_0x583e1d(0x40e)](_0x5b89da)[_0x583e1d(0x259)](_0x5e2811)[_0x583e1d(0x3aa)]();if(_0x5cd1f5[_0x583e1d(0x3a5)]===0x0)return _0x3a0758;let _0x465ff7=_0x59eb5c['deepClone'](_0x3a0758[_0x583e1d(0x3a4)][0x0]);for(let _0x495d62=0x0;_0x495d62<_0x5cd1f5['length'];_0x495d62++){let _0x10411a={'id':'doc.mutation.rich-text-editing','params':{..._0x5cd1f5[_0x495d62]}},_0x585f6c=this[_0x583e1d(0x247)][_0x583e1d(0x26d)](_0x465ff7,_0x10411a,!0x1);if(_0x51b014(_0x585f6c))throw _0x585f6c[_0x583e1d(0x356)];_0x465ff7=_0x585f6c['m1Prime'];}return{..._0x59eb5c[_0x583e1d(0x426)](_0x3a0758),'mutations':[_0x465ff7]};}[_0x14429d(0x2ba)](_0x5c32fa){const _0x5a2162=_0x14429d;let {unitID:_0x3c6364}=_0x5c32fa,_0x5752b5=this[_0x5a2162(0x398)]['getRenderUnitById'](_0x3c6364)['with'](_0x5e2811),{undoCache:_0x3a682f,redoCache:_0x297c09}=_0x5752b5['getUndoRedoMutationParamsCache']();if(_0x3a682f[_0x5a2162(0x3a5)]===0x0||_0x297c09[_0x5a2162(0x3a5)]===0x0)return;let _0x21d6f6=[],_0x225694=[],_0x214786=_0x59eb5c[_0x5a2162(0x426)](_0x5c32fa[_0x5a2162(0x3a4)][0x0]),_0x262809=_0x59eb5c['deepClone'](_0x5c32fa[_0x5a2162(0x3a4)][0x0]);for(let _0x3923e5=_0x3a682f[_0x5a2162(0x3a5)]-0x1;_0x3923e5>=0x0;_0x3923e5--){let _0x5f216d={'id':_0x5a2162(0x3b6),'params':{..._0x3a682f[_0x3923e5]}},_0x467eb2={'id':'doc.mutation.rich-text-editing','params':{..._0x297c09[_0x3923e5]}},_0x17eb4c=this[_0x5a2162(0x247)][_0x5a2162(0x26d)](_0x214786,_0x5f216d,!0x1),_0x4b0bef=this[_0x5a2162(0x247)][_0x5a2162(0x26d)](_0x262809,_0x467eb2,!0x1);if(_0x51b014(_0x17eb4c))throw _0x17eb4c[_0x5a2162(0x356)];if(_0x51b014(_0x4b0bef))throw _0x4b0bef[_0x5a2162(0x356)];_0x21d6f6[_0x5a2162(0x1e5)](_0x17eb4c[_0x5a2162(0x33c)][_0x5a2162(0x38c)]),_0x225694[_0x5a2162(0x1e5)](_0x4b0bef['m2Prime'][_0x5a2162(0x38c)]),_0x214786=_0x17eb4c['m1Prime'],_0x262809=_0x4b0bef[_0x5a2162(0x386)];}_0x5752b5[_0x5a2162(0x23a)]({'undoCache':_0x21d6f6,'redoCache':_0x225694});}[_0x14429d(0x1e2)](_0x59ab37){const _0x506b19=_0x14429d;let {unitID:_0x5725f5}=_0x59ab37,_0x59a58b=this[_0x506b19(0x398)]['getRenderUnitById'](_0x5725f5)[_0x506b19(0x259)](_0x5e2811),_0x18cca3=_0x59a58b[_0x506b19(0x429)]();if(_0x18cca3==null)return;let _0x69d638=[{'id':_0x506b19(0x3b6),'params':{'unitId':_0x59ab37[_0x506b19(0x369)],'actions':null,'textRanges':[_0x18cca3]}}],_0x4d317c=this[_0x506b19(0x247)][_0x506b19(0x377)](_0x59ab37,_0x69d638);if(!_0x5da30d(_0x4d317c))throw _0x4d317c[_0x506b19(0x356)];let _0x1530d5=_0x4d317c[_0x506b19(0x33c)][0x0][_0x506b19(0x38c)][_0x506b19(0x2bf)];Array[_0x506b19(0x2fa)](_0x1530d5)&&_0x1530d5[_0x506b19(0x3a5)]&&_0x59a58b[_0x506b19(0x205)](_0x1530d5[0x0]);}};Bn=q([K(0x0,_0x3e0970),K(0x1,_0x3ddfbd)],Bn);let Vn=class{constructor(_0x218190,_0xe408f3,_0x1a03ef){const _0x18dcb8=_0x14429d;this[_0x18dcb8(0x34e)]=_0x218190,this[_0x18dcb8(0x247)]=_0xe408f3,this[_0x18dcb8(0x282)]=_0x1a03ef;}['transformStateCache'](_0x31e89a){const _0x488447=_0x14429d;this[_0x488447(0x2bb)](_0x31e89a);}[_0x14429d(0x1d3)](_0x49eadf){const _0x24aa15=_0x14429d;let {unitID:_0xcb539a}=_0x49eadf,{collaboration:_0x2402c1}=this[_0x24aa15(0x282)][_0x24aa15(0x278)](_0xcb539a);if(_0x2402c1[_0x24aa15(0x3a5)]===0x0)return _0x49eadf;let _0x3d1490=_0x59eb5c[_0x24aa15(0x426)](_0x49eadf[_0x24aa15(0x3a4)][0x0]);for(let _0x35deb1=0x0;_0x35deb1<_0x2402c1[_0x24aa15(0x3a5)];_0x35deb1++){let _0x302cf4={'id':_0x24aa15(0x3b6),'params':{'unitId':_0x2402c1[_0x35deb1][_0x24aa15(0x210)],..._0x2402c1[_0x35deb1][_0x24aa15(0x2ae)]}},_0x30d6bf=this[_0x24aa15(0x247)][_0x24aa15(0x26d)](_0x3d1490,_0x302cf4,!0x1);if(_0x51b014(_0x30d6bf))throw _0x30d6bf[_0x24aa15(0x356)];_0x3d1490=_0x30d6bf[_0x24aa15(0x386)];}return{..._0x59eb5c['deepClone'](_0x49eadf),'mutations':[_0x3d1490]};}[_0x14429d(0x2bb)](_0x81d4ae){const _0x3ccc1f=_0x14429d;let {unitID:_0x2892c9}=_0x81d4ae,{history:_0x2c0b2f,collaboration:_0x46be5e}=this[_0x3ccc1f(0x282)][_0x3ccc1f(0x278)](_0x2892c9);if(_0x2c0b2f[_0x3ccc1f(0x3a5)]===0x0&&_0x46be5e[_0x3ccc1f(0x3a5)]===0x0)return;let _0x2e17e4=[],_0x29f09f=[],_0x40abb1=_0x59eb5c[_0x3ccc1f(0x426)](_0x81d4ae['mutations'][0x0]),_0x100036=_0x59eb5c[_0x3ccc1f(0x426)](_0x81d4ae['mutations'][0x0]);for(let _0x1dcef3=_0x2c0b2f[_0x3ccc1f(0x3a5)]-0x1;_0x1dcef3>=0x0;_0x1dcef3--){let _0x3f1168={'id':_0x3ccc1f(0x3b6),'params':{'unitId':_0x2c0b2f[_0x1dcef3]['unitId'],..._0x2c0b2f[_0x1dcef3][_0x3ccc1f(0x266)]}},_0x528575={'id':_0x3ccc1f(0x3b6),'params':{'unitId':_0x2c0b2f[_0x1dcef3][_0x3ccc1f(0x210)],..._0x2c0b2f[_0x1dcef3][_0x3ccc1f(0x2ae)]}},_0x5bd623=this[_0x3ccc1f(0x247)][_0x3ccc1f(0x26d)](_0x40abb1,_0x3f1168,!0x1),_0x325e5c=this[_0x3ccc1f(0x247)]['transformMutation'](_0x100036,_0x528575,!0x1);if(_0x51b014(_0x5bd623))throw _0x5bd623[_0x3ccc1f(0x356)];if(_0x51b014(_0x325e5c))throw _0x325e5c[_0x3ccc1f(0x356)];_0x2e17e4[_0x3ccc1f(0x1e5)]({..._0x2c0b2f[_0x1dcef3],'undoState':_0x5bd623[_0x3ccc1f(0x33c)][_0x3ccc1f(0x38c)],'redoState':_0x325e5c[_0x3ccc1f(0x33c)][_0x3ccc1f(0x38c)]}),_0x40abb1=_0x5bd623['m1Prime'],_0x100036=_0x325e5c['m1Prime'];}_0x40abb1=_0x59eb5c[_0x3ccc1f(0x426)](_0x81d4ae['mutations'][0x0]),_0x100036=_0x59eb5c[_0x3ccc1f(0x426)](_0x81d4ae['mutations'][0x0]);for(let _0x3f22b4=_0x46be5e['length']-0x1;_0x3f22b4>=0x0;_0x3f22b4--){let _0x597da0={'id':_0x3ccc1f(0x3b6),'params':{'unitId':_0x46be5e[_0x3f22b4][_0x3ccc1f(0x210)],..._0x46be5e[_0x3f22b4][_0x3ccc1f(0x266)]}},_0x303a85={'id':_0x3ccc1f(0x3b6),'params':{'unitId':_0x46be5e[_0x3f22b4][_0x3ccc1f(0x210)],..._0x46be5e[_0x3f22b4][_0x3ccc1f(0x2ae)]}},_0x1c1d2d=this[_0x3ccc1f(0x247)][_0x3ccc1f(0x26d)](_0x40abb1,_0x597da0,!0x1),_0x4db935=this[_0x3ccc1f(0x247)][_0x3ccc1f(0x26d)](_0x100036,_0x303a85,!0x1);if(_0x51b014(_0x1c1d2d))throw _0x1c1d2d['error'];if(_0x51b014(_0x4db935))throw _0x4db935[_0x3ccc1f(0x356)];_0x29f09f[_0x3ccc1f(0x1e5)]({..._0x46be5e[_0x3f22b4],'undoState':_0x1c1d2d[_0x3ccc1f(0x33c)][_0x3ccc1f(0x38c)],'redoState':_0x4db935[_0x3ccc1f(0x33c)][_0x3ccc1f(0x38c)]}),_0x40abb1=_0x1c1d2d[_0x3ccc1f(0x386)],_0x100036=_0x4db935[_0x3ccc1f(0x386)];}this[_0x3ccc1f(0x282)][_0x3ccc1f(0x345)](_0x2892c9,{'history':_0x2e17e4,'collaboration':_0x29f09f});}};Vn=q([K(0x0,_0x439243(_0x2c4c1e)),K(0x1,_0x3e0970),K(0x2,_0x439243(_0x12942b))],Vn);let Hn=class{constructor(_0x387f58,_0x522088){const _0xfc9809=_0x14429d;this['_docSelectionManagerService']=_0x387f58,this[_0xfc9809(0x247)]=_0x522088;}[_0x14429d(0x2b6)](_0x25cce5){const _0x24e5ef=_0x14429d;var _0x5e630f;let _0x1c1857=this[_0x24e5ef(0x2c6)]['getDocRanges']()??[],_0x971fe2=this[_0x24e5ef(0x2c6)][_0x24e5ef(0x2c7)]();if(_0x1c1857[_0x24e5ef(0x3a5)]===0x0||_0x971fe2==null)return null;let _0x3d18d0=_0x25cce5[_0x24e5ef(0x369)],_0x3beed9=[{'id':_0x24e5ef(0x3b6),'params':{'unitId':_0x3d18d0,'actions':null,'textRanges':_0x1c1857}}],_0x59dd6d=this[_0x24e5ef(0x247)][_0x24e5ef(0x377)](_0x25cce5,_0x3beed9);if(!_0x5da30d(_0x59dd6d))throw _0x59dd6d[_0x24e5ef(0x356)];let _0x5ba1ad=(_0x5e630f=_0x59dd6d[_0x24e5ef(0x33c)][0x0])==null?void 0x0:_0x5e630f['params'],_0x23c04e=_0x5ba1ad&&typeof _0x5ba1ad==_0x24e5ef(0x26a)&&_0x24e5ef(0x2bf)in _0x5ba1ad?_0x5ba1ad[_0x24e5ef(0x2bf)]:null;if(!Gn(_0x23c04e))return null;let _0x4d4d82=Un(_0x25cce5['mutations'][_0x24e5ef(0x287)](_0xd27efe=>Kn(_0xd27efe[_0x24e5ef(0x38c)]))?_0x23c04e['filter'](_0x325810=>!('tableId'in _0x325810)):_0x23c04e,{..._0x971fe2,'options':_0x971fe2[_0x24e5ef(0x42a)]?{..._0x971fe2['options'],'wholeDocument':!0x1}:void 0x0}),_0x5a730f={'unitId':_0x3d18d0,'subUnitId':_0x3d18d0};this[_0x24e5ef(0x2c6)][_0x24e5ef(0x3e4)](_0x4d4d82,_0x5a730f);let _0x3cd780=!0x0;return{'commit':()=>{_0x3cd780=!0x1;},'rollback':()=>{_0x3cd780&&(_0x3cd780=!0x1,this['_docSelectionManagerService']['replaceSelectionInfoWithoutRefresh'](_0x971fe2,_0x5a730f));}};}};Hn=q([K(0x0,_0x439243(_0x25ff25)),K(0x1,_0x3e0970)],Hn);function Un(_0x35f42c,_0x224551){const _0x1f0377=_0x14429d;let _0x37c632=[],_0x3680af=[];for(let _0x59df0d of _0x35f42c)Wn(_0x59df0d)?_0x3680af[_0x1f0377(0x305)](_0x59df0d):_0x37c632[_0x1f0377(0x305)](_0x59df0d);return{..._0x224551,'textRanges':_0x37c632,'rectRanges':_0x3680af};}function Wn(_0xcf643b){const _0x49229c=_0x14429d;return _0x49229c(0x43c)in _0xcf643b;}function Gn(_0x275aa8){const _0x59c977=_0x14429d;return Array[_0x59c977(0x2fa)](_0x275aa8)&&_0x275aa8['every'](_0x117063=>typeof _0x117063==_0x59c977(0x26a)&&!!_0x117063&&'startOffset'in _0x117063&&'endOffset'in _0x117063);}function Kn(_0x3fe14d){const _0x413d91=_0x14429d;return _0x3fe14d===_0x413d91(0x257)?!0x0:Array['isArray'](_0x3fe14d)?_0x3fe14d[_0x413d91(0x287)](_0x4d626e=>Kn(_0x4d626e)):!_0x3fe14d||typeof _0x3fe14d!=_0x413d91(0x26a)?!0x1:Object[_0x413d91(0x3d1)](_0x3fe14d)[_0x413d91(0x287)](_0x2be097=>Kn(_0x2be097));}let qn=class extends _0x4af7ce{constructor(_0x5869d8,_0x2fc95f,_0xca1ed2,_0x28e8cc,_0x4c18d8,_0x24d783,_0x2bbc96){const _0x5fab1a=_0x14429d;super(),this[_0x5fab1a(0x421)]=_0x5869d8,this[_0x5fab1a(0x2bd)]=_0x2fc95f,this[_0x5fab1a(0x209)]=_0xca1ed2,this['_docTransformSelectionsService']=_0x28e8cc,this[_0x5fab1a(0x2b0)]=_0x4c18d8,this[_0x5fab1a(0x439)]=_0x24d783,this[_0x5fab1a(0x221)]=_0x2bbc96,G(this,_0x5fab1a(0x2da),new _0x4a802e(_0x22cbf4[_0x5fab1a(0x1e0)])),this[_0x5fab1a(0x41c)]();}[_0x14429d(0x41c)](){const _0x1e50f2=_0x14429d;this[_0x1e50f2(0x406)](this[_0x1e50f2(0x421)]['entityInit$'][_0x1e50f2(0x21d)](_0x2b2e40=>{const _0x103be9=_0x1e50f2;_0x2b2e40 instanceof _0x2b3bac&&_0x2b2e40['addHandlerCallback']({'onTransformIME':_0x52bcc0=>this[_0x103be9(0x2bd)][_0x103be9(0x39d)](_0x52bcc0),'onTransformState':_0x162123=>this[_0x103be9(0x209)][_0x103be9(0x1f2)](_0x162123),'onPrepareTransformSelections':_0x3ba558=>this[_0x103be9(0x1d5)]['prepareTransformSelections'](_0x3ba558),'onSyncEditingCollabCursor':_0x557b7c=>this[_0x103be9(0x2b0)]['syncEditingCollabCursor'](_0x557b7c),'onTransformRemoteChangesetByIMECache':_0x3b5943=>this['_docTransformIMECacheService'][_0x103be9(0x1d3)](_0x3b5943),'onTransformRemoteChangesetByStateCache':_0x31a09a=>this[_0x103be9(0x209)]['transformRemoteChangeset'](_0x31a09a)});}));}};qn=q([K(0x0,_0x439243(_0x479467)),K(0x1,_0x439243(Bn)),K(0x2,_0x439243(Vn)),K(0x3,_0x439243(Hn)),K(0x4,_0x439243(_n)),K(0x5,_0x42a5ed),K(0x6,_0x439243(_0x2d982f))],qn);let Jn=class extends _0x4af7ce{constructor(_0x477f81,_0x49a75d,_0x365527,_0x1553d5){const _0x50a375=_0x14429d;super(),this[_0x50a375(0x34e)]=_0x477f81,this[_0x50a375(0x3f1)]=_0x49a75d,this[_0x50a375(0x394)]=_0x365527,this[_0x50a375(0x376)]=_0x1553d5,G(this,_0x50a375(0x346),void 0x0),this['_init']();}[_0x14429d(0x3b8)](){const _0x5dfc31=_0x14429d;this[_0x5dfc31(0x357)](),this[_0x5dfc31(0x37b)](),this[_0x5dfc31(0x388)](),this[_0x5dfc31(0x3b0)]();}[_0x14429d(0x3b0)](){const _0x49555c=_0x14429d;this['disposeWithMe'](this['_collaborationSessionService'][_0x49555c(0x216)][_0x49555c(0x21d)](_0x20d418=>{const _0x31bae3=_0x49555c;this[_0x31bae3(0x346)]=_0x20d418==null?void 0x0:_0x20d418['memberID'];}));}[_0x14429d(0x357)](){const _0x2bbdc6=_0x14429d;let _0x135831=_0x288b97=>{const _0x37ecdb=_0x3d03;var _0x56786a;this[_0x37ecdb(0x232)](_0x37ecdb(0x356),_0x37ecdb(0x25c)+_0x288b97[_0x37ecdb(0x371)]+_0x37ecdb(0x3c4)+_0x288b97['filename']+':'+_0x288b97[_0x37ecdb(0x3bc)]+':'+_0x288b97['colno']+'\x0a'+(((_0x56786a=_0x288b97['error'])==null?void 0x0:_0x56786a[_0x37ecdb(0x28a)])||''));};window[_0x2bbdc6(0x37f)]('error',_0x135831),this[_0x2bbdc6(0x406)](()=>{const _0xf6638d=_0x2bbdc6;window['removeEventListener'](_0xf6638d(0x356),_0x135831);});}[_0x14429d(0x37b)](){const _0x1a91b9=_0x14429d;let _0x46edf7=_0x5c5456=>{const _0x5f5a87=_0x3d03;this[_0x5f5a87(0x232)]('error','[Unhandled\x20Rejection]:\x20'+_0x5c5456[_0x5f5a87(0x2b5)]);};window[_0x1a91b9(0x37f)]('unhandledrejection',_0x46edf7),this[_0x1a91b9(0x406)](()=>{const _0x2bff6a=_0x1a91b9;window[_0x2bff6a(0x367)](_0x2bff6a(0x3b1),_0x46edf7);});}['_monkeyPatchLogService'](){const _0x32e796=_0x14429d;let _0x51f309=this['_logService'][_0x32e796(0x356)]['bind'](this[_0x32e796(0x394)]);this[_0x32e796(0x394)][_0x32e796(0x356)]=(..._0x2ab2f2)=>{const _0x49eac6=_0x32e796;let _0x282907=_0x2ab2f2['map'](_0xb3b9d3=>_0xb3b9d3 instanceof Error?_0xb3b9d3['message']+'\x0a'+_0xb3b9d3[_0x49eac6(0x28a)]:String(_0xb3b9d3))['join']('\x20');this[_0x49eac6(0x232)](_0x49eac6(0x356),_0x49eac6(0x408)+_0x282907),_0x51f309(..._0x2ab2f2);},this[_0x32e796(0x406)](()=>{const _0x2a984d=_0x32e796;this[_0x2a984d(0x394)][_0x2a984d(0x356)]=_0x51f309;});}[_0x14429d(0x232)](_0x1daf5c,_0x2bd698){const _0x332472=_0x14429d;try{let _0x2ed5e0={'userId':this['_memberID'],'logLabel':_0x1daf5c,'content':_0x2bd698};this[_0x332472(0x3f1)][_0x332472(0x242)](_0x332472(0x338),{'body':_0x2ed5e0})['catch'](()=>{});}catch{}}};Jn=q([K(0x0,_0x439243(_0x2c4c1e)),K(0x1,_0x439243(_0x103ec5)),K(0x2,_0x2a6bbd),K(0x3,_0x439243(_0x2b2a41))],Jn);function Yn({state$:_0xd70bad}){const _0x4071e5=_0x14429d;let _0x196744=_0x40178e(_0xd70bad,null,!0x0);return _0x196744?_0x17f736(_0x4071e5(0x1e9),{'data-u-comp':_0x4071e5(0x2e6),'role':_0x4071e5(0x1ee),'className':_0x4071e5(0x23b),'children':[_0x55526a(_0x4d4450,{'className':_0x4071e5(0x30b)}),_0x55526a('span',{'children':_0x196744[_0x4071e5(0x258)]}),_0x55526a(_0x3c19f4,{'size':_0x4071e5(0x1cd),'variant':_0x4071e5(0x433),'onClick':()=>window[_0x4071e5(0x35c)][_0x4071e5(0x21b)](),'children':_0x196744['refreshLabel']})]}):null;}const Xn=_0x14429d(0x312);let Zn=class extends _0x4af7ce{constructor(_0x3e1bd8,_0x3895a9,_0x109b11,_0x21eed4,_0x1831b8,_0x190bd3){const _0x54a9d8=_0x14429d;super(),this['_snapshotLoadingService']=_0x3e1bd8,this[_0x54a9d8(0x439)]=_0x3895a9,this[_0x54a9d8(0x221)]=_0x109b11,this[_0x54a9d8(0x34e)]=_0x21eed4,this[_0x54a9d8(0x331)]=_0x190bd3,G(this,_0x54a9d8(0x1ca),new _0x4a802e(null)),G(this,_0x54a9d8(0x2f5),new Set()),G(this,_0x54a9d8(0x31c),new Map()),G(this,_0x54a9d8(0x263),new Map()),G(this,_0x54a9d8(0x301),this[_0x54a9d8(0x1ca)][_0x54a9d8(0x1e6)]());let _0x1abd1d=()=>_0x1b7724(Yn,{'state$':this[_0x54a9d8(0x301)]});this[_0x54a9d8(0x406)](_0x1831b8[_0x54a9d8(0x276)](_0x589fc3[_0x54a9d8(0x213)],()=>_0x9d541b(_0x1abd1d,this[_0x54a9d8(0x34e)]))),this['disposeWithMe'](this['_snapshotLoadingService'][_0x54a9d8(0x2a6)][_0x54a9d8(0x21d)](_0x28dfff=>{const _0x569ad7=_0x54a9d8;this[_0x569ad7(0x263)]=_0x28dfff,_0x28dfff[_0x569ad7(0x333)](_0x1c5591=>this[_0x569ad7(0x2d3)](_0x1c5591));})),this[_0x54a9d8(0x406)](this[_0x54a9d8(0x331)][_0x54a9d8(0x3a8)]['subscribe'](()=>{const _0x2a76ba=_0x54a9d8;this[_0x2a76ba(0x263)][_0x2a76ba(0x333)](_0x111d07=>this['_updateMessage'](_0x111d07));}));}[_0x14429d(0x381)](){const _0x1dec8b=_0x14429d;this[_0x1dec8b(0x2f5)][_0x1dec8b(0x333)](_0x18ed47=>this[_0x1dec8b(0x439)]['remove'](_0x18ed47)),this[_0x1dec8b(0x2f5)]['clear'](),this[_0x1dec8b(0x31c)][_0x1dec8b(0x333)](({timeoutId:_0x469604})=>clearTimeout(_0x469604)),this['_blockProgressWatches']['clear'](),this[_0x1dec8b(0x1ca)][_0x1dec8b(0x24e)](),super[_0x1dec8b(0x381)]();}[_0x14429d(0x2d3)](_0x540eaa){const _0x4c1807=_0x14429d;let _0x30a809=''+Xn+_0x540eaa[_0x4c1807(0x210)];if(_0x540eaa[_0x4c1807(0x387)]===_0x56bb07[_0x4c1807(0x286)]){this[_0x4c1807(0x43f)](_0x540eaa[_0x4c1807(0x210)]),this[_0x4c1807(0x410)](_0x540eaa[_0x4c1807(0x210)]),this[_0x4c1807(0x439)][_0x4c1807(0x3b5)](_0x30a809),this[_0x4c1807(0x2f5)][_0x4c1807(0x2a0)](_0x30a809);return;}if(!this[_0x4c1807(0x340)](_0x540eaa[_0x4c1807(0x210)])){this[_0x4c1807(0x43f)](_0x540eaa[_0x4c1807(0x210)]),this[_0x4c1807(0x410)](_0x540eaa['unitId']),this[_0x4c1807(0x439)][_0x4c1807(0x3b5)](_0x30a809),this[_0x4c1807(0x2f5)][_0x4c1807(0x2a0)](_0x30a809);return;}if(_0x540eaa['stage']===_0x56bb07[_0x4c1807(0x3d5)]){this['_clearBlockProgressWatch'](_0x540eaa[_0x4c1807(0x210)]),this[_0x4c1807(0x410)](_0x540eaa[_0x4c1807(0x210)]),this[_0x4c1807(0x439)][_0x4c1807(0x23e)]({'id':_0x30a809,'type':_0x3e9b02[_0x4c1807(0x41f)],'content':this['_localeService']['t'](_0x4c1807(0x380))}),this['_messageIds']['delete'](_0x30a809);return;}if(_0x540eaa['stage']!==_0x56bb07[_0x4c1807(0x35a)]||_0x540eaa[_0x4c1807(0x2a5)]<=0xa){this[_0x4c1807(0x43f)](_0x540eaa[_0x4c1807(0x210)]),this['_messageService']['remove'](_0x30a809),this[_0x4c1807(0x2f5)][_0x4c1807(0x2a0)](_0x30a809);return;}this[_0x4c1807(0x3a3)](_0x540eaa)||(this[_0x4c1807(0x439)]['show']({'id':_0x30a809,'type':_0x3e9b02[_0x4c1807(0x25f)],'duration':0x1/0x0,'content':this[_0x4c1807(0x221)]['t']('collaboration-client-ui.collabStatus.fetchMiss')+'\x20'+_0x540eaa[_0x4c1807(0x26e)]+'/'+_0x540eaa[_0x4c1807(0x2a5)]}),this[_0x4c1807(0x2f5)]['add'](_0x30a809));}[_0x14429d(0x3a3)](_0x309477){const _0x4a4556=_0x14429d;let _0x394e5d=this[_0x4a4556(0x31c)][_0x4a4556(0x341)](_0x309477[_0x4a4556(0x210)]);if((_0x394e5d==null?void 0x0:_0x394e5d['loadedBlocks'])===_0x309477[_0x4a4556(0x26e)])return _0x394e5d[_0x4a4556(0x33b)];this[_0x4a4556(0x43f)](_0x309477[_0x4a4556(0x210)]);let _0x5034bd=setTimeout(()=>{const _0x335760=_0x4a4556;let _0x1224ca=this[_0x335760(0x31c)][_0x335760(0x341)](_0x309477['unitId']);if(!_0x1224ca||_0x1224ca[_0x335760(0x3ae)]!==_0x5034bd)return;_0x1224ca['timedOut']=!0x0;let _0x357629=''+Xn+_0x309477['unitId'];this[_0x335760(0x439)][_0x335760(0x3b5)](_0x357629),this[_0x335760(0x2f5)][_0x335760(0x2a0)](_0x357629),this[_0x335760(0x1ca)][_0x335760(0x362)]({'unitId':_0x309477[_0x335760(0x210)],'content':this[_0x335760(0x221)]['t'](_0x335760(0x2ee),String(_0x309477[_0x335760(0x26e)]),String(_0x309477[_0x335760(0x2a5)])),'refreshLabel':this[_0x335760(0x221)]['t'](_0x335760(0x1de))});},0xea60);return this['_blockProgressWatches'][_0x4a4556(0x1fc)](_0x309477[_0x4a4556(0x210)],{'loadedBlocks':_0x309477['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x5034bd}),!0x1;}[_0x14429d(0x43f)](_0x722b30){const _0x459dee=_0x14429d;let _0x5accd2=this[_0x459dee(0x31c)][_0x459dee(0x341)](_0x722b30);_0x5accd2&&(clearTimeout(_0x5accd2['timeoutId']),this['_blockProgressWatches'][_0x459dee(0x2a0)](_0x722b30),this[_0x459dee(0x410)](_0x722b30));}[_0x14429d(0x410)](_0x2a8ead){const _0x49d590=_0x14429d;var _0x292b62;((_0x292b62=this[_0x49d590(0x1ca)][_0x49d590(0x330)])==null?void 0x0:_0x292b62[_0x49d590(0x210)])===_0x2a8ead&&this[_0x49d590(0x1ca)][_0x49d590(0x362)](null);}[_0x14429d(0x340)](_0x419c58){const _0x12718c=_0x14429d;let _0x3d028a=this[_0x12718c(0x331)][_0x12718c(0x427)](_0x12718c(0x262));return!_0x3d028a||_0x3d028a===_0x419c58;}};Zn=q([K(0x0,_0x439243(_0x15d5cd)),K(0x1,_0x42a5ed),K(0x2,_0x439243(_0x2d982f)),K(0x3,_0x439243(_0x2c4c1e)),K(0x4,_0x36acb8),K(0x5,Rn)],Zn);let Qn=class extends _0x4af7ce{constructor(_0x12b979,_0x100504,_0x5a6b3a){const _0x34e3e2=_0x14429d;super(),this['_configService']=_0x12b979,this[_0x34e3e2(0x3c0)]=_0x100504,this['_revisionService']=_0x5a6b3a,G(this,_0x34e3e2(0x36f),new Map()),G(this,'_saveTaskMap',new Map()),G(this,'_activeSaveTaskMap',new Map()),G(this,_0x34e3e2(0x22f),!0x1);}[_0x14429d(0x34b)](){const _0x556c69=_0x14429d;this[_0x556c69(0x22f)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get[_0x14429d(0x22c)](){const _0x72884d=_0x14429d;return this[_0x72884d(0x244)];}[_0x14429d(0x381)](){const _0x2ef789=_0x14429d;this[_0x2ef789(0x41b)]()['then'](()=>super['dispose']());}async[_0x14429d(0x38a)](_0x4f6578){const _0x3340d1=_0x14429d;return this[_0x3340d1(0x22f)]?null:this['_localStorageService'][_0x3340d1(0x414)](_0x96f6b8(_0x4f6578));}async[_0x14429d(0x277)](_0x28d9db,_0x170f81){const _0x47565e=_0x14429d;let _0x457133=this[_0x47565e(0x3c0)][_0x47565e(0x36a)](_0x96f6b8(_0x28d9db),_0x170f81);return this['_trackActiveSaveTask'](_0x28d9db,_0x457133),!!await _0x457133;}async['backupOfflineData'](_0x3d8158,_0x59bc30){const _0x6370bb=_0x14429d;let _0x584130=this[_0x6370bb(0x36f)][_0x6370bb(0x341)](_0x3d8158)??await this[_0x6370bb(0x3c0)]['getItem'](_0x96f6b8(_0x3d8158));if(!_0x584130)return;let _0x5a2042=Date[_0x6370bb(0x35d)](),_0x5757a1=new Date(_0x5a2042)[_0x6370bb(0x2ea)]();await this[_0x6370bb(0x3c0)]['setItem'](_0x96f6b8(_0x3d8158)+':backup:'+_0x5a2042,{'reason':_0x59bc30,'createdAt':_0x5757a1,'data':_0x584130});}async[_0x14429d(0x27b)](_0x2b313e){const _0x37e644=_0x14429d;let _0x22b425=this[_0x37e644(0x244)][_0x37e644(0x341)](_0x2b313e);_0x22b425!==void 0x0&&(window['clearTimeout'](_0x22b425),this[_0x37e644(0x244)][_0x37e644(0x2a0)](_0x2b313e));let _0x58c2ba=this[_0x37e644(0x40c)][_0x37e644(0x341)](_0x2b313e);_0x58c2ba&&await Promise[_0x37e644(0x336)](_0x58c2ba),this[_0x37e644(0x36f)][_0x37e644(0x2a0)](_0x2b313e),await this['_localStorageService'][_0x37e644(0x2b7)](_0x96f6b8(_0x2b313e));}[_0x14429d(0x385)](_0x5bda6c,_0x20c83f,_0x5accc,_0x5c6d8f){const _0x2c9bdb=_0x14429d;let _0x45c71a=this[_0x2c9bdb(0x260)]['getCurrentRevOfUnit'](_0x5bda6c);this[_0x2c9bdb(0x36f)]['set'](_0x5bda6c,{'unitID':_0x5bda6c,'type':_0x20c83f,'awaitingChangeset':_0x5accc,'mutations':_0x5c6d8f,'rev':_0x45c71a}),this[_0x2c9bdb(0x244)][_0x2c9bdb(0x38f)](_0x5bda6c)||this['_scheduleSaving'](_0x5bda6c);}['_scheduleSaving'](_0x19586b){const _0x511ca0=_0x14429d;let _0x577918=this['_getSaveTimeout']();_0x577918===0x0?this['_saveCache'](_0x19586b):this[_0x511ca0(0x244)][_0x511ca0(0x1fc)](_0x19586b,window[_0x511ca0(0x1fb)](()=>this[_0x511ca0(0x3f0)](_0x19586b),_0x577918));}[_0x14429d(0x30a)](){const _0x5d3069=_0x14429d;return this[_0x5d3069(0x3f5)]['getConfig'](_0x4a71d9)??_0x22821c;}[_0x14429d(0x3f0)](_0x58e636){const _0x140218=_0x14429d;let _0x1b1cfa=this['_saveTaskMap']['get'](_0x58e636);_0x1b1cfa!==void 0x0&&window[_0x140218(0x3ec)](_0x1b1cfa);let _0x2707af=this[_0x140218(0x3c0)]['setItem'](_0x96f6b8(_0x58e636),this['_cachedData']['get'](_0x58e636))[_0x140218(0x238)](()=>this['_saveTaskMap'][_0x140218(0x2a0)](_0x58e636));return this[_0x140218(0x31d)](_0x58e636,_0x2707af),_0x2707af;}[_0x14429d(0x31d)](_0x43671b,_0x19ae6c){const _0x54d4c3=_0x14429d;let _0x5f6ade=this[_0x54d4c3(0x40c)][_0x54d4c3(0x341)](_0x43671b);_0x5f6ade||(_0x5f6ade=new Set(),this[_0x54d4c3(0x40c)]['set'](_0x43671b,_0x5f6ade)),_0x5f6ade[_0x54d4c3(0x264)](_0x19ae6c);let _0x15d822=()=>{const _0x46e61b=_0x54d4c3;_0x5f6ade[_0x46e61b(0x2a0)](_0x19ae6c),_0x5f6ade['size']===0x0&&this['_activeSaveTaskMap']['delete'](_0x43671b);};_0x19ae6c['then'](_0x15d822,_0x15d822);}async[_0x14429d(0x41b)](){const _0x5e33b2=_0x14429d;let _0x2824e3=[];this['_saveTaskMap']['forEach']((_0x1c57a6,_0x486c00)=>{const _0x1b5b73=_0x3d03;window[_0x1b5b73(0x3ec)](_0x1c57a6),_0x2824e3['push'](this[_0x1b5b73(0x3f0)](_0x486c00)[_0x1b5b73(0x238)](()=>{const _0x30344b=_0x1b5b73;this[_0x30344b(0x244)]['delete'](_0x486c00);}));}),await Promise[_0x5e33b2(0x290)](_0x2824e3);}};Qn=q([K(0x0,_0x3d218d),K(0x1,_0x30998f),K(0x2,_0x439243(_0x4c1d46))],Qn);var $n=class extends _0x32162e{constructor(){const _0x7021fd=_0x14429d;super(),G(this,_0x7021fd(0x3a8),void 0x0),this[_0x7021fd(0x3a8)]=_0x377d93(window,_0x7021fd(0x283))['pipe'](_0x54edaf(this[_0x7021fd(0x29b)]),_0xe8e11e({'bufferSize':0x1,'refCount':!0x0}),_0x318933(void 0x0));}['setParam'](_0x4b183b,_0x29f8fa,_0x48b520=!0x1){const _0x504223=_0x14429d;let _0x2b0ef5=new URL(window[_0x504223(0x35c)][_0x504223(0x38d)]);_0x2b0ef5[_0x504223(0x2f9)][_0x504223(0x1fc)](_0x4b183b,_0x29f8fa),_0x48b520?window[_0x504223(0x29f)]['replaceState']('','',_0x2b0ef5[_0x504223(0x2ec)]()):window[_0x504223(0x29f)][_0x504223(0x351)]('','',_0x2b0ef5[_0x504223(0x2ec)]());}[_0x14429d(0x300)](_0x177bb6,_0x26d6d3=!0x1){const _0x9acb23=_0x14429d;let _0x7d0182=new URL(window[_0x9acb23(0x35c)][_0x9acb23(0x38d)]);_0x7d0182[_0x9acb23(0x2f9)][_0x9acb23(0x2a0)](_0x177bb6),_0x26d6d3?window[_0x9acb23(0x29f)][_0x9acb23(0x295)]('','',_0x7d0182[_0x9acb23(0x2ec)]()):window[_0x9acb23(0x29f)][_0x9acb23(0x351)]('','',_0x7d0182[_0x9acb23(0x2ec)]());}[_0x14429d(0x427)](_0x570975){const _0x398ca5=_0x14429d;return new URL(window[_0x398ca5(0x35c)]['href'])['searchParams'][_0x398ca5(0x341)](_0x570975)??void 0x0;}};let $=class extends _0x28f90b{constructor(_0x5a9ae3=fn,_0x57fea1,_0x2c1428,_0x5ce8b5,_0x2c47cd){const _0x290fdc=_0x14429d;super(),this[_0x290fdc(0x288)]=_0x5a9ae3,this[_0x290fdc(0x398)]=_0x57fea1,this[_0x290fdc(0x34e)]=_0x2c1428,this[_0x290fdc(0x3f5)]=_0x5ce8b5,this[_0x290fdc(0x236)]=_0x2c47cd;let {..._0x162583}=_0x13839f({},fn,this[_0x290fdc(0x288)]);this['_configService'][_0x290fdc(0x269)]('collaboration-client-ui.config',_0x162583);}[_0x14429d(0x2e8)](){const _0x425d0a=_0x14429d;this[_0x425d0a(0x3f3)](),this[_0x425d0a(0x406)](this[_0x425d0a(0x236)][_0x425d0a(0x2d9)](Y)),this[_0x425d0a(0x1ef)]();}[_0x14429d(0x39a)](){const _0x1dfa58=_0x14429d;this[_0x1dfa58(0x327)]();}[_0x14429d(0x3f3)](){const _0x574a47=_0x14429d;var _0x5748c5;let _0x384595=[[mn],[Rn,{'useClass':$n}],[_0xfb68a9,{'useClass':_0x4ffb7d}],[_0x4ed906,{'useClass':Qn}],[J],[Ln],[Z],[Q],[zn],[Zn]];this[_0x574a47(0x288)]['enableDocumentCollaborationUI']!==!0x1&&_0x384595[_0x574a47(0x305)]([Hn],[Bn],[Vn],[_n],[qn],[X]),this[_0x574a47(0x288)][_0x574a47(0x401)]&&_0x384595['push']([Jn]),_0x572e92(this['_injector'],_0x356ba2(_0x384595,(_0x5748c5=this[_0x574a47(0x288)])==null?void 0x0:_0x5748c5[_0x574a47(0x35b)]));}[_0x14429d(0x327)](){const _0x282047=_0x14429d;this[_0x282047(0x288)]['enableDocumentCollaborationUI']!==!0x1&&this[_0x282047(0x406)](this[_0x282047(0x398)][_0x282047(0x211)](_0x4d263b[_0x282047(0x1e8)],[Dn])),this[_0x282047(0x406)](this[_0x282047(0x398)]['registerRenderModule'](_0x4d263b[_0x282047(0x1d9)],[kn]));}[_0x14429d(0x1ef)](){const _0xc5caad=_0x14429d;_0x2b77cb(this[_0xc5caad(0x34e)],[[Z],[Q],[J],[Ln],[zn],[Zn]]),this[_0xc5caad(0x288)]['enableDocumentCollaborationUI']!==!0x1&&_0x2b77cb(this[_0xc5caad(0x34e)],[[qn],[X]]),this['_config']['enableFrontendLog']&&_0x2b77cb(this[_0xc5caad(0x34e)],[[Jn]]);}};G($,_0x14429d(0x1d2),_0x14429d(0x417)),G($,'packageName',un),G($,'version',dn),$=q([_0x565f3d(_0x52194a,_0x2f2fac,_0xb44e6a,_0x420728,_0x42bc38,_0x4d590a,_0x4990f6),K(0x1,_0x3ddfbd),K(0x2,_0x439243(_0x2c4c1e)),K(0x3,_0x3d218d),K(0x4,_0xdaa582)],$);let er=class extends _0x3ab735{constructor(_0x38cb80,_0x5d4057,_0x2f5a2e,_0x1a2e88,_0x3ff632){super(_0x38cb80,_0x5d4057,_0x2f5a2e,_0x1a2e88,_0x3ff632);}async[_0x14429d(0x2f7)](_0x2f9c65){const _0x3231e0=_0x14429d;let _0x12050e=await this[_0x3231e0(0x3bd)](),_0xc9309b=this[_0x3231e0(0x35f)](_0x2f9c65,_0x12050e);return this[_0x3231e0(0x1ea)](_0xc9309b);}[_0x14429d(0x35f)](_0x5ad386,_0x1f5d06){const _0x538c7f=_0x14429d;let _0x2c32cd=typeof window>'u'?new URL(_0x5ad386):new URL(_0x5ad386,window['location'][_0x538c7f(0x2ac)]);_0x2c32cd[_0x538c7f(0x2f9)][_0x538c7f(0x1fc)](_0x538c7f(0x42c),_0x1f5d06);let _0x294c8d=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x538c7f(0x222)]);return _0x294c8d[_0x538c7f(0x341)](_0x538c7f(0x1eb))&&_0x2c32cd[_0x538c7f(0x2f9)][_0x538c7f(0x1fc)](_0x538c7f(0x1eb),_0x294c8d[_0x538c7f(0x341)](_0x538c7f(0x1eb))),_0x2c32cd[_0x538c7f(0x2ec)]();}async[_0x14429d(0x3bd)](){const _0x13cee4=_0x14429d;var _0x314025;let _0x281de6=this[_0x13cee4(0x3f5)][_0x13cee4(0x25b)](_0x11040d),_0x5cf232=(_0x281de6==null?void 0x0:_0x281de6[_0x13cee4(0x3cf)])??_0x4cdb73;return((_0x314025=(await this['_httpService'][_0x13cee4(0x341)](_0x5cf232,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x314025['ticket'])??'';}};er=q([K(0x0,_0x439243(_0x2c4c1e)),K(0x1,_0x439243(_0x103ec5)),K(0x2,_0x3d218d),K(0x3,_0x2a6bbd),K(0x4,_0x5da708)],er);let tr=class extends _0x4af7ce{constructor(_0x5b6126,_0x31a02b,_0x43feea){const _0xffaa6=_0x14429d;super(),this[_0xffaa6(0x220)]=_0x5b6126,this[_0xffaa6(0x3f1)]=_0x31a02b,this[_0xffaa6(0x3f5)]=_0x43feea;}async[_0x14429d(0x255)](_0x30361f,_0x336728,_0xc22b84,..._0x3829eb){const _0x5aa10d=_0x14429d;let _0x214998=this[_0x5aa10d(0x220)][_0x5aa10d(0x254)]();if(!_0x214998)throw Error(_0x5aa10d(0x225));let _0x320f1d=(this[_0x5aa10d(0x3f5)][_0x5aa10d(0x25b)](_0x40ac4f)??_0xb50b00)+'/'+_0x30361f+_0x5aa10d(0x2f8)+_0x336728,_0x180bea={'scriptId':_0x30361f,'runId':new URL(window[_0x5aa10d(0x35c)]['href'])['searchParams'][_0x5aa10d(0x341)](_0x5aa10d(0x1eb))??'','function':_0x336728,'unitId':_0x214998[_0x5aa10d(0x252)](),'argsOfFunction':JSON['stringify'](_0x3829eb),'invokeId':_0xc22b84[_0x5aa10d(0x1cb)]??'','executionId':_0xc22b84[_0x5aa10d(0x323)]??''};try{let _0x1d09a6=await this[_0x5aa10d(0x3f1)]['post'](_0x320f1d,{'body':_0x180bea});return _0x1d09a6['body'][_0x5aa10d(0x356)]&&_0x1d09a6['body']['error']['code']!==_0x41baea['OK']?'Failed':_0x1d09a6['body'][_0x5aa10d(0x3bb)];}catch{return'Failed';}}};tr=q([K(0x0,_0x4d77cc),K(0x1,_0x439243(_0x103ec5)),K(0x2,_0x3d218d)],tr);const nr=0x7530,rr='ACTIVE_UNIT_EVENT_CHANNEL';var ir=class extends _0x4af7ce{constructor(){const _0x5b0037=_0x14429d;super(),G(this,'_id',_0x5b5013()),G(this,_0x5b0037(0x29e),new Set()),G(this,_0x5b0037(0x289),new Map()),G(this,_0x5b0037(0x418),null),G(this,_0x5b0037(0x3e9),new Map()),G(this,_0x5b0037(0x284),new Map()),this['_init']();}[_0x14429d(0x381)](){const _0x3d9278=_0x14429d;super['dispose'](),this['_clearOtherTimers'][_0x3d9278(0x333)]((_0xd7e6e0,_0x5db42f)=>this[_0x3d9278(0x43a)](_0x5db42f)),this[_0x3d9278(0x418)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x14429d(0x3b7)](_0x2ddcca){const _0x5df466=_0x14429d;return this[_0x5df466(0x2f6)](_0x2ddcca)[_0x5df466(0x203)](_0x53e16d());}[_0x14429d(0x1ce)](_0x69084f){const _0x4a316b=_0x14429d;this['_selfUnitIDs'][_0x4a316b(0x241)]===0x0&&this['_scheduleHeartbeat'](),this[_0x4a316b(0x29e)][_0x4a316b(0x264)](_0x69084f),this[_0x4a316b(0x3fb)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x69084f],'isForwarded':!0x1});}[_0x14429d(0x2b9)](_0x8bd62d){const _0x41f5ac=_0x14429d;this[_0x41f5ac(0x29e)][_0x41f5ac(0x2a0)](_0x8bd62d),this[_0x41f5ac(0x29e)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x41f5ac(0x275)](this[_0x41f5ac(0x418)]);}[_0x14429d(0x3b8)](){const _0x4f9ed1=_0x14429d;this[_0x4f9ed1(0x406)](_0x1c7e61(_0x377d93(window,_0x4f9ed1(0x342))['subscribe'](_0x1d74a3=>{const _0x220f6e=_0x4f9ed1;if(_0x1d74a3[_0x220f6e(0x217)]!==rr||!_0x1d74a3['newValue'])return;let _0x436be6=JSON[_0x220f6e(0x2ce)](_0x1d74a3[_0x220f6e(0x360)]);this[_0x220f6e(0x2c9)](_0x436be6);}))),window[_0x4f9ed1(0x37f)](_0x4f9ed1(0x32d),()=>this[_0x4f9ed1(0x3fb)]({'type':0x1,'memberID':this[_0x4f9ed1(0x434)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x14429d(0x2c9)](_0x14b66d){const _0x2ef125=_0x14429d;switch(_0x14b66d[_0x2ef125(0x3e6)]){case 0x0:this[_0x2ef125(0x347)](_0x14b66d);break;case 0x1:this[_0x2ef125(0x20b)](_0x14b66d);break;case 0x2:this['_handleHeartbeatEvent'](_0x14b66d);}}[_0x14429d(0x347)](_0x2613d1){const _0x49681d=_0x14429d;let {unitIDs:_0x24247f,memberID:_0x1b1163,isForwarded:_0xe0470e}=_0x2613d1;_0x24247f['forEach'](_0x918ef9=>{const _0xebbfa9=_0x3d03;if(!_0xe0470e&&this[_0xebbfa9(0x289)][_0xebbfa9(0x38f)](_0x918ef9)&&this['_ensureSubject'](_0x918ef9)[_0xebbfa9(0x362)](_0x12fc42[_0xebbfa9(0x2d5)]),!this[_0xebbfa9(0x289)][_0xebbfa9(0x38f)](_0x918ef9)||!this['_unitOnClients'][_0xebbfa9(0x341)](_0x918ef9)['has'](_0x1b1163)){let _0x1791c1=this[_0xebbfa9(0x289)]['get'](_0x918ef9)||new Set();_0x1791c1[_0xebbfa9(0x264)](_0x1b1163),this['_unitOnClients'][_0xebbfa9(0x1fc)](_0x918ef9,_0x1791c1),this[_0xebbfa9(0x399)](_0x1b1163);}}),_0xe0470e||this[_0x49681d(0x3fb)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x49681d(0x29e)]],'isForwarded':!0x0});}[_0x14429d(0x399)](_0x305675){const _0xc5b02=_0x14429d;this[_0xc5b02(0x43a)](_0x305675);let _0x597b38=window[_0xc5b02(0x1fb)](()=>{const _0x613662=_0xc5b02;this[_0x613662(0x289)][_0x613662(0x333)](_0x47e3d4=>{_0x47e3d4['delete'](_0x305675);});},nr*0x2);this[_0xc5b02(0x3e9)]['set'](_0x305675,_0x597b38);}[_0x14429d(0x43a)](_0x3a014b){const _0x2331d9=_0x14429d;if(this['_clearOtherTimers'][_0x2331d9(0x38f)](_0x3a014b)){let _0x295521=this['_clearOtherTimers'][_0x2331d9(0x341)](_0x3a014b);_0x295521&&window[_0x2331d9(0x3ec)](_0x295521),this['_clearOtherTimers'][_0x2331d9(0x1fc)](_0x3a014b,null);}}['_handleLeaveEvent'](_0x131b40){const _0x4916e5=_0x14429d;let {memberID:_0x28611e,unitIDs:_0x3d9bec}=_0x131b40;_0x3d9bec[_0x4916e5(0x333)](_0x3cf10c=>{const _0x4944a1=_0x4916e5;var _0x1196d3;let _0xac650b=this[_0x4944a1(0x289)][_0x4944a1(0x341)](_0x3cf10c);_0xac650b&&(_0xac650b[_0x4944a1(0x2a0)](_0x28611e),(_0x1196d3=this[_0x4944a1(0x2f6)](_0x3cf10c))==null||_0x1196d3[_0x4944a1(0x362)](_0xac650b['size']===0x0?_0x12fc42[_0x4944a1(0x3df)]:_0x12fc42['OTHER_CLIENTS_EDITING']));}),this[_0x4916e5(0x43a)](_0x28611e);}[_0x14429d(0x235)](_0x1107eb){const _0x30c005=_0x14429d;this[_0x30c005(0x399)](_0x1107eb[_0x30c005(0x1c8)]);}[_0x14429d(0x3fb)](_0x20eacc){const _0x450b07=_0x14429d;localStorage[_0x450b07(0x36a)](rr,JSON[_0x450b07(0x26f)](_0x20eacc));}[_0x14429d(0x20c)](){const _0x355c0c=_0x14429d;this['_heartbeatTimer']=window[_0x355c0c(0x2c5)](()=>{const _0x3cec44=_0x355c0c;this[_0x3cec44(0x3fb)]({'type':0x2,'memberID':this[_0x3cec44(0x434)]});},nr);}[_0x14429d(0x2f6)](_0x4ce2c0){const _0x4e0925=_0x14429d;return this[_0x4e0925(0x284)][_0x4e0925(0x38f)](_0x4ce2c0)||this[_0x4e0925(0x284)][_0x4e0925(0x1fc)](_0x4ce2c0,new _0x4a802e(_0x12fc42[_0x4e0925(0x3df)])),this[_0x4e0925(0x284)][_0x4e0925(0x341)](_0x4ce2c0);}};export{er as BrowserCollaborationSocketService,J as DesktopCollaborationStatusDisplayController,Rn as IURLService,tr as RemoteUniscriptService,On as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,ir as WebBrowserSingleActiveUnitService};
1
+ function _0x47c1(_0x538897,_0x1ca550){_0x538897=_0x538897-0xd2;const _0x13ce38=_0x13ce();let _0x47c122=_0x13ce38[_0x538897];return _0x47c122;}const _0x43b1c2=_0x47c1;function _0x13ce(){const _0x3d600c=['replaceState','enableOfflineEditing','wsSessionTicketUrl','disableLocalCache','getMemberID','content','6oFzsRa','getCellIndexByOffset','addHandlerCallback','next','prototype','_startBlinking','top','_scheduleSaving','transformMutationsWithChangeset','getColorFromTheme','unshift','_heartbeatTimer','highlightSecond','_watchBlockProgress','getOffsetConfig','_clearTimeoutState','_handleHeartbeatEvent','_blinkIntervalTimer','_handleLeaveEvent','MoveRangeCommandId','_assignedColors','237544mRuSyK','unsubscribe','!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end','subscribe','PERMISSION_DENIED','_entities','transformMutation','_collaborationSessionService','_retryConflictCacheClear','InsertRowCommandId','_uiPartsService','[CollaborationDataLoaderController]','endOffset','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','collaboration-client-ui.conflict.processing','subscribeEvent','ONLINE','_monkeyPatchLogService','HEADER','location','reconnect','focused$','name','getRenderUnitById','_startDocCollabCursor','getActiveSheet','unitID','symbol','state$','stack','pushState','showText','activate','dispose$','call','collaboration-client-ui.collabStatus.syncing','preventDefault','tableSource','entityInit$','_updateURLWithCurrentState','fill','unitType','version','getValue','div','_docClipboardService','number','refreshLabel','_isBlinkVisible','endColumn','setRemotePresence','contains','_registerRenderDependencies','bold\x2013px\x20Arial,\x20sans-serif','key','_ensureSubject','_status$','setParam','toRgbString','restore','status','unitId','_httpService','_renderManagerService','setInterval','getRangePointData','_docTransformStateCacheService','_setupSubUnitSync','_collaborationUIEventService','RemoveRowCommandId','Loading','collaboration-client-ui.conflict.clearFailed','_removeRemotePresence','collab-rect-range-','labelHorizontalPosition','NO_OTHER_CLIENTS_EDITING','_highlight','_initPresenceStatusComponents','resize','univer-appearance-none','init','0.2)','columnIndex','_unitOnClients','_memberService','createInstance','syncEditingCollabCursor','hide','_onCursorDelete','_highlightSecond','finally','_getSheetObject','post','_adapter','_refreshCollabCursors','toISOString','_cursorShapes','mutations','_init','1298269zFBVbx','_bindAdapter','_uploadLog','_timeoutState$','_docTransformIMECacheService','includes','onPointerEnter$','segmentPage','color','_presenceAdapterRegistry','CONFLICT','JOIN_ROOM_FAILED','_memberID','getScrollXYInfoByViewport','sheetId','_localeService','disposeUnit','true','loadOfflineData','_getLighterColor','getUnitId','43425BNpvIV','CLOSE_ROOM','_toggleOffline','isArray','Failed','_updateLocalCursor','min','fillText','icon','_adapterRegistry','localPresence$','makeDirty','_send','addObject','_lastPointer','primary','_drawAnchor','sessionStatus$','static','24nFoVsY','currentTheme$','executeCommand','_getSaveTimeout','[Unhandled\x20Rejection]:\x20','data','lineno','getConfig','length','getCollabEntity$','RECT','getDocRanges','_entityInit$','_initialized','Error','subunit','USERS_LEAVE','_registerDependencies','body','_drawRectRange','onPointerMove$','backupOfflineData','_messageIds','alert','_labelHorizontalPosition','memberId','map','#FFF','GLOBAL','clearRemotePresences','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','FETCH_MISS','_session','LOADING_BLOCKS','addObjects','_clearRemotePresences','sessionTicket','currentSkeleton$','setTimeout','imageSourceType','_id','enableFrontendLog','polite','status$','backgroundColor','clickable','DeleteRangeMoveLeftCommandId','_initUserListener','cursorInfo$','message','_isVisibleUnit','statusUIPart','exhaustSavingTask','_themeService','tooltipKey','_startSheetCollabCursor','clearTimeout','_selfUnitIDs','getAncestorScale','defineProperty','_sendLocalPresence','catch','_transformUndoRedoStack','_draw','SUBMIT_CHANGESET_TIMEOUT','transformRemoteChangeset','registerRenderModule','update','updateOfflineData','TEXT','_hover','closePath','isEditing','_configService','@univerjs-pro/collaboration-client-ui','transform','_scheduleHeartbeat','find','flatMap','getTypeOfUnitDisposed$','[LogService\x20Error]:\x20','_docSkeleton','getFocusedUnit','univer-border-none\x20univer-bg-transparent','univer-text-orange-500','1.0.3','parse','_collabCursorState$','OTHER_CLIENT_EDITING','PENDING','_offsetY','_logService','enableLocalCache','_name','hovered','_initEvent','_drawTextRange','_transformPreviousActiveRange','_blockProgressWatches','_range','442185wGtAxD','runOnServer','with','NOT_COLLAB','_activeSaveTaskMap','black','error','rgb','collaboration-client-ui.collabStatus.offline','_initUnhandledRejectionListener','lineTo','isFinite','timeoutId','saveImage','SOCKET_FAILED','purple.300','_handleEvent','slice','_pendingEntities','set','_document','_docSkeletonManagerService','collaboration-client-ui.operation.update-remote-unit-presence','registerBeforeClose','focusedId','_shapes','_cursor','collaboration-client-ui.session.collaboration-timeout','get','stage','width','collaboration-client-ui.collabStatus.conflict','_startEntity','ranges','InsertColCommandId','_cachedData','_getMergeRange','addEventListener','send','from','removeItem','_initDependencies','transformStateCache','uni.network.url-service','_doCreateSocket','forEach','clearInterval','clear','loadedBlocks','OFFLINE','_hideTimer','then','_showConflictCacheClearFailedNotification','doc.mutation.rich-text-editing','loadUnit','href','_sheetSkeletonManagerService','eventID','_removeClearOtherTimer','getActiveRange','colno','transformIMECache','AWAITING_WITH_PENDING','_handleHover','_pointerMoveDisposable','setUndoRedoMutationParamsCache','SOCKET_FAILED_RETRY','socket$','save','memberID','range','rgba(','collaboration-client-ui.collabStatus.synced','sheetID','_presenceStatusRegistrations','toString','textRanges','_snapshotLoadingService','_disabled','timedOut','row','getMergeData','totalBlocks','collaboration-client-ui.session.connection-failed','show','size','univer-transition-all\x20univer-duration-200','startOffset','getSkeleton','_clearOtherTimers','_refRangeService','_labelPosition','snapshot-loading-','_initResize','search','tableId','onMouseMove','_registerPresenceStatusComponent','right','params','measureText','drawWith','COMPLETE','_dataLoaderService',',\x200.2)','decorate','default','state','OTHER_CLIENTS_EDITING','setOffsetY','filter','split','runId','_stopBlinking','spin','CONFLICT_PROCESSING','...','button','_online','requireSession','setShapeProps','_saveCache','invokeId','addClipboardHook','offsetY','source','clearOfflineData','complete','UNIVER_SHEET','_showConflictProcessingNotification','fillRule','dispose','_eventUnsubscribe','OPERATION','getCurrentSelections','asObservable','green.600','undoState','removeRemotePresence','searchParams','_syncAdapters','pipe','_collabCursorController','colorClass','m2Prime','registerCommand','saveTaskMap','startsWith','getUnhiddenWorksheets','_context','_collabSessionService','height','packageName','_disposeEntity','canRenderSelection','stringify','collaboration-client-ui.collaboration.closeRoom','kind','history','snapshot-loading-timeout','/universer-api/frontend/logs','univer-text-gray-400','_handleJoinEvent','collab-text-anchor-','values','_cursorInfo$','_urlService','1938222UucsBr','getViewport',':backup:','_localStorageService','_messageService','_docSelectionManagerService','selections','_initWindowErrorListener','_updateSubUnitFromURLParams','setItem','DeleteRangeMoveUpCommandId','shareInterval','\x20at\x20','_textBubble','_initStatusComponent','reason','getSheetBySheetId','onRendered','collabCursorState$','_removeCollabCursors','string','_colorIndex','onStarting','pageIndex','activeSheet$','indicator','getStateCache','left','prepareTransformSelections','entries','_initEntityListener','FOOTER','_transformService','Enter','collaboration-client-ui.collabStatus.fetchMiss','getUndoRedoMutationParamsCache','newValue','_colorAssignService','HEADER_MENU','fillStyle','AWAITING','origin','!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','_setupBeforeClosingHandler','_disposed','arc','cursorInfo','Warning','_retryingConflictCacheUnitIDs','pageType','filename','_latestStates','findNodePositionByCharIndex','add','_createSocketURL','type','_hovered','_updateCollabCursors','_collaborationController','small','m1Prime','_initCommandExecutedListener','_instanceService','push','_getScale','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ERROR','_conflictNotification','_disposeEntitiesForType','_injector','disposeWithMe','red.300','_handleCursorUpdate','collaboration-client-ui.collaboration.single-unit.warning','getAllUnitsForType','getCollabCursors$','VIEW_MAIN','assignAColorForMemberID','_isDisposed','triggerDblclick','[RemoteUniscriptService]:\x20no\x20focused\x20unit','setAlpha','collaboration-client-ui.collabStatus.notCollab','span','_docSyncEditingCollabCursorService','_syncEditingCollabCursorService','_notificationService','_updateMessage','univer-h-8\x20univer-w-8\x20univer-rounded-lg','endRow','registerRefRange','font','_initStatusListener','presenceKind','_syncPresenceStatusComponents','_roomMembers$','_onCursorUpdate','bottom','all','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-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','getCurrentTypeOfUnit$','_toggleOnline','adapters$','collaboration-client-ui.snapshotLoading.timeout','join','isActive','_color','_revisionService','UNIVER_DOC','popstate','_imageIoService','_cursors','_getSessionTicket','_scene','replace','object','highlight','_backgroundColor','labelPosition','urlChange$','rgba','univer-m-0\x20univer-p-0','_transformHistoryAndStateStack','enableDocumentCollaborationUI','some','removeEventListener','_docStateChangeManagerService','debug','setStateCache','_anchor','getCurrentRevOfUnit','_clearBlockProgressWatch','getTypeOfUnitAdded$','collaboration-client-ui.conflict.title','getCurrentUnitOfType','deepClone','function','_config','_docTransformSelectionsService','_render','_univerInstanceService','collaboration-client-ui.permission.content','getParam','reload','strokeWidth','transformByState','selectedIds','getSelectionInfo','univer-text-green-500','evenodd','moveTo','redoState','column','pointer','_localCacheService','beginPath','editingUnit','collaboration-client-ui.snapshotLoading.refresh','remove','selection','1326152VFLRBh','univer-inline-flex\x20univer-items-center\x20univer-justify-center','univer-flex\x20univer-items-center\x20univer-justify-center','unit','canRenderAnchor','has','subUnitId','collaboration-client-ui.config','onPointerLeave$','options','_anchorDot','_beforeCloseService','delete','getUnit','getMember','11664fFzrGf','_onRefRangeChange','_scheduleClearOtherTimer','onCommandExecuted','getCoordRelativeToViewport','_commandService','roomMembers','startColumn','_replaceConflictNotification','_getAnchorBounding','getLocalPresence','parseInt','_adapterDisposables','UPDATE_CURSOR','unhandledrejection','SYNCED','univer-text-blue-500','event$','_blinkTimer','text','storage','_saveTaskMap','result','registerComponent','columnGroupId','getSheetId','FromArray','_showText'];_0x13ce=function(){return _0x3d600c;};return _0x13ce();}(function(_0x35d8a3,_0x3112a4){const _0x13c5f0=_0x47c1,_0x36063b=_0x35d8a3();while(!![]){try{const _0x579994=-parseInt(_0x13c5f0(0xde))/0x1+parseInt(_0x13c5f0(0x2ab))/0x2*(parseInt(_0x13c5f0(0xf1))/0x3)+parseInt(_0x13c5f0(0x2e2))/0x4+-parseInt(_0x13c5f0(0x155))/0x5+parseInt(_0x13c5f0(0x2cd))/0x6*(parseInt(_0x13c5f0(0x345))/0x7)+parseInt(_0x13c5f0(0x29c))/0x8+-parseInt(_0x13c5f0(0x1fc))/0x9;if(_0x579994===_0x3112a4)break;else _0x36063b['push'](_0x36063b['shift']());}catch(_0x3c2e1d){_0x36063b['push'](_0x36063b['shift']());}}}(_0x13ce,0x1adea));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x598bdc,CollaborationController as _0x3089d1,CollaborationSessionService as _0x5c5d11,CollaborationSocketService as _0x132b75,CollaborationStatus as _0x22ed0b,CollaborationUIEventId as _0x5e5483,CollaborationUIEventService as _0x23f66a,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x116f3b,DEFAULT_WS_SESSION_TICKET_URL as _0x249f6a,DataLoaderService as _0x282d0f,DocCollaborationEntity as _0x2c6253,ILocalCacheService as _0x232043,LOCAL_CACHE_INTERVAL as _0x64a250,LOCAL_CACHE_INTERVAL_KEY as _0x1b65ad,MemberService as _0x3b76af,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0xb23043,SessionStatus as _0x426c,UnitStatus as _0x44c09f,UniverCollaborationClientPlugin as _0x5777f7,getLocalCacheKey as _0x5e27e8}from'@univerjs-pro/collaboration-client';import{COLORS as _0x40614d,ColorKit as _0x4e862b,CommandType as _0x44859e,DOC_RANGE_TYPE as _0x86d58a,DependentOn as _0x12e8fc,Disposable as _0xf50eed,DisposableCollection as _0x4f93f4,ICommandService as _0x9de777,IConfigService as _0x5697a0,IImageIoService as _0x4f1a5d,ILocalStorageService as _0x206a35,ILogService as _0x232361,IUniverInstanceService as _0x576907,Inject as _0x47bc9a,Injector as _0x380635,LocaleService as _0x2906e7,Plugin as _0x13d753,Rectangle as _0x1f6338,RxDisposable as _0x5daa34,ThemeService as _0x1cd93d,Tools as _0x29d05b,UniverInstanceType as _0x5658b7,Workbook as _0x4d7429,createIdentifier as _0x4a0f08,debounce as _0x32a927,fromEventSubject as _0xe2d34a,generateRandomId as _0x42801a,isInternalEditorID as _0x1364a0,merge as _0x1597ec,mergeOverrideWithDependencies as _0x2c1872,registerDependencies as _0x5655ca,toDisposable as _0x4e78ef,touchDependencies as _0xdabe6f}from'@univerjs/core';import{BuiltInUIPart as _0x3f8636,IBeforeCloseService as _0x150ea4,IMessageService as _0x3ba0c5,INotificationService as _0x1acf91,IUIPartsService as _0x2528c2,IUnitPresenceUIAdapterRegistry as _0xc6dda1,connectInjector as _0x130385,useDependency as _0xb67a20,useObservable as _0x3612e2}from'@univerjs/ui';import{BehaviorSubject as _0x4dad7b,Subject as _0x26adce,combineLatest as _0x5a1a2f,debounceTime as _0x326ecd,distinctUntilChanged as _0x290e1c,filter as _0x5128c1,fromEvent as _0x11f26e,mapTo as _0x38905b,merge as _0x25ac9f,of as _0x28b600,shareReplay as _0x5fa918,switchMap as _0x17c963,takeUntil as _0xe739dc,throttle as _0xd53fb3,timer as _0x525150}from'rxjs';import{distinctUntilChanged as _0x350493,filter as _0x1248a5,map as _0x56ab65,switchMap as _0x2876bb,takeUntil as _0x52cb54,throttleTime as _0x1ee6dd}from'rxjs/operators';import{Button as _0x5ded29,MessageType as _0x1e5e0e,Tooltip as _0x5c5292,clsx as _0x3c1640}from'@univerjs/design';import{LoadingMultiIcon as _0x317d67,OffLineIcon as _0x19936b,OnLineIcon as _0x24d322,WarningIcon as _0x46f013}from'@univerjs/icons';import{createElement as _0x51f45d,useCallback as _0x256cf4,useMemo as _0x5953f2}from'react';import{jsx as _0x502d13,jsxs as _0x1b8ed2}from'react/jsx-runtime';import{CollaborationEvent as _0x402cad,ISnapshotServerService as _0x5eb425,ITransformService as _0x38ff0a,RevisionService as _0x38f3f2,SnapshotLoadStage as _0x1664ef,SnapshotLoadingService as _0x1a282d,UniverCollaborationPlugin as _0x26a8b3,isTransformMutationFailure as _0x4e7233,isTransformMutationsWithChangesetSuccess as _0x16f367}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0xf1d164}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x2785ee,DocSkeletonManagerService as _0x187841,DocStateChangeManagerService as _0x9861ab,RichTextEditingMutation as _0x4251e3,SetTextSelectionsOperation as _0x39a549,UniverDocsPlugin as _0x1932a6}from'@univerjs/docs';import{DocIMEInputManagerService as _0x386a8e,IDocClipboardService as _0x2a92b1,NodePositionConvertToCursor as _0x4e490a,NodePositionConvertToRectRange as _0x4b546b,SetDocZoomRatioOperation as _0x55bc8a,TEXT_RANGE_LAYER_INDEX as _0x13b08e,UniverDocsUIPlugin as _0x1cee98}from'@univerjs/docs-ui';import{DocumentSkeletonPageType as _0x2b34e2,IRenderManagerService as _0x4c7906,Rect as _0x9645cc,RegularPolygon as _0x69a902,SHEET_VIEWPORT_KEY as _0x2bab45,Shape as _0x1196df,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x212f57,UniverRenderEnginePlugin as _0x575828,Vector2 as _0x1115c4,getColor as _0x335c6d,getDocumentSkeletonColumnPagePathInfo as _0x2f5118}from'@univerjs/engine-render';import{HTTPService as _0x195ec6,ISocketService as _0x1828da,UniverNetworkPlugin as _0x5555ee,WebSocketService as _0x32fca4}from'@univerjs/network';import{deserializeRangeWithSheet as _0x5ed367,serializeRangeWithSheet as _0x56ee9}from'@univerjs/engine-formula';import{EffectRefRangId as _0x15915b,RefRangeService as _0x1d8140,SetSelectionsOperation as _0x3c2123,SetWorksheetActivateCommand as _0x5b3874,SheetsSelectionsService as _0x58b4fe,handleDeleteRangeMoveLeft as _0x5e0842,handleDeleteRangeMoveUp as _0x3160b2,handleIRemoveCol as _0x554916,handleIRemoveRow as _0x41d423,handleInsertCol as _0x507425,handleInsertRangeMoveDown as _0x22a6cf,handleInsertRangeMoveRight as _0x4dbfa6,handleInsertRow as _0x2cc458,handleMoveRange as _0x25df3b,runRefRangeMutations as _0x2b3e8d}from'@univerjs/sheets';import{SheetSkeletonManagerService as _0x11a560,getCoordByCell as _0x265f7e,getSheetObject as _0x5b30fb}from'@univerjs/sheets-ui';import{ErrorCode as _0x3ae796}from'@univerjs/protocol';function nn(_0x118997){const _0x526f29=_0x47c1;switch(_0x118997){case _0x22ed0b[_0x526f29(0x186)]:return{'icon':_0x502d13(_0x19936b,{}),'colorClass':'univer-text-red-500','i18nKey':_0x526f29(0x15d),'tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':'static'};case _0x22ed0b[_0x526f29(0xd3)]:return{'icon':_0x502d13(_0x19936b,{}),'colorClass':_0x526f29(0x145),'i18nKey':_0x526f29(0x174),'clickable':!0x1,'indicator':_0x526f29(0xf0)};case _0x22ed0b[_0x526f29(0x110)]:return{'icon':_0x502d13(_0x317d67,{}),'colorClass':_0x526f29(0x2bb),'i18nKey':_0x526f29(0x21e),'clickable':!0x1,'indicator':_0x526f29(0x1c7)};case _0x22ed0b[_0x526f29(0x158)]:return{'icon':_0x502d13(_0x24d322,{}),'colorClass':_0x526f29(0x1f6),'i18nKey':_0x526f29(0x24e),'clickable':!0x1,'indicator':_0x526f29(0xf0)};case _0x22ed0b[_0x526f29(0x224)]:case _0x22ed0b[_0x526f29(0x193)]:return{'icon':_0x502d13(_0x317d67,{}),'colorClass':_0x526f29(0x2bb),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x526f29(0x1c7)};case _0x22ed0b[_0x526f29(0x14a)]:return{'icon':_0x502d13(_0x317d67,{}),'colorClass':_0x526f29(0x2bb),'i18nKey':_0x526f29(0x305),'clickable':!0x1,'indicator':_0x526f29(0x1c7)};case _0x22ed0b[_0x526f29(0x2ba)]:return{'icon':_0x502d13(_0x24d322,{}),'colorClass':_0x526f29(0x290),'i18nKey':_0x526f29(0x19d),'clickable':!0x1,'indicator':_0x526f29(0xf0)};}}function rn(_0x424cfa){const _0x133c51=_0x47c1;let {status$:_0x17fe3d}=_0x424cfa,_0x5067e7=_0x3612e2(_0x17fe3d,_0x22ed0b['NOT_COLLAB']),_0x1d3573=_0xb67a20(_0x2906e7),_0x22022=_0xb67a20(_0x5c5d11),_0x3418ff=_0x5953f2(()=>nn(_0x5067e7),[_0x5067e7]),_0x511543=_0x5067e7!==_0x22ed0b[_0x133c51(0x186)],_0x9ed933=_0x1d3573['t'](_0x3418ff['i18nKey']),_0x24e014=_0x3418ff[_0x133c51(0x127)]?_0x1d3573['t'](_0x3418ff['tooltipKey']):_0x9ed933,_0x59f056=_0x256cf4(()=>{const _0x539936=_0x133c51;_0x511543||_0x22022[_0x539936(0x2f6)]();},[_0x511543,_0x22022]),_0x4bf485=_0x256cf4(_0x40375b=>{const _0x4fed0a=_0x133c51;!_0x511543&&(_0x40375b[_0x4fed0a(0x318)]===_0x4fed0a(0x21d)||_0x40375b[_0x4fed0a(0x318)]==='\x20')&&(_0x40375b[_0x4fed0a(0x306)](),_0x22022['reconnect']());},[_0x511543,_0x22022]),_0x537bf8=_0x502d13(_0x133c51(0x24f),{'className':_0x3c1640(_0x133c51(0x29e),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x3418ff[_0x133c51(0x1e4)],{'univer-animate-spin':_0x3418ff[_0x133c51(0x215)]===_0x133c51(0x1c7),'univer-animate-pulse':_0x3418ff['indicator']==='pulse'}),'aria-hidden':'true','children':_0x3418ff[_0x133c51(0xe6)]}),_0x4f6875=_0x502d13(_0x133c51(0x24f),{'className':_0x3c1640(_0x133c51(0x29e),_0x133c51(0x254),_0x133c51(0x1ab),_0x133c51(0x2ef),'dark:focus:!univer-ring-offset-gray-800',{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x3418ff['clickable'],'univer-cursor-default':!_0x3418ff[_0x133c51(0x11e)]}),'children':_0x537bf8});return _0x3418ff[_0x133c51(0x11e)]?_0x502d13(_0x5c5292,{'title':_0x24e014,'placement':_0x133c51(0x25d),'children':_0x502d13(_0x133c51(0x1ca),{'type':_0x133c51(0x1ca),'onClick':_0x59f056,'onKeyDown':_0x4bf485,'className':_0x3c1640('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x133c51(0x144),_0x133c51(0x275),_0x133c51(0x331)),'aria-label':_0x9ed933+'\x20-\x20'+_0x24e014,'role':_0x133c51(0x31e),'aria-live':_0x133c51(0x11b),'aria-atomic':_0x133c51(0xda),'children':_0x4f6875})}):_0x502d13(_0x5c5292,{'title':_0x24e014,'placement':_0x133c51(0x25d),'children':_0x502d13(_0x133c51(0x30e),{'className':_0x3c1640(_0x133c51(0x29d),_0x133c51(0x144),_0x133c51(0x275)),'aria-label':_0x9ed933,'role':_0x133c51(0x31e),'aria-live':_0x133c51(0x11b),'aria-atomic':_0x133c51(0xda),'children':_0x4f6875})});}function G(_0x227a1a){'@babel/helpers - typeof';const _0x4edd88=_0x47c1;return G=typeof Symbol==_0x4edd88(0x284)&&typeof Symbol['iterator']=='symbol'?function(_0x5169ac){return typeof _0x5169ac;}:function(_0x296544){const _0x219cf2=_0x4edd88;return _0x296544&&typeof Symbol==_0x219cf2(0x284)&&_0x296544['constructor']===Symbol&&_0x296544!==Symbol[_0x219cf2(0x2d1)]?_0x219cf2(0x2fd):typeof _0x296544;},G(_0x227a1a);}function an(_0x78ea44,_0x198909){const _0x1a5220=_0x47c1;if(G(_0x78ea44)!=_0x1a5220(0x26f)||!_0x78ea44)return _0x78ea44;var _0x250383=_0x78ea44[Symbol['toPrimitive']];if(_0x250383!==void 0x0){var _0x493eaf=_0x250383[_0x1a5220(0x304)](_0x78ea44,_0x198909||_0x1a5220(0x1bf));if(G(_0x493eaf)!='object')return _0x493eaf;throw TypeError(_0x1a5220(0x23d));}return(_0x198909===_0x1a5220(0x210)?String:Number)(_0x78ea44);}function on(_0x516af8){const _0x29d63b=_0x47c1;var _0x2e897a=an(_0x516af8,_0x29d63b(0x210));return G(_0x2e897a)==_0x29d63b(0x2fd)?_0x2e897a:_0x2e897a+'';}function K(_0x15b652,_0xdf758a,_0x28e2ac){const _0x4fca0e=_0x47c1;return(_0xdf758a=on(_0xdf758a))in _0x15b652?Object[_0x4fca0e(0x12c)](_0x15b652,_0xdf758a,{'value':_0x28e2ac,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x15b652[_0xdf758a]=_0x28e2ac,_0x15b652;}function q(_0x1c06a0,_0x1ddd5f){return function(_0x5790a8,_0x22edb9){_0x1ddd5f(_0x5790a8,_0x22edb9,_0x1c06a0);};}function J(_0xa7e0ec,_0x44bf88,_0x381da1,_0x3310c8){const _0x44a489=_0x47c1;var _0x5a7335=arguments['length'],_0x2151c2=_0x5a7335<0x3?_0x44bf88:_0x3310c8===null?_0x3310c8=Object['getOwnPropertyDescriptor'](_0x44bf88,_0x381da1):_0x3310c8,_0x38cbf9;if(typeof Reflect==_0x44a489(0x26f)&&typeof Reflect[_0x44a489(0x1be)]==_0x44a489(0x284))_0x2151c2=Reflect['decorate'](_0xa7e0ec,_0x44bf88,_0x381da1,_0x3310c8);else{for(var _0x151840=_0xa7e0ec[_0x44a489(0xf9)]-0x1;_0x151840>=0x0;_0x151840--)(_0x38cbf9=_0xa7e0ec[_0x151840])&&(_0x2151c2=(_0x5a7335<0x3?_0x38cbf9(_0x2151c2):_0x5a7335>0x3?_0x38cbf9(_0x44bf88,_0x381da1,_0x2151c2):_0x38cbf9(_0x44bf88,_0x381da1))||_0x2151c2);}return _0x5a7335>0x3&&_0x2151c2&&Object[_0x44a489(0x12c)](_0x44bf88,_0x381da1,_0x2151c2),_0x2151c2;}let Y=class extends _0xf50eed{constructor(_0x55d118,_0x5a6c91,_0x7d55da,_0xeffe5e,_0x3a0018){const _0x24a8e9=_0x47c1;super(),this['_univerInstanceService']=_0x55d118,this[_0x24a8e9(0x241)]=_0x5a6c91,this['_collaborationController']=_0x7d55da,this[_0x24a8e9(0x2ec)]=_0xeffe5e,this[_0x24a8e9(0xd2)]=_0x3a0018,K(this,_0x24a8e9(0x31a),new _0x4dad7b(_0x22ed0b[_0x24a8e9(0x158)])),K(this,_0x24a8e9(0x19f),new Map()),this[_0x24a8e9(0x20a)](),this['_initStatusListener'](),this[_0x24a8e9(0x32f)]();}[_0x43b1c2(0x1d8)](){const _0x4d15bc=_0x43b1c2;this[_0x4d15bc(0x19f)][_0x4d15bc(0x182)](_0x5e567a=>_0x5e567a[_0x4d15bc(0x1d8)]()),this[_0x4d15bc(0x19f)][_0x4d15bc(0x184)](),this[_0x4d15bc(0x31a)]['complete'](),super[_0x4d15bc(0x1d8)]();}[_0x43b1c2(0x258)](){const _0x4fff7a=_0x43b1c2;this[_0x4fff7a(0x242)](_0x25ac9f(this['_univerInstanceService'][_0x4fff7a(0x2f7)],this[_0x4fff7a(0x288)][_0x4fff7a(0x260)](_0x5658b7[_0x4fff7a(0x268)]),this[_0x4fff7a(0x288)][_0x4fff7a(0x260)](_0x5658b7[_0x4fff7a(0x1d5)]))[_0x4fff7a(0x1e2)](_0x56ab65(()=>sn(this['_univerInstanceService'])),_0x350493(),_0x17c963(_0x56af6b=>_0x56af6b?this[_0x4fff7a(0x236)]['getCollabEntity$'](_0x56af6b):_0x28b600(null)),_0x17c963(_0x43f840=>_0x43f840?_0x43f840[_0x4fff7a(0x11c)]:_0x28b600(_0x22ed0b['NOT_COLLAB'])))['subscribe'](_0x23a9f1=>{const _0x4e696c=_0x4fff7a;this['_status$'][_0x4e696c(0x2d0)](_0x23a9f1);}));}['_initStatusComponent'](){const _0x328500=_0x43b1c2;this[_0x328500(0x242)](this[_0x328500(0x2ec)]['registerComponent'](_0x3f8636[_0x328500(0x222)],()=>_0x130385(cn({'status$':this['_status$'][_0x328500(0x1dc)]()}),this[_0x328500(0x241)])));}[_0x43b1c2(0x32f)](){const _0x328abc=_0x43b1c2;let _0x58fc74=this[_0x328abc(0xd2)][_0x328abc(0x262)][_0x328abc(0x2e5)](_0x16c2ed=>{const _0x149da4=_0x328abc;this[_0x149da4(0x25a)](_0x16c2ed);});this[_0x328abc(0x242)](_0x4e78ef(()=>_0x58fc74['unsubscribe']()));}[_0x43b1c2(0x25a)](_0x312af7){const _0x57a032=_0x43b1c2;let _0x2a35d6=new Map(_0x312af7[_0x57a032(0x1c3)](_0x1cbab0=>_0x1cbab0[_0x57a032(0x124)]!=null)[_0x57a032(0x10b)](_0x42514f=>[_0x42514f[_0x57a032(0x30b)],_0x42514f]));this[_0x57a032(0x19f)][_0x57a032(0x182)]((_0x371444,_0x38befc)=>{const _0x1c29d5=_0x57a032;_0x2a35d6[_0x1c29d5(0x2a1)](_0x38befc)||(_0x371444[_0x1c29d5(0x1d8)](),this[_0x1c29d5(0x19f)][_0x1c29d5(0x2a8)](_0x38befc));}),_0x2a35d6['forEach']((_0x1c6fe0,_0xc71f5e)=>{const _0x2af426=_0x57a032;this['_presenceStatusRegistrations'][_0x2af426(0x2a1)](_0xc71f5e)||this['_registerPresenceStatusComponent'](_0x1c6fe0);});}[_0x43b1c2(0x1b6)](_0x5ab5c5){const _0x2d19f5=_0x43b1c2;let _0xd352f=_0x5ab5c5[_0x2d19f5(0x124)];if(!_0xd352f)return;let _0xaf5650=new _0x4f93f4(),_0xffce5a=new _0x4dad7b(_0x22ed0b['NOT_COLLAB']);_0xaf5650[_0x2d19f5(0x231)](_0x4e78ef(()=>_0xffce5a['complete']())),_0xaf5650[_0x2d19f5(0x231)](this[_0x2d19f5(0x2ec)][_0x2d19f5(0x2c2)](_0xd352f,()=>_0x130385(cn({'status$':_0xffce5a[_0x2d19f5(0x1dc)]()}),this['_injector'])));let _0x555f3c=this[_0x2d19f5(0x288)]['getCurrentTypeOfUnit$'](_0x5ab5c5[_0x2d19f5(0x30b)])[_0x2d19f5(0x1e2)](_0x56ab65(_0x56f847=>(_0x56f847==null?void 0x0:_0x56f847[_0x2d19f5(0xdd)]())??null),_0x350493(),_0x17c963(_0x4028eb=>_0x4028eb?this['_collaborationController'][_0x2d19f5(0xfa)](_0x4028eb):_0x28b600(null)),_0x17c963(_0x5bc89e=>(_0x5bc89e==null?void 0x0:_0x5bc89e[_0x2d19f5(0x11c)])??_0x28b600(_0x22ed0b[_0x2d19f5(0x158)])))[_0x2d19f5(0x2e5)](_0x2ac44f=>_0xffce5a[_0x2d19f5(0x2d0)](_0x2ac44f));_0xaf5650[_0x2d19f5(0x231)](_0x4e78ef(()=>_0x555f3c['unsubscribe']())),this['_presenceStatusRegistrations']['set'](_0x5ab5c5[_0x2d19f5(0x30b)],_0xaf5650);}};Y=J([q(0x0,_0x576907),q(0x1,_0x47bc9a(_0x380635)),q(0x2,_0x47bc9a(_0x3089d1)),q(0x3,_0x2528c2),q(0x4,_0x47bc9a(_0xc6dda1))],Y);function sn(_0x192510){const _0x1dfd79=_0x43b1c2;let _0x1e2580=_0x192510[_0x1dfd79(0x143)](),_0x4c92ee=_0x1e2580==null?void 0x0:_0x1e2580[_0x1dfd79(0xdd)]();if(_0x4c92ee&&!_0x1364a0(_0x4c92ee))return _0x4c92ee;let _0x1db94c=_0x192510[_0x1dfd79(0x282)](_0x5658b7[_0x1dfd79(0x268)]),_0x5af327=_0x1db94c==null?void 0x0:_0x1db94c[_0x1dfd79(0xdd)]();if(_0x5af327&&!_0x1364a0(_0x5af327))return _0x5af327;let _0x4e0353=_0x192510['getCurrentUnitOfType'](_0x5658b7[_0x1dfd79(0x1d5)]);if(_0x4e0353)return _0x4e0353[_0x1dfd79(0xdd)]();let _0x5e8461=_0x192510[_0x1dfd79(0x246)](_0x5658b7['UNIVER_DOC'])[_0x1dfd79(0x13e)](_0xab463b=>!_0x1364a0(_0xab463b['getUnitId']()));return _0x5e8461?_0x5e8461[_0x1dfd79(0xdd)]():null;}function cn(_0x2c09df){let {status$:_0x24bf84}=_0x2c09df;return function(){return _0x502d13(rn,{'status$':_0x24bf84});};}var ln=_0x43b1c2(0x13b),un=_0x43b1c2(0x146);const X={'id':_0x43b1c2(0x16b),'type':_0x44859e[_0x43b1c2(0x1da)],'handler':(_0x285c1c,_0xd6c387)=>{const _0xd760d5=_0x43b1c2;let _0x2afe35=_0x285c1c[_0xd760d5(0x171)](_0xc6dda1)[_0xd760d5(0x171)](_0xd6c387[_0xd760d5(0x30b)]);if(!_0x2afe35)return!0x1;switch(_0xd6c387[_0xd760d5(0x134)][_0xd760d5(0x233)]){case _0xd760d5(0x168):return _0x2afe35[_0xd760d5(0x314)](_0xd6c387[_0xd760d5(0x134)][_0xd760d5(0x1c0)]),!0x0;case _0xd760d5(0x29a):return _0x2afe35[_0xd760d5(0x1df)](_0xd6c387[_0xd760d5(0x134)]['unitId'],_0xd6c387[_0xd760d5(0x134)][_0xd760d5(0x10a)]),!0x0;case'clear':return _0x2afe35[_0xd760d5(0x10e)](_0xd6c387['update'][_0xd760d5(0x31f)]),!0x0;default:return!0x1;}}},dn={};let fn=class extends _0x5daa34{constructor(_0x580342,_0x4c43cb){const _0x159c96=_0x43b1c2;super(),this[_0x159c96(0x30f)]=_0x580342,this[_0x159c96(0x26a)]=_0x4c43cb,this[_0x159c96(0x344)]();}[_0x43b1c2(0x344)](){const _0x356756=_0x43b1c2;let _0x4fc7e8=this;this[_0x356756(0x242)](this['_docClipboardService'][_0x356756(0x1d0)]({'onBeforePasteImage':async _0x472d16=>{const _0x1a190d=_0x356756;let _0x4f6b87=await _0x4fc7e8[_0x1a190d(0x26a)][_0x1a190d(0x162)](_0x472d16);return _0x4f6b87?{'source':_0x4f6b87[_0x1a190d(0x1d2)],'imageSourceType':_0x4f6b87[_0x1a190d(0x118)]}:null;}}));}};fn=J([q(0x0,_0x2a92b1),q(0x1,_0x4f1a5d)],fn);const pn=[_0x43b1c2(0x164),'jiqing.500',_0x43b1c2(0x1dd),_0x43b1c2(0x243),'blue.400','yellow.400'];var mn=class extends _0xf50eed{constructor(..._0x360d01){const _0x4dfa23=_0x43b1c2;super(..._0x360d01),K(this,'_assignedColors',new Map()),K(this,_0x4dfa23(0x211),0x0);}[_0x43b1c2(0x249)](_0x9b2508){const _0x157f60=_0x43b1c2;if(this[_0x157f60(0x2e1)][_0x157f60(0x2a1)](_0x9b2508))return this[_0x157f60(0x2e1)][_0x157f60(0x171)](_0x9b2508);let _0x40b135=pn[this[_0x157f60(0x211)]];return this[_0x157f60(0x211)]=(this[_0x157f60(0x211)]+0x1)%pn[_0x157f60(0xf9)],this['_assignedColors'][_0x157f60(0x168)](_0x9b2508,_0x40b135),_0x40b135;}};function hn(_0x2f2473){const _0x1a687c=_0x43b1c2;let _0x30fd7e='';for(let _0x4cad38 of _0x2f2473){let {startOffset:_0x36d869,endOffset:_0x3af13b,isActive:_0x312c7b,rangeType:_0x34429b,segmentId:_0x185e5c,segmentPage:_0x37d4c6}=_0x4cad38;_0x30fd7e[_0x1a687c(0xf9)]&&(_0x30fd7e+=','),_0x30fd7e+=_0x36d869+':'+_0x3af13b+':'+(_0x312c7b?'1':'0')+':'+_0x34429b+':'+_0x185e5c+':'+_0x37d4c6;}return _0x30fd7e;}function gn(_0x512b45){const _0x550a0e=_0x43b1c2;let _0xd58ad6=_0x512b45[_0x550a0e(0x1c4)](','),_0x58802b=[];for(let _0x46a4ed of _0xd58ad6){let [_0x2a4dbe,_0x246131,_0x3e6ae8,_0x3d6b2c,_0x127824,_0x47a8a4]=_0x46a4ed[_0x550a0e(0x1c4)](':');_0x58802b[_0x550a0e(0x23b)]({'startOffset':Number(_0x2a4dbe),'endOffset':Number(_0x246131),'collapsed':_0x2a4dbe===_0x246131,'isActive':_0x3e6ae8==='1','rangeType':_0x3d6b2c===_0x86d58a[_0x550a0e(0x136)]?_0x86d58a[_0x550a0e(0x136)]:_0x86d58a[_0x550a0e(0xfb)],'segmentId':typeof _0x127824==_0x550a0e(0x210)?String(_0x127824):'','segmentPage':Number(_0x47a8a4??-0x1)});}return _0x58802b[_0x550a0e(0x278)](_0x58f0df=>_0x58f0df[_0x550a0e(0x265)])||(_0x58802b[0x0]['isActive']=!0x0),_0x58802b;}var _n=class extends _0x5daa34{constructor(..._0x71f029){const _0x5945c0=_0x43b1c2;super(..._0x71f029),K(this,'_collabCursorState$',new _0x4dad7b(null)),K(this,_0x5945c0(0x20e),this[_0x5945c0(0x148)][_0x5945c0(0x1dc)]());}['syncEditingCollabCursor'](_0x213d96){let {unitID:_0x5e43cf,memberID:_0x2db8da,textRanges:_0x3150eb}=_0x213d96,_0x1178cf=hn(_0x3150eb);if(_0x1178cf==='')return;let _0x17bdb1={'unitID':_0x5e43cf,'memberID':_0x2db8da,'selection':_0x1178cf};this['_collabCursorState$']['next'](_0x17bdb1);}};let vn=class extends _0x5daa34{get[_0x43b1c2(0x22a)](){return this['_cursorInfo$']['getValue']();}get[_0x43b1c2(0x2b1)](){const _0x4b3171=_0x43b1c2;return this[_0x4b3171(0x25b)][_0x4b3171(0x30d)]();}constructor(_0x5187b4,_0x114c88,_0x190de5,_0x5e649d,_0x562b51,_0x38055b,_0x4fbe38,_0x4a7610,_0x33ecd7){const _0x1a7e9a=_0x43b1c2;super(),this[_0x1a7e9a(0x2fc)]=_0x5187b4,this[_0x1a7e9a(0x111)]=_0x114c88,this[_0x1a7e9a(0x241)]=_0x190de5,this[_0x1a7e9a(0x221)]=_0x5e649d,this[_0x1a7e9a(0x336)]=_0x562b51,this[_0x1a7e9a(0x251)]=_0x38055b,this[_0x1a7e9a(0x21c)]=_0x4fbe38,this[_0x1a7e9a(0x288)]=_0x4a7610,this[_0x1a7e9a(0x2b0)]=_0x33ecd7,K(this,_0x1a7e9a(0x1cb),!0x1),K(this,_0x1a7e9a(0x344),!0x1),K(this,'_cursorInfo$',new _0x4dad7b(new Map())),K(this,_0x1a7e9a(0x121),this[_0x1a7e9a(0x1fa)][_0x1a7e9a(0x1dc)]()),K(this,_0x1a7e9a(0x25b),new _0x4dad7b([])),K(this,'roomMembers$',this[_0x1a7e9a(0x25b)][_0x1a7e9a(0x1e2)](_0x326ecd(0x12c))),K(this,_0x1a7e9a(0xe3),_0x32a927(_0x3c9640=>{const _0x4b1887=_0x1a7e9a;let _0x445c96={'eventID':_0x402cad['UPDATE_CURSOR'],'data':{'unitID':this[_0x4b1887(0x2fc)],'memberID':this[_0x4b1887(0x111)]['getMemberID'](),'selection':hn(_0x3c9640)}};this[_0x4b1887(0x111)][_0x4b1887(0x17b)](_0x445c96,this['unitID']);},0x64));}[_0x43b1c2(0x1d8)](){const _0x5d1d11=_0x43b1c2;super['dispose'](),this[_0x5d1d11(0x1fa)][_0x5d1d11(0x2d0)](new Map()),this[_0x5d1d11(0x1fa)]['complete'](),this[_0x5d1d11(0x25b)]['next']([]),this['_roomMembers$'][_0x5d1d11(0x1d4)]();}['init'](){const _0x3b9dc0=_0x43b1c2;this[_0x3b9dc0(0x344)]||(this['_init']=!0x0,this[_0x3b9dc0(0x111)][_0x3b9dc0(0xef)][_0x3b9dc0(0x1e2)](_0xe739dc(this[_0x3b9dc0(0x303)]))[_0x3b9dc0(0x2e5)](_0x4e0cb2=>{const _0x2ba12c=_0x3b9dc0;_0x4e0cb2===_0x426c[_0x2ba12c(0x2f2)]?this[_0x2ba12c(0x261)]():this[_0x2ba12c(0xe0)]();}),this[_0x3b9dc0(0x111)][_0x3b9dc0(0x2bc)][_0x3b9dc0(0x1e2)](_0xe739dc(this[_0x3b9dc0(0x303)]))[_0x3b9dc0(0x2e5)](_0x49080e=>{const _0x2febe6=_0x3b9dc0;let _0x2106ab=_0x49080e[_0x2febe6(0x18e)];_0x2106ab===_0x402cad[_0x2febe6(0x2b8)]&&this[_0x2febe6(0x25c)](_0x49080e),_0x2106ab===_0x402cad[_0x2febe6(0x101)]&&this[_0x2febe6(0x33a)](_0x49080e);}),this[_0x3b9dc0(0x242)](this[_0x3b9dc0(0x2b0)][_0x3b9dc0(0x2ae)](_0x4663f2=>{const _0x2f2e04=_0x3b9dc0;let _0x2c8282=_0x4663f2[_0x2f2e04(0x1b8)];_0x2c8282!=null&&this[_0x2f2e04(0x1cb)]&&_0x4663f2['id']===_0x39a549['id']&&_0x2c8282[_0x2f2e04(0x31f)]===this[_0x2f2e04(0x2fc)]&&_0x2c8282[_0x2f2e04(0x139)]===!0x1&&_0x2c8282['ranges'][_0x2f2e04(0xf9)]>0x0&&this[_0x2f2e04(0xe3)](_0x2c8282[_0x2f2e04(0x176)]);})),this[_0x3b9dc0(0x251)][_0x3b9dc0(0x20e)][_0x3b9dc0(0x1e2)](_0xe739dc(this['dispose$']))[_0x3b9dc0(0x2e5)](_0x2bc36b=>{const _0x5dfd72=_0x3b9dc0;if((_0x2bc36b==null?void 0x0:_0x2bc36b[_0x5dfd72(0x2fc)])!==this[_0x5dfd72(0x2fc)])return;let _0x2ddd98={'eventID':_0x402cad['UPDATE_CURSOR'],'data':_0x2bc36b};this[_0x5dfd72(0x25c)](_0x2ddd98);}),this['disposeWithMe'](this[_0x3b9dc0(0x2b0)][_0x3b9dc0(0x2ae)](_0x78934e=>{const _0x311b81=_0x3b9dc0;if(_0x78934e[_0x311b81(0x1b8)]==null)return;let _0x30fccc=_0x78934e['params'];if(_0x78934e['id']!==_0x4251e3['id']||_0x30fccc['unitId']!==this[_0x311b81(0x2fc)])return;let _0x4bb6cd={'id':_0x311b81(0x18a),'params':_0x30fccc},_0x25b8ab=this[_0x311b81(0x22a)];for(let [_0x39afda,_0x40e66c]of _0x25b8ab){let _0x98c7e0={'id':_0x311b81(0x18a),'params':{'unitId':this[_0x311b81(0x2fc)],'actions':null,'textRanges':_0x40e66c[_0x311b81(0x176)]}},_0x5c043a=this[_0x311b81(0x21c)]['transformMutation'](_0x4bb6cd,_0x98c7e0,!0x1);if(_0x4e7233(_0x5c043a))throw _0x5c043a[_0x311b81(0x15b)];_0x25b8ab[_0x311b81(0x168)](_0x39afda,{..._0x40e66c,'ranges':_0x5c043a['m2Prime'][_0x311b81(0x1b8)][_0x311b81(0x1a1)]});}queueMicrotask(()=>{const _0x34b619=_0x311b81;this['_cursorInfo$'][_0x34b619(0x2d0)](_0x25b8ab);});})));}[_0x43b1c2(0x25c)](_0x57a9a1){const _0x33ed0a=_0x43b1c2;var _0x31b4a9;let {memberID:_0x216b62,selection:_0x427f32}=_0x57a9a1['data'],_0x9fc780=gn(_0x427f32),_0xae0990=((_0x31b4a9=this[_0x33ed0a(0x336)][_0x33ed0a(0x2aa)](this[_0x33ed0a(0x2fc)],_0x216b62))==null?void 0x0:_0x31b4a9[_0x33ed0a(0x2f8)])??'Unknown\x20user',_0x12c4df={'color':this[_0x33ed0a(0x221)][_0x33ed0a(0x249)](_0x216b62),'name':_0xae0990,'ranges':_0x9fc780},_0x4e0166=this[_0x33ed0a(0x22a)];_0x4e0166[_0x33ed0a(0x168)](_0x216b62,_0x12c4df),this[_0x33ed0a(0x1fa)][_0x33ed0a(0x2d0)](_0x4e0166);}[_0x43b1c2(0x33a)](_0x1206bd){const _0x24bac1=_0x43b1c2;let {memberID:_0x4e08cf}=_0x1206bd['data'],_0x322d25=this[_0x24bac1(0x22a)];_0x322d25[_0x24bac1(0x2a8)](_0x4e08cf),this[_0x24bac1(0x1fa)][_0x24bac1(0x2d0)](_0x322d25);}[_0x43b1c2(0x261)](){const _0x365929=_0x43b1c2;var _0x1218d3;if(this[_0x365929(0x1cb)]=!0x0,((_0x1218d3=this[_0x365929(0x288)][_0x365929(0x143)]())==null?void 0x0:_0x1218d3[_0x365929(0xdd)]())!==this[_0x365929(0x2fc)])return;let _0x8700c6=this[_0x365929(0x241)]['get'](_0x2785ee)[_0x365929(0xfc)]();Array[_0x365929(0xe1)](_0x8700c6)&&_0x8700c6[_0x365929(0xf9)]>0x0&&this[_0x365929(0xe3)](_0x8700c6);}[_0x43b1c2(0xe0)](){const _0x19bf68=_0x43b1c2;this[_0x19bf68(0x1cb)]=!0x1;}};vn=J([q(0x2,_0x47bc9a(_0x380635)),q(0x3,_0x47bc9a(mn)),q(0x4,_0x47bc9a(_0x3b76af)),q(0x5,_0x47bc9a(_n)),q(0x6,_0x38ff0a),q(0x7,_0x576907),q(0x8,_0x9de777)],vn);const yn=()=>{let _0x292845=[],_0x4695ca=!0x1;return _0xd46c73=>{const _0x7d4db7=_0x47c1;_0x292845[_0x7d4db7(0x23b)](_0xd46c73),_0x4695ca||(_0x4695ca=!0x0,setTimeout(()=>{_0x292845['forEach'](_0x313d02=>_0x313d02()),_0x292845=[],_0x4695ca=!0x1;}));};};let bn=class extends _0x5daa34{get[_0x43b1c2(0x22a)](){const _0x1adae7=_0x43b1c2;return this[_0x1adae7(0x1fa)][_0x1adae7(0x30d)]();}get[_0x43b1c2(0x2b1)](){return this['_roomMembers$']['getValue']();}constructor(_0x557d4c,_0x20d24d,_0x3f5a8c,_0x13747e,_0x534d9f,_0x4d426c,_0x41dff0,_0x33e5bd){const _0x1b3da5=_0x43b1c2;super(),this[_0x1b3da5(0x2fc)]=_0x557d4c,this[_0x1b3da5(0x111)]=_0x20d24d,this[_0x1b3da5(0x241)]=_0x3f5a8c,this['_colorAssignService']=_0x13747e,this['_memberService']=_0x534d9f,this['_univerInstanceService']=_0x4d426c,this['_commandService']=_0x41dff0,this[_0x1b3da5(0x1af)]=_0x33e5bd,K(this,_0x1b3da5(0x1cb),!0x1),K(this,_0x1b3da5(0x344),!0x1),K(this,_0x1b3da5(0x1fa),new _0x4dad7b(new Map())),K(this,'cursorInfo$',this[_0x1b3da5(0x1fa)][_0x1b3da5(0x1dc)]()),K(this,_0x1b3da5(0x25b),new _0x4dad7b([])),K(this,'roomMembers$',this[_0x1b3da5(0x25b)][_0x1b3da5(0x1e2)](_0x326ecd(0x12c))),K(this,'_updateLocalCursor',_0x32a927((_0x5d3cad,_0xf39b4c)=>{const _0xe0404e=_0x1b3da5;let _0x226627={'eventID':_0x402cad[_0xe0404e(0x2b8)],'data':{'unitID':this['unitID'],'memberID':this[_0xe0404e(0x111)]['getMemberID'](),'selection':_0x56ee9(_0x5d3cad,_0xf39b4c[_0xe0404e(0x19b)])}};this[_0xe0404e(0x111)]['send'](_0x226627,this['unitID']);},0x64));}[_0x43b1c2(0x1d8)](){const _0x5ddba8=_0x43b1c2;super['dispose'](),this[_0x5ddba8(0x1fa)][_0x5ddba8(0x2d0)](new Map()),this['_cursorInfo$'][_0x5ddba8(0x1d4)](),this['_roomMembers$'][_0x5ddba8(0x2d0)]([]),this['_roomMembers$'][_0x5ddba8(0x1d4)]();}['init'](){const _0x360d7b=_0x43b1c2;this[_0x360d7b(0x344)]||(this[_0x360d7b(0x344)]=!0x0,this['_session'][_0x360d7b(0xef)][_0x360d7b(0x1e2)](_0xe739dc(this[_0x360d7b(0x303)]))[_0x360d7b(0x2e5)](_0x32d20e=>{const _0x23a961=_0x360d7b;_0x32d20e===_0x426c[_0x23a961(0x2f2)]?this[_0x23a961(0x261)]():this[_0x23a961(0xe0)]();}),this[_0x360d7b(0x111)][_0x360d7b(0x2bc)][_0x360d7b(0x1e2)](_0xe739dc(this[_0x360d7b(0x303)]))[_0x360d7b(0x2e5)](_0x5f31f6=>{const _0x139419=_0x360d7b;let _0x363c1d=_0x5f31f6[_0x139419(0x18e)];_0x363c1d===_0x402cad[_0x139419(0x2b8)]&&this[_0x139419(0x25c)](_0x5f31f6),_0x363c1d===_0x402cad[_0x139419(0x101)]&&this[_0x139419(0x33a)](_0x5f31f6);}),this[_0x360d7b(0x2ac)](),this[_0x360d7b(0x242)](this[_0x360d7b(0x2b0)][_0x360d7b(0x2ae)](_0x1001a3=>{const _0x2ad5c4=_0x360d7b;if(this[_0x2ad5c4(0x1cb)]&&_0x1001a3['id']===_0x3c2123['id']&&_0x1001a3[_0x2ad5c4(0x1b8)][_0x2ad5c4(0x31f)]===this[_0x2ad5c4(0x2fc)]){let _0x5a5647=_0x1001a3[_0x2ad5c4(0x1b8)];this[_0x2ad5c4(0xe3)](_0x5a5647['subUnitId'],_0x5a5647[_0x2ad5c4(0x202)][0x0]);}})));}['_onCursorUpdate'](_0x4a3240){const _0x314624=_0x43b1c2;var _0x14639c;let {memberID:_0x49c729,selection:_0x197dd8}=_0x4a3240[_0x314624(0xf6)],{sheetName:_0x55c891,range:_0x3239c2}=_0x5ed367(_0x197dd8),_0x2922a2={'name':((_0x14639c=this[_0x314624(0x336)][_0x314624(0x2aa)](this['unitID'],_0x49c729))==null?void 0x0:_0x14639c[_0x314624(0x2f8)])??'Unknown\x20user','range':this[_0x314624(0x179)](_0x55c891,_0x3239c2),'sheetID':_0x55c891,'color':this[_0x314624(0x221)]['assignAColorForMemberID'](_0x49c729),'selection':_0x197dd8},_0x8d3e2c=this[_0x314624(0x22a)];_0x8d3e2c[_0x314624(0x168)](_0x49c729,_0x2922a2),this[_0x314624(0x1fa)]['next'](_0x8d3e2c);}[_0x43b1c2(0x33a)](_0x5db4ae){const _0x275b06=_0x43b1c2;let {memberID:_0x2eb6e0}=_0x5db4ae[_0x275b06(0xf6)],_0x3485d3=this[_0x275b06(0x22a)];_0x3485d3[_0x275b06(0x2a8)](_0x2eb6e0),this['_cursorInfo$'][_0x275b06(0x2d0)](_0x3485d3);}[_0x43b1c2(0x179)](_0x6e8797,_0x389d0d){const _0x13cd4c=_0x43b1c2;var _0x3e5c42;let _0x3f7b5c=(_0x3e5c42=this['_univerInstanceService'][_0x13cd4c(0x2a9)](this[_0x13cd4c(0x2fc)],_0x5658b7['UNIVER_SHEET']))==null||(_0x3e5c42=_0x3e5c42[_0x13cd4c(0x20c)](_0x6e8797))==null?void 0x0:_0x3e5c42[_0x13cd4c(0x1a6)]();return(_0x3f7b5c==null?void 0x0:_0x3f7b5c['find'](_0x1526fe=>_0x1f6338[_0x13cd4c(0x315)](_0x1526fe,_0x389d0d)))||_0x389d0d;}['_onRefRangeChange'](){const _0x3b8bee=_0x43b1c2;let _0x2d6505=new _0x4f93f4(),_0x4b4910=yn(),_0x2708fe=()=>{const _0x5b1226=_0x47c1;_0x2d6505[_0x5b1226(0x1d8)]();let _0x1fc366=(_0x33f2ed,_0x5210be,_0x1195c2,_0x390b61)=>{const _0x4cec7c=_0x5b1226;let _0x471c79=[];switch(_0x33f2ed['id']){case _0x15915b[_0x4cec7c(0x11f)]:_0x471c79=_0x5e0842(_0x33f2ed,_0x390b61);break;case _0x15915b[_0x4cec7c(0x206)]:_0x471c79=_0x3160b2(_0x33f2ed,_0x390b61);break;case _0x15915b[_0x4cec7c(0x177)]:_0x471c79=_0x507425(_0x33f2ed,_0x390b61);break;case _0x15915b['InsertRangeMoveDownCommandId']:_0x471c79=_0x22a6cf(_0x33f2ed,_0x390b61);break;case _0x15915b['InsertRangeMoveRightCommandId']:_0x471c79=_0x4dbfa6(_0x33f2ed,_0x390b61);break;case _0x15915b[_0x4cec7c(0x2eb)]:_0x471c79=_0x2cc458(_0x33f2ed,_0x390b61);break;case _0x15915b[_0x4cec7c(0x2e0)]:_0x471c79=_0x25df3b(_0x33f2ed,_0x390b61);break;case _0x15915b['RemoveColCommandId']:_0x471c79=_0x554916(_0x33f2ed,_0x390b61);break;case _0x15915b[_0x4cec7c(0x327)]:_0x471c79=_0x41d423(_0x33f2ed,_0x390b61);}let _0x430810=_0x2b3e8d(_0x471c79,_0x390b61),_0xe795a0=this[_0x4cec7c(0x22a)][_0x4cec7c(0x171)](_0x5210be);if(_0xe795a0&&_0x430810){let _0x1ab940={..._0xe795a0,'range':_0x430810};this[_0x4cec7c(0x22a)][_0x4cec7c(0x168)](_0x5210be,_0x1ab940),_0x4b4910(()=>{const _0x4f8cc4=_0x4cec7c;let _0x32e92e=this[_0x4f8cc4(0x1af)]['registerRefRange'](_0x430810,_0x1d8c56=>(_0x32e92e[_0x4f8cc4(0x1d8)](),_0x1fc366(_0x1d8c56,_0x5210be,_0x1195c2,_0x430810)));_0x2d6505['add'](_0x32e92e);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x149164,_0x39ba12)=>{const _0x274991=_0x5b1226;let {range:_0x5ed220,sheetID:_0xdd2e62}=_0x149164,_0x176a1f=this[_0x274991(0x1af)][_0x274991(0x256)](_0x5ed220,_0x19b315=>(_0x176a1f['dispose'](),_0x1fc366(_0x19b315,_0x39ba12,_0xdd2e62,_0x5ed220)));_0x2d6505[_0x274991(0x231)](_0x176a1f);});};this[_0x3b8bee(0x242)](_0x4e78ef(this[_0x3b8bee(0x1fa)][_0x3b8bee(0x2e5)](()=>{_0x2708fe();})));}[_0x43b1c2(0x261)](){const _0x4958df=_0x43b1c2;var _0xc15967,_0x4c7def;if(this[_0x4958df(0x1cb)]=!0x0,((_0xc15967=this[_0x4958df(0x288)]['getFocusedUnit']())==null?void 0x0:_0xc15967[_0x4958df(0xdd)]())!==this[_0x4958df(0x2fc)])return;let _0x3da3dd=(_0x4c7def=this[_0x4958df(0x241)]['get'](_0x58b4fe)[_0x4958df(0x1db)]())==null?void 0x0:_0x4c7def[0x0],_0x20425c=this[_0x4958df(0x288)][_0x4958df(0x282)](_0x5658b7[_0x4958df(0x1d5)])[_0x4958df(0x2fb)]();_0x3da3dd&&_0x20425c&&this[_0x4958df(0xe3)](_0x20425c[_0x4958df(0x2c4)](),_0x3da3dd);}[_0x43b1c2(0xe0)](){const _0x3aa51f=_0x43b1c2;this[_0x3aa51f(0x1cb)]=!0x1;}};bn=J([q(0x2,_0x47bc9a(_0x380635)),q(0x3,_0x47bc9a(mn)),q(0x4,_0x47bc9a(_0x3b76af)),q(0x5,_0x576907),q(0x6,_0x9de777),q(0x7,_0x47bc9a(_0x1d8140))],bn);let Z=class extends _0x5daa34{constructor(_0x4cee2b,_0x5813b3,_0x3fafb7){const _0x3cd88f=_0x43b1c2;super(),this[_0x3cd88f(0x288)]=_0x4cee2b,this[_0x3cd88f(0x241)]=_0x5813b3,this[_0x3cd88f(0x1eb)]=_0x3fafb7,K(this,_0x3cd88f(0x2e7),new Map()),K(this,'_entityInit$',new _0x26adce()),this[_0x3cd88f(0x344)]();}[_0x43b1c2(0x1d8)](){const _0xed2050=_0x43b1c2;super[_0xed2050(0x1d8)](),this[_0xed2050(0xfd)][_0xed2050(0x1d4)](),this[_0xed2050(0x2e7)][_0xed2050(0x182)](_0x5c4283=>_0x5c4283[_0xed2050(0x1d8)]());}[_0x43b1c2(0x247)](_0x5b5107){const _0x46cd59=_0x43b1c2;let _0x140409=this[_0x46cd59(0x2e7)][_0x46cd59(0x171)](_0x5b5107);return _0x140409?_0x140409[_0x46cd59(0x121)]:this[_0x46cd59(0xfd)][_0x46cd59(0x1e2)](_0x5128c1(_0x105f72=>_0x105f72['unitID']===_0x5b5107),_0x17c963(_0x2d1d47=>_0x2d1d47[_0x46cd59(0x121)]));}['_init'](){const _0x525dcd=_0x43b1c2;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5658b7[_0x525dcd(0x1d5)])[_0x525dcd(0x1e2)](_0xe739dc(this['dispose$']))[_0x525dcd(0x2e5)](async _0x4d67d7=>{const _0x4eeb77=_0x525dcd;let _0x321855=_0x4d67d7['unit']['getUnitId'](),_0x43ecb8=await this[_0x4eeb77(0x128)](_0x321855);this['_entityInit$'][_0x4eeb77(0x2d0)](_0x43ecb8),this['_entities'][_0x4eeb77(0x168)](_0x321855,_0x43ecb8);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5658b7['UNIVER_DOC'])[_0x525dcd(0x1e2)](_0xe739dc(this[_0x525dcd(0x303)]))[_0x525dcd(0x1e2)](_0x5128c1(_0x54a957=>!_0x54a957['unit'][_0x525dcd(0xdd)]()[_0x525dcd(0x1e8)]('__')))[_0x525dcd(0x2e5)](async _0x53cb07=>{const _0x14de62=_0x525dcd;let {unit:_0x13090c}=_0x53cb07,_0x144afd=_0x13090c['getUnitId'](),_0x29a8cb=await this[_0x14de62(0x2fa)](_0x144afd);this[_0x14de62(0xfd)]['next'](_0x29a8cb),this[_0x14de62(0x2e7)][_0x14de62(0x168)](_0x144afd,_0x29a8cb);}),_0x25ac9f(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x5658b7[_0x525dcd(0x268)]),this[_0x525dcd(0x288)]['getTypeOfUnitDisposed$'](_0x5658b7[_0x525dcd(0x1d5)]))['pipe'](_0xe739dc(this[_0x525dcd(0x303)]))[_0x525dcd(0x2e5)](_0x573080=>{const _0x184271=_0x525dcd;let _0x35385d=_0x573080[_0x184271(0xdd)](),_0x1cd49d=this[_0x184271(0x2e7)][_0x184271(0x171)](_0x35385d);_0x1cd49d&&(_0x1cd49d[_0x184271(0x1d8)](),this[_0x184271(0x2e7)][_0x184271(0x2a8)](_0x35385d));});}async['_startSheetCollabCursor'](_0x31fbb9){const _0x26ad18=_0x43b1c2;let _0x271760=await this[_0x26ad18(0x1eb)]['requireSession'](_0x31fbb9),_0x28fc36=this['_injector'][_0x26ad18(0x337)](bn,_0x31fbb9,_0x271760);return _0x28fc36[_0x26ad18(0x332)](),_0x28fc36;}async[_0x43b1c2(0x2fa)](_0xe1cd8d){const _0x638818=_0x43b1c2;let _0x45ecb7=await this[_0x638818(0x1eb)][_0x638818(0x1cc)](_0xe1cd8d),_0x5509a9=this[_0x638818(0x241)][_0x638818(0x337)](vn,_0xe1cd8d,_0x45ecb7);return _0x5509a9[_0x638818(0x332)](),_0x5509a9;}};Z=J([q(0x0,_0x576907),q(0x1,_0x47bc9a(_0x380635)),q(0x2,_0x47bc9a(_0x5c5d11))],Z);function xn(_0x2c6e4c,_0x211a9c){const _0x48a6a6=_0x43b1c2;_0x2c6e4c[_0x48a6a6(0x199)](),_0x2c6e4c[_0x48a6a6(0x257)]=_0x48a6a6(0x317);let _0x586329=_0x2c6e4c['measureText'](_0x211a9c)[_0x48a6a6(0x173)];return _0x2c6e4c[_0x48a6a6(0x31d)](),Math[_0x48a6a6(0xe4)](_0x586329+0x8,0xc8);}function Sn(_0x1e9891,_0x469e1d){const _0x5385a3=_0x43b1c2;let {radius:_0x1acf34,width:_0x46ed92,height:_0x25727e}=_0x469e1d;_0x1acf34??=0x0,_0x46ed92??=0x1e,_0x25727e??=0x1e;let _0x325097=0x0,_0x52315d=0x0,_0x4fbb95=0x0;_0x325097=_0x52315d=_0x4fbb95=Math[_0x5385a3(0xe4)](_0x1acf34,_0x46ed92/0x2,_0x25727e/0x2),_0x1e9891[_0x5385a3(0x297)](),_0x1e9891[_0x5385a3(0x292)](_0x325097,0x0),_0x1e9891[_0x5385a3(0x15f)](_0x46ed92-_0x52315d,0x0),_0x1e9891[_0x5385a3(0x229)](_0x46ed92-_0x52315d,_0x52315d,_0x52315d,Math['PI']*0x3/0x2,0x0,!0x1),_0x1e9891['lineTo'](_0x46ed92,_0x25727e-_0x4fbb95),_0x1e9891[_0x5385a3(0x229)](_0x46ed92-_0x4fbb95,_0x25727e-_0x4fbb95,_0x4fbb95,0x0,Math['PI']/0x2,!0x1),_0x1e9891[_0x5385a3(0x15f)](0x0,_0x25727e),_0x1e9891[_0x5385a3(0x15f)](0x0,_0x325097),_0x1e9891[_0x5385a3(0x229)](_0x325097,_0x325097,_0x325097,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1e9891[_0x5385a3(0x138)](),_0x469e1d[_0x5385a3(0x30a)]&&(_0x1e9891[_0x5385a3(0x199)](),_0x1e9891[_0x5385a3(0x223)]=_0x469e1d[_0x5385a3(0x30a)],_0x469e1d[_0x5385a3(0x1d7)]===_0x5385a3(0x291)?_0x1e9891[_0x5385a3(0x30a)]('evenodd'):_0x1e9891[_0x5385a3(0x30a)](),_0x1e9891[_0x5385a3(0x31d)]());}var Cn=class e extends _0x1196df{constructor(_0x1ea3ce,_0x5137b0){const _0x908674=_0x43b1c2;super(_0x1ea3ce,_0x5137b0),K(this,_0x908674(0x34d),void 0x0),K(this,_0x908674(0x2be),void 0x0),this[_0x908674(0x34d)]=_0x5137b0==null?void 0x0:_0x5137b0['color'],this[_0x908674(0x2be)]=_0x5137b0==null?void 0x0:_0x5137b0['text'];}static[_0x43b1c2(0x1ba)](_0x47f21d,_0x414314){const _0x3851a2=_0x43b1c2;let {text:_0x1199f9,color:_0x38e67e}=_0x414314;_0x47f21d[_0x3851a2(0x199)](),_0x47f21d['font']=_0x3851a2(0x10f);let _0x51e31c=_0x47f21d[_0x3851a2(0x1b9)](_0x1199f9)[_0x3851a2(0x173)];if(Sn(_0x47f21d,{'height':0x14,'radius':0x4,'width':xn(_0x47f21d,_0x1199f9),'fill':_0x38e67e,'evented':!0x1}),_0x47f21d[_0x3851a2(0x223)]=_0x3851a2(0x10c),_0x51e31c>0xc0){let _0x3032c9='',_0x35e47b=0x0;for(let _0x51260a of _0x1199f9){let _0x3d99f3=_0x47f21d[_0x3851a2(0x1b9)](_0x51260a)[_0x3851a2(0x173)];if(_0x35e47b+_0x3d99f3<=0xc0-_0x47f21d[_0x3851a2(0x1b9)](_0x3851a2(0x1c9))[_0x3851a2(0x173)])_0x3032c9+=_0x51260a,_0x35e47b+=_0x3d99f3;else{_0x3032c9+=_0x3851a2(0x1c9);break;}}_0x47f21d[_0x3851a2(0xe5)](_0x3032c9,0x4,0xf);}else _0x47f21d['fillText'](_0x1199f9,0x4,0xf);_0x47f21d['restore']();}[_0x43b1c2(0x130)](_0xbe3027){const _0x2faa93=_0x43b1c2;e[_0x2faa93(0x1ba)](_0xbe3027,this);}};const wn=_0x43b1c2(0x1f8);var Tn=class{constructor(_0x4af36a,_0xe807d3,_0x584721,_0x1c2d44){const _0x136371=_0x43b1c2;this[_0x136371(0x16f)]=_0x4af36a,this[_0x136371(0x26d)]=_0xe807d3,this[_0x136371(0x142)]=_0x584721,this[_0x136371(0x169)]=_0x1c2d44,K(this,_0x136371(0x16e),[]),K(this,'_anchor',null),K(this,'_textBubble',null),K(this,_0x136371(0x2a6),null),K(this,'_hideTimer',null),K(this,_0x136371(0x1d9),null),this[_0x136371(0x287)]();}set[_0x43b1c2(0x137)](_0x543928){const _0x34b007=_0x43b1c2;_0x543928?(this[_0x34b007(0x2a6)]&&this[_0x34b007(0x2a6)]['hide'](),this[_0x34b007(0x209)]&&this[_0x34b007(0x209)]['show']()):(this[_0x34b007(0x2a6)]&&this[_0x34b007(0x2a6)][_0x34b007(0x1a9)](),this[_0x34b007(0x209)]&&this[_0x34b007(0x209)][_0x34b007(0x339)]());}[_0x43b1c2(0x1d8)](){const _0x1809ab=_0x43b1c2;for(let _0x43b571 of this['_shapes'])_0x43b571[_0x1809ab(0x1d8)]();this[_0x1809ab(0x209)]&&this[_0x1809ab(0x209)]['dispose'](),this['_anchorDot']&&this[_0x1809ab(0x2a6)][_0x1809ab(0x1d8)](),this['_anchor']&&this[_0x1809ab(0x27d)]['dispose'](),this[_0x1809ab(0x1d9)]&&this[_0x1809ab(0x1d9)]();}[_0x43b1c2(0x287)](){const _0x59f6ef=_0x43b1c2;let {_docSkeleton:_0x17fd07,_document:_0x2e621b}=this,{color:_0x497d78,name:_0x29ee0e,ranges:_0x5ebcec}=this[_0x59f6ef(0x16f)],_0x49ad4c=_0x2e621b[_0x59f6ef(0x2db)](),{docsLeft:_0x4dd476,docsTop:_0x1106ab}=_0x49ad4c,_0x15802c=new _0x4e490a(_0x49ad4c,_0x17fd07);for(let {startOffset:_0xa021f2,endOffset:_0x160bf6,rangeType:_0x4c74cf,segmentId:_0x200a77,segmentPage:_0x3179fc,collapsed:_0x117026,isActive:_0x221870}of _0x5ebcec){let _0x5012ee=_0x17fd07[_0x59f6ef(0x230)](_0xa021f2,!0x0,_0x200a77,_0x3179fc),_0xcb2fb9=_0x17fd07[_0x59f6ef(0x230)](_0x160bf6,!0x0,_0x200a77,_0x3179fc);_0xcb2fb9??=_0x17fd07[_0x59f6ef(0x230)](_0x160bf6-0x1,!0x1,_0x200a77,_0x3179fc);let _0xa12ae2=En(_0x5012ee,_0xcb2fb9);if(_0x221870&&_0xa12ae2[_0x59f6ef(0x2a0)]){let {contentBoxPointGroup:_0x3aaedc}=_0x15802c[_0x59f6ef(0x323)](_0xcb2fb9,_0xcb2fb9);if(_0x3aaedc['length']===0x0)continue;this['_drawAnchor'](_0x497d78,_0x3aaedc,_0x4dd476,_0x1106ab,_0x29ee0e),this[_0x59f6ef(0x1d9)]=this[_0x59f6ef(0x194)]();}if(_0x5012ee&&_0xcb2fb9){if(_0x4c74cf===_0x86d58a[_0x59f6ef(0xfb)]){let {pointGroup:_0x532c09}=new _0x4b546b(_0x49ad4c,_0x17fd07)[_0x59f6ef(0x323)](_0x5012ee,_0xcb2fb9)??{};if(_0x532c09==null||_0x532c09[_0x59f6ef(0xf9)]===0x0)continue;this['_drawRectRange'](_0x497d78,_0x532c09,_0x4dd476,_0x1106ab);}else{if(!_0x117026&&_0xa12ae2[_0x59f6ef(0x1ef)]){let {borderBoxPointGroup:_0x2a3ee0}=_0x15802c[_0x59f6ef(0x323)](_0x5012ee,_0xcb2fb9);if(_0x2a3ee0[_0x59f6ef(0xf9)]===0x0)continue;this[_0x59f6ef(0x151)](_0x497d78,_0x2a3ee0,_0x4dd476,_0x1106ab);}}}}}[_0x43b1c2(0xee)](_0x58c072,_0x508570,_0x480489,_0x13831a,_0x5d9ac9){const _0x2719ac=_0x43b1c2;let {left:_0x48332b,top:_0x4952fa,height:_0x45122c}=this[_0x2719ac(0x2b4)](_0x508570),_0x1088e5=1.5/this['_getScale'](),_0x5cd443=new _0x9645cc(wn+_0x42801a(0x6),{'left':_0x48332b+_0x480489-_0x1088e5,'top':_0x4952fa+_0x13831a,'height':_0x45122c,'width':1.5,'fill':_0x58c072||_0x335c6d(_0x40614d[_0x2719ac(0x15a)],0x0),'strokeWidth':_0x1088e5,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this[_0x2719ac(0x27d)]=_0x5cd443,this[_0x2719ac(0x26d)][_0x2719ac(0xeb)](_0x5cd443,_0x13b08e);let _0x26a814=new _0x9645cc(wn+_0x42801a(0x6),{'left':_0x48332b+_0x480489-_0x1088e5,'top':_0x4952fa+_0x13831a-0x2,'height':0x4,'width':0x4,'fill':_0x58c072||_0x335c6d(_0x40614d[_0x2719ac(0x15a)],0x0),'strokeWidth':0x0,'stroke':_0x58c072||_0x335c6d(_0x40614d[_0x2719ac(0x15a)],0x0),'evented':!0x1});this['_anchorDot']=_0x26a814,this['_scene'][_0x2719ac(0xeb)](_0x26a814,_0x13b08e);let _0x4a15c9=new Cn(wn+_0x42801a(0x6),{'left':_0x48332b+_0x480489-_0x1088e5,'top':_0x4952fa+_0x13831a-0x14,'text':_0x5d9ac9,'color':_0x58c072});this[_0x2719ac(0x209)]=_0x4a15c9,this[_0x2719ac(0x26d)][_0x2719ac(0xeb)](_0x4a15c9,_0x13b08e),this[_0x2719ac(0x137)]=!0x1;}['_handleHover'](){const _0x446195=_0x43b1c2;let _0x31d7d2=this[_0x446195(0x27d)][_0x446195(0x34b)]['subscribeEvent'](()=>{const _0x1811ea=_0x446195;this[_0x1811ea(0x137)]=!0x0;}),_0x46627a=this[_0x446195(0x27d)][_0x446195(0x2a4)][_0x446195(0x2f1)](()=>{const _0x24dd81=_0x446195;this[_0x24dd81(0x187)]&&clearTimeout(this['_hideTimer']),this[_0x24dd81(0x187)]=setTimeout(()=>{const _0x1f439b=_0x24dd81;this[_0x1f439b(0x137)]=!0x1;},0x7d0);});return()=>{const _0x1bfd85=_0x446195;_0x31d7d2[_0x1bfd85(0x2e3)](),_0x46627a[_0x1bfd85(0x2e3)]();};}['_drawTextRange'](_0x2b5b7c,_0x4b1579,_0x4d0df8,_0x3f832e){const _0x504934=_0x43b1c2;let _0x3a3720=0.2,_0x20974f=new _0x4e862b(_0x2b5b7c)[_0x504934(0x24d)](_0x3a3720)['toRgbString'](),_0x3ae4ea=new _0x69a902('collab-text-range-'+_0x42801a(0x6),{'pointsGroup':_0x4b1579,'fill':_0x20974f||_0x335c6d(_0x40614d[_0x504934(0x15a)],_0x3a3720),'left':_0x4d0df8,'top':_0x3f832e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x504934(0x16e)]['push'](_0x3ae4ea),this[_0x504934(0x26d)][_0x504934(0xeb)](_0x3ae4ea,_0x13b08e);}[_0x43b1c2(0x104)](_0x374b33,_0x585585,_0x4e5e20,_0xa30081){const _0x497686=_0x43b1c2;let _0x41f18e=0.2,_0x12b228=new _0x4e862b(_0x374b33)['setAlpha'](_0x41f18e)[_0x497686(0x31c)](),_0x343a6a=new _0x69a902(_0x497686(0x32b)+_0x42801a(0x6),{'pointsGroup':_0x585585,'fill':_0x12b228||_0x335c6d(_0x40614d[_0x497686(0x15a)],_0x41f18e),'left':_0x4e5e20,'top':_0xa30081,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x497686(0x23b)](_0x343a6a),this[_0x497686(0x26d)]['addObject'](_0x343a6a,_0x13b08e);}[_0x43b1c2(0x2b4)](_0x306cf7){let _0x1051c9=_0x306cf7[0x0],_0x235833=_0x1051c9[0x0],_0x5d71a2=_0x1051c9[0x2],{x:_0x551bd3,y:_0x2aed63}=_0x235833,{x:_0x411400,y:_0xe82c4e}=_0x5d71a2;return{'left':_0x551bd3,'top':_0x2aed63,'width':_0x411400-_0x551bd3,'height':_0xe82c4e-_0x2aed63};}[_0x43b1c2(0x23c)](){const _0x5eec79=_0x43b1c2;let {scaleX:_0x816082,scaleY:_0x51d789}=this[_0x5eec79(0x26d)][_0x5eec79(0x12b)]();return Math['max'](_0x816082,_0x51d789);}};function En(_0x4d3982,_0x4dcc64){const _0x1fb85d=_0x43b1c2;if(!_0x4dcc64)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x4d3982||_0x4d3982['pageType']!==_0x4dcc64['pageType']||(_0x4d3982[_0x1fb85d(0x22d)]===_0x2b34e2[_0x1fb85d(0x2f4)]||_0x4d3982[_0x1fb85d(0x22d)]===_0x2b34e2[_0x1fb85d(0x21b)])&&_0x4d3982[_0x1fb85d(0x34c)]!==_0x4dcc64[_0x1fb85d(0x34c)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x2f07a2=_0x2f5118(_0x4d3982),_0x164ca5=_0x2f5118(_0x4dcc64);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x2f07a2==null||_0x164ca5==null?_0x2f07a2==null&&_0x164ca5==null:_0x2f07a2[_0x1fb85d(0x213)]===_0x164ca5[_0x1fb85d(0x213)]&&_0x2f07a2[_0x1fb85d(0x2c3)]===_0x164ca5[_0x1fb85d(0x2c3)]&&_0x2f07a2['columnIndex']===_0x164ca5[_0x1fb85d(0x334)]};}let Dn=class extends _0x5daa34{constructor(_0x1af58,_0x53fbea,_0x5ceef7,_0xac9236,_0x9b29b7){const _0x1efcb6=_0x43b1c2;super(),this[_0x1efcb6(0x1ea)]=_0x1af58,this[_0x1efcb6(0x16a)]=_0x53fbea,this[_0x1efcb6(0x1e3)]=_0x5ceef7,this[_0x1efcb6(0x2b0)]=_0xac9236,this[_0x1efcb6(0x126)]=_0x9b29b7,K(this,_0x1efcb6(0x342),[]),K(this,_0x1efcb6(0x26b),[]),this[_0x1efcb6(0x344)]();}[_0x43b1c2(0x344)](){const _0x9baef9=_0x43b1c2;let _0x2646f3=this[_0x9baef9(0x1ea)][_0x9baef9(0x31f)],_0x2b80c9=this[_0x9baef9(0x16a)];this[_0x9baef9(0x242)](_0x5a1a2f([this[_0x9baef9(0x1e3)][_0x9baef9(0x247)](_0x2646f3),this[_0x9baef9(0x126)][_0x9baef9(0xf2)]])[_0x9baef9(0x1e2)](_0x56ab65(([_0x2a10c6,_0x28430d])=>({'skeleton':_0x2b80c9['getSkeleton'](),'cursors':[..._0x2a10c6['values']()][_0x9baef9(0x13f)](_0x22f3e6=>({..._0x22f3e6,'color':this[_0x9baef9(0x126)][_0x9baef9(0x2d6)](_0x22f3e6[_0x9baef9(0x34d)])}))})))[_0x9baef9(0x2e5)](_0x3ba769=>{const _0x5e0afc=_0x9baef9;if(this[_0x5e0afc(0x20f)](),_0x3ba769){let {skeleton:_0x13ef87,cursors:_0x36a227}=_0x3ba769;this[_0x5e0afc(0x235)](_0x13ef87,_0x36a227);}})),this[_0x9baef9(0x1b2)](),this[_0x9baef9(0x239)]();}[_0x43b1c2(0x235)](_0x2cce9e,_0x4d19ee){const _0x3313b5=_0x43b1c2;let {scene:_0x35e7db,mainComponent:_0x42c77e}=this[_0x3313b5(0x1ea)],_0x483f6e=_0x4d19ee[_0x3313b5(0x10b)](_0x211116=>new Tn(_0x211116,_0x35e7db,_0x2cce9e,_0x42c77e));this[_0x3313b5(0x342)]=_0x483f6e,this[_0x3313b5(0x26b)]=_0x4d19ee;}[_0x43b1c2(0x340)](){const _0x9b18dc=_0x43b1c2;this['_removeCollabCursors']();let {scene:_0x1ed8eb,mainComponent:_0x470207}=this[_0x9b18dc(0x1ea)],_0x247f5f=this[_0x9b18dc(0x16a)][_0x9b18dc(0x1ad)](),_0x51c924=this[_0x9b18dc(0x26b)]['map'](_0x4f5df7=>new Tn(_0x4f5df7,_0x1ed8eb,_0x247f5f,_0x470207));this[_0x9b18dc(0x342)]=_0x51c924;}[_0x43b1c2(0x20f)](){const _0x472484=_0x43b1c2;this[_0x472484(0x342)][_0x472484(0x182)](_0x449b99=>_0x449b99[_0x472484(0x1d8)]()),this[_0x472484(0x342)]=[];}[_0x43b1c2(0x239)](){const _0x54f2c4=_0x43b1c2;let _0x5128c6=[_0x55bc8a['id']];this[_0x54f2c4(0x242)](this[_0x54f2c4(0x2b0)][_0x54f2c4(0x2ae)](_0x1ad213=>{const _0x149ee3=_0x54f2c4;_0x5128c6[_0x149ee3(0x34a)](_0x1ad213['id'])&&_0x1ad213[_0x149ee3(0x1b8)]['unitId']===this[_0x149ee3(0x1ea)][_0x149ee3(0x31f)]&&this[_0x149ee3(0x340)]();}));}[_0x43b1c2(0x1b2)](){const _0x102a53=_0x43b1c2;this[_0x102a53(0x242)](_0xe2d34a(this[_0x102a53(0x1ea)]['engine']['onTransformChange$'])[_0x102a53(0x1e2)](_0x1248a5(_0x35fc8b=>_0x35fc8b[_0x102a53(0x233)]===_0x212f57[_0x102a53(0x330)]),_0x1ee6dd(0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};Dn=J([q(0x1,_0x47bc9a(_0x187841)),q(0x2,_0x47bc9a(Z)),q(0x3,_0x9de777),q(0x4,_0x47bc9a(_0x1cd93d))],Dn);var On=class extends _0x1196df{constructor(_0x3107db,_0x317e93){const _0x4beed2=_0x43b1c2;super(_0x3107db,_0x317e93),K(this,_0x4beed2(0x266),void 0x0),K(this,_0x4beed2(0x234),!0x1),K(this,_0x4beed2(0x154),void 0x0),K(this,_0x4beed2(0x14e),''),K(this,_0x4beed2(0x1b0),_0x4beed2(0x2d3)),K(this,_0x4beed2(0x271),void 0x0),K(this,_0x4beed2(0x2c6),void 0x0),K(this,_0x4beed2(0x32e),void 0x0),K(this,_0x4beed2(0x33b),0x4),K(this,_0x4beed2(0x2bd),void 0x0),K(this,_0x4beed2(0x2de),void 0x0),K(this,'_isBlinkVisible',!0x0),K(this,_0x4beed2(0x14b),0x0),K(this,'_labelHorizontalPosition',_0x4beed2(0x1b7)),_0x317e93&&(this[_0x4beed2(0x1cd)](_0x317e93),_0x317e93['highlight']&&(_0x317e93[_0x4beed2(0x2d9)]??this[_0x4beed2(0x33b)])&&this['_startBlinking'](_0x317e93[_0x4beed2(0x2d9)]??this[_0x4beed2(0x33b)])),this[_0x4beed2(0x34b)][_0x4beed2(0x2f1)](()=>this[_0x4beed2(0x1cd)]({'hovered':!0x0})),this[_0x4beed2(0x2a4)][_0x4beed2(0x2f1)](()=>this[_0x4beed2(0x1cd)]({'hovered':!0x1}));}[_0x43b1c2(0x1c2)](_0xddef9d){this['_offsetY']=_0xddef9d;}[_0x43b1c2(0x1cd)](_0x1c2abb){const _0x36b70f=_0x43b1c2;this[_0x36b70f(0x266)]=_0x1c2abb[_0x36b70f(0x34d)]??this[_0x36b70f(0x266)],this[_0x36b70f(0x234)]=_0x1c2abb[_0x36b70f(0x14f)]??this[_0x36b70f(0x234)],this[_0x36b70f(0x154)]=_0x1c2abb[_0x36b70f(0x19b)]??this[_0x36b70f(0x154)],this[_0x36b70f(0x14e)]=_0x1c2abb[_0x36b70f(0x2f8)]??this[_0x36b70f(0x14e)],this[_0x36b70f(0x1b0)]=_0x1c2abb[_0x36b70f(0x272)]??this[_0x36b70f(0x1b0)],this[_0x36b70f(0x271)]=_0x1c2abb[_0x36b70f(0x11d)]??this[_0x36b70f(0x271)],this['_showText']=_0x1c2abb[_0x36b70f(0x301)]??this[_0x36b70f(0x2c6)],this[_0x36b70f(0x109)]=_0x1c2abb[_0x36b70f(0x32c)]??this[_0x36b70f(0x109)],_0x1c2abb['highlightSecond']!==void 0x0&&(this[_0x36b70f(0x33b)]=_0x1c2abb[_0x36b70f(0x2d9)]),_0x1c2abb[_0x36b70f(0x270)]!==void 0x0&&(this[_0x36b70f(0x32e)]=_0x1c2abb['highlight']),_0x1c2abb['offsetY']!==void 0x0&&(this['_offsetY']=_0x1c2abb[_0x36b70f(0x1d1)]),this[_0x36b70f(0x28d)]({'width':_0x1c2abb[_0x36b70f(0x173)],'height':_0x1c2abb[_0x36b70f(0x1ec)]});}['onMouseMove'](_0x524a33){const _0x4d886b=_0x43b1c2;let {row:_0x13d121,column:_0x56cede}=_0x524a33;if(_0x13d121>=this[_0x4d886b(0x154)]['startRow']&&_0x13d121<=this[_0x4d886b(0x154)][_0x4d886b(0x255)]&&_0x56cede>=this['_range'][_0x4d886b(0x2b2)]&&_0x56cede<=this[_0x4d886b(0x154)][_0x4d886b(0x313)]){this[_0x4d886b(0x1cd)]({'hovered':!0x0});return;}this[_0x4d886b(0x1cd)]({'hovered':!0x1});}[_0x43b1c2(0x2d2)](_0x59eb3b){const _0xf00e3b=_0x43b1c2;this['_stopBlinking'](),this[_0xf00e3b(0x312)]=!0x0,this[_0xf00e3b(0x2de)]=window[_0xf00e3b(0x322)](()=>{const _0x2fad1a=_0xf00e3b;this[_0x2fad1a(0x312)]=!this[_0x2fad1a(0x312)],this['makeDirty'](!0x0);},0x1f4),this[_0xf00e3b(0x2bd)]=window['setTimeout'](()=>{const _0x450996=_0xf00e3b;this[_0x450996(0x1c6)](),this['_isBlinkVisible']=!0x0,this[_0x450996(0xe9)](!0x0);},_0x59eb3b*0x3e8);}['_stopBlinking'](){const _0x5f4a4a=_0x43b1c2;this[_0x5f4a4a(0x2de)]&&=(window[_0x5f4a4a(0x183)](this[_0x5f4a4a(0x2de)]),void 0x0),this['_blinkTimer']&&=(window[_0x5f4a4a(0x129)](this[_0x5f4a4a(0x2bd)]),void 0x0);}[_0x43b1c2(0x24b)](_0x209a84){return!0x1;}[_0x43b1c2(0x1d8)](){const _0x4ebf07=_0x43b1c2;this[_0x4ebf07(0x1c6)](),super['dispose']();}['_draw'](_0x26f6ac){const _0x5309c7=_0x43b1c2;let _0xcc27c9=this['_color'],_0x473db4=this[_0x5309c7(0x271)];if(this[_0x5309c7(0x32e)]&&!this[_0x5309c7(0x312)]&&(_0xcc27c9=this[_0x5309c7(0xdc)](this[_0x5309c7(0x266)]),_0x473db4=this[_0x5309c7(0x271)]?this['_getLighterColor'](this['_backgroundColor']):void 0x0),_0x9645cc[_0x5309c7(0x1ba)](_0x26f6ac,{'width':this['width'],'height':this['height'],'strokeWidth':this[_0x5309c7(0x28c)]||1.5,'stroke':_0xcc27c9,'evented':!0x1,'fill':_0x473db4}),this[_0x5309c7(0x234)]||this[_0x5309c7(0x2c6)]){_0x26f6ac[_0x5309c7(0x199)]();let _0x5bbc27=this[_0x5309c7(0x109)]===_0x5309c7(0x217)?-xn(_0x26f6ac,this[_0x5309c7(0x14e)]):this['width'];_0x26f6ac[_0x5309c7(0x13c)](0x1,0x0,0x0,0x1,_0x5bbc27,(this[_0x5309c7(0x1b0)]===_0x5309c7(0x25d)?0x0:-0x14)+(this[_0x5309c7(0x14b)]??0x0)),Cn['drawWith'](_0x26f6ac,{'text':this[_0x5309c7(0x14e)],'color':_0xcc27c9}),_0x26f6ac[_0x5309c7(0x31d)]();}}['_getLighterColor'](_0x55ade0){const _0x5575a8=_0x43b1c2;return _0x55ade0['startsWith']('#')?_0x5575a8(0x19c)+Number[_0x5575a8(0x2b6)](_0x55ade0[_0x5575a8(0x166)](0x1,0x3),0x10)+',\x20'+Number[_0x5575a8(0x2b6)](_0x55ade0[_0x5575a8(0x166)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x55ade0[_0x5575a8(0x166)](0x5,0x7),0x10)+',\x200.2)':_0x55ade0[_0x5575a8(0x1e8)](_0x5575a8(0x274))?_0x55ade0[_0x5575a8(0x26e)](/[\d.]+\)$/g,_0x5575a8(0x333)):_0x55ade0['startsWith']('rgb')?_0x55ade0['replace'](_0x5575a8(0x15c),_0x5575a8(0x274))[_0x5575a8(0x26e)](')',_0x5575a8(0x1bd)):_0x55ade0;}};let kn=class extends _0x5daa34{constructor(_0x1143d0,_0x14713b,_0x4f3157,_0x71a417){const _0x32f903=_0x43b1c2;super(),this[_0x32f903(0x1ea)]=_0x1143d0,this['_sheetSkeletonManagerService']=_0x14713b,this[_0x32f903(0x1e3)]=_0x4f3157,this[_0x32f903(0x126)]=_0x71a417,K(this,_0x32f903(0x26b),new Set()),K(this,_0x32f903(0xec),null),K(this,_0x32f903(0x195),null),this[_0x32f903(0x344)]();}[_0x43b1c2(0x344)](){const _0x10ad48=_0x43b1c2;this[_0x10ad48(0x18d)][_0x10ad48(0x116)][_0x10ad48(0x1e2)](_0x52cb54(this[_0x10ad48(0x303)]),_0x2876bb(_0x300b32=>{const _0x380465=_0x10ad48;if(_0x300b32){let _0x4ee38a=_0x300b32[_0x380465(0xd7)];return _0x5a1a2f(this[_0x380465(0x1e3)]['getCollabCursors$'](this[_0x380465(0x1ea)][_0x380465(0x31f)]),this['_themeService'][_0x380465(0xf2)])[_0x380465(0x1e2)](_0x56ab65(([_0x5ae48a,_0x473d77])=>{const _0x193d42=_0x380465;let _0x5d7ae7=new Map();return _0x5ae48a[_0x193d42(0x182)]((_0x245a9f,_0x17738b)=>{const _0x354812=_0x193d42;if(_0x245a9f[_0x354812(0x19e)]===_0x4ee38a){let _0x288a31={..._0x245a9f};_0x288a31[_0x354812(0x34d)]=this['_themeService'][_0x354812(0x2d6)](_0x245a9f[_0x354812(0x34d)]),_0x5d7ae7[_0x354812(0x168)](_0x17738b,_0x288a31);}}),{'skeleton':_0x300b32,'cursors':_0x5d7ae7};}));}return _0x28b600({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x5f5d10,cursors:_0x1b0759})=>{const _0x94976c=_0x10ad48;this[_0x94976c(0x20f)](),_0x5f5d10&&this[_0x94976c(0x235)](_0x5f5d10,_0x1b0759);}),this[_0x10ad48(0x242)](this[_0x10ad48(0x18d)][_0x10ad48(0x116)][_0x10ad48(0x1e2)](_0x52cb54(this['dispose$']))[_0x10ad48(0x2e5)](_0x2efbc0=>{const _0xf1ea59=_0x10ad48;var _0x288c68;if(_0x2efbc0==null)return;(_0x288c68=this[_0xf1ea59(0x195)])==null||_0x288c68[_0xf1ea59(0x2e3)](),this[_0xf1ea59(0x195)]=null;let {skeleton:_0x15ca8e}=_0x2efbc0,{scene:_0x17c928}=this[_0xf1ea59(0x1ea)];this[_0xf1ea59(0x195)]=_0x17c928[_0xf1ea59(0x105)][_0xf1ea59(0x2f1)](_0x32a927(_0x46ee21=>{const _0x3e244a=_0xf1ea59;var _0xea07a5,_0x1c8e45;let {offsetX:_0xf5fb04,offsetY:_0x3e4fbe}=_0x46ee21,{x:_0x5ac40b,y:_0x2f7e60}=_0x17c928[_0x3e244a(0x2af)](_0x1115c4[_0x3e244a(0x2c5)]([_0xf5fb04,_0x3e4fbe])),{scaleX:_0x44302a,scaleY:_0x208907}=_0x17c928[_0x3e244a(0x12b)](),_0x19453c=_0x17c928[_0x3e244a(0x1fd)](_0x2bab45[_0x3e244a(0x248)]),_0x189be4=_0x17c928[_0x3e244a(0xd6)](_0x1115c4['FromArray']([_0x5ac40b,_0x2f7e60]),_0x19453c),_0x12d1d0=_0x15ca8e[_0x3e244a(0x2ce)](_0xf5fb04,_0x3e4fbe,_0x44302a,_0x208907,_0x189be4);(((_0xea07a5=this['_lastPointer'])==null?void 0x0:_0xea07a5[_0x3e244a(0x294)])!==_0x12d1d0[_0x3e244a(0x294)]||((_0x1c8e45=this[_0x3e244a(0xec)])==null?void 0x0:_0x1c8e45[_0x3e244a(0x1a5)])!==_0x12d1d0[_0x3e244a(0x1a5)])&&this[_0x3e244a(0x26b)][_0x3e244a(0x182)](_0x8d7aa3=>{const _0x383626=_0x3e244a;_0x8d7aa3[_0x383626(0x1b5)](_0x12d1d0);});},0x64));})),this[_0x10ad48(0x242)](_0x4e78ef(()=>{const _0x8a9442=_0x10ad48;var _0x4a101c;(_0x4a101c=this[_0x8a9442(0x195)])==null||_0x4a101c['unsubscribe'](),this[_0x8a9442(0x195)]=null;}));}[_0x43b1c2(0x235)](_0x51b23b,_0x428603){const _0x114ced=_0x43b1c2;let _0xe167c9=this[_0x114ced(0x18d)]['getCurrentSkeleton']();if(!_0xe167c9)return;let _0x32fff9=this[_0x114ced(0x33d)]();if(!_0x32fff9)return;this[_0x114ced(0x26b)][_0x114ced(0x182)](_0x4ed385=>{const _0x475cfe=_0x114ced;_0x4ed385[_0x475cfe(0xe9)]();});let {scene:_0x53305c}=_0x32fff9,_0x49f348=An(Array['from'](_0x428603[_0x114ced(0x1f9)]()))[_0x114ced(0x10b)](_0x3e04ba=>{const _0x84c413=_0x114ced;let {color:_0x1fcbd7,range:_0x37413c,name:_0x2ec27b,selection:_0xc20f71,sheetID:_0x274f8b}=_0x3e04ba,{startColumn:_0x36c96d,startRow:_0x208d28,endColumn:_0x4f0b96,endRow:_0xc4d714}=_0x37413c,_0x3fc24e=_0x265f7e(_0x208d28,_0x36c96d,_0x53305c,_0xe167c9),_0x421c9f=_0x265f7e(_0xc4d714,_0x4f0b96,_0x53305c,_0xe167c9),{columnHeaderHeightAndMarginTop:_0x2cb13f}=_0xe167c9,{startX:_0x3687a3,startY:_0x21aad0}=_0x3fc24e,{endX:_0x53c60e,endY:_0x452937}=_0x421c9f,_0x48dbfa=_0x53c60e-_0x3687a3,_0x274439=_0x452937-_0x21aad0;return new On(_0x2ec27b,{'labelPosition':_0x21aad0-_0x2cb13f>=0x14?_0x84c413(0x2d3):_0x84c413(0x25d),'sheetID':_0x274f8b,'range':_0x37413c,'color':_0x1fcbd7,'name':_0x2ec27b,'selection':_0xc20f71,'left':_0x3687a3,'top':_0x21aad0,'width':_0x48dbfa,'height':_0x274439,'evented':!0x1,'zIndex':0x1389});});_0x53305c[_0x114ced(0x113)](_0x49f348,0x1),this[_0x114ced(0x26b)]=new Set(_0x49f348);}[_0x43b1c2(0x20f)](){const _0x5b1706=_0x43b1c2;var _0x2b4e4b;(_0x2b4e4b=this[_0x5b1706(0x26b)])==null||_0x2b4e4b[_0x5b1706(0x182)](_0x9e239=>_0x9e239['dispose']());}['_getSheetObject'](){const _0x3c6be8=_0x43b1c2;return _0x5b30fb(this[_0x3c6be8(0x1ea)]['unit'],this[_0x3c6be8(0x1ea)]);}};kn=J([q(0x1,_0x47bc9a(_0x11a560)),q(0x2,_0x47bc9a(Z)),q(0x3,_0x47bc9a(_0x1cd93d))],kn);function An(_0x46bd1f){const _0x201138=_0x43b1c2;let _0x3464d6=new Map();return _0x46bd1f[_0x201138(0x182)](_0x324eac=>{const _0x5cdf4d=_0x201138;if(_0x3464d6[_0x5cdf4d(0x2a1)](_0x324eac[_0x5cdf4d(0x29b)])){let _0x1dec30=_0x3464d6[_0x5cdf4d(0x171)](_0x324eac[_0x5cdf4d(0x29b)]);_0x1dec30[_0x5cdf4d(0x2f8)]+=',\x20'+_0x324eac[_0x5cdf4d(0x2f8)];}else _0x3464d6[_0x5cdf4d(0x168)](_0x324eac[_0x5cdf4d(0x29b)],_0x324eac);}),Array[_0x201138(0x17c)](_0x3464d6[_0x201138(0x1f9)]());}function jn(_0xee848e){const _0x5b10f0=_0x43b1c2;return typeof _0xee848e==_0x5b10f0(0x26f)&&!!_0xee848e;}function Mn(_0x101f9f){const _0x2e481d=_0x43b1c2;return _0x101f9f[_0x2e481d(0x18e)]===_0x402cad[_0x2e481d(0x2b8)]&&_0x2e481d(0xf6)in _0x101f9f&&jn(_0x101f9f['data'])&&typeof _0x101f9f[_0x2e481d(0xf6)]['memberID']==_0x2e481d(0x210)&&typeof _0x101f9f[_0x2e481d(0xf6)][_0x2e481d(0x29b)]==_0x2e481d(0x210);}function Nn(_0x3afd93){const _0x4e1ec3=_0x43b1c2;return _0x3afd93[_0x4e1ec3(0x18e)]===_0x402cad['USERS_LEAVE']&&_0x4e1ec3(0xf6)in _0x3afd93&&jn(_0x3afd93[_0x4e1ec3(0xf6)])&&typeof _0x3afd93[_0x4e1ec3(0xf6)][_0x4e1ec3(0x19a)]=='string';}function Pn(_0x579250,_0x466d28){const _0x3c7986=_0x43b1c2;let _0x36f0c0;try{_0x36f0c0=JSON[_0x3c7986(0x147)](_0x579250);}catch{return null;}if(!jn(_0x36f0c0)||typeof _0x36f0c0[_0x3c7986(0x1f2)]!=_0x3c7986(0x210)||typeof _0x36f0c0[_0x3c7986(0x31f)]!=_0x3c7986(0x210)||typeof _0x36f0c0[_0x3c7986(0x2a2)]!=_0x3c7986(0x210))return null;let _0x5325a0=typeof _0x36f0c0[_0x3c7986(0x30b)]=='number'?_0x36f0c0['unitType']:_0x466d28;if(_0x5325a0==null)return null;let _0x1a32c7=jn(_0x36f0c0[_0x3c7986(0x295)])&&typeof _0x36f0c0[_0x3c7986(0x295)]['x']==_0x3c7986(0x310)&&Number[_0x3c7986(0x160)](_0x36f0c0[_0x3c7986(0x295)]['x'])&&typeof _0x36f0c0['pointer']['y']==_0x3c7986(0x310)&&Number[_0x3c7986(0x160)](_0x36f0c0[_0x3c7986(0x295)]['y'])?{'x':_0x36f0c0[_0x3c7986(0x295)]['x'],'y':_0x36f0c0[_0x3c7986(0x295)]['y']}:null;return{'kind':_0x36f0c0[_0x3c7986(0x1f2)],'unitType':_0x5325a0,'unitId':_0x36f0c0[_0x3c7986(0x31f)],'subUnitId':_0x36f0c0[_0x3c7986(0x2a2)],'selectedIds':Array['isArray'](_0x36f0c0[_0x3c7986(0x28e)])?_0x36f0c0[_0x3c7986(0x28e)][_0x3c7986(0x1c3)](_0x41a8d2=>typeof _0x41a8d2==_0x3c7986(0x210)):[],'focusedId':typeof _0x36f0c0[_0x3c7986(0x16d)]==_0x3c7986(0x210)?_0x36f0c0[_0x3c7986(0x16d)]:null,'pointer':_0x1a32c7};}function Fn(_0x4e3029,_0x1facbb,_0x401865){const _0x5abf91=_0x43b1c2;return{'kind':_0x1facbb,'unitType':_0x4e3029,'unitId':_0x401865[_0x5abf91(0x31f)],'subUnitId':_0x401865['subUnitId'],'selectedIds':Array[_0x5abf91(0x17c)](_0x401865[_0x5abf91(0x28e)]),'focusedId':_0x401865[_0x5abf91(0x16d)],'pointer':_0x401865[_0x5abf91(0x295)]?{..._0x401865['pointer']}:null};}let In=class extends _0x5daa34{constructor(_0x32fe07,_0x357b2a,_0x315bff,_0x473e56,_0x14cf61,_0x1fb08b){const _0x2ef80c=_0x43b1c2;super(),this['unitId']=_0x32fe07,this[_0x2ef80c(0x111)]=_0x357b2a,this['_adapter']=_0x315bff,this[_0x2ef80c(0x221)]=_0x473e56,this[_0x2ef80c(0x336)]=_0x14cf61,this['_commandService']=_0x1fb08b,K(this,_0x2ef80c(0x1cb),!0x1),K(this,'_initialized',!0x1);}get[_0x43b1c2(0x30b)](){const _0x296046=_0x43b1c2;return this[_0x296046(0x33f)][_0x296046(0x30b)];}[_0x43b1c2(0x1d8)](){const _0xb53ed5=_0x43b1c2;this[_0xb53ed5(0x114)](),super[_0xb53ed5(0x1d8)]();}[_0x43b1c2(0x332)](){const _0x3143f7=_0x43b1c2;this['_initialized']||(this[_0x3143f7(0xfe)]=!0x0,this['_session'][_0x3143f7(0xef)][_0x3143f7(0x1e2)](_0xe739dc(this[_0x3143f7(0x303)]))[_0x3143f7(0x2e5)](_0x1abf32=>{const _0x1d54d0=_0x3143f7;if(_0x1abf32===_0x426c[_0x1d54d0(0x2f2)]){this['_online']=!0x0;let _0x2812df=this[_0x1d54d0(0x33f)][_0x1d54d0(0x2b5)](this[_0x1d54d0(0x31f)]);_0x2812df&&this[_0x1d54d0(0x12d)](_0x2812df);return;}this[_0x1d54d0(0x1cb)]=!0x1,this[_0x1d54d0(0x114)]();}),this['_session'][_0x3143f7(0x2bc)][_0x3143f7(0x1e2)](_0xe739dc(this[_0x3143f7(0x303)]))[_0x3143f7(0x2e5)](_0x190f23=>{const _0x51c582=_0x3143f7;Mn(_0x190f23)?this['_handleCursorUpdate'](_0x190f23):Nn(_0x190f23)&&this[_0x51c582(0x32a)](_0x190f23[_0x51c582(0xf6)][_0x51c582(0x19a)]);}),this['_adapter'][_0x3143f7(0xe8)][_0x3143f7(0x1e2)](_0x5128c1(_0x3dc054=>this[_0x3143f7(0x1cb)]&&_0x3dc054['unitId']===this['unitId']),_0xd53fb3(_0xe45f73=>_0x525150(_0xe45f73[_0x3143f7(0x207)]),{'leading':!0x0,'trailing':!0x0}),_0xe739dc(this[_0x3143f7(0x303)]))[_0x3143f7(0x2e5)](_0x2373db=>this[_0x3143f7(0x12d)](_0x2373db)));}[_0x43b1c2(0x12d)](_0x2b3c1e){const _0x4c0df9=_0x43b1c2;let _0x4a6b21=this[_0x4c0df9(0x111)]['getMemberID']();if(!_0x4a6b21||!this[_0x4c0df9(0x1cb)])return;let _0x3f319d={'eventID':_0x402cad[_0x4c0df9(0x2b8)],'data':{'unitID':this[_0x4c0df9(0x31f)],'memberID':_0x4a6b21,'selection':JSON[_0x4c0df9(0x1f0)](Fn(this['unitType'],this[_0x4c0df9(0x33f)][_0x4c0df9(0x259)],_0x2b3c1e))}};this[_0x4c0df9(0x111)][_0x4c0df9(0x17b)](_0x3f319d,this[_0x4c0df9(0x31f)])['catch'](()=>void 0x0);}[_0x43b1c2(0x244)](_0x5785a7){const _0x5975fd=_0x43b1c2;let {memberID:_0x2a0bab,selection:_0x57f94a}=_0x5785a7[_0x5975fd(0xf6)];if(_0x2a0bab===this['_session'][_0x5975fd(0x2cb)]())return;let _0x52b616=Pn(_0x57f94a,this['unitType']);if(!_0x52b616||_0x52b616['kind']!==this[_0x5975fd(0x33f)][_0x5975fd(0x259)]||_0x52b616[_0x5975fd(0x30b)]!==this['unitType']||_0x52b616['unitId']!==this[_0x5975fd(0x31f)])return;let _0x1ab106=this[_0x5975fd(0x336)]['getMember'](this[_0x5975fd(0x31f)],_0x2a0bab),_0x1469ac={'unitId':_0x52b616[_0x5975fd(0x31f)],'subUnitId':_0x52b616[_0x5975fd(0x2a2)],'selectedIds':_0x52b616['selectedIds'],'focusedId':_0x52b616['focusedId'],'pointer':_0x52b616[_0x5975fd(0x295)],'memberId':_0x2a0bab,'color':this[_0x5975fd(0x221)][_0x5975fd(0x249)](_0x2a0bab),'name':(_0x1ab106==null?void 0x0:_0x1ab106[_0x5975fd(0x2f8)])??_0x2a0bab};this[_0x5975fd(0x2b0)]['executeCommand'](X['id'],{'unitType':this[_0x5975fd(0x30b)],'update':{'type':'set','state':_0x1469ac}})[_0x5975fd(0x12e)](()=>void 0x0);}[_0x43b1c2(0x32a)](_0x2b5094){const _0x472ede=_0x43b1c2;this['_commandService'][_0x472ede(0xf3)](X['id'],{'unitType':this[_0x472ede(0x30b)],'update':{'type':_0x472ede(0x29a),'unitId':this[_0x472ede(0x31f)],'memberId':_0x2b5094}})[_0x472ede(0x12e)](()=>void 0x0);}[_0x43b1c2(0x114)](){const _0x480c0d=_0x43b1c2;this[_0x480c0d(0x2b0)][_0x480c0d(0xf3)](X['id'],{'unitType':this[_0x480c0d(0x30b)],'update':{'type':'clear','unitId':this[_0x480c0d(0x31f)]}})[_0x480c0d(0x12e)](()=>void 0x0);}};In=J([q(0x3,_0x47bc9a(mn)),q(0x4,_0x47bc9a(_0x3b76af)),q(0x5,_0x47bc9a(_0x9de777))],In);let Ln=class extends _0x5daa34{constructor(_0x49a471,_0x437926,_0xfb2a8b,_0x5106b7){const _0x51de1d=_0x43b1c2;super(),this[_0x51de1d(0x288)]=_0x49a471,this[_0x51de1d(0x241)]=_0x437926,this[_0x51de1d(0x1eb)]=_0xfb2a8b,this[_0x51de1d(0xe7)]=_0x5106b7,K(this,_0x51de1d(0x24a),!0x1),K(this,_0x51de1d(0x2e7),new Map()),K(this,_0x51de1d(0x167),new Map()),K(this,_0x51de1d(0x2b7),new Map()),this[_0x51de1d(0x344)]();}['dispose'](){const _0x16d311=_0x43b1c2;this[_0x16d311(0x24a)]=!0x0,this[_0x16d311(0x2b7)][_0x16d311(0x182)](_0x24dcb8=>_0x24dcb8[_0x16d311(0x1d8)]()),this[_0x16d311(0x2b7)][_0x16d311(0x184)](),this[_0x16d311(0x2e7)][_0x16d311(0x182)](_0xeda9b1=>_0xeda9b1[_0x16d311(0x1d8)]()),this['_entities'][_0x16d311(0x184)](),this['_pendingEntities'][_0x16d311(0x184)](),super[_0x16d311(0x1d8)]();}[_0x43b1c2(0x344)](){const _0x2966da=_0x43b1c2;this[_0x2966da(0xe7)]['adapters$'][_0x2966da(0x1e2)](_0xe739dc(this[_0x2966da(0x303)]))[_0x2966da(0x2e5)](_0x37f980=>this[_0x2966da(0x1e1)](_0x37f980));}['_syncAdapters'](_0x2d10a7){const _0x1b2ef6=_0x43b1c2;let _0x187ba0=new Set(_0x2d10a7[_0x1b2ef6(0x10b)](_0x887123=>_0x887123[_0x1b2ef6(0x30b)]));this[_0x1b2ef6(0x2b7)][_0x1b2ef6(0x182)]((_0x1ca091,_0x382981)=>{const _0x27d374=_0x1b2ef6;_0x187ba0[_0x27d374(0x2a1)](_0x382981)||(_0x1ca091[_0x27d374(0x1d8)](),this[_0x27d374(0x2b7)][_0x27d374(0x2a8)](_0x382981),this[_0x27d374(0x240)](_0x382981));}),_0x2d10a7[_0x1b2ef6(0x182)](_0x1f46d7=>{const _0x4807d3=_0x1b2ef6;this[_0x4807d3(0x2b7)][_0x4807d3(0x2a1)](_0x1f46d7[_0x4807d3(0x30b)])||this[_0x4807d3(0x346)](_0x1f46d7);});}[_0x43b1c2(0x346)](_0x268ae6){const _0x4ea23e=_0x43b1c2;let _0x453bf0=new _0x4f93f4();this[_0x4ea23e(0x2b7)]['set'](_0x268ae6[_0x4ea23e(0x30b)],_0x453bf0),_0x453bf0[_0x4ea23e(0x231)](_0x268ae6[_0x4ea23e(0x302)]()),this[_0x4ea23e(0x288)][_0x4ea23e(0x246)](_0x268ae6[_0x4ea23e(0x30b)])[_0x4ea23e(0x182)](_0x28c787=>this[_0x4ea23e(0x175)](_0x28c787[_0x4ea23e(0xdd)](),_0x268ae6)[_0x4ea23e(0x12e)](()=>void 0x0));let _0x3bfb6a=this[_0x4ea23e(0x288)][_0x4ea23e(0x280)](_0x268ae6[_0x4ea23e(0x30b)])['subscribe'](({unit:_0x51a4a3})=>this['_startEntity'](_0x51a4a3[_0x4ea23e(0xdd)](),_0x268ae6)[_0x4ea23e(0x12e)](()=>void 0x0));_0x453bf0[_0x4ea23e(0x231)](_0x4e78ef(()=>_0x3bfb6a['unsubscribe']()));let _0x56d8df=this[_0x4ea23e(0x288)][_0x4ea23e(0x140)](_0x268ae6[_0x4ea23e(0x30b)])[_0x4ea23e(0x2e5)](_0x45045c=>this[_0x4ea23e(0x1ee)](_0x45045c[_0x4ea23e(0xdd)]()));_0x453bf0[_0x4ea23e(0x231)](_0x4e78ef(()=>_0x56d8df[_0x4ea23e(0x2e3)]()));}async[_0x43b1c2(0x175)](_0x3c40cd,_0x5e7e89){const _0x9d164c=_0x43b1c2;if(this[_0x9d164c(0x2e7)][_0x9d164c(0x2a1)](_0x3c40cd)||this[_0x9d164c(0x167)][_0x9d164c(0x2a1)](_0x3c40cd))return;let _0x48a772={};this[_0x9d164c(0x167)][_0x9d164c(0x168)](_0x3c40cd,_0x48a772);let _0x1a086e=await this[_0x9d164c(0x1eb)]['requireSession'](_0x3c40cd)[_0x9d164c(0x12e)](_0x313bc7=>{const _0x2ac277=_0x9d164c;throw this['_pendingEntities']['get'](_0x3c40cd)===_0x48a772&&this[_0x2ac277(0x167)][_0x2ac277(0x2a8)](_0x3c40cd),_0x313bc7;});if(this[_0x9d164c(0x24a)]||this[_0x9d164c(0x167)][_0x9d164c(0x171)](_0x3c40cd)!==_0x48a772||this[_0x9d164c(0xe7)][_0x9d164c(0x171)](_0x5e7e89[_0x9d164c(0x30b)])!==_0x5e7e89){this[_0x9d164c(0x167)][_0x9d164c(0x171)](_0x3c40cd)===_0x48a772&&this[_0x9d164c(0x167)][_0x9d164c(0x2a8)](_0x3c40cd);return;}let _0x593084=this[_0x9d164c(0x241)][_0x9d164c(0x337)](In,_0x3c40cd,_0x1a086e,_0x5e7e89);_0x593084[_0x9d164c(0x332)](),this[_0x9d164c(0x167)][_0x9d164c(0x2a8)](_0x3c40cd),this[_0x9d164c(0x2e7)][_0x9d164c(0x168)](_0x3c40cd,_0x593084);}['_disposeEntity'](_0x3ae56f){const _0xca2d35=_0x43b1c2;this[_0xca2d35(0x167)][_0xca2d35(0x2a8)](_0x3ae56f);let _0x168857=this[_0xca2d35(0x2e7)]['get'](_0x3ae56f);_0x168857&&(_0x168857[_0xca2d35(0x1d8)](),this['_entities'][_0xca2d35(0x2a8)](_0x3ae56f));}[_0x43b1c2(0x240)](_0x525a67){const _0x270435=_0x43b1c2;this[_0x270435(0x288)]['getAllUnitsForType'](_0x525a67)[_0x270435(0x182)](_0x378f9d=>this[_0x270435(0x167)][_0x270435(0x2a8)](_0x378f9d[_0x270435(0xdd)]())),Array['from'](this[_0x270435(0x2e7)][_0x270435(0x219)]())['forEach'](([_0xf845c8,_0x5aee18])=>{const _0x37b598=_0x270435;_0x5aee18['unitType']===_0x525a67&&this[_0x37b598(0x1ee)](_0xf845c8);});}};Ln=J([q(0x0,_0x576907),q(0x1,_0x47bc9a(_0x380635)),q(0x2,_0x47bc9a(_0x5c5d11)),q(0x3,_0x47bc9a(_0xc6dda1))],Ln);const Rn={'toast':_0x43b1c2(0x226),'actionButton':_0x43b1c2(0x2e4)};let zn=class extends _0xf50eed{constructor(_0x12dc6e,_0xf0fae5,_0x3bbf6d,_0x23cb66,_0x1f0093,_0x13aa39){const _0x4a588c=_0x43b1c2;super(),this[_0x4a588c(0x2a7)]=_0x12dc6e,this[_0x4a588c(0x296)]=_0xf0fae5,this[_0x4a588c(0x326)]=_0x3bbf6d,this[_0x4a588c(0x200)]=_0x23cb66,this[_0x4a588c(0x252)]=_0x1f0093,this[_0x4a588c(0xd8)]=_0x13aa39,K(this,'_conflictNotification',null),K(this,_0x4a588c(0x22c),new Set()),this[_0x4a588c(0x227)](),this[_0x4a588c(0x150)]();}[_0x43b1c2(0x1d8)](){const _0x5feff5=_0x43b1c2;var _0x4e3016;(_0x4e3016=this[_0x5feff5(0x23f)])==null||_0x4e3016[_0x5feff5(0x1d8)](),this[_0x5feff5(0x23f)]=null,super[_0x5feff5(0x1d8)]();}[_0x43b1c2(0x227)](){const _0x3b7a6b=_0x43b1c2;this[_0x3b7a6b(0x242)](this['_beforeCloseService'][_0x3b7a6b(0x16c)](()=>{const _0x32e7c7=_0x3b7a6b;if(this[_0x32e7c7(0x296)][_0x32e7c7(0x1e7)]['size'])return this['_localeService']['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x43b1c2(0x150)](){const _0xb287b7=_0x43b1c2;this['disposeWithMe'](this['_collaborationUIEventService'][_0xb287b7(0x2bc)]['subscribe'](_0x591a4b=>{const _0x3202e8=_0xb287b7;_0x591a4b['id']===_0x5e5483[_0x3202e8(0x149)]&&this[_0x3202e8(0x200)][_0x3202e8(0x1a9)]({'type':_0x1e5e0e['Warning'],'content':this[_0x3202e8(0xd8)]['t'](_0x3202e8(0x245))}),_0x591a4b['id']===_0x5e5483[_0x3202e8(0xdf)]&&this[_0x3202e8(0x200)][_0x3202e8(0x1a9)]({'type':_0x1e5e0e[_0x3202e8(0x22b)],'content':this[_0x3202e8(0xd8)]['t'](_0x3202e8(0x1f1))}),_0x591a4b['id']===_0x5e5483[_0x3202e8(0x2e6)]&&this[_0x3202e8(0x2b3)]({'title':this[_0x3202e8(0xd8)]['t']('collaboration-client-ui.permission.title'),'content':this[_0x3202e8(0xd8)]['t'](_0x3202e8(0x289)),'type':_0x3202e8(0x15b),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Rn,'action':{'label':this['_localeService']['t'](_0x3202e8(0x299)),'onClick':_0x33bba2=>{const _0x3555df=_0x3202e8;_0x33bba2[_0x3555df(0x306)](),window['location'][_0x3555df(0x28b)]();}}}),_0x591a4b['id']===_0x5e5483[_0x3202e8(0x1c8)]&&this[_0x3202e8(0x1d6)](),_0x591a4b['id']===_0x5e5483['CONFLICT_CACHE_CLEAR_FAILED']&&_0x591a4b[_0x3202e8(0x2fc)]&&this[_0x3202e8(0x189)](_0x591a4b[_0x3202e8(0x2fc)]),_0x591a4b['id']===_0x5e5483['CONFLICT']&&this[_0x3202e8(0x2b3)]({'title':this[_0x3202e8(0xd8)]['t'](_0x3202e8(0x281)),'content':this[_0x3202e8(0xd8)]['t']('collaboration-client-ui.conflict.content'),'type':_0x3202e8(0x15b),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Rn,'action':{'label':this[_0x3202e8(0xd8)]['t'](_0x3202e8(0x299)),'onClick':_0x11f089=>{const _0x2813c9=_0x3202e8;_0x11f089[_0x2813c9(0x306)](),window[_0x2813c9(0x2f5)][_0x2813c9(0x28b)]();}}}),_0x591a4b['id']===_0x5e5483[_0x3202e8(0xd4)]&&this[_0x3202e8(0x200)][_0x3202e8(0x1a9)]({'type':_0x1e5e0e['Warning'],'content':this[_0x3202e8(0xd8)]['t'](_0x591a4b['data']||'')}),_0x591a4b['id']===_0x5e5483[_0x3202e8(0x197)]&&this['_messageService']['show']({'type':_0x1e5e0e[_0x3202e8(0x22b)],'content':this['_localeService']['t']('collaboration-client-ui.session.will-retry')}),_0x591a4b['id']===_0x5e5483[_0x3202e8(0x163)]&&this['_messageService'][_0x3202e8(0x1a9)]({'type':_0x1e5e0e[_0x3202e8(0xff)],'content':this[_0x3202e8(0xd8)]['t']('collaboration-client-ui.session.connection-failed')}),_0x591a4b['id']===_0x5e5483[_0x3202e8(0x131)]&&this[_0x3202e8(0x200)][_0x3202e8(0x1a9)]({'type':_0x1e5e0e[_0x3202e8(0xff)],'content':this[_0x3202e8(0xd8)]['t'](_0x3202e8(0x170))});}));}[_0x43b1c2(0x1d6)](){const _0x4eddea=_0x43b1c2;this['_replaceConflictNotification']({'title':this[_0x4eddea(0xd8)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x4eddea(0xd8)]['t'](_0x4eddea(0x2f0)),'type':'loading','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}[_0x43b1c2(0x189)](_0x272bc2){const _0x34c343=_0x43b1c2;this[_0x34c343(0x2b3)]({'title':this[_0x34c343(0xd8)]['t'](_0x34c343(0x281)),'content':this['_localeService']['t'](_0x34c343(0x329)),'type':_0x34c343(0x15b),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Rn,'action':{'label':this[_0x34c343(0xd8)]['t']('collaboration-client-ui.conflict.retry'),'onClick':_0x5e6ba4=>{const _0x5f4e76=_0x34c343;_0x5e6ba4[_0x5f4e76(0x306)](),this[_0x5f4e76(0x2ea)](_0x272bc2);}}});}['_retryConflictCacheClear'](_0x2658f6){const _0x34fea7=_0x43b1c2;this['_retryingConflictCacheUnitIDs'][_0x34fea7(0x2a1)](_0x2658f6)||(this['_retryingConflictCacheUnitIDs'][_0x34fea7(0x231)](_0x2658f6),this[_0x34fea7(0x1d6)](),this[_0x34fea7(0x296)][_0x34fea7(0x1d3)](_0x2658f6)['then'](()=>window[_0x34fea7(0x2f5)][_0x34fea7(0x28b)]())[_0x34fea7(0x12e)](()=>this[_0x34fea7(0x189)](_0x2658f6))[_0x34fea7(0x33c)](()=>this[_0x34fea7(0x22c)]['delete'](_0x2658f6)));}[_0x43b1c2(0x2b3)](_0x246f04){const _0x453f87=_0x43b1c2;var _0x36ca45;(_0x36ca45=this[_0x453f87(0x23f)])==null||_0x36ca45[_0x453f87(0x1d8)](),this['_conflictNotification']=this[_0x453f87(0x252)][_0x453f87(0x1a9)](_0x246f04);}};zn=J([q(0x0,_0x150ea4),q(0x1,_0x232043),q(0x2,_0x47bc9a(_0x23f66a)),q(0x3,_0x3ba0c5),q(0x4,_0x1acf91),q(0x5,_0x47bc9a(_0x2906e7))],zn);const Q=_0x4a0f08(_0x43b1c2(0x180));let Bn=class extends _0x5daa34{constructor(_0x4c4e10,_0x446463,_0x65eee8,_0x1d236b){const _0x562106=_0x43b1c2;super(),this[_0x562106(0x1fb)]=_0x4c4e10,this['_logService']=_0x446463,this['_commandService']=_0x65eee8,this[_0x562106(0x1bc)]=_0x1d236b,this[_0x562106(0x344)]()[_0x562106(0x12e)](_0x1fee96=>this[_0x562106(0x14c)][_0x562106(0x15b)](_0x562106(0x2ed),_0x1fee96));}async[_0x43b1c2(0x344)](){const _0x5bc871=_0x43b1c2;let _0x33d1dc=this[_0x5bc871(0x1fb)]['getParam'](_0x5bc871(0x29f)),_0x5744e3=this[_0x5bc871(0x1fb)][_0x5bc871(0x28a)](_0x5bc871(0x233)),_0x24bace=this[_0x5bc871(0x1fb)]['getParam'](_0x5bc871(0x100));if(!_0x33d1dc||!_0x5744e3){this[_0x5bc871(0x14c)][_0x5bc871(0x27b)](_0x5bc871(0x2ed),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x38a28e=await this[_0x5bc871(0x1bc)][_0x5bc871(0x18b)](_0x33d1dc,Number(_0x5744e3),_0x24bace);this[_0x5bc871(0x228)]||_0x38a28e&&_0x38a28e instanceof _0x4d7429&&await this['_setupSubUnitSync'](_0x38a28e);}async[_0x43b1c2(0x325)](_0x4b196d){const _0x3bdd41=_0x43b1c2;await this['_updateSubUnitFromURLParams'](_0x4b196d,!0x0),!this['_disposed']&&(_0x4b196d[_0x3bdd41(0x214)][_0x3bdd41(0x1e2)](_0xe739dc(this[_0x3bdd41(0x303)]))['subscribe'](_0x23472e=>{const _0x938467=_0x3bdd41;_0x23472e&&this[_0x938467(0x309)](_0x23472e);}),this[_0x3bdd41(0x1fb)][_0x3bdd41(0x273)][_0x3bdd41(0x1e2)](_0xe739dc(this[_0x3bdd41(0x303)]))[_0x3bdd41(0x2e5)](()=>{const _0x29f932=_0x3bdd41;this[_0x29f932(0x204)](_0x4b196d)['catch'](_0x455d17=>this[_0x29f932(0x14c)]['error'](_0x29f932(0x2ed),_0x455d17));}));}['_updateURLWithCurrentState'](_0x494b33,_0x4f14a4=!0x1){const _0x45b32a=_0x43b1c2;let _0x3f1584=this[_0x45b32a(0x1fb)][_0x45b32a(0x28a)](_0x45b32a(0x100));_0x494b33[_0x45b32a(0x2c4)]()!==_0x3f1584&&this[_0x45b32a(0x1fb)][_0x45b32a(0x31b)](_0x45b32a(0x100),_0x494b33['getSheetId'](),_0x4f14a4);}async[_0x43b1c2(0x204)](_0x51a17f,_0xce8d03=!0x1){const _0x179db9=_0x43b1c2;var _0x5dbb8a;let _0x3958eb=this['_urlService'][_0x179db9(0x28a)](_0x179db9(0x100));if(!_0x3958eb||!_0x51a17f[_0x179db9(0x20c)](_0x3958eb)){let _0x347748=_0x51a17f[_0x179db9(0x1e9)]()[0x0],_0x2f8f17=_0x51a17f[_0x179db9(0x20c)](_0x347748);if(!_0x2f8f17||(this[_0x179db9(0x309)](_0x2f8f17,!0x0),this[_0x179db9(0x228)]))return;await this[_0x179db9(0x2b0)]['executeCommand'](_0x5b3874['id'],{'unitId':_0x51a17f[_0x179db9(0xdd)](),'subUnitId':_0x347748});return;}(_0xce8d03||((_0x5dbb8a=_0x51a17f['getActiveSheet']())==null?void 0x0:_0x5dbb8a[_0x179db9(0x2c4)]())!==_0x3958eb)&&await this[_0x179db9(0x2b0)]['executeCommand'](_0x5b3874['id'],{'unitId':_0x51a17f[_0x179db9(0xdd)](),'subUnitId':_0x3958eb});}};Bn=J([q(0x0,Q),q(0x1,_0x232361),q(0x2,_0x9de777),q(0x3,_0x47bc9a(_0x282d0f))],Bn);let Vn=class{constructor(_0x52f84d,_0x37190d){const _0x511b75=_0x43b1c2;this[_0x511b75(0x21c)]=_0x52f84d,this['_renderManagerService']=_0x37190d;}['transformIMECache'](_0x2c9ade){const _0x834dfc=_0x43b1c2;this[_0x834dfc(0x12f)](_0x2c9ade),this[_0x834dfc(0x152)](_0x2c9ade);}[_0x43b1c2(0x132)](_0x23f73a){const _0x2f0c84=_0x43b1c2;let {unitID:_0x1eb368}=_0x23f73a,{redoCache:_0x29b414}=this['_renderManagerService'][_0x2f0c84(0x2f9)](_0x1eb368)[_0x2f0c84(0x157)](_0x386a8e)[_0x2f0c84(0x21f)]();if(_0x29b414[_0x2f0c84(0xf9)]===0x0)return _0x23f73a;let _0x54a657=_0x29d05b[_0x2f0c84(0x283)](_0x23f73a[_0x2f0c84(0x343)][0x0]);for(let _0x3f2f87=0x0;_0x3f2f87<_0x29b414[_0x2f0c84(0xf9)];_0x3f2f87++){let _0x51750d={'id':_0x2f0c84(0x18a),'params':{..._0x29b414[_0x3f2f87]}},_0x5d3477=this[_0x2f0c84(0x21c)][_0x2f0c84(0x2e8)](_0x54a657,_0x51750d,!0x1);if(_0x4e7233(_0x5d3477))throw _0x5d3477[_0x2f0c84(0x15b)];_0x54a657=_0x5d3477[_0x2f0c84(0x238)];}return{..._0x29d05b[_0x2f0c84(0x283)](_0x23f73a),'mutations':[_0x54a657]};}[_0x43b1c2(0x12f)](_0x1a949a){const _0x2f3f3e=_0x43b1c2;let {unitID:_0x16a4dc}=_0x1a949a,_0xca3a0a=this[_0x2f3f3e(0x321)]['getRenderUnitById'](_0x16a4dc)[_0x2f3f3e(0x157)](_0x386a8e),{undoCache:_0x444a35,redoCache:_0x5c703d}=_0xca3a0a[_0x2f3f3e(0x21f)]();if(_0x444a35['length']===0x0||_0x5c703d[_0x2f3f3e(0xf9)]===0x0)return;let _0x6bf4d2=[],_0x571609=[],_0x8f9f60=_0x29d05b[_0x2f3f3e(0x283)](_0x1a949a[_0x2f3f3e(0x343)][0x0]),_0x156120=_0x29d05b[_0x2f3f3e(0x283)](_0x1a949a[_0x2f3f3e(0x343)][0x0]);for(let _0x2e5292=_0x444a35['length']-0x1;_0x2e5292>=0x0;_0x2e5292--){let _0x3990d3={'id':_0x2f3f3e(0x18a),'params':{..._0x444a35[_0x2e5292]}},_0x27f514={'id':'doc.mutation.rich-text-editing','params':{..._0x5c703d[_0x2e5292]}},_0x20b5a8=this[_0x2f3f3e(0x21c)][_0x2f3f3e(0x2e8)](_0x8f9f60,_0x3990d3,!0x1),_0x53f41a=this[_0x2f3f3e(0x21c)][_0x2f3f3e(0x2e8)](_0x156120,_0x27f514,!0x1);if(_0x4e7233(_0x20b5a8))throw _0x20b5a8['error'];if(_0x4e7233(_0x53f41a))throw _0x53f41a[_0x2f3f3e(0x15b)];_0x6bf4d2[_0x2f3f3e(0x2d7)](_0x20b5a8['m2Prime'][_0x2f3f3e(0x1b8)]),_0x571609['unshift'](_0x53f41a[_0x2f3f3e(0x1e5)][_0x2f3f3e(0x1b8)]),_0x8f9f60=_0x20b5a8['m1Prime'],_0x156120=_0x53f41a[_0x2f3f3e(0x238)];}_0xca3a0a[_0x2f3f3e(0x196)]({'undoCache':_0x6bf4d2,'redoCache':_0x571609});}[_0x43b1c2(0x152)](_0x4d6009){const _0x2a811e=_0x43b1c2;let {unitID:_0x48ad77}=_0x4d6009,_0x16b1b1=this[_0x2a811e(0x321)][_0x2a811e(0x2f9)](_0x48ad77)[_0x2a811e(0x157)](_0x386a8e),_0x28967d=_0x16b1b1[_0x2a811e(0x190)]();if(_0x28967d==null)return;let _0x4c386c=[{'id':_0x2a811e(0x18a),'params':{'unitId':_0x4d6009[_0x2a811e(0x2fc)],'actions':null,'textRanges':[_0x28967d]}}],_0x29cf09=this[_0x2a811e(0x21c)][_0x2a811e(0x2d5)](_0x4d6009,_0x4c386c);if(!_0x16f367(_0x29cf09))throw _0x29cf09['error'];let _0x32a93d=_0x29cf09[_0x2a811e(0x1e5)][0x0][_0x2a811e(0x1b8)][_0x2a811e(0x1a1)];Array[_0x2a811e(0xe1)](_0x32a93d)&&_0x32a93d[_0x2a811e(0xf9)]&&_0x16b1b1['setActiveRange'](_0x32a93d[0x0]);}};Vn=J([q(0x0,_0x38ff0a),q(0x1,_0x4c7906)],Vn);let Hn=class{constructor(_0xc9c8de,_0x2d4833,_0x5afc75){const _0x2a0068=_0x43b1c2;this['_injector']=_0xc9c8de,this[_0x2a0068(0x21c)]=_0x2d4833,this[_0x2a0068(0x27a)]=_0x5afc75;}[_0x43b1c2(0x17f)](_0x2466a7){const _0x17bd12=_0x43b1c2;this[_0x17bd12(0x276)](_0x2466a7);}['transformRemoteChangeset'](_0x3bd6a9){const _0x282a4f=_0x43b1c2;let {unitID:_0x5c7b00}=_0x3bd6a9,{collaboration:_0x31234a}=this['_docStateChangeManagerService'][_0x282a4f(0x216)](_0x5c7b00);if(_0x31234a[_0x282a4f(0xf9)]===0x0)return _0x3bd6a9;let _0x368da3=_0x29d05b[_0x282a4f(0x283)](_0x3bd6a9[_0x282a4f(0x343)][0x0]);for(let _0x35e6b6=0x0;_0x35e6b6<_0x31234a[_0x282a4f(0xf9)];_0x35e6b6++){let _0x195aaa={'id':_0x282a4f(0x18a),'params':{'unitId':_0x31234a[_0x35e6b6]['unitId'],..._0x31234a[_0x35e6b6][_0x282a4f(0x293)]}},_0x34a8bf=this[_0x282a4f(0x21c)]['transformMutation'](_0x368da3,_0x195aaa,!0x1);if(_0x4e7233(_0x34a8bf))throw _0x34a8bf[_0x282a4f(0x15b)];_0x368da3=_0x34a8bf[_0x282a4f(0x238)];}return{..._0x29d05b[_0x282a4f(0x283)](_0x3bd6a9),'mutations':[_0x368da3]};}[_0x43b1c2(0x276)](_0x4a10da){const _0x4ae265=_0x43b1c2;let {unitID:_0x3e8111}=_0x4a10da,{history:_0x58a9a7,collaboration:_0x17dc29}=this[_0x4ae265(0x27a)][_0x4ae265(0x216)](_0x3e8111);if(_0x58a9a7[_0x4ae265(0xf9)]===0x0&&_0x17dc29[_0x4ae265(0xf9)]===0x0)return;let _0x4039ac=[],_0x469551=[],_0x2d1331=_0x29d05b['deepClone'](_0x4a10da[_0x4ae265(0x343)][0x0]),_0x1361aa=_0x29d05b[_0x4ae265(0x283)](_0x4a10da['mutations'][0x0]);for(let _0x1e58f3=_0x58a9a7[_0x4ae265(0xf9)]-0x1;_0x1e58f3>=0x0;_0x1e58f3--){let _0x101eaa={'id':_0x4ae265(0x18a),'params':{'unitId':_0x58a9a7[_0x1e58f3]['unitId'],..._0x58a9a7[_0x1e58f3]['undoState']}},_0x161ee3={'id':_0x4ae265(0x18a),'params':{'unitId':_0x58a9a7[_0x1e58f3]['unitId'],..._0x58a9a7[_0x1e58f3][_0x4ae265(0x293)]}},_0x4e62ab=this[_0x4ae265(0x21c)][_0x4ae265(0x2e8)](_0x2d1331,_0x101eaa,!0x1),_0x270fea=this[_0x4ae265(0x21c)][_0x4ae265(0x2e8)](_0x1361aa,_0x161ee3,!0x1);if(_0x4e7233(_0x4e62ab))throw _0x4e62ab[_0x4ae265(0x15b)];if(_0x4e7233(_0x270fea))throw _0x270fea[_0x4ae265(0x15b)];_0x4039ac[_0x4ae265(0x2d7)]({..._0x58a9a7[_0x1e58f3],'undoState':_0x4e62ab[_0x4ae265(0x1e5)][_0x4ae265(0x1b8)],'redoState':_0x270fea[_0x4ae265(0x1e5)]['params']}),_0x2d1331=_0x4e62ab[_0x4ae265(0x238)],_0x1361aa=_0x270fea[_0x4ae265(0x238)];}_0x2d1331=_0x29d05b[_0x4ae265(0x283)](_0x4a10da[_0x4ae265(0x343)][0x0]),_0x1361aa=_0x29d05b[_0x4ae265(0x283)](_0x4a10da[_0x4ae265(0x343)][0x0]);for(let _0x34d747=_0x17dc29[_0x4ae265(0xf9)]-0x1;_0x34d747>=0x0;_0x34d747--){let _0x49e51e={'id':_0x4ae265(0x18a),'params':{'unitId':_0x17dc29[_0x34d747][_0x4ae265(0x31f)],..._0x17dc29[_0x34d747][_0x4ae265(0x1de)]}},_0x4203b3={'id':_0x4ae265(0x18a),'params':{'unitId':_0x17dc29[_0x34d747][_0x4ae265(0x31f)],..._0x17dc29[_0x34d747][_0x4ae265(0x293)]}},_0x35736a=this[_0x4ae265(0x21c)]['transformMutation'](_0x2d1331,_0x49e51e,!0x1),_0x5e3e28=this[_0x4ae265(0x21c)][_0x4ae265(0x2e8)](_0x1361aa,_0x4203b3,!0x1);if(_0x4e7233(_0x35736a))throw _0x35736a[_0x4ae265(0x15b)];if(_0x4e7233(_0x5e3e28))throw _0x5e3e28[_0x4ae265(0x15b)];_0x469551[_0x4ae265(0x2d7)]({..._0x17dc29[_0x34d747],'undoState':_0x35736a[_0x4ae265(0x1e5)][_0x4ae265(0x1b8)],'redoState':_0x5e3e28[_0x4ae265(0x1e5)][_0x4ae265(0x1b8)]}),_0x2d1331=_0x35736a['m1Prime'],_0x1361aa=_0x5e3e28[_0x4ae265(0x238)];}this[_0x4ae265(0x27a)][_0x4ae265(0x27c)](_0x3e8111,{'history':_0x4039ac,'collaboration':_0x469551});}};Hn=J([q(0x0,_0x47bc9a(_0x380635)),q(0x1,_0x38ff0a),q(0x2,_0x47bc9a(_0x9861ab))],Hn);let Un=class{constructor(_0x3adf69,_0x482cf0){const _0xb95746=_0x43b1c2;this[_0xb95746(0x201)]=_0x3adf69,this[_0xb95746(0x21c)]=_0x482cf0;}[_0x43b1c2(0x218)](_0x54d8b9){const _0x176c53=_0x43b1c2;var _0x3bb445;let _0x143a8d=this[_0x176c53(0x201)][_0x176c53(0xfc)]()??[],_0x50353d=this[_0x176c53(0x201)][_0x176c53(0x28f)]();if(_0x143a8d['length']===0x0||_0x50353d==null)return null;let _0x4e3e8d=_0x54d8b9['unitID'],_0x356a5d=[{'id':_0x176c53(0x18a),'params':{'unitId':_0x4e3e8d,'actions':null,'textRanges':_0x143a8d}}],_0x1d625a=this[_0x176c53(0x21c)][_0x176c53(0x2d5)](_0x54d8b9,_0x356a5d);if(!_0x16f367(_0x1d625a))throw _0x1d625a[_0x176c53(0x15b)];let _0x395c26=(_0x3bb445=_0x1d625a[_0x176c53(0x1e5)][0x0])==null?void 0x0:_0x3bb445['params'],_0x4c50ac=_0x395c26&&typeof _0x395c26=='object'&&_0x176c53(0x1a1)in _0x395c26?_0x395c26['textRanges']:null;if(!Kn(_0x4c50ac))return null;let _0x5c1d98=Wn(_0x54d8b9['mutations']['some'](_0x2952bd=>qn(_0x2952bd['params']))?_0x4c50ac['filter'](_0xaf7760=>!(_0x176c53(0x1b4)in _0xaf7760)):_0x4c50ac,{..._0x50353d,'options':_0x50353d[_0x176c53(0x2a5)]?{..._0x50353d[_0x176c53(0x2a5)],'wholeDocument':!0x1}:void 0x0}),_0x5f2c32={'unitId':_0x4e3e8d,'subUnitId':_0x4e3e8d};this[_0x176c53(0x201)]['replaceSelectionInfoWithoutRefresh'](_0x5c1d98,_0x5f2c32);let _0x2d6159=!0x0;return{'commit':()=>{_0x2d6159=!0x1;},'rollback':()=>{const _0xbc5221=_0x176c53;_0x2d6159&&(_0x2d6159=!0x1,this[_0xbc5221(0x201)]['replaceSelectionInfoWithoutRefresh'](_0x50353d,_0x5f2c32));}};}};Un=J([q(0x0,_0x47bc9a(_0x2785ee)),q(0x1,_0x38ff0a)],Un);function Wn(_0x2b72b1,_0x1cb22e){const _0xfc41de=_0x43b1c2;let _0x1be7d0=[],_0x5f00c8=[];for(let _0x2481f9 of _0x2b72b1)Gn(_0x2481f9)?_0x5f00c8['push'](_0x2481f9):_0x1be7d0[_0xfc41de(0x23b)](_0x2481f9);return{..._0x1cb22e,'textRanges':_0x1be7d0,'rectRanges':_0x5f00c8};}function Gn(_0x4bb5dc){return'tableId'in _0x4bb5dc;}function Kn(_0x34d4e4){const _0x1f1dfc=_0x43b1c2;return Array[_0x1f1dfc(0xe1)](_0x34d4e4)&&_0x34d4e4['every'](_0x4a087a=>typeof _0x4a087a==_0x1f1dfc(0x26f)&&!!_0x4a087a&&_0x1f1dfc(0x1ac)in _0x4a087a&&_0x1f1dfc(0x2ee)in _0x4a087a);}function qn(_0x1d7895){const _0xafcc66=_0x43b1c2;return _0x1d7895===_0xafcc66(0x307)?!0x0:Array[_0xafcc66(0xe1)](_0x1d7895)?_0x1d7895['some'](_0x28d94e=>qn(_0x28d94e)):!_0x1d7895||typeof _0x1d7895!=_0xafcc66(0x26f)?!0x1:Object[_0xafcc66(0x1f9)](_0x1d7895)[_0xafcc66(0x278)](_0x33902e=>qn(_0x33902e));}let Jn=class extends _0xf50eed{constructor(_0x572bdd,_0x35d15d,_0x544ab3,_0x4109b1,_0x22c3f7,_0x57f70b,_0x2e6559){const _0x42b1e2=_0x43b1c2;super(),this[_0x42b1e2(0x236)]=_0x572bdd,this['_docTransformIMECacheService']=_0x35d15d,this[_0x42b1e2(0x324)]=_0x544ab3,this['_docTransformSelectionsService']=_0x4109b1,this['_docSyncEditingCollabCursorService']=_0x22c3f7,this['_messageService']=_0x57f70b,this[_0x42b1e2(0xd8)]=_0x2e6559,K(this,_0x42b1e2(0x31a),new _0x4dad7b(_0x22ed0b[_0x42b1e2(0x158)])),this[_0x42b1e2(0x21a)]();}[_0x43b1c2(0x21a)](){const _0x32cfa6=_0x43b1c2;this[_0x32cfa6(0x242)](this[_0x32cfa6(0x236)][_0x32cfa6(0x308)][_0x32cfa6(0x2e5)](_0x4fadeb=>{const _0x2d628d=_0x32cfa6;_0x4fadeb instanceof _0x2c6253&&_0x4fadeb[_0x2d628d(0x2cf)]({'onTransformIME':_0x45e4e8=>this[_0x2d628d(0x349)][_0x2d628d(0x192)](_0x45e4e8),'onTransformState':_0x5f1bce=>this[_0x2d628d(0x324)][_0x2d628d(0x17f)](_0x5f1bce),'onPrepareTransformSelections':_0x37194c=>this[_0x2d628d(0x286)]['prepareTransformSelections'](_0x37194c),'onSyncEditingCollabCursor':_0x146b87=>this[_0x2d628d(0x250)][_0x2d628d(0x338)](_0x146b87),'onTransformRemoteChangesetByIMECache':_0x7de16c=>this[_0x2d628d(0x349)][_0x2d628d(0x132)](_0x7de16c),'onTransformRemoteChangesetByStateCache':_0x29d637=>this[_0x2d628d(0x324)][_0x2d628d(0x132)](_0x29d637)});}));}};Jn=J([q(0x0,_0x47bc9a(_0x3089d1)),q(0x1,_0x47bc9a(Vn)),q(0x2,_0x47bc9a(Hn)),q(0x3,_0x47bc9a(Un)),q(0x4,_0x47bc9a(_n)),q(0x5,_0x3ba0c5),q(0x6,_0x47bc9a(_0x2906e7))],Jn);let Yn=class extends _0xf50eed{constructor(_0x1ad00f,_0x396791,_0x42ecd4,_0x40641c){const _0x1b85d5=_0x43b1c2;super(),this[_0x1b85d5(0x241)]=_0x1ad00f,this[_0x1b85d5(0x320)]=_0x396791,this[_0x1b85d5(0x14c)]=_0x42ecd4,this[_0x1b85d5(0x2e9)]=_0x40641c,K(this,'_memberID',void 0x0),this['_init']();}[_0x43b1c2(0x344)](){const _0x24800a=_0x43b1c2;this[_0x24800a(0x203)](),this[_0x24800a(0x15e)](),this[_0x24800a(0x2f3)](),this[_0x24800a(0x120)]();}[_0x43b1c2(0x120)](){const _0x16c57e=_0x43b1c2;this[_0x16c57e(0x242)](this['_collaborationSessionService'][_0x16c57e(0x198)][_0x16c57e(0x2e5)](_0x4cec35=>{const _0x408633=_0x16c57e;this[_0x408633(0xd5)]=_0x4cec35==null?void 0x0:_0x4cec35['memberID'];}));}[_0x43b1c2(0x203)](){const _0x1df493=_0x43b1c2;let _0x3b7245=_0x195d32=>{const _0x5d1afb=_0x47c1;var _0x15fe50;this['_uploadLog'](_0x5d1afb(0x15b),'[Window\x20Error]:\x20'+_0x195d32[_0x5d1afb(0x122)]+_0x5d1afb(0x208)+_0x195d32[_0x5d1afb(0x22e)]+':'+_0x195d32[_0x5d1afb(0xf7)]+':'+_0x195d32[_0x5d1afb(0x191)]+'\x0a'+(((_0x15fe50=_0x195d32[_0x5d1afb(0x15b)])==null?void 0x0:_0x15fe50['stack'])||''));};window['addEventListener'](_0x1df493(0x15b),_0x3b7245),this[_0x1df493(0x242)](()=>{const _0x55d599=_0x1df493;window[_0x55d599(0x279)](_0x55d599(0x15b),_0x3b7245);});}[_0x43b1c2(0x15e)](){const _0x1eeeeb=_0x43b1c2;let _0x10ec8d=_0x49d125=>{const _0x55fddd=_0x47c1;this[_0x55fddd(0x347)](_0x55fddd(0x15b),_0x55fddd(0xf5)+_0x49d125[_0x55fddd(0x20b)]);};window['addEventListener'](_0x1eeeeb(0x2b9),_0x10ec8d),this['disposeWithMe'](()=>{const _0x1b3e6e=_0x1eeeeb;window[_0x1b3e6e(0x279)]('unhandledrejection',_0x10ec8d);});}[_0x43b1c2(0x2f3)](){const _0x1d058e=_0x43b1c2;let _0x466571=this['_logService'][_0x1d058e(0x15b)]['bind'](this[_0x1d058e(0x14c)]);this[_0x1d058e(0x14c)][_0x1d058e(0x15b)]=(..._0x5392c4)=>{const _0x380942=_0x1d058e;let _0x593a53=_0x5392c4[_0x380942(0x10b)](_0x314367=>_0x314367 instanceof Error?_0x314367[_0x380942(0x122)]+'\x0a'+_0x314367[_0x380942(0x2ff)]:String(_0x314367))[_0x380942(0x264)]('\x20');this[_0x380942(0x347)]('error',_0x380942(0x141)+_0x593a53),_0x466571(..._0x5392c4);},this[_0x1d058e(0x242)](()=>{const _0x50e72f=_0x1d058e;this[_0x50e72f(0x14c)][_0x50e72f(0x15b)]=_0x466571;});}[_0x43b1c2(0x347)](_0x1062a3,_0x787471){const _0x47e76e=_0x43b1c2;try{let _0x43d9f2={'userId':this[_0x47e76e(0xd5)],'logLabel':_0x1062a3,'content':_0x787471};this[_0x47e76e(0x320)][_0x47e76e(0x33e)](_0x47e76e(0x1f5),{'body':_0x43d9f2})[_0x47e76e(0x12e)](()=>{});}catch{}}};Yn=J([q(0x0,_0x47bc9a(_0x380635)),q(0x1,_0x47bc9a(_0x195ec6)),q(0x2,_0x232361),q(0x3,_0x47bc9a(_0x5c5d11))],Yn);function Xn({state$:_0x27a60c}){const _0x1ae441=_0x43b1c2;let _0x57040b=_0x3612e2(_0x27a60c,null,!0x0);return _0x57040b?_0x1b8ed2(_0x1ae441(0x30e),{'data-u-comp':_0x1ae441(0x1f4),'role':_0x1ae441(0x108),'className':_0x1ae441(0x25f),'children':[_0x502d13(_0x46f013,{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),_0x502d13(_0x1ae441(0x24f),{'children':_0x57040b[_0x1ae441(0x2cc)]}),_0x502d13(_0x5ded29,{'size':_0x1ae441(0x237),'variant':_0x1ae441(0xed),'onClick':()=>window[_0x1ae441(0x2f5)]['reload'](),'children':_0x57040b[_0x1ae441(0x311)]})]}):null;}const Zn=_0x43b1c2(0x1b1);let Qn=class extends _0xf50eed{constructor(_0x988c3f,_0x50c697,_0x1541c2,_0x2fac29,_0x10e115,_0x9da614){const _0x105f59=_0x43b1c2;super(),this[_0x105f59(0x1a2)]=_0x988c3f,this[_0x105f59(0x200)]=_0x50c697,this[_0x105f59(0xd8)]=_0x1541c2,this['_injector']=_0x2fac29,this[_0x105f59(0x1fb)]=_0x9da614,K(this,_0x105f59(0x348),new _0x4dad7b(null)),K(this,'_messageIds',new Set()),K(this,'_blockProgressWatches',new Map()),K(this,_0x105f59(0x22f),new Map()),K(this,'timeoutState$',this[_0x105f59(0x348)][_0x105f59(0x1dc)]());let _0x16d577=()=>_0x51f45d(Xn,{'state$':this['timeoutState$']});this[_0x105f59(0x242)](_0x10e115[_0x105f59(0x2c2)](_0x3f8636[_0x105f59(0x10d)],()=>_0x130385(_0x16d577,this[_0x105f59(0x241)]))),this[_0x105f59(0x242)](this[_0x105f59(0x1a2)][_0x105f59(0x2fe)][_0x105f59(0x2e5)](_0x3c16f4=>{const _0x47c89e=_0x105f59;this[_0x47c89e(0x22f)]=_0x3c16f4,_0x3c16f4[_0x47c89e(0x182)](_0x4a714e=>this[_0x47c89e(0x253)](_0x4a714e));})),this[_0x105f59(0x242)](this[_0x105f59(0x1fb)][_0x105f59(0x273)]['subscribe'](()=>{const _0x9375a7=_0x105f59;this[_0x9375a7(0x22f)][_0x9375a7(0x182)](_0x477cd8=>this[_0x9375a7(0x253)](_0x477cd8));}));}['dispose'](){const _0x124e02=_0x43b1c2;this[_0x124e02(0x107)][_0x124e02(0x182)](_0x262829=>this['_messageService'][_0x124e02(0x29a)](_0x262829)),this['_messageIds']['clear'](),this['_blockProgressWatches'][_0x124e02(0x182)](({timeoutId:_0xeead1a})=>clearTimeout(_0xeead1a)),this[_0x124e02(0x153)][_0x124e02(0x184)](),this['_timeoutState$'][_0x124e02(0x1d4)](),super[_0x124e02(0x1d8)]();}[_0x43b1c2(0x253)](_0x1b9366){const _0xbd4997=_0x43b1c2;let _0x4aceb1=''+Zn+_0x1b9366[_0xbd4997(0x31f)];if(_0x1b9366['stage']===_0x1664ef[_0xbd4997(0x1bb)]){this[_0xbd4997(0x27f)](_0x1b9366['unitId']),this['_clearTimeoutState'](_0x1b9366[_0xbd4997(0x31f)]),this[_0xbd4997(0x200)]['remove'](_0x4aceb1),this[_0xbd4997(0x107)]['delete'](_0x4aceb1);return;}if(!this[_0xbd4997(0x123)](_0x1b9366[_0xbd4997(0x31f)])){this[_0xbd4997(0x27f)](_0x1b9366[_0xbd4997(0x31f)]),this[_0xbd4997(0x2dc)](_0x1b9366[_0xbd4997(0x31f)]),this['_messageService'][_0xbd4997(0x29a)](_0x4aceb1),this[_0xbd4997(0x107)][_0xbd4997(0x2a8)](_0x4aceb1);return;}if(_0x1b9366[_0xbd4997(0x172)]===_0x1664ef[_0xbd4997(0x23e)]){this[_0xbd4997(0x27f)](_0x1b9366[_0xbd4997(0x31f)]),this[_0xbd4997(0x2dc)](_0x1b9366[_0xbd4997(0x31f)]),this[_0xbd4997(0x200)]['show']({'id':_0x4aceb1,'type':_0x1e5e0e[_0xbd4997(0xff)],'content':this[_0xbd4997(0xd8)]['t'](_0xbd4997(0x1a8))}),this[_0xbd4997(0x107)]['delete'](_0x4aceb1);return;}if(_0x1b9366[_0xbd4997(0x172)]!==_0x1664ef[_0xbd4997(0x112)]||_0x1b9366['totalBlocks']<=0xa){this[_0xbd4997(0x27f)](_0x1b9366[_0xbd4997(0x31f)]),this[_0xbd4997(0x200)][_0xbd4997(0x29a)](_0x4aceb1),this[_0xbd4997(0x107)][_0xbd4997(0x2a8)](_0x4aceb1);return;}this[_0xbd4997(0x2da)](_0x1b9366)||(this['_messageService'][_0xbd4997(0x1a9)]({'id':_0x4aceb1,'type':_0x1e5e0e[_0xbd4997(0x328)],'duration':0x1/0x0,'content':this[_0xbd4997(0xd8)]['t'](_0xbd4997(0x21e))+'\x20'+_0x1b9366[_0xbd4997(0x185)]+'/'+_0x1b9366[_0xbd4997(0x1a7)]}),this['_messageIds']['add'](_0x4aceb1));}['_watchBlockProgress'](_0x2df134){const _0x556339=_0x43b1c2;let _0x6d4d7d=this['_blockProgressWatches'][_0x556339(0x171)](_0x2df134[_0x556339(0x31f)]);if((_0x6d4d7d==null?void 0x0:_0x6d4d7d[_0x556339(0x185)])===_0x2df134[_0x556339(0x185)])return _0x6d4d7d[_0x556339(0x1a4)];this[_0x556339(0x27f)](_0x2df134['unitId']);let _0x32fda9=setTimeout(()=>{const _0x353b39=_0x556339;let _0x4aa99f=this[_0x353b39(0x153)][_0x353b39(0x171)](_0x2df134['unitId']);if(!_0x4aa99f||_0x4aa99f[_0x353b39(0x161)]!==_0x32fda9)return;_0x4aa99f['timedOut']=!0x0;let _0x32ded6=''+Zn+_0x2df134[_0x353b39(0x31f)];this[_0x353b39(0x200)][_0x353b39(0x29a)](_0x32ded6),this[_0x353b39(0x107)][_0x353b39(0x2a8)](_0x32ded6),this['_timeoutState$'][_0x353b39(0x2d0)]({'unitId':_0x2df134['unitId'],'content':this[_0x353b39(0xd8)]['t'](_0x353b39(0x263),String(_0x2df134[_0x353b39(0x185)]),String(_0x2df134['totalBlocks'])),'refreshLabel':this[_0x353b39(0xd8)]['t'](_0x353b39(0x299))});},0xea60);return this['_blockProgressWatches'][_0x556339(0x168)](_0x2df134['unitId'],{'loadedBlocks':_0x2df134[_0x556339(0x185)],'timedOut':!0x1,'timeoutId':_0x32fda9}),!0x1;}[_0x43b1c2(0x27f)](_0xe1ac38){const _0x5dccc8=_0x43b1c2;let _0x2e35f2=this[_0x5dccc8(0x153)]['get'](_0xe1ac38);_0x2e35f2&&(clearTimeout(_0x2e35f2[_0x5dccc8(0x161)]),this[_0x5dccc8(0x153)][_0x5dccc8(0x2a8)](_0xe1ac38),this[_0x5dccc8(0x2dc)](_0xe1ac38));}[_0x43b1c2(0x2dc)](_0x4a816e){const _0x3e7578=_0x43b1c2;var _0x255ad6;((_0x255ad6=this['_timeoutState$']['value'])==null?void 0x0:_0x255ad6[_0x3e7578(0x31f)])===_0x4a816e&&this[_0x3e7578(0x348)]['next'](null);}[_0x43b1c2(0x123)](_0xb854d9){const _0x23f73b=_0x43b1c2;let _0x35b89a=this[_0x23f73b(0x1fb)][_0x23f73b(0x28a)](_0x23f73b(0x29f));return!_0x35b89a||_0x35b89a===_0xb854d9;}};Qn=J([q(0x0,_0x47bc9a(_0x1a282d)),q(0x1,_0x3ba0c5),q(0x2,_0x47bc9a(_0x2906e7)),q(0x3,_0x47bc9a(_0x380635)),q(0x4,_0x2528c2),q(0x5,Q)],Qn);let $n=class extends _0xf50eed{constructor(_0x25b9e7,_0x51116e,_0x4bef05){const _0x3c3723=_0x43b1c2;var _0x2b04af;super(),this['_configService']=_0x25b9e7,this['_localStorageService']=_0x51116e,this[_0x3c3723(0x267)]=_0x4bef05,K(this,_0x3c3723(0x178),new Map()),K(this,_0x3c3723(0x2c0),new Map()),K(this,_0x3c3723(0x159),new Map()),K(this,_0x3c3723(0x1a3),!0x1),this[_0x3c3723(0x1a3)]=!((_0x2b04af=this[_0x3c3723(0x13a)][_0x3c3723(0xf8)](_0x598bdc))!=null&&_0x2b04af[_0x3c3723(0x2c8)]);}[_0x43b1c2(0x2ca)](){const _0x34e526=_0x43b1c2;this[_0x34e526(0x1a3)]=!0x0;}[_0x43b1c2(0x14d)](){this['_disabled']=!0x1;}get[_0x43b1c2(0x1e7)](){const _0x4aaf41=_0x43b1c2;return this[_0x4aaf41(0x2c0)];}[_0x43b1c2(0x1d8)](){const _0xaa6049=_0x43b1c2;this[_0xaa6049(0x125)]()[_0xaa6049(0x188)](()=>super[_0xaa6049(0x1d8)]());}async[_0x43b1c2(0xdb)](_0x554acd){const _0x57baa1=_0x43b1c2;return this[_0x57baa1(0x1a3)]?null:this[_0x57baa1(0x1ff)]['getItem'](_0x5e27e8(_0x554acd));}async['saveOfflineData'](_0x379dcf,_0x4ad9e6){const _0x23fe6e=_0x43b1c2;let _0x1e4518=this[_0x23fe6e(0x1ff)][_0x23fe6e(0x205)](_0x5e27e8(_0x379dcf),_0x4ad9e6);return this['_trackActiveSaveTask'](_0x379dcf,_0x1e4518),!!await _0x1e4518;}async[_0x43b1c2(0x106)](_0xa7ea3c,_0x475aa5){const _0x389006=_0x43b1c2;let _0x45699e=this['_cachedData'][_0x389006(0x171)](_0xa7ea3c)??await this[_0x389006(0x1ff)]['getItem'](_0x5e27e8(_0xa7ea3c));if(!_0x45699e)return;let _0x183ee4=Date['now'](),_0x1739e5=new Date(_0x183ee4)[_0x389006(0x341)]();await this['_localStorageService'][_0x389006(0x205)](_0x5e27e8(_0xa7ea3c)+_0x389006(0x1fe)+_0x183ee4,{'reason':_0x475aa5,'createdAt':_0x1739e5,'data':_0x45699e});}async['clearOfflineData'](_0x4e1197){const _0x2e9c71=_0x43b1c2;let _0x3b78d5=this['_saveTaskMap'][_0x2e9c71(0x171)](_0x4e1197);_0x3b78d5!==void 0x0&&(window[_0x2e9c71(0x129)](_0x3b78d5),this[_0x2e9c71(0x2c0)][_0x2e9c71(0x2a8)](_0x4e1197));let _0x44c444=this[_0x2e9c71(0x159)][_0x2e9c71(0x171)](_0x4e1197);_0x44c444&&await Promise['allSettled'](_0x44c444),this[_0x2e9c71(0x178)][_0x2e9c71(0x2a8)](_0x4e1197),await this['_localStorageService'][_0x2e9c71(0x17d)](_0x5e27e8(_0x4e1197));}[_0x43b1c2(0x135)](_0x514842,_0x1903f1,_0x4bc1e6,_0x574c12){const _0x24e528=_0x43b1c2;let _0x4ddece=this[_0x24e528(0x267)][_0x24e528(0x27e)](_0x514842);this[_0x24e528(0x178)][_0x24e528(0x168)](_0x514842,{'unitID':_0x514842,'type':_0x1903f1,'awaitingChangeset':_0x4bc1e6,'mutations':_0x574c12,'rev':_0x4ddece}),this[_0x24e528(0x2c0)][_0x24e528(0x2a1)](_0x514842)||this['_scheduleSaving'](_0x514842);}[_0x43b1c2(0x2d4)](_0xd441a5){const _0x54b748=_0x43b1c2;let _0x2e61a0=this[_0x54b748(0xf4)]();_0x2e61a0===0x0?this['_saveCache'](_0xd441a5):this['_saveTaskMap'][_0x54b748(0x168)](_0xd441a5,window[_0x54b748(0x117)](()=>this[_0x54b748(0x1ce)](_0xd441a5),_0x2e61a0));}[_0x43b1c2(0xf4)](){const _0x1cab97=_0x43b1c2;return this[_0x1cab97(0x13a)][_0x1cab97(0xf8)](_0x1b65ad)??_0x64a250;}[_0x43b1c2(0x1ce)](_0x3001c5){const _0x878a58=_0x43b1c2;let _0x58d401=this[_0x878a58(0x2c0)]['get'](_0x3001c5);_0x58d401!==void 0x0&&window['clearTimeout'](_0x58d401);let _0x75209f=this[_0x878a58(0x1ff)][_0x878a58(0x205)](_0x5e27e8(_0x3001c5),this['_cachedData'][_0x878a58(0x171)](_0x3001c5))[_0x878a58(0x188)](()=>this[_0x878a58(0x2c0)]['delete'](_0x3001c5));return this['_trackActiveSaveTask'](_0x3001c5,_0x75209f),_0x75209f;}['_trackActiveSaveTask'](_0x210570,_0x52da42){const _0x2fbeb9=_0x43b1c2;let _0x4eb012=this[_0x2fbeb9(0x159)][_0x2fbeb9(0x171)](_0x210570);_0x4eb012||(_0x4eb012=new Set(),this['_activeSaveTaskMap'][_0x2fbeb9(0x168)](_0x210570,_0x4eb012)),_0x4eb012[_0x2fbeb9(0x231)](_0x52da42);let _0x465790=()=>{const _0x56425e=_0x2fbeb9;_0x4eb012['delete'](_0x52da42),_0x4eb012[_0x56425e(0x1aa)]===0x0&&this[_0x56425e(0x159)][_0x56425e(0x2a8)](_0x210570);};_0x52da42['then'](_0x465790,_0x465790);}async['exhaustSavingTask'](){const _0x137a85=_0x43b1c2;let _0x138fd6=[];this[_0x137a85(0x2c0)][_0x137a85(0x182)]((_0x7750cc,_0x3f8da5)=>{const _0x31acb6=_0x137a85;window[_0x31acb6(0x129)](_0x7750cc),_0x138fd6[_0x31acb6(0x23b)](this[_0x31acb6(0x1ce)](_0x3f8da5)[_0x31acb6(0x188)](()=>{const _0x338b9d=_0x31acb6;this['_saveTaskMap'][_0x338b9d(0x2a8)](_0x3f8da5);}));}),await Promise[_0x137a85(0x25e)](_0x138fd6);}};$n=J([q(0x0,_0x5697a0),q(0x1,_0x206a35),q(0x2,_0x47bc9a(_0x38f3f2))],$n);var er=class extends _0x5daa34{constructor(){const _0x1281a2=_0x43b1c2;super(),K(this,_0x1281a2(0x273),void 0x0),this[_0x1281a2(0x273)]=_0x11f26e(window,_0x1281a2(0x269))[_0x1281a2(0x1e2)](_0xe739dc(this[_0x1281a2(0x303)]),_0x5fa918({'bufferSize':0x1,'refCount':!0x0}),_0x38905b(void 0x0));}['setParam'](_0x2afca4,_0x2fc21b,_0x129be0=!0x1){const _0x187175=_0x43b1c2;let _0x1ef695=new URL(window[_0x187175(0x2f5)][_0x187175(0x18c)]);_0x1ef695[_0x187175(0x1e0)]['set'](_0x2afca4,_0x2fc21b),_0x129be0?window[_0x187175(0x1f3)][_0x187175(0x2c7)]('','',_0x1ef695[_0x187175(0x1a0)]()):window[_0x187175(0x1f3)][_0x187175(0x300)]('','',_0x1ef695['toString']());}['removeParam'](_0x2e66b2,_0x1bf4bc=!0x1){const _0x5f02f9=_0x43b1c2;let _0x72544b=new URL(window[_0x5f02f9(0x2f5)]['href']);_0x72544b['searchParams']['delete'](_0x2e66b2),_0x1bf4bc?window[_0x5f02f9(0x1f3)][_0x5f02f9(0x2c7)]('','',_0x72544b[_0x5f02f9(0x1a0)]()):window[_0x5f02f9(0x1f3)][_0x5f02f9(0x300)]('','',_0x72544b['toString']());}[_0x43b1c2(0x28a)](_0xadcd12){const _0xb05535=_0x43b1c2;return new URL(window[_0xb05535(0x2f5)]['href'])['searchParams']['get'](_0xadcd12)??void 0x0;}};let $=class extends _0x13d753{constructor(_0x1fc3c4=dn,_0x507974,_0x3555a5,_0x26866c,_0x414c62){const _0x1dc562=_0x43b1c2;super(),this['_config']=_0x1fc3c4,this[_0x1dc562(0x321)]=_0x507974,this[_0x1dc562(0x241)]=_0x3555a5,this[_0x1dc562(0x13a)]=_0x26866c,this[_0x1dc562(0x2b0)]=_0x414c62;let {..._0x2ae6e6}=_0x1597ec({},dn,this[_0x1dc562(0x285)]);this[_0x1dc562(0x13a)]['setConfig'](_0x1dc562(0x2a3),_0x2ae6e6);}[_0x43b1c2(0x212)](){const _0x5253fa=_0x43b1c2;this[_0x5253fa(0x102)](),this['disposeWithMe'](this[_0x5253fa(0x2b0)][_0x5253fa(0x1e6)](X)),this['_initDependencies']();}[_0x43b1c2(0x20d)](){const _0xac3897=_0x43b1c2;this[_0xac3897(0x316)]();}[_0x43b1c2(0x102)](){const _0x379faf=_0x43b1c2;var _0x4e5447;let _0x30678c=[[mn],[Q,{'useClass':er}],[_0x1828da,{'useClass':_0x32fca4}],[_0x232043,{'useClass':$n}],[Y],[zn],[Z],[Ln],[Bn],[Qn]];this['_config']['enableDocumentCollaborationUI']!==!0x1&&_0x30678c['push']([Un],[Vn],[Hn],[_n],[Jn],[fn]),this[_0x379faf(0x285)][_0x379faf(0x11a)]&&_0x30678c['push']([Yn]),_0x5655ca(this[_0x379faf(0x241)],_0x2c1872(_0x30678c,(_0x4e5447=this[_0x379faf(0x285)])==null?void 0x0:_0x4e5447['override']));}[_0x43b1c2(0x316)](){const _0x342b92=_0x43b1c2;this[_0x342b92(0x285)][_0x342b92(0x277)]!==!0x1&&this['disposeWithMe'](this['_renderManagerService'][_0x342b92(0x133)](_0x5658b7['UNIVER_DOC'],[Dn])),this[_0x342b92(0x242)](this[_0x342b92(0x321)][_0x342b92(0x133)](_0x5658b7[_0x342b92(0x1d5)],[kn]));}[_0x43b1c2(0x17e)](){const _0x2e416a=_0x43b1c2;_0xdabe6f(this[_0x2e416a(0x241)],[[Z],[Ln],[Y],[zn],[Bn],[Qn]]),this[_0x2e416a(0x285)][_0x2e416a(0x277)]!==!0x1&&_0xdabe6f(this['_injector'],[[Jn],[fn]]),this[_0x2e416a(0x285)][_0x2e416a(0x11a)]&&_0xdabe6f(this['_injector'],[[Yn]]);}};K($,'pluginName','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN'),K($,_0x43b1c2(0x1ed),ln),K($,_0x43b1c2(0x30c),un),$=J([_0x12e8fc(_0xf1d164,_0x1932a6,_0x575828,_0x5555ee,_0x26a8b3,_0x1cee98,_0x5777f7),q(0x1,_0x4c7906),q(0x2,_0x47bc9a(_0x380635)),q(0x3,_0x5697a0),q(0x4,_0x9de777)],$);let tr=class extends _0x132b75{constructor(_0x3561d7,_0x3f50e9,_0x4e6756,_0x1f11cb,_0x15c4fb){super(_0x3561d7,_0x3f50e9,_0x4e6756,_0x1f11cb,_0x15c4fb);}async['createSocket'](_0x531ce9){const _0x30c083=_0x43b1c2;let _0xea3089=await this[_0x30c083(0x26c)](),_0x27cc35=this[_0x30c083(0x232)](_0x531ce9,_0xea3089);return this[_0x30c083(0x181)](_0x27cc35);}['_createSocketURL'](_0x52d965,_0x1c8f4a){const _0x489fd0=_0x43b1c2;let _0x42ef4f=typeof window>'u'?new URL(_0x52d965):new URL(_0x52d965,window[_0x489fd0(0x2f5)][_0x489fd0(0x225)]);_0x42ef4f[_0x489fd0(0x1e0)]['set'](_0x489fd0(0x115),_0x1c8f4a);let _0x27dd3f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x489fd0(0x2f5)][_0x489fd0(0x1b3)]);return _0x27dd3f['get'](_0x489fd0(0x1c5))&&_0x42ef4f[_0x489fd0(0x1e0)]['set']('runId',_0x27dd3f['get'](_0x489fd0(0x1c5))),_0x42ef4f['toString']();}async[_0x43b1c2(0x26c)](){const _0x48454e=_0x43b1c2;var _0x255878;let _0x4830c4=this[_0x48454e(0x13a)][_0x48454e(0xf8)](_0x598bdc),_0x97d77=(_0x4830c4==null?void 0x0:_0x4830c4[_0x48454e(0x2c9)])??_0x249f6a;return((_0x255878=(await this[_0x48454e(0x320)][_0x48454e(0x171)](_0x97d77,{'headers':{'Content-Type':'application/json'}}))[_0x48454e(0x103)])==null?void 0x0:_0x255878['ticket'])??'';}};tr=J([q(0x0,_0x47bc9a(_0x380635)),q(0x1,_0x47bc9a(_0x195ec6)),q(0x2,_0x5697a0),q(0x3,_0x232361),q(0x4,_0x5eb425)],tr);let nr=class extends _0xf50eed{constructor(_0x5e3241,_0x3f5ffd,_0x5eca9e){const _0x874e00=_0x43b1c2;super(),this[_0x874e00(0x23a)]=_0x5e3241,this[_0x874e00(0x320)]=_0x3f5ffd,this['_configService']=_0x5eca9e;}async[_0x43b1c2(0x156)](_0x226c2f,_0x562453,_0x4d2469,..._0x172925){const _0x43b7f9=_0x43b1c2;let _0x1c29a7=this[_0x43b7f9(0x23a)][_0x43b7f9(0x143)]();if(!_0x1c29a7)throw Error(_0x43b7f9(0x24c));let _0x124963=(this['_configService'][_0x43b7f9(0xf8)](_0xb23043)??_0x116f3b)+'/'+_0x226c2f+'/run/'+_0x562453,_0x1207e7={'scriptId':_0x226c2f,'runId':new URL(window[_0x43b7f9(0x2f5)]['href'])[_0x43b7f9(0x1e0)][_0x43b7f9(0x171)]('runId')??'','function':_0x562453,'unitId':_0x1c29a7[_0x43b7f9(0xdd)](),'argsOfFunction':JSON[_0x43b7f9(0x1f0)](_0x172925),'invokeId':_0x4d2469[_0x43b7f9(0x1cf)]??'','executionId':_0x4d2469['executionId']??''};try{let _0x182bd8=await this[_0x43b7f9(0x320)]['post'](_0x124963,{'body':_0x1207e7});return _0x182bd8[_0x43b7f9(0x103)][_0x43b7f9(0x15b)]&&_0x182bd8[_0x43b7f9(0x103)][_0x43b7f9(0x15b)]['code']!==_0x3ae796['OK']?_0x43b7f9(0xe2):_0x182bd8[_0x43b7f9(0x103)][_0x43b7f9(0x2c1)];}catch{return _0x43b7f9(0xe2);}}};nr=J([q(0x0,_0x576907),q(0x1,_0x47bc9a(_0x195ec6)),q(0x2,_0x5697a0)],nr);const rr=0x7530,ir='ACTIVE_UNIT_EVENT_CHANNEL';var ar=class extends _0xf50eed{constructor(){const _0x14ea6c=_0x43b1c2;super(),K(this,_0x14ea6c(0x119),_0x42801a()),K(this,_0x14ea6c(0x12a),new Set()),K(this,_0x14ea6c(0x335),new Map()),K(this,'_heartbeatTimer',null),K(this,_0x14ea6c(0x1ae),new Map()),K(this,'_unitStatus',new Map()),this['_init']();}[_0x43b1c2(0x1d8)](){const _0x54faf1=_0x43b1c2;super[_0x54faf1(0x1d8)](),this[_0x54faf1(0x1ae)][_0x54faf1(0x182)]((_0x42d027,_0x1289db)=>this[_0x54faf1(0x18f)](_0x1289db)),this[_0x54faf1(0x2d8)]&&window['clearInterval'](this[_0x54faf1(0x2d8)]);}['getUnitStatus$'](_0x443d7b){const _0x50fb4d=_0x43b1c2;return this[_0x50fb4d(0x319)](_0x443d7b)['pipe'](_0x290e1c());}[_0x43b1c2(0x298)](_0x1ed884){const _0x425ea6=_0x43b1c2;this[_0x425ea6(0x12a)][_0x425ea6(0x1aa)]===0x0&&this['_scheduleHeartbeat'](),this[_0x425ea6(0x12a)][_0x425ea6(0x231)](_0x1ed884),this[_0x425ea6(0xea)]({'type':0x0,'memberID':this[_0x425ea6(0x119)],'unitIDs':[_0x1ed884],'isForwarded':!0x1});}[_0x43b1c2(0xd9)](_0x3d1c1b){const _0x28afc7=_0x43b1c2;this[_0x28afc7(0x12a)]['delete'](_0x3d1c1b),this[_0x28afc7(0x12a)][_0x28afc7(0x1aa)]===0x0&&this[_0x28afc7(0x2d8)]&&window[_0x28afc7(0x183)](this[_0x28afc7(0x2d8)]);}[_0x43b1c2(0x344)](){const _0x43efd0=_0x43b1c2;this[_0x43efd0(0x242)](_0x4e78ef(_0x11f26e(window,_0x43efd0(0x2bf))['subscribe'](_0x30935a=>{const _0x27565e=_0x43efd0;if(_0x30935a[_0x27565e(0x318)]!==ir||!_0x30935a['newValue'])return;let _0x100962=JSON['parse'](_0x30935a[_0x27565e(0x220)]);this[_0x27565e(0x165)](_0x100962);}))),window[_0x43efd0(0x17a)]('unload',()=>this[_0x43efd0(0xea)]({'type':0x1,'memberID':this[_0x43efd0(0x119)],'unitIDs':Array[_0x43efd0(0x17c)](this['_selfUnitIDs'])}));}[_0x43b1c2(0x165)](_0x2035d7){const _0x50121a=_0x43b1c2;switch(_0x2035d7['type']){case 0x0:this['_handleJoinEvent'](_0x2035d7);break;case 0x1:this[_0x50121a(0x2df)](_0x2035d7);break;case 0x2:this['_handleHeartbeatEvent'](_0x2035d7);}}[_0x43b1c2(0x1f7)](_0x5289da){const _0x239a89=_0x43b1c2;let {unitIDs:_0x454fee,memberID:_0x2a246f,isForwarded:_0x4cf1e0}=_0x5289da;_0x454fee[_0x239a89(0x182)](_0x50f355=>{const _0x42ea87=_0x239a89;if(!_0x4cf1e0&&this['_unitOnClients'][_0x42ea87(0x2a1)](_0x50f355)&&this[_0x42ea87(0x319)](_0x50f355)[_0x42ea87(0x2d0)](_0x44c09f[_0x42ea87(0x1c1)]),!this[_0x42ea87(0x335)][_0x42ea87(0x2a1)](_0x50f355)||!this[_0x42ea87(0x335)][_0x42ea87(0x171)](_0x50f355)['has'](_0x2a246f)){let _0x51a0da=this[_0x42ea87(0x335)][_0x42ea87(0x171)](_0x50f355)||new Set();_0x51a0da[_0x42ea87(0x231)](_0x2a246f),this[_0x42ea87(0x335)][_0x42ea87(0x168)](_0x50f355,_0x51a0da),this[_0x42ea87(0x2ad)](_0x2a246f);}}),_0x4cf1e0||this[_0x239a89(0xea)]({'type':0x0,'memberID':this[_0x239a89(0x119)],'unitIDs':[...this[_0x239a89(0x12a)]],'isForwarded':!0x0});}[_0x43b1c2(0x2ad)](_0x5d05b6){const _0x26b510=_0x43b1c2;this[_0x26b510(0x18f)](_0x5d05b6);let _0x3d76c0=window[_0x26b510(0x117)](()=>{const _0x15f649=_0x26b510;this[_0x15f649(0x335)][_0x15f649(0x182)](_0x11e5ab=>{const _0x5b1804=_0x15f649;_0x11e5ab[_0x5b1804(0x2a8)](_0x5d05b6);});},rr*0x2);this['_clearOtherTimers'][_0x26b510(0x168)](_0x5d05b6,_0x3d76c0);}[_0x43b1c2(0x18f)](_0x13beec){const _0x27e77d=_0x43b1c2;if(this[_0x27e77d(0x1ae)][_0x27e77d(0x2a1)](_0x13beec)){let _0x408c63=this['_clearOtherTimers']['get'](_0x13beec);_0x408c63&&window[_0x27e77d(0x129)](_0x408c63),this['_clearOtherTimers'][_0x27e77d(0x168)](_0x13beec,null);}}[_0x43b1c2(0x2df)](_0x477a9c){const _0x4222a6=_0x43b1c2;let {memberID:_0x422243,unitIDs:_0x4d6107}=_0x477a9c;_0x4d6107['forEach'](_0xb0cca7=>{const _0x46d447=_0x47c1;var _0x4215b5;let _0x3367c7=this[_0x46d447(0x335)][_0x46d447(0x171)](_0xb0cca7);_0x3367c7&&(_0x3367c7[_0x46d447(0x2a8)](_0x422243),(_0x4215b5=this[_0x46d447(0x319)](_0xb0cca7))==null||_0x4215b5[_0x46d447(0x2d0)](_0x3367c7[_0x46d447(0x1aa)]===0x0?_0x44c09f[_0x46d447(0x32d)]:_0x44c09f[_0x46d447(0x1c1)]));}),this[_0x4222a6(0x18f)](_0x422243);}[_0x43b1c2(0x2dd)](_0xf922c2){const _0x226d57=_0x43b1c2;this[_0x226d57(0x2ad)](_0xf922c2[_0x226d57(0x19a)]);}[_0x43b1c2(0xea)](_0x1942b0){const _0x1d3698=_0x43b1c2;localStorage[_0x1d3698(0x205)](ir,JSON[_0x1d3698(0x1f0)](_0x1942b0));}[_0x43b1c2(0x13d)](){const _0x5579a7=_0x43b1c2;this[_0x5579a7(0x2d8)]=window[_0x5579a7(0x322)](()=>{const _0x21391b=_0x5579a7;this[_0x21391b(0xea)]({'type':0x2,'memberID':this[_0x21391b(0x119)]});},rr);}['_ensureSubject'](_0x419726){const _0x3b8e96=_0x43b1c2;return this['_unitStatus'][_0x3b8e96(0x2a1)](_0x419726)||this['_unitStatus'][_0x3b8e96(0x168)](_0x419726,new _0x4dad7b(_0x44c09f[_0x3b8e96(0x32d)])),this['_unitStatus'][_0x3b8e96(0x171)](_0x419726);}};export{tr as BrowserCollaborationSocketService,Y as DesktopCollaborationStatusDisplayController,Q as IURLService,nr as RemoteUniscriptService,On as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,ar as WebBrowserSingleActiveUnitService};