@univerjs-pro/collaboration-client-ui 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +16 -16
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _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 _0x3d135c=_0x352a;(function(_0x430dee,_0x2127cf){const _0x340bdc=_0x352a,_0x1bba35=_0x430dee();while(!![]){try{const _0x13d49b=parseInt(_0x340bdc(0x1cd))/0x1*(parseInt(_0x340bdc(0x355))/0x2)+parseInt(_0x340bdc(0x3c6))/0x3*(-parseInt(_0x340bdc(0x293))/0x4)+-parseInt(_0x340bdc(0x1a7))/0x5*(-parseInt(_0x340bdc(0x36a))/0x6)+parseInt(_0x340bdc(0x2b4))/0x7+-parseInt(_0x340bdc(0x2b8))/0x8*(-parseInt(_0x340bdc(0x325))/0x9)+-parseInt(_0x340bdc(0x270))/0xa*(-parseInt(_0x340bdc(0x281))/0xb)+-parseInt(_0x340bdc(0x217))/0xc*(-parseInt(_0x340bdc(0x1ec))/0xd);if(_0x13d49b===_0x2127cf)break;else _0x1bba35['push'](_0x1bba35['shift']());}catch(_0x4db6ed){_0x1bba35['push'](_0x1bba35['shift']());}}}(_0x3a36,0x93072));var Yt=Object[_0x3d135c(0x2cf)],Wt=(_0x456cc7,_0x278cb2,_0x3b1d3b)=>_0x278cb2 in _0x456cc7?Yt(_0x456cc7,_0x278cb2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b1d3b}):_0x456cc7[_0x278cb2]=_0x3b1d3b,_=(_0x948cfb,_0x17648b,_0x2eaf08)=>Wt(_0x948cfb,typeof _0x17648b!=_0x3d135c(0x1a0)?_0x17648b+'':_0x17648b,_0x2eaf08);import{jsx as _0x411ef4,jsxs as _0x1097e2}from'react/jsx-runtime';import{CollaborationStatus as _0x38ad77,CollaborationSessionService as _0xabbb75,CollaborationController as _0xded1ca,DataLoaderService as _0x27ef64,MemberService as _0x453c46,SessionStatus as _0x35853e,ILocalCacheService as _0x2ccadc,CollaborationUIEventService as _0x293f47,CollaborationUIEventId as _0x3bb0c7,DocCollaborationEntity as _0x5dc4f3,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0xced3a1,getLocalCacheKey as _0xe8f928,LOCAL_CACHE_INTERVAL as _0x2d0ea8,LOCAL_CACHE_INTERVAL_KEY as _0x24b70e,UniverCollaborationClientPlugin as _0x5af324,CollaborationSocketService as _0x284bc8,DEFAULT_WS_SESSION_TICKET_URL as _0x3883e8,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x49b1ca,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x45a3d4,UnitStatus as _0x398fca}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x222f4e,IUniverInstanceService as _0x378950,Inject as _0x5ee57b,Injector as _0x1e6ef3,Disposable as _0x292928,createIdentifier as _0x13e98f,ILogService as _0xae2fa1,ICommandService as _0x57432f,Optional as _0xc415b2,RxDisposable as _0x15001e,Workbook as _0x21e0b7,DOC_RANGE_TYPE as _0x593e47,debounce as _0x6d40da,Rectangle as _0x2457a5,DisposableCollection as _0xc9d54c,toDisposable as _0x1a7986,UniverInstanceType as _0x593d55,generateRandomId as _0x574e48,COLORS as _0x585fe8,ColorKit as _0x5d5a46,ThemeService as _0x2675ec,fromEventSubject as _0x3ee330,Tools as _0x38ee33,CommandType as _0x3abdf6,IConfigService as _0x273292,CanceledError as _0x243301,isFormulaString as _0x1f0070,isFormulaId as _0x235263,ILocalStorageService as _0x31d156,DependentOn as _0x195a33,Plugin as _0x1593ee,merge as _0x55b27f,registerDependencies as _0x4f6046,mergeOverrideWithDependencies as _0x432926,touchDependencies as _0x29b09e}from'@univerjs/core';import{useObservable as _0x6e43e0,useDependency as _0x55c414,IUIPartsService as _0x49ede7,BuiltInUIPart as _0xca84db,connectInjector as _0x790bfb,IBeforeCloseService as _0x2f05ae,IMessageService as _0x16b40d,INotificationService as _0x52dd83}from'@univerjs/ui';import{BehaviorSubject as _0x32ea2a,switchMap as _0x5d59c9,of as _0x3dbd6d,takeUntil as _0x447e87,debounceTime as _0x3904ba,Subject as _0x24efd6,filter as _0x1b1b5f,merge as _0x2d3788,combineLatest as _0x5646e8,fromEvent as _0x21b7e2,shareReplay as _0x406349,mapTo as _0x1a528b,distinctUntilChanged as _0x4b7174}from'rxjs';import{Tooltip as _0x130dc6,clsx as _0x33bbbb,MessageType as _0x1b2859}from'@univerjs/design';import{useRef as _0x3f5d6e,createElement as _0x22335a,forwardRef as _0x19795d,useCallback as _0x425513}from'react';import{IRemoteInstanceService as _0x544dc0}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x3ec138,RefRangeService as _0x40be57,SetSelectionsOperation as _0xc6bc39,SheetsSelectionsService as _0x5e078d,EffectRefRangId as _0x1dba07,handleIRemoveRow as _0x2e61a2,handleIRemoveCol as _0x4a7605,handleMoveRange as _0x68ba3e,handleInsertRow as _0x17e9e3,handleInsertRangeMoveRight as _0x148d5a,handleInsertRangeMoveDown as _0x1787af,handleInsertCol as _0x58507c,handleDeleteRangeMoveUp as _0x18fd31,handleDeleteRangeMoveLeft as _0x2c69b9,runRefRangeMutations as _0x53a540}from'@univerjs/sheets';import{Shape as _0xd020ad,Rect as _0x4c56ed,getColor as _0x17194a,RegularPolygon as _0x2b5a42,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x1dc030,Vector2 as _0x4a3b69,SHEET_VIEWPORT_KEY as _0x85a636,IRenderManagerService as _0x59b059}from'@univerjs/engine-render';import{HTTPService as _0x323dbf,ISocketService as _0x243f63,WebSocketService as _0x5e2327}from'@univerjs/network';import{IDocClipboardService as _0x193d28,NodePositionConvertToCursor as _0x1fc92c,NodePositionConvertToRectRange as _0x2bb7fb,TEXT_RANGE_LAYER_INDEX as _0x4e28ab,SetDocZoomRatioOperation as _0x2af769,DocIMEInputManagerService as _0x49457c,DocStateChangeManagerService as _0x15c2c4}from'@univerjs/docs-ui';import{IImageIoService as _0x4c9b93}from'@univerjs/drawing';import{ITransformService as _0xaced2,CollaborationEvent as _0xb9349,isTransformMutationFailure as _0x1d1f1a,isTransformMutationsWithChangesetSuccess as _0x134ffb,RevisionService as _0x52f6d7,ISnapshotServerService as _0x59772a}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x58c816,RichTextEditingMutation as _0x2f6d90,DocSelectionManagerService as _0xe90695,DocSkeletonManagerService as _0x4d2822}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x189791,serializeRangeWithSheet as _0x12817c,FormulaExecuteStageType as _0x38340e,FormulaExecutedStateType as _0x2f49dd,SetFormulaCalculationStartMutation as _0x5c8b27,SetFormulaCalculationNotificationMutation as _0x2dd533}from'@univerjs/engine-formula';import{map as _0x4b33d0,filter as _0x1fe374,throttleTime as _0x36476,takeUntil as _0x1ba58b,switchMap as _0x3dda62}from'rxjs/operators';function _0x352a(_0x42ec7b,_0x181d11){_0x42ec7b=_0x42ec7b-0x17b;const _0x3a369b=_0x3a36();let _0x352a65=_0x3a369b[_0x42ec7b];return _0x352a65;}import{SheetSkeletonManagerService as _0x55d0b8,getCoordByCell as _0x39752e,getSheetObject as _0x29c129}from'@univerjs/sheets-ui';function Ge({ref:_0x5d8651,..._0x154199}){const _0x8a1d2=_0x3d135c,{icon:_0x4d9811,id:_0x33e724,className:_0x11744a,extend:_0x252fbd,..._0x185f83}=_0x154199,_0x28b0c9=('univerjs-icon\x20univerjs-icon-'+_0x33e724+'\x20'+(_0x11744a||''))[_0x8a1d2(0x27e)](),_0x540ad3=_0x3f5d6e('_'+vi());return At(_0x4d9811,''+_0x33e724,{'defIds':_0x4d9811['defIds'],'idSuffix':_0x540ad3[_0x8a1d2(0x2dc)]},{'ref':_0x5d8651,'className':_0x28b0c9,..._0x185f83},_0x252fbd);}function At(_0x6f6eb2,_0x350592,_0x43c801,_0x4cce86,_0x2de39b){const _0x2a0c71=_0x3d135c;return _0x22335a(_0x6f6eb2['tag'],{'key':_0x350592,...gi(_0x6f6eb2,_0x43c801,_0x2de39b),..._0x4cce86},(Ei(_0x6f6eb2,_0x43c801)[_0x2a0c71(0x3c0)]||[])['map']((_0x52d731,_0x50cf0e)=>At(_0x52d731,_0x350592+'-'+_0x6f6eb2[_0x2a0c71(0x25d)]+'-'+_0x50cf0e,_0x43c801,void 0x0,_0x2de39b)));}function gi(_0x40de6f,_0x2cc80,_0x178605){const _0x42d926=_0x3d135c,_0x229b39={..._0x40de6f[_0x42d926(0x311)]};_0x178605!=null&&_0x178605['colorChannel1']&&_0x229b39[_0x42d926(0x3a0)]==='colorChannel1'&&(_0x229b39[_0x42d926(0x3a0)]=_0x178605[_0x42d926(0x1b4)]),_0x40de6f['tag']===_0x42d926(0x28f)&&_0x229b39['id']&&(_0x229b39['id']=_0x229b39['id']+_0x2cc80[_0x42d926(0x340)]),Object[_0x42d926(0x346)](_0x229b39)[_0x42d926(0x27a)](([_0x41c98e,_0x36ed97])=>{const _0x5d9095=_0x42d926;_0x41c98e==='mask'&&typeof _0x36ed97==_0x5d9095(0x27c)&&(_0x229b39[_0x41c98e]=_0x36ed97['replace'](/url\(#(.*)\)/,_0x5d9095(0x331)+_0x2cc80[_0x5d9095(0x340)]+')'));});const {defIds:_0x59d619}=_0x2cc80;return!_0x59d619||_0x59d619[_0x42d926(0x35c)]===0x0||(_0x40de6f[_0x42d926(0x25d)]===_0x42d926(0x2ac)&&_0x229b39[_0x42d926(0x363)]&&(_0x229b39[_0x42d926(0x363)]=_0x229b39['xlink:href']+_0x2cc80[_0x42d926(0x340)]),Object[_0x42d926(0x346)](_0x229b39)[_0x42d926(0x27a)](([_0x1df522,_0x42ff27])=>{const _0x28f692=_0x42d926;typeof _0x42ff27==_0x28f692(0x27c)&&(_0x229b39[_0x1df522]=_0x42ff27[_0x28f692(0x1a1)](/url\(#(.*)\)/,'url(#$1'+_0x2cc80[_0x28f692(0x340)]+')'));})),_0x229b39;}function Ei(_0x29d407,_0x1fa61f){const _0x1f3b71=_0x3d135c;var _0x1a0fd3;const {defIds:_0x47b6ae}=_0x1fa61f;return!_0x47b6ae||_0x47b6ae[_0x1f3b71(0x35c)]===0x0?_0x29d407:_0x29d407[_0x1f3b71(0x25d)]===_0x1f3b71(0x29d)&&((_0x1a0fd3=_0x29d407[_0x1f3b71(0x3c0)])!=null&&_0x1a0fd3[_0x1f3b71(0x35c)])?{..._0x29d407,'children':_0x29d407['children'][_0x1f3b71(0x31c)](_0x44d9af=>typeof _0x44d9af['attrs']['id']==_0x1f3b71(0x27c)&&_0x47b6ae&&_0x47b6ae['includes'](_0x44d9af[_0x1f3b71(0x311)]['id'])?{..._0x44d9af,'attrs':{..._0x44d9af['attrs'],'id':_0x44d9af[_0x1f3b71(0x311)]['id']+_0x1fa61f[_0x1f3b71(0x340)]}}:_0x44d9af)}:_0x29d407;}function vi(){const _0x1560d0=_0x3d135c;return Math[_0x1560d0(0x221)]()[_0x1560d0(0x35f)](0x24)[_0x1560d0(0x2b3)](0x2,0x8);}Ge['displayName']=_0x3d135c(0x1d5);const pi={'tag':_0x3d135c(0x244),'attrs':{'xmlns':_0x3d135c(0x18b),'fill':'none','viewBox':_0x3d135c(0x32e),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3d135c(0x17f)},'children':[{'tag':_0x3d135c(0x2ef),'attrs':{'stroke':'currentColor','d':_0x3d135c(0x32a),'strokeLinecap':_0x3d135c(0x2bc),'strokeLinejoin':_0x3d135c(0x2bc),'strokeWidth':1.2}}]},{'tag':_0x3d135c(0x29d),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3d135c(0x3a6)},'children':[{'tag':_0x3d135c(0x2ef),'attrs':{'fill':'white','d':_0x3d135c(0x1c1)}}]}]}],'defIds':[_0x3d135c(0x3a6)]},Pt=_0x19795d(function(_0x29d5fa,_0x41c51c){const _0x2efa6d=_0x3d135c;return _0x22335a(Ge,Object[_0x2efa6d(0x351)]({},_0x29d5fa,{'id':_0x2efa6d(0x360),'ref':_0x41c51c,'icon':pi}));});Pt[_0x3d135c(0x2ce)]='OffLineIcon';const Oi={'tag':'svg','attrs':{'xmlns':_0x3d135c(0x18b),'fill':_0x3d135c(0x1c8),'viewBox':_0x3d135c(0x1bc),'width':_0x3d135c(0x2f6),'height':_0x3d135c(0x2f6)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x3d135c(0x2ef),'attrs':{'stroke':_0x3d135c(0x377),'d':_0x3d135c(0x385),'strokeLinecap':'round','strokeLinejoin':_0x3d135c(0x2bc),'strokeWidth':1.2}}]},{'tag':_0x3d135c(0x29d),'attrs':{},'children':[{'tag':_0x3d135c(0x2b5),'attrs':{'id':_0x3d135c(0x2ed)},'children':[{'tag':_0x3d135c(0x2ef),'attrs':{'fill':_0x3d135c(0x255),'d':'M0\x200H16V16H0z','transform':_0x3d135c(0x1d2)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},wt=_0x19795d(function(_0x22f6c3,_0x5c98c7){const _0x4dfbb7=_0x3d135c;return _0x22335a(Ge,Object[_0x4dfbb7(0x351)]({},_0x22f6c3,{'id':'on-line-icon','ref':_0x5c98c7,'icon':Oi}));});wt['displayName']=_0x3d135c(0x1c6);function Ti(_0xc77747){const _0x5e88aa=_0x3d135c;switch(_0xc77747){case _0x38ad77[_0x5e88aa(0x310)]:return _0x5e88aa(0x1d4);case _0x38ad77[_0x5e88aa(0x1aa)]:return'collabStatus.conflict';case _0x38ad77[_0x5e88aa(0x1e0)]:return _0x5e88aa(0x242);case _0x38ad77[_0x5e88aa(0x28b)]:return _0x5e88aa(0x2a8);case _0x38ad77['AWAITING']:case _0x38ad77[_0x5e88aa(0x380)]:return _0x5e88aa(0x30a);case _0x38ad77[_0x5e88aa(0x229)]:case _0x38ad77[_0x5e88aa(0x299)]:return _0x5e88aa(0x345);}}function Ci(_0x30848d){const _0x4891aa=_0x3d135c,{status$:_0x5ea25f}=_0x30848d,_0x1e5f5b=_0x6e43e0(_0x5ea25f,_0x38ad77[_0x4891aa(0x28b)]),_0x15a316=_0x55c414(_0x222f4e),_0x1a2ddd=_0x55c414(_0xabbb75),_0x301de0=_0x1e5f5b!==_0x38ad77[_0x4891aa(0x310)],_0x26e6a2=_0x15a316['t'](Ti(_0x1e5f5b)),_0x424917=_0x301de0?_0x411ef4(wt,{}):_0x411ef4(Pt,{}),_0x898ca0=_0x425513(()=>{const _0x371252=_0x4891aa;_0x301de0||_0x1a2ddd[_0x371252(0x18d)]();},[_0x301de0,_0x1a2ddd]);function _0x32c7c7(){const _0x50016f=_0x4891aa;return _0x1097e2(_0x50016f(0x264),{'className':_0x50016f(0x2be),'onClick':_0x898ca0,'children':[_0x411ef4('div',{'className':_0x33bbbb('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x301de0,'univer-text-red-500':!_0x301de0}),'children':_0x424917}),_0x411ef4(_0x50016f(0x264),{'className':_0x50016f(0x32c),'children':_0x26e6a2})]});}return _0x301de0?_0x32c7c7():_0x411ef4(_0x130dc6,{'title':_0x15a316['t'](_0x4891aa(0x3b7)),'children':_0x32c7c7()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0x41574e,_0x28db9c,_0x4253c3,_0x12fa82)=>{for(var _0x3ee54c=_0x12fa82>0x1?void 0x0:_0x12fa82?Ri(_0x28db9c,_0x4253c3):_0x28db9c,_0x183acb=_0x41574e['length']-0x1,_0x534cf6;_0x183acb>=0x0;_0x183acb--)(_0x534cf6=_0x41574e[_0x183acb])&&(_0x3ee54c=_0x534cf6(_0x3ee54c)||_0x3ee54c);return _0x3ee54c;},se=(_0x10a662,_0x3455ec)=>(_0x32f999,_0x3c0227)=>_0x3455ec(_0x32f999,_0x3c0227,_0x10a662);let ae=class extends _0x292928{constructor(_0x3593d6,_0x49abf3,_0x36715c,_0xb0c511){const _0x472205=_0x3d135c;super(),_(this,_0x472205(0x2df),new _0x32ea2a(_0x38ad77[_0x472205(0x28b)])),(this['_univerInstanceService']=_0x3593d6,this[_0x472205(0x31d)]=_0x49abf3,this[_0x472205(0x204)]=_0x36715c,this[_0x472205(0x383)]=_0xb0c511,this[_0x472205(0x2c5)](),this[_0x472205(0x381)]());}['_initStatusListener'](){const _0x37e846=_0x3d135c;this[_0x37e846(0x2ec)](this[_0x37e846(0x1fa)][_0x37e846(0x37e)][_0x37e846(0x2d5)](_0x5d59c9(()=>{const _0x15511a=_0x37e846,_0x17fab5=this[_0x15511a(0x1fa)][_0x15511a(0x2ae)]();return _0x17fab5?this[_0x15511a(0x204)][_0x15511a(0x396)](_0x17fab5[_0x15511a(0x3aa)]()):_0x3dbd6d(null);}),_0x5d59c9(_0x14e41b=>_0x14e41b?_0x14e41b[_0x37e846(0x3c4)]:_0x3dbd6d(_0x38ad77[_0x37e846(0x28b)])))[_0x37e846(0x251)](_0x4a29dc=>{const _0x404a37=_0x37e846;this['_status$'][_0x404a37(0x199)](_0x4a29dc);}));}['_initStatusComponent'](){const _0xcca29a=_0x3d135c;this['disposeWithMe'](this['_uiPartsService'][_0xcca29a(0x2cd)](_0xca84db['HEADER_MENU'],()=>_0x790bfb(Ni({'status$':this[_0xcca29a(0x2df)][_0xcca29a(0x3b6)]()}),this['_injector'])));}};ae=Di([se(0x0,_0x378950),se(0x1,_0x5ee57b(_0x1e6ef3)),se(0x2,_0x5ee57b(_0xded1ca)),se(0x3,_0x49ede7)],ae);function Ni(_0x4bdade){const {status$:_0x5b2329}=_0x4bdade;return function(){return _0x411ef4(Ci,{'status$':_0x5b2329});};}const yt=_0x13e98f(_0x3d135c(0x181));var bi=Object[_0x3d135c(0x372)],Li=(_0x1fba5d,_0x367201,_0x528aff,_0x38bdfa)=>{const _0x221906=_0x3d135c;for(var _0x3aa7d3=_0x38bdfa>0x1?void 0x0:_0x38bdfa?bi(_0x367201,_0x528aff):_0x367201,_0x5bbc0b=_0x1fba5d[_0x221906(0x35c)]-0x1,_0x505192;_0x5bbc0b>=0x0;_0x5bbc0b--)(_0x505192=_0x1fba5d[_0x5bbc0b])&&(_0x3aa7d3=_0x505192(_0x3aa7d3)||_0x3aa7d3);return _0x3aa7d3;},K=(_0x1e512c,_0xfd7695)=>(_0x5c401e,_0x5850e9)=>_0xfd7695(_0x5c401e,_0x5850e9,_0x1e512c);let ce=class extends _0x15001e{constructor(_0xe2911b,_0x199dfd,_0x17a91f,_0x5ef372,_0x40bf19){const _0x2e9330=_0x3d135c;super(),this[_0x2e9330(0x2bd)]=_0xe2911b,this['_logService']=_0x199dfd,this['_commandService']=_0x17a91f,this[_0x2e9330(0x1f2)]=_0x5ef372,_0x40bf19?_0x40bf19==null||_0x40bf19[_0x2e9330(0x180)]()[_0x2e9330(0x19a)](()=>this[_0x2e9330(0x250)]()):(this['_logService'][_0x2e9330(0x1c7)]('[CollaborationDataLoaderController]',_0x2e9330(0x297)),this[_0x2e9330(0x250)]());}async[_0x3d135c(0x250)](){const _0x104690=_0x3d135c,_0x1fdc05=this['_urlService'][_0x104690(0x2ff)]('unit'),_0x2b4cef=this[_0x104690(0x2bd)][_0x104690(0x2ff)](_0x104690(0x371)),_0x364ec6=this[_0x104690(0x2bd)]['getParam']('subunit');if(!_0x1fdc05||!_0x2b4cef){this[_0x104690(0x2fb)]['debug'](_0x104690(0x3a8),_0x104690(0x205));return;}const _0xbe19a=await this['_dataLoaderService'][_0x104690(0x1b1)](_0x1fdc05,Number(_0x2b4cef),_0x364ec6);_0xbe19a&&_0xbe19a instanceof _0x21e0b7&&this[_0x104690(0x326)](_0xbe19a);}async['_setupSubUnitSync'](_0x4f664a){const _0x43cadc=_0x3d135c;await this[_0x43cadc(0x1af)](_0x4f664a),_0x4f664a['activeSheet$'][_0x43cadc(0x2d5)](_0x447e87(this[_0x43cadc(0x1c9)]))[_0x43cadc(0x251)](_0x22687b=>{const _0x4f0626=_0x43cadc;_0x22687b&&this[_0x4f0626(0x239)](_0x22687b);}),this[_0x43cadc(0x2bd)]['urlChange$'][_0x43cadc(0x2d5)](_0x447e87(this['dispose$']))[_0x43cadc(0x251)](()=>this['_updateSubUnitFromURLParams'](_0x4f664a));}[_0x3d135c(0x239)](_0x3a2f0c,_0xb28299=!0x1){const _0x482b24=_0x3d135c,_0x41490a=this['_urlService'][_0x482b24(0x2ff)](_0x482b24(0x292));_0x3a2f0c[_0x482b24(0x1b0)]()!==_0x41490a&&this['_urlService'][_0x482b24(0x23e)](_0x482b24(0x292),_0x3a2f0c[_0x482b24(0x1b0)](),_0xb28299);}async['_updateSubUnitFromURLParams'](_0x951bf5){const _0x1e8cc5=_0x3d135c;var _0x2b7087;const _0x2c0238=this[_0x1e8cc5(0x2bd)][_0x1e8cc5(0x2ff)]('subunit');if(!_0x2c0238||!_0x951bf5[_0x1e8cc5(0x2ba)](_0x2c0238)){const _0x1547ee=_0x951bf5['getUnhiddenWorksheets']()[0x0],_0x513866=_0x951bf5[_0x1e8cc5(0x2ba)](_0x1547ee);if(!_0x513866)return;this[_0x1e8cc5(0x239)](_0x513866,!0x0),await this['_commandService'][_0x1e8cc5(0x284)](_0x3ec138['id'],{'unitId':_0x951bf5[_0x1e8cc5(0x3aa)](),'subUnitId':_0x1547ee});return;}((_0x2b7087=_0x951bf5[_0x1e8cc5(0x3c2)]())==null?void 0x0:_0x2b7087[_0x1e8cc5(0x1b0)]())!==_0x2c0238&&await this[_0x1e8cc5(0x373)][_0x1e8cc5(0x284)](_0x3ec138['id'],{'unitId':_0x951bf5[_0x1e8cc5(0x3aa)](),'subUnitId':_0x2c0238});}};ce=Li([K(0x0,yt),K(0x1,_0xae2fa1),K(0x2,_0x57432f),K(0x3,_0x5ee57b(_0x27ef64)),K(0x4,_0xc415b2(_0x544dc0))],ce);var Ui=Object[_0x3d135c(0x372)],Mi=(_0x527b81,_0x22268d,_0x4838fd,_0x2d29f4)=>{const _0x47eb1e=_0x3d135c;for(var _0x4ca0e9=_0x2d29f4>0x1?void 0x0:_0x2d29f4?Ui(_0x22268d,_0x4838fd):_0x22268d,_0x4a675d=_0x527b81[_0x47eb1e(0x35c)]-0x1,_0x5283f6;_0x4a675d>=0x0;_0x4a675d--)(_0x5283f6=_0x527b81[_0x4a675d])&&(_0x4ca0e9=_0x5283f6(_0x4ca0e9)||_0x4ca0e9);return _0x4ca0e9;},rt=(_0x2ed423,_0x3d8e23)=>(_0x4566fe,_0x49d3f1)=>_0x3d8e23(_0x4566fe,_0x49d3f1,_0x2ed423);let $e=class extends _0x15001e{constructor(_0x4ea093,_0x36613a){const _0x410ae9=_0x3d135c;super(),this[_0x410ae9(0x29b)]=_0x4ea093,this[_0x410ae9(0x358)]=_0x36613a,this[_0x410ae9(0x250)]();}[_0x3d135c(0x250)](){const _0x161146=_0x3d135c,_0x417862=this;this[_0x161146(0x2ec)](this[_0x161146(0x29b)][_0x161146(0x230)]({'onBeforePasteImage':async _0x16a6a2=>{const _0x2f62af=_0x161146,_0xded098=await _0x417862['_imageIoService'][_0x2f62af(0x1ea)](_0x16a6a2);return _0xded098?{'source':_0xded098['source'],'imageSourceType':_0xded098[_0x2f62af(0x231)]}:null;}}));}};$e=Mi([rt(0x0,_0x193d28),rt(0x1,_0x4c9b93)],$e);const ot=[_0x3d135c(0x258),_0x3d135c(0x397),_0x3d135c(0x3ba),_0x3d135c(0x295),'blue.400',_0x3d135c(0x3ac)];class Ke extends _0x292928{constructor(){const _0x5bf31e=_0x3d135c;super(...arguments),_(this,_0x5bf31e(0x3c3),new Map()),_(this,_0x5bf31e(0x215),0x0);}['assignAColorForMemberID'](_0x1bb780){const _0x3afa7a=_0x3d135c;if(this[_0x3afa7a(0x3c3)][_0x3afa7a(0x236)](_0x1bb780))return this[_0x3afa7a(0x3c3)][_0x3afa7a(0x2f8)](_0x1bb780);const _0x3de5eb=ot[this['_colorIndex']];return this[_0x3afa7a(0x215)]=(this['_colorIndex']+0x1)%ot['length'],this[_0x3afa7a(0x3c3)][_0x3afa7a(0x391)](_0x1bb780,_0x3de5eb),_0x3de5eb;}}function $t(_0x5a81f7){const _0xa56893=_0x3d135c;let _0x307eef='';for(const _0x1d7cee of _0x5a81f7){const {startOffset:_0x4e89af,endOffset:_0xf30c40,isActive:_0x1ce31c,rangeType:_0x39e643,segmentId:_0x179084,segmentPage:_0x3a6e1e}=_0x1d7cee;_0x307eef[_0xa56893(0x35c)]&&(_0x307eef+=','),_0x307eef+=_0x4e89af+':'+_0xf30c40+':'+(_0x1ce31c?'1':'0')+':'+_0x39e643+':'+_0x179084+':'+_0x3a6e1e;}return _0x307eef;}function Ai(_0xde891e){const _0x180adf=_0x3d135c,_0x4c7f22=_0xde891e[_0x180adf(0x1ac)](','),_0x5a006c=[];for(const _0x2e4d9b of _0x4c7f22){const [_0x4a615c,_0x37c20e,_0x732c5a,_0x474c82,_0x4b51d0,_0x1cf67d]=_0x2e4d9b[_0x180adf(0x1ac)](':');_0x5a006c[_0x180adf(0x2b7)]({'startOffset':Number(_0x4a615c),'endOffset':Number(_0x37c20e),'collapsed':_0x4a615c===_0x37c20e,'isActive':_0x732c5a==='1','rangeType':_0x474c82===_0x593e47[_0x180adf(0x2c2)]?_0x593e47[_0x180adf(0x2c2)]:_0x593e47[_0x180adf(0x296)],'segmentId':typeof _0x4b51d0==_0x180adf(0x27c)?String(_0x4b51d0):'','segmentPage':Number(_0x1cf67d!=null?_0x1cf67d:-0x1)});}return _0x5a006c['some'](_0x3dcd0a=>_0x3dcd0a[_0x180adf(0x277)])||(_0x5a006c[0x0][_0x180adf(0x277)]=!0x0),_0x5a006c;}class ze extends _0x15001e{constructor(){const _0xb24199=_0x3d135c;super(...arguments),_(this,_0xb24199(0x286),new _0x32ea2a(null)),_(this,'collabCursorState$',this[_0xb24199(0x286)]['asObservable']());}['syncEditingCollabCursor'](_0x4cf6ba){const _0x4cdd37=_0x3d135c,{unitID:_0x1ecf4a,memberID:_0x205cce,textRanges:_0x3d5445}=_0x4cf6ba,_0x3b8e67=$t(_0x3d5445);if(_0x3b8e67==='')return;const _0x4f816f={'unitID':_0x1ecf4a,'memberID':_0x205cce,'selection':_0x3b8e67};this[_0x4cdd37(0x286)][_0x4cdd37(0x199)](_0x4f816f);}}var Pi=Object[_0x3d135c(0x372)],wi=(_0x31a1e9,_0x354333,_0x3203c4,_0x24fcd2)=>{const _0x57081c=_0x3d135c;for(var _0x1c4340=_0x24fcd2>0x1?void 0x0:_0x24fcd2?Pi(_0x354333,_0x3203c4):_0x354333,_0x55e195=_0x31a1e9[_0x57081c(0x35c)]-0x1,_0x3c5260;_0x55e195>=0x0;_0x55e195--)(_0x3c5260=_0x31a1e9[_0x55e195])&&(_0x1c4340=_0x3c5260(_0x1c4340)||_0x1c4340);return _0x1c4340;},A=(_0x1f8ea1,_0x29685c)=>(_0x1366c6,_0xec0f0b)=>_0x29685c(_0x1366c6,_0xec0f0b,_0x1f8ea1);const yi=0x12c,$i=0x64;let xe=class extends _0x15001e{constructor(_0xd8f794,_0x5bda7c,_0x565d51,_0x90ce2b,_0x289915,_0x5000c2,_0x4f2766,_0x3e5821,_0x45c296){const _0x537b47=_0x3d135c;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,_0x537b47(0x316),new _0x32ea2a(new Map())),_(this,_0x537b47(0x2ab),this[_0x537b47(0x316)][_0x537b47(0x3b6)]()),_(this,_0x537b47(0x332),new _0x32ea2a([])),_(this,'roomMembers$',this[_0x537b47(0x332)][_0x537b47(0x2d5)](_0x3904ba(yi))),_(this,'_updateLocalCursor',_0x6d40da(_0x5435c3=>{const _0x287494=_0x537b47,_0x287074={'eventID':_0xb9349[_0x287494(0x21e)],'data':{'unitID':this['unitID'],'memberID':this[_0x287494(0x2e8)][_0x287494(0x2a4)](),'selection':$t(_0x5435c3)}};this['_session'][_0x287494(0x2d1)](_0x287074,this['unitID']);},$i)),(this['unitID']=_0xd8f794,this[_0x537b47(0x2e8)]=_0x5bda7c,this['_injector']=_0x565d51,this[_0x537b47(0x1ad)]=_0x90ce2b,this['_memberService']=_0x289915,this[_0x537b47(0x3ad)]=_0x5000c2,this[_0x537b47(0x28d)]=_0x4f2766,this[_0x537b47(0x1fa)]=_0x3e5821,this['_commandService']=_0x45c296);}get[_0x3d135c(0x2f7)](){const _0x24ed57=_0x3d135c;return this[_0x24ed57(0x316)][_0x24ed57(0x39d)]();}get['roomMembers'](){const _0x4170f7=_0x3d135c;return this[_0x4170f7(0x332)]['getValue']();}[_0x3d135c(0x320)](){const _0x3b5430=_0x3d135c;super[_0x3b5430(0x320)](),this[_0x3b5430(0x316)]['next'](new Map()),this[_0x3b5430(0x316)][_0x3b5430(0x31f)](),this[_0x3b5430(0x332)][_0x3b5430(0x199)]([]),this['_roomMembers$'][_0x3b5430(0x31f)]();}['init'](){const _0x46ff4b=_0x3d135c;this[_0x46ff4b(0x250)]||(this['_init']=!0x0,this[_0x46ff4b(0x2e8)][_0x46ff4b(0x31a)]['pipe'](_0x447e87(this[_0x46ff4b(0x1c9)]))[_0x46ff4b(0x251)](_0x69a82b=>{const _0x234466=_0x46ff4b;_0x69a82b===_0x35853e[_0x234466(0x224)]?this[_0x234466(0x22a)]():this[_0x234466(0x2db)]();}),this[_0x46ff4b(0x2e8)][_0x46ff4b(0x32b)][_0x46ff4b(0x2d5)](_0x447e87(this['dispose$']))[_0x46ff4b(0x251)](_0x6b94ea=>{const _0x2c3f15=_0x46ff4b,_0x4c22a2=_0x6b94ea[_0x2c3f15(0x17d)];_0x4c22a2===_0xb9349[_0x2c3f15(0x21e)]&&this[_0x2c3f15(0x2e1)](_0x6b94ea),_0x4c22a2===_0xb9349['USERS_LEAVE']&&this[_0x2c3f15(0x354)](_0x6b94ea);}),this[_0x46ff4b(0x2ec)](this[_0x46ff4b(0x373)]['onCommandExecuted'](_0x39d3dd=>{const _0x55d27b=_0x46ff4b,_0x13a35e=_0x39d3dd[_0x55d27b(0x1f0)];_0x13a35e!=null&&this[_0x55d27b(0x274)]&&_0x39d3dd['id']===_0x58c816['id']&&_0x13a35e[_0x55d27b(0x1e9)]===this[_0x55d27b(0x36f)]&&_0x13a35e[_0x55d27b(0x1c2)]===!0x1&&_0x13a35e['ranges'][_0x55d27b(0x35c)]>0x0&&this[_0x55d27b(0x206)](_0x13a35e['ranges']);})),this[_0x46ff4b(0x3ad)][_0x46ff4b(0x2b0)][_0x46ff4b(0x2d5)](_0x447e87(this['dispose$']))[_0x46ff4b(0x251)](_0x593adf=>{const _0x100ea0=_0x46ff4b;if((_0x593adf==null?void 0x0:_0x593adf[_0x100ea0(0x36f)])!==this[_0x100ea0(0x36f)])return;const _0x5920e4={'eventID':_0xb9349[_0x100ea0(0x21e)],'data':_0x593adf};this[_0x100ea0(0x2e1)](_0x5920e4);}),this[_0x46ff4b(0x2ec)](this[_0x46ff4b(0x373)][_0x46ff4b(0x3b2)](_0x2099be=>{const _0x2d3056=_0x46ff4b;if(_0x2099be[_0x2d3056(0x1f0)]==null)return;const _0x42d1be=_0x2099be[_0x2d3056(0x1f0)];if(_0x2099be['id']!==_0x2f6d90['id']||_0x42d1be[_0x2d3056(0x1e9)]!==this['unitID'])return;const _0x128365={'id':_0x2d3056(0x20a),'params':_0x42d1be},_0x3b400e=this[_0x2d3056(0x2f7)];for(const [_0x1bac3e,_0x1f88d8]of _0x3b400e){const _0x2acc65={'id':_0x2d3056(0x20a),'params':{'unitId':this[_0x2d3056(0x36f)],'actions':null,'textRanges':_0x1f88d8[_0x2d3056(0x2a0)]}},_0x523c07=this[_0x2d3056(0x28d)][_0x2d3056(0x2da)](_0x128365,_0x2acc65,!0x1);if(_0x1d1f1a(_0x523c07))throw _0x523c07[_0x2d3056(0x2b9)];_0x3b400e[_0x2d3056(0x391)](_0x1bac3e,{..._0x1f88d8,'ranges':_0x523c07['m2Prime']['params']['textRanges']});}queueMicrotask(()=>{const _0xce7681=_0x2d3056;this[_0xce7681(0x316)]['next'](_0x3b400e);});})));}[_0x3d135c(0x2e1)](_0xbd5d76){const _0xc7056c=_0x3d135c;var _0x4e61fc,_0x3d9d1a;const {memberID:_0x256c9e,selection:_0x48c6de}=_0xbd5d76[_0xc7056c(0x2c0)],_0x248d80=Ai(_0x48c6de),_0x2cda94=(_0x3d9d1a=(_0x4e61fc=this[_0xc7056c(0x1a5)][_0xc7056c(0x3c1)](this[_0xc7056c(0x36f)],_0x256c9e))==null?void 0x0:_0x4e61fc[_0xc7056c(0x1a8)])!=null?_0x3d9d1a:_0xc7056c(0x38a),_0xa16f20={'color':this[_0xc7056c(0x1ad)][_0xc7056c(0x300)](_0x256c9e),'name':_0x2cda94,'ranges':_0x248d80},_0x43d467=this[_0xc7056c(0x2f7)];_0x43d467[_0xc7056c(0x391)](_0x256c9e,_0xa16f20),this[_0xc7056c(0x316)][_0xc7056c(0x199)](_0x43d467);}[_0x3d135c(0x354)](_0x231de3){const _0x345407=_0x3d135c,{memberID:_0x3f1d1f}=_0x231de3[_0x345407(0x2c0)],_0x2d0ad9=this[_0x345407(0x2f7)];_0x2d0ad9[_0x345407(0x3b8)](_0x3f1d1f),this['_cursorInfo$'][_0x345407(0x199)](_0x2d0ad9);}[_0x3d135c(0x22a)](){const _0x4b9f56=_0x3d135c;var _0x2110cc;if(this['_online']=!0x0,((_0x2110cc=this[_0x4b9f56(0x1fa)]['getFocusedUnit']())==null?void 0x0:_0x2110cc[_0x4b9f56(0x3aa)]())!==this['unitID'])return;const _0x249758=this[_0x4b9f56(0x31d)][_0x4b9f56(0x2f8)](_0xe90695)[_0x4b9f56(0x1f8)]();Array[_0x4b9f56(0x302)](_0x249758)&&_0x249758['length']>0x0&&this[_0x4b9f56(0x206)](_0x249758);}[_0x3d135c(0x2db)](){const _0x4d160c=_0x3d135c;this[_0x4d160c(0x274)]=!0x1;}};xe=wi([A(0x2,_0x5ee57b(_0x1e6ef3)),A(0x3,_0x5ee57b(Ke)),A(0x4,_0x5ee57b(_0x453c46)),A(0x5,_0x5ee57b(ze)),A(0x6,_0xaced2),A(0x7,_0x378950),A(0x8,_0x57432f)],xe);var xi=Object['getOwnPropertyDescriptor'],Bi=(_0x26664d,_0x29d110,_0x21482c,_0x53dedc)=>{const _0x4ad2be=_0x3d135c;for(var _0x2957b4=_0x53dedc>0x1?void 0x0:_0x53dedc?xi(_0x29d110,_0x21482c):_0x29d110,_0x201026=_0x26664d[_0x4ad2be(0x35c)]-0x1,_0x8e6072;_0x201026>=0x0;_0x201026--)(_0x8e6072=_0x26664d[_0x201026])&&(_0x2957b4=_0x8e6072(_0x2957b4)||_0x2957b4);return _0x2957b4;},B=(_0x2d5210,_0x5d321b)=>(_0x5d89be,_0x16d5f1)=>_0x5d321b(_0x5d89be,_0x16d5f1,_0x2d5210);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x408bf2=[],_0x37d3d8=!0x1;return _0x36ecb9=>{const _0x5a73a4=_0x352a;_0x408bf2[_0x5a73a4(0x2b7)](_0x36ecb9),_0x37d3d8||(_0x37d3d8=!0x0,setTimeout(()=>{const _0x433be8=_0x5a73a4;_0x408bf2[_0x433be8(0x27a)](_0x59d271=>_0x59d271()),_0x408bf2=[],_0x37d3d8=!0x1;}));};};let Be=class extends _0x15001e{constructor(_0x1a72a8,_0x4e69cd,_0x17d1b6,_0xf6a422,_0x1027ed,_0x365ec1,_0x2d313c,_0x380bfd){const _0x54c5d6=_0x3d135c;super(),_(this,_0x54c5d6(0x274),!0x1),_(this,_0x54c5d6(0x250),!0x1),_(this,_0x54c5d6(0x316),new _0x32ea2a(new Map())),_(this,_0x54c5d6(0x2ab),this[_0x54c5d6(0x316)][_0x54c5d6(0x3b6)]()),_(this,_0x54c5d6(0x332),new _0x32ea2a([])),_(this,_0x54c5d6(0x21a),this[_0x54c5d6(0x332)]['pipe'](_0x3904ba(Fi))),_(this,_0x54c5d6(0x206),_0x6d40da((_0x18ecba,_0x121954)=>{const _0x2b1376=_0x54c5d6,_0x2f425e={'eventID':_0xb9349['UPDATE_CURSOR'],'data':{'unitID':this[_0x2b1376(0x36f)],'memberID':this[_0x2b1376(0x2e8)][_0x2b1376(0x2a4)](),'selection':_0x12817c(_0x18ecba,_0x121954['range'])}};this[_0x2b1376(0x2e8)][_0x2b1376(0x2d1)](_0x2f425e,this[_0x2b1376(0x36f)]);},ki)),(this[_0x54c5d6(0x36f)]=_0x1a72a8,this[_0x54c5d6(0x2e8)]=_0x4e69cd,this[_0x54c5d6(0x31d)]=_0x17d1b6,this[_0x54c5d6(0x1ad)]=_0xf6a422,this[_0x54c5d6(0x1a5)]=_0x1027ed,this[_0x54c5d6(0x1fa)]=_0x365ec1,this[_0x54c5d6(0x373)]=_0x2d313c,this[_0x54c5d6(0x2dd)]=_0x380bfd);}get[_0x3d135c(0x2f7)](){const _0x508970=_0x3d135c;return this[_0x508970(0x316)][_0x508970(0x39d)]();}get['roomMembers'](){const _0x135178=_0x3d135c;return this[_0x135178(0x332)][_0x135178(0x39d)]();}[_0x3d135c(0x320)](){const _0x199a2e=_0x3d135c;super[_0x199a2e(0x320)](),this[_0x199a2e(0x316)][_0x199a2e(0x199)](new Map()),this[_0x199a2e(0x316)][_0x199a2e(0x31f)](),this[_0x199a2e(0x332)][_0x199a2e(0x199)]([]),this[_0x199a2e(0x332)][_0x199a2e(0x31f)]();}['init'](){const _0x4315df=_0x3d135c;this['_init']||(this[_0x4315df(0x250)]=!0x0,this[_0x4315df(0x2e8)][_0x4315df(0x31a)][_0x4315df(0x2d5)](_0x447e87(this[_0x4315df(0x1c9)]))[_0x4315df(0x251)](_0xaf5f6f=>{const _0x2e207c=_0x4315df;_0xaf5f6f===_0x35853e['ONLINE']?this[_0x2e207c(0x22a)]():this['_toggleOffline']();}),this[_0x4315df(0x2e8)][_0x4315df(0x32b)][_0x4315df(0x2d5)](_0x447e87(this['dispose$']))[_0x4315df(0x251)](_0xe0aa7=>{const _0x4bd5c6=_0x4315df,_0x4e0eda=_0xe0aa7[_0x4bd5c6(0x17d)];_0x4e0eda===_0xb9349['UPDATE_CURSOR']&&this[_0x4bd5c6(0x2e1)](_0xe0aa7),_0x4e0eda===_0xb9349[_0x4bd5c6(0x2c3)]&&this['_onCursorDelete'](_0xe0aa7);}),this[_0x4315df(0x1de)](),this[_0x4315df(0x2ec)](this[_0x4315df(0x373)][_0x4315df(0x3b2)](_0x51d9d1=>{const _0x435b41=_0x4315df;if(this['_online']&&_0x51d9d1['id']===_0xc6bc39['id']&&_0x51d9d1[_0x435b41(0x1f0)][_0x435b41(0x1e9)]===this[_0x435b41(0x36f)]){const _0x5016e2=_0x51d9d1[_0x435b41(0x1f0)];this[_0x435b41(0x206)](_0x5016e2[_0x435b41(0x1f1)],_0x5016e2[_0x435b41(0x24f)][0x0]);}})));}['_onCursorUpdate'](_0x4f1923){const _0x5b850b=_0x3d135c;var _0x1fe4a0,_0x597129;const {memberID:_0x5e01c9,selection:_0x160a09}=_0x4f1923[_0x5b850b(0x2c0)],{sheetName:_0x59186a,range:_0x187df8}=_0x189791(_0x160a09),_0x6b8a4d={'name':(_0x597129=(_0x1fe4a0=this['_memberService'][_0x5b850b(0x3c1)](this[_0x5b850b(0x36f)],_0x5e01c9))==null?void 0x0:_0x1fe4a0[_0x5b850b(0x1a8)])!=null?_0x597129:_0x5b850b(0x38a),'range':this['_getMergeRange'](_0x59186a,_0x187df8),'sheetID':_0x59186a,'color':this[_0x5b850b(0x1ad)][_0x5b850b(0x300)](_0x5e01c9),'selection':_0x160a09},_0x10cf88=this[_0x5b850b(0x2f7)];_0x10cf88[_0x5b850b(0x391)](_0x5e01c9,_0x6b8a4d),this[_0x5b850b(0x316)][_0x5b850b(0x199)](_0x10cf88);}['_onCursorDelete'](_0xf22e7b){const _0x2fec84=_0x3d135c,{memberID:_0x2f7c52}=_0xf22e7b['data'],_0x427145=this[_0x2fec84(0x2f7)];_0x427145[_0x2fec84(0x3b8)](_0x2f7c52),this['_cursorInfo$'][_0x2fec84(0x199)](_0x427145);}['_getMergeRange'](_0x5ad7d2,_0x430f61){const _0x3a2c14=_0x3d135c;var _0x19a0d9,_0x2c91ed;const _0x226656=(_0x2c91ed=(_0x19a0d9=this['_univerInstanceService'][_0x3a2c14(0x1bf)](this[_0x3a2c14(0x36f)]))==null?void 0x0:_0x19a0d9['getSheetBySheetId'](_0x5ad7d2))==null?void 0x0:_0x2c91ed['getMergeData']();return(_0x226656==null?void 0x0:_0x226656[_0x3a2c14(0x2c4)](_0x49ac1c=>_0x2457a5[_0x3a2c14(0x1a9)](_0x49ac1c,_0x430f61)))||_0x430f61;}[_0x3d135c(0x1de)](){const _0x4f297d=_0x3d135c,_0xea4d8e=new _0xc9d54c(),_0x35e961=Hi(),_0x5a0c87=()=>{const _0x156c58=_0x352a;_0xea4d8e[_0x156c58(0x320)]();const _0x5da7de=(_0x284e8b,_0x3041c0,_0x44beab,_0x19a253)=>{const _0x3b80bf=_0x156c58;let _0x52c436=[];switch(_0x284e8b['id']){case _0x1dba07[_0x3b80bf(0x2f9)]:{_0x52c436=_0x2c69b9(_0x284e8b,_0x19a253);break;}case _0x1dba07[_0x3b80bf(0x211)]:{_0x52c436=_0x18fd31(_0x284e8b,_0x19a253);break;}case _0x1dba07[_0x3b80bf(0x196)]:{_0x52c436=_0x58507c(_0x284e8b,_0x19a253);break;}case _0x1dba07[_0x3b80bf(0x374)]:{_0x52c436=_0x1787af(_0x284e8b,_0x19a253);break;}case _0x1dba07[_0x3b80bf(0x2f4)]:{_0x52c436=_0x148d5a(_0x284e8b,_0x19a253);break;}case _0x1dba07[_0x3b80bf(0x388)]:{_0x52c436=_0x17e9e3(_0x284e8b,_0x19a253);break;}case _0x1dba07['MoveRangeCommandId']:{_0x52c436=_0x68ba3e(_0x284e8b,_0x19a253);break;}case _0x1dba07[_0x3b80bf(0x1b7)]:{_0x52c436=_0x4a7605(_0x284e8b,_0x19a253);break;}case _0x1dba07['RemoveRowCommandId']:{_0x52c436=_0x2e61a2(_0x284e8b,_0x19a253);break;}}const _0x5d25d4=_0x53a540(_0x52c436,_0x19a253),_0x4a5ce5=this[_0x3b80bf(0x2f7)]['get'](_0x3041c0);if(_0x4a5ce5&&_0x5d25d4){const _0x47a7fa={..._0x4a5ce5,'range':_0x5d25d4};this[_0x3b80bf(0x2f7)][_0x3b80bf(0x391)](_0x3041c0,_0x47a7fa),_0x35e961(()=>{const _0x415127=_0x3b80bf,_0x321fe2=this[_0x415127(0x2dd)]['registerRefRange'](_0x5d25d4,_0x1e5039=>(_0x321fe2['dispose'](),_0x5da7de(_0x1e5039,_0x3041c0,_0x44beab,_0x5d25d4)));_0xea4d8e[_0x415127(0x1b9)](_0x321fe2);});}return{'redos':[],'undos':[]};};this[_0x156c58(0x2f7)][_0x156c58(0x27a)]((_0x55f118,_0x468c23)=>{const _0x53d0fa=_0x156c58,{range:_0x3a5b2f,sheetID:_0x56f475}=_0x55f118,_0x17a3f2=this[_0x53d0fa(0x2dd)]['registerRefRange'](_0x3a5b2f,_0x1291f9=>(_0x17a3f2[_0x53d0fa(0x320)](),_0x5da7de(_0x1291f9,_0x468c23,_0x56f475,_0x3a5b2f)));_0xea4d8e['add'](_0x17a3f2);});};this[_0x4f297d(0x2ec)](_0x1a7986(this[_0x4f297d(0x316)][_0x4f297d(0x251)](()=>{_0x5a0c87();})));}[_0x3d135c(0x22a)](){const _0x4a7fa0=_0x3d135c;var _0x3b4e57,_0x513415;if(this['_online']=!0x0,((_0x3b4e57=this['_univerInstanceService'][_0x4a7fa0(0x2ae)]())==null?void 0x0:_0x3b4e57[_0x4a7fa0(0x3aa)]())!==this[_0x4a7fa0(0x36f)])return;const _0x5b9c83=(_0x513415=this['_injector']['get'](_0x5e078d)[_0x4a7fa0(0x38d)]())==null?void 0x0:_0x513415[0x0],_0x3b42c2=this[_0x4a7fa0(0x1fa)][_0x4a7fa0(0x29a)](_0x593d55[_0x4a7fa0(0x376)])[_0x4a7fa0(0x3c2)]();_0x5b9c83&&_0x3b42c2&&this[_0x4a7fa0(0x206)](_0x3b42c2[_0x4a7fa0(0x1b0)](),_0x5b9c83);}[_0x3d135c(0x2db)](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0x5ee57b(_0x1e6ef3)),B(0x3,_0x5ee57b(Ke)),B(0x4,_0x5ee57b(_0x453c46)),B(0x5,_0x378950),B(0x6,_0x57432f),B(0x7,_0x5ee57b(_0x40be57))],Be);var Yi=Object[_0x3d135c(0x372)],Wi=(_0x47e895,_0x4248cf,_0x4c1b41,_0x3bc27e)=>{const _0x33416e=_0x3d135c;for(var _0xb76c8b=_0x3bc27e>0x1?void 0x0:_0x3bc27e?Yi(_0x4248cf,_0x4c1b41):_0x4248cf,_0x41007c=_0x47e895[_0x33416e(0x35c)]-0x1,_0x2a320b;_0x41007c>=0x0;_0x41007c--)(_0x2a320b=_0x47e895[_0x41007c])&&(_0xb76c8b=_0x2a320b(_0xb76c8b)||_0xb76c8b);return _0xb76c8b;},Ce=(_0x12732c,_0x335fc4)=>(_0x3a781b,_0x2c04e4)=>_0x335fc4(_0x3a781b,_0x2c04e4,_0x12732c);let H=class extends _0x15001e{constructor(_0x407979,_0x2455a5,_0x227a52){const _0x45598a=_0x3d135c;super(),_(this,_0x45598a(0x26d),new Map()),_(this,'_entityInit$',new _0x24efd6()),(this[_0x45598a(0x1fa)]=_0x407979,this[_0x45598a(0x31d)]=_0x2455a5,this['_collabSessionService']=_0x227a52,this[_0x45598a(0x250)]());}[_0x3d135c(0x320)](){const _0x530aa1=_0x3d135c;super['dispose'](),this[_0x530aa1(0x275)]['complete'](),this[_0x530aa1(0x26d)][_0x530aa1(0x27a)](_0x31630a=>_0x31630a[_0x530aa1(0x320)]());}[_0x3d135c(0x1ef)](_0x15b5a8){const _0x2779f7=_0x3d135c;return this[_0x2779f7(0x26d)]['has'](_0x15b5a8)?this['_entities'][_0x2779f7(0x2f8)](_0x15b5a8)['cursorInfo$']:this[_0x2779f7(0x275)][_0x2779f7(0x2d5)](_0x1b1b5f(_0x5b073a=>_0x5b073a['unitID']===_0x15b5a8),_0x5d59c9(_0x2cd68a=>_0x2cd68a[_0x2779f7(0x2ab)]));}['_init'](){const _0x22cf4d=_0x3d135c;this[_0x22cf4d(0x1fa)][_0x22cf4d(0x3bf)](_0x593d55['UNIVER_SHEET'])[_0x22cf4d(0x2d5)](_0x447e87(this['dispose$']))[_0x22cf4d(0x251)](async _0x1b65e8=>{const _0x48dc4d=_0x22cf4d,_0x59cf75=_0x1b65e8[_0x48dc4d(0x3aa)](),_0x2e696d=await this[_0x48dc4d(0x3c7)](_0x59cf75);this[_0x48dc4d(0x275)]['next'](_0x2e696d),this[_0x48dc4d(0x26d)][_0x48dc4d(0x391)](_0x59cf75,_0x2e696d);}),this[_0x22cf4d(0x1fa)][_0x22cf4d(0x3bf)](_0x593d55[_0x22cf4d(0x2e3)])[_0x22cf4d(0x2d5)](_0x447e87(this[_0x22cf4d(0x1c9)]))[_0x22cf4d(0x2d5)](_0x1b1b5f(_0x121e5d=>!_0x121e5d['getUnitId']()['startsWith']('__')))[_0x22cf4d(0x251)](async _0x3255b1=>{const _0x5ea871=_0x22cf4d,_0x46386d=_0x3255b1[_0x5ea871(0x3aa)](),_0xa6010c=await this[_0x5ea871(0x26a)](_0x46386d);this[_0x5ea871(0x275)][_0x5ea871(0x199)](_0xa6010c),this[_0x5ea871(0x26d)][_0x5ea871(0x391)](_0x46386d,_0xa6010c);}),_0x2d3788(this['_univerInstanceService'][_0x22cf4d(0x1fe)](_0x593d55[_0x22cf4d(0x2e3)]),this[_0x22cf4d(0x1fa)][_0x22cf4d(0x1fe)](_0x593d55[_0x22cf4d(0x376)]))[_0x22cf4d(0x2d5)](_0x447e87(this[_0x22cf4d(0x1c9)]))[_0x22cf4d(0x251)](_0x9b36b5=>{const _0x38c644=_0x22cf4d,_0x1ac40e=_0x9b36b5['getUnitId'](),_0x4c11d0=this[_0x38c644(0x26d)][_0x38c644(0x2f8)](_0x1ac40e);_0x4c11d0&&(_0x4c11d0[_0x38c644(0x320)](),this[_0x38c644(0x26d)]['delete'](_0x1ac40e));});}async[_0x3d135c(0x3c7)](_0x189f55){const _0x4a8dc3=_0x3d135c,_0x545596=await this[_0x4a8dc3(0x26c)][_0x4a8dc3(0x1d3)](_0x189f55),_0x41efa6=this[_0x4a8dc3(0x31d)][_0x4a8dc3(0x18f)](Be,_0x189f55,_0x545596);return _0x41efa6[_0x4a8dc3(0x1c3)](),_0x41efa6;}async[_0x3d135c(0x26a)](_0x48b51b){const _0x24b574=_0x3d135c,_0x20bc18=await this[_0x24b574(0x26c)]['requireSession'](_0x48b51b),_0x5816a3=this[_0x24b574(0x31d)][_0x24b574(0x18f)](xe,_0x48b51b,_0x20bc18);return _0x5816a3[_0x24b574(0x1c3)](),_0x5816a3;}};H=Wi([Ce(0x0,_0x378950),Ce(0x1,_0x5ee57b(_0x1e6ef3)),Ce(0x2,_0x5ee57b(_0xabbb75))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x3a7ed2,_0x37e8a8){const _0x4a6595=_0x3d135c;let {radius:_0x57d720,width:_0x5392d0,height:_0x56f6f6}=_0x37e8a8;_0x57d720=_0x57d720!=null?_0x57d720:0x0,_0x5392d0=_0x5392d0!=null?_0x5392d0:0x1e,_0x56f6f6=_0x56f6f6!=null?_0x56f6f6:0x1e;let _0x3f2db6=0x0,_0x246a15=0x0,_0x2cabbf=0x0;_0x3f2db6=_0x246a15=_0x2cabbf=Math[_0x4a6595(0x19c)](_0x57d720,_0x5392d0/0x2,_0x56f6f6/0x2),_0x3a7ed2[_0x4a6595(0x2cc)](),_0x3a7ed2[_0x4a6595(0x1a2)](_0x3f2db6,0x0),_0x3a7ed2[_0x4a6595(0x30c)](_0x5392d0-_0x246a15,0x0),_0x3a7ed2['arc'](_0x5392d0-_0x246a15,_0x246a15,_0x246a15,Math['PI']*0x3/0x2,0x0,!0x1),_0x3a7ed2[_0x4a6595(0x30c)](_0x5392d0,_0x56f6f6-_0x2cabbf),_0x3a7ed2[_0x4a6595(0x3bb)](_0x5392d0-_0x2cabbf,_0x56f6f6-_0x2cabbf,_0x2cabbf,0x0,Math['PI']/0x2,!0x1),_0x3a7ed2[_0x4a6595(0x30c)](0x0,_0x56f6f6),_0x3a7ed2['lineTo'](0x0,_0x3f2db6),_0x3a7ed2[_0x4a6595(0x3bb)](_0x3f2db6,_0x3f2db6,_0x3f2db6,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3a7ed2[_0x4a6595(0x26b)](),_0x37e8a8[_0x4a6595(0x3a0)]&&(_0x3a7ed2[_0x4a6595(0x353)](),_0x3a7ed2[_0x4a6595(0x2fe)]=_0x37e8a8['fill'],_0x37e8a8[_0x4a6595(0x200)]===_0x4a6595(0x220)?_0x3a7ed2[_0x4a6595(0x3a0)]('evenodd'):_0x3a7ed2[_0x4a6595(0x3a0)](),_0x3a7ed2['restore']());}class ve extends _0xd020ad{constructor(_0x348f22,_0x3277de){const _0x33697a=_0x3d135c;super(_0x348f22,_0x3277de),_(this,_0x33697a(0x2e9)),_(this,_0x33697a(0x272)),(this[_0x33697a(0x2e9)]=_0x3277de==null?void 0x0:_0x3277de['color'],this[_0x33697a(0x272)]=_0x3277de==null?void 0x0:_0x3277de[_0x33697a(0x272)]);}static[_0x3d135c(0x23b)](_0x22eb95,_0x31e900){const _0x2f42e9=_0x3d135c,{text:_0xd3aedf,color:_0x344dcd}=_0x31e900;_0x22eb95[_0x2f42e9(0x353)](),_0x22eb95[_0x2f42e9(0x26f)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x20ee80=_0x22eb95[_0x2f42e9(0x240)](_0xd3aedf)[_0x2f42e9(0x18e)],_0x4a0102=Math[_0x2f42e9(0x19c)](_0x20ee80+0x2*Re,at);ji(_0x22eb95,{'height':Q,'radius':0x4,'width':_0x4a0102,'fill':_0x344dcd}),_0x22eb95[_0x2f42e9(0x2fe)]='#FFF';const _0x27b59c=Re,_0xdf8603=Q-Vi,_0x339032=at-0x2*Re;if(_0x20ee80>_0x339032){let _0x1ace4e='',_0x57b192=0x0;for(const _0x29b17e of _0xd3aedf){const _0x18b1df=_0x22eb95['measureText'](_0x29b17e)[_0x2f42e9(0x18e)];if(_0x57b192+_0x18b1df<=_0x339032-_0x22eb95[_0x2f42e9(0x240)]('...')[_0x2f42e9(0x18e)])_0x1ace4e+=_0x29b17e,_0x57b192+=_0x18b1df;else{_0x1ace4e+='...';break;}}_0x22eb95[_0x2f42e9(0x1ed)](_0x1ace4e,_0x27b59c,_0xdf8603);}else _0x22eb95[_0x2f42e9(0x1ed)](_0xd3aedf,_0x27b59c,_0xdf8603);_0x22eb95[_0x2f42e9(0x20c)]();}[_0x3d135c(0x336)](_0x35bc95){const _0x1a4af8=_0x3d135c;ve[_0x1a4af8(0x23b)](_0x35bc95,this);}}const De=_0x3d135c(0x197),Xi=_0x3d135c(0x30f),Gi=_0x3d135c(0x1eb),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji='rgba(255,\x20255,\x20255,\x200.01)';class ct{constructor(_0x1e052e,_0x39b7e6,_0x4fad5e,_0x5a9efc){const _0x46be76=_0x3d135c;_(this,_0x46be76(0x2d8),[]),_(this,_0x46be76(0x219),null),_(this,_0x46be76(0x2d9),null),_(this,_0x46be76(0x2e7),null),_(this,_0x46be76(0x233),null),_(this,'_eventUnsubscribe',null),(this[_0x46be76(0x3a9)]=_0x1e052e,this[_0x46be76(0x37b)]=_0x39b7e6,this[_0x46be76(0x222)]=_0x4fad5e,this['_document']=_0x5a9efc,this['_render']());}set[_0x3d135c(0x249)](_0x17b5f0){const _0x221b0f=_0x3d135c;_0x17b5f0?(this['_anchorDot']&&this[_0x221b0f(0x2e7)][_0x221b0f(0x256)](),this[_0x221b0f(0x2d9)]&&this[_0x221b0f(0x2d9)][_0x221b0f(0x245)]()):(this[_0x221b0f(0x2e7)]&&this['_anchorDot'][_0x221b0f(0x245)](),this[_0x221b0f(0x2d9)]&&this[_0x221b0f(0x2d9)][_0x221b0f(0x256)]());}[_0x3d135c(0x320)](){const _0x866c21=_0x3d135c;for(const _0x2a266d of this[_0x866c21(0x2d8)])_0x2a266d[_0x866c21(0x320)]();this[_0x866c21(0x2d9)]&&this[_0x866c21(0x2d9)][_0x866c21(0x320)](),this[_0x866c21(0x2e7)]&&this[_0x866c21(0x2e7)][_0x866c21(0x320)](),this[_0x866c21(0x219)]&&this[_0x866c21(0x219)][_0x866c21(0x320)](),this[_0x866c21(0x1d1)]&&this[_0x866c21(0x1d1)]();}[_0x3d135c(0x22d)](){const _0x46f0c5=_0x3d135c;var _0x3633b0;const {_docSkeleton:_0x229b6e,_document:_0x456924}=this,{color:_0x3fce7e,name:_0xef683c,ranges:_0x1ba53f}=this[_0x46f0c5(0x3a9)],_0x509ca6=_0x456924['getOffsetConfig'](),{docsLeft:_0x1f2d2d,docsTop:_0x2cf80b}=_0x509ca6,_0x33982d=new _0x1fc92c(_0x509ca6,_0x229b6e);for(const {startOffset:_0x4d075a,endOffset:_0x3a0bcb,rangeType:_0x4f9f00,segmentId:_0x13de6f,segmentPage:_0x512add,collapsed:_0x3ae0b6,isActive:_0x87da4}of _0x1ba53f){const _0x5ea1ad=_0x229b6e[_0x46f0c5(0x32f)](_0x4d075a,!0x0,_0x13de6f,_0x512add);let _0x3c49b6=_0x229b6e['findNodePositionByCharIndex'](_0x3a0bcb,!0x0,_0x13de6f,_0x512add);if(_0x3c49b6==null&&(_0x3c49b6=_0x229b6e[_0x46f0c5(0x32f)](_0x3a0bcb-0x1,!0x1,_0x13de6f,_0x512add)),_0x87da4){const {contentBoxPointGroup:_0x2bf6c7}=_0x33982d[_0x46f0c5(0x37d)](_0x3c49b6,_0x3c49b6);if(_0x2bf6c7[_0x46f0c5(0x35c)]===0x0)continue;this['_drawAnchor'](_0x3fce7e,_0x2bf6c7,_0x1f2d2d,_0x2cf80b,_0xef683c),this[_0x46f0c5(0x1d1)]=this['_handleHover']();}if(_0x5ea1ad&&_0x3c49b6){if(_0x4f9f00===_0x593e47[_0x46f0c5(0x296)]){const _0x300bf3=new _0x2bb7fb(_0x509ca6,_0x229b6e),{pointGroup:_0x4c4bf9}=(_0x3633b0=_0x300bf3[_0x46f0c5(0x37d)](_0x5ea1ad,_0x3c49b6))!=null?_0x3633b0:{};if(_0x4c4bf9==null||_0x4c4bf9[_0x46f0c5(0x35c)]===0x0)continue;this[_0x46f0c5(0x1a4)](_0x3fce7e,_0x4c4bf9,_0x1f2d2d,_0x2cf80b);}else{if(!_0x3ae0b6){const {borderBoxPointGroup:_0x352b51}=_0x33982d[_0x46f0c5(0x37d)](_0x5ea1ad,_0x3c49b6);if(_0x352b51[_0x46f0c5(0x35c)]===0x0)continue;this[_0x46f0c5(0x314)](_0x3fce7e,_0x352b51,_0x1f2d2d,_0x2cf80b);}}}}}[_0x3d135c(0x261)](_0xc2ed49,_0x227edd,_0x161cd6,_0x1e8097,_0x37af5e){const _0x2ab483=_0x3d135c,_0x5c6d18=this['_getAnchorBounding'](_0x227edd),{left:_0xca4f44,top:_0x4baff2,height:_0xece0de}=_0x5c6d18,_0x21c9a7=this[_0x2ab483(0x2d6)](),_0xbba2e8=zi/_0x21c9a7,_0x7acb91=new _0x4c56ed(De+_0x574e48(z),{'left':_0xca4f44+_0x161cd6-_0xbba2e8,'top':_0x4baff2+_0x1e8097,'height':_0xece0de,'width':Ki,'fill':_0xc2ed49||_0x17194a(_0x585fe8[_0x2ab483(0x1a6)],0x0),'strokeWidth':_0xbba2e8,'stroke':Ji,'evented':!0x0});this[_0x2ab483(0x219)]=_0x7acb91,this[_0x2ab483(0x37b)][_0x2ab483(0x3a4)](_0x7acb91,_0x4e28ab);const _0xa71d7b=new _0x4c56ed(De+_0x574e48(z),{'left':_0xca4f44+_0x161cd6-_0xbba2e8,'top':_0x4baff2+_0x1e8097-Ne/0x2,'height':Ne,'width':Ne,'fill':_0xc2ed49||_0x17194a(_0x585fe8[_0x2ab483(0x1a6)],0x0),'strokeWidth':0x0,'stroke':_0xc2ed49||_0x17194a(_0x585fe8[_0x2ab483(0x1a6)],0x0),'evented':!0x1});this[_0x2ab483(0x2e7)]=_0xa71d7b,this[_0x2ab483(0x37b)]['addObject'](_0xa71d7b,_0x4e28ab);const _0x2e538f=new ve(De+_0x574e48(z),{'left':_0xca4f44+_0x161cd6-_0xbba2e8,'top':_0x4baff2+_0x1e8097-Q,'text':_0x37af5e,'color':_0xc2ed49});this[_0x2ab483(0x2d9)]=_0x2e538f,this[_0x2ab483(0x37b)][_0x2ab483(0x3a4)](_0x2e538f,_0x4e28ab),this['_hover']=!0x1;}[_0x3d135c(0x337)](){const _0x39a7a6=_0x3d135c,_0xfbacbd=this[_0x39a7a6(0x219)][_0x39a7a6(0x34d)]['subscribeEvent'](()=>{const _0x18ffe8=_0x39a7a6;this[_0x18ffe8(0x249)]=!0x0;}),_0x19762d=this[_0x39a7a6(0x219)]['onPointerLeave$'][_0x39a7a6(0x3af)](()=>{const _0x584689=_0x39a7a6;this[_0x584689(0x233)]&&clearTimeout(this['_hideTimer']),this[_0x584689(0x233)]=setTimeout(()=>{const _0x36dada=_0x584689;this[_0x36dada(0x249)]=!0x1;},0x7d0);});return()=>{const _0x230abb=_0x39a7a6;_0xfbacbd['unsubscribe'](),_0x19762d[_0x230abb(0x357)]();};}[_0x3d135c(0x314)](_0x1e6be8,_0xb8c579,_0x25329f,_0x6cd7d7){const _0x5a2146=_0x3d135c,_0x2ab88b=new _0x5d5a46(_0x1e6be8)['setAlpha'](0.2)[_0x5a2146(0x24e)](),_0x1db575=new _0x2b5a42(Xi+_0x574e48(z),{'pointsGroup':_0xb8c579,'fill':_0x2ab88b||_0x17194a(_0x585fe8[_0x5a2146(0x1a6)],0.2),'left':_0x25329f,'top':_0x6cd7d7,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x5a2146(0x2b7)](_0x1db575),this[_0x5a2146(0x37b)][_0x5a2146(0x3a4)](_0x1db575,_0x4e28ab);}['_drawRectRange'](_0xb140d5,_0x4903eb,_0x1564dc,_0x4a3db1){const _0x316017=_0x3d135c,_0x4bb427=new _0x5d5a46(_0xb140d5)[_0x316017(0x298)](0.2)['toRgbString'](),_0x663cf=new _0x2b5a42(Gi+_0x574e48(z),{'pointsGroup':_0x4903eb,'fill':_0x4bb427||_0x17194a(_0x585fe8['black'],0.2),'left':_0x1564dc,'top':_0x4a3db1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x316017(0x2d8)][_0x316017(0x2b7)](_0x663cf),this[_0x316017(0x37b)]['addObject'](_0x663cf,_0x4e28ab);}['_getAnchorBounding'](_0x48ad4f){const _0x1edb4a=_0x48ad4f[0x0],_0x44a829=_0x1edb4a[0x0],_0xea3f0a=_0x1edb4a[0x2],{x:_0x1afd9e,y:_0x9aa594}=_0x44a829,{x:_0x22b6b4,y:_0x1f3dba}=_0xea3f0a;return{'left':_0x1afd9e,'top':_0x9aa594,'width':_0x22b6b4-_0x1afd9e,'height':_0x1f3dba-_0x9aa594};}[_0x3d135c(0x2d6)](){const _0x3421db=_0x3d135c,{scaleX:_0x22f20c,scaleY:_0x9fde30}=this[_0x3421db(0x37b)][_0x3421db(0x265)]();return Math[_0x3421db(0x37a)](_0x22f20c,_0x9fde30);}}var Zi=Object[_0x3d135c(0x372)],Qi=(_0x14fb55,_0x3282bc,_0x69fd74,_0x387406)=>{const _0x417843=_0x3d135c;for(var _0x5adf0e=_0x387406>0x1?void 0x0:_0x387406?Zi(_0x3282bc,_0x69fd74):_0x3282bc,_0x3705b6=_0x14fb55[_0x417843(0x35c)]-0x1,_0x3eab2d;_0x3705b6>=0x0;_0x3705b6--)(_0x3eab2d=_0x14fb55[_0x3705b6])&&(_0x5adf0e=_0x3eab2d(_0x5adf0e)||_0x5adf0e);return _0x5adf0e;},ie=(_0x172ef7,_0x48b9f8)=>(_0x537a8c,_0x191a2e)=>_0x48b9f8(_0x537a8c,_0x191a2e,_0x172ef7);let Fe=class extends _0x15001e{constructor(_0xb52f69,_0x2d1fb5,_0x4f9246,_0x420075,_0x46d049){const _0x51c757=_0x3d135c;super(),_(this,_0x51c757(0x34a),[]),_(this,'_cursors',[]),(this[_0x51c757(0x273)]=_0xb52f69,this[_0x51c757(0x323)]=_0x2d1fb5,this[_0x51c757(0x341)]=_0x4f9246,this[_0x51c757(0x373)]=_0x420075,this[_0x51c757(0x282)]=_0x46d049,this[_0x51c757(0x250)]());}[_0x3d135c(0x250)](){const _0x371341=_0x3d135c,_0x20b793=this[_0x371341(0x273)][_0x371341(0x1e9)],_0x2dd88c=this[_0x371341(0x323)];this['disposeWithMe'](_0x5646e8([this[_0x371341(0x341)][_0x371341(0x1ef)](_0x20b793),this['_themeService'][_0x371341(0x1b2)]])[_0x371341(0x2d5)](_0x4b33d0(([_0x4e06b1,_0xc1f7ed])=>({'skeleton':_0x2dd88c[_0x371341(0x1dd)](),'cursors':[..._0x4e06b1[_0x371341(0x17e)]()]['flatMap'](_0x2659c0=>({..._0x2659c0,'color':this['_themeService'][_0x371341(0x25b)](_0x2659c0[_0x371341(0x2e9)])}))})))[_0x371341(0x251)](_0x3e6cdb=>{const _0x2f2829=_0x371341;if(this[_0x2f2829(0x364)](),_0x3e6cdb){const {skeleton:_0x54c273,cursors:_0x26003a}=_0x3e6cdb;this['_updateCollabCursors'](_0x54c273,_0x26003a);}})),this[_0x371341(0x22b)](),this[_0x371341(0x1e3)]();}[_0x3d135c(0x252)](_0x171b64,_0x14a40f){const _0x3df4c3=_0x3d135c,{scene:_0x2ef7fa,mainComponent:_0x12a237}=this['_context'],_0x41de0c=_0x14a40f[_0x3df4c3(0x31c)](_0x14fded=>new ct(_0x14fded,_0x2ef7fa,_0x171b64,_0x12a237));this[_0x3df4c3(0x34a)]=_0x41de0c,this[_0x3df4c3(0x2e2)]=_0x14a40f;}[_0x3d135c(0x1fd)](){const _0x5f0a4d=_0x3d135c;this[_0x5f0a4d(0x364)]();const {scene:_0x113c51,mainComponent:_0xa9cd08}=this[_0x5f0a4d(0x273)],_0x2ef3ac=this[_0x5f0a4d(0x323)][_0x5f0a4d(0x1dd)](),_0x960a3b=this[_0x5f0a4d(0x2e2)]['map'](_0x1de9f=>new ct(_0x1de9f,_0x113c51,_0x2ef3ac,_0xa9cd08));this[_0x5f0a4d(0x34a)]=_0x960a3b;}['_removeCollabCursors'](){const _0xd87e78=_0x3d135c;this['_cursorShapes'][_0xd87e78(0x27a)](_0x37347c=>_0x37347c[_0xd87e78(0x320)]()),this[_0xd87e78(0x34a)]=[];}[_0x3d135c(0x1e3)](){const _0x311405=_0x3d135c,_0x362eae=[_0x2af769['id']];this['disposeWithMe'](this['_commandService'][_0x311405(0x3b2)](_0x42a429=>{const _0x57b9e2=_0x311405;_0x362eae['includes'](_0x42a429['id'])&&_0x42a429[_0x57b9e2(0x1f0)][_0x57b9e2(0x1e9)]===this[_0x57b9e2(0x273)][_0x57b9e2(0x1e9)]&&this[_0x57b9e2(0x1fd)]();}));}[_0x3d135c(0x22b)](){const _0x58dab6=_0x3d135c;this[_0x58dab6(0x2ec)](_0x3ee330(this[_0x58dab6(0x273)]['engine'][_0x58dab6(0x246)])[_0x58dab6(0x2d5)](_0x1fe374(_0x960c66=>_0x960c66[_0x58dab6(0x371)]===_0x1dc030['resize']),_0x36476(0x10))['subscribe'](()=>{const _0xf8c081=_0x58dab6;this[_0xf8c081(0x1fd)]();}));}};Fe=Qi([ie(0x1,_0x5ee57b(_0x4d2822)),ie(0x2,_0x5ee57b(H)),ie(0x3,_0x57432f),ie(0x4,_0x5ee57b(_0x2675ec))],Fe);const qi=0x1,en=1.5;class tn extends _0xd020ad{constructor(_0x50cfe8,_0x5e5b97){const _0x523598=_0x3d135c;super(_0x50cfe8,_0x5e5b97),_(this,_0x523598(0x387)),_(this,'_hovered',!0x1),_(this,'_range'),_(this,_0x523598(0x335),''),_(this,_0x523598(0x333),'top'),_(this,'_backgroundColor'),(_0x5e5b97&&this['setShapeProps'](_0x5e5b97),this[_0x523598(0x34d)]['subscribeEvent'](()=>this[_0x523598(0x183)]({'hovered':!0x0})),this[_0x523598(0x3a3)]['subscribeEvent'](()=>this[_0x523598(0x183)]({'hovered':!0x1})));}['setShapeProps'](_0x3e61e4){const _0x470292=_0x3d135c;var _0x59a0d0,_0x957115,_0xc44fc8,_0x577252,_0x1c40fc,_0x43ff6c;this[_0x470292(0x387)]=(_0x59a0d0=_0x3e61e4[_0x470292(0x2e9)])!=null?_0x59a0d0:this['_color'],this[_0x470292(0x24c)]=(_0x957115=_0x3e61e4[_0x470292(0x1d7)])!=null?_0x957115:this[_0x470292(0x24c)],this[_0x470292(0x2f3)]=(_0xc44fc8=_0x3e61e4[_0x470292(0x223)])!=null?_0xc44fc8:this['_range'],this['_name']=(_0x577252=_0x3e61e4[_0x470292(0x1a8)])!=null?_0x577252:this[_0x470292(0x335)],this[_0x470292(0x333)]=(_0x1c40fc=_0x3e61e4[_0x470292(0x1f4)])!=null?_0x1c40fc:this[_0x470292(0x333)],this[_0x470292(0x208)]=(_0x43ff6c=_0x3e61e4[_0x470292(0x39a)])!=null?_0x43ff6c:this['_backgroundColor'],this[_0x470292(0x2c6)]({'width':_0x3e61e4['width'],'height':_0x3e61e4[_0x470292(0x398)]});}['onMouseMove'](_0x11a7c0){const _0x3942d1=_0x3d135c,{row:_0x1098b6,column:_0x10248d}=_0x11a7c0;if(_0x1098b6>=this[_0x3942d1(0x2f3)][_0x3942d1(0x33d)]&&_0x1098b6<=this[_0x3942d1(0x2f3)]['endRow']&&_0x10248d>=this[_0x3942d1(0x2f3)][_0x3942d1(0x34b)]&&_0x10248d<=this[_0x3942d1(0x2f3)][_0x3942d1(0x370)]){this[_0x3942d1(0x183)]({'hovered':!0x0});return;}this[_0x3942d1(0x183)]({'hovered':!0x1});}[_0x3d135c(0x2fa)](_0x4ff6e6){return!0x1;}['_draw'](_0x541978){const _0x255d6e=_0x3d135c;_0x4c56ed[_0x255d6e(0x23b)](_0x541978,{'width':this[_0x255d6e(0x18e)],'height':this[_0x255d6e(0x398)],'strokeWidth':en,'stroke':this['_color'],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x255d6e(0x24c)]&&(_0x541978[_0x255d6e(0x353)](),_0x541978['transform'](0x1,0x0,0x0,0x1,this[_0x255d6e(0x18e)],this[_0x255d6e(0x333)]==='bottom'?0x0:-Q),ve['drawWith'](_0x541978,{'text':this[_0x255d6e(0x335)],'color':this[_0x255d6e(0x387)]}),_0x541978['restore']());}}var sn=Object[_0x3d135c(0x372)],nn=(_0x20abc1,_0xbc6e4a,_0x3655e8,_0x38b10b)=>{const _0xe78d86=_0x3d135c;for(var _0x451de2=_0x38b10b>0x1?void 0x0:_0x38b10b?sn(_0xbc6e4a,_0x3655e8):_0xbc6e4a,_0x1cd645=_0x20abc1[_0xe78d86(0x35c)]-0x1,_0x133215;_0x1cd645>=0x0;_0x1cd645--)(_0x133215=_0x20abc1[_0x1cd645])&&(_0x451de2=_0x133215(_0x451de2)||_0x451de2);return _0x451de2;},be=(_0x3df97f,_0x1460d3)=>(_0x19fc22,_0x34da21)=>_0x1460d3(_0x19fc22,_0x34da21,_0x3df97f);const rn=0x1389;let ke=class extends _0x15001e{constructor(_0xbe9d12,_0x4e534a,_0x3afab5,_0x3f5914){const _0x10ee94=_0x3d135c;super(),_(this,_0x10ee94(0x2e2),new Set()),_(this,_0x10ee94(0x28c),null),(this[_0x10ee94(0x273)]=_0xbe9d12,this[_0x10ee94(0x33a)]=_0x4e534a,this[_0x10ee94(0x341)]=_0x3afab5,this[_0x10ee94(0x282)]=_0x3f5914,this[_0x10ee94(0x250)]());}[_0x3d135c(0x250)](){const _0x5e184f=_0x3d135c;this[_0x5e184f(0x33a)][_0x5e184f(0x367)][_0x5e184f(0x2d5)](_0x1ba58b(this[_0x5e184f(0x1c9)]),_0x3dda62(_0x251163=>{const _0x1efffa=_0x5e184f;if(_0x251163){const _0x15a8b8=_0x251163[_0x1efffa(0x1cb)];return _0x5646e8(this['_collabCursorController']['getCollabCursors$'](this['_context']['unitId']),this['_themeService'][_0x1efffa(0x1b2)])[_0x1efffa(0x2d5)](_0x4b33d0(([_0x54341d,_0x6dfcbd])=>{const _0x1978fe=_0x1efffa,_0x2ed6c1=new Map();return _0x54341d[_0x1978fe(0x27a)]((_0x161890,_0x1e0f74)=>{const _0x328bcc=_0x1978fe;if(_0x161890[_0x328bcc(0x2fc)]===_0x15a8b8){const _0x4389a5={..._0x161890};_0x4389a5[_0x328bcc(0x2e9)]=this[_0x328bcc(0x282)]['getColorFromTheme'](_0x161890[_0x328bcc(0x2e9)]),_0x2ed6c1['set'](_0x1e0f74,_0x4389a5);}}),{'skeleton':_0x251163,'cursors':_0x2ed6c1};}));}return _0x3dbd6d({'skeleton':null,'cursors':new Map()});}))[_0x5e184f(0x251)](({skeleton:_0x366a79,cursors:_0x17c4f4})=>{this['_removeCollabCursors'](),_0x366a79&&this['_updateCollabCursors'](_0x366a79,_0x17c4f4);}),this[_0x5e184f(0x33a)]['currentSkeleton$']['subscribe'](_0x3a7038=>{const _0x2e6f1f=_0x5e184f;if(_0x3a7038==null)return;const {skeleton:_0x1537cf}=_0x3a7038,{scene:_0x965c7f}=this[_0x2e6f1f(0x273)];_0x965c7f[_0x2e6f1f(0x232)]['subscribeEvent'](_0x6d40da(_0x42d0bf=>{const _0x507266=_0x2e6f1f;var _0x471069,_0x564a33;const {offsetX:_0x3170dc,offsetY:_0x26ed35}=_0x42d0bf,{x:_0x248c7d,y:_0x2514c0}=_0x965c7f['getRelativeToViewportCoord'](_0x4a3b69[_0x507266(0x262)]([_0x3170dc,_0x26ed35])),{scaleX:_0x3a8b2f,scaleY:_0x50d6be}=_0x965c7f['getAncestorScale'](),_0x54696f=_0x965c7f[_0x507266(0x2a7)](_0x85a636[_0x507266(0x22c)]),_0x563c15=_0x965c7f['getVpScrollXYInfoByPosToVp'](_0x4a3b69[_0x507266(0x262)]([_0x248c7d,_0x2514c0]),_0x54696f),_0x3680bb=_0x1537cf[_0x507266(0x321)](_0x3170dc,_0x26ed35,_0x3a8b2f,_0x50d6be,_0x563c15);((_0x471069=this['_lastPointer'])==null?void 0x0:_0x471069['column'])===_0x3680bb[_0x507266(0x2ee)]&&((_0x564a33=this[_0x507266(0x28c)])==null?void 0x0:_0x564a33[_0x507266(0x2cb)])===_0x3680bb[_0x507266(0x2cb)]||this[_0x507266(0x2e2)][_0x507266(0x27a)](_0x4c710e=>{_0x4c710e['onMouseMove'](_0x3680bb);});},0x64));});}[_0x3d135c(0x252)](_0x30ae76,_0x3d0af4){const _0x395954=_0x3d135c;var _0x1198a6;const _0x1c5b13=(_0x1198a6=this[_0x395954(0x33a)][_0x395954(0x3bd)]())==null?void 0x0:_0x1198a6['skeleton'];if(!_0x1c5b13)return;const _0x24b40e=this[_0x395954(0x210)]();if(!_0x24b40e)return;this[_0x395954(0x2e2)][_0x395954(0x27a)](_0x1f050b=>{const _0x5bca2b=_0x395954;_0x1f050b[_0x5bca2b(0x37c)]();});const {scene:_0x5eb41b}=_0x24b40e,_0x2ce086=on(Array['from'](_0x3d0af4[_0x395954(0x17e)]()))[_0x395954(0x31c)](_0x4ca740=>{const _0x94a11b=_0x395954,{color:_0x1e9b12,range:_0x357cd8,name:_0x10e033,selection:_0x1b1d1c,sheetID:_0x248e07}=_0x4ca740,{startColumn:_0x2ce59e,startRow:_0xbb777b,endColumn:_0x510581,endRow:_0x2731c8}=_0x357cd8,_0x2764dd=_0x39752e(_0xbb777b,_0x2ce59e,_0x5eb41b,_0x1c5b13),_0x3e45b3=_0x39752e(_0x2731c8,_0x510581,_0x5eb41b,_0x1c5b13),{columnHeaderHeightAndMarginTop:_0x9b9786}=_0x1c5b13,{startX:_0x200ac9,startY:_0x56c195}=_0x2764dd,{endX:_0x55315b,endY:_0x484044}=_0x3e45b3,_0x420e7e=_0x55315b-_0x200ac9,_0x97851b=_0x484044-_0x56c195,_0x847a4f={'labelPosition':_0x56c195-_0x9b9786>=Q?_0x94a11b(0x1e1):'bottom','sheetID':_0x248e07,'range':_0x357cd8,'color':_0x1e9b12,'name':_0x10e033,'selection':_0x1b1d1c,'left':_0x200ac9,'top':_0x56c195,'width':_0x420e7e,'height':_0x97851b,'evented':!0x1,'zIndex':rn};return new tn(_0x10e033,_0x847a4f);});_0x5eb41b[_0x395954(0x1cf)](_0x2ce086,qi),this[_0x395954(0x2e2)]=new Set(_0x2ce086);}[_0x3d135c(0x364)](){const _0x3cc167=_0x3d135c;var _0x314b0b;(_0x314b0b=this[_0x3cc167(0x2e2)])==null||_0x314b0b[_0x3cc167(0x27a)](_0x54e2b0=>_0x54e2b0[_0x3cc167(0x320)]());}['_getSheetObject'](){const _0x4dfb3e=_0x3d135c;return _0x29c129(this['_context'][_0x4dfb3e(0x2e4)],this[_0x4dfb3e(0x273)]);}};ke=nn([be(0x1,_0x5ee57b(_0x55d0b8)),be(0x2,_0x5ee57b(H)),be(0x3,_0x5ee57b(_0x2675ec))],ke);function on(_0x5d2be3){const _0x404a6d=_0x3d135c,_0x23688a=new Map();return _0x5d2be3[_0x404a6d(0x27a)](_0x5dd91d=>{const _0x3f2bf0=_0x404a6d;if(_0x23688a['has'](_0x5dd91d[_0x3f2bf0(0x3b0)])){const _0x1f591a=_0x23688a['get'](_0x5dd91d['selection']);_0x1f591a['name']+=',\x20'+_0x5dd91d[_0x3f2bf0(0x1a8)];}else _0x23688a['set'](_0x5dd91d['selection'],_0x5dd91d);}),Array[_0x404a6d(0x207)](_0x23688a[_0x404a6d(0x17e)]());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x2009e3,_0x3e71ff,_0x93adc3,_0x39e0d9)=>{const _0x2dc028=_0x3d135c;for(var _0x4922ff=_0x39e0d9>0x1?void 0x0:_0x39e0d9?an(_0x3e71ff,_0x93adc3):_0x3e71ff,_0x91142a=_0x2009e3[_0x2dc028(0x35c)]-0x1,_0x166ad6;_0x91142a>=0x0;_0x91142a--)(_0x166ad6=_0x2009e3[_0x91142a])&&(_0x4922ff=_0x166ad6(_0x4922ff)||_0x4922ff);return _0x4922ff;},F=(_0x36e9e9,_0x428f1e)=>(_0x2979d6,_0x2490c4)=>_0x428f1e(_0x2979d6,_0x2490c4,_0x36e9e9);let _e=class extends _0x292928{constructor(_0xbbff4a,_0x51e872,_0x36cdc3,_0x56e6e2,_0x484dbd,_0x20bc9f){const _0x5f3c41=_0x3d135c;super(),this[_0x5f3c41(0x2bf)]=_0xbbff4a,this[_0x5f3c41(0x1be)]=_0x51e872,this[_0x5f3c41(0x201)]=_0x36cdc3,this[_0x5f3c41(0x36e)]=_0x56e6e2,this[_0x5f3c41(0x218)]=_0x484dbd,this['_localeService']=_0x20bc9f,this[_0x5f3c41(0x322)](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0xf8a59d=_0x3d135c;this[_0xf8a59d(0x2ec)](this[_0xf8a59d(0x2bf)]['registerBeforeClose'](()=>{const _0x180f14=_0xf8a59d;if(this['_localCacheService'][_0x180f14(0x379)][_0x180f14(0x338)])return this[_0x180f14(0x1f9)]['t']('collaboration.offline-data-not-saved');}));}[_0x3d135c(0x395)](){const _0x3c6305=_0x3d135c;this[_0x3c6305(0x2ec)](this[_0x3c6305(0x201)]['event$'][_0x3c6305(0x251)](_0xb2011e=>{const _0x10da3c=_0x3c6305;_0xb2011e['id']===_0x3bb0c7[_0x10da3c(0x39e)]&&this[_0x10da3c(0x36e)][_0x10da3c(0x245)]({'type':_0x1b2859[_0x10da3c(0x1e4)],'content':this['_localeService']['t'](_0x10da3c(0x1db))}),_0xb2011e['id']===_0x3bb0c7[_0x10da3c(0x23f)]&&this[_0x10da3c(0x36e)][_0x10da3c(0x245)]({'type':_0x1b2859['Warning'],'content':this[_0x10da3c(0x1f9)]['t']('collaboration.closeRoom')}),_0xb2011e['id']===_0x3bb0c7[_0x10da3c(0x189)]&&this[_0x10da3c(0x218)]['show']({'title':this[_0x10da3c(0x1f9)]['t'](_0x10da3c(0x25c)),'content':this[_0x10da3c(0x1f9)]['t'](_0x10da3c(0x3c5)),'type':_0x10da3c(0x2b9),'duration':0x0}),_0xb2011e['id']===_0x3bb0c7['CONFLICT']&&this[_0x10da3c(0x36e)]['show']({'type':_0x1b2859['Error'],'content':this[_0x10da3c(0x1f9)]['t'](_0x10da3c(0x1a3))+'('+_0xb2011e['data']+')'}),_0xb2011e['id']===_0x3bb0c7['JOIN_ROOM_FAILED']&&this['_messageService'][_0x10da3c(0x245)]({'type':_0x1b2859[_0x10da3c(0x1e4)],'content':this['_localeService']['t'](_0xb2011e['data']||'')}),_0xb2011e['id']===_0x3bb0c7[_0x10da3c(0x266)]&&this[_0x10da3c(0x36e)][_0x10da3c(0x245)]({'type':_0x1b2859[_0x10da3c(0x1e4)],'content':this[_0x10da3c(0x1f9)]['t'](_0x10da3c(0x38b))}),_0xb2011e['id']===_0x3bb0c7['SOCKET_FAILED']&&this[_0x10da3c(0x36e)][_0x10da3c(0x245)]({'type':_0x1b2859['Error'],'content':this[_0x10da3c(0x1f9)]['t']('session.connection-failed')}),_0xb2011e['id']===_0x3bb0c7[_0x10da3c(0x287)]&&this[_0x10da3c(0x36e)]['show']({'type':_0x1b2859[_0x10da3c(0x330)],'content':this[_0x10da3c(0x1f9)]['t']('session.collaboration-timeout')});}));}};_e=cn([F(0x0,_0x2f05ae),F(0x1,_0x2ccadc),F(0x2,_0x5ee57b(_0x293f47)),F(0x3,_0x16b40d),F(0x4,_0x52dd83),F(0x5,_0x5ee57b(_0x222f4e))],_e);var _n=Object['getOwnPropertyDescriptor'],ln=(_0x3b5c67,_0x5d9915,_0x501ec4,_0x133862)=>{for(var _0x3de4db=_0x133862>0x1?void 0x0:_0x133862?_n(_0x5d9915,_0x501ec4):_0x5d9915,_0x5ba3db=_0x3b5c67['length']-0x1,_0xc269e9;_0x5ba3db>=0x0;_0x5ba3db--)(_0xc269e9=_0x3b5c67[_0x5ba3db])&&(_0x3de4db=_0xc269e9(_0x3de4db)||_0x3de4db);return _0x3de4db;},ne=(_0x8c3b3a,_0x39eaa6)=>(_0x540191,_0x24244d)=>_0x39eaa6(_0x540191,_0x24244d,_0x8c3b3a);let le=class extends _0x292928{constructor(_0x4cd434,_0x4c06a7,_0x1ef560,_0x24d6ad){const _0x2e0da8=_0x3d135c;super(),_(this,'_memberID'),(this[_0x2e0da8(0x31d)]=_0x4cd434,this[_0x2e0da8(0x17c)]=_0x4c06a7,this[_0x2e0da8(0x2fb)]=_0x1ef560,this[_0x2e0da8(0x327)]=_0x24d6ad,this[_0x2e0da8(0x250)]());}[_0x3d135c(0x250)](){const _0xd54795=_0x3d135c;this[_0xd54795(0x1b3)](),this[_0xd54795(0x263)](),this[_0xd54795(0x305)](),this[_0xd54795(0x1c4)]();}[_0x3d135c(0x1c4)](){const _0x481289=_0x3d135c;this[_0x481289(0x2ec)](this[_0x481289(0x327)]['socket$'][_0x481289(0x251)](_0x16e0d9=>{const _0x24e7ed=_0x481289;this[_0x24e7ed(0x3b5)]=_0x16e0d9==null?void 0x0:_0x16e0d9[_0x24e7ed(0x334)];}));}[_0x3d135c(0x1b3)](){const _0x29c79b=_0x3d135c,_0x2878d9=_0x24818f=>{const _0x439470=_0x352a;var _0x5f275;this[_0x439470(0x362)](_0x439470(0x2b9),'[Window\x20Error]:\x20'+_0x24818f[_0x439470(0x23a)]+'\x20at\x20'+_0x24818f['filename']+':'+_0x24818f[_0x439470(0x193)]+':'+_0x24818f[_0x439470(0x21c)]+'\x0a'+(((_0x5f275=_0x24818f['error'])==null?void 0x0:_0x5f275[_0x439470(0x1ae)])||''));};window[_0x29c79b(0x303)](_0x29c79b(0x2b9),_0x2878d9),this[_0x29c79b(0x2ec)](()=>{const _0xe71109=_0x29c79b;window[_0xe71109(0x1d9)]('error',_0x2878d9);});}[_0x3d135c(0x263)](){const _0x37357e=_0x3d135c,_0x5c18b5=_0x302696=>{const _0x536a07=_0x352a;this[_0x536a07(0x362)](_0x536a07(0x2b9),_0x536a07(0x185)+_0x302696[_0x536a07(0x317)]);};window[_0x37357e(0x303)](_0x37357e(0x343),_0x5c18b5),this[_0x37357e(0x2ec)](()=>{const _0x56c593=_0x37357e;window[_0x56c593(0x1d9)](_0x56c593(0x343),_0x5c18b5);});}[_0x3d135c(0x305)](){const _0x482e0a=_0x3d135c,_0x325186=this[_0x482e0a(0x2fb)]['error'][_0x482e0a(0x1e5)](this[_0x482e0a(0x2fb)]);this['_logService']['error']=(..._0x4b64b4)=>{const _0x57cfd2=_0x482e0a,_0x51fb03=_0x4b64b4[_0x57cfd2(0x31c)](_0x8341b8=>_0x8341b8 instanceof Error?_0x8341b8[_0x57cfd2(0x23a)]+'\x0a'+_0x8341b8[_0x57cfd2(0x1ae)]:String(_0x8341b8))[_0x57cfd2(0x237)]('\x20');this['_uploadLog'](_0x57cfd2(0x2b9),_0x57cfd2(0x386)+_0x51fb03),_0x325186(..._0x4b64b4);},this['disposeWithMe'](()=>{const _0x38c84c=_0x482e0a;this[_0x38c84c(0x2fb)][_0x38c84c(0x2b9)]=_0x325186;});}[_0x3d135c(0x362)](_0x28fce4,_0x1d985b){const _0x33e2a6=_0x3d135c;try{const _0x6da410={'userId':this[_0x33e2a6(0x3b5)],'logLabel':_0x28fce4,'content':_0x1d985b};this[_0x33e2a6(0x17c)][_0x33e2a6(0x308)](_0x33e2a6(0x26e),{'body':_0x6da410})['catch'](()=>{});}catch{}}};le=ln([ne(0x0,_0x5ee57b(_0x1e6ef3)),ne(0x1,_0x5ee57b(_0x323dbf)),ne(0x2,_0xae2fa1),ne(0x3,_0x5ee57b(_0xabbb75))],le);const hn=_0x3d135c(0x33e),_t={};var un=Object['getOwnPropertyDescriptor'],dn=(_0x1cbd04,_0x332832,_0x41836c,_0x18569e)=>{const _0x3b263b=_0x3d135c;for(var _0x55d9a7=_0x18569e>0x1?void 0x0:_0x18569e?un(_0x332832,_0x41836c):_0x332832,_0x32065c=_0x1cbd04[_0x3b263b(0x35c)]-0x1,_0x586457;_0x32065c>=0x0;_0x32065c--)(_0x586457=_0x1cbd04[_0x32065c])&&(_0x55d9a7=_0x586457(_0x55d9a7)||_0x55d9a7);return _0x55d9a7;},lt=(_0xb8c7bd,_0x9eac46)=>(_0x37aa14,_0x3cf4e6)=>_0x9eac46(_0x37aa14,_0x3cf4e6,_0xb8c7bd);let he=class{constructor(_0x385bf6,_0x57a916){const _0x3169ef=_0x3d135c;this['_transformService']=_0x385bf6,this[_0x3169ef(0x25f)]=_0x57a916;}['transformIMECache'](_0x2bac91){const _0x1f5ed2=_0x3d135c;this[_0x1f5ed2(0x2a1)](_0x2bac91),this['_transformPreviousActiveRange'](_0x2bac91);}['transformRemoteChangeset'](_0x1f10c9){const _0xcd8335=_0x3d135c,{unitID:_0x15403a}=_0x1f10c9,_0x57d935=this['_renderManagerService'][_0xcd8335(0x1fc)](_0x15403a)[_0xcd8335(0x39c)](_0x49457c),{redoCache:_0x1f8402}=_0x57d935[_0xcd8335(0x32d)]();if(_0x1f8402[_0xcd8335(0x35c)]===0x0)return _0x1f10c9;let _0x5ea958=_0x38ee33['deepClone'](_0x1f10c9[_0xcd8335(0x3a1)][0x0]);for(let _0x154cd4=0x0;_0x154cd4<_0x1f8402['length'];_0x154cd4++){const _0x950dce={'id':'doc.mutation.rich-text-editing','params':{..._0x1f8402[_0x154cd4]}},_0x13f979=this[_0xcd8335(0x28d)]['transformMutation'](_0x5ea958,_0x950dce,!0x1);if(_0x1d1f1a(_0x13f979))throw _0x13f979[_0xcd8335(0x2b9)];_0x5ea958=_0x13f979[_0xcd8335(0x294)];}return{..._0x38ee33['deepClone'](_0x1f10c9),'mutations':[_0x5ea958]};}[_0x3d135c(0x2a1)](_0x960f78){const _0x4b9298=_0x3d135c,{unitID:_0x59d935}=_0x960f78,_0x86d911=this['_renderManagerService']['getRenderById'](_0x59d935)[_0x4b9298(0x39c)](_0x49457c),{undoCache:_0x27862a,redoCache:_0x487357}=_0x86d911['getUndoRedoMutationParamsCache']();if(_0x27862a[_0x4b9298(0x35c)]===0x0||_0x487357['length']===0x0)return;const _0x54bff6=[],_0x4f87cf=[];let _0x3ef980=_0x38ee33[_0x4b9298(0x1f7)](_0x960f78[_0x4b9298(0x3a1)][0x0]),_0x15e6f2=_0x38ee33[_0x4b9298(0x1f7)](_0x960f78[_0x4b9298(0x3a1)][0x0]);for(let _0x1525a2=_0x27862a[_0x4b9298(0x35c)]-0x1;_0x1525a2>=0x0;_0x1525a2--){const _0x4dcfb6={'id':'doc.mutation.rich-text-editing','params':{..._0x27862a[_0x1525a2]}},_0x85dbe={'id':_0x4b9298(0x20a),'params':{..._0x487357[_0x1525a2]}},_0x3f7965=this['_transformService'][_0x4b9298(0x2da)](_0x3ef980,_0x4dcfb6,!0x1),_0x1c03d4=this[_0x4b9298(0x28d)][_0x4b9298(0x2da)](_0x15e6f2,_0x85dbe,!0x1);if(_0x1d1f1a(_0x3f7965))throw _0x3f7965[_0x4b9298(0x2b9)];if(_0x1d1f1a(_0x1c03d4))throw _0x1c03d4[_0x4b9298(0x2b9)];_0x54bff6[_0x4b9298(0x1ee)](_0x3f7965[_0x4b9298(0x378)]['params']),_0x4f87cf[_0x4b9298(0x1ee)](_0x1c03d4[_0x4b9298(0x378)][_0x4b9298(0x1f0)]),_0x3ef980=_0x3f7965[_0x4b9298(0x294)],_0x15e6f2=_0x1c03d4['m1Prime'];}_0x86d911[_0x4b9298(0x3a7)]({'undoCache':_0x54bff6,'redoCache':_0x4f87cf});}[_0x3d135c(0x348)](_0x1c0a2b){const _0x39bc27=_0x3d135c,{unitID:_0xca9406}=_0x1c0a2b,_0xd79a55=this['_renderManagerService'][_0x39bc27(0x1fc)](_0xca9406)[_0x39bc27(0x39c)](_0x49457c),_0xac8e53=_0xd79a55[_0x39bc27(0x19e)]();if(_0xac8e53==null)return;const _0x24cf0c=[{'id':_0x39bc27(0x20a),'params':{'unitId':_0x1c0a2b[_0x39bc27(0x36f)],'actions':null,'textRanges':[_0xac8e53]}}],_0x2edd73=this[_0x39bc27(0x28d)][_0x39bc27(0x31b)](_0x1c0a2b,_0x24cf0c);if(!_0x134ffb(_0x2edd73))throw _0x2edd73[_0x39bc27(0x2b9)];const _0x29caf6=_0x2edd73[_0x39bc27(0x378)][0x0][_0x39bc27(0x1f0)]['textRanges'];Array['isArray'](_0x29caf6)&&_0x29caf6[_0x39bc27(0x35c)]&&_0xd79a55[_0x39bc27(0x21f)](_0x29caf6[0x0]);}};he=dn([lt(0x0,_0xaced2),lt(0x1,_0x59b059)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x54cad8,_0x494cd0,_0x40a944,_0x2810e7)=>{const _0x2a6b6d=_0x3d135c;for(var _0x2b1c9f=_0x2810e7>0x1?void 0x0:_0x2810e7?Sn(_0x494cd0,_0x40a944):_0x494cd0,_0x50a526=_0x54cad8[_0x2a6b6d(0x35c)]-0x1,_0x6f88ee;_0x50a526>=0x0;_0x50a526--)(_0x6f88ee=_0x54cad8[_0x50a526])&&(_0x2b1c9f=_0x6f88ee(_0x2b1c9f)||_0x2b1c9f);return _0x2b1c9f;},Le=(_0xee0c57,_0x22d390)=>(_0x5e756b,_0x5a947d)=>_0x22d390(_0x5e756b,_0x5a947d,_0xee0c57);let ue=class{constructor(_0x461d9b,_0x219b52,_0x1b0251){const _0x41f9a9=_0x3d135c;this[_0x41f9a9(0x31d)]=_0x461d9b,this[_0x41f9a9(0x28d)]=_0x219b52,this[_0x41f9a9(0x34c)]=_0x1b0251;}[_0x3d135c(0x216)](_0x13f489){const _0x40bf2d=_0x3d135c;this[_0x40bf2d(0x315)](_0x13f489);}[_0x3d135c(0x384)](_0x550553){const _0x4afae2=_0x3d135c,{unitID:_0x3f4f6a}=_0x550553,{collaboration:_0x4f12c2}=this['_docStateChangeManagerService'][_0x4afae2(0x38f)](_0x3f4f6a);if(_0x4f12c2[_0x4afae2(0x35c)]===0x0)return _0x550553;let _0x58549b=_0x38ee33['deepClone'](_0x550553[_0x4afae2(0x3a1)][0x0]);for(let _0x4f5f55=0x0;_0x4f5f55<_0x4f12c2[_0x4afae2(0x35c)];_0x4f5f55++){const _0x3a8ac4={'id':_0x4afae2(0x20a),'params':{'unitId':_0x4f12c2[_0x4f5f55][_0x4afae2(0x1e9)],..._0x4f12c2[_0x4f5f55][_0x4afae2(0x23d)]}},_0x30cc18=this[_0x4afae2(0x28d)][_0x4afae2(0x2da)](_0x58549b,_0x3a8ac4,!0x1);if(_0x1d1f1a(_0x30cc18))throw _0x30cc18['error'];_0x58549b=_0x30cc18[_0x4afae2(0x294)];}return{..._0x38ee33['deepClone'](_0x550553),'mutations':[_0x58549b]};}[_0x3d135c(0x315)](_0x5109c4){const _0x58eceb=_0x3d135c,{unitID:_0x2b4b1f}=_0x5109c4,{history:_0x476640,collaboration:_0x2d045e}=this[_0x58eceb(0x34c)][_0x58eceb(0x38f)](_0x2b4b1f);if(_0x476640[_0x58eceb(0x35c)]===0x0&&_0x2d045e['length']===0x0)return;const _0x5fe514=[],_0x5594c9=[];let _0x54da57=_0x38ee33[_0x58eceb(0x1f7)](_0x5109c4[_0x58eceb(0x3a1)][0x0]),_0x33fa19=_0x38ee33[_0x58eceb(0x1f7)](_0x5109c4['mutations'][0x0]);for(let _0x973ca5=_0x476640[_0x58eceb(0x35c)]-0x1;_0x973ca5>=0x0;_0x973ca5--){const _0x543ee4={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x476640[_0x973ca5][_0x58eceb(0x1e9)],..._0x476640[_0x973ca5][_0x58eceb(0x359)]}},_0x1b4dfe={'id':_0x58eceb(0x20a),'params':{'unitId':_0x476640[_0x973ca5][_0x58eceb(0x1e9)],..._0x476640[_0x973ca5][_0x58eceb(0x23d)]}},_0x47e931=this['_transformService']['transformMutation'](_0x54da57,_0x543ee4,!0x1),_0x4f4d55=this[_0x58eceb(0x28d)]['transformMutation'](_0x33fa19,_0x1b4dfe,!0x1);if(_0x1d1f1a(_0x47e931))throw _0x47e931['error'];if(_0x1d1f1a(_0x4f4d55))throw _0x4f4d55[_0x58eceb(0x2b9)];_0x5fe514['unshift']({..._0x476640[_0x973ca5],'undoState':_0x47e931[_0x58eceb(0x378)][_0x58eceb(0x1f0)],'redoState':_0x4f4d55['m2Prime'][_0x58eceb(0x1f0)]}),_0x54da57=_0x47e931[_0x58eceb(0x294)],_0x33fa19=_0x4f4d55['m1Prime'];}_0x54da57=_0x38ee33['deepClone'](_0x5109c4[_0x58eceb(0x3a1)][0x0]),_0x33fa19=_0x38ee33[_0x58eceb(0x1f7)](_0x5109c4['mutations'][0x0]);for(let _0x322456=_0x2d045e[_0x58eceb(0x35c)]-0x1;_0x322456>=0x0;_0x322456--){const _0x19ea16={'id':_0x58eceb(0x20a),'params':{'unitId':_0x2d045e[_0x322456][_0x58eceb(0x1e9)],..._0x2d045e[_0x322456][_0x58eceb(0x359)]}},_0x419404={'id':_0x58eceb(0x20a),'params':{'unitId':_0x2d045e[_0x322456][_0x58eceb(0x1e9)],..._0x2d045e[_0x322456][_0x58eceb(0x23d)]}},_0x55a9c8=this[_0x58eceb(0x28d)][_0x58eceb(0x2da)](_0x54da57,_0x19ea16,!0x1),_0x38f3a8=this['_transformService'][_0x58eceb(0x2da)](_0x33fa19,_0x419404,!0x1);if(_0x1d1f1a(_0x55a9c8))throw _0x55a9c8['error'];if(_0x1d1f1a(_0x38f3a8))throw _0x38f3a8['error'];_0x5594c9[_0x58eceb(0x1ee)]({..._0x2d045e[_0x322456],'undoState':_0x55a9c8[_0x58eceb(0x378)][_0x58eceb(0x1f0)],'redoState':_0x38f3a8[_0x58eceb(0x378)]['params']}),_0x54da57=_0x55a9c8[_0x58eceb(0x294)],_0x33fa19=_0x38f3a8[_0x58eceb(0x294)];}this['_docStateChangeManagerService']['setStateCache'](_0x2b4b1f,{'history':_0x5fe514,'collaboration':_0x5594c9});}};ue=In([Le(0x0,_0x5ee57b(_0x1e6ef3)),Le(0x1,_0xaced2),Le(0x2,_0x5ee57b(_0x15c2c4))],ue);var mn=Object[_0x3d135c(0x372)],fn=(_0x3e3240,_0x37da1b,_0x2f13c5,_0x2ba6b6)=>{for(var _0x17e776=_0x2ba6b6>0x1?void 0x0:_0x2ba6b6?mn(_0x37da1b,_0x2f13c5):_0x37da1b,_0x3f660c=_0x3e3240['length']-0x1,_0x338321;_0x3f660c>=0x0;_0x3f660c--)(_0x338321=_0x3e3240[_0x3f660c])&&(_0x17e776=_0x338321(_0x17e776)||_0x17e776);return _0x17e776;},ht=(_0x2fdd09,_0x2524c0)=>(_0x2da678,_0x38fa90)=>_0x2524c0(_0x2da678,_0x38fa90,_0x2fdd09);let de=class{constructor(_0x2d0ff6,_0x2d15ea){const _0x30ffff=_0x3d135c;this[_0x30ffff(0x31d)]=_0x2d0ff6,this[_0x30ffff(0x28d)]=_0x2d15ea;}[_0x3d135c(0x27b)](_0x351983){const _0x26fbf9=_0x3d135c;var _0x39b6ae;const _0x228a08=this[_0x26fbf9(0x31d)][_0x26fbf9(0x2f8)](_0xe90695),_0x2d6c70=(_0x39b6ae=_0x228a08[_0x26fbf9(0x1f8)]())!=null?_0x39b6ae:[];if(_0x2d6c70['length']===0x0)return;const _0x38aa7a=_0x351983['unitID'],_0x397d2e=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x38aa7a,'actions':null,'textRanges':_0x2d6c70}}],_0x58f8d0=this[_0x26fbf9(0x28d)]['transformMutationsWithChangeset'](_0x351983,_0x397d2e);if(!_0x134ffb(_0x58f8d0))throw _0x58f8d0[_0x26fbf9(0x2b9)];const _0x5d54ad=_0x58f8d0[_0x26fbf9(0x378)][0x0]['params'][_0x26fbf9(0x2ca)];Array['isArray'](_0x5d54ad)&&_0x5d54ad[_0x26fbf9(0x35c)]&&_0x228a08[_0x26fbf9(0x1df)](_0x5d54ad,{'unitId':_0x38aa7a,'subUnitId':_0x38aa7a},!0x1);}};de=fn([ht(0x0,_0x5ee57b(_0x1e6ef3)),ht(0x1,_0xaced2)],de);var gn=Object[_0x3d135c(0x372)],En=(_0x57b99f,_0x4a2b58,_0x13494f,_0x313e0d)=>{const _0x4ead40=_0x3d135c;for(var _0x193576=_0x313e0d>0x1?void 0x0:_0x313e0d?gn(_0x4a2b58,_0x13494f):_0x4a2b58,_0x502e0c=_0x57b99f[_0x4ead40(0x35c)]-0x1,_0xac59ab;_0x502e0c>=0x0;_0x502e0c--)(_0xac59ab=_0x57b99f[_0x502e0c])&&(_0x193576=_0xac59ab(_0x193576)||_0x193576);return _0x193576;},U=(_0x56fa6e,_0x16696d)=>(_0x54113f,_0x3016f9)=>_0x16696d(_0x54113f,_0x3016f9,_0x56fa6e);let Se=class extends _0x292928{constructor(_0x48a637,_0x121341,_0x4b95e0,_0x4d7593,_0x3d18f5,_0x5a2d71,_0x254975,_0x416ad0){const _0x195757=_0x3d135c;super(),_(this,'_status$',new _0x32ea2a(_0x38ad77['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x48a637,this[_0x195757(0x204)]=_0x121341,this['_docTransformIMECacheService']=_0x4b95e0,this[_0x195757(0x30b)]=_0x4d7593,this['_docTransformSelectionsService']=_0x3d18f5,this[_0x195757(0x260)]=_0x5a2d71,this[_0x195757(0x36e)]=_0x254975,this[_0x195757(0x1f9)]=_0x416ad0,this[_0x195757(0x31e)]());}[_0x3d135c(0x31e)](){const _0x18b2c1=_0x3d135c;this[_0x18b2c1(0x2ec)](this[_0x18b2c1(0x204)][_0x18b2c1(0x18c)][_0x18b2c1(0x251)](_0x3d69a4=>{const _0x27f9c1=_0x18b2c1,_0x48d9e4=this[_0x27f9c1(0x34c)][_0x27f9c1(0x225)][_0x27f9c1(0x251)](_0x3b6f8d=>{if(_0x3b6f8d==null)return;const {unitId:_0x3803c1,redoState:_0x2d44da,commandId:_0x394167}=_0x3b6f8d;if(_0x3803c1!==_0x3d69a4['unitID'])return;const _0x158e9a={'id':_0x394167,'type':_0x3abdf6['MUTATION'],'params':{'unitId':_0x3803c1,'actions':_0x2d44da['actions'],'textRanges':null}};_0x3d69a4['onLocalMutation'](_0x158e9a);});if(_0x3d69a4['disposeWithMe'](_0x48d9e4),_0x3d69a4 instanceof _0x5dc4f3){const _0x3eea8b={'onTransformIME':_0x23f64d=>this[_0x27f9c1(0x278)]['transformIMECache'](_0x23f64d),'onTransformState':_0x22aad4=>this[_0x27f9c1(0x30b)][_0x27f9c1(0x216)](_0x22aad4),'onTransformSelections':_0x90515a=>this['_docTransformSelectionsService'][_0x27f9c1(0x27b)](_0x90515a),'onSyncEditingCollabCursor':_0x2ade55=>this[_0x27f9c1(0x260)][_0x27f9c1(0x28a)](_0x2ade55),'onTransformRemoteChangesetByIMECache':_0x5a3b35=>this[_0x27f9c1(0x278)]['transformRemoteChangeset'](_0x5a3b35),'onTransformRemoteChangesetByStateCache':_0x2a7562=>this[_0x27f9c1(0x30b)][_0x27f9c1(0x384)](_0x2a7562)};_0x3d69a4[_0x27f9c1(0x29e)](_0x3eea8b);}}));}};Se=En([U(0x0,_0x5ee57b(_0x15c2c4)),U(0x1,_0x5ee57b(_0xded1ca)),U(0x2,_0x5ee57b(he)),U(0x3,_0x5ee57b(ue)),U(0x4,_0x5ee57b(de)),U(0x5,_0x5ee57b(ze)),U(0x6,_0x16b40d),U(0x7,_0x5ee57b(_0x222f4e))],Se);var Z=(_0x4cd362=>(_0x4cd362[_0x4cd362['UNDEFINED']=0x0]=_0x3d135c(0x35a),_0x4cd362[_0x4cd362['OK']=0x1]='OK',_0x4cd362[_0x4cd362[_0x3d135c(0x3bc)]=0x2]=_0x3d135c(0x3bc),_0x4cd362[_0x4cd362[_0x3d135c(0x189)]=0x3]=_0x3d135c(0x189),_0x4cd362[_0x4cd362[_0x3d135c(0x3be)]=0x4]=_0x3d135c(0x3be),_0x4cd362[_0x4cd362['UNAUTHENTICATED']=0x5]=_0x3d135c(0x228),_0x4cd362[_0x4cd362[_0x3d135c(0x2b6)]=0x6]=_0x3d135c(0x2b6),_0x4cd362[_0x4cd362['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x4cd362[_0x4cd362['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x4cd362[_0x4cd362[_0x3d135c(0x234)]=0x9]=_0x3d135c(0x234),_0x4cd362[_0x4cd362[_0x3d135c(0x1b8)]=0xa]=_0x3d135c(0x1b8),_0x4cd362[_0x4cd362[_0x3d135c(0x202)]=0xb]=_0x3d135c(0x202),_0x4cd362[_0x4cd362[_0x3d135c(0x269)]=0xc]=_0x3d135c(0x269),_0x4cd362[_0x4cd362[_0x3d135c(0x309)]=0xd]=_0x3d135c(0x309),_0x4cd362[_0x4cd362[_0x3d135c(0x19d)]=0xe]=_0x3d135c(0x19d),_0x4cd362[_0x4cd362[_0x3d135c(0x37f)]=0xf]=_0x3d135c(0x37f),_0x4cd362[_0x4cd362[_0x3d135c(0x313)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x4cd362[_0x4cd362[_0x3d135c(0x39b)]=0x64]=_0x3d135c(0x39b),_0x4cd362[_0x4cd362['ERROR_AGAIN']=0x65]=_0x3d135c(0x20b),_0x4cd362[_0x4cd362[_0x3d135c(0x1ce)]=0xc9]='USER_NOT_FOUND',_0x4cd362[_0x4cd362[_0x3d135c(0x2fd)]=0xca]=_0x3d135c(0x2fd),_0x4cd362[_0x4cd362[_0x3d135c(0x399)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x4cd362[_0x4cd362['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x4cd362[_0x4cd362[_0x3d135c(0x247)]=0x1772]=_0x3d135c(0x247),_0x4cd362[_0x4cd362[_0x3d135c(0x1bb)]=0x1773]=_0x3d135c(0x1bb),_0x4cd362[_0x4cd362[_0x3d135c(0x2a3)]=0x1b59]='APPLY_REJECT',_0x4cd362[_0x4cd362[_0x3d135c(0x2f1)]=0x1b5a]=_0x3d135c(0x2f1),_0x4cd362[_0x4cd362['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x4cd362[_0x4cd362[_0x3d135c(0x1f5)]=0x1b5c]=_0x3d135c(0x1f5),_0x4cd362[_0x4cd362['APPLY_DUPLICATED']=0x1b5d]=_0x3d135c(0x25e),_0x4cd362[_0x4cd362[_0x3d135c(0x3b3)]=0x1f41]=_0x3d135c(0x3b3),_0x4cd362[_0x4cd362[_0x3d135c(0x288)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x4cd362[_0x4cd362[_0x3d135c(0x33c)]=0x232a]=_0x3d135c(0x33c),_0x4cd362[_0x4cd362['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x4cd362[_0x4cd362[_0x3d135c(0x2bb)]=0x232c]=_0x3d135c(0x2bb),_0x4cd362[_0x4cd362[_0x3d135c(0x2a9)]=0x232d]=_0x3d135c(0x2a9),_0x4cd362[_0x4cd362[_0x3d135c(0x1bd)]=0x2711]=_0x3d135c(0x1bd),_0x4cd362[_0x4cd362['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x3d135c(0x280),_0x4cd362[_0x4cd362[_0x3d135c(0x35e)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x4cd362[_0x4cd362[_0x3d135c(0x350)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x4cd362[_0x4cd362[_0x3d135c(0x307)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x4cd362[_0x4cd362[_0x3d135c(0x188)]=0x271b]=_0x3d135c(0x188),_0x4cd362[_0x4cd362[_0x3d135c(0x28e)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x4cd362[_0x4cd362['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x4cd362[_0x4cd362[_0x3d135c(0x36c)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x4cd362[_0x4cd362[_0x3d135c(0x191)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x4cd362[_0x4cd362[_0x3d135c(0x304)]=0x2720]=_0x3d135c(0x304),_0x4cd362[_0x4cd362[_0x3d135c(0x390)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x4cd362[_0x4cd362[_0x3d135c(0x195)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x4cd362[_0x4cd362[_0x3d135c(0x1ba)]=0x2ee2]=_0x3d135c(0x1ba),_0x4cd362[_0x4cd362[_0x3d135c(0x312)]=0x2ee3]=_0x3d135c(0x312),_0x4cd362[_0x4cd362[_0x3d135c(0x339)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x4cd362[_0x4cd362[_0x3d135c(0x212)]=0x2ee5]=_0x3d135c(0x212),_0x4cd362[_0x4cd362[_0x3d135c(0x271)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x4cd362[_0x4cd362[_0x3d135c(0x352)]=0x32ca]=_0x3d135c(0x352),_0x4cd362[_0x4cd362[_0x3d135c(0x279)]=0x32cb]=_0x3d135c(0x279),_0x4cd362[_0x4cd362[_0x3d135c(0x214)]=0x36b1]=_0x3d135c(0x214),_0x4cd362[_0x4cd362['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]=_0x3d135c(0x328),_0x4cd362[_0x4cd362[_0x3d135c(0x2ea)]=0x36b3]=_0x3d135c(0x2ea),_0x4cd362[_0x4cd362['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x3d135c(0x30d),_0x4cd362[_0x4cd362[_0x3d135c(0x27d)]=0x36b5]=_0x3d135c(0x27d),_0x4cd362[_0x4cd362[_0x3d135c(0x1f6)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x4cd362[_0x4cd362[_0x3d135c(0x289)]=0x36b7]=_0x3d135c(0x289),_0x4cd362[_0x4cd362[_0x3d135c(0x2a6)]=0x36b8]=_0x3d135c(0x2a6),_0x4cd362[_0x4cd362['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x4cd362[_0x4cd362[_0x3d135c(0x36b)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x4cd362[_0x4cd362[_0x3d135c(0x186)]=0x3717]=_0x3d135c(0x186),_0x4cd362[_0x4cd362[_0x3d135c(0x1b6)]=0x37dd]=_0x3d135c(0x1b6),_0x4cd362[_0x4cd362[_0x3d135c(0x1e7)]=0x3a99]=_0x3d135c(0x1e7),_0x4cd362[_0x4cd362[_0x3d135c(0x23c)]=0x3a9a]=_0x3d135c(0x23c),_0x4cd362[_0x4cd362[_0x3d135c(0x291)]=0x3a9b]=_0x3d135c(0x291),_0x4cd362[_0x4cd362[_0x3d135c(0x347)]=0x3a9c]=_0x3d135c(0x347),_0x4cd362[_0x4cd362[_0x3d135c(0x324)]=0x3a9d]=_0x3d135c(0x324),_0x4cd362[_0x4cd362[_0x3d135c(0x2de)]=0x3a9e]=_0x3d135c(0x2de),_0x4cd362[_0x4cd362['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x4cd362[_0x4cd362[_0x3d135c(0x301)]=0x3e81]=_0x3d135c(0x301),_0x4cd362[_0x4cd362['UNRECOGNIZED']=-0x1]=_0x3d135c(0x20f),_0x4cd362))(Z||{});function _0x3a36(){const _0x1f5366=['isActive','_docTransformIMECacheService','EMAIL_HAS_BEEN_BOUND','forEach','transformSelections','string','ENTITLE_INVALID_COUPON_CODE','trim','editingUnit','YUUMI_URL_COL_OUT_OF_RANGE','3375097OQZRub','_themeService','ticket','executeCommand','_unitOnClients','_collabCursorState$','SUBMIT_CHANGESET_TIMEOUT','LICENSE_MAX_UNITS_EXCEEDED','ENTITLE_COUPON_USED_UP','syncEditingCollabCursor','NOT_COLLAB','_lastPointer','_transformService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','mask','_scheduleClearOtherTimer','REDEMPTION_CODE_FULLY_REDEEMED','subunit','4ImQeoK','m1Prime','red.300','RECT','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','setAlpha','PENDING','getCurrentUnitForType','_docClipboardService','parseInt','defs','addHandlerCallback','endRow','ranges','_transformUndoRedoStack','_setFormulaLimitStatus','APPLY_REJECT','getMemberID','_handleHeartbeatEvent','ENTITLE_USE_COUPON_NOT_1ST_TRADE','getViewport','collabStatus.notCollab','LICENSE_DISTRO_REJECTED','getformulaLimitStatusUrl','cursorInfo$','use','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','getFocusedUnit','clearInterval','collabCursorState$','_clearOtherTimers','Success','substring','2267370XzdFHT','clipPath','ALREADY_EXISTS','push','248BrhnQG','error','getSheetBySheetId','LICENSE_EXPORT_SIZE_EXCEEDED','round','_urlService','univer-flex\x20univer-items-center','_beforeCloseService','data','wsSessionTicketUrl','TEXT','USERS_LEAVE','find','_initStatusComponent','transformByState','setTimeout','setConfig','_hasFormulaInDirtyRanges','textRanges','row','beginPath','registerComponent','displayName','defineProperty','?taskId=','send','stage','_removeClearOtherTimer','origin','pipe','_getScale','totalFormulasToCalculate','_shapes','_textBubble','transformMutation','_toggleOffline','current','_refRangeService','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_status$','search','_onCursorUpdate','_cursors','UNIVER_DOC','unit','formula.calculation.unable','parse','_anchorDot','_session','color','ENTITLE_DUP_SUBSCRIPTION','sessionTicket','disposeWithMe','on-line-icon_clip0_910_349','column','path','Failed','APPLY_NON_SEQUENTIAL_REVISION','clearTimeout','_range','InsertRangeMoveRightCommandId','getCurrentRevOfUnit','1em','cursorInfo','get','DeleteRangeMoveLeftCommandId','triggerDblclick','_logService','sheetID','USER_IS_ANONYMOUS','fillStyle','getParam','assignAColorForMemberID','DATA_SOURCE_TOO_LARGE','isArray','addEventListener','YUUMI_CONNECTOR_URL_NOT_FOUND','_monkeyPatchLogService','shift','YUUMI_NO_CUBOID_FOR_QUESTION','post','EMAIL_VERIFY_CODE_MISMATCH','collabStatus.syncing','_docTransformStateCacheService','lineTo','PAYMENT_CHANNEL_NOT_SUPPORT','_initDependencies','collab-text-range-','OFFLINE','attrs','INVITE_CODE_REQUIRED','LOGIN_TOKEN_PROCESSING_FAILED','_drawTextRange','_transformHistoryAndStateStack','_cursorInfo$','reason','_disabled','/universer-api/license/formula/limit/status','sessionStatus$','transformMutationsWithChangeset','map','_injector','_initEntityListener','complete','dispose','getCellPositionByOffset','_setupBeforeClosingHandler','_docSkeletonManagerService','REDEMPTION_USER_NOT_ELIGIBLE','42291jNbtBn','_setupSubUnitSync','_collaborationSessionService','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_unitStatus','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','event$','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','getUndoRedoMutationParamsCache','0\x200\x2016\x2016','findNodePositionByCharIndex','Error','url(#$1','_roomMembers$','_labelPosition','memberID','_name','_draw','_handleHover','size','USER_NOT_INVITED_CODE','_sheetSkeletonManagerService','_checkCalculationAvailable','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','startRow','collaboration-client-ui.config','getUnit','idSuffix','_collabCursorController','startFormulaLimitUrl','unhandledrejection','stringify','collabStatus.synced','entries','REDEMPTION_CODE_NOT_STARTED','_transformPreviousActiveRange','_currentUsage','_cursorShapes','startColumn','_docStateChangeManagerService','onPointerEnter$','_lastResponseTimestamp','pushState','YUUMI_SUBSCRIPTION_NOT_FOUND','assign','MOBILE_HAS_BEEN_BOUND','save','_onCursorDelete','9706EPkhTj','ACTIVE_UNIT_EVENT_CHANNEL','unsubscribe','_imageIoService','undoState','UNDEFINED','now','length','removeParam','YUUMI_RATE_OVER_LIMIT','toString','off-line-icon','_handleLeaveEvent','_uploadLog','xlink:href','_removeCollabCursors','_taskIds','/run/','currentSkeleton$','_send','_pollingInterval','6KWFkES','ENTITLE_REPORT_LIMIT_EXCEED','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','searchParams','_messageService','unitID','endColumn','type','getOwnPropertyDescriptor','_commandService','InsertRangeMoveDownCommandId','_cachedData','UNIVER_SHEET','currentColor','m2Prime','saveTaskMap','max','_scene','makeDirty','getRangePointData','focused$','AUTHORIZE_CODE_ILLEGAL','AWAITING_WITH_PENDING','_initStatusListener','_clearPolling','_uiPartsService','transformRemoteChangeset','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','[LogService\x20Error]:\x20','_color','InsertRowCommandId','_releaseCalculationLimit','Unknown\x20user','session.will-retry','_startCalculationLimit','getCurrentSelections','formula.calculation.started','getStateCache','PY_RUNTIME_SCRIPT_ERROR','set','_config','exhaustSavingTask','_revisionService','_initEvent','getCollabEntity$','jiqing.500','height','CHANGESET_REVISION_CONFILICT','backgroundColor','CURRENT_STATUS_CANNOT_OPERATE','with','getValue','OTHER_CLIENT_EDITING','_saveTaskMap','fill','mutations','createSocket','onPointerLeave$','addObject','_handleJoinEvent','off-line-icon_clip0_910_343','setUndoRedoMutationParamsCache','[CollaborationDataLoaderController]','_cursor','getUnitId','_getFormulaLimitStatus','yellow.400','_syncEditingCollabCursorService','_selfUnitIDs','subscribeEvent','selection','_configService','onCommandExecuted','CONNECTOR_DATA_TOO_LARGE','/universer-api/license/formula/limit/done','_memberID','asObservable','collab-client.tooltip.reconnect','delete','_maxFormulaLimit','green.600','arc','INTERNAL_ERROR','getCurrent','NOT_FOUND','getTypeOfUnitAdded$','children','getMember','getActiveSheet','_assignedColors','status$','permission.content','3557943gdHbSA','_startSheetCollabCursor','storage','code','_httpService','eventID','values','url(#off-line-icon_clip0_910_343)','whenReady','uni.network.url-service','functionsExecutedState','setShapeProps','onStarting','[Unhandled\x20Rejection]:\x20','ENTITLE_INSUFFICIENT_QUOTA','_checkAndWaitForCalculationPermission','YUUMI_ASYNCIO_CANCELLED','PERMISSION_DENIED','getCellMatrix','http://www.w3.org/2000/svg','entityInit$','reconnect','width','createInstance','getConfig','YUUMI_AI_RUN_FAILED','location','lineno','runId','INVITE_CODE_HAS_BEEN_UES','InsertColCommandId','collab-text-anchor-','_heartbeatTimer','next','then','getItem','min','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getActiveRange','replaceState','symbol','replace','moveTo','collaboration.closeRoom','_drawRectRange','_memberService','black','338365tiamKK','name','contains','CONFLICT','_doCreateSocket','split','_colorAssignService','stack','_updateSubUnitFromURLParams','getSheetId','loadUnit','currentTheme$','_initWindowErrorListener','colorChannel1','_scheduleSaving','ENTITLE_NEED_BILLING_ADDRESS','RemoveColCommandId','LOGIN_FAILED','add','INVALID_INVITE_CODE','ENSURE_SNAPSHOT_EXECUTION','0\x200\x2017\x2016','YUUMI_UNABLE_LOAD_URL','_localCacheService','getUniverSheetInstance','_saveCache','M0\x200H16V16H0z','isEditing','init','_initUserListener','_getSessionTicket','OnLineIcon','debug','none','dispose$','_instanceService','sheetId','_getSaveTimeout','61dktOEc','USER_NOT_FOUND','addObjects','_id','_eventUnsubscribe','translate(.97)','requireSession','collabStatus.offline','UniverIcon','_createSocketURL','hovered','setItem','removeEventListener','urlChange$','collaboration.single-unit.warning','SUCCESS','getSkeleton','_onRefRangeChange','replaceDocRanges','FETCH_MISS','top','_applyCommand','_initCommandExecutedListener','Warning','bind','maxFormulaLimit','REDEMPTION_INVALID_CODE','key','unitId','saveImage','collab-rect-range-','240721mjtbSt','fillText','unshift','getCollabCursors$','params','subUnitId','_dataLoaderService','body','labelPosition','APPLY_PERMISSION_DENIED','ENTITLE_COUPON_EXPIRED','deepClone','getDocRanges','_localeService','_univerInstanceService','all','getRenderById','_refreshCollabCursors','getTypeOfUnitDisposed$','application/json','fillRule','_collaborationUIEventService','MOBILE_VERIFY_CODE_MISMATCH','disableLocalCache','_collaborationController','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_updateLocalCursor','from','_backgroundColor','newValue','doc.mutation.rich-text-editing','ERROR_AGAIN','restore','stageInfo','_showGuardMessage','UNRECOGNIZED','_getSheetObject','DeleteRangeMoveUpCommandId','INVITE_CODE_ALREADY_BOUND','releaseFormulaLimitUrl','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_colorIndex','transformStateCache','420xpwPHs','_notificationService','_anchor','roomMembers$','_initCommandInterceptor','colno','saveOfflineData','UPDATE_CURSOR','setActiveRange','evenodd','random','_docSkeleton','range','ONLINE','docStateChange$','_ensureSubject','_registerRenderDependencies','UNAUTHENTICATED','SYNCED','_toggleOnline','_initResize','VIEW_MAIN','_render','_registerDependencies','result','addClipboardHook','imageSourceType','onPointerMove$','_hideTimer','COMPLETION_FINISHED','setInterval','has','join','history','_updateURLWithCurrentState','message','drawWith','REDEMPTION_CODE_INACTIVE','redoState','setParam','CLOSE_ROOM','measureText','currentUsage','collabStatus.fetchMiss','OTHER_CLIENTS_EDITING','svg','show','onTransformChange$','SNAPSHOT_HAS_BEEN_REMOVED','START_CALCULATION','_hover','_localStorageService','formula.calculation.waiting','_hovered','unload','toRgbString','selections','_init','subscribe','_updateCollabCursors','popstate','executionId','white','hide','dirtyRanges','purple.300','href','_scheduleHeartbeat','getColorFromTheme','permission.title','tag','APPLY_DUPLICATED','_renderManagerService','_docSyncEditingCollabCursorService','_drawAnchor','FromArray','_initUnhandledRejectionListener','div','getAncestorScale','SOCKET_FAILED_RETRY','_handleEvent','enableFrontendLog','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_startDocCollabCursor','closePath','_collabSessionService','_entities','/universer-api/frontend/logs','font','10vmheCg','WECHAT_HAS_BEEN_BOUND','text','_context','_online','_entityInit$','disposeUnit'];_0x3a36=function(){return _0x1f5366;};return _0x3a36();}function vn(_0x129f0d){const _0x1c0f95=_0x3d135c;var _0x36db8d,_0x359fbc;const _0x2babab=(_0x36db8d=_0x129f0d[_0x1c0f95(0x20d)])==null?void 0x0:_0x36db8d[_0x1c0f95(0x2d2)],_0x5156aa=((_0x359fbc=_0x129f0d[_0x1c0f95(0x20d)])==null?void 0x0:_0x359fbc[_0x1c0f95(0x2d7)])||0x0;return _0x2babab===_0x38340e[_0x1c0f95(0x248)]&&_0x5156aa>0x0;}function pn(_0x498d55){const _0x2152aa=_0x3d135c;return _0x498d55[_0x2152aa(0x182)]===_0x2f49dd[_0x2152aa(0x1dc)];}var On=Object[_0x3d135c(0x372)],Tn=(_0xc0692e,_0x18bcc9,_0x1855bf,_0x41dcbd)=>{const _0x2d0682=_0x3d135c;for(var _0x8b2cfc=_0x41dcbd>0x1?void 0x0:_0x41dcbd?On(_0x18bcc9,_0x1855bf):_0x18bcc9,_0x20fae8=_0xc0692e[_0x2d0682(0x35c)]-0x1,_0x5a8068;_0x20fae8>=0x0;_0x20fae8--)(_0x5a8068=_0xc0692e[_0x20fae8])&&(_0x8b2cfc=_0x5a8068(_0x8b2cfc)||_0x8b2cfc);return _0x8b2cfc;},P=(_0x4b6aea,_0x36750b)=>(_0x50a9c7,_0x3d39de)=>_0x36750b(_0x50a9c7,_0x3d39de,_0x4b6aea);const Cn=_0x3d135c(0x319),Rn='/universer-api/license/formula/limit/start',Dn=_0x3d135c(0x3b4);let Ie=class extends _0x292928{constructor(_0x517547,_0x5d1051,_0x22b050,_0x1c700a,_0x5e713f,_0x526ba3,_0x4e5c86){const _0x1cb4c0=_0x3d135c;super(),_(this,_0x1cb4c0(0x369),null),_(this,_0x1cb4c0(0x3b9),0x0),_(this,_0x1cb4c0(0x349),0x0),_(this,_0x1cb4c0(0x365),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x1cb4c0(0x36e)]=_0x517547,this[_0x1cb4c0(0x373)]=_0x5d1051,this['_configService']=_0x22b050,this[_0x1cb4c0(0x17c)]=_0x1c700a,this['_univerInstanceService']=_0x5e713f,this[_0x1cb4c0(0x2fb)]=_0x526ba3,this[_0x1cb4c0(0x1f9)]=_0x4e5c86,this[_0x1cb4c0(0x21b)]());}[_0x3d135c(0x21b)](){const _0x3e1846=_0x3d135c;this[_0x3e1846(0x2ec)](this[_0x3e1846(0x373)]['beforeCommandExecuted']((_0x3b47f0,_0x374396)=>{const _0x4223c9=_0x3e1846;var _0x1c0de0;if(_0x3b47f0['id']!==_0x5c8b27['id'])return;const _0x4b485f=_0x3b47f0[_0x4223c9(0x1f0)];if(!this[_0x4223c9(0x2c9)]((_0x1c0de0=_0x4b485f[_0x4223c9(0x257)])!=null?_0x1c0de0:[]))return;if(!this[_0x4223c9(0x33b)]())throw this['_checkAndWaitForCalculationPermission'](_0x3b47f0,_0x374396),this['_showGuardMessage'](),new _0x243301();})),this['disposeWithMe'](this[_0x3e1846(0x373)][_0x3e1846(0x3b2)]((_0x4261f2,_0x1b69e5)=>{const _0x1663e3=_0x3e1846;if(_0x4261f2['id']!==_0x2dd533['id'])return;const _0x12130f=_0x4261f2[_0x1663e3(0x1f0)];if(vn(_0x12130f)){const _0x3d97fc=_0x574e48();this['_taskIds'][_0x1663e3(0x2b7)](_0x3d97fc),this[_0x1663e3(0x38c)](_0x3d97fc);}else{if(pn(_0x12130f)&&this[_0x1663e3(0x365)]['length']>0x0){const _0x4d8547=this[_0x1663e3(0x365)][_0x1663e3(0x306)]();this[_0x1663e3(0x389)](_0x4d8547);}}}));}[_0x3d135c(0x320)](){const _0x473c19=_0x3d135c;super[_0x473c19(0x320)](),this[_0x473c19(0x382)](),this[_0x473c19(0x365)]=[],this[_0x473c19(0x349)]=0x0,this['_maxFormulaLimit']=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x3d135c(0x187)](_0x56649f,_0x41b87c){const _0x4921ee=_0x3d135c;for(let _0x3d0ba3=0x0;_0x3d0ba3<0x1e;_0x3d0ba3++)try{if(await this[_0x4921ee(0x3ab)](),this[_0x4921ee(0x33b)]()){this[_0x4921ee(0x1e2)](_0x56649f,_0x41b87c),this['_messageService'][_0x4921ee(0x245)]({'content':this['_localeService']['t'](_0x4921ee(0x38e)),'type':_0x1b2859[_0x4921ee(0x2b2)]});return;}await new Promise(_0x54dcd0=>{const _0xa6225c=_0x4921ee;this[_0xa6225c(0x369)]=window[_0xa6225c(0x2c7)](_0x54dcd0,0x3e8);});}catch(_0x38c3e9){this[_0x4921ee(0x2fb)]['error'](_0x38c3e9);}this['_messageService'][_0x4921ee(0x245)]({'content':this[_0x4921ee(0x1f9)]['t'](_0x4921ee(0x2e5)),'type':_0x1b2859[_0x4921ee(0x330)]});}[_0x3d135c(0x1e2)](_0x4fdea9,_0x39ce9f){const _0x51aa44=_0x3d135c;try{this['_commandService'][_0x51aa44(0x284)](_0x4fdea9['id'],_0x4fdea9[_0x51aa44(0x1f0)],_0x39ce9f);}catch(_0x3f2bfb){this[_0x51aa44(0x2fb)]['error'](_0x3f2bfb);}}[_0x3d135c(0x2a2)](_0x3b6673,_0x213a8b){const _0xf090bf=_0x3d135c;_0x213a8b<this[_0xf090bf(0x34e)]||(this[_0xf090bf(0x34e)]=_0x213a8b,this[_0xf090bf(0x3b9)]=Number[_0xf090bf(0x29c)](_0x3b6673[_0xf090bf(0x1e6)]),this['_currentUsage']=Number[_0xf090bf(0x29c)](_0x3b6673[_0xf090bf(0x241)]));}async[_0x3d135c(0x38c)](_0xa63ca2){const _0x36ce45=_0x3d135c;var _0x1a62ad,_0x1e7047;const _0x397898=Date[_0x36ce45(0x35b)]();try{const _0x267059=((_0x1a62ad=this[_0x36ce45(0x3b1)][_0x36ce45(0x190)](_0xced3a1))==null?void 0x0:_0x1a62ad[_0x36ce45(0x342)])||Rn,_0x1873d3=(await this[_0x36ce45(0x17c)]['post'](_0x267059,{'body':JSON[_0x36ce45(0x344)]({'taskId':_0xa63ca2})}))[_0x36ce45(0x1f3)];if(((_0x1e7047=_0x1873d3[_0x36ce45(0x2b9)])==null?void 0x0:_0x1e7047[_0x36ce45(0x17b)])!==Z['OK'])return;this[_0x36ce45(0x2a2)](_0x1873d3['limitInfo'],_0x397898);}catch(_0x2e9f85){this[_0x36ce45(0x2fb)]['error'](_0x2e9f85);}}async[_0x3d135c(0x3ab)](_0x55e6af){const _0x318e00=_0x3d135c;var _0x1b1cb2,_0x2cf013;const _0x1d9bc4=Date[_0x318e00(0x35b)]();try{const _0x20ca62=((_0x1b1cb2=this[_0x318e00(0x3b1)][_0x318e00(0x190)](_0xced3a1))==null?void 0x0:_0x1b1cb2[_0x318e00(0x2aa)])||Cn,_0x5d840c=_0x55e6af?_0x20ca62+_0x318e00(0x2d0)+encodeURIComponent(_0x55e6af):_0x20ca62,_0x5c3855=(await this['_httpService'][_0x318e00(0x2f8)](_0x5d840c))['body'];if(((_0x2cf013=_0x5c3855['error'])==null?void 0x0:_0x2cf013[_0x318e00(0x17b)])!==Z['OK'])return;this[_0x318e00(0x2a2)](_0x5c3855['limitInfo'],_0x1d9bc4);}catch(_0x2ecebb){this[_0x318e00(0x2fb)][_0x318e00(0x2b9)](_0x2ecebb);}}async[_0x3d135c(0x389)](_0x25c800){const _0x2e4bcd=_0x3d135c;var _0x13ea41,_0x5108f5;const _0xa1ef20=Date[_0x2e4bcd(0x35b)]();try{const _0x48b93c=((_0x13ea41=this['_configService'][_0x2e4bcd(0x190)](_0xced3a1))==null?void 0x0:_0x13ea41[_0x2e4bcd(0x213)])||Dn,_0x4630ba=(await this[_0x2e4bcd(0x17c)][_0x2e4bcd(0x308)](_0x48b93c,{'body':JSON[_0x2e4bcd(0x344)]({'taskId':_0x25c800})}))[_0x2e4bcd(0x1f3)];if(((_0x5108f5=_0x4630ba[_0x2e4bcd(0x2b9)])==null?void 0x0:_0x5108f5['code'])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x4630ba['limitInfo'],_0xa1ef20);}catch(_0x2fdd4a){this[_0x2e4bcd(0x2fb)]['error'](_0x2fdd4a);}}[_0x3d135c(0x33b)](){const _0x1ba04d=_0x3d135c;return this[_0x1ba04d(0x3b9)]===0x0?!0x0:this['_maxFormulaLimit']-this['_currentUsage']>0x0;}[_0x3d135c(0x382)](){const _0x90e02b=_0x3d135c;this[_0x90e02b(0x369)]&&(clearTimeout(this[_0x90e02b(0x369)]),this[_0x90e02b(0x369)]=null);}[_0x3d135c(0x20e)](){const _0x104537=_0x3d135c;this[_0x104537(0x36e)][_0x104537(0x245)]({'content':this['_localeService']['t'](_0x104537(0x24b)),'type':_0x1b2859['Loading']});}[_0x3d135c(0x2c9)](_0x1235b9){const _0x2cfb6f=_0x3d135c;for(const _0x1f05ad of _0x1235b9){const {unitId:_0x4ef6c4,sheetId:_0x5b10a8,range:_0x12f98e}=_0x1f05ad,_0x2fade7=this[_0x2cfb6f(0x1fa)][_0x2cfb6f(0x33f)](_0x4ef6c4);if(!_0x2fade7)continue;const _0x41a1e9=_0x2fade7[_0x2cfb6f(0x2ba)](_0x5b10a8);if(!_0x41a1e9)continue;const _0x437507=_0x41a1e9[_0x2cfb6f(0x18a)]();for(let _0x1ae727=_0x12f98e[_0x2cfb6f(0x33d)];_0x1ae727<=_0x12f98e[_0x2cfb6f(0x29f)];_0x1ae727++)for(let _0x25f9c8=_0x12f98e[_0x2cfb6f(0x34b)];_0x25f9c8<=_0x12f98e[_0x2cfb6f(0x370)];_0x25f9c8++){const _0x3e5ac8=_0x437507[_0x2cfb6f(0x39d)](_0x1ae727,_0x25f9c8);if(_0x3e5ac8&&(_0x1f0070(_0x3e5ac8['f'])||_0x235263(_0x3e5ac8['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x5ee57b(_0x16b40d)),P(0x1,_0x57432f),P(0x2,_0x273292),P(0x3,_0x5ee57b(_0x323dbf)),P(0x4,_0x378950),P(0x5,_0xae2fa1),P(0x6,_0x5ee57b(_0x222f4e))],Ie);var Nn=Object['getOwnPropertyDescriptor'],bn=(_0x3c4b0e,_0x2279e4,_0x3957f3,_0x47e4b5)=>{const _0x1638a8=_0x3d135c;for(var _0x20654f=_0x47e4b5>0x1?void 0x0:_0x47e4b5?Nn(_0x2279e4,_0x3957f3):_0x2279e4,_0x5e628d=_0x3c4b0e[_0x1638a8(0x35c)]-0x1,_0xf6ac65;_0x5e628d>=0x0;_0x5e628d--)(_0xf6ac65=_0x3c4b0e[_0x5e628d])&&(_0x20654f=_0xf6ac65(_0x20654f)||_0x20654f);return _0x20654f;},Ue=(_0x29eae0,_0x4704a7)=>(_0x3535be,_0x32ac69)=>_0x4704a7(_0x3535be,_0x32ac69,_0x29eae0);let He=class extends _0x292928{constructor(_0x1d1508,_0x56d960,_0x50b52b){const _0x238996=_0x3d135c;super(),_(this,_0x238996(0x375),new Map()),_(this,_0x238996(0x39f),new Map()),_(this,_0x238996(0x318),!0x1),(this[_0x238996(0x3b1)]=_0x1d1508,this['_localStorageService']=_0x56d960,this[_0x238996(0x394)]=_0x50b52b);}[_0x3d135c(0x203)](){const _0x3bc371=_0x3d135c;this[_0x3bc371(0x318)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x4a3de2=_0x3d135c;return this[_0x4a3de2(0x39f)];}[_0x3d135c(0x320)](){const _0x2132e2=_0x3d135c;this['exhaustSavingTask']()[_0x2132e2(0x19a)](()=>super[_0x2132e2(0x320)]());}async['loadOfflineData'](_0x11a04f){const _0xc2ba56=_0x3d135c;return this['_disabled']?null:this[_0xc2ba56(0x24a)][_0xc2ba56(0x19b)](_0xe8f928(_0x11a04f));}async[_0x3d135c(0x21d)](_0x72c698,_0x1bbcd6){const _0x36f586=_0x3d135c;return!!this[_0x36f586(0x24a)]['setItem'](_0x72c698,_0x1bbcd6);}['updateOfflineData'](_0x15a264,_0x5e23b1,_0xce0a14,_0x96c89f){const _0x12aeb3=_0x3d135c,_0x365063=this[_0x12aeb3(0x394)][_0x12aeb3(0x2f5)](_0x15a264);this[_0x12aeb3(0x375)][_0x12aeb3(0x391)](_0x15a264,{'unitID':_0x15a264,'type':_0x5e23b1,'awaitingChangeset':_0xce0a14,'mutations':_0x96c89f,'rev':_0x365063}),this[_0x12aeb3(0x39f)][_0x12aeb3(0x236)](_0x15a264)||this[_0x12aeb3(0x1b5)](_0x15a264);}[_0x3d135c(0x1b5)](_0x568446){const _0x1c9fe8=_0x3d135c,_0x3bf1ce=this[_0x1c9fe8(0x1cc)]();_0x3bf1ce===0x0?this[_0x1c9fe8(0x1c0)](_0x568446):this['_saveTaskMap'][_0x1c9fe8(0x391)](_0x568446,setTimeout(()=>this[_0x1c9fe8(0x1c0)](_0x568446),_0x3bf1ce));}[_0x3d135c(0x1cc)](){const _0x1e624a=_0x3d135c;var _0x2dab1a;return(_0x2dab1a=this['_configService'][_0x1e624a(0x190)](_0x24b70e))!=null?_0x2dab1a:_0x2d0ea8;}[_0x3d135c(0x1c0)](_0x4a7cb1){const _0x55c00e=_0x3d135c,_0x30a2dd=this[_0x55c00e(0x39f)]['get'](_0x4a7cb1);return _0x30a2dd!==void 0x0&&window['clearTimeout'](_0x30a2dd),this[_0x55c00e(0x24a)][_0x55c00e(0x1d8)](_0xe8f928(_0x4a7cb1),this[_0x55c00e(0x375)][_0x55c00e(0x2f8)](_0x4a7cb1))[_0x55c00e(0x19a)](()=>this[_0x55c00e(0x39f)]['delete'](_0x4a7cb1));}async[_0x3d135c(0x393)](){const _0x4bb063=_0x3d135c,_0x3a66a4=[];this[_0x4bb063(0x39f)]['forEach']((_0x304770,_0x1ef057)=>{const _0x11b89a=_0x4bb063;window[_0x11b89a(0x2f2)](_0x304770),_0x3a66a4[_0x11b89a(0x2b7)](this[_0x11b89a(0x1c0)](_0x1ef057)[_0x11b89a(0x19a)](()=>{const _0x4132fa=_0x11b89a;this['_saveTaskMap'][_0x4132fa(0x3b8)](_0x1ef057);}));}),await Promise[_0x4bb063(0x1fb)](_0x3a66a4);}};He=bn([Ue(0x0,_0x273292),Ue(0x1,_0x31d156),Ue(0x2,_0x5ee57b(_0x52f6d7))],He);class Ln extends _0x15001e{constructor(){const _0xf4be21=_0x3d135c;super(),_(this,_0xf4be21(0x1da)),this['urlChange$']=_0x21b7e2(window,_0xf4be21(0x253))[_0xf4be21(0x2d5)](_0x447e87(this[_0xf4be21(0x1c9)]),_0x406349(0x1),_0x1a528b(void 0x0));}[_0x3d135c(0x23e)](_0x2a1da3,_0x1ad002,_0x1ef86d=!0x1){const _0x39a619=_0x3d135c,_0x37427e=new URL(window[_0x39a619(0x192)][_0x39a619(0x259)]);_0x37427e['searchParams'][_0x39a619(0x391)](_0x2a1da3,_0x1ad002),_0x1ef86d?window['history'][_0x39a619(0x19f)]('','',_0x37427e[_0x39a619(0x35f)]()):window[_0x39a619(0x238)][_0x39a619(0x34f)]('','',_0x37427e[_0x39a619(0x35f)]());}[_0x3d135c(0x35d)](_0x535d36,_0x58d08f=!0x1){const _0x50b7ee=_0x3d135c,_0xfea923=new URL(window['location'][_0x50b7ee(0x259)]);_0xfea923[_0x50b7ee(0x36d)][_0x50b7ee(0x3b8)](_0x535d36),_0x58d08f?window['history'][_0x50b7ee(0x19f)]('','',_0xfea923[_0x50b7ee(0x35f)]()):window[_0x50b7ee(0x238)][_0x50b7ee(0x34f)]('','',_0xfea923[_0x50b7ee(0x35f)]());}[_0x3d135c(0x2ff)](_0x2b6fd7){const _0x42fb4d=_0x3d135c;var _0x3110ac;return(_0x3110ac=new URL(window[_0x42fb4d(0x192)]['href'])[_0x42fb4d(0x36d)][_0x42fb4d(0x2f8)](_0x2b6fd7))!=null?_0x3110ac:void 0x0;}}var Un=Object[_0x3d135c(0x2cf)],Mn=Object[_0x3d135c(0x372)],An=(_0x1f33bf,_0x420a1e,_0x4f5a36)=>_0x420a1e in _0x1f33bf?Un(_0x1f33bf,_0x420a1e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f5a36}):_0x1f33bf[_0x420a1e]=_0x4f5a36,Pn=(_0xa4bf7,_0x4e41d6,_0x8e11b0,_0x377e56)=>{const _0x452682=_0x3d135c;for(var _0x30f62b=_0x377e56>0x1?void 0x0:_0x377e56?Mn(_0x4e41d6,_0x8e11b0):_0x4e41d6,_0x1117b3=_0xa4bf7[_0x452682(0x35c)]-0x1,_0x4be11e;_0x1117b3>=0x0;_0x1117b3--)(_0x4be11e=_0xa4bf7[_0x1117b3])&&(_0x30f62b=_0x4be11e(_0x30f62b)||_0x30f62b);return _0x30f62b;},Me=(_0x4fc512,_0x3bae19)=>(_0x3b4642,_0x183768)=>_0x3bae19(_0x3b4642,_0x183768,_0x4fc512),wn=(_0x334491,_0x7a01d5,_0xa829db)=>An(_0x334491,_0x7a01d5+'',_0xa829db);const yn=_0x3d135c(0x2ad);let Ye=class extends _0x1593ee{constructor(_0x2bf1c8=_t,_0x5d14e1,_0x1b1a52,_0x4b9d8d){const _0x56ecb5=_0x3d135c;super(),this[_0x56ecb5(0x392)]=_0x2bf1c8,this['_renderManagerService']=_0x5d14e1,this[_0x56ecb5(0x31d)]=_0x1b1a52,this[_0x56ecb5(0x3b1)]=_0x4b9d8d;const {..._0x539fcf}=_0x55b27f({},_t,this[_0x56ecb5(0x392)]);this[_0x56ecb5(0x3b1)][_0x56ecb5(0x2c8)](hn,_0x539fcf);}[_0x3d135c(0x184)](){const _0x31068a=_0x3d135c;this[_0x31068a(0x22e)](),this[_0x31068a(0x30e)]();}['onRendered'](){this['_registerRenderDependencies']();}[_0x3d135c(0x22e)](){const _0x28da64=_0x3d135c;var _0x4d95c1;const _0x4aff96=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x243f63,{'useClass':_0x5e2327}],[_0x2ccadc,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x28da64(0x392)][_0x28da64(0x268)]&&_0x4aff96[_0x28da64(0x2b7)]([le]),_0x4f6046(this[_0x28da64(0x31d)],_0x432926(_0x4aff96,(_0x4d95c1=this[_0x28da64(0x392)])==null?void 0x0:_0x4d95c1['override']));}[_0x3d135c(0x227)](){const _0x2b5815=_0x3d135c;this[_0x2b5815(0x2ec)](this[_0x2b5815(0x25f)]['registerRenderModule'](_0x593d55[_0x2b5815(0x2e3)],[Fe])),this['disposeWithMe'](this['_renderManagerService']['registerRenderModule'](_0x593d55[_0x2b5815(0x376)],[ke]));}['_initDependencies'](){const _0x5ddedf=_0x3d135c;_0x29b09e(this['_injector'],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x5ddedf(0x392)][_0x5ddedf(0x268)]&&_0x29b09e(this[_0x5ddedf(0x31d)],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x195a33(_0x5af324),Me(0x1,_0x59b059),Me(0x2,_0x5ee57b(_0x1e6ef3)),Me(0x3,_0x273292)],Ye);var $n=Object[_0x3d135c(0x372)],xn=(_0x1e36c9,_0x430823,_0x23b7ff,_0xc714d5)=>{const _0x10d86b=_0x3d135c;for(var _0x558351=_0xc714d5>0x1?void 0x0:_0xc714d5?$n(_0x430823,_0x23b7ff):_0x430823,_0x265b80=_0x1e36c9[_0x10d86b(0x35c)]-0x1,_0x10e85f;_0x265b80>=0x0;_0x265b80--)(_0x10e85f=_0x1e36c9[_0x265b80])&&(_0x558351=_0x10e85f(_0x558351)||_0x558351);return _0x558351;},J=(_0x41b379,_0x5052e6)=>(_0x2d47b1,_0x260bfb)=>_0x5052e6(_0x2d47b1,_0x260bfb,_0x41b379);let ut=class extends _0x284bc8{constructor(_0x5efe1a,_0x45c1d8,_0x487bb3,_0x419877,_0x2c3e1){super(_0x5efe1a,_0x45c1d8,_0x487bb3,_0x419877,_0x2c3e1);}async[_0x3d135c(0x3a2)](_0x47c07e){const _0x4f1f42=_0x3d135c,_0x4156fa=await this[_0x4f1f42(0x1c5)](),_0x406561=this[_0x4f1f42(0x1d6)](_0x47c07e,_0x4156fa);return this[_0x4f1f42(0x1ab)](_0x406561);}[_0x3d135c(0x1d6)](_0x4ea991,_0xd6a2d3){const _0x58f7d8=_0x3d135c,_0x97f26f=typeof window>'u'?new URL(_0x4ea991):new URL(_0x4ea991,window[_0x58f7d8(0x192)][_0x58f7d8(0x2d4)]);_0x97f26f[_0x58f7d8(0x36d)][_0x58f7d8(0x391)](_0x58f7d8(0x2eb),_0xd6a2d3);const _0x4b892a=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x58f7d8(0x192)][_0x58f7d8(0x2e0)]);return _0x4b892a[_0x58f7d8(0x2f8)](_0x58f7d8(0x194))&&_0x97f26f[_0x58f7d8(0x36d)][_0x58f7d8(0x391)]('runId',_0x4b892a[_0x58f7d8(0x2f8)](_0x58f7d8(0x194))),_0x97f26f[_0x58f7d8(0x35f)]();}async[_0x3d135c(0x1c5)](){const _0xab119e=_0x3d135c;var _0x284175,_0x5ca49b,_0x28fdba;const _0x445f57=this[_0xab119e(0x3b1)][_0xab119e(0x190)](_0xced3a1),_0x5dab34=(_0x284175=_0x445f57==null?void 0x0:_0x445f57[_0xab119e(0x2c1)])!=null?_0x284175:_0x3883e8;return(_0x28fdba=(_0x5ca49b=(await this[_0xab119e(0x17c)]['get'](_0x5dab34,{'headers':{'Content-Type':_0xab119e(0x1ff)}}))['body'])==null?void 0x0:_0x5ca49b[_0xab119e(0x283)])!=null?_0x28fdba:'';}};ut=xn([J(0x0,_0x5ee57b(_0x1e6ef3)),J(0x1,_0x5ee57b(_0x323dbf)),J(0x2,_0x273292),J(0x3,_0xae2fa1),J(0x4,_0x59772a)],ut);var Bn=Object['getOwnPropertyDescriptor'],Fn=(_0x54d1e5,_0x942092,_0xf4b9dd,_0x355492)=>{for(var _0x3ad517=_0x355492>0x1?void 0x0:_0x355492?Bn(_0x942092,_0xf4b9dd):_0x942092,_0x338656=_0x54d1e5['length']-0x1,_0xb91065;_0x338656>=0x0;_0x338656--)(_0xb91065=_0x54d1e5[_0x338656])&&(_0x3ad517=_0xb91065(_0x3ad517)||_0x3ad517);return _0x3ad517;},Ae=(_0x398c54,_0x2b8cf6)=>(_0x43c440,_0xb6889c)=>_0x2b8cf6(_0x43c440,_0xb6889c,_0x398c54);let dt=class extends _0x292928{constructor(_0x2154bd,_0x1b8632,_0xf30b6b){const _0x4f5f2c=_0x3d135c;super(),this[_0x4f5f2c(0x1ca)]=_0x2154bd,this[_0x4f5f2c(0x17c)]=_0x1b8632,this[_0x4f5f2c(0x3b1)]=_0xf30b6b;}async['runOnServer'](_0x568ae7,_0xd95a45,_0x671e14,..._0x56f1ca){const _0xe01c11=_0x3d135c;var _0x2a024e,_0x3ad81d,_0x2dfa73,_0x48d31f;const _0x3e5358=this['_instanceService'][_0xe01c11(0x2ae)]();if(!_0x3e5358)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x4124eb=((_0x2a024e=this[_0xe01c11(0x3b1)][_0xe01c11(0x190)](_0x49b1ca))!=null?_0x2a024e:_0x45a3d4)+'/'+_0x568ae7+_0xe01c11(0x366)+_0xd95a45,_0x384d4e=new URL(window['location'][_0xe01c11(0x259)]),_0x454344={'scriptId':_0x568ae7,'runId':(_0x3ad81d=_0x384d4e[_0xe01c11(0x36d)][_0xe01c11(0x2f8)](_0xe01c11(0x194)))!=null?_0x3ad81d:'','function':_0xd95a45,'unitId':_0x3e5358[_0xe01c11(0x3aa)](),'argsOfFunction':JSON['stringify'](_0x56f1ca),'invokeId':(_0x2dfa73=_0x671e14['invokeId'])!=null?_0x2dfa73:'','executionId':(_0x48d31f=_0x671e14[_0xe01c11(0x254)])!=null?_0x48d31f:''};try{const _0x59145a=await this[_0xe01c11(0x17c)][_0xe01c11(0x308)](_0x4124eb,{'body':_0x454344});return _0x59145a[_0xe01c11(0x1f3)]['error']&&_0x59145a[_0xe01c11(0x1f3)][_0xe01c11(0x2b9)][_0xe01c11(0x17b)]!==Z['OK']?_0xe01c11(0x2f0):_0x59145a[_0xe01c11(0x1f3)][_0xe01c11(0x22f)];}catch{return _0xe01c11(0x2f0);}}};dt=Fn([Ae(0x0,_0x378950),Ae(0x1,_0x5ee57b(_0x323dbf)),Ae(0x2,_0x273292)],dt);const St=0x7530,It=_0x3d135c(0x356);class rr extends _0x292928{constructor(){const _0x5debf6=_0x3d135c;super(),_(this,_0x5debf6(0x1d0),_0x574e48()),_(this,_0x5debf6(0x3ae),new Set()),_(this,_0x5debf6(0x285),new Map()),_(this,_0x5debf6(0x198),null),_(this,_0x5debf6(0x2b1),new Map()),_(this,_0x5debf6(0x329),new Map()),this[_0x5debf6(0x250)]();}[_0x3d135c(0x320)](){const _0xb3b247=_0x3d135c;super[_0xb3b247(0x320)](),this[_0xb3b247(0x2b1)][_0xb3b247(0x27a)]((_0x410c3e,_0x43e170)=>this['_removeClearOtherTimer'](_0x43e170)),this[_0xb3b247(0x198)]&&window[_0xb3b247(0x2af)](this[_0xb3b247(0x198)]);}['getUnitStatus$'](_0x2bde08){const _0x1da16d=_0x3d135c;return this['_ensureSubject'](_0x2bde08)[_0x1da16d(0x2d5)](_0x4b7174());}[_0x3d135c(0x27f)](_0x3bd5fc){const _0x5e66f9=_0x3d135c;this['_selfUnitIDs'][_0x5e66f9(0x338)]===0x0&&this[_0x5e66f9(0x25a)](),this[_0x5e66f9(0x3ae)]['add'](_0x3bd5fc),this[_0x5e66f9(0x368)]({'type':0x0,'memberID':this[_0x5e66f9(0x1d0)],'unitIDs':[_0x3bd5fc],'isForwarded':!0x1});}[_0x3d135c(0x276)](_0x10e164){const _0x165855=_0x3d135c;this[_0x165855(0x3ae)][_0x165855(0x3b8)](_0x10e164),this[_0x165855(0x3ae)][_0x165855(0x338)]===0x0&&this[_0x165855(0x198)]&&window[_0x165855(0x2af)](this[_0x165855(0x198)]);}[_0x3d135c(0x250)](){const _0x5d3d65=_0x3d135c;this[_0x5d3d65(0x2ec)](_0x1a7986(_0x21b7e2(window,_0x5d3d65(0x3c8))[_0x5d3d65(0x251)](_0x34b8ef=>{const _0x2e78cc=_0x5d3d65;if(_0x34b8ef[_0x2e78cc(0x1e8)]!==It||!_0x34b8ef['newValue'])return;const _0x5dee93=JSON[_0x2e78cc(0x2e6)](_0x34b8ef[_0x2e78cc(0x209)]);this['_handleEvent'](_0x5dee93);}))),window[_0x5d3d65(0x303)](_0x5d3d65(0x24d),()=>this[_0x5d3d65(0x368)]({'type':0x1,'memberID':this[_0x5d3d65(0x1d0)],'unitIDs':Array['from'](this[_0x5d3d65(0x3ae)])}));}[_0x3d135c(0x267)](_0x1c3926){const _0x177f02=_0x3d135c;switch(_0x1c3926[_0x177f02(0x371)]){case 0x0:this[_0x177f02(0x3a5)](_0x1c3926);break;case 0x1:this[_0x177f02(0x361)](_0x1c3926);break;case 0x2:this[_0x177f02(0x2a5)](_0x1c3926);break;}}[_0x3d135c(0x3a5)](_0xe9d719){const _0x3e3595=_0x3d135c,{unitIDs:_0x5ce1f8,memberID:_0x29004d,isForwarded:_0x47c35d}=_0xe9d719;_0x5ce1f8[_0x3e3595(0x27a)](_0x3a7465=>{const _0x570c57=_0x3e3595;if(!_0x47c35d&&this[_0x570c57(0x285)]['has'](_0x3a7465)&&this[_0x570c57(0x226)](_0x3a7465)[_0x570c57(0x199)](_0x398fca[_0x570c57(0x243)]),!this[_0x570c57(0x285)][_0x570c57(0x236)](_0x3a7465)||!this['_unitOnClients']['get'](_0x3a7465)[_0x570c57(0x236)](_0x29004d)){const _0x5595b6=this[_0x570c57(0x285)]['get'](_0x3a7465)||new Set();_0x5595b6[_0x570c57(0x1b9)](_0x29004d),this[_0x570c57(0x285)][_0x570c57(0x391)](_0x3a7465,_0x5595b6),this[_0x570c57(0x290)](_0x29004d);}}),_0x47c35d||this['_send']({'type':0x0,'memberID':this[_0x3e3595(0x1d0)],'unitIDs':[...this[_0x3e3595(0x3ae)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x258a6f){const _0x191059=_0x3d135c;this['_removeClearOtherTimer'](_0x258a6f);const _0xbeaaa0=window[_0x191059(0x2c7)](()=>{const _0x4a8b16=_0x191059;this[_0x4a8b16(0x285)][_0x4a8b16(0x27a)](_0xcc5057=>{const _0x2b34a6=_0x4a8b16;_0xcc5057[_0x2b34a6(0x3b8)](_0x258a6f);});},St*0x2);this[_0x191059(0x2b1)][_0x191059(0x391)](_0x258a6f,_0xbeaaa0);}[_0x3d135c(0x2d3)](_0xaa9218){const _0xab1d30=_0x3d135c;if(this[_0xab1d30(0x2b1)]['has'](_0xaa9218)){const _0x1cd8a0=this[_0xab1d30(0x2b1)]['get'](_0xaa9218);_0x1cd8a0&&window['clearTimeout'](_0x1cd8a0),this[_0xab1d30(0x2b1)]['set'](_0xaa9218,null);}}[_0x3d135c(0x361)](_0x4a1daf){const _0x3ae021=_0x3d135c,{memberID:_0x5611ba,unitIDs:_0x4deacb}=_0x4a1daf;_0x4deacb[_0x3ae021(0x27a)](_0x5b3b39=>{const _0x575867=_0x3ae021;var _0x8413fc;const _0x2bcda1=this[_0x575867(0x285)][_0x575867(0x2f8)](_0x5b3b39);_0x2bcda1&&(_0x2bcda1[_0x575867(0x3b8)](_0x5611ba),(_0x8413fc=this[_0x575867(0x226)](_0x5b3b39))==null||_0x8413fc[_0x575867(0x199)](_0x2bcda1[_0x575867(0x338)]===0x0?_0x398fca['NO_OTHER_CLIENTS_EDITING']:_0x398fca[_0x575867(0x243)]));}),this[_0x3ae021(0x2d3)](_0x5611ba);}[_0x3d135c(0x2a5)](_0x3f552d){const _0x32154f=_0x3d135c;this[_0x32154f(0x290)](_0x3f552d['memberID']);}[_0x3d135c(0x368)](_0x3d89f8){const _0x2a505d=_0x3d135c;localStorage[_0x2a505d(0x1d8)](It,JSON[_0x2a505d(0x344)](_0x3d89f8));}[_0x3d135c(0x25a)](){const _0x44c567=_0x3d135c;this[_0x44c567(0x198)]=window[_0x44c567(0x235)](()=>{const _0x3f835a=_0x44c567;this[_0x3f835a(0x368)]({'type':0x2,'memberID':this[_0x3f835a(0x1d0)]});},St);}['_ensureSubject'](_0xd71ebf){const _0x380f72=_0x3d135c;return this[_0x380f72(0x329)][_0x380f72(0x236)](_0xd71ebf)||this['_unitStatus'][_0x380f72(0x391)](_0xd71ebf,new _0x32ea2a(_0x398fca['NO_OTHER_CLIENTS_EDITING'])),this[_0x380f72(0x329)][_0x380f72(0x2f8)](_0xd71ebf);}}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};