@univerjs-pro/collaboration-client-ui 0.10.14-nightly.202511080715 → 0.11.0-nightly.202511151013

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 (54) 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 -0
  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 -0
  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 -0
  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/types/locale/ja-JP.d.ts +3 -0
  41. package/lib/umd/facade.js +1 -1
  42. package/lib/umd/index.js +1 -1
  43. package/lib/umd/locale/ca-ES.js +1 -1
  44. package/lib/umd/locale/en-US.js +1 -1
  45. package/lib/umd/locale/es-ES.js +1 -1
  46. package/lib/umd/locale/fa-IR.js +1 -1
  47. package/lib/umd/locale/fr-FR.js +1 -1
  48. package/lib/umd/locale/ja-JP.js +1 -0
  49. package/lib/umd/locale/ko-KR.js +1 -1
  50. package/lib/umd/locale/ru-RU.js +1 -1
  51. package/lib/umd/locale/vi-VN.js +1 -1
  52. package/lib/umd/locale/zh-CN.js +1 -1
  53. package/lib/umd/locale/zh-TW.js +1 -1
  54. package/package.json +17 -17
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0xf9a763=_0x37b4;(function(_0x52a0c7,_0xe030ba){const _0x52793d=_0x37b4,_0x224d52=_0x52a0c7();while(!![]){try{const _0x54dbff=parseInt(_0x52793d(0x2d5))/0x1*(parseInt(_0x52793d(0x2c5))/0x2)+parseInt(_0x52793d(0x2b7))/0x3*(-parseInt(_0x52793d(0x1c5))/0x4)+-parseInt(_0x52793d(0x253))/0x5*(-parseInt(_0x52793d(0x29b))/0x6)+parseInt(_0x52793d(0x284))/0x7+-parseInt(_0x52793d(0x298))/0x8+parseInt(_0x52793d(0x375))/0x9+-parseInt(_0x52793d(0x31b))/0xa*(parseInt(_0x52793d(0x199))/0xb);if(_0x54dbff===_0xe030ba)break;else _0x224d52['push'](_0x224d52['shift']());}catch(_0x4f0596){_0x224d52['push'](_0x224d52['shift']());}}}(_0x1492,0x9e100));var Ft=Object[_0xf9a763(0x249)],kt=(_0xa74ac8,_0x56ce68,_0x73d631)=>_0x56ce68 in _0xa74ac8?Ft(_0xa74ac8,_0x56ce68,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x73d631}):_0xa74ac8[_0x56ce68]=_0x73d631,l=(_0x72910b,_0x236ea7,_0x1bcce3)=>kt(_0x72910b,typeof _0x236ea7!=_0xf9a763(0x260)?_0x236ea7+'':_0x236ea7,_0x1bcce3);import{jsx as _0xf5e585,jsxs as _0x397916}from'react/jsx-runtime';import{CollaborationStatus as _0x4f810a,CollaborationSessionService as _0x1a5cbd,CollaborationController as _0x1cd5da,DataLoaderService as _0x956b08,MemberService as _0x1a4845,SessionStatus as _0x44dfe0,ILocalCacheService as _0x46424d,CollaborationUIEventService as _0x3e7632,CollaborationUIEventId as _0x41c8fa,DocCollaborationEntity as _0x24698d,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x52057d,getLocalCacheKey as _0x28239d,LOCAL_CACHE_INTERVAL as _0x2d51af,LOCAL_CACHE_INTERVAL_KEY as _0x561786,UniverCollaborationClientPlugin as _0x3361ec,CollaborationSocketService as _0x1d705b,DEFAULT_WS_SESSION_TICKET_URL as _0x4f03e9,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x474e1a,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x94f12f,UnitStatus as _0x1f537d}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x3df0e3,IUniverInstanceService as _0xb83e3b,Inject as _0x13b860,Injector as _0x74797,Disposable as _0x24d226,createIdentifier as _0x3fe2b4,ILogService as _0xf37675,ICommandService as _0x2584e9,Optional as _0x1c6a7e,RxDisposable as _0x26b6de,Workbook as _0x103e15,DOC_RANGE_TYPE as _0x1cfa46,debounce as _0x1bd620,Rectangle as _0x3605df,DisposableCollection as _0x53cf22,toDisposable as _0x23f13a,UniverInstanceType as _0x3b755d,generateRandomId as _0x3af150,COLORS as _0x34c90e,ColorKit as _0x845acd,ThemeService as _0x5eaa14,fromEventSubject as _0x14c25e,Tools as _0x48201d,CommandType as _0x39ebd3,IConfigService as _0x32bcf4,CanceledError as _0xeb8af1,isFormulaString as _0xc80bfe,isFormulaId as _0x45ea24,ILocalStorageService as _0x365f4d,DependentOn as _0x36a334,Plugin as _0x548c33,merge as _0x15cc61,registerDependencies as _0x223234,mergeOverrideWithDependencies as _0xe52174,touchDependencies as _0x5ba7fd}from'@univerjs/core';import{useObservable as _0x42e580,useDependency as _0x5c9978,IUIPartsService as _0x3f439f,BuiltInUIPart as _0x181ba5,connectInjector as _0x475ad8,IBeforeCloseService as _0x38439e,IMessageService as _0x23a8f3,INotificationService as _0x9b4314}from'@univerjs/ui';import{BehaviorSubject as _0x1d1ed3,switchMap as _0x3166ac,of as _0xb88308,takeUntil as _0x5a4142,debounceTime as _0x446681,Subject as _0x3f7a5c,filter as _0x1d3a9f,merge as _0x431d2f,combineLatest as _0x452546,fromEvent as _0x3f9244,shareReplay as _0x31621f,mapTo as _0x4d2739,distinctUntilChanged as _0x46a0fa}from'rxjs';import{Tooltip as _0x58c982,clsx as _0x3e1435,MessageType as _0x1f05fe}from'@univerjs/design';import{useRef as _0x45045f,createElement as _0x39e851,forwardRef as _0x35eb20,useCallback as _0x4693ad}from'react';import{IRemoteInstanceService as _0x38c377}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x4910ff,RefRangeService as _0x4daa80,SetSelectionsOperation as _0x1f9822,SheetsSelectionsService as _0x498f50,EffectRefRangId as _0x341880,handleIRemoveRow as _0x15960d,handleIRemoveCol as _0x116925,handleMoveRange as _0x13619a,handleInsertRow as _0x43a629,handleInsertRangeMoveRight as _0x8eee62,handleInsertRangeMoveDown as _0x3a9fd1,handleInsertCol as _0x2649ba,handleDeleteRangeMoveUp as _0x1462ea,handleDeleteRangeMoveLeft as _0x31bee7,runRefRangeMutations as _0x96f177}from'@univerjs/sheets';import{Shape as _0x4c2fc1,Rect as _0x46a12b,getColor as _0x133715,RegularPolygon as _0x2fa5d2,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x335155,Vector2 as _0x55a5a4,SHEET_VIEWPORT_KEY as _0x1e67bb,IRenderManagerService as _0x3a82e4}from'@univerjs/engine-render';import{HTTPService as _0x371f2f,ISocketService as _0x3ab43e,WebSocketService as _0x5b9d65}from'@univerjs/network';import{IDocClipboardService as _0x1348fe,NodePositionConvertToCursor as _0x1c9d86,NodePositionConvertToRectRange as _0x8a818,TEXT_RANGE_LAYER_INDEX as _0xda8a95,SetDocZoomRatioOperation as _0x5503a0,DocIMEInputManagerService as _0x499864,DocStateChangeManagerService as _0x250f9a}from'@univerjs/docs-ui';import{IImageIoService as _0xf785d4}from'@univerjs/drawing';import{ITransformService as _0x2c6489,CollaborationEvent as _0xc2e08f,isTransformMutationFailure as _0x1750d0,isTransformMutationsWithChangesetSuccess as _0x411cd4,RevisionService as _0xd2979d,ISnapshotServerService as _0x10426e}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x23db4c,RichTextEditingMutation as _0x29cc25,DocSelectionManagerService as _0x43ba90,DocSkeletonManagerService as _0x52ad97}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x4c64b8,serializeRangeWithSheet as _0x14ba07,FormulaExecuteStageType as _0x3f8220,FormulaExecutedStateType as _0x5b1bbb,SetFormulaCalculationStartMutation as _0x4bd2e4,SetFormulaCalculationNotificationMutation as _0x14d664}from'@univerjs/engine-formula';import{map as _0x410b86,filter as _0x3e70da,throttleTime as _0x37604e,takeUntil as _0x133029,switchMap as _0x4fb99a}from'rxjs/operators';import{SheetSkeletonManagerService as _0x17c498,getCoordByCell as _0x467138,getSheetObject as _0x2b59b1}from'@univerjs/sheets-ui';function Ve({ref:_0x34005b,..._0x58f978}){const _0x3b446f=_0xf9a763,{icon:_0x4848f9,id:_0xba89eb,className:_0x48d241,extend:_0x36e1b9,..._0x523962}=_0x58f978,_0x481a41=(_0x3b446f(0x265)+_0xba89eb+'\x20'+(_0x48d241||''))[_0x3b446f(0x22b)](),_0x3d7d84=_0x45045f('_'+gi());return Ut(_0x4848f9,''+_0xba89eb,{'defIds':_0x4848f9[_0x3b446f(0x36b)],'idSuffix':_0x3d7d84['current']},{'ref':_0x34005b,'className':_0x481a41,..._0x523962},_0x36e1b9);}function Ut(_0x3bca63,_0x345536,_0x30707a,_0x1e55ad,_0x2557fb){const _0x175886=_0xf9a763;return _0x39e851(_0x3bca63['tag'],{'key':_0x345536,...mi(_0x3bca63,_0x30707a,_0x2557fb),..._0x1e55ad},(fi(_0x3bca63,_0x30707a)[_0x175886(0x390)]||[])['map']((_0x521cb8,_0x39d0cf)=>Ut(_0x521cb8,_0x345536+'-'+_0x3bca63['tag']+'-'+_0x39d0cf,_0x30707a,void 0x0,_0x2557fb)));}function mi(_0x4e9b52,_0x3bf866,_0x641676){const _0x46afaa=_0xf9a763,_0x69a12d={..._0x4e9b52[_0x46afaa(0x29f)]};_0x641676!=null&&_0x641676[_0x46afaa(0x24c)]&&_0x69a12d[_0x46afaa(0x350)]==='colorChannel1'&&(_0x69a12d['fill']=_0x641676[_0x46afaa(0x24c)]),_0x4e9b52[_0x46afaa(0x35b)]==='mask'&&_0x69a12d['id']&&(_0x69a12d['id']=_0x69a12d['id']+_0x3bf866[_0x46afaa(0x182)]),Object[_0x46afaa(0x19d)](_0x69a12d)[_0x46afaa(0x368)](([_0xd96c59,_0x20a6ff])=>{const _0x188e28=_0x46afaa;_0xd96c59===_0x188e28(0x2a2)&&typeof _0x20a6ff=='string'&&(_0x69a12d[_0xd96c59]=_0x20a6ff[_0x188e28(0x1dc)](/url\(#(.*)\)/,_0x188e28(0x22a)+_0x3bf866[_0x188e28(0x182)]+')'));});const {defIds:_0x30dd7c}=_0x3bf866;return!_0x30dd7c||_0x30dd7c['length']===0x0||(_0x4e9b52['tag']===_0x46afaa(0x209)&&_0x69a12d['xlink:href']&&(_0x69a12d[_0x46afaa(0x2da)]=_0x69a12d[_0x46afaa(0x2da)]+_0x3bf866[_0x46afaa(0x182)]),Object[_0x46afaa(0x19d)](_0x69a12d)[_0x46afaa(0x368)](([_0x1b9856,_0x25ac6])=>{const _0xdc57b=_0x46afaa;typeof _0x25ac6==_0xdc57b(0x1cb)&&(_0x69a12d[_0x1b9856]=_0x25ac6['replace'](/url\(#(.*)\)/,_0xdc57b(0x22a)+_0x3bf866[_0xdc57b(0x182)]+')'));})),_0x69a12d;}function fi(_0x2f9bda,_0x3ddd3a){const _0x1946f4=_0xf9a763;var _0x28d067;const {defIds:_0x2bc2fd}=_0x3ddd3a;return!_0x2bc2fd||_0x2bc2fd[_0x1946f4(0x281)]===0x0?_0x2f9bda:_0x2f9bda[_0x1946f4(0x35b)]===_0x1946f4(0x36e)&&((_0x28d067=_0x2f9bda[_0x1946f4(0x390)])!=null&&_0x28d067[_0x1946f4(0x281)])?{..._0x2f9bda,'children':_0x2f9bda['children'][_0x1946f4(0x185)](_0x264f31=>typeof _0x264f31[_0x1946f4(0x29f)]['id']==_0x1946f4(0x1cb)&&_0x2bc2fd&&_0x2bc2fd[_0x1946f4(0x1c2)](_0x264f31[_0x1946f4(0x29f)]['id'])?{..._0x264f31,'attrs':{..._0x264f31[_0x1946f4(0x29f)],'id':_0x264f31['attrs']['id']+_0x3ddd3a[_0x1946f4(0x182)]}}:_0x264f31)}:_0x2f9bda;}function gi(){const _0x2467d6=_0xf9a763;return Math[_0x2467d6(0x29a)]()[_0x2467d6(0x30e)](0x24)[_0x2467d6(0x29c)](0x2,0x8);}Ve[_0xf9a763(0x226)]=_0xf9a763(0x1cc);const vi={'tag':_0xf9a763(0x23a),'attrs':{'xmlns':_0xf9a763(0x179),'fill':'none','viewBox':_0xf9a763(0x360),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0xf9a763(0x348)},'children':[{'tag':_0xf9a763(0x187),'attrs':{'stroke':_0xf9a763(0x2a7),'d':_0xf9a763(0x384),'strokeLinecap':_0xf9a763(0x2b5),'strokeLinejoin':_0xf9a763(0x2b5),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0xf9a763(0x269),'d':_0xf9a763(0x35c)}}]}]}],'defIds':[_0xf9a763(0x364)]},Lt=_0x35eb20(function(_0x156759,_0x5cd8f9){const _0x1dd14f=_0xf9a763;return _0x39e851(Ve,Object[_0x1dd14f(0x17e)]({},_0x156759,{'id':'off-line-icon','ref':_0x5cd8f9,'icon':vi}));});Lt[_0xf9a763(0x226)]=_0xf9a763(0x27c);const Ei={'tag':_0xf9a763(0x23a),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xf9a763(0x291),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0xf9a763(0x31c)},'children':[{'tag':'g','attrs':{'clipPath':_0xf9a763(0x2f9)},'children':[{'tag':_0xf9a763(0x187),'attrs':{'stroke':_0xf9a763(0x2a7),'d':'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','strokeLinecap':_0xf9a763(0x2b5),'strokeLinejoin':_0xf9a763(0x2b5),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0xf9a763(0x308),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0xf9a763(0x269),'d':_0xf9a763(0x35c),'transform':_0xf9a763(0x396)}}]}]}],'defIds':[_0xf9a763(0x331)]},Mt=_0x35eb20(function(_0x3d7b6a,_0x53d52a){const _0x230b7f=_0xf9a763;return _0x39e851(Ve,Object[_0x230b7f(0x17e)]({},_0x3d7b6a,{'id':'on-line-icon','ref':_0x53d52a,'icon':Ei}));});Mt[_0xf9a763(0x226)]=_0xf9a763(0x21d);function pi(_0x2be111){const _0x3c3789=_0xf9a763;switch(_0x2be111){case _0x4f810a['OFFLINE']:return _0x3c3789(0x258);case _0x4f810a[_0x3c3789(0x2b9)]:return _0x3c3789(0x292);case _0x4f810a[_0x3c3789(0x230)]:return'collabStatus.fetchMiss';case _0x4f810a[_0x3c3789(0x1a5)]:return _0x3c3789(0x300);case _0x4f810a[_0x3c3789(0x296)]:case _0x4f810a[_0x3c3789(0x2ac)]:return _0x3c3789(0x2e5);case _0x4f810a[_0x3c3789(0x17d)]:case _0x4f810a[_0x3c3789(0x383)]:return'collabStatus.synced';}}function Oi(_0x1d293f){const _0x2a378e=_0xf9a763,{status$:_0x1d11ec}=_0x1d293f,_0xc6e517=_0x42e580(_0x1d11ec,_0x4f810a['NOT_COLLAB']),_0x1cfcad=_0x5c9978(_0x3df0e3),_0x23d4f3=_0x5c9978(_0x1a5cbd),_0x1855a5=_0xc6e517!==_0x4f810a[_0x2a378e(0x1aa)],_0x24e681=_0x1cfcad['t'](pi(_0xc6e517)),_0x4b83f6=_0x1855a5?_0xf5e585(Mt,{}):_0xf5e585(Lt,{}),_0x3b72d7=_0x4693ad(()=>{const _0x32d14b=_0x2a378e;_0x1855a5||_0x23d4f3[_0x32d14b(0x277)]();},[_0x1855a5,_0x23d4f3]);function _0x6ad2d3(){const _0x1c492d=_0x2a378e;return _0x397916(_0x1c492d(0x2c2),{'className':'univer-flex\x20univer-items-center','onClick':_0x3b72d7,'children':[_0xf5e585('div',{'className':_0x3e1435('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x1855a5,'univer-text-red-500':!_0x1855a5}),'children':_0x4b83f6}),_0xf5e585(_0x1c492d(0x2c2),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x24e681})]});}return _0x1855a5?_0x6ad2d3():_0xf5e585(_0x58c982,{'title':_0x1cfcad['t'](_0x2a378e(0x1dd)),'children':_0x6ad2d3()});}var Ti=Object['getOwnPropertyDescriptor'],Ci=(_0x5da56d,_0x4207ca,_0x5757d6,_0x543aa7)=>{const _0x127757=_0xf9a763;for(var _0x37dbbf=_0x543aa7>0x1?void 0x0:_0x543aa7?Ti(_0x4207ca,_0x5757d6):_0x4207ca,_0x446ff3=_0x5da56d[_0x127757(0x281)]-0x1,_0x2db3bc;_0x446ff3>=0x0;_0x446ff3--)(_0x2db3bc=_0x5da56d[_0x446ff3])&&(_0x37dbbf=_0x2db3bc(_0x37dbbf)||_0x37dbbf);return _0x37dbbf;},se=(_0x2cf181,_0x2cca5c)=>(_0x481a3a,_0x5251ad)=>_0x2cca5c(_0x481a3a,_0x5251ad,_0x2cf181);let oe=class extends _0x24d226{constructor(_0x465d3d,_0x5a71c9,_0x7b708a,_0x3064e2){const _0x47b935=_0xf9a763;super(),l(this,'_status$',new _0x1d1ed3(_0x4f810a[_0x47b935(0x1a5)])),(this['_univerInstanceService']=_0x465d3d,this[_0x47b935(0x208)]=_0x5a71c9,this['_collaborationController']=_0x7b708a,this[_0x47b935(0x361)]=_0x3064e2,this[_0x47b935(0x201)](),this[_0x47b935(0x227)]());}[_0xf9a763(0x227)](){const _0x36ab20=_0xf9a763;this[_0x36ab20(0x288)](this['_univerInstanceService'][_0x36ab20(0x1e5)][_0x36ab20(0x24b)](_0x3166ac(()=>{const _0x34d9d0=_0x36ab20,_0x461ad2=this['_univerInstanceService'][_0x34d9d0(0x275)]();return _0x461ad2?this['_collaborationController']['getCollabEntity$'](_0x461ad2[_0x34d9d0(0x175)]()):_0xb88308(null);}),_0x3166ac(_0x370eef=>_0x370eef?_0x370eef[_0x36ab20(0x256)]:_0xb88308(_0x4f810a[_0x36ab20(0x1a5)])))[_0x36ab20(0x2e3)](_0x4fb8f1=>{const _0x1739dc=_0x36ab20;this['_status$'][_0x1739dc(0x30c)](_0x4fb8f1);}));}['_initStatusComponent'](){const _0x196a92=_0xf9a763;this[_0x196a92(0x288)](this[_0x196a92(0x361)]['registerComponent'](_0x181ba5[_0x196a92(0x21e)],()=>_0x475ad8(Ri({'status$':this[_0x196a92(0x394)][_0x196a92(0x1e4)]()}),this[_0x196a92(0x208)])));}};oe=Ci([se(0x0,_0xb83e3b),se(0x1,_0x13b860(_0x74797)),se(0x2,_0x13b860(_0x1cd5da)),se(0x3,_0x3f439f)],oe);function Ri(_0x295094){const {status$:_0x1cef5f}=_0x295094;return function(){return _0xf5e585(Oi,{'status$':_0x1cef5f});};}const At=_0x3fe2b4('uni.network.url-service');var Di=Object[_0xf9a763(0x1b6)],Ni=(_0x4e4121,_0x462732,_0x38b5a8,_0x560845)=>{for(var _0x3ad6d3=_0x560845>0x1?void 0x0:_0x560845?Di(_0x462732,_0x38b5a8):_0x462732,_0x983b34=_0x4e4121['length']-0x1,_0x11e94b;_0x983b34>=0x0;_0x983b34--)(_0x11e94b=_0x4e4121[_0x983b34])&&(_0x3ad6d3=_0x11e94b(_0x3ad6d3)||_0x3ad6d3);return _0x3ad6d3;},K=(_0x34964a,_0x136516)=>(_0x4c9496,_0x37820d)=>_0x136516(_0x4c9496,_0x37820d,_0x34964a);let ae=class extends _0x26b6de{constructor(_0x36414c,_0x5c89ee,_0x5e1e83,_0x1ab482,_0x5eb6ec){const _0xcbf720=_0xf9a763;super(),this[_0xcbf720(0x2cb)]=_0x36414c,this['_logService']=_0x5c89ee,this[_0xcbf720(0x24f)]=_0x5e1e83,this[_0xcbf720(0x1a0)]=_0x1ab482,_0x5eb6ec?_0x5eb6ec==null||_0x5eb6ec['whenReady']()[_0xcbf720(0x344)](()=>this[_0xcbf720(0x20c)]()):(this[_0xcbf720(0x216)][_0xcbf720(0x217)]('[CollaborationDataLoaderController]',_0xcbf720(0x343)),this['_init']());}async['_init'](){const _0x281d25=_0xf9a763,_0x1f14e1=this[_0x281d25(0x2cb)][_0x281d25(0x2b1)](_0x281d25(0x28d)),_0x5ccd64=this['_urlService'][_0x281d25(0x2b1)](_0x281d25(0x1ab)),_0xfa04df=this[_0x281d25(0x2cb)][_0x281d25(0x2b1)](_0x281d25(0x337));if(!_0x1f14e1||!_0x5ccd64){this['_logService'][_0x281d25(0x217)](_0x281d25(0x342),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x1a7e0d=await this[_0x281d25(0x1a0)][_0x281d25(0x38a)](_0x1f14e1,Number(_0x5ccd64),_0xfa04df);_0x1a7e0d&&_0x1a7e0d instanceof _0x103e15&&this[_0x281d25(0x1c4)](_0x1a7e0d);}async[_0xf9a763(0x1c4)](_0x1164a1){const _0x50af93=_0xf9a763;await this[_0x50af93(0x1ac)](_0x1164a1),_0x1164a1['activeSheet$']['pipe'](_0x5a4142(this[_0x50af93(0x1f4)]))['subscribe'](_0x5058b1=>{const _0xe3df46=_0x50af93;_0x5058b1&&this[_0xe3df46(0x373)](_0x5058b1);}),this['_urlService'][_0x50af93(0x17c)]['pipe'](_0x5a4142(this['dispose$']))[_0x50af93(0x2e3)](()=>this['_updateSubUnitFromURLParams'](_0x1164a1));}[_0xf9a763(0x373)](_0x23e937,_0x4c7ed5=!0x1){const _0x17104f=_0xf9a763,_0x2d6e17=this[_0x17104f(0x2cb)][_0x17104f(0x2b1)](_0x17104f(0x337));_0x23e937[_0x17104f(0x211)]()!==_0x2d6e17&&this[_0x17104f(0x2cb)][_0x17104f(0x25a)](_0x17104f(0x337),_0x23e937[_0x17104f(0x211)](),_0x4c7ed5);}async['_updateSubUnitFromURLParams'](_0x1dc2db){const _0x5214a2=_0xf9a763;var _0x4d035a;const _0x38fce7=this[_0x5214a2(0x2cb)][_0x5214a2(0x2b1)]('subunit');if(!_0x38fce7||!_0x1dc2db[_0x5214a2(0x2d1)](_0x38fce7)){const _0x1cae37=_0x1dc2db[_0x5214a2(0x2f6)]()[0x0],_0xd7f78c=_0x1dc2db[_0x5214a2(0x2d1)](_0x1cae37);if(!_0xd7f78c)return;this['_updateURLWithCurrentState'](_0xd7f78c,!0x0),await this['_commandService'][_0x5214a2(0x2f1)](_0x4910ff['id'],{'unitId':_0x1dc2db['getUnitId'](),'subUnitId':_0x1cae37});return;}((_0x4d035a=_0x1dc2db[_0x5214a2(0x276)]())==null?void 0x0:_0x4d035a['getSheetId']())!==_0x38fce7&&await this[_0x5214a2(0x24f)][_0x5214a2(0x2f1)](_0x4910ff['id'],{'unitId':_0x1dc2db[_0x5214a2(0x175)](),'subUnitId':_0x38fce7});}};ae=Ni([K(0x0,At),K(0x1,_0xf37675),K(0x2,_0x2584e9),K(0x3,_0x13b860(_0x956b08)),K(0x4,_0x1c6a7e(_0x38c377))],ae);var bi=Object['getOwnPropertyDescriptor'],Ui=(_0x298414,_0x470a14,_0x3eeeff,_0x1fff93)=>{const _0x41d8a3=_0xf9a763;for(var _0x1da437=_0x1fff93>0x1?void 0x0:_0x1fff93?bi(_0x470a14,_0x3eeeff):_0x470a14,_0x6ff00f=_0x298414[_0x41d8a3(0x281)]-0x1,_0x303662;_0x6ff00f>=0x0;_0x6ff00f--)(_0x303662=_0x298414[_0x6ff00f])&&(_0x1da437=_0x303662(_0x1da437)||_0x1da437);return _0x1da437;},tt=(_0x123c61,_0x2ec303)=>(_0x40f9dc,_0x1eba62)=>_0x2ec303(_0x40f9dc,_0x1eba62,_0x123c61);let Ae=class extends _0x26b6de{constructor(_0x5a73e2,_0x2e5710){const _0x3b8a66=_0xf9a763;super(),this['_docClipboardService']=_0x5a73e2,this['_imageIoService']=_0x2e5710,this[_0x3b8a66(0x20c)]();}[_0xf9a763(0x20c)](){const _0x4ed8c9=_0xf9a763,_0x2dbda9=this;this[_0x4ed8c9(0x288)](this[_0x4ed8c9(0x341)]['addClipboardHook']({'onBeforePasteImage':async _0x10ce70=>{const _0x42eab3=_0x4ed8c9,_0x783aaa=await _0x2dbda9[_0x42eab3(0x176)][_0x42eab3(0x22f)](_0x10ce70);return _0x783aaa?{'source':_0x783aaa[_0x42eab3(0x36c)],'imageSourceType':_0x783aaa['imageSourceType']}:null;}}));}};Ae=Ui([tt(0x0,_0x1348fe),tt(0x1,_0xf785d4)],Ae);const st=[_0xf9a763(0x2be),_0xf9a763(0x370),_0xf9a763(0x167),_0xf9a763(0x183),'blue.400','yellow.400'];class je extends _0x24d226{constructor(){const _0x2734b6=_0xf9a763;super(...arguments),l(this,_0x2734b6(0x2d2),new Map()),l(this,_0x2734b6(0x37c),0x0);}[_0xf9a763(0x365)](_0x407fe9){const _0x4e6771=_0xf9a763;if(this[_0x4e6771(0x2d2)][_0x4e6771(0x18d)](_0x407fe9))return this[_0x4e6771(0x2d2)][_0x4e6771(0x385)](_0x407fe9);const _0x2b4d09=st[this['_colorIndex']];return this[_0x4e6771(0x37c)]=(this['_colorIndex']+0x1)%st['length'],this[_0x4e6771(0x2d2)][_0x4e6771(0x28a)](_0x407fe9,_0x2b4d09),_0x2b4d09;}}function Pt(_0x477a80){const _0x2ea107=_0xf9a763;let _0x5a1fa0='';for(const _0x4b7838 of _0x477a80){const {startOffset:_0x46de25,endOffset:_0x54dc27,isActive:_0x4c3a90,rangeType:_0x3c4161,segmentId:_0xdf0f96,segmentPage:_0x1aa82b}=_0x4b7838;_0x5a1fa0[_0x2ea107(0x281)]&&(_0x5a1fa0+=','),_0x5a1fa0+=_0x46de25+':'+_0x54dc27+':'+(_0x4c3a90?'1':'0')+':'+_0x3c4161+':'+_0xdf0f96+':'+_0x1aa82b;}return _0x5a1fa0;}function Li(_0x130de5){const _0x38929f=_0xf9a763,_0x29d2e5=_0x130de5[_0x38929f(0x33d)](','),_0x2df038=[];for(const _0x41c043 of _0x29d2e5){const [_0x3a9a62,_0xe60dbc,_0x44c2c0,_0x563d9e,_0x338544,_0x491b10]=_0x41c043[_0x38929f(0x33d)](':');_0x2df038[_0x38929f(0x2af)]({'startOffset':Number(_0x3a9a62),'endOffset':Number(_0xe60dbc),'collapsed':_0x3a9a62===_0xe60dbc,'isActive':_0x44c2c0==='1','rangeType':_0x563d9e===_0x1cfa46['TEXT']?_0x1cfa46[_0x38929f(0x304)]:_0x1cfa46[_0x38929f(0x1bb)],'segmentId':typeof _0x338544==_0x38929f(0x1cb)?String(_0x338544):'','segmentPage':Number(_0x491b10!=null?_0x491b10:-0x1)});}return _0x2df038[_0x38929f(0x1a2)](_0x2470e7=>_0x2470e7[_0x38929f(0x170)])||(_0x2df038[0x0][_0x38929f(0x170)]=!0x0),_0x2df038;}class Xe extends _0x26b6de{constructor(){const _0x125236=_0xf9a763;super(...arguments),l(this,'_collabCursorState$',new _0x1d1ed3(null)),l(this,_0x125236(0x1b9),this[_0x125236(0x2f3)][_0x125236(0x1e4)]());}['syncEditingCollabCursor'](_0x4de45){const _0x24041b=_0xf9a763,{unitID:_0x4dd15f,memberID:_0x16c31b,textRanges:_0x51376d}=_0x4de45,_0x5963fd=Pt(_0x51376d);if(_0x5963fd==='')return;const _0x17cee3={'unitID':_0x4dd15f,'memberID':_0x16c31b,'selection':_0x5963fd};this[_0x24041b(0x2f3)]['next'](_0x17cee3);}}var Mi=Object[_0xf9a763(0x1b6)],Ai=(_0x4c2b59,_0x261004,_0x5d464e,_0x384904)=>{const _0x9ad524=_0xf9a763;for(var _0x3dc5db=_0x384904>0x1?void 0x0:_0x384904?Mi(_0x261004,_0x5d464e):_0x261004,_0x545770=_0x4c2b59[_0x9ad524(0x281)]-0x1,_0x5777f6;_0x545770>=0x0;_0x545770--)(_0x5777f6=_0x4c2b59[_0x545770])&&(_0x3dc5db=_0x5777f6(_0x3dc5db)||_0x3dc5db);return _0x3dc5db;},A=(_0x1a2985,_0x43b1e8)=>(_0x2aac6f,_0x5005d9)=>_0x43b1e8(_0x2aac6f,_0x5005d9,_0x1a2985);const Pi=0x12c,wi=0x64;let Pe=class extends _0x26b6de{constructor(_0x55bbd1,_0x44fe4b,_0x1009db,_0x49f479,_0x101341,_0xa4a5e6,_0x210ffe,_0x799bd5,_0x3cf957){const _0x34e237=_0xf9a763;super(),l(this,_0x34e237(0x19b),!0x1),l(this,_0x34e237(0x20c),!0x1),l(this,_0x34e237(0x339),new _0x1d1ed3(new Map())),l(this,_0x34e237(0x335),this[_0x34e237(0x339)]['asObservable']()),l(this,_0x34e237(0x34f),new _0x1d1ed3([])),l(this,_0x34e237(0x23c),this[_0x34e237(0x34f)]['pipe'](_0x446681(Pi))),l(this,_0x34e237(0x36f),_0x1bd620(_0x5e449b=>{const _0xbde2bd=_0x34e237,_0x38157f={'eventID':_0xc2e08f[_0xbde2bd(0x2fa)],'data':{'unitID':this[_0xbde2bd(0x267)],'memberID':this[_0xbde2bd(0x2bc)][_0xbde2bd(0x280)](),'selection':Pt(_0x5e449b)}};this['_session'][_0xbde2bd(0x283)](_0x38157f,this[_0xbde2bd(0x267)]);},wi)),(this[_0x34e237(0x267)]=_0x55bbd1,this['_session']=_0x44fe4b,this[_0x34e237(0x208)]=_0x1009db,this[_0x34e237(0x18a)]=_0x49f479,this[_0x34e237(0x297)]=_0x101341,this[_0x34e237(0x1f5)]=_0xa4a5e6,this['_transformService']=_0x210ffe,this[_0x34e237(0x166)]=_0x799bd5,this['_commandService']=_0x3cf957);}get[_0xf9a763(0x2eb)](){const _0x467383=_0xf9a763;return this['_cursorInfo$'][_0x467383(0x171)]();}get['roomMembers'](){const _0xbcf69b=_0xf9a763;return this[_0xbcf69b(0x34f)][_0xbcf69b(0x171)]();}[_0xf9a763(0x231)](){const _0x36f419=_0xf9a763;super[_0x36f419(0x231)](),this['_cursorInfo$'][_0x36f419(0x30c)](new Map()),this['_cursorInfo$'][_0x36f419(0x250)](),this[_0x36f419(0x34f)][_0x36f419(0x30c)]([]),this[_0x36f419(0x34f)][_0x36f419(0x250)]();}[_0xf9a763(0x2b3)](){const _0x2c7991=_0xf9a763;this[_0x2c7991(0x20c)]||(this[_0x2c7991(0x20c)]=!0x0,this[_0x2c7991(0x2bc)][_0x2c7991(0x1e7)][_0x2c7991(0x24b)](_0x5a4142(this[_0x2c7991(0x1f4)]))['subscribe'](_0xbec422=>{const _0x37518f=_0x2c7991;_0xbec422===_0x44dfe0[_0x37518f(0x190)]?this[_0x37518f(0x2ed)]():this[_0x37518f(0x1de)]();}),this[_0x2c7991(0x2bc)][_0x2c7991(0x367)][_0x2c7991(0x24b)](_0x5a4142(this['dispose$']))[_0x2c7991(0x2e3)](_0x3b6511=>{const _0x4196f9=_0x2c7991,_0x5154f9=_0x3b6511[_0x4196f9(0x200)];_0x5154f9===_0xc2e08f['UPDATE_CURSOR']&&this[_0x4196f9(0x2ef)](_0x3b6511),_0x5154f9===_0xc2e08f[_0x4196f9(0x28e)]&&this[_0x4196f9(0x16f)](_0x3b6511);}),this[_0x2c7991(0x288)](this['_commandService']['onCommandExecuted'](_0x3494b0=>{const _0x216d1f=_0x2c7991,_0xcd5da9=_0x3494b0[_0x216d1f(0x1a1)];_0xcd5da9!=null&&this['_online']&&_0x3494b0['id']===_0x23db4c['id']&&_0xcd5da9[_0x216d1f(0x2bd)]===this[_0x216d1f(0x267)]&&_0xcd5da9['isEditing']===!0x1&&_0xcd5da9['ranges'][_0x216d1f(0x281)]>0x0&&this[_0x216d1f(0x36f)](_0xcd5da9[_0x216d1f(0x2db)]);})),this[_0x2c7991(0x1f5)][_0x2c7991(0x1b9)][_0x2c7991(0x24b)](_0x5a4142(this['dispose$']))['subscribe'](_0x5c8165=>{const _0x4a5f21=_0x2c7991;if((_0x5c8165==null?void 0x0:_0x5c8165[_0x4a5f21(0x267)])!==this['unitID'])return;const _0x318dcc={'eventID':_0xc2e08f['UPDATE_CURSOR'],'data':_0x5c8165};this[_0x4a5f21(0x2ef)](_0x318dcc);}),this[_0x2c7991(0x288)](this[_0x2c7991(0x24f)][_0x2c7991(0x2a9)](_0x37029e=>{const _0x118886=_0x2c7991;if(_0x37029e[_0x118886(0x1a1)]==null)return;const _0x11982f=_0x37029e[_0x118886(0x1a1)];if(_0x37029e['id']!==_0x29cc25['id']||_0x11982f['unitId']!==this[_0x118886(0x267)])return;const _0x3b1507={'id':'doc.mutation.rich-text-editing','params':_0x11982f},_0x3c3374=this[_0x118886(0x2eb)];for(const [_0x2cacac,_0x3cd3d3]of _0x3c3374){const _0x349283={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x3cd3d3['ranges']}},_0x59fe8c=this[_0x118886(0x1d0)]['transformMutation'](_0x3b1507,_0x349283,!0x1);if(_0x1750d0(_0x59fe8c))throw _0x59fe8c[_0x118886(0x25c)];_0x3c3374[_0x118886(0x28a)](_0x2cacac,{..._0x3cd3d3,'ranges':_0x59fe8c[_0x118886(0x222)][_0x118886(0x1a1)]['textRanges']});}queueMicrotask(()=>{const _0x3946ac=_0x118886;this['_cursorInfo$'][_0x3946ac(0x30c)](_0x3c3374);});})));}[_0xf9a763(0x2ef)](_0x4387a0){const _0xfb63de=_0xf9a763;var _0x43f3de,_0x3c4995;const {memberID:_0xd97757,selection:_0x201064}=_0x4387a0[_0xfb63de(0x2cf)],_0x11392f=Li(_0x201064),_0x5af355=(_0x3c4995=(_0x43f3de=this[_0xfb63de(0x297)][_0xfb63de(0x20d)](this[_0xfb63de(0x267)],_0xd97757))==null?void 0x0:_0x43f3de[_0xfb63de(0x237)])!=null?_0x3c4995:_0xfb63de(0x392),_0x11861d={'color':this[_0xfb63de(0x18a)][_0xfb63de(0x365)](_0xd97757),'name':_0x5af355,'ranges':_0x11392f},_0x1d1fd1=this[_0xfb63de(0x2eb)];_0x1d1fd1[_0xfb63de(0x28a)](_0xd97757,_0x11861d),this[_0xfb63de(0x339)][_0xfb63de(0x30c)](_0x1d1fd1);}[_0xf9a763(0x16f)](_0x311d62){const _0x2ee70d=_0xf9a763,{memberID:_0x1a19ef}=_0x311d62[_0x2ee70d(0x2cf)],_0x239225=this[_0x2ee70d(0x2eb)];_0x239225[_0x2ee70d(0x1e9)](_0x1a19ef),this[_0x2ee70d(0x339)][_0x2ee70d(0x30c)](_0x239225);}[_0xf9a763(0x2ed)](){const _0x2c8fa6=_0xf9a763;var _0x5e903b;if(this[_0x2c8fa6(0x19b)]=!0x0,((_0x5e903b=this[_0x2c8fa6(0x166)][_0x2c8fa6(0x275)]())==null?void 0x0:_0x5e903b['getUnitId']())!==this[_0x2c8fa6(0x267)])return;const _0x33d362=this['_injector'][_0x2c8fa6(0x385)](_0x43ba90)['getDocRanges']();Array['isArray'](_0x33d362)&&_0x33d362[_0x2c8fa6(0x281)]>0x0&&this[_0x2c8fa6(0x36f)](_0x33d362);}[_0xf9a763(0x1de)](){const _0x311303=_0xf9a763;this[_0x311303(0x19b)]=!0x1;}};Pe=Ai([A(0x2,_0x13b860(_0x74797)),A(0x3,_0x13b860(je)),A(0x4,_0x13b860(_0x1a4845)),A(0x5,_0x13b860(Xe)),A(0x6,_0x2c6489),A(0x7,_0xb83e3b),A(0x8,_0x2584e9)],Pe);var yi=Object[_0xf9a763(0x1b6)],$i=(_0x5793bf,_0x47358f,_0x4a4ebf,_0x30afdc)=>{const _0x5e926b=_0xf9a763;for(var _0x5ebfce=_0x30afdc>0x1?void 0x0:_0x30afdc?yi(_0x47358f,_0x4a4ebf):_0x47358f,_0x50455b=_0x5793bf[_0x5e926b(0x281)]-0x1,_0x3121c7;_0x50455b>=0x0;_0x50455b--)(_0x3121c7=_0x5793bf[_0x50455b])&&(_0x5ebfce=_0x3121c7(_0x5ebfce)||_0x5ebfce);return _0x5ebfce;},B=(_0x8c365,_0x457660)=>(_0x315bf6,_0x4d6e8d)=>_0x457660(_0x315bf6,_0x4d6e8d,_0x8c365);const xi=0x12c,Bi=0x64,Fi=()=>{let _0x5775ae=[],_0x1cfad6=!0x1;return _0x4cb279=>{const _0x4afb6e=_0x37b4;_0x5775ae[_0x4afb6e(0x2af)](_0x4cb279),_0x1cfad6||(_0x1cfad6=!0x0,setTimeout(()=>{const _0x14460d=_0x4afb6e;_0x5775ae[_0x14460d(0x368)](_0x3298a6=>_0x3298a6()),_0x5775ae=[],_0x1cfad6=!0x1;}));};};let we=class extends _0x26b6de{constructor(_0x5625d9,_0x809777,_0x65567a,_0x398903,_0xc47e40,_0x529a6a,_0x458508,_0xa39667){const _0x42b057=_0xf9a763;super(),l(this,_0x42b057(0x19b),!0x1),l(this,_0x42b057(0x20c),!0x1),l(this,'_cursorInfo$',new _0x1d1ed3(new Map())),l(this,'cursorInfo$',this[_0x42b057(0x339)][_0x42b057(0x1e4)]()),l(this,_0x42b057(0x34f),new _0x1d1ed3([])),l(this,_0x42b057(0x23c),this[_0x42b057(0x34f)][_0x42b057(0x24b)](_0x446681(xi))),l(this,_0x42b057(0x36f),_0x1bd620((_0x5ce670,_0x2e85f1)=>{const _0x3add5f=_0x42b057,_0x1668ca={'eventID':_0xc2e08f['UPDATE_CURSOR'],'data':{'unitID':this[_0x3add5f(0x267)],'memberID':this[_0x3add5f(0x2bc)][_0x3add5f(0x280)](),'selection':_0x14ba07(_0x5ce670,_0x2e85f1[_0x3add5f(0x221)])}};this[_0x3add5f(0x2bc)][_0x3add5f(0x283)](_0x1668ca,this[_0x3add5f(0x267)]);},Bi)),(this[_0x42b057(0x267)]=_0x5625d9,this[_0x42b057(0x2bc)]=_0x809777,this[_0x42b057(0x208)]=_0x65567a,this[_0x42b057(0x18a)]=_0x398903,this['_memberService']=_0xc47e40,this['_univerInstanceService']=_0x529a6a,this['_commandService']=_0x458508,this[_0x42b057(0x2ba)]=_0xa39667);}get[_0xf9a763(0x2eb)](){const _0x1c8bc5=_0xf9a763;return this[_0x1c8bc5(0x339)][_0x1c8bc5(0x171)]();}get[_0xf9a763(0x2b2)](){const _0x21c4bb=_0xf9a763;return this['_roomMembers$'][_0x21c4bb(0x171)]();}[_0xf9a763(0x231)](){const _0x291400=_0xf9a763;super[_0x291400(0x231)](),this['_cursorInfo$'][_0x291400(0x30c)](new Map()),this[_0x291400(0x339)][_0x291400(0x250)](),this['_roomMembers$'][_0x291400(0x30c)]([]),this['_roomMembers$'][_0x291400(0x250)]();}['init'](){const _0x15a7d4=_0xf9a763;this[_0x15a7d4(0x20c)]||(this['_init']=!0x0,this[_0x15a7d4(0x2bc)][_0x15a7d4(0x1e7)][_0x15a7d4(0x24b)](_0x5a4142(this[_0x15a7d4(0x1f4)]))[_0x15a7d4(0x2e3)](_0x3a308d=>{const _0x1807ca=_0x15a7d4;_0x3a308d===_0x44dfe0[_0x1807ca(0x190)]?this['_toggleOnline']():this[_0x1807ca(0x1de)]();}),this['_session'][_0x15a7d4(0x367)][_0x15a7d4(0x24b)](_0x5a4142(this['dispose$']))[_0x15a7d4(0x2e3)](_0x3c616e=>{const _0x455d3c=_0x15a7d4,_0x1fd4f5=_0x3c616e[_0x455d3c(0x200)];_0x1fd4f5===_0xc2e08f[_0x455d3c(0x2fa)]&&this['_onCursorUpdate'](_0x3c616e),_0x1fd4f5===_0xc2e08f[_0x455d3c(0x28e)]&&this[_0x455d3c(0x16f)](_0x3c616e);}),this['_onRefRangeChange'](),this[_0x15a7d4(0x288)](this['_commandService']['onCommandExecuted'](_0xbdcd61=>{const _0x24a811=_0x15a7d4;if(this[_0x24a811(0x19b)]&&_0xbdcd61['id']===_0x1f9822['id']&&_0xbdcd61['params'][_0x24a811(0x2bd)]===this['unitID']){const _0x50ae3b=_0xbdcd61[_0x24a811(0x1a1)];this[_0x24a811(0x36f)](_0x50ae3b['subUnitId'],_0x50ae3b[_0x24a811(0x161)][0x0]);}})));}[_0xf9a763(0x2ef)](_0x2095f0){const _0x157895=_0xf9a763;var _0x441b8a,_0x100659;const {memberID:_0x560621,selection:_0x4fdd56}=_0x2095f0[_0x157895(0x2cf)],{sheetName:_0x580710,range:_0x20aad5}=_0x4c64b8(_0x4fdd56),_0x3b25={'name':(_0x100659=(_0x441b8a=this[_0x157895(0x297)][_0x157895(0x20d)](this[_0x157895(0x267)],_0x560621))==null?void 0x0:_0x441b8a[_0x157895(0x237)])!=null?_0x100659:'Unknown\x20user','range':this[_0x157895(0x32c)](_0x580710,_0x20aad5),'sheetID':_0x580710,'color':this[_0x157895(0x18a)][_0x157895(0x365)](_0x560621),'selection':_0x4fdd56},_0x9361c3=this['cursorInfo'];_0x9361c3['set'](_0x560621,_0x3b25),this[_0x157895(0x339)][_0x157895(0x30c)](_0x9361c3);}[_0xf9a763(0x16f)](_0xcfbe1f){const _0x3888b9=_0xf9a763,{memberID:_0x380f97}=_0xcfbe1f['data'],_0x4e6ac4=this[_0x3888b9(0x2eb)];_0x4e6ac4[_0x3888b9(0x1e9)](_0x380f97),this[_0x3888b9(0x339)]['next'](_0x4e6ac4);}['_getMergeRange'](_0x277a76,_0x670f6){const _0x3ff74e=_0xf9a763;var _0x20b47f,_0x1d5a55;const _0x44526a=(_0x1d5a55=(_0x20b47f=this[_0x3ff74e(0x166)]['getUniverSheetInstance'](this[_0x3ff74e(0x267)]))==null?void 0x0:_0x20b47f[_0x3ff74e(0x2d1)](_0x277a76))==null?void 0x0:_0x1d5a55['getMergeData']();return(_0x44526a==null?void 0x0:_0x44526a[_0x3ff74e(0x391)](_0x12e39e=>_0x3605df[_0x3ff74e(0x26c)](_0x12e39e,_0x670f6)))||_0x670f6;}[_0xf9a763(0x2a0)](){const _0x5b5955=_0xf9a763,_0x2537b9=new _0x53cf22(),_0x383545=Fi(),_0x3784b2=()=>{const _0x4754a1=_0x37b4;_0x2537b9[_0x4754a1(0x231)]();const _0x3b05e1=(_0x178e98,_0x571b3d,_0x210663,_0x461154)=>{const _0x4d8a0f=_0x4754a1;let _0x322f1f=[];switch(_0x178e98['id']){case _0x341880[_0x4d8a0f(0x2e1)]:{_0x322f1f=_0x31bee7(_0x178e98,_0x461154);break;}case _0x341880['DeleteRangeMoveUpCommandId']:{_0x322f1f=_0x1462ea(_0x178e98,_0x461154);break;}case _0x341880[_0x4d8a0f(0x334)]:{_0x322f1f=_0x2649ba(_0x178e98,_0x461154);break;}case _0x341880[_0x4d8a0f(0x203)]:{_0x322f1f=_0x3a9fd1(_0x178e98,_0x461154);break;}case _0x341880[_0x4d8a0f(0x24e)]:{_0x322f1f=_0x8eee62(_0x178e98,_0x461154);break;}case _0x341880['InsertRowCommandId']:{_0x322f1f=_0x43a629(_0x178e98,_0x461154);break;}case _0x341880[_0x4d8a0f(0x2c7)]:{_0x322f1f=_0x13619a(_0x178e98,_0x461154);break;}case _0x341880[_0x4d8a0f(0x21c)]:{_0x322f1f=_0x116925(_0x178e98,_0x461154);break;}case _0x341880['RemoveRowCommandId']:{_0x322f1f=_0x15960d(_0x178e98,_0x461154);break;}}const _0x3c1f53=_0x96f177(_0x322f1f,_0x461154),_0x4bdc11=this[_0x4d8a0f(0x2eb)][_0x4d8a0f(0x385)](_0x571b3d);if(_0x4bdc11&&_0x3c1f53){const _0x48529c={..._0x4bdc11,'range':_0x3c1f53};this['cursorInfo']['set'](_0x571b3d,_0x48529c),_0x383545(()=>{const _0x5d1834=_0x4d8a0f,_0x55813f=this['_refRangeService']['registerRefRange'](_0x3c1f53,_0x2fd42c=>(_0x55813f[_0x5d1834(0x231)](),_0x3b05e1(_0x2fd42c,_0x571b3d,_0x210663,_0x3c1f53)));_0x2537b9[_0x5d1834(0x23f)](_0x55813f);});}return{'redos':[],'undos':[]};};this[_0x4754a1(0x2eb)][_0x4754a1(0x368)]((_0x11aae9,_0x5a47ea)=>{const _0x3a7b18=_0x4754a1,{range:_0x5bc9b6,sheetID:_0x36083f}=_0x11aae9,_0x33654c=this[_0x3a7b18(0x2ba)][_0x3a7b18(0x369)](_0x5bc9b6,_0x348a82=>(_0x33654c['dispose'](),_0x3b05e1(_0x348a82,_0x5a47ea,_0x36083f,_0x5bc9b6)));_0x2537b9['add'](_0x33654c);});};this[_0x5b5955(0x288)](_0x23f13a(this['_cursorInfo$'][_0x5b5955(0x2e3)](()=>{_0x3784b2();})));}[_0xf9a763(0x2ed)](){const _0x9ea585=_0xf9a763;var _0x20c144,_0x29c1ae;if(this['_online']=!0x0,((_0x20c144=this['_univerInstanceService'][_0x9ea585(0x275)]())==null?void 0x0:_0x20c144[_0x9ea585(0x175)]())!==this['unitID'])return;const _0x5d7836=(_0x29c1ae=this['_injector']['get'](_0x498f50)[_0x9ea585(0x372)]())==null?void 0x0:_0x29c1ae[0x0],_0x227f92=this[_0x9ea585(0x166)][_0x9ea585(0x1eb)](_0x3b755d[_0x9ea585(0x26f)])['getActiveSheet']();_0x5d7836&&_0x227f92&&this[_0x9ea585(0x36f)](_0x227f92[_0x9ea585(0x211)](),_0x5d7836);}[_0xf9a763(0x1de)](){const _0x11348d=_0xf9a763;this[_0x11348d(0x19b)]=!0x1;}};we=$i([B(0x2,_0x13b860(_0x74797)),B(0x3,_0x13b860(je)),B(0x4,_0x13b860(_0x1a4845)),B(0x5,_0xb83e3b),B(0x6,_0x2584e9),B(0x7,_0x13b860(_0x4daa80))],we);var ki=Object[_0xf9a763(0x1b6)],Hi=(_0xe302fb,_0x5c82b6,_0x86e284,_0x3a2f1e)=>{const _0x9d57f6=_0xf9a763;for(var _0x34b648=_0x3a2f1e>0x1?void 0x0:_0x3a2f1e?ki(_0x5c82b6,_0x86e284):_0x5c82b6,_0x319aff=_0xe302fb[_0x9d57f6(0x281)]-0x1,_0x2fb792;_0x319aff>=0x0;_0x319aff--)(_0x2fb792=_0xe302fb[_0x319aff])&&(_0x34b648=_0x2fb792(_0x34b648)||_0x34b648);return _0x34b648;},Ee=(_0xfbcf9f,_0x3a4ab4)=>(_0x36d56d,_0x279e1e)=>_0x3a4ab4(_0x36d56d,_0x279e1e,_0xfbcf9f);let H=class extends _0x26b6de{constructor(_0xa0503c,_0x43b3e8,_0x4a81b3){const _0x4342b1=_0xf9a763;super(),l(this,_0x4342b1(0x205),new Map()),l(this,'_entityInit$',new _0x3f7a5c()),(this[_0x4342b1(0x166)]=_0xa0503c,this['_injector']=_0x43b3e8,this[_0x4342b1(0x20a)]=_0x4a81b3,this['_init']());}[_0xf9a763(0x231)](){const _0x4f8d2a=_0xf9a763;super[_0x4f8d2a(0x231)](),this[_0x4f8d2a(0x29d)][_0x4f8d2a(0x250)](),this[_0x4f8d2a(0x205)][_0x4f8d2a(0x368)](_0x49a7ee=>_0x49a7ee['dispose']());}[_0xf9a763(0x1c1)](_0x385722){const _0x1e44a0=_0xf9a763;return this[_0x1e44a0(0x205)][_0x1e44a0(0x18d)](_0x385722)?this[_0x1e44a0(0x205)]['get'](_0x385722)['cursorInfo$']:this[_0x1e44a0(0x29d)][_0x1e44a0(0x24b)](_0x1d3a9f(_0x181150=>_0x181150[_0x1e44a0(0x267)]===_0x385722),_0x3166ac(_0x3041d7=>_0x3041d7[_0x1e44a0(0x335)]));}[_0xf9a763(0x20c)](){const _0x13118e=_0xf9a763;this[_0x13118e(0x166)][_0x13118e(0x173)](_0x3b755d[_0x13118e(0x26f)])[_0x13118e(0x24b)](_0x5a4142(this[_0x13118e(0x1f4)]))['subscribe'](async _0x1ffff9=>{const _0x1ccc08=_0x13118e,_0x4b2b0f=_0x1ffff9['getUnitId'](),_0x364ed7=await this[_0x1ccc08(0x25d)](_0x4b2b0f);this[_0x1ccc08(0x29d)][_0x1ccc08(0x30c)](_0x364ed7),this[_0x1ccc08(0x205)]['set'](_0x4b2b0f,_0x364ed7);}),this[_0x13118e(0x166)][_0x13118e(0x173)](_0x3b755d['UNIVER_DOC'])[_0x13118e(0x24b)](_0x5a4142(this[_0x13118e(0x1f4)]))['pipe'](_0x1d3a9f(_0x39a8b7=>!_0x39a8b7['getUnitId']()[_0x13118e(0x192)]('__')))[_0x13118e(0x2e3)](async _0x17de57=>{const _0x1452fc=_0x13118e,_0x37c518=_0x17de57['getUnitId'](),_0x5949e2=await this[_0x1452fc(0x2a6)](_0x37c518);this['_entityInit$']['next'](_0x5949e2),this[_0x1452fc(0x205)][_0x1452fc(0x28a)](_0x37c518,_0x5949e2);}),_0x431d2f(this[_0x13118e(0x166)]['getTypeOfUnitDisposed$'](_0x3b755d['UNIVER_DOC']),this['_univerInstanceService'][_0x13118e(0x241)](_0x3b755d[_0x13118e(0x26f)]))[_0x13118e(0x24b)](_0x5a4142(this['dispose$']))[_0x13118e(0x2e3)](_0x25916c=>{const _0x43d53c=_0x13118e,_0x5e916a=_0x25916c['getUnitId'](),_0x583bef=this[_0x43d53c(0x205)][_0x43d53c(0x385)](_0x5e916a);_0x583bef&&(_0x583bef[_0x43d53c(0x231)](),this[_0x43d53c(0x205)]['delete'](_0x5e916a));});}async['_startSheetCollabCursor'](_0x519fa2){const _0x20f4a9=_0xf9a763,_0x409e9b=await this[_0x20f4a9(0x20a)][_0x20f4a9(0x2a5)](_0x519fa2),_0x1a51cc=this[_0x20f4a9(0x208)][_0x20f4a9(0x1d5)](we,_0x519fa2,_0x409e9b);return _0x1a51cc[_0x20f4a9(0x2b3)](),_0x1a51cc;}async[_0xf9a763(0x2a6)](_0x23ab26){const _0x121574=_0xf9a763,_0x3d0beb=await this['_collabSessionService'][_0x121574(0x2a5)](_0x23ab26),_0x17792e=this[_0x121574(0x208)][_0x121574(0x1d5)](Pe,_0x23ab26,_0x3d0beb);return _0x17792e[_0x121574(0x2b3)](),_0x17792e;}};H=Hi([Ee(0x0,_0xb83e3b),Ee(0x1,_0x13b860(_0x74797)),Ee(0x2,_0x13b860(_0x1a5cbd))],H);const Q=0x14,it=0xc8,pe=0x4,Yi=0x5;function Wi(_0x1afaf9,_0x1e29af){const _0x44b514=_0xf9a763;let {radius:_0xe97695,width:_0x52a79,height:_0x2475b}=_0x1e29af;_0xe97695=_0xe97695!=null?_0xe97695:0x0,_0x52a79=_0x52a79!=null?_0x52a79:0x1e,_0x2475b=_0x2475b!=null?_0x2475b:0x1e;let _0x593bc6=0x0,_0x24fdc9=0x0,_0x321dc8=0x0;_0x593bc6=_0x24fdc9=_0x321dc8=Math[_0x44b514(0x351)](_0xe97695,_0x52a79/0x2,_0x2475b/0x2),_0x1afaf9['beginPath'](),_0x1afaf9[_0x44b514(0x1e2)](_0x593bc6,0x0),_0x1afaf9[_0x44b514(0x374)](_0x52a79-_0x24fdc9,0x0),_0x1afaf9[_0x44b514(0x1d3)](_0x52a79-_0x24fdc9,_0x24fdc9,_0x24fdc9,Math['PI']*0x3/0x2,0x0,!0x1),_0x1afaf9[_0x44b514(0x374)](_0x52a79,_0x2475b-_0x321dc8),_0x1afaf9['arc'](_0x52a79-_0x321dc8,_0x2475b-_0x321dc8,_0x321dc8,0x0,Math['PI']/0x2,!0x1),_0x1afaf9[_0x44b514(0x374)](0x0,_0x2475b),_0x1afaf9[_0x44b514(0x374)](0x0,_0x593bc6),_0x1afaf9[_0x44b514(0x1d3)](_0x593bc6,_0x593bc6,_0x593bc6,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1afaf9['closePath'](),_0x1e29af[_0x44b514(0x350)]&&(_0x1afaf9[_0x44b514(0x262)](),_0x1afaf9['fillStyle']=_0x1e29af[_0x44b514(0x350)],_0x1e29af[_0x44b514(0x1b2)]===_0x44b514(0x317)?_0x1afaf9[_0x44b514(0x350)]('evenodd'):_0x1afaf9[_0x44b514(0x350)](),_0x1afaf9[_0x44b514(0x30b)]());}class me extends _0x4c2fc1{constructor(_0x30c2d0,_0x2ab2f8){const _0x4c22b2=_0xf9a763;super(_0x30c2d0,_0x2ab2f8),l(this,_0x4c22b2(0x272)),l(this,_0x4c22b2(0x310)),(this[_0x4c22b2(0x272)]=_0x2ab2f8==null?void 0x0:_0x2ab2f8[_0x4c22b2(0x272)],this['text']=_0x2ab2f8==null?void 0x0:_0x2ab2f8[_0x4c22b2(0x310)]);}static[_0xf9a763(0x1e3)](_0x3db54c,_0x164930){const _0x7d7198=_0xf9a763,{text:_0x118887,color:_0x19e460}=_0x164930;_0x3db54c[_0x7d7198(0x262)](),_0x3db54c[_0x7d7198(0x16e)]=_0x7d7198(0x1a9);const _0x177094=_0x3db54c[_0x7d7198(0x242)](_0x118887)[_0x7d7198(0x1e8)],_0x9e1039=Math[_0x7d7198(0x351)](_0x177094+0x2*pe,it);Wi(_0x3db54c,{'height':Q,'radius':0x4,'width':_0x9e1039,'fill':_0x19e460}),_0x3db54c[_0x7d7198(0x251)]=_0x7d7198(0x223);const _0x143bc9=pe,_0x4f9d95=Q-Yi,_0xd2a304=it-0x2*pe;if(_0x177094>_0xd2a304){let _0xc16b86='',_0x415c6e=0x0;for(const _0x23722a of _0x118887){const _0x2daba3=_0x3db54c[_0x7d7198(0x242)](_0x23722a)['width'];if(_0x415c6e+_0x2daba3<=_0xd2a304-_0x3db54c[_0x7d7198(0x242)](_0x7d7198(0x229))['width'])_0xc16b86+=_0x23722a,_0x415c6e+=_0x2daba3;else{_0xc16b86+=_0x7d7198(0x229);break;}}_0x3db54c[_0x7d7198(0x2f8)](_0xc16b86,_0x143bc9,_0x4f9d95);}else _0x3db54c[_0x7d7198(0x2f8)](_0x118887,_0x143bc9,_0x4f9d95);_0x3db54c[_0x7d7198(0x30b)]();}['_draw'](_0x462ea1){const _0x306b19=_0xf9a763;me[_0x306b19(0x1e3)](_0x462ea1,this);}}const Oe=_0xf9a763(0x378),Vi=_0xf9a763(0x31d),ji=_0xf9a763(0x36d),z=0x6,Xi=1.5,Te=0x4,Gi=1.5,Ki=_0xf9a763(0x172);class nt{constructor(_0x56b497,_0xa5f41c,_0x58c234,_0x264a79){const _0x39000e=_0xf9a763;l(this,_0x39000e(0x1bd),[]),l(this,_0x39000e(0x353),null),l(this,_0x39000e(0x195),null),l(this,_0x39000e(0x162),null),l(this,_0x39000e(0x386),null),l(this,_0x39000e(0x1cd),null),(this[_0x39000e(0x213)]=_0x56b497,this['_scene']=_0xa5f41c,this['_docSkeleton']=_0x58c234,this[_0x39000e(0x34d)]=_0x264a79,this[_0x39000e(0x27b)]());}set['_hover'](_0x2e3887){const _0x419b31=_0xf9a763;_0x2e3887?(this[_0x419b31(0x162)]&&this[_0x419b31(0x162)]['hide'](),this[_0x419b31(0x195)]&&this[_0x419b31(0x195)][_0x419b31(0x2d4)]()):(this['_anchorDot']&&this[_0x419b31(0x162)][_0x419b31(0x2d4)](),this[_0x419b31(0x195)]&&this[_0x419b31(0x195)][_0x419b31(0x19a)]());}['dispose'](){const _0x3f0b3f=_0xf9a763;for(const _0x20591d of this['_shapes'])_0x20591d[_0x3f0b3f(0x231)]();this[_0x3f0b3f(0x195)]&&this[_0x3f0b3f(0x195)][_0x3f0b3f(0x231)](),this['_anchorDot']&&this['_anchorDot']['dispose'](),this['_anchor']&&this['_anchor'][_0x3f0b3f(0x231)](),this[_0x3f0b3f(0x1cd)]&&this[_0x3f0b3f(0x1cd)]();}[_0xf9a763(0x27b)](){const _0x561e6f=_0xf9a763;var _0x178010;const {_docSkeleton:_0x17399c,_document:_0x545cee}=this,{color:_0xdefa8b,name:_0x4f4ec2,ranges:_0x4368f6}=this['_cursor'],_0x22d602=_0x545cee[_0x561e6f(0x355)](),{docsLeft:_0x4f7926,docsTop:_0x1f457a}=_0x22d602,_0x4d9594=new _0x1c9d86(_0x22d602,_0x17399c);for(const {startOffset:_0x950568,endOffset:_0x60cc43,rangeType:_0x19f106,segmentId:_0xf1eea6,segmentPage:_0x2834ee,collapsed:_0x5ec4ac,isActive:_0xf2c8d}of _0x4368f6){const _0x3ff44f=_0x17399c[_0x561e6f(0x257)](_0x950568,!0x0,_0xf1eea6,_0x2834ee);let _0x5b7b0f=_0x17399c[_0x561e6f(0x257)](_0x60cc43,!0x0,_0xf1eea6,_0x2834ee);if(_0x5b7b0f==null&&(_0x5b7b0f=_0x17399c[_0x561e6f(0x257)](_0x60cc43-0x1,!0x1,_0xf1eea6,_0x2834ee)),_0xf2c8d){const {contentBoxPointGroup:_0x3ba4be}=_0x4d9594[_0x561e6f(0x25b)](_0x5b7b0f,_0x5b7b0f);if(_0x3ba4be[_0x561e6f(0x281)]===0x0)continue;this[_0x561e6f(0x1e6)](_0xdefa8b,_0x3ba4be,_0x4f7926,_0x1f457a,_0x4f4ec2),this[_0x561e6f(0x1cd)]=this[_0x561e6f(0x18f)]();}if(_0x3ff44f&&_0x5b7b0f){if(_0x19f106===_0x1cfa46['RECT']){const _0x2ba6b1=new _0x8a818(_0x22d602,_0x17399c),{pointGroup:_0x11b1d9}=(_0x178010=_0x2ba6b1['getRangePointData'](_0x3ff44f,_0x5b7b0f))!=null?_0x178010:{};if(_0x11b1d9==null||_0x11b1d9[_0x561e6f(0x281)]===0x0)continue;this[_0x561e6f(0x37b)](_0xdefa8b,_0x11b1d9,_0x4f7926,_0x1f457a);}else{if(!_0x5ec4ac){const {borderBoxPointGroup:_0x5215da}=_0x4d9594[_0x561e6f(0x25b)](_0x3ff44f,_0x5b7b0f);if(_0x5215da[_0x561e6f(0x281)]===0x0)continue;this['_drawTextRange'](_0xdefa8b,_0x5215da,_0x4f7926,_0x1f457a);}}}}}[_0xf9a763(0x1e6)](_0x3211c3,_0x262e7a,_0x5b9da2,_0x56c064,_0x35ecd7){const _0x57e2cc=_0xf9a763,_0x5d539c=this[_0x57e2cc(0x194)](_0x262e7a),{left:_0x16476c,top:_0x38e0f3,height:_0x23e046}=_0x5d539c,_0x1b9bd1=this['_getScale'](),_0x13261c=Gi/_0x1b9bd1,_0x479555=new _0x46a12b(Oe+_0x3af150(z),{'left':_0x16476c+_0x5b9da2-_0x13261c,'top':_0x38e0f3+_0x56c064,'height':_0x23e046,'width':Xi,'fill':_0x3211c3||_0x133715(_0x34c90e[_0x57e2cc(0x2a1)],0x0),'strokeWidth':_0x13261c,'stroke':Ki,'evented':!0x0});this['_anchor']=_0x479555,this[_0x57e2cc(0x2a8)][_0x57e2cc(0x19c)](_0x479555,_0xda8a95);const _0x5d287f=new _0x46a12b(Oe+_0x3af150(z),{'left':_0x16476c+_0x5b9da2-_0x13261c,'top':_0x38e0f3+_0x56c064-Te/0x2,'height':Te,'width':Te,'fill':_0x3211c3||_0x133715(_0x34c90e['black'],0x0),'strokeWidth':0x0,'stroke':_0x3211c3||_0x133715(_0x34c90e[_0x57e2cc(0x2a1)],0x0),'evented':!0x1});this[_0x57e2cc(0x162)]=_0x5d287f,this[_0x57e2cc(0x2a8)]['addObject'](_0x5d287f,_0xda8a95);const _0x427113=new me(Oe+_0x3af150(z),{'left':_0x16476c+_0x5b9da2-_0x13261c,'top':_0x38e0f3+_0x56c064-Q,'text':_0x35ecd7,'color':_0x3211c3});this[_0x57e2cc(0x195)]=_0x427113,this[_0x57e2cc(0x2a8)]['addObject'](_0x427113,_0xda8a95),this[_0x57e2cc(0x30f)]=!0x1;}['_handleHover'](){const _0x49bc2c=_0xf9a763,_0x549a70=this['_anchor'][_0x49bc2c(0x377)][_0x49bc2c(0x207)](()=>{this['_hover']=!0x0;}),_0x47dbe0=this[_0x49bc2c(0x353)]['onPointerLeave$'][_0x49bc2c(0x207)](()=>{const _0x6450a6=_0x49bc2c;this[_0x6450a6(0x386)]&&clearTimeout(this[_0x6450a6(0x386)]),this['_hideTimer']=setTimeout(()=>{const _0x3cb10e=_0x6450a6;this[_0x3cb10e(0x30f)]=!0x1;},0x7d0);});return()=>{const _0x54f421=_0x49bc2c;_0x549a70[_0x54f421(0x23b)](),_0x47dbe0[_0x54f421(0x23b)]();};}[_0xf9a763(0x31e)](_0x40df82,_0x50304d,_0x13a2c5,_0x4336d2){const _0x939ddb=_0xf9a763,_0x4724d8=new _0x845acd(_0x40df82)[_0x939ddb(0x293)](0.2)['toRgbString'](),_0x3c7197=new _0x2fa5d2(Vi+_0x3af150(z),{'pointsGroup':_0x50304d,'fill':_0x4724d8||_0x133715(_0x34c90e['black'],0.2),'left':_0x13a2c5,'top':_0x4336d2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x939ddb(0x1bd)][_0x939ddb(0x2af)](_0x3c7197),this[_0x939ddb(0x2a8)]['addObject'](_0x3c7197,_0xda8a95);}[_0xf9a763(0x37b)](_0x207831,_0x3cc63d,_0x1e2155,_0x45b102){const _0x5f1972=_0xf9a763,_0x379bf7=new _0x845acd(_0x207831)[_0x5f1972(0x293)](0.2)[_0x5f1972(0x1d4)](),_0x287e93=new _0x2fa5d2(ji+_0x3af150(z),{'pointsGroup':_0x3cc63d,'fill':_0x379bf7||_0x133715(_0x34c90e[_0x5f1972(0x2a1)],0.2),'left':_0x1e2155,'top':_0x45b102,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5f1972(0x1bd)][_0x5f1972(0x2af)](_0x287e93),this[_0x5f1972(0x2a8)][_0x5f1972(0x19c)](_0x287e93,_0xda8a95);}['_getAnchorBounding'](_0x454e2a){const _0x51a85d=_0x454e2a[0x0],_0x406341=_0x51a85d[0x0],_0x22c614=_0x51a85d[0x2],{x:_0x41ae5a,y:_0x4e57b8}=_0x406341,{x:_0x1d0424,y:_0xa4fce1}=_0x22c614;return{'left':_0x41ae5a,'top':_0x4e57b8,'width':_0x1d0424-_0x41ae5a,'height':_0xa4fce1-_0x4e57b8};}['_getScale'](){const _0x4fe84e=_0xf9a763,{scaleX:_0x440aa2,scaleY:_0xf53f4}=this[_0x4fe84e(0x2a8)]['getAncestorScale']();return Math[_0x4fe84e(0x1f1)](_0x440aa2,_0xf53f4);}}var zi=Object[_0xf9a763(0x1b6)],Ji=(_0x3ac27c,_0xab2f9,_0x4c7e4c,_0x1ebe6a)=>{const _0x1f9add=_0xf9a763;for(var _0x39821c=_0x1ebe6a>0x1?void 0x0:_0x1ebe6a?zi(_0xab2f9,_0x4c7e4c):_0xab2f9,_0x428ade=_0x3ac27c[_0x1f9add(0x281)]-0x1,_0x49ec8b;_0x428ade>=0x0;_0x428ade--)(_0x49ec8b=_0x3ac27c[_0x428ade])&&(_0x39821c=_0x49ec8b(_0x39821c)||_0x39821c);return _0x39821c;},ie=(_0x31724c,_0x18c581)=>(_0x18723a,_0x2cd597)=>_0x18c581(_0x18723a,_0x2cd597,_0x31724c);let ye=class extends _0x26b6de{constructor(_0x1332da,_0x3ff02e,_0x104396,_0x4074e3,_0x149f0a){const _0x1783eb=_0xf9a763;super(),l(this,_0x1783eb(0x1df),[]),l(this,_0x1783eb(0x34e),[]),(this[_0x1783eb(0x1e1)]=_0x1332da,this[_0x1783eb(0x1a8)]=_0x3ff02e,this[_0x1783eb(0x2cc)]=_0x104396,this[_0x1783eb(0x24f)]=_0x4074e3,this['_themeService']=_0x149f0a,this[_0x1783eb(0x20c)]());}['_init'](){const _0x1914ef=_0xf9a763,_0x2f7d78=this['_context'][_0x1914ef(0x2bd)],_0x127d17=this[_0x1914ef(0x1a8)];this[_0x1914ef(0x288)](_0x452546([this[_0x1914ef(0x2cc)][_0x1914ef(0x1c1)](_0x2f7d78),this['_themeService'][_0x1914ef(0x1db)]])['pipe'](_0x410b86(([_0x2b464e,_0xb02b39])=>({'skeleton':_0x127d17[_0x1914ef(0x1ea)](),'cursors':[..._0x2b464e[_0x1914ef(0x1f9)]()][_0x1914ef(0x1ff)](_0x652ecf=>({..._0x652ecf,'color':this[_0x1914ef(0x1ae)]['getColorFromTheme'](_0x652ecf['color'])}))})))[_0x1914ef(0x2e3)](_0x2c2798=>{const _0x1b4f17=_0x1914ef;if(this['_removeCollabCursors'](),_0x2c2798){const {skeleton:_0x58120e,cursors:_0x42cfe6}=_0x2c2798;this[_0x1b4f17(0x2cd)](_0x58120e,_0x42cfe6);}})),this[_0x1914ef(0x1a4)](),this[_0x1914ef(0x34b)]();}[_0xf9a763(0x2cd)](_0x3b0451,_0x2ffb20){const _0x2c16c8=_0xf9a763,{scene:_0x271ffa,mainComponent:_0x1fc0f2}=this['_context'],_0x25a57d=_0x2ffb20[_0x2c16c8(0x185)](_0x1f8767=>new nt(_0x1f8767,_0x271ffa,_0x3b0451,_0x1fc0f2));this[_0x2c16c8(0x1df)]=_0x25a57d,this[_0x2c16c8(0x34e)]=_0x2ffb20;}[_0xf9a763(0x1c0)](){const _0x3be86c=_0xf9a763;this[_0x3be86c(0x26a)]();const {scene:_0x2edc72,mainComponent:_0x302ecb}=this[_0x3be86c(0x1e1)],_0x3122a2=this[_0x3be86c(0x1a8)]['getSkeleton'](),_0x4be226=this['_cursors'][_0x3be86c(0x185)](_0x2d48f6=>new nt(_0x2d48f6,_0x2edc72,_0x3122a2,_0x302ecb));this[_0x3be86c(0x1df)]=_0x4be226;}[_0xf9a763(0x26a)](){const _0x2f8862=_0xf9a763;this[_0x2f8862(0x1df)][_0x2f8862(0x368)](_0xbf3943=>_0xbf3943[_0x2f8862(0x231)]()),this[_0x2f8862(0x1df)]=[];}[_0xf9a763(0x34b)](){const _0x325d76=_0xf9a763,_0x4df21a=[_0x5503a0['id']];this[_0x325d76(0x288)](this[_0x325d76(0x24f)][_0x325d76(0x2a9)](_0x277e56=>{const _0x2ec346=_0x325d76;_0x4df21a['includes'](_0x277e56['id'])&&_0x277e56[_0x2ec346(0x1a1)][_0x2ec346(0x2bd)]===this[_0x2ec346(0x1e1)][_0x2ec346(0x2bd)]&&this[_0x2ec346(0x1c0)]();}));}[_0xf9a763(0x1a4)](){const _0x54d69d=_0xf9a763;this[_0x54d69d(0x288)](_0x14c25e(this[_0x54d69d(0x1e1)]['engine'][_0x54d69d(0x16d)])[_0x54d69d(0x24b)](_0x3e70da(_0x4960f9=>_0x4960f9[_0x54d69d(0x1ab)]===_0x335155[_0x54d69d(0x184)]),_0x37604e(0x10))[_0x54d69d(0x2e3)](()=>{const _0x3e73d1=_0x54d69d;this[_0x3e73d1(0x1c0)]();}));}};ye=Ji([ie(0x1,_0x13b860(_0x52ad97)),ie(0x2,_0x13b860(H)),ie(0x3,_0x2584e9),ie(0x4,_0x13b860(_0x5eaa14))],ye);const Zi=0x1,Qi=1.5;class qi extends _0x4c2fc1{constructor(_0x42d35e,_0x385dac){const _0x2b8229=_0xf9a763;super(_0x42d35e,_0x385dac),l(this,'_color'),l(this,_0x2b8229(0x235),!0x1),l(this,_0x2b8229(0x2d7)),l(this,_0x2b8229(0x359),''),l(this,'_labelPosition',_0x2b8229(0x2e9)),l(this,_0x2b8229(0x37d)),(_0x385dac&&this['setShapeProps'](_0x385dac),this[_0x2b8229(0x377)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x2b8229(0x28b)]({'hovered':!0x1})));}['setShapeProps'](_0x1b9e25){const _0x3f5b1a=_0xf9a763;var _0x2fe0a8,_0x1ebbb8,_0x5b58b3,_0x70f7b8,_0x594523,_0x51f902;this[_0x3f5b1a(0x37f)]=(_0x2fe0a8=_0x1b9e25[_0x3f5b1a(0x272)])!=null?_0x2fe0a8:this[_0x3f5b1a(0x37f)],this[_0x3f5b1a(0x235)]=(_0x1ebbb8=_0x1b9e25['hovered'])!=null?_0x1ebbb8:this[_0x3f5b1a(0x235)],this[_0x3f5b1a(0x2d7)]=(_0x5b58b3=_0x1b9e25[_0x3f5b1a(0x221)])!=null?_0x5b58b3:this[_0x3f5b1a(0x2d7)],this['_name']=(_0x70f7b8=_0x1b9e25[_0x3f5b1a(0x237)])!=null?_0x70f7b8:this[_0x3f5b1a(0x359)],this[_0x3f5b1a(0x371)]=(_0x594523=_0x1b9e25[_0x3f5b1a(0x248)])!=null?_0x594523:this[_0x3f5b1a(0x371)],this[_0x3f5b1a(0x37d)]=(_0x51f902=_0x1b9e25['backgroundColor'])!=null?_0x51f902:this['_backgroundColor'],this[_0x3f5b1a(0x23e)]({'width':_0x1b9e25[_0x3f5b1a(0x1e8)],'height':_0x1b9e25[_0x3f5b1a(0x16c)]});}[_0xf9a763(0x2c1)](_0x49cc79){const _0x235207=_0xf9a763,{row:_0x28536a,column:_0x3f0466}=_0x49cc79;if(_0x28536a>=this['_range']['startRow']&&_0x28536a<=this['_range'][_0x235207(0x303)]&&_0x3f0466>=this[_0x235207(0x2d7)][_0x235207(0x35a)]&&_0x3f0466<=this[_0x235207(0x2d7)][_0x235207(0x206)]){this[_0x235207(0x28b)]({'hovered':!0x0});return;}this[_0x235207(0x28b)]({'hovered':!0x1});}[_0xf9a763(0x37a)](_0x155dd6){return!0x1;}[_0xf9a763(0x1fa)](_0x2fcaab){const _0x4b23b7=_0xf9a763;_0x46a12b[_0x4b23b7(0x1e3)](_0x2fcaab,{'width':this['width'],'height':this[_0x4b23b7(0x16c)],'strokeWidth':Qi,'stroke':this[_0x4b23b7(0x37f)],'evented':!0x1,'fill':this[_0x4b23b7(0x37d)]}),this[_0x4b23b7(0x235)]&&(_0x2fcaab[_0x4b23b7(0x262)](),_0x2fcaab[_0x4b23b7(0x36a)](0x1,0x0,0x0,0x1,this[_0x4b23b7(0x1e8)],this['_labelPosition']===_0x4b23b7(0x2ab)?0x0:-Q),me['drawWith'](_0x2fcaab,{'text':this[_0x4b23b7(0x359)],'color':this['_color']}),_0x2fcaab[_0x4b23b7(0x30b)]());}}var en=Object[_0xf9a763(0x1b6)],tn=(_0x2fcb66,_0x1841ca,_0x2580c5,_0x12fd5f)=>{for(var _0xbd3f6c=_0x12fd5f>0x1?void 0x0:_0x12fd5f?en(_0x1841ca,_0x2580c5):_0x1841ca,_0x1f75e3=_0x2fcb66['length']-0x1,_0x3523fc;_0x1f75e3>=0x0;_0x1f75e3--)(_0x3523fc=_0x2fcb66[_0x1f75e3])&&(_0xbd3f6c=_0x3523fc(_0xbd3f6c)||_0xbd3f6c);return _0xbd3f6c;},Ce=(_0x2d9468,_0x5af3ba)=>(_0x531caf,_0x3e001f)=>_0x5af3ba(_0x531caf,_0x3e001f,_0x2d9468);const sn=0x1389;let $e=class extends _0x26b6de{constructor(_0x4586c3,_0x21c8b2,_0x5f4760,_0x5abad3){const _0x32398b=_0xf9a763;super(),l(this,_0x32398b(0x34e),new Set()),l(this,'_lastPointer',null),(this[_0x32398b(0x1e1)]=_0x4586c3,this[_0x32398b(0x346)]=_0x21c8b2,this[_0x32398b(0x2cc)]=_0x5f4760,this['_themeService']=_0x5abad3,this[_0x32398b(0x20c)]());}[_0xf9a763(0x20c)](){const _0x47de50=_0xf9a763;this[_0x47de50(0x346)][_0x47de50(0x271)]['pipe'](_0x133029(this[_0x47de50(0x1f4)]),_0x4fb99a(_0x32524c=>{const _0x1f7557=_0x47de50;if(_0x32524c){const _0x5e1178=_0x32524c[_0x1f7557(0x2b6)];return _0x452546(this[_0x1f7557(0x2cc)][_0x1f7557(0x1c1)](this[_0x1f7557(0x1e1)][_0x1f7557(0x2bd)]),this[_0x1f7557(0x1ae)][_0x1f7557(0x1db)])[_0x1f7557(0x24b)](_0x410b86(([_0xc542cb,_0x1084a2])=>{const _0x855d99=_0x1f7557,_0x5e8fed=new Map();return _0xc542cb[_0x855d99(0x368)]((_0x448c6b,_0x1e68fd)=>{const _0x378872=_0x855d99;if(_0x448c6b[_0x378872(0x328)]===_0x5e1178){const _0x56a95a={..._0x448c6b};_0x56a95a['color']=this[_0x378872(0x1ae)]['getColorFromTheme'](_0x448c6b['color']),_0x5e8fed[_0x378872(0x28a)](_0x1e68fd,_0x56a95a);}}),{'skeleton':_0x32524c,'cursors':_0x5e8fed};}));}return _0xb88308({'skeleton':null,'cursors':new Map()});}))[_0x47de50(0x2e3)](({skeleton:_0x4393e0,cursors:_0x4970c2})=>{this['_removeCollabCursors'](),_0x4393e0&&this['_updateCollabCursors'](_0x4393e0,_0x4970c2);}),this[_0x47de50(0x346)]['currentSkeleton$'][_0x47de50(0x2e3)](_0x456966=>{const _0x37ddcb=_0x47de50;if(_0x456966==null)return;const {skeleton:_0x53db23}=_0x456966,{scene:_0x59216b}=this[_0x37ddcb(0x1e1)];_0x59216b['onPointerMove$'][_0x37ddcb(0x207)](_0x1bd620(_0x6ffcc9=>{const _0xb186ab=_0x37ddcb;var _0x1c30b9,_0x9be7f7;const {offsetX:_0x4caa0f,offsetY:_0xadd559}=_0x6ffcc9,{x:_0x2759ee,y:_0x4eb513}=_0x59216b['getRelativeToViewportCoord'](_0x55a5a4[_0xb186ab(0x2d0)]([_0x4caa0f,_0xadd559])),{scaleX:_0x1c077e,scaleY:_0x59ad32}=_0x59216b[_0xb186ab(0x1c6)](),_0x4877e2=_0x59216b[_0xb186ab(0x327)](_0x1e67bb[_0xb186ab(0x285)]),_0x544f9c=_0x59216b[_0xb186ab(0x2e7)](_0x55a5a4[_0xb186ab(0x2d0)]([_0x2759ee,_0x4eb513]),_0x4877e2),_0xc37c35=_0x53db23[_0xb186ab(0x244)](_0x4caa0f,_0xadd559,_0x1c077e,_0x59ad32,_0x544f9c);((_0x1c30b9=this[_0xb186ab(0x2ea)])==null?void 0x0:_0x1c30b9[_0xb186ab(0x299)])===_0xc37c35[_0xb186ab(0x299)]&&((_0x9be7f7=this[_0xb186ab(0x2ea)])==null?void 0x0:_0x9be7f7[_0xb186ab(0x329)])===_0xc37c35[_0xb186ab(0x329)]||this['_cursors'][_0xb186ab(0x368)](_0x38c43d=>{const _0x5a7c82=_0xb186ab;_0x38c43d[_0x5a7c82(0x2c1)](_0xc37c35);});},0x64));});}['_updateCollabCursors'](_0x556f03,_0x5f4de6){const _0x1f4c04=_0xf9a763;var _0x5555dc;const _0x528e00=(_0x5555dc=this['_sheetSkeletonManagerService'][_0x1f4c04(0x30a)]())==null?void 0x0:_0x5555dc[_0x1f4c04(0x2ce)];if(!_0x528e00)return;const _0x310872=this[_0x1f4c04(0x20e)]();if(!_0x310872)return;this[_0x1f4c04(0x34e)][_0x1f4c04(0x368)](_0x289cec=>{const _0x1ff77f=_0x1f4c04;_0x289cec[_0x1ff77f(0x279)]();});const {scene:_0x1e9358}=_0x310872,_0x3e44fe=nn(Array['from'](_0x5f4de6['values']()))[_0x1f4c04(0x185)](_0x31a66a=>{const _0x4308b0=_0x1f4c04,{color:_0x393cd9,range:_0xefaeb7,name:_0x5ce2b8,selection:_0x5a20b3,sheetID:_0x1417cb}=_0x31a66a,{startColumn:_0x56b108,startRow:_0x2dbdc3,endColumn:_0x447696,endRow:_0x5a55e4}=_0xefaeb7,_0x5ac5e5=_0x467138(_0x2dbdc3,_0x56b108,_0x1e9358,_0x528e00),_0x13551d=_0x467138(_0x5a55e4,_0x447696,_0x1e9358,_0x528e00),{columnHeaderHeightAndMarginTop:_0x43fc69}=_0x528e00,{startX:_0x7085ab,startY:_0x410005}=_0x5ac5e5,{endX:_0x6c1e70,endY:_0x38f3da}=_0x13551d,_0x16295b=_0x6c1e70-_0x7085ab,_0x4626de=_0x38f3da-_0x410005,_0x3700a6={'labelPosition':_0x410005-_0x43fc69>=Q?'top':_0x4308b0(0x2ab),'sheetID':_0x1417cb,'range':_0xefaeb7,'color':_0x393cd9,'name':_0x5ce2b8,'selection':_0x5a20b3,'left':_0x7085ab,'top':_0x410005,'width':_0x16295b,'height':_0x4626de,'evented':!0x1,'zIndex':sn};return new qi(_0x5ce2b8,_0x3700a6);});_0x1e9358['addObjects'](_0x3e44fe,Zi),this[_0x1f4c04(0x34e)]=new Set(_0x3e44fe);}['_removeCollabCursors'](){const _0x3582a2=_0xf9a763;var _0x346000;(_0x346000=this[_0x3582a2(0x34e)])==null||_0x346000['forEach'](_0x44a5e4=>_0x44a5e4[_0x3582a2(0x231)]());}[_0xf9a763(0x20e)](){const _0x3ea3d9=_0xf9a763;return _0x2b59b1(this[_0x3ea3d9(0x1e1)][_0x3ea3d9(0x28d)],this[_0x3ea3d9(0x1e1)]);}};$e=tn([Ce(0x1,_0x13b860(_0x17c498)),Ce(0x2,_0x13b860(H)),Ce(0x3,_0x13b860(_0x5eaa14))],$e);function nn(_0x11203b){const _0x314617=_0xf9a763,_0x51519b=new Map();return _0x11203b['forEach'](_0x1088a6=>{const _0x4c4757=_0x37b4;if(_0x51519b[_0x4c4757(0x18d)](_0x1088a6[_0x4c4757(0x191)])){const _0x23cd0a=_0x51519b[_0x4c4757(0x385)](_0x1088a6[_0x4c4757(0x191)]);_0x23cd0a[_0x4c4757(0x237)]+=',\x20'+_0x1088a6[_0x4c4757(0x237)];}else _0x51519b[_0x4c4757(0x28a)](_0x1088a6[_0x4c4757(0x191)],_0x1088a6);}),Array['from'](_0x51519b[_0x314617(0x1f9)]());}var rn=Object[_0xf9a763(0x1b6)],on=(_0x14e269,_0x2f43bc,_0x59e8cb,_0x5390e7)=>{const _0x472988=_0xf9a763;for(var _0x45e82b=_0x5390e7>0x1?void 0x0:_0x5390e7?rn(_0x2f43bc,_0x59e8cb):_0x2f43bc,_0x54be7e=_0x14e269[_0x472988(0x281)]-0x1,_0x45e5a4;_0x54be7e>=0x0;_0x54be7e--)(_0x45e5a4=_0x14e269[_0x54be7e])&&(_0x45e82b=_0x45e5a4(_0x45e82b)||_0x45e82b);return _0x45e82b;},F=(_0x3bb217,_0x2d00e2)=>(_0x3e4c48,_0x1fbcab)=>_0x2d00e2(_0x3e4c48,_0x1fbcab,_0x3bb217);let ce=class extends _0x24d226{constructor(_0x5506e5,_0xc22bc8,_0x2fac5a,_0x52869c,_0x3e6611,_0x18d15b){const _0x2fa5db=_0xf9a763;super(),this[_0x2fa5db(0x1b8)]=_0x5506e5,this[_0x2fa5db(0x278)]=_0xc22bc8,this['_collaborationUIEventService']=_0x2fac5a,this[_0x2fa5db(0x2e4)]=_0x52869c,this['_notificationService']=_0x3e6611,this[_0x2fa5db(0x198)]=_0x18d15b,this[_0x2fa5db(0x306)](),this[_0x2fa5db(0x2bb)]();}[_0xf9a763(0x306)](){const _0x1f34ab=_0xf9a763;this[_0x1f34ab(0x288)](this[_0x1f34ab(0x1b8)][_0x1f34ab(0x169)](()=>{const _0x27eda6=_0x1f34ab;if(this['_localCacheService']['saveTaskMap']['size'])return this[_0x27eda6(0x198)]['t'](_0x27eda6(0x1c7));}));}[_0xf9a763(0x2bb)](){const _0x191300=_0xf9a763;this[_0x191300(0x288)](this[_0x191300(0x32f)][_0x191300(0x367)]['subscribe'](_0x189966=>{const _0x545adb=_0x191300;_0x189966['id']===_0x41c8fa[_0x545adb(0x379)]&&this[_0x545adb(0x2e4)][_0x545adb(0x2d4)]({'type':_0x1f05fe[_0x545adb(0x34a)],'content':this['_localeService']['t'](_0x545adb(0x2d9))}),_0x189966['id']===_0x41c8fa[_0x545adb(0x357)]&&this[_0x545adb(0x2e4)][_0x545adb(0x2d4)]({'type':_0x1f05fe[_0x545adb(0x34a)],'content':this['_localeService']['t'](_0x545adb(0x2a3))}),_0x189966['id']===_0x41c8fa[_0x545adb(0x1e0)]&&this[_0x545adb(0x2ae)]['show']({'title':this['_localeService']['t'](_0x545adb(0x1ad)),'content':this['_localeService']['t'](_0x545adb(0x25f)),'type':_0x545adb(0x25c),'duration':0x0}),_0x189966['id']===_0x41c8fa[_0x545adb(0x2b9)]&&this['_messageService'][_0x545adb(0x2d4)]({'type':_0x1f05fe[_0x545adb(0x1af)],'content':this[_0x545adb(0x198)]['t'](_0x545adb(0x2a3))+'('+_0x189966[_0x545adb(0x2cf)]+')'}),_0x189966['id']===_0x41c8fa[_0x545adb(0x16a)]&&this['_messageService'][_0x545adb(0x2d4)]({'type':_0x1f05fe[_0x545adb(0x34a)],'content':this[_0x545adb(0x198)]['t'](_0x189966['data']||'')}),_0x189966['id']===_0x41c8fa[_0x545adb(0x19f)]&&this[_0x545adb(0x2e4)]['show']({'type':_0x1f05fe[_0x545adb(0x34a)],'content':this['_localeService']['t'](_0x545adb(0x18e))}),_0x189966['id']===_0x41c8fa[_0x545adb(0x17f)]&&this[_0x545adb(0x2e4)][_0x545adb(0x2d4)]({'type':_0x1f05fe[_0x545adb(0x1af)],'content':this[_0x545adb(0x198)]['t'](_0x545adb(0x17b))}),_0x189966['id']===_0x41c8fa[_0x545adb(0x289)]&&this[_0x545adb(0x2e4)][_0x545adb(0x2d4)]({'type':_0x1f05fe[_0x545adb(0x1af)],'content':this['_localeService']['t'](_0x545adb(0x1b5))});}));}};ce=on([F(0x0,_0x38439e),F(0x1,_0x46424d),F(0x2,_0x13b860(_0x3e7632)),F(0x3,_0x23a8f3),F(0x4,_0x9b4314),F(0x5,_0x13b860(_0x3df0e3))],ce);const an=_0xf9a763(0x264),rt={};var cn=Object[_0xf9a763(0x1b6)],_n=(_0x1e4121,_0xdc7b1c,_0x4106be,_0x2e524e)=>{for(var _0x50c562=_0x2e524e>0x1?void 0x0:_0x2e524e?cn(_0xdc7b1c,_0x4106be):_0xdc7b1c,_0x68659c=_0x1e4121['length']-0x1,_0x15caf4;_0x68659c>=0x0;_0x68659c--)(_0x15caf4=_0x1e4121[_0x68659c])&&(_0x50c562=_0x15caf4(_0x50c562)||_0x50c562);return _0x50c562;},ot=(_0x471702,_0x492440)=>(_0x2426b0,_0x4b262a)=>_0x492440(_0x2426b0,_0x4b262a,_0x471702);let _e=class{constructor(_0xb962f8,_0x4ba8f6){this['_transformService']=_0xb962f8,this['_renderManagerService']=_0x4ba8f6;}[_0xf9a763(0x307)](_0xe127c6){const _0xd0d782=_0xf9a763;this[_0xd0d782(0x1fb)](_0xe127c6),this['_transformPreviousActiveRange'](_0xe127c6);}[_0xf9a763(0x266)](_0x465353){const _0x1636bc=_0xf9a763,{unitID:_0x83df0}=_0x465353,_0x466c0c=this[_0x1636bc(0x336)][_0x1636bc(0x1a7)](_0x83df0)['with'](_0x499864),{redoCache:_0x3bc58e}=_0x466c0c[_0x1636bc(0x347)]();if(_0x3bc58e['length']===0x0)return _0x465353;let _0x209f0f=_0x48201d['deepClone'](_0x465353['mutations'][0x0]);for(let _0x182444=0x0;_0x182444<_0x3bc58e[_0x1636bc(0x281)];_0x182444++){const _0x54e114={'id':_0x1636bc(0x26e),'params':{..._0x3bc58e[_0x182444]}},_0x39c59b=this[_0x1636bc(0x1d0)][_0x1636bc(0x2e8)](_0x209f0f,_0x54e114,!0x1);if(_0x1750d0(_0x39c59b))throw _0x39c59b[_0x1636bc(0x25c)];_0x209f0f=_0x39c59b['m1Prime'];}return{..._0x48201d['deepClone'](_0x465353),'mutations':[_0x209f0f]};}['_transformUndoRedoStack'](_0x133419){const _0xdbecef=_0xf9a763,{unitID:_0x3f6b67}=_0x133419,_0x1f659a=this[_0xdbecef(0x336)][_0xdbecef(0x1a7)](_0x3f6b67)[_0xdbecef(0x2fd)](_0x499864),{undoCache:_0x375014,redoCache:_0x26c864}=_0x1f659a[_0xdbecef(0x347)]();if(_0x375014['length']===0x0||_0x26c864[_0xdbecef(0x281)]===0x0)return;const _0x78c3e3=[],_0x21e9a3=[];let _0x5e18af=_0x48201d[_0xdbecef(0x2ec)](_0x133419[_0xdbecef(0x38c)][0x0]),_0x2571a7=_0x48201d[_0xdbecef(0x2ec)](_0x133419[_0xdbecef(0x38c)][0x0]);for(let _0x4c6962=_0x375014['length']-0x1;_0x4c6962>=0x0;_0x4c6962--){const _0x9aba7d={'id':_0xdbecef(0x26e),'params':{..._0x375014[_0x4c6962]}},_0x407e23={'id':'doc.mutation.rich-text-editing','params':{..._0x26c864[_0x4c6962]}},_0x547c8f=this[_0xdbecef(0x1d0)][_0xdbecef(0x2e8)](_0x5e18af,_0x9aba7d,!0x1),_0x537475=this['_transformService'][_0xdbecef(0x2e8)](_0x2571a7,_0x407e23,!0x1);if(_0x1750d0(_0x547c8f))throw _0x547c8f[_0xdbecef(0x25c)];if(_0x1750d0(_0x537475))throw _0x537475[_0xdbecef(0x25c)];_0x78c3e3['unshift'](_0x547c8f[_0xdbecef(0x222)][_0xdbecef(0x1a1)]),_0x21e9a3[_0xdbecef(0x1b0)](_0x537475['m2Prime'][_0xdbecef(0x1a1)]),_0x5e18af=_0x547c8f[_0xdbecef(0x188)],_0x2571a7=_0x537475[_0xdbecef(0x188)];}_0x1f659a[_0xdbecef(0x263)]({'undoCache':_0x78c3e3,'redoCache':_0x21e9a3});}['_transformPreviousActiveRange'](_0xccfdaa){const _0xa632ae=_0xf9a763,{unitID:_0x4397a9}=_0xccfdaa,_0x2164ed=this['_renderManagerService']['getRenderById'](_0x4397a9)[_0xa632ae(0x2fd)](_0x499864),_0x2eedcd=_0x2164ed[_0xa632ae(0x21b)]();if(_0x2eedcd==null)return;const _0x1465eb=[{'id':_0xa632ae(0x26e),'params':{'unitId':_0xccfdaa['unitID'],'actions':null,'textRanges':[_0x2eedcd]}}],_0x1a867d=this[_0xa632ae(0x1d0)][_0xa632ae(0x389)](_0xccfdaa,_0x1465eb);if(!_0x411cd4(_0x1a867d))throw _0x1a867d[_0xa632ae(0x25c)];const _0x56226a=_0x1a867d['m2Prime'][0x0][_0xa632ae(0x1a1)][_0xa632ae(0x28c)];Array[_0xa632ae(0x323)](_0x56226a)&&_0x56226a[_0xa632ae(0x281)]&&_0x2164ed[_0xa632ae(0x1da)](_0x56226a[0x0]);}};_e=_n([ot(0x0,_0x2c6489),ot(0x1,_0x3a82e4)],_e);var ln=Object[_0xf9a763(0x1b6)],hn=(_0x13154d,_0x5bafbd,_0x9d0fc5,_0xe21b75)=>{const _0x2ca1b2=_0xf9a763;for(var _0x219e9e=_0xe21b75>0x1?void 0x0:_0xe21b75?ln(_0x5bafbd,_0x9d0fc5):_0x5bafbd,_0x37ad05=_0x13154d[_0x2ca1b2(0x281)]-0x1,_0x5c6992;_0x37ad05>=0x0;_0x37ad05--)(_0x5c6992=_0x13154d[_0x37ad05])&&(_0x219e9e=_0x5c6992(_0x219e9e)||_0x219e9e);return _0x219e9e;},Re=(_0x5159e3,_0x4e4cc6)=>(_0x257ea4,_0x2aa976)=>_0x4e4cc6(_0x257ea4,_0x2aa976,_0x5159e3);let le=class{constructor(_0x19692f,_0x5898ec,_0x1ad140){const _0x60684=_0xf9a763;this[_0x60684(0x208)]=_0x19692f,this[_0x60684(0x1d0)]=_0x5898ec,this['_docStateChangeManagerService']=_0x1ad140;}[_0xf9a763(0x220)](_0x34f685){this['_transformHistoryAndStateStack'](_0x34f685);}[_0xf9a763(0x266)](_0x551a15){const _0x4aed90=_0xf9a763,{unitID:_0x479258}=_0x551a15,{collaboration:_0x48e650}=this[_0x4aed90(0x2f4)][_0x4aed90(0x349)](_0x479258);if(_0x48e650[_0x4aed90(0x281)]===0x0)return _0x551a15;let _0x46d31e=_0x48201d[_0x4aed90(0x2ec)](_0x551a15[_0x4aed90(0x38c)][0x0]);for(let _0x21b431=0x0;_0x21b431<_0x48e650['length'];_0x21b431++){const _0xd3db50={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x48e650[_0x21b431]['unitId'],..._0x48e650[_0x21b431][_0x4aed90(0x1d6)]}},_0x3d2c65=this[_0x4aed90(0x1d0)][_0x4aed90(0x2e8)](_0x46d31e,_0xd3db50,!0x1);if(_0x1750d0(_0x3d2c65))throw _0x3d2c65[_0x4aed90(0x25c)];_0x46d31e=_0x3d2c65[_0x4aed90(0x188)];}return{..._0x48201d[_0x4aed90(0x2ec)](_0x551a15),'mutations':[_0x46d31e]};}['_transformHistoryAndStateStack'](_0x2ea09b){const _0x100242=_0xf9a763,{unitID:_0x841d1d}=_0x2ea09b,{history:_0x50e340,collaboration:_0x4a9fa8}=this[_0x100242(0x2f4)][_0x100242(0x349)](_0x841d1d);if(_0x50e340[_0x100242(0x281)]===0x0&&_0x4a9fa8['length']===0x0)return;const _0x3b79a8=[],_0x91f1ad=[];let _0x2bf7f8=_0x48201d[_0x100242(0x2ec)](_0x2ea09b[_0x100242(0x38c)][0x0]),_0x46cd86=_0x48201d[_0x100242(0x2ec)](_0x2ea09b['mutations'][0x0]);for(let _0x42f53c=_0x50e340[_0x100242(0x281)]-0x1;_0x42f53c>=0x0;_0x42f53c--){const _0x5857a1={'id':_0x100242(0x26e),'params':{'unitId':_0x50e340[_0x42f53c][_0x100242(0x2bd)],..._0x50e340[_0x42f53c][_0x100242(0x18c)]}},_0x2cc147={'id':_0x100242(0x26e),'params':{'unitId':_0x50e340[_0x42f53c][_0x100242(0x2bd)],..._0x50e340[_0x42f53c][_0x100242(0x1d6)]}},_0x3960bf=this[_0x100242(0x1d0)][_0x100242(0x2e8)](_0x2bf7f8,_0x5857a1,!0x1),_0x2307d1=this[_0x100242(0x1d0)][_0x100242(0x2e8)](_0x46cd86,_0x2cc147,!0x1);if(_0x1750d0(_0x3960bf))throw _0x3960bf['error'];if(_0x1750d0(_0x2307d1))throw _0x2307d1[_0x100242(0x25c)];_0x3b79a8[_0x100242(0x1b0)]({..._0x50e340[_0x42f53c],'undoState':_0x3960bf[_0x100242(0x222)][_0x100242(0x1a1)],'redoState':_0x2307d1[_0x100242(0x222)][_0x100242(0x1a1)]}),_0x2bf7f8=_0x3960bf['m1Prime'],_0x46cd86=_0x2307d1['m1Prime'];}_0x2bf7f8=_0x48201d[_0x100242(0x2ec)](_0x2ea09b[_0x100242(0x38c)][0x0]),_0x46cd86=_0x48201d[_0x100242(0x2ec)](_0x2ea09b[_0x100242(0x38c)][0x0]);for(let _0x9d6ae3=_0x4a9fa8[_0x100242(0x281)]-0x1;_0x9d6ae3>=0x0;_0x9d6ae3--){const _0x3d1ec7={'id':_0x100242(0x26e),'params':{'unitId':_0x4a9fa8[_0x9d6ae3][_0x100242(0x2bd)],..._0x4a9fa8[_0x9d6ae3][_0x100242(0x18c)]}},_0x32514e={'id':_0x100242(0x26e),'params':{'unitId':_0x4a9fa8[_0x9d6ae3][_0x100242(0x2bd)],..._0x4a9fa8[_0x9d6ae3][_0x100242(0x1d6)]}},_0x4cd03c=this[_0x100242(0x1d0)][_0x100242(0x2e8)](_0x2bf7f8,_0x3d1ec7,!0x1),_0x1d07ae=this[_0x100242(0x1d0)][_0x100242(0x2e8)](_0x46cd86,_0x32514e,!0x1);if(_0x1750d0(_0x4cd03c))throw _0x4cd03c[_0x100242(0x25c)];if(_0x1750d0(_0x1d07ae))throw _0x1d07ae[_0x100242(0x25c)];_0x91f1ad['unshift']({..._0x4a9fa8[_0x9d6ae3],'undoState':_0x4cd03c[_0x100242(0x222)][_0x100242(0x1a1)],'redoState':_0x1d07ae['m2Prime']['params']}),_0x2bf7f8=_0x4cd03c['m1Prime'],_0x46cd86=_0x1d07ae[_0x100242(0x188)];}this[_0x100242(0x2f4)][_0x100242(0x252)](_0x841d1d,{'history':_0x3b79a8,'collaboration':_0x91f1ad});}};le=hn([Re(0x0,_0x13b860(_0x74797)),Re(0x1,_0x2c6489),Re(0x2,_0x13b860(_0x250f9a))],le);var un=Object[_0xf9a763(0x1b6)],dn=(_0x184239,_0x37943e,_0x49e1de,_0x47fa4f)=>{for(var _0x53c05e=_0x47fa4f>0x1?void 0x0:_0x47fa4f?un(_0x37943e,_0x49e1de):_0x37943e,_0x1f3923=_0x184239['length']-0x1,_0x2c3e69;_0x1f3923>=0x0;_0x1f3923--)(_0x2c3e69=_0x184239[_0x1f3923])&&(_0x53c05e=_0x2c3e69(_0x53c05e)||_0x53c05e);return _0x53c05e;},at=(_0x4f922c,_0x4b4503)=>(_0x23e7fa,_0x5aab3a)=>_0x4b4503(_0x23e7fa,_0x5aab3a,_0x4f922c);function _0x1492(){const _0x30fbbd=['skeleton','data','FromArray','getSheetBySheetId','_assignedColors','INVALID_INVITE_CODE','show','2rvzMgx','actions','_range','INVITE_CODE_HAS_BEEN_UES','collaboration.single-unit.warning','xlink:href','ranges','_maxFormulaLimit','AUTHORIZE_CODE_ILLEGAL','_createSocketURL','onRendered','YUUMI_AI_RUN_FAILED','DeleteRangeMoveLeftCommandId','stringify','subscribe','_messageService','collabStatus.syncing','href','getVpScrollXYInfoByPosToVp','transformMutation','top','_lastPointer','cursorInfo','deepClone','_toggleOnline','INVITE_CODE_REQUIRED','_onCursorUpdate','_unitStatus','executeCommand','USER_NOT_INVITED_CODE','_collabCursorState$','_docStateChangeManagerService','LICENSE_IMPORT_SIZE_EXCEEDED','getUnhiddenWorksheets','REDEMPTION_CODE_INACTIVE','fillText','url(#on-line-icon_clip0_910_349)','UPDATE_CURSOR','_configService','ACTIVE_UNIT_EVENT_CHANNEL','with','key','_localStorageService','collabStatus.notCollab','WECHAT_HAS_BEEN_BOUND','addEventListener','endRow','TEXT','entityInit$','_setupBeforeClosingHandler','transformIMECache','clipPath','INVITE_CODE_ALREADY_BOUND','getCurrent','restore','next','getUnit','toString','_hover','text','post','YUUMI_ALL_TABLES_IS_INVALID','_clearPolling','OTHER_CLIENTS_EDITING','_hasFormulaInDirtyRanges','LOGIN_TOKEN_PROCESSING_FAILED','evenodd','ALREADY_EXISTS','YUUMI_UNABLE_LOAD_URL','LOGIN_FAILED','154740TauWZG','1em','collab-text-range-','_drawTextRange','YUUMI_ASYNCIO_CANCELLED','_removeClearOtherTimer','searchParams','UNAUTHENTICATED','isArray','ERROR_AGAIN','startRow','getformulaLimitStatusUrl','getViewport','sheetID','row','startFormulaLimitUrl','EMAIL_HAS_BEEN_BOUND','_getMergeRange','docStateChange$','_scheduleHeartbeat','_collaborationUIEventService','CURRENT_STATUS_CANNOT_OPERATE','on-line-icon_clip0_910_349','location','_cachedData','InsertColCommandId','cursorInfo$','_renderManagerService','subunit','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_cursorInfo$','registerRenderModule','ENTITLE_DUP_SUBSCRIPTION','DATA_SOURCE_TOO_LARGE','split','REDEMPTION_CODE_HAS_BEEN_CREATED','stageInfo','history','_docClipboardService','[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','then','_handleHeartbeatEvent','_sheetSkeletonManagerService','getUndoRedoMutationParamsCache','url(#off-line-icon_clip0_910_343)','getStateCache','Warning','_initCommandExecutedListener','APPLY_REJECT','_document','_cursors','_roomMembers$','fill','min','_handleLeaveEvent','_anchor','size','getOffsetConfig','removeParam','CLOSE_ROOM','pushState','_name','startColumn','tag','M0\x200H16V16H0z','_checkAndWaitForCalculationPermission','clearInterval','_doCreateSocket','0\x200\x2016\x2016','_uiPartsService','unload','LICENSE_EXPORT_SIZE_EXCEEDED','off-line-icon_clip0_910_343','assignAColorForMemberID','_showGuardMessage','event$','forEach','registerRefRange','transform','defIds','source','collab-rect-range-','defs','_updateLocalCursor','jiqing.500','_labelPosition','getCurrentSelections','_updateURLWithCurrentState','lineTo','9110637EZazkG','_scheduleSaving','onPointerEnter$','collab-text-anchor-','OTHER_CLIENT_EDITING','triggerDblclick','_drawRectRange','_colorIndex','_backgroundColor','APPLY_REVISION_CONFILICT','_color','popstate','REDEMPTION_USER_REDEEM_TIMES_EXCEED','maxFormulaLimit','PENDING','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','get','_hideTimer','wsSessionTicketUrl','YUUMI_CONNECTOR_URL_NOT_FOUND','transformMutationsWithChangeset','loadUnit','transformSelections','mutations','REDEMPTION_USER_NOT_ELIGIBLE','ENSURE_SNAPSHOT_EXECUTION','SNAPSHOT_INVALID_SNAPSHOT','children','find','Unknown\x20user','newValue','_status$','LICENSE_MAX_UNITS_EXCEEDED','translate(.97)','START_CALCULATION','selections','_anchorDot','_send','INTERNAL_ERROR','/universer-api/license/formula/limit/done','_univerInstanceService','green.600','all','registerBeforeClose','JOIN_ROOM_FAILED','parse','height','onTransformChange$','font','_onCursorDelete','isActive','getValue','rgba(255,\x20255,\x20255,\x200.01)','getTypeOfUnitAdded$','limitInfo','getUnitId','_imageIoService','Failed','YUUMI_RATE_OVER_LIMIT','http://www.w3.org/2000/svg','_checkCalculationAvailable','session.connection-failed','urlChange$','SYNCED','assign','SOCKET_FAILED','_getSaveTimeout','_id','idSuffix','red.300','resize','map','body','path','m1Prime','runId','_colorAssignService','result','undoState','has','session.will-retry','_handleHover','ONLINE','selection','startsWith','search','_getAnchorBounding','_textBubble','/universer-api/license/formula/limit/status','_setFormulaLimitStatus','_localeService','132JkpMig','hide','_online','addObject','entries','_docTransformSelectionsService','SOCKET_FAILED_RETRY','_dataLoaderService','params','some','CHANGESET_REVISION_CONFILICT','_initResize','NOT_COLLAB','_registerDependencies','getRenderById','_docSkeletonManagerService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','OFFLINE','type','_updateSubUnitFromURLParams','permission.title','_themeService','Error','unshift','ENTITLE_NEED_BILLING_ADDRESS','fillRule','MOBILE_VERIFY_CODE_MISMATCH','_ensureSubject','session.collaboration-timeout','getOwnPropertyDescriptor','_pollingInterval','_beforeCloseService','collabCursorState$','enableLocalCache','RECT','onStarting','_shapes','?taskId=','setItem','_refreshCollabCursors','getCollabCursors$','includes','PAYMENT_CHANNEL_NOT_SUPPORT','_setupSubUnitSync','8uEbPto','getAncestorScale','collaboration-client.offline-data-not-saved','getCellMatrix','APPLY_DUPLICATED','SNAPSHOT_HAS_BEEN_REMOVED','string','UniverIcon','_eventUnsubscribe','USER_NOT_FOUND','_lastResponseTimestamp','_transformService','_releaseCalculationLimit','UNDEFINED','arc','toRgbString','createInstance','redoState','functionsExecutedState','_instanceService','exhaustSavingTask','setActiveRange','currentTheme$','replace','collab-client.tooltip.reconnect','_toggleOffline','_cursorShapes','PERMISSION_DENIED','_context','moveTo','drawWith','asObservable','focused$','_drawAnchor','sessionStatus$','width','delete','getSkeleton','getCurrentUnitForType','LICENSE_DISTRO_REJECTED','formula.calculation.started','APPLY_NON_SEQUENTIAL_REVISION','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getConfig','max','_docTransformStateCacheService','/run/','dispose$','_syncEditingCollabCursorService','now','_unitOnClients','TOO_MANY_REQUESTS','values','_draw','_transformUndoRedoStack','addHandlerCallback','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_collaborationController','flatMap','eventID','_initStatusComponent','storage','InsertRangeMoveDownCommandId','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_entities','endColumn','subscribeEvent','_injector','use','_collabSessionService','REDEMPTION_CODE_FULLY_REDEEMED','_init','getMember','_getSheetObject','_getSessionTicket','invokeId','getSheetId','_currentUsage','_cursor','_handleEvent','YUUMI_NO_CUBOID_FOR_QUESTION','_logService','debug','Loading','NO_OTHER_CLIENTS_EDITING','CONNECTOR_DATA_TOO_LARGE','getActiveRange','RemoveColCommandId','OnLineIcon','HEADER_MENU','_clearOtherTimers','transformStateCache','range','m2Prime','#FFF','NOT_FOUND','YUUMI_TABLE_NOT_FOUND_IN_UNIT','displayName','_initStatusListener','parseInt','...','url(#$1','trim','replaceDocRanges','UNRECOGNIZED','createSocket','saveImage','FETCH_MISS','dispose','ENTITLE_CHAT_LIMIT_EXCEED','USER_IS_ANONYMOUS','REDEMPTION_CODE_NOT_STARTED','_hovered','_config','name','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','replaceState','svg','unsubscribe','roomMembers$','_applyCommand','transformByState','add','EMAIL_VERIFY_CODE_MISMATCH','getTypeOfUnitDisposed$','measureText','formula.calculation.unable','getCellPositionByOffset','PY_RUNTIME_SCRIPT_ERROR','_selfUnitIDs','MUTATION','labelPosition','defineProperty','INVALID_ARGUMENT','pipe','colorChannel1','REDEMPTION_INVALID_CODE','InsertRangeMoveRightCommandId','_commandService','complete','fillStyle','setStateCache','35yapWzC','_initCommandInterceptor','ticket','status$','findNodePositionByCharIndex','collabStatus.offline','onLocalMutation','setParam','getRangePointData','error','_startSheetCollabCursor','disableLocalCache','permission.content','symbol','saveTaskMap','save','setUndoRedoMutationParamsCache','collaboration-client-ui.config','univerjs-icon\x20univerjs-icon-','transformRemoteChangeset','unitID','dirtyRanges','white','_removeCollabCursors','_saveTaskMap','contains','_httpService','doc.mutation.rich-text-editing','UNIVER_SHEET','APPLY_PERMISSION_DENIED','currentSkeleton$','color','_initEntityListener','_getFormulaLimitStatus','getFocusedUnit','getActiveSheet','reconnect','_localCacheService','makeDirty','stage','_render','OffLineIcon','_disabled','application/json','code','getMemberID','length','YUUMI_SUBSCRIPTION_NOT_FOUND','send','7316960eitWSg','VIEW_MAIN','syncEditingCollabCursor','_startCalculationLimit','disposeWithMe','SUBMIT_CHANGESET_TIMEOUT','set','setShapeProps','textRanges','unit','USERS_LEAVE','ENTITLE_INSUFFICIENT_QUOTA','origin','none','collabStatus.conflict','setAlpha','executionId','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','AWAITING','_memberService','9536720YgmUwL','column','random','838986bdgDlx','substring','_entityInit$','from','attrs','_onRefRangeChange','black','mask','collaboration.closeRoom','_taskIds','requireSession','_startDocCollabCursor','currentColor','_scene','onCommandExecuted','YUUMI_URL_COL_OUT_OF_RANGE','bottom','AWAITING_WITH_PENDING','clearTimeout','_notificationService','push','_docSyncEditingCollabCursorService','getParam','roomMembers','init','MOBILE_HAS_BEEN_BOUND','round','sheetId','1717659AxXzNb','_scheduleClearOtherTimer','CONFLICT','_refRangeService','_initEvent','_session','unitId','purple.300','_docTransformIMECacheService','_saveCache','onMouseMove','div','setConfig','_initDependencies','133918kvgFne','Success','MoveRangeCommandId','_heartbeatTimer','_revisionService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_urlService','_collabCursorController','_updateCollabCursors'];_0x1492=function(){return _0x30fbbd;};return _0x1492();}let he=class{constructor(_0x452cac,_0x3b566d){const _0x13d549=_0xf9a763;this[_0x13d549(0x208)]=_0x452cac,this[_0x13d549(0x1d0)]=_0x3b566d;}['transformSelections'](_0x5bff76){const _0x41b536=_0xf9a763;var _0xd9b042;const _0x12128f=this[_0x41b536(0x208)]['get'](_0x43ba90),_0x1a3dee=(_0xd9b042=_0x12128f['getDocRanges']())!=null?_0xd9b042:[];if(_0x1a3dee[_0x41b536(0x281)]===0x0)return;const _0x3ef227=_0x5bff76[_0x41b536(0x267)],_0xfe2f32=[{'id':_0x41b536(0x26e),'params':{'unitId':_0x3ef227,'actions':null,'textRanges':_0x1a3dee}}],_0x18726d=this[_0x41b536(0x1d0)]['transformMutationsWithChangeset'](_0x5bff76,_0xfe2f32);if(!_0x411cd4(_0x18726d))throw _0x18726d[_0x41b536(0x25c)];const _0x21bacf=_0x18726d[_0x41b536(0x222)][0x0][_0x41b536(0x1a1)][_0x41b536(0x28c)];Array[_0x41b536(0x323)](_0x21bacf)&&_0x21bacf[_0x41b536(0x281)]&&_0x12128f[_0x41b536(0x22c)](_0x21bacf,{'unitId':_0x3ef227,'subUnitId':_0x3ef227},!0x1);}};he=dn([at(0x0,_0x13b860(_0x74797)),at(0x1,_0x2c6489)],he);var Sn=Object[_0xf9a763(0x1b6)],In=(_0x52cb0a,_0xef941a,_0x37e7ef,_0x3dfe8b)=>{for(var _0x259492=_0x3dfe8b>0x1?void 0x0:_0x3dfe8b?Sn(_0xef941a,_0x37e7ef):_0xef941a,_0x1d3348=_0x52cb0a['length']-0x1,_0x3db6c4;_0x1d3348>=0x0;_0x1d3348--)(_0x3db6c4=_0x52cb0a[_0x1d3348])&&(_0x259492=_0x3db6c4(_0x259492)||_0x259492);return _0x259492;},b=(_0x554c10,_0x5a5ac0)=>(_0x1eddbf,_0x4e0043)=>_0x5a5ac0(_0x1eddbf,_0x4e0043,_0x554c10);let ue=class extends _0x24d226{constructor(_0x1df0b9,_0x1eb657,_0xa175a9,_0x4fa872,_0x22dc8d,_0x172e94,_0x3e8c54,_0x6d00f8){const _0x32b87b=_0xf9a763;super(),l(this,_0x32b87b(0x394),new _0x1d1ed3(_0x4f810a[_0x32b87b(0x1a5)])),(this[_0x32b87b(0x2f4)]=_0x1df0b9,this[_0x32b87b(0x1fe)]=_0x1eb657,this[_0x32b87b(0x2bf)]=_0xa175a9,this['_docTransformStateCacheService']=_0x4fa872,this[_0x32b87b(0x19e)]=_0x22dc8d,this[_0x32b87b(0x2b0)]=_0x172e94,this['_messageService']=_0x3e8c54,this['_localeService']=_0x6d00f8,this[_0x32b87b(0x273)]());}[_0xf9a763(0x273)](){const _0x53a17b=_0xf9a763;this['disposeWithMe'](this[_0x53a17b(0x1fe)][_0x53a17b(0x305)][_0x53a17b(0x2e3)](_0x36a56e=>{const _0x11932d=_0x53a17b,_0xde144a=this[_0x11932d(0x2f4)][_0x11932d(0x32d)][_0x11932d(0x2e3)](_0x33f3e0=>{const _0x24d25d=_0x11932d;if(_0x33f3e0==null)return;const {unitId:_0xb293d6,redoState:_0x225f09,commandId:_0x4077f6}=_0x33f3e0;if(_0xb293d6!==_0x36a56e[_0x24d25d(0x267)])return;const _0x1b7049={'id':_0x4077f6,'type':_0x39ebd3[_0x24d25d(0x247)],'params':{'unitId':_0xb293d6,'actions':_0x225f09[_0x24d25d(0x2d6)],'textRanges':null}};_0x36a56e[_0x24d25d(0x259)](_0x1b7049);});if(_0x36a56e[_0x11932d(0x288)](_0xde144a),_0x36a56e instanceof _0x24698d){const _0x38651c={'onTransformIME':_0x2f66be=>this['_docTransformIMECacheService'][_0x11932d(0x307)](_0x2f66be),'onTransformState':_0x12195c=>this[_0x11932d(0x1f2)][_0x11932d(0x220)](_0x12195c),'onTransformSelections':_0x37e118=>this[_0x11932d(0x19e)][_0x11932d(0x38b)](_0x37e118),'onSyncEditingCollabCursor':_0xda895b=>this['_docSyncEditingCollabCursorService'][_0x11932d(0x286)](_0xda895b),'onTransformRemoteChangesetByIMECache':_0x522987=>this['_docTransformIMECacheService'][_0x11932d(0x266)](_0x522987),'onTransformRemoteChangesetByStateCache':_0x5a7f04=>this[_0x11932d(0x1f2)]['transformRemoteChangeset'](_0x5a7f04)};_0x36a56e[_0x11932d(0x1fc)](_0x38651c);}}));}};ue=In([b(0x0,_0x13b860(_0x250f9a)),b(0x1,_0x13b860(_0x1cd5da)),b(0x2,_0x13b860(_e)),b(0x3,_0x13b860(le)),b(0x4,_0x13b860(he)),b(0x5,_0x13b860(Xe)),b(0x6,_0x23a8f3),b(0x7,_0x13b860(_0x3df0e3))],ue);var Z=(_0x20dd0c=>(_0x20dd0c[_0x20dd0c[_0xf9a763(0x1d2)]=0x0]='UNDEFINED',_0x20dd0c[_0x20dd0c['OK']=0x1]='OK',_0x20dd0c[_0x20dd0c[_0xf9a763(0x164)]=0x2]=_0xf9a763(0x164),_0x20dd0c[_0x20dd0c[_0xf9a763(0x1e0)]=0x3]=_0xf9a763(0x1e0),_0x20dd0c[_0x20dd0c[_0xf9a763(0x224)]=0x4]=_0xf9a763(0x224),_0x20dd0c[_0x20dd0c[_0xf9a763(0x322)]=0x5]=_0xf9a763(0x322),_0x20dd0c[_0x20dd0c[_0xf9a763(0x318)]=0x6]=_0xf9a763(0x318),_0x20dd0c[_0x20dd0c[_0xf9a763(0x24a)]=0x7]='INVALID_ARGUMENT',_0x20dd0c[_0x20dd0c[_0xf9a763(0x1f8)]=0x8]=_0xf9a763(0x1f8),_0x20dd0c[_0x20dd0c['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x20dd0c[_0x20dd0c[_0xf9a763(0x31a)]=0xa]=_0xf9a763(0x31a),_0x20dd0c[_0x20dd0c['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0xf9a763(0x1b3),_0x20dd0c[_0x20dd0c[_0xf9a763(0x1ef)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x20dd0c[_0x20dd0c[_0xf9a763(0x240)]=0xd]=_0xf9a763(0x240),_0x20dd0c[_0x20dd0c['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0xf9a763(0x338),_0x20dd0c[_0x20dd0c[_0xf9a763(0x2dd)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x20dd0c[_0x20dd0c[_0xf9a763(0x316)]=0x10]=_0xf9a763(0x316),_0x20dd0c[_0x20dd0c[_0xf9a763(0x330)]=0x64]=_0xf9a763(0x330),_0x20dd0c[_0x20dd0c[_0xf9a763(0x324)]=0x65]=_0xf9a763(0x324),_0x20dd0c[_0x20dd0c[_0xf9a763(0x1ce)]=0xc9]=_0xf9a763(0x1ce),_0x20dd0c[_0x20dd0c[_0xf9a763(0x233)]=0xca]=_0xf9a763(0x233),_0x20dd0c[_0x20dd0c[_0xf9a763(0x1a3)]=0x1389]=_0xf9a763(0x1a3),_0x20dd0c[_0x20dd0c['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0xf9a763(0x38f),_0x20dd0c[_0x20dd0c[_0xf9a763(0x1ca)]=0x1772]=_0xf9a763(0x1ca),_0x20dd0c[_0x20dd0c[_0xf9a763(0x38e)]=0x1773]=_0xf9a763(0x38e),_0x20dd0c[_0x20dd0c[_0xf9a763(0x34c)]=0x1b59]=_0xf9a763(0x34c),_0x20dd0c[_0x20dd0c[_0xf9a763(0x1ee)]=0x1b5a]=_0xf9a763(0x1ee),_0x20dd0c[_0x20dd0c['APPLY_REVISION_CONFILICT']=0x1b5b]=_0xf9a763(0x37e),_0x20dd0c[_0x20dd0c[_0xf9a763(0x270)]=0x1b5c]=_0xf9a763(0x270),_0x20dd0c[_0x20dd0c['APPLY_DUPLICATED']=0x1b5d]=_0xf9a763(0x1c9),_0x20dd0c[_0x20dd0c[_0xf9a763(0x21a)]=0x1f41]=_0xf9a763(0x21a),_0x20dd0c[_0x20dd0c[_0xf9a763(0x395)]=0x2329]=_0xf9a763(0x395),_0x20dd0c[_0x20dd0c[_0xf9a763(0x238)]=0x232a]=_0xf9a763(0x238),_0x20dd0c[_0x20dd0c['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0xf9a763(0x2f5),_0x20dd0c[_0x20dd0c[_0xf9a763(0x363)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x20dd0c[_0x20dd0c[_0xf9a763(0x1ec)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x20dd0c[_0x20dd0c[_0xf9a763(0x319)]=0x2711]=_0xf9a763(0x319),_0x20dd0c[_0x20dd0c[_0xf9a763(0x2aa)]=0x2712]=_0xf9a763(0x2aa),_0x20dd0c[_0x20dd0c[_0xf9a763(0x178)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x20dd0c[_0x20dd0c[_0xf9a763(0x282)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x20dd0c[_0x20dd0c[_0xf9a763(0x215)]=0x271a]=_0xf9a763(0x215),_0x20dd0c[_0x20dd0c[_0xf9a763(0x31f)]=0x271b]=_0xf9a763(0x31f),_0x20dd0c[_0x20dd0c[_0xf9a763(0x225)]=0x271c]=_0xf9a763(0x225),_0x20dd0c[_0x20dd0c[_0xf9a763(0x312)]=0x271d]=_0xf9a763(0x312),_0x20dd0c[_0x20dd0c[_0xf9a763(0x295)]=0x271e]=_0xf9a763(0x295),_0x20dd0c[_0x20dd0c['YUUMI_AI_RUN_FAILED']=0x271f]=_0xf9a763(0x2e0),_0x20dd0c[_0x20dd0c[_0xf9a763(0x388)]=0x2720]=_0xf9a763(0x388),_0x20dd0c[_0x20dd0c['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0xf9a763(0x245),_0x20dd0c[_0x20dd0c[_0xf9a763(0x2d8)]=0x2ee1]=_0xf9a763(0x2d8),_0x20dd0c[_0x20dd0c[_0xf9a763(0x2d3)]=0x2ee2]='INVALID_INVITE_CODE',_0x20dd0c[_0x20dd0c[_0xf9a763(0x2ee)]=0x2ee3]=_0xf9a763(0x2ee),_0x20dd0c[_0x20dd0c[_0xf9a763(0x2f2)]=0x2ee4]=_0xf9a763(0x2f2),_0x20dd0c[_0x20dd0c[_0xf9a763(0x309)]=0x2ee5]=_0xf9a763(0x309),_0x20dd0c[_0x20dd0c[_0xf9a763(0x301)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x20dd0c[_0x20dd0c[_0xf9a763(0x2b4)]=0x32ca]=_0xf9a763(0x2b4),_0x20dd0c[_0x20dd0c[_0xf9a763(0x32b)]=0x32cb]=_0xf9a763(0x32b),_0x20dd0c[_0x20dd0c['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x20dd0c[_0x20dd0c['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]=_0xf9a763(0x204),_0x20dd0c[_0x20dd0c[_0xf9a763(0x33b)]=0x36b3]=_0xf9a763(0x33b),_0x20dd0c[_0x20dd0c[_0xf9a763(0x1c3)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x20dd0c[_0x20dd0c[_0xf9a763(0x232)]=0x3715]=_0xf9a763(0x232),_0x20dd0c[_0x20dd0c['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x20dd0c[_0x20dd0c['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0xf9a763(0x28f),_0x20dd0c[_0x20dd0c[_0xf9a763(0x1b1)]=0x37dd]=_0xf9a763(0x1b1),_0x20dd0c[_0x20dd0c[_0xf9a763(0x24d)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x20dd0c[_0x20dd0c[_0xf9a763(0x2f7)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x20dd0c[_0x20dd0c['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0xf9a763(0x20b),_0x20dd0c[_0x20dd0c[_0xf9a763(0x234)]=0x3a9c]=_0xf9a763(0x234),_0x20dd0c[_0x20dd0c[_0xf9a763(0x38d)]=0x3a9d]=_0xf9a763(0x38d),_0x20dd0c[_0x20dd0c[_0xf9a763(0x381)]=0x3a9e]=_0xf9a763(0x381),_0x20dd0c[_0x20dd0c['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0xf9a763(0x33e),_0x20dd0c[_0x20dd0c[_0xf9a763(0x33c)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x20dd0c[_0x20dd0c[_0xf9a763(0x22d)]=-0x1]='UNRECOGNIZED',_0x20dd0c))(Z||{});function mn(_0x1422ab){const _0x27a3a3=_0xf9a763;var _0x148380,_0x32e6fe;const _0x1712c0=(_0x148380=_0x1422ab[_0x27a3a3(0x33f)])==null?void 0x0:_0x148380[_0x27a3a3(0x27a)],_0x541367=((_0x32e6fe=_0x1422ab[_0x27a3a3(0x33f)])==null?void 0x0:_0x32e6fe['totalFormulasToCalculate'])||0x0;return _0x1712c0===_0x3f8220[_0x27a3a3(0x397)]&&_0x541367>0x0;}function fn(_0x57d87f){const _0x19495f=_0xf9a763;return _0x57d87f[_0x19495f(0x1d7)]===_0x5b1bbb['SUCCESS'];}var gn=Object[_0xf9a763(0x1b6)],vn=(_0x294164,_0x471735,_0x119158,_0x4c7a9d)=>{const _0x14b096=_0xf9a763;for(var _0x130683=_0x4c7a9d>0x1?void 0x0:_0x4c7a9d?gn(_0x471735,_0x119158):_0x471735,_0x1a4930=_0x294164[_0x14b096(0x281)]-0x1,_0x5a98e6;_0x1a4930>=0x0;_0x1a4930--)(_0x5a98e6=_0x294164[_0x1a4930])&&(_0x130683=_0x5a98e6(_0x130683)||_0x130683);return _0x130683;},P=(_0x5a4cc1,_0x59bf87)=>(_0x30e486,_0xfc2358)=>_0x59bf87(_0x30e486,_0xfc2358,_0x5a4cc1);const En=_0xf9a763(0x196),pn='/universer-api/license/formula/limit/start',On=_0xf9a763(0x165);let de=class extends _0x24d226{constructor(_0x27d6d7,_0x39b3a8,_0x552eeb,_0xaabdb0,_0x545811,_0x1d92aa,_0x58e04c){const _0x2d419c=_0xf9a763;super(),l(this,'_pollingInterval',null),l(this,_0x2d419c(0x2dc),0x0),l(this,_0x2d419c(0x212),0x0),l(this,'_taskIds',[]),l(this,'_lastResponseTimestamp',0x0),(this[_0x2d419c(0x2e4)]=_0x27d6d7,this[_0x2d419c(0x24f)]=_0x39b3a8,this[_0x2d419c(0x2fb)]=_0x552eeb,this['_httpService']=_0xaabdb0,this['_univerInstanceService']=_0x545811,this[_0x2d419c(0x216)]=_0x1d92aa,this[_0x2d419c(0x198)]=_0x58e04c,this[_0x2d419c(0x254)]());}[_0xf9a763(0x254)](){const _0x1b91d8=_0xf9a763;this[_0x1b91d8(0x288)](this[_0x1b91d8(0x24f)]['beforeCommandExecuted']((_0x24657c,_0x124f23)=>{const _0xb2c9c=_0x1b91d8;var _0x5ac6fe;if(_0x24657c['id']!==_0x4bd2e4['id'])return;const _0x441c6f=_0x24657c['params'];if(!this[_0xb2c9c(0x315)]((_0x5ac6fe=_0x441c6f[_0xb2c9c(0x268)])!=null?_0x5ac6fe:[]))return;if(!this['_checkCalculationAvailable']())throw this['_checkAndWaitForCalculationPermission'](_0x24657c,_0x124f23),this[_0xb2c9c(0x366)](),new _0xeb8af1();})),this['disposeWithMe'](this[_0x1b91d8(0x24f)][_0x1b91d8(0x2a9)]((_0x285e4c,_0x4874de)=>{const _0x29697a=_0x1b91d8;if(_0x285e4c['id']!==_0x14d664['id'])return;const _0x45ff9c=_0x285e4c[_0x29697a(0x1a1)];if(mn(_0x45ff9c)){const _0x2fa7de=_0x3af150();this[_0x29697a(0x2a4)]['push'](_0x2fa7de),this[_0x29697a(0x287)](_0x2fa7de);}else{if(fn(_0x45ff9c)&&this[_0x29697a(0x2a4)][_0x29697a(0x281)]>0x0){const _0x304f25=this[_0x29697a(0x2a4)]['shift']();this[_0x29697a(0x1d1)](_0x304f25);}}}));}[_0xf9a763(0x231)](){const _0x2410d4=_0xf9a763;super['dispose'](),this[_0x2410d4(0x313)](),this[_0x2410d4(0x2a4)]=[],this[_0x2410d4(0x212)]=0x0,this['_maxFormulaLimit']=0x0,this['_lastResponseTimestamp']=0x0;}async[_0xf9a763(0x35d)](_0x13df9f,_0x401fbf){const _0x17e6d6=_0xf9a763;for(let _0x29d33d=0x0;_0x29d33d<0x1e;_0x29d33d++)try{if(await this[_0x17e6d6(0x274)](),this[_0x17e6d6(0x17a)]()){this[_0x17e6d6(0x23d)](_0x13df9f,_0x401fbf),this[_0x17e6d6(0x2e4)][_0x17e6d6(0x2d4)]({'content':this[_0x17e6d6(0x198)]['t'](_0x17e6d6(0x1ed)),'type':_0x1f05fe[_0x17e6d6(0x2c6)]});return;}await new Promise(_0x1c067d=>{const _0x4ec02b=_0x17e6d6;this[_0x4ec02b(0x1b7)]=window['setTimeout'](_0x1c067d,0x3e8);});}catch(_0x181ac7){this[_0x17e6d6(0x216)][_0x17e6d6(0x25c)](_0x181ac7);}this[_0x17e6d6(0x2e4)][_0x17e6d6(0x2d4)]({'content':this[_0x17e6d6(0x198)]['t'](_0x17e6d6(0x243)),'type':_0x1f05fe[_0x17e6d6(0x1af)]});}[_0xf9a763(0x23d)](_0x28755e,_0x57bd6b){const _0x42fedd=_0xf9a763;try{this[_0x42fedd(0x24f)][_0x42fedd(0x2f1)](_0x28755e['id'],_0x28755e[_0x42fedd(0x1a1)],_0x57bd6b);}catch(_0x52586d){this['_logService'][_0x42fedd(0x25c)](_0x52586d);}}[_0xf9a763(0x197)](_0x51ea55,_0x2d9964){const _0x189680=_0xf9a763;_0x2d9964<this[_0x189680(0x1cf)]||(this[_0x189680(0x1cf)]=_0x2d9964,this[_0x189680(0x2dc)]=Number['parseInt'](_0x51ea55[_0x189680(0x382)]),this['_currentUsage']=Number[_0x189680(0x228)](_0x51ea55['currentUsage']));}async[_0xf9a763(0x287)](_0x2f5ce5){const _0x264f54=_0xf9a763;var _0x4c103c,_0x2c6308;const _0x59bef7=Date[_0x264f54(0x1f6)]();try{const _0x5d6f20=((_0x4c103c=this[_0x264f54(0x2fb)][_0x264f54(0x1f0)](_0x52057d))==null?void 0x0:_0x4c103c[_0x264f54(0x32a)])||pn,_0x431949=(await this[_0x264f54(0x26d)]['post'](_0x5d6f20,{'body':JSON[_0x264f54(0x2e2)]({'taskId':_0x2f5ce5})}))[_0x264f54(0x186)];if(((_0x2c6308=_0x431949[_0x264f54(0x25c)])==null?void 0x0:_0x2c6308[_0x264f54(0x27f)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x431949['limitInfo'],_0x59bef7);}catch(_0x40e964){this[_0x264f54(0x216)][_0x264f54(0x25c)](_0x40e964);}}async['_getFormulaLimitStatus'](_0x1e0a64){const _0x328510=_0xf9a763;var _0x40fdff,_0xd20b8f;const _0x2b7cf3=Date['now']();try{const _0x250d13=((_0x40fdff=this['_configService'][_0x328510(0x1f0)](_0x52057d))==null?void 0x0:_0x40fdff[_0x328510(0x326)])||En,_0x592a9f=_0x1e0a64?_0x250d13+_0x328510(0x1be)+encodeURIComponent(_0x1e0a64):_0x250d13,_0x3bb5e4=(await this['_httpService'][_0x328510(0x385)](_0x592a9f))[_0x328510(0x186)];if(((_0xd20b8f=_0x3bb5e4[_0x328510(0x25c)])==null?void 0x0:_0xd20b8f[_0x328510(0x27f)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x3bb5e4['limitInfo'],_0x2b7cf3);}catch(_0x1b9ffc){this[_0x328510(0x216)]['error'](_0x1b9ffc);}}async[_0xf9a763(0x1d1)](_0x22dbc5){const _0x3b14ae=_0xf9a763;var _0x1f57b7,_0x3e9e16;const _0x4c30ff=Date[_0x3b14ae(0x1f6)]();try{const _0x47d8a9=((_0x1f57b7=this[_0x3b14ae(0x2fb)][_0x3b14ae(0x1f0)](_0x52057d))==null?void 0x0:_0x1f57b7['releaseFormulaLimitUrl'])||On,_0x5e95ec=(await this['_httpService'][_0x3b14ae(0x311)](_0x47d8a9,{'body':JSON[_0x3b14ae(0x2e2)]({'taskId':_0x22dbc5})}))[_0x3b14ae(0x186)];if(((_0x3e9e16=_0x5e95ec['error'])==null?void 0x0:_0x3e9e16[_0x3b14ae(0x27f)])!==Z['OK'])return;this[_0x3b14ae(0x197)](_0x5e95ec[_0x3b14ae(0x174)],_0x4c30ff);}catch(_0x40ccb9){this[_0x3b14ae(0x216)][_0x3b14ae(0x25c)](_0x40ccb9);}}[_0xf9a763(0x17a)](){const _0x4ae024=_0xf9a763;return this[_0x4ae024(0x2dc)]===0x0?!0x0:this[_0x4ae024(0x2dc)]-this[_0x4ae024(0x212)]>0x0;}['_clearPolling'](){const _0x5bf10=_0xf9a763;this[_0x5bf10(0x1b7)]&&(clearTimeout(this[_0x5bf10(0x1b7)]),this[_0x5bf10(0x1b7)]=null);}[_0xf9a763(0x366)](){const _0x417fa7=_0xf9a763;this[_0x417fa7(0x2e4)][_0x417fa7(0x2d4)]({'content':this[_0x417fa7(0x198)]['t']('formula.calculation.waiting'),'type':_0x1f05fe[_0x417fa7(0x218)]});}[_0xf9a763(0x315)](_0x129c91){const _0x55440b=_0xf9a763;for(const _0xec527 of _0x129c91){const {unitId:_0xbcf8b3,sheetId:_0xfdf690,range:_0x281343}=_0xec527,_0x39850c=this[_0x55440b(0x166)][_0x55440b(0x30d)](_0xbcf8b3);if(!_0x39850c)continue;const _0x5e8b9f=_0x39850c[_0x55440b(0x2d1)](_0xfdf690);if(!_0x5e8b9f)continue;const _0xd32b92=_0x5e8b9f[_0x55440b(0x1c8)]();for(let _0x108d51=_0x281343[_0x55440b(0x325)];_0x108d51<=_0x281343[_0x55440b(0x303)];_0x108d51++)for(let _0xca730=_0x281343[_0x55440b(0x35a)];_0xca730<=_0x281343['endColumn'];_0xca730++){const _0x5b6067=_0xd32b92[_0x55440b(0x171)](_0x108d51,_0xca730);if(_0x5b6067&&(_0xc80bfe(_0x5b6067['f'])||_0x45ea24(_0x5b6067['si'])))return!0x0;}}return!0x1;}};de=vn([P(0x0,_0x13b860(_0x23a8f3)),P(0x1,_0x2584e9),P(0x2,_0x32bcf4),P(0x3,_0x13b860(_0x371f2f)),P(0x4,_0xb83e3b),P(0x5,_0xf37675),P(0x6,_0x13b860(_0x3df0e3))],de);var Tn=Object[_0xf9a763(0x1b6)],Cn=(_0x521642,_0x581b65,_0x29fdd1,_0x4903f1)=>{for(var _0x831b34=_0x4903f1>0x1?void 0x0:_0x4903f1?Tn(_0x581b65,_0x29fdd1):_0x581b65,_0x18dfc2=_0x521642['length']-0x1,_0x5bdbd5;_0x18dfc2>=0x0;_0x18dfc2--)(_0x5bdbd5=_0x521642[_0x18dfc2])&&(_0x831b34=_0x5bdbd5(_0x831b34)||_0x831b34);return _0x831b34;},De=(_0x1e5d17,_0x9b057e)=>(_0x33f42e,_0x39db0b)=>_0x9b057e(_0x33f42e,_0x39db0b,_0x1e5d17);let xe=class extends _0x24d226{constructor(_0x25e9ec,_0x86066,_0x3f79fe){const _0x4f8a10=_0xf9a763;super(),l(this,_0x4f8a10(0x333),new Map()),l(this,_0x4f8a10(0x26b),new Map()),l(this,_0x4f8a10(0x27d),!0x1),(this['_configService']=_0x25e9ec,this['_localStorageService']=_0x86066,this['_revisionService']=_0x3f79fe);}[_0xf9a763(0x25e)](){const _0x4289a9=_0xf9a763;this[_0x4289a9(0x27d)]=!0x0;}[_0xf9a763(0x1ba)](){const _0x261325=_0xf9a763;this[_0x261325(0x27d)]=!0x1;}get[_0xf9a763(0x261)](){const _0x482b37=_0xf9a763;return this[_0x482b37(0x26b)];}[_0xf9a763(0x231)](){const _0x39f74b=_0xf9a763;this['exhaustSavingTask']()['then'](()=>super[_0x39f74b(0x231)]());}async['loadOfflineData'](_0x4b46eb){const _0x233dd8=_0xf9a763;return this[_0x233dd8(0x27d)]?null:this[_0x233dd8(0x2ff)]['getItem'](_0x28239d(_0x4b46eb));}async['saveOfflineData'](_0x2dcdce,_0x5a8c0d){const _0x15cfe4=_0xf9a763;return!!this['_localStorageService'][_0x15cfe4(0x1bf)](_0x2dcdce,_0x5a8c0d);}['updateOfflineData'](_0x16c73b,_0x4e6867,_0xf809f7,_0x3b2056){const _0x3ea5a0=_0xf9a763,_0x217737=this[_0x3ea5a0(0x2c9)]['getCurrentRevOfUnit'](_0x16c73b);this[_0x3ea5a0(0x333)][_0x3ea5a0(0x28a)](_0x16c73b,{'unitID':_0x16c73b,'type':_0x4e6867,'awaitingChangeset':_0xf809f7,'mutations':_0x3b2056,'rev':_0x217737}),this[_0x3ea5a0(0x26b)][_0x3ea5a0(0x18d)](_0x16c73b)||this[_0x3ea5a0(0x376)](_0x16c73b);}['_scheduleSaving'](_0xa8d169){const _0xe32cd=_0xf9a763,_0xf60e54=this[_0xe32cd(0x180)]();_0xf60e54===0x0?this[_0xe32cd(0x2c0)](_0xa8d169):this['_saveTaskMap'][_0xe32cd(0x28a)](_0xa8d169,setTimeout(()=>this[_0xe32cd(0x2c0)](_0xa8d169),_0xf60e54));}['_getSaveTimeout'](){const _0x461e90=_0xf9a763;var _0x2fecb8;return(_0x2fecb8=this[_0x461e90(0x2fb)]['getConfig'](_0x561786))!=null?_0x2fecb8:_0x2d51af;}[_0xf9a763(0x2c0)](_0x104bd9){const _0x3da2c3=_0xf9a763,_0x1ccfa0=this[_0x3da2c3(0x26b)][_0x3da2c3(0x385)](_0x104bd9);return _0x1ccfa0!==void 0x0&&window[_0x3da2c3(0x2ad)](_0x1ccfa0),this['_localStorageService'][_0x3da2c3(0x1bf)](_0x28239d(_0x104bd9),this[_0x3da2c3(0x333)][_0x3da2c3(0x385)](_0x104bd9))[_0x3da2c3(0x344)](()=>this[_0x3da2c3(0x26b)]['delete'](_0x104bd9));}async[_0xf9a763(0x1d9)](){const _0x2566d8=_0xf9a763,_0x2b0d88=[];this[_0x2566d8(0x26b)][_0x2566d8(0x368)]((_0x4da6fb,_0x219525)=>{const _0x4ab630=_0x2566d8;window['clearTimeout'](_0x4da6fb),_0x2b0d88[_0x4ab630(0x2af)](this[_0x4ab630(0x2c0)](_0x219525)['then'](()=>{const _0x202673=_0x4ab630;this[_0x202673(0x26b)][_0x202673(0x1e9)](_0x219525);}));}),await Promise[_0x2566d8(0x168)](_0x2b0d88);}};xe=Cn([De(0x0,_0x32bcf4),De(0x1,_0x365f4d),De(0x2,_0x13b860(_0xd2979d))],xe);class Rn extends _0x26b6de{constructor(){const _0x6aafac=_0xf9a763;super(),l(this,'urlChange$'),this[_0x6aafac(0x17c)]=_0x3f9244(window,_0x6aafac(0x380))['pipe'](_0x5a4142(this[_0x6aafac(0x1f4)]),_0x31621f(0x1),_0x4d2739(void 0x0));}[_0xf9a763(0x25a)](_0x2a1d52,_0x37998c,_0x4a0b15=!0x1){const _0x51b8b0=_0xf9a763,_0x42e2b2=new URL(window[_0x51b8b0(0x332)][_0x51b8b0(0x2e6)]);_0x42e2b2[_0x51b8b0(0x321)][_0x51b8b0(0x28a)](_0x2a1d52,_0x37998c),_0x4a0b15?window[_0x51b8b0(0x340)]['replaceState']('','',_0x42e2b2[_0x51b8b0(0x30e)]()):window[_0x51b8b0(0x340)][_0x51b8b0(0x358)]('','',_0x42e2b2['toString']());}[_0xf9a763(0x356)](_0x4927fe,_0x4356a1=!0x1){const _0x2db863=_0xf9a763,_0x4cb378=new URL(window['location'][_0x2db863(0x2e6)]);_0x4cb378[_0x2db863(0x321)]['delete'](_0x4927fe),_0x4356a1?window['history'][_0x2db863(0x239)]('','',_0x4cb378[_0x2db863(0x30e)]()):window[_0x2db863(0x340)][_0x2db863(0x358)]('','',_0x4cb378[_0x2db863(0x30e)]());}[_0xf9a763(0x2b1)](_0x26520c){const _0x436cd4=_0xf9a763;var _0x136d10;return(_0x136d10=new URL(window[_0x436cd4(0x332)][_0x436cd4(0x2e6)])[_0x436cd4(0x321)]['get'](_0x26520c))!=null?_0x136d10:void 0x0;}}var Dn=Object[_0xf9a763(0x249)],Nn=Object[_0xf9a763(0x1b6)],bn=(_0x29c336,_0x5d1ff8,_0x2593e5)=>_0x5d1ff8 in _0x29c336?Dn(_0x29c336,_0x5d1ff8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2593e5}):_0x29c336[_0x5d1ff8]=_0x2593e5,Un=(_0x2290d4,_0x17f00e,_0x511e2c,_0x3c3ae)=>{const _0x2470fa=_0xf9a763;for(var _0x214007=_0x3c3ae>0x1?void 0x0:_0x3c3ae?Nn(_0x17f00e,_0x511e2c):_0x17f00e,_0x2d5bab=_0x2290d4[_0x2470fa(0x281)]-0x1,_0x4a014e;_0x2d5bab>=0x0;_0x2d5bab--)(_0x4a014e=_0x2290d4[_0x2d5bab])&&(_0x214007=_0x4a014e(_0x214007)||_0x214007);return _0x214007;},Ne=(_0x4ff19e,_0x14a384)=>(_0x107969,_0x4c261d)=>_0x14a384(_0x107969,_0x4c261d,_0x4ff19e),Ln=(_0x3a4909,_0x5305fd,_0x27b3c3)=>bn(_0x3a4909,_0x5305fd+'',_0x27b3c3);const Mn=_0xf9a763(0x1fd);function _0x37b4(_0x5a47b2,_0xe36bbd){const _0x149256=_0x1492();return _0x37b4=function(_0x37b437,_0x16fc0e){_0x37b437=_0x37b437-0x161;let _0x1927f3=_0x149256[_0x37b437];return _0x1927f3;},_0x37b4(_0x5a47b2,_0xe36bbd);}let Be=class extends _0x548c33{constructor(_0xc96df7=rt,_0x2a9a89,_0x1c7923,_0x5c474d){const _0x3958b8=_0xf9a763;super(),this[_0x3958b8(0x236)]=_0xc96df7,this[_0x3958b8(0x336)]=_0x2a9a89,this[_0x3958b8(0x208)]=_0x1c7923,this[_0x3958b8(0x2fb)]=_0x5c474d;const {..._0x3ee55d}=_0x15cc61({},rt,this[_0x3958b8(0x236)]);this['_configService'][_0x3958b8(0x2c3)](an,_0x3ee55d);}[_0xf9a763(0x1bc)](){const _0x4b834a=_0xf9a763;this[_0x4b834a(0x1a6)](),this[_0x4b834a(0x2c4)]();}[_0xf9a763(0x2df)](){this['_registerRenderDependencies']();}[_0xf9a763(0x1a6)](){const _0x37aa01=_0xf9a763;var _0x2e3d56;const _0x3d5dd0=[[je],[de],[he],[_e],[le],[Xe],[At,{'useClass':Rn}],[_0x3ab43e,{'useClass':_0x5b9d65}],[_0x46424d,{'useClass':xe}],[oe],[ue],[ce],[H],[Ae],[ae]];_0x223234(this[_0x37aa01(0x208)],_0xe52174(_0x3d5dd0,(_0x2e3d56=this[_0x37aa01(0x236)])==null?void 0x0:_0x2e3d56['override']));}['_registerRenderDependencies'](){const _0x5a8d91=_0xf9a763;this[_0x5a8d91(0x288)](this[_0x5a8d91(0x336)][_0x5a8d91(0x33a)](_0x3b755d['UNIVER_DOC'],[ye])),this[_0x5a8d91(0x288)](this[_0x5a8d91(0x336)]['registerRenderModule'](_0x3b755d[_0x5a8d91(0x26f)],[$e]));}[_0xf9a763(0x2c4)](){_0x5ba7fd(this['_injector'],[[H],[oe],[ue],[ce],[ae],[de]]);}};Ln(Be,'pluginName',Mn),Be=Un([_0x36a334(_0x3361ec),Ne(0x1,_0x3a82e4),Ne(0x2,_0x13b860(_0x74797)),Ne(0x3,_0x32bcf4)],Be);var An=Object[_0xf9a763(0x1b6)],Pn=(_0x5e62d3,_0x90e7e0,_0x3c29ef,_0x8630ff)=>{const _0x33e655=_0xf9a763;for(var _0x5341e4=_0x8630ff>0x1?void 0x0:_0x8630ff?An(_0x90e7e0,_0x3c29ef):_0x90e7e0,_0x4ee3e9=_0x5e62d3[_0x33e655(0x281)]-0x1,_0x18424d;_0x4ee3e9>=0x0;_0x4ee3e9--)(_0x18424d=_0x5e62d3[_0x4ee3e9])&&(_0x5341e4=_0x18424d(_0x5341e4)||_0x5341e4);return _0x5341e4;},J=(_0x47b574,_0x12d613)=>(_0x1e1565,_0x45bef4)=>_0x12d613(_0x1e1565,_0x45bef4,_0x47b574);let ct=class extends _0x1d705b{constructor(_0xc7f83e,_0x3f4b51,_0x4dbc47,_0x331db5,_0x4bca18){super(_0xc7f83e,_0x3f4b51,_0x4dbc47,_0x331db5,_0x4bca18);}async[_0xf9a763(0x22e)](_0x16c44a){const _0x2676bd=_0xf9a763,_0x35f170=await this[_0x2676bd(0x20f)](),_0x2c01ee=this[_0x2676bd(0x2de)](_0x16c44a,_0x35f170);return this[_0x2676bd(0x35f)](_0x2c01ee);}[_0xf9a763(0x2de)](_0x547d6a,_0x588d26){const _0x5585e7=_0xf9a763,_0x521115=typeof window>'u'?new URL(_0x547d6a):new URL(_0x547d6a,window[_0x5585e7(0x332)][_0x5585e7(0x290)]);_0x521115[_0x5585e7(0x321)][_0x5585e7(0x28a)]('sessionTicket',_0x588d26);const _0x215b23=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x5585e7(0x193)]);return _0x215b23[_0x5585e7(0x385)](_0x5585e7(0x189))&&_0x521115['searchParams']['set'](_0x5585e7(0x189),_0x215b23[_0x5585e7(0x385)]('runId')),_0x521115[_0x5585e7(0x30e)]();}async[_0xf9a763(0x20f)](){const _0x3b9d0d=_0xf9a763;var _0x3ae3a2,_0x5243ae,_0x57aa20;const _0x3877a4=this[_0x3b9d0d(0x2fb)]['getConfig'](_0x52057d),_0x3b5f99=(_0x3ae3a2=_0x3877a4==null?void 0x0:_0x3877a4[_0x3b9d0d(0x387)])!=null?_0x3ae3a2:_0x4f03e9;return(_0x57aa20=(_0x5243ae=(await this[_0x3b9d0d(0x26d)]['get'](_0x3b5f99,{'headers':{'Content-Type':_0x3b9d0d(0x27e)}}))[_0x3b9d0d(0x186)])==null?void 0x0:_0x5243ae[_0x3b9d0d(0x255)])!=null?_0x57aa20:'';}};ct=Pn([J(0x0,_0x13b860(_0x74797)),J(0x1,_0x13b860(_0x371f2f)),J(0x2,_0x32bcf4),J(0x3,_0xf37675),J(0x4,_0x10426e)],ct);var wn=Object[_0xf9a763(0x1b6)],yn=(_0x3535f4,_0x416dd7,_0x8363c9,_0x15a1f6)=>{const _0x904b4a=_0xf9a763;for(var _0x545141=_0x15a1f6>0x1?void 0x0:_0x15a1f6?wn(_0x416dd7,_0x8363c9):_0x416dd7,_0x121cdc=_0x3535f4[_0x904b4a(0x281)]-0x1,_0x271416;_0x121cdc>=0x0;_0x121cdc--)(_0x271416=_0x3535f4[_0x121cdc])&&(_0x545141=_0x271416(_0x545141)||_0x545141);return _0x545141;},be=(_0x2434aa,_0x211419)=>(_0x33d0f1,_0x4e128b)=>_0x211419(_0x33d0f1,_0x4e128b,_0x2434aa);let _t=class extends _0x24d226{constructor(_0x2f4214,_0x623c98,_0x38d7e7){const _0xd43596=_0xf9a763;super(),this[_0xd43596(0x1d8)]=_0x2f4214,this[_0xd43596(0x26d)]=_0x623c98,this[_0xd43596(0x2fb)]=_0x38d7e7;}async['runOnServer'](_0x1c7998,_0xa0e5f8,_0x45ad9f,..._0x39b0af){const _0x3a45f2=_0xf9a763;var _0x442fcc,_0x358af3,_0x14ac72,_0x39b3ca;const _0x293103=this[_0x3a45f2(0x1d8)][_0x3a45f2(0x275)]();if(!_0x293103)throw new Error(_0x3a45f2(0x2ca));const _0x431fe2=((_0x442fcc=this[_0x3a45f2(0x2fb)]['getConfig'](_0x474e1a))!=null?_0x442fcc:_0x94f12f)+'/'+_0x1c7998+_0x3a45f2(0x1f3)+_0xa0e5f8,_0x21c310=new URL(window[_0x3a45f2(0x332)]['href']),_0x404d4a={'scriptId':_0x1c7998,'runId':(_0x358af3=_0x21c310[_0x3a45f2(0x321)][_0x3a45f2(0x385)](_0x3a45f2(0x189)))!=null?_0x358af3:'','function':_0xa0e5f8,'unitId':_0x293103[_0x3a45f2(0x175)](),'argsOfFunction':JSON[_0x3a45f2(0x2e2)](_0x39b0af),'invokeId':(_0x14ac72=_0x45ad9f[_0x3a45f2(0x210)])!=null?_0x14ac72:'','executionId':(_0x39b3ca=_0x45ad9f[_0x3a45f2(0x294)])!=null?_0x39b3ca:''};try{const _0x270090=await this[_0x3a45f2(0x26d)][_0x3a45f2(0x311)](_0x431fe2,{'body':_0x404d4a});return _0x270090[_0x3a45f2(0x186)][_0x3a45f2(0x25c)]&&_0x270090[_0x3a45f2(0x186)][_0x3a45f2(0x25c)]['code']!==Z['OK']?'Failed':_0x270090['body'][_0x3a45f2(0x18b)];}catch{return _0x3a45f2(0x177);}}};_t=yn([be(0x0,_0xb83e3b),be(0x1,_0x13b860(_0x371f2f)),be(0x2,_0x32bcf4)],_t);const lt=0x7530,ht=_0xf9a763(0x2fc);class tr extends _0x24d226{constructor(){const _0x207d55=_0xf9a763;super(),l(this,_0x207d55(0x181),_0x3af150()),l(this,_0x207d55(0x246),new Set()),l(this,_0x207d55(0x1f7),new Map()),l(this,'_heartbeatTimer',null),l(this,'_clearOtherTimers',new Map()),l(this,'_unitStatus',new Map()),this['_init']();}[_0xf9a763(0x231)](){const _0x1c0403=_0xf9a763;super[_0x1c0403(0x231)](),this[_0x1c0403(0x21f)][_0x1c0403(0x368)]((_0x3da5e8,_0x2fb8b1)=>this[_0x1c0403(0x320)](_0x2fb8b1)),this[_0x1c0403(0x2c8)]&&window[_0x1c0403(0x35e)](this[_0x1c0403(0x2c8)]);}['getUnitStatus$'](_0x4f1a72){const _0x279abe=_0xf9a763;return this['_ensureSubject'](_0x4f1a72)[_0x279abe(0x24b)](_0x46a0fa());}['editingUnit'](_0x5cde85){const _0x32e61b=_0xf9a763;this['_selfUnitIDs']['size']===0x0&&this[_0x32e61b(0x32e)](),this['_selfUnitIDs'][_0x32e61b(0x23f)](_0x5cde85),this[_0x32e61b(0x163)]({'type':0x0,'memberID':this[_0x32e61b(0x181)],'unitIDs':[_0x5cde85],'isForwarded':!0x1});}['disposeUnit'](_0x4b3270){const _0x526083=_0xf9a763;this[_0x526083(0x246)]['delete'](_0x4b3270),this['_selfUnitIDs'][_0x526083(0x354)]===0x0&&this[_0x526083(0x2c8)]&&window[_0x526083(0x35e)](this[_0x526083(0x2c8)]);}[_0xf9a763(0x20c)](){const _0x4306d3=_0xf9a763;this[_0x4306d3(0x288)](_0x23f13a(_0x3f9244(window,_0x4306d3(0x202))[_0x4306d3(0x2e3)](_0x1da700=>{const _0xcd8c6e=_0x4306d3;if(_0x1da700[_0xcd8c6e(0x2fe)]!==ht||!_0x1da700['newValue'])return;const _0x1a458c=JSON[_0xcd8c6e(0x16b)](_0x1da700[_0xcd8c6e(0x393)]);this[_0xcd8c6e(0x214)](_0x1a458c);}))),window[_0x4306d3(0x302)](_0x4306d3(0x362),()=>this[_0x4306d3(0x163)]({'type':0x1,'memberID':this[_0x4306d3(0x181)],'unitIDs':Array[_0x4306d3(0x29e)](this[_0x4306d3(0x246)])}));}[_0xf9a763(0x214)](_0x101caf){const _0x5bd168=_0xf9a763;switch(_0x101caf['type']){case 0x0:this['_handleJoinEvent'](_0x101caf);break;case 0x1:this[_0x5bd168(0x352)](_0x101caf);break;case 0x2:this[_0x5bd168(0x345)](_0x101caf);break;}}['_handleJoinEvent'](_0x161f8c){const _0x557284=_0xf9a763,{unitIDs:_0x4d9ded,memberID:_0x3edcc5,isForwarded:_0x2e79b8}=_0x161f8c;_0x4d9ded[_0x557284(0x368)](_0x414791=>{const _0x1c1bb5=_0x557284;if(!_0x2e79b8&&this[_0x1c1bb5(0x1f7)][_0x1c1bb5(0x18d)](_0x414791)&&this[_0x1c1bb5(0x1b4)](_0x414791)['next'](_0x1f537d[_0x1c1bb5(0x314)]),!this[_0x1c1bb5(0x1f7)][_0x1c1bb5(0x18d)](_0x414791)||!this[_0x1c1bb5(0x1f7)]['get'](_0x414791)[_0x1c1bb5(0x18d)](_0x3edcc5)){const _0x3642ae=this[_0x1c1bb5(0x1f7)][_0x1c1bb5(0x385)](_0x414791)||new Set();_0x3642ae[_0x1c1bb5(0x23f)](_0x3edcc5),this['_unitOnClients'][_0x1c1bb5(0x28a)](_0x414791,_0x3642ae),this[_0x1c1bb5(0x2b8)](_0x3edcc5);}}),_0x2e79b8||this[_0x557284(0x163)]({'type':0x0,'memberID':this[_0x557284(0x181)],'unitIDs':[...this[_0x557284(0x246)]],'isForwarded':!0x0});}[_0xf9a763(0x2b8)](_0x382cc6){const _0x49ca8d=_0xf9a763;this[_0x49ca8d(0x320)](_0x382cc6);const _0xa94b00=window['setTimeout'](()=>{const _0x3ce822=_0x49ca8d;this[_0x3ce822(0x1f7)][_0x3ce822(0x368)](_0xabfead=>{const _0xa43b64=_0x3ce822;_0xabfead[_0xa43b64(0x1e9)](_0x382cc6);});},lt*0x2);this[_0x49ca8d(0x21f)][_0x49ca8d(0x28a)](_0x382cc6,_0xa94b00);}['_removeClearOtherTimer'](_0x535669){const _0x55895d=_0xf9a763;if(this['_clearOtherTimers'][_0x55895d(0x18d)](_0x535669)){const _0x3b2947=this[_0x55895d(0x21f)]['get'](_0x535669);_0x3b2947&&window[_0x55895d(0x2ad)](_0x3b2947),this[_0x55895d(0x21f)]['set'](_0x535669,null);}}[_0xf9a763(0x352)](_0x297672){const _0xa85a79=_0xf9a763,{memberID:_0x5436dd,unitIDs:_0x2d5615}=_0x297672;_0x2d5615[_0xa85a79(0x368)](_0x3ff65a=>{const _0x3019eb=_0xa85a79;var _0x3ed4e0;const _0x344380=this[_0x3019eb(0x1f7)][_0x3019eb(0x385)](_0x3ff65a);_0x344380&&(_0x344380[_0x3019eb(0x1e9)](_0x5436dd),(_0x3ed4e0=this[_0x3019eb(0x1b4)](_0x3ff65a))==null||_0x3ed4e0[_0x3019eb(0x30c)](_0x344380[_0x3019eb(0x354)]===0x0?_0x1f537d[_0x3019eb(0x219)]:_0x1f537d[_0x3019eb(0x314)]));}),this[_0xa85a79(0x320)](_0x5436dd);}[_0xf9a763(0x345)](_0x32023f){const _0x4e8346=_0xf9a763;this[_0x4e8346(0x2b8)](_0x32023f['memberID']);}[_0xf9a763(0x163)](_0x2aa81c){const _0x3f2276=_0xf9a763;localStorage[_0x3f2276(0x1bf)](ht,JSON['stringify'](_0x2aa81c));}[_0xf9a763(0x32e)](){const _0x2a48b1=_0xf9a763;this[_0x2a48b1(0x2c8)]=window['setInterval'](()=>{const _0x83bf60=_0x2a48b1;this['_send']({'type':0x2,'memberID':this[_0x83bf60(0x181)]});},lt);}[_0xf9a763(0x1b4)](_0x4f6aef){const _0x4df635=_0xf9a763;return this[_0x4df635(0x2f0)][_0x4df635(0x18d)](_0x4f6aef)||this['_unitStatus'][_0x4df635(0x28a)](_0x4f6aef,new _0x1d1ed3(_0x1f537d[_0x4df635(0x219)])),this[_0x4df635(0x2f0)][_0x4df635(0x385)](_0x4f6aef);}}export{ct as BrowserCollaborationSocketService,ae as CollaborationDataLoaderController,oe as DesktopCollaborationStatusDisplayController,At as IURLService,_t as RemoteUniscriptService,qi as SheetCollabCursorShape,Be as UniverCollaborationClientUIPlugin,tr as WebBrowserSingleActiveUnitService,Rn as WebURLService};
1
+ const _0x23037e=_0x596d;(function(_0x297678,_0x43ed65){const _0x8bdd18=_0x596d,_0x138d35=_0x297678();while(!![]){try{const _0x52be90=parseInt(_0x8bdd18(0x20b))/0x1+-parseInt(_0x8bdd18(0x2e1))/0x2+parseInt(_0x8bdd18(0x33e))/0x3*(-parseInt(_0x8bdd18(0x250))/0x4)+-parseInt(_0x8bdd18(0x328))/0x5+parseInt(_0x8bdd18(0x201))/0x6*(-parseInt(_0x8bdd18(0x380))/0x7)+-parseInt(_0x8bdd18(0x345))/0x8+parseInt(_0x8bdd18(0x3ed))/0x9;if(_0x52be90===_0x43ed65)break;else _0x138d35['push'](_0x138d35['shift']());}catch(_0x3326e5){_0x138d35['push'](_0x138d35['shift']());}}}(_0x1d21,0x88756));var Ft=Object[_0x23037e(0x346)],kt=(_0x5b0e41,_0x58c4a8,_0x251470)=>_0x58c4a8 in _0x5b0e41?Ft(_0x5b0e41,_0x58c4a8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x251470}):_0x5b0e41[_0x58c4a8]=_0x251470,l=(_0x24435d,_0x1b8a6e,_0x3be8ff)=>kt(_0x24435d,typeof _0x1b8a6e!=_0x23037e(0x418)?_0x1b8a6e+'':_0x1b8a6e,_0x3be8ff);import{jsx as _0x138755,jsxs as _0xfacd06}from'react/jsx-runtime';import{CollaborationStatus as _0x2bd07a,CollaborationSessionService as _0x421172,CollaborationController as _0x2c7817,DataLoaderService as _0x1de1a6,MemberService as _0x254d55,SessionStatus as _0x3b587d,ILocalCacheService as _0x2c165a,CollaborationUIEventService as _0xf10605,CollaborationUIEventId as _0x595d90,DocCollaborationEntity as _0x5abbf2,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3c4393,getLocalCacheKey as _0x4d52ef,LOCAL_CACHE_INTERVAL as _0x94812e,LOCAL_CACHE_INTERVAL_KEY as _0x18f2e4,UniverCollaborationClientPlugin as _0x413558,CollaborationSocketService as _0x21196e,DEFAULT_WS_SESSION_TICKET_URL as _0x4b56ec,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x9fc019,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x494cec,UnitStatus as _0x30f496}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x23ab5c,IUniverInstanceService as _0x2c6926,Inject as _0x57b7af,Injector as _0xc05c74,Disposable as _0x2adf18,createIdentifier as _0x536e65,ILogService as _0x285ace,ICommandService as _0x409061,Optional as _0x1f94a2,RxDisposable as _0x1d3622,Workbook as _0x31a656,DOC_RANGE_TYPE as _0x3c6aa3,debounce as _0x16545f,Rectangle as _0x231b0b,DisposableCollection as _0x31703a,toDisposable as _0x586ed0,UniverInstanceType as _0x175e13,generateRandomId as _0x21c798,COLORS as _0x527bec,ColorKit as _0x20724d,ThemeService as _0xd8aa5f,fromEventSubject as _0x40819d,Tools as _0x4466a1,CommandType as _0x3a1dbc,IConfigService as _0x2905aa,CanceledError as _0x4ec729,isFormulaString as _0x2ecb79,isFormulaId as _0x472e4c,ILocalStorageService as _0x4a8848,DependentOn as _0x175337,Plugin as _0x59b96e,merge as _0x4d1f57,registerDependencies as _0x50ee13,mergeOverrideWithDependencies as _0x3bff89,touchDependencies as _0x356ea1}from'@univerjs/core';import{useObservable as _0x3925f0,useDependency as _0xd61efa,IUIPartsService as _0x505eb5,BuiltInUIPart as _0x1daa22,connectInjector as _0x4aae1a,IBeforeCloseService as _0x282c8c,IMessageService as _0x92c012,INotificationService as _0x1c9405}from'@univerjs/ui';import{BehaviorSubject as _0x107cff,switchMap as _0x1a78b4,of as _0x53144c,takeUntil as _0x1f8529,debounceTime as _0x48f0e5,Subject as _0x37e983,filter as _0x72003c,merge as _0x4680f6,combineLatest as _0x4625a1,fromEvent as _0x3ac611,shareReplay as _0x109633,mapTo as _0x51cdb0,distinctUntilChanged as _0x4a17c6}from'rxjs';import{Tooltip as _0x266c7f,clsx as _0x5b3388,MessageType as _0x38ce13}from'@univerjs/design';import{useRef as _0x59da9c,createElement as _0x386601,forwardRef as _0xddff13,useCallback as _0x40aaa4}from'react';import{IRemoteInstanceService as _0x331afc}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x5b0313,RefRangeService as _0x60f440,SetSelectionsOperation as _0x1b5f73,SheetsSelectionsService as _0x4e7057,EffectRefRangId as _0x5546d5,handleIRemoveRow as _0x7f5d7e,handleIRemoveCol as _0x15b017,handleMoveRange as _0x62f1a4,handleInsertRow as _0x2d53e8,handleInsertRangeMoveRight as _0x5b21d5,handleInsertRangeMoveDown as _0x5c823a,handleInsertCol as _0x13497b,handleDeleteRangeMoveUp as _0x4536fa,handleDeleteRangeMoveLeft as _0x2f0783,runRefRangeMutations as _0x3dbed1}from'@univerjs/sheets';import{Shape as _0x403c8d,Rect as _0x13c2ec,getColor as _0x29e4a4,RegularPolygon as _0x2d1fb7,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x397d4d,Vector2 as _0x14908a,SHEET_VIEWPORT_KEY as _0x17ae79,IRenderManagerService as _0x3947d8}from'@univerjs/engine-render';import{HTTPService as _0x46f386,ISocketService as _0x44de3e,WebSocketService as _0x17c854}from'@univerjs/network';import{IDocClipboardService as _0x5222a8,NodePositionConvertToCursor as _0xcac73d,NodePositionConvertToRectRange as _0xbcad60,TEXT_RANGE_LAYER_INDEX as _0x2279bd,SetDocZoomRatioOperation as _0x41542c,DocIMEInputManagerService as _0x1b1e78,DocStateChangeManagerService as _0x273172}from'@univerjs/docs-ui';import{IImageIoService as _0x33779e}from'@univerjs/drawing';import{ITransformService as _0x459e0f,CollaborationEvent as _0x2d5bf8,isTransformMutationFailure as _0x3d5424,isTransformMutationsWithChangesetSuccess as _0x181dca,RevisionService as _0xfc506e,ISnapshotServerService as _0xe935bb}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x3fa432,RichTextEditingMutation as _0x4442d5,DocSelectionManagerService as _0x4b96b6,DocSkeletonManagerService as _0x3f62c8}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x584d03,serializeRangeWithSheet as _0xef98ea,FormulaExecuteStageType as _0x244207,FormulaExecutedStateType as _0x4e9f65,SetFormulaCalculationStartMutation as _0x3dc31f,SetFormulaCalculationNotificationMutation as _0x3dea83}from'@univerjs/engine-formula';import{map as _0x43594e,filter as _0x11482a,throttleTime as _0xda8cfa,takeUntil as _0x62c4b1,switchMap as _0x18725f}from'rxjs/operators';import{SheetSkeletonManagerService as _0x45795e,getCoordByCell as _0x421831,getSheetObject as _0x473f43}from'@univerjs/sheets-ui';function Ve({ref:_0x30e44f,..._0x43a027}){const _0x57bbe8=_0x23037e,{icon:_0x43df37,id:_0x3a225f,className:_0x4677b5,extend:_0x466476,..._0x28c948}=_0x43a027,_0x32df56=(_0x57bbe8(0x320)+_0x3a225f+'\x20'+(_0x4677b5||''))[_0x57bbe8(0x31b)](),_0x4bc007=_0x59da9c('_'+gi());return Ut(_0x43df37,''+_0x3a225f,{'defIds':_0x43df37[_0x57bbe8(0x31f)],'idSuffix':_0x4bc007['current']},{'ref':_0x30e44f,'className':_0x32df56,..._0x28c948},_0x466476);}function Ut(_0x3b6b7d,_0x345cac,_0x1493cf,_0x54af78,_0x2833f2){const _0x34940f=_0x23037e;return _0x386601(_0x3b6b7d['tag'],{'key':_0x345cac,...mi(_0x3b6b7d,_0x1493cf,_0x2833f2),..._0x54af78},(fi(_0x3b6b7d,_0x1493cf)[_0x34940f(0x270)]||[])[_0x34940f(0x218)]((_0x4e7218,_0x3ddf73)=>Ut(_0x4e7218,_0x345cac+'-'+_0x3b6b7d[_0x34940f(0x318)]+'-'+_0x3ddf73,_0x1493cf,void 0x0,_0x2833f2)));}function mi(_0x44a749,_0x2322dd,_0x22b373){const _0x34ac16=_0x23037e,_0x55d7dd={..._0x44a749[_0x34ac16(0x357)]};_0x22b373!=null&&_0x22b373[_0x34ac16(0x2b9)]&&_0x55d7dd[_0x34ac16(0x293)]==='colorChannel1'&&(_0x55d7dd[_0x34ac16(0x293)]=_0x22b373[_0x34ac16(0x2b9)]),_0x44a749[_0x34ac16(0x318)]==='mask'&&_0x55d7dd['id']&&(_0x55d7dd['id']=_0x55d7dd['id']+_0x2322dd[_0x34ac16(0x35b)]),Object['entries'](_0x55d7dd)[_0x34ac16(0x342)](([_0x26db58,_0x4039c1])=>{const _0x1753df=_0x34ac16;_0x26db58==='mask'&&typeof _0x4039c1==_0x1753df(0x261)&&(_0x55d7dd[_0x26db58]=_0x4039c1[_0x1753df(0x3a5)](/url\(#(.*)\)/,_0x1753df(0x425)+_0x2322dd[_0x1753df(0x35b)]+')'));});const {defIds:_0x43b0c0}=_0x2322dd;return!_0x43b0c0||_0x43b0c0[_0x34ac16(0x285)]===0x0||(_0x44a749[_0x34ac16(0x318)]===_0x34ac16(0x39f)&&_0x55d7dd[_0x34ac16(0x2e6)]&&(_0x55d7dd[_0x34ac16(0x2e6)]=_0x55d7dd[_0x34ac16(0x2e6)]+_0x2322dd[_0x34ac16(0x35b)]),Object['entries'](_0x55d7dd)['forEach'](([_0x279758,_0x4a8ef9])=>{const _0x5e3489=_0x34ac16;typeof _0x4a8ef9==_0x5e3489(0x261)&&(_0x55d7dd[_0x279758]=_0x4a8ef9[_0x5e3489(0x3a5)](/url\(#(.*)\)/,_0x5e3489(0x425)+_0x2322dd[_0x5e3489(0x35b)]+')'));})),_0x55d7dd;}function fi(_0x3d28c6,_0x1afe44){const _0x365d8e=_0x23037e;var _0x407f55;const {defIds:_0x3f2b92}=_0x1afe44;return!_0x3f2b92||_0x3f2b92[_0x365d8e(0x285)]===0x0?_0x3d28c6:_0x3d28c6['tag']===_0x365d8e(0x3c9)&&((_0x407f55=_0x3d28c6['children'])!=null&&_0x407f55[_0x365d8e(0x285)])?{..._0x3d28c6,'children':_0x3d28c6[_0x365d8e(0x270)][_0x365d8e(0x218)](_0x104336=>typeof _0x104336[_0x365d8e(0x357)]['id']==_0x365d8e(0x261)&&_0x3f2b92&&_0x3f2b92[_0x365d8e(0x2bf)](_0x104336[_0x365d8e(0x357)]['id'])?{..._0x104336,'attrs':{..._0x104336[_0x365d8e(0x357)],'id':_0x104336[_0x365d8e(0x357)]['id']+_0x1afe44['idSuffix']}}:_0x104336)}:_0x3d28c6;}function gi(){const _0x9af667=_0x23037e;return Math[_0x9af667(0x31c)]()[_0x9af667(0x41f)](0x24)['substring'](0x2,0x8);}Ve[_0x23037e(0x283)]=_0x23037e(0x3a7);function _0x1d21(){const _0x503382=['_config','shift','_saveCache','PENDING','override','_scheduleSaving','_getSaveTimeout','SYNCED','then','clearTimeout','collabStatus.offline','startRow','START_CALCULATION','_initStatusComponent','1em','isActive','_eventUnsubscribe','UNIVER_DOC','_onRefRangeChange','init','YUUMI_CONNECTOR_URL_NOT_FOUND','AUTHORIZE_CODE_ILLEGAL','selection','wsSessionTicketUrl','SNAPSHOT_INVALID_SNAPSHOT','contains','FromArray','flatMap','7xAxGAB','_updateCollabCursors','search','debug','LOGIN_FAILED','formula.calculation.unable','measureText','USER_NOT_FOUND','dispose$','_removeClearOtherTimer','setTimeout','setUndoRedoMutationParamsCache','getSheetId','collaboration.single-unit.warning','_drawRectRange','TEXT','newValue','ENSURE_SNAPSHOT_EXECUTION','_lastPointer','_name','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_taskIds','registerBeforeClose','_refreshCollabCursors','_render','RECT','_scheduleHeartbeat','stageInfo','transformSelections','setItem','_collabCursorState$','use','functionsExecutedState','Failed','_anchorDot','subunit','_sheetSkeletonManagerService','replace','_assignedColors','UniverIcon','InsertRangeMoveDownCommandId','clipPath','ENTITLE_DUP_SUBSCRIPTION','EMAIL_HAS_BEEN_BOUND','subscribeEvent','translate(.97)','addObject','ERROR_AGAIN','_updateLocalCursor','getRenderById','_startSheetCollabCursor','parseInt','dispose','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','push','_getAnchorBounding','_imageIoService','_updateURLWithCurrentState','_scene','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','onStarting','transformRemoteChangeset','dirtyRanges','with','collabStatus.conflict','MOBILE_HAS_BEEN_BOUND','getCollabCursors$','INVITE_CODE_ALREADY_BOUND','fillStyle','LICENSE_DISTRO_REJECTED','session.collaboration-timeout','_collaborationController','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','defs','HEADER_MENU','roomMembers','getStateCache','Loading','_initStatusListener','INVITE_CODE_REQUIRED','_doCreateSocket','currentTheme$','stage','find','searchParams','INVITE_CODE_HAS_BEEN_UES','_collaborationUIEventService','YUUMI_SUBSCRIPTION_NOT_FOUND','executeCommand','getUnitStatus$','_cursorInfo$','_docStateChangeManagerService','sessionStatus$','params','SUBMIT_CHANGESET_TIMEOUT','startColumn','_initResize','white','onPointerEnter$','getItem','findNodePositionByCharIndex','SOCKET_FAILED_RETRY','addEventListener','runOnServer','registerRefRange','round','send','_drawAnchor','ENTITLE_CHAT_LIMIT_EXCEED','33646374DQAghs','top','REDEMPTION_CODE_NOT_STARTED','_pollingInterval','size','_transformHistoryAndStateStack','sheetID','range','NOT_COLLAB','RemoveRowCommandId','M0\x200H16V16H0z','text','fillRule','_initDependencies','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getRangePointData','InsertColCommandId','getConfig','INTERNAL_ERROR','UPDATE_CURSOR','CONNECTOR_DATA_TOO_LARGE','DeleteRangeMoveLeftCommandId','_getFormulaLimitStatus','sessionTicket','invokeId','from','skeleton','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','activeSheet$','_hovered','_entities','PAYMENT_CHANNEL_NOT_SUPPORT','_docTransformStateCacheService','http://www.w3.org/2000/svg','_hasFormulaInDirtyRanges','_registerRenderDependencies','ENTITLE_NEED_BILLING_ADDRESS','_anchor','_initCommandInterceptor','path','_getSessionTicket','getActiveSheet','_labelPosition','symbol','PERMISSION_DENIED','getAncestorScale','_colorAssignService','setParam','save','transformMutation','toString','MOBILE_VERIFY_CODE_MISMATCH','onCommandExecuted','_shapes','_cursors','on-line-icon_clip0_910_349','url(#$1','_messageService','lineTo','collabStatus.syncing','_beforeCloseService','setAlpha','row','REDEMPTION_CODE_HAS_BEEN_CREATED','getDocRanges','saveImage','all','_injector','labelPosition','EMAIL_VERIFY_CODE_MISMATCH','loadOfflineData','_transformUndoRedoStack','YUUMI_UNABLE_LOAD_URL','_instanceService','_dataLoaderService','InsertRowCommandId','429786KBaceZ','_onCursorUpdate','replaceState','toRgbString','color','red.300','YUUMI_NO_CUBOID_FOR_QUESTION','_docTransformIMECacheService','limitInfo','CONFLICT','14910EjbYKO','endColumn','getTypeOfUnitDisposed$','setConfig','_themeService','_initEvent','collab-rect-range-','disposeUnit','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','setInterval','assign','_handleJoinEvent','_hideTimer','map','collab-text-range-','_configService','textRanges','OffLineIcon','REDEMPTION_USER_NOT_ELIGIBLE','getCurrentUnitForType','_session','_handleHeartbeatEvent','setShapeProps','url(#on-line-icon_clip0_910_349)','onMouseMove','unsubscribe','getUniverSheetInstance','COMPLETION_FINISHED','location','type','SNAPSHOT_HAS_BEEN_REMOVED','_collabSessionService','UNRECOGNIZED','PY_RUNTIME_SCRIPT_ERROR','fillText','collab-client.tooltip.reconnect','_setupSubUnitSync','closePath','onLocalMutation','complete','transform','_currentUsage','NOT_FOUND','maxFormulaLimit','_transformService','ticket','has','drawWith','YUUMI_AI_RUN_FAILED','getUnitId','RemoveColCommandId','SOCKET_FAILED','_cachedData','[CollaborationDataLoaderController]','LICENSE_EXPORT_SIZE_EXCEEDED','focused$','_handleLeaveEvent','now','USER_IS_ANONYMOUS','_textBubble','WECHAT_HAS_BEEN_BOUND','Error','collabStatus.synced','_urlService','arc','NO_OTHER_CLIENTS_EDITING','_transformPreviousActiveRange','result','getMemberID','4LSJHzI','_httpService','stringify','...','_unitOnClients','_updateSubUnitFromURLParams','unitID','_renderManagerService','replaceDocRanges','_localeService','AWAITING','_setFormulaLimitStatus','YUUMI_TABLE_NOT_FOUND_IN_UNIT','getCurrent','_saveTaskMap','_draw','_clearPolling','string','_disabled','CLOSE_ROOM','transformByState','popstate','green.600','getValue','_entityInit$','OFFLINE','history','unitId','_getScale','runId','JOIN_ROOM_FAILED','onRendered','children','REDEMPTION_CODE_FULLY_REDEEMED','loadUnit','getRelativeToViewportCoord','_color','_docClipboardService','eventID','pipe','_online','whenReady','_send','YUUMI_URL_COL_OUT_OF_RANGE','min','getActiveRange','cursorInfo','releaseFormulaLimitUrl','DATA_SOURCE_TOO_LARGE','APPLY_NON_SEQUENTIAL_REVISION','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','displayName','univer-flex\x20univer-items-center','length','subscribe','LOGIN_TOKEN_PROCESSING_FAILED','engine','/run/','/universer-api/license/formula/limit/status','permission.content','_initCommandExecutedListener','_roomMembers$','USERS_LEAVE','_selfUnitIDs','exhaustSavingTask','status$','width','fill','FETCH_MISS','REDEMPTION_CODE_INACTIVE','height','m1Prime','OTHER_CLIENT_EDITING','REDEMPTION_USER_REDEEM_TIMES_EXCEED','OTHER_CLIENTS_EDITING','_getSheetObject','_range','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_hover','_localStorageService','set','onTransformChange$','getTypeOfUnitAdded$','_handleEvent','href','next','getFocusedUnit','_notificationService','YUUMI_ASYNCIO_CANCELLED','unit','moveTo','purple.300','APPLY_PERMISSION_DENIED','getCellPositionByOffset','backgroundColor','evenodd','isArray','LICENSE_MAX_UNITS_EXCEEDED','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_memberService','disposeWithMe','session.will-retry','_docSyncEditingCollabCursorService','onPointerMove$','urlChange$','colorChannel1','UNAUTHENTICATED','_checkAndWaitForCalculationPermission','deepClone','UNDEFINED','UNIVER_SHEET','includes','getOwnPropertyDescriptor','_startCalculationLimit','collabCursorState$','_toggleOnline','getUnit','_initEntityListener','_ensureSubject','key','enableLocalCache','_toggleOffline','_id','_startDocCollabCursor','_uiPartsService','onPointerLeave$','_removeCollabCursors','transformIMECache','pushState','DeleteRangeMoveUpCommandId','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','get','uni.network.url-service','startsWith','_commandService','APPLY_REVISION_CONFILICT','collab-text-anchor-','_revisionService','ALREADY_EXISTS','currentColor','memberID','restore','code','YUUMI_ALL_TABLES_IS_INVALID','_registerDependencies','1921246euRpeV','removeParam','values','_cursor','error','xlink:href','jiqing.500','registerComponent','addClipboardHook','clearInterval','getSkeleton','ranges','unload','asObservable','_maxFormulaLimit','black','setStateCache','_colorIndex','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_collabCursorController','_init','_releaseCalculationLimit','Warning','some','_univerInstanceService','transformStateCache','TOO_MANY_REQUESTS','_checkCalculationAvailable','bottom','_clearOtherTimers','session.connection-failed','isEditing','_unitStatus','getSheetBySheetId','_setupBeforeClosingHandler','getCollabEntity$','selections','unshift','_cursorShapes','column','getOffsetConfig','none','add','createInstance','data','_logService','getUnhiddenWorksheets','hide','_localCacheService','mutations','_drawTextRange','_backgroundColor','Success','div','APPLY_DUPLICATED','tag','body','registerRenderModule','trim','random','reconnect','collaboration.closeRoom','defIds','univerjs-icon\x20univerjs-icon-','ENTITLE_REPORT_LIMIT_EXCEED','beginPath','getUndoRedoMutationParamsCache','InsertRangeMoveRightCommandId','_lastResponseTimestamp','formula.calculation.waiting','show','2995145cMImBH','m2Prime','endRow','_applyCommand','application/json','YUUMI_RATE_OVER_LIMIT','_scheduleClearOtherTimer','font','REDEMPTION_INVALID_CODE','_onCursorDelete','/universer-api/license/formula/limit/start','MUTATION','_heartbeatTimer','imageSourceType','APPLY_REJECT','_docSkeletonManagerService','ENTITLE_INSUFFICIENT_QUOTA','redoState','delete','LICENSE_IMPORT_SIZE_EXCEEDED','event$','split','2023608giZljR','name','assignAColorForMemberID','getCurrentRevOfUnit','forEach','INVALID_INVITE_CODE','USER_NOT_INVITED_CODE','7109144UsYKeG','defineProperty','saveTaskMap','docStateChange$','entityInit$','ONLINE','storage','doc.mutation.rich-text-editing','ACTIVE_UNIT_EVENT_CHANNEL','getParam','_docTransformSelectionsService','CHANGESET_REVISION_CONFILICT','_handleHover','_status$','off-line-icon_clip0_910_343','INVALID_ARGUMENT','getColorFromTheme','Unknown\x20user','attrs','currentSkeleton$','updateOfflineData','AWAITING_WITH_PENDING','idSuffix','syncEditingCollabCursor','setActiveRange','CURRENT_STATUS_CANNOT_OPERATE','_context','_createSocketURL','undoState','_syncEditingCollabCursorService','roomMembers$'];_0x1d21=function(){return _0x503382;};return _0x1d21();}const vi={'tag':'svg','attrs':{'xmlns':_0x23037e(0x40e),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x23037e(0x372),'height':_0x23037e(0x372)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x23037e(0x414),'attrs':{'stroke':_0x23037e(0x2db),'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':'round','strokeLinejoin':_0x23037e(0x3e9),'strokeWidth':1.2}}]},{'tag':_0x23037e(0x3c9),'attrs':{},'children':[{'tag':_0x23037e(0x3a9),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x23037e(0x3e1),'d':_0x23037e(0x3f7)}}]}]}],'defIds':[_0x23037e(0x353)]},Lt=_0xddff13(function(_0x1276be,_0x198979){const _0x1f52f6=_0x23037e;return _0x386601(Ve,Object[_0x1f52f6(0x215)]({},_0x1276be,{'id':'off-line-icon','ref':_0x198979,'icon':vi}));});Lt[_0x23037e(0x283)]=_0x23037e(0x21c);const Ei={'tag':'svg','attrs':{'xmlns':_0x23037e(0x40e),'fill':_0x23037e(0x30a),'viewBox':'0\x200\x2017\x2016','width':_0x23037e(0x372),'height':_0x23037e(0x372)},'children':[{'tag':'g','attrs':{'clipPath':_0x23037e(0x222)},'children':[{'tag':'path','attrs':{'stroke':_0x23037e(0x2db),'d':'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','strokeLinecap':'round','strokeLinejoin':_0x23037e(0x3e9),'strokeWidth':1.2}}]},{'tag':_0x23037e(0x3c9),'attrs':{},'children':[{'tag':_0x23037e(0x3a9),'attrs':{'id':_0x23037e(0x424)},'children':[{'tag':_0x23037e(0x414),'attrs':{'fill':_0x23037e(0x3e1),'d':'M0\x200H16V16H0z','transform':_0x23037e(0x3ad)}}]}]}],'defIds':[_0x23037e(0x424)]},Mt=_0xddff13(function(_0x848081,_0xba0c44){const _0x3b1651=_0x23037e;return _0x386601(Ve,Object[_0x3b1651(0x215)]({},_0x848081,{'id':'on-line-icon','ref':_0xba0c44,'icon':Ei}));});Mt[_0x23037e(0x283)]='OnLineIcon';function pi(_0x2bd119){const _0x308708=_0x23037e;switch(_0x2bd119){case _0x2bd07a['OFFLINE']:return _0x308708(0x36e);case _0x2bd07a['CONFLICT']:return _0x308708(0x3c0);case _0x2bd07a[_0x308708(0x294)]:return'collabStatus.fetchMiss';case _0x2bd07a[_0x308708(0x3f5)]:return'collabStatus.notCollab';case _0x2bd07a[_0x308708(0x25a)]:case _0x2bd07a[_0x308708(0x35a)]:return _0x308708(0x1f0);case _0x2bd07a[_0x308708(0x36b)]:case _0x2bd07a[_0x308708(0x367)]:return _0x308708(0x249);}}function Oi(_0x4db6c2){const _0x2535e7=_0x23037e,{status$:_0xfff3d6}=_0x4db6c2,_0x5ac50c=_0x3925f0(_0xfff3d6,_0x2bd07a[_0x2535e7(0x3f5)]),_0x59725c=_0xd61efa(_0x23ab5c),_0x48edcc=_0xd61efa(_0x421172),_0x46ec4d=_0x5ac50c!==_0x2bd07a[_0x2535e7(0x269)],_0xdf3a3=_0x59725c['t'](pi(_0x5ac50c)),_0x3894bb=_0x46ec4d?_0x138755(Mt,{}):_0x138755(Lt,{}),_0x21bae0=_0x40aaa4(()=>{const _0x188901=_0x2535e7;_0x46ec4d||_0x48edcc[_0x188901(0x31d)]();},[_0x46ec4d,_0x48edcc]);function _0x1ed844(){const _0x1828ee=_0x2535e7;return _0xfacd06(_0x1828ee(0x316),{'className':_0x1828ee(0x284),'onClick':_0x21bae0,'children':[_0x138755(_0x1828ee(0x316),{'className':_0x5b3388('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x46ec4d,'univer-text-red-500':!_0x46ec4d}),'children':_0x3894bb}),_0x138755(_0x1828ee(0x316),{'className':_0x1828ee(0x213),'children':_0xdf3a3})]});}return _0x46ec4d?_0x1ed844():_0x138755(_0x266c7f,{'title':_0x59725c['t'](_0x2535e7(0x22e)),'children':_0x1ed844()});}var Ti=Object[_0x23037e(0x2c0)],Ci=(_0x534516,_0x54cbb3,_0x16ba1b,_0x5524f7)=>{const _0x1a76e4=_0x23037e;for(var _0x5d11dd=_0x5524f7>0x1?void 0x0:_0x5524f7?Ti(_0x54cbb3,_0x16ba1b):_0x54cbb3,_0x1a2b51=_0x534516[_0x1a76e4(0x285)]-0x1,_0x4bfc04;_0x1a2b51>=0x0;_0x1a2b51--)(_0x4bfc04=_0x534516[_0x1a2b51])&&(_0x5d11dd=_0x4bfc04(_0x5d11dd)||_0x5d11dd);return _0x5d11dd;},se=(_0x2828d6,_0x1d1998)=>(_0x1b57fb,_0x2cf3ea)=>_0x1d1998(_0x1b57fb,_0x2cf3ea,_0x2828d6);let oe=class extends _0x2adf18{constructor(_0x52b0da,_0x44cdaa,_0x524a22,_0x1ad06c){const _0x2769dc=_0x23037e;super(),l(this,_0x2769dc(0x352),new _0x107cff(_0x2bd07a['NOT_COLLAB'])),(this[_0x2769dc(0x2f9)]=_0x52b0da,this['_injector']=_0x44cdaa,this[_0x2769dc(0x3c7)]=_0x524a22,this[_0x2769dc(0x2cc)]=_0x1ad06c,this[_0x2769dc(0x371)](),this[_0x2769dc(0x3ce)]());}['_initStatusListener'](){const _0x38709a=_0x23037e;this[_0x38709a(0x2b4)](this[_0x38709a(0x2f9)][_0x38709a(0x242)]['pipe'](_0x1a78b4(()=>{const _0x2612d4=_0x38709a,_0x4cef88=this[_0x2612d4(0x2f9)][_0x2612d4(0x2a6)]();return _0x4cef88?this[_0x2612d4(0x3c7)][_0x2612d4(0x304)](_0x4cef88[_0x2612d4(0x23c)]()):_0x53144c(null);}),_0x1a78b4(_0x34cc64=>_0x34cc64?_0x34cc64[_0x38709a(0x291)]:_0x53144c(_0x2bd07a['NOT_COLLAB'])))[_0x38709a(0x286)](_0x505bd0=>{const _0x3fdf5a=_0x38709a;this['_status$'][_0x3fdf5a(0x2a5)](_0x505bd0);}));}[_0x23037e(0x371)](){const _0x23e564=_0x23037e;this['disposeWithMe'](this['_uiPartsService'][_0x23e564(0x2e8)](_0x1daa22[_0x23e564(0x3ca)],()=>_0x4aae1a(Ri({'status$':this[_0x23e564(0x352)][_0x23e564(0x2ee)]()}),this[_0x23e564(0x1f8)])));}};oe=Ci([se(0x0,_0x2c6926),se(0x1,_0x57b7af(_0xc05c74)),se(0x2,_0x57b7af(_0x2c7817)),se(0x3,_0x505eb5)],oe);function Ri(_0x467f2a){const {status$:_0x579e67}=_0x467f2a;return function(){return _0x138755(Oi,{'status$':_0x579e67});};}const At=_0x536e65(_0x23037e(0x2d4));function _0x596d(_0x5f49aa,_0x1ba67e){const _0x1d2191=_0x1d21();return _0x596d=function(_0x596dbe,_0x54bee7){_0x596dbe=_0x596dbe-0x1f0;let _0x1d80d8=_0x1d2191[_0x596dbe];return _0x1d80d8;},_0x596d(_0x5f49aa,_0x1ba67e);}var Di=Object['getOwnPropertyDescriptor'],Ni=(_0x471e70,_0x44e513,_0x6e2ae7,_0x252650)=>{const _0xf9e46a=_0x23037e;for(var _0x3776c4=_0x252650>0x1?void 0x0:_0x252650?Di(_0x44e513,_0x6e2ae7):_0x44e513,_0xb5d4b2=_0x471e70[_0xf9e46a(0x285)]-0x1,_0x11465d;_0xb5d4b2>=0x0;_0xb5d4b2--)(_0x11465d=_0x471e70[_0xb5d4b2])&&(_0x3776c4=_0x11465d(_0x3776c4)||_0x3776c4);return _0x3776c4;},K=(_0x334a1b,_0x902e7c)=>(_0x367417,_0x229d1a)=>_0x902e7c(_0x367417,_0x229d1a,_0x334a1b);let ae=class extends _0x1d3622{constructor(_0x55bdd5,_0x5486ba,_0x1a8ba0,_0x4b8d8e,_0x2e07ca){const _0x121209=_0x23037e;super(),this[_0x121209(0x24a)]=_0x55bdd5,this[_0x121209(0x30e)]=_0x5486ba,this[_0x121209(0x2d6)]=_0x1a8ba0,this[_0x121209(0x1ff)]=_0x4b8d8e,_0x2e07ca?_0x2e07ca==null||_0x2e07ca[_0x121209(0x279)]()[_0x121209(0x36c)](()=>this[_0x121209(0x2f5)]()):(this[_0x121209(0x30e)][_0x121209(0x383)]('[CollaborationDataLoaderController]',_0x121209(0x3fb)),this[_0x121209(0x2f5)]());}async[_0x23037e(0x2f5)](){const _0x228724=_0x23037e,_0x2fa4cc=this[_0x228724(0x24a)][_0x228724(0x34e)](_0x228724(0x2a9)),_0xf7807f=this[_0x228724(0x24a)][_0x228724(0x34e)](_0x228724(0x228)),_0x5ce61b=this[_0x228724(0x24a)][_0x228724(0x34e)]('subunit');if(!_0x2fa4cc||!_0xf7807f){this[_0x228724(0x30e)][_0x228724(0x383)](_0x228724(0x240),_0x228724(0x408));return;}const _0x505d3d=await this[_0x228724(0x1ff)][_0x228724(0x272)](_0x2fa4cc,Number(_0xf7807f),_0x5ce61b);_0x505d3d&&_0x505d3d instanceof _0x31a656&&this[_0x228724(0x22f)](_0x505d3d);}async['_setupSubUnitSync'](_0x305400){const _0x33e589=_0x23037e;await this[_0x33e589(0x255)](_0x305400),_0x305400[_0x33e589(0x409)][_0x33e589(0x277)](_0x1f8529(this['dispose$']))[_0x33e589(0x286)](_0x262838=>{_0x262838&&this['_updateURLWithCurrentState'](_0x262838);}),this[_0x33e589(0x24a)][_0x33e589(0x2b8)][_0x33e589(0x277)](_0x1f8529(this[_0x33e589(0x388)]))[_0x33e589(0x286)](()=>this[_0x33e589(0x255)](_0x305400));}[_0x23037e(0x3b9)](_0x2cee7f,_0x57bf2e=!0x1){const _0x1ed597=_0x23037e,_0x393514=this['_urlService']['getParam']('subunit');_0x2cee7f[_0x1ed597(0x38c)]()!==_0x393514&&this['_urlService']['setParam'](_0x1ed597(0x3a3),_0x2cee7f[_0x1ed597(0x38c)](),_0x57bf2e);}async['_updateSubUnitFromURLParams'](_0x7b013c){const _0x1c86d6=_0x23037e;var _0x3a1a69;const _0x531260=this['_urlService'][_0x1c86d6(0x34e)](_0x1c86d6(0x3a3));if(!_0x531260||!_0x7b013c[_0x1c86d6(0x302)](_0x531260)){const _0x4aa4b8=_0x7b013c[_0x1c86d6(0x30f)]()[0x0],_0x31729a=_0x7b013c[_0x1c86d6(0x302)](_0x4aa4b8);if(!_0x31729a)return;this[_0x1c86d6(0x3b9)](_0x31729a,!0x0),await this[_0x1c86d6(0x2d6)][_0x1c86d6(0x3d8)](_0x5b0313['id'],{'unitId':_0x7b013c[_0x1c86d6(0x23c)](),'subUnitId':_0x4aa4b8});return;}((_0x3a1a69=_0x7b013c[_0x1c86d6(0x416)]())==null?void 0x0:_0x3a1a69['getSheetId']())!==_0x531260&&await this[_0x1c86d6(0x2d6)][_0x1c86d6(0x3d8)](_0x5b0313['id'],{'unitId':_0x7b013c['getUnitId'](),'subUnitId':_0x531260});}};ae=Ni([K(0x0,At),K(0x1,_0x285ace),K(0x2,_0x409061),K(0x3,_0x57b7af(_0x1de1a6)),K(0x4,_0x1f94a2(_0x331afc))],ae);var bi=Object[_0x23037e(0x2c0)],Ui=(_0xc09724,_0x27b89c,_0x72fca0,_0x2ed809)=>{const _0x35da06=_0x23037e;for(var _0x4647b8=_0x2ed809>0x1?void 0x0:_0x2ed809?bi(_0x27b89c,_0x72fca0):_0x27b89c,_0x559256=_0xc09724[_0x35da06(0x285)]-0x1,_0x41b1d6;_0x559256>=0x0;_0x559256--)(_0x41b1d6=_0xc09724[_0x559256])&&(_0x4647b8=_0x41b1d6(_0x4647b8)||_0x4647b8);return _0x4647b8;},tt=(_0x35c38d,_0x21f834)=>(_0x1f2637,_0x56ca66)=>_0x21f834(_0x1f2637,_0x56ca66,_0x35c38d);let Ae=class extends _0x1d3622{constructor(_0x1082d0,_0x49a2b3){const _0x3d7c6d=_0x23037e;super(),this[_0x3d7c6d(0x275)]=_0x1082d0,this[_0x3d7c6d(0x3b8)]=_0x49a2b3,this[_0x3d7c6d(0x2f5)]();}[_0x23037e(0x2f5)](){const _0x115ef5=_0x23037e,_0x168ee4=this;this[_0x115ef5(0x2b4)](this[_0x115ef5(0x275)][_0x115ef5(0x2e9)]({'onBeforePasteImage':async _0xad6163=>{const _0x129a60=_0x115ef5,_0x5d9041=await _0x168ee4['_imageIoService'][_0x129a60(0x1f6)](_0xad6163);return _0x5d9041?{'source':_0x5d9041['source'],'imageSourceType':_0x5d9041[_0x129a60(0x335)]}:null;}}));}};Ae=Ui([tt(0x0,_0x5222a8),tt(0x1,_0x33779e)],Ae);const st=[_0x23037e(0x2ab),_0x23037e(0x2e7),_0x23037e(0x266),_0x23037e(0x206),'blue.400','yellow.400'];class je extends _0x2adf18{constructor(){const _0x237f29=_0x23037e;super(...arguments),l(this,_0x237f29(0x3a6),new Map()),l(this,_0x237f29(0x2f2),0x0);}[_0x23037e(0x340)](_0x237162){const _0x3ce0d4=_0x23037e;if(this['_assignedColors'][_0x3ce0d4(0x239)](_0x237162))return this[_0x3ce0d4(0x3a6)][_0x3ce0d4(0x2d3)](_0x237162);const _0x1cea56=st[this['_colorIndex']];return this[_0x3ce0d4(0x2f2)]=(this[_0x3ce0d4(0x2f2)]+0x1)%st['length'],this[_0x3ce0d4(0x3a6)][_0x3ce0d4(0x2a0)](_0x237162,_0x1cea56),_0x1cea56;}}function Pt(_0x31ab0d){const _0x15bb42=_0x23037e;let _0x59f098='';for(const _0x187813 of _0x31ab0d){const {startOffset:_0x2e7509,endOffset:_0x185a5c,isActive:_0x448d65,rangeType:_0x341495,segmentId:_0x509905,segmentPage:_0x43c2f2}=_0x187813;_0x59f098[_0x15bb42(0x285)]&&(_0x59f098+=','),_0x59f098+=_0x2e7509+':'+_0x185a5c+':'+(_0x448d65?'1':'0')+':'+_0x341495+':'+_0x509905+':'+_0x43c2f2;}return _0x59f098;}function Li(_0x36374b){const _0x1afcdb=_0x23037e,_0x674b8a=_0x36374b[_0x1afcdb(0x33d)](','),_0x1ffbb4=[];for(const _0x39fb13 of _0x674b8a){const [_0x45c4ad,_0x25a4c7,_0x12183d,_0x429b43,_0x1b6482,_0x598ff7]=_0x39fb13[_0x1afcdb(0x33d)](':');_0x1ffbb4['push']({'startOffset':Number(_0x45c4ad),'endOffset':Number(_0x25a4c7),'collapsed':_0x45c4ad===_0x25a4c7,'isActive':_0x12183d==='1','rangeType':_0x429b43===_0x3c6aa3[_0x1afcdb(0x38f)]?_0x3c6aa3[_0x1afcdb(0x38f)]:_0x3c6aa3[_0x1afcdb(0x399)],'segmentId':typeof _0x1b6482=='string'?String(_0x1b6482):'','segmentPage':Number(_0x598ff7!=null?_0x598ff7:-0x1)});}return _0x1ffbb4[_0x1afcdb(0x2f8)](_0x2e1968=>_0x2e1968['isActive'])||(_0x1ffbb4[0x0][_0x1afcdb(0x373)]=!0x0),_0x1ffbb4;}class Xe extends _0x1d3622{constructor(){const _0xb21970=_0x23037e;super(...arguments),l(this,_0xb21970(0x39e),new _0x107cff(null)),l(this,_0xb21970(0x2c2),this['_collabCursorState$'][_0xb21970(0x2ee)]());}[_0x23037e(0x35c)](_0x29e3df){const _0x168e9f=_0x23037e,{unitID:_0x2060d7,memberID:_0xf09147,textRanges:_0x1f6694}=_0x29e3df,_0x1434eb=Pt(_0x1f6694);if(_0x1434eb==='')return;const _0x481051={'unitID':_0x2060d7,'memberID':_0xf09147,'selection':_0x1434eb};this[_0x168e9f(0x39e)][_0x168e9f(0x2a5)](_0x481051);}}var Mi=Object[_0x23037e(0x2c0)],Ai=(_0x49ad7a,_0x1bdc72,_0x3438fa,_0x39ef05)=>{const _0x4b18a0=_0x23037e;for(var _0x448e00=_0x39ef05>0x1?void 0x0:_0x39ef05?Mi(_0x1bdc72,_0x3438fa):_0x1bdc72,_0x357e28=_0x49ad7a[_0x4b18a0(0x285)]-0x1,_0x1d1a29;_0x357e28>=0x0;_0x357e28--)(_0x1d1a29=_0x49ad7a[_0x357e28])&&(_0x448e00=_0x1d1a29(_0x448e00)||_0x448e00);return _0x448e00;},A=(_0x51a78c,_0x481d95)=>(_0x2e098a,_0x51ce1b)=>_0x481d95(_0x2e098a,_0x51ce1b,_0x51a78c);const Pi=0x12c,wi=0x64;let Pe=class extends _0x1d3622{constructor(_0x515878,_0x4ac84d,_0x3e6d0,_0x31dc79,_0x4756ce,_0x4eff3d,_0x2dbcfb,_0xb1d7db,_0x12002c){const _0xdfac02=_0x23037e;super(),l(this,_0xdfac02(0x278),!0x1),l(this,_0xdfac02(0x2f5),!0x1),l(this,_0xdfac02(0x3da),new _0x107cff(new Map())),l(this,'cursorInfo$',this[_0xdfac02(0x3da)][_0xdfac02(0x2ee)]()),l(this,'_roomMembers$',new _0x107cff([])),l(this,_0xdfac02(0x363),this[_0xdfac02(0x28d)][_0xdfac02(0x277)](_0x48f0e5(Pi))),l(this,'_updateLocalCursor',_0x16545f(_0x281270=>{const _0x181af5=_0xdfac02,_0x472a65={'eventID':_0x2d5bf8[_0x181af5(0x400)],'data':{'unitID':this[_0x181af5(0x256)],'memberID':this[_0x181af5(0x21f)][_0x181af5(0x24f)](),'selection':Pt(_0x281270)}};this[_0x181af5(0x21f)][_0x181af5(0x3ea)](_0x472a65,this[_0x181af5(0x256)]);},wi)),(this[_0xdfac02(0x256)]=_0x515878,this['_session']=_0x4ac84d,this[_0xdfac02(0x1f8)]=_0x3e6d0,this[_0xdfac02(0x41b)]=_0x31dc79,this[_0xdfac02(0x2b3)]=_0x4756ce,this[_0xdfac02(0x362)]=_0x4eff3d,this[_0xdfac02(0x237)]=_0x2dbcfb,this[_0xdfac02(0x2f9)]=_0xb1d7db,this[_0xdfac02(0x2d6)]=_0x12002c);}get[_0x23037e(0x27e)](){const _0x4965e2=_0x23037e;return this[_0x4965e2(0x3da)][_0x4965e2(0x267)]();}get[_0x23037e(0x3cb)](){const _0xf3703f=_0x23037e;return this[_0xf3703f(0x28d)][_0xf3703f(0x267)]();}[_0x23037e(0x3b4)](){const _0x4de548=_0x23037e;super['dispose'](),this[_0x4de548(0x3da)][_0x4de548(0x2a5)](new Map()),this[_0x4de548(0x3da)]['complete'](),this[_0x4de548(0x28d)][_0x4de548(0x2a5)]([]),this[_0x4de548(0x28d)][_0x4de548(0x232)]();}['init'](){const _0x203d77=_0x23037e;this['_init']||(this['_init']=!0x0,this[_0x203d77(0x21f)][_0x203d77(0x3dc)][_0x203d77(0x277)](_0x1f8529(this[_0x203d77(0x388)]))[_0x203d77(0x286)](_0x3dda1f=>{const _0x57460b=_0x203d77;_0x3dda1f===_0x3b587d[_0x57460b(0x34a)]?this[_0x57460b(0x2c3)]():this['_toggleOffline']();}),this[_0x203d77(0x21f)]['event$'][_0x203d77(0x277)](_0x1f8529(this[_0x203d77(0x388)]))[_0x203d77(0x286)](_0x378c27=>{const _0x25f5ae=_0x203d77,_0x2170fa=_0x378c27[_0x25f5ae(0x276)];_0x2170fa===_0x2d5bf8[_0x25f5ae(0x400)]&&this[_0x25f5ae(0x202)](_0x378c27),_0x2170fa===_0x2d5bf8[_0x25f5ae(0x28e)]&&this[_0x25f5ae(0x331)](_0x378c27);}),this[_0x203d77(0x2b4)](this[_0x203d77(0x2d6)][_0x203d77(0x421)](_0xd9cfbc=>{const _0x8156fd=_0x203d77,_0x3ff270=_0xd9cfbc[_0x8156fd(0x3dd)];_0x3ff270!=null&&this[_0x8156fd(0x278)]&&_0xd9cfbc['id']===_0x3fa432['id']&&_0x3ff270[_0x8156fd(0x26b)]===this[_0x8156fd(0x256)]&&_0x3ff270[_0x8156fd(0x300)]===!0x1&&_0x3ff270[_0x8156fd(0x2ec)][_0x8156fd(0x285)]>0x0&&this[_0x8156fd(0x3b0)](_0x3ff270[_0x8156fd(0x2ec)]);})),this['_syncEditingCollabCursorService']['collabCursorState$']['pipe'](_0x1f8529(this[_0x203d77(0x388)]))[_0x203d77(0x286)](_0x556b2b=>{const _0x1d8f18=_0x203d77;if((_0x556b2b==null?void 0x0:_0x556b2b['unitID'])!==this['unitID'])return;const _0x711d09={'eventID':_0x2d5bf8['UPDATE_CURSOR'],'data':_0x556b2b};this[_0x1d8f18(0x202)](_0x711d09);}),this['disposeWithMe'](this[_0x203d77(0x2d6)][_0x203d77(0x421)](_0x94377f=>{const _0x3153e6=_0x203d77;if(_0x94377f[_0x3153e6(0x3dd)]==null)return;const _0x1be994=_0x94377f['params'];if(_0x94377f['id']!==_0x4442d5['id']||_0x1be994[_0x3153e6(0x26b)]!==this[_0x3153e6(0x256)])return;const _0x32d9cc={'id':_0x3153e6(0x34c),'params':_0x1be994},_0x284526=this['cursorInfo'];for(const [_0x35b67a,_0xb47a0a]of _0x284526){const _0x3b8287={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0xb47a0a[_0x3153e6(0x2ec)]}},_0x223208=this[_0x3153e6(0x237)]['transformMutation'](_0x32d9cc,_0x3b8287,!0x1);if(_0x3d5424(_0x223208))throw _0x223208[_0x3153e6(0x2e5)];_0x284526[_0x3153e6(0x2a0)](_0x35b67a,{..._0xb47a0a,'ranges':_0x223208[_0x3153e6(0x329)]['params'][_0x3153e6(0x21b)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x284526);});})));}['_onCursorUpdate'](_0x3d6256){const _0x247714=_0x23037e;var _0x290a12,_0x505f46;const {memberID:_0x8a631,selection:_0x2f03bd}=_0x3d6256[_0x247714(0x30d)],_0x520433=Li(_0x2f03bd),_0x5b168e=(_0x505f46=(_0x290a12=this[_0x247714(0x2b3)]['getMember'](this[_0x247714(0x256)],_0x8a631))==null?void 0x0:_0x290a12[_0x247714(0x33f)])!=null?_0x505f46:_0x247714(0x356),_0x3f0f52={'color':this[_0x247714(0x41b)][_0x247714(0x340)](_0x8a631),'name':_0x5b168e,'ranges':_0x520433},_0x97a0a1=this[_0x247714(0x27e)];_0x97a0a1['set'](_0x8a631,_0x3f0f52),this[_0x247714(0x3da)][_0x247714(0x2a5)](_0x97a0a1);}[_0x23037e(0x331)](_0x363b53){const _0x35a844=_0x23037e,{memberID:_0x29a825}=_0x363b53[_0x35a844(0x30d)],_0x4ef935=this['cursorInfo'];_0x4ef935[_0x35a844(0x33a)](_0x29a825),this[_0x35a844(0x3da)][_0x35a844(0x2a5)](_0x4ef935);}[_0x23037e(0x2c3)](){const _0x1edd12=_0x23037e;var _0x5787ec;if(this[_0x1edd12(0x278)]=!0x0,((_0x5787ec=this[_0x1edd12(0x2f9)][_0x1edd12(0x2a6)]())==null?void 0x0:_0x5787ec[_0x1edd12(0x23c)]())!==this[_0x1edd12(0x256)])return;const _0x53164d=this[_0x1edd12(0x1f8)]['get'](_0x4b96b6)[_0x1edd12(0x1f5)]();Array['isArray'](_0x53164d)&&_0x53164d['length']>0x0&&this[_0x1edd12(0x3b0)](_0x53164d);}[_0x23037e(0x2c9)](){const _0x26cce6=_0x23037e;this[_0x26cce6(0x278)]=!0x1;}};Pe=Ai([A(0x2,_0x57b7af(_0xc05c74)),A(0x3,_0x57b7af(je)),A(0x4,_0x57b7af(_0x254d55)),A(0x5,_0x57b7af(Xe)),A(0x6,_0x459e0f),A(0x7,_0x2c6926),A(0x8,_0x409061)],Pe);var yi=Object[_0x23037e(0x2c0)],$i=(_0x29a2e2,_0x373e77,_0x39fcfa,_0x302bd8)=>{const _0x38c268=_0x23037e;for(var _0x250de9=_0x302bd8>0x1?void 0x0:_0x302bd8?yi(_0x373e77,_0x39fcfa):_0x373e77,_0x152332=_0x29a2e2[_0x38c268(0x285)]-0x1,_0x7520eb;_0x152332>=0x0;_0x152332--)(_0x7520eb=_0x29a2e2[_0x152332])&&(_0x250de9=_0x7520eb(_0x250de9)||_0x250de9);return _0x250de9;},B=(_0x2cded7,_0x5bbfb1)=>(_0x3fa5d7,_0x4c9211)=>_0x5bbfb1(_0x3fa5d7,_0x4c9211,_0x2cded7);const xi=0x12c,Bi=0x64,Fi=()=>{let _0x493cef=[],_0x430ab7=!0x1;return _0x18e8ed=>{const _0xf72c5f=_0x596d;_0x493cef[_0xf72c5f(0x3b6)](_0x18e8ed),_0x430ab7||(_0x430ab7=!0x0,setTimeout(()=>{const _0x4e0647=_0xf72c5f;_0x493cef[_0x4e0647(0x342)](_0x16c66e=>_0x16c66e()),_0x493cef=[],_0x430ab7=!0x1;}));};};let we=class extends _0x1d3622{constructor(_0x3a9019,_0x163db6,_0x4fe115,_0x51668d,_0x6fcd00,_0x2f0068,_0x8e0068,_0x30081d){const _0x3d0fe4=_0x23037e;super(),l(this,_0x3d0fe4(0x278),!0x1),l(this,_0x3d0fe4(0x2f5),!0x1),l(this,_0x3d0fe4(0x3da),new _0x107cff(new Map())),l(this,'cursorInfo$',this[_0x3d0fe4(0x3da)][_0x3d0fe4(0x2ee)]()),l(this,_0x3d0fe4(0x28d),new _0x107cff([])),l(this,'roomMembers$',this['_roomMembers$'][_0x3d0fe4(0x277)](_0x48f0e5(xi))),l(this,'_updateLocalCursor',_0x16545f((_0x34ba64,_0x552cef)=>{const _0xa8f9fd=_0x3d0fe4,_0x5c6b83={'eventID':_0x2d5bf8[_0xa8f9fd(0x400)],'data':{'unitID':this['unitID'],'memberID':this[_0xa8f9fd(0x21f)][_0xa8f9fd(0x24f)](),'selection':_0xef98ea(_0x34ba64,_0x552cef['range'])}};this[_0xa8f9fd(0x21f)][_0xa8f9fd(0x3ea)](_0x5c6b83,this[_0xa8f9fd(0x256)]);},Bi)),(this['unitID']=_0x3a9019,this[_0x3d0fe4(0x21f)]=_0x163db6,this['_injector']=_0x4fe115,this[_0x3d0fe4(0x41b)]=_0x51668d,this[_0x3d0fe4(0x2b3)]=_0x6fcd00,this[_0x3d0fe4(0x2f9)]=_0x2f0068,this[_0x3d0fe4(0x2d6)]=_0x8e0068,this['_refRangeService']=_0x30081d);}get['cursorInfo'](){const _0x190623=_0x23037e;return this[_0x190623(0x3da)][_0x190623(0x267)]();}get[_0x23037e(0x3cb)](){const _0x34e811=_0x23037e;return this[_0x34e811(0x28d)][_0x34e811(0x267)]();}[_0x23037e(0x3b4)](){const _0x3d8477=_0x23037e;super[_0x3d8477(0x3b4)](),this[_0x3d8477(0x3da)][_0x3d8477(0x2a5)](new Map()),this['_cursorInfo$'][_0x3d8477(0x232)](),this[_0x3d8477(0x28d)][_0x3d8477(0x2a5)]([]),this[_0x3d8477(0x28d)][_0x3d8477(0x232)]();}[_0x23037e(0x377)](){const _0x31460a=_0x23037e;this[_0x31460a(0x2f5)]||(this[_0x31460a(0x2f5)]=!0x0,this[_0x31460a(0x21f)][_0x31460a(0x3dc)]['pipe'](_0x1f8529(this[_0x31460a(0x388)]))[_0x31460a(0x286)](_0x292d04=>{const _0x10a91b=_0x31460a;_0x292d04===_0x3b587d[_0x10a91b(0x34a)]?this['_toggleOnline']():this[_0x10a91b(0x2c9)]();}),this[_0x31460a(0x21f)][_0x31460a(0x33c)][_0x31460a(0x277)](_0x1f8529(this[_0x31460a(0x388)]))[_0x31460a(0x286)](_0x49387d=>{const _0x12d3b3=_0x31460a,_0x56f013=_0x49387d[_0x12d3b3(0x276)];_0x56f013===_0x2d5bf8[_0x12d3b3(0x400)]&&this[_0x12d3b3(0x202)](_0x49387d),_0x56f013===_0x2d5bf8[_0x12d3b3(0x28e)]&&this[_0x12d3b3(0x331)](_0x49387d);}),this[_0x31460a(0x376)](),this[_0x31460a(0x2b4)](this[_0x31460a(0x2d6)][_0x31460a(0x421)](_0x156513=>{const _0x207b19=_0x31460a;if(this[_0x207b19(0x278)]&&_0x156513['id']===_0x1b5f73['id']&&_0x156513['params']['unitId']===this[_0x207b19(0x256)]){const _0x1d05b2=_0x156513[_0x207b19(0x3dd)];this[_0x207b19(0x3b0)](_0x1d05b2['subUnitId'],_0x1d05b2[_0x207b19(0x305)][0x0]);}})));}['_onCursorUpdate'](_0xd17e69){const _0x545f66=_0x23037e;var _0x41751f,_0x296e76;const {memberID:_0x1e6789,selection:_0x5a974c}=_0xd17e69[_0x545f66(0x30d)],{sheetName:_0x552bd6,range:_0x2ea047}=_0x584d03(_0x5a974c),_0x54cd38={'name':(_0x296e76=(_0x41751f=this[_0x545f66(0x2b3)]['getMember'](this[_0x545f66(0x256)],_0x1e6789))==null?void 0x0:_0x41751f[_0x545f66(0x33f)])!=null?_0x296e76:_0x545f66(0x356),'range':this['_getMergeRange'](_0x552bd6,_0x2ea047),'sheetID':_0x552bd6,'color':this[_0x545f66(0x41b)][_0x545f66(0x340)](_0x1e6789),'selection':_0x5a974c},_0x5141c4=this[_0x545f66(0x27e)];_0x5141c4[_0x545f66(0x2a0)](_0x1e6789,_0x54cd38),this[_0x545f66(0x3da)][_0x545f66(0x2a5)](_0x5141c4);}[_0x23037e(0x331)](_0x34b722){const _0x1470c0=_0x23037e,{memberID:_0x44c0bf}=_0x34b722[_0x1470c0(0x30d)],_0x541f9f=this[_0x1470c0(0x27e)];_0x541f9f[_0x1470c0(0x33a)](_0x44c0bf),this['_cursorInfo$'][_0x1470c0(0x2a5)](_0x541f9f);}['_getMergeRange'](_0xd9dbcd,_0x346f54){const _0x3bfbec=_0x23037e;var _0x5804fc,_0x513b40;const _0x4947d1=(_0x513b40=(_0x5804fc=this[_0x3bfbec(0x2f9)][_0x3bfbec(0x225)](this['unitID']))==null?void 0x0:_0x5804fc[_0x3bfbec(0x302)](_0xd9dbcd))==null?void 0x0:_0x513b40['getMergeData']();return(_0x4947d1==null?void 0x0:_0x4947d1[_0x3bfbec(0x3d3)](_0x30dea8=>_0x231b0b[_0x3bfbec(0x37d)](_0x30dea8,_0x346f54)))||_0x346f54;}[_0x23037e(0x376)](){const _0x2607b8=new _0x31703a(),_0x4540f4=Fi(),_0x1fcf51=()=>{const _0x33eac1=_0x596d;_0x2607b8[_0x33eac1(0x3b4)]();const _0x389bb2=(_0x2e00c5,_0x135fae,_0x38132f,_0x9565d6)=>{const _0xac6ec1=_0x33eac1;let _0x12bf36=[];switch(_0x2e00c5['id']){case _0x5546d5[_0xac6ec1(0x402)]:{_0x12bf36=_0x2f0783(_0x2e00c5,_0x9565d6);break;}case _0x5546d5[_0xac6ec1(0x2d1)]:{_0x12bf36=_0x4536fa(_0x2e00c5,_0x9565d6);break;}case _0x5546d5[_0xac6ec1(0x3fd)]:{_0x12bf36=_0x13497b(_0x2e00c5,_0x9565d6);break;}case _0x5546d5[_0xac6ec1(0x3a8)]:{_0x12bf36=_0x5c823a(_0x2e00c5,_0x9565d6);break;}case _0x5546d5[_0xac6ec1(0x324)]:{_0x12bf36=_0x5b21d5(_0x2e00c5,_0x9565d6);break;}case _0x5546d5[_0xac6ec1(0x200)]:{_0x12bf36=_0x2d53e8(_0x2e00c5,_0x9565d6);break;}case _0x5546d5['MoveRangeCommandId']:{_0x12bf36=_0x62f1a4(_0x2e00c5,_0x9565d6);break;}case _0x5546d5[_0xac6ec1(0x23d)]:{_0x12bf36=_0x15b017(_0x2e00c5,_0x9565d6);break;}case _0x5546d5[_0xac6ec1(0x3f6)]:{_0x12bf36=_0x7f5d7e(_0x2e00c5,_0x9565d6);break;}}const _0x2617b0=_0x3dbed1(_0x12bf36,_0x9565d6),_0x41744a=this[_0xac6ec1(0x27e)][_0xac6ec1(0x2d3)](_0x135fae);if(_0x41744a&&_0x2617b0){const _0x3c3791={..._0x41744a,'range':_0x2617b0};this['cursorInfo']['set'](_0x135fae,_0x3c3791),_0x4540f4(()=>{const _0x49453e=_0xac6ec1,_0x16428b=this['_refRangeService'][_0x49453e(0x3e8)](_0x2617b0,_0x1db1e4=>(_0x16428b[_0x49453e(0x3b4)](),_0x389bb2(_0x1db1e4,_0x135fae,_0x38132f,_0x2617b0)));_0x2607b8[_0x49453e(0x30b)](_0x16428b);});}return{'redos':[],'undos':[]};};this[_0x33eac1(0x27e)][_0x33eac1(0x342)]((_0xe9e54d,_0x30e55e)=>{const _0x13e1b0=_0x33eac1,{range:_0x2a400c,sheetID:_0xf72323}=_0xe9e54d,_0x59ae6e=this['_refRangeService'][_0x13e1b0(0x3e8)](_0x2a400c,_0x236436=>(_0x59ae6e[_0x13e1b0(0x3b4)](),_0x389bb2(_0x236436,_0x30e55e,_0xf72323,_0x2a400c)));_0x2607b8[_0x13e1b0(0x30b)](_0x59ae6e);});};this['disposeWithMe'](_0x586ed0(this['_cursorInfo$']['subscribe'](()=>{_0x1fcf51();})));}[_0x23037e(0x2c3)](){const _0x16eb1a=_0x23037e;var _0x29f376,_0xa52bcd;if(this['_online']=!0x0,((_0x29f376=this[_0x16eb1a(0x2f9)]['getFocusedUnit']())==null?void 0x0:_0x29f376[_0x16eb1a(0x23c)]())!==this['unitID'])return;const _0x50dc2c=(_0xa52bcd=this[_0x16eb1a(0x1f8)]['get'](_0x4e7057)['getCurrentSelections']())==null?void 0x0:_0xa52bcd[0x0],_0x162166=this[_0x16eb1a(0x2f9)][_0x16eb1a(0x21e)](_0x175e13[_0x16eb1a(0x2be)])[_0x16eb1a(0x416)]();_0x50dc2c&&_0x162166&&this[_0x16eb1a(0x3b0)](_0x162166[_0x16eb1a(0x38c)](),_0x50dc2c);}['_toggleOffline'](){this['_online']=!0x1;}};we=$i([B(0x2,_0x57b7af(_0xc05c74)),B(0x3,_0x57b7af(je)),B(0x4,_0x57b7af(_0x254d55)),B(0x5,_0x2c6926),B(0x6,_0x409061),B(0x7,_0x57b7af(_0x60f440))],we);var ki=Object['getOwnPropertyDescriptor'],Hi=(_0x54cdcc,_0x5d5527,_0x64a23,_0x54be78)=>{const _0x42ed8d=_0x23037e;for(var _0x36b166=_0x54be78>0x1?void 0x0:_0x54be78?ki(_0x5d5527,_0x64a23):_0x5d5527,_0x51767e=_0x54cdcc[_0x42ed8d(0x285)]-0x1,_0x42348c;_0x51767e>=0x0;_0x51767e--)(_0x42348c=_0x54cdcc[_0x51767e])&&(_0x36b166=_0x42348c(_0x36b166)||_0x36b166);return _0x36b166;},Ee=(_0x4607cb,_0x25567d)=>(_0x594afc,_0x4a558d)=>_0x25567d(_0x594afc,_0x4a558d,_0x4607cb);let H=class extends _0x1d3622{constructor(_0x5e93b4,_0x2eae73,_0x2b13b0){const _0x2cfc5e=_0x23037e;super(),l(this,_0x2cfc5e(0x40b),new Map()),l(this,_0x2cfc5e(0x268),new _0x37e983()),(this[_0x2cfc5e(0x2f9)]=_0x5e93b4,this[_0x2cfc5e(0x1f8)]=_0x2eae73,this[_0x2cfc5e(0x22a)]=_0x2b13b0,this[_0x2cfc5e(0x2f5)]());}['dispose'](){const _0x31e8a9=_0x23037e;super['dispose'](),this[_0x31e8a9(0x268)][_0x31e8a9(0x232)](),this[_0x31e8a9(0x40b)][_0x31e8a9(0x342)](_0x8f31f0=>_0x8f31f0[_0x31e8a9(0x3b4)]());}[_0x23037e(0x3c2)](_0x58b6ea){const _0xe8fc2e=_0x23037e;return this['_entities'][_0xe8fc2e(0x239)](_0x58b6ea)?this['_entities']['get'](_0x58b6ea)['cursorInfo$']:this[_0xe8fc2e(0x268)]['pipe'](_0x72003c(_0x24407b=>_0x24407b[_0xe8fc2e(0x256)]===_0x58b6ea),_0x1a78b4(_0x2c2182=>_0x2c2182['cursorInfo$']));}[_0x23037e(0x2f5)](){const _0x248029=_0x23037e;this[_0x248029(0x2f9)]['getTypeOfUnitAdded$'](_0x175e13[_0x248029(0x2be)])[_0x248029(0x277)](_0x1f8529(this[_0x248029(0x388)]))[_0x248029(0x286)](async _0x3cede7=>{const _0x398291=_0x248029,_0x419282=_0x3cede7['getUnitId'](),_0x1d1fdf=await this['_startSheetCollabCursor'](_0x419282);this[_0x398291(0x268)][_0x398291(0x2a5)](_0x1d1fdf),this[_0x398291(0x40b)][_0x398291(0x2a0)](_0x419282,_0x1d1fdf);}),this[_0x248029(0x2f9)][_0x248029(0x2a2)](_0x175e13[_0x248029(0x375)])['pipe'](_0x1f8529(this[_0x248029(0x388)]))[_0x248029(0x277)](_0x72003c(_0x325aee=>!_0x325aee[_0x248029(0x23c)]()[_0x248029(0x2d5)]('__')))['subscribe'](async _0x2fba79=>{const _0x4829e9=_0x248029,_0x2a638f=_0x2fba79[_0x4829e9(0x23c)](),_0x49802c=await this[_0x4829e9(0x2cb)](_0x2a638f);this['_entityInit$'][_0x4829e9(0x2a5)](_0x49802c),this['_entities']['set'](_0x2a638f,_0x49802c);}),_0x4680f6(this[_0x248029(0x2f9)][_0x248029(0x20d)](_0x175e13[_0x248029(0x375)]),this['_univerInstanceService'][_0x248029(0x20d)](_0x175e13[_0x248029(0x2be)]))['pipe'](_0x1f8529(this['dispose$']))[_0x248029(0x286)](_0x56a4cb=>{const _0x2736a1=_0x248029,_0x178593=_0x56a4cb['getUnitId'](),_0x5a04ca=this[_0x2736a1(0x40b)][_0x2736a1(0x2d3)](_0x178593);_0x5a04ca&&(_0x5a04ca[_0x2736a1(0x3b4)](),this[_0x2736a1(0x40b)][_0x2736a1(0x33a)](_0x178593));});}async[_0x23037e(0x3b2)](_0x45fc04){const _0x5b3072=_0x23037e,_0x333344=await this[_0x5b3072(0x22a)]['requireSession'](_0x45fc04),_0x376020=this[_0x5b3072(0x1f8)][_0x5b3072(0x30c)](we,_0x45fc04,_0x333344);return _0x376020['init'](),_0x376020;}async[_0x23037e(0x2cb)](_0x53e8ad){const _0x22cde3=_0x23037e,_0x2e0085=await this[_0x22cde3(0x22a)]['requireSession'](_0x53e8ad),_0x31a1d8=this[_0x22cde3(0x1f8)]['createInstance'](Pe,_0x53e8ad,_0x2e0085);return _0x31a1d8[_0x22cde3(0x377)](),_0x31a1d8;}};H=Hi([Ee(0x0,_0x2c6926),Ee(0x1,_0x57b7af(_0xc05c74)),Ee(0x2,_0x57b7af(_0x421172))],H);const Q=0x14,it=0xc8,pe=0x4,Yi=0x5;function Wi(_0x828e59,_0x5c0b7d){const _0x859768=_0x23037e;let {radius:_0x49fecb,width:_0x31be45,height:_0x122716}=_0x5c0b7d;_0x49fecb=_0x49fecb!=null?_0x49fecb:0x0,_0x31be45=_0x31be45!=null?_0x31be45:0x1e,_0x122716=_0x122716!=null?_0x122716:0x1e;let _0x59b65b=0x0,_0x5571f6=0x0,_0x311184=0x0;_0x59b65b=_0x5571f6=_0x311184=Math[_0x859768(0x27c)](_0x49fecb,_0x31be45/0x2,_0x122716/0x2),_0x828e59[_0x859768(0x322)](),_0x828e59[_0x859768(0x2aa)](_0x59b65b,0x0),_0x828e59[_0x859768(0x427)](_0x31be45-_0x5571f6,0x0),_0x828e59[_0x859768(0x24b)](_0x31be45-_0x5571f6,_0x5571f6,_0x5571f6,Math['PI']*0x3/0x2,0x0,!0x1),_0x828e59[_0x859768(0x427)](_0x31be45,_0x122716-_0x311184),_0x828e59['arc'](_0x31be45-_0x311184,_0x122716-_0x311184,_0x311184,0x0,Math['PI']/0x2,!0x1),_0x828e59['lineTo'](0x0,_0x122716),_0x828e59['lineTo'](0x0,_0x59b65b),_0x828e59[_0x859768(0x24b)](_0x59b65b,_0x59b65b,_0x59b65b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x828e59[_0x859768(0x230)](),_0x5c0b7d[_0x859768(0x293)]&&(_0x828e59[_0x859768(0x41d)](),_0x828e59['fillStyle']=_0x5c0b7d['fill'],_0x5c0b7d[_0x859768(0x3f9)]===_0x859768(0x2af)?_0x828e59[_0x859768(0x293)](_0x859768(0x2af)):_0x828e59['fill'](),_0x828e59[_0x859768(0x2dd)]());}class me extends _0x403c8d{constructor(_0xc3cc63,_0x524682){const _0x477d89=_0x23037e;super(_0xc3cc63,_0x524682),l(this,'color'),l(this,_0x477d89(0x3f8)),(this['color']=_0x524682==null?void 0x0:_0x524682[_0x477d89(0x205)],this[_0x477d89(0x3f8)]=_0x524682==null?void 0x0:_0x524682[_0x477d89(0x3f8)]);}static[_0x23037e(0x23a)](_0x361129,_0x2ba0fa){const _0xdef3e=_0x23037e,{text:_0x34e29c,color:_0x18bc09}=_0x2ba0fa;_0x361129[_0xdef3e(0x41d)](),_0x361129[_0xdef3e(0x32f)]=_0xdef3e(0x2d2);const _0x5d2163=_0x361129[_0xdef3e(0x386)](_0x34e29c)[_0xdef3e(0x292)],_0x24b365=Math[_0xdef3e(0x27c)](_0x5d2163+0x2*pe,it);Wi(_0x361129,{'height':Q,'radius':0x4,'width':_0x24b365,'fill':_0x18bc09}),_0x361129[_0xdef3e(0x3c4)]='#FFF';const _0x321eed=pe,_0x577c41=Q-Yi,_0x27832b=it-0x2*pe;if(_0x5d2163>_0x27832b){let _0x241e59='',_0x114543=0x0;for(const _0xfa55b3 of _0x34e29c){const _0x925031=_0x361129['measureText'](_0xfa55b3)[_0xdef3e(0x292)];if(_0x114543+_0x925031<=_0x27832b-_0x361129[_0xdef3e(0x386)](_0xdef3e(0x253))[_0xdef3e(0x292)])_0x241e59+=_0xfa55b3,_0x114543+=_0x925031;else{_0x241e59+='...';break;}}_0x361129[_0xdef3e(0x22d)](_0x241e59,_0x321eed,_0x577c41);}else _0x361129[_0xdef3e(0x22d)](_0x34e29c,_0x321eed,_0x577c41);_0x361129[_0xdef3e(0x2dd)]();}[_0x23037e(0x25f)](_0x541fb2){const _0x32f2b9=_0x23037e;me[_0x32f2b9(0x23a)](_0x541fb2,this);}}const Oe=_0x23037e(0x2d8),Vi=_0x23037e(0x219),ji=_0x23037e(0x211),z=0x6,Xi=1.5,Te=0x4,Gi=1.5,Ki='rgba(255,\x20255,\x20255,\x200.01)';class nt{constructor(_0xe36ea9,_0x372750,_0x39d26f,_0x76c0f9){const _0x5895b9=_0x23037e;l(this,_0x5895b9(0x422),[]),l(this,'_anchor',null),l(this,_0x5895b9(0x246),null),l(this,_0x5895b9(0x3a2),null),l(this,'_hideTimer',null),l(this,_0x5895b9(0x374),null),(this[_0x5895b9(0x2e4)]=_0xe36ea9,this['_scene']=_0x372750,this['_docSkeleton']=_0x39d26f,this['_document']=_0x76c0f9,this['_render']());}set[_0x23037e(0x29e)](_0x4071fb){const _0x50184e=_0x23037e;_0x4071fb?(this[_0x50184e(0x3a2)]&&this[_0x50184e(0x3a2)][_0x50184e(0x310)](),this[_0x50184e(0x246)]&&this['_textBubble'][_0x50184e(0x327)]()):(this['_anchorDot']&&this['_anchorDot'][_0x50184e(0x327)](),this['_textBubble']&&this['_textBubble'][_0x50184e(0x310)]());}[_0x23037e(0x3b4)](){const _0x3cb456=_0x23037e;for(const _0x38c3ef of this[_0x3cb456(0x422)])_0x38c3ef[_0x3cb456(0x3b4)]();this[_0x3cb456(0x246)]&&this[_0x3cb456(0x246)][_0x3cb456(0x3b4)](),this[_0x3cb456(0x3a2)]&&this[_0x3cb456(0x3a2)][_0x3cb456(0x3b4)](),this[_0x3cb456(0x412)]&&this[_0x3cb456(0x412)][_0x3cb456(0x3b4)](),this[_0x3cb456(0x374)]&&this[_0x3cb456(0x374)]();}[_0x23037e(0x398)](){const _0x500196=_0x23037e;var _0x37e19c;const {_docSkeleton:_0xccf63a,_document:_0x1991ae}=this,{color:_0x4835b1,name:_0x517093,ranges:_0x27e31b}=this[_0x500196(0x2e4)],_0x2ed36e=_0x1991ae[_0x500196(0x309)](),{docsLeft:_0x367349,docsTop:_0x476f03}=_0x2ed36e,_0x4b5748=new _0xcac73d(_0x2ed36e,_0xccf63a);for(const {startOffset:_0x390537,endOffset:_0x18300e,rangeType:_0x5fce1b,segmentId:_0x5126c0,segmentPage:_0x5dd3b8,collapsed:_0x47a4fc,isActive:_0x4313fb}of _0x27e31b){const _0x1973a7=_0xccf63a[_0x500196(0x3e4)](_0x390537,!0x0,_0x5126c0,_0x5dd3b8);let _0x1253da=_0xccf63a[_0x500196(0x3e4)](_0x18300e,!0x0,_0x5126c0,_0x5dd3b8);if(_0x1253da==null&&(_0x1253da=_0xccf63a['findNodePositionByCharIndex'](_0x18300e-0x1,!0x1,_0x5126c0,_0x5dd3b8)),_0x4313fb){const {contentBoxPointGroup:_0x2f0cb0}=_0x4b5748[_0x500196(0x3fc)](_0x1253da,_0x1253da);if(_0x2f0cb0['length']===0x0)continue;this[_0x500196(0x3eb)](_0x4835b1,_0x2f0cb0,_0x367349,_0x476f03,_0x517093),this[_0x500196(0x374)]=this['_handleHover']();}if(_0x1973a7&&_0x1253da){if(_0x5fce1b===_0x3c6aa3[_0x500196(0x399)]){const _0x44dde5=new _0xbcad60(_0x2ed36e,_0xccf63a),{pointGroup:_0x4bee11}=(_0x37e19c=_0x44dde5['getRangePointData'](_0x1973a7,_0x1253da))!=null?_0x37e19c:{};if(_0x4bee11==null||_0x4bee11[_0x500196(0x285)]===0x0)continue;this[_0x500196(0x38e)](_0x4835b1,_0x4bee11,_0x367349,_0x476f03);}else{if(!_0x47a4fc){const {borderBoxPointGroup:_0x6b0e71}=_0x4b5748[_0x500196(0x3fc)](_0x1973a7,_0x1253da);if(_0x6b0e71[_0x500196(0x285)]===0x0)continue;this[_0x500196(0x313)](_0x4835b1,_0x6b0e71,_0x367349,_0x476f03);}}}}}[_0x23037e(0x3eb)](_0x523c53,_0x2118a8,_0x4553b6,_0x2f60bf,_0x262f1e){const _0x554027=_0x23037e,_0x4ba804=this[_0x554027(0x3b7)](_0x2118a8),{left:_0x323975,top:_0x1042b3,height:_0x1420eb}=_0x4ba804,_0x2ec6ed=this[_0x554027(0x26c)](),_0x382a8a=Gi/_0x2ec6ed,_0x208af6=new _0x13c2ec(Oe+_0x21c798(z),{'left':_0x323975+_0x4553b6-_0x382a8a,'top':_0x1042b3+_0x2f60bf,'height':_0x1420eb,'width':Xi,'fill':_0x523c53||_0x29e4a4(_0x527bec[_0x554027(0x2f0)],0x0),'strokeWidth':_0x382a8a,'stroke':Ki,'evented':!0x0});this[_0x554027(0x412)]=_0x208af6,this[_0x554027(0x3ba)][_0x554027(0x3ae)](_0x208af6,_0x2279bd);const _0x34582e=new _0x13c2ec(Oe+_0x21c798(z),{'left':_0x323975+_0x4553b6-_0x382a8a,'top':_0x1042b3+_0x2f60bf-Te/0x2,'height':Te,'width':Te,'fill':_0x523c53||_0x29e4a4(_0x527bec[_0x554027(0x2f0)],0x0),'strokeWidth':0x0,'stroke':_0x523c53||_0x29e4a4(_0x527bec[_0x554027(0x2f0)],0x0),'evented':!0x1});this[_0x554027(0x3a2)]=_0x34582e,this[_0x554027(0x3ba)][_0x554027(0x3ae)](_0x34582e,_0x2279bd);const _0x2a6e0c=new me(Oe+_0x21c798(z),{'left':_0x323975+_0x4553b6-_0x382a8a,'top':_0x1042b3+_0x2f60bf-Q,'text':_0x262f1e,'color':_0x523c53});this[_0x554027(0x246)]=_0x2a6e0c,this['_scene'][_0x554027(0x3ae)](_0x2a6e0c,_0x2279bd),this['_hover']=!0x1;}[_0x23037e(0x351)](){const _0x4b336e=_0x23037e,_0x1dc46f=this['_anchor'][_0x4b336e(0x3e2)][_0x4b336e(0x3ac)](()=>{this['_hover']=!0x0;}),_0x3658be=this[_0x4b336e(0x412)][_0x4b336e(0x2cd)]['subscribeEvent'](()=>{const _0x5e05c5=_0x4b336e;this[_0x5e05c5(0x217)]&&clearTimeout(this[_0x5e05c5(0x217)]),this[_0x5e05c5(0x217)]=setTimeout(()=>{const _0x50930e=_0x5e05c5;this[_0x50930e(0x29e)]=!0x1;},0x7d0);});return()=>{const _0x30c726=_0x4b336e;_0x1dc46f['unsubscribe'](),_0x3658be[_0x30c726(0x224)]();};}['_drawTextRange'](_0x5009be,_0x2974a3,_0x4ce0b0,_0x372c81){const _0x5b2b4e=_0x23037e,_0x1ce878=new _0x20724d(_0x5009be)[_0x5b2b4e(0x1f2)](0.2)[_0x5b2b4e(0x204)](),_0xbe7f67=new _0x2d1fb7(Vi+_0x21c798(z),{'pointsGroup':_0x2974a3,'fill':_0x1ce878||_0x29e4a4(_0x527bec['black'],0.2),'left':_0x4ce0b0,'top':_0x372c81,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5b2b4e(0x422)][_0x5b2b4e(0x3b6)](_0xbe7f67),this[_0x5b2b4e(0x3ba)]['addObject'](_0xbe7f67,_0x2279bd);}['_drawRectRange'](_0x2e690e,_0x437225,_0x2971eb,_0x2fd3ec){const _0x5a5652=_0x23037e,_0x2b4e96=new _0x20724d(_0x2e690e)[_0x5a5652(0x1f2)](0.2)[_0x5a5652(0x204)](),_0x2d2ffb=new _0x2d1fb7(ji+_0x21c798(z),{'pointsGroup':_0x437225,'fill':_0x2b4e96||_0x29e4a4(_0x527bec[_0x5a5652(0x2f0)],0.2),'left':_0x2971eb,'top':_0x2fd3ec,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5a5652(0x422)][_0x5a5652(0x3b6)](_0x2d2ffb),this[_0x5a5652(0x3ba)]['addObject'](_0x2d2ffb,_0x2279bd);}[_0x23037e(0x3b7)](_0x14cd08){const _0x17f294=_0x14cd08[0x0],_0x4cc987=_0x17f294[0x0],_0x3a0686=_0x17f294[0x2],{x:_0x464859,y:_0x35b0a5}=_0x4cc987,{x:_0x1e7186,y:_0xdfd605}=_0x3a0686;return{'left':_0x464859,'top':_0x35b0a5,'width':_0x1e7186-_0x464859,'height':_0xdfd605-_0x35b0a5};}['_getScale'](){const _0x205e05=_0x23037e,{scaleX:_0x45a6a9,scaleY:_0x5ab2d8}=this[_0x205e05(0x3ba)][_0x205e05(0x41a)]();return Math['max'](_0x45a6a9,_0x5ab2d8);}}var zi=Object[_0x23037e(0x2c0)],Ji=(_0x3586c9,_0x3e9427,_0xbeb77a,_0x49b7fb)=>{const _0x19a1c8=_0x23037e;for(var _0x299d5b=_0x49b7fb>0x1?void 0x0:_0x49b7fb?zi(_0x3e9427,_0xbeb77a):_0x3e9427,_0x57c78c=_0x3586c9[_0x19a1c8(0x285)]-0x1,_0x3e93ab;_0x57c78c>=0x0;_0x57c78c--)(_0x3e93ab=_0x3586c9[_0x57c78c])&&(_0x299d5b=_0x3e93ab(_0x299d5b)||_0x299d5b);return _0x299d5b;},ie=(_0x4b264e,_0x48d0d4)=>(_0x5efe64,_0x3f9673)=>_0x48d0d4(_0x5efe64,_0x3f9673,_0x4b264e);let ye=class extends _0x1d3622{constructor(_0xae7e3a,_0x56f763,_0x3d5cbe,_0x58e826,_0x550f98){const _0x4bebb4=_0x23037e;super(),l(this,_0x4bebb4(0x307),[]),l(this,_0x4bebb4(0x423),[]),(this[_0x4bebb4(0x35f)]=_0xae7e3a,this['_docSkeletonManagerService']=_0x56f763,this[_0x4bebb4(0x2f4)]=_0x3d5cbe,this[_0x4bebb4(0x2d6)]=_0x58e826,this[_0x4bebb4(0x20f)]=_0x550f98,this[_0x4bebb4(0x2f5)]());}[_0x23037e(0x2f5)](){const _0x5e987c=_0x23037e,_0x159905=this[_0x5e987c(0x35f)][_0x5e987c(0x26b)],_0x422790=this['_docSkeletonManagerService'];this[_0x5e987c(0x2b4)](_0x4625a1([this[_0x5e987c(0x2f4)][_0x5e987c(0x3c2)](_0x159905),this[_0x5e987c(0x20f)][_0x5e987c(0x3d1)]])[_0x5e987c(0x277)](_0x43594e(([_0x51dd7a,_0x149c46])=>({'skeleton':_0x422790[_0x5e987c(0x2eb)](),'cursors':[..._0x51dd7a[_0x5e987c(0x2e3)]()][_0x5e987c(0x37f)](_0x5369e3=>({..._0x5369e3,'color':this[_0x5e987c(0x20f)][_0x5e987c(0x355)](_0x5369e3['color'])}))})))[_0x5e987c(0x286)](_0x2653a8=>{const _0x33c533=_0x5e987c;if(this[_0x33c533(0x2ce)](),_0x2653a8){const {skeleton:_0x448dbe,cursors:_0x22e1d2}=_0x2653a8;this['_updateCollabCursors'](_0x448dbe,_0x22e1d2);}})),this[_0x5e987c(0x3e0)](),this[_0x5e987c(0x28c)]();}[_0x23037e(0x381)](_0x3b903c,_0x102e48){const _0x338188=_0x23037e,{scene:_0x5997e8,mainComponent:_0x2dc74e}=this['_context'],_0x3b2c76=_0x102e48[_0x338188(0x218)](_0x516413=>new nt(_0x516413,_0x5997e8,_0x3b903c,_0x2dc74e));this[_0x338188(0x307)]=_0x3b2c76,this[_0x338188(0x423)]=_0x102e48;}[_0x23037e(0x397)](){const _0x419bb1=_0x23037e;this['_removeCollabCursors']();const {scene:_0x1552a3,mainComponent:_0x38c2bd}=this[_0x419bb1(0x35f)],_0x3e6df0=this[_0x419bb1(0x337)][_0x419bb1(0x2eb)](),_0x51017f=this[_0x419bb1(0x423)]['map'](_0x833a76=>new nt(_0x833a76,_0x1552a3,_0x3e6df0,_0x38c2bd));this[_0x419bb1(0x307)]=_0x51017f;}[_0x23037e(0x2ce)](){const _0x20e666=_0x23037e;this[_0x20e666(0x307)][_0x20e666(0x342)](_0x3935e6=>_0x3935e6[_0x20e666(0x3b4)]()),this['_cursorShapes']=[];}[_0x23037e(0x28c)](){const _0xacc1c8=_0x23037e,_0x493a96=[_0x41542c['id']];this[_0xacc1c8(0x2b4)](this[_0xacc1c8(0x2d6)]['onCommandExecuted'](_0x3c9d77=>{const _0x511654=_0xacc1c8;_0x493a96['includes'](_0x3c9d77['id'])&&_0x3c9d77[_0x511654(0x3dd)][_0x511654(0x26b)]===this['_context'][_0x511654(0x26b)]&&this[_0x511654(0x397)]();}));}[_0x23037e(0x3e0)](){const _0x9e2b2d=_0x23037e;this[_0x9e2b2d(0x2b4)](_0x40819d(this[_0x9e2b2d(0x35f)][_0x9e2b2d(0x288)][_0x9e2b2d(0x2a1)])['pipe'](_0x11482a(_0xb32a=>_0xb32a[_0x9e2b2d(0x228)]===_0x397d4d['resize']),_0xda8cfa(0x10))[_0x9e2b2d(0x286)](()=>{const _0x95fdbe=_0x9e2b2d;this[_0x95fdbe(0x397)]();}));}};ye=Ji([ie(0x1,_0x57b7af(_0x3f62c8)),ie(0x2,_0x57b7af(H)),ie(0x3,_0x409061),ie(0x4,_0x57b7af(_0xd8aa5f))],ye);const Zi=0x1,Qi=1.5;class qi extends _0x403c8d{constructor(_0x2e1deb,_0x5c9334){const _0x236a27=_0x23037e;super(_0x2e1deb,_0x5c9334),l(this,_0x236a27(0x274)),l(this,'_hovered',!0x1),l(this,_0x236a27(0x29c)),l(this,_0x236a27(0x393),''),l(this,_0x236a27(0x417),'top'),l(this,_0x236a27(0x314)),(_0x5c9334&&this[_0x236a27(0x221)](_0x5c9334),this[_0x236a27(0x3e2)][_0x236a27(0x3ac)](()=>this[_0x236a27(0x221)]({'hovered':!0x0})),this[_0x236a27(0x2cd)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x23037e(0x221)](_0xef4783){const _0x5effc0=_0x23037e;var _0x22325b,_0x2db6ea,_0x4dc631,_0x1cea26,_0x33c174,_0x19fa7d;this[_0x5effc0(0x274)]=(_0x22325b=_0xef4783[_0x5effc0(0x205)])!=null?_0x22325b:this[_0x5effc0(0x274)],this[_0x5effc0(0x40a)]=(_0x2db6ea=_0xef4783['hovered'])!=null?_0x2db6ea:this[_0x5effc0(0x40a)],this['_range']=(_0x4dc631=_0xef4783[_0x5effc0(0x3f4)])!=null?_0x4dc631:this[_0x5effc0(0x29c)],this[_0x5effc0(0x393)]=(_0x1cea26=_0xef4783[_0x5effc0(0x33f)])!=null?_0x1cea26:this[_0x5effc0(0x393)],this[_0x5effc0(0x417)]=(_0x33c174=_0xef4783[_0x5effc0(0x1f9)])!=null?_0x33c174:this[_0x5effc0(0x417)],this['_backgroundColor']=(_0x19fa7d=_0xef4783[_0x5effc0(0x2ae)])!=null?_0x19fa7d:this[_0x5effc0(0x314)],this[_0x5effc0(0x264)]({'width':_0xef4783[_0x5effc0(0x292)],'height':_0xef4783[_0x5effc0(0x296)]});}[_0x23037e(0x223)](_0x1d3043){const _0x169e49=_0x23037e,{row:_0x1f4fdb,column:_0x457b37}=_0x1d3043;if(_0x1f4fdb>=this[_0x169e49(0x29c)]['startRow']&&_0x1f4fdb<=this['_range'][_0x169e49(0x32a)]&&_0x457b37>=this[_0x169e49(0x29c)][_0x169e49(0x3df)]&&_0x457b37<=this['_range'][_0x169e49(0x20c)]){this[_0x169e49(0x221)]({'hovered':!0x0});return;}this[_0x169e49(0x221)]({'hovered':!0x1});}['triggerDblclick'](_0x291357){return!0x1;}[_0x23037e(0x25f)](_0x3ae883){const _0x43a2b6=_0x23037e;_0x13c2ec[_0x43a2b6(0x23a)](_0x3ae883,{'width':this[_0x43a2b6(0x292)],'height':this[_0x43a2b6(0x296)],'strokeWidth':Qi,'stroke':this[_0x43a2b6(0x274)],'evented':!0x1,'fill':this[_0x43a2b6(0x314)]}),this['_hovered']&&(_0x3ae883['save'](),_0x3ae883[_0x43a2b6(0x233)](0x1,0x0,0x0,0x1,this[_0x43a2b6(0x292)],this[_0x43a2b6(0x417)]===_0x43a2b6(0x2fd)?0x0:-Q),me[_0x43a2b6(0x23a)](_0x3ae883,{'text':this[_0x43a2b6(0x393)],'color':this[_0x43a2b6(0x274)]}),_0x3ae883[_0x43a2b6(0x2dd)]());}}var en=Object['getOwnPropertyDescriptor'],tn=(_0x2d5e57,_0x494a9b,_0x5dc82a,_0x460a5d)=>{const _0x72fac4=_0x23037e;for(var _0x3464f3=_0x460a5d>0x1?void 0x0:_0x460a5d?en(_0x494a9b,_0x5dc82a):_0x494a9b,_0x15d02c=_0x2d5e57[_0x72fac4(0x285)]-0x1,_0x5b8b68;_0x15d02c>=0x0;_0x15d02c--)(_0x5b8b68=_0x2d5e57[_0x15d02c])&&(_0x3464f3=_0x5b8b68(_0x3464f3)||_0x3464f3);return _0x3464f3;},Ce=(_0x3dfc0c,_0x2dfd87)=>(_0x3d8cba,_0x2ab433)=>_0x2dfd87(_0x3d8cba,_0x2ab433,_0x3dfc0c);const sn=0x1389;let $e=class extends _0x1d3622{constructor(_0xf46e82,_0x1749c2,_0x4cea9a,_0x2ce172){const _0x5dc29f=_0x23037e;super(),l(this,'_cursors',new Set()),l(this,_0x5dc29f(0x392),null),(this[_0x5dc29f(0x35f)]=_0xf46e82,this[_0x5dc29f(0x3a4)]=_0x1749c2,this[_0x5dc29f(0x2f4)]=_0x4cea9a,this[_0x5dc29f(0x20f)]=_0x2ce172,this[_0x5dc29f(0x2f5)]());}[_0x23037e(0x2f5)](){const _0x12925a=_0x23037e;this[_0x12925a(0x3a4)][_0x12925a(0x358)][_0x12925a(0x277)](_0x62c4b1(this[_0x12925a(0x388)]),_0x18725f(_0x163947=>{const _0x59a0aa=_0x12925a;if(_0x163947){const _0x58f288=_0x163947['sheetId'];return _0x4625a1(this['_collabCursorController']['getCollabCursors$'](this[_0x59a0aa(0x35f)][_0x59a0aa(0x26b)]),this[_0x59a0aa(0x20f)]['currentTheme$'])[_0x59a0aa(0x277)](_0x43594e(([_0x50224c,_0x48ceeb])=>{const _0x50c153=_0x59a0aa,_0x1cf561=new Map();return _0x50224c[_0x50c153(0x342)]((_0x38324b,_0x51e38f)=>{const _0x576f01=_0x50c153;if(_0x38324b[_0x576f01(0x3f3)]===_0x58f288){const _0x4ea3bd={..._0x38324b};_0x4ea3bd[_0x576f01(0x205)]=this[_0x576f01(0x20f)][_0x576f01(0x355)](_0x38324b[_0x576f01(0x205)]),_0x1cf561[_0x576f01(0x2a0)](_0x51e38f,_0x4ea3bd);}}),{'skeleton':_0x163947,'cursors':_0x1cf561};}));}return _0x53144c({'skeleton':null,'cursors':new Map()});}))[_0x12925a(0x286)](({skeleton:_0x40a96a,cursors:_0xbc5ea5})=>{const _0x121dc8=_0x12925a;this[_0x121dc8(0x2ce)](),_0x40a96a&&this[_0x121dc8(0x381)](_0x40a96a,_0xbc5ea5);}),this['_sheetSkeletonManagerService'][_0x12925a(0x358)][_0x12925a(0x286)](_0x5fb810=>{const _0x5b4877=_0x12925a;if(_0x5fb810==null)return;const {skeleton:_0x32582e}=_0x5fb810,{scene:_0x4a63b2}=this[_0x5b4877(0x35f)];_0x4a63b2[_0x5b4877(0x2b7)]['subscribeEvent'](_0x16545f(_0xb8bbd0=>{const _0x6ef6b1=_0x5b4877;var _0x5efa80,_0x3b070f;const {offsetX:_0x31eaf4,offsetY:_0x524d0a}=_0xb8bbd0,{x:_0x2b8010,y:_0x4b4834}=_0x4a63b2[_0x6ef6b1(0x273)](_0x14908a[_0x6ef6b1(0x37e)]([_0x31eaf4,_0x524d0a])),{scaleX:_0x574616,scaleY:_0x5abc44}=_0x4a63b2[_0x6ef6b1(0x41a)](),_0x4cf0d7=_0x4a63b2['getViewport'](_0x17ae79['VIEW_MAIN']),_0x2cf4ce=_0x4a63b2['getVpScrollXYInfoByPosToVp'](_0x14908a['FromArray']([_0x2b8010,_0x4b4834]),_0x4cf0d7),_0x542e82=_0x32582e[_0x6ef6b1(0x2ad)](_0x31eaf4,_0x524d0a,_0x574616,_0x5abc44,_0x2cf4ce);((_0x5efa80=this[_0x6ef6b1(0x392)])==null?void 0x0:_0x5efa80[_0x6ef6b1(0x308)])===_0x542e82['column']&&((_0x3b070f=this['_lastPointer'])==null?void 0x0:_0x3b070f[_0x6ef6b1(0x1f3)])===_0x542e82['row']||this[_0x6ef6b1(0x423)][_0x6ef6b1(0x342)](_0xe234bd=>{const _0x5ba8ad=_0x6ef6b1;_0xe234bd[_0x5ba8ad(0x223)](_0x542e82);});},0x64));});}['_updateCollabCursors'](_0x49318c,_0x59d643){const _0x433e76=_0x23037e;var _0x499c2d;const _0x8f6e7c=(_0x499c2d=this[_0x433e76(0x3a4)][_0x433e76(0x25d)]())==null?void 0x0:_0x499c2d[_0x433e76(0x407)];if(!_0x8f6e7c)return;const _0x5d222a=this[_0x433e76(0x29b)]();if(!_0x5d222a)return;this[_0x433e76(0x423)][_0x433e76(0x342)](_0x12c802=>{_0x12c802['makeDirty']();});const {scene:_0x132c86}=_0x5d222a,_0xc4c84=nn(Array[_0x433e76(0x406)](_0x59d643['values']()))[_0x433e76(0x218)](_0x2112b4=>{const _0x4ab023=_0x433e76,{color:_0x121a90,range:_0x3af398,name:_0x5d8ec6,selection:_0x4df783,sheetID:_0x5da5cb}=_0x2112b4,{startColumn:_0x1c01ed,startRow:_0x53a284,endColumn:_0x17a1f2,endRow:_0x2bd90f}=_0x3af398,_0x9f2417=_0x421831(_0x53a284,_0x1c01ed,_0x132c86,_0x8f6e7c),_0x144502=_0x421831(_0x2bd90f,_0x17a1f2,_0x132c86,_0x8f6e7c),{columnHeaderHeightAndMarginTop:_0xa4ebd1}=_0x8f6e7c,{startX:_0xc09eb4,startY:_0x136f06}=_0x9f2417,{endX:_0x678631,endY:_0xe01780}=_0x144502,_0x51b8a3=_0x678631-_0xc09eb4,_0x2b48c2=_0xe01780-_0x136f06,_0x13de46={'labelPosition':_0x136f06-_0xa4ebd1>=Q?_0x4ab023(0x3ee):_0x4ab023(0x2fd),'sheetID':_0x5da5cb,'range':_0x3af398,'color':_0x121a90,'name':_0x5d8ec6,'selection':_0x4df783,'left':_0xc09eb4,'top':_0x136f06,'width':_0x51b8a3,'height':_0x2b48c2,'evented':!0x1,'zIndex':sn};return new qi(_0x5d8ec6,_0x13de46);});_0x132c86['addObjects'](_0xc4c84,Zi),this[_0x433e76(0x423)]=new Set(_0xc4c84);}[_0x23037e(0x2ce)](){const _0x301876=_0x23037e;var _0xe11171;(_0xe11171=this[_0x301876(0x423)])==null||_0xe11171['forEach'](_0x19d2e5=>_0x19d2e5['dispose']());}[_0x23037e(0x29b)](){const _0x1eb60f=_0x23037e;return _0x473f43(this[_0x1eb60f(0x35f)][_0x1eb60f(0x2a9)],this[_0x1eb60f(0x35f)]);}};$e=tn([Ce(0x1,_0x57b7af(_0x45795e)),Ce(0x2,_0x57b7af(H)),Ce(0x3,_0x57b7af(_0xd8aa5f))],$e);function nn(_0x388a6b){const _0x40433e=_0x23037e,_0x490b5f=new Map();return _0x388a6b[_0x40433e(0x342)](_0x2c20d5=>{const _0x288899=_0x40433e;if(_0x490b5f[_0x288899(0x239)](_0x2c20d5[_0x288899(0x37a)])){const _0x1e646e=_0x490b5f[_0x288899(0x2d3)](_0x2c20d5[_0x288899(0x37a)]);_0x1e646e[_0x288899(0x33f)]+=',\x20'+_0x2c20d5[_0x288899(0x33f)];}else _0x490b5f[_0x288899(0x2a0)](_0x2c20d5['selection'],_0x2c20d5);}),Array[_0x40433e(0x406)](_0x490b5f[_0x40433e(0x2e3)]());}var rn=Object[_0x23037e(0x2c0)],on=(_0x274509,_0x5c87a8,_0x219296,_0x4bf674)=>{const _0x9720d4=_0x23037e;for(var _0x139c71=_0x4bf674>0x1?void 0x0:_0x4bf674?rn(_0x5c87a8,_0x219296):_0x5c87a8,_0x27a9f2=_0x274509[_0x9720d4(0x285)]-0x1,_0x4b4304;_0x27a9f2>=0x0;_0x27a9f2--)(_0x4b4304=_0x274509[_0x27a9f2])&&(_0x139c71=_0x4b4304(_0x139c71)||_0x139c71);return _0x139c71;},F=(_0x346cb3,_0x44867a)=>(_0x3e8851,_0x4f31d9)=>_0x44867a(_0x3e8851,_0x4f31d9,_0x346cb3);let ce=class extends _0x2adf18{constructor(_0x37fc0b,_0x5d6127,_0xefc9e4,_0x60744c,_0x37da5a,_0x16a3f7){const _0x518c5f=_0x23037e;super(),this[_0x518c5f(0x1f1)]=_0x37fc0b,this[_0x518c5f(0x311)]=_0x5d6127,this[_0x518c5f(0x3d6)]=_0xefc9e4,this[_0x518c5f(0x426)]=_0x60744c,this[_0x518c5f(0x2a7)]=_0x37da5a,this[_0x518c5f(0x259)]=_0x16a3f7,this[_0x518c5f(0x303)](),this[_0x518c5f(0x210)]();}[_0x23037e(0x303)](){const _0x4fb93a=_0x23037e;this['disposeWithMe'](this[_0x4fb93a(0x1f1)][_0x4fb93a(0x396)](()=>{const _0x571f69=_0x4fb93a;if(this['_localCacheService'][_0x571f69(0x347)][_0x571f69(0x3f1)])return this[_0x571f69(0x259)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x23037e(0x210)](){const _0xd1628b=_0x23037e;this[_0xd1628b(0x2b4)](this[_0xd1628b(0x3d6)][_0xd1628b(0x33c)]['subscribe'](_0x26804f=>{const _0x30758c=_0xd1628b;_0x26804f['id']===_0x595d90[_0x30758c(0x298)]&&this[_0x30758c(0x426)]['show']({'type':_0x38ce13[_0x30758c(0x2f7)],'content':this[_0x30758c(0x259)]['t'](_0x30758c(0x38d))}),_0x26804f['id']===_0x595d90[_0x30758c(0x263)]&&this[_0x30758c(0x426)][_0x30758c(0x327)]({'type':_0x38ce13[_0x30758c(0x2f7)],'content':this[_0x30758c(0x259)]['t'](_0x30758c(0x31e))}),_0x26804f['id']===_0x595d90[_0x30758c(0x419)]&&this['_notificationService'][_0x30758c(0x327)]({'title':this[_0x30758c(0x259)]['t']('permission.title'),'content':this['_localeService']['t'](_0x30758c(0x28b)),'type':_0x30758c(0x2e5),'duration':0x0}),_0x26804f['id']===_0x595d90[_0x30758c(0x20a)]&&this[_0x30758c(0x426)][_0x30758c(0x327)]({'type':_0x38ce13['Error'],'content':this[_0x30758c(0x259)]['t'](_0x30758c(0x31e))+'('+_0x26804f[_0x30758c(0x30d)]+')'}),_0x26804f['id']===_0x595d90[_0x30758c(0x26e)]&&this['_messageService'][_0x30758c(0x327)]({'type':_0x38ce13[_0x30758c(0x2f7)],'content':this[_0x30758c(0x259)]['t'](_0x26804f['data']||'')}),_0x26804f['id']===_0x595d90[_0x30758c(0x3e5)]&&this[_0x30758c(0x426)][_0x30758c(0x327)]({'type':_0x38ce13['Warning'],'content':this[_0x30758c(0x259)]['t'](_0x30758c(0x2b5))}),_0x26804f['id']===_0x595d90[_0x30758c(0x23e)]&&this[_0x30758c(0x426)]['show']({'type':_0x38ce13[_0x30758c(0x248)],'content':this[_0x30758c(0x259)]['t'](_0x30758c(0x2ff))}),_0x26804f['id']===_0x595d90[_0x30758c(0x3de)]&&this[_0x30758c(0x426)][_0x30758c(0x327)]({'type':_0x38ce13[_0x30758c(0x248)],'content':this[_0x30758c(0x259)]['t'](_0x30758c(0x3c6))});}));}};ce=on([F(0x0,_0x282c8c),F(0x1,_0x2c165a),F(0x2,_0x57b7af(_0xf10605)),F(0x3,_0x92c012),F(0x4,_0x1c9405),F(0x5,_0x57b7af(_0x23ab5c))],ce);const an='collaboration-client-ui.config',rt={};var cn=Object[_0x23037e(0x2c0)],_n=(_0x2a8230,_0x2ba569,_0x220f46,_0x2845b5)=>{const _0x576f84=_0x23037e;for(var _0x52e6ad=_0x2845b5>0x1?void 0x0:_0x2845b5?cn(_0x2ba569,_0x220f46):_0x2ba569,_0x532231=_0x2a8230[_0x576f84(0x285)]-0x1,_0x1713d9;_0x532231>=0x0;_0x532231--)(_0x1713d9=_0x2a8230[_0x532231])&&(_0x52e6ad=_0x1713d9(_0x52e6ad)||_0x52e6ad);return _0x52e6ad;},ot=(_0x2ee758,_0x1918bc)=>(_0x292022,_0x6e7bb6)=>_0x1918bc(_0x292022,_0x6e7bb6,_0x2ee758);let _e=class{constructor(_0x2019cb,_0x4ba0ef){const _0x41228f=_0x23037e;this[_0x41228f(0x237)]=_0x2019cb,this['_renderManagerService']=_0x4ba0ef;}[_0x23037e(0x2cf)](_0x442675){const _0x15951d=_0x23037e;this[_0x15951d(0x1fc)](_0x442675),this[_0x15951d(0x24d)](_0x442675);}[_0x23037e(0x3bd)](_0x45f438){const _0x59c306=_0x23037e,{unitID:_0x348868}=_0x45f438,_0x48f6af=this['_renderManagerService']['getRenderById'](_0x348868)[_0x59c306(0x3bf)](_0x1b1e78),{redoCache:_0x2c6d93}=_0x48f6af[_0x59c306(0x323)]();if(_0x2c6d93['length']===0x0)return _0x45f438;let _0x473ff1=_0x4466a1[_0x59c306(0x2bc)](_0x45f438['mutations'][0x0]);for(let _0x8cbf60=0x0;_0x8cbf60<_0x2c6d93[_0x59c306(0x285)];_0x8cbf60++){const _0x28d74f={'id':_0x59c306(0x34c),'params':{..._0x2c6d93[_0x8cbf60]}},_0x529f9a=this[_0x59c306(0x237)][_0x59c306(0x41e)](_0x473ff1,_0x28d74f,!0x1);if(_0x3d5424(_0x529f9a))throw _0x529f9a[_0x59c306(0x2e5)];_0x473ff1=_0x529f9a[_0x59c306(0x297)];}return{..._0x4466a1[_0x59c306(0x2bc)](_0x45f438),'mutations':[_0x473ff1]};}[_0x23037e(0x1fc)](_0x335a92){const _0x3a0369=_0x23037e,{unitID:_0x67964}=_0x335a92,_0x5ef075=this[_0x3a0369(0x257)][_0x3a0369(0x3b1)](_0x67964)[_0x3a0369(0x3bf)](_0x1b1e78),{undoCache:_0x1cfe84,redoCache:_0x48a534}=_0x5ef075[_0x3a0369(0x323)]();if(_0x1cfe84[_0x3a0369(0x285)]===0x0||_0x48a534[_0x3a0369(0x285)]===0x0)return;const _0x4c4d3e=[],_0x221d3c=[];let _0x1b4cab=_0x4466a1[_0x3a0369(0x2bc)](_0x335a92[_0x3a0369(0x312)][0x0]),_0x1be332=_0x4466a1[_0x3a0369(0x2bc)](_0x335a92[_0x3a0369(0x312)][0x0]);for(let _0x3adf74=_0x1cfe84[_0x3a0369(0x285)]-0x1;_0x3adf74>=0x0;_0x3adf74--){const _0x3f6307={'id':_0x3a0369(0x34c),'params':{..._0x1cfe84[_0x3adf74]}},_0x51b29b={'id':_0x3a0369(0x34c),'params':{..._0x48a534[_0x3adf74]}},_0x3db805=this['_transformService'][_0x3a0369(0x41e)](_0x1b4cab,_0x3f6307,!0x1),_0x5ef8f5=this[_0x3a0369(0x237)][_0x3a0369(0x41e)](_0x1be332,_0x51b29b,!0x1);if(_0x3d5424(_0x3db805))throw _0x3db805['error'];if(_0x3d5424(_0x5ef8f5))throw _0x5ef8f5['error'];_0x4c4d3e[_0x3a0369(0x306)](_0x3db805[_0x3a0369(0x329)][_0x3a0369(0x3dd)]),_0x221d3c['unshift'](_0x5ef8f5['m2Prime']['params']),_0x1b4cab=_0x3db805[_0x3a0369(0x297)],_0x1be332=_0x5ef8f5[_0x3a0369(0x297)];}_0x5ef075[_0x3a0369(0x38b)]({'undoCache':_0x4c4d3e,'redoCache':_0x221d3c});}[_0x23037e(0x24d)](_0xba5ad1){const _0x2bd5e0=_0x23037e,{unitID:_0x4eff07}=_0xba5ad1,_0x53758c=this['_renderManagerService'][_0x2bd5e0(0x3b1)](_0x4eff07)[_0x2bd5e0(0x3bf)](_0x1b1e78),_0x4eb7c7=_0x53758c[_0x2bd5e0(0x27d)]();if(_0x4eb7c7==null)return;const _0x2e2be5=[{'id':_0x2bd5e0(0x34c),'params':{'unitId':_0xba5ad1['unitID'],'actions':null,'textRanges':[_0x4eb7c7]}}],_0x3debef=this['_transformService']['transformMutationsWithChangeset'](_0xba5ad1,_0x2e2be5);if(!_0x181dca(_0x3debef))throw _0x3debef[_0x2bd5e0(0x2e5)];const _0x121c61=_0x3debef[_0x2bd5e0(0x329)][0x0][_0x2bd5e0(0x3dd)][_0x2bd5e0(0x21b)];Array[_0x2bd5e0(0x2b0)](_0x121c61)&&_0x121c61['length']&&_0x53758c[_0x2bd5e0(0x35d)](_0x121c61[0x0]);}};_e=_n([ot(0x0,_0x459e0f),ot(0x1,_0x3947d8)],_e);var ln=Object[_0x23037e(0x2c0)],hn=(_0x4fabc2,_0x16c137,_0x5cd2d3,_0x3e148a)=>{for(var _0x471c96=_0x3e148a>0x1?void 0x0:_0x3e148a?ln(_0x16c137,_0x5cd2d3):_0x16c137,_0x22a572=_0x4fabc2['length']-0x1,_0x3f0e36;_0x22a572>=0x0;_0x22a572--)(_0x3f0e36=_0x4fabc2[_0x22a572])&&(_0x471c96=_0x3f0e36(_0x471c96)||_0x471c96);return _0x471c96;},Re=(_0x50470e,_0x248436)=>(_0x33d5d0,_0x24d630)=>_0x248436(_0x33d5d0,_0x24d630,_0x50470e);let le=class{constructor(_0x49689b,_0x17ffc8,_0x54bf51){const _0x3e3283=_0x23037e;this[_0x3e3283(0x1f8)]=_0x49689b,this[_0x3e3283(0x237)]=_0x17ffc8,this[_0x3e3283(0x3db)]=_0x54bf51;}[_0x23037e(0x2fa)](_0x13de27){this['_transformHistoryAndStateStack'](_0x13de27);}[_0x23037e(0x3bd)](_0x127780){const _0x372a4c=_0x23037e,{unitID:_0xedf17c}=_0x127780,{collaboration:_0x53bcf8}=this['_docStateChangeManagerService'][_0x372a4c(0x3cc)](_0xedf17c);if(_0x53bcf8[_0x372a4c(0x285)]===0x0)return _0x127780;let _0x31006e=_0x4466a1['deepClone'](_0x127780['mutations'][0x0]);for(let _0x3166f9=0x0;_0x3166f9<_0x53bcf8[_0x372a4c(0x285)];_0x3166f9++){const _0x550b53={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x53bcf8[_0x3166f9]['unitId'],..._0x53bcf8[_0x3166f9][_0x372a4c(0x339)]}},_0x1cc3f3=this[_0x372a4c(0x237)]['transformMutation'](_0x31006e,_0x550b53,!0x1);if(_0x3d5424(_0x1cc3f3))throw _0x1cc3f3[_0x372a4c(0x2e5)];_0x31006e=_0x1cc3f3['m1Prime'];}return{..._0x4466a1[_0x372a4c(0x2bc)](_0x127780),'mutations':[_0x31006e]};}[_0x23037e(0x3f2)](_0x37f771){const _0x270839=_0x23037e,{unitID:_0x3a78f9}=_0x37f771,{history:_0x562801,collaboration:_0x3bce0d}=this[_0x270839(0x3db)][_0x270839(0x3cc)](_0x3a78f9);if(_0x562801['length']===0x0&&_0x3bce0d[_0x270839(0x285)]===0x0)return;const _0x45d780=[],_0x4e1708=[];let _0x28eb58=_0x4466a1['deepClone'](_0x37f771['mutations'][0x0]),_0x44b320=_0x4466a1[_0x270839(0x2bc)](_0x37f771[_0x270839(0x312)][0x0]);for(let _0x3e8701=_0x562801[_0x270839(0x285)]-0x1;_0x3e8701>=0x0;_0x3e8701--){const _0x38dc47={'id':_0x270839(0x34c),'params':{'unitId':_0x562801[_0x3e8701][_0x270839(0x26b)],..._0x562801[_0x3e8701][_0x270839(0x361)]}},_0x5e4d17={'id':_0x270839(0x34c),'params':{'unitId':_0x562801[_0x3e8701][_0x270839(0x26b)],..._0x562801[_0x3e8701][_0x270839(0x339)]}},_0x1b74b8=this[_0x270839(0x237)][_0x270839(0x41e)](_0x28eb58,_0x38dc47,!0x1),_0x2b0e84=this[_0x270839(0x237)][_0x270839(0x41e)](_0x44b320,_0x5e4d17,!0x1);if(_0x3d5424(_0x1b74b8))throw _0x1b74b8[_0x270839(0x2e5)];if(_0x3d5424(_0x2b0e84))throw _0x2b0e84[_0x270839(0x2e5)];_0x45d780[_0x270839(0x306)]({..._0x562801[_0x3e8701],'undoState':_0x1b74b8[_0x270839(0x329)][_0x270839(0x3dd)],'redoState':_0x2b0e84[_0x270839(0x329)][_0x270839(0x3dd)]}),_0x28eb58=_0x1b74b8[_0x270839(0x297)],_0x44b320=_0x2b0e84[_0x270839(0x297)];}_0x28eb58=_0x4466a1[_0x270839(0x2bc)](_0x37f771[_0x270839(0x312)][0x0]),_0x44b320=_0x4466a1[_0x270839(0x2bc)](_0x37f771[_0x270839(0x312)][0x0]);for(let _0x14962c=_0x3bce0d['length']-0x1;_0x14962c>=0x0;_0x14962c--){const _0x18a62e={'id':_0x270839(0x34c),'params':{'unitId':_0x3bce0d[_0x14962c][_0x270839(0x26b)],..._0x3bce0d[_0x14962c][_0x270839(0x361)]}},_0x10853b={'id':_0x270839(0x34c),'params':{'unitId':_0x3bce0d[_0x14962c][_0x270839(0x26b)],..._0x3bce0d[_0x14962c][_0x270839(0x339)]}},_0x5928f0=this[_0x270839(0x237)][_0x270839(0x41e)](_0x28eb58,_0x18a62e,!0x1),_0x4547a0=this[_0x270839(0x237)][_0x270839(0x41e)](_0x44b320,_0x10853b,!0x1);if(_0x3d5424(_0x5928f0))throw _0x5928f0[_0x270839(0x2e5)];if(_0x3d5424(_0x4547a0))throw _0x4547a0['error'];_0x4e1708['unshift']({..._0x3bce0d[_0x14962c],'undoState':_0x5928f0[_0x270839(0x329)][_0x270839(0x3dd)],'redoState':_0x4547a0[_0x270839(0x329)][_0x270839(0x3dd)]}),_0x28eb58=_0x5928f0[_0x270839(0x297)],_0x44b320=_0x4547a0[_0x270839(0x297)];}this[_0x270839(0x3db)][_0x270839(0x2f1)](_0x3a78f9,{'history':_0x45d780,'collaboration':_0x4e1708});}};le=hn([Re(0x0,_0x57b7af(_0xc05c74)),Re(0x1,_0x459e0f),Re(0x2,_0x57b7af(_0x273172))],le);var un=Object[_0x23037e(0x2c0)],dn=(_0xa06d4d,_0x4e036e,_0x48a8a6,_0x5575d1)=>{const _0x1a2407=_0x23037e;for(var _0x595762=_0x5575d1>0x1?void 0x0:_0x5575d1?un(_0x4e036e,_0x48a8a6):_0x4e036e,_0x40c207=_0xa06d4d[_0x1a2407(0x285)]-0x1,_0x3e8181;_0x40c207>=0x0;_0x40c207--)(_0x3e8181=_0xa06d4d[_0x40c207])&&(_0x595762=_0x3e8181(_0x595762)||_0x595762);return _0x595762;},at=(_0x2e41d4,_0x50f324)=>(_0x6dc07e,_0x637e1e)=>_0x50f324(_0x6dc07e,_0x637e1e,_0x2e41d4);let he=class{constructor(_0x35997c,_0x3e66ba){const _0xd7624e=_0x23037e;this['_injector']=_0x35997c,this[_0xd7624e(0x237)]=_0x3e66ba;}[_0x23037e(0x39c)](_0x361cc7){const _0x2f6e17=_0x23037e;var _0x4811c6;const _0x5ee2f1=this[_0x2f6e17(0x1f8)][_0x2f6e17(0x2d3)](_0x4b96b6),_0x1a8bd6=(_0x4811c6=_0x5ee2f1[_0x2f6e17(0x1f5)]())!=null?_0x4811c6:[];if(_0x1a8bd6[_0x2f6e17(0x285)]===0x0)return;const _0x4b0aab=_0x361cc7['unitID'],_0x4c8132=[{'id':_0x2f6e17(0x34c),'params':{'unitId':_0x4b0aab,'actions':null,'textRanges':_0x1a8bd6}}],_0x501fe4=this[_0x2f6e17(0x237)]['transformMutationsWithChangeset'](_0x361cc7,_0x4c8132);if(!_0x181dca(_0x501fe4))throw _0x501fe4[_0x2f6e17(0x2e5)];const _0x39ff59=_0x501fe4[_0x2f6e17(0x329)][0x0][_0x2f6e17(0x3dd)][_0x2f6e17(0x21b)];Array[_0x2f6e17(0x2b0)](_0x39ff59)&&_0x39ff59[_0x2f6e17(0x285)]&&_0x5ee2f1[_0x2f6e17(0x258)](_0x39ff59,{'unitId':_0x4b0aab,'subUnitId':_0x4b0aab},!0x1);}};he=dn([at(0x0,_0x57b7af(_0xc05c74)),at(0x1,_0x459e0f)],he);var Sn=Object[_0x23037e(0x2c0)],In=(_0xa47c3b,_0x42b508,_0x3e2b87,_0x8024e4)=>{const _0x41f945=_0x23037e;for(var _0x4aa7cf=_0x8024e4>0x1?void 0x0:_0x8024e4?Sn(_0x42b508,_0x3e2b87):_0x42b508,_0x53ef59=_0xa47c3b[_0x41f945(0x285)]-0x1,_0x184a68;_0x53ef59>=0x0;_0x53ef59--)(_0x184a68=_0xa47c3b[_0x53ef59])&&(_0x4aa7cf=_0x184a68(_0x4aa7cf)||_0x4aa7cf);return _0x4aa7cf;},b=(_0x977ac3,_0x1249b9)=>(_0x35a4f2,_0x147bbe)=>_0x1249b9(_0x35a4f2,_0x147bbe,_0x977ac3);let ue=class extends _0x2adf18{constructor(_0x3f0dac,_0xab955d,_0x2bbf1,_0xb6f0fb,_0x4a925a,_0x3acb75,_0x5734cc,_0xaf1509){const _0x10d5bc=_0x23037e;super(),l(this,_0x10d5bc(0x352),new _0x107cff(_0x2bd07a[_0x10d5bc(0x3f5)])),(this['_docStateChangeManagerService']=_0x3f0dac,this[_0x10d5bc(0x3c7)]=_0xab955d,this[_0x10d5bc(0x208)]=_0x2bbf1,this[_0x10d5bc(0x40d)]=_0xb6f0fb,this[_0x10d5bc(0x34f)]=_0x4a925a,this[_0x10d5bc(0x2b6)]=_0x3acb75,this['_messageService']=_0x5734cc,this['_localeService']=_0xaf1509,this[_0x10d5bc(0x2c5)]());}[_0x23037e(0x2c5)](){const _0x34bf93=_0x23037e;this['disposeWithMe'](this[_0x34bf93(0x3c7)][_0x34bf93(0x349)][_0x34bf93(0x286)](_0x4d0c20=>{const _0x523c6b=_0x34bf93,_0x25b2ff=this[_0x523c6b(0x3db)][_0x523c6b(0x348)][_0x523c6b(0x286)](_0x3dac2f=>{const _0x5e17e6=_0x523c6b;if(_0x3dac2f==null)return;const {unitId:_0x345c32,redoState:_0x1ab877,commandId:_0x30ee06}=_0x3dac2f;if(_0x345c32!==_0x4d0c20[_0x5e17e6(0x256)])return;const _0x1cf2a6={'id':_0x30ee06,'type':_0x3a1dbc[_0x5e17e6(0x333)],'params':{'unitId':_0x345c32,'actions':_0x1ab877['actions'],'textRanges':null}};_0x4d0c20[_0x5e17e6(0x231)](_0x1cf2a6);});if(_0x4d0c20['disposeWithMe'](_0x25b2ff),_0x4d0c20 instanceof _0x5abbf2){const _0x515b86={'onTransformIME':_0x4aaf85=>this[_0x523c6b(0x208)][_0x523c6b(0x2cf)](_0x4aaf85),'onTransformState':_0x249f51=>this[_0x523c6b(0x40d)]['transformStateCache'](_0x249f51),'onTransformSelections':_0x54b0ee=>this['_docTransformSelectionsService'][_0x523c6b(0x39c)](_0x54b0ee),'onSyncEditingCollabCursor':_0x448152=>this[_0x523c6b(0x2b6)][_0x523c6b(0x35c)](_0x448152),'onTransformRemoteChangesetByIMECache':_0x425d56=>this['_docTransformIMECacheService'][_0x523c6b(0x3bd)](_0x425d56),'onTransformRemoteChangesetByStateCache':_0xc4e933=>this[_0x523c6b(0x40d)][_0x523c6b(0x3bd)](_0xc4e933)};_0x4d0c20['addHandlerCallback'](_0x515b86);}}));}};ue=In([b(0x0,_0x57b7af(_0x273172)),b(0x1,_0x57b7af(_0x2c7817)),b(0x2,_0x57b7af(_e)),b(0x3,_0x57b7af(le)),b(0x4,_0x57b7af(he)),b(0x5,_0x57b7af(Xe)),b(0x6,_0x92c012),b(0x7,_0x57b7af(_0x23ab5c))],ue);var Z=(_0x2b59fd=>(_0x2b59fd[_0x2b59fd[_0x23037e(0x2bd)]=0x0]=_0x23037e(0x2bd),_0x2b59fd[_0x2b59fd['OK']=0x1]='OK',_0x2b59fd[_0x2b59fd[_0x23037e(0x3ff)]=0x2]=_0x23037e(0x3ff),_0x2b59fd[_0x2b59fd[_0x23037e(0x419)]=0x3]='PERMISSION_DENIED',_0x2b59fd[_0x2b59fd[_0x23037e(0x235)]=0x4]=_0x23037e(0x235),_0x2b59fd[_0x2b59fd['UNAUTHENTICATED']=0x5]=_0x23037e(0x2ba),_0x2b59fd[_0x2b59fd[_0x23037e(0x2da)]=0x6]='ALREADY_EXISTS',_0x2b59fd[_0x2b59fd[_0x23037e(0x354)]=0x7]='INVALID_ARGUMENT',_0x2b59fd[_0x2b59fd[_0x23037e(0x2fb)]=0x8]='TOO_MANY_REQUESTS',_0x2b59fd[_0x2b59fd[_0x23037e(0x226)]=0x9]=_0x23037e(0x226),_0x2b59fd[_0x2b59fd[_0x23037e(0x384)]=0xa]=_0x23037e(0x384),_0x2b59fd[_0x2b59fd['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x23037e(0x420),_0x2b59fd[_0x2b59fd[_0x23037e(0x3c8)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x2b59fd[_0x2b59fd['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x23037e(0x1fa),_0x2b59fd[_0x2b59fd['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x23037e(0x3b5),_0x2b59fd[_0x2b59fd[_0x23037e(0x379)]=0xf]=_0x23037e(0x379),_0x2b59fd[_0x2b59fd['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x23037e(0x287),_0x2b59fd[_0x2b59fd[_0x23037e(0x35e)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x2b59fd[_0x2b59fd[_0x23037e(0x3af)]=0x65]=_0x23037e(0x3af),_0x2b59fd[_0x2b59fd['USER_NOT_FOUND']=0xc9]=_0x23037e(0x387),_0x2b59fd[_0x2b59fd[_0x23037e(0x245)]=0xca]=_0x23037e(0x245),_0x2b59fd[_0x2b59fd[_0x23037e(0x350)]=0x1389]=_0x23037e(0x350),_0x2b59fd[_0x2b59fd[_0x23037e(0x37c)]=0x1771]=_0x23037e(0x37c),_0x2b59fd[_0x2b59fd[_0x23037e(0x229)]=0x1772]=_0x23037e(0x229),_0x2b59fd[_0x2b59fd[_0x23037e(0x391)]=0x1773]=_0x23037e(0x391),_0x2b59fd[_0x2b59fd[_0x23037e(0x336)]=0x1b59]=_0x23037e(0x336),_0x2b59fd[_0x2b59fd[_0x23037e(0x281)]=0x1b5a]=_0x23037e(0x281),_0x2b59fd[_0x2b59fd[_0x23037e(0x2d7)]=0x1b5b]=_0x23037e(0x2d7),_0x2b59fd[_0x2b59fd[_0x23037e(0x2ac)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x2b59fd[_0x2b59fd[_0x23037e(0x317)]=0x1b5d]=_0x23037e(0x317),_0x2b59fd[_0x2b59fd[_0x23037e(0x401)]=0x1f41]=_0x23037e(0x401),_0x2b59fd[_0x2b59fd[_0x23037e(0x2b1)]=0x2329]=_0x23037e(0x2b1),_0x2b59fd[_0x2b59fd[_0x23037e(0x29d)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x2b59fd[_0x2b59fd[_0x23037e(0x33b)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x2b59fd[_0x2b59fd[_0x23037e(0x241)]=0x232c]=_0x23037e(0x241),_0x2b59fd[_0x2b59fd[_0x23037e(0x3c5)]=0x232d]=_0x23037e(0x3c5),_0x2b59fd[_0x2b59fd[_0x23037e(0x1fd)]=0x2711]=_0x23037e(0x1fd),_0x2b59fd[_0x2b59fd['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x23037e(0x27b),_0x2b59fd[_0x2b59fd[_0x23037e(0x32d)]=0x2713]=_0x23037e(0x32d),_0x2b59fd[_0x2b59fd[_0x23037e(0x3d7)]=0x2714]=_0x23037e(0x3d7),_0x2b59fd[_0x2b59fd['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x23037e(0x207),_0x2b59fd[_0x2b59fd[_0x23037e(0x2a8)]=0x271b]=_0x23037e(0x2a8),_0x2b59fd[_0x2b59fd[_0x23037e(0x25c)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x2b59fd[_0x2b59fd[_0x23037e(0x2df)]=0x271d]=_0x23037e(0x2df),_0x2b59fd[_0x2b59fd[_0x23037e(0x3bb)]=0x271e]=_0x23037e(0x3bb),_0x2b59fd[_0x2b59fd[_0x23037e(0x23b)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x2b59fd[_0x2b59fd[_0x23037e(0x378)]=0x2720]=_0x23037e(0x378),_0x2b59fd[_0x2b59fd[_0x23037e(0x22c)]=0x2af9]=_0x23037e(0x22c),_0x2b59fd[_0x2b59fd[_0x23037e(0x3d5)]=0x2ee1]=_0x23037e(0x3d5),_0x2b59fd[_0x2b59fd['INVALID_INVITE_CODE']=0x2ee2]=_0x23037e(0x343),_0x2b59fd[_0x2b59fd[_0x23037e(0x3cf)]=0x2ee3]=_0x23037e(0x3cf),_0x2b59fd[_0x2b59fd['USER_NOT_INVITED_CODE']=0x2ee4]=_0x23037e(0x344),_0x2b59fd[_0x2b59fd[_0x23037e(0x3c3)]=0x2ee5]=_0x23037e(0x3c3),_0x2b59fd[_0x2b59fd[_0x23037e(0x247)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x2b59fd[_0x2b59fd['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x23037e(0x3c1),_0x2b59fd[_0x2b59fd['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x23037e(0x3ab),_0x2b59fd[_0x2b59fd[_0x23037e(0x2b2)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x2b59fd[_0x2b59fd[_0x23037e(0x394)]=0x36b2]=_0x23037e(0x394),_0x2b59fd[_0x2b59fd[_0x23037e(0x3aa)]=0x36b3]=_0x23037e(0x3aa),_0x2b59fd[_0x2b59fd[_0x23037e(0x40c)]=0x36b4]=_0x23037e(0x40c),_0x2b59fd[_0x2b59fd['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x23037e(0x3ec),_0x2b59fd[_0x2b59fd[_0x23037e(0x321)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x2b59fd[_0x2b59fd[_0x23037e(0x338)]=0x3717]=_0x23037e(0x338),_0x2b59fd[_0x2b59fd['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x23037e(0x411),_0x2b59fd[_0x2b59fd[_0x23037e(0x330)]=0x3a99]=_0x23037e(0x330),_0x2b59fd[_0x2b59fd[_0x23037e(0x295)]=0x3a9a]=_0x23037e(0x295),_0x2b59fd[_0x2b59fd[_0x23037e(0x271)]=0x3a9b]=_0x23037e(0x271),_0x2b59fd[_0x2b59fd[_0x23037e(0x3ef)]=0x3a9c]=_0x23037e(0x3ef),_0x2b59fd[_0x2b59fd[_0x23037e(0x21d)]=0x3a9d]=_0x23037e(0x21d),_0x2b59fd[_0x2b59fd[_0x23037e(0x299)]=0x3a9e]=_0x23037e(0x299),_0x2b59fd[_0x2b59fd[_0x23037e(0x1f4)]=0x3a9f]=_0x23037e(0x1f4),_0x2b59fd[_0x2b59fd[_0x23037e(0x280)]=0x3e81]=_0x23037e(0x280),_0x2b59fd[_0x2b59fd[_0x23037e(0x22b)]=-0x1]=_0x23037e(0x22b),_0x2b59fd))(Z||{});function mn(_0x4ac1ea){const _0x57db93=_0x23037e;var _0x3328e7,_0x130b6c;const _0x259be3=(_0x3328e7=_0x4ac1ea['stageInfo'])==null?void 0x0:_0x3328e7[_0x57db93(0x3d2)],_0x4851a3=((_0x130b6c=_0x4ac1ea[_0x57db93(0x39b)])==null?void 0x0:_0x130b6c['totalFormulasToCalculate'])||0x0;return _0x259be3===_0x244207[_0x57db93(0x370)]&&_0x4851a3>0x0;}function fn(_0x5eec67){const _0x39538a=_0x23037e;return _0x5eec67[_0x39538a(0x3a0)]===_0x4e9f65['SUCCESS'];}var gn=Object[_0x23037e(0x2c0)],vn=(_0x5afaf2,_0x496900,_0x3dc954,_0x27101b)=>{const _0x4d543c=_0x23037e;for(var _0x1031e5=_0x27101b>0x1?void 0x0:_0x27101b?gn(_0x496900,_0x3dc954):_0x496900,_0x37f395=_0x5afaf2[_0x4d543c(0x285)]-0x1,_0x166411;_0x37f395>=0x0;_0x37f395--)(_0x166411=_0x5afaf2[_0x37f395])&&(_0x1031e5=_0x166411(_0x1031e5)||_0x1031e5);return _0x1031e5;},P=(_0x1681da,_0x58e50b)=>(_0x4ee7ef,_0x24278b)=>_0x58e50b(_0x4ee7ef,_0x24278b,_0x1681da);const En=_0x23037e(0x28a),pn=_0x23037e(0x332),On='/universer-api/license/formula/limit/done';let de=class extends _0x2adf18{constructor(_0x1be602,_0x49e142,_0xdb46ec,_0x319c16,_0x17409b,_0x41c90f,_0x33ab5e){const _0x2340b2=_0x23037e;super(),l(this,'_pollingInterval',null),l(this,_0x2340b2(0x2ef),0x0),l(this,_0x2340b2(0x234),0x0),l(this,_0x2340b2(0x395),[]),l(this,'_lastResponseTimestamp',0x0),(this[_0x2340b2(0x426)]=_0x1be602,this[_0x2340b2(0x2d6)]=_0x49e142,this[_0x2340b2(0x21a)]=_0xdb46ec,this[_0x2340b2(0x251)]=_0x319c16,this[_0x2340b2(0x2f9)]=_0x17409b,this[_0x2340b2(0x30e)]=_0x41c90f,this[_0x2340b2(0x259)]=_0x33ab5e,this[_0x2340b2(0x413)]());}[_0x23037e(0x413)](){const _0x5d508e=_0x23037e;this[_0x5d508e(0x2b4)](this[_0x5d508e(0x2d6)]['beforeCommandExecuted']((_0x4100ac,_0x5914c5)=>{const _0x25d900=_0x5d508e;var _0x4a5a9c;if(_0x4100ac['id']!==_0x3dc31f['id'])return;const _0x22f5d0=_0x4100ac[_0x25d900(0x3dd)];if(!this[_0x25d900(0x40f)]((_0x4a5a9c=_0x22f5d0[_0x25d900(0x3be)])!=null?_0x4a5a9c:[]))return;if(!this[_0x25d900(0x2fc)]())throw this['_checkAndWaitForCalculationPermission'](_0x4100ac,_0x5914c5),this['_showGuardMessage'](),new _0x4ec729();})),this[_0x5d508e(0x2b4)](this['_commandService']['onCommandExecuted']((_0x59306b,_0x83076b)=>{const _0x166351=_0x5d508e;if(_0x59306b['id']!==_0x3dea83['id'])return;const _0x1cc745=_0x59306b[_0x166351(0x3dd)];if(mn(_0x1cc745)){const _0x1a0786=_0x21c798();this[_0x166351(0x395)][_0x166351(0x3b6)](_0x1a0786),this[_0x166351(0x2c1)](_0x1a0786);}else{if(fn(_0x1cc745)&&this[_0x166351(0x395)]['length']>0x0){const _0x337f7d=this['_taskIds'][_0x166351(0x365)]();this[_0x166351(0x2f6)](_0x337f7d);}}}));}[_0x23037e(0x3b4)](){const _0x2cd6a6=_0x23037e;super[_0x2cd6a6(0x3b4)](),this[_0x2cd6a6(0x260)](),this[_0x2cd6a6(0x395)]=[],this['_currentUsage']=0x0,this['_maxFormulaLimit']=0x0,this[_0x2cd6a6(0x325)]=0x0;}async[_0x23037e(0x2bb)](_0x2ceba5,_0x309a5a){const _0x31a192=_0x23037e;for(let _0x50ce61=0x0;_0x50ce61<0x1e;_0x50ce61++)try{if(await this['_getFormulaLimitStatus'](),this['_checkCalculationAvailable']()){this[_0x31a192(0x32b)](_0x2ceba5,_0x309a5a),this['_messageService'][_0x31a192(0x327)]({'content':this['_localeService']['t']('formula.calculation.started'),'type':_0x38ce13[_0x31a192(0x315)]});return;}await new Promise(_0x3f2a84=>{const _0x7693a9=_0x31a192;this[_0x7693a9(0x3f0)]=window[_0x7693a9(0x38a)](_0x3f2a84,0x3e8);});}catch(_0x53f8c8){this[_0x31a192(0x30e)][_0x31a192(0x2e5)](_0x53f8c8);}this[_0x31a192(0x426)][_0x31a192(0x327)]({'content':this[_0x31a192(0x259)]['t'](_0x31a192(0x385)),'type':_0x38ce13[_0x31a192(0x248)]});}['_applyCommand'](_0x3bbaf9,_0x40c357){const _0x30c85d=_0x23037e;try{this[_0x30c85d(0x2d6)]['executeCommand'](_0x3bbaf9['id'],_0x3bbaf9[_0x30c85d(0x3dd)],_0x40c357);}catch(_0xe94ba4){this[_0x30c85d(0x30e)][_0x30c85d(0x2e5)](_0xe94ba4);}}[_0x23037e(0x25b)](_0x5ba650,_0x199cee){const _0x1783f9=_0x23037e;_0x199cee<this[_0x1783f9(0x325)]||(this[_0x1783f9(0x325)]=_0x199cee,this[_0x1783f9(0x2ef)]=Number[_0x1783f9(0x3b3)](_0x5ba650[_0x1783f9(0x236)]),this['_currentUsage']=Number[_0x1783f9(0x3b3)](_0x5ba650['currentUsage']));}async[_0x23037e(0x2c1)](_0x464a7c){const _0x29f3b8=_0x23037e;var _0x4e1136,_0x4a68a9;const _0xbfdd3c=Date['now']();try{const _0x5769b4=((_0x4e1136=this[_0x29f3b8(0x21a)]['getConfig'](_0x3c4393))==null?void 0x0:_0x4e1136['startFormulaLimitUrl'])||pn,_0x30ee38=(await this[_0x29f3b8(0x251)]['post'](_0x5769b4,{'body':JSON[_0x29f3b8(0x252)]({'taskId':_0x464a7c})}))[_0x29f3b8(0x319)];if(((_0x4a68a9=_0x30ee38[_0x29f3b8(0x2e5)])==null?void 0x0:_0x4a68a9['code'])!==Z['OK'])return;this[_0x29f3b8(0x25b)](_0x30ee38[_0x29f3b8(0x209)],_0xbfdd3c);}catch(_0x1814a4){this[_0x29f3b8(0x30e)]['error'](_0x1814a4);}}async[_0x23037e(0x403)](_0x26e4d1){const _0xdee322=_0x23037e;var _0x42a8a4,_0xf54146;const _0x5ec3f1=Date['now']();try{const _0x18fa81=((_0x42a8a4=this['_configService'][_0xdee322(0x3fe)](_0x3c4393))==null?void 0x0:_0x42a8a4['getformulaLimitStatusUrl'])||En,_0x4c001e=_0x26e4d1?_0x18fa81+'?taskId='+encodeURIComponent(_0x26e4d1):_0x18fa81,_0x5ed6bb=(await this['_httpService']['get'](_0x4c001e))['body'];if(((_0xf54146=_0x5ed6bb[_0xdee322(0x2e5)])==null?void 0x0:_0xf54146[_0xdee322(0x2de)])!==Z['OK'])return;this[_0xdee322(0x25b)](_0x5ed6bb[_0xdee322(0x209)],_0x5ec3f1);}catch(_0x3bdb1f){this[_0xdee322(0x30e)][_0xdee322(0x2e5)](_0x3bdb1f);}}async[_0x23037e(0x2f6)](_0x4a0958){const _0x460da3=_0x23037e;var _0x4dfd9a,_0x4c01fa;const _0x96fec7=Date[_0x460da3(0x244)]();try{const _0x26c0be=((_0x4dfd9a=this['_configService'][_0x460da3(0x3fe)](_0x3c4393))==null?void 0x0:_0x4dfd9a[_0x460da3(0x27f)])||On,_0x25b20d=(await this[_0x460da3(0x251)]['post'](_0x26c0be,{'body':JSON[_0x460da3(0x252)]({'taskId':_0x4a0958})}))['body'];if(((_0x4c01fa=_0x25b20d[_0x460da3(0x2e5)])==null?void 0x0:_0x4c01fa[_0x460da3(0x2de)])!==Z['OK'])return;this[_0x460da3(0x25b)](_0x25b20d[_0x460da3(0x209)],_0x96fec7);}catch(_0x5b4988){this[_0x460da3(0x30e)][_0x460da3(0x2e5)](_0x5b4988);}}[_0x23037e(0x2fc)](){const _0x4f1f15=_0x23037e;return this[_0x4f1f15(0x2ef)]===0x0?!0x0:this[_0x4f1f15(0x2ef)]-this['_currentUsage']>0x0;}[_0x23037e(0x260)](){const _0x1d3c47=_0x23037e;this[_0x1d3c47(0x3f0)]&&(clearTimeout(this[_0x1d3c47(0x3f0)]),this['_pollingInterval']=null);}['_showGuardMessage'](){const _0x40f06c=_0x23037e;this['_messageService'][_0x40f06c(0x327)]({'content':this[_0x40f06c(0x259)]['t'](_0x40f06c(0x326)),'type':_0x38ce13[_0x40f06c(0x3cd)]});}[_0x23037e(0x40f)](_0xaf9782){const _0x20969f=_0x23037e;for(const _0x56ec22 of _0xaf9782){const {unitId:_0x52fa6e,sheetId:_0x45879d,range:_0x45e3d5}=_0x56ec22,_0x5ee476=this[_0x20969f(0x2f9)][_0x20969f(0x2c4)](_0x52fa6e);if(!_0x5ee476)continue;const _0x99cf30=_0x5ee476[_0x20969f(0x302)](_0x45879d);if(!_0x99cf30)continue;const _0x102110=_0x99cf30['getCellMatrix']();for(let _0xbe384d=_0x45e3d5[_0x20969f(0x36f)];_0xbe384d<=_0x45e3d5['endRow'];_0xbe384d++)for(let _0x55e1a2=_0x45e3d5['startColumn'];_0x55e1a2<=_0x45e3d5[_0x20969f(0x20c)];_0x55e1a2++){const _0x543f52=_0x102110['getValue'](_0xbe384d,_0x55e1a2);if(_0x543f52&&(_0x2ecb79(_0x543f52['f'])||_0x472e4c(_0x543f52['si'])))return!0x0;}}return!0x1;}};de=vn([P(0x0,_0x57b7af(_0x92c012)),P(0x1,_0x409061),P(0x2,_0x2905aa),P(0x3,_0x57b7af(_0x46f386)),P(0x4,_0x2c6926),P(0x5,_0x285ace),P(0x6,_0x57b7af(_0x23ab5c))],de);var Tn=Object[_0x23037e(0x2c0)],Cn=(_0xb24e9e,_0x4cb200,_0x82e837,_0x59727f)=>{const _0x2a8208=_0x23037e;for(var _0x5cbe84=_0x59727f>0x1?void 0x0:_0x59727f?Tn(_0x4cb200,_0x82e837):_0x4cb200,_0x5f543e=_0xb24e9e[_0x2a8208(0x285)]-0x1,_0x1e5556;_0x5f543e>=0x0;_0x5f543e--)(_0x1e5556=_0xb24e9e[_0x5f543e])&&(_0x5cbe84=_0x1e5556(_0x5cbe84)||_0x5cbe84);return _0x5cbe84;},De=(_0x488830,_0x1ae28b)=>(_0x33e405,_0x1cdef4)=>_0x1ae28b(_0x33e405,_0x1cdef4,_0x488830);let xe=class extends _0x2adf18{constructor(_0x4f3f8d,_0x8fca8e,_0x56269e){const _0x3a00d8=_0x23037e;super(),l(this,_0x3a00d8(0x23f),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x3a00d8(0x262),!0x1),(this[_0x3a00d8(0x21a)]=_0x4f3f8d,this[_0x3a00d8(0x29f)]=_0x8fca8e,this[_0x3a00d8(0x2d9)]=_0x56269e);}['disableLocalCache'](){const _0x478f9f=_0x23037e;this[_0x478f9f(0x262)]=!0x0;}[_0x23037e(0x2c8)](){const _0x1a5525=_0x23037e;this[_0x1a5525(0x262)]=!0x1;}get[_0x23037e(0x347)](){return this['_saveTaskMap'];}[_0x23037e(0x3b4)](){const _0xc5d085=_0x23037e;this['exhaustSavingTask']()[_0xc5d085(0x36c)](()=>super[_0xc5d085(0x3b4)]());}async[_0x23037e(0x1fb)](_0x5e789d){const _0x266150=_0x23037e;return this['_disabled']?null:this[_0x266150(0x29f)][_0x266150(0x3e3)](_0x4d52ef(_0x5e789d));}async['saveOfflineData'](_0x125ee2,_0x4c5df9){const _0x1b9dde=_0x23037e;return!!this[_0x1b9dde(0x29f)][_0x1b9dde(0x39d)](_0x125ee2,_0x4c5df9);}[_0x23037e(0x359)](_0x88a17e,_0x197692,_0x43a559,_0x349e84){const _0x265c2f=_0x23037e,_0x515130=this[_0x265c2f(0x2d9)][_0x265c2f(0x341)](_0x88a17e);this['_cachedData'][_0x265c2f(0x2a0)](_0x88a17e,{'unitID':_0x88a17e,'type':_0x197692,'awaitingChangeset':_0x43a559,'mutations':_0x349e84,'rev':_0x515130}),this['_saveTaskMap'][_0x265c2f(0x239)](_0x88a17e)||this[_0x265c2f(0x369)](_0x88a17e);}['_scheduleSaving'](_0x2cd33f){const _0x5e907f=_0x23037e,_0x38c8fd=this[_0x5e907f(0x36a)]();_0x38c8fd===0x0?this[_0x5e907f(0x366)](_0x2cd33f):this[_0x5e907f(0x25e)][_0x5e907f(0x2a0)](_0x2cd33f,setTimeout(()=>this[_0x5e907f(0x366)](_0x2cd33f),_0x38c8fd));}[_0x23037e(0x36a)](){const _0x5c45c1=_0x23037e;var _0x4e8e0b;return(_0x4e8e0b=this[_0x5c45c1(0x21a)][_0x5c45c1(0x3fe)](_0x18f2e4))!=null?_0x4e8e0b:_0x94812e;}['_saveCache'](_0x1f9a8f){const _0x3df74f=_0x23037e,_0x2d4862=this[_0x3df74f(0x25e)]['get'](_0x1f9a8f);return _0x2d4862!==void 0x0&&window[_0x3df74f(0x36d)](_0x2d4862),this['_localStorageService']['setItem'](_0x4d52ef(_0x1f9a8f),this[_0x3df74f(0x23f)][_0x3df74f(0x2d3)](_0x1f9a8f))[_0x3df74f(0x36c)](()=>this[_0x3df74f(0x25e)]['delete'](_0x1f9a8f));}async[_0x23037e(0x290)](){const _0x573882=_0x23037e,_0x3d9133=[];this[_0x573882(0x25e)][_0x573882(0x342)]((_0x456827,_0x2e66e0)=>{const _0x31ed9d=_0x573882;window[_0x31ed9d(0x36d)](_0x456827),_0x3d9133['push'](this[_0x31ed9d(0x366)](_0x2e66e0)[_0x31ed9d(0x36c)](()=>{const _0x9e4a28=_0x31ed9d;this[_0x9e4a28(0x25e)][_0x9e4a28(0x33a)](_0x2e66e0);}));}),await Promise[_0x573882(0x1f7)](_0x3d9133);}};xe=Cn([De(0x0,_0x2905aa),De(0x1,_0x4a8848),De(0x2,_0x57b7af(_0xfc506e))],xe);class Rn extends _0x1d3622{constructor(){const _0x46fb87=_0x23037e;super(),l(this,_0x46fb87(0x2b8)),this['urlChange$']=_0x3ac611(window,_0x46fb87(0x265))[_0x46fb87(0x277)](_0x1f8529(this[_0x46fb87(0x388)]),_0x109633(0x1),_0x51cdb0(void 0x0));}[_0x23037e(0x41c)](_0x3eeef1,_0x36f4e4,_0x3d7aba=!0x1){const _0x5a6fb7=_0x23037e,_0x4bca6a=new URL(window[_0x5a6fb7(0x227)][_0x5a6fb7(0x2a4)]);_0x4bca6a[_0x5a6fb7(0x3d4)][_0x5a6fb7(0x2a0)](_0x3eeef1,_0x36f4e4),_0x3d7aba?window[_0x5a6fb7(0x26a)][_0x5a6fb7(0x203)]('','',_0x4bca6a[_0x5a6fb7(0x41f)]()):window[_0x5a6fb7(0x26a)][_0x5a6fb7(0x2d0)]('','',_0x4bca6a[_0x5a6fb7(0x41f)]());}[_0x23037e(0x2e2)](_0x57ff75,_0x4eab00=!0x1){const _0x223f57=_0x23037e,_0x378247=new URL(window[_0x223f57(0x227)][_0x223f57(0x2a4)]);_0x378247[_0x223f57(0x3d4)][_0x223f57(0x33a)](_0x57ff75),_0x4eab00?window[_0x223f57(0x26a)][_0x223f57(0x203)]('','',_0x378247['toString']()):window[_0x223f57(0x26a)][_0x223f57(0x2d0)]('','',_0x378247['toString']());}[_0x23037e(0x34e)](_0x158541){const _0x5dd14f=_0x23037e;var _0x5163d9;return(_0x5163d9=new URL(window[_0x5dd14f(0x227)][_0x5dd14f(0x2a4)])[_0x5dd14f(0x3d4)]['get'](_0x158541))!=null?_0x5163d9:void 0x0;}}var Dn=Object['defineProperty'],Nn=Object[_0x23037e(0x2c0)],bn=(_0x559800,_0x496213,_0x19b075)=>_0x496213 in _0x559800?Dn(_0x559800,_0x496213,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19b075}):_0x559800[_0x496213]=_0x19b075,Un=(_0x1b2fd9,_0x3bfc81,_0x1b30dc,_0x4d6db4)=>{const _0x447f62=_0x23037e;for(var _0x1136c9=_0x4d6db4>0x1?void 0x0:_0x4d6db4?Nn(_0x3bfc81,_0x1b30dc):_0x3bfc81,_0x2ce709=_0x1b2fd9[_0x447f62(0x285)]-0x1,_0x310b22;_0x2ce709>=0x0;_0x2ce709--)(_0x310b22=_0x1b2fd9[_0x2ce709])&&(_0x1136c9=_0x310b22(_0x1136c9)||_0x1136c9);return _0x1136c9;},Ne=(_0x51a1fb,_0x277fb9)=>(_0x50855c,_0x53cf5c)=>_0x277fb9(_0x50855c,_0x53cf5c,_0x51a1fb),Ln=(_0x4ba32f,_0x3f8c90,_0x37ba43)=>bn(_0x4ba32f,_0x3f8c90+'',_0x37ba43);const Mn=_0x23037e(0x282);let Be=class extends _0x59b96e{constructor(_0x4614a2=rt,_0x28b153,_0x326285,_0x3d5b7f){const _0x310391=_0x23037e;super(),this['_config']=_0x4614a2,this[_0x310391(0x257)]=_0x28b153,this[_0x310391(0x1f8)]=_0x326285,this[_0x310391(0x21a)]=_0x3d5b7f;const {..._0x2bdda0}=_0x4d1f57({},rt,this['_config']);this[_0x310391(0x21a)][_0x310391(0x20e)](an,_0x2bdda0);}[_0x23037e(0x3bc)](){const _0x1abf53=_0x23037e;this[_0x1abf53(0x2e0)](),this[_0x1abf53(0x3fa)]();}[_0x23037e(0x26f)](){const _0x582ea9=_0x23037e;this[_0x582ea9(0x410)]();}['_registerDependencies'](){const _0x4d486f=_0x23037e;var _0x58ba2d;const _0x29956a=[[je],[de],[he],[_e],[le],[Xe],[At,{'useClass':Rn}],[_0x44de3e,{'useClass':_0x17c854}],[_0x2c165a,{'useClass':xe}],[oe],[ue],[ce],[H],[Ae],[ae]];_0x50ee13(this[_0x4d486f(0x1f8)],_0x3bff89(_0x29956a,(_0x58ba2d=this[_0x4d486f(0x364)])==null?void 0x0:_0x58ba2d[_0x4d486f(0x368)]));}['_registerRenderDependencies'](){const _0x59dac7=_0x23037e;this['disposeWithMe'](this[_0x59dac7(0x257)][_0x59dac7(0x31a)](_0x175e13['UNIVER_DOC'],[ye])),this[_0x59dac7(0x2b4)](this[_0x59dac7(0x257)][_0x59dac7(0x31a)](_0x175e13['UNIVER_SHEET'],[$e]));}[_0x23037e(0x3fa)](){const _0x2f2ff9=_0x23037e;_0x356ea1(this[_0x2f2ff9(0x1f8)],[[H],[oe],[ue],[ce],[ae],[de]]);}};Ln(Be,'pluginName',Mn),Be=Un([_0x175337(_0x413558),Ne(0x1,_0x3947d8),Ne(0x2,_0x57b7af(_0xc05c74)),Ne(0x3,_0x2905aa)],Be);var An=Object['getOwnPropertyDescriptor'],Pn=(_0x57d353,_0x5f2ed7,_0xfb1be1,_0x3a7fd8)=>{const _0x5c695e=_0x23037e;for(var _0x42aab1=_0x3a7fd8>0x1?void 0x0:_0x3a7fd8?An(_0x5f2ed7,_0xfb1be1):_0x5f2ed7,_0x308123=_0x57d353[_0x5c695e(0x285)]-0x1,_0x438775;_0x308123>=0x0;_0x308123--)(_0x438775=_0x57d353[_0x308123])&&(_0x42aab1=_0x438775(_0x42aab1)||_0x42aab1);return _0x42aab1;},J=(_0x145afc,_0xd30d33)=>(_0xfca6d5,_0x1b831c)=>_0xd30d33(_0xfca6d5,_0x1b831c,_0x145afc);let ct=class extends _0x21196e{constructor(_0x102fd7,_0x1a3530,_0x470453,_0x4db420,_0x23f6c8){super(_0x102fd7,_0x1a3530,_0x470453,_0x4db420,_0x23f6c8);}async['createSocket'](_0x1b99d6){const _0x5b8c5d=_0x23037e,_0x4592a4=await this[_0x5b8c5d(0x415)](),_0x38923d=this[_0x5b8c5d(0x360)](_0x1b99d6,_0x4592a4);return this[_0x5b8c5d(0x3d0)](_0x38923d);}[_0x23037e(0x360)](_0x5d4ad1,_0x43b542){const _0x617ae7=_0x23037e,_0x120c00=typeof window>'u'?new URL(_0x5d4ad1):new URL(_0x5d4ad1,window[_0x617ae7(0x227)]['origin']);_0x120c00['searchParams'][_0x617ae7(0x2a0)](_0x617ae7(0x404),_0x43b542);const _0x4f0881=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x617ae7(0x227)][_0x617ae7(0x382)]);return _0x4f0881['get'](_0x617ae7(0x26d))&&_0x120c00[_0x617ae7(0x3d4)]['set'](_0x617ae7(0x26d),_0x4f0881[_0x617ae7(0x2d3)](_0x617ae7(0x26d))),_0x120c00['toString']();}async[_0x23037e(0x415)](){const _0x4d1a6b=_0x23037e;var _0x4163df,_0x2d89bc,_0x325291;const _0x49045f=this[_0x4d1a6b(0x21a)]['getConfig'](_0x3c4393),_0x5d0607=(_0x4163df=_0x49045f==null?void 0x0:_0x49045f[_0x4d1a6b(0x37b)])!=null?_0x4163df:_0x4b56ec;return(_0x325291=(_0x2d89bc=(await this[_0x4d1a6b(0x251)][_0x4d1a6b(0x2d3)](_0x5d0607,{'headers':{'Content-Type':_0x4d1a6b(0x32c)}}))['body'])==null?void 0x0:_0x2d89bc[_0x4d1a6b(0x238)])!=null?_0x325291:'';}};ct=Pn([J(0x0,_0x57b7af(_0xc05c74)),J(0x1,_0x57b7af(_0x46f386)),J(0x2,_0x2905aa),J(0x3,_0x285ace),J(0x4,_0xe935bb)],ct);var wn=Object['getOwnPropertyDescriptor'],yn=(_0x43d674,_0x373136,_0x1a43ec,_0x3a4ed8)=>{const _0x1b2c8b=_0x23037e;for(var _0x4b8f50=_0x3a4ed8>0x1?void 0x0:_0x3a4ed8?wn(_0x373136,_0x1a43ec):_0x373136,_0x1a0a09=_0x43d674[_0x1b2c8b(0x285)]-0x1,_0x28860b;_0x1a0a09>=0x0;_0x1a0a09--)(_0x28860b=_0x43d674[_0x1a0a09])&&(_0x4b8f50=_0x28860b(_0x4b8f50)||_0x4b8f50);return _0x4b8f50;},be=(_0x38a4f6,_0x70185c)=>(_0x45d6b0,_0x5d860b)=>_0x70185c(_0x45d6b0,_0x5d860b,_0x38a4f6);let _t=class extends _0x2adf18{constructor(_0x522d2d,_0x4f7220,_0x4fa328){const _0x31a2a9=_0x23037e;super(),this[_0x31a2a9(0x1fe)]=_0x522d2d,this[_0x31a2a9(0x251)]=_0x4f7220,this['_configService']=_0x4fa328;}async[_0x23037e(0x3e7)](_0x5f260b,_0x354559,_0x1bf098,..._0x54bfcd){const _0xded7ec=_0x23037e;var _0x1bc11a,_0x4aad0f,_0xbc20fe,_0xce7c7b;const _0x65dcc6=this[_0xded7ec(0x1fe)]['getFocusedUnit']();if(!_0x65dcc6)throw new Error(_0xded7ec(0x2f3));const _0x3c3c5d=((_0x1bc11a=this[_0xded7ec(0x21a)][_0xded7ec(0x3fe)](_0x9fc019))!=null?_0x1bc11a:_0x494cec)+'/'+_0x5f260b+_0xded7ec(0x289)+_0x354559,_0x137f2b=new URL(window[_0xded7ec(0x227)]['href']),_0x1e9bd0={'scriptId':_0x5f260b,'runId':(_0x4aad0f=_0x137f2b[_0xded7ec(0x3d4)][_0xded7ec(0x2d3)](_0xded7ec(0x26d)))!=null?_0x4aad0f:'','function':_0x354559,'unitId':_0x65dcc6[_0xded7ec(0x23c)](),'argsOfFunction':JSON[_0xded7ec(0x252)](_0x54bfcd),'invokeId':(_0xbc20fe=_0x1bf098[_0xded7ec(0x405)])!=null?_0xbc20fe:'','executionId':(_0xce7c7b=_0x1bf098['executionId'])!=null?_0xce7c7b:''};try{const _0x322f75=await this[_0xded7ec(0x251)]['post'](_0x3c3c5d,{'body':_0x1e9bd0});return _0x322f75[_0xded7ec(0x319)][_0xded7ec(0x2e5)]&&_0x322f75['body'][_0xded7ec(0x2e5)][_0xded7ec(0x2de)]!==Z['OK']?'Failed':_0x322f75[_0xded7ec(0x319)][_0xded7ec(0x24e)];}catch{return _0xded7ec(0x3a1);}}};_t=yn([be(0x0,_0x2c6926),be(0x1,_0x57b7af(_0x46f386)),be(0x2,_0x2905aa)],_t);const lt=0x7530,ht=_0x23037e(0x34d);class tr extends _0x2adf18{constructor(){const _0xb06031=_0x23037e;super(),l(this,_0xb06031(0x2ca),_0x21c798()),l(this,_0xb06031(0x28f),new Set()),l(this,'_unitOnClients',new Map()),l(this,'_heartbeatTimer',null),l(this,_0xb06031(0x2fe),new Map()),l(this,'_unitStatus',new Map()),this[_0xb06031(0x2f5)]();}['dispose'](){const _0x2adc81=_0x23037e;super[_0x2adc81(0x3b4)](),this[_0x2adc81(0x2fe)][_0x2adc81(0x342)]((_0x50cd99,_0x37727c)=>this[_0x2adc81(0x389)](_0x37727c)),this[_0x2adc81(0x334)]&&window[_0x2adc81(0x2ea)](this[_0x2adc81(0x334)]);}[_0x23037e(0x3d9)](_0x418c35){const _0x4897ea=_0x23037e;return this[_0x4897ea(0x2c6)](_0x418c35)[_0x4897ea(0x277)](_0x4a17c6());}['editingUnit'](_0x521bb4){const _0x3e84c7=_0x23037e;this[_0x3e84c7(0x28f)][_0x3e84c7(0x3f1)]===0x0&&this[_0x3e84c7(0x39a)](),this[_0x3e84c7(0x28f)]['add'](_0x521bb4),this[_0x3e84c7(0x27a)]({'type':0x0,'memberID':this[_0x3e84c7(0x2ca)],'unitIDs':[_0x521bb4],'isForwarded':!0x1});}[_0x23037e(0x212)](_0x3d3b79){const _0x1ab733=_0x23037e;this[_0x1ab733(0x28f)]['delete'](_0x3d3b79),this['_selfUnitIDs'][_0x1ab733(0x3f1)]===0x0&&this['_heartbeatTimer']&&window[_0x1ab733(0x2ea)](this[_0x1ab733(0x334)]);}['_init'](){const _0xbd1757=_0x23037e;this[_0xbd1757(0x2b4)](_0x586ed0(_0x3ac611(window,_0xbd1757(0x34b))['subscribe'](_0x158f45=>{const _0x2d4963=_0xbd1757;if(_0x158f45[_0x2d4963(0x2c7)]!==ht||!_0x158f45[_0x2d4963(0x390)])return;const _0x107221=JSON['parse'](_0x158f45[_0x2d4963(0x390)]);this['_handleEvent'](_0x107221);}))),window[_0xbd1757(0x3e6)](_0xbd1757(0x2ed),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0xbd1757(0x406)](this['_selfUnitIDs'])}));}[_0x23037e(0x2a3)](_0x2a6fc3){const _0x2d3bba=_0x23037e;switch(_0x2a6fc3[_0x2d3bba(0x228)]){case 0x0:this[_0x2d3bba(0x216)](_0x2a6fc3);break;case 0x1:this[_0x2d3bba(0x243)](_0x2a6fc3);break;case 0x2:this[_0x2d3bba(0x220)](_0x2a6fc3);break;}}['_handleJoinEvent'](_0x4f9c34){const _0x1dd9e9=_0x23037e,{unitIDs:_0x355c3b,memberID:_0x355dcf,isForwarded:_0x26a7fa}=_0x4f9c34;_0x355c3b[_0x1dd9e9(0x342)](_0x26f5bf=>{const _0x43e92c=_0x1dd9e9;if(!_0x26a7fa&&this[_0x43e92c(0x254)]['has'](_0x26f5bf)&&this['_ensureSubject'](_0x26f5bf)[_0x43e92c(0x2a5)](_0x30f496['OTHER_CLIENTS_EDITING']),!this[_0x43e92c(0x254)][_0x43e92c(0x239)](_0x26f5bf)||!this[_0x43e92c(0x254)][_0x43e92c(0x2d3)](_0x26f5bf)['has'](_0x355dcf)){const _0x295a84=this[_0x43e92c(0x254)]['get'](_0x26f5bf)||new Set();_0x295a84[_0x43e92c(0x30b)](_0x355dcf),this[_0x43e92c(0x254)]['set'](_0x26f5bf,_0x295a84),this[_0x43e92c(0x32e)](_0x355dcf);}}),_0x26a7fa||this[_0x1dd9e9(0x27a)]({'type':0x0,'memberID':this[_0x1dd9e9(0x2ca)],'unitIDs':[...this[_0x1dd9e9(0x28f)]],'isForwarded':!0x0});}[_0x23037e(0x32e)](_0x20297e){const _0x1ff6ff=_0x23037e;this[_0x1ff6ff(0x389)](_0x20297e);const _0x593085=window[_0x1ff6ff(0x38a)](()=>{const _0x49f34e=_0x1ff6ff;this[_0x49f34e(0x254)][_0x49f34e(0x342)](_0xda9095=>{const _0x3bfa61=_0x49f34e;_0xda9095[_0x3bfa61(0x33a)](_0x20297e);});},lt*0x2);this[_0x1ff6ff(0x2fe)][_0x1ff6ff(0x2a0)](_0x20297e,_0x593085);}[_0x23037e(0x389)](_0x327fa9){const _0x30790d=_0x23037e;if(this[_0x30790d(0x2fe)][_0x30790d(0x239)](_0x327fa9)){const _0x597803=this['_clearOtherTimers'][_0x30790d(0x2d3)](_0x327fa9);_0x597803&&window[_0x30790d(0x36d)](_0x597803),this[_0x30790d(0x2fe)]['set'](_0x327fa9,null);}}[_0x23037e(0x243)](_0x284e01){const _0x1a7bce=_0x23037e,{memberID:_0x20e205,unitIDs:_0x34f5bf}=_0x284e01;_0x34f5bf[_0x1a7bce(0x342)](_0x5c7b89=>{const _0x3237d5=_0x1a7bce;var _0x39abea;const _0x25be30=this[_0x3237d5(0x254)][_0x3237d5(0x2d3)](_0x5c7b89);_0x25be30&&(_0x25be30[_0x3237d5(0x33a)](_0x20e205),(_0x39abea=this[_0x3237d5(0x2c6)](_0x5c7b89))==null||_0x39abea[_0x3237d5(0x2a5)](_0x25be30[_0x3237d5(0x3f1)]===0x0?_0x30f496['NO_OTHER_CLIENTS_EDITING']:_0x30f496[_0x3237d5(0x29a)]));}),this[_0x1a7bce(0x389)](_0x20e205);}[_0x23037e(0x220)](_0x4d33ae){const _0x51e541=_0x23037e;this['_scheduleClearOtherTimer'](_0x4d33ae[_0x51e541(0x2dc)]);}[_0x23037e(0x27a)](_0x53a684){const _0xb3b100=_0x23037e;localStorage[_0xb3b100(0x39d)](ht,JSON[_0xb3b100(0x252)](_0x53a684));}['_scheduleHeartbeat'](){const _0x56b6dc=_0x23037e;this[_0x56b6dc(0x334)]=window[_0x56b6dc(0x214)](()=>{const _0x4f1a68=_0x56b6dc;this[_0x4f1a68(0x27a)]({'type':0x2,'memberID':this[_0x4f1a68(0x2ca)]});},lt);}[_0x23037e(0x2c6)](_0x13b88f){const _0x53b520=_0x23037e;return this[_0x53b520(0x301)][_0x53b520(0x239)](_0x13b88f)||this['_unitStatus'][_0x53b520(0x2a0)](_0x13b88f,new _0x107cff(_0x30f496[_0x53b520(0x24c)])),this[_0x53b520(0x301)][_0x53b520(0x2d3)](_0x13b88f);}}export{ct as BrowserCollaborationSocketService,ae as CollaborationDataLoaderController,oe as DesktopCollaborationStatusDisplayController,At as IURLService,_t as RemoteUniscriptService,qi as SheetCollabCursorShape,Be as UniverCollaborationClientUIPlugin,tr as WebBrowserSingleActiveUnitService,Rn as WebURLService};