@univerjs-pro/collaboration-client-ui 0.13.0 → 0.14.0-insiders.20251227-b250a8d

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 +20 -20
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x30d5ae=_0x23c8;(function(_0x446e2e,_0x311f7a){const _0x36aca6=_0x23c8,_0x538152=_0x446e2e();while(!![]){try{const _0x56fbae=parseInt(_0x36aca6(0x27a))/0x1+parseInt(_0x36aca6(0x183))/0x2+parseInt(_0x36aca6(0x1ab))/0x3*(-parseInt(_0x36aca6(0x169))/0x4)+parseInt(_0x36aca6(0x328))/0x5+parseInt(_0x36aca6(0x195))/0x6*(parseInt(_0x36aca6(0x374))/0x7)+parseInt(_0x36aca6(0x383))/0x8+parseInt(_0x36aca6(0x1d9))/0x9*(-parseInt(_0x36aca6(0x351))/0xa);if(_0x56fbae===_0x311f7a)break;else _0x538152['push'](_0x538152['shift']());}catch(_0x4959e3){_0x538152['push'](_0x538152['shift']());}}}(_0x34b1,0xdf835));var Yt=Object[_0x30d5ae(0x215)],Wt=(_0x23fe5a,_0x205b52,_0x8a6e5a)=>_0x205b52 in _0x23fe5a?Yt(_0x23fe5a,_0x205b52,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x8a6e5a}):_0x23fe5a[_0x205b52]=_0x8a6e5a,_=(_0xefb18,_0x5b0e99,_0x2fc728)=>Wt(_0xefb18,typeof _0x5b0e99!='symbol'?_0x5b0e99+'':_0x5b0e99,_0x2fc728);import{jsx as _0x41810f,jsxs as _0x118212}from'react/jsx-runtime';import{CollaborationStatus as _0x555c2c,CollaborationSessionService as _0x90a824,CollaborationController as _0x366818,DataLoaderService as _0x50b744,MemberService as _0x2e1724,SessionStatus as _0x43e6e0,ILocalCacheService as _0x48babe,CollaborationUIEventService as _0x5f2ab7,CollaborationUIEventId as _0x347b0f,DocCollaborationEntity as _0x2afc30,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x44ed78,getLocalCacheKey as _0x16813b,LOCAL_CACHE_INTERVAL as _0x437e1e,LOCAL_CACHE_INTERVAL_KEY as _0x12185e,UniverCollaborationClientPlugin as _0x1c32fa,CollaborationSocketService as _0x464ff2,DEFAULT_WS_SESSION_TICKET_URL as _0x312763,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5054a6,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x524947,UnitStatus as _0x5ed75f}from'@univerjs-pro/collaboration-client';import{LocaleService as _0xfbc0e7,IUniverInstanceService as _0x378c7f,Inject as _0x222181,Injector as _0x5c2372,Disposable as _0x2b1774,createIdentifier as _0xda333f,ILogService as _0x2b507f,ICommandService as _0x271cee,Optional as _0x5e2d79,RxDisposable as _0x5e4f80,Workbook as _0x590a68,DOC_RANGE_TYPE as _0x120f2f,debounce as _0x4c7f2c,Rectangle as _0x197cd6,DisposableCollection as _0x27de72,toDisposable as _0x31bc29,UniverInstanceType as _0xba2a08,generateRandomId as _0x2e90e1,COLORS as _0x2d346f,ColorKit as _0x28c57e,ThemeService as _0x3d07e7,fromEventSubject as _0x481707,Tools as _0x135a99,CommandType as _0x5139cf,IConfigService as _0x8b7829,CanceledError as _0x39d40d,isFormulaString as _0x521569,isFormulaId as _0x30c775,ILocalStorageService as _0x55f11e,DependentOn as _0x4a3f9a,Plugin as _0x3402af,merge as _0x28ff57,registerDependencies as _0x4405f2,mergeOverrideWithDependencies as _0x382ef4,touchDependencies as _0x3c3252}from'@univerjs/core';import{useObservable as _0x4bc266,useDependency as _0x292f46,IUIPartsService as _0xebe2a1,BuiltInUIPart as _0x5f4eda,connectInjector as _0x10a82e,IBeforeCloseService as _0x7b0eaa,IMessageService as _0x1fa26b,INotificationService as _0xe43240}from'@univerjs/ui';import{BehaviorSubject as _0x2eea28,switchMap as _0x5d8fb1,of as _0x5cdfe4,takeUntil as _0x9a62f4,debounceTime as _0x402ed0,Subject as _0x6d42f4,filter as _0x62bf18,merge as _0x36e4a9,combineLatest as _0x22eb42,fromEvent as _0x533b07,shareReplay as _0x1616a5,mapTo as _0x6d39b,distinctUntilChanged as _0x4a33f0}from'rxjs';import{Tooltip as _0x27df07,clsx as _0x310a78,MessageType as _0x220839}from'@univerjs/design';import{useRef as _0x45d879,createElement as _0x33309,forwardRef as _0x53576f,useCallback as _0x133545}from'react';import{IRemoteInstanceService as _0x5a51ac}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x48254f,RefRangeService as _0x100f4b,SetSelectionsOperation as _0x2e23ac,SheetsSelectionsService as _0x4d867f,EffectRefRangId as _0x32ac42,handleIRemoveRow as _0x15e9ff,handleIRemoveCol as _0x99727e,handleMoveRange as _0xcacc45,handleInsertRow as _0x41ec95,handleInsertRangeMoveRight as _0x395ccc,handleInsertRangeMoveDown as _0x2871ee,handleInsertCol as _0x3f3780,handleDeleteRangeMoveUp as _0x2eee1f,handleDeleteRangeMoveLeft as _0x2bcecc,runRefRangeMutations as _0xea9e44}from'@univerjs/sheets';import{Shape as _0x4c57c5,Rect as _0xdd23c7,getColor as _0x4b0183,RegularPolygon as _0x4b5fc3,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x3b9147,Vector2 as _0xc5c427,SHEET_VIEWPORT_KEY as _0x389a38,IRenderManagerService as _0x1695e4}from'@univerjs/engine-render';import{HTTPService as _0x56d4bc,ISocketService as _0x251505,WebSocketService as _0x430f47}from'@univerjs/network';import{IDocClipboardService as _0x4c0572,NodePositionConvertToCursor as _0x248ed8,NodePositionConvertToRectRange as _0x7207ce,TEXT_RANGE_LAYER_INDEX as _0x20be3a,SetDocZoomRatioOperation as _0x2c4471,DocIMEInputManagerService as _0x3eb2f8,DocStateChangeManagerService as _0x4221a5}from'@univerjs/docs-ui';import{IImageIoService as _0x336789}from'@univerjs/drawing';import{ITransformService as _0x1dc34f,CollaborationEvent as _0x592c97,isTransformMutationFailure as _0x195bf6,isTransformMutationsWithChangesetSuccess as _0x19e129,RevisionService as _0x58174f,ISnapshotServerService as _0x509191}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x320aa0,RichTextEditingMutation as _0x322bfa,DocSelectionManagerService as _0x1bbf56,DocSkeletonManagerService as _0x161dc1}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x11478e,serializeRangeWithSheet as _0x2bb9d3,FormulaExecuteStageType as _0x26130c,FormulaExecutedStateType as _0x3c9077,SetFormulaCalculationStartMutation as _0x3c9b39,SetFormulaCalculationNotificationMutation as _0xf19c0c}from'@univerjs/engine-formula';import{map as _0x59419b,filter as _0x3c921b,throttleTime as _0x56a0cc,takeUntil as _0x2fc8e5,switchMap as _0xa98073}from'rxjs/operators';import{SheetSkeletonManagerService as _0xe45214,getCoordByCell as _0x41d966,getSheetObject as _0x957042}from'@univerjs/sheets-ui';function Ge({ref:_0x481b70,..._0x34e044}){const _0x200e83=_0x30d5ae,{icon:_0x5614a4,id:_0x1e4e6c,className:_0x52de53,extend:_0x3f3140,..._0x207305}=_0x34e044,_0x2d7b2b=('univerjs-icon\x20univerjs-icon-'+_0x1e4e6c+'\x20'+(_0x52de53||''))[_0x200e83(0x2db)](),_0x5ac155=_0x45d879('_'+vi());return At(_0x5614a4,''+_0x1e4e6c,{'defIds':_0x5614a4[_0x200e83(0x1a3)],'idSuffix':_0x5ac155[_0x200e83(0x366)]},{'ref':_0x481b70,'className':_0x2d7b2b,..._0x207305},_0x3f3140);}function At(_0x4154d5,_0x20929c,_0x4990cb,_0x5e6da6,_0x4c9629){const _0x1c6242=_0x30d5ae;return _0x33309(_0x4154d5[_0x1c6242(0x2a2)],{'key':_0x20929c,...gi(_0x4154d5,_0x4990cb,_0x4c9629),..._0x5e6da6},(Ei(_0x4154d5,_0x4990cb)[_0x1c6242(0x21f)]||[])[_0x1c6242(0x27b)]((_0x3e7cfd,_0x7d4d38)=>At(_0x3e7cfd,_0x20929c+'-'+_0x4154d5[_0x1c6242(0x2a2)]+'-'+_0x7d4d38,_0x4990cb,void 0x0,_0x4c9629)));}function gi(_0x4f6885,_0x529d4f,_0x3196b5){const _0x51498a=_0x30d5ae,_0x15c3f3={..._0x4f6885[_0x51498a(0x18a)]};_0x3196b5!=null&&_0x3196b5[_0x51498a(0x27f)]&&_0x15c3f3[_0x51498a(0x316)]==='colorChannel1'&&(_0x15c3f3[_0x51498a(0x316)]=_0x3196b5[_0x51498a(0x27f)]),_0x4f6885['tag']===_0x51498a(0x1f7)&&_0x15c3f3['id']&&(_0x15c3f3['id']=_0x15c3f3['id']+_0x529d4f[_0x51498a(0x31c)]),Object[_0x51498a(0x37b)](_0x15c3f3)['forEach'](([_0x557f7e,_0x265482])=>{const _0x410bd2=_0x51498a;_0x557f7e===_0x410bd2(0x1f7)&&typeof _0x265482==_0x410bd2(0x368)&&(_0x15c3f3[_0x557f7e]=_0x265482[_0x410bd2(0x32f)](/url\(#(.*)\)/,'url(#$1'+_0x529d4f[_0x410bd2(0x31c)]+')'));});const {defIds:_0xf688ec}=_0x529d4f;return!_0xf688ec||_0xf688ec['length']===0x0||(_0x4f6885[_0x51498a(0x2a2)]===_0x51498a(0x360)&&_0x15c3f3['xlink:href']&&(_0x15c3f3[_0x51498a(0x31a)]=_0x15c3f3[_0x51498a(0x31a)]+_0x529d4f[_0x51498a(0x31c)]),Object[_0x51498a(0x37b)](_0x15c3f3)[_0x51498a(0x333)](([_0x58e11f,_0x35eda7])=>{const _0x5e582f=_0x51498a;typeof _0x35eda7==_0x5e582f(0x368)&&(_0x15c3f3[_0x58e11f]=_0x35eda7[_0x5e582f(0x32f)](/url\(#(.*)\)/,_0x5e582f(0x16c)+_0x529d4f[_0x5e582f(0x31c)]+')'));})),_0x15c3f3;}function Ei(_0x92e789,_0x16ff56){const _0x1cea48=_0x30d5ae;var _0x25cd55;const {defIds:_0x135792}=_0x16ff56;return!_0x135792||_0x135792[_0x1cea48(0x1e2)]===0x0?_0x92e789:_0x92e789[_0x1cea48(0x2a2)]===_0x1cea48(0x388)&&((_0x25cd55=_0x92e789[_0x1cea48(0x21f)])!=null&&_0x25cd55[_0x1cea48(0x1e2)])?{..._0x92e789,'children':_0x92e789[_0x1cea48(0x21f)][_0x1cea48(0x27b)](_0x1c8afe=>typeof _0x1c8afe[_0x1cea48(0x18a)]['id']=='string'&&_0x135792&&_0x135792['includes'](_0x1c8afe['attrs']['id'])?{..._0x1c8afe,'attrs':{..._0x1c8afe[_0x1cea48(0x18a)],'id':_0x1c8afe['attrs']['id']+_0x16ff56[_0x1cea48(0x31c)]}}:_0x1c8afe)}:_0x92e789;}function vi(){const _0x3f85c9=_0x30d5ae;return Math[_0x3f85c9(0x24f)]()[_0x3f85c9(0x2f1)](0x24)['substring'](0x2,0x8);}Ge[_0x30d5ae(0x1da)]=_0x30d5ae(0x1d4);const pi={'tag':_0x30d5ae(0x1de),'attrs':{'xmlns':_0x30d5ae(0x1f3),'fill':_0x30d5ae(0x2f0),'viewBox':_0x30d5ae(0x302),'width':'1em','height':_0x30d5ae(0x1b7)},'children':[{'tag':'g','attrs':{'clipPath':_0x30d5ae(0x2a6)},'children':[{'tag':_0x30d5ae(0x22b),'attrs':{'stroke':'currentColor','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':_0x30d5ae(0x178),'strokeLinejoin':_0x30d5ae(0x178),'strokeWidth':1.2}}]},{'tag':_0x30d5ae(0x388),'attrs':{},'children':[{'tag':_0x30d5ae(0x309),'attrs':{'id':_0x30d5ae(0x373)},'children':[{'tag':_0x30d5ae(0x22b),'attrs':{'fill':'white','d':_0x30d5ae(0x22e)}}]}]}],'defIds':[_0x30d5ae(0x373)]},Pt=_0x53576f(function(_0x541db1,_0x5dcdbc){const _0x25a747=_0x30d5ae;return _0x33309(Ge,Object[_0x25a747(0x364)]({},_0x541db1,{'id':_0x25a747(0x241),'ref':_0x5dcdbc,'icon':pi}));});Pt[_0x30d5ae(0x1da)]='OffLineIcon';const Oi={'tag':'svg','attrs':{'xmlns':_0x30d5ae(0x1f3),'fill':_0x30d5ae(0x2f0),'viewBox':_0x30d5ae(0x21e),'width':_0x30d5ae(0x1b7),'height':_0x30d5ae(0x1b7)},'children':[{'tag':'g','attrs':{'clipPath':_0x30d5ae(0x1bd)},'children':[{'tag':_0x30d5ae(0x22b),'attrs':{'stroke':'currentColor','d':_0x30d5ae(0x1d8),'strokeLinecap':'round','strokeLinejoin':_0x30d5ae(0x178),'strokeWidth':1.2}}]},{'tag':_0x30d5ae(0x388),'attrs':{},'children':[{'tag':_0x30d5ae(0x309),'attrs':{'id':_0x30d5ae(0x180)},'children':[{'tag':'path','attrs':{'fill':_0x30d5ae(0x2d8),'d':_0x30d5ae(0x22e),'transform':'translate(.97)'}}]}]}],'defIds':[_0x30d5ae(0x180)]},wt=_0x53576f(function(_0x21e9d9,_0x569f14){return _0x33309(Ge,Object['assign']({},_0x21e9d9,{'id':'on-line-icon','ref':_0x569f14,'icon':Oi}));});wt[_0x30d5ae(0x1da)]=_0x30d5ae(0x343);function Ti(_0x5a398a){const _0x242201=_0x30d5ae;switch(_0x5a398a){case _0x555c2c['OFFLINE']:return'collabStatus.offline';case _0x555c2c['CONFLICT']:return _0x242201(0x352);case _0x555c2c['FETCH_MISS']:return _0x242201(0x28d);case _0x555c2c['NOT_COLLAB']:return _0x242201(0x18e);case _0x555c2c[_0x242201(0x230)]:case _0x555c2c[_0x242201(0x380)]:return'collabStatus.syncing';case _0x555c2c[_0x242201(0x28a)]:case _0x555c2c[_0x242201(0x224)]:return _0x242201(0x1ae);}}function Ci(_0x12ee73){const _0x5ab6e4=_0x30d5ae,{status$:_0x19e90d}=_0x12ee73,_0x1275b7=_0x4bc266(_0x19e90d,_0x555c2c['NOT_COLLAB']),_0x56eb29=_0x292f46(_0xfbc0e7),_0x5c6140=_0x292f46(_0x90a824),_0x5ac426=_0x1275b7!==_0x555c2c['OFFLINE'],_0x31cef0=_0x56eb29['t'](Ti(_0x1275b7)),_0x4d91e4=_0x5ac426?_0x41810f(wt,{}):_0x41810f(Pt,{}),_0x53d15f=_0x133545(()=>{_0x5ac426||_0x5c6140['reconnect']();},[_0x5ac426,_0x5c6140]);function _0x30403c(){const _0xb26d82=_0x23c8;return _0x118212(_0xb26d82(0x1b3),{'className':_0xb26d82(0x184),'onClick':_0x53d15f,'children':[_0x41810f(_0xb26d82(0x1b3),{'className':_0x310a78(_0xb26d82(0x249),{'univer-text-green-500':_0x5ac426,'univer-text-red-500':!_0x5ac426}),'children':_0x4d91e4}),_0x41810f(_0xb26d82(0x1b3),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x31cef0})]});}return _0x5ac426?_0x30403c():_0x41810f(_0x27df07,{'title':_0x56eb29['t'](_0x5ab6e4(0x176)),'children':_0x30403c()});}var Ri=Object[_0x30d5ae(0x1b6)],Di=(_0x4f3f6b,_0xc22b1c,_0x50e00b,_0x5602b4)=>{for(var _0x37cf9a=_0x5602b4>0x1?void 0x0:_0x5602b4?Ri(_0xc22b1c,_0x50e00b):_0xc22b1c,_0x373743=_0x4f3f6b['length']-0x1,_0x59045a;_0x373743>=0x0;_0x373743--)(_0x59045a=_0x4f3f6b[_0x373743])&&(_0x37cf9a=_0x59045a(_0x37cf9a)||_0x37cf9a);return _0x37cf9a;},se=(_0x164a80,_0x4aa674)=>(_0xb36fe2,_0xf20d7e)=>_0x4aa674(_0xb36fe2,_0xf20d7e,_0x164a80);let ae=class extends _0x2b1774{constructor(_0x484245,_0x29317a,_0x5356be,_0x1b0923){const _0x47759c=_0x30d5ae;super(),_(this,_0x47759c(0x2e3),new _0x2eea28(_0x555c2c['NOT_COLLAB'])),(this[_0x47759c(0x32c)]=_0x484245,this[_0x47759c(0x1e4)]=_0x29317a,this[_0x47759c(0x1e9)]=_0x5356be,this[_0x47759c(0x29e)]=_0x1b0923,this[_0x47759c(0x16f)](),this[_0x47759c(0x38d)]());}[_0x30d5ae(0x38d)](){const _0x81132a=_0x30d5ae;this['disposeWithMe'](this[_0x81132a(0x32c)][_0x81132a(0x274)][_0x81132a(0x27e)](_0x5d8fb1(()=>{const _0xcf1a03=_0x81132a,_0x255562=this[_0xcf1a03(0x32c)][_0xcf1a03(0x1f5)]();return _0x255562?this[_0xcf1a03(0x1e9)][_0xcf1a03(0x218)](_0x255562[_0xcf1a03(0x3a0)]()):_0x5cdfe4(null);}),_0x5d8fb1(_0x594f92=>_0x594f92?_0x594f92[_0x81132a(0x38b)]:_0x5cdfe4(_0x555c2c[_0x81132a(0x1bb)])))[_0x81132a(0x21b)](_0xeaf535=>{const _0x22f72b=_0x81132a;this[_0x22f72b(0x2e3)][_0x22f72b(0x32e)](_0xeaf535);}));}[_0x30d5ae(0x16f)](){const _0x3a041a=_0x30d5ae;this['disposeWithMe'](this[_0x3a041a(0x29e)]['registerComponent'](_0x5f4eda['HEADER_MENU'],()=>_0x10a82e(Ni({'status$':this['_status$'][_0x3a041a(0x285)]()}),this[_0x3a041a(0x1e4)])));}};ae=Di([se(0x0,_0x378c7f),se(0x1,_0x222181(_0x5c2372)),se(0x2,_0x222181(_0x366818)),se(0x3,_0xebe2a1)],ae);function Ni(_0x2be280){const {status$:_0x59e55f}=_0x2be280;return function(){return _0x41810f(Ci,{'status$':_0x59e55f});};}const yt=_0xda333f(_0x30d5ae(0x23a));var bi=Object[_0x30d5ae(0x1b6)],Li=(_0x4507f6,_0x4e60dd,_0x5ade1e,_0x563f0e)=>{const _0x3b6a3d=_0x30d5ae;for(var _0x21b5dc=_0x563f0e>0x1?void 0x0:_0x563f0e?bi(_0x4e60dd,_0x5ade1e):_0x4e60dd,_0x31bda3=_0x4507f6[_0x3b6a3d(0x1e2)]-0x1,_0x2bee03;_0x31bda3>=0x0;_0x31bda3--)(_0x2bee03=_0x4507f6[_0x31bda3])&&(_0x21b5dc=_0x2bee03(_0x21b5dc)||_0x21b5dc);return _0x21b5dc;},K=(_0x2c81aa,_0xcd7014)=>(_0xceb337,_0x186214)=>_0xcd7014(_0xceb337,_0x186214,_0x2c81aa);let ce=class extends _0x5e4f80{constructor(_0x4980b4,_0x3667a7,_0x6b39bb,_0x51fe60,_0x5f24f7){const _0x33b768=_0x30d5ae;super(),this[_0x33b768(0x288)]=_0x4980b4,this['_logService']=_0x3667a7,this[_0x33b768(0x39a)]=_0x6b39bb,this['_dataLoaderService']=_0x51fe60,_0x5f24f7?_0x5f24f7==null||_0x5f24f7[_0x33b768(0x35f)]()[_0x33b768(0x1a9)](()=>this[_0x33b768(0x30d)]()):(this[_0x33b768(0x33c)][_0x33b768(0x2de)](_0x33b768(0x300),_0x33b768(0x2ed)),this['_init']());}async[_0x30d5ae(0x30d)](){const _0x6c6de8=_0x30d5ae,_0x521bae=this[_0x6c6de8(0x288)]['getParam'](_0x6c6de8(0x2bf)),_0x36e71f=this[_0x6c6de8(0x288)][_0x6c6de8(0x308)](_0x6c6de8(0x2a5)),_0x384feb=this[_0x6c6de8(0x288)][_0x6c6de8(0x308)](_0x6c6de8(0x335));if(!_0x521bae||!_0x36e71f){this[_0x6c6de8(0x33c)][_0x6c6de8(0x2de)]('[CollaborationDataLoaderController]',_0x6c6de8(0x35e));return;}const _0x39a37f=await this[_0x6c6de8(0x16a)][_0x6c6de8(0x35c)](_0x521bae,Number(_0x36e71f),_0x384feb);_0x39a37f&&_0x39a37f instanceof _0x590a68&&this[_0x6c6de8(0x2cc)](_0x39a37f);}async[_0x30d5ae(0x2cc)](_0x3ee726){const _0x33336b=_0x30d5ae;await this['_updateSubUnitFromURLParams'](_0x3ee726),_0x3ee726[_0x33336b(0x318)][_0x33336b(0x27e)](_0x9a62f4(this[_0x33336b(0x392)]))[_0x33336b(0x21b)](_0x4048f7=>{const _0x5eb3b4=_0x33336b;_0x4048f7&&this[_0x5eb3b4(0x347)](_0x4048f7);}),this[_0x33336b(0x288)]['urlChange$'][_0x33336b(0x27e)](_0x9a62f4(this['dispose$']))['subscribe'](()=>this[_0x33336b(0x396)](_0x3ee726));}[_0x30d5ae(0x347)](_0x31cdcf,_0x7c0132=!0x1){const _0x220e83=_0x30d5ae,_0x3afb99=this[_0x220e83(0x288)][_0x220e83(0x308)](_0x220e83(0x335));_0x31cdcf[_0x220e83(0x1c9)]()!==_0x3afb99&&this[_0x220e83(0x288)][_0x220e83(0x30a)]('subunit',_0x31cdcf[_0x220e83(0x1c9)](),_0x7c0132);}async['_updateSubUnitFromURLParams'](_0x47f6da){const _0x3d537d=_0x30d5ae;var _0xd4fd2c;const _0x5b605c=this[_0x3d537d(0x288)][_0x3d537d(0x308)](_0x3d537d(0x335));if(!_0x5b605c||!_0x47f6da[_0x3d537d(0x31b)](_0x5b605c)){const _0x5750a3=_0x47f6da[_0x3d537d(0x226)]()[0x0],_0x14e1d1=_0x47f6da[_0x3d537d(0x31b)](_0x5750a3);if(!_0x14e1d1)return;this[_0x3d537d(0x347)](_0x14e1d1,!0x0),await this[_0x3d537d(0x39a)]['executeCommand'](_0x48254f['id'],{'unitId':_0x47f6da[_0x3d537d(0x3a0)](),'subUnitId':_0x5750a3});return;}((_0xd4fd2c=_0x47f6da['getActiveSheet']())==null?void 0x0:_0xd4fd2c[_0x3d537d(0x1c9)]())!==_0x5b605c&&await this[_0x3d537d(0x39a)][_0x3d537d(0x31e)](_0x48254f['id'],{'unitId':_0x47f6da[_0x3d537d(0x3a0)](),'subUnitId':_0x5b605c});}};ce=Li([K(0x0,yt),K(0x1,_0x2b507f),K(0x2,_0x271cee),K(0x3,_0x222181(_0x50b744)),K(0x4,_0x5e2d79(_0x5a51ac))],ce);var Ui=Object[_0x30d5ae(0x1b6)],Mi=(_0x14aef9,_0x5bc1c0,_0x30edb0,_0x1ed6a9)=>{const _0x3ed809=_0x30d5ae;for(var _0x112ce2=_0x1ed6a9>0x1?void 0x0:_0x1ed6a9?Ui(_0x5bc1c0,_0x30edb0):_0x5bc1c0,_0x3cae53=_0x14aef9[_0x3ed809(0x1e2)]-0x1,_0x2f05b8;_0x3cae53>=0x0;_0x3cae53--)(_0x2f05b8=_0x14aef9[_0x3cae53])&&(_0x112ce2=_0x2f05b8(_0x112ce2)||_0x112ce2);return _0x112ce2;},rt=(_0x6190d9,_0x4ba17a)=>(_0x92a204,_0x342455)=>_0x4ba17a(_0x92a204,_0x342455,_0x6190d9);let $e=class extends _0x5e4f80{constructor(_0x59d79b,_0x1c5bcf){const _0x2bffb0=_0x30d5ae;super(),this['_docClipboardService']=_0x59d79b,this['_imageIoService']=_0x1c5bcf,this[_0x2bffb0(0x30d)]();}['_init'](){const _0x56b0d7=_0x30d5ae,_0x189474=this;this[_0x56b0d7(0x3a2)](this[_0x56b0d7(0x187)][_0x56b0d7(0x378)]({'onBeforePasteImage':async _0x6db703=>{const _0x50a00e=_0x56b0d7,_0x504f88=await _0x189474[_0x50a00e(0x32a)]['saveImage'](_0x6db703);return _0x504f88?{'source':_0x504f88['source'],'imageSourceType':_0x504f88[_0x50a00e(0x3b1)]}:null;}}));}};$e=Mi([rt(0x0,_0x4c0572),rt(0x1,_0x336789)],$e);const ot=[_0x30d5ae(0x1bc),_0x30d5ae(0x2c4),_0x30d5ae(0x282),_0x30d5ae(0x358),_0x30d5ae(0x38f),'yellow.400'];class Ke extends _0x2b1774{constructor(){const _0x23c371=_0x30d5ae;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x23c371(0x213),0x0);}['assignAColorForMemberID'](_0x51413e){const _0x18a0bd=_0x30d5ae;if(this['_assignedColors'][_0x18a0bd(0x1a1)](_0x51413e))return this[_0x18a0bd(0x185)][_0x18a0bd(0x2e1)](_0x51413e);const _0x12c6a6=ot[this[_0x18a0bd(0x213)]];return this[_0x18a0bd(0x213)]=(this[_0x18a0bd(0x213)]+0x1)%ot['length'],this[_0x18a0bd(0x185)][_0x18a0bd(0x2f6)](_0x51413e,_0x12c6a6),_0x12c6a6;}}function $t(_0x38aaad){let _0x308fe1='';for(const _0x542771 of _0x38aaad){const {startOffset:_0x30ae4,endOffset:_0x4cf10a,isActive:_0x1a876a,rangeType:_0x234f1d,segmentId:_0x1d10cb,segmentPage:_0x704dc4}=_0x542771;_0x308fe1['length']&&(_0x308fe1+=','),_0x308fe1+=_0x30ae4+':'+_0x4cf10a+':'+(_0x1a876a?'1':'0')+':'+_0x234f1d+':'+_0x1d10cb+':'+_0x704dc4;}return _0x308fe1;}function Ai(_0x10e613){const _0x185266=_0x30d5ae,_0x73cb75=_0x10e613[_0x185266(0x28e)](','),_0x3f5421=[];for(const _0x29a352 of _0x73cb75){const [_0x10dc7c,_0x3bd4b9,_0x39b3a6,_0x32c12f,_0x2fbe4c,_0x8de45]=_0x29a352['split'](':');_0x3f5421['push']({'startOffset':Number(_0x10dc7c),'endOffset':Number(_0x3bd4b9),'collapsed':_0x10dc7c===_0x3bd4b9,'isActive':_0x39b3a6==='1','rangeType':_0x32c12f===_0x120f2f[_0x185266(0x1c3)]?_0x120f2f[_0x185266(0x1c3)]:_0x120f2f[_0x185266(0x267)],'segmentId':typeof _0x2fbe4c=='string'?String(_0x2fbe4c):'','segmentPage':Number(_0x8de45!=null?_0x8de45:-0x1)});}return _0x3f5421[_0x185266(0x32b)](_0x472156=>_0x472156[_0x185266(0x287)])||(_0x3f5421[0x0]['isActive']=!0x0),_0x3f5421;}class ze extends _0x5e4f80{constructor(){const _0x697c36=_0x30d5ae;super(...arguments),_(this,_0x697c36(0x22d),new _0x2eea28(null)),_(this,'collabCursorState$',this['_collabCursorState$'][_0x697c36(0x285)]());}['syncEditingCollabCursor'](_0x4318b4){const _0x504016=_0x30d5ae,{unitID:_0x46978a,memberID:_0xd1cac3,textRanges:_0x2ea51c}=_0x4318b4,_0x51431=$t(_0x2ea51c);if(_0x51431==='')return;const _0x17ff82={'unitID':_0x46978a,'memberID':_0xd1cac3,'selection':_0x51431};this[_0x504016(0x22d)][_0x504016(0x32e)](_0x17ff82);}}var Pi=Object[_0x30d5ae(0x1b6)],wi=(_0x21047d,_0x514d25,_0x26359e,_0x33e4a8)=>{for(var _0x1be647=_0x33e4a8>0x1?void 0x0:_0x33e4a8?Pi(_0x514d25,_0x26359e):_0x514d25,_0x31c4b9=_0x21047d['length']-0x1,_0x4c0385;_0x31c4b9>=0x0;_0x31c4b9--)(_0x4c0385=_0x21047d[_0x31c4b9])&&(_0x1be647=_0x4c0385(_0x1be647)||_0x1be647);return _0x1be647;},A=(_0x3b42dd,_0x1be087)=>(_0x2fef2f,_0x34d06f)=>_0x1be087(_0x2fef2f,_0x34d06f,_0x3b42dd);const yi=0x12c,$i=0x64;let xe=class extends _0x5e4f80{constructor(_0x1f7c65,_0xc0935,_0x59336f,_0x1e3965,_0x513bad,_0x423267,_0x3b6f8a,_0x154a64,_0x475718){const _0x4b199e=_0x30d5ae;super(),_(this,'_online',!0x1),_(this,_0x4b199e(0x30d),!0x1),_(this,'_cursorInfo$',new _0x2eea28(new Map())),_(this,_0x4b199e(0x20e),this[_0x4b199e(0x34e)][_0x4b199e(0x285)]()),_(this,_0x4b199e(0x289),new _0x2eea28([])),_(this,_0x4b199e(0x280),this[_0x4b199e(0x289)][_0x4b199e(0x27e)](_0x402ed0(yi))),_(this,_0x4b199e(0x38a),_0x4c7f2c(_0x330caa=>{const _0x42382a=_0x4b199e,_0x40376c={'eventID':_0x592c97[_0x42382a(0x307)],'data':{'unitID':this[_0x42382a(0x327)],'memberID':this['_session']['getMemberID'](),'selection':$t(_0x330caa)}};this['_session'][_0x42382a(0x181)](_0x40376c,this['unitID']);},$i)),(this[_0x4b199e(0x327)]=_0x1f7c65,this[_0x4b199e(0x2ec)]=_0xc0935,this['_injector']=_0x59336f,this['_colorAssignService']=_0x1e3965,this[_0x4b199e(0x2cd)]=_0x513bad,this[_0x4b199e(0x212)]=_0x423267,this[_0x4b199e(0x25c)]=_0x3b6f8a,this[_0x4b199e(0x32c)]=_0x154a64,this[_0x4b199e(0x39a)]=_0x475718);}get['cursorInfo'](){const _0x3e407c=_0x30d5ae;return this[_0x3e407c(0x34e)][_0x3e407c(0x365)]();}get['roomMembers'](){const _0x39afe0=_0x30d5ae;return this[_0x39afe0(0x289)][_0x39afe0(0x365)]();}[_0x30d5ae(0x304)](){const _0x234861=_0x30d5ae;super[_0x234861(0x304)](),this[_0x234861(0x34e)][_0x234861(0x32e)](new Map()),this[_0x234861(0x34e)][_0x234861(0x1f6)](),this[_0x234861(0x289)][_0x234861(0x32e)]([]),this[_0x234861(0x289)][_0x234861(0x1f6)]();}[_0x30d5ae(0x1eb)](){const _0x4a208e=_0x30d5ae;this[_0x4a208e(0x30d)]||(this[_0x4a208e(0x30d)]=!0x0,this[_0x4a208e(0x2ec)][_0x4a208e(0x16e)][_0x4a208e(0x27e)](_0x9a62f4(this[_0x4a208e(0x392)]))[_0x4a208e(0x21b)](_0x616a67=>{const _0x540078=_0x4a208e;_0x616a67===_0x43e6e0['ONLINE']?this['_toggleOnline']():this[_0x540078(0x188)]();}),this[_0x4a208e(0x2ec)][_0x4a208e(0x1ff)]['pipe'](_0x9a62f4(this['dispose$']))[_0x4a208e(0x21b)](_0x120fe7=>{const _0x35da41=_0x4a208e,_0x426d14=_0x120fe7[_0x35da41(0x367)];_0x426d14===_0x592c97[_0x35da41(0x307)]&&this[_0x35da41(0x2c6)](_0x120fe7),_0x426d14===_0x592c97[_0x35da41(0x207)]&&this[_0x35da41(0x389)](_0x120fe7);}),this['disposeWithMe'](this[_0x4a208e(0x39a)]['onCommandExecuted'](_0x3c55a7=>{const _0x1efe2f=_0x4a208e,_0xf8c48e=_0x3c55a7[_0x1efe2f(0x264)];_0xf8c48e!=null&&this['_online']&&_0x3c55a7['id']===_0x320aa0['id']&&_0xf8c48e['unitId']===this[_0x1efe2f(0x327)]&&_0xf8c48e[_0x1efe2f(0x19d)]===!0x1&&_0xf8c48e[_0x1efe2f(0x369)][_0x1efe2f(0x1e2)]>0x0&&this[_0x1efe2f(0x38a)](_0xf8c48e[_0x1efe2f(0x369)]);})),this[_0x4a208e(0x212)]['collabCursorState$']['pipe'](_0x9a62f4(this[_0x4a208e(0x392)]))['subscribe'](_0x3094bd=>{const _0x56bb60=_0x4a208e;if((_0x3094bd==null?void 0x0:_0x3094bd[_0x56bb60(0x327)])!==this[_0x56bb60(0x327)])return;const _0x24c092={'eventID':_0x592c97[_0x56bb60(0x307)],'data':_0x3094bd};this[_0x56bb60(0x2c6)](_0x24c092);}),this['disposeWithMe'](this[_0x4a208e(0x39a)]['onCommandExecuted'](_0x51edd7=>{const _0x5d721c=_0x4a208e;if(_0x51edd7[_0x5d721c(0x264)]==null)return;const _0x491bcd=_0x51edd7[_0x5d721c(0x264)];if(_0x51edd7['id']!==_0x322bfa['id']||_0x491bcd[_0x5d721c(0x220)]!==this[_0x5d721c(0x327)])return;const _0x247c70={'id':_0x5d721c(0x272),'params':_0x491bcd},_0x160b5a=this[_0x5d721c(0x2d1)];for(const [_0x447c66,_0x2ca3c5]of _0x160b5a){const _0x299b53={'id':_0x5d721c(0x272),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x2ca3c5[_0x5d721c(0x369)]}},_0x3c6af0=this[_0x5d721c(0x25c)]['transformMutation'](_0x247c70,_0x299b53,!0x1);if(_0x195bf6(_0x3c6af0))throw _0x3c6af0[_0x5d721c(0x2bc)];_0x160b5a[_0x5d721c(0x2f6)](_0x447c66,{..._0x2ca3c5,'ranges':_0x3c6af0[_0x5d721c(0x1e1)]['params'][_0x5d721c(0x321)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x160b5a);});})));}[_0x30d5ae(0x2c6)](_0x34482b){const _0x24d83e=_0x30d5ae;var _0x4f7a0b,_0xd68bb6;const {memberID:_0x4ddb72,selection:_0x6ca3bf}=_0x34482b[_0x24d83e(0x29f)],_0x345672=Ai(_0x6ca3bf),_0x4ac9b0=(_0xd68bb6=(_0x4f7a0b=this['_memberService'][_0x24d83e(0x3a1)](this[_0x24d83e(0x327)],_0x4ddb72))==null?void 0x0:_0x4f7a0b['name'])!=null?_0xd68bb6:_0x24d83e(0x384),_0x1e7ca0={'color':this[_0x24d83e(0x261)][_0x24d83e(0x26f)](_0x4ddb72),'name':_0x4ac9b0,'ranges':_0x345672},_0x5455ab=this['cursorInfo'];_0x5455ab[_0x24d83e(0x2f6)](_0x4ddb72,_0x1e7ca0),this[_0x24d83e(0x34e)][_0x24d83e(0x32e)](_0x5455ab);}['_onCursorDelete'](_0x17dbaf){const _0x538270=_0x30d5ae,{memberID:_0x465436}=_0x17dbaf['data'],_0x48f13c=this[_0x538270(0x2d1)];_0x48f13c[_0x538270(0x2ba)](_0x465436),this[_0x538270(0x34e)][_0x538270(0x32e)](_0x48f13c);}['_toggleOnline'](){const _0x13bbbe=_0x30d5ae;var _0x368d8b;if(this[_0x13bbbe(0x1e7)]=!0x0,((_0x368d8b=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x368d8b[_0x13bbbe(0x3a0)]())!==this[_0x13bbbe(0x327)])return;const _0x45508d=this[_0x13bbbe(0x1e4)]['get'](_0x1bbf56)['getDocRanges']();Array[_0x13bbbe(0x3a7)](_0x45508d)&&_0x45508d['length']>0x0&&this[_0x13bbbe(0x38a)](_0x45508d);}[_0x30d5ae(0x188)](){const _0x21c6ba=_0x30d5ae;this[_0x21c6ba(0x1e7)]=!0x1;}};xe=wi([A(0x2,_0x222181(_0x5c2372)),A(0x3,_0x222181(Ke)),A(0x4,_0x222181(_0x2e1724)),A(0x5,_0x222181(ze)),A(0x6,_0x1dc34f),A(0x7,_0x378c7f),A(0x8,_0x271cee)],xe);var xi=Object['getOwnPropertyDescriptor'],Bi=(_0x45e131,_0x307a4b,_0xaebdba,_0x5d9603)=>{for(var _0x1ca060=_0x5d9603>0x1?void 0x0:_0x5d9603?xi(_0x307a4b,_0xaebdba):_0x307a4b,_0x51506b=_0x45e131['length']-0x1,_0x33d2b5;_0x51506b>=0x0;_0x51506b--)(_0x33d2b5=_0x45e131[_0x51506b])&&(_0x1ca060=_0x33d2b5(_0x1ca060)||_0x1ca060);return _0x1ca060;},B=(_0xf94ca3,_0xca1b27)=>(_0x326f67,_0x5aa333)=>_0xca1b27(_0x326f67,_0x5aa333,_0xf94ca3);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x79bd48=[],_0x51dc19=!0x1;return _0x157140=>{const _0x105ea6=_0x23c8;_0x79bd48[_0x105ea6(0x293)](_0x157140),_0x51dc19||(_0x51dc19=!0x0,setTimeout(()=>{_0x79bd48['forEach'](_0x365db1=>_0x365db1()),_0x79bd48=[],_0x51dc19=!0x1;}));};};let Be=class extends _0x5e4f80{constructor(_0x55edf6,_0x58b95f,_0x592f3d,_0x41f1e5,_0x430dcf,_0x4ebe66,_0x56ba7e,_0x161d1f){const _0x1a009d=_0x30d5ae;super(),_(this,'_online',!0x1),_(this,_0x1a009d(0x30d),!0x1),_(this,_0x1a009d(0x34e),new _0x2eea28(new Map())),_(this,_0x1a009d(0x20e),this[_0x1a009d(0x34e)][_0x1a009d(0x285)]()),_(this,_0x1a009d(0x289),new _0x2eea28([])),_(this,_0x1a009d(0x280),this[_0x1a009d(0x289)]['pipe'](_0x402ed0(Fi))),_(this,_0x1a009d(0x38a),_0x4c7f2c((_0x102433,_0x2cdebe)=>{const _0x380876=_0x1a009d,_0x3ce788={'eventID':_0x592c97[_0x380876(0x307)],'data':{'unitID':this[_0x380876(0x327)],'memberID':this[_0x380876(0x2ec)]['getMemberID'](),'selection':_0x2bb9d3(_0x102433,_0x2cdebe['range'])}};this[_0x380876(0x2ec)][_0x380876(0x181)](_0x3ce788,this[_0x380876(0x327)]);},ki)),(this[_0x1a009d(0x327)]=_0x55edf6,this[_0x1a009d(0x2ec)]=_0x58b95f,this[_0x1a009d(0x1e4)]=_0x592f3d,this['_colorAssignService']=_0x41f1e5,this[_0x1a009d(0x2cd)]=_0x430dcf,this[_0x1a009d(0x32c)]=_0x4ebe66,this[_0x1a009d(0x39a)]=_0x56ba7e,this[_0x1a009d(0x252)]=_0x161d1f);}get[_0x30d5ae(0x2d1)](){const _0x3b99a1=_0x30d5ae;return this[_0x3b99a1(0x34e)][_0x3b99a1(0x365)]();}get['roomMembers'](){const _0x435c98=_0x30d5ae;return this[_0x435c98(0x289)]['getValue']();}[_0x30d5ae(0x304)](){const _0x569c53=_0x30d5ae;super[_0x569c53(0x304)](),this[_0x569c53(0x34e)][_0x569c53(0x32e)](new Map()),this[_0x569c53(0x34e)]['complete'](),this[_0x569c53(0x289)][_0x569c53(0x32e)]([]),this['_roomMembers$'][_0x569c53(0x1f6)]();}[_0x30d5ae(0x1eb)](){const _0x4f5850=_0x30d5ae;this[_0x4f5850(0x30d)]||(this['_init']=!0x0,this[_0x4f5850(0x2ec)][_0x4f5850(0x16e)][_0x4f5850(0x27e)](_0x9a62f4(this[_0x4f5850(0x392)]))['subscribe'](_0xbc8f05=>{const _0x268f4a=_0x4f5850;_0xbc8f05===_0x43e6e0[_0x268f4a(0x39c)]?this[_0x268f4a(0x3af)]():this[_0x268f4a(0x188)]();}),this['_session'][_0x4f5850(0x1ff)][_0x4f5850(0x27e)](_0x9a62f4(this['dispose$']))[_0x4f5850(0x21b)](_0xaf4538=>{const _0x16b42d=_0x4f5850,_0x5789ac=_0xaf4538['eventID'];_0x5789ac===_0x592c97[_0x16b42d(0x307)]&&this[_0x16b42d(0x2c6)](_0xaf4538),_0x5789ac===_0x592c97[_0x16b42d(0x207)]&&this['_onCursorDelete'](_0xaf4538);}),this[_0x4f5850(0x323)](),this[_0x4f5850(0x3a2)](this[_0x4f5850(0x39a)][_0x4f5850(0x24b)](_0x2e1f22=>{const _0x1078f9=_0x4f5850;if(this['_online']&&_0x2e1f22['id']===_0x2e23ac['id']&&_0x2e1f22[_0x1078f9(0x264)]['unitId']===this['unitID']){const _0x851729=_0x2e1f22[_0x1078f9(0x264)];this[_0x1078f9(0x38a)](_0x851729[_0x1078f9(0x34c)],_0x851729['selections'][0x0]);}})));}['_onCursorUpdate'](_0x1a34ca){const _0x28c3e3=_0x30d5ae;var _0x1eeeff,_0x570d11;const {memberID:_0x1b92c6,selection:_0x5b48d7}=_0x1a34ca[_0x28c3e3(0x29f)],{sheetName:_0x3dd2e1,range:_0x4291b4}=_0x11478e(_0x5b48d7),_0xa48fc6={'name':(_0x570d11=(_0x1eeeff=this[_0x28c3e3(0x2cd)][_0x28c3e3(0x3a1)](this[_0x28c3e3(0x327)],_0x1b92c6))==null?void 0x0:_0x1eeeff['name'])!=null?_0x570d11:'Unknown\x20user','range':this[_0x28c3e3(0x391)](_0x3dd2e1,_0x4291b4),'sheetID':_0x3dd2e1,'color':this[_0x28c3e3(0x261)][_0x28c3e3(0x26f)](_0x1b92c6),'selection':_0x5b48d7},_0x5f2421=this[_0x28c3e3(0x2d1)];_0x5f2421[_0x28c3e3(0x2f6)](_0x1b92c6,_0xa48fc6),this[_0x28c3e3(0x34e)][_0x28c3e3(0x32e)](_0x5f2421);}[_0x30d5ae(0x389)](_0x13559e){const _0x5730ad=_0x30d5ae,{memberID:_0xcd5fed}=_0x13559e[_0x5730ad(0x29f)],_0x51a80e=this['cursorInfo'];_0x51a80e[_0x5730ad(0x2ba)](_0xcd5fed),this['_cursorInfo$']['next'](_0x51a80e);}[_0x30d5ae(0x391)](_0x4c60f3,_0x37c746){const _0x51a16a=_0x30d5ae;var _0x5b5563,_0x315ad5;const _0x33b42c=(_0x315ad5=(_0x5b5563=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x51a16a(0x327)]))==null?void 0x0:_0x5b5563[_0x51a16a(0x31b)](_0x4c60f3))==null?void 0x0:_0x315ad5[_0x51a16a(0x2fe)]();return(_0x33b42c==null?void 0x0:_0x33b42c[_0x51a16a(0x315)](_0x165467=>_0x197cd6['contains'](_0x165467,_0x37c746)))||_0x37c746;}[_0x30d5ae(0x323)](){const _0x21094c=_0x30d5ae,_0x144991=new _0x27de72(),_0x1753f3=Hi(),_0x536b1c=()=>{const _0x1f1684=_0x23c8;_0x144991[_0x1f1684(0x304)]();const _0x1f72d8=(_0x5cfb95,_0x4d52e7,_0xaf865e,_0x3346d3)=>{const _0x995ece=_0x1f1684;let _0x343ea0=[];switch(_0x5cfb95['id']){case _0x32ac42['DeleteRangeMoveLeftCommandId']:{_0x343ea0=_0x2bcecc(_0x5cfb95,_0x3346d3);break;}case _0x32ac42['DeleteRangeMoveUpCommandId']:{_0x343ea0=_0x2eee1f(_0x5cfb95,_0x3346d3);break;}case _0x32ac42['InsertColCommandId']:{_0x343ea0=_0x3f3780(_0x5cfb95,_0x3346d3);break;}case _0x32ac42[_0x995ece(0x24e)]:{_0x343ea0=_0x2871ee(_0x5cfb95,_0x3346d3);break;}case _0x32ac42[_0x995ece(0x23c)]:{_0x343ea0=_0x395ccc(_0x5cfb95,_0x3346d3);break;}case _0x32ac42[_0x995ece(0x22f)]:{_0x343ea0=_0x41ec95(_0x5cfb95,_0x3346d3);break;}case _0x32ac42['MoveRangeCommandId']:{_0x343ea0=_0xcacc45(_0x5cfb95,_0x3346d3);break;}case _0x32ac42[_0x995ece(0x319)]:{_0x343ea0=_0x99727e(_0x5cfb95,_0x3346d3);break;}case _0x32ac42['RemoveRowCommandId']:{_0x343ea0=_0x15e9ff(_0x5cfb95,_0x3346d3);break;}}const _0x35c86f=_0xea9e44(_0x343ea0,_0x3346d3),_0x1f6eb5=this[_0x995ece(0x2d1)][_0x995ece(0x2e1)](_0x4d52e7);if(_0x1f6eb5&&_0x35c86f){const _0x517d1a={..._0x1f6eb5,'range':_0x35c86f};this[_0x995ece(0x2d1)][_0x995ece(0x2f6)](_0x4d52e7,_0x517d1a),_0x1753f3(()=>{const _0x3f3532=_0x995ece,_0x5c8c55=this[_0x3f3532(0x252)][_0x3f3532(0x2c7)](_0x35c86f,_0x5d228b=>(_0x5c8c55['dispose'](),_0x1f72d8(_0x5d228b,_0x4d52e7,_0xaf865e,_0x35c86f)));_0x144991[_0x3f3532(0x1e8)](_0x5c8c55);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x1f1684(0x333)]((_0xdc222f,_0x5de72d)=>{const _0x583112=_0x1f1684,{range:_0x3be9b6,sheetID:_0x38426d}=_0xdc222f,_0x2e95ee=this[_0x583112(0x252)][_0x583112(0x2c7)](_0x3be9b6,_0x368e45=>(_0x2e95ee[_0x583112(0x304)](),_0x1f72d8(_0x368e45,_0x5de72d,_0x38426d,_0x3be9b6)));_0x144991[_0x583112(0x1e8)](_0x2e95ee);});};this['disposeWithMe'](_0x31bc29(this[_0x21094c(0x34e)]['subscribe'](()=>{_0x536b1c();})));}['_toggleOnline'](){const _0x59cd82=_0x30d5ae;var _0x50f932,_0x2e3ad9;if(this[_0x59cd82(0x1e7)]=!0x0,((_0x50f932=this[_0x59cd82(0x32c)]['getFocusedUnit']())==null?void 0x0:_0x50f932[_0x59cd82(0x3a0)]())!==this[_0x59cd82(0x327)])return;const _0x5197d6=(_0x2e3ad9=this[_0x59cd82(0x1e4)][_0x59cd82(0x2e1)](_0x4d867f)['getCurrentSelections']())==null?void 0x0:_0x2e3ad9[0x0],_0x2cd7c4=this[_0x59cd82(0x32c)]['getCurrentUnitForType'](_0xba2a08[_0x59cd82(0x385)])['getActiveSheet']();_0x5197d6&&_0x2cd7c4&&this[_0x59cd82(0x38a)](_0x2cd7c4[_0x59cd82(0x1c9)](),_0x5197d6);}[_0x30d5ae(0x188)](){const _0x5a5e27=_0x30d5ae;this[_0x5a5e27(0x1e7)]=!0x1;}};Be=Bi([B(0x2,_0x222181(_0x5c2372)),B(0x3,_0x222181(Ke)),B(0x4,_0x222181(_0x2e1724)),B(0x5,_0x378c7f),B(0x6,_0x271cee),B(0x7,_0x222181(_0x100f4b))],Be);var Yi=Object[_0x30d5ae(0x1b6)],Wi=(_0x4fa328,_0x274b04,_0x20ba54,_0x2736a8)=>{for(var _0xb2e919=_0x2736a8>0x1?void 0x0:_0x2736a8?Yi(_0x274b04,_0x20ba54):_0x274b04,_0x48db9d=_0x4fa328['length']-0x1,_0x338d12;_0x48db9d>=0x0;_0x48db9d--)(_0x338d12=_0x4fa328[_0x48db9d])&&(_0xb2e919=_0x338d12(_0xb2e919)||_0xb2e919);return _0xb2e919;},Ce=(_0x3179f1,_0xe0d585)=>(_0x2477e9,_0x2edb9e)=>_0xe0d585(_0x2477e9,_0x2edb9e,_0x3179f1);let H=class extends _0x5e4f80{constructor(_0x310b57,_0x253eef,_0x2c3eb8){const _0x52e54a=_0x30d5ae;super(),_(this,_0x52e54a(0x228),new Map()),_(this,_0x52e54a(0x1f9),new _0x6d42f4()),(this[_0x52e54a(0x32c)]=_0x310b57,this[_0x52e54a(0x1e4)]=_0x253eef,this[_0x52e54a(0x2af)]=_0x2c3eb8,this[_0x52e54a(0x30d)]());}[_0x30d5ae(0x304)](){const _0x1514b7=_0x30d5ae;super['dispose'](),this[_0x1514b7(0x1f9)][_0x1514b7(0x1f6)](),this[_0x1514b7(0x228)][_0x1514b7(0x333)](_0x49cdf1=>_0x49cdf1[_0x1514b7(0x304)]());}[_0x30d5ae(0x25e)](_0x5a92c7){const _0x24001d=_0x30d5ae;return this[_0x24001d(0x228)]['has'](_0x5a92c7)?this[_0x24001d(0x228)]['get'](_0x5a92c7)[_0x24001d(0x20e)]:this[_0x24001d(0x1f9)]['pipe'](_0x62bf18(_0x2bc05e=>_0x2bc05e['unitID']===_0x5a92c7),_0x5d8fb1(_0x73f802=>_0x73f802[_0x24001d(0x20e)]));}[_0x30d5ae(0x30d)](){const _0xf5a571=_0x30d5ae;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0xba2a08[_0xf5a571(0x385)])[_0xf5a571(0x27e)](_0x9a62f4(this[_0xf5a571(0x392)]))[_0xf5a571(0x21b)](async _0x17dff1=>{const _0x237472=_0xf5a571,_0x307aeb=_0x17dff1[_0x237472(0x3a0)](),_0xd9d49e=await this['_startSheetCollabCursor'](_0x307aeb);this[_0x237472(0x1f9)]['next'](_0xd9d49e),this['_entities'][_0x237472(0x2f6)](_0x307aeb,_0xd9d49e);}),this[_0xf5a571(0x32c)]['getTypeOfUnitAdded$'](_0xba2a08[_0xf5a571(0x2a1)])[_0xf5a571(0x27e)](_0x9a62f4(this[_0xf5a571(0x392)]))['pipe'](_0x62bf18(_0x177266=>!_0x177266['getUnitId']()['startsWith']('__')))['subscribe'](async _0x51ab65=>{const _0x299b84=_0xf5a571,_0x5eaf14=_0x51ab65['getUnitId'](),_0xe8987c=await this[_0x299b84(0x334)](_0x5eaf14);this['_entityInit$']['next'](_0xe8987c),this[_0x299b84(0x228)][_0x299b84(0x2f6)](_0x5eaf14,_0xe8987c);}),_0x36e4a9(this[_0xf5a571(0x32c)][_0xf5a571(0x28b)](_0xba2a08[_0xf5a571(0x2a1)]),this[_0xf5a571(0x32c)][_0xf5a571(0x28b)](_0xba2a08[_0xf5a571(0x385)]))[_0xf5a571(0x27e)](_0x9a62f4(this['dispose$']))[_0xf5a571(0x21b)](_0xf9ba3c=>{const _0x6d0e5f=_0xf5a571,_0x25319d=_0xf9ba3c[_0x6d0e5f(0x3a0)](),_0x35d4f3=this[_0x6d0e5f(0x228)][_0x6d0e5f(0x2e1)](_0x25319d);_0x35d4f3&&(_0x35d4f3['dispose'](),this['_entities'][_0x6d0e5f(0x2ba)](_0x25319d));});}async['_startSheetCollabCursor'](_0x351a3b){const _0xb8d39f=_0x30d5ae,_0x225dd7=await this['_collabSessionService'][_0xb8d39f(0x216)](_0x351a3b),_0x22b350=this['_injector'][_0xb8d39f(0x311)](Be,_0x351a3b,_0x225dd7);return _0x22b350[_0xb8d39f(0x1eb)](),_0x22b350;}async[_0x30d5ae(0x334)](_0x493199){const _0x539977=_0x30d5ae,_0x49aee0=await this[_0x539977(0x2af)][_0x539977(0x216)](_0x493199),_0x246834=this[_0x539977(0x1e4)][_0x539977(0x311)](xe,_0x493199,_0x49aee0);return _0x246834[_0x539977(0x1eb)](),_0x246834;}};H=Wi([Ce(0x0,_0x378c7f),Ce(0x1,_0x222181(_0x5c2372)),Ce(0x2,_0x222181(_0x90a824))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x55ec9a,_0x384b77){const _0x1395bd=_0x30d5ae;let {radius:_0x29277f,width:_0xd05fa6,height:_0xcd0028}=_0x384b77;_0x29277f=_0x29277f!=null?_0x29277f:0x0,_0xd05fa6=_0xd05fa6!=null?_0xd05fa6:0x1e,_0xcd0028=_0xcd0028!=null?_0xcd0028:0x1e;let _0x1eedea=0x0,_0x11b581=0x0,_0x267b42=0x0;_0x1eedea=_0x11b581=_0x267b42=Math[_0x1395bd(0x2f7)](_0x29277f,_0xd05fa6/0x2,_0xcd0028/0x2),_0x55ec9a['beginPath'](),_0x55ec9a[_0x1395bd(0x3ad)](_0x1eedea,0x0),_0x55ec9a[_0x1395bd(0x1d7)](_0xd05fa6-_0x11b581,0x0),_0x55ec9a['arc'](_0xd05fa6-_0x11b581,_0x11b581,_0x11b581,Math['PI']*0x3/0x2,0x0,!0x1),_0x55ec9a[_0x1395bd(0x1d7)](_0xd05fa6,_0xcd0028-_0x267b42),_0x55ec9a[_0x1395bd(0x331)](_0xd05fa6-_0x267b42,_0xcd0028-_0x267b42,_0x267b42,0x0,Math['PI']/0x2,!0x1),_0x55ec9a[_0x1395bd(0x1d7)](0x0,_0xcd0028),_0x55ec9a[_0x1395bd(0x1d7)](0x0,_0x1eedea),_0x55ec9a[_0x1395bd(0x331)](_0x1eedea,_0x1eedea,_0x1eedea,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x55ec9a[_0x1395bd(0x1fc)](),_0x384b77[_0x1395bd(0x316)]&&(_0x55ec9a[_0x1395bd(0x18f)](),_0x55ec9a['fillStyle']=_0x384b77[_0x1395bd(0x316)],_0x384b77['fillRule']===_0x1395bd(0x1aa)?_0x55ec9a['fill'](_0x1395bd(0x1aa)):_0x55ec9a[_0x1395bd(0x316)](),_0x55ec9a[_0x1395bd(0x2fc)]());}class ve extends _0x4c57c5{constructor(_0x40f4c8,_0x6b15a1){const _0xd3eecf=_0x30d5ae;super(_0x40f4c8,_0x6b15a1),_(this,'color'),_(this,_0xd3eecf(0x2d6)),(this[_0xd3eecf(0x209)]=_0x6b15a1==null?void 0x0:_0x6b15a1[_0xd3eecf(0x209)],this['text']=_0x6b15a1==null?void 0x0:_0x6b15a1['text']);}static['drawWith'](_0x5dcf76,_0xf09d0e){const _0x31d2dc=_0x30d5ae,{text:_0x21b79d,color:_0x43d8d3}=_0xf09d0e;_0x5dcf76[_0x31d2dc(0x18f)](),_0x5dcf76[_0x31d2dc(0x191)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x4ab2cd=_0x5dcf76['measureText'](_0x21b79d)[_0x31d2dc(0x342)],_0x95b072=Math[_0x31d2dc(0x2f7)](_0x4ab2cd+0x2*Re,at);ji(_0x5dcf76,{'height':Q,'radius':0x4,'width':_0x95b072,'fill':_0x43d8d3}),_0x5dcf76['fillStyle']=_0x31d2dc(0x1b9);const _0x57eaef=Re,_0x376084=Q-Vi,_0x3f483f=at-0x2*Re;if(_0x4ab2cd>_0x3f483f){let _0x2dbaad='',_0x461464=0x0;for(const _0x1a791a of _0x21b79d){const _0x27d4a1=_0x5dcf76[_0x31d2dc(0x211)](_0x1a791a)['width'];if(_0x461464+_0x27d4a1<=_0x3f483f-_0x5dcf76[_0x31d2dc(0x211)](_0x31d2dc(0x1ba))[_0x31d2dc(0x342)])_0x2dbaad+=_0x1a791a,_0x461464+=_0x27d4a1;else{_0x2dbaad+=_0x31d2dc(0x1ba);break;}}_0x5dcf76['fillText'](_0x2dbaad,_0x57eaef,_0x376084);}else _0x5dcf76['fillText'](_0x21b79d,_0x57eaef,_0x376084);_0x5dcf76[_0x31d2dc(0x2fc)]();}[_0x30d5ae(0x1e6)](_0x50987d){const _0x4f943f=_0x30d5ae;ve[_0x4f943f(0x370)](_0x50987d,this);}}const De=_0x30d5ae(0x294),Xi=_0x30d5ae(0x2ef),Gi=_0x30d5ae(0x1d5),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x30d5ae(0x19f);class ct{constructor(_0x41f1df,_0x4dff07,_0x38613a,_0x25d97f){const _0x505504=_0x30d5ae;_(this,_0x505504(0x33f),[]),_(this,_0x505504(0x382),null),_(this,_0x505504(0x345),null),_(this,_0x505504(0x36c),null),_(this,_0x505504(0x2b0),null),_(this,_0x505504(0x2e2),null),(this[_0x505504(0x1ed)]=_0x41f1df,this[_0x505504(0x19b)]=_0x4dff07,this[_0x505504(0x1ca)]=_0x38613a,this[_0x505504(0x301)]=_0x25d97f,this['_render']());}set[_0x30d5ae(0x232)](_0x1c26f9){const _0x997c4=_0x30d5ae;_0x1c26f9?(this[_0x997c4(0x36c)]&&this['_anchorDot'][_0x997c4(0x2ad)](),this[_0x997c4(0x345)]&&this['_textBubble']['show']()):(this[_0x997c4(0x36c)]&&this['_anchorDot']['show'](),this[_0x997c4(0x345)]&&this[_0x997c4(0x345)][_0x997c4(0x2ad)]());}[_0x30d5ae(0x304)](){const _0x44b0fa=_0x30d5ae;for(const _0x4eb06d of this[_0x44b0fa(0x33f)])_0x4eb06d['dispose']();this['_textBubble']&&this['_textBubble'][_0x44b0fa(0x304)](),this['_anchorDot']&&this['_anchorDot'][_0x44b0fa(0x304)](),this[_0x44b0fa(0x382)]&&this[_0x44b0fa(0x382)][_0x44b0fa(0x304)](),this[_0x44b0fa(0x2e2)]&&this[_0x44b0fa(0x2e2)]();}['_render'](){const _0x1303d8=_0x30d5ae;var _0x37718a;const {_docSkeleton:_0x4bad1d,_document:_0x26e371}=this,{color:_0x295586,name:_0x1e0367,ranges:_0x1ac4d2}=this[_0x1303d8(0x1ed)],_0x2d1c64=_0x26e371[_0x1303d8(0x2a0)](),{docsLeft:_0x204d8b,docsTop:_0x352260}=_0x2d1c64,_0x2b1fcb=new _0x248ed8(_0x2d1c64,_0x4bad1d);for(const {startOffset:_0x46f1eb,endOffset:_0x27bb5a,rangeType:_0x396f8c,segmentId:_0x71cdca,segmentPage:_0x1e3953,collapsed:_0x73da69,isActive:_0x54183a}of _0x1ac4d2){const _0x355579=_0x4bad1d['findNodePositionByCharIndex'](_0x46f1eb,!0x0,_0x71cdca,_0x1e3953);let _0x2efbb8=_0x4bad1d[_0x1303d8(0x21a)](_0x27bb5a,!0x0,_0x71cdca,_0x1e3953);if(_0x2efbb8==null&&(_0x2efbb8=_0x4bad1d[_0x1303d8(0x21a)](_0x27bb5a-0x1,!0x1,_0x71cdca,_0x1e3953)),_0x54183a){const {contentBoxPointGroup:_0x50eef8}=_0x2b1fcb[_0x1303d8(0x243)](_0x2efbb8,_0x2efbb8);if(_0x50eef8[_0x1303d8(0x1e2)]===0x0)continue;this[_0x1303d8(0x1e0)](_0x295586,_0x50eef8,_0x204d8b,_0x352260,_0x1e0367),this[_0x1303d8(0x2e2)]=this[_0x1303d8(0x2d7)]();}if(_0x355579&&_0x2efbb8){if(_0x396f8c===_0x120f2f[_0x1303d8(0x267)]){const _0x11398c=new _0x7207ce(_0x2d1c64,_0x4bad1d),{pointGroup:_0x110ca7}=(_0x37718a=_0x11398c[_0x1303d8(0x243)](_0x355579,_0x2efbb8))!=null?_0x37718a:{};if(_0x110ca7==null||_0x110ca7[_0x1303d8(0x1e2)]===0x0)continue;this['_drawRectRange'](_0x295586,_0x110ca7,_0x204d8b,_0x352260);}else{if(!_0x73da69){const {borderBoxPointGroup:_0x23ccfe}=_0x2b1fcb[_0x1303d8(0x243)](_0x355579,_0x2efbb8);if(_0x23ccfe['length']===0x0)continue;this[_0x1303d8(0x34a)](_0x295586,_0x23ccfe,_0x204d8b,_0x352260);}}}}}[_0x30d5ae(0x1e0)](_0x1b94fd,_0x12d74,_0xf34005,_0x21f2b1,_0x51ffe5){const _0x5ddf90=_0x30d5ae,_0x2fd5d2=this[_0x5ddf90(0x340)](_0x12d74),{left:_0x54ac18,top:_0x367790,height:_0x4958a9}=_0x2fd5d2,_0x25f5f9=this[_0x5ddf90(0x2df)](),_0x3281dc=zi/_0x25f5f9,_0x1354f0=new _0xdd23c7(De+_0x2e90e1(z),{'left':_0x54ac18+_0xf34005-_0x3281dc,'top':_0x367790+_0x21f2b1,'height':_0x4958a9,'width':Ki,'fill':_0x1b94fd||_0x4b0183(_0x2d346f[_0x5ddf90(0x398)],0x0),'strokeWidth':_0x3281dc,'stroke':Ji,'evented':!0x0});this[_0x5ddf90(0x382)]=_0x1354f0,this['_scene'][_0x5ddf90(0x2d3)](_0x1354f0,_0x20be3a);const _0x121d17=new _0xdd23c7(De+_0x2e90e1(z),{'left':_0x54ac18+_0xf34005-_0x3281dc,'top':_0x367790+_0x21f2b1-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x1b94fd||_0x4b0183(_0x2d346f[_0x5ddf90(0x398)],0x0),'strokeWidth':0x0,'stroke':_0x1b94fd||_0x4b0183(_0x2d346f['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x121d17,this[_0x5ddf90(0x19b)][_0x5ddf90(0x2d3)](_0x121d17,_0x20be3a);const _0x1ee090=new ve(De+_0x2e90e1(z),{'left':_0x54ac18+_0xf34005-_0x3281dc,'top':_0x367790+_0x21f2b1-Q,'text':_0x51ffe5,'color':_0x1b94fd});this[_0x5ddf90(0x345)]=_0x1ee090,this['_scene'][_0x5ddf90(0x2d3)](_0x1ee090,_0x20be3a),this[_0x5ddf90(0x232)]=!0x1;}['_handleHover'](){const _0x5c9531=_0x30d5ae,_0x4e4d60=this['_anchor'][_0x5c9531(0x270)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x36ab5b=this[_0x5c9531(0x382)][_0x5c9531(0x393)][_0x5c9531(0x306)](()=>{this['_hideTimer']&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x31dbfc=_0x5c9531;_0x4e4d60[_0x31dbfc(0x361)](),_0x36ab5b[_0x31dbfc(0x361)]();};}['_drawTextRange'](_0x293bd8,_0x4a1e33,_0x4f358a,_0xd73b3e){const _0x58997b=_0x30d5ae,_0x276cb6=new _0x28c57e(_0x293bd8)[_0x58997b(0x18d)](0.2)[_0x58997b(0x314)](),_0x34adab=new _0x4b5fc3(Xi+_0x2e90e1(z),{'pointsGroup':_0x4a1e33,'fill':_0x276cb6||_0x4b0183(_0x2d346f[_0x58997b(0x398)],0.2),'left':_0x4f358a,'top':_0xd73b3e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x58997b(0x33f)][_0x58997b(0x293)](_0x34adab),this[_0x58997b(0x19b)][_0x58997b(0x2d3)](_0x34adab,_0x20be3a);}[_0x30d5ae(0x303)](_0x54f71a,_0x3df518,_0x28cf93,_0x457f60){const _0x44d20f=_0x30d5ae,_0x31b2be=new _0x28c57e(_0x54f71a)[_0x44d20f(0x18d)](0.2)['toRgbString'](),_0x6ebf4d=new _0x4b5fc3(Gi+_0x2e90e1(z),{'pointsGroup':_0x3df518,'fill':_0x31b2be||_0x4b0183(_0x2d346f[_0x44d20f(0x398)],0.2),'left':_0x28cf93,'top':_0x457f60,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x44d20f(0x33f)]['push'](_0x6ebf4d),this[_0x44d20f(0x19b)][_0x44d20f(0x2d3)](_0x6ebf4d,_0x20be3a);}[_0x30d5ae(0x340)](_0x515517){const _0x59ca46=_0x515517[0x0],_0x583bb4=_0x59ca46[0x0],_0x7bb515=_0x59ca46[0x2],{x:_0x124956,y:_0x2b4c7d}=_0x583bb4,{x:_0x21c9cd,y:_0x46e949}=_0x7bb515;return{'left':_0x124956,'top':_0x2b4c7d,'width':_0x21c9cd-_0x124956,'height':_0x46e949-_0x2b4c7d};}['_getScale'](){const _0x4c8d4f=_0x30d5ae,{scaleX:_0x1d221b,scaleY:_0x5a5904}=this[_0x4c8d4f(0x19b)][_0x4c8d4f(0x2b3)]();return Math[_0x4c8d4f(0x37e)](_0x1d221b,_0x5a5904);}}var Zi=Object[_0x30d5ae(0x1b6)],Qi=(_0x4e0a18,_0x1007bb,_0xf709a9,_0x27494a)=>{const _0x590bc9=_0x30d5ae;for(var _0x46cc3a=_0x27494a>0x1?void 0x0:_0x27494a?Zi(_0x1007bb,_0xf709a9):_0x1007bb,_0x54ff07=_0x4e0a18[_0x590bc9(0x1e2)]-0x1,_0x322556;_0x54ff07>=0x0;_0x54ff07--)(_0x322556=_0x4e0a18[_0x54ff07])&&(_0x46cc3a=_0x322556(_0x46cc3a)||_0x46cc3a);return _0x46cc3a;},ie=(_0x4c0bb9,_0x92812)=>(_0x239464,_0x36456e)=>_0x92812(_0x239464,_0x36456e,_0x4c0bb9);let Fe=class extends _0x5e4f80{constructor(_0x3dc0bc,_0x4d8d1e,_0x38d239,_0x372bc2,_0x474391){const _0x5623ed=_0x30d5ae;super(),_(this,_0x5623ed(0x2d4),[]),_(this,_0x5623ed(0x2b6),[]),(this[_0x5623ed(0x23b)]=_0x3dc0bc,this[_0x5623ed(0x245)]=_0x4d8d1e,this['_collabCursorController']=_0x38d239,this['_commandService']=_0x372bc2,this[_0x5623ed(0x2c5)]=_0x474391,this[_0x5623ed(0x30d)]());}['_init'](){const _0x3a0845=_0x30d5ae,_0x2b2e58=this['_context'][_0x3a0845(0x220)],_0x214995=this[_0x3a0845(0x245)];this[_0x3a0845(0x3a2)](_0x22eb42([this[_0x3a0845(0x2e0)][_0x3a0845(0x25e)](_0x2b2e58),this[_0x3a0845(0x2c5)]['currentTheme$']])['pipe'](_0x59419b(([_0x597d8,_0x3e8cf3])=>({'skeleton':_0x214995[_0x3a0845(0x2d2)](),'cursors':[..._0x597d8[_0x3a0845(0x1b1)]()][_0x3a0845(0x35b)](_0x26526b=>({..._0x26526b,'color':this[_0x3a0845(0x2c5)][_0x3a0845(0x234)](_0x26526b['color'])}))})))[_0x3a0845(0x21b)](_0x4864bc=>{const _0xfbf1c4=_0x3a0845;if(this[_0xfbf1c4(0x3ab)](),_0x4864bc){const {skeleton:_0x5a500d,cursors:_0x3c5a81}=_0x4864bc;this[_0xfbf1c4(0x222)](_0x5a500d,_0x3c5a81);}})),this[_0x3a0845(0x37c)](),this['_initCommandExecutedListener']();}[_0x30d5ae(0x222)](_0x65999c,_0x324f4f){const _0x1c37c5=_0x30d5ae,{scene:_0x5298ee,mainComponent:_0x48ee81}=this[_0x1c37c5(0x23b)],_0x559757=_0x324f4f[_0x1c37c5(0x27b)](_0x279ecd=>new ct(_0x279ecd,_0x5298ee,_0x65999c,_0x48ee81));this[_0x1c37c5(0x2d4)]=_0x559757,this[_0x1c37c5(0x2b6)]=_0x324f4f;}[_0x30d5ae(0x225)](){const _0x3b5d08=_0x30d5ae;this[_0x3b5d08(0x3ab)]();const {scene:_0x131532,mainComponent:_0x356e18}=this[_0x3b5d08(0x23b)],_0x315195=this[_0x3b5d08(0x245)][_0x3b5d08(0x2d2)](),_0x1b3648=this[_0x3b5d08(0x2b6)][_0x3b5d08(0x27b)](_0x4d1716=>new ct(_0x4d1716,_0x131532,_0x315195,_0x356e18));this[_0x3b5d08(0x2d4)]=_0x1b3648;}[_0x30d5ae(0x3ab)](){const _0x3ebfd9=_0x30d5ae;this['_cursorShapes'][_0x3ebfd9(0x333)](_0x21d4f4=>_0x21d4f4[_0x3ebfd9(0x304)]()),this['_cursorShapes']=[];}[_0x30d5ae(0x1b5)](){const _0x326c08=_0x30d5ae,_0x355f38=[_0x2c4471['id']];this[_0x326c08(0x3a2)](this['_commandService'][_0x326c08(0x24b)](_0x24659f=>{const _0x13790d=_0x326c08;_0x355f38[_0x13790d(0x2cf)](_0x24659f['id'])&&_0x24659f[_0x13790d(0x264)][_0x13790d(0x220)]===this['_context']['unitId']&&this[_0x13790d(0x225)]();}));}[_0x30d5ae(0x37c)](){const _0x595a49=_0x30d5ae;this[_0x595a49(0x3a2)](_0x481707(this[_0x595a49(0x23b)][_0x595a49(0x387)][_0x595a49(0x1a6)])['pipe'](_0x3c921b(_0x51e800=>_0x51e800[_0x595a49(0x2a5)]===_0x3b9147['resize']),_0x56a0cc(0x10))[_0x595a49(0x21b)](()=>{const _0x3ad97d=_0x595a49;this[_0x3ad97d(0x225)]();}));}};Fe=Qi([ie(0x1,_0x222181(_0x161dc1)),ie(0x2,_0x222181(H)),ie(0x3,_0x271cee),ie(0x4,_0x222181(_0x3d07e7))],Fe);const qi=0x1,en=1.5;class tn extends _0x4c57c5{constructor(_0x3f74f0,_0x155ae7){const _0x46e2d7=_0x30d5ae;super(_0x3f74f0,_0x155ae7),_(this,_0x46e2d7(0x37d)),_(this,'_hovered',!0x1),_(this,_0x46e2d7(0x175)),_(this,_0x46e2d7(0x214),''),_(this,_0x46e2d7(0x278),_0x46e2d7(0x227)),_(this,'_backgroundColor'),(_0x155ae7&&this['setShapeProps'](_0x155ae7),this[_0x46e2d7(0x270)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x46e2d7(0x393)]['subscribeEvent'](()=>this[_0x46e2d7(0x2ce)]({'hovered':!0x1})));}[_0x30d5ae(0x2ce)](_0x438ea3){const _0x22843c=_0x30d5ae;var _0x555b52,_0x5ef64d,_0x14127c,_0x2716ca,_0x10cade,_0x44994a;this['_color']=(_0x555b52=_0x438ea3[_0x22843c(0x209)])!=null?_0x555b52:this[_0x22843c(0x37d)],this[_0x22843c(0x1e5)]=(_0x5ef64d=_0x438ea3[_0x22843c(0x1c4)])!=null?_0x5ef64d:this[_0x22843c(0x1e5)],this['_range']=(_0x14127c=_0x438ea3[_0x22843c(0x1fe)])!=null?_0x14127c:this[_0x22843c(0x175)],this[_0x22843c(0x214)]=(_0x2716ca=_0x438ea3[_0x22843c(0x38e)])!=null?_0x2716ca:this[_0x22843c(0x214)],this[_0x22843c(0x278)]=(_0x10cade=_0x438ea3[_0x22843c(0x24c)])!=null?_0x10cade:this[_0x22843c(0x278)],this[_0x22843c(0x350)]=(_0x44994a=_0x438ea3[_0x22843c(0x242)])!=null?_0x44994a:this[_0x22843c(0x350)],this['transformByState']({'width':_0x438ea3[_0x22843c(0x342)],'height':_0x438ea3[_0x22843c(0x38c)]});}[_0x30d5ae(0x1dc)](_0x1c1782){const _0x16a17c=_0x30d5ae,{row:_0x561678,column:_0x21cc61}=_0x1c1782;if(_0x561678>=this[_0x16a17c(0x175)][_0x16a17c(0x29a)]&&_0x561678<=this[_0x16a17c(0x175)][_0x16a17c(0x1df)]&&_0x21cc61>=this[_0x16a17c(0x175)][_0x16a17c(0x395)]&&_0x21cc61<=this[_0x16a17c(0x175)]['endColumn']){this[_0x16a17c(0x2ce)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x6ef131){return!0x1;}[_0x30d5ae(0x1e6)](_0x57106e){const _0x4f3d5c=_0x30d5ae;_0xdd23c7[_0x4f3d5c(0x370)](_0x57106e,{'width':this[_0x4f3d5c(0x342)],'height':this[_0x4f3d5c(0x38c)],'strokeWidth':en,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x4f3d5c(0x350)]}),this[_0x4f3d5c(0x1e5)]&&(_0x57106e[_0x4f3d5c(0x18f)](),_0x57106e[_0x4f3d5c(0x36a)](0x1,0x0,0x0,0x1,this[_0x4f3d5c(0x342)],this[_0x4f3d5c(0x278)]===_0x4f3d5c(0x210)?0x0:-Q),ve[_0x4f3d5c(0x370)](_0x57106e,{'text':this[_0x4f3d5c(0x214)],'color':this[_0x4f3d5c(0x37d)]}),_0x57106e['restore']());}}var sn=Object[_0x30d5ae(0x1b6)],nn=(_0x42625d,_0x4e6ace,_0x2a0b5f,_0x4ecf3a)=>{const _0x276701=_0x30d5ae;for(var _0x3d4010=_0x4ecf3a>0x1?void 0x0:_0x4ecf3a?sn(_0x4e6ace,_0x2a0b5f):_0x4e6ace,_0x148b03=_0x42625d[_0x276701(0x1e2)]-0x1,_0x48ab1a;_0x148b03>=0x0;_0x148b03--)(_0x48ab1a=_0x42625d[_0x148b03])&&(_0x3d4010=_0x48ab1a(_0x3d4010)||_0x3d4010);return _0x3d4010;},be=(_0x19bcdf,_0xc27cde)=>(_0x16b29,_0x33b112)=>_0xc27cde(_0x16b29,_0x33b112,_0x19bcdf);const rn=0x1389;let ke=class extends _0x5e4f80{constructor(_0x519bf3,_0x1c7429,_0x33ef08,_0xc9ea17){const _0x2bdc56=_0x30d5ae;super(),_(this,_0x2bdc56(0x2b6),new Set()),_(this,'_lastPointer',null),(this[_0x2bdc56(0x23b)]=_0x519bf3,this[_0x2bdc56(0x23d)]=_0x1c7429,this[_0x2bdc56(0x2e0)]=_0x33ef08,this['_themeService']=_0xc9ea17,this[_0x2bdc56(0x30d)]());}[_0x30d5ae(0x30d)](){const _0x435a1a=_0x30d5ae;this['_sheetSkeletonManagerService'][_0x435a1a(0x277)][_0x435a1a(0x27e)](_0x2fc8e5(this[_0x435a1a(0x392)]),_0xa98073(_0x14eca7=>{const _0x2bdbad=_0x435a1a;if(_0x14eca7){const _0x69e38c=_0x14eca7['sheetId'];return _0x22eb42(this[_0x2bdbad(0x2e0)][_0x2bdbad(0x25e)](this['_context'][_0x2bdbad(0x220)]),this[_0x2bdbad(0x2c5)]['currentTheme$'])[_0x2bdbad(0x27e)](_0x59419b(([_0xffec44,_0x360d14])=>{const _0x5a2749=_0x2bdbad,_0x13ef8b=new Map();return _0xffec44[_0x5a2749(0x333)]((_0x2a46e2,_0x283d48)=>{const _0x5024ea=_0x5a2749;if(_0x2a46e2[_0x5024ea(0x339)]===_0x69e38c){const _0x122615={..._0x2a46e2};_0x122615[_0x5024ea(0x209)]=this[_0x5024ea(0x2c5)][_0x5024ea(0x234)](_0x2a46e2[_0x5024ea(0x209)]),_0x13ef8b[_0x5024ea(0x2f6)](_0x283d48,_0x122615);}}),{'skeleton':_0x14eca7,'cursors':_0x13ef8b};}));}return _0x5cdfe4({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x8f6cb3,cursors:_0xeae26f})=>{const _0x4c9322=_0x435a1a;this[_0x4c9322(0x3ab)](),_0x8f6cb3&&this['_updateCollabCursors'](_0x8f6cb3,_0xeae26f);}),this['_sheetSkeletonManagerService'][_0x435a1a(0x277)][_0x435a1a(0x21b)](_0x5cda7b=>{const _0x408664=_0x435a1a;if(_0x5cda7b==null)return;const {skeleton:_0x2027ee}=_0x5cda7b,{scene:_0x562583}=this[_0x408664(0x23b)];_0x562583[_0x408664(0x2d0)]['subscribeEvent'](_0x4c7f2c(_0x2e22a2=>{const _0x38b0c1=_0x408664;var _0x2d2a66,_0x2c76e9;const {offsetX:_0x2a9b10,offsetY:_0x1c72d5}=_0x2e22a2,{x:_0x2c758e,y:_0x529870}=_0x562583[_0x38b0c1(0x1c2)](_0xc5c427[_0x38b0c1(0x279)]([_0x2a9b10,_0x1c72d5])),{scaleX:_0x11dc8f,scaleY:_0x553e0b}=_0x562583[_0x38b0c1(0x2b3)](),_0x44522c=_0x562583['getViewport'](_0x389a38['VIEW_MAIN']),_0x5bcb1f=_0x562583[_0x38b0c1(0x194)](_0xc5c427[_0x38b0c1(0x279)]([_0x2c758e,_0x529870]),_0x44522c),_0x531b25=_0x2027ee[_0x38b0c1(0x265)](_0x2a9b10,_0x1c72d5,_0x11dc8f,_0x553e0b,_0x5bcb1f);((_0x2d2a66=this[_0x38b0c1(0x189)])==null?void 0x0:_0x2d2a66[_0x38b0c1(0x25d)])===_0x531b25[_0x38b0c1(0x25d)]&&((_0x2c76e9=this['_lastPointer'])==null?void 0x0:_0x2c76e9[_0x38b0c1(0x2c8)])===_0x531b25[_0x38b0c1(0x2c8)]||this['_cursors'][_0x38b0c1(0x333)](_0x86a734=>{_0x86a734['onMouseMove'](_0x531b25);});},0x64));});}[_0x30d5ae(0x222)](_0x4868dc,_0x202212){const _0x387edb=_0x30d5ae;var _0x55057d;const _0x3c1c33=(_0x55057d=this[_0x387edb(0x23d)][_0x387edb(0x2b1)]())==null?void 0x0:_0x55057d[_0x387edb(0x357)];if(!_0x3c1c33)return;const _0x1bd9ca=this['_getSheetObject']();if(!_0x1bd9ca)return;this[_0x387edb(0x2b6)][_0x387edb(0x333)](_0x370aa8=>{const _0x5b2fb4=_0x387edb;_0x370aa8[_0x5b2fb4(0x2b2)]();});const {scene:_0x4d430a}=_0x1bd9ca,_0x47b6db=on(Array[_0x387edb(0x3b0)](_0x202212[_0x387edb(0x1b1)]()))[_0x387edb(0x27b)](_0xedcf16=>{const _0x14936a=_0x387edb,{color:_0x163b93,range:_0x230ac5,name:_0x3b7e11,selection:_0x5d462e,sheetID:_0xec65a7}=_0xedcf16,{startColumn:_0x12b36b,startRow:_0x2b5f26,endColumn:_0x54f9ac,endRow:_0x4cae16}=_0x230ac5,_0x308e66=_0x41d966(_0x2b5f26,_0x12b36b,_0x4d430a,_0x3c1c33),_0x36838d=_0x41d966(_0x4cae16,_0x54f9ac,_0x4d430a,_0x3c1c33),{columnHeaderHeightAndMarginTop:_0x10f257}=_0x3c1c33,{startX:_0x26a83e,startY:_0x39dfe2}=_0x308e66,{endX:_0x20701e,endY:_0x4d671f}=_0x36838d,_0x461ac1=_0x20701e-_0x26a83e,_0xaca40=_0x4d671f-_0x39dfe2,_0x5ba79f={'labelPosition':_0x39dfe2-_0x10f257>=Q?_0x14936a(0x227):_0x14936a(0x210),'sheetID':_0xec65a7,'range':_0x230ac5,'color':_0x163b93,'name':_0x3b7e11,'selection':_0x5d462e,'left':_0x26a83e,'top':_0x39dfe2,'width':_0x461ac1,'height':_0xaca40,'evented':!0x1,'zIndex':rn};return new tn(_0x3b7e11,_0x5ba79f);});_0x4d430a[_0x387edb(0x269)](_0x47b6db,qi),this[_0x387edb(0x2b6)]=new Set(_0x47b6db);}[_0x30d5ae(0x3ab)](){const _0xd5a2ea=_0x30d5ae;var _0x223403;(_0x223403=this['_cursors'])==null||_0x223403[_0xd5a2ea(0x333)](_0x88676f=>_0x88676f[_0xd5a2ea(0x304)]());}[_0x30d5ae(0x240)](){const _0x45498c=_0x30d5ae;return _0x957042(this['_context'][_0x45498c(0x2bf)],this[_0x45498c(0x23b)]);}};ke=nn([be(0x1,_0x222181(_0xe45214)),be(0x2,_0x222181(H)),be(0x3,_0x222181(_0x3d07e7))],ke);function on(_0x2c1b02){const _0x2707f5=_0x30d5ae,_0x491825=new Map();return _0x2c1b02[_0x2707f5(0x333)](_0xcbcb47=>{const _0xb08f25=_0x2707f5;if(_0x491825[_0xb08f25(0x1a1)](_0xcbcb47['selection'])){const _0x335c12=_0x491825[_0xb08f25(0x2e1)](_0xcbcb47[_0xb08f25(0x1bf)]);_0x335c12[_0xb08f25(0x38e)]+=',\x20'+_0xcbcb47[_0xb08f25(0x38e)];}else _0x491825['set'](_0xcbcb47['selection'],_0xcbcb47);}),Array[_0x2707f5(0x3b0)](_0x491825[_0x2707f5(0x1b1)]());}var an=Object[_0x30d5ae(0x1b6)],cn=(_0x2ed245,_0x946184,_0x206c2e,_0xbd51b6)=>{for(var _0x193582=_0xbd51b6>0x1?void 0x0:_0xbd51b6?an(_0x946184,_0x206c2e):_0x946184,_0x334c3f=_0x2ed245['length']-0x1,_0x5a4f56;_0x334c3f>=0x0;_0x334c3f--)(_0x5a4f56=_0x2ed245[_0x334c3f])&&(_0x193582=_0x5a4f56(_0x193582)||_0x193582);return _0x193582;},F=(_0x3cd5a6,_0x3e85c2)=>(_0x3d157a,_0x19e6b0)=>_0x3e85c2(_0x3d157a,_0x19e6b0,_0x3cd5a6);let _e=class extends _0x2b1774{constructor(_0x12e4c8,_0x4b003c,_0x2487fb,_0x568569,_0x1929cb,_0x47afec){const _0x54794a=_0x30d5ae;super(),this[_0x54794a(0x2dd)]=_0x12e4c8,this[_0x54794a(0x1cd)]=_0x4b003c,this[_0x54794a(0x371)]=_0x2487fb,this[_0x54794a(0x27d)]=_0x568569,this[_0x54794a(0x204)]=_0x1929cb,this[_0x54794a(0x30f)]=_0x47afec,this[_0x54794a(0x197)](),this['_initEvent']();}[_0x30d5ae(0x197)](){const _0x30852d=_0x30d5ae;this[_0x30852d(0x3a2)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x3b02c8=_0x30852d;if(this['_localCacheService'][_0x3b02c8(0x1ee)]['size'])return this[_0x3b02c8(0x30f)]['t'](_0x3b02c8(0x344));}));}[_0x30d5ae(0x363)](){const _0x3bdacf=_0x30d5ae;this[_0x3bdacf(0x3a2)](this[_0x3bdacf(0x371)][_0x3bdacf(0x1ff)]['subscribe'](_0x4adb08=>{const _0x527630=_0x3bdacf;_0x4adb08['id']===_0x347b0f[_0x527630(0x2dc)]&&this['_messageService']['show']({'type':_0x220839['Warning'],'content':this['_localeService']['t'](_0x527630(0x262))}),_0x4adb08['id']===_0x347b0f[_0x527630(0x237)]&&this[_0x527630(0x27d)][_0x527630(0x2c3)]({'type':_0x220839[_0x527630(0x168)],'content':this[_0x527630(0x30f)]['t'](_0x527630(0x1c0))}),_0x4adb08['id']===_0x347b0f[_0x527630(0x348)]&&this['_notificationService'][_0x527630(0x2c3)]({'title':this[_0x527630(0x30f)]['t'](_0x527630(0x192)),'content':this['_localeService']['t']('permission.content'),'type':'error','duration':0x0}),_0x4adb08['id']===_0x347b0f[_0x527630(0x34b)]&&this[_0x527630(0x27d)]['show']({'type':_0x220839[_0x527630(0x336)],'content':this['_localeService']['t'](_0x527630(0x1c0))+'('+_0x4adb08[_0x527630(0x29f)]+')'}),_0x4adb08['id']===_0x347b0f[_0x527630(0x33a)]&&this['_messageService']['show']({'type':_0x220839['Warning'],'content':this[_0x527630(0x30f)]['t'](_0x4adb08[_0x527630(0x29f)]||'')}),_0x4adb08['id']===_0x347b0f[_0x527630(0x1db)]&&this[_0x527630(0x27d)][_0x527630(0x2c3)]({'type':_0x220839[_0x527630(0x168)],'content':this['_localeService']['t'](_0x527630(0x39e))}),_0x4adb08['id']===_0x347b0f[_0x527630(0x1ad)]&&this[_0x527630(0x27d)][_0x527630(0x2c3)]({'type':_0x220839[_0x527630(0x336)],'content':this[_0x527630(0x30f)]['t'](_0x527630(0x1fb))}),_0x4adb08['id']===_0x347b0f[_0x527630(0x377)]&&this[_0x527630(0x27d)][_0x527630(0x2c3)]({'type':_0x220839['Error'],'content':this[_0x527630(0x30f)]['t'](_0x527630(0x190))});}));}};_e=cn([F(0x0,_0x7b0eaa),F(0x1,_0x48babe),F(0x2,_0x222181(_0x5f2ab7)),F(0x3,_0x1fa26b),F(0x4,_0xe43240),F(0x5,_0x222181(_0xfbc0e7))],_e);var _n=Object[_0x30d5ae(0x1b6)],ln=(_0x5ba5e8,_0xcbb109,_0x3a6f8b,_0x3bf432)=>{const _0x46ca6d=_0x30d5ae;for(var _0x464ec1=_0x3bf432>0x1?void 0x0:_0x3bf432?_n(_0xcbb109,_0x3a6f8b):_0xcbb109,_0x20c5b8=_0x5ba5e8[_0x46ca6d(0x1e2)]-0x1,_0xec181f;_0x20c5b8>=0x0;_0x20c5b8--)(_0xec181f=_0x5ba5e8[_0x20c5b8])&&(_0x464ec1=_0xec181f(_0x464ec1)||_0x464ec1);return _0x464ec1;},ne=(_0x244560,_0x235fe1)=>(_0x134909,_0x2103de)=>_0x235fe1(_0x134909,_0x2103de,_0x244560);let le=class extends _0x2b1774{constructor(_0x29a329,_0x319352,_0x32c0a4,_0x4981f1){const _0x3107a2=_0x30d5ae;super(),_(this,_0x3107a2(0x17e)),(this[_0x3107a2(0x1e4)]=_0x29a329,this[_0x3107a2(0x356)]=_0x319352,this[_0x3107a2(0x33c)]=_0x32c0a4,this[_0x3107a2(0x170)]=_0x4981f1,this['_init']());}[_0x30d5ae(0x30d)](){const _0x3f8b8e=_0x30d5ae;this[_0x3f8b8e(0x229)](),this[_0x3f8b8e(0x21c)](),this['_monkeyPatchLogService'](),this['_initUserListener']();}['_initUserListener'](){const _0x100557=_0x30d5ae;this['disposeWithMe'](this[_0x100557(0x170)][_0x100557(0x2d9)]['subscribe'](_0x5c4f6d=>{const _0x161f0f=_0x100557;this[_0x161f0f(0x17e)]=_0x5c4f6d==null?void 0x0:_0x5c4f6d[_0x161f0f(0x2da)];}));}[_0x30d5ae(0x229)](){const _0x42b1af=_0x30d5ae,_0x7ad6bc=_0x28ebb8=>{const _0x534795=_0x23c8;var _0x568b6c;this['_uploadLog']('error','[Window\x20Error]:\x20'+_0x28ebb8[_0x534795(0x238)]+'\x20at\x20'+_0x28ebb8[_0x534795(0x2f2)]+':'+_0x28ebb8[_0x534795(0x2f3)]+':'+_0x28ebb8['colno']+'\x0a'+(((_0x568b6c=_0x28ebb8[_0x534795(0x2bc)])==null?void 0x0:_0x568b6c[_0x534795(0x355)])||''));};window[_0x42b1af(0x250)]('error',_0x7ad6bc),this[_0x42b1af(0x3a2)](()=>{const _0x179627=_0x42b1af;window[_0x179627(0x1a7)](_0x179627(0x2bc),_0x7ad6bc);});}[_0x30d5ae(0x21c)](){const _0x7de5a7=_0x30d5ae,_0x36369e=_0x5a9f96=>{const _0x4f7bd2=_0x23c8;this[_0x4f7bd2(0x295)](_0x4f7bd2(0x2bc),_0x4f7bd2(0x379)+_0x5a9f96[_0x4f7bd2(0x219)]);};window[_0x7de5a7(0x250)](_0x7de5a7(0x381),_0x36369e),this[_0x7de5a7(0x3a2)](()=>{const _0x5c8db1=_0x7de5a7;window[_0x5c8db1(0x1a7)](_0x5c8db1(0x381),_0x36369e);});}[_0x30d5ae(0x2b4)](){const _0x45af65=_0x30d5ae,_0x5c8053=this[_0x45af65(0x33c)][_0x45af65(0x2bc)][_0x45af65(0x354)](this[_0x45af65(0x33c)]);this[_0x45af65(0x33c)][_0x45af65(0x2bc)]=(..._0xebe6b6)=>{const _0x29d4ba=_0x45af65,_0x1c36a8=_0xebe6b6[_0x29d4ba(0x27b)](_0x32d536=>_0x32d536 instanceof Error?_0x32d536[_0x29d4ba(0x238)]+'\x0a'+_0x32d536[_0x29d4ba(0x355)]:String(_0x32d536))[_0x29d4ba(0x313)]('\x20');this[_0x29d4ba(0x295)](_0x29d4ba(0x2bc),'[LogService\x20Error]:\x20'+_0x1c36a8),_0x5c8053(..._0xebe6b6);},this[_0x45af65(0x3a2)](()=>{const _0x3238da=_0x45af65;this[_0x3238da(0x33c)][_0x3238da(0x2bc)]=_0x5c8053;});}[_0x30d5ae(0x295)](_0x4d6815,_0x12cae3){const _0x2eb209=_0x30d5ae;try{const _0xba85ca={'userId':this[_0x2eb209(0x17e)],'logLabel':_0x4d6815,'content':_0x12cae3};this[_0x2eb209(0x356)]['post']('/universer-api/frontend/logs',{'body':_0xba85ca})[_0x2eb209(0x2a7)](()=>{});}catch{}}};le=ln([ne(0x0,_0x222181(_0x5c2372)),ne(0x1,_0x222181(_0x56d4bc)),ne(0x2,_0x2b507f),ne(0x3,_0x222181(_0x90a824))],le);const hn=_0x30d5ae(0x26e),_t={};function _0x34b1(){const _0x4a86cd=['LOGIN_TOKEN_PROCESSING_FAILED','doc.mutation.rich-text-editing','ENTITLE_CHAT_LIMIT_EXCEED','focused$','_handleLeaveEvent','override','currentSkeleton$','_labelPosition','FromArray','1176677qoKxMn','map','editingUnit','_messageService','pipe','colorChannel1','roomMembers$','REDEMPTION_INVALID_CODE','green.600','SUCCESS','_scheduleClearOtherTimer','asObservable','stage','isActive','_urlService','_roomMembers$','SYNCED','getTypeOfUnitDisposed$','ticket','collabStatus.fetchMiss','split','_createSocketURL','deepClone','ACTIVE_UNIT_EVENT_CHANNEL','releaseFormulaLimitUrl','push','collab-text-anchor-','_uploadLog','_cachedData','INVALID_ARGUMENT','_taskIds','MOBILE_HAS_BEEN_BOUND','startRow','_docSyncEditingCollabCursorService','popstate','_disabled','_uiPartsService','data','getOffsetConfig','UNIVER_DOC','tag','getCurrentRevOfUnit','docStateChange$','type','url(#off-line-icon_clip0_910_343)','catch','_initEntityListener','replaceState','_transformHistoryAndStateStack','_releaseCalculationLimit','/run/','hide','transformStateCache','_collabSessionService','_hideTimer','getCurrent','makeDirty','getAncestorScale','_monkeyPatchLogService','disableLocalCache','_cursors','setStateCache','REDEMPTION_CODE_INACTIVE','/universer-api/license/formula/limit/start','delete','ENTITLE_DUP_SUBSCRIPTION','error','_getFormulaLimitStatus','PY_RUNTIME_SCRIPT_ERROR','unit','getformulaLimitStatusUrl','_currentUsage','ENTITLE_REPORT_LIMIT_EXCEED','show','jiqing.500','_themeService','_onCursorUpdate','registerRefRange','row','REDEMPTION_CODE_NOT_STARTED','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','currentUsage','_setupSubUnitSync','_memberService','setShapeProps','includes','onPointerMove$','cursorInfo','getSkeleton','addObject','_cursorShapes','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','text','_handleHover','white','socket$','memberID','trim','OTHER_CLIENT_EDITING','_beforeCloseService','debug','_getScale','_collabCursorController','get','_eventUnsubscribe','_status$','UNDEFINED','INVITE_CODE_ALREADY_BOUND','REDEMPTION_USER_NOT_ELIGIBLE','getActiveRange','_docTransformSelectionsService','urlChange$','Success','_startCalculationLimit','_session','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_checkCalculationAvailable','collab-text-range-','none','toString','filename','lineno','clearTimeout','AUTHORIZE_CODE_ILLEGAL','set','min','ENTITLE_NEED_BILLING_ADDRESS','_registerRenderDependencies','?taskId=','YUUMI_TABLE_NOT_FOUND_IN_UNIT','restore','onRendered','getMergeData','WECHAT_HAS_BEEN_BOUND','[CollaborationDataLoaderController]','_document','0\x200\x2016\x2016','_drawRectRange','dispose','REDEMPTION_CODE_FULLY_REDEEMED','subscribeEvent','UPDATE_CURSOR','getParam','clipPath','setParam','_maxFormulaLimit','_configService','_init','origin','_localeService','_handleHeartbeatEvent','createInstance','mutations','join','toRgbString','find','fill','MUTATION','activeSheet$','RemoveColCommandId','xlink:href','getSheetBySheetId','idSuffix','LICENSE_IMPORT_SIZE_EXCEEDED','executeCommand','NO_OTHER_CLIENTS_EDITING','_hasFormulaInDirtyRanges','textRanges','YUUMI_URL_COL_OUT_OF_RANGE','_onRefRangeChange','enableLocalCache','ENTITLE_INVALID_COUPON_CODE','body','unitID','6618325hwAODG','clearInterval','_imageIoService','some','_univerInstanceService','USER_NOT_FOUND','next','replace','syncEditingCollabCursor','arc','YUUMI_RATE_OVER_LIMIT','forEach','_startDocCollabCursor','subunit','Error','stageInfo','actions','sheetID','JOIN_ROOM_FAILED','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_logService','_clearOtherTimers','_pollingInterval','_shapes','_getAnchorBounding','SNAPSHOT_HAS_BEEN_REMOVED','width','OnLineIcon','collaboration.offline-data-not-saved','_textBubble','CURRENT_STATUS_CANNOT_OPERATE','_updateURLWithCurrentState','PERMISSION_DENIED','YUUMI_ASYNCIO_CANCELLED','_drawTextRange','CONFLICT','subUnitId','transformMutation','_cursorInfo$','_renderManagerService','_backgroundColor','15566950cBLdYj','collabStatus.conflict','_send','bind','stack','_httpService','skeleton','red.300','APPLY_REVISION_CONFILICT','size','flatMap','loadUnit','formula.calculation.waiting','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','whenReady','use','unsubscribe','EMAIL_HAS_BEEN_BOUND','_initEvent','assign','getValue','current','eventID','string','ranges','transform','APPLY_NON_SEQUENTIAL_REVISION','_anchorDot','replaceDocRanges','sessionTicket','setTimeout','drawWith','_collaborationUIEventService','EMAIL_VERIFY_CODE_MISMATCH','off-line-icon_clip0_910_343','14ntjqGc','YUUMI_CONNECTOR_URL_NOT_FOUND','transformMutationsWithChangeset','SUBMIT_CHANGESET_TIMEOUT','addClipboardHook','[Unhandled\x20Rejection]:\x20','PAYMENT_CHANNEL_NOT_SUPPORT','entries','_initResize','_color','max','_clearPolling','AWAITING_WITH_PENDING','unhandledrejection','_anchor','6609552JAtpmK','Unknown\x20user','UNIVER_SHEET','invokeId','engine','defs','_onCursorDelete','_updateLocalCursor','status$','height','_initStatusListener','name','blue.400','enableFrontendLog','_getMergeRange','dispose$','onPointerLeave$','parse','startColumn','_updateSubUnitFromURLParams','code','black','loadOfflineData','_commandService','formula.calculation.unable','ONLINE','ENTITLE_USE_COUPON_NOT_1ST_TRADE','session.will-retry','TOO_MANY_REQUESTS','getUnitId','getMember','disposeWithMe','getConfig','INTERNAL_ERROR','UNAUTHENTICATED','getStateCache','isArray','CHANGESET_REVISION_CONFILICT','INVALID_INVITE_CODE','/universer-api/license/formula/limit/status','_removeCollabCursors','_instanceService','moveTo','LICENSE_EXPORT_SIZE_EXCEEDED','_toggleOnline','from','imageSourceType','_unitOnClients','Warning','74456aaOcSE','_dataLoaderService','ENTITLE_INSUFFICIENT_QUOTA','url(#$1','with','sessionStatus$','_initStatusComponent','_collaborationSessionService','unshift','_registerDependencies','_revisionService','transformRemoteChangeset','_range','collab-client.tooltip.reconnect','LOGIN_FAILED','round','m1Prime','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','beforeCommandExecuted','exhaustSavingTask','_saveTaskMap','_memberID','INVITE_CODE_HAS_BEEN_UES','on-line-icon_clip0_910_349','send','YUUMI_AI_RUN_FAILED','2931946doyGni','univer-flex\x20univer-items-center','_assignedColors','INVITE_CODE_REQUIRED','_docClipboardService','_toggleOffline','_lastPointer','attrs','searchParams','shift','setAlpha','collabStatus.notCollab','save','session.collaboration-timeout','font','permission.title','transformIMECache','getVpScrollXYInfoByPosToVp','277902QXiugL','_lastResponseTimestamp','_setupBeforeClosingHandler','REDEMPTION_CODE_HAS_BEEN_CREATED','removeParam','getUndoRedoMutationParamsCache','_scene','SNAPSHOT_INVALID_SNAPSHOT','isEditing','onLocalMutation','rgba(255,\x20255,\x20255,\x200.01)','_getSaveTimeout','has','_transformPreviousActiveRange','defIds','registerRenderModule','functionsExecutedState','onTransformChange$','removeEventListener','application/json','then','evenodd','138KUqehx','YUUMI_UNABLE_LOAD_URL','SOCKET_FAILED','collabStatus.synced','_transformUndoRedoStack','createSocket','values','_handleEvent','div','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_initCommandExecutedListener','getOwnPropertyDescriptor','1em','_scheduleSaving','#FFF','...','NOT_COLLAB','purple.300','url(#on-line-icon_clip0_910_349)','START_CALCULATION','selection','collaboration.closeRoom','_removeClearOtherTimer','getRelativeToViewportCoord','TEXT','hovered','updateOfflineData','ERROR_AGAIN','pushState','setUndoRedoMutationParamsCache','getSheetId','_docSkeleton','pluginName','CONNECTOR_DATA_TOO_LARGE','_localCacheService','LICENSE_MAX_UNITS_EXCEEDED','APPLY_PERMISSION_DENIED','unload','_handleJoinEvent','MOBILE_VERIFY_CODE_MISMATCH','limitInfo','UniverIcon','collab-rect-range-','href','lineTo','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','18iitwOa','displayName','SOCKET_FAILED_RETRY','onMouseMove','_showGuardMessage','svg','endRow','_drawAnchor','m2Prime','length','parseInt','_injector','_hovered','_draw','_online','add','_collaborationController','_id','init','_docTransformIMECacheService','_cursor','saveTaskMap','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','/universer-api/license/formula/limit/done','result','getCellMatrix','http://www.w3.org/2000/svg','setItem','getFocusedUnit','complete','mask','stringify','_entityInit$','newValue','session.connection-failed','closePath','YUUMI_NO_CUBOID_FOR_QUESTION','range','event$','USER_NOT_INVITED_CODE','now','post','getUnit','_notificationService','_ensureSubject','_unitStatus','USERS_LEAVE','REDEMPTION_USER_REDEEM_TIMES_EXCEED','color','YUUMI_ALL_TABLES_IS_INVALID','_heartbeatTimer','NOT_FOUND','_setFormulaLimitStatus','cursorInfo$','transformSelections','bottom','measureText','_syncEditingCollabCursorService','_colorIndex','_name','defineProperty','requireSession','OTHER_CLIENTS_EDITING','getCollabEntity$','reason','findNodePositionByCharIndex','subscribe','_initUnhandledRejectionListener','_saveCache','0\x200\x2017\x2016','children','unitId','_config','_updateCollabCursors','Failed','PENDING','_refreshCollabCursors','getUnhiddenWorksheets','top','_entities','_initWindowErrorListener','DATA_SOURCE_TOO_LARGE','path','_checkAndWaitForCalculationPermission','_collabCursorState$','M0\x200H16V16H0z','InsertRowCommandId','AWAITING','getItem','_hover','maxFormulaLimit','getColorFromTheme','_getSessionTicket','wsSessionTicketUrl','CLOSE_ROOM','message','totalFormulasToCalculate','uni.network.url-service','_context','InsertRangeMoveRightCommandId','_sheetSkeletonManagerService','APPLY_REJECT','_docTransformStateCacheService','_getSheetObject','off-line-icon','backgroundColor','getRangePointData','getUnitStatus$','_docSkeletonManagerService','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_scheduleHeartbeat','location','univer-mr-2\x20univer-flex\x20univer-text-xl','history','onCommandExecuted','labelPosition','setConfig','InsertRangeMoveDownCommandId','random','addEventListener','endColumn','_refRangeService','YUUMI_SUBSCRIPTION_NOT_FOUND','runOnServer','_docStateChangeManagerService','LICENSE_DISTRO_REJECTED','USER_IS_ANONYMOUS','_selfUnitIDs','_localStorageService','_initDependencies','UNRECOGNIZED','_transformService','column','getCollabCursors$','runId','ENTITLE_COUPON_EXPIRED','_colorAssignService','collaboration.single-unit.warning','ALREADY_EXISTS','params','getCellPositionByOffset','[RemoteUniscriptService]:\x20no\x20focused\x20unit','RECT','getRenderById','addObjects','startFormulaLimitUrl','ENSURE_SNAPSHOT_EXECUTION','key','setActiveRange','collaboration-client-ui.config','assignAColorForMemberID','onPointerEnter$'];_0x34b1=function(){return _0x4a86cd;};return _0x34b1();}var un=Object[_0x30d5ae(0x1b6)],dn=(_0x178166,_0x41e1f7,_0x281221,_0x5b1653)=>{const _0xfaedc=_0x30d5ae;for(var _0x2c0353=_0x5b1653>0x1?void 0x0:_0x5b1653?un(_0x41e1f7,_0x281221):_0x41e1f7,_0x4ae93e=_0x178166[_0xfaedc(0x1e2)]-0x1,_0x53f7d2;_0x4ae93e>=0x0;_0x4ae93e--)(_0x53f7d2=_0x178166[_0x4ae93e])&&(_0x2c0353=_0x53f7d2(_0x2c0353)||_0x2c0353);return _0x2c0353;},lt=(_0x4cd0e5,_0x106b4e)=>(_0x552018,_0x574573)=>_0x106b4e(_0x552018,_0x574573,_0x4cd0e5);let he=class{constructor(_0x4794f0,_0x4c869c){const _0x539845=_0x30d5ae;this['_transformService']=_0x4794f0,this[_0x539845(0x34f)]=_0x4c869c;}[_0x30d5ae(0x193)](_0x27cdd6){const _0x5a72d9=_0x30d5ae;this[_0x5a72d9(0x1af)](_0x27cdd6),this[_0x5a72d9(0x1a2)](_0x27cdd6);}[_0x30d5ae(0x174)](_0x515a37){const _0x2e2b56=_0x30d5ae,{unitID:_0x76f108}=_0x515a37,_0x2f619a=this[_0x2e2b56(0x34f)][_0x2e2b56(0x268)](_0x76f108)[_0x2e2b56(0x16d)](_0x3eb2f8),{redoCache:_0x7c06a7}=_0x2f619a[_0x2e2b56(0x19a)]();if(_0x7c06a7[_0x2e2b56(0x1e2)]===0x0)return _0x515a37;let _0x1e0614=_0x135a99[_0x2e2b56(0x290)](_0x515a37['mutations'][0x0]);for(let _0x170404=0x0;_0x170404<_0x7c06a7['length'];_0x170404++){const _0x3c8af6={'id':'doc.mutation.rich-text-editing','params':{..._0x7c06a7[_0x170404]}},_0x3f5315=this[_0x2e2b56(0x25c)][_0x2e2b56(0x34d)](_0x1e0614,_0x3c8af6,!0x1);if(_0x195bf6(_0x3f5315))throw _0x3f5315['error'];_0x1e0614=_0x3f5315[_0x2e2b56(0x179)];}return{..._0x135a99['deepClone'](_0x515a37),'mutations':[_0x1e0614]};}[_0x30d5ae(0x1af)](_0x27b936){const _0x40a3e6=_0x30d5ae,{unitID:_0x221001}=_0x27b936,_0x42f1f9=this[_0x40a3e6(0x34f)]['getRenderById'](_0x221001)[_0x40a3e6(0x16d)](_0x3eb2f8),{undoCache:_0x3fbeba,redoCache:_0x490353}=_0x42f1f9[_0x40a3e6(0x19a)]();if(_0x3fbeba[_0x40a3e6(0x1e2)]===0x0||_0x490353['length']===0x0)return;const _0x1cdf71=[],_0x164969=[];let _0x5173c6=_0x135a99[_0x40a3e6(0x290)](_0x27b936[_0x40a3e6(0x312)][0x0]),_0x5a5aa7=_0x135a99[_0x40a3e6(0x290)](_0x27b936[_0x40a3e6(0x312)][0x0]);for(let _0x1be91c=_0x3fbeba[_0x40a3e6(0x1e2)]-0x1;_0x1be91c>=0x0;_0x1be91c--){const _0x12c9a0={'id':_0x40a3e6(0x272),'params':{..._0x3fbeba[_0x1be91c]}},_0x55cfc4={'id':_0x40a3e6(0x272),'params':{..._0x490353[_0x1be91c]}},_0x3279d7=this[_0x40a3e6(0x25c)][_0x40a3e6(0x34d)](_0x5173c6,_0x12c9a0,!0x1),_0x3e0896=this[_0x40a3e6(0x25c)][_0x40a3e6(0x34d)](_0x5a5aa7,_0x55cfc4,!0x1);if(_0x195bf6(_0x3279d7))throw _0x3279d7[_0x40a3e6(0x2bc)];if(_0x195bf6(_0x3e0896))throw _0x3e0896[_0x40a3e6(0x2bc)];_0x1cdf71[_0x40a3e6(0x171)](_0x3279d7[_0x40a3e6(0x1e1)][_0x40a3e6(0x264)]),_0x164969['unshift'](_0x3e0896[_0x40a3e6(0x1e1)][_0x40a3e6(0x264)]),_0x5173c6=_0x3279d7['m1Prime'],_0x5a5aa7=_0x3e0896['m1Prime'];}_0x42f1f9[_0x40a3e6(0x1c8)]({'undoCache':_0x1cdf71,'redoCache':_0x164969});}[_0x30d5ae(0x1a2)](_0x568663){const _0x2c1053=_0x30d5ae,{unitID:_0x27ac4e}=_0x568663,_0x4477c2=this[_0x2c1053(0x34f)][_0x2c1053(0x268)](_0x27ac4e)[_0x2c1053(0x16d)](_0x3eb2f8),_0x4204c8=_0x4477c2[_0x2c1053(0x2e7)]();if(_0x4204c8==null)return;const _0x43debe=[{'id':_0x2c1053(0x272),'params':{'unitId':_0x568663[_0x2c1053(0x327)],'actions':null,'textRanges':[_0x4204c8]}}],_0x3d4a90=this[_0x2c1053(0x25c)][_0x2c1053(0x376)](_0x568663,_0x43debe);if(!_0x19e129(_0x3d4a90))throw _0x3d4a90[_0x2c1053(0x2bc)];const _0x4f17df=_0x3d4a90[_0x2c1053(0x1e1)][0x0][_0x2c1053(0x264)][_0x2c1053(0x321)];Array['isArray'](_0x4f17df)&&_0x4f17df[_0x2c1053(0x1e2)]&&_0x4477c2[_0x2c1053(0x26d)](_0x4f17df[0x0]);}};he=dn([lt(0x0,_0x1dc34f),lt(0x1,_0x1695e4)],he);var Sn=Object[_0x30d5ae(0x1b6)],In=(_0x1b6dab,_0x374b5a,_0x5e05a1,_0x3e58f1)=>{for(var _0x2004f4=_0x3e58f1>0x1?void 0x0:_0x3e58f1?Sn(_0x374b5a,_0x5e05a1):_0x374b5a,_0x33cc82=_0x1b6dab['length']-0x1,_0x3a56b2;_0x33cc82>=0x0;_0x33cc82--)(_0x3a56b2=_0x1b6dab[_0x33cc82])&&(_0x2004f4=_0x3a56b2(_0x2004f4)||_0x2004f4);return _0x2004f4;},Le=(_0x496d2f,_0x31f509)=>(_0x106ded,_0x2266ea)=>_0x31f509(_0x106ded,_0x2266ea,_0x496d2f);let ue=class{constructor(_0x486154,_0x278464,_0x16f607){const _0x40a352=_0x30d5ae;this['_injector']=_0x486154,this[_0x40a352(0x25c)]=_0x278464,this[_0x40a352(0x255)]=_0x16f607;}[_0x30d5ae(0x2ae)](_0x4b444a){const _0x2a1abf=_0x30d5ae;this[_0x2a1abf(0x2aa)](_0x4b444a);}['transformRemoteChangeset'](_0x1190b8){const _0x6ca8df=_0x30d5ae,{unitID:_0x1aad3b}=_0x1190b8,{collaboration:_0x56a2c8}=this[_0x6ca8df(0x255)][_0x6ca8df(0x3a6)](_0x1aad3b);if(_0x56a2c8[_0x6ca8df(0x1e2)]===0x0)return _0x1190b8;let _0x18e765=_0x135a99[_0x6ca8df(0x290)](_0x1190b8[_0x6ca8df(0x312)][0x0]);for(let _0xd58fed=0x0;_0xd58fed<_0x56a2c8[_0x6ca8df(0x1e2)];_0xd58fed++){const _0x426a2e={'id':_0x6ca8df(0x272),'params':{'unitId':_0x56a2c8[_0xd58fed][_0x6ca8df(0x220)],..._0x56a2c8[_0xd58fed]['redoState']}},_0x532058=this[_0x6ca8df(0x25c)]['transformMutation'](_0x18e765,_0x426a2e,!0x1);if(_0x195bf6(_0x532058))throw _0x532058[_0x6ca8df(0x2bc)];_0x18e765=_0x532058['m1Prime'];}return{..._0x135a99[_0x6ca8df(0x290)](_0x1190b8),'mutations':[_0x18e765]};}[_0x30d5ae(0x2aa)](_0x107e21){const _0x394ae0=_0x30d5ae,{unitID:_0x27729b}=_0x107e21,{history:_0x2f234b,collaboration:_0xb2699e}=this[_0x394ae0(0x255)][_0x394ae0(0x3a6)](_0x27729b);if(_0x2f234b[_0x394ae0(0x1e2)]===0x0&&_0xb2699e['length']===0x0)return;const _0xf4e66c=[],_0xa817d9=[];let _0x30dc09=_0x135a99[_0x394ae0(0x290)](_0x107e21[_0x394ae0(0x312)][0x0]),_0x397417=_0x135a99[_0x394ae0(0x290)](_0x107e21[_0x394ae0(0x312)][0x0]);for(let _0x50d864=_0x2f234b['length']-0x1;_0x50d864>=0x0;_0x50d864--){const _0x30e7c4={'id':_0x394ae0(0x272),'params':{'unitId':_0x2f234b[_0x50d864][_0x394ae0(0x220)],..._0x2f234b[_0x50d864]['undoState']}},_0x386e7b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2f234b[_0x50d864][_0x394ae0(0x220)],..._0x2f234b[_0x50d864]['redoState']}},_0x30782a=this[_0x394ae0(0x25c)][_0x394ae0(0x34d)](_0x30dc09,_0x30e7c4,!0x1),_0x236d45=this[_0x394ae0(0x25c)][_0x394ae0(0x34d)](_0x397417,_0x386e7b,!0x1);if(_0x195bf6(_0x30782a))throw _0x30782a[_0x394ae0(0x2bc)];if(_0x195bf6(_0x236d45))throw _0x236d45['error'];_0xf4e66c[_0x394ae0(0x171)]({..._0x2f234b[_0x50d864],'undoState':_0x30782a[_0x394ae0(0x1e1)][_0x394ae0(0x264)],'redoState':_0x236d45[_0x394ae0(0x1e1)]['params']}),_0x30dc09=_0x30782a['m1Prime'],_0x397417=_0x236d45['m1Prime'];}_0x30dc09=_0x135a99[_0x394ae0(0x290)](_0x107e21['mutations'][0x0]),_0x397417=_0x135a99[_0x394ae0(0x290)](_0x107e21[_0x394ae0(0x312)][0x0]);for(let _0x3691c8=_0xb2699e[_0x394ae0(0x1e2)]-0x1;_0x3691c8>=0x0;_0x3691c8--){const _0x121611={'id':_0x394ae0(0x272),'params':{'unitId':_0xb2699e[_0x3691c8][_0x394ae0(0x220)],..._0xb2699e[_0x3691c8]['undoState']}},_0x1bf4ee={'id':_0x394ae0(0x272),'params':{'unitId':_0xb2699e[_0x3691c8][_0x394ae0(0x220)],..._0xb2699e[_0x3691c8]['redoState']}},_0x2019e4=this[_0x394ae0(0x25c)][_0x394ae0(0x34d)](_0x30dc09,_0x121611,!0x1),_0x45175d=this['_transformService'][_0x394ae0(0x34d)](_0x397417,_0x1bf4ee,!0x1);if(_0x195bf6(_0x2019e4))throw _0x2019e4[_0x394ae0(0x2bc)];if(_0x195bf6(_0x45175d))throw _0x45175d[_0x394ae0(0x2bc)];_0xa817d9[_0x394ae0(0x171)]({..._0xb2699e[_0x3691c8],'undoState':_0x2019e4[_0x394ae0(0x1e1)][_0x394ae0(0x264)],'redoState':_0x45175d['m2Prime'][_0x394ae0(0x264)]}),_0x30dc09=_0x2019e4[_0x394ae0(0x179)],_0x397417=_0x45175d[_0x394ae0(0x179)];}this[_0x394ae0(0x255)][_0x394ae0(0x2b7)](_0x27729b,{'history':_0xf4e66c,'collaboration':_0xa817d9});}};ue=In([Le(0x0,_0x222181(_0x5c2372)),Le(0x1,_0x1dc34f),Le(0x2,_0x222181(_0x4221a5))],ue);var mn=Object[_0x30d5ae(0x1b6)],fn=(_0x398efa,_0x398ace,_0x49a7b5,_0x3e142d)=>{const _0x2f05e5=_0x30d5ae;for(var _0x4b62b9=_0x3e142d>0x1?void 0x0:_0x3e142d?mn(_0x398ace,_0x49a7b5):_0x398ace,_0x2e995f=_0x398efa[_0x2f05e5(0x1e2)]-0x1,_0x4b3932;_0x2e995f>=0x0;_0x2e995f--)(_0x4b3932=_0x398efa[_0x2e995f])&&(_0x4b62b9=_0x4b3932(_0x4b62b9)||_0x4b62b9);return _0x4b62b9;},ht=(_0x564e53,_0x35b959)=>(_0x104e68,_0x127543)=>_0x35b959(_0x104e68,_0x127543,_0x564e53);let de=class{constructor(_0x4cc8c9,_0x349d53){const _0x313cbe=_0x30d5ae;this[_0x313cbe(0x1e4)]=_0x4cc8c9,this[_0x313cbe(0x25c)]=_0x349d53;}[_0x30d5ae(0x20f)](_0x310575){const _0x34b52a=_0x30d5ae;var _0x13d6e2;const _0x17a817=this[_0x34b52a(0x1e4)]['get'](_0x1bbf56),_0x19cc65=(_0x13d6e2=_0x17a817['getDocRanges']())!=null?_0x13d6e2:[];if(_0x19cc65[_0x34b52a(0x1e2)]===0x0)return;const _0x254fff=_0x310575[_0x34b52a(0x327)],_0x2770a6=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x254fff,'actions':null,'textRanges':_0x19cc65}}],_0x3577f1=this[_0x34b52a(0x25c)]['transformMutationsWithChangeset'](_0x310575,_0x2770a6);if(!_0x19e129(_0x3577f1))throw _0x3577f1['error'];const _0x44b9eb=_0x3577f1[_0x34b52a(0x1e1)][0x0][_0x34b52a(0x264)]['textRanges'];Array[_0x34b52a(0x3a7)](_0x44b9eb)&&_0x44b9eb[_0x34b52a(0x1e2)]&&_0x17a817[_0x34b52a(0x36d)](_0x44b9eb,{'unitId':_0x254fff,'subUnitId':_0x254fff},!0x1);}};de=fn([ht(0x0,_0x222181(_0x5c2372)),ht(0x1,_0x1dc34f)],de);var gn=Object[_0x30d5ae(0x1b6)],En=(_0x351667,_0x5d6026,_0x6cf230,_0x33ff8b)=>{const _0x174617=_0x30d5ae;for(var _0x2bdcf7=_0x33ff8b>0x1?void 0x0:_0x33ff8b?gn(_0x5d6026,_0x6cf230):_0x5d6026,_0x4d60c6=_0x351667[_0x174617(0x1e2)]-0x1,_0x527a5a;_0x4d60c6>=0x0;_0x4d60c6--)(_0x527a5a=_0x351667[_0x4d60c6])&&(_0x2bdcf7=_0x527a5a(_0x2bdcf7)||_0x2bdcf7);return _0x2bdcf7;},U=(_0x1d0b25,_0x1be092)=>(_0x21ebc6,_0xf6c589)=>_0x1be092(_0x21ebc6,_0xf6c589,_0x1d0b25);let Se=class extends _0x2b1774{constructor(_0x4b30fe,_0xb3464f,_0x3e51d3,_0x3c6a4f,_0x37f4bd,_0x3cb2ee,_0x175aa9,_0x399947){const _0x561165=_0x30d5ae;super(),_(this,'_status$',new _0x2eea28(_0x555c2c[_0x561165(0x1bb)])),(this[_0x561165(0x255)]=_0x4b30fe,this[_0x561165(0x1e9)]=_0xb3464f,this['_docTransformIMECacheService']=_0x3e51d3,this[_0x561165(0x23f)]=_0x3c6a4f,this[_0x561165(0x2e8)]=_0x37f4bd,this['_docSyncEditingCollabCursorService']=_0x3cb2ee,this[_0x561165(0x27d)]=_0x175aa9,this['_localeService']=_0x399947,this['_initEntityListener']());}[_0x30d5ae(0x2a8)](){const _0xda49d6=_0x30d5ae;this[_0xda49d6(0x3a2)](this[_0xda49d6(0x1e9)]['entityInit$'][_0xda49d6(0x21b)](_0x56ea12=>{const _0x2e7e05=_0xda49d6,_0x5d20d7=this[_0x2e7e05(0x255)][_0x2e7e05(0x2a4)][_0x2e7e05(0x21b)](_0x384de4=>{const _0x156261=_0x2e7e05;if(_0x384de4==null)return;const {unitId:_0x5d57e3,redoState:_0x4c1de7,commandId:_0x21a342}=_0x384de4;if(_0x5d57e3!==_0x56ea12[_0x156261(0x327)])return;const _0x1a3b0e={'id':_0x21a342,'type':_0x5139cf[_0x156261(0x317)],'params':{'unitId':_0x5d57e3,'actions':_0x4c1de7[_0x156261(0x338)],'textRanges':null}};_0x56ea12[_0x156261(0x19e)](_0x1a3b0e);});if(_0x56ea12[_0x2e7e05(0x3a2)](_0x5d20d7),_0x56ea12 instanceof _0x2afc30){const _0x3bde68={'onTransformIME':_0x259d8a=>this[_0x2e7e05(0x1ec)][_0x2e7e05(0x193)](_0x259d8a),'onTransformState':_0x3db5b7=>this[_0x2e7e05(0x23f)]['transformStateCache'](_0x3db5b7),'onTransformSelections':_0x56aab1=>this['_docTransformSelectionsService'][_0x2e7e05(0x20f)](_0x56aab1),'onSyncEditingCollabCursor':_0x3ee4ed=>this[_0x2e7e05(0x29b)][_0x2e7e05(0x330)](_0x3ee4ed),'onTransformRemoteChangesetByIMECache':_0x1ecb91=>this[_0x2e7e05(0x1ec)][_0x2e7e05(0x174)](_0x1ecb91),'onTransformRemoteChangesetByStateCache':_0x14bb8f=>this[_0x2e7e05(0x23f)][_0x2e7e05(0x174)](_0x14bb8f)};_0x56ea12['addHandlerCallback'](_0x3bde68);}}));}};Se=En([U(0x0,_0x222181(_0x4221a5)),U(0x1,_0x222181(_0x366818)),U(0x2,_0x222181(he)),U(0x3,_0x222181(ue)),U(0x4,_0x222181(de)),U(0x5,_0x222181(ze)),U(0x6,_0x1fa26b),U(0x7,_0x222181(_0xfbc0e7))],Se);var Z=(_0x3076e6=>(_0x3076e6[_0x3076e6['UNDEFINED']=0x0]=_0x30d5ae(0x2e4),_0x3076e6[_0x3076e6['OK']=0x1]='OK',_0x3076e6[_0x3076e6[_0x30d5ae(0x3a4)]=0x2]=_0x30d5ae(0x3a4),_0x3076e6[_0x3076e6['PERMISSION_DENIED']=0x3]=_0x30d5ae(0x348),_0x3076e6[_0x3076e6['NOT_FOUND']=0x4]=_0x30d5ae(0x20c),_0x3076e6[_0x3076e6['UNAUTHENTICATED']=0x5]=_0x30d5ae(0x3a5),_0x3076e6[_0x3076e6[_0x30d5ae(0x263)]=0x6]='ALREADY_EXISTS',_0x3076e6[_0x3076e6[_0x30d5ae(0x297)]=0x7]=_0x30d5ae(0x297),_0x3076e6[_0x3076e6[_0x30d5ae(0x39f)]=0x8]='TOO_MANY_REQUESTS',_0x3076e6[_0x3076e6['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x3076e6[_0x3076e6[_0x30d5ae(0x177)]=0xa]=_0x30d5ae(0x177),_0x3076e6[_0x3076e6['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x30d5ae(0x1d2),_0x3076e6[_0x3076e6[_0x30d5ae(0x17a)]=0xc]=_0x30d5ae(0x17a),_0x3076e6[_0x3076e6['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x30d5ae(0x372),_0x3076e6[_0x3076e6[_0x30d5ae(0x2d5)]=0xe]=_0x30d5ae(0x2d5),_0x3076e6[_0x3076e6[_0x30d5ae(0x2f5)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x3076e6[_0x3076e6[_0x30d5ae(0x271)]=0x10]=_0x30d5ae(0x271),_0x3076e6[_0x3076e6[_0x30d5ae(0x346)]=0x64]=_0x30d5ae(0x346),_0x3076e6[_0x3076e6[_0x30d5ae(0x1c6)]=0x65]=_0x30d5ae(0x1c6),_0x3076e6[_0x3076e6['USER_NOT_FOUND']=0xc9]=_0x30d5ae(0x32d),_0x3076e6[_0x3076e6[_0x30d5ae(0x257)]=0xca]='USER_IS_ANONYMOUS',_0x3076e6[_0x3076e6[_0x30d5ae(0x3a8)]=0x1389]=_0x30d5ae(0x3a8),_0x3076e6[_0x3076e6['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x30d5ae(0x19c),_0x3076e6[_0x3076e6[_0x30d5ae(0x341)]=0x1772]=_0x30d5ae(0x341),_0x3076e6[_0x3076e6['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x30d5ae(0x26b),_0x3076e6[_0x3076e6[_0x30d5ae(0x23e)]=0x1b59]=_0x30d5ae(0x23e),_0x3076e6[_0x3076e6[_0x30d5ae(0x36b)]=0x1b5a]=_0x30d5ae(0x36b),_0x3076e6[_0x3076e6[_0x30d5ae(0x359)]=0x1b5b]=_0x30d5ae(0x359),_0x3076e6[_0x3076e6[_0x30d5ae(0x1cf)]=0x1b5c]=_0x30d5ae(0x1cf),_0x3076e6[_0x3076e6['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x3076e6[_0x3076e6[_0x30d5ae(0x1cc)]=0x1f41]=_0x30d5ae(0x1cc),_0x3076e6[_0x3076e6[_0x30d5ae(0x1ce)]=0x2329]=_0x30d5ae(0x1ce),_0x3076e6[_0x3076e6[_0x30d5ae(0x1ef)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x3076e6[_0x3076e6['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x30d5ae(0x31d),_0x3076e6[_0x3076e6[_0x30d5ae(0x3ae)]=0x232c]=_0x30d5ae(0x3ae),_0x3076e6[_0x3076e6[_0x30d5ae(0x256)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x3076e6[_0x3076e6[_0x30d5ae(0x1ac)]=0x2711]=_0x30d5ae(0x1ac),_0x3076e6[_0x3076e6['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x30d5ae(0x322),_0x3076e6[_0x3076e6['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x30d5ae(0x332),_0x3076e6[_0x3076e6['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x30d5ae(0x253),_0x3076e6[_0x3076e6[_0x30d5ae(0x1fd)]=0x271a]=_0x30d5ae(0x1fd),_0x3076e6[_0x3076e6[_0x30d5ae(0x349)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x3076e6[_0x3076e6['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x30d5ae(0x2fb),_0x3076e6[_0x3076e6[_0x30d5ae(0x20a)]=0x271d]=_0x30d5ae(0x20a),_0x3076e6[_0x3076e6[_0x30d5ae(0x246)]=0x271e]=_0x30d5ae(0x246),_0x3076e6[_0x3076e6[_0x30d5ae(0x182)]=0x271f]=_0x30d5ae(0x182),_0x3076e6[_0x3076e6['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x30d5ae(0x375),_0x3076e6[_0x3076e6['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x30d5ae(0x2be),_0x3076e6[_0x3076e6['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x30d5ae(0x17f),_0x3076e6[_0x3076e6[_0x30d5ae(0x3a9)]=0x2ee2]='INVALID_INVITE_CODE',_0x3076e6[_0x3076e6['INVITE_CODE_REQUIRED']=0x2ee3]=_0x30d5ae(0x186),_0x3076e6[_0x3076e6[_0x30d5ae(0x200)]=0x2ee4]=_0x30d5ae(0x200),_0x3076e6[_0x3076e6['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x30d5ae(0x2e5),_0x3076e6[_0x3076e6[_0x30d5ae(0x2ff)]=0x32c9]=_0x30d5ae(0x2ff),_0x3076e6[_0x3076e6[_0x30d5ae(0x299)]=0x32ca]=_0x30d5ae(0x299),_0x3076e6[_0x3076e6[_0x30d5ae(0x362)]=0x32cb]=_0x30d5ae(0x362),_0x3076e6[_0x3076e6[_0x30d5ae(0x33b)]=0x36b1]=_0x30d5ae(0x33b),_0x3076e6[_0x3076e6[_0x30d5ae(0x1b4)]=0x36b2]=_0x30d5ae(0x1b4),_0x3076e6[_0x3076e6[_0x30d5ae(0x2bb)]=0x36b3]=_0x30d5ae(0x2bb),_0x3076e6[_0x3076e6['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x30d5ae(0x37a),_0x3076e6[_0x3076e6[_0x30d5ae(0x325)]=0x36b5]=_0x30d5ae(0x325),_0x3076e6[_0x3076e6[_0x30d5ae(0x260)]=0x36b6]=_0x30d5ae(0x260),_0x3076e6[_0x3076e6['ENTITLE_COUPON_USED_UP']=0x36b7]='ENTITLE_COUPON_USED_UP',_0x3076e6[_0x3076e6[_0x30d5ae(0x39d)]=0x36b8]='ENTITLE_USE_COUPON_NOT_1ST_TRADE',_0x3076e6[_0x3076e6[_0x30d5ae(0x273)]=0x3715]=_0x30d5ae(0x273),_0x3076e6[_0x3076e6[_0x30d5ae(0x2c2)]=0x3716]=_0x30d5ae(0x2c2),_0x3076e6[_0x3076e6[_0x30d5ae(0x16b)]=0x3717]=_0x30d5ae(0x16b),_0x3076e6[_0x3076e6[_0x30d5ae(0x2f8)]=0x37dd]=_0x30d5ae(0x2f8),_0x3076e6[_0x3076e6['REDEMPTION_INVALID_CODE']=0x3a99]=_0x30d5ae(0x281),_0x3076e6[_0x3076e6[_0x30d5ae(0x2b8)]=0x3a9a]=_0x30d5ae(0x2b8),_0x3076e6[_0x3076e6[_0x30d5ae(0x305)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x3076e6[_0x3076e6[_0x30d5ae(0x2c9)]=0x3a9c]=_0x30d5ae(0x2c9),_0x3076e6[_0x3076e6[_0x30d5ae(0x2e6)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x3076e6[_0x3076e6['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x30d5ae(0x208),_0x3076e6[_0x3076e6[_0x30d5ae(0x198)]=0x3a9f]=_0x30d5ae(0x198),_0x3076e6[_0x3076e6[_0x30d5ae(0x22a)]=0x3e81]=_0x30d5ae(0x22a),_0x3076e6[_0x3076e6[_0x30d5ae(0x25b)]=-0x1]=_0x30d5ae(0x25b),_0x3076e6))(Z||{});function vn(_0x23f8d6){const _0x1c2c6d=_0x30d5ae;var _0x353866,_0x4d1a4d;const _0x183756=(_0x353866=_0x23f8d6[_0x1c2c6d(0x337)])==null?void 0x0:_0x353866[_0x1c2c6d(0x286)],_0x2f140c=((_0x4d1a4d=_0x23f8d6[_0x1c2c6d(0x337)])==null?void 0x0:_0x4d1a4d[_0x1c2c6d(0x239)])||0x0;return _0x183756===_0x26130c[_0x1c2c6d(0x1be)]&&_0x2f140c>0x0;}function pn(_0x36403c){const _0xb4b8c1=_0x30d5ae;return _0x36403c[_0xb4b8c1(0x1a5)]===_0x3c9077[_0xb4b8c1(0x283)];}var On=Object[_0x30d5ae(0x1b6)],Tn=(_0xac0205,_0x578f0f,_0x177d82,_0x3c3bb8)=>{for(var _0x53573d=_0x3c3bb8>0x1?void 0x0:_0x3c3bb8?On(_0x578f0f,_0x177d82):_0x578f0f,_0x5f65ee=_0xac0205['length']-0x1,_0x1e756d;_0x5f65ee>=0x0;_0x5f65ee--)(_0x1e756d=_0xac0205[_0x5f65ee])&&(_0x53573d=_0x1e756d(_0x53573d)||_0x53573d);return _0x53573d;},P=(_0x4f070c,_0x231a69)=>(_0x56bd32,_0x27d979)=>_0x231a69(_0x56bd32,_0x27d979,_0x4f070c);const Cn=_0x30d5ae(0x3aa),Rn=_0x30d5ae(0x2b9),Dn=_0x30d5ae(0x1f0);let Ie=class extends _0x2b1774{constructor(_0x168e55,_0x33a8c7,_0x6596c,_0x44d70d,_0x33160b,_0x592ab4,_0x296091){const _0x101ef4=_0x30d5ae;super(),_(this,_0x101ef4(0x33e),null),_(this,_0x101ef4(0x30b),0x0),_(this,_0x101ef4(0x2c1),0x0),_(this,_0x101ef4(0x298),[]),_(this,_0x101ef4(0x196),0x0),(this[_0x101ef4(0x27d)]=_0x168e55,this[_0x101ef4(0x39a)]=_0x33a8c7,this[_0x101ef4(0x30c)]=_0x6596c,this[_0x101ef4(0x356)]=_0x44d70d,this[_0x101ef4(0x32c)]=_0x33160b,this[_0x101ef4(0x33c)]=_0x592ab4,this[_0x101ef4(0x30f)]=_0x296091,this['_initCommandInterceptor']());}['_initCommandInterceptor'](){const _0xdabd96=_0x30d5ae;this[_0xdabd96(0x3a2)](this[_0xdabd96(0x39a)][_0xdabd96(0x17b)]((_0x238c13,_0x2ada00)=>{const _0x3d56c3=_0xdabd96;var _0x161069;if(_0x238c13['id']!==_0x3c9b39['id'])return;const _0x4bf36c=_0x238c13[_0x3d56c3(0x264)];if(!this[_0x3d56c3(0x320)]((_0x161069=_0x4bf36c['dirtyRanges'])!=null?_0x161069:[]))return;if(!this[_0x3d56c3(0x2ee)]())throw this[_0x3d56c3(0x22c)](_0x238c13,_0x2ada00),this[_0x3d56c3(0x1dd)](),new _0x39d40d();})),this[_0xdabd96(0x3a2)](this[_0xdabd96(0x39a)]['onCommandExecuted']((_0x5e3c41,_0x437158)=>{const _0x31b8cb=_0xdabd96;if(_0x5e3c41['id']!==_0xf19c0c['id'])return;const _0x32d448=_0x5e3c41['params'];if(vn(_0x32d448)){const _0x4b7e00=_0x2e90e1();this[_0x31b8cb(0x298)][_0x31b8cb(0x293)](_0x4b7e00),this[_0x31b8cb(0x2eb)](_0x4b7e00);}else{if(pn(_0x32d448)&&this['_taskIds'][_0x31b8cb(0x1e2)]>0x0){const _0x4bf4f6=this[_0x31b8cb(0x298)][_0x31b8cb(0x18c)]();this['_releaseCalculationLimit'](_0x4bf4f6);}}}));}[_0x30d5ae(0x304)](){const _0x3816e2=_0x30d5ae;super[_0x3816e2(0x304)](),this['_clearPolling'](),this[_0x3816e2(0x298)]=[],this[_0x3816e2(0x2c1)]=0x0,this[_0x3816e2(0x30b)]=0x0,this[_0x3816e2(0x196)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x3acdd7,_0x259e9d){const _0x605931=_0x30d5ae;for(let _0x8335da=0x0;_0x8335da<0x1e;_0x8335da++)try{if(await this['_getFormulaLimitStatus'](),this[_0x605931(0x2ee)]()){this['_applyCommand'](_0x3acdd7,_0x259e9d),this[_0x605931(0x27d)][_0x605931(0x2c3)]({'content':this[_0x605931(0x30f)]['t']('formula.calculation.started'),'type':_0x220839[_0x605931(0x2ea)]});return;}await new Promise(_0x3c25dc=>{const _0x295b0f=_0x605931;this[_0x295b0f(0x33e)]=window[_0x295b0f(0x36f)](_0x3c25dc,0x3e8);});}catch(_0x3b5c47){this['_logService']['error'](_0x3b5c47);}this['_messageService'][_0x605931(0x2c3)]({'content':this[_0x605931(0x30f)]['t'](_0x605931(0x39b)),'type':_0x220839[_0x605931(0x336)]});}['_applyCommand'](_0x140f8d,_0x5c87ea){const _0x2e1e35=_0x30d5ae;try{this[_0x2e1e35(0x39a)]['executeCommand'](_0x140f8d['id'],_0x140f8d[_0x2e1e35(0x264)],_0x5c87ea);}catch(_0x1bf883){this[_0x2e1e35(0x33c)][_0x2e1e35(0x2bc)](_0x1bf883);}}[_0x30d5ae(0x20d)](_0x53d379,_0xde1a18){const _0x444475=_0x30d5ae;_0xde1a18<this[_0x444475(0x196)]||(this[_0x444475(0x196)]=_0xde1a18,this['_maxFormulaLimit']=Number[_0x444475(0x1e3)](_0x53d379[_0x444475(0x233)]),this['_currentUsage']=Number['parseInt'](_0x53d379[_0x444475(0x2cb)]));}async['_startCalculationLimit'](_0x3f6a4d){const _0x2e268a=_0x30d5ae;var _0x3f6be1,_0x4b4921;const _0x22471e=Date[_0x2e268a(0x201)]();try{const _0x1ebdfd=((_0x3f6be1=this[_0x2e268a(0x30c)][_0x2e268a(0x3a3)](_0x44ed78))==null?void 0x0:_0x3f6be1[_0x2e268a(0x26a)])||Rn,_0x10606c=(await this['_httpService']['post'](_0x1ebdfd,{'body':JSON[_0x2e268a(0x1f8)]({'taskId':_0x3f6a4d})}))['body'];if(((_0x4b4921=_0x10606c[_0x2e268a(0x2bc)])==null?void 0x0:_0x4b4921[_0x2e268a(0x397)])!==Z['OK'])return;this[_0x2e268a(0x20d)](_0x10606c[_0x2e268a(0x1d3)],_0x22471e);}catch(_0x180c3f){this[_0x2e268a(0x33c)][_0x2e268a(0x2bc)](_0x180c3f);}}async[_0x30d5ae(0x2bd)](_0x519bde){const _0x43acf=_0x30d5ae;var _0x1a3b73,_0x3bf52b;const _0x3d5c88=Date[_0x43acf(0x201)]();try{const _0xa47e82=((_0x1a3b73=this['_configService']['getConfig'](_0x44ed78))==null?void 0x0:_0x1a3b73[_0x43acf(0x2c0)])||Cn,_0x2e4f39=_0x519bde?_0xa47e82+_0x43acf(0x2fa)+encodeURIComponent(_0x519bde):_0xa47e82,_0x4e3f06=(await this[_0x43acf(0x356)][_0x43acf(0x2e1)](_0x2e4f39))[_0x43acf(0x326)];if(((_0x3bf52b=_0x4e3f06['error'])==null?void 0x0:_0x3bf52b[_0x43acf(0x397)])!==Z['OK'])return;this[_0x43acf(0x20d)](_0x4e3f06[_0x43acf(0x1d3)],_0x3d5c88);}catch(_0x24ef06){this['_logService'][_0x43acf(0x2bc)](_0x24ef06);}}async[_0x30d5ae(0x2ab)](_0x153769){const _0x4f8f67=_0x30d5ae;var _0x2104c7,_0x56c4f2;const _0x1a8c6f=Date[_0x4f8f67(0x201)]();try{const _0x1dbd2c=((_0x2104c7=this[_0x4f8f67(0x30c)][_0x4f8f67(0x3a3)](_0x44ed78))==null?void 0x0:_0x2104c7[_0x4f8f67(0x292)])||Dn,_0x4df3f8=(await this[_0x4f8f67(0x356)][_0x4f8f67(0x202)](_0x1dbd2c,{'body':JSON[_0x4f8f67(0x1f8)]({'taskId':_0x153769})}))[_0x4f8f67(0x326)];if(((_0x56c4f2=_0x4df3f8[_0x4f8f67(0x2bc)])==null?void 0x0:_0x56c4f2['code'])!==Z['OK'])return;this[_0x4f8f67(0x20d)](_0x4df3f8[_0x4f8f67(0x1d3)],_0x1a8c6f);}catch(_0x4361bb){this[_0x4f8f67(0x33c)]['error'](_0x4361bb);}}[_0x30d5ae(0x2ee)](){const _0x1dae83=_0x30d5ae;return this[_0x1dae83(0x30b)]===0x0?!0x0:this[_0x1dae83(0x30b)]-this[_0x1dae83(0x2c1)]>0x0;}[_0x30d5ae(0x37f)](){const _0x58de35=_0x30d5ae;this[_0x58de35(0x33e)]&&(clearTimeout(this['_pollingInterval']),this[_0x58de35(0x33e)]=null);}[_0x30d5ae(0x1dd)](){const _0x58d7f9=_0x30d5ae;this[_0x58d7f9(0x27d)][_0x58d7f9(0x2c3)]({'content':this['_localeService']['t'](_0x58d7f9(0x35d)),'type':_0x220839['Loading']});}['_hasFormulaInDirtyRanges'](_0x5a2fd7){const _0x222fa7=_0x30d5ae;for(const _0x4a29bd of _0x5a2fd7){const {unitId:_0x2510c3,sheetId:_0x450b32,range:_0x1776ba}=_0x4a29bd,_0x53b83f=this[_0x222fa7(0x32c)][_0x222fa7(0x203)](_0x2510c3);if(!_0x53b83f)continue;const _0x4dcb69=_0x53b83f['getSheetBySheetId'](_0x450b32);if(!_0x4dcb69)continue;const _0x2215bc=_0x4dcb69[_0x222fa7(0x1f2)]();for(let _0x228e40=_0x1776ba[_0x222fa7(0x29a)];_0x228e40<=_0x1776ba[_0x222fa7(0x1df)];_0x228e40++)for(let _0x1c543a=_0x1776ba['startColumn'];_0x1c543a<=_0x1776ba[_0x222fa7(0x251)];_0x1c543a++){const _0x480132=_0x2215bc['getValue'](_0x228e40,_0x1c543a);if(_0x480132&&(_0x521569(_0x480132['f'])||_0x30c775(_0x480132['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x222181(_0x1fa26b)),P(0x1,_0x271cee),P(0x2,_0x8b7829),P(0x3,_0x222181(_0x56d4bc)),P(0x4,_0x378c7f),P(0x5,_0x2b507f),P(0x6,_0x222181(_0xfbc0e7))],Ie);var Nn=Object['getOwnPropertyDescriptor'],bn=(_0x42ffd5,_0x5dc5e9,_0x407b02,_0x3274a8)=>{const _0x4c7508=_0x30d5ae;for(var _0x889506=_0x3274a8>0x1?void 0x0:_0x3274a8?Nn(_0x5dc5e9,_0x407b02):_0x5dc5e9,_0x391424=_0x42ffd5[_0x4c7508(0x1e2)]-0x1,_0x4d93a7;_0x391424>=0x0;_0x391424--)(_0x4d93a7=_0x42ffd5[_0x391424])&&(_0x889506=_0x4d93a7(_0x889506)||_0x889506);return _0x889506;},Ue=(_0x3ee9c6,_0x413162)=>(_0x470a14,_0x4bcd58)=>_0x413162(_0x470a14,_0x4bcd58,_0x3ee9c6);let He=class extends _0x2b1774{constructor(_0x22be42,_0x4c1792,_0x43f5ef){const _0x330652=_0x30d5ae;super(),_(this,_0x330652(0x296),new Map()),_(this,_0x330652(0x17d),new Map()),_(this,_0x330652(0x29d),!0x1),(this[_0x330652(0x30c)]=_0x22be42,this[_0x330652(0x259)]=_0x4c1792,this[_0x330652(0x173)]=_0x43f5ef);}[_0x30d5ae(0x2b5)](){const _0x1b93a7=_0x30d5ae;this[_0x1b93a7(0x29d)]=!0x0;}[_0x30d5ae(0x324)](){const _0x133bac=_0x30d5ae;this[_0x133bac(0x29d)]=!0x1;}get[_0x30d5ae(0x1ee)](){const _0x162db6=_0x30d5ae;return this[_0x162db6(0x17d)];}['dispose'](){const _0x11e590=_0x30d5ae;this[_0x11e590(0x17c)]()[_0x11e590(0x1a9)](()=>super[_0x11e590(0x304)]());}async[_0x30d5ae(0x399)](_0x2fcb22){const _0x56d47e=_0x30d5ae;return this['_disabled']?null:this['_localStorageService'][_0x56d47e(0x231)](_0x16813b(_0x2fcb22));}async['saveOfflineData'](_0xa8a5f4,_0x51672b){const _0x3c9f34=_0x30d5ae;return!!this[_0x3c9f34(0x259)][_0x3c9f34(0x1f4)](_0xa8a5f4,_0x51672b);}[_0x30d5ae(0x1c5)](_0x4cd7c2,_0x1f33ea,_0x3f7595,_0x465c0c){const _0x55132e=_0x30d5ae,_0x49cad3=this[_0x55132e(0x173)][_0x55132e(0x2a3)](_0x4cd7c2);this['_cachedData'][_0x55132e(0x2f6)](_0x4cd7c2,{'unitID':_0x4cd7c2,'type':_0x1f33ea,'awaitingChangeset':_0x3f7595,'mutations':_0x465c0c,'rev':_0x49cad3}),this[_0x55132e(0x17d)][_0x55132e(0x1a1)](_0x4cd7c2)||this[_0x55132e(0x1b8)](_0x4cd7c2);}[_0x30d5ae(0x1b8)](_0x2f90a0){const _0x47b04d=_0x30d5ae,_0x46af30=this[_0x47b04d(0x1a0)]();_0x46af30===0x0?this[_0x47b04d(0x21d)](_0x2f90a0):this[_0x47b04d(0x17d)]['set'](_0x2f90a0,setTimeout(()=>this[_0x47b04d(0x21d)](_0x2f90a0),_0x46af30));}['_getSaveTimeout'](){const _0x56e0ae=_0x30d5ae;var _0x33028c;return(_0x33028c=this[_0x56e0ae(0x30c)][_0x56e0ae(0x3a3)](_0x12185e))!=null?_0x33028c:_0x437e1e;}[_0x30d5ae(0x21d)](_0x26ab91){const _0x5e615c=_0x30d5ae,_0x1926c3=this[_0x5e615c(0x17d)][_0x5e615c(0x2e1)](_0x26ab91);return _0x1926c3!==void 0x0&&window[_0x5e615c(0x2f4)](_0x1926c3),this[_0x5e615c(0x259)][_0x5e615c(0x1f4)](_0x16813b(_0x26ab91),this['_cachedData'][_0x5e615c(0x2e1)](_0x26ab91))[_0x5e615c(0x1a9)](()=>this['_saveTaskMap'][_0x5e615c(0x2ba)](_0x26ab91));}async[_0x30d5ae(0x17c)](){const _0x570310=_0x30d5ae,_0x2e0cfb=[];this[_0x570310(0x17d)][_0x570310(0x333)]((_0x4960bc,_0x78f9e7)=>{const _0x5e4005=_0x570310;window[_0x5e4005(0x2f4)](_0x4960bc),_0x2e0cfb['push'](this['_saveCache'](_0x78f9e7)[_0x5e4005(0x1a9)](()=>{const _0x54e768=_0x5e4005;this[_0x54e768(0x17d)][_0x54e768(0x2ba)](_0x78f9e7);}));}),await Promise['all'](_0x2e0cfb);}};He=bn([Ue(0x0,_0x8b7829),Ue(0x1,_0x55f11e),Ue(0x2,_0x222181(_0x58174f))],He);class Ln extends _0x5e4f80{constructor(){const _0xb32736=_0x30d5ae;super(),_(this,_0xb32736(0x2e9)),this[_0xb32736(0x2e9)]=_0x533b07(window,_0xb32736(0x29c))[_0xb32736(0x27e)](_0x9a62f4(this[_0xb32736(0x392)]),_0x1616a5(0x1),_0x6d39b(void 0x0));}[_0x30d5ae(0x30a)](_0x575709,_0x166a5c,_0x97c3fd=!0x1){const _0x49269c=_0x30d5ae,_0x57b15c=new URL(window[_0x49269c(0x248)][_0x49269c(0x1d6)]);_0x57b15c[_0x49269c(0x18b)][_0x49269c(0x2f6)](_0x575709,_0x166a5c),_0x97c3fd?window[_0x49269c(0x24a)]['replaceState']('','',_0x57b15c[_0x49269c(0x2f1)]()):window['history'][_0x49269c(0x1c7)]('','',_0x57b15c[_0x49269c(0x2f1)]());}[_0x30d5ae(0x199)](_0x30f92d,_0x447773=!0x1){const _0x1dc31d=_0x30d5ae,_0x174385=new URL(window[_0x1dc31d(0x248)][_0x1dc31d(0x1d6)]);_0x174385['searchParams']['delete'](_0x30f92d),_0x447773?window[_0x1dc31d(0x24a)][_0x1dc31d(0x2a9)]('','',_0x174385[_0x1dc31d(0x2f1)]()):window[_0x1dc31d(0x24a)][_0x1dc31d(0x1c7)]('','',_0x174385[_0x1dc31d(0x2f1)]());}[_0x30d5ae(0x308)](_0x3011e9){const _0x5dc9e4=_0x30d5ae;var _0x28fb7e;return(_0x28fb7e=new URL(window[_0x5dc9e4(0x248)]['href'])[_0x5dc9e4(0x18b)]['get'](_0x3011e9))!=null?_0x28fb7e:void 0x0;}}var Un=Object[_0x30d5ae(0x215)],Mn=Object['getOwnPropertyDescriptor'],An=(_0x514a35,_0x5b98eb,_0x87d771)=>_0x5b98eb in _0x514a35?Un(_0x514a35,_0x5b98eb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x87d771}):_0x514a35[_0x5b98eb]=_0x87d771,Pn=(_0x4c3cea,_0x21b73e,_0x690318,_0x42084b)=>{const _0x572b24=_0x30d5ae;for(var _0x18a81e=_0x42084b>0x1?void 0x0:_0x42084b?Mn(_0x21b73e,_0x690318):_0x21b73e,_0x5cb29f=_0x4c3cea[_0x572b24(0x1e2)]-0x1,_0x3e196a;_0x5cb29f>=0x0;_0x5cb29f--)(_0x3e196a=_0x4c3cea[_0x5cb29f])&&(_0x18a81e=_0x3e196a(_0x18a81e)||_0x18a81e);return _0x18a81e;},Me=(_0x41290a,_0x5bc26d)=>(_0x41e837,_0x4f2317)=>_0x5bc26d(_0x41e837,_0x4f2317,_0x41290a),wn=(_0x1a45ee,_0x207941,_0x418ebb)=>An(_0x1a45ee,_0x207941+'',_0x418ebb);const yn=_0x30d5ae(0x2ca);let Ye=class extends _0x3402af{constructor(_0xf1282d=_t,_0x121be1,_0x3aa78f,_0x4e72af){const _0x1d08c2=_0x30d5ae;super(),this[_0x1d08c2(0x221)]=_0xf1282d,this['_renderManagerService']=_0x121be1,this[_0x1d08c2(0x1e4)]=_0x3aa78f,this[_0x1d08c2(0x30c)]=_0x4e72af;const {..._0x5e748a}=_0x28ff57({},_t,this['_config']);this[_0x1d08c2(0x30c)][_0x1d08c2(0x24d)](hn,_0x5e748a);}['onStarting'](){const _0x4afd28=_0x30d5ae;this[_0x4afd28(0x172)](),this['_initDependencies']();}[_0x30d5ae(0x2fd)](){const _0x551734=_0x30d5ae;this[_0x551734(0x2f9)]();}[_0x30d5ae(0x172)](){const _0x487132=_0x30d5ae;var _0x24c88c;const _0x268f90=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x251505,{'useClass':_0x430f47}],[_0x48babe,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x487132(0x221)][_0x487132(0x390)]&&_0x268f90[_0x487132(0x293)]([le]),_0x4405f2(this[_0x487132(0x1e4)],_0x382ef4(_0x268f90,(_0x24c88c=this[_0x487132(0x221)])==null?void 0x0:_0x24c88c[_0x487132(0x276)]));}[_0x30d5ae(0x2f9)](){const _0x10e571=_0x30d5ae;this[_0x10e571(0x3a2)](this[_0x10e571(0x34f)][_0x10e571(0x1a4)](_0xba2a08[_0x10e571(0x2a1)],[Fe])),this[_0x10e571(0x3a2)](this[_0x10e571(0x34f)][_0x10e571(0x1a4)](_0xba2a08[_0x10e571(0x385)],[ke]));}[_0x30d5ae(0x25a)](){const _0x2a1033=_0x30d5ae;_0x3c3252(this['_injector'],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x2a1033(0x221)][_0x2a1033(0x390)]&&_0x3c3252(this[_0x2a1033(0x1e4)],[[le]]);}};wn(Ye,_0x30d5ae(0x1cb),yn),Ye=Pn([_0x4a3f9a(_0x1c32fa),Me(0x1,_0x1695e4),Me(0x2,_0x222181(_0x5c2372)),Me(0x3,_0x8b7829)],Ye);var $n=Object[_0x30d5ae(0x1b6)],xn=(_0xd5ea1b,_0x28f97d,_0x1ec105,_0x2848b5)=>{const _0x5103b8=_0x30d5ae;for(var _0x69d72d=_0x2848b5>0x1?void 0x0:_0x2848b5?$n(_0x28f97d,_0x1ec105):_0x28f97d,_0x304ec4=_0xd5ea1b[_0x5103b8(0x1e2)]-0x1,_0x44462a;_0x304ec4>=0x0;_0x304ec4--)(_0x44462a=_0xd5ea1b[_0x304ec4])&&(_0x69d72d=_0x44462a(_0x69d72d)||_0x69d72d);return _0x69d72d;},J=(_0x2d1083,_0x5f500e)=>(_0xbcd3b0,_0x332052)=>_0x5f500e(_0xbcd3b0,_0x332052,_0x2d1083);let ut=class extends _0x464ff2{constructor(_0xc8022e,_0xac8f29,_0x5245a1,_0x371f4e,_0x241e2b){super(_0xc8022e,_0xac8f29,_0x5245a1,_0x371f4e,_0x241e2b);}async[_0x30d5ae(0x1b0)](_0x216943){const _0x2fe316=_0x30d5ae,_0x18ba7b=await this[_0x2fe316(0x235)](),_0x1e74e4=this[_0x2fe316(0x28f)](_0x216943,_0x18ba7b);return this['_doCreateSocket'](_0x1e74e4);}[_0x30d5ae(0x28f)](_0x5ef076,_0x5d866f){const _0x3eef29=_0x30d5ae,_0x42aee6=typeof window>'u'?new URL(_0x5ef076):new URL(_0x5ef076,window['location'][_0x3eef29(0x30e)]);_0x42aee6[_0x3eef29(0x18b)][_0x3eef29(0x2f6)](_0x3eef29(0x36e),_0x5d866f);const _0x32d523=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3eef29(0x248)]['search']);return _0x32d523[_0x3eef29(0x2e1)](_0x3eef29(0x25f))&&_0x42aee6[_0x3eef29(0x18b)]['set'](_0x3eef29(0x25f),_0x32d523[_0x3eef29(0x2e1)](_0x3eef29(0x25f))),_0x42aee6[_0x3eef29(0x2f1)]();}async[_0x30d5ae(0x235)](){const _0x52160b=_0x30d5ae;var _0xc9163,_0x419280,_0x35d572;const _0x2192b9=this[_0x52160b(0x30c)]['getConfig'](_0x44ed78),_0x259164=(_0xc9163=_0x2192b9==null?void 0x0:_0x2192b9[_0x52160b(0x236)])!=null?_0xc9163:_0x312763;return(_0x35d572=(_0x419280=(await this[_0x52160b(0x356)][_0x52160b(0x2e1)](_0x259164,{'headers':{'Content-Type':_0x52160b(0x1a8)}}))[_0x52160b(0x326)])==null?void 0x0:_0x419280[_0x52160b(0x28c)])!=null?_0x35d572:'';}};ut=xn([J(0x0,_0x222181(_0x5c2372)),J(0x1,_0x222181(_0x56d4bc)),J(0x2,_0x8b7829),J(0x3,_0x2b507f),J(0x4,_0x509191)],ut);var Bn=Object[_0x30d5ae(0x1b6)],Fn=(_0xc4dfd5,_0x561c44,_0x118f8a,_0x5f2db8)=>{for(var _0x5b623f=_0x5f2db8>0x1?void 0x0:_0x5f2db8?Bn(_0x561c44,_0x118f8a):_0x561c44,_0x1fa701=_0xc4dfd5['length']-0x1,_0x254f39;_0x1fa701>=0x0;_0x1fa701--)(_0x254f39=_0xc4dfd5[_0x1fa701])&&(_0x5b623f=_0x254f39(_0x5b623f)||_0x5b623f);return _0x5b623f;},Ae=(_0x379ef2,_0x1cf7d6)=>(_0x383ba1,_0x47bc83)=>_0x1cf7d6(_0x383ba1,_0x47bc83,_0x379ef2);let dt=class extends _0x2b1774{constructor(_0x374c59,_0x5355aa,_0x2b7470){const _0x5b1d06=_0x30d5ae;super(),this[_0x5b1d06(0x3ac)]=_0x374c59,this[_0x5b1d06(0x356)]=_0x5355aa,this[_0x5b1d06(0x30c)]=_0x2b7470;}async[_0x30d5ae(0x254)](_0x18c6e1,_0x22a6b9,_0x5b11d5,..._0x307e15){const _0xb1bb94=_0x30d5ae;var _0x5e86ca,_0x1df58f,_0x279084,_0x14fdb4;const _0x1c1eb7=this[_0xb1bb94(0x3ac)][_0xb1bb94(0x1f5)]();if(!_0x1c1eb7)throw new Error(_0xb1bb94(0x266));const _0x3f39c5=((_0x5e86ca=this[_0xb1bb94(0x30c)][_0xb1bb94(0x3a3)](_0x5054a6))!=null?_0x5e86ca:_0x524947)+'/'+_0x18c6e1+_0xb1bb94(0x2ac)+_0x22a6b9,_0xb40fb2=new URL(window['location'][_0xb1bb94(0x1d6)]),_0x3d8202={'scriptId':_0x18c6e1,'runId':(_0x1df58f=_0xb40fb2['searchParams'][_0xb1bb94(0x2e1)](_0xb1bb94(0x25f)))!=null?_0x1df58f:'','function':_0x22a6b9,'unitId':_0x1c1eb7[_0xb1bb94(0x3a0)](),'argsOfFunction':JSON[_0xb1bb94(0x1f8)](_0x307e15),'invokeId':(_0x279084=_0x5b11d5[_0xb1bb94(0x386)])!=null?_0x279084:'','executionId':(_0x14fdb4=_0x5b11d5['executionId'])!=null?_0x14fdb4:''};try{const _0x5d4e18=await this[_0xb1bb94(0x356)]['post'](_0x3f39c5,{'body':_0x3d8202});return _0x5d4e18[_0xb1bb94(0x326)][_0xb1bb94(0x2bc)]&&_0x5d4e18[_0xb1bb94(0x326)][_0xb1bb94(0x2bc)][_0xb1bb94(0x397)]!==Z['OK']?_0xb1bb94(0x223):_0x5d4e18[_0xb1bb94(0x326)][_0xb1bb94(0x1f1)];}catch{return _0xb1bb94(0x223);}}};function _0x23c8(_0x36895a,_0x4a30b8){_0x36895a=_0x36895a-0x168;const _0x34b1d2=_0x34b1();let _0x23c81f=_0x34b1d2[_0x36895a];return _0x23c81f;}dt=Fn([Ae(0x0,_0x378c7f),Ae(0x1,_0x222181(_0x56d4bc)),Ae(0x2,_0x8b7829)],dt);const St=0x7530,It=_0x30d5ae(0x291);class rr extends _0x2b1774{constructor(){const _0x376f7d=_0x30d5ae;super(),_(this,_0x376f7d(0x1ea),_0x2e90e1()),_(this,_0x376f7d(0x258),new Set()),_(this,'_unitOnClients',new Map()),_(this,'_heartbeatTimer',null),_(this,'_clearOtherTimers',new Map()),_(this,'_unitStatus',new Map()),this[_0x376f7d(0x30d)]();}[_0x30d5ae(0x304)](){const _0x44fc00=_0x30d5ae;super[_0x44fc00(0x304)](),this['_clearOtherTimers'][_0x44fc00(0x333)]((_0x3c617b,_0x208e32)=>this['_removeClearOtherTimer'](_0x208e32)),this[_0x44fc00(0x20b)]&&window[_0x44fc00(0x329)](this['_heartbeatTimer']);}[_0x30d5ae(0x244)](_0x3d7ba6){const _0x41772d=_0x30d5ae;return this['_ensureSubject'](_0x3d7ba6)[_0x41772d(0x27e)](_0x4a33f0());}[_0x30d5ae(0x27c)](_0x10d56b){const _0x4e8464=_0x30d5ae;this[_0x4e8464(0x258)][_0x4e8464(0x35a)]===0x0&&this[_0x4e8464(0x247)](),this[_0x4e8464(0x258)][_0x4e8464(0x1e8)](_0x10d56b),this[_0x4e8464(0x353)]({'type':0x0,'memberID':this[_0x4e8464(0x1ea)],'unitIDs':[_0x10d56b],'isForwarded':!0x1});}['disposeUnit'](_0x3be7b6){const _0x5d31e5=_0x30d5ae;this[_0x5d31e5(0x258)][_0x5d31e5(0x2ba)](_0x3be7b6),this['_selfUnitIDs']['size']===0x0&&this[_0x5d31e5(0x20b)]&&window[_0x5d31e5(0x329)](this[_0x5d31e5(0x20b)]);}[_0x30d5ae(0x30d)](){const _0x2d1b64=_0x30d5ae;this[_0x2d1b64(0x3a2)](_0x31bc29(_0x533b07(window,'storage')[_0x2d1b64(0x21b)](_0x3f3758=>{const _0x86f9f4=_0x2d1b64;if(_0x3f3758[_0x86f9f4(0x26c)]!==It||!_0x3f3758[_0x86f9f4(0x1fa)])return;const _0x5c8501=JSON[_0x86f9f4(0x394)](_0x3f3758[_0x86f9f4(0x1fa)]);this[_0x86f9f4(0x1b2)](_0x5c8501);}))),window[_0x2d1b64(0x250)](_0x2d1b64(0x1d0),()=>this[_0x2d1b64(0x353)]({'type':0x1,'memberID':this[_0x2d1b64(0x1ea)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x30d5ae(0x1b2)](_0x339909){const _0x15cf42=_0x30d5ae;switch(_0x339909[_0x15cf42(0x2a5)]){case 0x0:this[_0x15cf42(0x1d1)](_0x339909);break;case 0x1:this[_0x15cf42(0x275)](_0x339909);break;case 0x2:this[_0x15cf42(0x310)](_0x339909);break;}}[_0x30d5ae(0x1d1)](_0x51e86e){const _0x48337d=_0x30d5ae,{unitIDs:_0x5d1da6,memberID:_0x296299,isForwarded:_0x20057f}=_0x51e86e;_0x5d1da6[_0x48337d(0x333)](_0xe0d2b9=>{const _0xc3b99a=_0x48337d;if(!_0x20057f&&this[_0xc3b99a(0x3b2)]['has'](_0xe0d2b9)&&this[_0xc3b99a(0x205)](_0xe0d2b9)[_0xc3b99a(0x32e)](_0x5ed75f[_0xc3b99a(0x217)]),!this[_0xc3b99a(0x3b2)][_0xc3b99a(0x1a1)](_0xe0d2b9)||!this['_unitOnClients'][_0xc3b99a(0x2e1)](_0xe0d2b9)['has'](_0x296299)){const _0x4176c1=this[_0xc3b99a(0x3b2)][_0xc3b99a(0x2e1)](_0xe0d2b9)||new Set();_0x4176c1[_0xc3b99a(0x1e8)](_0x296299),this[_0xc3b99a(0x3b2)][_0xc3b99a(0x2f6)](_0xe0d2b9,_0x4176c1),this[_0xc3b99a(0x284)](_0x296299);}}),_0x20057f||this[_0x48337d(0x353)]({'type':0x0,'memberID':this[_0x48337d(0x1ea)],'unitIDs':[...this[_0x48337d(0x258)]],'isForwarded':!0x0});}[_0x30d5ae(0x284)](_0x96af49){const _0x5e4ad6=_0x30d5ae;this[_0x5e4ad6(0x1c1)](_0x96af49);const _0x14b894=window['setTimeout'](()=>{const _0x14bbf1=_0x5e4ad6;this[_0x14bbf1(0x3b2)]['forEach'](_0x1a7eba=>{const _0x153fb9=_0x14bbf1;_0x1a7eba[_0x153fb9(0x2ba)](_0x96af49);});},St*0x2);this[_0x5e4ad6(0x33d)][_0x5e4ad6(0x2f6)](_0x96af49,_0x14b894);}[_0x30d5ae(0x1c1)](_0x568db6){const _0x463cc6=_0x30d5ae;if(this[_0x463cc6(0x33d)][_0x463cc6(0x1a1)](_0x568db6)){const _0x550e04=this[_0x463cc6(0x33d)][_0x463cc6(0x2e1)](_0x568db6);_0x550e04&&window[_0x463cc6(0x2f4)](_0x550e04),this[_0x463cc6(0x33d)][_0x463cc6(0x2f6)](_0x568db6,null);}}[_0x30d5ae(0x275)](_0x3dce6a){const _0x12a7fe=_0x30d5ae,{memberID:_0x4a40e5,unitIDs:_0x4c37a2}=_0x3dce6a;_0x4c37a2['forEach'](_0xfb3beb=>{const _0x1edaab=_0x23c8;var _0x167f00;const _0x2d20ff=this[_0x1edaab(0x3b2)][_0x1edaab(0x2e1)](_0xfb3beb);_0x2d20ff&&(_0x2d20ff[_0x1edaab(0x2ba)](_0x4a40e5),(_0x167f00=this[_0x1edaab(0x205)](_0xfb3beb))==null||_0x167f00[_0x1edaab(0x32e)](_0x2d20ff[_0x1edaab(0x35a)]===0x0?_0x5ed75f[_0x1edaab(0x31f)]:_0x5ed75f['OTHER_CLIENTS_EDITING']));}),this[_0x12a7fe(0x1c1)](_0x4a40e5);}['_handleHeartbeatEvent'](_0x594fb1){const _0x52227e=_0x30d5ae;this[_0x52227e(0x284)](_0x594fb1['memberID']);}['_send'](_0x1512b2){const _0x29f594=_0x30d5ae;localStorage['setItem'](It,JSON[_0x29f594(0x1f8)](_0x1512b2));}['_scheduleHeartbeat'](){const _0x12ad1e=_0x30d5ae;this[_0x12ad1e(0x20b)]=window['setInterval'](()=>{const _0x3e3b4f=_0x12ad1e;this[_0x3e3b4f(0x353)]({'type':0x2,'memberID':this[_0x3e3b4f(0x1ea)]});},St);}['_ensureSubject'](_0xaf5638){const _0x1a8b13=_0x30d5ae;return this[_0x1a8b13(0x206)]['has'](_0xaf5638)||this['_unitStatus'][_0x1a8b13(0x2f6)](_0xaf5638,new _0x2eea28(_0x5ed75f[_0x1a8b13(0x31f)])),this[_0x1a8b13(0x206)]['get'](_0xaf5638);}}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 _0x36542c=_0x4dd1;(function(_0x469b09,_0x3ff677){const _0x564d83=_0x4dd1,_0x37edb7=_0x469b09();while(!![]){try{const _0x2c53a5=parseInt(_0x564d83(0x2e3))/0x1+-parseInt(_0x564d83(0x2e8))/0x2*(-parseInt(_0x564d83(0x1cd))/0x3)+parseInt(_0x564d83(0x187))/0x4+-parseInt(_0x564d83(0x129))/0x5*(parseInt(_0x564d83(0x130))/0x6)+-parseInt(_0x564d83(0x256))/0x7+parseInt(_0x564d83(0x30e))/0x8+-parseInt(_0x564d83(0x12c))/0x9;if(_0x2c53a5===_0x3ff677)break;else _0x37edb7['push'](_0x37edb7['shift']());}catch(_0x639c27){_0x37edb7['push'](_0x37edb7['shift']());}}}(_0x24c3,0x2dd78));var Yt=Object[_0x36542c(0x22b)],Wt=(_0x22554f,_0x262451,_0x4d28da)=>_0x262451 in _0x22554f?Yt(_0x22554f,_0x262451,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d28da}):_0x22554f[_0x262451]=_0x4d28da,_=(_0x1e7b56,_0x3a7d6e,_0x25b006)=>Wt(_0x1e7b56,typeof _0x3a7d6e!=_0x36542c(0x2d1)?_0x3a7d6e+'':_0x3a7d6e,_0x25b006);import{jsx as _0x2ded1c,jsxs as _0x16fa83}from'react/jsx-runtime';import{CollaborationStatus as _0x23527c,CollaborationSessionService as _0x403187,CollaborationController as _0xeb50a,DataLoaderService as _0x4c8203,MemberService as _0x40b044,SessionStatus as _0x355249,ILocalCacheService as _0x386892,CollaborationUIEventService as _0x5a0b75,CollaborationUIEventId as _0x5b6a2e,DocCollaborationEntity as _0x59bf88,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x289bc7,getLocalCacheKey as _0x2b234a,LOCAL_CACHE_INTERVAL as _0xf2292,LOCAL_CACHE_INTERVAL_KEY as _0x490f83,UniverCollaborationClientPlugin as _0x405f63,CollaborationSocketService as _0x3f9356,DEFAULT_WS_SESSION_TICKET_URL as _0x1745dd,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5e5c8e,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0xaab990,UnitStatus as _0x3e2038}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x1cbe37,IUniverInstanceService as _0x4d0d85,Inject as _0x338b4d,Injector as _0x2c838e,Disposable as _0xc640cc,createIdentifier as _0x3626ec,ILogService as _0x4838cb,ICommandService as _0x344a42,Optional as _0x175102,RxDisposable as _0x2e3ce9,Workbook as _0x4ddd2c,DOC_RANGE_TYPE as _0x584882,debounce as _0x9e9857,Rectangle as _0x2e16f4,DisposableCollection as _0x543d43,toDisposable as _0x6a8bba,UniverInstanceType as _0x11c449,generateRandomId as _0x52eed0,COLORS as _0x1bb289,ColorKit as _0x131f5a,ThemeService as _0x331d79,fromEventSubject as _0x4a08d3,Tools as _0x36941c,CommandType as _0x185fc4,IConfigService as _0x3da9ca,CanceledError as _0x5548aa,isFormulaString as _0x33f895,isFormulaId as _0x57b445,ILocalStorageService as _0x15b36e,DependentOn as _0x3fcff2,Plugin as _0x3eef90,merge as _0x12e663,registerDependencies as _0x238b35,mergeOverrideWithDependencies as _0x10c9d8,touchDependencies as _0x878293}from'@univerjs/core';import{useObservable as _0x34b08a,useDependency as _0x347d2d,IUIPartsService as _0x400226,BuiltInUIPart as _0x27f577,connectInjector as _0x201ff9,IBeforeCloseService as _0x2bbef3,IMessageService as _0x90efad,INotificationService as _0x59af86}from'@univerjs/ui';import{BehaviorSubject as _0x311c05,switchMap as _0x245695,of as _0x5eb303,takeUntil as _0x5427bd,debounceTime as _0x21f33f,Subject as _0x447fde,filter as _0x4479ea,merge as _0x343681,combineLatest as _0x174358,fromEvent as _0x35f93f,shareReplay as _0x48f2bc,mapTo as _0x2a8f2a,distinctUntilChanged as _0x441b5e}from'rxjs';import{Tooltip as _0x153236,clsx as _0x3512bb,MessageType as _0x5d4ed0}from'@univerjs/design';import{useRef as _0x10c6e2,createElement as _0x37d50e,forwardRef as _0x2b3773,useCallback as _0x1c5f7c}from'react';import{IRemoteInstanceService as _0xc83799}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x5ab370,RefRangeService as _0x2b036c,SetSelectionsOperation as _0xe3e116,SheetsSelectionsService as _0x50f7fc,EffectRefRangId as _0xbdbc78,handleIRemoveRow as _0x33c362,handleIRemoveCol as _0x90c53d,handleMoveRange as _0x1630dc,handleInsertRow as _0xabb663,handleInsertRangeMoveRight as _0x30ec30,handleInsertRangeMoveDown as _0x198007,handleInsertCol as _0x667606,handleDeleteRangeMoveUp as _0x4cf62c,handleDeleteRangeMoveLeft as _0x56041b,runRefRangeMutations as _0x5161f8}from'@univerjs/sheets';import{Shape as _0x1e4876,Rect as _0x20c8d4,getColor as _0x4a919b,RegularPolygon as _0x43c252,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x7f58f8,Vector2 as _0x35ebd3,SHEET_VIEWPORT_KEY as _0x2e4a5e,IRenderManagerService as _0x325ffd}from'@univerjs/engine-render';import{HTTPService as _0x5f42ec,ISocketService as _0x1a891b,WebSocketService as _0x566dd2}from'@univerjs/network';import{IDocClipboardService as _0x4f1f12,NodePositionConvertToCursor as _0x1cb209,NodePositionConvertToRectRange as _0x22d440,TEXT_RANGE_LAYER_INDEX as _0x513ae7,SetDocZoomRatioOperation as _0x1e5c3e,DocIMEInputManagerService as _0x40b6fc,DocStateChangeManagerService as _0x2cc006}from'@univerjs/docs-ui';import{IImageIoService as _0x505849}from'@univerjs/drawing';import{ITransformService as _0x20cc24,CollaborationEvent as _0x31f204,isTransformMutationFailure as _0x5aaf2c,isTransformMutationsWithChangesetSuccess as _0x41b3f2,RevisionService as _0x2e162a,ISnapshotServerService as _0x2f7663}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x43ed68,RichTextEditingMutation as _0x14a58c,DocSelectionManagerService as _0x564962,DocSkeletonManagerService as _0x265ea4}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x4a4084,serializeRangeWithSheet as _0x73d1ce,FormulaExecuteStageType as _0x2e6da7,FormulaExecutedStateType as _0x267fe6,SetFormulaCalculationStartMutation as _0x384e02,SetFormulaCalculationNotificationMutation as _0x8dbaaa}from'@univerjs/engine-formula';import{map as _0x59c5bc,filter as _0x283ed0,throttleTime as _0x218010,takeUntil as _0x88348d,switchMap as _0x469c3c}from'rxjs/operators';import{SheetSkeletonManagerService as _0x49f76f,getCoordByCell as _0x504140,getSheetObject as _0x3b0908}from'@univerjs/sheets-ui';function Ge({ref:_0x5ae69d,..._0x537d83}){const _0x20cb19=_0x36542c,{icon:_0x2e55c1,id:_0x7a5981,className:_0x128a89,extend:_0x8dffc4,..._0x317057}=_0x537d83,_0x54508a=(_0x20cb19(0x26a)+_0x7a5981+'\x20'+(_0x128a89||''))[_0x20cb19(0x20e)](),_0x110649=_0x10c6e2('_'+vi());return At(_0x2e55c1,''+_0x7a5981,{'defIds':_0x2e55c1[_0x20cb19(0x11c)],'idSuffix':_0x110649[_0x20cb19(0x333)]},{'ref':_0x5ae69d,'className':_0x54508a,..._0x317057},_0x8dffc4);}function At(_0x484c25,_0x380377,_0x491806,_0x6fec5a,_0x7aee01){const _0x5b68f1=_0x36542c;return _0x37d50e(_0x484c25[_0x5b68f1(0x2a7)],{'key':_0x380377,...gi(_0x484c25,_0x491806,_0x7aee01),..._0x6fec5a},(Ei(_0x484c25,_0x491806)['children']||[])[_0x5b68f1(0x257)]((_0x1c0188,_0x2984e2)=>At(_0x1c0188,_0x380377+'-'+_0x484c25[_0x5b68f1(0x2a7)]+'-'+_0x2984e2,_0x491806,void 0x0,_0x7aee01)));}function gi(_0x136c5f,_0x12be0f,_0x33e5cc){const _0x2a548c=_0x36542c,_0x59048b={..._0x136c5f[_0x2a548c(0x34d)]};_0x33e5cc!=null&&_0x33e5cc[_0x2a548c(0x244)]&&_0x59048b[_0x2a548c(0x169)]===_0x2a548c(0x244)&&(_0x59048b[_0x2a548c(0x169)]=_0x33e5cc['colorChannel1']),_0x136c5f['tag']===_0x2a548c(0x23b)&&_0x59048b['id']&&(_0x59048b['id']=_0x59048b['id']+_0x12be0f[_0x2a548c(0x27d)]),Object['entries'](_0x59048b)[_0x2a548c(0x310)](([_0x283926,_0x4ebd13])=>{const _0x2f2b14=_0x2a548c;_0x283926===_0x2f2b14(0x23b)&&typeof _0x4ebd13==_0x2f2b14(0x289)&&(_0x59048b[_0x283926]=_0x4ebd13[_0x2f2b14(0x2b4)](/url\(#(.*)\)/,'url(#$1'+_0x12be0f[_0x2f2b14(0x27d)]+')'));});const {defIds:_0x30b08b}=_0x12be0f;return!_0x30b08b||_0x30b08b[_0x2a548c(0x125)]===0x0||(_0x136c5f[_0x2a548c(0x2a7)]===_0x2a548c(0x274)&&_0x59048b[_0x2a548c(0x215)]&&(_0x59048b['xlink:href']=_0x59048b['xlink:href']+_0x12be0f[_0x2a548c(0x27d)]),Object[_0x2a548c(0x318)](_0x59048b)['forEach'](([_0x468dbc,_0x4cbd10])=>{const _0x3a7544=_0x2a548c;typeof _0x4cbd10=='string'&&(_0x59048b[_0x468dbc]=_0x4cbd10[_0x3a7544(0x2b4)](/url\(#(.*)\)/,_0x3a7544(0x31b)+_0x12be0f[_0x3a7544(0x27d)]+')'));})),_0x59048b;}function Ei(_0x8f9da1,_0x4757d7){const _0x39a566=_0x36542c;var _0x13b39d;const {defIds:_0x21e95b}=_0x4757d7;return!_0x21e95b||_0x21e95b[_0x39a566(0x125)]===0x0?_0x8f9da1:_0x8f9da1['tag']===_0x39a566(0x303)&&((_0x13b39d=_0x8f9da1[_0x39a566(0x336)])!=null&&_0x13b39d['length'])?{..._0x8f9da1,'children':_0x8f9da1[_0x39a566(0x336)][_0x39a566(0x257)](_0x5df71a=>typeof _0x5df71a[_0x39a566(0x34d)]['id']==_0x39a566(0x289)&&_0x21e95b&&_0x21e95b['includes'](_0x5df71a[_0x39a566(0x34d)]['id'])?{..._0x5df71a,'attrs':{..._0x5df71a[_0x39a566(0x34d)],'id':_0x5df71a['attrs']['id']+_0x4757d7[_0x39a566(0x27d)]}}:_0x5df71a)}:_0x8f9da1;}function vi(){const _0x54f7cd=_0x36542c;return Math['random']()[_0x54f7cd(0x153)](0x24)[_0x54f7cd(0x260)](0x2,0x8);}Ge[_0x36542c(0x2a4)]='UniverIcon';const pi={'tag':_0x36542c(0x1b0),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x36542c(0x2f5),'viewBox':_0x36542c(0x229),'width':'1em','height':_0x36542c(0x18e)},'children':[{'tag':'g','attrs':{'clipPath':_0x36542c(0x29b)},'children':[{'tag':'path','attrs':{'stroke':_0x36542c(0x26c),'d':_0x36542c(0x322),'strokeLinecap':_0x36542c(0x1b6),'strokeLinejoin':_0x36542c(0x1b6),'strokeWidth':1.2}}]},{'tag':_0x36542c(0x303),'attrs':{},'children':[{'tag':_0x36542c(0x1f9),'attrs':{'id':_0x36542c(0x24c)},'children':[{'tag':'path','attrs':{'fill':_0x36542c(0x2c5),'d':_0x36542c(0x331)}}]}]}],'defIds':[_0x36542c(0x24c)]},Pt=_0x2b3773(function(_0x157690,_0x3d2175){const _0x2dd553=_0x36542c;return _0x37d50e(Ge,Object[_0x2dd553(0x1a9)]({},_0x157690,{'id':_0x2dd553(0x250),'ref':_0x3d2175,'icon':pi}));});Pt[_0x36542c(0x2a4)]=_0x36542c(0x2bb);const Oi={'tag':_0x36542c(0x1b0),'attrs':{'xmlns':_0x36542c(0x305),'fill':_0x36542c(0x2f5),'viewBox':_0x36542c(0x29f),'width':_0x36542c(0x18e),'height':_0x36542c(0x18e)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x36542c(0x2e6),'attrs':{'stroke':'currentColor','d':_0x36542c(0x29d),'strokeLinecap':_0x36542c(0x1b6),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x36542c(0x303),'attrs':{},'children':[{'tag':_0x36542c(0x1f9),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x36542c(0x2e6),'attrs':{'fill':'white','d':_0x36542c(0x331),'transform':_0x36542c(0x2d5)}}]}]}],'defIds':[_0x36542c(0x1e8)]},wt=_0x2b3773(function(_0x1978d1,_0x389b9c){const _0x4c65a2=_0x36542c;return _0x37d50e(Ge,Object[_0x4c65a2(0x1a9)]({},_0x1978d1,{'id':_0x4c65a2(0x2f3),'ref':_0x389b9c,'icon':Oi}));});wt[_0x36542c(0x2a4)]=_0x36542c(0x18d);function Ti(_0x380efc){const _0xb1896=_0x36542c;switch(_0x380efc){case _0x23527c[_0xb1896(0x202)]:return _0xb1896(0x156);case _0x23527c[_0xb1896(0x1f4)]:return _0xb1896(0x127);case _0x23527c[_0xb1896(0x268)]:return'collabStatus.fetchMiss';case _0x23527c[_0xb1896(0x277)]:return'collabStatus.notCollab';case _0x23527c['AWAITING']:case _0x23527c[_0xb1896(0x2db)]:return _0xb1896(0x239);case _0x23527c[_0xb1896(0x164)]:case _0x23527c[_0xb1896(0x30f)]:return _0xb1896(0x1fa);}}function Ci(_0x101286){const _0x47609f=_0x36542c,{status$:_0x46c7d5}=_0x101286,_0x1e3f66=_0x34b08a(_0x46c7d5,_0x23527c[_0x47609f(0x277)]),_0x387b61=_0x347d2d(_0x1cbe37),_0x2a591d=_0x347d2d(_0x403187),_0x308a86=_0x1e3f66!==_0x23527c[_0x47609f(0x202)],_0x4a9f3f=_0x387b61['t'](Ti(_0x1e3f66)),_0x1d7a3a=_0x308a86?_0x2ded1c(wt,{}):_0x2ded1c(Pt,{}),_0x5eb4d7=_0x1c5f7c(()=>{_0x308a86||_0x2a591d['reconnect']();},[_0x308a86,_0x2a591d]);function _0x401a98(){const _0x38eb0c=_0x47609f;return _0x16fa83('div',{'className':_0x38eb0c(0x261),'onClick':_0x5eb4d7,'children':[_0x2ded1c(_0x38eb0c(0x1b4),{'className':_0x3512bb(_0x38eb0c(0x32a),{'univer-text-green-500':_0x308a86,'univer-text-red-500':!_0x308a86}),'children':_0x1d7a3a}),_0x2ded1c(_0x38eb0c(0x1b4),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x4a9f3f})]});}return _0x308a86?_0x401a98():_0x2ded1c(_0x153236,{'title':_0x387b61['t'](_0x47609f(0x208)),'children':_0x401a98()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0x4542c0,_0x3151b8,_0x4674a9,_0x2d1b21)=>{const _0x58968e=_0x36542c;for(var _0x57f90e=_0x2d1b21>0x1?void 0x0:_0x2d1b21?Ri(_0x3151b8,_0x4674a9):_0x3151b8,_0x49d9a7=_0x4542c0[_0x58968e(0x125)]-0x1,_0x42b88d;_0x49d9a7>=0x0;_0x49d9a7--)(_0x42b88d=_0x4542c0[_0x49d9a7])&&(_0x57f90e=_0x42b88d(_0x57f90e)||_0x57f90e);return _0x57f90e;},se=(_0x2181f0,_0x3b1b1b)=>(_0x14b353,_0x5e5aca)=>_0x3b1b1b(_0x14b353,_0x5e5aca,_0x2181f0);let ae=class extends _0xc640cc{constructor(_0x2c31ed,_0x4f4182,_0x317ce4,_0xcfbe2f){const _0x2b3fa0=_0x36542c;super(),_(this,'_status$',new _0x311c05(_0x23527c[_0x2b3fa0(0x277)])),(this['_univerInstanceService']=_0x2c31ed,this['_injector']=_0x4f4182,this[_0x2b3fa0(0x183)]=_0x317ce4,this[_0x2b3fa0(0x193)]=_0xcfbe2f,this[_0x2b3fa0(0x253)](),this['_initStatusListener']());}[_0x36542c(0x11b)](){const _0xbc5122=_0x36542c;this[_0xbc5122(0x2e0)](this[_0xbc5122(0x2c2)]['focused$'][_0xbc5122(0x124)](_0x245695(()=>{const _0x47792e=_0xbc5122,_0x19a591=this['_univerInstanceService'][_0x47792e(0x1d2)]();return _0x19a591?this[_0x47792e(0x183)]['getCollabEntity$'](_0x19a591[_0x47792e(0x123)]()):_0x5eb303(null);}),_0x245695(_0xc6c925=>_0xc6c925?_0xc6c925[_0xbc5122(0x306)]:_0x5eb303(_0x23527c['NOT_COLLAB'])))[_0xbc5122(0x1cc)](_0x431b9d=>{const _0x5bd12a=_0xbc5122;this['_status$'][_0x5bd12a(0x21f)](_0x431b9d);}));}[_0x36542c(0x253)](){const _0x30b59a=_0x36542c;this[_0x30b59a(0x2e0)](this[_0x30b59a(0x193)][_0x30b59a(0x190)](_0x27f577['HEADER_MENU'],()=>_0x201ff9(Ni({'status$':this[_0x30b59a(0x241)][_0x30b59a(0x231)]()}),this[_0x30b59a(0x207)])));}};ae=Di([se(0x0,_0x4d0d85),se(0x1,_0x338b4d(_0x2c838e)),se(0x2,_0x338b4d(_0xeb50a)),se(0x3,_0x400226)],ae);function Ni(_0x3b82c7){const {status$:_0x253590}=_0x3b82c7;return function(){return _0x2ded1c(Ci,{'status$':_0x253590});};}const yt=_0x3626ec('uni.network.url-service');var bi=Object[_0x36542c(0x281)],Li=(_0x5dd554,_0x27285c,_0x53b3fc,_0x363b5a)=>{const _0x311e22=_0x36542c;for(var _0x2f2929=_0x363b5a>0x1?void 0x0:_0x363b5a?bi(_0x27285c,_0x53b3fc):_0x27285c,_0x434116=_0x5dd554[_0x311e22(0x125)]-0x1,_0x198645;_0x434116>=0x0;_0x434116--)(_0x198645=_0x5dd554[_0x434116])&&(_0x2f2929=_0x198645(_0x2f2929)||_0x2f2929);return _0x2f2929;},K=(_0xc1c7b6,_0x1558f1)=>(_0x368977,_0x452404)=>_0x1558f1(_0x368977,_0x452404,_0xc1c7b6);let ce=class extends _0x2e3ce9{constructor(_0x3996ba,_0x316ae7,_0xdc80a6,_0x6d1668,_0x419999){const _0x671df8=_0x36542c;super(),this[_0x671df8(0x233)]=_0x3996ba,this['_logService']=_0x316ae7,this[_0x671df8(0x14b)]=_0xdc80a6,this['_dataLoaderService']=_0x6d1668,_0x419999?_0x419999==null||_0x419999[_0x671df8(0x264)]()[_0x671df8(0x2de)](()=>this[_0x671df8(0x2f7)]()):(this[_0x671df8(0x14d)][_0x671df8(0x1bc)](_0x671df8(0x126),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x671df8(0x2f7)]());}async[_0x36542c(0x2f7)](){const _0x244851=_0x36542c,_0x631a07=this['_urlService']['getParam'](_0x244851(0x33c)),_0x1b6e21=this[_0x244851(0x233)][_0x244851(0x12f)]('type'),_0x198bda=this[_0x244851(0x233)][_0x244851(0x12f)]('subunit');if(!_0x631a07||!_0x1b6e21){this['_logService'][_0x244851(0x1bc)](_0x244851(0x126),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x21d1ba=await this[_0x244851(0x1b1)]['loadUnit'](_0x631a07,Number(_0x1b6e21),_0x198bda);_0x21d1ba&&_0x21d1ba instanceof _0x4ddd2c&&this[_0x244851(0x1b3)](_0x21d1ba);}async[_0x36542c(0x1b3)](_0x169fb9){const _0x527794=_0x36542c;await this['_updateSubUnitFromURLParams'](_0x169fb9),_0x169fb9['activeSheet$']['pipe'](_0x5427bd(this[_0x527794(0x272)]))[_0x527794(0x1cc)](_0x1f8afd=>{const _0x1ae193=_0x527794;_0x1f8afd&&this[_0x1ae193(0x23f)](_0x1f8afd);}),this[_0x527794(0x233)]['urlChange$'][_0x527794(0x124)](_0x5427bd(this[_0x527794(0x272)]))[_0x527794(0x1cc)](()=>this['_updateSubUnitFromURLParams'](_0x169fb9));}['_updateURLWithCurrentState'](_0x4c7d79,_0x181a7d=!0x1){const _0x5bfae1=_0x36542c,_0x43860b=this[_0x5bfae1(0x233)][_0x5bfae1(0x12f)](_0x5bfae1(0x22c));_0x4c7d79['getSheetId']()!==_0x43860b&&this[_0x5bfae1(0x233)][_0x5bfae1(0x291)](_0x5bfae1(0x22c),_0x4c7d79[_0x5bfae1(0x1d7)](),_0x181a7d);}async['_updateSubUnitFromURLParams'](_0x45ba4c){const _0x4b628b=_0x36542c;var _0x3c85c8;const _0x4057b9=this[_0x4b628b(0x233)]['getParam'](_0x4b628b(0x22c));if(!_0x4057b9||!_0x45ba4c[_0x4b628b(0x316)](_0x4057b9)){const _0x55495a=_0x45ba4c[_0x4b628b(0x2cd)]()[0x0],_0x505edb=_0x45ba4c[_0x4b628b(0x316)](_0x55495a);if(!_0x505edb)return;this[_0x4b628b(0x23f)](_0x505edb,!0x0),await this['_commandService'][_0x4b628b(0x302)](_0x5ab370['id'],{'unitId':_0x45ba4c[_0x4b628b(0x123)](),'subUnitId':_0x55495a});return;}((_0x3c85c8=_0x45ba4c[_0x4b628b(0x1fc)]())==null?void 0x0:_0x3c85c8[_0x4b628b(0x1d7)]())!==_0x4057b9&&await this[_0x4b628b(0x14b)][_0x4b628b(0x302)](_0x5ab370['id'],{'unitId':_0x45ba4c[_0x4b628b(0x123)](),'subUnitId':_0x4057b9});}};ce=Li([K(0x0,yt),K(0x1,_0x4838cb),K(0x2,_0x344a42),K(0x3,_0x338b4d(_0x4c8203)),K(0x4,_0x175102(_0xc83799))],ce);var Ui=Object['getOwnPropertyDescriptor'],Mi=(_0x51406e,_0x5aaf50,_0x724836,_0x3ed0af)=>{for(var _0x1fa4c1=_0x3ed0af>0x1?void 0x0:_0x3ed0af?Ui(_0x5aaf50,_0x724836):_0x5aaf50,_0x4b97a4=_0x51406e['length']-0x1,_0xbca35b;_0x4b97a4>=0x0;_0x4b97a4--)(_0xbca35b=_0x51406e[_0x4b97a4])&&(_0x1fa4c1=_0xbca35b(_0x1fa4c1)||_0x1fa4c1);return _0x1fa4c1;},rt=(_0x208bb6,_0x111f6c)=>(_0x3353e8,_0x3ba352)=>_0x111f6c(_0x3353e8,_0x3ba352,_0x208bb6);let $e=class extends _0x2e3ce9{constructor(_0x3f6f02,_0x3bb9fb){const _0x6c2081=_0x36542c;super(),this[_0x6c2081(0x1c4)]=_0x3f6f02,this['_imageIoService']=_0x3bb9fb,this[_0x6c2081(0x2f7)]();}[_0x36542c(0x2f7)](){const _0x32cd56=_0x36542c,_0xbeafff=this;this[_0x32cd56(0x2e0)](this['_docClipboardService'][_0x32cd56(0x1e7)]({'onBeforePasteImage':async _0x4f8da0=>{const _0x3fae16=_0x32cd56,_0x1fd6dc=await _0xbeafff['_imageIoService'][_0x3fae16(0x11d)](_0x4f8da0);return _0x1fd6dc?{'source':_0x1fd6dc[_0x3fae16(0x1a7)],'imageSourceType':_0x1fd6dc['imageSourceType']}:null;}}));}};$e=Mi([rt(0x0,_0x4f1f12),rt(0x1,_0x505849)],$e);const ot=[_0x36542c(0x327),_0x36542c(0x28f),'green.600',_0x36542c(0x31a),_0x36542c(0x113),_0x36542c(0x1e2)];class Ke extends _0xc640cc{constructor(){const _0xb23bfb=_0x36542c;super(...arguments),_(this,_0xb23bfb(0x2a6),new Map()),_(this,_0xb23bfb(0x2c3),0x0);}['assignAColorForMemberID'](_0xac646e){const _0x1dc201=_0x36542c;if(this[_0x1dc201(0x2a6)][_0x1dc201(0x16f)](_0xac646e))return this[_0x1dc201(0x2a6)][_0x1dc201(0x194)](_0xac646e);const _0x48fb72=ot[this[_0x1dc201(0x2c3)]];return this[_0x1dc201(0x2c3)]=(this['_colorIndex']+0x1)%ot[_0x1dc201(0x125)],this[_0x1dc201(0x2a6)][_0x1dc201(0x25a)](_0xac646e,_0x48fb72),_0x48fb72;}}function $t(_0x5420e5){const _0x3d53f2=_0x36542c;let _0x3dffa9='';for(const _0x438db6 of _0x5420e5){const {startOffset:_0xab6d73,endOffset:_0x1309d2,isActive:_0x539504,rangeType:_0x290224,segmentId:_0x5250f0,segmentPage:_0x3664ec}=_0x438db6;_0x3dffa9[_0x3d53f2(0x125)]&&(_0x3dffa9+=','),_0x3dffa9+=_0xab6d73+':'+_0x1309d2+':'+(_0x539504?'1':'0')+':'+_0x290224+':'+_0x5250f0+':'+_0x3664ec;}return _0x3dffa9;}function Ai(_0x10ce74){const _0x10cbb0=_0x36542c,_0xec2957=_0x10ce74['split'](','),_0x2d6841=[];for(const _0x2a4046 of _0xec2957){const [_0x4d1a76,_0x1046a0,_0x476537,_0x43e014,_0x2ce495,_0x44c87c]=_0x2a4046['split'](':');_0x2d6841[_0x10cbb0(0x133)]({'startOffset':Number(_0x4d1a76),'endOffset':Number(_0x1046a0),'collapsed':_0x4d1a76===_0x1046a0,'isActive':_0x476537==='1','rangeType':_0x43e014===_0x584882['TEXT']?_0x584882['TEXT']:_0x584882[_0x10cbb0(0x2d2)],'segmentId':typeof _0x2ce495==_0x10cbb0(0x289)?String(_0x2ce495):'','segmentPage':Number(_0x44c87c!=null?_0x44c87c:-0x1)});}return _0x2d6841['some'](_0x14e93d=>_0x14e93d['isActive'])||(_0x2d6841[0x0][_0x10cbb0(0x136)]=!0x0),_0x2d6841;}class ze extends _0x2e3ce9{constructor(){const _0x139573=_0x36542c;super(...arguments),_(this,_0x139573(0x14a),new _0x311c05(null)),_(this,'collabCursorState$',this[_0x139573(0x14a)][_0x139573(0x231)]());}[_0x36542c(0x162)](_0x20ae31){const _0x380ac5=_0x36542c,{unitID:_0xebbbeb,memberID:_0x34dc6c,textRanges:_0x3e5ae8}=_0x20ae31,_0x38e633=$t(_0x3e5ae8);if(_0x38e633==='')return;const _0x587429={'unitID':_0xebbbeb,'memberID':_0x34dc6c,'selection':_0x38e633};this[_0x380ac5(0x14a)][_0x380ac5(0x21f)](_0x587429);}}var Pi=Object[_0x36542c(0x281)],wi=(_0x5eb331,_0x3568c,_0x217d5f,_0x1c837b)=>{for(var _0x128dea=_0x1c837b>0x1?void 0x0:_0x1c837b?Pi(_0x3568c,_0x217d5f):_0x3568c,_0x4597c6=_0x5eb331['length']-0x1,_0x11f819;_0x4597c6>=0x0;_0x4597c6--)(_0x11f819=_0x5eb331[_0x4597c6])&&(_0x128dea=_0x11f819(_0x128dea)||_0x128dea);return _0x128dea;},A=(_0x442078,_0x38621)=>(_0x422f13,_0xee6b12)=>_0x38621(_0x422f13,_0xee6b12,_0x442078);const yi=0x12c,$i=0x64;let xe=class extends _0x2e3ce9{constructor(_0x4f94d3,_0x5c63b2,_0x8626e0,_0x550460,_0x2e7f80,_0x5568b5,_0x3e4be5,_0x1b678a,_0x5c2c34){const _0x156cce=_0x36542c;super(),_(this,_0x156cce(0x270),!0x1),_(this,_0x156cce(0x2f7),!0x1),_(this,_0x156cce(0x2ed),new _0x311c05(new Map())),_(this,_0x156cce(0x15f),this[_0x156cce(0x2ed)][_0x156cce(0x231)]()),_(this,_0x156cce(0x1ce),new _0x311c05([])),_(this,'roomMembers$',this['_roomMembers$']['pipe'](_0x21f33f(yi))),_(this,_0x156cce(0x26d),_0x9e9857(_0x57c040=>{const _0x13ad79=_0x156cce,_0xfc9177={'eventID':_0x31f204[_0x13ad79(0x26e)],'data':{'unitID':this[_0x13ad79(0x26b)],'memberID':this['_session']['getMemberID'](),'selection':$t(_0x57c040)}};this[_0x13ad79(0x329)][_0x13ad79(0x2fd)](_0xfc9177,this[_0x13ad79(0x26b)]);},$i)),(this[_0x156cce(0x26b)]=_0x4f94d3,this[_0x156cce(0x329)]=_0x5c63b2,this['_injector']=_0x8626e0,this['_colorAssignService']=_0x550460,this[_0x156cce(0x216)]=_0x2e7f80,this['_syncEditingCollabCursorService']=_0x5568b5,this[_0x156cce(0x2c1)]=_0x3e4be5,this[_0x156cce(0x2c2)]=_0x1b678a,this['_commandService']=_0x5c2c34);}get[_0x36542c(0x1a1)](){const _0x149351=_0x36542c;return this[_0x149351(0x2ed)][_0x149351(0x185)]();}get[_0x36542c(0x2af)](){const _0x2ca07e=_0x36542c;return this[_0x2ca07e(0x1ce)][_0x2ca07e(0x185)]();}['dispose'](){const _0x2d2c12=_0x36542c;super[_0x2d2c12(0x1f7)](),this[_0x2d2c12(0x2ed)]['next'](new Map()),this[_0x2d2c12(0x2ed)][_0x2d2c12(0x31f)](),this[_0x2d2c12(0x1ce)]['next']([]),this[_0x2d2c12(0x1ce)][_0x2d2c12(0x31f)]();}['init'](){const _0x3cf368=_0x36542c;this[_0x3cf368(0x2f7)]||(this[_0x3cf368(0x2f7)]=!0x0,this[_0x3cf368(0x329)][_0x3cf368(0x165)][_0x3cf368(0x124)](_0x5427bd(this['dispose$']))[_0x3cf368(0x1cc)](_0x753345=>{const _0x1c1fb7=_0x3cf368;_0x753345===_0x355249[_0x1c1fb7(0x27f)]?this['_toggleOnline']():this[_0x1c1fb7(0x20d)]();}),this[_0x3cf368(0x329)][_0x3cf368(0x34f)]['pipe'](_0x5427bd(this[_0x3cf368(0x272)]))[_0x3cf368(0x1cc)](_0x27197c=>{const _0x355eeb=_0x3cf368,_0x351ea7=_0x27197c[_0x355eeb(0x27a)];_0x351ea7===_0x31f204[_0x355eeb(0x26e)]&&this[_0x355eeb(0x1b2)](_0x27197c),_0x351ea7===_0x31f204[_0x355eeb(0x144)]&&this[_0x355eeb(0x171)](_0x27197c);}),this['disposeWithMe'](this['_commandService'][_0x3cf368(0x19e)](_0x1b0d09=>{const _0xe682ad=_0x3cf368,_0x29aa4a=_0x1b0d09[_0xe682ad(0x335)];_0x29aa4a!=null&&this[_0xe682ad(0x270)]&&_0x1b0d09['id']===_0x43ed68['id']&&_0x29aa4a[_0xe682ad(0x20a)]===this[_0xe682ad(0x26b)]&&_0x29aa4a[_0xe682ad(0x184)]===!0x1&&_0x29aa4a[_0xe682ad(0x206)][_0xe682ad(0x125)]>0x0&&this[_0xe682ad(0x26d)](_0x29aa4a[_0xe682ad(0x206)]);})),this[_0x3cf368(0x11f)][_0x3cf368(0x13b)]['pipe'](_0x5427bd(this[_0x3cf368(0x272)]))[_0x3cf368(0x1cc)](_0x561421=>{const _0x4a2109=_0x3cf368;if((_0x561421==null?void 0x0:_0x561421[_0x4a2109(0x26b)])!==this[_0x4a2109(0x26b)])return;const _0x5aefc5={'eventID':_0x31f204['UPDATE_CURSOR'],'data':_0x561421};this[_0x4a2109(0x1b2)](_0x5aefc5);}),this[_0x3cf368(0x2e0)](this['_commandService'][_0x3cf368(0x19e)](_0x2dd2b9=>{const _0x53736d=_0x3cf368;if(_0x2dd2b9[_0x53736d(0x335)]==null)return;const _0x49d7b8=_0x2dd2b9['params'];if(_0x2dd2b9['id']!==_0x14a58c['id']||_0x49d7b8[_0x53736d(0x20a)]!==this[_0x53736d(0x26b)])return;const _0x1a04d3={'id':_0x53736d(0x33f),'params':_0x49d7b8},_0x4d2b7e=this[_0x53736d(0x1a1)];for(const [_0x3968da,_0x344112]of _0x4d2b7e){const _0x167c70={'id':_0x53736d(0x33f),'params':{'unitId':this[_0x53736d(0x26b)],'actions':null,'textRanges':_0x344112[_0x53736d(0x206)]}},_0x3c35eb=this[_0x53736d(0x2c1)][_0x53736d(0x2f4)](_0x1a04d3,_0x167c70,!0x1);if(_0x5aaf2c(_0x3c35eb))throw _0x3c35eb[_0x53736d(0x245)];_0x4d2b7e[_0x53736d(0x25a)](_0x3968da,{..._0x344112,'ranges':_0x3c35eb[_0x53736d(0x21e)][_0x53736d(0x335)][_0x53736d(0x340)]});}queueMicrotask(()=>{const _0xea1e66=_0x53736d;this[_0xea1e66(0x2ed)][_0xea1e66(0x21f)](_0x4d2b7e);});})));}[_0x36542c(0x1b2)](_0x48bee1){const _0x1f2985=_0x36542c;var _0x4e4308,_0x40da3d;const {memberID:_0x33ca2a,selection:_0x5d8677}=_0x48bee1[_0x1f2985(0x1c5)],_0x5571e2=Ai(_0x5d8677),_0x174fb2=(_0x40da3d=(_0x4e4308=this[_0x1f2985(0x216)][_0x1f2985(0x2c8)](this[_0x1f2985(0x26b)],_0x33ca2a))==null?void 0x0:_0x4e4308[_0x1f2985(0x182)])!=null?_0x40da3d:'Unknown\x20user',_0x2f1fb3={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x33ca2a),'name':_0x174fb2,'ranges':_0x5571e2},_0xeb3002=this[_0x1f2985(0x1a1)];_0xeb3002[_0x1f2985(0x25a)](_0x33ca2a,_0x2f1fb3),this['_cursorInfo$'][_0x1f2985(0x21f)](_0xeb3002);}[_0x36542c(0x171)](_0x466f4b){const _0x35202a=_0x36542c,{memberID:_0x10f746}=_0x466f4b['data'],_0x25ec75=this[_0x35202a(0x1a1)];_0x25ec75[_0x35202a(0x158)](_0x10f746),this[_0x35202a(0x2ed)][_0x35202a(0x21f)](_0x25ec75);}[_0x36542c(0x150)](){const _0x28ce5f=_0x36542c;var _0x20f15d;if(this['_online']=!0x0,((_0x20f15d=this[_0x28ce5f(0x2c2)][_0x28ce5f(0x1d2)]())==null?void 0x0:_0x20f15d[_0x28ce5f(0x123)]())!==this[_0x28ce5f(0x26b)])return;const _0x41e328=this[_0x28ce5f(0x207)]['get'](_0x564962)[_0x28ce5f(0x157)]();Array[_0x28ce5f(0x1ec)](_0x41e328)&&_0x41e328[_0x28ce5f(0x125)]>0x0&&this['_updateLocalCursor'](_0x41e328);}[_0x36542c(0x20d)](){const _0xf57940=_0x36542c;this[_0xf57940(0x270)]=!0x1;}};xe=wi([A(0x2,_0x338b4d(_0x2c838e)),A(0x3,_0x338b4d(Ke)),A(0x4,_0x338b4d(_0x40b044)),A(0x5,_0x338b4d(ze)),A(0x6,_0x20cc24),A(0x7,_0x4d0d85),A(0x8,_0x344a42)],xe);var xi=Object[_0x36542c(0x281)],Bi=(_0x46060f,_0x213ccf,_0x582c93,_0x3e0137)=>{const _0x8fc710=_0x36542c;for(var _0xefdb66=_0x3e0137>0x1?void 0x0:_0x3e0137?xi(_0x213ccf,_0x582c93):_0x213ccf,_0x2c22ec=_0x46060f[_0x8fc710(0x125)]-0x1,_0x17532f;_0x2c22ec>=0x0;_0x2c22ec--)(_0x17532f=_0x46060f[_0x2c22ec])&&(_0xefdb66=_0x17532f(_0xefdb66)||_0xefdb66);return _0xefdb66;},B=(_0x1f7a4b,_0x1ab496)=>(_0x523073,_0xb0d34c)=>_0x1ab496(_0x523073,_0xb0d34c,_0x1f7a4b);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x4c95d5=[],_0x346af6=!0x1;return _0x325dd8=>{_0x4c95d5['push'](_0x325dd8),_0x346af6||(_0x346af6=!0x0,setTimeout(()=>{const _0x525a46=_0x4dd1;_0x4c95d5[_0x525a46(0x310)](_0x56bfd9=>_0x56bfd9()),_0x4c95d5=[],_0x346af6=!0x1;}));};};let Be=class extends _0x2e3ce9{constructor(_0xc5f4f4,_0x316aef,_0x36f03e,_0xc23f38,_0x239843,_0x3faebe,_0x2e79c0,_0x1af39a){const _0x4dce9a=_0x36542c;super(),_(this,_0x4dce9a(0x270),!0x1),_(this,_0x4dce9a(0x2f7),!0x1),_(this,'_cursorInfo$',new _0x311c05(new Map())),_(this,'cursorInfo$',this[_0x4dce9a(0x2ed)][_0x4dce9a(0x231)]()),_(this,'_roomMembers$',new _0x311c05([])),_(this,'roomMembers$',this[_0x4dce9a(0x1ce)][_0x4dce9a(0x124)](_0x21f33f(Fi))),_(this,_0x4dce9a(0x26d),_0x9e9857((_0xae040b,_0x2b2f5a)=>{const _0x193f84=_0x4dce9a,_0xe3edc={'eventID':_0x31f204[_0x193f84(0x26e)],'data':{'unitID':this[_0x193f84(0x26b)],'memberID':this['_session']['getMemberID'](),'selection':_0x73d1ce(_0xae040b,_0x2b2f5a[_0x193f84(0x243)])}};this[_0x193f84(0x329)][_0x193f84(0x2fd)](_0xe3edc,this[_0x193f84(0x26b)]);},ki)),(this[_0x4dce9a(0x26b)]=_0xc5f4f4,this[_0x4dce9a(0x329)]=_0x316aef,this[_0x4dce9a(0x207)]=_0x36f03e,this['_colorAssignService']=_0xc23f38,this[_0x4dce9a(0x216)]=_0x239843,this[_0x4dce9a(0x2c2)]=_0x3faebe,this[_0x4dce9a(0x14b)]=_0x2e79c0,this['_refRangeService']=_0x1af39a);}get[_0x36542c(0x1a1)](){const _0x122ca1=_0x36542c;return this[_0x122ca1(0x2ed)][_0x122ca1(0x185)]();}get[_0x36542c(0x2af)](){const _0x2d4880=_0x36542c;return this['_roomMembers$'][_0x2d4880(0x185)]();}[_0x36542c(0x1f7)](){const _0x142454=_0x36542c;super[_0x142454(0x1f7)](),this[_0x142454(0x2ed)][_0x142454(0x21f)](new Map()),this[_0x142454(0x2ed)][_0x142454(0x31f)](),this['_roomMembers$'][_0x142454(0x21f)]([]),this[_0x142454(0x1ce)][_0x142454(0x31f)]();}[_0x36542c(0x15d)](){const _0x1d72a8=_0x36542c;this[_0x1d72a8(0x2f7)]||(this[_0x1d72a8(0x2f7)]=!0x0,this[_0x1d72a8(0x329)][_0x1d72a8(0x165)][_0x1d72a8(0x124)](_0x5427bd(this[_0x1d72a8(0x272)]))[_0x1d72a8(0x1cc)](_0x2b19f5=>{const _0x1a7459=_0x1d72a8;_0x2b19f5===_0x355249[_0x1a7459(0x27f)]?this[_0x1a7459(0x150)]():this[_0x1a7459(0x20d)]();}),this[_0x1d72a8(0x329)][_0x1d72a8(0x34f)]['pipe'](_0x5427bd(this[_0x1d72a8(0x272)]))[_0x1d72a8(0x1cc)](_0x2d1e2a=>{const _0x23ad70=_0x1d72a8,_0x26c877=_0x2d1e2a[_0x23ad70(0x27a)];_0x26c877===_0x31f204[_0x23ad70(0x26e)]&&this[_0x23ad70(0x1b2)](_0x2d1e2a),_0x26c877===_0x31f204[_0x23ad70(0x144)]&&this[_0x23ad70(0x171)](_0x2d1e2a);}),this['_onRefRangeChange'](),this[_0x1d72a8(0x2e0)](this[_0x1d72a8(0x14b)]['onCommandExecuted'](_0x4cc280=>{const _0x5cbce6=_0x1d72a8;if(this['_online']&&_0x4cc280['id']===_0xe3e116['id']&&_0x4cc280[_0x5cbce6(0x335)][_0x5cbce6(0x20a)]===this['unitID']){const _0x3ca86a=_0x4cc280[_0x5cbce6(0x335)];this['_updateLocalCursor'](_0x3ca86a[_0x5cbce6(0x1a5)],_0x3ca86a[_0x5cbce6(0x258)][0x0]);}})));}[_0x36542c(0x1b2)](_0xdab638){const _0x57f8ef=_0x36542c;var _0x45545d,_0x470ccd;const {memberID:_0x4aa542,selection:_0x2ade8d}=_0xdab638[_0x57f8ef(0x1c5)],{sheetName:_0x884213,range:_0x37bd20}=_0x4a4084(_0x2ade8d),_0x24f482={'name':(_0x470ccd=(_0x45545d=this[_0x57f8ef(0x216)][_0x57f8ef(0x2c8)](this['unitID'],_0x4aa542))==null?void 0x0:_0x45545d[_0x57f8ef(0x182)])!=null?_0x470ccd:'Unknown\x20user','range':this['_getMergeRange'](_0x884213,_0x37bd20),'sheetID':_0x884213,'color':this[_0x57f8ef(0x2a3)]['assignAColorForMemberID'](_0x4aa542),'selection':_0x2ade8d},_0xbfd0fd=this['cursorInfo'];_0xbfd0fd[_0x57f8ef(0x25a)](_0x4aa542,_0x24f482),this[_0x57f8ef(0x2ed)][_0x57f8ef(0x21f)](_0xbfd0fd);}[_0x36542c(0x171)](_0x84a9b){const _0x3ddff8=_0x36542c,{memberID:_0x217d3a}=_0x84a9b[_0x3ddff8(0x1c5)],_0x34cdd5=this[_0x3ddff8(0x1a1)];_0x34cdd5['delete'](_0x217d3a),this['_cursorInfo$'][_0x3ddff8(0x21f)](_0x34cdd5);}[_0x36542c(0x2b9)](_0xfb5b74,_0x16322c){const _0x450a65=_0x36542c;var _0x341381,_0x20e231;const _0x4cd777=(_0x20e231=(_0x341381=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x450a65(0x26b)]))==null?void 0x0:_0x341381['getSheetBySheetId'](_0xfb5b74))==null?void 0x0:_0x20e231[_0x450a65(0x12a)]();return(_0x4cd777==null?void 0x0:_0x4cd777[_0x450a65(0x2d6)](_0x24152a=>_0x2e16f4['contains'](_0x24152a,_0x16322c)))||_0x16322c;}[_0x36542c(0x2a8)](){const _0x25d219=_0x36542c,_0x1320f9=new _0x543d43(),_0x593025=Hi(),_0x3aaf1f=()=>{const _0x4e8eea=_0x4dd1;_0x1320f9[_0x4e8eea(0x1f7)]();const _0x5c0158=(_0x58a7c1,_0xbd0ddb,_0x1090c6,_0x3d02c6)=>{const _0x5435cd=_0x4e8eea;let _0x53c09a=[];switch(_0x58a7c1['id']){case _0xbdbc78[_0x5435cd(0x1cb)]:{_0x53c09a=_0x56041b(_0x58a7c1,_0x3d02c6);break;}case _0xbdbc78[_0x5435cd(0x151)]:{_0x53c09a=_0x4cf62c(_0x58a7c1,_0x3d02c6);break;}case _0xbdbc78[_0x5435cd(0x25c)]:{_0x53c09a=_0x667606(_0x58a7c1,_0x3d02c6);break;}case _0xbdbc78[_0x5435cd(0x1b5)]:{_0x53c09a=_0x198007(_0x58a7c1,_0x3d02c6);break;}case _0xbdbc78[_0x5435cd(0x249)]:{_0x53c09a=_0x30ec30(_0x58a7c1,_0x3d02c6);break;}case _0xbdbc78[_0x5435cd(0x2ce)]:{_0x53c09a=_0xabb663(_0x58a7c1,_0x3d02c6);break;}case _0xbdbc78[_0x5435cd(0x252)]:{_0x53c09a=_0x1630dc(_0x58a7c1,_0x3d02c6);break;}case _0xbdbc78[_0x5435cd(0x1ac)]:{_0x53c09a=_0x90c53d(_0x58a7c1,_0x3d02c6);break;}case _0xbdbc78[_0x5435cd(0x34a)]:{_0x53c09a=_0x33c362(_0x58a7c1,_0x3d02c6);break;}}const _0x15fb11=_0x5161f8(_0x53c09a,_0x3d02c6),_0x1e3767=this['cursorInfo'][_0x5435cd(0x194)](_0xbd0ddb);if(_0x1e3767&&_0x15fb11){const _0x396660={..._0x1e3767,'range':_0x15fb11};this[_0x5435cd(0x1a1)][_0x5435cd(0x25a)](_0xbd0ddb,_0x396660),_0x593025(()=>{const _0x561e34=_0x5435cd,_0x2958d1=this[_0x561e34(0x23e)]['registerRefRange'](_0x15fb11,_0x2ca8e1=>(_0x2958d1[_0x561e34(0x1f7)](),_0x5c0158(_0x2ca8e1,_0xbd0ddb,_0x1090c6,_0x15fb11)));_0x1320f9[_0x561e34(0x214)](_0x2958d1);});}return{'redos':[],'undos':[]};};this[_0x4e8eea(0x1a1)][_0x4e8eea(0x310)]((_0xb9ec95,_0x101e57)=>{const _0x92197e=_0x4e8eea,{range:_0x1e87e2,sheetID:_0x4af753}=_0xb9ec95,_0x47a298=this[_0x92197e(0x23e)][_0x92197e(0x15c)](_0x1e87e2,_0x3f0cfe=>(_0x47a298[_0x92197e(0x1f7)](),_0x5c0158(_0x3f0cfe,_0x101e57,_0x4af753,_0x1e87e2)));_0x1320f9[_0x92197e(0x214)](_0x47a298);});};this[_0x25d219(0x2e0)](_0x6a8bba(this['_cursorInfo$'][_0x25d219(0x1cc)](()=>{_0x3aaf1f();})));}[_0x36542c(0x150)](){const _0x5c9e39=_0x36542c;var _0x4b72a8,_0x4a9e65;if(this[_0x5c9e39(0x270)]=!0x0,((_0x4b72a8=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x4b72a8['getUnitId']())!==this[_0x5c9e39(0x26b)])return;const _0x35e807=(_0x4a9e65=this[_0x5c9e39(0x207)][_0x5c9e39(0x194)](_0x50f7fc)[_0x5c9e39(0x142)]())==null?void 0x0:_0x4a9e65[0x0],_0xcbd50=this[_0x5c9e39(0x2c2)][_0x5c9e39(0x2d7)](_0x11c449['UNIVER_SHEET'])[_0x5c9e39(0x1fc)]();_0x35e807&&_0xcbd50&&this['_updateLocalCursor'](_0xcbd50[_0x5c9e39(0x1d7)](),_0x35e807);}[_0x36542c(0x20d)](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0x338b4d(_0x2c838e)),B(0x3,_0x338b4d(Ke)),B(0x4,_0x338b4d(_0x40b044)),B(0x5,_0x4d0d85),B(0x6,_0x344a42),B(0x7,_0x338b4d(_0x2b036c))],Be);var Yi=Object[_0x36542c(0x281)],Wi=(_0x3682fa,_0x4d6462,_0x3757b2,_0x40767b)=>{for(var _0x63c57b=_0x40767b>0x1?void 0x0:_0x40767b?Yi(_0x4d6462,_0x3757b2):_0x4d6462,_0x48754c=_0x3682fa['length']-0x1,_0x37ead8;_0x48754c>=0x0;_0x48754c--)(_0x37ead8=_0x3682fa[_0x48754c])&&(_0x63c57b=_0x37ead8(_0x63c57b)||_0x63c57b);return _0x63c57b;},Ce=(_0x5dce8f,_0x5d3ea7)=>(_0x4a6404,_0x475178)=>_0x5d3ea7(_0x4a6404,_0x475178,_0x5dce8f);function _0x24c3(){const _0x1de29f=['color','message','idSuffix','permission.content','ONLINE','selection','getOwnPropertyDescriptor','_doCreateSocket','_initResize','ENTITLE_REPORT_LIMIT_EXCEED','YUUMI_UNABLE_LOAD_URL','USER_IS_ANONYMOUS','_handleJoinEvent','createSocket','string','_transformUndoRedoStack','values','getCellPositionByOffset','now','NO_OTHER_CLIENTS_EDITING','jiqing.500','getformulaLimitStatusUrl','setParam','_showGuardMessage','INVITE_CODE_HAS_BEEN_UES','editingUnit','getCurrentRevOfUnit','_unitStatus','TOO_MANY_REQUESTS','REDEMPTION_INVALID_CODE','transformByState','session.collaboration-timeout','url(#off-line-icon_clip0_910_343)','_backgroundColor','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','shift','0\x200\x2017\x2016','getVpScrollXYInfoByPosToVp','YUUMI_AI_RUN_FAILED','lineTo','_colorAssignService','displayName','transformStateCache','_assignedColors','tag','_onRefRangeChange','column','YUUMI_ASYNCIO_CANCELLED','setItem','_anchor','getUnit','sheetID','roomMembers','/universer-api/license/formula/limit/status','getColorFromTheme','_cursors','_transformHistoryAndStateStack','replace','onRendered','storage','EMAIL_HAS_BEEN_BOUND','[LogService\x20Error]:\x20','_getMergeRange','collaboration-client-ui.config','OffLineIcon','getTypeOfUnitAdded$','_collaborationSessionService','_scheduleHeartbeat','setUndoRedoMutationParamsCache','ENTITLE_USE_COUPON_NOT_1ST_TRADE','_transformService','_univerInstanceService','_colorIndex','_memberID','white','_scene','backgroundColor','getMember','LICENSE_MAX_UNITS_EXCEEDED','_color','wsSessionTicketUrl','getSkeleton','getUnhiddenWorksheets','InsertRowCommandId','replaceDocRanges','_lastPointer','symbol','RECT','startFormulaLimitUrl','width','translate(.97)','find','getCurrentUnitForType','_registerRenderDependencies','getUndoRedoMutationParamsCache','Error','AWAITING_WITH_PENDING','runId','setAlpha','then','startColumn','disposeWithMe','ENTITLE_NEED_BILLING_ADDRESS','CURRENT_STATUS_CANNOT_OPERATE','279775ZCxPTK','formula.calculation.waiting','code','path','unsubscribe','283838gUstVT','LICENSE_DISTRO_REJECTED','actions','YUUMI_RATE_OVER_LIMIT','UNAUTHENTICATED','_cursorInfo$','sheetId','_docStateChangeManagerService','_releaseCalculationLimit','onTransformChange$','SOCKET_FAILED_RETRY','on-line-icon','transformMutation','none','INVITE_CODE_ALREADY_BOUND','_init','_getFormulaLimitStatus','clearTimeout','ENTITLE_CAN_NOT_BUY_LOWER_OTP','YUUMI_URL_COL_OUT_OF_RANGE','_transformPreviousActiveRange','send','_config','urlChange$','_shapes','_sheetSkeletonManagerService','executeCommand','defs','session.connection-failed','http://www.w3.org/2000/svg','status$','USER_NOT_FOUND','lineno','ENTITLE_DUP_SUBSCRIPTION','ENTITLE_CHAT_LIMIT_EXCEED','START_CALCULATION','YUUMI_NO_CUBOID_FOR_QUESTION','?taskId=','1680048DyezkS','PENDING','forEach','UNDEFINED','_labelPosition','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','CHANGESET_REVISION_CONFILICT','_getAnchorBounding','getSheetBySheetId','collab-text-anchor-','entries','closePath','red.300','url(#$1','_scheduleClearOtherTimer','Success','_startCalculationLimit','complete','startsWith','INTERNAL_ERROR','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','formula.calculation.unable','_saveCache','_getSaveTimeout','size','purple.300','_hideTimer','_session','univer-mr-2\x20univer-flex\x20univer-text-xl','_setupBeforeClosingHandler','row','VIEW_MAIN','fillStyle','moveTo','_initUnhandledRejectionListener','M0\x200H16V16H0z','drawWith','current','_collabSessionService','params','children','enableFrontendLog','mutations','_handleHeartbeatEvent','collab-text-range-','removeEventListener','unit','_render','_docTransformIMECacheService','doc.mutation.rich-text-editing','textRanges','setShapeProps','with','bottom','FromArray','_startDocCollabCursor','body','WECHAT_HAS_BEEN_BOUND','LOGIN_TOKEN_PROCESSING_FAILED','height','RemoveRowCommandId','clearInterval','_instanceService','attrs','ticket','event$','startRow','_localeService','_textBubble','[Window\x20Error]:\x20','_themeService','ALREADY_EXISTS','_cachedData','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','text','getCurrent','_context','from','transform','COMPLETION_FINISHED','_document','top','DATA_SOURCE_TOO_LARGE','unhandledrejection','findNodePositionByCharIndex','blue.400','bind','REDEMPTION_CODE_INACTIVE','addEventListener','enableLocalCache','unload','_removeCollabCursors','_checkCalculationAvailable','_initStatusListener','defIds','saveImage','getRelativeToViewportCoord','_syncEditingCollabCursorService','UNRECOGNIZED','LICENSE_EXPORT_SIZE_EXCEEDED','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getUnitId','pipe','length','[CollaborationDataLoaderController]','collabStatus.conflict','_handleLeaveEvent','450605diAwuH','getMergeData','/run/','4504887vdrtSS','history','APPLY_REVISION_CONFILICT','getParam','6DFRAxe','search','makeDirty','push','formula.calculation.started','_saveTaskMap','isActive','stageInfo','YUUMI_CONNECTOR_URL_NOT_FOUND','transformRemoteChangeset','_beforeCloseService','collabCursorState$','_hasFormulaInDirtyRanges','memberID','hovered','YUUMI_ALL_TABLES_IS_INVALID','ENSURE_SNAPSHOT_EXECUTION','getStateCache','getCurrentSelections','_hovered','USERS_LEAVE','_notificationService','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_handleEvent','YUUMI_TABLE_NOT_FOUND_IN_UNIT','onStarting','_collabCursorState$','_commandService','deepClone','_logService','getOffsetConfig','engine','_toggleOnline','DeleteRangeMoveUpCommandId','INVITE_CODE_REQUIRED','toString','createInstance','Warning','collabStatus.offline','getDocRanges','delete','_anchorDot','_checkAndWaitForCalculationPermission','_registerDependencies','registerRefRange','init','onPointerEnter$','cursorInfo$','onMouseMove','restore','syncEditingCollabCursor','_configService','SYNCED','sessionStatus$','OTHER_CLIENT_EDITING','parseInt','registerRenderModule','fill','/universer-api/license/formula/limit/done','_monkeyPatchLogService','APPLY_DUPLICATED','triggerDblclick','MUTATION','has','_hover','_onCursorDelete','includes','parse','undoState','_uploadLog','UNIVER_SHEET','newValue','ENTITLE_COUPON_USED_UP','join','_pollingInterval','addObject','_getSessionTicket','_createSocketURL','CLOSE_ROOM','_removeClearOtherTimer','popstate','_unitOnClients','name','_collaborationController','isEditing','getValue','_clearOtherTimers','1279212FuzNOw','subscribeEvent','removeParam','disposeUnit','_httpService','black','OnLineIcon','1em','INVALID_ARGUMENT','registerComponent','docStateChange$','invokeId','_uiPartsService','get','entityInit$','_getSheetObject','_cursorShapes','_selfUnitIDs','APPLY_NON_SEQUENTIAL_REVISION','_localStorageService','_name','toRgbString','collaboration.closeRoom','onCommandExecuted','colno','href','cursorInfo','stringify','registerBeforeClose','maxFormulaLimit','subUnitId','labelPosition','source','_entities','assign','socket$','type','RemoveColCommandId','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_send','reason','svg','_dataLoaderService','_onCursorUpdate','_setupSubUnitSync','div','InsertRangeMoveDownCommandId','round','permission.title','ENTITLE_COUPON_EXPIRED','_scheduleSaving','REDEMPTION_CODE_NOT_STARTED','getUnitStatus$','debug','skeleton','_initDependencies','MOBILE_HAS_BEEN_BOUND','LOGIN_FAILED','_drawRectRange','getTypeOfUnitDisposed$','save','_docClipboardService','data','_setFormulaLimitStatus','_refreshCollabCursors','_initWindowErrorListener','getCollabCursors$','currentSkeleton$','DeleteRangeMoveLeftCommandId','subscribe','3IWYchc','_roomMembers$','_lastResponseTimestamp','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','flatMap','getFocusedUnit','result','_updateCollabCursors','_collaborationUIEventService','replaceState','getSheetId','_heartbeatTimer','updateOfflineData','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','max','collaboration.single-unit.warning','Loading','_drawTextRange','SOCKET_FAILED','getConfig','setConfig','yellow.400','_messageService','rgba(255,\x20255,\x20255,\x200.01)','_initEntityListener','unshift','addClipboardHook','on-line-icon_clip0_910_349','redoState','evenodd','OTHER_CLIENTS_EDITING','isArray','origin','REDEMPTION_CODE_FULLY_REDEEMED','saveOfflineData','APPLY_REJECT','pluginName','setInterval','min','CONFLICT','_startSheetCollabCursor','/universer-api/license/formula/limit/start','dispose','YUUMI_SUBSCRIPTION_NOT_FOUND','clipPath','collabStatus.synced','ERROR_AGAIN','getActiveSheet','searchParams','USER_NOT_INVITED_CODE','EMAIL_VERIFY_CODE_MISMATCH','ENTITLE_INSUFFICIENT_QUOTA','_revisionService','OFFLINE','_renderManagerService','...','measureText','ranges','_injector','collab-client.tooltip.reconnect','INVALID_INVITE_CODE','unitId','_getScale','JOIN_ROOM_FAILED','_toggleOffline','trim','application/json','m1Prime','_docSkeletonManagerService','CONNECTOR_DATA_TOO_LARGE','_handleHover','add','xlink:href','_memberService','APPLY_PERMISSION_DENIED','_collabCursorController','show','hide','_docSyncEditingCollabCursorService','_initEvent','post','m2Prime','next','REDEMPTION_CODE_HAS_BEEN_CREATED','#FFF','collaboration.offline-data-not-saved','PY_RUNTIME_SCRIPT_ERROR','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_clearPolling','_applyCommand','transformIMECache','PERMISSION_DENIED','0\x200\x2016\x2016','exhaustSavingTask','defineProperty','subunit','_docTransformStateCacheService','_cursor','currentTheme$','transformSelections','asObservable','endColumn','_urlService','_currentUsage','Failed','pushState','_eventUnsubscribe','onLocalMutation','collabStatus.syncing','_disabled','mask','fillText','SNAPSHOT_INVALID_SNAPSHOT','_refRangeService','_updateURLWithCurrentState','saveTaskMap','_status$','addHandlerCallback','range','colorChannel1','error','_range','loadOfflineData','onPointerLeave$','InsertRangeMoveRightCommandId','_maxFormulaLimit','_draw','off-line-icon_clip0_910_343','getRenderById','arc','_id','off-line-icon','limitInfo','MoveRangeCommandId','_initStatusComponent','NOT_FOUND','UNIVER_DOC','1211497lZsjXs','map','selections','_initCommandExecutedListener','set','_initCommandInterceptor','InsertColCommandId','MOBILE_VERIFY_CODE_MISMATCH','executionId','_drawAnchor','substring','univer-flex\x20univer-items-center','getRangePointData','_entityInit$','whenReady','disableLocalCache','transformMutationsWithChangeset','_taskIds','FETCH_MISS','REDEMPTION_USER_NOT_ELIGIBLE','univerjs-icon\x20univerjs-icon-','unitID','currentColor','_updateLocalCursor','UPDATE_CURSOR','_initUserListener','_online','getAncestorScale','dispose$','filename','use','location','PAYMENT_CHANNEL_NOT_SUPPORT','NOT_COLLAB','SUCCESS','endRow','eventID'];_0x24c3=function(){return _0x1de29f;};return _0x24c3();}let H=class extends _0x2e3ce9{constructor(_0x3e972d,_0x47dffc,_0x3895c3){const _0x5633c9=_0x36542c;super(),_(this,_0x5633c9(0x1a8),new Map()),_(this,'_entityInit$',new _0x447fde()),(this[_0x5633c9(0x2c2)]=_0x3e972d,this['_injector']=_0x47dffc,this['_collabSessionService']=_0x3895c3,this[_0x5633c9(0x2f7)]());}[_0x36542c(0x1f7)](){const _0x3af870=_0x36542c;super[_0x3af870(0x1f7)](),this[_0x3af870(0x263)]['complete'](),this[_0x3af870(0x1a8)][_0x3af870(0x310)](_0x2c724a=>_0x2c724a['dispose']());}[_0x36542c(0x1c9)](_0x535b8c){const _0x490b4b=_0x36542c;return this[_0x490b4b(0x1a8)][_0x490b4b(0x16f)](_0x535b8c)?this[_0x490b4b(0x1a8)][_0x490b4b(0x194)](_0x535b8c)[_0x490b4b(0x15f)]:this[_0x490b4b(0x263)]['pipe'](_0x4479ea(_0x1dfbbc=>_0x1dfbbc[_0x490b4b(0x26b)]===_0x535b8c),_0x245695(_0x44783c=>_0x44783c['cursorInfo$']));}[_0x36542c(0x2f7)](){const _0x5b799d=_0x36542c;this[_0x5b799d(0x2c2)][_0x5b799d(0x2bc)](_0x11c449[_0x5b799d(0x176)])[_0x5b799d(0x124)](_0x5427bd(this[_0x5b799d(0x272)]))[_0x5b799d(0x1cc)](async _0x3352cf=>{const _0x51184c=_0x5b799d,_0x595225=_0x3352cf[_0x51184c(0x123)](),_0x810a55=await this[_0x51184c(0x1f5)](_0x595225);this[_0x51184c(0x263)][_0x51184c(0x21f)](_0x810a55),this[_0x51184c(0x1a8)]['set'](_0x595225,_0x810a55);}),this[_0x5b799d(0x2c2)][_0x5b799d(0x2bc)](_0x11c449[_0x5b799d(0x255)])[_0x5b799d(0x124)](_0x5427bd(this[_0x5b799d(0x272)]))[_0x5b799d(0x124)](_0x4479ea(_0xd8970=>!_0xd8970[_0x5b799d(0x123)]()[_0x5b799d(0x320)]('__')))[_0x5b799d(0x1cc)](async _0x495f3e=>{const _0x4714b8=_0x5b799d,_0x889341=_0x495f3e[_0x4714b8(0x123)](),_0x187129=await this[_0x4714b8(0x345)](_0x889341);this[_0x4714b8(0x263)][_0x4714b8(0x21f)](_0x187129),this['_entities'][_0x4714b8(0x25a)](_0x889341,_0x187129);}),_0x343681(this[_0x5b799d(0x2c2)][_0x5b799d(0x1c2)](_0x11c449[_0x5b799d(0x255)]),this[_0x5b799d(0x2c2)]['getTypeOfUnitDisposed$'](_0x11c449[_0x5b799d(0x176)]))[_0x5b799d(0x124)](_0x5427bd(this[_0x5b799d(0x272)]))['subscribe'](_0x2a2c36=>{const _0x22e7bb=_0x5b799d,_0x1cbefb=_0x2a2c36[_0x22e7bb(0x123)](),_0x112049=this[_0x22e7bb(0x1a8)][_0x22e7bb(0x194)](_0x1cbefb);_0x112049&&(_0x112049['dispose'](),this[_0x22e7bb(0x1a8)]['delete'](_0x1cbefb));});}async['_startSheetCollabCursor'](_0x6cc5d7){const _0x38634c=_0x36542c,_0x197fde=await this[_0x38634c(0x334)]['requireSession'](_0x6cc5d7),_0x32342b=this[_0x38634c(0x207)][_0x38634c(0x154)](Be,_0x6cc5d7,_0x197fde);return _0x32342b[_0x38634c(0x15d)](),_0x32342b;}async[_0x36542c(0x345)](_0xa0c901){const _0x43c8da=_0x36542c,_0x4a229d=await this[_0x43c8da(0x334)]['requireSession'](_0xa0c901),_0xc388a5=this['_injector'][_0x43c8da(0x154)](xe,_0xa0c901,_0x4a229d);return _0xc388a5[_0x43c8da(0x15d)](),_0xc388a5;}};H=Wi([Ce(0x0,_0x4d0d85),Ce(0x1,_0x338b4d(_0x2c838e)),Ce(0x2,_0x338b4d(_0x403187))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x274d3f,_0x2634e5){const _0x35518f=_0x36542c;let {radius:_0xb847d5,width:_0x52c456,height:_0x459602}=_0x2634e5;_0xb847d5=_0xb847d5!=null?_0xb847d5:0x0,_0x52c456=_0x52c456!=null?_0x52c456:0x1e,_0x459602=_0x459602!=null?_0x459602:0x1e;let _0x33a8e9=0x0,_0x5e0dae=0x0,_0x3ec6cf=0x0;_0x33a8e9=_0x5e0dae=_0x3ec6cf=Math[_0x35518f(0x1f3)](_0xb847d5,_0x52c456/0x2,_0x459602/0x2),_0x274d3f['beginPath'](),_0x274d3f[_0x35518f(0x32f)](_0x33a8e9,0x0),_0x274d3f[_0x35518f(0x2a2)](_0x52c456-_0x5e0dae,0x0),_0x274d3f['arc'](_0x52c456-_0x5e0dae,_0x5e0dae,_0x5e0dae,Math['PI']*0x3/0x2,0x0,!0x1),_0x274d3f[_0x35518f(0x2a2)](_0x52c456,_0x459602-_0x3ec6cf),_0x274d3f[_0x35518f(0x24e)](_0x52c456-_0x3ec6cf,_0x459602-_0x3ec6cf,_0x3ec6cf,0x0,Math['PI']/0x2,!0x1),_0x274d3f[_0x35518f(0x2a2)](0x0,_0x459602),_0x274d3f[_0x35518f(0x2a2)](0x0,_0x33a8e9),_0x274d3f[_0x35518f(0x24e)](_0x33a8e9,_0x33a8e9,_0x33a8e9,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x274d3f[_0x35518f(0x319)](),_0x2634e5[_0x35518f(0x169)]&&(_0x274d3f['save'](),_0x274d3f[_0x35518f(0x32e)]=_0x2634e5[_0x35518f(0x169)],_0x2634e5['fillRule']===_0x35518f(0x1ea)?_0x274d3f[_0x35518f(0x169)](_0x35518f(0x1ea)):_0x274d3f[_0x35518f(0x169)](),_0x274d3f[_0x35518f(0x161)]());}class ve extends _0x1e4876{constructor(_0x5d9e13,_0x1d01d4){const _0x1d72f3=_0x36542c;super(_0x5d9e13,_0x1d01d4),_(this,_0x1d72f3(0x27b)),_(this,_0x1d72f3(0x358)),(this[_0x1d72f3(0x27b)]=_0x1d01d4==null?void 0x0:_0x1d01d4[_0x1d72f3(0x27b)],this[_0x1d72f3(0x358)]=_0x1d01d4==null?void 0x0:_0x1d01d4['text']);}static[_0x36542c(0x332)](_0x5ef112,_0x3b03f4){const _0x109b72=_0x36542c,{text:_0x2f4951,color:_0x2b100d}=_0x3b03f4;_0x5ef112[_0x109b72(0x1c3)](),_0x5ef112['font']=_0x109b72(0x313);const _0x1b3876=_0x5ef112[_0x109b72(0x205)](_0x2f4951)['width'],_0x324d37=Math['min'](_0x1b3876+0x2*Re,at);ji(_0x5ef112,{'height':Q,'radius':0x4,'width':_0x324d37,'fill':_0x2b100d}),_0x5ef112[_0x109b72(0x32e)]=_0x109b72(0x221);const _0x34487b=Re,_0x194e22=Q-Vi,_0x4ebd23=at-0x2*Re;if(_0x1b3876>_0x4ebd23){let _0x2b570e='',_0x257786=0x0;for(const _0x110a13 of _0x2f4951){const _0x2f8037=_0x5ef112['measureText'](_0x110a13)[_0x109b72(0x2d4)];if(_0x257786+_0x2f8037<=_0x4ebd23-_0x5ef112[_0x109b72(0x205)](_0x109b72(0x204))[_0x109b72(0x2d4)])_0x2b570e+=_0x110a13,_0x257786+=_0x2f8037;else{_0x2b570e+=_0x109b72(0x204);break;}}_0x5ef112[_0x109b72(0x23c)](_0x2b570e,_0x34487b,_0x194e22);}else _0x5ef112['fillText'](_0x2f4951,_0x34487b,_0x194e22);_0x5ef112[_0x109b72(0x161)]();}[_0x36542c(0x24b)](_0x42088f){ve['drawWith'](_0x42088f,this);}}const De=_0x36542c(0x317),Xi=_0x36542c(0x33a),Gi='collab-rect-range-',z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x36542c(0x1e4);class ct{constructor(_0x51f87d,_0x4c57bd,_0xa0e90b,_0x456a2f){const _0x47eac3=_0x36542c;_(this,_0x47eac3(0x300),[]),_(this,_0x47eac3(0x2ac),null),_(this,_0x47eac3(0x352),null),_(this,_0x47eac3(0x159),null),_(this,'_hideTimer',null),_(this,_0x47eac3(0x237),null),(this['_cursor']=_0x51f87d,this[_0x47eac3(0x2c6)]=_0x4c57bd,this['_docSkeleton']=_0xa0e90b,this[_0x47eac3(0x35e)]=_0x456a2f,this[_0x47eac3(0x33d)]());}set[_0x36542c(0x170)](_0x4ada76){const _0x34ab3a=_0x36542c;_0x4ada76?(this['_anchorDot']&&this[_0x34ab3a(0x159)][_0x34ab3a(0x21a)](),this[_0x34ab3a(0x352)]&&this[_0x34ab3a(0x352)][_0x34ab3a(0x219)]()):(this[_0x34ab3a(0x159)]&&this['_anchorDot'][_0x34ab3a(0x219)](),this[_0x34ab3a(0x352)]&&this[_0x34ab3a(0x352)][_0x34ab3a(0x21a)]());}[_0x36542c(0x1f7)](){const _0x2b2d2e=_0x36542c;for(const _0x30089c of this[_0x2b2d2e(0x300)])_0x30089c[_0x2b2d2e(0x1f7)]();this['_textBubble']&&this['_textBubble']['dispose'](),this[_0x2b2d2e(0x159)]&&this[_0x2b2d2e(0x159)][_0x2b2d2e(0x1f7)](),this[_0x2b2d2e(0x2ac)]&&this['_anchor'][_0x2b2d2e(0x1f7)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x36542c(0x33d)](){const _0x16ec7b=_0x36542c;var _0x3d6ce0;const {_docSkeleton:_0x41f743,_document:_0xb1e995}=this,{color:_0x399cdb,name:_0x3c185c,ranges:_0x5c75bf}=this[_0x16ec7b(0x22e)],_0x59276d=_0xb1e995[_0x16ec7b(0x14e)](),{docsLeft:_0x207967,docsTop:_0x193577}=_0x59276d,_0x2868a7=new _0x1cb209(_0x59276d,_0x41f743);for(const {startOffset:_0x40cd67,endOffset:_0x5b416f,rangeType:_0xd664c4,segmentId:_0x5ce131,segmentPage:_0x3fb152,collapsed:_0x58b8a1,isActive:_0x1ca08b}of _0x5c75bf){const _0x2a0a49=_0x41f743[_0x16ec7b(0x112)](_0x40cd67,!0x0,_0x5ce131,_0x3fb152);let _0x54dfe4=_0x41f743[_0x16ec7b(0x112)](_0x5b416f,!0x0,_0x5ce131,_0x3fb152);if(_0x54dfe4==null&&(_0x54dfe4=_0x41f743['findNodePositionByCharIndex'](_0x5b416f-0x1,!0x1,_0x5ce131,_0x3fb152)),_0x1ca08b){const {contentBoxPointGroup:_0x363035}=_0x2868a7[_0x16ec7b(0x262)](_0x54dfe4,_0x54dfe4);if(_0x363035[_0x16ec7b(0x125)]===0x0)continue;this[_0x16ec7b(0x25f)](_0x399cdb,_0x363035,_0x207967,_0x193577,_0x3c185c),this[_0x16ec7b(0x237)]=this[_0x16ec7b(0x213)]();}if(_0x2a0a49&&_0x54dfe4){if(_0xd664c4===_0x584882[_0x16ec7b(0x2d2)]){const _0x103de0=new _0x22d440(_0x59276d,_0x41f743),{pointGroup:_0x19589a}=(_0x3d6ce0=_0x103de0[_0x16ec7b(0x262)](_0x2a0a49,_0x54dfe4))!=null?_0x3d6ce0:{};if(_0x19589a==null||_0x19589a[_0x16ec7b(0x125)]===0x0)continue;this[_0x16ec7b(0x1c1)](_0x399cdb,_0x19589a,_0x207967,_0x193577);}else{if(!_0x58b8a1){const {borderBoxPointGroup:_0x63d74}=_0x2868a7['getRangePointData'](_0x2a0a49,_0x54dfe4);if(_0x63d74[_0x16ec7b(0x125)]===0x0)continue;this[_0x16ec7b(0x1de)](_0x399cdb,_0x63d74,_0x207967,_0x193577);}}}}}[_0x36542c(0x25f)](_0x968d5f,_0xc8269b,_0x53f61a,_0x279164,_0x3b646e){const _0x471b53=_0x36542c,_0x110924=this[_0x471b53(0x315)](_0xc8269b),{left:_0xf2e407,top:_0xfbe2f,height:_0x24d7d3}=_0x110924,_0x1c9035=this[_0x471b53(0x20b)](),_0x108813=zi/_0x1c9035,_0x3b8a58=new _0x20c8d4(De+_0x52eed0(z),{'left':_0xf2e407+_0x53f61a-_0x108813,'top':_0xfbe2f+_0x279164,'height':_0x24d7d3,'width':Ki,'fill':_0x968d5f||_0x4a919b(_0x1bb289['black'],0x0),'strokeWidth':_0x108813,'stroke':Ji,'evented':!0x0});this[_0x471b53(0x2ac)]=_0x3b8a58,this[_0x471b53(0x2c6)][_0x471b53(0x17b)](_0x3b8a58,_0x513ae7);const _0x578335=new _0x20c8d4(De+_0x52eed0(z),{'left':_0xf2e407+_0x53f61a-_0x108813,'top':_0xfbe2f+_0x279164-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x968d5f||_0x4a919b(_0x1bb289[_0x471b53(0x18c)],0x0),'strokeWidth':0x0,'stroke':_0x968d5f||_0x4a919b(_0x1bb289['black'],0x0),'evented':!0x1});this[_0x471b53(0x159)]=_0x578335,this['_scene']['addObject'](_0x578335,_0x513ae7);const _0x3a8678=new ve(De+_0x52eed0(z),{'left':_0xf2e407+_0x53f61a-_0x108813,'top':_0xfbe2f+_0x279164-Q,'text':_0x3b646e,'color':_0x968d5f});this['_textBubble']=_0x3a8678,this['_scene'][_0x471b53(0x17b)](_0x3a8678,_0x513ae7),this[_0x471b53(0x170)]=!0x1;}['_handleHover'](){const _0x563330=_0x36542c,_0x3de06a=this['_anchor'][_0x563330(0x15e)][_0x563330(0x188)](()=>{const _0x3ad86a=_0x563330;this[_0x3ad86a(0x170)]=!0x0;}),_0x3c5de5=this[_0x563330(0x2ac)][_0x563330(0x248)][_0x563330(0x188)](()=>{const _0x2404e1=_0x563330;this['_hideTimer']&&clearTimeout(this[_0x2404e1(0x328)]),this[_0x2404e1(0x328)]=setTimeout(()=>{const _0x12fd57=_0x2404e1;this[_0x12fd57(0x170)]=!0x1;},0x7d0);});return()=>{const _0x46f725=_0x563330;_0x3de06a[_0x46f725(0x2e7)](),_0x3c5de5['unsubscribe']();};}['_drawTextRange'](_0x2804ba,_0x4a92c0,_0x5af623,_0x3e593a){const _0x1bd4b3=_0x36542c,_0xa415a8=new _0x131f5a(_0x2804ba)[_0x1bd4b3(0x2dd)](0.2)[_0x1bd4b3(0x19c)](),_0x1ab608=new _0x43c252(Xi+_0x52eed0(z),{'pointsGroup':_0x4a92c0,'fill':_0xa415a8||_0x4a919b(_0x1bb289['black'],0.2),'left':_0x5af623,'top':_0x3e593a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1bd4b3(0x300)]['push'](_0x1ab608),this[_0x1bd4b3(0x2c6)][_0x1bd4b3(0x17b)](_0x1ab608,_0x513ae7);}[_0x36542c(0x1c1)](_0x4d1fdd,_0xfc6344,_0x148bb2,_0x5b3aad){const _0x13a424=_0x36542c,_0x41471f=new _0x131f5a(_0x4d1fdd)[_0x13a424(0x2dd)](0.2)['toRgbString'](),_0x37e201=new _0x43c252(Gi+_0x52eed0(z),{'pointsGroup':_0xfc6344,'fill':_0x41471f||_0x4a919b(_0x1bb289['black'],0.2),'left':_0x148bb2,'top':_0x5b3aad,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x13a424(0x300)][_0x13a424(0x133)](_0x37e201),this[_0x13a424(0x2c6)][_0x13a424(0x17b)](_0x37e201,_0x513ae7);}[_0x36542c(0x315)](_0x18b48c){const _0x5aec39=_0x18b48c[0x0],_0x8b0224=_0x5aec39[0x0],_0x56cf96=_0x5aec39[0x2],{x:_0x2ef7e5,y:_0xa751b2}=_0x8b0224,{x:_0x55673f,y:_0x5dc242}=_0x56cf96;return{'left':_0x2ef7e5,'top':_0xa751b2,'width':_0x55673f-_0x2ef7e5,'height':_0x5dc242-_0xa751b2};}[_0x36542c(0x20b)](){const _0x58a47a=_0x36542c,{scaleX:_0xc8c633,scaleY:_0x14f905}=this['_scene'][_0x58a47a(0x271)]();return Math[_0x58a47a(0x1db)](_0xc8c633,_0x14f905);}}var Zi=Object[_0x36542c(0x281)],Qi=(_0x1e11ae,_0x345676,_0x25bcb3,_0x4cda33)=>{for(var _0x3f3e86=_0x4cda33>0x1?void 0x0:_0x4cda33?Zi(_0x345676,_0x25bcb3):_0x345676,_0x1b6df2=_0x1e11ae['length']-0x1,_0x461bd6;_0x1b6df2>=0x0;_0x1b6df2--)(_0x461bd6=_0x1e11ae[_0x1b6df2])&&(_0x3f3e86=_0x461bd6(_0x3f3e86)||_0x3f3e86);return _0x3f3e86;},ie=(_0xc745b2,_0x5a4142)=>(_0x2f0e89,_0x1c0732)=>_0x5a4142(_0x2f0e89,_0x1c0732,_0xc745b2);let Fe=class extends _0x2e3ce9{constructor(_0x44f5c5,_0x25540e,_0x4ba7f1,_0x454906,_0x11e128){const _0x472d6f=_0x36542c;super(),_(this,'_cursorShapes',[]),_(this,'_cursors',[]),(this['_context']=_0x44f5c5,this[_0x472d6f(0x211)]=_0x25540e,this[_0x472d6f(0x218)]=_0x4ba7f1,this[_0x472d6f(0x14b)]=_0x454906,this[_0x472d6f(0x354)]=_0x11e128,this[_0x472d6f(0x2f7)]());}['_init'](){const _0x263d7d=_0x36542c,_0x17d770=this['_context'][_0x263d7d(0x20a)],_0x800ff3=this[_0x263d7d(0x211)];this[_0x263d7d(0x2e0)](_0x174358([this[_0x263d7d(0x218)]['getCollabCursors$'](_0x17d770),this[_0x263d7d(0x354)][_0x263d7d(0x22f)]])[_0x263d7d(0x124)](_0x59c5bc(([_0x10925f,_0x502f3e])=>({'skeleton':_0x800ff3[_0x263d7d(0x2cc)](),'cursors':[..._0x10925f[_0x263d7d(0x28b)]()][_0x263d7d(0x1d1)](_0x5e7a48=>({..._0x5e7a48,'color':this['_themeService'][_0x263d7d(0x2b1)](_0x5e7a48[_0x263d7d(0x27b)])}))})))[_0x263d7d(0x1cc)](_0x3da7e6=>{const _0x591455=_0x263d7d;if(this[_0x591455(0x119)](),_0x3da7e6){const {skeleton:_0x590a3b,cursors:_0x124ba6}=_0x3da7e6;this['_updateCollabCursors'](_0x590a3b,_0x124ba6);}})),this[_0x263d7d(0x283)](),this[_0x263d7d(0x259)]();}[_0x36542c(0x1d4)](_0x7fcc50,_0x1f9253){const _0x1b08e=_0x36542c,{scene:_0x33581a,mainComponent:_0x1b667c}=this['_context'],_0x37482e=_0x1f9253[_0x1b08e(0x257)](_0x172fc2=>new ct(_0x172fc2,_0x33581a,_0x7fcc50,_0x1b667c));this[_0x1b08e(0x197)]=_0x37482e,this[_0x1b08e(0x2b2)]=_0x1f9253;}['_refreshCollabCursors'](){const _0x35f52c=_0x36542c;this['_removeCollabCursors']();const {scene:_0x289c06,mainComponent:_0x4ab8a1}=this[_0x35f52c(0x35a)],_0x340e44=this[_0x35f52c(0x211)][_0x35f52c(0x2cc)](),_0x393135=this[_0x35f52c(0x2b2)][_0x35f52c(0x257)](_0x1f720c=>new ct(_0x1f720c,_0x289c06,_0x340e44,_0x4ab8a1));this['_cursorShapes']=_0x393135;}['_removeCollabCursors'](){const _0x43d4a5=_0x36542c;this['_cursorShapes'][_0x43d4a5(0x310)](_0x516901=>_0x516901[_0x43d4a5(0x1f7)]()),this[_0x43d4a5(0x197)]=[];}[_0x36542c(0x259)](){const _0x136c7b=_0x36542c,_0x4f5bee=[_0x1e5c3e['id']];this[_0x136c7b(0x2e0)](this[_0x136c7b(0x14b)]['onCommandExecuted'](_0x460a71=>{const _0x58fbd6=_0x136c7b;_0x4f5bee[_0x58fbd6(0x172)](_0x460a71['id'])&&_0x460a71['params'][_0x58fbd6(0x20a)]===this['_context'][_0x58fbd6(0x20a)]&&this[_0x58fbd6(0x1c7)]();}));}[_0x36542c(0x283)](){const _0x1b1b77=_0x36542c;this[_0x1b1b77(0x2e0)](_0x4a08d3(this[_0x1b1b77(0x35a)][_0x1b1b77(0x14f)][_0x1b1b77(0x2f1)])[_0x1b1b77(0x124)](_0x283ed0(_0xf5852e=>_0xf5852e[_0x1b1b77(0x1ab)]===_0x7f58f8['resize']),_0x218010(0x10))[_0x1b1b77(0x1cc)](()=>{const _0x44b217=_0x1b1b77;this[_0x44b217(0x1c7)]();}));}};Fe=Qi([ie(0x1,_0x338b4d(_0x265ea4)),ie(0x2,_0x338b4d(H)),ie(0x3,_0x344a42),ie(0x4,_0x338b4d(_0x331d79))],Fe);const qi=0x1,en=1.5;class tn extends _0x1e4876{constructor(_0x42718d,_0x311072){const _0x1f6630=_0x36542c;super(_0x42718d,_0x311072),_(this,_0x1f6630(0x2ca)),_(this,_0x1f6630(0x143),!0x1),_(this,_0x1f6630(0x246)),_(this,_0x1f6630(0x19b),''),_(this,_0x1f6630(0x312),_0x1f6630(0x35f)),_(this,_0x1f6630(0x29c)),(_0x311072&&this[_0x1f6630(0x341)](_0x311072),this[_0x1f6630(0x15e)]['subscribeEvent'](()=>this[_0x1f6630(0x341)]({'hovered':!0x0})),this[_0x1f6630(0x248)][_0x1f6630(0x188)](()=>this[_0x1f6630(0x341)]({'hovered':!0x1})));}[_0x36542c(0x341)](_0xd53762){const _0x558466=_0x36542c;var _0x5a8220,_0x38b34d,_0x288a76,_0x1485f4,_0x12e0a1,_0x2052b0;this[_0x558466(0x2ca)]=(_0x5a8220=_0xd53762[_0x558466(0x27b)])!=null?_0x5a8220:this['_color'],this[_0x558466(0x143)]=(_0x38b34d=_0xd53762[_0x558466(0x13e)])!=null?_0x38b34d:this[_0x558466(0x143)],this['_range']=(_0x288a76=_0xd53762[_0x558466(0x243)])!=null?_0x288a76:this[_0x558466(0x246)],this['_name']=(_0x1485f4=_0xd53762['name'])!=null?_0x1485f4:this[_0x558466(0x19b)],this[_0x558466(0x312)]=(_0x12e0a1=_0xd53762[_0x558466(0x1a6)])!=null?_0x12e0a1:this['_labelPosition'],this[_0x558466(0x29c)]=(_0x2052b0=_0xd53762[_0x558466(0x2c7)])!=null?_0x2052b0:this[_0x558466(0x29c)],this[_0x558466(0x299)]({'width':_0xd53762['width'],'height':_0xd53762[_0x558466(0x349)]});}[_0x36542c(0x160)](_0x33a29b){const _0x35d50b=_0x36542c,{row:_0x3bc5ee,column:_0x5c370f}=_0x33a29b;if(_0x3bc5ee>=this['_range'][_0x35d50b(0x350)]&&_0x3bc5ee<=this[_0x35d50b(0x246)][_0x35d50b(0x279)]&&_0x5c370f>=this[_0x35d50b(0x246)][_0x35d50b(0x2df)]&&_0x5c370f<=this['_range'][_0x35d50b(0x232)]){this[_0x35d50b(0x341)]({'hovered':!0x0});return;}this[_0x35d50b(0x341)]({'hovered':!0x1});}[_0x36542c(0x16d)](_0x5cd72f){return!0x1;}[_0x36542c(0x24b)](_0x113568){const _0x1b74f1=_0x36542c;_0x20c8d4[_0x1b74f1(0x332)](_0x113568,{'width':this[_0x1b74f1(0x2d4)],'height':this[_0x1b74f1(0x349)],'strokeWidth':en,'stroke':this[_0x1b74f1(0x2ca)],'evented':!0x1,'fill':this[_0x1b74f1(0x29c)]}),this[_0x1b74f1(0x143)]&&(_0x113568[_0x1b74f1(0x1c3)](),_0x113568[_0x1b74f1(0x35c)](0x1,0x0,0x0,0x1,this['width'],this[_0x1b74f1(0x312)]===_0x1b74f1(0x343)?0x0:-Q),ve[_0x1b74f1(0x332)](_0x113568,{'text':this['_name'],'color':this[_0x1b74f1(0x2ca)]}),_0x113568[_0x1b74f1(0x161)]());}}var sn=Object['getOwnPropertyDescriptor'],nn=(_0x396333,_0x3ddb9d,_0x1733f0,_0x522aa1)=>{const _0x5585ef=_0x36542c;for(var _0x4e7cb2=_0x522aa1>0x1?void 0x0:_0x522aa1?sn(_0x3ddb9d,_0x1733f0):_0x3ddb9d,_0x5a3976=_0x396333[_0x5585ef(0x125)]-0x1,_0x11f9a4;_0x5a3976>=0x0;_0x5a3976--)(_0x11f9a4=_0x396333[_0x5a3976])&&(_0x4e7cb2=_0x11f9a4(_0x4e7cb2)||_0x4e7cb2);return _0x4e7cb2;},be=(_0x2d2872,_0x439192)=>(_0x4bf60e,_0x4a7973)=>_0x439192(_0x4bf60e,_0x4a7973,_0x2d2872);const rn=0x1389;let ke=class extends _0x2e3ce9{constructor(_0x27256b,_0x22019c,_0x935b2b,_0x44dfb2){const _0x33701d=_0x36542c;super(),_(this,_0x33701d(0x2b2),new Set()),_(this,_0x33701d(0x2d0),null),(this[_0x33701d(0x35a)]=_0x27256b,this[_0x33701d(0x301)]=_0x22019c,this[_0x33701d(0x218)]=_0x935b2b,this[_0x33701d(0x354)]=_0x44dfb2,this['_init']());}[_0x36542c(0x2f7)](){const _0x3f2c34=_0x36542c;this[_0x3f2c34(0x301)][_0x3f2c34(0x1ca)]['pipe'](_0x88348d(this[_0x3f2c34(0x272)]),_0x469c3c(_0x6197d8=>{const _0xe1908a=_0x3f2c34;if(_0x6197d8){const _0x4a9752=_0x6197d8[_0xe1908a(0x2ee)];return _0x174358(this['_collabCursorController']['getCollabCursors$'](this[_0xe1908a(0x35a)][_0xe1908a(0x20a)]),this[_0xe1908a(0x354)][_0xe1908a(0x22f)])[_0xe1908a(0x124)](_0x59c5bc(([_0x2676ff,_0x364090])=>{const _0x4de157=_0xe1908a,_0x36121f=new Map();return _0x2676ff[_0x4de157(0x310)]((_0x1dcf9d,_0x2a5207)=>{const _0x42aa6f=_0x4de157;if(_0x1dcf9d[_0x42aa6f(0x2ae)]===_0x4a9752){const _0x33acde={..._0x1dcf9d};_0x33acde['color']=this[_0x42aa6f(0x354)]['getColorFromTheme'](_0x1dcf9d[_0x42aa6f(0x27b)]),_0x36121f['set'](_0x2a5207,_0x33acde);}}),{'skeleton':_0x6197d8,'cursors':_0x36121f};}));}return _0x5eb303({'skeleton':null,'cursors':new Map()});}))[_0x3f2c34(0x1cc)](({skeleton:_0x271af9,cursors:_0x528b2d})=>{const _0x37cbf2=_0x3f2c34;this[_0x37cbf2(0x119)](),_0x271af9&&this['_updateCollabCursors'](_0x271af9,_0x528b2d);}),this[_0x3f2c34(0x301)][_0x3f2c34(0x1ca)]['subscribe'](_0x185153=>{const _0x162e9b=_0x3f2c34;if(_0x185153==null)return;const {skeleton:_0x3bc4c8}=_0x185153,{scene:_0xe2f91b}=this['_context'];_0xe2f91b['onPointerMove$'][_0x162e9b(0x188)](_0x9e9857(_0x20151e=>{const _0x5f442a=_0x162e9b;var _0x12969d,_0xf5b79c;const {offsetX:_0x334b0e,offsetY:_0x33d859}=_0x20151e,{x:_0x3f9d34,y:_0x52d6e9}=_0xe2f91b[_0x5f442a(0x11e)](_0x35ebd3['FromArray']([_0x334b0e,_0x33d859])),{scaleX:_0x4014e8,scaleY:_0x4621c3}=_0xe2f91b[_0x5f442a(0x271)](),_0x1dd294=_0xe2f91b['getViewport'](_0x2e4a5e[_0x5f442a(0x32d)]),_0x112c0c=_0xe2f91b[_0x5f442a(0x2a0)](_0x35ebd3[_0x5f442a(0x344)]([_0x3f9d34,_0x52d6e9]),_0x1dd294),_0x314184=_0x3bc4c8[_0x5f442a(0x28c)](_0x334b0e,_0x33d859,_0x4014e8,_0x4621c3,_0x112c0c);((_0x12969d=this['_lastPointer'])==null?void 0x0:_0x12969d[_0x5f442a(0x2a9)])===_0x314184[_0x5f442a(0x2a9)]&&((_0xf5b79c=this[_0x5f442a(0x2d0)])==null?void 0x0:_0xf5b79c[_0x5f442a(0x32c)])===_0x314184[_0x5f442a(0x32c)]||this['_cursors']['forEach'](_0x16f0a7=>{const _0x379b99=_0x5f442a;_0x16f0a7[_0x379b99(0x160)](_0x314184);});},0x64));});}[_0x36542c(0x1d4)](_0x143e99,_0xc2149e){const _0x1d8c39=_0x36542c;var _0x213e50;const _0x10b0e2=(_0x213e50=this[_0x1d8c39(0x301)][_0x1d8c39(0x359)]())==null?void 0x0:_0x213e50[_0x1d8c39(0x1bd)];if(!_0x10b0e2)return;const _0x39931b=this[_0x1d8c39(0x196)]();if(!_0x39931b)return;this[_0x1d8c39(0x2b2)]['forEach'](_0x500f57=>{const _0xa7e627=_0x1d8c39;_0x500f57[_0xa7e627(0x132)]();});const {scene:_0x27e88d}=_0x39931b,_0x12b1ca=on(Array['from'](_0xc2149e[_0x1d8c39(0x28b)]()))['map'](_0x406f6c=>{const _0x202e3d=_0x1d8c39,{color:_0x4d4477,range:_0x558361,name:_0x53363a,selection:_0x1630a5,sheetID:_0x5d4953}=_0x406f6c,{startColumn:_0x525cfc,startRow:_0x32a6f4,endColumn:_0x6230c9,endRow:_0xb9eeb4}=_0x558361,_0x49a3ae=_0x504140(_0x32a6f4,_0x525cfc,_0x27e88d,_0x10b0e2),_0x4bebb1=_0x504140(_0xb9eeb4,_0x6230c9,_0x27e88d,_0x10b0e2),{columnHeaderHeightAndMarginTop:_0x3af41f}=_0x10b0e2,{startX:_0x5570aa,startY:_0x3a2eca}=_0x49a3ae,{endX:_0x37c27c,endY:_0x2811b2}=_0x4bebb1,_0xe5441d=_0x37c27c-_0x5570aa,_0x21de13=_0x2811b2-_0x3a2eca,_0x43a8bf={'labelPosition':_0x3a2eca-_0x3af41f>=Q?'top':_0x202e3d(0x343),'sheetID':_0x5d4953,'range':_0x558361,'color':_0x4d4477,'name':_0x53363a,'selection':_0x1630a5,'left':_0x5570aa,'top':_0x3a2eca,'width':_0xe5441d,'height':_0x21de13,'evented':!0x1,'zIndex':rn};return new tn(_0x53363a,_0x43a8bf);});_0x27e88d['addObjects'](_0x12b1ca,qi),this[_0x1d8c39(0x2b2)]=new Set(_0x12b1ca);}['_removeCollabCursors'](){const _0x54c1d6=_0x36542c;var _0x517993;(_0x517993=this[_0x54c1d6(0x2b2)])==null||_0x517993[_0x54c1d6(0x310)](_0x375411=>_0x375411[_0x54c1d6(0x1f7)]());}['_getSheetObject'](){const _0x36f49d=_0x36542c;return _0x3b0908(this['_context'][_0x36f49d(0x33c)],this[_0x36f49d(0x35a)]);}};ke=nn([be(0x1,_0x338b4d(_0x49f76f)),be(0x2,_0x338b4d(H)),be(0x3,_0x338b4d(_0x331d79))],ke);function on(_0x321c4e){const _0x4ab701=_0x36542c,_0xb98030=new Map();return _0x321c4e[_0x4ab701(0x310)](_0x4cf92b=>{const _0x37a802=_0x4ab701;if(_0xb98030[_0x37a802(0x16f)](_0x4cf92b[_0x37a802(0x280)])){const _0x2177dc=_0xb98030['get'](_0x4cf92b[_0x37a802(0x280)]);_0x2177dc[_0x37a802(0x182)]+=',\x20'+_0x4cf92b[_0x37a802(0x182)];}else _0xb98030['set'](_0x4cf92b[_0x37a802(0x280)],_0x4cf92b);}),Array['from'](_0xb98030[_0x4ab701(0x28b)]());}var an=Object[_0x36542c(0x281)],cn=(_0x55e873,_0x2a0d08,_0x656fc4,_0x3fb4da)=>{const _0x2bb606=_0x36542c;for(var _0x46dc7c=_0x3fb4da>0x1?void 0x0:_0x3fb4da?an(_0x2a0d08,_0x656fc4):_0x2a0d08,_0x5c5814=_0x55e873[_0x2bb606(0x125)]-0x1,_0x37062d;_0x5c5814>=0x0;_0x5c5814--)(_0x37062d=_0x55e873[_0x5c5814])&&(_0x46dc7c=_0x37062d(_0x46dc7c)||_0x46dc7c);return _0x46dc7c;},F=(_0x1e035f,_0x53d11a)=>(_0x37666a,_0xf9fdf4)=>_0x53d11a(_0x37666a,_0xf9fdf4,_0x1e035f);let _e=class extends _0xc640cc{constructor(_0x137a4b,_0x128ac0,_0x47d96f,_0x939dd5,_0x4e2529,_0x14b950){const _0x1d9156=_0x36542c;super(),this[_0x1d9156(0x13a)]=_0x137a4b,this['_localCacheService']=_0x128ac0,this[_0x1d9156(0x1d5)]=_0x47d96f,this[_0x1d9156(0x1e3)]=_0x939dd5,this[_0x1d9156(0x145)]=_0x4e2529,this[_0x1d9156(0x351)]=_0x14b950,this[_0x1d9156(0x32b)](),this[_0x1d9156(0x21c)]();}[_0x36542c(0x32b)](){const _0x5ea1e4=_0x36542c;this[_0x5ea1e4(0x2e0)](this['_beforeCloseService'][_0x5ea1e4(0x1a3)](()=>{const _0x46393f=_0x5ea1e4;if(this['_localCacheService']['saveTaskMap'][_0x46393f(0x326)])return this[_0x46393f(0x351)]['t'](_0x46393f(0x222));}));}['_initEvent'](){const _0x50c25d=_0x36542c;this[_0x50c25d(0x2e0)](this[_0x50c25d(0x1d5)][_0x50c25d(0x34f)][_0x50c25d(0x1cc)](_0x3e6ec9=>{const _0x4456d6=_0x50c25d;_0x3e6ec9['id']===_0x5b6a2e[_0x4456d6(0x166)]&&this['_messageService'][_0x4456d6(0x219)]({'type':_0x5d4ed0[_0x4456d6(0x155)],'content':this[_0x4456d6(0x351)]['t'](_0x4456d6(0x1dc))}),_0x3e6ec9['id']===_0x5b6a2e[_0x4456d6(0x17e)]&&this[_0x4456d6(0x1e3)]['show']({'type':_0x5d4ed0[_0x4456d6(0x155)],'content':this[_0x4456d6(0x351)]['t'](_0x4456d6(0x19d))}),_0x3e6ec9['id']===_0x5b6a2e[_0x4456d6(0x228)]&&this[_0x4456d6(0x145)][_0x4456d6(0x219)]({'title':this[_0x4456d6(0x351)]['t'](_0x4456d6(0x1b7)),'content':this[_0x4456d6(0x351)]['t'](_0x4456d6(0x27e)),'type':_0x4456d6(0x245),'duration':0x0}),_0x3e6ec9['id']===_0x5b6a2e[_0x4456d6(0x1f4)]&&this[_0x4456d6(0x1e3)][_0x4456d6(0x219)]({'type':_0x5d4ed0[_0x4456d6(0x2da)],'content':this[_0x4456d6(0x351)]['t']('collaboration.closeRoom')+'('+_0x3e6ec9['data']+')'}),_0x3e6ec9['id']===_0x5b6a2e[_0x4456d6(0x20c)]&&this['_messageService'][_0x4456d6(0x219)]({'type':_0x5d4ed0['Warning'],'content':this[_0x4456d6(0x351)]['t'](_0x3e6ec9['data']||'')}),_0x3e6ec9['id']===_0x5b6a2e[_0x4456d6(0x2f2)]&&this[_0x4456d6(0x1e3)][_0x4456d6(0x219)]({'type':_0x5d4ed0['Warning'],'content':this[_0x4456d6(0x351)]['t']('session.will-retry')}),_0x3e6ec9['id']===_0x5b6a2e[_0x4456d6(0x1df)]&&this[_0x4456d6(0x1e3)]['show']({'type':_0x5d4ed0[_0x4456d6(0x2da)],'content':this[_0x4456d6(0x351)]['t'](_0x4456d6(0x304))}),_0x3e6ec9['id']===_0x5b6a2e['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x4456d6(0x1e3)]['show']({'type':_0x5d4ed0[_0x4456d6(0x2da)],'content':this[_0x4456d6(0x351)]['t'](_0x4456d6(0x29a))});}));}};_e=cn([F(0x0,_0x2bbef3),F(0x1,_0x386892),F(0x2,_0x338b4d(_0x5a0b75)),F(0x3,_0x90efad),F(0x4,_0x59af86),F(0x5,_0x338b4d(_0x1cbe37))],_e);var _n=Object[_0x36542c(0x281)],ln=(_0x3acb8a,_0x4e76fa,_0x6e79cf,_0x488223)=>{const _0x5e9527=_0x36542c;for(var _0x554982=_0x488223>0x1?void 0x0:_0x488223?_n(_0x4e76fa,_0x6e79cf):_0x4e76fa,_0x8a4cee=_0x3acb8a[_0x5e9527(0x125)]-0x1,_0x569f7b;_0x8a4cee>=0x0;_0x8a4cee--)(_0x569f7b=_0x3acb8a[_0x8a4cee])&&(_0x554982=_0x569f7b(_0x554982)||_0x554982);return _0x554982;},ne=(_0x73b274,_0xb84909)=>(_0x4e22f8,_0x2cd61d)=>_0xb84909(_0x4e22f8,_0x2cd61d,_0x73b274);let le=class extends _0xc640cc{constructor(_0x3fda42,_0x59fb79,_0x2e8295,_0x4f713a){const _0x59b43c=_0x36542c;super(),_(this,_0x59b43c(0x2c4)),(this[_0x59b43c(0x207)]=_0x3fda42,this['_httpService']=_0x59fb79,this[_0x59b43c(0x14d)]=_0x2e8295,this[_0x59b43c(0x2bd)]=_0x4f713a,this[_0x59b43c(0x2f7)]());}[_0x36542c(0x2f7)](){const _0x48c9ac=_0x36542c;this[_0x48c9ac(0x1c8)](),this[_0x48c9ac(0x330)](),this[_0x48c9ac(0x16b)](),this[_0x48c9ac(0x26f)]();}[_0x36542c(0x26f)](){const _0x93629d=_0x36542c;this[_0x93629d(0x2e0)](this[_0x93629d(0x2bd)][_0x93629d(0x1aa)][_0x93629d(0x1cc)](_0x5c4fc0=>{const _0x1850ac=_0x93629d;this['_memberID']=_0x5c4fc0==null?void 0x0:_0x5c4fc0[_0x1850ac(0x13d)];}));}[_0x36542c(0x1c8)](){const _0x19c919=_0x36542c,_0x3c5425=_0x3bb4a8=>{const _0x4dda6d=_0x4dd1;var _0x5ef404;this[_0x4dda6d(0x175)](_0x4dda6d(0x245),_0x4dda6d(0x353)+_0x3bb4a8['message']+'\x20at\x20'+_0x3bb4a8[_0x4dda6d(0x273)]+':'+_0x3bb4a8[_0x4dda6d(0x308)]+':'+_0x3bb4a8[_0x4dda6d(0x19f)]+'\x0a'+(((_0x5ef404=_0x3bb4a8[_0x4dda6d(0x245)])==null?void 0x0:_0x5ef404['stack'])||''));};window[_0x19c919(0x116)](_0x19c919(0x245),_0x3c5425),this[_0x19c919(0x2e0)](()=>{const _0x16db3f=_0x19c919;window[_0x16db3f(0x33b)](_0x16db3f(0x245),_0x3c5425);});}[_0x36542c(0x330)](){const _0xd1bd13=_0x36542c,_0xf40d74=_0x13e9f6=>{const _0xe4aab0=_0x4dd1;this[_0xe4aab0(0x175)](_0xe4aab0(0x245),'[Unhandled\x20Rejection]:\x20'+_0x13e9f6[_0xe4aab0(0x1af)]);};window[_0xd1bd13(0x116)](_0xd1bd13(0x111),_0xf40d74),this[_0xd1bd13(0x2e0)](()=>{const _0x5743b0=_0xd1bd13;window['removeEventListener'](_0x5743b0(0x111),_0xf40d74);});}[_0x36542c(0x16b)](){const _0x4f86d5=_0x36542c,_0x330d0d=this[_0x4f86d5(0x14d)][_0x4f86d5(0x245)][_0x4f86d5(0x114)](this[_0x4f86d5(0x14d)]);this[_0x4f86d5(0x14d)]['error']=(..._0x195b89)=>{const _0x51c4fc=_0x4f86d5,_0x1eee9e=_0x195b89['map'](_0x1ff0d9=>_0x1ff0d9 instanceof Error?_0x1ff0d9[_0x51c4fc(0x27c)]+'\x0a'+_0x1ff0d9['stack']:String(_0x1ff0d9))[_0x51c4fc(0x179)]('\x20');this['_uploadLog']('error',_0x51c4fc(0x2b8)+_0x1eee9e),_0x330d0d(..._0x195b89);},this['disposeWithMe'](()=>{const _0x2387d8=_0x4f86d5;this[_0x2387d8(0x14d)][_0x2387d8(0x245)]=_0x330d0d;});}[_0x36542c(0x175)](_0x13d66d,_0x52bf5d){const _0x521f8a=_0x36542c;try{const _0x10fd02={'userId':this[_0x521f8a(0x2c4)],'logLabel':_0x13d66d,'content':_0x52bf5d};this[_0x521f8a(0x18b)]['post']('/universer-api/frontend/logs',{'body':_0x10fd02})['catch'](()=>{});}catch{}}};le=ln([ne(0x0,_0x338b4d(_0x2c838e)),ne(0x1,_0x338b4d(_0x5f42ec)),ne(0x2,_0x4838cb),ne(0x3,_0x338b4d(_0x403187))],le);function _0x4dd1(_0x4f301f,_0x48e35c){_0x4f301f=_0x4f301f-0x111;const _0x24c379=_0x24c3();let _0x4dd1bb=_0x24c379[_0x4f301f];return _0x4dd1bb;}const hn=_0x36542c(0x2ba),_t={};var un=Object['getOwnPropertyDescriptor'],dn=(_0x5d4a09,_0x423956,_0x8bfc7,_0x2d46d3)=>{const _0x4e6ee5=_0x36542c;for(var _0x3a5e1c=_0x2d46d3>0x1?void 0x0:_0x2d46d3?un(_0x423956,_0x8bfc7):_0x423956,_0x55795f=_0x5d4a09[_0x4e6ee5(0x125)]-0x1,_0x489653;_0x55795f>=0x0;_0x55795f--)(_0x489653=_0x5d4a09[_0x55795f])&&(_0x3a5e1c=_0x489653(_0x3a5e1c)||_0x3a5e1c);return _0x3a5e1c;},lt=(_0x328345,_0x1d1bea)=>(_0x2ff216,_0x1d8a0d)=>_0x1d1bea(_0x2ff216,_0x1d8a0d,_0x328345);let he=class{constructor(_0x59ff23,_0x17e251){const _0x367774=_0x36542c;this[_0x367774(0x2c1)]=_0x59ff23,this[_0x367774(0x203)]=_0x17e251;}[_0x36542c(0x227)](_0x43c28f){const _0x4aa4e1=_0x36542c;this[_0x4aa4e1(0x28a)](_0x43c28f),this['_transformPreviousActiveRange'](_0x43c28f);}[_0x36542c(0x139)](_0x233c39){const _0x5ba538=_0x36542c,{unitID:_0x2ee23a}=_0x233c39,_0x307ab8=this[_0x5ba538(0x203)][_0x5ba538(0x24d)](_0x2ee23a)[_0x5ba538(0x342)](_0x40b6fc),{redoCache:_0x501720}=_0x307ab8[_0x5ba538(0x2d9)]();if(_0x501720[_0x5ba538(0x125)]===0x0)return _0x233c39;let _0x2306eb=_0x36941c[_0x5ba538(0x14c)](_0x233c39[_0x5ba538(0x338)][0x0]);for(let _0x102b46=0x0;_0x102b46<_0x501720[_0x5ba538(0x125)];_0x102b46++){const _0x31dcbb={'id':'doc.mutation.rich-text-editing','params':{..._0x501720[_0x102b46]}},_0x476b2a=this[_0x5ba538(0x2c1)][_0x5ba538(0x2f4)](_0x2306eb,_0x31dcbb,!0x1);if(_0x5aaf2c(_0x476b2a))throw _0x476b2a[_0x5ba538(0x245)];_0x2306eb=_0x476b2a[_0x5ba538(0x210)];}return{..._0x36941c['deepClone'](_0x233c39),'mutations':[_0x2306eb]};}[_0x36542c(0x28a)](_0x314b8b){const _0x8788b4=_0x36542c,{unitID:_0x5928d1}=_0x314b8b,_0x504b56=this[_0x8788b4(0x203)]['getRenderById'](_0x5928d1)[_0x8788b4(0x342)](_0x40b6fc),{undoCache:_0x5af360,redoCache:_0x1d3bbe}=_0x504b56[_0x8788b4(0x2d9)]();if(_0x5af360[_0x8788b4(0x125)]===0x0||_0x1d3bbe[_0x8788b4(0x125)]===0x0)return;const _0x1df63c=[],_0x1f4662=[];let _0x2fa29c=_0x36941c[_0x8788b4(0x14c)](_0x314b8b['mutations'][0x0]),_0x4648cb=_0x36941c[_0x8788b4(0x14c)](_0x314b8b['mutations'][0x0]);for(let _0x27ee33=_0x5af360[_0x8788b4(0x125)]-0x1;_0x27ee33>=0x0;_0x27ee33--){const _0x57ee12={'id':'doc.mutation.rich-text-editing','params':{..._0x5af360[_0x27ee33]}},_0xcbd35c={'id':_0x8788b4(0x33f),'params':{..._0x1d3bbe[_0x27ee33]}},_0x1d93d0=this['_transformService']['transformMutation'](_0x2fa29c,_0x57ee12,!0x1),_0xe95e67=this[_0x8788b4(0x2c1)][_0x8788b4(0x2f4)](_0x4648cb,_0xcbd35c,!0x1);if(_0x5aaf2c(_0x1d93d0))throw _0x1d93d0[_0x8788b4(0x245)];if(_0x5aaf2c(_0xe95e67))throw _0xe95e67[_0x8788b4(0x245)];_0x1df63c[_0x8788b4(0x1e6)](_0x1d93d0[_0x8788b4(0x21e)]['params']),_0x1f4662[_0x8788b4(0x1e6)](_0xe95e67[_0x8788b4(0x21e)][_0x8788b4(0x335)]),_0x2fa29c=_0x1d93d0[_0x8788b4(0x210)],_0x4648cb=_0xe95e67[_0x8788b4(0x210)];}_0x504b56[_0x8788b4(0x2bf)]({'undoCache':_0x1df63c,'redoCache':_0x1f4662});}[_0x36542c(0x2fc)](_0x59bfe4){const _0x3d1ff7=_0x36542c,{unitID:_0x222313}=_0x59bfe4,_0x18d062=this['_renderManagerService']['getRenderById'](_0x222313)[_0x3d1ff7(0x342)](_0x40b6fc),_0x4648a5=_0x18d062['getActiveRange']();if(_0x4648a5==null)return;const _0x429c7a=[{'id':_0x3d1ff7(0x33f),'params':{'unitId':_0x59bfe4[_0x3d1ff7(0x26b)],'actions':null,'textRanges':[_0x4648a5]}}],_0xf64313=this['_transformService'][_0x3d1ff7(0x266)](_0x59bfe4,_0x429c7a);if(!_0x41b3f2(_0xf64313))throw _0xf64313[_0x3d1ff7(0x245)];const _0x25f460=_0xf64313[_0x3d1ff7(0x21e)][0x0]['params'][_0x3d1ff7(0x340)];Array[_0x3d1ff7(0x1ec)](_0x25f460)&&_0x25f460[_0x3d1ff7(0x125)]&&_0x18d062['setActiveRange'](_0x25f460[0x0]);}};he=dn([lt(0x0,_0x20cc24),lt(0x1,_0x325ffd)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x11e73e,_0xaa0c74,_0xd46729,_0x44524e)=>{for(var _0x3d1330=_0x44524e>0x1?void 0x0:_0x44524e?Sn(_0xaa0c74,_0xd46729):_0xaa0c74,_0x137e89=_0x11e73e['length']-0x1,_0x23fd7e;_0x137e89>=0x0;_0x137e89--)(_0x23fd7e=_0x11e73e[_0x137e89])&&(_0x3d1330=_0x23fd7e(_0x3d1330)||_0x3d1330);return _0x3d1330;},Le=(_0x1c2ccf,_0x19ff2b)=>(_0x3a6eb9,_0x310869)=>_0x19ff2b(_0x3a6eb9,_0x310869,_0x1c2ccf);let ue=class{constructor(_0x474c5c,_0x360bd1,_0x47e1d6){const _0xe16a00=_0x36542c;this[_0xe16a00(0x207)]=_0x474c5c,this[_0xe16a00(0x2c1)]=_0x360bd1,this['_docStateChangeManagerService']=_0x47e1d6;}[_0x36542c(0x2a5)](_0x167fbc){this['_transformHistoryAndStateStack'](_0x167fbc);}[_0x36542c(0x139)](_0x5cbc7f){const _0x1bb49f=_0x36542c,{unitID:_0x220df5}=_0x5cbc7f,{collaboration:_0x195311}=this['_docStateChangeManagerService'][_0x1bb49f(0x141)](_0x220df5);if(_0x195311['length']===0x0)return _0x5cbc7f;let _0x15d1c6=_0x36941c['deepClone'](_0x5cbc7f[_0x1bb49f(0x338)][0x0]);for(let _0x123c88=0x0;_0x123c88<_0x195311[_0x1bb49f(0x125)];_0x123c88++){const _0x4360f9={'id':_0x1bb49f(0x33f),'params':{'unitId':_0x195311[_0x123c88][_0x1bb49f(0x20a)],..._0x195311[_0x123c88][_0x1bb49f(0x1e9)]}},_0x234900=this[_0x1bb49f(0x2c1)]['transformMutation'](_0x15d1c6,_0x4360f9,!0x1);if(_0x5aaf2c(_0x234900))throw _0x234900[_0x1bb49f(0x245)];_0x15d1c6=_0x234900[_0x1bb49f(0x210)];}return{..._0x36941c[_0x1bb49f(0x14c)](_0x5cbc7f),'mutations':[_0x15d1c6]};}[_0x36542c(0x2b3)](_0x586129){const _0x26cf0e=_0x36542c,{unitID:_0x111073}=_0x586129,{history:_0x269b8b,collaboration:_0x1cd26b}=this[_0x26cf0e(0x2ef)]['getStateCache'](_0x111073);if(_0x269b8b[_0x26cf0e(0x125)]===0x0&&_0x1cd26b[_0x26cf0e(0x125)]===0x0)return;const _0x11d792=[],_0x3bbe18=[];let _0x1e7622=_0x36941c[_0x26cf0e(0x14c)](_0x586129[_0x26cf0e(0x338)][0x0]),_0x49d6a8=_0x36941c['deepClone'](_0x586129[_0x26cf0e(0x338)][0x0]);for(let _0x3a4562=_0x269b8b['length']-0x1;_0x3a4562>=0x0;_0x3a4562--){const _0x1ecb69={'id':_0x26cf0e(0x33f),'params':{'unitId':_0x269b8b[_0x3a4562][_0x26cf0e(0x20a)],..._0x269b8b[_0x3a4562]['undoState']}},_0xd41ca7={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x269b8b[_0x3a4562][_0x26cf0e(0x20a)],..._0x269b8b[_0x3a4562][_0x26cf0e(0x1e9)]}},_0x46fa7d=this[_0x26cf0e(0x2c1)][_0x26cf0e(0x2f4)](_0x1e7622,_0x1ecb69,!0x1),_0xd92785=this[_0x26cf0e(0x2c1)][_0x26cf0e(0x2f4)](_0x49d6a8,_0xd41ca7,!0x1);if(_0x5aaf2c(_0x46fa7d))throw _0x46fa7d[_0x26cf0e(0x245)];if(_0x5aaf2c(_0xd92785))throw _0xd92785[_0x26cf0e(0x245)];_0x11d792[_0x26cf0e(0x1e6)]({..._0x269b8b[_0x3a4562],'undoState':_0x46fa7d[_0x26cf0e(0x21e)][_0x26cf0e(0x335)],'redoState':_0xd92785['m2Prime']['params']}),_0x1e7622=_0x46fa7d[_0x26cf0e(0x210)],_0x49d6a8=_0xd92785['m1Prime'];}_0x1e7622=_0x36941c['deepClone'](_0x586129[_0x26cf0e(0x338)][0x0]),_0x49d6a8=_0x36941c[_0x26cf0e(0x14c)](_0x586129[_0x26cf0e(0x338)][0x0]);for(let _0x57d0b7=_0x1cd26b['length']-0x1;_0x57d0b7>=0x0;_0x57d0b7--){const _0x4504c0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1cd26b[_0x57d0b7]['unitId'],..._0x1cd26b[_0x57d0b7][_0x26cf0e(0x174)]}},_0x5e4eeb={'id':_0x26cf0e(0x33f),'params':{'unitId':_0x1cd26b[_0x57d0b7][_0x26cf0e(0x20a)],..._0x1cd26b[_0x57d0b7][_0x26cf0e(0x1e9)]}},_0x1e55c7=this['_transformService']['transformMutation'](_0x1e7622,_0x4504c0,!0x1),_0xba6f5d=this[_0x26cf0e(0x2c1)][_0x26cf0e(0x2f4)](_0x49d6a8,_0x5e4eeb,!0x1);if(_0x5aaf2c(_0x1e55c7))throw _0x1e55c7[_0x26cf0e(0x245)];if(_0x5aaf2c(_0xba6f5d))throw _0xba6f5d[_0x26cf0e(0x245)];_0x3bbe18['unshift']({..._0x1cd26b[_0x57d0b7],'undoState':_0x1e55c7['m2Prime'][_0x26cf0e(0x335)],'redoState':_0xba6f5d[_0x26cf0e(0x21e)][_0x26cf0e(0x335)]}),_0x1e7622=_0x1e55c7[_0x26cf0e(0x210)],_0x49d6a8=_0xba6f5d[_0x26cf0e(0x210)];}this[_0x26cf0e(0x2ef)]['setStateCache'](_0x111073,{'history':_0x11d792,'collaboration':_0x3bbe18});}};ue=In([Le(0x0,_0x338b4d(_0x2c838e)),Le(0x1,_0x20cc24),Le(0x2,_0x338b4d(_0x2cc006))],ue);var mn=Object[_0x36542c(0x281)],fn=(_0x42963f,_0x565bf3,_0x1699ea,_0x5ce703)=>{for(var _0x276269=_0x5ce703>0x1?void 0x0:_0x5ce703?mn(_0x565bf3,_0x1699ea):_0x565bf3,_0x4e4b2f=_0x42963f['length']-0x1,_0xfa6e26;_0x4e4b2f>=0x0;_0x4e4b2f--)(_0xfa6e26=_0x42963f[_0x4e4b2f])&&(_0x276269=_0xfa6e26(_0x276269)||_0x276269);return _0x276269;},ht=(_0x4a9dab,_0x4fcff0)=>(_0x3d78ee,_0xb1fdbf)=>_0x4fcff0(_0x3d78ee,_0xb1fdbf,_0x4a9dab);let de=class{constructor(_0x3b32a0,_0x33e799){const _0x5ee0a7=_0x36542c;this[_0x5ee0a7(0x207)]=_0x3b32a0,this[_0x5ee0a7(0x2c1)]=_0x33e799;}[_0x36542c(0x230)](_0x25fefe){const _0x1029d2=_0x36542c;var _0x7f8725;const _0x270fb5=this[_0x1029d2(0x207)][_0x1029d2(0x194)](_0x564962),_0x420b97=(_0x7f8725=_0x270fb5[_0x1029d2(0x157)]())!=null?_0x7f8725:[];if(_0x420b97[_0x1029d2(0x125)]===0x0)return;const _0x30df44=_0x25fefe[_0x1029d2(0x26b)],_0x102dab=[{'id':_0x1029d2(0x33f),'params':{'unitId':_0x30df44,'actions':null,'textRanges':_0x420b97}}],_0x1d3ac3=this[_0x1029d2(0x2c1)][_0x1029d2(0x266)](_0x25fefe,_0x102dab);if(!_0x41b3f2(_0x1d3ac3))throw _0x1d3ac3[_0x1029d2(0x245)];const _0x5a8cb6=_0x1d3ac3[_0x1029d2(0x21e)][0x0][_0x1029d2(0x335)]['textRanges'];Array['isArray'](_0x5a8cb6)&&_0x5a8cb6[_0x1029d2(0x125)]&&_0x270fb5[_0x1029d2(0x2cf)](_0x5a8cb6,{'unitId':_0x30df44,'subUnitId':_0x30df44},!0x1);}};de=fn([ht(0x0,_0x338b4d(_0x2c838e)),ht(0x1,_0x20cc24)],de);var gn=Object[_0x36542c(0x281)],En=(_0x4f8512,_0x4fdc59,_0x4a7a20,_0x25f195)=>{const _0x53d6f2=_0x36542c;for(var _0x4e5a4d=_0x25f195>0x1?void 0x0:_0x25f195?gn(_0x4fdc59,_0x4a7a20):_0x4fdc59,_0x3ba39d=_0x4f8512[_0x53d6f2(0x125)]-0x1,_0x3a2e97;_0x3ba39d>=0x0;_0x3ba39d--)(_0x3a2e97=_0x4f8512[_0x3ba39d])&&(_0x4e5a4d=_0x3a2e97(_0x4e5a4d)||_0x4e5a4d);return _0x4e5a4d;},U=(_0x48325e,_0x5d183d)=>(_0xfdd947,_0x222100)=>_0x5d183d(_0xfdd947,_0x222100,_0x48325e);let Se=class extends _0xc640cc{constructor(_0x37592f,_0x253540,_0x56c61d,_0x19521e,_0xd630b6,_0x185e11,_0x4f4ff1,_0x51d76e){const _0xb4f880=_0x36542c;super(),_(this,_0xb4f880(0x241),new _0x311c05(_0x23527c[_0xb4f880(0x277)])),(this['_docStateChangeManagerService']=_0x37592f,this[_0xb4f880(0x183)]=_0x253540,this[_0xb4f880(0x33e)]=_0x56c61d,this['_docTransformStateCacheService']=_0x19521e,this['_docTransformSelectionsService']=_0xd630b6,this['_docSyncEditingCollabCursorService']=_0x185e11,this[_0xb4f880(0x1e3)]=_0x4f4ff1,this['_localeService']=_0x51d76e,this[_0xb4f880(0x1e5)]());}[_0x36542c(0x1e5)](){const _0xe59914=_0x36542c;this[_0xe59914(0x2e0)](this[_0xe59914(0x183)][_0xe59914(0x195)][_0xe59914(0x1cc)](_0x360800=>{const _0x27961c=_0xe59914,_0x1601be=this['_docStateChangeManagerService'][_0x27961c(0x191)][_0x27961c(0x1cc)](_0x2e9f40=>{const _0x53ae02=_0x27961c;if(_0x2e9f40==null)return;const {unitId:_0x299759,redoState:_0x388a51,commandId:_0x4486f3}=_0x2e9f40;if(_0x299759!==_0x360800[_0x53ae02(0x26b)])return;const _0x329a89={'id':_0x4486f3,'type':_0x185fc4[_0x53ae02(0x16e)],'params':{'unitId':_0x299759,'actions':_0x388a51[_0x53ae02(0x2ea)],'textRanges':null}};_0x360800[_0x53ae02(0x238)](_0x329a89);});if(_0x360800[_0x27961c(0x2e0)](_0x1601be),_0x360800 instanceof _0x59bf88){const _0xe92968={'onTransformIME':_0x2151e5=>this[_0x27961c(0x33e)][_0x27961c(0x227)](_0x2151e5),'onTransformState':_0x23e9da=>this[_0x27961c(0x22d)][_0x27961c(0x2a5)](_0x23e9da),'onTransformSelections':_0xde0689=>this['_docTransformSelectionsService'][_0x27961c(0x230)](_0xde0689),'onSyncEditingCollabCursor':_0x188566=>this[_0x27961c(0x21b)][_0x27961c(0x162)](_0x188566),'onTransformRemoteChangesetByIMECache':_0x9d4f2c=>this[_0x27961c(0x33e)][_0x27961c(0x139)](_0x9d4f2c),'onTransformRemoteChangesetByStateCache':_0xcc262b=>this[_0x27961c(0x22d)]['transformRemoteChangeset'](_0xcc262b)};_0x360800[_0x27961c(0x242)](_0xe92968);}}));}};Se=En([U(0x0,_0x338b4d(_0x2cc006)),U(0x1,_0x338b4d(_0xeb50a)),U(0x2,_0x338b4d(he)),U(0x3,_0x338b4d(ue)),U(0x4,_0x338b4d(de)),U(0x5,_0x338b4d(ze)),U(0x6,_0x90efad),U(0x7,_0x338b4d(_0x1cbe37))],Se);var Z=(_0x266d7f=>(_0x266d7f[_0x266d7f['UNDEFINED']=0x0]=_0x36542c(0x311),_0x266d7f[_0x266d7f['OK']=0x1]='OK',_0x266d7f[_0x266d7f[_0x36542c(0x321)]=0x2]=_0x36542c(0x321),_0x266d7f[_0x266d7f[_0x36542c(0x228)]=0x3]=_0x36542c(0x228),_0x266d7f[_0x266d7f[_0x36542c(0x254)]=0x4]=_0x36542c(0x254),_0x266d7f[_0x266d7f['UNAUTHENTICATED']=0x5]=_0x36542c(0x2ec),_0x266d7f[_0x266d7f[_0x36542c(0x355)]=0x6]=_0x36542c(0x355),_0x266d7f[_0x266d7f['INVALID_ARGUMENT']=0x7]=_0x36542c(0x18f),_0x266d7f[_0x266d7f[_0x36542c(0x297)]=0x8]=_0x36542c(0x297),_0x266d7f[_0x266d7f[_0x36542c(0x35d)]=0x9]=_0x36542c(0x35d),_0x266d7f[_0x266d7f[_0x36542c(0x1c0)]=0xa]=_0x36542c(0x1c0),_0x266d7f[_0x266d7f[_0x36542c(0x25d)]=0xb]=_0x36542c(0x25d),_0x266d7f[_0x266d7f[_0x36542c(0x357)]=0xc]=_0x36542c(0x357),_0x266d7f[_0x266d7f[_0x36542c(0x1ff)]=0xd]=_0x36542c(0x1ff),_0x266d7f[_0x266d7f[_0x36542c(0x122)]=0xe]=_0x36542c(0x122),_0x266d7f[_0x266d7f['AUTHORIZE_CODE_ILLEGAL']=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x266d7f[_0x266d7f['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x36542c(0x348),_0x266d7f[_0x266d7f['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x36542c(0x2e2),_0x266d7f[_0x266d7f[_0x36542c(0x1fb)]=0x65]=_0x36542c(0x1fb),_0x266d7f[_0x266d7f['USER_NOT_FOUND']=0xc9]=_0x36542c(0x307),_0x266d7f[_0x266d7f['USER_IS_ANONYMOUS']=0xca]=_0x36542c(0x286),_0x266d7f[_0x266d7f[_0x36542c(0x314)]=0x1389]=_0x36542c(0x314),_0x266d7f[_0x266d7f[_0x36542c(0x23d)]=0x1771]=_0x36542c(0x23d),_0x266d7f[_0x266d7f['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x266d7f[_0x266d7f[_0x36542c(0x140)]=0x1773]=_0x36542c(0x140),_0x266d7f[_0x266d7f[_0x36542c(0x1f0)]=0x1b59]=_0x36542c(0x1f0),_0x266d7f[_0x266d7f[_0x36542c(0x199)]=0x1b5a]=_0x36542c(0x199),_0x266d7f[_0x266d7f[_0x36542c(0x12e)]=0x1b5b]=_0x36542c(0x12e),_0x266d7f[_0x266d7f['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x36542c(0x217),_0x266d7f[_0x266d7f[_0x36542c(0x16c)]=0x1b5d]=_0x36542c(0x16c),_0x266d7f[_0x266d7f['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x36542c(0x212),_0x266d7f[_0x266d7f[_0x36542c(0x2c9)]=0x2329]=_0x36542c(0x2c9),_0x266d7f[_0x266d7f['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x36542c(0x1da),_0x266d7f[_0x266d7f['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x266d7f[_0x266d7f[_0x36542c(0x121)]=0x232c]=_0x36542c(0x121),_0x266d7f[_0x266d7f[_0x36542c(0x2e9)]=0x232d]=_0x36542c(0x2e9),_0x266d7f[_0x266d7f[_0x36542c(0x285)]=0x2711]=_0x36542c(0x285),_0x266d7f[_0x266d7f['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x36542c(0x2fb),_0x266d7f[_0x266d7f['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x36542c(0x2eb),_0x266d7f[_0x266d7f[_0x36542c(0x1f8)]=0x2714]=_0x36542c(0x1f8),_0x266d7f[_0x266d7f[_0x36542c(0x30c)]=0x271a]=_0x36542c(0x30c),_0x266d7f[_0x266d7f[_0x36542c(0x2aa)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x266d7f[_0x266d7f[_0x36542c(0x148)]=0x271c]=_0x36542c(0x148),_0x266d7f[_0x266d7f[_0x36542c(0x13f)]=0x271d]=_0x36542c(0x13f),_0x266d7f[_0x266d7f[_0x36542c(0x1d0)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x266d7f[_0x266d7f[_0x36542c(0x2a1)]=0x271f]=_0x36542c(0x2a1),_0x266d7f[_0x266d7f[_0x36542c(0x138)]=0x2720]=_0x36542c(0x138),_0x266d7f[_0x266d7f[_0x36542c(0x223)]=0x2af9]=_0x36542c(0x223),_0x266d7f[_0x266d7f[_0x36542c(0x293)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x266d7f[_0x266d7f[_0x36542c(0x209)]=0x2ee2]='INVALID_INVITE_CODE',_0x266d7f[_0x266d7f['INVITE_CODE_REQUIRED']=0x2ee3]=_0x36542c(0x152),_0x266d7f[_0x266d7f[_0x36542c(0x1fe)]=0x2ee4]=_0x36542c(0x1fe),_0x266d7f[_0x266d7f[_0x36542c(0x2f6)]=0x2ee5]=_0x36542c(0x2f6),_0x266d7f[_0x266d7f[_0x36542c(0x347)]=0x32c9]=_0x36542c(0x347),_0x266d7f[_0x266d7f[_0x36542c(0x1bf)]=0x32ca]=_0x36542c(0x1bf),_0x266d7f[_0x266d7f[_0x36542c(0x2b7)]=0x32cb]=_0x36542c(0x2b7),_0x266d7f[_0x266d7f[_0x36542c(0x2fa)]=0x36b1]=_0x36542c(0x2fa),_0x266d7f[_0x266d7f[_0x36542c(0x146)]=0x36b2]=_0x36542c(0x146),_0x266d7f[_0x266d7f[_0x36542c(0x309)]=0x36b3]=_0x36542c(0x309),_0x266d7f[_0x266d7f[_0x36542c(0x276)]=0x36b4]=_0x36542c(0x276),_0x266d7f[_0x266d7f['ENTITLE_INVALID_COUPON_CODE']=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x266d7f[_0x266d7f[_0x36542c(0x1b8)]=0x36b6]=_0x36542c(0x1b8),_0x266d7f[_0x266d7f[_0x36542c(0x178)]=0x36b7]=_0x36542c(0x178),_0x266d7f[_0x266d7f[_0x36542c(0x2c0)]=0x36b8]=_0x36542c(0x2c0),_0x266d7f[_0x266d7f['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x36542c(0x30a),_0x266d7f[_0x266d7f[_0x36542c(0x284)]=0x3716]=_0x36542c(0x284),_0x266d7f[_0x266d7f['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0x36542c(0x200),_0x266d7f[_0x266d7f[_0x36542c(0x2e1)]=0x37dd]=_0x36542c(0x2e1),_0x266d7f[_0x266d7f[_0x36542c(0x298)]=0x3a99]=_0x36542c(0x298),_0x266d7f[_0x266d7f[_0x36542c(0x115)]=0x3a9a]=_0x36542c(0x115),_0x266d7f[_0x266d7f[_0x36542c(0x1ee)]=0x3a9b]=_0x36542c(0x1ee),_0x266d7f[_0x266d7f[_0x36542c(0x1ba)]=0x3a9c]=_0x36542c(0x1ba),_0x266d7f[_0x266d7f[_0x36542c(0x269)]=0x3a9d]=_0x36542c(0x269),_0x266d7f[_0x266d7f[_0x36542c(0x224)]=0x3a9e]=_0x36542c(0x224),_0x266d7f[_0x266d7f[_0x36542c(0x220)]=0x3a9f]=_0x36542c(0x220),_0x266d7f[_0x266d7f[_0x36542c(0x360)]=0x3e81]=_0x36542c(0x360),_0x266d7f[_0x266d7f[_0x36542c(0x120)]=-0x1]='UNRECOGNIZED',_0x266d7f))(Z||{});function vn(_0x373586){const _0x1f7519=_0x36542c;var _0x22cb1c,_0x5508bb;const _0x147bcd=(_0x22cb1c=_0x373586[_0x1f7519(0x137)])==null?void 0x0:_0x22cb1c['stage'],_0x4e2301=((_0x5508bb=_0x373586[_0x1f7519(0x137)])==null?void 0x0:_0x5508bb['totalFormulasToCalculate'])||0x0;return _0x147bcd===_0x2e6da7[_0x1f7519(0x30b)]&&_0x4e2301>0x0;}function pn(_0x31983e){const _0x8b94eb=_0x36542c;return _0x31983e['functionsExecutedState']===_0x267fe6[_0x8b94eb(0x278)];}var On=Object['getOwnPropertyDescriptor'],Tn=(_0x29b9f4,_0x539bfc,_0x592bc6,_0x367794)=>{const _0x5b1fb5=_0x36542c;for(var _0x3cf5f9=_0x367794>0x1?void 0x0:_0x367794?On(_0x539bfc,_0x592bc6):_0x539bfc,_0x19247a=_0x29b9f4[_0x5b1fb5(0x125)]-0x1,_0x1d0a68;_0x19247a>=0x0;_0x19247a--)(_0x1d0a68=_0x29b9f4[_0x19247a])&&(_0x3cf5f9=_0x1d0a68(_0x3cf5f9)||_0x3cf5f9);return _0x3cf5f9;},P=(_0x47fc3d,_0x5c74c2)=>(_0x5c0329,_0xdb7fb4)=>_0x5c74c2(_0x5c0329,_0xdb7fb4,_0x47fc3d);const Cn=_0x36542c(0x2b0),Rn=_0x36542c(0x1f6),Dn=_0x36542c(0x16a);let Ie=class extends _0xc640cc{constructor(_0x251ca1,_0x3e3496,_0x460160,_0x42e891,_0x198208,_0x5a70e9,_0x5bc970){const _0x554f44=_0x36542c;super(),_(this,'_pollingInterval',null),_(this,_0x554f44(0x24a),0x0),_(this,_0x554f44(0x234),0x0),_(this,'_taskIds',[]),_(this,_0x554f44(0x1cf),0x0),(this[_0x554f44(0x1e3)]=_0x251ca1,this[_0x554f44(0x14b)]=_0x3e3496,this[_0x554f44(0x163)]=_0x460160,this[_0x554f44(0x18b)]=_0x42e891,this[_0x554f44(0x2c2)]=_0x198208,this[_0x554f44(0x14d)]=_0x5a70e9,this[_0x554f44(0x351)]=_0x5bc970,this[_0x554f44(0x25b)]());}[_0x36542c(0x25b)](){const _0x2ac3ad=_0x36542c;this[_0x2ac3ad(0x2e0)](this[_0x2ac3ad(0x14b)]['beforeCommandExecuted']((_0x4eb364,_0x2971da)=>{const _0xac196b=_0x2ac3ad;var _0x453cdf;if(_0x4eb364['id']!==_0x384e02['id'])return;const _0x24adec=_0x4eb364['params'];if(!this[_0xac196b(0x13c)]((_0x453cdf=_0x24adec['dirtyRanges'])!=null?_0x453cdf:[]))return;if(!this[_0xac196b(0x11a)]())throw this['_checkAndWaitForCalculationPermission'](_0x4eb364,_0x2971da),this[_0xac196b(0x292)](),new _0x5548aa();})),this[_0x2ac3ad(0x2e0)](this[_0x2ac3ad(0x14b)]['onCommandExecuted']((_0xa88d45,_0x59dfe4)=>{const _0x10eb80=_0x2ac3ad;if(_0xa88d45['id']!==_0x8dbaaa['id'])return;const _0x139b0e=_0xa88d45['params'];if(vn(_0x139b0e)){const _0x1e9468=_0x52eed0();this[_0x10eb80(0x267)]['push'](_0x1e9468),this[_0x10eb80(0x31e)](_0x1e9468);}else{if(pn(_0x139b0e)&&this['_taskIds'][_0x10eb80(0x125)]>0x0){const _0x3bf258=this[_0x10eb80(0x267)][_0x10eb80(0x29e)]();this[_0x10eb80(0x2f0)](_0x3bf258);}}}));}[_0x36542c(0x1f7)](){const _0x3819fd=_0x36542c;super[_0x3819fd(0x1f7)](),this[_0x3819fd(0x225)](),this[_0x3819fd(0x267)]=[],this[_0x3819fd(0x234)]=0x0,this[_0x3819fd(0x24a)]=0x0,this[_0x3819fd(0x1cf)]=0x0;}async[_0x36542c(0x15a)](_0xba08b5,_0x525816){const _0x5907b1=_0x36542c;for(let _0xe84dde=0x0;_0xe84dde<0x1e;_0xe84dde++)try{if(await this[_0x5907b1(0x2f8)](),this[_0x5907b1(0x11a)]()){this[_0x5907b1(0x226)](_0xba08b5,_0x525816),this[_0x5907b1(0x1e3)][_0x5907b1(0x219)]({'content':this['_localeService']['t'](_0x5907b1(0x134)),'type':_0x5d4ed0[_0x5907b1(0x31d)]});return;}await new Promise(_0x4ed79e=>{const _0x563df1=_0x5907b1;this[_0x563df1(0x17a)]=window['setTimeout'](_0x4ed79e,0x3e8);});}catch(_0x3ca460){this[_0x5907b1(0x14d)][_0x5907b1(0x245)](_0x3ca460);}this[_0x5907b1(0x1e3)][_0x5907b1(0x219)]({'content':this[_0x5907b1(0x351)]['t'](_0x5907b1(0x323)),'type':_0x5d4ed0[_0x5907b1(0x2da)]});}[_0x36542c(0x226)](_0x3f2e3b,_0x5ca323){const _0x5d03e7=_0x36542c;try{this['_commandService'][_0x5d03e7(0x302)](_0x3f2e3b['id'],_0x3f2e3b['params'],_0x5ca323);}catch(_0x43caf9){this[_0x5d03e7(0x14d)]['error'](_0x43caf9);}}[_0x36542c(0x1c6)](_0x1d9588,_0x3d89e9){const _0x248ef9=_0x36542c;_0x3d89e9<this[_0x248ef9(0x1cf)]||(this[_0x248ef9(0x1cf)]=_0x3d89e9,this[_0x248ef9(0x24a)]=Number[_0x248ef9(0x167)](_0x1d9588[_0x248ef9(0x1a4)]),this['_currentUsage']=Number[_0x248ef9(0x167)](_0x1d9588['currentUsage']));}async['_startCalculationLimit'](_0x1981a3){const _0x15f91f=_0x36542c;var _0x5a1c90,_0x154db2;const _0x3bc5b4=Date[_0x15f91f(0x28d)]();try{const _0x3e9b19=((_0x5a1c90=this['_configService'][_0x15f91f(0x1e0)](_0x289bc7))==null?void 0x0:_0x5a1c90[_0x15f91f(0x2d3)])||Rn,_0x4b9cfa=(await this[_0x15f91f(0x18b)][_0x15f91f(0x21d)](_0x3e9b19,{'body':JSON[_0x15f91f(0x1a2)]({'taskId':_0x1981a3})}))['body'];if(((_0x154db2=_0x4b9cfa[_0x15f91f(0x245)])==null?void 0x0:_0x154db2[_0x15f91f(0x2e5)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x4b9cfa['limitInfo'],_0x3bc5b4);}catch(_0x54a9a0){this[_0x15f91f(0x14d)][_0x15f91f(0x245)](_0x54a9a0);}}async[_0x36542c(0x2f8)](_0x5abd5d){const _0xad8b4d=_0x36542c;var _0x4535e6,_0xfd860e;const _0x53c196=Date[_0xad8b4d(0x28d)]();try{const _0x4be8b7=((_0x4535e6=this[_0xad8b4d(0x163)][_0xad8b4d(0x1e0)](_0x289bc7))==null?void 0x0:_0x4535e6[_0xad8b4d(0x290)])||Cn,_0x286515=_0x5abd5d?_0x4be8b7+_0xad8b4d(0x30d)+encodeURIComponent(_0x5abd5d):_0x4be8b7,_0x458a2e=(await this[_0xad8b4d(0x18b)][_0xad8b4d(0x194)](_0x286515))[_0xad8b4d(0x346)];if(((_0xfd860e=_0x458a2e['error'])==null?void 0x0:_0xfd860e[_0xad8b4d(0x2e5)])!==Z['OK'])return;this[_0xad8b4d(0x1c6)](_0x458a2e[_0xad8b4d(0x251)],_0x53c196);}catch(_0x9dc976){this[_0xad8b4d(0x14d)]['error'](_0x9dc976);}}async['_releaseCalculationLimit'](_0x46dd75){const _0x529dc5=_0x36542c;var _0x17b5df,_0x1c4b48;const _0x5892c1=Date['now']();try{const _0x18f336=((_0x17b5df=this[_0x529dc5(0x163)][_0x529dc5(0x1e0)](_0x289bc7))==null?void 0x0:_0x17b5df['releaseFormulaLimitUrl'])||Dn,_0x340d30=(await this[_0x529dc5(0x18b)][_0x529dc5(0x21d)](_0x18f336,{'body':JSON['stringify']({'taskId':_0x46dd75})}))[_0x529dc5(0x346)];if(((_0x1c4b48=_0x340d30[_0x529dc5(0x245)])==null?void 0x0:_0x1c4b48[_0x529dc5(0x2e5)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x340d30[_0x529dc5(0x251)],_0x5892c1);}catch(_0xbf6824){this[_0x529dc5(0x14d)][_0x529dc5(0x245)](_0xbf6824);}}['_checkCalculationAvailable'](){const _0x29d1fb=_0x36542c;return this[_0x29d1fb(0x24a)]===0x0?!0x0:this[_0x29d1fb(0x24a)]-this[_0x29d1fb(0x234)]>0x0;}['_clearPolling'](){const _0x858e61=_0x36542c;this[_0x858e61(0x17a)]&&(clearTimeout(this['_pollingInterval']),this['_pollingInterval']=null);}[_0x36542c(0x292)](){const _0x2a3352=_0x36542c;this[_0x2a3352(0x1e3)]['show']({'content':this[_0x2a3352(0x351)]['t'](_0x2a3352(0x2e4)),'type':_0x5d4ed0[_0x2a3352(0x1dd)]});}['_hasFormulaInDirtyRanges'](_0x5e19de){const _0x35f6bb=_0x36542c;for(const _0x1e8335 of _0x5e19de){const {unitId:_0x2632ee,sheetId:_0x267c16,range:_0x406d9a}=_0x1e8335,_0x2c59de=this[_0x35f6bb(0x2c2)][_0x35f6bb(0x2ad)](_0x2632ee);if(!_0x2c59de)continue;const _0x5a5d0d=_0x2c59de[_0x35f6bb(0x316)](_0x267c16);if(!_0x5a5d0d)continue;const _0x541b29=_0x5a5d0d['getCellMatrix']();for(let _0x50ab9e=_0x406d9a[_0x35f6bb(0x350)];_0x50ab9e<=_0x406d9a[_0x35f6bb(0x279)];_0x50ab9e++)for(let _0x4d27ab=_0x406d9a[_0x35f6bb(0x2df)];_0x4d27ab<=_0x406d9a['endColumn'];_0x4d27ab++){const _0x4bcdb3=_0x541b29[_0x35f6bb(0x185)](_0x50ab9e,_0x4d27ab);if(_0x4bcdb3&&(_0x33f895(_0x4bcdb3['f'])||_0x57b445(_0x4bcdb3['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x338b4d(_0x90efad)),P(0x1,_0x344a42),P(0x2,_0x3da9ca),P(0x3,_0x338b4d(_0x5f42ec)),P(0x4,_0x4d0d85),P(0x5,_0x4838cb),P(0x6,_0x338b4d(_0x1cbe37))],Ie);var Nn=Object[_0x36542c(0x281)],bn=(_0x3905a9,_0x169ab3,_0x366aaf,_0x8feb57)=>{for(var _0x1b6a27=_0x8feb57>0x1?void 0x0:_0x8feb57?Nn(_0x169ab3,_0x366aaf):_0x169ab3,_0x10346a=_0x3905a9['length']-0x1,_0x35ae72;_0x10346a>=0x0;_0x10346a--)(_0x35ae72=_0x3905a9[_0x10346a])&&(_0x1b6a27=_0x35ae72(_0x1b6a27)||_0x1b6a27);return _0x1b6a27;},Ue=(_0xe58a2e,_0x5cd31f)=>(_0x3386af,_0x579be7)=>_0x5cd31f(_0x3386af,_0x579be7,_0xe58a2e);let He=class extends _0xc640cc{constructor(_0x4e4cba,_0x39b02a,_0xd2c1fc){const _0x2afede=_0x36542c;super(),_(this,_0x2afede(0x356),new Map()),_(this,'_saveTaskMap',new Map()),_(this,'_disabled',!0x1),(this[_0x2afede(0x163)]=_0x4e4cba,this[_0x2afede(0x19a)]=_0x39b02a,this[_0x2afede(0x201)]=_0xd2c1fc);}[_0x36542c(0x265)](){const _0x1634da=_0x36542c;this[_0x1634da(0x23a)]=!0x0;}[_0x36542c(0x117)](){const _0x4656f1=_0x36542c;this[_0x4656f1(0x23a)]=!0x1;}get[_0x36542c(0x240)](){const _0x4bd96c=_0x36542c;return this[_0x4bd96c(0x135)];}['dispose'](){const _0x40bdd1=_0x36542c;this[_0x40bdd1(0x22a)]()[_0x40bdd1(0x2de)](()=>super[_0x40bdd1(0x1f7)]());}async[_0x36542c(0x247)](_0x53b4a5){const _0x39e96c=_0x36542c;return this[_0x39e96c(0x23a)]?null:this['_localStorageService']['getItem'](_0x2b234a(_0x53b4a5));}async[_0x36542c(0x1ef)](_0x237e4e,_0x1547aa){const _0x13ef9e=_0x36542c;return!!this[_0x13ef9e(0x19a)][_0x13ef9e(0x2ab)](_0x237e4e,_0x1547aa);}[_0x36542c(0x1d9)](_0x2fccf5,_0xd1ad5f,_0x3a706f,_0x657ae3){const _0x2c8eb4=_0x36542c,_0x52f54e=this[_0x2c8eb4(0x201)][_0x2c8eb4(0x295)](_0x2fccf5);this[_0x2c8eb4(0x356)]['set'](_0x2fccf5,{'unitID':_0x2fccf5,'type':_0xd1ad5f,'awaitingChangeset':_0x3a706f,'mutations':_0x657ae3,'rev':_0x52f54e}),this['_saveTaskMap']['has'](_0x2fccf5)||this[_0x2c8eb4(0x1b9)](_0x2fccf5);}[_0x36542c(0x1b9)](_0x70c760){const _0x2f309f=_0x36542c,_0x1197ca=this[_0x2f309f(0x325)]();_0x1197ca===0x0?this[_0x2f309f(0x324)](_0x70c760):this[_0x2f309f(0x135)][_0x2f309f(0x25a)](_0x70c760,setTimeout(()=>this[_0x2f309f(0x324)](_0x70c760),_0x1197ca));}[_0x36542c(0x325)](){const _0x3a0036=_0x36542c;var _0x171444;return(_0x171444=this[_0x3a0036(0x163)][_0x3a0036(0x1e0)](_0x490f83))!=null?_0x171444:_0xf2292;}[_0x36542c(0x324)](_0xba9ce3){const _0x1d9575=_0x36542c,_0x59f3e7=this['_saveTaskMap']['get'](_0xba9ce3);return _0x59f3e7!==void 0x0&&window['clearTimeout'](_0x59f3e7),this[_0x1d9575(0x19a)]['setItem'](_0x2b234a(_0xba9ce3),this[_0x1d9575(0x356)]['get'](_0xba9ce3))[_0x1d9575(0x2de)](()=>this[_0x1d9575(0x135)][_0x1d9575(0x158)](_0xba9ce3));}async[_0x36542c(0x22a)](){const _0x42f40a=_0x36542c,_0x5d3408=[];this[_0x42f40a(0x135)]['forEach']((_0x182bb2,_0x3e88b8)=>{const _0x6de704=_0x42f40a;window[_0x6de704(0x2f9)](_0x182bb2),_0x5d3408[_0x6de704(0x133)](this['_saveCache'](_0x3e88b8)[_0x6de704(0x2de)](()=>{const _0x2ba30c=_0x6de704;this[_0x2ba30c(0x135)][_0x2ba30c(0x158)](_0x3e88b8);}));}),await Promise['all'](_0x5d3408);}};He=bn([Ue(0x0,_0x3da9ca),Ue(0x1,_0x15b36e),Ue(0x2,_0x338b4d(_0x2e162a))],He);class Ln extends _0x2e3ce9{constructor(){const _0x54d77d=_0x36542c;super(),_(this,_0x54d77d(0x2ff)),this['urlChange$']=_0x35f93f(window,_0x54d77d(0x180))['pipe'](_0x5427bd(this['dispose$']),_0x48f2bc(0x1),_0x2a8f2a(void 0x0));}[_0x36542c(0x291)](_0x109c8b,_0x1362c6,_0x5944d5=!0x1){const _0x2ec0bb=_0x36542c,_0x237174=new URL(window[_0x2ec0bb(0x275)][_0x2ec0bb(0x1a0)]);_0x237174[_0x2ec0bb(0x1fd)]['set'](_0x109c8b,_0x1362c6),_0x5944d5?window[_0x2ec0bb(0x12d)]['replaceState']('','',_0x237174['toString']()):window[_0x2ec0bb(0x12d)][_0x2ec0bb(0x236)]('','',_0x237174[_0x2ec0bb(0x153)]());}[_0x36542c(0x189)](_0x329e0d,_0x3854b2=!0x1){const _0x158192=_0x36542c,_0x1fa273=new URL(window[_0x158192(0x275)][_0x158192(0x1a0)]);_0x1fa273[_0x158192(0x1fd)]['delete'](_0x329e0d),_0x3854b2?window[_0x158192(0x12d)][_0x158192(0x1d6)]('','',_0x1fa273['toString']()):window[_0x158192(0x12d)][_0x158192(0x236)]('','',_0x1fa273[_0x158192(0x153)]());}[_0x36542c(0x12f)](_0x3a9718){const _0x46fb31=_0x36542c;var _0x1fdfde;return(_0x1fdfde=new URL(window[_0x46fb31(0x275)][_0x46fb31(0x1a0)])[_0x46fb31(0x1fd)][_0x46fb31(0x194)](_0x3a9718))!=null?_0x1fdfde:void 0x0;}}var Un=Object[_0x36542c(0x22b)],Mn=Object[_0x36542c(0x281)],An=(_0x161c54,_0x412a82,_0x4e43d1)=>_0x412a82 in _0x161c54?Un(_0x161c54,_0x412a82,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e43d1}):_0x161c54[_0x412a82]=_0x4e43d1,Pn=(_0x9d76fa,_0x8ac5e,_0x142bed,_0x341fd5)=>{for(var _0x463a55=_0x341fd5>0x1?void 0x0:_0x341fd5?Mn(_0x8ac5e,_0x142bed):_0x8ac5e,_0x5e6352=_0x9d76fa['length']-0x1,_0x545081;_0x5e6352>=0x0;_0x5e6352--)(_0x545081=_0x9d76fa[_0x5e6352])&&(_0x463a55=_0x545081(_0x463a55)||_0x463a55);return _0x463a55;},Me=(_0x129db4,_0x3dde69)=>(_0x1d7521,_0x14a51d)=>_0x3dde69(_0x1d7521,_0x14a51d,_0x129db4),wn=(_0x36ef50,_0x3ca2e2,_0x50c934)=>An(_0x36ef50,_0x3ca2e2+'',_0x50c934);const yn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ye=class extends _0x3eef90{constructor(_0x4c6e4=_t,_0x284b65,_0x1769ac,_0x31590f){const _0x1e0611=_0x36542c;super(),this['_config']=_0x4c6e4,this[_0x1e0611(0x203)]=_0x284b65,this['_injector']=_0x1769ac,this[_0x1e0611(0x163)]=_0x31590f;const {..._0x6fe669}=_0x12e663({},_t,this[_0x1e0611(0x2fe)]);this['_configService'][_0x1e0611(0x1e1)](hn,_0x6fe669);}[_0x36542c(0x149)](){const _0x3eef34=_0x36542c;this[_0x3eef34(0x15b)](),this[_0x3eef34(0x1be)]();}[_0x36542c(0x2b5)](){const _0x3fe583=_0x36542c;this[_0x3fe583(0x2d8)]();}[_0x36542c(0x15b)](){const _0x2be0e6=_0x36542c;var _0x410450;const _0x3a6a9c=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x1a891b,{'useClass':_0x566dd2}],[_0x386892,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x2be0e6(0x2fe)][_0x2be0e6(0x337)]&&_0x3a6a9c['push']([le]),_0x238b35(this[_0x2be0e6(0x207)],_0x10c9d8(_0x3a6a9c,(_0x410450=this[_0x2be0e6(0x2fe)])==null?void 0x0:_0x410450['override']));}[_0x36542c(0x2d8)](){const _0xa84da=_0x36542c;this['disposeWithMe'](this[_0xa84da(0x203)][_0xa84da(0x168)](_0x11c449[_0xa84da(0x255)],[Fe])),this[_0xa84da(0x2e0)](this[_0xa84da(0x203)][_0xa84da(0x168)](_0x11c449[_0xa84da(0x176)],[ke]));}[_0x36542c(0x1be)](){const _0x31c41c=_0x36542c;_0x878293(this[_0x31c41c(0x207)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x31c41c(0x2fe)][_0x31c41c(0x337)]&&_0x878293(this['_injector'],[[le]]);}};wn(Ye,_0x36542c(0x1f1),yn),Ye=Pn([_0x3fcff2(_0x405f63),Me(0x1,_0x325ffd),Me(0x2,_0x338b4d(_0x2c838e)),Me(0x3,_0x3da9ca)],Ye);var $n=Object[_0x36542c(0x281)],xn=(_0x5ac413,_0x5ecc46,_0x148467,_0x5c0c1a)=>{const _0x4ed07e=_0x36542c;for(var _0x1c9591=_0x5c0c1a>0x1?void 0x0:_0x5c0c1a?$n(_0x5ecc46,_0x148467):_0x5ecc46,_0x43164a=_0x5ac413[_0x4ed07e(0x125)]-0x1,_0x286746;_0x43164a>=0x0;_0x43164a--)(_0x286746=_0x5ac413[_0x43164a])&&(_0x1c9591=_0x286746(_0x1c9591)||_0x1c9591);return _0x1c9591;},J=(_0x5e210a,_0x4507d2)=>(_0x3f3039,_0x2a527d)=>_0x4507d2(_0x3f3039,_0x2a527d,_0x5e210a);let ut=class extends _0x3f9356{constructor(_0x4dd6e6,_0x494dd5,_0x22cd76,_0x577e60,_0x7d60e3){super(_0x4dd6e6,_0x494dd5,_0x22cd76,_0x577e60,_0x7d60e3);}async[_0x36542c(0x288)](_0x586243){const _0x34d884=_0x36542c,_0x15fcef=await this[_0x34d884(0x17c)](),_0x230e0d=this['_createSocketURL'](_0x586243,_0x15fcef);return this[_0x34d884(0x282)](_0x230e0d);}[_0x36542c(0x17d)](_0x40b0fa,_0x2bd05a){const _0x2a035d=_0x36542c,_0x406350=typeof window>'u'?new URL(_0x40b0fa):new URL(_0x40b0fa,window['location'][_0x2a035d(0x1ed)]);_0x406350[_0x2a035d(0x1fd)][_0x2a035d(0x25a)]('sessionTicket',_0x2bd05a);const _0x2960de=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2a035d(0x275)][_0x2a035d(0x131)]);return _0x2960de[_0x2a035d(0x194)](_0x2a035d(0x2dc))&&_0x406350[_0x2a035d(0x1fd)][_0x2a035d(0x25a)](_0x2a035d(0x2dc),_0x2960de['get']('runId')),_0x406350[_0x2a035d(0x153)]();}async[_0x36542c(0x17c)](){const _0x3fa019=_0x36542c;var _0x4e4c3b,_0x254d74,_0x4f7086;const _0x597f1e=this['_configService'][_0x3fa019(0x1e0)](_0x289bc7),_0x5e1917=(_0x4e4c3b=_0x597f1e==null?void 0x0:_0x597f1e[_0x3fa019(0x2cb)])!=null?_0x4e4c3b:_0x1745dd;return(_0x4f7086=(_0x254d74=(await this['_httpService'][_0x3fa019(0x194)](_0x5e1917,{'headers':{'Content-Type':_0x3fa019(0x20f)}}))[_0x3fa019(0x346)])==null?void 0x0:_0x254d74[_0x3fa019(0x34e)])!=null?_0x4f7086:'';}};ut=xn([J(0x0,_0x338b4d(_0x2c838e)),J(0x1,_0x338b4d(_0x5f42ec)),J(0x2,_0x3da9ca),J(0x3,_0x4838cb),J(0x4,_0x2f7663)],ut);var Bn=Object['getOwnPropertyDescriptor'],Fn=(_0x22d82d,_0x5d46c6,_0x32f847,_0x152c97)=>{const _0x3560e5=_0x36542c;for(var _0x5c8d45=_0x152c97>0x1?void 0x0:_0x152c97?Bn(_0x5d46c6,_0x32f847):_0x5d46c6,_0x381522=_0x22d82d[_0x3560e5(0x125)]-0x1,_0x4f01a2;_0x381522>=0x0;_0x381522--)(_0x4f01a2=_0x22d82d[_0x381522])&&(_0x5c8d45=_0x4f01a2(_0x5c8d45)||_0x5c8d45);return _0x5c8d45;},Ae=(_0x5f4090,_0x24feb7)=>(_0x518be4,_0x3afd88)=>_0x24feb7(_0x518be4,_0x3afd88,_0x5f4090);let dt=class extends _0xc640cc{constructor(_0x1d004c,_0x35bc66,_0x52fa68){const _0x3ec2fd=_0x36542c;super(),this[_0x3ec2fd(0x34c)]=_0x1d004c,this[_0x3ec2fd(0x18b)]=_0x35bc66,this[_0x3ec2fd(0x163)]=_0x52fa68;}async['runOnServer'](_0x5b8db4,_0x423393,_0x20cb25,..._0x48b8a2){const _0x310e38=_0x36542c;var _0x332fde,_0x2c3ef5,_0x39dcd6,_0x40f5fb;const _0x32c816=this[_0x310e38(0x34c)][_0x310e38(0x1d2)]();if(!_0x32c816)throw new Error(_0x310e38(0x1ad));const _0x51ab10=((_0x332fde=this['_configService'][_0x310e38(0x1e0)](_0x5e5c8e))!=null?_0x332fde:_0xaab990)+'/'+_0x5b8db4+_0x310e38(0x12b)+_0x423393,_0xf49b7=new URL(window['location'][_0x310e38(0x1a0)]),_0x5adffa={'scriptId':_0x5b8db4,'runId':(_0x2c3ef5=_0xf49b7['searchParams'][_0x310e38(0x194)](_0x310e38(0x2dc)))!=null?_0x2c3ef5:'','function':_0x423393,'unitId':_0x32c816['getUnitId'](),'argsOfFunction':JSON[_0x310e38(0x1a2)](_0x48b8a2),'invokeId':(_0x39dcd6=_0x20cb25[_0x310e38(0x192)])!=null?_0x39dcd6:'','executionId':(_0x40f5fb=_0x20cb25[_0x310e38(0x25e)])!=null?_0x40f5fb:''};try{const _0x2d4f6f=await this[_0x310e38(0x18b)][_0x310e38(0x21d)](_0x51ab10,{'body':_0x5adffa});return _0x2d4f6f[_0x310e38(0x346)]['error']&&_0x2d4f6f[_0x310e38(0x346)]['error'][_0x310e38(0x2e5)]!==Z['OK']?_0x310e38(0x235):_0x2d4f6f[_0x310e38(0x346)][_0x310e38(0x1d3)];}catch{return _0x310e38(0x235);}}};dt=Fn([Ae(0x0,_0x4d0d85),Ae(0x1,_0x338b4d(_0x5f42ec)),Ae(0x2,_0x3da9ca)],dt);const St=0x7530,It='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0xc640cc{constructor(){const _0x4ebc12=_0x36542c;super(),_(this,_0x4ebc12(0x24f),_0x52eed0()),_(this,_0x4ebc12(0x198),new Set()),_(this,_0x4ebc12(0x181),new Map()),_(this,'_heartbeatTimer',null),_(this,_0x4ebc12(0x186),new Map()),_(this,'_unitStatus',new Map()),this[_0x4ebc12(0x2f7)]();}[_0x36542c(0x1f7)](){const _0x58f97f=_0x36542c;super[_0x58f97f(0x1f7)](),this[_0x58f97f(0x186)][_0x58f97f(0x310)]((_0x93eec6,_0x50b235)=>this['_removeClearOtherTimer'](_0x50b235)),this[_0x58f97f(0x1d8)]&&window[_0x58f97f(0x34b)](this[_0x58f97f(0x1d8)]);}[_0x36542c(0x1bb)](_0x106c5e){const _0x2bb124=_0x36542c;return this['_ensureSubject'](_0x106c5e)[_0x2bb124(0x124)](_0x441b5e());}[_0x36542c(0x294)](_0x917230){const _0xe565f2=_0x36542c;this[_0xe565f2(0x198)][_0xe565f2(0x326)]===0x0&&this[_0xe565f2(0x2be)](),this[_0xe565f2(0x198)][_0xe565f2(0x214)](_0x917230),this[_0xe565f2(0x1ae)]({'type':0x0,'memberID':this[_0xe565f2(0x24f)],'unitIDs':[_0x917230],'isForwarded':!0x1});}[_0x36542c(0x18a)](_0x3ab81e){const _0x1ec08f=_0x36542c;this['_selfUnitIDs'][_0x1ec08f(0x158)](_0x3ab81e),this[_0x1ec08f(0x198)][_0x1ec08f(0x326)]===0x0&&this['_heartbeatTimer']&&window[_0x1ec08f(0x34b)](this[_0x1ec08f(0x1d8)]);}[_0x36542c(0x2f7)](){const _0x36663a=_0x36542c;this[_0x36663a(0x2e0)](_0x6a8bba(_0x35f93f(window,_0x36663a(0x2b6))[_0x36663a(0x1cc)](_0x105455=>{const _0x240c27=_0x36663a;if(_0x105455['key']!==It||!_0x105455['newValue'])return;const _0x3c5ab9=JSON[_0x240c27(0x173)](_0x105455[_0x240c27(0x177)]);this['_handleEvent'](_0x3c5ab9);}))),window[_0x36663a(0x116)](_0x36663a(0x118),()=>this[_0x36663a(0x1ae)]({'type':0x1,'memberID':this[_0x36663a(0x24f)],'unitIDs':Array[_0x36663a(0x35b)](this[_0x36663a(0x198)])}));}[_0x36542c(0x147)](_0x1cea68){const _0x42f1f5=_0x36542c;switch(_0x1cea68[_0x42f1f5(0x1ab)]){case 0x0:this[_0x42f1f5(0x287)](_0x1cea68);break;case 0x1:this[_0x42f1f5(0x128)](_0x1cea68);break;case 0x2:this[_0x42f1f5(0x339)](_0x1cea68);break;}}['_handleJoinEvent'](_0x147110){const _0x5279a9=_0x36542c,{unitIDs:_0x3e70c5,memberID:_0x1ff3dd,isForwarded:_0x14aa21}=_0x147110;_0x3e70c5['forEach'](_0x327bdf=>{const _0x840698=_0x4dd1;if(!_0x14aa21&&this[_0x840698(0x181)][_0x840698(0x16f)](_0x327bdf)&&this['_ensureSubject'](_0x327bdf)[_0x840698(0x21f)](_0x3e2038[_0x840698(0x1eb)]),!this[_0x840698(0x181)]['has'](_0x327bdf)||!this[_0x840698(0x181)]['get'](_0x327bdf)[_0x840698(0x16f)](_0x1ff3dd)){const _0x507a5f=this['_unitOnClients']['get'](_0x327bdf)||new Set();_0x507a5f[_0x840698(0x214)](_0x1ff3dd),this[_0x840698(0x181)][_0x840698(0x25a)](_0x327bdf,_0x507a5f),this[_0x840698(0x31c)](_0x1ff3dd);}}),_0x14aa21||this['_send']({'type':0x0,'memberID':this[_0x5279a9(0x24f)],'unitIDs':[...this[_0x5279a9(0x198)]],'isForwarded':!0x0});}[_0x36542c(0x31c)](_0x470a11){const _0x42cd23=_0x36542c;this[_0x42cd23(0x17f)](_0x470a11);const _0x281ff5=window['setTimeout'](()=>{const _0x50a6c1=_0x42cd23;this['_unitOnClients'][_0x50a6c1(0x310)](_0x3112fc=>{const _0x474d66=_0x50a6c1;_0x3112fc[_0x474d66(0x158)](_0x470a11);});},St*0x2);this['_clearOtherTimers'][_0x42cd23(0x25a)](_0x470a11,_0x281ff5);}[_0x36542c(0x17f)](_0x330590){const _0xa1b68f=_0x36542c;if(this[_0xa1b68f(0x186)][_0xa1b68f(0x16f)](_0x330590)){const _0x509a67=this[_0xa1b68f(0x186)]['get'](_0x330590);_0x509a67&&window[_0xa1b68f(0x2f9)](_0x509a67),this['_clearOtherTimers'][_0xa1b68f(0x25a)](_0x330590,null);}}['_handleLeaveEvent'](_0x5292ae){const _0x2637af=_0x36542c,{memberID:_0x171171,unitIDs:_0x20b87b}=_0x5292ae;_0x20b87b['forEach'](_0x3727a6=>{const _0x44149b=_0x4dd1;var _0x5c9241;const _0x516617=this[_0x44149b(0x181)][_0x44149b(0x194)](_0x3727a6);_0x516617&&(_0x516617[_0x44149b(0x158)](_0x171171),(_0x5c9241=this['_ensureSubject'](_0x3727a6))==null||_0x5c9241['next'](_0x516617[_0x44149b(0x326)]===0x0?_0x3e2038[_0x44149b(0x28e)]:_0x3e2038[_0x44149b(0x1eb)]));}),this[_0x2637af(0x17f)](_0x171171);}[_0x36542c(0x339)](_0x14ca0f){const _0x2cd9c1=_0x36542c;this['_scheduleClearOtherTimer'](_0x14ca0f[_0x2cd9c1(0x13d)]);}[_0x36542c(0x1ae)](_0x1b10c4){const _0x941924=_0x36542c;localStorage['setItem'](It,JSON[_0x941924(0x1a2)](_0x1b10c4));}[_0x36542c(0x2be)](){const _0x1f2232=_0x36542c;this['_heartbeatTimer']=window[_0x1f2232(0x1f2)](()=>{const _0x2e9b03=_0x1f2232;this[_0x2e9b03(0x1ae)]({'type':0x2,'memberID':this[_0x2e9b03(0x24f)]});},St);}['_ensureSubject'](_0x4c7c03){const _0x56bec8=_0x36542c;return this['_unitStatus'][_0x56bec8(0x16f)](_0x4c7c03)||this[_0x56bec8(0x296)][_0x56bec8(0x25a)](_0x4c7c03,new _0x311c05(_0x3e2038[_0x56bec8(0x28e)])),this[_0x56bec8(0x296)][_0x56bec8(0x194)](_0x4c7c03);}}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};