@univerjs-pro/collaboration-client-ui 0.12.2-experimental.20251129-0fa20cd → 0.12.2-experimental.20251202-45172c6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +15 -15
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x266cb1=_0x57d7;(function(_0x74c381,_0x5c83bc){const _0x477d69=_0x57d7,_0x4c99ba=_0x74c381();while(!![]){try{const _0xae0e2=-parseInt(_0x477d69(0x155))/0x1+-parseInt(_0x477d69(0x1c6))/0x2+-parseInt(_0x477d69(0xf8))/0x3+-parseInt(_0x477d69(0x199))/0x4+parseInt(_0x477d69(0x169))/0x5*(-parseInt(_0x477d69(0x12a))/0x6)+-parseInt(_0x477d69(0x1ca))/0x7+parseInt(_0x477d69(0x318))/0x8;if(_0xae0e2===_0x5c83bc)break;else _0x4c99ba['push'](_0x4c99ba['shift']());}catch(_0x393ffc){_0x4c99ba['push'](_0x4c99ba['shift']());}}}(_0x59ef,0x32fed));var Yt=Object[_0x266cb1(0x269)],Wt=(_0x2cc9b4,_0x4a6f06,_0x343d05)=>_0x4a6f06 in _0x2cc9b4?Yt(_0x2cc9b4,_0x4a6f06,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x343d05}):_0x2cc9b4[_0x4a6f06]=_0x343d05,_=(_0x30ea53,_0x5b2d10,_0x35e679)=>Wt(_0x30ea53,typeof _0x5b2d10!=_0x266cb1(0x181)?_0x5b2d10+'':_0x5b2d10,_0x35e679);import{jsx as _0x1272de,jsxs as _0xda46d2}from'react/jsx-runtime';import{CollaborationStatus as _0x2459b9,CollaborationSessionService as _0x4622ab,CollaborationController as _0x4b8426,DataLoaderService as _0x240356,MemberService as _0x4c8a8e,SessionStatus as _0x49fe26,ILocalCacheService as _0x4fe86f,CollaborationUIEventService as _0xab5142,CollaborationUIEventId as _0x3c08c8,DocCollaborationEntity as _0x56c801,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x21dc6f,getLocalCacheKey as _0x3aa1d4,LOCAL_CACHE_INTERVAL as _0x132eff,LOCAL_CACHE_INTERVAL_KEY as _0x25ffc0,UniverCollaborationClientPlugin as _0x53669b,CollaborationSocketService as _0x527d7d,DEFAULT_WS_SESSION_TICKET_URL as _0x5347b6,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0xf48c70,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x1665a3,UnitStatus as _0xac2979}from'@univerjs-pro/collaboration-client';import{LocaleService as _0xe56074,IUniverInstanceService as _0x327d97,Inject as _0x3179ca,Injector as _0x52e011,Disposable as _0x5a57f7,createIdentifier as _0x445032,ILogService as _0x53fc3e,ICommandService as _0x398133,Optional as _0x48d43d,RxDisposable as _0x165e64,Workbook as _0x19f744,DOC_RANGE_TYPE as _0x16d0ed,debounce as _0x51782d,Rectangle as _0x50f348,DisposableCollection as _0x151e8b,toDisposable as _0x4001b9,UniverInstanceType as _0x4f0ec8,generateRandomId as _0x5d3172,COLORS as _0x23b99a,ColorKit as _0x171c66,ThemeService as _0x3c5f47,fromEventSubject as _0x29cdad,Tools as _0x468abf,CommandType as _0x2e5972,IConfigService as _0x3607cf,CanceledError as _0x23036e,isFormulaString as _0x5b2a5c,isFormulaId as _0x6986c,ILocalStorageService as _0x17555e,DependentOn as _0x501276,Plugin as _0x2eb738,merge as _0x1407a1,registerDependencies as _0x329602,mergeOverrideWithDependencies as _0x3a0cf2,touchDependencies as _0x2c027c}from'@univerjs/core';import{useObservable as _0x19e49c,useDependency as _0x4160cb,IUIPartsService as _0x5b75a5,BuiltInUIPart as _0x21ff65,connectInjector as _0x198a07,IBeforeCloseService as _0x27aa55,IMessageService as _0x2c0732,INotificationService as _0x60036a}from'@univerjs/ui';import{BehaviorSubject as _0x501473,switchMap as _0x57f9f7,of as _0xefbff4,takeUntil as _0x21b87b,debounceTime as _0x6dca12,Subject as _0x3ed230,filter as _0x20c03b,merge as _0x1c6b14,combineLatest as _0x10c2d6,fromEvent as _0x573346,shareReplay as _0x22cf6d,mapTo as _0x3071cf,distinctUntilChanged as _0x23072d}from'rxjs';import{Tooltip as _0x186829,clsx as _0x181b7a,MessageType as _0x34362f}from'@univerjs/design';import{useRef as _0x16d39e,createElement as _0x10d515,forwardRef as _0x21dcd3,useCallback as _0x404f74}from'react';import{IRemoteInstanceService as _0x66fc1c}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x15e373,RefRangeService as _0x482615,SetSelectionsOperation as _0xa26fed,SheetsSelectionsService as _0x3a756d,EffectRefRangId as _0x1c0e24,handleIRemoveRow as _0x2f08fe,handleIRemoveCol as _0x3098d9,handleMoveRange as _0x3dd79a,handleInsertRow as _0xb5043d,handleInsertRangeMoveRight as _0x538e7e,handleInsertRangeMoveDown as _0x1de61b,handleInsertCol as _0x22ee2b,handleDeleteRangeMoveUp as _0x2e79a3,handleDeleteRangeMoveLeft as _0x3b46c3,runRefRangeMutations as _0x3ec78d}from'@univerjs/sheets';function _0x57d7(_0x3dd339,_0x444ad4){const _0x59ef61=_0x59ef();return _0x57d7=function(_0x57d757,_0x2aa7fb){_0x57d757=_0x57d757-0xd3;let _0x53dec4=_0x59ef61[_0x57d757];return _0x53dec4;},_0x57d7(_0x3dd339,_0x444ad4);}import{Shape as _0x5f4a21,Rect as _0x221c25,getColor as _0x4ec8a2,RegularPolygon as _0x3c88aa,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x34850e,Vector2 as _0x183b8c,SHEET_VIEWPORT_KEY as _0x1ead7d,IRenderManagerService as _0x4e5a7f}from'@univerjs/engine-render';import{HTTPService as _0x299f96,ISocketService as _0x2ec716,WebSocketService as _0x1c8192}from'@univerjs/network';import{IDocClipboardService as _0x311d66,NodePositionConvertToCursor as _0x2ef843,NodePositionConvertToRectRange as _0x4d8fa7,TEXT_RANGE_LAYER_INDEX as _0x14281d,SetDocZoomRatioOperation as _0x2612e7,DocIMEInputManagerService as _0x5f31ef,DocStateChangeManagerService as _0x4ac405}from'@univerjs/docs-ui';import{IImageIoService as _0x13add7}from'@univerjs/drawing';import{ITransformService as _0x1f1952,CollaborationEvent as _0x5bf969,isTransformMutationFailure as _0x2bd73d,isTransformMutationsWithChangesetSuccess as _0x37a6c9,RevisionService as _0x48e7e0,ISnapshotServerService as _0x358502}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x18b4e6,RichTextEditingMutation as _0x282851,DocSelectionManagerService as _0x781f61,DocSkeletonManagerService as _0x30db50}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x5aed6d,serializeRangeWithSheet as _0x631d1d,FormulaExecuteStageType as _0xe0b366,FormulaExecutedStateType as _0x34b6b6,SetFormulaCalculationStartMutation as _0x554a7a,SetFormulaCalculationNotificationMutation as _0x18d447}from'@univerjs/engine-formula';import{map as _0x3c4e14,filter as _0x22d51d,throttleTime as _0x468019,takeUntil as _0x28018b,switchMap as _0xc0630b}from'rxjs/operators';import{SheetSkeletonManagerService as _0x311bdb,getCoordByCell as _0x2ae5c3,getSheetObject as _0x9dc2c9}from'@univerjs/sheets-ui';function Ge({ref:_0x4f5fd8,..._0x53bed0}){const _0xac4b3=_0x266cb1,{icon:_0x382e97,id:_0x51286c,className:_0x3a3a81,extend:_0x554f17,..._0x4449d}=_0x53bed0,_0x3be073=(_0xac4b3(0x2a7)+_0x51286c+'\x20'+(_0x3a3a81||''))[_0xac4b3(0xf5)](),_0x4bbbf2=_0x16d39e('_'+Ei());return At(_0x382e97,''+_0x51286c,{'defIds':_0x382e97[_0xac4b3(0x1e6)],'idSuffix':_0x4bbbf2[_0xac4b3(0x16e)]},{'ref':_0x4f5fd8,'className':_0x3be073,..._0x4449d},_0x554f17);}function At(_0x24534f,_0x470057,_0x56180c,_0x481092,_0x7e5a65){const _0x2506c3=_0x266cb1;return _0x10d515(_0x24534f[_0x2506c3(0x25a)],{'key':_0x470057,...gi(_0x24534f,_0x56180c,_0x7e5a65),..._0x481092},(vi(_0x24534f,_0x56180c)[_0x2506c3(0x286)]||[])[_0x2506c3(0x198)]((_0x19d3c7,_0x4083e5)=>At(_0x19d3c7,_0x470057+'-'+_0x24534f[_0x2506c3(0x25a)]+'-'+_0x4083e5,_0x56180c,void 0x0,_0x7e5a65)));}function gi(_0x154176,_0x5b5f3e,_0xb29ab7){const _0x1d8aa6=_0x266cb1,_0x3445f3={..._0x154176[_0x1d8aa6(0xdc)]};_0xb29ab7!=null&&_0xb29ab7['colorChannel1']&&_0x3445f3[_0x1d8aa6(0x272)]===_0x1d8aa6(0x275)&&(_0x3445f3[_0x1d8aa6(0x272)]=_0xb29ab7[_0x1d8aa6(0x275)]),_0x154176[_0x1d8aa6(0x25a)]==='mask'&&_0x3445f3['id']&&(_0x3445f3['id']=_0x3445f3['id']+_0x5b5f3e['idSuffix']),Object[_0x1d8aa6(0x16d)](_0x3445f3)['forEach'](([_0x782e8d,_0x30c16d])=>{const _0x24a107=_0x1d8aa6;_0x782e8d===_0x24a107(0x25f)&&typeof _0x30c16d=='string'&&(_0x3445f3[_0x782e8d]=_0x30c16d[_0x24a107(0x1ee)](/url\(#(.*)\)/,_0x24a107(0x23e)+_0x5b5f3e['idSuffix']+')'));});const {defIds:_0x18d0f9}=_0x5b5f3e;return!_0x18d0f9||_0x18d0f9[_0x1d8aa6(0x197)]===0x0||(_0x154176[_0x1d8aa6(0x25a)]==='use'&&_0x3445f3[_0x1d8aa6(0x178)]&&(_0x3445f3[_0x1d8aa6(0x178)]=_0x3445f3[_0x1d8aa6(0x178)]+_0x5b5f3e[_0x1d8aa6(0x2a0)]),Object[_0x1d8aa6(0x16d)](_0x3445f3)[_0x1d8aa6(0x253)](([_0x39eea7,_0x11cefd])=>{const _0x4eeb1e=_0x1d8aa6;typeof _0x11cefd==_0x4eeb1e(0x268)&&(_0x3445f3[_0x39eea7]=_0x11cefd[_0x4eeb1e(0x1ee)](/url\(#(.*)\)/,_0x4eeb1e(0x23e)+_0x5b5f3e[_0x4eeb1e(0x2a0)]+')'));})),_0x3445f3;}function vi(_0x1938e9,_0x3c0ac2){const _0x2f08a0=_0x266cb1;var _0x56ce86;const {defIds:_0x5b3b04}=_0x3c0ac2;return!_0x5b3b04||_0x5b3b04[_0x2f08a0(0x197)]===0x0?_0x1938e9:_0x1938e9[_0x2f08a0(0x25a)]===_0x2f08a0(0x219)&&((_0x56ce86=_0x1938e9[_0x2f08a0(0x286)])!=null&&_0x56ce86[_0x2f08a0(0x197)])?{..._0x1938e9,'children':_0x1938e9[_0x2f08a0(0x286)]['map'](_0x2ff30f=>typeof _0x2ff30f[_0x2f08a0(0xdc)]['id']==_0x2f08a0(0x268)&&_0x5b3b04&&_0x5b3b04[_0x2f08a0(0xf0)](_0x2ff30f[_0x2f08a0(0xdc)]['id'])?{..._0x2ff30f,'attrs':{..._0x2ff30f[_0x2f08a0(0xdc)],'id':_0x2ff30f[_0x2f08a0(0xdc)]['id']+_0x3c0ac2[_0x2f08a0(0x2a0)]}}:_0x2ff30f)}:_0x1938e9;}function Ei(){const _0x2246d4=_0x266cb1;return Math[_0x2246d4(0x265)]()[_0x2246d4(0x29d)](0x24)[_0x2246d4(0x1cd)](0x2,0x8);}Ge[_0x266cb1(0x245)]=_0x266cb1(0x288);const pi={'tag':'svg','attrs':{'xmlns':_0x266cb1(0x148),'fill':_0x266cb1(0x18e),'viewBox':_0x266cb1(0x19d),'width':_0x266cb1(0x2b8),'height':_0x266cb1(0x2b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x266cb1(0x203)},'children':[{'tag':_0x266cb1(0x10c),'attrs':{'stroke':_0x266cb1(0x1f0),'d':_0x266cb1(0x2ea),'strokeLinecap':_0x266cb1(0x2cc),'strokeLinejoin':_0x266cb1(0x2cc),'strokeWidth':1.2}}]},{'tag':_0x266cb1(0x219),'attrs':{},'children':[{'tag':_0x266cb1(0x1b8),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x266cb1(0x10c),'attrs':{'fill':_0x266cb1(0x231),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x266cb1(0x1d7)]},Pt=_0x21dcd3(function(_0x36cb33,_0x47fa0f){const _0x4c6cc8=_0x266cb1;return _0x10d515(Ge,Object[_0x4c6cc8(0x10b)]({},_0x36cb33,{'id':'off-line-icon','ref':_0x47fa0f,'icon':pi}));});Pt[_0x266cb1(0x245)]=_0x266cb1(0x2ca);const Oi={'tag':_0x266cb1(0x284),'attrs':{'xmlns':_0x266cb1(0x148),'fill':_0x266cb1(0x18e),'viewBox':'0\x200\x2017\x2016','width':_0x266cb1(0x2b8),'height':_0x266cb1(0x2b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x266cb1(0x11c)},'children':[{'tag':_0x266cb1(0x10c),'attrs':{'stroke':_0x266cb1(0x1f0),'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':'round','strokeWidth':1.2}}]},{'tag':_0x266cb1(0x219),'attrs':{},'children':[{'tag':_0x266cb1(0x1b8),'attrs':{'id':_0x266cb1(0x2f7)},'children':[{'tag':_0x266cb1(0x10c),'attrs':{'fill':_0x266cb1(0x231),'d':'M0\x200H16V16H0z','transform':_0x266cb1(0x14a)}}]}]}],'defIds':[_0x266cb1(0x2f7)]},wt=_0x21dcd3(function(_0x35ee6d,_0x3c5b67){const _0x5eaacb=_0x266cb1;return _0x10d515(Ge,Object[_0x5eaacb(0x10b)]({},_0x35ee6d,{'id':'on-line-icon','ref':_0x3c5b67,'icon':Oi}));});wt[_0x266cb1(0x245)]=_0x266cb1(0x2af);function Ti(_0x4cdf8c){const _0x43a1be=_0x266cb1;switch(_0x4cdf8c){case _0x2459b9[_0x43a1be(0x291)]:return _0x43a1be(0x176);case _0x2459b9[_0x43a1be(0x2be)]:return'collabStatus.conflict';case _0x2459b9['FETCH_MISS']:return _0x43a1be(0x2d1);case _0x2459b9['NOT_COLLAB']:return _0x43a1be(0x136);case _0x2459b9[_0x43a1be(0x109)]:case _0x2459b9[_0x43a1be(0x2e8)]:return _0x43a1be(0x232);case _0x2459b9[_0x43a1be(0xf6)]:case _0x2459b9[_0x43a1be(0x1a8)]:return _0x43a1be(0x280);}}function Ci(_0xdfa6f7){const _0x20096d=_0x266cb1,{status$:_0x565af5}=_0xdfa6f7,_0x25884e=_0x19e49c(_0x565af5,_0x2459b9[_0x20096d(0x277)]),_0x2b94e2=_0x4160cb(_0xe56074),_0xb34cd4=_0x4160cb(_0x4622ab),_0x1586cf=_0x25884e!==_0x2459b9[_0x20096d(0x291)],_0x3481aa=_0x2b94e2['t'](Ti(_0x25884e)),_0xebc431=_0x1586cf?_0x1272de(wt,{}):_0x1272de(Pt,{}),_0x42a7c4=_0x404f74(()=>{const _0x4da0af=_0x20096d;_0x1586cf||_0xb34cd4[_0x4da0af(0x1cb)]();},[_0x1586cf,_0xb34cd4]);function _0xe3cc13(){const _0x58fb54=_0x20096d;return _0xda46d2(_0x58fb54(0x100),{'className':_0x58fb54(0x2e3),'onClick':_0x42a7c4,'children':[_0x1272de('div',{'className':_0x181b7a(_0x58fb54(0x137),{'univer-text-green-500':_0x1586cf,'univer-text-red-500':!_0x1586cf}),'children':_0xebc431}),_0x1272de(_0x58fb54(0x100),{'className':_0x58fb54(0x22e),'children':_0x3481aa})]});}return _0x1586cf?_0xe3cc13():_0x1272de(_0x186829,{'title':_0x2b94e2['t'](_0x20096d(0x177)),'children':_0xe3cc13()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0x302536,_0x30e105,_0x552438,_0x4f7927)=>{for(var _0x5b4c8d=_0x4f7927>0x1?void 0x0:_0x4f7927?Ri(_0x30e105,_0x552438):_0x30e105,_0x2e45b1=_0x302536['length']-0x1,_0x384f05;_0x2e45b1>=0x0;_0x2e45b1--)(_0x384f05=_0x302536[_0x2e45b1])&&(_0x5b4c8d=_0x384f05(_0x5b4c8d)||_0x5b4c8d);return _0x5b4c8d;},se=(_0x1bb2fa,_0x226390)=>(_0x18587b,_0x391d16)=>_0x226390(_0x18587b,_0x391d16,_0x1bb2fa);let ae=class extends _0x5a57f7{constructor(_0x1e9f3c,_0x42fc9a,_0x672b5f,_0x14bfff){const _0x1c4164=_0x266cb1;super(),_(this,_0x1c4164(0x2d4),new _0x501473(_0x2459b9[_0x1c4164(0x277)])),(this[_0x1c4164(0x1f3)]=_0x1e9f3c,this['_injector']=_0x42fc9a,this['_collaborationController']=_0x672b5f,this['_uiPartsService']=_0x14bfff,this[_0x1c4164(0x194)](),this[_0x1c4164(0x2f8)]());}[_0x266cb1(0x2f8)](){const _0x43bacd=_0x266cb1;this[_0x43bacd(0x2ed)](this[_0x43bacd(0x1f3)]['focused$'][_0x43bacd(0x242)](_0x57f9f7(()=>{const _0xce63b3=_0x43bacd,_0x2fb6f3=this['_univerInstanceService'][_0xce63b3(0x144)]();return _0x2fb6f3?this['_collaborationController'][_0xce63b3(0x131)](_0x2fb6f3['getUnitId']()):_0xefbff4(null);}),_0x57f9f7(_0x32d3b7=>_0x32d3b7?_0x32d3b7[_0x43bacd(0x2ce)]:_0xefbff4(_0x2459b9[_0x43bacd(0x277)])))[_0x43bacd(0x215)](_0x7e7a88=>{const _0x468dd9=_0x43bacd;this[_0x468dd9(0x2d4)][_0x468dd9(0x1a1)](_0x7e7a88);}));}[_0x266cb1(0x194)](){const _0x2a32f6=_0x266cb1;this[_0x2a32f6(0x2ed)](this[_0x2a32f6(0x153)][_0x2a32f6(0x25b)](_0x21ff65[_0x2a32f6(0x217)],()=>_0x198a07(bi({'status$':this[_0x2a32f6(0x2d4)]['asObservable']()}),this[_0x2a32f6(0x188)])));}};ae=Di([se(0x0,_0x327d97),se(0x1,_0x3179ca(_0x52e011)),se(0x2,_0x3179ca(_0x4b8426)),se(0x3,_0x5b75a5)],ae);function bi(_0x5c88bb){const {status$:_0x4413ea}=_0x5c88bb;return function(){return _0x1272de(Ci,{'status$':_0x4413ea});};}const yt=_0x445032('uni.network.url-service');var Ni=Object['getOwnPropertyDescriptor'],Li=(_0x325c18,_0x1083f7,_0x3c9722,_0x2559fc)=>{const _0x19356e=_0x266cb1;for(var _0x25abb5=_0x2559fc>0x1?void 0x0:_0x2559fc?Ni(_0x1083f7,_0x3c9722):_0x1083f7,_0x133b88=_0x325c18[_0x19356e(0x197)]-0x1,_0x350c65;_0x133b88>=0x0;_0x133b88--)(_0x350c65=_0x325c18[_0x133b88])&&(_0x25abb5=_0x350c65(_0x25abb5)||_0x25abb5);return _0x25abb5;},K=(_0x4538a5,_0x4b2b0a)=>(_0x511054,_0x5919ed)=>_0x4b2b0a(_0x511054,_0x5919ed,_0x4538a5);let ce=class extends _0x165e64{constructor(_0x37d424,_0x4669a8,_0x1d92ca,_0x4ee0b4,_0x303779){const _0x164ef9=_0x266cb1;super(),this[_0x164ef9(0x108)]=_0x37d424,this[_0x164ef9(0x129)]=_0x4669a8,this[_0x164ef9(0x29f)]=_0x1d92ca,this['_dataLoaderService']=_0x4ee0b4,_0x303779?_0x303779==null||_0x303779[_0x164ef9(0x1ae)]()[_0x164ef9(0x313)](()=>this[_0x164ef9(0x151)]()):(this[_0x164ef9(0x129)][_0x164ef9(0x2ad)]('[CollaborationDataLoaderController]',_0x164ef9(0x28f)),this[_0x164ef9(0x151)]());}async[_0x266cb1(0x151)](){const _0x4b82c5=_0x266cb1,_0x19ea9=this[_0x4b82c5(0x108)][_0x4b82c5(0x13c)](_0x4b82c5(0x1e5)),_0x190551=this[_0x4b82c5(0x108)][_0x4b82c5(0x13c)](_0x4b82c5(0x15a)),_0x477f00=this['_urlService'][_0x4b82c5(0x13c)](_0x4b82c5(0x190));if(!_0x19ea9||!_0x190551){this['_logService'][_0x4b82c5(0x2ad)](_0x4b82c5(0x1e0),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x427025=await this[_0x4b82c5(0xe0)][_0x4b82c5(0x107)](_0x19ea9,Number(_0x190551),_0x477f00);_0x427025&&_0x427025 instanceof _0x19f744&&this[_0x4b82c5(0x112)](_0x427025);}async[_0x266cb1(0x112)](_0x3d2ce1){const _0x21b632=_0x266cb1;await this[_0x21b632(0x128)](_0x3d2ce1),_0x3d2ce1[_0x21b632(0x27e)][_0x21b632(0x242)](_0x21b87b(this[_0x21b632(0xff)]))[_0x21b632(0x215)](_0x5ed71f=>{_0x5ed71f&&this['_updateURLWithCurrentState'](_0x5ed71f);}),this['_urlService']['urlChange$'][_0x21b632(0x242)](_0x21b87b(this['dispose$']))['subscribe'](()=>this[_0x21b632(0x128)](_0x3d2ce1));}[_0x266cb1(0x2d7)](_0xfb7c74,_0x33a3f0=!0x1){const _0x4d3639=_0x266cb1,_0x415c43=this[_0x4d3639(0x108)][_0x4d3639(0x13c)](_0x4d3639(0x190));_0xfb7c74[_0x4d3639(0x326)]()!==_0x415c43&&this[_0x4d3639(0x108)][_0x4d3639(0x2a5)](_0x4d3639(0x190),_0xfb7c74[_0x4d3639(0x326)](),_0x33a3f0);}async['_updateSubUnitFromURLParams'](_0x2a946f){const _0x5ba24b=_0x266cb1;var _0x9ee2fc;const _0xdf2d57=this[_0x5ba24b(0x108)][_0x5ba24b(0x13c)](_0x5ba24b(0x190));if(!_0xdf2d57||!_0x2a946f[_0x5ba24b(0x179)](_0xdf2d57)){const _0x5eeecc=_0x2a946f[_0x5ba24b(0x187)]()[0x0],_0x1b7bad=_0x2a946f['getSheetBySheetId'](_0x5eeecc);if(!_0x1b7bad)return;this[_0x5ba24b(0x2d7)](_0x1b7bad,!0x0),await this[_0x5ba24b(0x29f)]['executeCommand'](_0x15e373['id'],{'unitId':_0x2a946f[_0x5ba24b(0x211)](),'subUnitId':_0x5eeecc});return;}((_0x9ee2fc=_0x2a946f[_0x5ba24b(0x18b)]())==null?void 0x0:_0x9ee2fc[_0x5ba24b(0x326)]())!==_0xdf2d57&&await this['_commandService']['executeCommand'](_0x15e373['id'],{'unitId':_0x2a946f[_0x5ba24b(0x211)](),'subUnitId':_0xdf2d57});}};ce=Li([K(0x0,yt),K(0x1,_0x53fc3e),K(0x2,_0x398133),K(0x3,_0x3179ca(_0x240356)),K(0x4,_0x48d43d(_0x66fc1c))],ce);var Ui=Object[_0x266cb1(0x327)],Mi=(_0x3b1abc,_0x46c9f1,_0xc1aa00,_0x36e882)=>{for(var _0x3cba8b=_0x36e882>0x1?void 0x0:_0x36e882?Ui(_0x46c9f1,_0xc1aa00):_0x46c9f1,_0x103d6b=_0x3b1abc['length']-0x1,_0x111398;_0x103d6b>=0x0;_0x103d6b--)(_0x111398=_0x3b1abc[_0x103d6b])&&(_0x3cba8b=_0x111398(_0x3cba8b)||_0x3cba8b);return _0x3cba8b;},rt=(_0x4a322a,_0x2a3bce)=>(_0x20f180,_0x3b75e5)=>_0x2a3bce(_0x20f180,_0x3b75e5,_0x4a322a);let $e=class extends _0x165e64{constructor(_0x5c4980,_0x4fea93){const _0x165da4=_0x266cb1;super(),this[_0x165da4(0x230)]=_0x5c4980,this['_imageIoService']=_0x4fea93,this[_0x165da4(0x151)]();}[_0x266cb1(0x151)](){const _0xcfddc7=_0x266cb1,_0x412174=this;this[_0xcfddc7(0x2ed)](this[_0xcfddc7(0x230)][_0xcfddc7(0x325)]({'onBeforePasteImage':async _0x2961a4=>{const _0x3a9fa7=_0xcfddc7,_0x3553d1=await _0x412174[_0x3a9fa7(0x11d)][_0x3a9fa7(0x18a)](_0x2961a4);return _0x3553d1?{'source':_0x3553d1[_0x3a9fa7(0x18d)],'imageSourceType':_0x3553d1[_0x3a9fa7(0x1cf)]}:null;}}));}};$e=Mi([rt(0x0,_0x311d66),rt(0x1,_0x13add7)],$e);const ot=[_0x266cb1(0x163),_0x266cb1(0x11b),_0x266cb1(0x2a3),'red.300','blue.400',_0x266cb1(0x2fc)];class Ke extends _0x5a57f7{constructor(){const _0x3cb257=_0x266cb1;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x3cb257(0x2b1),0x0);}[_0x266cb1(0x1e3)](_0x5bd6a1){const _0x379fa0=_0x266cb1;if(this[_0x379fa0(0x1e8)][_0x379fa0(0x276)](_0x5bd6a1))return this['_assignedColors'][_0x379fa0(0x2c6)](_0x5bd6a1);const _0x158a6c=ot[this[_0x379fa0(0x2b1)]];return this[_0x379fa0(0x2b1)]=(this[_0x379fa0(0x2b1)]+0x1)%ot['length'],this[_0x379fa0(0x1e8)][_0x379fa0(0x186)](_0x5bd6a1,_0x158a6c),_0x158a6c;}}function $t(_0xf9df9f){const _0x3fc753=_0x266cb1;let _0x360532='';for(const _0x4c13b2 of _0xf9df9f){const {startOffset:_0x309542,endOffset:_0x4dbbe9,isActive:_0x1a0c42,rangeType:_0x168a29,segmentId:_0x33b8b2,segmentPage:_0x204794}=_0x4c13b2;_0x360532[_0x3fc753(0x197)]&&(_0x360532+=','),_0x360532+=_0x309542+':'+_0x4dbbe9+':'+(_0x1a0c42?'1':'0')+':'+_0x168a29+':'+_0x33b8b2+':'+_0x204794;}return _0x360532;}function Ai(_0x56de6b){const _0x6d3aa7=_0x266cb1,_0x47e132=_0x56de6b[_0x6d3aa7(0x1ab)](','),_0x54a4b3=[];for(const _0x267609 of _0x47e132){const [_0x544556,_0x58b71d,_0x23cf65,_0x558c40,_0x545d2d,_0x3ec797]=_0x267609[_0x6d3aa7(0x1ab)](':');_0x54a4b3['push']({'startOffset':Number(_0x544556),'endOffset':Number(_0x58b71d),'collapsed':_0x544556===_0x58b71d,'isActive':_0x23cf65==='1','rangeType':_0x558c40===_0x16d0ed[_0x6d3aa7(0x1dd)]?_0x16d0ed[_0x6d3aa7(0x1dd)]:_0x16d0ed['RECT'],'segmentId':typeof _0x545d2d==_0x6d3aa7(0x268)?String(_0x545d2d):'','segmentPage':Number(_0x3ec797!=null?_0x3ec797:-0x1)});}return _0x54a4b3[_0x6d3aa7(0x101)](_0x5ec9e6=>_0x5ec9e6[_0x6d3aa7(0x1cc)])||(_0x54a4b3[0x0][_0x6d3aa7(0x1cc)]=!0x0),_0x54a4b3;}class ze extends _0x165e64{constructor(){const _0x37cc01=_0x266cb1;super(...arguments),_(this,'_collabCursorState$',new _0x501473(null)),_(this,_0x37cc01(0x14d),this['_collabCursorState$'][_0x37cc01(0x16a)]());}[_0x266cb1(0xd4)](_0x5713b8){const _0x5c21b8=_0x266cb1,{unitID:_0x46627e,memberID:_0x1dfbc5,textRanges:_0x42ad30}=_0x5713b8,_0x17bad9=$t(_0x42ad30);if(_0x17bad9==='')return;const _0x52b6e9={'unitID':_0x46627e,'memberID':_0x1dfbc5,'selection':_0x17bad9};this[_0x5c21b8(0x30a)][_0x5c21b8(0x1a1)](_0x52b6e9);}}var Pi=Object[_0x266cb1(0x327)],wi=(_0x463465,_0x57db1a,_0x1adacc,_0x90f1b7)=>{const _0x10eb9c=_0x266cb1;for(var _0x59463f=_0x90f1b7>0x1?void 0x0:_0x90f1b7?Pi(_0x57db1a,_0x1adacc):_0x57db1a,_0x3c45f6=_0x463465[_0x10eb9c(0x197)]-0x1,_0x3ace37;_0x3c45f6>=0x0;_0x3c45f6--)(_0x3ace37=_0x463465[_0x3c45f6])&&(_0x59463f=_0x3ace37(_0x59463f)||_0x59463f);return _0x59463f;},A=(_0x41e988,_0x54faec)=>(_0x4c279c,_0x57a014)=>_0x54faec(_0x4c279c,_0x57a014,_0x41e988);const yi=0x12c,$i=0x64;let xe=class extends _0x165e64{constructor(_0x1fba53,_0x5c6933,_0x5ceb18,_0x2f81cc,_0x5d8230,_0x904422,_0x1aa5ab,_0x110174,_0x28b4d1){const _0x3b7f8d=_0x266cb1;super(),_(this,_0x3b7f8d(0x281),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new _0x501473(new Map())),_(this,'cursorInfo$',this[_0x3b7f8d(0x30f)][_0x3b7f8d(0x16a)]()),_(this,_0x3b7f8d(0x140),new _0x501473([])),_(this,_0x3b7f8d(0x267),this['_roomMembers$'][_0x3b7f8d(0x242)](_0x6dca12(yi))),_(this,'_updateLocalCursor',_0x51782d(_0x31d61f=>{const _0x22ce2c=_0x3b7f8d,_0x20f3c2={'eventID':_0x5bf969['UPDATE_CURSOR'],'data':{'unitID':this[_0x22ce2c(0x271)],'memberID':this['_session']['getMemberID'](),'selection':$t(_0x31d61f)}};this[_0x22ce2c(0x12b)][_0x22ce2c(0x154)](_0x20f3c2,this[_0x22ce2c(0x271)]);},$i)),(this[_0x3b7f8d(0x271)]=_0x1fba53,this[_0x3b7f8d(0x12b)]=_0x5c6933,this[_0x3b7f8d(0x188)]=_0x5ceb18,this[_0x3b7f8d(0x299)]=_0x2f81cc,this[_0x3b7f8d(0x2c3)]=_0x5d8230,this[_0x3b7f8d(0xf9)]=_0x904422,this[_0x3b7f8d(0x143)]=_0x1aa5ab,this[_0x3b7f8d(0x1f3)]=_0x110174,this['_commandService']=_0x28b4d1);}get[_0x266cb1(0x1f9)](){const _0x31d5bc=_0x266cb1;return this['_cursorInfo$'][_0x31d5bc(0x329)]();}get['roomMembers'](){const _0x541965=_0x266cb1;return this[_0x541965(0x140)]['getValue']();}[_0x266cb1(0x156)](){const _0x32bcbe=_0x266cb1;super['dispose'](),this[_0x32bcbe(0x30f)][_0x32bcbe(0x1a1)](new Map()),this['_cursorInfo$'][_0x32bcbe(0x2e1)](),this[_0x32bcbe(0x140)][_0x32bcbe(0x1a1)]([]),this['_roomMembers$'][_0x32bcbe(0x2e1)]();}['init'](){const _0x651342=_0x266cb1;this[_0x651342(0x151)]||(this['_init']=!0x0,this[_0x651342(0x12b)]['sessionStatus$'][_0x651342(0x242)](_0x21b87b(this[_0x651342(0xff)]))[_0x651342(0x215)](_0x5b7627=>{const _0x1a2ddd=_0x651342;_0x5b7627===_0x49fe26[_0x1a2ddd(0x2ba)]?this[_0x1a2ddd(0x19b)]():this[_0x1a2ddd(0x1a5)]();}),this['_session'][_0x651342(0x2a8)][_0x651342(0x242)](_0x21b87b(this[_0x651342(0xff)]))[_0x651342(0x215)](_0x24cede=>{const _0x483243=_0x651342,_0x14dc70=_0x24cede[_0x483243(0x2bc)];_0x14dc70===_0x5bf969[_0x483243(0x261)]&&this[_0x483243(0x1a2)](_0x24cede),_0x14dc70===_0x5bf969[_0x483243(0x2d6)]&&this[_0x483243(0x20d)](_0x24cede);}),this[_0x651342(0x2ed)](this['_commandService'][_0x651342(0x2bb)](_0x1ea248=>{const _0x569d25=_0x651342,_0x166520=_0x1ea248[_0x569d25(0x20a)];_0x166520!=null&&this['_online']&&_0x1ea248['id']===_0x18b4e6['id']&&_0x166520[_0x569d25(0x180)]===this[_0x569d25(0x271)]&&_0x166520[_0x569d25(0x1c2)]===!0x1&&_0x166520[_0x569d25(0x1d2)][_0x569d25(0x197)]>0x0&&this[_0x569d25(0x222)](_0x166520[_0x569d25(0x1d2)]);})),this[_0x651342(0xf9)][_0x651342(0x14d)]['pipe'](_0x21b87b(this[_0x651342(0xff)]))['subscribe'](_0x359353=>{const _0x3b19c3=_0x651342;if((_0x359353==null?void 0x0:_0x359353[_0x3b19c3(0x271)])!==this['unitID'])return;const _0x479098={'eventID':_0x5bf969[_0x3b19c3(0x261)],'data':_0x359353};this[_0x3b19c3(0x1a2)](_0x479098);}),this[_0x651342(0x2ed)](this[_0x651342(0x29f)][_0x651342(0x2bb)](_0x5ef291=>{const _0xb65393=_0x651342;if(_0x5ef291[_0xb65393(0x20a)]==null)return;const _0x213745=_0x5ef291[_0xb65393(0x20a)];if(_0x5ef291['id']!==_0x282851['id']||_0x213745[_0xb65393(0x180)]!==this[_0xb65393(0x271)])return;const _0x1976c7={'id':'doc.mutation.rich-text-editing','params':_0x213745},_0xa7a3f5=this[_0xb65393(0x1f9)];for(const [_0xf1ddbc,_0x113084]of _0xa7a3f5){const _0x1ec74b={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0xb65393(0x271)],'actions':null,'textRanges':_0x113084[_0xb65393(0x1d2)]}},_0x40c219=this['_transformService'][_0xb65393(0x1ea)](_0x1976c7,_0x1ec74b,!0x1);if(_0x2bd73d(_0x40c219))throw _0x40c219[_0xb65393(0x205)];_0xa7a3f5[_0xb65393(0x186)](_0xf1ddbc,{..._0x113084,'ranges':_0x40c219[_0xb65393(0x220)][_0xb65393(0x20a)][_0xb65393(0x1ac)]});}queueMicrotask(()=>{const _0x2abe53=_0xb65393;this[_0x2abe53(0x30f)]['next'](_0xa7a3f5);});})));}[_0x266cb1(0x1a2)](_0x4b4c11){const _0x586511=_0x266cb1;var _0x37ca0e,_0x2faaeb;const {memberID:_0x337a3d,selection:_0x5ce0ea}=_0x4b4c11[_0x586511(0x2d5)],_0x4ccb96=Ai(_0x5ce0ea),_0x52545c=(_0x2faaeb=(_0x37ca0e=this[_0x586511(0x2c3)][_0x586511(0x223)](this[_0x586511(0x271)],_0x337a3d))==null?void 0x0:_0x37ca0e[_0x586511(0x135)])!=null?_0x2faaeb:_0x586511(0x255),_0x49d44b={'color':this[_0x586511(0x299)]['assignAColorForMemberID'](_0x337a3d),'name':_0x52545c,'ranges':_0x4ccb96},_0x2b5ceb=this['cursorInfo'];_0x2b5ceb[_0x586511(0x186)](_0x337a3d,_0x49d44b),this['_cursorInfo$']['next'](_0x2b5ceb);}[_0x266cb1(0x20d)](_0x2bd34e){const _0x251e1a=_0x266cb1,{memberID:_0x268121}=_0x2bd34e[_0x251e1a(0x2d5)],_0x4d878=this[_0x251e1a(0x1f9)];_0x4d878['delete'](_0x268121),this[_0x251e1a(0x30f)][_0x251e1a(0x1a1)](_0x4d878);}[_0x266cb1(0x19b)](){const _0x1cfedb=_0x266cb1;var _0x35b531;if(this['_online']=!0x0,((_0x35b531=this[_0x1cfedb(0x1f3)]['getFocusedUnit']())==null?void 0x0:_0x35b531['getUnitId']())!==this[_0x1cfedb(0x271)])return;const _0x182ac9=this[_0x1cfedb(0x188)][_0x1cfedb(0x2c6)](_0x781f61)[_0x1cfedb(0x224)]();Array['isArray'](_0x182ac9)&&_0x182ac9[_0x1cfedb(0x197)]>0x0&&this[_0x1cfedb(0x222)](_0x182ac9);}[_0x266cb1(0x1a5)](){this['_online']=!0x1;}};xe=wi([A(0x2,_0x3179ca(_0x52e011)),A(0x3,_0x3179ca(Ke)),A(0x4,_0x3179ca(_0x4c8a8e)),A(0x5,_0x3179ca(ze)),A(0x6,_0x1f1952),A(0x7,_0x327d97),A(0x8,_0x398133)],xe);var xi=Object[_0x266cb1(0x327)],Bi=(_0x20fca9,_0x1e4f5d,_0x573689,_0xf9459a)=>{const _0x553e92=_0x266cb1;for(var _0xcc6ce4=_0xf9459a>0x1?void 0x0:_0xf9459a?xi(_0x1e4f5d,_0x573689):_0x1e4f5d,_0x5a660b=_0x20fca9[_0x553e92(0x197)]-0x1,_0x5ec577;_0x5a660b>=0x0;_0x5a660b--)(_0x5ec577=_0x20fca9[_0x5a660b])&&(_0xcc6ce4=_0x5ec577(_0xcc6ce4)||_0xcc6ce4);return _0xcc6ce4;},B=(_0x79685b,_0x4a68f7)=>(_0x39b837,_0x4ada67)=>_0x4a68f7(_0x39b837,_0x4ada67,_0x79685b);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x4122cb=[],_0x2d7f26=!0x1;return _0x422af4=>{const _0x59a8f9=_0x57d7;_0x4122cb[_0x59a8f9(0x30c)](_0x422af4),_0x2d7f26||(_0x2d7f26=!0x0,setTimeout(()=>{const _0x2ff32e=_0x59a8f9;_0x4122cb[_0x2ff32e(0x253)](_0x1f02d1=>_0x1f02d1()),_0x4122cb=[],_0x2d7f26=!0x1;}));};};let Be=class extends _0x165e64{constructor(_0x42e90e,_0x38a678,_0x538019,_0xc71180,_0x1ce4af,_0x3cb534,_0x1f8835,_0x5ebc19){const _0xf4b2b7=_0x266cb1;super(),_(this,_0xf4b2b7(0x281),!0x1),_(this,_0xf4b2b7(0x151),!0x1),_(this,_0xf4b2b7(0x30f),new _0x501473(new Map())),_(this,'cursorInfo$',this[_0xf4b2b7(0x30f)]['asObservable']()),_(this,_0xf4b2b7(0x140),new _0x501473([])),_(this,_0xf4b2b7(0x267),this[_0xf4b2b7(0x140)][_0xf4b2b7(0x242)](_0x6dca12(Fi))),_(this,'_updateLocalCursor',_0x51782d((_0x45f60d,_0x2f2bc1)=>{const _0x39918c=_0xf4b2b7,_0x3954b5={'eventID':_0x5bf969[_0x39918c(0x261)],'data':{'unitID':this[_0x39918c(0x271)],'memberID':this['_session'][_0x39918c(0x2d9)](),'selection':_0x631d1d(_0x45f60d,_0x2f2bc1[_0x39918c(0x1b3)])}};this['_session']['send'](_0x3954b5,this[_0x39918c(0x271)]);},ki)),(this[_0xf4b2b7(0x271)]=_0x42e90e,this[_0xf4b2b7(0x12b)]=_0x38a678,this[_0xf4b2b7(0x188)]=_0x538019,this[_0xf4b2b7(0x299)]=_0xc71180,this[_0xf4b2b7(0x2c3)]=_0x1ce4af,this[_0xf4b2b7(0x1f3)]=_0x3cb534,this[_0xf4b2b7(0x29f)]=_0x1f8835,this[_0xf4b2b7(0x20b)]=_0x5ebc19);}get[_0x266cb1(0x1f9)](){const _0x15070c=_0x266cb1;return this['_cursorInfo$'][_0x15070c(0x329)]();}get[_0x266cb1(0x1de)](){const _0x4bcab5=_0x266cb1;return this[_0x4bcab5(0x140)][_0x4bcab5(0x329)]();}[_0x266cb1(0x156)](){const _0x325e15=_0x266cb1;super[_0x325e15(0x156)](),this[_0x325e15(0x30f)][_0x325e15(0x1a1)](new Map()),this[_0x325e15(0x30f)][_0x325e15(0x2e1)](),this['_roomMembers$'][_0x325e15(0x1a1)]([]),this[_0x325e15(0x140)][_0x325e15(0x2e1)]();}['init'](){const _0x1cff99=_0x266cb1;this[_0x1cff99(0x151)]||(this['_init']=!0x0,this['_session'][_0x1cff99(0xea)][_0x1cff99(0x242)](_0x21b87b(this[_0x1cff99(0xff)]))[_0x1cff99(0x215)](_0x55d8ca=>{const _0x15b1d9=_0x1cff99;_0x55d8ca===_0x49fe26[_0x15b1d9(0x2ba)]?this[_0x15b1d9(0x19b)]():this[_0x15b1d9(0x1a5)]();}),this['_session'][_0x1cff99(0x2a8)]['pipe'](_0x21b87b(this[_0x1cff99(0xff)]))[_0x1cff99(0x215)](_0x85315c=>{const _0x56443d=_0x1cff99,_0x588e1f=_0x85315c['eventID'];_0x588e1f===_0x5bf969[_0x56443d(0x261)]&&this[_0x56443d(0x1a2)](_0x85315c),_0x588e1f===_0x5bf969[_0x56443d(0x2d6)]&&this[_0x56443d(0x20d)](_0x85315c);}),this[_0x1cff99(0x11e)](),this[_0x1cff99(0x2ed)](this['_commandService'][_0x1cff99(0x2bb)](_0x433a12=>{const _0x4f29be=_0x1cff99;if(this[_0x4f29be(0x281)]&&_0x433a12['id']===_0xa26fed['id']&&_0x433a12[_0x4f29be(0x20a)][_0x4f29be(0x180)]===this['unitID']){const _0x708702=_0x433a12['params'];this[_0x4f29be(0x222)](_0x708702[_0x4f29be(0x160)],_0x708702[_0x4f29be(0xef)][0x0]);}})));}['_onCursorUpdate'](_0x471cf6){const _0x1b3ba6=_0x266cb1;var _0x6557e,_0xfeb2fd;const {memberID:_0x554857,selection:_0x34f5d7}=_0x471cf6['data'],{sheetName:_0x515440,range:_0x5a332d}=_0x5aed6d(_0x34f5d7),_0x2a0a91={'name':(_0xfeb2fd=(_0x6557e=this[_0x1b3ba6(0x2c3)]['getMember'](this['unitID'],_0x554857))==null?void 0x0:_0x6557e['name'])!=null?_0xfeb2fd:_0x1b3ba6(0x255),'range':this['_getMergeRange'](_0x515440,_0x5a332d),'sheetID':_0x515440,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x554857),'selection':_0x34f5d7},_0x52e3ad=this[_0x1b3ba6(0x1f9)];_0x52e3ad['set'](_0x554857,_0x2a0a91),this['_cursorInfo$']['next'](_0x52e3ad);}['_onCursorDelete'](_0x11b583){const _0x1466c2=_0x266cb1,{memberID:_0x158b48}=_0x11b583['data'],_0x471bcc=this[_0x1466c2(0x1f9)];_0x471bcc[_0x1466c2(0x21b)](_0x158b48),this['_cursorInfo$'][_0x1466c2(0x1a1)](_0x471bcc);}[_0x266cb1(0x1e7)](_0x18e8d5,_0x123d84){const _0x686e80=_0x266cb1;var _0x28ffd6,_0x4c467d;const _0x304132=(_0x4c467d=(_0x28ffd6=this['_univerInstanceService'][_0x686e80(0x247)](this[_0x686e80(0x271)]))==null?void 0x0:_0x28ffd6['getSheetBySheetId'](_0x18e8d5))==null?void 0x0:_0x4c467d[_0x686e80(0x2cf)]();return(_0x304132==null?void 0x0:_0x304132[_0x686e80(0x116)](_0x524b31=>_0x50f348['contains'](_0x524b31,_0x123d84)))||_0x123d84;}[_0x266cb1(0x11e)](){const _0x4eb676=_0x266cb1,_0x1f03c1=new _0x151e8b(),_0x2d9eee=Hi(),_0x25586c=()=>{const _0x45019f=_0x57d7;_0x1f03c1[_0x45019f(0x156)]();const _0x52e0d6=(_0xcb704f,_0x47dfec,_0x1fce98,_0x548002)=>{const _0x3ed102=_0x45019f;let _0x59de0a=[];switch(_0xcb704f['id']){case _0x1c0e24['DeleteRangeMoveLeftCommandId']:{_0x59de0a=_0x3b46c3(_0xcb704f,_0x548002);break;}case _0x1c0e24['DeleteRangeMoveUpCommandId']:{_0x59de0a=_0x2e79a3(_0xcb704f,_0x548002);break;}case _0x1c0e24['InsertColCommandId']:{_0x59de0a=_0x22ee2b(_0xcb704f,_0x548002);break;}case _0x1c0e24[_0x3ed102(0x28a)]:{_0x59de0a=_0x1de61b(_0xcb704f,_0x548002);break;}case _0x1c0e24[_0x3ed102(0x2e6)]:{_0x59de0a=_0x538e7e(_0xcb704f,_0x548002);break;}case _0x1c0e24['InsertRowCommandId']:{_0x59de0a=_0xb5043d(_0xcb704f,_0x548002);break;}case _0x1c0e24[_0x3ed102(0x1a6)]:{_0x59de0a=_0x3dd79a(_0xcb704f,_0x548002);break;}case _0x1c0e24[_0x3ed102(0x13d)]:{_0x59de0a=_0x3098d9(_0xcb704f,_0x548002);break;}case _0x1c0e24[_0x3ed102(0x16b)]:{_0x59de0a=_0x2f08fe(_0xcb704f,_0x548002);break;}}const _0x1dac7d=_0x3ec78d(_0x59de0a,_0x548002),_0x1402a3=this[_0x3ed102(0x1f9)][_0x3ed102(0x2c6)](_0x47dfec);if(_0x1402a3&&_0x1dac7d){const _0xfd89d3={..._0x1402a3,'range':_0x1dac7d};this[_0x3ed102(0x1f9)][_0x3ed102(0x186)](_0x47dfec,_0xfd89d3),_0x2d9eee(()=>{const _0x543a38=_0x3ed102,_0x5ad0bf=this[_0x543a38(0x20b)]['registerRefRange'](_0x1dac7d,_0x520425=>(_0x5ad0bf[_0x543a38(0x156)](),_0x52e0d6(_0x520425,_0x47dfec,_0x1fce98,_0x1dac7d)));_0x1f03c1[_0x543a38(0xec)](_0x5ad0bf);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x45019f(0x253)]((_0x4c86c1,_0x11af50)=>{const _0x4b45f9=_0x45019f,{range:_0x415205,sheetID:_0x201f51}=_0x4c86c1,_0x530366=this[_0x4b45f9(0x20b)][_0x4b45f9(0x1f7)](_0x415205,_0x26c223=>(_0x530366[_0x4b45f9(0x156)](),_0x52e0d6(_0x26c223,_0x11af50,_0x201f51,_0x415205)));_0x1f03c1[_0x4b45f9(0xec)](_0x530366);});};this[_0x4eb676(0x2ed)](_0x4001b9(this[_0x4eb676(0x30f)][_0x4eb676(0x215)](()=>{_0x25586c();})));}[_0x266cb1(0x19b)](){const _0x50dcbb=_0x266cb1;var _0x2c2dca,_0x4f7e32;if(this['_online']=!0x0,((_0x2c2dca=this[_0x50dcbb(0x1f3)][_0x50dcbb(0x144)]())==null?void 0x0:_0x2c2dca[_0x50dcbb(0x211)]())!==this[_0x50dcbb(0x271)])return;const _0x628652=(_0x4f7e32=this[_0x50dcbb(0x188)][_0x50dcbb(0x2c6)](_0x3a756d)[_0x50dcbb(0xf1)]())==null?void 0x0:_0x4f7e32[0x0],_0x4cee00=this[_0x50dcbb(0x1f3)][_0x50dcbb(0x202)](_0x4f0ec8[_0x50dcbb(0x308)])[_0x50dcbb(0x18b)]();_0x628652&&_0x4cee00&&this[_0x50dcbb(0x222)](_0x4cee00[_0x50dcbb(0x326)](),_0x628652);}[_0x266cb1(0x1a5)](){const _0x4bbfab=_0x266cb1;this[_0x4bbfab(0x281)]=!0x1;}};Be=Bi([B(0x2,_0x3179ca(_0x52e011)),B(0x3,_0x3179ca(Ke)),B(0x4,_0x3179ca(_0x4c8a8e)),B(0x5,_0x327d97),B(0x6,_0x398133),B(0x7,_0x3179ca(_0x482615))],Be);var Yi=Object[_0x266cb1(0x327)],Wi=(_0x1fda00,_0x523984,_0x15773c,_0x3e4737)=>{const _0x2b4b8f=_0x266cb1;for(var _0x3a01d2=_0x3e4737>0x1?void 0x0:_0x3e4737?Yi(_0x523984,_0x15773c):_0x523984,_0x37a93d=_0x1fda00[_0x2b4b8f(0x197)]-0x1,_0x3fedd9;_0x37a93d>=0x0;_0x37a93d--)(_0x3fedd9=_0x1fda00[_0x37a93d])&&(_0x3a01d2=_0x3fedd9(_0x3a01d2)||_0x3a01d2);return _0x3a01d2;},Ce=(_0x93ed32,_0x2f4792)=>(_0x1698aa,_0x1b3512)=>_0x2f4792(_0x1698aa,_0x1b3512,_0x93ed32);let H=class extends _0x165e64{constructor(_0x564803,_0x71cd9,_0xbbd2bb){const _0x5c5557=_0x266cb1;super(),_(this,_0x5c5557(0x1f5),new Map()),_(this,_0x5c5557(0x2a1),new _0x3ed230()),(this[_0x5c5557(0x1f3)]=_0x564803,this[_0x5c5557(0x188)]=_0x71cd9,this[_0x5c5557(0x1e2)]=_0xbbd2bb,this[_0x5c5557(0x151)]());}[_0x266cb1(0x156)](){const _0x521e76=_0x266cb1;super[_0x521e76(0x156)](),this[_0x521e76(0x2a1)]['complete'](),this['_entities'][_0x521e76(0x253)](_0x136a34=>_0x136a34[_0x521e76(0x156)]());}[_0x266cb1(0x2a9)](_0x82d7c5){const _0x2ffeed=_0x266cb1;return this[_0x2ffeed(0x1f5)][_0x2ffeed(0x276)](_0x82d7c5)?this[_0x2ffeed(0x1f5)][_0x2ffeed(0x2c6)](_0x82d7c5)['cursorInfo$']:this[_0x2ffeed(0x2a1)][_0x2ffeed(0x242)](_0x20c03b(_0x4b3c89=>_0x4b3c89['unitID']===_0x82d7c5),_0x57f9f7(_0x556c93=>_0x556c93[_0x2ffeed(0x21f)]));}['_init'](){const _0x578afd=_0x266cb1;this[_0x578afd(0x1f3)][_0x578afd(0x312)](_0x4f0ec8['UNIVER_SHEET'])['pipe'](_0x21b87b(this[_0x578afd(0xff)]))[_0x578afd(0x215)](async _0x4740f7=>{const _0xaf7ae6=_0x578afd,_0x415127=_0x4740f7[_0xaf7ae6(0x211)](),_0x4e6506=await this[_0xaf7ae6(0x24b)](_0x415127);this['_entityInit$']['next'](_0x4e6506),this[_0xaf7ae6(0x1f5)][_0xaf7ae6(0x186)](_0x415127,_0x4e6506);}),this[_0x578afd(0x1f3)][_0x578afd(0x312)](_0x4f0ec8[_0x578afd(0xf3)])[_0x578afd(0x242)](_0x21b87b(this[_0x578afd(0xff)]))[_0x578afd(0x242)](_0x20c03b(_0x393243=>!_0x393243[_0x578afd(0x211)]()[_0x578afd(0x1c1)]('__')))[_0x578afd(0x215)](async _0x5cd821=>{const _0x26b313=_0x578afd,_0x3a6e2b=_0x5cd821[_0x26b313(0x211)](),_0x20b18a=await this[_0x26b313(0xe5)](_0x3a6e2b);this[_0x26b313(0x2a1)][_0x26b313(0x1a1)](_0x20b18a),this[_0x26b313(0x1f5)][_0x26b313(0x186)](_0x3a6e2b,_0x20b18a);}),_0x1c6b14(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4f0ec8['UNIVER_DOC']),this['_univerInstanceService'][_0x578afd(0x2da)](_0x4f0ec8[_0x578afd(0x308)]))['pipe'](_0x21b87b(this[_0x578afd(0xff)]))[_0x578afd(0x215)](_0xb1672e=>{const _0x2d5af3=_0x578afd,_0x528985=_0xb1672e['getUnitId'](),_0x5a0144=this[_0x2d5af3(0x1f5)][_0x2d5af3(0x2c6)](_0x528985);_0x5a0144&&(_0x5a0144[_0x2d5af3(0x156)](),this[_0x2d5af3(0x1f5)]['delete'](_0x528985));});}async[_0x266cb1(0x24b)](_0x38094c){const _0x17953e=_0x266cb1,_0x1d2c63=await this[_0x17953e(0x1e2)][_0x17953e(0x23a)](_0x38094c),_0x3bb099=this[_0x17953e(0x188)]['createInstance'](Be,_0x38094c,_0x1d2c63);return _0x3bb099[_0x17953e(0x2ee)](),_0x3bb099;}async[_0x266cb1(0xe5)](_0x4b932e){const _0x51a3fd=_0x266cb1,_0x5dbc33=await this[_0x51a3fd(0x1e2)]['requireSession'](_0x4b932e),_0x378a14=this[_0x51a3fd(0x188)][_0x51a3fd(0x1b5)](xe,_0x4b932e,_0x5dbc33);return _0x378a14[_0x51a3fd(0x2ee)](),_0x378a14;}};H=Wi([Ce(0x0,_0x327d97),Ce(0x1,_0x3179ca(_0x52e011)),Ce(0x2,_0x3179ca(_0x4622ab))],H);const Q=0x14,at=0xc8,Re=0x4,ji=0x5;function Vi(_0x51ad4a,_0x1d0ae9){const _0x241e0b=_0x266cb1;let {radius:_0x49676f,width:_0x4ea0b8,height:_0x58de28}=_0x1d0ae9;_0x49676f=_0x49676f!=null?_0x49676f:0x0,_0x4ea0b8=_0x4ea0b8!=null?_0x4ea0b8:0x1e,_0x58de28=_0x58de28!=null?_0x58de28:0x1e;let _0x4da0ef=0x0,_0x1e040e=0x0,_0x583493=0x0;_0x4da0ef=_0x1e040e=_0x583493=Math['min'](_0x49676f,_0x4ea0b8/0x2,_0x58de28/0x2),_0x51ad4a[_0x241e0b(0x1e1)](),_0x51ad4a[_0x241e0b(0x157)](_0x4da0ef,0x0),_0x51ad4a[_0x241e0b(0x22f)](_0x4ea0b8-_0x1e040e,0x0),_0x51ad4a['arc'](_0x4ea0b8-_0x1e040e,_0x1e040e,_0x1e040e,Math['PI']*0x3/0x2,0x0,!0x1),_0x51ad4a[_0x241e0b(0x22f)](_0x4ea0b8,_0x58de28-_0x583493),_0x51ad4a[_0x241e0b(0x315)](_0x4ea0b8-_0x583493,_0x58de28-_0x583493,_0x583493,0x0,Math['PI']/0x2,!0x1),_0x51ad4a[_0x241e0b(0x22f)](0x0,_0x58de28),_0x51ad4a[_0x241e0b(0x22f)](0x0,_0x4da0ef),_0x51ad4a[_0x241e0b(0x315)](_0x4da0ef,_0x4da0ef,_0x4da0ef,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x51ad4a[_0x241e0b(0x303)](),_0x1d0ae9['fill']&&(_0x51ad4a[_0x241e0b(0x28c)](),_0x51ad4a['fillStyle']=_0x1d0ae9['fill'],_0x1d0ae9['fillRule']===_0x241e0b(0x27c)?_0x51ad4a[_0x241e0b(0x272)](_0x241e0b(0x27c)):_0x51ad4a[_0x241e0b(0x272)](),_0x51ad4a['restore']());}class Ee extends _0x5f4a21{constructor(_0x9fa39b,_0x32692b){const _0x9752c5=_0x266cb1;super(_0x9fa39b,_0x32692b),_(this,_0x9752c5(0x23c)),_(this,_0x9752c5(0x21a)),(this[_0x9752c5(0x23c)]=_0x32692b==null?void 0x0:_0x32692b[_0x9752c5(0x23c)],this[_0x9752c5(0x21a)]=_0x32692b==null?void 0x0:_0x32692b[_0x9752c5(0x21a)]);}static['drawWith'](_0x10c44d,_0x1571dd){const _0x5c9889=_0x266cb1,{text:_0x508895,color:_0x326fd8}=_0x1571dd;_0x10c44d[_0x5c9889(0x28c)](),_0x10c44d[_0x5c9889(0x14c)]=_0x5c9889(0x2e2);const _0x578754=_0x10c44d['measureText'](_0x508895)['width'],_0x20d023=Math[_0x5c9889(0x130)](_0x578754+0x2*Re,at);Vi(_0x10c44d,{'height':Q,'radius':0x4,'width':_0x20d023,'fill':_0x326fd8}),_0x10c44d[_0x5c9889(0x26c)]=_0x5c9889(0xf2);const _0x3b5245=Re,_0x4eeaa8=Q-ji,_0x31516f=at-0x2*Re;if(_0x578754>_0x31516f){let _0x5afc67='',_0x2c2772=0x0;for(const _0xb171a0 of _0x508895){const _0x1ffcac=_0x10c44d[_0x5c9889(0x122)](_0xb171a0)[_0x5c9889(0xfa)];if(_0x2c2772+_0x1ffcac<=_0x31516f-_0x10c44d['measureText'](_0x5c9889(0x1b1))['width'])_0x5afc67+=_0xb171a0,_0x2c2772+=_0x1ffcac;else{_0x5afc67+=_0x5c9889(0x1b1);break;}}_0x10c44d['fillText'](_0x5afc67,_0x3b5245,_0x4eeaa8);}else _0x10c44d['fillText'](_0x508895,_0x3b5245,_0x4eeaa8);_0x10c44d[_0x5c9889(0x234)]();}[_0x266cb1(0x300)](_0x172db4){const _0x1320b8=_0x266cb1;Ee[_0x1320b8(0x289)](_0x172db4,this);}}const De='collab-text-anchor-',Xi=_0x266cb1(0x2db),Gi=_0x266cb1(0x30b),z=0x6,Ki=1.5,be=0x4,zi=1.5,Ji=_0x266cb1(0x2ec);class ct{constructor(_0x53ee19,_0x4fe109,_0x100cfc,_0x3ad59f){const _0x464a74=_0x266cb1;_(this,_0x464a74(0x20c),[]),_(this,_0x464a74(0x1fa),null),_(this,_0x464a74(0x241),null),_(this,_0x464a74(0x164),null),_(this,_0x464a74(0x1fb),null),_(this,_0x464a74(0x1c0),null),(this[_0x464a74(0x302)]=_0x53ee19,this[_0x464a74(0x10f)]=_0x4fe109,this['_docSkeleton']=_0x100cfc,this['_document']=_0x3ad59f,this[_0x464a74(0x1eb)]());}set['_hover'](_0x42038a){const _0xb10786=_0x266cb1;_0x42038a?(this[_0xb10786(0x164)]&&this[_0xb10786(0x164)][_0xb10786(0xf7)](),this['_textBubble']&&this[_0xb10786(0x241)][_0xb10786(0x295)]()):(this[_0xb10786(0x164)]&&this[_0xb10786(0x164)][_0xb10786(0x295)](),this[_0xb10786(0x241)]&&this[_0xb10786(0x241)][_0xb10786(0xf7)]());}[_0x266cb1(0x156)](){const _0x54bca3=_0x266cb1;for(const _0x5b30cf of this['_shapes'])_0x5b30cf[_0x54bca3(0x156)]();this[_0x54bca3(0x241)]&&this[_0x54bca3(0x241)][_0x54bca3(0x156)](),this[_0x54bca3(0x164)]&&this[_0x54bca3(0x164)][_0x54bca3(0x156)](),this['_anchor']&&this[_0x54bca3(0x1fa)][_0x54bca3(0x156)](),this[_0x54bca3(0x1c0)]&&this[_0x54bca3(0x1c0)]();}['_render'](){const _0x4773e3=_0x266cb1;var _0x35b18c;const {_docSkeleton:_0x4525d6,_document:_0x5f54ec}=this,{color:_0x92f4bc,name:_0x2eb70f,ranges:_0x1151d3}=this[_0x4773e3(0x302)],_0x3ea6cf=_0x5f54ec['getOffsetConfig'](),{docsLeft:_0x3990ff,docsTop:_0x4bd2c0}=_0x3ea6cf,_0x308b3b=new _0x2ef843(_0x3ea6cf,_0x4525d6);for(const {startOffset:_0x2bfab0,endOffset:_0x36da6f,rangeType:_0x48a95a,segmentId:_0x385b88,segmentPage:_0x3a447b,collapsed:_0x16bcf3,isActive:_0xece658}of _0x1151d3){const _0x5e6367=_0x4525d6[_0x4773e3(0x142)](_0x2bfab0,!0x0,_0x385b88,_0x3a447b);let _0x4b00ed=_0x4525d6[_0x4773e3(0x142)](_0x36da6f,!0x0,_0x385b88,_0x3a447b);if(_0x4b00ed==null&&(_0x4b00ed=_0x4525d6['findNodePositionByCharIndex'](_0x36da6f-0x1,!0x1,_0x385b88,_0x3a447b)),_0xece658){const {contentBoxPointGroup:_0x25359a}=_0x308b3b[_0x4773e3(0x1d8)](_0x4b00ed,_0x4b00ed);if(_0x25359a['length']===0x0)continue;this[_0x4773e3(0x168)](_0x92f4bc,_0x25359a,_0x3990ff,_0x4bd2c0,_0x2eb70f),this[_0x4773e3(0x1c0)]=this[_0x4773e3(0x1d1)]();}if(_0x5e6367&&_0x4b00ed){if(_0x48a95a===_0x16d0ed['RECT']){const _0xa6fb14=new _0x4d8fa7(_0x3ea6cf,_0x4525d6),{pointGroup:_0x4b0098}=(_0x35b18c=_0xa6fb14[_0x4773e3(0x1d8)](_0x5e6367,_0x4b00ed))!=null?_0x35b18c:{};if(_0x4b0098==null||_0x4b0098[_0x4773e3(0x197)]===0x0)continue;this['_drawRectRange'](_0x92f4bc,_0x4b0098,_0x3990ff,_0x4bd2c0);}else{if(!_0x16bcf3){const {borderBoxPointGroup:_0x4cfac9}=_0x308b3b[_0x4773e3(0x1d8)](_0x5e6367,_0x4b00ed);if(_0x4cfac9['length']===0x0)continue;this['_drawTextRange'](_0x92f4bc,_0x4cfac9,_0x3990ff,_0x4bd2c0);}}}}}[_0x266cb1(0x168)](_0x413bd4,_0x127b2c,_0x4caca6,_0x5b2410,_0x3515b1){const _0x3f741e=_0x266cb1,_0x4dc0a2=this[_0x3f741e(0x13f)](_0x127b2c),{left:_0x5fac09,top:_0x298fcb,height:_0x122ec3}=_0x4dc0a2,_0x3081d1=this['_getScale'](),_0x5c6326=zi/_0x3081d1,_0x259267=new _0x221c25(De+_0x5d3172(z),{'left':_0x5fac09+_0x4caca6-_0x5c6326,'top':_0x298fcb+_0x5b2410,'height':_0x122ec3,'width':Ki,'fill':_0x413bd4||_0x4ec8a2(_0x23b99a['black'],0x0),'strokeWidth':_0x5c6326,'stroke':Ji,'evented':!0x0});this[_0x3f741e(0x1fa)]=_0x259267,this[_0x3f741e(0x10f)]['addObject'](_0x259267,_0x14281d);const _0x7f77e2=new _0x221c25(De+_0x5d3172(z),{'left':_0x5fac09+_0x4caca6-_0x5c6326,'top':_0x298fcb+_0x5b2410-be/0x2,'height':be,'width':be,'fill':_0x413bd4||_0x4ec8a2(_0x23b99a[_0x3f741e(0x31b)],0x0),'strokeWidth':0x0,'stroke':_0x413bd4||_0x4ec8a2(_0x23b99a[_0x3f741e(0x31b)],0x0),'evented':!0x1});this[_0x3f741e(0x164)]=_0x7f77e2,this[_0x3f741e(0x10f)][_0x3f741e(0x236)](_0x7f77e2,_0x14281d);const _0x5bf711=new Ee(De+_0x5d3172(z),{'left':_0x5fac09+_0x4caca6-_0x5c6326,'top':_0x298fcb+_0x5b2410-Q,'text':_0x3515b1,'color':_0x413bd4});this[_0x3f741e(0x241)]=_0x5bf711,this['_scene'][_0x3f741e(0x236)](_0x5bf711,_0x14281d),this[_0x3f741e(0x22c)]=!0x1;}[_0x266cb1(0x1d1)](){const _0x4863f2=_0x266cb1,_0x502dbe=this[_0x4863f2(0x1fa)][_0x4863f2(0x126)][_0x4863f2(0x2cb)](()=>{const _0x2e56e3=_0x4863f2;this[_0x2e56e3(0x22c)]=!0x0;}),_0x396ade=this[_0x4863f2(0x1fa)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x572333=_0x4863f2;this[_0x572333(0x1fb)]&&clearTimeout(this['_hideTimer']),this[_0x572333(0x1fb)]=setTimeout(()=>{const _0x1720fe=_0x572333;this[_0x1720fe(0x22c)]=!0x1;},0x7d0);});return()=>{const _0x125c00=_0x4863f2;_0x502dbe['unsubscribe'](),_0x396ade[_0x125c00(0x1b9)]();};}[_0x266cb1(0x2e7)](_0x3f1119,_0x320386,_0x4e52f9,_0x29f10a){const _0x483403=_0x266cb1,_0x46ba56=new _0x171c66(_0x3f1119)['setAlpha'](0.2)[_0x483403(0x23d)](),_0x522f7c=new _0x3c88aa(Xi+_0x5d3172(z),{'pointsGroup':_0x320386,'fill':_0x46ba56||_0x4ec8a2(_0x23b99a['black'],0.2),'left':_0x4e52f9,'top':_0x29f10a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x483403(0x20c)][_0x483403(0x30c)](_0x522f7c),this[_0x483403(0x10f)][_0x483403(0x236)](_0x522f7c,_0x14281d);}['_drawRectRange'](_0x265f0b,_0x237e6e,_0xf4013b,_0x2d51bf){const _0x40a519=_0x266cb1,_0x1804df=new _0x171c66(_0x265f0b)[_0x40a519(0x2c8)](0.2)[_0x40a519(0x23d)](),_0x26d3ee=new _0x3c88aa(Gi+_0x5d3172(z),{'pointsGroup':_0x237e6e,'fill':_0x1804df||_0x4ec8a2(_0x23b99a[_0x40a519(0x31b)],0.2),'left':_0xf4013b,'top':_0x2d51bf,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x40a519(0x20c)]['push'](_0x26d3ee),this['_scene']['addObject'](_0x26d3ee,_0x14281d);}[_0x266cb1(0x13f)](_0x34f51d){const _0x12a076=_0x34f51d[0x0],_0x292725=_0x12a076[0x0],_0xe72f52=_0x12a076[0x2],{x:_0x529827,y:_0xd5423e}=_0x292725,{x:_0x3f7b96,y:_0x1dd4f9}=_0xe72f52;return{'left':_0x529827,'top':_0xd5423e,'width':_0x3f7b96-_0x529827,'height':_0x1dd4f9-_0xd5423e};}['_getScale'](){const _0x3e6643=_0x266cb1,{scaleX:_0x143f89,scaleY:_0x1aabfb}=this[_0x3e6643(0x10f)][_0x3e6643(0x298)]();return Math[_0x3e6643(0x29b)](_0x143f89,_0x1aabfb);}}var Zi=Object[_0x266cb1(0x327)],Qi=(_0x1f6a1c,_0x532cf9,_0x5c009b,_0x5749df)=>{const _0x3c2780=_0x266cb1;for(var _0x435e30=_0x5749df>0x1?void 0x0:_0x5749df?Zi(_0x532cf9,_0x5c009b):_0x532cf9,_0xd39599=_0x1f6a1c[_0x3c2780(0x197)]-0x1,_0x382866;_0xd39599>=0x0;_0xd39599--)(_0x382866=_0x1f6a1c[_0xd39599])&&(_0x435e30=_0x382866(_0x435e30)||_0x435e30);return _0x435e30;},ie=(_0x5e5d5c,_0x1cb48b)=>(_0x542af8,_0x289f8d)=>_0x1cb48b(_0x542af8,_0x289f8d,_0x5e5d5c);let Fe=class extends _0x165e64{constructor(_0x1eef76,_0x31cbac,_0x30a975,_0x4b5d31,_0x13a6ad){const _0x1d0446=_0x266cb1;super(),_(this,_0x1d0446(0x2e0),[]),_(this,'_cursors',[]),(this[_0x1d0446(0x1c8)]=_0x1eef76,this[_0x1d0446(0x111)]=_0x31cbac,this[_0x1d0446(0x301)]=_0x30a975,this[_0x1d0446(0x29f)]=_0x4b5d31,this['_themeService']=_0x13a6ad,this[_0x1d0446(0x151)]());}[_0x266cb1(0x151)](){const _0x3c83f7=_0x266cb1,_0x43eab6=this['_context']['unitId'],_0x3655ea=this[_0x3c83f7(0x111)];this[_0x3c83f7(0x2ed)](_0x10c2d6([this[_0x3c83f7(0x301)][_0x3c83f7(0x2a9)](_0x43eab6),this[_0x3c83f7(0x248)][_0x3c83f7(0x174)]])[_0x3c83f7(0x242)](_0x3c4e14(([_0x5d8b94,_0x18f493])=>({'skeleton':_0x3655ea['getSkeleton'](),'cursors':[..._0x5d8b94['values']()][_0x3c83f7(0x119)](_0xfcc25d=>({..._0xfcc25d,'color':this[_0x3c83f7(0x248)][_0x3c83f7(0x149)](_0xfcc25d['color'])}))})))[_0x3c83f7(0x215)](_0x3a9625=>{const _0x1f6d60=_0x3c83f7;if(this[_0x1f6d60(0x1b0)](),_0x3a9625){const {skeleton:_0x4621b0,cursors:_0x4de1d5}=_0x3a9625;this['_updateCollabCursors'](_0x4621b0,_0x4de1d5);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x266cb1(0x11f)](_0x2b71dc,_0x40a5da){const _0x58454e=_0x266cb1,{scene:_0x370145,mainComponent:_0x419202}=this['_context'],_0x5808e8=_0x40a5da[_0x58454e(0x198)](_0x244a92=>new ct(_0x244a92,_0x370145,_0x2b71dc,_0x419202));this[_0x58454e(0x2e0)]=_0x5808e8,this[_0x58454e(0x1d3)]=_0x40a5da;}[_0x266cb1(0x19f)](){const _0x19b22e=_0x266cb1;this[_0x19b22e(0x1b0)]();const {scene:_0x4041a1,mainComponent:_0x3c8455}=this[_0x19b22e(0x1c8)],_0x4b7ece=this[_0x19b22e(0x111)][_0x19b22e(0x208)](),_0x1af6e2=this['_cursors']['map'](_0x1a0195=>new ct(_0x1a0195,_0x4041a1,_0x4b7ece,_0x3c8455));this[_0x19b22e(0x2e0)]=_0x1af6e2;}['_removeCollabCursors'](){const _0x25dfb6=_0x266cb1;this[_0x25dfb6(0x2e0)][_0x25dfb6(0x253)](_0x5155ef=>_0x5155ef[_0x25dfb6(0x156)]()),this[_0x25dfb6(0x2e0)]=[];}[_0x266cb1(0x17f)](){const _0x20f215=_0x266cb1,_0x3f595c=[_0x2612e7['id']];this['disposeWithMe'](this[_0x20f215(0x29f)][_0x20f215(0x2bb)](_0x1487d8=>{const _0x475ab1=_0x20f215;_0x3f595c[_0x475ab1(0xf0)](_0x1487d8['id'])&&_0x1487d8[_0x475ab1(0x20a)][_0x475ab1(0x180)]===this[_0x475ab1(0x1c8)][_0x475ab1(0x180)]&&this[_0x475ab1(0x19f)]();}));}[_0x266cb1(0x2c9)](){const _0x1a7c89=_0x266cb1;this[_0x1a7c89(0x2ed)](_0x29cdad(this[_0x1a7c89(0x1c8)][_0x1a7c89(0x213)][_0x1a7c89(0x103)])[_0x1a7c89(0x242)](_0x22d51d(_0x29aeb8=>_0x29aeb8[_0x1a7c89(0x15a)]===_0x34850e[_0x1a7c89(0x183)]),_0x468019(0x10))[_0x1a7c89(0x215)](()=>{const _0x2b3d3b=_0x1a7c89;this[_0x2b3d3b(0x19f)]();}));}};Fe=Qi([ie(0x1,_0x3179ca(_0x30db50)),ie(0x2,_0x3179ca(H)),ie(0x3,_0x398133),ie(0x4,_0x3179ca(_0x3c5f47))],Fe);const qi=0x1,en=1.5;class tn extends _0x5f4a21{constructor(_0x28f4b8,_0x1fd213){const _0x7c177a=_0x266cb1;super(_0x28f4b8,_0x1fd213),_(this,'_color'),_(this,_0x7c177a(0x17d),!0x1),_(this,_0x7c177a(0x31e)),_(this,_0x7c177a(0x28d),''),_(this,_0x7c177a(0x1c3),_0x7c177a(0x29e)),_(this,_0x7c177a(0x2b3)),(_0x1fd213&&this['setShapeProps'](_0x1fd213),this[_0x7c177a(0x126)][_0x7c177a(0x2cb)](()=>this[_0x7c177a(0x1ce)]({'hovered':!0x0})),this[_0x7c177a(0x250)][_0x7c177a(0x2cb)](()=>this[_0x7c177a(0x1ce)]({'hovered':!0x1})));}[_0x266cb1(0x1ce)](_0x59db07){const _0x1f04a4=_0x266cb1;var _0x41c806,_0x3d3bea,_0x43f7be,_0x4f0f8b,_0x2cbc07,_0x14fae9;this[_0x1f04a4(0x1fd)]=(_0x41c806=_0x59db07[_0x1f04a4(0x23c)])!=null?_0x41c806:this[_0x1f04a4(0x1fd)],this['_hovered']=(_0x3d3bea=_0x59db07[_0x1f04a4(0x2a2)])!=null?_0x3d3bea:this[_0x1f04a4(0x17d)],this[_0x1f04a4(0x31e)]=(_0x43f7be=_0x59db07[_0x1f04a4(0x1b3)])!=null?_0x43f7be:this[_0x1f04a4(0x31e)],this[_0x1f04a4(0x28d)]=(_0x4f0f8b=_0x59db07[_0x1f04a4(0x135)])!=null?_0x4f0f8b:this['_name'],this[_0x1f04a4(0x1c3)]=(_0x2cbc07=_0x59db07['labelPosition'])!=null?_0x2cbc07:this[_0x1f04a4(0x1c3)],this[_0x1f04a4(0x2b3)]=(_0x14fae9=_0x59db07[_0x1f04a4(0x2f4)])!=null?_0x14fae9:this['_backgroundColor'],this[_0x1f04a4(0x2e4)]({'width':_0x59db07['width'],'height':_0x59db07[_0x1f04a4(0x125)]});}[_0x266cb1(0x26e)](_0x4d2e9f){const _0xa2e3ad=_0x266cb1,{row:_0x33e946,column:_0xa37887}=_0x4d2e9f;if(_0x33e946>=this[_0xa2e3ad(0x31e)][_0xa2e3ad(0x2d3)]&&_0x33e946<=this[_0xa2e3ad(0x31e)][_0xa2e3ad(0x270)]&&_0xa37887>=this[_0xa2e3ad(0x31e)][_0xa2e3ad(0x2b9)]&&_0xa37887<=this[_0xa2e3ad(0x31e)][_0xa2e3ad(0xfb)]){this[_0xa2e3ad(0x1ce)]({'hovered':!0x0});return;}this[_0xa2e3ad(0x1ce)]({'hovered':!0x1});}['triggerDblclick'](_0x12b1d0){return!0x1;}[_0x266cb1(0x300)](_0x286665){const _0x27923c=_0x266cb1;_0x221c25[_0x27923c(0x289)](_0x286665,{'width':this['width'],'height':this['height'],'strokeWidth':en,'stroke':this[_0x27923c(0x1fd)],'evented':!0x1,'fill':this[_0x27923c(0x2b3)]}),this['_hovered']&&(_0x286665[_0x27923c(0x28c)](),_0x286665[_0x27923c(0xde)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x27923c(0x1ed)?0x0:-Q),Ee[_0x27923c(0x289)](_0x286665,{'text':this['_name'],'color':this[_0x27923c(0x1fd)]}),_0x286665['restore']());}}var sn=Object[_0x266cb1(0x327)],nn=(_0x59ac83,_0x1c9766,_0x5af184,_0x4e165e)=>{const _0x29ed11=_0x266cb1;for(var _0x31df66=_0x4e165e>0x1?void 0x0:_0x4e165e?sn(_0x1c9766,_0x5af184):_0x1c9766,_0x2227bf=_0x59ac83[_0x29ed11(0x197)]-0x1,_0x2d8070;_0x2227bf>=0x0;_0x2227bf--)(_0x2d8070=_0x59ac83[_0x2227bf])&&(_0x31df66=_0x2d8070(_0x31df66)||_0x31df66);return _0x31df66;},Ne=(_0x57c5d8,_0x201742)=>(_0x5a72d8,_0x17b23d)=>_0x201742(_0x5a72d8,_0x17b23d,_0x57c5d8);const rn=0x1389;let ke=class extends _0x165e64{constructor(_0x40c601,_0x342a94,_0x441e78,_0x1f9b1f){const _0x3d0b52=_0x266cb1;super(),_(this,_0x3d0b52(0x1d3),new Set()),_(this,_0x3d0b52(0xfc),null),(this[_0x3d0b52(0x1c8)]=_0x40c601,this[_0x3d0b52(0x2c4)]=_0x342a94,this[_0x3d0b52(0x301)]=_0x441e78,this[_0x3d0b52(0x248)]=_0x1f9b1f,this[_0x3d0b52(0x151)]());}['_init'](){const _0x53600f=_0x266cb1;this[_0x53600f(0x2c4)][_0x53600f(0xdd)][_0x53600f(0x242)](_0x28018b(this['dispose$']),_0xc0630b(_0x5728bc=>{const _0x1e37da=_0x53600f;if(_0x5728bc){const _0x3fb4a1=_0x5728bc[_0x1e37da(0x24a)];return _0x10c2d6(this[_0x1e37da(0x301)][_0x1e37da(0x2a9)](this['_context'][_0x1e37da(0x180)]),this['_themeService'][_0x1e37da(0x174)])[_0x1e37da(0x242)](_0x3c4e14(([_0x5c6318,_0x5c613f])=>{const _0x36b064=_0x1e37da,_0x207b80=new Map();return _0x5c6318[_0x36b064(0x253)]((_0x358bb3,_0x6e19fd)=>{const _0x3f24b7=_0x36b064;if(_0x358bb3[_0x3f24b7(0x121)]===_0x3fb4a1){const _0x443eac={..._0x358bb3};_0x443eac[_0x3f24b7(0x23c)]=this[_0x3f24b7(0x248)]['getColorFromTheme'](_0x358bb3[_0x3f24b7(0x23c)]),_0x207b80[_0x3f24b7(0x186)](_0x6e19fd,_0x443eac);}}),{'skeleton':_0x5728bc,'cursors':_0x207b80};}));}return _0xefbff4({'skeleton':null,'cursors':new Map()});}))[_0x53600f(0x215)](({skeleton:_0x3bdf7b,cursors:_0x3c8c8e})=>{const _0x20c010=_0x53600f;this[_0x20c010(0x1b0)](),_0x3bdf7b&&this[_0x20c010(0x11f)](_0x3bdf7b,_0x3c8c8e);}),this[_0x53600f(0x2c4)]['currentSkeleton$'][_0x53600f(0x215)](_0x443ed1=>{const _0x50dbf8=_0x53600f;if(_0x443ed1==null)return;const {skeleton:_0x1450c4}=_0x443ed1,{scene:_0x5a09cb}=this[_0x50dbf8(0x1c8)];_0x5a09cb[_0x50dbf8(0x21c)][_0x50dbf8(0x2cb)](_0x51782d(_0x3d7aed=>{const _0x22b55b=_0x50dbf8;var _0x24f538,_0xd9bda6;const {offsetX:_0x189832,offsetY:_0x5d904f}=_0x3d7aed,{x:_0x304bd4,y:_0x210eae}=_0x5a09cb[_0x22b55b(0x152)](_0x183b8c['FromArray']([_0x189832,_0x5d904f])),{scaleX:_0x615f32,scaleY:_0x3f0851}=_0x5a09cb[_0x22b55b(0x298)](),_0x31f9f4=_0x5a09cb[_0x22b55b(0x2f2)](_0x1ead7d[_0x22b55b(0x296)]),_0x511209=_0x5a09cb[_0x22b55b(0x252)](_0x183b8c[_0x22b55b(0x11a)]([_0x304bd4,_0x210eae]),_0x31f9f4),_0x14e45c=_0x1450c4[_0x22b55b(0x171)](_0x189832,_0x5d904f,_0x615f32,_0x3f0851,_0x511209);((_0x24f538=this[_0x22b55b(0xfc)])==null?void 0x0:_0x24f538[_0x22b55b(0x13b)])===_0x14e45c[_0x22b55b(0x13b)]&&((_0xd9bda6=this[_0x22b55b(0xfc)])==null?void 0x0:_0xd9bda6[_0x22b55b(0xe1)])===_0x14e45c['row']||this['_cursors'][_0x22b55b(0x253)](_0x753bf7=>{const _0xb82422=_0x22b55b;_0x753bf7[_0xb82422(0x26e)](_0x14e45c);});},0x64));});}['_updateCollabCursors'](_0x394be3,_0x451529){const _0x58af09=_0x266cb1;var _0x409173;const _0x3349e6=(_0x409173=this[_0x58af09(0x2c4)][_0x58af09(0x1bf)]())==null?void 0x0:_0x409173['skeleton'];if(!_0x3349e6)return;const _0xfcd3c8=this[_0x58af09(0x24d)]();if(!_0xfcd3c8)return;this['_cursors']['forEach'](_0x1aedd1=>{const _0xb88138=_0x58af09;_0x1aedd1[_0xb88138(0x113)]();});const {scene:_0x404989}=_0xfcd3c8,_0x12b568=on(Array['from'](_0x451529[_0x58af09(0x201)]()))[_0x58af09(0x198)](_0x5a74b5=>{const _0x1de112=_0x58af09,{color:_0x39e873,range:_0x373705,name:_0x513854,selection:_0x3ed81a,sheetID:_0x483fb7}=_0x5a74b5,{startColumn:_0xb45fb5,startRow:_0x417e1b,endColumn:_0x40f852,endRow:_0xb57f84}=_0x373705,_0x277d1e=_0x2ae5c3(_0x417e1b,_0xb45fb5,_0x404989,_0x3349e6),_0x4ec14c=_0x2ae5c3(_0xb57f84,_0x40f852,_0x404989,_0x3349e6),{columnHeaderHeightAndMarginTop:_0x54c62d}=_0x3349e6,{startX:_0x35f899,startY:_0x457b5f}=_0x277d1e,{endX:_0x1a8962,endY:_0x2d78e0}=_0x4ec14c,_0x212fca=_0x1a8962-_0x35f899,_0x2c259f=_0x2d78e0-_0x457b5f,_0x5677fa={'labelPosition':_0x457b5f-_0x54c62d>=Q?_0x1de112(0x29e):'bottom','sheetID':_0x483fb7,'range':_0x373705,'color':_0x39e873,'name':_0x513854,'selection':_0x3ed81a,'left':_0x35f899,'top':_0x457b5f,'width':_0x212fca,'height':_0x2c259f,'evented':!0x1,'zIndex':rn};return new tn(_0x513854,_0x5677fa);});_0x404989['addObjects'](_0x12b568,qi),this[_0x58af09(0x1d3)]=new Set(_0x12b568);}[_0x266cb1(0x1b0)](){const _0x274511=_0x266cb1;var _0x56bfa7;(_0x56bfa7=this[_0x274511(0x1d3)])==null||_0x56bfa7[_0x274511(0x253)](_0x1b3912=>_0x1b3912['dispose']());}[_0x266cb1(0x24d)](){const _0x5a587c=_0x266cb1;return _0x9dc2c9(this[_0x5a587c(0x1c8)][_0x5a587c(0x1e5)],this[_0x5a587c(0x1c8)]);}};ke=nn([Ne(0x1,_0x3179ca(_0x311bdb)),Ne(0x2,_0x3179ca(H)),Ne(0x3,_0x3179ca(_0x3c5f47))],ke);function on(_0x923bae){const _0x3b4f03=_0x266cb1,_0x82a6e1=new Map();return _0x923bae[_0x3b4f03(0x253)](_0x5cd7cb=>{const _0x174614=_0x3b4f03;if(_0x82a6e1[_0x174614(0x276)](_0x5cd7cb['selection'])){const _0x5afccc=_0x82a6e1['get'](_0x5cd7cb[_0x174614(0x16f)]);_0x5afccc[_0x174614(0x135)]+=',\x20'+_0x5cd7cb[_0x174614(0x135)];}else _0x82a6e1[_0x174614(0x186)](_0x5cd7cb[_0x174614(0x16f)],_0x5cd7cb);}),Array[_0x3b4f03(0x306)](_0x82a6e1[_0x3b4f03(0x201)]());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x59526b,_0x562894,_0x51550a,_0x14e9c0)=>{for(var _0x3615b2=_0x14e9c0>0x1?void 0x0:_0x14e9c0?an(_0x562894,_0x51550a):_0x562894,_0x2a8ff1=_0x59526b['length']-0x1,_0x37b78c;_0x2a8ff1>=0x0;_0x2a8ff1--)(_0x37b78c=_0x59526b[_0x2a8ff1])&&(_0x3615b2=_0x37b78c(_0x3615b2)||_0x3615b2);return _0x3615b2;},F=(_0xcdc84e,_0x4f0833)=>(_0x19b41b,_0xd3cd80)=>_0x4f0833(_0x19b41b,_0xd3cd80,_0xcdc84e);let _e=class extends _0x5a57f7{constructor(_0x3bf513,_0x556244,_0x269778,_0x51f38f,_0x53d46d,_0x156e18){const _0x5d1a79=_0x266cb1;super(),this[_0x5d1a79(0x1be)]=_0x3bf513,this['_localCacheService']=_0x556244,this[_0x5d1a79(0xeb)]=_0x269778,this[_0x5d1a79(0x14b)]=_0x51f38f,this[_0x5d1a79(0x257)]=_0x53d46d,this[_0x5d1a79(0x287)]=_0x156e18,this['_setupBeforeClosingHandler'](),this[_0x5d1a79(0x2f6)]();}[_0x266cb1(0x2b6)](){const _0x1fdc8e=_0x266cb1;this[_0x1fdc8e(0x2ed)](this['_beforeCloseService'][_0x1fdc8e(0x26b)](()=>{const _0x3d0b5e=_0x1fdc8e;if(this[_0x3d0b5e(0x282)][_0x3d0b5e(0xf4)]['size'])return this[_0x3d0b5e(0x287)]['t'](_0x3d0b5e(0x110));}));}[_0x266cb1(0x2f6)](){const _0xaaacf4=_0x266cb1;this[_0xaaacf4(0x2ed)](this[_0xaaacf4(0xeb)]['event$'][_0xaaacf4(0x215)](_0x16f45b=>{const _0x15e519=_0xaaacf4;_0x16f45b['id']===_0x3c08c8['OTHER_CLIENT_EDITING']&&this[_0x15e519(0x14b)]['show']({'type':_0x34362f['Warning'],'content':this[_0x15e519(0x287)]['t'](_0x15e519(0x189))}),_0x16f45b['id']===_0x3c08c8[_0x15e519(0x23f)]&&this[_0x15e519(0x14b)][_0x15e519(0x295)]({'type':_0x34362f[_0x15e519(0xed)],'content':this[_0x15e519(0x287)]['t']('collaboration.closeRoom')}),_0x16f45b['id']===_0x3c08c8['PERMISSION_DENIED']&&this[_0x15e519(0x257)]['show']({'title':this[_0x15e519(0x287)]['t'](_0x15e519(0x167)),'content':this[_0x15e519(0x287)]['t'](_0x15e519(0x15e)),'type':_0x15e519(0x205),'duration':0x0}),_0x16f45b['id']===_0x3c08c8[_0x15e519(0x2be)]&&this[_0x15e519(0x14b)][_0x15e519(0x295)]({'type':_0x34362f[_0x15e519(0x264)],'content':this[_0x15e519(0x287)]['t'](_0x15e519(0x225))+'('+_0x16f45b[_0x15e519(0x2d5)]+')'}),_0x16f45b['id']===_0x3c08c8[_0x15e519(0x243)]&&this['_messageService'][_0x15e519(0x295)]({'type':_0x34362f[_0x15e519(0xed)],'content':this[_0x15e519(0x287)]['t'](_0x16f45b[_0x15e519(0x2d5)]||'')}),_0x16f45b['id']===_0x3c08c8[_0x15e519(0x28e)]&&this[_0x15e519(0x14b)][_0x15e519(0x295)]({'type':_0x34362f[_0x15e519(0xed)],'content':this['_localeService']['t'](_0x15e519(0x238))}),_0x16f45b['id']===_0x3c08c8[_0x15e519(0x227)]&&this[_0x15e519(0x14b)][_0x15e519(0x295)]({'type':_0x34362f[_0x15e519(0x264)],'content':this['_localeService']['t'](_0x15e519(0x2c1))}),_0x16f45b['id']===_0x3c08c8[_0x15e519(0x146)]&&this[_0x15e519(0x14b)][_0x15e519(0x295)]({'type':_0x34362f[_0x15e519(0x264)],'content':this[_0x15e519(0x287)]['t']('session.collaboration-timeout')});}));}};_e=cn([F(0x0,_0x27aa55),F(0x1,_0x4fe86f),F(0x2,_0x3179ca(_0xab5142)),F(0x3,_0x2c0732),F(0x4,_0x60036a),F(0x5,_0x3179ca(_0xe56074))],_e);var _n=Object[_0x266cb1(0x327)],ln=(_0x4d6f99,_0x2a68f3,_0x4964cf,_0x1a597d)=>{const _0x720b96=_0x266cb1;for(var _0x551e31=_0x1a597d>0x1?void 0x0:_0x1a597d?_n(_0x2a68f3,_0x4964cf):_0x2a68f3,_0xd57f6f=_0x4d6f99[_0x720b96(0x197)]-0x1,_0xab5076;_0xd57f6f>=0x0;_0xd57f6f--)(_0xab5076=_0x4d6f99[_0xd57f6f])&&(_0x551e31=_0xab5076(_0x551e31)||_0x551e31);return _0x551e31;},ne=(_0x56f180,_0x2c566e)=>(_0x33f639,_0x2a3c50)=>_0x2c566e(_0x33f639,_0x2a3c50,_0x56f180);let le=class extends _0x5a57f7{constructor(_0x4a7b5c,_0x1232e1,_0xfc513f,_0x31f534){const _0x19786f=_0x266cb1;super(),_(this,_0x19786f(0x24f)),(this[_0x19786f(0x188)]=_0x4a7b5c,this[_0x19786f(0x1ba)]=_0x1232e1,this['_logService']=_0xfc513f,this[_0x19786f(0x1c7)]=_0x31f534,this[_0x19786f(0x151)]());}[_0x266cb1(0x151)](){const _0x6eb823=_0x266cb1;this[_0x6eb823(0x166)](),this[_0x6eb823(0x147)](),this[_0x6eb823(0x1d0)](),this[_0x6eb823(0x22d)]();}[_0x266cb1(0x22d)](){const _0x173748=_0x266cb1;this[_0x173748(0x2ed)](this[_0x173748(0x1c7)][_0x173748(0x15f)]['subscribe'](_0x9dc1f2=>{const _0xc7c26=_0x173748;this[_0xc7c26(0x24f)]=_0x9dc1f2==null?void 0x0:_0x9dc1f2[_0xc7c26(0x2df)];}));}['_initWindowErrorListener'](){const _0x488413=_0x266cb1,_0x41eecb=_0x18f400=>{const _0x2735ae=_0x57d7;var _0x456c20;this[_0x2735ae(0x1dc)]('error','[Window\x20Error]:\x20'+_0x18f400[_0x2735ae(0x1b6)]+_0x2735ae(0x31f)+_0x18f400[_0x2735ae(0x2bf)]+':'+_0x18f400['lineno']+':'+_0x18f400[_0x2735ae(0x1da)]+'\x0a'+(((_0x456c20=_0x18f400[_0x2735ae(0x205)])==null?void 0x0:_0x456c20[_0x2735ae(0x305)])||''));};window[_0x488413(0x273)](_0x488413(0x205),_0x41eecb),this[_0x488413(0x2ed)](()=>{const _0x114d76=_0x488413;window[_0x114d76(0x22a)]('error',_0x41eecb);});}['_initUnhandledRejectionListener'](){const _0x4fcaa3=_0x266cb1,_0x180008=_0x3231e6=>{const _0x1d0451=_0x57d7;this[_0x1d0451(0x1dc)]('error',_0x1d0451(0x226)+_0x3231e6[_0x1d0451(0x15b)]);};window[_0x4fcaa3(0x273)](_0x4fcaa3(0xe7),_0x180008),this[_0x4fcaa3(0x2ed)](()=>{const _0x270472=_0x4fcaa3;window[_0x270472(0x22a)](_0x270472(0xe7),_0x180008);});}[_0x266cb1(0x1d0)](){const _0x5e6bc2=_0x266cb1,_0x23c1d3=this[_0x5e6bc2(0x129)][_0x5e6bc2(0x205)][_0x5e6bc2(0x2a6)](this[_0x5e6bc2(0x129)]);this[_0x5e6bc2(0x129)][_0x5e6bc2(0x205)]=(..._0x13ff02)=>{const _0x56d5ab=_0x5e6bc2,_0x469ae8=_0x13ff02[_0x56d5ab(0x198)](_0x2884a9=>_0x2884a9 instanceof Error?_0x2884a9[_0x56d5ab(0x1b6)]+'\x0a'+_0x2884a9[_0x56d5ab(0x305)]:String(_0x2884a9))[_0x56d5ab(0x29a)]('\x20');this['_uploadLog'](_0x56d5ab(0x205),_0x56d5ab(0x17c)+_0x469ae8),_0x23c1d3(..._0x13ff02);},this[_0x5e6bc2(0x2ed)](()=>{const _0x9584c7=_0x5e6bc2;this[_0x9584c7(0x129)][_0x9584c7(0x205)]=_0x23c1d3;});}[_0x266cb1(0x1dc)](_0x55f9bd,_0x261d7c){const _0x56bbfe=_0x266cb1;try{const _0x4616d0={'userId':this[_0x56bbfe(0x24f)],'logLabel':_0x55f9bd,'content':_0x261d7c};this[_0x56bbfe(0x1ba)]['post'](_0x56bbfe(0x21e),{'body':_0x4616d0})['catch'](()=>{});}catch{}}};le=ln([ne(0x0,_0x3179ca(_0x52e011)),ne(0x1,_0x3179ca(_0x299f96)),ne(0x2,_0x53fc3e),ne(0x3,_0x3179ca(_0x4622ab))],le);const hn=_0x266cb1(0x322),_t={};var un=Object['getOwnPropertyDescriptor'],dn=(_0x1b3fa7,_0x8cc073,_0x561450,_0x26497f)=>{const _0x264026=_0x266cb1;for(var _0x53acab=_0x26497f>0x1?void 0x0:_0x26497f?un(_0x8cc073,_0x561450):_0x8cc073,_0x4a30b7=_0x1b3fa7[_0x264026(0x197)]-0x1,_0x1959cd;_0x4a30b7>=0x0;_0x4a30b7--)(_0x1959cd=_0x1b3fa7[_0x4a30b7])&&(_0x53acab=_0x1959cd(_0x53acab)||_0x53acab);return _0x53acab;},lt=(_0x56f332,_0x35d8ed)=>(_0x316625,_0x1bea62)=>_0x35d8ed(_0x316625,_0x1bea62,_0x56f332);let he=class{constructor(_0x4d72a1,_0x120246){const _0x1dff0e=_0x266cb1;this[_0x1dff0e(0x143)]=_0x4d72a1,this[_0x1dff0e(0x14e)]=_0x120246;}[_0x266cb1(0x158)](_0xa2139f){const _0x534fa6=_0x266cb1;this[_0x534fa6(0x118)](_0xa2139f),this[_0x534fa6(0x262)](_0xa2139f);}['transformRemoteChangeset'](_0x23ba40){const _0x3c3e5d=_0x266cb1,{unitID:_0x378c09}=_0x23ba40,_0xfa0da=this[_0x3c3e5d(0x14e)][_0x3c3e5d(0x1a7)](_0x378c09)['with'](_0x5f31ef),{redoCache:_0x4f3550}=_0xfa0da[_0x3c3e5d(0x10d)]();if(_0x4f3550[_0x3c3e5d(0x197)]===0x0)return _0x23ba40;let _0x6579d1=_0x468abf['deepClone'](_0x23ba40[_0x3c3e5d(0x141)][0x0]);for(let _0x4df360=0x0;_0x4df360<_0x4f3550['length'];_0x4df360++){const _0x42b018={'id':_0x3c3e5d(0x1bb),'params':{..._0x4f3550[_0x4df360]}},_0x2a88dd=this['_transformService']['transformMutation'](_0x6579d1,_0x42b018,!0x1);if(_0x2bd73d(_0x2a88dd))throw _0x2a88dd[_0x3c3e5d(0x205)];_0x6579d1=_0x2a88dd['m1Prime'];}return{..._0x468abf[_0x3c3e5d(0x185)](_0x23ba40),'mutations':[_0x6579d1]};}[_0x266cb1(0x118)](_0x161336){const _0x291a58=_0x266cb1,{unitID:_0x533f2f}=_0x161336,_0x321c69=this['_renderManagerService'][_0x291a58(0x1a7)](_0x533f2f)['with'](_0x5f31ef),{undoCache:_0x20c5fc,redoCache:_0x4f3165}=_0x321c69[_0x291a58(0x10d)]();if(_0x20c5fc[_0x291a58(0x197)]===0x0||_0x4f3165['length']===0x0)return;const _0x59ff32=[],_0x14010b=[];let _0x1b3f4f=_0x468abf['deepClone'](_0x161336[_0x291a58(0x141)][0x0]),_0x5e47b3=_0x468abf[_0x291a58(0x185)](_0x161336[_0x291a58(0x141)][0x0]);for(let _0x3fe1af=_0x20c5fc['length']-0x1;_0x3fe1af>=0x0;_0x3fe1af--){const _0x12e379={'id':_0x291a58(0x1bb),'params':{..._0x20c5fc[_0x3fe1af]}},_0x15d1f0={'id':_0x291a58(0x1bb),'params':{..._0x4f3165[_0x3fe1af]}},_0x1955f3=this[_0x291a58(0x143)][_0x291a58(0x1ea)](_0x1b3f4f,_0x12e379,!0x1),_0x43b7ae=this[_0x291a58(0x143)][_0x291a58(0x1ea)](_0x5e47b3,_0x15d1f0,!0x1);if(_0x2bd73d(_0x1955f3))throw _0x1955f3[_0x291a58(0x205)];if(_0x2bd73d(_0x43b7ae))throw _0x43b7ae[_0x291a58(0x205)];_0x59ff32[_0x291a58(0x2ff)](_0x1955f3[_0x291a58(0x220)][_0x291a58(0x20a)]),_0x14010b[_0x291a58(0x2ff)](_0x43b7ae['m2Prime']['params']),_0x1b3f4f=_0x1955f3[_0x291a58(0x25c)],_0x5e47b3=_0x43b7ae['m1Prime'];}_0x321c69[_0x291a58(0x172)]({'undoCache':_0x59ff32,'redoCache':_0x14010b});}[_0x266cb1(0x262)](_0x37d7b4){const _0x3554c2=_0x266cb1,{unitID:_0x276710}=_0x37d7b4,_0x3b3799=this[_0x3554c2(0x14e)][_0x3554c2(0x1a7)](_0x276710)[_0x3554c2(0x31d)](_0x5f31ef),_0x5ad320=_0x3b3799[_0x3554c2(0x328)]();if(_0x5ad320==null)return;const _0x335cc6=[{'id':_0x3554c2(0x1bb),'params':{'unitId':_0x37d7b4['unitID'],'actions':null,'textRanges':[_0x5ad320]}}],_0x5a7fc0=this['_transformService']['transformMutationsWithChangeset'](_0x37d7b4,_0x335cc6);if(!_0x37a6c9(_0x5a7fc0))throw _0x5a7fc0[_0x3554c2(0x205)];const _0x35609e=_0x5a7fc0[_0x3554c2(0x220)][0x0][_0x3554c2(0x20a)][_0x3554c2(0x1ac)];Array[_0x3554c2(0x290)](_0x35609e)&&_0x35609e['length']&&_0x3b3799[_0x3554c2(0x13a)](_0x35609e[0x0]);}};he=dn([lt(0x0,_0x1f1952),lt(0x1,_0x4e5a7f)],he);var Sn=Object[_0x266cb1(0x327)],mn=(_0x141cb4,_0x2af2bc,_0x97c8fc,_0x59b05b)=>{for(var _0xa6010e=_0x59b05b>0x1?void 0x0:_0x59b05b?Sn(_0x2af2bc,_0x97c8fc):_0x2af2bc,_0x3ccea6=_0x141cb4['length']-0x1,_0xae8bba;_0x3ccea6>=0x0;_0x3ccea6--)(_0xae8bba=_0x141cb4[_0x3ccea6])&&(_0xa6010e=_0xae8bba(_0xa6010e)||_0xa6010e);return _0xa6010e;},Le=(_0x53c3ce,_0x13c1d0)=>(_0x1bec2a,_0x279793)=>_0x13c1d0(_0x1bec2a,_0x279793,_0x53c3ce);let ue=class{constructor(_0x410aa2,_0x2aaec9,_0x2c5098){const _0xd4681a=_0x266cb1;this[_0xd4681a(0x188)]=_0x410aa2,this[_0xd4681a(0x143)]=_0x2aaec9,this[_0xd4681a(0x27f)]=_0x2c5098;}[_0x266cb1(0x216)](_0x202768){const _0x23bf28=_0x266cb1;this[_0x23bf28(0x2a4)](_0x202768);}['transformRemoteChangeset'](_0x4bdaca){const _0x3999e6=_0x266cb1,{unitID:_0x188d96}=_0x4bdaca,{collaboration:_0x2132ab}=this['_docStateChangeManagerService'][_0x3999e6(0x204)](_0x188d96);if(_0x2132ab[_0x3999e6(0x197)]===0x0)return _0x4bdaca;let _0x2c07f4=_0x468abf[_0x3999e6(0x185)](_0x4bdaca[_0x3999e6(0x141)][0x0]);for(let _0xe8060e=0x0;_0xe8060e<_0x2132ab[_0x3999e6(0x197)];_0xe8060e++){const _0x24f333={'id':_0x3999e6(0x1bb),'params':{'unitId':_0x2132ab[_0xe8060e]['unitId'],..._0x2132ab[_0xe8060e]['redoState']}},_0x30ac6b=this['_transformService']['transformMutation'](_0x2c07f4,_0x24f333,!0x1);if(_0x2bd73d(_0x30ac6b))throw _0x30ac6b[_0x3999e6(0x205)];_0x2c07f4=_0x30ac6b[_0x3999e6(0x25c)];}return{..._0x468abf['deepClone'](_0x4bdaca),'mutations':[_0x2c07f4]};}['_transformHistoryAndStateStack'](_0x37c5fd){const _0x3dc717=_0x266cb1,{unitID:_0x4cac40}=_0x37c5fd,{history:_0x4fc55d,collaboration:_0xc7e4b2}=this[_0x3dc717(0x27f)][_0x3dc717(0x204)](_0x4cac40);if(_0x4fc55d[_0x3dc717(0x197)]===0x0&&_0xc7e4b2[_0x3dc717(0x197)]===0x0)return;const _0x37194c=[],_0x12692f=[];let _0x1ae4bb=_0x468abf[_0x3dc717(0x185)](_0x37c5fd[_0x3dc717(0x141)][0x0]),_0x585422=_0x468abf[_0x3dc717(0x185)](_0x37c5fd['mutations'][0x0]);for(let _0x5341af=_0x4fc55d[_0x3dc717(0x197)]-0x1;_0x5341af>=0x0;_0x5341af--){const _0x4d8d46={'id':_0x3dc717(0x1bb),'params':{'unitId':_0x4fc55d[_0x5341af]['unitId'],..._0x4fc55d[_0x5341af][_0x3dc717(0x30e)]}},_0x2bcd81={'id':_0x3dc717(0x1bb),'params':{'unitId':_0x4fc55d[_0x5341af][_0x3dc717(0x180)],..._0x4fc55d[_0x5341af][_0x3dc717(0x307)]}},_0x3f54a4=this[_0x3dc717(0x143)][_0x3dc717(0x1ea)](_0x1ae4bb,_0x4d8d46,!0x1),_0x1baa64=this[_0x3dc717(0x143)][_0x3dc717(0x1ea)](_0x585422,_0x2bcd81,!0x1);if(_0x2bd73d(_0x3f54a4))throw _0x3f54a4[_0x3dc717(0x205)];if(_0x2bd73d(_0x1baa64))throw _0x1baa64[_0x3dc717(0x205)];_0x37194c[_0x3dc717(0x2ff)]({..._0x4fc55d[_0x5341af],'undoState':_0x3f54a4['m2Prime']['params'],'redoState':_0x1baa64['m2Prime'][_0x3dc717(0x20a)]}),_0x1ae4bb=_0x3f54a4[_0x3dc717(0x25c)],_0x585422=_0x1baa64[_0x3dc717(0x25c)];}_0x1ae4bb=_0x468abf[_0x3dc717(0x185)](_0x37c5fd[_0x3dc717(0x141)][0x0]),_0x585422=_0x468abf['deepClone'](_0x37c5fd['mutations'][0x0]);for(let _0x1d2d9f=_0xc7e4b2[_0x3dc717(0x197)]-0x1;_0x1d2d9f>=0x0;_0x1d2d9f--){const _0x640f42={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xc7e4b2[_0x1d2d9f][_0x3dc717(0x180)],..._0xc7e4b2[_0x1d2d9f][_0x3dc717(0x30e)]}},_0x27f729={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xc7e4b2[_0x1d2d9f][_0x3dc717(0x180)],..._0xc7e4b2[_0x1d2d9f]['redoState']}},_0x3ace9f=this[_0x3dc717(0x143)][_0x3dc717(0x1ea)](_0x1ae4bb,_0x640f42,!0x1),_0x4a908d=this[_0x3dc717(0x143)][_0x3dc717(0x1ea)](_0x585422,_0x27f729,!0x1);if(_0x2bd73d(_0x3ace9f))throw _0x3ace9f['error'];if(_0x2bd73d(_0x4a908d))throw _0x4a908d[_0x3dc717(0x205)];_0x12692f['unshift']({..._0xc7e4b2[_0x1d2d9f],'undoState':_0x3ace9f[_0x3dc717(0x220)][_0x3dc717(0x20a)],'redoState':_0x4a908d[_0x3dc717(0x220)][_0x3dc717(0x20a)]}),_0x1ae4bb=_0x3ace9f['m1Prime'],_0x585422=_0x4a908d[_0x3dc717(0x25c)];}this[_0x3dc717(0x27f)]['setStateCache'](_0x4cac40,{'history':_0x37194c,'collaboration':_0x12692f});}};ue=mn([Le(0x0,_0x3179ca(_0x52e011)),Le(0x1,_0x1f1952),Le(0x2,_0x3179ca(_0x4ac405))],ue);var In=Object[_0x266cb1(0x327)],fn=(_0x3bfedb,_0x3a2ec5,_0x4d8562,_0x10cf91)=>{const _0x14fd0e=_0x266cb1;for(var _0x3d975a=_0x10cf91>0x1?void 0x0:_0x10cf91?In(_0x3a2ec5,_0x4d8562):_0x3a2ec5,_0x1f3bd6=_0x3bfedb[_0x14fd0e(0x197)]-0x1,_0x304903;_0x1f3bd6>=0x0;_0x1f3bd6--)(_0x304903=_0x3bfedb[_0x1f3bd6])&&(_0x3d975a=_0x304903(_0x3d975a)||_0x3d975a);return _0x3d975a;},ht=(_0x212278,_0x14a54a)=>(_0x53d76d,_0x4175c8)=>_0x14a54a(_0x53d76d,_0x4175c8,_0x212278);let de=class{constructor(_0x27450e,_0x4369c8){const _0x31f26b=_0x266cb1;this[_0x31f26b(0x188)]=_0x27450e,this[_0x31f26b(0x143)]=_0x4369c8;}['transformSelections'](_0xfac47e){const _0x52b6db=_0x266cb1;var _0x57e6be;const _0x4f0353=this[_0x52b6db(0x188)][_0x52b6db(0x2c6)](_0x781f61),_0x416791=(_0x57e6be=_0x4f0353['getDocRanges']())!=null?_0x57e6be:[];if(_0x416791['length']===0x0)return;const _0xc6bea6=_0xfac47e[_0x52b6db(0x271)],_0x225d0b=[{'id':_0x52b6db(0x1bb),'params':{'unitId':_0xc6bea6,'actions':null,'textRanges':_0x416791}}],_0x2ca132=this[_0x52b6db(0x143)][_0x52b6db(0x2c5)](_0xfac47e,_0x225d0b);if(!_0x37a6c9(_0x2ca132))throw _0x2ca132['error'];const _0x147760=_0x2ca132[_0x52b6db(0x220)][0x0][_0x52b6db(0x20a)][_0x52b6db(0x1ac)];Array['isArray'](_0x147760)&&_0x147760[_0x52b6db(0x197)]&&_0x4f0353[_0x52b6db(0x317)](_0x147760,{'unitId':_0xc6bea6,'subUnitId':_0xc6bea6},!0x1);}};de=fn([ht(0x0,_0x3179ca(_0x52e011)),ht(0x1,_0x1f1952)],de);var gn=Object[_0x266cb1(0x327)],vn=(_0x28593f,_0x21a96f,_0x2d989a,_0x299bff)=>{const _0x2f6d5b=_0x266cb1;for(var _0x10decc=_0x299bff>0x1?void 0x0:_0x299bff?gn(_0x21a96f,_0x2d989a):_0x21a96f,_0x131172=_0x28593f[_0x2f6d5b(0x197)]-0x1,_0x3d780b;_0x131172>=0x0;_0x131172--)(_0x3d780b=_0x28593f[_0x131172])&&(_0x10decc=_0x3d780b(_0x10decc)||_0x10decc);return _0x10decc;},U=(_0xe883e3,_0x13d3a7)=>(_0x195196,_0x2b6e39)=>_0x13d3a7(_0x195196,_0x2b6e39,_0xe883e3);let Se=class extends _0x5a57f7{constructor(_0x380818,_0x1cd01e,_0x290632,_0x13fddd,_0x11cc74,_0x231f4e,_0x35f504,_0x1576a0){const _0x1c80f4=_0x266cb1;super(),_(this,'_status$',new _0x501473(_0x2459b9[_0x1c80f4(0x277)])),(this[_0x1c80f4(0x27f)]=_0x380818,this[_0x1c80f4(0x1f1)]=_0x1cd01e,this[_0x1c80f4(0x19e)]=_0x290632,this[_0x1c80f4(0xd5)]=_0x13fddd,this[_0x1c80f4(0x134)]=_0x11cc74,this[_0x1c80f4(0x18c)]=_0x231f4e,this[_0x1c80f4(0x14b)]=_0x35f504,this['_localeService']=_0x1576a0,this['_initEntityListener']());}[_0x266cb1(0xe4)](){const _0x4dd299=_0x266cb1;this[_0x4dd299(0x2ed)](this['_collaborationController']['entityInit$'][_0x4dd299(0x215)](_0x1b68c6=>{const _0x101846=_0x4dd299,_0x150a3a=this['_docStateChangeManagerService'][_0x101846(0x24e)][_0x101846(0x215)](_0x54a48e=>{const _0xf519e4=_0x101846;if(_0x54a48e==null)return;const {unitId:_0x478a8a,redoState:_0x374956,commandId:_0xc51e34}=_0x54a48e;if(_0x478a8a!==_0x1b68c6[_0xf519e4(0x271)])return;const _0x5e8d0a={'id':_0xc51e34,'type':_0x2e5972[_0xf519e4(0x20e)],'params':{'unitId':_0x478a8a,'actions':_0x374956[_0xf519e4(0x162)],'textRanges':null}};_0x1b68c6[_0xf519e4(0x1f2)](_0x5e8d0a);});if(_0x1b68c6[_0x101846(0x2ed)](_0x150a3a),_0x1b68c6 instanceof _0x56c801){const _0x5d9204={'onTransformIME':_0x1c4890=>this['_docTransformIMECacheService'][_0x101846(0x158)](_0x1c4890),'onTransformState':_0x3e1426=>this[_0x101846(0xd5)][_0x101846(0x216)](_0x3e1426),'onTransformSelections':_0x4bd8e0=>this[_0x101846(0x134)]['transformSelections'](_0x4bd8e0),'onSyncEditingCollabCursor':_0x35e4a8=>this[_0x101846(0x18c)][_0x101846(0xd4)](_0x35e4a8),'onTransformRemoteChangesetByIMECache':_0x234c4e=>this['_docTransformIMECacheService'][_0x101846(0x13e)](_0x234c4e),'onTransformRemoteChangesetByStateCache':_0x2ac2c2=>this[_0x101846(0xd5)][_0x101846(0x13e)](_0x2ac2c2)};_0x1b68c6[_0x101846(0x139)](_0x5d9204);}}));}};Se=vn([U(0x0,_0x3179ca(_0x4ac405)),U(0x1,_0x3179ca(_0x4b8426)),U(0x2,_0x3179ca(he)),U(0x3,_0x3179ca(ue)),U(0x4,_0x3179ca(de)),U(0x5,_0x3179ca(ze)),U(0x6,_0x2c0732),U(0x7,_0x3179ca(_0xe56074))],Se);var Z=(_0x4b668b=>(_0x4b668b[_0x4b668b['UNDEFINED']=0x0]=_0x266cb1(0x1d5),_0x4b668b[_0x4b668b['OK']=0x1]='OK',_0x4b668b[_0x4b668b[_0x266cb1(0x1d4)]=0x2]=_0x266cb1(0x1d4),_0x4b668b[_0x4b668b[_0x266cb1(0x31a)]=0x3]=_0x266cb1(0x31a),_0x4b668b[_0x4b668b['NOT_FOUND']=0x4]=_0x266cb1(0x274),_0x4b668b[_0x4b668b[_0x266cb1(0x1ef)]=0x5]=_0x266cb1(0x1ef),_0x4b668b[_0x4b668b[_0x266cb1(0x195)]=0x6]=_0x266cb1(0x195),_0x4b668b[_0x4b668b['INVALID_ARGUMENT']=0x7]=_0x266cb1(0xe8),_0x4b668b[_0x4b668b['TOO_MANY_REQUESTS']=0x8]=_0x266cb1(0x210),_0x4b668b[_0x4b668b[_0x266cb1(0x19a)]=0x9]='COMPLETION_FINISHED',_0x4b668b[_0x4b668b[_0x266cb1(0x2b7)]=0xa]=_0x266cb1(0x2b7),_0x4b668b[_0x4b668b['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x266cb1(0x2cd),_0x4b668b[_0x4b668b[_0x266cb1(0x1fe)]=0xc]=_0x266cb1(0x1fe),_0x4b668b[_0x4b668b[_0x266cb1(0x1ff)]=0xd]=_0x266cb1(0x1ff),_0x4b668b[_0x4b668b[_0x266cb1(0x17e)]=0xe]=_0x266cb1(0x17e),_0x4b668b[_0x4b668b[_0x266cb1(0x20f)]=0xf]=_0x266cb1(0x20f),_0x4b668b[_0x4b668b['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x266cb1(0x30d),_0x4b668b[_0x4b668b[_0x266cb1(0x26d)]=0x64]=_0x266cb1(0x26d),_0x4b668b[_0x4b668b[_0x266cb1(0x138)]=0x65]=_0x266cb1(0x138),_0x4b668b[_0x4b668b[_0x266cb1(0x1b7)]=0xc9]=_0x266cb1(0x1b7),_0x4b668b[_0x4b668b['USER_IS_ANONYMOUS']=0xca]=_0x266cb1(0x1a4),_0x4b668b[_0x4b668b['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x266cb1(0x114),_0x4b668b[_0x4b668b[_0x266cb1(0x239)]=0x1771]=_0x266cb1(0x239),_0x4b668b[_0x4b668b[_0x266cb1(0x19c)]=0x1772]=_0x266cb1(0x19c),_0x4b668b[_0x4b668b['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x266cb1(0x1df),_0x4b668b[_0x4b668b[_0x266cb1(0x206)]=0x1b59]=_0x266cb1(0x206),_0x4b668b[_0x4b668b[_0x266cb1(0x184)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x4b668b[_0x4b668b[_0x266cb1(0x117)]=0x1b5b]=_0x266cb1(0x117),_0x4b668b[_0x4b668b[_0x266cb1(0x266)]=0x1b5c]=_0x266cb1(0x266),_0x4b668b[_0x4b668b[_0x266cb1(0x22b)]=0x1b5d]=_0x266cb1(0x22b),_0x4b668b[_0x4b668b['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x266cb1(0x212),_0x4b668b[_0x4b668b[_0x266cb1(0x104)]=0x2329]=_0x266cb1(0x104),_0x4b668b[_0x4b668b[_0x266cb1(0x2fe)]=0x232a]=_0x266cb1(0x2fe),_0x4b668b[_0x4b668b[_0x266cb1(0x314)]=0x232b]=_0x266cb1(0x314),_0x4b668b[_0x4b668b['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x4b668b[_0x4b668b[_0x266cb1(0x150)]=0x232d]=_0x266cb1(0x150),_0x4b668b[_0x4b668b[_0x266cb1(0x285)]=0x2711]=_0x266cb1(0x285),_0x4b668b[_0x4b668b[_0x266cb1(0x294)]=0x2712]=_0x266cb1(0x294),_0x4b668b[_0x4b668b[_0x266cb1(0x1b2)]=0x2713]=_0x266cb1(0x1b2),_0x4b668b[_0x4b668b['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x266cb1(0x175),_0x4b668b[_0x4b668b[_0x266cb1(0x2d8)]=0x271a]=_0x266cb1(0x2d8),_0x4b668b[_0x4b668b[_0x266cb1(0x123)]=0x271b]=_0x266cb1(0x123),_0x4b668b[_0x4b668b[_0x266cb1(0xd3)]=0x271c]=_0x266cb1(0xd3),_0x4b668b[_0x4b668b[_0x266cb1(0x1f6)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x4b668b[_0x4b668b[_0x266cb1(0x18f)]=0x271e]=_0x266cb1(0x18f),_0x4b668b[_0x4b668b[_0x266cb1(0x260)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x4b668b[_0x4b668b[_0x266cb1(0x310)]=0x2720]=_0x266cb1(0x310),_0x4b668b[_0x4b668b[_0x266cb1(0x2e9)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x4b668b[_0x4b668b['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x266cb1(0x244),_0x4b668b[_0x4b668b[_0x266cb1(0x2bd)]=0x2ee2]=_0x266cb1(0x2bd),_0x4b668b[_0x4b668b[_0x266cb1(0x27d)]=0x2ee3]=_0x266cb1(0x27d),_0x4b668b[_0x4b668b['USER_NOT_INVITED_CODE']=0x2ee4]=_0x266cb1(0x292),_0x4b668b[_0x4b668b[_0x266cb1(0x2d0)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x4b668b[_0x4b668b[_0x266cb1(0x311)]=0x32c9]=_0x266cb1(0x311),_0x4b668b[_0x4b668b[_0x266cb1(0x2e5)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x4b668b[_0x4b668b[_0x266cb1(0x297)]=0x32cb]=_0x266cb1(0x297),_0x4b668b[_0x4b668b[_0x266cb1(0x218)]=0x36b1]=_0x266cb1(0x218),_0x4b668b[_0x4b668b[_0x266cb1(0x133)]=0x36b2]=_0x266cb1(0x133),_0x4b668b[_0x4b668b[_0x266cb1(0x10a)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x4b668b[_0x4b668b['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x266cb1(0x2c7),_0x4b668b[_0x4b668b[_0x266cb1(0x29c)]=0x3715]=_0x266cb1(0x29c),_0x4b668b[_0x4b668b['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x266cb1(0x12d),_0x4b668b[_0x4b668b['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0x266cb1(0x17b),_0x4b668b[_0x4b668b[_0x266cb1(0x316)]=0x37dd]=_0x266cb1(0x316),_0x4b668b[_0x4b668b[_0x266cb1(0x1a0)]=0x3a99]=_0x266cb1(0x1a0),_0x4b668b[_0x4b668b[_0x266cb1(0x2ae)]=0x3a9a]=_0x266cb1(0x2ae),_0x4b668b[_0x4b668b[_0x266cb1(0x12c)]=0x3a9b]=_0x266cb1(0x12c),_0x4b668b[_0x4b668b[_0x266cb1(0xee)]=0x3a9c]=_0x266cb1(0xee),_0x4b668b[_0x4b668b['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x4b668b[_0x4b668b['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x266cb1(0xe3),_0x4b668b[_0x4b668b[_0x266cb1(0x279)]=0x3a9f]=_0x266cb1(0x279),_0x4b668b[_0x4b668b[_0x266cb1(0x293)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x4b668b[_0x4b668b[_0x266cb1(0x1db)]=-0x1]='UNRECOGNIZED',_0x4b668b))(Z||{});function En(_0x5c4302){const _0x43eb1e=_0x266cb1;var _0x21ff6c,_0x1e641f;const _0x21ed5a=(_0x21ff6c=_0x5c4302[_0x43eb1e(0x235)])==null?void 0x0:_0x21ff6c[_0x43eb1e(0x214)],_0x23dd28=((_0x1e641f=_0x5c4302[_0x43eb1e(0x235)])==null?void 0x0:_0x1e641f['totalFormulasToCalculate'])||0x0;return _0x21ed5a===_0xe0b366[_0x43eb1e(0x102)]&&_0x23dd28>0x0;}function pn(_0x3da310){const _0x2c54bc=_0x266cb1;return _0x3da310[_0x2c54bc(0x23b)]===_0x34b6b6['SUCCESS'];}var On=Object[_0x266cb1(0x327)],Tn=(_0x4a70ec,_0x51c539,_0x400cd9,_0x53c1eb)=>{const _0x259869=_0x266cb1;for(var _0x847195=_0x53c1eb>0x1?void 0x0:_0x53c1eb?On(_0x51c539,_0x400cd9):_0x51c539,_0x2c5e0d=_0x4a70ec[_0x259869(0x197)]-0x1,_0x4f1753;_0x2c5e0d>=0x0;_0x2c5e0d--)(_0x4f1753=_0x4a70ec[_0x2c5e0d])&&(_0x847195=_0x4f1753(_0x847195)||_0x847195);return _0x847195;},P=(_0xa42c8c,_0xd9197b)=>(_0x4252b1,_0x5b53cc)=>_0xd9197b(_0x4252b1,_0x5b53cc,_0xa42c8c);const Cn=_0x266cb1(0xe2),Rn='/universer-api/license/formula/limit/start',Dn=_0x266cb1(0x25d);let me=class extends _0x5a57f7{constructor(_0x5bad9d,_0x16ebf5,_0x12a9b7,_0x3b077e,_0x434b70,_0x2f4bbb,_0x4ee989){const _0x172550=_0x266cb1;super(),_(this,'_pollingInterval',null),_(this,_0x172550(0x127),0x0),_(this,'_currentUsage',0x0),_(this,_0x172550(0x1f8),[]),_(this,_0x172550(0xda),0x0),(this[_0x172550(0x14b)]=_0x5bad9d,this['_commandService']=_0x16ebf5,this['_configService']=_0x12a9b7,this['_httpService']=_0x3b077e,this[_0x172550(0x1f3)]=_0x434b70,this['_logService']=_0x2f4bbb,this[_0x172550(0x287)]=_0x4ee989,this[_0x172550(0x132)]());}[_0x266cb1(0x132)](){const _0x476042=_0x266cb1;this['disposeWithMe'](this['_commandService'][_0x476042(0x21d)]((_0x5d33b5,_0x1a8c35)=>{const _0x1905f5=_0x476042;var _0x2b981b;if(_0x5d33b5['id']!==_0x554a7a['id'])return;const _0x1d1d96=_0x5d33b5['params'];if(!this[_0x1905f5(0x105)]((_0x2b981b=_0x1d1d96['dirtyRanges'])!=null?_0x2b981b:[]))return;if(!this[_0x1905f5(0x207)]())throw this[_0x1905f5(0x304)](_0x5d33b5,_0x1a8c35),this[_0x1905f5(0x1c4)](),new _0x23036e();})),this[_0x476042(0x2ed)](this['_commandService']['onCommandExecuted']((_0xdb3a7a,_0x88fc79)=>{const _0x3a516d=_0x476042;if(_0xdb3a7a['id']!==_0x18d447['id'])return;const _0x428708=_0xdb3a7a[_0x3a516d(0x20a)];if(En(_0x428708)){const _0x577a57=_0x5d3172();this[_0x3a516d(0x1f8)]['push'](_0x577a57),this['_startCalculationLimit'](_0x577a57);}else{if(pn(_0x428708)&&this['_taskIds'][_0x3a516d(0x197)]>0x0){const _0x388fad=this[_0x3a516d(0x1f8)][_0x3a516d(0x2f3)]();this['_releaseCalculationLimit'](_0x388fad);}}}));}[_0x266cb1(0x156)](){const _0x394fbe=_0x266cb1;super['dispose'](),this[_0x394fbe(0x2f1)](),this[_0x394fbe(0x1f8)]=[],this[_0x394fbe(0x233)]=0x0,this[_0x394fbe(0x127)]=0x0,this[_0x394fbe(0xda)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x13ced8,_0x4a2537){const _0x34a902=_0x266cb1;for(let _0x78017b=0x0;_0x78017b<0x1e;_0x78017b++)try{if(await this['_getFormulaLimitStatus'](),this['_checkCalculationAvailable']()){this['_applyCommand'](_0x13ced8,_0x4a2537),this[_0x34a902(0x14b)][_0x34a902(0x295)]({'content':this[_0x34a902(0x287)]['t'](_0x34a902(0x321)),'type':_0x34362f[_0x34a902(0x1bd)]});return;}await new Promise(_0x2a0381=>{const _0x548522=_0x34a902;this[_0x548522(0x283)]=window[_0x548522(0x2f5)](_0x2a0381,0x3e8);});}catch(_0x58ded4){this[_0x34a902(0x129)][_0x34a902(0x205)](_0x58ded4);}this[_0x34a902(0x14b)][_0x34a902(0x295)]({'content':this[_0x34a902(0x287)]['t'](_0x34a902(0x323)),'type':_0x34362f[_0x34a902(0x264)]});}[_0x266cb1(0x27b)](_0x51f413,_0x3d2ae3){const _0x13c61b=_0x266cb1;try{this[_0x13c61b(0x29f)][_0x13c61b(0x192)](_0x51f413['id'],_0x51f413[_0x13c61b(0x20a)],_0x3d2ae3);}catch(_0x2eef43){this[_0x13c61b(0x129)][_0x13c61b(0x205)](_0x2eef43);}}[_0x266cb1(0x12e)](_0x358838,_0x3a9c6c){const _0x196f65=_0x266cb1;_0x3a9c6c<this[_0x196f65(0xda)]||(this[_0x196f65(0xda)]=_0x3a9c6c,this[_0x196f65(0x127)]=Number[_0x196f65(0x1d6)](_0x358838[_0x196f65(0xdf)]),this[_0x196f65(0x233)]=Number[_0x196f65(0x1d6)](_0x358838['currentUsage']));}async[_0x266cb1(0x221)](_0x166055){const _0x5763bc=_0x266cb1;var _0x356b56,_0x1623eb;const _0x42c260=Date[_0x5763bc(0x229)]();try{const _0x24966a=((_0x356b56=this[_0x5763bc(0x258)]['getConfig'](_0x21dc6f))==null?void 0x0:_0x356b56[_0x5763bc(0x2b4)])||Rn,_0x4d7c3b=(await this[_0x5763bc(0x1ba)]['post'](_0x24966a,{'body':JSON[_0x5763bc(0x27a)]({'taskId':_0x166055})}))[_0x5763bc(0x2b5)];if(((_0x1623eb=_0x4d7c3b['error'])==null?void 0x0:_0x1623eb['code'])!==Z['OK'])return;this[_0x5763bc(0x12e)](_0x4d7c3b['limitInfo'],_0x42c260);}catch(_0x38cc3d){this['_logService'][_0x5763bc(0x205)](_0x38cc3d);}}async['_getFormulaLimitStatus'](_0x2039d6){const _0x489048=_0x266cb1;var _0x1f94f8,_0x3d3735;const _0x296ae4=Date[_0x489048(0x229)]();try{const _0xed3fed=((_0x1f94f8=this[_0x489048(0x258)]['getConfig'](_0x21dc6f))==null?void 0x0:_0x1f94f8['getformulaLimitStatusUrl'])||Cn,_0x25f1ab=_0x2039d6?_0xed3fed+_0x489048(0x145)+encodeURIComponent(_0x2039d6):_0xed3fed,_0x51b558=(await this[_0x489048(0x1ba)]['get'](_0x25f1ab))['body'];if(((_0x3d3735=_0x51b558[_0x489048(0x205)])==null?void 0x0:_0x3d3735[_0x489048(0x1bc)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x51b558['limitInfo'],_0x296ae4);}catch(_0x54133f){this[_0x489048(0x129)][_0x489048(0x205)](_0x54133f);}}async['_releaseCalculationLimit'](_0x12eb82){const _0x27465c=_0x266cb1;var _0x2d7b83,_0x1d614e;const _0x468436=Date[_0x27465c(0x229)]();try{const _0x589a99=((_0x2d7b83=this[_0x27465c(0x258)][_0x27465c(0x1d9)](_0x21dc6f))==null?void 0x0:_0x2d7b83[_0x27465c(0x2de)])||Dn,_0x1a5e7f=(await this['_httpService'][_0x27465c(0x1aa)](_0x589a99,{'body':JSON[_0x27465c(0x27a)]({'taskId':_0x12eb82})}))[_0x27465c(0x2b5)];if(((_0x1d614e=_0x1a5e7f[_0x27465c(0x205)])==null?void 0x0:_0x1d614e[_0x27465c(0x1bc)])!==Z['OK'])return;this[_0x27465c(0x12e)](_0x1a5e7f[_0x27465c(0x15d)],_0x468436);}catch(_0x11a96f){this[_0x27465c(0x129)][_0x27465c(0x205)](_0x11a96f);}}['_checkCalculationAvailable'](){const _0x20c0a8=_0x266cb1;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x20c0a8(0x127)]-this[_0x20c0a8(0x233)]>0x0;}[_0x266cb1(0x2f1)](){const _0x4f14b0=_0x266cb1;this[_0x4f14b0(0x283)]&&(clearTimeout(this[_0x4f14b0(0x283)]),this['_pollingInterval']=null);}[_0x266cb1(0x1c4)](){const _0x1dfc68=_0x266cb1;this[_0x1dfc68(0x14b)][_0x1dfc68(0x295)]({'content':this['_localeService']['t'](_0x1dfc68(0x26f)),'type':_0x34362f[_0x1dfc68(0x14f)]});}['_hasFormulaInDirtyRanges'](_0x1f4229){const _0x2f0281=_0x266cb1;for(const _0x595cbe of _0x1f4229){const {unitId:_0x4e3904,sheetId:_0x372693,range:_0x5ddeb5}=_0x595cbe,_0x4c3c70=this['_univerInstanceService'][_0x2f0281(0x2c2)](_0x4e3904);if(!_0x4c3c70)continue;const _0x5c3729=_0x4c3c70[_0x2f0281(0x179)](_0x372693);if(!_0x5c3729)continue;const _0x38ee18=_0x5c3729[_0x2f0281(0x124)]();for(let _0x195cbd=_0x5ddeb5[_0x2f0281(0x2d3)];_0x195cbd<=_0x5ddeb5[_0x2f0281(0x270)];_0x195cbd++)for(let _0x1da18f=_0x5ddeb5[_0x2f0281(0x2b9)];_0x1da18f<=_0x5ddeb5[_0x2f0281(0xfb)];_0x1da18f++){const _0x4db6cf=_0x38ee18[_0x2f0281(0x329)](_0x195cbd,_0x1da18f);if(_0x4db6cf&&(_0x5b2a5c(_0x4db6cf['f'])||_0x6986c(_0x4db6cf['si'])))return!0x0;}}return!0x1;}};me=Tn([P(0x0,_0x3179ca(_0x2c0732)),P(0x1,_0x398133),P(0x2,_0x3607cf),P(0x3,_0x3179ca(_0x299f96)),P(0x4,_0x327d97),P(0x5,_0x53fc3e),P(0x6,_0x3179ca(_0xe56074))],me);var bn=Object['getOwnPropertyDescriptor'],Nn=(_0x3eb2ff,_0x1a42fd,_0x2efb7b,_0x2bb351)=>{for(var _0xf749fa=_0x2bb351>0x1?void 0x0:_0x2bb351?bn(_0x1a42fd,_0x2efb7b):_0x1a42fd,_0x57437a=_0x3eb2ff['length']-0x1,_0xa35b19;_0x57437a>=0x0;_0x57437a--)(_0xa35b19=_0x3eb2ff[_0x57437a])&&(_0xf749fa=_0xa35b19(_0xf749fa)||_0xf749fa);return _0xf749fa;},Ue=(_0x4ab779,_0x4b9786)=>(_0x215d27,_0x14d6c0)=>_0x4b9786(_0x215d27,_0x14d6c0,_0x4ab779);let He=class extends _0x5a57f7{constructor(_0x39428f,_0x27bf29,_0x11a471){const _0x453bc7=_0x266cb1;super(),_(this,_0x453bc7(0x256),new Map()),_(this,_0x453bc7(0xdb),new Map()),_(this,_0x453bc7(0xd6),!0x1),(this[_0x453bc7(0x258)]=_0x39428f,this[_0x453bc7(0x1ad)]=_0x27bf29,this['_revisionService']=_0x11a471);}[_0x266cb1(0x1e9)](){const _0xa9eb83=_0x266cb1;this[_0xa9eb83(0xd6)]=!0x0;}[_0x266cb1(0x309)](){const _0x486098=_0x266cb1;this[_0x486098(0xd6)]=!0x1;}get[_0x266cb1(0xf4)](){const _0x4d764b=_0x266cb1;return this[_0x4d764b(0xdb)];}[_0x266cb1(0x156)](){const _0xb87d2b=_0x266cb1;this[_0xb87d2b(0x161)]()[_0xb87d2b(0x313)](()=>super[_0xb87d2b(0x156)]());}async[_0x266cb1(0x2ac)](_0x50239a){const _0x28342e=_0x266cb1;return this[_0x28342e(0xd6)]?null:this[_0x28342e(0x1ad)][_0x28342e(0x228)](_0x3aa1d4(_0x50239a));}async['saveOfflineData'](_0x5814e7,_0x57b8c3){const _0x4f390f=_0x266cb1;return!!this['_localStorageService'][_0x4f390f(0x10e)](_0x5814e7,_0x57b8c3);}[_0x266cb1(0x2dc)](_0x29d22d,_0x238702,_0x321e79,_0x44c99a){const _0x92c1d3=_0x266cb1,_0x271d58=this[_0x92c1d3(0xd7)][_0x92c1d3(0x246)](_0x29d22d);this[_0x92c1d3(0x256)][_0x92c1d3(0x186)](_0x29d22d,{'unitID':_0x29d22d,'type':_0x238702,'awaitingChangeset':_0x321e79,'mutations':_0x44c99a,'rev':_0x271d58}),this[_0x92c1d3(0xdb)][_0x92c1d3(0x276)](_0x29d22d)||this[_0x92c1d3(0xd8)](_0x29d22d);}[_0x266cb1(0xd8)](_0x43eaf4){const _0x42f570=_0x266cb1,_0x5265eb=this['_getSaveTimeout']();_0x5265eb===0x0?this[_0x42f570(0x2f9)](_0x43eaf4):this[_0x42f570(0xdb)][_0x42f570(0x186)](_0x43eaf4,setTimeout(()=>this['_saveCache'](_0x43eaf4),_0x5265eb));}['_getSaveTimeout'](){const _0x2dbd20=_0x266cb1;var _0x22fb3d;return(_0x22fb3d=this[_0x2dbd20(0x258)][_0x2dbd20(0x1d9)](_0x25ffc0))!=null?_0x22fb3d:_0x132eff;}[_0x266cb1(0x2f9)](_0x5545af){const _0x3f38c9=_0x266cb1,_0x253b59=this[_0x3f38c9(0xdb)][_0x3f38c9(0x2c6)](_0x5545af);return _0x253b59!==void 0x0&&window[_0x3f38c9(0x263)](_0x253b59),this[_0x3f38c9(0x1ad)][_0x3f38c9(0x10e)](_0x3aa1d4(_0x5545af),this[_0x3f38c9(0x256)][_0x3f38c9(0x2c6)](_0x5545af))[_0x3f38c9(0x313)](()=>this[_0x3f38c9(0xdb)][_0x3f38c9(0x21b)](_0x5545af));}async[_0x266cb1(0x161)](){const _0x450922=_0x266cb1,_0x491fca=[];this[_0x450922(0xdb)][_0x450922(0x253)]((_0x5ee3a7,_0x169f53)=>{const _0x3e1649=_0x450922;window[_0x3e1649(0x263)](_0x5ee3a7),_0x491fca['push'](this[_0x3e1649(0x2f9)](_0x169f53)[_0x3e1649(0x313)](()=>{const _0x43d0ef=_0x3e1649;this[_0x43d0ef(0xdb)][_0x43d0ef(0x21b)](_0x169f53);}));}),await Promise[_0x450922(0x28b)](_0x491fca);}};He=Nn([Ue(0x0,_0x3607cf),Ue(0x1,_0x17555e),Ue(0x2,_0x3179ca(_0x48e7e0))],He);class Ln extends _0x165e64{constructor(){const _0x595136=_0x266cb1;super(),_(this,'urlChange$'),this[_0x595136(0x1a9)]=_0x573346(window,'popstate')[_0x595136(0x242)](_0x21b87b(this[_0x595136(0xff)]),_0x22cf6d(0x1),_0x3071cf(void 0x0));}['setParam'](_0x15a685,_0x48c6ca,_0x2405b3=!0x1){const _0x4d0e07=_0x266cb1,_0x7107ef=new URL(window[_0x4d0e07(0x1e4)]['href']);_0x7107ef[_0x4d0e07(0x24c)]['set'](_0x15a685,_0x48c6ca),_0x2405b3?window[_0x4d0e07(0x240)][_0x4d0e07(0xd9)]('','',_0x7107ef[_0x4d0e07(0x29d)]()):window[_0x4d0e07(0x240)]['pushState']('','',_0x7107ef[_0x4d0e07(0x29d)]());}[_0x266cb1(0x2fd)](_0x19dff8,_0x38517d=!0x1){const _0x241054=_0x266cb1,_0x4009c5=new URL(window[_0x241054(0x1e4)][_0x241054(0x1c9)]);_0x4009c5[_0x241054(0x24c)][_0x241054(0x21b)](_0x19dff8),_0x38517d?window['history'][_0x241054(0xd9)]('','',_0x4009c5['toString']()):window[_0x241054(0x240)][_0x241054(0xe6)]('','',_0x4009c5[_0x241054(0x29d)]());}[_0x266cb1(0x13c)](_0x5421f9){const _0x314c0b=_0x266cb1;var _0x3e2303;return(_0x3e2303=new URL(window['location'][_0x314c0b(0x1c9)])['searchParams'][_0x314c0b(0x2c6)](_0x5421f9))!=null?_0x3e2303:void 0x0;}}var Un=Object[_0x266cb1(0x269)],Mn=Object[_0x266cb1(0x327)],An=(_0x1e59ce,_0x29f4a,_0x22ba6f)=>_0x29f4a in _0x1e59ce?Un(_0x1e59ce,_0x29f4a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22ba6f}):_0x1e59ce[_0x29f4a]=_0x22ba6f,Pn=(_0x36dccd,_0x536446,_0x386ece,_0x438786)=>{for(var _0x327213=_0x438786>0x1?void 0x0:_0x438786?Mn(_0x536446,_0x386ece):_0x536446,_0x5cc638=_0x36dccd['length']-0x1,_0x5c1107;_0x5cc638>=0x0;_0x5cc638--)(_0x5c1107=_0x36dccd[_0x5cc638])&&(_0x327213=_0x5c1107(_0x327213)||_0x327213);return _0x327213;},Me=(_0x456e80,_0x4a1631)=>(_0x3728f3,_0x2baab4)=>_0x4a1631(_0x3728f3,_0x2baab4,_0x456e80),wn=(_0x23de8f,_0x5f4a72,_0x58c713)=>An(_0x23de8f,_0x5f4a72+'',_0x58c713);const yn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ye=class extends _0x2eb738{constructor(_0x157de7=_t,_0x4b4f44,_0x1db90a,_0x3be84a){const _0x1a8969=_0x266cb1;super(),this[_0x1a8969(0x2eb)]=_0x157de7,this['_renderManagerService']=_0x4b4f44,this['_injector']=_0x1db90a,this[_0x1a8969(0x258)]=_0x3be84a;const {..._0x70e2ed}=_0x1407a1({},_t,this[_0x1a8969(0x2eb)]);this['_configService']['setConfig'](hn,_0x70e2ed);}['onStarting'](){const _0x205dbe=_0x266cb1;this[_0x205dbe(0x2dd)](),this[_0x205dbe(0xfd)]();}[_0x266cb1(0x324)](){const _0x3007aa=_0x266cb1;this[_0x3007aa(0x173)]();}[_0x266cb1(0x2dd)](){const _0x3cd8ce=_0x266cb1;var _0x161837;const _0x5a2f91=[[Ke],[me],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x2ec716,{'useClass':_0x1c8192}],[_0x4fe86f,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x3cd8ce(0x2eb)][_0x3cd8ce(0x254)]&&_0x5a2f91[_0x3cd8ce(0x30c)]([le]),_0x329602(this[_0x3cd8ce(0x188)],_0x3a0cf2(_0x5a2f91,(_0x161837=this[_0x3cd8ce(0x2eb)])==null?void 0x0:_0x161837[_0x3cd8ce(0x17a)]));}['_registerRenderDependencies'](){const _0x21019f=_0x266cb1;this[_0x21019f(0x2ed)](this[_0x21019f(0x14e)][_0x21019f(0x2fb)](_0x4f0ec8[_0x21019f(0xf3)],[Fe])),this[_0x21019f(0x2ed)](this['_renderManagerService'][_0x21019f(0x2fb)](_0x4f0ec8[_0x21019f(0x308)],[ke]));}['_initDependencies'](){const _0x1db30d=_0x266cb1;_0x2c027c(this[_0x1db30d(0x188)],[[H],[ae],[Se],[_e],[ce],[me]]),this[_0x1db30d(0x2eb)][_0x1db30d(0x254)]&&_0x2c027c(this['_injector'],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x501276(_0x53669b),Me(0x1,_0x4e5a7f),Me(0x2,_0x3179ca(_0x52e011)),Me(0x3,_0x3607cf)],Ye);var $n=Object[_0x266cb1(0x327)],xn=(_0x2195bd,_0x49e964,_0x3e6ef9,_0x30f804)=>{const _0x3e70c4=_0x266cb1;for(var _0x59064b=_0x30f804>0x1?void 0x0:_0x30f804?$n(_0x49e964,_0x3e6ef9):_0x49e964,_0x1ed929=_0x2195bd[_0x3e70c4(0x197)]-0x1,_0x1288ac;_0x1ed929>=0x0;_0x1ed929--)(_0x1288ac=_0x2195bd[_0x1ed929])&&(_0x59064b=_0x1288ac(_0x59064b)||_0x59064b);return _0x59064b;},J=(_0x504df1,_0xf68077)=>(_0x2a811c,_0x34a4f6)=>_0xf68077(_0x2a811c,_0x34a4f6,_0x504df1);let ut=class extends _0x527d7d{constructor(_0x2fced1,_0x38f03d,_0x1d4ebe,_0x502a3b,_0x5bd1b0){super(_0x2fced1,_0x38f03d,_0x1d4ebe,_0x502a3b,_0x5bd1b0);}async['createSocket'](_0xed67fc){const _0x5963ee=_0x266cb1,_0x1e692e=await this[_0x5963ee(0x209)](),_0x24f4a0=this['_createSocketURL'](_0xed67fc,_0x1e692e);return this[_0x5963ee(0x31c)](_0x24f4a0);}[_0x266cb1(0x1ec)](_0x12fa47,_0x2aa89a){const _0x5b9629=_0x266cb1,_0x59d57b=typeof window>'u'?new URL(_0x12fa47):new URL(_0x12fa47,window['location']['origin']);_0x59d57b[_0x5b9629(0x24c)][_0x5b9629(0x186)]('sessionTicket',_0x2aa89a);const _0x165b61=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5b9629(0x1e4)][_0x5b9629(0x25e)]);return _0x165b61[_0x5b9629(0x2c6)](_0x5b9629(0x278))&&_0x59d57b[_0x5b9629(0x24c)][_0x5b9629(0x186)](_0x5b9629(0x278),_0x165b61[_0x5b9629(0x2c6)](_0x5b9629(0x278))),_0x59d57b['toString']();}async[_0x266cb1(0x209)](){const _0x3e58a3=_0x266cb1;var _0xb602e0,_0x3c64a2,_0x5e2543;const _0x57fc62=this[_0x3e58a3(0x258)][_0x3e58a3(0x1d9)](_0x21dc6f),_0x3f848d=(_0xb602e0=_0x57fc62==null?void 0x0:_0x57fc62[_0x3e58a3(0x320)])!=null?_0xb602e0:_0x5347b6;return(_0x5e2543=(_0x3c64a2=(await this[_0x3e58a3(0x1ba)][_0x3e58a3(0x2c6)](_0x3f848d,{'headers':{'Content-Type':_0x3e58a3(0x15c)}}))[_0x3e58a3(0x2b5)])==null?void 0x0:_0x3c64a2[_0x3e58a3(0x251)])!=null?_0x5e2543:'';}};ut=xn([J(0x0,_0x3179ca(_0x52e011)),J(0x1,_0x3179ca(_0x299f96)),J(0x2,_0x3607cf),J(0x3,_0x53fc3e),J(0x4,_0x358502)],ut);var Bn=Object[_0x266cb1(0x327)],Fn=(_0x201a99,_0x56db4e,_0x4f6fd4,_0x4b7b86)=>{const _0x11e38e=_0x266cb1;for(var _0x5e66bb=_0x4b7b86>0x1?void 0x0:_0x4b7b86?Bn(_0x56db4e,_0x4f6fd4):_0x56db4e,_0x1bec31=_0x201a99[_0x11e38e(0x197)]-0x1,_0x260ca7;_0x1bec31>=0x0;_0x1bec31--)(_0x260ca7=_0x201a99[_0x1bec31])&&(_0x5e66bb=_0x260ca7(_0x5e66bb)||_0x5e66bb);return _0x5e66bb;},Ae=(_0x5b3f66,_0x2441d9)=>(_0x3050c6,_0x14c873)=>_0x2441d9(_0x3050c6,_0x14c873,_0x5b3f66);function _0x59ef(){const _0x440457=['roomMembers','ENSURE_SNAPSHOT_EXECUTION','[CollaborationDataLoaderController]','beginPath','_collabSessionService','assignAColorForMemberID','location','unit','defIds','_getMergeRange','_assignedColors','disableLocalCache','transformMutation','_render','_createSocketURL','bottom','replace','UNAUTHENTICATED','currentColor','_collaborationController','onLocalMutation','_univerInstanceService','runOnServer','_entities','YUUMI_ALL_TABLES_IS_INVALID','registerRefRange','_taskIds','cursorInfo','_anchor','_hideTimer','clearInterval','_color','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','EMAIL_VERIFY_CODE_MISMATCH','_removeClearOtherTimer','values','getCurrentUnitForType','url(#off-line-icon_clip0_910_343)','getStateCache','error','APPLY_REJECT','_checkCalculationAvailable','getSkeleton','_getSessionTicket','params','_refRangeService','_shapes','_onCursorDelete','MUTATION','AUTHORIZE_CODE_ILLEGAL','TOO_MANY_REQUESTS','getUnitId','CONNECTOR_DATA_TOO_LARGE','engine','stage','subscribe','transformStateCache','HEADER_MENU','ENTITLE_CAN_NOT_BUY_LOWER_OTP','defs','text','delete','onPointerMove$','beforeCommandExecuted','/universer-api/frontend/logs','cursorInfo$','m2Prime','_startCalculationLimit','_updateLocalCursor','getMember','getDocRanges','collaboration.closeRoom','[Unhandled\x20Rejection]:\x20','SOCKET_FAILED','getItem','now','removeEventListener','APPLY_DUPLICATED','_hover','_initUserListener','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','lineTo','_docClipboardService','white','collabStatus.syncing','_currentUsage','restore','stageInfo','addObject','_handleHeartbeatEvent','session.will-retry','SNAPSHOT_INVALID_SNAPSHOT','requireSession','functionsExecutedState','color','toRgbString','url(#$1','CLOSE_ROOM','history','_textBubble','pipe','JOIN_ROOM_FAILED','INVITE_CODE_HAS_BEEN_UES','displayName','getCurrentRevOfUnit','getUniverSheetInstance','_themeService','_ensureSubject','sheetId','_startSheetCollabCursor','searchParams','_getSheetObject','docStateChange$','_memberID','onPointerLeave$','ticket','getVpScrollXYInfoByPosToVp','forEach','enableFrontendLog','Unknown\x20user','_cachedData','_notificationService','_configService','_instanceService','tag','registerComponent','m1Prime','/universer-api/license/formula/limit/done','search','mask','YUUMI_AI_RUN_FAILED','UPDATE_CURSOR','_transformPreviousActiveRange','clearTimeout','Error','random','APPLY_PERMISSION_DENIED','roomMembers$','string','defineProperty','_clearOtherTimers','registerBeforeClose','fillStyle','CURRENT_STATUS_CANNOT_OPERATE','onMouseMove','formula.calculation.waiting','endRow','unitID','fill','addEventListener','NOT_FOUND','colorChannel1','has','NOT_COLLAB','runId','REDEMPTION_CODE_HAS_BEEN_CREATED','stringify','_applyCommand','evenodd','INVITE_CODE_REQUIRED','activeSheet$','_docStateChangeManagerService','collabStatus.synced','_online','_localCacheService','_pollingInterval','svg','YUUMI_UNABLE_LOAD_URL','children','_localeService','UniverIcon','drawWith','InsertRangeMoveDownCommandId','all','save','_name','SOCKET_FAILED_RETRY','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','isArray','OFFLINE','USER_NOT_INVITED_CODE','DATA_SOURCE_TOO_LARGE','YUUMI_URL_COL_OUT_OF_RANGE','show','VIEW_MAIN','EMAIL_HAS_BEEN_BOUND','getAncestorScale','_colorAssignService','join','max','ENTITLE_CHAT_LIMIT_EXCEED','toString','top','_commandService','idSuffix','_entityInit$','hovered','green.600','_transformHistoryAndStateStack','setParam','bind','univerjs-icon\x20univerjs-icon-','event$','getCollabCursors$','_handleEvent','parse','loadOfflineData','debug','REDEMPTION_CODE_INACTIVE','OnLineIcon','_unitOnClients','_colorIndex','/run/','_backgroundColor','startFormulaLimitUrl','body','_setupBeforeClosingHandler','LOGIN_FAILED','1em','startColumn','ONLINE','onCommandExecuted','eventID','INVALID_INVITE_CODE','CONFLICT','filename','_handleJoinEvent','session.connection-failed','getUnit','_memberService','_sheetSkeletonManagerService','transformMutationsWithChangeset','get','PAYMENT_CHANNEL_NOT_SUPPORT','setAlpha','_initResize','OffLineIcon','subscribeEvent','round','MOBILE_VERIFY_CODE_MISMATCH','status$','getMergeData','INVITE_CODE_ALREADY_BOUND','collabStatus.fetchMiss','_send','startRow','_status$','data','USERS_LEAVE','_updateURLWithCurrentState','YUUMI_NO_CUBOID_FOR_QUESTION','getMemberID','getTypeOfUnitDisposed$','collab-text-range-','updateOfflineData','_registerDependencies','releaseFormulaLimitUrl','memberID','_cursorShapes','complete','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','univer-flex\x20univer-items-center','transformByState','MOBILE_HAS_BEEN_BOUND','InsertRangeMoveRightCommandId','_drawTextRange','AWAITING_WITH_PENDING','PY_RUNTIME_SCRIPT_ERROR','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','_config','rgba(255,\x20255,\x20255,\x200.01)','disposeWithMe','init','newValue','_unitStatus','_clearPolling','getViewport','shift','backgroundColor','setTimeout','_initEvent','on-line-icon_clip0_910_349','_initStatusListener','_saveCache','executionId','registerRenderModule','yellow.400','removeParam','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','unshift','_draw','_collabCursorController','_cursor','closePath','_checkAndWaitForCalculationPermission','stack','from','redoState','UNIVER_SHEET','enableLocalCache','_collabCursorState$','collab-rect-range-','push','LOGIN_TOKEN_PROCESSING_FAILED','undoState','_cursorInfo$','YUUMI_CONNECTOR_URL_NOT_FOUND','WECHAT_HAS_BEEN_BOUND','getTypeOfUnitAdded$','then','LICENSE_IMPORT_SIZE_EXCEEDED','arc','ENTITLE_NEED_BILLING_ADDRESS','replaceDocRanges','10725168NYcSWU','disposeUnit','PERMISSION_DENIED','black','_doCreateSocket','with','_range','\x20at\x20','wsSessionTicketUrl','formula.calculation.started','collaboration-client-ui.config','formula.calculation.unable','onRendered','addClipboardHook','getSheetId','getOwnPropertyDescriptor','getActiveRange','getValue','YUUMI_TABLE_NOT_FOUND_IN_UNIT','syncEditingCollabCursor','_docTransformStateCacheService','_disabled','_revisionService','_scheduleSaving','replaceState','_lastResponseTimestamp','_saveTaskMap','attrs','currentSkeleton$','transform','maxFormulaLimit','_dataLoaderService','row','/universer-api/license/formula/limit/status','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_initEntityListener','_startDocCollabCursor','pushState','unhandledrejection','INVALID_ARGUMENT','getUnitStatus$','sessionStatus$','_collaborationUIEventService','add','Warning','REDEMPTION_CODE_NOT_STARTED','selections','includes','getCurrentSelections','#FFF','UNIVER_DOC','saveTaskMap','trim','SYNCED','hide','1123512SwjLWu','_syncEditingCollabCursorService','width','endColumn','_lastPointer','_initDependencies','unload','dispose$','div','some','START_CALCULATION','onTransformChange$','LICENSE_MAX_UNITS_EXCEEDED','_hasFormulaInDirtyRanges','OTHER_CLIENTS_EDITING','loadUnit','_urlService','AWAITING','ENTITLE_DUP_SUBSCRIPTION','assign','path','getUndoRedoMutationParamsCache','setItem','_scene','collaboration-client.offline-data-not-saved','_docSkeletonManagerService','_setupSubUnitSync','makeDirty','CHANGESET_REVISION_CONFILICT','Failed','find','APPLY_REVISION_CONFILICT','_transformUndoRedoStack','flatMap','FromArray','jiqing.500','url(#on-line-icon_clip0_910_349)','_imageIoService','_onRefRangeChange','_updateCollabCursors','_scheduleHeartbeat','sheetID','measureText','YUUMI_ASYNCIO_CANCELLED','getCellMatrix','height','onPointerEnter$','_maxFormulaLimit','_updateSubUnitFromURLParams','_logService','6vnoOJR','_session','REDEMPTION_CODE_FULLY_REDEEMED','ENTITLE_REPORT_LIMIT_EXCEED','_setFormulaLimitStatus','ACTIVE_UNIT_EVENT_CHANNEL','min','getCollabEntity$','_initCommandInterceptor','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_docTransformSelectionsService','name','collabStatus.notCollab','univer-mr-2\x20univer-flex\x20univer-text-xl','ERROR_AGAIN','addHandlerCallback','setActiveRange','column','getParam','RemoveColCommandId','transformRemoteChangeset','_getAnchorBounding','_roomMembers$','mutations','findNodePositionByCharIndex','_transformService','getFocusedUnit','?taskId=','SUBMIT_CHANGESET_TIMEOUT','_initUnhandledRejectionListener','http://www.w3.org/2000/svg','getColorFromTheme','translate(.97)','_messageService','font','collabCursorState$','_renderManagerService','Loading','LICENSE_DISTRO_REJECTED','_init','getRelativeToViewportCoord','_uiPartsService','send','17772rwerYz','dispose','moveTo','transformIMECache','_id','type','reason','application/json','limitInfo','permission.content','socket$','subUnitId','exhaustSavingTask','actions','purple.300','_anchorDot','result','_initWindowErrorListener','permission.title','_drawAnchor','1199020YGNyEJ','asObservable','RemoveRowCommandId','size','entries','current','selection','_handleLeaveEvent','getCellPositionByOffset','setUndoRedoMutationParamsCache','_registerRenderDependencies','currentTheme$','YUUMI_SUBSCRIPTION_NOT_FOUND','collabStatus.offline','collab-client.tooltip.reconnect','xlink:href','getSheetBySheetId','override','ENTITLE_INSUFFICIENT_QUOTA','[LogService\x20Error]:\x20','_hovered','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_initCommandExecutedListener','unitId','symbol','_scheduleClearOtherTimer','resize','APPLY_NON_SEQUENTIAL_REVISION','deepClone','set','getUnhiddenWorksheets','_injector','collaboration.single-unit.warning','saveImage','getActiveSheet','_docSyncEditingCollabCursorService','source','none','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','subunit','_selfUnitIDs','executeCommand','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_initStatusComponent','ALREADY_EXISTS','_heartbeatTimer','length','map','348052JDNxmM','COMPLETION_FINISHED','_toggleOnline','SNAPSHOT_HAS_BEEN_REMOVED','0\x200\x2016\x2016','_docTransformIMECacheService','_refreshCollabCursors','REDEMPTION_INVALID_CODE','next','_onCursorUpdate','key','USER_IS_ANONYMOUS','_toggleOffline','MoveRangeCommandId','getRenderById','PENDING','urlChange$','post','split','textRanges','_localStorageService','whenReady','NO_OTHER_CLIENTS_EDITING','_removeCollabCursors','...','YUUMI_RATE_OVER_LIMIT','range','setInterval','createInstance','message','USER_NOT_FOUND','clipPath','unsubscribe','_httpService','doc.mutation.rich-text-editing','code','Success','_beforeCloseService','getCurrent','_eventUnsubscribe','startsWith','isEditing','_labelPosition','_showGuardMessage','invokeId','70534ZxlzXL','_collaborationSessionService','_context','href','2641863DDuExD','reconnect','isActive','substring','setShapeProps','imageSourceType','_monkeyPatchLogService','_handleHover','ranges','_cursors','INTERNAL_ERROR','UNDEFINED','parseInt','off-line-icon_clip0_910_343','getRangePointData','getConfig','colno','UNRECOGNIZED','_uploadLog','TEXT'];_0x59ef=function(){return _0x440457;};return _0x59ef();}let dt=class extends _0x5a57f7{constructor(_0x33d633,_0x5931e3,_0x27ece1){const _0x489cc7=_0x266cb1;super(),this[_0x489cc7(0x259)]=_0x33d633,this['_httpService']=_0x5931e3,this[_0x489cc7(0x258)]=_0x27ece1;}async[_0x266cb1(0x1f4)](_0x3bc5e2,_0x492625,_0x2e79ec,..._0x17f8c5){const _0x50132d=_0x266cb1;var _0x3a23eb,_0x354e49,_0x190b45,_0x3f52eb;const _0x351eb7=this[_0x50132d(0x259)]['getFocusedUnit']();if(!_0x351eb7)throw new Error(_0x50132d(0x193));const _0x50f9b6=((_0x3a23eb=this[_0x50132d(0x258)][_0x50132d(0x1d9)](_0xf48c70))!=null?_0x3a23eb:_0x1665a3)+'/'+_0x3bc5e2+_0x50132d(0x2b2)+_0x492625,_0x55e6cf=new URL(window[_0x50132d(0x1e4)]['href']),_0x4266dd={'scriptId':_0x3bc5e2,'runId':(_0x354e49=_0x55e6cf[_0x50132d(0x24c)][_0x50132d(0x2c6)]('runId'))!=null?_0x354e49:'','function':_0x492625,'unitId':_0x351eb7[_0x50132d(0x211)](),'argsOfFunction':JSON[_0x50132d(0x27a)](_0x17f8c5),'invokeId':(_0x190b45=_0x2e79ec[_0x50132d(0x1c5)])!=null?_0x190b45:'','executionId':(_0x3f52eb=_0x2e79ec[_0x50132d(0x2fa)])!=null?_0x3f52eb:''};try{const _0x38b8ab=await this[_0x50132d(0x1ba)][_0x50132d(0x1aa)](_0x50f9b6,{'body':_0x4266dd});return _0x38b8ab['body'][_0x50132d(0x205)]&&_0x38b8ab[_0x50132d(0x2b5)][_0x50132d(0x205)][_0x50132d(0x1bc)]!==Z['OK']?_0x50132d(0x115):_0x38b8ab[_0x50132d(0x2b5)][_0x50132d(0x165)];}catch{return _0x50132d(0x115);}}};dt=Fn([Ae(0x0,_0x327d97),Ae(0x1,_0x3179ca(_0x299f96)),Ae(0x2,_0x3607cf)],dt);const St=0x7530,mt=_0x266cb1(0x12f);class rr extends _0x5a57f7{constructor(){const _0x56de2f=_0x266cb1;super(),_(this,_0x56de2f(0x159),_0x5d3172()),_(this,'_selfUnitIDs',new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x56de2f(0x196),null),_(this,_0x56de2f(0x26a),new Map()),_(this,_0x56de2f(0x2f0),new Map()),this[_0x56de2f(0x151)]();}[_0x266cb1(0x156)](){const _0x9ba8a3=_0x266cb1;super[_0x9ba8a3(0x156)](),this['_clearOtherTimers']['forEach']((_0x46cd95,_0x432234)=>this[_0x9ba8a3(0x200)](_0x432234)),this[_0x9ba8a3(0x196)]&&window['clearInterval'](this[_0x9ba8a3(0x196)]);}[_0x266cb1(0xe9)](_0x5a85a7){const _0x479b31=_0x266cb1;return this[_0x479b31(0x249)](_0x5a85a7)['pipe'](_0x23072d());}['editingUnit'](_0xea8684){const _0x12a6c2=_0x266cb1;this[_0x12a6c2(0x191)][_0x12a6c2(0x16c)]===0x0&&this[_0x12a6c2(0x120)](),this[_0x12a6c2(0x191)][_0x12a6c2(0xec)](_0xea8684),this[_0x12a6c2(0x2d2)]({'type':0x0,'memberID':this[_0x12a6c2(0x159)],'unitIDs':[_0xea8684],'isForwarded':!0x1});}[_0x266cb1(0x319)](_0x166c02){const _0x3a9546=_0x266cb1;this[_0x3a9546(0x191)][_0x3a9546(0x21b)](_0x166c02),this[_0x3a9546(0x191)][_0x3a9546(0x16c)]===0x0&&this['_heartbeatTimer']&&window[_0x3a9546(0x1fc)](this['_heartbeatTimer']);}['_init'](){const _0x5ef08d=_0x266cb1;this[_0x5ef08d(0x2ed)](_0x4001b9(_0x573346(window,'storage')[_0x5ef08d(0x215)](_0x5ee4ef=>{const _0x6f28b=_0x5ef08d;if(_0x5ee4ef[_0x6f28b(0x1a3)]!==mt||!_0x5ee4ef[_0x6f28b(0x2ef)])return;const _0x8ff780=JSON[_0x6f28b(0x2ab)](_0x5ee4ef[_0x6f28b(0x2ef)]);this[_0x6f28b(0x2aa)](_0x8ff780);}))),window[_0x5ef08d(0x273)](_0x5ef08d(0xfe),()=>this['_send']({'type':0x1,'memberID':this[_0x5ef08d(0x159)],'unitIDs':Array[_0x5ef08d(0x306)](this[_0x5ef08d(0x191)])}));}[_0x266cb1(0x2aa)](_0x15cef9){const _0x124cad=_0x266cb1;switch(_0x15cef9[_0x124cad(0x15a)]){case 0x0:this['_handleJoinEvent'](_0x15cef9);break;case 0x1:this[_0x124cad(0x170)](_0x15cef9);break;case 0x2:this['_handleHeartbeatEvent'](_0x15cef9);break;}}[_0x266cb1(0x2c0)](_0x62817c){const _0x54671f=_0x266cb1,{unitIDs:_0x312264,memberID:_0x5ec760,isForwarded:_0x1e0431}=_0x62817c;_0x312264[_0x54671f(0x253)](_0x1ba764=>{const _0x1d4009=_0x54671f;if(!_0x1e0431&&this[_0x1d4009(0x2b0)]['has'](_0x1ba764)&&this['_ensureSubject'](_0x1ba764)[_0x1d4009(0x1a1)](_0xac2979[_0x1d4009(0x106)]),!this[_0x1d4009(0x2b0)][_0x1d4009(0x276)](_0x1ba764)||!this[_0x1d4009(0x2b0)]['get'](_0x1ba764)['has'](_0x5ec760)){const _0x26bdbf=this[_0x1d4009(0x2b0)][_0x1d4009(0x2c6)](_0x1ba764)||new Set();_0x26bdbf[_0x1d4009(0xec)](_0x5ec760),this[_0x1d4009(0x2b0)]['set'](_0x1ba764,_0x26bdbf),this[_0x1d4009(0x182)](_0x5ec760);}}),_0x1e0431||this['_send']({'type':0x0,'memberID':this[_0x54671f(0x159)],'unitIDs':[...this[_0x54671f(0x191)]],'isForwarded':!0x0});}[_0x266cb1(0x182)](_0x4366bc){const _0x1b1c2a=_0x266cb1;this['_removeClearOtherTimer'](_0x4366bc);const _0x37a092=window[_0x1b1c2a(0x2f5)](()=>{const _0x552d80=_0x1b1c2a;this[_0x552d80(0x2b0)]['forEach'](_0x1bde8f=>{_0x1bde8f['delete'](_0x4366bc);});},St*0x2);this['_clearOtherTimers'][_0x1b1c2a(0x186)](_0x4366bc,_0x37a092);}[_0x266cb1(0x200)](_0x361aeb){const _0x2c1aa5=_0x266cb1;if(this[_0x2c1aa5(0x26a)]['has'](_0x361aeb)){const _0xf14178=this[_0x2c1aa5(0x26a)][_0x2c1aa5(0x2c6)](_0x361aeb);_0xf14178&&window[_0x2c1aa5(0x263)](_0xf14178),this['_clearOtherTimers']['set'](_0x361aeb,null);}}[_0x266cb1(0x170)](_0xaa35d7){const _0x1d500c=_0x266cb1,{memberID:_0x20024c,unitIDs:_0x2da5e1}=_0xaa35d7;_0x2da5e1[_0x1d500c(0x253)](_0x77beca=>{const _0x3764cc=_0x1d500c;var _0x567db6;const _0xefab5e=this['_unitOnClients'][_0x3764cc(0x2c6)](_0x77beca);_0xefab5e&&(_0xefab5e['delete'](_0x20024c),(_0x567db6=this[_0x3764cc(0x249)](_0x77beca))==null||_0x567db6[_0x3764cc(0x1a1)](_0xefab5e[_0x3764cc(0x16c)]===0x0?_0xac2979[_0x3764cc(0x1af)]:_0xac2979[_0x3764cc(0x106)]));}),this['_removeClearOtherTimer'](_0x20024c);}[_0x266cb1(0x237)](_0x136586){const _0x506b1c=_0x266cb1;this[_0x506b1c(0x182)](_0x136586['memberID']);}[_0x266cb1(0x2d2)](_0x749da9){const _0x147342=_0x266cb1;localStorage['setItem'](mt,JSON[_0x147342(0x27a)](_0x749da9));}[_0x266cb1(0x120)](){const _0x42d5f3=_0x266cb1;this[_0x42d5f3(0x196)]=window[_0x42d5f3(0x1b4)](()=>{const _0xdd23f6=_0x42d5f3;this[_0xdd23f6(0x2d2)]({'type':0x2,'memberID':this[_0xdd23f6(0x159)]});},St);}[_0x266cb1(0x249)](_0x4db3f6){const _0x36bc7e=_0x266cb1;return this[_0x36bc7e(0x2f0)]['has'](_0x4db3f6)||this[_0x36bc7e(0x2f0)][_0x36bc7e(0x186)](_0x4db3f6,new _0x501473(_0xac2979[_0x36bc7e(0x1af)])),this[_0x36bc7e(0x2f0)]['get'](_0x4db3f6);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
1
+ const _0x267084=_0x1936;(function(_0x4c33f2,_0x3c5448){const _0x4a54e5=_0x1936,_0x2a7533=_0x4c33f2();while(!![]){try{const _0x699d11=parseInt(_0x4a54e5(0xf8))/0x1+-parseInt(_0x4a54e5(0x19f))/0x2*(-parseInt(_0x4a54e5(0x19d))/0x3)+-parseInt(_0x4a54e5(0x195))/0x4*(-parseInt(_0x4a54e5(0x20f))/0x5)+parseInt(_0x4a54e5(0x2a1))/0x6*(-parseInt(_0x4a54e5(0x266))/0x7)+-parseInt(_0x4a54e5(0x126))/0x8+parseInt(_0x4a54e5(0xbc))/0x9*(parseInt(_0x4a54e5(0x79))/0xa)+-parseInt(_0x4a54e5(0xb0))/0xb;if(_0x699d11===_0x3c5448)break;else _0x2a7533['push'](_0x2a7533['shift']());}catch(_0x3299bc){_0x2a7533['push'](_0x2a7533['shift']());}}}(_0x3029,0x430d2));var Yt=Object[_0x267084(0x28e)],Wt=(_0x3463fc,_0x27ac20,_0x4fd150)=>_0x27ac20 in _0x3463fc?Yt(_0x3463fc,_0x27ac20,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4fd150}):_0x3463fc[_0x27ac20]=_0x4fd150,_=(_0x4e7798,_0x4fd5ce,_0x1e30d7)=>Wt(_0x4e7798,typeof _0x4fd5ce!=_0x267084(0x27c)?_0x4fd5ce+'':_0x4fd5ce,_0x1e30d7);import{jsx as _0x3c1405,jsxs as _0x2c67c9}from'react/jsx-runtime';import{CollaborationStatus as _0x393e49,CollaborationSessionService as _0x30d8be,CollaborationController as _0x20f9ac,DataLoaderService as _0x21f2b2,MemberService as _0x277671,SessionStatus as _0x2f3a8a,ILocalCacheService as _0x1d4097,CollaborationUIEventService as _0x463587,CollaborationUIEventId as _0x13accd,DocCollaborationEntity as _0xbad4e5,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x58fdc2,getLocalCacheKey as _0x3df3e5,LOCAL_CACHE_INTERVAL as _0x3119b9,LOCAL_CACHE_INTERVAL_KEY as _0x5a7b94,UniverCollaborationClientPlugin as _0x32160c,CollaborationSocketService as _0x120512,DEFAULT_WS_SESSION_TICKET_URL as _0x366c2b,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x4ce834,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x20cc7b,UnitStatus as _0x2d4d54}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x392a0b,IUniverInstanceService as _0x121c1a,Inject as _0x19d3ff,Injector as _0x4ab7f8,Disposable as _0x15b4c2,createIdentifier as _0xd018ef,ILogService as _0x35d33d,ICommandService as _0x1da808,Optional as _0x4cc534,RxDisposable as _0x2699b6,Workbook as _0x28d654,DOC_RANGE_TYPE as _0x324e87,debounce as _0x1dbae4,Rectangle as _0x24337c,DisposableCollection as _0x5466e2,toDisposable as _0x490c7d,UniverInstanceType as _0x24166e,generateRandomId as _0x3add1d,COLORS as _0x3d6b49,ColorKit as _0x51eb2d,ThemeService as _0x51cb02,fromEventSubject as _0x690a46,Tools as _0x23f5dc,CommandType as _0x3a3187,IConfigService as _0x5d7afb,CanceledError as _0x53987c,isFormulaString as _0x39dc69,isFormulaId as _0x3789a8,ILocalStorageService as _0x5e6485,DependentOn as _0x508d08,Plugin as _0x75b443,merge as _0x4bef96,registerDependencies as _0x52fbf5,mergeOverrideWithDependencies as _0x1b8195,touchDependencies as _0x1253a5}from'@univerjs/core';import{useObservable as _0x4194bc,useDependency as _0x5d77ed,IUIPartsService as _0x4fa1c4,BuiltInUIPart as _0x4d93d1,connectInjector as _0x4a2cb2,IBeforeCloseService as _0x53993a,IMessageService as _0x238f17,INotificationService as _0x2018e3}from'@univerjs/ui';import{BehaviorSubject as _0x1c42a0,switchMap as _0x481021,of as _0x243860,takeUntil as _0xae10c0,debounceTime as _0x1f60ae,Subject as _0x47c8c8,filter as _0x54fc49,merge as _0xe0d349,combineLatest as _0x5901e,fromEvent as _0x46507c,shareReplay as _0x546268,mapTo as _0x2ff921,distinctUntilChanged as _0x366b6a}from'rxjs';import{Tooltip as _0x3bf2de,clsx as _0xc7cc86,MessageType as _0x3d9040}from'@univerjs/design';import{useRef as _0xee1e17,createElement as _0x6f96fd,forwardRef as _0x487948,useCallback as _0x124f12}from'react';import{IRemoteInstanceService as _0x236c30}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x3a9ae4,RefRangeService as _0x550286,SetSelectionsOperation as _0x471d36,SheetsSelectionsService as _0x308ea6,EffectRefRangId as _0x4f3975,handleIRemoveRow as _0x440e43,handleIRemoveCol as _0x2189b3,handleMoveRange as _0x4ff5db,handleInsertRow as _0x599989,handleInsertRangeMoveRight as _0x4156ba,handleInsertRangeMoveDown as _0x4c1240,handleInsertCol as _0x123e0e,handleDeleteRangeMoveUp as _0x471afe,handleDeleteRangeMoveLeft as _0x1876c5,runRefRangeMutations as _0x485055}from'@univerjs/sheets';import{Shape as _0x48592f,Rect as _0x3692f4,getColor as _0x16f499,RegularPolygon as _0x328f70,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x390bb6,Vector2 as _0x2f462d,SHEET_VIEWPORT_KEY as _0x37de76,IRenderManagerService as _0x16532d}from'@univerjs/engine-render';import{HTTPService as _0x3d2675,ISocketService as _0x516427,WebSocketService as _0x29fc86}from'@univerjs/network';import{IDocClipboardService as _0x22e109,NodePositionConvertToCursor as _0x49e5c6,NodePositionConvertToRectRange as _0x307f3d,TEXT_RANGE_LAYER_INDEX as _0x314e8b,SetDocZoomRatioOperation as _0x2d6594,DocIMEInputManagerService as _0x4f8e82,DocStateChangeManagerService as _0x52621e}from'@univerjs/docs-ui';import{IImageIoService as _0x5e00b7}from'@univerjs/drawing';import{ITransformService as _0xe0c62a,CollaborationEvent as _0x11a4ac,isTransformMutationFailure as _0x3d1fb0,isTransformMutationsWithChangesetSuccess as _0x10901e,RevisionService as _0x1e9c45,ISnapshotServerService as _0x5e2acb}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x4e5c0b,RichTextEditingMutation as _0xd50203,DocSelectionManagerService as _0x22e39b,DocSkeletonManagerService as _0x437e0f}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x3813d3,serializeRangeWithSheet as _0x104646,FormulaExecuteStageType as _0x5d4131,FormulaExecutedStateType as _0x1d84bd,SetFormulaCalculationStartMutation as _0xce794f,SetFormulaCalculationNotificationMutation as _0x15b422}from'@univerjs/engine-formula';import{map as _0x53e19c,filter as _0x42660b,throttleTime as _0x1e846c,takeUntil as _0xf7d2a1,switchMap as _0x4c118e}from'rxjs/operators';import{SheetSkeletonManagerService as _0x42940b,getCoordByCell as _0x6cc202,getSheetObject as _0x1c44a6}from'@univerjs/sheets-ui';function Ge({ref:_0x1601aa,..._0x20948f}){const _0x2e62a8=_0x267084,{icon:_0x21b1b7,id:_0xe65bcf,className:_0x2569e8,extend:_0x2d5dc7,..._0x515962}=_0x20948f,_0x48f63f=('univerjs-icon\x20univerjs-icon-'+_0xe65bcf+'\x20'+(_0x2569e8||''))[_0x2e62a8(0x24d)](),_0x20853d=_0xee1e17('_'+Ei());return At(_0x21b1b7,''+_0xe65bcf,{'defIds':_0x21b1b7['defIds'],'idSuffix':_0x20853d['current']},{'ref':_0x1601aa,'className':_0x48f63f,..._0x515962},_0x2d5dc7);}function At(_0x597d6a,_0x137edd,_0x4ed2f8,_0x2d593a,_0xfa652b){const _0x3c0b33=_0x267084;return _0x6f96fd(_0x597d6a[_0x3c0b33(0x122)],{'key':_0x137edd,...gi(_0x597d6a,_0x4ed2f8,_0xfa652b),..._0x2d593a},(vi(_0x597d6a,_0x4ed2f8)['children']||[])[_0x3c0b33(0x21b)]((_0x3033de,_0x1f0e98)=>At(_0x3033de,_0x137edd+'-'+_0x597d6a[_0x3c0b33(0x122)]+'-'+_0x1f0e98,_0x4ed2f8,void 0x0,_0xfa652b)));}function gi(_0x2bfb83,_0x51d7e8,_0x436791){const _0x146b71=_0x267084,_0x4da206={..._0x2bfb83[_0x146b71(0x1ba)]};_0x436791!=null&&_0x436791['colorChannel1']&&_0x4da206[_0x146b71(0x1f8)]===_0x146b71(0x121)&&(_0x4da206[_0x146b71(0x1f8)]=_0x436791[_0x146b71(0x121)]),_0x2bfb83[_0x146b71(0x122)]==='mask'&&_0x4da206['id']&&(_0x4da206['id']=_0x4da206['id']+_0x51d7e8['idSuffix']),Object[_0x146b71(0x16e)](_0x4da206)[_0x146b71(0x236)](([_0x5b4f9a,_0x143967])=>{const _0x18a095=_0x146b71;_0x5b4f9a===_0x18a095(0x244)&&typeof _0x143967=='string'&&(_0x4da206[_0x5b4f9a]=_0x143967[_0x18a095(0x1b9)](/url\(#(.*)\)/,_0x18a095(0x119)+_0x51d7e8[_0x18a095(0x28d)]+')'));});const {defIds:_0x58d5bc}=_0x51d7e8;return!_0x58d5bc||_0x58d5bc[_0x146b71(0xb1)]===0x0||(_0x2bfb83[_0x146b71(0x122)]===_0x146b71(0x2ad)&&_0x4da206[_0x146b71(0x124)]&&(_0x4da206[_0x146b71(0x124)]=_0x4da206[_0x146b71(0x124)]+_0x51d7e8[_0x146b71(0x28d)]),Object[_0x146b71(0x16e)](_0x4da206)[_0x146b71(0x236)](([_0x28287d,_0x549239])=>{const _0x57eab5=_0x146b71;typeof _0x549239==_0x57eab5(0x1fc)&&(_0x4da206[_0x28287d]=_0x549239[_0x57eab5(0x1b9)](/url\(#(.*)\)/,_0x57eab5(0x119)+_0x51d7e8[_0x57eab5(0x28d)]+')'));})),_0x4da206;}function vi(_0x1cbc50,_0x4f03a2){const _0x4cc346=_0x267084;var _0x5c3b0d;const {defIds:_0x33c4f6}=_0x4f03a2;return!_0x33c4f6||_0x33c4f6[_0x4cc346(0xb1)]===0x0?_0x1cbc50:_0x1cbc50[_0x4cc346(0x122)]===_0x4cc346(0x297)&&((_0x5c3b0d=_0x1cbc50['children'])!=null&&_0x5c3b0d[_0x4cc346(0xb1)])?{..._0x1cbc50,'children':_0x1cbc50[_0x4cc346(0x1d3)]['map'](_0x189f59=>typeof _0x189f59[_0x4cc346(0x1ba)]['id']==_0x4cc346(0x1fc)&&_0x33c4f6&&_0x33c4f6[_0x4cc346(0x1f0)](_0x189f59[_0x4cc346(0x1ba)]['id'])?{..._0x189f59,'attrs':{..._0x189f59[_0x4cc346(0x1ba)],'id':_0x189f59['attrs']['id']+_0x4f03a2['idSuffix']}}:_0x189f59)}:_0x1cbc50;}function Ei(){const _0x16c2e8=_0x267084;return Math['random']()['toString'](0x24)[_0x16c2e8(0x13e)](0x2,0x8);}Ge[_0x267084(0x17c)]=_0x267084(0x282);const pi={'tag':_0x267084(0xe7),'attrs':{'xmlns':_0x267084(0x203),'fill':_0x267084(0x254),'viewBox':_0x267084(0x204),'width':_0x267084(0x292),'height':_0x267084(0x292)},'children':[{'tag':'g','attrs':{'clipPath':_0x267084(0x229)},'children':[{'tag':_0x267084(0xce),'attrs':{'stroke':_0x267084(0x205),'d':_0x267084(0x1dc),'strokeLinecap':_0x267084(0x14e),'strokeLinejoin':_0x267084(0x14e),'strokeWidth':1.2}}]},{'tag':_0x267084(0x297),'attrs':{},'children':[{'tag':_0x267084(0x12a),'attrs':{'id':_0x267084(0x29e)},'children':[{'tag':_0x267084(0xce),'attrs':{'fill':'white','d':_0x267084(0x136)}}]}]}],'defIds':[_0x267084(0x29e)]},Pt=_0x487948(function(_0x151518,_0x46be1f){const _0x394e34=_0x267084;return _0x6f96fd(Ge,Object[_0x394e34(0x173)]({},_0x151518,{'id':_0x394e34(0x1d0),'ref':_0x46be1f,'icon':pi}));});Pt[_0x267084(0x17c)]=_0x267084(0x1e2);const Oi={'tag':_0x267084(0xe7),'attrs':{'xmlns':_0x267084(0x203),'fill':_0x267084(0x254),'viewBox':_0x267084(0xdd),'width':'1em','height':_0x267084(0x292)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x267084(0xce),'attrs':{'stroke':_0x267084(0x205),'d':_0x267084(0xe2),'strokeLinecap':_0x267084(0x14e),'strokeLinejoin':_0x267084(0x14e),'strokeWidth':1.2}}]},{'tag':_0x267084(0x297),'attrs':{},'children':[{'tag':_0x267084(0x12a),'attrs':{'id':_0x267084(0x1b1)},'children':[{'tag':'path','attrs':{'fill':_0x267084(0x1a9),'d':_0x267084(0x136),'transform':_0x267084(0x114)}}]}]}],'defIds':[_0x267084(0x1b1)]},wt=_0x487948(function(_0x759f9d,_0x470d66){const _0x5c6264=_0x267084;return _0x6f96fd(Ge,Object[_0x5c6264(0x173)]({},_0x759f9d,{'id':_0x5c6264(0x10b),'ref':_0x470d66,'icon':Oi}));});wt['displayName']=_0x267084(0x1ad);function Ti(_0x1bd8ba){const _0x1879af=_0x267084;switch(_0x1bd8ba){case _0x393e49[_0x1879af(0x222)]:return _0x1879af(0x12f);case _0x393e49[_0x1879af(0xb6)]:return'collabStatus.conflict';case _0x393e49[_0x1879af(0x8a)]:return'collabStatus.fetchMiss';case _0x393e49[_0x1879af(0x29d)]:return _0x1879af(0x1de);case _0x393e49[_0x1879af(0x193)]:case _0x393e49['AWAITING_WITH_PENDING']:return _0x1879af(0xfc);case _0x393e49[_0x1879af(0xae)]:case _0x393e49[_0x1879af(0xa0)]:return _0x1879af(0xcc);}}function Ci(_0x1cf81a){const _0xe594f0=_0x267084,{status$:_0x292764}=_0x1cf81a,_0x26f4f6=_0x4194bc(_0x292764,_0x393e49[_0xe594f0(0x29d)]),_0x2fce5c=_0x5d77ed(_0x392a0b),_0x5eedd9=_0x5d77ed(_0x30d8be),_0x1b9cb8=_0x26f4f6!==_0x393e49[_0xe594f0(0x222)],_0x4d1238=_0x2fce5c['t'](Ti(_0x26f4f6)),_0x311656=_0x1b9cb8?_0x3c1405(wt,{}):_0x3c1405(Pt,{}),_0x12a15a=_0x124f12(()=>{const _0x4a4349=_0xe594f0;_0x1b9cb8||_0x5eedd9[_0x4a4349(0xfe)]();},[_0x1b9cb8,_0x5eedd9]);function _0x574cc6(){const _0x304cd2=_0xe594f0;return _0x2c67c9(_0x304cd2(0x170),{'className':_0x304cd2(0x25c),'onClick':_0x12a15a,'children':[_0x3c1405(_0x304cd2(0x170),{'className':_0xc7cc86(_0x304cd2(0x283),{'univer-text-green-500':_0x1b9cb8,'univer-text-red-500':!_0x1b9cb8}),'children':_0x311656}),_0x3c1405('div',{'className':_0x304cd2(0x225),'children':_0x4d1238})]});}return _0x1b9cb8?_0x574cc6():_0x3c1405(_0x3bf2de,{'title':_0x2fce5c['t'](_0xe594f0(0xc8)),'children':_0x574cc6()});}var Ri=Object[_0x267084(0x141)],Di=(_0x15b3c7,_0x499f09,_0x12715c,_0x4bb3f7)=>{for(var _0x27645e=_0x4bb3f7>0x1?void 0x0:_0x4bb3f7?Ri(_0x499f09,_0x12715c):_0x499f09,_0x3b288a=_0x15b3c7['length']-0x1,_0x175b91;_0x3b288a>=0x0;_0x3b288a--)(_0x175b91=_0x15b3c7[_0x3b288a])&&(_0x27645e=_0x175b91(_0x27645e)||_0x27645e);return _0x27645e;},se=(_0xbbfe73,_0x38572b)=>(_0x2ee6fc,_0x496f2d)=>_0x38572b(_0x2ee6fc,_0x496f2d,_0xbbfe73);function _0x3029(){const _0x4d26bc=['AWAITING','_applyCommand','4TYWNvw','_render','_monkeyPatchLogService','Error','params','InsertRangeMoveRightCommandId','_setupBeforeClosingHandler','arc','425331akyzke','_updateLocalCursor','2TjHCNd','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_initStatusComponent','jiqing.500','_cursorInfo$','sheetID','text','replaceDocRanges','setUndoRedoMutationParamsCache','collaboration-client-ui.config','white','_saveCache','disableLocalCache','getRangePointData','OnLineIcon','runId','_revisionService','[LogService\x20Error]:\x20','on-line-icon_clip0_910_349','ENTITLE_NEED_BILLING_ADDRESS','VIEW_MAIN','values','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','UNIVER_SHEET','hide','_sheetSkeletonManagerService','replace','attrs','_clearOtherTimers','currentTheme$','unshift','whenReady','href','_createSocketURL','registerRenderModule','addEventListener','moveTo','_send','NOT_FOUND','wsSessionTicketUrl','getSheetBySheetId','socket$','fillRule','RECT','stack','getOffsetConfig','subunit','selection','transformIMECache','off-line-icon','REDEMPTION_CODE_FULLY_REDEEMED','toRgbString','children','WECHAT_HAS_BEEN_BOUND','_themeService','_getMergeRange','_clearPolling','getValue','_collabSessionService','_collaborationController','executeCommand','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','onStarting','collabStatus.notCollab','getUnit','eventID','_shapes','OffLineIcon','_roomMembers$','YUUMI_NO_CUBOID_FOR_QUESTION','doc.mutation.rich-text-editing','endColumn','APPLY_NON_SEQUENTIAL_REVISION','getCurrentUnitForType','_startCalculationLimit','transformByState','Warning','width','filename','LICENSE_IMPORT_SIZE_EXCEEDED','dispose$','includes','min','_docTransformIMECacheService','_colorAssignService','ENTITLE_CHAT_LIMIT_EXCEED','getMemberID','APPLY_DUPLICATED','engine','fill','_disabled','INTERNAL_ERROR','DATA_SOURCE_TOO_LARGE','string','JOIN_ROOM_FAILED','m2Prime','docStateChange$','_initEntityListener','TOO_MANY_REQUESTS','_assignedColors','http://www.w3.org/2000/svg','0\x200\x2016\x2016','currentColor','actions','cursorInfo','\x20at\x20','getActiveSheet','OTHER_CLIENT_EDITING','getMergeData','exhaustSavingTask','stringify','range','1831110oWRQOs','beginPath','roomMembers$','set','_docSkeletonManagerService','MUTATION','_hovered','getSkeleton','ERROR_AGAIN','SUCCESS','code','getItem','map','_startDocCollabCursor','deepClone','_localCacheService','setActiveRange','_localeService','clearTimeout','OFFLINE','asObservable','push','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','purple.300','override','isEditing','url(#off-line-icon_clip0_910_343)','enableFrontendLog','_online','UPDATE_CURSOR','evenodd','color','parseInt','_transformHistoryAndStateStack','transformMutationsWithChangeset','_initUnhandledRejectionListener','sheetId','MOBILE_VERIFY_CODE_MISMATCH','search','forEach','SNAPSHOT_INVALID_SNAPSHOT','_initCommandExecutedListener','with','session.connection-failed','getCollabEntity$','toString','YUUMI_RATE_OVER_LIMIT','getformulaLimitStatusUrl','shift','activeSheet$','getFocusedUnit','_name','_removeCollabCursors','mask','textRanges','/universer-api/license/formula/limit/start','syncEditingCollabCursor','lineTo','_saveTaskMap','unhandledrejection','parse','reason','trim','_docStateChangeManagerService','collab-rect-range-','_eventUnsubscribe','_collaborationSessionService','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_uiPartsService','none','data','YUUMI_ALL_TABLES_IS_INVALID','APPLY_PERMISSION_DENIED','_onRefRangeChange','PERMISSION_DENIED','pushState','UNAUTHENTICATED','univer-flex\x20univer-items-center','application/json','size','_initDependencies','Failed','_color','findNodePositionByCharIndex','session.collaboration-timeout','complete','drawWith','7dCwrEy','_status$','_messageService','type','getUnhiddenWorksheets','_cachedData','_currentUsage','ONLINE','_drawAnchor','permission.content','_renderManagerService','getMember','origin','loadOfflineData','debug','OTHER_CLIENTS_EDITING','_docTransformStateCacheService','enableLocalCache','_drawTextRange','_getSessionTicket','limitInfo','isActive','symbol','_scheduleSaving','INVITE_CODE_HAS_BEEN_UES','ENTITLE_CAN_NOT_BUY_LOWER_OTP','FromArray','_hideTimer','UniverIcon','univer-mr-2\x20univer-flex\x20univer-text-xl','_checkAndWaitForCalculationPermission','_docSkeleton','from','ENSURE_SNAPSHOT_EXECUTION','mutations','_univerInstanceService','getCurrentRevOfUnit','setParam','START_CALCULATION','idSuffix','defineProperty','hovered','unsubscribe','currentUsage','1em','APPLY_REJECT','_docSyncEditingCollabCursorService','then','USERS_LEAVE','defs','_injector','getAncestorScale','_scene','_entities','_getScale','NOT_COLLAB','off-line-icon_clip0_910_343','[CollaborationDataLoaderController]','_init','701712frkEcF','TEXT','_setupSubUnitSync','onPointerEnter$','formula.calculation.started','formula.calculation.unable','history','_registerRenderDependencies','split','unitId','_collabCursorState$','APPLY_REVISION_CONFILICT','use','_collabCursorController','send','has','ENTITLE_DUP_SUBSCRIPTION','_startSheetCollabCursor','removeEventListener','_backgroundColor','onRendered','_memberService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_beforeCloseService','transformStateCache','setStateCache','delete','getConfig','_initCommandInterceptor','_cursors','_checkCalculationAvailable','60470eqnwyn','startRow','message','USER_NOT_FOUND','transformSelections','setShapeProps','loadUnit','registerRefRange','_selfUnitIDs','_handleLeaveEvent','Success','_logService','_context','onPointerLeave$','_localStorageService','REDEMPTION_CODE_HAS_BEEN_CREATED','?taskId=','FETCH_MISS','pluginName','newValue','_transformPreviousActiveRange','RemoveRowCommandId','INVITE_CODE_REQUIRED','init','_docTransformSelectionsService','REDEMPTION_CODE_NOT_STARTED','INVALID_INVITE_CODE','executionId','undoState','_urlService','bottom','getCellPositionByOffset','INVITE_CODE_ALREADY_BOUND','_cursorShapes','EMAIL_HAS_BEEN_BOUND','post','PAYMENT_CHANNEL_NOT_SUPPORT','lineno','cursorInfo$','PENDING','_initEvent','_refreshCollabCursors','_getAnchorBounding','m1Prime','_removeClearOtherTimer','catch','ALREADY_EXISTS','_handleJoinEvent','_initResize','_draw','memberID','event$','YUUMI_UNABLE_LOAD_URL','SYNCED','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','10450275zdSSUO','length','updateOfflineData','top','ENTITLE_INSUFFICIENT_QUOTA','_configService','CONFLICT','_getSaveTimeout','totalFormulasToCalculate','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','redoState','getUndoRedoMutationParamsCache','711HYRDXS','imageSourceType','_transformService','height','_pollingInterval','isArray','getCollabCursors$','triggerDblclick','_memberID','_unitStatus','name','labelPosition','collab-client.tooltip.reconnect','startsWith','colno','key','collabStatus.synced','_handleEvent','path','fillText','popstate','/universer-api/license/formula/limit/status','getDocRanges','SNAPSHOT_HAS_BEEN_REMOVED','EMAIL_VERIFY_CODE_MISMATCH','YUUMI_URL_COL_OUT_OF_RANGE','_scheduleClearOtherTimer','getColorFromTheme','dirtyRanges','_uploadLog','stageInfo','subUnitId','next','0\x200\x2017\x2016','onMouseMove','YUUMI_SUBSCRIPTION_NOT_FOUND','_setFormulaLimitStatus','_initUserListener','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','_updateURLWithCurrentState','addObject','saveOfflineData','collab-text-anchor-','svg','entityInit$','_registerDependencies','startColumn','all','_id','RemoveColCommandId','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','LOGIN_FAILED','onCommandExecuted','unitID','unit','_anchor','transformRemoteChangeset','LICENSE_DISTRO_REJECTED','collaboration.closeRoom','get','506101XbvkhZ','_hover','getRenderById','_onCursorUpdate','collabStatus.syncing','ranges','reconnect','ENTITLE_REPORT_LIMIT_EXCEED','some','YUUMI_AI_RUN_FAILED','_entityInit$','_unitOnClients','REDEMPTION_USER_NOT_ELIGIBLE','ticket','_commandService','backgroundColor','_cursor','_httpService','createInstance','on-line-icon','_maxFormulaLimit','_range','_ensureSubject','COMPLETION_FINISHED','setConfig','USER_IS_ANONYMOUS','InsertRangeMoveDownCommandId','status$','translate(.97)','unload','subscribe','_toggleOffline','getParam','url(#$1','_taskIds','fillStyle','currentSkeleton$','setAlpha','subscribeEvent','_textBubble','CONNECTOR_DATA_TOO_LARGE','colorChannel1','tag','location','xlink:href','_refRangeService','1201552ugSZpc','getSheetId','_lastResponseTimestamp','[RemoteUniscriptService]:\x20no\x20focused\x20unit','clipPath','YUUMI_TABLE_NOT_FOUND_IN_UNIT','closePath','roomMembers','getUnitId','collabStatus.offline','HEADER_MENU','sessionStatus$','_initWindowErrorListener','_notificationService','disposeWithMe','invokeId','M0\x200H16V16H0z','_instanceService','_getFormulaLimitStatus','/universer-api/license/formula/limit/done','CLOSE_ROOM','MOBILE_HAS_BEEN_BOUND','stage','_dataLoaderService','substring','_imageIoService','Unknown\x20user','getOwnPropertyDescriptor','...','_labelPosition','_scheduleHeartbeat','error','_onCursorDelete','YUUMI_ASYNCIO_CANCELLED','REDEMPTION_INVALID_CODE','_showGuardMessage','formula.calculation.waiting','endRow','_heartbeatTimer','CHANGESET_REVISION_CONFILICT','round','sessionTicket','bind','makeDirty','urlChange$','yellow.400','InsertRowCommandId','UNRECOGNIZED','SUBMIT_CHANGESET_TIMEOUT','selections','NO_OTHER_CLIENTS_EDITING','DeleteRangeMoveUpCommandId','_getSheetObject','YUUMI_CONNECTOR_URL_NOT_FOUND','save','/universer-api/frontend/logs','_colorIndex','transformMutation','black','setItem','pipe','assignAColorForMemberID','measureText','body','LICENSE_MAX_UNITS_EXCEEDED','saveImage','releaseFormulaLimitUrl','row','show','searchParams','UNDEFINED','getUnitStatus$','entries','_initStatusListener','div','saveTaskMap','getStateCache','assign','requireSession','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_updateCollabCursors','runOnServer','_config','_toggleOnline','_anchorDot','UNIVER_DOC','displayName','_syncEditingCollabCursorService','_lastPointer','getTypeOfUnitAdded$','LOGIN_TOKEN_PROCESSING_FAILED','onTransformChange$','session.will-retry','setTimeout','_updateSubUnitFromURLParams','replaceState','add','_session','getUniverSheetInstance','clearInterval','dispose','LICENSE_EXPORT_SIZE_EXCEEDED','USER_NOT_INVITED_CODE','_drawRectRange','INVALID_ARGUMENT','now','restore','collabCursorState$','setInterval'];_0x3029=function(){return _0x4d26bc;};return _0x3029();}let ae=class extends _0x15b4c2{constructor(_0x35f3d8,_0x23f836,_0x3a42e7,_0x5179a5){const _0x1f99b0=_0x267084;super(),_(this,'_status$',new _0x1c42a0(_0x393e49[_0x1f99b0(0x29d)])),(this[_0x1f99b0(0x289)]=_0x35f3d8,this[_0x1f99b0(0x298)]=_0x23f836,this[_0x1f99b0(0x1da)]=_0x3a42e7,this['_uiPartsService']=_0x5179a5,this[_0x1f99b0(0x1a1)](),this[_0x1f99b0(0x16f)]());}[_0x267084(0x16f)](){const _0x5f4d47=_0x267084;this['disposeWithMe'](this[_0x5f4d47(0x289)]['focused$'][_0x5f4d47(0x162)](_0x481021(()=>{const _0x5a40ae=_0x5f4d47,_0x3ee807=this[_0x5a40ae(0x289)][_0x5a40ae(0x241)]();return _0x3ee807?this[_0x5a40ae(0x1da)][_0x5a40ae(0x23b)](_0x3ee807[_0x5a40ae(0x12e)]()):_0x243860(null);}),_0x481021(_0x37fb1a=>_0x37fb1a?_0x37fb1a[_0x5f4d47(0x113)]:_0x243860(_0x393e49['NOT_COLLAB'])))['subscribe'](_0x23c65a=>{const _0x424c9b=_0x5f4d47;this[_0x424c9b(0x267)][_0x424c9b(0xdc)](_0x23c65a);}));}[_0x267084(0x1a1)](){const _0x2e30c6=_0x267084;this[_0x2e30c6(0x134)](this[_0x2e30c6(0x253)]['registerComponent'](_0x4d93d1[_0x2e30c6(0x130)],()=>_0x4a2cb2(bi({'status$':this[_0x2e30c6(0x267)]['asObservable']()}),this[_0x2e30c6(0x298)])));}};ae=Di([se(0x0,_0x121c1a),se(0x1,_0x19d3ff(_0x4ab7f8)),se(0x2,_0x19d3ff(_0x20f9ac)),se(0x3,_0x4fa1c4)],ae);function bi(_0x321d27){const {status$:_0x1906f4}=_0x321d27;return function(){return _0x3c1405(Ci,{'status$':_0x1906f4});};}const yt=_0xd018ef('uni.network.url-service');var Ni=Object[_0x267084(0x141)],Li=(_0x32fc8f,_0x406a4f,_0x25b224,_0x17677c)=>{for(var _0x40100e=_0x17677c>0x1?void 0x0:_0x17677c?Ni(_0x406a4f,_0x25b224):_0x406a4f,_0x21d3e2=_0x32fc8f['length']-0x1,_0x12a52d;_0x21d3e2>=0x0;_0x21d3e2--)(_0x12a52d=_0x32fc8f[_0x21d3e2])&&(_0x40100e=_0x12a52d(_0x40100e)||_0x40100e);return _0x40100e;},K=(_0xca4601,_0xbd5de)=>(_0x9c3992,_0x3f49b4)=>_0xbd5de(_0x9c3992,_0x3f49b4,_0xca4601);let ce=class extends _0x2699b6{constructor(_0x5151be,_0xb6fa2a,_0x1c62a9,_0x5cae94,_0x51f278){const _0x2bc6eb=_0x267084;super(),this[_0x2bc6eb(0x96)]=_0x5151be,this[_0x2bc6eb(0x84)]=_0xb6fa2a,this['_commandService']=_0x1c62a9,this[_0x2bc6eb(0x13d)]=_0x5cae94,_0x51f278?_0x51f278==null||_0x51f278[_0x2bc6eb(0x1be)]()[_0x2bc6eb(0x295)](()=>this['_init']()):(this[_0x2bc6eb(0x84)][_0x2bc6eb(0x274)](_0x2bc6eb(0x29f),_0x2bc6eb(0x2b7)),this[_0x2bc6eb(0x2a0)]());}async[_0x267084(0x2a0)](){const _0x17c982=_0x267084,_0x5a86f5=this['_urlService']['getParam']('unit'),_0x2a2b6a=this[_0x17c982(0x96)][_0x17c982(0x118)](_0x17c982(0x269)),_0x216ec9=this[_0x17c982(0x96)][_0x17c982(0x118)](_0x17c982(0x1cd));if(!_0x5a86f5||!_0x2a2b6a){this[_0x17c982(0x84)]['debug']('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x210733=await this[_0x17c982(0x13d)][_0x17c982(0x7f)](_0x5a86f5,Number(_0x2a2b6a),_0x216ec9);_0x210733&&_0x210733 instanceof _0x28d654&&this[_0x17c982(0x2a3)](_0x210733);}async[_0x267084(0x2a3)](_0x2bc081){const _0x20b5c0=_0x267084;await this[_0x20b5c0(0x184)](_0x2bc081),_0x2bc081[_0x20b5c0(0x240)][_0x20b5c0(0x162)](_0xae10c0(this[_0x20b5c0(0x1ef)]))['subscribe'](_0x434758=>{const _0x1a9250=_0x20b5c0;_0x434758&&this[_0x1a9250(0xe3)](_0x434758);}),this['_urlService'][_0x20b5c0(0x152)][_0x20b5c0(0x162)](_0xae10c0(this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x2bc081));}[_0x267084(0xe3)](_0x3cc3a9,_0x5a1322=!0x1){const _0x10cf53=_0x267084,_0x368484=this['_urlService'][_0x10cf53(0x118)]('subunit');_0x3cc3a9[_0x10cf53(0x127)]()!==_0x368484&&this[_0x10cf53(0x96)][_0x10cf53(0x28b)](_0x10cf53(0x1cd),_0x3cc3a9[_0x10cf53(0x127)](),_0x5a1322);}async[_0x267084(0x184)](_0x4fdbfe){const _0x631bf8=_0x267084;var _0x449541;const _0x2146de=this[_0x631bf8(0x96)][_0x631bf8(0x118)](_0x631bf8(0x1cd));if(!_0x2146de||!_0x4fdbfe[_0x631bf8(0x1c7)](_0x2146de)){const _0x14290e=_0x4fdbfe[_0x631bf8(0x26a)]()[0x0],_0x46b800=_0x4fdbfe[_0x631bf8(0x1c7)](_0x14290e);if(!_0x46b800)return;this[_0x631bf8(0xe3)](_0x46b800,!0x0),await this[_0x631bf8(0x106)][_0x631bf8(0x1db)](_0x3a9ae4['id'],{'unitId':_0x4fdbfe[_0x631bf8(0x12e)](),'subUnitId':_0x14290e});return;}((_0x449541=_0x4fdbfe[_0x631bf8(0x209)]())==null?void 0x0:_0x449541[_0x631bf8(0x127)]())!==_0x2146de&&await this[_0x631bf8(0x106)][_0x631bf8(0x1db)](_0x3a9ae4['id'],{'unitId':_0x4fdbfe[_0x631bf8(0x12e)](),'subUnitId':_0x2146de});}};ce=Li([K(0x0,yt),K(0x1,_0x35d33d),K(0x2,_0x1da808),K(0x3,_0x19d3ff(_0x21f2b2)),K(0x4,_0x4cc534(_0x236c30))],ce);var Ui=Object[_0x267084(0x141)],Mi=(_0x5c0c3f,_0x5697b,_0x1bed9c,_0x29ce6f)=>{for(var _0x399d7c=_0x29ce6f>0x1?void 0x0:_0x29ce6f?Ui(_0x5697b,_0x1bed9c):_0x5697b,_0x35b2f3=_0x5c0c3f['length']-0x1,_0x56ca1f;_0x35b2f3>=0x0;_0x35b2f3--)(_0x56ca1f=_0x5c0c3f[_0x35b2f3])&&(_0x399d7c=_0x56ca1f(_0x399d7c)||_0x399d7c);return _0x399d7c;},rt=(_0xc72b4a,_0x21d18e)=>(_0x5822d0,_0x251649)=>_0x21d18e(_0x5822d0,_0x251649,_0xc72b4a);function _0x1936(_0x5c3cb9,_0x4f4234){const _0x30296d=_0x3029();return _0x1936=function(_0x19366f,_0x57b570){_0x19366f=_0x19366f-0x71;let _0x441568=_0x30296d[_0x19366f];return _0x441568;},_0x1936(_0x5c3cb9,_0x4f4234);}let $e=class extends _0x2699b6{constructor(_0x158b65,_0x56f887){const _0x2a6273=_0x267084;super(),this['_docClipboardService']=_0x158b65,this[_0x2a6273(0x13f)]=_0x56f887,this[_0x2a6273(0x2a0)]();}[_0x267084(0x2a0)](){const _0x3c0fc3=this;this['disposeWithMe'](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x5bbd42=>{const _0x1caf7f=_0x1936,_0x4c3df8=await _0x3c0fc3[_0x1caf7f(0x13f)][_0x1caf7f(0x167)](_0x5bbd42);return _0x4c3df8?{'source':_0x4c3df8['source'],'imageSourceType':_0x4c3df8[_0x1caf7f(0xbd)]}:null;}}));}};$e=Mi([rt(0x0,_0x22e109),rt(0x1,_0x5e00b7)],$e);const ot=[_0x267084(0x226),_0x267084(0x1a2),'green.600','red.300','blue.400',_0x267084(0x153)];class Ke extends _0x15b4c2{constructor(){const _0x401366=_0x267084;super(...arguments),_(this,_0x401366(0x202),new Map()),_(this,_0x401366(0x15e),0x0);}['assignAColorForMemberID'](_0x3736e1){const _0x2176bd=_0x267084;if(this['_assignedColors'][_0x2176bd(0x2b0)](_0x3736e1))return this[_0x2176bd(0x202)][_0x2176bd(0xf7)](_0x3736e1);const _0x485cf1=ot[this[_0x2176bd(0x15e)]];return this[_0x2176bd(0x15e)]=(this[_0x2176bd(0x15e)]+0x1)%ot[_0x2176bd(0xb1)],this['_assignedColors'][_0x2176bd(0x212)](_0x3736e1,_0x485cf1),_0x485cf1;}}function $t(_0x1ec765){const _0x3723b5=_0x267084;let _0xb5002='';for(const _0x12393e of _0x1ec765){const {startOffset:_0x182ebd,endOffset:_0x58129a,isActive:_0x546974,rangeType:_0x393d35,segmentId:_0x242a5d,segmentPage:_0x3df8f5}=_0x12393e;_0xb5002[_0x3723b5(0xb1)]&&(_0xb5002+=','),_0xb5002+=_0x182ebd+':'+_0x58129a+':'+(_0x546974?'1':'0')+':'+_0x393d35+':'+_0x242a5d+':'+_0x3df8f5;}return _0xb5002;}function Ai(_0x52cf52){const _0x8936c=_0x267084,_0x230db5=_0x52cf52[_0x8936c(0x2a9)](','),_0x558d72=[];for(const _0x2338e0 of _0x230db5){const [_0x5444fb,_0xb8ea6d,_0x25fa30,_0x431614,_0x47db52,_0x1de475]=_0x2338e0[_0x8936c(0x2a9)](':');_0x558d72['push']({'startOffset':Number(_0x5444fb),'endOffset':Number(_0xb8ea6d),'collapsed':_0x5444fb===_0xb8ea6d,'isActive':_0x25fa30==='1','rangeType':_0x431614===_0x324e87[_0x8936c(0x2a2)]?_0x324e87[_0x8936c(0x2a2)]:_0x324e87[_0x8936c(0x1ca)],'segmentId':typeof _0x47db52=='string'?String(_0x47db52):'','segmentPage':Number(_0x1de475!=null?_0x1de475:-0x1)});}return _0x558d72[_0x8936c(0x100)](_0x477c39=>_0x477c39[_0x8936c(0x27b)])||(_0x558d72[0x0][_0x8936c(0x27b)]=!0x0),_0x558d72;}class ze extends _0x2699b6{constructor(){const _0x3c6e89=_0x267084;super(...arguments),_(this,_0x3c6e89(0x2ab),new _0x1c42a0(null)),_(this,_0x3c6e89(0x191),this[_0x3c6e89(0x2ab)][_0x3c6e89(0x223)]());}['syncEditingCollabCursor'](_0x41c126){const _0x42e66a=_0x267084,{unitID:_0xc0c1ae,memberID:_0x2bea24,textRanges:_0x4c80d4}=_0x41c126,_0x53bd74=$t(_0x4c80d4);if(_0x53bd74==='')return;const _0x1526e1={'unitID':_0xc0c1ae,'memberID':_0x2bea24,'selection':_0x53bd74};this[_0x42e66a(0x2ab)]['next'](_0x1526e1);}}var Pi=Object[_0x267084(0x141)],wi=(_0x69d828,_0x66d7f8,_0x4377fe,_0xb70fd0)=>{const _0x6cfad6=_0x267084;for(var _0x3b9fb1=_0xb70fd0>0x1?void 0x0:_0xb70fd0?Pi(_0x66d7f8,_0x4377fe):_0x66d7f8,_0x388245=_0x69d828[_0x6cfad6(0xb1)]-0x1,_0x33cc56;_0x388245>=0x0;_0x388245--)(_0x33cc56=_0x69d828[_0x388245])&&(_0x3b9fb1=_0x33cc56(_0x3b9fb1)||_0x3b9fb1);return _0x3b9fb1;},A=(_0x317f37,_0x442e3a)=>(_0x76075a,_0x19c15c)=>_0x442e3a(_0x76075a,_0x19c15c,_0x317f37);const yi=0x12c,$i=0x64;let xe=class extends _0x2699b6{constructor(_0x40e78b,_0x327384,_0x5b4845,_0x5d5b57,_0x2ac984,_0xafa1a7,_0x3b591b,_0x5e768e,_0x4b17f3){const _0x582073=_0x267084;super(),_(this,_0x582073(0x22b),!0x1),_(this,_0x582073(0x2a0),!0x1),_(this,'_cursorInfo$',new _0x1c42a0(new Map())),_(this,_0x582073(0x9f),this[_0x582073(0x1a3)][_0x582073(0x223)]()),_(this,_0x582073(0x1e3),new _0x1c42a0([])),_(this,_0x582073(0x211),this[_0x582073(0x1e3)][_0x582073(0x162)](_0x1f60ae(yi))),_(this,_0x582073(0x19e),_0x1dbae4(_0x216247=>{const _0x37a596=_0x582073,_0x1b8b77={'eventID':_0x11a4ac['UPDATE_CURSOR'],'data':{'unitID':this[_0x37a596(0xf1)],'memberID':this[_0x37a596(0x187)][_0x37a596(0x1f5)](),'selection':$t(_0x216247)}};this['_session'][_0x37a596(0x2af)](_0x1b8b77,this[_0x37a596(0xf1)]);},$i)),(this[_0x582073(0xf1)]=_0x40e78b,this[_0x582073(0x187)]=_0x327384,this['_injector']=_0x5b4845,this[_0x582073(0x1f3)]=_0x5d5b57,this[_0x582073(0x2b6)]=_0x2ac984,this[_0x582073(0x17d)]=_0xafa1a7,this['_transformService']=_0x3b591b,this[_0x582073(0x289)]=_0x5e768e,this[_0x582073(0x106)]=_0x4b17f3);}get[_0x267084(0x207)](){return this['_cursorInfo$']['getValue']();}get[_0x267084(0x12d)](){const _0x447872=_0x267084;return this[_0x447872(0x1e3)][_0x447872(0x1d8)]();}[_0x267084(0x18a)](){const _0x576266=_0x267084;super[_0x576266(0x18a)](),this[_0x576266(0x1a3)][_0x576266(0xdc)](new Map()),this['_cursorInfo$']['complete'](),this['_roomMembers$']['next']([]),this[_0x576266(0x1e3)][_0x576266(0x264)]();}[_0x267084(0x90)](){const _0x1eee4f=_0x267084;this[_0x1eee4f(0x2a0)]||(this[_0x1eee4f(0x2a0)]=!0x0,this[_0x1eee4f(0x187)]['sessionStatus$'][_0x1eee4f(0x162)](_0xae10c0(this['dispose$']))['subscribe'](_0x2ce2f1=>{const _0x38b123=_0x1eee4f;_0x2ce2f1===_0x2f3a8a['ONLINE']?this['_toggleOnline']():this[_0x38b123(0x117)]();}),this[_0x1eee4f(0x187)][_0x1eee4f(0xac)]['pipe'](_0xae10c0(this['dispose$']))[_0x1eee4f(0x116)](_0x1475ea=>{const _0x4bc500=_0x1eee4f,_0x59f9a3=_0x1475ea[_0x4bc500(0x1e0)];_0x59f9a3===_0x11a4ac[_0x4bc500(0x22c)]&&this[_0x4bc500(0xfb)](_0x1475ea),_0x59f9a3===_0x11a4ac[_0x4bc500(0x296)]&&this[_0x4bc500(0x146)](_0x1475ea);}),this['disposeWithMe'](this['_commandService'][_0x1eee4f(0xf0)](_0x50fc40=>{const _0x4e581e=_0x1eee4f,_0x3ce890=_0x50fc40['params'];_0x3ce890!=null&&this[_0x4e581e(0x22b)]&&_0x50fc40['id']===_0x4e5c0b['id']&&_0x3ce890[_0x4e581e(0x2aa)]===this[_0x4e581e(0xf1)]&&_0x3ce890[_0x4e581e(0x228)]===!0x1&&_0x3ce890[_0x4e581e(0xfd)][_0x4e581e(0xb1)]>0x0&&this['_updateLocalCursor'](_0x3ce890[_0x4e581e(0xfd)]);})),this[_0x1eee4f(0x17d)]['collabCursorState$'][_0x1eee4f(0x162)](_0xae10c0(this[_0x1eee4f(0x1ef)]))[_0x1eee4f(0x116)](_0x3d7741=>{const _0x5e3edd=_0x1eee4f;if((_0x3d7741==null?void 0x0:_0x3d7741[_0x5e3edd(0xf1)])!==this['unitID'])return;const _0x4df19c={'eventID':_0x11a4ac[_0x5e3edd(0x22c)],'data':_0x3d7741};this[_0x5e3edd(0xfb)](_0x4df19c);}),this['disposeWithMe'](this[_0x1eee4f(0x106)][_0x1eee4f(0xf0)](_0x62a2d9=>{const _0x5330b1=_0x1eee4f;if(_0x62a2d9[_0x5330b1(0x199)]==null)return;const _0x43b648=_0x62a2d9[_0x5330b1(0x199)];if(_0x62a2d9['id']!==_0xd50203['id']||_0x43b648['unitId']!==this[_0x5330b1(0xf1)])return;const _0x47749c={'id':_0x5330b1(0x1e5),'params':_0x43b648},_0xab0741=this[_0x5330b1(0x207)];for(const [_0x2705a3,_0x5b60f8]of _0xab0741){const _0xb7585={'id':_0x5330b1(0x1e5),'params':{'unitId':this[_0x5330b1(0xf1)],'actions':null,'textRanges':_0x5b60f8['ranges']}},_0x4d936c=this['_transformService'][_0x5330b1(0x15f)](_0x47749c,_0xb7585,!0x1);if(_0x3d1fb0(_0x4d936c))throw _0x4d936c[_0x5330b1(0x145)];_0xab0741[_0x5330b1(0x212)](_0x2705a3,{..._0x5b60f8,'ranges':_0x4d936c[_0x5330b1(0x1fe)][_0x5330b1(0x199)][_0x5330b1(0x245)]});}queueMicrotask(()=>{const _0x4311fe=_0x5330b1;this[_0x4311fe(0x1a3)][_0x4311fe(0xdc)](_0xab0741);});})));}[_0x267084(0xfb)](_0x21ae12){const _0x54a098=_0x267084;var _0x3edb74,_0x3cf6c5;const {memberID:_0x372255,selection:_0x25867a}=_0x21ae12['data'],_0x157dd6=Ai(_0x25867a),_0x542362=(_0x3cf6c5=(_0x3edb74=this[_0x54a098(0x2b6)][_0x54a098(0x271)](this['unitID'],_0x372255))==null?void 0x0:_0x3edb74['name'])!=null?_0x3cf6c5:_0x54a098(0x140),_0x1c208b={'color':this['_colorAssignService'][_0x54a098(0x163)](_0x372255),'name':_0x542362,'ranges':_0x157dd6},_0x164796=this[_0x54a098(0x207)];_0x164796[_0x54a098(0x212)](_0x372255,_0x1c208b),this[_0x54a098(0x1a3)]['next'](_0x164796);}[_0x267084(0x146)](_0x540d9e){const _0x8f6a48=_0x267084,{memberID:_0x470742}=_0x540d9e[_0x8f6a48(0x255)],_0x1b9d27=this['cursorInfo'];_0x1b9d27['delete'](_0x470742),this[_0x8f6a48(0x1a3)][_0x8f6a48(0xdc)](_0x1b9d27);}[_0x267084(0x179)](){const _0x3a92e9=_0x267084;var _0x277772;if(this[_0x3a92e9(0x22b)]=!0x0,((_0x277772=this[_0x3a92e9(0x289)]['getFocusedUnit']())==null?void 0x0:_0x277772[_0x3a92e9(0x12e)]())!==this[_0x3a92e9(0xf1)])return;const _0x58c847=this[_0x3a92e9(0x298)][_0x3a92e9(0xf7)](_0x22e39b)[_0x3a92e9(0xd2)]();Array[_0x3a92e9(0xc1)](_0x58c847)&&_0x58c847[_0x3a92e9(0xb1)]>0x0&&this[_0x3a92e9(0x19e)](_0x58c847);}[_0x267084(0x117)](){this['_online']=!0x1;}};xe=wi([A(0x2,_0x19d3ff(_0x4ab7f8)),A(0x3,_0x19d3ff(Ke)),A(0x4,_0x19d3ff(_0x277671)),A(0x5,_0x19d3ff(ze)),A(0x6,_0xe0c62a),A(0x7,_0x121c1a),A(0x8,_0x1da808)],xe);var xi=Object[_0x267084(0x141)],Bi=(_0xdf828c,_0x4cdd4c,_0x46ba61,_0x535361)=>{for(var _0x47abe2=_0x535361>0x1?void 0x0:_0x535361?xi(_0x4cdd4c,_0x46ba61):_0x4cdd4c,_0x483aaf=_0xdf828c['length']-0x1,_0x2e4344;_0x483aaf>=0x0;_0x483aaf--)(_0x2e4344=_0xdf828c[_0x483aaf])&&(_0x47abe2=_0x2e4344(_0x47abe2)||_0x47abe2);return _0x47abe2;},B=(_0x5e2ef8,_0x2988b4)=>(_0x48e1eb,_0x22b1f4)=>_0x2988b4(_0x48e1eb,_0x22b1f4,_0x5e2ef8);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x1c40b8=[],_0xe800ce=!0x1;return _0x362ad7=>{const _0x31cf94=_0x1936;_0x1c40b8[_0x31cf94(0x224)](_0x362ad7),_0xe800ce||(_0xe800ce=!0x0,setTimeout(()=>{const _0x3d0f66=_0x31cf94;_0x1c40b8[_0x3d0f66(0x236)](_0x5dafee=>_0x5dafee()),_0x1c40b8=[],_0xe800ce=!0x1;}));};};let Be=class extends _0x2699b6{constructor(_0x27b868,_0x1a353a,_0x3c24d4,_0x4d225e,_0x59da94,_0x1587fa,_0x198ada,_0x5facd8){const _0x348651=_0x267084;super(),_(this,_0x348651(0x22b),!0x1),_(this,_0x348651(0x2a0),!0x1),_(this,'_cursorInfo$',new _0x1c42a0(new Map())),_(this,_0x348651(0x9f),this[_0x348651(0x1a3)][_0x348651(0x223)]()),_(this,'_roomMembers$',new _0x1c42a0([])),_(this,_0x348651(0x211),this[_0x348651(0x1e3)][_0x348651(0x162)](_0x1f60ae(Fi))),_(this,'_updateLocalCursor',_0x1dbae4((_0x12782f,_0x199cca)=>{const _0x35ccb1=_0x348651,_0x471fd3={'eventID':_0x11a4ac[_0x35ccb1(0x22c)],'data':{'unitID':this[_0x35ccb1(0xf1)],'memberID':this[_0x35ccb1(0x187)]['getMemberID'](),'selection':_0x104646(_0x12782f,_0x199cca[_0x35ccb1(0x20e)])}};this[_0x35ccb1(0x187)][_0x35ccb1(0x2af)](_0x471fd3,this['unitID']);},ki)),(this['unitID']=_0x27b868,this[_0x348651(0x187)]=_0x1a353a,this['_injector']=_0x3c24d4,this[_0x348651(0x1f3)]=_0x4d225e,this[_0x348651(0x2b6)]=_0x59da94,this[_0x348651(0x289)]=_0x1587fa,this[_0x348651(0x106)]=_0x198ada,this['_refRangeService']=_0x5facd8);}get['cursorInfo'](){const _0x3b0399=_0x267084;return this['_cursorInfo$'][_0x3b0399(0x1d8)]();}get[_0x267084(0x12d)](){const _0x161cad=_0x267084;return this[_0x161cad(0x1e3)][_0x161cad(0x1d8)]();}['dispose'](){const _0x10bd0b=_0x267084;super[_0x10bd0b(0x18a)](),this[_0x10bd0b(0x1a3)][_0x10bd0b(0xdc)](new Map()),this['_cursorInfo$']['complete'](),this[_0x10bd0b(0x1e3)][_0x10bd0b(0xdc)]([]),this[_0x10bd0b(0x1e3)][_0x10bd0b(0x264)]();}['init'](){const _0x2caf03=_0x267084;this[_0x2caf03(0x2a0)]||(this['_init']=!0x0,this['_session'][_0x2caf03(0x131)][_0x2caf03(0x162)](_0xae10c0(this['dispose$']))[_0x2caf03(0x116)](_0x5f52fa=>{const _0x1bb4b2=_0x2caf03;_0x5f52fa===_0x2f3a8a[_0x1bb4b2(0x26d)]?this[_0x1bb4b2(0x179)]():this['_toggleOffline']();}),this[_0x2caf03(0x187)][_0x2caf03(0xac)][_0x2caf03(0x162)](_0xae10c0(this[_0x2caf03(0x1ef)]))[_0x2caf03(0x116)](_0x4d2939=>{const _0x19d1fe=_0x2caf03,_0x382a51=_0x4d2939[_0x19d1fe(0x1e0)];_0x382a51===_0x11a4ac[_0x19d1fe(0x22c)]&&this[_0x19d1fe(0xfb)](_0x4d2939),_0x382a51===_0x11a4ac[_0x19d1fe(0x296)]&&this[_0x19d1fe(0x146)](_0x4d2939);}),this['_onRefRangeChange'](),this[_0x2caf03(0x134)](this['_commandService']['onCommandExecuted'](_0x376b95=>{const _0x455276=_0x2caf03;if(this['_online']&&_0x376b95['id']===_0x471d36['id']&&_0x376b95[_0x455276(0x199)]['unitId']===this['unitID']){const _0x2735d4=_0x376b95[_0x455276(0x199)];this[_0x455276(0x19e)](_0x2735d4[_0x455276(0xdb)],_0x2735d4[_0x455276(0x157)][0x0]);}})));}['_onCursorUpdate'](_0xd21314){const _0x51f698=_0x267084;var _0x5e2471,_0x26ed8a;const {memberID:_0x3b68bf,selection:_0x1cceb2}=_0xd21314[_0x51f698(0x255)],{sheetName:_0x24b0e3,range:_0x25c61d}=_0x3813d3(_0x1cceb2),_0x5ef7c7={'name':(_0x26ed8a=(_0x5e2471=this['_memberService'][_0x51f698(0x271)](this[_0x51f698(0xf1)],_0x3b68bf))==null?void 0x0:_0x5e2471[_0x51f698(0xc6)])!=null?_0x26ed8a:'Unknown\x20user','range':this[_0x51f698(0x1d6)](_0x24b0e3,_0x25c61d),'sheetID':_0x24b0e3,'color':this[_0x51f698(0x1f3)][_0x51f698(0x163)](_0x3b68bf),'selection':_0x1cceb2},_0x1db8c1=this['cursorInfo'];_0x1db8c1['set'](_0x3b68bf,_0x5ef7c7),this[_0x51f698(0x1a3)][_0x51f698(0xdc)](_0x1db8c1);}[_0x267084(0x146)](_0x2e65e8){const _0x203d60=_0x267084,{memberID:_0x1ca141}=_0x2e65e8[_0x203d60(0x255)],_0x1ee969=this[_0x203d60(0x207)];_0x1ee969[_0x203d60(0x74)](_0x1ca141),this['_cursorInfo$'][_0x203d60(0xdc)](_0x1ee969);}[_0x267084(0x1d6)](_0x15188c,_0x48ff27){const _0x5dbab0=_0x267084;var _0x42cb4b,_0x2a63f6;const _0x103227=(_0x2a63f6=(_0x42cb4b=this[_0x5dbab0(0x289)][_0x5dbab0(0x188)](this['unitID']))==null?void 0x0:_0x42cb4b[_0x5dbab0(0x1c7)](_0x15188c))==null?void 0x0:_0x2a63f6[_0x5dbab0(0x20b)]();return(_0x103227==null?void 0x0:_0x103227['find'](_0x5cfc61=>_0x24337c['contains'](_0x5cfc61,_0x48ff27)))||_0x48ff27;}[_0x267084(0x258)](){const _0x3f6189=_0x267084,_0x381521=new _0x5466e2(),_0x39dd87=Hi(),_0x3c0c08=()=>{const _0x5d41e0=_0x1936;_0x381521['dispose']();const _0x47171e=(_0x11880b,_0x18d6a7,_0x17f6ee,_0x52f54d)=>{const _0x3f0af5=_0x1936;let _0x4eb1c1=[];switch(_0x11880b['id']){case _0x4f3975['DeleteRangeMoveLeftCommandId']:{_0x4eb1c1=_0x1876c5(_0x11880b,_0x52f54d);break;}case _0x4f3975[_0x3f0af5(0x159)]:{_0x4eb1c1=_0x471afe(_0x11880b,_0x52f54d);break;}case _0x4f3975['InsertColCommandId']:{_0x4eb1c1=_0x123e0e(_0x11880b,_0x52f54d);break;}case _0x4f3975[_0x3f0af5(0x112)]:{_0x4eb1c1=_0x4c1240(_0x11880b,_0x52f54d);break;}case _0x4f3975[_0x3f0af5(0x19a)]:{_0x4eb1c1=_0x4156ba(_0x11880b,_0x52f54d);break;}case _0x4f3975[_0x3f0af5(0x154)]:{_0x4eb1c1=_0x599989(_0x11880b,_0x52f54d);break;}case _0x4f3975['MoveRangeCommandId']:{_0x4eb1c1=_0x4ff5db(_0x11880b,_0x52f54d);break;}case _0x4f3975[_0x3f0af5(0xed)]:{_0x4eb1c1=_0x2189b3(_0x11880b,_0x52f54d);break;}case _0x4f3975[_0x3f0af5(0x8e)]:{_0x4eb1c1=_0x440e43(_0x11880b,_0x52f54d);break;}}const _0x1e264e=_0x485055(_0x4eb1c1,_0x52f54d),_0x1b2367=this[_0x3f0af5(0x207)][_0x3f0af5(0xf7)](_0x18d6a7);if(_0x1b2367&&_0x1e264e){const _0x48cd17={..._0x1b2367,'range':_0x1e264e};this['cursorInfo']['set'](_0x18d6a7,_0x48cd17),_0x39dd87(()=>{const _0x474162=_0x3f0af5,_0x7bd18a=this[_0x474162(0x125)][_0x474162(0x80)](_0x1e264e,_0x9aa033=>(_0x7bd18a[_0x474162(0x18a)](),_0x47171e(_0x9aa033,_0x18d6a7,_0x17f6ee,_0x1e264e)));_0x381521[_0x474162(0x186)](_0x7bd18a);});}return{'redos':[],'undos':[]};};this[_0x5d41e0(0x207)][_0x5d41e0(0x236)]((_0x433447,_0x3e8791)=>{const _0x482d50=_0x5d41e0,{range:_0x32c74d,sheetID:_0x5706c9}=_0x433447,_0x3b2be0=this['_refRangeService'][_0x482d50(0x80)](_0x32c74d,_0x37d47c=>(_0x3b2be0['dispose'](),_0x47171e(_0x37d47c,_0x3e8791,_0x5706c9,_0x32c74d)));_0x381521[_0x482d50(0x186)](_0x3b2be0);});};this[_0x3f6189(0x134)](_0x490c7d(this['_cursorInfo$'][_0x3f6189(0x116)](()=>{_0x3c0c08();})));}['_toggleOnline'](){const _0x2ba0f9=_0x267084;var _0x11141b,_0x3220b5;if(this[_0x2ba0f9(0x22b)]=!0x0,((_0x11141b=this[_0x2ba0f9(0x289)][_0x2ba0f9(0x241)]())==null?void 0x0:_0x11141b[_0x2ba0f9(0x12e)]())!==this[_0x2ba0f9(0xf1)])return;const _0x4f17c7=(_0x3220b5=this[_0x2ba0f9(0x298)]['get'](_0x308ea6)['getCurrentSelections']())==null?void 0x0:_0x3220b5[0x0],_0x477380=this[_0x2ba0f9(0x289)][_0x2ba0f9(0x1e8)](_0x24166e[_0x2ba0f9(0x1b6)])[_0x2ba0f9(0x209)]();_0x4f17c7&&_0x477380&&this[_0x2ba0f9(0x19e)](_0x477380[_0x2ba0f9(0x127)](),_0x4f17c7);}[_0x267084(0x117)](){const _0x2d4cae=_0x267084;this[_0x2d4cae(0x22b)]=!0x1;}};Be=Bi([B(0x2,_0x19d3ff(_0x4ab7f8)),B(0x3,_0x19d3ff(Ke)),B(0x4,_0x19d3ff(_0x277671)),B(0x5,_0x121c1a),B(0x6,_0x1da808),B(0x7,_0x19d3ff(_0x550286))],Be);var Yi=Object[_0x267084(0x141)],Wi=(_0x5916a7,_0x15035b,_0x5cd033,_0x17e319)=>{const _0x26812f=_0x267084;for(var _0x196038=_0x17e319>0x1?void 0x0:_0x17e319?Yi(_0x15035b,_0x5cd033):_0x15035b,_0x1282a2=_0x5916a7[_0x26812f(0xb1)]-0x1,_0x814497;_0x1282a2>=0x0;_0x1282a2--)(_0x814497=_0x5916a7[_0x1282a2])&&(_0x196038=_0x814497(_0x196038)||_0x196038);return _0x196038;},Ce=(_0x80c51f,_0x335090)=>(_0x597d3e,_0x5c5c72)=>_0x335090(_0x597d3e,_0x5c5c72,_0x80c51f);let H=class extends _0x2699b6{constructor(_0x1eb740,_0x54b29f,_0x4dc46f){const _0x49de54=_0x267084;super(),_(this,_0x49de54(0x29b),new Map()),_(this,'_entityInit$',new _0x47c8c8()),(this[_0x49de54(0x289)]=_0x1eb740,this[_0x49de54(0x298)]=_0x54b29f,this['_collabSessionService']=_0x4dc46f,this['_init']());}[_0x267084(0x18a)](){const _0x3593d4=_0x267084;super['dispose'](),this[_0x3593d4(0x102)][_0x3593d4(0x264)](),this[_0x3593d4(0x29b)][_0x3593d4(0x236)](_0x2fe218=>_0x2fe218[_0x3593d4(0x18a)]());}[_0x267084(0xc2)](_0x54f275){const _0x258bee=_0x267084;return this[_0x258bee(0x29b)]['has'](_0x54f275)?this[_0x258bee(0x29b)]['get'](_0x54f275)['cursorInfo$']:this['_entityInit$'][_0x258bee(0x162)](_0x54fc49(_0x705e4f=>_0x705e4f[_0x258bee(0xf1)]===_0x54f275),_0x481021(_0x100e93=>_0x100e93[_0x258bee(0x9f)]));}['_init'](){const _0x56bd16=_0x267084;this['_univerInstanceService'][_0x56bd16(0x17f)](_0x24166e[_0x56bd16(0x1b6)])[_0x56bd16(0x162)](_0xae10c0(this[_0x56bd16(0x1ef)]))[_0x56bd16(0x116)](async _0x527beb=>{const _0x392391=_0x56bd16,_0x2641a4=_0x527beb[_0x392391(0x12e)](),_0x466fd3=await this[_0x392391(0x2b2)](_0x2641a4);this['_entityInit$'][_0x392391(0xdc)](_0x466fd3),this['_entities'][_0x392391(0x212)](_0x2641a4,_0x466fd3);}),this[_0x56bd16(0x289)][_0x56bd16(0x17f)](_0x24166e[_0x56bd16(0x17b)])[_0x56bd16(0x162)](_0xae10c0(this[_0x56bd16(0x1ef)]))[_0x56bd16(0x162)](_0x54fc49(_0xf87ebb=>!_0xf87ebb['getUnitId']()[_0x56bd16(0xc9)]('__')))[_0x56bd16(0x116)](async _0x5a2a8c=>{const _0x446624=_0x56bd16,_0x54a7b8=_0x5a2a8c[_0x446624(0x12e)](),_0x42f17d=await this['_startDocCollabCursor'](_0x54a7b8);this[_0x446624(0x102)]['next'](_0x42f17d),this[_0x446624(0x29b)]['set'](_0x54a7b8,_0x42f17d);}),_0xe0d349(this[_0x56bd16(0x289)]['getTypeOfUnitDisposed$'](_0x24166e[_0x56bd16(0x17b)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x24166e[_0x56bd16(0x1b6)]))[_0x56bd16(0x162)](_0xae10c0(this[_0x56bd16(0x1ef)]))[_0x56bd16(0x116)](_0x531652=>{const _0x4522ef=_0x56bd16,_0x402393=_0x531652[_0x4522ef(0x12e)](),_0x220ebb=this[_0x4522ef(0x29b)][_0x4522ef(0xf7)](_0x402393);_0x220ebb&&(_0x220ebb[_0x4522ef(0x18a)](),this[_0x4522ef(0x29b)][_0x4522ef(0x74)](_0x402393));});}async['_startSheetCollabCursor'](_0x3f702e){const _0x4315d8=_0x267084,_0x3a3954=await this[_0x4315d8(0x1d9)]['requireSession'](_0x3f702e),_0xc7ab35=this['_injector'][_0x4315d8(0x10a)](Be,_0x3f702e,_0x3a3954);return _0xc7ab35[_0x4315d8(0x90)](),_0xc7ab35;}async[_0x267084(0x21c)](_0x35f262){const _0x32aaf5=_0x267084,_0x2d643b=await this[_0x32aaf5(0x1d9)][_0x32aaf5(0x174)](_0x35f262),_0x96b79=this[_0x32aaf5(0x298)][_0x32aaf5(0x10a)](xe,_0x35f262,_0x2d643b);return _0x96b79[_0x32aaf5(0x90)](),_0x96b79;}};H=Wi([Ce(0x0,_0x121c1a),Ce(0x1,_0x19d3ff(_0x4ab7f8)),Ce(0x2,_0x19d3ff(_0x30d8be))],H);const Q=0x14,at=0xc8,Re=0x4,ji=0x5;function Vi(_0x292bf8,_0x2f1c35){const _0x4adfcb=_0x267084;let {radius:_0x3e5ff0,width:_0x4e6683,height:_0x2bfaf4}=_0x2f1c35;_0x3e5ff0=_0x3e5ff0!=null?_0x3e5ff0:0x0,_0x4e6683=_0x4e6683!=null?_0x4e6683:0x1e,_0x2bfaf4=_0x2bfaf4!=null?_0x2bfaf4:0x1e;let _0x5b8b07=0x0,_0x5d5b9a=0x0,_0x57d6e6=0x0;_0x5b8b07=_0x5d5b9a=_0x57d6e6=Math['min'](_0x3e5ff0,_0x4e6683/0x2,_0x2bfaf4/0x2),_0x292bf8[_0x4adfcb(0x210)](),_0x292bf8[_0x4adfcb(0x1c3)](_0x5b8b07,0x0),_0x292bf8[_0x4adfcb(0x248)](_0x4e6683-_0x5d5b9a,0x0),_0x292bf8['arc'](_0x4e6683-_0x5d5b9a,_0x5d5b9a,_0x5d5b9a,Math['PI']*0x3/0x2,0x0,!0x1),_0x292bf8['lineTo'](_0x4e6683,_0x2bfaf4-_0x57d6e6),_0x292bf8[_0x4adfcb(0x19c)](_0x4e6683-_0x57d6e6,_0x2bfaf4-_0x57d6e6,_0x57d6e6,0x0,Math['PI']/0x2,!0x1),_0x292bf8[_0x4adfcb(0x248)](0x0,_0x2bfaf4),_0x292bf8['lineTo'](0x0,_0x5b8b07),_0x292bf8[_0x4adfcb(0x19c)](_0x5b8b07,_0x5b8b07,_0x5b8b07,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x292bf8[_0x4adfcb(0x12c)](),_0x2f1c35[_0x4adfcb(0x1f8)]&&(_0x292bf8['save'](),_0x292bf8[_0x4adfcb(0x11b)]=_0x2f1c35[_0x4adfcb(0x1f8)],_0x2f1c35[_0x4adfcb(0x1c9)]===_0x4adfcb(0x22d)?_0x292bf8['fill'](_0x4adfcb(0x22d)):_0x292bf8[_0x4adfcb(0x1f8)](),_0x292bf8[_0x4adfcb(0x190)]());}class Ee extends _0x48592f{constructor(_0x359010,_0x1a1644){const _0x38760e=_0x267084;super(_0x359010,_0x1a1644),_(this,'color'),_(this,_0x38760e(0x1a5)),(this[_0x38760e(0x22e)]=_0x1a1644==null?void 0x0:_0x1a1644[_0x38760e(0x22e)],this['text']=_0x1a1644==null?void 0x0:_0x1a1644[_0x38760e(0x1a5)]);}static[_0x267084(0x265)](_0x3e2a7f,_0x5214d1){const _0x13f29c=_0x267084,{text:_0x5eb804,color:_0x1d8d1f}=_0x5214d1;_0x3e2a7f['save'](),_0x3e2a7f['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x2f82fc=_0x3e2a7f[_0x13f29c(0x164)](_0x5eb804)[_0x13f29c(0x1ec)],_0x5a3cb2=Math[_0x13f29c(0x1f1)](_0x2f82fc+0x2*Re,at);Vi(_0x3e2a7f,{'height':Q,'radius':0x4,'width':_0x5a3cb2,'fill':_0x1d8d1f}),_0x3e2a7f[_0x13f29c(0x11b)]='#FFF';const _0x403d0e=Re,_0xbbf2b4=Q-ji,_0x233787=at-0x2*Re;if(_0x2f82fc>_0x233787){let _0x3f92eb='',_0xf1f2e5=0x0;for(const _0x213ab7 of _0x5eb804){const _0x238215=_0x3e2a7f[_0x13f29c(0x164)](_0x213ab7)[_0x13f29c(0x1ec)];if(_0xf1f2e5+_0x238215<=_0x233787-_0x3e2a7f[_0x13f29c(0x164)](_0x13f29c(0x142))[_0x13f29c(0x1ec)])_0x3f92eb+=_0x213ab7,_0xf1f2e5+=_0x238215;else{_0x3f92eb+='...';break;}}_0x3e2a7f[_0x13f29c(0xcf)](_0x3f92eb,_0x403d0e,_0xbbf2b4);}else _0x3e2a7f[_0x13f29c(0xcf)](_0x5eb804,_0x403d0e,_0xbbf2b4);_0x3e2a7f[_0x13f29c(0x190)]();}[_0x267084(0xaa)](_0x3af75e){Ee['drawWith'](_0x3af75e,this);}}const De=_0x267084(0xe6),Xi='collab-text-range-',Gi=_0x267084(0x24f),z=0x6,Ki=1.5,be=0x4,zi=1.5,Ji='rgba(255,\x20255,\x20255,\x200.01)';class ct{constructor(_0x502b85,_0x19154b,_0x158dfd,_0x2a5818){const _0x17719e=_0x267084;_(this,_0x17719e(0x1e1),[]),_(this,_0x17719e(0xf3),null),_(this,_0x17719e(0x11f),null),_(this,'_anchorDot',null),_(this,_0x17719e(0x281),null),_(this,_0x17719e(0x250),null),(this[_0x17719e(0x108)]=_0x502b85,this[_0x17719e(0x29a)]=_0x19154b,this[_0x17719e(0x285)]=_0x158dfd,this['_document']=_0x2a5818,this['_render']());}set['_hover'](_0x1d4228){const _0x213338=_0x267084;_0x1d4228?(this[_0x213338(0x17a)]&&this['_anchorDot'][_0x213338(0x1b7)](),this[_0x213338(0x11f)]&&this['_textBubble'][_0x213338(0x16a)]()):(this[_0x213338(0x17a)]&&this[_0x213338(0x17a)]['show'](),this[_0x213338(0x11f)]&&this[_0x213338(0x11f)][_0x213338(0x1b7)]());}[_0x267084(0x18a)](){const _0x3afba7=_0x267084;for(const _0x440d60 of this[_0x3afba7(0x1e1)])_0x440d60['dispose']();this[_0x3afba7(0x11f)]&&this['_textBubble']['dispose'](),this[_0x3afba7(0x17a)]&&this[_0x3afba7(0x17a)][_0x3afba7(0x18a)](),this[_0x3afba7(0xf3)]&&this[_0x3afba7(0xf3)][_0x3afba7(0x18a)](),this[_0x3afba7(0x250)]&&this[_0x3afba7(0x250)]();}[_0x267084(0x196)](){const _0x558aa1=_0x267084;var _0x456691;const {_docSkeleton:_0x3f6578,_document:_0x6d578a}=this,{color:_0x690d63,name:_0x40eaec,ranges:_0x506017}=this['_cursor'],_0x2fb572=_0x6d578a[_0x558aa1(0x1cc)](),{docsLeft:_0x2c088a,docsTop:_0x381b76}=_0x2fb572,_0xb8f0f3=new _0x49e5c6(_0x2fb572,_0x3f6578);for(const {startOffset:_0x9dd2e7,endOffset:_0x2c0fab,rangeType:_0x6da89c,segmentId:_0x1aad84,segmentPage:_0x513922,collapsed:_0x3e379b,isActive:_0x4df96d}of _0x506017){const _0x588cba=_0x3f6578[_0x558aa1(0x262)](_0x9dd2e7,!0x0,_0x1aad84,_0x513922);let _0x48edcc=_0x3f6578[_0x558aa1(0x262)](_0x2c0fab,!0x0,_0x1aad84,_0x513922);if(_0x48edcc==null&&(_0x48edcc=_0x3f6578['findNodePositionByCharIndex'](_0x2c0fab-0x1,!0x1,_0x1aad84,_0x513922)),_0x4df96d){const {contentBoxPointGroup:_0x575d20}=_0xb8f0f3[_0x558aa1(0x1ac)](_0x48edcc,_0x48edcc);if(_0x575d20['length']===0x0)continue;this[_0x558aa1(0x26e)](_0x690d63,_0x575d20,_0x2c088a,_0x381b76,_0x40eaec),this[_0x558aa1(0x250)]=this['_handleHover']();}if(_0x588cba&&_0x48edcc){if(_0x6da89c===_0x324e87['RECT']){const _0xaf9a38=new _0x307f3d(_0x2fb572,_0x3f6578),{pointGroup:_0x137c4a}=(_0x456691=_0xaf9a38[_0x558aa1(0x1ac)](_0x588cba,_0x48edcc))!=null?_0x456691:{};if(_0x137c4a==null||_0x137c4a[_0x558aa1(0xb1)]===0x0)continue;this[_0x558aa1(0x18d)](_0x690d63,_0x137c4a,_0x2c088a,_0x381b76);}else{if(!_0x3e379b){const {borderBoxPointGroup:_0x24ca21}=_0xb8f0f3['getRangePointData'](_0x588cba,_0x48edcc);if(_0x24ca21[_0x558aa1(0xb1)]===0x0)continue;this[_0x558aa1(0x278)](_0x690d63,_0x24ca21,_0x2c088a,_0x381b76);}}}}}[_0x267084(0x26e)](_0x52f927,_0xfd8b38,_0x102c65,_0x143613,_0x5619ed){const _0x344c26=_0x267084,_0x9c010d=this[_0x344c26(0xa3)](_0xfd8b38),{left:_0x2d98ab,top:_0x16c299,height:_0x210f19}=_0x9c010d,_0x5a7779=this[_0x344c26(0x29c)](),_0x1e58b4=zi/_0x5a7779,_0x162b22=new _0x3692f4(De+_0x3add1d(z),{'left':_0x2d98ab+_0x102c65-_0x1e58b4,'top':_0x16c299+_0x143613,'height':_0x210f19,'width':Ki,'fill':_0x52f927||_0x16f499(_0x3d6b49[_0x344c26(0x160)],0x0),'strokeWidth':_0x1e58b4,'stroke':Ji,'evented':!0x0});this['_anchor']=_0x162b22,this[_0x344c26(0x29a)]['addObject'](_0x162b22,_0x314e8b);const _0x26e616=new _0x3692f4(De+_0x3add1d(z),{'left':_0x2d98ab+_0x102c65-_0x1e58b4,'top':_0x16c299+_0x143613-be/0x2,'height':be,'width':be,'fill':_0x52f927||_0x16f499(_0x3d6b49[_0x344c26(0x160)],0x0),'strokeWidth':0x0,'stroke':_0x52f927||_0x16f499(_0x3d6b49[_0x344c26(0x160)],0x0),'evented':!0x1});this[_0x344c26(0x17a)]=_0x26e616,this['_scene'][_0x344c26(0xe4)](_0x26e616,_0x314e8b);const _0xa0f762=new Ee(De+_0x3add1d(z),{'left':_0x2d98ab+_0x102c65-_0x1e58b4,'top':_0x16c299+_0x143613-Q,'text':_0x5619ed,'color':_0x52f927});this[_0x344c26(0x11f)]=_0xa0f762,this[_0x344c26(0x29a)][_0x344c26(0xe4)](_0xa0f762,_0x314e8b),this['_hover']=!0x1;}['_handleHover'](){const _0x7162c0=_0x267084,_0x1eac02=this[_0x7162c0(0xf3)][_0x7162c0(0x2a4)][_0x7162c0(0x11e)](()=>{const _0x7d88ca=_0x7162c0;this[_0x7d88ca(0xf9)]=!0x0;}),_0x421b02=this[_0x7162c0(0xf3)][_0x7162c0(0x86)][_0x7162c0(0x11e)](()=>{const _0x23d5a0=_0x7162c0;this[_0x23d5a0(0x281)]&&clearTimeout(this[_0x23d5a0(0x281)]),this[_0x23d5a0(0x281)]=setTimeout(()=>{const _0x5ef7ad=_0x23d5a0;this[_0x5ef7ad(0xf9)]=!0x1;},0x7d0);});return()=>{const _0x24a26e=_0x7162c0;_0x1eac02['unsubscribe'](),_0x421b02[_0x24a26e(0x290)]();};}['_drawTextRange'](_0x23564f,_0x62a168,_0x4a8965,_0x1ea100){const _0x1f4376=_0x267084,_0x3aaf02=new _0x51eb2d(_0x23564f)[_0x1f4376(0x11d)](0.2)[_0x1f4376(0x1d2)](),_0x107382=new _0x328f70(Xi+_0x3add1d(z),{'pointsGroup':_0x62a168,'fill':_0x3aaf02||_0x16f499(_0x3d6b49[_0x1f4376(0x160)],0.2),'left':_0x4a8965,'top':_0x1ea100,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1f4376(0x224)](_0x107382),this[_0x1f4376(0x29a)][_0x1f4376(0xe4)](_0x107382,_0x314e8b);}[_0x267084(0x18d)](_0x16641d,_0x4432a8,_0x4569e3,_0x4b59fd){const _0x43fa61=_0x267084,_0x299ca0=new _0x51eb2d(_0x16641d)[_0x43fa61(0x11d)](0.2)[_0x43fa61(0x1d2)](),_0x4a648a=new _0x328f70(Gi+_0x3add1d(z),{'pointsGroup':_0x4432a8,'fill':_0x299ca0||_0x16f499(_0x3d6b49[_0x43fa61(0x160)],0.2),'left':_0x4569e3,'top':_0x4b59fd,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x43fa61(0x1e1)][_0x43fa61(0x224)](_0x4a648a),this[_0x43fa61(0x29a)][_0x43fa61(0xe4)](_0x4a648a,_0x314e8b);}[_0x267084(0xa3)](_0x5b650c){const _0x5746ea=_0x5b650c[0x0],_0x4e7de5=_0x5746ea[0x0],_0x4f0374=_0x5746ea[0x2],{x:_0x2972c1,y:_0x114508}=_0x4e7de5,{x:_0x2cddc0,y:_0x364333}=_0x4f0374;return{'left':_0x2972c1,'top':_0x114508,'width':_0x2cddc0-_0x2972c1,'height':_0x364333-_0x114508};}[_0x267084(0x29c)](){const _0x5b8f5b=_0x267084,{scaleX:_0x36dcc2,scaleY:_0x30b148}=this[_0x5b8f5b(0x29a)][_0x5b8f5b(0x299)]();return Math['max'](_0x36dcc2,_0x30b148);}}var Zi=Object[_0x267084(0x141)],Qi=(_0x39971e,_0x1d6e56,_0x39e332,_0x3e463c)=>{for(var _0x18c98f=_0x3e463c>0x1?void 0x0:_0x3e463c?Zi(_0x1d6e56,_0x39e332):_0x1d6e56,_0x3c86cb=_0x39971e['length']-0x1,_0x14158e;_0x3c86cb>=0x0;_0x3c86cb--)(_0x14158e=_0x39971e[_0x3c86cb])&&(_0x18c98f=_0x14158e(_0x18c98f)||_0x18c98f);return _0x18c98f;},ie=(_0x40b140,_0x47d3fd)=>(_0x5e14f1,_0x43084e)=>_0x47d3fd(_0x5e14f1,_0x43084e,_0x40b140);let Fe=class extends _0x2699b6{constructor(_0x5cfdd9,_0x250d67,_0x23206b,_0x2a0848,_0x74b51e){const _0x3d5305=_0x267084;super(),_(this,'_cursorShapes',[]),_(this,'_cursors',[]),(this[_0x3d5305(0x85)]=_0x5cfdd9,this[_0x3d5305(0x213)]=_0x250d67,this['_collabCursorController']=_0x23206b,this[_0x3d5305(0x106)]=_0x2a0848,this[_0x3d5305(0x1d5)]=_0x74b51e,this[_0x3d5305(0x2a0)]());}[_0x267084(0x2a0)](){const _0x39f772=_0x267084,_0x3daca9=this[_0x39f772(0x85)]['unitId'],_0x13564b=this[_0x39f772(0x213)];this[_0x39f772(0x134)](_0x5901e([this['_collabCursorController']['getCollabCursors$'](_0x3daca9),this['_themeService']['currentTheme$']])['pipe'](_0x53e19c(([_0xd0e83d,_0x2a7a70])=>({'skeleton':_0x13564b['getSkeleton'](),'cursors':[..._0xd0e83d['values']()]['flatMap'](_0x17a754=>({..._0x17a754,'color':this[_0x39f772(0x1d5)][_0x39f772(0xd7)](_0x17a754[_0x39f772(0x22e)])}))})))[_0x39f772(0x116)](_0x3a586c=>{const _0x213084=_0x39f772;if(this[_0x213084(0x243)](),_0x3a586c){const {skeleton:_0x46de6f,cursors:_0x34c424}=_0x3a586c;this['_updateCollabCursors'](_0x46de6f,_0x34c424);}})),this[_0x39f772(0xa9)](),this[_0x39f772(0x238)]();}[_0x267084(0x176)](_0x4561da,_0x5aae22){const _0x5bb21f=_0x267084,{scene:_0x14179f,mainComponent:_0x5c0bb9}=this[_0x5bb21f(0x85)],_0x2ea809=_0x5aae22['map'](_0x3d0287=>new ct(_0x3d0287,_0x14179f,_0x4561da,_0x5c0bb9));this[_0x5bb21f(0x9a)]=_0x2ea809,this[_0x5bb21f(0x77)]=_0x5aae22;}[_0x267084(0xa2)](){const _0xa41f60=_0x267084;this[_0xa41f60(0x243)]();const {scene:_0x493b9e,mainComponent:_0x51468c}=this['_context'],_0x5b3b57=this['_docSkeletonManagerService'][_0xa41f60(0x216)](),_0x38d452=this[_0xa41f60(0x77)]['map'](_0x436ee5=>new ct(_0x436ee5,_0x493b9e,_0x5b3b57,_0x51468c));this[_0xa41f60(0x9a)]=_0x38d452;}[_0x267084(0x243)](){const _0x2d5e5d=_0x267084;this['_cursorShapes'][_0x2d5e5d(0x236)](_0x58ac32=>_0x58ac32['dispose']()),this[_0x2d5e5d(0x9a)]=[];}[_0x267084(0x238)](){const _0x43dbec=_0x267084,_0x5d7cfa=[_0x2d6594['id']];this[_0x43dbec(0x134)](this['_commandService']['onCommandExecuted'](_0x2391bc=>{const _0x24c57b=_0x43dbec;_0x5d7cfa[_0x24c57b(0x1f0)](_0x2391bc['id'])&&_0x2391bc[_0x24c57b(0x199)][_0x24c57b(0x2aa)]===this[_0x24c57b(0x85)][_0x24c57b(0x2aa)]&&this[_0x24c57b(0xa2)]();}));}[_0x267084(0xa9)](){const _0x275422=_0x267084;this[_0x275422(0x134)](_0x690a46(this[_0x275422(0x85)][_0x275422(0x1f7)][_0x275422(0x181)])['pipe'](_0x42660b(_0x2c74b1=>_0x2c74b1[_0x275422(0x269)]===_0x390bb6['resize']),_0x1e846c(0x10))[_0x275422(0x116)](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0x19d3ff(_0x437e0f)),ie(0x2,_0x19d3ff(H)),ie(0x3,_0x1da808),ie(0x4,_0x19d3ff(_0x51cb02))],Fe);const qi=0x1,en=1.5;class tn extends _0x48592f{constructor(_0x39d591,_0x429ed0){const _0x25486f=_0x267084;super(_0x39d591,_0x429ed0),_(this,_0x25486f(0x261)),_(this,_0x25486f(0x215),!0x1),_(this,_0x25486f(0x10d)),_(this,'_name',''),_(this,_0x25486f(0x143),_0x25486f(0xb3)),_(this,_0x25486f(0x2b4)),(_0x429ed0&&this[_0x25486f(0x7e)](_0x429ed0),this[_0x25486f(0x2a4)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x25486f(0x86)][_0x25486f(0x11e)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x267084(0x7e)](_0x3fed3f){const _0x321690=_0x267084;var _0x150929,_0x12a6ac,_0x12c318,_0xe8e8a8,_0x1f8d00,_0x3f7ea2;this[_0x321690(0x261)]=(_0x150929=_0x3fed3f[_0x321690(0x22e)])!=null?_0x150929:this[_0x321690(0x261)],this['_hovered']=(_0x12a6ac=_0x3fed3f[_0x321690(0x28f)])!=null?_0x12a6ac:this[_0x321690(0x215)],this[_0x321690(0x10d)]=(_0x12c318=_0x3fed3f[_0x321690(0x20e)])!=null?_0x12c318:this[_0x321690(0x10d)],this[_0x321690(0x242)]=(_0xe8e8a8=_0x3fed3f[_0x321690(0xc6)])!=null?_0xe8e8a8:this[_0x321690(0x242)],this[_0x321690(0x143)]=(_0x1f8d00=_0x3fed3f[_0x321690(0xc7)])!=null?_0x1f8d00:this[_0x321690(0x143)],this['_backgroundColor']=(_0x3f7ea2=_0x3fed3f[_0x321690(0x107)])!=null?_0x3f7ea2:this[_0x321690(0x2b4)],this[_0x321690(0x1ea)]({'width':_0x3fed3f[_0x321690(0x1ec)],'height':_0x3fed3f[_0x321690(0xbf)]});}['onMouseMove'](_0xb17744){const _0x33759e=_0x267084,{row:_0x55e813,column:_0x4c9708}=_0xb17744;if(_0x55e813>=this[_0x33759e(0x10d)][_0x33759e(0x7a)]&&_0x55e813<=this[_0x33759e(0x10d)][_0x33759e(0x14b)]&&_0x4c9708>=this[_0x33759e(0x10d)][_0x33759e(0xea)]&&_0x4c9708<=this[_0x33759e(0x10d)][_0x33759e(0x1e6)]){this[_0x33759e(0x7e)]({'hovered':!0x0});return;}this[_0x33759e(0x7e)]({'hovered':!0x1});}[_0x267084(0xc3)](_0x3399d3){return!0x1;}['_draw'](_0x1ca675){const _0x47b2fc=_0x267084;_0x3692f4[_0x47b2fc(0x265)](_0x1ca675,{'width':this['width'],'height':this[_0x47b2fc(0xbf)],'strokeWidth':en,'stroke':this[_0x47b2fc(0x261)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x47b2fc(0x215)]&&(_0x1ca675[_0x47b2fc(0x15c)](),_0x1ca675['transform'](0x1,0x0,0x0,0x1,this[_0x47b2fc(0x1ec)],this[_0x47b2fc(0x143)]===_0x47b2fc(0x97)?0x0:-Q),Ee[_0x47b2fc(0x265)](_0x1ca675,{'text':this[_0x47b2fc(0x242)],'color':this[_0x47b2fc(0x261)]}),_0x1ca675[_0x47b2fc(0x190)]());}}var sn=Object['getOwnPropertyDescriptor'],nn=(_0x1097eb,_0x56762f,_0x105a29,_0x21414b)=>{const _0x4a15ae=_0x267084;for(var _0x448a5a=_0x21414b>0x1?void 0x0:_0x21414b?sn(_0x56762f,_0x105a29):_0x56762f,_0x447f1a=_0x1097eb[_0x4a15ae(0xb1)]-0x1,_0x51b10f;_0x447f1a>=0x0;_0x447f1a--)(_0x51b10f=_0x1097eb[_0x447f1a])&&(_0x448a5a=_0x51b10f(_0x448a5a)||_0x448a5a);return _0x448a5a;},Ne=(_0x129892,_0x189ca5)=>(_0x334e4b,_0xe066df)=>_0x189ca5(_0x334e4b,_0xe066df,_0x129892);const rn=0x1389;let ke=class extends _0x2699b6{constructor(_0x188818,_0x4d5ffc,_0xeb2f96,_0x5adbcd){const _0x2d5211=_0x267084;super(),_(this,'_cursors',new Set()),_(this,'_lastPointer',null),(this['_context']=_0x188818,this[_0x2d5211(0x1b8)]=_0x4d5ffc,this['_collabCursorController']=_0xeb2f96,this[_0x2d5211(0x1d5)]=_0x5adbcd,this[_0x2d5211(0x2a0)]());}[_0x267084(0x2a0)](){const _0x3b1708=_0x267084;this[_0x3b1708(0x1b8)][_0x3b1708(0x11c)][_0x3b1708(0x162)](_0xf7d2a1(this['dispose$']),_0x4c118e(_0x111a3e=>{const _0x52ead9=_0x3b1708;if(_0x111a3e){const _0x292b79=_0x111a3e[_0x52ead9(0x233)];return _0x5901e(this[_0x52ead9(0x2ae)]['getCollabCursors$'](this[_0x52ead9(0x85)]['unitId']),this['_themeService'][_0x52ead9(0x1bc)])[_0x52ead9(0x162)](_0x53e19c(([_0x10ec1f,_0x4ebda8])=>{const _0x223d0a=new Map();return _0x10ec1f['forEach']((_0x5bd29f,_0xa57243)=>{const _0x14f137=_0x1936;if(_0x5bd29f[_0x14f137(0x1a4)]===_0x292b79){const _0x360d04={..._0x5bd29f};_0x360d04[_0x14f137(0x22e)]=this[_0x14f137(0x1d5)][_0x14f137(0xd7)](_0x5bd29f[_0x14f137(0x22e)]),_0x223d0a[_0x14f137(0x212)](_0xa57243,_0x360d04);}}),{'skeleton':_0x111a3e,'cursors':_0x223d0a};}));}return _0x243860({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0xba8b38,cursors:_0x3e547e})=>{const _0x341fcd=_0x3b1708;this[_0x341fcd(0x243)](),_0xba8b38&&this[_0x341fcd(0x176)](_0xba8b38,_0x3e547e);}),this[_0x3b1708(0x1b8)][_0x3b1708(0x11c)][_0x3b1708(0x116)](_0x34b14a=>{const _0x102504=_0x3b1708;if(_0x34b14a==null)return;const {skeleton:_0x12f040}=_0x34b14a,{scene:_0x4aa252}=this['_context'];_0x4aa252['onPointerMove$'][_0x102504(0x11e)](_0x1dbae4(_0x3f3b8a=>{const _0x21d6e7=_0x102504;var _0x2f3e68,_0x1804f5;const {offsetX:_0x2df7eb,offsetY:_0x1676fd}=_0x3f3b8a,{x:_0x2e7efe,y:_0x116f07}=_0x4aa252['getRelativeToViewportCoord'](_0x2f462d['FromArray']([_0x2df7eb,_0x1676fd])),{scaleX:_0x40bb43,scaleY:_0x4c9db2}=_0x4aa252[_0x21d6e7(0x299)](),_0x383deb=_0x4aa252['getViewport'](_0x37de76[_0x21d6e7(0x1b3)]),_0x202a5b=_0x4aa252['getVpScrollXYInfoByPosToVp'](_0x2f462d[_0x21d6e7(0x280)]([_0x2e7efe,_0x116f07]),_0x383deb),_0x19f66c=_0x12f040[_0x21d6e7(0x98)](_0x2df7eb,_0x1676fd,_0x40bb43,_0x4c9db2,_0x202a5b);((_0x2f3e68=this[_0x21d6e7(0x17e)])==null?void 0x0:_0x2f3e68['column'])===_0x19f66c['column']&&((_0x1804f5=this[_0x21d6e7(0x17e)])==null?void 0x0:_0x1804f5['row'])===_0x19f66c[_0x21d6e7(0x169)]||this[_0x21d6e7(0x77)][_0x21d6e7(0x236)](_0x2ca39f=>{const _0x3995ad=_0x21d6e7;_0x2ca39f[_0x3995ad(0xde)](_0x19f66c);});},0x64));});}[_0x267084(0x176)](_0x98175a,_0x213d90){const _0x5609a6=_0x267084;var _0x3bd1ff;const _0x34fa19=(_0x3bd1ff=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x3bd1ff['skeleton'];if(!_0x34fa19)return;const _0x2473ba=this[_0x5609a6(0x15a)]();if(!_0x2473ba)return;this[_0x5609a6(0x77)][_0x5609a6(0x236)](_0xab7b2d=>{const _0x3d5d8a=_0x5609a6;_0xab7b2d[_0x3d5d8a(0x151)]();});const {scene:_0x537ab5}=_0x2473ba,_0x476a35=on(Array[_0x5609a6(0x286)](_0x213d90[_0x5609a6(0x1b4)]()))['map'](_0x562623=>{const _0x2036d9=_0x5609a6,{color:_0x4d1745,range:_0x4279b0,name:_0x395f63,selection:_0xb171de,sheetID:_0x11be79}=_0x562623,{startColumn:_0x4d7a15,startRow:_0x347692,endColumn:_0x20b523,endRow:_0x177fa7}=_0x4279b0,_0x55a5cb=_0x6cc202(_0x347692,_0x4d7a15,_0x537ab5,_0x34fa19),_0x4c885a=_0x6cc202(_0x177fa7,_0x20b523,_0x537ab5,_0x34fa19),{columnHeaderHeightAndMarginTop:_0x5f4d7c}=_0x34fa19,{startX:_0x77578a,startY:_0x3bf2c8}=_0x55a5cb,{endX:_0x2700e8,endY:_0x184680}=_0x4c885a,_0x4e427f=_0x2700e8-_0x77578a,_0x3ef925=_0x184680-_0x3bf2c8,_0x91d96e={'labelPosition':_0x3bf2c8-_0x5f4d7c>=Q?_0x2036d9(0xb3):'bottom','sheetID':_0x11be79,'range':_0x4279b0,'color':_0x4d1745,'name':_0x395f63,'selection':_0xb171de,'left':_0x77578a,'top':_0x3bf2c8,'width':_0x4e427f,'height':_0x3ef925,'evented':!0x1,'zIndex':rn};return new tn(_0x395f63,_0x91d96e);});_0x537ab5['addObjects'](_0x476a35,qi),this[_0x5609a6(0x77)]=new Set(_0x476a35);}[_0x267084(0x243)](){const _0x806f8=_0x267084;var _0x5c84a2;(_0x5c84a2=this['_cursors'])==null||_0x5c84a2[_0x806f8(0x236)](_0x19bf0b=>_0x19bf0b[_0x806f8(0x18a)]());}[_0x267084(0x15a)](){const _0x53d39b=_0x267084;return _0x1c44a6(this['_context'][_0x53d39b(0xf2)],this['_context']);}};ke=nn([Ne(0x1,_0x19d3ff(_0x42940b)),Ne(0x2,_0x19d3ff(H)),Ne(0x3,_0x19d3ff(_0x51cb02))],ke);function on(_0x2cef67){const _0x3c60a9=_0x267084,_0x339a00=new Map();return _0x2cef67[_0x3c60a9(0x236)](_0x197539=>{const _0x4fa08a=_0x3c60a9;if(_0x339a00[_0x4fa08a(0x2b0)](_0x197539[_0x4fa08a(0x1ce)])){const _0x58dbd5=_0x339a00[_0x4fa08a(0xf7)](_0x197539[_0x4fa08a(0x1ce)]);_0x58dbd5[_0x4fa08a(0xc6)]+=',\x20'+_0x197539[_0x4fa08a(0xc6)];}else _0x339a00['set'](_0x197539[_0x4fa08a(0x1ce)],_0x197539);}),Array['from'](_0x339a00[_0x3c60a9(0x1b4)]());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x1a29db,_0x2cf9f9,_0x508c43,_0x59c9d2)=>{for(var _0x5421c4=_0x59c9d2>0x1?void 0x0:_0x59c9d2?an(_0x2cf9f9,_0x508c43):_0x2cf9f9,_0x5cfe1d=_0x1a29db['length']-0x1,_0x4fffd3;_0x5cfe1d>=0x0;_0x5cfe1d--)(_0x4fffd3=_0x1a29db[_0x5cfe1d])&&(_0x5421c4=_0x4fffd3(_0x5421c4)||_0x5421c4);return _0x5421c4;},F=(_0x279eaa,_0x423595)=>(_0x1d712f,_0x17bf18)=>_0x423595(_0x1d712f,_0x17bf18,_0x279eaa);let _e=class extends _0x15b4c2{constructor(_0x23ac01,_0x1b09cf,_0x414f1f,_0x716c1a,_0x1f0cdf,_0x54617e){const _0x38f6f3=_0x267084;super(),this[_0x38f6f3(0x71)]=_0x23ac01,this['_localCacheService']=_0x1b09cf,this['_collaborationUIEventService']=_0x414f1f,this[_0x38f6f3(0x268)]=_0x716c1a,this[_0x38f6f3(0x133)]=_0x1f0cdf,this[_0x38f6f3(0x220)]=_0x54617e,this[_0x38f6f3(0x19b)](),this[_0x38f6f3(0xa1)]();}[_0x267084(0x19b)](){const _0x4af583=_0x267084;this[_0x4af583(0x134)](this[_0x4af583(0x71)]['registerBeforeClose'](()=>{const _0x4ff142=_0x4af583;if(this[_0x4ff142(0x21e)][_0x4ff142(0x171)][_0x4ff142(0x25e)])return this[_0x4ff142(0x220)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x267084(0xa1)](){const _0x132c6f=_0x267084;this[_0x132c6f(0x134)](this['_collaborationUIEventService'][_0x132c6f(0xac)][_0x132c6f(0x116)](_0x309bed=>{const _0x30fbf9=_0x132c6f;_0x309bed['id']===_0x13accd[_0x30fbf9(0x20a)]&&this['_messageService'][_0x30fbf9(0x16a)]({'type':_0x3d9040[_0x30fbf9(0x1eb)],'content':this[_0x30fbf9(0x220)]['t']('collaboration.single-unit.warning')}),_0x309bed['id']===_0x13accd[_0x30fbf9(0x13a)]&&this[_0x30fbf9(0x268)][_0x30fbf9(0x16a)]({'type':_0x3d9040[_0x30fbf9(0x1eb)],'content':this['_localeService']['t'](_0x30fbf9(0xf6))}),_0x309bed['id']===_0x13accd['PERMISSION_DENIED']&&this[_0x30fbf9(0x133)][_0x30fbf9(0x16a)]({'title':this['_localeService']['t']('permission.title'),'content':this['_localeService']['t'](_0x30fbf9(0x26f)),'type':_0x30fbf9(0x145),'duration':0x0}),_0x309bed['id']===_0x13accd['CONFLICT']&&this['_messageService'][_0x30fbf9(0x16a)]({'type':_0x3d9040[_0x30fbf9(0x198)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x309bed['data']+')'}),_0x309bed['id']===_0x13accd[_0x30fbf9(0x1fd)]&&this[_0x30fbf9(0x268)][_0x30fbf9(0x16a)]({'type':_0x3d9040[_0x30fbf9(0x1eb)],'content':this[_0x30fbf9(0x220)]['t'](_0x309bed[_0x30fbf9(0x255)]||'')}),_0x309bed['id']===_0x13accd['SOCKET_FAILED_RETRY']&&this[_0x30fbf9(0x268)][_0x30fbf9(0x16a)]({'type':_0x3d9040[_0x30fbf9(0x1eb)],'content':this[_0x30fbf9(0x220)]['t'](_0x30fbf9(0x182))}),_0x309bed['id']===_0x13accd['SOCKET_FAILED']&&this['_messageService']['show']({'type':_0x3d9040[_0x30fbf9(0x198)],'content':this[_0x30fbf9(0x220)]['t'](_0x30fbf9(0x23a))}),_0x309bed['id']===_0x13accd[_0x30fbf9(0x156)]&&this[_0x30fbf9(0x268)][_0x30fbf9(0x16a)]({'type':_0x3d9040[_0x30fbf9(0x198)],'content':this[_0x30fbf9(0x220)]['t'](_0x30fbf9(0x263))});}));}};_e=cn([F(0x0,_0x53993a),F(0x1,_0x1d4097),F(0x2,_0x19d3ff(_0x463587)),F(0x3,_0x238f17),F(0x4,_0x2018e3),F(0x5,_0x19d3ff(_0x392a0b))],_e);var _n=Object['getOwnPropertyDescriptor'],ln=(_0x276bb2,_0x4710c9,_0x506166,_0x33f516)=>{const _0x4bd070=_0x267084;for(var _0x12a995=_0x33f516>0x1?void 0x0:_0x33f516?_n(_0x4710c9,_0x506166):_0x4710c9,_0x2bf810=_0x276bb2[_0x4bd070(0xb1)]-0x1,_0x45cdec;_0x2bf810>=0x0;_0x2bf810--)(_0x45cdec=_0x276bb2[_0x2bf810])&&(_0x12a995=_0x45cdec(_0x12a995)||_0x12a995);return _0x12a995;},ne=(_0x4ee54d,_0x2a56f0)=>(_0x168fc8,_0x17ae2b)=>_0x2a56f0(_0x168fc8,_0x17ae2b,_0x4ee54d);let le=class extends _0x15b4c2{constructor(_0x239ab5,_0x86b2f3,_0x5e0fb2,_0x5d3498){const _0x2cecb7=_0x267084;super(),_(this,_0x2cecb7(0xc4)),(this[_0x2cecb7(0x298)]=_0x239ab5,this[_0x2cecb7(0x109)]=_0x86b2f3,this[_0x2cecb7(0x84)]=_0x5e0fb2,this[_0x2cecb7(0x251)]=_0x5d3498,this[_0x2cecb7(0x2a0)]());}['_init'](){const _0x23ea6b=_0x267084;this[_0x23ea6b(0x132)](),this[_0x23ea6b(0x232)](),this[_0x23ea6b(0x197)](),this['_initUserListener']();}[_0x267084(0xe1)](){const _0x3fc44a=_0x267084;this[_0x3fc44a(0x134)](this[_0x3fc44a(0x251)][_0x3fc44a(0x1c8)]['subscribe'](_0x188fcf=>{const _0x5e1fa7=_0x3fc44a;this['_memberID']=_0x188fcf==null?void 0x0:_0x188fcf[_0x5e1fa7(0xab)];}));}['_initWindowErrorListener'](){const _0x30efa7=_0x267084,_0x78debb=_0x3ddaae=>{const _0x3cef8=_0x1936;var _0x4b2b51;this[_0x3cef8(0xd9)](_0x3cef8(0x145),'[Window\x20Error]:\x20'+_0x3ddaae[_0x3cef8(0x7b)]+_0x3cef8(0x208)+_0x3ddaae[_0x3cef8(0x1ed)]+':'+_0x3ddaae[_0x3cef8(0x9e)]+':'+_0x3ddaae[_0x3cef8(0xca)]+'\x0a'+(((_0x4b2b51=_0x3ddaae['error'])==null?void 0x0:_0x4b2b51[_0x3cef8(0x1cb)])||''));};window[_0x30efa7(0x1c2)](_0x30efa7(0x145),_0x78debb),this[_0x30efa7(0x134)](()=>{const _0x533fd6=_0x30efa7;window[_0x533fd6(0x2b3)]('error',_0x78debb);});}['_initUnhandledRejectionListener'](){const _0x257ce0=_0x267084,_0x4db052=_0x5f0f58=>{const _0x5a97ac=_0x1936;this[_0x5a97ac(0xd9)](_0x5a97ac(0x145),'[Unhandled\x20Rejection]:\x20'+_0x5f0f58[_0x5a97ac(0x24c)]);};window['addEventListener'](_0x257ce0(0x24a),_0x4db052),this['disposeWithMe'](()=>{const _0x4535de=_0x257ce0;window['removeEventListener'](_0x4535de(0x24a),_0x4db052);});}[_0x267084(0x197)](){const _0x146582=_0x267084,_0x58d62c=this[_0x146582(0x84)][_0x146582(0x145)][_0x146582(0x150)](this[_0x146582(0x84)]);this[_0x146582(0x84)][_0x146582(0x145)]=(..._0x5e0c0f)=>{const _0x345117=_0x146582,_0x5e0dd9=_0x5e0c0f[_0x345117(0x21b)](_0x35e0a3=>_0x35e0a3 instanceof Error?_0x35e0a3[_0x345117(0x7b)]+'\x0a'+_0x35e0a3['stack']:String(_0x35e0a3))['join']('\x20');this[_0x345117(0xd9)]('error',_0x345117(0x1b0)+_0x5e0dd9),_0x58d62c(..._0x5e0c0f);},this[_0x146582(0x134)](()=>{const _0x598c17=_0x146582;this[_0x598c17(0x84)]['error']=_0x58d62c;});}[_0x267084(0xd9)](_0x55bb7f,_0x7afafc){const _0x200d46=_0x267084;try{const _0x5c83dc={'userId':this[_0x200d46(0xc4)],'logLabel':_0x55bb7f,'content':_0x7afafc};this[_0x200d46(0x109)][_0x200d46(0x9c)](_0x200d46(0x15d),{'body':_0x5c83dc})[_0x200d46(0xa6)](()=>{});}catch{}}};le=ln([ne(0x0,_0x19d3ff(_0x4ab7f8)),ne(0x1,_0x19d3ff(_0x3d2675)),ne(0x2,_0x35d33d),ne(0x3,_0x19d3ff(_0x30d8be))],le);const hn=_0x267084(0x1a8),_t={};var un=Object[_0x267084(0x141)],dn=(_0x1f9e97,_0x364059,_0xdb1341,_0x8cc19c)=>{const _0x332e6d=_0x267084;for(var _0x45e8f8=_0x8cc19c>0x1?void 0x0:_0x8cc19c?un(_0x364059,_0xdb1341):_0x364059,_0xf63e0d=_0x1f9e97[_0x332e6d(0xb1)]-0x1,_0x3c8801;_0xf63e0d>=0x0;_0xf63e0d--)(_0x3c8801=_0x1f9e97[_0xf63e0d])&&(_0x45e8f8=_0x3c8801(_0x45e8f8)||_0x45e8f8);return _0x45e8f8;},lt=(_0xa54d15,_0x3bde57)=>(_0x2f1bb3,_0xa9ce8e)=>_0x3bde57(_0x2f1bb3,_0xa9ce8e,_0xa54d15);let he=class{constructor(_0x591635,_0x2a9ac5){const _0x51236d=_0x267084;this[_0x51236d(0xbe)]=_0x591635,this[_0x51236d(0x270)]=_0x2a9ac5;}[_0x267084(0x1cf)](_0x7f75a2){const _0x27fe75=_0x267084;this['_transformUndoRedoStack'](_0x7f75a2),this[_0x27fe75(0x8d)](_0x7f75a2);}[_0x267084(0xf4)](_0x4e6a96){const _0x24d9a7=_0x267084,{unitID:_0x544001}=_0x4e6a96,_0x5f1714=this['_renderManagerService'][_0x24d9a7(0xfa)](_0x544001)[_0x24d9a7(0x239)](_0x4f8e82),{redoCache:_0x3b1a90}=_0x5f1714[_0x24d9a7(0xbb)]();if(_0x3b1a90[_0x24d9a7(0xb1)]===0x0)return _0x4e6a96;let _0x289468=_0x23f5dc[_0x24d9a7(0x21d)](_0x4e6a96[_0x24d9a7(0x288)][0x0]);for(let _0x510ba7=0x0;_0x510ba7<_0x3b1a90[_0x24d9a7(0xb1)];_0x510ba7++){const _0x9c9428={'id':_0x24d9a7(0x1e5),'params':{..._0x3b1a90[_0x510ba7]}},_0x264705=this[_0x24d9a7(0xbe)][_0x24d9a7(0x15f)](_0x289468,_0x9c9428,!0x1);if(_0x3d1fb0(_0x264705))throw _0x264705[_0x24d9a7(0x145)];_0x289468=_0x264705['m1Prime'];}return{..._0x23f5dc['deepClone'](_0x4e6a96),'mutations':[_0x289468]};}['_transformUndoRedoStack'](_0x9fe53f){const _0x53e855=_0x267084,{unitID:_0x5ef880}=_0x9fe53f,_0xaf286e=this[_0x53e855(0x270)][_0x53e855(0xfa)](_0x5ef880)['with'](_0x4f8e82),{undoCache:_0x3c7854,redoCache:_0x3ac69d}=_0xaf286e[_0x53e855(0xbb)]();if(_0x3c7854[_0x53e855(0xb1)]===0x0||_0x3ac69d['length']===0x0)return;const _0x1c3d0c=[],_0x1f3ae1=[];let _0x2d1b53=_0x23f5dc[_0x53e855(0x21d)](_0x9fe53f[_0x53e855(0x288)][0x0]),_0x25e692=_0x23f5dc[_0x53e855(0x21d)](_0x9fe53f['mutations'][0x0]);for(let _0x442cf3=_0x3c7854[_0x53e855(0xb1)]-0x1;_0x442cf3>=0x0;_0x442cf3--){const _0xc2313c={'id':_0x53e855(0x1e5),'params':{..._0x3c7854[_0x442cf3]}},_0x6a3616={'id':_0x53e855(0x1e5),'params':{..._0x3ac69d[_0x442cf3]}},_0x422856=this[_0x53e855(0xbe)]['transformMutation'](_0x2d1b53,_0xc2313c,!0x1),_0x5d855e=this[_0x53e855(0xbe)]['transformMutation'](_0x25e692,_0x6a3616,!0x1);if(_0x3d1fb0(_0x422856))throw _0x422856[_0x53e855(0x145)];if(_0x3d1fb0(_0x5d855e))throw _0x5d855e[_0x53e855(0x145)];_0x1c3d0c[_0x53e855(0x1bd)](_0x422856['m2Prime']['params']),_0x1f3ae1[_0x53e855(0x1bd)](_0x5d855e[_0x53e855(0x1fe)][_0x53e855(0x199)]),_0x2d1b53=_0x422856['m1Prime'],_0x25e692=_0x5d855e['m1Prime'];}_0xaf286e[_0x53e855(0x1a7)]({'undoCache':_0x1c3d0c,'redoCache':_0x1f3ae1});}[_0x267084(0x8d)](_0x30a692){const _0x4fd93c=_0x267084,{unitID:_0x100cf5}=_0x30a692,_0x13127f=this[_0x4fd93c(0x270)]['getRenderById'](_0x100cf5)[_0x4fd93c(0x239)](_0x4f8e82),_0x38f20a=_0x13127f['getActiveRange']();if(_0x38f20a==null)return;const _0x176782=[{'id':_0x4fd93c(0x1e5),'params':{'unitId':_0x30a692['unitID'],'actions':null,'textRanges':[_0x38f20a]}}],_0xcdd1a0=this['_transformService'][_0x4fd93c(0x231)](_0x30a692,_0x176782);if(!_0x10901e(_0xcdd1a0))throw _0xcdd1a0[_0x4fd93c(0x145)];const _0x1e3d75=_0xcdd1a0[_0x4fd93c(0x1fe)][0x0][_0x4fd93c(0x199)][_0x4fd93c(0x245)];Array[_0x4fd93c(0xc1)](_0x1e3d75)&&_0x1e3d75[_0x4fd93c(0xb1)]&&_0x13127f[_0x4fd93c(0x21f)](_0x1e3d75[0x0]);}};he=dn([lt(0x0,_0xe0c62a),lt(0x1,_0x16532d)],he);var Sn=Object['getOwnPropertyDescriptor'],mn=(_0x4108c7,_0x22b32a,_0x500762,_0x8b372e)=>{const _0x163d8b=_0x267084;for(var _0x4727b7=_0x8b372e>0x1?void 0x0:_0x8b372e?Sn(_0x22b32a,_0x500762):_0x22b32a,_0x127ae9=_0x4108c7[_0x163d8b(0xb1)]-0x1,_0x1f71d4;_0x127ae9>=0x0;_0x127ae9--)(_0x1f71d4=_0x4108c7[_0x127ae9])&&(_0x4727b7=_0x1f71d4(_0x4727b7)||_0x4727b7);return _0x4727b7;},Le=(_0x43ec71,_0x2e66df)=>(_0x2c5f72,_0x23b080)=>_0x2e66df(_0x2c5f72,_0x23b080,_0x43ec71);let ue=class{constructor(_0x5a1e46,_0x4f1fd5,_0x57b2f8){const _0x5233cf=_0x267084;this[_0x5233cf(0x298)]=_0x5a1e46,this[_0x5233cf(0xbe)]=_0x4f1fd5,this[_0x5233cf(0x24e)]=_0x57b2f8;}[_0x267084(0x72)](_0x1aac05){this['_transformHistoryAndStateStack'](_0x1aac05);}[_0x267084(0xf4)](_0x5d0322){const _0x4d3e8c=_0x267084,{unitID:_0x2e9522}=_0x5d0322,{collaboration:_0x5e3555}=this['_docStateChangeManagerService'][_0x4d3e8c(0x172)](_0x2e9522);if(_0x5e3555['length']===0x0)return _0x5d0322;let _0x31ef93=_0x23f5dc[_0x4d3e8c(0x21d)](_0x5d0322['mutations'][0x0]);for(let _0x53b2a9=0x0;_0x53b2a9<_0x5e3555[_0x4d3e8c(0xb1)];_0x53b2a9++){const _0x4b6675={'id':_0x4d3e8c(0x1e5),'params':{'unitId':_0x5e3555[_0x53b2a9][_0x4d3e8c(0x2aa)],..._0x5e3555[_0x53b2a9][_0x4d3e8c(0xba)]}},_0x50e888=this[_0x4d3e8c(0xbe)][_0x4d3e8c(0x15f)](_0x31ef93,_0x4b6675,!0x1);if(_0x3d1fb0(_0x50e888))throw _0x50e888[_0x4d3e8c(0x145)];_0x31ef93=_0x50e888['m1Prime'];}return{..._0x23f5dc[_0x4d3e8c(0x21d)](_0x5d0322),'mutations':[_0x31ef93]};}[_0x267084(0x230)](_0x232fbd){const _0x48b075=_0x267084,{unitID:_0x3ebd65}=_0x232fbd,{history:_0x27020f,collaboration:_0x2b6e7b}=this[_0x48b075(0x24e)]['getStateCache'](_0x3ebd65);if(_0x27020f[_0x48b075(0xb1)]===0x0&&_0x2b6e7b[_0x48b075(0xb1)]===0x0)return;const _0x52c7c1=[],_0x2ffaeb=[];let _0x653713=_0x23f5dc[_0x48b075(0x21d)](_0x232fbd[_0x48b075(0x288)][0x0]),_0x2a2830=_0x23f5dc[_0x48b075(0x21d)](_0x232fbd[_0x48b075(0x288)][0x0]);for(let _0x577f7d=_0x27020f[_0x48b075(0xb1)]-0x1;_0x577f7d>=0x0;_0x577f7d--){const _0x16e1b5={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x27020f[_0x577f7d]['unitId'],..._0x27020f[_0x577f7d][_0x48b075(0x95)]}},_0x23c52c={'id':_0x48b075(0x1e5),'params':{'unitId':_0x27020f[_0x577f7d][_0x48b075(0x2aa)],..._0x27020f[_0x577f7d][_0x48b075(0xba)]}},_0x6d5e1b=this[_0x48b075(0xbe)][_0x48b075(0x15f)](_0x653713,_0x16e1b5,!0x1),_0x24ceb8=this[_0x48b075(0xbe)][_0x48b075(0x15f)](_0x2a2830,_0x23c52c,!0x1);if(_0x3d1fb0(_0x6d5e1b))throw _0x6d5e1b[_0x48b075(0x145)];if(_0x3d1fb0(_0x24ceb8))throw _0x24ceb8[_0x48b075(0x145)];_0x52c7c1[_0x48b075(0x1bd)]({..._0x27020f[_0x577f7d],'undoState':_0x6d5e1b[_0x48b075(0x1fe)][_0x48b075(0x199)],'redoState':_0x24ceb8['m2Prime'][_0x48b075(0x199)]}),_0x653713=_0x6d5e1b[_0x48b075(0xa4)],_0x2a2830=_0x24ceb8[_0x48b075(0xa4)];}_0x653713=_0x23f5dc[_0x48b075(0x21d)](_0x232fbd[_0x48b075(0x288)][0x0]),_0x2a2830=_0x23f5dc['deepClone'](_0x232fbd['mutations'][0x0]);for(let _0x444454=_0x2b6e7b[_0x48b075(0xb1)]-0x1;_0x444454>=0x0;_0x444454--){const _0x173abb={'id':_0x48b075(0x1e5),'params':{'unitId':_0x2b6e7b[_0x444454][_0x48b075(0x2aa)],..._0x2b6e7b[_0x444454][_0x48b075(0x95)]}},_0x40fda0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2b6e7b[_0x444454][_0x48b075(0x2aa)],..._0x2b6e7b[_0x444454][_0x48b075(0xba)]}},_0x4cccc2=this[_0x48b075(0xbe)][_0x48b075(0x15f)](_0x653713,_0x173abb,!0x1),_0x190679=this[_0x48b075(0xbe)]['transformMutation'](_0x2a2830,_0x40fda0,!0x1);if(_0x3d1fb0(_0x4cccc2))throw _0x4cccc2[_0x48b075(0x145)];if(_0x3d1fb0(_0x190679))throw _0x190679[_0x48b075(0x145)];_0x2ffaeb[_0x48b075(0x1bd)]({..._0x2b6e7b[_0x444454],'undoState':_0x4cccc2[_0x48b075(0x1fe)]['params'],'redoState':_0x190679[_0x48b075(0x1fe)][_0x48b075(0x199)]}),_0x653713=_0x4cccc2['m1Prime'],_0x2a2830=_0x190679['m1Prime'];}this[_0x48b075(0x24e)][_0x48b075(0x73)](_0x3ebd65,{'history':_0x52c7c1,'collaboration':_0x2ffaeb});}};ue=mn([Le(0x0,_0x19d3ff(_0x4ab7f8)),Le(0x1,_0xe0c62a),Le(0x2,_0x19d3ff(_0x52621e))],ue);var In=Object[_0x267084(0x141)],fn=(_0x281ab6,_0x280f65,_0x31de4d,_0x553bbb)=>{const _0x30b8c6=_0x267084;for(var _0x21a524=_0x553bbb>0x1?void 0x0:_0x553bbb?In(_0x280f65,_0x31de4d):_0x280f65,_0x4fca47=_0x281ab6[_0x30b8c6(0xb1)]-0x1,_0x3e45dc;_0x4fca47>=0x0;_0x4fca47--)(_0x3e45dc=_0x281ab6[_0x4fca47])&&(_0x21a524=_0x3e45dc(_0x21a524)||_0x21a524);return _0x21a524;},ht=(_0x1275a3,_0x15b24b)=>(_0xf31a0a,_0xe655fd)=>_0x15b24b(_0xf31a0a,_0xe655fd,_0x1275a3);let de=class{constructor(_0x330aab,_0x33cfc9){const _0x417d38=_0x267084;this[_0x417d38(0x298)]=_0x330aab,this['_transformService']=_0x33cfc9;}['transformSelections'](_0x456795){const _0x4c40d0=_0x267084;var _0x8c6a6a;const _0x51de3d=this[_0x4c40d0(0x298)]['get'](_0x22e39b),_0x2982e2=(_0x8c6a6a=_0x51de3d[_0x4c40d0(0xd2)]())!=null?_0x8c6a6a:[];if(_0x2982e2['length']===0x0)return;const _0x7ec051=_0x456795[_0x4c40d0(0xf1)],_0x3ba17a=[{'id':_0x4c40d0(0x1e5),'params':{'unitId':_0x7ec051,'actions':null,'textRanges':_0x2982e2}}],_0x2c8244=this[_0x4c40d0(0xbe)]['transformMutationsWithChangeset'](_0x456795,_0x3ba17a);if(!_0x10901e(_0x2c8244))throw _0x2c8244[_0x4c40d0(0x145)];const _0x4663ba=_0x2c8244[_0x4c40d0(0x1fe)][0x0][_0x4c40d0(0x199)][_0x4c40d0(0x245)];Array[_0x4c40d0(0xc1)](_0x4663ba)&&_0x4663ba[_0x4c40d0(0xb1)]&&_0x51de3d[_0x4c40d0(0x1a6)](_0x4663ba,{'unitId':_0x7ec051,'subUnitId':_0x7ec051},!0x1);}};de=fn([ht(0x0,_0x19d3ff(_0x4ab7f8)),ht(0x1,_0xe0c62a)],de);var gn=Object['getOwnPropertyDescriptor'],vn=(_0x1844b4,_0x48d7d8,_0x8b91c,_0x5b059a)=>{for(var _0x521ce4=_0x5b059a>0x1?void 0x0:_0x5b059a?gn(_0x48d7d8,_0x8b91c):_0x48d7d8,_0x3c012=_0x1844b4['length']-0x1,_0x44be6e;_0x3c012>=0x0;_0x3c012--)(_0x44be6e=_0x1844b4[_0x3c012])&&(_0x521ce4=_0x44be6e(_0x521ce4)||_0x521ce4);return _0x521ce4;},U=(_0x41ef16,_0x1130ca)=>(_0x5d7da3,_0x32e702)=>_0x1130ca(_0x5d7da3,_0x32e702,_0x41ef16);let Se=class extends _0x15b4c2{constructor(_0x187c71,_0x3d35b0,_0x4cf69f,_0xf0241c,_0x2820ac,_0x2776c2,_0x4a0ee0,_0x406f61){const _0x3557d9=_0x267084;super(),_(this,_0x3557d9(0x267),new _0x1c42a0(_0x393e49['NOT_COLLAB'])),(this[_0x3557d9(0x24e)]=_0x187c71,this['_collaborationController']=_0x3d35b0,this[_0x3557d9(0x1f2)]=_0x4cf69f,this[_0x3557d9(0x276)]=_0xf0241c,this[_0x3557d9(0x91)]=_0x2820ac,this[_0x3557d9(0x294)]=_0x2776c2,this[_0x3557d9(0x268)]=_0x4a0ee0,this[_0x3557d9(0x220)]=_0x406f61,this[_0x3557d9(0x200)]());}['_initEntityListener'](){const _0x4dc1a3=_0x267084;this[_0x4dc1a3(0x134)](this[_0x4dc1a3(0x1da)][_0x4dc1a3(0xe8)][_0x4dc1a3(0x116)](_0x55a40d=>{const _0x5e475e=_0x4dc1a3,_0x1c0fa5=this[_0x5e475e(0x24e)][_0x5e475e(0x1ff)]['subscribe'](_0x17c137=>{const _0x4540bb=_0x5e475e;if(_0x17c137==null)return;const {unitId:_0x584d3f,redoState:_0x4a3ad4,commandId:_0x3b08ad}=_0x17c137;if(_0x584d3f!==_0x55a40d[_0x4540bb(0xf1)])return;const _0x496a19={'id':_0x3b08ad,'type':_0x3a3187[_0x4540bb(0x214)],'params':{'unitId':_0x584d3f,'actions':_0x4a3ad4[_0x4540bb(0x206)],'textRanges':null}};_0x55a40d['onLocalMutation'](_0x496a19);});if(_0x55a40d[_0x5e475e(0x134)](_0x1c0fa5),_0x55a40d instanceof _0xbad4e5){const _0x5702e0={'onTransformIME':_0x346249=>this[_0x5e475e(0x1f2)][_0x5e475e(0x1cf)](_0x346249),'onTransformState':_0x4dd410=>this[_0x5e475e(0x276)][_0x5e475e(0x72)](_0x4dd410),'onTransformSelections':_0x139034=>this[_0x5e475e(0x91)][_0x5e475e(0x7d)](_0x139034),'onSyncEditingCollabCursor':_0x55ed8b=>this[_0x5e475e(0x294)][_0x5e475e(0x247)](_0x55ed8b),'onTransformRemoteChangesetByIMECache':_0x243763=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x243763),'onTransformRemoteChangesetByStateCache':_0x2981c4=>this[_0x5e475e(0x276)][_0x5e475e(0xf4)](_0x2981c4)};_0x55a40d['addHandlerCallback'](_0x5702e0);}}));}};Se=vn([U(0x0,_0x19d3ff(_0x52621e)),U(0x1,_0x19d3ff(_0x20f9ac)),U(0x2,_0x19d3ff(he)),U(0x3,_0x19d3ff(ue)),U(0x4,_0x19d3ff(de)),U(0x5,_0x19d3ff(ze)),U(0x6,_0x238f17),U(0x7,_0x19d3ff(_0x392a0b))],Se);var Z=(_0x255dd1=>(_0x255dd1[_0x255dd1[_0x267084(0x16c)]=0x0]=_0x267084(0x16c),_0x255dd1[_0x255dd1['OK']=0x1]='OK',_0x255dd1[_0x255dd1[_0x267084(0x1fa)]=0x2]=_0x267084(0x1fa),_0x255dd1[_0x255dd1[_0x267084(0x259)]=0x3]=_0x267084(0x259),_0x255dd1[_0x255dd1[_0x267084(0x1c5)]=0x4]=_0x267084(0x1c5),_0x255dd1[_0x255dd1[_0x267084(0x25b)]=0x5]=_0x267084(0x25b),_0x255dd1[_0x255dd1[_0x267084(0xa7)]=0x6]=_0x267084(0xa7),_0x255dd1[_0x255dd1[_0x267084(0x18e)]=0x7]='INVALID_ARGUMENT',_0x255dd1[_0x255dd1[_0x267084(0x201)]=0x8]=_0x267084(0x201),_0x255dd1[_0x255dd1[_0x267084(0x10f)]=0x9]=_0x267084(0x10f),_0x255dd1[_0x255dd1[_0x267084(0xef)]=0xa]=_0x267084(0xef),_0x255dd1[_0x255dd1[_0x267084(0x234)]=0xb]=_0x267084(0x234),_0x255dd1[_0x255dd1[_0x267084(0x1b5)]=0xc]=_0x267084(0x1b5),_0x255dd1[_0x255dd1[_0x267084(0xd4)]=0xd]=_0x267084(0xd4),_0x255dd1[_0x255dd1[_0x267084(0xb9)]=0xe]=_0x267084(0xb9),_0x255dd1[_0x255dd1['AUTHORIZE_CODE_ILLEGAL']=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x255dd1[_0x255dd1[_0x267084(0x180)]=0x10]=_0x267084(0x180),_0x255dd1[_0x255dd1['CURRENT_STATUS_CANNOT_OPERATE']=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x255dd1[_0x255dd1[_0x267084(0x217)]=0x65]='ERROR_AGAIN',_0x255dd1[_0x255dd1[_0x267084(0x7c)]=0xc9]='USER_NOT_FOUND',_0x255dd1[_0x255dd1[_0x267084(0x111)]=0xca]=_0x267084(0x111),_0x255dd1[_0x255dd1['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x267084(0x14d),_0x255dd1[_0x255dd1[_0x267084(0x237)]=0x1771]=_0x267084(0x237),_0x255dd1[_0x255dd1[_0x267084(0xd3)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x255dd1[_0x255dd1['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x267084(0x287),_0x255dd1[_0x255dd1[_0x267084(0x293)]=0x1b59]='APPLY_REJECT',_0x255dd1[_0x255dd1[_0x267084(0x1e7)]=0x1b5a]=_0x267084(0x1e7),_0x255dd1[_0x255dd1[_0x267084(0x2ac)]=0x1b5b]=_0x267084(0x2ac),_0x255dd1[_0x255dd1[_0x267084(0x257)]=0x1b5c]=_0x267084(0x257),_0x255dd1[_0x255dd1['APPLY_DUPLICATED']=0x1b5d]=_0x267084(0x1f6),_0x255dd1[_0x255dd1[_0x267084(0x120)]=0x1f41]=_0x267084(0x120),_0x255dd1[_0x255dd1[_0x267084(0x166)]=0x2329]=_0x267084(0x166),_0x255dd1[_0x255dd1['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x267084(0xaf),_0x255dd1[_0x255dd1[_0x267084(0x1ee)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x255dd1[_0x255dd1[_0x267084(0x18b)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x255dd1[_0x255dd1[_0x267084(0xf5)]=0x232d]=_0x267084(0xf5),_0x255dd1[_0x255dd1[_0x267084(0xad)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x255dd1[_0x255dd1[_0x267084(0xd5)]=0x2712]=_0x267084(0xd5),_0x255dd1[_0x255dd1['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x267084(0x23d),_0x255dd1[_0x255dd1[_0x267084(0xdf)]=0x2714]=_0x267084(0xdf),_0x255dd1[_0x255dd1[_0x267084(0x1e4)]=0x271a]=_0x267084(0x1e4),_0x255dd1[_0x255dd1[_0x267084(0x147)]=0x271b]=_0x267084(0x147),_0x255dd1[_0x255dd1[_0x267084(0x12b)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x255dd1[_0x255dd1['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x267084(0x256),_0x255dd1[_0x255dd1['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x267084(0x175),_0x255dd1[_0x255dd1[_0x267084(0x101)]=0x271f]=_0x267084(0x101),_0x255dd1[_0x255dd1[_0x267084(0x15b)]=0x2720]=_0x267084(0x15b),_0x255dd1[_0x255dd1['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x255dd1[_0x255dd1['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x267084(0x27e),_0x255dd1[_0x255dd1[_0x267084(0x93)]=0x2ee2]=_0x267084(0x93),_0x255dd1[_0x255dd1[_0x267084(0x8f)]=0x2ee3]=_0x267084(0x8f),_0x255dd1[_0x255dd1[_0x267084(0x18c)]=0x2ee4]=_0x267084(0x18c),_0x255dd1[_0x255dd1[_0x267084(0x99)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x255dd1[_0x255dd1['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x267084(0x1d4),_0x255dd1[_0x255dd1[_0x267084(0x13b)]=0x32ca]=_0x267084(0x13b),_0x255dd1[_0x255dd1['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x267084(0x9b),_0x255dd1[_0x255dd1[_0x267084(0x27f)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x255dd1[_0x255dd1[_0x267084(0xee)]=0x36b2]=_0x267084(0xee),_0x255dd1[_0x255dd1[_0x267084(0x2b1)]=0x36b3]=_0x267084(0x2b1),_0x255dd1[_0x255dd1[_0x267084(0x9d)]=0x36b4]=_0x267084(0x9d),_0x255dd1[_0x255dd1[_0x267084(0x1f4)]=0x3715]=_0x267084(0x1f4),_0x255dd1[_0x255dd1[_0x267084(0xff)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x255dd1[_0x255dd1[_0x267084(0xb4)]=0x3717]=_0x267084(0xb4),_0x255dd1[_0x255dd1[_0x267084(0x1b2)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x255dd1[_0x255dd1[_0x267084(0x148)]=0x3a99]=_0x267084(0x148),_0x255dd1[_0x255dd1['REDEMPTION_CODE_INACTIVE']=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x255dd1[_0x255dd1[_0x267084(0x1d1)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x255dd1[_0x255dd1[_0x267084(0x92)]=0x3a9c]=_0x267084(0x92),_0x255dd1[_0x255dd1[_0x267084(0x104)]=0x3a9d]=_0x267084(0x104),_0x255dd1[_0x255dd1[_0x267084(0x252)]=0x3a9e]=_0x267084(0x252),_0x255dd1[_0x255dd1[_0x267084(0x88)]=0x3a9f]=_0x267084(0x88),_0x255dd1[_0x255dd1[_0x267084(0x1fb)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x255dd1[_0x255dd1[_0x267084(0x155)]=-0x1]='UNRECOGNIZED',_0x255dd1))(Z||{});function En(_0x5139fe){const _0x38e943=_0x267084;var _0x531ca7,_0x4e9f1c;const _0x18c78b=(_0x531ca7=_0x5139fe[_0x38e943(0xda)])==null?void 0x0:_0x531ca7[_0x38e943(0x13c)],_0x5d1514=((_0x4e9f1c=_0x5139fe[_0x38e943(0xda)])==null?void 0x0:_0x4e9f1c[_0x38e943(0xb8)])||0x0;return _0x18c78b===_0x5d4131[_0x38e943(0x28c)]&&_0x5d1514>0x0;}function pn(_0x34a91f){const _0x4fdb6a=_0x267084;return _0x34a91f['functionsExecutedState']===_0x1d84bd[_0x4fdb6a(0x218)];}var On=Object[_0x267084(0x141)],Tn=(_0x2b7050,_0x447dc3,_0x4bb580,_0x4f39d8)=>{const _0x710fb9=_0x267084;for(var _0x4620f2=_0x4f39d8>0x1?void 0x0:_0x4f39d8?On(_0x447dc3,_0x4bb580):_0x447dc3,_0x266ef9=_0x2b7050[_0x710fb9(0xb1)]-0x1,_0x271375;_0x266ef9>=0x0;_0x266ef9--)(_0x271375=_0x2b7050[_0x266ef9])&&(_0x4620f2=_0x271375(_0x4620f2)||_0x4620f2);return _0x4620f2;},P=(_0x3f3386,_0x2a3493)=>(_0x12724a,_0x57313f)=>_0x2a3493(_0x12724a,_0x57313f,_0x3f3386);const Cn=_0x267084(0xd1),Rn=_0x267084(0x246),Dn=_0x267084(0x139);let me=class extends _0x15b4c2{constructor(_0x10d67f,_0x4d4f88,_0x3186e7,_0x280f21,_0x2a1090,_0x588a66,_0xbd9835){const _0x21d4ca=_0x267084;super(),_(this,_0x21d4ca(0xc0),null),_(this,_0x21d4ca(0x10c),0x0),_(this,_0x21d4ca(0x26c),0x0),_(this,_0x21d4ca(0x11a),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x21d4ca(0x268)]=_0x10d67f,this[_0x21d4ca(0x106)]=_0x4d4f88,this[_0x21d4ca(0xb5)]=_0x3186e7,this[_0x21d4ca(0x109)]=_0x280f21,this['_univerInstanceService']=_0x2a1090,this['_logService']=_0x588a66,this[_0x21d4ca(0x220)]=_0xbd9835,this['_initCommandInterceptor']());}[_0x267084(0x76)](){const _0x16dac9=_0x267084;this[_0x16dac9(0x134)](this[_0x16dac9(0x106)]['beforeCommandExecuted']((_0x3f44ec,_0x2a5a90)=>{const _0x358a32=_0x16dac9;var _0x539a24;if(_0x3f44ec['id']!==_0xce794f['id'])return;const _0xfda5d=_0x3f44ec[_0x358a32(0x199)];if(!this['_hasFormulaInDirtyRanges']((_0x539a24=_0xfda5d[_0x358a32(0xd8)])!=null?_0x539a24:[]))return;if(!this[_0x358a32(0x78)]())throw this[_0x358a32(0x284)](_0x3f44ec,_0x2a5a90),this[_0x358a32(0x149)](),new _0x53987c();})),this[_0x16dac9(0x134)](this[_0x16dac9(0x106)][_0x16dac9(0xf0)]((_0x4bda64,_0x439c92)=>{const _0x421750=_0x16dac9;if(_0x4bda64['id']!==_0x15b422['id'])return;const _0x4e2b84=_0x4bda64[_0x421750(0x199)];if(En(_0x4e2b84)){const _0x5546e7=_0x3add1d();this['_taskIds']['push'](_0x5546e7),this[_0x421750(0x1e9)](_0x5546e7);}else{if(pn(_0x4e2b84)&&this['_taskIds'][_0x421750(0xb1)]>0x0){const _0x55602c=this[_0x421750(0x11a)][_0x421750(0x23f)]();this['_releaseCalculationLimit'](_0x55602c);}}}));}[_0x267084(0x18a)](){const _0x1fbb8c=_0x267084;super['dispose'](),this[_0x1fbb8c(0x1d7)](),this[_0x1fbb8c(0x11a)]=[],this[_0x1fbb8c(0x26c)]=0x0,this[_0x1fbb8c(0x10c)]=0x0,this[_0x1fbb8c(0x128)]=0x0;}async[_0x267084(0x284)](_0x348ccb,_0x386b74){const _0x339dec=_0x267084;for(let _0x1ede38=0x0;_0x1ede38<0x1e;_0x1ede38++)try{if(await this[_0x339dec(0x138)](),this['_checkCalculationAvailable']()){this[_0x339dec(0x194)](_0x348ccb,_0x386b74),this[_0x339dec(0x268)][_0x339dec(0x16a)]({'content':this[_0x339dec(0x220)]['t'](_0x339dec(0x2a5)),'type':_0x3d9040[_0x339dec(0x83)]});return;}await new Promise(_0x5b15da=>{const _0x10ff8d=_0x339dec;this[_0x10ff8d(0xc0)]=window[_0x10ff8d(0x183)](_0x5b15da,0x3e8);});}catch(_0x3f4ee5){this[_0x339dec(0x84)][_0x339dec(0x145)](_0x3f4ee5);}this['_messageService'][_0x339dec(0x16a)]({'content':this['_localeService']['t'](_0x339dec(0x2a6)),'type':_0x3d9040[_0x339dec(0x198)]});}['_applyCommand'](_0x4bd23e,_0x17068c){const _0x2bf613=_0x267084;try{this[_0x2bf613(0x106)][_0x2bf613(0x1db)](_0x4bd23e['id'],_0x4bd23e['params'],_0x17068c);}catch(_0x585455){this[_0x2bf613(0x84)][_0x2bf613(0x145)](_0x585455);}}[_0x267084(0xe0)](_0x169953,_0x24f730){const _0x4fc658=_0x267084;_0x24f730<this[_0x4fc658(0x128)]||(this[_0x4fc658(0x128)]=_0x24f730,this[_0x4fc658(0x10c)]=Number[_0x4fc658(0x22f)](_0x169953['maxFormulaLimit']),this[_0x4fc658(0x26c)]=Number[_0x4fc658(0x22f)](_0x169953[_0x4fc658(0x291)]));}async[_0x267084(0x1e9)](_0x4986a3){const _0x476952=_0x267084;var _0x33caef,_0x2223ad;const _0x2194ca=Date[_0x476952(0x18f)]();try{const _0x3968dc=((_0x33caef=this[_0x476952(0xb5)][_0x476952(0x75)](_0x58fdc2))==null?void 0x0:_0x33caef['startFormulaLimitUrl'])||Rn,_0x167f5d=(await this['_httpService'][_0x476952(0x9c)](_0x3968dc,{'body':JSON[_0x476952(0x20d)]({'taskId':_0x4986a3})}))[_0x476952(0x165)];if(((_0x2223ad=_0x167f5d[_0x476952(0x145)])==null?void 0x0:_0x2223ad[_0x476952(0x219)])!==Z['OK'])return;this[_0x476952(0xe0)](_0x167f5d['limitInfo'],_0x2194ca);}catch(_0x1bec0a){this[_0x476952(0x84)][_0x476952(0x145)](_0x1bec0a);}}async[_0x267084(0x138)](_0x5c9d89){const _0x4f1901=_0x267084;var _0x5bf9fc,_0x2190fb;const _0x28aadf=Date['now']();try{const _0x508418=((_0x5bf9fc=this['_configService']['getConfig'](_0x58fdc2))==null?void 0x0:_0x5bf9fc[_0x4f1901(0x23e)])||Cn,_0x712098=_0x5c9d89?_0x508418+_0x4f1901(0x89)+encodeURIComponent(_0x5c9d89):_0x508418,_0x298f1c=(await this[_0x4f1901(0x109)]['get'](_0x712098))[_0x4f1901(0x165)];if(((_0x2190fb=_0x298f1c['error'])==null?void 0x0:_0x2190fb[_0x4f1901(0x219)])!==Z['OK'])return;this[_0x4f1901(0xe0)](_0x298f1c['limitInfo'],_0x28aadf);}catch(_0x5b94e1){this[_0x4f1901(0x84)][_0x4f1901(0x145)](_0x5b94e1);}}async['_releaseCalculationLimit'](_0x1ba483){const _0x26f6a8=_0x267084;var _0xa41230,_0x389d02;const _0x2de188=Date[_0x26f6a8(0x18f)]();try{const _0x7c11e7=((_0xa41230=this[_0x26f6a8(0xb5)]['getConfig'](_0x58fdc2))==null?void 0x0:_0xa41230[_0x26f6a8(0x168)])||Dn,_0x4139cd=(await this['_httpService'][_0x26f6a8(0x9c)](_0x7c11e7,{'body':JSON[_0x26f6a8(0x20d)]({'taskId':_0x1ba483})}))[_0x26f6a8(0x165)];if(((_0x389d02=_0x4139cd[_0x26f6a8(0x145)])==null?void 0x0:_0x389d02['code'])!==Z['OK'])return;this[_0x26f6a8(0xe0)](_0x4139cd[_0x26f6a8(0x27a)],_0x2de188);}catch(_0x2ee36c){this[_0x26f6a8(0x84)]['error'](_0x2ee36c);}}[_0x267084(0x78)](){const _0x13e220=_0x267084;return this[_0x13e220(0x10c)]===0x0?!0x0:this[_0x13e220(0x10c)]-this['_currentUsage']>0x0;}[_0x267084(0x1d7)](){const _0x2cb845=_0x267084;this[_0x2cb845(0xc0)]&&(clearTimeout(this['_pollingInterval']),this['_pollingInterval']=null);}[_0x267084(0x149)](){const _0x295066=_0x267084;this[_0x295066(0x268)][_0x295066(0x16a)]({'content':this[_0x295066(0x220)]['t'](_0x295066(0x14a)),'type':_0x3d9040['Loading']});}['_hasFormulaInDirtyRanges'](_0x53cd57){const _0x2ae532=_0x267084;for(const _0x289b42 of _0x53cd57){const {unitId:_0x1b359d,sheetId:_0x4d3b33,range:_0x3db8a6}=_0x289b42,_0x3a8f9f=this[_0x2ae532(0x289)][_0x2ae532(0x1df)](_0x1b359d);if(!_0x3a8f9f)continue;const _0x3aaf20=_0x3a8f9f[_0x2ae532(0x1c7)](_0x4d3b33);if(!_0x3aaf20)continue;const _0x44d970=_0x3aaf20['getCellMatrix']();for(let _0x7aefb9=_0x3db8a6[_0x2ae532(0x7a)];_0x7aefb9<=_0x3db8a6['endRow'];_0x7aefb9++)for(let _0x2d2e85=_0x3db8a6[_0x2ae532(0xea)];_0x2d2e85<=_0x3db8a6[_0x2ae532(0x1e6)];_0x2d2e85++){const _0x4c2a83=_0x44d970[_0x2ae532(0x1d8)](_0x7aefb9,_0x2d2e85);if(_0x4c2a83&&(_0x39dc69(_0x4c2a83['f'])||_0x3789a8(_0x4c2a83['si'])))return!0x0;}}return!0x1;}};me=Tn([P(0x0,_0x19d3ff(_0x238f17)),P(0x1,_0x1da808),P(0x2,_0x5d7afb),P(0x3,_0x19d3ff(_0x3d2675)),P(0x4,_0x121c1a),P(0x5,_0x35d33d),P(0x6,_0x19d3ff(_0x392a0b))],me);var bn=Object[_0x267084(0x141)],Nn=(_0x40d782,_0x330fca,_0x3b634b,_0x367a35)=>{const _0x3533d5=_0x267084;for(var _0x4d40fb=_0x367a35>0x1?void 0x0:_0x367a35?bn(_0x330fca,_0x3b634b):_0x330fca,_0x125b64=_0x40d782[_0x3533d5(0xb1)]-0x1,_0x59fd8f;_0x125b64>=0x0;_0x125b64--)(_0x59fd8f=_0x40d782[_0x125b64])&&(_0x4d40fb=_0x59fd8f(_0x4d40fb)||_0x4d40fb);return _0x4d40fb;},Ue=(_0x30ee86,_0x4f240c)=>(_0x46b97b,_0x3b684e)=>_0x4f240c(_0x46b97b,_0x3b684e,_0x30ee86);let He=class extends _0x15b4c2{constructor(_0x4f52ba,_0x5c792a,_0x5c32c1){const _0x18b7e4=_0x267084;super(),_(this,'_cachedData',new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x18b7e4(0x1f9),!0x1),(this[_0x18b7e4(0xb5)]=_0x4f52ba,this[_0x18b7e4(0x87)]=_0x5c792a,this[_0x18b7e4(0x1af)]=_0x5c32c1);}[_0x267084(0x1ab)](){const _0x146748=_0x267084;this[_0x146748(0x1f9)]=!0x0;}[_0x267084(0x277)](){this['_disabled']=!0x1;}get[_0x267084(0x171)](){const _0x48580a=_0x267084;return this[_0x48580a(0x249)];}[_0x267084(0x18a)](){const _0x22ae06=_0x267084;this[_0x22ae06(0x20c)]()[_0x22ae06(0x295)](()=>super[_0x22ae06(0x18a)]());}async[_0x267084(0x273)](_0x36374a){const _0x5a2777=_0x267084;return this[_0x5a2777(0x1f9)]?null:this['_localStorageService'][_0x5a2777(0x21a)](_0x3df3e5(_0x36374a));}async[_0x267084(0xe5)](_0x340615,_0x185ea5){const _0x13fc40=_0x267084;return!!this[_0x13fc40(0x87)]['setItem'](_0x340615,_0x185ea5);}[_0x267084(0xb2)](_0x2cc243,_0x5ebe30,_0x36ca12,_0x3481e5){const _0x269258=_0x267084,_0x2eb710=this['_revisionService'][_0x269258(0x28a)](_0x2cc243);this[_0x269258(0x26b)][_0x269258(0x212)](_0x2cc243,{'unitID':_0x2cc243,'type':_0x5ebe30,'awaitingChangeset':_0x36ca12,'mutations':_0x3481e5,'rev':_0x2eb710}),this[_0x269258(0x249)][_0x269258(0x2b0)](_0x2cc243)||this['_scheduleSaving'](_0x2cc243);}[_0x267084(0x27d)](_0x28741f){const _0x2edd70=_0x267084,_0x3aba8e=this[_0x2edd70(0xb7)]();_0x3aba8e===0x0?this['_saveCache'](_0x28741f):this['_saveTaskMap'][_0x2edd70(0x212)](_0x28741f,setTimeout(()=>this[_0x2edd70(0x1aa)](_0x28741f),_0x3aba8e));}[_0x267084(0xb7)](){const _0x1e7049=_0x267084;var _0x1b95ba;return(_0x1b95ba=this[_0x1e7049(0xb5)][_0x1e7049(0x75)](_0x5a7b94))!=null?_0x1b95ba:_0x3119b9;}['_saveCache'](_0x1fb147){const _0x4816bd=_0x267084,_0x8dbd91=this[_0x4816bd(0x249)][_0x4816bd(0xf7)](_0x1fb147);return _0x8dbd91!==void 0x0&&window[_0x4816bd(0x221)](_0x8dbd91),this[_0x4816bd(0x87)][_0x4816bd(0x161)](_0x3df3e5(_0x1fb147),this[_0x4816bd(0x26b)][_0x4816bd(0xf7)](_0x1fb147))['then'](()=>this['_saveTaskMap'][_0x4816bd(0x74)](_0x1fb147));}async[_0x267084(0x20c)](){const _0x14e84b=_0x267084,_0x2a9e2e=[];this[_0x14e84b(0x249)]['forEach']((_0x5eaf8f,_0x280558)=>{const _0x1f1eb3=_0x14e84b;window[_0x1f1eb3(0x221)](_0x5eaf8f),_0x2a9e2e['push'](this[_0x1f1eb3(0x1aa)](_0x280558)['then'](()=>{const _0x3a9168=_0x1f1eb3;this[_0x3a9168(0x249)][_0x3a9168(0x74)](_0x280558);}));}),await Promise[_0x14e84b(0xeb)](_0x2a9e2e);}};He=Nn([Ue(0x0,_0x5d7afb),Ue(0x1,_0x5e6485),Ue(0x2,_0x19d3ff(_0x1e9c45))],He);class Ln extends _0x2699b6{constructor(){const _0x16518c=_0x267084;super(),_(this,'urlChange$'),this[_0x16518c(0x152)]=_0x46507c(window,_0x16518c(0xd0))[_0x16518c(0x162)](_0xae10c0(this[_0x16518c(0x1ef)]),_0x546268(0x1),_0x2ff921(void 0x0));}[_0x267084(0x28b)](_0x59799f,_0x1c3eab,_0x59376e=!0x1){const _0x26c508=_0x267084,_0x3c282f=new URL(window[_0x26c508(0x123)][_0x26c508(0x1bf)]);_0x3c282f['searchParams']['set'](_0x59799f,_0x1c3eab),_0x59376e?window[_0x26c508(0x2a7)][_0x26c508(0x185)]('','',_0x3c282f['toString']()):window['history'][_0x26c508(0x25a)]('','',_0x3c282f[_0x26c508(0x23c)]());}['removeParam'](_0x4da2be,_0x5cc3af=!0x1){const _0x2d7878=_0x267084,_0x1ed892=new URL(window[_0x2d7878(0x123)][_0x2d7878(0x1bf)]);_0x1ed892[_0x2d7878(0x16b)][_0x2d7878(0x74)](_0x4da2be),_0x5cc3af?window[_0x2d7878(0x2a7)][_0x2d7878(0x185)]('','',_0x1ed892[_0x2d7878(0x23c)]()):window[_0x2d7878(0x2a7)]['pushState']('','',_0x1ed892[_0x2d7878(0x23c)]());}[_0x267084(0x118)](_0x127478){const _0x132f49=_0x267084;var _0xdac0de;return(_0xdac0de=new URL(window[_0x132f49(0x123)][_0x132f49(0x1bf)])[_0x132f49(0x16b)][_0x132f49(0xf7)](_0x127478))!=null?_0xdac0de:void 0x0;}}var Un=Object[_0x267084(0x28e)],Mn=Object['getOwnPropertyDescriptor'],An=(_0x596ec0,_0x28f231,_0x4c7af6)=>_0x28f231 in _0x596ec0?Un(_0x596ec0,_0x28f231,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c7af6}):_0x596ec0[_0x28f231]=_0x4c7af6,Pn=(_0x55caf4,_0x54ced,_0x51c024,_0x50d7cb)=>{const _0x5b994f=_0x267084;for(var _0x48449b=_0x50d7cb>0x1?void 0x0:_0x50d7cb?Mn(_0x54ced,_0x51c024):_0x54ced,_0x2a5ab2=_0x55caf4[_0x5b994f(0xb1)]-0x1,_0x2704b1;_0x2a5ab2>=0x0;_0x2a5ab2--)(_0x2704b1=_0x55caf4[_0x2a5ab2])&&(_0x48449b=_0x2704b1(_0x48449b)||_0x48449b);return _0x48449b;},Me=(_0x1b6bad,_0x56b453)=>(_0x33780e,_0x1be7c5)=>_0x56b453(_0x33780e,_0x1be7c5,_0x1b6bad),wn=(_0x24a577,_0x5c2682,_0x26aabc)=>An(_0x24a577,_0x5c2682+'',_0x26aabc);const yn=_0x267084(0x1a0);let Ye=class extends _0x75b443{constructor(_0xdde3dc=_t,_0x552611,_0x32bd92,_0x5eb31f){const _0x4f7ca9=_0x267084;super(),this[_0x4f7ca9(0x178)]=_0xdde3dc,this[_0x4f7ca9(0x270)]=_0x552611,this['_injector']=_0x32bd92,this[_0x4f7ca9(0xb5)]=_0x5eb31f;const {..._0x25c7d0}=_0x4bef96({},_t,this[_0x4f7ca9(0x178)]);this[_0x4f7ca9(0xb5)][_0x4f7ca9(0x110)](hn,_0x25c7d0);}[_0x267084(0x1dd)](){const _0x13de5a=_0x267084;this['_registerDependencies'](),this[_0x13de5a(0x25f)]();}[_0x267084(0x2b5)](){this['_registerRenderDependencies']();}[_0x267084(0xe9)](){const _0x3a669c=_0x267084;var _0x152379;const _0x31d814=[[Ke],[me],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x516427,{'useClass':_0x29fc86}],[_0x1d4097,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x3a669c(0x178)][_0x3a669c(0x22a)]&&_0x31d814[_0x3a669c(0x224)]([le]),_0x52fbf5(this[_0x3a669c(0x298)],_0x1b8195(_0x31d814,(_0x152379=this['_config'])==null?void 0x0:_0x152379[_0x3a669c(0x227)]));}[_0x267084(0x2a8)](){const _0x4c8465=_0x267084;this[_0x4c8465(0x134)](this[_0x4c8465(0x270)][_0x4c8465(0x1c1)](_0x24166e[_0x4c8465(0x17b)],[Fe])),this[_0x4c8465(0x134)](this[_0x4c8465(0x270)][_0x4c8465(0x1c1)](_0x24166e['UNIVER_SHEET'],[ke]));}['_initDependencies'](){const _0x31fb8f=_0x267084;_0x1253a5(this[_0x31fb8f(0x298)],[[H],[ae],[Se],[_e],[ce],[me]]),this['_config']['enableFrontendLog']&&_0x1253a5(this[_0x31fb8f(0x298)],[[le]]);}};wn(Ye,_0x267084(0x8b),yn),Ye=Pn([_0x508d08(_0x32160c),Me(0x1,_0x16532d),Me(0x2,_0x19d3ff(_0x4ab7f8)),Me(0x3,_0x5d7afb)],Ye);var $n=Object[_0x267084(0x141)],xn=(_0x21fc68,_0x258c24,_0x329845,_0x3e16e1)=>{const _0x3878f5=_0x267084;for(var _0x1b4af3=_0x3e16e1>0x1?void 0x0:_0x3e16e1?$n(_0x258c24,_0x329845):_0x258c24,_0x2ec3bf=_0x21fc68[_0x3878f5(0xb1)]-0x1,_0x509a89;_0x2ec3bf>=0x0;_0x2ec3bf--)(_0x509a89=_0x21fc68[_0x2ec3bf])&&(_0x1b4af3=_0x509a89(_0x1b4af3)||_0x1b4af3);return _0x1b4af3;},J=(_0x4b43a8,_0xa07a40)=>(_0xa7d930,_0x5e17b7)=>_0xa07a40(_0xa7d930,_0x5e17b7,_0x4b43a8);let ut=class extends _0x120512{constructor(_0x1908e4,_0x2212d7,_0x568ee7,_0x53113c,_0x35fcb8){super(_0x1908e4,_0x2212d7,_0x568ee7,_0x53113c,_0x35fcb8);}async['createSocket'](_0x39db82){const _0xe85f29=_0x267084,_0x3dbc54=await this[_0xe85f29(0x279)](),_0xcf2599=this[_0xe85f29(0x1c0)](_0x39db82,_0x3dbc54);return this['_doCreateSocket'](_0xcf2599);}[_0x267084(0x1c0)](_0x1bea57,_0x3fb7d7){const _0x8700f=_0x267084,_0x463cb4=typeof window>'u'?new URL(_0x1bea57):new URL(_0x1bea57,window['location'][_0x8700f(0x272)]);_0x463cb4[_0x8700f(0x16b)][_0x8700f(0x212)](_0x8700f(0x14f),_0x3fb7d7);const _0x27eb02=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x8700f(0x123)][_0x8700f(0x235)]);return _0x27eb02[_0x8700f(0xf7)](_0x8700f(0x1ae))&&_0x463cb4[_0x8700f(0x16b)]['set'](_0x8700f(0x1ae),_0x27eb02[_0x8700f(0xf7)](_0x8700f(0x1ae))),_0x463cb4[_0x8700f(0x23c)]();}async[_0x267084(0x279)](){const _0x502eaf=_0x267084;var _0x1eeabc,_0xef155e,_0x24d67e;const _0x63cf1a=this[_0x502eaf(0xb5)][_0x502eaf(0x75)](_0x58fdc2),_0x3be159=(_0x1eeabc=_0x63cf1a==null?void 0x0:_0x63cf1a[_0x502eaf(0x1c6)])!=null?_0x1eeabc:_0x366c2b;return(_0x24d67e=(_0xef155e=(await this[_0x502eaf(0x109)][_0x502eaf(0xf7)](_0x3be159,{'headers':{'Content-Type':_0x502eaf(0x25d)}}))[_0x502eaf(0x165)])==null?void 0x0:_0xef155e[_0x502eaf(0x105)])!=null?_0x24d67e:'';}};ut=xn([J(0x0,_0x19d3ff(_0x4ab7f8)),J(0x1,_0x19d3ff(_0x3d2675)),J(0x2,_0x5d7afb),J(0x3,_0x35d33d),J(0x4,_0x5e2acb)],ut);var Bn=Object[_0x267084(0x141)],Fn=(_0x54ee36,_0x2a71b7,_0x29e43c,_0x187f03)=>{const _0x5299da=_0x267084;for(var _0x3056c7=_0x187f03>0x1?void 0x0:_0x187f03?Bn(_0x2a71b7,_0x29e43c):_0x2a71b7,_0x33f015=_0x54ee36[_0x5299da(0xb1)]-0x1,_0x42a5a9;_0x33f015>=0x0;_0x33f015--)(_0x42a5a9=_0x54ee36[_0x33f015])&&(_0x3056c7=_0x42a5a9(_0x3056c7)||_0x3056c7);return _0x3056c7;},Ae=(_0x247fcb,_0x1e979f)=>(_0x3dfd2a,_0x69794)=>_0x1e979f(_0x3dfd2a,_0x69794,_0x247fcb);let dt=class extends _0x15b4c2{constructor(_0xe50115,_0x3cc441,_0x7d9aa5){const _0x5932c7=_0x267084;super(),this[_0x5932c7(0x137)]=_0xe50115,this[_0x5932c7(0x109)]=_0x3cc441,this[_0x5932c7(0xb5)]=_0x7d9aa5;}async[_0x267084(0x177)](_0x3a2f68,_0x44d437,_0x698bf0,..._0x5a68a9){const _0x26142d=_0x267084;var _0x5845b0,_0x3a9624,_0x407bb2,_0x373278;const _0x18a410=this[_0x26142d(0x137)][_0x26142d(0x241)]();if(!_0x18a410)throw new Error(_0x26142d(0x129));const _0x20a88e=((_0x5845b0=this[_0x26142d(0xb5)][_0x26142d(0x75)](_0x4ce834))!=null?_0x5845b0:_0x20cc7b)+'/'+_0x3a2f68+'/run/'+_0x44d437,_0x216744=new URL(window['location'][_0x26142d(0x1bf)]),_0x25b2bc={'scriptId':_0x3a2f68,'runId':(_0x3a9624=_0x216744[_0x26142d(0x16b)][_0x26142d(0xf7)](_0x26142d(0x1ae)))!=null?_0x3a9624:'','function':_0x44d437,'unitId':_0x18a410[_0x26142d(0x12e)](),'argsOfFunction':JSON[_0x26142d(0x20d)](_0x5a68a9),'invokeId':(_0x407bb2=_0x698bf0[_0x26142d(0x135)])!=null?_0x407bb2:'','executionId':(_0x373278=_0x698bf0[_0x26142d(0x94)])!=null?_0x373278:''};try{const _0x39099b=await this[_0x26142d(0x109)][_0x26142d(0x9c)](_0x20a88e,{'body':_0x25b2bc});return _0x39099b[_0x26142d(0x165)][_0x26142d(0x145)]&&_0x39099b['body'][_0x26142d(0x145)][_0x26142d(0x219)]!==Z['OK']?_0x26142d(0x260):_0x39099b[_0x26142d(0x165)]['result'];}catch{return _0x26142d(0x260);}}};dt=Fn([Ae(0x0,_0x121c1a),Ae(0x1,_0x19d3ff(_0x3d2675)),Ae(0x2,_0x5d7afb)],dt);const St=0x7530,mt='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0x15b4c2{constructor(){const _0x39a861=_0x267084;super(),_(this,'_id',_0x3add1d()),_(this,_0x39a861(0x81),new Set()),_(this,_0x39a861(0x103),new Map()),_(this,_0x39a861(0x14c),null),_(this,_0x39a861(0x1bb),new Map()),_(this,_0x39a861(0xc5),new Map()),this[_0x39a861(0x2a0)]();}[_0x267084(0x18a)](){const _0x36d973=_0x267084;super['dispose'](),this[_0x36d973(0x1bb)][_0x36d973(0x236)]((_0x295251,_0x433ae2)=>this[_0x36d973(0xa5)](_0x433ae2)),this[_0x36d973(0x14c)]&&window[_0x36d973(0x189)](this[_0x36d973(0x14c)]);}[_0x267084(0x16d)](_0x468108){const _0x70aff7=_0x267084;return this[_0x70aff7(0x10e)](_0x468108)[_0x70aff7(0x162)](_0x366b6a());}['editingUnit'](_0x17ad6f){const _0x31068a=_0x267084;this[_0x31068a(0x81)]['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x31068a(0x81)][_0x31068a(0x186)](_0x17ad6f),this['_send']({'type':0x0,'memberID':this[_0x31068a(0xec)],'unitIDs':[_0x17ad6f],'isForwarded':!0x1});}['disposeUnit'](_0x4c40bb){const _0x2cc7d0=_0x267084;this['_selfUnitIDs']['delete'](_0x4c40bb),this['_selfUnitIDs']['size']===0x0&&this[_0x2cc7d0(0x14c)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x267084(0x2a0)](){const _0x1aef4c=_0x267084;this['disposeWithMe'](_0x490c7d(_0x46507c(window,'storage')['subscribe'](_0x42a1b8=>{const _0x4600ec=_0x1936;if(_0x42a1b8[_0x4600ec(0xcb)]!==mt||!_0x42a1b8[_0x4600ec(0x8c)])return;const _0xf14699=JSON[_0x4600ec(0x24b)](_0x42a1b8[_0x4600ec(0x8c)]);this['_handleEvent'](_0xf14699);}))),window['addEventListener'](_0x1aef4c(0x115),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x1aef4c(0x81)])}));}[_0x267084(0xcd)](_0x3f0771){const _0x3c2f58=_0x267084;switch(_0x3f0771['type']){case 0x0:this[_0x3c2f58(0xa8)](_0x3f0771);break;case 0x1:this[_0x3c2f58(0x82)](_0x3f0771);break;case 0x2:this['_handleHeartbeatEvent'](_0x3f0771);break;}}[_0x267084(0xa8)](_0x51f1f7){const _0x3209d6=_0x267084,{unitIDs:_0x49e274,memberID:_0x106ac9,isForwarded:_0x54153c}=_0x51f1f7;_0x49e274['forEach'](_0x3dbc99=>{const _0x228a59=_0x1936;if(!_0x54153c&&this[_0x228a59(0x103)][_0x228a59(0x2b0)](_0x3dbc99)&&this[_0x228a59(0x10e)](_0x3dbc99)['next'](_0x2d4d54[_0x228a59(0x275)]),!this[_0x228a59(0x103)][_0x228a59(0x2b0)](_0x3dbc99)||!this[_0x228a59(0x103)][_0x228a59(0xf7)](_0x3dbc99)[_0x228a59(0x2b0)](_0x106ac9)){const _0x53e220=this[_0x228a59(0x103)][_0x228a59(0xf7)](_0x3dbc99)||new Set();_0x53e220[_0x228a59(0x186)](_0x106ac9),this[_0x228a59(0x103)]['set'](_0x3dbc99,_0x53e220),this[_0x228a59(0xd6)](_0x106ac9);}}),_0x54153c||this[_0x3209d6(0x1c4)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x3209d6(0x81)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x4b4c26){const _0x247347=_0x267084;this[_0x247347(0xa5)](_0x4b4c26);const _0x5df167=window[_0x247347(0x183)](()=>{const _0x5470c1=_0x247347;this[_0x5470c1(0x103)][_0x5470c1(0x236)](_0x4150f6=>{const _0x10d950=_0x5470c1;_0x4150f6[_0x10d950(0x74)](_0x4b4c26);});},St*0x2);this[_0x247347(0x1bb)][_0x247347(0x212)](_0x4b4c26,_0x5df167);}[_0x267084(0xa5)](_0x2a1013){const _0x240933=_0x267084;if(this['_clearOtherTimers']['has'](_0x2a1013)){const _0x1dd5e1=this[_0x240933(0x1bb)][_0x240933(0xf7)](_0x2a1013);_0x1dd5e1&&window[_0x240933(0x221)](_0x1dd5e1),this['_clearOtherTimers'][_0x240933(0x212)](_0x2a1013,null);}}[_0x267084(0x82)](_0x5f3afa){const _0x13bb78=_0x267084,{memberID:_0x1db643,unitIDs:_0x31fe5d}=_0x5f3afa;_0x31fe5d[_0x13bb78(0x236)](_0x8f216f=>{const _0x2c3456=_0x13bb78;var _0x35466e;const _0x70a6fc=this[_0x2c3456(0x103)]['get'](_0x8f216f);_0x70a6fc&&(_0x70a6fc['delete'](_0x1db643),(_0x35466e=this[_0x2c3456(0x10e)](_0x8f216f))==null||_0x35466e[_0x2c3456(0xdc)](_0x70a6fc['size']===0x0?_0x2d4d54[_0x2c3456(0x158)]:_0x2d4d54[_0x2c3456(0x275)]));}),this[_0x13bb78(0xa5)](_0x1db643);}['_handleHeartbeatEvent'](_0x2c99e4){const _0x19d352=_0x267084;this['_scheduleClearOtherTimer'](_0x2c99e4[_0x19d352(0xab)]);}['_send'](_0x102e01){const _0x246aa9=_0x267084;localStorage[_0x246aa9(0x161)](mt,JSON[_0x246aa9(0x20d)](_0x102e01));}[_0x267084(0x144)](){const _0x2dd22b=_0x267084;this[_0x2dd22b(0x14c)]=window[_0x2dd22b(0x192)](()=>{const _0xf27954=_0x2dd22b;this[_0xf27954(0x1c4)]({'type':0x2,'memberID':this[_0xf27954(0xec)]});},St);}[_0x267084(0x10e)](_0x16a6c6){const _0x2f2434=_0x267084;return this['_unitStatus'][_0x2f2434(0x2b0)](_0x16a6c6)||this['_unitStatus'][_0x2f2434(0x212)](_0x16a6c6,new _0x1c42a0(_0x2d4d54[_0x2f2434(0x158)])),this[_0x2f2434(0xc5)][_0x2f2434(0xf7)](_0x16a6c6);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};