@univerjs-pro/collaboration-client-ui 0.15.1 → 0.15.2

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 (53) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +16 -16
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1cd205=_0x49aa;(function(_0x1fb455,_0x106925){const _0x57cc9d=_0x49aa,_0x502d64=_0x1fb455();while(!![]){try{const _0x89a945=parseInt(_0x57cc9d(0x256))/0x1*(-parseInt(_0x57cc9d(0x326))/0x2)+-parseInt(_0x57cc9d(0x232))/0x3*(-parseInt(_0x57cc9d(0x18d))/0x4)+-parseInt(_0x57cc9d(0x26f))/0x5*(parseInt(_0x57cc9d(0x2fa))/0x6)+parseInt(_0x57cc9d(0x2af))/0x7*(-parseInt(_0x57cc9d(0x30f))/0x8)+-parseInt(_0x57cc9d(0x230))/0x9*(parseInt(_0x57cc9d(0x301))/0xa)+-parseInt(_0x57cc9d(0x307))/0xb*(parseInt(_0x57cc9d(0x274))/0xc)+parseInt(_0x57cc9d(0x182))/0xd;if(_0x89a945===_0x106925)break;else _0x502d64['push'](_0x502d64['shift']());}catch(_0x26a9ff){_0x502d64['push'](_0x502d64['shift']());}}}(_0x6adc,0xb4f1a));var Yt=Object['defineProperty'],Wt=(_0x551127,_0x17ff16,_0x43f2e0)=>_0x17ff16 in _0x551127?Yt(_0x551127,_0x17ff16,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43f2e0}):_0x551127[_0x17ff16]=_0x43f2e0,_=(_0x28353d,_0x430bc0,_0x4d08dc)=>Wt(_0x28353d,typeof _0x430bc0!='symbol'?_0x430bc0+'':_0x430bc0,_0x4d08dc);import{jsx as _0x35f8de,jsxs as _0x436d46}from'react/jsx-runtime';import{CollaborationStatus as _0x4349d8,CollaborationSessionService as _0x1e9e11,CollaborationController as _0x1bf057,DataLoaderService as _0x3b2b00,MemberService as _0x558e36,SessionStatus as _0x3fc7fa,ILocalCacheService as _0x2215b3,CollaborationUIEventService as _0x2f77d9,CollaborationUIEventId as _0x4554ac,DocCollaborationEntity as _0x5d9b61,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x219899,getLocalCacheKey as _0x23a85b,LOCAL_CACHE_INTERVAL as _0x4b23fc,LOCAL_CACHE_INTERVAL_KEY as _0x4d692c,UniverCollaborationClientPlugin as _0x11900c,CollaborationSocketService as _0x583df1,DEFAULT_WS_SESSION_TICKET_URL as _0x38211f,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x296024,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x3774c2,UnitStatus as _0x2ff06a}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x288ce5,IUniverInstanceService as _0x439541,Inject as _0x12d739,Injector as _0x238493,Disposable as _0x5704a6,createIdentifier as _0x399dd8,ILogService as _0x17e71c,ICommandService as _0x15dbe0,Optional as _0xd311da,RxDisposable as _0x30a36,Workbook as _0x1feb35,DOC_RANGE_TYPE as _0x5a5f34,debounce as _0x4a79cd,Rectangle as _0x336cf7,DisposableCollection as _0x231924,toDisposable as _0x8fe20c,UniverInstanceType as _0x50e564,generateRandomId as _0xfc2a1c,COLORS as _0x51a996,ColorKit as _0x459d8c,ThemeService as _0x14b59e,fromEventSubject as _0x30a3c0,Tools as _0x30adff,CommandType as _0x50d6a3,IConfigService as _0x16a29d,CanceledError as _0x6cd530,isFormulaString as _0x220e75,isFormulaId as _0x5723ae,ILocalStorageService as _0x1f3d3c,DependentOn as _0x444447,Plugin as _0x35c973,merge as _0x3892ec,registerDependencies as _0x51772f,mergeOverrideWithDependencies as _0x214edc,touchDependencies as _0x130f51}from'@univerjs/core';import{useObservable as _0x57f384,useDependency as _0x29db17,IUIPartsService as _0x2df45b,BuiltInUIPart as _0x3d4f97,connectInjector as _0x515995,IBeforeCloseService as _0x1a6dfd,IMessageService as _0x5e82e0,INotificationService as _0x1a4864}from'@univerjs/ui';import{BehaviorSubject as _0x547593,switchMap as _0x2ec10f,of as _0x192cf3,takeUntil as _0x4da12d,debounceTime as _0x2169ff,Subject as _0x28b8f6,filter as _0x3cf5c8,merge as _0x2a50a0,combineLatest as _0x5f003e,fromEvent as _0x30adbf,shareReplay as _0x3ccc0c,mapTo as _0x5d6e8f,distinctUntilChanged as _0x2a42e8}from'rxjs';import{Tooltip as _0x52d775,clsx as _0x54477e,MessageType as _0x1a2ec8}from'@univerjs/design';import{useRef as _0x24c25a,createElement as _0xaf35de,forwardRef as _0x20c0ab,useCallback as _0x503449}from'react';import{IRemoteInstanceService as _0x2ae7ed}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x5cf065,RefRangeService as _0x12c276,SetSelectionsOperation as _0x1a797b,SheetsSelectionsService as _0x49d40f,EffectRefRangId as _0x5f1664,handleIRemoveRow as _0x1c5c4d,handleIRemoveCol as _0x344210,handleMoveRange as _0x215891,handleInsertRow as _0xa1a7b3,handleInsertRangeMoveRight as _0xa55b97,handleInsertRangeMoveDown as _0x32c6ce,handleInsertCol as _0x58442f,handleDeleteRangeMoveUp as _0x4a4ada,handleDeleteRangeMoveLeft as _0x5ad817,runRefRangeMutations as _0x503cfa}from'@univerjs/sheets';import{Shape as _0x3223bb,Rect as _0x54146d,getColor as _0x4ba404,RegularPolygon as _0x4fb8aa,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x90f1c7,Vector2 as _0x3a3a0d,SHEET_VIEWPORT_KEY as _0x2450a0,IRenderManagerService as _0x45ee52}from'@univerjs/engine-render';import{HTTPService as _0x7b623c,ISocketService as _0x2ffa23,WebSocketService as _0x1f04b7}from'@univerjs/network';import{IDocClipboardService as _0x429d38,NodePositionConvertToCursor as _0x38f36a,NodePositionConvertToRectRange as _0x165d7f,TEXT_RANGE_LAYER_INDEX as _0x1e0f56,SetDocZoomRatioOperation as _0x154721,DocIMEInputManagerService as _0x2d0e20,DocStateChangeManagerService as _0x43f7f6}from'@univerjs/docs-ui';import{IImageIoService as _0x1109ee}from'@univerjs/drawing';import{ITransformService as _0x271d90,CollaborationEvent as _0xc93993,isTransformMutationFailure as _0x5da487,isTransformMutationsWithChangesetSuccess as _0x11ff73,RevisionService as _0x337775,ISnapshotServerService as _0x5674ce}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x29f665,RichTextEditingMutation as _0x3712b4,DocSelectionManagerService as _0x462ec2,DocSkeletonManagerService as _0x5e648b}from'@univerjs/docs';import{deserializeRangeWithSheet as _0xc27841,serializeRangeWithSheet as _0x57e71b,FormulaExecuteStageType as _0xcc8433,FormulaExecutedStateType as _0x126067,SetFormulaCalculationStartMutation as _0x1bf29e,SetFormulaCalculationNotificationMutation as _0x16629d}from'@univerjs/engine-formula';import{map as _0x327086,filter as _0x14f8e7,throttleTime as _0x4aac44,takeUntil as _0x462dbd,switchMap as _0x56cdc0}from'rxjs/operators';import{SheetSkeletonManagerService as _0x20dc38,getCoordByCell as _0xdaa2e0,getSheetObject as _0x5340f3}from'@univerjs/sheets-ui';function Ge({ref:_0x1aa27f,..._0x28bec2}){const _0x1574fc=_0x49aa,{icon:_0x4e2fd1,id:_0x1a4b07,className:_0xc1069f,extend:_0xde4474,..._0x55e8bf}=_0x28bec2,_0x1a6a9a=(_0x1574fc(0x186)+_0x1a4b07+'\x20'+(_0xc1069f||''))[_0x1574fc(0x15d)](),_0x24a688=_0x24c25a('_'+vi());return At(_0x4e2fd1,''+_0x1a4b07,{'defIds':_0x4e2fd1['defIds'],'idSuffix':_0x24a688[_0x1574fc(0x185)]},{'ref':_0x1aa27f,'className':_0x1a6a9a,..._0x55e8bf},_0xde4474);}function At(_0x115adf,_0x463eb8,_0x518418,_0x495d41,_0x2d60ba){const _0x416172=_0x49aa;return _0xaf35de(_0x115adf[_0x416172(0x2ee)],{'key':_0x463eb8,...gi(_0x115adf,_0x518418,_0x2d60ba),..._0x495d41},(Ei(_0x115adf,_0x518418)[_0x416172(0x206)]||[])['map']((_0x1659ee,_0x44c58b)=>At(_0x1659ee,_0x463eb8+'-'+_0x115adf[_0x416172(0x2ee)]+'-'+_0x44c58b,_0x518418,void 0x0,_0x2d60ba)));}function gi(_0x4014fd,_0x3478fe,_0x378073){const _0x3d42a3=_0x49aa,_0x38bbdd={..._0x4014fd[_0x3d42a3(0x2e2)]};_0x378073!=null&&_0x378073[_0x3d42a3(0x139)]&&_0x38bbdd[_0x3d42a3(0x16e)]==='colorChannel1'&&(_0x38bbdd[_0x3d42a3(0x16e)]=_0x378073[_0x3d42a3(0x139)]),_0x4014fd['tag']===_0x3d42a3(0x16b)&&_0x38bbdd['id']&&(_0x38bbdd['id']=_0x38bbdd['id']+_0x3478fe[_0x3d42a3(0x1af)]),Object[_0x3d42a3(0xfa)](_0x38bbdd)['forEach'](([_0x4f6fec,_0x5393ed])=>{const _0x5f418f=_0x3d42a3;_0x4f6fec===_0x5f418f(0x16b)&&typeof _0x5393ed==_0x5f418f(0x288)&&(_0x38bbdd[_0x4f6fec]=_0x5393ed[_0x5f418f(0x2b4)](/url\(#(.*)\)/,_0x5f418f(0x24c)+_0x3478fe['idSuffix']+')'));});const {defIds:_0x4332d5}=_0x3478fe;return!_0x4332d5||_0x4332d5['length']===0x0||(_0x4014fd['tag']==='use'&&_0x38bbdd[_0x3d42a3(0x29f)]&&(_0x38bbdd[_0x3d42a3(0x29f)]=_0x38bbdd['xlink:href']+_0x3478fe[_0x3d42a3(0x1af)]),Object[_0x3d42a3(0xfa)](_0x38bbdd)[_0x3d42a3(0x19f)](([_0x22b885,_0x506cc3])=>{const _0x492dc2=_0x3d42a3;typeof _0x506cc3==_0x492dc2(0x288)&&(_0x38bbdd[_0x22b885]=_0x506cc3['replace'](/url\(#(.*)\)/,_0x492dc2(0x24c)+_0x3478fe[_0x492dc2(0x1af)]+')'));})),_0x38bbdd;}function Ei(_0x15e823,_0x126a08){const _0xc16a5e=_0x49aa;var _0x3eda40;const {defIds:_0x842fb9}=_0x126a08;return!_0x842fb9||_0x842fb9[_0xc16a5e(0x13e)]===0x0?_0x15e823:_0x15e823[_0xc16a5e(0x2ee)]==='defs'&&((_0x3eda40=_0x15e823[_0xc16a5e(0x206)])!=null&&_0x3eda40['length'])?{..._0x15e823,'children':_0x15e823['children'][_0xc16a5e(0x2ed)](_0x5f185e=>typeof _0x5f185e[_0xc16a5e(0x2e2)]['id']==_0xc16a5e(0x288)&&_0x842fb9&&_0x842fb9[_0xc16a5e(0x300)](_0x5f185e[_0xc16a5e(0x2e2)]['id'])?{..._0x5f185e,'attrs':{..._0x5f185e[_0xc16a5e(0x2e2)],'id':_0x5f185e[_0xc16a5e(0x2e2)]['id']+_0x126a08[_0xc16a5e(0x1af)]}}:_0x5f185e)}:_0x15e823;}function vi(){const _0x4aa9b9=_0x49aa;return Math[_0x4aa9b9(0x1b8)]()[_0x4aa9b9(0x17c)](0x24)[_0x4aa9b9(0x176)](0x2,0x8);}Ge['displayName']=_0x1cd205(0x21f);const pi={'tag':_0x1cd205(0x1e6),'attrs':{'xmlns':_0x1cd205(0x2e9),'fill':'none','viewBox':_0x1cd205(0x314),'width':_0x1cd205(0x19d),'height':_0x1cd205(0x19d)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x1cd205(0xf2),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1cd205(0x14e),'attrs':{},'children':[{'tag':_0x1cd205(0x121),'attrs':{'id':_0x1cd205(0x1c9)},'children':[{'tag':_0x1cd205(0x1a7),'attrs':{'fill':_0x1cd205(0x22f),'d':_0x1cd205(0x131)}}]}]}],'defIds':[_0x1cd205(0x1c9)]},Pt=_0x20c0ab(function(_0x5ae5ab,_0x164e16){return _0xaf35de(Ge,Object['assign']({},_0x5ae5ab,{'id':'off-line-icon','ref':_0x164e16,'icon':pi}));});Pt[_0x1cd205(0x1ab)]='OffLineIcon';const Oi={'tag':_0x1cd205(0x1e6),'attrs':{'xmlns':_0x1cd205(0x2e9),'fill':_0x1cd205(0x21d),'viewBox':_0x1cd205(0x33a),'width':_0x1cd205(0x19d),'height':_0x1cd205(0x19d)},'children':[{'tag':'g','attrs':{'clipPath':_0x1cd205(0x254)},'children':[{'tag':_0x1cd205(0x1a7),'attrs':{'stroke':_0x1cd205(0x125),'d':_0x1cd205(0x2b9),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1cd205(0x14e),'attrs':{},'children':[{'tag':_0x1cd205(0x121),'attrs':{'id':_0x1cd205(0x1d2)},'children':[{'tag':'path','attrs':{'fill':_0x1cd205(0x22f),'d':_0x1cd205(0x131),'transform':'translate(.97)'}}]}]}],'defIds':[_0x1cd205(0x1d2)]},wt=_0x20c0ab(function(_0x38530f,_0x17c064){const _0x4fb525=_0x1cd205;return _0xaf35de(Ge,Object[_0x4fb525(0x260)]({},_0x38530f,{'id':_0x4fb525(0x23c),'ref':_0x17c064,'icon':Oi}));});wt[_0x1cd205(0x1ab)]=_0x1cd205(0x1c2);function Ti(_0x5ba19a){const _0x3c23fa=_0x1cd205;switch(_0x5ba19a){case _0x4349d8[_0x3c23fa(0x264)]:return'collabStatus.offline';case _0x4349d8[_0x3c23fa(0x1ec)]:return _0x3c23fa(0x2e8);case _0x4349d8[_0x3c23fa(0x141)]:return _0x3c23fa(0x304);case _0x4349d8[_0x3c23fa(0x20e)]:return'collabStatus.notCollab';case _0x4349d8['AWAITING']:case _0x4349d8[_0x3c23fa(0x23a)]:return _0x3c23fa(0x275);case _0x4349d8[_0x3c23fa(0x231)]:case _0x4349d8['PENDING']:return _0x3c23fa(0x160);}}function Ci(_0x5dab63){const _0x4fca69=_0x1cd205,{status$:_0x195760}=_0x5dab63,_0x65be64=_0x57f384(_0x195760,_0x4349d8['NOT_COLLAB']),_0x66f829=_0x29db17(_0x288ce5),_0x5895e4=_0x29db17(_0x1e9e11),_0x172246=_0x65be64!==_0x4349d8[_0x4fca69(0x264)],_0x1a47e5=_0x66f829['t'](Ti(_0x65be64)),_0x4273e2=_0x172246?_0x35f8de(wt,{}):_0x35f8de(Pt,{}),_0x3360a9=_0x503449(()=>{_0x172246||_0x5895e4['reconnect']();},[_0x172246,_0x5895e4]);function _0x4f4f82(){const _0x5540d2=_0x4fca69;return _0x436d46(_0x5540d2(0x2ca),{'className':'univer-flex\x20univer-items-center','onClick':_0x3360a9,'children':[_0x35f8de(_0x5540d2(0x2ca),{'className':_0x54477e(_0x5540d2(0x239),{'univer-text-green-500':_0x172246,'univer-text-red-500':!_0x172246}),'children':_0x4273e2}),_0x35f8de(_0x5540d2(0x2ca),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x1a47e5})]});}return _0x172246?_0x4f4f82():_0x35f8de(_0x52d775,{'title':_0x66f829['t'](_0x4fca69(0x116)),'children':_0x4f4f82()});}var Ri=Object[_0x1cd205(0x332)],Di=(_0x2d0952,_0x5cd50f,_0x415dd2,_0x5a3653)=>{const _0x52bea5=_0x1cd205;for(var _0x11533f=_0x5a3653>0x1?void 0x0:_0x5a3653?Ri(_0x5cd50f,_0x415dd2):_0x5cd50f,_0x1aa17e=_0x2d0952[_0x52bea5(0x13e)]-0x1,_0x3d93b0;_0x1aa17e>=0x0;_0x1aa17e--)(_0x3d93b0=_0x2d0952[_0x1aa17e])&&(_0x11533f=_0x3d93b0(_0x11533f)||_0x11533f);return _0x11533f;},se=(_0x220560,_0x395e2d)=>(_0xd152f3,_0x666a85)=>_0x395e2d(_0xd152f3,_0x666a85,_0x220560);let ae=class extends _0x5704a6{constructor(_0x492a1a,_0xc63d9e,_0x56095e,_0x59364e){const _0x4b38a1=_0x1cd205;super(),_(this,_0x4b38a1(0x13b),new _0x547593(_0x4349d8[_0x4b38a1(0x20e)])),(this['_univerInstanceService']=_0x492a1a,this[_0x4b38a1(0x25e)]=_0xc63d9e,this[_0x4b38a1(0x1d6)]=_0x56095e,this[_0x4b38a1(0x1ea)]=_0x59364e,this[_0x4b38a1(0x1ed)](),this['_initStatusListener']());}[_0x1cd205(0x287)](){const _0x57d6f9=_0x1cd205;this[_0x57d6f9(0x270)](this[_0x57d6f9(0x215)]['focused$']['pipe'](_0x2ec10f(()=>{const _0x308c93=_0x57d6f9,_0x46330f=this[_0x308c93(0x215)][_0x308c93(0xf8)]();return _0x46330f?this['_collaborationController'][_0x308c93(0x325)](_0x46330f[_0x308c93(0x15f)]()):_0x192cf3(null);}),_0x2ec10f(_0x45e8ad=>_0x45e8ad?_0x45e8ad[_0x57d6f9(0x14d)]:_0x192cf3(_0x4349d8[_0x57d6f9(0x20e)])))[_0x57d6f9(0x2a0)](_0x342ae6=>{const _0x505542=_0x57d6f9;this[_0x505542(0x13b)][_0x505542(0x308)](_0x342ae6);}));}['_initStatusComponent'](){const _0x4c498a=_0x1cd205;this[_0x4c498a(0x270)](this['_uiPartsService'][_0x4c498a(0x21e)](_0x3d4f97[_0x4c498a(0x320)],()=>_0x515995(Ni({'status$':this['_status$']['asObservable']()}),this['_injector'])));}};ae=Di([se(0x0,_0x439541),se(0x1,_0x12d739(_0x238493)),se(0x2,_0x12d739(_0x1bf057)),se(0x3,_0x2df45b)],ae);function Ni(_0x39e854){const {status$:_0x4f28a2}=_0x39e854;return function(){return _0x35f8de(Ci,{'status$':_0x4f28a2});};}const yt=_0x399dd8(_0x1cd205(0x168));var bi=Object[_0x1cd205(0x332)],Li=(_0x4efffd,_0xc4ed73,_0xde9306,_0x41ac42)=>{const _0x5832cf=_0x1cd205;for(var _0x5f1464=_0x41ac42>0x1?void 0x0:_0x41ac42?bi(_0xc4ed73,_0xde9306):_0xc4ed73,_0x2d0081=_0x4efffd[_0x5832cf(0x13e)]-0x1,_0x3ad654;_0x2d0081>=0x0;_0x2d0081--)(_0x3ad654=_0x4efffd[_0x2d0081])&&(_0x5f1464=_0x3ad654(_0x5f1464)||_0x5f1464);return _0x5f1464;},K=(_0x5adfe5,_0x474940)=>(_0x58f4e2,_0x188918)=>_0x474940(_0x58f4e2,_0x188918,_0x5adfe5);let ce=class extends _0x30a36{constructor(_0x15b834,_0x436497,_0x4225e2,_0x18b7ab,_0xee770d){const _0x456d0d=_0x1cd205;super(),this[_0x456d0d(0x237)]=_0x15b834,this[_0x456d0d(0x174)]=_0x436497,this[_0x456d0d(0x122)]=_0x4225e2,this[_0x456d0d(0x19b)]=_0x18b7ab,_0xee770d?_0xee770d==null||_0xee770d['whenReady']()[_0x456d0d(0x2d3)](()=>this[_0x456d0d(0x32f)]()):(this[_0x456d0d(0x174)][_0x456d0d(0x13c)]('[CollaborationDataLoaderController]',_0x456d0d(0x16c)),this['_init']());}async['_init'](){const _0xe0f3d3=_0x1cd205,_0x17cf59=this[_0xe0f3d3(0x237)][_0xe0f3d3(0x2c9)](_0xe0f3d3(0x18a)),_0x4b63d8=this[_0xe0f3d3(0x237)][_0xe0f3d3(0x2c9)](_0xe0f3d3(0x113)),_0x579087=this[_0xe0f3d3(0x237)]['getParam']('subunit');if(!_0x17cf59||!_0x4b63d8){this[_0xe0f3d3(0x174)][_0xe0f3d3(0x13c)](_0xe0f3d3(0x2dd),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x444484=await this[_0xe0f3d3(0x19b)][_0xe0f3d3(0x1d0)](_0x17cf59,Number(_0x4b63d8),_0x579087);_0x444484&&_0x444484 instanceof _0x1feb35&&this[_0xe0f3d3(0x23b)](_0x444484);}async[_0x1cd205(0x23b)](_0x499137){const _0x3138b9=_0x1cd205;await this[_0x3138b9(0x115)](_0x499137),_0x499137[_0x3138b9(0x272)][_0x3138b9(0x233)](_0x4da12d(this[_0x3138b9(0x20a)]))[_0x3138b9(0x2a0)](_0xc48cfc=>{const _0x5e23cf=_0x3138b9;_0xc48cfc&&this[_0x5e23cf(0x289)](_0xc48cfc);}),this['_urlService']['urlChange$'][_0x3138b9(0x233)](_0x4da12d(this[_0x3138b9(0x20a)]))['subscribe'](()=>this[_0x3138b9(0x115)](_0x499137));}[_0x1cd205(0x289)](_0x216457,_0x40a0ac=!0x1){const _0x3b27ee=_0x1cd205,_0x56dbaf=this['_urlService'][_0x3b27ee(0x2c9)]('subunit');_0x216457['getSheetId']()!==_0x56dbaf&&this[_0x3b27ee(0x237)][_0x3b27ee(0x2f7)]('subunit',_0x216457['getSheetId'](),_0x40a0ac);}async[_0x1cd205(0x115)](_0x3d521b){const _0x47679e=_0x1cd205;var _0x5f45ee;const _0x4abc08=this[_0x47679e(0x237)][_0x47679e(0x2c9)](_0x47679e(0x110));if(!_0x4abc08||!_0x3d521b['getSheetBySheetId'](_0x4abc08)){const _0x41d5b5=_0x3d521b['getUnhiddenWorksheets']()[0x0],_0x1531be=_0x3d521b[_0x47679e(0x2a1)](_0x41d5b5);if(!_0x1531be)return;this['_updateURLWithCurrentState'](_0x1531be,!0x0),await this[_0x47679e(0x122)]['executeCommand'](_0x5cf065['id'],{'unitId':_0x3d521b[_0x47679e(0x15f)](),'subUnitId':_0x41d5b5});return;}((_0x5f45ee=_0x3d521b[_0x47679e(0x26a)]())==null?void 0x0:_0x5f45ee['getSheetId']())!==_0x4abc08&&await this[_0x47679e(0x122)][_0x47679e(0x1a9)](_0x5cf065['id'],{'unitId':_0x3d521b[_0x47679e(0x15f)](),'subUnitId':_0x4abc08});}};ce=Li([K(0x0,yt),K(0x1,_0x17e71c),K(0x2,_0x15dbe0),K(0x3,_0x12d739(_0x3b2b00)),K(0x4,_0xd311da(_0x2ae7ed))],ce);var Ui=Object[_0x1cd205(0x332)],Mi=(_0x2b545e,_0x2beffe,_0x5c7077,_0x1ff1dd)=>{const _0x517eda=_0x1cd205;for(var _0x1f85d1=_0x1ff1dd>0x1?void 0x0:_0x1ff1dd?Ui(_0x2beffe,_0x5c7077):_0x2beffe,_0x467fd6=_0x2b545e[_0x517eda(0x13e)]-0x1,_0x284896;_0x467fd6>=0x0;_0x467fd6--)(_0x284896=_0x2b545e[_0x467fd6])&&(_0x1f85d1=_0x284896(_0x1f85d1)||_0x1f85d1);return _0x1f85d1;},rt=(_0x5b2453,_0x5bbe66)=>(_0x1f20dd,_0x5bc271)=>_0x5bbe66(_0x1f20dd,_0x5bc271,_0x5b2453);let $e=class extends _0x30a36{constructor(_0x480981,_0x3481aa){const _0x3a5211=_0x1cd205;super(),this[_0x3a5211(0x291)]=_0x480981,this['_imageIoService']=_0x3481aa,this[_0x3a5211(0x32f)]();}['_init'](){const _0x2135e8=_0x1cd205,_0xfbc312=this;this[_0x2135e8(0x270)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x1fda98=>{const _0x1a0fc6=_0x2135e8,_0x3c418c=await _0xfbc312[_0x1a0fc6(0x1df)]['saveImage'](_0x1fda98);return _0x3c418c?{'source':_0x3c418c[_0x1a0fc6(0x1fe)],'imageSourceType':_0x3c418c['imageSourceType']}:null;}}));}};$e=Mi([rt(0x0,_0x429d38),rt(0x1,_0x1109ee)],$e);const ot=[_0x1cd205(0x108),_0x1cd205(0x228),_0x1cd205(0x202),_0x1cd205(0x22c),_0x1cd205(0x2b0),'yellow.400'];class Ke extends _0x5704a6{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x5a0dfb){const _0xdd70c3=_0x1cd205;if(this['_assignedColors'][_0xdd70c3(0x28c)](_0x5a0dfb))return this['_assignedColors'][_0xdd70c3(0x1f8)](_0x5a0dfb);const _0x183cbf=ot[this[_0xdd70c3(0x21b)]];return this[_0xdd70c3(0x21b)]=(this[_0xdd70c3(0x21b)]+0x1)%ot['length'],this[_0xdd70c3(0x137)][_0xdd70c3(0x241)](_0x5a0dfb,_0x183cbf),_0x183cbf;}}function $t(_0x527375){const _0x3eda5a=_0x1cd205;let _0x5c328e='';for(const _0x42346f of _0x527375){const {startOffset:_0xbf9532,endOffset:_0x296292,isActive:_0x2dc9b3,rangeType:_0x3b4575,segmentId:_0x251ffd,segmentPage:_0x330a72}=_0x42346f;_0x5c328e[_0x3eda5a(0x13e)]&&(_0x5c328e+=','),_0x5c328e+=_0xbf9532+':'+_0x296292+':'+(_0x2dc9b3?'1':'0')+':'+_0x3b4575+':'+_0x251ffd+':'+_0x330a72;}return _0x5c328e;}function Ai(_0x3f1421){const _0x4c1498=_0x1cd205,_0x26130f=_0x3f1421['split'](','),_0x26ad4e=[];for(const _0x5628e0 of _0x26130f){const [_0x5f440b,_0x5f1d76,_0x27fa62,_0x1921fa,_0x7e70c7,_0x5bac64]=_0x5628e0[_0x4c1498(0x18e)](':');_0x26ad4e[_0x4c1498(0xf4)]({'startOffset':Number(_0x5f440b),'endOffset':Number(_0x5f1d76),'collapsed':_0x5f440b===_0x5f1d76,'isActive':_0x27fa62==='1','rangeType':_0x1921fa===_0x5a5f34['TEXT']?_0x5a5f34[_0x4c1498(0x2e5)]:_0x5a5f34[_0x4c1498(0x2f9)],'segmentId':typeof _0x7e70c7=='string'?String(_0x7e70c7):'','segmentPage':Number(_0x5bac64!=null?_0x5bac64:-0x1)});}return _0x26ad4e[_0x4c1498(0x2dc)](_0x12e2e3=>_0x12e2e3[_0x4c1498(0x1a1)])||(_0x26ad4e[0x0][_0x4c1498(0x1a1)]=!0x0),_0x26ad4e;}class ze extends _0x30a36{constructor(){const _0x429e40=_0x1cd205;super(...arguments),_(this,'_collabCursorState$',new _0x547593(null)),_(this,'collabCursorState$',this[_0x429e40(0x25d)][_0x429e40(0x1c1)]());}[_0x1cd205(0x1aa)](_0x5a8bf6){const _0x5070e0=_0x1cd205,{unitID:_0x4c71b1,memberID:_0x313a0b,textRanges:_0x38ce82}=_0x5a8bf6,_0x485baf=$t(_0x38ce82);if(_0x485baf==='')return;const _0x496941={'unitID':_0x4c71b1,'memberID':_0x313a0b,'selection':_0x485baf};this[_0x5070e0(0x25d)][_0x5070e0(0x308)](_0x496941);}}var Pi=Object['getOwnPropertyDescriptor'],wi=(_0x348683,_0x2a35cb,_0x560800,_0x19b7da)=>{const _0x20380d=_0x1cd205;for(var _0x37cad4=_0x19b7da>0x1?void 0x0:_0x19b7da?Pi(_0x2a35cb,_0x560800):_0x2a35cb,_0x1f5e96=_0x348683[_0x20380d(0x13e)]-0x1,_0x56b394;_0x1f5e96>=0x0;_0x1f5e96--)(_0x56b394=_0x348683[_0x1f5e96])&&(_0x37cad4=_0x56b394(_0x37cad4)||_0x37cad4);return _0x37cad4;},A=(_0x95e0d9,_0x21f7ab)=>(_0x4e6c63,_0x218816)=>_0x21f7ab(_0x4e6c63,_0x218816,_0x95e0d9);const yi=0x12c,$i=0x64;let xe=class extends _0x30a36{constructor(_0x580609,_0x544e24,_0x5b66b2,_0x32b5f8,_0x2d3eab,_0x47b771,_0x3325b7,_0x696ff6,_0x4558ca){const _0x24d825=_0x1cd205;super(),_(this,_0x24d825(0x19c),!0x1),_(this,_0x24d825(0x32f),!0x1),_(this,_0x24d825(0x338),new _0x547593(new Map())),_(this,_0x24d825(0x1bf),this[_0x24d825(0x338)][_0x24d825(0x1c1)]()),_(this,'_roomMembers$',new _0x547593([])),_(this,_0x24d825(0x24d),this[_0x24d825(0x27c)][_0x24d825(0x233)](_0x2169ff(yi))),_(this,_0x24d825(0x251),_0x4a79cd(_0x4fc035=>{const _0x4cfea9=_0x24d825,_0x59159d={'eventID':_0xc93993[_0x4cfea9(0x25b)],'data':{'unitID':this['unitID'],'memberID':this[_0x4cfea9(0x2bb)]['getMemberID'](),'selection':$t(_0x4fc035)}};this[_0x4cfea9(0x2bb)][_0x4cfea9(0x1e5)](_0x59159d,this[_0x4cfea9(0x1da)]);},$i)),(this[_0x24d825(0x1da)]=_0x580609,this[_0x24d825(0x2bb)]=_0x544e24,this[_0x24d825(0x25e)]=_0x5b66b2,this[_0x24d825(0x1ba)]=_0x32b5f8,this[_0x24d825(0x20c)]=_0x2d3eab,this[_0x24d825(0x127)]=_0x47b771,this['_transformService']=_0x3325b7,this[_0x24d825(0x215)]=_0x696ff6,this['_commandService']=_0x4558ca);}get[_0x1cd205(0x262)](){const _0x412e19=_0x1cd205;return this[_0x412e19(0x338)][_0x412e19(0x152)]();}get[_0x1cd205(0x197)](){const _0x182391=_0x1cd205;return this[_0x182391(0x27c)][_0x182391(0x152)]();}['dispose'](){const _0x25cc31=_0x1cd205;super[_0x25cc31(0x2b5)](),this[_0x25cc31(0x338)][_0x25cc31(0x308)](new Map()),this[_0x25cc31(0x338)][_0x25cc31(0x27d)](),this[_0x25cc31(0x27c)][_0x25cc31(0x308)]([]),this['_roomMembers$'][_0x25cc31(0x27d)]();}[_0x1cd205(0x15b)](){const _0x141259=_0x1cd205;this['_init']||(this[_0x141259(0x32f)]=!0x0,this[_0x141259(0x2bb)][_0x141259(0x31e)][_0x141259(0x233)](_0x4da12d(this[_0x141259(0x20a)]))[_0x141259(0x2a0)](_0x57ab53=>{const _0x40bce1=_0x141259;_0x57ab53===_0x3fc7fa[_0x40bce1(0x1d8)]?this[_0x40bce1(0x163)]():this[_0x40bce1(0x28b)]();}),this[_0x141259(0x2bb)][_0x141259(0x225)][_0x141259(0x233)](_0x4da12d(this[_0x141259(0x20a)]))[_0x141259(0x2a0)](_0x490f65=>{const _0x4e5c59=_0x141259,_0xd8c4e1=_0x490f65[_0x4e5c59(0x248)];_0xd8c4e1===_0xc93993[_0x4e5c59(0x25b)]&&this['_onCursorUpdate'](_0x490f65),_0xd8c4e1===_0xc93993[_0x4e5c59(0x22d)]&&this['_onCursorDelete'](_0x490f65);}),this[_0x141259(0x270)](this[_0x141259(0x122)][_0x141259(0x14c)](_0x2ffcac=>{const _0x52b9b7=_0x141259,_0x111947=_0x2ffcac['params'];_0x111947!=null&&this[_0x52b9b7(0x19c)]&&_0x2ffcac['id']===_0x29f665['id']&&_0x111947[_0x52b9b7(0x1b1)]===this['unitID']&&_0x111947[_0x52b9b7(0x11e)]===!0x1&&_0x111947[_0x52b9b7(0x147)][_0x52b9b7(0x13e)]>0x0&&this[_0x52b9b7(0x251)](_0x111947[_0x52b9b7(0x147)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x141259(0x233)](_0x4da12d(this['dispose$']))[_0x141259(0x2a0)](_0x3f79bf=>{const _0x3fb0da=_0x141259;if((_0x3f79bf==null?void 0x0:_0x3f79bf[_0x3fb0da(0x1da)])!==this[_0x3fb0da(0x1da)])return;const _0x4e94bf={'eventID':_0xc93993[_0x3fb0da(0x25b)],'data':_0x3f79bf};this[_0x3fb0da(0x14f)](_0x4e94bf);}),this[_0x141259(0x270)](this[_0x141259(0x122)][_0x141259(0x14c)](_0x5da57c=>{const _0x1e794a=_0x141259;if(_0x5da57c[_0x1e794a(0x1be)]==null)return;const _0x3b5e3f=_0x5da57c[_0x1e794a(0x1be)];if(_0x5da57c['id']!==_0x3712b4['id']||_0x3b5e3f[_0x1e794a(0x1b1)]!==this[_0x1e794a(0x1da)])return;const _0x2b373b={'id':_0x1e794a(0x1ac),'params':_0x3b5e3f},_0x5da19b=this['cursorInfo'];for(const [_0x3b200c,_0x3ab6ae]of _0x5da19b){const _0x20c26d={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x3ab6ae[_0x1e794a(0x147)]}},_0x29a1c8=this[_0x1e794a(0x2c2)][_0x1e794a(0x10d)](_0x2b373b,_0x20c26d,!0x1);if(_0x5da487(_0x29a1c8))throw _0x29a1c8[_0x1e794a(0x290)];_0x5da19b[_0x1e794a(0x241)](_0x3b200c,{..._0x3ab6ae,'ranges':_0x29a1c8[_0x1e794a(0x2df)]['params'][_0x1e794a(0x2fd)]});}queueMicrotask(()=>{const _0xb789fc=_0x1e794a;this[_0xb789fc(0x338)][_0xb789fc(0x308)](_0x5da19b);});})));}[_0x1cd205(0x14f)](_0x141729){const _0x5714a6=_0x1cd205;var _0x327d85,_0x53ac91;const {memberID:_0x2b01e6,selection:_0x579023}=_0x141729['data'],_0x1f52d4=Ai(_0x579023),_0x3b454b=(_0x53ac91=(_0x327d85=this[_0x5714a6(0x20c)][_0x5714a6(0x2f0)](this[_0x5714a6(0x1da)],_0x2b01e6))==null?void 0x0:_0x327d85[_0x5714a6(0x1a6)])!=null?_0x53ac91:_0x5714a6(0x1fa),_0x5a8f05={'color':this['_colorAssignService'][_0x5714a6(0x2e3)](_0x2b01e6),'name':_0x3b454b,'ranges':_0x1f52d4},_0x481139=this['cursorInfo'];_0x481139[_0x5714a6(0x241)](_0x2b01e6,_0x5a8f05),this['_cursorInfo$'][_0x5714a6(0x308)](_0x481139);}[_0x1cd205(0xf3)](_0x47a010){const _0x2ae2a5=_0x1cd205,{memberID:_0x4d58ab}=_0x47a010[_0x2ae2a5(0x145)],_0x32bcd6=this[_0x2ae2a5(0x262)];_0x32bcd6[_0x2ae2a5(0x2d7)](_0x4d58ab),this[_0x2ae2a5(0x338)][_0x2ae2a5(0x308)](_0x32bcd6);}[_0x1cd205(0x163)](){const _0x3237cb=_0x1cd205;var _0x209fda;if(this[_0x3237cb(0x19c)]=!0x0,((_0x209fda=this[_0x3237cb(0x215)]['getFocusedUnit']())==null?void 0x0:_0x209fda['getUnitId']())!==this[_0x3237cb(0x1da)])return;const _0x3dd736=this[_0x3237cb(0x25e)][_0x3237cb(0x1f8)](_0x462ec2)[_0x3237cb(0x1c5)]();Array[_0x3237cb(0x30a)](_0x3dd736)&&_0x3dd736[_0x3237cb(0x13e)]>0x0&&this[_0x3237cb(0x251)](_0x3dd736);}[_0x1cd205(0x28b)](){const _0x174d0c=_0x1cd205;this[_0x174d0c(0x19c)]=!0x1;}};xe=wi([A(0x2,_0x12d739(_0x238493)),A(0x3,_0x12d739(Ke)),A(0x4,_0x12d739(_0x558e36)),A(0x5,_0x12d739(ze)),A(0x6,_0x271d90),A(0x7,_0x439541),A(0x8,_0x15dbe0)],xe);var xi=Object['getOwnPropertyDescriptor'],Bi=(_0x23f297,_0x30418e,_0x117147,_0x2a8962)=>{const _0xd5578c=_0x1cd205;for(var _0x3be557=_0x2a8962>0x1?void 0x0:_0x2a8962?xi(_0x30418e,_0x117147):_0x30418e,_0x1a3816=_0x23f297[_0xd5578c(0x13e)]-0x1,_0x122701;_0x1a3816>=0x0;_0x1a3816--)(_0x122701=_0x23f297[_0x1a3816])&&(_0x3be557=_0x122701(_0x3be557)||_0x3be557);return _0x3be557;},B=(_0x192b20,_0x5e017a)=>(_0x39c785,_0x388c70)=>_0x5e017a(_0x39c785,_0x388c70,_0x192b20);const Fi=0x12c,ki=0x64,Hi=()=>{let _0xc4d505=[],_0x2505bd=!0x1;return _0x539930=>{const _0x1ef549=_0x49aa;_0xc4d505[_0x1ef549(0xf4)](_0x539930),_0x2505bd||(_0x2505bd=!0x0,setTimeout(()=>{const _0xa0ef38=_0x1ef549;_0xc4d505[_0xa0ef38(0x19f)](_0x3c5cb0=>_0x3c5cb0()),_0xc4d505=[],_0x2505bd=!0x1;}));};};let Be=class extends _0x30a36{constructor(_0x5ea4c8,_0x426fff,_0x35a2c7,_0x4531a1,_0x3979a9,_0x2e37d0,_0x32a03c,_0xf1c984){const _0xd6b5bc=_0x1cd205;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,_0xd6b5bc(0x338),new _0x547593(new Map())),_(this,'cursorInfo$',this[_0xd6b5bc(0x338)]['asObservable']()),_(this,'_roomMembers$',new _0x547593([])),_(this,'roomMembers$',this[_0xd6b5bc(0x27c)][_0xd6b5bc(0x233)](_0x2169ff(Fi))),_(this,_0xd6b5bc(0x251),_0x4a79cd((_0x5a500a,_0x5d70b3)=>{const _0x4c25a1=_0xd6b5bc,_0x3abb21={'eventID':_0xc93993[_0x4c25a1(0x25b)],'data':{'unitID':this[_0x4c25a1(0x1da)],'memberID':this[_0x4c25a1(0x2bb)]['getMemberID'](),'selection':_0x57e71b(_0x5a500a,_0x5d70b3[_0x4c25a1(0x12a)])}};this[_0x4c25a1(0x2bb)]['send'](_0x3abb21,this['unitID']);},ki)),(this[_0xd6b5bc(0x1da)]=_0x5ea4c8,this[_0xd6b5bc(0x2bb)]=_0x426fff,this[_0xd6b5bc(0x25e)]=_0x35a2c7,this[_0xd6b5bc(0x1ba)]=_0x4531a1,this[_0xd6b5bc(0x20c)]=_0x3979a9,this[_0xd6b5bc(0x215)]=_0x2e37d0,this[_0xd6b5bc(0x122)]=_0x32a03c,this[_0xd6b5bc(0x16f)]=_0xf1c984);}get[_0x1cd205(0x262)](){const _0x392178=_0x1cd205;return this[_0x392178(0x338)]['getValue']();}get[_0x1cd205(0x197)](){const _0x44d5b0=_0x1cd205;return this[_0x44d5b0(0x27c)][_0x44d5b0(0x152)]();}[_0x1cd205(0x2b5)](){const _0x334969=_0x1cd205;super[_0x334969(0x2b5)](),this[_0x334969(0x338)][_0x334969(0x308)](new Map()),this[_0x334969(0x338)][_0x334969(0x27d)](),this[_0x334969(0x27c)]['next']([]),this[_0x334969(0x27c)]['complete']();}['init'](){const _0x57c60a=_0x1cd205;this[_0x57c60a(0x32f)]||(this[_0x57c60a(0x32f)]=!0x0,this[_0x57c60a(0x2bb)][_0x57c60a(0x31e)][_0x57c60a(0x233)](_0x4da12d(this['dispose$']))[_0x57c60a(0x2a0)](_0x26cfe6=>{const _0x40f693=_0x57c60a;_0x26cfe6===_0x3fc7fa[_0x40f693(0x1d8)]?this['_toggleOnline']():this[_0x40f693(0x28b)]();}),this[_0x57c60a(0x2bb)][_0x57c60a(0x225)][_0x57c60a(0x233)](_0x4da12d(this['dispose$']))[_0x57c60a(0x2a0)](_0x436db8=>{const _0x19913d=_0x57c60a,_0x264667=_0x436db8[_0x19913d(0x248)];_0x264667===_0xc93993[_0x19913d(0x25b)]&&this[_0x19913d(0x14f)](_0x436db8),_0x264667===_0xc93993[_0x19913d(0x22d)]&&this[_0x19913d(0xf3)](_0x436db8);}),this[_0x57c60a(0x281)](),this[_0x57c60a(0x270)](this[_0x57c60a(0x122)][_0x57c60a(0x14c)](_0x51ef66=>{const _0x42b5b8=_0x57c60a;if(this[_0x42b5b8(0x19c)]&&_0x51ef66['id']===_0x1a797b['id']&&_0x51ef66[_0x42b5b8(0x1be)][_0x42b5b8(0x1b1)]===this[_0x42b5b8(0x1da)]){const _0x242256=_0x51ef66[_0x42b5b8(0x1be)];this[_0x42b5b8(0x251)](_0x242256['subUnitId'],_0x242256['selections'][0x0]);}})));}[_0x1cd205(0x14f)](_0x1c1e37){const _0x16a629=_0x1cd205;var _0xb7eb52,_0x38eddf;const {memberID:_0x2c7662,selection:_0x541d69}=_0x1c1e37[_0x16a629(0x145)],{sheetName:_0x3fb0ee,range:_0x2d72ca}=_0xc27841(_0x541d69),_0x3fa727={'name':(_0x38eddf=(_0xb7eb52=this[_0x16a629(0x20c)][_0x16a629(0x2f0)](this[_0x16a629(0x1da)],_0x2c7662))==null?void 0x0:_0xb7eb52[_0x16a629(0x1a6)])!=null?_0x38eddf:_0x16a629(0x1fa),'range':this[_0x16a629(0x2fe)](_0x3fb0ee,_0x2d72ca),'sheetID':_0x3fb0ee,'color':this[_0x16a629(0x1ba)][_0x16a629(0x2e3)](_0x2c7662),'selection':_0x541d69},_0x2705b5=this[_0x16a629(0x262)];_0x2705b5[_0x16a629(0x241)](_0x2c7662,_0x3fa727),this[_0x16a629(0x338)][_0x16a629(0x308)](_0x2705b5);}[_0x1cd205(0xf3)](_0x5f8111){const _0x43628c=_0x1cd205,{memberID:_0x24cc68}=_0x5f8111['data'],_0x4785fc=this[_0x43628c(0x262)];_0x4785fc['delete'](_0x24cc68),this[_0x43628c(0x338)][_0x43628c(0x308)](_0x4785fc);}[_0x1cd205(0x2fe)](_0x2ad69b,_0x29f1fd){const _0x435fab=_0x1cd205;var _0x4b7eb1,_0xa9e2f9;const _0x492ed1=(_0xa9e2f9=(_0x4b7eb1=this[_0x435fab(0x215)][_0x435fab(0x18f)](this['unitID']))==null?void 0x0:_0x4b7eb1[_0x435fab(0x2a1)](_0x2ad69b))==null?void 0x0:_0xa9e2f9['getMergeData']();return(_0x492ed1==null?void 0x0:_0x492ed1[_0x435fab(0x144)](_0x5902c6=>_0x336cf7[_0x435fab(0x193)](_0x5902c6,_0x29f1fd)))||_0x29f1fd;}['_onRefRangeChange'](){const _0xb87c18=_0x1cd205,_0x378d43=new _0x231924(),_0x1e40dd=Hi(),_0x5794a8=()=>{const _0x57bb2d=_0x49aa;_0x378d43[_0x57bb2d(0x2b5)]();const _0x55b82d=(_0x432846,_0x5aa66a,_0x2fa266,_0x1d1cee)=>{const _0x1e8e3e=_0x57bb2d;let _0x214bf9=[];switch(_0x432846['id']){case _0x5f1664['DeleteRangeMoveLeftCommandId']:{_0x214bf9=_0x5ad817(_0x432846,_0x1d1cee);break;}case _0x5f1664[_0x1e8e3e(0x303)]:{_0x214bf9=_0x4a4ada(_0x432846,_0x1d1cee);break;}case _0x5f1664['InsertColCommandId']:{_0x214bf9=_0x58442f(_0x432846,_0x1d1cee);break;}case _0x5f1664[_0x1e8e3e(0x2a2)]:{_0x214bf9=_0x32c6ce(_0x432846,_0x1d1cee);break;}case _0x5f1664[_0x1e8e3e(0x210)]:{_0x214bf9=_0xa55b97(_0x432846,_0x1d1cee);break;}case _0x5f1664[_0x1e8e3e(0x26e)]:{_0x214bf9=_0xa1a7b3(_0x432846,_0x1d1cee);break;}case _0x5f1664[_0x1e8e3e(0x1a0)]:{_0x214bf9=_0x215891(_0x432846,_0x1d1cee);break;}case _0x5f1664[_0x1e8e3e(0x1c0)]:{_0x214bf9=_0x344210(_0x432846,_0x1d1cee);break;}case _0x5f1664['RemoveRowCommandId']:{_0x214bf9=_0x1c5c4d(_0x432846,_0x1d1cee);break;}}const _0x105e24=_0x503cfa(_0x214bf9,_0x1d1cee),_0x2af49c=this['cursorInfo'][_0x1e8e3e(0x1f8)](_0x5aa66a);if(_0x2af49c&&_0x105e24){const _0x3f4acc={..._0x2af49c,'range':_0x105e24};this[_0x1e8e3e(0x262)][_0x1e8e3e(0x241)](_0x5aa66a,_0x3f4acc),_0x1e40dd(()=>{const _0x51de35=_0x1e8e3e,_0xf42872=this[_0x51de35(0x16f)][_0x51de35(0x2ae)](_0x105e24,_0x2d889d=>(_0xf42872[_0x51de35(0x2b5)](),_0x55b82d(_0x2d889d,_0x5aa66a,_0x2fa266,_0x105e24)));_0x378d43[_0x51de35(0x2e6)](_0xf42872);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x57bb2d(0x19f)]((_0x4cbc6e,_0x3fe824)=>{const _0x7dc1a9=_0x57bb2d,{range:_0x3ab336,sheetID:_0x1fe817}=_0x4cbc6e,_0x300d78=this['_refRangeService'][_0x7dc1a9(0x2ae)](_0x3ab336,_0x33cff5=>(_0x300d78[_0x7dc1a9(0x2b5)](),_0x55b82d(_0x33cff5,_0x3fe824,_0x1fe817,_0x3ab336)));_0x378d43[_0x7dc1a9(0x2e6)](_0x300d78);});};this[_0xb87c18(0x270)](_0x8fe20c(this[_0xb87c18(0x338)][_0xb87c18(0x2a0)](()=>{_0x5794a8();})));}[_0x1cd205(0x163)](){const _0x37c65e=_0x1cd205;var _0x3d6179,_0x4b6bb8;if(this[_0x37c65e(0x19c)]=!0x0,((_0x3d6179=this[_0x37c65e(0x215)][_0x37c65e(0xf8)]())==null?void 0x0:_0x3d6179[_0x37c65e(0x15f)]())!==this[_0x37c65e(0x1da)])return;const _0x280f23=(_0x4b6bb8=this[_0x37c65e(0x25e)][_0x37c65e(0x1f8)](_0x49d40f)[_0x37c65e(0x31a)]())==null?void 0x0:_0x4b6bb8[0x0],_0x5c5bc3=this[_0x37c65e(0x215)][_0x37c65e(0x2e1)](_0x50e564[_0x37c65e(0x32e)])[_0x37c65e(0x26a)]();_0x280f23&&_0x5c5bc3&&this['_updateLocalCursor'](_0x5c5bc3[_0x37c65e(0x227)](),_0x280f23);}['_toggleOffline'](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0x12d739(_0x238493)),B(0x3,_0x12d739(Ke)),B(0x4,_0x12d739(_0x558e36)),B(0x5,_0x439541),B(0x6,_0x15dbe0),B(0x7,_0x12d739(_0x12c276))],Be);var Yi=Object['getOwnPropertyDescriptor'],Wi=(_0xa0884b,_0x5673f9,_0x519b69,_0x2aa1fd)=>{const _0xd1499c=_0x1cd205;for(var _0xc124e7=_0x2aa1fd>0x1?void 0x0:_0x2aa1fd?Yi(_0x5673f9,_0x519b69):_0x5673f9,_0x252b77=_0xa0884b[_0xd1499c(0x13e)]-0x1,_0x5a19f7;_0x252b77>=0x0;_0x252b77--)(_0x5a19f7=_0xa0884b[_0x252b77])&&(_0xc124e7=_0x5a19f7(_0xc124e7)||_0xc124e7);return _0xc124e7;},Ce=(_0x52ad25,_0x24e479)=>(_0x55d14d,_0x1282fc)=>_0x24e479(_0x55d14d,_0x1282fc,_0x52ad25);let H=class extends _0x30a36{constructor(_0x5da552,_0x404643,_0x5cff5c){const _0x2eed31=_0x1cd205;super(),_(this,'_entities',new Map()),_(this,_0x2eed31(0x18b),new _0x28b8f6()),(this['_univerInstanceService']=_0x5da552,this[_0x2eed31(0x25e)]=_0x404643,this['_collabSessionService']=_0x5cff5c,this[_0x2eed31(0x32f)]());}[_0x1cd205(0x2b5)](){const _0x589c93=_0x1cd205;super[_0x589c93(0x2b5)](),this[_0x589c93(0x18b)][_0x589c93(0x27d)](),this[_0x589c93(0x175)]['forEach'](_0x5af471=>_0x5af471[_0x589c93(0x2b5)]());}[_0x1cd205(0x2c7)](_0x4d8685){const _0x219a4d=_0x1cd205;return this[_0x219a4d(0x175)][_0x219a4d(0x28c)](_0x4d8685)?this[_0x219a4d(0x175)][_0x219a4d(0x1f8)](_0x4d8685)[_0x219a4d(0x1bf)]:this['_entityInit$']['pipe'](_0x3cf5c8(_0x25715b=>_0x25715b[_0x219a4d(0x1da)]===_0x4d8685),_0x2ec10f(_0x3c3eed=>_0x3c3eed['cursorInfo$']));}['_init'](){const _0x4e106e=_0x1cd205;this[_0x4e106e(0x215)][_0x4e106e(0x171)](_0x50e564[_0x4e106e(0x32e)])[_0x4e106e(0x233)](_0x4da12d(this[_0x4e106e(0x20a)]))[_0x4e106e(0x2a0)](async _0x4fcd14=>{const _0x18ed45=_0x4e106e,_0x37c76e=_0x4fcd14[_0x18ed45(0x15f)](),_0x49f990=await this[_0x18ed45(0x19e)](_0x37c76e);this[_0x18ed45(0x18b)][_0x18ed45(0x308)](_0x49f990),this[_0x18ed45(0x175)][_0x18ed45(0x241)](_0x37c76e,_0x49f990);}),this['_univerInstanceService'][_0x4e106e(0x171)](_0x50e564[_0x4e106e(0x2c1)])[_0x4e106e(0x233)](_0x4da12d(this[_0x4e106e(0x20a)]))[_0x4e106e(0x233)](_0x3cf5c8(_0xbcb73f=>!_0xbcb73f[_0x4e106e(0x15f)]()[_0x4e106e(0x10f)]('__')))['subscribe'](async _0x42fec5=>{const _0x14fc21=_0x4e106e,_0x30f798=_0x42fec5[_0x14fc21(0x15f)](),_0x18c7cb=await this[_0x14fc21(0x24e)](_0x30f798);this[_0x14fc21(0x18b)][_0x14fc21(0x308)](_0x18c7cb),this[_0x14fc21(0x175)][_0x14fc21(0x241)](_0x30f798,_0x18c7cb);}),_0x2a50a0(this[_0x4e106e(0x215)][_0x4e106e(0x337)](_0x50e564[_0x4e106e(0x2c1)]),this[_0x4e106e(0x215)][_0x4e106e(0x337)](_0x50e564[_0x4e106e(0x32e)]))['pipe'](_0x4da12d(this[_0x4e106e(0x20a)]))[_0x4e106e(0x2a0)](_0x3673dd=>{const _0x28c364=_0x4e106e,_0x23d809=_0x3673dd[_0x28c364(0x15f)](),_0x3fd25a=this['_entities'][_0x28c364(0x1f8)](_0x23d809);_0x3fd25a&&(_0x3fd25a['dispose'](),this[_0x28c364(0x175)][_0x28c364(0x2d7)](_0x23d809));});}async[_0x1cd205(0x19e)](_0x59e21b){const _0x35fb16=_0x1cd205,_0x49a6f2=await this[_0x35fb16(0x322)][_0x35fb16(0x2f4)](_0x59e21b),_0x37380b=this[_0x35fb16(0x25e)][_0x35fb16(0x1a3)](Be,_0x59e21b,_0x49a6f2);return _0x37380b[_0x35fb16(0x15b)](),_0x37380b;}async[_0x1cd205(0x24e)](_0x4e35b3){const _0x2c6e8d=_0x1cd205,_0x597f22=await this['_collabSessionService'][_0x2c6e8d(0x2f4)](_0x4e35b3),_0x159bf1=this[_0x2c6e8d(0x25e)][_0x2c6e8d(0x1a3)](xe,_0x4e35b3,_0x597f22);return _0x159bf1[_0x2c6e8d(0x15b)](),_0x159bf1;}};H=Wi([Ce(0x0,_0x439541),Ce(0x1,_0x12d739(_0x238493)),Ce(0x2,_0x12d739(_0x1e9e11))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x568224,_0x25b50c){const _0x5b4d1f=_0x1cd205;let {radius:_0x4a7909,width:_0x5704bf,height:_0xab806f}=_0x25b50c;_0x4a7909=_0x4a7909!=null?_0x4a7909:0x0,_0x5704bf=_0x5704bf!=null?_0x5704bf:0x1e,_0xab806f=_0xab806f!=null?_0xab806f:0x1e;let _0x5c221c=0x0,_0x2d318e=0x0,_0x1efb1c=0x0;_0x5c221c=_0x2d318e=_0x1efb1c=Math[_0x5b4d1f(0x282)](_0x4a7909,_0x5704bf/0x2,_0xab806f/0x2),_0x568224[_0x5b4d1f(0x21c)](),_0x568224[_0x5b4d1f(0x1eb)](_0x5c221c,0x0),_0x568224[_0x5b4d1f(0x2e0)](_0x5704bf-_0x2d318e,0x0),_0x568224[_0x5b4d1f(0x2c4)](_0x5704bf-_0x2d318e,_0x2d318e,_0x2d318e,Math['PI']*0x3/0x2,0x0,!0x1),_0x568224['lineTo'](_0x5704bf,_0xab806f-_0x1efb1c),_0x568224[_0x5b4d1f(0x2c4)](_0x5704bf-_0x1efb1c,_0xab806f-_0x1efb1c,_0x1efb1c,0x0,Math['PI']/0x2,!0x1),_0x568224[_0x5b4d1f(0x2e0)](0x0,_0xab806f),_0x568224['lineTo'](0x0,_0x5c221c),_0x568224['arc'](_0x5c221c,_0x5c221c,_0x5c221c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x568224[_0x5b4d1f(0x105)](),_0x25b50c[_0x5b4d1f(0x16e)]&&(_0x568224['save'](),_0x568224['fillStyle']=_0x25b50c['fill'],_0x25b50c['fillRule']===_0x5b4d1f(0x31d)?_0x568224['fill'](_0x5b4d1f(0x31d)):_0x568224['fill'](),_0x568224[_0x5b4d1f(0x2d4)]());}function _0x49aa(_0x37a4ed,_0x6b0558){_0x37a4ed=_0x37a4ed-0xef;const _0x6adc9d=_0x6adc();let _0x49aa2a=_0x6adc9d[_0x37a4ed];return _0x49aa2a;}class ve extends _0x3223bb{constructor(_0x513c7c,_0x5d015d){const _0xf6a44b=_0x1cd205;super(_0x513c7c,_0x5d015d),_(this,_0xf6a44b(0x1cd)),_(this,'text'),(this[_0xf6a44b(0x1cd)]=_0x5d015d==null?void 0x0:_0x5d015d['color'],this[_0xf6a44b(0x263)]=_0x5d015d==null?void 0x0:_0x5d015d[_0xf6a44b(0x263)]);}static[_0x1cd205(0x2be)](_0x421abd,_0x5df173){const _0x469dfa=_0x1cd205,{text:_0x320150,color:_0x3d1d82}=_0x5df173;_0x421abd[_0x469dfa(0x2f6)](),_0x421abd[_0x469dfa(0x315)]=_0x469dfa(0x155);const _0x129043=_0x421abd['measureText'](_0x320150)[_0x469dfa(0x250)],_0x4f59ce=Math[_0x469dfa(0x282)](_0x129043+0x2*Re,at);ji(_0x421abd,{'height':Q,'radius':0x4,'width':_0x4f59ce,'fill':_0x3d1d82}),_0x421abd[_0x469dfa(0x2f5)]=_0x469dfa(0x247);const _0x51bd08=Re,_0x56fb69=Q-Vi,_0x3ad9d3=at-0x2*Re;if(_0x129043>_0x3ad9d3){let _0x591015='',_0x6c5222=0x0;for(const _0x2256f7 of _0x320150){const _0x3d6a2a=_0x421abd['measureText'](_0x2256f7)[_0x469dfa(0x250)];if(_0x6c5222+_0x3d6a2a<=_0x3ad9d3-_0x421abd[_0x469dfa(0x265)]('...')[_0x469dfa(0x250)])_0x591015+=_0x2256f7,_0x6c5222+=_0x3d6a2a;else{_0x591015+=_0x469dfa(0x27f);break;}}_0x421abd['fillText'](_0x591015,_0x51bd08,_0x56fb69);}else _0x421abd[_0x469dfa(0x166)](_0x320150,_0x51bd08,_0x56fb69);_0x421abd[_0x469dfa(0x2d4)]();}['_draw'](_0x2428f7){const _0x1a4c8c=_0x1cd205;ve[_0x1a4c8c(0x2be)](_0x2428f7,this);}}const De='collab-text-anchor-',Xi=_0x1cd205(0x29c),Gi=_0x1cd205(0x267),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x1cd205(0x2ac);class ct{constructor(_0x298787,_0x187f54,_0x1e1df3,_0x22d057){const _0x3f5f0f=_0x1cd205;_(this,_0x3f5f0f(0x11b),[]),_(this,'_anchor',null),_(this,_0x3f5f0f(0x1c8),null),_(this,_0x3f5f0f(0x207),null),_(this,_0x3f5f0f(0x334),null),_(this,_0x3f5f0f(0x305),null),(this[_0x3f5f0f(0x235)]=_0x298787,this['_scene']=_0x187f54,this[_0x3f5f0f(0x240)]=_0x1e1df3,this['_document']=_0x22d057,this[_0x3f5f0f(0x2ba)]());}set[_0x1cd205(0x1b6)](_0x2a7718){const _0x275741=_0x1cd205;_0x2a7718?(this[_0x275741(0x207)]&&this[_0x275741(0x207)][_0x275741(0x216)](),this['_textBubble']&&this[_0x275741(0x1c8)][_0x275741(0x31f)]()):(this[_0x275741(0x207)]&&this[_0x275741(0x207)][_0x275741(0x31f)](),this['_textBubble']&&this['_textBubble'][_0x275741(0x216)]());}[_0x1cd205(0x2b5)](){const _0x40db57=_0x1cd205;for(const _0x463064 of this[_0x40db57(0x11b)])_0x463064['dispose']();this[_0x40db57(0x1c8)]&&this[_0x40db57(0x1c8)][_0x40db57(0x2b5)](),this[_0x40db57(0x207)]&&this[_0x40db57(0x207)][_0x40db57(0x2b5)](),this['_anchor']&&this['_anchor'][_0x40db57(0x2b5)](),this['_eventUnsubscribe']&&this[_0x40db57(0x305)]();}[_0x1cd205(0x2ba)](){const _0x5e4e38=_0x1cd205;var _0x2d0966;const {_docSkeleton:_0x102aab,_document:_0x4b8e18}=this,{color:_0x4c0267,name:_0x15df8e,ranges:_0x1473da}=this[_0x5e4e38(0x235)],_0x5f0b4c=_0x4b8e18[_0x5e4e38(0x10a)](),{docsLeft:_0x27efb8,docsTop:_0x4e6610}=_0x5f0b4c,_0x322d46=new _0x38f36a(_0x5f0b4c,_0x102aab);for(const {startOffset:_0x1ebd8d,endOffset:_0x1bc52a,rangeType:_0xcb5755,segmentId:_0x301f06,segmentPage:_0x58e0ae,collapsed:_0x2c1907,isActive:_0x3f45fb}of _0x1473da){const _0x38da44=_0x102aab['findNodePositionByCharIndex'](_0x1ebd8d,!0x0,_0x301f06,_0x58e0ae);let _0x348e86=_0x102aab[_0x5e4e38(0x21a)](_0x1bc52a,!0x0,_0x301f06,_0x58e0ae);if(_0x348e86==null&&(_0x348e86=_0x102aab[_0x5e4e38(0x21a)](_0x1bc52a-0x1,!0x1,_0x301f06,_0x58e0ae)),_0x3f45fb){const {contentBoxPointGroup:_0x180d4f}=_0x322d46[_0x5e4e38(0x106)](_0x348e86,_0x348e86);if(_0x180d4f[_0x5e4e38(0x13e)]===0x0)continue;this[_0x5e4e38(0x269)](_0x4c0267,_0x180d4f,_0x27efb8,_0x4e6610,_0x15df8e),this[_0x5e4e38(0x305)]=this['_handleHover']();}if(_0x38da44&&_0x348e86){if(_0xcb5755===_0x5a5f34[_0x5e4e38(0x2f9)]){const _0x148b4=new _0x165d7f(_0x5f0b4c,_0x102aab),{pointGroup:_0x5a6518}=(_0x2d0966=_0x148b4[_0x5e4e38(0x106)](_0x38da44,_0x348e86))!=null?_0x2d0966:{};if(_0x5a6518==null||_0x5a6518[_0x5e4e38(0x13e)]===0x0)continue;this[_0x5e4e38(0x2ff)](_0x4c0267,_0x5a6518,_0x27efb8,_0x4e6610);}else{if(!_0x2c1907){const {borderBoxPointGroup:_0x581614}=_0x322d46['getRangePointData'](_0x38da44,_0x348e86);if(_0x581614[_0x5e4e38(0x13e)]===0x0)continue;this['_drawTextRange'](_0x4c0267,_0x581614,_0x27efb8,_0x4e6610);}}}}}['_drawAnchor'](_0xa46001,_0x2df6bb,_0x35d0ae,_0x1229e6,_0x10b2e6){const _0x1fa219=_0x1cd205,_0x225333=this[_0x1fa219(0x199)](_0x2df6bb),{left:_0x2167f6,top:_0x53b412,height:_0x835669}=_0x225333,_0x60572f=this[_0x1fa219(0x1d9)](),_0x41a429=zi/_0x60572f,_0x4d521a=new _0x54146d(De+_0xfc2a1c(z),{'left':_0x2167f6+_0x35d0ae-_0x41a429,'top':_0x53b412+_0x1229e6,'height':_0x835669,'width':Ki,'fill':_0xa46001||_0x4ba404(_0x51a996[_0x1fa219(0x1d3)],0x0),'strokeWidth':_0x41a429,'stroke':Ji,'evented':!0x0});this[_0x1fa219(0x112)]=_0x4d521a,this['_scene'][_0x1fa219(0x103)](_0x4d521a,_0x1e0f56);const _0x10cd69=new _0x54146d(De+_0xfc2a1c(z),{'left':_0x2167f6+_0x35d0ae-_0x41a429,'top':_0x53b412+_0x1229e6-Ne/0x2,'height':Ne,'width':Ne,'fill':_0xa46001||_0x4ba404(_0x51a996['black'],0x0),'strokeWidth':0x0,'stroke':_0xa46001||_0x4ba404(_0x51a996[_0x1fa219(0x1d3)],0x0),'evented':!0x1});this['_anchorDot']=_0x10cd69,this[_0x1fa219(0x2ce)][_0x1fa219(0x103)](_0x10cd69,_0x1e0f56);const _0x113d2f=new ve(De+_0xfc2a1c(z),{'left':_0x2167f6+_0x35d0ae-_0x41a429,'top':_0x53b412+_0x1229e6-Q,'text':_0x10b2e6,'color':_0xa46001});this[_0x1fa219(0x1c8)]=_0x113d2f,this[_0x1fa219(0x2ce)][_0x1fa219(0x103)](_0x113d2f,_0x1e0f56),this['_hover']=!0x1;}[_0x1cd205(0xf9)](){const _0x308d0c=_0x1cd205,_0x11e31b=this[_0x308d0c(0x112)][_0x308d0c(0x324)][_0x308d0c(0x243)](()=>{this['_hover']=!0x0;}),_0x118355=this[_0x308d0c(0x112)][_0x308d0c(0x2c8)]['subscribeEvent'](()=>{const _0x5774b4=_0x308d0c;this[_0x5774b4(0x334)]&&clearTimeout(this[_0x5774b4(0x334)]),this[_0x5774b4(0x334)]=setTimeout(()=>{const _0x841d4f=_0x5774b4;this[_0x841d4f(0x1b6)]=!0x1;},0x7d0);});return()=>{_0x11e31b['unsubscribe'](),_0x118355['unsubscribe']();};}[_0x1cd205(0x1bc)](_0x48e827,_0x42406b,_0x38f409,_0x1147d0){const _0x53de69=_0x1cd205,_0x309eb0=new _0x459d8c(_0x48e827)[_0x53de69(0x136)](0.2)[_0x53de69(0x1a5)](),_0x140fc6=new _0x4fb8aa(Xi+_0xfc2a1c(z),{'pointsGroup':_0x42406b,'fill':_0x309eb0||_0x4ba404(_0x51a996['black'],0.2),'left':_0x38f409,'top':_0x1147d0,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x53de69(0xf4)](_0x140fc6),this[_0x53de69(0x2ce)]['addObject'](_0x140fc6,_0x1e0f56);}[_0x1cd205(0x2ff)](_0x10b591,_0x5a7edd,_0x399c4e,_0x571989){const _0x57afdf=_0x1cd205,_0x48815c=new _0x459d8c(_0x10b591)['setAlpha'](0.2)['toRgbString'](),_0x4d63b0=new _0x4fb8aa(Gi+_0xfc2a1c(z),{'pointsGroup':_0x5a7edd,'fill':_0x48815c||_0x4ba404(_0x51a996[_0x57afdf(0x1d3)],0.2),'left':_0x399c4e,'top':_0x571989,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x57afdf(0x11b)][_0x57afdf(0xf4)](_0x4d63b0),this[_0x57afdf(0x2ce)][_0x57afdf(0x103)](_0x4d63b0,_0x1e0f56);}['_getAnchorBounding'](_0x127c7d){const _0x2b7ac5=_0x127c7d[0x0],_0x24ef55=_0x2b7ac5[0x0],_0x4ff369=_0x2b7ac5[0x2],{x:_0x475a63,y:_0x15b69a}=_0x24ef55,{x:_0x5a5c57,y:_0xca7eac}=_0x4ff369;return{'left':_0x475a63,'top':_0x15b69a,'width':_0x5a5c57-_0x475a63,'height':_0xca7eac-_0x15b69a};}['_getScale'](){const _0x25b57e=_0x1cd205,{scaleX:_0x55fa77,scaleY:_0x2be999}=this[_0x25b57e(0x2ce)][_0x25b57e(0xf5)]();return Math['max'](_0x55fa77,_0x2be999);}}var Zi=Object[_0x1cd205(0x332)],Qi=(_0x417832,_0x42eb47,_0x556eae,_0x333868)=>{const _0xd1dd88=_0x1cd205;for(var _0x280b0a=_0x333868>0x1?void 0x0:_0x333868?Zi(_0x42eb47,_0x556eae):_0x42eb47,_0xcc060a=_0x417832[_0xd1dd88(0x13e)]-0x1,_0x490e3c;_0xcc060a>=0x0;_0xcc060a--)(_0x490e3c=_0x417832[_0xcc060a])&&(_0x280b0a=_0x490e3c(_0x280b0a)||_0x280b0a);return _0x280b0a;},ie=(_0xd561b9,_0x2cc566)=>(_0x2d28e3,_0x2e7a8c)=>_0x2cc566(_0x2d28e3,_0x2e7a8c,_0xd561b9);let Fe=class extends _0x30a36{constructor(_0x177c3d,_0x2f4997,_0x3658b3,_0x376e5c,_0x2d81f3){const _0x5e8449=_0x1cd205;super(),_(this,_0x5e8449(0x22e),[]),_(this,_0x5e8449(0x2eb),[]),(this[_0x5e8449(0x1db)]=_0x177c3d,this['_docSkeletonManagerService']=_0x2f4997,this[_0x5e8449(0x140)]=_0x3658b3,this[_0x5e8449(0x122)]=_0x376e5c,this['_themeService']=_0x2d81f3,this['_init']());}[_0x1cd205(0x32f)](){const _0x23cd41=_0x1cd205,_0x323d58=this[_0x23cd41(0x1db)]['unitId'],_0x1f1593=this['_docSkeletonManagerService'];this[_0x23cd41(0x270)](_0x5f003e([this[_0x23cd41(0x140)][_0x23cd41(0x2c7)](_0x323d58),this[_0x23cd41(0x31c)][_0x23cd41(0x2aa)]])[_0x23cd41(0x233)](_0x327086(([_0x5caf8c,_0x445e9b])=>({'skeleton':_0x1f1593[_0x23cd41(0x292)](),'cursors':[..._0x5caf8c[_0x23cd41(0x242)]()][_0x23cd41(0x1e9)](_0x455da1=>({..._0x455da1,'color':this[_0x23cd41(0x31c)][_0x23cd41(0x1f4)](_0x455da1[_0x23cd41(0x1cd)])}))})))['subscribe'](_0x527547=>{if(this['_removeCollabCursors'](),_0x527547){const {skeleton:_0x97c337,cursors:_0x1466af}=_0x527547;this['_updateCollabCursors'](_0x97c337,_0x1466af);}})),this[_0x23cd41(0x221)](),this[_0x23cd41(0x2db)]();}[_0x1cd205(0x1b4)](_0x8dfba2,_0x178839){const _0x4e3017=_0x1cd205,{scene:_0x2ddcef,mainComponent:_0x221499}=this['_context'],_0x492b2e=_0x178839[_0x4e3017(0x2ed)](_0x2bc7ad=>new ct(_0x2bc7ad,_0x2ddcef,_0x8dfba2,_0x221499));this['_cursorShapes']=_0x492b2e,this[_0x4e3017(0x2eb)]=_0x178839;}[_0x1cd205(0x146)](){const _0x32d727=_0x1cd205;this[_0x32d727(0x330)]();const {scene:_0x522eb1,mainComponent:_0x5a5624}=this['_context'],_0x5889a3=this[_0x32d727(0x165)][_0x32d727(0x292)](),_0x2b7b9f=this[_0x32d727(0x2eb)]['map'](_0x24350c=>new ct(_0x24350c,_0x522eb1,_0x5889a3,_0x5a5624));this[_0x32d727(0x22e)]=_0x2b7b9f;}[_0x1cd205(0x330)](){const _0x5ac55c=_0x1cd205;this[_0x5ac55c(0x22e)]['forEach'](_0x17646=>_0x17646[_0x5ac55c(0x2b5)]()),this[_0x5ac55c(0x22e)]=[];}[_0x1cd205(0x2db)](){const _0x1c77a3=_0x1cd205,_0x4f946b=[_0x154721['id']];this[_0x1c77a3(0x270)](this[_0x1c77a3(0x122)][_0x1c77a3(0x14c)](_0x447e81=>{const _0x1733f4=_0x1c77a3;_0x4f946b['includes'](_0x447e81['id'])&&_0x447e81[_0x1733f4(0x1be)][_0x1733f4(0x1b1)]===this[_0x1733f4(0x1db)]['unitId']&&this[_0x1733f4(0x146)]();}));}[_0x1cd205(0x221)](){const _0x4b475f=_0x1cd205;this[_0x4b475f(0x270)](_0x30a3c0(this[_0x4b475f(0x1db)][_0x4b475f(0x1d5)]['onTransformChange$'])[_0x4b475f(0x233)](_0x14f8e7(_0x5af2cd=>_0x5af2cd[_0x4b475f(0x113)]===_0x90f1c7['resize']),_0x4aac44(0x10))[_0x4b475f(0x2a0)](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0x12d739(_0x5e648b)),ie(0x2,_0x12d739(H)),ie(0x3,_0x15dbe0),ie(0x4,_0x12d739(_0x14b59e))],Fe);const qi=0x1,en=1.5;class tn extends _0x3223bb{constructor(_0x3299de,_0x27979b){const _0x2fe756=_0x1cd205;super(_0x3299de,_0x27979b),_(this,_0x2fe756(0x158)),_(this,_0x2fe756(0x132),!0x1),_(this,_0x2fe756(0x194)),_(this,'_name',''),_(this,_0x2fe756(0x2b2),_0x2fe756(0x178)),_(this,_0x2fe756(0x27a)),(_0x27979b&&this[_0x2fe756(0x1cb)](_0x27979b),this[_0x2fe756(0x324)]['subscribeEvent'](()=>this[_0x2fe756(0x1cb)]({'hovered':!0x0})),this[_0x2fe756(0x2c8)]['subscribeEvent'](()=>this[_0x2fe756(0x1cb)]({'hovered':!0x1})));}['setShapeProps'](_0x5d5033){const _0x185da2=_0x1cd205;var _0x2d967c,_0x1e16a1,_0xff3b46,_0x5450ab,_0x46cb14,_0xa33ff3;this['_color']=(_0x2d967c=_0x5d5033[_0x185da2(0x1cd)])!=null?_0x2d967c:this[_0x185da2(0x158)],this[_0x185da2(0x132)]=(_0x1e16a1=_0x5d5033[_0x185da2(0x183)])!=null?_0x1e16a1:this['_hovered'],this[_0x185da2(0x194)]=(_0xff3b46=_0x5d5033[_0x185da2(0x12a)])!=null?_0xff3b46:this[_0x185da2(0x194)],this[_0x185da2(0x26b)]=(_0x5450ab=_0x5d5033[_0x185da2(0x1a6)])!=null?_0x5450ab:this[_0x185da2(0x26b)],this[_0x185da2(0x2b2)]=(_0x46cb14=_0x5d5033[_0x185da2(0x1ff)])!=null?_0x46cb14:this[_0x185da2(0x2b2)],this[_0x185da2(0x27a)]=(_0xa33ff3=_0x5d5033['backgroundColor'])!=null?_0xa33ff3:this[_0x185da2(0x27a)],this[_0x185da2(0x1e2)]({'width':_0x5d5033[_0x185da2(0x250)],'height':_0x5d5033[_0x185da2(0xff)]});}[_0x1cd205(0x213)](_0x41b63f){const _0x198182=_0x1cd205,{row:_0x2c029b,column:_0x38c2f7}=_0x41b63f;if(_0x2c029b>=this[_0x198182(0x194)]['startRow']&&_0x2c029b<=this['_range'][_0x198182(0x12b)]&&_0x38c2f7>=this[_0x198182(0x194)]['startColumn']&&_0x38c2f7<=this[_0x198182(0x194)][_0x198182(0x218)]){this[_0x198182(0x1cb)]({'hovered':!0x0});return;}this[_0x198182(0x1cb)]({'hovered':!0x1});}[_0x1cd205(0xf6)](_0x3ddfb6){return!0x1;}['_draw'](_0x234991){const _0x108253=_0x1cd205;_0x54146d[_0x108253(0x2be)](_0x234991,{'width':this[_0x108253(0x250)],'height':this['height'],'strokeWidth':en,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x108253(0x27a)]}),this[_0x108253(0x132)]&&(_0x234991[_0x108253(0x2f6)](),_0x234991[_0x108253(0x329)](0x1,0x0,0x0,0x1,this[_0x108253(0x250)],this[_0x108253(0x2b2)]==='bottom'?0x0:-Q),ve['drawWith'](_0x234991,{'text':this[_0x108253(0x26b)],'color':this[_0x108253(0x158)]}),_0x234991[_0x108253(0x2d4)]());}}var sn=Object[_0x1cd205(0x332)],nn=(_0x3a53aa,_0x41beff,_0xdab208,_0x15b5f9)=>{const _0x1317d8=_0x1cd205;for(var _0x3046a6=_0x15b5f9>0x1?void 0x0:_0x15b5f9?sn(_0x41beff,_0xdab208):_0x41beff,_0x22b423=_0x3a53aa[_0x1317d8(0x13e)]-0x1,_0x30051b;_0x22b423>=0x0;_0x22b423--)(_0x30051b=_0x3a53aa[_0x22b423])&&(_0x3046a6=_0x30051b(_0x3046a6)||_0x3046a6);return _0x3046a6;},be=(_0x46546c,_0x2f23c3)=>(_0x3fc9de,_0x25af91)=>_0x2f23c3(_0x3fc9de,_0x25af91,_0x46546c);const rn=0x1389;let ke=class extends _0x30a36{constructor(_0x1c98f0,_0x32a602,_0x15e031,_0x2030fc){const _0x9983f7=_0x1cd205;super(),_(this,'_cursors',new Set()),_(this,'_lastPointer',null),(this[_0x9983f7(0x1db)]=_0x1c98f0,this[_0x9983f7(0x2d2)]=_0x32a602,this['_collabCursorController']=_0x15e031,this[_0x9983f7(0x31c)]=_0x2030fc,this[_0x9983f7(0x32f)]());}[_0x1cd205(0x32f)](){const _0x53ed01=_0x1cd205;this[_0x53ed01(0x2d2)]['currentSkeleton$']['pipe'](_0x462dbd(this[_0x53ed01(0x20a)]),_0x56cdc0(_0x297b09=>{const _0xc23cff=_0x53ed01;if(_0x297b09){const _0x18179b=_0x297b09[_0xc23cff(0x1bb)];return _0x5f003e(this[_0xc23cff(0x140)][_0xc23cff(0x2c7)](this[_0xc23cff(0x1db)]['unitId']),this['_themeService'][_0xc23cff(0x2aa)])[_0xc23cff(0x233)](_0x327086(([_0x56d981,_0x495e3d])=>{const _0x5659b2=_0xc23cff,_0x4b6b4b=new Map();return _0x56d981[_0x5659b2(0x19f)]((_0xf770cd,_0x23ed01)=>{const _0x329468=_0x5659b2;if(_0xf770cd[_0x329468(0x2b1)]===_0x18179b){const _0x532d57={..._0xf770cd};_0x532d57[_0x329468(0x1cd)]=this[_0x329468(0x31c)][_0x329468(0x1f4)](_0xf770cd['color']),_0x4b6b4b['set'](_0x23ed01,_0x532d57);}}),{'skeleton':_0x297b09,'cursors':_0x4b6b4b};}));}return _0x192cf3({'skeleton':null,'cursors':new Map()});}))[_0x53ed01(0x2a0)](({skeleton:_0x4f25ac,cursors:_0x1e0df4})=>{const _0x5a14ff=_0x53ed01;this[_0x5a14ff(0x330)](),_0x4f25ac&&this['_updateCollabCursors'](_0x4f25ac,_0x1e0df4);}),this[_0x53ed01(0x2d2)][_0x53ed01(0x2ec)][_0x53ed01(0x2a0)](_0x288a50=>{const _0x3bca9c=_0x53ed01;if(_0x288a50==null)return;const {skeleton:_0x5c8f12}=_0x288a50,{scene:_0x55c87d}=this[_0x3bca9c(0x1db)];_0x55c87d['onPointerMove$'][_0x3bca9c(0x243)](_0x4a79cd(_0x3a8efd=>{const _0x482c4b=_0x3bca9c;var _0x36688e,_0x25901a;const {offsetX:_0xf1fffc,offsetY:_0x3bc235}=_0x3a8efd,{x:_0x154783,y:_0x357eb9}=_0x55c87d['getRelativeToViewportCoord'](_0x3a3a0d[_0x482c4b(0x129)]([_0xf1fffc,_0x3bc235])),{scaleX:_0xff64e1,scaleY:_0xb32c2f}=_0x55c87d[_0x482c4b(0xf5)](),_0x3f67ef=_0x55c87d[_0x482c4b(0x1a8)](_0x2450a0[_0x482c4b(0x2ef)]),_0x3c4894=_0x55c87d[_0x482c4b(0x283)](_0x3a3a0d[_0x482c4b(0x129)]([_0x154783,_0x357eb9]),_0x3f67ef),_0x282220=_0x5c8f12['getCellPositionByOffset'](_0xf1fffc,_0x3bc235,_0xff64e1,_0xb32c2f,_0x3c4894);((_0x36688e=this['_lastPointer'])==null?void 0x0:_0x36688e[_0x482c4b(0x1de)])===_0x282220[_0x482c4b(0x1de)]&&((_0x25901a=this[_0x482c4b(0x150)])==null?void 0x0:_0x25901a['row'])===_0x282220[_0x482c4b(0x293)]||this[_0x482c4b(0x2eb)]['forEach'](_0xa6083e=>{const _0x2d7a3f=_0x482c4b;_0xa6083e[_0x2d7a3f(0x213)](_0x282220);});},0x64));});}[_0x1cd205(0x1b4)](_0x1e3694,_0x3b7157){const _0x284aa4=_0x1cd205;var _0x4e5b80;const _0xa4cbd9=(_0x4e5b80=this[_0x284aa4(0x2d2)]['getCurrent']())==null?void 0x0:_0x4e5b80['skeleton'];if(!_0xa4cbd9)return;const _0x3c0463=this[_0x284aa4(0x306)]();if(!_0x3c0463)return;this['_cursors'][_0x284aa4(0x19f)](_0x4f6539=>{const _0x13d152=_0x284aa4;_0x4f6539[_0x13d152(0x195)]();});const {scene:_0x54cb6b}=_0x3c0463,_0x257009=on(Array[_0x284aa4(0x18c)](_0x3b7157[_0x284aa4(0x242)]()))[_0x284aa4(0x2ed)](_0x102ef1=>{const _0x488908=_0x284aa4,{color:_0x23e711,range:_0x802ed1,name:_0x3e2e5e,selection:_0x120bcd,sheetID:_0xbd5d6b}=_0x102ef1,{startColumn:_0x53b080,startRow:_0x27635c,endColumn:_0x177546,endRow:_0x21ae8d}=_0x802ed1,_0x342955=_0xdaa2e0(_0x27635c,_0x53b080,_0x54cb6b,_0xa4cbd9),_0xda772b=_0xdaa2e0(_0x21ae8d,_0x177546,_0x54cb6b,_0xa4cbd9),{columnHeaderHeightAndMarginTop:_0x113c87}=_0xa4cbd9,{startX:_0x47ac77,startY:_0x492ff1}=_0x342955,{endX:_0x30a687,endY:_0x3c592b}=_0xda772b,_0x3d062b=_0x30a687-_0x47ac77,_0x4a59f6=_0x3c592b-_0x492ff1,_0x40f319={'labelPosition':_0x492ff1-_0x113c87>=Q?_0x488908(0x178):_0x488908(0x2de),'sheetID':_0xbd5d6b,'range':_0x802ed1,'color':_0x23e711,'name':_0x3e2e5e,'selection':_0x120bcd,'left':_0x47ac77,'top':_0x492ff1,'width':_0x3d062b,'height':_0x4a59f6,'evented':!0x1,'zIndex':rn};return new tn(_0x3e2e5e,_0x40f319);});_0x54cb6b[_0x284aa4(0x223)](_0x257009,qi),this[_0x284aa4(0x2eb)]=new Set(_0x257009);}[_0x1cd205(0x330)](){const _0x2bdd0a=_0x1cd205;var _0x1710dc;(_0x1710dc=this[_0x2bdd0a(0x2eb)])==null||_0x1710dc[_0x2bdd0a(0x19f)](_0x2ab332=>_0x2ab332[_0x2bdd0a(0x2b5)]());}['_getSheetObject'](){const _0xe798bd=_0x1cd205;return _0x5340f3(this['_context'][_0xe798bd(0x18a)],this[_0xe798bd(0x1db)]);}};ke=nn([be(0x1,_0x12d739(_0x20dc38)),be(0x2,_0x12d739(H)),be(0x3,_0x12d739(_0x14b59e))],ke);function on(_0x4f55e4){const _0x3fa676=_0x1cd205,_0x223771=new Map();return _0x4f55e4['forEach'](_0x2c93c1=>{const _0x848e3c=_0x49aa;if(_0x223771[_0x848e3c(0x28c)](_0x2c93c1['selection'])){const _0x164515=_0x223771[_0x848e3c(0x1f8)](_0x2c93c1[_0x848e3c(0x249)]);_0x164515[_0x848e3c(0x1a6)]+=',\x20'+_0x2c93c1[_0x848e3c(0x1a6)];}else _0x223771['set'](_0x2c93c1[_0x848e3c(0x249)],_0x2c93c1);}),Array[_0x3fa676(0x18c)](_0x223771[_0x3fa676(0x242)]());}var an=Object[_0x1cd205(0x332)],cn=(_0x4a4dfa,_0x35f714,_0x5bf5ae,_0x5468fd)=>{for(var _0x25267b=_0x5468fd>0x1?void 0x0:_0x5468fd?an(_0x35f714,_0x5bf5ae):_0x35f714,_0x5c66ee=_0x4a4dfa['length']-0x1,_0x3a577c;_0x5c66ee>=0x0;_0x5c66ee--)(_0x3a577c=_0x4a4dfa[_0x5c66ee])&&(_0x25267b=_0x3a577c(_0x25267b)||_0x25267b);return _0x25267b;},F=(_0x15b554,_0x5c651e)=>(_0x4a09a2,_0x1bac54)=>_0x5c651e(_0x4a09a2,_0x1bac54,_0x15b554);let _e=class extends _0x5704a6{constructor(_0xd3b531,_0x2b9acf,_0x1edfda,_0xef638f,_0xf7c39a,_0x284bda){const _0x2017f9=_0x1cd205;super(),this[_0x2017f9(0x104)]=_0xd3b531,this[_0x2017f9(0x328)]=_0x2b9acf,this[_0x2017f9(0x1dd)]=_0x1edfda,this[_0x2017f9(0x172)]=_0xef638f,this['_notificationService']=_0xf7c39a,this[_0x2017f9(0x298)]=_0x284bda,this[_0x2017f9(0x179)](),this[_0x2017f9(0x23f)]();}[_0x1cd205(0x179)](){this['disposeWithMe'](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x23e6ea=_0x49aa;if(this[_0x23e6ea(0x328)][_0x23e6ea(0x149)]['size'])return this[_0x23e6ea(0x298)]['t'](_0x23e6ea(0x2cb));}));}[_0x1cd205(0x23f)](){const _0x237df1=_0x1cd205;this['disposeWithMe'](this[_0x237df1(0x1dd)]['event$'][_0x237df1(0x2a0)](_0x38a7e2=>{const _0x53fe58=_0x237df1;_0x38a7e2['id']===_0x4554ac['OTHER_CLIENT_EDITING']&&this[_0x53fe58(0x172)][_0x53fe58(0x31f)]({'type':_0x1a2ec8[_0x53fe58(0x255)],'content':this[_0x53fe58(0x298)]['t'](_0x53fe58(0x2cf))}),_0x38a7e2['id']===_0x4554ac['CLOSE_ROOM']&&this[_0x53fe58(0x172)][_0x53fe58(0x31f)]({'type':_0x1a2ec8[_0x53fe58(0x255)],'content':this[_0x53fe58(0x298)]['t'](_0x53fe58(0x2ea))}),_0x38a7e2['id']===_0x4554ac['PERMISSION_DENIED']&&this[_0x53fe58(0x25f)][_0x53fe58(0x31f)]({'title':this[_0x53fe58(0x298)]['t'](_0x53fe58(0x184)),'content':this[_0x53fe58(0x298)]['t'](_0x53fe58(0x128)),'type':_0x53fe58(0x290),'duration':0x0}),_0x38a7e2['id']===_0x4554ac[_0x53fe58(0x1ec)]&&this[_0x53fe58(0x172)][_0x53fe58(0x31f)]({'type':_0x1a2ec8['Error'],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x38a7e2[_0x53fe58(0x145)]+')'}),_0x38a7e2['id']===_0x4554ac[_0x53fe58(0x10c)]&&this[_0x53fe58(0x172)][_0x53fe58(0x31f)]({'type':_0x1a2ec8['Warning'],'content':this[_0x53fe58(0x298)]['t'](_0x38a7e2[_0x53fe58(0x145)]||'')}),_0x38a7e2['id']===_0x4554ac[_0x53fe58(0x2ad)]&&this['_messageService'][_0x53fe58(0x31f)]({'type':_0x1a2ec8['Warning'],'content':this[_0x53fe58(0x298)]['t'](_0x53fe58(0x187))}),_0x38a7e2['id']===_0x4554ac['SOCKET_FAILED']&&this[_0x53fe58(0x172)][_0x53fe58(0x31f)]({'type':_0x1a2ec8[_0x53fe58(0x189)],'content':this[_0x53fe58(0x298)]['t'](_0x53fe58(0x156))}),_0x38a7e2['id']===_0x4554ac['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x53fe58(0x172)][_0x53fe58(0x31f)]({'type':_0x1a2ec8[_0x53fe58(0x189)],'content':this[_0x53fe58(0x298)]['t'](_0x53fe58(0x1b2))});}));}};_e=cn([F(0x0,_0x1a6dfd),F(0x1,_0x2215b3),F(0x2,_0x12d739(_0x2f77d9)),F(0x3,_0x5e82e0),F(0x4,_0x1a4864),F(0x5,_0x12d739(_0x288ce5))],_e);var _n=Object[_0x1cd205(0x332)],ln=(_0x547041,_0xad449a,_0x236de5,_0x5d9ef5)=>{for(var _0x3327b9=_0x5d9ef5>0x1?void 0x0:_0x5d9ef5?_n(_0xad449a,_0x236de5):_0xad449a,_0x509003=_0x547041['length']-0x1,_0x494fa4;_0x509003>=0x0;_0x509003--)(_0x494fa4=_0x547041[_0x509003])&&(_0x3327b9=_0x494fa4(_0x3327b9)||_0x3327b9);return _0x3327b9;},ne=(_0x5e6faa,_0x545d1f)=>(_0x14fbc8,_0x3f3694)=>_0x545d1f(_0x14fbc8,_0x3f3694,_0x5e6faa);let le=class extends _0x5704a6{constructor(_0x15b7dd,_0x274f9d,_0x3728fb,_0x5ebbb3){const _0x1e096d=_0x1cd205;super(),_(this,_0x1e096d(0x157)),(this[_0x1e096d(0x25e)]=_0x15b7dd,this['_httpService']=_0x274f9d,this[_0x1e096d(0x174)]=_0x3728fb,this['_collaborationSessionService']=_0x5ebbb3,this['_init']());}[_0x1cd205(0x32f)](){const _0x591305=_0x1cd205;this['_initWindowErrorListener'](),this['_initUnhandledRejectionListener'](),this[_0x591305(0x24f)](),this[_0x591305(0x276)]();}[_0x1cd205(0x276)](){const _0x3eb479=_0x1cd205;this[_0x3eb479(0x270)](this['_collaborationSessionService'][_0x3eb479(0x28e)]['subscribe'](_0x443285=>{this['_memberID']=_0x443285==null?void 0x0:_0x443285['memberID'];}));}[_0x1cd205(0x173)](){const _0x540c54=_0x1cd205,_0x48d7c7=_0x22990e=>{const _0x510283=_0x49aa;var _0x554f0f;this[_0x510283(0x2a7)]('error','[Window\x20Error]:\x20'+_0x22990e[_0x510283(0x14a)]+_0x510283(0x26d)+_0x22990e[_0x510283(0x205)]+':'+_0x22990e['lineno']+':'+_0x22990e[_0x510283(0x2b8)]+'\x0a'+(((_0x554f0f=_0x22990e['error'])==null?void 0x0:_0x554f0f['stack'])||''));};window[_0x540c54(0x30d)](_0x540c54(0x290),_0x48d7c7),this[_0x540c54(0x270)](()=>{const _0x53671e=_0x540c54;window[_0x53671e(0x1d1)](_0x53671e(0x290),_0x48d7c7);});}[_0x1cd205(0x316)](){const _0x3e78cc=_0x1cd205,_0x22e800=_0xa0874b=>{const _0xb671a3=_0x49aa;this[_0xb671a3(0x2a7)](_0xb671a3(0x290),_0xb671a3(0x2c6)+_0xa0874b['reason']);};window[_0x3e78cc(0x30d)](_0x3e78cc(0xfc),_0x22e800),this['disposeWithMe'](()=>{const _0x1e4ffe=_0x3e78cc;window[_0x1e4ffe(0x1d1)](_0x1e4ffe(0xfc),_0x22e800);});}[_0x1cd205(0x24f)](){const _0x303729=_0x1cd205,_0x2cca76=this[_0x303729(0x174)][_0x303729(0x290)]['bind'](this['_logService']);this[_0x303729(0x174)][_0x303729(0x290)]=(..._0x4dd546)=>{const _0x1583d4=_0x303729,_0x15874a=_0x4dd546[_0x1583d4(0x2ed)](_0xc9c00f=>_0xc9c00f instanceof Error?_0xc9c00f[_0x1583d4(0x14a)]+'\x0a'+_0xc9c00f[_0x1583d4(0x229)]:String(_0xc9c00f))[_0x1583d4(0x294)]('\x20');this[_0x1583d4(0x2a7)](_0x1583d4(0x290),_0x1583d4(0x181)+_0x15874a),_0x2cca76(..._0x4dd546);},this[_0x303729(0x270)](()=>{const _0x2e0127=_0x303729;this['_logService'][_0x2e0127(0x290)]=_0x2cca76;});}[_0x1cd205(0x2a7)](_0x334a9d,_0x2e26d5){const _0x44a641=_0x1cd205;try{const _0x3cab4c={'userId':this[_0x44a641(0x157)],'logLabel':_0x334a9d,'content':_0x2e26d5};this['_httpService'][_0x44a641(0x331)](_0x44a641(0x32c),{'body':_0x3cab4c})[_0x44a641(0x1b5)](()=>{});}catch{}}};le=ln([ne(0x0,_0x12d739(_0x238493)),ne(0x1,_0x12d739(_0x7b623c)),ne(0x2,_0x17e71c),ne(0x3,_0x12d739(_0x1e9e11))],le);const hn='collaboration-client-ui.config',_t={};var un=Object[_0x1cd205(0x332)],dn=(_0x5947e9,_0x24017d,_0x442721,_0x5e1b6b)=>{for(var _0x7ead5c=_0x5e1b6b>0x1?void 0x0:_0x5e1b6b?un(_0x24017d,_0x442721):_0x24017d,_0x296309=_0x5947e9['length']-0x1,_0x4bba5b;_0x296309>=0x0;_0x296309--)(_0x4bba5b=_0x5947e9[_0x296309])&&(_0x7ead5c=_0x4bba5b(_0x7ead5c)||_0x7ead5c);return _0x7ead5c;},lt=(_0x12ac94,_0x49c32f)=>(_0xf05963,_0x272522)=>_0x49c32f(_0xf05963,_0x272522,_0x12ac94);let he=class{constructor(_0x372d21,_0xeebfd2){const _0x1661d7=_0x1cd205;this[_0x1661d7(0x2c2)]=_0x372d21,this[_0x1661d7(0x20b)]=_0xeebfd2;}[_0x1cd205(0x211)](_0x377ad3){const _0x5f0c7b=_0x1cd205;this[_0x5f0c7b(0x2bf)](_0x377ad3),this[_0x5f0c7b(0x25a)](_0x377ad3);}[_0x1cd205(0x2bc)](_0x5c376b){const _0x4fdb92=_0x1cd205,{unitID:_0x5a9504}=_0x5c376b,_0x11750e=this[_0x4fdb92(0x20b)][_0x4fdb92(0x253)](_0x5a9504)['with'](_0x2d0e20),{redoCache:_0x435a51}=_0x11750e['getUndoRedoMutationParamsCache']();if(_0x435a51[_0x4fdb92(0x13e)]===0x0)return _0x5c376b;let _0x2413e7=_0x30adff[_0x4fdb92(0x138)](_0x5c376b[_0x4fdb92(0x1b0)][0x0]);for(let _0x18c8b2=0x0;_0x18c8b2<_0x435a51[_0x4fdb92(0x13e)];_0x18c8b2++){const _0x37bdfd={'id':_0x4fdb92(0x1ac),'params':{..._0x435a51[_0x18c8b2]}},_0x331e44=this[_0x4fdb92(0x2c2)][_0x4fdb92(0x10d)](_0x2413e7,_0x37bdfd,!0x1);if(_0x5da487(_0x331e44))throw _0x331e44[_0x4fdb92(0x290)];_0x2413e7=_0x331e44[_0x4fdb92(0x2f3)];}return{..._0x30adff[_0x4fdb92(0x138)](_0x5c376b),'mutations':[_0x2413e7]};}[_0x1cd205(0x2bf)](_0x113538){const _0x4a2709=_0x1cd205,{unitID:_0x141732}=_0x113538,_0x44f0de=this['_renderManagerService'][_0x4a2709(0x253)](_0x141732)[_0x4a2709(0x28a)](_0x2d0e20),{undoCache:_0x5b1125,redoCache:_0x309058}=_0x44f0de[_0x4a2709(0x32b)]();if(_0x5b1125[_0x4a2709(0x13e)]===0x0||_0x309058['length']===0x0)return;const _0x4e7eee=[],_0x40ee39=[];let _0x40c09f=_0x30adff[_0x4a2709(0x138)](_0x113538[_0x4a2709(0x1b0)][0x0]),_0x324aab=_0x30adff[_0x4a2709(0x138)](_0x113538['mutations'][0x0]);for(let _0x38348a=_0x5b1125[_0x4a2709(0x13e)]-0x1;_0x38348a>=0x0;_0x38348a--){const _0x53ce40={'id':'doc.mutation.rich-text-editing','params':{..._0x5b1125[_0x38348a]}},_0xc1b155={'id':_0x4a2709(0x1ac),'params':{..._0x309058[_0x38348a]}},_0x5cd7af=this[_0x4a2709(0x2c2)][_0x4a2709(0x10d)](_0x40c09f,_0x53ce40,!0x1),_0x279077=this[_0x4a2709(0x2c2)]['transformMutation'](_0x324aab,_0xc1b155,!0x1);if(_0x5da487(_0x5cd7af))throw _0x5cd7af[_0x4a2709(0x290)];if(_0x5da487(_0x279077))throw _0x279077['error'];_0x4e7eee[_0x4a2709(0x1e7)](_0x5cd7af[_0x4a2709(0x2df)][_0x4a2709(0x1be)]),_0x40ee39[_0x4a2709(0x1e7)](_0x279077[_0x4a2709(0x2df)]['params']),_0x40c09f=_0x5cd7af[_0x4a2709(0x2f3)],_0x324aab=_0x279077[_0x4a2709(0x2f3)];}_0x44f0de[_0x4a2709(0x126)]({'undoCache':_0x4e7eee,'redoCache':_0x40ee39});}[_0x1cd205(0x25a)](_0xe53466){const _0x457560=_0x1cd205,{unitID:_0x2f8f83}=_0xe53466,_0x147237=this['_renderManagerService'][_0x457560(0x253)](_0x2f8f83)[_0x457560(0x28a)](_0x2d0e20),_0x510150=_0x147237[_0x457560(0x279)]();if(_0x510150==null)return;const _0x584dd0=[{'id':_0x457560(0x1ac),'params':{'unitId':_0xe53466[_0x457560(0x1da)],'actions':null,'textRanges':[_0x510150]}}],_0x2eda1a=this[_0x457560(0x2c2)][_0x457560(0x224)](_0xe53466,_0x584dd0);if(!_0x11ff73(_0x2eda1a))throw _0x2eda1a['error'];const _0x2de4b3=_0x2eda1a[_0x457560(0x2df)][0x0]['params'][_0x457560(0x2fd)];Array[_0x457560(0x30a)](_0x2de4b3)&&_0x2de4b3[_0x457560(0x13e)]&&_0x147237['setActiveRange'](_0x2de4b3[0x0]);}};he=dn([lt(0x0,_0x271d90),lt(0x1,_0x45ee52)],he);var Sn=Object[_0x1cd205(0x332)],In=(_0x429f19,_0x473c3c,_0x235caf,_0x4a554d)=>{const _0x661acd=_0x1cd205;for(var _0x5dc11b=_0x4a554d>0x1?void 0x0:_0x4a554d?Sn(_0x473c3c,_0x235caf):_0x473c3c,_0x466a52=_0x429f19[_0x661acd(0x13e)]-0x1,_0x22f6f2;_0x466a52>=0x0;_0x466a52--)(_0x22f6f2=_0x429f19[_0x466a52])&&(_0x5dc11b=_0x22f6f2(_0x5dc11b)||_0x5dc11b);return _0x5dc11b;},Le=(_0x3aafb8,_0xda6f90)=>(_0x18560e,_0x5c9d17)=>_0xda6f90(_0x18560e,_0x5c9d17,_0x3aafb8);let ue=class{constructor(_0x42536c,_0x5c5120,_0x2ff15b){const _0x489a57=_0x1cd205;this[_0x489a57(0x25e)]=_0x42536c,this[_0x489a57(0x2c2)]=_0x5c5120,this['_docStateChangeManagerService']=_0x2ff15b;}[_0x1cd205(0x1e3)](_0x56fc9){const _0x19a10a=_0x1cd205;this[_0x19a10a(0x1f5)](_0x56fc9);}[_0x1cd205(0x2bc)](_0x4f2557){const _0x3d1ff0=_0x1cd205,{unitID:_0x216c4f}=_0x4f2557,{collaboration:_0x4edd4f}=this[_0x3d1ff0(0x148)][_0x3d1ff0(0x188)](_0x216c4f);if(_0x4edd4f['length']===0x0)return _0x4f2557;let _0x17c620=_0x30adff[_0x3d1ff0(0x138)](_0x4f2557[_0x3d1ff0(0x1b0)][0x0]);for(let _0x2850d2=0x0;_0x2850d2<_0x4edd4f[_0x3d1ff0(0x13e)];_0x2850d2++){const _0x2df4a8={'id':_0x3d1ff0(0x1ac),'params':{'unitId':_0x4edd4f[_0x2850d2][_0x3d1ff0(0x1b1)],..._0x4edd4f[_0x2850d2][_0x3d1ff0(0x154)]}},_0x4c1616=this[_0x3d1ff0(0x2c2)][_0x3d1ff0(0x10d)](_0x17c620,_0x2df4a8,!0x1);if(_0x5da487(_0x4c1616))throw _0x4c1616[_0x3d1ff0(0x290)];_0x17c620=_0x4c1616['m1Prime'];}return{..._0x30adff[_0x3d1ff0(0x138)](_0x4f2557),'mutations':[_0x17c620]};}['_transformHistoryAndStateStack'](_0x262f1f){const _0x48ab38=_0x1cd205,{unitID:_0x1a8276}=_0x262f1f,{history:_0x1c60ee,collaboration:_0x33980b}=this[_0x48ab38(0x148)][_0x48ab38(0x188)](_0x1a8276);if(_0x1c60ee['length']===0x0&&_0x33980b[_0x48ab38(0x13e)]===0x0)return;const _0x41f349=[],_0x555bac=[];let _0x128b46=_0x30adff[_0x48ab38(0x138)](_0x262f1f['mutations'][0x0]),_0x2284c0=_0x30adff[_0x48ab38(0x138)](_0x262f1f[_0x48ab38(0x1b0)][0x0]);for(let _0x18944c=_0x1c60ee[_0x48ab38(0x13e)]-0x1;_0x18944c>=0x0;_0x18944c--){const _0x30b35f={'id':_0x48ab38(0x1ac),'params':{'unitId':_0x1c60ee[_0x18944c][_0x48ab38(0x1b1)],..._0x1c60ee[_0x18944c][_0x48ab38(0x1ee)]}},_0x4638d9={'id':_0x48ab38(0x1ac),'params':{'unitId':_0x1c60ee[_0x18944c][_0x48ab38(0x1b1)],..._0x1c60ee[_0x18944c][_0x48ab38(0x154)]}},_0x3f1384=this[_0x48ab38(0x2c2)][_0x48ab38(0x10d)](_0x128b46,_0x30b35f,!0x1),_0x5e613c=this[_0x48ab38(0x2c2)][_0x48ab38(0x10d)](_0x2284c0,_0x4638d9,!0x1);if(_0x5da487(_0x3f1384))throw _0x3f1384[_0x48ab38(0x290)];if(_0x5da487(_0x5e613c))throw _0x5e613c[_0x48ab38(0x290)];_0x41f349[_0x48ab38(0x1e7)]({..._0x1c60ee[_0x18944c],'undoState':_0x3f1384['m2Prime'][_0x48ab38(0x1be)],'redoState':_0x5e613c['m2Prime'][_0x48ab38(0x1be)]}),_0x128b46=_0x3f1384[_0x48ab38(0x2f3)],_0x2284c0=_0x5e613c[_0x48ab38(0x2f3)];}_0x128b46=_0x30adff['deepClone'](_0x262f1f[_0x48ab38(0x1b0)][0x0]),_0x2284c0=_0x30adff[_0x48ab38(0x138)](_0x262f1f[_0x48ab38(0x1b0)][0x0]);for(let _0x18c0fe=_0x33980b[_0x48ab38(0x13e)]-0x1;_0x18c0fe>=0x0;_0x18c0fe--){const _0x2650ca={'id':_0x48ab38(0x1ac),'params':{'unitId':_0x33980b[_0x18c0fe][_0x48ab38(0x1b1)],..._0x33980b[_0x18c0fe][_0x48ab38(0x1ee)]}},_0x1d2478={'id':_0x48ab38(0x1ac),'params':{'unitId':_0x33980b[_0x18c0fe][_0x48ab38(0x1b1)],..._0x33980b[_0x18c0fe][_0x48ab38(0x154)]}},_0x210956=this[_0x48ab38(0x2c2)]['transformMutation'](_0x128b46,_0x2650ca,!0x1),_0x3e4fef=this[_0x48ab38(0x2c2)][_0x48ab38(0x10d)](_0x2284c0,_0x1d2478,!0x1);if(_0x5da487(_0x210956))throw _0x210956[_0x48ab38(0x290)];if(_0x5da487(_0x3e4fef))throw _0x3e4fef[_0x48ab38(0x290)];_0x555bac[_0x48ab38(0x1e7)]({..._0x33980b[_0x18c0fe],'undoState':_0x210956[_0x48ab38(0x2df)][_0x48ab38(0x1be)],'redoState':_0x3e4fef[_0x48ab38(0x2df)][_0x48ab38(0x1be)]}),_0x128b46=_0x210956[_0x48ab38(0x2f3)],_0x2284c0=_0x3e4fef[_0x48ab38(0x2f3)];}this[_0x48ab38(0x148)][_0x48ab38(0x266)](_0x1a8276,{'history':_0x41f349,'collaboration':_0x555bac});}};ue=In([Le(0x0,_0x12d739(_0x238493)),Le(0x1,_0x271d90),Le(0x2,_0x12d739(_0x43f7f6))],ue);var mn=Object[_0x1cd205(0x332)],fn=(_0x478d59,_0x3ace3c,_0x3d56a7,_0x192535)=>{const _0x4b9074=_0x1cd205;for(var _0x3570ab=_0x192535>0x1?void 0x0:_0x192535?mn(_0x3ace3c,_0x3d56a7):_0x3ace3c,_0x23cea4=_0x478d59[_0x4b9074(0x13e)]-0x1,_0x6c6c88;_0x23cea4>=0x0;_0x23cea4--)(_0x6c6c88=_0x478d59[_0x23cea4])&&(_0x3570ab=_0x6c6c88(_0x3570ab)||_0x3570ab);return _0x3570ab;},ht=(_0x40d7aa,_0x4b7726)=>(_0x1081ca,_0x18334e)=>_0x4b7726(_0x1081ca,_0x18334e,_0x40d7aa);let de=class{constructor(_0x18a14b,_0x4286ac){const _0x36f045=_0x1cd205;this['_injector']=_0x18a14b,this[_0x36f045(0x2c2)]=_0x4286ac;}[_0x1cd205(0x1fd)](_0x10917c){const _0x57683d=_0x1cd205;var _0xfb7dad;const _0x973aa=this[_0x57683d(0x25e)]['get'](_0x462ec2),_0x3b0db5=(_0xfb7dad=_0x973aa['getDocRanges']())!=null?_0xfb7dad:[];if(_0x3b0db5['length']===0x0)return;const _0x3e9449=_0x10917c[_0x57683d(0x1da)],_0x7e1b2d=[{'id':_0x57683d(0x1ac),'params':{'unitId':_0x3e9449,'actions':null,'textRanges':_0x3b0db5}}],_0x327e39=this[_0x57683d(0x2c2)][_0x57683d(0x224)](_0x10917c,_0x7e1b2d);if(!_0x11ff73(_0x327e39))throw _0x327e39[_0x57683d(0x290)];const _0x408212=_0x327e39[_0x57683d(0x2df)][0x0]['params']['textRanges'];Array['isArray'](_0x408212)&&_0x408212['length']&&_0x973aa[_0x57683d(0x1f2)](_0x408212,{'unitId':_0x3e9449,'subUnitId':_0x3e9449},!0x1);}};de=fn([ht(0x0,_0x12d739(_0x238493)),ht(0x1,_0x271d90)],de);var gn=Object[_0x1cd205(0x332)],En=(_0x17b0d9,_0x28fe96,_0x43f29a,_0x5aea2b)=>{const _0x5bca22=_0x1cd205;for(var _0x4f2ce0=_0x5aea2b>0x1?void 0x0:_0x5aea2b?gn(_0x28fe96,_0x43f29a):_0x28fe96,_0x23221d=_0x17b0d9[_0x5bca22(0x13e)]-0x1,_0x3349df;_0x23221d>=0x0;_0x23221d--)(_0x3349df=_0x17b0d9[_0x23221d])&&(_0x4f2ce0=_0x3349df(_0x4f2ce0)||_0x4f2ce0);return _0x4f2ce0;},U=(_0x2dfffc,_0x2b067c)=>(_0x151029,_0x3d7741)=>_0x2b067c(_0x151029,_0x3d7741,_0x2dfffc);let Se=class extends _0x5704a6{constructor(_0x10d4f2,_0x111b71,_0x561ea3,_0x2fd96c,_0x3e4c87,_0x54912b,_0x2be5e4,_0x281540){const _0x4e3b8f=_0x1cd205;super(),_(this,_0x4e3b8f(0x13b),new _0x547593(_0x4349d8[_0x4e3b8f(0x20e)])),(this[_0x4e3b8f(0x148)]=_0x10d4f2,this['_collaborationController']=_0x111b71,this[_0x4e3b8f(0x30c)]=_0x561ea3,this[_0x4e3b8f(0x22a)]=_0x2fd96c,this[_0x4e3b8f(0x1b7)]=_0x3e4c87,this[_0x4e3b8f(0xf7)]=_0x54912b,this[_0x4e3b8f(0x172)]=_0x2be5e4,this[_0x4e3b8f(0x298)]=_0x281540,this[_0x4e3b8f(0x17d)]());}[_0x1cd205(0x17d)](){const _0x3b76d1=_0x1cd205;this[_0x3b76d1(0x270)](this['_collaborationController'][_0x3b76d1(0x212)][_0x3b76d1(0x2a0)](_0x52401b=>{const _0x1ce60d=_0x3b76d1,_0x36febe=this[_0x1ce60d(0x148)][_0x1ce60d(0x1a2)]['subscribe'](_0x1a9133=>{const _0x32fdaa=_0x1ce60d;if(_0x1a9133==null)return;const {unitId:_0x289fef,redoState:_0x160355,commandId:_0x32b423}=_0x1a9133;if(_0x289fef!==_0x52401b[_0x32fdaa(0x1da)])return;const _0xd672b4={'id':_0x32b423,'type':_0x50d6a3['MUTATION'],'params':{'unitId':_0x289fef,'actions':_0x160355[_0x32fdaa(0x1cc)],'textRanges':null}};_0x52401b[_0x32fdaa(0x10b)](_0xd672b4);});if(_0x52401b['disposeWithMe'](_0x36febe),_0x52401b instanceof _0x5d9b61){const _0x45b0da={'onTransformIME':_0x433351=>this[_0x1ce60d(0x30c)][_0x1ce60d(0x211)](_0x433351),'onTransformState':_0x5c33ad=>this[_0x1ce60d(0x22a)][_0x1ce60d(0x1e3)](_0x5c33ad),'onTransformSelections':_0x5ce6f2=>this[_0x1ce60d(0x1b7)][_0x1ce60d(0x1fd)](_0x5ce6f2),'onSyncEditingCollabCursor':_0x3f448a=>this[_0x1ce60d(0xf7)]['syncEditingCollabCursor'](_0x3f448a),'onTransformRemoteChangesetByIMECache':_0x1afff0=>this[_0x1ce60d(0x30c)]['transformRemoteChangeset'](_0x1afff0),'onTransformRemoteChangesetByStateCache':_0x211057=>this[_0x1ce60d(0x22a)][_0x1ce60d(0x2bc)](_0x211057)};_0x52401b[_0x1ce60d(0x2d8)](_0x45b0da);}}));}};Se=En([U(0x0,_0x12d739(_0x43f7f6)),U(0x1,_0x12d739(_0x1bf057)),U(0x2,_0x12d739(he)),U(0x3,_0x12d739(ue)),U(0x4,_0x12d739(de)),U(0x5,_0x12d739(ze)),U(0x6,_0x5e82e0),U(0x7,_0x12d739(_0x288ce5))],Se);var Z=(_0x2e7842=>(_0x2e7842[_0x2e7842['UNDEFINED']=0x0]=_0x1cd205(0x16d),_0x2e7842[_0x2e7842['OK']=0x1]='OK',_0x2e7842[_0x2e7842[_0x1cd205(0x333)]=0x2]=_0x1cd205(0x333),_0x2e7842[_0x2e7842['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x2e7842[_0x2e7842[_0x1cd205(0x1e0)]=0x4]=_0x1cd205(0x1e0),_0x2e7842[_0x2e7842['UNAUTHENTICATED']=0x5]=_0x1cd205(0x11a),_0x2e7842[_0x2e7842[_0x1cd205(0x107)]=0x6]='ALREADY_EXISTS',_0x2e7842[_0x2e7842['INVALID_ARGUMENT']=0x7]=_0x1cd205(0xfd),_0x2e7842[_0x2e7842[_0x1cd205(0x1c4)]=0x8]=_0x1cd205(0x1c4),_0x2e7842[_0x2e7842[_0x1cd205(0x1e8)]=0x9]=_0x1cd205(0x1e8),_0x2e7842[_0x2e7842['LOGIN_FAILED']=0xa]=_0x1cd205(0x12f),_0x2e7842[_0x2e7842[_0x1cd205(0x24a)]=0xb]=_0x1cd205(0x24a),_0x2e7842[_0x2e7842[_0x1cd205(0x25c)]=0xc]=_0x1cd205(0x25c),_0x2e7842[_0x2e7842[_0x1cd205(0x204)]=0xd]=_0x1cd205(0x204),_0x2e7842[_0x2e7842[_0x1cd205(0x161)]=0xe]=_0x1cd205(0x161),_0x2e7842[_0x2e7842[_0x1cd205(0x1f3)]=0xf]=_0x1cd205(0x1f3),_0x2e7842[_0x2e7842[_0x1cd205(0x2d9)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x2e7842[_0x2e7842['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x1cd205(0x31b),_0x2e7842[_0x2e7842['ERROR_AGAIN']=0x65]=_0x1cd205(0x117),_0x2e7842[_0x2e7842['USER_NOT_FOUND']=0xc9]=_0x1cd205(0x1a4),_0x2e7842[_0x2e7842['USER_IS_ANONYMOUS']=0xca]='USER_IS_ANONYMOUS',_0x2e7842[_0x2e7842[_0x1cd205(0x252)]=0x1389]=_0x1cd205(0x252),_0x2e7842[_0x2e7842[_0x1cd205(0x273)]=0x1771]=_0x1cd205(0x273),_0x2e7842[_0x2e7842[_0x1cd205(0x2a5)]=0x1772]=_0x1cd205(0x2a5),_0x2e7842[_0x2e7842[_0x1cd205(0x16a)]=0x1773]=_0x1cd205(0x16a),_0x2e7842[_0x2e7842[_0x1cd205(0x119)]=0x1b59]=_0x1cd205(0x119),_0x2e7842[_0x2e7842[_0x1cd205(0x257)]=0x1b5a]=_0x1cd205(0x257),_0x2e7842[_0x2e7842[_0x1cd205(0x29a)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x2e7842[_0x2e7842[_0x1cd205(0x327)]=0x1b5c]=_0x1cd205(0x327),_0x2e7842[_0x2e7842[_0x1cd205(0x123)]=0x1b5d]=_0x1cd205(0x123),_0x2e7842[_0x2e7842['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x1cd205(0x2a8),_0x2e7842[_0x2e7842['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x1cd205(0x310),_0x2e7842[_0x2e7842[_0x1cd205(0x29e)]=0x232a]=_0x1cd205(0x29e),_0x2e7842[_0x2e7842[_0x1cd205(0x114)]=0x232b]=_0x1cd205(0x114),_0x2e7842[_0x2e7842[_0x1cd205(0x2b7)]=0x232c]=_0x1cd205(0x2b7),_0x2e7842[_0x2e7842[_0x1cd205(0x286)]=0x232d]=_0x1cd205(0x286),_0x2e7842[_0x2e7842[_0x1cd205(0x32d)]=0x2711]=_0x1cd205(0x32d),_0x2e7842[_0x2e7842['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x1cd205(0x1dc),_0x2e7842[_0x2e7842[_0x1cd205(0x2d1)]=0x2713]=_0x1cd205(0x2d1),_0x2e7842[_0x2e7842[_0x1cd205(0x299)]=0x2714]=_0x1cd205(0x299),_0x2e7842[_0x2e7842['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x2e7842[_0x2e7842[_0x1cd205(0x323)]=0x271b]=_0x1cd205(0x323),_0x2e7842[_0x2e7842[_0x1cd205(0x142)]=0x271c]=_0x1cd205(0x142),_0x2e7842[_0x2e7842[_0x1cd205(0x217)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x2e7842[_0x2e7842[_0x1cd205(0x339)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x2e7842[_0x2e7842[_0x1cd205(0x2c3)]=0x271f]=_0x1cd205(0x2c3),_0x2e7842[_0x2e7842[_0x1cd205(0x261)]=0x2720]=_0x1cd205(0x261),_0x2e7842[_0x2e7842['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x1cd205(0x1ce),_0x2e7842[_0x2e7842[_0x1cd205(0x2ab)]=0x2ee1]=_0x1cd205(0x2ab),_0x2e7842[_0x2e7842['INVALID_INVITE_CODE']=0x2ee2]=_0x1cd205(0x13a),_0x2e7842[_0x2e7842[_0x1cd205(0x1fc)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x2e7842[_0x2e7842[_0x1cd205(0x29d)]=0x2ee4]=_0x1cd205(0x29d),_0x2e7842[_0x2e7842[_0x1cd205(0x312)]=0x2ee5]=_0x1cd205(0x312),_0x2e7842[_0x2e7842[_0x1cd205(0x2f1)]=0x32c9]=_0x1cd205(0x2f1),_0x2e7842[_0x2e7842['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x2e7842[_0x2e7842[_0x1cd205(0x30e)]=0x32cb]=_0x1cd205(0x30e),_0x2e7842[_0x2e7842[_0x1cd205(0x2f2)]=0x36b1]=_0x1cd205(0x2f2),_0x2e7842[_0x2e7842[_0x1cd205(0x234)]=0x36b2]=_0x1cd205(0x234),_0x2e7842[_0x2e7842['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x1cd205(0x135),_0x2e7842[_0x2e7842[_0x1cd205(0x159)]=0x36b4]=_0x1cd205(0x159),_0x2e7842[_0x2e7842[_0x1cd205(0x2d0)]=0x36b5]=_0x1cd205(0x2d0),_0x2e7842[_0x2e7842[_0x1cd205(0x191)]=0x36b6]=_0x1cd205(0x191),_0x2e7842[_0x2e7842[_0x1cd205(0x102)]=0x36b7]=_0x1cd205(0x102),_0x2e7842[_0x2e7842[_0x1cd205(0x15a)]=0x36b8]=_0x1cd205(0x15a),_0x2e7842[_0x2e7842[_0x1cd205(0x29b)]=0x3715]=_0x1cd205(0x29b),_0x2e7842[_0x2e7842[_0x1cd205(0x313)]=0x3716]=_0x1cd205(0x313),_0x2e7842[_0x2e7842[_0x1cd205(0x27b)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x2e7842[_0x2e7842[_0x1cd205(0x2b3)]=0x37dd]=_0x1cd205(0x2b3),_0x2e7842[_0x2e7842[_0x1cd205(0x1f9)]=0x3a99]=_0x1cd205(0x1f9),_0x2e7842[_0x2e7842[_0x1cd205(0x28d)]=0x3a9a]=_0x1cd205(0x28d),_0x2e7842[_0x2e7842[_0x1cd205(0x153)]=0x3a9b]=_0x1cd205(0x153),_0x2e7842[_0x2e7842[_0x1cd205(0x133)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x2e7842[_0x2e7842[_0x1cd205(0x245)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x2e7842[_0x2e7842[_0x1cd205(0x203)]=0x3a9e]=_0x1cd205(0x203),_0x2e7842[_0x2e7842['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x1cd205(0x1f6),_0x2e7842[_0x2e7842[_0x1cd205(0x2bd)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x2e7842[_0x2e7842[_0x1cd205(0x101)]=-0x1]=_0x1cd205(0x101),_0x2e7842))(Z||{});function vn(_0x26b0c8){const _0x261e88=_0x1cd205;var _0x4d5309,_0x54f6fc;const _0x145cab=(_0x4d5309=_0x26b0c8[_0x261e88(0x2a4)])==null?void 0x0:_0x4d5309[_0x261e88(0x23d)],_0x5a691a=((_0x54f6fc=_0x26b0c8[_0x261e88(0x2a4)])==null?void 0x0:_0x54f6fc['totalFormulasToCalculate'])||0x0;return _0x145cab===_0xcc8433['START_CALCULATION']&&_0x5a691a>0x0;}function _0x6adc(){const _0x40b8a2=['getColorFromTheme','_transformHistoryAndStateStack','REDEMPTION_CODE_HAS_BEEN_CREATED','executionId','get','REDEMPTION_INVALID_CODE','Unknown\x20user','_taskIds','INVITE_CODE_REQUIRED','transformSelections','source','labelPosition','_startCalculationLimit','wsSessionTicketUrl','green.600','REDEMPTION_USER_REDEEM_TIMES_EXCEED','EMAIL_VERIFY_CODE_MISMATCH','filename','children','_anchorDot','runOnServer','_scheduleClearOtherTimer','dispose$','_renderManagerService','_memberService','_pollingInterval','NOT_COLLAB','startRow','InsertRangeMoveRightCommandId','transformIMECache','entityInit$','onMouseMove','_doCreateSocket','_univerInstanceService','hide','YUUMI_ALL_TABLES_IS_INVALID','endColumn','_httpService','findNodePositionByCharIndex','_colorIndex','beginPath','none','registerComponent','UniverIcon','storage','_initResize','_applyCommand','addObjects','transformMutationsWithChangeset','event$','popstate','getSheetId','jiqing.500','stack','_docTransformStateCacheService','all','red.300','USERS_LEAVE','_cursorShapes','white','16956ZNAQoW','SYNCED','4012563dCRvfx','pipe','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_cursor','getUnitStatus$','_urlService','startFormulaLimitUrl','univer-mr-2\x20univer-flex\x20univer-text-xl','AWAITING_WITH_PENDING','_setupSubUnitSync','on-line-icon','stage','_showGuardMessage','_initEvent','_docSkeleton','set','values','subscribeEvent','saveOfflineData','REDEMPTION_USER_NOT_ELIGIBLE','formula.calculation.started','#FFF','eventID','selection','MOBILE_VERIFY_CODE_MISMATCH','_localStorageService','url(#$1','roomMembers$','_startDocCollabCursor','_monkeyPatchLogService','width','_updateLocalCursor','CHANGESET_REVISION_CONFILICT','getRenderById','url(#on-line-icon_clip0_910_349)','Warning','10vwQdOP','APPLY_NON_SEQUENTIAL_REVISION','_checkCalculationAvailable','_saveCache','_transformPreviousActiveRange','UPDATE_CURSOR','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_collabCursorState$','_injector','_notificationService','assign','YUUMI_CONNECTOR_URL_NOT_FOUND','cursorInfo','text','OFFLINE','measureText','setStateCache','collab-rect-range-','_handleJoinEvent','_drawAnchor','getActiveSheet','_name','beforeCommandExecuted','\x20at\x20','InsertRowCommandId','3943435flRPvW','disposeWithMe','loadOfflineData','activeSheet$','SNAPSHOT_INVALID_SNAPSHOT','4404FRrZRE','collabStatus.syncing','_initUserListener','getformulaLimitStatusUrl','createSocket','getActiveRange','_backgroundColor','ENTITLE_INSUFFICIENT_QUOTA','_roomMembers$','complete','limitInfo','...','clearInterval','_onRefRangeChange','min','getVpScrollXYInfoByPosToVp','_clearPolling','_selfUnitIDs','LICENSE_DISTRO_REJECTED','_initStatusListener','string','_updateURLWithCurrentState','with','_toggleOffline','has','REDEMPTION_CODE_INACTIVE','socket$','formula.calculation.waiting','error','_docClipboardService','getSkeleton','row','join','_getSessionTicket','parseInt','_revisionService','_localeService','YUUMI_SUBSCRIPTION_NOT_FOUND','APPLY_REVISION_CONFILICT','ENTITLE_CHAT_LIMIT_EXCEED','collab-text-range-','USER_NOT_INVITED_CODE','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','xlink:href','subscribe','getSheetBySheetId','InsertRangeMoveDownCommandId','registerRenderModule','stageInfo','SNAPSHOT_HAS_BEEN_REMOVED','_configService','_uploadLog','CONNECTOR_DATA_TOO_LARGE','_handleLeaveEvent','currentTheme$','INVITE_CODE_HAS_BEEN_UES','rgba(255,\x20255,\x20255,\x200.01)','SOCKET_FAILED_RETRY','registerRefRange','1227611cSfyYF','blue.400','sheetID','_labelPosition','ENTITLE_NEED_BILLING_ADDRESS','replace','dispose','onStarting','LICENSE_EXPORT_SIZE_EXCEEDED','colno','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','_render','_session','transformRemoteChangeset','DATA_SOURCE_TOO_LARGE','drawWith','_transformUndoRedoStack','_config','UNIVER_DOC','_transformService','YUUMI_AI_RUN_FAILED','arc','_registerRenderDependencies','[Unhandled\x20Rejection]:\x20','getCollabCursors$','onPointerLeave$','getParam','div','collaboration.offline-data-not-saved','_clearOtherTimers','_releaseCalculationLimit','_scene','collaboration.single-unit.warning','ENTITLE_INVALID_COUPON_CODE','YUUMI_RATE_OVER_LIMIT','_sheetSkeletonManagerService','then','restore','now','override','delete','addHandlerCallback','LOGIN_TOKEN_PROCESSING_FAILED','_saveTaskMap','_initCommandExecutedListener','some','[CollaborationDataLoaderController]','bottom','m2Prime','lineTo','getCurrentUnitForType','attrs','assignAColorForMemberID','getItem','TEXT','add','replaceState','collabStatus.conflict','http://www.w3.org/2000/svg','collaboration.closeRoom','_cursors','currentSkeleton$','map','tag','VIEW_MAIN','getMember','WECHAT_HAS_BEEN_BOUND','ENTITLE_CAN_NOT_BUY_LOWER_OTP','m1Prime','requireSession','fillStyle','save','setParam','_id','RECT','6XRBvJU','_unitStatus','location','textRanges','_getMergeRange','_drawRectRange','includes','2630ZBvfpo','href','DeleteRangeMoveUpCommandId','collabStatus.fetchMiss','_eventUnsubscribe','_getSheetObject','20273dnlmND','next','_send','isArray','updateOfflineData','_docTransformIMECacheService','addEventListener','EMAIL_HAS_BEEN_BOUND','32GIhlVP','LICENSE_MAX_UNITS_EXCEEDED','disposeUnit','INVITE_CODE_ALREADY_BOUND','ENTITLE_REPORT_LIMIT_EXCEED','0\x200\x2016\x2016','font','_initUnhandledRejectionListener','_scheduleSaving','_ensureSubject','parse','getCurrentSelections','CURRENT_STATUS_CANNOT_OPERATE','_themeService','evenodd','sessionStatus$','show','HEADER_MENU','_heartbeatTimer','_collabSessionService','YUUMI_ASYNCIO_CANCELLED','onPointerEnter$','getCollabEntity$','96288JCuHFH','APPLY_PERMISSION_DENIED','_localCacheService','transform','_getFormulaLimitStatus','getUndoRedoMutationParamsCache','/universer-api/frontend/logs','YUUMI_UNABLE_LOAD_URL','UNIVER_SHEET','_init','_removeCollabCursors','post','getOwnPropertyDescriptor','INTERNAL_ERROR','_hideTimer','?taskId=','_createSocketURL','getTypeOfUnitDisposed$','_cursorInfo$','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','0\x200\x2017\x2016','_scheduleHeartbeat','origin','_removeClearOtherTimer','onRendered','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','_onCursorDelete','push','getAncestorScale','triggerDblclick','_docSyncEditingCollabCursorService','getFocusedUnit','_handleHover','entries','unload','unhandledrejection','INVALID_ARGUMENT','code','height','_initDependencies','UNRECOGNIZED','ENTITLE_COUPON_USED_UP','addObject','_beforeCloseService','closePath','getRangePointData','ALREADY_EXISTS','purple.300','getCurrentRevOfUnit','getOffsetConfig','onLocalMutation','JOIN_ROOM_FAILED','transformMutation','memberID','startsWith','subunit','_registerDependencies','_anchor','type','LICENSE_IMPORT_SIZE_EXCEEDED','_updateSubUnitFromURLParams','collab-client.tooltip.reconnect','ERROR_AGAIN','setConfig','APPLY_REJECT','UNAUTHENTICATED','_shapes','releaseFormulaLimitUrl','invokeId','isEditing','sessionTicket','runId','clipPath','_commandService','APPLY_DUPLICATED','formula.calculation.unable','currentColor','setUndoRedoMutationParamsCache','_syncEditingCollabCursorService','permission.content','FromArray','range','endRow','setInterval','shift','_unitOnClients','LOGIN_FAILED','_setFormulaLimitStatus','M0\x200H16V16H0z','_hovered','REDEMPTION_CODE_NOT_STARTED','body','ENTITLE_DUP_SUBSCRIPTION','setAlpha','_assignedColors','deepClone','colorChannel1','INVALID_INVITE_CODE','_status$','debug','enableFrontendLog','length','_initCommandInterceptor','_collabCursorController','FETCH_MISS','YUUMI_TABLE_NOT_FOUND_IN_UNIT','clearTimeout','find','data','_refreshCollabCursors','ranges','_docStateChangeManagerService','saveTaskMap','message','Failed','onCommandExecuted','status$','defs','_onCursorUpdate','_lastPointer','NO_OTHER_CLIENTS_EDITING','getValue','REDEMPTION_CODE_FULLY_REDEEMED','redoState','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','session.connection-failed','_memberID','_color','PAYMENT_CHANNEL_NOT_SUPPORT','ENTITLE_USE_COUPON_NOT_1ST_TRADE','init','searchParams','trim','newValue','getUnitId','collabStatus.synced','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','history','_toggleOnline','enableLocalCache','_docSkeletonManagerService','fillText','pushState','uni.network.url-service','_currentUsage','ENSURE_SNAPSHOT_EXECUTION','mask','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','UNDEFINED','fill','_refRangeService','_cachedData','getTypeOfUnitAdded$','_messageService','_initWindowErrorListener','_logService','_entities','substring','SUCCESS','top','_setupBeforeClosingHandler','getConfig','_checkAndWaitForCalculationPermission','toString','_initEntityListener','editingUnit','_getSaveTimeout','OTHER_CLIENTS_EDITING','[LogService\x20Error]:\x20','33112521UycUMg','hovered','permission.title','current','univerjs-icon\x20univerjs-icon-','session.will-retry','getStateCache','Error','unit','_entityInit$','from','4YNIdyk','split','getUniverSheetInstance','[RemoteUniscriptService]:\x20no\x20focused\x20unit','ENTITLE_COUPON_EXPIRED','defineProperty','contains','_range','makeDirty','ACTIVE_UNIT_EVENT_CHANNEL','roomMembers','dirtyRanges','_getAnchorBounding','removeParam','_dataLoaderService','_online','1em','_startSheetCollabCursor','forEach','MoveRangeCommandId','isActive','docStateChange$','createInstance','USER_NOT_FOUND','toRgbString','name','path','getViewport','executeCommand','syncEditingCollabCursor','displayName','doc.mutation.rich-text-editing','size','stringify','idSuffix','mutations','unitId','session.collaboration-timeout','_handleHeartbeatEvent','_updateCollabCursors','catch','_hover','_docTransformSelectionsService','random','/universer-api/license/formula/limit/start','_colorAssignService','sheetId','_drawTextRange','setTimeout','params','cursorInfo$','RemoveColCommandId','asObservable','OnLineIcon','setItem','TOO_MANY_REQUESTS','getDocRanges','_maxFormulaLimit','Success','_textBubble','off-line-icon_clip0_910_343','/run/','setShapeProps','actions','color','PY_RUNTIME_SCRIPT_ERROR','_handleEvent','loadUnit','removeEventListener','on-line-icon_clip0_910_349','black','urlChange$','engine','_collaborationController','key','ONLINE','_getScale','unitID','_context','YUUMI_URL_COL_OUT_OF_RANGE','_collaborationUIEventService','column','_imageIoService','NOT_FOUND','_hasFormulaInDirtyRanges','transformByState','transformStateCache','_lastResponseTimestamp','send','svg','unshift','COMPLETION_FINISHED','flatMap','_uiPartsService','moveTo','CONFLICT','_initStatusComponent','undoState','_disabled','startColumn','maxFormulaLimit','replaceDocRanges','AUTHORIZE_CODE_ILLEGAL'];_0x6adc=function(){return _0x40b8a2;};return _0x6adc();}function pn(_0x1939bd){const _0x1b3ff5=_0x1cd205;return _0x1939bd['functionsExecutedState']===_0x126067[_0x1b3ff5(0x177)];}var On=Object[_0x1cd205(0x332)],Tn=(_0xfb1611,_0x358c4f,_0xb9dc34,_0x1bdaf8)=>{for(var _0x4b9517=_0x1bdaf8>0x1?void 0x0:_0x1bdaf8?On(_0x358c4f,_0xb9dc34):_0x358c4f,_0x3cc275=_0xfb1611['length']-0x1,_0x431906;_0x3cc275>=0x0;_0x3cc275--)(_0x431906=_0xfb1611[_0x3cc275])&&(_0x4b9517=_0x431906(_0x4b9517)||_0x4b9517);return _0x4b9517;},P=(_0x512919,_0x532f05)=>(_0x19fc62,_0xb1b7d7)=>_0x532f05(_0x19fc62,_0xb1b7d7,_0x512919);const Cn='/universer-api/license/formula/limit/status',Rn=_0x1cd205(0x1b9),Dn='/universer-api/license/formula/limit/done';let Ie=class extends _0x5704a6{constructor(_0x3c36b1,_0x2e9319,_0x5cca4f,_0x47765a,_0x430c13,_0x31a8e6,_0x512174){const _0x45888a=_0x1cd205;super(),_(this,_0x45888a(0x20d),null),_(this,'_maxFormulaLimit',0x0),_(this,'_currentUsage',0x0),_(this,_0x45888a(0x1fb),[]),_(this,_0x45888a(0x1e4),0x0),(this['_messageService']=_0x3c36b1,this['_commandService']=_0x2e9319,this['_configService']=_0x5cca4f,this['_httpService']=_0x47765a,this[_0x45888a(0x215)]=_0x430c13,this[_0x45888a(0x174)]=_0x31a8e6,this[_0x45888a(0x298)]=_0x512174,this['_initCommandInterceptor']());}[_0x1cd205(0x13f)](){const _0x13f642=_0x1cd205;this[_0x13f642(0x270)](this['_commandService'][_0x13f642(0x26c)]((_0x4929b3,_0x4bdcc0)=>{const _0x4f8511=_0x13f642;var _0x18fc53;if(_0x4929b3['id']!==_0x1bf29e['id'])return;const _0x550db8=_0x4929b3[_0x4f8511(0x1be)];if(!this[_0x4f8511(0x1e1)]((_0x18fc53=_0x550db8[_0x4f8511(0x198)])!=null?_0x18fc53:[]))return;if(!this[_0x4f8511(0x258)]())throw this[_0x4f8511(0x17b)](_0x4929b3,_0x4bdcc0),this['_showGuardMessage'](),new _0x6cd530();})),this[_0x13f642(0x270)](this['_commandService'][_0x13f642(0x14c)]((_0x3bfe8d,_0x48408a)=>{const _0x1175d2=_0x13f642;if(_0x3bfe8d['id']!==_0x16629d['id'])return;const _0x3bd24f=_0x3bfe8d[_0x1175d2(0x1be)];if(vn(_0x3bd24f)){const _0x543e98=_0xfc2a1c();this['_taskIds'][_0x1175d2(0xf4)](_0x543e98),this['_startCalculationLimit'](_0x543e98);}else{if(pn(_0x3bd24f)&&this[_0x1175d2(0x1fb)][_0x1175d2(0x13e)]>0x0){const _0x105f62=this[_0x1175d2(0x1fb)][_0x1175d2(0x12d)]();this[_0x1175d2(0x2cd)](_0x105f62);}}}));}['dispose'](){const _0x16231=_0x1cd205;super['dispose'](),this[_0x16231(0x284)](),this['_taskIds']=[],this['_currentUsage']=0x0,this[_0x16231(0x1c6)]=0x0,this[_0x16231(0x1e4)]=0x0;}async[_0x1cd205(0x17b)](_0x104847,_0x359160){const _0x2517b9=_0x1cd205;for(let _0x5061bb=0x0;_0x5061bb<0x1e;_0x5061bb++)try{if(await this[_0x2517b9(0x32a)](),this['_checkCalculationAvailable']()){this['_applyCommand'](_0x104847,_0x359160),this[_0x2517b9(0x172)][_0x2517b9(0x31f)]({'content':this[_0x2517b9(0x298)]['t'](_0x2517b9(0x246)),'type':_0x1a2ec8[_0x2517b9(0x1c7)]});return;}await new Promise(_0xdee175=>{const _0x455b41=_0x2517b9;this[_0x455b41(0x20d)]=window[_0x455b41(0x1bd)](_0xdee175,0x3e8);});}catch(_0x129787){this[_0x2517b9(0x174)][_0x2517b9(0x290)](_0x129787);}this[_0x2517b9(0x172)][_0x2517b9(0x31f)]({'content':this['_localeService']['t'](_0x2517b9(0x124)),'type':_0x1a2ec8['Error']});}[_0x1cd205(0x222)](_0x5a9ad9,_0x175ec3){const _0x457fa2=_0x1cd205;try{this[_0x457fa2(0x122)][_0x457fa2(0x1a9)](_0x5a9ad9['id'],_0x5a9ad9[_0x457fa2(0x1be)],_0x175ec3);}catch(_0x58cc25){this[_0x457fa2(0x174)][_0x457fa2(0x290)](_0x58cc25);}}['_setFormulaLimitStatus'](_0x29cf38,_0x2ddb52){const _0x300fa2=_0x1cd205;_0x2ddb52<this[_0x300fa2(0x1e4)]||(this[_0x300fa2(0x1e4)]=_0x2ddb52,this[_0x300fa2(0x1c6)]=Number[_0x300fa2(0x296)](_0x29cf38[_0x300fa2(0x1f1)]),this[_0x300fa2(0x169)]=Number[_0x300fa2(0x296)](_0x29cf38['currentUsage']));}async[_0x1cd205(0x200)](_0x51319c){const _0x321ce0=_0x1cd205;var _0x5a9937,_0x28d65b;const _0x3368ae=Date[_0x321ce0(0x2d5)]();try{const _0x39b5c4=((_0x5a9937=this[_0x321ce0(0x2a6)][_0x321ce0(0x17a)](_0x219899))==null?void 0x0:_0x5a9937[_0x321ce0(0x238)])||Rn,_0x28d7cf=(await this['_httpService'][_0x321ce0(0x331)](_0x39b5c4,{'body':JSON[_0x321ce0(0x1ae)]({'taskId':_0x51319c})}))[_0x321ce0(0x134)];if(((_0x28d65b=_0x28d7cf[_0x321ce0(0x290)])==null?void 0x0:_0x28d65b[_0x321ce0(0xfe)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x28d7cf[_0x321ce0(0x27e)],_0x3368ae);}catch(_0x59bc48){this['_logService'][_0x321ce0(0x290)](_0x59bc48);}}async[_0x1cd205(0x32a)](_0xcd0f9d){const _0x448c9e=_0x1cd205;var _0x1e4a04,_0x3e5a76;const _0x492295=Date[_0x448c9e(0x2d5)]();try{const _0xaeb9d2=((_0x1e4a04=this[_0x448c9e(0x2a6)][_0x448c9e(0x17a)](_0x219899))==null?void 0x0:_0x1e4a04[_0x448c9e(0x277)])||Cn,_0x1d01f3=_0xcd0f9d?_0xaeb9d2+_0x448c9e(0x335)+encodeURIComponent(_0xcd0f9d):_0xaeb9d2,_0x420312=(await this['_httpService']['get'](_0x1d01f3))['body'];if(((_0x3e5a76=_0x420312[_0x448c9e(0x290)])==null?void 0x0:_0x3e5a76[_0x448c9e(0xfe)])!==Z['OK'])return;this[_0x448c9e(0x130)](_0x420312[_0x448c9e(0x27e)],_0x492295);}catch(_0x359309){this[_0x448c9e(0x174)][_0x448c9e(0x290)](_0x359309);}}async[_0x1cd205(0x2cd)](_0x1b958a){const _0x237ba2=_0x1cd205;var _0x424be7,_0x49e11a;const _0x516254=Date['now']();try{const _0x48ac89=((_0x424be7=this[_0x237ba2(0x2a6)][_0x237ba2(0x17a)](_0x219899))==null?void 0x0:_0x424be7[_0x237ba2(0x11c)])||Dn,_0x3e9d19=(await this[_0x237ba2(0x219)][_0x237ba2(0x331)](_0x48ac89,{'body':JSON[_0x237ba2(0x1ae)]({'taskId':_0x1b958a})}))['body'];if(((_0x49e11a=_0x3e9d19[_0x237ba2(0x290)])==null?void 0x0:_0x49e11a[_0x237ba2(0xfe)])!==Z['OK'])return;this[_0x237ba2(0x130)](_0x3e9d19[_0x237ba2(0x27e)],_0x516254);}catch(_0x3136a9){this['_logService'][_0x237ba2(0x290)](_0x3136a9);}}[_0x1cd205(0x258)](){const _0x52181c=_0x1cd205;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x52181c(0x1c6)]-this[_0x52181c(0x169)]>0x0;}[_0x1cd205(0x284)](){const _0x2ca465=_0x1cd205;this[_0x2ca465(0x20d)]&&(clearTimeout(this[_0x2ca465(0x20d)]),this[_0x2ca465(0x20d)]=null);}[_0x1cd205(0x23e)](){const _0x443faa=_0x1cd205;this[_0x443faa(0x172)]['show']({'content':this[_0x443faa(0x298)]['t'](_0x443faa(0x28f)),'type':_0x1a2ec8['Loading']});}['_hasFormulaInDirtyRanges'](_0x1f2beb){const _0x5c918d=_0x1cd205;for(const _0x1ff8c0 of _0x1f2beb){const {unitId:_0x1a4b9b,sheetId:_0x37b254,range:_0x5aa1f8}=_0x1ff8c0,_0x45a35a=this[_0x5c918d(0x215)]['getUnit'](_0x1a4b9b);if(!_0x45a35a)continue;const _0x2664bf=_0x45a35a['getSheetBySheetId'](_0x37b254);if(!_0x2664bf)continue;const _0x156904=_0x2664bf['getCellMatrix']();for(let _0xeadaa1=_0x5aa1f8[_0x5c918d(0x20f)];_0xeadaa1<=_0x5aa1f8[_0x5c918d(0x12b)];_0xeadaa1++)for(let _0x1c4769=_0x5aa1f8[_0x5c918d(0x1f0)];_0x1c4769<=_0x5aa1f8[_0x5c918d(0x218)];_0x1c4769++){const _0x21c9b9=_0x156904[_0x5c918d(0x152)](_0xeadaa1,_0x1c4769);if(_0x21c9b9&&(_0x220e75(_0x21c9b9['f'])||_0x5723ae(_0x21c9b9['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x12d739(_0x5e82e0)),P(0x1,_0x15dbe0),P(0x2,_0x16a29d),P(0x3,_0x12d739(_0x7b623c)),P(0x4,_0x439541),P(0x5,_0x17e71c),P(0x6,_0x12d739(_0x288ce5))],Ie);var Nn=Object[_0x1cd205(0x332)],bn=(_0x4969bc,_0x3b38fc,_0x5517cd,_0x21eeea)=>{const _0x384c4a=_0x1cd205;for(var _0x437ff6=_0x21eeea>0x1?void 0x0:_0x21eeea?Nn(_0x3b38fc,_0x5517cd):_0x3b38fc,_0x784553=_0x4969bc[_0x384c4a(0x13e)]-0x1,_0x5ea417;_0x784553>=0x0;_0x784553--)(_0x5ea417=_0x4969bc[_0x784553])&&(_0x437ff6=_0x5ea417(_0x437ff6)||_0x437ff6);return _0x437ff6;},Ue=(_0x3d304a,_0x21774b)=>(_0x1629fa,_0x196437)=>_0x21774b(_0x1629fa,_0x196437,_0x3d304a);let He=class extends _0x5704a6{constructor(_0x36ba7b,_0x2c832d,_0x589a10){const _0x1189a8=_0x1cd205;super(),_(this,_0x1189a8(0x170),new Map()),_(this,'_saveTaskMap',new Map()),_(this,'_disabled',!0x1),(this[_0x1189a8(0x2a6)]=_0x36ba7b,this[_0x1189a8(0x24b)]=_0x2c832d,this[_0x1189a8(0x297)]=_0x589a10);}['disableLocalCache'](){const _0x580536=_0x1cd205;this[_0x580536(0x1ef)]=!0x0;}[_0x1cd205(0x164)](){this['_disabled']=!0x1;}get[_0x1cd205(0x149)](){const _0x6aa9e9=_0x1cd205;return this[_0x6aa9e9(0x2da)];}[_0x1cd205(0x2b5)](){const _0x4fc325=_0x1cd205;this['exhaustSavingTask']()[_0x4fc325(0x2d3)](()=>super['dispose']());}async[_0x1cd205(0x271)](_0x31307b){const _0x3e75bc=_0x1cd205;return this[_0x3e75bc(0x1ef)]?null:this[_0x3e75bc(0x24b)][_0x3e75bc(0x2e4)](_0x23a85b(_0x31307b));}async[_0x1cd205(0x244)](_0x583920,_0x3ee91b){const _0x30fe2a=_0x1cd205;return!!this[_0x30fe2a(0x24b)][_0x30fe2a(0x1c3)](_0x583920,_0x3ee91b);}[_0x1cd205(0x30b)](_0x2a6b2f,_0x23b01a,_0xa1da7c,_0x487629){const _0x2ea529=_0x1cd205,_0xd2a0a0=this['_revisionService'][_0x2ea529(0x109)](_0x2a6b2f);this['_cachedData']['set'](_0x2a6b2f,{'unitID':_0x2a6b2f,'type':_0x23b01a,'awaitingChangeset':_0xa1da7c,'mutations':_0x487629,'rev':_0xd2a0a0}),this['_saveTaskMap'][_0x2ea529(0x28c)](_0x2a6b2f)||this[_0x2ea529(0x317)](_0x2a6b2f);}[_0x1cd205(0x317)](_0x399e05){const _0x50c7ae=_0x1cd205,_0x33fdcf=this[_0x50c7ae(0x17f)]();_0x33fdcf===0x0?this[_0x50c7ae(0x259)](_0x399e05):this[_0x50c7ae(0x2da)]['set'](_0x399e05,setTimeout(()=>this[_0x50c7ae(0x259)](_0x399e05),_0x33fdcf));}[_0x1cd205(0x17f)](){const _0x47377b=_0x1cd205;var _0x43fa07;return(_0x43fa07=this['_configService'][_0x47377b(0x17a)](_0x4d692c))!=null?_0x43fa07:_0x4b23fc;}['_saveCache'](_0x5093d6){const _0x454658=_0x1cd205,_0x1f38bd=this[_0x454658(0x2da)][_0x454658(0x1f8)](_0x5093d6);return _0x1f38bd!==void 0x0&&window[_0x454658(0x143)](_0x1f38bd),this[_0x454658(0x24b)][_0x454658(0x1c3)](_0x23a85b(_0x5093d6),this[_0x454658(0x170)][_0x454658(0x1f8)](_0x5093d6))[_0x454658(0x2d3)](()=>this[_0x454658(0x2da)][_0x454658(0x2d7)](_0x5093d6));}async['exhaustSavingTask'](){const _0x3530d5=_0x1cd205,_0x421b4c=[];this['_saveTaskMap'][_0x3530d5(0x19f)]((_0x2acfd5,_0x179e1d)=>{const _0x4a20ee=_0x3530d5;window[_0x4a20ee(0x143)](_0x2acfd5),_0x421b4c[_0x4a20ee(0xf4)](this[_0x4a20ee(0x259)](_0x179e1d)['then'](()=>{const _0x1ec29a=_0x4a20ee;this[_0x1ec29a(0x2da)][_0x1ec29a(0x2d7)](_0x179e1d);}));}),await Promise[_0x3530d5(0x22b)](_0x421b4c);}};He=bn([Ue(0x0,_0x16a29d),Ue(0x1,_0x1f3d3c),Ue(0x2,_0x12d739(_0x337775))],He);class Ln extends _0x30a36{constructor(){const _0x2c51b3=_0x1cd205;super(),_(this,_0x2c51b3(0x1d4)),this[_0x2c51b3(0x1d4)]=_0x30adbf(window,_0x2c51b3(0x226))['pipe'](_0x4da12d(this[_0x2c51b3(0x20a)]),_0x3ccc0c(0x1),_0x5d6e8f(void 0x0));}[_0x1cd205(0x2f7)](_0x2d6675,_0x401ed1,_0xc23045=!0x1){const _0x533d6=_0x1cd205,_0x252ce7=new URL(window['location'][_0x533d6(0x302)]);_0x252ce7['searchParams'][_0x533d6(0x241)](_0x2d6675,_0x401ed1),_0xc23045?window[_0x533d6(0x162)]['replaceState']('','',_0x252ce7[_0x533d6(0x17c)]()):window[_0x533d6(0x162)]['pushState']('','',_0x252ce7[_0x533d6(0x17c)]());}[_0x1cd205(0x19a)](_0xedaf83,_0x4871c8=!0x1){const _0x554f04=_0x1cd205,_0x449f77=new URL(window[_0x554f04(0x2fc)][_0x554f04(0x302)]);_0x449f77[_0x554f04(0x15c)][_0x554f04(0x2d7)](_0xedaf83),_0x4871c8?window['history'][_0x554f04(0x2e7)]('','',_0x449f77[_0x554f04(0x17c)]()):window[_0x554f04(0x162)][_0x554f04(0x167)]('','',_0x449f77[_0x554f04(0x17c)]());}[_0x1cd205(0x2c9)](_0x939ad){const _0x4a4909=_0x1cd205;var _0x592208;return(_0x592208=new URL(window[_0x4a4909(0x2fc)][_0x4a4909(0x302)])['searchParams'][_0x4a4909(0x1f8)](_0x939ad))!=null?_0x592208:void 0x0;}}var Un=Object[_0x1cd205(0x192)],Mn=Object[_0x1cd205(0x332)],An=(_0x2c44cc,_0xa6b50b,_0x20259b)=>_0xa6b50b in _0x2c44cc?Un(_0x2c44cc,_0xa6b50b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20259b}):_0x2c44cc[_0xa6b50b]=_0x20259b,Pn=(_0x3a9aa4,_0xc739c3,_0x48fe3b,_0xf4e9f9)=>{const _0x4d515a=_0x1cd205;for(var _0x231c3c=_0xf4e9f9>0x1?void 0x0:_0xf4e9f9?Mn(_0xc739c3,_0x48fe3b):_0xc739c3,_0x28552a=_0x3a9aa4[_0x4d515a(0x13e)]-0x1,_0x502afa;_0x28552a>=0x0;_0x28552a--)(_0x502afa=_0x3a9aa4[_0x28552a])&&(_0x231c3c=_0x502afa(_0x231c3c)||_0x231c3c);return _0x231c3c;},Me=(_0x3a9be9,_0x4e53d7)=>(_0x35dfc5,_0x30b354)=>_0x4e53d7(_0x35dfc5,_0x30b354,_0x3a9be9),wn=(_0x375f35,_0xd8d8f,_0x44d6d0)=>An(_0x375f35,_0xd8d8f+'',_0x44d6d0);const yn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ye=class extends _0x35c973{constructor(_0x18a32f=_t,_0x4796b7,_0x31d740,_0x4bb936){const _0x1413a7=_0x1cd205;super(),this['_config']=_0x18a32f,this[_0x1413a7(0x20b)]=_0x4796b7,this[_0x1413a7(0x25e)]=_0x31d740,this[_0x1413a7(0x2a6)]=_0x4bb936;const {..._0x2389a9}=_0x3892ec({},_t,this[_0x1413a7(0x2c0)]);this[_0x1413a7(0x2a6)][_0x1413a7(0x118)](hn,_0x2389a9);}[_0x1cd205(0x2b6)](){const _0x4574ff=_0x1cd205;this['_registerDependencies'](),this[_0x4574ff(0x100)]();}[_0x1cd205(0xf1)](){const _0x40b991=_0x1cd205;this[_0x40b991(0x2c5)]();}[_0x1cd205(0x111)](){const _0x1b86b6=_0x1cd205;var _0x161a97;const _0x356473=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x2ffa23,{'useClass':_0x1f04b7}],[_0x2215b3,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x1b86b6(0x2c0)][_0x1b86b6(0x13d)]&&_0x356473[_0x1b86b6(0xf4)]([le]),_0x51772f(this[_0x1b86b6(0x25e)],_0x214edc(_0x356473,(_0x161a97=this[_0x1b86b6(0x2c0)])==null?void 0x0:_0x161a97[_0x1b86b6(0x2d6)]));}[_0x1cd205(0x2c5)](){const _0x5658a2=_0x1cd205;this[_0x5658a2(0x270)](this[_0x5658a2(0x20b)]['registerRenderModule'](_0x50e564['UNIVER_DOC'],[Fe])),this[_0x5658a2(0x270)](this[_0x5658a2(0x20b)][_0x5658a2(0x2a3)](_0x50e564[_0x5658a2(0x32e)],[ke]));}[_0x1cd205(0x100)](){const _0x1ef8a9=_0x1cd205;_0x130f51(this[_0x1ef8a9(0x25e)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x1ef8a9(0x2c0)][_0x1ef8a9(0x13d)]&&_0x130f51(this['_injector'],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x444447(_0x11900c),Me(0x1,_0x45ee52),Me(0x2,_0x12d739(_0x238493)),Me(0x3,_0x16a29d)],Ye);var $n=Object[_0x1cd205(0x332)],xn=(_0x1b463d,_0x39d006,_0x27a2e6,_0x3a0872)=>{const _0x18c917=_0x1cd205;for(var _0x4002b2=_0x3a0872>0x1?void 0x0:_0x3a0872?$n(_0x39d006,_0x27a2e6):_0x39d006,_0x38a7c8=_0x1b463d[_0x18c917(0x13e)]-0x1,_0x4d2db1;_0x38a7c8>=0x0;_0x38a7c8--)(_0x4d2db1=_0x1b463d[_0x38a7c8])&&(_0x4002b2=_0x4d2db1(_0x4002b2)||_0x4002b2);return _0x4002b2;},J=(_0x522d4e,_0x32d70c)=>(_0x21b968,_0x1b28e5)=>_0x32d70c(_0x21b968,_0x1b28e5,_0x522d4e);let ut=class extends _0x583df1{constructor(_0x105c25,_0x12d46c,_0x36b4e5,_0x4c30ef,_0x16a6c4){super(_0x105c25,_0x12d46c,_0x36b4e5,_0x4c30ef,_0x16a6c4);}async[_0x1cd205(0x278)](_0x56be77){const _0x32ca7a=_0x1cd205,_0x26393a=await this['_getSessionTicket'](),_0x3cc4af=this['_createSocketURL'](_0x56be77,_0x26393a);return this[_0x32ca7a(0x214)](_0x3cc4af);}[_0x1cd205(0x336)](_0x584e5f,_0x33b98b){const _0x150369=_0x1cd205,_0x28e345=typeof window>'u'?new URL(_0x584e5f):new URL(_0x584e5f,window[_0x150369(0x2fc)][_0x150369(0xef)]);_0x28e345[_0x150369(0x15c)][_0x150369(0x241)](_0x150369(0x11f),_0x33b98b);const _0x17f55f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x150369(0x2fc)]['search']);return _0x17f55f[_0x150369(0x1f8)]('runId')&&_0x28e345[_0x150369(0x15c)]['set'](_0x150369(0x120),_0x17f55f[_0x150369(0x1f8)]('runId')),_0x28e345['toString']();}async[_0x1cd205(0x295)](){const _0x326ea2=_0x1cd205;var _0xbe1167,_0x5194bc,_0x483660;const _0x4fd9dc=this[_0x326ea2(0x2a6)][_0x326ea2(0x17a)](_0x219899),_0x3de3a8=(_0xbe1167=_0x4fd9dc==null?void 0x0:_0x4fd9dc[_0x326ea2(0x201)])!=null?_0xbe1167:_0x38211f;return(_0x483660=(_0x5194bc=(await this['_httpService'][_0x326ea2(0x1f8)](_0x3de3a8,{'headers':{'Content-Type':'application/json'}}))[_0x326ea2(0x134)])==null?void 0x0:_0x5194bc['ticket'])!=null?_0x483660:'';}};ut=xn([J(0x0,_0x12d739(_0x238493)),J(0x1,_0x12d739(_0x7b623c)),J(0x2,_0x16a29d),J(0x3,_0x17e71c),J(0x4,_0x5674ce)],ut);var Bn=Object[_0x1cd205(0x332)],Fn=(_0x5c0cf4,_0x51cbd6,_0x489247,_0x145c90)=>{for(var _0x519a66=_0x145c90>0x1?void 0x0:_0x145c90?Bn(_0x51cbd6,_0x489247):_0x51cbd6,_0x24f3b2=_0x5c0cf4['length']-0x1,_0x117c2b;_0x24f3b2>=0x0;_0x24f3b2--)(_0x117c2b=_0x5c0cf4[_0x24f3b2])&&(_0x519a66=_0x117c2b(_0x519a66)||_0x519a66);return _0x519a66;},Ae=(_0x125030,_0x377d50)=>(_0xb44085,_0x50ca77)=>_0x377d50(_0xb44085,_0x50ca77,_0x125030);let dt=class extends _0x5704a6{constructor(_0x13f484,_0x55107d,_0xe45db8){const _0x1761a7=_0x1cd205;super(),this['_instanceService']=_0x13f484,this[_0x1761a7(0x219)]=_0x55107d,this[_0x1761a7(0x2a6)]=_0xe45db8;}async[_0x1cd205(0x208)](_0x58074b,_0x278e6e,_0xccdd87,..._0x12a138){const _0x51e227=_0x1cd205;var _0x4df90d,_0x288395,_0x1853c8,_0x280ab4;const _0x220aaf=this['_instanceService'][_0x51e227(0xf8)]();if(!_0x220aaf)throw new Error(_0x51e227(0x190));const _0x11cccd=((_0x4df90d=this[_0x51e227(0x2a6)][_0x51e227(0x17a)](_0x296024))!=null?_0x4df90d:_0x3774c2)+'/'+_0x58074b+_0x51e227(0x1ca)+_0x278e6e,_0x36b245=new URL(window[_0x51e227(0x2fc)][_0x51e227(0x302)]),_0x1cb6bb={'scriptId':_0x58074b,'runId':(_0x288395=_0x36b245[_0x51e227(0x15c)][_0x51e227(0x1f8)](_0x51e227(0x120)))!=null?_0x288395:'','function':_0x278e6e,'unitId':_0x220aaf[_0x51e227(0x15f)](),'argsOfFunction':JSON[_0x51e227(0x1ae)](_0x12a138),'invokeId':(_0x1853c8=_0xccdd87[_0x51e227(0x11d)])!=null?_0x1853c8:'','executionId':(_0x280ab4=_0xccdd87[_0x51e227(0x1f7)])!=null?_0x280ab4:''};try{const _0x5c76be=await this['_httpService'][_0x51e227(0x331)](_0x11cccd,{'body':_0x1cb6bb});return _0x5c76be[_0x51e227(0x134)][_0x51e227(0x290)]&&_0x5c76be[_0x51e227(0x134)][_0x51e227(0x290)]['code']!==Z['OK']?_0x51e227(0x14b):_0x5c76be[_0x51e227(0x134)]['result'];}catch{return _0x51e227(0x14b);}}};dt=Fn([Ae(0x0,_0x439541),Ae(0x1,_0x12d739(_0x7b623c)),Ae(0x2,_0x16a29d)],dt);const St=0x7530,It=_0x1cd205(0x196);class rr extends _0x5704a6{constructor(){const _0x3df0e8=_0x1cd205;super(),_(this,'_id',_0xfc2a1c()),_(this,_0x3df0e8(0x285),new Set()),_(this,_0x3df0e8(0x12e),new Map()),_(this,_0x3df0e8(0x321),null),_(this,_0x3df0e8(0x2cc),new Map()),_(this,_0x3df0e8(0x2fb),new Map()),this['_init']();}[_0x1cd205(0x2b5)](){const _0x398207=_0x1cd205;super[_0x398207(0x2b5)](),this[_0x398207(0x2cc)][_0x398207(0x19f)]((_0x59fcb5,_0x4b683f)=>this[_0x398207(0xf0)](_0x4b683f)),this['_heartbeatTimer']&&window[_0x398207(0x280)](this[_0x398207(0x321)]);}[_0x1cd205(0x236)](_0x32ebae){const _0x53f1b4=_0x1cd205;return this[_0x53f1b4(0x318)](_0x32ebae)[_0x53f1b4(0x233)](_0x2a42e8());}[_0x1cd205(0x17e)](_0x112391){const _0x21e52e=_0x1cd205;this['_selfUnitIDs'][_0x21e52e(0x1ad)]===0x0&&this[_0x21e52e(0x33b)](),this[_0x21e52e(0x285)][_0x21e52e(0x2e6)](_0x112391),this[_0x21e52e(0x309)]({'type':0x0,'memberID':this[_0x21e52e(0x2f8)],'unitIDs':[_0x112391],'isForwarded':!0x1});}[_0x1cd205(0x311)](_0x50bde4){const _0x40cea9=_0x1cd205;this[_0x40cea9(0x285)][_0x40cea9(0x2d7)](_0x50bde4),this[_0x40cea9(0x285)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x40cea9(0x280)](this[_0x40cea9(0x321)]);}[_0x1cd205(0x32f)](){const _0x16c4f1=_0x1cd205;this[_0x16c4f1(0x270)](_0x8fe20c(_0x30adbf(window,_0x16c4f1(0x220))['subscribe'](_0x3c9b20=>{const _0x794c4d=_0x16c4f1;if(_0x3c9b20[_0x794c4d(0x1d7)]!==It||!_0x3c9b20[_0x794c4d(0x15e)])return;const _0x304380=JSON[_0x794c4d(0x319)](_0x3c9b20[_0x794c4d(0x15e)]);this[_0x794c4d(0x1cf)](_0x304380);}))),window[_0x16c4f1(0x30d)](_0x16c4f1(0xfb),()=>this[_0x16c4f1(0x309)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x16c4f1(0x18c)](this[_0x16c4f1(0x285)])}));}[_0x1cd205(0x1cf)](_0x405ba2){const _0x518e19=_0x1cd205;switch(_0x405ba2['type']){case 0x0:this[_0x518e19(0x268)](_0x405ba2);break;case 0x1:this['_handleLeaveEvent'](_0x405ba2);break;case 0x2:this[_0x518e19(0x1b3)](_0x405ba2);break;}}['_handleJoinEvent'](_0x29e7ce){const _0xd9516c=_0x1cd205,{unitIDs:_0x23f500,memberID:_0x55a3e8,isForwarded:_0x1e77f3}=_0x29e7ce;_0x23f500[_0xd9516c(0x19f)](_0x31b216=>{const _0x3f35d7=_0xd9516c;if(!_0x1e77f3&&this[_0x3f35d7(0x12e)]['has'](_0x31b216)&&this[_0x3f35d7(0x318)](_0x31b216)[_0x3f35d7(0x308)](_0x2ff06a[_0x3f35d7(0x180)]),!this[_0x3f35d7(0x12e)][_0x3f35d7(0x28c)](_0x31b216)||!this[_0x3f35d7(0x12e)]['get'](_0x31b216)[_0x3f35d7(0x28c)](_0x55a3e8)){const _0x161ddd=this[_0x3f35d7(0x12e)]['get'](_0x31b216)||new Set();_0x161ddd['add'](_0x55a3e8),this[_0x3f35d7(0x12e)][_0x3f35d7(0x241)](_0x31b216,_0x161ddd),this[_0x3f35d7(0x209)](_0x55a3e8);}}),_0x1e77f3||this[_0xd9516c(0x309)]({'type':0x0,'memberID':this[_0xd9516c(0x2f8)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x1cd205(0x209)](_0x56aeee){const _0x3adb2f=_0x1cd205;this[_0x3adb2f(0xf0)](_0x56aeee);const _0x433473=window[_0x3adb2f(0x1bd)](()=>{const _0x1320ea=_0x3adb2f;this[_0x1320ea(0x12e)]['forEach'](_0x1c3066=>{const _0x18c1f8=_0x1320ea;_0x1c3066[_0x18c1f8(0x2d7)](_0x56aeee);});},St*0x2);this[_0x3adb2f(0x2cc)]['set'](_0x56aeee,_0x433473);}['_removeClearOtherTimer'](_0x5d455c){const _0x38b191=_0x1cd205;if(this[_0x38b191(0x2cc)][_0x38b191(0x28c)](_0x5d455c)){const _0x1bcb69=this[_0x38b191(0x2cc)][_0x38b191(0x1f8)](_0x5d455c);_0x1bcb69&&window['clearTimeout'](_0x1bcb69),this[_0x38b191(0x2cc)][_0x38b191(0x241)](_0x5d455c,null);}}[_0x1cd205(0x2a9)](_0x289a00){const _0x5da442=_0x1cd205,{memberID:_0x55b06b,unitIDs:_0x4655cf}=_0x289a00;_0x4655cf[_0x5da442(0x19f)](_0x1fc097=>{const _0x5965b5=_0x5da442;var _0x26f9c8;const _0x4e8e97=this[_0x5965b5(0x12e)][_0x5965b5(0x1f8)](_0x1fc097);_0x4e8e97&&(_0x4e8e97[_0x5965b5(0x2d7)](_0x55b06b),(_0x26f9c8=this['_ensureSubject'](_0x1fc097))==null||_0x26f9c8['next'](_0x4e8e97[_0x5965b5(0x1ad)]===0x0?_0x2ff06a['NO_OTHER_CLIENTS_EDITING']:_0x2ff06a['OTHER_CLIENTS_EDITING']));}),this[_0x5da442(0xf0)](_0x55b06b);}[_0x1cd205(0x1b3)](_0x5854c8){const _0x37e5a6=_0x1cd205;this[_0x37e5a6(0x209)](_0x5854c8[_0x37e5a6(0x10e)]);}[_0x1cd205(0x309)](_0x1bbbbf){const _0x5a167c=_0x1cd205;localStorage['setItem'](It,JSON[_0x5a167c(0x1ae)](_0x1bbbbf));}['_scheduleHeartbeat'](){const _0x193af3=_0x1cd205;this['_heartbeatTimer']=window[_0x193af3(0x12c)](()=>{const _0x4d7322=_0x193af3;this[_0x4d7322(0x309)]({'type':0x2,'memberID':this[_0x4d7322(0x2f8)]});},St);}[_0x1cd205(0x318)](_0x2ca9fe){const _0x51198b=_0x1cd205;return this['_unitStatus']['has'](_0x2ca9fe)||this['_unitStatus'][_0x51198b(0x241)](_0x2ca9fe,new _0x547593(_0x2ff06a[_0x51198b(0x151)])),this[_0x51198b(0x2fb)][_0x51198b(0x1f8)](_0x2ca9fe);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
1
+ const _0x2d19ee=_0x3b77;(function(_0xf99d55,_0x9c8459){const _0x208190=_0x3b77,_0x14acff=_0xf99d55();while(!![]){try{const _0x24b4e3=-parseInt(_0x208190(0x1e6))/0x1*(-parseInt(_0x208190(0x208))/0x2)+parseInt(_0x208190(0x211))/0x3+parseInt(_0x208190(0x1f5))/0x4*(parseInt(_0x208190(0x13f))/0x5)+-parseInt(_0x208190(0x2b7))/0x6*(parseInt(_0x208190(0x255))/0x7)+parseInt(_0x208190(0x1f1))/0x8+parseInt(_0x208190(0x213))/0x9*(-parseInt(_0x208190(0x21a))/0xa)+parseInt(_0x208190(0x32c))/0xb*(-parseInt(_0x208190(0x316))/0xc);if(_0x24b4e3===_0x9c8459)break;else _0x14acff['push'](_0x14acff['shift']());}catch(_0x3ce0ae){_0x14acff['push'](_0x14acff['shift']());}}}(_0x4498,0xbd9fb));var Yt=Object[_0x2d19ee(0x18c)],Wt=(_0x1b3d81,_0x4aa84c,_0x2f974c)=>_0x4aa84c in _0x1b3d81?Yt(_0x1b3d81,_0x4aa84c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f974c}):_0x1b3d81[_0x4aa84c]=_0x2f974c,_=(_0x523605,_0x55d198,_0x22d6ab)=>Wt(_0x523605,typeof _0x55d198!=_0x2d19ee(0x2e2)?_0x55d198+'':_0x55d198,_0x22d6ab);import{jsx as _0x13af06,jsxs as _0x350478}from'react/jsx-runtime';import{CollaborationStatus as _0x14e54a,CollaborationSessionService as _0x431e53,CollaborationController as _0x151f08,DataLoaderService as _0x29e90b,MemberService as _0x50cc3e,SessionStatus as _0x476595,ILocalCacheService as _0x26b1ca,CollaborationUIEventService as _0x195a88,CollaborationUIEventId as _0x54f12f,DocCollaborationEntity as _0x5da887,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x189603,getLocalCacheKey as _0x5850c1,LOCAL_CACHE_INTERVAL as _0x9823a9,LOCAL_CACHE_INTERVAL_KEY as _0x3d4cf4,UniverCollaborationClientPlugin as _0x3b5370,CollaborationSocketService as _0x1caedd,DEFAULT_WS_SESSION_TICKET_URL as _0x3e7782,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x26e0b7,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x36e979,UnitStatus as _0x59d149}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x548920,IUniverInstanceService as _0x5ea64d,Inject as _0x13e3c7,Injector as _0x6717c8,Disposable as _0x55618d,createIdentifier as _0x926075,ILogService as _0x2bfead,ICommandService as _0x44deef,Optional as _0x33a5b3,RxDisposable as _0x5b8c04,Workbook as _0x828b8,DOC_RANGE_TYPE as _0x18a061,debounce as _0x1b4ae8,Rectangle as _0x5e86a6,DisposableCollection as _0x1a4482,toDisposable as _0x5684e2,UniverInstanceType as _0x1de887,generateRandomId as _0x377b4b,COLORS as _0x2aff34,ColorKit as _0x44158f,ThemeService as _0x1331d6,fromEventSubject as _0x5b2081,Tools as _0x2fbfda,CommandType as _0x569143,IConfigService as _0x46a8a4,CanceledError as _0x1dbb9e,isFormulaString as _0x14248c,isFormulaId as _0xcdcb23,ILocalStorageService as _0x12194a,DependentOn as _0x3f4a8a,Plugin as _0x3c443e,merge as _0x2b7521,registerDependencies as _0x2c2aad,mergeOverrideWithDependencies as _0x3b0ae8,touchDependencies as _0x248c4c}from'@univerjs/core';import{useObservable as _0x4db001,useDependency as _0x1efc03,IUIPartsService as _0x97227,BuiltInUIPart as _0xe393a3,connectInjector as _0x350c26,IBeforeCloseService as _0x58a1a6,IMessageService as _0x551408,INotificationService as _0x3ad334}from'@univerjs/ui';import{BehaviorSubject as _0x5689a5,switchMap as _0x1650bc,of as _0x272a51,takeUntil as _0xefe94,debounceTime as _0x5be43e,Subject as _0x233e98,filter as _0x2dc8e8,merge as _0x2a4316,combineLatest as _0x383e72,fromEvent as _0x197cc9,shareReplay as _0x240f5f,mapTo as _0x11e4f1,distinctUntilChanged as _0x52d636}from'rxjs';import{Tooltip as _0x54f95e,clsx as _0x43e4cc,MessageType as _0xe3500e}from'@univerjs/design';import{useRef as _0x24162f,createElement as _0x1b2a1b,forwardRef as _0x1b3544,useCallback as _0x204a71}from'react';import{IRemoteInstanceService as _0x317103}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x5e7345,RefRangeService as _0x14edcb,SetSelectionsOperation as _0x3b568d,SheetsSelectionsService as _0x47686c,EffectRefRangId as _0x114d3,handleIRemoveRow as _0x442d3c,handleIRemoveCol as _0x3fee0c,handleMoveRange as _0x1f2d01,handleInsertRow as _0x26c1a0,handleInsertRangeMoveRight as _0x24380d,handleInsertRangeMoveDown as _0x56e9d2,handleInsertCol as _0xd21edf,handleDeleteRangeMoveUp as _0x1edd71,handleDeleteRangeMoveLeft as _0x5efdb6,runRefRangeMutations as _0x3367c1}from'@univerjs/sheets';import{Shape as _0x5dc12a,Rect as _0x2bdd35,getColor as _0x4c407c,RegularPolygon as _0x36ecd6,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x5e28be,Vector2 as _0x59221c,SHEET_VIEWPORT_KEY as _0x29367b,IRenderManagerService as _0x3e8801}from'@univerjs/engine-render';import{HTTPService as _0x58299b,ISocketService as _0x8a83ca,WebSocketService as _0x1d6857}from'@univerjs/network';import{IDocClipboardService as _0x4f593b,NodePositionConvertToCursor as _0x10e74e,NodePositionConvertToRectRange as _0x2997cf,TEXT_RANGE_LAYER_INDEX as _0x978a3f,SetDocZoomRatioOperation as _0x2d8f9a,DocIMEInputManagerService as _0x57bd0a,DocStateChangeManagerService as _0x7528bc}from'@univerjs/docs-ui';import{IImageIoService as _0x4b07be}from'@univerjs/drawing';import{ITransformService as _0x3990fc,CollaborationEvent as _0x48c478,isTransformMutationFailure as _0xbfd48e,isTransformMutationsWithChangesetSuccess as _0x1f1a8a,RevisionService as _0x1c8bce,ISnapshotServerService as _0x35e927}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x231784,RichTextEditingMutation as _0x41a482,DocSelectionManagerService as _0x318e9f,DocSkeletonManagerService as _0x1ccfa7}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x3f42d5,serializeRangeWithSheet as _0x542bca,FormulaExecuteStageType as _0x5d8674,FormulaExecutedStateType as _0x2ae0c4,SetFormulaCalculationStartMutation as _0x4f8fdb,SetFormulaCalculationNotificationMutation as _0x33cc11}from'@univerjs/engine-formula';import{map as _0x4406a1,filter as _0x53c322,throttleTime as _0x42dfe3,takeUntil as _0xb23e26,switchMap as _0x2c4106}from'rxjs/operators';import{SheetSkeletonManagerService as _0x33de6b,getCoordByCell as _0x412d35,getSheetObject as _0x2cc164}from'@univerjs/sheets-ui';function Ge({ref:_0xc92e74,..._0x316474}){const _0x82fa73=_0x2d19ee,{icon:_0x19c54d,id:_0x4cf573,className:_0x414dd2,extend:_0x8d932b,..._0x1e0faf}=_0x316474,_0x7c0a71=(_0x82fa73(0x31b)+_0x4cf573+'\x20'+(_0x414dd2||''))[_0x82fa73(0x20d)](),_0x2fc3cd=_0x24162f('_'+vi());return At(_0x19c54d,''+_0x4cf573,{'defIds':_0x19c54d[_0x82fa73(0x2cb)],'idSuffix':_0x2fc3cd[_0x82fa73(0x349)]},{'ref':_0xc92e74,'className':_0x7c0a71,..._0x1e0faf},_0x8d932b);}function At(_0x2a31d9,_0x3fe495,_0xd794b5,_0x429547,_0x248b0e){const _0x1ea6f2=_0x2d19ee;return _0x1b2a1b(_0x2a31d9[_0x1ea6f2(0x143)],{'key':_0x3fe495,...gi(_0x2a31d9,_0xd794b5,_0x248b0e),..._0x429547},(Ei(_0x2a31d9,_0xd794b5)[_0x1ea6f2(0x1b2)]||[])['map']((_0x5a0478,_0x3ed1d9)=>At(_0x5a0478,_0x3fe495+'-'+_0x2a31d9[_0x1ea6f2(0x143)]+'-'+_0x3ed1d9,_0xd794b5,void 0x0,_0x248b0e)));}function gi(_0x371add,_0x2e5f5e,_0x424494){const _0xea8bc9=_0x2d19ee,_0x2c36dd={..._0x371add[_0xea8bc9(0x278)]};_0x424494!=null&&_0x424494[_0xea8bc9(0x1d6)]&&_0x2c36dd[_0xea8bc9(0x1be)]==='colorChannel1'&&(_0x2c36dd[_0xea8bc9(0x1be)]=_0x424494[_0xea8bc9(0x1d6)]),_0x371add[_0xea8bc9(0x143)]===_0xea8bc9(0x1ef)&&_0x2c36dd['id']&&(_0x2c36dd['id']=_0x2c36dd['id']+_0x2e5f5e[_0xea8bc9(0x15a)]),Object[_0xea8bc9(0x2c0)](_0x2c36dd)[_0xea8bc9(0x136)](([_0x5adecf,_0x29bf92])=>{const _0x361bb4=_0xea8bc9;_0x5adecf===_0x361bb4(0x1ef)&&typeof _0x29bf92==_0x361bb4(0x132)&&(_0x2c36dd[_0x5adecf]=_0x29bf92[_0x361bb4(0x23b)](/url\(#(.*)\)/,_0x361bb4(0x2e8)+_0x2e5f5e[_0x361bb4(0x15a)]+')'));});const {defIds:_0x305019}=_0x2e5f5e;return!_0x305019||_0x305019['length']===0x0||(_0x371add[_0xea8bc9(0x143)]===_0xea8bc9(0x2fa)&&_0x2c36dd[_0xea8bc9(0x1ed)]&&(_0x2c36dd[_0xea8bc9(0x1ed)]=_0x2c36dd[_0xea8bc9(0x1ed)]+_0x2e5f5e[_0xea8bc9(0x15a)]),Object[_0xea8bc9(0x2c0)](_0x2c36dd)['forEach'](([_0x44c803,_0x34f37e])=>{const _0x53ae8f=_0xea8bc9;typeof _0x34f37e==_0x53ae8f(0x132)&&(_0x2c36dd[_0x44c803]=_0x34f37e[_0x53ae8f(0x23b)](/url\(#(.*)\)/,_0x53ae8f(0x2e8)+_0x2e5f5e[_0x53ae8f(0x15a)]+')'));})),_0x2c36dd;}function Ei(_0x18d73f,_0x421119){const _0x18a6f6=_0x2d19ee;var _0x41fb6b;const {defIds:_0x5abf62}=_0x421119;return!_0x5abf62||_0x5abf62['length']===0x0?_0x18d73f:_0x18d73f[_0x18a6f6(0x143)]===_0x18a6f6(0x2d5)&&((_0x41fb6b=_0x18d73f['children'])!=null&&_0x41fb6b['length'])?{..._0x18d73f,'children':_0x18d73f['children']['map'](_0x2b33ca=>typeof _0x2b33ca[_0x18a6f6(0x278)]['id']==_0x18a6f6(0x132)&&_0x5abf62&&_0x5abf62['includes'](_0x2b33ca[_0x18a6f6(0x278)]['id'])?{..._0x2b33ca,'attrs':{..._0x2b33ca[_0x18a6f6(0x278)],'id':_0x2b33ca[_0x18a6f6(0x278)]['id']+_0x421119['idSuffix']}}:_0x2b33ca)}:_0x18d73f;}function vi(){const _0x11c765=_0x2d19ee;return Math[_0x11c765(0x19f)]()['toString'](0x24)['substring'](0x2,0x8);}Ge['displayName']='UniverIcon';const pi={'tag':'svg','attrs':{'xmlns':_0x2d19ee(0x26d),'fill':_0x2d19ee(0x29b),'viewBox':_0x2d19ee(0x209),'width':_0x2d19ee(0x34d),'height':_0x2d19ee(0x34d)},'children':[{'tag':'g','attrs':{'clipPath':_0x2d19ee(0x371)},'children':[{'tag':_0x2d19ee(0x2a2),'attrs':{'stroke':_0x2d19ee(0x1eb),'d':_0x2d19ee(0x1ff),'strokeLinecap':_0x2d19ee(0x2ab),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2d19ee(0x2d5),'attrs':{},'children':[{'tag':_0x2d19ee(0x1b9),'attrs':{'id':_0x2d19ee(0x24d)},'children':[{'tag':_0x2d19ee(0x2a2),'attrs':{'fill':_0x2d19ee(0x385),'d':_0x2d19ee(0x341)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Pt=_0x1b3544(function(_0x324bab,_0x4881df){const _0x497cdd=_0x2d19ee;return _0x1b2a1b(Ge,Object[_0x497cdd(0x20b)]({},_0x324bab,{'id':_0x497cdd(0x149),'ref':_0x4881df,'icon':pi}));});Pt['displayName']='OffLineIcon';const Oi={'tag':'svg','attrs':{'xmlns':_0x2d19ee(0x26d),'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x2d19ee(0x34d),'height':_0x2d19ee(0x34d)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x2d19ee(0x2a2),'attrs':{'stroke':_0x2d19ee(0x1eb),'d':_0x2d19ee(0x31c),'strokeLinecap':_0x2d19ee(0x2ab),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2d19ee(0x1b9),'attrs':{'id':_0x2d19ee(0x13b)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x2d19ee(0x341),'transform':_0x2d19ee(0x2b1)}}]}]}],'defIds':[_0x2d19ee(0x13b)]},wt=_0x1b3544(function(_0x1e2834,_0x1efcf0){const _0x3a0b15=_0x2d19ee;return _0x1b2a1b(Ge,Object['assign']({},_0x1e2834,{'id':_0x3a0b15(0x1f4),'ref':_0x1efcf0,'icon':Oi}));});wt[_0x2d19ee(0x321)]=_0x2d19ee(0x147);function Ti(_0xf1464c){const _0x58e388=_0x2d19ee;switch(_0xf1464c){case _0x14e54a[_0x58e388(0x370)]:return _0x58e388(0x35a);case _0x14e54a['CONFLICT']:return _0x58e388(0x1c5);case _0x14e54a[_0x58e388(0x342)]:return _0x58e388(0x314);case _0x14e54a[_0x58e388(0x130)]:return'collabStatus.notCollab';case _0x14e54a['AWAITING']:case _0x14e54a[_0x58e388(0x274)]:return _0x58e388(0x2e4);case _0x14e54a[_0x58e388(0x29c)]:case _0x14e54a[_0x58e388(0x338)]:return'collabStatus.synced';}}function Ci(_0x5c4d90){const _0x2fc783=_0x2d19ee,{status$:_0x275023}=_0x5c4d90,_0xd83c4=_0x4db001(_0x275023,_0x14e54a[_0x2fc783(0x130)]),_0x24e969=_0x1efc03(_0x548920),_0x58f16b=_0x1efc03(_0x431e53),_0x563bbb=_0xd83c4!==_0x14e54a[_0x2fc783(0x370)],_0x49b1d4=_0x24e969['t'](Ti(_0xd83c4)),_0x63d40e=_0x563bbb?_0x13af06(wt,{}):_0x13af06(Pt,{}),_0x534432=_0x204a71(()=>{const _0x250563=_0x2fc783;_0x563bbb||_0x58f16b[_0x250563(0x358)]();},[_0x563bbb,_0x58f16b]);function _0x539232(){const _0x4abcc9=_0x2fc783;return _0x350478(_0x4abcc9(0x168),{'className':_0x4abcc9(0x19c),'onClick':_0x534432,'children':[_0x13af06(_0x4abcc9(0x168),{'className':_0x43e4cc(_0x4abcc9(0x297),{'univer-text-green-500':_0x563bbb,'univer-text-red-500':!_0x563bbb}),'children':_0x63d40e}),_0x13af06('div',{'className':_0x4abcc9(0x257),'children':_0x49b1d4})]});}return _0x563bbb?_0x539232():_0x13af06(_0x54f95e,{'title':_0x24e969['t']('collab-client.tooltip.reconnect'),'children':_0x539232()});}var Ri=Object[_0x2d19ee(0x2a7)],Di=(_0x4147cc,_0xb6d86c,_0x447ead,_0x35cb94)=>{for(var _0x42b4c0=_0x35cb94>0x1?void 0x0:_0x35cb94?Ri(_0xb6d86c,_0x447ead):_0xb6d86c,_0x2d3768=_0x4147cc['length']-0x1,_0x1a2fb3;_0x2d3768>=0x0;_0x2d3768--)(_0x1a2fb3=_0x4147cc[_0x2d3768])&&(_0x42b4c0=_0x1a2fb3(_0x42b4c0)||_0x42b4c0);return _0x42b4c0;},se=(_0x5de384,_0x165912)=>(_0x7c8ec8,_0x8b5a7c)=>_0x165912(_0x7c8ec8,_0x8b5a7c,_0x5de384);let ae=class extends _0x55618d{constructor(_0x585adc,_0x7af9d2,_0x1131b5,_0x4291a7){const _0x2aa964=_0x2d19ee;super(),_(this,_0x2aa964(0x2d7),new _0x5689a5(_0x14e54a[_0x2aa964(0x130)])),(this[_0x2aa964(0x17f)]=_0x585adc,this[_0x2aa964(0x2b2)]=_0x7af9d2,this[_0x2aa964(0x156)]=_0x1131b5,this['_uiPartsService']=_0x4291a7,this[_0x2aa964(0x18e)](),this[_0x2aa964(0x2d1)]());}[_0x2d19ee(0x2d1)](){const _0x556679=_0x2d19ee;this[_0x556679(0x1b6)](this['_univerInstanceService'][_0x556679(0x26b)][_0x556679(0x359)](_0x1650bc(()=>{const _0x980042=_0x556679,_0x28cfb3=this[_0x980042(0x17f)][_0x980042(0x17b)]();return _0x28cfb3?this['_collaborationController'][_0x980042(0x148)](_0x28cfb3[_0x980042(0x377)]()):_0x272a51(null);}),_0x1650bc(_0x14a7ec=>_0x14a7ec?_0x14a7ec[_0x556679(0x305)]:_0x272a51(_0x14e54a[_0x556679(0x130)])))['subscribe'](_0x48b82e=>{const _0x42796b=_0x556679;this[_0x42796b(0x2d7)]['next'](_0x48b82e);}));}['_initStatusComponent'](){const _0x20f055=_0x2d19ee;this[_0x20f055(0x1b6)](this[_0x20f055(0x16d)][_0x20f055(0x1ac)](_0xe393a3[_0x20f055(0x15b)],()=>_0x350c26(Ni({'status$':this[_0x20f055(0x2d7)][_0x20f055(0x27b)]()}),this['_injector'])));}};ae=Di([se(0x0,_0x5ea64d),se(0x1,_0x13e3c7(_0x6717c8)),se(0x2,_0x13e3c7(_0x151f08)),se(0x3,_0x97227)],ae);function Ni(_0x48c6d1){const {status$:_0x24a863}=_0x48c6d1;return function(){return _0x13af06(Ci,{'status$':_0x24a863});};}function _0x3b77(_0x495d42,_0x58f022){_0x495d42=_0x495d42-0x12e;const _0x449872=_0x4498();let _0x3b7737=_0x449872[_0x495d42];return _0x3b7737;}const yt=_0x926075(_0x2d19ee(0x258));var bi=Object[_0x2d19ee(0x2a7)],Li=(_0x3b574f,_0x3577ae,_0x37f3ad,_0x32370a)=>{for(var _0x4559b5=_0x32370a>0x1?void 0x0:_0x32370a?bi(_0x3577ae,_0x37f3ad):_0x3577ae,_0x3fe8aa=_0x3b574f['length']-0x1,_0x43e158;_0x3fe8aa>=0x0;_0x3fe8aa--)(_0x43e158=_0x3b574f[_0x3fe8aa])&&(_0x4559b5=_0x43e158(_0x4559b5)||_0x4559b5);return _0x4559b5;},K=(_0x3bf197,_0x4af006)=>(_0x461226,_0x33cfe7)=>_0x4af006(_0x461226,_0x33cfe7,_0x3bf197);let ce=class extends _0x5b8c04{constructor(_0x2449f7,_0x3c62ac,_0x45e227,_0x2684de,_0x4f2bc4){const _0x11190c=_0x2d19ee;super(),this[_0x11190c(0x354)]=_0x2449f7,this['_logService']=_0x3c62ac,this[_0x11190c(0x162)]=_0x45e227,this['_dataLoaderService']=_0x2684de,_0x4f2bc4?_0x4f2bc4==null||_0x4f2bc4[_0x11190c(0x159)]()['then'](()=>this['_init']()):(this[_0x11190c(0x244)][_0x11190c(0x1f7)](_0x11190c(0x15d),_0x11190c(0x1d4)),this[_0x11190c(0x1e9)]());}async['_init'](){const _0x21298f=_0x2d19ee,_0x5f4f18=this[_0x21298f(0x354)][_0x21298f(0x172)](_0x21298f(0x235)),_0x3b9424=this[_0x21298f(0x354)]['getParam'](_0x21298f(0x164)),_0x1d76a3=this[_0x21298f(0x354)]['getParam'](_0x21298f(0x261));if(!_0x5f4f18||!_0x3b9424){this['_logService']['debug']('[CollaborationDataLoaderController]',_0x21298f(0x2a6));return;}const _0x38d3aa=await this[_0x21298f(0x2e9)][_0x21298f(0x154)](_0x5f4f18,Number(_0x3b9424),_0x1d76a3);_0x38d3aa&&_0x38d3aa instanceof _0x828b8&&this[_0x21298f(0x315)](_0x38d3aa);}async[_0x2d19ee(0x315)](_0x305d26){const _0x42f09e=_0x2d19ee;await this[_0x42f09e(0x33c)](_0x305d26),_0x305d26['activeSheet$'][_0x42f09e(0x359)](_0xefe94(this[_0x42f09e(0x339)]))['subscribe'](_0x17ed7f=>{const _0x5b25c9=_0x42f09e;_0x17ed7f&&this[_0x5b25c9(0x32f)](_0x17ed7f);}),this[_0x42f09e(0x354)][_0x42f09e(0x34f)][_0x42f09e(0x359)](_0xefe94(this[_0x42f09e(0x339)]))[_0x42f09e(0x150)](()=>this[_0x42f09e(0x33c)](_0x305d26));}[_0x2d19ee(0x32f)](_0x187158,_0x5b6825=!0x1){const _0x5e11e0=_0x2d19ee,_0xc8acc6=this['_urlService']['getParam'](_0x5e11e0(0x261));_0x187158[_0x5e11e0(0x2e6)]()!==_0xc8acc6&&this['_urlService'][_0x5e11e0(0x1f6)](_0x5e11e0(0x261),_0x187158['getSheetId'](),_0x5b6825);}async[_0x2d19ee(0x33c)](_0x291d6b){const _0x4ba364=_0x2d19ee;var _0xeaaa63;const _0x1941e7=this['_urlService'][_0x4ba364(0x172)](_0x4ba364(0x261));if(!_0x1941e7||!_0x291d6b['getSheetBySheetId'](_0x1941e7)){const _0x596227=_0x291d6b[_0x4ba364(0x1e3)]()[0x0],_0x52ac8b=_0x291d6b[_0x4ba364(0x275)](_0x596227);if(!_0x52ac8b)return;this[_0x4ba364(0x32f)](_0x52ac8b,!0x0),await this[_0x4ba364(0x162)]['executeCommand'](_0x5e7345['id'],{'unitId':_0x291d6b['getUnitId'](),'subUnitId':_0x596227});return;}((_0xeaaa63=_0x291d6b[_0x4ba364(0x273)]())==null?void 0x0:_0xeaaa63[_0x4ba364(0x2e6)]())!==_0x1941e7&&await this[_0x4ba364(0x162)][_0x4ba364(0x16a)](_0x5e7345['id'],{'unitId':_0x291d6b[_0x4ba364(0x377)](),'subUnitId':_0x1941e7});}};ce=Li([K(0x0,yt),K(0x1,_0x2bfead),K(0x2,_0x44deef),K(0x3,_0x13e3c7(_0x29e90b)),K(0x4,_0x33a5b3(_0x317103))],ce);var Ui=Object[_0x2d19ee(0x2a7)],Mi=(_0x58e900,_0x2d1bae,_0x57dc17,_0x11b1f2)=>{const _0x559028=_0x2d19ee;for(var _0xa3b5af=_0x11b1f2>0x1?void 0x0:_0x11b1f2?Ui(_0x2d1bae,_0x57dc17):_0x2d1bae,_0x34b2dd=_0x58e900[_0x559028(0x375)]-0x1,_0x3bc50d;_0x34b2dd>=0x0;_0x34b2dd--)(_0x3bc50d=_0x58e900[_0x34b2dd])&&(_0xa3b5af=_0x3bc50d(_0xa3b5af)||_0xa3b5af);return _0xa3b5af;},rt=(_0x4b00db,_0x2eff46)=>(_0x85a7cc,_0x33e5b5)=>_0x2eff46(_0x85a7cc,_0x33e5b5,_0x4b00db);let $e=class extends _0x5b8c04{constructor(_0x226cfa,_0x5d0f7a){const _0x520808=_0x2d19ee;super(),this[_0x520808(0x22b)]=_0x226cfa,this['_imageIoService']=_0x5d0f7a,this[_0x520808(0x1e9)]();}[_0x2d19ee(0x1e9)](){const _0x9a31ca=_0x2d19ee,_0xfaa1fc=this;this['disposeWithMe'](this[_0x9a31ca(0x22b)][_0x9a31ca(0x194)]({'onBeforePasteImage':async _0xf86f=>{const _0x3d977d=_0x9a31ca,_0x372908=await _0xfaa1fc[_0x3d977d(0x1a8)]['saveImage'](_0xf86f);return _0x372908?{'source':_0x372908['source'],'imageSourceType':_0x372908[_0x3d977d(0x135)]}:null;}}));}};$e=Mi([rt(0x0,_0x4f593b),rt(0x1,_0x4b07be)],$e);const ot=[_0x2d19ee(0x306),_0x2d19ee(0x28e),_0x2d19ee(0x228),'red.300',_0x2d19ee(0x2ee),_0x2d19ee(0x17e)];class Ke extends _0x55618d{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}[_0x2d19ee(0x267)](_0x40acbb){const _0x4c8a37=_0x2d19ee;if(this['_assignedColors']['has'](_0x40acbb))return this['_assignedColors'][_0x4c8a37(0x1a4)](_0x40acbb);const _0x39f607=ot[this[_0x4c8a37(0x301)]];return this[_0x4c8a37(0x301)]=(this[_0x4c8a37(0x301)]+0x1)%ot['length'],this[_0x4c8a37(0x1f0)]['set'](_0x40acbb,_0x39f607),_0x39f607;}}function $t(_0xc22d0){const _0x2c9473=_0x2d19ee;let _0x343932='';for(const _0x59f08c of _0xc22d0){const {startOffset:_0x178db6,endOffset:_0xf4352c,isActive:_0x452d75,rangeType:_0x13666e,segmentId:_0x366bc6,segmentPage:_0xef9c6c}=_0x59f08c;_0x343932[_0x2c9473(0x375)]&&(_0x343932+=','),_0x343932+=_0x178db6+':'+_0xf4352c+':'+(_0x452d75?'1':'0')+':'+_0x13666e+':'+_0x366bc6+':'+_0xef9c6c;}return _0x343932;}function Ai(_0x489dd3){const _0x22a264=_0x2d19ee,_0x195122=_0x489dd3[_0x22a264(0x223)](','),_0xa0cd0f=[];for(const _0x452fc6 of _0x195122){const [_0x1dd0ad,_0x1d42c0,_0x1ac622,_0x17ee72,_0x32e4b0,_0x2adb58]=_0x452fc6[_0x22a264(0x223)](':');_0xa0cd0f[_0x22a264(0x1bb)]({'startOffset':Number(_0x1dd0ad),'endOffset':Number(_0x1d42c0),'collapsed':_0x1dd0ad===_0x1d42c0,'isActive':_0x1ac622==='1','rangeType':_0x17ee72===_0x18a061['TEXT']?_0x18a061[_0x22a264(0x21f)]:_0x18a061[_0x22a264(0x1d8)],'segmentId':typeof _0x32e4b0==_0x22a264(0x132)?String(_0x32e4b0):'','segmentPage':Number(_0x2adb58!=null?_0x2adb58:-0x1)});}return _0xa0cd0f['some'](_0x953d6d=>_0x953d6d[_0x22a264(0x1b8)])||(_0xa0cd0f[0x0][_0x22a264(0x1b8)]=!0x0),_0xa0cd0f;}class ze extends _0x5b8c04{constructor(){const _0x5c5301=_0x2d19ee;super(...arguments),_(this,_0x5c5301(0x2de),new _0x5689a5(null)),_(this,_0x5c5301(0x2dc),this['_collabCursorState$'][_0x5c5301(0x27b)]());}['syncEditingCollabCursor'](_0xa88ba9){const _0x1fc8af=_0x2d19ee,{unitID:_0x16a303,memberID:_0x132aec,textRanges:_0x19d6bd}=_0xa88ba9,_0x1c2bf0=$t(_0x19d6bd);if(_0x1c2bf0==='')return;const _0x3ae1a9={'unitID':_0x16a303,'memberID':_0x132aec,'selection':_0x1c2bf0};this['_collabCursorState$'][_0x1fc8af(0x1a9)](_0x3ae1a9);}}var Pi=Object[_0x2d19ee(0x2a7)],wi=(_0x42c420,_0x3f71af,_0x152013,_0x59352b)=>{const _0x15c1ab=_0x2d19ee;for(var _0x1ab8a6=_0x59352b>0x1?void 0x0:_0x59352b?Pi(_0x3f71af,_0x152013):_0x3f71af,_0x3c5025=_0x42c420[_0x15c1ab(0x375)]-0x1,_0xcbb8e4;_0x3c5025>=0x0;_0x3c5025--)(_0xcbb8e4=_0x42c420[_0x3c5025])&&(_0x1ab8a6=_0xcbb8e4(_0x1ab8a6)||_0x1ab8a6);return _0x1ab8a6;},A=(_0x35d785,_0x5dccc0)=>(_0x453bdb,_0x590021)=>_0x5dccc0(_0x453bdb,_0x590021,_0x35d785);const yi=0x12c,$i=0x64;let xe=class extends _0x5b8c04{constructor(_0xff6ff,_0x4b1055,_0xdccaa6,_0xe66107,_0x1afff0,_0x381aad,_0x51c78a,_0x5be8fd,_0x5a0ae8){const _0x536b0a=_0x2d19ee;super(),_(this,_0x536b0a(0x2a1),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new _0x5689a5(new Map())),_(this,'cursorInfo$',this['_cursorInfo$'][_0x536b0a(0x27b)]()),_(this,_0x536b0a(0x229),new _0x5689a5([])),_(this,_0x536b0a(0x265),this[_0x536b0a(0x229)][_0x536b0a(0x359)](_0x5be43e(yi))),_(this,_0x536b0a(0x2bf),_0x1b4ae8(_0x5cbcda=>{const _0x2e00f6=_0x536b0a,_0xc59269={'eventID':_0x48c478[_0x2e00f6(0x141)],'data':{'unitID':this['unitID'],'memberID':this[_0x2e00f6(0x337)]['getMemberID'](),'selection':$t(_0x5cbcda)}};this[_0x2e00f6(0x337)][_0x2e00f6(0x16e)](_0xc59269,this['unitID']);},$i)),(this[_0x536b0a(0x369)]=_0xff6ff,this[_0x536b0a(0x337)]=_0x4b1055,this[_0x536b0a(0x2b2)]=_0xdccaa6,this[_0x536b0a(0x1e7)]=_0xe66107,this[_0x536b0a(0x268)]=_0x1afff0,this[_0x536b0a(0x33b)]=_0x381aad,this[_0x536b0a(0x2f6)]=_0x51c78a,this[_0x536b0a(0x17f)]=_0x5be8fd,this['_commandService']=_0x5a0ae8);}get[_0x2d19ee(0x344)](){const _0x1a3616=_0x2d19ee;return this[_0x1a3616(0x2eb)][_0x1a3616(0x378)]();}get[_0x2d19ee(0x2d2)](){const _0x5a59b9=_0x2d19ee;return this['_roomMembers$'][_0x5a59b9(0x378)]();}[_0x2d19ee(0x2cf)](){const _0x1ae3b6=_0x2d19ee;super['dispose'](),this[_0x1ae3b6(0x2eb)][_0x1ae3b6(0x1a9)](new Map()),this[_0x1ae3b6(0x2eb)][_0x1ae3b6(0x2a5)](),this[_0x1ae3b6(0x229)][_0x1ae3b6(0x1a9)]([]),this['_roomMembers$'][_0x1ae3b6(0x2a5)]();}[_0x2d19ee(0x155)](){const _0x53e333=_0x2d19ee;this[_0x53e333(0x1e9)]||(this[_0x53e333(0x1e9)]=!0x0,this[_0x53e333(0x337)][_0x53e333(0x351)]['pipe'](_0xefe94(this['dispose$']))[_0x53e333(0x150)](_0x3be386=>{const _0x52a13f=_0x53e333;_0x3be386===_0x476595[_0x52a13f(0x1d5)]?this[_0x52a13f(0x24f)]():this[_0x52a13f(0x1bc)]();}),this[_0x53e333(0x337)][_0x53e333(0x246)][_0x53e333(0x359)](_0xefe94(this[_0x53e333(0x339)]))[_0x53e333(0x150)](_0x579e85=>{const _0x3035ac=_0x53e333,_0x331905=_0x579e85[_0x3035ac(0x33a)];_0x331905===_0x48c478[_0x3035ac(0x141)]&&this['_onCursorUpdate'](_0x579e85),_0x331905===_0x48c478[_0x3035ac(0x284)]&&this['_onCursorDelete'](_0x579e85);}),this['disposeWithMe'](this['_commandService'][_0x53e333(0x21e)](_0x1b44c8=>{const _0xca1ef4=_0x53e333,_0x5756f7=_0x1b44c8[_0xca1ef4(0x19b)];_0x5756f7!=null&&this[_0xca1ef4(0x2a1)]&&_0x1b44c8['id']===_0x231784['id']&&_0x5756f7[_0xca1ef4(0x352)]===this['unitID']&&_0x5756f7[_0xca1ef4(0x2c9)]===!0x1&&_0x5756f7[_0xca1ef4(0x2d4)]['length']>0x0&&this[_0xca1ef4(0x2bf)](_0x5756f7[_0xca1ef4(0x2d4)]);})),this[_0x53e333(0x33b)][_0x53e333(0x2dc)][_0x53e333(0x359)](_0xefe94(this['dispose$']))['subscribe'](_0x99354b=>{const _0x57ce8d=_0x53e333;if((_0x99354b==null?void 0x0:_0x99354b['unitID'])!==this[_0x57ce8d(0x369)])return;const _0x4d48f1={'eventID':_0x48c478['UPDATE_CURSOR'],'data':_0x99354b};this[_0x57ce8d(0x324)](_0x4d48f1);}),this[_0x53e333(0x1b6)](this[_0x53e333(0x162)][_0x53e333(0x21e)](_0x307512=>{const _0x178961=_0x53e333;if(_0x307512[_0x178961(0x19b)]==null)return;const _0x5dd176=_0x307512[_0x178961(0x19b)];if(_0x307512['id']!==_0x41a482['id']||_0x5dd176[_0x178961(0x352)]!==this[_0x178961(0x369)])return;const _0x3a186c={'id':'doc.mutation.rich-text-editing','params':_0x5dd176},_0x5acc3a=this[_0x178961(0x344)];for(const [_0x42064e,_0x42b25a]of _0x5acc3a){const _0x1bd933={'id':_0x178961(0x12f),'params':{'unitId':this[_0x178961(0x369)],'actions':null,'textRanges':_0x42b25a[_0x178961(0x2d4)]}},_0x4f1b54=this[_0x178961(0x2f6)][_0x178961(0x1d9)](_0x3a186c,_0x1bd933,!0x1);if(_0xbfd48e(_0x4f1b54))throw _0x4f1b54['error'];_0x5acc3a['set'](_0x42064e,{..._0x42b25a,'ranges':_0x4f1b54[_0x178961(0x2cc)][_0x178961(0x19b)]['textRanges']});}queueMicrotask(()=>{const _0x11f23a=_0x178961;this[_0x11f23a(0x2eb)][_0x11f23a(0x1a9)](_0x5acc3a);});})));}['_onCursorUpdate'](_0x1ca262){const _0x3dd18b=_0x2d19ee;var _0x55525f,_0x2e7bf8;const {memberID:_0x308034,selection:_0x5b8179}=_0x1ca262[_0x3dd18b(0x2d3)],_0x34ef10=Ai(_0x5b8179),_0xfcaf4=(_0x2e7bf8=(_0x55525f=this[_0x3dd18b(0x268)]['getMember'](this[_0x3dd18b(0x369)],_0x308034))==null?void 0x0:_0x55525f[_0x3dd18b(0x28a)])!=null?_0x2e7bf8:_0x3dd18b(0x2b6),_0x433957={'color':this[_0x3dd18b(0x1e7)][_0x3dd18b(0x267)](_0x308034),'name':_0xfcaf4,'ranges':_0x34ef10},_0x5a9e65=this[_0x3dd18b(0x344)];_0x5a9e65['set'](_0x308034,_0x433957),this[_0x3dd18b(0x2eb)]['next'](_0x5a9e65);}[_0x2d19ee(0x1bf)](_0x31d479){const _0x26666a=_0x2d19ee,{memberID:_0x8207de}=_0x31d479['data'],_0x1d7ba8=this[_0x26666a(0x344)];_0x1d7ba8[_0x26666a(0x20a)](_0x8207de),this['_cursorInfo$'][_0x26666a(0x1a9)](_0x1d7ba8);}['_toggleOnline'](){const _0x27a8f4=_0x2d19ee;var _0x48d5b9;if(this['_online']=!0x0,((_0x48d5b9=this[_0x27a8f4(0x17f)][_0x27a8f4(0x17b)]())==null?void 0x0:_0x48d5b9[_0x27a8f4(0x377)]())!==this['unitID'])return;const _0x1d5d50=this['_injector'][_0x27a8f4(0x1a4)](_0x318e9f)['getDocRanges']();Array[_0x27a8f4(0x1c8)](_0x1d5d50)&&_0x1d5d50['length']>0x0&&this[_0x27a8f4(0x2bf)](_0x1d5d50);}['_toggleOffline'](){const _0x39e8b2=_0x2d19ee;this[_0x39e8b2(0x2a1)]=!0x1;}};xe=wi([A(0x2,_0x13e3c7(_0x6717c8)),A(0x3,_0x13e3c7(Ke)),A(0x4,_0x13e3c7(_0x50cc3e)),A(0x5,_0x13e3c7(ze)),A(0x6,_0x3990fc),A(0x7,_0x5ea64d),A(0x8,_0x44deef)],xe);var xi=Object[_0x2d19ee(0x2a7)],Bi=(_0x4cb8db,_0x1a5725,_0x30938d,_0x1fbff0)=>{for(var _0x1c494b=_0x1fbff0>0x1?void 0x0:_0x1fbff0?xi(_0x1a5725,_0x30938d):_0x1a5725,_0x5b4857=_0x4cb8db['length']-0x1,_0x3e18aa;_0x5b4857>=0x0;_0x5b4857--)(_0x3e18aa=_0x4cb8db[_0x5b4857])&&(_0x1c494b=_0x3e18aa(_0x1c494b)||_0x1c494b);return _0x1c494b;},B=(_0x48e32f,_0x1c121c)=>(_0x5214c7,_0x41ff08)=>_0x1c121c(_0x5214c7,_0x41ff08,_0x48e32f);const Fi=0x12c,ki=0x64,Hi=()=>{let _0xefb2cd=[],_0x116d10=!0x1;return _0x7051ed=>{const _0x2047a7=_0x3b77;_0xefb2cd[_0x2047a7(0x1bb)](_0x7051ed),_0x116d10||(_0x116d10=!0x0,setTimeout(()=>{_0xefb2cd['forEach'](_0x17e8cf=>_0x17e8cf()),_0xefb2cd=[],_0x116d10=!0x1;}));};};let Be=class extends _0x5b8c04{constructor(_0x4a1246,_0x23a247,_0x4637bd,_0x27cf16,_0x158d33,_0x1e2809,_0x55f71c,_0x3ac80d){const _0x3a8ff1=_0x2d19ee;super(),_(this,_0x3a8ff1(0x2a1),!0x1),_(this,_0x3a8ff1(0x1e9),!0x1),_(this,_0x3a8ff1(0x2eb),new _0x5689a5(new Map())),_(this,_0x3a8ff1(0x2a9),this['_cursorInfo$'][_0x3a8ff1(0x27b)]()),_(this,'_roomMembers$',new _0x5689a5([])),_(this,_0x3a8ff1(0x265),this[_0x3a8ff1(0x229)]['pipe'](_0x5be43e(Fi))),_(this,_0x3a8ff1(0x2bf),_0x1b4ae8((_0x1a971c,_0x4634aa)=>{const _0xedf9ff=_0x3a8ff1,_0x5a0137={'eventID':_0x48c478[_0xedf9ff(0x141)],'data':{'unitID':this[_0xedf9ff(0x369)],'memberID':this['_session'][_0xedf9ff(0x151)](),'selection':_0x542bca(_0x1a971c,_0x4634aa[_0xedf9ff(0x186)])}};this[_0xedf9ff(0x337)]['send'](_0x5a0137,this[_0xedf9ff(0x369)]);},ki)),(this[_0x3a8ff1(0x369)]=_0x4a1246,this[_0x3a8ff1(0x337)]=_0x23a247,this['_injector']=_0x4637bd,this[_0x3a8ff1(0x1e7)]=_0x27cf16,this[_0x3a8ff1(0x268)]=_0x158d33,this[_0x3a8ff1(0x17f)]=_0x1e2809,this[_0x3a8ff1(0x162)]=_0x55f71c,this[_0x3a8ff1(0x308)]=_0x3ac80d);}get[_0x2d19ee(0x344)](){const _0x92a995=_0x2d19ee;return this['_cursorInfo$'][_0x92a995(0x378)]();}get['roomMembers'](){const _0x2f79b2=_0x2d19ee;return this['_roomMembers$'][_0x2f79b2(0x378)]();}[_0x2d19ee(0x2cf)](){const _0x45c467=_0x2d19ee;super[_0x45c467(0x2cf)](),this[_0x45c467(0x2eb)][_0x45c467(0x1a9)](new Map()),this['_cursorInfo$'][_0x45c467(0x2a5)](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0x45c467(0x2a5)]();}['init'](){const _0x52e5cc=_0x2d19ee;this[_0x52e5cc(0x1e9)]||(this[_0x52e5cc(0x1e9)]=!0x0,this[_0x52e5cc(0x337)][_0x52e5cc(0x351)]['pipe'](_0xefe94(this[_0x52e5cc(0x339)]))['subscribe'](_0x5a3da4=>{const _0x5609fd=_0x52e5cc;_0x5a3da4===_0x476595[_0x5609fd(0x1d5)]?this[_0x5609fd(0x24f)]():this[_0x5609fd(0x1bc)]();}),this[_0x52e5cc(0x337)][_0x52e5cc(0x246)]['pipe'](_0xefe94(this[_0x52e5cc(0x339)]))[_0x52e5cc(0x150)](_0x4a10bb=>{const _0x1fa8d5=_0x52e5cc,_0x44e94d=_0x4a10bb['eventID'];_0x44e94d===_0x48c478[_0x1fa8d5(0x141)]&&this[_0x1fa8d5(0x324)](_0x4a10bb),_0x44e94d===_0x48c478['USERS_LEAVE']&&this['_onCursorDelete'](_0x4a10bb);}),this[_0x52e5cc(0x133)](),this[_0x52e5cc(0x1b6)](this[_0x52e5cc(0x162)][_0x52e5cc(0x21e)](_0x113298=>{const _0x462820=_0x52e5cc;if(this['_online']&&_0x113298['id']===_0x3b568d['id']&&_0x113298[_0x462820(0x19b)]['unitId']===this['unitID']){const _0x25091a=_0x113298['params'];this[_0x462820(0x2bf)](_0x25091a['subUnitId'],_0x25091a[_0x462820(0x331)][0x0]);}})));}[_0x2d19ee(0x324)](_0x5595c4){const _0x3916d0=_0x2d19ee;var _0x50131a,_0x55fc69;const {memberID:_0xc67e23,selection:_0x1504e3}=_0x5595c4[_0x3916d0(0x2d3)],{sheetName:_0x331cab,range:_0x116c6c}=_0x3f42d5(_0x1504e3),_0x12b7f6={'name':(_0x55fc69=(_0x50131a=this['_memberService'][_0x3916d0(0x2ad)](this[_0x3916d0(0x369)],_0xc67e23))==null?void 0x0:_0x50131a[_0x3916d0(0x28a)])!=null?_0x55fc69:'Unknown\x20user','range':this[_0x3916d0(0x381)](_0x331cab,_0x116c6c),'sheetID':_0x331cab,'color':this[_0x3916d0(0x1e7)]['assignAColorForMemberID'](_0xc67e23),'selection':_0x1504e3},_0x66b4c5=this[_0x3916d0(0x344)];_0x66b4c5[_0x3916d0(0x165)](_0xc67e23,_0x12b7f6),this[_0x3916d0(0x2eb)][_0x3916d0(0x1a9)](_0x66b4c5);}[_0x2d19ee(0x1bf)](_0x258b2c){const _0x14975e=_0x2d19ee,{memberID:_0x273128}=_0x258b2c[_0x14975e(0x2d3)],_0x47a572=this['cursorInfo'];_0x47a572['delete'](_0x273128),this[_0x14975e(0x2eb)][_0x14975e(0x1a9)](_0x47a572);}[_0x2d19ee(0x381)](_0x205ebf,_0x48f68a){const _0x14d71f=_0x2d19ee;var _0x5ea982,_0x39b1b0;const _0x36fae9=(_0x39b1b0=(_0x5ea982=this[_0x14d71f(0x17f)][_0x14d71f(0x1b0)](this[_0x14d71f(0x369)]))==null?void 0x0:_0x5ea982['getSheetBySheetId'](_0x205ebf))==null?void 0x0:_0x39b1b0[_0x14d71f(0x1e5)]();return(_0x36fae9==null?void 0x0:_0x36fae9[_0x14d71f(0x242)](_0x1a7fd8=>_0x5e86a6[_0x14d71f(0x1e2)](_0x1a7fd8,_0x48f68a)))||_0x48f68a;}[_0x2d19ee(0x133)](){const _0x48fdc2=_0x2d19ee,_0x508b61=new _0x1a4482(),_0x37e284=Hi(),_0x4b650f=()=>{const _0x135063=_0x3b77;_0x508b61[_0x135063(0x2cf)]();const _0x523afb=(_0x5711d5,_0x40bf88,_0xc1c214,_0xb8252f)=>{const _0xb0cff4=_0x135063;let _0x23ae11=[];switch(_0x5711d5['id']){case _0x114d3[_0xb0cff4(0x303)]:{_0x23ae11=_0x5efdb6(_0x5711d5,_0xb8252f);break;}case _0x114d3[_0xb0cff4(0x346)]:{_0x23ae11=_0x1edd71(_0x5711d5,_0xb8252f);break;}case _0x114d3['InsertColCommandId']:{_0x23ae11=_0xd21edf(_0x5711d5,_0xb8252f);break;}case _0x114d3[_0xb0cff4(0x170)]:{_0x23ae11=_0x56e9d2(_0x5711d5,_0xb8252f);break;}case _0x114d3['InsertRangeMoveRightCommandId']:{_0x23ae11=_0x24380d(_0x5711d5,_0xb8252f);break;}case _0x114d3['InsertRowCommandId']:{_0x23ae11=_0x26c1a0(_0x5711d5,_0xb8252f);break;}case _0x114d3[_0xb0cff4(0x166)]:{_0x23ae11=_0x1f2d01(_0x5711d5,_0xb8252f);break;}case _0x114d3[_0xb0cff4(0x1cc)]:{_0x23ae11=_0x3fee0c(_0x5711d5,_0xb8252f);break;}case _0x114d3['RemoveRowCommandId']:{_0x23ae11=_0x442d3c(_0x5711d5,_0xb8252f);break;}}const _0x4a33c9=_0x3367c1(_0x23ae11,_0xb8252f),_0xc45237=this[_0xb0cff4(0x344)][_0xb0cff4(0x1a4)](_0x40bf88);if(_0xc45237&&_0x4a33c9){const _0x45aa0f={..._0xc45237,'range':_0x4a33c9};this[_0xb0cff4(0x344)][_0xb0cff4(0x165)](_0x40bf88,_0x45aa0f),_0x37e284(()=>{const _0x55feb5=_0xb0cff4,_0x4b31c3=this['_refRangeService'][_0x55feb5(0x35c)](_0x4a33c9,_0x3dcc31=>(_0x4b31c3[_0x55feb5(0x2cf)](),_0x523afb(_0x3dcc31,_0x40bf88,_0xc1c214,_0x4a33c9)));_0x508b61[_0x55feb5(0x191)](_0x4b31c3);});}return{'redos':[],'undos':[]};};this[_0x135063(0x344)][_0x135063(0x136)]((_0x329e1e,_0x27dedf)=>{const _0x474f25=_0x135063,{range:_0x3f2ab5,sheetID:_0x30eba8}=_0x329e1e,_0x470991=this['_refRangeService'][_0x474f25(0x35c)](_0x3f2ab5,_0x2a772e=>(_0x470991[_0x474f25(0x2cf)](),_0x523afb(_0x2a772e,_0x27dedf,_0x30eba8,_0x3f2ab5)));_0x508b61[_0x474f25(0x191)](_0x470991);});};this[_0x48fdc2(0x1b6)](_0x5684e2(this[_0x48fdc2(0x2eb)][_0x48fdc2(0x150)](()=>{_0x4b650f();})));}['_toggleOnline'](){const _0x4cec69=_0x2d19ee;var _0x592465,_0x47c51b;if(this[_0x4cec69(0x2a1)]=!0x0,((_0x592465=this[_0x4cec69(0x17f)][_0x4cec69(0x17b)]())==null?void 0x0:_0x592465[_0x4cec69(0x377)]())!==this[_0x4cec69(0x369)])return;const _0x7b379c=(_0x47c51b=this[_0x4cec69(0x2b2)][_0x4cec69(0x1a4)](_0x47686c)['getCurrentSelections']())==null?void 0x0:_0x47c51b[0x0],_0x4628e5=this['_univerInstanceService'][_0x4cec69(0x2ca)](_0x1de887[_0x4cec69(0x225)])['getActiveSheet']();_0x7b379c&&_0x4628e5&&this[_0x4cec69(0x2bf)](_0x4628e5['getSheetId'](),_0x7b379c);}[_0x2d19ee(0x1bc)](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0x13e3c7(_0x6717c8)),B(0x3,_0x13e3c7(Ke)),B(0x4,_0x13e3c7(_0x50cc3e)),B(0x5,_0x5ea64d),B(0x6,_0x44deef),B(0x7,_0x13e3c7(_0x14edcb))],Be);var Yi=Object[_0x2d19ee(0x2a7)],Wi=(_0x2230c9,_0x5ba5ee,_0x15af10,_0x307dc9)=>{for(var _0x65d638=_0x307dc9>0x1?void 0x0:_0x307dc9?Yi(_0x5ba5ee,_0x15af10):_0x5ba5ee,_0x202282=_0x2230c9['length']-0x1,_0x266195;_0x202282>=0x0;_0x202282--)(_0x266195=_0x2230c9[_0x202282])&&(_0x65d638=_0x266195(_0x65d638)||_0x65d638);return _0x65d638;},Ce=(_0x5d140c,_0x4609b8)=>(_0x5b3e82,_0x21e5d4)=>_0x4609b8(_0x5b3e82,_0x21e5d4,_0x5d140c);let H=class extends _0x5b8c04{constructor(_0x2e6ff5,_0x302f3b,_0x2ce10a){const _0x2dff79=_0x2d19ee;super(),_(this,_0x2dff79(0x363),new Map()),_(this,_0x2dff79(0x28d),new _0x233e98()),(this[_0x2dff79(0x17f)]=_0x2e6ff5,this[_0x2dff79(0x2b2)]=_0x302f3b,this['_collabSessionService']=_0x2ce10a,this['_init']());}[_0x2d19ee(0x2cf)](){const _0x7195e=_0x2d19ee;super[_0x7195e(0x2cf)](),this[_0x7195e(0x28d)]['complete'](),this['_entities'][_0x7195e(0x136)](_0x4a3277=>_0x4a3277['dispose']());}[_0x2d19ee(0x2f9)](_0x1bb188){const _0x389de4=_0x2d19ee;return this[_0x389de4(0x363)][_0x389de4(0x230)](_0x1bb188)?this['_entities']['get'](_0x1bb188)['cursorInfo$']:this['_entityInit$'][_0x389de4(0x359)](_0x2dc8e8(_0x206cc0=>_0x206cc0[_0x389de4(0x369)]===_0x1bb188),_0x1650bc(_0x304fcf=>_0x304fcf[_0x389de4(0x2a9)]));}[_0x2d19ee(0x1e9)](){const _0xa15a0d=_0x2d19ee;this[_0xa15a0d(0x17f)][_0xa15a0d(0x2c1)](_0x1de887[_0xa15a0d(0x225)])[_0xa15a0d(0x359)](_0xefe94(this[_0xa15a0d(0x339)]))[_0xa15a0d(0x150)](async _0x482401=>{const _0x3a47de=_0xa15a0d,_0x3ec035=_0x482401[_0x3a47de(0x377)](),_0x5b27f6=await this[_0x3a47de(0x248)](_0x3ec035);this[_0x3a47de(0x28d)]['next'](_0x5b27f6),this[_0x3a47de(0x363)][_0x3a47de(0x165)](_0x3ec035,_0x5b27f6);}),this[_0xa15a0d(0x17f)]['getTypeOfUnitAdded$'](_0x1de887[_0xa15a0d(0x319)])['pipe'](_0xefe94(this[_0xa15a0d(0x339)]))[_0xa15a0d(0x359)](_0x2dc8e8(_0x4f3306=>!_0x4f3306[_0xa15a0d(0x377)]()[_0xa15a0d(0x27a)]('__')))[_0xa15a0d(0x150)](async _0x2e18c9=>{const _0x362252=_0xa15a0d,_0x26ef0a=_0x2e18c9[_0x362252(0x377)](),_0x3f06a0=await this[_0x362252(0x22a)](_0x26ef0a);this[_0x362252(0x28d)][_0x362252(0x1a9)](_0x3f06a0),this[_0x362252(0x363)][_0x362252(0x165)](_0x26ef0a,_0x3f06a0);}),_0x2a4316(this[_0xa15a0d(0x17f)]['getTypeOfUnitDisposed$'](_0x1de887[_0xa15a0d(0x319)]),this[_0xa15a0d(0x17f)]['getTypeOfUnitDisposed$'](_0x1de887[_0xa15a0d(0x225)]))[_0xa15a0d(0x359)](_0xefe94(this[_0xa15a0d(0x339)]))[_0xa15a0d(0x150)](_0x23b95b=>{const _0x573111=_0xa15a0d,_0x56aa8c=_0x23b95b['getUnitId'](),_0x215f85=this[_0x573111(0x363)]['get'](_0x56aa8c);_0x215f85&&(_0x215f85['dispose'](),this[_0x573111(0x363)][_0x573111(0x20a)](_0x56aa8c));});}async[_0x2d19ee(0x248)](_0x3c45e3){const _0x580598=_0x2d19ee,_0xc101a8=await this[_0x580598(0x1da)][_0x580598(0x187)](_0x3c45e3),_0x2ed9e7=this[_0x580598(0x2b2)]['createInstance'](Be,_0x3c45e3,_0xc101a8);return _0x2ed9e7[_0x580598(0x155)](),_0x2ed9e7;}async[_0x2d19ee(0x22a)](_0x340172){const _0x1a720b=_0x2d19ee,_0x2ceea0=await this[_0x1a720b(0x1da)]['requireSession'](_0x340172),_0x2c134d=this[_0x1a720b(0x2b2)][_0x1a720b(0x188)](xe,_0x340172,_0x2ceea0);return _0x2c134d[_0x1a720b(0x155)](),_0x2c134d;}};H=Wi([Ce(0x0,_0x5ea64d),Ce(0x1,_0x13e3c7(_0x6717c8)),Ce(0x2,_0x13e3c7(_0x431e53))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x435398,_0x31ee6a){const _0x489edb=_0x2d19ee;let {radius:_0x4da5d7,width:_0x5b2dd5,height:_0x59c3d5}=_0x31ee6a;_0x4da5d7=_0x4da5d7!=null?_0x4da5d7:0x0,_0x5b2dd5=_0x5b2dd5!=null?_0x5b2dd5:0x1e,_0x59c3d5=_0x59c3d5!=null?_0x59c3d5:0x1e;let _0x177617=0x0,_0x2c64c0=0x0,_0x36a1f9=0x0;_0x177617=_0x2c64c0=_0x36a1f9=Math[_0x489edb(0x30d)](_0x4da5d7,_0x5b2dd5/0x2,_0x59c3d5/0x2),_0x435398[_0x489edb(0x217)](),_0x435398[_0x489edb(0x1dc)](_0x177617,0x0),_0x435398[_0x489edb(0x348)](_0x5b2dd5-_0x2c64c0,0x0),_0x435398[_0x489edb(0x2aa)](_0x5b2dd5-_0x2c64c0,_0x2c64c0,_0x2c64c0,Math['PI']*0x3/0x2,0x0,!0x1),_0x435398[_0x489edb(0x348)](_0x5b2dd5,_0x59c3d5-_0x36a1f9),_0x435398['arc'](_0x5b2dd5-_0x36a1f9,_0x59c3d5-_0x36a1f9,_0x36a1f9,0x0,Math['PI']/0x2,!0x1),_0x435398[_0x489edb(0x348)](0x0,_0x59c3d5),_0x435398['lineTo'](0x0,_0x177617),_0x435398[_0x489edb(0x2aa)](_0x177617,_0x177617,_0x177617,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x435398['closePath'](),_0x31ee6a[_0x489edb(0x1be)]&&(_0x435398[_0x489edb(0x2b3)](),_0x435398[_0x489edb(0x281)]=_0x31ee6a[_0x489edb(0x1be)],_0x31ee6a[_0x489edb(0x366)]===_0x489edb(0x157)?_0x435398[_0x489edb(0x1be)]('evenodd'):_0x435398['fill'](),_0x435398['restore']());}class ve extends _0x5dc12a{constructor(_0x58343c,_0x23b311){const _0x5210d5=_0x2d19ee;super(_0x58343c,_0x23b311),_(this,_0x5210d5(0x201)),_(this,_0x5210d5(0x365)),(this[_0x5210d5(0x201)]=_0x23b311==null?void 0x0:_0x23b311[_0x5210d5(0x201)],this[_0x5210d5(0x365)]=_0x23b311==null?void 0x0:_0x23b311[_0x5210d5(0x365)]);}static[_0x2d19ee(0x25c)](_0x436f37,_0x230041){const _0x2c7688=_0x2d19ee,{text:_0x23478c,color:_0x138bc8}=_0x230041;_0x436f37['save'](),_0x436f37[_0x2c7688(0x1f2)]=_0x2c7688(0x139);const _0x50045f=_0x436f37[_0x2c7688(0x1fb)](_0x23478c)[_0x2c7688(0x199)],_0xd93d5e=Math[_0x2c7688(0x30d)](_0x50045f+0x2*Re,at);ji(_0x436f37,{'height':Q,'radius':0x4,'width':_0xd93d5e,'fill':_0x138bc8}),_0x436f37['fillStyle']=_0x2c7688(0x19a);const _0x1d6384=Re,_0x3745b9=Q-Vi,_0x206ece=at-0x2*Re;if(_0x50045f>_0x206ece){let _0x4d38e5='',_0x201c15=0x0;for(const _0x212515 of _0x23478c){const _0x4be244=_0x436f37['measureText'](_0x212515)['width'];if(_0x201c15+_0x4be244<=_0x206ece-_0x436f37[_0x2c7688(0x1fb)](_0x2c7688(0x32b))[_0x2c7688(0x199)])_0x4d38e5+=_0x212515,_0x201c15+=_0x4be244;else{_0x4d38e5+=_0x2c7688(0x32b);break;}}_0x436f37[_0x2c7688(0x1b5)](_0x4d38e5,_0x1d6384,_0x3745b9);}else _0x436f37[_0x2c7688(0x1b5)](_0x23478c,_0x1d6384,_0x3745b9);_0x436f37[_0x2c7688(0x312)]();}[_0x2d19ee(0x28f)](_0x193441){const _0x555454=_0x2d19ee;ve[_0x555454(0x25c)](_0x193441,this);}}const De=_0x2d19ee(0x271),Xi='collab-text-range-',Gi=_0x2d19ee(0x293),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x2d19ee(0x152);class ct{constructor(_0x270024,_0x4202cb,_0x1c73ac,_0x30fce4){const _0x43d2d2=_0x2d19ee;_(this,_0x43d2d2(0x25f),[]),_(this,'_anchor',null),_(this,'_textBubble',null),_(this,_0x43d2d2(0x2e0),null),_(this,_0x43d2d2(0x334),null),_(this,_0x43d2d2(0x1cf),null),(this[_0x43d2d2(0x1fe)]=_0x270024,this[_0x43d2d2(0x27f)]=_0x4202cb,this[_0x43d2d2(0x243)]=_0x1c73ac,this[_0x43d2d2(0x2db)]=_0x30fce4,this[_0x43d2d2(0x2d9)]());}set[_0x2d19ee(0x207)](_0xd57d16){const _0x1be557=_0x2d19ee;_0xd57d16?(this[_0x1be557(0x2e0)]&&this[_0x1be557(0x2e0)][_0x1be557(0x160)](),this['_textBubble']&&this[_0x1be557(0x21c)][_0x1be557(0x14b)]()):(this[_0x1be557(0x2e0)]&&this[_0x1be557(0x2e0)][_0x1be557(0x14b)](),this[_0x1be557(0x21c)]&&this[_0x1be557(0x21c)][_0x1be557(0x160)]());}[_0x2d19ee(0x2cf)](){const _0x450f87=_0x2d19ee;for(const _0x59f490 of this[_0x450f87(0x25f)])_0x59f490[_0x450f87(0x2cf)]();this['_textBubble']&&this['_textBubble'][_0x450f87(0x2cf)](),this['_anchorDot']&&this[_0x450f87(0x2e0)][_0x450f87(0x2cf)](),this[_0x450f87(0x1a2)]&&this[_0x450f87(0x1a2)]['dispose'](),this[_0x450f87(0x1cf)]&&this[_0x450f87(0x1cf)]();}[_0x2d19ee(0x2d9)](){const _0x1cca05=_0x2d19ee;var _0x19790e;const {_docSkeleton:_0x4930d9,_document:_0x1d0410}=this,{color:_0x1065cd,name:_0x27dadd,ranges:_0xcaaa52}=this[_0x1cca05(0x1fe)],_0x3cde1=_0x1d0410['getOffsetConfig'](),{docsLeft:_0xd0cb04,docsTop:_0x495fba}=_0x3cde1,_0x4de46e=new _0x10e74e(_0x3cde1,_0x4930d9);for(const {startOffset:_0x2d8b0f,endOffset:_0x411061,rangeType:_0x44b6a0,segmentId:_0x41208a,segmentPage:_0x136331,collapsed:_0x194116,isActive:_0x56c903}of _0xcaaa52){const _0x2b8bba=_0x4930d9['findNodePositionByCharIndex'](_0x2d8b0f,!0x0,_0x41208a,_0x136331);let _0x5be889=_0x4930d9['findNodePositionByCharIndex'](_0x411061,!0x0,_0x41208a,_0x136331);if(_0x5be889==null&&(_0x5be889=_0x4930d9[_0x1cca05(0x36d)](_0x411061-0x1,!0x1,_0x41208a,_0x136331)),_0x56c903){const {contentBoxPointGroup:_0x27664b}=_0x4de46e[_0x1cca05(0x161)](_0x5be889,_0x5be889);if(_0x27664b[_0x1cca05(0x375)]===0x0)continue;this[_0x1cca05(0x28c)](_0x1065cd,_0x27664b,_0xd0cb04,_0x495fba,_0x27dadd),this[_0x1cca05(0x1cf)]=this[_0x1cca05(0x215)]();}if(_0x2b8bba&&_0x5be889){if(_0x44b6a0===_0x18a061['RECT']){const _0x117d14=new _0x2997cf(_0x3cde1,_0x4930d9),{pointGroup:_0x1f6593}=(_0x19790e=_0x117d14['getRangePointData'](_0x2b8bba,_0x5be889))!=null?_0x19790e:{};if(_0x1f6593==null||_0x1f6593[_0x1cca05(0x375)]===0x0)continue;this[_0x1cca05(0x221)](_0x1065cd,_0x1f6593,_0xd0cb04,_0x495fba);}else{if(!_0x194116){const {borderBoxPointGroup:_0x445fa9}=_0x4de46e['getRangePointData'](_0x2b8bba,_0x5be889);if(_0x445fa9[_0x1cca05(0x375)]===0x0)continue;this[_0x1cca05(0x33d)](_0x1065cd,_0x445fa9,_0xd0cb04,_0x495fba);}}}}}[_0x2d19ee(0x28c)](_0x1230a9,_0x4afd4a,_0x4c163b,_0x4a110d,_0x54d55c){const _0x2a7e89=_0x2d19ee,_0x223758=this['_getAnchorBounding'](_0x4afd4a),{left:_0x39f21b,top:_0x43f7de,height:_0x2064d2}=_0x223758,_0x49e021=this[_0x2a7e89(0x1d7)](),_0x31c893=zi/_0x49e021,_0x391e37=new _0x2bdd35(De+_0x377b4b(z),{'left':_0x39f21b+_0x4c163b-_0x31c893,'top':_0x43f7de+_0x4a110d,'height':_0x2064d2,'width':Ki,'fill':_0x1230a9||_0x4c407c(_0x2aff34[_0x2a7e89(0x138)],0x0),'strokeWidth':_0x31c893,'stroke':Ji,'evented':!0x0});this[_0x2a7e89(0x1a2)]=_0x391e37,this[_0x2a7e89(0x27f)][_0x2a7e89(0x21d)](_0x391e37,_0x978a3f);const _0x4737e1=new _0x2bdd35(De+_0x377b4b(z),{'left':_0x39f21b+_0x4c163b-_0x31c893,'top':_0x43f7de+_0x4a110d-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x1230a9||_0x4c407c(_0x2aff34[_0x2a7e89(0x138)],0x0),'strokeWidth':0x0,'stroke':_0x1230a9||_0x4c407c(_0x2aff34[_0x2a7e89(0x138)],0x0),'evented':!0x1});this[_0x2a7e89(0x2e0)]=_0x4737e1,this[_0x2a7e89(0x27f)][_0x2a7e89(0x21d)](_0x4737e1,_0x978a3f);const _0x13490a=new ve(De+_0x377b4b(z),{'left':_0x39f21b+_0x4c163b-_0x31c893,'top':_0x43f7de+_0x4a110d-Q,'text':_0x54d55c,'color':_0x1230a9});this[_0x2a7e89(0x21c)]=_0x13490a,this[_0x2a7e89(0x27f)][_0x2a7e89(0x21d)](_0x13490a,_0x978a3f),this[_0x2a7e89(0x207)]=!0x1;}[_0x2d19ee(0x215)](){const _0x84acf=_0x2d19ee,_0x5ab53e=this[_0x84acf(0x1a2)][_0x84acf(0x17d)][_0x84acf(0x283)](()=>{const _0x424dad=_0x84acf;this[_0x424dad(0x207)]=!0x0;}),_0x5f0285=this['_anchor'][_0x84acf(0x249)][_0x84acf(0x283)](()=>{const _0x371626=_0x84acf;this[_0x371626(0x334)]&&clearTimeout(this[_0x371626(0x334)]),this[_0x371626(0x334)]=setTimeout(()=>{const _0x2e8654=_0x371626;this[_0x2e8654(0x207)]=!0x1;},0x7d0);});return()=>{const _0x5f3681=_0x84acf;_0x5ab53e['unsubscribe'](),_0x5f0285[_0x5f3681(0x16b)]();};}[_0x2d19ee(0x33d)](_0x2a97a6,_0x1c1457,_0x2d3dd5,_0x541528){const _0x368a24=_0x2d19ee,_0x27921d=new _0x44158f(_0x2a97a6)[_0x368a24(0x330)](0.2)[_0x368a24(0x1ae)](),_0x2282ac=new _0x36ecd6(Xi+_0x377b4b(z),{'pointsGroup':_0x1c1457,'fill':_0x27921d||_0x4c407c(_0x2aff34[_0x368a24(0x138)],0.2),'left':_0x2d3dd5,'top':_0x541528,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x368a24(0x25f)][_0x368a24(0x1bb)](_0x2282ac),this[_0x368a24(0x27f)][_0x368a24(0x21d)](_0x2282ac,_0x978a3f);}['_drawRectRange'](_0x4702e7,_0x3f59c7,_0x2cdca6,_0x4717e5){const _0x836b90=_0x2d19ee,_0x1bca27=new _0x44158f(_0x4702e7)[_0x836b90(0x330)](0.2)['toRgbString'](),_0x2f02fa=new _0x36ecd6(Gi+_0x377b4b(z),{'pointsGroup':_0x3f59c7,'fill':_0x1bca27||_0x4c407c(_0x2aff34[_0x836b90(0x138)],0.2),'left':_0x2cdca6,'top':_0x4717e5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x836b90(0x25f)]['push'](_0x2f02fa),this[_0x836b90(0x27f)][_0x836b90(0x21d)](_0x2f02fa,_0x978a3f);}[_0x2d19ee(0x23d)](_0x227d7b){const _0x322bb8=_0x227d7b[0x0],_0x537dd4=_0x322bb8[0x0],_0x4f5d8b=_0x322bb8[0x2],{x:_0x459062,y:_0x3a3901}=_0x537dd4,{x:_0x2e587d,y:_0x41b618}=_0x4f5d8b;return{'left':_0x459062,'top':_0x3a3901,'width':_0x2e587d-_0x459062,'height':_0x41b618-_0x3a3901};}[_0x2d19ee(0x1d7)](){const _0x207ad8=_0x2d19ee,{scaleX:_0x366471,scaleY:_0x5f4e42}=this['_scene'][_0x207ad8(0x224)]();return Math[_0x207ad8(0x1db)](_0x366471,_0x5f4e42);}}var Zi=Object[_0x2d19ee(0x2a7)],Qi=(_0x278a75,_0xc9b7a5,_0x156cb7,_0x28ee21)=>{const _0x20170e=_0x2d19ee;for(var _0x15ed83=_0x28ee21>0x1?void 0x0:_0x28ee21?Zi(_0xc9b7a5,_0x156cb7):_0xc9b7a5,_0x1aa9da=_0x278a75[_0x20170e(0x375)]-0x1,_0x281ee5;_0x1aa9da>=0x0;_0x1aa9da--)(_0x281ee5=_0x278a75[_0x1aa9da])&&(_0x15ed83=_0x281ee5(_0x15ed83)||_0x15ed83);return _0x15ed83;},ie=(_0x20698e,_0x8f20a8)=>(_0x4881a3,_0x280581)=>_0x8f20a8(_0x4881a3,_0x280581,_0x20698e);let Fe=class extends _0x5b8c04{constructor(_0x3e42a9,_0x3030dc,_0x43e6a9,_0x52f39a,_0x2fe8a8){const _0x71dcbf=_0x2d19ee;super(),_(this,_0x71dcbf(0x28b),[]),_(this,_0x71dcbf(0x1af),[]),(this[_0x71dcbf(0x37e)]=_0x3e42a9,this[_0x71dcbf(0x336)]=_0x3030dc,this['_collabCursorController']=_0x43e6a9,this[_0x71dcbf(0x162)]=_0x52f39a,this[_0x71dcbf(0x18f)]=_0x2fe8a8,this['_init']());}[_0x2d19ee(0x1e9)](){const _0x5c332c=_0x2d19ee,_0x4e5312=this[_0x5c332c(0x37e)][_0x5c332c(0x352)],_0x55e84a=this['_docSkeletonManagerService'];this[_0x5c332c(0x1b6)](_0x383e72([this[_0x5c332c(0x1e1)][_0x5c332c(0x2f9)](_0x4e5312),this['_themeService']['currentTheme$']])[_0x5c332c(0x359)](_0x4406a1(([_0x5a95ef,_0x45aa4c])=>({'skeleton':_0x55e84a['getSkeleton'](),'cursors':[..._0x5a95ef[_0x5c332c(0x31f)]()][_0x5c332c(0x1c9)](_0x15e2e6=>({..._0x15e2e6,'color':this[_0x5c332c(0x18f)][_0x5c332c(0x2a4)](_0x15e2e6['color'])}))})))[_0x5c332c(0x150)](_0x550d6c=>{const _0x585e47=_0x5c332c;if(this[_0x585e47(0x367)](),_0x550d6c){const {skeleton:_0x5908db,cursors:_0x441c73}=_0x550d6c;this[_0x585e47(0x252)](_0x5908db,_0x441c73);}})),this[_0x5c332c(0x37f)](),this[_0x5c332c(0x222)]();}[_0x2d19ee(0x252)](_0x2a0cf2,_0x31c3a5){const _0x1f9bc9=_0x2d19ee,{scene:_0x567b40,mainComponent:_0x2c5253}=this[_0x1f9bc9(0x37e)],_0x2af5d2=_0x31c3a5['map'](_0x57d194=>new ct(_0x57d194,_0x567b40,_0x2a0cf2,_0x2c5253));this['_cursorShapes']=_0x2af5d2,this[_0x1f9bc9(0x1af)]=_0x31c3a5;}[_0x2d19ee(0x1de)](){const _0x149397=_0x2d19ee;this['_removeCollabCursors']();const {scene:_0x44211a,mainComponent:_0x3c13af}=this[_0x149397(0x37e)],_0xdace4a=this[_0x149397(0x336)][_0x149397(0x364)](),_0x27acf5=this[_0x149397(0x1af)][_0x149397(0x350)](_0x448c02=>new ct(_0x448c02,_0x44211a,_0xdace4a,_0x3c13af));this[_0x149397(0x28b)]=_0x27acf5;}[_0x2d19ee(0x367)](){const _0x4d019c=_0x2d19ee;this[_0x4d019c(0x28b)][_0x4d019c(0x136)](_0x27de62=>_0x27de62['dispose']()),this[_0x4d019c(0x28b)]=[];}[_0x2d19ee(0x222)](){const _0x2f10e=_0x2d19ee,_0x4b209e=[_0x2d8f9a['id']];this[_0x2f10e(0x1b6)](this[_0x2f10e(0x162)][_0x2f10e(0x21e)](_0x50b433=>{const _0x4012c7=_0x2f10e;_0x4b209e[_0x4012c7(0x329)](_0x50b433['id'])&&_0x50b433[_0x4012c7(0x19b)][_0x4012c7(0x352)]===this[_0x4012c7(0x37e)][_0x4012c7(0x352)]&&this[_0x4012c7(0x1de)]();}));}[_0x2d19ee(0x37f)](){const _0xc17909=_0x2d19ee;this[_0xc17909(0x1b6)](_0x5b2081(this[_0xc17909(0x37e)]['engine'][_0xc17909(0x2c2)])[_0xc17909(0x359)](_0x53c322(_0x47198c=>_0x47198c[_0xc17909(0x164)]===_0x5e28be[_0xc17909(0x299)]),_0x42dfe3(0x10))[_0xc17909(0x150)](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0x13e3c7(_0x1ccfa7)),ie(0x2,_0x13e3c7(H)),ie(0x3,_0x44deef),ie(0x4,_0x13e3c7(_0x1331d6))],Fe);const qi=0x1,en=1.5;class tn extends _0x5dc12a{constructor(_0x12cbf3,_0x2f9888){const _0x583f39=_0x2d19ee;super(_0x12cbf3,_0x2f9888),_(this,'_color'),_(this,'_hovered',!0x1),_(this,_0x583f39(0x30f)),_(this,_0x583f39(0x2e1),''),_(this,_0x583f39(0x368),_0x583f39(0x34a)),_(this,'_backgroundColor'),(_0x2f9888&&this[_0x583f39(0x19d)](_0x2f9888),this[_0x583f39(0x17d)][_0x583f39(0x283)](()=>this[_0x583f39(0x19d)]({'hovered':!0x0})),this[_0x583f39(0x249)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2d19ee(0x19d)](_0x125eb5){const _0x3de449=_0x2d19ee;var _0x4250f4,_0x1be2af,_0x2bffea,_0x52fe26,_0x430196,_0x567229;this[_0x3de449(0x144)]=(_0x4250f4=_0x125eb5[_0x3de449(0x201)])!=null?_0x4250f4:this['_color'],this[_0x3de449(0x218)]=(_0x1be2af=_0x125eb5['hovered'])!=null?_0x1be2af:this[_0x3de449(0x218)],this['_range']=(_0x2bffea=_0x125eb5[_0x3de449(0x186)])!=null?_0x2bffea:this['_range'],this[_0x3de449(0x2e1)]=(_0x52fe26=_0x125eb5[_0x3de449(0x28a)])!=null?_0x52fe26:this[_0x3de449(0x2e1)],this[_0x3de449(0x368)]=(_0x430196=_0x125eb5[_0x3de449(0x175)])!=null?_0x430196:this[_0x3de449(0x368)],this[_0x3de449(0x181)]=(_0x567229=_0x125eb5[_0x3de449(0x276)])!=null?_0x567229:this['_backgroundColor'],this[_0x3de449(0x131)]({'width':_0x125eb5[_0x3de449(0x199)],'height':_0x125eb5['height']});}[_0x2d19ee(0x35f)](_0x499b2a){const _0x437eea=_0x2d19ee,{row:_0x4da585,column:_0x32568f}=_0x499b2a;if(_0x4da585>=this['_range'][_0x437eea(0x163)]&&_0x4da585<=this['_range'][_0x437eea(0x355)]&&_0x32568f>=this[_0x437eea(0x30f)][_0x437eea(0x309)]&&_0x32568f<=this[_0x437eea(0x30f)][_0x437eea(0x35e)]){this[_0x437eea(0x19d)]({'hovered':!0x0});return;}this[_0x437eea(0x19d)]({'hovered':!0x1});}[_0x2d19ee(0x302)](_0x4f8135){return!0x1;}[_0x2d19ee(0x28f)](_0x4545b3){const _0x1b316b=_0x2d19ee;_0x2bdd35[_0x1b316b(0x25c)](_0x4545b3,{'width':this[_0x1b316b(0x199)],'height':this[_0x1b316b(0x1ad)],'strokeWidth':en,'stroke':this[_0x1b316b(0x144)],'evented':!0x1,'fill':this[_0x1b316b(0x181)]}),this[_0x1b316b(0x218)]&&(_0x4545b3['save'](),_0x4545b3[_0x1b316b(0x251)](0x1,0x0,0x0,0x1,this['width'],this[_0x1b316b(0x368)]===_0x1b316b(0x2ac)?0x0:-Q),ve[_0x1b316b(0x25c)](_0x4545b3,{'text':this['_name'],'color':this['_color']}),_0x4545b3[_0x1b316b(0x312)]());}}var sn=Object[_0x2d19ee(0x2a7)],nn=(_0x519af5,_0x4dbca8,_0x4c928d,_0x20660b)=>{const _0x2c84c4=_0x2d19ee;for(var _0x35ff53=_0x20660b>0x1?void 0x0:_0x20660b?sn(_0x4dbca8,_0x4c928d):_0x4dbca8,_0x4d1219=_0x519af5[_0x2c84c4(0x375)]-0x1,_0x5b0742;_0x4d1219>=0x0;_0x4d1219--)(_0x5b0742=_0x519af5[_0x4d1219])&&(_0x35ff53=_0x5b0742(_0x35ff53)||_0x35ff53);return _0x35ff53;},be=(_0x1b03ea,_0x43f626)=>(_0x228205,_0x357827)=>_0x43f626(_0x228205,_0x357827,_0x1b03ea);const rn=0x1389;let ke=class extends _0x5b8c04{constructor(_0x16b685,_0x1f6949,_0x2a1a93,_0x179ca4){const _0x5cbb9f=_0x2d19ee;super(),_(this,_0x5cbb9f(0x1af),new Set()),_(this,_0x5cbb9f(0x1d1),null),(this[_0x5cbb9f(0x37e)]=_0x16b685,this[_0x5cbb9f(0x360)]=_0x1f6949,this[_0x5cbb9f(0x1e1)]=_0x2a1a93,this[_0x5cbb9f(0x18f)]=_0x179ca4,this[_0x5cbb9f(0x1e9)]());}['_init'](){const _0x5c921b=_0x2d19ee;this[_0x5c921b(0x360)]['currentSkeleton$'][_0x5c921b(0x359)](_0xb23e26(this['dispose$']),_0x2c4106(_0x5ea8e1=>{const _0x4a3bad=_0x5c921b;if(_0x5ea8e1){const _0x2bd179=_0x5ea8e1[_0x4a3bad(0x1f8)];return _0x383e72(this['_collabCursorController'][_0x4a3bad(0x2f9)](this[_0x4a3bad(0x37e)]['unitId']),this[_0x4a3bad(0x18f)][_0x4a3bad(0x33e)])[_0x4a3bad(0x359)](_0x4406a1(([_0x535f85,_0x121946])=>{const _0x3853e8=_0x4a3bad,_0x3cf1e7=new Map();return _0x535f85[_0x3853e8(0x136)]((_0x4b5fa,_0x3d290b)=>{const _0x27be4f=_0x3853e8;if(_0x4b5fa['sheetID']===_0x2bd179){const _0x24d100={..._0x4b5fa};_0x24d100[_0x27be4f(0x201)]=this[_0x27be4f(0x18f)][_0x27be4f(0x2a4)](_0x4b5fa[_0x27be4f(0x201)]),_0x3cf1e7[_0x27be4f(0x165)](_0x3d290b,_0x24d100);}}),{'skeleton':_0x5ea8e1,'cursors':_0x3cf1e7};}));}return _0x272a51({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x59f426,cursors:_0x1c917b})=>{const _0x106434=_0x5c921b;this['_removeCollabCursors'](),_0x59f426&&this[_0x106434(0x252)](_0x59f426,_0x1c917b);}),this['_sheetSkeletonManagerService'][_0x5c921b(0x1e8)][_0x5c921b(0x150)](_0x46b480=>{const _0x46ee44=_0x5c921b;if(_0x46b480==null)return;const {skeleton:_0x50ee39}=_0x46b480,{scene:_0x55114d}=this[_0x46ee44(0x37e)];_0x55114d['onPointerMove$'][_0x46ee44(0x283)](_0x1b4ae8(_0xbc0ad8=>{const _0xc583a5=_0x46ee44;var _0x573844,_0xdf07;const {offsetX:_0x3dbc63,offsetY:_0x1727d4}=_0xbc0ad8,{x:_0xcc8b54,y:_0x5627d3}=_0x55114d[_0xc583a5(0x23c)](_0x59221c['FromArray']([_0x3dbc63,_0x1727d4])),{scaleX:_0x48c0d6,scaleY:_0x15a8c9}=_0x55114d[_0xc583a5(0x224)](),_0x31afd2=_0x55114d[_0xc583a5(0x1c7)](_0x29367b[_0xc583a5(0x241)]),_0xa67a49=_0x55114d[_0xc583a5(0x32d)](_0x59221c[_0xc583a5(0x2b8)]([_0xcc8b54,_0x5627d3]),_0x31afd2),_0x4cd172=_0x50ee39[_0xc583a5(0x1ab)](_0x3dbc63,_0x1727d4,_0x48c0d6,_0x15a8c9,_0xa67a49);((_0x573844=this[_0xc583a5(0x1d1)])==null?void 0x0:_0x573844[_0xc583a5(0x2df)])===_0x4cd172[_0xc583a5(0x2df)]&&((_0xdf07=this[_0xc583a5(0x1d1)])==null?void 0x0:_0xdf07[_0xc583a5(0x317)])===_0x4cd172[_0xc583a5(0x317)]||this[_0xc583a5(0x1af)][_0xc583a5(0x136)](_0x568431=>{const _0x56e8ee=_0xc583a5;_0x568431[_0x56e8ee(0x35f)](_0x4cd172);});},0x64));});}[_0x2d19ee(0x252)](_0x451145,_0x45f7d9){const _0x3193d2=_0x2d19ee;var _0x1f3a99;const _0xdc991f=(_0x1f3a99=this[_0x3193d2(0x360)][_0x3193d2(0x280)]())==null?void 0x0:_0x1f3a99['skeleton'];if(!_0xdc991f)return;const _0x5dc77c=this[_0x3193d2(0x247)]();if(!_0x5dc77c)return;this[_0x3193d2(0x1af)][_0x3193d2(0x136)](_0x25f643=>{const _0x53f93d=_0x3193d2;_0x25f643[_0x53f93d(0x193)]();});const {scene:_0x41c697}=_0x5dc77c,_0x4cce11=on(Array[_0x3193d2(0x292)](_0x45f7d9[_0x3193d2(0x31f)]()))[_0x3193d2(0x350)](_0x58a5db=>{const _0x34f3cf=_0x3193d2,{color:_0x53ed5d,range:_0x10740f,name:_0x5cbfca,selection:_0x4ed6f8,sheetID:_0x3ea561}=_0x58a5db,{startColumn:_0x27b076,startRow:_0x3984fb,endColumn:_0xcd0d18,endRow:_0x467c29}=_0x10740f,_0x383ba6=_0x412d35(_0x3984fb,_0x27b076,_0x41c697,_0xdc991f),_0x4a707f=_0x412d35(_0x467c29,_0xcd0d18,_0x41c697,_0xdc991f),{columnHeaderHeightAndMarginTop:_0x1875e}=_0xdc991f,{startX:_0x53353b,startY:_0x448d9f}=_0x383ba6,{endX:_0x255179,endY:_0x4b6a84}=_0x4a707f,_0xc7d594=_0x255179-_0x53353b,_0x5cc2eb=_0x4b6a84-_0x448d9f,_0x398ff4={'labelPosition':_0x448d9f-_0x1875e>=Q?_0x34f3cf(0x34a):_0x34f3cf(0x2ac),'sheetID':_0x3ea561,'range':_0x10740f,'color':_0x53ed5d,'name':_0x5cbfca,'selection':_0x4ed6f8,'left':_0x53353b,'top':_0x448d9f,'width':_0xc7d594,'height':_0x5cc2eb,'evented':!0x1,'zIndex':rn};return new tn(_0x5cbfca,_0x398ff4);});_0x41c697[_0x3193d2(0x296)](_0x4cce11,qi),this[_0x3193d2(0x1af)]=new Set(_0x4cce11);}['_removeCollabCursors'](){const _0x29f29d=_0x2d19ee;var _0x550e95;(_0x550e95=this[_0x29f29d(0x1af)])==null||_0x550e95['forEach'](_0x2db9cd=>_0x2db9cd['dispose']());}[_0x2d19ee(0x247)](){const _0x57f049=_0x2d19ee;return _0x2cc164(this['_context'][_0x57f049(0x235)],this['_context']);}};ke=nn([be(0x1,_0x13e3c7(_0x33de6b)),be(0x2,_0x13e3c7(H)),be(0x3,_0x13e3c7(_0x1331d6))],ke);function on(_0x289585){const _0x2580ad=_0x2d19ee,_0x571ca0=new Map();return _0x289585[_0x2580ad(0x136)](_0x17f676=>{const _0x5acb7b=_0x2580ad;if(_0x571ca0[_0x5acb7b(0x230)](_0x17f676[_0x5acb7b(0x20c)])){const _0x344e81=_0x571ca0[_0x5acb7b(0x1a4)](_0x17f676[_0x5acb7b(0x20c)]);_0x344e81[_0x5acb7b(0x28a)]+=',\x20'+_0x17f676['name'];}else _0x571ca0[_0x5acb7b(0x165)](_0x17f676[_0x5acb7b(0x20c)],_0x17f676);}),Array[_0x2580ad(0x292)](_0x571ca0['values']());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x3c1aae,_0x435f5b,_0x54eb7a,_0x129136)=>{const _0x4a4e42=_0x2d19ee;for(var _0x469ab6=_0x129136>0x1?void 0x0:_0x129136?an(_0x435f5b,_0x54eb7a):_0x435f5b,_0xf8ae11=_0x3c1aae[_0x4a4e42(0x375)]-0x1,_0x19e0e9;_0xf8ae11>=0x0;_0xf8ae11--)(_0x19e0e9=_0x3c1aae[_0xf8ae11])&&(_0x469ab6=_0x19e0e9(_0x469ab6)||_0x469ab6);return _0x469ab6;},F=(_0x1432bf,_0xf0e77a)=>(_0x25324b,_0x44ab2d)=>_0xf0e77a(_0x25324b,_0x44ab2d,_0x1432bf);let _e=class extends _0x55618d{constructor(_0x7ceb21,_0x22fe9a,_0x785097,_0x2a45a5,_0x56240d,_0x173986){const _0x5f4ee6=_0x2d19ee;super(),this[_0x5f4ee6(0x171)]=_0x7ceb21,this['_localCacheService']=_0x22fe9a,this[_0x5f4ee6(0x345)]=_0x785097,this[_0x5f4ee6(0x16f)]=_0x2a45a5,this[_0x5f4ee6(0x1ba)]=_0x56240d,this[_0x5f4ee6(0x2ea)]=_0x173986,this[_0x5f4ee6(0x2ce)](),this[_0x5f4ee6(0x30c)]();}[_0x2d19ee(0x2ce)](){const _0x53fc5e=_0x2d19ee;this[_0x53fc5e(0x1b6)](this[_0x53fc5e(0x171)]['registerBeforeClose'](()=>{const _0x4c96e1=_0x53fc5e;if(this[_0x4c96e1(0x356)][_0x4c96e1(0x134)][_0x4c96e1(0x26a)])return this['_localeService']['t'](_0x4c96e1(0x232));}));}[_0x2d19ee(0x30c)](){const _0x4cd166=_0x2d19ee;this[_0x4cd166(0x1b6)](this[_0x4cd166(0x345)][_0x4cd166(0x246)][_0x4cd166(0x150)](_0x5010b6=>{const _0x16ffe1=_0x4cd166;_0x5010b6['id']===_0x54f12f[_0x16ffe1(0x183)]&&this[_0x16ffe1(0x16f)][_0x16ffe1(0x14b)]({'type':_0xe3500e[_0x16ffe1(0x1fc)],'content':this[_0x16ffe1(0x2ea)]['t'](_0x16ffe1(0x22f))}),_0x5010b6['id']===_0x54f12f['CLOSE_ROOM']&&this['_messageService'][_0x16ffe1(0x14b)]({'type':_0xe3500e[_0x16ffe1(0x1fc)],'content':this[_0x16ffe1(0x2ea)]['t'](_0x16ffe1(0x205))}),_0x5010b6['id']===_0x54f12f[_0x16ffe1(0x2f5)]&&this[_0x16ffe1(0x1ba)][_0x16ffe1(0x14b)]({'title':this[_0x16ffe1(0x2ea)]['t'](_0x16ffe1(0x1b1)),'content':this[_0x16ffe1(0x2ea)]['t'](_0x16ffe1(0x1a7)),'type':_0x16ffe1(0x1f9),'duration':0x0}),_0x5010b6['id']===_0x54f12f['CONFLICT']&&this[_0x16ffe1(0x16f)][_0x16ffe1(0x14b)]({'type':_0xe3500e[_0x16ffe1(0x185)],'content':this[_0x16ffe1(0x2ea)]['t']('collaboration.closeRoom')+'('+_0x5010b6['data']+')'}),_0x5010b6['id']===_0x54f12f[_0x16ffe1(0x1b4)]&&this[_0x16ffe1(0x16f)]['show']({'type':_0xe3500e['Warning'],'content':this[_0x16ffe1(0x2ea)]['t'](_0x5010b6[_0x16ffe1(0x2d3)]||'')}),_0x5010b6['id']===_0x54f12f[_0x16ffe1(0x372)]&&this[_0x16ffe1(0x16f)][_0x16ffe1(0x14b)]({'type':_0xe3500e[_0x16ffe1(0x1fc)],'content':this[_0x16ffe1(0x2ea)]['t'](_0x16ffe1(0x27d))}),_0x5010b6['id']===_0x54f12f[_0x16ffe1(0x25a)]&&this[_0x16ffe1(0x16f)][_0x16ffe1(0x14b)]({'type':_0xe3500e[_0x16ffe1(0x185)],'content':this[_0x16ffe1(0x2ea)]['t']('session.connection-failed')}),_0x5010b6['id']===_0x54f12f['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x16ffe1(0x16f)]['show']({'type':_0xe3500e[_0x16ffe1(0x185)],'content':this[_0x16ffe1(0x2ea)]['t'](_0x16ffe1(0x240))});}));}};_e=cn([F(0x0,_0x58a1a6),F(0x1,_0x26b1ca),F(0x2,_0x13e3c7(_0x195a88)),F(0x3,_0x551408),F(0x4,_0x3ad334),F(0x5,_0x13e3c7(_0x548920))],_e);var _n=Object[_0x2d19ee(0x2a7)],ln=(_0x2d8099,_0x321a93,_0x1a4a93,_0x4ec372)=>{const _0x5549ef=_0x2d19ee;for(var _0x28118d=_0x4ec372>0x1?void 0x0:_0x4ec372?_n(_0x321a93,_0x1a4a93):_0x321a93,_0x2f21a=_0x2d8099[_0x5549ef(0x375)]-0x1,_0x281734;_0x2f21a>=0x0;_0x2f21a--)(_0x281734=_0x2d8099[_0x2f21a])&&(_0x28118d=_0x281734(_0x28118d)||_0x28118d);return _0x28118d;},ne=(_0x247f78,_0x462afa)=>(_0x26fe13,_0x4ce749)=>_0x462afa(_0x26fe13,_0x4ce749,_0x247f78);let le=class extends _0x55618d{constructor(_0x1059d4,_0x3da29f,_0x25b4b9,_0x24d058){const _0x28b106=_0x2d19ee;super(),_(this,_0x28b106(0x30a)),(this[_0x28b106(0x2b2)]=_0x1059d4,this[_0x28b106(0x26e)]=_0x3da29f,this['_logService']=_0x25b4b9,this[_0x28b106(0x376)]=_0x24d058,this[_0x28b106(0x1e9)]());}[_0x2d19ee(0x1e9)](){const _0x51550b=_0x2d19ee;this[_0x51550b(0x362)](),this[_0x51550b(0x2ef)](),this[_0x51550b(0x19e)](),this[_0x51550b(0x206)]();}[_0x2d19ee(0x206)](){const _0x23753d=_0x2d19ee;this[_0x23753d(0x1b6)](this[_0x23753d(0x376)]['socket$']['subscribe'](_0x37c67d=>{const _0x266d73=_0x23753d;this[_0x266d73(0x30a)]=_0x37c67d==null?void 0x0:_0x37c67d[_0x266d73(0x169)];}));}[_0x2d19ee(0x362)](){const _0x2d4b73=_0x2d19ee,_0x1e51a6=_0x10aa05=>{const _0x244ec0=_0x3b77;var _0x306b0a;this[_0x244ec0(0x12e)](_0x244ec0(0x1f9),_0x244ec0(0x2af)+_0x10aa05[_0x244ec0(0x23f)]+_0x244ec0(0x2da)+_0x10aa05['filename']+':'+_0x10aa05[_0x244ec0(0x291)]+':'+_0x10aa05[_0x244ec0(0x212)]+'\x0a'+(((_0x306b0a=_0x10aa05[_0x244ec0(0x1f9)])==null?void 0x0:_0x306b0a[_0x244ec0(0x295)])||''));};window[_0x2d4b73(0x25b)](_0x2d4b73(0x1f9),_0x1e51a6),this['disposeWithMe'](()=>{const _0x145a73=_0x2d4b73;window[_0x145a73(0x37c)](_0x145a73(0x1f9),_0x1e51a6);});}[_0x2d19ee(0x2ef)](){const _0x3fb73f=_0x2d19ee,_0x1be6c2=_0x22afa6=>{const _0x1abeb2=_0x3b77;this[_0x1abeb2(0x12e)]('error',_0x1abeb2(0x179)+_0x22afa6['reason']);};window[_0x3fb73f(0x25b)](_0x3fb73f(0x26f),_0x1be6c2),this[_0x3fb73f(0x1b6)](()=>{const _0x57d0a7=_0x3fb73f;window[_0x57d0a7(0x37c)](_0x57d0a7(0x26f),_0x1be6c2);});}[_0x2d19ee(0x19e)](){const _0x2a94ff=_0x2d19ee,_0x48da72=this['_logService'][_0x2a94ff(0x1f9)][_0x2a94ff(0x2c3)](this[_0x2a94ff(0x244)]);this[_0x2a94ff(0x244)][_0x2a94ff(0x1f9)]=(..._0x1ac629)=>{const _0x5ad08c=_0x2a94ff,_0x16a209=_0x1ac629['map'](_0xd622e0=>_0xd622e0 instanceof Error?_0xd622e0[_0x5ad08c(0x23f)]+'\x0a'+_0xd622e0['stack']:String(_0xd622e0))[_0x5ad08c(0x184)]('\x20');this[_0x5ad08c(0x12e)](_0x5ad08c(0x1f9),_0x5ad08c(0x198)+_0x16a209),_0x48da72(..._0x1ac629);},this['disposeWithMe'](()=>{const _0x39fd0d=_0x2a94ff;this[_0x39fd0d(0x244)][_0x39fd0d(0x1f9)]=_0x48da72;});}['_uploadLog'](_0x1309f1,_0x324fc6){const _0x57f7d5=_0x2d19ee;try{const _0x5dde85={'userId':this[_0x57f7d5(0x30a)],'logLabel':_0x1309f1,'content':_0x324fc6};this[_0x57f7d5(0x26e)]['post'](_0x57f7d5(0x1c1),{'body':_0x5dde85})[_0x57f7d5(0x2be)](()=>{});}catch{}}};function _0x4498(){const _0x554654=['searchParams','url(#$1','_dataLoaderService','_localeService','_cursorInfo$','parseInt','_selfUnitIDs','blue.400','_initUnhandledRejectionListener','_docStateChangeManagerService','_instanceService','m1Prime','limitInfo','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','PERMISSION_DENIED','_transformService','_removeClearOtherTimer','SUCCESS','getCollabCursors$','use','wsSessionTicketUrl','ENTITLE_CAN_NOT_BUY_LOWER_OTP','SNAPSHOT_INVALID_SNAPSHOT','_registerRenderDependencies','YUUMI_ASYNCIO_CANCELLED','invokeId','_colorIndex','triggerDblclick','DeleteRangeMoveLeftCommandId','result','status$','purple.300','origin','_refRangeService','startColumn','_memberID','DATA_SOURCE_TOO_LARGE','_initEvent','min','_getSaveTimeout','_range','NOT_FOUND','_handleEvent','restore','START_CALCULATION','collabStatus.fetchMiss','_setupSubUnitSync','60rsowth','row','_clearPolling','UNIVER_DOC','clearTimeout','univerjs-icon\x20univerjs-icon-','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','LICENSE_IMPORT_SIZE_EXCEEDED','_docTransformIMECacheService','values','_releaseCalculationLimit','displayName','_handleHeartbeatEvent','transformSelections','_onCursorUpdate','transformStateCache','LICENSE_DISTRO_REJECTED','INVITE_CODE_REQUIRED','_docSyncEditingCollabCursorService','includes','stringify','...','3446663kCotNU','getVpScrollXYInfoByPosToVp','_transformHistoryAndStateStack','_updateURLWithCurrentState','setAlpha','selections','REDEMPTION_CODE_NOT_STARTED','_docTransformSelectionsService','_hideTimer','_initCommandInterceptor','_docSkeletonManagerService','_session','PENDING','dispose$','eventID','_syncEditingCollabCursorService','_updateSubUnitFromURLParams','_drawTextRange','currentTheme$','onLocalMutation','MUTATION','M0\x200H16V16H0z','FETCH_MISS','ENTITLE_INSUFFICIENT_QUOTA','cursorInfo','_collaborationUIEventService','DeleteRangeMoveUpCommandId','runId','lineTo','current','top','/run/','getUndoRedoMutationParamsCache','1em','deepClone','urlChange$','map','sessionStatus$','unitId','search','_urlService','endRow','_localCacheService','_handleLeaveEvent','reconnect','pipe','collabStatus.offline','ENTITLE_COUPON_EXPIRED','registerRefRange','ERROR_AGAIN','endColumn','onMouseMove','_sheetSkeletonManagerService','PY_RUNTIME_SCRIPT_ERROR','_initWindowErrorListener','_entities','getSkeleton','text','fillRule','_removeCollabCursors','_labelPosition','unitID','_checkCalculationAvailable','newValue','_getSessionTicket','findNodePositionByCharIndex','redoState','stage','OFFLINE','url(#off-line-icon_clip0_910_343)','SOCKET_FAILED_RETRY','saveOfflineData','_localStorageService','length','_collaborationSessionService','getUnitId','getValue','storage','_getFormulaLimitStatus','_doCreateSocket','removeEventListener','LOGIN_FAILED','_context','_initResize','_hasFormulaInDirtyRanges','_getMergeRange','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','ENSURE_SNAPSHOT_EXECUTION','_taskIds','white','_heartbeatTimer','_uploadLog','doc.mutation.rich-text-editing','NOT_COLLAB','transformByState','string','_onRefRangeChange','saveTaskMap','imageSourceType','forEach','_lastResponseTimestamp','black','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_configService','on-line-icon_clip0_910_349','APPLY_DUPLICATED','onRendered','REDEMPTION_CODE_FULLY_REDEEMED','4292065VBiNff','YUUMI_SUBSCRIPTION_NOT_FOUND','UPDATE_CURSOR','addHandlerCallback','tag','_color','_unitOnClients','_showGuardMessage','OnLineIcon','getCollabEntity$','off-line-icon','undoState','show','all','currentUsage','YUUMI_AI_RUN_FAILED','setTimeout','subscribe','getMemberID','rgba(255,\x20255,\x20255,\x200.01)','LOGIN_TOKEN_PROCESSING_FAILED','loadUnit','init','_collaborationController','evenodd','TOO_MANY_REQUESTS','whenReady','idSuffix','HEADER_MENU','override','[CollaborationDataLoaderController]','ACTIVE_UNIT_EVENT_CHANNEL','ENTITLE_COUPON_USED_UP','hide','getRangePointData','_commandService','startRow','type','set','MoveRangeCommandId','_id','div','memberID','executeCommand','unsubscribe','disableLocalCache','_uiPartsService','send','_messageService','InsertRangeMoveDownCommandId','_beforeCloseService','getParam','startFormulaLimitUrl','unshift','labelPosition','WECHAT_HAS_BEEN_BOUND','APPLY_PERMISSION_DENIED','ALREADY_EXISTS','[Unhandled\x20Rejection]:\x20','INVALID_ARGUMENT','getFocusedUnit','_pollingInterval','onPointerEnter$','yellow.400','_univerInstanceService','APPLY_REVISION_CONFILICT','_backgroundColor','transformIMECache','OTHER_CLIENT_EDITING','join','Error','range','requireSession','createInstance','INVALID_INVITE_CODE','setActiveRange','REDEMPTION_CODE_INACTIVE','defineProperty','_maxFormulaLimit','_initStatusComponent','_themeService','REDEMPTION_INVALID_CODE','add','CHANGESET_REVISION_CONFILICT','makeDirty','addClipboardHook','getConfig','OTHER_CLIENTS_EDITING','INVITE_CODE_HAS_BEEN_UES','[LogService\x20Error]:\x20','width','#FFF','params','univer-flex\x20univer-items-center','setShapeProps','_monkeyPatchLogService','random','YUUMI_TABLE_NOT_FOUND_IN_UNIT','APPLY_REJECT','_anchor','_send','get','totalFormulasToCalculate','AUTHORIZE_CODE_ILLEGAL','permission.content','_imageIoService','next','_clearOtherTimers','getCellPositionByOffset','registerComponent','height','toRgbString','_cursors','getUniverSheetInstance','permission.title','children','application/json','JOIN_ROOM_FAILED','fillText','disposeWithMe','then','isActive','clipPath','_notificationService','push','_toggleOffline','history','fill','_onCursorDelete','LICENSE_MAX_UNITS_EXCEEDED','/universer-api/frontend/logs','_revisionService','key','formula.calculation.waiting','collabStatus.conflict','_checkAndWaitForCalculationPermission','getViewport','isArray','flatMap','setUndoRedoMutationParamsCache','getCellMatrix','RemoveColCommandId','UNDEFINED','YUUMI_NO_CUBOID_FOR_QUESTION','_eventUnsubscribe','_startCalculationLimit','_lastPointer','replaceState','YUUMI_RATE_OVER_LIMIT','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','ONLINE','colorChannel1','_getScale','RECT','transformMutation','_collabSessionService','max','moveTo','getStateCache','_refreshCollabCursors','CURRENT_STATUS_CANNOT_OPERATE','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_collabCursorController','contains','getUnhiddenWorksheets','YUUMI_UNABLE_LOAD_URL','getMergeData','12WrOgoS','_colorAssignService','currentSkeleton$','_init','now','currentColor','mutations','xlink:href','_applyCommand','mask','_assignedColors','9400440MOyjrQ','font','location','on-line-icon','4fMOKCi','setParam','debug','sheetId','error','_docTransformStateCacheService','measureText','Warning','ticket','_cursor','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','color','toString','YUUMI_ALL_TABLES_IS_INVALID','enableLocalCache','collaboration.closeRoom','_initUserListener','_hover','101152LvdYuF','0\x200\x2016\x2016','delete','assign','selection','trim','REDEMPTION_USER_NOT_ELIGIBLE','parse','transformRemoteChangeset','3320121NbySqr','colno','36syBAdB','YUUMI_CONNECTOR_URL_NOT_FOUND','_handleHover','disposeUnit','beginPath','_hovered','exhaustSavingTask','966250hHDdQA','EMAIL_HAS_BEEN_BOUND','_textBubble','addObject','onCommandExecuted','TEXT','_scheduleClearOtherTimer','_drawRectRange','_initCommandExecutedListener','split','getAncestorScale','UNIVER_SHEET','href','getCurrentRevOfUnit','green.600','_roomMembers$','_startDocCollabCursor','_docClipboardService','code','_createSocketURL','transformMutationsWithChangeset','collaboration.single-unit.warning','has','dirtyRanges','collaboration.offline-data-not-saved','MOBILE_VERIFY_CODE_MISMATCH','executionId','unit','_initEntityListener','registerRenderModule','setInterval','_registerDependencies','ENTITLE_CHAT_LIMIT_EXCEED','replace','getRelativeToViewportCoord','_getAnchorBounding','_renderManagerService','message','session.collaboration-timeout','VIEW_MAIN','find','_docSkeleton','_logService','_saveTaskMap','event$','_getSheetObject','_startSheetCollabCursor','onPointerLeave$','sessionTicket','_scheduleSaving','collaboration-client-ui.config','off-line-icon_clip0_910_343','pushState','_toggleOnline','INVITE_CODE_ALREADY_BOUND','transform','_updateCollabCursors','_initDependencies','maxFormulaLimit','47789sKUNOO','REDEMPTION_CODE_HAS_BEEN_CREATED','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','uni.network.url-service','_handleJoinEvent','SOCKET_FAILED','addEventListener','drawWith','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getRenderById','_shapes','removeParam','subunit','actions','setConfig','post','roomMembers$','ENTITLE_NEED_BILLING_ADDRESS','assignAColorForMemberID','_memberService','LICENSE_EXPORT_SIZE_EXCEEDED','size','focused$','APPLY_NON_SEQUENTIAL_REVISION','http://www.w3.org/2000/svg','_httpService','unhandledrejection','_transformUndoRedoStack','collab-text-anchor-','ENTITLE_USE_COUPON_NOT_1ST_TRADE','getActiveSheet','AWAITING_WITH_PENDING','getSheetBySheetId','backgroundColor','USER_IS_ANONYMOUS','attrs','USER_NOT_INVITED_CODE','startsWith','asObservable','entityInit$','session.will-retry','_saveCache','_scene','getCurrent','fillStyle','loadOfflineData','subscribeEvent','USERS_LEAVE','body','_setFormulaLimitStatus','ENTITLE_DUP_SUBSCRIPTION','ENTITLE_INVALID_COUPON_CODE','shift','name','_cursorShapes','_drawAnchor','_entityInit$','jiqing.500','_draw','setItem','lineno','from','collab-rect-range-','CONNECTOR_DATA_TOO_LARGE','stack','addObjects','univer-mr-2\x20univer-flex\x20univer-text-xl','_disabled','resize','with','none','SYNCED','_currentUsage','releaseFormulaLimitUrl','getDocRanges','ENTITLE_REPORT_LIMIT_EXCEED','_online','path','_config','getColorFromTheme','complete','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getOwnPropertyDescriptor','_scheduleHeartbeat','cursorInfo$','arc','round','bottom','getMember','_transformPreviousActiveRange','[Window\x20Error]:\x20','NO_OTHER_CLIENTS_EDITING','translate(.97)','_injector','save','USER_NOT_FOUND','textRanges','Unknown\x20user','894maUJrJ','FromArray','onStarting','YUUMI_URL_COL_OUT_OF_RANGE','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_ensureSubject','_unitStatus','catch','_updateLocalCursor','entries','getTypeOfUnitAdded$','onTransformChange$','bind','_cachedData','docStateChange$','formula.calculation.unable','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','PAYMENT_CHANNEL_NOT_SUPPORT','isEditing','getCurrentUnitForType','defIds','m2Prime','EMAIL_VERIFY_CODE_MISMATCH','_setupBeforeClosingHandler','dispose','Failed','_initStatusListener','roomMembers','data','ranges','defs','UNAUTHENTICATED','_status$','UNRECOGNIZED','_render','\x20at\x20','_document','collabCursorState$','INTERNAL_ERROR','_collabCursorState$','column','_anchorDot','_name','symbol','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','collabStatus.syncing','getformulaLimitStatusUrl','getSheetId'];_0x4498=function(){return _0x554654;};return _0x4498();}le=ln([ne(0x0,_0x13e3c7(_0x6717c8)),ne(0x1,_0x13e3c7(_0x58299b)),ne(0x2,_0x2bfead),ne(0x3,_0x13e3c7(_0x431e53))],le);const hn=_0x2d19ee(0x24c),_t={};var un=Object[_0x2d19ee(0x2a7)],dn=(_0x540cd2,_0xf6814c,_0x5cf472,_0x2e4e6d)=>{const _0x496166=_0x2d19ee;for(var _0x3054f0=_0x2e4e6d>0x1?void 0x0:_0x2e4e6d?un(_0xf6814c,_0x5cf472):_0xf6814c,_0x1969be=_0x540cd2[_0x496166(0x375)]-0x1,_0x1d7059;_0x1969be>=0x0;_0x1969be--)(_0x1d7059=_0x540cd2[_0x1969be])&&(_0x3054f0=_0x1d7059(_0x3054f0)||_0x3054f0);return _0x3054f0;},lt=(_0x53318f,_0x13062e)=>(_0x382812,_0x557ccf)=>_0x13062e(_0x382812,_0x557ccf,_0x53318f);let he=class{constructor(_0x3fe2d8,_0x3dd813){const _0x3afe8d=_0x2d19ee;this['_transformService']=_0x3fe2d8,this[_0x3afe8d(0x23e)]=_0x3dd813;}['transformIMECache'](_0x1c8523){const _0x295601=_0x2d19ee;this[_0x295601(0x270)](_0x1c8523),this[_0x295601(0x2ae)](_0x1c8523);}[_0x2d19ee(0x210)](_0x539611){const _0x190217=_0x2d19ee,{unitID:_0x4f6ad9}=_0x539611,_0x5711fa=this[_0x190217(0x23e)][_0x190217(0x25e)](_0x4f6ad9)[_0x190217(0x29a)](_0x57bd0a),{redoCache:_0x358ead}=_0x5711fa[_0x190217(0x34c)]();if(_0x358ead['length']===0x0)return _0x539611;let _0x5aff15=_0x2fbfda[_0x190217(0x34e)](_0x539611[_0x190217(0x1ec)][0x0]);for(let _0x380c61=0x0;_0x380c61<_0x358ead[_0x190217(0x375)];_0x380c61++){const _0x23dd1f={'id':'doc.mutation.rich-text-editing','params':{..._0x358ead[_0x380c61]}},_0x31f56f=this[_0x190217(0x2f6)][_0x190217(0x1d9)](_0x5aff15,_0x23dd1f,!0x1);if(_0xbfd48e(_0x31f56f))throw _0x31f56f[_0x190217(0x1f9)];_0x5aff15=_0x31f56f[_0x190217(0x2f2)];}return{..._0x2fbfda[_0x190217(0x34e)](_0x539611),'mutations':[_0x5aff15]};}['_transformUndoRedoStack'](_0x2ca40d){const _0xc154c5=_0x2d19ee,{unitID:_0x4157f}=_0x2ca40d,_0x2a877f=this[_0xc154c5(0x23e)]['getRenderById'](_0x4157f)['with'](_0x57bd0a),{undoCache:_0x187fc7,redoCache:_0x225a4d}=_0x2a877f[_0xc154c5(0x34c)]();if(_0x187fc7[_0xc154c5(0x375)]===0x0||_0x225a4d[_0xc154c5(0x375)]===0x0)return;const _0x2498a7=[],_0x26959d=[];let _0x5118b1=_0x2fbfda[_0xc154c5(0x34e)](_0x2ca40d[_0xc154c5(0x1ec)][0x0]),_0x4baf34=_0x2fbfda[_0xc154c5(0x34e)](_0x2ca40d[_0xc154c5(0x1ec)][0x0]);for(let _0xca7224=_0x187fc7['length']-0x1;_0xca7224>=0x0;_0xca7224--){const _0x41fcf5={'id':_0xc154c5(0x12f),'params':{..._0x187fc7[_0xca7224]}},_0x1b3cb6={'id':_0xc154c5(0x12f),'params':{..._0x225a4d[_0xca7224]}},_0x3f1b3f=this[_0xc154c5(0x2f6)][_0xc154c5(0x1d9)](_0x5118b1,_0x41fcf5,!0x1),_0x4f014f=this[_0xc154c5(0x2f6)][_0xc154c5(0x1d9)](_0x4baf34,_0x1b3cb6,!0x1);if(_0xbfd48e(_0x3f1b3f))throw _0x3f1b3f[_0xc154c5(0x1f9)];if(_0xbfd48e(_0x4f014f))throw _0x4f014f[_0xc154c5(0x1f9)];_0x2498a7[_0xc154c5(0x174)](_0x3f1b3f['m2Prime'][_0xc154c5(0x19b)]),_0x26959d[_0xc154c5(0x174)](_0x4f014f[_0xc154c5(0x2cc)][_0xc154c5(0x19b)]),_0x5118b1=_0x3f1b3f[_0xc154c5(0x2f2)],_0x4baf34=_0x4f014f[_0xc154c5(0x2f2)];}_0x2a877f[_0xc154c5(0x1ca)]({'undoCache':_0x2498a7,'redoCache':_0x26959d});}['_transformPreviousActiveRange'](_0x4467b6){const _0x251f6f=_0x2d19ee,{unitID:_0x4601ff}=_0x4467b6,_0x183f85=this[_0x251f6f(0x23e)]['getRenderById'](_0x4601ff)[_0x251f6f(0x29a)](_0x57bd0a),_0x3284cb=_0x183f85['getActiveRange']();if(_0x3284cb==null)return;const _0x53a610=[{'id':_0x251f6f(0x12f),'params':{'unitId':_0x4467b6['unitID'],'actions':null,'textRanges':[_0x3284cb]}}],_0x49ef32=this['_transformService']['transformMutationsWithChangeset'](_0x4467b6,_0x53a610);if(!_0x1f1a8a(_0x49ef32))throw _0x49ef32[_0x251f6f(0x1f9)];const _0x5abd96=_0x49ef32[_0x251f6f(0x2cc)][0x0][_0x251f6f(0x19b)][_0x251f6f(0x2b5)];Array[_0x251f6f(0x1c8)](_0x5abd96)&&_0x5abd96['length']&&_0x183f85[_0x251f6f(0x18a)](_0x5abd96[0x0]);}};he=dn([lt(0x0,_0x3990fc),lt(0x1,_0x3e8801)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x590ceb,_0x375ddd,_0x16a7d4,_0x496cb6)=>{const _0x57c585=_0x2d19ee;for(var _0x5e1a43=_0x496cb6>0x1?void 0x0:_0x496cb6?Sn(_0x375ddd,_0x16a7d4):_0x375ddd,_0x1d33f9=_0x590ceb[_0x57c585(0x375)]-0x1,_0x57828c;_0x1d33f9>=0x0;_0x1d33f9--)(_0x57828c=_0x590ceb[_0x1d33f9])&&(_0x5e1a43=_0x57828c(_0x5e1a43)||_0x5e1a43);return _0x5e1a43;},Le=(_0x597f74,_0x2b0af8)=>(_0x458724,_0x5695e6)=>_0x2b0af8(_0x458724,_0x5695e6,_0x597f74);let ue=class{constructor(_0x52fc3b,_0x4819a0,_0x1d1358){const _0x2cacd1=_0x2d19ee;this['_injector']=_0x52fc3b,this[_0x2cacd1(0x2f6)]=_0x4819a0,this['_docStateChangeManagerService']=_0x1d1358;}[_0x2d19ee(0x325)](_0x5a7955){const _0x3929fb=_0x2d19ee;this[_0x3929fb(0x32e)](_0x5a7955);}[_0x2d19ee(0x210)](_0x42d9be){const _0x32def=_0x2d19ee,{unitID:_0x23398a}=_0x42d9be,{collaboration:_0x35af14}=this[_0x32def(0x2f0)][_0x32def(0x1dd)](_0x23398a);if(_0x35af14[_0x32def(0x375)]===0x0)return _0x42d9be;let _0x595e47=_0x2fbfda[_0x32def(0x34e)](_0x42d9be[_0x32def(0x1ec)][0x0]);for(let _0x3efe52=0x0;_0x3efe52<_0x35af14[_0x32def(0x375)];_0x3efe52++){const _0x34b620={'id':_0x32def(0x12f),'params':{'unitId':_0x35af14[_0x3efe52][_0x32def(0x352)],..._0x35af14[_0x3efe52]['redoState']}},_0x1598e4=this[_0x32def(0x2f6)]['transformMutation'](_0x595e47,_0x34b620,!0x1);if(_0xbfd48e(_0x1598e4))throw _0x1598e4[_0x32def(0x1f9)];_0x595e47=_0x1598e4[_0x32def(0x2f2)];}return{..._0x2fbfda[_0x32def(0x34e)](_0x42d9be),'mutations':[_0x595e47]};}[_0x2d19ee(0x32e)](_0x597f8f){const _0x192d1=_0x2d19ee,{unitID:_0x54231b}=_0x597f8f,{history:_0x3f92fe,collaboration:_0x4c5510}=this[_0x192d1(0x2f0)]['getStateCache'](_0x54231b);if(_0x3f92fe[_0x192d1(0x375)]===0x0&&_0x4c5510[_0x192d1(0x375)]===0x0)return;const _0xc73ca6=[],_0x1ff7c3=[];let _0x492ebf=_0x2fbfda[_0x192d1(0x34e)](_0x597f8f[_0x192d1(0x1ec)][0x0]),_0x4272ff=_0x2fbfda[_0x192d1(0x34e)](_0x597f8f[_0x192d1(0x1ec)][0x0]);for(let _0x263506=_0x3f92fe['length']-0x1;_0x263506>=0x0;_0x263506--){const _0x352fa3={'id':_0x192d1(0x12f),'params':{'unitId':_0x3f92fe[_0x263506][_0x192d1(0x352)],..._0x3f92fe[_0x263506][_0x192d1(0x14a)]}},_0x4bd09b={'id':_0x192d1(0x12f),'params':{'unitId':_0x3f92fe[_0x263506][_0x192d1(0x352)],..._0x3f92fe[_0x263506][_0x192d1(0x36e)]}},_0x3a6a97=this[_0x192d1(0x2f6)][_0x192d1(0x1d9)](_0x492ebf,_0x352fa3,!0x1),_0x57beae=this[_0x192d1(0x2f6)][_0x192d1(0x1d9)](_0x4272ff,_0x4bd09b,!0x1);if(_0xbfd48e(_0x3a6a97))throw _0x3a6a97['error'];if(_0xbfd48e(_0x57beae))throw _0x57beae[_0x192d1(0x1f9)];_0xc73ca6['unshift']({..._0x3f92fe[_0x263506],'undoState':_0x3a6a97[_0x192d1(0x2cc)][_0x192d1(0x19b)],'redoState':_0x57beae[_0x192d1(0x2cc)][_0x192d1(0x19b)]}),_0x492ebf=_0x3a6a97[_0x192d1(0x2f2)],_0x4272ff=_0x57beae[_0x192d1(0x2f2)];}_0x492ebf=_0x2fbfda[_0x192d1(0x34e)](_0x597f8f[_0x192d1(0x1ec)][0x0]),_0x4272ff=_0x2fbfda['deepClone'](_0x597f8f['mutations'][0x0]);for(let _0x3c63e4=_0x4c5510[_0x192d1(0x375)]-0x1;_0x3c63e4>=0x0;_0x3c63e4--){const _0x888d36={'id':_0x192d1(0x12f),'params':{'unitId':_0x4c5510[_0x3c63e4][_0x192d1(0x352)],..._0x4c5510[_0x3c63e4][_0x192d1(0x14a)]}},_0x3c2ba2={'id':_0x192d1(0x12f),'params':{'unitId':_0x4c5510[_0x3c63e4][_0x192d1(0x352)],..._0x4c5510[_0x3c63e4]['redoState']}},_0x3aab40=this[_0x192d1(0x2f6)]['transformMutation'](_0x492ebf,_0x888d36,!0x1),_0x5624cb=this[_0x192d1(0x2f6)][_0x192d1(0x1d9)](_0x4272ff,_0x3c2ba2,!0x1);if(_0xbfd48e(_0x3aab40))throw _0x3aab40[_0x192d1(0x1f9)];if(_0xbfd48e(_0x5624cb))throw _0x5624cb[_0x192d1(0x1f9)];_0x1ff7c3[_0x192d1(0x174)]({..._0x4c5510[_0x3c63e4],'undoState':_0x3aab40[_0x192d1(0x2cc)][_0x192d1(0x19b)],'redoState':_0x5624cb[_0x192d1(0x2cc)][_0x192d1(0x19b)]}),_0x492ebf=_0x3aab40['m1Prime'],_0x4272ff=_0x5624cb[_0x192d1(0x2f2)];}this[_0x192d1(0x2f0)]['setStateCache'](_0x54231b,{'history':_0xc73ca6,'collaboration':_0x1ff7c3});}};ue=In([Le(0x0,_0x13e3c7(_0x6717c8)),Le(0x1,_0x3990fc),Le(0x2,_0x13e3c7(_0x7528bc))],ue);var mn=Object[_0x2d19ee(0x2a7)],fn=(_0x9cd1c1,_0x233171,_0x4f108c,_0xb3ce5f)=>{for(var _0x4d979b=_0xb3ce5f>0x1?void 0x0:_0xb3ce5f?mn(_0x233171,_0x4f108c):_0x233171,_0x593d0d=_0x9cd1c1['length']-0x1,_0x57cbb3;_0x593d0d>=0x0;_0x593d0d--)(_0x57cbb3=_0x9cd1c1[_0x593d0d])&&(_0x4d979b=_0x57cbb3(_0x4d979b)||_0x4d979b);return _0x4d979b;},ht=(_0x15f2be,_0x576101)=>(_0x3cc277,_0x305094)=>_0x576101(_0x3cc277,_0x305094,_0x15f2be);let de=class{constructor(_0x4a170c,_0x133bdc){const _0x4e78ec=_0x2d19ee;this[_0x4e78ec(0x2b2)]=_0x4a170c,this[_0x4e78ec(0x2f6)]=_0x133bdc;}[_0x2d19ee(0x323)](_0x208d0f){const _0x362ae7=_0x2d19ee;var _0x22ef8c;const _0x1b2c54=this['_injector'][_0x362ae7(0x1a4)](_0x318e9f),_0x4b47ac=(_0x22ef8c=_0x1b2c54[_0x362ae7(0x29f)]())!=null?_0x22ef8c:[];if(_0x4b47ac[_0x362ae7(0x375)]===0x0)return;const _0x26977c=_0x208d0f[_0x362ae7(0x369)],_0x3d5eac=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x26977c,'actions':null,'textRanges':_0x4b47ac}}],_0x3084ab=this[_0x362ae7(0x2f6)][_0x362ae7(0x22e)](_0x208d0f,_0x3d5eac);if(!_0x1f1a8a(_0x3084ab))throw _0x3084ab['error'];const _0x587d1a=_0x3084ab[_0x362ae7(0x2cc)][0x0][_0x362ae7(0x19b)][_0x362ae7(0x2b5)];Array[_0x362ae7(0x1c8)](_0x587d1a)&&_0x587d1a[_0x362ae7(0x375)]&&_0x1b2c54['replaceDocRanges'](_0x587d1a,{'unitId':_0x26977c,'subUnitId':_0x26977c},!0x1);}};de=fn([ht(0x0,_0x13e3c7(_0x6717c8)),ht(0x1,_0x3990fc)],de);var gn=Object[_0x2d19ee(0x2a7)],En=(_0x29f24d,_0x43cb46,_0x268fe2,_0x313bae)=>{const _0x2b84c0=_0x2d19ee;for(var _0x2cd900=_0x313bae>0x1?void 0x0:_0x313bae?gn(_0x43cb46,_0x268fe2):_0x43cb46,_0x889780=_0x29f24d[_0x2b84c0(0x375)]-0x1,_0x17a722;_0x889780>=0x0;_0x889780--)(_0x17a722=_0x29f24d[_0x889780])&&(_0x2cd900=_0x17a722(_0x2cd900)||_0x2cd900);return _0x2cd900;},U=(_0x4a7c76,_0xd5897b)=>(_0x2de368,_0x3adc1f)=>_0xd5897b(_0x2de368,_0x3adc1f,_0x4a7c76);let Se=class extends _0x55618d{constructor(_0x687429,_0x5f3e19,_0xdc1337,_0x3b9833,_0x5c4211,_0x4109c8,_0xa97e7a,_0x339a53){const _0x5b85b3=_0x2d19ee;super(),_(this,_0x5b85b3(0x2d7),new _0x5689a5(_0x14e54a[_0x5b85b3(0x130)])),(this[_0x5b85b3(0x2f0)]=_0x687429,this[_0x5b85b3(0x156)]=_0x5f3e19,this['_docTransformIMECacheService']=_0xdc1337,this['_docTransformStateCacheService']=_0x3b9833,this['_docTransformSelectionsService']=_0x5c4211,this[_0x5b85b3(0x328)]=_0x4109c8,this['_messageService']=_0xa97e7a,this[_0x5b85b3(0x2ea)]=_0x339a53,this['_initEntityListener']());}[_0x2d19ee(0x236)](){const _0x1aa2c2=_0x2d19ee;this['disposeWithMe'](this[_0x1aa2c2(0x156)][_0x1aa2c2(0x27c)][_0x1aa2c2(0x150)](_0x564ed5=>{const _0x999348=_0x1aa2c2,_0x2bf5a6=this[_0x999348(0x2f0)][_0x999348(0x2c5)][_0x999348(0x150)](_0x72ece0=>{const _0x554c91=_0x999348;if(_0x72ece0==null)return;const {unitId:_0x546ca3,redoState:_0x5f0d0a,commandId:_0xfeea51}=_0x72ece0;if(_0x546ca3!==_0x564ed5[_0x554c91(0x369)])return;const _0xd733f={'id':_0xfeea51,'type':_0x569143[_0x554c91(0x340)],'params':{'unitId':_0x546ca3,'actions':_0x5f0d0a[_0x554c91(0x262)],'textRanges':null}};_0x564ed5[_0x554c91(0x33f)](_0xd733f);});if(_0x564ed5[_0x999348(0x1b6)](_0x2bf5a6),_0x564ed5 instanceof _0x5da887){const _0xf5f721={'onTransformIME':_0x193415=>this[_0x999348(0x31e)][_0x999348(0x182)](_0x193415),'onTransformState':_0x388489=>this[_0x999348(0x1fa)][_0x999348(0x325)](_0x388489),'onTransformSelections':_0xb6bc5c=>this[_0x999348(0x333)]['transformSelections'](_0xb6bc5c),'onSyncEditingCollabCursor':_0x52d1aa=>this[_0x999348(0x328)]['syncEditingCollabCursor'](_0x52d1aa),'onTransformRemoteChangesetByIMECache':_0x4d20d4=>this[_0x999348(0x31e)][_0x999348(0x210)](_0x4d20d4),'onTransformRemoteChangesetByStateCache':_0x293d71=>this[_0x999348(0x1fa)][_0x999348(0x210)](_0x293d71)};_0x564ed5[_0x999348(0x142)](_0xf5f721);}}));}};Se=En([U(0x0,_0x13e3c7(_0x7528bc)),U(0x1,_0x13e3c7(_0x151f08)),U(0x2,_0x13e3c7(he)),U(0x3,_0x13e3c7(ue)),U(0x4,_0x13e3c7(de)),U(0x5,_0x13e3c7(ze)),U(0x6,_0x551408),U(0x7,_0x13e3c7(_0x548920))],Se);var Z=(_0x5c5bee=>(_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1cd)]=0x0]='UNDEFINED',_0x5c5bee[_0x5c5bee['OK']=0x1]='OK',_0x5c5bee[_0x5c5bee['INTERNAL_ERROR']=0x2]=_0x2d19ee(0x2dd),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2f5)]=0x3]=_0x2d19ee(0x2f5),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x310)]=0x4]='NOT_FOUND',_0x5c5bee[_0x5c5bee['UNAUTHENTICATED']=0x5]=_0x2d19ee(0x2d6),_0x5c5bee[_0x5c5bee['ALREADY_EXISTS']=0x6]=_0x2d19ee(0x178),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x17a)]=0x7]=_0x2d19ee(0x17a),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x158)]=0x8]=_0x2d19ee(0x158),_0x5c5bee[_0x5c5bee['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x37d)]=0xa]=_0x2d19ee(0x37d),_0x5c5bee[_0x5c5bee['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x2d19ee(0x233),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2f4)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2cd)]=0xd]=_0x2d19ee(0x2cd),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x25d)]=0xe]=_0x2d19ee(0x25d),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1a6)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x153)]=0x10]=_0x2d19ee(0x153),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1df)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x35d)]=0x65]=_0x2d19ee(0x35d),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2b4)]=0xc9]=_0x2d19ee(0x2b4),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x277)]=0xca]=_0x2d19ee(0x277),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x192)]=0x1389]=_0x2d19ee(0x192),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2fd)]=0x1771]=_0x2d19ee(0x2fd),_0x5c5bee[_0x5c5bee['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x383)]=0x1773]=_0x2d19ee(0x383),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1a1)]=0x1b59]=_0x2d19ee(0x1a1),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x26c)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x180)]=0x1b5b]=_0x2d19ee(0x180),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x177)]=0x1b5c]=_0x2d19ee(0x177),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x13c)]=0x1b5d]=_0x2d19ee(0x13c),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x294)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1c0)]=0x2329]=_0x2d19ee(0x1c0),_0x5c5bee[_0x5c5bee['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x2d19ee(0x382),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x31d)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x269)]=0x232c]=_0x2d19ee(0x269),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x326)]=0x232d]=_0x2d19ee(0x326),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1e4)]=0x2711]=_0x2d19ee(0x1e4),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2ba)]=0x2712]=_0x2d19ee(0x2ba),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1d3)]=0x2713]=_0x2d19ee(0x1d3),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x140)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1ce)]=0x271a]=_0x2d19ee(0x1ce),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2ff)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1a0)]=0x271c]=_0x2d19ee(0x1a0),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x203)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x5c5bee[_0x5c5bee['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x2d19ee(0x2e3),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x14e)]=0x271f]=_0x2d19ee(0x14e),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x214)]=0x2720]=_0x2d19ee(0x214),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x361)]=0x2af9]=_0x2d19ee(0x361),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x197)]=0x2ee1]=_0x2d19ee(0x197),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x189)]=0x2ee2]='INVALID_INVITE_CODE',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x327)]=0x2ee3]=_0x2d19ee(0x327),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x279)]=0x2ee4]=_0x2d19ee(0x279),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x250)]=0x2ee5]=_0x2d19ee(0x250),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x176)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x5c5bee[_0x5c5bee['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x21b)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2fc)]=0x36b1]=_0x2d19ee(0x2fc),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x200)]=0x36b2]=_0x2d19ee(0x200),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x287)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2c8)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x288)]=0x36b5]=_0x2d19ee(0x288),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x35b)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x15f)]=0x36b7]=_0x2d19ee(0x15f),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x272)]=0x36b8]=_0x2d19ee(0x272),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x23a)]=0x3715]=_0x2d19ee(0x23a),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2a0)]=0x3716]=_0x2d19ee(0x2a0),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x343)]=0x3717]=_0x2d19ee(0x343),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x266)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x190)]=0x3a99]=_0x2d19ee(0x190),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x18b)]=0x3a9a]=_0x2d19ee(0x18b),_0x5c5bee[_0x5c5bee['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x2d19ee(0x13e),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x332)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x20e)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2bb)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x256)]=0x3a9f]=_0x2d19ee(0x256),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x30b)]=0x3e81]=_0x2d19ee(0x30b),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2d8)]=-0x1]=_0x2d19ee(0x2d8),_0x5c5bee))(Z||{});function vn(_0x2b4667){const _0x23881d=_0x2d19ee;var _0x208e70,_0x465e35;const _0x8c0661=(_0x208e70=_0x2b4667['stageInfo'])==null?void 0x0:_0x208e70[_0x23881d(0x36f)],_0x57f057=((_0x465e35=_0x2b4667['stageInfo'])==null?void 0x0:_0x465e35[_0x23881d(0x1a5)])||0x0;return _0x8c0661===_0x5d8674[_0x23881d(0x313)]&&_0x57f057>0x0;}function pn(_0x256f3d){const _0x275ed7=_0x2d19ee;return _0x256f3d['functionsExecutedState']===_0x2ae0c4[_0x275ed7(0x2f8)];}var On=Object[_0x2d19ee(0x2a7)],Tn=(_0x4e4a70,_0x418883,_0x5f2d82,_0x410715)=>{const _0x775fb1=_0x2d19ee;for(var _0x57197f=_0x410715>0x1?void 0x0:_0x410715?On(_0x418883,_0x5f2d82):_0x418883,_0x367f93=_0x4e4a70[_0x775fb1(0x375)]-0x1,_0x24e8af;_0x367f93>=0x0;_0x367f93--)(_0x24e8af=_0x4e4a70[_0x367f93])&&(_0x57197f=_0x24e8af(_0x57197f)||_0x57197f);return _0x57197f;},P=(_0x208601,_0x1cec2d)=>(_0x319a87,_0xb1bca9)=>_0x1cec2d(_0x319a87,_0xb1bca9,_0x208601);const Cn='/universer-api/license/formula/limit/status',Rn='/universer-api/license/formula/limit/start',Dn='/universer-api/license/formula/limit/done';let Ie=class extends _0x55618d{constructor(_0xcc6e53,_0x4d7258,_0x3e567e,_0x4e1d6d,_0x3ae3ac,_0x512a99,_0x5c15de){const _0x17aaf0=_0x2d19ee;super(),_(this,'_pollingInterval',null),_(this,_0x17aaf0(0x18d),0x0),_(this,_0x17aaf0(0x29d),0x0),_(this,'_taskIds',[]),_(this,_0x17aaf0(0x137),0x0),(this[_0x17aaf0(0x16f)]=_0xcc6e53,this[_0x17aaf0(0x162)]=_0x4d7258,this[_0x17aaf0(0x13a)]=_0x3e567e,this['_httpService']=_0x4e1d6d,this['_univerInstanceService']=_0x3ae3ac,this['_logService']=_0x512a99,this[_0x17aaf0(0x2ea)]=_0x5c15de,this[_0x17aaf0(0x335)]());}[_0x2d19ee(0x335)](){const _0x35c0ca=_0x2d19ee;this[_0x35c0ca(0x1b6)](this[_0x35c0ca(0x162)]['beforeCommandExecuted']((_0x4094e9,_0x55d8ab)=>{const _0x433236=_0x35c0ca;var _0x38bcf0;if(_0x4094e9['id']!==_0x4f8fdb['id'])return;const _0x101d97=_0x4094e9[_0x433236(0x19b)];if(!this[_0x433236(0x380)]((_0x38bcf0=_0x101d97[_0x433236(0x231)])!=null?_0x38bcf0:[]))return;if(!this[_0x433236(0x36a)]())throw this[_0x433236(0x1c6)](_0x4094e9,_0x55d8ab),this[_0x433236(0x146)](),new _0x1dbb9e();})),this[_0x35c0ca(0x1b6)](this[_0x35c0ca(0x162)][_0x35c0ca(0x21e)]((_0x34953d,_0x36f5b6)=>{const _0x961d0=_0x35c0ca;if(_0x34953d['id']!==_0x33cc11['id'])return;const _0xf38736=_0x34953d['params'];if(vn(_0xf38736)){const _0x1264a4=_0x377b4b();this['_taskIds']['push'](_0x1264a4),this[_0x961d0(0x1d0)](_0x1264a4);}else{if(pn(_0xf38736)&&this['_taskIds'][_0x961d0(0x375)]>0x0){const _0x1c5fc0=this['_taskIds'][_0x961d0(0x289)]();this[_0x961d0(0x320)](_0x1c5fc0);}}}));}[_0x2d19ee(0x2cf)](){const _0x472e42=_0x2d19ee;super[_0x472e42(0x2cf)](),this[_0x472e42(0x318)](),this[_0x472e42(0x384)]=[],this[_0x472e42(0x29d)]=0x0,this[_0x472e42(0x18d)]=0x0,this[_0x472e42(0x137)]=0x0;}async[_0x2d19ee(0x1c6)](_0x1f84f0,_0x1974df){const _0x23506c=_0x2d19ee;for(let _0x24729b=0x0;_0x24729b<0x1e;_0x24729b++)try{if(await this[_0x23506c(0x37a)](),this[_0x23506c(0x36a)]()){this['_applyCommand'](_0x1f84f0,_0x1974df),this[_0x23506c(0x16f)][_0x23506c(0x14b)]({'content':this[_0x23506c(0x2ea)]['t']('formula.calculation.started'),'type':_0xe3500e['Success']});return;}await new Promise(_0x16f281=>{const _0x5b94a5=_0x23506c;this[_0x5b94a5(0x17c)]=window['setTimeout'](_0x16f281,0x3e8);});}catch(_0x44fadf){this[_0x23506c(0x244)][_0x23506c(0x1f9)](_0x44fadf);}this[_0x23506c(0x16f)][_0x23506c(0x14b)]({'content':this['_localeService']['t'](_0x23506c(0x2c6)),'type':_0xe3500e[_0x23506c(0x185)]});}[_0x2d19ee(0x1ee)](_0xa2832a,_0x42294e){const _0x575c49=_0x2d19ee;try{this['_commandService'][_0x575c49(0x16a)](_0xa2832a['id'],_0xa2832a[_0x575c49(0x19b)],_0x42294e);}catch(_0x35329a){this['_logService'][_0x575c49(0x1f9)](_0x35329a);}}[_0x2d19ee(0x286)](_0x3d89d6,_0x2a4ba7){const _0x2ec63b=_0x2d19ee;_0x2a4ba7<this[_0x2ec63b(0x137)]||(this[_0x2ec63b(0x137)]=_0x2a4ba7,this[_0x2ec63b(0x18d)]=Number[_0x2ec63b(0x2ec)](_0x3d89d6[_0x2ec63b(0x254)]),this[_0x2ec63b(0x29d)]=Number[_0x2ec63b(0x2ec)](_0x3d89d6[_0x2ec63b(0x14d)]));}async[_0x2d19ee(0x1d0)](_0x488007){const _0x2f31bb=_0x2d19ee;var _0x176a45,_0x2a3f50;const _0x2f983e=Date[_0x2f31bb(0x1ea)]();try{const _0x12f937=((_0x176a45=this[_0x2f31bb(0x13a)]['getConfig'](_0x189603))==null?void 0x0:_0x176a45[_0x2f31bb(0x173)])||Rn,_0x1ecd2d=(await this[_0x2f31bb(0x26e)][_0x2f31bb(0x264)](_0x12f937,{'body':JSON[_0x2f31bb(0x32a)]({'taskId':_0x488007})}))['body'];if(((_0x2a3f50=_0x1ecd2d['error'])==null?void 0x0:_0x2a3f50[_0x2f31bb(0x22c)])!==Z['OK'])return;this[_0x2f31bb(0x286)](_0x1ecd2d[_0x2f31bb(0x2f3)],_0x2f983e);}catch(_0x32531b){this[_0x2f31bb(0x244)][_0x2f31bb(0x1f9)](_0x32531b);}}async[_0x2d19ee(0x37a)](_0x248b86){const _0xfb0003=_0x2d19ee;var _0x3ee818,_0x5e2886;const _0x58ccdf=Date[_0xfb0003(0x1ea)]();try{const _0x4044a3=((_0x3ee818=this[_0xfb0003(0x13a)][_0xfb0003(0x195)](_0x189603))==null?void 0x0:_0x3ee818[_0xfb0003(0x2e5)])||Cn,_0x5193a8=_0x248b86?_0x4044a3+'?taskId='+encodeURIComponent(_0x248b86):_0x4044a3,_0x41c7d0=(await this['_httpService']['get'](_0x5193a8))[_0xfb0003(0x285)];if(((_0x5e2886=_0x41c7d0[_0xfb0003(0x1f9)])==null?void 0x0:_0x5e2886[_0xfb0003(0x22c)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x41c7d0[_0xfb0003(0x2f3)],_0x58ccdf);}catch(_0x4677d9){this['_logService'][_0xfb0003(0x1f9)](_0x4677d9);}}async[_0x2d19ee(0x320)](_0x19825b){const _0x5774a9=_0x2d19ee;var _0x346db3,_0x48c78a;const _0x4670d1=Date[_0x5774a9(0x1ea)]();try{const _0xa1109e=((_0x346db3=this[_0x5774a9(0x13a)][_0x5774a9(0x195)](_0x189603))==null?void 0x0:_0x346db3[_0x5774a9(0x29e)])||Dn,_0x2a4fde=(await this[_0x5774a9(0x26e)]['post'](_0xa1109e,{'body':JSON[_0x5774a9(0x32a)]({'taskId':_0x19825b})}))[_0x5774a9(0x285)];if(((_0x48c78a=_0x2a4fde['error'])==null?void 0x0:_0x48c78a[_0x5774a9(0x22c)])!==Z['OK'])return;this[_0x5774a9(0x286)](_0x2a4fde[_0x5774a9(0x2f3)],_0x4670d1);}catch(_0x3e48aa){this['_logService'][_0x5774a9(0x1f9)](_0x3e48aa);}}[_0x2d19ee(0x36a)](){const _0x2faf7f=_0x2d19ee;return this[_0x2faf7f(0x18d)]===0x0?!0x0:this[_0x2faf7f(0x18d)]-this[_0x2faf7f(0x29d)]>0x0;}['_clearPolling'](){const _0x5836d1=_0x2d19ee;this[_0x5836d1(0x17c)]&&(clearTimeout(this[_0x5836d1(0x17c)]),this['_pollingInterval']=null);}[_0x2d19ee(0x146)](){const _0x29d7bd=_0x2d19ee;this[_0x29d7bd(0x16f)][_0x29d7bd(0x14b)]({'content':this[_0x29d7bd(0x2ea)]['t'](_0x29d7bd(0x1c4)),'type':_0xe3500e['Loading']});}[_0x2d19ee(0x380)](_0x1679f7){const _0x303311=_0x2d19ee;for(const _0x315506 of _0x1679f7){const {unitId:_0x5f2717,sheetId:_0x534efb,range:_0x830391}=_0x315506,_0x5826c2=this['_univerInstanceService']['getUnit'](_0x5f2717);if(!_0x5826c2)continue;const _0x5c9e7b=_0x5826c2[_0x303311(0x275)](_0x534efb);if(!_0x5c9e7b)continue;const _0x2a4045=_0x5c9e7b[_0x303311(0x1cb)]();for(let _0xb3b960=_0x830391[_0x303311(0x163)];_0xb3b960<=_0x830391[_0x303311(0x355)];_0xb3b960++)for(let _0x4ff9c8=_0x830391[_0x303311(0x309)];_0x4ff9c8<=_0x830391[_0x303311(0x35e)];_0x4ff9c8++){const _0x3074d2=_0x2a4045[_0x303311(0x378)](_0xb3b960,_0x4ff9c8);if(_0x3074d2&&(_0x14248c(_0x3074d2['f'])||_0xcdcb23(_0x3074d2['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x13e3c7(_0x551408)),P(0x1,_0x44deef),P(0x2,_0x46a8a4),P(0x3,_0x13e3c7(_0x58299b)),P(0x4,_0x5ea64d),P(0x5,_0x2bfead),P(0x6,_0x13e3c7(_0x548920))],Ie);var Nn=Object[_0x2d19ee(0x2a7)],bn=(_0x4e12cf,_0x591555,_0xe4e293,_0x2c8e13)=>{const _0x4fdefe=_0x2d19ee;for(var _0x189c67=_0x2c8e13>0x1?void 0x0:_0x2c8e13?Nn(_0x591555,_0xe4e293):_0x591555,_0x567279=_0x4e12cf[_0x4fdefe(0x375)]-0x1,_0x598bca;_0x567279>=0x0;_0x567279--)(_0x598bca=_0x4e12cf[_0x567279])&&(_0x189c67=_0x598bca(_0x189c67)||_0x189c67);return _0x189c67;},Ue=(_0x135334,_0x27e192)=>(_0x7d8942,_0x5a0c44)=>_0x27e192(_0x7d8942,_0x5a0c44,_0x135334);let He=class extends _0x55618d{constructor(_0x2d3b65,_0x55991d,_0x5d0a6f){const _0x3e7f39=_0x2d19ee;super(),_(this,_0x3e7f39(0x2c4),new Map()),_(this,_0x3e7f39(0x245),new Map()),_(this,_0x3e7f39(0x298),!0x1),(this[_0x3e7f39(0x13a)]=_0x2d3b65,this[_0x3e7f39(0x374)]=_0x55991d,this['_revisionService']=_0x5d0a6f);}[_0x2d19ee(0x16c)](){this['_disabled']=!0x0;}[_0x2d19ee(0x204)](){const _0x389f98=_0x2d19ee;this[_0x389f98(0x298)]=!0x1;}get[_0x2d19ee(0x134)](){const _0x41a64e=_0x2d19ee;return this[_0x41a64e(0x245)];}['dispose'](){const _0x2d50bf=_0x2d19ee;this[_0x2d50bf(0x219)]()['then'](()=>super['dispose']());}async[_0x2d19ee(0x282)](_0x9bedd8){const _0x296fdd=_0x2d19ee;return this[_0x296fdd(0x298)]?null:this['_localStorageService']['getItem'](_0x5850c1(_0x9bedd8));}async[_0x2d19ee(0x373)](_0x2e8cff,_0x4fbe21){const _0x298b2c=_0x2d19ee;return!!this[_0x298b2c(0x374)][_0x298b2c(0x290)](_0x2e8cff,_0x4fbe21);}['updateOfflineData'](_0x3939cb,_0x3043a1,_0x72d43d,_0x281327){const _0x175766=_0x2d19ee,_0x3e73ca=this[_0x175766(0x1c2)][_0x175766(0x227)](_0x3939cb);this[_0x175766(0x2c4)]['set'](_0x3939cb,{'unitID':_0x3939cb,'type':_0x3043a1,'awaitingChangeset':_0x72d43d,'mutations':_0x281327,'rev':_0x3e73ca}),this[_0x175766(0x245)]['has'](_0x3939cb)||this[_0x175766(0x24b)](_0x3939cb);}[_0x2d19ee(0x24b)](_0x51bf2c){const _0x3e5628=_0x2d19ee,_0x386960=this[_0x3e5628(0x30e)]();_0x386960===0x0?this[_0x3e5628(0x27e)](_0x51bf2c):this[_0x3e5628(0x245)][_0x3e5628(0x165)](_0x51bf2c,setTimeout(()=>this[_0x3e5628(0x27e)](_0x51bf2c),_0x386960));}[_0x2d19ee(0x30e)](){const _0x585e4c=_0x2d19ee;var _0x126c8d;return(_0x126c8d=this['_configService'][_0x585e4c(0x195)](_0x3d4cf4))!=null?_0x126c8d:_0x9823a9;}[_0x2d19ee(0x27e)](_0x340be8){const _0x296c6b=_0x2d19ee,_0x3ee3db=this[_0x296c6b(0x245)]['get'](_0x340be8);return _0x3ee3db!==void 0x0&&window[_0x296c6b(0x31a)](_0x3ee3db),this['_localStorageService'][_0x296c6b(0x290)](_0x5850c1(_0x340be8),this['_cachedData'][_0x296c6b(0x1a4)](_0x340be8))['then'](()=>this[_0x296c6b(0x245)]['delete'](_0x340be8));}async[_0x2d19ee(0x219)](){const _0x3b6a95=_0x2d19ee,_0x5987bb=[];this[_0x3b6a95(0x245)][_0x3b6a95(0x136)]((_0x29cf69,_0x1d223c)=>{const _0x296d15=_0x3b6a95;window[_0x296d15(0x31a)](_0x29cf69),_0x5987bb[_0x296d15(0x1bb)](this[_0x296d15(0x27e)](_0x1d223c)[_0x296d15(0x1b7)](()=>{const _0x541c5e=_0x296d15;this[_0x541c5e(0x245)]['delete'](_0x1d223c);}));}),await Promise[_0x3b6a95(0x14c)](_0x5987bb);}};He=bn([Ue(0x0,_0x46a8a4),Ue(0x1,_0x12194a),Ue(0x2,_0x13e3c7(_0x1c8bce))],He);class Ln extends _0x5b8c04{constructor(){const _0x5472f4=_0x2d19ee;super(),_(this,_0x5472f4(0x34f)),this[_0x5472f4(0x34f)]=_0x197cc9(window,'popstate')[_0x5472f4(0x359)](_0xefe94(this[_0x5472f4(0x339)]),_0x240f5f(0x1),_0x11e4f1(void 0x0));}[_0x2d19ee(0x1f6)](_0x197f8a,_0x8c19c4,_0x1d6ea1=!0x1){const _0x212600=_0x2d19ee,_0x492818=new URL(window[_0x212600(0x1f3)]['href']);_0x492818[_0x212600(0x2e7)]['set'](_0x197f8a,_0x8c19c4),_0x1d6ea1?window[_0x212600(0x1bd)][_0x212600(0x1d2)]('','',_0x492818[_0x212600(0x202)]()):window[_0x212600(0x1bd)]['pushState']('','',_0x492818[_0x212600(0x202)]());}[_0x2d19ee(0x260)](_0x3335e7,_0x552081=!0x1){const _0x278315=_0x2d19ee,_0x63faa=new URL(window[_0x278315(0x1f3)]['href']);_0x63faa['searchParams'][_0x278315(0x20a)](_0x3335e7),_0x552081?window[_0x278315(0x1bd)][_0x278315(0x1d2)]('','',_0x63faa[_0x278315(0x202)]()):window['history'][_0x278315(0x24e)]('','',_0x63faa[_0x278315(0x202)]());}[_0x2d19ee(0x172)](_0x2e6620){const _0x2ce507=_0x2d19ee;var _0xe5443b;return(_0xe5443b=new URL(window[_0x2ce507(0x1f3)][_0x2ce507(0x226)])['searchParams'][_0x2ce507(0x1a4)](_0x2e6620))!=null?_0xe5443b:void 0x0;}}var Un=Object[_0x2d19ee(0x18c)],Mn=Object['getOwnPropertyDescriptor'],An=(_0x8b4961,_0x37524b,_0x1c0475)=>_0x37524b in _0x8b4961?Un(_0x8b4961,_0x37524b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c0475}):_0x8b4961[_0x37524b]=_0x1c0475,Pn=(_0xca2858,_0xa3910f,_0x51b750,_0x2a05e7)=>{for(var _0x22df6a=_0x2a05e7>0x1?void 0x0:_0x2a05e7?Mn(_0xa3910f,_0x51b750):_0xa3910f,_0x50c4f1=_0xca2858['length']-0x1,_0x9ca1b7;_0x50c4f1>=0x0;_0x50c4f1--)(_0x9ca1b7=_0xca2858[_0x50c4f1])&&(_0x22df6a=_0x9ca1b7(_0x22df6a)||_0x22df6a);return _0x22df6a;},Me=(_0xb87721,_0x3925dc)=>(_0x48ee5a,_0xf9df4f)=>_0x3925dc(_0x48ee5a,_0xf9df4f,_0xb87721),wn=(_0x4fa227,_0x2913f8,_0x2c9dfb)=>An(_0x4fa227,_0x2913f8+'',_0x2c9dfb);const yn=_0x2d19ee(0x2c7);let Ye=class extends _0x3c443e{constructor(_0x4071f0=_t,_0x3d63ab,_0x574f6b,_0x2f1969){const _0x39e09b=_0x2d19ee;super(),this[_0x39e09b(0x2a3)]=_0x4071f0,this[_0x39e09b(0x23e)]=_0x3d63ab,this[_0x39e09b(0x2b2)]=_0x574f6b,this[_0x39e09b(0x13a)]=_0x2f1969;const {..._0x21f80d}=_0x2b7521({},_t,this[_0x39e09b(0x2a3)]);this[_0x39e09b(0x13a)][_0x39e09b(0x263)](hn,_0x21f80d);}[_0x2d19ee(0x2b9)](){const _0x232373=_0x2d19ee;this['_registerDependencies'](),this[_0x232373(0x253)]();}[_0x2d19ee(0x13d)](){const _0x30d1e4=_0x2d19ee;this[_0x30d1e4(0x2fe)]();}[_0x2d19ee(0x239)](){const _0x126b6c=_0x2d19ee;var _0x5f44d9;const _0x3a56e1=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x8a83ca,{'useClass':_0x1d6857}],[_0x26b1ca,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x126b6c(0x2a3)]['enableFrontendLog']&&_0x3a56e1[_0x126b6c(0x1bb)]([le]),_0x2c2aad(this[_0x126b6c(0x2b2)],_0x3b0ae8(_0x3a56e1,(_0x5f44d9=this[_0x126b6c(0x2a3)])==null?void 0x0:_0x5f44d9[_0x126b6c(0x15c)]));}[_0x2d19ee(0x2fe)](){const _0x3f6b56=_0x2d19ee;this[_0x3f6b56(0x1b6)](this[_0x3f6b56(0x23e)][_0x3f6b56(0x237)](_0x1de887['UNIVER_DOC'],[Fe])),this[_0x3f6b56(0x1b6)](this[_0x3f6b56(0x23e)][_0x3f6b56(0x237)](_0x1de887[_0x3f6b56(0x225)],[ke]));}[_0x2d19ee(0x253)](){const _0x4dc292=_0x2d19ee;_0x248c4c(this[_0x4dc292(0x2b2)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this['_config']['enableFrontendLog']&&_0x248c4c(this['_injector'],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x3f4a8a(_0x3b5370),Me(0x1,_0x3e8801),Me(0x2,_0x13e3c7(_0x6717c8)),Me(0x3,_0x46a8a4)],Ye);var $n=Object['getOwnPropertyDescriptor'],xn=(_0x318c35,_0x515852,_0xff9462,_0x5f3898)=>{const _0x13d982=_0x2d19ee;for(var _0x21fea2=_0x5f3898>0x1?void 0x0:_0x5f3898?$n(_0x515852,_0xff9462):_0x515852,_0xcf615=_0x318c35[_0x13d982(0x375)]-0x1,_0x266341;_0xcf615>=0x0;_0xcf615--)(_0x266341=_0x318c35[_0xcf615])&&(_0x21fea2=_0x266341(_0x21fea2)||_0x21fea2);return _0x21fea2;},J=(_0x519a48,_0x47e511)=>(_0x237372,_0x5d70d5)=>_0x47e511(_0x237372,_0x5d70d5,_0x519a48);let ut=class extends _0x1caedd{constructor(_0x425599,_0x409021,_0x382d95,_0x230b83,_0x5f0a2a){super(_0x425599,_0x409021,_0x382d95,_0x230b83,_0x5f0a2a);}async['createSocket'](_0x1d62b1){const _0x197c04=_0x2d19ee,_0x1adc14=await this[_0x197c04(0x36c)](),_0x4fbeff=this[_0x197c04(0x22d)](_0x1d62b1,_0x1adc14);return this[_0x197c04(0x37b)](_0x4fbeff);}[_0x2d19ee(0x22d)](_0x383529,_0x346137){const _0xe22fd9=_0x2d19ee,_0x498321=typeof window>'u'?new URL(_0x383529):new URL(_0x383529,window[_0xe22fd9(0x1f3)][_0xe22fd9(0x307)]);_0x498321['searchParams'][_0xe22fd9(0x165)](_0xe22fd9(0x24a),_0x346137);const _0x1ba993=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xe22fd9(0x1f3)][_0xe22fd9(0x353)]);return _0x1ba993[_0xe22fd9(0x1a4)]('runId')&&_0x498321[_0xe22fd9(0x2e7)][_0xe22fd9(0x165)]('runId',_0x1ba993[_0xe22fd9(0x1a4)]('runId')),_0x498321[_0xe22fd9(0x202)]();}async[_0x2d19ee(0x36c)](){const _0x5cb196=_0x2d19ee;var _0x28e325,_0x47b39c,_0x14b4c2;const _0x21f1ea=this[_0x5cb196(0x13a)][_0x5cb196(0x195)](_0x189603),_0x486695=(_0x28e325=_0x21f1ea==null?void 0x0:_0x21f1ea[_0x5cb196(0x2fb)])!=null?_0x28e325:_0x3e7782;return(_0x14b4c2=(_0x47b39c=(await this[_0x5cb196(0x26e)]['get'](_0x486695,{'headers':{'Content-Type':_0x5cb196(0x1b3)}}))[_0x5cb196(0x285)])==null?void 0x0:_0x47b39c[_0x5cb196(0x1fd)])!=null?_0x14b4c2:'';}};ut=xn([J(0x0,_0x13e3c7(_0x6717c8)),J(0x1,_0x13e3c7(_0x58299b)),J(0x2,_0x46a8a4),J(0x3,_0x2bfead),J(0x4,_0x35e927)],ut);var Bn=Object[_0x2d19ee(0x2a7)],Fn=(_0x5ce624,_0xfc550f,_0x3d3c17,_0x4b98ef)=>{for(var _0x977204=_0x4b98ef>0x1?void 0x0:_0x4b98ef?Bn(_0xfc550f,_0x3d3c17):_0xfc550f,_0x40c4f5=_0x5ce624['length']-0x1,_0x1c4d1e;_0x40c4f5>=0x0;_0x40c4f5--)(_0x1c4d1e=_0x5ce624[_0x40c4f5])&&(_0x977204=_0x1c4d1e(_0x977204)||_0x977204);return _0x977204;},Ae=(_0xcb0da0,_0x585f96)=>(_0x23acae,_0x3ac667)=>_0x585f96(_0x23acae,_0x3ac667,_0xcb0da0);let dt=class extends _0x55618d{constructor(_0x3caaaf,_0x38d233,_0x19e507){const _0xba47fd=_0x2d19ee;super(),this[_0xba47fd(0x2f1)]=_0x3caaaf,this[_0xba47fd(0x26e)]=_0x38d233,this['_configService']=_0x19e507;}async['runOnServer'](_0x1d119e,_0x2fddfc,_0x58d554,..._0x5a9146){const _0xd7c55d=_0x2d19ee;var _0x44568b,_0x2af588,_0x3d61fc,_0x5fc2d6;const _0x4f4098=this[_0xd7c55d(0x2f1)]['getFocusedUnit']();if(!_0x4f4098)throw new Error(_0xd7c55d(0x1e0));const _0x38f983=((_0x44568b=this[_0xd7c55d(0x13a)]['getConfig'](_0x26e0b7))!=null?_0x44568b:_0x36e979)+'/'+_0x1d119e+_0xd7c55d(0x34b)+_0x2fddfc,_0x2e8a06=new URL(window[_0xd7c55d(0x1f3)][_0xd7c55d(0x226)]),_0x2beeac={'scriptId':_0x1d119e,'runId':(_0x2af588=_0x2e8a06['searchParams'][_0xd7c55d(0x1a4)](_0xd7c55d(0x347)))!=null?_0x2af588:'','function':_0x2fddfc,'unitId':_0x4f4098[_0xd7c55d(0x377)](),'argsOfFunction':JSON[_0xd7c55d(0x32a)](_0x5a9146),'invokeId':(_0x3d61fc=_0x58d554[_0xd7c55d(0x300)])!=null?_0x3d61fc:'','executionId':(_0x5fc2d6=_0x58d554[_0xd7c55d(0x234)])!=null?_0x5fc2d6:''};try{const _0x4dde07=await this[_0xd7c55d(0x26e)]['post'](_0x38f983,{'body':_0x2beeac});return _0x4dde07[_0xd7c55d(0x285)][_0xd7c55d(0x1f9)]&&_0x4dde07[_0xd7c55d(0x285)][_0xd7c55d(0x1f9)]['code']!==Z['OK']?'Failed':_0x4dde07[_0xd7c55d(0x285)][_0xd7c55d(0x304)];}catch{return _0xd7c55d(0x2d0);}}};dt=Fn([Ae(0x0,_0x5ea64d),Ae(0x1,_0x13e3c7(_0x58299b)),Ae(0x2,_0x46a8a4)],dt);const St=0x7530,It=_0x2d19ee(0x15e);class rr extends _0x55618d{constructor(){const _0x245d20=_0x2d19ee;super(),_(this,_0x245d20(0x167),_0x377b4b()),_(this,_0x245d20(0x2ed),new Set()),_(this,_0x245d20(0x145),new Map()),_(this,_0x245d20(0x386),null),_(this,'_clearOtherTimers',new Map()),_(this,_0x245d20(0x2bd),new Map()),this['_init']();}['dispose'](){const _0x5ab909=_0x2d19ee;super[_0x5ab909(0x2cf)](),this[_0x5ab909(0x1aa)][_0x5ab909(0x136)]((_0x4cee4f,_0x21914f)=>this[_0x5ab909(0x2f7)](_0x21914f)),this[_0x5ab909(0x386)]&&window['clearInterval'](this[_0x5ab909(0x386)]);}['getUnitStatus$'](_0x4f7e4e){const _0xf6e0a2=_0x2d19ee;return this[_0xf6e0a2(0x2bc)](_0x4f7e4e)[_0xf6e0a2(0x359)](_0x52d636());}['editingUnit'](_0x19015f){const _0x3a53f8=_0x2d19ee;this['_selfUnitIDs'][_0x3a53f8(0x26a)]===0x0&&this[_0x3a53f8(0x2a8)](),this[_0x3a53f8(0x2ed)]['add'](_0x19015f),this[_0x3a53f8(0x1a3)]({'type':0x0,'memberID':this[_0x3a53f8(0x167)],'unitIDs':[_0x19015f],'isForwarded':!0x1});}[_0x2d19ee(0x216)](_0x475a7b){const _0x16e08e=_0x2d19ee;this[_0x16e08e(0x2ed)][_0x16e08e(0x20a)](_0x475a7b),this[_0x16e08e(0x2ed)][_0x16e08e(0x26a)]===0x0&&this[_0x16e08e(0x386)]&&window['clearInterval'](this[_0x16e08e(0x386)]);}['_init'](){const _0x215c95=_0x2d19ee;this[_0x215c95(0x1b6)](_0x5684e2(_0x197cc9(window,_0x215c95(0x379))[_0x215c95(0x150)](_0x269255=>{const _0x836598=_0x215c95;if(_0x269255[_0x836598(0x1c3)]!==It||!_0x269255[_0x836598(0x36b)])return;const _0x5a654d=JSON[_0x836598(0x20f)](_0x269255[_0x836598(0x36b)]);this[_0x836598(0x311)](_0x5a654d);}))),window[_0x215c95(0x25b)]('unload',()=>this[_0x215c95(0x1a3)]({'type':0x1,'memberID':this[_0x215c95(0x167)],'unitIDs':Array[_0x215c95(0x292)](this[_0x215c95(0x2ed)])}));}[_0x2d19ee(0x311)](_0x3ef991){const _0x1e0c00=_0x2d19ee;switch(_0x3ef991['type']){case 0x0:this[_0x1e0c00(0x259)](_0x3ef991);break;case 0x1:this['_handleLeaveEvent'](_0x3ef991);break;case 0x2:this[_0x1e0c00(0x322)](_0x3ef991);break;}}[_0x2d19ee(0x259)](_0x2fe8e5){const _0x42bc5f=_0x2d19ee,{unitIDs:_0x2cf65f,memberID:_0x2b265a,isForwarded:_0x41f897}=_0x2fe8e5;_0x2cf65f['forEach'](_0x5a0f9b=>{const _0x4da5ca=_0x3b77;if(!_0x41f897&&this[_0x4da5ca(0x145)]['has'](_0x5a0f9b)&&this[_0x4da5ca(0x2bc)](_0x5a0f9b)[_0x4da5ca(0x1a9)](_0x59d149[_0x4da5ca(0x196)]),!this[_0x4da5ca(0x145)][_0x4da5ca(0x230)](_0x5a0f9b)||!this[_0x4da5ca(0x145)][_0x4da5ca(0x1a4)](_0x5a0f9b)['has'](_0x2b265a)){const _0x58f465=this[_0x4da5ca(0x145)]['get'](_0x5a0f9b)||new Set();_0x58f465[_0x4da5ca(0x191)](_0x2b265a),this['_unitOnClients'][_0x4da5ca(0x165)](_0x5a0f9b,_0x58f465),this[_0x4da5ca(0x220)](_0x2b265a);}}),_0x41f897||this[_0x42bc5f(0x1a3)]({'type':0x0,'memberID':this[_0x42bc5f(0x167)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x2d19ee(0x220)](_0x354025){const _0x53e1cc=_0x2d19ee;this[_0x53e1cc(0x2f7)](_0x354025);const _0x206370=window[_0x53e1cc(0x14f)](()=>{const _0x8ec563=_0x53e1cc;this['_unitOnClients'][_0x8ec563(0x136)](_0x273db3=>{const _0x41a658=_0x8ec563;_0x273db3[_0x41a658(0x20a)](_0x354025);});},St*0x2);this['_clearOtherTimers'][_0x53e1cc(0x165)](_0x354025,_0x206370);}['_removeClearOtherTimer'](_0x389753){const _0x12850b=_0x2d19ee;if(this[_0x12850b(0x1aa)][_0x12850b(0x230)](_0x389753)){const _0x3d37be=this[_0x12850b(0x1aa)]['get'](_0x389753);_0x3d37be&&window[_0x12850b(0x31a)](_0x3d37be),this['_clearOtherTimers'][_0x12850b(0x165)](_0x389753,null);}}[_0x2d19ee(0x357)](_0x4d8fbe){const _0x58640f=_0x2d19ee,{memberID:_0x2c9bfa,unitIDs:_0x44ad08}=_0x4d8fbe;_0x44ad08['forEach'](_0x357d08=>{const _0x3bf183=_0x3b77;var _0xe82f03;const _0x11b38a=this[_0x3bf183(0x145)][_0x3bf183(0x1a4)](_0x357d08);_0x11b38a&&(_0x11b38a['delete'](_0x2c9bfa),(_0xe82f03=this['_ensureSubject'](_0x357d08))==null||_0xe82f03[_0x3bf183(0x1a9)](_0x11b38a[_0x3bf183(0x26a)]===0x0?_0x59d149[_0x3bf183(0x2b0)]:_0x59d149[_0x3bf183(0x196)]));}),this[_0x58640f(0x2f7)](_0x2c9bfa);}[_0x2d19ee(0x322)](_0x31d27a){const _0x5e6a42=_0x2d19ee;this[_0x5e6a42(0x220)](_0x31d27a['memberID']);}[_0x2d19ee(0x1a3)](_0x6877ba){const _0x4a814b=_0x2d19ee;localStorage[_0x4a814b(0x290)](It,JSON[_0x4a814b(0x32a)](_0x6877ba));}[_0x2d19ee(0x2a8)](){const _0x1a79d0=_0x2d19ee;this['_heartbeatTimer']=window[_0x1a79d0(0x238)](()=>{const _0x59aff8=_0x1a79d0;this[_0x59aff8(0x1a3)]({'type':0x2,'memberID':this[_0x59aff8(0x167)]});},St);}[_0x2d19ee(0x2bc)](_0x2bc1e6){const _0x5a3c59=_0x2d19ee;return this['_unitStatus'][_0x5a3c59(0x230)](_0x2bc1e6)||this['_unitStatus']['set'](_0x2bc1e6,new _0x5689a5(_0x59d149[_0x5a3c59(0x2b0)])),this[_0x5a3c59(0x2bd)][_0x5a3c59(0x1a4)](_0x2bc1e6);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};