@univerjs-pro/collaboration-client-ui 0.10.6-nightly.202509060724 → 0.10.6-nightly.202509060832

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 (49) 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/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/umd/facade.js +1 -1
  38. package/lib/umd/index.js +1 -1
  39. package/lib/umd/locale/ca-ES.js +1 -1
  40. package/lib/umd/locale/en-US.js +1 -1
  41. package/lib/umd/locale/es-ES.js +1 -1
  42. package/lib/umd/locale/fa-IR.js +1 -1
  43. package/lib/umd/locale/fr-FR.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +15 -15
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x7bdef9=_0x2ab1;(function(_0x2cc779,_0x3230f2){const _0x51357f=_0x2ab1,_0x299d29=_0x2cc779();while(!![]){try{const _0x260e57=-parseInt(_0x51357f(0x2ac))/0x1*(-parseInt(_0x51357f(0x2c1))/0x2)+parseInt(_0x51357f(0x333))/0x3+-parseInt(_0x51357f(0x262))/0x4*(-parseInt(_0x51357f(0x217))/0x5)+parseInt(_0x51357f(0x1f5))/0x6*(parseInt(_0x51357f(0x24e))/0x7)+-parseInt(_0x51357f(0x372))/0x8+parseInt(_0x51357f(0x342))/0x9+-parseInt(_0x51357f(0x332))/0xa*(parseInt(_0x51357f(0x335))/0xb);if(_0x260e57===_0x3230f2)break;else _0x299d29['push'](_0x299d29['shift']());}catch(_0x37c66f){_0x299d29['push'](_0x299d29['shift']());}}}(_0x1639,0x1e2b9));var xt=Object['defineProperty'],Bt=(_0x4b3cfc,_0x3a79ff,_0x5bb627)=>_0x3a79ff in _0x4b3cfc?xt(_0x4b3cfc,_0x3a79ff,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5bb627}):_0x4b3cfc[_0x3a79ff]=_0x5bb627,_=(_0x983406,_0x2936aa,_0x134281)=>Bt(_0x983406,typeof _0x2936aa!='symbol'?_0x2936aa+'':_0x2936aa,_0x134281);import{jsx as _0xa728f4,jsxs as _0x5db9ad}from'react/jsx-runtime';import{CollaborationStatus as _0x5b4a83,CollaborationSessionService as _0x4730f2,CollaborationController as _0x4ca7db,DataLoaderService as _0x8363bf,MemberService as _0xbb3a41,SessionStatus as _0x13197d,ILocalCacheService as _0x54e499,CollaborationUIEventService as _0x5d11d7,CollaborationUIEventId as _0x4ea152,DocCollaborationEntity as _0x138107,getLocalCacheKey as _0x155a1f,LOCAL_CACHE_INTERVAL as _0x552100,LOCAL_CACHE_INTERVAL_KEY as _0x1e2002,UniverCollaborationClientPlugin as _0x1a5fa8,CollaborationSocketService as _0x2c4830,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x5d2254,DEFAULT_WS_SESSION_TICKET_URL as _0x5e8a35,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x1d4044,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x36c691,UnitStatus as _0x20629e}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x157089,IUniverInstanceService as _0x16a5a2,Inject as _0x28e459,Injector as _0x5706a4,Disposable as _0x5f8b08,createIdentifier as _0x6ba680,ILogService as _0x2e81d3,ICommandService as _0x5f4771,Optional as _0x8b30ac,RxDisposable as _0x5cab1a,Workbook as _0x433c83,DOC_RANGE_TYPE as _0x3b3bc6,debounce as _0x56d432,Rectangle as _0x26a094,DisposableCollection as _0x381fdb,toDisposable as _0x3b8fd3,UniverInstanceType as _0x30fe4c,generateRandomId as _0x2f2dad,COLORS as _0xe40f77,ColorKit as _0x277a83,ThemeService as _0x4580bb,fromEventSubject as _0x20cd4c,Tools as _0x18fe65,CommandType as _0x5f54ad,IConfigService as _0x54983c,ILocalStorageService as _0x4bd2f1,DependentOn as _0x433821,Plugin as _0x3a4470,merge as _0x512149,registerDependencies as _0x2d2570,mergeOverrideWithDependencies as _0x1c6182,touchDependencies as _0x1da899}from'@univerjs/core';import{useObservable as _0x159644,useDependency as _0x214a8e,IUIPartsService as _0x32844c,BuiltInUIPart as _0x4a33ab,connectInjector as _0x546a0f,IBeforeCloseService as _0xd3bcc7,IMessageService as _0x1eebbb,INotificationService as _0xf370a}from'@univerjs/ui';import{BehaviorSubject as _0xf21850,switchMap as _0x14fe73,of as _0x3269bf,takeUntil as _0x585971,debounceTime as _0x55601b,Subject as _0x33c498,filter as _0xabc5cb,merge as _0x5f0d8c,combineLatest as _0x513ccb,fromEvent as _0xe3cc5e,shareReplay as _0x2e1b4d,mapTo as _0x5e4884,distinctUntilChanged as _0x33564c}from'rxjs';import{Tooltip as _0xf22e1,clsx as _0x551513,MessageType as _0x5c3688}from'@univerjs/design';import{forwardRef as _0x3de126,useRef as _0x2abf8e,createElement as _0x320542,useCallback as _0xa6a1e2}from'react';import{IRemoteInstanceService as _0x369fd8}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x31df4e,RefRangeService as _0x2981af,SetSelectionsOperation as _0x3eb0de,SheetsSelectionsService as _0x4e72ca,EffectRefRangId as _0x17a34a,handleIRemoveRow as _0x167fab,handleIRemoveCol as _0x51dfa0,handleMoveRange as _0x1cf45f,handleInsertRow as _0x325418,handleInsertRangeMoveRight as _0x858bca,handleInsertRangeMoveDown as _0x4242c3,handleInsertCol as _0x3d7da7,handleDeleteRangeMoveUp as _0x186acc,handleDeleteRangeMoveLeft as _0xc653b3,runRefRangeMutations as _0x25b2da}from'@univerjs/sheets';import{Shape as _0x469096,Rect as _0x17d9e4,getColor as _0x947e3e,RegularPolygon as _0x5c2d7a,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x18cc1e,Vector2 as _0x380419,SHEET_VIEWPORT_KEY as _0x58dfdc,IRenderManagerService as _0x56d891}from'@univerjs/engine-render';import{ISocketService as _0x4f27e6,WebSocketService as _0x2595d6,HTTPService as _0x1c3c2d}from'@univerjs/network';import{IDocClipboardService as _0xb60b38,NodePositionConvertToCursor as _0x23a61d,NodePositionConvertToRectRange as _0x2ed1e2,TEXT_RANGE_LAYER_INDEX as _0x5cf034,SetDocZoomRatioOperation as _0x3bb030,DocIMEInputManagerService as _0x360055,DocStateChangeManagerService as _0x177418}from'@univerjs/docs-ui';import{IImageIoService as _0x9ccccc}from'@univerjs/drawing';import{ITransformService as _0x51afb8,CollaborationEvent as _0xb0a477,isTransformMutationFailure as _0x1db28a,isTransformMutationsWithChangesetSuccess as _0x3cfba8,RevisionService as _0x42e7a9,ISnapshotServerService as _0xbb987f}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x4605ac,RichTextEditingMutation as _0x13cfe6,DocSelectionManagerService as _0x4c3c8c,DocSkeletonManagerService as _0x26942d}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x38f162,serializeRangeWithSheet as _0x3e6f31}from'@univerjs/engine-formula';import{map as _0x4f6aa0,filter as _0x3e50b8,throttleTime as _0x180f5e,takeUntil as _0x581be8,switchMap as _0xc6dfa8}from'rxjs/operators';import{SheetSkeletonManagerService as _0x51a48d,getCoordByCell as _0x49cbb2,getSheetObject as _0x44d870}from'@univerjs/sheets-ui';var v=function(){return v=Object['assign']||function(_0x282d5c){const _0x30795a=_0x2ab1;for(var _0x89f48f,_0x6782=0x1,_0x2cbf4e=arguments['length'];_0x6782<_0x2cbf4e;_0x6782++){_0x89f48f=arguments[_0x6782];for(var _0x31702c in _0x89f48f)Object[_0x30795a(0x247)][_0x30795a(0x2cb)]['call'](_0x89f48f,_0x31702c)&&(_0x282d5c[_0x31702c]=_0x89f48f[_0x31702c]);}return _0x282d5c;},v['apply'](this,arguments);},ci=function(_0x3980c9,_0xff91f9){const _0x5c0e65=_0x2ab1;var _0x13d1c1={};for(var _0x6413c4 in _0x3980c9)Object['prototype'][_0x5c0e65(0x2cb)]['call'](_0x3980c9,_0x6413c4)&&_0xff91f9['indexOf'](_0x6413c4)<0x0&&(_0x13d1c1[_0x6413c4]=_0x3980c9[_0x6413c4]);if(_0x3980c9!=null&&typeof Object['getOwnPropertySymbols']==_0x5c0e65(0x1f7)){for(var _0x2b16cb=0x0,_0x6413c4=Object['getOwnPropertySymbols'](_0x3980c9);_0x2b16cb<_0x6413c4[_0x5c0e65(0x3e1)];_0x2b16cb++)_0xff91f9['indexOf'](_0x6413c4[_0x2b16cb])<0x0&&Object[_0x5c0e65(0x247)][_0x5c0e65(0x252)][_0x5c0e65(0x291)](_0x3980c9,_0x6413c4[_0x2b16cb])&&(_0x13d1c1[_0x6413c4[_0x2b16cb]]=_0x3980c9[_0x6413c4[_0x2b16cb]]);}return _0x13d1c1;},ke=_0x3de126(function(_0x37da85,_0x20eb4d){const _0x3635b5=_0x2ab1;var _0x5aedbe=_0x37da85[_0x3635b5(0x1fa)],_0x2b7978=_0x37da85['id'],_0x1baeac=_0x37da85['className'],_0x1a02c0=_0x37da85[_0x3635b5(0x2bf)],_0x5c6674=ci(_0x37da85,[_0x3635b5(0x1fa),'id',_0x3635b5(0x345),_0x3635b5(0x2bf)]),_0x26e451='univerjs-icon\x20univerjs-icon-'[_0x3635b5(0x3db)](_0x2b7978,'\x20')[_0x3635b5(0x3db)](_0x1baeac||'')[_0x3635b5(0x222)](),_0x4734d5=_0x2abf8e('_'['concat'](hi()));return Rt(_0x5aedbe,''[_0x3635b5(0x3db)](_0x2b7978),{'defIds':_0x5aedbe[_0x3635b5(0x281)],'idSuffix':_0x4734d5[_0x3635b5(0x338)]},v({'ref':_0x20eb4d,'className':_0x26e451},_0x5c6674),_0x1a02c0);});function Rt(_0x1aa8f2,_0x3a3cce,_0x5f1152,_0x5b5e8f,_0x2f2b44){const _0x3fddf1=_0x2ab1;return _0x320542(_0x1aa8f2[_0x3fddf1(0x2a8)],v(v({'key':_0x3a3cce},li(_0x1aa8f2,_0x5f1152,_0x2f2b44)),_0x5b5e8f),(_i(_0x1aa8f2,_0x5f1152)[_0x3fddf1(0x243)]||[])['map'](function(_0x5e08bf,_0x5c7879){const _0x282084=_0x3fddf1;return Rt(_0x5e08bf,''[_0x282084(0x3db)](_0x3a3cce,'-')[_0x282084(0x3db)](_0x1aa8f2[_0x282084(0x2a8)],'-')[_0x282084(0x3db)](_0x5c7879),_0x5f1152,void 0x0,_0x2f2b44);}));}function li(_0x370966,_0x33aed1,_0x340165){const _0x1fc977=_0x2ab1;var _0x639544=v({},_0x370966[_0x1fc977(0x39d)]);_0x340165!=null&&_0x340165[_0x1fc977(0x2e7)]&&_0x639544[_0x1fc977(0x272)]==='colorChannel1'&&(_0x639544[_0x1fc977(0x272)]=_0x340165[_0x1fc977(0x2e7)]),_0x370966[_0x1fc977(0x2a8)]===_0x1fc977(0x2d1)&&_0x639544['id']&&(_0x639544['id']=_0x639544['id']+_0x33aed1[_0x1fc977(0x2eb)]),Object['entries'](_0x639544)[_0x1fc977(0x306)](function(_0x1a63d0){const _0x112e92=_0x1fc977;var _0x36dd12=_0x1a63d0[0x0],_0x4afd03=_0x1a63d0[0x1];_0x36dd12===_0x112e92(0x2d1)&&typeof _0x4afd03==_0x112e92(0x296)&&(_0x639544[_0x36dd12]=_0x4afd03[_0x112e92(0x3c4)](/url\(#(.*)\)/,_0x112e92(0x265)[_0x112e92(0x3db)](_0x33aed1[_0x112e92(0x2eb)],')')));});var _0x460d92=_0x33aed1[_0x1fc977(0x281)];return!_0x460d92||_0x460d92[_0x1fc977(0x3e1)]===0x0||(_0x370966['tag']==='use'&&_0x639544[_0x1fc977(0x1f8)]&&(_0x639544['xlink:href']=_0x639544['xlink:href']+_0x33aed1[_0x1fc977(0x2eb)]),Object[_0x1fc977(0x32f)](_0x639544)[_0x1fc977(0x306)](function(_0x5cfe2b){const _0x1e29b3=_0x1fc977;var _0x36cdb0=_0x5cfe2b[0x0],_0x4798a4=_0x5cfe2b[0x1];typeof _0x4798a4==_0x1e29b3(0x296)&&(_0x639544[_0x36cdb0]=_0x4798a4['replace'](/url\(#(.*)\)/,_0x1e29b3(0x265)[_0x1e29b3(0x3db)](_0x33aed1['idSuffix'],')')));})),_0x639544;}function _i(_0x4004b2,_0x502ea3){const _0x40da57=_0x2ab1;var _0x516e8d,_0x551597=_0x502ea3[_0x40da57(0x281)];return!_0x551597||_0x551597['length']===0x0?_0x4004b2:_0x4004b2[_0x40da57(0x2a8)]==='defs'&&(!((_0x516e8d=_0x4004b2[_0x40da57(0x243)])===null||_0x516e8d===void 0x0)&&_0x516e8d[_0x40da57(0x3e1)])?v(v({},_0x4004b2),{'children':_0x4004b2['children'][_0x40da57(0x239)](function(_0x4e98a6){const _0x5537f9=_0x40da57;return typeof _0x4e98a6[_0x5537f9(0x39d)]['id']=='string'&&_0x551597&&_0x551597[_0x5537f9(0x23f)](_0x4e98a6[_0x5537f9(0x39d)]['id'])?v(v({},_0x4e98a6),{'attrs':v(v({},_0x4e98a6[_0x5537f9(0x39d)]),{'id':_0x4e98a6[_0x5537f9(0x39d)]['id']+_0x502ea3[_0x5537f9(0x2eb)]})}):_0x4e98a6;})}):_0x4004b2;}function hi(){const _0x5c7e34=_0x2ab1;return Math[_0x5c7e34(0x3bd)]()[_0x5c7e34(0x32c)](0x24)[_0x5c7e34(0x253)](0x2,0x8);}ke[_0x7bdef9(0x3b6)]=_0x7bdef9(0x30a);var ui={'tag':_0x7bdef9(0x2c9),'attrs':{'xmlns':_0x7bdef9(0x259),'fill':_0x7bdef9(0x3a3),'viewBox':_0x7bdef9(0x3a6),'width':'1em','height':_0x7bdef9(0x364)},'children':[{'tag':'g','attrs':{'clipPath':_0x7bdef9(0x2d4)},'children':[{'tag':'path','attrs':{'stroke':_0x7bdef9(0x2a9),'d':_0x7bdef9(0x244),'strokeLinecap':'round','strokeLinejoin':_0x7bdef9(0x1e3),'strokeWidth':1.2}}]},{'tag':_0x7bdef9(0x23b),'attrs':{},'children':[{'tag':_0x7bdef9(0x3c1),'attrs':{'id':_0x7bdef9(0x263)},'children':[{'tag':_0x7bdef9(0x2c8),'attrs':{'fill':'white','d':_0x7bdef9(0x398)}}]}]}],'defIds':[_0x7bdef9(0x263)]},Dt=_0x3de126(function(_0x4f8a93,_0x31f166){const _0x36b0af=_0x7bdef9;return _0x320542(ke,Object['assign']({},_0x4f8a93,{'id':_0x36b0af(0x2d6),'ref':_0x31f166,'icon':ui}));});Dt['displayName']='OffLineIcon';var di={'tag':_0x7bdef9(0x2c9),'attrs':{'xmlns':_0x7bdef9(0x259),'fill':_0x7bdef9(0x3a3),'viewBox':_0x7bdef9(0x23c),'width':_0x7bdef9(0x364),'height':_0x7bdef9(0x364)},'children':[{'tag':'g','attrs':{'clipPath':_0x7bdef9(0x377)},'children':[{'tag':_0x7bdef9(0x2c8),'attrs':{'stroke':_0x7bdef9(0x2a9),'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':_0x7bdef9(0x23b),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x7bdef9(0x2d8)},'children':[{'tag':_0x7bdef9(0x2c8),'attrs':{'fill':_0x7bdef9(0x386),'d':_0x7bdef9(0x398),'transform':_0x7bdef9(0x3ac)}}]}]}],'defIds':[_0x7bdef9(0x2d8)]},Nt=_0x3de126(function(_0x5d29e5,_0x5ebc45){const _0x2da30a=_0x7bdef9;return _0x320542(ke,Object[_0x2da30a(0x26d)]({},_0x5d29e5,{'id':_0x2da30a(0x277),'ref':_0x5ebc45,'icon':di}));});Nt[_0x7bdef9(0x3b6)]=_0x7bdef9(0x2dc);function fi(_0x32764f){const _0xaf359f=_0x7bdef9;switch(_0x32764f){case _0x5b4a83[_0xaf359f(0x36c)]:return'collabStatus.offline';case _0x5b4a83[_0xaf359f(0x220)]:return _0xaf359f(0x34b);case _0x5b4a83[_0xaf359f(0x3ae)]:return _0xaf359f(0x236);case _0x5b4a83[_0xaf359f(0x2cc)]:return _0xaf359f(0x1fd);case _0x5b4a83[_0xaf359f(0x3a4)]:case _0x5b4a83[_0xaf359f(0x26a)]:return _0xaf359f(0x2ae);case _0x5b4a83[_0xaf359f(0x354)]:case _0x5b4a83[_0xaf359f(0x2a6)]:return'collabStatus.synced';}}function Si(_0x44a5c6){const {status$:_0x4bb96f}=_0x44a5c6,_0x2b2f9a=_0x159644(_0x4bb96f,_0x5b4a83['NOT_COLLAB']),_0x50847b=_0x214a8e(_0x157089),_0x324c3=_0x214a8e(_0x4730f2),_0x275c26=_0x2b2f9a!==_0x5b4a83['OFFLINE'],_0x2cb568=_0x50847b['t'](fi(_0x2b2f9a)),_0xcaffc2=_0x275c26?_0xa728f4(Nt,{}):_0xa728f4(Dt,{}),_0x3f1839=_0xa6a1e2(()=>{const _0x62d7d8=_0x2ab1;_0x275c26||_0x324c3[_0x62d7d8(0x38a)]();},[_0x275c26,_0x324c3]);function _0x557354(){const _0x313831=_0x2ab1;return _0x5db9ad(_0x313831(0x1df),{'className':_0x313831(0x361),'onClick':_0x3f1839,'children':[_0xa728f4(_0x313831(0x1df),{'className':_0x551513('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x275c26,'univer-text-red-500':!_0x275c26}),'children':_0xcaffc2}),_0xa728f4(_0x313831(0x1df),{'className':_0x313831(0x28e),'children':_0x2cb568})]});}return _0x275c26?_0x557354():_0xa728f4(_0xf22e1,{'title':_0x50847b['t']('collab-client.tooltip.reconnect'),'children':_0x557354()});}var mi=Object[_0x7bdef9(0x2a7)],Ii=(_0x3c5743,_0xfa5621,_0xaf47aa,_0x2d0d05)=>{const _0x32dfe0=_0x7bdef9;for(var _0x1d452f=_0x2d0d05>0x1?void 0x0:_0x2d0d05?mi(_0xfa5621,_0xaf47aa):_0xfa5621,_0xa2dec3=_0x3c5743[_0x32dfe0(0x3e1)]-0x1,_0x1c64c1;_0xa2dec3>=0x0;_0xa2dec3--)(_0x1c64c1=_0x3c5743[_0xa2dec3])&&(_0x1d452f=_0x1c64c1(_0x1d452f)||_0x1d452f);return _0x1d452f;},q=(_0x2dc169,_0x249ccd)=>(_0x18360f,_0x5259a2)=>_0x249ccd(_0x18360f,_0x5259a2,_0x2dc169);let se=class extends _0x5f8b08{constructor(_0x5c1903,_0x2ca222,_0xe94202,_0x1996c0){const _0x5656fe=_0x7bdef9;super(),_(this,'_status$',new _0xf21850(_0x5b4a83[_0x5656fe(0x2cc)])),(this[_0x5656fe(0x241)]=_0x5c1903,this['_injector']=_0x2ca222,this['_collaborationController']=_0xe94202,this[_0x5656fe(0x2df)]=_0x1996c0,this['_initStatusComponent'](),this['_initStatusListener']());}['_initStatusListener'](){const _0x5ad612=_0x7bdef9;this[_0x5ad612(0x28a)](this['_univerInstanceService'][_0x5ad612(0x36e)][_0x5ad612(0x35a)](_0x14fe73(()=>{const _0x201a09=_0x5ad612,_0x537e12=this[_0x201a09(0x241)]['getFocusedUnit']();return _0x537e12?this[_0x201a09(0x376)][_0x201a09(0x246)](_0x537e12['getUnitId']()):_0x3269bf(null);}),_0x14fe73(_0x28ce02=>_0x28ce02?_0x28ce02[_0x5ad612(0x2f5)]:_0x3269bf(_0x5b4a83[_0x5ad612(0x2cc)])))['subscribe'](_0x5bef81=>{const _0x125c82=_0x5ad612;this[_0x125c82(0x303)][_0x125c82(0x299)](_0x5bef81);}));}[_0x7bdef9(0x2b9)](){const _0x40d1ad=_0x7bdef9;this['disposeWithMe'](this[_0x40d1ad(0x2df)][_0x40d1ad(0x290)](_0x4a33ab[_0x40d1ad(0x3cc)],()=>_0x546a0f(vi({'status$':this[_0x40d1ad(0x303)][_0x40d1ad(0x385)]()}),this[_0x40d1ad(0x371)])));}};function _0x2ab1(_0x5b98ed,_0x1754e3){const _0x16392f=_0x1639();return _0x2ab1=function(_0x2ab1ac,_0x2bd6ed){_0x2ab1ac=_0x2ab1ac-0x1da;let _0x2e6e12=_0x16392f[_0x2ab1ac];return _0x2e6e12;},_0x2ab1(_0x5b98ed,_0x1754e3);}se=Ii([q(0x0,_0x16a5a2),q(0x1,_0x28e459(_0x5706a4)),q(0x2,_0x28e459(_0x4ca7db)),q(0x3,_0x32844c)],se);function vi(_0x3304a9){const {status$:_0x58689d}=_0x3304a9;return function(){return _0xa728f4(Si,{'status$':_0x58689d});};}const Ut=_0x6ba680(_0x7bdef9(0x34f));var gi=Object[_0x7bdef9(0x2a7)],pi=(_0x37c1c1,_0x3c74e7,_0xfd6089,_0x59c30c)=>{const _0x503bbf=_0x7bdef9;for(var _0x3e7a64=_0x59c30c>0x1?void 0x0:_0x59c30c?gi(_0x3c74e7,_0xfd6089):_0x3c74e7,_0xed0bf2=_0x37c1c1[_0x503bbf(0x3e1)]-0x1,_0x38de3c;_0xed0bf2>=0x0;_0xed0bf2--)(_0x38de3c=_0x37c1c1[_0xed0bf2])&&(_0x3e7a64=_0x38de3c(_0x3e7a64)||_0x3e7a64);return _0x3e7a64;},G=(_0x288a6e,_0x258e81)=>(_0x2233fa,_0x48b762)=>_0x258e81(_0x2233fa,_0x48b762,_0x288a6e);let ie=class extends _0x5cab1a{constructor(_0x506253,_0x3dc8df,_0x294045,_0x2df74b,_0x259fdf){const _0x1a6097=_0x7bdef9;super(),this['_urlService']=_0x506253,this[_0x1a6097(0x3ee)]=_0x3dc8df,this[_0x1a6097(0x352)]=_0x294045,this[_0x1a6097(0x2b0)]=_0x2df74b,_0x259fdf?_0x259fdf==null||_0x259fdf['whenReady']()['then'](()=>this[_0x1a6097(0x373)]()):(this[_0x1a6097(0x3ee)][_0x1a6097(0x273)](_0x1a6097(0x3a0),_0x1a6097(0x347)),this[_0x1a6097(0x373)]());}async[_0x7bdef9(0x373)](){const _0x401760=_0x7bdef9,_0x207399=this[_0x401760(0x379)][_0x401760(0x2f7)](_0x401760(0x1e6)),_0x33b7dc=this[_0x401760(0x379)][_0x401760(0x2f7)](_0x401760(0x374)),_0x54e980=this[_0x401760(0x379)][_0x401760(0x2f7)](_0x401760(0x231));if(!_0x207399||!_0x33b7dc){this[_0x401760(0x3ee)][_0x401760(0x273)](_0x401760(0x3a0),_0x401760(0x2ce));return;}const _0x7286a7=await this[_0x401760(0x2b0)][_0x401760(0x391)](_0x207399,Number(_0x33b7dc),_0x54e980);_0x7286a7&&_0x7286a7 instanceof _0x433c83&&this[_0x401760(0x20f)](_0x7286a7);}async[_0x7bdef9(0x20f)](_0xaa459c){const _0x1f8785=_0x7bdef9;await this[_0x1f8785(0x3aa)](_0xaa459c),_0xaa459c[_0x1f8785(0x233)]['pipe'](_0x585971(this[_0x1f8785(0x228)]))[_0x1f8785(0x358)](_0x51b499=>{_0x51b499&&this['_updateURLWithCurrentState'](_0x51b499);}),this[_0x1f8785(0x379)][_0x1f8785(0x286)][_0x1f8785(0x35a)](_0x585971(this[_0x1f8785(0x228)]))[_0x1f8785(0x358)](()=>this[_0x1f8785(0x3aa)](_0xaa459c));}[_0x7bdef9(0x339)](_0x5a0416,_0x44525b=!0x1){const _0xf1a18a=_0x7bdef9,_0x358931=this['_urlService'][_0xf1a18a(0x2f7)](_0xf1a18a(0x231));_0x5a0416[_0xf1a18a(0x209)]()!==_0x358931&&this[_0xf1a18a(0x379)][_0xf1a18a(0x226)](_0xf1a18a(0x231),_0x5a0416[_0xf1a18a(0x209)](),_0x44525b);}async[_0x7bdef9(0x3aa)](_0x1a6690){const _0x1f68af=_0x7bdef9;var _0x12ffe1;const _0x2eeb42=this['_urlService']['getParam']('subunit');if(!_0x2eeb42||!_0x1a6690[_0x1f68af(0x2b6)](_0x2eeb42)){const _0x550007=_0x1a6690[_0x1f68af(0x221)]()[0x0],_0x3e7f01=_0x1a6690[_0x1f68af(0x2b6)](_0x550007);if(!_0x3e7f01)return;this[_0x1f68af(0x339)](_0x3e7f01,!0x0),await this['_commandService'][_0x1f68af(0x2fc)](_0x31df4e['id'],{'unitId':_0x1a6690[_0x1f68af(0x334)](),'subUnitId':_0x550007});return;}((_0x12ffe1=_0x1a6690[_0x1f68af(0x2f0)]())==null?void 0x0:_0x12ffe1[_0x1f68af(0x209)]())!==_0x2eeb42&&await this[_0x1f68af(0x352)][_0x1f68af(0x2fc)](_0x31df4e['id'],{'unitId':_0x1a6690[_0x1f68af(0x334)](),'subUnitId':_0x2eeb42});}};ie=pi([G(0x0,Ut),G(0x1,_0x2e81d3),G(0x2,_0x5f4771),G(0x3,_0x28e459(_0x8363bf)),G(0x4,_0x8b30ac(_0x369fd8))],ie);var Ci=Object[_0x7bdef9(0x2a7)],Ei=(_0xc4f4df,_0x4e29ef,_0x51c42f,_0x5d46b5)=>{const _0x28eed0=_0x7bdef9;for(var _0x577d6e=_0x5d46b5>0x1?void 0x0:_0x5d46b5?Ci(_0x4e29ef,_0x51c42f):_0x4e29ef,_0x5a1412=_0xc4f4df[_0x28eed0(0x3e1)]-0x1,_0x2e2e35;_0x5a1412>=0x0;_0x5a1412--)(_0x2e2e35=_0xc4f4df[_0x5a1412])&&(_0x577d6e=_0x2e2e35(_0x577d6e)||_0x577d6e);return _0x577d6e;},Je=(_0x4484fb,_0x170559)=>(_0x48d8df,_0x43161c)=>_0x170559(_0x48d8df,_0x43161c,_0x4484fb);let Ne=class extends _0x5cab1a{constructor(_0x7d15f7,_0x296860){const _0x206b09=_0x7bdef9;super(),this[_0x206b09(0x302)]=_0x7d15f7,this[_0x206b09(0x2c0)]=_0x296860,this[_0x206b09(0x373)]();}[_0x7bdef9(0x373)](){const _0x2677f1=_0x7bdef9,_0x5aa051=this;this[_0x2677f1(0x28a)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x4b7fc9=>{const _0x3b5d85=_0x2677f1,_0xa6a89b=await _0x5aa051[_0x3b5d85(0x2c0)][_0x3b5d85(0x2c3)](_0x4b7fc9);return _0xa6a89b?{'source':_0xa6a89b[_0x3b5d85(0x3a7)],'imageSourceType':_0xa6a89b[_0x3b5d85(0x3da)]}:null;}}));}};Ne=Ei([Je(0x0,_0xb60b38),Je(0x1,_0x9ccccc)],Ne);const Ze=[_0x7bdef9(0x224),'jiqing.500','green.600',_0x7bdef9(0x2f8),_0x7bdef9(0x25e),_0x7bdef9(0x2aa)];class He extends _0x5f8b08{constructor(){const _0x596fdb=_0x7bdef9;super(...arguments),_(this,_0x596fdb(0x269),new Map()),_(this,_0x596fdb(0x2f4),0x0);}['assignAColorForMemberID'](_0x2e8ff3){const _0x24d639=_0x7bdef9;if(this['_assignedColors'][_0x24d639(0x2c4)](_0x2e8ff3))return this[_0x24d639(0x269)][_0x24d639(0x1fe)](_0x2e8ff3);const _0x69e3f6=Ze[this['_colorIndex']];return this[_0x24d639(0x2f4)]=(this[_0x24d639(0x2f4)]+0x1)%Ze[_0x24d639(0x3e1)],this[_0x24d639(0x269)]['set'](_0x2e8ff3,_0x69e3f6),_0x69e3f6;}}function Mt(_0x3eccf0){const _0x455d9e=_0x7bdef9;let _0x25f80e='';for(const _0x2bf15a of _0x3eccf0){const {startOffset:_0x377638,endOffset:_0x7cab95,isActive:_0x5cefed,rangeType:_0x5becef,segmentId:_0x590a3c,segmentPage:_0x3cea7c}=_0x2bf15a;_0x25f80e[_0x455d9e(0x3e1)]&&(_0x25f80e+=','),_0x25f80e+=_0x377638+':'+_0x7cab95+':'+(_0x5cefed?'1':'0')+':'+_0x5becef+':'+_0x590a3c+':'+_0x3cea7c;}return _0x25f80e;}function Oi(_0x572af2){const _0x26179f=_0x7bdef9,_0x2d6d65=_0x572af2['split'](','),_0x46cc36=[];for(const _0x340ed5 of _0x2d6d65){const [_0x38b2cf,_0x2e0ce1,_0x152f80,_0x38e36b,_0x4a7080,_0x88925b]=_0x340ed5[_0x26179f(0x29e)](':');_0x46cc36[_0x26179f(0x287)]({'startOffset':Number(_0x38b2cf),'endOffset':Number(_0x2e0ce1),'collapsed':_0x38b2cf===_0x2e0ce1,'isActive':_0x152f80==='1','rangeType':_0x38e36b===_0x3b3bc6[_0x26179f(0x3b2)]?_0x3b3bc6[_0x26179f(0x3b2)]:_0x3b3bc6[_0x26179f(0x2e4)],'segmentId':typeof _0x4a7080==_0x26179f(0x296)?String(_0x4a7080):'','segmentPage':Number(_0x88925b!=null?_0x88925b:-0x1)});}return _0x46cc36[_0x26179f(0x1ef)](_0x1fcc14=>_0x1fcc14[_0x26179f(0x304)])||(_0x46cc36[0x0][_0x26179f(0x304)]=!0x0),_0x46cc36;}class Fe extends _0x5cab1a{constructor(){const _0x17390f=_0x7bdef9;super(...arguments),_(this,_0x17390f(0x38b),new _0xf21850(null)),_(this,'collabCursorState$',this[_0x17390f(0x38b)][_0x17390f(0x385)]());}[_0x7bdef9(0x318)](_0x454fa8){const _0x4d9bb9=_0x7bdef9,{unitID:_0x3510ca,memberID:_0x287286,textRanges:_0x27921d}=_0x454fa8,_0x1af836=Mt(_0x27921d);if(_0x1af836==='')return;const _0x518233={'unitID':_0x3510ca,'memberID':_0x287286,'selection':_0x1af836};this[_0x4d9bb9(0x38b)][_0x4d9bb9(0x299)](_0x518233);}}var bi=Object[_0x7bdef9(0x2a7)],Ti=(_0x3a7203,_0x3fc5f2,_0x23cb3e,_0x430721)=>{for(var _0x17f353=_0x430721>0x1?void 0x0:_0x430721?bi(_0x3fc5f2,_0x23cb3e):_0x3fc5f2,_0x2033a9=_0x3a7203['length']-0x1,_0x3adec0;_0x2033a9>=0x0;_0x2033a9--)(_0x3adec0=_0x3a7203[_0x2033a9])&&(_0x17f353=_0x3adec0(_0x17f353)||_0x17f353);return _0x17f353;},P=(_0x143ffc,_0xa46b4b)=>(_0x5b27a6,_0x47387e)=>_0xa46b4b(_0x5b27a6,_0x47387e,_0x143ffc);const Ri=0x12c,Di=0x64;let Ue=class extends _0x5cab1a{constructor(_0x28ef40,_0x4733a5,_0x3dd5a4,_0x409d28,_0x10a68c,_0x50a47e,_0x3d34c3,_0x19bbf9,_0x1f3c1e){const _0x52c609=_0x7bdef9;super(),_(this,_0x52c609(0x26f),!0x1),_(this,_0x52c609(0x373),!0x1),_(this,'_cursorInfo$',new _0xf21850(new Map())),_(this,'cursorInfo$',this[_0x52c609(0x264)]['asObservable']()),_(this,_0x52c609(0x27d),new _0xf21850([])),_(this,_0x52c609(0x254),this['_roomMembers$'][_0x52c609(0x35a)](_0x55601b(Ri))),_(this,_0x52c609(0x353),_0x56d432(_0x41720e=>{const _0x2d309a=_0x52c609,_0x532371={'eventID':_0xb0a477[_0x2d309a(0x300)],'data':{'unitID':this['unitID'],'memberID':this[_0x2d309a(0x1de)][_0x2d309a(0x3dc)](),'selection':Mt(_0x41720e)}};this[_0x2d309a(0x1de)][_0x2d309a(0x284)](_0x532371,this[_0x2d309a(0x321)]);},Di)),(this[_0x52c609(0x321)]=_0x28ef40,this[_0x52c609(0x1de)]=_0x4733a5,this[_0x52c609(0x371)]=_0x3dd5a4,this[_0x52c609(0x1fb)]=_0x409d28,this['_memberService']=_0x10a68c,this[_0x52c609(0x295)]=_0x50a47e,this[_0x52c609(0x274)]=_0x3d34c3,this[_0x52c609(0x241)]=_0x19bbf9,this['_commandService']=_0x1f3c1e);}get['cursorInfo'](){const _0x22bb04=_0x7bdef9;return this[_0x22bb04(0x264)][_0x22bb04(0x2ef)]();}get[_0x7bdef9(0x251)](){const _0x41e3c4=_0x7bdef9;return this[_0x41e3c4(0x27d)]['getValue']();}[_0x7bdef9(0x1fc)](){const _0x18b4b5=_0x7bdef9;super[_0x18b4b5(0x1fc)](),this['_cursorInfo$'][_0x18b4b5(0x299)](new Map()),this[_0x18b4b5(0x264)][_0x18b4b5(0x3dd)](),this['_roomMembers$'][_0x18b4b5(0x299)]([]),this[_0x18b4b5(0x27d)][_0x18b4b5(0x3dd)]();}[_0x7bdef9(0x29b)](){const _0x2d5565=_0x7bdef9;this[_0x2d5565(0x373)]||(this[_0x2d5565(0x373)]=!0x0,this[_0x2d5565(0x1de)][_0x2d5565(0x301)][_0x2d5565(0x35a)](_0x585971(this[_0x2d5565(0x228)]))[_0x2d5565(0x358)](_0xbb0bf=>{const _0x3f141d=_0x2d5565;_0xbb0bf===_0x13197d[_0x3f141d(0x2b1)]?this[_0x3f141d(0x206)]():this[_0x3f141d(0x202)]();}),this['_session'][_0x2d5565(0x359)][_0x2d5565(0x35a)](_0x585971(this[_0x2d5565(0x228)]))[_0x2d5565(0x358)](_0x399550=>{const _0x25d350=_0x2d5565,_0x257376=_0x399550[_0x25d350(0x325)];_0x257376===_0xb0a477[_0x25d350(0x300)]&&this[_0x25d350(0x203)](_0x399550),_0x257376===_0xb0a477[_0x25d350(0x39c)]&&this['_onCursorDelete'](_0x399550);}),this['disposeWithMe'](this[_0x2d5565(0x352)][_0x2d5565(0x21a)](_0x2c11a1=>{const _0x2051fb=_0x2d5565,_0x169b92=_0x2c11a1[_0x2051fb(0x3d4)];_0x169b92!=null&&this[_0x2051fb(0x26f)]&&_0x2c11a1['id']===_0x4605ac['id']&&_0x169b92[_0x2051fb(0x36f)]===this[_0x2051fb(0x321)]&&_0x169b92['isEditing']===!0x1&&_0x169b92['ranges']['length']>0x0&&this[_0x2051fb(0x353)](_0x169b92['ranges']);})),this[_0x2d5565(0x295)]['collabCursorState$'][_0x2d5565(0x35a)](_0x585971(this['dispose$']))[_0x2d5565(0x358)](_0xe3c432=>{const _0x34655c=_0x2d5565;if((_0xe3c432==null?void 0x0:_0xe3c432[_0x34655c(0x321)])!==this[_0x34655c(0x321)])return;const _0x2c5c8d={'eventID':_0xb0a477['UPDATE_CURSOR'],'data':_0xe3c432};this[_0x34655c(0x203)](_0x2c5c8d);}),this[_0x2d5565(0x28a)](this[_0x2d5565(0x352)][_0x2d5565(0x21a)](_0xc28c0a=>{const _0x22a3c0=_0x2d5565;if(_0xc28c0a['params']==null)return;const _0x44ebd3=_0xc28c0a[_0x22a3c0(0x3d4)];if(_0xc28c0a['id']!==_0x13cfe6['id']||_0x44ebd3['unitId']!==this[_0x22a3c0(0x321)])return;const _0x539ed7={'id':_0x22a3c0(0x1dc),'params':_0x44ebd3},_0x42fb54=this[_0x22a3c0(0x282)];for(const [_0x52d1f6,_0x529625]of _0x42fb54){const _0x34eae8={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x22a3c0(0x321)],'actions':null,'textRanges':_0x529625[_0x22a3c0(0x258)]}},_0x585fb5=this[_0x22a3c0(0x274)][_0x22a3c0(0x27e)](_0x539ed7,_0x34eae8,!0x1);if(_0x1db28a(_0x585fb5))throw _0x585fb5[_0x22a3c0(0x218)];_0x42fb54[_0x22a3c0(0x210)](_0x52d1f6,{..._0x529625,'ranges':_0x585fb5['m2Prime'][_0x22a3c0(0x3d4)][_0x22a3c0(0x355)]});}queueMicrotask(()=>{const _0x53d059=_0x22a3c0;this['_cursorInfo$'][_0x53d059(0x299)](_0x42fb54);});})));}['_onCursorUpdate'](_0x1cfd66){const _0xf8fda2=_0x7bdef9;var _0x171dca,_0x2277fa;const {memberID:_0x135832,selection:_0x18d15}=_0x1cfd66[_0xf8fda2(0x388)],_0x38fe4f=Oi(_0x18d15),_0x46139f=(_0x2277fa=(_0x171dca=this[_0xf8fda2(0x3d8)][_0xf8fda2(0x27f)](this[_0xf8fda2(0x321)],_0x135832))==null?void 0x0:_0x171dca[_0xf8fda2(0x3d5)])!=null?_0x2277fa:_0xf8fda2(0x1f9),_0x575c13={'color':this[_0xf8fda2(0x1fb)][_0xf8fda2(0x1ec)](_0x135832),'name':_0x46139f,'ranges':_0x38fe4f},_0x4c388c=this[_0xf8fda2(0x282)];_0x4c388c[_0xf8fda2(0x210)](_0x135832,_0x575c13),this[_0xf8fda2(0x264)]['next'](_0x4c388c);}[_0x7bdef9(0x298)](_0x1c5249){const _0x58d0a2=_0x7bdef9,{memberID:_0x2770eb}=_0x1c5249[_0x58d0a2(0x388)],_0x287743=this[_0x58d0a2(0x282)];_0x287743[_0x58d0a2(0x2c6)](_0x2770eb),this[_0x58d0a2(0x264)]['next'](_0x287743);}[_0x7bdef9(0x206)](){const _0x3a4bb8=_0x7bdef9;var _0x3a40b6;if(this['_online']=!0x0,((_0x3a40b6=this[_0x3a4bb8(0x241)][_0x3a4bb8(0x3ed)]())==null?void 0x0:_0x3a40b6[_0x3a4bb8(0x334)]())!==this[_0x3a4bb8(0x321)])return;const _0x108f2e=this[_0x3a4bb8(0x371)][_0x3a4bb8(0x1fe)](_0x4c3c8c)['getDocRanges']();Array['isArray'](_0x108f2e)&&_0x108f2e[_0x3a4bb8(0x3e1)]>0x0&&this[_0x3a4bb8(0x353)](_0x108f2e);}[_0x7bdef9(0x202)](){const _0x5855ee=_0x7bdef9;this[_0x5855ee(0x26f)]=!0x1;}};Ue=Ti([P(0x2,_0x28e459(_0x5706a4)),P(0x3,_0x28e459(He)),P(0x4,_0x28e459(_0xbb3a41)),P(0x5,_0x28e459(Fe)),P(0x6,_0x51afb8),P(0x7,_0x16a5a2),P(0x8,_0x5f4771)],Ue);var Ni=Object[_0x7bdef9(0x2a7)],Ui=(_0x3ffd76,_0x3777b4,_0x142afe,_0x599d10)=>{const _0x3754e5=_0x7bdef9;for(var _0x4e0a97=_0x599d10>0x1?void 0x0:_0x599d10?Ni(_0x3777b4,_0x142afe):_0x3777b4,_0x3b5135=_0x3ffd76[_0x3754e5(0x3e1)]-0x1,_0x44a62e;_0x3b5135>=0x0;_0x3b5135--)(_0x44a62e=_0x3ffd76[_0x3b5135])&&(_0x4e0a97=_0x44a62e(_0x4e0a97)||_0x4e0a97);return _0x4e0a97;},x=(_0x3d085e,_0x11770e)=>(_0x30a829,_0x48425e)=>_0x11770e(_0x30a829,_0x48425e,_0x3d085e);const Mi=0x12c,Li=0x64,Pi=()=>{let _0x4cd69b=[],_0x108453=!0x1;return _0x23785f=>{const _0x308a91=_0x2ab1;_0x4cd69b[_0x308a91(0x287)](_0x23785f),_0x108453||(_0x108453=!0x0,setTimeout(()=>{const _0x182dcd=_0x308a91;_0x4cd69b[_0x182dcd(0x306)](_0x11ca52=>_0x11ca52()),_0x4cd69b=[],_0x108453=!0x1;}));};};let Me=class extends _0x5cab1a{constructor(_0x14bc21,_0x448612,_0x4de32f,_0x2506b3,_0x31b66c,_0x2edab2,_0x3742df,_0x143228){const _0x11791a=_0x7bdef9;super(),_(this,_0x11791a(0x26f),!0x1),_(this,_0x11791a(0x373),!0x1),_(this,_0x11791a(0x264),new _0xf21850(new Map())),_(this,_0x11791a(0x2a0),this['_cursorInfo$'][_0x11791a(0x385)]()),_(this,_0x11791a(0x27d),new _0xf21850([])),_(this,'roomMembers$',this[_0x11791a(0x27d)][_0x11791a(0x35a)](_0x55601b(Mi))),_(this,_0x11791a(0x353),_0x56d432((_0x2efd78,_0x1287e5)=>{const _0x166883=_0x11791a,_0x119342={'eventID':_0xb0a477['UPDATE_CURSOR'],'data':{'unitID':this[_0x166883(0x321)],'memberID':this['_session'][_0x166883(0x3dc)](),'selection':_0x3e6f31(_0x2efd78,_0x1287e5[_0x166883(0x285)])}};this[_0x166883(0x1de)]['send'](_0x119342,this['unitID']);},Li)),(this[_0x11791a(0x321)]=_0x14bc21,this[_0x11791a(0x1de)]=_0x448612,this['_injector']=_0x4de32f,this['_colorAssignService']=_0x2506b3,this[_0x11791a(0x3d8)]=_0x31b66c,this[_0x11791a(0x241)]=_0x2edab2,this[_0x11791a(0x352)]=_0x3742df,this[_0x11791a(0x31e)]=_0x143228);}get['cursorInfo'](){const _0xe908c9=_0x7bdef9;return this[_0xe908c9(0x264)]['getValue']();}get[_0x7bdef9(0x251)](){const _0x4a5d88=_0x7bdef9;return this[_0x4a5d88(0x27d)][_0x4a5d88(0x2ef)]();}[_0x7bdef9(0x1fc)](){const _0x2e0f14=_0x7bdef9;super[_0x2e0f14(0x1fc)](),this[_0x2e0f14(0x264)][_0x2e0f14(0x299)](new Map()),this['_cursorInfo$']['complete'](),this[_0x2e0f14(0x27d)][_0x2e0f14(0x299)]([]),this['_roomMembers$'][_0x2e0f14(0x3dd)]();}[_0x7bdef9(0x29b)](){const _0x2c6e0b=_0x7bdef9;this['_init']||(this[_0x2c6e0b(0x373)]=!0x0,this['_session'][_0x2c6e0b(0x301)][_0x2c6e0b(0x35a)](_0x585971(this[_0x2c6e0b(0x228)]))['subscribe'](_0xebb154=>{const _0x3ab6fe=_0x2c6e0b;_0xebb154===_0x13197d[_0x3ab6fe(0x2b1)]?this[_0x3ab6fe(0x206)]():this[_0x3ab6fe(0x202)]();}),this[_0x2c6e0b(0x1de)][_0x2c6e0b(0x359)]['pipe'](_0x585971(this['dispose$']))['subscribe'](_0x5d209d=>{const _0x45a557=_0x2c6e0b,_0x32ce8f=_0x5d209d[_0x45a557(0x325)];_0x32ce8f===_0xb0a477['UPDATE_CURSOR']&&this[_0x45a557(0x203)](_0x5d209d),_0x32ce8f===_0xb0a477['USERS_LEAVE']&&this['_onCursorDelete'](_0x5d209d);}),this['_onRefRangeChange'](),this[_0x2c6e0b(0x28a)](this[_0x2c6e0b(0x352)][_0x2c6e0b(0x21a)](_0x4303c4=>{const _0xf17d00=_0x2c6e0b;if(this['_online']&&_0x4303c4['id']===_0x3eb0de['id']&&_0x4303c4[_0xf17d00(0x3d4)][_0xf17d00(0x36f)]===this['unitID']){const _0x5cac28=_0x4303c4['params'];this[_0xf17d00(0x353)](_0x5cac28[_0xf17d00(0x3a8)],_0x5cac28[_0xf17d00(0x271)][0x0]);}})));}['_onCursorUpdate'](_0xe43448){const _0x2d21a7=_0x7bdef9;var _0x22e97f,_0x5e70aa;const {memberID:_0x512848,selection:_0x2246ea}=_0xe43448[_0x2d21a7(0x388)],{sheetName:_0x431de,range:_0x8bdaad}=_0x38f162(_0x2246ea),_0x5f043d={'name':(_0x5e70aa=(_0x22e97f=this[_0x2d21a7(0x3d8)][_0x2d21a7(0x27f)](this[_0x2d21a7(0x321)],_0x512848))==null?void 0x0:_0x22e97f[_0x2d21a7(0x3d5)])!=null?_0x5e70aa:_0x2d21a7(0x1f9),'range':this[_0x2d21a7(0x2b2)](_0x431de,_0x8bdaad),'sheetID':_0x431de,'color':this[_0x2d21a7(0x1fb)][_0x2d21a7(0x1ec)](_0x512848),'selection':_0x2246ea},_0x2290d7=this[_0x2d21a7(0x282)];_0x2290d7['set'](_0x512848,_0x5f043d),this[_0x2d21a7(0x264)][_0x2d21a7(0x299)](_0x2290d7);}[_0x7bdef9(0x298)](_0x1704c0){const _0x3787eb=_0x7bdef9,{memberID:_0x5b9c0b}=_0x1704c0[_0x3787eb(0x388)],_0xeb07f2=this[_0x3787eb(0x282)];_0xeb07f2['delete'](_0x5b9c0b),this[_0x3787eb(0x264)][_0x3787eb(0x299)](_0xeb07f2);}[_0x7bdef9(0x2b2)](_0x3a2b99,_0x9040aa){const _0xe15886=_0x7bdef9;var _0x5e335e,_0x48be71;const _0x4620be=(_0x48be71=(_0x5e335e=this[_0xe15886(0x241)][_0xe15886(0x2ff)](this[_0xe15886(0x321)]))==null?void 0x0:_0x5e335e['getSheetBySheetId'](_0x3a2b99))==null?void 0x0:_0x48be71[_0xe15886(0x340)]();return(_0x4620be==null?void 0x0:_0x4620be[_0xe15886(0x32b)](_0x1f62cd=>_0x26a094['contains'](_0x1f62cd,_0x9040aa)))||_0x9040aa;}[_0x7bdef9(0x1ee)](){const _0x97affc=_0x7bdef9,_0x4bdb12=new _0x381fdb(),_0x3f926e=Pi(),_0x42e5db=()=>{const _0x28be41=_0x2ab1;_0x4bdb12['dispose']();const _0x4f4fd9=(_0x49708a,_0x24e9b4,_0x25be5a,_0x550152)=>{const _0x1d56a7=_0x2ab1;let _0x161f57=[];switch(_0x49708a['id']){case _0x17a34a[_0x1d56a7(0x24f)]:{_0x161f57=_0xc653b3(_0x49708a,_0x550152);break;}case _0x17a34a[_0x1d56a7(0x3a1)]:{_0x161f57=_0x186acc(_0x49708a,_0x550152);break;}case _0x17a34a[_0x1d56a7(0x396)]:{_0x161f57=_0x3d7da7(_0x49708a,_0x550152);break;}case _0x17a34a[_0x1d56a7(0x250)]:{_0x161f57=_0x4242c3(_0x49708a,_0x550152);break;}case _0x17a34a[_0x1d56a7(0x3cb)]:{_0x161f57=_0x858bca(_0x49708a,_0x550152);break;}case _0x17a34a[_0x1d56a7(0x3d6)]:{_0x161f57=_0x325418(_0x49708a,_0x550152);break;}case _0x17a34a['MoveRangeCommandId']:{_0x161f57=_0x1cf45f(_0x49708a,_0x550152);break;}case _0x17a34a['RemoveColCommandId']:{_0x161f57=_0x51dfa0(_0x49708a,_0x550152);break;}case _0x17a34a[_0x1d56a7(0x3c6)]:{_0x161f57=_0x167fab(_0x49708a,_0x550152);break;}}const _0x43c0ec=_0x25b2da(_0x161f57,_0x550152),_0x3991a2=this['cursorInfo'][_0x1d56a7(0x1fe)](_0x24e9b4);if(_0x3991a2&&_0x43c0ec){const _0x7f324c={..._0x3991a2,'range':_0x43c0ec};this['cursorInfo']['set'](_0x24e9b4,_0x7f324c),_0x3f926e(()=>{const _0x25f026=_0x1d56a7,_0x53f204=this[_0x25f026(0x31e)]['registerRefRange'](_0x43c0ec,_0x1ed6d6=>(_0x53f204['dispose'](),_0x4f4fd9(_0x1ed6d6,_0x24e9b4,_0x25be5a,_0x43c0ec)));_0x4bdb12[_0x25f026(0x3bf)](_0x53f204);});}return{'redos':[],'undos':[]};};this[_0x28be41(0x282)][_0x28be41(0x306)]((_0x48e1ab,_0x11b71f)=>{const _0x4d6706=_0x28be41,{range:_0x1a4e8b,sheetID:_0x11a645}=_0x48e1ab,_0x339356=this['_refRangeService'][_0x4d6706(0x25a)](_0x1a4e8b,_0x1762d1=>(_0x339356['dispose'](),_0x4f4fd9(_0x1762d1,_0x11b71f,_0x11a645,_0x1a4e8b)));_0x4bdb12['add'](_0x339356);});};this[_0x97affc(0x28a)](_0x3b8fd3(this[_0x97affc(0x264)]['subscribe'](()=>{_0x42e5db();})));}[_0x7bdef9(0x206)](){const _0xbdf66c=_0x7bdef9;var _0x4a97a2,_0x4d5e39;if(this[_0xbdf66c(0x26f)]=!0x0,((_0x4a97a2=this[_0xbdf66c(0x241)][_0xbdf66c(0x3ed)]())==null?void 0x0:_0x4a97a2[_0xbdf66c(0x334)]())!==this[_0xbdf66c(0x321)])return;const _0x506b78=(_0x4d5e39=this[_0xbdf66c(0x371)][_0xbdf66c(0x1fe)](_0x4e72ca)[_0xbdf66c(0x326)]())==null?void 0x0:_0x4d5e39[0x0],_0x555922=this[_0xbdf66c(0x241)]['getCurrentUnitForType'](_0x30fe4c[_0xbdf66c(0x370)])[_0xbdf66c(0x2f0)]();_0x506b78&&_0x555922&&this[_0xbdf66c(0x353)](_0x555922['getSheetId'](),_0x506b78);}[_0x7bdef9(0x202)](){const _0x557436=_0x7bdef9;this[_0x557436(0x26f)]=!0x1;}};Me=Ui([x(0x2,_0x28e459(_0x5706a4)),x(0x3,_0x28e459(He)),x(0x4,_0x28e459(_0xbb3a41)),x(0x5,_0x16a5a2),x(0x6,_0x5f4771),x(0x7,_0x28e459(_0x2981af))],Me);var wi=Object[_0x7bdef9(0x2a7)],Ai=(_0x19282c,_0x35e37e,_0x1f4099,_0x3670ad)=>{const _0x22aa7a=_0x7bdef9;for(var _0x2520f0=_0x3670ad>0x1?void 0x0:_0x3670ad?wi(_0x35e37e,_0x1f4099):_0x35e37e,_0x142bd6=_0x19282c[_0x22aa7a(0x3e1)]-0x1,_0x533e42;_0x142bd6>=0x0;_0x142bd6--)(_0x533e42=_0x19282c[_0x142bd6])&&(_0x2520f0=_0x533e42(_0x2520f0)||_0x2520f0);return _0x2520f0;},me=(_0x162656,_0x4fce05)=>(_0x31e48c,_0x5d32d6)=>_0x4fce05(_0x31e48c,_0x5d32d6,_0x162656);let F=class extends _0x5cab1a{constructor(_0x1dd799,_0x393b72,_0x389ac7){const _0x2a164f=_0x7bdef9;super(),_(this,_0x2a164f(0x2e3),new Map()),_(this,_0x2a164f(0x3af),new _0x33c498()),(this[_0x2a164f(0x241)]=_0x1dd799,this[_0x2a164f(0x371)]=_0x393b72,this[_0x2a164f(0x235)]=_0x389ac7,this['_init']());}['dispose'](){const _0x58a423=_0x7bdef9;super[_0x58a423(0x1fc)](),this[_0x58a423(0x3af)][_0x58a423(0x3dd)](),this[_0x58a423(0x2e3)][_0x58a423(0x306)](_0x82687=>_0x82687[_0x58a423(0x1fc)]());}[_0x7bdef9(0x2b4)](_0x242eb9){const _0x4c94a5=_0x7bdef9;return this[_0x4c94a5(0x2e3)][_0x4c94a5(0x2c4)](_0x242eb9)?this[_0x4c94a5(0x2e3)][_0x4c94a5(0x1fe)](_0x242eb9)[_0x4c94a5(0x2a0)]:this[_0x4c94a5(0x3af)][_0x4c94a5(0x35a)](_0xabc5cb(_0x199ba4=>_0x199ba4['unitID']===_0x242eb9),_0x14fe73(_0x3e00c4=>_0x3e00c4[_0x4c94a5(0x2a0)]));}[_0x7bdef9(0x373)](){const _0x4cbaf7=_0x7bdef9;this['_univerInstanceService'][_0x4cbaf7(0x216)](_0x30fe4c['UNIVER_SHEET'])[_0x4cbaf7(0x35a)](_0x585971(this[_0x4cbaf7(0x228)]))[_0x4cbaf7(0x358)](async _0x3c9220=>{const _0x4a6898=_0x4cbaf7,_0x5735e5=_0x3c9220[_0x4a6898(0x334)](),_0xf9cfb=await this[_0x4a6898(0x2bb)](_0x5735e5);this['_entityInit$'][_0x4a6898(0x299)](_0xf9cfb),this['_entities'][_0x4a6898(0x210)](_0x5735e5,_0xf9cfb);}),this[_0x4cbaf7(0x241)][_0x4cbaf7(0x216)](_0x30fe4c[_0x4cbaf7(0x2e1)])[_0x4cbaf7(0x35a)](_0x585971(this[_0x4cbaf7(0x228)]))[_0x4cbaf7(0x35a)](_0xabc5cb(_0x4f9a7e=>!_0x4f9a7e[_0x4cbaf7(0x334)]()[_0x4cbaf7(0x22d)]('__')))[_0x4cbaf7(0x358)](async _0x278d95=>{const _0x446483=_0x4cbaf7,_0x18805f=_0x278d95[_0x446483(0x334)](),_0x16af88=await this['_startDocCollabCursor'](_0x18805f);this['_entityInit$']['next'](_0x16af88),this[_0x446483(0x2e3)][_0x446483(0x210)](_0x18805f,_0x16af88);}),_0x5f0d8c(this['_univerInstanceService'][_0x4cbaf7(0x238)](_0x30fe4c[_0x4cbaf7(0x2e1)]),this['_univerInstanceService'][_0x4cbaf7(0x238)](_0x30fe4c[_0x4cbaf7(0x370)]))[_0x4cbaf7(0x35a)](_0x585971(this[_0x4cbaf7(0x228)]))['subscribe'](_0x2f8ed4=>{const _0xedae7=_0x4cbaf7,_0x37d9b8=_0x2f8ed4[_0xedae7(0x334)](),_0x5174e5=this[_0xedae7(0x2e3)][_0xedae7(0x1fe)](_0x37d9b8);_0x5174e5&&(_0x5174e5[_0xedae7(0x1fc)](),this[_0xedae7(0x2e3)][_0xedae7(0x2c6)](_0x37d9b8));});}async['_startSheetCollabCursor'](_0x4d195f){const _0x5f53e8=_0x7bdef9,_0x24668f=await this[_0x5f53e8(0x235)]['requireSession'](_0x4d195f),_0x24ab96=this[_0x5f53e8(0x371)]['createInstance'](Me,_0x4d195f,_0x24668f);return _0x24ab96[_0x5f53e8(0x29b)](),_0x24ab96;}async['_startDocCollabCursor'](_0xe64ec0){const _0x2da0cc=_0x7bdef9,_0x26d46a=await this[_0x2da0cc(0x235)][_0x2da0cc(0x3e6)](_0xe64ec0),_0x1c8dd2=this['_injector']['createInstance'](Ue,_0xe64ec0,_0x26d46a);return _0x1c8dd2[_0x2da0cc(0x29b)](),_0x1c8dd2;}};F=Ai([me(0x0,_0x16a5a2),me(0x1,_0x28e459(_0x5706a4)),me(0x2,_0x28e459(_0x4730f2))],F);const J=0x14,Qe=0xc8,Ie=0x4,yi=0x5;function $i(_0x39c789,_0x252b5f){const _0x50256c=_0x7bdef9;let {radius:_0x12105b,width:_0x19a431,height:_0x24d463}=_0x252b5f;_0x12105b=_0x12105b!=null?_0x12105b:0x0,_0x19a431=_0x19a431!=null?_0x19a431:0x1e,_0x24d463=_0x24d463!=null?_0x24d463:0x1e;let _0x1178cd=0x0,_0x5c1461=0x0,_0x5aeff2=0x0;_0x1178cd=_0x5c1461=_0x5aeff2=Math[_0x50256c(0x1dd)](_0x12105b,_0x19a431/0x2,_0x24d463/0x2),_0x39c789[_0x50256c(0x229)](),_0x39c789[_0x50256c(0x2a2)](_0x1178cd,0x0),_0x39c789[_0x50256c(0x26c)](_0x19a431-_0x5c1461,0x0),_0x39c789['arc'](_0x19a431-_0x5c1461,_0x5c1461,_0x5c1461,Math['PI']*0x3/0x2,0x0,!0x1),_0x39c789[_0x50256c(0x26c)](_0x19a431,_0x24d463-_0x5aeff2),_0x39c789[_0x50256c(0x1e8)](_0x19a431-_0x5aeff2,_0x24d463-_0x5aeff2,_0x5aeff2,0x0,Math['PI']/0x2,!0x1),_0x39c789[_0x50256c(0x26c)](0x0,_0x24d463),_0x39c789[_0x50256c(0x26c)](0x0,_0x1178cd),_0x39c789[_0x50256c(0x1e8)](_0x1178cd,_0x1178cd,_0x1178cd,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x39c789[_0x50256c(0x3bc)](),_0x252b5f[_0x50256c(0x272)]&&(_0x39c789['save'](),_0x39c789[_0x50256c(0x363)]=_0x252b5f[_0x50256c(0x272)],_0x252b5f[_0x50256c(0x319)]===_0x50256c(0x2ba)?_0x39c789['fill']('evenodd'):_0x39c789[_0x50256c(0x272)](),_0x39c789[_0x50256c(0x208)]());}class ue extends _0x469096{constructor(_0x1706c3,_0xefb6c7){const _0x164bf6=_0x7bdef9;super(_0x1706c3,_0xefb6c7),_(this,'color'),_(this,_0x164bf6(0x37f)),(this[_0x164bf6(0x387)]=_0xefb6c7==null?void 0x0:_0xefb6c7['color'],this[_0x164bf6(0x37f)]=_0xefb6c7==null?void 0x0:_0xefb6c7[_0x164bf6(0x37f)]);}static[_0x7bdef9(0x21c)](_0x342e03,_0x5c7ab3){const _0xcc108c=_0x7bdef9,{text:_0x27b94c,color:_0x547cdc}=_0x5c7ab3;_0x342e03[_0xcc108c(0x38e)](),_0x342e03[_0xcc108c(0x3e0)]=_0xcc108c(0x39e);const _0x281a4d=_0x342e03['measureText'](_0x27b94c)['width'],_0x5dd015=Math[_0xcc108c(0x1dd)](_0x281a4d+0x2*Ie,Qe);$i(_0x342e03,{'height':J,'radius':0x4,'width':_0x5dd015,'fill':_0x547cdc}),_0x342e03[_0xcc108c(0x363)]=_0xcc108c(0x1e4);const _0x3419f5=Ie,_0x1db029=J-yi,_0x33bf53=Qe-0x2*Ie;if(_0x281a4d>_0x33bf53){let _0x1c1439='',_0x16d3ad=0x0;for(const _0x255981 of _0x27b94c){const _0x119021=_0x342e03['measureText'](_0x255981)['width'];if(_0x16d3ad+_0x119021<=_0x33bf53-_0x342e03['measureText'](_0xcc108c(0x293))['width'])_0x1c1439+=_0x255981,_0x16d3ad+=_0x119021;else{_0x1c1439+=_0xcc108c(0x293);break;}}_0x342e03[_0xcc108c(0x267)](_0x1c1439,_0x3419f5,_0x1db029);}else _0x342e03[_0xcc108c(0x267)](_0x27b94c,_0x3419f5,_0x1db029);_0x342e03[_0xcc108c(0x208)]();}[_0x7bdef9(0x207)](_0x4c49d7){const _0x3d7e2d=_0x7bdef9;ue[_0x3d7e2d(0x21c)](_0x4c49d7,this);}}const ve=_0x7bdef9(0x2dd),xi=_0x7bdef9(0x381),Bi=_0x7bdef9(0x341),K=0x6,ki=1.5,ge=0x4,Hi=1.5,Fi=_0x7bdef9(0x21f);class qe{constructor(_0x555e01,_0x394641,_0x22d7a3,_0x5328bb){const _0x2fbcce=_0x7bdef9;_(this,_0x2fbcce(0x234),[]),_(this,'_anchor',null),_(this,'_textBubble',null),_(this,'_anchorDot',null),_(this,_0x2fbcce(0x256),null),_(this,_0x2fbcce(0x1f4),null),(this[_0x2fbcce(0x310)]=_0x555e01,this[_0x2fbcce(0x31b)]=_0x394641,this[_0x2fbcce(0x37b)]=_0x22d7a3,this[_0x2fbcce(0x22b)]=_0x5328bb,this[_0x2fbcce(0x1f0)]());}set['_hover'](_0x108fcb){const _0x5e0102=_0x7bdef9;_0x108fcb?(this[_0x5e0102(0x2d0)]&&this['_anchorDot']['hide'](),this['_textBubble']&&this[_0x5e0102(0x3b1)][_0x5e0102(0x3d0)]()):(this[_0x5e0102(0x2d0)]&&this[_0x5e0102(0x2d0)][_0x5e0102(0x3d0)](),this[_0x5e0102(0x3b1)]&&this[_0x5e0102(0x3b1)][_0x5e0102(0x21d)]());}[_0x7bdef9(0x1fc)](){const _0x503049=_0x7bdef9;for(const _0x55f7f0 of this[_0x503049(0x234)])_0x55f7f0['dispose']();this['_textBubble']&&this['_textBubble'][_0x503049(0x1fc)](),this[_0x503049(0x2d0)]&&this[_0x503049(0x2d0)][_0x503049(0x1fc)](),this[_0x503049(0x39a)]&&this['_anchor'][_0x503049(0x1fc)](),this[_0x503049(0x1f4)]&&this[_0x503049(0x1f4)]();}[_0x7bdef9(0x1f0)](){const _0xef6f5c=_0x7bdef9;var _0x177951;const {_docSkeleton:_0x2d5e08,_document:_0x27bfc4}=this,{color:_0x274422,name:_0x346d8b,ranges:_0x3896d9}=this[_0xef6f5c(0x310)],_0x186082=_0x27bfc4[_0xef6f5c(0x2f2)](),{docsLeft:_0x13ea8d,docsTop:_0x13c644}=_0x186082,_0x549d6c=new _0x23a61d(_0x186082,_0x2d5e08);for(const {startOffset:_0x225422,endOffset:_0x2a0f2d,rangeType:_0x417366,segmentId:_0x45df2c,segmentPage:_0x295d0b,collapsed:_0x10576d,isActive:_0x574472}of _0x3896d9){const _0x1996ae=_0x2d5e08[_0xef6f5c(0x1f6)](_0x225422,!0x0,_0x45df2c,_0x295d0b);let _0x2cb6b6=_0x2d5e08['findNodePositionByCharIndex'](_0x2a0f2d,!0x0,_0x45df2c,_0x295d0b);if(_0x2cb6b6==null&&(_0x2cb6b6=_0x2d5e08[_0xef6f5c(0x1f6)](_0x2a0f2d-0x1,!0x1,_0x45df2c,_0x295d0b)),_0x574472){const {contentBoxPointGroup:_0x430756}=_0x549d6c['getRangePointData'](_0x2cb6b6,_0x2cb6b6);if(_0x430756[_0xef6f5c(0x3e1)]===0x0)continue;this[_0xef6f5c(0x28c)](_0x274422,_0x430756,_0x13ea8d,_0x13c644,_0x346d8b),this[_0xef6f5c(0x1f4)]=this[_0xef6f5c(0x2bd)]();}if(_0x1996ae&&_0x2cb6b6){if(_0x417366===_0x3b3bc6[_0xef6f5c(0x2e4)]){const _0x2823e3=new _0x2ed1e2(_0x186082,_0x2d5e08),{pointGroup:_0x203715}=(_0x177951=_0x2823e3[_0xef6f5c(0x365)](_0x1996ae,_0x2cb6b6))!=null?_0x177951:{};if(_0x203715==null||_0x203715['length']===0x0)continue;this[_0xef6f5c(0x3e8)](_0x274422,_0x203715,_0x13ea8d,_0x13c644);}else{if(!_0x10576d){const {borderBoxPointGroup:_0x46927f}=_0x549d6c[_0xef6f5c(0x365)](_0x1996ae,_0x2cb6b6);if(_0x46927f[_0xef6f5c(0x3e1)]===0x0)continue;this[_0xef6f5c(0x34c)](_0x274422,_0x46927f,_0x13ea8d,_0x13c644);}}}}}['_drawAnchor'](_0x6c7514,_0x21992e,_0x50b0b9,_0xc58e09,_0x32dc27){const _0x333913=_0x7bdef9,_0x2f5899=this[_0x333913(0x322)](_0x21992e),{left:_0x13882f,top:_0x31830e,height:_0x3957c5}=_0x2f5899,_0x4a5822=this[_0x333913(0x31a)](),_0x46d3e1=Hi/_0x4a5822,_0x12e6eb=new _0x17d9e4(ve+_0x2f2dad(K),{'left':_0x13882f+_0x50b0b9-_0x46d3e1,'top':_0x31830e+_0xc58e09,'height':_0x3957c5,'width':ki,'fill':_0x6c7514||_0x947e3e(_0xe40f77[_0x333913(0x22c)],0x0),'strokeWidth':_0x46d3e1,'stroke':Fi,'evented':!0x0});this[_0x333913(0x39a)]=_0x12e6eb,this[_0x333913(0x31b)][_0x333913(0x32d)](_0x12e6eb,_0x5cf034);const _0x1c8bce=new _0x17d9e4(ve+_0x2f2dad(K),{'left':_0x13882f+_0x50b0b9-_0x46d3e1,'top':_0x31830e+_0xc58e09-ge/0x2,'height':ge,'width':ge,'fill':_0x6c7514||_0x947e3e(_0xe40f77['black'],0x0),'strokeWidth':0x0,'stroke':_0x6c7514||_0x947e3e(_0xe40f77[_0x333913(0x22c)],0x0),'evented':!0x1});this[_0x333913(0x2d0)]=_0x1c8bce,this[_0x333913(0x31b)][_0x333913(0x32d)](_0x1c8bce,_0x5cf034);const _0x5cac1f=new ue(ve+_0x2f2dad(K),{'left':_0x13882f+_0x50b0b9-_0x46d3e1,'top':_0x31830e+_0xc58e09-J,'text':_0x32dc27,'color':_0x6c7514});this[_0x333913(0x3b1)]=_0x5cac1f,this[_0x333913(0x31b)][_0x333913(0x32d)](_0x5cac1f,_0x5cf034),this[_0x333913(0x3b5)]=!0x1;}[_0x7bdef9(0x2bd)](){const _0x1d1530=_0x7bdef9,_0x32d3a7=this[_0x1d1530(0x39a)][_0x1d1530(0x320)][_0x1d1530(0x2af)](()=>{const _0x40e6fa=_0x1d1530;this[_0x40e6fa(0x3b5)]=!0x0;}),_0x1fee55=this[_0x1d1530(0x39a)][_0x1d1530(0x390)][_0x1d1530(0x2af)](()=>{const _0xad7b41=_0x1d1530;this['_hideTimer']&&clearTimeout(this[_0xad7b41(0x256)]),this[_0xad7b41(0x256)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x554bdf=_0x1d1530;_0x32d3a7['unsubscribe'](),_0x1fee55[_0x554bdf(0x2ab)]();};}['_drawTextRange'](_0xc63e4,_0x3ea1de,_0x4d57d6,_0x568b5d){const _0x5a0fd3=_0x7bdef9,_0x46cdd1=new _0x277a83(_0xc63e4)[_0x5a0fd3(0x1ff)](0.2)['toRgbString'](),_0x5e736a=new _0x5c2d7a(xi+_0x2f2dad(K),{'pointsGroup':_0x3ea1de,'fill':_0x46cdd1||_0x947e3e(_0xe40f77['black'],0.2),'left':_0x4d57d6,'top':_0x568b5d,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x5a0fd3(0x287)](_0x5e736a),this[_0x5a0fd3(0x31b)][_0x5a0fd3(0x32d)](_0x5e736a,_0x5cf034);}['_drawRectRange'](_0x39f66a,_0x4c76e4,_0x54e851,_0x1d4a4e){const _0x1feb12=_0x7bdef9,_0x633548=new _0x277a83(_0x39f66a)[_0x1feb12(0x1ff)](0.2)[_0x1feb12(0x3d9)](),_0x4935b4=new _0x5c2d7a(Bi+_0x2f2dad(K),{'pointsGroup':_0x4c76e4,'fill':_0x633548||_0x947e3e(_0xe40f77[_0x1feb12(0x22c)],0.2),'left':_0x54e851,'top':_0x1d4a4e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1feb12(0x234)][_0x1feb12(0x287)](_0x4935b4),this['_scene'][_0x1feb12(0x32d)](_0x4935b4,_0x5cf034);}[_0x7bdef9(0x322)](_0x3adf79){const _0x110e6e=_0x3adf79[0x0],_0x61ddd4=_0x110e6e[0x0],_0x56c182=_0x110e6e[0x2],{x:_0x23d26f,y:_0x1accf3}=_0x61ddd4,{x:_0x4cb896,y:_0x3282ba}=_0x56c182;return{'left':_0x23d26f,'top':_0x1accf3,'width':_0x4cb896-_0x23d26f,'height':_0x3282ba-_0x1accf3};}[_0x7bdef9(0x31a)](){const _0x382306=_0x7bdef9,{scaleX:_0xc97e3f,scaleY:_0x9e9dd4}=this[_0x382306(0x31b)][_0x382306(0x20a)]();return Math[_0x382306(0x1e7)](_0xc97e3f,_0x9e9dd4);}}var Yi=Object[_0x7bdef9(0x2a7)],ji=(_0x4423c6,_0x428932,_0x3b5687,_0x5246c4)=>{const _0x3c1596=_0x7bdef9;for(var _0x21baf3=_0x5246c4>0x1?void 0x0:_0x5246c4?Yi(_0x428932,_0x3b5687):_0x428932,_0x5293d5=_0x4423c6[_0x3c1596(0x3e1)]-0x1,_0xa51b6;_0x5293d5>=0x0;_0x5293d5--)(_0xa51b6=_0x4423c6[_0x5293d5])&&(_0x21baf3=_0xa51b6(_0x21baf3)||_0x21baf3);return _0x21baf3;},ee=(_0xf76df1,_0x2f5406)=>(_0x3c7526,_0x3fb8b4)=>_0x2f5406(_0x3c7526,_0x3fb8b4,_0xf76df1);let Le=class extends _0x5cab1a{constructor(_0x29052c,_0x37f6b1,_0x559e50,_0x58a161,_0x37d199){const _0x54654b=_0x7bdef9;super(),_(this,_0x54654b(0x2d9),[]),_(this,'_cursors',[]),(this[_0x54654b(0x32a)]=_0x29052c,this[_0x54654b(0x25f)]=_0x37f6b1,this[_0x54654b(0x2b7)]=_0x559e50,this[_0x54654b(0x352)]=_0x58a161,this[_0x54654b(0x283)]=_0x37d199,this['_init']());}[_0x7bdef9(0x373)](){const _0x36d32e=_0x7bdef9,_0x5bcc79=this[_0x36d32e(0x32a)][_0x36d32e(0x36f)],_0x5d7cba=this[_0x36d32e(0x25f)];this[_0x36d32e(0x28a)](_0x513ccb([this[_0x36d32e(0x2b7)]['getCollabCursors$'](_0x5bcc79),this[_0x36d32e(0x283)][_0x36d32e(0x35c)]])['pipe'](_0x4f6aa0(([_0x43a893,_0x441b62])=>({'skeleton':_0x5d7cba['getSkeleton'](),'cursors':[..._0x43a893['values']()][_0x36d32e(0x260)](_0x3ea9a7=>({..._0x3ea9a7,'color':this[_0x36d32e(0x283)][_0x36d32e(0x392)](_0x3ea9a7[_0x36d32e(0x387)])}))})))[_0x36d32e(0x358)](_0x1c1e89=>{const _0x3362e3=_0x36d32e;if(this[_0x3362e3(0x35f)](),_0x1c1e89){const {skeleton:_0x289a84,cursors:_0x3b6146}=_0x1c1e89;this[_0x3362e3(0x2d3)](_0x289a84,_0x3b6146);}})),this[_0x36d32e(0x362)](),this[_0x36d32e(0x2de)]();}[_0x7bdef9(0x2d3)](_0x568b7c,_0x12ade6){const _0x10f537=_0x7bdef9,{scene:_0x1ae328,mainComponent:_0x456401}=this[_0x10f537(0x32a)],_0x32e4fc=_0x12ade6['map'](_0x871d62=>new qe(_0x871d62,_0x1ae328,_0x568b7c,_0x456401));this['_cursorShapes']=_0x32e4fc,this['_cursors']=_0x12ade6;}[_0x7bdef9(0x24b)](){const _0x453138=_0x7bdef9;this[_0x453138(0x35f)]();const {scene:_0x3c2ee3,mainComponent:_0x5436cf}=this[_0x453138(0x32a)],_0x4871c9=this[_0x453138(0x25f)][_0x453138(0x2b5)](),_0x2ccaca=this['_cursors'][_0x453138(0x239)](_0x3dab60=>new qe(_0x3dab60,_0x3c2ee3,_0x4871c9,_0x5436cf));this[_0x453138(0x2d9)]=_0x2ccaca;}[_0x7bdef9(0x35f)](){const _0x494269=_0x7bdef9;this[_0x494269(0x2d9)][_0x494269(0x306)](_0x400c7e=>_0x400c7e[_0x494269(0x1fc)]()),this['_cursorShapes']=[];}[_0x7bdef9(0x2de)](){const _0x2e770c=_0x7bdef9,_0x2ff458=[_0x3bb030['id']];this['disposeWithMe'](this['_commandService'][_0x2e770c(0x21a)](_0x4db8a8=>{const _0x2e8007=_0x2e770c;_0x2ff458[_0x2e8007(0x23f)](_0x4db8a8['id'])&&_0x4db8a8[_0x2e8007(0x3d4)][_0x2e8007(0x36f)]===this[_0x2e8007(0x32a)][_0x2e8007(0x36f)]&&this[_0x2e8007(0x24b)]();}));}['_initResize'](){const _0x199bd6=_0x7bdef9;this[_0x199bd6(0x28a)](_0x20cd4c(this[_0x199bd6(0x32a)][_0x199bd6(0x1db)][_0x199bd6(0x3d7)])[_0x199bd6(0x35a)](_0x3e50b8(_0x52524c=>_0x52524c[_0x199bd6(0x374)]===_0x18cc1e[_0x199bd6(0x275)]),_0x180f5e(0x10))[_0x199bd6(0x358)](()=>{const _0x39c28a=_0x199bd6;this[_0x39c28a(0x24b)]();}));}};Le=ji([ee(0x1,_0x28e459(_0x26942d)),ee(0x2,_0x28e459(F)),ee(0x3,_0x5f4771),ee(0x4,_0x28e459(_0x4580bb))],Le);const Vi=0x1,Wi=1.5;class Xi extends _0x469096{constructor(_0x1c70b5,_0x21db02){const _0x1ca446=_0x7bdef9;super(_0x1c70b5,_0x21db02),_(this,_0x1ca446(0x2c5)),_(this,_0x1ca446(0x25d),!0x1),_(this,_0x1ca446(0x3b8)),_(this,_0x1ca446(0x37c),''),_(this,'_labelPosition',_0x1ca446(0x327)),_(this,_0x1ca446(0x349)),(_0x21db02&&this['setShapeProps'](_0x21db02),this[_0x1ca446(0x320)][_0x1ca446(0x2af)](()=>this[_0x1ca446(0x276)]({'hovered':!0x0})),this['onPointerLeave$'][_0x1ca446(0x2af)](()=>this[_0x1ca446(0x276)]({'hovered':!0x1})));}[_0x7bdef9(0x276)](_0x183523){const _0xe5fe1a=_0x7bdef9;var _0x296964,_0x5ca1df,_0x158893,_0xf3216,_0xc0aeca,_0x562dd4;this[_0xe5fe1a(0x2c5)]=(_0x296964=_0x183523['color'])!=null?_0x296964:this['_color'],this[_0xe5fe1a(0x25d)]=(_0x5ca1df=_0x183523[_0xe5fe1a(0x3e9)])!=null?_0x5ca1df:this[_0xe5fe1a(0x25d)],this[_0xe5fe1a(0x3b8)]=(_0x158893=_0x183523[_0xe5fe1a(0x285)])!=null?_0x158893:this[_0xe5fe1a(0x3b8)],this['_name']=(_0xf3216=_0x183523[_0xe5fe1a(0x3d5)])!=null?_0xf3216:this[_0xe5fe1a(0x37c)],this[_0xe5fe1a(0x230)]=(_0xc0aeca=_0x183523[_0xe5fe1a(0x3bb)])!=null?_0xc0aeca:this[_0xe5fe1a(0x230)],this[_0xe5fe1a(0x349)]=(_0x562dd4=_0x183523[_0xe5fe1a(0x34d)])!=null?_0x562dd4:this[_0xe5fe1a(0x349)],this[_0xe5fe1a(0x213)]({'width':_0x183523[_0xe5fe1a(0x3c7)],'height':_0x183523['height']});}['onMouseMove'](_0x820175){const _0x422c85=_0x7bdef9,{row:_0x3d7a77,column:_0x2c7b81}=_0x820175;if(_0x3d7a77>=this[_0x422c85(0x3b8)][_0x422c85(0x2bc)]&&_0x3d7a77<=this['_range']['endRow']&&_0x2c7b81>=this[_0x422c85(0x3b8)][_0x422c85(0x38f)]&&_0x2c7b81<=this[_0x422c85(0x3b8)][_0x422c85(0x1f2)]){this[_0x422c85(0x276)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x7bdef9(0x37a)](_0x1a180b){return!0x1;}[_0x7bdef9(0x207)](_0x289d01){const _0x2abeca=_0x7bdef9;_0x17d9e4['drawWith'](_0x289d01,{'width':this[_0x2abeca(0x3c7)],'height':this[_0x2abeca(0x366)],'strokeWidth':Wi,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x2abeca(0x349)]}),this[_0x2abeca(0x25d)]&&(_0x289d01[_0x2abeca(0x38e)](),_0x289d01[_0x2abeca(0x39f)](0x1,0x0,0x0,0x1,this[_0x2abeca(0x3c7)],this[_0x2abeca(0x230)]===_0x2abeca(0x1e5)?0x0:-J),ue[_0x2abeca(0x21c)](_0x289d01,{'text':this[_0x2abeca(0x37c)],'color':this[_0x2abeca(0x2c5)]}),_0x289d01[_0x2abeca(0x208)]());}}var Gi=Object[_0x7bdef9(0x2a7)],Ki=(_0x1f06f5,_0x5deadf,_0x520c61,_0x245dfb)=>{for(var _0x159885=_0x245dfb>0x1?void 0x0:_0x245dfb?Gi(_0x5deadf,_0x520c61):_0x5deadf,_0x25a4a0=_0x1f06f5['length']-0x1,_0x5167f7;_0x25a4a0>=0x0;_0x25a4a0--)(_0x5167f7=_0x1f06f5[_0x25a4a0])&&(_0x159885=_0x5167f7(_0x159885)||_0x159885);return _0x159885;},pe=(_0x5a5360,_0x113730)=>(_0x293b7b,_0x35c7af)=>_0x113730(_0x293b7b,_0x35c7af,_0x5a5360);const zi=0x1389;let Pe=class extends _0x5cab1a{constructor(_0x1bbce7,_0x527a23,_0x1313f5,_0x25113b){const _0x458505=_0x7bdef9;super(),_(this,'_cursors',new Set()),_(this,_0x458505(0x343),null),(this[_0x458505(0x32a)]=_0x1bbce7,this[_0x458505(0x29d)]=_0x527a23,this[_0x458505(0x2b7)]=_0x1313f5,this[_0x458505(0x283)]=_0x25113b,this[_0x458505(0x373)]());}[_0x7bdef9(0x373)](){const _0x361529=_0x7bdef9;this[_0x361529(0x29d)][_0x361529(0x36a)]['pipe'](_0x581be8(this[_0x361529(0x228)]),_0xc6dfa8(_0x978284=>{const _0x4dd0c6=_0x361529;if(_0x978284){const _0x40a98e=_0x978284[_0x4dd0c6(0x2e8)];return _0x513ccb(this[_0x4dd0c6(0x2b7)][_0x4dd0c6(0x2b4)](this[_0x4dd0c6(0x32a)][_0x4dd0c6(0x36f)]),this[_0x4dd0c6(0x283)][_0x4dd0c6(0x35c)])[_0x4dd0c6(0x35a)](_0x4f6aa0(([_0x28c6b6,_0x5f19d1])=>{const _0x53b5a5=_0x4dd0c6,_0x4ce818=new Map();return _0x28c6b6[_0x53b5a5(0x306)]((_0x1d12b7,_0x266d8e)=>{const _0x5505d9=_0x53b5a5;if(_0x1d12b7[_0x5505d9(0x2c2)]===_0x40a98e){const _0x580d6c={..._0x1d12b7};_0x580d6c[_0x5505d9(0x387)]=this[_0x5505d9(0x283)][_0x5505d9(0x392)](_0x1d12b7[_0x5505d9(0x387)]),_0x4ce818['set'](_0x266d8e,_0x580d6c);}}),{'skeleton':_0x978284,'cursors':_0x4ce818};}));}return _0x3269bf({'skeleton':null,'cursors':new Map()});}))[_0x361529(0x358)](({skeleton:_0x4b8f7f,cursors:_0x594ce1})=>{const _0xd91556=_0x361529;this[_0xd91556(0x35f)](),_0x4b8f7f&&this['_updateCollabCursors'](_0x4b8f7f,_0x594ce1);}),this[_0x361529(0x29d)][_0x361529(0x36a)]['subscribe'](_0x4da8d2=>{const _0x35b2a8=_0x361529;if(_0x4da8d2==null)return;const {skeleton:_0x26fc2c}=_0x4da8d2,{scene:_0x252aed}=this[_0x35b2a8(0x32a)];_0x252aed[_0x35b2a8(0x289)][_0x35b2a8(0x2af)](_0x56d432(_0x321671=>{const _0x2b9544=_0x35b2a8;var _0x5c7bb9,_0x4a132e;const {offsetX:_0x6bca85,offsetY:_0x536e6f}=_0x321671,{x:_0x5c94cb,y:_0x21a476}=_0x252aed[_0x2b9544(0x35e)](_0x380419[_0x2b9544(0x3c9)]([_0x6bca85,_0x536e6f])),{scaleX:_0x4ccc60,scaleY:_0x135d73}=_0x252aed[_0x2b9544(0x20a)](),_0x1c6502=_0x252aed['getViewport'](_0x58dfdc[_0x2b9544(0x393)]),_0x3315d0=_0x252aed[_0x2b9544(0x292)](_0x380419[_0x2b9544(0x3c9)]([_0x5c94cb,_0x21a476]),_0x1c6502),_0x16dded=_0x26fc2c[_0x2b9544(0x2a5)](_0x6bca85,_0x536e6f,_0x4ccc60,_0x135d73,_0x3315d0);((_0x5c7bb9=this[_0x2b9544(0x343)])==null?void 0x0:_0x5c7bb9[_0x2b9544(0x37e)])===_0x16dded[_0x2b9544(0x37e)]&&((_0x4a132e=this[_0x2b9544(0x343)])==null?void 0x0:_0x4a132e[_0x2b9544(0x367)])===_0x16dded['row']||this[_0x2b9544(0x29f)][_0x2b9544(0x306)](_0x568b11=>{const _0x5468f2=_0x2b9544;_0x568b11[_0x5468f2(0x394)](_0x16dded);});},0x64));});}[_0x7bdef9(0x2d3)](_0x324b6c,_0x1de7c7){const _0x4b96f4=_0x7bdef9;var _0x314224;const _0x230a24=(_0x314224=this[_0x4b96f4(0x29d)][_0x4b96f4(0x29a)]())==null?void 0x0:_0x314224['skeleton'];if(!_0x230a24)return;const _0x1afc01=this[_0x4b96f4(0x3c2)]();if(!_0x1afc01)return;this[_0x4b96f4(0x29f)][_0x4b96f4(0x306)](_0x42e5e6=>{const _0x129280=_0x4b96f4;_0x42e5e6[_0x129280(0x3b9)]();});const {scene:_0xcc3158}=_0x1afc01,_0x41bafc=Ji(Array['from'](_0x1de7c7[_0x4b96f4(0x30e)]()))[_0x4b96f4(0x239)](_0x303764=>{const _0x259752=_0x4b96f4,{color:_0x27606a,range:_0x4f3607,name:_0x82ff51,selection:_0x2578ad,sheetID:_0x4f0204}=_0x303764,{startColumn:_0x483386,startRow:_0x2b6b2c,endColumn:_0xd3c6fc,endRow:_0xaef4da}=_0x4f3607,_0x33c506=_0x49cbb2(_0x2b6b2c,_0x483386,_0xcc3158,_0x230a24),_0x15340b=_0x49cbb2(_0xaef4da,_0xd3c6fc,_0xcc3158,_0x230a24),{columnHeaderHeightAndMarginTop:_0x4838ab}=_0x230a24,{startX:_0x112fa0,startY:_0x1f0c35}=_0x33c506,{endX:_0x22d58c,endY:_0x54a398}=_0x15340b,_0xe7c8e6=_0x22d58c-_0x112fa0,_0x440e7d=_0x54a398-_0x1f0c35,_0x3f036d={'labelPosition':_0x1f0c35-_0x4838ab>=J?_0x259752(0x327):_0x259752(0x1e5),'sheetID':_0x4f0204,'range':_0x4f3607,'color':_0x27606a,'name':_0x82ff51,'selection':_0x2578ad,'left':_0x112fa0,'top':_0x1f0c35,'width':_0xe7c8e6,'height':_0x440e7d,'evented':!0x1,'zIndex':zi};return new Xi(_0x82ff51,_0x3f036d);});_0xcc3158[_0x4b96f4(0x3d3)](_0x41bafc,Vi),this[_0x4b96f4(0x29f)]=new Set(_0x41bafc);}['_removeCollabCursors'](){const _0x1e91d9=_0x7bdef9;var _0x405a92;(_0x405a92=this[_0x1e91d9(0x29f)])==null||_0x405a92[_0x1e91d9(0x306)](_0x1e2578=>_0x1e2578[_0x1e91d9(0x1fc)]());}[_0x7bdef9(0x3c2)](){return _0x44d870(this['_context']['unit'],this['_context']);}};Pe=Ki([pe(0x1,_0x28e459(_0x51a48d)),pe(0x2,_0x28e459(F)),pe(0x3,_0x28e459(_0x4580bb))],Pe);function Ji(_0x38efe0){const _0x4f31f5=_0x7bdef9,_0x43483a=new Map();return _0x38efe0[_0x4f31f5(0x306)](_0x310b63=>{const _0x301546=_0x4f31f5;if(_0x43483a[_0x301546(0x2c4)](_0x310b63[_0x301546(0x323)])){const _0x149ca5=_0x43483a[_0x301546(0x1fe)](_0x310b63[_0x301546(0x323)]);_0x149ca5[_0x301546(0x3d5)]+=',\x20'+_0x310b63[_0x301546(0x3d5)];}else _0x43483a[_0x301546(0x210)](_0x310b63[_0x301546(0x323)],_0x310b63);}),Array['from'](_0x43483a[_0x4f31f5(0x30e)]());}var Zi=Object[_0x7bdef9(0x2a7)],Qi=(_0x53fc97,_0x3219ad,_0x33be16,_0x1a3176)=>{const _0x28767c=_0x7bdef9;for(var _0x1d9631=_0x1a3176>0x1?void 0x0:_0x1a3176?Zi(_0x3219ad,_0x33be16):_0x3219ad,_0xc18652=_0x53fc97[_0x28767c(0x3e1)]-0x1,_0x20bc49;_0xc18652>=0x0;_0xc18652--)(_0x20bc49=_0x53fc97[_0xc18652])&&(_0x1d9631=_0x20bc49(_0x1d9631)||_0x1d9631);return _0x1d9631;},B=(_0x4924b7,_0x4d337b)=>(_0x1f0f93,_0x53ca7c)=>_0x4d337b(_0x1f0f93,_0x53ca7c,_0x4924b7);let ne=class extends _0x5f8b08{constructor(_0x49cf2c,_0x2bb566,_0x5fd0ef,_0x9fcd9e,_0x5b508e,_0x492836){const _0x205f3b=_0x7bdef9;super(),this['_beforeCloseService']=_0x49cf2c,this[_0x205f3b(0x2fb)]=_0x2bb566,this[_0x205f3b(0x257)]=_0x5fd0ef,this['_messageService']=_0x9fcd9e,this[_0x205f3b(0x33f)]=_0x5b508e,this[_0x205f3b(0x2c7)]=_0x492836,this[_0x205f3b(0x1eb)](),this['_initEvent']();}[_0x7bdef9(0x1eb)](){const _0x23b7c7=_0x7bdef9;this['disposeWithMe'](this[_0x23b7c7(0x1e1)][_0x23b7c7(0x211)](()=>{const _0x1f80ff=_0x23b7c7;if(this[_0x1f80ff(0x2fb)][_0x1f80ff(0x23a)][_0x1f80ff(0x383)])return this[_0x1f80ff(0x2c7)]['t'](_0x1f80ff(0x305));}));}[_0x7bdef9(0x255)](){const _0x162c3f=_0x7bdef9;this[_0x162c3f(0x28a)](this['_collaborationUIEventService'][_0x162c3f(0x359)][_0x162c3f(0x358)](_0x27532e=>{const _0x242ae0=_0x162c3f;_0x27532e['id']===_0x4ea152[_0x242ae0(0x237)]&&this[_0x242ae0(0x1e9)][_0x242ae0(0x3d0)]({'type':_0x5c3688[_0x242ae0(0x266)],'content':this[_0x242ae0(0x2c7)]['t']('collaboration.single-unit.warning')}),_0x27532e['id']===_0x4ea152[_0x242ae0(0x201)]&&this[_0x242ae0(0x1e9)][_0x242ae0(0x3d0)]({'type':_0x5c3688[_0x242ae0(0x266)],'content':this[_0x242ae0(0x2c7)]['t'](_0x242ae0(0x294))}),_0x27532e['id']===_0x4ea152[_0x242ae0(0x2fe)]&&this[_0x242ae0(0x33f)]['show']({'title':this[_0x242ae0(0x2c7)]['t'](_0x242ae0(0x389)),'content':this['_localeService']['t'](_0x242ae0(0x2ed)),'type':_0x242ae0(0x218),'duration':0x0}),_0x27532e['id']===_0x4ea152['CONFLICT']&&this[_0x242ae0(0x1e9)]['show']({'type':_0x5c3688['Error'],'content':this[_0x242ae0(0x2c7)]['t'](_0x242ae0(0x294))+'('+_0x27532e[_0x242ae0(0x388)]+')'}),_0x27532e['id']===_0x4ea152[_0x242ae0(0x23d)]&&this[_0x242ae0(0x1e9)][_0x242ae0(0x3d0)]({'type':_0x5c3688[_0x242ae0(0x266)],'content':this[_0x242ae0(0x2c7)]['t'](_0x27532e[_0x242ae0(0x388)]||'')}),_0x27532e['id']===_0x4ea152['SOCKET_FAILED_RETRY']&&this[_0x242ae0(0x1e9)]['show']({'type':_0x5c3688[_0x242ae0(0x266)],'content':this[_0x242ae0(0x2c7)]['t'](_0x242ae0(0x2cf))}),_0x27532e['id']===_0x4ea152['SOCKET_FAILED']&&this[_0x242ae0(0x1e9)][_0x242ae0(0x3d0)]({'type':_0x5c3688['Error'],'content':this[_0x242ae0(0x2c7)]['t'](_0x242ae0(0x24d))}),_0x27532e['id']===_0x4ea152['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x242ae0(0x1e9)][_0x242ae0(0x3d0)]({'type':_0x5c3688[_0x242ae0(0x297)],'content':this[_0x242ae0(0x2c7)]['t'](_0x242ae0(0x3a9))});}));}};ne=Qi([B(0x0,_0xd3bcc7),B(0x1,_0x54e499),B(0x2,_0x28e459(_0x5d11d7)),B(0x3,_0x1eebbb),B(0x4,_0xf370a),B(0x5,_0x28e459(_0x157089))],ne);const qi=_0x7bdef9(0x33a),et={};var en=Object[_0x7bdef9(0x2a7)],tn=(_0x535c7c,_0x2f9d3d,_0x3e3fb6,_0x5d51bd)=>{const _0x4f6460=_0x7bdef9;for(var _0x23ca78=_0x5d51bd>0x1?void 0x0:_0x5d51bd?en(_0x2f9d3d,_0x3e3fb6):_0x2f9d3d,_0x19a7c4=_0x535c7c[_0x4f6460(0x3e1)]-0x1,_0x46c527;_0x19a7c4>=0x0;_0x19a7c4--)(_0x46c527=_0x535c7c[_0x19a7c4])&&(_0x23ca78=_0x46c527(_0x23ca78)||_0x23ca78);return _0x23ca78;},tt=(_0x51751e,_0x3f7eff)=>(_0x783e25,_0x1a02eb)=>_0x3f7eff(_0x783e25,_0x1a02eb,_0x51751e);let re=class{constructor(_0x59a6fa,_0x98b56){this['_transformService']=_0x59a6fa,this['_renderManagerService']=_0x98b56;}[_0x7bdef9(0x2e2)](_0x593cf3){const _0x2ba0f8=_0x7bdef9;this[_0x2ba0f8(0x278)](_0x593cf3),this[_0x2ba0f8(0x2d5)](_0x593cf3);}['transformRemoteChangeset'](_0x131e5f){const _0x3ae59a=_0x7bdef9,{unitID:_0x2b2cd7}=_0x131e5f,_0x2da663=this[_0x3ae59a(0x348)]['getRenderById'](_0x2b2cd7)[_0x3ae59a(0x375)](_0x360055),{redoCache:_0x579ba0}=_0x2da663['getUndoRedoMutationParamsCache']();if(_0x579ba0[_0x3ae59a(0x3e1)]===0x0)return _0x131e5f;let _0x1c4232=_0x18fe65[_0x3ae59a(0x223)](_0x131e5f[_0x3ae59a(0x2f6)][0x0]);for(let _0x8bea87=0x0;_0x8bea87<_0x579ba0[_0x3ae59a(0x3e1)];_0x8bea87++){const _0x3280bb={'id':_0x3ae59a(0x1dc),'params':{..._0x579ba0[_0x8bea87]}},_0x365977=this['_transformService'][_0x3ae59a(0x27e)](_0x1c4232,_0x3280bb,!0x1);if(_0x1db28a(_0x365977))throw _0x365977[_0x3ae59a(0x218)];_0x1c4232=_0x365977[_0x3ae59a(0x3a5)];}return{..._0x18fe65[_0x3ae59a(0x223)](_0x131e5f),'mutations':[_0x1c4232]};}[_0x7bdef9(0x278)](_0x559083){const _0x3c1f97=_0x7bdef9,{unitID:_0x544686}=_0x559083,_0x1052cc=this['_renderManagerService'][_0x3c1f97(0x24c)](_0x544686)[_0x3c1f97(0x375)](_0x360055),{undoCache:_0x405ae5,redoCache:_0x571c1a}=_0x1052cc['getUndoRedoMutationParamsCache']();if(_0x405ae5[_0x3c1f97(0x3e1)]===0x0||_0x571c1a[_0x3c1f97(0x3e1)]===0x0)return;const _0x741024=[],_0x219477=[];let _0x47d9f0=_0x18fe65['deepClone'](_0x559083[_0x3c1f97(0x2f6)][0x0]),_0x444d98=_0x18fe65[_0x3c1f97(0x223)](_0x559083[_0x3c1f97(0x2f6)][0x0]);for(let _0x1c61f6=_0x405ae5[_0x3c1f97(0x3e1)]-0x1;_0x1c61f6>=0x0;_0x1c61f6--){const _0x20ce9b={'id':_0x3c1f97(0x1dc),'params':{..._0x405ae5[_0x1c61f6]}},_0x56834b={'id':_0x3c1f97(0x1dc),'params':{..._0x571c1a[_0x1c61f6]}},_0x1d3ae8=this['_transformService'][_0x3c1f97(0x27e)](_0x47d9f0,_0x20ce9b,!0x1),_0x41553e=this[_0x3c1f97(0x274)][_0x3c1f97(0x27e)](_0x444d98,_0x56834b,!0x1);if(_0x1db28a(_0x1d3ae8))throw _0x1d3ae8[_0x3c1f97(0x218)];if(_0x1db28a(_0x41553e))throw _0x41553e[_0x3c1f97(0x218)];_0x741024[_0x3c1f97(0x3ea)](_0x1d3ae8[_0x3c1f97(0x34a)][_0x3c1f97(0x3d4)]),_0x219477[_0x3c1f97(0x3ea)](_0x41553e[_0x3c1f97(0x34a)][_0x3c1f97(0x3d4)]),_0x47d9f0=_0x1d3ae8[_0x3c1f97(0x3a5)],_0x444d98=_0x41553e['m1Prime'];}_0x1052cc[_0x3c1f97(0x21b)]({'undoCache':_0x741024,'redoCache':_0x219477});}['_transformPreviousActiveRange'](_0x546a2a){const _0x38f173=_0x7bdef9,{unitID:_0x22eb75}=_0x546a2a,_0x296cae=this[_0x38f173(0x348)][_0x38f173(0x24c)](_0x22eb75)[_0x38f173(0x375)](_0x360055),_0x4f0b57=_0x296cae[_0x38f173(0x33c)]();if(_0x4f0b57==null)return;const _0x3b6e92=[{'id':_0x38f173(0x1dc),'params':{'unitId':_0x546a2a['unitID'],'actions':null,'textRanges':[_0x4f0b57]}}],_0x5a5645=this['_transformService'][_0x38f173(0x280)](_0x546a2a,_0x3b6e92);if(!_0x3cfba8(_0x5a5645))throw _0x5a5645[_0x38f173(0x218)];const _0xad1b0f=_0x5a5645['m2Prime'][0x0]['params'][_0x38f173(0x355)];Array['isArray'](_0xad1b0f)&&_0xad1b0f[_0x38f173(0x3e1)]&&_0x296cae[_0x38f173(0x3a2)](_0xad1b0f[0x0]);}};re=tn([tt(0x0,_0x51afb8),tt(0x1,_0x56d891)],re);var sn=Object[_0x7bdef9(0x2a7)],nn=(_0x5533b8,_0x3b2d6c,_0x3e7229,_0x59b785)=>{const _0x470116=_0x7bdef9;for(var _0x4a4b2c=_0x59b785>0x1?void 0x0:_0x59b785?sn(_0x3b2d6c,_0x3e7229):_0x3b2d6c,_0x4e179f=_0x5533b8[_0x470116(0x3e1)]-0x1,_0x3354ee;_0x4e179f>=0x0;_0x4e179f--)(_0x3354ee=_0x5533b8[_0x4e179f])&&(_0x4a4b2c=_0x3354ee(_0x4a4b2c)||_0x4a4b2c);return _0x4a4b2c;},Ce=(_0x35ffdd,_0x35c39d)=>(_0x58b150,_0x2a8123)=>_0x35c39d(_0x58b150,_0x2a8123,_0x35ffdd);let oe=class{constructor(_0x4f1c97,_0x35a1fc,_0x23eb7f){const _0x574c4d=_0x7bdef9;this[_0x574c4d(0x371)]=_0x4f1c97,this[_0x574c4d(0x274)]=_0x35a1fc,this[_0x574c4d(0x215)]=_0x23eb7f;}[_0x7bdef9(0x22f)](_0x27b052){const _0x5905f0=_0x7bdef9;this[_0x5905f0(0x3ef)](_0x27b052);}[_0x7bdef9(0x26b)](_0x4a2c35){const _0x1e39bc=_0x7bdef9,{unitID:_0x15cc64}=_0x4a2c35,{collaboration:_0x58321d}=this[_0x1e39bc(0x215)][_0x1e39bc(0x31c)](_0x15cc64);if(_0x58321d[_0x1e39bc(0x3e1)]===0x0)return _0x4a2c35;let _0x4dfef0=_0x18fe65[_0x1e39bc(0x223)](_0x4a2c35[_0x1e39bc(0x2f6)][0x0]);for(let _0x4deada=0x0;_0x4deada<_0x58321d['length'];_0x4deada++){const _0x54ddf1={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x58321d[_0x4deada][_0x1e39bc(0x36f)],..._0x58321d[_0x4deada][_0x1e39bc(0x382)]}},_0x46e049=this[_0x1e39bc(0x274)][_0x1e39bc(0x27e)](_0x4dfef0,_0x54ddf1,!0x1);if(_0x1db28a(_0x46e049))throw _0x46e049[_0x1e39bc(0x218)];_0x4dfef0=_0x46e049['m1Prime'];}return{..._0x18fe65['deepClone'](_0x4a2c35),'mutations':[_0x4dfef0]};}['_transformHistoryAndStateStack'](_0x205dde){const _0x317296=_0x7bdef9,{unitID:_0x21a473}=_0x205dde,{history:_0x278997,collaboration:_0x12109a}=this[_0x317296(0x215)]['getStateCache'](_0x21a473);if(_0x278997['length']===0x0&&_0x12109a[_0x317296(0x3e1)]===0x0)return;const _0x5e8c0c=[],_0x331a47=[];let _0x399129=_0x18fe65[_0x317296(0x223)](_0x205dde['mutations'][0x0]),_0x29fcda=_0x18fe65[_0x317296(0x223)](_0x205dde[_0x317296(0x2f6)][0x0]);for(let _0x564873=_0x278997[_0x317296(0x3e1)]-0x1;_0x564873>=0x0;_0x564873--){const _0x3fbb31={'id':_0x317296(0x1dc),'params':{'unitId':_0x278997[_0x564873]['unitId'],..._0x278997[_0x564873][_0x317296(0x3b3)]}},_0x193229={'id':_0x317296(0x1dc),'params':{'unitId':_0x278997[_0x564873][_0x317296(0x36f)],..._0x278997[_0x564873][_0x317296(0x382)]}},_0x9003c9=this[_0x317296(0x274)]['transformMutation'](_0x399129,_0x3fbb31,!0x1),_0x3546e3=this[_0x317296(0x274)][_0x317296(0x27e)](_0x29fcda,_0x193229,!0x1);if(_0x1db28a(_0x9003c9))throw _0x9003c9[_0x317296(0x218)];if(_0x1db28a(_0x3546e3))throw _0x3546e3['error'];_0x5e8c0c[_0x317296(0x3ea)]({..._0x278997[_0x564873],'undoState':_0x9003c9[_0x317296(0x34a)][_0x317296(0x3d4)],'redoState':_0x3546e3['m2Prime'][_0x317296(0x3d4)]}),_0x399129=_0x9003c9[_0x317296(0x3a5)],_0x29fcda=_0x3546e3[_0x317296(0x3a5)];}_0x399129=_0x18fe65[_0x317296(0x223)](_0x205dde[_0x317296(0x2f6)][0x0]),_0x29fcda=_0x18fe65[_0x317296(0x223)](_0x205dde[_0x317296(0x2f6)][0x0]);for(let _0x1e46e9=_0x12109a[_0x317296(0x3e1)]-0x1;_0x1e46e9>=0x0;_0x1e46e9--){const _0x30c9c4={'id':_0x317296(0x1dc),'params':{'unitId':_0x12109a[_0x1e46e9][_0x317296(0x36f)],..._0x12109a[_0x1e46e9][_0x317296(0x3b3)]}},_0x1365d4={'id':_0x317296(0x1dc),'params':{'unitId':_0x12109a[_0x1e46e9]['unitId'],..._0x12109a[_0x1e46e9]['redoState']}},_0x206780=this[_0x317296(0x274)][_0x317296(0x27e)](_0x399129,_0x30c9c4,!0x1),_0x5d69e7=this[_0x317296(0x274)]['transformMutation'](_0x29fcda,_0x1365d4,!0x1);if(_0x1db28a(_0x206780))throw _0x206780[_0x317296(0x218)];if(_0x1db28a(_0x5d69e7))throw _0x5d69e7['error'];_0x331a47[_0x317296(0x3ea)]({..._0x12109a[_0x1e46e9],'undoState':_0x206780['m2Prime'][_0x317296(0x3d4)],'redoState':_0x5d69e7[_0x317296(0x34a)]['params']}),_0x399129=_0x206780[_0x317296(0x3a5)],_0x29fcda=_0x5d69e7[_0x317296(0x3a5)];}this[_0x317296(0x215)][_0x317296(0x200)](_0x21a473,{'history':_0x5e8c0c,'collaboration':_0x331a47});}};oe=nn([Ce(0x0,_0x28e459(_0x5706a4)),Ce(0x1,_0x51afb8),Ce(0x2,_0x28e459(_0x177418))],oe);var rn=Object['getOwnPropertyDescriptor'],on=(_0x4e3e5b,_0x58ca9e,_0x54f3ad,_0x515dbe)=>{const _0x498fdb=_0x7bdef9;for(var _0x374a84=_0x515dbe>0x1?void 0x0:_0x515dbe?rn(_0x58ca9e,_0x54f3ad):_0x58ca9e,_0x41dbcc=_0x4e3e5b[_0x498fdb(0x3e1)]-0x1,_0x2a5d5e;_0x41dbcc>=0x0;_0x41dbcc--)(_0x2a5d5e=_0x4e3e5b[_0x41dbcc])&&(_0x374a84=_0x2a5d5e(_0x374a84)||_0x374a84);return _0x374a84;},st=(_0x41385e,_0x4458f6)=>(_0x484511,_0x155513)=>_0x4458f6(_0x484511,_0x155513,_0x41385e);let ae=class{constructor(_0x1dcd5f,_0x3bd9c7){const _0x238b60=_0x7bdef9;this[_0x238b60(0x371)]=_0x1dcd5f,this['_transformService']=_0x3bd9c7;}['transformSelections'](_0x788d86){const _0x2a2f8c=_0x7bdef9;var _0x348e32;const _0x531080=this['_injector'][_0x2a2f8c(0x1fe)](_0x4c3c8c),_0x2f4931=(_0x348e32=_0x531080[_0x2a2f8c(0x36d)]())!=null?_0x348e32:[];if(_0x2f4931['length']===0x0)return;const _0x47eb8d=_0x788d86['unitID'],_0x50bfa0=[{'id':_0x2a2f8c(0x1dc),'params':{'unitId':_0x47eb8d,'actions':null,'textRanges':_0x2f4931}}],_0x1563f2=this[_0x2a2f8c(0x274)][_0x2a2f8c(0x280)](_0x788d86,_0x50bfa0);if(!_0x3cfba8(_0x1563f2))throw _0x1563f2[_0x2a2f8c(0x218)];const _0x1ee059=_0x1563f2[_0x2a2f8c(0x34a)][0x0][_0x2a2f8c(0x3d4)][_0x2a2f8c(0x355)];Array['isArray'](_0x1ee059)&&_0x1ee059[_0x2a2f8c(0x3e1)]&&_0x531080[_0x2a2f8c(0x2ea)](_0x1ee059,{'unitId':_0x47eb8d,'subUnitId':_0x47eb8d},!0x1);}};ae=on([st(0x0,_0x28e459(_0x5706a4)),st(0x1,_0x51afb8)],ae);var an=Object[_0x7bdef9(0x2a7)],cn=(_0x4b9bab,_0x2bbdfa,_0x45ce69,_0x5ec7ed)=>{const _0x4d2765=_0x7bdef9;for(var _0x42e30e=_0x5ec7ed>0x1?void 0x0:_0x5ec7ed?an(_0x2bbdfa,_0x45ce69):_0x2bbdfa,_0x2b9198=_0x4b9bab[_0x4d2765(0x3e1)]-0x1,_0x57c43c;_0x2b9198>=0x0;_0x2b9198--)(_0x57c43c=_0x4b9bab[_0x2b9198])&&(_0x42e30e=_0x57c43c(_0x42e30e)||_0x42e30e);return _0x42e30e;},N=(_0xa19afd,_0xcf73b9)=>(_0x3d1f8e,_0x22ee0e)=>_0xcf73b9(_0x3d1f8e,_0x22ee0e,_0xa19afd);let ce=class extends _0x5f8b08{constructor(_0x5d5440,_0x4d7644,_0x3b1944,_0x489345,_0x5c79d6,_0x27f275,_0x1fe331,_0x9a5cf4){const _0x5ec7a3=_0x7bdef9;super(),_(this,_0x5ec7a3(0x303),new _0xf21850(_0x5b4a83[_0x5ec7a3(0x2cc)])),(this[_0x5ec7a3(0x215)]=_0x5d5440,this['_collaborationController']=_0x4d7644,this[_0x5ec7a3(0x2f1)]=_0x3b1944,this['_docTransformStateCacheService']=_0x489345,this['_docTransformSelectionsService']=_0x5c79d6,this[_0x5ec7a3(0x2cd)]=_0x27f275,this[_0x5ec7a3(0x1e9)]=_0x1fe331,this[_0x5ec7a3(0x2c7)]=_0x9a5cf4,this[_0x5ec7a3(0x30c)]());}[_0x7bdef9(0x30c)](){const _0x58a6b3=_0x7bdef9;this[_0x58a6b3(0x28a)](this[_0x58a6b3(0x376)][_0x58a6b3(0x2e0)][_0x58a6b3(0x358)](_0x36239e=>{const _0x1b45ae=_0x58a6b3,_0x432be9=this[_0x1b45ae(0x215)][_0x1b45ae(0x2a4)][_0x1b45ae(0x358)](_0x204174=>{const _0xb62a39=_0x1b45ae;if(_0x204174==null)return;const {unitId:_0xb85df5,redoState:_0x5baba0,commandId:_0x2e2e9e}=_0x204174;if(_0xb85df5!==_0x36239e[_0xb62a39(0x321)])return;const _0x5dd053={'id':_0x2e2e9e,'type':_0x5f54ad[_0xb62a39(0x357)],'params':{'unitId':_0xb85df5,'actions':_0x5baba0['actions'],'textRanges':null}};_0x36239e[_0xb62a39(0x2a1)](_0x5dd053);});if(_0x36239e[_0x1b45ae(0x28a)](_0x432be9),_0x36239e instanceof _0x138107){const _0x3d0725={'onTransformIME':_0x5ef417=>this['_docTransformIMECacheService']['transformIMECache'](_0x5ef417),'onTransformState':_0x57243b=>this['_docTransformStateCacheService']['transformStateCache'](_0x57243b),'onTransformSelections':_0x746008=>this['_docTransformSelectionsService'][_0x1b45ae(0x1ea)](_0x746008),'onSyncEditingCollabCursor':_0x5e9f1a=>this[_0x1b45ae(0x2cd)][_0x1b45ae(0x318)](_0x5e9f1a),'onTransformRemoteChangesetByIMECache':_0x3915e5=>this[_0x1b45ae(0x2f1)][_0x1b45ae(0x26b)](_0x3915e5),'onTransformRemoteChangesetByStateCache':_0x13dfbd=>this[_0x1b45ae(0x314)][_0x1b45ae(0x26b)](_0x13dfbd)};_0x36239e['addHandlerCallback'](_0x3d0725);}}));}};ce=cn([N(0x0,_0x28e459(_0x177418)),N(0x1,_0x28e459(_0x4ca7db)),N(0x2,_0x28e459(re)),N(0x3,_0x28e459(oe)),N(0x4,_0x28e459(ae)),N(0x5,_0x28e459(Fe)),N(0x6,_0x1eebbb),N(0x7,_0x28e459(_0x157089))],ce);var ln=Object[_0x7bdef9(0x2a7)],_n=(_0x471721,_0x307c05,_0xa87bb,_0x455b86)=>{const _0x1faa95=_0x7bdef9;for(var _0x586b9b=_0x455b86>0x1?void 0x0:_0x455b86?ln(_0x307c05,_0xa87bb):_0x307c05,_0x19c22c=_0x471721[_0x1faa95(0x3e1)]-0x1,_0x106ca3;_0x19c22c>=0x0;_0x19c22c--)(_0x106ca3=_0x471721[_0x19c22c])&&(_0x586b9b=_0x106ca3(_0x586b9b)||_0x586b9b);return _0x586b9b;},Ee=(_0xe5b12e,_0x4b2e51)=>(_0x4f5e8f,_0x1ccc02)=>_0x4b2e51(_0x4f5e8f,_0x1ccc02,_0xe5b12e);let we=class extends _0x5f8b08{constructor(_0x1c5757,_0x347f73,_0x114f83){const _0x7ac82d=_0x7bdef9;super(),_(this,_0x7ac82d(0x2f3),new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x7ac82d(0x1e2),!0x1),(this[_0x7ac82d(0x3df)]=_0x1c5757,this['_localStorageService']=_0x347f73,this[_0x7ac82d(0x24a)]=_0x114f83);}[_0x7bdef9(0x3d1)](){const _0x509dc5=_0x7bdef9;this[_0x509dc5(0x1e2)]=!0x0;}[_0x7bdef9(0x3ca)](){const _0x3bcbcc=_0x7bdef9;this[_0x3bcbcc(0x1e2)]=!0x1;}get[_0x7bdef9(0x23a)](){const _0x3ecf31=_0x7bdef9;return this[_0x3ecf31(0x248)];}[_0x7bdef9(0x1fc)](){const _0x598d2d=_0x7bdef9;this[_0x598d2d(0x28d)]()[_0x598d2d(0x3ce)](()=>super['dispose']());}async[_0x7bdef9(0x3eb)](_0x4f456c){const _0x10aca7=_0x7bdef9;return this[_0x10aca7(0x1e2)]?null:this[_0x10aca7(0x311)]['getItem'](_0x155a1f(_0x4f456c));}async[_0x7bdef9(0x3e4)](_0x2c4506,_0x2d4c51){const _0x509945=_0x7bdef9;return!!this[_0x509945(0x311)][_0x509945(0x2ec)](_0x2c4506,_0x2d4c51);}[_0x7bdef9(0x307)](_0xe890f8,_0xd1ec98,_0x12f949,_0x16e7df){const _0x2a6df7=_0x7bdef9,_0x3227d3=this['_revisionService'][_0x2a6df7(0x261)](_0xe890f8);this[_0x2a6df7(0x2f3)][_0x2a6df7(0x210)](_0xe890f8,{'unitID':_0xe890f8,'type':_0xd1ec98,'awaitingChangeset':_0x12f949,'mutations':_0x16e7df,'rev':_0x3227d3}),this['_saveTaskMap']['has'](_0xe890f8)||this['_scheduleSaving'](_0xe890f8);}[_0x7bdef9(0x2e6)](_0x290000){const _0x352352=_0x7bdef9,_0x505c03=this[_0x352352(0x36b)]();_0x505c03===0x0?this[_0x352352(0x3e7)](_0x290000):this['_saveTaskMap'][_0x352352(0x210)](_0x290000,setTimeout(()=>this[_0x352352(0x3e7)](_0x290000),_0x505c03));}['_getSaveTimeout'](){const _0x458e92=_0x7bdef9;var _0x307127;return(_0x307127=this[_0x458e92(0x3df)][_0x458e92(0x27a)](_0x1e2002))!=null?_0x307127:_0x552100;}[_0x7bdef9(0x3e7)](_0x451476){const _0x5d09f1=_0x7bdef9,_0x7864f3=this[_0x5d09f1(0x248)][_0x5d09f1(0x1fe)](_0x451476);return _0x7864f3!==void 0x0&&window[_0x5d09f1(0x2fd)](_0x7864f3),this['_localStorageService'][_0x5d09f1(0x2ec)](_0x155a1f(_0x451476),this['_cachedData']['get'](_0x451476))[_0x5d09f1(0x3ce)](()=>this[_0x5d09f1(0x248)][_0x5d09f1(0x2c6)](_0x451476));}async[_0x7bdef9(0x28d)](){const _0x26313d=_0x7bdef9,_0x40fc74=[];this['_saveTaskMap']['forEach']((_0x144ef6,_0x498203)=>{const _0x15ad52=_0x2ab1;window[_0x15ad52(0x2fd)](_0x144ef6),_0x40fc74[_0x15ad52(0x287)](this['_saveCache'](_0x498203)[_0x15ad52(0x3ce)](()=>{const _0x5edbfa=_0x15ad52;this['_saveTaskMap'][_0x5edbfa(0x2c6)](_0x498203);}));}),await Promise[_0x26313d(0x1e0)](_0x40fc74);}};we=_n([Ee(0x0,_0x54983c),Ee(0x1,_0x4bd2f1),Ee(0x2,_0x28e459(_0x42e7a9))],we);class hn extends _0x5cab1a{constructor(){const _0x1a4fb6=_0x7bdef9;super(),_(this,_0x1a4fb6(0x286)),this['urlChange$']=_0xe3cc5e(window,_0x1a4fb6(0x288))[_0x1a4fb6(0x35a)](_0x585971(this[_0x1a4fb6(0x228)]),_0x2e1b4d(0x1),_0x5e4884(void 0x0));}[_0x7bdef9(0x226)](_0x5b7663,_0x2d3651,_0x286050=!0x1){const _0x33c40b=_0x7bdef9,_0x5a1510=new URL(window[_0x33c40b(0x204)][_0x33c40b(0x395)]);_0x5a1510[_0x33c40b(0x346)]['set'](_0x5b7663,_0x2d3651),_0x286050?window[_0x33c40b(0x2ee)]['replaceState']('','',_0x5a1510['toString']()):window['history'][_0x33c40b(0x3b0)]('','',_0x5a1510[_0x33c40b(0x32c)]());}[_0x7bdef9(0x3d2)](_0x1df734,_0x559cca=!0x1){const _0xdbd37c=_0x7bdef9,_0x4f6d52=new URL(window['location']['href']);_0x4f6d52[_0xdbd37c(0x346)]['delete'](_0x1df734),_0x559cca?window[_0xdbd37c(0x2ee)][_0xdbd37c(0x2b3)]('','',_0x4f6d52[_0xdbd37c(0x32c)]()):window[_0xdbd37c(0x2ee)][_0xdbd37c(0x3b0)]('','',_0x4f6d52['toString']());}[_0x7bdef9(0x2f7)](_0x43f58a){const _0x1b45c0=_0x7bdef9;var _0x9b4fc7;return(_0x9b4fc7=new URL(window[_0x1b45c0(0x204)][_0x1b45c0(0x395)])[_0x1b45c0(0x346)][_0x1b45c0(0x1fe)](_0x43f58a))!=null?_0x9b4fc7:void 0x0;}}var un=Object['defineProperty'],dn=Object['getOwnPropertyDescriptor'],fn=(_0x2210af,_0x5c5719,_0x490954)=>_0x5c5719 in _0x2210af?un(_0x2210af,_0x5c5719,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x490954}):_0x2210af[_0x5c5719]=_0x490954,Sn=(_0x1b5544,_0x3ffda4,_0x478367,_0x156b4f)=>{const _0x50e8b9=_0x7bdef9;for(var _0x25e496=_0x156b4f>0x1?void 0x0:_0x156b4f?dn(_0x3ffda4,_0x478367):_0x3ffda4,_0x10f204=_0x1b5544[_0x50e8b9(0x3e1)]-0x1,_0x2ed812;_0x10f204>=0x0;_0x10f204--)(_0x2ed812=_0x1b5544[_0x10f204])&&(_0x25e496=_0x2ed812(_0x25e496)||_0x25e496);return _0x25e496;},Oe=(_0xefacbe,_0xcd834e)=>(_0x3e60a5,_0x5e5f4e)=>_0xcd834e(_0x3e60a5,_0x5e5f4e,_0xefacbe),mn=(_0x2d4932,_0x512898,_0x3074cb)=>fn(_0x2d4932,_0x512898+'',_0x3074cb);const In='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ae=class extends _0x3a4470{constructor(_0x366d67=et,_0x43debe,_0x142254,_0x13927d){const _0x57ef7e=_0x7bdef9;super(),this[_0x57ef7e(0x331)]=_0x366d67,this[_0x57ef7e(0x348)]=_0x43debe,this[_0x57ef7e(0x371)]=_0x142254,this[_0x57ef7e(0x3df)]=_0x13927d;const {..._0x49dc60}=_0x512149({},et,this[_0x57ef7e(0x331)]);this[_0x57ef7e(0x3df)][_0x57ef7e(0x3c3)](qi,_0x49dc60);}[_0x7bdef9(0x315)](){const _0x5525a9=_0x7bdef9;this[_0x5525a9(0x1f1)](),this[_0x5525a9(0x1ed)]();}['onRendered'](){const _0x17964f=_0x7bdef9;this[_0x17964f(0x29c)]();}[_0x7bdef9(0x1f1)](){const _0xba74fb=_0x7bdef9;var _0x145a49;const _0x1e3cff=[[He],[ae],[re],[oe],[Fe],[Ut,{'useClass':hn}],[_0x4f27e6,{'useClass':_0x2595d6}],[_0x54e499,{'useClass':we}],[se],[ce],[ne],[F],[Ne],[ie]];_0x2d2570(this[_0xba74fb(0x371)],_0x1c6182(_0x1e3cff,(_0x145a49=this[_0xba74fb(0x331)])==null?void 0x0:_0x145a49[_0xba74fb(0x27b)]));}[_0x7bdef9(0x29c)](){const _0x2bf356=_0x7bdef9;this['disposeWithMe'](this[_0x2bf356(0x348)][_0x2bf356(0x33b)](_0x30fe4c[_0x2bf356(0x2e1)],[Le])),this[_0x2bf356(0x28a)](this[_0x2bf356(0x348)][_0x2bf356(0x33b)](_0x30fe4c[_0x2bf356(0x370)],[Pe]));}[_0x7bdef9(0x1ed)](){const _0xd1ce9f=_0x7bdef9;_0x1da899(this[_0xd1ce9f(0x371)],[[F],[se],[ce],[ne],[ie]]);}};mn(Ae,_0x7bdef9(0x3c0),In),Ae=Sn([_0x433821(_0x1a5fa8),Oe(0x1,_0x56d891),Oe(0x2,_0x28e459(_0x5706a4)),Oe(0x3,_0x54983c)],Ae);var vn=Object[_0x7bdef9(0x2a7)],gn=(_0x1b2d06,_0x1b1942,_0x36b772,_0x18d403)=>{for(var _0x2419f8=_0x18d403>0x1?void 0x0:_0x18d403?vn(_0x1b1942,_0x36b772):_0x1b1942,_0x233bf7=_0x1b2d06['length']-0x1,_0x4fdc3e;_0x233bf7>=0x0;_0x233bf7--)(_0x4fdc3e=_0x1b2d06[_0x233bf7])&&(_0x2419f8=_0x4fdc3e(_0x2419f8)||_0x2419f8);return _0x2419f8;},z=(_0x2f1d87,_0x17c4f4)=>(_0x30c0a9,_0x3b4fab)=>_0x17c4f4(_0x30c0a9,_0x3b4fab,_0x2f1d87);let it=class extends _0x2c4830{constructor(_0x58dbde,_0x2d65e3,_0x2252dd,_0x4545c2,_0x4e5f01){super(_0x58dbde,_0x2d65e3,_0x2252dd,_0x4545c2,_0x4e5f01);}async[_0x7bdef9(0x329)](_0x1c006b){const _0x9521e7=_0x7bdef9,_0x499296=await this[_0x9521e7(0x30f)](),_0x4210be=this[_0x9521e7(0x3b7)](_0x1c006b,_0x499296);return this[_0x9521e7(0x35d)](_0x4210be);}['_createSocketURL'](_0x218f3e,_0x3d5952){const _0x189d70=_0x7bdef9,_0x524272=typeof window>'u'?new URL(_0x218f3e):new URL(_0x218f3e,window[_0x189d70(0x204)][_0x189d70(0x232)]);_0x524272['searchParams']['set'](_0x189d70(0x3be),_0x3d5952);const _0x320394=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x189d70(0x204)][_0x189d70(0x2ca)]);return _0x320394[_0x189d70(0x1fe)](_0x189d70(0x20d))&&_0x524272[_0x189d70(0x346)]['set'](_0x189d70(0x20d),_0x320394[_0x189d70(0x1fe)](_0x189d70(0x20d))),_0x524272[_0x189d70(0x32c)]();}async[_0x7bdef9(0x30f)](){const _0xd82c6c=_0x7bdef9;var _0x434115,_0x31f8bc,_0xf8018d;const _0x334930=this[_0xd82c6c(0x3df)][_0xd82c6c(0x27a)](_0x5d2254),_0x3a8e24=(_0x434115=_0x334930==null?void 0x0:_0x334930[_0xd82c6c(0x30b)])!=null?_0x434115:_0x5e8a35;return(_0xf8018d=(_0x31f8bc=(await this[_0xd82c6c(0x25b)][_0xd82c6c(0x1fe)](_0x3a8e24,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x31f8bc[_0xd82c6c(0x31d)])!=null?_0xf8018d:'';}};function _0x1639(){const _0x4bbcbd=['_context','find','toString','addObject','_unitOnClients','entries','Failed','_config','20VdWJhC','526890lfAchZ','getUnitId','1625250AoxNat','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','INVALID_ARGUMENT','current','_updateURLWithCurrentState','collaboration-client-ui.config','registerRenderModule','getActiveRange','ALREADY_EXISTS','YUUMI_URL_COL_OUT_OF_RANGE','_notificationService','getMergeData','collab-rect-range-','1197225hrOjAB','_lastPointer','LICENSE_DISTRO_REJECTED','className','searchParams','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_renderManagerService','_backgroundColor','m2Prime','collabStatus.conflict','_drawTextRange','backgroundColor','MOBILE_HAS_BEEN_BOUND','uni.network.url-service','/run/','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_commandService','_updateLocalCursor','SYNCED','textRanges','unload','MUTATION','subscribe','event$','pipe','memberID','currentTheme$','_doCreateSocket','getRelativeToViewportCoord','_removeCollabCursors','disposeUnit','univer-flex\x20univer-items-center','_initResize','fillStyle','1em','getRangePointData','height','row','_selfUnitIDs','ENSURE_SNAPSHOT_EXECUTION','currentSkeleton$','_getSaveTimeout','OFFLINE','getDocRanges','focused$','unitId','UNIVER_SHEET','_injector','1464208NmfVNc','_init','type','with','_collaborationController','url(#on-line-icon_clip0_910_349)','PY_RUNTIME_SCRIPT_ERROR','_urlService','triggerDblclick','_docSkeleton','_name','APPLY_REVISION_CONFILICT','column','text','USER_NOT_INVITED_CODE','collab-text-range-','redoState','size','YUUMI_RATE_OVER_LIMIT','asObservable','white','color','data','permission.title','reconnect','_collabCursorState$','post','YUUMI_ASYNCIO_CANCELLED','save','startColumn','onPointerLeave$','loadUnit','getColorFromTheme','VIEW_MAIN','onMouseMove','href','InsertColCommandId','invokeId','M0\x200H16V16H0z','APPLY_DUPLICATED','_anchor','INTERNAL_ERROR','USERS_LEAVE','attrs','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','transform','[CollaborationDataLoaderController]','DeleteRangeMoveUpCommandId','setActiveRange','none','AWAITING','m1Prime','0\x200\x2016\x2016','source','subUnitId','session.collaboration-timeout','_updateSubUnitFromURLParams','INVALID_INVITE_CODE','translate(.97)','ACTIVE_UNIT_EVENT_CHANNEL','FETCH_MISS','_entityInit$','pushState','_textBubble','TEXT','undoState','executionId','_hover','displayName','_createSocketURL','_range','makeDirty','WECHAT_HAS_BEEN_BOUND','labelPosition','closePath','random','sessionTicket','add','pluginName','clipPath','_getSheetObject','setConfig','replace','result','RemoveRowCommandId','width','from','FromArray','enableLocalCache','InsertRangeMoveRightCommandId','HEADER_MENU','UNAUTHENTICATED','then','setInterval','show','disableLocalCache','removeParam','addObjects','params','name','InsertRowCommandId','onTransformChange$','_memberService','toRgbString','imageSourceType','concat','getMemberID','complete','_scheduleClearOtherTimer','_configService','font','length','_handleJoinEvent','[RemoteUniscriptService]:\x20no\x20focused\x20unit','saveOfflineData','UNDEFINED','requireSession','_saveCache','_drawRectRange','hovered','unshift','loadOfflineData','SNAPSHOT_HAS_BEEN_REMOVED','getFocusedUnit','_logService','_transformHistoryAndStateStack','_handleLeaveEvent','engine','doc.mutation.rich-text-editing','min','_session','div','all','_beforeCloseService','_disabled','round','#FFF','bottom','unit','max','arc','_messageService','transformSelections','_setupBeforeClosingHandler','assignAColorForMemberID','_initDependencies','_onRefRangeChange','some','_render','_registerDependencies','endColumn','CHANGESET_REVISION_CONFILICT','_eventUnsubscribe','1165830tVtaSy','findNodePositionByCharIndex','function','xlink:href','Unknown\x20user','icon','_colorAssignService','dispose','collabStatus.notCollab','get','setAlpha','setStateCache','CLOSE_ROOM','_toggleOffline','_onCursorUpdate','location','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_toggleOnline','_draw','restore','getSheetId','getAncestorScale','INVITE_CODE_HAS_BEEN_UES','APPLY_PERMISSION_DENIED','runId','_unitStatus','_setupSubUnitSync','set','registerBeforeClose','body','transformByState','NO_OTHER_CLIENTS_EDITING','_docStateChangeManagerService','getTypeOfUnitAdded$','5uGhwdA','error','LOGIN_FAILED','onCommandExecuted','setUndoRedoMutationParamsCache','drawWith','hide','CONNECTOR_DATA_TOO_LARGE','rgba(255,\x20255,\x20255,\x200.01)','CONFLICT','getUnhiddenWorksheets','trim','deepClone','purple.300','EMAIL_VERIFY_CODE_MISMATCH','setParam','parse','dispose$','beginPath','clearInterval','_document','black','startsWith','_clearOtherTimers','transformStateCache','_labelPosition','subunit','origin','activeSheet$','_shapes','_collabSessionService','collabStatus.fetchMiss','OTHER_CLIENT_EDITING','getTypeOfUnitDisposed$','map','saveTaskMap','defs','0\x200\x2017\x2016','JOIN_ROOM_FAILED','stringify','includes','INVITE_CODE_REQUIRED','_univerInstanceService','_handleEvent','children','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','_scheduleHeartbeat','getCollabEntity$','prototype','_saveTaskMap','YUUMI_AI_RUN_FAILED','_revisionService','_refreshCollabCursors','getRenderById','session.connection-failed','7meJmRX','DeleteRangeMoveLeftCommandId','InsertRangeMoveDownCommandId','roomMembers','propertyIsEnumerable','substring','roomMembers$','_initEvent','_hideTimer','_collaborationUIEventService','ranges','http://www.w3.org/2000/svg','registerRefRange','_httpService','LICENSE_IMPORT_SIZE_EXCEEDED','_hovered','blue.400','_docSkeletonManagerService','flatMap','getCurrentRevOfUnit','285892IQPolb','off-line-icon_clip0_910_343','_cursorInfo$','url(#$1','Warning','fillText','_heartbeatTimer','_assignedColors','AWAITING_WITH_PENDING','transformRemoteChangeset','lineTo','assign','LICENSE_EXPORT_SIZE_EXCEEDED','_online','OTHER_CLIENTS_EDITING','selections','fill','debug','_transformService','resize','setShapeProps','on-line-icon','_transformUndoRedoStack','YUUMI_CONNECTOR_URL_NOT_FOUND','getConfig','override','TOO_MANY_REQUESTS','_roomMembers$','transformMutation','getMember','transformMutationsWithChangeset','defIds','cursorInfo','_themeService','send','range','urlChange$','push','popstate','onPointerMove$','disposeWithMe','_ensureSubject','_drawAnchor','exhaustSavingTask','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','MOBILE_VERIFY_CODE_MISMATCH','registerComponent','call','getVpScrollXYInfoByPosToVp','...','collaboration.closeRoom','_syncEditingCollabCursorService','string','Error','_onCursorDelete','next','getCurrent','init','_registerRenderDependencies','_sheetSkeletonManagerService','split','_cursors','cursorInfo$','onLocalMutation','moveTo','newValue','docStateChange$','getCellPositionByOffset','PENDING','getOwnPropertyDescriptor','tag','currentColor','yellow.400','unsubscribe','5534LxDHXj','YUUMI_UNABLE_LOAD_URL','collabStatus.syncing','subscribeEvent','_dataLoaderService','ONLINE','_getMergeRange','replaceState','getCollabCursors$','getSkeleton','getSheetBySheetId','_collabCursorController','NOT_FOUND','_initStatusComponent','evenodd','_startSheetCollabCursor','startRow','_handleHover','YUUMI_ALL_TABLES_IS_INVALID','extend','_imageIoService','10hcOglq','sheetID','saveImage','has','_color','delete','_localeService','path','svg','search','hasOwnProperty','NOT_COLLAB','_docSyncEditingCollabCursorService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','session.will-retry','_anchorDot','mask','_send','_updateCollabCursors','url(#off-line-icon_clip0_910_343)','_transformPreviousActiveRange','off-line-icon','_instanceService','on-line-icon_clip0_910_349','_cursorShapes','YUUMI_SUBSCRIPTION_NOT_FOUND','editingUnit','OnLineIcon','collab-text-anchor-','_initCommandExecutedListener','_uiPartsService','entityInit$','UNIVER_DOC','transformIMECache','_entities','RECT','YUUMI_NO_CUBOID_FOR_QUESTION','_scheduleSaving','colorChannel1','sheetId','APPLY_NON_SEQUENTIAL_REVISION','replaceDocRanges','idSuffix','setItem','permission.content','history','getValue','getActiveSheet','_docTransformIMECacheService','getOffsetConfig','_cachedData','_colorIndex','status$','mutations','getParam','red.300','EMAIL_HAS_BEEN_BOUND','_removeClearOtherTimer','_localCacheService','executeCommand','clearTimeout','PERMISSION_DENIED','getUniverSheetInstance','UPDATE_CURSOR','sessionStatus$','_docClipboardService','_status$','isActive','collaboration-client.offline-data-not-saved','forEach','updateOfflineData','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_handleHeartbeatEvent','UniverIcon','wsSessionTicketUrl','_initEntityListener','COMPLETION_FINISHED','values','_getSessionTicket','_cursor','_localStorageService','key','SNAPSHOT_INVALID_SNAPSHOT','_docTransformStateCacheService','onStarting','APPLY_REJECT','getUnitStatus$','syncEditingCollabCursor','fillRule','_getScale','_scene','getStateCache','ticket','_refRangeService','code','onPointerEnter$','unitID','_getAnchorBounding','selection','UNRECOGNIZED','eventID','getCurrentSelections','top','_id','createSocket'];_0x1639=function(){return _0x4bbcbd;};return _0x1639();}it=gn([z(0x0,_0x28e459(_0x5706a4)),z(0x1,_0x28e459(_0x1c3c2d)),z(0x2,_0x54983c),z(0x3,_0x2e81d3),z(0x4,_0xbb987f)],it);var Lt=(_0x3150da=>(_0x3150da[_0x3150da[_0x7bdef9(0x3e5)]=0x0]=_0x7bdef9(0x3e5),_0x3150da[_0x3150da['OK']=0x1]='OK',_0x3150da[_0x3150da[_0x7bdef9(0x39b)]=0x2]=_0x7bdef9(0x39b),_0x3150da[_0x3150da['PERMISSION_DENIED']=0x3]=_0x7bdef9(0x2fe),_0x3150da[_0x3150da[_0x7bdef9(0x2b8)]=0x4]=_0x7bdef9(0x2b8),_0x3150da[_0x3150da[_0x7bdef9(0x3cd)]=0x5]='UNAUTHENTICATED',_0x3150da[_0x3150da[_0x7bdef9(0x33d)]=0x6]=_0x7bdef9(0x33d),_0x3150da[_0x3150da[_0x7bdef9(0x337)]=0x7]='INVALID_ARGUMENT',_0x3150da[_0x3150da[_0x7bdef9(0x27c)]=0x8]=_0x7bdef9(0x27c),_0x3150da[_0x3150da['COMPLETION_FINISHED']=0x9]=_0x7bdef9(0x30d),_0x3150da[_0x3150da['LOGIN_FAILED']=0xa]=_0x7bdef9(0x219),_0x3150da[_0x3150da[_0x7bdef9(0x28f)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x3150da[_0x3150da[_0x7bdef9(0x336)]=0xc]=_0x7bdef9(0x336),_0x3150da[_0x3150da[_0x7bdef9(0x225)]=0xd]=_0x7bdef9(0x225),_0x3150da[_0x3150da[_0x7bdef9(0x205)]=0xe]=_0x7bdef9(0x205),_0x3150da[_0x3150da['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x7bdef9(0x1f3),_0x3150da[_0x3150da[_0x7bdef9(0x313)]=0x1771]=_0x7bdef9(0x313),_0x3150da[_0x3150da[_0x7bdef9(0x3ec)]=0x1772]=_0x7bdef9(0x3ec),_0x3150da[_0x3150da[_0x7bdef9(0x369)]=0x1773]=_0x7bdef9(0x369),_0x3150da[_0x3150da['APPLY_REJECT']=0x1b59]=_0x7bdef9(0x316),_0x3150da[_0x3150da[_0x7bdef9(0x2e9)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x3150da[_0x3150da[_0x7bdef9(0x37d)]=0x1b5b]=_0x7bdef9(0x37d),_0x3150da[_0x3150da[_0x7bdef9(0x20c)]=0x1b5c]=_0x7bdef9(0x20c),_0x3150da[_0x3150da[_0x7bdef9(0x399)]=0x1b5d]=_0x7bdef9(0x399),_0x3150da[_0x3150da[_0x7bdef9(0x21e)]=0x1f41]=_0x7bdef9(0x21e),_0x3150da[_0x3150da['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x3150da[_0x3150da[_0x7bdef9(0x351)]=0x232a]=_0x7bdef9(0x351),_0x3150da[_0x3150da['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x7bdef9(0x25c),_0x3150da[_0x3150da[_0x7bdef9(0x26e)]=0x232c]=_0x7bdef9(0x26e),_0x3150da[_0x3150da[_0x7bdef9(0x344)]=0x232d]=_0x7bdef9(0x344),_0x3150da[_0x3150da[_0x7bdef9(0x2ad)]=0x2711]=_0x7bdef9(0x2ad),_0x3150da[_0x3150da[_0x7bdef9(0x33e)]=0x2712]=_0x7bdef9(0x33e),_0x3150da[_0x3150da[_0x7bdef9(0x384)]=0x2713]=_0x7bdef9(0x384),_0x3150da[_0x3150da[_0x7bdef9(0x2da)]=0x2714]=_0x7bdef9(0x2da),_0x3150da[_0x3150da[_0x7bdef9(0x2e5)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x3150da[_0x3150da[_0x7bdef9(0x38d)]=0x271b]=_0x7bdef9(0x38d),_0x3150da[_0x3150da['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x3150da[_0x3150da[_0x7bdef9(0x2be)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x3150da[_0x3150da[_0x7bdef9(0x308)]=0x271e]=_0x7bdef9(0x308),_0x3150da[_0x3150da[_0x7bdef9(0x249)]=0x271f]=_0x7bdef9(0x249),_0x3150da[_0x3150da['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x7bdef9(0x279),_0x3150da[_0x3150da[_0x7bdef9(0x378)]=0x2af9]=_0x7bdef9(0x378),_0x3150da[_0x3150da[_0x7bdef9(0x20b)]=0x2ee1]=_0x7bdef9(0x20b),_0x3150da[_0x3150da['INVALID_INVITE_CODE']=0x2ee2]=_0x7bdef9(0x3ab),_0x3150da[_0x3150da[_0x7bdef9(0x240)]=0x2ee3]=_0x7bdef9(0x240),_0x3150da[_0x3150da[_0x7bdef9(0x380)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x3150da[_0x3150da['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x3150da[_0x3150da[_0x7bdef9(0x3ba)]=0x32c9]=_0x7bdef9(0x3ba),_0x3150da[_0x3150da[_0x7bdef9(0x34e)]=0x32ca]=_0x7bdef9(0x34e),_0x3150da[_0x3150da[_0x7bdef9(0x2f9)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x3150da[_0x3150da[_0x7bdef9(0x324)]=-0x1]='UNRECOGNIZED',_0x3150da))(Lt||{}),pn=Object[_0x7bdef9(0x2a7)],Cn=(_0x3465af,_0x39d4b3,_0x1098e5,_0x200e37)=>{const _0x1cc5a6=_0x7bdef9;for(var _0x57367b=_0x200e37>0x1?void 0x0:_0x200e37?pn(_0x39d4b3,_0x1098e5):_0x39d4b3,_0x24a5a1=_0x3465af[_0x1cc5a6(0x3e1)]-0x1,_0x20ccd9;_0x24a5a1>=0x0;_0x24a5a1--)(_0x20ccd9=_0x3465af[_0x24a5a1])&&(_0x57367b=_0x20ccd9(_0x57367b)||_0x57367b);return _0x57367b;},be=(_0x9813a0,_0x5da4fd)=>(_0x27f01a,_0x1a898c)=>_0x5da4fd(_0x27f01a,_0x1a898c,_0x9813a0);let nt=class extends _0x5f8b08{constructor(_0x2686df,_0x988cbd,_0x5e520a){const _0x2e52b5=_0x7bdef9;super(),this[_0x2e52b5(0x2d7)]=_0x2686df,this['_httpService']=_0x988cbd,this[_0x2e52b5(0x3df)]=_0x5e520a;}async['runOnServer'](_0x5c4658,_0x1bb7e0,_0x5bc0ba,..._0x217ce2){const _0x55f4bd=_0x7bdef9;var _0x2ac810,_0x5d5d45,_0x4129e3,_0x1e04ab;const _0x2a8ba5=this[_0x55f4bd(0x2d7)]['getFocusedUnit']();if(!_0x2a8ba5)throw new Error(_0x55f4bd(0x3e3));const _0x2416d5=((_0x2ac810=this[_0x55f4bd(0x3df)]['getConfig'](_0x1d4044))!=null?_0x2ac810:_0x36c691)+'/'+_0x5c4658+_0x55f4bd(0x350)+_0x1bb7e0,_0x36cfc0=new URL(window[_0x55f4bd(0x204)][_0x55f4bd(0x395)]),_0xaf8e29={'scriptId':_0x5c4658,'runId':(_0x5d5d45=_0x36cfc0[_0x55f4bd(0x346)][_0x55f4bd(0x1fe)](_0x55f4bd(0x20d)))!=null?_0x5d5d45:'','function':_0x1bb7e0,'unitId':_0x2a8ba5[_0x55f4bd(0x334)](),'argsOfFunction':JSON[_0x55f4bd(0x23e)](_0x217ce2),'invokeId':(_0x4129e3=_0x5bc0ba[_0x55f4bd(0x397)])!=null?_0x4129e3:'','executionId':(_0x1e04ab=_0x5bc0ba[_0x55f4bd(0x3b4)])!=null?_0x1e04ab:''};try{const _0x1b18ee=await this[_0x55f4bd(0x25b)][_0x55f4bd(0x38c)](_0x2416d5,{'body':_0xaf8e29});return _0x1b18ee[_0x55f4bd(0x212)][_0x55f4bd(0x218)]&&_0x1b18ee[_0x55f4bd(0x212)][_0x55f4bd(0x218)][_0x55f4bd(0x31f)]!==Lt['OK']?_0x55f4bd(0x330):_0x1b18ee[_0x55f4bd(0x212)][_0x55f4bd(0x3c5)];}catch{return _0x55f4bd(0x330);}}};nt=Cn([be(0x0,_0x16a5a2),be(0x1,_0x28e459(_0x1c3c2d)),be(0x2,_0x54983c)],nt);const rt=0x7530,ot=_0x7bdef9(0x3ad);class Fn extends _0x5f8b08{constructor(){const _0xb27dd0=_0x7bdef9;super(),_(this,_0xb27dd0(0x328),_0x2f2dad()),_(this,'_selfUnitIDs',new Set()),_(this,_0xb27dd0(0x32e),new Map()),_(this,_0xb27dd0(0x268),null),_(this,_0xb27dd0(0x22e),new Map()),_(this,'_unitStatus',new Map()),this[_0xb27dd0(0x373)]();}[_0x7bdef9(0x1fc)](){const _0x28b044=_0x7bdef9;super[_0x28b044(0x1fc)](),this['_clearOtherTimers']['forEach']((_0x3a5fe3,_0x29bc0c)=>this[_0x28b044(0x2fa)](_0x29bc0c)),this['_heartbeatTimer']&&window[_0x28b044(0x22a)](this[_0x28b044(0x268)]);}[_0x7bdef9(0x317)](_0x597c26){const _0x4cd216=_0x7bdef9;return this[_0x4cd216(0x28b)](_0x597c26)[_0x4cd216(0x35a)](_0x33564c());}[_0x7bdef9(0x2db)](_0x2351f4){const _0x4e5817=_0x7bdef9;this['_selfUnitIDs']['size']===0x0&&this[_0x4e5817(0x245)](),this[_0x4e5817(0x368)]['add'](_0x2351f4),this[_0x4e5817(0x2d2)]({'type':0x0,'memberID':this[_0x4e5817(0x328)],'unitIDs':[_0x2351f4],'isForwarded':!0x1});}[_0x7bdef9(0x360)](_0x5090c5){const _0x2b2f83=_0x7bdef9;this[_0x2b2f83(0x368)][_0x2b2f83(0x2c6)](_0x5090c5),this[_0x2b2f83(0x368)][_0x2b2f83(0x383)]===0x0&&this[_0x2b2f83(0x268)]&&window[_0x2b2f83(0x22a)](this['_heartbeatTimer']);}[_0x7bdef9(0x373)](){const _0x1ae500=_0x7bdef9;this[_0x1ae500(0x28a)](_0x3b8fd3(_0xe3cc5e(window,'storage')['subscribe'](_0x5d15f7=>{const _0x5a6fe2=_0x1ae500;if(_0x5d15f7[_0x5a6fe2(0x312)]!==ot||!_0x5d15f7[_0x5a6fe2(0x2a3)])return;const _0x200328=JSON[_0x5a6fe2(0x227)](_0x5d15f7['newValue']);this['_handleEvent'](_0x200328);}))),window['addEventListener'](_0x1ae500(0x356),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x1ae500(0x3c8)](this[_0x1ae500(0x368)])}));}[_0x7bdef9(0x242)](_0x59d2de){const _0x21a738=_0x7bdef9;switch(_0x59d2de[_0x21a738(0x374)]){case 0x0:this['_handleJoinEvent'](_0x59d2de);break;case 0x1:this[_0x21a738(0x1da)](_0x59d2de);break;case 0x2:this[_0x21a738(0x309)](_0x59d2de);break;}}[_0x7bdef9(0x3e2)](_0x3d77b8){const _0x55581e=_0x7bdef9,{unitIDs:_0x5065c0,memberID:_0x14d379,isForwarded:_0x4c7b12}=_0x3d77b8;_0x5065c0[_0x55581e(0x306)](_0x55a9e5=>{const _0x128fc4=_0x55581e;if(!_0x4c7b12&&this[_0x128fc4(0x32e)]['has'](_0x55a9e5)&&this[_0x128fc4(0x28b)](_0x55a9e5)[_0x128fc4(0x299)](_0x20629e[_0x128fc4(0x270)]),!this['_unitOnClients'][_0x128fc4(0x2c4)](_0x55a9e5)||!this['_unitOnClients'][_0x128fc4(0x1fe)](_0x55a9e5)['has'](_0x14d379)){const _0x6bf7d8=this[_0x128fc4(0x32e)]['get'](_0x55a9e5)||new Set();_0x6bf7d8['add'](_0x14d379),this[_0x128fc4(0x32e)][_0x128fc4(0x210)](_0x55a9e5,_0x6bf7d8),this['_scheduleClearOtherTimer'](_0x14d379);}}),_0x4c7b12||this[_0x55581e(0x2d2)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x55581e(0x368)]],'isForwarded':!0x0});}[_0x7bdef9(0x3de)](_0x19a8bd){const _0x395af5=_0x7bdef9;this[_0x395af5(0x2fa)](_0x19a8bd);const _0x47f2a2=window['setTimeout'](()=>{const _0x1d0830=_0x395af5;this[_0x1d0830(0x32e)]['forEach'](_0x50bb8a=>{_0x50bb8a['delete'](_0x19a8bd);});},rt*0x2);this[_0x395af5(0x22e)][_0x395af5(0x210)](_0x19a8bd,_0x47f2a2);}[_0x7bdef9(0x2fa)](_0x1f32df){const _0x13ae67=_0x7bdef9;if(this[_0x13ae67(0x22e)]['has'](_0x1f32df)){const _0x3e40fa=this[_0x13ae67(0x22e)][_0x13ae67(0x1fe)](_0x1f32df);_0x3e40fa&&window[_0x13ae67(0x2fd)](_0x3e40fa),this['_clearOtherTimers'][_0x13ae67(0x210)](_0x1f32df,null);}}['_handleLeaveEvent'](_0x31a4a9){const _0x1e8dd9=_0x7bdef9,{memberID:_0x97872c,unitIDs:_0x5b8613}=_0x31a4a9;_0x5b8613[_0x1e8dd9(0x306)](_0x491143=>{const _0x3e821e=_0x1e8dd9;var _0x6a9b90;const _0x4db5f0=this[_0x3e821e(0x32e)][_0x3e821e(0x1fe)](_0x491143);_0x4db5f0&&(_0x4db5f0[_0x3e821e(0x2c6)](_0x97872c),(_0x6a9b90=this[_0x3e821e(0x28b)](_0x491143))==null||_0x6a9b90['next'](_0x4db5f0[_0x3e821e(0x383)]===0x0?_0x20629e[_0x3e821e(0x214)]:_0x20629e[_0x3e821e(0x270)]));}),this[_0x1e8dd9(0x2fa)](_0x97872c);}[_0x7bdef9(0x309)](_0x31fc3e){const _0x5427fa=_0x7bdef9;this['_scheduleClearOtherTimer'](_0x31fc3e[_0x5427fa(0x35b)]);}[_0x7bdef9(0x2d2)](_0x4c5a42){const _0x497993=_0x7bdef9;localStorage[_0x497993(0x2ec)](ot,JSON[_0x497993(0x23e)](_0x4c5a42));}[_0x7bdef9(0x245)](){const _0x4aa9d0=_0x7bdef9;this[_0x4aa9d0(0x268)]=window[_0x4aa9d0(0x3cf)](()=>{const _0x53ef08=_0x4aa9d0;this[_0x53ef08(0x2d2)]({'type':0x2,'memberID':this[_0x53ef08(0x328)]});},rt);}[_0x7bdef9(0x28b)](_0x3d0249){const _0xa1b0b6=_0x7bdef9;return this[_0xa1b0b6(0x20e)]['has'](_0x3d0249)||this[_0xa1b0b6(0x20e)][_0xa1b0b6(0x210)](_0x3d0249,new _0xf21850(_0x20629e['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0xa1b0b6(0x1fe)](_0x3d0249);}}export{it as BrowserCollaborationSocketService,ie as CollaborationDataLoaderController,se as DesktopCollaborationStatusDisplayController,Ut as IURLService,nt as RemoteUniscriptService,Xi as SheetCollabCursorShape,Ae as UniverCollaborationClientUIPlugin,Fn as WebBrowserSingleActiveUnitService,hn as WebURLService};
1
+ const _0x1de525=_0x1f2d;(function(_0x2b6ea2,_0x1ff7eb){const _0x45ae32=_0x1f2d,_0x580f18=_0x2b6ea2();while(!![]){try{const _0x45a078=-parseInt(_0x45ae32(0x1ba))/0x1*(parseInt(_0x45ae32(0x2fb))/0x2)+parseInt(_0x45ae32(0x130))/0x3+-parseInt(_0x45ae32(0x14d))/0x4*(parseInt(_0x45ae32(0x2e0))/0x5)+-parseInt(_0x45ae32(0x1e5))/0x6+parseInt(_0x45ae32(0x177))/0x7+parseInt(_0x45ae32(0x2ee))/0x8+parseInt(_0x45ae32(0x243))/0x9;if(_0x45a078===_0x1ff7eb)break;else _0x580f18['push'](_0x580f18['shift']());}catch(_0x38c4d8){_0x580f18['push'](_0x580f18['shift']());}}}(_0x2c8e,0xa38e2));var xt=Object[_0x1de525(0x2d5)],Bt=(_0x2fc89d,_0x28172b,_0x575363)=>_0x28172b in _0x2fc89d?xt(_0x2fc89d,_0x28172b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x575363}):_0x2fc89d[_0x28172b]=_0x575363,_=(_0x36cbfd,_0x4ee6d1,_0x1f97d4)=>Bt(_0x36cbfd,typeof _0x4ee6d1!='symbol'?_0x4ee6d1+'':_0x4ee6d1,_0x1f97d4);import{jsx as _0x22a986,jsxs as _0x930f14}from'react/jsx-runtime';import{CollaborationStatus as _0x44d661,CollaborationSessionService as _0x31b372,CollaborationController as _0x16a7df,DataLoaderService as _0x3d8bd6,MemberService as _0x30e787,SessionStatus as _0xbb7629,ILocalCacheService as _0x24e892,CollaborationUIEventService as _0x1872de,CollaborationUIEventId as _0x4b7116,DocCollaborationEntity as _0x1c3eb9,getLocalCacheKey as _0x244215,LOCAL_CACHE_INTERVAL as _0xd3d76a,LOCAL_CACHE_INTERVAL_KEY as _0x150080,UniverCollaborationClientPlugin as _0x6a685d,CollaborationSocketService as _0x2918d0,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x475903,DEFAULT_WS_SESSION_TICKET_URL as _0x5beca7,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x16e5e3,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x4a0382,UnitStatus as _0x4d8153}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x1ad900,IUniverInstanceService as _0x38aa79,Inject as _0x5c6996,Injector as _0x25bcbf,Disposable as _0x27b35c,createIdentifier as _0x4dce94,ILogService as _0x3d5d66,ICommandService as _0x3d6ba5,Optional as _0xadcd71,RxDisposable as _0x5d5e25,Workbook as _0x28849d,DOC_RANGE_TYPE as _0x12430b,debounce as _0x2398b9,Rectangle as _0x2040a1,DisposableCollection as _0x57cfe9,toDisposable as _0x2685e5,UniverInstanceType as _0x5ef820,generateRandomId as _0x39b37f,COLORS as _0x13a4be,ColorKit as _0x208161,ThemeService as _0x1d1c1e,fromEventSubject as _0x987390,Tools as _0x41f479,CommandType as _0x35b953,IConfigService as _0x4736f4,ILocalStorageService as _0x5de8fb,DependentOn as _0x18f8a6,Plugin as _0x34f9ca,merge as _0x25d7a3,registerDependencies as _0x13f4a4,mergeOverrideWithDependencies as _0x30e5fb,touchDependencies as _0x1e35aa}from'@univerjs/core';import{useObservable as _0x16372b,useDependency as _0xb19721,IUIPartsService as _0x46dcc7,BuiltInUIPart as _0x4eaa43,connectInjector as _0x2e9287,IBeforeCloseService as _0x392fb9,IMessageService as _0x2ec900,INotificationService as _0xb95b8d}from'@univerjs/ui';import{BehaviorSubject as _0x1c5c36,switchMap as _0x85c43a,of as _0x46fe23,takeUntil as _0x552e0d,debounceTime as _0x503527,Subject as _0x12a97c,filter as _0x220197,merge as _0x2422bd,combineLatest as _0x24a102,fromEvent as _0x443658,shareReplay as _0x3e24d5,mapTo as _0x587e52,distinctUntilChanged as _0x4d90cd}from'rxjs';import{Tooltip as _0x153909,clsx as _0x1621da,MessageType as _0x391a65}from'@univerjs/design';import{forwardRef as _0x3728aa,useRef as _0x34f85d,createElement as _0x2e37da,useCallback as _0x1bbcf2}from'react';import{IRemoteInstanceService as _0x2fd947}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x6f9153,RefRangeService as _0x596355,SetSelectionsOperation as _0x4f4d5e,SheetsSelectionsService as _0x20ba72,EffectRefRangId as _0x2669fb,handleIRemoveRow as _0x1fd061,handleIRemoveCol as _0x2e7d8e,handleMoveRange as _0x29bef9,handleInsertRow as _0xeb3fa2,handleInsertRangeMoveRight as _0x312a7d,handleInsertRangeMoveDown as _0x51d53a,handleInsertCol as _0x23b976,handleDeleteRangeMoveUp as _0xe6ac9,handleDeleteRangeMoveLeft as _0x5c62f0,runRefRangeMutations as _0x32d34f}from'@univerjs/sheets';import{Shape as _0xfc37c0,Rect as _0x1e8379,getColor as _0x45905f,RegularPolygon as _0x3017af,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x5191a8,Vector2 as _0x180f0e,SHEET_VIEWPORT_KEY as _0x111c64,IRenderManagerService as _0x16d4b6}from'@univerjs/engine-render';import{ISocketService as _0x2f6e6b,WebSocketService as _0x144cd3,HTTPService as _0x3d7078}from'@univerjs/network';import{IDocClipboardService as _0x1f6e08,NodePositionConvertToCursor as _0x56e03a,NodePositionConvertToRectRange as _0x1a6ea6,TEXT_RANGE_LAYER_INDEX as _0x3b94f3,SetDocZoomRatioOperation as _0x21d4a2,DocIMEInputManagerService as _0x12689e,DocStateChangeManagerService as _0x508713}from'@univerjs/docs-ui';import{IImageIoService as _0x43c74a}from'@univerjs/drawing';import{ITransformService as _0x4d45d3,CollaborationEvent as _0x3e51f4,isTransformMutationFailure as _0x394d8b,isTransformMutationsWithChangesetSuccess as _0x464946,RevisionService as _0x2e91e3,ISnapshotServerService as _0x2cbbd}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x4f359e,RichTextEditingMutation as _0x16fcc7,DocSelectionManagerService as _0x54ea0b,DocSkeletonManagerService as _0x808ff5}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x4365d9,serializeRangeWithSheet as _0x218740}from'@univerjs/engine-formula';import{map as _0x2d8288,filter as _0x4f37b8,throttleTime as _0xa545cd,takeUntil as _0x401d5a,switchMap as _0x54796f}from'rxjs/operators';import{SheetSkeletonManagerService as _0x2ea6c6,getCoordByCell as _0x5d0a55,getSheetObject as _0x5750fc}from'@univerjs/sheets-ui';var v=function(){return v=Object['assign']||function(_0x499970){const _0xd8d982=_0x1f2d;for(var _0x235e75,_0x589921=0x1,_0x52cde9=arguments[_0xd8d982(0x16e)];_0x589921<_0x52cde9;_0x589921++){_0x235e75=arguments[_0x589921];for(var _0x5258ad in _0x235e75)Object[_0xd8d982(0x2d9)][_0xd8d982(0x2b1)][_0xd8d982(0x1e3)](_0x235e75,_0x5258ad)&&(_0x499970[_0x5258ad]=_0x235e75[_0x5258ad]);}return _0x499970;},v['apply'](this,arguments);},ci=function(_0x583d44,_0x364de2){const _0x14d019=_0x1de525;var _0xc09553={};for(var _0x224ad4 in _0x583d44)Object['prototype'][_0x14d019(0x2b1)]['call'](_0x583d44,_0x224ad4)&&_0x364de2['indexOf'](_0x224ad4)<0x0&&(_0xc09553[_0x224ad4]=_0x583d44[_0x224ad4]);if(_0x583d44!=null&&typeof Object[_0x14d019(0x12d)]=='function'){for(var _0x5d4955=0x0,_0x224ad4=Object[_0x14d019(0x12d)](_0x583d44);_0x5d4955<_0x224ad4[_0x14d019(0x16e)];_0x5d4955++)_0x364de2['indexOf'](_0x224ad4[_0x5d4955])<0x0&&Object[_0x14d019(0x2d9)][_0x14d019(0x1fc)]['call'](_0x583d44,_0x224ad4[_0x5d4955])&&(_0xc09553[_0x224ad4[_0x5d4955]]=_0x583d44[_0x224ad4[_0x5d4955]]);}return _0xc09553;},ke=_0x3728aa(function(_0x28515c,_0x5a75f0){const _0x455379=_0x1de525;var _0x44714b=_0x28515c[_0x455379(0x149)],_0x50c2d7=_0x28515c['id'],_0x16f930=_0x28515c[_0x455379(0x1c1)],_0x200ab0=_0x28515c[_0x455379(0x2b3)],_0x160107=ci(_0x28515c,[_0x455379(0x149),'id',_0x455379(0x1c1),_0x455379(0x2b3)]),_0x40e227='univerjs-icon\x20univerjs-icon-'[_0x455379(0x1b0)](_0x50c2d7,'\x20')[_0x455379(0x1b0)](_0x16f930||'')[_0x455379(0x306)](),_0x29cde5=_0x34f85d('_'[_0x455379(0x1b0)](hi()));return Rt(_0x44714b,''[_0x455379(0x1b0)](_0x50c2d7),{'defIds':_0x44714b[_0x455379(0x143)],'idSuffix':_0x29cde5[_0x455379(0x2ce)]},v({'ref':_0x5a75f0,'className':_0x40e227},_0x160107),_0x200ab0);});function _0x2c8e(){const _0x4359e8=['top','_textBubble','getCollabCursors$','INVITE_CODE_REQUIRED','engine','MOBILE_VERIFY_CODE_MISMATCH','MOBILE_HAS_BEEN_BOUND','_onCursorUpdate','requireSession','registerRenderModule','_updateURLWithCurrentState','getColorFromTheme','closePath','getValue','transformMutationsWithChangeset','override','resize','call','getAncestorScale','7500582LhCLad','startsWith','moveTo','transformMutation','tag','_document','_toggleOnline','USER_NOT_INVITED_CODE','_drawTextRange','white','fillStyle','deepClone','_cachedData','ALREADY_EXISTS','_colorAssignService','map','NOT_COLLAB','UPDATE_CURSOR','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','idSuffix','OnLineIcon','collaboration.closeRoom','EMAIL_HAS_BEEN_BOUND','propertyIsEnumerable','assignAColorForMemberID','rgba(255,\x20255,\x20255,\x200.01)','_memberService','getSkeleton','_startDocCollabCursor','_getSheetObject','_initEvent','get','_handleJoinEvent','event$','LICENSE_IMPORT_SIZE_EXCEEDED','asObservable','NOT_FOUND','getTypeOfUnitAdded$','HEADER_MENU','has','_beforeCloseService','APPLY_REVISION_CONFILICT','getActiveSheet','getFocusedUnit','endRow','onPointerLeave$','session.will-retry','send','WECHAT_HAS_BEEN_BOUND','translate(.97)','size','collab-rect-range-','unsubscribe','column','getCollabEntity$','runId','measureText','runOnServer','onPointerMove$','_dataLoaderService','JOIN_ROOM_FAILED','getParam','getUnitId','pluginName','_anchor','unitID','pipe','fillRule','SNAPSHOT_INVALID_SNAPSHOT','substring','_selfUnitIDs','evenodd','_roomMembers$','_initStatusComponent','_refreshCollabCursors','univer-mr-2\x20univer-flex\x20univer-text-xl','m2Prime','setUndoRedoMutationParamsCache','triggerDblclick','CONFLICT','executeCommand','SNAPSHOT_HAS_BEEN_REMOVED','add','_updateCollabCursors','next','purple.300','then','_logService','row','_themeService','PENDING','undoState','_configService','OFFLINE','18381870Gzhwlk','_shapes','OTHER_CLIENT_EDITING','clipPath','code','_initResize','EMAIL_VERIFY_CODE_MISMATCH','whenReady','unload','newValue','on-line-icon_clip0_910_349','AWAITING_WITH_PENDING','executionId','Warning','_handleHeartbeatEvent','exhaustSavingTask','LICENSE_MAX_UNITS_EXCEEDED','getStateCache','_commandService','all','YUUMI_RATE_OVER_LIMIT','_updateLocalCursor','YUUMI_URL_COL_OUT_OF_RANGE','UNIVER_SHEET','_createSocketURL','DeleteRangeMoveLeftCommandId','defs','transformRemoteChangeset','params','_getScale','push','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','attrs','INVALID_ARGUMENT','_status$','string','AWAITING','_config','_uiPartsService','data','collabCursorState$','_renderManagerService','_docClipboardService','transformByState','TEXT','ACTIVE_UNIT_EVENT_CHANNEL','onPointerEnter$','show','getConfig','_handleLeaveEvent','labelPosition','currentColor','_online','OTHER_CLIENTS_EDITING','sessionStatus$','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_initStatusListener','_refRangeService','disposeUnit','APPLY_DUPLICATED','VIEW_MAIN','saveImage','init','red.300','off-line-icon_clip0_910_343','_toggleOffline','0\x200\x2016\x2016','save','disableLocalCache','path','getUniverSheetInstance','currentSkeleton$','onMouseMove','black','arc','svg','result','Unknown\x20user','getUndoRedoMutationParamsCache','saveOfflineData','set','LOGIN_FAILED','addHandlerCallback','YUUMI_ALL_TABLES_IS_INVALID','type','getOffsetConfig','children','wsSessionTicketUrl','transformIMECache','search','flatMap','currentTheme$','delete','_notificationService','_docSkeletonManagerService','_drawRectRange','off-line-icon','_getMergeRange','_saveCache','_init','_send','drawWith','none','isEditing','INTERNAL_ERROR','_name','_collabSessionService','_color','_updateSubUnitFromURLParams','text','hasOwnProperty','color','extend','docStateChange$','setParam','_docTransformSelectionsService','location','bottom','_entities','uni.network.url-service','_localeService','_registerDependencies','findNodePositionByCharIndex','INVITE_CODE_ALREADY_BOUND','_messageService','clearTimeout','session.connection-failed','subunit','_localStorageService','_onCursorDelete','M0\x200H16V16H0z','error','isArray','_getSessionTicket','history','_docSkeleton','_initCommandExecutedListener','colorChannel1','0\x200\x2017\x2016','current','loadUnit','ranges','_transformPreviousActiveRange','pushState','SOCKET_FAILED_RETRY','transform','defineProperty','_session','backgroundColor','_sheetSkeletonManagerService','prototype','startRow','_scheduleClearOtherTimer','collaboration.single-unit.warning','_backgroundColor','YUUMI_ASYNCIO_CANCELLED','_initEntityListener','5517050weujmf','_cursorInfo$','_onRefRangeChange','COMPLETION_FINISHED','displayName','_removeClearOtherTimer','registerRefRange','onLocalMutation','PY_RUNTIME_SCRIPT_ERROR','lineTo','fill','getOwnPropertyDescriptor','mutations','1em','171488nkDzoq','restore','YUUMI_CONNECTOR_URL_NOT_FOUND','_transformUndoRedoStack','from','CONNECTOR_DATA_TOO_LARGE','syncEditingCollabCursor','FromArray','on-line-icon','_range','LICENSE_DISTRO_REJECTED','isActive','_instanceService','4DmByDd','_lastPointer','getItem','_labelPosition','_handleEvent','searchParams','split','startColumn','cursorInfo','_unitOnClients','sessionTicket','trim','_univerInstanceService','values','getRangePointData','getCurrent','setActiveRange','selection','collabStatus.offline','roomMembers','random','getTypeOfUnitDisposed$','getRelativeToViewportCoord','onRendered','entries','div','_assignedColors','editingUnit','_localCacheService','addEventListener','_docTransformIMECacheService','toRgbString','transformStateCache','_transformService','assign','imageSourceType','_anchorDot','addObject','m1Prime','TOO_MANY_REQUESTS','contains','Failed','_setupSubUnitSync','_saveTaskMap','univer-flex\x20univer-items-center','_docStateChangeManagerService','subscribeEvent','redoState','storage','MoveRangeCommandId','Error','_hover','_collaborationController','removeParam','green.600','getOwnPropertySymbols','setShapeProps','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','2912472MoadJc','href','UNRECOGNIZED','onCommandExecuted','getUnitStatus$','UNAUTHENTICATED','#FFF','collabStatus.notCollab','unit','_cursor','loadOfflineData','jiqing.500','InsertColCommandId','getDocRanges','/run/','dispose','cursorInfo$','_render','replaceState','defIds','disposeWithMe','collaboration-client-ui.config','ENSURE_SNAPSHOT_EXECUTION','...','getViewport','icon','NO_OTHER_CLIENTS_EDITING','_injector','_scene','4VbivhN','_startSheetCollabCursor','_urlService','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','fillText','xlink:href','setItem','setConfig','_collaborationUIEventService','APPLY_PERMISSION_DENIED','replaceDocRanges','urlChange$','_removeCollabCursors','onTransformChange$','endColumn','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','width','_clearOtherTimers','onStarting','getCurrentUnitForType','session.collaboration-timeout','application/json','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','INVITE_CODE_HAS_BEEN_UES','getRenderById','with','_revisionService','_collabCursorController','hide','ONLINE','_handleHover','_doCreateSocket','eventID','length','InsertRangeMoveDownCommandId','YUUMI_AI_RUN_FAILED','toString','round','source','INVALID_INVITE_CODE','_syncEditingCollabCursorService','_hideTimer','7498491ZfVkgd','_imageIoService','_getAnchorBounding','YUUMI_UNABLE_LOAD_URL','getSheetId','replace','activeSheet$','_cursorShapes','_hovered','collab-client.tooltip.reconnect','_docTransformStateCacheService','includes','RECT','max','UNIVER_DOC','InsertRowCommandId','yellow.400','_ensureSubject','textRanges','body','debug','registerComponent','_context','UNDEFINED','hovered','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','OffLineIcon','reconnect','_initDependencies','PERMISSION_DENIED','addClipboardHook','name','getMember','saveTaskMap','_entityInit$','getCellPositionByOffset','http://www.w3.org/2000/svg','status$','_getSaveTimeout','setAlpha','YUUMI_SUBSCRIPTION_NOT_FOUND','USERS_LEAVE','actions','APPLY_NON_SEQUENTIAL_REVISION','entityInit$','_setupBeforeClosingHandler','transformSelections','createInstance','roomMembers$','_id','_drawAnchor','subscribe','FETCH_MISS','doc.mutation.rich-text-editing','_unitStatus','url(#on-line-icon_clip0_910_349)','_colorIndex','concat','beginPath','height','CHANGESET_REVISION_CONFILICT','complete','_heartbeatTimer','dispose$','SYNCED','stringify','_httpService','541237GUMOPK','_disabled','_registerRenderDependencies','blue.400','enableLocalCache','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_docSyncEditingCollabCursorService','className','_eventUnsubscribe','getMemberID','SUBMIT_CHANGESET_TIMEOUT','LICENSE_EXPORT_SIZE_EXCEEDED','_scheduleSaving','unshift','_collabCursorState$','setTimeout','collab-text-range-','unitId','_cursors','getSheetBySheetId','forEach','YUUMI_NO_CUBOID_FOR_QUESTION','APPLY_REJECT','clearInterval'];_0x2c8e=function(){return _0x4359e8;};return _0x2c8e();}function _0x1f2d(_0x52ea28,_0x169522){const _0x2c8efb=_0x2c8e();return _0x1f2d=function(_0x1f2df8,_0x34131a){_0x1f2df8=_0x1f2df8-0x11c;let _0x5844cb=_0x2c8efb[_0x1f2df8];return _0x5844cb;},_0x1f2d(_0x52ea28,_0x169522);}function Rt(_0x95843e,_0x26b9a1,_0x220cd2,_0x261856,_0x1b8bf7){const _0x2cff4f=_0x1de525;return _0x2e37da(_0x95843e[_0x2cff4f(0x1e9)],v(v({'key':_0x26b9a1},li(_0x95843e,_0x220cd2,_0x1b8bf7)),_0x261856),(_i(_0x95843e,_0x220cd2)[_0x2cff4f(0x299)]||[])['map'](function(_0x1787a6,_0x3f6aed){const _0x5d1905=_0x2cff4f;return Rt(_0x1787a6,''[_0x5d1905(0x1b0)](_0x26b9a1,'-')[_0x5d1905(0x1b0)](_0x95843e[_0x5d1905(0x1e9)],'-')[_0x5d1905(0x1b0)](_0x3f6aed),_0x220cd2,void 0x0,_0x1b8bf7);}));}function li(_0x30d497,_0x29fdfd,_0x386541){const _0x3443ce=_0x1de525;var _0xed47fe=v({},_0x30d497[_0x3443ce(0x263)]);_0x386541!=null&&_0x386541[_0x3443ce(0x2cc)]&&_0xed47fe['fill']===_0x3443ce(0x2cc)&&(_0xed47fe['fill']=_0x386541[_0x3443ce(0x2cc)]),_0x30d497['tag']==='mask'&&_0xed47fe['id']&&(_0xed47fe['id']=_0xed47fe['id']+_0x29fdfd[_0x3443ce(0x1f8)]),Object['entries'](_0xed47fe)[_0x3443ce(0x1ce)](function(_0x466571){const _0x144bc2=_0x3443ce;var _0x5c8866=_0x466571[0x0],_0x2f1652=_0x466571[0x1];_0x5c8866==='mask'&&typeof _0x2f1652==_0x144bc2(0x266)&&(_0xed47fe[_0x5c8866]=_0x2f1652[_0x144bc2(0x17c)](/url\(#(.*)\)/,'url(#$1'[_0x144bc2(0x1b0)](_0x29fdfd['idSuffix'],')')));});var _0x31fcd0=_0x29fdfd['defIds'];return!_0x31fcd0||_0x31fcd0[_0x3443ce(0x16e)]===0x0||(_0x30d497[_0x3443ce(0x1e9)]==='use'&&_0xed47fe['xlink:href']&&(_0xed47fe['xlink:href']=_0xed47fe[_0x3443ce(0x152)]+_0x29fdfd[_0x3443ce(0x1f8)]),Object[_0x3443ce(0x313)](_0xed47fe)['forEach'](function(_0x3da545){const _0xa8044a=_0x3443ce;var _0x16ec9b=_0x3da545[0x0],_0x163e16=_0x3da545[0x1];typeof _0x163e16=='string'&&(_0xed47fe[_0x16ec9b]=_0x163e16['replace'](/url\(#(.*)\)/,'url(#$1'[_0xa8044a(0x1b0)](_0x29fdfd[_0xa8044a(0x1f8)],')')));})),_0xed47fe;}function _i(_0x108719,_0x2f0ab1){const _0x37aa35=_0x1de525;var _0xc2dd05,_0x4710dd=_0x2f0ab1[_0x37aa35(0x143)];return!_0x4710dd||_0x4710dd[_0x37aa35(0x16e)]===0x0?_0x108719:_0x108719[_0x37aa35(0x1e9)]===_0x37aa35(0x25d)&&(!((_0xc2dd05=_0x108719[_0x37aa35(0x299)])===null||_0xc2dd05===void 0x0)&&_0xc2dd05[_0x37aa35(0x16e)])?v(v({},_0x108719),{'children':_0x108719[_0x37aa35(0x299)][_0x37aa35(0x1f4)](function(_0x31c611){const _0x408f1d=_0x37aa35;return typeof _0x31c611[_0x408f1d(0x263)]['id']==_0x408f1d(0x266)&&_0x4710dd&&_0x4710dd[_0x408f1d(0x182)](_0x31c611['attrs']['id'])?v(v({},_0x31c611),{'attrs':v(v({},_0x31c611[_0x408f1d(0x263)]),{'id':_0x31c611[_0x408f1d(0x263)]['id']+_0x2f0ab1[_0x408f1d(0x1f8)]})}):_0x31c611;})}):_0x108719;}function hi(){const _0x558fed=_0x1de525;return Math[_0x558fed(0x30f)]()['toString'](0x24)[_0x558fed(0x22a)](0x2,0x8);}ke['displayName']='UniverIcon';var ui={'tag':_0x1de525(0x28e),'attrs':{'xmlns':_0x1de525(0x19b),'fill':'none','viewBox':_0x1de525(0x285),'width':_0x1de525(0x2ed),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x1de525(0x288),'attrs':{'stroke':_0x1de525(0x276),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x1de525(0x172),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1de525(0x25d),'attrs':{},'children':[{'tag':_0x1de525(0x246),'attrs':{'id':_0x1de525(0x283)},'children':[{'tag':_0x1de525(0x288),'attrs':{'fill':'white','d':_0x1de525(0x2c5)}}]}]}],'defIds':[_0x1de525(0x283)]},Dt=_0x3728aa(function(_0x240e28,_0x1285d3){const _0x2c82ae=_0x1de525;return _0x2e37da(ke,Object[_0x2c82ae(0x31d)]({},_0x240e28,{'id':_0x2c82ae(0x2a3),'ref':_0x1285d3,'icon':ui}));});Dt[_0x1de525(0x2e4)]=_0x1de525(0x191);var di={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1de525(0x2a9),'viewBox':_0x1de525(0x2cd),'width':'1em','height':_0x1de525(0x2ed)},'children':[{'tag':'g','attrs':{'clipPath':_0x1de525(0x1ae)},'children':[{'tag':_0x1de525(0x288),'attrs':{'stroke':'currentColor','d':_0x1de525(0x12f),'strokeLinecap':'round','strokeLinejoin':_0x1de525(0x172),'strokeWidth':1.2}}]},{'tag':_0x1de525(0x25d),'attrs':{},'children':[{'tag':_0x1de525(0x246),'attrs':{'id':_0x1de525(0x24d)},'children':[{'tag':_0x1de525(0x288),'attrs':{'fill':_0x1de525(0x1ee),'d':'M0\x200H16V16H0z','transform':_0x1de525(0x216)}}]}]}],'defIds':[_0x1de525(0x24d)]},Nt=_0x3728aa(function(_0xbbdd3b,_0x5726af){const _0x3d25fc=_0x1de525;return _0x2e37da(ke,Object[_0x3d25fc(0x31d)]({},_0xbbdd3b,{'id':_0x3d25fc(0x2f6),'ref':_0x5726af,'icon':di}));});Nt['displayName']=_0x1de525(0x1f9);function fi(_0x725626){const _0x16af41=_0x1de525;switch(_0x725626){case _0x44d661[_0x16af41(0x242)]:return _0x16af41(0x30d);case _0x44d661[_0x16af41(0x234)]:return'collabStatus.conflict';case _0x44d661[_0x16af41(0x1ab)]:return'collabStatus.fetchMiss';case _0x44d661[_0x16af41(0x1f5)]:return _0x16af41(0x137);case _0x44d661[_0x16af41(0x267)]:case _0x44d661[_0x16af41(0x24e)]:return'collabStatus.syncing';case _0x44d661[_0x16af41(0x1b7)]:case _0x44d661[_0x16af41(0x23f)]:return'collabStatus.synced';}}function Si(_0x4b8472){const _0x2ba787=_0x1de525,{status$:_0x56e907}=_0x4b8472,_0xe74d36=_0x16372b(_0x56e907,_0x44d661[_0x2ba787(0x1f5)]),_0x3b02f0=_0xb19721(_0x1ad900),_0x2b2a28=_0xb19721(_0x31b372),_0x1b0925=_0xe74d36!==_0x44d661[_0x2ba787(0x242)],_0x3edc38=_0x3b02f0['t'](fi(_0xe74d36)),_0x39cc44=_0x1b0925?_0x22a986(Nt,{}):_0x22a986(Dt,{}),_0xb36271=_0x1bbcf2(()=>{const _0x17557c=_0x2ba787;_0x1b0925||_0x2b2a28[_0x17557c(0x192)]();},[_0x1b0925,_0x2b2a28]);function _0x17f0d4(){const _0x1baa3b=_0x2ba787;return _0x930f14(_0x1baa3b(0x314),{'className':_0x1baa3b(0x122),'onClick':_0xb36271,'children':[_0x22a986(_0x1baa3b(0x314),{'className':_0x1621da(_0x1baa3b(0x230),{'univer-text-green-500':_0x1b0925,'univer-text-red-500':!_0x1b0925}),'children':_0x39cc44}),_0x22a986(_0x1baa3b(0x314),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3edc38})]});}return _0x1b0925?_0x17f0d4():_0x22a986(_0x153909,{'title':_0x3b02f0['t'](_0x2ba787(0x180)),'children':_0x17f0d4()});}var mi=Object[_0x1de525(0x2eb)],Ii=(_0x1f78f3,_0x3b5988,_0x5a36af,_0x58d40a)=>{const _0x571ab5=_0x1de525;for(var _0x16dc88=_0x58d40a>0x1?void 0x0:_0x58d40a?mi(_0x3b5988,_0x5a36af):_0x3b5988,_0x1fd8e7=_0x1f78f3[_0x571ab5(0x16e)]-0x1,_0x763a4b;_0x1fd8e7>=0x0;_0x1fd8e7--)(_0x763a4b=_0x1f78f3[_0x1fd8e7])&&(_0x16dc88=_0x763a4b(_0x16dc88)||_0x16dc88);return _0x16dc88;},q=(_0x374eb0,_0x2ce58f)=>(_0x2df7cd,_0x1949c5)=>_0x2ce58f(_0x2df7cd,_0x1949c5,_0x374eb0);let se=class extends _0x27b35c{constructor(_0x5ceabc,_0x19ee3d,_0x57f746,_0x47f947){const _0x1cf690=_0x1de525;super(),_(this,'_status$',new _0x1c5c36(_0x44d661[_0x1cf690(0x1f5)])),(this[_0x1cf690(0x307)]=_0x5ceabc,this[_0x1cf690(0x14b)]=_0x19ee3d,this[_0x1cf690(0x12a)]=_0x57f746,this[_0x1cf690(0x269)]=_0x47f947,this[_0x1cf690(0x22e)](),this['_initStatusListener']());}[_0x1de525(0x27b)](){const _0x31d38a=_0x1de525;this[_0x31d38a(0x144)](this[_0x31d38a(0x307)]['focused$'][_0x31d38a(0x227)](_0x85c43a(()=>{const _0x1c9c0b=_0x31d38a,_0x213335=this[_0x1c9c0b(0x307)][_0x1c9c0b(0x210)]();return _0x213335?this[_0x1c9c0b(0x12a)][_0x1c9c0b(0x21b)](_0x213335[_0x1c9c0b(0x223)]()):_0x46fe23(null);}),_0x85c43a(_0x1f98d1=>_0x1f98d1?_0x1f98d1[_0x31d38a(0x19c)]:_0x46fe23(_0x44d661['NOT_COLLAB'])))[_0x31d38a(0x1aa)](_0x41b0fd=>{const _0x117974=_0x31d38a;this[_0x117974(0x265)]['next'](_0x41b0fd);}));}['_initStatusComponent'](){const _0x4760ea=_0x1de525;this[_0x4760ea(0x144)](this['_uiPartsService'][_0x4760ea(0x18c)](_0x4eaa43[_0x4760ea(0x20b)],()=>_0x2e9287(vi({'status$':this['_status$'][_0x4760ea(0x208)]()}),this[_0x4760ea(0x14b)])));}};se=Ii([q(0x0,_0x38aa79),q(0x1,_0x5c6996(_0x25bcbf)),q(0x2,_0x5c6996(_0x16a7df)),q(0x3,_0x46dcc7)],se);function vi(_0x2d2247){const {status$:_0x8b8476}=_0x2d2247;return function(){return _0x22a986(Si,{'status$':_0x8b8476});};}const Ut=_0x4dce94(_0x1de525(0x2ba));var gi=Object[_0x1de525(0x2eb)],pi=(_0x4668d4,_0x382bb0,_0x1a3989,_0x3b0b2c)=>{const _0xc3b9c5=_0x1de525;for(var _0x3851bc=_0x3b0b2c>0x1?void 0x0:_0x3b0b2c?gi(_0x382bb0,_0x1a3989):_0x382bb0,_0x516163=_0x4668d4[_0xc3b9c5(0x16e)]-0x1,_0x45a70a;_0x516163>=0x0;_0x516163--)(_0x45a70a=_0x4668d4[_0x516163])&&(_0x3851bc=_0x45a70a(_0x3851bc)||_0x3851bc);return _0x3851bc;},G=(_0x5bb01e,_0x4ae3c8)=>(_0x4b3283,_0x23c59f)=>_0x4ae3c8(_0x4b3283,_0x23c59f,_0x5bb01e);let ie=class extends _0x5d5e25{constructor(_0x19f45f,_0x3aff72,_0xa02aff,_0x10e2f8,_0x566c81){const _0x344396=_0x1de525;super(),this[_0x344396(0x14f)]=_0x19f45f,this[_0x344396(0x23c)]=_0x3aff72,this['_commandService']=_0xa02aff,this['_dataLoaderService']=_0x10e2f8,_0x566c81?_0x566c81==null||_0x566c81[_0x344396(0x24a)]()[_0x344396(0x23b)](()=>this[_0x344396(0x2a6)]()):(this[_0x344396(0x23c)][_0x344396(0x18b)]('[CollaborationDataLoaderController]',_0x344396(0x262)),this[_0x344396(0x2a6)]());}async[_0x1de525(0x2a6)](){const _0x486593=_0x1de525,_0x3a9137=this[_0x486593(0x14f)]['getParam'](_0x486593(0x138)),_0x546f1c=this[_0x486593(0x14f)]['getParam'](_0x486593(0x297)),_0x4f555d=this[_0x486593(0x14f)][_0x486593(0x222)](_0x486593(0x2c2));if(!_0x3a9137||!_0x546f1c){this[_0x486593(0x23c)]['debug']('[CollaborationDataLoaderController]',_0x486593(0x1bf));return;}const _0x542ad6=await this[_0x486593(0x220)][_0x486593(0x2cf)](_0x3a9137,Number(_0x546f1c),_0x4f555d);_0x542ad6&&_0x542ad6 instanceof _0x28849d&&this[_0x486593(0x120)](_0x542ad6);}async[_0x1de525(0x120)](_0x4cd768){const _0x1256b4=_0x1de525;await this['_updateSubUnitFromURLParams'](_0x4cd768),_0x4cd768[_0x1256b4(0x17d)][_0x1256b4(0x227)](_0x552e0d(this['dispose$']))[_0x1256b4(0x1aa)](_0x3992f6=>{const _0x28cadc=_0x1256b4;_0x3992f6&&this[_0x28cadc(0x1dc)](_0x3992f6);}),this[_0x1256b4(0x14f)][_0x1256b4(0x158)][_0x1256b4(0x227)](_0x552e0d(this[_0x1256b4(0x1b6)]))[_0x1256b4(0x1aa)](()=>this[_0x1256b4(0x2af)](_0x4cd768));}[_0x1de525(0x1dc)](_0x45908f,_0x586b32=!0x1){const _0x56efe0=_0x1de525,_0x5defe3=this[_0x56efe0(0x14f)][_0x56efe0(0x222)](_0x56efe0(0x2c2));_0x45908f['getSheetId']()!==_0x5defe3&&this[_0x56efe0(0x14f)][_0x56efe0(0x2b5)](_0x56efe0(0x2c2),_0x45908f[_0x56efe0(0x17b)](),_0x586b32);}async['_updateSubUnitFromURLParams'](_0x172c6e){const _0x1466cf=_0x1de525;var _0x5176ac;const _0x59250c=this[_0x1466cf(0x14f)]['getParam'](_0x1466cf(0x2c2));if(!_0x59250c||!_0x172c6e[_0x1466cf(0x1cd)](_0x59250c)){const _0x29dac9=_0x172c6e['getUnhiddenWorksheets']()[0x0],_0x570229=_0x172c6e[_0x1466cf(0x1cd)](_0x29dac9);if(!_0x570229)return;this['_updateURLWithCurrentState'](_0x570229,!0x0),await this[_0x1466cf(0x255)][_0x1466cf(0x235)](_0x6f9153['id'],{'unitId':_0x172c6e[_0x1466cf(0x223)](),'subUnitId':_0x29dac9});return;}((_0x5176ac=_0x172c6e[_0x1466cf(0x20f)]())==null?void 0x0:_0x5176ac[_0x1466cf(0x17b)]())!==_0x59250c&&await this[_0x1466cf(0x255)][_0x1466cf(0x235)](_0x6f9153['id'],{'unitId':_0x172c6e['getUnitId'](),'subUnitId':_0x59250c});}};ie=pi([G(0x0,Ut),G(0x1,_0x3d5d66),G(0x2,_0x3d6ba5),G(0x3,_0x5c6996(_0x3d8bd6)),G(0x4,_0xadcd71(_0x2fd947))],ie);var Ci=Object[_0x1de525(0x2eb)],Ei=(_0x59f2c5,_0x408aee,_0x2eec2e,_0x342b99)=>{const _0x2fede0=_0x1de525;for(var _0x367e02=_0x342b99>0x1?void 0x0:_0x342b99?Ci(_0x408aee,_0x2eec2e):_0x408aee,_0x448f28=_0x59f2c5[_0x2fede0(0x16e)]-0x1,_0x1d527c;_0x448f28>=0x0;_0x448f28--)(_0x1d527c=_0x59f2c5[_0x448f28])&&(_0x367e02=_0x1d527c(_0x367e02)||_0x367e02);return _0x367e02;},Je=(_0x453d1e,_0x3022b0)=>(_0x435bcb,_0x10d2c7)=>_0x3022b0(_0x435bcb,_0x10d2c7,_0x453d1e);let Ne=class extends _0x5d5e25{constructor(_0x143287,_0x11867e){const _0x298536=_0x1de525;super(),this[_0x298536(0x26d)]=_0x143287,this[_0x298536(0x178)]=_0x11867e,this[_0x298536(0x2a6)]();}[_0x1de525(0x2a6)](){const _0x3279d1=_0x1de525,_0x19c930=this;this[_0x3279d1(0x144)](this[_0x3279d1(0x26d)][_0x3279d1(0x195)]({'onBeforePasteImage':async _0x2cf05c=>{const _0x46c9da=_0x3279d1,_0x4a6140=await _0x19c930[_0x46c9da(0x178)][_0x46c9da(0x280)](_0x2cf05c);return _0x4a6140?{'source':_0x4a6140[_0x46c9da(0x173)],'imageSourceType':_0x4a6140[_0x46c9da(0x31e)]}:null;}}));}};Ne=Ei([Je(0x0,_0x1f6e08),Je(0x1,_0x43c74a)],Ne);const Ze=[_0x1de525(0x23a),_0x1de525(0x13b),_0x1de525(0x12c),_0x1de525(0x282),_0x1de525(0x1bd),_0x1de525(0x187)];class He extends _0x27b35c{constructor(){const _0x2fee95=_0x1de525;super(...arguments),_(this,_0x2fee95(0x315),new Map()),_(this,_0x2fee95(0x1af),0x0);}[_0x1de525(0x1fd)](_0x501fa8){const _0xe40a6d=_0x1de525;if(this[_0xe40a6d(0x315)][_0xe40a6d(0x20c)](_0x501fa8))return this[_0xe40a6d(0x315)]['get'](_0x501fa8);const _0x33f815=Ze[this[_0xe40a6d(0x1af)]];return this[_0xe40a6d(0x1af)]=(this[_0xe40a6d(0x1af)]+0x1)%Ze[_0xe40a6d(0x16e)],this[_0xe40a6d(0x315)][_0xe40a6d(0x293)](_0x501fa8,_0x33f815),_0x33f815;}}function Mt(_0x3b52e3){const _0xb99c5c=_0x1de525;let _0x867381='';for(const _0x31fb15 of _0x3b52e3){const {startOffset:_0x210c5a,endOffset:_0x385c6a,isActive:_0x50b9f4,rangeType:_0x28fbd9,segmentId:_0xcdbc3c,segmentPage:_0x290cd3}=_0x31fb15;_0x867381[_0xb99c5c(0x16e)]&&(_0x867381+=','),_0x867381+=_0x210c5a+':'+_0x385c6a+':'+(_0x50b9f4?'1':'0')+':'+_0x28fbd9+':'+_0xcdbc3c+':'+_0x290cd3;}return _0x867381;}function Oi(_0x35a719){const _0x3567fb=_0x1de525,_0x3f437c=_0x35a719['split'](','),_0x2d95ab=[];for(const _0x4948af of _0x3f437c){const [_0x4d174d,_0x4c6c7c,_0x398d35,_0x3ea1b1,_0x430bff,_0x5365ba]=_0x4948af[_0x3567fb(0x301)](':');_0x2d95ab[_0x3567fb(0x261)]({'startOffset':Number(_0x4d174d),'endOffset':Number(_0x4c6c7c),'collapsed':_0x4d174d===_0x4c6c7c,'isActive':_0x398d35==='1','rangeType':_0x3ea1b1===_0x12430b[_0x3567fb(0x26f)]?_0x12430b[_0x3567fb(0x26f)]:_0x12430b[_0x3567fb(0x183)],'segmentId':typeof _0x430bff=='string'?String(_0x430bff):'','segmentPage':Number(_0x5365ba!=null?_0x5365ba:-0x1)});}return _0x2d95ab['some'](_0xd699dd=>_0xd699dd[_0x3567fb(0x2f9)])||(_0x2d95ab[0x0][_0x3567fb(0x2f9)]=!0x0),_0x2d95ab;}class Fe extends _0x5d5e25{constructor(){const _0xa4663e=_0x1de525;super(...arguments),_(this,_0xa4663e(0x1c8),new _0x1c5c36(null)),_(this,_0xa4663e(0x26b),this['_collabCursorState$'][_0xa4663e(0x208)]());}[_0x1de525(0x2f4)](_0x58f257){const _0x31e714=_0x1de525,{unitID:_0x2b5ae1,memberID:_0x287f70,textRanges:_0xd886be}=_0x58f257,_0x596a08=Mt(_0xd886be);if(_0x596a08==='')return;const _0x9c6054={'unitID':_0x2b5ae1,'memberID':_0x287f70,'selection':_0x596a08};this[_0x31e714(0x1c8)]['next'](_0x9c6054);}}var bi=Object['getOwnPropertyDescriptor'],Ti=(_0x8ab654,_0x7faad5,_0x1bcc77,_0x43d5d2)=>{const _0x4e0ad2=_0x1de525;for(var _0x228f53=_0x43d5d2>0x1?void 0x0:_0x43d5d2?bi(_0x7faad5,_0x1bcc77):_0x7faad5,_0x2ea226=_0x8ab654[_0x4e0ad2(0x16e)]-0x1,_0x196c28;_0x2ea226>=0x0;_0x2ea226--)(_0x196c28=_0x8ab654[_0x2ea226])&&(_0x228f53=_0x196c28(_0x228f53)||_0x228f53);return _0x228f53;},P=(_0x39114b,_0x5ddea1)=>(_0xfbc5ae,_0x50b10b)=>_0x5ddea1(_0xfbc5ae,_0x50b10b,_0x39114b);const Ri=0x12c,Di=0x64;let Ue=class extends _0x5d5e25{constructor(_0x3b7ce8,_0x297bc7,_0x3cc7c4,_0x264805,_0x3ef9f7,_0x3f1ca7,_0xef0478,_0x2b41ab,_0x5697ca){const _0xefc1fd=_0x1de525;super(),_(this,_0xefc1fd(0x277),!0x1),_(this,_0xefc1fd(0x2a6),!0x1),_(this,'_cursorInfo$',new _0x1c5c36(new Map())),_(this,_0xefc1fd(0x140),this[_0xefc1fd(0x2e1)][_0xefc1fd(0x208)]()),_(this,_0xefc1fd(0x22d),new _0x1c5c36([])),_(this,_0xefc1fd(0x1a7),this[_0xefc1fd(0x22d)][_0xefc1fd(0x227)](_0x503527(Ri))),_(this,_0xefc1fd(0x258),_0x2398b9(_0xdb1ce3=>{const _0x584c7d=_0xefc1fd,_0x24d62a={'eventID':_0x3e51f4['UPDATE_CURSOR'],'data':{'unitID':this[_0x584c7d(0x226)],'memberID':this['_session'][_0x584c7d(0x1c3)](),'selection':Mt(_0xdb1ce3)}};this[_0x584c7d(0x2d6)][_0x584c7d(0x214)](_0x24d62a,this['unitID']);},Di)),(this[_0xefc1fd(0x226)]=_0x3b7ce8,this[_0xefc1fd(0x2d6)]=_0x297bc7,this[_0xefc1fd(0x14b)]=_0x3cc7c4,this[_0xefc1fd(0x1f3)]=_0x264805,this['_memberService']=_0x3ef9f7,this['_syncEditingCollabCursorService']=_0x3f1ca7,this[_0xefc1fd(0x31c)]=_0xef0478,this[_0xefc1fd(0x307)]=_0x2b41ab,this[_0xefc1fd(0x255)]=_0x5697ca);}get[_0x1de525(0x303)](){const _0x44c908=_0x1de525;return this[_0x44c908(0x2e1)][_0x44c908(0x1df)]();}get[_0x1de525(0x30e)](){const _0x3aa0da=_0x1de525;return this['_roomMembers$'][_0x3aa0da(0x1df)]();}['dispose'](){const _0x305885=_0x1de525;super[_0x305885(0x13f)](),this[_0x305885(0x2e1)][_0x305885(0x239)](new Map()),this[_0x305885(0x2e1)]['complete'](),this[_0x305885(0x22d)]['next']([]),this[_0x305885(0x22d)][_0x305885(0x1b4)]();}['init'](){const _0x123595=_0x1de525;this[_0x123595(0x2a6)]||(this[_0x123595(0x2a6)]=!0x0,this['_session'][_0x123595(0x279)]['pipe'](_0x552e0d(this[_0x123595(0x1b6)]))['subscribe'](_0x2a7cd8=>{const _0x5213d8=_0x123595;_0x2a7cd8===_0xbb7629[_0x5213d8(0x16a)]?this[_0x5213d8(0x1eb)]():this['_toggleOffline']();}),this[_0x123595(0x2d6)][_0x123595(0x206)][_0x123595(0x227)](_0x552e0d(this[_0x123595(0x1b6)]))[_0x123595(0x1aa)](_0x775d51=>{const _0x5d6c64=_0x123595,_0x5e7a86=_0x775d51[_0x5d6c64(0x16d)];_0x5e7a86===_0x3e51f4[_0x5d6c64(0x1f6)]&&this[_0x5d6c64(0x1d9)](_0x775d51),_0x5e7a86===_0x3e51f4[_0x5d6c64(0x1a0)]&&this[_0x5d6c64(0x2c4)](_0x775d51);}),this[_0x123595(0x144)](this[_0x123595(0x255)][_0x123595(0x133)](_0x241ca3=>{const _0x309dd1=_0x123595,_0x1807b1=_0x241ca3[_0x309dd1(0x25f)];_0x1807b1!=null&&this['_online']&&_0x241ca3['id']===_0x4f359e['id']&&_0x1807b1[_0x309dd1(0x1cb)]===this[_0x309dd1(0x226)]&&_0x1807b1[_0x309dd1(0x2aa)]===!0x1&&_0x1807b1[_0x309dd1(0x2d0)][_0x309dd1(0x16e)]>0x0&&this[_0x309dd1(0x258)](_0x1807b1['ranges']);})),this[_0x123595(0x175)][_0x123595(0x26b)][_0x123595(0x227)](_0x552e0d(this[_0x123595(0x1b6)]))[_0x123595(0x1aa)](_0x5851bb=>{const _0x1efecb=_0x123595;if((_0x5851bb==null?void 0x0:_0x5851bb[_0x1efecb(0x226)])!==this[_0x1efecb(0x226)])return;const _0x5ce3f5={'eventID':_0x3e51f4[_0x1efecb(0x1f6)],'data':_0x5851bb};this['_onCursorUpdate'](_0x5ce3f5);}),this[_0x123595(0x144)](this[_0x123595(0x255)][_0x123595(0x133)](_0x12399a=>{const _0x5c7fb8=_0x123595;if(_0x12399a[_0x5c7fb8(0x25f)]==null)return;const _0x36e3a8=_0x12399a[_0x5c7fb8(0x25f)];if(_0x12399a['id']!==_0x16fcc7['id']||_0x36e3a8[_0x5c7fb8(0x1cb)]!==this[_0x5c7fb8(0x226)])return;const _0x247434={'id':_0x5c7fb8(0x1ac),'params':_0x36e3a8},_0x1daf97=this['cursorInfo'];for(const [_0x35f8d9,_0x1f92f5]of _0x1daf97){const _0x4458bf={'id':_0x5c7fb8(0x1ac),'params':{'unitId':this[_0x5c7fb8(0x226)],'actions':null,'textRanges':_0x1f92f5[_0x5c7fb8(0x2d0)]}},_0x4b2f6f=this['_transformService'][_0x5c7fb8(0x1e8)](_0x247434,_0x4458bf,!0x1);if(_0x394d8b(_0x4b2f6f))throw _0x4b2f6f[_0x5c7fb8(0x2c6)];_0x1daf97[_0x5c7fb8(0x293)](_0x35f8d9,{..._0x1f92f5,'ranges':_0x4b2f6f['m2Prime']['params'][_0x5c7fb8(0x189)]});}queueMicrotask(()=>{const _0x54b6f6=_0x5c7fb8;this[_0x54b6f6(0x2e1)][_0x54b6f6(0x239)](_0x1daf97);});})));}[_0x1de525(0x1d9)](_0x1cf0c1){const _0x47493b=_0x1de525;var _0x32d913,_0x204df2;const {memberID:_0x12f01d,selection:_0x5dc2e2}=_0x1cf0c1['data'],_0x59ee01=Oi(_0x5dc2e2),_0x160a4f=(_0x204df2=(_0x32d913=this['_memberService']['getMember'](this[_0x47493b(0x226)],_0x12f01d))==null?void 0x0:_0x32d913[_0x47493b(0x196)])!=null?_0x204df2:'Unknown\x20user',_0xc606bf={'color':this[_0x47493b(0x1f3)][_0x47493b(0x1fd)](_0x12f01d),'name':_0x160a4f,'ranges':_0x59ee01},_0x4d838c=this[_0x47493b(0x303)];_0x4d838c['set'](_0x12f01d,_0xc606bf),this[_0x47493b(0x2e1)][_0x47493b(0x239)](_0x4d838c);}[_0x1de525(0x2c4)](_0x2540f6){const _0x3992bd=_0x1de525,{memberID:_0x42083c}=_0x2540f6[_0x3992bd(0x26a)],_0x14e685=this[_0x3992bd(0x303)];_0x14e685[_0x3992bd(0x29f)](_0x42083c),this[_0x3992bd(0x2e1)][_0x3992bd(0x239)](_0x14e685);}[_0x1de525(0x1eb)](){const _0x25fb97=_0x1de525;var _0x217f9e;if(this['_online']=!0x0,((_0x217f9e=this[_0x25fb97(0x307)][_0x25fb97(0x210)]())==null?void 0x0:_0x217f9e[_0x25fb97(0x223)]())!==this[_0x25fb97(0x226)])return;const _0x2ff7d4=this[_0x25fb97(0x14b)][_0x25fb97(0x204)](_0x54ea0b)['getDocRanges']();Array[_0x25fb97(0x2c7)](_0x2ff7d4)&&_0x2ff7d4[_0x25fb97(0x16e)]>0x0&&this[_0x25fb97(0x258)](_0x2ff7d4);}[_0x1de525(0x284)](){this['_online']=!0x1;}};Ue=Ti([P(0x2,_0x5c6996(_0x25bcbf)),P(0x3,_0x5c6996(He)),P(0x4,_0x5c6996(_0x30e787)),P(0x5,_0x5c6996(Fe)),P(0x6,_0x4d45d3),P(0x7,_0x38aa79),P(0x8,_0x3d6ba5)],Ue);var Ni=Object[_0x1de525(0x2eb)],Ui=(_0x478148,_0x273f4b,_0x32ba93,_0x150606)=>{const _0x57a3d7=_0x1de525;for(var _0x631b85=_0x150606>0x1?void 0x0:_0x150606?Ni(_0x273f4b,_0x32ba93):_0x273f4b,_0x21a279=_0x478148[_0x57a3d7(0x16e)]-0x1,_0x2f4423;_0x21a279>=0x0;_0x21a279--)(_0x2f4423=_0x478148[_0x21a279])&&(_0x631b85=_0x2f4423(_0x631b85)||_0x631b85);return _0x631b85;},x=(_0x2e2ab7,_0x4cb007)=>(_0x1b523a,_0x26309d)=>_0x4cb007(_0x1b523a,_0x26309d,_0x2e2ab7);const Mi=0x12c,Li=0x64,Pi=()=>{let _0x1e2032=[],_0x5a18aa=!0x1;return _0x2d890e=>{_0x1e2032['push'](_0x2d890e),_0x5a18aa||(_0x5a18aa=!0x0,setTimeout(()=>{const _0x3d8011=_0x1f2d;_0x1e2032[_0x3d8011(0x1ce)](_0x5783f2=>_0x5783f2()),_0x1e2032=[],_0x5a18aa=!0x1;}));};};let Me=class extends _0x5d5e25{constructor(_0x9f062b,_0x1d6b9e,_0x1d761c,_0x5433c4,_0x41e211,_0x27abaf,_0x1e925f,_0x631e5){const _0x43e21c=_0x1de525;super(),_(this,_0x43e21c(0x277),!0x1),_(this,_0x43e21c(0x2a6),!0x1),_(this,_0x43e21c(0x2e1),new _0x1c5c36(new Map())),_(this,_0x43e21c(0x140),this['_cursorInfo$'][_0x43e21c(0x208)]()),_(this,'_roomMembers$',new _0x1c5c36([])),_(this,_0x43e21c(0x1a7),this['_roomMembers$'][_0x43e21c(0x227)](_0x503527(Mi))),_(this,_0x43e21c(0x258),_0x2398b9((_0x4af6b3,_0x37d202)=>{const _0x41b398=_0x43e21c,_0x34e7d5={'eventID':_0x3e51f4[_0x41b398(0x1f6)],'data':{'unitID':this[_0x41b398(0x226)],'memberID':this[_0x41b398(0x2d6)][_0x41b398(0x1c3)](),'selection':_0x218740(_0x4af6b3,_0x37d202['range'])}};this[_0x41b398(0x2d6)]['send'](_0x34e7d5,this[_0x41b398(0x226)]);},Li)),(this[_0x43e21c(0x226)]=_0x9f062b,this['_session']=_0x1d6b9e,this[_0x43e21c(0x14b)]=_0x1d761c,this[_0x43e21c(0x1f3)]=_0x5433c4,this[_0x43e21c(0x1ff)]=_0x41e211,this[_0x43e21c(0x307)]=_0x27abaf,this[_0x43e21c(0x255)]=_0x1e925f,this[_0x43e21c(0x27c)]=_0x631e5);}get[_0x1de525(0x303)](){const _0x251840=_0x1de525;return this[_0x251840(0x2e1)][_0x251840(0x1df)]();}get[_0x1de525(0x30e)](){const _0xa6995d=_0x1de525;return this[_0xa6995d(0x22d)][_0xa6995d(0x1df)]();}[_0x1de525(0x13f)](){const _0x3e0103=_0x1de525;super[_0x3e0103(0x13f)](),this[_0x3e0103(0x2e1)][_0x3e0103(0x239)](new Map()),this[_0x3e0103(0x2e1)][_0x3e0103(0x1b4)](),this['_roomMembers$'][_0x3e0103(0x239)]([]),this['_roomMembers$']['complete']();}[_0x1de525(0x281)](){const _0x2363ee=_0x1de525;this[_0x2363ee(0x2a6)]||(this['_init']=!0x0,this[_0x2363ee(0x2d6)][_0x2363ee(0x279)][_0x2363ee(0x227)](_0x552e0d(this[_0x2363ee(0x1b6)]))[_0x2363ee(0x1aa)](_0x584bc6=>{const _0x1f9527=_0x2363ee;_0x584bc6===_0xbb7629[_0x1f9527(0x16a)]?this['_toggleOnline']():this[_0x1f9527(0x284)]();}),this['_session'][_0x2363ee(0x206)][_0x2363ee(0x227)](_0x552e0d(this['dispose$']))[_0x2363ee(0x1aa)](_0xd73ace=>{const _0x4f590f=_0x2363ee,_0x33d0ff=_0xd73ace[_0x4f590f(0x16d)];_0x33d0ff===_0x3e51f4[_0x4f590f(0x1f6)]&&this[_0x4f590f(0x1d9)](_0xd73ace),_0x33d0ff===_0x3e51f4['USERS_LEAVE']&&this[_0x4f590f(0x2c4)](_0xd73ace);}),this[_0x2363ee(0x2e2)](),this[_0x2363ee(0x144)](this[_0x2363ee(0x255)][_0x2363ee(0x133)](_0x5089e1=>{const _0x4c4bf9=_0x2363ee;if(this['_online']&&_0x5089e1['id']===_0x4f4d5e['id']&&_0x5089e1[_0x4c4bf9(0x25f)][_0x4c4bf9(0x1cb)]===this['unitID']){const _0x6fe085=_0x5089e1['params'];this[_0x4c4bf9(0x258)](_0x6fe085['subUnitId'],_0x6fe085['selections'][0x0]);}})));}['_onCursorUpdate'](_0x55316c){const _0x4d9368=_0x1de525;var _0x3f1770,_0x276937;const {memberID:_0xa7fd82,selection:_0x3de09a}=_0x55316c[_0x4d9368(0x26a)],{sheetName:_0x1346e6,range:_0x50dd80}=_0x4365d9(_0x3de09a),_0x115f81={'name':(_0x276937=(_0x3f1770=this[_0x4d9368(0x1ff)][_0x4d9368(0x197)](this[_0x4d9368(0x226)],_0xa7fd82))==null?void 0x0:_0x3f1770['name'])!=null?_0x276937:_0x4d9368(0x290),'range':this[_0x4d9368(0x2a4)](_0x1346e6,_0x50dd80),'sheetID':_0x1346e6,'color':this[_0x4d9368(0x1f3)]['assignAColorForMemberID'](_0xa7fd82),'selection':_0x3de09a},_0x2e2727=this[_0x4d9368(0x303)];_0x2e2727[_0x4d9368(0x293)](_0xa7fd82,_0x115f81),this[_0x4d9368(0x2e1)]['next'](_0x2e2727);}[_0x1de525(0x2c4)](_0x4a5533){const _0x4a2e5f=_0x1de525,{memberID:_0x34426d}=_0x4a5533['data'],_0x8510fc=this['cursorInfo'];_0x8510fc[_0x4a2e5f(0x29f)](_0x34426d),this[_0x4a2e5f(0x2e1)][_0x4a2e5f(0x239)](_0x8510fc);}[_0x1de525(0x2a4)](_0x4a02cc,_0x129563){const _0x4b1a81=_0x1de525;var _0x8612ea,_0x3608fe;const _0x1ea7a6=(_0x3608fe=(_0x8612ea=this[_0x4b1a81(0x307)][_0x4b1a81(0x289)](this['unitID']))==null?void 0x0:_0x8612ea[_0x4b1a81(0x1cd)](_0x4a02cc))==null?void 0x0:_0x3608fe['getMergeData']();return(_0x1ea7a6==null?void 0x0:_0x1ea7a6['find'](_0xdfd5e4=>_0x2040a1[_0x4b1a81(0x11e)](_0xdfd5e4,_0x129563)))||_0x129563;}[_0x1de525(0x2e2)](){const _0x3cfca8=_0x1de525,_0x241a59=new _0x57cfe9(),_0x4996d9=Pi(),_0x192d58=()=>{const _0x79970f=_0x1f2d;_0x241a59[_0x79970f(0x13f)]();const _0x4a2798=(_0x299331,_0x3bb84d,_0x1c4ba8,_0xc7a884)=>{const _0x5efa37=_0x79970f;let _0x42f8f8=[];switch(_0x299331['id']){case _0x2669fb[_0x5efa37(0x25c)]:{_0x42f8f8=_0x5c62f0(_0x299331,_0xc7a884);break;}case _0x2669fb['DeleteRangeMoveUpCommandId']:{_0x42f8f8=_0xe6ac9(_0x299331,_0xc7a884);break;}case _0x2669fb[_0x5efa37(0x13c)]:{_0x42f8f8=_0x23b976(_0x299331,_0xc7a884);break;}case _0x2669fb[_0x5efa37(0x16f)]:{_0x42f8f8=_0x51d53a(_0x299331,_0xc7a884);break;}case _0x2669fb['InsertRangeMoveRightCommandId']:{_0x42f8f8=_0x312a7d(_0x299331,_0xc7a884);break;}case _0x2669fb[_0x5efa37(0x186)]:{_0x42f8f8=_0xeb3fa2(_0x299331,_0xc7a884);break;}case _0x2669fb[_0x5efa37(0x127)]:{_0x42f8f8=_0x29bef9(_0x299331,_0xc7a884);break;}case _0x2669fb['RemoveColCommandId']:{_0x42f8f8=_0x2e7d8e(_0x299331,_0xc7a884);break;}case _0x2669fb['RemoveRowCommandId']:{_0x42f8f8=_0x1fd061(_0x299331,_0xc7a884);break;}}const _0x3ef408=_0x32d34f(_0x42f8f8,_0xc7a884),_0x2d6ac0=this[_0x5efa37(0x303)][_0x5efa37(0x204)](_0x3bb84d);if(_0x2d6ac0&&_0x3ef408){const _0x165a83={..._0x2d6ac0,'range':_0x3ef408};this[_0x5efa37(0x303)]['set'](_0x3bb84d,_0x165a83),_0x4996d9(()=>{const _0x33eb77=_0x5efa37,_0x51ca5b=this['_refRangeService'][_0x33eb77(0x2e6)](_0x3ef408,_0x3db8ae=>(_0x51ca5b[_0x33eb77(0x13f)](),_0x4a2798(_0x3db8ae,_0x3bb84d,_0x1c4ba8,_0x3ef408)));_0x241a59['add'](_0x51ca5b);});}return{'redos':[],'undos':[]};};this[_0x79970f(0x303)][_0x79970f(0x1ce)]((_0x4b6c7c,_0xefe958)=>{const _0x14a46d=_0x79970f,{range:_0x47cd3a,sheetID:_0x1ee41d}=_0x4b6c7c,_0x3e212f=this[_0x14a46d(0x27c)][_0x14a46d(0x2e6)](_0x47cd3a,_0x10a617=>(_0x3e212f[_0x14a46d(0x13f)](),_0x4a2798(_0x10a617,_0xefe958,_0x1ee41d,_0x47cd3a)));_0x241a59[_0x14a46d(0x237)](_0x3e212f);});};this['disposeWithMe'](_0x2685e5(this[_0x3cfca8(0x2e1)]['subscribe'](()=>{_0x192d58();})));}[_0x1de525(0x1eb)](){const _0x52f3de=_0x1de525;var _0x54d4b5,_0x5a974f;if(this['_online']=!0x0,((_0x54d4b5=this[_0x52f3de(0x307)][_0x52f3de(0x210)]())==null?void 0x0:_0x54d4b5[_0x52f3de(0x223)]())!==this['unitID'])return;const _0x5e4001=(_0x5a974f=this[_0x52f3de(0x14b)]['get'](_0x20ba72)['getCurrentSelections']())==null?void 0x0:_0x5a974f[0x0],_0xff0edb=this[_0x52f3de(0x307)][_0x52f3de(0x160)](_0x5ef820[_0x52f3de(0x25a)])['getActiveSheet']();_0x5e4001&&_0xff0edb&&this[_0x52f3de(0x258)](_0xff0edb['getSheetId'](),_0x5e4001);}[_0x1de525(0x284)](){const _0x451d75=_0x1de525;this[_0x451d75(0x277)]=!0x1;}};Me=Ui([x(0x2,_0x5c6996(_0x25bcbf)),x(0x3,_0x5c6996(He)),x(0x4,_0x5c6996(_0x30e787)),x(0x5,_0x38aa79),x(0x6,_0x3d6ba5),x(0x7,_0x5c6996(_0x596355))],Me);var wi=Object[_0x1de525(0x2eb)],Ai=(_0x1d4aa1,_0xcbd064,_0x550f91,_0x1ea504)=>{for(var _0x553935=_0x1ea504>0x1?void 0x0:_0x1ea504?wi(_0xcbd064,_0x550f91):_0xcbd064,_0x2f33d7=_0x1d4aa1['length']-0x1,_0x444bee;_0x2f33d7>=0x0;_0x2f33d7--)(_0x444bee=_0x1d4aa1[_0x2f33d7])&&(_0x553935=_0x444bee(_0x553935)||_0x553935);return _0x553935;},me=(_0x3f7e60,_0x3548ee)=>(_0x1940ad,_0x29321c)=>_0x3548ee(_0x1940ad,_0x29321c,_0x3f7e60);let F=class extends _0x5d5e25{constructor(_0x4dd80f,_0x588340,_0x3588cc){const _0x46225d=_0x1de525;super(),_(this,_0x46225d(0x2b9),new Map()),_(this,_0x46225d(0x199),new _0x12a97c()),(this[_0x46225d(0x307)]=_0x4dd80f,this['_injector']=_0x588340,this[_0x46225d(0x2ad)]=_0x3588cc,this['_init']());}[_0x1de525(0x13f)](){const _0x179196=_0x1de525;super[_0x179196(0x13f)](),this['_entityInit$']['complete'](),this['_entities'][_0x179196(0x1ce)](_0x5b2f78=>_0x5b2f78[_0x179196(0x13f)]());}[_0x1de525(0x1d4)](_0x3abc92){const _0x551970=_0x1de525;return this[_0x551970(0x2b9)]['has'](_0x3abc92)?this[_0x551970(0x2b9)][_0x551970(0x204)](_0x3abc92)[_0x551970(0x140)]:this[_0x551970(0x199)][_0x551970(0x227)](_0x220197(_0x154587=>_0x154587['unitID']===_0x3abc92),_0x85c43a(_0x384c42=>_0x384c42[_0x551970(0x140)]));}[_0x1de525(0x2a6)](){const _0x233efa=_0x1de525;this[_0x233efa(0x307)]['getTypeOfUnitAdded$'](_0x5ef820['UNIVER_SHEET'])[_0x233efa(0x227)](_0x552e0d(this[_0x233efa(0x1b6)]))[_0x233efa(0x1aa)](async _0x20bedd=>{const _0x4dbb2b=_0x233efa,_0x3882bb=_0x20bedd[_0x4dbb2b(0x223)](),_0x4ac9b8=await this[_0x4dbb2b(0x14e)](_0x3882bb);this[_0x4dbb2b(0x199)][_0x4dbb2b(0x239)](_0x4ac9b8),this[_0x4dbb2b(0x2b9)][_0x4dbb2b(0x293)](_0x3882bb,_0x4ac9b8);}),this[_0x233efa(0x307)][_0x233efa(0x20a)](_0x5ef820[_0x233efa(0x185)])['pipe'](_0x552e0d(this[_0x233efa(0x1b6)]))['pipe'](_0x220197(_0x11eaf5=>!_0x11eaf5[_0x233efa(0x223)]()[_0x233efa(0x1e6)]('__')))[_0x233efa(0x1aa)](async _0x1bbffd=>{const _0xb4a8e1=_0x233efa,_0x14bdc3=_0x1bbffd[_0xb4a8e1(0x223)](),_0x32444d=await this['_startDocCollabCursor'](_0x14bdc3);this[_0xb4a8e1(0x199)][_0xb4a8e1(0x239)](_0x32444d),this['_entities'][_0xb4a8e1(0x293)](_0x14bdc3,_0x32444d);}),_0x2422bd(this['_univerInstanceService'][_0x233efa(0x310)](_0x5ef820[_0x233efa(0x185)]),this[_0x233efa(0x307)][_0x233efa(0x310)](_0x5ef820[_0x233efa(0x25a)]))['pipe'](_0x552e0d(this[_0x233efa(0x1b6)]))[_0x233efa(0x1aa)](_0x8d7485=>{const _0x26a45e=_0x233efa,_0x39102a=_0x8d7485[_0x26a45e(0x223)](),_0x31175d=this[_0x26a45e(0x2b9)][_0x26a45e(0x204)](_0x39102a);_0x31175d&&(_0x31175d[_0x26a45e(0x13f)](),this[_0x26a45e(0x2b9)][_0x26a45e(0x29f)](_0x39102a));});}async['_startSheetCollabCursor'](_0x4308e3){const _0x54474c=_0x1de525,_0x39783e=await this[_0x54474c(0x2ad)]['requireSession'](_0x4308e3),_0x11d783=this[_0x54474c(0x14b)][_0x54474c(0x1a6)](Me,_0x4308e3,_0x39783e);return _0x11d783[_0x54474c(0x281)](),_0x11d783;}async[_0x1de525(0x201)](_0x4ca8b5){const _0x33d00b=_0x1de525,_0x4aa25c=await this[_0x33d00b(0x2ad)][_0x33d00b(0x1da)](_0x4ca8b5),_0x21d988=this[_0x33d00b(0x14b)][_0x33d00b(0x1a6)](Ue,_0x4ca8b5,_0x4aa25c);return _0x21d988[_0x33d00b(0x281)](),_0x21d988;}};F=Ai([me(0x0,_0x38aa79),me(0x1,_0x5c6996(_0x25bcbf)),me(0x2,_0x5c6996(_0x31b372))],F);const J=0x14,Qe=0xc8,Ie=0x4,yi=0x5;function $i(_0x421041,_0x355f94){const _0x27b41e=_0x1de525;let {radius:_0x21f4a6,width:_0xd6d14,height:_0x1a0854}=_0x355f94;_0x21f4a6=_0x21f4a6!=null?_0x21f4a6:0x0,_0xd6d14=_0xd6d14!=null?_0xd6d14:0x1e,_0x1a0854=_0x1a0854!=null?_0x1a0854:0x1e;let _0x160201=0x0,_0x531748=0x0,_0x4e5147=0x0;_0x160201=_0x531748=_0x4e5147=Math['min'](_0x21f4a6,_0xd6d14/0x2,_0x1a0854/0x2),_0x421041[_0x27b41e(0x1b1)](),_0x421041[_0x27b41e(0x1e7)](_0x160201,0x0),_0x421041[_0x27b41e(0x2e9)](_0xd6d14-_0x531748,0x0),_0x421041[_0x27b41e(0x28d)](_0xd6d14-_0x531748,_0x531748,_0x531748,Math['PI']*0x3/0x2,0x0,!0x1),_0x421041[_0x27b41e(0x2e9)](_0xd6d14,_0x1a0854-_0x4e5147),_0x421041[_0x27b41e(0x28d)](_0xd6d14-_0x4e5147,_0x1a0854-_0x4e5147,_0x4e5147,0x0,Math['PI']/0x2,!0x1),_0x421041[_0x27b41e(0x2e9)](0x0,_0x1a0854),_0x421041['lineTo'](0x0,_0x160201),_0x421041['arc'](_0x160201,_0x160201,_0x160201,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x421041[_0x27b41e(0x1de)](),_0x355f94[_0x27b41e(0x2ea)]&&(_0x421041[_0x27b41e(0x286)](),_0x421041[_0x27b41e(0x1ef)]=_0x355f94[_0x27b41e(0x2ea)],_0x355f94[_0x27b41e(0x228)]===_0x27b41e(0x22c)?_0x421041[_0x27b41e(0x2ea)](_0x27b41e(0x22c)):_0x421041[_0x27b41e(0x2ea)](),_0x421041['restore']());}class ue extends _0xfc37c0{constructor(_0x39e1fd,_0x281aa6){const _0x466146=_0x1de525;super(_0x39e1fd,_0x281aa6),_(this,_0x466146(0x2b2)),_(this,_0x466146(0x2b0)),(this['color']=_0x281aa6==null?void 0x0:_0x281aa6[_0x466146(0x2b2)],this[_0x466146(0x2b0)]=_0x281aa6==null?void 0x0:_0x281aa6[_0x466146(0x2b0)]);}static['drawWith'](_0x422a9e,_0x6cb225){const _0x1f079e=_0x1de525,{text:_0x53eaa2,color:_0x361105}=_0x6cb225;_0x422a9e[_0x1f079e(0x286)](),_0x422a9e['font']=_0x1f079e(0x163);const _0x3c1558=_0x422a9e[_0x1f079e(0x21d)](_0x53eaa2)[_0x1f079e(0x15d)],_0x2cbeeb=Math['min'](_0x3c1558+0x2*Ie,Qe);$i(_0x422a9e,{'height':J,'radius':0x4,'width':_0x2cbeeb,'fill':_0x361105}),_0x422a9e[_0x1f079e(0x1ef)]=_0x1f079e(0x136);const _0xc1ceac=Ie,_0x93bc10=J-yi,_0x2d8dca=Qe-0x2*Ie;if(_0x3c1558>_0x2d8dca){let _0x1efc50='',_0x1748c8=0x0;for(const _0xe1d4a4 of _0x53eaa2){const _0x9a3df6=_0x422a9e[_0x1f079e(0x21d)](_0xe1d4a4)[_0x1f079e(0x15d)];if(_0x1748c8+_0x9a3df6<=_0x2d8dca-_0x422a9e[_0x1f079e(0x21d)](_0x1f079e(0x147))[_0x1f079e(0x15d)])_0x1efc50+=_0xe1d4a4,_0x1748c8+=_0x9a3df6;else{_0x1efc50+='...';break;}}_0x422a9e[_0x1f079e(0x151)](_0x1efc50,_0xc1ceac,_0x93bc10);}else _0x422a9e[_0x1f079e(0x151)](_0x53eaa2,_0xc1ceac,_0x93bc10);_0x422a9e[_0x1f079e(0x2ef)]();}['_draw'](_0x3a722e){const _0x16f39d=_0x1de525;ue[_0x16f39d(0x2a8)](_0x3a722e,this);}}const ve='collab-text-anchor-',xi=_0x1de525(0x1ca),Bi=_0x1de525(0x218),K=0x6,ki=1.5,ge=0x4,Hi=1.5,Fi=_0x1de525(0x1fe);class qe{constructor(_0x1cd677,_0x20a48a,_0x17509f,_0x1aa9bb){const _0x1f37eb=_0x1de525;_(this,'_shapes',[]),_(this,_0x1f37eb(0x225),null),_(this,_0x1f37eb(0x1d3),null),_(this,_0x1f37eb(0x31f),null),_(this,_0x1f37eb(0x176),null),_(this,_0x1f37eb(0x1c2),null),(this[_0x1f37eb(0x139)]=_0x1cd677,this[_0x1f37eb(0x14c)]=_0x20a48a,this[_0x1f37eb(0x2ca)]=_0x17509f,this[_0x1f37eb(0x1ea)]=_0x1aa9bb,this[_0x1f37eb(0x141)]());}set[_0x1de525(0x129)](_0x157acb){const _0x128344=_0x1de525;_0x157acb?(this[_0x128344(0x31f)]&&this[_0x128344(0x31f)][_0x128344(0x169)](),this[_0x128344(0x1d3)]&&this['_textBubble'][_0x128344(0x272)]()):(this[_0x128344(0x31f)]&&this[_0x128344(0x31f)][_0x128344(0x272)](),this[_0x128344(0x1d3)]&&this[_0x128344(0x1d3)][_0x128344(0x169)]());}['dispose'](){const _0x34929c=_0x1de525;for(const _0x5b0985 of this[_0x34929c(0x244)])_0x5b0985[_0x34929c(0x13f)]();this['_textBubble']&&this[_0x34929c(0x1d3)][_0x34929c(0x13f)](),this['_anchorDot']&&this[_0x34929c(0x31f)][_0x34929c(0x13f)](),this['_anchor']&&this[_0x34929c(0x225)][_0x34929c(0x13f)](),this[_0x34929c(0x1c2)]&&this[_0x34929c(0x1c2)]();}[_0x1de525(0x141)](){const _0x119d18=_0x1de525;var _0x97f75b;const {_docSkeleton:_0x2c0872,_document:_0x57244b}=this,{color:_0x36e420,name:_0x42611c,ranges:_0x4e7606}=this[_0x119d18(0x139)],_0xa46f6b=_0x57244b[_0x119d18(0x298)](),{docsLeft:_0x23106a,docsTop:_0x87991f}=_0xa46f6b,_0x2c20a4=new _0x56e03a(_0xa46f6b,_0x2c0872);for(const {startOffset:_0x4e4e68,endOffset:_0x5b0ab7,rangeType:_0x5316ba,segmentId:_0x402643,segmentPage:_0x3d397b,collapsed:_0x23ea67,isActive:_0x383556}of _0x4e7606){const _0x190252=_0x2c0872[_0x119d18(0x2bd)](_0x4e4e68,!0x0,_0x402643,_0x3d397b);let _0x5b456c=_0x2c0872[_0x119d18(0x2bd)](_0x5b0ab7,!0x0,_0x402643,_0x3d397b);if(_0x5b456c==null&&(_0x5b456c=_0x2c0872['findNodePositionByCharIndex'](_0x5b0ab7-0x1,!0x1,_0x402643,_0x3d397b)),_0x383556){const {contentBoxPointGroup:_0x4c8015}=_0x2c20a4[_0x119d18(0x309)](_0x5b456c,_0x5b456c);if(_0x4c8015[_0x119d18(0x16e)]===0x0)continue;this[_0x119d18(0x1a9)](_0x36e420,_0x4c8015,_0x23106a,_0x87991f,_0x42611c),this[_0x119d18(0x1c2)]=this['_handleHover']();}if(_0x190252&&_0x5b456c){if(_0x5316ba===_0x12430b[_0x119d18(0x183)]){const _0x446709=new _0x1a6ea6(_0xa46f6b,_0x2c0872),{pointGroup:_0x43ab1b}=(_0x97f75b=_0x446709['getRangePointData'](_0x190252,_0x5b456c))!=null?_0x97f75b:{};if(_0x43ab1b==null||_0x43ab1b['length']===0x0)continue;this[_0x119d18(0x2a2)](_0x36e420,_0x43ab1b,_0x23106a,_0x87991f);}else{if(!_0x23ea67){const {borderBoxPointGroup:_0x2d9b52}=_0x2c20a4[_0x119d18(0x309)](_0x190252,_0x5b456c);if(_0x2d9b52[_0x119d18(0x16e)]===0x0)continue;this[_0x119d18(0x1ed)](_0x36e420,_0x2d9b52,_0x23106a,_0x87991f);}}}}}[_0x1de525(0x1a9)](_0x1d291e,_0x5d22b4,_0x41bf36,_0x5356bb,_0x1352d7){const _0x4bee7d=_0x1de525,_0x79ea0b=this[_0x4bee7d(0x179)](_0x5d22b4),{left:_0x451918,top:_0x21523f,height:_0x5c0406}=_0x79ea0b,_0x2ea229=this[_0x4bee7d(0x260)](),_0x15de0c=Hi/_0x2ea229,_0x1dab12=new _0x1e8379(ve+_0x39b37f(K),{'left':_0x451918+_0x41bf36-_0x15de0c,'top':_0x21523f+_0x5356bb,'height':_0x5c0406,'width':ki,'fill':_0x1d291e||_0x45905f(_0x13a4be[_0x4bee7d(0x28c)],0x0),'strokeWidth':_0x15de0c,'stroke':Fi,'evented':!0x0});this[_0x4bee7d(0x225)]=_0x1dab12,this[_0x4bee7d(0x14c)][_0x4bee7d(0x320)](_0x1dab12,_0x3b94f3);const _0x223dc7=new _0x1e8379(ve+_0x39b37f(K),{'left':_0x451918+_0x41bf36-_0x15de0c,'top':_0x21523f+_0x5356bb-ge/0x2,'height':ge,'width':ge,'fill':_0x1d291e||_0x45905f(_0x13a4be['black'],0x0),'strokeWidth':0x0,'stroke':_0x1d291e||_0x45905f(_0x13a4be[_0x4bee7d(0x28c)],0x0),'evented':!0x1});this[_0x4bee7d(0x31f)]=_0x223dc7,this['_scene'][_0x4bee7d(0x320)](_0x223dc7,_0x3b94f3);const _0x1fe8a9=new ue(ve+_0x39b37f(K),{'left':_0x451918+_0x41bf36-_0x15de0c,'top':_0x21523f+_0x5356bb-J,'text':_0x1352d7,'color':_0x1d291e});this[_0x4bee7d(0x1d3)]=_0x1fe8a9,this[_0x4bee7d(0x14c)][_0x4bee7d(0x320)](_0x1fe8a9,_0x3b94f3),this[_0x4bee7d(0x129)]=!0x1;}[_0x1de525(0x16b)](){const _0xeb0d6c=_0x1de525,_0x373ab1=this[_0xeb0d6c(0x225)][_0xeb0d6c(0x271)][_0xeb0d6c(0x124)](()=>{const _0x3562cd=_0xeb0d6c;this[_0x3562cd(0x129)]=!0x0;}),_0x4a9cbd=this[_0xeb0d6c(0x225)][_0xeb0d6c(0x212)][_0xeb0d6c(0x124)](()=>{const _0x3b600c=_0xeb0d6c;this[_0x3b600c(0x176)]&&clearTimeout(this['_hideTimer']),this[_0x3b600c(0x176)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x1a1149=_0xeb0d6c;_0x373ab1[_0x1a1149(0x219)](),_0x4a9cbd['unsubscribe']();};}[_0x1de525(0x1ed)](_0x4ddbc7,_0x4bd60e,_0x2ec0fc,_0x1e30cb){const _0x5e8a66=_0x1de525,_0x5e8060=new _0x208161(_0x4ddbc7)[_0x5e8a66(0x19e)](0.2)[_0x5e8a66(0x31a)](),_0x4abbe1=new _0x3017af(xi+_0x39b37f(K),{'pointsGroup':_0x4bd60e,'fill':_0x5e8060||_0x45905f(_0x13a4be[_0x5e8a66(0x28c)],0.2),'left':_0x2ec0fc,'top':_0x1e30cb,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x4abbe1),this[_0x5e8a66(0x14c)][_0x5e8a66(0x320)](_0x4abbe1,_0x3b94f3);}[_0x1de525(0x2a2)](_0x32ba1b,_0x232991,_0xb54d3c,_0x4389be){const _0x529d92=_0x1de525,_0x8fbb8b=new _0x208161(_0x32ba1b)[_0x529d92(0x19e)](0.2)['toRgbString'](),_0xa9487=new _0x3017af(Bi+_0x39b37f(K),{'pointsGroup':_0x232991,'fill':_0x8fbb8b||_0x45905f(_0x13a4be[_0x529d92(0x28c)],0.2),'left':_0xb54d3c,'top':_0x4389be,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x529d92(0x244)][_0x529d92(0x261)](_0xa9487),this['_scene']['addObject'](_0xa9487,_0x3b94f3);}[_0x1de525(0x179)](_0x12cf7d){const _0xec8056=_0x12cf7d[0x0],_0x2af953=_0xec8056[0x0],_0x157b95=_0xec8056[0x2],{x:_0x3fb65f,y:_0x453b26}=_0x2af953,{x:_0x3fd632,y:_0x2aa033}=_0x157b95;return{'left':_0x3fb65f,'top':_0x453b26,'width':_0x3fd632-_0x3fb65f,'height':_0x2aa033-_0x453b26};}['_getScale'](){const _0x38496b=_0x1de525,{scaleX:_0x2be52e,scaleY:_0x2f0218}=this['_scene'][_0x38496b(0x1e4)]();return Math[_0x38496b(0x184)](_0x2be52e,_0x2f0218);}}var Yi=Object[_0x1de525(0x2eb)],ji=(_0x5ede16,_0x2b298a,_0x3f2a57,_0x5f4bc9)=>{const _0x94cc2c=_0x1de525;for(var _0x39ab63=_0x5f4bc9>0x1?void 0x0:_0x5f4bc9?Yi(_0x2b298a,_0x3f2a57):_0x2b298a,_0x4b5a2b=_0x5ede16[_0x94cc2c(0x16e)]-0x1,_0x1c40d5;_0x4b5a2b>=0x0;_0x4b5a2b--)(_0x1c40d5=_0x5ede16[_0x4b5a2b])&&(_0x39ab63=_0x1c40d5(_0x39ab63)||_0x39ab63);return _0x39ab63;},ee=(_0x1a1bc8,_0x5b2478)=>(_0x458b33,_0x14308f)=>_0x5b2478(_0x458b33,_0x14308f,_0x1a1bc8);let Le=class extends _0x5d5e25{constructor(_0x7b408f,_0x196f40,_0xb9635d,_0x3256ed,_0x5a5c2d){const _0x2ccb45=_0x1de525;super(),_(this,_0x2ccb45(0x17e),[]),_(this,_0x2ccb45(0x1cc),[]),(this['_context']=_0x7b408f,this[_0x2ccb45(0x2a1)]=_0x196f40,this[_0x2ccb45(0x168)]=_0xb9635d,this['_commandService']=_0x3256ed,this[_0x2ccb45(0x23e)]=_0x5a5c2d,this[_0x2ccb45(0x2a6)]());}['_init'](){const _0xc8d24=_0x1de525,_0x3984ff=this[_0xc8d24(0x18d)]['unitId'],_0x4d61f0=this['_docSkeletonManagerService'];this['disposeWithMe'](_0x24a102([this[_0xc8d24(0x168)][_0xc8d24(0x1d4)](_0x3984ff),this[_0xc8d24(0x23e)][_0xc8d24(0x29e)]])[_0xc8d24(0x227)](_0x2d8288(([_0x16a117,_0x129f99])=>({'skeleton':_0x4d61f0['getSkeleton'](),'cursors':[..._0x16a117[_0xc8d24(0x308)]()][_0xc8d24(0x29d)](_0xb3d3aa=>({..._0xb3d3aa,'color':this['_themeService'][_0xc8d24(0x1dd)](_0xb3d3aa[_0xc8d24(0x2b2)])}))})))[_0xc8d24(0x1aa)](_0x378dbb=>{const _0xce659a=_0xc8d24;if(this[_0xce659a(0x159)](),_0x378dbb){const {skeleton:_0x49689e,cursors:_0x4807e6}=_0x378dbb;this['_updateCollabCursors'](_0x49689e,_0x4807e6);}})),this[_0xc8d24(0x248)](),this[_0xc8d24(0x2cb)]();}['_updateCollabCursors'](_0x1070a4,_0x39715c){const _0x4586d9=_0x1de525,{scene:_0x5061fb,mainComponent:_0xfbb06b}=this[_0x4586d9(0x18d)],_0x3cc286=_0x39715c[_0x4586d9(0x1f4)](_0x32d964=>new qe(_0x32d964,_0x5061fb,_0x1070a4,_0xfbb06b));this[_0x4586d9(0x17e)]=_0x3cc286,this[_0x4586d9(0x1cc)]=_0x39715c;}['_refreshCollabCursors'](){const _0x5b4b6c=_0x1de525;this[_0x5b4b6c(0x159)]();const {scene:_0xe92daf,mainComponent:_0x156f65}=this['_context'],_0x16ddd6=this[_0x5b4b6c(0x2a1)][_0x5b4b6c(0x200)](),_0x38a277=this[_0x5b4b6c(0x1cc)][_0x5b4b6c(0x1f4)](_0x502ed3=>new qe(_0x502ed3,_0xe92daf,_0x16ddd6,_0x156f65));this[_0x5b4b6c(0x17e)]=_0x38a277;}[_0x1de525(0x159)](){const _0xd69547=_0x1de525;this[_0xd69547(0x17e)][_0xd69547(0x1ce)](_0x5753df=>_0x5753df[_0xd69547(0x13f)]()),this[_0xd69547(0x17e)]=[];}['_initCommandExecutedListener'](){const _0xb27f36=_0x1de525,_0x1193d3=[_0x21d4a2['id']];this[_0xb27f36(0x144)](this['_commandService'][_0xb27f36(0x133)](_0x326981=>{const _0xcabc71=_0xb27f36;_0x1193d3['includes'](_0x326981['id'])&&_0x326981[_0xcabc71(0x25f)]['unitId']===this[_0xcabc71(0x18d)][_0xcabc71(0x1cb)]&&this[_0xcabc71(0x22f)]();}));}[_0x1de525(0x248)](){const _0x1d10aa=_0x1de525;this[_0x1d10aa(0x144)](_0x987390(this['_context'][_0x1d10aa(0x1d6)][_0x1d10aa(0x15a)])[_0x1d10aa(0x227)](_0x4f37b8(_0x42a789=>_0x42a789['type']===_0x5191a8[_0x1d10aa(0x1e2)]),_0xa545cd(0x10))['subscribe'](()=>{const _0x3a6969=_0x1d10aa;this[_0x3a6969(0x22f)]();}));}};Le=ji([ee(0x1,_0x5c6996(_0x808ff5)),ee(0x2,_0x5c6996(F)),ee(0x3,_0x3d6ba5),ee(0x4,_0x5c6996(_0x1d1c1e))],Le);const Vi=0x1,Wi=1.5;class Xi extends _0xfc37c0{constructor(_0x24a304,_0x421910){const _0x3e9c79=_0x1de525;super(_0x24a304,_0x421910),_(this,_0x3e9c79(0x2ae)),_(this,_0x3e9c79(0x17f),!0x1),_(this,_0x3e9c79(0x2f7)),_(this,_0x3e9c79(0x2ac),''),_(this,'_labelPosition',_0x3e9c79(0x1d2)),_(this,_0x3e9c79(0x2dd)),(_0x421910&&this['setShapeProps'](_0x421910),this[_0x3e9c79(0x271)][_0x3e9c79(0x124)](()=>this[_0x3e9c79(0x12e)]({'hovered':!0x0})),this[_0x3e9c79(0x212)][_0x3e9c79(0x124)](()=>this[_0x3e9c79(0x12e)]({'hovered':!0x1})));}[_0x1de525(0x12e)](_0x172354){const _0x16ea34=_0x1de525;var _0x269605,_0x400615,_0x4b474f,_0x55b780,_0xa43e71,_0x5078a8;this[_0x16ea34(0x2ae)]=(_0x269605=_0x172354[_0x16ea34(0x2b2)])!=null?_0x269605:this[_0x16ea34(0x2ae)],this[_0x16ea34(0x17f)]=(_0x400615=_0x172354[_0x16ea34(0x18f)])!=null?_0x400615:this[_0x16ea34(0x17f)],this[_0x16ea34(0x2f7)]=(_0x4b474f=_0x172354['range'])!=null?_0x4b474f:this[_0x16ea34(0x2f7)],this[_0x16ea34(0x2ac)]=(_0x55b780=_0x172354[_0x16ea34(0x196)])!=null?_0x55b780:this[_0x16ea34(0x2ac)],this[_0x16ea34(0x2fe)]=(_0xa43e71=_0x172354[_0x16ea34(0x275)])!=null?_0xa43e71:this['_labelPosition'],this[_0x16ea34(0x2dd)]=(_0x5078a8=_0x172354[_0x16ea34(0x2d7)])!=null?_0x5078a8:this['_backgroundColor'],this[_0x16ea34(0x26e)]({'width':_0x172354[_0x16ea34(0x15d)],'height':_0x172354[_0x16ea34(0x1b2)]});}[_0x1de525(0x28b)](_0x38ab3f){const _0x2139fe=_0x1de525,{row:_0xe7442f,column:_0x320a0a}=_0x38ab3f;if(_0xe7442f>=this[_0x2139fe(0x2f7)][_0x2139fe(0x2da)]&&_0xe7442f<=this['_range'][_0x2139fe(0x211)]&&_0x320a0a>=this[_0x2139fe(0x2f7)][_0x2139fe(0x302)]&&_0x320a0a<=this[_0x2139fe(0x2f7)][_0x2139fe(0x15b)]){this[_0x2139fe(0x12e)]({'hovered':!0x0});return;}this[_0x2139fe(0x12e)]({'hovered':!0x1});}[_0x1de525(0x233)](_0x43f3db){return!0x1;}['_draw'](_0x5f4002){const _0x380465=_0x1de525;_0x1e8379[_0x380465(0x2a8)](_0x5f4002,{'width':this[_0x380465(0x15d)],'height':this[_0x380465(0x1b2)],'strokeWidth':Wi,'stroke':this[_0x380465(0x2ae)],'evented':!0x1,'fill':this[_0x380465(0x2dd)]}),this['_hovered']&&(_0x5f4002[_0x380465(0x286)](),_0x5f4002[_0x380465(0x2d4)](0x1,0x0,0x0,0x1,this[_0x380465(0x15d)],this[_0x380465(0x2fe)]===_0x380465(0x2b8)?0x0:-J),ue[_0x380465(0x2a8)](_0x5f4002,{'text':this['_name'],'color':this[_0x380465(0x2ae)]}),_0x5f4002[_0x380465(0x2ef)]());}}var Gi=Object['getOwnPropertyDescriptor'],Ki=(_0x4d9c16,_0x54561d,_0x5a5f0a,_0xaf3ea7)=>{const _0x411405=_0x1de525;for(var _0x15a2c3=_0xaf3ea7>0x1?void 0x0:_0xaf3ea7?Gi(_0x54561d,_0x5a5f0a):_0x54561d,_0x28faca=_0x4d9c16[_0x411405(0x16e)]-0x1,_0x1acb25;_0x28faca>=0x0;_0x28faca--)(_0x1acb25=_0x4d9c16[_0x28faca])&&(_0x15a2c3=_0x1acb25(_0x15a2c3)||_0x15a2c3);return _0x15a2c3;},pe=(_0x1713ee,_0x51230c)=>(_0x387f0c,_0x450741)=>_0x51230c(_0x387f0c,_0x450741,_0x1713ee);const zi=0x1389;let Pe=class extends _0x5d5e25{constructor(_0x5e6e63,_0x2819b9,_0x5bb68b,_0x82c9dc){const _0x4c0361=_0x1de525;super(),_(this,_0x4c0361(0x1cc),new Set()),_(this,_0x4c0361(0x2fc),null),(this['_context']=_0x5e6e63,this[_0x4c0361(0x2d8)]=_0x2819b9,this[_0x4c0361(0x168)]=_0x5bb68b,this['_themeService']=_0x82c9dc,this[_0x4c0361(0x2a6)]());}['_init'](){const _0x59a9e9=_0x1de525;this['_sheetSkeletonManagerService'][_0x59a9e9(0x28a)][_0x59a9e9(0x227)](_0x401d5a(this[_0x59a9e9(0x1b6)]),_0x54796f(_0x489f33=>{const _0x4931ef=_0x59a9e9;if(_0x489f33){const _0x108b17=_0x489f33['sheetId'];return _0x24a102(this[_0x4931ef(0x168)][_0x4931ef(0x1d4)](this[_0x4931ef(0x18d)][_0x4931ef(0x1cb)]),this[_0x4931ef(0x23e)][_0x4931ef(0x29e)])[_0x4931ef(0x227)](_0x2d8288(([_0x58a92d,_0x2f695f])=>{const _0x54899d=_0x4931ef,_0x5b55f1=new Map();return _0x58a92d[_0x54899d(0x1ce)]((_0x746b86,_0x43ab27)=>{const _0x44e30a=_0x54899d;if(_0x746b86['sheetID']===_0x108b17){const _0x2a89f4={..._0x746b86};_0x2a89f4[_0x44e30a(0x2b2)]=this[_0x44e30a(0x23e)][_0x44e30a(0x1dd)](_0x746b86[_0x44e30a(0x2b2)]),_0x5b55f1[_0x44e30a(0x293)](_0x43ab27,_0x2a89f4);}}),{'skeleton':_0x489f33,'cursors':_0x5b55f1};}));}return _0x46fe23({'skeleton':null,'cursors':new Map()});}))[_0x59a9e9(0x1aa)](({skeleton:_0x2a8dbb,cursors:_0x1472cf})=>{const _0x547a91=_0x59a9e9;this['_removeCollabCursors'](),_0x2a8dbb&&this[_0x547a91(0x238)](_0x2a8dbb,_0x1472cf);}),this[_0x59a9e9(0x2d8)][_0x59a9e9(0x28a)][_0x59a9e9(0x1aa)](_0x5833c5=>{const _0x2ae804=_0x59a9e9;if(_0x5833c5==null)return;const {skeleton:_0x33ece1}=_0x5833c5,{scene:_0x28576d}=this[_0x2ae804(0x18d)];_0x28576d[_0x2ae804(0x21f)][_0x2ae804(0x124)](_0x2398b9(_0x1c1dc5=>{const _0xaa2396=_0x2ae804;var _0x298c9c,_0xef0c1a;const {offsetX:_0x3b1049,offsetY:_0xfa291d}=_0x1c1dc5,{x:_0x5ef85e,y:_0x3014f9}=_0x28576d[_0xaa2396(0x311)](_0x180f0e[_0xaa2396(0x2f5)]([_0x3b1049,_0xfa291d])),{scaleX:_0x57b693,scaleY:_0x4c5916}=_0x28576d[_0xaa2396(0x1e4)](),_0x102344=_0x28576d[_0xaa2396(0x148)](_0x111c64[_0xaa2396(0x27f)]),_0x3164f3=_0x28576d['getVpScrollXYInfoByPosToVp'](_0x180f0e[_0xaa2396(0x2f5)]([_0x5ef85e,_0x3014f9]),_0x102344),_0x4d13de=_0x33ece1[_0xaa2396(0x19a)](_0x3b1049,_0xfa291d,_0x57b693,_0x4c5916,_0x3164f3);((_0x298c9c=this[_0xaa2396(0x2fc)])==null?void 0x0:_0x298c9c[_0xaa2396(0x21a)])===_0x4d13de['column']&&((_0xef0c1a=this[_0xaa2396(0x2fc)])==null?void 0x0:_0xef0c1a[_0xaa2396(0x23d)])===_0x4d13de['row']||this[_0xaa2396(0x1cc)][_0xaa2396(0x1ce)](_0x589a4d=>{const _0x24f1f9=_0xaa2396;_0x589a4d[_0x24f1f9(0x28b)](_0x4d13de);});},0x64));});}['_updateCollabCursors'](_0x57fcc4,_0x47d2b){const _0x52261a=_0x1de525;var _0x31a2d4;const _0x42e9aa=(_0x31a2d4=this['_sheetSkeletonManagerService'][_0x52261a(0x30a)]())==null?void 0x0:_0x31a2d4['skeleton'];if(!_0x42e9aa)return;const _0x3ea7e7=this[_0x52261a(0x202)]();if(!_0x3ea7e7)return;this['_cursors']['forEach'](_0x576adc=>{_0x576adc['makeDirty']();});const {scene:_0x5d5a25}=_0x3ea7e7,_0x2036e4=Ji(Array[_0x52261a(0x2f2)](_0x47d2b['values']()))[_0x52261a(0x1f4)](_0x5cbe1f=>{const _0x336390=_0x52261a,{color:_0x4ed9ee,range:_0x105088,name:_0x5d1138,selection:_0x1156ad,sheetID:_0x5d89d5}=_0x5cbe1f,{startColumn:_0x4ec22a,startRow:_0x2c0fe2,endColumn:_0x3b0c3d,endRow:_0x3bcbd8}=_0x105088,_0x16af34=_0x5d0a55(_0x2c0fe2,_0x4ec22a,_0x5d5a25,_0x42e9aa),_0x32e4a9=_0x5d0a55(_0x3bcbd8,_0x3b0c3d,_0x5d5a25,_0x42e9aa),{columnHeaderHeightAndMarginTop:_0x1a5eb9}=_0x42e9aa,{startX:_0x4c0521,startY:_0x5676b2}=_0x16af34,{endX:_0x19a54e,endY:_0x4bfdf7}=_0x32e4a9,_0x2cc643=_0x19a54e-_0x4c0521,_0x188b41=_0x4bfdf7-_0x5676b2,_0x4cda6c={'labelPosition':_0x5676b2-_0x1a5eb9>=J?_0x336390(0x1d2):_0x336390(0x2b8),'sheetID':_0x5d89d5,'range':_0x105088,'color':_0x4ed9ee,'name':_0x5d1138,'selection':_0x1156ad,'left':_0x4c0521,'top':_0x5676b2,'width':_0x2cc643,'height':_0x188b41,'evented':!0x1,'zIndex':zi};return new Xi(_0x5d1138,_0x4cda6c);});_0x5d5a25['addObjects'](_0x2036e4,Vi),this[_0x52261a(0x1cc)]=new Set(_0x2036e4);}['_removeCollabCursors'](){const _0x589cb9=_0x1de525;var _0x31fcc8;(_0x31fcc8=this[_0x589cb9(0x1cc)])==null||_0x31fcc8['forEach'](_0x2e7c4e=>_0x2e7c4e[_0x589cb9(0x13f)]());}[_0x1de525(0x202)](){const _0x56dc7b=_0x1de525;return _0x5750fc(this[_0x56dc7b(0x18d)][_0x56dc7b(0x138)],this['_context']);}};Pe=Ki([pe(0x1,_0x5c6996(_0x2ea6c6)),pe(0x2,_0x5c6996(F)),pe(0x3,_0x5c6996(_0x1d1c1e))],Pe);function Ji(_0x63a856){const _0x12c394=_0x1de525,_0x449b86=new Map();return _0x63a856[_0x12c394(0x1ce)](_0xb39745=>{const _0x2bdbb3=_0x12c394;if(_0x449b86[_0x2bdbb3(0x20c)](_0xb39745[_0x2bdbb3(0x30c)])){const _0x5b7836=_0x449b86['get'](_0xb39745[_0x2bdbb3(0x30c)]);_0x5b7836[_0x2bdbb3(0x196)]+=',\x20'+_0xb39745[_0x2bdbb3(0x196)];}else _0x449b86[_0x2bdbb3(0x293)](_0xb39745[_0x2bdbb3(0x30c)],_0xb39745);}),Array['from'](_0x449b86['values']());}var Zi=Object[_0x1de525(0x2eb)],Qi=(_0xbce719,_0x221c17,_0x1908a6,_0x5e1f98)=>{const _0x23961b=_0x1de525;for(var _0x162f79=_0x5e1f98>0x1?void 0x0:_0x5e1f98?Zi(_0x221c17,_0x1908a6):_0x221c17,_0xdce934=_0xbce719[_0x23961b(0x16e)]-0x1,_0xf3529e;_0xdce934>=0x0;_0xdce934--)(_0xf3529e=_0xbce719[_0xdce934])&&(_0x162f79=_0xf3529e(_0x162f79)||_0x162f79);return _0x162f79;},B=(_0x53c611,_0x58c328)=>(_0x194ad9,_0xcaca74)=>_0x58c328(_0x194ad9,_0xcaca74,_0x53c611);let ne=class extends _0x27b35c{constructor(_0x40d94b,_0x4f0dab,_0x2b689a,_0x367aba,_0x45670a,_0x4b90d0){const _0x40822c=_0x1de525;super(),this[_0x40822c(0x20d)]=_0x40d94b,this[_0x40822c(0x317)]=_0x4f0dab,this['_collaborationUIEventService']=_0x2b689a,this[_0x40822c(0x2bf)]=_0x367aba,this[_0x40822c(0x2a0)]=_0x45670a,this[_0x40822c(0x2bb)]=_0x4b90d0,this['_setupBeforeClosingHandler'](),this[_0x40822c(0x203)]();}[_0x1de525(0x1a4)](){const _0x4ba904=_0x1de525;this[_0x4ba904(0x144)](this[_0x4ba904(0x20d)]['registerBeforeClose'](()=>{const _0x188aee=_0x4ba904;if(this[_0x188aee(0x317)][_0x188aee(0x198)][_0x188aee(0x217)])return this[_0x188aee(0x2bb)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x1de525(0x203)](){const _0x304a9b=_0x1de525;this[_0x304a9b(0x144)](this[_0x304a9b(0x155)][_0x304a9b(0x206)][_0x304a9b(0x1aa)](_0x4d68d3=>{const _0x50ed82=_0x304a9b;_0x4d68d3['id']===_0x4b7116[_0x50ed82(0x245)]&&this[_0x50ed82(0x2bf)]['show']({'type':_0x391a65[_0x50ed82(0x250)],'content':this['_localeService']['t'](_0x50ed82(0x2dc))}),_0x4d68d3['id']===_0x4b7116['CLOSE_ROOM']&&this[_0x50ed82(0x2bf)][_0x50ed82(0x272)]({'type':_0x391a65['Warning'],'content':this['_localeService']['t'](_0x50ed82(0x1fa))}),_0x4d68d3['id']===_0x4b7116[_0x50ed82(0x194)]&&this[_0x50ed82(0x2a0)]['show']({'title':this[_0x50ed82(0x2bb)]['t']('permission.title'),'content':this[_0x50ed82(0x2bb)]['t']('permission.content'),'type':'error','duration':0x0}),_0x4d68d3['id']===_0x4b7116[_0x50ed82(0x234)]&&this[_0x50ed82(0x2bf)][_0x50ed82(0x272)]({'type':_0x391a65[_0x50ed82(0x128)],'content':this[_0x50ed82(0x2bb)]['t']('collaboration.closeRoom')+'('+_0x4d68d3[_0x50ed82(0x26a)]+')'}),_0x4d68d3['id']===_0x4b7116[_0x50ed82(0x221)]&&this['_messageService'][_0x50ed82(0x272)]({'type':_0x391a65[_0x50ed82(0x250)],'content':this[_0x50ed82(0x2bb)]['t'](_0x4d68d3[_0x50ed82(0x26a)]||'')}),_0x4d68d3['id']===_0x4b7116[_0x50ed82(0x2d3)]&&this[_0x50ed82(0x2bf)][_0x50ed82(0x272)]({'type':_0x391a65[_0x50ed82(0x250)],'content':this['_localeService']['t'](_0x50ed82(0x213))}),_0x4d68d3['id']===_0x4b7116['SOCKET_FAILED']&&this[_0x50ed82(0x2bf)][_0x50ed82(0x272)]({'type':_0x391a65['Error'],'content':this[_0x50ed82(0x2bb)]['t'](_0x50ed82(0x2c1))}),_0x4d68d3['id']===_0x4b7116[_0x50ed82(0x1c4)]&&this[_0x50ed82(0x2bf)][_0x50ed82(0x272)]({'type':_0x391a65[_0x50ed82(0x128)],'content':this[_0x50ed82(0x2bb)]['t'](_0x50ed82(0x161))});}));}};ne=Qi([B(0x0,_0x392fb9),B(0x1,_0x24e892),B(0x2,_0x5c6996(_0x1872de)),B(0x3,_0x2ec900),B(0x4,_0xb95b8d),B(0x5,_0x5c6996(_0x1ad900))],ne);const qi=_0x1de525(0x145),et={};var en=Object[_0x1de525(0x2eb)],tn=(_0x3048c5,_0x54cce1,_0x4dc72b,_0x4eaafd)=>{const _0x387b16=_0x1de525;for(var _0x300b3b=_0x4eaafd>0x1?void 0x0:_0x4eaafd?en(_0x54cce1,_0x4dc72b):_0x54cce1,_0x16942f=_0x3048c5[_0x387b16(0x16e)]-0x1,_0x4077c0;_0x16942f>=0x0;_0x16942f--)(_0x4077c0=_0x3048c5[_0x16942f])&&(_0x300b3b=_0x4077c0(_0x300b3b)||_0x300b3b);return _0x300b3b;},tt=(_0x1340f8,_0x1e4256)=>(_0x5ccf88,_0x16458b)=>_0x1e4256(_0x5ccf88,_0x16458b,_0x1340f8);let re=class{constructor(_0x441c28,_0x3317d4){const _0x4eef2c=_0x1de525;this[_0x4eef2c(0x31c)]=_0x441c28,this['_renderManagerService']=_0x3317d4;}['transformIMECache'](_0x309b01){const _0x3f6714=_0x1de525;this['_transformUndoRedoStack'](_0x309b01),this[_0x3f6714(0x2d1)](_0x309b01);}['transformRemoteChangeset'](_0x4ffb9c){const _0x34cf5d=_0x1de525,{unitID:_0x5b7ac0}=_0x4ffb9c,_0xc3d62b=this[_0x34cf5d(0x26c)][_0x34cf5d(0x165)](_0x5b7ac0)[_0x34cf5d(0x166)](_0x12689e),{redoCache:_0x51de2a}=_0xc3d62b['getUndoRedoMutationParamsCache']();if(_0x51de2a[_0x34cf5d(0x16e)]===0x0)return _0x4ffb9c;let _0xb13360=_0x41f479[_0x34cf5d(0x1f0)](_0x4ffb9c[_0x34cf5d(0x2ec)][0x0]);for(let _0x1c97e4=0x0;_0x1c97e4<_0x51de2a[_0x34cf5d(0x16e)];_0x1c97e4++){const _0x3dc2bd={'id':_0x34cf5d(0x1ac),'params':{..._0x51de2a[_0x1c97e4]}},_0x395076=this[_0x34cf5d(0x31c)][_0x34cf5d(0x1e8)](_0xb13360,_0x3dc2bd,!0x1);if(_0x394d8b(_0x395076))throw _0x395076[_0x34cf5d(0x2c6)];_0xb13360=_0x395076[_0x34cf5d(0x11c)];}return{..._0x41f479[_0x34cf5d(0x1f0)](_0x4ffb9c),'mutations':[_0xb13360]};}[_0x1de525(0x2f1)](_0x2259e1){const _0x24ba5a=_0x1de525,{unitID:_0x5022d8}=_0x2259e1,_0x38d5d7=this[_0x24ba5a(0x26c)][_0x24ba5a(0x165)](_0x5022d8)['with'](_0x12689e),{undoCache:_0x5e285b,redoCache:_0x44ad11}=_0x38d5d7[_0x24ba5a(0x291)]();if(_0x5e285b[_0x24ba5a(0x16e)]===0x0||_0x44ad11[_0x24ba5a(0x16e)]===0x0)return;const _0x56beb1=[],_0x4b923e=[];let _0x1a5fa2=_0x41f479[_0x24ba5a(0x1f0)](_0x2259e1['mutations'][0x0]),_0x58eaed=_0x41f479[_0x24ba5a(0x1f0)](_0x2259e1[_0x24ba5a(0x2ec)][0x0]);for(let _0x2bd63e=_0x5e285b['length']-0x1;_0x2bd63e>=0x0;_0x2bd63e--){const _0x10b20a={'id':'doc.mutation.rich-text-editing','params':{..._0x5e285b[_0x2bd63e]}},_0x5cc196={'id':_0x24ba5a(0x1ac),'params':{..._0x44ad11[_0x2bd63e]}},_0x299ac6=this[_0x24ba5a(0x31c)][_0x24ba5a(0x1e8)](_0x1a5fa2,_0x10b20a,!0x1),_0x49b319=this[_0x24ba5a(0x31c)][_0x24ba5a(0x1e8)](_0x58eaed,_0x5cc196,!0x1);if(_0x394d8b(_0x299ac6))throw _0x299ac6[_0x24ba5a(0x2c6)];if(_0x394d8b(_0x49b319))throw _0x49b319['error'];_0x56beb1[_0x24ba5a(0x1c7)](_0x299ac6[_0x24ba5a(0x231)][_0x24ba5a(0x25f)]),_0x4b923e[_0x24ba5a(0x1c7)](_0x49b319[_0x24ba5a(0x231)][_0x24ba5a(0x25f)]),_0x1a5fa2=_0x299ac6[_0x24ba5a(0x11c)],_0x58eaed=_0x49b319[_0x24ba5a(0x11c)];}_0x38d5d7[_0x24ba5a(0x232)]({'undoCache':_0x56beb1,'redoCache':_0x4b923e});}[_0x1de525(0x2d1)](_0x1bf4de){const _0x20c61f=_0x1de525,{unitID:_0x4d1889}=_0x1bf4de,_0x1c08dc=this[_0x20c61f(0x26c)][_0x20c61f(0x165)](_0x4d1889)[_0x20c61f(0x166)](_0x12689e),_0x8b4bc9=_0x1c08dc['getActiveRange']();if(_0x8b4bc9==null)return;const _0x55effb=[{'id':_0x20c61f(0x1ac),'params':{'unitId':_0x1bf4de['unitID'],'actions':null,'textRanges':[_0x8b4bc9]}}],_0x37ca62=this['_transformService'][_0x20c61f(0x1e0)](_0x1bf4de,_0x55effb);if(!_0x464946(_0x37ca62))throw _0x37ca62[_0x20c61f(0x2c6)];const _0x58f6d5=_0x37ca62[_0x20c61f(0x231)][0x0][_0x20c61f(0x25f)][_0x20c61f(0x189)];Array[_0x20c61f(0x2c7)](_0x58f6d5)&&_0x58f6d5['length']&&_0x1c08dc[_0x20c61f(0x30b)](_0x58f6d5[0x0]);}};re=tn([tt(0x0,_0x4d45d3),tt(0x1,_0x16d4b6)],re);var sn=Object[_0x1de525(0x2eb)],nn=(_0xf12d5e,_0x34147d,_0x13eeca,_0x160f0c)=>{for(var _0x5c41a8=_0x160f0c>0x1?void 0x0:_0x160f0c?sn(_0x34147d,_0x13eeca):_0x34147d,_0x58aadf=_0xf12d5e['length']-0x1,_0x413884;_0x58aadf>=0x0;_0x58aadf--)(_0x413884=_0xf12d5e[_0x58aadf])&&(_0x5c41a8=_0x413884(_0x5c41a8)||_0x5c41a8);return _0x5c41a8;},Ce=(_0x22fdd8,_0x1647df)=>(_0xf68458,_0x2964fc)=>_0x1647df(_0xf68458,_0x2964fc,_0x22fdd8);let oe=class{constructor(_0x131170,_0x154307,_0x2cf01e){const _0x4c87c7=_0x1de525;this[_0x4c87c7(0x14b)]=_0x131170,this[_0x4c87c7(0x31c)]=_0x154307,this['_docStateChangeManagerService']=_0x2cf01e;}[_0x1de525(0x31b)](_0x24b00b){this['_transformHistoryAndStateStack'](_0x24b00b);}[_0x1de525(0x25e)](_0x598093){const _0x31c9ea=_0x1de525,{unitID:_0x1ffa92}=_0x598093,{collaboration:_0x34e451}=this[_0x31c9ea(0x123)][_0x31c9ea(0x254)](_0x1ffa92);if(_0x34e451['length']===0x0)return _0x598093;let _0x56b4ed=_0x41f479[_0x31c9ea(0x1f0)](_0x598093[_0x31c9ea(0x2ec)][0x0]);for(let _0x18a2bd=0x0;_0x18a2bd<_0x34e451[_0x31c9ea(0x16e)];_0x18a2bd++){const _0x1dfcca={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x34e451[_0x18a2bd][_0x31c9ea(0x1cb)],..._0x34e451[_0x18a2bd]['redoState']}},_0x4d7d40=this[_0x31c9ea(0x31c)][_0x31c9ea(0x1e8)](_0x56b4ed,_0x1dfcca,!0x1);if(_0x394d8b(_0x4d7d40))throw _0x4d7d40['error'];_0x56b4ed=_0x4d7d40[_0x31c9ea(0x11c)];}return{..._0x41f479[_0x31c9ea(0x1f0)](_0x598093),'mutations':[_0x56b4ed]};}['_transformHistoryAndStateStack'](_0x52fad9){const _0xb57813=_0x1de525,{unitID:_0x554cd3}=_0x52fad9,{history:_0x1274ab,collaboration:_0x16561f}=this[_0xb57813(0x123)][_0xb57813(0x254)](_0x554cd3);if(_0x1274ab[_0xb57813(0x16e)]===0x0&&_0x16561f['length']===0x0)return;const _0xb7cc2c=[],_0x413663=[];let _0x558636=_0x41f479[_0xb57813(0x1f0)](_0x52fad9[_0xb57813(0x2ec)][0x0]),_0x1c022f=_0x41f479['deepClone'](_0x52fad9['mutations'][0x0]);for(let _0x10a53c=_0x1274ab['length']-0x1;_0x10a53c>=0x0;_0x10a53c--){const _0x30c128={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1274ab[_0x10a53c][_0xb57813(0x1cb)],..._0x1274ab[_0x10a53c]['undoState']}},_0x6d46af={'id':_0xb57813(0x1ac),'params':{'unitId':_0x1274ab[_0x10a53c][_0xb57813(0x1cb)],..._0x1274ab[_0x10a53c]['redoState']}},_0x24b5a6=this[_0xb57813(0x31c)][_0xb57813(0x1e8)](_0x558636,_0x30c128,!0x1),_0x719266=this[_0xb57813(0x31c)][_0xb57813(0x1e8)](_0x1c022f,_0x6d46af,!0x1);if(_0x394d8b(_0x24b5a6))throw _0x24b5a6['error'];if(_0x394d8b(_0x719266))throw _0x719266[_0xb57813(0x2c6)];_0xb7cc2c[_0xb57813(0x1c7)]({..._0x1274ab[_0x10a53c],'undoState':_0x24b5a6[_0xb57813(0x231)]['params'],'redoState':_0x719266[_0xb57813(0x231)][_0xb57813(0x25f)]}),_0x558636=_0x24b5a6[_0xb57813(0x11c)],_0x1c022f=_0x719266[_0xb57813(0x11c)];}_0x558636=_0x41f479[_0xb57813(0x1f0)](_0x52fad9[_0xb57813(0x2ec)][0x0]),_0x1c022f=_0x41f479[_0xb57813(0x1f0)](_0x52fad9['mutations'][0x0]);for(let _0x55dcb7=_0x16561f[_0xb57813(0x16e)]-0x1;_0x55dcb7>=0x0;_0x55dcb7--){const _0x29ef4c={'id':_0xb57813(0x1ac),'params':{'unitId':_0x16561f[_0x55dcb7]['unitId'],..._0x16561f[_0x55dcb7][_0xb57813(0x240)]}},_0x2ebc32={'id':_0xb57813(0x1ac),'params':{'unitId':_0x16561f[_0x55dcb7][_0xb57813(0x1cb)],..._0x16561f[_0x55dcb7][_0xb57813(0x125)]}},_0x294f27=this['_transformService']['transformMutation'](_0x558636,_0x29ef4c,!0x1),_0x4e4097=this[_0xb57813(0x31c)][_0xb57813(0x1e8)](_0x1c022f,_0x2ebc32,!0x1);if(_0x394d8b(_0x294f27))throw _0x294f27[_0xb57813(0x2c6)];if(_0x394d8b(_0x4e4097))throw _0x4e4097[_0xb57813(0x2c6)];_0x413663[_0xb57813(0x1c7)]({..._0x16561f[_0x55dcb7],'undoState':_0x294f27[_0xb57813(0x231)][_0xb57813(0x25f)],'redoState':_0x4e4097[_0xb57813(0x231)]['params']}),_0x558636=_0x294f27[_0xb57813(0x11c)],_0x1c022f=_0x4e4097[_0xb57813(0x11c)];}this['_docStateChangeManagerService']['setStateCache'](_0x554cd3,{'history':_0xb7cc2c,'collaboration':_0x413663});}};oe=nn([Ce(0x0,_0x5c6996(_0x25bcbf)),Ce(0x1,_0x4d45d3),Ce(0x2,_0x5c6996(_0x508713))],oe);var rn=Object[_0x1de525(0x2eb)],on=(_0x34b830,_0x2bacbc,_0x21eaec,_0x55dff2)=>{const _0x100efb=_0x1de525;for(var _0x199da4=_0x55dff2>0x1?void 0x0:_0x55dff2?rn(_0x2bacbc,_0x21eaec):_0x2bacbc,_0x42a278=_0x34b830[_0x100efb(0x16e)]-0x1,_0x57d354;_0x42a278>=0x0;_0x42a278--)(_0x57d354=_0x34b830[_0x42a278])&&(_0x199da4=_0x57d354(_0x199da4)||_0x199da4);return _0x199da4;},st=(_0x4e6c95,_0x4c5210)=>(_0x10c668,_0x44b858)=>_0x4c5210(_0x10c668,_0x44b858,_0x4e6c95);let ae=class{constructor(_0x5cdb4d,_0x4148b9){const _0x5d677c=_0x1de525;this[_0x5d677c(0x14b)]=_0x5cdb4d,this['_transformService']=_0x4148b9;}[_0x1de525(0x1a5)](_0x2be8da){const _0xfb2be8=_0x1de525;var _0x1aff22;const _0x653e2=this[_0xfb2be8(0x14b)][_0xfb2be8(0x204)](_0x54ea0b),_0x129ccf=(_0x1aff22=_0x653e2[_0xfb2be8(0x13d)]())!=null?_0x1aff22:[];if(_0x129ccf[_0xfb2be8(0x16e)]===0x0)return;const _0x4ef384=_0x2be8da[_0xfb2be8(0x226)],_0x3201cf=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4ef384,'actions':null,'textRanges':_0x129ccf}}],_0x4ca6e1=this['_transformService'][_0xfb2be8(0x1e0)](_0x2be8da,_0x3201cf);if(!_0x464946(_0x4ca6e1))throw _0x4ca6e1['error'];const _0x56a836=_0x4ca6e1[_0xfb2be8(0x231)][0x0][_0xfb2be8(0x25f)][_0xfb2be8(0x189)];Array['isArray'](_0x56a836)&&_0x56a836[_0xfb2be8(0x16e)]&&_0x653e2[_0xfb2be8(0x157)](_0x56a836,{'unitId':_0x4ef384,'subUnitId':_0x4ef384},!0x1);}};ae=on([st(0x0,_0x5c6996(_0x25bcbf)),st(0x1,_0x4d45d3)],ae);var an=Object[_0x1de525(0x2eb)],cn=(_0x57bbc9,_0x2143bb,_0x262b00,_0x1e6575)=>{for(var _0x58e4a4=_0x1e6575>0x1?void 0x0:_0x1e6575?an(_0x2143bb,_0x262b00):_0x2143bb,_0x168fa4=_0x57bbc9['length']-0x1,_0x299395;_0x168fa4>=0x0;_0x168fa4--)(_0x299395=_0x57bbc9[_0x168fa4])&&(_0x58e4a4=_0x299395(_0x58e4a4)||_0x58e4a4);return _0x58e4a4;},N=(_0x5862ce,_0x24594f)=>(_0x3d1546,_0x5dc0d9)=>_0x24594f(_0x3d1546,_0x5dc0d9,_0x5862ce);let ce=class extends _0x27b35c{constructor(_0x501932,_0x1894c7,_0x3bdafc,_0x174205,_0x4808e1,_0x400ba1,_0x233bfb,_0x4a4c8e){const _0x4f43c8=_0x1de525;super(),_(this,_0x4f43c8(0x265),new _0x1c5c36(_0x44d661[_0x4f43c8(0x1f5)])),(this[_0x4f43c8(0x123)]=_0x501932,this[_0x4f43c8(0x12a)]=_0x1894c7,this['_docTransformIMECacheService']=_0x3bdafc,this[_0x4f43c8(0x181)]=_0x174205,this[_0x4f43c8(0x2b6)]=_0x4808e1,this['_docSyncEditingCollabCursorService']=_0x400ba1,this[_0x4f43c8(0x2bf)]=_0x233bfb,this[_0x4f43c8(0x2bb)]=_0x4a4c8e,this[_0x4f43c8(0x2df)]());}[_0x1de525(0x2df)](){const _0x7abcad=_0x1de525;this['disposeWithMe'](this[_0x7abcad(0x12a)][_0x7abcad(0x1a3)]['subscribe'](_0x4367d8=>{const _0x46e6de=_0x7abcad,_0x222b9a=this[_0x46e6de(0x123)][_0x46e6de(0x2b4)][_0x46e6de(0x1aa)](_0x57cc4d=>{const _0x30ea4c=_0x46e6de;if(_0x57cc4d==null)return;const {unitId:_0x360a47,redoState:_0x565122,commandId:_0x3490f7}=_0x57cc4d;if(_0x360a47!==_0x4367d8['unitID'])return;const _0x520dd4={'id':_0x3490f7,'type':_0x35b953['MUTATION'],'params':{'unitId':_0x360a47,'actions':_0x565122[_0x30ea4c(0x1a1)],'textRanges':null}};_0x4367d8[_0x30ea4c(0x2e7)](_0x520dd4);});if(_0x4367d8[_0x46e6de(0x144)](_0x222b9a),_0x4367d8 instanceof _0x1c3eb9){const _0x114df4={'onTransformIME':_0x1062af=>this[_0x46e6de(0x319)][_0x46e6de(0x29b)](_0x1062af),'onTransformState':_0x1de533=>this[_0x46e6de(0x181)][_0x46e6de(0x31b)](_0x1de533),'onTransformSelections':_0x4356c8=>this[_0x46e6de(0x2b6)][_0x46e6de(0x1a5)](_0x4356c8),'onSyncEditingCollabCursor':_0x338e97=>this[_0x46e6de(0x1c0)][_0x46e6de(0x2f4)](_0x338e97),'onTransformRemoteChangesetByIMECache':_0x2f73ce=>this[_0x46e6de(0x319)]['transformRemoteChangeset'](_0x2f73ce),'onTransformRemoteChangesetByStateCache':_0x2c329f=>this[_0x46e6de(0x181)][_0x46e6de(0x25e)](_0x2c329f)};_0x4367d8[_0x46e6de(0x295)](_0x114df4);}}));}};ce=cn([N(0x0,_0x5c6996(_0x508713)),N(0x1,_0x5c6996(_0x16a7df)),N(0x2,_0x5c6996(re)),N(0x3,_0x5c6996(oe)),N(0x4,_0x5c6996(ae)),N(0x5,_0x5c6996(Fe)),N(0x6,_0x2ec900),N(0x7,_0x5c6996(_0x1ad900))],ce);var ln=Object['getOwnPropertyDescriptor'],_n=(_0x6d4724,_0x21509c,_0x19c8d4,_0x24685b)=>{const _0x210dcd=_0x1de525;for(var _0x263aff=_0x24685b>0x1?void 0x0:_0x24685b?ln(_0x21509c,_0x19c8d4):_0x21509c,_0x555070=_0x6d4724[_0x210dcd(0x16e)]-0x1,_0x113055;_0x555070>=0x0;_0x555070--)(_0x113055=_0x6d4724[_0x555070])&&(_0x263aff=_0x113055(_0x263aff)||_0x263aff);return _0x263aff;},Ee=(_0x27c392,_0x3e0cfe)=>(_0x16c3ae,_0x35eb08)=>_0x3e0cfe(_0x16c3ae,_0x35eb08,_0x27c392);let we=class extends _0x27b35c{constructor(_0x5df868,_0xc77c44,_0x43ec28){const _0x1c4154=_0x1de525;super(),_(this,'_cachedData',new Map()),_(this,_0x1c4154(0x121),new Map()),_(this,'_disabled',!0x1),(this['_configService']=_0x5df868,this[_0x1c4154(0x2c3)]=_0xc77c44,this[_0x1c4154(0x167)]=_0x43ec28);}[_0x1de525(0x287)](){this['_disabled']=!0x0;}[_0x1de525(0x1be)](){const _0x441c48=_0x1de525;this[_0x441c48(0x1bb)]=!0x1;}get[_0x1de525(0x198)](){return this['_saveTaskMap'];}[_0x1de525(0x13f)](){const _0x5e3898=_0x1de525;this[_0x5e3898(0x252)]()[_0x5e3898(0x23b)](()=>super[_0x5e3898(0x13f)]());}async[_0x1de525(0x13a)](_0x28d842){const _0x2f6117=_0x1de525;return this['_disabled']?null:this[_0x2f6117(0x2c3)][_0x2f6117(0x2fd)](_0x244215(_0x28d842));}async[_0x1de525(0x292)](_0x78b352,_0x4745af){const _0x266b5c=_0x1de525;return!!this[_0x266b5c(0x2c3)]['setItem'](_0x78b352,_0x4745af);}['updateOfflineData'](_0x2c73c0,_0x70a0c9,_0x5437a8,_0x41fb00){const _0x5c7278=_0x1de525,_0xd8a5f0=this[_0x5c7278(0x167)]['getCurrentRevOfUnit'](_0x2c73c0);this[_0x5c7278(0x1f1)][_0x5c7278(0x293)](_0x2c73c0,{'unitID':_0x2c73c0,'type':_0x70a0c9,'awaitingChangeset':_0x5437a8,'mutations':_0x41fb00,'rev':_0xd8a5f0}),this[_0x5c7278(0x121)][_0x5c7278(0x20c)](_0x2c73c0)||this[_0x5c7278(0x1c6)](_0x2c73c0);}['_scheduleSaving'](_0xd4a70d){const _0x105129=_0x1de525,_0x5e2e57=this[_0x105129(0x19d)]();_0x5e2e57===0x0?this[_0x105129(0x2a5)](_0xd4a70d):this[_0x105129(0x121)][_0x105129(0x293)](_0xd4a70d,setTimeout(()=>this[_0x105129(0x2a5)](_0xd4a70d),_0x5e2e57));}['_getSaveTimeout'](){const _0x5add20=_0x1de525;var _0x41c971;return(_0x41c971=this[_0x5add20(0x241)][_0x5add20(0x273)](_0x150080))!=null?_0x41c971:_0xd3d76a;}[_0x1de525(0x2a5)](_0x35eda2){const _0x1d0955=_0x1de525,_0x3aedda=this['_saveTaskMap'][_0x1d0955(0x204)](_0x35eda2);return _0x3aedda!==void 0x0&&window[_0x1d0955(0x2c0)](_0x3aedda),this[_0x1d0955(0x2c3)][_0x1d0955(0x153)](_0x244215(_0x35eda2),this['_cachedData'][_0x1d0955(0x204)](_0x35eda2))['then'](()=>this['_saveTaskMap'][_0x1d0955(0x29f)](_0x35eda2));}async[_0x1de525(0x252)](){const _0x32f712=_0x1de525,_0x2b833b=[];this[_0x32f712(0x121)][_0x32f712(0x1ce)]((_0x3e1eb1,_0x4e34d1)=>{const _0x198e7d=_0x32f712;window[_0x198e7d(0x2c0)](_0x3e1eb1),_0x2b833b[_0x198e7d(0x261)](this[_0x198e7d(0x2a5)](_0x4e34d1)[_0x198e7d(0x23b)](()=>{const _0x34e25d=_0x198e7d;this[_0x34e25d(0x121)]['delete'](_0x4e34d1);}));}),await Promise[_0x32f712(0x256)](_0x2b833b);}};we=_n([Ee(0x0,_0x4736f4),Ee(0x1,_0x5de8fb),Ee(0x2,_0x5c6996(_0x2e91e3))],we);class hn extends _0x5d5e25{constructor(){const _0x45cf42=_0x1de525;super(),_(this,_0x45cf42(0x158)),this[_0x45cf42(0x158)]=_0x443658(window,'popstate')['pipe'](_0x552e0d(this[_0x45cf42(0x1b6)]),_0x3e24d5(0x1),_0x587e52(void 0x0));}[_0x1de525(0x2b5)](_0x297d5a,_0xf345f2,_0x3ed6c5=!0x1){const _0x270618=_0x1de525,_0x3872c8=new URL(window['location'][_0x270618(0x131)]);_0x3872c8[_0x270618(0x300)][_0x270618(0x293)](_0x297d5a,_0xf345f2),_0x3ed6c5?window['history'][_0x270618(0x142)]('','',_0x3872c8[_0x270618(0x171)]()):window[_0x270618(0x2c9)][_0x270618(0x2d2)]('','',_0x3872c8[_0x270618(0x171)]());}[_0x1de525(0x12b)](_0x1fc7b4,_0x44bb8c=!0x1){const _0x135619=_0x1de525,_0x399950=new URL(window[_0x135619(0x2b7)][_0x135619(0x131)]);_0x399950[_0x135619(0x300)][_0x135619(0x29f)](_0x1fc7b4),_0x44bb8c?window[_0x135619(0x2c9)][_0x135619(0x142)]('','',_0x399950[_0x135619(0x171)]()):window[_0x135619(0x2c9)][_0x135619(0x2d2)]('','',_0x399950['toString']());}[_0x1de525(0x222)](_0x5b13c0){const _0x12f451=_0x1de525;var _0x40b071;return(_0x40b071=new URL(window[_0x12f451(0x2b7)][_0x12f451(0x131)])[_0x12f451(0x300)][_0x12f451(0x204)](_0x5b13c0))!=null?_0x40b071:void 0x0;}}var un=Object['defineProperty'],dn=Object[_0x1de525(0x2eb)],fn=(_0x46c806,_0x56db05,_0x1ea7d2)=>_0x56db05 in _0x46c806?un(_0x46c806,_0x56db05,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ea7d2}):_0x46c806[_0x56db05]=_0x1ea7d2,Sn=(_0x46be2c,_0x1c41f8,_0x2c08d8,_0x38e799)=>{const _0x43b1e1=_0x1de525;for(var _0x2e85dd=_0x38e799>0x1?void 0x0:_0x38e799?dn(_0x1c41f8,_0x2c08d8):_0x1c41f8,_0x20142a=_0x46be2c[_0x43b1e1(0x16e)]-0x1,_0x639691;_0x20142a>=0x0;_0x20142a--)(_0x639691=_0x46be2c[_0x20142a])&&(_0x2e85dd=_0x639691(_0x2e85dd)||_0x2e85dd);return _0x2e85dd;},Oe=(_0x402028,_0x339b49)=>(_0x4d5001,_0xdfb719)=>_0x339b49(_0x4d5001,_0xdfb719,_0x402028),mn=(_0x5ced05,_0x2799b8,_0x31b5d3)=>fn(_0x5ced05,_0x2799b8+'',_0x31b5d3);const In='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ae=class extends _0x34f9ca{constructor(_0x165c40=et,_0x107a6e,_0x436d2f,_0x1e6742){const _0x525443=_0x1de525;super(),this[_0x525443(0x268)]=_0x165c40,this[_0x525443(0x26c)]=_0x107a6e,this[_0x525443(0x14b)]=_0x436d2f,this['_configService']=_0x1e6742;const {..._0x39276e}=_0x25d7a3({},et,this[_0x525443(0x268)]);this['_configService'][_0x525443(0x154)](qi,_0x39276e);}[_0x1de525(0x15f)](){const _0x323b35=_0x1de525;this['_registerDependencies'](),this[_0x323b35(0x193)]();}[_0x1de525(0x312)](){const _0x43852f=_0x1de525;this[_0x43852f(0x1bc)]();}[_0x1de525(0x2bc)](){const _0x313b47=_0x1de525;var _0x57b716;const _0x1cc3f3=[[He],[ae],[re],[oe],[Fe],[Ut,{'useClass':hn}],[_0x2f6e6b,{'useClass':_0x144cd3}],[_0x24e892,{'useClass':we}],[se],[ce],[ne],[F],[Ne],[ie]];_0x13f4a4(this[_0x313b47(0x14b)],_0x30e5fb(_0x1cc3f3,(_0x57b716=this['_config'])==null?void 0x0:_0x57b716[_0x313b47(0x1e1)]));}[_0x1de525(0x1bc)](){const _0x44771d=_0x1de525;this[_0x44771d(0x144)](this['_renderManagerService'][_0x44771d(0x1db)](_0x5ef820[_0x44771d(0x185)],[Le])),this[_0x44771d(0x144)](this['_renderManagerService'][_0x44771d(0x1db)](_0x5ef820[_0x44771d(0x25a)],[Pe]));}[_0x1de525(0x193)](){const _0x17b073=_0x1de525;_0x1e35aa(this[_0x17b073(0x14b)],[[F],[se],[ce],[ne],[ie]]);}};mn(Ae,_0x1de525(0x224),In),Ae=Sn([_0x18f8a6(_0x6a685d),Oe(0x1,_0x16d4b6),Oe(0x2,_0x5c6996(_0x25bcbf)),Oe(0x3,_0x4736f4)],Ae);var vn=Object['getOwnPropertyDescriptor'],gn=(_0x14befd,_0x580506,_0x36b25c,_0x4753b0)=>{const _0x2553c9=_0x1de525;for(var _0x18dd70=_0x4753b0>0x1?void 0x0:_0x4753b0?vn(_0x580506,_0x36b25c):_0x580506,_0x145c55=_0x14befd[_0x2553c9(0x16e)]-0x1,_0x4d99ef;_0x145c55>=0x0;_0x145c55--)(_0x4d99ef=_0x14befd[_0x145c55])&&(_0x18dd70=_0x4d99ef(_0x18dd70)||_0x18dd70);return _0x18dd70;},z=(_0x9c40c5,_0x42ee41)=>(_0x343df1,_0x92d9e3)=>_0x42ee41(_0x343df1,_0x92d9e3,_0x9c40c5);let it=class extends _0x2918d0{constructor(_0x32652e,_0x270e23,_0x145830,_0x4f9d7c,_0xd9bdad){super(_0x32652e,_0x270e23,_0x145830,_0x4f9d7c,_0xd9bdad);}async['createSocket'](_0x3819ff){const _0x5674c8=_0x1de525,_0x162661=await this[_0x5674c8(0x2c8)](),_0x215280=this[_0x5674c8(0x25b)](_0x3819ff,_0x162661);return this[_0x5674c8(0x16c)](_0x215280);}['_createSocketURL'](_0x20cd35,_0x388dd8){const _0x51d893=_0x1de525,_0xfef29=typeof window>'u'?new URL(_0x20cd35):new URL(_0x20cd35,window[_0x51d893(0x2b7)]['origin']);_0xfef29[_0x51d893(0x300)][_0x51d893(0x293)](_0x51d893(0x305),_0x388dd8);const _0xe841bd=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x51d893(0x2b7)][_0x51d893(0x29c)]);return _0xe841bd['get'](_0x51d893(0x21c))&&_0xfef29[_0x51d893(0x300)][_0x51d893(0x293)](_0x51d893(0x21c),_0xe841bd['get'](_0x51d893(0x21c))),_0xfef29['toString']();}async['_getSessionTicket'](){const _0x58817d=_0x1de525;var _0x3c66d1,_0x58fade,_0x2cb5aa;const _0x3b5522=this['_configService'][_0x58817d(0x273)](_0x475903),_0x131b69=(_0x3c66d1=_0x3b5522==null?void 0x0:_0x3b5522[_0x58817d(0x29a)])!=null?_0x3c66d1:_0x5beca7;return(_0x2cb5aa=(_0x58fade=(await this['_httpService'][_0x58817d(0x204)](_0x131b69,{'headers':{'Content-Type':_0x58817d(0x162)}}))[_0x58817d(0x18a)])==null?void 0x0:_0x58fade['ticket'])!=null?_0x2cb5aa:'';}};it=gn([z(0x0,_0x5c6996(_0x25bcbf)),z(0x1,_0x5c6996(_0x3d7078)),z(0x2,_0x4736f4),z(0x3,_0x3d5d66),z(0x4,_0x2cbbd)],it);var Lt=(_0x3607cb=>(_0x3607cb[_0x3607cb['UNDEFINED']=0x0]=_0x1de525(0x18e),_0x3607cb[_0x3607cb['OK']=0x1]='OK',_0x3607cb[_0x3607cb[_0x1de525(0x2ab)]=0x2]=_0x1de525(0x2ab),_0x3607cb[_0x3607cb[_0x1de525(0x194)]=0x3]='PERMISSION_DENIED',_0x3607cb[_0x3607cb['NOT_FOUND']=0x4]=_0x1de525(0x209),_0x3607cb[_0x3607cb[_0x1de525(0x135)]=0x5]='UNAUTHENTICATED',_0x3607cb[_0x3607cb['ALREADY_EXISTS']=0x6]=_0x1de525(0x1f2),_0x3607cb[_0x3607cb['INVALID_ARGUMENT']=0x7]=_0x1de525(0x264),_0x3607cb[_0x3607cb[_0x1de525(0x11d)]=0x8]=_0x1de525(0x11d),_0x3607cb[_0x3607cb[_0x1de525(0x2e3)]=0x9]=_0x1de525(0x2e3),_0x3607cb[_0x3607cb[_0x1de525(0x294)]=0xa]=_0x1de525(0x294),_0x3607cb[_0x3607cb[_0x1de525(0x1d7)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x3607cb[_0x3607cb[_0x1de525(0x1f7)]=0xc]=_0x1de525(0x1f7),_0x3607cb[_0x3607cb[_0x1de525(0x249)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x3607cb[_0x3607cb[_0x1de525(0x150)]=0xe]=_0x1de525(0x150),_0x3607cb[_0x3607cb[_0x1de525(0x1b3)]=0x1389]=_0x1de525(0x1b3),_0x3607cb[_0x3607cb[_0x1de525(0x229)]=0x1771]=_0x1de525(0x229),_0x3607cb[_0x3607cb[_0x1de525(0x236)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x3607cb[_0x3607cb[_0x1de525(0x146)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x3607cb[_0x3607cb[_0x1de525(0x1d0)]=0x1b59]=_0x1de525(0x1d0),_0x3607cb[_0x3607cb[_0x1de525(0x1a2)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x3607cb[_0x3607cb[_0x1de525(0x20e)]=0x1b5b]=_0x1de525(0x20e),_0x3607cb[_0x3607cb[_0x1de525(0x156)]=0x1b5c]=_0x1de525(0x156),_0x3607cb[_0x3607cb[_0x1de525(0x27e)]=0x1b5d]=_0x1de525(0x27e),_0x3607cb[_0x3607cb['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x1de525(0x2f3),_0x3607cb[_0x3607cb[_0x1de525(0x253)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x3607cb[_0x3607cb[_0x1de525(0x15c)]=0x232a]=_0x1de525(0x15c),_0x3607cb[_0x3607cb[_0x1de525(0x207)]=0x232b]=_0x1de525(0x207),_0x3607cb[_0x3607cb[_0x1de525(0x1c5)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x3607cb[_0x3607cb[_0x1de525(0x2f8)]=0x232d]=_0x1de525(0x2f8),_0x3607cb[_0x3607cb[_0x1de525(0x17a)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x3607cb[_0x3607cb[_0x1de525(0x259)]=0x2712]=_0x1de525(0x259),_0x3607cb[_0x3607cb[_0x1de525(0x257)]=0x2713]=_0x1de525(0x257),_0x3607cb[_0x3607cb[_0x1de525(0x19f)]=0x2714]=_0x1de525(0x19f),_0x3607cb[_0x3607cb[_0x1de525(0x1cf)]=0x271a]=_0x1de525(0x1cf),_0x3607cb[_0x3607cb[_0x1de525(0x2de)]=0x271b]=_0x1de525(0x2de),_0x3607cb[_0x3607cb[_0x1de525(0x27a)]=0x271c]=_0x1de525(0x27a),_0x3607cb[_0x3607cb[_0x1de525(0x296)]=0x271d]=_0x1de525(0x296),_0x3607cb[_0x3607cb[_0x1de525(0x190)]=0x271e]=_0x1de525(0x190),_0x3607cb[_0x3607cb[_0x1de525(0x170)]=0x271f]=_0x1de525(0x170),_0x3607cb[_0x3607cb['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x1de525(0x2f0),_0x3607cb[_0x3607cb[_0x1de525(0x2e8)]=0x2af9]=_0x1de525(0x2e8),_0x3607cb[_0x3607cb['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x1de525(0x164),_0x3607cb[_0x3607cb[_0x1de525(0x174)]=0x2ee2]=_0x1de525(0x174),_0x3607cb[_0x3607cb['INVITE_CODE_REQUIRED']=0x2ee3]=_0x1de525(0x1d5),_0x3607cb[_0x3607cb['USER_NOT_INVITED_CODE']=0x2ee4]=_0x1de525(0x1ec),_0x3607cb[_0x3607cb[_0x1de525(0x2be)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x3607cb[_0x3607cb['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x1de525(0x215),_0x3607cb[_0x3607cb['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x1de525(0x1d8),_0x3607cb[_0x3607cb[_0x1de525(0x1fb)]=0x32cb]=_0x1de525(0x1fb),_0x3607cb[_0x3607cb['UNRECOGNIZED']=-0x1]=_0x1de525(0x132),_0x3607cb))(Lt||{}),pn=Object['getOwnPropertyDescriptor'],Cn=(_0x225b65,_0x3b6b11,_0x532227,_0xee7f2a)=>{const _0x37592e=_0x1de525;for(var _0x48d0a9=_0xee7f2a>0x1?void 0x0:_0xee7f2a?pn(_0x3b6b11,_0x532227):_0x3b6b11,_0x29ca6f=_0x225b65[_0x37592e(0x16e)]-0x1,_0x444c59;_0x29ca6f>=0x0;_0x29ca6f--)(_0x444c59=_0x225b65[_0x29ca6f])&&(_0x48d0a9=_0x444c59(_0x48d0a9)||_0x48d0a9);return _0x48d0a9;},be=(_0x26baf4,_0x7161a3)=>(_0x4f521b,_0x3c6792)=>_0x7161a3(_0x4f521b,_0x3c6792,_0x26baf4);let nt=class extends _0x27b35c{constructor(_0xd31f44,_0x21bcc6,_0x3b12a7){const _0x47b752=_0x1de525;super(),this[_0x47b752(0x2fa)]=_0xd31f44,this[_0x47b752(0x1b9)]=_0x21bcc6,this['_configService']=_0x3b12a7;}async[_0x1de525(0x21e)](_0x216834,_0x1b6b62,_0x2c85e5,..._0x1f9602){const _0x21c47f=_0x1de525;var _0x347587,_0x35c3ef,_0x301e13,_0x4e5cf3;const _0x4426b3=this[_0x21c47f(0x2fa)][_0x21c47f(0x210)]();if(!_0x4426b3)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x1d3010=((_0x347587=this[_0x21c47f(0x241)]['getConfig'](_0x16e5e3))!=null?_0x347587:_0x4a0382)+'/'+_0x216834+_0x21c47f(0x13e)+_0x1b6b62,_0x21843c=new URL(window[_0x21c47f(0x2b7)]['href']),_0x1c96ed={'scriptId':_0x216834,'runId':(_0x35c3ef=_0x21843c[_0x21c47f(0x300)][_0x21c47f(0x204)](_0x21c47f(0x21c)))!=null?_0x35c3ef:'','function':_0x1b6b62,'unitId':_0x4426b3[_0x21c47f(0x223)](),'argsOfFunction':JSON[_0x21c47f(0x1b8)](_0x1f9602),'invokeId':(_0x301e13=_0x2c85e5['invokeId'])!=null?_0x301e13:'','executionId':(_0x4e5cf3=_0x2c85e5[_0x21c47f(0x24f)])!=null?_0x4e5cf3:''};try{const _0x16584c=await this['_httpService']['post'](_0x1d3010,{'body':_0x1c96ed});return _0x16584c[_0x21c47f(0x18a)]['error']&&_0x16584c[_0x21c47f(0x18a)]['error'][_0x21c47f(0x247)]!==Lt['OK']?_0x21c47f(0x11f):_0x16584c[_0x21c47f(0x18a)][_0x21c47f(0x28f)];}catch{return _0x21c47f(0x11f);}}};nt=Cn([be(0x0,_0x38aa79),be(0x1,_0x5c6996(_0x3d7078)),be(0x2,_0x4736f4)],nt);const rt=0x7530,ot=_0x1de525(0x270);class Fn extends _0x27b35c{constructor(){const _0x3fc530=_0x1de525;super(),_(this,_0x3fc530(0x1a8),_0x39b37f()),_(this,_0x3fc530(0x22b),new Set()),_(this,_0x3fc530(0x304),new Map()),_(this,_0x3fc530(0x1b5),null),_(this,'_clearOtherTimers',new Map()),_(this,_0x3fc530(0x1ad),new Map()),this[_0x3fc530(0x2a6)]();}[_0x1de525(0x13f)](){const _0x9fe113=_0x1de525;super[_0x9fe113(0x13f)](),this[_0x9fe113(0x15e)][_0x9fe113(0x1ce)]((_0x1af300,_0x62ca52)=>this['_removeClearOtherTimer'](_0x62ca52)),this[_0x9fe113(0x1b5)]&&window[_0x9fe113(0x1d1)](this['_heartbeatTimer']);}[_0x1de525(0x134)](_0x562f83){return this['_ensureSubject'](_0x562f83)['pipe'](_0x4d90cd());}[_0x1de525(0x316)](_0x2ea5a4){const _0x19c335=_0x1de525;this[_0x19c335(0x22b)][_0x19c335(0x217)]===0x0&&this['_scheduleHeartbeat'](),this[_0x19c335(0x22b)]['add'](_0x2ea5a4),this['_send']({'type':0x0,'memberID':this[_0x19c335(0x1a8)],'unitIDs':[_0x2ea5a4],'isForwarded':!0x1});}[_0x1de525(0x27d)](_0x42be6b){const _0x247eda=_0x1de525;this[_0x247eda(0x22b)][_0x247eda(0x29f)](_0x42be6b),this[_0x247eda(0x22b)][_0x247eda(0x217)]===0x0&&this[_0x247eda(0x1b5)]&&window[_0x247eda(0x1d1)](this[_0x247eda(0x1b5)]);}['_init'](){const _0x5467ac=_0x1de525;this['disposeWithMe'](_0x2685e5(_0x443658(window,_0x5467ac(0x126))['subscribe'](_0x5060b7=>{const _0x2b5bee=_0x5467ac;if(_0x5060b7['key']!==ot||!_0x5060b7['newValue'])return;const _0x499618=JSON['parse'](_0x5060b7[_0x2b5bee(0x24c)]);this[_0x2b5bee(0x2ff)](_0x499618);}))),window[_0x5467ac(0x318)](_0x5467ac(0x24b),()=>this[_0x5467ac(0x2a7)]({'type':0x1,'memberID':this[_0x5467ac(0x1a8)],'unitIDs':Array[_0x5467ac(0x2f2)](this['_selfUnitIDs'])}));}[_0x1de525(0x2ff)](_0x733ec8){const _0xe7d50f=_0x1de525;switch(_0x733ec8['type']){case 0x0:this[_0xe7d50f(0x205)](_0x733ec8);break;case 0x1:this[_0xe7d50f(0x274)](_0x733ec8);break;case 0x2:this[_0xe7d50f(0x251)](_0x733ec8);break;}}['_handleJoinEvent'](_0x1c4ca7){const _0x552894=_0x1de525,{unitIDs:_0x3f2242,memberID:_0x3bc065,isForwarded:_0x16c42f}=_0x1c4ca7;_0x3f2242[_0x552894(0x1ce)](_0x3978c4=>{const _0x1ea3f9=_0x552894;if(!_0x16c42f&&this[_0x1ea3f9(0x304)][_0x1ea3f9(0x20c)](_0x3978c4)&&this[_0x1ea3f9(0x188)](_0x3978c4)[_0x1ea3f9(0x239)](_0x4d8153[_0x1ea3f9(0x278)]),!this[_0x1ea3f9(0x304)][_0x1ea3f9(0x20c)](_0x3978c4)||!this['_unitOnClients'][_0x1ea3f9(0x204)](_0x3978c4)[_0x1ea3f9(0x20c)](_0x3bc065)){const _0x5c0564=this['_unitOnClients']['get'](_0x3978c4)||new Set();_0x5c0564[_0x1ea3f9(0x237)](_0x3bc065),this[_0x1ea3f9(0x304)][_0x1ea3f9(0x293)](_0x3978c4,_0x5c0564),this[_0x1ea3f9(0x2db)](_0x3bc065);}}),_0x16c42f||this['_send']({'type':0x0,'memberID':this[_0x552894(0x1a8)],'unitIDs':[...this[_0x552894(0x22b)]],'isForwarded':!0x0});}[_0x1de525(0x2db)](_0x21ba3c){const _0x32c858=_0x1de525;this[_0x32c858(0x2e5)](_0x21ba3c);const _0x4603a9=window[_0x32c858(0x1c9)](()=>{const _0x11f45d=_0x32c858;this[_0x11f45d(0x304)][_0x11f45d(0x1ce)](_0x3ab21a=>{const _0x161a4f=_0x11f45d;_0x3ab21a[_0x161a4f(0x29f)](_0x21ba3c);});},rt*0x2);this[_0x32c858(0x15e)][_0x32c858(0x293)](_0x21ba3c,_0x4603a9);}['_removeClearOtherTimer'](_0x2d2409){const _0x55bc17=_0x1de525;if(this[_0x55bc17(0x15e)][_0x55bc17(0x20c)](_0x2d2409)){const _0x340be5=this[_0x55bc17(0x15e)][_0x55bc17(0x204)](_0x2d2409);_0x340be5&&window[_0x55bc17(0x2c0)](_0x340be5),this[_0x55bc17(0x15e)][_0x55bc17(0x293)](_0x2d2409,null);}}[_0x1de525(0x274)](_0x2e74f0){const _0x4950cf=_0x1de525,{memberID:_0x451611,unitIDs:_0x222d54}=_0x2e74f0;_0x222d54[_0x4950cf(0x1ce)](_0x7a6ebf=>{const _0x5331ac=_0x4950cf;var _0x548bf2;const _0x2aa42f=this['_unitOnClients'][_0x5331ac(0x204)](_0x7a6ebf);_0x2aa42f&&(_0x2aa42f[_0x5331ac(0x29f)](_0x451611),(_0x548bf2=this[_0x5331ac(0x188)](_0x7a6ebf))==null||_0x548bf2[_0x5331ac(0x239)](_0x2aa42f[_0x5331ac(0x217)]===0x0?_0x4d8153['NO_OTHER_CLIENTS_EDITING']:_0x4d8153[_0x5331ac(0x278)]));}),this[_0x4950cf(0x2e5)](_0x451611);}[_0x1de525(0x251)](_0xb958e5){this['_scheduleClearOtherTimer'](_0xb958e5['memberID']);}[_0x1de525(0x2a7)](_0x396a13){const _0x1f4c1e=_0x1de525;localStorage['setItem'](ot,JSON[_0x1f4c1e(0x1b8)](_0x396a13));}['_scheduleHeartbeat'](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x4f02c8=_0x1f2d;this[_0x4f02c8(0x2a7)]({'type':0x2,'memberID':this[_0x4f02c8(0x1a8)]});},rt);}[_0x1de525(0x188)](_0x478f2b){const _0x1b4c25=_0x1de525;return this[_0x1b4c25(0x1ad)][_0x1b4c25(0x20c)](_0x478f2b)||this[_0x1b4c25(0x1ad)]['set'](_0x478f2b,new _0x1c5c36(_0x4d8153[_0x1b4c25(0x14a)])),this[_0x1b4c25(0x1ad)][_0x1b4c25(0x204)](_0x478f2b);}}export{it as BrowserCollaborationSocketService,ie as CollaborationDataLoaderController,se as DesktopCollaborationStatusDisplayController,Ut as IURLService,nt as RemoteUniscriptService,Xi as SheetCollabCursorShape,Ae as UniverCollaborationClientUIPlugin,Fn as WebBrowserSingleActiveUnitService,hn as WebURLService};
@@ -1 +1 @@
1
- const _0x12a0da=_0x3c8e;(function(_0xc3dc50,_0x1fbef7){const _0x53b6c4=_0x3c8e,_0x24b909=_0xc3dc50();while(!![]){try{const _0x560aec=-parseInt(_0x53b6c4(0x119))/0x1+-parseInt(_0x53b6c4(0x11f))/0x2*(parseInt(_0x53b6c4(0x127))/0x3)+parseInt(_0x53b6c4(0x124))/0x4+parseInt(_0x53b6c4(0x118))/0x5*(-parseInt(_0x53b6c4(0x11e))/0x6)+-parseInt(_0x53b6c4(0x11d))/0x7+-parseInt(_0x53b6c4(0x11c))/0x8+parseInt(_0x53b6c4(0x121))/0x9;if(_0x560aec===_0x1fbef7)break;else _0x24b909['push'](_0x24b909['shift']());}catch(_0x4c44b4){_0x24b909['push'](_0x24b909['shift']());}}}(_0x4adb,0x3fb6b));function _0x4adb(){const _0x2ed34d=['350gBJbxZ','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','13520106GJvmOZ','Connection\x20failed,\x20please\x20check\x20your\x20network.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','425196nvrnPZ','Syncing\x20server\x20data...','Click\x20to\x20Reconnect','6837TkMlEM','Authentication\x20Error','Edit\x20conflicts','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Local\x20file','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','710UBZmJw','185251zrIzkF','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','2233152OrrLZN','2907310tMyRWs','2916aiBEVh'];_0x4adb=function(){return _0x2ed34d;};return _0x4adb();}const e={'collab-client':{'tooltip':{'reconnect':_0x12a0da(0x126)}},'collabStatus':{'fetchMiss':_0x12a0da(0x125),'conflict':_0x12a0da(0x114),'notCollab':_0x12a0da(0x116),'synced':'Synced','syncing':'Syncing...','offline':_0x12a0da(0x117)},'session':{'connection-failed':_0x12a0da(0x122),'will-retry':_0x12a0da(0x115),'room-full':_0x12a0da(0x120),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':'Collaboration\x20Conflict','content':'There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.'},'permission':{'title':_0x12a0da(0x128),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':_0x12a0da(0x123)},'closeRoom':_0x12a0da(0x11a)},'auth':{'needGotoLoginAlert':_0x12a0da(0x11b)}},o=e;function _0x3c8e(_0xc5cf9a,_0xc348e6){const _0x4adb0a=_0x4adb();return _0x3c8e=function(_0x3c8ee9,_0x521973){_0x3c8ee9=_0x3c8ee9-0x114;let _0x51b658=_0x4adb0a[_0x3c8ee9];return _0x51b658;},_0x3c8e(_0xc5cf9a,_0xc348e6);}export{o as default};
1
+ function _0x49aa(){const _0x16e73b=['Collaboration\x20Conflict','2739268JrpkkR','3147243urlOcW','3973120FUVxBV','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','9XMFWIU','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','1001jmFzmg','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','10762280ixgaOd','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','76AijZwJ','Syncing...','6924rshPlp','Local\x20file','673428OKJPjJ','115595iWXSjt','Synced'];_0x49aa=function(){return _0x16e73b;};return _0x49aa();}const _0x560ef8=_0x3106;(function(_0x4c6127,_0x40a6ab){const _0x23c124=_0x3106,_0x363f3c=_0x4c6127();while(!![]){try{const _0x1437ff=-parseInt(_0x23c124(0x154))/0x1+parseInt(_0x23c124(0x145))/0x2+-parseInt(_0x23c124(0x146))/0x3+-parseInt(_0x23c124(0x150))/0x4*(parseInt(_0x23c124(0x155))/0x5)+parseInt(_0x23c124(0x152))/0x6*(-parseInt(_0x23c124(0x14b))/0x7)+-parseInt(_0x23c124(0x14e))/0x8*(-parseInt(_0x23c124(0x149))/0x9)+parseInt(_0x23c124(0x147))/0xa;if(_0x1437ff===_0x40a6ab)break;else _0x363f3c['push'](_0x363f3c['shift']());}catch(_0x56bfdf){_0x363f3c['push'](_0x363f3c['shift']());}}}(_0x49aa,0xbfc1f));function _0x3106(_0x8fb7d7,_0x374ea0){const _0x49aa63=_0x49aa();return _0x3106=function(_0x3106fc,_0xae05b0){_0x3106fc=_0x3106fc-0x144;let _0xb06618=_0x49aa63[_0x3106fc];return _0xb06618;},_0x3106(_0x8fb7d7,_0x374ea0);}const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':'Edit\x20conflicts','notCollab':_0x560ef8(0x153),'synced':_0x560ef8(0x156),'syncing':_0x560ef8(0x151),'offline':_0x560ef8(0x14a)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x560ef8(0x14d),'room-full':_0x560ef8(0x148),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x560ef8(0x144),'content':_0x560ef8(0x14c)},'permission':{'title':'Authentication\x20Error','content':_0x560ef8(0x14f)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}},o=e;export{o as default};
@@ -1 +1 @@
1
- const _0x393710=_0x3ce3;function _0x3ce3(_0x4e567d,_0x171159){const _0x3f4f3a=_0x3f4f();return _0x3ce3=function(_0x3ce30b,_0x3953a6){_0x3ce30b=_0x3ce30b-0xd7;let _0x3fdf70=_0x3f4f3a[_0x3ce30b];return _0x3fdf70;},_0x3ce3(_0x4e567d,_0x171159);}(function(_0x550873,_0x154dd4){const _0x27583d=_0x3ce3,_0x5ddd84=_0x550873();while(!![]){try{const _0x212519=-parseInt(_0x27583d(0xeb))/0x1+parseInt(_0x27583d(0xe4))/0x2+-parseInt(_0x27583d(0xd9))/0x3*(parseInt(_0x27583d(0xe0))/0x4)+-parseInt(_0x27583d(0xe6))/0x5+parseInt(_0x27583d(0xe8))/0x6*(-parseInt(_0x27583d(0xe7))/0x7)+parseInt(_0x27583d(0xdb))/0x8+parseInt(_0x27583d(0xd8))/0x9*(parseInt(_0x27583d(0xea))/0xa);if(_0x212519===_0x154dd4)break;else _0x5ddd84['push'](_0x5ddd84['shift']());}catch(_0x38b8c7){_0x5ddd84['push'](_0x5ddd84['shift']());}}}(_0x3f4f,0x6648e));function _0x3f4f(){const _0x2b8bf0=['Synced','1345216osTnPT','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','3025535RJoRIW','2324833oXmqnL','6KKrWxd','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','10xLMFPR','791434KBgRbW','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Local\x20file','Edit\x20conflicts','Connection\x20failed,\x20please\x20check\x20your\x20network.','Syncing...','8983332fEtTql','972120kUFYwO','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','6407216ikgCDJ','Authentication\x20Error','Collaboration\x20Conflict','Syncing\x20server\x20data...','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','4PTIcMl','Click\x20to\x20Reconnect','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'];_0x3f4f=function(){return _0x2b8bf0;};return _0x3f4f();}const e={'collab-client':{'tooltip':{'reconnect':_0x393710(0xe1)}},'collabStatus':{'fetchMiss':_0x393710(0xde),'conflict':_0x393710(0xee),'notCollab':_0x393710(0xed),'synced':_0x393710(0xe3),'syncing':_0x393710(0xd7),'offline':_0x393710(0xda)},'session':{'connection-failed':_0x393710(0xef),'will-retry':_0x393710(0xdf),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x393710(0xdd),'content':_0x393710(0xe9)},'permission':{'title':_0x393710(0xdc),'content':_0x393710(0xe5)},'collaboration':{'single-unit':{'warning':_0x393710(0xec)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x393710(0xe2)}};export{e as default};
1
+ const _0x5d3b63=_0x5d76;function _0x5d76(_0x2c84a7,_0x1e3cd7){const _0x1ad640=_0x1ad6();return _0x5d76=function(_0x5d76f7,_0x439662){_0x5d76f7=_0x5d76f7-0x78;let _0x18799f=_0x1ad640[_0x5d76f7];return _0x18799f;},_0x5d76(_0x2c84a7,_0x1e3cd7);}(function(_0xb235d,_0x2af867){const _0x4c9a50=_0x5d76,_0x50a995=_0xb235d();while(!![]){try{const _0x394f0b=parseInt(_0x4c9a50(0x82))/0x1+-parseInt(_0x4c9a50(0x93))/0x2*(parseInt(_0x4c9a50(0x81))/0x3)+parseInt(_0x4c9a50(0x7a))/0x4*(parseInt(_0x4c9a50(0x7f))/0x5)+parseInt(_0x4c9a50(0x8f))/0x6*(parseInt(_0x4c9a50(0x91))/0x7)+parseInt(_0x4c9a50(0x89))/0x8*(-parseInt(_0x4c9a50(0x8d))/0x9)+-parseInt(_0x4c9a50(0x90))/0xa+-parseInt(_0x4c9a50(0x8e))/0xb*(-parseInt(_0x4c9a50(0x80))/0xc);if(_0x394f0b===_0x2af867)break;else _0x50a995['push'](_0x50a995['shift']());}catch(_0x296e34){_0x50a995['push'](_0x50a995['shift']());}}}(_0x1ad6,0xd05ee));const e={'collab-client':{'tooltip':{'reconnect':_0x5d3b63(0x8c)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x5d3b63(0x7d),'notCollab':_0x5d3b63(0x7b),'synced':_0x5d3b63(0x84),'syncing':_0x5d3b63(0x79),'offline':_0x5d3b63(0x83)},'session':{'connection-failed':_0x5d3b63(0x8a),'will-retry':_0x5d3b63(0x78),'room-full':_0x5d3b63(0x8b),'collaboration-timeout':_0x5d3b63(0x88)},'conflict':{'title':_0x5d3b63(0x87),'content':_0x5d3b63(0x86)},'permission':{'title':_0x5d3b63(0x92),'content':_0x5d3b63(0x7c)},'collaboration':{'single-unit':{'warning':_0x5d3b63(0x7e)},'closeRoom':_0x5d3b63(0x85)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};export{e as default};function _0x1ad6(){const _0x45166b=['70599hJRlSW','578719izwGRE','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Synced','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Collaboration\x20Conflict','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','56632eMiAqH','Connection\x20failed,\x20please\x20check\x20your\x20network.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Click\x20to\x20Reconnect','1305EySEBD','8286487bkVoja','26454nVyNlv','1958420pcCAbB','1099joaMsC','Authentication\x20Error','112aUMUBj','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Syncing...','12260jfCmeE','Local\x20file','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Edit\x20conflicts','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','1005TUQdLo','24xkVyvo'];_0x1ad6=function(){return _0x45166b;};return _0x1ad6();}