@univerjs-pro/collaboration-client-ui 0.12.4-insiders.20251211-c28f914 → 0.12.4-insiders.20251212-6c41730

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 _0x3ec352=_0x437b;(function(_0x533c5d,_0x26e353){const _0xe06bac=_0x437b,_0x479897=_0x533c5d();while(!![]){try{const _0x55442c=-parseInt(_0xe06bac(0x120))/0x1+parseInt(_0xe06bac(0x2d0))/0x2*(parseInt(_0xe06bac(0x2fc))/0x3)+parseInt(_0xe06bac(0x2d6))/0x4*(parseInt(_0xe06bac(0x35b))/0x5)+-parseInt(_0xe06bac(0x109))/0x6+-parseInt(_0xe06bac(0x1d6))/0x7+-parseInt(_0xe06bac(0x346))/0x8+parseInt(_0xe06bac(0x342))/0x9*(parseInt(_0xe06bac(0x25f))/0xa);if(_0x55442c===_0x26e353)break;else _0x479897['push'](_0x479897['shift']());}catch(_0x325f13){_0x479897['push'](_0x479897['shift']());}}}(_0x25ec,0xe45ab));var Yt=Object[_0x3ec352(0x16d)],Wt=(_0xbf55ab,_0x5243bc,_0x287123)=>_0x5243bc in _0xbf55ab?Yt(_0xbf55ab,_0x5243bc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x287123}):_0xbf55ab[_0x5243bc]=_0x287123,_=(_0x15d98f,_0x3bb01c,_0x4eedf1)=>Wt(_0x15d98f,typeof _0x3bb01c!=_0x3ec352(0x32c)?_0x3bb01c+'':_0x3bb01c,_0x4eedf1);import{jsx as _0x520643,jsxs as _0x46b063}from'react/jsx-runtime';import{CollaborationStatus as _0xed7e82,CollaborationSessionService as _0x19842d,CollaborationController as _0x55b9c2,DataLoaderService as _0x55b3a4,MemberService as _0xcda09a,SessionStatus as _0x1f3d15,ILocalCacheService as _0x223ca0,CollaborationUIEventService as _0x1fe96a,CollaborationUIEventId as _0x5a7f32,DocCollaborationEntity as _0x5aa8f0,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2fa9c5,getLocalCacheKey as _0x4cf3d4,LOCAL_CACHE_INTERVAL as _0x161007,LOCAL_CACHE_INTERVAL_KEY as _0xb0b56,UniverCollaborationClientPlugin as _0x303e23,CollaborationSocketService as _0xf24f53,DEFAULT_WS_SESSION_TICKET_URL as _0x66e85b,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5c50fc,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x38e1dc,UnitStatus as _0x5c1bd0}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x498bd0,IUniverInstanceService as _0x5bb534,Inject as _0x4c0fac,Injector as _0x241db3,Disposable as _0xbbfd04,createIdentifier as _0x19144e,ILogService as _0x54cafd,ICommandService as _0x234cad,Optional as _0x2fa6ba,RxDisposable as _0x4e9bf2,Workbook as _0x469424,DOC_RANGE_TYPE as _0x61a77c,debounce as _0x454746,Rectangle as _0xbdc8de,DisposableCollection as _0x3cfaf3,toDisposable as _0x2c5ac1,UniverInstanceType as _0x560022,generateRandomId as _0x1f3cf5,COLORS as _0x3cc9d6,ColorKit as _0x585da0,ThemeService as _0x334c7e,fromEventSubject as _0x4dedaf,Tools as _0x2aaf32,CommandType as _0x2dbe42,IConfigService as _0x305bbd,CanceledError as _0x3316fd,isFormulaString as _0x1136c8,isFormulaId as _0x50cc37,ILocalStorageService as _0x465dbb,DependentOn as _0x584864,Plugin as _0x5d525e,merge as _0x286f03,registerDependencies as _0x5ffac1,mergeOverrideWithDependencies as _0x25bca4,touchDependencies as _0x2983e0}from'@univerjs/core';import{useObservable as _0x270a84,useDependency as _0x18f4a3,IUIPartsService as _0x464485,BuiltInUIPart as _0x5edbb3,connectInjector as _0x48cea3,IBeforeCloseService as _0x488919,IMessageService as _0x12f42d,INotificationService as _0x26656e}from'@univerjs/ui';import{BehaviorSubject as _0x16c712,switchMap as _0x29d1a7,of as _0x4c8a6d,takeUntil as _0x451ca1,debounceTime as _0x1e2f8f,Subject as _0x201adb,filter as _0x11df95,merge as _0x42d0c5,combineLatest as _0x4e3cde,fromEvent as _0x27f9ea,shareReplay as _0x504a7c,mapTo as _0x13be9d,distinctUntilChanged as _0xb831}from'rxjs';import{Tooltip as _0x1a1384,clsx as _0x3067b0,MessageType as _0x5187ea}from'@univerjs/design';import{useRef as _0x2e394a,createElement as _0x44d82c,forwardRef as _0x335a3d,useCallback as _0x11197c}from'react';import{IRemoteInstanceService as _0x43d2e2}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x11be8a,RefRangeService as _0x47b355,SetSelectionsOperation as _0x34681b,SheetsSelectionsService as _0x167a90,EffectRefRangId as _0xf1a21,handleIRemoveRow as _0x3966d1,handleIRemoveCol as _0x283883,handleMoveRange as _0x2a999d,handleInsertRow as _0x2c2b92,handleInsertRangeMoveRight as _0x2aaf9c,handleInsertRangeMoveDown as _0x370511,handleInsertCol as _0x1174ae,handleDeleteRangeMoveUp as _0x19454f,handleDeleteRangeMoveLeft as _0x1e88dd,runRefRangeMutations as _0x33e6ae}from'@univerjs/sheets';import{Shape as _0x2831b2,Rect as _0x2c78d1,getColor as _0x18ff82,RegularPolygon as _0x3e0ab3,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x36a1db,Vector2 as _0x533d50,SHEET_VIEWPORT_KEY as _0x509f66,IRenderManagerService as _0x5c6014}from'@univerjs/engine-render';import{HTTPService as _0x90f763,ISocketService as _0x3c33c4,WebSocketService as _0x5d4b34}from'@univerjs/network';import{IDocClipboardService as _0x3200ba,NodePositionConvertToCursor as _0x592cf6,NodePositionConvertToRectRange as _0x622a72,TEXT_RANGE_LAYER_INDEX as _0x5e29a0,SetDocZoomRatioOperation as _0x400b0f,DocIMEInputManagerService as _0x502bd3,DocStateChangeManagerService as _0x234a8a}from'@univerjs/docs-ui';import{IImageIoService as _0x1d5733}from'@univerjs/drawing';import{ITransformService as _0x1d7b40,CollaborationEvent as _0x39fec4,isTransformMutationFailure as _0x50e290,isTransformMutationsWithChangesetSuccess as _0x22b4d1,RevisionService as _0x409ba3,ISnapshotServerService as _0x4a8570}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x57c58c,RichTextEditingMutation as _0x5892c8,DocSelectionManagerService as _0x2c81c4,DocSkeletonManagerService as _0x2f9fae}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x3bf6a5,serializeRangeWithSheet as _0x1e0c19,FormulaExecuteStageType as _0x27c50c,FormulaExecutedStateType as _0x290d6f,SetFormulaCalculationStartMutation as _0x27aca5,SetFormulaCalculationNotificationMutation as _0x1bfb73}from'@univerjs/engine-formula';import{map as _0x108aa2,filter as _0x332e97,throttleTime as _0x572a55,takeUntil as _0x4b0b95,switchMap as _0x54129b}from'rxjs/operators';import{SheetSkeletonManagerService as _0x42e4bb,getCoordByCell as _0x5669fa,getSheetObject as _0x5304d4}from'@univerjs/sheets-ui';function Ge({ref:_0x13c045,..._0x3cee28}){const _0x40142c=_0x3ec352,{icon:_0x1bcee4,id:_0x5b88ce,className:_0x4ddb8e,extend:_0x48062,..._0x467449}=_0x3cee28,_0xd08bae=(_0x40142c(0x235)+_0x5b88ce+'\x20'+(_0x4ddb8e||''))[_0x40142c(0x172)](),_0xec868b=_0x2e394a('_'+vi());return At(_0x1bcee4,''+_0x5b88ce,{'defIds':_0x1bcee4[_0x40142c(0x2e2)],'idSuffix':_0xec868b['current']},{'ref':_0x13c045,'className':_0xd08bae,..._0x467449},_0x48062);}function At(_0x2f9a25,_0x20f71d,_0x39f57a,_0x4f2b86,_0x341f46){const _0xeb6309=_0x3ec352;return _0x44d82c(_0x2f9a25[_0xeb6309(0x31c)],{'key':_0x20f71d,...gi(_0x2f9a25,_0x39f57a,_0x341f46),..._0x4f2b86},(Ei(_0x2f9a25,_0x39f57a)['children']||[])['map']((_0x59adcf,_0x5621c0)=>At(_0x59adcf,_0x20f71d+'-'+_0x2f9a25['tag']+'-'+_0x5621c0,_0x39f57a,void 0x0,_0x341f46)));}function gi(_0x12f9ff,_0x363879,_0x4c84d7){const _0x4b4b93=_0x3ec352,_0x245b6a={..._0x12f9ff[_0x4b4b93(0x1e4)]};_0x4c84d7!=null&&_0x4c84d7[_0x4b4b93(0x187)]&&_0x245b6a['fill']==='colorChannel1'&&(_0x245b6a[_0x4b4b93(0x14e)]=_0x4c84d7[_0x4b4b93(0x187)]),_0x12f9ff['tag']===_0x4b4b93(0x327)&&_0x245b6a['id']&&(_0x245b6a['id']=_0x245b6a['id']+_0x363879['idSuffix']),Object['entries'](_0x245b6a)[_0x4b4b93(0x2af)](([_0x14f559,_0x39a56c])=>{const _0x4641fd=_0x4b4b93;_0x14f559===_0x4641fd(0x327)&&typeof _0x39a56c==_0x4641fd(0x252)&&(_0x245b6a[_0x14f559]=_0x39a56c[_0x4641fd(0x195)](/url\(#(.*)\)/,_0x4641fd(0x2db)+_0x363879[_0x4641fd(0x222)]+')'));});const {defIds:_0x56ef42}=_0x363879;return!_0x56ef42||_0x56ef42[_0x4b4b93(0x2ab)]===0x0||(_0x12f9ff[_0x4b4b93(0x31c)]===_0x4b4b93(0x259)&&_0x245b6a[_0x4b4b93(0x23d)]&&(_0x245b6a['xlink:href']=_0x245b6a[_0x4b4b93(0x23d)]+_0x363879['idSuffix']),Object[_0x4b4b93(0x138)](_0x245b6a)['forEach'](([_0x2300c3,_0x136540])=>{const _0xf10007=_0x4b4b93;typeof _0x136540==_0xf10007(0x252)&&(_0x245b6a[_0x2300c3]=_0x136540[_0xf10007(0x195)](/url\(#(.*)\)/,_0xf10007(0x2db)+_0x363879[_0xf10007(0x222)]+')'));})),_0x245b6a;}function Ei(_0x3e026a,_0x5ca611){const _0x1f169e=_0x3ec352;var _0x330f04;const {defIds:_0xa72653}=_0x5ca611;return!_0xa72653||_0xa72653[_0x1f169e(0x2ab)]===0x0?_0x3e026a:_0x3e026a['tag']===_0x1f169e(0x2e0)&&((_0x330f04=_0x3e026a[_0x1f169e(0x1cb)])!=null&&_0x330f04[_0x1f169e(0x2ab)])?{..._0x3e026a,'children':_0x3e026a['children']['map'](_0x1b0338=>typeof _0x1b0338[_0x1f169e(0x1e4)]['id']==_0x1f169e(0x252)&&_0xa72653&&_0xa72653[_0x1f169e(0x1ad)](_0x1b0338[_0x1f169e(0x1e4)]['id'])?{..._0x1b0338,'attrs':{..._0x1b0338[_0x1f169e(0x1e4)],'id':_0x1b0338[_0x1f169e(0x1e4)]['id']+_0x5ca611[_0x1f169e(0x222)]}}:_0x1b0338)}:_0x3e026a;}function vi(){const _0x4e6641=_0x3ec352;return Math[_0x4e6641(0x161)]()[_0x4e6641(0x118)](0x24)[_0x4e6641(0x2ea)](0x2,0x8);}Ge[_0x3ec352(0x1dd)]='UniverIcon';const pi={'tag':_0x3ec352(0x329),'attrs':{'xmlns':_0x3ec352(0x1a8),'fill':_0x3ec352(0x233),'viewBox':_0x3ec352(0x2a9),'width':'1em','height':_0x3ec352(0x257)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x3ec352(0x30e),'d':_0x3ec352(0x2aa),'strokeLinecap':_0x3ec352(0x2a7),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x3ec352(0x2e0),'attrs':{},'children':[{'tag':_0x3ec352(0x18a),'attrs':{'id':_0x3ec352(0x2d2)},'children':[{'tag':_0x3ec352(0x131),'attrs':{'fill':'white','d':_0x3ec352(0x298)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Pt=_0x335a3d(function(_0x5d820e,_0x2190fa){const _0x17d29c=_0x3ec352;return _0x44d82c(Ge,Object[_0x17d29c(0x271)]({},_0x5d820e,{'id':_0x17d29c(0x351),'ref':_0x2190fa,'icon':pi}));});Pt[_0x3ec352(0x1dd)]=_0x3ec352(0x2fa);const Oi={'tag':_0x3ec352(0x329),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3ec352(0x233),'viewBox':_0x3ec352(0x292),'width':'1em','height':_0x3ec352(0x257)},'children':[{'tag':'g','attrs':{'clipPath':_0x3ec352(0x250)},'children':[{'tag':_0x3ec352(0x131),'attrs':{'stroke':_0x3ec352(0x30e),'d':_0x3ec352(0x186),'strokeLinecap':_0x3ec352(0x2a7),'strokeLinejoin':_0x3ec352(0x2a7),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3ec352(0x18a),'attrs':{'id':_0x3ec352(0x176)},'children':[{'tag':_0x3ec352(0x131),'attrs':{'fill':_0x3ec352(0x2d7),'d':_0x3ec352(0x298),'transform':_0x3ec352(0x224)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},wt=_0x335a3d(function(_0x478d9e,_0x103084){const _0x2a722d=_0x3ec352;return _0x44d82c(Ge,Object[_0x2a722d(0x271)]({},_0x478d9e,{'id':'on-line-icon','ref':_0x103084,'icon':Oi}));});wt['displayName']=_0x3ec352(0x260);function Ti(_0x31981b){const _0x144dfe=_0x3ec352;switch(_0x31981b){case _0xed7e82[_0x144dfe(0x27b)]:return _0x144dfe(0x1d0);case _0xed7e82[_0x144dfe(0x22a)]:return _0x144dfe(0x234);case _0xed7e82[_0x144dfe(0x158)]:return'collabStatus.fetchMiss';case _0xed7e82[_0x144dfe(0x2a3)]:return _0x144dfe(0x299);case _0xed7e82[_0x144dfe(0x311)]:case _0xed7e82['AWAITING_WITH_PENDING']:return _0x144dfe(0x340);case _0xed7e82[_0x144dfe(0x21e)]:case _0xed7e82[_0x144dfe(0x17f)]:return _0x144dfe(0x1ba);}}function Ci(_0x25628c){const _0x2c8725=_0x3ec352,{status$:_0x38d13}=_0x25628c,_0x2727f5=_0x270a84(_0x38d13,_0xed7e82[_0x2c8725(0x2a3)]),_0x5071bb=_0x18f4a3(_0x498bd0),_0x548cfb=_0x18f4a3(_0x19842d),_0x303cc4=_0x2727f5!==_0xed7e82[_0x2c8725(0x27b)],_0x5302f7=_0x5071bb['t'](Ti(_0x2727f5)),_0x5ae04e=_0x303cc4?_0x520643(wt,{}):_0x520643(Pt,{}),_0x139c4e=_0x11197c(()=>{const _0x450a71=_0x2c8725;_0x303cc4||_0x548cfb[_0x450a71(0x24d)]();},[_0x303cc4,_0x548cfb]);function _0x4a2818(){const _0x4449ad=_0x2c8725;return _0x46b063(_0x4449ad(0x1c9),{'className':_0x4449ad(0x31e),'onClick':_0x139c4e,'children':[_0x520643(_0x4449ad(0x1c9),{'className':_0x3067b0(_0x4449ad(0x21c),{'univer-text-green-500':_0x303cc4,'univer-text-red-500':!_0x303cc4}),'children':_0x5ae04e}),_0x520643(_0x4449ad(0x1c9),{'className':_0x4449ad(0x11c),'children':_0x5302f7})]});}return _0x303cc4?_0x4a2818():_0x520643(_0x1a1384,{'title':_0x5071bb['t'](_0x2c8725(0x16a)),'children':_0x4a2818()});}var Ri=Object[_0x3ec352(0x232)],Di=(_0x5b1b43,_0x4312a4,_0x47068f,_0x2da695)=>{const _0x4564b9=_0x3ec352;for(var _0x4d2768=_0x2da695>0x1?void 0x0:_0x2da695?Ri(_0x4312a4,_0x47068f):_0x4312a4,_0x1fb67d=_0x5b1b43[_0x4564b9(0x2ab)]-0x1,_0x39ae3d;_0x1fb67d>=0x0;_0x1fb67d--)(_0x39ae3d=_0x5b1b43[_0x1fb67d])&&(_0x4d2768=_0x39ae3d(_0x4d2768)||_0x4d2768);return _0x4d2768;},se=(_0x251d7f,_0x789892)=>(_0x370f9b,_0x3960a7)=>_0x789892(_0x370f9b,_0x3960a7,_0x251d7f);let ae=class extends _0xbbfd04{constructor(_0x13e2a5,_0x36f446,_0x2f17de,_0xdb6781){const _0x18e999=_0x3ec352;super(),_(this,_0x18e999(0x2cd),new _0x16c712(_0xed7e82['NOT_COLLAB'])),(this[_0x18e999(0x334)]=_0x13e2a5,this[_0x18e999(0x344)]=_0x36f446,this[_0x18e999(0x354)]=_0x2f17de,this[_0x18e999(0x315)]=_0xdb6781,this['_initStatusComponent'](),this[_0x18e999(0x192)]());}[_0x3ec352(0x192)](){const _0x571370=_0x3ec352;this[_0x571370(0x29b)](this[_0x571370(0x334)][_0x571370(0x2a8)][_0x571370(0x1cf)](_0x29d1a7(()=>{const _0x1f6e46=_0x571370,_0x562c57=this[_0x1f6e46(0x334)][_0x1f6e46(0x274)]();return _0x562c57?this[_0x1f6e46(0x354)][_0x1f6e46(0x294)](_0x562c57[_0x1f6e46(0x15c)]()):_0x4c8a6d(null);}),_0x29d1a7(_0x5a2409=>_0x5a2409?_0x5a2409['status$']:_0x4c8a6d(_0xed7e82[_0x571370(0x2a3)])))[_0x571370(0x261)](_0x309213=>{const _0x20edad=_0x571370;this[_0x20edad(0x2cd)]['next'](_0x309213);}));}[_0x3ec352(0x2ad)](){const _0x35668f=_0x3ec352;this[_0x35668f(0x29b)](this['_uiPartsService']['registerComponent'](_0x5edbb3[_0x35668f(0x2de)],()=>_0x48cea3(Ni({'status$':this['_status$'][_0x35668f(0x2c6)]()}),this[_0x35668f(0x344)])));}};ae=Di([se(0x0,_0x5bb534),se(0x1,_0x4c0fac(_0x241db3)),se(0x2,_0x4c0fac(_0x55b9c2)),se(0x3,_0x464485)],ae);function Ni(_0x405a90){const {status$:_0xbff4bc}=_0x405a90;return function(){return _0x520643(Ci,{'status$':_0xbff4bc});};}function _0x25ec(){const _0x26cd5f=['newValue','_urlService','UNAUTHENTICATED','34607540kGHmsj','OnLineIcon','subscribe','_handleJoinEvent','textRanges','get','?taskId=','RemoveRowCommandId','_getFormulaLimitStatus','_localeService','_heartbeatTimer','_collaborationUIEventService','[Window\x20Error]:\x20','transformStateCache','fillStyle','USERS_LEAVE','_initUserListener','_startSheetCollabCursor','assign','UNIVER_DOC','transformIMECache','getFocusedUnit','REDEMPTION_CODE_HAS_BEEN_CREATED','storage','SNAPSHOT_HAS_BEEN_REMOVED','delete','collab-text-anchor-','getSkeleton','OFFLINE','getMemberID','saveImage','code','_logService','color','_anchor','YUUMI_ASYNCIO_CANCELLED','values','/universer-api/license/formula/limit/start','_cursors','getValue','_dataLoaderService','endRow','getColorFromTheme','filename','_hasFormulaInDirtyRanges','undoState','stringify','then','_pollingInterval','_initCommandInterceptor','NO_OTHER_CLIENTS_EDITING','0\x200\x2017\x2016','InsertRowCommandId','getCollabEntity$','docStateChange$','startColumn','_initUnhandledRejectionListener','M0\x200H16V16H0z','collabStatus.notCollab','loadOfflineData','disposeWithMe','collab-text-range-','resize','addHandlerCallback','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','body','_config','editingUnit','NOT_COLLAB','search','_onRefRangeChange','_docStateChangeManagerService','round','focused$','0\x200\x2016\x2016','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','length','range','_initStatusComponent','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','forEach','currentTheme$','ONLINE','with','_registerDependencies','_getAnchorBounding','saveTaskMap','getAncestorScale','skeleton','#FFF','YUUMI_URL_COL_OUT_OF_RANGE','loadUnit','REDEMPTION_CODE_NOT_STARTED','pluginName','_onCursorDelete','send','_taskIds','red.300','_uploadLog','transformMutation','triggerDblclick','getParam','APPLY_REJECT','asObservable','push','collab-rect-range-','_drawTextRange','m1Prime','_docTransformIMECacheService','_backgroundColor','_status$','shift','_scheduleClearOtherTimer','2278zjcesx','_handleHeartbeatEvent','off-line-icon_clip0_910_343','bottom','getCellPositionByOffset','deepClone','4odmKEb','white','drawWith','ENTITLE_COUPON_EXPIRED','getOffsetConfig','url(#$1','totalFormulasToCalculate','EMAIL_VERIFY_CODE_MISMATCH','HEADER_MENU','_initResize','defs','_applyCommand','defIds','SUBMIT_CHANGESET_TIMEOUT','...','backgroundColor','column','roomMembers$','post','clearTimeout','substring','YUUMI_ALL_TABLES_IS_INVALID','_renderManagerService','onPointerMove$','sessionTicket','setItem','AUTHORIZE_CODE_ILLEGAL','jiqing.500','_textBubble','redoState','onPointerEnter$','_saveCache','restore','_entities','executionId','_updateSubUnitFromURLParams','OffLineIcon','MOBILE_HAS_BEEN_BOUND','3114zZjiKN','getVpScrollXYInfoByPosToVp','exhaustSavingTask','ENTITLE_REPORT_LIMIT_EXCEED','_setupBeforeClosingHandler','transformRemoteChangeset','isEditing','max','engine','complete','WECHAT_HAS_BEEN_BOUND','_docSyncEditingCollabCursorService','_toggleOnline','_initEntityListener','APPLY_NON_SEQUENTIAL_REVISION','_document','registerRenderModule','_anchorDot','currentColor','ACTIVE_UNIT_EVENT_CHANNEL','size','AWAITING','getRangePointData','min','assignAColorForMemberID','_uiPartsService','measureText','SNAPSHOT_INVALID_SNAPSHOT','collaboration.offline-data-not-saved','_send','_docSkeleton','session.will-retry','tag','startFormulaLimitUrl','univer-flex\x20univer-items-center','subscribeEvent','_cursorShapes','_refRangeService','setShapeProps','getCollabCursors$','ENTITLE_USE_COUPON_NOT_1ST_TRADE','formula.calculation.started','_checkAndWaitForCalculationPermission','mask','session.connection-failed','svg','COMPLETION_FINISHED','invokeId','symbol','next','REDEMPTION_USER_NOT_ELIGIBLE','_getMergeRange','_entityInit$','_drawAnchor','_themeService','YUUMI_RATE_OVER_LIMIT','_univerInstanceService','_cursor','/universer-api/license/formula/limit/status','ENSURE_SNAPSHOT_EXECUTION','add','addObjects','_render','UNIVER_SHEET','replaceDocRanges','_docClipboardService','_currentUsage','unshift','collabStatus.syncing','cursorInfo','9kZLfoj','APPLY_PERMISSION_DENIED','_injector','YUUMI_NO_CUBOID_FOR_QUESTION','8302968ivfvXR','getUniverSheetInstance','findNodePositionByCharIndex','SOCKET_FAILED_RETRY','_lastResponseTimestamp','onTransformChange$','_beforeCloseService','parse','setParam','registerRefRange','_memberService','off-line-icon','imageSourceType','UPDATE_CURSOR','_collaborationController','searchParams','getActiveSheet','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getUnhiddenWorksheets','result','getViewport','3626945KHFLfj','getCurrentRevOfUnit','_docTransformStateCacheService','type','8148054vZidMT','INVITE_CODE_ALREADY_BOUND','syncEditingCollabCursor','/run/','[RemoteUniscriptService]:\x20no\x20focused\x20unit','setActiveRange','PAYMENT_CHANNEL_NOT_SUPPORT','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_colorIndex','_collabCursorState$','_init','_docTransformSelectionsService','disposeUnit','Unknown\x20user','INVITE_CODE_HAS_BEEN_UES','toString','lineTo','sheetId','FromArray','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','unit','fillRule','getRenderById','956244hfveFp','_monkeyPatchLogService','key','REDEMPTION_INVALID_CODE','top','CURRENT_STATUS_CANNOT_OPERATE','getItem','addObject','join','saveOfflineData','getSheetId','USER_IS_ANONYMOUS','Error','_color','CONNECTOR_DATA_TOO_LARGE','limitInfo','_context','path','_maxFormulaLimit','INVITE_CODE_REQUIRED','sessionStatus$','_disabled','_transformService','CHANGESET_REVISION_CONFILICT','entries','socket$','_assignedColors','ENTITLE_CAN_NOT_BUY_LOWER_OTP','init','permission.title','executeCommand','unsubscribe','collaboration-client-ui.config','updateOfflineData','height','location','_shapes','PY_RUNTIME_SCRIPT_ERROR','UNRECOGNIZED','INVALID_INVITE_CODE','runId','_roomMembers$','_onCursorUpdate','_transformUndoRedoStack','YUUMI_UNABLE_LOAD_URL','params','fill','_localCacheService','APPLY_DUPLICATED','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','doc.mutation.rich-text-editing','black','dirtyRanges','ERROR_AGAIN','m2Prime','_configService','FETCH_MISS','all','some','_eventUnsubscribe','getUnitId','_imageIoService','hide','uni.network.url-service','USER_NOT_FOUND','random','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','setUndoRedoMutationParamsCache','text','_scene','[LogService\x20Error]:\x20','setTimeout','closePath','_saveTaskMap','collab-client.tooltip.reconnect','LICENSE_EXPORT_SIZE_EXCEEDED','_syncEditingCollabCursorService','defineProperty','INVALID_ARGUMENT','isArray','INTERNAL_ERROR','_collabCursorController','trim','getTypeOfUnitAdded$','moveTo','_id','on-line-icon_clip0_910_349','has','_instanceService','_getScale','_startDocCollabCursor','Success','removeEventListener','_revisionService','_toggleOffline','PENDING','roomMembers','selection','getMember','_lastPointer','JOIN_ROOM_FAILED','REDEMPTION_USER_REDEEM_TIMES_EXCEED','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','colorChannel1','_hideTimer','labelPosition','clipPath','_localStorageService','[CollaborationDataLoaderController]','_cursorInfo$','name','LOGIN_FAILED','beginPath','unitId','_initStatusListener','_clearPolling','_scheduleSaving','replace','save','_releaseCalculationLimit','_hover','currentSkeleton$','TEXT','error','\x20at\x20','Failed','ENTITLE_INSUFFICIENT_QUOTA','_name','eventID','_scheduleHeartbeat','_hovered','transformSelections','from','LICENSE_IMPORT_SIZE_EXCEEDED','event$','set','http://www.w3.org/2000/svg','UNDEFINED','catch','beforeCommandExecuted','formula.calculation.waiting','includes','ALREADY_EXISTS','colno','_handleLeaveEvent','ticket','_getSheetObject','_updateLocalCursor','isActive','RemoveColCommandId','addClipboardHook','_range','enableFrontendLog','functionsExecutedState','collabStatus.synced','now','yellow.400','EMAIL_HAS_BEEN_BOUND','clearInterval','_drawRectRange','REDEMPTION_CODE_FULLY_REDEEMED','onCommandExecuted','NOT_FOUND','_unitStatus','YUUMI_CONNECTOR_URL_NOT_FOUND','formula.calculation.unable','wsSessionTicketUrl','getStateCache','ranges','div','map','children','_labelPosition','_initWindowErrorListener','createInstance','pipe','collabStatus.offline','MUTATION','_collabSessionService','href','_setFormulaLimitStatus','LOGIN_TOKEN_PROCESSING_FAILED','7566734LMwHOk','subunit','getConfig','show','_colorAssignService','evenodd','fillText','displayName','VIEW_MAIN','_messageService','CLOSE_ROOM','debug','rgba(255,\x20255,\x20255,\x200.01)','transformMutationsWithChangeset','attrs','stack','subUnitId','urlChange$','_initEvent','getUndoRedoMutationParamsCache','setStateCache','_updateURLWithCurrentState','START_CALCULATION','getMergeData','_cachedData','MoveRangeCommandId','_removeClearOtherTimer','stageInfo','unhandledrejection','_checkCalculationAvailable','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','addEventListener','_handleEvent','hovered','setAlpha','DATA_SOURCE_TOO_LARGE','getTypeOfUnitDisposed$','bind','ENTITLE_COUPON_USED_UP','transform','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_online','_session','_handleHover','_showGuardMessage','DeleteRangeMoveUpCommandId','getformulaLimitStatusUrl','data','_sheetSkeletonManagerService','_selfUnitIDs','_removeCollabCursors','USER_NOT_INVITED_CODE','endColumn','getSheetBySheetId','setInterval','collabCursorState$','PERMISSION_DENIED','YUUMI_TABLE_NOT_FOUND_IN_UNIT','width','permission.content','split','session.collaboration-timeout','collaboration.single-unit.warning','Warning','_docSkeletonManagerService','unload','/universer-api/license/formula/limit/done','_refreshCollabCursors','OTHER_CLIENTS_EDITING','getCurrentSelections','univer-mr-2\x20univer-flex\x20univer-text-xl','_httpService','SYNCED','_updateCollabCursors','_startCalculationLimit','toRgbString','idSuffix','getUnitStatus$','translate(.97)','arc','_getSaveTimeout','InsertRangeMoveDownCommandId','requireSession','_setupSubUnitSync','CONFLICT','_notificationService','dispose','message','_transformPreviousActiveRange','APPLY_REVISION_CONFILICT','LICENSE_MAX_UNITS_EXCEEDED','_clearOtherTimers','getOwnPropertyDescriptor','none','collabStatus.conflict','univerjs-icon\x20univerjs-icon-','_draw','_unitOnClients','unitID','replaceState','history','mutations','startRow','xlink:href','_transformHistoryAndStateStack','application/json','origin','RECT','_ensureSubject','REDEMPTION_CODE_INACTIVE','blue.400','entityInit$','maxFormulaLimit','InsertRangeMoveRightCommandId','[Unhandled\x20Rejection]:\x20','contains','memberID','_memberID','dispose$','reconnect','_commandService','row','url(#on-line-icon_clip0_910_349)','_createSocketURL','string','getRelativeToViewportCoord','_collaborationSessionService','LICENSE_DISTRO_REJECTED','onMouseMove','1em','YUUMI_SUBSCRIPTION_NOT_FOUND','use','cursorInfo$','/universer-api/frontend/logs'];_0x25ec=function(){return _0x26cd5f;};return _0x25ec();}const yt=_0x19144e(_0x3ec352(0x15f));var bi=Object[_0x3ec352(0x232)],Li=(_0xd4a5fd,_0x1a0064,_0x4dc3f5,_0xb7f7eb)=>{for(var _0x1d88ec=_0xb7f7eb>0x1?void 0x0:_0xb7f7eb?bi(_0x1a0064,_0x4dc3f5):_0x1a0064,_0x211557=_0xd4a5fd['length']-0x1,_0x9d97e8;_0x211557>=0x0;_0x211557--)(_0x9d97e8=_0xd4a5fd[_0x211557])&&(_0x1d88ec=_0x9d97e8(_0x1d88ec)||_0x1d88ec);return _0x1d88ec;},K=(_0x3d1655,_0x39ef9c)=>(_0x35c2d3,_0x173f97)=>_0x39ef9c(_0x35c2d3,_0x173f97,_0x3d1655);let ce=class extends _0x4e9bf2{constructor(_0x470534,_0x403277,_0x406099,_0x4a3853,_0x58b8d2){const _0x51dd33=_0x3ec352;super(),this['_urlService']=_0x470534,this[_0x51dd33(0x27f)]=_0x403277,this[_0x51dd33(0x24e)]=_0x406099,this['_dataLoaderService']=_0x4a3853,_0x58b8d2?_0x58b8d2==null||_0x58b8d2['whenReady']()[_0x51dd33(0x28e)](()=>this['_init']()):(this[_0x51dd33(0x27f)][_0x51dd33(0x1e1)](_0x51dd33(0x18c),_0x51dd33(0x2ae)),this[_0x51dd33(0x113)]());}async['_init'](){const _0x4a937c=_0x3ec352,_0x368a00=this[_0x4a937c(0x25d)][_0x4a937c(0x2c4)](_0x4a937c(0x11d)),_0x2eeeec=this[_0x4a937c(0x25d)][_0x4a937c(0x2c4)](_0x4a937c(0x35e)),_0x5e272a=this[_0x4a937c(0x25d)][_0x4a937c(0x2c4)]('subunit');if(!_0x368a00||!_0x2eeeec){this[_0x4a937c(0x27f)][_0x4a937c(0x1e1)]('[CollaborationDataLoaderController]',_0x4a937c(0x357));return;}const _0x181d36=await this[_0x4a937c(0x287)][_0x4a937c(0x2ba)](_0x368a00,Number(_0x2eeeec),_0x5e272a);_0x181d36&&_0x181d36 instanceof _0x469424&&this[_0x4a937c(0x229)](_0x181d36);}async[_0x3ec352(0x229)](_0x5b5b92){const _0xe7180d=_0x3ec352;await this['_updateSubUnitFromURLParams'](_0x5b5b92),_0x5b5b92['activeSheet$']['pipe'](_0x451ca1(this[_0xe7180d(0x24c)]))[_0xe7180d(0x261)](_0xdd9e22=>{const _0x56a313=_0xe7180d;_0xdd9e22&&this[_0x56a313(0x1eb)](_0xdd9e22);}),this[_0xe7180d(0x25d)][_0xe7180d(0x1e7)][_0xe7180d(0x1cf)](_0x451ca1(this[_0xe7180d(0x24c)]))['subscribe'](()=>this[_0xe7180d(0x2f9)](_0x5b5b92));}[_0x3ec352(0x1eb)](_0x1bb1d9,_0x4a1ca9=!0x1){const _0x507946=_0x3ec352,_0x179c2b=this[_0x507946(0x25d)]['getParam'](_0x507946(0x1d7));_0x1bb1d9[_0x507946(0x12a)]()!==_0x179c2b&&this['_urlService'][_0x507946(0x34e)](_0x507946(0x1d7),_0x1bb1d9[_0x507946(0x12a)](),_0x4a1ca9);}async[_0x3ec352(0x2f9)](_0x61522c){const _0x199bd2=_0x3ec352;var _0x4a231b;const _0x3796fe=this[_0x199bd2(0x25d)]['getParam'](_0x199bd2(0x1d7));if(!_0x3796fe||!_0x61522c[_0x199bd2(0x20b)](_0x3796fe)){const _0x55da6b=_0x61522c[_0x199bd2(0x358)]()[0x0],_0x134f1a=_0x61522c[_0x199bd2(0x20b)](_0x55da6b);if(!_0x134f1a)return;this['_updateURLWithCurrentState'](_0x134f1a,!0x0),await this['_commandService'][_0x199bd2(0x13e)](_0x11be8a['id'],{'unitId':_0x61522c[_0x199bd2(0x15c)](),'subUnitId':_0x55da6b});return;}((_0x4a231b=_0x61522c[_0x199bd2(0x356)]())==null?void 0x0:_0x4a231b[_0x199bd2(0x12a)]())!==_0x3796fe&&await this['_commandService'][_0x199bd2(0x13e)](_0x11be8a['id'],{'unitId':_0x61522c['getUnitId'](),'subUnitId':_0x3796fe});}};ce=Li([K(0x0,yt),K(0x1,_0x54cafd),K(0x2,_0x234cad),K(0x3,_0x4c0fac(_0x55b3a4)),K(0x4,_0x2fa6ba(_0x43d2e2))],ce);var Ui=Object['getOwnPropertyDescriptor'],Mi=(_0x49d543,_0xcda593,_0x58fc7d,_0x10c688)=>{const _0x37fb66=_0x3ec352;for(var _0x4202b6=_0x10c688>0x1?void 0x0:_0x10c688?Ui(_0xcda593,_0x58fc7d):_0xcda593,_0x8fe33f=_0x49d543[_0x37fb66(0x2ab)]-0x1,_0x42e3e3;_0x8fe33f>=0x0;_0x8fe33f--)(_0x42e3e3=_0x49d543[_0x8fe33f])&&(_0x4202b6=_0x42e3e3(_0x4202b6)||_0x4202b6);return _0x4202b6;},rt=(_0x4b0b51,_0x2ed4d2)=>(_0x8b13c8,_0x3217c7)=>_0x2ed4d2(_0x8b13c8,_0x3217c7,_0x4b0b51);let $e=class extends _0x4e9bf2{constructor(_0x5ce3e1,_0x55a491){const _0x3a4f0a=_0x3ec352;super(),this[_0x3a4f0a(0x33d)]=_0x5ce3e1,this[_0x3a4f0a(0x15d)]=_0x55a491,this[_0x3a4f0a(0x113)]();}[_0x3ec352(0x113)](){const _0x537fde=_0x3ec352,_0x517a6e=this;this[_0x537fde(0x29b)](this[_0x537fde(0x33d)][_0x537fde(0x1b6)]({'onBeforePasteImage':async _0x43bb3e=>{const _0x3e77ee=_0x537fde,_0x8b13a2=await _0x517a6e[_0x3e77ee(0x15d)][_0x3e77ee(0x27d)](_0x43bb3e);return _0x8b13a2?{'source':_0x8b13a2['source'],'imageSourceType':_0x8b13a2[_0x3e77ee(0x352)]}:null;}}));}};$e=Mi([rt(0x0,_0x3200ba),rt(0x1,_0x1d5733)],$e);const ot=['purple.300',_0x3ec352(0x2f1),'green.600',_0x3ec352(0x2c0),_0x3ec352(0x244),_0x3ec352(0x1bc)];class Ke extends _0xbbfd04{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}[_0x3ec352(0x314)](_0x35bcf1){const _0x4c973d=_0x3ec352;if(this[_0x4c973d(0x13a)]['has'](_0x35bcf1))return this[_0x4c973d(0x13a)][_0x4c973d(0x264)](_0x35bcf1);const _0x4f52b8=ot[this['_colorIndex']];return this[_0x4c973d(0x111)]=(this[_0x4c973d(0x111)]+0x1)%ot[_0x4c973d(0x2ab)],this[_0x4c973d(0x13a)]['set'](_0x35bcf1,_0x4f52b8),_0x4f52b8;}}function $t(_0x40ece6){let _0x4ec171='';for(const _0x588875 of _0x40ece6){const {startOffset:_0x5cffd6,endOffset:_0x1dae30,isActive:_0x491f73,rangeType:_0x4eb3d8,segmentId:_0x171166,segmentPage:_0x287d62}=_0x588875;_0x4ec171['length']&&(_0x4ec171+=','),_0x4ec171+=_0x5cffd6+':'+_0x1dae30+':'+(_0x491f73?'1':'0')+':'+_0x4eb3d8+':'+_0x171166+':'+_0x287d62;}return _0x4ec171;}function Ai(_0x47b824){const _0x225a54=_0x3ec352,_0x25269d=_0x47b824[_0x225a54(0x212)](','),_0x272c3e=[];for(const _0x5a86ef of _0x25269d){const [_0x1f412d,_0xb370e1,_0x220d85,_0x3e537f,_0x499984,_0x45b876]=_0x5a86ef[_0x225a54(0x212)](':');_0x272c3e['push']({'startOffset':Number(_0x1f412d),'endOffset':Number(_0xb370e1),'collapsed':_0x1f412d===_0xb370e1,'isActive':_0x220d85==='1','rangeType':_0x3e537f===_0x61a77c[_0x225a54(0x19a)]?_0x61a77c[_0x225a54(0x19a)]:_0x61a77c[_0x225a54(0x241)],'segmentId':typeof _0x499984==_0x225a54(0x252)?String(_0x499984):'','segmentPage':Number(_0x45b876!=null?_0x45b876:-0x1)});}return _0x272c3e[_0x225a54(0x15a)](_0x4cffc5=>_0x4cffc5[_0x225a54(0x1b4)])||(_0x272c3e[0x0][_0x225a54(0x1b4)]=!0x0),_0x272c3e;}class ze extends _0x4e9bf2{constructor(){const _0x5bf69c=_0x3ec352;super(...arguments),_(this,_0x5bf69c(0x112),new _0x16c712(null)),_(this,_0x5bf69c(0x20d),this[_0x5bf69c(0x112)]['asObservable']());}[_0x3ec352(0x10b)](_0x3843d0){const {unitID:_0x552898,memberID:_0x53dba5,textRanges:_0x35901b}=_0x3843d0,_0x277318=$t(_0x35901b);if(_0x277318==='')return;const _0x294ec0={'unitID':_0x552898,'memberID':_0x53dba5,'selection':_0x277318};this['_collabCursorState$']['next'](_0x294ec0);}}var Pi=Object['getOwnPropertyDescriptor'],wi=(_0x148e1e,_0x3b2c56,_0x20b0c6,_0x2a7ad8)=>{const _0x395e57=_0x3ec352;for(var _0x5dc670=_0x2a7ad8>0x1?void 0x0:_0x2a7ad8?Pi(_0x3b2c56,_0x20b0c6):_0x3b2c56,_0x454573=_0x148e1e[_0x395e57(0x2ab)]-0x1,_0x45c127;_0x454573>=0x0;_0x454573--)(_0x45c127=_0x148e1e[_0x454573])&&(_0x5dc670=_0x45c127(_0x5dc670)||_0x5dc670);return _0x5dc670;},A=(_0x4ac9ee,_0x335bd9)=>(_0x57a6b9,_0x52dffc)=>_0x335bd9(_0x57a6b9,_0x52dffc,_0x4ac9ee);const yi=0x12c,$i=0x64;let xe=class extends _0x4e9bf2{constructor(_0x455843,_0x3f7856,_0x32e282,_0x562be0,_0x2f7414,_0x5a4435,_0x410504,_0x575f69,_0x3c76e2){const _0x1bc176=_0x3ec352;super(),_(this,_0x1bc176(0x1ff),!0x1),_(this,'_init',!0x1),_(this,_0x1bc176(0x18d),new _0x16c712(new Map())),_(this,_0x1bc176(0x25a),this[_0x1bc176(0x18d)]['asObservable']()),_(this,_0x1bc176(0x149),new _0x16c712([])),_(this,_0x1bc176(0x2e7),this[_0x1bc176(0x149)][_0x1bc176(0x1cf)](_0x1e2f8f(yi))),_(this,'_updateLocalCursor',_0x454746(_0x954021=>{const _0xaf508c=_0x1bc176,_0x4fac75={'eventID':_0x39fec4[_0xaf508c(0x353)],'data':{'unitID':this[_0xaf508c(0x238)],'memberID':this[_0xaf508c(0x200)][_0xaf508c(0x27c)](),'selection':$t(_0x954021)}};this['_session'][_0xaf508c(0x2be)](_0x4fac75,this[_0xaf508c(0x238)]);},$i)),(this['unitID']=_0x455843,this['_session']=_0x3f7856,this[_0x1bc176(0x344)]=_0x32e282,this[_0x1bc176(0x1da)]=_0x562be0,this['_memberService']=_0x2f7414,this[_0x1bc176(0x16c)]=_0x5a4435,this[_0x1bc176(0x136)]=_0x410504,this[_0x1bc176(0x334)]=_0x575f69,this[_0x1bc176(0x24e)]=_0x3c76e2);}get[_0x3ec352(0x341)](){const _0x35e335=_0x3ec352;return this[_0x35e335(0x18d)]['getValue']();}get[_0x3ec352(0x180)](){const _0x10be6f=_0x3ec352;return this[_0x10be6f(0x149)][_0x10be6f(0x286)]();}['dispose'](){const _0x2d7c92=_0x3ec352;super[_0x2d7c92(0x22c)](),this[_0x2d7c92(0x18d)][_0x2d7c92(0x32d)](new Map()),this['_cursorInfo$'][_0x2d7c92(0x305)](),this[_0x2d7c92(0x149)][_0x2d7c92(0x32d)]([]),this[_0x2d7c92(0x149)][_0x2d7c92(0x305)]();}['init'](){const _0x3f6f75=_0x3ec352;this['_init']||(this[_0x3f6f75(0x113)]=!0x0,this[_0x3f6f75(0x200)][_0x3f6f75(0x134)][_0x3f6f75(0x1cf)](_0x451ca1(this[_0x3f6f75(0x24c)]))[_0x3f6f75(0x261)](_0x18d3f6=>{const _0x5d4705=_0x3f6f75;_0x18d3f6===_0x1f3d15[_0x5d4705(0x2b1)]?this['_toggleOnline']():this[_0x5d4705(0x17e)]();}),this[_0x3f6f75(0x200)][_0x3f6f75(0x1a6)][_0x3f6f75(0x1cf)](_0x451ca1(this['dispose$']))[_0x3f6f75(0x261)](_0x571606=>{const _0x318c52=_0x3f6f75,_0x48d8e1=_0x571606['eventID'];_0x48d8e1===_0x39fec4[_0x318c52(0x353)]&&this[_0x318c52(0x14a)](_0x571606),_0x48d8e1===_0x39fec4[_0x318c52(0x26e)]&&this[_0x318c52(0x2bd)](_0x571606);}),this[_0x3f6f75(0x29b)](this[_0x3f6f75(0x24e)][_0x3f6f75(0x1c1)](_0x35bbe7=>{const _0x2690b1=_0x3f6f75,_0x5d0877=_0x35bbe7[_0x2690b1(0x14d)];_0x5d0877!=null&&this[_0x2690b1(0x1ff)]&&_0x35bbe7['id']===_0x57c58c['id']&&_0x5d0877[_0x2690b1(0x191)]===this['unitID']&&_0x5d0877[_0x2690b1(0x302)]===!0x1&&_0x5d0877['ranges']['length']>0x0&&this[_0x2690b1(0x1b3)](_0x5d0877[_0x2690b1(0x1c8)]);})),this[_0x3f6f75(0x16c)][_0x3f6f75(0x20d)][_0x3f6f75(0x1cf)](_0x451ca1(this[_0x3f6f75(0x24c)]))[_0x3f6f75(0x261)](_0xf28b78=>{const _0x598453=_0x3f6f75;if((_0xf28b78==null?void 0x0:_0xf28b78[_0x598453(0x238)])!==this[_0x598453(0x238)])return;const _0x534e3f={'eventID':_0x39fec4['UPDATE_CURSOR'],'data':_0xf28b78};this[_0x598453(0x14a)](_0x534e3f);}),this[_0x3f6f75(0x29b)](this[_0x3f6f75(0x24e)][_0x3f6f75(0x1c1)](_0x11aed7=>{const _0x313358=_0x3f6f75;if(_0x11aed7[_0x313358(0x14d)]==null)return;const _0x2d8d38=_0x11aed7[_0x313358(0x14d)];if(_0x11aed7['id']!==_0x5892c8['id']||_0x2d8d38['unitId']!==this[_0x313358(0x238)])return;const _0x9a2375={'id':_0x313358(0x152),'params':_0x2d8d38},_0x7489e2=this[_0x313358(0x341)];for(const [_0x40b57f,_0x58644e]of _0x7489e2){const _0x390803={'id':_0x313358(0x152),'params':{'unitId':this[_0x313358(0x238)],'actions':null,'textRanges':_0x58644e['ranges']}},_0x463073=this['_transformService'][_0x313358(0x2c2)](_0x9a2375,_0x390803,!0x1);if(_0x50e290(_0x463073))throw _0x463073[_0x313358(0x19b)];_0x7489e2['set'](_0x40b57f,{..._0x58644e,'ranges':_0x463073[_0x313358(0x156)]['params'][_0x313358(0x263)]});}queueMicrotask(()=>{const _0x5f3446=_0x313358;this['_cursorInfo$'][_0x5f3446(0x32d)](_0x7489e2);});})));}[_0x3ec352(0x14a)](_0x22b86e){const _0x3b5a21=_0x3ec352;var _0x3c359e,_0x2bee0e;const {memberID:_0x5bbde6,selection:_0x3ea2b6}=_0x22b86e[_0x3b5a21(0x205)],_0x55931a=Ai(_0x3ea2b6),_0x45802f=(_0x2bee0e=(_0x3c359e=this[_0x3b5a21(0x350)][_0x3b5a21(0x182)](this['unitID'],_0x5bbde6))==null?void 0x0:_0x3c359e[_0x3b5a21(0x18e)])!=null?_0x2bee0e:_0x3b5a21(0x116),_0x3e1001={'color':this['_colorAssignService'][_0x3b5a21(0x314)](_0x5bbde6),'name':_0x45802f,'ranges':_0x55931a},_0x5dcf4c=this[_0x3b5a21(0x341)];_0x5dcf4c[_0x3b5a21(0x1a7)](_0x5bbde6,_0x3e1001),this[_0x3b5a21(0x18d)]['next'](_0x5dcf4c);}[_0x3ec352(0x2bd)](_0x4514cd){const _0x3ffd47=_0x3ec352,{memberID:_0xcd9177}=_0x4514cd[_0x3ffd47(0x205)],_0x59451f=this[_0x3ffd47(0x341)];_0x59451f[_0x3ffd47(0x278)](_0xcd9177),this[_0x3ffd47(0x18d)]['next'](_0x59451f);}[_0x3ec352(0x308)](){const _0x509ae3=_0x3ec352;var _0x4c4d9a;if(this[_0x509ae3(0x1ff)]=!0x0,((_0x4c4d9a=this[_0x509ae3(0x334)]['getFocusedUnit']())==null?void 0x0:_0x4c4d9a[_0x509ae3(0x15c)]())!==this['unitID'])return;const _0x1774ea=this['_injector'][_0x509ae3(0x264)](_0x2c81c4)['getDocRanges']();Array[_0x509ae3(0x16f)](_0x1774ea)&&_0x1774ea[_0x509ae3(0x2ab)]>0x0&&this[_0x509ae3(0x1b3)](_0x1774ea);}[_0x3ec352(0x17e)](){this['_online']=!0x1;}};xe=wi([A(0x2,_0x4c0fac(_0x241db3)),A(0x3,_0x4c0fac(Ke)),A(0x4,_0x4c0fac(_0xcda09a)),A(0x5,_0x4c0fac(ze)),A(0x6,_0x1d7b40),A(0x7,_0x5bb534),A(0x8,_0x234cad)],xe);var xi=Object[_0x3ec352(0x232)],Bi=(_0x458361,_0x77e7b,_0x58b2e8,_0x2e43b4)=>{for(var _0x219891=_0x2e43b4>0x1?void 0x0:_0x2e43b4?xi(_0x77e7b,_0x58b2e8):_0x77e7b,_0x1dfa8c=_0x458361['length']-0x1,_0x476027;_0x1dfa8c>=0x0;_0x1dfa8c--)(_0x476027=_0x458361[_0x1dfa8c])&&(_0x219891=_0x476027(_0x219891)||_0x219891);return _0x219891;},B=(_0x5ccf8e,_0x2bed96)=>(_0x2501ee,_0xd0f676)=>_0x2bed96(_0x2501ee,_0xd0f676,_0x5ccf8e);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x172bd2=[],_0x5d42cb=!0x1;return _0x90d159=>{_0x172bd2['push'](_0x90d159),_0x5d42cb||(_0x5d42cb=!0x0,setTimeout(()=>{_0x172bd2['forEach'](_0x156dd7=>_0x156dd7()),_0x172bd2=[],_0x5d42cb=!0x1;}));};};let Be=class extends _0x4e9bf2{constructor(_0x10b75b,_0x15d919,_0x4182e9,_0x38d8a1,_0x3cf58b,_0x5b1fd5,_0x5d28ff,_0x22b031){const _0x391bb3=_0x3ec352;super(),_(this,_0x391bb3(0x1ff),!0x1),_(this,_0x391bb3(0x113),!0x1),_(this,'_cursorInfo$',new _0x16c712(new Map())),_(this,_0x391bb3(0x25a),this[_0x391bb3(0x18d)][_0x391bb3(0x2c6)]()),_(this,'_roomMembers$',new _0x16c712([])),_(this,'roomMembers$',this[_0x391bb3(0x149)][_0x391bb3(0x1cf)](_0x1e2f8f(Fi))),_(this,_0x391bb3(0x1b3),_0x454746((_0x420d69,_0x37618a)=>{const _0xff71a6=_0x391bb3,_0x4d22ac={'eventID':_0x39fec4[_0xff71a6(0x353)],'data':{'unitID':this['unitID'],'memberID':this[_0xff71a6(0x200)][_0xff71a6(0x27c)](),'selection':_0x1e0c19(_0x420d69,_0x37618a[_0xff71a6(0x2ac)])}};this['_session']['send'](_0x4d22ac,this[_0xff71a6(0x238)]);},ki)),(this['unitID']=_0x10b75b,this[_0x391bb3(0x200)]=_0x15d919,this[_0x391bb3(0x344)]=_0x4182e9,this['_colorAssignService']=_0x38d8a1,this[_0x391bb3(0x350)]=_0x3cf58b,this[_0x391bb3(0x334)]=_0x5b1fd5,this['_commandService']=_0x5d28ff,this[_0x391bb3(0x321)]=_0x22b031);}get[_0x3ec352(0x341)](){const _0x44b1be=_0x3ec352;return this[_0x44b1be(0x18d)][_0x44b1be(0x286)]();}get[_0x3ec352(0x180)](){const _0x46671b=_0x3ec352;return this['_roomMembers$'][_0x46671b(0x286)]();}['dispose'](){const _0x3c05a3=_0x3ec352;super[_0x3c05a3(0x22c)](),this['_cursorInfo$'][_0x3c05a3(0x32d)](new Map()),this[_0x3c05a3(0x18d)][_0x3c05a3(0x305)](),this[_0x3c05a3(0x149)][_0x3c05a3(0x32d)]([]),this[_0x3c05a3(0x149)][_0x3c05a3(0x305)]();}[_0x3ec352(0x13c)](){const _0x2fe68f=_0x3ec352;this[_0x2fe68f(0x113)]||(this[_0x2fe68f(0x113)]=!0x0,this[_0x2fe68f(0x200)][_0x2fe68f(0x134)]['pipe'](_0x451ca1(this[_0x2fe68f(0x24c)]))[_0x2fe68f(0x261)](_0x38f03d=>{const _0x239881=_0x2fe68f;_0x38f03d===_0x1f3d15[_0x239881(0x2b1)]?this[_0x239881(0x308)]():this['_toggleOffline']();}),this[_0x2fe68f(0x200)][_0x2fe68f(0x1a6)][_0x2fe68f(0x1cf)](_0x451ca1(this['dispose$']))[_0x2fe68f(0x261)](_0x14caa0=>{const _0x379dab=_0x2fe68f,_0x168fb5=_0x14caa0[_0x379dab(0x1a0)];_0x168fb5===_0x39fec4[_0x379dab(0x353)]&&this[_0x379dab(0x14a)](_0x14caa0),_0x168fb5===_0x39fec4[_0x379dab(0x26e)]&&this[_0x379dab(0x2bd)](_0x14caa0);}),this[_0x2fe68f(0x2a5)](),this['disposeWithMe'](this[_0x2fe68f(0x24e)][_0x2fe68f(0x1c1)](_0x153a58=>{const _0x2fc93e=_0x2fe68f;if(this['_online']&&_0x153a58['id']===_0x34681b['id']&&_0x153a58[_0x2fc93e(0x14d)]['unitId']===this[_0x2fc93e(0x238)]){const _0x6d0087=_0x153a58['params'];this[_0x2fc93e(0x1b3)](_0x6d0087[_0x2fc93e(0x1e6)],_0x6d0087['selections'][0x0]);}})));}['_onCursorUpdate'](_0x17d366){const _0x5e9476=_0x3ec352;var _0x2e37c7,_0x291840;const {memberID:_0x471442,selection:_0x53244b}=_0x17d366[_0x5e9476(0x205)],{sheetName:_0x5ac267,range:_0x4600a3}=_0x3bf6a5(_0x53244b),_0xc4b085={'name':(_0x291840=(_0x2e37c7=this['_memberService']['getMember'](this[_0x5e9476(0x238)],_0x471442))==null?void 0x0:_0x2e37c7[_0x5e9476(0x18e)])!=null?_0x291840:_0x5e9476(0x116),'range':this[_0x5e9476(0x32f)](_0x5ac267,_0x4600a3),'sheetID':_0x5ac267,'color':this[_0x5e9476(0x1da)][_0x5e9476(0x314)](_0x471442),'selection':_0x53244b},_0x29b30b=this[_0x5e9476(0x341)];_0x29b30b['set'](_0x471442,_0xc4b085),this['_cursorInfo$']['next'](_0x29b30b);}[_0x3ec352(0x2bd)](_0x5c4f5b){const _0x353d3c=_0x3ec352,{memberID:_0x45e164}=_0x5c4f5b[_0x353d3c(0x205)],_0xf87a9=this[_0x353d3c(0x341)];_0xf87a9[_0x353d3c(0x278)](_0x45e164),this[_0x353d3c(0x18d)]['next'](_0xf87a9);}['_getMergeRange'](_0x529051,_0x5c391a){const _0x2956ba=_0x3ec352;var _0x4ac10a,_0x107dad;const _0x3ad84e=(_0x107dad=(_0x4ac10a=this['_univerInstanceService'][_0x2956ba(0x347)](this['unitID']))==null?void 0x0:_0x4ac10a[_0x2956ba(0x20b)](_0x529051))==null?void 0x0:_0x107dad[_0x2956ba(0x1ed)]();return(_0x3ad84e==null?void 0x0:_0x3ad84e['find'](_0x7a82fb=>_0xbdc8de[_0x2956ba(0x249)](_0x7a82fb,_0x5c391a)))||_0x5c391a;}[_0x3ec352(0x2a5)](){const _0x4d687a=_0x3ec352,_0xd54a42=new _0x3cfaf3(),_0x356417=Hi(),_0x286293=()=>{const _0x612a56=_0x437b;_0xd54a42[_0x612a56(0x22c)]();const _0x3b28a1=(_0x1d08ee,_0x42db46,_0x45651b,_0x420fd5)=>{const _0x431a34=_0x612a56;let _0x411426=[];switch(_0x1d08ee['id']){case _0xf1a21['DeleteRangeMoveLeftCommandId']:{_0x411426=_0x1e88dd(_0x1d08ee,_0x420fd5);break;}case _0xf1a21[_0x431a34(0x203)]:{_0x411426=_0x19454f(_0x1d08ee,_0x420fd5);break;}case _0xf1a21['InsertColCommandId']:{_0x411426=_0x1174ae(_0x1d08ee,_0x420fd5);break;}case _0xf1a21[_0x431a34(0x227)]:{_0x411426=_0x370511(_0x1d08ee,_0x420fd5);break;}case _0xf1a21[_0x431a34(0x247)]:{_0x411426=_0x2aaf9c(_0x1d08ee,_0x420fd5);break;}case _0xf1a21[_0x431a34(0x293)]:{_0x411426=_0x2c2b92(_0x1d08ee,_0x420fd5);break;}case _0xf1a21[_0x431a34(0x1ef)]:{_0x411426=_0x2a999d(_0x1d08ee,_0x420fd5);break;}case _0xf1a21[_0x431a34(0x1b5)]:{_0x411426=_0x283883(_0x1d08ee,_0x420fd5);break;}case _0xf1a21[_0x431a34(0x266)]:{_0x411426=_0x3966d1(_0x1d08ee,_0x420fd5);break;}}const _0x4c5a81=_0x33e6ae(_0x411426,_0x420fd5),_0x56f45e=this[_0x431a34(0x341)][_0x431a34(0x264)](_0x42db46);if(_0x56f45e&&_0x4c5a81){const _0x2cc87f={..._0x56f45e,'range':_0x4c5a81};this['cursorInfo']['set'](_0x42db46,_0x2cc87f),_0x356417(()=>{const _0x55ddc4=_0x431a34,_0x2b46df=this[_0x55ddc4(0x321)][_0x55ddc4(0x34f)](_0x4c5a81,_0xdc14ff=>(_0x2b46df['dispose'](),_0x3b28a1(_0xdc14ff,_0x42db46,_0x45651b,_0x4c5a81)));_0xd54a42[_0x55ddc4(0x338)](_0x2b46df);});}return{'redos':[],'undos':[]};};this[_0x612a56(0x341)]['forEach']((_0x374efe,_0x5c5e4e)=>{const _0x42e039=_0x612a56,{range:_0x4e205a,sheetID:_0x3cf1ed}=_0x374efe,_0x581106=this['_refRangeService'][_0x42e039(0x34f)](_0x4e205a,_0x380c94=>(_0x581106[_0x42e039(0x22c)](),_0x3b28a1(_0x380c94,_0x5c5e4e,_0x3cf1ed,_0x4e205a)));_0xd54a42[_0x42e039(0x338)](_0x581106);});};this[_0x4d687a(0x29b)](_0x2c5ac1(this[_0x4d687a(0x18d)][_0x4d687a(0x261)](()=>{_0x286293();})));}[_0x3ec352(0x308)](){const _0x4862ed=_0x3ec352;var _0x41de80,_0x1c3fa8;if(this[_0x4862ed(0x1ff)]=!0x0,((_0x41de80=this[_0x4862ed(0x334)]['getFocusedUnit']())==null?void 0x0:_0x41de80[_0x4862ed(0x15c)]())!==this['unitID'])return;const _0x5d50a7=(_0x1c3fa8=this[_0x4862ed(0x344)][_0x4862ed(0x264)](_0x167a90)[_0x4862ed(0x21b)]())==null?void 0x0:_0x1c3fa8[0x0],_0x1795f1=this[_0x4862ed(0x334)]['getCurrentUnitForType'](_0x560022[_0x4862ed(0x33b)])[_0x4862ed(0x356)]();_0x5d50a7&&_0x1795f1&&this[_0x4862ed(0x1b3)](_0x1795f1[_0x4862ed(0x12a)](),_0x5d50a7);}[_0x3ec352(0x17e)](){const _0x1ecc11=_0x3ec352;this[_0x1ecc11(0x1ff)]=!0x1;}};Be=Bi([B(0x2,_0x4c0fac(_0x241db3)),B(0x3,_0x4c0fac(Ke)),B(0x4,_0x4c0fac(_0xcda09a)),B(0x5,_0x5bb534),B(0x6,_0x234cad),B(0x7,_0x4c0fac(_0x47b355))],Be);var Yi=Object['getOwnPropertyDescriptor'],Wi=(_0x42c416,_0x1fe2ce,_0x1bde4e,_0x5cc64c)=>{const _0x5b26f5=_0x3ec352;for(var _0x1cef80=_0x5cc64c>0x1?void 0x0:_0x5cc64c?Yi(_0x1fe2ce,_0x1bde4e):_0x1fe2ce,_0x233bc3=_0x42c416[_0x5b26f5(0x2ab)]-0x1,_0x91fa9e;_0x233bc3>=0x0;_0x233bc3--)(_0x91fa9e=_0x42c416[_0x233bc3])&&(_0x1cef80=_0x91fa9e(_0x1cef80)||_0x1cef80);return _0x1cef80;},Ce=(_0xd6a030,_0x22cd99)=>(_0x5a1563,_0x549f3c)=>_0x22cd99(_0x5a1563,_0x549f3c,_0xd6a030);let H=class extends _0x4e9bf2{constructor(_0x2a2840,_0xe58774,_0x5ab5c2){const _0x5e9ef7=_0x3ec352;super(),_(this,'_entities',new Map()),_(this,_0x5e9ef7(0x330),new _0x201adb()),(this['_univerInstanceService']=_0x2a2840,this[_0x5e9ef7(0x344)]=_0xe58774,this[_0x5e9ef7(0x1d2)]=_0x5ab5c2,this[_0x5e9ef7(0x113)]());}[_0x3ec352(0x22c)](){const _0x26fc14=_0x3ec352;super[_0x26fc14(0x22c)](),this[_0x26fc14(0x330)][_0x26fc14(0x305)](),this[_0x26fc14(0x2f7)]['forEach'](_0x2f35bb=>_0x2f35bb[_0x26fc14(0x22c)]());}['getCollabCursors$'](_0x41c856){const _0x439266=_0x3ec352;return this[_0x439266(0x2f7)]['has'](_0x41c856)?this[_0x439266(0x2f7)]['get'](_0x41c856)[_0x439266(0x25a)]:this[_0x439266(0x330)][_0x439266(0x1cf)](_0x11df95(_0xc96698=>_0xc96698[_0x439266(0x238)]===_0x41c856),_0x29d1a7(_0x286673=>_0x286673[_0x439266(0x25a)]));}[_0x3ec352(0x113)](){const _0x421418=_0x3ec352;this[_0x421418(0x334)][_0x421418(0x173)](_0x560022[_0x421418(0x33b)])[_0x421418(0x1cf)](_0x451ca1(this['dispose$']))[_0x421418(0x261)](async _0xe202e4=>{const _0x35030d=_0x421418,_0x255629=_0xe202e4[_0x35030d(0x15c)](),_0xe2619=await this[_0x35030d(0x270)](_0x255629);this[_0x35030d(0x330)][_0x35030d(0x32d)](_0xe2619),this[_0x35030d(0x2f7)][_0x35030d(0x1a7)](_0x255629,_0xe2619);}),this[_0x421418(0x334)][_0x421418(0x173)](_0x560022['UNIVER_DOC'])['pipe'](_0x451ca1(this['dispose$']))['pipe'](_0x11df95(_0x51c8d3=>!_0x51c8d3['getUnitId']()['startsWith']('__')))['subscribe'](async _0x3b0c2a=>{const _0x3ac8ae=_0x421418,_0x435489=_0x3b0c2a['getUnitId'](),_0x195181=await this[_0x3ac8ae(0x17a)](_0x435489);this[_0x3ac8ae(0x330)][_0x3ac8ae(0x32d)](_0x195181),this[_0x3ac8ae(0x2f7)][_0x3ac8ae(0x1a7)](_0x435489,_0x195181);}),_0x42d0c5(this[_0x421418(0x334)][_0x421418(0x1fa)](_0x560022[_0x421418(0x272)]),this[_0x421418(0x334)]['getTypeOfUnitDisposed$'](_0x560022[_0x421418(0x33b)]))[_0x421418(0x1cf)](_0x451ca1(this[_0x421418(0x24c)]))[_0x421418(0x261)](_0x5abefc=>{const _0x2777ec=_0x421418,_0x18c24c=_0x5abefc[_0x2777ec(0x15c)](),_0x27480e=this[_0x2777ec(0x2f7)][_0x2777ec(0x264)](_0x18c24c);_0x27480e&&(_0x27480e[_0x2777ec(0x22c)](),this['_entities'][_0x2777ec(0x278)](_0x18c24c));});}async[_0x3ec352(0x270)](_0x2c69fb){const _0x2e13ff=_0x3ec352,_0x57dda2=await this[_0x2e13ff(0x1d2)][_0x2e13ff(0x228)](_0x2c69fb),_0x487022=this['_injector'][_0x2e13ff(0x1ce)](Be,_0x2c69fb,_0x57dda2);return _0x487022[_0x2e13ff(0x13c)](),_0x487022;}async[_0x3ec352(0x17a)](_0x26aea3){const _0x4a96ec=_0x3ec352,_0x52c9a5=await this[_0x4a96ec(0x1d2)][_0x4a96ec(0x228)](_0x26aea3),_0x492124=this[_0x4a96ec(0x344)]['createInstance'](xe,_0x26aea3,_0x52c9a5);return _0x492124[_0x4a96ec(0x13c)](),_0x492124;}};H=Wi([Ce(0x0,_0x5bb534),Ce(0x1,_0x4c0fac(_0x241db3)),Ce(0x2,_0x4c0fac(_0x19842d))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x41aaa4,_0x94a507){const _0x10b6b8=_0x3ec352;let {radius:_0x2c4099,width:_0x2af269,height:_0x5d58b2}=_0x94a507;_0x2c4099=_0x2c4099!=null?_0x2c4099:0x0,_0x2af269=_0x2af269!=null?_0x2af269:0x1e,_0x5d58b2=_0x5d58b2!=null?_0x5d58b2:0x1e;let _0x50bf2a=0x0,_0x339f0b=0x0,_0x404833=0x0;_0x50bf2a=_0x339f0b=_0x404833=Math[_0x10b6b8(0x313)](_0x2c4099,_0x2af269/0x2,_0x5d58b2/0x2),_0x41aaa4[_0x10b6b8(0x190)](),_0x41aaa4[_0x10b6b8(0x174)](_0x50bf2a,0x0),_0x41aaa4['lineTo'](_0x2af269-_0x339f0b,0x0),_0x41aaa4[_0x10b6b8(0x225)](_0x2af269-_0x339f0b,_0x339f0b,_0x339f0b,Math['PI']*0x3/0x2,0x0,!0x1),_0x41aaa4[_0x10b6b8(0x119)](_0x2af269,_0x5d58b2-_0x404833),_0x41aaa4['arc'](_0x2af269-_0x404833,_0x5d58b2-_0x404833,_0x404833,0x0,Math['PI']/0x2,!0x1),_0x41aaa4[_0x10b6b8(0x119)](0x0,_0x5d58b2),_0x41aaa4['lineTo'](0x0,_0x50bf2a),_0x41aaa4['arc'](_0x50bf2a,_0x50bf2a,_0x50bf2a,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x41aaa4[_0x10b6b8(0x168)](),_0x94a507[_0x10b6b8(0x14e)]&&(_0x41aaa4[_0x10b6b8(0x196)](),_0x41aaa4[_0x10b6b8(0x26d)]=_0x94a507[_0x10b6b8(0x14e)],_0x94a507[_0x10b6b8(0x11e)]===_0x10b6b8(0x1db)?_0x41aaa4['fill'](_0x10b6b8(0x1db)):_0x41aaa4[_0x10b6b8(0x14e)](),_0x41aaa4[_0x10b6b8(0x2f6)]());}class ve extends _0x2831b2{constructor(_0xa24be4,_0x48c7a6){const _0x16bff5=_0x3ec352;super(_0xa24be4,_0x48c7a6),_(this,_0x16bff5(0x280)),_(this,'text'),(this[_0x16bff5(0x280)]=_0x48c7a6==null?void 0x0:_0x48c7a6[_0x16bff5(0x280)],this[_0x16bff5(0x164)]=_0x48c7a6==null?void 0x0:_0x48c7a6[_0x16bff5(0x164)]);}static[_0x3ec352(0x2d8)](_0x4c7a8b,_0x4e7eff){const _0x21f014=_0x3ec352,{text:_0x57b29c,color:_0x3c0a4}=_0x4e7eff;_0x4c7a8b['save'](),_0x4c7a8b['font']=_0x21f014(0x29f);const _0x18739b=_0x4c7a8b[_0x21f014(0x316)](_0x57b29c)[_0x21f014(0x210)],_0x3b6f2f=Math['min'](_0x18739b+0x2*Re,at);ji(_0x4c7a8b,{'height':Q,'radius':0x4,'width':_0x3b6f2f,'fill':_0x3c0a4}),_0x4c7a8b[_0x21f014(0x26d)]=_0x21f014(0x2b8);const _0x330cf7=Re,_0x593d24=Q-Vi,_0x34487b=at-0x2*Re;if(_0x18739b>_0x34487b){let _0x472c30='',_0x1f50b0=0x0;for(const _0x41ff48 of _0x57b29c){const _0x120e6b=_0x4c7a8b[_0x21f014(0x316)](_0x41ff48)['width'];if(_0x1f50b0+_0x120e6b<=_0x34487b-_0x4c7a8b[_0x21f014(0x316)](_0x21f014(0x2e4))['width'])_0x472c30+=_0x41ff48,_0x1f50b0+=_0x120e6b;else{_0x472c30+='...';break;}}_0x4c7a8b[_0x21f014(0x1dc)](_0x472c30,_0x330cf7,_0x593d24);}else _0x4c7a8b[_0x21f014(0x1dc)](_0x57b29c,_0x330cf7,_0x593d24);_0x4c7a8b[_0x21f014(0x2f6)]();}[_0x3ec352(0x236)](_0x33282e){const _0x1320ae=_0x3ec352;ve[_0x1320ae(0x2d8)](_0x33282e,this);}}const De=_0x3ec352(0x279),Xi=_0x3ec352(0x29c),Gi=_0x3ec352(0x2c8),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x3ec352(0x1e2);class ct{constructor(_0x46c986,_0x5a7eb2,_0xfae27d,_0x2757fd){const _0x1d502a=_0x3ec352;_(this,_0x1d502a(0x144),[]),_(this,_0x1d502a(0x281),null),_(this,'_textBubble',null),_(this,_0x1d502a(0x30d),null),_(this,'_hideTimer',null),_(this,_0x1d502a(0x15b),null),(this[_0x1d502a(0x335)]=_0x46c986,this[_0x1d502a(0x165)]=_0x5a7eb2,this[_0x1d502a(0x31a)]=_0xfae27d,this[_0x1d502a(0x30b)]=_0x2757fd,this[_0x1d502a(0x33a)]());}set[_0x3ec352(0x198)](_0x4f94ae){const _0xc17f0e=_0x3ec352;_0x4f94ae?(this[_0xc17f0e(0x30d)]&&this['_anchorDot']['hide'](),this[_0xc17f0e(0x2f2)]&&this[_0xc17f0e(0x2f2)][_0xc17f0e(0x1d9)]()):(this[_0xc17f0e(0x30d)]&&this['_anchorDot'][_0xc17f0e(0x1d9)](),this[_0xc17f0e(0x2f2)]&&this[_0xc17f0e(0x2f2)][_0xc17f0e(0x15e)]());}[_0x3ec352(0x22c)](){const _0x1202ef=_0x3ec352;for(const _0x1fc389 of this[_0x1202ef(0x144)])_0x1fc389[_0x1202ef(0x22c)]();this['_textBubble']&&this[_0x1202ef(0x2f2)][_0x1202ef(0x22c)](),this[_0x1202ef(0x30d)]&&this[_0x1202ef(0x30d)][_0x1202ef(0x22c)](),this[_0x1202ef(0x281)]&&this[_0x1202ef(0x281)][_0x1202ef(0x22c)](),this[_0x1202ef(0x15b)]&&this[_0x1202ef(0x15b)]();}[_0x3ec352(0x33a)](){const _0x5e5553=_0x3ec352;var _0x49be1e;const {_docSkeleton:_0x38364b,_document:_0x560065}=this,{color:_0x16dc47,name:_0x1d6dcf,ranges:_0x5af606}=this[_0x5e5553(0x335)],_0x4b55f1=_0x560065[_0x5e5553(0x2da)](),{docsLeft:_0x1a1ddf,docsTop:_0x4a093a}=_0x4b55f1,_0x15bbad=new _0x592cf6(_0x4b55f1,_0x38364b);for(const {startOffset:_0x2360b1,endOffset:_0x2711c3,rangeType:_0x1722f3,segmentId:_0x50e016,segmentPage:_0x3a0004,collapsed:_0x59e2a0,isActive:_0x2a3619}of _0x5af606){const _0x4cc002=_0x38364b[_0x5e5553(0x348)](_0x2360b1,!0x0,_0x50e016,_0x3a0004);let _0x1c3613=_0x38364b[_0x5e5553(0x348)](_0x2711c3,!0x0,_0x50e016,_0x3a0004);if(_0x1c3613==null&&(_0x1c3613=_0x38364b[_0x5e5553(0x348)](_0x2711c3-0x1,!0x1,_0x50e016,_0x3a0004)),_0x2a3619){const {contentBoxPointGroup:_0x218756}=_0x15bbad[_0x5e5553(0x312)](_0x1c3613,_0x1c3613);if(_0x218756['length']===0x0)continue;this[_0x5e5553(0x331)](_0x16dc47,_0x218756,_0x1a1ddf,_0x4a093a,_0x1d6dcf),this[_0x5e5553(0x15b)]=this[_0x5e5553(0x201)]();}if(_0x4cc002&&_0x1c3613){if(_0x1722f3===_0x61a77c[_0x5e5553(0x241)]){const _0x4e70dc=new _0x622a72(_0x4b55f1,_0x38364b),{pointGroup:_0x45b45b}=(_0x49be1e=_0x4e70dc[_0x5e5553(0x312)](_0x4cc002,_0x1c3613))!=null?_0x49be1e:{};if(_0x45b45b==null||_0x45b45b['length']===0x0)continue;this['_drawRectRange'](_0x16dc47,_0x45b45b,_0x1a1ddf,_0x4a093a);}else{if(!_0x59e2a0){const {borderBoxPointGroup:_0x5e7bc7}=_0x15bbad[_0x5e5553(0x312)](_0x4cc002,_0x1c3613);if(_0x5e7bc7[_0x5e5553(0x2ab)]===0x0)continue;this[_0x5e5553(0x2c9)](_0x16dc47,_0x5e7bc7,_0x1a1ddf,_0x4a093a);}}}}}[_0x3ec352(0x331)](_0x32e88a,_0x4766b6,_0xfdd71,_0x5b0ca9,_0x5d883f){const _0x4f368e=_0x3ec352,_0x3439a7=this[_0x4f368e(0x2b4)](_0x4766b6),{left:_0x59b64f,top:_0x413947,height:_0xff9de0}=_0x3439a7,_0x544cfd=this[_0x4f368e(0x179)](),_0x67b596=zi/_0x544cfd,_0x1a7597=new _0x2c78d1(De+_0x1f3cf5(z),{'left':_0x59b64f+_0xfdd71-_0x67b596,'top':_0x413947+_0x5b0ca9,'height':_0xff9de0,'width':Ki,'fill':_0x32e88a||_0x18ff82(_0x3cc9d6[_0x4f368e(0x153)],0x0),'strokeWidth':_0x67b596,'stroke':Ji,'evented':!0x0});this[_0x4f368e(0x281)]=_0x1a7597,this[_0x4f368e(0x165)][_0x4f368e(0x127)](_0x1a7597,_0x5e29a0);const _0x140fa3=new _0x2c78d1(De+_0x1f3cf5(z),{'left':_0x59b64f+_0xfdd71-_0x67b596,'top':_0x413947+_0x5b0ca9-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x32e88a||_0x18ff82(_0x3cc9d6[_0x4f368e(0x153)],0x0),'strokeWidth':0x0,'stroke':_0x32e88a||_0x18ff82(_0x3cc9d6['black'],0x0),'evented':!0x1});this[_0x4f368e(0x30d)]=_0x140fa3,this['_scene'][_0x4f368e(0x127)](_0x140fa3,_0x5e29a0);const _0x5254c6=new ve(De+_0x1f3cf5(z),{'left':_0x59b64f+_0xfdd71-_0x67b596,'top':_0x413947+_0x5b0ca9-Q,'text':_0x5d883f,'color':_0x32e88a});this['_textBubble']=_0x5254c6,this[_0x4f368e(0x165)][_0x4f368e(0x127)](_0x5254c6,_0x5e29a0),this['_hover']=!0x1;}[_0x3ec352(0x201)](){const _0x4717f7=_0x3ec352,_0x3b741c=this['_anchor']['onPointerEnter$'][_0x4717f7(0x31f)](()=>{const _0x4db299=_0x4717f7;this[_0x4db299(0x198)]=!0x0;}),_0x642b6=this[_0x4717f7(0x281)]['onPointerLeave$'][_0x4717f7(0x31f)](()=>{const _0x933658=_0x4717f7;this[_0x933658(0x188)]&&clearTimeout(this[_0x933658(0x188)]),this[_0x933658(0x188)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x3e3e14=_0x4717f7;_0x3b741c[_0x3e3e14(0x13f)](),_0x642b6[_0x3e3e14(0x13f)]();};}[_0x3ec352(0x2c9)](_0x2493e4,_0x48d85c,_0x2753aa,_0x29125c){const _0x4dc284=_0x3ec352,_0x16d38e=new _0x585da0(_0x2493e4)[_0x4dc284(0x1f8)](0.2)[_0x4dc284(0x221)](),_0x5d0558=new _0x3e0ab3(Xi+_0x1f3cf5(z),{'pointsGroup':_0x48d85c,'fill':_0x16d38e||_0x18ff82(_0x3cc9d6[_0x4dc284(0x153)],0.2),'left':_0x2753aa,'top':_0x29125c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4dc284(0x144)]['push'](_0x5d0558),this['_scene']['addObject'](_0x5d0558,_0x5e29a0);}[_0x3ec352(0x1bf)](_0x2c3f11,_0x35e9f6,_0x2d69c8,_0x367dca){const _0x2c4944=_0x3ec352,_0x25353e=new _0x585da0(_0x2c3f11)[_0x2c4944(0x1f8)](0.2)[_0x2c4944(0x221)](),_0x274608=new _0x3e0ab3(Gi+_0x1f3cf5(z),{'pointsGroup':_0x35e9f6,'fill':_0x25353e||_0x18ff82(_0x3cc9d6['black'],0.2),'left':_0x2d69c8,'top':_0x367dca,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2c4944(0x144)]['push'](_0x274608),this['_scene']['addObject'](_0x274608,_0x5e29a0);}[_0x3ec352(0x2b4)](_0x333159){const _0x4aeb76=_0x333159[0x0],_0xf7518d=_0x4aeb76[0x0],_0x2b9fe9=_0x4aeb76[0x2],{x:_0x38110d,y:_0x103fda}=_0xf7518d,{x:_0x4c6bc2,y:_0x355804}=_0x2b9fe9;return{'left':_0x38110d,'top':_0x103fda,'width':_0x4c6bc2-_0x38110d,'height':_0x355804-_0x103fda};}[_0x3ec352(0x179)](){const _0x15d644=_0x3ec352,{scaleX:_0x53ca4c,scaleY:_0xf40ca4}=this[_0x15d644(0x165)][_0x15d644(0x2b6)]();return Math[_0x15d644(0x303)](_0x53ca4c,_0xf40ca4);}}var Zi=Object[_0x3ec352(0x232)],Qi=(_0x5d9e38,_0x4543c2,_0x28f987,_0x163eac)=>{const _0x2bb6ad=_0x3ec352;for(var _0x244af1=_0x163eac>0x1?void 0x0:_0x163eac?Zi(_0x4543c2,_0x28f987):_0x4543c2,_0x226490=_0x5d9e38[_0x2bb6ad(0x2ab)]-0x1,_0x24c570;_0x226490>=0x0;_0x226490--)(_0x24c570=_0x5d9e38[_0x226490])&&(_0x244af1=_0x24c570(_0x244af1)||_0x244af1);return _0x244af1;},ie=(_0x22cbbc,_0x53ef4f)=>(_0x5c22c6,_0x4efd35)=>_0x53ef4f(_0x5c22c6,_0x4efd35,_0x22cbbc);let Fe=class extends _0x4e9bf2{constructor(_0x39716e,_0x1b0720,_0x235c9b,_0x336934,_0xe1217f){const _0x5396ce=_0x3ec352;super(),_(this,'_cursorShapes',[]),_(this,_0x5396ce(0x285),[]),(this[_0x5396ce(0x130)]=_0x39716e,this[_0x5396ce(0x216)]=_0x1b0720,this[_0x5396ce(0x171)]=_0x235c9b,this[_0x5396ce(0x24e)]=_0x336934,this['_themeService']=_0xe1217f,this[_0x5396ce(0x113)]());}[_0x3ec352(0x113)](){const _0x2979d5=_0x3ec352,_0xef9fed=this[_0x2979d5(0x130)]['unitId'],_0x287bc2=this[_0x2979d5(0x216)];this['disposeWithMe'](_0x4e3cde([this[_0x2979d5(0x171)]['getCollabCursors$'](_0xef9fed),this['_themeService'][_0x2979d5(0x2b0)]])[_0x2979d5(0x1cf)](_0x108aa2(([_0x14722d,_0x3729d8])=>({'skeleton':_0x287bc2[_0x2979d5(0x27a)](),'cursors':[..._0x14722d['values']()]['flatMap'](_0x364b48=>({..._0x364b48,'color':this[_0x2979d5(0x332)]['getColorFromTheme'](_0x364b48[_0x2979d5(0x280)])}))})))['subscribe'](_0x5d0251=>{const _0x69551d=_0x2979d5;if(this[_0x69551d(0x208)](),_0x5d0251){const {skeleton:_0x2ec964,cursors:_0x79af81}=_0x5d0251;this['_updateCollabCursors'](_0x2ec964,_0x79af81);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x3ec352(0x21f)](_0x2ca216,_0x4d6ff4){const _0x41c104=_0x3ec352,{scene:_0x1dc76a,mainComponent:_0x345dab}=this[_0x41c104(0x130)],_0x108f51=_0x4d6ff4[_0x41c104(0x1ca)](_0x3874e2=>new ct(_0x3874e2,_0x1dc76a,_0x2ca216,_0x345dab));this[_0x41c104(0x320)]=_0x108f51,this['_cursors']=_0x4d6ff4;}['_refreshCollabCursors'](){const _0x298079=_0x3ec352;this['_removeCollabCursors']();const {scene:_0x3c4b7f,mainComponent:_0x4c668b}=this['_context'],_0x48abdc=this[_0x298079(0x216)][_0x298079(0x27a)](),_0x2b186c=this[_0x298079(0x285)][_0x298079(0x1ca)](_0x1d09f5=>new ct(_0x1d09f5,_0x3c4b7f,_0x48abdc,_0x4c668b));this[_0x298079(0x320)]=_0x2b186c;}[_0x3ec352(0x208)](){const _0x5a9f91=_0x3ec352;this['_cursorShapes']['forEach'](_0x2fc322=>_0x2fc322['dispose']()),this[_0x5a9f91(0x320)]=[];}['_initCommandExecutedListener'](){const _0x806c9=_0x3ec352,_0x3589ab=[_0x400b0f['id']];this[_0x806c9(0x29b)](this[_0x806c9(0x24e)][_0x806c9(0x1c1)](_0x1f5495=>{const _0x1b0ab7=_0x806c9;_0x3589ab[_0x1b0ab7(0x1ad)](_0x1f5495['id'])&&_0x1f5495[_0x1b0ab7(0x14d)]['unitId']===this['_context'][_0x1b0ab7(0x191)]&&this['_refreshCollabCursors']();}));}[_0x3ec352(0x2df)](){const _0x336b3b=_0x3ec352;this[_0x336b3b(0x29b)](_0x4dedaf(this[_0x336b3b(0x130)][_0x336b3b(0x304)][_0x336b3b(0x34b)])[_0x336b3b(0x1cf)](_0x332e97(_0x2eeda5=>_0x2eeda5[_0x336b3b(0x35e)]===_0x36a1db[_0x336b3b(0x29d)]),_0x572a55(0x10))[_0x336b3b(0x261)](()=>{const _0x4df68f=_0x336b3b;this[_0x4df68f(0x219)]();}));}};Fe=Qi([ie(0x1,_0x4c0fac(_0x2f9fae)),ie(0x2,_0x4c0fac(H)),ie(0x3,_0x234cad),ie(0x4,_0x4c0fac(_0x334c7e))],Fe);const qi=0x1,en=1.5;class tn extends _0x2831b2{constructor(_0x5c9489,_0x395464){const _0x16fb20=_0x3ec352;super(_0x5c9489,_0x395464),_(this,_0x16fb20(0x12d)),_(this,_0x16fb20(0x1a2),!0x1),_(this,_0x16fb20(0x1b7)),_(this,'_name',''),_(this,_0x16fb20(0x1cc),_0x16fb20(0x124)),_(this,_0x16fb20(0x2cc)),(_0x395464&&this[_0x16fb20(0x322)](_0x395464),this[_0x16fb20(0x2f4)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x16fb20(0x322)]({'hovered':!0x1})));}[_0x3ec352(0x322)](_0x4a38cf){const _0x3a73ee=_0x3ec352;var _0x5c2bc2,_0x163150,_0x3e5612,_0x2a6d3a,_0x56468e,_0x3baa4e;this[_0x3a73ee(0x12d)]=(_0x5c2bc2=_0x4a38cf[_0x3a73ee(0x280)])!=null?_0x5c2bc2:this[_0x3a73ee(0x12d)],this[_0x3a73ee(0x1a2)]=(_0x163150=_0x4a38cf[_0x3a73ee(0x1f7)])!=null?_0x163150:this[_0x3a73ee(0x1a2)],this[_0x3a73ee(0x1b7)]=(_0x3e5612=_0x4a38cf[_0x3a73ee(0x2ac)])!=null?_0x3e5612:this[_0x3a73ee(0x1b7)],this[_0x3a73ee(0x19f)]=(_0x2a6d3a=_0x4a38cf['name'])!=null?_0x2a6d3a:this[_0x3a73ee(0x19f)],this[_0x3a73ee(0x1cc)]=(_0x56468e=_0x4a38cf[_0x3a73ee(0x189)])!=null?_0x56468e:this[_0x3a73ee(0x1cc)],this[_0x3a73ee(0x2cc)]=(_0x3baa4e=_0x4a38cf[_0x3a73ee(0x2e5)])!=null?_0x3baa4e:this[_0x3a73ee(0x2cc)],this['transformByState']({'width':_0x4a38cf[_0x3a73ee(0x210)],'height':_0x4a38cf[_0x3a73ee(0x142)]});}[_0x3ec352(0x256)](_0x5b1f5e){const _0x28d770=_0x3ec352,{row:_0x48de84,column:_0x479223}=_0x5b1f5e;if(_0x48de84>=this[_0x28d770(0x1b7)][_0x28d770(0x23c)]&&_0x48de84<=this['_range'][_0x28d770(0x288)]&&_0x479223>=this[_0x28d770(0x1b7)][_0x28d770(0x296)]&&_0x479223<=this[_0x28d770(0x1b7)]['endColumn']){this[_0x28d770(0x322)]({'hovered':!0x0});return;}this[_0x28d770(0x322)]({'hovered':!0x1});}[_0x3ec352(0x2c3)](_0x359fee){return!0x1;}[_0x3ec352(0x236)](_0x17974c){const _0x5a7e75=_0x3ec352;_0x2c78d1['drawWith'](_0x17974c,{'width':this['width'],'height':this[_0x5a7e75(0x142)],'strokeWidth':en,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x5a7e75(0x2cc)]}),this[_0x5a7e75(0x1a2)]&&(_0x17974c[_0x5a7e75(0x196)](),_0x17974c[_0x5a7e75(0x1fd)](0x1,0x0,0x0,0x1,this[_0x5a7e75(0x210)],this[_0x5a7e75(0x1cc)]===_0x5a7e75(0x2d3)?0x0:-Q),ve[_0x5a7e75(0x2d8)](_0x17974c,{'text':this[_0x5a7e75(0x19f)],'color':this[_0x5a7e75(0x12d)]}),_0x17974c['restore']());}}var sn=Object[_0x3ec352(0x232)],nn=(_0x4f9bc5,_0x331df3,_0x5c02cd,_0x16dee1)=>{const _0xf06843=_0x3ec352;for(var _0x53ec9c=_0x16dee1>0x1?void 0x0:_0x16dee1?sn(_0x331df3,_0x5c02cd):_0x331df3,_0x380566=_0x4f9bc5[_0xf06843(0x2ab)]-0x1,_0x33eaa3;_0x380566>=0x0;_0x380566--)(_0x33eaa3=_0x4f9bc5[_0x380566])&&(_0x53ec9c=_0x33eaa3(_0x53ec9c)||_0x53ec9c);return _0x53ec9c;},be=(_0x1395a8,_0x1e170c)=>(_0x2ff119,_0x1f891a)=>_0x1e170c(_0x2ff119,_0x1f891a,_0x1395a8);const rn=0x1389;let ke=class extends _0x4e9bf2{constructor(_0x57fa62,_0x5b9e43,_0x2edacc,_0x362358){const _0x2136e2=_0x3ec352;super(),_(this,_0x2136e2(0x285),new Set()),_(this,_0x2136e2(0x183),null),(this['_context']=_0x57fa62,this[_0x2136e2(0x206)]=_0x5b9e43,this[_0x2136e2(0x171)]=_0x2edacc,this[_0x2136e2(0x332)]=_0x362358,this[_0x2136e2(0x113)]());}[_0x3ec352(0x113)](){const _0x3ebee2=_0x3ec352;this[_0x3ebee2(0x206)][_0x3ebee2(0x199)][_0x3ebee2(0x1cf)](_0x4b0b95(this[_0x3ebee2(0x24c)]),_0x54129b(_0x1697b5=>{const _0x29e219=_0x3ebee2;if(_0x1697b5){const _0x3bf00a=_0x1697b5[_0x29e219(0x11a)];return _0x4e3cde(this[_0x29e219(0x171)][_0x29e219(0x323)](this[_0x29e219(0x130)][_0x29e219(0x191)]),this['_themeService']['currentTheme$'])[_0x29e219(0x1cf)](_0x108aa2(([_0x42cb9d,_0x475cba])=>{const _0x26bf55=new Map();return _0x42cb9d['forEach']((_0x398e0c,_0x587578)=>{const _0x53687e=_0x437b;if(_0x398e0c['sheetID']===_0x3bf00a){const _0x3098e4={..._0x398e0c};_0x3098e4[_0x53687e(0x280)]=this[_0x53687e(0x332)][_0x53687e(0x289)](_0x398e0c[_0x53687e(0x280)]),_0x26bf55[_0x53687e(0x1a7)](_0x587578,_0x3098e4);}}),{'skeleton':_0x1697b5,'cursors':_0x26bf55};}));}return _0x4c8a6d({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x3b1524,cursors:_0x178339})=>{const _0x27217f=_0x3ebee2;this[_0x27217f(0x208)](),_0x3b1524&&this[_0x27217f(0x21f)](_0x3b1524,_0x178339);}),this[_0x3ebee2(0x206)]['currentSkeleton$'][_0x3ebee2(0x261)](_0x4941e0=>{const _0x5d6f27=_0x3ebee2;if(_0x4941e0==null)return;const {skeleton:_0x16fba3}=_0x4941e0,{scene:_0x33415b}=this['_context'];_0x33415b[_0x5d6f27(0x2ed)][_0x5d6f27(0x31f)](_0x454746(_0x41869a=>{const _0x2e8953=_0x5d6f27;var _0x412ce1,_0x486692;const {offsetX:_0x51f261,offsetY:_0x27ce3d}=_0x41869a,{x:_0x1fb76b,y:_0x4b1d54}=_0x33415b[_0x2e8953(0x253)](_0x533d50[_0x2e8953(0x11b)]([_0x51f261,_0x27ce3d])),{scaleX:_0x175b87,scaleY:_0x58d398}=_0x33415b['getAncestorScale'](),_0x3d2af2=_0x33415b[_0x2e8953(0x35a)](_0x509f66[_0x2e8953(0x1de)]),_0x2f5109=_0x33415b[_0x2e8953(0x2fd)](_0x533d50[_0x2e8953(0x11b)]([_0x1fb76b,_0x4b1d54]),_0x3d2af2),_0x144786=_0x16fba3[_0x2e8953(0x2d4)](_0x51f261,_0x27ce3d,_0x175b87,_0x58d398,_0x2f5109);((_0x412ce1=this[_0x2e8953(0x183)])==null?void 0x0:_0x412ce1[_0x2e8953(0x2e6)])===_0x144786['column']&&((_0x486692=this[_0x2e8953(0x183)])==null?void 0x0:_0x486692[_0x2e8953(0x24f)])===_0x144786[_0x2e8953(0x24f)]||this[_0x2e8953(0x285)][_0x2e8953(0x2af)](_0x2676ac=>{const _0x155cc7=_0x2e8953;_0x2676ac[_0x155cc7(0x256)](_0x144786);});},0x64));});}[_0x3ec352(0x21f)](_0x2d6e08,_0x26c9ec){const _0xc6170f=_0x3ec352;var _0x547e5d;const _0x4574a3=(_0x547e5d=this[_0xc6170f(0x206)]['getCurrent']())==null?void 0x0:_0x547e5d[_0xc6170f(0x2b7)];if(!_0x4574a3)return;const _0x519eaa=this[_0xc6170f(0x1b2)]();if(!_0x519eaa)return;this[_0xc6170f(0x285)]['forEach'](_0x226624=>{_0x226624['makeDirty']();});const {scene:_0x84c75b}=_0x519eaa,_0x2c008e=on(Array[_0xc6170f(0x1a4)](_0x26c9ec[_0xc6170f(0x283)]()))[_0xc6170f(0x1ca)](_0x3dbfea=>{const _0x4d7e3d=_0xc6170f,{color:_0x22c35e,range:_0x157b3e,name:_0x379071,selection:_0x36f955,sheetID:_0x5a662e}=_0x3dbfea,{startColumn:_0x1978fa,startRow:_0x2bfef9,endColumn:_0x2019bb,endRow:_0x36ede0}=_0x157b3e,_0x239d6d=_0x5669fa(_0x2bfef9,_0x1978fa,_0x84c75b,_0x4574a3),_0x4a5955=_0x5669fa(_0x36ede0,_0x2019bb,_0x84c75b,_0x4574a3),{columnHeaderHeightAndMarginTop:_0xfdc1ab}=_0x4574a3,{startX:_0x3e69ba,startY:_0x4cb094}=_0x239d6d,{endX:_0x27a453,endY:_0x3800fa}=_0x4a5955,_0x4aa8e3=_0x27a453-_0x3e69ba,_0x7154fa=_0x3800fa-_0x4cb094,_0x32efa3={'labelPosition':_0x4cb094-_0xfdc1ab>=Q?_0x4d7e3d(0x124):_0x4d7e3d(0x2d3),'sheetID':_0x5a662e,'range':_0x157b3e,'color':_0x22c35e,'name':_0x379071,'selection':_0x36f955,'left':_0x3e69ba,'top':_0x4cb094,'width':_0x4aa8e3,'height':_0x7154fa,'evented':!0x1,'zIndex':rn};return new tn(_0x379071,_0x32efa3);});_0x84c75b[_0xc6170f(0x339)](_0x2c008e,qi),this[_0xc6170f(0x285)]=new Set(_0x2c008e);}['_removeCollabCursors'](){const _0xd2a6ae=_0x3ec352;var _0x32865b;(_0x32865b=this[_0xd2a6ae(0x285)])==null||_0x32865b[_0xd2a6ae(0x2af)](_0xe729bf=>_0xe729bf[_0xd2a6ae(0x22c)]());}[_0x3ec352(0x1b2)](){const _0x42f2eb=_0x3ec352;return _0x5304d4(this[_0x42f2eb(0x130)]['unit'],this['_context']);}};ke=nn([be(0x1,_0x4c0fac(_0x42e4bb)),be(0x2,_0x4c0fac(H)),be(0x3,_0x4c0fac(_0x334c7e))],ke);function on(_0x547d97){const _0x19994e=_0x3ec352,_0x50b174=new Map();return _0x547d97['forEach'](_0xf37ef6=>{const _0x39e27e=_0x437b;if(_0x50b174[_0x39e27e(0x177)](_0xf37ef6[_0x39e27e(0x181)])){const _0x33e94f=_0x50b174[_0x39e27e(0x264)](_0xf37ef6[_0x39e27e(0x181)]);_0x33e94f[_0x39e27e(0x18e)]+=',\x20'+_0xf37ef6[_0x39e27e(0x18e)];}else _0x50b174[_0x39e27e(0x1a7)](_0xf37ef6[_0x39e27e(0x181)],_0xf37ef6);}),Array[_0x19994e(0x1a4)](_0x50b174[_0x19994e(0x283)]());}var an=Object[_0x3ec352(0x232)],cn=(_0x55a3cb,_0x26712a,_0x4f9ec8,_0x2dba82)=>{for(var _0x5bfd7e=_0x2dba82>0x1?void 0x0:_0x2dba82?an(_0x26712a,_0x4f9ec8):_0x26712a,_0x30749f=_0x55a3cb['length']-0x1,_0x3c3904;_0x30749f>=0x0;_0x30749f--)(_0x3c3904=_0x55a3cb[_0x30749f])&&(_0x5bfd7e=_0x3c3904(_0x5bfd7e)||_0x5bfd7e);return _0x5bfd7e;},F=(_0x2e4935,_0x1b2913)=>(_0x51f44f,_0x1743e4)=>_0x1b2913(_0x51f44f,_0x1743e4,_0x2e4935);let _e=class extends _0xbbfd04{constructor(_0xe69de7,_0x4e5521,_0x5cb676,_0x1cf278,_0x5ed07e,_0x289d3c){const _0x263c02=_0x3ec352;super(),this[_0x263c02(0x34c)]=_0xe69de7,this[_0x263c02(0x14f)]=_0x4e5521,this['_collaborationUIEventService']=_0x5cb676,this[_0x263c02(0x1df)]=_0x1cf278,this['_notificationService']=_0x5ed07e,this[_0x263c02(0x268)]=_0x289d3c,this['_setupBeforeClosingHandler'](),this[_0x263c02(0x1e8)]();}[_0x3ec352(0x300)](){const _0x5ba990=_0x3ec352;this[_0x5ba990(0x29b)](this[_0x5ba990(0x34c)]['registerBeforeClose'](()=>{const _0x242c40=_0x5ba990;if(this[_0x242c40(0x14f)][_0x242c40(0x2b5)][_0x242c40(0x310)])return this[_0x242c40(0x268)]['t'](_0x242c40(0x318));}));}[_0x3ec352(0x1e8)](){const _0x1cd6cf=_0x3ec352;this[_0x1cd6cf(0x29b)](this[_0x1cd6cf(0x26a)][_0x1cd6cf(0x1a6)][_0x1cd6cf(0x261)](_0x382c4b=>{const _0xb0153e=_0x1cd6cf;_0x382c4b['id']===_0x5a7f32['OTHER_CLIENT_EDITING']&&this[_0xb0153e(0x1df)][_0xb0153e(0x1d9)]({'type':_0x5187ea['Warning'],'content':this[_0xb0153e(0x268)]['t'](_0xb0153e(0x214))}),_0x382c4b['id']===_0x5a7f32[_0xb0153e(0x1e0)]&&this[_0xb0153e(0x1df)][_0xb0153e(0x1d9)]({'type':_0x5187ea[_0xb0153e(0x215)],'content':this[_0xb0153e(0x268)]['t']('collaboration.closeRoom')}),_0x382c4b['id']===_0x5a7f32[_0xb0153e(0x20e)]&&this[_0xb0153e(0x22b)][_0xb0153e(0x1d9)]({'title':this['_localeService']['t'](_0xb0153e(0x13d)),'content':this['_localeService']['t'](_0xb0153e(0x211)),'type':_0xb0153e(0x19b),'duration':0x0}),_0x382c4b['id']===_0x5a7f32['CONFLICT']&&this[_0xb0153e(0x1df)][_0xb0153e(0x1d9)]({'type':_0x5187ea[_0xb0153e(0x12c)],'content':this[_0xb0153e(0x268)]['t']('collaboration.closeRoom')+'('+_0x382c4b[_0xb0153e(0x205)]+')'}),_0x382c4b['id']===_0x5a7f32[_0xb0153e(0x184)]&&this[_0xb0153e(0x1df)][_0xb0153e(0x1d9)]({'type':_0x5187ea[_0xb0153e(0x215)],'content':this[_0xb0153e(0x268)]['t'](_0x382c4b[_0xb0153e(0x205)]||'')}),_0x382c4b['id']===_0x5a7f32[_0xb0153e(0x349)]&&this[_0xb0153e(0x1df)][_0xb0153e(0x1d9)]({'type':_0x5187ea[_0xb0153e(0x215)],'content':this[_0xb0153e(0x268)]['t'](_0xb0153e(0x31b))}),_0x382c4b['id']===_0x5a7f32['SOCKET_FAILED']&&this[_0xb0153e(0x1df)][_0xb0153e(0x1d9)]({'type':_0x5187ea[_0xb0153e(0x12c)],'content':this['_localeService']['t'](_0xb0153e(0x328))}),_0x382c4b['id']===_0x5a7f32[_0xb0153e(0x2e3)]&&this[_0xb0153e(0x1df)][_0xb0153e(0x1d9)]({'type':_0x5187ea[_0xb0153e(0x12c)],'content':this['_localeService']['t'](_0xb0153e(0x213))});}));}};_e=cn([F(0x0,_0x488919),F(0x1,_0x223ca0),F(0x2,_0x4c0fac(_0x1fe96a)),F(0x3,_0x12f42d),F(0x4,_0x26656e),F(0x5,_0x4c0fac(_0x498bd0))],_e);var _n=Object[_0x3ec352(0x232)],ln=(_0x38face,_0x49bf69,_0x9eee44,_0x2792b5)=>{const _0x1ce0bc=_0x3ec352;for(var _0x9ac260=_0x2792b5>0x1?void 0x0:_0x2792b5?_n(_0x49bf69,_0x9eee44):_0x49bf69,_0xf83849=_0x38face[_0x1ce0bc(0x2ab)]-0x1,_0x2c4158;_0xf83849>=0x0;_0xf83849--)(_0x2c4158=_0x38face[_0xf83849])&&(_0x9ac260=_0x2c4158(_0x9ac260)||_0x9ac260);return _0x9ac260;},ne=(_0xe1db03,_0x310eff)=>(_0x3f6537,_0x2a28e1)=>_0x310eff(_0x3f6537,_0x2a28e1,_0xe1db03);let le=class extends _0xbbfd04{constructor(_0x1b7420,_0x51e627,_0x46d2b0,_0x4cca55){const _0x59f74d=_0x3ec352;super(),_(this,'_memberID'),(this[_0x59f74d(0x344)]=_0x1b7420,this[_0x59f74d(0x21d)]=_0x51e627,this[_0x59f74d(0x27f)]=_0x46d2b0,this[_0x59f74d(0x254)]=_0x4cca55,this['_init']());}[_0x3ec352(0x113)](){const _0x262a6e=_0x3ec352;this[_0x262a6e(0x1cd)](),this['_initUnhandledRejectionListener'](),this[_0x262a6e(0x121)](),this[_0x262a6e(0x26f)]();}[_0x3ec352(0x26f)](){const _0x2f8664=_0x3ec352;this[_0x2f8664(0x29b)](this[_0x2f8664(0x254)][_0x2f8664(0x139)]['subscribe'](_0xb76be9=>{const _0x3a7508=_0x2f8664;this[_0x3a7508(0x24b)]=_0xb76be9==null?void 0x0:_0xb76be9[_0x3a7508(0x24a)];}));}[_0x3ec352(0x1cd)](){const _0x41d78e=_0x3ec352,_0x938c51=_0x1fc68d=>{const _0x43353e=_0x437b;var _0xcb5ec7;this[_0x43353e(0x2c1)](_0x43353e(0x19b),_0x43353e(0x26b)+_0x1fc68d[_0x43353e(0x22d)]+_0x43353e(0x19c)+_0x1fc68d[_0x43353e(0x28a)]+':'+_0x1fc68d['lineno']+':'+_0x1fc68d[_0x43353e(0x1af)]+'\x0a'+(((_0xcb5ec7=_0x1fc68d['error'])==null?void 0x0:_0xcb5ec7[_0x43353e(0x1e5)])||''));};window[_0x41d78e(0x1f5)](_0x41d78e(0x19b),_0x938c51),this[_0x41d78e(0x29b)](()=>{const _0x2c04a6=_0x41d78e;window[_0x2c04a6(0x17c)](_0x2c04a6(0x19b),_0x938c51);});}[_0x3ec352(0x297)](){const _0x41e080=_0x3ec352,_0x22d711=_0x31a3b4=>{const _0x2926e1=_0x437b;this[_0x2926e1(0x2c1)](_0x2926e1(0x19b),_0x2926e1(0x248)+_0x31a3b4['reason']);};window[_0x41e080(0x1f5)](_0x41e080(0x1f2),_0x22d711),this[_0x41e080(0x29b)](()=>{const _0x433e85=_0x41e080;window[_0x433e85(0x17c)]('unhandledrejection',_0x22d711);});}[_0x3ec352(0x121)](){const _0x134192=_0x3ec352,_0x5ddd1e=this[_0x134192(0x27f)][_0x134192(0x19b)][_0x134192(0x1fb)](this[_0x134192(0x27f)]);this[_0x134192(0x27f)][_0x134192(0x19b)]=(..._0xd2d61e)=>{const _0x5c4111=_0x134192,_0x24b221=_0xd2d61e['map'](_0xb72582=>_0xb72582 instanceof Error?_0xb72582[_0x5c4111(0x22d)]+'\x0a'+_0xb72582[_0x5c4111(0x1e5)]:String(_0xb72582))[_0x5c4111(0x128)]('\x20');this[_0x5c4111(0x2c1)](_0x5c4111(0x19b),_0x5c4111(0x166)+_0x24b221),_0x5ddd1e(..._0xd2d61e);},this[_0x134192(0x29b)](()=>{const _0x658ab6=_0x134192;this[_0x658ab6(0x27f)][_0x658ab6(0x19b)]=_0x5ddd1e;});}[_0x3ec352(0x2c1)](_0x1d90aa,_0x53f992){const _0x507d55=_0x3ec352;try{const _0x21f31e={'userId':this[_0x507d55(0x24b)],'logLabel':_0x1d90aa,'content':_0x53f992};this['_httpService'][_0x507d55(0x2e8)](_0x507d55(0x25b),{'body':_0x21f31e})[_0x507d55(0x1aa)](()=>{});}catch{}}};le=ln([ne(0x0,_0x4c0fac(_0x241db3)),ne(0x1,_0x4c0fac(_0x90f763)),ne(0x2,_0x54cafd),ne(0x3,_0x4c0fac(_0x19842d))],le);const hn=_0x3ec352(0x140),_t={};var un=Object[_0x3ec352(0x232)],dn=(_0x3f0d62,_0x357265,_0x3153c3,_0x1367eb)=>{const _0x14619e=_0x3ec352;for(var _0x4e9e46=_0x1367eb>0x1?void 0x0:_0x1367eb?un(_0x357265,_0x3153c3):_0x357265,_0x117e71=_0x3f0d62[_0x14619e(0x2ab)]-0x1,_0x14c80a;_0x117e71>=0x0;_0x117e71--)(_0x14c80a=_0x3f0d62[_0x117e71])&&(_0x4e9e46=_0x14c80a(_0x4e9e46)||_0x4e9e46);return _0x4e9e46;},lt=(_0x3affd5,_0x57a4bb)=>(_0x490f61,_0x346b7d)=>_0x57a4bb(_0x490f61,_0x346b7d,_0x3affd5);let he=class{constructor(_0x2fba92,_0x2446bd){const _0x41e954=_0x3ec352;this['_transformService']=_0x2fba92,this[_0x41e954(0x2ec)]=_0x2446bd;}[_0x3ec352(0x273)](_0x327974){const _0x250ee0=_0x3ec352;this['_transformUndoRedoStack'](_0x327974),this[_0x250ee0(0x22e)](_0x327974);}[_0x3ec352(0x301)](_0x41fbb1){const _0x2865fa=_0x3ec352,{unitID:_0x3cfdd1}=_0x41fbb1,_0x33e25c=this[_0x2865fa(0x2ec)][_0x2865fa(0x11f)](_0x3cfdd1)['with'](_0x502bd3),{redoCache:_0x24214a}=_0x33e25c[_0x2865fa(0x1e9)]();if(_0x24214a['length']===0x0)return _0x41fbb1;let _0x80d412=_0x2aaf32[_0x2865fa(0x2d5)](_0x41fbb1[_0x2865fa(0x23b)][0x0]);for(let _0xe3ba0=0x0;_0xe3ba0<_0x24214a['length'];_0xe3ba0++){const _0x168ba4={'id':'doc.mutation.rich-text-editing','params':{..._0x24214a[_0xe3ba0]}},_0xe7f46f=this['_transformService'][_0x2865fa(0x2c2)](_0x80d412,_0x168ba4,!0x1);if(_0x50e290(_0xe7f46f))throw _0xe7f46f[_0x2865fa(0x19b)];_0x80d412=_0xe7f46f['m1Prime'];}return{..._0x2aaf32['deepClone'](_0x41fbb1),'mutations':[_0x80d412]};}[_0x3ec352(0x14b)](_0x36ed5f){const _0xe3b803=_0x3ec352,{unitID:_0x45da37}=_0x36ed5f,_0x282bbb=this[_0xe3b803(0x2ec)][_0xe3b803(0x11f)](_0x45da37)['with'](_0x502bd3),{undoCache:_0x4b86ab,redoCache:_0x5db79f}=_0x282bbb[_0xe3b803(0x1e9)]();if(_0x4b86ab['length']===0x0||_0x5db79f[_0xe3b803(0x2ab)]===0x0)return;const _0x546951=[],_0x2bd1f6=[];let _0x493ffb=_0x2aaf32['deepClone'](_0x36ed5f[_0xe3b803(0x23b)][0x0]),_0x68c65f=_0x2aaf32[_0xe3b803(0x2d5)](_0x36ed5f[_0xe3b803(0x23b)][0x0]);for(let _0x5d7200=_0x4b86ab[_0xe3b803(0x2ab)]-0x1;_0x5d7200>=0x0;_0x5d7200--){const _0x1b4173={'id':_0xe3b803(0x152),'params':{..._0x4b86ab[_0x5d7200]}},_0x4c01e1={'id':_0xe3b803(0x152),'params':{..._0x5db79f[_0x5d7200]}},_0x15d481=this[_0xe3b803(0x136)]['transformMutation'](_0x493ffb,_0x1b4173,!0x1),_0x3ee8fd=this[_0xe3b803(0x136)]['transformMutation'](_0x68c65f,_0x4c01e1,!0x1);if(_0x50e290(_0x15d481))throw _0x15d481[_0xe3b803(0x19b)];if(_0x50e290(_0x3ee8fd))throw _0x3ee8fd[_0xe3b803(0x19b)];_0x546951[_0xe3b803(0x33f)](_0x15d481['m2Prime'][_0xe3b803(0x14d)]),_0x2bd1f6[_0xe3b803(0x33f)](_0x3ee8fd['m2Prime'][_0xe3b803(0x14d)]),_0x493ffb=_0x15d481[_0xe3b803(0x2ca)],_0x68c65f=_0x3ee8fd[_0xe3b803(0x2ca)];}_0x282bbb[_0xe3b803(0x163)]({'undoCache':_0x546951,'redoCache':_0x2bd1f6});}[_0x3ec352(0x22e)](_0x2766d5){const _0x42aad1=_0x3ec352,{unitID:_0x4ed9}=_0x2766d5,_0x16a7bd=this['_renderManagerService'][_0x42aad1(0x11f)](_0x4ed9)[_0x42aad1(0x2b2)](_0x502bd3),_0x4bcd2b=_0x16a7bd['getActiveRange']();if(_0x4bcd2b==null)return;const _0x542d16=[{'id':_0x42aad1(0x152),'params':{'unitId':_0x2766d5['unitID'],'actions':null,'textRanges':[_0x4bcd2b]}}],_0x4fe615=this['_transformService'][_0x42aad1(0x1e3)](_0x2766d5,_0x542d16);if(!_0x22b4d1(_0x4fe615))throw _0x4fe615[_0x42aad1(0x19b)];const _0x5c7b7f=_0x4fe615[_0x42aad1(0x156)][0x0][_0x42aad1(0x14d)][_0x42aad1(0x263)];Array[_0x42aad1(0x16f)](_0x5c7b7f)&&_0x5c7b7f['length']&&_0x16a7bd[_0x42aad1(0x10e)](_0x5c7b7f[0x0]);}};he=dn([lt(0x0,_0x1d7b40),lt(0x1,_0x5c6014)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x3fc985,_0x9f345a,_0x4f2540,_0x3dc303)=>{const _0x12d4f6=_0x3ec352;for(var _0x5e8001=_0x3dc303>0x1?void 0x0:_0x3dc303?Sn(_0x9f345a,_0x4f2540):_0x9f345a,_0x362593=_0x3fc985[_0x12d4f6(0x2ab)]-0x1,_0x420623;_0x362593>=0x0;_0x362593--)(_0x420623=_0x3fc985[_0x362593])&&(_0x5e8001=_0x420623(_0x5e8001)||_0x5e8001);return _0x5e8001;},Le=(_0x123b94,_0x812744)=>(_0x3ea669,_0x5d6271)=>_0x812744(_0x3ea669,_0x5d6271,_0x123b94);let ue=class{constructor(_0x295dc9,_0x37d6d2,_0x20df76){const _0x43ce28=_0x3ec352;this['_injector']=_0x295dc9,this[_0x43ce28(0x136)]=_0x37d6d2,this[_0x43ce28(0x2a6)]=_0x20df76;}[_0x3ec352(0x26c)](_0x418327){const _0x7b2d07=_0x3ec352;this[_0x7b2d07(0x23e)](_0x418327);}[_0x3ec352(0x301)](_0x430d0a){const _0x587067=_0x3ec352,{unitID:_0x665a46}=_0x430d0a,{collaboration:_0xf671b7}=this[_0x587067(0x2a6)][_0x587067(0x1c7)](_0x665a46);if(_0xf671b7[_0x587067(0x2ab)]===0x0)return _0x430d0a;let _0x8f950f=_0x2aaf32[_0x587067(0x2d5)](_0x430d0a[_0x587067(0x23b)][0x0]);for(let _0x132c7a=0x0;_0x132c7a<_0xf671b7[_0x587067(0x2ab)];_0x132c7a++){const _0x4d6f44={'id':_0x587067(0x152),'params':{'unitId':_0xf671b7[_0x132c7a][_0x587067(0x191)],..._0xf671b7[_0x132c7a][_0x587067(0x2f3)]}},_0x1864f9=this['_transformService'][_0x587067(0x2c2)](_0x8f950f,_0x4d6f44,!0x1);if(_0x50e290(_0x1864f9))throw _0x1864f9['error'];_0x8f950f=_0x1864f9[_0x587067(0x2ca)];}return{..._0x2aaf32[_0x587067(0x2d5)](_0x430d0a),'mutations':[_0x8f950f]};}['_transformHistoryAndStateStack'](_0xf2fefd){const _0x36e706=_0x3ec352,{unitID:_0x48e704}=_0xf2fefd,{history:_0x14fb09,collaboration:_0x460b37}=this[_0x36e706(0x2a6)][_0x36e706(0x1c7)](_0x48e704);if(_0x14fb09[_0x36e706(0x2ab)]===0x0&&_0x460b37['length']===0x0)return;const _0x5c82a0=[],_0x1ac42e=[];let _0x221bc6=_0x2aaf32['deepClone'](_0xf2fefd[_0x36e706(0x23b)][0x0]),_0x4b6147=_0x2aaf32[_0x36e706(0x2d5)](_0xf2fefd['mutations'][0x0]);for(let _0x52cc27=_0x14fb09[_0x36e706(0x2ab)]-0x1;_0x52cc27>=0x0;_0x52cc27--){const _0x42ac67={'id':_0x36e706(0x152),'params':{'unitId':_0x14fb09[_0x52cc27][_0x36e706(0x191)],..._0x14fb09[_0x52cc27][_0x36e706(0x28c)]}},_0xcb7312={'id':_0x36e706(0x152),'params':{'unitId':_0x14fb09[_0x52cc27]['unitId'],..._0x14fb09[_0x52cc27]['redoState']}},_0x776a60=this['_transformService'][_0x36e706(0x2c2)](_0x221bc6,_0x42ac67,!0x1),_0x396521=this[_0x36e706(0x136)][_0x36e706(0x2c2)](_0x4b6147,_0xcb7312,!0x1);if(_0x50e290(_0x776a60))throw _0x776a60[_0x36e706(0x19b)];if(_0x50e290(_0x396521))throw _0x396521[_0x36e706(0x19b)];_0x5c82a0['unshift']({..._0x14fb09[_0x52cc27],'undoState':_0x776a60[_0x36e706(0x156)]['params'],'redoState':_0x396521[_0x36e706(0x156)][_0x36e706(0x14d)]}),_0x221bc6=_0x776a60[_0x36e706(0x2ca)],_0x4b6147=_0x396521[_0x36e706(0x2ca)];}_0x221bc6=_0x2aaf32[_0x36e706(0x2d5)](_0xf2fefd[_0x36e706(0x23b)][0x0]),_0x4b6147=_0x2aaf32[_0x36e706(0x2d5)](_0xf2fefd['mutations'][0x0]);for(let _0x5600c1=_0x460b37[_0x36e706(0x2ab)]-0x1;_0x5600c1>=0x0;_0x5600c1--){const _0x4863ec={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x460b37[_0x5600c1]['unitId'],..._0x460b37[_0x5600c1][_0x36e706(0x28c)]}},_0x5390ae={'id':_0x36e706(0x152),'params':{'unitId':_0x460b37[_0x5600c1][_0x36e706(0x191)],..._0x460b37[_0x5600c1][_0x36e706(0x2f3)]}},_0x14ed35=this[_0x36e706(0x136)][_0x36e706(0x2c2)](_0x221bc6,_0x4863ec,!0x1),_0x159030=this[_0x36e706(0x136)][_0x36e706(0x2c2)](_0x4b6147,_0x5390ae,!0x1);if(_0x50e290(_0x14ed35))throw _0x14ed35['error'];if(_0x50e290(_0x159030))throw _0x159030[_0x36e706(0x19b)];_0x1ac42e[_0x36e706(0x33f)]({..._0x460b37[_0x5600c1],'undoState':_0x14ed35[_0x36e706(0x156)][_0x36e706(0x14d)],'redoState':_0x159030[_0x36e706(0x156)][_0x36e706(0x14d)]}),_0x221bc6=_0x14ed35[_0x36e706(0x2ca)],_0x4b6147=_0x159030[_0x36e706(0x2ca)];}this['_docStateChangeManagerService'][_0x36e706(0x1ea)](_0x48e704,{'history':_0x5c82a0,'collaboration':_0x1ac42e});}};ue=In([Le(0x0,_0x4c0fac(_0x241db3)),Le(0x1,_0x1d7b40),Le(0x2,_0x4c0fac(_0x234a8a))],ue);var mn=Object[_0x3ec352(0x232)],fn=(_0x3f1c5a,_0x53b8b2,_0x476a84,_0xbc9a2f)=>{const _0x13985e=_0x3ec352;for(var _0x3b7de6=_0xbc9a2f>0x1?void 0x0:_0xbc9a2f?mn(_0x53b8b2,_0x476a84):_0x53b8b2,_0x162c06=_0x3f1c5a[_0x13985e(0x2ab)]-0x1,_0x54d3ae;_0x162c06>=0x0;_0x162c06--)(_0x54d3ae=_0x3f1c5a[_0x162c06])&&(_0x3b7de6=_0x54d3ae(_0x3b7de6)||_0x3b7de6);return _0x3b7de6;},ht=(_0x1f7959,_0x4be362)=>(_0x38c645,_0x5b8e54)=>_0x4be362(_0x38c645,_0x5b8e54,_0x1f7959);let de=class{constructor(_0x570dc2,_0x1c8f55){const _0x38ad47=_0x3ec352;this[_0x38ad47(0x344)]=_0x570dc2,this[_0x38ad47(0x136)]=_0x1c8f55;}[_0x3ec352(0x1a3)](_0x4f86b3){const _0x21ce6b=_0x3ec352;var _0x297c69;const _0x1555c0=this['_injector'][_0x21ce6b(0x264)](_0x2c81c4),_0xaef794=(_0x297c69=_0x1555c0['getDocRanges']())!=null?_0x297c69:[];if(_0xaef794['length']===0x0)return;const _0x5817ed=_0x4f86b3[_0x21ce6b(0x238)],_0xa6a1b0=[{'id':_0x21ce6b(0x152),'params':{'unitId':_0x5817ed,'actions':null,'textRanges':_0xaef794}}],_0x2e81bf=this[_0x21ce6b(0x136)][_0x21ce6b(0x1e3)](_0x4f86b3,_0xa6a1b0);if(!_0x22b4d1(_0x2e81bf))throw _0x2e81bf[_0x21ce6b(0x19b)];const _0x41b0e3=_0x2e81bf['m2Prime'][0x0][_0x21ce6b(0x14d)]['textRanges'];Array[_0x21ce6b(0x16f)](_0x41b0e3)&&_0x41b0e3[_0x21ce6b(0x2ab)]&&_0x1555c0[_0x21ce6b(0x33c)](_0x41b0e3,{'unitId':_0x5817ed,'subUnitId':_0x5817ed},!0x1);}};de=fn([ht(0x0,_0x4c0fac(_0x241db3)),ht(0x1,_0x1d7b40)],de);var gn=Object[_0x3ec352(0x232)],En=(_0x5c90b2,_0x353d79,_0x176ca0,_0x2fd5c8)=>{for(var _0x3ade86=_0x2fd5c8>0x1?void 0x0:_0x2fd5c8?gn(_0x353d79,_0x176ca0):_0x353d79,_0x1b4bb6=_0x5c90b2['length']-0x1,_0x208d83;_0x1b4bb6>=0x0;_0x1b4bb6--)(_0x208d83=_0x5c90b2[_0x1b4bb6])&&(_0x3ade86=_0x208d83(_0x3ade86)||_0x3ade86);return _0x3ade86;},U=(_0x2bf165,_0x575806)=>(_0x43ea91,_0x1bcd07)=>_0x575806(_0x43ea91,_0x1bcd07,_0x2bf165);let Se=class extends _0xbbfd04{constructor(_0x2d5d0e,_0x5b3525,_0x45de1d,_0x38e3ec,_0x48aab4,_0x1dd107,_0x30e74e,_0xb148de){const _0x41212f=_0x3ec352;super(),_(this,_0x41212f(0x2cd),new _0x16c712(_0xed7e82[_0x41212f(0x2a3)])),(this['_docStateChangeManagerService']=_0x2d5d0e,this[_0x41212f(0x354)]=_0x5b3525,this[_0x41212f(0x2cb)]=_0x45de1d,this[_0x41212f(0x35d)]=_0x38e3ec,this[_0x41212f(0x114)]=_0x48aab4,this[_0x41212f(0x307)]=_0x1dd107,this[_0x41212f(0x1df)]=_0x30e74e,this[_0x41212f(0x268)]=_0xb148de,this[_0x41212f(0x309)]());}[_0x3ec352(0x309)](){const _0x275bfc=_0x3ec352;this[_0x275bfc(0x29b)](this[_0x275bfc(0x354)][_0x275bfc(0x245)][_0x275bfc(0x261)](_0x50c4f0=>{const _0x3b0db3=_0x275bfc,_0x5c9e40=this[_0x3b0db3(0x2a6)][_0x3b0db3(0x295)][_0x3b0db3(0x261)](_0x5ae503=>{const _0x53e268=_0x3b0db3;if(_0x5ae503==null)return;const {unitId:_0x3697fb,redoState:_0x7e4c8f,commandId:_0xfc5027}=_0x5ae503;if(_0x3697fb!==_0x50c4f0[_0x53e268(0x238)])return;const _0x375b27={'id':_0xfc5027,'type':_0x2dbe42[_0x53e268(0x1d1)],'params':{'unitId':_0x3697fb,'actions':_0x7e4c8f['actions'],'textRanges':null}};_0x50c4f0['onLocalMutation'](_0x375b27);});if(_0x50c4f0[_0x3b0db3(0x29b)](_0x5c9e40),_0x50c4f0 instanceof _0x5aa8f0){const _0x5e186f={'onTransformIME':_0x745d56=>this[_0x3b0db3(0x2cb)][_0x3b0db3(0x273)](_0x745d56),'onTransformState':_0x212e76=>this[_0x3b0db3(0x35d)][_0x3b0db3(0x26c)](_0x212e76),'onTransformSelections':_0xf49515=>this[_0x3b0db3(0x114)]['transformSelections'](_0xf49515),'onSyncEditingCollabCursor':_0x49b33a=>this[_0x3b0db3(0x307)]['syncEditingCollabCursor'](_0x49b33a),'onTransformRemoteChangesetByIMECache':_0x3476b0=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x3476b0),'onTransformRemoteChangesetByStateCache':_0x2898ba=>this[_0x3b0db3(0x35d)][_0x3b0db3(0x301)](_0x2898ba)};_0x50c4f0[_0x3b0db3(0x29e)](_0x5e186f);}}));}};Se=En([U(0x0,_0x4c0fac(_0x234a8a)),U(0x1,_0x4c0fac(_0x55b9c2)),U(0x2,_0x4c0fac(he)),U(0x3,_0x4c0fac(ue)),U(0x4,_0x4c0fac(de)),U(0x5,_0x4c0fac(ze)),U(0x6,_0x12f42d),U(0x7,_0x4c0fac(_0x498bd0))],Se);var Z=(_0x40fd69=>(_0x40fd69[_0x40fd69['UNDEFINED']=0x0]=_0x3ec352(0x1a9),_0x40fd69[_0x40fd69['OK']=0x1]='OK',_0x40fd69[_0x40fd69[_0x3ec352(0x170)]=0x2]=_0x3ec352(0x170),_0x40fd69[_0x40fd69['PERMISSION_DENIED']=0x3]=_0x3ec352(0x20e),_0x40fd69[_0x40fd69[_0x3ec352(0x1c2)]=0x4]=_0x3ec352(0x1c2),_0x40fd69[_0x40fd69['UNAUTHENTICATED']=0x5]=_0x3ec352(0x25e),_0x40fd69[_0x40fd69[_0x3ec352(0x1ae)]=0x6]='ALREADY_EXISTS',_0x40fd69[_0x40fd69[_0x3ec352(0x16e)]=0x7]='INVALID_ARGUMENT',_0x40fd69[_0x40fd69['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x40fd69[_0x40fd69[_0x3ec352(0x32a)]=0x9]=_0x3ec352(0x32a),_0x40fd69[_0x40fd69[_0x3ec352(0x18f)]=0xa]=_0x3ec352(0x18f),_0x40fd69[_0x40fd69['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x40fd69[_0x40fd69[_0x3ec352(0x1fe)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x40fd69[_0x40fd69[_0x3ec352(0x2dd)]=0xd]=_0x3ec352(0x2dd),_0x40fd69[_0x40fd69[_0x3ec352(0x162)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x40fd69[_0x40fd69[_0x3ec352(0x2f0)]=0xf]=_0x3ec352(0x2f0),_0x40fd69[_0x40fd69[_0x3ec352(0x1d5)]=0x10]=_0x3ec352(0x1d5),_0x40fd69[_0x40fd69[_0x3ec352(0x125)]=0x64]=_0x3ec352(0x125),_0x40fd69[_0x40fd69[_0x3ec352(0x155)]=0x65]=_0x3ec352(0x155),_0x40fd69[_0x40fd69[_0x3ec352(0x160)]=0xc9]=_0x3ec352(0x160),_0x40fd69[_0x40fd69['USER_IS_ANONYMOUS']=0xca]=_0x3ec352(0x12b),_0x40fd69[_0x40fd69[_0x3ec352(0x137)]=0x1389]=_0x3ec352(0x137),_0x40fd69[_0x40fd69[_0x3ec352(0x317)]=0x1771]=_0x3ec352(0x317),_0x40fd69[_0x40fd69[_0x3ec352(0x277)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x40fd69[_0x40fd69[_0x3ec352(0x337)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x40fd69[_0x40fd69[_0x3ec352(0x2c5)]=0x1b59]='APPLY_REJECT',_0x40fd69[_0x40fd69['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x3ec352(0x30a),_0x40fd69[_0x40fd69[_0x3ec352(0x22f)]=0x1b5b]=_0x3ec352(0x22f),_0x40fd69[_0x40fd69[_0x3ec352(0x343)]=0x1b5c]=_0x3ec352(0x343),_0x40fd69[_0x40fd69[_0x3ec352(0x150)]=0x1b5d]=_0x3ec352(0x150),_0x40fd69[_0x40fd69[_0x3ec352(0x12e)]=0x1f41]=_0x3ec352(0x12e),_0x40fd69[_0x40fd69[_0x3ec352(0x230)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x40fd69[_0x40fd69[_0x3ec352(0x151)]=0x232a]=_0x3ec352(0x151),_0x40fd69[_0x40fd69['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x3ec352(0x1a5),_0x40fd69[_0x40fd69[_0x3ec352(0x16b)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x40fd69[_0x40fd69['LICENSE_DISTRO_REJECTED']=0x232d]=_0x3ec352(0x255),_0x40fd69[_0x40fd69[_0x3ec352(0x14c)]=0x2711]=_0x3ec352(0x14c),_0x40fd69[_0x40fd69[_0x3ec352(0x2b9)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x40fd69[_0x40fd69[_0x3ec352(0x333)]=0x2713]=_0x3ec352(0x333),_0x40fd69[_0x40fd69[_0x3ec352(0x258)]=0x2714]=_0x3ec352(0x258),_0x40fd69[_0x40fd69[_0x3ec352(0x345)]=0x271a]=_0x3ec352(0x345),_0x40fd69[_0x40fd69[_0x3ec352(0x282)]=0x271b]=_0x3ec352(0x282),_0x40fd69[_0x40fd69['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x3ec352(0x20f),_0x40fd69[_0x40fd69[_0x3ec352(0x2eb)]=0x271d]=_0x3ec352(0x2eb),_0x40fd69[_0x40fd69[_0x3ec352(0x1f4)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x40fd69[_0x40fd69['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0x40fd69[_0x40fd69[_0x3ec352(0x1c4)]=0x2720]=_0x3ec352(0x1c4),_0x40fd69[_0x40fd69[_0x3ec352(0x145)]=0x2af9]=_0x3ec352(0x145),_0x40fd69[_0x40fd69[_0x3ec352(0x117)]=0x2ee1]=_0x3ec352(0x117),_0x40fd69[_0x40fd69[_0x3ec352(0x147)]=0x2ee2]=_0x3ec352(0x147),_0x40fd69[_0x40fd69[_0x3ec352(0x133)]=0x2ee3]=_0x3ec352(0x133),_0x40fd69[_0x40fd69[_0x3ec352(0x209)]=0x2ee4]=_0x3ec352(0x209),_0x40fd69[_0x40fd69[_0x3ec352(0x10a)]=0x2ee5]=_0x3ec352(0x10a),_0x40fd69[_0x40fd69[_0x3ec352(0x306)]=0x32c9]=_0x3ec352(0x306),_0x40fd69[_0x40fd69[_0x3ec352(0x2fb)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x40fd69[_0x40fd69['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x3ec352(0x1bd),_0x40fd69[_0x40fd69[_0x3ec352(0x13b)]=0x36b1]=_0x3ec352(0x13b),_0x40fd69[_0x40fd69[_0x3ec352(0x110)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x40fd69[_0x40fd69['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x40fd69[_0x40fd69[_0x3ec352(0x10f)]=0x36b4]=_0x3ec352(0x10f),_0x40fd69[_0x40fd69['ENTITLE_INVALID_COUPON_CODE']=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x40fd69[_0x40fd69['ENTITLE_COUPON_EXPIRED']=0x36b6]=_0x3ec352(0x2d9),_0x40fd69[_0x40fd69[_0x3ec352(0x1fc)]=0x36b7]=_0x3ec352(0x1fc),_0x40fd69[_0x40fd69[_0x3ec352(0x324)]=0x36b8]=_0x3ec352(0x324),_0x40fd69[_0x40fd69['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x40fd69[_0x40fd69['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x3ec352(0x2ff),_0x40fd69[_0x40fd69[_0x3ec352(0x19e)]=0x3717]=_0x3ec352(0x19e),_0x40fd69[_0x40fd69['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x40fd69[_0x40fd69[_0x3ec352(0x123)]=0x3a99]=_0x3ec352(0x123),_0x40fd69[_0x40fd69['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x3ec352(0x243),_0x40fd69[_0x40fd69[_0x3ec352(0x1c0)]=0x3a9b]=_0x3ec352(0x1c0),_0x40fd69[_0x40fd69[_0x3ec352(0x2bb)]=0x3a9c]=_0x3ec352(0x2bb),_0x40fd69[_0x40fd69['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x3ec352(0x32e),_0x40fd69[_0x40fd69[_0x3ec352(0x185)]=0x3a9e]=_0x3ec352(0x185),_0x40fd69[_0x40fd69[_0x3ec352(0x275)]=0x3a9f]=_0x3ec352(0x275),_0x40fd69[_0x40fd69[_0x3ec352(0x1f9)]=0x3e81]=_0x3ec352(0x1f9),_0x40fd69[_0x40fd69[_0x3ec352(0x146)]=-0x1]=_0x3ec352(0x146),_0x40fd69))(Z||{});function vn(_0x52eaf3){const _0x1275f3=_0x3ec352;var _0x464cc8,_0x26ff56;const _0x13faf4=(_0x464cc8=_0x52eaf3[_0x1275f3(0x1f1)])==null?void 0x0:_0x464cc8['stage'],_0x529577=((_0x26ff56=_0x52eaf3[_0x1275f3(0x1f1)])==null?void 0x0:_0x26ff56[_0x1275f3(0x2dc)])||0x0;return _0x13faf4===_0x27c50c[_0x1275f3(0x1ec)]&&_0x529577>0x0;}function pn(_0x1463e3){const _0x40bb70=_0x3ec352;return _0x1463e3[_0x40bb70(0x1b9)]===_0x290d6f['SUCCESS'];}var On=Object[_0x3ec352(0x232)],Tn=(_0x3a12d4,_0x1ca3d8,_0x22591b,_0x8f6f47)=>{const _0x4bdd47=_0x3ec352;for(var _0x426852=_0x8f6f47>0x1?void 0x0:_0x8f6f47?On(_0x1ca3d8,_0x22591b):_0x1ca3d8,_0x411a3b=_0x3a12d4[_0x4bdd47(0x2ab)]-0x1,_0x114ea6;_0x411a3b>=0x0;_0x411a3b--)(_0x114ea6=_0x3a12d4[_0x411a3b])&&(_0x426852=_0x114ea6(_0x426852)||_0x426852);return _0x426852;},P=(_0x4977db,_0x243d75)=>(_0x1dc6a7,_0x2722c9)=>_0x243d75(_0x1dc6a7,_0x2722c9,_0x4977db);const Cn=_0x3ec352(0x336),Rn=_0x3ec352(0x284),Dn=_0x3ec352(0x218);let Ie=class extends _0xbbfd04{constructor(_0x29bc55,_0xdbca3e,_0x36bef3,_0x3a13d0,_0x4be349,_0x5e251e,_0x66a8dd){const _0x45e801=_0x3ec352;super(),_(this,_0x45e801(0x28f),null),_(this,_0x45e801(0x132),0x0),_(this,'_currentUsage',0x0),_(this,'_taskIds',[]),_(this,_0x45e801(0x34a),0x0),(this[_0x45e801(0x1df)]=_0x29bc55,this[_0x45e801(0x24e)]=_0xdbca3e,this[_0x45e801(0x157)]=_0x36bef3,this[_0x45e801(0x21d)]=_0x3a13d0,this[_0x45e801(0x334)]=_0x4be349,this[_0x45e801(0x27f)]=_0x5e251e,this[_0x45e801(0x268)]=_0x66a8dd,this[_0x45e801(0x290)]());}[_0x3ec352(0x290)](){const _0xaf05b=_0x3ec352;this[_0xaf05b(0x29b)](this[_0xaf05b(0x24e)][_0xaf05b(0x1ab)]((_0x584c5d,_0x2a4114)=>{const _0x44dcf3=_0xaf05b;var _0x136886;if(_0x584c5d['id']!==_0x27aca5['id'])return;const _0x36437e=_0x584c5d[_0x44dcf3(0x14d)];if(!this[_0x44dcf3(0x28b)]((_0x136886=_0x36437e[_0x44dcf3(0x154)])!=null?_0x136886:[]))return;if(!this[_0x44dcf3(0x1f3)]())throw this['_checkAndWaitForCalculationPermission'](_0x584c5d,_0x2a4114),this[_0x44dcf3(0x202)](),new _0x3316fd();})),this[_0xaf05b(0x29b)](this[_0xaf05b(0x24e)][_0xaf05b(0x1c1)]((_0x2d5fe3,_0x26219f)=>{const _0x6173a3=_0xaf05b;if(_0x2d5fe3['id']!==_0x1bfb73['id'])return;const _0x42da30=_0x2d5fe3[_0x6173a3(0x14d)];if(vn(_0x42da30)){const _0x4e5b38=_0x1f3cf5();this[_0x6173a3(0x2bf)][_0x6173a3(0x2c7)](_0x4e5b38),this[_0x6173a3(0x220)](_0x4e5b38);}else{if(pn(_0x42da30)&&this[_0x6173a3(0x2bf)]['length']>0x0){const _0x3d4c8c=this['_taskIds'][_0x6173a3(0x2ce)]();this[_0x6173a3(0x197)](_0x3d4c8c);}}}));}[_0x3ec352(0x22c)](){const _0x5f152f=_0x3ec352;super[_0x5f152f(0x22c)](),this[_0x5f152f(0x193)](),this['_taskIds']=[],this[_0x5f152f(0x33e)]=0x0,this[_0x5f152f(0x132)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x3ec352(0x326)](_0x1d1aee,_0x127a98){const _0x3fa590=_0x3ec352;for(let _0x70d0aa=0x0;_0x70d0aa<0x1e;_0x70d0aa++)try{if(await this['_getFormulaLimitStatus'](),this[_0x3fa590(0x1f3)]()){this[_0x3fa590(0x2e1)](_0x1d1aee,_0x127a98),this['_messageService'][_0x3fa590(0x1d9)]({'content':this['_localeService']['t'](_0x3fa590(0x325)),'type':_0x5187ea[_0x3fa590(0x17b)]});return;}await new Promise(_0x2efc2a=>{const _0x28cabb=_0x3fa590;this[_0x28cabb(0x28f)]=window[_0x28cabb(0x167)](_0x2efc2a,0x3e8);});}catch(_0x7a6425){this[_0x3fa590(0x27f)][_0x3fa590(0x19b)](_0x7a6425);}this[_0x3fa590(0x1df)]['show']({'content':this['_localeService']['t'](_0x3fa590(0x1c5)),'type':_0x5187ea[_0x3fa590(0x12c)]});}['_applyCommand'](_0x258b44,_0x1f7d05){const _0x13d1f2=_0x3ec352;try{this['_commandService']['executeCommand'](_0x258b44['id'],_0x258b44[_0x13d1f2(0x14d)],_0x1f7d05);}catch(_0x192f75){this['_logService'][_0x13d1f2(0x19b)](_0x192f75);}}['_setFormulaLimitStatus'](_0x17e76e,_0x121013){const _0x8a6b01=_0x3ec352;_0x121013<this[_0x8a6b01(0x34a)]||(this[_0x8a6b01(0x34a)]=_0x121013,this[_0x8a6b01(0x132)]=Number['parseInt'](_0x17e76e[_0x8a6b01(0x246)]),this[_0x8a6b01(0x33e)]=Number['parseInt'](_0x17e76e['currentUsage']));}async[_0x3ec352(0x220)](_0x593a9b){const _0x1f5a73=_0x3ec352;var _0x4a92d3,_0x6bf7d;const _0x421460=Date[_0x1f5a73(0x1bb)]();try{const _0x142429=((_0x4a92d3=this[_0x1f5a73(0x157)]['getConfig'](_0x2fa9c5))==null?void 0x0:_0x4a92d3[_0x1f5a73(0x31d)])||Rn,_0xc83e46=(await this[_0x1f5a73(0x21d)][_0x1f5a73(0x2e8)](_0x142429,{'body':JSON['stringify']({'taskId':_0x593a9b})}))['body'];if(((_0x6bf7d=_0xc83e46[_0x1f5a73(0x19b)])==null?void 0x0:_0x6bf7d[_0x1f5a73(0x27e)])!==Z['OK'])return;this[_0x1f5a73(0x1d4)](_0xc83e46[_0x1f5a73(0x12f)],_0x421460);}catch(_0x20f19b){this[_0x1f5a73(0x27f)][_0x1f5a73(0x19b)](_0x20f19b);}}async[_0x3ec352(0x267)](_0x2608c3){const _0x281302=_0x3ec352;var _0x51b098,_0x36b185;const _0x496bca=Date['now']();try{const _0x3d1392=((_0x51b098=this[_0x281302(0x157)][_0x281302(0x1d8)](_0x2fa9c5))==null?void 0x0:_0x51b098[_0x281302(0x204)])||Cn,_0x4977fc=_0x2608c3?_0x3d1392+_0x281302(0x265)+encodeURIComponent(_0x2608c3):_0x3d1392,_0x47f6a0=(await this['_httpService'][_0x281302(0x264)](_0x4977fc))[_0x281302(0x2a0)];if(((_0x36b185=_0x47f6a0[_0x281302(0x19b)])==null?void 0x0:_0x36b185[_0x281302(0x27e)])!==Z['OK'])return;this[_0x281302(0x1d4)](_0x47f6a0['limitInfo'],_0x496bca);}catch(_0x27bf11){this[_0x281302(0x27f)][_0x281302(0x19b)](_0x27bf11);}}async['_releaseCalculationLimit'](_0x14340f){const _0x4c2e8b=_0x3ec352;var _0x57e764,_0x329e8a;const _0x46330b=Date['now']();try{const _0x8a1b50=((_0x57e764=this[_0x4c2e8b(0x157)][_0x4c2e8b(0x1d8)](_0x2fa9c5))==null?void 0x0:_0x57e764['releaseFormulaLimitUrl'])||Dn,_0x349e48=(await this[_0x4c2e8b(0x21d)][_0x4c2e8b(0x2e8)](_0x8a1b50,{'body':JSON[_0x4c2e8b(0x28d)]({'taskId':_0x14340f})}))['body'];if(((_0x329e8a=_0x349e48[_0x4c2e8b(0x19b)])==null?void 0x0:_0x329e8a[_0x4c2e8b(0x27e)])!==Z['OK'])return;this[_0x4c2e8b(0x1d4)](_0x349e48[_0x4c2e8b(0x12f)],_0x46330b);}catch(_0x1a9f5b){this[_0x4c2e8b(0x27f)][_0x4c2e8b(0x19b)](_0x1a9f5b);}}[_0x3ec352(0x1f3)](){const _0x5e8152=_0x3ec352;return this[_0x5e8152(0x132)]===0x0?!0x0:this[_0x5e8152(0x132)]-this['_currentUsage']>0x0;}['_clearPolling'](){const _0x5dc0c7=_0x3ec352;this[_0x5dc0c7(0x28f)]&&(clearTimeout(this[_0x5dc0c7(0x28f)]),this[_0x5dc0c7(0x28f)]=null);}[_0x3ec352(0x202)](){const _0x1a20e1=_0x3ec352;this[_0x1a20e1(0x1df)][_0x1a20e1(0x1d9)]({'content':this[_0x1a20e1(0x268)]['t'](_0x1a20e1(0x1ac)),'type':_0x5187ea['Loading']});}[_0x3ec352(0x28b)](_0x4fae1a){const _0x1b69e0=_0x3ec352;for(const _0x396cc9 of _0x4fae1a){const {unitId:_0x4658d8,sheetId:_0x4f7196,range:_0x52408d}=_0x396cc9,_0x8c3659=this[_0x1b69e0(0x334)]['getUnit'](_0x4658d8);if(!_0x8c3659)continue;const _0x4986d3=_0x8c3659[_0x1b69e0(0x20b)](_0x4f7196);if(!_0x4986d3)continue;const _0x40177a=_0x4986d3['getCellMatrix']();for(let _0xacc61e=_0x52408d['startRow'];_0xacc61e<=_0x52408d[_0x1b69e0(0x288)];_0xacc61e++)for(let _0x3d65c3=_0x52408d['startColumn'];_0x3d65c3<=_0x52408d[_0x1b69e0(0x20a)];_0x3d65c3++){const _0x4f2406=_0x40177a['getValue'](_0xacc61e,_0x3d65c3);if(_0x4f2406&&(_0x1136c8(_0x4f2406['f'])||_0x50cc37(_0x4f2406['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x4c0fac(_0x12f42d)),P(0x1,_0x234cad),P(0x2,_0x305bbd),P(0x3,_0x4c0fac(_0x90f763)),P(0x4,_0x5bb534),P(0x5,_0x54cafd),P(0x6,_0x4c0fac(_0x498bd0))],Ie);var Nn=Object[_0x3ec352(0x232)],bn=(_0x41b1f6,_0x230ae9,_0x44b963,_0x324a02)=>{const _0x40aaab=_0x3ec352;for(var _0x219fac=_0x324a02>0x1?void 0x0:_0x324a02?Nn(_0x230ae9,_0x44b963):_0x230ae9,_0x552917=_0x41b1f6[_0x40aaab(0x2ab)]-0x1,_0x5c0f9b;_0x552917>=0x0;_0x552917--)(_0x5c0f9b=_0x41b1f6[_0x552917])&&(_0x219fac=_0x5c0f9b(_0x219fac)||_0x219fac);return _0x219fac;},Ue=(_0x355a61,_0x1dee74)=>(_0x5eb698,_0x32f2d0)=>_0x1dee74(_0x5eb698,_0x32f2d0,_0x355a61);function _0x437b(_0x485937,_0x3ce060){_0x485937=_0x485937-0x109;const _0x25ec54=_0x25ec();let _0x437bda=_0x25ec54[_0x485937];return _0x437bda;}let He=class extends _0xbbfd04{constructor(_0x1d91ea,_0x5b46b1,_0x35f56b){const _0x135d4b=_0x3ec352;super(),_(this,_0x135d4b(0x1ee),new Map()),_(this,'_saveTaskMap',new Map()),_(this,'_disabled',!0x1),(this[_0x135d4b(0x157)]=_0x1d91ea,this[_0x135d4b(0x18b)]=_0x5b46b1,this[_0x135d4b(0x17d)]=_0x35f56b);}['disableLocalCache'](){const _0x4cc504=_0x3ec352;this[_0x4cc504(0x135)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get[_0x3ec352(0x2b5)](){const _0x420850=_0x3ec352;return this[_0x420850(0x169)];}['dispose'](){const _0x5c9dcf=_0x3ec352;this[_0x5c9dcf(0x2fe)]()[_0x5c9dcf(0x28e)](()=>super['dispose']());}async[_0x3ec352(0x29a)](_0xf9ba17){const _0x99df8=_0x3ec352;return this['_disabled']?null:this[_0x99df8(0x18b)][_0x99df8(0x126)](_0x4cf3d4(_0xf9ba17));}async[_0x3ec352(0x129)](_0x5e257a,_0x4031e1){const _0x8071b9=_0x3ec352;return!!this[_0x8071b9(0x18b)][_0x8071b9(0x2ef)](_0x5e257a,_0x4031e1);}[_0x3ec352(0x141)](_0x90a1e0,_0x132b28,_0x2d334a,_0x277067){const _0x5c6102=_0x3ec352,_0x1bdd4b=this[_0x5c6102(0x17d)][_0x5c6102(0x35c)](_0x90a1e0);this[_0x5c6102(0x1ee)][_0x5c6102(0x1a7)](_0x90a1e0,{'unitID':_0x90a1e0,'type':_0x132b28,'awaitingChangeset':_0x2d334a,'mutations':_0x277067,'rev':_0x1bdd4b}),this[_0x5c6102(0x169)][_0x5c6102(0x177)](_0x90a1e0)||this[_0x5c6102(0x194)](_0x90a1e0);}[_0x3ec352(0x194)](_0x15541b){const _0x13d6ee=_0x3ec352,_0x43cb76=this[_0x13d6ee(0x226)]();_0x43cb76===0x0?this[_0x13d6ee(0x2f5)](_0x15541b):this[_0x13d6ee(0x169)][_0x13d6ee(0x1a7)](_0x15541b,setTimeout(()=>this[_0x13d6ee(0x2f5)](_0x15541b),_0x43cb76));}[_0x3ec352(0x226)](){const _0x2c8b1a=_0x3ec352;var _0x506226;return(_0x506226=this[_0x2c8b1a(0x157)][_0x2c8b1a(0x1d8)](_0xb0b56))!=null?_0x506226:_0x161007;}[_0x3ec352(0x2f5)](_0x22343a){const _0x11adaf=_0x3ec352,_0x4c53d2=this[_0x11adaf(0x169)][_0x11adaf(0x264)](_0x22343a);return _0x4c53d2!==void 0x0&&window['clearTimeout'](_0x4c53d2),this[_0x11adaf(0x18b)]['setItem'](_0x4cf3d4(_0x22343a),this[_0x11adaf(0x1ee)][_0x11adaf(0x264)](_0x22343a))[_0x11adaf(0x28e)](()=>this['_saveTaskMap'][_0x11adaf(0x278)](_0x22343a));}async['exhaustSavingTask'](){const _0x26a2e4=_0x3ec352,_0x250b2f=[];this['_saveTaskMap']['forEach']((_0x226f57,_0x50c3ae)=>{const _0x526280=_0x437b;window[_0x526280(0x2e9)](_0x226f57),_0x250b2f['push'](this[_0x526280(0x2f5)](_0x50c3ae)[_0x526280(0x28e)](()=>{const _0x10f71d=_0x526280;this[_0x10f71d(0x169)][_0x10f71d(0x278)](_0x50c3ae);}));}),await Promise[_0x26a2e4(0x159)](_0x250b2f);}};He=bn([Ue(0x0,_0x305bbd),Ue(0x1,_0x465dbb),Ue(0x2,_0x4c0fac(_0x409ba3))],He);class Ln extends _0x4e9bf2{constructor(){const _0x44160b=_0x3ec352;super(),_(this,_0x44160b(0x1e7)),this[_0x44160b(0x1e7)]=_0x27f9ea(window,'popstate')[_0x44160b(0x1cf)](_0x451ca1(this[_0x44160b(0x24c)]),_0x504a7c(0x1),_0x13be9d(void 0x0));}['setParam'](_0x172ce7,_0x485a49,_0x1a8f97=!0x1){const _0xa722dd=_0x3ec352,_0x2156db=new URL(window[_0xa722dd(0x143)][_0xa722dd(0x1d3)]);_0x2156db['searchParams'][_0xa722dd(0x1a7)](_0x172ce7,_0x485a49),_0x1a8f97?window[_0xa722dd(0x23a)]['replaceState']('','',_0x2156db[_0xa722dd(0x118)]()):window[_0xa722dd(0x23a)]['pushState']('','',_0x2156db['toString']());}['removeParam'](_0x204cb2,_0x545108=!0x1){const _0x497734=_0x3ec352,_0x3ede6b=new URL(window['location'][_0x497734(0x1d3)]);_0x3ede6b['searchParams'][_0x497734(0x278)](_0x204cb2),_0x545108?window[_0x497734(0x23a)][_0x497734(0x239)]('','',_0x3ede6b[_0x497734(0x118)]()):window['history']['pushState']('','',_0x3ede6b[_0x497734(0x118)]());}[_0x3ec352(0x2c4)](_0x520c21){const _0x2d1ea7=_0x3ec352;var _0x303fbd;return(_0x303fbd=new URL(window[_0x2d1ea7(0x143)][_0x2d1ea7(0x1d3)])[_0x2d1ea7(0x355)][_0x2d1ea7(0x264)](_0x520c21))!=null?_0x303fbd:void 0x0;}}var Un=Object[_0x3ec352(0x16d)],Mn=Object[_0x3ec352(0x232)],An=(_0x1afb1b,_0x5577ad,_0x2117fe)=>_0x5577ad in _0x1afb1b?Un(_0x1afb1b,_0x5577ad,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2117fe}):_0x1afb1b[_0x5577ad]=_0x2117fe,Pn=(_0x214f6,_0x23cce3,_0x229e5a,_0x22c003)=>{const _0x5da74f=_0x3ec352;for(var _0x189337=_0x22c003>0x1?void 0x0:_0x22c003?Mn(_0x23cce3,_0x229e5a):_0x23cce3,_0x1ea1cb=_0x214f6[_0x5da74f(0x2ab)]-0x1,_0x33458a;_0x1ea1cb>=0x0;_0x1ea1cb--)(_0x33458a=_0x214f6[_0x1ea1cb])&&(_0x189337=_0x33458a(_0x189337)||_0x189337);return _0x189337;},Me=(_0x6bd5a2,_0x3b47a8)=>(_0x20b9f1,_0x435ada)=>_0x3b47a8(_0x20b9f1,_0x435ada,_0x6bd5a2),wn=(_0x4427a0,_0x367d4a,_0x55672b)=>An(_0x4427a0,_0x367d4a+'',_0x55672b);const yn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ye=class extends _0x5d525e{constructor(_0x4d35b7=_t,_0x3f06b8,_0x41875e,_0x4b65d5){const _0x211de3=_0x3ec352;super(),this['_config']=_0x4d35b7,this[_0x211de3(0x2ec)]=_0x3f06b8,this[_0x211de3(0x344)]=_0x41875e,this['_configService']=_0x4b65d5;const {..._0x38c01d}=_0x286f03({},_t,this[_0x211de3(0x2a1)]);this[_0x211de3(0x157)]['setConfig'](hn,_0x38c01d);}['onStarting'](){const _0x3ec21c=_0x3ec352;this[_0x3ec21c(0x2b3)](),this['_initDependencies']();}['onRendered'](){this['_registerRenderDependencies']();}[_0x3ec352(0x2b3)](){const _0x2bf03b=_0x3ec352;var _0x20b50b;const _0x49ef4b=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x3c33c4,{'useClass':_0x5d4b34}],[_0x223ca0,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x2bf03b(0x2a1)][_0x2bf03b(0x1b8)]&&_0x49ef4b['push']([le]),_0x5ffac1(this[_0x2bf03b(0x344)],_0x25bca4(_0x49ef4b,(_0x20b50b=this[_0x2bf03b(0x2a1)])==null?void 0x0:_0x20b50b['override']));}['_registerRenderDependencies'](){const _0xf9e988=_0x3ec352;this[_0xf9e988(0x29b)](this[_0xf9e988(0x2ec)][_0xf9e988(0x30c)](_0x560022[_0xf9e988(0x272)],[Fe])),this[_0xf9e988(0x29b)](this[_0xf9e988(0x2ec)]['registerRenderModule'](_0x560022[_0xf9e988(0x33b)],[ke]));}['_initDependencies'](){const _0x313329=_0x3ec352;_0x2983e0(this[_0x313329(0x344)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x313329(0x2a1)][_0x313329(0x1b8)]&&_0x2983e0(this[_0x313329(0x344)],[[le]]);}};wn(Ye,_0x3ec352(0x2bc),yn),Ye=Pn([_0x584864(_0x303e23),Me(0x1,_0x5c6014),Me(0x2,_0x4c0fac(_0x241db3)),Me(0x3,_0x305bbd)],Ye);var $n=Object[_0x3ec352(0x232)],xn=(_0x1b63fa,_0x34161a,_0x524dee,_0x1ddbcf)=>{const _0x37bd0b=_0x3ec352;for(var _0x484cc7=_0x1ddbcf>0x1?void 0x0:_0x1ddbcf?$n(_0x34161a,_0x524dee):_0x34161a,_0x5bbcfa=_0x1b63fa[_0x37bd0b(0x2ab)]-0x1,_0x19f6c8;_0x5bbcfa>=0x0;_0x5bbcfa--)(_0x19f6c8=_0x1b63fa[_0x5bbcfa])&&(_0x484cc7=_0x19f6c8(_0x484cc7)||_0x484cc7);return _0x484cc7;},J=(_0x46c391,_0x2e7d78)=>(_0x276aab,_0x2467df)=>_0x2e7d78(_0x276aab,_0x2467df,_0x46c391);let ut=class extends _0xf24f53{constructor(_0x32acee,_0x3af245,_0x5db671,_0x585904,_0x98102a){super(_0x32acee,_0x3af245,_0x5db671,_0x585904,_0x98102a);}async['createSocket'](_0x5da39b){const _0x56617d=await this['_getSessionTicket'](),_0x1f6418=this['_createSocketURL'](_0x5da39b,_0x56617d);return this['_doCreateSocket'](_0x1f6418);}[_0x3ec352(0x251)](_0x270b4e,_0x59e8ed){const _0x20dbd9=_0x3ec352,_0x2b1438=typeof window>'u'?new URL(_0x270b4e):new URL(_0x270b4e,window['location'][_0x20dbd9(0x240)]);_0x2b1438[_0x20dbd9(0x355)][_0x20dbd9(0x1a7)](_0x20dbd9(0x2ee),_0x59e8ed);const _0x3a858b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x20dbd9(0x143)][_0x20dbd9(0x2a4)]);return _0x3a858b[_0x20dbd9(0x264)](_0x20dbd9(0x148))&&_0x2b1438['searchParams'][_0x20dbd9(0x1a7)]('runId',_0x3a858b['get'](_0x20dbd9(0x148))),_0x2b1438[_0x20dbd9(0x118)]();}async['_getSessionTicket'](){const _0x1a7529=_0x3ec352;var _0x5dab59,_0xce5feb,_0x3e955c;const _0x1a3816=this['_configService']['getConfig'](_0x2fa9c5),_0x5b15c2=(_0x5dab59=_0x1a3816==null?void 0x0:_0x1a3816[_0x1a7529(0x1c6)])!=null?_0x5dab59:_0x66e85b;return(_0x3e955c=(_0xce5feb=(await this[_0x1a7529(0x21d)][_0x1a7529(0x264)](_0x5b15c2,{'headers':{'Content-Type':_0x1a7529(0x23f)}}))['body'])==null?void 0x0:_0xce5feb[_0x1a7529(0x1b1)])!=null?_0x3e955c:'';}};ut=xn([J(0x0,_0x4c0fac(_0x241db3)),J(0x1,_0x4c0fac(_0x90f763)),J(0x2,_0x305bbd),J(0x3,_0x54cafd),J(0x4,_0x4a8570)],ut);var Bn=Object[_0x3ec352(0x232)],Fn=(_0x241b06,_0x273f93,_0x58489f,_0x569842)=>{const _0x2957f1=_0x3ec352;for(var _0x9b55dd=_0x569842>0x1?void 0x0:_0x569842?Bn(_0x273f93,_0x58489f):_0x273f93,_0x302ef8=_0x241b06[_0x2957f1(0x2ab)]-0x1,_0x5d7f2f;_0x302ef8>=0x0;_0x302ef8--)(_0x5d7f2f=_0x241b06[_0x302ef8])&&(_0x9b55dd=_0x5d7f2f(_0x9b55dd)||_0x9b55dd);return _0x9b55dd;},Ae=(_0x843cfa,_0xa27608)=>(_0x5a7a80,_0x4c6f08)=>_0xa27608(_0x5a7a80,_0x4c6f08,_0x843cfa);let dt=class extends _0xbbfd04{constructor(_0x58fbf7,_0x57e5ab,_0x1018fc){const _0xaed001=_0x3ec352;super(),this[_0xaed001(0x178)]=_0x58fbf7,this['_httpService']=_0x57e5ab,this[_0xaed001(0x157)]=_0x1018fc;}async['runOnServer'](_0x34c391,_0x5f3066,_0x331855,..._0x4b84ab){const _0x176872=_0x3ec352;var _0xe95614,_0x58c324,_0x538813,_0x3c4705;const _0x5b376f=this[_0x176872(0x178)][_0x176872(0x274)]();if(!_0x5b376f)throw new Error(_0x176872(0x10d));const _0x2ad66a=((_0xe95614=this[_0x176872(0x157)]['getConfig'](_0x5c50fc))!=null?_0xe95614:_0x38e1dc)+'/'+_0x34c391+_0x176872(0x10c)+_0x5f3066,_0x4ecc75=new URL(window[_0x176872(0x143)][_0x176872(0x1d3)]),_0x1b4d0d={'scriptId':_0x34c391,'runId':(_0x58c324=_0x4ecc75['searchParams'][_0x176872(0x264)](_0x176872(0x148)))!=null?_0x58c324:'','function':_0x5f3066,'unitId':_0x5b376f[_0x176872(0x15c)](),'argsOfFunction':JSON[_0x176872(0x28d)](_0x4b84ab),'invokeId':(_0x538813=_0x331855[_0x176872(0x32b)])!=null?_0x538813:'','executionId':(_0x3c4705=_0x331855[_0x176872(0x2f8)])!=null?_0x3c4705:''};try{const _0x3e45ec=await this[_0x176872(0x21d)]['post'](_0x2ad66a,{'body':_0x1b4d0d});return _0x3e45ec[_0x176872(0x2a0)]['error']&&_0x3e45ec[_0x176872(0x2a0)]['error'][_0x176872(0x27e)]!==Z['OK']?_0x176872(0x19d):_0x3e45ec[_0x176872(0x2a0)][_0x176872(0x359)];}catch{return _0x176872(0x19d);}}};dt=Fn([Ae(0x0,_0x5bb534),Ae(0x1,_0x4c0fac(_0x90f763)),Ae(0x2,_0x305bbd)],dt);const St=0x7530,It=_0x3ec352(0x30f);class rr extends _0xbbfd04{constructor(){const _0x35e61e=_0x3ec352;super(),_(this,_0x35e61e(0x175),_0x1f3cf5()),_(this,_0x35e61e(0x207),new Set()),_(this,_0x35e61e(0x237),new Map()),_(this,_0x35e61e(0x269),null),_(this,_0x35e61e(0x231),new Map()),_(this,'_unitStatus',new Map()),this['_init']();}[_0x3ec352(0x22c)](){const _0x2ebc81=_0x3ec352;super['dispose'](),this[_0x2ebc81(0x231)][_0x2ebc81(0x2af)]((_0x21ac7c,_0x5f2219)=>this['_removeClearOtherTimer'](_0x5f2219)),this[_0x2ebc81(0x269)]&&window[_0x2ebc81(0x1be)](this[_0x2ebc81(0x269)]);}[_0x3ec352(0x223)](_0x4cfe0d){const _0x271f9c=_0x3ec352;return this[_0x271f9c(0x242)](_0x4cfe0d)['pipe'](_0xb831());}[_0x3ec352(0x2a2)](_0x26f37b){const _0x337dbe=_0x3ec352;this['_selfUnitIDs'][_0x337dbe(0x310)]===0x0&&this[_0x337dbe(0x1a1)](),this[_0x337dbe(0x207)][_0x337dbe(0x338)](_0x26f37b),this[_0x337dbe(0x319)]({'type':0x0,'memberID':this[_0x337dbe(0x175)],'unitIDs':[_0x26f37b],'isForwarded':!0x1});}[_0x3ec352(0x115)](_0x48145a){const _0xb95d82=_0x3ec352;this[_0xb95d82(0x207)][_0xb95d82(0x278)](_0x48145a),this[_0xb95d82(0x207)][_0xb95d82(0x310)]===0x0&&this[_0xb95d82(0x269)]&&window[_0xb95d82(0x1be)](this[_0xb95d82(0x269)]);}[_0x3ec352(0x113)](){const _0x3cb49a=_0x3ec352;this[_0x3cb49a(0x29b)](_0x2c5ac1(_0x27f9ea(window,_0x3cb49a(0x276))[_0x3cb49a(0x261)](_0x1a7ba3=>{const _0x2a2e32=_0x3cb49a;if(_0x1a7ba3[_0x2a2e32(0x122)]!==It||!_0x1a7ba3[_0x2a2e32(0x25c)])return;const _0x3c11cf=JSON[_0x2a2e32(0x34d)](_0x1a7ba3[_0x2a2e32(0x25c)]);this['_handleEvent'](_0x3c11cf);}))),window[_0x3cb49a(0x1f5)](_0x3cb49a(0x217),()=>this[_0x3cb49a(0x319)]({'type':0x1,'memberID':this[_0x3cb49a(0x175)],'unitIDs':Array[_0x3cb49a(0x1a4)](this[_0x3cb49a(0x207)])}));}[_0x3ec352(0x1f6)](_0x1d7125){const _0x83de07=_0x3ec352;switch(_0x1d7125[_0x83de07(0x35e)]){case 0x0:this[_0x83de07(0x262)](_0x1d7125);break;case 0x1:this[_0x83de07(0x1b0)](_0x1d7125);break;case 0x2:this[_0x83de07(0x2d1)](_0x1d7125);break;}}['_handleJoinEvent'](_0x36d367){const _0xd4943e=_0x3ec352,{unitIDs:_0x6d406a,memberID:_0x1be3c5,isForwarded:_0x150d7f}=_0x36d367;_0x6d406a[_0xd4943e(0x2af)](_0x1675fa=>{const _0x276704=_0xd4943e;if(!_0x150d7f&&this[_0x276704(0x237)][_0x276704(0x177)](_0x1675fa)&&this[_0x276704(0x242)](_0x1675fa)[_0x276704(0x32d)](_0x5c1bd0['OTHER_CLIENTS_EDITING']),!this['_unitOnClients'][_0x276704(0x177)](_0x1675fa)||!this['_unitOnClients']['get'](_0x1675fa)[_0x276704(0x177)](_0x1be3c5)){const _0x3e1e9a=this[_0x276704(0x237)][_0x276704(0x264)](_0x1675fa)||new Set();_0x3e1e9a['add'](_0x1be3c5),this[_0x276704(0x237)]['set'](_0x1675fa,_0x3e1e9a),this['_scheduleClearOtherTimer'](_0x1be3c5);}}),_0x150d7f||this[_0xd4943e(0x319)]({'type':0x0,'memberID':this[_0xd4943e(0x175)],'unitIDs':[...this[_0xd4943e(0x207)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x6e1240){const _0x5d0e0d=_0x3ec352;this[_0x5d0e0d(0x1f0)](_0x6e1240);const _0x487078=window[_0x5d0e0d(0x167)](()=>{const _0x449cff=_0x5d0e0d;this['_unitOnClients'][_0x449cff(0x2af)](_0x2ca13c=>{const _0x28f588=_0x449cff;_0x2ca13c[_0x28f588(0x278)](_0x6e1240);});},St*0x2);this[_0x5d0e0d(0x231)][_0x5d0e0d(0x1a7)](_0x6e1240,_0x487078);}[_0x3ec352(0x1f0)](_0x3ff7de){const _0x4bd5e4=_0x3ec352;if(this[_0x4bd5e4(0x231)][_0x4bd5e4(0x177)](_0x3ff7de)){const _0x431656=this[_0x4bd5e4(0x231)][_0x4bd5e4(0x264)](_0x3ff7de);_0x431656&&window[_0x4bd5e4(0x2e9)](_0x431656),this[_0x4bd5e4(0x231)]['set'](_0x3ff7de,null);}}[_0x3ec352(0x1b0)](_0x43ec3b){const _0x25cb2a=_0x3ec352,{memberID:_0x457535,unitIDs:_0xc7a95f}=_0x43ec3b;_0xc7a95f[_0x25cb2a(0x2af)](_0x357326=>{const _0xbee4ff=_0x25cb2a;var _0xf9ec68;const _0x3564b6=this[_0xbee4ff(0x237)][_0xbee4ff(0x264)](_0x357326);_0x3564b6&&(_0x3564b6['delete'](_0x457535),(_0xf9ec68=this[_0xbee4ff(0x242)](_0x357326))==null||_0xf9ec68[_0xbee4ff(0x32d)](_0x3564b6[_0xbee4ff(0x310)]===0x0?_0x5c1bd0['NO_OTHER_CLIENTS_EDITING']:_0x5c1bd0[_0xbee4ff(0x21a)]));}),this[_0x25cb2a(0x1f0)](_0x457535);}[_0x3ec352(0x2d1)](_0x49f12c){const _0x7fa9b=_0x3ec352;this[_0x7fa9b(0x2cf)](_0x49f12c[_0x7fa9b(0x24a)]);}['_send'](_0x4fdabd){const _0x242c38=_0x3ec352;localStorage[_0x242c38(0x2ef)](It,JSON[_0x242c38(0x28d)](_0x4fdabd));}[_0x3ec352(0x1a1)](){const _0x500938=_0x3ec352;this[_0x500938(0x269)]=window[_0x500938(0x20c)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},St);}[_0x3ec352(0x242)](_0x21837f){const _0x37c692=_0x3ec352;return this[_0x37c692(0x1c3)][_0x37c692(0x177)](_0x21837f)||this[_0x37c692(0x1c3)][_0x37c692(0x1a7)](_0x21837f,new _0x16c712(_0x5c1bd0[_0x37c692(0x291)])),this[_0x37c692(0x1c3)][_0x37c692(0x264)](_0x21837f);}}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 _0x3a7433=_0x474c;(function(_0x31ecc5,_0x29a4e1){const _0x5c2927=_0x474c,_0x30c1ec=_0x31ecc5();while(!![]){try{const _0x3efce8=-parseInt(_0x5c2927(0x21d))/0x1+parseInt(_0x5c2927(0x1d1))/0x2*(parseInt(_0x5c2927(0x40a))/0x3)+-parseInt(_0x5c2927(0x33f))/0x4+parseInt(_0x5c2927(0x310))/0x5+-parseInt(_0x5c2927(0x312))/0x6*(-parseInt(_0x5c2927(0x367))/0x7)+parseInt(_0x5c2927(0x3ae))/0x8*(-parseInt(_0x5c2927(0x3ee))/0x9)+-parseInt(_0x5c2927(0x20a))/0xa*(-parseInt(_0x5c2927(0x263))/0xb);if(_0x3efce8===_0x29a4e1)break;else _0x30c1ec['push'](_0x30c1ec['shift']());}catch(_0x2bc07a){_0x30c1ec['push'](_0x30c1ec['shift']());}}}(_0x4974,0x978d4));var Yt=Object[_0x3a7433(0x286)],Wt=(_0x351edb,_0x336963,_0x20b96d)=>_0x336963 in _0x351edb?Yt(_0x351edb,_0x336963,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20b96d}):_0x351edb[_0x336963]=_0x20b96d,_=(_0x423b39,_0x194b1f,_0x498383)=>Wt(_0x423b39,typeof _0x194b1f!=_0x3a7433(0x1c2)?_0x194b1f+'':_0x194b1f,_0x498383);import{jsx as _0x6d53f8,jsxs as _0x1a4fef}from'react/jsx-runtime';import{CollaborationStatus as _0x578bc7,CollaborationSessionService as _0x33dafd,CollaborationController as _0x4c101c,DataLoaderService as _0x26e739,MemberService as _0xba6281,SessionStatus as _0xa37934,ILocalCacheService as _0x3d14fc,CollaborationUIEventService as _0x5d3b6b,CollaborationUIEventId as _0xb775dc,DocCollaborationEntity as _0x30a98e,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3f2cb9,getLocalCacheKey as _0x1f06b2,LOCAL_CACHE_INTERVAL as _0x3051c8,LOCAL_CACHE_INTERVAL_KEY as _0x4f98ba,UniverCollaborationClientPlugin as _0x3d7acc,CollaborationSocketService as _0x33b5a6,DEFAULT_WS_SESSION_TICKET_URL as _0x151348,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x4d0e9a,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x26483f,UnitStatus as _0x218817}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x5875ca,IUniverInstanceService as _0x1cf763,Inject as _0x27384c,Injector as _0x546954,Disposable as _0x1c0642,createIdentifier as _0x408afa,ILogService as _0x2e91cd,ICommandService as _0x23b771,Optional as _0x122559,RxDisposable as _0x572f10,Workbook as _0x500951,DOC_RANGE_TYPE as _0x1de649,debounce as _0x44a666,Rectangle as _0x385ece,DisposableCollection as _0x57736b,toDisposable as _0x157525,UniverInstanceType as _0x36653e,generateRandomId as _0x3f0ee8,COLORS as _0x164b29,ColorKit as _0x3be8fa,ThemeService as _0x54d291,fromEventSubject as _0x58d8c3,Tools as _0x144735,CommandType as _0x5ab7c5,IConfigService as _0x574df3,CanceledError as _0x853b6b,isFormulaString as _0x5b7c7b,isFormulaId as _0x433ef4,ILocalStorageService as _0x32ff2a,DependentOn as _0x11ccda,Plugin as _0x50392c,merge as _0x266c93,registerDependencies as _0x1de876,mergeOverrideWithDependencies as _0x2fb84b,touchDependencies as _0x1fe50a}from'@univerjs/core';import{useObservable as _0x1f71ea,useDependency as _0x10b267,IUIPartsService as _0x2f02ad,BuiltInUIPart as _0x21ee09,connectInjector as _0x25edc7,IBeforeCloseService as _0x18dba0,IMessageService as _0x52022d,INotificationService as _0x7f620d}from'@univerjs/ui';import{BehaviorSubject as _0x29de4b,switchMap as _0x232519,of as _0x44fc3f,takeUntil as _0x7b7810,debounceTime as _0x1d53b6,Subject as _0x4b5f78,filter as _0x3c21b3,merge as _0x26d8bd,combineLatest as _0x3f4d03,fromEvent as _0x57cde1,shareReplay as _0xe65cb8,mapTo as _0x2a23d6,distinctUntilChanged as _0x55e285}from'rxjs';import{Tooltip as _0x4ee450,clsx as _0x66ea2b,MessageType as _0x5e610d}from'@univerjs/design';import{useRef as _0x7e8e76,createElement as _0x531fb2,forwardRef as _0x46c57a,useCallback as _0x570daa}from'react';import{IRemoteInstanceService as _0x1d1879}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x22929c,RefRangeService as _0xc89b4,SetSelectionsOperation as _0x2bb3a5,SheetsSelectionsService as _0xd281b6,EffectRefRangId as _0x5bfdab,handleIRemoveRow as _0xdffde2,handleIRemoveCol as _0x5cb489,handleMoveRange as _0x158e95,handleInsertRow as _0x3599ed,handleInsertRangeMoveRight as _0x121378,handleInsertRangeMoveDown as _0x50e396,handleInsertCol as _0x1dc9ed,handleDeleteRangeMoveUp as _0x3406ca,handleDeleteRangeMoveLeft as _0x2ad0c0,runRefRangeMutations as _0x5b3708}from'@univerjs/sheets';import{Shape as _0x2a2a66,Rect as _0x4dfe17,getColor as _0x25acc8,RegularPolygon as _0x5b22a5,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x309312,Vector2 as _0x4aee94,SHEET_VIEWPORT_KEY as _0x5d3294,IRenderManagerService as _0x47acbb}from'@univerjs/engine-render';function _0x474c(_0x1dc195,_0xd3c14){_0x1dc195=_0x1dc195-0x1b0;const _0x4974a6=_0x4974();let _0x474c6c=_0x4974a6[_0x1dc195];return _0x474c6c;}import{HTTPService as _0x37faeb,ISocketService as _0x2a889b,WebSocketService as _0x3f3140}from'@univerjs/network';import{IDocClipboardService as _0x2ce0c2,NodePositionConvertToCursor as _0x388172,NodePositionConvertToRectRange as _0x2166fb,TEXT_RANGE_LAYER_INDEX as _0x3e1dcd,SetDocZoomRatioOperation as _0x49f1f4,DocIMEInputManagerService as _0x12d831,DocStateChangeManagerService as _0x391aa1}from'@univerjs/docs-ui';import{IImageIoService as _0x3f9245}from'@univerjs/drawing';import{ITransformService as _0x3417ba,CollaborationEvent as _0x5b6d00,isTransformMutationFailure as _0x28a191,isTransformMutationsWithChangesetSuccess as _0x4d115f,RevisionService as _0x4a7a7a,ISnapshotServerService as _0x12f3e4}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x470c0a,RichTextEditingMutation as _0x8475e8,DocSelectionManagerService as _0x1ba78b,DocSkeletonManagerService as _0xf10ffb}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x30bdea,serializeRangeWithSheet as _0x1473d8,FormulaExecuteStageType as _0x5ee1af,FormulaExecutedStateType as _0x3f1c63,SetFormulaCalculationStartMutation as _0x54c579,SetFormulaCalculationNotificationMutation as _0x8e2626}from'@univerjs/engine-formula';import{map as _0x4024aa,filter as _0x3c1d7f,throttleTime as _0x33ced3,takeUntil as _0x45dbd4,switchMap as _0x174e30}from'rxjs/operators';import{SheetSkeletonManagerService as _0x3e00d6,getCoordByCell as _0x3ba7ce,getSheetObject as _0xbc8dbe}from'@univerjs/sheets-ui';function Ge({ref:_0x40de29,..._0x270ccb}){const _0x1cb29e=_0x3a7433,{icon:_0x22c1fe,id:_0x502de2,className:_0x15db24,extend:_0x1d9023,..._0x3c860d}=_0x270ccb,_0x2631b5=(_0x1cb29e(0x2da)+_0x502de2+'\x20'+(_0x15db24||''))['trim'](),_0x29cbd0=_0x7e8e76('_'+vi());return At(_0x22c1fe,''+_0x502de2,{'defIds':_0x22c1fe[_0x1cb29e(0x309)],'idSuffix':_0x29cbd0[_0x1cb29e(0x1cc)]},{'ref':_0x40de29,'className':_0x2631b5,..._0x3c860d},_0x1d9023);}function At(_0x4dd798,_0x4038a2,_0x27933b,_0x2f7073,_0x2350f6){const _0x3b148d=_0x3a7433;return _0x531fb2(_0x4dd798[_0x3b148d(0x267)],{'key':_0x4038a2,...gi(_0x4dd798,_0x27933b,_0x2350f6),..._0x2f7073},(Ei(_0x4dd798,_0x27933b)[_0x3b148d(0x1db)]||[])[_0x3b148d(0x3d1)]((_0x41e642,_0x567391)=>At(_0x41e642,_0x4038a2+'-'+_0x4dd798[_0x3b148d(0x267)]+'-'+_0x567391,_0x27933b,void 0x0,_0x2350f6)));}function gi(_0x27f024,_0x1a2220,_0x4baf6c){const _0x42be27=_0x3a7433,_0x218318={..._0x27f024['attrs']};_0x4baf6c!=null&&_0x4baf6c[_0x42be27(0x35b)]&&_0x218318[_0x42be27(0x37b)]==='colorChannel1'&&(_0x218318[_0x42be27(0x37b)]=_0x4baf6c['colorChannel1']),_0x27f024[_0x42be27(0x267)]===_0x42be27(0x270)&&_0x218318['id']&&(_0x218318['id']=_0x218318['id']+_0x1a2220[_0x42be27(0x1e7)]),Object[_0x42be27(0x2d2)](_0x218318)[_0x42be27(0x2eb)](([_0x4f47d1,_0x5db70c])=>{const _0x2782a5=_0x42be27;_0x4f47d1==='mask'&&typeof _0x5db70c=='string'&&(_0x218318[_0x4f47d1]=_0x5db70c[_0x2782a5(0x3e0)](/url\(#(.*)\)/,_0x2782a5(0x29a)+_0x1a2220['idSuffix']+')'));});const {defIds:_0x490446}=_0x1a2220;return!_0x490446||_0x490446[_0x42be27(0x34d)]===0x0||(_0x27f024['tag']===_0x42be27(0x2f1)&&_0x218318[_0x42be27(0x277)]&&(_0x218318['xlink:href']=_0x218318[_0x42be27(0x277)]+_0x1a2220['idSuffix']),Object[_0x42be27(0x2d2)](_0x218318)[_0x42be27(0x2eb)](([_0x1d82e3,_0x446180])=>{const _0xe972d8=_0x42be27;typeof _0x446180==_0xe972d8(0x2cb)&&(_0x218318[_0x1d82e3]=_0x446180[_0xe972d8(0x3e0)](/url\(#(.*)\)/,_0xe972d8(0x29a)+_0x1a2220[_0xe972d8(0x1e7)]+')'));})),_0x218318;}function Ei(_0x155e7e,_0x2cbe14){const _0x29da84=_0x3a7433;var _0x484f67;const {defIds:_0x408109}=_0x2cbe14;return!_0x408109||_0x408109[_0x29da84(0x34d)]===0x0?_0x155e7e:_0x155e7e[_0x29da84(0x267)]==='defs'&&((_0x484f67=_0x155e7e[_0x29da84(0x1db)])!=null&&_0x484f67[_0x29da84(0x34d)])?{..._0x155e7e,'children':_0x155e7e[_0x29da84(0x1db)]['map'](_0x258ec2=>typeof _0x258ec2[_0x29da84(0x33e)]['id']==_0x29da84(0x2cb)&&_0x408109&&_0x408109[_0x29da84(0x2f2)](_0x258ec2[_0x29da84(0x33e)]['id'])?{..._0x258ec2,'attrs':{..._0x258ec2['attrs'],'id':_0x258ec2[_0x29da84(0x33e)]['id']+_0x2cbe14[_0x29da84(0x1e7)]}}:_0x258ec2)}:_0x155e7e;}function vi(){const _0x41fd42=_0x3a7433;return Math[_0x41fd42(0x1bd)]()[_0x41fd42(0x2ff)](0x24)['substring'](0x2,0x8);}Ge[_0x3a7433(0x35e)]=_0x3a7433(0x350);const pi={'tag':_0x3a7433(0x2b1),'attrs':{'xmlns':_0x3a7433(0x3f5),'fill':_0x3a7433(0x27f),'viewBox':'0\x200\x2016\x2016','width':_0x3a7433(0x1c3),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x3a7433(0x2f7),'attrs':{'stroke':_0x3a7433(0x3d8),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x3a7433(0x220),'strokeLinejoin':_0x3a7433(0x220),'strokeWidth':1.2}}]},{'tag':_0x3a7433(0x208),'attrs':{},'children':[{'tag':_0x3a7433(0x256),'attrs':{'id':_0x3a7433(0x39a)},'children':[{'tag':_0x3a7433(0x2f7),'attrs':{'fill':_0x3a7433(0x31d),'d':_0x3a7433(0x2b7)}}]}]}],'defIds':[_0x3a7433(0x39a)]},Pt=_0x46c57a(function(_0x17f15e,_0x57db71){const _0x3468ff=_0x3a7433;return _0x531fb2(Ge,Object[_0x3468ff(0x3de)]({},_0x17f15e,{'id':_0x3468ff(0x34c),'ref':_0x57db71,'icon':pi}));});Pt[_0x3a7433(0x35e)]=_0x3a7433(0x2e0);const Oi={'tag':_0x3a7433(0x2b1),'attrs':{'xmlns':_0x3a7433(0x3f5),'fill':_0x3a7433(0x27f),'viewBox':_0x3a7433(0x29f),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3a7433(0x35a)},'children':[{'tag':_0x3a7433(0x2f7),'attrs':{'stroke':_0x3a7433(0x3d8),'d':_0x3a7433(0x3dc),'strokeLinecap':_0x3a7433(0x220),'strokeLinejoin':_0x3a7433(0x220),'strokeWidth':1.2}}]},{'tag':_0x3a7433(0x208),'attrs':{},'children':[{'tag':_0x3a7433(0x256),'attrs':{'id':_0x3a7433(0x36c)},'children':[{'tag':'path','attrs':{'fill':_0x3a7433(0x31d),'d':_0x3a7433(0x2b7),'transform':_0x3a7433(0x329)}}]}]}],'defIds':[_0x3a7433(0x36c)]},wt=_0x46c57a(function(_0x853d28,_0x4556fa){const _0x46bbf0=_0x3a7433;return _0x531fb2(Ge,Object[_0x46bbf0(0x3de)]({},_0x853d28,{'id':_0x46bbf0(0x24e),'ref':_0x4556fa,'icon':Oi}));});wt[_0x3a7433(0x35e)]=_0x3a7433(0x3a4);function Ti(_0xc8bff5){const _0x5b8ff4=_0x3a7433;switch(_0xc8bff5){case _0x578bc7[_0x5b8ff4(0x33d)]:return _0x5b8ff4(0x1dc);case _0x578bc7[_0x5b8ff4(0x218)]:return _0x5b8ff4(0x3e1);case _0x578bc7[_0x5b8ff4(0x2a6)]:return'collabStatus.fetchMiss';case _0x578bc7['NOT_COLLAB']:return'collabStatus.notCollab';case _0x578bc7[_0x5b8ff4(0x1f1)]:case _0x578bc7[_0x5b8ff4(0x380)]:return _0x5b8ff4(0x28e);case _0x578bc7[_0x5b8ff4(0x32f)]:case _0x578bc7[_0x5b8ff4(0x23f)]:return _0x5b8ff4(0x3ea);}}function Ci(_0x3efdff){const _0x27b4df=_0x3a7433,{status$:_0x4caa7e}=_0x3efdff,_0x359093=_0x1f71ea(_0x4caa7e,_0x578bc7[_0x27b4df(0x402)]),_0x113f84=_0x10b267(_0x5875ca),_0x4be5cc=_0x10b267(_0x33dafd),_0x3b4f31=_0x359093!==_0x578bc7['OFFLINE'],_0x106361=_0x113f84['t'](Ti(_0x359093)),_0x4a7352=_0x3b4f31?_0x6d53f8(wt,{}):_0x6d53f8(Pt,{}),_0x4ca55a=_0x570daa(()=>{const _0x344568=_0x27b4df;_0x3b4f31||_0x4be5cc[_0x344568(0x2f9)]();},[_0x3b4f31,_0x4be5cc]);function _0x422991(){const _0x2c1686=_0x27b4df;return _0x1a4fef(_0x2c1686(0x31a),{'className':_0x2c1686(0x3bd),'onClick':_0x4ca55a,'children':[_0x6d53f8('div',{'className':_0x66ea2b(_0x2c1686(0x1e6),{'univer-text-green-500':_0x3b4f31,'univer-text-red-500':!_0x3b4f31}),'children':_0x4a7352}),_0x6d53f8(_0x2c1686(0x31a),{'className':_0x2c1686(0x3aa),'children':_0x106361})]});}return _0x3b4f31?_0x422991():_0x6d53f8(_0x4ee450,{'title':_0x113f84['t'](_0x27b4df(0x222)),'children':_0x422991()});}var Ri=Object[_0x3a7433(0x210)],Di=(_0x4c027a,_0x3f74ba,_0x368a5c,_0x2fbb78)=>{for(var _0x241233=_0x2fbb78>0x1?void 0x0:_0x2fbb78?Ri(_0x3f74ba,_0x368a5c):_0x3f74ba,_0x23edef=_0x4c027a['length']-0x1,_0x338fc5;_0x23edef>=0x0;_0x23edef--)(_0x338fc5=_0x4c027a[_0x23edef])&&(_0x241233=_0x338fc5(_0x241233)||_0x241233);return _0x241233;},se=(_0x3c5707,_0x22d4db)=>(_0x59402e,_0x34b3ac)=>_0x22d4db(_0x59402e,_0x34b3ac,_0x3c5707);let ae=class extends _0x1c0642{constructor(_0x1e18ab,_0x4a2026,_0x536dfd,_0x5bfad6){const _0x4567e3=_0x3a7433;super(),_(this,_0x4567e3(0x1b3),new _0x29de4b(_0x578bc7[_0x4567e3(0x402)])),(this[_0x4567e3(0x2a4)]=_0x1e18ab,this[_0x4567e3(0x1cb)]=_0x4a2026,this[_0x4567e3(0x3d6)]=_0x536dfd,this[_0x4567e3(0x360)]=_0x5bfad6,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x3a7433(0x201)](){const _0x4dda16=_0x3a7433;this[_0x4dda16(0x3f9)](this['_univerInstanceService']['focused$']['pipe'](_0x232519(()=>{const _0x2cd7c3=_0x4dda16,_0x39f207=this[_0x2cd7c3(0x2a4)][_0x2cd7c3(0x381)]();return _0x39f207?this['_collaborationController'][_0x2cd7c3(0x39c)](_0x39f207['getUnitId']()):_0x44fc3f(null);}),_0x232519(_0x18a261=>_0x18a261?_0x18a261[_0x4dda16(0x1e3)]:_0x44fc3f(_0x578bc7[_0x4dda16(0x402)])))[_0x4dda16(0x395)](_0x3f38de=>{const _0x3bb4eb=_0x4dda16;this[_0x3bb4eb(0x1b3)][_0x3bb4eb(0x293)](_0x3f38de);}));}[_0x3a7433(0x2d9)](){const _0x2b2dfc=_0x3a7433;this[_0x2b2dfc(0x3f9)](this['_uiPartsService'][_0x2b2dfc(0x250)](_0x21ee09[_0x2b2dfc(0x203)],()=>_0x25edc7(Ni({'status$':this[_0x2b2dfc(0x1b3)][_0x2b2dfc(0x2b6)]()}),this['_injector'])));}};ae=Di([se(0x0,_0x1cf763),se(0x1,_0x27384c(_0x546954)),se(0x2,_0x27384c(_0x4c101c)),se(0x3,_0x2f02ad)],ae);function Ni(_0x2aeee6){const {status$:_0x39b265}=_0x2aeee6;return function(){return _0x6d53f8(Ci,{'status$':_0x39b265});};}const yt=_0x408afa(_0x3a7433(0x3b9));var bi=Object['getOwnPropertyDescriptor'],Li=(_0x3d1ef6,_0x374185,_0x3644a2,_0x3ebc91)=>{const _0x3ab024=_0x3a7433;for(var _0x852e99=_0x3ebc91>0x1?void 0x0:_0x3ebc91?bi(_0x374185,_0x3644a2):_0x374185,_0x2b3f6e=_0x3d1ef6[_0x3ab024(0x34d)]-0x1,_0x27650b;_0x2b3f6e>=0x0;_0x2b3f6e--)(_0x27650b=_0x3d1ef6[_0x2b3f6e])&&(_0x852e99=_0x27650b(_0x852e99)||_0x852e99);return _0x852e99;},K=(_0x3fee85,_0x117069)=>(_0x1df073,_0x220106)=>_0x117069(_0x1df073,_0x220106,_0x3fee85);let ce=class extends _0x572f10{constructor(_0x545fa0,_0x33eac9,_0x437cc7,_0xda0e21,_0x185b87){const _0x207803=_0x3a7433;super(),this['_urlService']=_0x545fa0,this[_0x207803(0x2ed)]=_0x33eac9,this[_0x207803(0x212)]=_0x437cc7,this[_0x207803(0x1f5)]=_0xda0e21,_0x185b87?_0x185b87==null||_0x185b87[_0x207803(0x2d3)]()[_0x207803(0x22f)](()=>this[_0x207803(0x20b)]()):(this[_0x207803(0x2ed)]['debug'](_0x207803(0x336),_0x207803(0x2df)),this[_0x207803(0x20b)]());}async[_0x3a7433(0x20b)](){const _0x1575d8=_0x3a7433,_0x4c5359=this[_0x1575d8(0x3c0)][_0x1575d8(0x2bd)](_0x1575d8(0x304)),_0x428307=this[_0x1575d8(0x3c0)][_0x1575d8(0x2bd)](_0x1575d8(0x409)),_0x278bbc=this[_0x1575d8(0x3c0)][_0x1575d8(0x2bd)](_0x1575d8(0x254));if(!_0x4c5359||!_0x428307){this[_0x1575d8(0x2ed)][_0x1575d8(0x230)]('[CollaborationDataLoaderController]',_0x1575d8(0x274));return;}const _0x1e9afb=await this[_0x1575d8(0x1f5)][_0x1575d8(0x3d9)](_0x4c5359,Number(_0x428307),_0x278bbc);_0x1e9afb&&_0x1e9afb instanceof _0x500951&&this[_0x1575d8(0x231)](_0x1e9afb);}async[_0x3a7433(0x231)](_0x5afa60){const _0x2f22e4=_0x3a7433;await this[_0x2f22e4(0x216)](_0x5afa60),_0x5afa60[_0x2f22e4(0x2fc)][_0x2f22e4(0x368)](_0x7b7810(this['dispose$']))[_0x2f22e4(0x395)](_0x49b36d=>{_0x49b36d&&this['_updateURLWithCurrentState'](_0x49b36d);}),this[_0x2f22e4(0x3c0)][_0x2f22e4(0x29b)]['pipe'](_0x7b7810(this[_0x2f22e4(0x34e)]))[_0x2f22e4(0x395)](()=>this['_updateSubUnitFromURLParams'](_0x5afa60));}[_0x3a7433(0x285)](_0x3a7bb8,_0x34d7b4=!0x1){const _0x4b1d9a=_0x3a7433,_0x18edfd=this[_0x4b1d9a(0x3c0)][_0x4b1d9a(0x2bd)]('subunit');_0x3a7bb8['getSheetId']()!==_0x18edfd&&this['_urlService'][_0x4b1d9a(0x3b8)]('subunit',_0x3a7bb8['getSheetId'](),_0x34d7b4);}async[_0x3a7433(0x216)](_0x1f923e){const _0x35dac8=_0x3a7433;var _0x2c9f00;const _0x197700=this[_0x35dac8(0x3c0)][_0x35dac8(0x2bd)](_0x35dac8(0x254));if(!_0x197700||!_0x1f923e['getSheetBySheetId'](_0x197700)){const _0x38ee1e=_0x1f923e[_0x35dac8(0x2c2)]()[0x0],_0x4feb09=_0x1f923e[_0x35dac8(0x202)](_0x38ee1e);if(!_0x4feb09)return;this[_0x35dac8(0x285)](_0x4feb09,!0x0),await this['_commandService'][_0x35dac8(0x2e3)](_0x22929c['id'],{'unitId':_0x1f923e[_0x35dac8(0x385)](),'subUnitId':_0x38ee1e});return;}((_0x2c9f00=_0x1f923e[_0x35dac8(0x3e9)]())==null?void 0x0:_0x2c9f00['getSheetId']())!==_0x197700&&await this[_0x35dac8(0x212)][_0x35dac8(0x2e3)](_0x22929c['id'],{'unitId':_0x1f923e[_0x35dac8(0x385)](),'subUnitId':_0x197700});}};ce=Li([K(0x0,yt),K(0x1,_0x2e91cd),K(0x2,_0x23b771),K(0x3,_0x27384c(_0x26e739)),K(0x4,_0x122559(_0x1d1879))],ce);var Ui=Object['getOwnPropertyDescriptor'],Mi=(_0x4909bd,_0x5db3d0,_0x263ca8,_0x204f1a)=>{for(var _0xa6ada5=_0x204f1a>0x1?void 0x0:_0x204f1a?Ui(_0x5db3d0,_0x263ca8):_0x5db3d0,_0x1196dc=_0x4909bd['length']-0x1,_0x40ed16;_0x1196dc>=0x0;_0x1196dc--)(_0x40ed16=_0x4909bd[_0x1196dc])&&(_0xa6ada5=_0x40ed16(_0xa6ada5)||_0xa6ada5);return _0xa6ada5;},rt=(_0x2de3df,_0x409783)=>(_0x299e7c,_0x578ab6)=>_0x409783(_0x299e7c,_0x578ab6,_0x2de3df);let $e=class extends _0x572f10{constructor(_0x50af5f,_0x4974d1){const _0x3ec9b1=_0x3a7433;super(),this['_docClipboardService']=_0x50af5f,this[_0x3ec9b1(0x3da)]=_0x4974d1,this[_0x3ec9b1(0x20b)]();}['_init'](){const _0x46a8e6=_0x3a7433,_0x418c18=this;this['disposeWithMe'](this['_docClipboardService'][_0x46a8e6(0x2d4)]({'onBeforePasteImage':async _0x57e9cf=>{const _0x23bc30=_0x46a8e6,_0x251919=await _0x418c18[_0x23bc30(0x3da)]['saveImage'](_0x57e9cf);return _0x251919?{'source':_0x251919['source'],'imageSourceType':_0x251919['imageSourceType']}:null;}}));}};$e=Mi([rt(0x0,_0x2ce0c2),rt(0x1,_0x3f9245)],$e);const ot=[_0x3a7433(0x366),_0x3a7433(0x305),_0x3a7433(0x2e6),_0x3a7433(0x345),_0x3a7433(0x32a),_0x3a7433(0x1e2)];class Ke extends _0x1c0642{constructor(){const _0x1a1f92=_0x3a7433;super(...arguments),_(this,_0x1a1f92(0x2e4),new Map()),_(this,_0x1a1f92(0x1d7),0x0);}['assignAColorForMemberID'](_0x26f042){const _0x5a6d92=_0x3a7433;if(this['_assignedColors'][_0x5a6d92(0x35f)](_0x26f042))return this[_0x5a6d92(0x2e4)][_0x5a6d92(0x359)](_0x26f042);const _0x4b48d6=ot[this[_0x5a6d92(0x1d7)]];return this['_colorIndex']=(this[_0x5a6d92(0x1d7)]+0x1)%ot[_0x5a6d92(0x34d)],this[_0x5a6d92(0x2e4)][_0x5a6d92(0x1bf)](_0x26f042,_0x4b48d6),_0x4b48d6;}}function $t(_0x4b7926){const _0x4b31e5=_0x3a7433;let _0x39344b='';for(const _0xb35768 of _0x4b7926){const {startOffset:_0x3052c1,endOffset:_0x53836d,isActive:_0x20649f,rangeType:_0x4a0579,segmentId:_0x44c751,segmentPage:_0xb7df9e}=_0xb35768;_0x39344b[_0x4b31e5(0x34d)]&&(_0x39344b+=','),_0x39344b+=_0x3052c1+':'+_0x53836d+':'+(_0x20649f?'1':'0')+':'+_0x4a0579+':'+_0x44c751+':'+_0xb7df9e;}return _0x39344b;}function Ai(_0xc8e1e4){const _0x430ab5=_0x3a7433,_0x5defc3=_0xc8e1e4[_0x430ab5(0x27b)](','),_0x20d507=[];for(const _0x461b5e of _0x5defc3){const [_0x206cb7,_0x102ff0,_0x42ca84,_0x5a15ff,_0x54ba96,_0x3a3c77]=_0x461b5e[_0x430ab5(0x27b)](':');_0x20d507['push']({'startOffset':Number(_0x206cb7),'endOffset':Number(_0x102ff0),'collapsed':_0x206cb7===_0x102ff0,'isActive':_0x42ca84==='1','rangeType':_0x5a15ff===_0x1de649[_0x430ab5(0x398)]?_0x1de649[_0x430ab5(0x398)]:_0x1de649[_0x430ab5(0x1b7)],'segmentId':typeof _0x54ba96==_0x430ab5(0x2cb)?String(_0x54ba96):'','segmentPage':Number(_0x3a3c77!=null?_0x3a3c77:-0x1)});}return _0x20d507[_0x430ab5(0x33c)](_0x40299b=>_0x40299b[_0x430ab5(0x365)])||(_0x20d507[0x0]['isActive']=!0x0),_0x20d507;}class ze extends _0x572f10{constructor(){const _0x3b77ac=_0x3a7433;super(...arguments),_(this,_0x3b77ac(0x3ca),new _0x29de4b(null)),_(this,_0x3b77ac(0x353),this[_0x3b77ac(0x3ca)][_0x3b77ac(0x2b6)]());}['syncEditingCollabCursor'](_0x2b0c36){const _0x35ca2c=_0x3a7433,{unitID:_0x5451bb,memberID:_0x3722ec,textRanges:_0x115d76}=_0x2b0c36,_0x12bf22=$t(_0x115d76);if(_0x12bf22==='')return;const _0xee6a34={'unitID':_0x5451bb,'memberID':_0x3722ec,'selection':_0x12bf22};this[_0x35ca2c(0x3ca)][_0x35ca2c(0x293)](_0xee6a34);}}var Pi=Object['getOwnPropertyDescriptor'],wi=(_0x43af98,_0x42a9e2,_0x19c0a2,_0x5a3c83)=>{const _0x4fb565=_0x3a7433;for(var _0x218f21=_0x5a3c83>0x1?void 0x0:_0x5a3c83?Pi(_0x42a9e2,_0x19c0a2):_0x42a9e2,_0x290fb7=_0x43af98[_0x4fb565(0x34d)]-0x1,_0x48463f;_0x290fb7>=0x0;_0x290fb7--)(_0x48463f=_0x43af98[_0x290fb7])&&(_0x218f21=_0x48463f(_0x218f21)||_0x218f21);return _0x218f21;},A=(_0xb93ae8,_0x2de04f)=>(_0x3a3d2b,_0x416356)=>_0x2de04f(_0x3a3d2b,_0x416356,_0xb93ae8);const yi=0x12c,$i=0x64;let xe=class extends _0x572f10{constructor(_0x4805ba,_0x1375b3,_0x3fb96e,_0x4f71c6,_0x424a1e,_0x8f5bcb,_0x41b26f,_0x2bcc0a,_0x39fbec){const _0xa14ca7=_0x3a7433;super(),_(this,'_online',!0x1),_(this,_0xa14ca7(0x20b),!0x1),_(this,_0xa14ca7(0x3fd),new _0x29de4b(new Map())),_(this,'cursorInfo$',this['_cursorInfo$'][_0xa14ca7(0x2b6)]()),_(this,_0xa14ca7(0x204),new _0x29de4b([])),_(this,_0xa14ca7(0x39e),this['_roomMembers$'][_0xa14ca7(0x368)](_0x1d53b6(yi))),_(this,_0xa14ca7(0x404),_0x44a666(_0x1399e3=>{const _0x3e71a4=_0xa14ca7,_0xa0e062={'eventID':_0x5b6d00[_0x3e71a4(0x35d)],'data':{'unitID':this[_0x3e71a4(0x401)],'memberID':this[_0x3e71a4(0x339)][_0x3e71a4(0x3f1)](),'selection':$t(_0x1399e3)}};this[_0x3e71a4(0x339)][_0x3e71a4(0x1fd)](_0xa0e062,this[_0x3e71a4(0x401)]);},$i)),(this[_0xa14ca7(0x401)]=_0x4805ba,this['_session']=_0x1375b3,this[_0xa14ca7(0x1cb)]=_0x3fb96e,this[_0xa14ca7(0x1d9)]=_0x4f71c6,this[_0xa14ca7(0x291)]=_0x424a1e,this[_0xa14ca7(0x209)]=_0x8f5bcb,this[_0xa14ca7(0x28f)]=_0x41b26f,this[_0xa14ca7(0x2a4)]=_0x2bcc0a,this[_0xa14ca7(0x212)]=_0x39fbec);}get[_0x3a7433(0x2a2)](){const _0x23cbd3=_0x3a7433;return this[_0x23cbd3(0x3fd)][_0x23cbd3(0x37f)]();}get['roomMembers'](){const _0x3d9383=_0x3a7433;return this[_0x3d9383(0x204)][_0x3d9383(0x37f)]();}[_0x3a7433(0x2c4)](){const _0xdf52ce=_0x3a7433;super[_0xdf52ce(0x2c4)](),this[_0xdf52ce(0x3fd)]['next'](new Map()),this[_0xdf52ce(0x3fd)][_0xdf52ce(0x31e)](),this[_0xdf52ce(0x204)][_0xdf52ce(0x293)]([]),this[_0xdf52ce(0x204)][_0xdf52ce(0x31e)]();}[_0x3a7433(0x1ef)](){const _0x534023=_0x3a7433;this[_0x534023(0x20b)]||(this['_init']=!0x0,this[_0x534023(0x339)]['sessionStatus$'][_0x534023(0x368)](_0x7b7810(this[_0x534023(0x34e)]))['subscribe'](_0x62debf=>{const _0x4571d6=_0x534023;_0x62debf===_0xa37934[_0x4571d6(0x205)]?this[_0x4571d6(0x389)]():this[_0x4571d6(0x284)]();}),this[_0x534023(0x339)][_0x534023(0x2a5)][_0x534023(0x368)](_0x7b7810(this[_0x534023(0x34e)]))[_0x534023(0x395)](_0xad2a81=>{const _0x113929=_0x534023,_0x4c2a56=_0xad2a81[_0x113929(0x233)];_0x4c2a56===_0x5b6d00['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0xad2a81),_0x4c2a56===_0x5b6d00[_0x113929(0x3cf)]&&this['_onCursorDelete'](_0xad2a81);}),this[_0x534023(0x3f9)](this[_0x534023(0x212)][_0x534023(0x1f8)](_0x5c8464=>{const _0x4065d9=_0x534023,_0x2b9e69=_0x5c8464[_0x4065d9(0x219)];_0x2b9e69!=null&&this['_online']&&_0x5c8464['id']===_0x470c0a['id']&&_0x2b9e69[_0x4065d9(0x223)]===this[_0x4065d9(0x401)]&&_0x2b9e69[_0x4065d9(0x25f)]===!0x1&&_0x2b9e69[_0x4065d9(0x3a1)][_0x4065d9(0x34d)]>0x0&&this[_0x4065d9(0x404)](_0x2b9e69[_0x4065d9(0x3a1)]);})),this[_0x534023(0x209)]['collabCursorState$'][_0x534023(0x368)](_0x7b7810(this[_0x534023(0x34e)]))[_0x534023(0x395)](_0x35afed=>{const _0xdd538b=_0x534023;if((_0x35afed==null?void 0x0:_0x35afed[_0xdd538b(0x401)])!==this[_0xdd538b(0x401)])return;const _0x2f3ef0={'eventID':_0x5b6d00[_0xdd538b(0x35d)],'data':_0x35afed};this[_0xdd538b(0x1e9)](_0x2f3ef0);}),this[_0x534023(0x3f9)](this[_0x534023(0x212)][_0x534023(0x1f8)](_0x4067fd=>{const _0x124027=_0x534023;if(_0x4067fd[_0x124027(0x219)]==null)return;const _0x590ea1=_0x4067fd['params'];if(_0x4067fd['id']!==_0x8475e8['id']||_0x590ea1[_0x124027(0x223)]!==this['unitID'])return;const _0x3067f7={'id':_0x124027(0x37a),'params':_0x590ea1},_0x4fb6e2=this['cursorInfo'];for(const [_0x16b90c,_0x3a4fc6]of _0x4fb6e2){const _0x1e1193={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x3a4fc6[_0x124027(0x3a1)]}},_0x4ad5d5=this[_0x124027(0x28f)][_0x124027(0x2dc)](_0x3067f7,_0x1e1193,!0x1);if(_0x28a191(_0x4ad5d5))throw _0x4ad5d5['error'];_0x4fb6e2['set'](_0x16b90c,{..._0x3a4fc6,'ranges':_0x4ad5d5['m2Prime'][_0x124027(0x219)]['textRanges']});}queueMicrotask(()=>{const _0x55bec3=_0x124027;this[_0x55bec3(0x3fd)]['next'](_0x4fb6e2);});})));}['_onCursorUpdate'](_0x20d5ed){const _0x532e29=_0x3a7433;var _0x4997b6,_0x5a8c8c;const {memberID:_0x23a38c,selection:_0x5adea3}=_0x20d5ed[_0x532e29(0x217)],_0xafa80a=Ai(_0x5adea3),_0x127010=(_0x5a8c8c=(_0x4997b6=this[_0x532e29(0x291)][_0x532e29(0x40e)](this['unitID'],_0x23a38c))==null?void 0x0:_0x4997b6[_0x532e29(0x386)])!=null?_0x5a8c8c:'Unknown\x20user',_0x5be419={'color':this[_0x532e29(0x1d9)][_0x532e29(0x301)](_0x23a38c),'name':_0x127010,'ranges':_0xafa80a},_0x1ebff2=this[_0x532e29(0x2a2)];_0x1ebff2[_0x532e29(0x1bf)](_0x23a38c,_0x5be419),this[_0x532e29(0x3fd)][_0x532e29(0x293)](_0x1ebff2);}['_onCursorDelete'](_0x3bbbe5){const _0x4459cf=_0x3a7433,{memberID:_0xf970d}=_0x3bbbe5[_0x4459cf(0x217)],_0x4d4fb9=this['cursorInfo'];_0x4d4fb9[_0x4459cf(0x236)](_0xf970d),this[_0x4459cf(0x3fd)][_0x4459cf(0x293)](_0x4d4fb9);}[_0x3a7433(0x389)](){const _0x5e30a3=_0x3a7433;var _0x1b2d6f;if(this[_0x5e30a3(0x324)]=!0x0,((_0x1b2d6f=this[_0x5e30a3(0x2a4)][_0x5e30a3(0x381)]())==null?void 0x0:_0x1b2d6f[_0x5e30a3(0x385)]())!==this[_0x5e30a3(0x401)])return;const _0x439f79=this[_0x5e30a3(0x1cb)][_0x5e30a3(0x359)](_0x1ba78b)[_0x5e30a3(0x34b)]();Array[_0x5e30a3(0x321)](_0x439f79)&&_0x439f79['length']>0x0&&this[_0x5e30a3(0x404)](_0x439f79);}['_toggleOffline'](){const _0x2256fe=_0x3a7433;this[_0x2256fe(0x324)]=!0x1;}};xe=wi([A(0x2,_0x27384c(_0x546954)),A(0x3,_0x27384c(Ke)),A(0x4,_0x27384c(_0xba6281)),A(0x5,_0x27384c(ze)),A(0x6,_0x3417ba),A(0x7,_0x1cf763),A(0x8,_0x23b771)],xe);var xi=Object[_0x3a7433(0x210)],Bi=(_0x169d29,_0x58fdbb,_0x5abc15,_0x1790eb)=>{const _0x57bd18=_0x3a7433;for(var _0x3aefe0=_0x1790eb>0x1?void 0x0:_0x1790eb?xi(_0x58fdbb,_0x5abc15):_0x58fdbb,_0x3811db=_0x169d29[_0x57bd18(0x34d)]-0x1,_0x1f1446;_0x3811db>=0x0;_0x3811db--)(_0x1f1446=_0x169d29[_0x3811db])&&(_0x3aefe0=_0x1f1446(_0x3aefe0)||_0x3aefe0);return _0x3aefe0;},B=(_0x34bdf9,_0x27f051)=>(_0x5d9d51,_0x24e435)=>_0x27f051(_0x5d9d51,_0x24e435,_0x34bdf9);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x125751=[],_0x3dc542=!0x1;return _0x187090=>{const _0x1e40a4=_0x474c;_0x125751[_0x1e40a4(0x3b0)](_0x187090),_0x3dc542||(_0x3dc542=!0x0,setTimeout(()=>{const _0x57f776=_0x1e40a4;_0x125751[_0x57f776(0x2eb)](_0x48e94a=>_0x48e94a()),_0x125751=[],_0x3dc542=!0x1;}));};};let Be=class extends _0x572f10{constructor(_0x4141db,_0x4f2e6a,_0x5f5b3d,_0x523931,_0x262584,_0x2f358a,_0x5c3568,_0x28b93b){const _0x16a4c1=_0x3a7433;super(),_(this,_0x16a4c1(0x324),!0x1),_(this,_0x16a4c1(0x20b),!0x1),_(this,_0x16a4c1(0x3fd),new _0x29de4b(new Map())),_(this,_0x16a4c1(0x298),this[_0x16a4c1(0x3fd)]['asObservable']()),_(this,_0x16a4c1(0x204),new _0x29de4b([])),_(this,_0x16a4c1(0x39e),this[_0x16a4c1(0x204)][_0x16a4c1(0x368)](_0x1d53b6(Fi))),_(this,_0x16a4c1(0x404),_0x44a666((_0x59ee68,_0x1e69e8)=>{const _0xf88db8=_0x16a4c1,_0x335682={'eventID':_0x5b6d00[_0xf88db8(0x35d)],'data':{'unitID':this[_0xf88db8(0x401)],'memberID':this[_0xf88db8(0x339)][_0xf88db8(0x3f1)](),'selection':_0x1473d8(_0x59ee68,_0x1e69e8[_0xf88db8(0x3f2)])}};this['_session'][_0xf88db8(0x1fd)](_0x335682,this['unitID']);},ki)),(this[_0x16a4c1(0x401)]=_0x4141db,this[_0x16a4c1(0x339)]=_0x4f2e6a,this[_0x16a4c1(0x1cb)]=_0x5f5b3d,this[_0x16a4c1(0x1d9)]=_0x523931,this[_0x16a4c1(0x291)]=_0x262584,this['_univerInstanceService']=_0x2f358a,this[_0x16a4c1(0x212)]=_0x5c3568,this['_refRangeService']=_0x28b93b);}get[_0x3a7433(0x2a2)](){const _0x3b9dcd=_0x3a7433;return this[_0x3b9dcd(0x3fd)]['getValue']();}get[_0x3a7433(0x1b2)](){return this['_roomMembers$']['getValue']();}[_0x3a7433(0x2c4)](){const _0x529ba9=_0x3a7433;super[_0x529ba9(0x2c4)](),this[_0x529ba9(0x3fd)]['next'](new Map()),this['_cursorInfo$'][_0x529ba9(0x31e)](),this[_0x529ba9(0x204)]['next']([]),this['_roomMembers$'][_0x529ba9(0x31e)]();}[_0x3a7433(0x1ef)](){const _0xc66333=_0x3a7433;this[_0xc66333(0x20b)]||(this[_0xc66333(0x20b)]=!0x0,this['_session'][_0xc66333(0x2c0)][_0xc66333(0x368)](_0x7b7810(this[_0xc66333(0x34e)]))[_0xc66333(0x395)](_0x215a81=>{const _0xc7c3af=_0xc66333;_0x215a81===_0xa37934[_0xc7c3af(0x205)]?this['_toggleOnline']():this[_0xc7c3af(0x284)]();}),this[_0xc66333(0x339)][_0xc66333(0x2a5)][_0xc66333(0x368)](_0x7b7810(this[_0xc66333(0x34e)]))[_0xc66333(0x395)](_0x5ca035=>{const _0x29f571=_0xc66333,_0x13214e=_0x5ca035[_0x29f571(0x233)];_0x13214e===_0x5b6d00['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x5ca035),_0x13214e===_0x5b6d00[_0x29f571(0x3cf)]&&this[_0x29f571(0x280)](_0x5ca035);}),this['_onRefRangeChange'](),this['disposeWithMe'](this[_0xc66333(0x212)][_0xc66333(0x1f8)](_0x544ab5=>{const _0x2a2680=_0xc66333;if(this[_0x2a2680(0x324)]&&_0x544ab5['id']===_0x2bb3a5['id']&&_0x544ab5[_0x2a2680(0x219)]['unitId']===this[_0x2a2680(0x401)]){const _0x574355=_0x544ab5[_0x2a2680(0x219)];this[_0x2a2680(0x404)](_0x574355[_0x2a2680(0x266)],_0x574355['selections'][0x0]);}})));}[_0x3a7433(0x1e9)](_0xcd74f7){const _0x4c561b=_0x3a7433;var _0x15f0c9,_0x472ddb;const {memberID:_0x519b5d,selection:_0x28587c}=_0xcd74f7['data'],{sheetName:_0x2362cb,range:_0x144490}=_0x30bdea(_0x28587c),_0x2707fc={'name':(_0x472ddb=(_0x15f0c9=this[_0x4c561b(0x291)]['getMember'](this['unitID'],_0x519b5d))==null?void 0x0:_0x15f0c9[_0x4c561b(0x386)])!=null?_0x472ddb:_0x4c561b(0x3f7),'range':this[_0x4c561b(0x248)](_0x2362cb,_0x144490),'sheetID':_0x2362cb,'color':this[_0x4c561b(0x1d9)][_0x4c561b(0x301)](_0x519b5d),'selection':_0x28587c},_0xdc9560=this[_0x4c561b(0x2a2)];_0xdc9560['set'](_0x519b5d,_0x2707fc),this['_cursorInfo$']['next'](_0xdc9560);}['_onCursorDelete'](_0xe49120){const _0x13f2db=_0x3a7433,{memberID:_0x5a3140}=_0xe49120[_0x13f2db(0x217)],_0x5be73f=this[_0x13f2db(0x2a2)];_0x5be73f['delete'](_0x5a3140),this[_0x13f2db(0x3fd)][_0x13f2db(0x293)](_0x5be73f);}[_0x3a7433(0x248)](_0x288a79,_0x3d1381){const _0x47729e=_0x3a7433;var _0x1102f7,_0x4a7883;const _0x45d5ca=(_0x4a7883=(_0x1102f7=this[_0x47729e(0x2a4)]['getUniverSheetInstance'](this[_0x47729e(0x401)]))==null?void 0x0:_0x1102f7['getSheetBySheetId'](_0x288a79))==null?void 0x0:_0x4a7883[_0x47729e(0x246)]();return(_0x45d5ca==null?void 0x0:_0x45d5ca[_0x47729e(0x2b5)](_0x521267=>_0x385ece[_0x47729e(0x1b6)](_0x521267,_0x3d1381)))||_0x3d1381;}[_0x3a7433(0x3c4)](){const _0x5d5cd6=_0x3a7433,_0x5eb772=new _0x57736b(),_0xdb3118=Hi(),_0x594753=()=>{const _0x258132=_0x474c;_0x5eb772[_0x258132(0x2c4)]();const _0x1a967a=(_0x26fb90,_0x242de3,_0x44ee34,_0x4bc7ed)=>{const _0x287813=_0x258132;let _0x33762c=[];switch(_0x26fb90['id']){case _0x5bfdab['DeleteRangeMoveLeftCommandId']:{_0x33762c=_0x2ad0c0(_0x26fb90,_0x4bc7ed);break;}case _0x5bfdab[_0x287813(0x3e7)]:{_0x33762c=_0x3406ca(_0x26fb90,_0x4bc7ed);break;}case _0x5bfdab[_0x287813(0x315)]:{_0x33762c=_0x1dc9ed(_0x26fb90,_0x4bc7ed);break;}case _0x5bfdab[_0x287813(0x294)]:{_0x33762c=_0x50e396(_0x26fb90,_0x4bc7ed);break;}case _0x5bfdab['InsertRangeMoveRightCommandId']:{_0x33762c=_0x121378(_0x26fb90,_0x4bc7ed);break;}case _0x5bfdab[_0x287813(0x21e)]:{_0x33762c=_0x3599ed(_0x26fb90,_0x4bc7ed);break;}case _0x5bfdab[_0x287813(0x282)]:{_0x33762c=_0x158e95(_0x26fb90,_0x4bc7ed);break;}case _0x5bfdab[_0x287813(0x358)]:{_0x33762c=_0x5cb489(_0x26fb90,_0x4bc7ed);break;}case _0x5bfdab[_0x287813(0x2f3)]:{_0x33762c=_0xdffde2(_0x26fb90,_0x4bc7ed);break;}}const _0xee14d=_0x5b3708(_0x33762c,_0x4bc7ed),_0x513f34=this[_0x287813(0x2a2)][_0x287813(0x359)](_0x242de3);if(_0x513f34&&_0xee14d){const _0x5ee7e0={..._0x513f34,'range':_0xee14d};this[_0x287813(0x2a2)][_0x287813(0x1bf)](_0x242de3,_0x5ee7e0),_0xdb3118(()=>{const _0x2f48b5=_0x287813,_0x186c28=this[_0x2f48b5(0x325)]['registerRefRange'](_0xee14d,_0x40ca0d=>(_0x186c28[_0x2f48b5(0x2c4)](),_0x1a967a(_0x40ca0d,_0x242de3,_0x44ee34,_0xee14d)));_0x5eb772[_0x2f48b5(0x40b)](_0x186c28);});}return{'redos':[],'undos':[]};};this[_0x258132(0x2a2)][_0x258132(0x2eb)]((_0x244376,_0x1727db)=>{const _0x572217=_0x258132,{range:_0x479715,sheetID:_0x2801e5}=_0x244376,_0x1a5cf4=this[_0x572217(0x325)][_0x572217(0x323)](_0x479715,_0x3edf17=>(_0x1a5cf4[_0x572217(0x2c4)](),_0x1a967a(_0x3edf17,_0x1727db,_0x2801e5,_0x479715)));_0x5eb772[_0x572217(0x40b)](_0x1a5cf4);});};this['disposeWithMe'](_0x157525(this[_0x5d5cd6(0x3fd)]['subscribe'](()=>{_0x594753();})));}[_0x3a7433(0x389)](){const _0x654915=_0x3a7433;var _0x123c98,_0x4c0b65;if(this[_0x654915(0x324)]=!0x0,((_0x123c98=this[_0x654915(0x2a4)][_0x654915(0x381)]())==null?void 0x0:_0x123c98['getUnitId']())!==this[_0x654915(0x401)])return;const _0x169ecd=(_0x4c0b65=this[_0x654915(0x1cb)][_0x654915(0x359)](_0xd281b6)[_0x654915(0x23c)]())==null?void 0x0:_0x4c0b65[0x0],_0xb7b8a9=this[_0x654915(0x2a4)]['getCurrentUnitForType'](_0x36653e[_0x654915(0x2a9)])[_0x654915(0x3e9)]();_0x169ecd&&_0xb7b8a9&&this[_0x654915(0x404)](_0xb7b8a9[_0x654915(0x3d2)](),_0x169ecd);}[_0x3a7433(0x284)](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0x27384c(_0x546954)),B(0x3,_0x27384c(Ke)),B(0x4,_0x27384c(_0xba6281)),B(0x5,_0x1cf763),B(0x6,_0x23b771),B(0x7,_0x27384c(_0xc89b4))],Be);var Yi=Object['getOwnPropertyDescriptor'],Wi=(_0x16edb8,_0x22d854,_0x527e52,_0x528d4c)=>{const _0x10b210=_0x3a7433;for(var _0x5c88da=_0x528d4c>0x1?void 0x0:_0x528d4c?Yi(_0x22d854,_0x527e52):_0x22d854,_0x574ef5=_0x16edb8[_0x10b210(0x34d)]-0x1,_0x1002b4;_0x574ef5>=0x0;_0x574ef5--)(_0x1002b4=_0x16edb8[_0x574ef5])&&(_0x5c88da=_0x1002b4(_0x5c88da)||_0x5c88da);return _0x5c88da;},Ce=(_0x374e66,_0x5b37b3)=>(_0x4874e0,_0x4c3091)=>_0x5b37b3(_0x4874e0,_0x4c3091,_0x374e66);let H=class extends _0x572f10{constructor(_0x5b0b3b,_0x2bd7d1,_0x222f4){const _0x4cad08=_0x3a7433;super(),_(this,_0x4cad08(0x3ba),new Map()),_(this,_0x4cad08(0x1eb),new _0x4b5f78()),(this['_univerInstanceService']=_0x5b0b3b,this['_injector']=_0x2bd7d1,this['_collabSessionService']=_0x222f4,this[_0x4cad08(0x20b)]());}['dispose'](){const _0x122452=_0x3a7433;super[_0x122452(0x2c4)](),this[_0x122452(0x1eb)][_0x122452(0x31e)](),this[_0x122452(0x3ba)]['forEach'](_0x30a653=>_0x30a653[_0x122452(0x2c4)]());}[_0x3a7433(0x26f)](_0x3dfa92){const _0xde6c9d=_0x3a7433;return this['_entities']['has'](_0x3dfa92)?this['_entities'][_0xde6c9d(0x359)](_0x3dfa92)[_0xde6c9d(0x298)]:this['_entityInit$'][_0xde6c9d(0x368)](_0x3c21b3(_0xddea22=>_0xddea22[_0xde6c9d(0x401)]===_0x3dfa92),_0x232519(_0x51a6fc=>_0x51a6fc[_0xde6c9d(0x298)]));}['_init'](){const _0x46d027=_0x3a7433;this[_0x46d027(0x2a4)][_0x46d027(0x271)](_0x36653e[_0x46d027(0x2a9)])[_0x46d027(0x368)](_0x7b7810(this[_0x46d027(0x34e)]))[_0x46d027(0x395)](async _0x3d4621=>{const _0x809dec=_0x46d027,_0x1d5111=_0x3d4621['getUnitId'](),_0x2ea440=await this[_0x809dec(0x2be)](_0x1d5111);this[_0x809dec(0x1eb)]['next'](_0x2ea440),this[_0x809dec(0x3ba)][_0x809dec(0x1bf)](_0x1d5111,_0x2ea440);}),this[_0x46d027(0x2a4)][_0x46d027(0x271)](_0x36653e['UNIVER_DOC'])[_0x46d027(0x368)](_0x7b7810(this[_0x46d027(0x34e)]))[_0x46d027(0x368)](_0x3c21b3(_0x5b2196=>!_0x5b2196['getUnitId']()[_0x46d027(0x34a)]('__')))['subscribe'](async _0x282a49=>{const _0x10922c=_0x46d027,_0x373fc4=_0x282a49[_0x10922c(0x385)](),_0x2e9a48=await this['_startDocCollabCursor'](_0x373fc4);this[_0x10922c(0x1eb)][_0x10922c(0x293)](_0x2e9a48),this[_0x10922c(0x3ba)][_0x10922c(0x1bf)](_0x373fc4,_0x2e9a48);}),_0x26d8bd(this[_0x46d027(0x2a4)][_0x46d027(0x281)](_0x36653e[_0x46d027(0x2cc)]),this[_0x46d027(0x2a4)][_0x46d027(0x281)](_0x36653e[_0x46d027(0x2a9)]))['pipe'](_0x7b7810(this[_0x46d027(0x34e)]))[_0x46d027(0x395)](_0xed1e0d=>{const _0x5fd39f=_0x46d027,_0x48c3e2=_0xed1e0d[_0x5fd39f(0x385)](),_0x2c18c0=this[_0x5fd39f(0x3ba)]['get'](_0x48c3e2);_0x2c18c0&&(_0x2c18c0[_0x5fd39f(0x2c4)](),this[_0x5fd39f(0x3ba)]['delete'](_0x48c3e2));});}async[_0x3a7433(0x2be)](_0xf0f321){const _0x3f3381=_0x3a7433,_0x2f1069=await this['_collabSessionService']['requireSession'](_0xf0f321),_0x43fb80=this[_0x3f3381(0x1cb)]['createInstance'](Be,_0xf0f321,_0x2f1069);return _0x43fb80[_0x3f3381(0x1ef)](),_0x43fb80;}async[_0x3a7433(0x288)](_0x492974){const _0xb5408c=_0x3a7433,_0x1d28d6=await this[_0xb5408c(0x322)][_0xb5408c(0x262)](_0x492974),_0x1d4802=this[_0xb5408c(0x1cb)][_0xb5408c(0x28d)](xe,_0x492974,_0x1d28d6);return _0x1d4802['init'](),_0x1d4802;}};H=Wi([Ce(0x0,_0x1cf763),Ce(0x1,_0x27384c(_0x546954)),Ce(0x2,_0x27384c(_0x33dafd))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x36c14b,_0x185f0e){const _0x12c68c=_0x3a7433;let {radius:_0x5ad41a,width:_0x3e9d06,height:_0x4badde}=_0x185f0e;_0x5ad41a=_0x5ad41a!=null?_0x5ad41a:0x0,_0x3e9d06=_0x3e9d06!=null?_0x3e9d06:0x1e,_0x4badde=_0x4badde!=null?_0x4badde:0x1e;let _0x336f59=0x0,_0x10e095=0x0,_0x1ee187=0x0;_0x336f59=_0x10e095=_0x1ee187=Math[_0x12c68c(0x24a)](_0x5ad41a,_0x3e9d06/0x2,_0x4badde/0x2),_0x36c14b[_0x12c68c(0x387)](),_0x36c14b['moveTo'](_0x336f59,0x0),_0x36c14b[_0x12c68c(0x1d4)](_0x3e9d06-_0x10e095,0x0),_0x36c14b['arc'](_0x3e9d06-_0x10e095,_0x10e095,_0x10e095,Math['PI']*0x3/0x2,0x0,!0x1),_0x36c14b[_0x12c68c(0x1d4)](_0x3e9d06,_0x4badde-_0x1ee187),_0x36c14b[_0x12c68c(0x27e)](_0x3e9d06-_0x1ee187,_0x4badde-_0x1ee187,_0x1ee187,0x0,Math['PI']/0x2,!0x1),_0x36c14b[_0x12c68c(0x1d4)](0x0,_0x4badde),_0x36c14b[_0x12c68c(0x1d4)](0x0,_0x336f59),_0x36c14b[_0x12c68c(0x27e)](_0x336f59,_0x336f59,_0x336f59,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x36c14b[_0x12c68c(0x330)](),_0x185f0e[_0x12c68c(0x37b)]&&(_0x36c14b[_0x12c68c(0x2b8)](),_0x36c14b[_0x12c68c(0x30e)]=_0x185f0e[_0x12c68c(0x37b)],_0x185f0e[_0x12c68c(0x393)]===_0x12c68c(0x243)?_0x36c14b['fill']('evenodd'):_0x36c14b[_0x12c68c(0x37b)](),_0x36c14b[_0x12c68c(0x3b4)]());}class ve extends _0x2a2a66{constructor(_0x47af25,_0x54ec2d){const _0x38a471=_0x3a7433;super(_0x47af25,_0x54ec2d),_(this,'color'),_(this,_0x38a471(0x3f6)),(this[_0x38a471(0x20f)]=_0x54ec2d==null?void 0x0:_0x54ec2d['color'],this['text']=_0x54ec2d==null?void 0x0:_0x54ec2d['text']);}static[_0x3a7433(0x2fb)](_0x29955c,_0x10db39){const _0x5b6547=_0x3a7433,{text:_0x15a676,color:_0x8fbbdb}=_0x10db39;_0x29955c[_0x5b6547(0x2b8)](),_0x29955c[_0x5b6547(0x33b)]=_0x5b6547(0x251);const _0xb94de9=_0x29955c[_0x5b6547(0x2ad)](_0x15a676)[_0x5b6547(0x227)],_0xd1c94e=Math[_0x5b6547(0x24a)](_0xb94de9+0x2*Re,at);ji(_0x29955c,{'height':Q,'radius':0x4,'width':_0xd1c94e,'fill':_0x8fbbdb}),_0x29955c[_0x5b6547(0x30e)]=_0x5b6547(0x37c);const _0x55d6a0=Re,_0x4b2c77=Q-Vi,_0x2c651e=at-0x2*Re;if(_0xb94de9>_0x2c651e){let _0x2a67c9='',_0x5688b5=0x0;for(const _0x21663c of _0x15a676){const _0x45b2ab=_0x29955c[_0x5b6547(0x2ad)](_0x21663c)[_0x5b6547(0x227)];if(_0x5688b5+_0x45b2ab<=_0x2c651e-_0x29955c[_0x5b6547(0x2ad)](_0x5b6547(0x2ab))[_0x5b6547(0x227)])_0x2a67c9+=_0x21663c,_0x5688b5+=_0x45b2ab;else{_0x2a67c9+=_0x5b6547(0x2ab);break;}}_0x29955c[_0x5b6547(0x1c4)](_0x2a67c9,_0x55d6a0,_0x4b2c77);}else _0x29955c['fillText'](_0x15a676,_0x55d6a0,_0x4b2c77);_0x29955c[_0x5b6547(0x3b4)]();}[_0x3a7433(0x237)](_0x3cc0ce){const _0x2d3002=_0x3a7433;ve[_0x2d3002(0x2fb)](_0x3cc0ce,this);}}const De=_0x3a7433(0x1c0),Xi='collab-text-range-',Gi=_0x3a7433(0x1b0),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x3a7433(0x340);class ct{constructor(_0x3945ea,_0x4a92d0,_0x2829bc,_0x2005d3){const _0x3420e4=_0x3a7433;_(this,'_shapes',[]),_(this,_0x3420e4(0x338),null),_(this,'_textBubble',null),_(this,_0x3420e4(0x3a3),null),_(this,'_hideTimer',null),_(this,_0x3420e4(0x249),null),(this[_0x3420e4(0x1c7)]=_0x3945ea,this[_0x3420e4(0x3c5)]=_0x4a92d0,this['_docSkeleton']=_0x2829bc,this['_document']=_0x2005d3,this[_0x3420e4(0x226)]());}set[_0x3a7433(0x363)](_0x56ee6c){const _0xda9513=_0x3a7433;_0x56ee6c?(this[_0xda9513(0x3a3)]&&this[_0xda9513(0x3a3)][_0xda9513(0x36b)](),this[_0xda9513(0x326)]&&this['_textBubble'][_0xda9513(0x1bc)]()):(this['_anchorDot']&&this['_anchorDot'][_0xda9513(0x1bc)](),this[_0xda9513(0x326)]&&this[_0xda9513(0x326)][_0xda9513(0x36b)]());}[_0x3a7433(0x2c4)](){const _0x216ee8=_0x3a7433;for(const _0x3e4b7a of this[_0x216ee8(0x38b)])_0x3e4b7a[_0x216ee8(0x2c4)]();this['_textBubble']&&this[_0x216ee8(0x326)]['dispose'](),this[_0x216ee8(0x3a3)]&&this[_0x216ee8(0x3a3)][_0x216ee8(0x2c4)](),this[_0x216ee8(0x338)]&&this['_anchor']['dispose'](),this[_0x216ee8(0x249)]&&this[_0x216ee8(0x249)]();}[_0x3a7433(0x226)](){const _0x32e605=_0x3a7433;var _0x3f173b;const {_docSkeleton:_0x150b2e,_document:_0x2e3611}=this,{color:_0x2268c4,name:_0x2c15c5,ranges:_0x59e088}=this[_0x32e605(0x1c7)],_0x4c38b9=_0x2e3611[_0x32e605(0x2b2)](),{docsLeft:_0x1c4036,docsTop:_0xac3aa6}=_0x4c38b9,_0x25d925=new _0x388172(_0x4c38b9,_0x150b2e);for(const {startOffset:_0x4fbd9b,endOffset:_0x47dee9,rangeType:_0x359115,segmentId:_0x542a4b,segmentPage:_0x191a2b,collapsed:_0x3ca612,isActive:_0xadf3c5}of _0x59e088){const _0x34efc5=_0x150b2e[_0x32e605(0x1fb)](_0x4fbd9b,!0x0,_0x542a4b,_0x191a2b);let _0x164bc6=_0x150b2e[_0x32e605(0x1fb)](_0x47dee9,!0x0,_0x542a4b,_0x191a2b);if(_0x164bc6==null&&(_0x164bc6=_0x150b2e[_0x32e605(0x1fb)](_0x47dee9-0x1,!0x1,_0x542a4b,_0x191a2b)),_0xadf3c5){const {contentBoxPointGroup:_0x1f8c6b}=_0x25d925[_0x32e605(0x255)](_0x164bc6,_0x164bc6);if(_0x1f8c6b[_0x32e605(0x34d)]===0x0)continue;this['_drawAnchor'](_0x2268c4,_0x1f8c6b,_0x1c4036,_0xac3aa6,_0x2c15c5),this[_0x32e605(0x249)]=this['_handleHover']();}if(_0x34efc5&&_0x164bc6){if(_0x359115===_0x1de649[_0x32e605(0x1b7)]){const _0x2eefcf=new _0x2166fb(_0x4c38b9,_0x150b2e),{pointGroup:_0x13c1a6}=(_0x3f173b=_0x2eefcf[_0x32e605(0x255)](_0x34efc5,_0x164bc6))!=null?_0x3f173b:{};if(_0x13c1a6==null||_0x13c1a6[_0x32e605(0x34d)]===0x0)continue;this[_0x32e605(0x241)](_0x2268c4,_0x13c1a6,_0x1c4036,_0xac3aa6);}else{if(!_0x3ca612){const {borderBoxPointGroup:_0x528cd2}=_0x25d925[_0x32e605(0x255)](_0x34efc5,_0x164bc6);if(_0x528cd2['length']===0x0)continue;this[_0x32e605(0x35c)](_0x2268c4,_0x528cd2,_0x1c4036,_0xac3aa6);}}}}}['_drawAnchor'](_0xb98222,_0x44ccd8,_0x28a136,_0x57d29e,_0x4355b0){const _0x20a9e0=_0x3a7433,_0x1091aa=this[_0x20a9e0(0x23e)](_0x44ccd8),{left:_0x3f9bfe,top:_0x27761e,height:_0xfc3f4a}=_0x1091aa,_0x8dbd90=this[_0x20a9e0(0x269)](),_0x381e24=zi/_0x8dbd90,_0x94382d=new _0x4dfe17(De+_0x3f0ee8(z),{'left':_0x3f9bfe+_0x28a136-_0x381e24,'top':_0x27761e+_0x57d29e,'height':_0xfc3f4a,'width':Ki,'fill':_0xb98222||_0x25acc8(_0x164b29[_0x20a9e0(0x3e8)],0x0),'strokeWidth':_0x381e24,'stroke':Ji,'evented':!0x0});this[_0x20a9e0(0x338)]=_0x94382d,this[_0x20a9e0(0x3c5)][_0x20a9e0(0x21c)](_0x94382d,_0x3e1dcd);const _0x47a9d1=new _0x4dfe17(De+_0x3f0ee8(z),{'left':_0x3f9bfe+_0x28a136-_0x381e24,'top':_0x27761e+_0x57d29e-Ne/0x2,'height':Ne,'width':Ne,'fill':_0xb98222||_0x25acc8(_0x164b29[_0x20a9e0(0x3e8)],0x0),'strokeWidth':0x0,'stroke':_0xb98222||_0x25acc8(_0x164b29[_0x20a9e0(0x3e8)],0x0),'evented':!0x1});this[_0x20a9e0(0x3a3)]=_0x47a9d1,this[_0x20a9e0(0x3c5)][_0x20a9e0(0x21c)](_0x47a9d1,_0x3e1dcd);const _0x988b62=new ve(De+_0x3f0ee8(z),{'left':_0x3f9bfe+_0x28a136-_0x381e24,'top':_0x27761e+_0x57d29e-Q,'text':_0x4355b0,'color':_0xb98222});this[_0x20a9e0(0x326)]=_0x988b62,this[_0x20a9e0(0x3c5)][_0x20a9e0(0x21c)](_0x988b62,_0x3e1dcd),this[_0x20a9e0(0x363)]=!0x1;}[_0x3a7433(0x3be)](){const _0x188fa6=_0x3a7433,_0x1354b8=this[_0x188fa6(0x338)]['onPointerEnter$'][_0x188fa6(0x382)](()=>{const _0x583925=_0x188fa6;this[_0x583925(0x363)]=!0x0;}),_0x933964=this[_0x188fa6(0x338)][_0x188fa6(0x260)]['subscribeEvent'](()=>{const _0x418038=_0x188fa6;this[_0x418038(0x259)]&&clearTimeout(this[_0x418038(0x259)]),this[_0x418038(0x259)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x5c0e24=_0x188fa6;_0x1354b8['unsubscribe'](),_0x933964[_0x5c0e24(0x38e)]();};}[_0x3a7433(0x35c)](_0x1c1691,_0x5ef632,_0x34e086,_0x2024ed){const _0x4f9b44=_0x3a7433,_0x4d2d64=new _0x3be8fa(_0x1c1691)['setAlpha'](0.2)['toRgbString'](),_0x37788d=new _0x5b22a5(Xi+_0x3f0ee8(z),{'pointsGroup':_0x5ef632,'fill':_0x4d2d64||_0x25acc8(_0x164b29[_0x4f9b44(0x3e8)],0.2),'left':_0x34e086,'top':_0x2024ed,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4f9b44(0x38b)][_0x4f9b44(0x3b0)](_0x37788d),this['_scene'][_0x4f9b44(0x21c)](_0x37788d,_0x3e1dcd);}[_0x3a7433(0x241)](_0x3bea46,_0xac66e1,_0x2fc19f,_0x1f62f2){const _0x1e375c=_0x3a7433,_0x1761de=new _0x3be8fa(_0x3bea46)['setAlpha'](0.2)[_0x1e375c(0x3ab)](),_0x687bcc=new _0x5b22a5(Gi+_0x3f0ee8(z),{'pointsGroup':_0xac66e1,'fill':_0x1761de||_0x25acc8(_0x164b29[_0x1e375c(0x3e8)],0.2),'left':_0x2fc19f,'top':_0x1f62f2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1e375c(0x38b)][_0x1e375c(0x3b0)](_0x687bcc),this[_0x1e375c(0x3c5)]['addObject'](_0x687bcc,_0x3e1dcd);}['_getAnchorBounding'](_0x3e9627){const _0x48be00=_0x3e9627[0x0],_0x13eecd=_0x48be00[0x0],_0x506064=_0x48be00[0x2],{x:_0x3e5a02,y:_0x4a16a3}=_0x13eecd,{x:_0x88260f,y:_0x349b4d}=_0x506064;return{'left':_0x3e5a02,'top':_0x4a16a3,'width':_0x88260f-_0x3e5a02,'height':_0x349b4d-_0x4a16a3};}[_0x3a7433(0x269)](){const _0x1ae4af=_0x3a7433,{scaleX:_0x8b79e4,scaleY:_0x27a584}=this[_0x1ae4af(0x3c5)][_0x1ae4af(0x2b3)]();return Math[_0x1ae4af(0x346)](_0x8b79e4,_0x27a584);}}var Zi=Object['getOwnPropertyDescriptor'],Qi=(_0x489000,_0x2d4852,_0x47bd21,_0x48192f)=>{const _0x933c3c=_0x3a7433;for(var _0x2ed006=_0x48192f>0x1?void 0x0:_0x48192f?Zi(_0x2d4852,_0x47bd21):_0x2d4852,_0xc2a0d6=_0x489000[_0x933c3c(0x34d)]-0x1,_0x5ed45b;_0xc2a0d6>=0x0;_0xc2a0d6--)(_0x5ed45b=_0x489000[_0xc2a0d6])&&(_0x2ed006=_0x5ed45b(_0x2ed006)||_0x2ed006);return _0x2ed006;},ie=(_0x6644ab,_0x2a43aa)=>(_0x392c1b,_0x5256cd)=>_0x2a43aa(_0x392c1b,_0x5256cd,_0x6644ab);let Fe=class extends _0x572f10{constructor(_0x2f80da,_0x154da9,_0x567679,_0x31a7d9,_0x2789d6){const _0x67f9c2=_0x3a7433;super(),_(this,'_cursorShapes',[]),_(this,_0x67f9c2(0x2ce),[]),(this[_0x67f9c2(0x374)]=_0x2f80da,this[_0x67f9c2(0x356)]=_0x154da9,this[_0x67f9c2(0x2a0)]=_0x567679,this[_0x67f9c2(0x212)]=_0x31a7d9,this[_0x67f9c2(0x377)]=_0x2789d6,this[_0x67f9c2(0x20b)]());}[_0x3a7433(0x20b)](){const _0x2d78e8=_0x3a7433,_0x4bd5ce=this[_0x2d78e8(0x374)][_0x2d78e8(0x223)],_0x53b833=this['_docSkeletonManagerService'];this[_0x2d78e8(0x3f9)](_0x3f4d03([this[_0x2d78e8(0x2a0)][_0x2d78e8(0x26f)](_0x4bd5ce),this[_0x2d78e8(0x377)][_0x2d78e8(0x22c)]])[_0x2d78e8(0x368)](_0x4024aa(([_0x981416,_0x4040e7])=>({'skeleton':_0x53b833[_0x2d78e8(0x2cf)](),'cursors':[..._0x981416['values']()][_0x2d78e8(0x1d5)](_0x1248b2=>({..._0x1248b2,'color':this[_0x2d78e8(0x377)]['getColorFromTheme'](_0x1248b2[_0x2d78e8(0x20f)])}))})))[_0x2d78e8(0x395)](_0x2182ed=>{if(this['_removeCollabCursors'](),_0x2182ed){const {skeleton:_0x561c33,cursors:_0x4c0a07}=_0x2182ed;this['_updateCollabCursors'](_0x561c33,_0x4c0a07);}})),this[_0x2d78e8(0x2d7)](),this['_initCommandExecutedListener']();}[_0x3a7433(0x38f)](_0x1bc4c8,_0x2f753a){const _0x3922a1=_0x3a7433,{scene:_0x2fa54e,mainComponent:_0x53956}=this['_context'],_0x490e33=_0x2f753a[_0x3922a1(0x3d1)](_0x462661=>new ct(_0x462661,_0x2fa54e,_0x1bc4c8,_0x53956));this[_0x3922a1(0x245)]=_0x490e33,this[_0x3922a1(0x2ce)]=_0x2f753a;}[_0x3a7433(0x2ac)](){const _0xd1aa00=_0x3a7433;this['_removeCollabCursors']();const {scene:_0x14882a,mainComponent:_0x378032}=this[_0xd1aa00(0x374)],_0x15c157=this[_0xd1aa00(0x356)][_0xd1aa00(0x2cf)](),_0x49a24e=this['_cursors'][_0xd1aa00(0x3d1)](_0x5ce1d2=>new ct(_0x5ce1d2,_0x14882a,_0x15c157,_0x378032));this[_0xd1aa00(0x245)]=_0x49a24e;}[_0x3a7433(0x22b)](){const _0x23ac66=_0x3a7433;this[_0x23ac66(0x245)][_0x23ac66(0x2eb)](_0x2e972c=>_0x2e972c[_0x23ac66(0x2c4)]()),this['_cursorShapes']=[];}[_0x3a7433(0x275)](){const _0x3d3665=[_0x49f1f4['id']];this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x318394=>{const _0x1bc16e=_0x474c;_0x3d3665[_0x1bc16e(0x2f2)](_0x318394['id'])&&_0x318394['params']['unitId']===this['_context']['unitId']&&this[_0x1bc16e(0x2ac)]();}));}[_0x3a7433(0x2d7)](){const _0x577a64=_0x3a7433;this[_0x577a64(0x3f9)](_0x58d8c3(this['_context'][_0x577a64(0x2d6)][_0x577a64(0x279)])[_0x577a64(0x368)](_0x3c1d7f(_0x28ab03=>_0x28ab03[_0x577a64(0x409)]===_0x309312[_0x577a64(0x1b9)]),_0x33ced3(0x10))[_0x577a64(0x395)](()=>{const _0x2c8ce2=_0x577a64;this[_0x2c8ce2(0x2ac)]();}));}};Fe=Qi([ie(0x1,_0x27384c(_0xf10ffb)),ie(0x2,_0x27384c(H)),ie(0x3,_0x23b771),ie(0x4,_0x27384c(_0x54d291))],Fe);const qi=0x1,en=1.5;class tn extends _0x2a2a66{constructor(_0x4928b4,_0x576c16){const _0x13acbe=_0x3a7433;super(_0x4928b4,_0x576c16),_(this,_0x13acbe(0x38a)),_(this,'_hovered',!0x1),_(this,_0x13acbe(0x3fe)),_(this,'_name',''),_(this,_0x13acbe(0x3ac),_0x13acbe(0x1b4)),_(this,_0x13acbe(0x2fe)),(_0x576c16&&this[_0x13acbe(0x403)](_0x576c16),this[_0x13acbe(0x2a7)][_0x13acbe(0x382)](()=>this[_0x13acbe(0x403)]({'hovered':!0x0})),this[_0x13acbe(0x260)][_0x13acbe(0x382)](()=>this[_0x13acbe(0x403)]({'hovered':!0x1})));}[_0x3a7433(0x403)](_0x2d7a29){const _0x17e91f=_0x3a7433;var _0x52df96,_0x5999f8,_0x321e99,_0x39c90d,_0x1dcfab,_0x3af465;this[_0x17e91f(0x38a)]=(_0x52df96=_0x2d7a29[_0x17e91f(0x20f)])!=null?_0x52df96:this[_0x17e91f(0x38a)],this['_hovered']=(_0x5999f8=_0x2d7a29[_0x17e91f(0x31f)])!=null?_0x5999f8:this[_0x17e91f(0x319)],this[_0x17e91f(0x3fe)]=(_0x321e99=_0x2d7a29[_0x17e91f(0x3f2)])!=null?_0x321e99:this[_0x17e91f(0x3fe)],this[_0x17e91f(0x2e8)]=(_0x39c90d=_0x2d7a29[_0x17e91f(0x386)])!=null?_0x39c90d:this['_name'],this['_labelPosition']=(_0x1dcfab=_0x2d7a29['labelPosition'])!=null?_0x1dcfab:this[_0x17e91f(0x3ac)],this[_0x17e91f(0x2fe)]=(_0x3af465=_0x2d7a29[_0x17e91f(0x1be)])!=null?_0x3af465:this[_0x17e91f(0x2fe)],this['transformByState']({'width':_0x2d7a29[_0x17e91f(0x227)],'height':_0x2d7a29[_0x17e91f(0x2af)]});}[_0x3a7433(0x3a7)](_0x214f14){const _0x46d942=_0x3a7433,{row:_0x41700e,column:_0x1c3850}=_0x214f14;if(_0x41700e>=this[_0x46d942(0x3fe)][_0x46d942(0x3c8)]&&_0x41700e<=this['_range']['endRow']&&_0x1c3850>=this[_0x46d942(0x3fe)][_0x46d942(0x2fd)]&&_0x1c3850<=this[_0x46d942(0x3fe)][_0x46d942(0x39f)]){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x3a7433(0x391)](_0x5944b1){return!0x1;}[_0x3a7433(0x237)](_0x2cb7a0){const _0x56389a=_0x3a7433;_0x4dfe17[_0x56389a(0x2fb)](_0x2cb7a0,{'width':this['width'],'height':this[_0x56389a(0x2af)],'strokeWidth':en,'stroke':this[_0x56389a(0x38a)],'evented':!0x1,'fill':this[_0x56389a(0x2fe)]}),this[_0x56389a(0x319)]&&(_0x2cb7a0['save'](),_0x2cb7a0['transform'](0x1,0x0,0x0,0x1,this[_0x56389a(0x227)],this['_labelPosition']===_0x56389a(0x300)?0x0:-Q),ve[_0x56389a(0x2fb)](_0x2cb7a0,{'text':this[_0x56389a(0x2e8)],'color':this[_0x56389a(0x38a)]}),_0x2cb7a0[_0x56389a(0x3b4)]());}}var sn=Object[_0x3a7433(0x210)],nn=(_0x48e805,_0x3bbf22,_0x46ffc7,_0x3015ce)=>{const _0x3c4283=_0x3a7433;for(var _0x2dd8e6=_0x3015ce>0x1?void 0x0:_0x3015ce?sn(_0x3bbf22,_0x46ffc7):_0x3bbf22,_0xc11353=_0x48e805[_0x3c4283(0x34d)]-0x1,_0x35843a;_0xc11353>=0x0;_0xc11353--)(_0x35843a=_0x48e805[_0xc11353])&&(_0x2dd8e6=_0x35843a(_0x2dd8e6)||_0x2dd8e6);return _0x2dd8e6;},be=(_0x136beb,_0x2cfda9)=>(_0x5661e7,_0x2337b9)=>_0x2cfda9(_0x5661e7,_0x2337b9,_0x136beb);const rn=0x1389;let ke=class extends _0x572f10{constructor(_0x59124f,_0x537fa9,_0x3edef7,_0x38ee5){const _0x2ca67a=_0x3a7433;super(),_(this,_0x2ca67a(0x2ce),new Set()),_(this,_0x2ca67a(0x36d),null),(this[_0x2ca67a(0x374)]=_0x59124f,this[_0x2ca67a(0x24d)]=_0x537fa9,this[_0x2ca67a(0x2a0)]=_0x3edef7,this[_0x2ca67a(0x377)]=_0x38ee5,this[_0x2ca67a(0x20b)]());}[_0x3a7433(0x20b)](){const _0x2815fb=_0x3a7433;this[_0x2815fb(0x24d)]['currentSkeleton$'][_0x2815fb(0x368)](_0x45dbd4(this[_0x2815fb(0x34e)]),_0x174e30(_0x11e539=>{const _0x3a0b79=_0x2815fb;if(_0x11e539){const _0x489866=_0x11e539[_0x3a0b79(0x23a)];return _0x3f4d03(this[_0x3a0b79(0x2a0)][_0x3a0b79(0x26f)](this[_0x3a0b79(0x374)]['unitId']),this[_0x3a0b79(0x377)][_0x3a0b79(0x22c)])[_0x3a0b79(0x368)](_0x4024aa(([_0x5beef4,_0x47bec5])=>{const _0x4f05ff=_0x3a0b79,_0x225b6b=new Map();return _0x5beef4[_0x4f05ff(0x2eb)]((_0x265d4c,_0x29381b)=>{const _0x45b3a1=_0x4f05ff;if(_0x265d4c['sheetID']===_0x489866){const _0x43c0bb={..._0x265d4c};_0x43c0bb[_0x45b3a1(0x20f)]=this[_0x45b3a1(0x377)][_0x45b3a1(0x290)](_0x265d4c[_0x45b3a1(0x20f)]),_0x225b6b[_0x45b3a1(0x1bf)](_0x29381b,_0x43c0bb);}}),{'skeleton':_0x11e539,'cursors':_0x225b6b};}));}return _0x44fc3f({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x189ac1,cursors:_0x112b7a})=>{const _0x1bf499=_0x2815fb;this[_0x1bf499(0x22b)](),_0x189ac1&&this[_0x1bf499(0x38f)](_0x189ac1,_0x112b7a);}),this[_0x2815fb(0x24d)][_0x2815fb(0x299)][_0x2815fb(0x395)](_0xc98208=>{const _0x3af684=_0x2815fb;if(_0xc98208==null)return;const {skeleton:_0x331b90}=_0xc98208,{scene:_0x3a7677}=this[_0x3af684(0x374)];_0x3a7677['onPointerMove$'][_0x3af684(0x382)](_0x44a666(_0xc0a1e0=>{const _0x26bb5d=_0x3af684;var _0x28d417,_0x4f6b26;const {offsetX:_0x5a2dee,offsetY:_0x5bf726}=_0xc0a1e0,{x:_0x2808bc,y:_0x5783a9}=_0x3a7677['getRelativeToViewportCoord'](_0x4aee94[_0x26bb5d(0x22d)]([_0x5a2dee,_0x5bf726])),{scaleX:_0xf5c4e,scaleY:_0x41e5d4}=_0x3a7677[_0x26bb5d(0x2b3)](),_0x487e14=_0x3a7677['getViewport'](_0x5d3294[_0x26bb5d(0x1ee)]),_0x4b53ab=_0x3a7677[_0x26bb5d(0x38c)](_0x4aee94[_0x26bb5d(0x22d)]([_0x2808bc,_0x5783a9]),_0x487e14),_0x2d5246=_0x331b90[_0x26bb5d(0x2aa)](_0x5a2dee,_0x5bf726,_0xf5c4e,_0x41e5d4,_0x4b53ab);((_0x28d417=this['_lastPointer'])==null?void 0x0:_0x28d417['column'])===_0x2d5246['column']&&((_0x4f6b26=this[_0x26bb5d(0x36d)])==null?void 0x0:_0x4f6b26[_0x26bb5d(0x200)])===_0x2d5246[_0x26bb5d(0x200)]||this[_0x26bb5d(0x2ce)][_0x26bb5d(0x2eb)](_0xbde128=>{const _0x41a841=_0x26bb5d;_0xbde128[_0x41a841(0x3a7)](_0x2d5246);});},0x64));});}[_0x3a7433(0x38f)](_0x70fe8d,_0x27b59b){const _0x1cd022=_0x3a7433;var _0x198556;const _0x289442=(_0x198556=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x198556[_0x1cd022(0x373)];if(!_0x289442)return;const _0x1a26db=this['_getSheetObject']();if(!_0x1a26db)return;this[_0x1cd022(0x2ce)][_0x1cd022(0x2eb)](_0x10ec9d=>{const _0x4bbd8c=_0x1cd022;_0x10ec9d[_0x4bbd8c(0x1e1)]();});const {scene:_0x5943b1}=_0x1a26db,_0x2bddff=on(Array['from'](_0x27b59b[_0x1cd022(0x2ef)]()))[_0x1cd022(0x3d1)](_0x13113d=>{const _0x373e25=_0x1cd022,{color:_0x37c172,range:_0x137f02,name:_0x31ff95,selection:_0x1130f2,sheetID:_0x2d99a9}=_0x13113d,{startColumn:_0x19463a,startRow:_0x2a59aa,endColumn:_0xbce5b9,endRow:_0x17255f}=_0x137f02,_0x48d86b=_0x3ba7ce(_0x2a59aa,_0x19463a,_0x5943b1,_0x289442),_0x46ff06=_0x3ba7ce(_0x17255f,_0xbce5b9,_0x5943b1,_0x289442),{columnHeaderHeightAndMarginTop:_0x58eed1}=_0x289442,{startX:_0x1f1514,startY:_0x5bd0e8}=_0x48d86b,{endX:_0x1d56aa,endY:_0x1eae91}=_0x46ff06,_0x246584=_0x1d56aa-_0x1f1514,_0x1bba81=_0x1eae91-_0x5bd0e8,_0x261c8e={'labelPosition':_0x5bd0e8-_0x58eed1>=Q?_0x373e25(0x1b4):_0x373e25(0x300),'sheetID':_0x2d99a9,'range':_0x137f02,'color':_0x37c172,'name':_0x31ff95,'selection':_0x1130f2,'left':_0x1f1514,'top':_0x5bd0e8,'width':_0x246584,'height':_0x1bba81,'evented':!0x1,'zIndex':rn};return new tn(_0x31ff95,_0x261c8e);});_0x5943b1[_0x1cd022(0x406)](_0x2bddff,qi),this[_0x1cd022(0x2ce)]=new Set(_0x2bddff);}[_0x3a7433(0x22b)](){const _0x1a4f06=_0x3a7433;var _0xf1b4c3;(_0xf1b4c3=this['_cursors'])==null||_0xf1b4c3[_0x1a4f06(0x2eb)](_0x1ec03b=>_0x1ec03b[_0x1a4f06(0x2c4)]());}[_0x3a7433(0x1da)](){const _0x2b20d1=_0x3a7433;return _0xbc8dbe(this['_context']['unit'],this[_0x2b20d1(0x374)]);}};ke=nn([be(0x1,_0x27384c(_0x3e00d6)),be(0x2,_0x27384c(H)),be(0x3,_0x27384c(_0x54d291))],ke);function on(_0x3b61e9){const _0x5eab2d=_0x3a7433,_0x52283f=new Map();return _0x3b61e9[_0x5eab2d(0x2eb)](_0x20eea2=>{const _0x90d59f=_0x5eab2d;if(_0x52283f['has'](_0x20eea2[_0x90d59f(0x1c9)])){const _0x5880af=_0x52283f[_0x90d59f(0x359)](_0x20eea2[_0x90d59f(0x1c9)]);_0x5880af[_0x90d59f(0x386)]+=',\x20'+_0x20eea2['name'];}else _0x52283f[_0x90d59f(0x1bf)](_0x20eea2['selection'],_0x20eea2);}),Array[_0x5eab2d(0x27d)](_0x52283f[_0x5eab2d(0x2ef)]());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x1778e1,_0xa9ad6d,_0x1c13cc,_0x4e71d6)=>{const _0x1ec3b7=_0x3a7433;for(var _0x383a9e=_0x4e71d6>0x1?void 0x0:_0x4e71d6?an(_0xa9ad6d,_0x1c13cc):_0xa9ad6d,_0x241d45=_0x1778e1[_0x1ec3b7(0x34d)]-0x1,_0x11b978;_0x241d45>=0x0;_0x241d45--)(_0x11b978=_0x1778e1[_0x241d45])&&(_0x383a9e=_0x11b978(_0x383a9e)||_0x383a9e);return _0x383a9e;},F=(_0x1e213d,_0x4cdafc)=>(_0xcd4c75,_0x43fdb0)=>_0x4cdafc(_0xcd4c75,_0x43fdb0,_0x1e213d);let _e=class extends _0x1c0642{constructor(_0x4dab2a,_0x2feb19,_0x5e81c0,_0x405e45,_0x36a8b7,_0x5ce15d){const _0x1fb441=_0x3a7433;super(),this[_0x1fb441(0x405)]=_0x4dab2a,this[_0x1fb441(0x332)]=_0x2feb19,this['_collaborationUIEventService']=_0x5e81c0,this[_0x1fb441(0x2a3)]=_0x405e45,this['_notificationService']=_0x36a8b7,this['_localeService']=_0x5ce15d,this['_setupBeforeClosingHandler'](),this[_0x1fb441(0x20c)]();}[_0x3a7433(0x2ea)](){const _0x2d846b=_0x3a7433;this['disposeWithMe'](this['_beforeCloseService'][_0x2d846b(0x3e4)](()=>{const _0x1b027a=_0x2d846b;if(this[_0x1b027a(0x332)]['saveTaskMap']['size'])return this[_0x1b027a(0x306)]['t'](_0x1b027a(0x407));}));}['_initEvent'](){const _0x3972b1=_0x3a7433;this[_0x3972b1(0x3f9)](this[_0x3972b1(0x292)][_0x3972b1(0x2a5)]['subscribe'](_0x351078=>{const _0x51f708=_0x3972b1;_0x351078['id']===_0xb775dc[_0x51f708(0x2bc)]&&this[_0x51f708(0x2a3)][_0x51f708(0x1bc)]({'type':_0x5e610d['Warning'],'content':this[_0x51f708(0x306)]['t'](_0x51f708(0x24b))}),_0x351078['id']===_0xb775dc[_0x51f708(0x268)]&&this['_messageService'][_0x51f708(0x1bc)]({'type':_0x5e610d[_0x51f708(0x239)],'content':this[_0x51f708(0x306)]['t']('collaboration.closeRoom')}),_0x351078['id']===_0xb775dc[_0x51f708(0x2e5)]&&this[_0x51f708(0x3eb)]['show']({'title':this[_0x51f708(0x306)]['t'](_0x51f708(0x1d6)),'content':this[_0x51f708(0x306)]['t']('permission.content'),'type':'error','duration':0x0}),_0x351078['id']===_0xb775dc[_0x51f708(0x218)]&&this['_messageService']['show']({'type':_0x5e610d[_0x51f708(0x354)],'content':this['_localeService']['t'](_0x51f708(0x342))+'('+_0x351078[_0x51f708(0x217)]+')'}),_0x351078['id']===_0xb775dc[_0x51f708(0x2e1)]&&this[_0x51f708(0x2a3)][_0x51f708(0x1bc)]({'type':_0x5e610d[_0x51f708(0x239)],'content':this[_0x51f708(0x306)]['t'](_0x351078['data']||'')}),_0x351078['id']===_0xb775dc[_0x51f708(0x3fb)]&&this['_messageService'][_0x51f708(0x1bc)]({'type':_0x5e610d['Warning'],'content':this[_0x51f708(0x306)]['t']('session.will-retry')}),_0x351078['id']===_0xb775dc[_0x51f708(0x3e5)]&&this[_0x51f708(0x2a3)][_0x51f708(0x1bc)]({'type':_0x5e610d[_0x51f708(0x354)],'content':this['_localeService']['t'](_0x51f708(0x257))}),_0x351078['id']===_0xb775dc[_0x51f708(0x28a)]&&this[_0x51f708(0x2a3)][_0x51f708(0x1bc)]({'type':_0x5e610d[_0x51f708(0x354)],'content':this[_0x51f708(0x306)]['t']('session.collaboration-timeout')});}));}};function _0x4974(){const _0x2f82af=['split','_maxFormulaLimit','from','arc','none','_onCursorDelete','getTypeOfUnitDisposed$','MoveRangeCommandId','PY_RUNTIME_SCRIPT_ERROR','_toggleOffline','_updateURLWithCurrentState','defineProperty','mutations','_startDocCollabCursor','_clearPolling','SUBMIT_CHANGESET_TIMEOUT','saveOfflineData','bind','createInstance','collabStatus.syncing','_transformService','getColorFromTheme','_memberService','_collaborationUIEventService','next','InsertRangeMoveDownCommandId','textRanges','origin','Failed','cursorInfo$','currentSkeleton$','url(#$1','urlChange$','_checkAndWaitForCalculationPermission','_scheduleHeartbeat','_instanceService','0\x200\x2017\x2016','_collabCursorController','stageInfo','cursorInfo','_messageService','_univerInstanceService','event$','FETCH_MISS','onPointerEnter$','_showGuardMessage','UNIVER_SHEET','getCellPositionByOffset','...','_refreshCollabCursors','measureText','wsSessionTicketUrl','height','REDEMPTION_USER_REDEEM_TIMES_EXCEED','svg','getOffsetConfig','getAncestorScale','newValue','find','asObservable','M0\x200H16V16H0z','save','_uploadLog','addHandlerCallback','getCurrentRevOfUnit','OTHER_CLIENT_EDITING','getParam','_startSheetCollabCursor','executionId','sessionStatus$','_getSessionTicket','getUnhiddenWorksheets','transformSelections','dispose','_scheduleSaving','code','entityInit$','ticket','_initUnhandledRejectionListener','getUndoRedoMutationParamsCache','string','UNIVER_DOC','_saveCache','_cursors','getSkeleton','_config','APPLY_PERMISSION_DENIED','entries','whenReady','addClipboardHook','DATA_SOURCE_TOO_LARGE','engine','_initResize','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_initStatusComponent','univerjs-icon\x20univerjs-icon-','_initCommandInterceptor','transformMutation','clearInterval','syncEditingCollabCursor','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','OffLineIcon','JOIN_ROOM_FAILED','_clearOtherTimers','executeCommand','_assignedColors','PERMISSION_DENIED','green.600','setConfig','_name','_initEntityListener','_setupBeforeClosingHandler','forEach','_docSyncEditingCollabCursorService','_logService','post','values','INTERNAL_ERROR','use','includes','RemoveRowCommandId','ENTITLE_DUP_SUBSCRIPTION','getRenderById','disposeUnit','path','_handleJoinEvent','reconnect','getStateCache','drawWith','activeSheet$','startColumn','_backgroundColor','toString','bottom','assignAColorForMemberID','formula.calculation.started','CURRENT_STATUS_CANNOT_OPERATE','unit','jiqing.500','_localeService','INVITE_CODE_HAS_BEEN_UES','SNAPSHOT_HAS_BEEN_REMOVED','defIds','START_CALCULATION','_send','limitInfo','currentUsage','fillStyle','createSocket','772005MXKUCP','reason','156lmfNLd','_cachedData','?taskId=','InsertColCommandId','invokeId','LICENSE_DISTRO_REJECTED','_transformPreviousActiveRange','_hovered','div','_selfUnitIDs','USER_IS_ANONYMOUS','white','complete','hovered','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','isArray','_collabSessionService','registerRefRange','_online','_refRangeService','_textBubble','_monkeyPatchLogService','_initDependencies','translate(.97)','blue.400','_initUserListener','popstate','runId','APPLY_DUPLICATED','SYNCED','closePath','PAYMENT_CHANNEL_NOT_SUPPORT','_localCacheService','catch','_getFormulaLimitStatus','formula.calculation.unable','[CollaborationDataLoaderController]','_memberID','_anchor','_session','editingUnit','font','some','OFFLINE','attrs','429936xDRAQc','rgba(255,\x20255,\x20255,\x200.01)','now','collaboration.closeRoom','_configService','_registerRenderDependencies','red.300','max','m1Prime','/universer-api/license/formula/limit/status','addEventListener','startsWith','getDocRanges','off-line-icon','length','dispose$','maxFormulaLimit','UniverIcon','INVITE_CODE_ALREADY_BOUND','LOGIN_FAILED','collabCursorState$','Error','REDEMPTION_CODE_NOT_STARTED','_docSkeletonManagerService','LICENSE_EXPORT_SIZE_EXCEEDED','RemoveColCommandId','get','url(#on-line-icon_clip0_910_349)','colorChannel1','_drawTextRange','UPDATE_CURSOR','displayName','has','_uiPartsService','ALREADY_EXISTS','OTHER_CLIENTS_EDITING','_hover','_hasFormulaInDirtyRanges','isActive','purple.300','130907EkeQZN','pipe','setActiveRange','LICENSE_IMPORT_SIZE_EXCEEDED','hide','on-line-icon_clip0_910_349','_lastPointer','searchParams','YUUMI_ALL_TABLES_IS_INVALID','ACTIVE_UNIT_EVENT_CHANNEL','YUUMI_AI_RUN_FAILED','stage','skeleton','_context','replaceDocRanges','removeEventListener','_themeService','YUUMI_SUBSCRIPTION_NOT_FOUND','_handleLeaveEvent','doc.mutation.rich-text-editing','fill','#FFF','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','CONNECTOR_DATA_TOO_LARGE','getValue','AWAITING_WITH_PENDING','getFocusedUnit','subscribeEvent','_currentUsage','all','getUnitId','name','beginPath','ERROR_AGAIN','_toggleOnline','_color','_shapes','getVpScrollXYInfoByPosToVp','beforeCommandExecuted','unsubscribe','_updateCollabCursors','getConfig','triggerDblclick','_pollingInterval','fillRule','USER_NOT_FOUND','subscribe','REDEMPTION_CODE_HAS_BEEN_CREATED','colno','TEXT','_docTransformIMECacheService','off-line-icon_clip0_910_343','SNAPSHOT_INVALID_SNAPSHOT','getCollabEntity$','_renderManagerService','roomMembers$','endColumn','_scheduleClearOtherTimer','ranges','WECHAT_HAS_BEEN_BOUND','_anchorDot','OnLineIcon','error','/universer-api/frontend/logs','onMouseMove','YUUMI_UNABLE_LOAD_URL','replaceState','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','toRgbString','_labelPosition','YUUMI_ASYNCIO_CANCELLED','2803880OlaJSl','totalFormulasToCalculate','push','[Unhandled\x20Rejection]:\x20','ENTITLE_COUPON_EXPIRED','_revisionService','restore','history','_saveTaskMap','setUndoRedoMutationParamsCache','setParam','uni.network.url-service','_entities','_getSaveTimeout','COMPLETION_FINISHED','univer-flex\x20univer-items-center','_handleHover','enableFrontendLog','_urlService','m2Prime','_handleEvent','USER_NOT_INVITED_CODE','_onRefRangeChange','_scene','message','APPLY_REJECT','startRow','with','_collabCursorState$','pluginName','EMAIL_VERIFY_CODE_MISMATCH','_docTransformStateCacheService','disableLocalCache','USERS_LEAVE','APPLY_REVISION_CONFILICT','map','getSheetId','transformMutationsWithChangeset','dirtyRanges','_lastResponseTimestamp','_collaborationController','_handleHeartbeatEvent','currentColor','loadUnit','_imageIoService','socket$','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','size','assign','getformulaLimitStatusUrl','replace','collabStatus.conflict','parseInt','getUnit','registerBeforeClose','SOCKET_FAILED','_unitStatus','DeleteRangeMoveUpCommandId','black','getActiveSheet','collabStatus.synced','_notificationService','onLocalMutation','application/json','9pVZYyn','ENTITLE_COUPON_USED_UP','search','getMemberID','range','_registerDependencies','_taskIds','http://www.w3.org/2000/svg','text','Unknown\x20user','_checkCalculationAvailable','disposeWithMe','_createSocketURL','SOCKET_FAILED_RETRY','functionsExecutedState','_cursorInfo$','_range','NOT_FOUND','MUTATION','unitID','NOT_COLLAB','setShapeProps','_updateLocalCursor','_beforeCloseService','addObjects','collaboration.offline-data-not-saved','/run/','type','3CIoAOY','add','storage','filename','getMember','collab-rect-range-','location','roomMembers','_status$','top','deepClone','contains','RECT','REDEMPTION_INVALID_CODE','resize','sessionTicket','YUUMI_URL_COL_OUT_OF_RANGE','show','random','backgroundColor','set','collab-text-anchor-','ENTITLE_REPORT_LIMIT_EXCEED','symbol','1em','fillText','_unitOnClients','_setFormulaLimitStatus','_cursor','unhandledrejection','selection','REDEMPTION_CODE_FULLY_REDEEMED','_injector','current','updateOfflineData','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','INVITE_CODE_REQUIRED','ENTITLE_CAN_NOT_BUY_LOWER_OTP','1691942EnPhCh','collaboration-client-ui.config','exhaustSavingTask','lineTo','flatMap','permission.title','_colorIndex','_applyCommand','_colorAssignService','_getSheetObject','children','collabStatus.offline','_localStorageService','unload','_ensureSubject','[Window\x20Error]:\x20','makeDirty','yellow.400','status$','override','_heartbeatTimer','univer-mr-2\x20univer-flex\x20univer-text-xl','idSuffix','registerRenderModule','_onCursorUpdate','ENTITLE_NEED_BILLING_ADDRESS','_entityInit$','startFormulaLimitUrl','YUUMI_TABLE_NOT_FOUND_IN_UNIT','VIEW_MAIN','init','UNAUTHENTICATED','AWAITING','unshift','_disabled','_removeClearOtherTimer','_dataLoaderService','UNRECOGNIZED','setTimeout','onCommandExecuted','_collaborationSessionService','stack','findNodePositionByCharIndex','AUTHORIZE_CODE_ILLEGAL','send','clearTimeout','_initWindowErrorListener','row','_initStatusListener','getSheetBySheetId','HEADER_MENU','_roomMembers$','ONLINE','_transformHistoryAndStateStack','transformIMECache','defs','_syncEditingCollabCursorService','4404340FSojZj','_init','_initEvent','pushState','INVALID_ARGUMENT','color','getOwnPropertyDescriptor','result','_commandService','ENTITLE_INVALID_COUPON_CODE','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_transformUndoRedoStack','_updateSubUnitFromURLParams','data','CONFLICT','params','_httpService','REDEMPTION_USER_NOT_ELIGIBLE','addObject','848307XelzTK','InsertRowCommandId','getActiveRange','round','setStateCache','collab-client.tooltip.reconnect','unitId','ENTITLE_USE_COUPON_NOT_1ST_TRADE','formula.calculation.waiting','_render','width','YUUMI_RATE_OVER_LIMIT','TOO_MANY_REQUESTS','removeParam','_removeCollabCursors','currentTheme$','FromArray','MOBILE_VERIFY_CODE_MISMATCH','then','debug','_setupSubUnitSync','REDEMPTION_CODE_INACTIVE','eventID','transformStateCache','undoState','delete','_draw','getCellMatrix','Warning','sheetId','_id','getCurrentSelections','SUCCESS','_getAnchorBounding','PENDING','_docStateChangeManagerService','_drawRectRange','[LogService\x20Error]:\x20','evenodd','getUnitStatus$','_cursorShapes','getMergeData','YUUMI_CONNECTOR_URL_NOT_FOUND','_getMergeRange','_eventUnsubscribe','min','collaboration.single-unit.warning','href','_sheetSkeletonManagerService','on-line-icon','transformRemoteChangeset','registerComponent','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','LOGIN_TOKEN_PROCESSING_FAILED','stringify','subunit','getRangePointData','clipPath','session.connection-failed','YUUMI_NO_CUBOID_FOR_QUESTION','_hideTimer','ENSURE_SNAPSHOT_EXECUTION','ENTITLE_CHAT_LIMIT_EXCEED','/universer-api/license/formula/limit/done','getItem','key','isEditing','onPointerLeave$','[RemoteUniscriptService]:\x20no\x20focused\x20unit','requireSession','11cIeOOz','onRendered','INVALID_INVITE_CODE','subUnitId','tag','CLOSE_ROOM','_getScale','UNDEFINED','ENTITLE_INSUFFICIENT_QUOTA','body','LICENSE_MAX_UNITS_EXCEEDED','NO_OTHER_CLIENTS_EDITING','getCollabCursors$','mask','getTypeOfUnitAdded$','memberID','_docTransformSelectionsService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_initCommandExecutedListener','redoState','xlink:href','setItem','onTransformChange$','enableLocalCache'];_0x4974=function(){return _0x2f82af;};return _0x4974();}_e=cn([F(0x0,_0x18dba0),F(0x1,_0x3d14fc),F(0x2,_0x27384c(_0x5d3b6b)),F(0x3,_0x52022d),F(0x4,_0x7f620d),F(0x5,_0x27384c(_0x5875ca))],_e);var _n=Object[_0x3a7433(0x210)],ln=(_0x1d2d8b,_0x2ea932,_0x4f0edc,_0x29d204)=>{const _0xb60b78=_0x3a7433;for(var _0x1d8a46=_0x29d204>0x1?void 0x0:_0x29d204?_n(_0x2ea932,_0x4f0edc):_0x2ea932,_0x47bc54=_0x1d2d8b[_0xb60b78(0x34d)]-0x1,_0x355270;_0x47bc54>=0x0;_0x47bc54--)(_0x355270=_0x1d2d8b[_0x47bc54])&&(_0x1d8a46=_0x355270(_0x1d8a46)||_0x1d8a46);return _0x1d8a46;},ne=(_0xfad9d,_0x59b2e1)=>(_0x54f1f8,_0x265784)=>_0x59b2e1(_0x54f1f8,_0x265784,_0xfad9d);let le=class extends _0x1c0642{constructor(_0xf09980,_0x35fef4,_0x53e414,_0x568339){const _0x14570f=_0x3a7433;super(),_(this,_0x14570f(0x337)),(this[_0x14570f(0x1cb)]=_0xf09980,this[_0x14570f(0x21a)]=_0x35fef4,this[_0x14570f(0x2ed)]=_0x53e414,this[_0x14570f(0x1f9)]=_0x568339,this['_init']());}[_0x3a7433(0x20b)](){const _0x17ff9d=_0x3a7433;this[_0x17ff9d(0x1ff)](),this['_initUnhandledRejectionListener'](),this[_0x17ff9d(0x327)](),this[_0x17ff9d(0x32b)]();}[_0x3a7433(0x32b)](){const _0x447c6b=_0x3a7433;this[_0x447c6b(0x3f9)](this['_collaborationSessionService'][_0x447c6b(0x3db)][_0x447c6b(0x395)](_0x36a145=>{const _0xaed4f2=_0x447c6b;this[_0xaed4f2(0x337)]=_0x36a145==null?void 0x0:_0x36a145['memberID'];}));}[_0x3a7433(0x1ff)](){const _0x508d07=_0x3a7433,_0x1932f3=_0x1310eb=>{const _0x528da6=_0x474c;var _0x2e5eda;this[_0x528da6(0x2b9)](_0x528da6(0x3a5),_0x528da6(0x1e0)+_0x1310eb[_0x528da6(0x3c6)]+'\x20at\x20'+_0x1310eb[_0x528da6(0x40d)]+':'+_0x1310eb['lineno']+':'+_0x1310eb[_0x528da6(0x397)]+'\x0a'+(((_0x2e5eda=_0x1310eb['error'])==null?void 0x0:_0x2e5eda[_0x528da6(0x1fa)])||''));};window[_0x508d07(0x349)](_0x508d07(0x3a5),_0x1932f3),this[_0x508d07(0x3f9)](()=>{const _0x1c6b36=_0x508d07;window[_0x1c6b36(0x376)](_0x1c6b36(0x3a5),_0x1932f3);});}[_0x3a7433(0x2c9)](){const _0x5259f6=_0x3a7433,_0x55d574=_0x3de372=>{const _0x549985=_0x474c;this['_uploadLog'](_0x549985(0x3a5),_0x549985(0x3b1)+_0x3de372[_0x549985(0x311)]);};window[_0x5259f6(0x349)](_0x5259f6(0x1c8),_0x55d574),this['disposeWithMe'](()=>{const _0x1119b6=_0x5259f6;window[_0x1119b6(0x376)](_0x1119b6(0x1c8),_0x55d574);});}['_monkeyPatchLogService'](){const _0x468611=_0x3a7433,_0x14afd5=this['_logService'][_0x468611(0x3a5)][_0x468611(0x28c)](this[_0x468611(0x2ed)]);this[_0x468611(0x2ed)]['error']=(..._0x14fa80)=>{const _0x27ca51=_0x468611,_0x38336c=_0x14fa80[_0x27ca51(0x3d1)](_0x15fb34=>_0x15fb34 instanceof Error?_0x15fb34['message']+'\x0a'+_0x15fb34[_0x27ca51(0x1fa)]:String(_0x15fb34))['join']('\x20');this[_0x27ca51(0x2b9)](_0x27ca51(0x3a5),_0x27ca51(0x242)+_0x38336c),_0x14afd5(..._0x14fa80);},this[_0x468611(0x3f9)](()=>{this['_logService']['error']=_0x14afd5;});}[_0x3a7433(0x2b9)](_0x1c1c8f,_0x4b3b63){const _0x171f4e=_0x3a7433;try{const _0x403897={'userId':this[_0x171f4e(0x337)],'logLabel':_0x1c1c8f,'content':_0x4b3b63};this['_httpService'][_0x171f4e(0x2ee)](_0x171f4e(0x3a6),{'body':_0x403897})[_0x171f4e(0x333)](()=>{});}catch{}}};le=ln([ne(0x0,_0x27384c(_0x546954)),ne(0x1,_0x27384c(_0x37faeb)),ne(0x2,_0x2e91cd),ne(0x3,_0x27384c(_0x33dafd))],le);const hn=_0x3a7433(0x1d2),_t={};var un=Object['getOwnPropertyDescriptor'],dn=(_0xe1f34b,_0x211473,_0x43346a,_0x3c2c4f)=>{const _0x5e3623=_0x3a7433;for(var _0x52bb87=_0x3c2c4f>0x1?void 0x0:_0x3c2c4f?un(_0x211473,_0x43346a):_0x211473,_0x1d3a25=_0xe1f34b[_0x5e3623(0x34d)]-0x1,_0x4eadc0;_0x1d3a25>=0x0;_0x1d3a25--)(_0x4eadc0=_0xe1f34b[_0x1d3a25])&&(_0x52bb87=_0x4eadc0(_0x52bb87)||_0x52bb87);return _0x52bb87;},lt=(_0x4b6b7b,_0x723b16)=>(_0x1a9059,_0x4c79eb)=>_0x723b16(_0x1a9059,_0x4c79eb,_0x4b6b7b);let he=class{constructor(_0x5b889c,_0x398cc2){const _0x11348d=_0x3a7433;this[_0x11348d(0x28f)]=_0x5b889c,this[_0x11348d(0x39d)]=_0x398cc2;}[_0x3a7433(0x207)](_0x47688d){const _0x498fb6=_0x3a7433;this[_0x498fb6(0x215)](_0x47688d),this[_0x498fb6(0x318)](_0x47688d);}['transformRemoteChangeset'](_0x29c646){const _0x43bd3b=_0x3a7433,{unitID:_0x1cb9c5}=_0x29c646,_0x2968d5=this['_renderManagerService'][_0x43bd3b(0x2f5)](_0x1cb9c5)[_0x43bd3b(0x3c9)](_0x12d831),{redoCache:_0x279163}=_0x2968d5[_0x43bd3b(0x2ca)]();if(_0x279163[_0x43bd3b(0x34d)]===0x0)return _0x29c646;let _0x4fa4bb=_0x144735['deepClone'](_0x29c646[_0x43bd3b(0x287)][0x0]);for(let _0x381de2=0x0;_0x381de2<_0x279163[_0x43bd3b(0x34d)];_0x381de2++){const _0x1f4ae5={'id':_0x43bd3b(0x37a),'params':{..._0x279163[_0x381de2]}},_0xcf792d=this[_0x43bd3b(0x28f)][_0x43bd3b(0x2dc)](_0x4fa4bb,_0x1f4ae5,!0x1);if(_0x28a191(_0xcf792d))throw _0xcf792d[_0x43bd3b(0x3a5)];_0x4fa4bb=_0xcf792d['m1Prime'];}return{..._0x144735[_0x43bd3b(0x1b5)](_0x29c646),'mutations':[_0x4fa4bb]};}[_0x3a7433(0x215)](_0x42e2b6){const _0x195836=_0x3a7433,{unitID:_0x4faad9}=_0x42e2b6,_0x2477b8=this['_renderManagerService']['getRenderById'](_0x4faad9)[_0x195836(0x3c9)](_0x12d831),{undoCache:_0x4fb13c,redoCache:_0x7f5dfc}=_0x2477b8[_0x195836(0x2ca)]();if(_0x4fb13c['length']===0x0||_0x7f5dfc['length']===0x0)return;const _0x28d8d2=[],_0x39920a=[];let _0x1cafdc=_0x144735[_0x195836(0x1b5)](_0x42e2b6[_0x195836(0x287)][0x0]),_0xc62c36=_0x144735['deepClone'](_0x42e2b6['mutations'][0x0]);for(let _0x265342=_0x4fb13c[_0x195836(0x34d)]-0x1;_0x265342>=0x0;_0x265342--){const _0x26641f={'id':_0x195836(0x37a),'params':{..._0x4fb13c[_0x265342]}},_0x44f14c={'id':_0x195836(0x37a),'params':{..._0x7f5dfc[_0x265342]}},_0xf97b3d=this[_0x195836(0x28f)][_0x195836(0x2dc)](_0x1cafdc,_0x26641f,!0x1),_0x4b3f54=this['_transformService'][_0x195836(0x2dc)](_0xc62c36,_0x44f14c,!0x1);if(_0x28a191(_0xf97b3d))throw _0xf97b3d[_0x195836(0x3a5)];if(_0x28a191(_0x4b3f54))throw _0x4b3f54['error'];_0x28d8d2[_0x195836(0x1f2)](_0xf97b3d[_0x195836(0x3c1)][_0x195836(0x219)]),_0x39920a[_0x195836(0x1f2)](_0x4b3f54['m2Prime'][_0x195836(0x219)]),_0x1cafdc=_0xf97b3d[_0x195836(0x347)],_0xc62c36=_0x4b3f54['m1Prime'];}_0x2477b8[_0x195836(0x3b7)]({'undoCache':_0x28d8d2,'redoCache':_0x39920a});}[_0x3a7433(0x318)](_0x38e6fd){const _0x4ea42c=_0x3a7433,{unitID:_0x49dfd3}=_0x38e6fd,_0x4b5f6d=this[_0x4ea42c(0x39d)]['getRenderById'](_0x49dfd3)[_0x4ea42c(0x3c9)](_0x12d831),_0x25341d=_0x4b5f6d[_0x4ea42c(0x21f)]();if(_0x25341d==null)return;const _0x2cd0ec=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x38e6fd[_0x4ea42c(0x401)],'actions':null,'textRanges':[_0x25341d]}}],_0x309112=this[_0x4ea42c(0x28f)][_0x4ea42c(0x3d3)](_0x38e6fd,_0x2cd0ec);if(!_0x4d115f(_0x309112))throw _0x309112[_0x4ea42c(0x3a5)];const _0x5d6e44=_0x309112[_0x4ea42c(0x3c1)][0x0][_0x4ea42c(0x219)][_0x4ea42c(0x295)];Array[_0x4ea42c(0x321)](_0x5d6e44)&&_0x5d6e44['length']&&_0x4b5f6d[_0x4ea42c(0x369)](_0x5d6e44[0x0]);}};he=dn([lt(0x0,_0x3417ba),lt(0x1,_0x47acbb)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x494049,_0x1b4fd5,_0x2e3c5e,_0x4f9dd2)=>{for(var _0x5bec39=_0x4f9dd2>0x1?void 0x0:_0x4f9dd2?Sn(_0x1b4fd5,_0x2e3c5e):_0x1b4fd5,_0x2a3684=_0x494049['length']-0x1,_0x174925;_0x2a3684>=0x0;_0x2a3684--)(_0x174925=_0x494049[_0x2a3684])&&(_0x5bec39=_0x174925(_0x5bec39)||_0x5bec39);return _0x5bec39;},Le=(_0x1557ca,_0x5680aa)=>(_0x570f15,_0x2b51fd)=>_0x5680aa(_0x570f15,_0x2b51fd,_0x1557ca);let ue=class{constructor(_0x3e99f6,_0x5ee8f2,_0x2610d4){const _0x3b7503=_0x3a7433;this[_0x3b7503(0x1cb)]=_0x3e99f6,this['_transformService']=_0x5ee8f2,this[_0x3b7503(0x240)]=_0x2610d4;}[_0x3a7433(0x234)](_0x199489){const _0x1c085d=_0x3a7433;this[_0x1c085d(0x206)](_0x199489);}[_0x3a7433(0x24f)](_0x311db4){const _0x232e52=_0x3a7433,{unitID:_0x111b31}=_0x311db4,{collaboration:_0x43b983}=this[_0x232e52(0x240)]['getStateCache'](_0x111b31);if(_0x43b983[_0x232e52(0x34d)]===0x0)return _0x311db4;let _0x4ef69c=_0x144735[_0x232e52(0x1b5)](_0x311db4['mutations'][0x0]);for(let _0x5ecbfa=0x0;_0x5ecbfa<_0x43b983[_0x232e52(0x34d)];_0x5ecbfa++){const _0x6cc46c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x43b983[_0x5ecbfa][_0x232e52(0x223)],..._0x43b983[_0x5ecbfa]['redoState']}},_0xdb2d78=this['_transformService'][_0x232e52(0x2dc)](_0x4ef69c,_0x6cc46c,!0x1);if(_0x28a191(_0xdb2d78))throw _0xdb2d78[_0x232e52(0x3a5)];_0x4ef69c=_0xdb2d78[_0x232e52(0x347)];}return{..._0x144735['deepClone'](_0x311db4),'mutations':[_0x4ef69c]};}[_0x3a7433(0x206)](_0x5522dc){const _0x3a2e28=_0x3a7433,{unitID:_0x565c18}=_0x5522dc,{history:_0x34b287,collaboration:_0x12ccf0}=this['_docStateChangeManagerService'][_0x3a2e28(0x2fa)](_0x565c18);if(_0x34b287[_0x3a2e28(0x34d)]===0x0&&_0x12ccf0[_0x3a2e28(0x34d)]===0x0)return;const _0x574f93=[],_0x5bf53c=[];let _0x76bd37=_0x144735[_0x3a2e28(0x1b5)](_0x5522dc['mutations'][0x0]),_0x583e0b=_0x144735[_0x3a2e28(0x1b5)](_0x5522dc[_0x3a2e28(0x287)][0x0]);for(let _0xe27962=_0x34b287[_0x3a2e28(0x34d)]-0x1;_0xe27962>=0x0;_0xe27962--){const _0x3399a6={'id':_0x3a2e28(0x37a),'params':{'unitId':_0x34b287[_0xe27962][_0x3a2e28(0x223)],..._0x34b287[_0xe27962][_0x3a2e28(0x235)]}},_0x46532c={'id':_0x3a2e28(0x37a),'params':{'unitId':_0x34b287[_0xe27962][_0x3a2e28(0x223)],..._0x34b287[_0xe27962][_0x3a2e28(0x276)]}},_0x531f8e=this[_0x3a2e28(0x28f)][_0x3a2e28(0x2dc)](_0x76bd37,_0x3399a6,!0x1),_0x318284=this[_0x3a2e28(0x28f)][_0x3a2e28(0x2dc)](_0x583e0b,_0x46532c,!0x1);if(_0x28a191(_0x531f8e))throw _0x531f8e[_0x3a2e28(0x3a5)];if(_0x28a191(_0x318284))throw _0x318284[_0x3a2e28(0x3a5)];_0x574f93['unshift']({..._0x34b287[_0xe27962],'undoState':_0x531f8e[_0x3a2e28(0x3c1)]['params'],'redoState':_0x318284[_0x3a2e28(0x3c1)][_0x3a2e28(0x219)]}),_0x76bd37=_0x531f8e[_0x3a2e28(0x347)],_0x583e0b=_0x318284[_0x3a2e28(0x347)];}_0x76bd37=_0x144735[_0x3a2e28(0x1b5)](_0x5522dc[_0x3a2e28(0x287)][0x0]),_0x583e0b=_0x144735['deepClone'](_0x5522dc[_0x3a2e28(0x287)][0x0]);for(let _0xd6894c=_0x12ccf0[_0x3a2e28(0x34d)]-0x1;_0xd6894c>=0x0;_0xd6894c--){const _0x10484d={'id':_0x3a2e28(0x37a),'params':{'unitId':_0x12ccf0[_0xd6894c]['unitId'],..._0x12ccf0[_0xd6894c][_0x3a2e28(0x235)]}},_0x1ab7f5={'id':_0x3a2e28(0x37a),'params':{'unitId':_0x12ccf0[_0xd6894c][_0x3a2e28(0x223)],..._0x12ccf0[_0xd6894c]['redoState']}},_0x3f91f9=this[_0x3a2e28(0x28f)]['transformMutation'](_0x76bd37,_0x10484d,!0x1),_0x587608=this[_0x3a2e28(0x28f)]['transformMutation'](_0x583e0b,_0x1ab7f5,!0x1);if(_0x28a191(_0x3f91f9))throw _0x3f91f9[_0x3a2e28(0x3a5)];if(_0x28a191(_0x587608))throw _0x587608[_0x3a2e28(0x3a5)];_0x5bf53c[_0x3a2e28(0x1f2)]({..._0x12ccf0[_0xd6894c],'undoState':_0x3f91f9[_0x3a2e28(0x3c1)][_0x3a2e28(0x219)],'redoState':_0x587608[_0x3a2e28(0x3c1)][_0x3a2e28(0x219)]}),_0x76bd37=_0x3f91f9[_0x3a2e28(0x347)],_0x583e0b=_0x587608['m1Prime'];}this[_0x3a2e28(0x240)][_0x3a2e28(0x221)](_0x565c18,{'history':_0x574f93,'collaboration':_0x5bf53c});}};ue=In([Le(0x0,_0x27384c(_0x546954)),Le(0x1,_0x3417ba),Le(0x2,_0x27384c(_0x391aa1))],ue);var mn=Object[_0x3a7433(0x210)],fn=(_0x28ba19,_0x4cff4b,_0x2f26a0,_0x334dbf)=>{const _0x73df9c=_0x3a7433;for(var _0x1e439e=_0x334dbf>0x1?void 0x0:_0x334dbf?mn(_0x4cff4b,_0x2f26a0):_0x4cff4b,_0x368d20=_0x28ba19[_0x73df9c(0x34d)]-0x1,_0x569992;_0x368d20>=0x0;_0x368d20--)(_0x569992=_0x28ba19[_0x368d20])&&(_0x1e439e=_0x569992(_0x1e439e)||_0x1e439e);return _0x1e439e;},ht=(_0x317204,_0x527f66)=>(_0x70dbbe,_0x31ff0f)=>_0x527f66(_0x70dbbe,_0x31ff0f,_0x317204);let de=class{constructor(_0xd0acb2,_0x2bb0e0){const _0x58a8b0=_0x3a7433;this[_0x58a8b0(0x1cb)]=_0xd0acb2,this[_0x58a8b0(0x28f)]=_0x2bb0e0;}[_0x3a7433(0x2c3)](_0x4a6ecd){const _0x272b76=_0x3a7433;var _0x234636;const _0x8af7a4=this[_0x272b76(0x1cb)][_0x272b76(0x359)](_0x1ba78b),_0x3fb0ae=(_0x234636=_0x8af7a4[_0x272b76(0x34b)]())!=null?_0x234636:[];if(_0x3fb0ae['length']===0x0)return;const _0x4db1ac=_0x4a6ecd[_0x272b76(0x401)],_0x123941=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4db1ac,'actions':null,'textRanges':_0x3fb0ae}}],_0x3a3621=this[_0x272b76(0x28f)][_0x272b76(0x3d3)](_0x4a6ecd,_0x123941);if(!_0x4d115f(_0x3a3621))throw _0x3a3621[_0x272b76(0x3a5)];const _0x358864=_0x3a3621[_0x272b76(0x3c1)][0x0][_0x272b76(0x219)][_0x272b76(0x295)];Array[_0x272b76(0x321)](_0x358864)&&_0x358864[_0x272b76(0x34d)]&&_0x8af7a4[_0x272b76(0x375)](_0x358864,{'unitId':_0x4db1ac,'subUnitId':_0x4db1ac},!0x1);}};de=fn([ht(0x0,_0x27384c(_0x546954)),ht(0x1,_0x3417ba)],de);var gn=Object[_0x3a7433(0x210)],En=(_0x6eb969,_0x39f743,_0x5bd8c8,_0x5c554b)=>{const _0x35c15d=_0x3a7433;for(var _0x2c7ac0=_0x5c554b>0x1?void 0x0:_0x5c554b?gn(_0x39f743,_0x5bd8c8):_0x39f743,_0x40bef3=_0x6eb969[_0x35c15d(0x34d)]-0x1,_0x19886d;_0x40bef3>=0x0;_0x40bef3--)(_0x19886d=_0x6eb969[_0x40bef3])&&(_0x2c7ac0=_0x19886d(_0x2c7ac0)||_0x2c7ac0);return _0x2c7ac0;},U=(_0x45a1b2,_0x1f966b)=>(_0x22d5ff,_0x43f228)=>_0x1f966b(_0x22d5ff,_0x43f228,_0x45a1b2);let Se=class extends _0x1c0642{constructor(_0x333ffe,_0x5b3fb7,_0x2359b0,_0x35f2d4,_0x5392cd,_0x2229b2,_0x2b2729,_0x41f85f){const _0x51064d=_0x3a7433;super(),_(this,'_status$',new _0x29de4b(_0x578bc7[_0x51064d(0x402)])),(this[_0x51064d(0x240)]=_0x333ffe,this[_0x51064d(0x3d6)]=_0x5b3fb7,this[_0x51064d(0x399)]=_0x2359b0,this[_0x51064d(0x3cd)]=_0x35f2d4,this['_docTransformSelectionsService']=_0x5392cd,this['_docSyncEditingCollabCursorService']=_0x2229b2,this[_0x51064d(0x2a3)]=_0x2b2729,this[_0x51064d(0x306)]=_0x41f85f,this[_0x51064d(0x2e9)]());}[_0x3a7433(0x2e9)](){const _0x5513aa=_0x3a7433;this['disposeWithMe'](this[_0x5513aa(0x3d6)][_0x5513aa(0x2c7)]['subscribe'](_0x52267a=>{const _0x2bbab8=_0x5513aa,_0x1219d4=this['_docStateChangeManagerService']['docStateChange$'][_0x2bbab8(0x395)](_0x24a298=>{const _0x1cd826=_0x2bbab8;if(_0x24a298==null)return;const {unitId:_0x5035f8,redoState:_0x2a4e9f,commandId:_0x38bb4f}=_0x24a298;if(_0x5035f8!==_0x52267a[_0x1cd826(0x401)])return;const _0x33c610={'id':_0x38bb4f,'type':_0x5ab7c5[_0x1cd826(0x400)],'params':{'unitId':_0x5035f8,'actions':_0x2a4e9f['actions'],'textRanges':null}};_0x52267a[_0x1cd826(0x3ec)](_0x33c610);});if(_0x52267a[_0x2bbab8(0x3f9)](_0x1219d4),_0x52267a instanceof _0x30a98e){const _0x154325={'onTransformIME':_0x248c00=>this[_0x2bbab8(0x399)]['transformIMECache'](_0x248c00),'onTransformState':_0x2ddfd8=>this['_docTransformStateCacheService'][_0x2bbab8(0x234)](_0x2ddfd8),'onTransformSelections':_0x45a40b=>this[_0x2bbab8(0x273)][_0x2bbab8(0x2c3)](_0x45a40b),'onSyncEditingCollabCursor':_0x34700a=>this[_0x2bbab8(0x2ec)][_0x2bbab8(0x2de)](_0x34700a),'onTransformRemoteChangesetByIMECache':_0x8cc1e6=>this[_0x2bbab8(0x399)][_0x2bbab8(0x24f)](_0x8cc1e6),'onTransformRemoteChangesetByStateCache':_0x93d6f6=>this['_docTransformStateCacheService'][_0x2bbab8(0x24f)](_0x93d6f6)};_0x52267a[_0x2bbab8(0x2ba)](_0x154325);}}));}};Se=En([U(0x0,_0x27384c(_0x391aa1)),U(0x1,_0x27384c(_0x4c101c)),U(0x2,_0x27384c(he)),U(0x3,_0x27384c(ue)),U(0x4,_0x27384c(de)),U(0x5,_0x27384c(ze)),U(0x6,_0x52022d),U(0x7,_0x27384c(_0x5875ca))],Se);var Z=(_0x43879a=>(_0x43879a[_0x43879a[_0x3a7433(0x26a)]=0x0]=_0x3a7433(0x26a),_0x43879a[_0x43879a['OK']=0x1]='OK',_0x43879a[_0x43879a['INTERNAL_ERROR']=0x2]=_0x3a7433(0x2f0),_0x43879a[_0x43879a['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x43879a[_0x43879a[_0x3a7433(0x3ff)]=0x4]=_0x3a7433(0x3ff),_0x43879a[_0x43879a[_0x3a7433(0x1f0)]=0x5]=_0x3a7433(0x1f0),_0x43879a[_0x43879a[_0x3a7433(0x361)]=0x6]=_0x3a7433(0x361),_0x43879a[_0x43879a['INVALID_ARGUMENT']=0x7]=_0x3a7433(0x20e),_0x43879a[_0x43879a[_0x3a7433(0x229)]=0x8]=_0x3a7433(0x229),_0x43879a[_0x43879a[_0x3a7433(0x3bc)]=0x9]=_0x3a7433(0x3bc),_0x43879a[_0x43879a[_0x3a7433(0x352)]=0xa]=_0x3a7433(0x352),_0x43879a[_0x43879a[_0x3a7433(0x22e)]=0xb]=_0x3a7433(0x22e),_0x43879a[_0x43879a[_0x3a7433(0x37d)]=0xc]=_0x3a7433(0x37d),_0x43879a[_0x43879a['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x3a7433(0x3cc),_0x43879a[_0x43879a['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x43879a[_0x43879a[_0x3a7433(0x1fc)]=0xf]=_0x3a7433(0x1fc),_0x43879a[_0x43879a[_0x3a7433(0x252)]=0x10]=_0x3a7433(0x252),_0x43879a[_0x43879a[_0x3a7433(0x303)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x43879a[_0x43879a[_0x3a7433(0x388)]=0x65]='ERROR_AGAIN',_0x43879a[_0x43879a[_0x3a7433(0x394)]=0xc9]=_0x3a7433(0x394),_0x43879a[_0x43879a[_0x3a7433(0x31c)]=0xca]=_0x3a7433(0x31c),_0x43879a[_0x43879a['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x43879a[_0x43879a[_0x3a7433(0x39b)]=0x1771]=_0x3a7433(0x39b),_0x43879a[_0x43879a[_0x3a7433(0x308)]=0x1772]=_0x3a7433(0x308),_0x43879a[_0x43879a[_0x3a7433(0x25a)]=0x1773]=_0x3a7433(0x25a),_0x43879a[_0x43879a[_0x3a7433(0x3c7)]=0x1b59]=_0x3a7433(0x3c7),_0x43879a[_0x43879a['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x43879a[_0x43879a[_0x3a7433(0x3d0)]=0x1b5b]=_0x3a7433(0x3d0),_0x43879a[_0x43879a[_0x3a7433(0x2d1)]=0x1b5c]=_0x3a7433(0x2d1),_0x43879a[_0x43879a['APPLY_DUPLICATED']=0x1b5d]=_0x3a7433(0x32e),_0x43879a[_0x43879a['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3a7433(0x37e),_0x43879a[_0x43879a['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x3a7433(0x26d),_0x43879a[_0x43879a[_0x3a7433(0x1ce)]=0x232a]=_0x3a7433(0x1ce),_0x43879a[_0x43879a[_0x3a7433(0x36a)]=0x232b]=_0x3a7433(0x36a),_0x43879a[_0x43879a['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x3a7433(0x357),_0x43879a[_0x43879a[_0x3a7433(0x317)]=0x232d]=_0x3a7433(0x317),_0x43879a[_0x43879a[_0x3a7433(0x3a8)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x43879a[_0x43879a[_0x3a7433(0x1bb)]=0x2712]=_0x3a7433(0x1bb),_0x43879a[_0x43879a['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x3a7433(0x228),_0x43879a[_0x43879a['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x3a7433(0x378),_0x43879a[_0x43879a['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x3a7433(0x258),_0x43879a[_0x43879a[_0x3a7433(0x3ad)]=0x271b]=_0x3a7433(0x3ad),_0x43879a[_0x43879a[_0x3a7433(0x1ed)]=0x271c]=_0x3a7433(0x1ed),_0x43879a[_0x43879a[_0x3a7433(0x36f)]=0x271d]=_0x3a7433(0x36f),_0x43879a[_0x43879a[_0x3a7433(0x214)]=0x271e]=_0x3a7433(0x214),_0x43879a[_0x43879a['YUUMI_AI_RUN_FAILED']=0x271f]=_0x3a7433(0x371),_0x43879a[_0x43879a[_0x3a7433(0x247)]=0x2720]=_0x3a7433(0x247),_0x43879a[_0x43879a[_0x3a7433(0x283)]=0x2af9]=_0x3a7433(0x283),_0x43879a[_0x43879a['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x3a7433(0x307),_0x43879a[_0x43879a[_0x3a7433(0x265)]=0x2ee2]=_0x3a7433(0x265),_0x43879a[_0x43879a[_0x3a7433(0x1cf)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x43879a[_0x43879a[_0x3a7433(0x3c3)]=0x2ee4]=_0x3a7433(0x3c3),_0x43879a[_0x43879a[_0x3a7433(0x351)]=0x2ee5]=_0x3a7433(0x351),_0x43879a[_0x43879a[_0x3a7433(0x3a2)]=0x32c9]=_0x3a7433(0x3a2),_0x43879a[_0x43879a['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x43879a[_0x43879a['EMAIL_HAS_BEEN_BOUND']=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x43879a[_0x43879a[_0x3a7433(0x1d0)]=0x36b1]=_0x3a7433(0x1d0),_0x43879a[_0x43879a[_0x3a7433(0x2d8)]=0x36b2]=_0x3a7433(0x2d8),_0x43879a[_0x43879a[_0x3a7433(0x2f4)]=0x36b3]=_0x3a7433(0x2f4),_0x43879a[_0x43879a[_0x3a7433(0x331)]=0x36b4]=_0x3a7433(0x331),_0x43879a[_0x43879a[_0x3a7433(0x213)]=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x43879a[_0x43879a[_0x3a7433(0x3b2)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x43879a[_0x43879a['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x3a7433(0x3ef),_0x43879a[_0x43879a[_0x3a7433(0x224)]=0x36b8]='ENTITLE_USE_COUPON_NOT_1ST_TRADE',_0x43879a[_0x43879a[_0x3a7433(0x25b)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x43879a[_0x43879a[_0x3a7433(0x1c1)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x43879a[_0x43879a[_0x3a7433(0x26b)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x43879a[_0x43879a[_0x3a7433(0x1ea)]=0x37dd]=_0x3a7433(0x1ea),_0x43879a[_0x43879a[_0x3a7433(0x1b8)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x43879a[_0x43879a['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x3a7433(0x232),_0x43879a[_0x43879a[_0x3a7433(0x1ca)]=0x3a9b]=_0x3a7433(0x1ca),_0x43879a[_0x43879a[_0x3a7433(0x355)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x43879a[_0x43879a[_0x3a7433(0x21b)]=0x3a9d]=_0x3a7433(0x21b),_0x43879a[_0x43879a[_0x3a7433(0x2b0)]=0x3a9e]=_0x3a7433(0x2b0),_0x43879a[_0x43879a['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x3a7433(0x396),_0x43879a[_0x43879a[_0x3a7433(0x2d5)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x43879a[_0x43879a[_0x3a7433(0x1f6)]=-0x1]=_0x3a7433(0x1f6),_0x43879a))(Z||{});function vn(_0x21af0b){const _0xe191fc=_0x3a7433;var _0x12927a,_0x59bb3a;const _0x464f64=(_0x12927a=_0x21af0b[_0xe191fc(0x2a1)])==null?void 0x0:_0x12927a[_0xe191fc(0x372)],_0x14e756=((_0x59bb3a=_0x21af0b['stageInfo'])==null?void 0x0:_0x59bb3a[_0xe191fc(0x3af)])||0x0;return _0x464f64===_0x5ee1af[_0xe191fc(0x30a)]&&_0x14e756>0x0;}function pn(_0x224435){const _0xde9338=_0x3a7433;return _0x224435[_0xde9338(0x3fc)]===_0x3f1c63[_0xde9338(0x23d)];}var On=Object[_0x3a7433(0x210)],Tn=(_0xefe3b5,_0x101ea1,_0x446b54,_0x3fa20c)=>{const _0x36d810=_0x3a7433;for(var _0x2959e7=_0x3fa20c>0x1?void 0x0:_0x3fa20c?On(_0x101ea1,_0x446b54):_0x101ea1,_0xcfdd5b=_0xefe3b5[_0x36d810(0x34d)]-0x1,_0x5f2f61;_0xcfdd5b>=0x0;_0xcfdd5b--)(_0x5f2f61=_0xefe3b5[_0xcfdd5b])&&(_0x2959e7=_0x5f2f61(_0x2959e7)||_0x2959e7);return _0x2959e7;},P=(_0x72694d,_0x3b6069)=>(_0x22287d,_0x1d40d6)=>_0x3b6069(_0x22287d,_0x1d40d6,_0x72694d);const Cn=_0x3a7433(0x348),Rn='/universer-api/license/formula/limit/start',Dn=_0x3a7433(0x25c);let Ie=class extends _0x1c0642{constructor(_0x5dbc79,_0x312b83,_0x5af08e,_0x5015eb,_0x5547f8,_0x2bda97,_0x19ef6f){const _0x7f8083=_0x3a7433;super(),_(this,_0x7f8083(0x392),null),_(this,_0x7f8083(0x27c),0x0),_(this,_0x7f8083(0x383),0x0),_(this,_0x7f8083(0x3f4),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x7f8083(0x2a3)]=_0x5dbc79,this[_0x7f8083(0x212)]=_0x312b83,this['_configService']=_0x5af08e,this[_0x7f8083(0x21a)]=_0x5015eb,this[_0x7f8083(0x2a4)]=_0x5547f8,this[_0x7f8083(0x2ed)]=_0x2bda97,this[_0x7f8083(0x306)]=_0x19ef6f,this['_initCommandInterceptor']());}[_0x3a7433(0x2db)](){const _0x474f2f=_0x3a7433;this[_0x474f2f(0x3f9)](this[_0x474f2f(0x212)][_0x474f2f(0x38d)]((_0x3257ae,_0xce4d5d)=>{const _0x234501=_0x474f2f;var _0x3ae3f7;if(_0x3257ae['id']!==_0x54c579['id'])return;const _0x43a88d=_0x3257ae[_0x234501(0x219)];if(!this[_0x234501(0x364)]((_0x3ae3f7=_0x43a88d[_0x234501(0x3d4)])!=null?_0x3ae3f7:[]))return;if(!this['_checkCalculationAvailable']())throw this['_checkAndWaitForCalculationPermission'](_0x3257ae,_0xce4d5d),this[_0x234501(0x2a8)](),new _0x853b6b();})),this[_0x474f2f(0x3f9)](this[_0x474f2f(0x212)][_0x474f2f(0x1f8)]((_0x540d41,_0x51d432)=>{const _0x4a5140=_0x474f2f;if(_0x540d41['id']!==_0x8e2626['id'])return;const _0xa4838f=_0x540d41['params'];if(vn(_0xa4838f)){const _0x1bc149=_0x3f0ee8();this[_0x4a5140(0x3f4)][_0x4a5140(0x3b0)](_0x1bc149),this['_startCalculationLimit'](_0x1bc149);}else{if(pn(_0xa4838f)&&this['_taskIds'][_0x4a5140(0x34d)]>0x0){const _0x3fb949=this['_taskIds']['shift']();this['_releaseCalculationLimit'](_0x3fb949);}}}));}['dispose'](){const _0x3ddb55=_0x3a7433;super[_0x3ddb55(0x2c4)](),this['_clearPolling'](),this['_taskIds']=[],this[_0x3ddb55(0x383)]=0x0,this[_0x3ddb55(0x27c)]=0x0,this[_0x3ddb55(0x3d5)]=0x0;}async[_0x3a7433(0x29c)](_0x4c193b,_0x21a3a0){const _0x37cfdd=_0x3a7433;for(let _0x169758=0x0;_0x169758<0x1e;_0x169758++)try{if(await this[_0x37cfdd(0x334)](),this[_0x37cfdd(0x3f8)]()){this[_0x37cfdd(0x1d8)](_0x4c193b,_0x21a3a0),this['_messageService'][_0x37cfdd(0x1bc)]({'content':this[_0x37cfdd(0x306)]['t'](_0x37cfdd(0x302)),'type':_0x5e610d['Success']});return;}await new Promise(_0x57209f=>{const _0x597dfe=_0x37cfdd;this['_pollingInterval']=window[_0x597dfe(0x1f7)](_0x57209f,0x3e8);});}catch(_0x8f579d){this[_0x37cfdd(0x2ed)][_0x37cfdd(0x3a5)](_0x8f579d);}this['_messageService'][_0x37cfdd(0x1bc)]({'content':this[_0x37cfdd(0x306)]['t'](_0x37cfdd(0x335)),'type':_0x5e610d[_0x37cfdd(0x354)]});}['_applyCommand'](_0x36963c,_0x322c0d){const _0x3edd4a=_0x3a7433;try{this[_0x3edd4a(0x212)][_0x3edd4a(0x2e3)](_0x36963c['id'],_0x36963c['params'],_0x322c0d);}catch(_0x6114db){this[_0x3edd4a(0x2ed)][_0x3edd4a(0x3a5)](_0x6114db);}}[_0x3a7433(0x1c6)](_0x3ed297,_0x5ad05a){const _0x336b88=_0x3a7433;_0x5ad05a<this[_0x336b88(0x3d5)]||(this[_0x336b88(0x3d5)]=_0x5ad05a,this[_0x336b88(0x27c)]=Number[_0x336b88(0x3e2)](_0x3ed297[_0x336b88(0x34f)]),this[_0x336b88(0x383)]=Number[_0x336b88(0x3e2)](_0x3ed297[_0x336b88(0x30d)]));}async['_startCalculationLimit'](_0x7406da){const _0x2bd37c=_0x3a7433;var _0x36d61e,_0x6d9757;const _0x552dcd=Date['now']();try{const _0x2a810f=((_0x36d61e=this[_0x2bd37c(0x343)]['getConfig'](_0x3f2cb9))==null?void 0x0:_0x36d61e[_0x2bd37c(0x1ec)])||Rn,_0x54ffb7=(await this[_0x2bd37c(0x21a)][_0x2bd37c(0x2ee)](_0x2a810f,{'body':JSON[_0x2bd37c(0x253)]({'taskId':_0x7406da})}))['body'];if(((_0x6d9757=_0x54ffb7[_0x2bd37c(0x3a5)])==null?void 0x0:_0x6d9757[_0x2bd37c(0x2c6)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x54ffb7[_0x2bd37c(0x30c)],_0x552dcd);}catch(_0x653a84){this['_logService'][_0x2bd37c(0x3a5)](_0x653a84);}}async[_0x3a7433(0x334)](_0x31ef61){const _0x3d3bb7=_0x3a7433;var _0x2513d8,_0x1f7ef8;const _0x2fddd8=Date['now']();try{const _0x568c39=((_0x2513d8=this[_0x3d3bb7(0x343)][_0x3d3bb7(0x390)](_0x3f2cb9))==null?void 0x0:_0x2513d8[_0x3d3bb7(0x3df)])||Cn,_0x27d3b9=_0x31ef61?_0x568c39+_0x3d3bb7(0x314)+encodeURIComponent(_0x31ef61):_0x568c39,_0x650025=(await this[_0x3d3bb7(0x21a)][_0x3d3bb7(0x359)](_0x27d3b9))[_0x3d3bb7(0x26c)];if(((_0x1f7ef8=_0x650025[_0x3d3bb7(0x3a5)])==null?void 0x0:_0x1f7ef8['code'])!==Z['OK'])return;this[_0x3d3bb7(0x1c6)](_0x650025['limitInfo'],_0x2fddd8);}catch(_0x1a9b80){this[_0x3d3bb7(0x2ed)][_0x3d3bb7(0x3a5)](_0x1a9b80);}}async['_releaseCalculationLimit'](_0x44de82){const _0x37a9ac=_0x3a7433;var _0x44228a,_0x3e831c;const _0x4aed1a=Date[_0x37a9ac(0x341)]();try{const _0x51044c=((_0x44228a=this['_configService'][_0x37a9ac(0x390)](_0x3f2cb9))==null?void 0x0:_0x44228a['releaseFormulaLimitUrl'])||Dn,_0x2806ba=(await this[_0x37a9ac(0x21a)]['post'](_0x51044c,{'body':JSON[_0x37a9ac(0x253)]({'taskId':_0x44de82})}))[_0x37a9ac(0x26c)];if(((_0x3e831c=_0x2806ba[_0x37a9ac(0x3a5)])==null?void 0x0:_0x3e831c[_0x37a9ac(0x2c6)])!==Z['OK'])return;this[_0x37a9ac(0x1c6)](_0x2806ba[_0x37a9ac(0x30c)],_0x4aed1a);}catch(_0x263890){this[_0x37a9ac(0x2ed)][_0x37a9ac(0x3a5)](_0x263890);}}[_0x3a7433(0x3f8)](){const _0x3e7b9c=_0x3a7433;return this[_0x3e7b9c(0x27c)]===0x0?!0x0:this[_0x3e7b9c(0x27c)]-this[_0x3e7b9c(0x383)]>0x0;}[_0x3a7433(0x289)](){const _0x3ccf6f=_0x3a7433;this[_0x3ccf6f(0x392)]&&(clearTimeout(this[_0x3ccf6f(0x392)]),this[_0x3ccf6f(0x392)]=null);}['_showGuardMessage'](){const _0x3f4e95=_0x3a7433;this['_messageService'][_0x3f4e95(0x1bc)]({'content':this['_localeService']['t'](_0x3f4e95(0x225)),'type':_0x5e610d['Loading']});}[_0x3a7433(0x364)](_0xcab34e){const _0x115884=_0x3a7433;for(const _0x513183 of _0xcab34e){const {unitId:_0x5ee88e,sheetId:_0x433179,range:_0x22af89}=_0x513183,_0xfe8f92=this[_0x115884(0x2a4)][_0x115884(0x3e3)](_0x5ee88e);if(!_0xfe8f92)continue;const _0x2e4f91=_0xfe8f92[_0x115884(0x202)](_0x433179);if(!_0x2e4f91)continue;const _0x275995=_0x2e4f91[_0x115884(0x238)]();for(let _0x3f699a=_0x22af89[_0x115884(0x3c8)];_0x3f699a<=_0x22af89['endRow'];_0x3f699a++)for(let _0x522859=_0x22af89[_0x115884(0x2fd)];_0x522859<=_0x22af89[_0x115884(0x39f)];_0x522859++){const _0x4b4fd0=_0x275995[_0x115884(0x37f)](_0x3f699a,_0x522859);if(_0x4b4fd0&&(_0x5b7c7b(_0x4b4fd0['f'])||_0x433ef4(_0x4b4fd0['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x27384c(_0x52022d)),P(0x1,_0x23b771),P(0x2,_0x574df3),P(0x3,_0x27384c(_0x37faeb)),P(0x4,_0x1cf763),P(0x5,_0x2e91cd),P(0x6,_0x27384c(_0x5875ca))],Ie);var Nn=Object[_0x3a7433(0x210)],bn=(_0x136011,_0x1180b0,_0x5786e0,_0x469239)=>{const _0x48a160=_0x3a7433;for(var _0x2fc4ea=_0x469239>0x1?void 0x0:_0x469239?Nn(_0x1180b0,_0x5786e0):_0x1180b0,_0x4b1f9d=_0x136011[_0x48a160(0x34d)]-0x1,_0x58a8bc;_0x4b1f9d>=0x0;_0x4b1f9d--)(_0x58a8bc=_0x136011[_0x4b1f9d])&&(_0x2fc4ea=_0x58a8bc(_0x2fc4ea)||_0x2fc4ea);return _0x2fc4ea;},Ue=(_0x224f3a,_0x531bd0)=>(_0x2ac27c,_0x2421d6)=>_0x531bd0(_0x2ac27c,_0x2421d6,_0x224f3a);let He=class extends _0x1c0642{constructor(_0x186b82,_0x35d8ad,_0x4cfec6){const _0x12267e=_0x3a7433;super(),_(this,_0x12267e(0x313),new Map()),_(this,_0x12267e(0x3b6),new Map()),_(this,_0x12267e(0x1f3),!0x1),(this['_configService']=_0x186b82,this[_0x12267e(0x1dd)]=_0x35d8ad,this[_0x12267e(0x3b3)]=_0x4cfec6);}[_0x3a7433(0x3ce)](){const _0x30d222=_0x3a7433;this[_0x30d222(0x1f3)]=!0x0;}[_0x3a7433(0x27a)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x16e96a=_0x3a7433;return this[_0x16e96a(0x3b6)];}['dispose'](){const _0x285d56=_0x3a7433;this[_0x285d56(0x1d3)]()[_0x285d56(0x22f)](()=>super[_0x285d56(0x2c4)]());}async['loadOfflineData'](_0x275e26){const _0x473017=_0x3a7433;return this[_0x473017(0x1f3)]?null:this[_0x473017(0x1dd)][_0x473017(0x25d)](_0x1f06b2(_0x275e26));}async[_0x3a7433(0x28b)](_0x189fc3,_0x414d61){const _0x4b36d8=_0x3a7433;return!!this[_0x4b36d8(0x1dd)]['setItem'](_0x189fc3,_0x414d61);}[_0x3a7433(0x1cd)](_0x5830b9,_0x224b45,_0x3f1032,_0x2b3048){const _0x2852ff=_0x3a7433,_0x1c0aaf=this[_0x2852ff(0x3b3)][_0x2852ff(0x2bb)](_0x5830b9);this[_0x2852ff(0x313)][_0x2852ff(0x1bf)](_0x5830b9,{'unitID':_0x5830b9,'type':_0x224b45,'awaitingChangeset':_0x3f1032,'mutations':_0x2b3048,'rev':_0x1c0aaf}),this[_0x2852ff(0x3b6)][_0x2852ff(0x35f)](_0x5830b9)||this['_scheduleSaving'](_0x5830b9);}[_0x3a7433(0x2c5)](_0x1d289e){const _0x2453fa=_0x3a7433,_0xe8fb83=this[_0x2453fa(0x3bb)]();_0xe8fb83===0x0?this[_0x2453fa(0x2cd)](_0x1d289e):this['_saveTaskMap'][_0x2453fa(0x1bf)](_0x1d289e,setTimeout(()=>this[_0x2453fa(0x2cd)](_0x1d289e),_0xe8fb83));}[_0x3a7433(0x3bb)](){const _0x44a705=_0x3a7433;var _0x653ef7;return(_0x653ef7=this[_0x44a705(0x343)][_0x44a705(0x390)](_0x4f98ba))!=null?_0x653ef7:_0x3051c8;}[_0x3a7433(0x2cd)](_0x223ff3){const _0xcde4da=_0x3a7433,_0x688eab=this[_0xcde4da(0x3b6)][_0xcde4da(0x359)](_0x223ff3);return _0x688eab!==void 0x0&&window[_0xcde4da(0x1fe)](_0x688eab),this[_0xcde4da(0x1dd)]['setItem'](_0x1f06b2(_0x223ff3),this[_0xcde4da(0x313)][_0xcde4da(0x359)](_0x223ff3))[_0xcde4da(0x22f)](()=>this[_0xcde4da(0x3b6)]['delete'](_0x223ff3));}async['exhaustSavingTask'](){const _0x39db8c=_0x3a7433,_0x48d5a3=[];this[_0x39db8c(0x3b6)][_0x39db8c(0x2eb)]((_0x45f074,_0x59841e)=>{const _0x50d5c0=_0x39db8c;window['clearTimeout'](_0x45f074),_0x48d5a3[_0x50d5c0(0x3b0)](this['_saveCache'](_0x59841e)[_0x50d5c0(0x22f)](()=>{const _0x55e281=_0x50d5c0;this['_saveTaskMap'][_0x55e281(0x236)](_0x59841e);}));}),await Promise[_0x39db8c(0x384)](_0x48d5a3);}};He=bn([Ue(0x0,_0x574df3),Ue(0x1,_0x32ff2a),Ue(0x2,_0x27384c(_0x4a7a7a))],He);class Ln extends _0x572f10{constructor(){const _0x243511=_0x3a7433;super(),_(this,'urlChange$'),this[_0x243511(0x29b)]=_0x57cde1(window,_0x243511(0x32c))[_0x243511(0x368)](_0x7b7810(this[_0x243511(0x34e)]),_0xe65cb8(0x1),_0x2a23d6(void 0x0));}[_0x3a7433(0x3b8)](_0x2c3966,_0x5050a9,_0x1df6ae=!0x1){const _0x2aa796=_0x3a7433,_0x5a9519=new URL(window[_0x2aa796(0x1b1)][_0x2aa796(0x24c)]);_0x5a9519[_0x2aa796(0x36e)][_0x2aa796(0x1bf)](_0x2c3966,_0x5050a9),_0x1df6ae?window[_0x2aa796(0x3b5)][_0x2aa796(0x3a9)]('','',_0x5a9519[_0x2aa796(0x2ff)]()):window[_0x2aa796(0x3b5)]['pushState']('','',_0x5a9519[_0x2aa796(0x2ff)]());}[_0x3a7433(0x22a)](_0x5801a7,_0x203520=!0x1){const _0x70d990=_0x3a7433,_0x3569fd=new URL(window[_0x70d990(0x1b1)][_0x70d990(0x24c)]);_0x3569fd[_0x70d990(0x36e)]['delete'](_0x5801a7),_0x203520?window[_0x70d990(0x3b5)][_0x70d990(0x3a9)]('','',_0x3569fd[_0x70d990(0x2ff)]()):window[_0x70d990(0x3b5)][_0x70d990(0x20d)]('','',_0x3569fd[_0x70d990(0x2ff)]());}[_0x3a7433(0x2bd)](_0x3c9d9b){const _0x504ffd=_0x3a7433;var _0x27f854;return(_0x27f854=new URL(window[_0x504ffd(0x1b1)]['href'])['searchParams'][_0x504ffd(0x359)](_0x3c9d9b))!=null?_0x27f854:void 0x0;}}var Un=Object[_0x3a7433(0x286)],Mn=Object[_0x3a7433(0x210)],An=(_0x2f530a,_0x56df0d,_0x1776f9)=>_0x56df0d in _0x2f530a?Un(_0x2f530a,_0x56df0d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1776f9}):_0x2f530a[_0x56df0d]=_0x1776f9,Pn=(_0x4769db,_0x15ade8,_0x413b26,_0x39d309)=>{const _0x223725=_0x3a7433;for(var _0xa66200=_0x39d309>0x1?void 0x0:_0x39d309?Mn(_0x15ade8,_0x413b26):_0x15ade8,_0x2eceed=_0x4769db[_0x223725(0x34d)]-0x1,_0x3a2f5c;_0x2eceed>=0x0;_0x2eceed--)(_0x3a2f5c=_0x4769db[_0x2eceed])&&(_0xa66200=_0x3a2f5c(_0xa66200)||_0xa66200);return _0xa66200;},Me=(_0xda6d8d,_0x396a36)=>(_0x138127,_0x6d9704)=>_0x396a36(_0x138127,_0x6d9704,_0xda6d8d),wn=(_0xbc41b7,_0x9ce293,_0x1cd494)=>An(_0xbc41b7,_0x9ce293+'',_0x1cd494);const yn=_0x3a7433(0x320);let Ye=class extends _0x50392c{constructor(_0x5aad4d=_t,_0x16c02f,_0x13c659,_0x3b0304){const _0x4f2e1b=_0x3a7433;super(),this[_0x4f2e1b(0x2d0)]=_0x5aad4d,this[_0x4f2e1b(0x39d)]=_0x16c02f,this['_injector']=_0x13c659,this[_0x4f2e1b(0x343)]=_0x3b0304;const {..._0x23ef16}=_0x266c93({},_t,this['_config']);this[_0x4f2e1b(0x343)][_0x4f2e1b(0x2e7)](hn,_0x23ef16);}['onStarting'](){const _0x19a15f=_0x3a7433;this[_0x19a15f(0x3f3)](),this[_0x19a15f(0x328)]();}[_0x3a7433(0x264)](){const _0x17b6eb=_0x3a7433;this[_0x17b6eb(0x344)]();}['_registerDependencies'](){const _0x1ca475=_0x3a7433;var _0x476223;const _0x21c9b1=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x2a889b,{'useClass':_0x3f3140}],[_0x3d14fc,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this['_config'][_0x1ca475(0x3bf)]&&_0x21c9b1[_0x1ca475(0x3b0)]([le]),_0x1de876(this[_0x1ca475(0x1cb)],_0x2fb84b(_0x21c9b1,(_0x476223=this[_0x1ca475(0x2d0)])==null?void 0x0:_0x476223[_0x1ca475(0x1e4)]));}['_registerRenderDependencies'](){const _0x2421ad=_0x3a7433;this['disposeWithMe'](this[_0x2421ad(0x39d)][_0x2421ad(0x1e8)](_0x36653e[_0x2421ad(0x2cc)],[Fe])),this[_0x2421ad(0x3f9)](this[_0x2421ad(0x39d)][_0x2421ad(0x1e8)](_0x36653e[_0x2421ad(0x2a9)],[ke]));}[_0x3a7433(0x328)](){const _0x5ba26e=_0x3a7433;_0x1fe50a(this[_0x5ba26e(0x1cb)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x5ba26e(0x2d0)][_0x5ba26e(0x3bf)]&&_0x1fe50a(this['_injector'],[[le]]);}};wn(Ye,_0x3a7433(0x3cb),yn),Ye=Pn([_0x11ccda(_0x3d7acc),Me(0x1,_0x47acbb),Me(0x2,_0x27384c(_0x546954)),Me(0x3,_0x574df3)],Ye);var $n=Object[_0x3a7433(0x210)],xn=(_0x54ebeb,_0x5b3ff6,_0x4d3c5f,_0x354865)=>{const _0x493a90=_0x3a7433;for(var _0x5b5062=_0x354865>0x1?void 0x0:_0x354865?$n(_0x5b3ff6,_0x4d3c5f):_0x5b3ff6,_0x35989d=_0x54ebeb[_0x493a90(0x34d)]-0x1,_0x47cf89;_0x35989d>=0x0;_0x35989d--)(_0x47cf89=_0x54ebeb[_0x35989d])&&(_0x5b5062=_0x47cf89(_0x5b5062)||_0x5b5062);return _0x5b5062;},J=(_0x1bdaf5,_0x296cd)=>(_0x560b48,_0x5d12b6)=>_0x296cd(_0x560b48,_0x5d12b6,_0x1bdaf5);let ut=class extends _0x33b5a6{constructor(_0x592efc,_0x131228,_0x1e6a02,_0x24fa7f,_0x592648){super(_0x592efc,_0x131228,_0x1e6a02,_0x24fa7f,_0x592648);}async[_0x3a7433(0x30f)](_0x252b23){const _0x32f232=_0x3a7433,_0x133321=await this[_0x32f232(0x2c1)](),_0x4640ed=this[_0x32f232(0x3fa)](_0x252b23,_0x133321);return this['_doCreateSocket'](_0x4640ed);}['_createSocketURL'](_0x406a2b,_0x539ef1){const _0x3a5d7d=_0x3a7433,_0x800c43=typeof window>'u'?new URL(_0x406a2b):new URL(_0x406a2b,window[_0x3a5d7d(0x1b1)][_0x3a5d7d(0x296)]);_0x800c43[_0x3a5d7d(0x36e)][_0x3a5d7d(0x1bf)](_0x3a5d7d(0x1ba),_0x539ef1);const _0x2a83ca=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3a5d7d(0x1b1)][_0x3a5d7d(0x3f0)]);return _0x2a83ca[_0x3a5d7d(0x359)](_0x3a5d7d(0x32d))&&_0x800c43[_0x3a5d7d(0x36e)][_0x3a5d7d(0x1bf)](_0x3a5d7d(0x32d),_0x2a83ca[_0x3a5d7d(0x359)]('runId')),_0x800c43[_0x3a5d7d(0x2ff)]();}async[_0x3a7433(0x2c1)](){const _0x462956=_0x3a7433;var _0x5993e4,_0x55fdd7,_0x272647;const _0x263197=this[_0x462956(0x343)][_0x462956(0x390)](_0x3f2cb9),_0x329e5b=(_0x5993e4=_0x263197==null?void 0x0:_0x263197[_0x462956(0x2ae)])!=null?_0x5993e4:_0x151348;return(_0x272647=(_0x55fdd7=(await this['_httpService'][_0x462956(0x359)](_0x329e5b,{'headers':{'Content-Type':_0x462956(0x3ed)}}))['body'])==null?void 0x0:_0x55fdd7[_0x462956(0x2c8)])!=null?_0x272647:'';}};ut=xn([J(0x0,_0x27384c(_0x546954)),J(0x1,_0x27384c(_0x37faeb)),J(0x2,_0x574df3),J(0x3,_0x2e91cd),J(0x4,_0x12f3e4)],ut);var Bn=Object[_0x3a7433(0x210)],Fn=(_0x3e5fec,_0x23c3a6,_0x4eee17,_0x163666)=>{for(var _0x3b37c7=_0x163666>0x1?void 0x0:_0x163666?Bn(_0x23c3a6,_0x4eee17):_0x23c3a6,_0x370c60=_0x3e5fec['length']-0x1,_0x11cf8c;_0x370c60>=0x0;_0x370c60--)(_0x11cf8c=_0x3e5fec[_0x370c60])&&(_0x3b37c7=_0x11cf8c(_0x3b37c7)||_0x3b37c7);return _0x3b37c7;},Ae=(_0x18467a,_0x2c60ac)=>(_0x15aac5,_0x396153)=>_0x2c60ac(_0x15aac5,_0x396153,_0x18467a);let dt=class extends _0x1c0642{constructor(_0x29026d,_0xf89761,_0x6bf2a3){const _0x463db2=_0x3a7433;super(),this[_0x463db2(0x29e)]=_0x29026d,this['_httpService']=_0xf89761,this['_configService']=_0x6bf2a3;}async['runOnServer'](_0x1068e0,_0x33177f,_0x1cefe7,..._0x1f754e){const _0x4fa76f=_0x3a7433;var _0x395f20,_0x16fddf,_0x31964b,_0x2924db;const _0x53b7f3=this['_instanceService'][_0x4fa76f(0x381)]();if(!_0x53b7f3)throw new Error(_0x4fa76f(0x261));const _0x542e5c=((_0x395f20=this['_configService'][_0x4fa76f(0x390)](_0x4d0e9a))!=null?_0x395f20:_0x26483f)+'/'+_0x1068e0+_0x4fa76f(0x408)+_0x33177f,_0x3d0636=new URL(window[_0x4fa76f(0x1b1)][_0x4fa76f(0x24c)]),_0x412ee2={'scriptId':_0x1068e0,'runId':(_0x16fddf=_0x3d0636[_0x4fa76f(0x36e)][_0x4fa76f(0x359)](_0x4fa76f(0x32d)))!=null?_0x16fddf:'','function':_0x33177f,'unitId':_0x53b7f3[_0x4fa76f(0x385)](),'argsOfFunction':JSON['stringify'](_0x1f754e),'invokeId':(_0x31964b=_0x1cefe7[_0x4fa76f(0x316)])!=null?_0x31964b:'','executionId':(_0x2924db=_0x1cefe7[_0x4fa76f(0x2bf)])!=null?_0x2924db:''};try{const _0x3b0d2d=await this[_0x4fa76f(0x21a)][_0x4fa76f(0x2ee)](_0x542e5c,{'body':_0x412ee2});return _0x3b0d2d[_0x4fa76f(0x26c)][_0x4fa76f(0x3a5)]&&_0x3b0d2d['body']['error'][_0x4fa76f(0x2c6)]!==Z['OK']?'Failed':_0x3b0d2d[_0x4fa76f(0x26c)][_0x4fa76f(0x211)];}catch{return _0x4fa76f(0x297);}}};dt=Fn([Ae(0x0,_0x1cf763),Ae(0x1,_0x27384c(_0x37faeb)),Ae(0x2,_0x574df3)],dt);const St=0x7530,It=_0x3a7433(0x370);class rr extends _0x1c0642{constructor(){const _0x16fe3f=_0x3a7433;super(),_(this,_0x16fe3f(0x23b),_0x3f0ee8()),_(this,_0x16fe3f(0x31b),new Set()),_(this,_0x16fe3f(0x1c5),new Map()),_(this,_0x16fe3f(0x1e5),null),_(this,_0x16fe3f(0x2e2),new Map()),_(this,_0x16fe3f(0x3e6),new Map()),this[_0x16fe3f(0x20b)]();}[_0x3a7433(0x2c4)](){const _0x1531b7=_0x3a7433;super[_0x1531b7(0x2c4)](),this[_0x1531b7(0x2e2)]['forEach']((_0x54944f,_0x5079c9)=>this[_0x1531b7(0x1f4)](_0x5079c9)),this['_heartbeatTimer']&&window[_0x1531b7(0x2dd)](this[_0x1531b7(0x1e5)]);}[_0x3a7433(0x244)](_0x3e8d4f){const _0x16b2ae=_0x3a7433;return this[_0x16b2ae(0x1df)](_0x3e8d4f)[_0x16b2ae(0x368)](_0x55e285());}[_0x3a7433(0x33a)](_0x1a2181){const _0x3e8113=_0x3a7433;this[_0x3e8113(0x31b)][_0x3e8113(0x3dd)]===0x0&&this['_scheduleHeartbeat'](),this[_0x3e8113(0x31b)][_0x3e8113(0x40b)](_0x1a2181),this['_send']({'type':0x0,'memberID':this[_0x3e8113(0x23b)],'unitIDs':[_0x1a2181],'isForwarded':!0x1});}[_0x3a7433(0x2f6)](_0x50cc37){const _0x1a2b33=_0x3a7433;this['_selfUnitIDs']['delete'](_0x50cc37),this[_0x1a2b33(0x31b)][_0x1a2b33(0x3dd)]===0x0&&this[_0x1a2b33(0x1e5)]&&window[_0x1a2b33(0x2dd)](this['_heartbeatTimer']);}[_0x3a7433(0x20b)](){const _0x90878e=_0x3a7433;this[_0x90878e(0x3f9)](_0x157525(_0x57cde1(window,_0x90878e(0x40c))['subscribe'](_0xe05cb8=>{const _0x34ba73=_0x90878e;if(_0xe05cb8[_0x34ba73(0x25e)]!==It||!_0xe05cb8[_0x34ba73(0x2b4)])return;const _0x48419e=JSON['parse'](_0xe05cb8['newValue']);this[_0x34ba73(0x3c2)](_0x48419e);}))),window[_0x90878e(0x349)](_0x90878e(0x1de),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x3a7433(0x3c2)](_0x18bd6b){const _0x30f7ac=_0x3a7433;switch(_0x18bd6b['type']){case 0x0:this[_0x30f7ac(0x2f8)](_0x18bd6b);break;case 0x1:this['_handleLeaveEvent'](_0x18bd6b);break;case 0x2:this[_0x30f7ac(0x3d7)](_0x18bd6b);break;}}['_handleJoinEvent'](_0x6f084){const _0x3efcdf=_0x3a7433,{unitIDs:_0x4779ae,memberID:_0x41a831,isForwarded:_0x3a1ff1}=_0x6f084;_0x4779ae[_0x3efcdf(0x2eb)](_0xdccecf=>{const _0x20d0a9=_0x3efcdf;if(!_0x3a1ff1&&this[_0x20d0a9(0x1c5)]['has'](_0xdccecf)&&this[_0x20d0a9(0x1df)](_0xdccecf)['next'](_0x218817[_0x20d0a9(0x362)]),!this[_0x20d0a9(0x1c5)]['has'](_0xdccecf)||!this['_unitOnClients'][_0x20d0a9(0x359)](_0xdccecf)[_0x20d0a9(0x35f)](_0x41a831)){const _0x4dec30=this[_0x20d0a9(0x1c5)][_0x20d0a9(0x359)](_0xdccecf)||new Set();_0x4dec30[_0x20d0a9(0x40b)](_0x41a831),this[_0x20d0a9(0x1c5)]['set'](_0xdccecf,_0x4dec30),this['_scheduleClearOtherTimer'](_0x41a831);}}),_0x3a1ff1||this[_0x3efcdf(0x30b)]({'type':0x0,'memberID':this[_0x3efcdf(0x23b)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x3a7433(0x3a0)](_0x2b9262){const _0x541b88=_0x3a7433;this[_0x541b88(0x1f4)](_0x2b9262);const _0x146100=window['setTimeout'](()=>{const _0x305f9a=_0x541b88;this[_0x305f9a(0x1c5)][_0x305f9a(0x2eb)](_0x450164=>{const _0x19c95c=_0x305f9a;_0x450164[_0x19c95c(0x236)](_0x2b9262);});},St*0x2);this[_0x541b88(0x2e2)][_0x541b88(0x1bf)](_0x2b9262,_0x146100);}[_0x3a7433(0x1f4)](_0x3514cf){const _0xe6b8fc=_0x3a7433;if(this[_0xe6b8fc(0x2e2)][_0xe6b8fc(0x35f)](_0x3514cf)){const _0xbd256b=this[_0xe6b8fc(0x2e2)]['get'](_0x3514cf);_0xbd256b&&window[_0xe6b8fc(0x1fe)](_0xbd256b),this[_0xe6b8fc(0x2e2)][_0xe6b8fc(0x1bf)](_0x3514cf,null);}}[_0x3a7433(0x379)](_0x3729d4){const _0x4a50b9=_0x3a7433,{memberID:_0x4a1c2a,unitIDs:_0x10b836}=_0x3729d4;_0x10b836[_0x4a50b9(0x2eb)](_0x7bba04=>{const _0x318612=_0x4a50b9;var _0xbf07f2;const _0x42356f=this['_unitOnClients'][_0x318612(0x359)](_0x7bba04);_0x42356f&&(_0x42356f['delete'](_0x4a1c2a),(_0xbf07f2=this[_0x318612(0x1df)](_0x7bba04))==null||_0xbf07f2[_0x318612(0x293)](_0x42356f[_0x318612(0x3dd)]===0x0?_0x218817[_0x318612(0x26e)]:_0x218817['OTHER_CLIENTS_EDITING']));}),this[_0x4a50b9(0x1f4)](_0x4a1c2a);}[_0x3a7433(0x3d7)](_0x4a0373){const _0x122d7f=_0x3a7433;this['_scheduleClearOtherTimer'](_0x4a0373[_0x122d7f(0x272)]);}[_0x3a7433(0x30b)](_0xc13559){const _0x422654=_0x3a7433;localStorage[_0x422654(0x278)](It,JSON['stringify'](_0xc13559));}[_0x3a7433(0x29d)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0xd783b5=_0x474c;this[_0xd783b5(0x30b)]({'type':0x2,'memberID':this[_0xd783b5(0x23b)]});},St);}['_ensureSubject'](_0x2e28fe){const _0x131579=_0x3a7433;return this[_0x131579(0x3e6)][_0x131579(0x35f)](_0x2e28fe)||this[_0x131579(0x3e6)][_0x131579(0x1bf)](_0x2e28fe,new _0x29de4b(_0x218817[_0x131579(0x26e)])),this['_unitStatus']['get'](_0x2e28fe);}}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};