@univerjs-pro/collaboration-client-ui 0.12.3-experimental.20251205-e439e48 → 0.12.3-experimental.20251205-71d07c3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +15 -15
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4cb6a4=_0x3956;(function(_0x5df1f9,_0x10fb07){const _0x2a5459=_0x3956,_0x2b5a6b=_0x5df1f9();while(!![]){try{const _0x36edbc=-parseInt(_0x2a5459(0x115))/0x1+-parseInt(_0x2a5459(0x105))/0x2+parseInt(_0x2a5459(0x2e8))/0x3+parseInt(_0x2a5459(0x1fa))/0x4*(parseInt(_0x2a5459(0x30c))/0x5)+parseInt(_0x2a5459(0x284))/0x6*(parseInt(_0x2a5459(0x1d7))/0x7)+parseInt(_0x2a5459(0xe2))/0x8+-parseInt(_0x2a5459(0x248))/0x9;if(_0x36edbc===_0x10fb07)break;else _0x2b5a6b['push'](_0x2b5a6b['shift']());}catch(_0x28cef4){_0x2b5a6b['push'](_0x2b5a6b['shift']());}}}(_0x19b9,0x4675d));var Yt=Object['defineProperty'],Wt=(_0x568105,_0x4a5d75,_0x1a29d5)=>_0x4a5d75 in _0x568105?Yt(_0x568105,_0x4a5d75,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a29d5}):_0x568105[_0x4a5d75]=_0x1a29d5,_=(_0x1c175f,_0x42518b,_0x5ef60c)=>Wt(_0x1c175f,typeof _0x42518b!=_0x4cb6a4(0x21d)?_0x42518b+'':_0x42518b,_0x5ef60c);import{jsx as _0x583146,jsxs as _0x33104b}from'react/jsx-runtime';import{CollaborationStatus as _0x355c0f,CollaborationSessionService as _0x225480,CollaborationController as _0x2a0946,DataLoaderService as _0x429736,MemberService as _0xc5b845,SessionStatus as _0x2c90eb,ILocalCacheService as _0xa76635,CollaborationUIEventService as _0x1527da,CollaborationUIEventId as _0x684afe,DocCollaborationEntity as _0x3c7015,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x588807,getLocalCacheKey as _0x369636,LOCAL_CACHE_INTERVAL as _0x4d3f49,LOCAL_CACHE_INTERVAL_KEY as _0x5c878d,UniverCollaborationClientPlugin as _0x296643,CollaborationSocketService as _0x34b517,DEFAULT_WS_SESSION_TICKET_URL as _0x39fb0c,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x24ab76,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0xc9a869,UnitStatus as _0x5cb507}from'@univerjs-pro/collaboration-client';import{LocaleService as _0xdd2fc6,IUniverInstanceService as _0x14cde1,Inject as _0x460697,Injector as _0x307bfd,Disposable as _0x4bd602,createIdentifier as _0x468ed3,ILogService as _0x21d8d8,ICommandService as _0x29d21c,Optional as _0x54767c,RxDisposable as _0x387d07,Workbook as _0x2965ea,DOC_RANGE_TYPE as _0x33369f,debounce as _0x357798,Rectangle as _0x520fac,DisposableCollection as _0x4dfaa7,toDisposable as _0xb8c0,UniverInstanceType as _0xaccedf,generateRandomId as _0x3bf90d,COLORS as _0x4887fc,ColorKit as _0x3db1df,ThemeService as _0x286aec,fromEventSubject as _0x5c84a5,Tools as _0x3843dc,CommandType as _0x735f71,IConfigService as _0x5f0f68,CanceledError as _0x3e478b,isFormulaString as _0x49453e,isFormulaId as _0xd29c8b,ILocalStorageService as _0x51c183,DependentOn as _0x53ddfc,Plugin as _0x28da11,merge as _0xa68d8e,registerDependencies as _0x26af39,mergeOverrideWithDependencies as _0x3aa7dc,touchDependencies as _0x234a72}from'@univerjs/core';import{useObservable as _0x154663,useDependency as _0x1819c6,IUIPartsService as _0x559a46,BuiltInUIPart as _0x57eedd,connectInjector as _0x232495,IBeforeCloseService as _0x40a478,IMessageService as _0x6f3ae,INotificationService as _0xe8a5c1}from'@univerjs/ui';import{BehaviorSubject as _0x5e0fc0,switchMap as _0x2411b6,of as _0xd3f9fe,takeUntil as _0x47dffc,debounceTime as _0x4e852b,Subject as _0x45098e,filter as _0xbd2e46,merge as _0xf48905,combineLatest as _0x18e034,fromEvent as _0x2fef3d,shareReplay as _0x6d9b4a,mapTo as _0x583303,distinctUntilChanged as _0x3c4859}from'rxjs';import{Tooltip as _0x2b52de,clsx as _0x4b9bc7,MessageType as _0x319fef}from'@univerjs/design';import{useRef as _0x11e373,createElement as _0x54d1e5,forwardRef as _0x4946ed,useCallback as _0x172ae6}from'react';import{IRemoteInstanceService as _0x14d32d}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x15f818,RefRangeService as _0x5cb60d,SetSelectionsOperation as _0x387c8e,SheetsSelectionsService as _0x3e5f4d,EffectRefRangId as _0x2319c3,handleIRemoveRow as _0x53f6fa,handleIRemoveCol as _0x30f4f8,handleMoveRange as _0x83a2ba,handleInsertRow as _0x1830b5,handleInsertRangeMoveRight as _0xa4f916,handleInsertRangeMoveDown as _0x2ea622,handleInsertCol as _0x513924,handleDeleteRangeMoveUp as _0x1dc24c,handleDeleteRangeMoveLeft as _0x2487a0,runRefRangeMutations as _0x848d32}from'@univerjs/sheets';import{Shape as _0x18811c,Rect as _0x30b3bc,getColor as _0x3dd5c1,RegularPolygon as _0x4ac39,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0xd38e99,Vector2 as _0x224b9a,SHEET_VIEWPORT_KEY as _0x12a7e5,IRenderManagerService as _0x591858}from'@univerjs/engine-render';import{HTTPService as _0x3f1253,ISocketService as _0x23856e,WebSocketService as _0x990071}from'@univerjs/network';import{IDocClipboardService as _0x158ff7,NodePositionConvertToCursor as _0x14f0d6,NodePositionConvertToRectRange as _0x179d08,TEXT_RANGE_LAYER_INDEX as _0x536f28,SetDocZoomRatioOperation as _0x4fc292,DocIMEInputManagerService as _0x3fcd4a,DocStateChangeManagerService as _0xdeb5eb}from'@univerjs/docs-ui';import{IImageIoService as _0x4fdb60}from'@univerjs/drawing';import{ITransformService as _0x480862,CollaborationEvent as _0x4c5b2c,isTransformMutationFailure as _0x36a568,isTransformMutationsWithChangesetSuccess as _0x3a7478,RevisionService as _0xb9acf4,ISnapshotServerService as _0x431961}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x333954,RichTextEditingMutation as _0x1bbb72,DocSelectionManagerService as _0xee7088,DocSkeletonManagerService as _0x3c907e}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x298d49,serializeRangeWithSheet as _0x3ea7cf,FormulaExecuteStageType as _0x21866a,FormulaExecutedStateType as _0xbfb00a,SetFormulaCalculationStartMutation as _0x52ebd9,SetFormulaCalculationNotificationMutation as _0x5a9abe}from'@univerjs/engine-formula';import{map as _0x7f84b9,filter as _0x6356d3,throttleTime as _0x457313,takeUntil as _0x3f1e44,switchMap as _0x1d66f6}from'rxjs/operators';import{SheetSkeletonManagerService as _0x532b10,getCoordByCell as _0x500f41,getSheetObject as _0x54d3b3}from'@univerjs/sheets-ui';function Ge({ref:_0x4811a2,..._0x2831b7}){const _0x2b2824=_0x4cb6a4,{icon:_0xb7cd2a,id:_0xd1f464,className:_0x1d6aa8,extend:_0x542b85,..._0x4bb2ca}=_0x2831b7,_0x1c4aac=(_0x2b2824(0x16c)+_0xd1f464+'\x20'+(_0x1d6aa8||''))['trim'](),_0x31eb10=_0x11e373('_'+vi());return At(_0xb7cd2a,''+_0xd1f464,{'defIds':_0xb7cd2a[_0x2b2824(0x114)],'idSuffix':_0x31eb10[_0x2b2824(0x1f5)]},{'ref':_0x4811a2,'className':_0x1c4aac,..._0x4bb2ca},_0x542b85);}function At(_0x425b40,_0x5d4949,_0xb64fc4,_0xd31a79,_0x4d3fd9){const _0x50ffc0=_0x4cb6a4;return _0x54d1e5(_0x425b40[_0x50ffc0(0x116)],{'key':_0x5d4949,...gi(_0x425b40,_0xb64fc4,_0x4d3fd9),..._0xd31a79},(Ei(_0x425b40,_0xb64fc4)[_0x50ffc0(0x2ed)]||[])[_0x50ffc0(0xf4)]((_0x4a845b,_0x5f5326)=>At(_0x4a845b,_0x5d4949+'-'+_0x425b40['tag']+'-'+_0x5f5326,_0xb64fc4,void 0x0,_0x4d3fd9)));}function gi(_0xc4f06e,_0xfe53bc,_0x57dd55){const _0x450e4f=_0x4cb6a4,_0x47e93a={..._0xc4f06e['attrs']};_0x57dd55!=null&&_0x57dd55['colorChannel1']&&_0x47e93a[_0x450e4f(0x22b)]===_0x450e4f(0x164)&&(_0x47e93a[_0x450e4f(0x22b)]=_0x57dd55[_0x450e4f(0x164)]),_0xc4f06e[_0x450e4f(0x116)]===_0x450e4f(0x271)&&_0x47e93a['id']&&(_0x47e93a['id']=_0x47e93a['id']+_0xfe53bc[_0x450e4f(0xed)]),Object[_0x450e4f(0xf2)](_0x47e93a)[_0x450e4f(0xea)](([_0x373654,_0x273ed6])=>{const _0x4427=_0x450e4f;_0x373654===_0x4427(0x271)&&typeof _0x273ed6==_0x4427(0x25c)&&(_0x47e93a[_0x373654]=_0x273ed6[_0x4427(0x297)](/url\(#(.*)\)/,_0x4427(0x25e)+_0xfe53bc[_0x4427(0xed)]+')'));});const {defIds:_0x56935c}=_0xfe53bc;return!_0x56935c||_0x56935c[_0x450e4f(0x179)]===0x0||(_0xc4f06e[_0x450e4f(0x116)]===_0x450e4f(0x1b6)&&_0x47e93a[_0x450e4f(0x2c9)]&&(_0x47e93a[_0x450e4f(0x2c9)]=_0x47e93a[_0x450e4f(0x2c9)]+_0xfe53bc[_0x450e4f(0xed)]),Object[_0x450e4f(0xf2)](_0x47e93a)[_0x450e4f(0xea)](([_0x1a35b6,_0x2eece8])=>{const _0x5224af=_0x450e4f;typeof _0x2eece8==_0x5224af(0x25c)&&(_0x47e93a[_0x1a35b6]=_0x2eece8['replace'](/url\(#(.*)\)/,'url(#$1'+_0xfe53bc['idSuffix']+')'));})),_0x47e93a;}function Ei(_0x21bba8,_0x5590de){const _0x39164c=_0x4cb6a4;var _0x1ee7db;const {defIds:_0x5ab1ee}=_0x5590de;return!_0x5ab1ee||_0x5ab1ee[_0x39164c(0x179)]===0x0?_0x21bba8:_0x21bba8['tag']===_0x39164c(0x1f3)&&((_0x1ee7db=_0x21bba8['children'])!=null&&_0x1ee7db[_0x39164c(0x179)])?{..._0x21bba8,'children':_0x21bba8[_0x39164c(0x2ed)][_0x39164c(0xf4)](_0x1dd757=>typeof _0x1dd757[_0x39164c(0x185)]['id']==_0x39164c(0x25c)&&_0x5ab1ee&&_0x5ab1ee[_0x39164c(0x172)](_0x1dd757[_0x39164c(0x185)]['id'])?{..._0x1dd757,'attrs':{..._0x1dd757[_0x39164c(0x185)],'id':_0x1dd757[_0x39164c(0x185)]['id']+_0x5590de['idSuffix']}}:_0x1dd757)}:_0x21bba8;}function vi(){const _0x3d9b25=_0x4cb6a4;return Math[_0x3d9b25(0x289)]()[_0x3d9b25(0x145)](0x24)[_0x3d9b25(0x20b)](0x2,0x8);}Ge['displayName']=_0x4cb6a4(0x296);const pi={'tag':_0x4cb6a4(0x183),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4cb6a4(0x28e),'viewBox':_0x4cb6a4(0x2dd),'width':'1em','height':_0x4cb6a4(0x100)},'children':[{'tag':'g','attrs':{'clipPath':_0x4cb6a4(0x19f)},'children':[{'tag':'path','attrs':{'stroke':_0x4cb6a4(0x2bd),'d':_0x4cb6a4(0x22c),'strokeLinecap':'round','strokeLinejoin':_0x4cb6a4(0xb8),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4cb6a4(0x1e3),'attrs':{'id':_0x4cb6a4(0x305)},'children':[{'tag':_0x4cb6a4(0x240),'attrs':{'fill':_0x4cb6a4(0x17c),'d':_0x4cb6a4(0x12e)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Pt=_0x4946ed(function(_0x5bd38f,_0x12b987){const _0x2b59fd=_0x4cb6a4;return _0x54d1e5(Ge,Object['assign']({},_0x5bd38f,{'id':_0x2b59fd(0x298),'ref':_0x12b987,'icon':pi}));});Pt[_0x4cb6a4(0xc5)]='OffLineIcon';const Oi={'tag':_0x4cb6a4(0x183),'attrs':{'xmlns':_0x4cb6a4(0x25b),'fill':_0x4cb6a4(0x28e),'viewBox':_0x4cb6a4(0x178),'width':_0x4cb6a4(0x100),'height':_0x4cb6a4(0x100)},'children':[{'tag':'g','attrs':{'clipPath':_0x4cb6a4(0x29f)},'children':[{'tag':_0x4cb6a4(0x240),'attrs':{'stroke':_0x4cb6a4(0x2bd),'d':_0x4cb6a4(0x131),'strokeLinecap':_0x4cb6a4(0xb8),'strokeLinejoin':_0x4cb6a4(0xb8),'strokeWidth':1.2}}]},{'tag':_0x4cb6a4(0x1f3),'attrs':{},'children':[{'tag':_0x4cb6a4(0x1e3),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x4cb6a4(0x12e),'transform':_0x4cb6a4(0x13c)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},wt=_0x4946ed(function(_0x3f8b75,_0x33c5be){const _0x361e70=_0x4cb6a4;return _0x54d1e5(Ge,Object[_0x361e70(0x1f8)]({},_0x3f8b75,{'id':_0x361e70(0x2df),'ref':_0x33c5be,'icon':Oi}));});wt[_0x4cb6a4(0xc5)]=_0x4cb6a4(0x23f);function Ti(_0x33d0cb){const _0x53435d=_0x4cb6a4;switch(_0x33d0cb){case _0x355c0f[_0x53435d(0x24c)]:return'collabStatus.offline';case _0x355c0f[_0x53435d(0x306)]:return _0x53435d(0x118);case _0x355c0f[_0x53435d(0x225)]:return'collabStatus.fetchMiss';case _0x355c0f[_0x53435d(0x1af)]:return _0x53435d(0xe6);case _0x355c0f[_0x53435d(0xf6)]:case _0x355c0f[_0x53435d(0x1ae)]:return _0x53435d(0x2d4);case _0x355c0f[_0x53435d(0x236)]:case _0x355c0f[_0x53435d(0x21e)]:return'collabStatus.synced';}}function Ci(_0x4fa50d){const _0x1a8cd2=_0x4cb6a4,{status$:_0x1ade08}=_0x4fa50d,_0x1dd387=_0x154663(_0x1ade08,_0x355c0f[_0x1a8cd2(0x1af)]),_0x2c887a=_0x1819c6(_0xdd2fc6),_0x185db1=_0x1819c6(_0x225480),_0x526a61=_0x1dd387!==_0x355c0f[_0x1a8cd2(0x24c)],_0x2766a0=_0x2c887a['t'](Ti(_0x1dd387)),_0x347451=_0x526a61?_0x583146(wt,{}):_0x583146(Pt,{}),_0x3c5a92=_0x172ae6(()=>{const _0x46e01c=_0x1a8cd2;_0x526a61||_0x185db1[_0x46e01c(0x212)]();},[_0x526a61,_0x185db1]);function _0xec0396(){const _0x50ff82=_0x1a8cd2;return _0x33104b('div',{'className':_0x50ff82(0x108),'onClick':_0x3c5a92,'children':[_0x583146(_0x50ff82(0x2e4),{'className':_0x4b9bc7('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x526a61,'univer-text-red-500':!_0x526a61}),'children':_0x347451}),_0x583146(_0x50ff82(0x2e4),{'className':_0x50ff82(0x20c),'children':_0x2766a0})]});}return _0x526a61?_0xec0396():_0x583146(_0x2b52de,{'title':_0x2c887a['t'](_0x1a8cd2(0x2b3)),'children':_0xec0396()});}var Ri=Object[_0x4cb6a4(0x1ed)],Di=(_0x5c1e9d,_0x36139c,_0x5e20d8,_0x1c71a4)=>{const _0x2f92f6=_0x4cb6a4;for(var _0x38d3fb=_0x1c71a4>0x1?void 0x0:_0x1c71a4?Ri(_0x36139c,_0x5e20d8):_0x36139c,_0x27d76e=_0x5c1e9d[_0x2f92f6(0x179)]-0x1,_0x5e123f;_0x27d76e>=0x0;_0x27d76e--)(_0x5e123f=_0x5c1e9d[_0x27d76e])&&(_0x38d3fb=_0x5e123f(_0x38d3fb)||_0x38d3fb);return _0x38d3fb;},se=(_0x43cbaa,_0x1e09bd)=>(_0x44ddc9,_0x2e893d)=>_0x1e09bd(_0x44ddc9,_0x2e893d,_0x43cbaa);let ae=class extends _0x4bd602{constructor(_0x89a1a8,_0x3e6568,_0x2f16c8,_0x1647f8){const _0x10ac79=_0x4cb6a4;super(),_(this,_0x10ac79(0x2ba),new _0x5e0fc0(_0x355c0f[_0x10ac79(0x1af)])),(this['_univerInstanceService']=_0x89a1a8,this[_0x10ac79(0x14d)]=_0x3e6568,this[_0x10ac79(0x149)]=_0x2f16c8,this[_0x10ac79(0x10b)]=_0x1647f8,this[_0x10ac79(0x1c1)](),this[_0x10ac79(0xff)]());}[_0x4cb6a4(0xff)](){const _0x3908b6=_0x4cb6a4;this[_0x3908b6(0x1b2)](this[_0x3908b6(0x168)][_0x3908b6(0x2a8)][_0x3908b6(0xcd)](_0x2411b6(()=>{const _0x1c2015=_0x3908b6,_0x33e771=this['_univerInstanceService'][_0x1c2015(0x107)]();return _0x33e771?this['_collaborationController'][_0x1c2015(0x1d0)](_0x33e771[_0x1c2015(0x2d8)]()):_0xd3f9fe(null);}),_0x2411b6(_0x4a45da=>_0x4a45da?_0x4a45da['status$']:_0xd3f9fe(_0x355c0f[_0x3908b6(0x1af)])))[_0x3908b6(0x13b)](_0x40cbf6=>{const _0x2c1bd5=_0x3908b6;this[_0x2c1bd5(0x2ba)][_0x2c1bd5(0x30d)](_0x40cbf6);}));}[_0x4cb6a4(0x1c1)](){const _0x12c353=_0x4cb6a4;this['disposeWithMe'](this[_0x12c353(0x10b)][_0x12c353(0x199)](_0x57eedd[_0x12c353(0x24d)],()=>_0x232495(Ni({'status$':this[_0x12c353(0x2ba)][_0x12c353(0x1a7)]()}),this['_injector'])));}};ae=Di([se(0x0,_0x14cde1),se(0x1,_0x460697(_0x307bfd)),se(0x2,_0x460697(_0x2a0946)),se(0x3,_0x559a46)],ae);function Ni(_0xbb85b2){const {status$:_0x177d3b}=_0xbb85b2;return function(){return _0x583146(Ci,{'status$':_0x177d3b});};}const yt=_0x468ed3('uni.network.url-service');var bi=Object[_0x4cb6a4(0x1ed)],Li=(_0x251e13,_0x1c143e,_0x248d42,_0x177593)=>{const _0x4bcf12=_0x4cb6a4;for(var _0x18016f=_0x177593>0x1?void 0x0:_0x177593?bi(_0x1c143e,_0x248d42):_0x1c143e,_0x165246=_0x251e13[_0x4bcf12(0x179)]-0x1,_0x1ff1da;_0x165246>=0x0;_0x165246--)(_0x1ff1da=_0x251e13[_0x165246])&&(_0x18016f=_0x1ff1da(_0x18016f)||_0x18016f);return _0x18016f;},K=(_0xd1c5,_0xa80230)=>(_0x561def,_0x277a97)=>_0xa80230(_0x561def,_0x277a97,_0xd1c5);let ce=class extends _0x387d07{constructor(_0x511d8a,_0x22ccf0,_0x59eca9,_0x15d6c5,_0x37ee15){const _0x49b538=_0x4cb6a4;super(),this[_0x49b538(0x2f4)]=_0x511d8a,this['_logService']=_0x22ccf0,this[_0x49b538(0x259)]=_0x59eca9,this[_0x49b538(0x213)]=_0x15d6c5,_0x37ee15?_0x37ee15==null||_0x37ee15[_0x49b538(0x1b0)]()[_0x49b538(0xc0)](()=>this[_0x49b538(0x2ce)]()):(this['_logService'][_0x49b538(0x211)](_0x49b538(0x304),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x4cb6a4(0x2ce)](){const _0x44ea67=_0x4cb6a4,_0x1279d8=this['_urlService'][_0x44ea67(0x1cc)](_0x44ea67(0x1e6)),_0x5bc7cb=this[_0x44ea67(0x2f4)][_0x44ea67(0x1cc)](_0x44ea67(0x17e)),_0x50f615=this['_urlService'][_0x44ea67(0x1cc)](_0x44ea67(0x1eb));if(!_0x1279d8||!_0x5bc7cb){this[_0x44ea67(0x2d0)]['debug']('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x46f59e=await this['_dataLoaderService'][_0x44ea67(0x27b)](_0x1279d8,Number(_0x5bc7cb),_0x50f615);_0x46f59e&&_0x46f59e instanceof _0x2965ea&&this[_0x44ea67(0x104)](_0x46f59e);}async['_setupSubUnitSync'](_0x17aca7){const _0x5f6674=_0x4cb6a4;await this[_0x5f6674(0x290)](_0x17aca7),_0x17aca7[_0x5f6674(0x203)][_0x5f6674(0xcd)](_0x47dffc(this[_0x5f6674(0x165)]))[_0x5f6674(0x13b)](_0xd83f16=>{const _0x4267f0=_0x5f6674;_0xd83f16&&this[_0x4267f0(0x2f1)](_0xd83f16);}),this[_0x5f6674(0x2f4)]['urlChange$'][_0x5f6674(0xcd)](_0x47dffc(this[_0x5f6674(0x165)]))['subscribe'](()=>this[_0x5f6674(0x290)](_0x17aca7));}[_0x4cb6a4(0x2f1)](_0x403fcb,_0x12f918=!0x1){const _0x284b7b=_0x4cb6a4,_0x40d38c=this[_0x284b7b(0x2f4)]['getParam']('subunit');_0x403fcb[_0x284b7b(0xde)]()!==_0x40d38c&&this[_0x284b7b(0x2f4)][_0x284b7b(0x299)](_0x284b7b(0x1eb),_0x403fcb[_0x284b7b(0xde)](),_0x12f918);}async[_0x4cb6a4(0x290)](_0x1bf3ea){const _0x56f81d=_0x4cb6a4;var _0x59738a;const _0xd238ed=this[_0x56f81d(0x2f4)][_0x56f81d(0x1cc)](_0x56f81d(0x1eb));if(!_0xd238ed||!_0x1bf3ea['getSheetBySheetId'](_0xd238ed)){const _0x5c982a=_0x1bf3ea[_0x56f81d(0x1da)]()[0x0],_0x26c9fc=_0x1bf3ea['getSheetBySheetId'](_0x5c982a);if(!_0x26c9fc)return;this[_0x56f81d(0x2f1)](_0x26c9fc,!0x0),await this[_0x56f81d(0x259)][_0x56f81d(0x200)](_0x15f818['id'],{'unitId':_0x1bf3ea[_0x56f81d(0x2d8)](),'subUnitId':_0x5c982a});return;}((_0x59738a=_0x1bf3ea[_0x56f81d(0x222)]())==null?void 0x0:_0x59738a[_0x56f81d(0xde)]())!==_0xd238ed&&await this[_0x56f81d(0x259)][_0x56f81d(0x200)](_0x15f818['id'],{'unitId':_0x1bf3ea[_0x56f81d(0x2d8)](),'subUnitId':_0xd238ed});}};ce=Li([K(0x0,yt),K(0x1,_0x21d8d8),K(0x2,_0x29d21c),K(0x3,_0x460697(_0x429736)),K(0x4,_0x54767c(_0x14d32d))],ce);var Ui=Object['getOwnPropertyDescriptor'],Mi=(_0x28c743,_0x137d88,_0xab76e,_0x41a1f6)=>{const _0x51cda7=_0x4cb6a4;for(var _0x32c133=_0x41a1f6>0x1?void 0x0:_0x41a1f6?Ui(_0x137d88,_0xab76e):_0x137d88,_0xde98e8=_0x28c743[_0x51cda7(0x179)]-0x1,_0x1cc0d6;_0xde98e8>=0x0;_0xde98e8--)(_0x1cc0d6=_0x28c743[_0xde98e8])&&(_0x32c133=_0x1cc0d6(_0x32c133)||_0x32c133);return _0x32c133;},rt=(_0x4aa122,_0x1e34dc)=>(_0x520782,_0x193a80)=>_0x1e34dc(_0x520782,_0x193a80,_0x4aa122);let $e=class extends _0x387d07{constructor(_0x3844f1,_0x175886){const _0x256d92=_0x4cb6a4;super(),this[_0x256d92(0x148)]=_0x3844f1,this[_0x256d92(0xd7)]=_0x175886,this['_init']();}['_init'](){const _0x17497e=_0x4cb6a4,_0x431ab1=this;this[_0x17497e(0x1b2)](this['_docClipboardService'][_0x17497e(0x1c3)]({'onBeforePasteImage':async _0x50b00d=>{const _0x125764=_0x17497e,_0xef599d=await _0x431ab1[_0x125764(0xd7)][_0x125764(0x167)](_0x50b00d);return _0xef599d?{'source':_0xef599d[_0x125764(0x270)],'imageSourceType':_0xef599d[_0x125764(0x252)]}:null;}}));}};$e=Mi([rt(0x0,_0x158ff7),rt(0x1,_0x4fdb60)],$e);const ot=[_0x4cb6a4(0xd0),'jiqing.500',_0x4cb6a4(0x1a8),_0x4cb6a4(0xe0),_0x4cb6a4(0x30e),_0x4cb6a4(0xe3)];function _0x19b9(){const _0x4f74ce=['APPLY_DUPLICATED','_registerDependencies','_injector','getAncestorScale','reason','/universer-api/license/formula/limit/done','toRgbString','permission.title','rgba(255,\x20255,\x20255,\x200.01)','_colorAssignService','onPointerEnter$','_hasFormulaInDirtyRanges','_toggleOffline','_cachedData','getMemberID','lineTo','setStateCache','_saveCache','_collabCursorController','textRanges','transformRemoteChangeset','_updateCollabCursors','collaboration-client-ui.config','_checkCalculationAvailable','push','colorChannel1','dispose$','#FFF','saveImage','_univerInstanceService','onCommandExecuted','setAlpha','CHANGESET_REVISION_CONFILICT','univerjs-icon\x20univerjs-icon-','INVALID_INVITE_CODE','skeleton','EMAIL_VERIFY_CODE_MISMATCH','_labelPosition','UNRECOGNIZED','includes','MoveRangeCommandId','session.will-retry','EMAIL_HAS_BEEN_BOUND','_scheduleClearOtherTimer','[Window\x20Error]:\x20','0\x200\x2017\x2016','length','now','split','white','getMember','type','dispose','_getSaveTimeout','stringify','getConfig','svg','_render','attrs','contains','set','/universer-api/license/formula/limit/start','_initResize','memberID','data','exhaustSavingTask','transformMutationsWithChangeset','LOGIN_TOKEN_PROCESSING_FAILED','permission.content','getDocRanges','_docSkeletonManagerService','REDEMPTION_CODE_INACTIVE','filename','/universer-api/license/formula/limit/status','_drawRectRange','getSkeleton','lineno','_hover','registerComponent','black','_handleEvent','_renderManagerService','_instanceService','onMouseMove','url(#off-line-icon_clip0_910_343)','doc.mutation.rich-text-editing','MOBILE_VERIFY_CODE_MISMATCH','YUUMI_ASYNCIO_CANCELLED','_pollingInterval','_name','complete','_config','asObservable','green.600','MOBILE_HAS_BEEN_BOUND','drawWith','ENSURE_SNAPSHOT_EXECUTION','_onCursorDelete','fillRule','AWAITING_WITH_PENDING','NOT_COLLAB','whenReady','_entityInit$','disposeWithMe','_getAnchorBounding','actions','_scheduleHeartbeat','use','FromArray','beginPath','getUniverSheetInstance','subUnitId','send','TOO_MANY_REQUESTS','ENTITLE_CAN_NOT_BUY_LOWER_OTP','saveOfflineData','addObjects','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_initStatusComponent','_cursorInfo$','addClipboardHook','YUUMI_SUBSCRIPTION_NOT_FOUND','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','APPLY_PERMISSION_DENIED','getActiveRange','startFormulaLimitUrl','height','_anchorDot','_removeClearOtherTimer','getParam','_startDocCollabCursor','RECT','deepClone','getCollabEntity$','_localStorageService','stage','YUUMI_NO_CUBOID_FOR_QUESTION','requireSession','_collaborationUIEventService','ERROR_AGAIN','1298577jftLcg','AUTHORIZE_CODE_ILLEGAL','isEditing','getUnhiddenWorksheets','_collaborationSessionService','removeEventListener','_getSheetObject','urlChange$','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','restore','getStateCache','collab-text-anchor-','clipPath','unload','CURRENT_STATUS_CANNOT_OPERATE','unit','createInstance','SOCKET_FAILED','_lastPointer','_collabSessionService','subunit','?taskId=','getOwnPropertyDescriptor','NO_OTHER_CLIENTS_EDITING','_docTransformStateCacheService','parseInt','_httpService','USER_NOT_INVITED_CODE','defs','REDEMPTION_CODE_FULLY_REDEEMED','current','LICENSE_DISTRO_REJECTED','YUUMI_AI_RUN_FAILED','assign','ranges','1632HSzmAn','backgroundColor','enableFrontendLog','_refRangeService','REDEMPTION_INVALID_CODE','params','executeCommand','_docTransformSelectionsService','PAYMENT_CHANNEL_NOT_SUPPORT','activeSheet$','from','add','currentSkeleton$','bottom','undoState','setInterval','replaceState','substring','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','Error','collaboration.offline-data-not-saved','width','saveTaskMap','debug','reconnect','_dataLoaderService','_getSessionTicket','colno','bind','color','getSheetBySheetId','size','getVpScrollXYInfoByPosToVp','SUBMIT_CHANGESET_TIMEOUT','_updateLocalCursor','symbol','PENDING','_color','delete','getTypeOfUnitAdded$','getActiveSheet','mutations','_initDependencies','FETCH_MISS','getCurrentRevOfUnit','_draw','ACTIVE_UNIT_EVENT_CHANNEL','USER_IS_ANONYMOUS','sheetId','fill','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','ENTITLE_INVALID_COUPON_CODE','isArray','YUUMI_URL_COL_OUT_OF_RANGE','_applyCommand','CONNECTOR_DATA_TOO_LARGE','USER_NOT_FOUND','APPLY_REVISION_CONFILICT','_disabled','_online','SYNCED','location','setTimeout','_sheetSkeletonManagerService','ENTITLE_DUP_SUBSCRIPTION','setShapeProps','_cursors','APPLY_NON_SEQUENTIAL_REVISION','fillText','OnLineIcon','path','unsubscribe','get','_unitOnClients','ENTITLE_NEED_BILLING_ADDRESS','runId','some','text','425205zMLMnW','addObject','_getScale','selection','OFFLINE','HEADER_MENU','_range','_clearPolling','NOT_FOUND','_docSkeleton','imageSourceType','invokeId','entityInit$','onStarting','START_CALCULATION','ENTITLE_REPORT_LIMIT_EXCEED','addEventListener','_commandService','_createSocketURL','http://www.w3.org/2000/svg','string','parse','url(#$1','defineProperty','_releaseCalculationLimit','find','_hovered','_getMergeRange','search','getCellMatrix','_entities','font','_drawAnchor','_hideTimer','history','_transformPreviousActiveRange','onPointerMove$','_refreshCollabCursors','RemoveColCommandId','body','source','mask','measureText','range','INVITE_CODE_REQUIRED','[LogService\x20Error]:\x20','beforeCommandExecuted','_localeService','_maxFormulaLimit','_eventUnsubscribe','column','loadUnit','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_handleHover','collaboration.single-unit.warning','InsertRangeMoveDownCommandId','_beforeCloseService','YUUMI_RATE_OVER_LIMIT','has','REDEMPTION_USER_REDEEM_TIMES_EXCEED','12NdAcFg','origin','_onCursorUpdate','cursorInfo$','SOCKET_FAILED_RETRY','random','_currentUsage','unhandledrejection','_unitStatus','_drawTextRange','none','getCurrent','_updateSubUnitFromURLParams','getValue','catch','clearInterval','releaseFormulaLimitUrl','sheetID','UniverIcon','replace','off-line-icon','setParam','InsertRangeMoveRightCommandId','executionId','save','_setFormulaLimitStatus','pluginName','url(#on-line-icon_clip0_910_349)','replaceDocRanges','_collabCursorState$','_transformHistoryAndStateStack','top','_shapes','sessionStatus$','WECHAT_HAS_BEEN_BOUND','_anchor','focused$','YUUMI_UNABLE_LOAD_URL','popstate','COMPLETION_FINISHED','show','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_registerRenderDependencies','_themeService','_initCommandExecutedListener','ticket','_taskIds','collab-client.tooltip.reconnect','stack','arc','_initUnhandledRejectionListener','ENTITLE_COUPON_USED_UP','removeParam','_session','_status$','override','assignAColorForMemberID','currentColor','sessionTicket','ENTITLE_CHAT_LIMIT_EXCEED','values','makeDirty','_roomMembers$','Unknown\x20user','moveTo','storage','USERS_LEAVE','getRenderById','transformByState','xlink:href','_ensureSubject','getTypeOfUnitDisposed$','/universer-api/frontend/logs','REDEMPTION_USER_NOT_ELIGIBLE','_init','getItem','_logService','collab-text-range-','TEXT','fillStyle','collabStatus.syncing','hovered','setActiveRange','findNodePositionByCharIndex','getUnitId','INVITE_CODE_ALREADY_BOUND','_handleHeartbeatEvent','_cursorShapes','searchParams','0\x200\x2016\x2016','getUndoRedoMutationParamsCache','on-line-icon','getColorFromTheme','\x20at\x20','_transformService','getCellPositionByOffset','div','_textBubble','getCollabCursors$','_startSheetCollabCursor','1099953yXDeXq','_backgroundColor','getUnit','max','syncEditingCollabCursor','children','_showGuardMessage','eventID','SNAPSHOT_INVALID_SNAPSHOT','_updateURLWithCurrentState','formula.calculation.waiting','_docStateChangeManagerService','_urlService','name','ONLINE','UNIVER_DOC','Loading','_initEntityListener','transformSelections','ENTITLE_USE_COUPON_NOT_1ST_TRADE','closePath','InsertRowCommandId','_initCommandInterceptor','UPDATE_CURSOR','startColumn','totalFormulasToCalculate','getRangePointData','LICENSE_EXPORT_SIZE_EXCEEDED','[CollaborationDataLoaderController]','off-line-icon_clip0_910_343','CONFLICT','LICENSE_MAX_UNITS_EXCEEDED','getRelativeToViewportCoord','error','CLOSE_ROOM','_notificationService','4545kNWeHs','next','blue.400','_configService','code','runOnServer','disableLocalCache','round','REDEMPTION_CODE_HAS_BEEN_CREATED','_setupBeforeClosingHandler','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','ALREADY_EXISTS','MUTATION','formula.calculation.unable','session.connection-failed','then','getUnitStatus$','endColumn','_syncEditingCollabCursorService','_heartbeatTimer','displayName','OTHER_CLIENTS_EDITING','APPLY_REJECT','_getFormulaLimitStatus','LOGIN_FAILED','_handleLeaveEvent','_send','clearTimeout','pipe','PY_RUNTIME_SCRIPT_ERROR','Warning','purple.300','_id','_clearOtherTimers','row','startRow','UNIVER_SHEET','JOIN_ROOM_FAILED','_imageIoService','disposeUnit','_messageService','_onRefRangeChange','evenodd','_toggleOnline','_selfUnitIDs','getSheetId','OTHER_CLIENT_EDITING','red.300','_monkeyPatchLogService','668128BVVxGV','yellow.400','_assignedColors','transformIMECache','collabStatus.notCollab','collabCursorState$','YUUMI_CONNECTOR_URL_NOT_FOUND','PERMISSION_DENIED','forEach','setConfig','_colorIndex','idSuffix','message','setUndoRedoMutationParamsCache','DeleteRangeMoveLeftCommandId','currentTheme$','entries','INVITE_CODE_HAS_BEEN_UES','map','_startCalculationLimit','AWAITING','min','transformMutation','SNAPSHOT_HAS_BEEN_REMOVED','registerRenderModule','YUUMI_ALL_TABLES_IS_INVALID','labelPosition','_checkAndWaitForCalculationPermission','m2Prime','_initStatusListener','1em','selections','roomMembers$','_context','_setupSubUnitSync','1110278RXDpyp','_initWindowErrorListener','getFocusedUnit','univer-flex\x20univer-items-center','_revisionService','_lastResponseTimestamp','_uiPartsService','_docTransformIMECacheService','post','hide','functionsExecutedState','addHandlerCallback','limitInfo','newValue','unitId','defIds','301072seOrKJ','tag','application/json','collabStatus.conflict','subscribeEvent','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','onLocalMutation','UNAUTHENTICATED','onRendered','LICENSE_IMPORT_SIZE_EXCEEDED','_uploadLog','onTransformChange$','stageInfo','unshift','registerBeforeClose','Failed','_removeCollabCursors','_docSyncEditingCollabCursorService','REDEMPTION_CODE_NOT_STARTED','getformulaLimitStatusUrl','redoState','_scheduleSaving','transformStateCache','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','setItem','M0\x200H16V16H0z','init','_memberID','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','with','m1Prime','endRow','event$','_memberService','UNDEFINED','_saveTaskMap','loadOfflineData','_scene','subscribe','translate(.97)','isActive','_document','href','createSocket','ENTITLE_INSUFFICIENT_QUOTA','all','cursorInfo','wsSessionTicketUrl','toString','INVALID_ARGUMENT','pushState','_docClipboardService','_collaborationController','unitID'];_0x19b9=function(){return _0x4f74ce;};return _0x19b9();}class Ke extends _0x4bd602{constructor(){const _0x268c8f=_0x4cb6a4;super(...arguments),_(this,_0x268c8f(0xe4),new Map()),_(this,_0x268c8f(0xec),0x0);}['assignAColorForMemberID'](_0x64a5b){const _0x443cd9=_0x4cb6a4;if(this[_0x443cd9(0xe4)][_0x443cd9(0x282)](_0x64a5b))return this[_0x443cd9(0xe4)][_0x443cd9(0x242)](_0x64a5b);const _0x217d4f=ot[this[_0x443cd9(0xec)]];return this[_0x443cd9(0xec)]=(this[_0x443cd9(0xec)]+0x1)%ot[_0x443cd9(0x179)],this[_0x443cd9(0xe4)][_0x443cd9(0x187)](_0x64a5b,_0x217d4f),_0x217d4f;}}function $t(_0x708da2){const _0x13a1bb=_0x4cb6a4;let _0x3b623b='';for(const _0x31deee of _0x708da2){const {startOffset:_0x779c6f,endOffset:_0x53f11a,isActive:_0x3a9370,rangeType:_0x277faa,segmentId:_0x2543ff,segmentPage:_0xa68d1e}=_0x31deee;_0x3b623b[_0x13a1bb(0x179)]&&(_0x3b623b+=','),_0x3b623b+=_0x779c6f+':'+_0x53f11a+':'+(_0x3a9370?'1':'0')+':'+_0x277faa+':'+_0x2543ff+':'+_0xa68d1e;}return _0x3b623b;}function Ai(_0x3b903c){const _0x264e05=_0x4cb6a4,_0x438b3f=_0x3b903c[_0x264e05(0x17b)](','),_0x476d01=[];for(const _0x16c873 of _0x438b3f){const [_0x36ddff,_0x37a442,_0x1d674c,_0x5baf1e,_0x59920f,_0x20a6d7]=_0x16c873[_0x264e05(0x17b)](':');_0x476d01[_0x264e05(0x163)]({'startOffset':Number(_0x36ddff),'endOffset':Number(_0x37a442),'collapsed':_0x36ddff===_0x37a442,'isActive':_0x1d674c==='1','rangeType':_0x5baf1e===_0x33369f[_0x264e05(0x2d2)]?_0x33369f[_0x264e05(0x2d2)]:_0x33369f[_0x264e05(0x1ce)],'segmentId':typeof _0x59920f==_0x264e05(0x25c)?String(_0x59920f):'','segmentPage':Number(_0x20a6d7!=null?_0x20a6d7:-0x1)});}return _0x476d01[_0x264e05(0x246)](_0xa4c65f=>_0xa4c65f[_0x264e05(0x13d)])||(_0x476d01[0x0][_0x264e05(0x13d)]=!0x0),_0x476d01;}class ze extends _0x387d07{constructor(){const _0x392f46=_0x4cb6a4;super(...arguments),_(this,_0x392f46(0x2a1),new _0x5e0fc0(null)),_(this,_0x392f46(0xe7),this['_collabCursorState$']['asObservable']());}['syncEditingCollabCursor'](_0x28a902){const _0x5a0daf=_0x4cb6a4,{unitID:_0x2cf199,memberID:_0x30e8f6,textRanges:_0x1c4f37}=_0x28a902,_0x5ba09b=$t(_0x1c4f37);if(_0x5ba09b==='')return;const _0x3c56bc={'unitID':_0x2cf199,'memberID':_0x30e8f6,'selection':_0x5ba09b};this[_0x5a0daf(0x2a1)][_0x5a0daf(0x30d)](_0x3c56bc);}}var Pi=Object['getOwnPropertyDescriptor'],wi=(_0x3162bf,_0x5888d8,_0x3db504,_0x166c93)=>{const _0x2ce25b=_0x4cb6a4;for(var _0x5c95c2=_0x166c93>0x1?void 0x0:_0x166c93?Pi(_0x5888d8,_0x3db504):_0x5888d8,_0x2c1e2d=_0x3162bf[_0x2ce25b(0x179)]-0x1,_0x298257;_0x2c1e2d>=0x0;_0x2c1e2d--)(_0x298257=_0x3162bf[_0x2c1e2d])&&(_0x5c95c2=_0x298257(_0x5c95c2)||_0x5c95c2);return _0x5c95c2;},A=(_0x160666,_0x5cc7d1)=>(_0x1b8288,_0x55ec7f)=>_0x5cc7d1(_0x1b8288,_0x55ec7f,_0x160666);const yi=0x12c,$i=0x64;let xe=class extends _0x387d07{constructor(_0x363a75,_0x191ca4,_0xa861d1,_0x576e64,_0x4b8790,_0x1443d7,_0x1c91e8,_0xfa27c0,_0x18df53){const _0x3709b3=_0x4cb6a4;super(),_(this,_0x3709b3(0x235),!0x1),_(this,_0x3709b3(0x2ce),!0x1),_(this,'_cursorInfo$',new _0x5e0fc0(new Map())),_(this,'cursorInfo$',this[_0x3709b3(0x1c2)][_0x3709b3(0x1a7)]()),_(this,'_roomMembers$',new _0x5e0fc0([])),_(this,_0x3709b3(0x102),this['_roomMembers$'][_0x3709b3(0xcd)](_0x4e852b(yi))),_(this,_0x3709b3(0x21c),_0x357798(_0x211d52=>{const _0x4870ba=_0x3709b3,_0x3bcaef={'eventID':_0x4c5b2c['UPDATE_CURSOR'],'data':{'unitID':this[_0x4870ba(0x14a)],'memberID':this[_0x4870ba(0x2b9)][_0x4870ba(0x159)](),'selection':$t(_0x211d52)}};this[_0x4870ba(0x2b9)][_0x4870ba(0x1bb)](_0x3bcaef,this['unitID']);},$i)),(this[_0x3709b3(0x14a)]=_0x363a75,this[_0x3709b3(0x2b9)]=_0x191ca4,this['_injector']=_0xa861d1,this[_0x3709b3(0x154)]=_0x576e64,this[_0x3709b3(0x136)]=_0x4b8790,this[_0x3709b3(0xc3)]=_0x1443d7,this[_0x3709b3(0x2e2)]=_0x1c91e8,this[_0x3709b3(0x168)]=_0xfa27c0,this[_0x3709b3(0x259)]=_0x18df53);}get['cursorInfo'](){const _0x45547b=_0x4cb6a4;return this[_0x45547b(0x1c2)][_0x45547b(0x291)]();}get['roomMembers'](){const _0x4882d5=_0x4cb6a4;return this['_roomMembers$'][_0x4882d5(0x291)]();}['dispose'](){const _0x47654e=_0x4cb6a4;super[_0x47654e(0x17f)](),this[_0x47654e(0x1c2)][_0x47654e(0x30d)](new Map()),this[_0x47654e(0x1c2)][_0x47654e(0x1a5)](),this[_0x47654e(0x2c2)][_0x47654e(0x30d)]([]),this[_0x47654e(0x2c2)][_0x47654e(0x1a5)]();}[_0x4cb6a4(0x12f)](){const _0x44d2dd=_0x4cb6a4;this[_0x44d2dd(0x2ce)]||(this[_0x44d2dd(0x2ce)]=!0x0,this[_0x44d2dd(0x2b9)][_0x44d2dd(0x2a5)][_0x44d2dd(0xcd)](_0x47dffc(this[_0x44d2dd(0x165)]))[_0x44d2dd(0x13b)](_0x29167c=>{const _0x289c56=_0x44d2dd;_0x29167c===_0x2c90eb[_0x289c56(0x2f6)]?this[_0x289c56(0xdc)]():this[_0x289c56(0x157)]();}),this[_0x44d2dd(0x2b9)]['event$'][_0x44d2dd(0xcd)](_0x47dffc(this[_0x44d2dd(0x165)]))[_0x44d2dd(0x13b)](_0x556548=>{const _0x4d04b4=_0x44d2dd,_0x17a944=_0x556548[_0x4d04b4(0x2ef)];_0x17a944===_0x4c5b2c[_0x4d04b4(0x2ff)]&&this[_0x4d04b4(0x286)](_0x556548),_0x17a944===_0x4c5b2c['USERS_LEAVE']&&this[_0x4d04b4(0x1ac)](_0x556548);}),this[_0x44d2dd(0x1b2)](this['_commandService']['onCommandExecuted'](_0x3bb046=>{const _0x5d729e=_0x44d2dd,_0x4e3519=_0x3bb046[_0x5d729e(0x1ff)];_0x4e3519!=null&&this[_0x5d729e(0x235)]&&_0x3bb046['id']===_0x333954['id']&&_0x4e3519['unitId']===this['unitID']&&_0x4e3519[_0x5d729e(0x1d9)]===!0x1&&_0x4e3519[_0x5d729e(0x1f9)][_0x5d729e(0x179)]>0x0&&this[_0x5d729e(0x21c)](_0x4e3519[_0x5d729e(0x1f9)]);})),this[_0x44d2dd(0xc3)]['collabCursorState$'][_0x44d2dd(0xcd)](_0x47dffc(this[_0x44d2dd(0x165)]))['subscribe'](_0x9b886=>{const _0x10bf2=_0x44d2dd;if((_0x9b886==null?void 0x0:_0x9b886[_0x10bf2(0x14a)])!==this[_0x10bf2(0x14a)])return;const _0x53dce7={'eventID':_0x4c5b2c[_0x10bf2(0x2ff)],'data':_0x9b886};this['_onCursorUpdate'](_0x53dce7);}),this[_0x44d2dd(0x1b2)](this[_0x44d2dd(0x259)][_0x44d2dd(0x169)](_0x134ace=>{const _0x10957d=_0x44d2dd;if(_0x134ace[_0x10957d(0x1ff)]==null)return;const _0x3494dc=_0x134ace['params'];if(_0x134ace['id']!==_0x1bbb72['id']||_0x3494dc[_0x10957d(0x113)]!==this['unitID'])return;const _0x521358={'id':_0x10957d(0x1a0),'params':_0x3494dc},_0x58aaaf=this[_0x10957d(0x143)];for(const [_0x3b38e1,_0x1d67ff]of _0x58aaaf){const _0x3604dc={'id':_0x10957d(0x1a0),'params':{'unitId':this[_0x10957d(0x14a)],'actions':null,'textRanges':_0x1d67ff[_0x10957d(0x1f9)]}},_0x3707cd=this['_transformService'][_0x10957d(0xf8)](_0x521358,_0x3604dc,!0x1);if(_0x36a568(_0x3707cd))throw _0x3707cd[_0x10957d(0x309)];_0x58aaaf[_0x10957d(0x187)](_0x3b38e1,{..._0x1d67ff,'ranges':_0x3707cd[_0x10957d(0xfe)][_0x10957d(0x1ff)][_0x10957d(0x15e)]});}queueMicrotask(()=>{const _0x5ae115=_0x10957d;this[_0x5ae115(0x1c2)]['next'](_0x58aaaf);});})));}['_onCursorUpdate'](_0x19771c){const _0x449e4c=_0x4cb6a4;var _0x2203da,_0x5258fe;const {memberID:_0x314927,selection:_0x299111}=_0x19771c[_0x449e4c(0x18b)],_0x3395a9=Ai(_0x299111),_0x4b5176=(_0x5258fe=(_0x2203da=this[_0x449e4c(0x136)][_0x449e4c(0x17d)](this['unitID'],_0x314927))==null?void 0x0:_0x2203da[_0x449e4c(0x2f5)])!=null?_0x5258fe:_0x449e4c(0x2c3),_0x2284dc={'color':this[_0x449e4c(0x154)]['assignAColorForMemberID'](_0x314927),'name':_0x4b5176,'ranges':_0x3395a9},_0x1ef1a6=this[_0x449e4c(0x143)];_0x1ef1a6[_0x449e4c(0x187)](_0x314927,_0x2284dc),this['_cursorInfo$'][_0x449e4c(0x30d)](_0x1ef1a6);}[_0x4cb6a4(0x1ac)](_0x21746f){const _0x2ed2ec=_0x4cb6a4,{memberID:_0x293be5}=_0x21746f['data'],_0x5eaa7e=this[_0x2ed2ec(0x143)];_0x5eaa7e['delete'](_0x293be5),this['_cursorInfo$']['next'](_0x5eaa7e);}[_0x4cb6a4(0xdc)](){const _0x247e30=_0x4cb6a4;var _0x148c39;if(this['_online']=!0x0,((_0x148c39=this[_0x247e30(0x168)][_0x247e30(0x107)]())==null?void 0x0:_0x148c39['getUnitId']())!==this[_0x247e30(0x14a)])return;const _0x106736=this[_0x247e30(0x14d)][_0x247e30(0x242)](_0xee7088)[_0x247e30(0x190)]();Array[_0x247e30(0x22e)](_0x106736)&&_0x106736[_0x247e30(0x179)]>0x0&&this[_0x247e30(0x21c)](_0x106736);}['_toggleOffline'](){this['_online']=!0x1;}};xe=wi([A(0x2,_0x460697(_0x307bfd)),A(0x3,_0x460697(Ke)),A(0x4,_0x460697(_0xc5b845)),A(0x5,_0x460697(ze)),A(0x6,_0x480862),A(0x7,_0x14cde1),A(0x8,_0x29d21c)],xe);var xi=Object[_0x4cb6a4(0x1ed)],Bi=(_0x59f70e,_0x52a711,_0x246e8b,_0x3aeb25)=>{const _0x47018b=_0x4cb6a4;for(var _0x240e4b=_0x3aeb25>0x1?void 0x0:_0x3aeb25?xi(_0x52a711,_0x246e8b):_0x52a711,_0x42b2ee=_0x59f70e[_0x47018b(0x179)]-0x1,_0xade1f8;_0x42b2ee>=0x0;_0x42b2ee--)(_0xade1f8=_0x59f70e[_0x42b2ee])&&(_0x240e4b=_0xade1f8(_0x240e4b)||_0x240e4b);return _0x240e4b;},B=(_0x86b5c0,_0xd7f1d3)=>(_0x40239f,_0x433927)=>_0xd7f1d3(_0x40239f,_0x433927,_0x86b5c0);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x4e61ac=[],_0x560d25=!0x1;return _0x4eb3aa=>{const _0x5747e7=_0x3956;_0x4e61ac[_0x5747e7(0x163)](_0x4eb3aa),_0x560d25||(_0x560d25=!0x0,setTimeout(()=>{const _0x777213=_0x5747e7;_0x4e61ac[_0x777213(0xea)](_0x46231a=>_0x46231a()),_0x4e61ac=[],_0x560d25=!0x1;}));};};let Be=class extends _0x387d07{constructor(_0x49a89c,_0x25befc,_0x419444,_0x289b4c,_0x539c9a,_0x286e74,_0x420582,_0x3fd42d){const _0x242c0a=_0x4cb6a4;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,_0x242c0a(0x1c2),new _0x5e0fc0(new Map())),_(this,_0x242c0a(0x287),this['_cursorInfo$'][_0x242c0a(0x1a7)]()),_(this,_0x242c0a(0x2c2),new _0x5e0fc0([])),_(this,'roomMembers$',this['_roomMembers$'][_0x242c0a(0xcd)](_0x4e852b(Fi))),_(this,'_updateLocalCursor',_0x357798((_0x289c39,_0x5a15a1)=>{const _0x4a2b54=_0x242c0a,_0x38907d={'eventID':_0x4c5b2c[_0x4a2b54(0x2ff)],'data':{'unitID':this[_0x4a2b54(0x14a)],'memberID':this[_0x4a2b54(0x2b9)]['getMemberID'](),'selection':_0x3ea7cf(_0x289c39,_0x5a15a1[_0x4a2b54(0x273)])}};this['_session'][_0x4a2b54(0x1bb)](_0x38907d,this[_0x4a2b54(0x14a)]);},ki)),(this[_0x242c0a(0x14a)]=_0x49a89c,this['_session']=_0x25befc,this[_0x242c0a(0x14d)]=_0x419444,this[_0x242c0a(0x154)]=_0x289b4c,this[_0x242c0a(0x136)]=_0x539c9a,this[_0x242c0a(0x168)]=_0x286e74,this[_0x242c0a(0x259)]=_0x420582,this[_0x242c0a(0x1fd)]=_0x3fd42d);}get[_0x4cb6a4(0x143)](){const _0x2652bd=_0x4cb6a4;return this[_0x2652bd(0x1c2)]['getValue']();}get['roomMembers'](){const _0x194e8e=_0x4cb6a4;return this[_0x194e8e(0x2c2)][_0x194e8e(0x291)]();}[_0x4cb6a4(0x17f)](){const _0x11c985=_0x4cb6a4;super[_0x11c985(0x17f)](),this['_cursorInfo$'][_0x11c985(0x30d)](new Map()),this[_0x11c985(0x1c2)][_0x11c985(0x1a5)](),this[_0x11c985(0x2c2)]['next']([]),this[_0x11c985(0x2c2)][_0x11c985(0x1a5)]();}[_0x4cb6a4(0x12f)](){const _0x54a3a2=_0x4cb6a4;this[_0x54a3a2(0x2ce)]||(this[_0x54a3a2(0x2ce)]=!0x0,this['_session'][_0x54a3a2(0x2a5)][_0x54a3a2(0xcd)](_0x47dffc(this[_0x54a3a2(0x165)]))[_0x54a3a2(0x13b)](_0xd001ed=>{const _0x4bb15a=_0x54a3a2;_0xd001ed===_0x2c90eb[_0x4bb15a(0x2f6)]?this[_0x4bb15a(0xdc)]():this[_0x4bb15a(0x157)]();}),this[_0x54a3a2(0x2b9)][_0x54a3a2(0x135)][_0x54a3a2(0xcd)](_0x47dffc(this[_0x54a3a2(0x165)]))[_0x54a3a2(0x13b)](_0xaa36a9=>{const _0x4f233e=_0x54a3a2,_0x313680=_0xaa36a9[_0x4f233e(0x2ef)];_0x313680===_0x4c5b2c[_0x4f233e(0x2ff)]&&this['_onCursorUpdate'](_0xaa36a9),_0x313680===_0x4c5b2c[_0x4f233e(0x2c6)]&&this[_0x4f233e(0x1ac)](_0xaa36a9);}),this[_0x54a3a2(0xda)](),this[_0x54a3a2(0x1b2)](this[_0x54a3a2(0x259)][_0x54a3a2(0x169)](_0x34ef3a=>{const _0x1e2a2a=_0x54a3a2;if(this['_online']&&_0x34ef3a['id']===_0x387c8e['id']&&_0x34ef3a['params'][_0x1e2a2a(0x113)]===this['unitID']){const _0x56b559=_0x34ef3a[_0x1e2a2a(0x1ff)];this[_0x1e2a2a(0x21c)](_0x56b559[_0x1e2a2a(0x1ba)],_0x56b559[_0x1e2a2a(0x101)][0x0]);}})));}['_onCursorUpdate'](_0x59016d){const _0x705507=_0x4cb6a4;var _0x435a58,_0x2e9a82;const {memberID:_0x5c12ce,selection:_0xdb6d58}=_0x59016d[_0x705507(0x18b)],{sheetName:_0x14a8dd,range:_0x303c67}=_0x298d49(_0xdb6d58),_0x29633a={'name':(_0x2e9a82=(_0x435a58=this[_0x705507(0x136)][_0x705507(0x17d)](this[_0x705507(0x14a)],_0x5c12ce))==null?void 0x0:_0x435a58[_0x705507(0x2f5)])!=null?_0x2e9a82:_0x705507(0x2c3),'range':this[_0x705507(0x263)](_0x14a8dd,_0x303c67),'sheetID':_0x14a8dd,'color':this[_0x705507(0x154)][_0x705507(0x2bc)](_0x5c12ce),'selection':_0xdb6d58},_0x304030=this[_0x705507(0x143)];_0x304030[_0x705507(0x187)](_0x5c12ce,_0x29633a),this[_0x705507(0x1c2)]['next'](_0x304030);}[_0x4cb6a4(0x1ac)](_0xcf5248){const _0x401777=_0x4cb6a4,{memberID:_0x7ece06}=_0xcf5248[_0x401777(0x18b)],_0x3ec407=this[_0x401777(0x143)];_0x3ec407[_0x401777(0x220)](_0x7ece06),this[_0x401777(0x1c2)][_0x401777(0x30d)](_0x3ec407);}[_0x4cb6a4(0x263)](_0x57b89e,_0x2e9cb7){const _0x36c7ca=_0x4cb6a4;var _0x5bb4c5,_0x14f9a6;const _0x21fede=(_0x14f9a6=(_0x5bb4c5=this[_0x36c7ca(0x168)][_0x36c7ca(0x1b9)](this[_0x36c7ca(0x14a)]))==null?void 0x0:_0x5bb4c5['getSheetBySheetId'](_0x57b89e))==null?void 0x0:_0x14f9a6['getMergeData']();return(_0x21fede==null?void 0x0:_0x21fede[_0x36c7ca(0x261)](_0x4fb74e=>_0x520fac[_0x36c7ca(0x186)](_0x4fb74e,_0x2e9cb7)))||_0x2e9cb7;}[_0x4cb6a4(0xda)](){const _0x1233f2=_0x4cb6a4,_0x50a5d2=new _0x4dfaa7(),_0x3ad1cb=Hi(),_0x213f8a=()=>{const _0x8277c5=_0x3956;_0x50a5d2['dispose']();const _0x26c417=(_0x2371b2,_0xbf24de,_0x48f9f1,_0x25685f)=>{const _0x2324f5=_0x3956;let _0x310409=[];switch(_0x2371b2['id']){case _0x2319c3[_0x2324f5(0xf0)]:{_0x310409=_0x2487a0(_0x2371b2,_0x25685f);break;}case _0x2319c3['DeleteRangeMoveUpCommandId']:{_0x310409=_0x1dc24c(_0x2371b2,_0x25685f);break;}case _0x2319c3['InsertColCommandId']:{_0x310409=_0x513924(_0x2371b2,_0x25685f);break;}case _0x2319c3[_0x2324f5(0x27f)]:{_0x310409=_0x2ea622(_0x2371b2,_0x25685f);break;}case _0x2319c3[_0x2324f5(0x29a)]:{_0x310409=_0xa4f916(_0x2371b2,_0x25685f);break;}case _0x2319c3[_0x2324f5(0x2fd)]:{_0x310409=_0x1830b5(_0x2371b2,_0x25685f);break;}case _0x2319c3[_0x2324f5(0x173)]:{_0x310409=_0x83a2ba(_0x2371b2,_0x25685f);break;}case _0x2319c3[_0x2324f5(0x26e)]:{_0x310409=_0x30f4f8(_0x2371b2,_0x25685f);break;}case _0x2319c3['RemoveRowCommandId']:{_0x310409=_0x53f6fa(_0x2371b2,_0x25685f);break;}}const _0x461628=_0x848d32(_0x310409,_0x25685f),_0x499647=this[_0x2324f5(0x143)]['get'](_0xbf24de);if(_0x499647&&_0x461628){const _0x1a9a56={..._0x499647,'range':_0x461628};this['cursorInfo'][_0x2324f5(0x187)](_0xbf24de,_0x1a9a56),_0x3ad1cb(()=>{const _0x7cd0e5=_0x2324f5,_0x332713=this['_refRangeService']['registerRefRange'](_0x461628,_0x28574e=>(_0x332713['dispose'](),_0x26c417(_0x28574e,_0xbf24de,_0x48f9f1,_0x461628)));_0x50a5d2[_0x7cd0e5(0x205)](_0x332713);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x8277c5(0xea)]((_0x452cee,_0x261e17)=>{const _0x2b0911=_0x8277c5,{range:_0x53987d,sheetID:_0xec9178}=_0x452cee,_0x4a445a=this[_0x2b0911(0x1fd)]['registerRefRange'](_0x53987d,_0x20628c=>(_0x4a445a['dispose'](),_0x26c417(_0x20628c,_0x261e17,_0xec9178,_0x53987d)));_0x50a5d2[_0x2b0911(0x205)](_0x4a445a);});};this[_0x1233f2(0x1b2)](_0xb8c0(this[_0x1233f2(0x1c2)][_0x1233f2(0x13b)](()=>{_0x213f8a();})));}['_toggleOnline'](){const _0x559f8a=_0x4cb6a4;var _0x529916,_0x530b7a;if(this[_0x559f8a(0x235)]=!0x0,((_0x529916=this[_0x559f8a(0x168)][_0x559f8a(0x107)]())==null?void 0x0:_0x529916[_0x559f8a(0x2d8)]())!==this['unitID'])return;const _0x178c15=(_0x530b7a=this[_0x559f8a(0x14d)][_0x559f8a(0x242)](_0x3e5f4d)['getCurrentSelections']())==null?void 0x0:_0x530b7a[0x0],_0x52f87f=this[_0x559f8a(0x168)]['getCurrentUnitForType'](_0xaccedf[_0x559f8a(0xd5)])[_0x559f8a(0x222)]();_0x178c15&&_0x52f87f&&this[_0x559f8a(0x21c)](_0x52f87f[_0x559f8a(0xde)](),_0x178c15);}[_0x4cb6a4(0x157)](){const _0x5c5d32=_0x4cb6a4;this[_0x5c5d32(0x235)]=!0x1;}};Be=Bi([B(0x2,_0x460697(_0x307bfd)),B(0x3,_0x460697(Ke)),B(0x4,_0x460697(_0xc5b845)),B(0x5,_0x14cde1),B(0x6,_0x29d21c),B(0x7,_0x460697(_0x5cb60d))],Be);var Yi=Object[_0x4cb6a4(0x1ed)],Wi=(_0x5db86c,_0x460629,_0x2144d4,_0xb82e33)=>{const _0x419101=_0x4cb6a4;for(var _0x329473=_0xb82e33>0x1?void 0x0:_0xb82e33?Yi(_0x460629,_0x2144d4):_0x460629,_0xc78dde=_0x5db86c[_0x419101(0x179)]-0x1,_0xb1548c;_0xc78dde>=0x0;_0xc78dde--)(_0xb1548c=_0x5db86c[_0xc78dde])&&(_0x329473=_0xb1548c(_0x329473)||_0x329473);return _0x329473;},Ce=(_0x434fd2,_0x416ad2)=>(_0x3149c8,_0x57a3cb)=>_0x416ad2(_0x3149c8,_0x57a3cb,_0x434fd2);let H=class extends _0x387d07{constructor(_0x5b3159,_0x538fd5,_0x37a60b){const _0x314c95=_0x4cb6a4;super(),_(this,'_entities',new Map()),_(this,_0x314c95(0x1b1),new _0x45098e()),(this[_0x314c95(0x168)]=_0x5b3159,this[_0x314c95(0x14d)]=_0x538fd5,this[_0x314c95(0x1ea)]=_0x37a60b,this[_0x314c95(0x2ce)]());}[_0x4cb6a4(0x17f)](){const _0x8a674e=_0x4cb6a4;super[_0x8a674e(0x17f)](),this[_0x8a674e(0x1b1)][_0x8a674e(0x1a5)](),this[_0x8a674e(0x266)]['forEach'](_0x20f3f3=>_0x20f3f3['dispose']());}[_0x4cb6a4(0x2e6)](_0x38f29f){const _0xf2d3c5=_0x4cb6a4;return this['_entities'][_0xf2d3c5(0x282)](_0x38f29f)?this['_entities'][_0xf2d3c5(0x242)](_0x38f29f)['cursorInfo$']:this[_0xf2d3c5(0x1b1)][_0xf2d3c5(0xcd)](_0xbd2e46(_0x2fdbc1=>_0x2fdbc1['unitID']===_0x38f29f),_0x2411b6(_0x24bf0e=>_0x24bf0e['cursorInfo$']));}[_0x4cb6a4(0x2ce)](){const _0x418b60=_0x4cb6a4;this[_0x418b60(0x168)][_0x418b60(0x221)](_0xaccedf[_0x418b60(0xd5)])[_0x418b60(0xcd)](_0x47dffc(this['dispose$']))[_0x418b60(0x13b)](async _0x496c98=>{const _0x376cdc=_0x418b60,_0xf081b2=_0x496c98['getUnitId'](),_0x41ecf8=await this[_0x376cdc(0x2e7)](_0xf081b2);this[_0x376cdc(0x1b1)][_0x376cdc(0x30d)](_0x41ecf8),this[_0x376cdc(0x266)][_0x376cdc(0x187)](_0xf081b2,_0x41ecf8);}),this[_0x418b60(0x168)][_0x418b60(0x221)](_0xaccedf[_0x418b60(0x2f7)])['pipe'](_0x47dffc(this[_0x418b60(0x165)]))[_0x418b60(0xcd)](_0xbd2e46(_0x639bce=>!_0x639bce[_0x418b60(0x2d8)]()['startsWith']('__')))[_0x418b60(0x13b)](async _0xefe889=>{const _0x7ba80b=_0x418b60,_0x373b99=_0xefe889['getUnitId'](),_0x5992b3=await this[_0x7ba80b(0x1cd)](_0x373b99);this[_0x7ba80b(0x1b1)][_0x7ba80b(0x30d)](_0x5992b3),this[_0x7ba80b(0x266)][_0x7ba80b(0x187)](_0x373b99,_0x5992b3);}),_0xf48905(this[_0x418b60(0x168)][_0x418b60(0x2cb)](_0xaccedf[_0x418b60(0x2f7)]),this[_0x418b60(0x168)][_0x418b60(0x2cb)](_0xaccedf[_0x418b60(0xd5)]))[_0x418b60(0xcd)](_0x47dffc(this[_0x418b60(0x165)]))[_0x418b60(0x13b)](_0x4162bd=>{const _0x3cf991=_0x418b60,_0x300ca1=_0x4162bd[_0x3cf991(0x2d8)](),_0xa4cbd1=this[_0x3cf991(0x266)][_0x3cf991(0x242)](_0x300ca1);_0xa4cbd1&&(_0xa4cbd1[_0x3cf991(0x17f)](),this[_0x3cf991(0x266)]['delete'](_0x300ca1));});}async[_0x4cb6a4(0x2e7)](_0x581fc8){const _0x4caf80=_0x4cb6a4,_0x192876=await this[_0x4caf80(0x1ea)][_0x4caf80(0x1d4)](_0x581fc8),_0x597dbf=this[_0x4caf80(0x14d)][_0x4caf80(0x1e7)](Be,_0x581fc8,_0x192876);return _0x597dbf[_0x4caf80(0x12f)](),_0x597dbf;}async['_startDocCollabCursor'](_0xce0ecd){const _0x17a237=_0x4cb6a4,_0x5a05d0=await this[_0x17a237(0x1ea)][_0x17a237(0x1d4)](_0xce0ecd),_0x9f1c45=this[_0x17a237(0x14d)][_0x17a237(0x1e7)](xe,_0xce0ecd,_0x5a05d0);return _0x9f1c45[_0x17a237(0x12f)](),_0x9f1c45;}};H=Wi([Ce(0x0,_0x14cde1),Ce(0x1,_0x460697(_0x307bfd)),Ce(0x2,_0x460697(_0x225480))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x55dc62,_0x251a82){const _0x1db0fa=_0x4cb6a4;let {radius:_0x219438,width:_0x240ef7,height:_0x8e4cd}=_0x251a82;_0x219438=_0x219438!=null?_0x219438:0x0,_0x240ef7=_0x240ef7!=null?_0x240ef7:0x1e,_0x8e4cd=_0x8e4cd!=null?_0x8e4cd:0x1e;let _0x25dbb1=0x0,_0x183998=0x0,_0x2ca7c3=0x0;_0x25dbb1=_0x183998=_0x2ca7c3=Math[_0x1db0fa(0xf7)](_0x219438,_0x240ef7/0x2,_0x8e4cd/0x2),_0x55dc62[_0x1db0fa(0x1b8)](),_0x55dc62[_0x1db0fa(0x2c4)](_0x25dbb1,0x0),_0x55dc62[_0x1db0fa(0x15a)](_0x240ef7-_0x183998,0x0),_0x55dc62[_0x1db0fa(0x2b5)](_0x240ef7-_0x183998,_0x183998,_0x183998,Math['PI']*0x3/0x2,0x0,!0x1),_0x55dc62[_0x1db0fa(0x15a)](_0x240ef7,_0x8e4cd-_0x2ca7c3),_0x55dc62[_0x1db0fa(0x2b5)](_0x240ef7-_0x2ca7c3,_0x8e4cd-_0x2ca7c3,_0x2ca7c3,0x0,Math['PI']/0x2,!0x1),_0x55dc62[_0x1db0fa(0x15a)](0x0,_0x8e4cd),_0x55dc62['lineTo'](0x0,_0x25dbb1),_0x55dc62[_0x1db0fa(0x2b5)](_0x25dbb1,_0x25dbb1,_0x25dbb1,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x55dc62[_0x1db0fa(0x2fc)](),_0x251a82[_0x1db0fa(0x22b)]&&(_0x55dc62[_0x1db0fa(0x29c)](),_0x55dc62['fillStyle']=_0x251a82['fill'],_0x251a82[_0x1db0fa(0x1ad)]===_0x1db0fa(0xdb)?_0x55dc62[_0x1db0fa(0x22b)](_0x1db0fa(0xdb)):_0x55dc62['fill'](),_0x55dc62[_0x1db0fa(0x1e0)]());}class ve extends _0x18811c{constructor(_0x1fd34d,_0x468a5c){const _0x3529b5=_0x4cb6a4;super(_0x1fd34d,_0x468a5c),_(this,_0x3529b5(0x217)),_(this,_0x3529b5(0x247)),(this[_0x3529b5(0x217)]=_0x468a5c==null?void 0x0:_0x468a5c['color'],this['text']=_0x468a5c==null?void 0x0:_0x468a5c[_0x3529b5(0x247)]);}static[_0x4cb6a4(0x1aa)](_0x29edd9,_0x38120a){const _0x309352=_0x4cb6a4,{text:_0x2921b7,color:_0x127ca3}=_0x38120a;_0x29edd9['save'](),_0x29edd9[_0x309352(0x267)]=_0x309352(0x1df);const _0x53aff3=_0x29edd9[_0x309352(0x272)](_0x2921b7)[_0x309352(0x20f)],_0x56a63f=Math[_0x309352(0xf7)](_0x53aff3+0x2*Re,at);ji(_0x29edd9,{'height':Q,'radius':0x4,'width':_0x56a63f,'fill':_0x127ca3}),_0x29edd9[_0x309352(0x2d3)]=_0x309352(0x166);const _0x3ce437=Re,_0x315a4b=Q-Vi,_0x919b4f=at-0x2*Re;if(_0x53aff3>_0x919b4f){let _0x572f7e='',_0x5110cb=0x0;for(const _0x58f27d of _0x2921b7){const _0x2db751=_0x29edd9[_0x309352(0x272)](_0x58f27d)[_0x309352(0x20f)];if(_0x5110cb+_0x2db751<=_0x919b4f-_0x29edd9['measureText']('...')[_0x309352(0x20f)])_0x572f7e+=_0x58f27d,_0x5110cb+=_0x2db751;else{_0x572f7e+='...';break;}}_0x29edd9[_0x309352(0x23e)](_0x572f7e,_0x3ce437,_0x315a4b);}else _0x29edd9[_0x309352(0x23e)](_0x2921b7,_0x3ce437,_0x315a4b);_0x29edd9[_0x309352(0x1e0)]();}[_0x4cb6a4(0x227)](_0x125aba){const _0x580c2f=_0x4cb6a4;ve[_0x580c2f(0x1aa)](_0x125aba,this);}}const De=_0x4cb6a4(0x1e2),Xi=_0x4cb6a4(0x2d1),Gi='collab-rect-range-',z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x4cb6a4(0x153);class ct{constructor(_0x823c3a,_0x597d6e,_0x3702a3,_0x1262f1){const _0xb251c2=_0x4cb6a4;_(this,'_shapes',[]),_(this,_0xb251c2(0x2a7),null),_(this,'_textBubble',null),_(this,_0xb251c2(0x1ca),null),_(this,_0xb251c2(0x269),null),_(this,_0xb251c2(0x279),null),(this['_cursor']=_0x823c3a,this[_0xb251c2(0x13a)]=_0x597d6e,this[_0xb251c2(0x251)]=_0x3702a3,this[_0xb251c2(0x13e)]=_0x1262f1,this[_0xb251c2(0x184)]());}set[_0x4cb6a4(0x198)](_0x1a769d){const _0x1f16ab=_0x4cb6a4;_0x1a769d?(this[_0x1f16ab(0x1ca)]&&this['_anchorDot'][_0x1f16ab(0x10e)](),this[_0x1f16ab(0x2e5)]&&this[_0x1f16ab(0x2e5)]['show']()):(this[_0x1f16ab(0x1ca)]&&this[_0x1f16ab(0x1ca)][_0x1f16ab(0x2ac)](),this[_0x1f16ab(0x2e5)]&&this[_0x1f16ab(0x2e5)]['hide']());}[_0x4cb6a4(0x17f)](){const _0x20dc63=_0x4cb6a4;for(const _0x2cf2d7 of this[_0x20dc63(0x2a4)])_0x2cf2d7[_0x20dc63(0x17f)]();this[_0x20dc63(0x2e5)]&&this['_textBubble'][_0x20dc63(0x17f)](),this[_0x20dc63(0x1ca)]&&this['_anchorDot'][_0x20dc63(0x17f)](),this[_0x20dc63(0x2a7)]&&this['_anchor'][_0x20dc63(0x17f)](),this['_eventUnsubscribe']&&this[_0x20dc63(0x279)]();}[_0x4cb6a4(0x184)](){const _0xe8146e=_0x4cb6a4;var _0x2afbd1;const {_docSkeleton:_0x556264,_document:_0xac0bc6}=this,{color:_0x4e2093,name:_0x4cb53b,ranges:_0x218003}=this['_cursor'],_0x3027bf=_0xac0bc6['getOffsetConfig'](),{docsLeft:_0x40f787,docsTop:_0x5eaa8c}=_0x3027bf,_0x38ee02=new _0x14f0d6(_0x3027bf,_0x556264);for(const {startOffset:_0x5656f1,endOffset:_0x1f8dda,rangeType:_0x490590,segmentId:_0x18d712,segmentPage:_0x49ee79,collapsed:_0x408c34,isActive:_0x2d1f1c}of _0x218003){const _0x4d0185=_0x556264[_0xe8146e(0x2d7)](_0x5656f1,!0x0,_0x18d712,_0x49ee79);let _0x46b0cc=_0x556264[_0xe8146e(0x2d7)](_0x1f8dda,!0x0,_0x18d712,_0x49ee79);if(_0x46b0cc==null&&(_0x46b0cc=_0x556264[_0xe8146e(0x2d7)](_0x1f8dda-0x1,!0x1,_0x18d712,_0x49ee79)),_0x2d1f1c){const {contentBoxPointGroup:_0x206111}=_0x38ee02[_0xe8146e(0x302)](_0x46b0cc,_0x46b0cc);if(_0x206111[_0xe8146e(0x179)]===0x0)continue;this['_drawAnchor'](_0x4e2093,_0x206111,_0x40f787,_0x5eaa8c,_0x4cb53b),this[_0xe8146e(0x279)]=this['_handleHover']();}if(_0x4d0185&&_0x46b0cc){if(_0x490590===_0x33369f['RECT']){const _0x273770=new _0x179d08(_0x3027bf,_0x556264),{pointGroup:_0x378a4c}=(_0x2afbd1=_0x273770[_0xe8146e(0x302)](_0x4d0185,_0x46b0cc))!=null?_0x2afbd1:{};if(_0x378a4c==null||_0x378a4c[_0xe8146e(0x179)]===0x0)continue;this[_0xe8146e(0x195)](_0x4e2093,_0x378a4c,_0x40f787,_0x5eaa8c);}else{if(!_0x408c34){const {borderBoxPointGroup:_0x15f456}=_0x38ee02[_0xe8146e(0x302)](_0x4d0185,_0x46b0cc);if(_0x15f456[_0xe8146e(0x179)]===0x0)continue;this[_0xe8146e(0x28d)](_0x4e2093,_0x15f456,_0x40f787,_0x5eaa8c);}}}}}[_0x4cb6a4(0x268)](_0x34f678,_0x508434,_0x8c24f8,_0x4f64a7,_0x1d6fa1){const _0x5f48d9=_0x4cb6a4,_0x5b24fc=this[_0x5f48d9(0x1b3)](_0x508434),{left:_0x57b174,top:_0x1a6862,height:_0x24cce2}=_0x5b24fc,_0x4869ca=this[_0x5f48d9(0x24a)](),_0x5e810f=zi/_0x4869ca,_0x20adde=new _0x30b3bc(De+_0x3bf90d(z),{'left':_0x57b174+_0x8c24f8-_0x5e810f,'top':_0x1a6862+_0x4f64a7,'height':_0x24cce2,'width':Ki,'fill':_0x34f678||_0x3dd5c1(_0x4887fc[_0x5f48d9(0x19a)],0x0),'strokeWidth':_0x5e810f,'stroke':Ji,'evented':!0x0});this['_anchor']=_0x20adde,this[_0x5f48d9(0x13a)][_0x5f48d9(0x249)](_0x20adde,_0x536f28);const _0x323b0d=new _0x30b3bc(De+_0x3bf90d(z),{'left':_0x57b174+_0x8c24f8-_0x5e810f,'top':_0x1a6862+_0x4f64a7-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x34f678||_0x3dd5c1(_0x4887fc[_0x5f48d9(0x19a)],0x0),'strokeWidth':0x0,'stroke':_0x34f678||_0x3dd5c1(_0x4887fc[_0x5f48d9(0x19a)],0x0),'evented':!0x1});this[_0x5f48d9(0x1ca)]=_0x323b0d,this[_0x5f48d9(0x13a)][_0x5f48d9(0x249)](_0x323b0d,_0x536f28);const _0x2b01fb=new ve(De+_0x3bf90d(z),{'left':_0x57b174+_0x8c24f8-_0x5e810f,'top':_0x1a6862+_0x4f64a7-Q,'text':_0x1d6fa1,'color':_0x34f678});this[_0x5f48d9(0x2e5)]=_0x2b01fb,this[_0x5f48d9(0x13a)][_0x5f48d9(0x249)](_0x2b01fb,_0x536f28),this[_0x5f48d9(0x198)]=!0x1;}[_0x4cb6a4(0x27d)](){const _0x28b39c=_0x4cb6a4,_0x45447c=this['_anchor']['onPointerEnter$'][_0x28b39c(0x119)](()=>{this['_hover']=!0x0;}),_0xd5d7b6=this[_0x28b39c(0x2a7)]['onPointerLeave$'][_0x28b39c(0x119)](()=>{const _0x37901f=_0x28b39c;this[_0x37901f(0x269)]&&clearTimeout(this['_hideTimer']),this[_0x37901f(0x269)]=setTimeout(()=>{const _0x151e7f=_0x37901f;this[_0x151e7f(0x198)]=!0x1;},0x7d0);});return()=>{const _0x4bd721=_0x28b39c;_0x45447c[_0x4bd721(0x241)](),_0xd5d7b6[_0x4bd721(0x241)]();};}[_0x4cb6a4(0x28d)](_0x479b0e,_0x237a12,_0x1ca9b9,_0x6dacda){const _0x478b2e=_0x4cb6a4,_0x1218eb=new _0x3db1df(_0x479b0e)[_0x478b2e(0x16a)](0.2)[_0x478b2e(0x151)](),_0x3ef8bd=new _0x4ac39(Xi+_0x3bf90d(z),{'pointsGroup':_0x237a12,'fill':_0x1218eb||_0x3dd5c1(_0x4887fc[_0x478b2e(0x19a)],0.2),'left':_0x1ca9b9,'top':_0x6dacda,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x478b2e(0x2a4)][_0x478b2e(0x163)](_0x3ef8bd),this[_0x478b2e(0x13a)][_0x478b2e(0x249)](_0x3ef8bd,_0x536f28);}[_0x4cb6a4(0x195)](_0x55fd4a,_0x2b3c69,_0x3fb6dc,_0x44ca96){const _0x2b488b=_0x4cb6a4,_0x31a5e0=new _0x3db1df(_0x55fd4a)[_0x2b488b(0x16a)](0.2)['toRgbString'](),_0x531b68=new _0x4ac39(Gi+_0x3bf90d(z),{'pointsGroup':_0x2b3c69,'fill':_0x31a5e0||_0x3dd5c1(_0x4887fc[_0x2b488b(0x19a)],0.2),'left':_0x3fb6dc,'top':_0x44ca96,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2b488b(0x2a4)][_0x2b488b(0x163)](_0x531b68),this[_0x2b488b(0x13a)][_0x2b488b(0x249)](_0x531b68,_0x536f28);}[_0x4cb6a4(0x1b3)](_0x320e54){const _0x5d7fbe=_0x320e54[0x0],_0x157718=_0x5d7fbe[0x0],_0x34f4e1=_0x5d7fbe[0x2],{x:_0x20bb6f,y:_0x4a997d}=_0x157718,{x:_0x2d2980,y:_0x2bffc9}=_0x34f4e1;return{'left':_0x20bb6f,'top':_0x4a997d,'width':_0x2d2980-_0x20bb6f,'height':_0x2bffc9-_0x4a997d};}[_0x4cb6a4(0x24a)](){const _0xdfa691=_0x4cb6a4,{scaleX:_0x19f144,scaleY:_0xd18c90}=this['_scene'][_0xdfa691(0x14e)]();return Math[_0xdfa691(0x2eb)](_0x19f144,_0xd18c90);}}var Zi=Object[_0x4cb6a4(0x1ed)],Qi=(_0x2f456c,_0x1354ac,_0x24b5bd,_0x32d772)=>{for(var _0x25d5dd=_0x32d772>0x1?void 0x0:_0x32d772?Zi(_0x1354ac,_0x24b5bd):_0x1354ac,_0x53ef8f=_0x2f456c['length']-0x1,_0x5cab07;_0x53ef8f>=0x0;_0x53ef8f--)(_0x5cab07=_0x2f456c[_0x53ef8f])&&(_0x25d5dd=_0x5cab07(_0x25d5dd)||_0x25d5dd);return _0x25d5dd;},ie=(_0x35435e,_0x13d8ea)=>(_0x4555dc,_0x4ac11e)=>_0x13d8ea(_0x4555dc,_0x4ac11e,_0x35435e);let Fe=class extends _0x387d07{constructor(_0x276986,_0x5c7b8c,_0x54f0a0,_0x211f66,_0x19e476){const _0x6034a0=_0x4cb6a4;super(),_(this,'_cursorShapes',[]),_(this,_0x6034a0(0x23c),[]),(this[_0x6034a0(0x103)]=_0x276986,this[_0x6034a0(0x191)]=_0x5c7b8c,this[_0x6034a0(0x15d)]=_0x54f0a0,this[_0x6034a0(0x259)]=_0x211f66,this[_0x6034a0(0x2af)]=_0x19e476,this['_init']());}[_0x4cb6a4(0x2ce)](){const _0x42c94f=_0x4cb6a4,_0x551b57=this[_0x42c94f(0x103)][_0x42c94f(0x113)],_0x388167=this[_0x42c94f(0x191)];this['disposeWithMe'](_0x18e034([this['_collabCursorController'][_0x42c94f(0x2e6)](_0x551b57),this['_themeService'][_0x42c94f(0xf1)]])['pipe'](_0x7f84b9(([_0x6506c5,_0x2994cc])=>({'skeleton':_0x388167[_0x42c94f(0x196)](),'cursors':[..._0x6506c5[_0x42c94f(0x2c0)]()]['flatMap'](_0x550e47=>({..._0x550e47,'color':this[_0x42c94f(0x2af)]['getColorFromTheme'](_0x550e47[_0x42c94f(0x217)])}))})))[_0x42c94f(0x13b)](_0x2667d1=>{const _0xd5c6c8=_0x42c94f;if(this['_removeCollabCursors'](),_0x2667d1){const {skeleton:_0x20045a,cursors:_0x120152}=_0x2667d1;this[_0xd5c6c8(0x160)](_0x20045a,_0x120152);}})),this[_0x42c94f(0x189)](),this[_0x42c94f(0x2b0)]();}[_0x4cb6a4(0x160)](_0x16dfcb,_0x4907cf){const _0x22a017=_0x4cb6a4,{scene:_0x25ef0e,mainComponent:_0x2dfe57}=this[_0x22a017(0x103)],_0x1280ff=_0x4907cf[_0x22a017(0xf4)](_0x18bde9=>new ct(_0x18bde9,_0x25ef0e,_0x16dfcb,_0x2dfe57));this[_0x22a017(0x2db)]=_0x1280ff,this[_0x22a017(0x23c)]=_0x4907cf;}[_0x4cb6a4(0x26d)](){const _0x2bcf7e=_0x4cb6a4;this[_0x2bcf7e(0x125)]();const {scene:_0x3d733c,mainComponent:_0x2d00d9}=this[_0x2bcf7e(0x103)],_0x59b5a4=this[_0x2bcf7e(0x191)]['getSkeleton'](),_0x3019af=this[_0x2bcf7e(0x23c)][_0x2bcf7e(0xf4)](_0x1eeea7=>new ct(_0x1eeea7,_0x3d733c,_0x59b5a4,_0x2d00d9));this['_cursorShapes']=_0x3019af;}['_removeCollabCursors'](){const _0x3c1dc2=_0x4cb6a4;this[_0x3c1dc2(0x2db)][_0x3c1dc2(0xea)](_0x2006d6=>_0x2006d6[_0x3c1dc2(0x17f)]()),this[_0x3c1dc2(0x2db)]=[];}[_0x4cb6a4(0x2b0)](){const _0x3c97fc=_0x4cb6a4,_0x4fe0f9=[_0x4fc292['id']];this[_0x3c97fc(0x1b2)](this['_commandService'][_0x3c97fc(0x169)](_0x1c86cd=>{const _0x5777f7=_0x3c97fc;_0x4fe0f9['includes'](_0x1c86cd['id'])&&_0x1c86cd[_0x5777f7(0x1ff)]['unitId']===this['_context'][_0x5777f7(0x113)]&&this[_0x5777f7(0x26d)]();}));}['_initResize'](){const _0x1cedf3=_0x4cb6a4;this[_0x1cedf3(0x1b2)](_0x5c84a5(this['_context']['engine'][_0x1cedf3(0x120)])[_0x1cedf3(0xcd)](_0x6356d3(_0x475ba3=>_0x475ba3[_0x1cedf3(0x17e)]===_0xd38e99['resize']),_0x457313(0x10))[_0x1cedf3(0x13b)](()=>{const _0x109ae0=_0x1cedf3;this[_0x109ae0(0x26d)]();}));}};Fe=Qi([ie(0x1,_0x460697(_0x3c907e)),ie(0x2,_0x460697(H)),ie(0x3,_0x29d21c),ie(0x4,_0x460697(_0x286aec))],Fe);const qi=0x1,en=1.5;class tn extends _0x18811c{constructor(_0x252e5d,_0x5330f0){const _0x1930b4=_0x4cb6a4;super(_0x252e5d,_0x5330f0),_(this,_0x1930b4(0x21f)),_(this,'_hovered',!0x1),_(this,_0x1930b4(0x24e)),_(this,_0x1930b4(0x1a4),''),_(this,_0x1930b4(0x170),_0x1930b4(0x2a3)),_(this,'_backgroundColor'),(_0x5330f0&&this[_0x1930b4(0x23b)](_0x5330f0),this[_0x1930b4(0x155)][_0x1930b4(0x119)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x1930b4(0x23b)]({'hovered':!0x1})));}['setShapeProps'](_0x310961){const _0x4895f1=_0x4cb6a4;var _0x2eeba8,_0x2f4bf2,_0x2733e6,_0x3da23a,_0x2de986,_0x22b5a7;this[_0x4895f1(0x21f)]=(_0x2eeba8=_0x310961[_0x4895f1(0x217)])!=null?_0x2eeba8:this['_color'],this[_0x4895f1(0x262)]=(_0x2f4bf2=_0x310961[_0x4895f1(0x2d5)])!=null?_0x2f4bf2:this['_hovered'],this[_0x4895f1(0x24e)]=(_0x2733e6=_0x310961[_0x4895f1(0x273)])!=null?_0x2733e6:this[_0x4895f1(0x24e)],this[_0x4895f1(0x1a4)]=(_0x3da23a=_0x310961[_0x4895f1(0x2f5)])!=null?_0x3da23a:this[_0x4895f1(0x1a4)],this[_0x4895f1(0x170)]=(_0x2de986=_0x310961[_0x4895f1(0xfc)])!=null?_0x2de986:this['_labelPosition'],this[_0x4895f1(0x2e9)]=(_0x22b5a7=_0x310961[_0x4895f1(0x1fb)])!=null?_0x22b5a7:this[_0x4895f1(0x2e9)],this[_0x4895f1(0x2c8)]({'width':_0x310961[_0x4895f1(0x20f)],'height':_0x310961['height']});}[_0x4cb6a4(0x19e)](_0x1e9765){const _0x5171be=_0x4cb6a4,{row:_0x362f4f,column:_0x491e27}=_0x1e9765;if(_0x362f4f>=this['_range'][_0x5171be(0xd4)]&&_0x362f4f<=this[_0x5171be(0x24e)]['endRow']&&_0x491e27>=this[_0x5171be(0x24e)][_0x5171be(0x300)]&&_0x491e27<=this[_0x5171be(0x24e)][_0x5171be(0xc2)]){this[_0x5171be(0x23b)]({'hovered':!0x0});return;}this[_0x5171be(0x23b)]({'hovered':!0x1});}['triggerDblclick'](_0x5eb322){return!0x1;}[_0x4cb6a4(0x227)](_0x2fb74a){const _0x578b70=_0x4cb6a4;_0x30b3bc[_0x578b70(0x1aa)](_0x2fb74a,{'width':this[_0x578b70(0x20f)],'height':this[_0x578b70(0x1c9)],'strokeWidth':en,'stroke':this[_0x578b70(0x21f)],'evented':!0x1,'fill':this[_0x578b70(0x2e9)]}),this[_0x578b70(0x262)]&&(_0x2fb74a[_0x578b70(0x29c)](),_0x2fb74a['transform'](0x1,0x0,0x0,0x1,this[_0x578b70(0x20f)],this[_0x578b70(0x170)]===_0x578b70(0x207)?0x0:-Q),ve['drawWith'](_0x2fb74a,{'text':this[_0x578b70(0x1a4)],'color':this[_0x578b70(0x21f)]}),_0x2fb74a[_0x578b70(0x1e0)]());}}var sn=Object['getOwnPropertyDescriptor'],nn=(_0x5450f2,_0x34b6e5,_0xed10de,_0x41613a)=>{const _0x5f2500=_0x4cb6a4;for(var _0x523dcb=_0x41613a>0x1?void 0x0:_0x41613a?sn(_0x34b6e5,_0xed10de):_0x34b6e5,_0x24255c=_0x5450f2[_0x5f2500(0x179)]-0x1,_0x128d31;_0x24255c>=0x0;_0x24255c--)(_0x128d31=_0x5450f2[_0x24255c])&&(_0x523dcb=_0x128d31(_0x523dcb)||_0x523dcb);return _0x523dcb;},be=(_0xe62634,_0x47ad3c)=>(_0x3d71e1,_0x2ef415)=>_0x47ad3c(_0x3d71e1,_0x2ef415,_0xe62634);const rn=0x1389;let ke=class extends _0x387d07{constructor(_0x3dce31,_0x5f2771,_0x1007f5,_0x11ad24){const _0x52455b=_0x4cb6a4;super(),_(this,_0x52455b(0x23c),new Set()),_(this,_0x52455b(0x1e9),null),(this[_0x52455b(0x103)]=_0x3dce31,this[_0x52455b(0x239)]=_0x5f2771,this['_collabCursorController']=_0x1007f5,this[_0x52455b(0x2af)]=_0x11ad24,this[_0x52455b(0x2ce)]());}[_0x4cb6a4(0x2ce)](){const _0x513f78=_0x4cb6a4;this['_sheetSkeletonManagerService'][_0x513f78(0x206)][_0x513f78(0xcd)](_0x3f1e44(this[_0x513f78(0x165)]),_0x1d66f6(_0x10d4e4=>{const _0x4441bd=_0x513f78;if(_0x10d4e4){const _0x178259=_0x10d4e4[_0x4441bd(0x22a)];return _0x18e034(this['_collabCursorController'][_0x4441bd(0x2e6)](this[_0x4441bd(0x103)][_0x4441bd(0x113)]),this[_0x4441bd(0x2af)][_0x4441bd(0xf1)])[_0x4441bd(0xcd)](_0x7f84b9(([_0x4cbf22,_0x561798])=>{const _0x34968b=_0x4441bd,_0x21ed19=new Map();return _0x4cbf22[_0x34968b(0xea)]((_0x54d0c2,_0x49d96a)=>{const _0x397394=_0x34968b;if(_0x54d0c2[_0x397394(0x295)]===_0x178259){const _0x1098c6={..._0x54d0c2};_0x1098c6[_0x397394(0x217)]=this[_0x397394(0x2af)][_0x397394(0x2e0)](_0x54d0c2[_0x397394(0x217)]),_0x21ed19[_0x397394(0x187)](_0x49d96a,_0x1098c6);}}),{'skeleton':_0x10d4e4,'cursors':_0x21ed19};}));}return _0xd3f9fe({'skeleton':null,'cursors':new Map()});}))[_0x513f78(0x13b)](({skeleton:_0x4eb1a5,cursors:_0x26b1a3})=>{const _0x33a5be=_0x513f78;this['_removeCollabCursors'](),_0x4eb1a5&&this[_0x33a5be(0x160)](_0x4eb1a5,_0x26b1a3);}),this[_0x513f78(0x239)]['currentSkeleton$']['subscribe'](_0x4836a4=>{const _0x5b036a=_0x513f78;if(_0x4836a4==null)return;const {skeleton:_0x3d894d}=_0x4836a4,{scene:_0x54bb46}=this[_0x5b036a(0x103)];_0x54bb46[_0x5b036a(0x26c)][_0x5b036a(0x119)](_0x357798(_0x3a9dfc=>{const _0x4813cc=_0x5b036a;var _0x54e09f,_0x560c37;const {offsetX:_0x4cb527,offsetY:_0xbc22db}=_0x3a9dfc,{x:_0x1caf75,y:_0x4bfede}=_0x54bb46[_0x4813cc(0x308)](_0x224b9a[_0x4813cc(0x1b7)]([_0x4cb527,_0xbc22db])),{scaleX:_0x12ea88,scaleY:_0x32084f}=_0x54bb46[_0x4813cc(0x14e)](),_0x334713=_0x54bb46['getViewport'](_0x12a7e5['VIEW_MAIN']),_0x97aab6=_0x54bb46[_0x4813cc(0x21a)](_0x224b9a[_0x4813cc(0x1b7)]([_0x1caf75,_0x4bfede]),_0x334713),_0x2669e3=_0x3d894d[_0x4813cc(0x2e3)](_0x4cb527,_0xbc22db,_0x12ea88,_0x32084f,_0x97aab6);((_0x54e09f=this['_lastPointer'])==null?void 0x0:_0x54e09f[_0x4813cc(0x27a)])===_0x2669e3['column']&&((_0x560c37=this['_lastPointer'])==null?void 0x0:_0x560c37[_0x4813cc(0xd3)])===_0x2669e3['row']||this[_0x4813cc(0x23c)][_0x4813cc(0xea)](_0x22e3b8=>{const _0x72bff=_0x4813cc;_0x22e3b8[_0x72bff(0x19e)](_0x2669e3);});},0x64));});}[_0x4cb6a4(0x160)](_0x3806e6,_0x198391){const _0x5006d1=_0x4cb6a4;var _0x2a074d;const _0x55641a=(_0x2a074d=this[_0x5006d1(0x239)][_0x5006d1(0x28f)]())==null?void 0x0:_0x2a074d[_0x5006d1(0x16e)];if(!_0x55641a)return;const _0x135ca7=this[_0x5006d1(0x1dd)]();if(!_0x135ca7)return;this[_0x5006d1(0x23c)][_0x5006d1(0xea)](_0x95f3a=>{const _0x363962=_0x5006d1;_0x95f3a[_0x363962(0x2c1)]();});const {scene:_0x49c195}=_0x135ca7,_0x30780c=on(Array[_0x5006d1(0x204)](_0x198391[_0x5006d1(0x2c0)]()))[_0x5006d1(0xf4)](_0x5f4f8c=>{const _0x222ca6=_0x5006d1,{color:_0x39dbdb,range:_0x4b0790,name:_0x3b5cf9,selection:_0x524618,sheetID:_0x341403}=_0x5f4f8c,{startColumn:_0x2af847,startRow:_0x546cce,endColumn:_0x426390,endRow:_0x6e61c0}=_0x4b0790,_0x576662=_0x500f41(_0x546cce,_0x2af847,_0x49c195,_0x55641a),_0x2276d3=_0x500f41(_0x6e61c0,_0x426390,_0x49c195,_0x55641a),{columnHeaderHeightAndMarginTop:_0x347bf5}=_0x55641a,{startX:_0x1fa32c,startY:_0xfc73e3}=_0x576662,{endX:_0x1b1280,endY:_0x36f21e}=_0x2276d3,_0x33d4f8=_0x1b1280-_0x1fa32c,_0x280e0b=_0x36f21e-_0xfc73e3,_0x502a08={'labelPosition':_0xfc73e3-_0x347bf5>=Q?_0x222ca6(0x2a3):_0x222ca6(0x207),'sheetID':_0x341403,'range':_0x4b0790,'color':_0x39dbdb,'name':_0x3b5cf9,'selection':_0x524618,'left':_0x1fa32c,'top':_0xfc73e3,'width':_0x33d4f8,'height':_0x280e0b,'evented':!0x1,'zIndex':rn};return new tn(_0x3b5cf9,_0x502a08);});_0x49c195[_0x5006d1(0x1bf)](_0x30780c,qi),this[_0x5006d1(0x23c)]=new Set(_0x30780c);}[_0x4cb6a4(0x125)](){const _0x2301ce=_0x4cb6a4;var _0x118829;(_0x118829=this[_0x2301ce(0x23c)])==null||_0x118829[_0x2301ce(0xea)](_0x333cd2=>_0x333cd2[_0x2301ce(0x17f)]());}[_0x4cb6a4(0x1dd)](){const _0x3a83d9=_0x4cb6a4;return _0x54d3b3(this[_0x3a83d9(0x103)][_0x3a83d9(0x1e6)],this[_0x3a83d9(0x103)]);}};ke=nn([be(0x1,_0x460697(_0x532b10)),be(0x2,_0x460697(H)),be(0x3,_0x460697(_0x286aec))],ke);function on(_0x12f38e){const _0x563205=_0x4cb6a4,_0x16f61f=new Map();return _0x12f38e[_0x563205(0xea)](_0x4bb729=>{const _0x5369dd=_0x563205;if(_0x16f61f[_0x5369dd(0x282)](_0x4bb729[_0x5369dd(0x24b)])){const _0x217ece=_0x16f61f[_0x5369dd(0x242)](_0x4bb729['selection']);_0x217ece[_0x5369dd(0x2f5)]+=',\x20'+_0x4bb729[_0x5369dd(0x2f5)];}else _0x16f61f[_0x5369dd(0x187)](_0x4bb729['selection'],_0x4bb729);}),Array['from'](_0x16f61f[_0x563205(0x2c0)]());}var an=Object[_0x4cb6a4(0x1ed)],cn=(_0x25f3de,_0x1d1808,_0x1dac50,_0x5a8574)=>{const _0x47762=_0x4cb6a4;for(var _0x59ea30=_0x5a8574>0x1?void 0x0:_0x5a8574?an(_0x1d1808,_0x1dac50):_0x1d1808,_0x363edd=_0x25f3de[_0x47762(0x179)]-0x1,_0x54dea2;_0x363edd>=0x0;_0x363edd--)(_0x54dea2=_0x25f3de[_0x363edd])&&(_0x59ea30=_0x54dea2(_0x59ea30)||_0x59ea30);return _0x59ea30;},F=(_0x539799,_0x4dedaf)=>(_0x482b3a,_0x28f52f)=>_0x4dedaf(_0x482b3a,_0x28f52f,_0x539799);let _e=class extends _0x4bd602{constructor(_0x459803,_0x57dac2,_0x379dfe,_0x204a65,_0x33133a,_0x7a61be){const _0x27abca=_0x4cb6a4;super(),this[_0x27abca(0x280)]=_0x459803,this['_localCacheService']=_0x57dac2,this[_0x27abca(0x1d5)]=_0x379dfe,this['_messageService']=_0x204a65,this[_0x27abca(0x30b)]=_0x33133a,this['_localeService']=_0x7a61be,this[_0x27abca(0xba)](),this['_initEvent']();}[_0x4cb6a4(0xba)](){const _0xc90a46=_0x4cb6a4;this[_0xc90a46(0x1b2)](this[_0xc90a46(0x280)][_0xc90a46(0x123)](()=>{const _0x374578=_0xc90a46;if(this['_localCacheService']['saveTaskMap'][_0x374578(0x219)])return this['_localeService']['t'](_0x374578(0x20e));}));}['_initEvent'](){const _0x26c870=_0x4cb6a4;this[_0x26c870(0x1b2)](this[_0x26c870(0x1d5)][_0x26c870(0x135)]['subscribe'](_0x3d0e7a=>{const _0x60e64=_0x26c870;_0x3d0e7a['id']===_0x684afe[_0x60e64(0xdf)]&&this[_0x60e64(0xd9)][_0x60e64(0x2ac)]({'type':_0x319fef[_0x60e64(0xcf)],'content':this[_0x60e64(0x277)]['t'](_0x60e64(0x27e))}),_0x3d0e7a['id']===_0x684afe[_0x60e64(0x30a)]&&this['_messageService'][_0x60e64(0x2ac)]({'type':_0x319fef['Warning'],'content':this[_0x60e64(0x277)]['t']('collaboration.closeRoom')}),_0x3d0e7a['id']===_0x684afe[_0x60e64(0xe9)]&&this[_0x60e64(0x30b)][_0x60e64(0x2ac)]({'title':this[_0x60e64(0x277)]['t'](_0x60e64(0x152)),'content':this[_0x60e64(0x277)]['t'](_0x60e64(0x18f)),'type':_0x60e64(0x309),'duration':0x0}),_0x3d0e7a['id']===_0x684afe[_0x60e64(0x306)]&&this[_0x60e64(0xd9)][_0x60e64(0x2ac)]({'type':_0x319fef['Error'],'content':this[_0x60e64(0x277)]['t']('collaboration.closeRoom')+'('+_0x3d0e7a[_0x60e64(0x18b)]+')'}),_0x3d0e7a['id']===_0x684afe[_0x60e64(0xd6)]&&this['_messageService'][_0x60e64(0x2ac)]({'type':_0x319fef[_0x60e64(0xcf)],'content':this[_0x60e64(0x277)]['t'](_0x3d0e7a[_0x60e64(0x18b)]||'')}),_0x3d0e7a['id']===_0x684afe[_0x60e64(0x288)]&&this[_0x60e64(0xd9)][_0x60e64(0x2ac)]({'type':_0x319fef[_0x60e64(0xcf)],'content':this[_0x60e64(0x277)]['t'](_0x60e64(0x174))}),_0x3d0e7a['id']===_0x684afe[_0x60e64(0x1e8)]&&this[_0x60e64(0xd9)]['show']({'type':_0x319fef[_0x60e64(0x20d)],'content':this['_localeService']['t'](_0x60e64(0xbf))}),_0x3d0e7a['id']===_0x684afe[_0x60e64(0x21b)]&&this[_0x60e64(0xd9)][_0x60e64(0x2ac)]({'type':_0x319fef[_0x60e64(0x20d)],'content':this[_0x60e64(0x277)]['t']('session.collaboration-timeout')});}));}};_e=cn([F(0x0,_0x40a478),F(0x1,_0xa76635),F(0x2,_0x460697(_0x1527da)),F(0x3,_0x6f3ae),F(0x4,_0xe8a5c1),F(0x5,_0x460697(_0xdd2fc6))],_e);var _n=Object[_0x4cb6a4(0x1ed)],ln=(_0x1a6dcf,_0x31c446,_0x5c4d87,_0xb17b5e)=>{const _0x4152ba=_0x4cb6a4;for(var _0x5f59b4=_0xb17b5e>0x1?void 0x0:_0xb17b5e?_n(_0x31c446,_0x5c4d87):_0x31c446,_0x53f50f=_0x1a6dcf[_0x4152ba(0x179)]-0x1,_0x22ae74;_0x53f50f>=0x0;_0x53f50f--)(_0x22ae74=_0x1a6dcf[_0x53f50f])&&(_0x5f59b4=_0x22ae74(_0x5f59b4)||_0x5f59b4);return _0x5f59b4;},ne=(_0x23ecc6,_0x314426)=>(_0x237e07,_0x293c45)=>_0x314426(_0x237e07,_0x293c45,_0x23ecc6);let le=class extends _0x4bd602{constructor(_0x4d0cbd,_0x4a7d5f,_0x1a931b,_0x48d90c){const _0xcb9df9=_0x4cb6a4;super(),_(this,_0xcb9df9(0x130)),(this[_0xcb9df9(0x14d)]=_0x4d0cbd,this['_httpService']=_0x4a7d5f,this[_0xcb9df9(0x2d0)]=_0x1a931b,this[_0xcb9df9(0x1db)]=_0x48d90c,this[_0xcb9df9(0x2ce)]());}['_init'](){const _0x5188b3=_0x4cb6a4;this[_0x5188b3(0x106)](),this[_0x5188b3(0x2b6)](),this[_0x5188b3(0xe1)](),this['_initUserListener']();}['_initUserListener'](){const _0x5759d4=_0x4cb6a4;this[_0x5759d4(0x1b2)](this[_0x5759d4(0x1db)]['socket$']['subscribe'](_0x4717fc=>{this['_memberID']=_0x4717fc==null?void 0x0:_0x4717fc['memberID'];}));}[_0x4cb6a4(0x106)](){const _0x4086e5=_0x4cb6a4,_0x9f2d6d=_0x441a5d=>{const _0x7329ef=_0x3956;var _0x9cd3f2;this[_0x7329ef(0x11f)](_0x7329ef(0x309),_0x7329ef(0x177)+_0x441a5d[_0x7329ef(0xee)]+_0x7329ef(0x2e1)+_0x441a5d[_0x7329ef(0x193)]+':'+_0x441a5d[_0x7329ef(0x197)]+':'+_0x441a5d[_0x7329ef(0x215)]+'\x0a'+(((_0x9cd3f2=_0x441a5d[_0x7329ef(0x309)])==null?void 0x0:_0x9cd3f2[_0x7329ef(0x2b4)])||''));};window[_0x4086e5(0x258)](_0x4086e5(0x309),_0x9f2d6d),this[_0x4086e5(0x1b2)](()=>{const _0x22e9fc=_0x4086e5;window[_0x22e9fc(0x1dc)](_0x22e9fc(0x309),_0x9f2d6d);});}[_0x4cb6a4(0x2b6)](){const _0x59281e=_0x4cb6a4,_0x394da6=_0x53e86e=>{const _0x1ce297=_0x3956;this[_0x1ce297(0x11f)](_0x1ce297(0x309),'[Unhandled\x20Rejection]:\x20'+_0x53e86e[_0x1ce297(0x14f)]);};window[_0x59281e(0x258)](_0x59281e(0x28b),_0x394da6),this[_0x59281e(0x1b2)](()=>{const _0x49789f=_0x59281e;window[_0x49789f(0x1dc)](_0x49789f(0x28b),_0x394da6);});}[_0x4cb6a4(0xe1)](){const _0x2d60c4=_0x4cb6a4,_0x21d66d=this['_logService'][_0x2d60c4(0x309)][_0x2d60c4(0x216)](this[_0x2d60c4(0x2d0)]);this[_0x2d60c4(0x2d0)][_0x2d60c4(0x309)]=(..._0x55d6d9)=>{const _0x31cf45=_0x2d60c4,_0x1b7298=_0x55d6d9['map'](_0x1bc8b0=>_0x1bc8b0 instanceof Error?_0x1bc8b0[_0x31cf45(0xee)]+'\x0a'+_0x1bc8b0['stack']:String(_0x1bc8b0))['join']('\x20');this['_uploadLog'](_0x31cf45(0x309),_0x31cf45(0x275)+_0x1b7298),_0x21d66d(..._0x55d6d9);},this[_0x2d60c4(0x1b2)](()=>{const _0x1c5a30=_0x2d60c4;this[_0x1c5a30(0x2d0)][_0x1c5a30(0x309)]=_0x21d66d;});}[_0x4cb6a4(0x11f)](_0x259c32,_0x2a1ed5){const _0xbeaba9=_0x4cb6a4;try{const _0x52a1ce={'userId':this[_0xbeaba9(0x130)],'logLabel':_0x259c32,'content':_0x2a1ed5};this['_httpService']['post'](_0xbeaba9(0x2cc),{'body':_0x52a1ce})[_0xbeaba9(0x292)](()=>{});}catch{}}};le=ln([ne(0x0,_0x460697(_0x307bfd)),ne(0x1,_0x460697(_0x3f1253)),ne(0x2,_0x21d8d8),ne(0x3,_0x460697(_0x225480))],le);const hn=_0x4cb6a4(0x161),_t={};var un=Object['getOwnPropertyDescriptor'],dn=(_0x387e49,_0xb7a1e7,_0x6be8c3,_0x48c78d)=>{const _0x2c57ab=_0x4cb6a4;for(var _0x435ea7=_0x48c78d>0x1?void 0x0:_0x48c78d?un(_0xb7a1e7,_0x6be8c3):_0xb7a1e7,_0x4d772f=_0x387e49[_0x2c57ab(0x179)]-0x1,_0x2edc46;_0x4d772f>=0x0;_0x4d772f--)(_0x2edc46=_0x387e49[_0x4d772f])&&(_0x435ea7=_0x2edc46(_0x435ea7)||_0x435ea7);return _0x435ea7;},lt=(_0x37633b,_0x2a8982)=>(_0x522706,_0x31ce7c)=>_0x2a8982(_0x522706,_0x31ce7c,_0x37633b);let he=class{constructor(_0x23166b,_0xc59d8b){const _0x149ee0=_0x4cb6a4;this[_0x149ee0(0x2e2)]=_0x23166b,this[_0x149ee0(0x19c)]=_0xc59d8b;}[_0x4cb6a4(0xe5)](_0x58478d){const _0x5658ab=_0x4cb6a4;this['_transformUndoRedoStack'](_0x58478d),this[_0x5658ab(0x26b)](_0x58478d);}[_0x4cb6a4(0x15f)](_0x287491){const _0x27d22c=_0x4cb6a4,{unitID:_0x59d6aa}=_0x287491,_0x7cafbd=this['_renderManagerService'][_0x27d22c(0x2c7)](_0x59d6aa)[_0x27d22c(0x132)](_0x3fcd4a),{redoCache:_0x54a114}=_0x7cafbd[_0x27d22c(0x2de)]();if(_0x54a114['length']===0x0)return _0x287491;let _0xcd5880=_0x3843dc[_0x27d22c(0x1cf)](_0x287491[_0x27d22c(0x223)][0x0]);for(let _0x45ff3e=0x0;_0x45ff3e<_0x54a114[_0x27d22c(0x179)];_0x45ff3e++){const _0x1259f1={'id':'doc.mutation.rich-text-editing','params':{..._0x54a114[_0x45ff3e]}},_0x2092fe=this[_0x27d22c(0x2e2)][_0x27d22c(0xf8)](_0xcd5880,_0x1259f1,!0x1);if(_0x36a568(_0x2092fe))throw _0x2092fe['error'];_0xcd5880=_0x2092fe[_0x27d22c(0x133)];}return{..._0x3843dc['deepClone'](_0x287491),'mutations':[_0xcd5880]};}['_transformUndoRedoStack'](_0x3dc1c8){const _0x8bd467=_0x4cb6a4,{unitID:_0x23987f}=_0x3dc1c8,_0xe9e171=this[_0x8bd467(0x19c)][_0x8bd467(0x2c7)](_0x23987f)[_0x8bd467(0x132)](_0x3fcd4a),{undoCache:_0x140db6,redoCache:_0x277746}=_0xe9e171[_0x8bd467(0x2de)]();if(_0x140db6[_0x8bd467(0x179)]===0x0||_0x277746[_0x8bd467(0x179)]===0x0)return;const _0xa80801=[],_0x1fee1b=[];let _0x46dd60=_0x3843dc[_0x8bd467(0x1cf)](_0x3dc1c8['mutations'][0x0]),_0x46cc41=_0x3843dc[_0x8bd467(0x1cf)](_0x3dc1c8['mutations'][0x0]);for(let _0x3e2f88=_0x140db6[_0x8bd467(0x179)]-0x1;_0x3e2f88>=0x0;_0x3e2f88--){const _0x3e7ff5={'id':_0x8bd467(0x1a0),'params':{..._0x140db6[_0x3e2f88]}},_0x5cc545={'id':'doc.mutation.rich-text-editing','params':{..._0x277746[_0x3e2f88]}},_0x3fcc1e=this[_0x8bd467(0x2e2)]['transformMutation'](_0x46dd60,_0x3e7ff5,!0x1),_0x44a4fe=this[_0x8bd467(0x2e2)]['transformMutation'](_0x46cc41,_0x5cc545,!0x1);if(_0x36a568(_0x3fcc1e))throw _0x3fcc1e[_0x8bd467(0x309)];if(_0x36a568(_0x44a4fe))throw _0x44a4fe['error'];_0xa80801[_0x8bd467(0x122)](_0x3fcc1e['m2Prime']['params']),_0x1fee1b[_0x8bd467(0x122)](_0x44a4fe[_0x8bd467(0xfe)][_0x8bd467(0x1ff)]),_0x46dd60=_0x3fcc1e['m1Prime'],_0x46cc41=_0x44a4fe[_0x8bd467(0x133)];}_0xe9e171[_0x8bd467(0xef)]({'undoCache':_0xa80801,'redoCache':_0x1fee1b});}['_transformPreviousActiveRange'](_0x137c1e){const _0x5a69be=_0x4cb6a4,{unitID:_0x1c378a}=_0x137c1e,_0x192ba9=this['_renderManagerService']['getRenderById'](_0x1c378a)['with'](_0x3fcd4a),_0x516ee7=_0x192ba9[_0x5a69be(0x1c7)]();if(_0x516ee7==null)return;const _0x44b195=[{'id':_0x5a69be(0x1a0),'params':{'unitId':_0x137c1e['unitID'],'actions':null,'textRanges':[_0x516ee7]}}],_0x4136ee=this[_0x5a69be(0x2e2)][_0x5a69be(0x18d)](_0x137c1e,_0x44b195);if(!_0x3a7478(_0x4136ee))throw _0x4136ee[_0x5a69be(0x309)];const _0x5cd4e0=_0x4136ee['m2Prime'][0x0]['params'][_0x5a69be(0x15e)];Array[_0x5a69be(0x22e)](_0x5cd4e0)&&_0x5cd4e0[_0x5a69be(0x179)]&&_0x192ba9[_0x5a69be(0x2d6)](_0x5cd4e0[0x0]);}};he=dn([lt(0x0,_0x480862),lt(0x1,_0x591858)],he);function _0x3956(_0x290ed1,_0x252d6f){_0x290ed1=_0x290ed1-0xb7;const _0x19b9d5=_0x19b9();let _0x3956ff=_0x19b9d5[_0x290ed1];return _0x3956ff;}var Sn=Object[_0x4cb6a4(0x1ed)],In=(_0x183675,_0x5de88e,_0x5f16e5,_0x34ba35)=>{const _0x5a577b=_0x4cb6a4;for(var _0xd62d6a=_0x34ba35>0x1?void 0x0:_0x34ba35?Sn(_0x5de88e,_0x5f16e5):_0x5de88e,_0x32a978=_0x183675[_0x5a577b(0x179)]-0x1,_0x13c835;_0x32a978>=0x0;_0x32a978--)(_0x13c835=_0x183675[_0x32a978])&&(_0xd62d6a=_0x13c835(_0xd62d6a)||_0xd62d6a);return _0xd62d6a;},Le=(_0x5946e9,_0x5cf945)=>(_0x343b5c,_0x12469e)=>_0x5cf945(_0x343b5c,_0x12469e,_0x5946e9);let ue=class{constructor(_0x2bb867,_0x46cb1f,_0x484be5){const _0x126267=_0x4cb6a4;this[_0x126267(0x14d)]=_0x2bb867,this[_0x126267(0x2e2)]=_0x46cb1f,this[_0x126267(0x2f3)]=_0x484be5;}['transformStateCache'](_0x1017c2){this['_transformHistoryAndStateStack'](_0x1017c2);}[_0x4cb6a4(0x15f)](_0x3d3df1){const _0x449017=_0x4cb6a4,{unitID:_0x46b3d7}=_0x3d3df1,{collaboration:_0x1ada84}=this[_0x449017(0x2f3)][_0x449017(0x1e1)](_0x46b3d7);if(_0x1ada84[_0x449017(0x179)]===0x0)return _0x3d3df1;let _0x37e824=_0x3843dc[_0x449017(0x1cf)](_0x3d3df1['mutations'][0x0]);for(let _0xe29a96=0x0;_0xe29a96<_0x1ada84[_0x449017(0x179)];_0xe29a96++){const _0x3847e6={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1ada84[_0xe29a96][_0x449017(0x113)],..._0x1ada84[_0xe29a96][_0x449017(0x129)]}},_0x1ea2b8=this[_0x449017(0x2e2)][_0x449017(0xf8)](_0x37e824,_0x3847e6,!0x1);if(_0x36a568(_0x1ea2b8))throw _0x1ea2b8['error'];_0x37e824=_0x1ea2b8[_0x449017(0x133)];}return{..._0x3843dc[_0x449017(0x1cf)](_0x3d3df1),'mutations':[_0x37e824]};}[_0x4cb6a4(0x2a2)](_0x56a610){const _0x2f1c75=_0x4cb6a4,{unitID:_0x552ad8}=_0x56a610,{history:_0x323e79,collaboration:_0x228e03}=this[_0x2f1c75(0x2f3)]['getStateCache'](_0x552ad8);if(_0x323e79[_0x2f1c75(0x179)]===0x0&&_0x228e03[_0x2f1c75(0x179)]===0x0)return;const _0x3598b1=[],_0x49ba01=[];let _0x193269=_0x3843dc[_0x2f1c75(0x1cf)](_0x56a610[_0x2f1c75(0x223)][0x0]),_0x59b13b=_0x3843dc[_0x2f1c75(0x1cf)](_0x56a610[_0x2f1c75(0x223)][0x0]);for(let _0x35d337=_0x323e79[_0x2f1c75(0x179)]-0x1;_0x35d337>=0x0;_0x35d337--){const _0x197c43={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x323e79[_0x35d337][_0x2f1c75(0x113)],..._0x323e79[_0x35d337][_0x2f1c75(0x208)]}},_0x5920a3={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x323e79[_0x35d337][_0x2f1c75(0x113)],..._0x323e79[_0x35d337]['redoState']}},_0x487342=this[_0x2f1c75(0x2e2)][_0x2f1c75(0xf8)](_0x193269,_0x197c43,!0x1),_0x11efe8=this[_0x2f1c75(0x2e2)][_0x2f1c75(0xf8)](_0x59b13b,_0x5920a3,!0x1);if(_0x36a568(_0x487342))throw _0x487342[_0x2f1c75(0x309)];if(_0x36a568(_0x11efe8))throw _0x11efe8[_0x2f1c75(0x309)];_0x3598b1['unshift']({..._0x323e79[_0x35d337],'undoState':_0x487342[_0x2f1c75(0xfe)][_0x2f1c75(0x1ff)],'redoState':_0x11efe8[_0x2f1c75(0xfe)]['params']}),_0x193269=_0x487342[_0x2f1c75(0x133)],_0x59b13b=_0x11efe8[_0x2f1c75(0x133)];}_0x193269=_0x3843dc[_0x2f1c75(0x1cf)](_0x56a610[_0x2f1c75(0x223)][0x0]),_0x59b13b=_0x3843dc['deepClone'](_0x56a610[_0x2f1c75(0x223)][0x0]);for(let _0x24aceb=_0x228e03[_0x2f1c75(0x179)]-0x1;_0x24aceb>=0x0;_0x24aceb--){const _0x22e24f={'id':_0x2f1c75(0x1a0),'params':{'unitId':_0x228e03[_0x24aceb][_0x2f1c75(0x113)],..._0x228e03[_0x24aceb]['undoState']}},_0x5a0959={'id':_0x2f1c75(0x1a0),'params':{'unitId':_0x228e03[_0x24aceb]['unitId'],..._0x228e03[_0x24aceb]['redoState']}},_0x208bbc=this[_0x2f1c75(0x2e2)]['transformMutation'](_0x193269,_0x22e24f,!0x1),_0xea7456=this['_transformService'][_0x2f1c75(0xf8)](_0x59b13b,_0x5a0959,!0x1);if(_0x36a568(_0x208bbc))throw _0x208bbc['error'];if(_0x36a568(_0xea7456))throw _0xea7456['error'];_0x49ba01[_0x2f1c75(0x122)]({..._0x228e03[_0x24aceb],'undoState':_0x208bbc[_0x2f1c75(0xfe)][_0x2f1c75(0x1ff)],'redoState':_0xea7456['m2Prime'][_0x2f1c75(0x1ff)]}),_0x193269=_0x208bbc[_0x2f1c75(0x133)],_0x59b13b=_0xea7456['m1Prime'];}this[_0x2f1c75(0x2f3)][_0x2f1c75(0x15b)](_0x552ad8,{'history':_0x3598b1,'collaboration':_0x49ba01});}};ue=In([Le(0x0,_0x460697(_0x307bfd)),Le(0x1,_0x480862),Le(0x2,_0x460697(_0xdeb5eb))],ue);var mn=Object[_0x4cb6a4(0x1ed)],fn=(_0x389c91,_0x3917df,_0x2f898f,_0x4bfa80)=>{const _0x2f1b03=_0x4cb6a4;for(var _0x3630d0=_0x4bfa80>0x1?void 0x0:_0x4bfa80?mn(_0x3917df,_0x2f898f):_0x3917df,_0x312962=_0x389c91[_0x2f1b03(0x179)]-0x1,_0x18577c;_0x312962>=0x0;_0x312962--)(_0x18577c=_0x389c91[_0x312962])&&(_0x3630d0=_0x18577c(_0x3630d0)||_0x3630d0);return _0x3630d0;},ht=(_0x435a2a,_0x5403dc)=>(_0x1d1a5f,_0xff36d1)=>_0x5403dc(_0x1d1a5f,_0xff36d1,_0x435a2a);let de=class{constructor(_0x46d4f4,_0x444ca1){const _0x289844=_0x4cb6a4;this[_0x289844(0x14d)]=_0x46d4f4,this[_0x289844(0x2e2)]=_0x444ca1;}[_0x4cb6a4(0x2fa)](_0x2edb79){const _0x3d8050=_0x4cb6a4;var _0x4b1862;const _0x226c68=this[_0x3d8050(0x14d)]['get'](_0xee7088),_0x247885=(_0x4b1862=_0x226c68[_0x3d8050(0x190)]())!=null?_0x4b1862:[];if(_0x247885[_0x3d8050(0x179)]===0x0)return;const _0x319e7d=_0x2edb79['unitID'],_0x1bcbea=[{'id':_0x3d8050(0x1a0),'params':{'unitId':_0x319e7d,'actions':null,'textRanges':_0x247885}}],_0x2e3f85=this[_0x3d8050(0x2e2)][_0x3d8050(0x18d)](_0x2edb79,_0x1bcbea);if(!_0x3a7478(_0x2e3f85))throw _0x2e3f85[_0x3d8050(0x309)];const _0x229904=_0x2e3f85[_0x3d8050(0xfe)][0x0][_0x3d8050(0x1ff)][_0x3d8050(0x15e)];Array[_0x3d8050(0x22e)](_0x229904)&&_0x229904[_0x3d8050(0x179)]&&_0x226c68[_0x3d8050(0x2a0)](_0x229904,{'unitId':_0x319e7d,'subUnitId':_0x319e7d},!0x1);}};de=fn([ht(0x0,_0x460697(_0x307bfd)),ht(0x1,_0x480862)],de);var gn=Object['getOwnPropertyDescriptor'],En=(_0x3a0a83,_0x2cf78d,_0x8e9ea4,_0x1c57a9)=>{const _0x3b5c3a=_0x4cb6a4;for(var _0xf72dba=_0x1c57a9>0x1?void 0x0:_0x1c57a9?gn(_0x2cf78d,_0x8e9ea4):_0x2cf78d,_0x26eff2=_0x3a0a83[_0x3b5c3a(0x179)]-0x1,_0x54a0eb;_0x26eff2>=0x0;_0x26eff2--)(_0x54a0eb=_0x3a0a83[_0x26eff2])&&(_0xf72dba=_0x54a0eb(_0xf72dba)||_0xf72dba);return _0xf72dba;},U=(_0x352d24,_0x4d9ab6)=>(_0x570abd,_0x295e00)=>_0x4d9ab6(_0x570abd,_0x295e00,_0x352d24);let Se=class extends _0x4bd602{constructor(_0x59f604,_0x48884f,_0x433c8a,_0x1ccd8f,_0xe330bd,_0x5481c9,_0x5ccee6,_0x444e6c){const _0x1d1cb0=_0x4cb6a4;super(),_(this,'_status$',new _0x5e0fc0(_0x355c0f[_0x1d1cb0(0x1af)])),(this['_docStateChangeManagerService']=_0x59f604,this[_0x1d1cb0(0x149)]=_0x48884f,this['_docTransformIMECacheService']=_0x433c8a,this[_0x1d1cb0(0x1ef)]=_0x1ccd8f,this[_0x1d1cb0(0x201)]=_0xe330bd,this[_0x1d1cb0(0x126)]=_0x5481c9,this[_0x1d1cb0(0xd9)]=_0x5ccee6,this[_0x1d1cb0(0x277)]=_0x444e6c,this[_0x1d1cb0(0x2f9)]());}[_0x4cb6a4(0x2f9)](){const _0x94f2b2=_0x4cb6a4;this[_0x94f2b2(0x1b2)](this[_0x94f2b2(0x149)][_0x94f2b2(0x254)][_0x94f2b2(0x13b)](_0x2c0c7a=>{const _0x3bf788=_0x94f2b2,_0x3206b4=this[_0x3bf788(0x2f3)]['docStateChange$']['subscribe'](_0x1e7feb=>{const _0x543d95=_0x3bf788;if(_0x1e7feb==null)return;const {unitId:_0x33f956,redoState:_0x113a1e,commandId:_0x38a1a6}=_0x1e7feb;if(_0x33f956!==_0x2c0c7a['unitID'])return;const _0x284dac={'id':_0x38a1a6,'type':_0x735f71[_0x543d95(0xbd)],'params':{'unitId':_0x33f956,'actions':_0x113a1e[_0x543d95(0x1b4)],'textRanges':null}};_0x2c0c7a[_0x543d95(0x11b)](_0x284dac);});if(_0x2c0c7a[_0x3bf788(0x1b2)](_0x3206b4),_0x2c0c7a instanceof _0x3c7015){const _0x13c112={'onTransformIME':_0x5377c8=>this['_docTransformIMECacheService'][_0x3bf788(0xe5)](_0x5377c8),'onTransformState':_0x25d385=>this[_0x3bf788(0x1ef)][_0x3bf788(0x12b)](_0x25d385),'onTransformSelections':_0x300b18=>this[_0x3bf788(0x201)][_0x3bf788(0x2fa)](_0x300b18),'onSyncEditingCollabCursor':_0x451f3f=>this['_docSyncEditingCollabCursorService'][_0x3bf788(0x2ec)](_0x451f3f),'onTransformRemoteChangesetByIMECache':_0x458e0e=>this[_0x3bf788(0x10c)][_0x3bf788(0x15f)](_0x458e0e),'onTransformRemoteChangesetByStateCache':_0xa0269c=>this[_0x3bf788(0x1ef)][_0x3bf788(0x15f)](_0xa0269c)};_0x2c0c7a[_0x3bf788(0x110)](_0x13c112);}}));}};Se=En([U(0x0,_0x460697(_0xdeb5eb)),U(0x1,_0x460697(_0x2a0946)),U(0x2,_0x460697(he)),U(0x3,_0x460697(ue)),U(0x4,_0x460697(de)),U(0x5,_0x460697(ze)),U(0x6,_0x6f3ae),U(0x7,_0x460697(_0xdd2fc6))],Se);var Z=(_0x4fef90=>(_0x4fef90[_0x4fef90['UNDEFINED']=0x0]=_0x4cb6a4(0x137),_0x4fef90[_0x4fef90['OK']=0x1]='OK',_0x4fef90[_0x4fef90['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x4fef90[_0x4fef90[_0x4cb6a4(0xe9)]=0x3]=_0x4cb6a4(0xe9),_0x4fef90[_0x4fef90['NOT_FOUND']=0x4]=_0x4cb6a4(0x250),_0x4fef90[_0x4fef90[_0x4cb6a4(0x11c)]=0x5]=_0x4cb6a4(0x11c),_0x4fef90[_0x4fef90[_0x4cb6a4(0xbc)]=0x6]=_0x4cb6a4(0xbc),_0x4fef90[_0x4fef90[_0x4cb6a4(0x146)]=0x7]=_0x4cb6a4(0x146),_0x4fef90[_0x4fef90[_0x4cb6a4(0x1bc)]=0x8]=_0x4cb6a4(0x1bc),_0x4fef90[_0x4fef90[_0x4cb6a4(0x2ab)]=0x9]=_0x4cb6a4(0x2ab),_0x4fef90[_0x4fef90[_0x4cb6a4(0xc9)]=0xa]=_0x4cb6a4(0xc9),_0x4fef90[_0x4fef90[_0x4cb6a4(0x1a1)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x4fef90[_0x4fef90[_0x4cb6a4(0x27c)]=0xc]=_0x4cb6a4(0x27c),_0x4fef90[_0x4fef90[_0x4cb6a4(0x16f)]=0xd]=_0x4cb6a4(0x16f),_0x4fef90[_0x4fef90[_0x4cb6a4(0x11a)]=0xe]=_0x4cb6a4(0x11a),_0x4fef90[_0x4fef90[_0x4cb6a4(0x1d8)]=0xf]=_0x4cb6a4(0x1d8),_0x4fef90[_0x4fef90[_0x4cb6a4(0x18e)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x4fef90[_0x4fef90[_0x4cb6a4(0x1e5)]=0x64]=_0x4cb6a4(0x1e5),_0x4fef90[_0x4fef90[_0x4cb6a4(0x1d6)]=0x65]=_0x4cb6a4(0x1d6),_0x4fef90[_0x4fef90['USER_NOT_FOUND']=0xc9]=_0x4cb6a4(0x232),_0x4fef90[_0x4fef90[_0x4cb6a4(0x229)]=0xca]='USER_IS_ANONYMOUS',_0x4fef90[_0x4fef90[_0x4cb6a4(0x16b)]=0x1389]=_0x4cb6a4(0x16b),_0x4fef90[_0x4fef90[_0x4cb6a4(0x2f0)]=0x1771]=_0x4cb6a4(0x2f0),_0x4fef90[_0x4fef90[_0x4cb6a4(0xf9)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x4fef90[_0x4fef90[_0x4cb6a4(0x1ab)]=0x1773]=_0x4cb6a4(0x1ab),_0x4fef90[_0x4fef90['APPLY_REJECT']=0x1b59]=_0x4cb6a4(0xc7),_0x4fef90[_0x4fef90['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x4cb6a4(0x23d),_0x4fef90[_0x4fef90[_0x4cb6a4(0x233)]=0x1b5b]=_0x4cb6a4(0x233),_0x4fef90[_0x4fef90['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x4cb6a4(0x1c6),_0x4fef90[_0x4fef90[_0x4cb6a4(0x14b)]=0x1b5d]='APPLY_DUPLICATED',_0x4fef90[_0x4fef90[_0x4cb6a4(0x231)]=0x1f41]=_0x4cb6a4(0x231),_0x4fef90[_0x4fef90[_0x4cb6a4(0x307)]=0x2329]=_0x4cb6a4(0x307),_0x4fef90[_0x4fef90[_0x4cb6a4(0x12c)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x4fef90[_0x4fef90[_0x4cb6a4(0x11e)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x4fef90[_0x4fef90[_0x4cb6a4(0x303)]=0x232c]=_0x4cb6a4(0x303),_0x4fef90[_0x4fef90['LICENSE_DISTRO_REJECTED']=0x232d]=_0x4cb6a4(0x1f6),_0x4fef90[_0x4fef90['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x4cb6a4(0x2a9),_0x4fef90[_0x4fef90[_0x4cb6a4(0x22f)]=0x2712]=_0x4cb6a4(0x22f),_0x4fef90[_0x4fef90[_0x4cb6a4(0x281)]=0x2713]=_0x4cb6a4(0x281),_0x4fef90[_0x4fef90[_0x4cb6a4(0x1c4)]=0x2714]=_0x4cb6a4(0x1c4),_0x4fef90[_0x4fef90[_0x4cb6a4(0x1d3)]=0x271a]=_0x4cb6a4(0x1d3),_0x4fef90[_0x4fef90[_0x4cb6a4(0x1a2)]=0x271b]=_0x4cb6a4(0x1a2),_0x4fef90[_0x4fef90[_0x4cb6a4(0x1c0)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x4fef90[_0x4fef90[_0x4cb6a4(0xfb)]=0x271d]=_0x4cb6a4(0xfb),_0x4fef90[_0x4fef90[_0x4cb6a4(0xbb)]=0x271e]=_0x4cb6a4(0xbb),_0x4fef90[_0x4fef90[_0x4cb6a4(0x1f7)]=0x271f]=_0x4cb6a4(0x1f7),_0x4fef90[_0x4fef90[_0x4cb6a4(0xe8)]=0x2720]=_0x4cb6a4(0xe8),_0x4fef90[_0x4fef90[_0x4cb6a4(0xce)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x4fef90[_0x4fef90['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x4cb6a4(0xf3),_0x4fef90[_0x4fef90[_0x4cb6a4(0x16d)]=0x2ee2]=_0x4cb6a4(0x16d),_0x4fef90[_0x4fef90['INVITE_CODE_REQUIRED']=0x2ee3]=_0x4cb6a4(0x274),_0x4fef90[_0x4fef90[_0x4cb6a4(0x1f2)]=0x2ee4]=_0x4cb6a4(0x1f2),_0x4fef90[_0x4fef90[_0x4cb6a4(0x2d9)]=0x2ee5]=_0x4cb6a4(0x2d9),_0x4fef90[_0x4fef90[_0x4cb6a4(0x2a6)]=0x32c9]=_0x4cb6a4(0x2a6),_0x4fef90[_0x4fef90['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x4cb6a4(0x1a9),_0x4fef90[_0x4fef90[_0x4cb6a4(0x175)]=0x32cb]=_0x4cb6a4(0x175),_0x4fef90[_0x4fef90[_0x4cb6a4(0x1bd)]=0x36b1]=_0x4cb6a4(0x1bd),_0x4fef90[_0x4fef90['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x4fef90[_0x4fef90[_0x4cb6a4(0x23a)]=0x36b3]=_0x4cb6a4(0x23a),_0x4fef90[_0x4fef90[_0x4cb6a4(0x202)]=0x36b4]=_0x4cb6a4(0x202),_0x4fef90[_0x4fef90[_0x4cb6a4(0x22d)]=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x4fef90[_0x4fef90['ENTITLE_COUPON_EXPIRED']=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x4fef90[_0x4fef90[_0x4cb6a4(0x2b7)]=0x36b7]=_0x4cb6a4(0x2b7),_0x4fef90[_0x4fef90[_0x4cb6a4(0x2fb)]=0x36b8]=_0x4cb6a4(0x2fb),_0x4fef90[_0x4fef90[_0x4cb6a4(0x2bf)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x4fef90[_0x4fef90['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x4cb6a4(0x257),_0x4fef90[_0x4fef90[_0x4cb6a4(0x141)]=0x3717]=_0x4cb6a4(0x141),_0x4fef90[_0x4fef90[_0x4cb6a4(0x244)]=0x37dd]=_0x4cb6a4(0x244),_0x4fef90[_0x4fef90[_0x4cb6a4(0x1fe)]=0x3a99]=_0x4cb6a4(0x1fe),_0x4fef90[_0x4fef90[_0x4cb6a4(0x192)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x4fef90[_0x4fef90['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x4cb6a4(0x1f4),_0x4fef90[_0x4fef90[_0x4cb6a4(0x127)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x4fef90[_0x4fef90[_0x4cb6a4(0x2cd)]=0x3a9d]=_0x4cb6a4(0x2cd),_0x4fef90[_0x4fef90['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x4cb6a4(0x283),_0x4fef90[_0x4fef90[_0x4cb6a4(0xb9)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x4fef90[_0x4fef90['DATA_SOURCE_TOO_LARGE']=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x4fef90[_0x4fef90[_0x4cb6a4(0x171)]=-0x1]=_0x4cb6a4(0x171),_0x4fef90))(Z||{});function vn(_0x532c39){const _0x19140f=_0x4cb6a4;var _0x18e9b7,_0x2d93b1;const _0x25216f=(_0x18e9b7=_0x532c39[_0x19140f(0x121)])==null?void 0x0:_0x18e9b7[_0x19140f(0x1d2)],_0x3ca0b7=((_0x2d93b1=_0x532c39[_0x19140f(0x121)])==null?void 0x0:_0x2d93b1[_0x19140f(0x301)])||0x0;return _0x25216f===_0x21866a[_0x19140f(0x256)]&&_0x3ca0b7>0x0;}function pn(_0x445f58){const _0x4d50fd=_0x4cb6a4;return _0x445f58[_0x4d50fd(0x10f)]===_0xbfb00a['SUCCESS'];}var On=Object['getOwnPropertyDescriptor'],Tn=(_0xc932b,_0x3a2ec7,_0x424f80,_0x38c736)=>{const _0x27ae1c=_0x4cb6a4;for(var _0x1cbd40=_0x38c736>0x1?void 0x0:_0x38c736?On(_0x3a2ec7,_0x424f80):_0x3a2ec7,_0x15489c=_0xc932b[_0x27ae1c(0x179)]-0x1,_0x453127;_0x15489c>=0x0;_0x15489c--)(_0x453127=_0xc932b[_0x15489c])&&(_0x1cbd40=_0x453127(_0x1cbd40)||_0x1cbd40);return _0x1cbd40;},P=(_0x4386fa,_0xeeb00c)=>(_0x128d22,_0x404234)=>_0xeeb00c(_0x128d22,_0x404234,_0x4386fa);const Cn=_0x4cb6a4(0x194),Rn=_0x4cb6a4(0x188),Dn=_0x4cb6a4(0x150);let Ie=class extends _0x4bd602{constructor(_0x4875ad,_0x5958be,_0x3661bf,_0x31f3d2,_0xae1963,_0x3a619a,_0x2a21fb){const _0x249d9b=_0x4cb6a4;super(),_(this,_0x249d9b(0x1a3),null),_(this,'_maxFormulaLimit',0x0),_(this,_0x249d9b(0x28a),0x0),_(this,'_taskIds',[]),_(this,_0x249d9b(0x10a),0x0),(this['_messageService']=_0x4875ad,this[_0x249d9b(0x259)]=_0x5958be,this[_0x249d9b(0x30f)]=_0x3661bf,this[_0x249d9b(0x1f1)]=_0x31f3d2,this[_0x249d9b(0x168)]=_0xae1963,this[_0x249d9b(0x2d0)]=_0x3a619a,this[_0x249d9b(0x277)]=_0x2a21fb,this['_initCommandInterceptor']());}[_0x4cb6a4(0x2fe)](){const _0x468188=_0x4cb6a4;this[_0x468188(0x1b2)](this[_0x468188(0x259)][_0x468188(0x276)]((_0x1832a8,_0x5a7227)=>{const _0x49bab3=_0x468188;var _0x42f7e8;if(_0x1832a8['id']!==_0x52ebd9['id'])return;const _0x1366cc=_0x1832a8[_0x49bab3(0x1ff)];if(!this[_0x49bab3(0x156)]((_0x42f7e8=_0x1366cc['dirtyRanges'])!=null?_0x42f7e8:[]))return;if(!this[_0x49bab3(0x162)]())throw this['_checkAndWaitForCalculationPermission'](_0x1832a8,_0x5a7227),this[_0x49bab3(0x2ee)](),new _0x3e478b();})),this['disposeWithMe'](this['_commandService'][_0x468188(0x169)]((_0x130793,_0x4a90d7)=>{const _0x2074b9=_0x468188;if(_0x130793['id']!==_0x5a9abe['id'])return;const _0x14616d=_0x130793[_0x2074b9(0x1ff)];if(vn(_0x14616d)){const _0x4ff260=_0x3bf90d();this[_0x2074b9(0x2b2)][_0x2074b9(0x163)](_0x4ff260),this[_0x2074b9(0xf5)](_0x4ff260);}else{if(pn(_0x14616d)&&this[_0x2074b9(0x2b2)]['length']>0x0){const _0x3a00fb=this[_0x2074b9(0x2b2)]['shift']();this[_0x2074b9(0x260)](_0x3a00fb);}}}));}[_0x4cb6a4(0x17f)](){const _0x2d1bc5=_0x4cb6a4;super[_0x2d1bc5(0x17f)](),this[_0x2d1bc5(0x24f)](),this[_0x2d1bc5(0x2b2)]=[],this['_currentUsage']=0x0,this['_maxFormulaLimit']=0x0,this[_0x2d1bc5(0x10a)]=0x0;}async[_0x4cb6a4(0xfd)](_0x4724c4,_0x39a237){const _0xb214e0=_0x4cb6a4;for(let _0x321872=0x0;_0x321872<0x1e;_0x321872++)try{if(await this[_0xb214e0(0xc8)](),this[_0xb214e0(0x162)]()){this[_0xb214e0(0x230)](_0x4724c4,_0x39a237),this[_0xb214e0(0xd9)][_0xb214e0(0x2ac)]({'content':this[_0xb214e0(0x277)]['t']('formula.calculation.started'),'type':_0x319fef['Success']});return;}await new Promise(_0xedd712=>{const _0x58e02a=_0xb214e0;this[_0x58e02a(0x1a3)]=window[_0x58e02a(0x238)](_0xedd712,0x3e8);});}catch(_0x1bd230){this[_0xb214e0(0x2d0)][_0xb214e0(0x309)](_0x1bd230);}this['_messageService'][_0xb214e0(0x2ac)]({'content':this[_0xb214e0(0x277)]['t'](_0xb214e0(0xbe)),'type':_0x319fef[_0xb214e0(0x20d)]});}[_0x4cb6a4(0x230)](_0x48f24f,_0x455253){const _0x12611d=_0x4cb6a4;try{this['_commandService'][_0x12611d(0x200)](_0x48f24f['id'],_0x48f24f['params'],_0x455253);}catch(_0x2b4ba5){this[_0x12611d(0x2d0)][_0x12611d(0x309)](_0x2b4ba5);}}[_0x4cb6a4(0x29d)](_0x3f4329,_0x5782d6){const _0x2989e5=_0x4cb6a4;_0x5782d6<this[_0x2989e5(0x10a)]||(this[_0x2989e5(0x10a)]=_0x5782d6,this[_0x2989e5(0x278)]=Number['parseInt'](_0x3f4329['maxFormulaLimit']),this['_currentUsage']=Number[_0x2989e5(0x1f0)](_0x3f4329['currentUsage']));}async[_0x4cb6a4(0xf5)](_0x2c5303){const _0x167b09=_0x4cb6a4;var _0x3c2600,_0x1f4da2;const _0x192529=Date[_0x167b09(0x17a)]();try{const _0x1724a4=((_0x3c2600=this[_0x167b09(0x30f)][_0x167b09(0x182)](_0x588807))==null?void 0x0:_0x3c2600[_0x167b09(0x1c8)])||Rn,_0x30b30d=(await this[_0x167b09(0x1f1)][_0x167b09(0x10d)](_0x1724a4,{'body':JSON[_0x167b09(0x181)]({'taskId':_0x2c5303})}))['body'];if(((_0x1f4da2=_0x30b30d[_0x167b09(0x309)])==null?void 0x0:_0x1f4da2[_0x167b09(0x310)])!==Z['OK'])return;this[_0x167b09(0x29d)](_0x30b30d['limitInfo'],_0x192529);}catch(_0x14e631){this[_0x167b09(0x2d0)][_0x167b09(0x309)](_0x14e631);}}async[_0x4cb6a4(0xc8)](_0x5b5c44){const _0x410634=_0x4cb6a4;var _0x4c4d2c,_0x3389c6;const _0x591f4b=Date['now']();try{const _0x3f2132=((_0x4c4d2c=this[_0x410634(0x30f)][_0x410634(0x182)](_0x588807))==null?void 0x0:_0x4c4d2c[_0x410634(0x128)])||Cn,_0x157afb=_0x5b5c44?_0x3f2132+_0x410634(0x1ec)+encodeURIComponent(_0x5b5c44):_0x3f2132,_0x13a4bc=(await this['_httpService'][_0x410634(0x242)](_0x157afb))[_0x410634(0x26f)];if(((_0x3389c6=_0x13a4bc[_0x410634(0x309)])==null?void 0x0:_0x3389c6[_0x410634(0x310)])!==Z['OK'])return;this[_0x410634(0x29d)](_0x13a4bc[_0x410634(0x111)],_0x591f4b);}catch(_0x2085f9){this['_logService'][_0x410634(0x309)](_0x2085f9);}}async['_releaseCalculationLimit'](_0x380e7f){const _0x37b81c=_0x4cb6a4;var _0x5eea37,_0x3644bf;const _0x442359=Date[_0x37b81c(0x17a)]();try{const _0x13dbfb=((_0x5eea37=this[_0x37b81c(0x30f)][_0x37b81c(0x182)](_0x588807))==null?void 0x0:_0x5eea37[_0x37b81c(0x294)])||Dn,_0xb56fc3=(await this['_httpService']['post'](_0x13dbfb,{'body':JSON[_0x37b81c(0x181)]({'taskId':_0x380e7f})}))[_0x37b81c(0x26f)];if(((_0x3644bf=_0xb56fc3[_0x37b81c(0x309)])==null?void 0x0:_0x3644bf[_0x37b81c(0x310)])!==Z['OK'])return;this[_0x37b81c(0x29d)](_0xb56fc3[_0x37b81c(0x111)],_0x442359);}catch(_0x19f20a){this[_0x37b81c(0x2d0)][_0x37b81c(0x309)](_0x19f20a);}}[_0x4cb6a4(0x162)](){const _0x419710=_0x4cb6a4;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x419710(0x278)]-this[_0x419710(0x28a)]>0x0;}['_clearPolling'](){const _0x36db22=_0x4cb6a4;this[_0x36db22(0x1a3)]&&(clearTimeout(this[_0x36db22(0x1a3)]),this[_0x36db22(0x1a3)]=null);}[_0x4cb6a4(0x2ee)](){const _0x54b420=_0x4cb6a4;this[_0x54b420(0xd9)]['show']({'content':this[_0x54b420(0x277)]['t'](_0x54b420(0x2f2)),'type':_0x319fef[_0x54b420(0x2f8)]});}[_0x4cb6a4(0x156)](_0x948d94){const _0x4c9e12=_0x4cb6a4;for(const _0x141edd of _0x948d94){const {unitId:_0x7e08d0,sheetId:_0x499987,range:_0x223ce6}=_0x141edd,_0x47c534=this[_0x4c9e12(0x168)][_0x4c9e12(0x2ea)](_0x7e08d0);if(!_0x47c534)continue;const _0x110c93=_0x47c534[_0x4c9e12(0x218)](_0x499987);if(!_0x110c93)continue;const _0xdb33a1=_0x110c93[_0x4c9e12(0x265)]();for(let _0x5f4021=_0x223ce6[_0x4c9e12(0xd4)];_0x5f4021<=_0x223ce6[_0x4c9e12(0x134)];_0x5f4021++)for(let _0x18f660=_0x223ce6[_0x4c9e12(0x300)];_0x18f660<=_0x223ce6[_0x4c9e12(0xc2)];_0x18f660++){const _0x3a5429=_0xdb33a1['getValue'](_0x5f4021,_0x18f660);if(_0x3a5429&&(_0x49453e(_0x3a5429['f'])||_0xd29c8b(_0x3a5429['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x460697(_0x6f3ae)),P(0x1,_0x29d21c),P(0x2,_0x5f0f68),P(0x3,_0x460697(_0x3f1253)),P(0x4,_0x14cde1),P(0x5,_0x21d8d8),P(0x6,_0x460697(_0xdd2fc6))],Ie);var Nn=Object[_0x4cb6a4(0x1ed)],bn=(_0x5aaca6,_0x53059d,_0x46e980,_0x3c99cc)=>{const _0x30dc64=_0x4cb6a4;for(var _0x25fa91=_0x3c99cc>0x1?void 0x0:_0x3c99cc?Nn(_0x53059d,_0x46e980):_0x53059d,_0x9f8d15=_0x5aaca6[_0x30dc64(0x179)]-0x1,_0x36a341;_0x9f8d15>=0x0;_0x9f8d15--)(_0x36a341=_0x5aaca6[_0x9f8d15])&&(_0x25fa91=_0x36a341(_0x25fa91)||_0x25fa91);return _0x25fa91;},Ue=(_0x26df7f,_0x2c9c93)=>(_0x1438fd,_0x1298ee)=>_0x2c9c93(_0x1438fd,_0x1298ee,_0x26df7f);let He=class extends _0x4bd602{constructor(_0x37249d,_0x507e60,_0x48d510){const _0x5d2304=_0x4cb6a4;super(),_(this,_0x5d2304(0x158),new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x5d2304(0x234),!0x1),(this[_0x5d2304(0x30f)]=_0x37249d,this[_0x5d2304(0x1d1)]=_0x507e60,this[_0x5d2304(0x109)]=_0x48d510);}[_0x4cb6a4(0xb7)](){const _0x18a133=_0x4cb6a4;this[_0x18a133(0x234)]=!0x0;}['enableLocalCache'](){const _0x123151=_0x4cb6a4;this[_0x123151(0x234)]=!0x1;}get[_0x4cb6a4(0x210)](){const _0x2804d6=_0x4cb6a4;return this[_0x2804d6(0x138)];}[_0x4cb6a4(0x17f)](){const _0x785770=_0x4cb6a4;this[_0x785770(0x18c)]()['then'](()=>super[_0x785770(0x17f)]());}async[_0x4cb6a4(0x139)](_0x558692){const _0x5d6918=_0x4cb6a4;return this[_0x5d6918(0x234)]?null:this['_localStorageService'][_0x5d6918(0x2cf)](_0x369636(_0x558692));}async[_0x4cb6a4(0x1be)](_0x6142a,_0x3d7acf){const _0x27cbb9=_0x4cb6a4;return!!this[_0x27cbb9(0x1d1)]['setItem'](_0x6142a,_0x3d7acf);}['updateOfflineData'](_0x577fa3,_0x1454cc,_0x43a384,_0x31ddf6){const _0x35864b=_0x4cb6a4,_0x69fb48=this[_0x35864b(0x109)][_0x35864b(0x226)](_0x577fa3);this[_0x35864b(0x158)][_0x35864b(0x187)](_0x577fa3,{'unitID':_0x577fa3,'type':_0x1454cc,'awaitingChangeset':_0x43a384,'mutations':_0x31ddf6,'rev':_0x69fb48}),this['_saveTaskMap'][_0x35864b(0x282)](_0x577fa3)||this[_0x35864b(0x12a)](_0x577fa3);}[_0x4cb6a4(0x12a)](_0x11332e){const _0x269434=_0x4cb6a4,_0x1aebf3=this['_getSaveTimeout']();_0x1aebf3===0x0?this[_0x269434(0x15c)](_0x11332e):this[_0x269434(0x138)]['set'](_0x11332e,setTimeout(()=>this['_saveCache'](_0x11332e),_0x1aebf3));}[_0x4cb6a4(0x180)](){const _0x6f1458=_0x4cb6a4;var _0x318433;return(_0x318433=this[_0x6f1458(0x30f)][_0x6f1458(0x182)](_0x5c878d))!=null?_0x318433:_0x4d3f49;}[_0x4cb6a4(0x15c)](_0x21f165){const _0x6199f9=_0x4cb6a4,_0x4fb5ba=this[_0x6199f9(0x138)]['get'](_0x21f165);return _0x4fb5ba!==void 0x0&&window['clearTimeout'](_0x4fb5ba),this[_0x6199f9(0x1d1)][_0x6199f9(0x12d)](_0x369636(_0x21f165),this[_0x6199f9(0x158)][_0x6199f9(0x242)](_0x21f165))['then'](()=>this['_saveTaskMap'][_0x6199f9(0x220)](_0x21f165));}async[_0x4cb6a4(0x18c)](){const _0x4b3bbc=_0x4cb6a4,_0x2a26dd=[];this['_saveTaskMap'][_0x4b3bbc(0xea)]((_0x481cf0,_0x4f061b)=>{const _0x369f3e=_0x4b3bbc;window[_0x369f3e(0xcc)](_0x481cf0),_0x2a26dd[_0x369f3e(0x163)](this[_0x369f3e(0x15c)](_0x4f061b)['then'](()=>{const _0x209c48=_0x369f3e;this[_0x209c48(0x138)]['delete'](_0x4f061b);}));}),await Promise[_0x4b3bbc(0x142)](_0x2a26dd);}};He=bn([Ue(0x0,_0x5f0f68),Ue(0x1,_0x51c183),Ue(0x2,_0x460697(_0xb9acf4))],He);class Ln extends _0x387d07{constructor(){const _0x45a3d3=_0x4cb6a4;super(),_(this,_0x45a3d3(0x1de)),this[_0x45a3d3(0x1de)]=_0x2fef3d(window,_0x45a3d3(0x2aa))[_0x45a3d3(0xcd)](_0x47dffc(this[_0x45a3d3(0x165)]),_0x6d9b4a(0x1),_0x583303(void 0x0));}[_0x4cb6a4(0x299)](_0x2438ff,_0x26dc06,_0x5c06ef=!0x1){const _0x4a0834=_0x4cb6a4,_0x23468a=new URL(window[_0x4a0834(0x237)][_0x4a0834(0x13f)]);_0x23468a[_0x4a0834(0x2dc)]['set'](_0x2438ff,_0x26dc06),_0x5c06ef?window[_0x4a0834(0x26a)][_0x4a0834(0x20a)]('','',_0x23468a[_0x4a0834(0x145)]()):window[_0x4a0834(0x26a)][_0x4a0834(0x147)]('','',_0x23468a[_0x4a0834(0x145)]());}[_0x4cb6a4(0x2b8)](_0x380528,_0x176d19=!0x1){const _0x3df9d6=_0x4cb6a4,_0x234e58=new URL(window[_0x3df9d6(0x237)][_0x3df9d6(0x13f)]);_0x234e58[_0x3df9d6(0x2dc)][_0x3df9d6(0x220)](_0x380528),_0x176d19?window[_0x3df9d6(0x26a)][_0x3df9d6(0x20a)]('','',_0x234e58['toString']()):window[_0x3df9d6(0x26a)][_0x3df9d6(0x147)]('','',_0x234e58[_0x3df9d6(0x145)]());}[_0x4cb6a4(0x1cc)](_0x5bcc1d){const _0x36b476=_0x4cb6a4;var _0x26c8b0;return(_0x26c8b0=new URL(window[_0x36b476(0x237)][_0x36b476(0x13f)])[_0x36b476(0x2dc)][_0x36b476(0x242)](_0x5bcc1d))!=null?_0x26c8b0:void 0x0;}}var Un=Object[_0x4cb6a4(0x25f)],Mn=Object['getOwnPropertyDescriptor'],An=(_0x32a0b3,_0x3f88d7,_0x2d1c86)=>_0x3f88d7 in _0x32a0b3?Un(_0x32a0b3,_0x3f88d7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d1c86}):_0x32a0b3[_0x3f88d7]=_0x2d1c86,Pn=(_0x58424a,_0x168318,_0x2bdac1,_0x2099ea)=>{const _0x176bd0=_0x4cb6a4;for(var _0x1ea183=_0x2099ea>0x1?void 0x0:_0x2099ea?Mn(_0x168318,_0x2bdac1):_0x168318,_0xe096c8=_0x58424a[_0x176bd0(0x179)]-0x1,_0x5708e1;_0xe096c8>=0x0;_0xe096c8--)(_0x5708e1=_0x58424a[_0xe096c8])&&(_0x1ea183=_0x5708e1(_0x1ea183)||_0x1ea183);return _0x1ea183;},Me=(_0x58dab8,_0x4470ae)=>(_0x3404ce,_0xc0308)=>_0x4470ae(_0x3404ce,_0xc0308,_0x58dab8),wn=(_0xb6c93c,_0x4ccf08,_0x3c6786)=>An(_0xb6c93c,_0x4ccf08+'',_0x3c6786);const yn=_0x4cb6a4(0x1c5);let Ye=class extends _0x28da11{constructor(_0x5796bb=_t,_0x585653,_0x26f5ed,_0x44ba87){const _0x52e852=_0x4cb6a4;super(),this['_config']=_0x5796bb,this[_0x52e852(0x19c)]=_0x585653,this[_0x52e852(0x14d)]=_0x26f5ed,this['_configService']=_0x44ba87;const {..._0x393c8e}=_0xa68d8e({},_t,this[_0x52e852(0x1a6)]);this[_0x52e852(0x30f)][_0x52e852(0xeb)](hn,_0x393c8e);}[_0x4cb6a4(0x255)](){const _0x30e801=_0x4cb6a4;this['_registerDependencies'](),this[_0x30e801(0x224)]();}[_0x4cb6a4(0x11d)](){const _0x1e2345=_0x4cb6a4;this[_0x1e2345(0x2ae)]();}[_0x4cb6a4(0x14c)](){const _0xae1b75=_0x4cb6a4;var _0x5947c3;const _0x59964f=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x23856e,{'useClass':_0x990071}],[_0xa76635,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0xae1b75(0x1a6)]['enableFrontendLog']&&_0x59964f[_0xae1b75(0x163)]([le]),_0x26af39(this[_0xae1b75(0x14d)],_0x3aa7dc(_0x59964f,(_0x5947c3=this[_0xae1b75(0x1a6)])==null?void 0x0:_0x5947c3[_0xae1b75(0x2bb)]));}[_0x4cb6a4(0x2ae)](){const _0x57ea78=_0x4cb6a4;this[_0x57ea78(0x1b2)](this['_renderManagerService'][_0x57ea78(0xfa)](_0xaccedf[_0x57ea78(0x2f7)],[Fe])),this[_0x57ea78(0x1b2)](this[_0x57ea78(0x19c)][_0x57ea78(0xfa)](_0xaccedf[_0x57ea78(0xd5)],[ke]));}['_initDependencies'](){const _0x1ee4be=_0x4cb6a4;_0x234a72(this[_0x1ee4be(0x14d)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this['_config'][_0x1ee4be(0x1fc)]&&_0x234a72(this[_0x1ee4be(0x14d)],[[le]]);}};wn(Ye,_0x4cb6a4(0x29e),yn),Ye=Pn([_0x53ddfc(_0x296643),Me(0x1,_0x591858),Me(0x2,_0x460697(_0x307bfd)),Me(0x3,_0x5f0f68)],Ye);var $n=Object[_0x4cb6a4(0x1ed)],xn=(_0x2b41f2,_0x26dfc4,_0x5857e5,_0x580b69)=>{const _0x3e090e=_0x4cb6a4;for(var _0x25482e=_0x580b69>0x1?void 0x0:_0x580b69?$n(_0x26dfc4,_0x5857e5):_0x26dfc4,_0x576d92=_0x2b41f2[_0x3e090e(0x179)]-0x1,_0x3a7a14;_0x576d92>=0x0;_0x576d92--)(_0x3a7a14=_0x2b41f2[_0x576d92])&&(_0x25482e=_0x3a7a14(_0x25482e)||_0x25482e);return _0x25482e;},J=(_0x376546,_0x309c34)=>(_0x37e4f9,_0xe04a4c)=>_0x309c34(_0x37e4f9,_0xe04a4c,_0x376546);let ut=class extends _0x34b517{constructor(_0x1f2c24,_0x353076,_0x58ad33,_0x4106ef,_0x4d2354){super(_0x1f2c24,_0x353076,_0x58ad33,_0x4106ef,_0x4d2354);}async[_0x4cb6a4(0x140)](_0x2b4193){const _0x4e1939=_0x4cb6a4,_0x290d50=await this[_0x4e1939(0x214)](),_0x25432b=this['_createSocketURL'](_0x2b4193,_0x290d50);return this['_doCreateSocket'](_0x25432b);}[_0x4cb6a4(0x25a)](_0x45209c,_0xa30700){const _0x50f43a=_0x4cb6a4,_0x456681=typeof window>'u'?new URL(_0x45209c):new URL(_0x45209c,window[_0x50f43a(0x237)][_0x50f43a(0x285)]);_0x456681[_0x50f43a(0x2dc)][_0x50f43a(0x187)](_0x50f43a(0x2be),_0xa30700);const _0x4df3bf=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x50f43a(0x237)][_0x50f43a(0x264)]);return _0x4df3bf[_0x50f43a(0x242)]('runId')&&_0x456681[_0x50f43a(0x2dc)]['set'](_0x50f43a(0x245),_0x4df3bf[_0x50f43a(0x242)](_0x50f43a(0x245))),_0x456681[_0x50f43a(0x145)]();}async[_0x4cb6a4(0x214)](){const _0x475fd5=_0x4cb6a4;var _0x42281a,_0x398d5d,_0x4be436;const _0x4f54f3=this[_0x475fd5(0x30f)][_0x475fd5(0x182)](_0x588807),_0x494ddc=(_0x42281a=_0x4f54f3==null?void 0x0:_0x4f54f3[_0x475fd5(0x144)])!=null?_0x42281a:_0x39fb0c;return(_0x4be436=(_0x398d5d=(await this[_0x475fd5(0x1f1)][_0x475fd5(0x242)](_0x494ddc,{'headers':{'Content-Type':_0x475fd5(0x117)}}))['body'])==null?void 0x0:_0x398d5d[_0x475fd5(0x2b1)])!=null?_0x4be436:'';}};ut=xn([J(0x0,_0x460697(_0x307bfd)),J(0x1,_0x460697(_0x3f1253)),J(0x2,_0x5f0f68),J(0x3,_0x21d8d8),J(0x4,_0x431961)],ut);var Bn=Object[_0x4cb6a4(0x1ed)],Fn=(_0x1800d7,_0x2f13cd,_0xd08845,_0x1073a5)=>{const _0x1bffd1=_0x4cb6a4;for(var _0x1a7654=_0x1073a5>0x1?void 0x0:_0x1073a5?Bn(_0x2f13cd,_0xd08845):_0x2f13cd,_0x119b31=_0x1800d7[_0x1bffd1(0x179)]-0x1,_0x4265e2;_0x119b31>=0x0;_0x119b31--)(_0x4265e2=_0x1800d7[_0x119b31])&&(_0x1a7654=_0x4265e2(_0x1a7654)||_0x1a7654);return _0x1a7654;},Ae=(_0x3d650d,_0x6d9775)=>(_0x48004f,_0x5352bd)=>_0x6d9775(_0x48004f,_0x5352bd,_0x3d650d);let dt=class extends _0x4bd602{constructor(_0x392990,_0x321a8e,_0x6ff102){const _0x3587f8=_0x4cb6a4;super(),this[_0x3587f8(0x19d)]=_0x392990,this[_0x3587f8(0x1f1)]=_0x321a8e,this[_0x3587f8(0x30f)]=_0x6ff102;}async[_0x4cb6a4(0x311)](_0x4a0335,_0x2c7b7f,_0x8b0fc1,..._0x293fb7){const _0x4ad288=_0x4cb6a4;var _0x28340a,_0x32e228,_0x97f408,_0x3b3b9c;const _0x296352=this[_0x4ad288(0x19d)]['getFocusedUnit']();if(!_0x296352)throw new Error(_0x4ad288(0x2ad));const _0x30caee=((_0x28340a=this[_0x4ad288(0x30f)][_0x4ad288(0x182)](_0x24ab76))!=null?_0x28340a:_0xc9a869)+'/'+_0x4a0335+'/run/'+_0x2c7b7f,_0x35b7fb=new URL(window[_0x4ad288(0x237)][_0x4ad288(0x13f)]),_0x258ec5={'scriptId':_0x4a0335,'runId':(_0x32e228=_0x35b7fb[_0x4ad288(0x2dc)][_0x4ad288(0x242)](_0x4ad288(0x245)))!=null?_0x32e228:'','function':_0x2c7b7f,'unitId':_0x296352[_0x4ad288(0x2d8)](),'argsOfFunction':JSON['stringify'](_0x293fb7),'invokeId':(_0x97f408=_0x8b0fc1[_0x4ad288(0x253)])!=null?_0x97f408:'','executionId':(_0x3b3b9c=_0x8b0fc1[_0x4ad288(0x29b)])!=null?_0x3b3b9c:''};try{const _0x4e8040=await this['_httpService'][_0x4ad288(0x10d)](_0x30caee,{'body':_0x258ec5});return _0x4e8040[_0x4ad288(0x26f)][_0x4ad288(0x309)]&&_0x4e8040[_0x4ad288(0x26f)][_0x4ad288(0x309)]['code']!==Z['OK']?_0x4ad288(0x124):_0x4e8040['body']['result'];}catch{return'Failed';}}};dt=Fn([Ae(0x0,_0x14cde1),Ae(0x1,_0x460697(_0x3f1253)),Ae(0x2,_0x5f0f68)],dt);const St=0x7530,It=_0x4cb6a4(0x228);class rr extends _0x4bd602{constructor(){const _0x100ecf=_0x4cb6a4;super(),_(this,_0x100ecf(0xd1),_0x3bf90d()),_(this,_0x100ecf(0xdd),new Set()),_(this,_0x100ecf(0x243),new Map()),_(this,'_heartbeatTimer',null),_(this,'_clearOtherTimers',new Map()),_(this,_0x100ecf(0x28c),new Map()),this[_0x100ecf(0x2ce)]();}['dispose'](){const _0x542295=_0x4cb6a4;super[_0x542295(0x17f)](),this[_0x542295(0xd2)][_0x542295(0xea)]((_0x3ac7e2,_0x9388a8)=>this[_0x542295(0x1cb)](_0x9388a8)),this[_0x542295(0xc4)]&&window[_0x542295(0x293)](this[_0x542295(0xc4)]);}[_0x4cb6a4(0xc1)](_0x46df3e){const _0x46474c=_0x4cb6a4;return this[_0x46474c(0x2ca)](_0x46df3e)['pipe'](_0x3c4859());}['editingUnit'](_0x481d31){const _0x3063dc=_0x4cb6a4;this[_0x3063dc(0xdd)][_0x3063dc(0x219)]===0x0&&this['_scheduleHeartbeat'](),this[_0x3063dc(0xdd)][_0x3063dc(0x205)](_0x481d31),this['_send']({'type':0x0,'memberID':this[_0x3063dc(0xd1)],'unitIDs':[_0x481d31],'isForwarded':!0x1});}[_0x4cb6a4(0xd8)](_0x5ad998){const _0x4b0c15=_0x4cb6a4;this[_0x4b0c15(0xdd)]['delete'](_0x5ad998),this['_selfUnitIDs'][_0x4b0c15(0x219)]===0x0&&this[_0x4b0c15(0xc4)]&&window[_0x4b0c15(0x293)](this[_0x4b0c15(0xc4)]);}[_0x4cb6a4(0x2ce)](){const _0x2b6abb=_0x4cb6a4;this['disposeWithMe'](_0xb8c0(_0x2fef3d(window,_0x2b6abb(0x2c5))[_0x2b6abb(0x13b)](_0x55cec1=>{const _0x583c99=_0x2b6abb;if(_0x55cec1['key']!==It||!_0x55cec1[_0x583c99(0x112)])return;const _0x4cc663=JSON[_0x583c99(0x25d)](_0x55cec1[_0x583c99(0x112)]);this[_0x583c99(0x19b)](_0x4cc663);}))),window[_0x2b6abb(0x258)](_0x2b6abb(0x1e4),()=>this[_0x2b6abb(0xcb)]({'type':0x1,'memberID':this[_0x2b6abb(0xd1)],'unitIDs':Array['from'](this[_0x2b6abb(0xdd)])}));}[_0x4cb6a4(0x19b)](_0x5d2e37){const _0x34e243=_0x4cb6a4;switch(_0x5d2e37[_0x34e243(0x17e)]){case 0x0:this['_handleJoinEvent'](_0x5d2e37);break;case 0x1:this[_0x34e243(0xca)](_0x5d2e37);break;case 0x2:this[_0x34e243(0x2da)](_0x5d2e37);break;}}['_handleJoinEvent'](_0x358476){const _0x29c872=_0x4cb6a4,{unitIDs:_0x5a022c,memberID:_0x190177,isForwarded:_0x409817}=_0x358476;_0x5a022c[_0x29c872(0xea)](_0x25cf2d=>{const _0x94db12=_0x29c872;if(!_0x409817&&this[_0x94db12(0x243)][_0x94db12(0x282)](_0x25cf2d)&&this['_ensureSubject'](_0x25cf2d)[_0x94db12(0x30d)](_0x5cb507[_0x94db12(0xc6)]),!this[_0x94db12(0x243)]['has'](_0x25cf2d)||!this[_0x94db12(0x243)][_0x94db12(0x242)](_0x25cf2d)['has'](_0x190177)){const _0x1a7aa1=this[_0x94db12(0x243)][_0x94db12(0x242)](_0x25cf2d)||new Set();_0x1a7aa1[_0x94db12(0x205)](_0x190177),this[_0x94db12(0x243)]['set'](_0x25cf2d,_0x1a7aa1),this[_0x94db12(0x176)](_0x190177);}}),_0x409817||this['_send']({'type':0x0,'memberID':this[_0x29c872(0xd1)],'unitIDs':[...this[_0x29c872(0xdd)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x28130d){const _0x404e17=_0x4cb6a4;this[_0x404e17(0x1cb)](_0x28130d);const _0x4c85c0=window[_0x404e17(0x238)](()=>{const _0x29d2bd=_0x404e17;this[_0x29d2bd(0x243)][_0x29d2bd(0xea)](_0x1c56d5=>{const _0x534f02=_0x29d2bd;_0x1c56d5[_0x534f02(0x220)](_0x28130d);});},St*0x2);this[_0x404e17(0xd2)][_0x404e17(0x187)](_0x28130d,_0x4c85c0);}['_removeClearOtherTimer'](_0x2264c2){const _0xd9cc5f=_0x4cb6a4;if(this['_clearOtherTimers'][_0xd9cc5f(0x282)](_0x2264c2)){const _0x4e2eb4=this[_0xd9cc5f(0xd2)]['get'](_0x2264c2);_0x4e2eb4&&window[_0xd9cc5f(0xcc)](_0x4e2eb4),this[_0xd9cc5f(0xd2)][_0xd9cc5f(0x187)](_0x2264c2,null);}}['_handleLeaveEvent'](_0xd1c248){const _0x43e0cf=_0x4cb6a4,{memberID:_0x18ac26,unitIDs:_0x440736}=_0xd1c248;_0x440736[_0x43e0cf(0xea)](_0x2242e5=>{const _0x55b8c3=_0x43e0cf;var _0x446c36;const _0x5c9e72=this[_0x55b8c3(0x243)][_0x55b8c3(0x242)](_0x2242e5);_0x5c9e72&&(_0x5c9e72[_0x55b8c3(0x220)](_0x18ac26),(_0x446c36=this[_0x55b8c3(0x2ca)](_0x2242e5))==null||_0x446c36[_0x55b8c3(0x30d)](_0x5c9e72[_0x55b8c3(0x219)]===0x0?_0x5cb507[_0x55b8c3(0x1ee)]:_0x5cb507[_0x55b8c3(0xc6)]));}),this[_0x43e0cf(0x1cb)](_0x18ac26);}[_0x4cb6a4(0x2da)](_0x66e3ab){const _0x444606=_0x4cb6a4;this[_0x444606(0x176)](_0x66e3ab[_0x444606(0x18a)]);}[_0x4cb6a4(0xcb)](_0x22e822){const _0x4120ef=_0x4cb6a4;localStorage['setItem'](It,JSON[_0x4120ef(0x181)](_0x22e822));}[_0x4cb6a4(0x1b5)](){const _0x3da3e8=_0x4cb6a4;this[_0x3da3e8(0xc4)]=window[_0x3da3e8(0x209)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},St);}[_0x4cb6a4(0x2ca)](_0x254885){const _0x24f1c0=_0x4cb6a4;return this['_unitStatus']['has'](_0x254885)||this['_unitStatus'][_0x24f1c0(0x187)](_0x254885,new _0x5e0fc0(_0x5cb507['NO_OTHER_CLIENTS_EDITING'])),this[_0x24f1c0(0x28c)]['get'](_0x254885);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
1
+ const _0x2234f4=_0x34ce;(function(_0x57d19a,_0x5af446){const _0x38c640=_0x34ce,_0x5b38d8=_0x57d19a();while(!![]){try{const _0x53570d=-parseInt(_0x38c640(0x2ac))/0x1*(-parseInt(_0x38c640(0x376))/0x2)+-parseInt(_0x38c640(0x2f8))/0x3+parseInt(_0x38c640(0x390))/0x4+-parseInt(_0x38c640(0x32d))/0x5+parseInt(_0x38c640(0x38c))/0x6+parseInt(_0x38c640(0x246))/0x7*(parseInt(_0x38c640(0x2c8))/0x8)+-parseInt(_0x38c640(0x319))/0x9;if(_0x53570d===_0x5af446)break;else _0x5b38d8['push'](_0x5b38d8['shift']());}catch(_0x187882){_0x5b38d8['push'](_0x5b38d8['shift']());}}}(_0x4659,0x7d2e0));var Yt=Object[_0x2234f4(0x18a)],Wt=(_0x1b92f5,_0x4aed0b,_0x47f847)=>_0x4aed0b in _0x1b92f5?Yt(_0x1b92f5,_0x4aed0b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x47f847}):_0x1b92f5[_0x4aed0b]=_0x47f847,_=(_0x528000,_0x1f0b34,_0x50220b)=>Wt(_0x528000,typeof _0x1f0b34!=_0x2234f4(0x34a)?_0x1f0b34+'':_0x1f0b34,_0x50220b);import{jsx as _0x371a71,jsxs as _0x58337f}from'react/jsx-runtime';import{CollaborationStatus as _0x27f566,CollaborationSessionService as _0x7164ac,CollaborationController as _0x54f68d,DataLoaderService as _0x1c94a5,MemberService as _0x4eca94,SessionStatus as _0x53f485,ILocalCacheService as _0xcdb955,CollaborationUIEventService as _0x40529c,CollaborationUIEventId as _0x6c7f9c,DocCollaborationEntity as _0x301172,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x5bd5ca,getLocalCacheKey as _0x9d06b7,LOCAL_CACHE_INTERVAL as _0x40ab83,LOCAL_CACHE_INTERVAL_KEY as _0x4f1f3d,UniverCollaborationClientPlugin as _0x56a2f6,CollaborationSocketService as _0x5505d2,DEFAULT_WS_SESSION_TICKET_URL as _0x1158ce,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x1d0eb9,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x55c3a5,UnitStatus as _0x5cd56a}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x5c8592,IUniverInstanceService as _0x717147,Inject as _0xd1a258,Injector as _0x4075d0,Disposable as _0x451219,createIdentifier as _0x49a48f,ILogService as _0x5d513a,ICommandService as _0xe14216,Optional as _0x23f3c8,RxDisposable as _0x2f4832,Workbook as _0x1307be,DOC_RANGE_TYPE as _0x5bc3df,debounce as _0x4564b6,Rectangle as _0x2f8a98,DisposableCollection as _0x5a1325,toDisposable as _0x3640fe,UniverInstanceType as _0x5722a6,generateRandomId as _0x29e4dc,COLORS as _0x5c9a54,ColorKit as _0x4dd5d8,ThemeService as _0x58053e,fromEventSubject as _0x260481,Tools as _0x8e5b3b,CommandType as _0x5c096d,IConfigService as _0x3a2d6e,CanceledError as _0x299f8a,isFormulaString as _0x4bac35,isFormulaId as _0x520265,ILocalStorageService as _0x267ca5,DependentOn as _0x1afb5d,Plugin as _0x3a561a,merge as _0x51a3b6,registerDependencies as _0x232947,mergeOverrideWithDependencies as _0x5c568a,touchDependencies as _0x2ad356}from'@univerjs/core';import{useObservable as _0x2a6826,useDependency as _0x32782a,IUIPartsService as _0x4c1aca,BuiltInUIPart as _0x4d41b4,connectInjector as _0x53a3b9,IBeforeCloseService as _0x35fbb7,IMessageService as _0x1de295,INotificationService as _0x2a6254}from'@univerjs/ui';import{BehaviorSubject as _0x40aa62,switchMap as _0xa5b9ec,of as _0x472e7c,takeUntil as _0x49b716,debounceTime as _0x2b5361,Subject as _0x5307ea,filter as _0x29bcb5,merge as _0x2da9e0,combineLatest as _0xc2e36,fromEvent as _0x51b723,shareReplay as _0x1a0d46,mapTo as _0x1d319f,distinctUntilChanged as _0x113cfc}from'rxjs';import{Tooltip as _0xdf4ba9,clsx as _0x2c4f7d,MessageType as _0x47fe57}from'@univerjs/design';import{useRef as _0x1b0990,createElement as _0xdf542c,forwardRef as _0xcfd65f,useCallback as _0x71cc8e}from'react';import{IRemoteInstanceService as _0x5e2fc8}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x2dfe3b,RefRangeService as _0x13933c,SetSelectionsOperation as _0x5d35a5,SheetsSelectionsService as _0x72d1aa,EffectRefRangId as _0x494297,handleIRemoveRow as _0x46ec99,handleIRemoveCol as _0x3e4b3b,handleMoveRange as _0x133c7f,handleInsertRow as _0x2a54d5,handleInsertRangeMoveRight as _0x4a5ab7,handleInsertRangeMoveDown as _0x1abe67,handleInsertCol as _0x15b634,handleDeleteRangeMoveUp as _0x568141,handleDeleteRangeMoveLeft as _0x21a5ff,runRefRangeMutations as _0x4ca24b}from'@univerjs/sheets';import{Shape as _0x7274bf,Rect as _0x412f0f,getColor as _0x5da4d8,RegularPolygon as _0x1f3457,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x5c7d16,Vector2 as _0x9fdc2,SHEET_VIEWPORT_KEY as _0x3f9e69,IRenderManagerService as _0x5a59d5}from'@univerjs/engine-render';import{HTTPService as _0x185939,ISocketService as _0xe1ac11,WebSocketService as _0x16eb47}from'@univerjs/network';import{IDocClipboardService as _0x1c84f5,NodePositionConvertToCursor as _0x206233,NodePositionConvertToRectRange as _0x3d6ec8,TEXT_RANGE_LAYER_INDEX as _0xf3ffb1,SetDocZoomRatioOperation as _0x449456,DocIMEInputManagerService as _0x29a072,DocStateChangeManagerService as _0x569f77}from'@univerjs/docs-ui';import{IImageIoService as _0x4b58e5}from'@univerjs/drawing';import{ITransformService as _0x494dd8,CollaborationEvent as _0x963d39,isTransformMutationFailure as _0x56152a,isTransformMutationsWithChangesetSuccess as _0x34ce1a,RevisionService as _0x1467ff,ISnapshotServerService as _0x43b657}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x2a6957,RichTextEditingMutation as _0x11c787,DocSelectionManagerService as _0x121fc3,DocSkeletonManagerService as _0x6f3011}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x55c289,serializeRangeWithSheet as _0x2bb013,FormulaExecuteStageType as _0x591a78,FormulaExecutedStateType as _0xa5aeb1,SetFormulaCalculationStartMutation as _0x569dd4,SetFormulaCalculationNotificationMutation as _0x344bbd}from'@univerjs/engine-formula';import{map as _0x20745,filter as _0x38a933,throttleTime as _0x7a1734,takeUntil as _0x5364bd,switchMap as _0x384c74}from'rxjs/operators';import{SheetSkeletonManagerService as _0x43ba20,getCoordByCell as _0x253e23,getSheetObject as _0x5bbea2}from'@univerjs/sheets-ui';function Ge({ref:_0xb45f3d,..._0x288cd3}){const _0x380678=_0x2234f4,{icon:_0x55e4c4,id:_0xd1cb5f,className:_0x49b175,extend:_0x28f211,..._0x598ef7}=_0x288cd3,_0x1bf39c=(_0x380678(0x338)+_0xd1cb5f+'\x20'+(_0x49b175||''))[_0x380678(0x29e)](),_0x3f00d9=_0x1b0990('_'+vi());return At(_0x55e4c4,''+_0xd1cb5f,{'defIds':_0x55e4c4[_0x380678(0x2c3)],'idSuffix':_0x3f00d9[_0x380678(0x1a8)]},{'ref':_0xb45f3d,'className':_0x1bf39c,..._0x598ef7},_0x28f211);}function At(_0x34259c,_0x23a443,_0x138857,_0x18f1de,_0x341a95){const _0x3a16a7=_0x2234f4;return _0xdf542c(_0x34259c['tag'],{'key':_0x23a443,...gi(_0x34259c,_0x138857,_0x341a95),..._0x18f1de},(Ei(_0x34259c,_0x138857)[_0x3a16a7(0x2f0)]||[])[_0x3a16a7(0x386)]((_0x55910e,_0x3e43c3)=>At(_0x55910e,_0x23a443+'-'+_0x34259c['tag']+'-'+_0x3e43c3,_0x138857,void 0x0,_0x341a95)));}function gi(_0x52b0aa,_0x268e11,_0x18d2cb){const _0x30f21f=_0x2234f4,_0x25fa2d={..._0x52b0aa[_0x30f21f(0x17f)]};_0x18d2cb!=null&&_0x18d2cb['colorChannel1']&&_0x25fa2d[_0x30f21f(0x198)]===_0x30f21f(0x347)&&(_0x25fa2d[_0x30f21f(0x198)]=_0x18d2cb['colorChannel1']),_0x52b0aa[_0x30f21f(0x24a)]===_0x30f21f(0x342)&&_0x25fa2d['id']&&(_0x25fa2d['id']=_0x25fa2d['id']+_0x268e11[_0x30f21f(0x178)]),Object['entries'](_0x25fa2d)[_0x30f21f(0x32f)](([_0x21041b,_0x104b87])=>{const _0x385034=_0x30f21f;_0x21041b===_0x385034(0x342)&&typeof _0x104b87=='string'&&(_0x25fa2d[_0x21041b]=_0x104b87['replace'](/url\(#(.*)\)/,'url(#$1'+_0x268e11[_0x385034(0x178)]+')'));});const {defIds:_0x5acda9}=_0x268e11;return!_0x5acda9||_0x5acda9[_0x30f21f(0x31d)]===0x0||(_0x52b0aa[_0x30f21f(0x24a)]===_0x30f21f(0x1e0)&&_0x25fa2d[_0x30f21f(0x1b8)]&&(_0x25fa2d[_0x30f21f(0x1b8)]=_0x25fa2d[_0x30f21f(0x1b8)]+_0x268e11[_0x30f21f(0x178)]),Object[_0x30f21f(0x2bb)](_0x25fa2d)[_0x30f21f(0x32f)](([_0x25a9ae,_0x40647d])=>{const _0x2dbb90=_0x30f21f;typeof _0x40647d=='string'&&(_0x25fa2d[_0x25a9ae]=_0x40647d['replace'](/url\(#(.*)\)/,_0x2dbb90(0x279)+_0x268e11[_0x2dbb90(0x178)]+')'));})),_0x25fa2d;}function Ei(_0x31cfcf,_0x240a2a){const _0x55cc2c=_0x2234f4;var _0x4a2094;const {defIds:_0x1a4519}=_0x240a2a;return!_0x1a4519||_0x1a4519[_0x55cc2c(0x31d)]===0x0?_0x31cfcf:_0x31cfcf['tag']===_0x55cc2c(0x2f5)&&((_0x4a2094=_0x31cfcf['children'])!=null&&_0x4a2094[_0x55cc2c(0x31d)])?{..._0x31cfcf,'children':_0x31cfcf[_0x55cc2c(0x2f0)][_0x55cc2c(0x386)](_0x1ff54c=>typeof _0x1ff54c[_0x55cc2c(0x17f)]['id']==_0x55cc2c(0x38f)&&_0x1a4519&&_0x1a4519[_0x55cc2c(0x38d)](_0x1ff54c[_0x55cc2c(0x17f)]['id'])?{..._0x1ff54c,'attrs':{..._0x1ff54c[_0x55cc2c(0x17f)],'id':_0x1ff54c['attrs']['id']+_0x240a2a[_0x55cc2c(0x178)]}}:_0x1ff54c)}:_0x31cfcf;}function _0x34ce(_0x16bc32,_0x3b3dbc){_0x16bc32=_0x16bc32-0x13d;const _0x4659e9=_0x4659();let _0x34ce70=_0x4659e9[_0x16bc32];return _0x34ce70;}function vi(){const _0x21c44f=_0x2234f4;return Math[_0x21c44f(0x1df)]()['toString'](0x24)[_0x21c44f(0x351)](0x2,0x8);}Ge['displayName']=_0x2234f4(0x2a8);const pi={'tag':_0x2234f4(0x224),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x2234f4(0x28c),'width':'1em','height':_0x2234f4(0x23e)},'children':[{'tag':'g','attrs':{'clipPath':_0x2234f4(0x22a)},'children':[{'tag':_0x2234f4(0x33c),'attrs':{'stroke':_0x2234f4(0x19e),'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':_0x2234f4(0x1ce),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2234f4(0x2f5),'attrs':{},'children':[{'tag':_0x2234f4(0x1d0),'attrs':{'id':_0x2234f4(0x2f1)},'children':[{'tag':_0x2234f4(0x33c),'attrs':{'fill':_0x2234f4(0x231),'d':_0x2234f4(0x333)}}]}]}],'defIds':[_0x2234f4(0x2f1)]},Pt=_0xcfd65f(function(_0x1cff24,_0xf6457a){const _0x583fda=_0x2234f4;return _0xdf542c(Ge,Object[_0x583fda(0x30b)]({},_0x1cff24,{'id':_0x583fda(0x343),'ref':_0xf6457a,'icon':pi}));});Pt[_0x2234f4(0x2b8)]=_0x2234f4(0x264);const Oi={'tag':_0x2234f4(0x224),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2234f4(0x13d),'viewBox':_0x2234f4(0x1db),'width':'1em','height':_0x2234f4(0x23e)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x2234f4(0x33c),'attrs':{'stroke':'currentColor','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':_0x2234f4(0x1ce),'strokeLinejoin':_0x2234f4(0x1ce),'strokeWidth':1.2}}]},{'tag':_0x2234f4(0x2f5),'attrs':{},'children':[{'tag':_0x2234f4(0x1d0),'attrs':{'id':_0x2234f4(0x220)},'children':[{'tag':_0x2234f4(0x33c),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':['on-line-icon_clip0_910_349']},wt=_0xcfd65f(function(_0x1816e0,_0x537bb3){const _0x4120dc=_0x2234f4;return _0xdf542c(Ge,Object[_0x4120dc(0x30b)]({},_0x1816e0,{'id':_0x4120dc(0x252),'ref':_0x537bb3,'icon':Oi}));});wt[_0x2234f4(0x2b8)]=_0x2234f4(0x165);function Ti(_0x4d622c){const _0x18a818=_0x2234f4;switch(_0x4d622c){case _0x27f566['OFFLINE']:return _0x18a818(0x374);case _0x27f566[_0x18a818(0x1d6)]:return _0x18a818(0x18e);case _0x27f566[_0x18a818(0x2a3)]:return _0x18a818(0x259);case _0x27f566[_0x18a818(0x164)]:return'collabStatus.notCollab';case _0x27f566[_0x18a818(0x177)]:case _0x27f566[_0x18a818(0x1d5)]:return'collabStatus.syncing';case _0x27f566[_0x18a818(0x24f)]:case _0x27f566['PENDING']:return'collabStatus.synced';}}function Ci(_0x371e4b){const _0x33e204=_0x2234f4,{status$:_0x19f7a7}=_0x371e4b,_0x5bc46a=_0x2a6826(_0x19f7a7,_0x27f566[_0x33e204(0x164)]),_0x12a74d=_0x32782a(_0x5c8592),_0x199085=_0x32782a(_0x7164ac),_0x22ac39=_0x5bc46a!==_0x27f566['OFFLINE'],_0xab2ad7=_0x12a74d['t'](Ti(_0x5bc46a)),_0x5d864f=_0x22ac39?_0x371a71(wt,{}):_0x371a71(Pt,{}),_0x42488d=_0x71cc8e(()=>{_0x22ac39||_0x199085['reconnect']();},[_0x22ac39,_0x199085]);function _0x336924(){const _0x4cbb97=_0x33e204;return _0x58337f(_0x4cbb97(0x22f),{'className':'univer-flex\x20univer-items-center','onClick':_0x42488d,'children':[_0x371a71('div',{'className':_0x2c4f7d('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x22ac39,'univer-text-red-500':!_0x22ac39}),'children':_0x5d864f}),_0x371a71(_0x4cbb97(0x22f),{'className':_0x4cbb97(0x33d),'children':_0xab2ad7})]});}return _0x22ac39?_0x336924():_0x371a71(_0xdf4ba9,{'title':_0x12a74d['t'](_0x33e204(0x1f1)),'children':_0x336924()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0x3e852d,_0x447740,_0x47a04a,_0x2c32ca)=>{const _0x3272dd=_0x2234f4;for(var _0x29fbb2=_0x2c32ca>0x1?void 0x0:_0x2c32ca?Ri(_0x447740,_0x47a04a):_0x447740,_0x106fcc=_0x3e852d[_0x3272dd(0x31d)]-0x1,_0x44bac8;_0x106fcc>=0x0;_0x106fcc--)(_0x44bac8=_0x3e852d[_0x106fcc])&&(_0x29fbb2=_0x44bac8(_0x29fbb2)||_0x29fbb2);return _0x29fbb2;},se=(_0x125056,_0x3a2697)=>(_0x4719b2,_0x3f11c0)=>_0x3a2697(_0x4719b2,_0x3f11c0,_0x125056);let ae=class extends _0x451219{constructor(_0x4fc6ae,_0x3c650e,_0x9449a5,_0x1e6e60){const _0x83b9f4=_0x2234f4;super(),_(this,_0x83b9f4(0x153),new _0x40aa62(_0x27f566[_0x83b9f4(0x164)])),(this[_0x83b9f4(0x275)]=_0x4fc6ae,this[_0x83b9f4(0x1e1)]=_0x3c650e,this['_collaborationController']=_0x9449a5,this[_0x83b9f4(0x206)]=_0x1e6e60,this[_0x83b9f4(0x217)](),this[_0x83b9f4(0x36c)]());}['_initStatusListener'](){const _0x4972a4=_0x2234f4;this[_0x4972a4(0x1f0)](this[_0x4972a4(0x275)][_0x4972a4(0x341)][_0x4972a4(0x277)](_0xa5b9ec(()=>{const _0x535ef7=_0x4972a4,_0x1b2ea9=this['_univerInstanceService'][_0x535ef7(0x367)]();return _0x1b2ea9?this[_0x535ef7(0x191)][_0x535ef7(0x1ec)](_0x1b2ea9[_0x535ef7(0x26e)]()):_0x472e7c(null);}),_0xa5b9ec(_0x14d98f=>_0x14d98f?_0x14d98f[_0x4972a4(0x369)]:_0x472e7c(_0x27f566['NOT_COLLAB'])))[_0x4972a4(0x190)](_0x3d9647=>{const _0x3b6732=_0x4972a4;this['_status$'][_0x3b6732(0x37e)](_0x3d9647);}));}['_initStatusComponent'](){const _0x35088f=_0x2234f4;this['disposeWithMe'](this[_0x35088f(0x206)][_0x35088f(0x25c)](_0x4d41b4[_0x35088f(0x247)],()=>_0x53a3b9(Ni({'status$':this['_status$']['asObservable']()}),this[_0x35088f(0x1e1)])));}};ae=Di([se(0x0,_0x717147),se(0x1,_0xd1a258(_0x4075d0)),se(0x2,_0xd1a258(_0x54f68d)),se(0x3,_0x4c1aca)],ae);function Ni(_0x3520a0){const {status$:_0x1c2024}=_0x3520a0;return function(){return _0x371a71(Ci,{'status$':_0x1c2024});};}const yt=_0x49a48f('uni.network.url-service');var bi=Object['getOwnPropertyDescriptor'],Li=(_0x17b25e,_0x3ab97c,_0x4f8ba0,_0x4699a1)=>{const _0x4d8da9=_0x2234f4;for(var _0x536735=_0x4699a1>0x1?void 0x0:_0x4699a1?bi(_0x3ab97c,_0x4f8ba0):_0x3ab97c,_0x9b3136=_0x17b25e[_0x4d8da9(0x31d)]-0x1,_0x4a733a;_0x9b3136>=0x0;_0x9b3136--)(_0x4a733a=_0x17b25e[_0x9b3136])&&(_0x536735=_0x4a733a(_0x536735)||_0x536735);return _0x536735;},K=(_0x4fd666,_0x5490e2)=>(_0x46d22d,_0x2b29eb)=>_0x5490e2(_0x46d22d,_0x2b29eb,_0x4fd666);let ce=class extends _0x2f4832{constructor(_0x12797e,_0x344f23,_0x594e47,_0x2adc0d,_0x1d7c68){const _0x2eb41a=_0x2234f4;super(),this[_0x2eb41a(0x20d)]=_0x12797e,this[_0x2eb41a(0x21d)]=_0x344f23,this[_0x2eb41a(0x16f)]=_0x594e47,this[_0x2eb41a(0x2fb)]=_0x2adc0d,_0x1d7c68?_0x1d7c68==null||_0x1d7c68[_0x2eb41a(0x320)]()['then'](()=>this[_0x2eb41a(0x1b5)]()):(this['_logService'][_0x2eb41a(0x30a)](_0x2eb41a(0x2ee),_0x2eb41a(0x2e7)),this[_0x2eb41a(0x1b5)]());}async['_init'](){const _0x531311=_0x2234f4,_0x4565a3=this['_urlService'][_0x531311(0x244)]('unit'),_0x25f454=this['_urlService']['getParam'](_0x531311(0x1f6)),_0x44d328=this[_0x531311(0x20d)][_0x531311(0x244)](_0x531311(0x389));if(!_0x4565a3||!_0x25f454){this[_0x531311(0x21d)][_0x531311(0x30a)](_0x531311(0x2ee),_0x531311(0x318));return;}const _0x405943=await this[_0x531311(0x2fb)][_0x531311(0x2d6)](_0x4565a3,Number(_0x25f454),_0x44d328);_0x405943&&_0x405943 instanceof _0x1307be&&this[_0x531311(0x332)](_0x405943);}async[_0x2234f4(0x332)](_0x1a453b){const _0x3576b5=_0x2234f4;await this[_0x3576b5(0x1aa)](_0x1a453b),_0x1a453b[_0x3576b5(0x1fa)][_0x3576b5(0x277)](_0x49b716(this['dispose$']))[_0x3576b5(0x190)](_0x30b56c=>{const _0x35547b=_0x3576b5;_0x30b56c&&this[_0x35547b(0x1f4)](_0x30b56c);}),this[_0x3576b5(0x20d)][_0x3576b5(0x18d)][_0x3576b5(0x277)](_0x49b716(this[_0x3576b5(0x1cd)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x1a453b));}['_updateURLWithCurrentState'](_0x101b77,_0x503d99=!0x1){const _0x24115c=_0x2234f4,_0x459fb1=this[_0x24115c(0x20d)][_0x24115c(0x244)]('subunit');_0x101b77[_0x24115c(0x22c)]()!==_0x459fb1&&this['_urlService']['setParam']('subunit',_0x101b77[_0x24115c(0x22c)](),_0x503d99);}async[_0x2234f4(0x1aa)](_0x47c3f1){const _0xe5fa4c=_0x2234f4;var _0x415aa6;const _0x445397=this['_urlService'][_0xe5fa4c(0x244)]('subunit');if(!_0x445397||!_0x47c3f1[_0xe5fa4c(0x312)](_0x445397)){const _0x32224a=_0x47c3f1[_0xe5fa4c(0x291)]()[0x0],_0x2bf650=_0x47c3f1[_0xe5fa4c(0x312)](_0x32224a);if(!_0x2bf650)return;this[_0xe5fa4c(0x1f4)](_0x2bf650,!0x0),await this[_0xe5fa4c(0x16f)][_0xe5fa4c(0x212)](_0x2dfe3b['id'],{'unitId':_0x47c3f1['getUnitId'](),'subUnitId':_0x32224a});return;}((_0x415aa6=_0x47c3f1['getActiveSheet']())==null?void 0x0:_0x415aa6['getSheetId']())!==_0x445397&&await this[_0xe5fa4c(0x16f)][_0xe5fa4c(0x212)](_0x2dfe3b['id'],{'unitId':_0x47c3f1[_0xe5fa4c(0x26e)](),'subUnitId':_0x445397});}};ce=Li([K(0x0,yt),K(0x1,_0x5d513a),K(0x2,_0xe14216),K(0x3,_0xd1a258(_0x1c94a5)),K(0x4,_0x23f3c8(_0x5e2fc8))],ce);var Ui=Object[_0x2234f4(0x378)],Mi=(_0x24a59e,_0x8f49a2,_0x1b6ea6,_0x2abe62)=>{const _0x3497b8=_0x2234f4;for(var _0x1daf23=_0x2abe62>0x1?void 0x0:_0x2abe62?Ui(_0x8f49a2,_0x1b6ea6):_0x8f49a2,_0x5293ab=_0x24a59e[_0x3497b8(0x31d)]-0x1,_0x397dff;_0x5293ab>=0x0;_0x5293ab--)(_0x397dff=_0x24a59e[_0x5293ab])&&(_0x1daf23=_0x397dff(_0x1daf23)||_0x1daf23);return _0x1daf23;},rt=(_0x31d47f,_0x33c435)=>(_0x128c93,_0x10b49e)=>_0x33c435(_0x128c93,_0x10b49e,_0x31d47f);let $e=class extends _0x2f4832{constructor(_0x236690,_0x4bea62){const _0x17781c=_0x2234f4;super(),this[_0x17781c(0x2e3)]=_0x236690,this[_0x17781c(0x141)]=_0x4bea62,this[_0x17781c(0x1b5)]();}[_0x2234f4(0x1b5)](){const _0x28c009=_0x2234f4,_0x578ee0=this;this[_0x28c009(0x1f0)](this['_docClipboardService'][_0x28c009(0x1ae)]({'onBeforePasteImage':async _0x32f567=>{const _0x253f84=_0x28c009,_0x1fe3a0=await _0x578ee0[_0x253f84(0x141)]['saveImage'](_0x32f567);return _0x1fe3a0?{'source':_0x1fe3a0['source'],'imageSourceType':_0x1fe3a0[_0x253f84(0x267)]}:null;}}));}};$e=Mi([rt(0x0,_0x1c84f5),rt(0x1,_0x4b58e5)],$e);const ot=[_0x2234f4(0x325),'jiqing.500','green.600',_0x2234f4(0x272),_0x2234f4(0x13e),_0x2234f4(0x222)];class Ke extends _0x451219{constructor(){const _0x299907=_0x2234f4;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x299907(0x37f),0x0);}[_0x2234f4(0x155)](_0x4a3125){const _0x21b8a9=_0x2234f4;if(this[_0x21b8a9(0x160)][_0x21b8a9(0x30c)](_0x4a3125))return this['_assignedColors']['get'](_0x4a3125);const _0x548c25=ot[this[_0x21b8a9(0x37f)]];return this['_colorIndex']=(this[_0x21b8a9(0x37f)]+0x1)%ot[_0x21b8a9(0x31d)],this[_0x21b8a9(0x160)]['set'](_0x4a3125,_0x548c25),_0x548c25;}}function $t(_0x1e1ac9){const _0x2f512c=_0x2234f4;let _0x367c91='';for(const _0x262bf2 of _0x1e1ac9){const {startOffset:_0x5147a,endOffset:_0x44c84d,isActive:_0x1b2425,rangeType:_0x70a63d,segmentId:_0x2ce3a0,segmentPage:_0x5151b9}=_0x262bf2;_0x367c91[_0x2f512c(0x31d)]&&(_0x367c91+=','),_0x367c91+=_0x5147a+':'+_0x44c84d+':'+(_0x1b2425?'1':'0')+':'+_0x70a63d+':'+_0x2ce3a0+':'+_0x5151b9;}return _0x367c91;}function Ai(_0x3e0f0a){const _0x43495b=_0x2234f4,_0x1af12d=_0x3e0f0a[_0x43495b(0x315)](','),_0x563945=[];for(const _0xb96ef7 of _0x1af12d){const [_0x5141a6,_0x18b9a8,_0x13c913,_0x2a96b2,_0x3b6da3,_0x2e16d3]=_0xb96ef7[_0x43495b(0x315)](':');_0x563945['push']({'startOffset':Number(_0x5141a6),'endOffset':Number(_0x18b9a8),'collapsed':_0x5141a6===_0x18b9a8,'isActive':_0x13c913==='1','rangeType':_0x2a96b2===_0x5bc3df[_0x43495b(0x172)]?_0x5bc3df[_0x43495b(0x172)]:_0x5bc3df['RECT'],'segmentId':typeof _0x3b6da3==_0x43495b(0x38f)?String(_0x3b6da3):'','segmentPage':Number(_0x2e16d3!=null?_0x2e16d3:-0x1)});}return _0x563945[_0x43495b(0x203)](_0x17dd99=>_0x17dd99[_0x43495b(0x194)])||(_0x563945[0x0][_0x43495b(0x194)]=!0x0),_0x563945;}class ze extends _0x2f4832{constructor(){const _0x506e53=_0x2234f4;super(...arguments),_(this,_0x506e53(0x387),new _0x40aa62(null)),_(this,_0x506e53(0x2be),this[_0x506e53(0x387)][_0x506e53(0x32b)]());}['syncEditingCollabCursor'](_0x428840){const _0x532dfe=_0x2234f4,{unitID:_0x34d655,memberID:_0x8d994c,textRanges:_0x5be01e}=_0x428840,_0x1b2a20=$t(_0x5be01e);if(_0x1b2a20==='')return;const _0x2b9587={'unitID':_0x34d655,'memberID':_0x8d994c,'selection':_0x1b2a20};this[_0x532dfe(0x387)][_0x532dfe(0x37e)](_0x2b9587);}}var Pi=Object[_0x2234f4(0x378)],wi=(_0x2c52b0,_0x212839,_0x52a4ed,_0x16685f)=>{const _0x1599fa=_0x2234f4;for(var _0x4e0006=_0x16685f>0x1?void 0x0:_0x16685f?Pi(_0x212839,_0x52a4ed):_0x212839,_0x26d525=_0x2c52b0[_0x1599fa(0x31d)]-0x1,_0x449ba4;_0x26d525>=0x0;_0x26d525--)(_0x449ba4=_0x2c52b0[_0x26d525])&&(_0x4e0006=_0x449ba4(_0x4e0006)||_0x4e0006);return _0x4e0006;},A=(_0x1f6a48,_0x5a4530)=>(_0x3fb949,_0x1240b6)=>_0x5a4530(_0x3fb949,_0x1240b6,_0x1f6a48);const yi=0x12c,$i=0x64;let xe=class extends _0x2f4832{constructor(_0x269cb8,_0x5bcbd0,_0x96eae9,_0xfb84b6,_0x36ce4c,_0x1fe925,_0x4e81d8,_0x2ea8dc,_0x16a428){const _0x7f3bc5=_0x2234f4;super(),_(this,_0x7f3bc5(0x1f7),!0x1),_(this,'_init',!0x1),_(this,_0x7f3bc5(0x145),new _0x40aa62(new Map())),_(this,_0x7f3bc5(0x358),this[_0x7f3bc5(0x145)][_0x7f3bc5(0x32b)]()),_(this,'_roomMembers$',new _0x40aa62([])),_(this,_0x7f3bc5(0x323),this[_0x7f3bc5(0x355)][_0x7f3bc5(0x277)](_0x2b5361(yi))),_(this,_0x7f3bc5(0x330),_0x4564b6(_0x506cd7=>{const _0x2b9fd8=_0x7f3bc5,_0x2991bd={'eventID':_0x963d39[_0x2b9fd8(0x14e)],'data':{'unitID':this[_0x2b9fd8(0x298)],'memberID':this[_0x2b9fd8(0x236)][_0x2b9fd8(0x1a3)](),'selection':$t(_0x506cd7)}};this[_0x2b9fd8(0x236)][_0x2b9fd8(0x179)](_0x2991bd,this[_0x2b9fd8(0x298)]);},$i)),(this['unitID']=_0x269cb8,this[_0x7f3bc5(0x236)]=_0x5bcbd0,this[_0x7f3bc5(0x1e1)]=_0x96eae9,this[_0x7f3bc5(0x313)]=_0xfb84b6,this[_0x7f3bc5(0x17e)]=_0x36ce4c,this[_0x7f3bc5(0x1bc)]=_0x1fe925,this['_transformService']=_0x4e81d8,this['_univerInstanceService']=_0x2ea8dc,this[_0x7f3bc5(0x16f)]=_0x16a428);}get[_0x2234f4(0x310)](){const _0x128025=_0x2234f4;return this[_0x128025(0x145)][_0x128025(0x16b)]();}get[_0x2234f4(0x1f8)](){const _0x80ed2=_0x2234f4;return this['_roomMembers$'][_0x80ed2(0x16b)]();}[_0x2234f4(0x2e1)](){const _0x3d8c18=_0x2234f4;super[_0x3d8c18(0x2e1)](),this[_0x3d8c18(0x145)]['next'](new Map()),this['_cursorInfo$']['complete'](),this[_0x3d8c18(0x355)]['next']([]),this[_0x3d8c18(0x355)][_0x3d8c18(0x162)]();}['init'](){const _0x319b86=_0x2234f4;this[_0x319b86(0x1b5)]||(this[_0x319b86(0x1b5)]=!0x0,this[_0x319b86(0x236)][_0x319b86(0x1ea)][_0x319b86(0x277)](_0x49b716(this[_0x319b86(0x1cd)]))['subscribe'](_0x4548d7=>{const _0x1e9a39=_0x319b86;_0x4548d7===_0x53f485[_0x1e9a39(0x29a)]?this[_0x1e9a39(0x1e9)]():this[_0x1e9a39(0x15b)]();}),this[_0x319b86(0x236)]['event$'][_0x319b86(0x277)](_0x49b716(this[_0x319b86(0x1cd)]))['subscribe'](_0x599f94=>{const _0x21ffde=_0x319b86,_0x43deaf=_0x599f94['eventID'];_0x43deaf===_0x963d39[_0x21ffde(0x14e)]&&this[_0x21ffde(0x181)](_0x599f94),_0x43deaf===_0x963d39[_0x21ffde(0x1ab)]&&this[_0x21ffde(0x360)](_0x599f94);}),this[_0x319b86(0x1f0)](this[_0x319b86(0x16f)][_0x319b86(0x2a0)](_0xeda99c=>{const _0x2b26d2=_0x319b86,_0x5a9326=_0xeda99c[_0x2b26d2(0x22e)];_0x5a9326!=null&&this[_0x2b26d2(0x1f7)]&&_0xeda99c['id']===_0x2a6957['id']&&_0x5a9326[_0x2b26d2(0x215)]===this[_0x2b26d2(0x298)]&&_0x5a9326[_0x2b26d2(0x1c0)]===!0x1&&_0x5a9326[_0x2b26d2(0x2c5)]['length']>0x0&&this['_updateLocalCursor'](_0x5a9326[_0x2b26d2(0x2c5)]);})),this[_0x319b86(0x1bc)]['collabCursorState$'][_0x319b86(0x277)](_0x49b716(this['dispose$']))[_0x319b86(0x190)](_0xa0f45c=>{const _0x592d42=_0x319b86;if((_0xa0f45c==null?void 0x0:_0xa0f45c[_0x592d42(0x298)])!==this['unitID'])return;const _0x5b1b2e={'eventID':_0x963d39[_0x592d42(0x14e)],'data':_0xa0f45c};this[_0x592d42(0x181)](_0x5b1b2e);}),this[_0x319b86(0x1f0)](this[_0x319b86(0x16f)][_0x319b86(0x2a0)](_0x3ef0b3=>{const _0x55fc60=_0x319b86;if(_0x3ef0b3[_0x55fc60(0x22e)]==null)return;const _0x4d3643=_0x3ef0b3[_0x55fc60(0x22e)];if(_0x3ef0b3['id']!==_0x11c787['id']||_0x4d3643[_0x55fc60(0x215)]!==this[_0x55fc60(0x298)])return;const _0x4b3511={'id':_0x55fc60(0x37d),'params':_0x4d3643},_0x37cf0b=this[_0x55fc60(0x310)];for(const [_0xf803f3,_0x1633c7]of _0x37cf0b){const _0x107e58={'id':_0x55fc60(0x37d),'params':{'unitId':this[_0x55fc60(0x298)],'actions':null,'textRanges':_0x1633c7['ranges']}},_0x5195d9=this[_0x55fc60(0x1e6)]['transformMutation'](_0x4b3511,_0x107e58,!0x1);if(_0x56152a(_0x5195d9))throw _0x5195d9[_0x55fc60(0x197)];_0x37cf0b[_0x55fc60(0x1f9)](_0xf803f3,{..._0x1633c7,'ranges':_0x5195d9[_0x55fc60(0x32c)][_0x55fc60(0x22e)][_0x55fc60(0x382)]});}queueMicrotask(()=>{const _0x2357e1=_0x55fc60;this[_0x2357e1(0x145)][_0x2357e1(0x37e)](_0x37cf0b);});})));}[_0x2234f4(0x181)](_0x47c1e9){const _0x2d3092=_0x2234f4;var _0x31d451,_0x29894a;const {memberID:_0x3556ee,selection:_0x220573}=_0x47c1e9['data'],_0x4f7592=Ai(_0x220573),_0x516238=(_0x29894a=(_0x31d451=this[_0x2d3092(0x17e)]['getMember'](this[_0x2d3092(0x298)],_0x3556ee))==null?void 0x0:_0x31d451['name'])!=null?_0x29894a:'Unknown\x20user',_0x3e344a={'color':this[_0x2d3092(0x313)][_0x2d3092(0x155)](_0x3556ee),'name':_0x516238,'ranges':_0x4f7592},_0x27e5a4=this[_0x2d3092(0x310)];_0x27e5a4['set'](_0x3556ee,_0x3e344a),this[_0x2d3092(0x145)][_0x2d3092(0x37e)](_0x27e5a4);}['_onCursorDelete'](_0xa498d3){const _0x17d994=_0x2234f4,{memberID:_0x36b0d0}=_0xa498d3[_0x17d994(0x2b4)],_0x1d1168=this[_0x17d994(0x310)];_0x1d1168[_0x17d994(0x304)](_0x36b0d0),this[_0x17d994(0x145)][_0x17d994(0x37e)](_0x1d1168);}[_0x2234f4(0x1e9)](){const _0xd02798=_0x2234f4;var _0x49459f;if(this[_0xd02798(0x1f7)]=!0x0,((_0x49459f=this[_0xd02798(0x275)][_0xd02798(0x367)]())==null?void 0x0:_0x49459f[_0xd02798(0x26e)]())!==this[_0xd02798(0x298)])return;const _0x15b62b=this[_0xd02798(0x1e1)][_0xd02798(0x184)](_0x121fc3)[_0xd02798(0x2e8)]();Array[_0xd02798(0x284)](_0x15b62b)&&_0x15b62b[_0xd02798(0x31d)]>0x0&&this[_0xd02798(0x330)](_0x15b62b);}[_0x2234f4(0x15b)](){const _0x20395f=_0x2234f4;this[_0x20395f(0x1f7)]=!0x1;}};xe=wi([A(0x2,_0xd1a258(_0x4075d0)),A(0x3,_0xd1a258(Ke)),A(0x4,_0xd1a258(_0x4eca94)),A(0x5,_0xd1a258(ze)),A(0x6,_0x494dd8),A(0x7,_0x717147),A(0x8,_0xe14216)],xe);var xi=Object[_0x2234f4(0x378)],Bi=(_0x5c5b25,_0xbaf4ff,_0x46c725,_0x56cb48)=>{const _0x5a19ff=_0x2234f4;for(var _0x5426e9=_0x56cb48>0x1?void 0x0:_0x56cb48?xi(_0xbaf4ff,_0x46c725):_0xbaf4ff,_0x45f706=_0x5c5b25[_0x5a19ff(0x31d)]-0x1,_0x14f51c;_0x45f706>=0x0;_0x45f706--)(_0x14f51c=_0x5c5b25[_0x45f706])&&(_0x5426e9=_0x14f51c(_0x5426e9)||_0x5426e9);return _0x5426e9;},B=(_0x5a1b8c,_0x433465)=>(_0x56b43f,_0x2d8c05)=>_0x433465(_0x56b43f,_0x2d8c05,_0x5a1b8c);function _0x4659(){const _0x110c69=['mutations','color','SYNCED','SUCCESS','ALREADY_EXISTS','on-line-icon','column','?taskId=','_initCommandExecutedListener','collab-rect-range-','collab-text-anchor-','_uploadLog','collabStatus.fetchMiss','override','findNodePositionByCharIndex','registerComponent','addEventListener','SNAPSHOT_INVALID_SNAPSHOT','_selfUnitIDs','transformSelections','_docSkeleton','START_CALCULATION','text','OffLineIcon','_refreshCollabCursors','LICENSE_EXPORT_SIZE_EXCEEDED','imageSourceType','sheetID','getCurrentSelections','application/json','REDEMPTION_CODE_INACTIVE','USER_NOT_FOUND','startFormulaLimitUrl','getUnitId','_entityInit$','row','ENTITLE_COUPON_EXPIRED','red.300','_drawTextRange','clearInterval','_univerInstanceService','SOCKET_FAILED','pipe','enableFrontendLog','url(#$1','InsertRangeMoveRightCommandId','ticket','REDEMPTION_USER_REDEEM_TIMES_EXCEED','currentUsage','Error','all','setConfig','INVITE_CODE_REQUIRED','socket$','unit','isArray','\x20at\x20','/run/','resize','APPLY_DUPLICATED','history','flatMap','beginPath','0\x200\x2016\x2016','LICENSE_IMPORT_SIZE_EXCEEDED','stringify','save','COMPLETION_FINISHED','getUnhiddenWorksheets','UNDEFINED','CURRENT_STATUS_CANNOT_OPERATE','REDEMPTION_INVALID_CODE','_initDependencies','stageInfo','_hover','unitID','now','ONLINE','UNRECOGNIZED','MOBILE_VERIFY_CODE_MISMATCH','createSocket','trim','location','onCommandExecuted','NO_OTHER_CLIENTS_EDITING','INTERNAL_ERROR','FETCH_MISS','_saveCache','post','PY_RUNTIME_SCRIPT_ERROR','editingUnit','UniverIcon','updateOfflineData','setActiveRange','_removeClearOtherTimer','47TuzgiF','push','currentSkeleton$','_clearPolling','_getFormulaLimitStatus','startColumn','show','YUUMI_TABLE_NOT_FOUND_IN_UNIT','data','MUTATION','onMouseMove','selections','displayName','_cursors','_transformUndoRedoStack','entries','lineTo','_entities','collabCursorState$','_currentUsage','_collaborationUIEventService','stack','unhandledrejection','defIds','OTHER_CLIENT_EDITING','ranges','getActiveRange','_registerRenderDependencies','536UUpsvG','_backgroundColor','_themeService','getUndoRedoMutationParamsCache','m1Prime','replaceState','_localStorageService','InsertRangeMoveDownCommandId','transform','key','_getSheetObject','RemoveRowCommandId','_scheduleClearOtherTimer','setItem','loadUnit','searchParams','setStateCache','redoState','_drawRectRange','_docStateChangeManagerService','entityInit$','ERROR_AGAIN','filename','getRenderById','ENTITLE_CHAT_LIMIT_EXCEED','dispose','black','_docClipboardService','backgroundColor','_anchorDot','subscribeEvent','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getDocRanges','_pollingInterval','formula.calculation.unable','shift','_createSocketURL','APPLY_PERMISSION_DENIED','[CollaborationDataLoaderController]','_initWindowErrorListener','children','off-line-icon_clip0_910_343','_document','setInterval','[Window\x20Error]:\x20','defs','name','getViewport','779538xxcbvK','_startDocCollabCursor','CONNECTOR_DATA_TOO_LARGE','_dataLoaderService','getCollabCursors$','session.connection-failed','bottom','ENTITLE_COUPON_USED_UP','onPointerEnter$','APPLY_REJECT','_getMergeRange','INVITE_CODE_HAS_BEEN_UES','delete','transformByState','_anchor','_docTransformSelectionsService','_hovered','USER_NOT_INVITED_CODE','debug','assign','has','setParam','_transformHistoryAndStateStack','FromArray','cursorInfo','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','getSheetBySheetId','_colorAssignService','CHANGESET_REVISION_CONFILICT','split','_updateCollabCursors','Unknown\x20user','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','3909582fMOGcJ','PERMISSION_DENIED','values','session.collaboration-timeout','length','registerRenderModule','YUUMI_RATE_OVER_LIMIT','whenReady','closePath','setTimeout','roomMembers$','USER_IS_ANONYMOUS','purple.300','_draw','_httpService','InsertColCommandId','getCellMatrix','MOBILE_HAS_BEEN_BOUND','asObservable','m2Prime','2678225qAWEtm','YUUMI_SUBSCRIPTION_NOT_FOUND','forEach','_updateLocalCursor','_hideTimer','_setupSubUnitSync','M0\x200H16V16H0z','_instanceService','getUnit','restore','syncEditingCollabCursor','univerjs-icon\x20univerjs-icon-','_range','_lastPointer','_cursor','path','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','search','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getOffsetConfig','focused$','mask','off-line-icon','getSkeleton','_setFormulaLimitStatus','triggerDblclick','colorChannel1','getMember','createInstance','symbol','_clearOtherTimers','unsubscribe','_removeCollabCursors','OTHER_CLIENTS_EDITING','from','memberID','substring','INVITE_CODE_ALREADY_BOUND','limitInfo','_scheduleHeartbeat','_roomMembers$','_collaborationSessionService','_heartbeatTimer','cursorInfo$','NOT_FOUND','YUUMI_AI_RUN_FAILED','_scene','_id','_handleEvent','_configService','message','_onCursorDelete','totalFormulasToCalculate','_initEntityListener','setAlpha','_refRangeService','collaboration.closeRoom','APPLY_NON_SEQUENTIAL_REVISION','getFocusedUnit','_startCalculationLimit','status$','_renderManagerService','exhaustSavingTask','_initStatusListener','_color','YUUMI_ALL_TABLES_IS_INVALID','_config','getCellPositionByOffset','DeleteRangeMoveLeftCommandId','UNIVER_SHEET','Failed','collabStatus.offline','addObjects','17224FdKSOC','_scheduleSaving','getOwnPropertyDescriptor','_handleJoinEvent','_applyCommand','_context','_collabSessionService','doc.mutation.rich-text-editing','next','_colorIndex','_taskIds','_releaseCalculationLimit','textRanges','startRow','_registerDependencies','YUUMI_CONNECTOR_URL_NOT_FOUND','map','_collabCursorState$','RECT','subunit','_cursorShapes','functionsExecutedState','89970qZWWYw','includes','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','string','2887236HLxlQD','none','blue.400','then','_initUserListener','_imageIoService','with','ACTIVE_UNIT_EVENT_CHANNEL','YUUMI_URL_COL_OUT_OF_RANGE','_cursorInfo$','Success','evenodd','_cachedData','_hasFormulaInDirtyRanges','_textBubble','contains','AUTHORIZE_CODE_ILLEGAL','_onRefRangeChange','UPDATE_CURSOR','size','MoveRangeCommandId','drawWith','collaboration-client-ui.config','_status$','_ensureSubject','assignAColorForMemberID','height','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_localCacheService','/universer-api/frontend/logs','_initUnhandledRejectionListener','_toggleOffline','actions','maxFormulaLimit','parseInt','selection','_assignedColors','lineno','complete','_name','NOT_COLLAB','OnLineIcon','UNIVER_DOC','addObject','collaboration.offline-data-not-saved','onStarting','width','getValue','saveOfflineData','SOCKET_FAILED_RETRY','bind','_commandService','href','REDEMPTION_USER_NOT_ELIGIBLE','TEXT','LICENSE_DISTRO_REJECTED','range','PAYMENT_CHANNEL_NOT_SUPPORT','add','AWAITING','idSuffix','send','unload','transformIMECache','currentTheme$','releaseFormulaLimitUrl','_memberService','attrs','/universer-api/license/formula/limit/done','_onCursorUpdate','INVALID_ARGUMENT','transformRemoteChangeset','get','toString','clearTimeout','_beforeCloseService','onPointerLeave$','_revisionService','defineProperty','_unitStatus','hide','urlChange$','collabStatus.conflict','disposeUnit','subscribe','_collaborationController','_docTransformIMECacheService','unshift','isActive','fillStyle','_messageService','error','fill','enableLocalCache','endRow','getUnitStatus$','CLOSE_ROOM','_labelPosition','currentColor','_notificationService','getStateCache','_unitOnClients','permission.content','getMemberID','_transformPreviousActiveRange','_sheetSkeletonManagerService','eventID','saveTaskMap','current','engine','_updateSubUnitFromURLParams','USERS_LEAVE','transformMutationsWithChangeset','_saveTaskMap','addClipboardHook','_startSheetCollabCursor','_shapes','getTypeOfUnitDisposed$','REDEMPTION_CODE_HAS_BEEN_CREATED','DeleteRangeMoveUpCommandId','storage','_init','popstate','labelPosition','xlink:href','code','_render','_drawAnchor','_syncEditingCollabCursorService','...','EMAIL_VERIFY_CODE_MISMATCH','undoState','isEditing','TOO_MANY_REQUESTS','_docSyncEditingCollabCursorService','hovered','collaboration.single-unit.warning','runId','endColumn','arc','onRendered','onPointerMove$','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','onTransformChange$','_monkeyPatchLogService','dispose$','round','_eventUnsubscribe','clipPath','_initEvent','ENTITLE_INVALID_COUPON_CODE','deepClone','beforeCommandExecuted','AWAITING_WITH_PENDING','CONFLICT','parse','newValue','registerRefRange','getCurrentRevOfUnit','0\x200\x2017\x2016','_memberID','catch','ENTITLE_REPORT_LIMIT_EXCEED','random','use','_injector','/universer-api/license/formula/limit/status','sessionTicket','INVALID_INVITE_CODE','wsSessionTicketUrl','_transformService','skeleton','YUUMI_ASYNCIO_CANCELLED','_toggleOnline','sessionStatus$','JOIN_ROOM_FAILED','getCollabEntity$','_localeService','LOGIN_FAILED','getConfig','disposeWithMe','collab-client.tooltip.reconnect','fillText','getVpScrollXYInfoByPosToVp','_updateURLWithCurrentState','measureText','type','_online','roomMembers','set','activeSheet$','YUUMI_NO_CUBOID_FOR_QUESTION','ENTITLE_INSUFFICIENT_QUOTA','removeEventListener','transformMutation','formula.calculation.waiting','find','getMergeData','_initCommandInterceptor','some','#FFF','_doCreateSocket','_uiPartsService','_showGuardMessage','_handleHeartbeatEvent','LOGIN_TOKEN_PROCESSING_FAILED','fillRule','_getScale','ENSURE_SNAPSHOT_EXECUTION','_urlService','startsWith','ENTITLE_NEED_BILLING_ADDRESS','_maxFormulaLimit','getTypeOfUnitAdded$','executeCommand','requireSession','_checkCalculationAvailable','unitId','_disabled','_initStatusComponent','_send','_docTransformStateCacheService','setShapeProps','setUndoRedoMutationParamsCache','Warning','_logService','_handleHover','init','on-line-icon_clip0_910_349','body','yellow.400','transformStateCache','svg','makeDirty','_collabCursorController','toRgbString','EMAIL_HAS_BEEN_BOUND','UNAUTHENTICATED','url(#off-line-icon_clip0_910_343)','_initResize','getSheetId','_getAnchorBounding','params','div','getItem','white','getAncestorScale','ENTITLE_CAN_NOT_BUY_LOWER_OTP','LICENSE_MAX_UNITS_EXCEEDED','max','_session','_setupBeforeClosingHandler','_lastResponseTimestamp','event$','loadOfflineData','invokeId','stage','_getSessionTicket','1em','_checkAndWaitForCalculationPermission','DATA_SOURCE_TOO_LARGE','ENTITLE_DUP_SUBSCRIPTION','InsertRowCommandId','REDEMPTION_CODE_FULLY_REDEEMED','getParam','pushState','62797xSOJuY','HEADER_MENU','getRelativeToViewportCoord','SUBMIT_CHANGESET_TIMEOUT','tag','ENTITLE_USE_COUPON_NOT_1ST_TRADE','top'];_0x4659=function(){return _0x110c69;};return _0x4659();}const Fi=0x12c,ki=0x64,Hi=()=>{let _0x561b27=[],_0x5ac8fa=!0x1;return _0xb41bde=>{const _0x51f5a6=_0x34ce;_0x561b27[_0x51f5a6(0x2ad)](_0xb41bde),_0x5ac8fa||(_0x5ac8fa=!0x0,setTimeout(()=>{_0x561b27['forEach'](_0x6fb07c=>_0x6fb07c()),_0x561b27=[],_0x5ac8fa=!0x1;}));};};let Be=class extends _0x2f4832{constructor(_0x633479,_0x4f438e,_0x24f923,_0x38a0a0,_0x3764bd,_0x343993,_0x5d0f2e,_0x4407ee){const _0x2ced8a=_0x2234f4;super(),_(this,_0x2ced8a(0x1f7),!0x1),_(this,_0x2ced8a(0x1b5),!0x1),_(this,_0x2ced8a(0x145),new _0x40aa62(new Map())),_(this,_0x2ced8a(0x358),this[_0x2ced8a(0x145)][_0x2ced8a(0x32b)]()),_(this,'_roomMembers$',new _0x40aa62([])),_(this,'roomMembers$',this['_roomMembers$'][_0x2ced8a(0x277)](_0x2b5361(Fi))),_(this,_0x2ced8a(0x330),_0x4564b6((_0x284f78,_0x5320f3)=>{const _0x19a132=_0x2ced8a,_0x270720={'eventID':_0x963d39['UPDATE_CURSOR'],'data':{'unitID':this[_0x19a132(0x298)],'memberID':this[_0x19a132(0x236)][_0x19a132(0x1a3)](),'selection':_0x2bb013(_0x284f78,_0x5320f3[_0x19a132(0x174)])}};this[_0x19a132(0x236)][_0x19a132(0x179)](_0x270720,this[_0x19a132(0x298)]);},ki)),(this[_0x2ced8a(0x298)]=_0x633479,this[_0x2ced8a(0x236)]=_0x4f438e,this[_0x2ced8a(0x1e1)]=_0x24f923,this[_0x2ced8a(0x313)]=_0x38a0a0,this['_memberService']=_0x3764bd,this[_0x2ced8a(0x275)]=_0x343993,this['_commandService']=_0x5d0f2e,this['_refRangeService']=_0x4407ee);}get[_0x2234f4(0x310)](){const _0x306b3d=_0x2234f4;return this[_0x306b3d(0x145)][_0x306b3d(0x16b)]();}get[_0x2234f4(0x1f8)](){const _0x19ae98=_0x2234f4;return this['_roomMembers$'][_0x19ae98(0x16b)]();}[_0x2234f4(0x2e1)](){const _0x1caa6b=_0x2234f4;super[_0x1caa6b(0x2e1)](),this[_0x1caa6b(0x145)][_0x1caa6b(0x37e)](new Map()),this[_0x1caa6b(0x145)][_0x1caa6b(0x162)](),this[_0x1caa6b(0x355)][_0x1caa6b(0x37e)]([]),this['_roomMembers$'][_0x1caa6b(0x162)]();}[_0x2234f4(0x21f)](){const _0xffa4fa=_0x2234f4;this[_0xffa4fa(0x1b5)]||(this[_0xffa4fa(0x1b5)]=!0x0,this[_0xffa4fa(0x236)][_0xffa4fa(0x1ea)][_0xffa4fa(0x277)](_0x49b716(this['dispose$']))[_0xffa4fa(0x190)](_0x53ce8b=>{const _0x8ae815=_0xffa4fa;_0x53ce8b===_0x53f485[_0x8ae815(0x29a)]?this['_toggleOnline']():this[_0x8ae815(0x15b)]();}),this[_0xffa4fa(0x236)][_0xffa4fa(0x239)][_0xffa4fa(0x277)](_0x49b716(this[_0xffa4fa(0x1cd)]))[_0xffa4fa(0x190)](_0x5944f5=>{const _0x18ea7a=_0xffa4fa,_0x4c6b02=_0x5944f5[_0x18ea7a(0x1a6)];_0x4c6b02===_0x963d39[_0x18ea7a(0x14e)]&&this[_0x18ea7a(0x181)](_0x5944f5),_0x4c6b02===_0x963d39['USERS_LEAVE']&&this[_0x18ea7a(0x360)](_0x5944f5);}),this[_0xffa4fa(0x14d)](),this['disposeWithMe'](this[_0xffa4fa(0x16f)][_0xffa4fa(0x2a0)](_0xa874a5=>{const _0x1c9f0b=_0xffa4fa;if(this[_0x1c9f0b(0x1f7)]&&_0xa874a5['id']===_0x5d35a5['id']&&_0xa874a5[_0x1c9f0b(0x22e)][_0x1c9f0b(0x215)]===this['unitID']){const _0x3bf1e5=_0xa874a5[_0x1c9f0b(0x22e)];this[_0x1c9f0b(0x330)](_0x3bf1e5['subUnitId'],_0x3bf1e5[_0x1c9f0b(0x2b7)][0x0]);}})));}['_onCursorUpdate'](_0x528f67){const _0x31b9b8=_0x2234f4;var _0x371e19,_0x628552;const {memberID:_0x596abd,selection:_0x1d4de8}=_0x528f67[_0x31b9b8(0x2b4)],{sheetName:_0x52b242,range:_0xd22923}=_0x55c289(_0x1d4de8),_0x537bd5={'name':(_0x628552=(_0x371e19=this[_0x31b9b8(0x17e)][_0x31b9b8(0x348)](this[_0x31b9b8(0x298)],_0x596abd))==null?void 0x0:_0x371e19[_0x31b9b8(0x2f6)])!=null?_0x628552:_0x31b9b8(0x317),'range':this['_getMergeRange'](_0x52b242,_0xd22923),'sheetID':_0x52b242,'color':this[_0x31b9b8(0x313)][_0x31b9b8(0x155)](_0x596abd),'selection':_0x1d4de8},_0x1f9f82=this['cursorInfo'];_0x1f9f82['set'](_0x596abd,_0x537bd5),this[_0x31b9b8(0x145)]['next'](_0x1f9f82);}[_0x2234f4(0x360)](_0x41741a){const _0x628571=_0x2234f4,{memberID:_0x441507}=_0x41741a['data'],_0x149837=this[_0x628571(0x310)];_0x149837[_0x628571(0x304)](_0x441507),this[_0x628571(0x145)][_0x628571(0x37e)](_0x149837);}[_0x2234f4(0x302)](_0x37ae9f,_0xd6f9bd){const _0x496865=_0x2234f4;var _0x50b3b3,_0x20560a;const _0xa41923=(_0x20560a=(_0x50b3b3=this[_0x496865(0x275)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x50b3b3['getSheetBySheetId'](_0x37ae9f))==null?void 0x0:_0x20560a[_0x496865(0x201)]();return(_0xa41923==null?void 0x0:_0xa41923[_0x496865(0x200)](_0x108465=>_0x2f8a98[_0x496865(0x14b)](_0x108465,_0xd6f9bd)))||_0xd6f9bd;}[_0x2234f4(0x14d)](){const _0x37b003=_0x2234f4,_0x550189=new _0x5a1325(),_0x2ac32d=Hi(),_0x1b1351=()=>{const _0x2fd787=_0x34ce;_0x550189[_0x2fd787(0x2e1)]();const _0x5903bb=(_0x2393a6,_0x32787a,_0x259a06,_0xd96277)=>{const _0x24f3e3=_0x2fd787;let _0x2cda26=[];switch(_0x2393a6['id']){case _0x494297[_0x24f3e3(0x371)]:{_0x2cda26=_0x21a5ff(_0x2393a6,_0xd96277);break;}case _0x494297[_0x24f3e3(0x1b3)]:{_0x2cda26=_0x568141(_0x2393a6,_0xd96277);break;}case _0x494297[_0x24f3e3(0x328)]:{_0x2cda26=_0x15b634(_0x2393a6,_0xd96277);break;}case _0x494297[_0x24f3e3(0x2cf)]:{_0x2cda26=_0x1abe67(_0x2393a6,_0xd96277);break;}case _0x494297[_0x24f3e3(0x27a)]:{_0x2cda26=_0x4a5ab7(_0x2393a6,_0xd96277);break;}case _0x494297[_0x24f3e3(0x242)]:{_0x2cda26=_0x2a54d5(_0x2393a6,_0xd96277);break;}case _0x494297[_0x24f3e3(0x150)]:{_0x2cda26=_0x133c7f(_0x2393a6,_0xd96277);break;}case _0x494297['RemoveColCommandId']:{_0x2cda26=_0x3e4b3b(_0x2393a6,_0xd96277);break;}case _0x494297[_0x24f3e3(0x2d3)]:{_0x2cda26=_0x46ec99(_0x2393a6,_0xd96277);break;}}const _0x3dda6e=_0x4ca24b(_0x2cda26,_0xd96277),_0x8c9424=this[_0x24f3e3(0x310)][_0x24f3e3(0x184)](_0x32787a);if(_0x8c9424&&_0x3dda6e){const _0x313194={..._0x8c9424,'range':_0x3dda6e};this[_0x24f3e3(0x310)][_0x24f3e3(0x1f9)](_0x32787a,_0x313194),_0x2ac32d(()=>{const _0x276814=_0x24f3e3,_0x3b34e8=this[_0x276814(0x364)][_0x276814(0x1d9)](_0x3dda6e,_0x2c229b=>(_0x3b34e8[_0x276814(0x2e1)](),_0x5903bb(_0x2c229b,_0x32787a,_0x259a06,_0x3dda6e)));_0x550189[_0x276814(0x176)](_0x3b34e8);});}return{'redos':[],'undos':[]};};this[_0x2fd787(0x310)][_0x2fd787(0x32f)]((_0xc793ff,_0x3a0b2b)=>{const _0x578b47=_0x2fd787,{range:_0x2c7a07,sheetID:_0x532b90}=_0xc793ff,_0x5c48f5=this[_0x578b47(0x364)]['registerRefRange'](_0x2c7a07,_0x107e50=>(_0x5c48f5[_0x578b47(0x2e1)](),_0x5903bb(_0x107e50,_0x3a0b2b,_0x532b90,_0x2c7a07)));_0x550189[_0x578b47(0x176)](_0x5c48f5);});};this[_0x37b003(0x1f0)](_0x3640fe(this[_0x37b003(0x145)][_0x37b003(0x190)](()=>{_0x1b1351();})));}[_0x2234f4(0x1e9)](){const _0x1073ac=_0x2234f4;var _0x45cfd8,_0x3c04f0;if(this[_0x1073ac(0x1f7)]=!0x0,((_0x45cfd8=this['_univerInstanceService'][_0x1073ac(0x367)]())==null?void 0x0:_0x45cfd8['getUnitId']())!==this[_0x1073ac(0x298)])return;const _0x3413f1=(_0x3c04f0=this[_0x1073ac(0x1e1)][_0x1073ac(0x184)](_0x72d1aa)[_0x1073ac(0x269)]())==null?void 0x0:_0x3c04f0[0x0],_0xbf2227=this[_0x1073ac(0x275)]['getCurrentUnitForType'](_0x5722a6[_0x1073ac(0x372)])['getActiveSheet']();_0x3413f1&&_0xbf2227&&this[_0x1073ac(0x330)](_0xbf2227['getSheetId'](),_0x3413f1);}['_toggleOffline'](){const _0x392186=_0x2234f4;this[_0x392186(0x1f7)]=!0x1;}};Be=Bi([B(0x2,_0xd1a258(_0x4075d0)),B(0x3,_0xd1a258(Ke)),B(0x4,_0xd1a258(_0x4eca94)),B(0x5,_0x717147),B(0x6,_0xe14216),B(0x7,_0xd1a258(_0x13933c))],Be);var Yi=Object['getOwnPropertyDescriptor'],Wi=(_0x14fc7c,_0x278808,_0x4d1fdc,_0x54b265)=>{const _0x3b8cfc=_0x2234f4;for(var _0x10e5be=_0x54b265>0x1?void 0x0:_0x54b265?Yi(_0x278808,_0x4d1fdc):_0x278808,_0x4d7306=_0x14fc7c[_0x3b8cfc(0x31d)]-0x1,_0x4d6c02;_0x4d7306>=0x0;_0x4d7306--)(_0x4d6c02=_0x14fc7c[_0x4d7306])&&(_0x10e5be=_0x4d6c02(_0x10e5be)||_0x10e5be);return _0x10e5be;},Ce=(_0x3916b5,_0x536d7)=>(_0x5b4b44,_0x54fa89)=>_0x536d7(_0x5b4b44,_0x54fa89,_0x3916b5);let H=class extends _0x2f4832{constructor(_0x146524,_0x4b4d12,_0x347682){const _0x6b79e6=_0x2234f4;super(),_(this,_0x6b79e6(0x2bd),new Map()),_(this,_0x6b79e6(0x26f),new _0x5307ea()),(this['_univerInstanceService']=_0x146524,this['_injector']=_0x4b4d12,this[_0x6b79e6(0x37c)]=_0x347682,this['_init']());}['dispose'](){const _0x235d62=_0x2234f4;super['dispose'](),this[_0x235d62(0x26f)][_0x235d62(0x162)](),this[_0x235d62(0x2bd)][_0x235d62(0x32f)](_0x570387=>_0x570387['dispose']());}[_0x2234f4(0x2fc)](_0x2bc121){const _0x218e5f=_0x2234f4;return this[_0x218e5f(0x2bd)][_0x218e5f(0x30c)](_0x2bc121)?this[_0x218e5f(0x2bd)][_0x218e5f(0x184)](_0x2bc121)[_0x218e5f(0x358)]:this['_entityInit$'][_0x218e5f(0x277)](_0x29bcb5(_0x79dea7=>_0x79dea7[_0x218e5f(0x298)]===_0x2bc121),_0xa5b9ec(_0x274ca0=>_0x274ca0['cursorInfo$']));}[_0x2234f4(0x1b5)](){const _0x205a55=_0x2234f4;this[_0x205a55(0x275)][_0x205a55(0x211)](_0x5722a6[_0x205a55(0x372)])[_0x205a55(0x277)](_0x49b716(this[_0x205a55(0x1cd)]))['subscribe'](async _0x5ee452=>{const _0x1f7694=_0x205a55,_0x7b7499=_0x5ee452[_0x1f7694(0x26e)](),_0x14af9e=await this[_0x1f7694(0x1af)](_0x7b7499);this['_entityInit$']['next'](_0x14af9e),this[_0x1f7694(0x2bd)][_0x1f7694(0x1f9)](_0x7b7499,_0x14af9e);}),this[_0x205a55(0x275)][_0x205a55(0x211)](_0x5722a6[_0x205a55(0x166)])[_0x205a55(0x277)](_0x49b716(this['dispose$']))[_0x205a55(0x277)](_0x29bcb5(_0x47e09b=>!_0x47e09b['getUnitId']()[_0x205a55(0x20e)]('__')))['subscribe'](async _0x42c41c=>{const _0x1381c7=_0x205a55,_0x3ec3e0=_0x42c41c[_0x1381c7(0x26e)](),_0x22cf07=await this[_0x1381c7(0x2f9)](_0x3ec3e0);this[_0x1381c7(0x26f)][_0x1381c7(0x37e)](_0x22cf07),this[_0x1381c7(0x2bd)][_0x1381c7(0x1f9)](_0x3ec3e0,_0x22cf07);}),_0x2da9e0(this['_univerInstanceService'][_0x205a55(0x1b1)](_0x5722a6['UNIVER_DOC']),this[_0x205a55(0x275)][_0x205a55(0x1b1)](_0x5722a6[_0x205a55(0x372)]))[_0x205a55(0x277)](_0x49b716(this['dispose$']))[_0x205a55(0x190)](_0x1e2107=>{const _0x5c5bee=_0x205a55,_0x318a4a=_0x1e2107[_0x5c5bee(0x26e)](),_0x660abd=this[_0x5c5bee(0x2bd)][_0x5c5bee(0x184)](_0x318a4a);_0x660abd&&(_0x660abd[_0x5c5bee(0x2e1)](),this[_0x5c5bee(0x2bd)][_0x5c5bee(0x304)](_0x318a4a));});}async['_startSheetCollabCursor'](_0x317724){const _0x5eaf66=_0x2234f4,_0x47367e=await this[_0x5eaf66(0x37c)][_0x5eaf66(0x213)](_0x317724),_0x364722=this[_0x5eaf66(0x1e1)][_0x5eaf66(0x349)](Be,_0x317724,_0x47367e);return _0x364722[_0x5eaf66(0x21f)](),_0x364722;}async[_0x2234f4(0x2f9)](_0x394aed){const _0x2b9115=_0x2234f4,_0x467ffe=await this['_collabSessionService'][_0x2b9115(0x213)](_0x394aed),_0x485acf=this[_0x2b9115(0x1e1)][_0x2b9115(0x349)](xe,_0x394aed,_0x467ffe);return _0x485acf['init'](),_0x485acf;}};H=Wi([Ce(0x0,_0x717147),Ce(0x1,_0xd1a258(_0x4075d0)),Ce(0x2,_0xd1a258(_0x7164ac))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x3d1632,_0x10a6a6){const _0x36a16e=_0x2234f4;let {radius:_0x2e282c,width:_0x4c7c9b,height:_0x20af8e}=_0x10a6a6;_0x2e282c=_0x2e282c!=null?_0x2e282c:0x0,_0x4c7c9b=_0x4c7c9b!=null?_0x4c7c9b:0x1e,_0x20af8e=_0x20af8e!=null?_0x20af8e:0x1e;let _0x3d3bae=0x0,_0x2bd798=0x0,_0x1ad2b2=0x0;_0x3d3bae=_0x2bd798=_0x1ad2b2=Math['min'](_0x2e282c,_0x4c7c9b/0x2,_0x20af8e/0x2),_0x3d1632[_0x36a16e(0x28b)](),_0x3d1632['moveTo'](_0x3d3bae,0x0),_0x3d1632[_0x36a16e(0x2bc)](_0x4c7c9b-_0x2bd798,0x0),_0x3d1632[_0x36a16e(0x1c7)](_0x4c7c9b-_0x2bd798,_0x2bd798,_0x2bd798,Math['PI']*0x3/0x2,0x0,!0x1),_0x3d1632[_0x36a16e(0x2bc)](_0x4c7c9b,_0x20af8e-_0x1ad2b2),_0x3d1632[_0x36a16e(0x1c7)](_0x4c7c9b-_0x1ad2b2,_0x20af8e-_0x1ad2b2,_0x1ad2b2,0x0,Math['PI']/0x2,!0x1),_0x3d1632[_0x36a16e(0x2bc)](0x0,_0x20af8e),_0x3d1632[_0x36a16e(0x2bc)](0x0,_0x3d3bae),_0x3d1632['arc'](_0x3d3bae,_0x3d3bae,_0x3d3bae,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3d1632[_0x36a16e(0x321)](),_0x10a6a6[_0x36a16e(0x198)]&&(_0x3d1632['save'](),_0x3d1632['fillStyle']=_0x10a6a6[_0x36a16e(0x198)],_0x10a6a6[_0x36a16e(0x20a)]==='evenodd'?_0x3d1632[_0x36a16e(0x198)](_0x36a16e(0x147)):_0x3d1632[_0x36a16e(0x198)](),_0x3d1632[_0x36a16e(0x336)]());}class ve extends _0x7274bf{constructor(_0x40afd4,_0x18288e){const _0x29b14d=_0x2234f4;super(_0x40afd4,_0x18288e),_(this,_0x29b14d(0x24e)),_(this,_0x29b14d(0x263)),(this['color']=_0x18288e==null?void 0x0:_0x18288e['color'],this[_0x29b14d(0x263)]=_0x18288e==null?void 0x0:_0x18288e[_0x29b14d(0x263)]);}static[_0x2234f4(0x151)](_0x504e0c,_0x5947fb){const _0x445713=_0x2234f4,{text:_0x2b8421,color:_0xc95d7e}=_0x5947fb;_0x504e0c[_0x445713(0x28f)](),_0x504e0c['font']=_0x445713(0x38e);const _0x5e4d9f=_0x504e0c[_0x445713(0x1f5)](_0x2b8421)[_0x445713(0x16a)],_0x49cd7b=Math['min'](_0x5e4d9f+0x2*Re,at);ji(_0x504e0c,{'height':Q,'radius':0x4,'width':_0x49cd7b,'fill':_0xc95d7e}),_0x504e0c[_0x445713(0x195)]=_0x445713(0x204);const _0x1954e8=Re,_0xab382f=Q-Vi,_0x58f599=at-0x2*Re;if(_0x5e4d9f>_0x58f599){let _0x3fc864='',_0x30e060=0x0;for(const _0x4888e5 of _0x2b8421){const _0x24907e=_0x504e0c[_0x445713(0x1f5)](_0x4888e5)[_0x445713(0x16a)];if(_0x30e060+_0x24907e<=_0x58f599-_0x504e0c[_0x445713(0x1f5)](_0x445713(0x1bd))[_0x445713(0x16a)])_0x3fc864+=_0x4888e5,_0x30e060+=_0x24907e;else{_0x3fc864+='...';break;}}_0x504e0c[_0x445713(0x1f2)](_0x3fc864,_0x1954e8,_0xab382f);}else _0x504e0c[_0x445713(0x1f2)](_0x2b8421,_0x1954e8,_0xab382f);_0x504e0c[_0x445713(0x336)]();}[_0x2234f4(0x326)](_0xcc029c){ve['drawWith'](_0xcc029c,this);}}const De=_0x2234f4(0x257),Xi='collab-text-range-',Gi=_0x2234f4(0x256),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji='rgba(255,\x20255,\x20255,\x200.01)';class ct{constructor(_0x22641f,_0x1e1b3c,_0x4f36b3,_0x15f2bb){const _0x30d021=_0x2234f4;_(this,_0x30d021(0x1b0),[]),_(this,'_anchor',null),_(this,_0x30d021(0x14a),null),_(this,'_anchorDot',null),_(this,'_hideTimer',null),_(this,_0x30d021(0x1cf),null),(this['_cursor']=_0x22641f,this[_0x30d021(0x35b)]=_0x1e1b3c,this[_0x30d021(0x261)]=_0x4f36b3,this[_0x30d021(0x2f2)]=_0x15f2bb,this[_0x30d021(0x1ba)]());}set['_hover'](_0x169942){const _0x1e463a=_0x2234f4;_0x169942?(this[_0x1e463a(0x2e5)]&&this[_0x1e463a(0x2e5)]['hide'](),this[_0x1e463a(0x14a)]&&this['_textBubble'][_0x1e463a(0x2b2)]()):(this[_0x1e463a(0x2e5)]&&this['_anchorDot']['show'](),this[_0x1e463a(0x14a)]&&this[_0x1e463a(0x14a)][_0x1e463a(0x18c)]());}[_0x2234f4(0x2e1)](){const _0xa7ad9e=_0x2234f4;for(const _0x9c8e4e of this[_0xa7ad9e(0x1b0)])_0x9c8e4e['dispose']();this[_0xa7ad9e(0x14a)]&&this[_0xa7ad9e(0x14a)][_0xa7ad9e(0x2e1)](),this['_anchorDot']&&this['_anchorDot'][_0xa7ad9e(0x2e1)](),this[_0xa7ad9e(0x306)]&&this[_0xa7ad9e(0x306)][_0xa7ad9e(0x2e1)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x2234f4(0x1ba)](){const _0x254812=_0x2234f4;var _0xde2000;const {_docSkeleton:_0x1f681d,_document:_0x55e694}=this,{color:_0x3834f2,name:_0x44e66c,ranges:_0x3e3ec5}=this[_0x254812(0x33b)],_0x57c3f1=_0x55e694[_0x254812(0x340)](),{docsLeft:_0x4c5234,docsTop:_0x10807e}=_0x57c3f1,_0x53261c=new _0x206233(_0x57c3f1,_0x1f681d);for(const {startOffset:_0x3bcfb6,endOffset:_0x23f36d,rangeType:_0x2eff3f,segmentId:_0x3c67d2,segmentPage:_0x201006,collapsed:_0x45b0e8,isActive:_0x142d8a}of _0x3e3ec5){const _0x15df1b=_0x1f681d['findNodePositionByCharIndex'](_0x3bcfb6,!0x0,_0x3c67d2,_0x201006);let _0x459d02=_0x1f681d[_0x254812(0x25b)](_0x23f36d,!0x0,_0x3c67d2,_0x201006);if(_0x459d02==null&&(_0x459d02=_0x1f681d['findNodePositionByCharIndex'](_0x23f36d-0x1,!0x1,_0x3c67d2,_0x201006)),_0x142d8a){const {contentBoxPointGroup:_0x40f0af}=_0x53261c['getRangePointData'](_0x459d02,_0x459d02);if(_0x40f0af['length']===0x0)continue;this[_0x254812(0x1bb)](_0x3834f2,_0x40f0af,_0x4c5234,_0x10807e,_0x44e66c),this[_0x254812(0x1cf)]=this[_0x254812(0x21e)]();}if(_0x15df1b&&_0x459d02){if(_0x2eff3f===_0x5bc3df[_0x254812(0x388)]){const _0x56ab3a=new _0x3d6ec8(_0x57c3f1,_0x1f681d),{pointGroup:_0x3010b1}=(_0xde2000=_0x56ab3a['getRangePointData'](_0x15df1b,_0x459d02))!=null?_0xde2000:{};if(_0x3010b1==null||_0x3010b1['length']===0x0)continue;this[_0x254812(0x2da)](_0x3834f2,_0x3010b1,_0x4c5234,_0x10807e);}else{if(!_0x45b0e8){const {borderBoxPointGroup:_0xebb63c}=_0x53261c['getRangePointData'](_0x15df1b,_0x459d02);if(_0xebb63c[_0x254812(0x31d)]===0x0)continue;this[_0x254812(0x273)](_0x3834f2,_0xebb63c,_0x4c5234,_0x10807e);}}}}}['_drawAnchor'](_0x476ad2,_0x3631de,_0x1968d7,_0x2fad03,_0x26349a){const _0x4b56dc=_0x2234f4,_0x27ee03=this[_0x4b56dc(0x22d)](_0x3631de),{left:_0x5a0933,top:_0x358e9d,height:_0x4a3e38}=_0x27ee03,_0x1d2b7a=this[_0x4b56dc(0x20b)](),_0x20e99b=zi/_0x1d2b7a,_0x22e740=new _0x412f0f(De+_0x29e4dc(z),{'left':_0x5a0933+_0x1968d7-_0x20e99b,'top':_0x358e9d+_0x2fad03,'height':_0x4a3e38,'width':Ki,'fill':_0x476ad2||_0x5da4d8(_0x5c9a54[_0x4b56dc(0x2e2)],0x0),'strokeWidth':_0x20e99b,'stroke':Ji,'evented':!0x0});this[_0x4b56dc(0x306)]=_0x22e740,this[_0x4b56dc(0x35b)][_0x4b56dc(0x167)](_0x22e740,_0xf3ffb1);const _0x4e6853=new _0x412f0f(De+_0x29e4dc(z),{'left':_0x5a0933+_0x1968d7-_0x20e99b,'top':_0x358e9d+_0x2fad03-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x476ad2||_0x5da4d8(_0x5c9a54[_0x4b56dc(0x2e2)],0x0),'strokeWidth':0x0,'stroke':_0x476ad2||_0x5da4d8(_0x5c9a54[_0x4b56dc(0x2e2)],0x0),'evented':!0x1});this[_0x4b56dc(0x2e5)]=_0x4e6853,this['_scene']['addObject'](_0x4e6853,_0xf3ffb1);const _0x3d4049=new ve(De+_0x29e4dc(z),{'left':_0x5a0933+_0x1968d7-_0x20e99b,'top':_0x358e9d+_0x2fad03-Q,'text':_0x26349a,'color':_0x476ad2});this[_0x4b56dc(0x14a)]=_0x3d4049,this[_0x4b56dc(0x35b)]['addObject'](_0x3d4049,_0xf3ffb1),this[_0x4b56dc(0x297)]=!0x1;}[_0x2234f4(0x21e)](){const _0x5c5e5e=_0x2234f4,_0x39e238=this[_0x5c5e5e(0x306)][_0x5c5e5e(0x300)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x28c98a=this['_anchor'][_0x5c5e5e(0x188)]['subscribeEvent'](()=>{const _0x5aee06=_0x5c5e5e;this[_0x5aee06(0x331)]&&clearTimeout(this[_0x5aee06(0x331)]),this[_0x5aee06(0x331)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x42a523=_0x5c5e5e;_0x39e238['unsubscribe'](),_0x28c98a[_0x42a523(0x34c)]();};}[_0x2234f4(0x273)](_0x3db0bb,_0x28fba5,_0x121bc2,_0x441b0f){const _0x56b283=_0x2234f4,_0x356317=new _0x4dd5d8(_0x3db0bb)['setAlpha'](0.2)[_0x56b283(0x227)](),_0xcb1572=new _0x1f3457(Xi+_0x29e4dc(z),{'pointsGroup':_0x28fba5,'fill':_0x356317||_0x5da4d8(_0x5c9a54[_0x56b283(0x2e2)],0.2),'left':_0x121bc2,'top':_0x441b0f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x56b283(0x1b0)][_0x56b283(0x2ad)](_0xcb1572),this[_0x56b283(0x35b)][_0x56b283(0x167)](_0xcb1572,_0xf3ffb1);}[_0x2234f4(0x2da)](_0x32ef9f,_0x97e834,_0x599708,_0x1047e7){const _0x4c9414=_0x2234f4,_0x47101a=new _0x4dd5d8(_0x32ef9f)[_0x4c9414(0x363)](0.2)[_0x4c9414(0x227)](),_0x558c65=new _0x1f3457(Gi+_0x29e4dc(z),{'pointsGroup':_0x97e834,'fill':_0x47101a||_0x5da4d8(_0x5c9a54[_0x4c9414(0x2e2)],0.2),'left':_0x599708,'top':_0x1047e7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4c9414(0x1b0)][_0x4c9414(0x2ad)](_0x558c65),this[_0x4c9414(0x35b)][_0x4c9414(0x167)](_0x558c65,_0xf3ffb1);}[_0x2234f4(0x22d)](_0x56b44a){const _0x525048=_0x56b44a[0x0],_0x2ffa34=_0x525048[0x0],_0xca5769=_0x525048[0x2],{x:_0x8183b1,y:_0x4f14e9}=_0x2ffa34,{x:_0xa1ca7b,y:_0x11ad6c}=_0xca5769;return{'left':_0x8183b1,'top':_0x4f14e9,'width':_0xa1ca7b-_0x8183b1,'height':_0x11ad6c-_0x4f14e9};}['_getScale'](){const _0x4ddb2a=_0x2234f4,{scaleX:_0x570750,scaleY:_0x23fea9}=this[_0x4ddb2a(0x35b)][_0x4ddb2a(0x232)]();return Math[_0x4ddb2a(0x235)](_0x570750,_0x23fea9);}}var Zi=Object[_0x2234f4(0x378)],Qi=(_0x1d99a0,_0x49825c,_0x357508,_0xc24b96)=>{const _0x40b10a=_0x2234f4;for(var _0x3acd21=_0xc24b96>0x1?void 0x0:_0xc24b96?Zi(_0x49825c,_0x357508):_0x49825c,_0x9f9e6a=_0x1d99a0[_0x40b10a(0x31d)]-0x1,_0x47e51c;_0x9f9e6a>=0x0;_0x9f9e6a--)(_0x47e51c=_0x1d99a0[_0x9f9e6a])&&(_0x3acd21=_0x47e51c(_0x3acd21)||_0x3acd21);return _0x3acd21;},ie=(_0x47a462,_0x2a2d1f)=>(_0x398d58,_0x5ef2c1)=>_0x2a2d1f(_0x398d58,_0x5ef2c1,_0x47a462);let Fe=class extends _0x2f4832{constructor(_0x4ec321,_0xf7a8e2,_0x812611,_0x8afd3a,_0x20135c){const _0x18dda6=_0x2234f4;super(),_(this,_0x18dda6(0x38a),[]),_(this,'_cursors',[]),(this[_0x18dda6(0x37b)]=_0x4ec321,this['_docSkeletonManagerService']=_0xf7a8e2,this[_0x18dda6(0x226)]=_0x812611,this[_0x18dda6(0x16f)]=_0x8afd3a,this[_0x18dda6(0x2ca)]=_0x20135c,this[_0x18dda6(0x1b5)]());}['_init'](){const _0x5be414=_0x2234f4,_0x2c33aa=this[_0x5be414(0x37b)][_0x5be414(0x215)],_0x59377c=this['_docSkeletonManagerService'];this[_0x5be414(0x1f0)](_0xc2e36([this[_0x5be414(0x226)][_0x5be414(0x2fc)](_0x2c33aa),this[_0x5be414(0x2ca)][_0x5be414(0x17c)]])[_0x5be414(0x277)](_0x20745(([_0x36a548,_0x33ce46])=>({'skeleton':_0x59377c[_0x5be414(0x344)](),'cursors':[..._0x36a548[_0x5be414(0x31b)]()][_0x5be414(0x28a)](_0x28fa44=>({..._0x28fa44,'color':this[_0x5be414(0x2ca)]['getColorFromTheme'](_0x28fa44[_0x5be414(0x24e)])}))})))[_0x5be414(0x190)](_0x133834=>{const _0x514eef=_0x5be414;if(this[_0x514eef(0x34d)](),_0x133834){const {skeleton:_0x56dc95,cursors:_0x3930d0}=_0x133834;this[_0x514eef(0x316)](_0x56dc95,_0x3930d0);}})),this[_0x5be414(0x22b)](),this[_0x5be414(0x255)]();}[_0x2234f4(0x316)](_0x22005d,_0x18c1d1){const _0x4a6b46=_0x2234f4,{scene:_0x58acf2,mainComponent:_0x4141a9}=this['_context'],_0x515d82=_0x18c1d1[_0x4a6b46(0x386)](_0x3e4f89=>new ct(_0x3e4f89,_0x58acf2,_0x22005d,_0x4141a9));this[_0x4a6b46(0x38a)]=_0x515d82,this[_0x4a6b46(0x2b9)]=_0x18c1d1;}[_0x2234f4(0x265)](){const _0xe9a222=_0x2234f4;this['_removeCollabCursors']();const {scene:_0xea7de4,mainComponent:_0x58b022}=this[_0xe9a222(0x37b)],_0x214331=this['_docSkeletonManagerService'][_0xe9a222(0x344)](),_0xfa6019=this[_0xe9a222(0x2b9)][_0xe9a222(0x386)](_0x5dc66b=>new ct(_0x5dc66b,_0xea7de4,_0x214331,_0x58b022));this['_cursorShapes']=_0xfa6019;}[_0x2234f4(0x34d)](){const _0x1da866=_0x2234f4;this['_cursorShapes']['forEach'](_0x36940f=>_0x36940f['dispose']()),this[_0x1da866(0x38a)]=[];}[_0x2234f4(0x255)](){const _0x2b84e8=_0x2234f4,_0xcd9582=[_0x449456['id']];this[_0x2b84e8(0x1f0)](this[_0x2b84e8(0x16f)][_0x2b84e8(0x2a0)](_0x5f3776=>{const _0x394dea=_0x2b84e8;_0xcd9582[_0x394dea(0x38d)](_0x5f3776['id'])&&_0x5f3776[_0x394dea(0x22e)][_0x394dea(0x215)]===this[_0x394dea(0x37b)][_0x394dea(0x215)]&&this[_0x394dea(0x265)]();}));}[_0x2234f4(0x22b)](){const _0x1a212c=_0x2234f4;this['disposeWithMe'](_0x260481(this['_context'][_0x1a212c(0x1a9)][_0x1a212c(0x1cb)])[_0x1a212c(0x277)](_0x38a933(_0xd4ef03=>_0xd4ef03[_0x1a212c(0x1f6)]===_0x5c7d16[_0x1a212c(0x287)]),_0x7a1734(0x10))[_0x1a212c(0x190)](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0xd1a258(_0x6f3011)),ie(0x2,_0xd1a258(H)),ie(0x3,_0xe14216),ie(0x4,_0xd1a258(_0x58053e))],Fe);const qi=0x1,en=1.5;class tn extends _0x7274bf{constructor(_0x456b7b,_0x218b4b){const _0x210280=_0x2234f4;super(_0x456b7b,_0x218b4b),_(this,'_color'),_(this,_0x210280(0x308),!0x1),_(this,_0x210280(0x339)),_(this,_0x210280(0x163),''),_(this,_0x210280(0x19d),_0x210280(0x24c)),_(this,_0x210280(0x2c9)),(_0x218b4b&&this[_0x210280(0x21a)](_0x218b4b),this['onPointerEnter$'][_0x210280(0x2e6)](()=>this[_0x210280(0x21a)]({'hovered':!0x0})),this[_0x210280(0x188)][_0x210280(0x2e6)](()=>this[_0x210280(0x21a)]({'hovered':!0x1})));}[_0x2234f4(0x21a)](_0x1d58da){const _0x5523fd=_0x2234f4;var _0xd3535d,_0xe51ca7,_0x45a478,_0x2829a2,_0x3f7e72,_0x519ba9;this[_0x5523fd(0x36d)]=(_0xd3535d=_0x1d58da[_0x5523fd(0x24e)])!=null?_0xd3535d:this['_color'],this[_0x5523fd(0x308)]=(_0xe51ca7=_0x1d58da[_0x5523fd(0x1c3)])!=null?_0xe51ca7:this[_0x5523fd(0x308)],this['_range']=(_0x45a478=_0x1d58da[_0x5523fd(0x174)])!=null?_0x45a478:this[_0x5523fd(0x339)],this['_name']=(_0x2829a2=_0x1d58da[_0x5523fd(0x2f6)])!=null?_0x2829a2:this['_name'],this['_labelPosition']=(_0x3f7e72=_0x1d58da[_0x5523fd(0x1b7)])!=null?_0x3f7e72:this[_0x5523fd(0x19d)],this[_0x5523fd(0x2c9)]=(_0x519ba9=_0x1d58da[_0x5523fd(0x2e4)])!=null?_0x519ba9:this[_0x5523fd(0x2c9)],this[_0x5523fd(0x305)]({'width':_0x1d58da[_0x5523fd(0x16a)],'height':_0x1d58da[_0x5523fd(0x156)]});}['onMouseMove'](_0x8b13d3){const _0xcf2c66=_0x2234f4,{row:_0x34e3e5,column:_0x2710a0}=_0x8b13d3;if(_0x34e3e5>=this[_0xcf2c66(0x339)]['startRow']&&_0x34e3e5<=this[_0xcf2c66(0x339)]['endRow']&&_0x2710a0>=this[_0xcf2c66(0x339)][_0xcf2c66(0x2b1)]&&_0x2710a0<=this['_range'][_0xcf2c66(0x1c6)]){this[_0xcf2c66(0x21a)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x2234f4(0x346)](_0x18ae2b){return!0x1;}['_draw'](_0x53bde6){const _0x5e08a5=_0x2234f4;_0x412f0f[_0x5e08a5(0x151)](_0x53bde6,{'width':this[_0x5e08a5(0x16a)],'height':this[_0x5e08a5(0x156)],'strokeWidth':en,'stroke':this[_0x5e08a5(0x36d)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x5e08a5(0x308)]&&(_0x53bde6[_0x5e08a5(0x28f)](),_0x53bde6[_0x5e08a5(0x2d0)](0x1,0x0,0x0,0x1,this[_0x5e08a5(0x16a)],this[_0x5e08a5(0x19d)]===_0x5e08a5(0x2fe)?0x0:-Q),ve[_0x5e08a5(0x151)](_0x53bde6,{'text':this[_0x5e08a5(0x163)],'color':this['_color']}),_0x53bde6[_0x5e08a5(0x336)]());}}var sn=Object[_0x2234f4(0x378)],nn=(_0x4c2718,_0xfb915d,_0x3e5f88,_0x2ecdd6)=>{const _0x484519=_0x2234f4;for(var _0x5628c3=_0x2ecdd6>0x1?void 0x0:_0x2ecdd6?sn(_0xfb915d,_0x3e5f88):_0xfb915d,_0x15aba2=_0x4c2718[_0x484519(0x31d)]-0x1,_0x2d1535;_0x15aba2>=0x0;_0x15aba2--)(_0x2d1535=_0x4c2718[_0x15aba2])&&(_0x5628c3=_0x2d1535(_0x5628c3)||_0x5628c3);return _0x5628c3;},be=(_0x27b1ae,_0x4e5b6f)=>(_0x12c26b,_0x59890f)=>_0x4e5b6f(_0x12c26b,_0x59890f,_0x27b1ae);const rn=0x1389;let ke=class extends _0x2f4832{constructor(_0x409091,_0xafd73c,_0x28b70d,_0x5e88c8){const _0x326852=_0x2234f4;super(),_(this,_0x326852(0x2b9),new Set()),_(this,_0x326852(0x33a),null),(this[_0x326852(0x37b)]=_0x409091,this[_0x326852(0x1a5)]=_0xafd73c,this[_0x326852(0x226)]=_0x28b70d,this[_0x326852(0x2ca)]=_0x5e88c8,this[_0x326852(0x1b5)]());}[_0x2234f4(0x1b5)](){const _0x75ffec=_0x2234f4;this['_sheetSkeletonManagerService'][_0x75ffec(0x2ae)][_0x75ffec(0x277)](_0x5364bd(this[_0x75ffec(0x1cd)]),_0x384c74(_0x2f98da=>{const _0x4ae639=_0x75ffec;if(_0x2f98da){const _0x103391=_0x2f98da['sheetId'];return _0xc2e36(this['_collabCursorController'][_0x4ae639(0x2fc)](this[_0x4ae639(0x37b)][_0x4ae639(0x215)]),this[_0x4ae639(0x2ca)][_0x4ae639(0x17c)])[_0x4ae639(0x277)](_0x20745(([_0x1fd1c5,_0x26217b])=>{const _0x43ca3d=_0x4ae639,_0xfcd94b=new Map();return _0x1fd1c5[_0x43ca3d(0x32f)]((_0x8d6d60,_0x50862c)=>{const _0x48e853=_0x43ca3d;if(_0x8d6d60[_0x48e853(0x268)]===_0x103391){const _0x477754={..._0x8d6d60};_0x477754[_0x48e853(0x24e)]=this['_themeService']['getColorFromTheme'](_0x8d6d60[_0x48e853(0x24e)]),_0xfcd94b[_0x48e853(0x1f9)](_0x50862c,_0x477754);}}),{'skeleton':_0x2f98da,'cursors':_0xfcd94b};}));}return _0x472e7c({'skeleton':null,'cursors':new Map()});}))[_0x75ffec(0x190)](({skeleton:_0x4353fb,cursors:_0x4c474a})=>{const _0x523d07=_0x75ffec;this[_0x523d07(0x34d)](),_0x4353fb&&this[_0x523d07(0x316)](_0x4353fb,_0x4c474a);}),this[_0x75ffec(0x1a5)][_0x75ffec(0x2ae)][_0x75ffec(0x190)](_0x2c5e34=>{const _0x1f1402=_0x75ffec;if(_0x2c5e34==null)return;const {skeleton:_0x1b4010}=_0x2c5e34,{scene:_0x4f15c3}=this[_0x1f1402(0x37b)];_0x4f15c3[_0x1f1402(0x1c9)][_0x1f1402(0x2e6)](_0x4564b6(_0x24d68b=>{const _0x389577=_0x1f1402;var _0x3553db,_0x429765;const {offsetX:_0x42943b,offsetY:_0x5ce2a5}=_0x24d68b,{x:_0x30da6c,y:_0x1bb238}=_0x4f15c3[_0x389577(0x248)](_0x9fdc2[_0x389577(0x30f)]([_0x42943b,_0x5ce2a5])),{scaleX:_0x103874,scaleY:_0x5e32c2}=_0x4f15c3[_0x389577(0x232)](),_0x5cc77f=_0x4f15c3[_0x389577(0x2f7)](_0x3f9e69['VIEW_MAIN']),_0x401a1a=_0x4f15c3[_0x389577(0x1f3)](_0x9fdc2[_0x389577(0x30f)]([_0x30da6c,_0x1bb238]),_0x5cc77f),_0xaaff1c=_0x1b4010[_0x389577(0x370)](_0x42943b,_0x5ce2a5,_0x103874,_0x5e32c2,_0x401a1a);((_0x3553db=this[_0x389577(0x33a)])==null?void 0x0:_0x3553db[_0x389577(0x253)])===_0xaaff1c[_0x389577(0x253)]&&((_0x429765=this[_0x389577(0x33a)])==null?void 0x0:_0x429765['row'])===_0xaaff1c[_0x389577(0x270)]||this[_0x389577(0x2b9)][_0x389577(0x32f)](_0x369648=>{const _0x50b6a1=_0x389577;_0x369648[_0x50b6a1(0x2b6)](_0xaaff1c);});},0x64));});}['_updateCollabCursors'](_0x512c28,_0x2ee8c2){const _0x53996e=_0x2234f4;var _0x16a677;const _0x59d73d=(_0x16a677=this[_0x53996e(0x1a5)]['getCurrent']())==null?void 0x0:_0x16a677[_0x53996e(0x1e7)];if(!_0x59d73d)return;const _0x418df6=this[_0x53996e(0x2d2)]();if(!_0x418df6)return;this[_0x53996e(0x2b9)]['forEach'](_0x6f3175=>{const _0x264862=_0x53996e;_0x6f3175[_0x264862(0x225)]();});const {scene:_0x40c3ff}=_0x418df6,_0x72552b=on(Array[_0x53996e(0x34f)](_0x2ee8c2[_0x53996e(0x31b)]()))[_0x53996e(0x386)](_0x19ae83=>{const {color:_0x20f48d,range:_0xdf6ede,name:_0x44f4ec,selection:_0x533fff,sheetID:_0x5795a1}=_0x19ae83,{startColumn:_0x4d7662,startRow:_0x476f31,endColumn:_0x173d96,endRow:_0x51df9b}=_0xdf6ede,_0x4909d3=_0x253e23(_0x476f31,_0x4d7662,_0x40c3ff,_0x59d73d),_0x2d79a6=_0x253e23(_0x51df9b,_0x173d96,_0x40c3ff,_0x59d73d),{columnHeaderHeightAndMarginTop:_0x5e490b}=_0x59d73d,{startX:_0x38b910,startY:_0x2add09}=_0x4909d3,{endX:_0x32ccde,endY:_0x273eb4}=_0x2d79a6,_0x1dc926=_0x32ccde-_0x38b910,_0x5546d9=_0x273eb4-_0x2add09,_0xc96531={'labelPosition':_0x2add09-_0x5e490b>=Q?'top':'bottom','sheetID':_0x5795a1,'range':_0xdf6ede,'color':_0x20f48d,'name':_0x44f4ec,'selection':_0x533fff,'left':_0x38b910,'top':_0x2add09,'width':_0x1dc926,'height':_0x5546d9,'evented':!0x1,'zIndex':rn};return new tn(_0x44f4ec,_0xc96531);});_0x40c3ff[_0x53996e(0x375)](_0x72552b,qi),this[_0x53996e(0x2b9)]=new Set(_0x72552b);}[_0x2234f4(0x34d)](){const _0x437ee3=_0x2234f4;var _0x1655da;(_0x1655da=this[_0x437ee3(0x2b9)])==null||_0x1655da[_0x437ee3(0x32f)](_0x2e6b86=>_0x2e6b86['dispose']());}[_0x2234f4(0x2d2)](){const _0x198c38=_0x2234f4;return _0x5bbea2(this[_0x198c38(0x37b)][_0x198c38(0x283)],this[_0x198c38(0x37b)]);}};ke=nn([be(0x1,_0xd1a258(_0x43ba20)),be(0x2,_0xd1a258(H)),be(0x3,_0xd1a258(_0x58053e))],ke);function on(_0x1f2093){const _0x5a7949=_0x2234f4,_0x1e17bf=new Map();return _0x1f2093[_0x5a7949(0x32f)](_0x3f34a0=>{const _0x3f85d6=_0x5a7949;if(_0x1e17bf[_0x3f85d6(0x30c)](_0x3f34a0[_0x3f85d6(0x15f)])){const _0x3b46d3=_0x1e17bf[_0x3f85d6(0x184)](_0x3f34a0[_0x3f85d6(0x15f)]);_0x3b46d3['name']+=',\x20'+_0x3f34a0[_0x3f85d6(0x2f6)];}else _0x1e17bf[_0x3f85d6(0x1f9)](_0x3f34a0[_0x3f85d6(0x15f)],_0x3f34a0);}),Array['from'](_0x1e17bf[_0x5a7949(0x31b)]());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x1dfd15,_0x1caaf0,_0x5e6c5d,_0x5d1da9)=>{const _0x3fb550=_0x2234f4;for(var _0x245990=_0x5d1da9>0x1?void 0x0:_0x5d1da9?an(_0x1caaf0,_0x5e6c5d):_0x1caaf0,_0x54eb01=_0x1dfd15[_0x3fb550(0x31d)]-0x1,_0x2af795;_0x54eb01>=0x0;_0x54eb01--)(_0x2af795=_0x1dfd15[_0x54eb01])&&(_0x245990=_0x2af795(_0x245990)||_0x245990);return _0x245990;},F=(_0x9f845e,_0x4ae64c)=>(_0x48b01c,_0x42d1a1)=>_0x4ae64c(_0x48b01c,_0x42d1a1,_0x9f845e);let _e=class extends _0x451219{constructor(_0x3bb9a5,_0x3dd1e5,_0x1eafda,_0x1b91b6,_0x15b075,_0x256a7e){const _0x3f0268=_0x2234f4;super(),this['_beforeCloseService']=_0x3bb9a5,this[_0x3f0268(0x158)]=_0x3dd1e5,this[_0x3f0268(0x2c0)]=_0x1eafda,this[_0x3f0268(0x196)]=_0x1b91b6,this['_notificationService']=_0x15b075,this[_0x3f0268(0x1ed)]=_0x256a7e,this[_0x3f0268(0x237)](),this['_initEvent']();}[_0x2234f4(0x237)](){const _0x50696c=_0x2234f4;this['disposeWithMe'](this[_0x50696c(0x187)]['registerBeforeClose'](()=>{const _0x351907=_0x50696c;if(this[_0x351907(0x158)][_0x351907(0x1a7)]['size'])return this[_0x351907(0x1ed)]['t'](_0x351907(0x168));}));}[_0x2234f4(0x1d1)](){const _0x3c731d=_0x2234f4;this[_0x3c731d(0x1f0)](this['_collaborationUIEventService']['event$'][_0x3c731d(0x190)](_0x129f60=>{const _0x3a8dda=_0x3c731d;_0x129f60['id']===_0x6c7f9c[_0x3a8dda(0x2c4)]&&this[_0x3a8dda(0x196)][_0x3a8dda(0x2b2)]({'type':_0x47fe57[_0x3a8dda(0x21c)],'content':this[_0x3a8dda(0x1ed)]['t'](_0x3a8dda(0x1c4))}),_0x129f60['id']===_0x6c7f9c[_0x3a8dda(0x19c)]&&this[_0x3a8dda(0x196)][_0x3a8dda(0x2b2)]({'type':_0x47fe57[_0x3a8dda(0x21c)],'content':this[_0x3a8dda(0x1ed)]['t'](_0x3a8dda(0x365))}),_0x129f60['id']===_0x6c7f9c[_0x3a8dda(0x31a)]&&this[_0x3a8dda(0x19f)][_0x3a8dda(0x2b2)]({'title':this['_localeService']['t']('permission.title'),'content':this['_localeService']['t'](_0x3a8dda(0x1a2)),'type':_0x3a8dda(0x197),'duration':0x0}),_0x129f60['id']===_0x6c7f9c[_0x3a8dda(0x1d6)]&&this['_messageService'][_0x3a8dda(0x2b2)]({'type':_0x47fe57[_0x3a8dda(0x27e)],'content':this[_0x3a8dda(0x1ed)]['t'](_0x3a8dda(0x365))+'('+_0x129f60['data']+')'}),_0x129f60['id']===_0x6c7f9c[_0x3a8dda(0x1eb)]&&this[_0x3a8dda(0x196)][_0x3a8dda(0x2b2)]({'type':_0x47fe57[_0x3a8dda(0x21c)],'content':this[_0x3a8dda(0x1ed)]['t'](_0x129f60[_0x3a8dda(0x2b4)]||'')}),_0x129f60['id']===_0x6c7f9c[_0x3a8dda(0x16d)]&&this[_0x3a8dda(0x196)]['show']({'type':_0x47fe57[_0x3a8dda(0x21c)],'content':this[_0x3a8dda(0x1ed)]['t']('session.will-retry')}),_0x129f60['id']===_0x6c7f9c[_0x3a8dda(0x276)]&&this['_messageService'][_0x3a8dda(0x2b2)]({'type':_0x47fe57[_0x3a8dda(0x27e)],'content':this['_localeService']['t'](_0x3a8dda(0x2fd))}),_0x129f60['id']===_0x6c7f9c[_0x3a8dda(0x249)]&&this['_messageService'][_0x3a8dda(0x2b2)]({'type':_0x47fe57[_0x3a8dda(0x27e)],'content':this[_0x3a8dda(0x1ed)]['t'](_0x3a8dda(0x31c))});}));}};_e=cn([F(0x0,_0x35fbb7),F(0x1,_0xcdb955),F(0x2,_0xd1a258(_0x40529c)),F(0x3,_0x1de295),F(0x4,_0x2a6254),F(0x5,_0xd1a258(_0x5c8592))],_e);var _n=Object[_0x2234f4(0x378)],ln=(_0x18f7fe,_0x2f5861,_0x3fe69b,_0x197d9f)=>{const _0x35df2f=_0x2234f4;for(var _0x46e2ef=_0x197d9f>0x1?void 0x0:_0x197d9f?_n(_0x2f5861,_0x3fe69b):_0x2f5861,_0x16de9=_0x18f7fe[_0x35df2f(0x31d)]-0x1,_0x1f186c;_0x16de9>=0x0;_0x16de9--)(_0x1f186c=_0x18f7fe[_0x16de9])&&(_0x46e2ef=_0x1f186c(_0x46e2ef)||_0x46e2ef);return _0x46e2ef;},ne=(_0x266f95,_0x593d48)=>(_0x17e298,_0x48ab21)=>_0x593d48(_0x17e298,_0x48ab21,_0x266f95);let le=class extends _0x451219{constructor(_0x12358c,_0x5d0cb1,_0x2eed4f,_0x2c317f){const _0x4dd154=_0x2234f4;super(),_(this,_0x4dd154(0x1dc)),(this[_0x4dd154(0x1e1)]=_0x12358c,this[_0x4dd154(0x327)]=_0x5d0cb1,this[_0x4dd154(0x21d)]=_0x2eed4f,this['_collaborationSessionService']=_0x2c317f,this['_init']());}[_0x2234f4(0x1b5)](){const _0x45f9b6=_0x2234f4;this[_0x45f9b6(0x2ef)](),this['_initUnhandledRejectionListener'](),this[_0x45f9b6(0x1cc)](),this[_0x45f9b6(0x140)]();}['_initUserListener'](){const _0x1a9e41=_0x2234f4;this[_0x1a9e41(0x1f0)](this[_0x1a9e41(0x356)][_0x1a9e41(0x282)]['subscribe'](_0x59448b=>{const _0x1ff661=_0x1a9e41;this[_0x1ff661(0x1dc)]=_0x59448b==null?void 0x0:_0x59448b['memberID'];}));}[_0x2234f4(0x2ef)](){const _0x15677e=_0x2234f4,_0x1e86e5=_0x30f31b=>{const _0x9b8cc2=_0x34ce;var _0x5d0e47;this[_0x9b8cc2(0x258)](_0x9b8cc2(0x197),_0x9b8cc2(0x2f4)+_0x30f31b['message']+_0x9b8cc2(0x285)+_0x30f31b[_0x9b8cc2(0x2de)]+':'+_0x30f31b[_0x9b8cc2(0x161)]+':'+_0x30f31b['colno']+'\x0a'+(((_0x5d0e47=_0x30f31b[_0x9b8cc2(0x197)])==null?void 0x0:_0x5d0e47[_0x9b8cc2(0x2c1)])||''));};window[_0x15677e(0x25d)]('error',_0x1e86e5),this[_0x15677e(0x1f0)](()=>{const _0x47f5c1=_0x15677e;window[_0x47f5c1(0x1fd)](_0x47f5c1(0x197),_0x1e86e5);});}[_0x2234f4(0x15a)](){const _0x27ecca=_0x2234f4,_0x4585f8=_0x207b8c=>{const _0xaeedf3=_0x34ce;this[_0xaeedf3(0x258)](_0xaeedf3(0x197),'[Unhandled\x20Rejection]:\x20'+_0x207b8c['reason']);};window[_0x27ecca(0x25d)](_0x27ecca(0x2c2),_0x4585f8),this[_0x27ecca(0x1f0)](()=>{const _0x598ce3=_0x27ecca;window[_0x598ce3(0x1fd)]('unhandledrejection',_0x4585f8);});}[_0x2234f4(0x1cc)](){const _0x194d86=_0x2234f4,_0x4ebc92=this[_0x194d86(0x21d)][_0x194d86(0x197)][_0x194d86(0x16e)](this[_0x194d86(0x21d)]);this[_0x194d86(0x21d)][_0x194d86(0x197)]=(..._0x41c516)=>{const _0x268441=_0x194d86,_0xa47259=_0x41c516['map'](_0x494ce0=>_0x494ce0 instanceof Error?_0x494ce0[_0x268441(0x35f)]+'\x0a'+_0x494ce0[_0x268441(0x2c1)]:String(_0x494ce0))['join']('\x20');this[_0x268441(0x258)](_0x268441(0x197),'[LogService\x20Error]:\x20'+_0xa47259),_0x4ebc92(..._0x41c516);},this[_0x194d86(0x1f0)](()=>{const _0x5c29bb=_0x194d86;this[_0x5c29bb(0x21d)][_0x5c29bb(0x197)]=_0x4ebc92;});}[_0x2234f4(0x258)](_0x5756d2,_0x3b181f){const _0xf60381=_0x2234f4;try{const _0x44bb90={'userId':this[_0xf60381(0x1dc)],'logLabel':_0x5756d2,'content':_0x3b181f};this[_0xf60381(0x327)][_0xf60381(0x2a5)](_0xf60381(0x159),{'body':_0x44bb90})[_0xf60381(0x1dd)](()=>{});}catch{}}};le=ln([ne(0x0,_0xd1a258(_0x4075d0)),ne(0x1,_0xd1a258(_0x185939)),ne(0x2,_0x5d513a),ne(0x3,_0xd1a258(_0x7164ac))],le);const hn=_0x2234f4(0x152),_t={};var un=Object[_0x2234f4(0x378)],dn=(_0x4757dd,_0x12c24c,_0x514cc6,_0x309f3f)=>{for(var _0x413cc1=_0x309f3f>0x1?void 0x0:_0x309f3f?un(_0x12c24c,_0x514cc6):_0x12c24c,_0x5a445d=_0x4757dd['length']-0x1,_0x15076c;_0x5a445d>=0x0;_0x5a445d--)(_0x15076c=_0x4757dd[_0x5a445d])&&(_0x413cc1=_0x15076c(_0x413cc1)||_0x413cc1);return _0x413cc1;},lt=(_0x1b339d,_0x51de78)=>(_0x881993,_0x52b196)=>_0x51de78(_0x881993,_0x52b196,_0x1b339d);let he=class{constructor(_0x499bc2,_0xc40d03){this['_transformService']=_0x499bc2,this['_renderManagerService']=_0xc40d03;}[_0x2234f4(0x17b)](_0x2c45c4){const _0x5e80a8=_0x2234f4;this[_0x5e80a8(0x2ba)](_0x2c45c4),this[_0x5e80a8(0x1a4)](_0x2c45c4);}[_0x2234f4(0x183)](_0x6f80a5){const _0x1eb830=_0x2234f4,{unitID:_0x1ee5d5}=_0x6f80a5,_0xb46b1b=this[_0x1eb830(0x36a)][_0x1eb830(0x2df)](_0x1ee5d5)[_0x1eb830(0x142)](_0x29a072),{redoCache:_0x4e371f}=_0xb46b1b[_0x1eb830(0x2cb)]();if(_0x4e371f[_0x1eb830(0x31d)]===0x0)return _0x6f80a5;let _0x4386c7=_0x8e5b3b[_0x1eb830(0x1d3)](_0x6f80a5[_0x1eb830(0x24d)][0x0]);for(let _0x42ece1=0x0;_0x42ece1<_0x4e371f[_0x1eb830(0x31d)];_0x42ece1++){const _0x4f6e3a={'id':_0x1eb830(0x37d),'params':{..._0x4e371f[_0x42ece1]}},_0x4c812f=this['_transformService']['transformMutation'](_0x4386c7,_0x4f6e3a,!0x1);if(_0x56152a(_0x4c812f))throw _0x4c812f[_0x1eb830(0x197)];_0x4386c7=_0x4c812f[_0x1eb830(0x2cc)];}return{..._0x8e5b3b[_0x1eb830(0x1d3)](_0x6f80a5),'mutations':[_0x4386c7]};}[_0x2234f4(0x2ba)](_0x20cc9a){const _0x347459=_0x2234f4,{unitID:_0x2d4d30}=_0x20cc9a,_0x2ceab0=this[_0x347459(0x36a)][_0x347459(0x2df)](_0x2d4d30)[_0x347459(0x142)](_0x29a072),{undoCache:_0x384edc,redoCache:_0x9a72ea}=_0x2ceab0[_0x347459(0x2cb)]();if(_0x384edc[_0x347459(0x31d)]===0x0||_0x9a72ea[_0x347459(0x31d)]===0x0)return;const _0x33b33a=[],_0x119277=[];let _0x8e5aa7=_0x8e5b3b[_0x347459(0x1d3)](_0x20cc9a['mutations'][0x0]),_0x19276b=_0x8e5b3b[_0x347459(0x1d3)](_0x20cc9a[_0x347459(0x24d)][0x0]);for(let _0x19551d=_0x384edc[_0x347459(0x31d)]-0x1;_0x19551d>=0x0;_0x19551d--){const _0x349085={'id':_0x347459(0x37d),'params':{..._0x384edc[_0x19551d]}},_0x4d0729={'id':'doc.mutation.rich-text-editing','params':{..._0x9a72ea[_0x19551d]}},_0x4b9a6a=this[_0x347459(0x1e6)]['transformMutation'](_0x8e5aa7,_0x349085,!0x1),_0x5b3e8a=this['_transformService'][_0x347459(0x1fe)](_0x19276b,_0x4d0729,!0x1);if(_0x56152a(_0x4b9a6a))throw _0x4b9a6a['error'];if(_0x56152a(_0x5b3e8a))throw _0x5b3e8a[_0x347459(0x197)];_0x33b33a['unshift'](_0x4b9a6a[_0x347459(0x32c)]['params']),_0x119277[_0x347459(0x193)](_0x5b3e8a['m2Prime']['params']),_0x8e5aa7=_0x4b9a6a[_0x347459(0x2cc)],_0x19276b=_0x5b3e8a['m1Prime'];}_0x2ceab0[_0x347459(0x21b)]({'undoCache':_0x33b33a,'redoCache':_0x119277});}[_0x2234f4(0x1a4)](_0x3ccd10){const _0x226a06=_0x2234f4,{unitID:_0x2cfaf2}=_0x3ccd10,_0x1322ce=this[_0x226a06(0x36a)][_0x226a06(0x2df)](_0x2cfaf2)[_0x226a06(0x142)](_0x29a072),_0x40501d=_0x1322ce[_0x226a06(0x2c6)]();if(_0x40501d==null)return;const _0x13fea8=[{'id':_0x226a06(0x37d),'params':{'unitId':_0x3ccd10['unitID'],'actions':null,'textRanges':[_0x40501d]}}],_0x389f55=this[_0x226a06(0x1e6)][_0x226a06(0x1ac)](_0x3ccd10,_0x13fea8);if(!_0x34ce1a(_0x389f55))throw _0x389f55[_0x226a06(0x197)];const _0x33e2b0=_0x389f55[_0x226a06(0x32c)][0x0][_0x226a06(0x22e)]['textRanges'];Array[_0x226a06(0x284)](_0x33e2b0)&&_0x33e2b0[_0x226a06(0x31d)]&&_0x1322ce[_0x226a06(0x2aa)](_0x33e2b0[0x0]);}};he=dn([lt(0x0,_0x494dd8),lt(0x1,_0x5a59d5)],he);var Sn=Object[_0x2234f4(0x378)],In=(_0x6f540c,_0x55a029,_0x44fd23,_0x249a99)=>{const _0x3f3029=_0x2234f4;for(var _0x52e444=_0x249a99>0x1?void 0x0:_0x249a99?Sn(_0x55a029,_0x44fd23):_0x55a029,_0xd22267=_0x6f540c[_0x3f3029(0x31d)]-0x1,_0x475c5a;_0xd22267>=0x0;_0xd22267--)(_0x475c5a=_0x6f540c[_0xd22267])&&(_0x52e444=_0x475c5a(_0x52e444)||_0x52e444);return _0x52e444;},Le=(_0x50116d,_0x19291f)=>(_0x12ea7d,_0xe76091)=>_0x19291f(_0x12ea7d,_0xe76091,_0x50116d);let ue=class{constructor(_0x91f868,_0x2fc569,_0x3a8bca){const _0x2ee87b=_0x2234f4;this['_injector']=_0x91f868,this[_0x2ee87b(0x1e6)]=_0x2fc569,this[_0x2ee87b(0x2db)]=_0x3a8bca;}[_0x2234f4(0x223)](_0x13e258){const _0x24ba74=_0x2234f4;this[_0x24ba74(0x30e)](_0x13e258);}[_0x2234f4(0x183)](_0xe809fb){const _0x3ce95c=_0x2234f4,{unitID:_0xbf2e69}=_0xe809fb,{collaboration:_0x2c3455}=this[_0x3ce95c(0x2db)][_0x3ce95c(0x1a0)](_0xbf2e69);if(_0x2c3455['length']===0x0)return _0xe809fb;let _0x11a769=_0x8e5b3b[_0x3ce95c(0x1d3)](_0xe809fb[_0x3ce95c(0x24d)][0x0]);for(let _0xffe3bb=0x0;_0xffe3bb<_0x2c3455[_0x3ce95c(0x31d)];_0xffe3bb++){const _0x5ef743={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2c3455[_0xffe3bb][_0x3ce95c(0x215)],..._0x2c3455[_0xffe3bb][_0x3ce95c(0x2d9)]}},_0x5559fe=this[_0x3ce95c(0x1e6)][_0x3ce95c(0x1fe)](_0x11a769,_0x5ef743,!0x1);if(_0x56152a(_0x5559fe))throw _0x5559fe[_0x3ce95c(0x197)];_0x11a769=_0x5559fe[_0x3ce95c(0x2cc)];}return{..._0x8e5b3b[_0x3ce95c(0x1d3)](_0xe809fb),'mutations':[_0x11a769]};}[_0x2234f4(0x30e)](_0x130f8f){const _0x1ac51b=_0x2234f4,{unitID:_0x3f876c}=_0x130f8f,{history:_0x1c5149,collaboration:_0xe30041}=this[_0x1ac51b(0x2db)][_0x1ac51b(0x1a0)](_0x3f876c);if(_0x1c5149['length']===0x0&&_0xe30041[_0x1ac51b(0x31d)]===0x0)return;const _0x3ef711=[],_0xea33bf=[];let _0x65781a=_0x8e5b3b[_0x1ac51b(0x1d3)](_0x130f8f[_0x1ac51b(0x24d)][0x0]),_0xc4bb9a=_0x8e5b3b[_0x1ac51b(0x1d3)](_0x130f8f[_0x1ac51b(0x24d)][0x0]);for(let _0x47dc9e=_0x1c5149[_0x1ac51b(0x31d)]-0x1;_0x47dc9e>=0x0;_0x47dc9e--){const _0x2d512d={'id':_0x1ac51b(0x37d),'params':{'unitId':_0x1c5149[_0x47dc9e][_0x1ac51b(0x215)],..._0x1c5149[_0x47dc9e]['undoState']}},_0x21fde5={'id':_0x1ac51b(0x37d),'params':{'unitId':_0x1c5149[_0x47dc9e][_0x1ac51b(0x215)],..._0x1c5149[_0x47dc9e][_0x1ac51b(0x2d9)]}},_0xb931d5=this['_transformService'][_0x1ac51b(0x1fe)](_0x65781a,_0x2d512d,!0x1),_0x3693d8=this[_0x1ac51b(0x1e6)][_0x1ac51b(0x1fe)](_0xc4bb9a,_0x21fde5,!0x1);if(_0x56152a(_0xb931d5))throw _0xb931d5[_0x1ac51b(0x197)];if(_0x56152a(_0x3693d8))throw _0x3693d8[_0x1ac51b(0x197)];_0x3ef711[_0x1ac51b(0x193)]({..._0x1c5149[_0x47dc9e],'undoState':_0xb931d5['m2Prime'][_0x1ac51b(0x22e)],'redoState':_0x3693d8[_0x1ac51b(0x32c)][_0x1ac51b(0x22e)]}),_0x65781a=_0xb931d5[_0x1ac51b(0x2cc)],_0xc4bb9a=_0x3693d8[_0x1ac51b(0x2cc)];}_0x65781a=_0x8e5b3b[_0x1ac51b(0x1d3)](_0x130f8f['mutations'][0x0]),_0xc4bb9a=_0x8e5b3b[_0x1ac51b(0x1d3)](_0x130f8f[_0x1ac51b(0x24d)][0x0]);for(let _0x54e88a=_0xe30041[_0x1ac51b(0x31d)]-0x1;_0x54e88a>=0x0;_0x54e88a--){const _0x5a301f={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xe30041[_0x54e88a][_0x1ac51b(0x215)],..._0xe30041[_0x54e88a][_0x1ac51b(0x1bf)]}},_0x3702b2={'id':_0x1ac51b(0x37d),'params':{'unitId':_0xe30041[_0x54e88a][_0x1ac51b(0x215)],..._0xe30041[_0x54e88a][_0x1ac51b(0x2d9)]}},_0x50fea7=this[_0x1ac51b(0x1e6)][_0x1ac51b(0x1fe)](_0x65781a,_0x5a301f,!0x1),_0x329159=this[_0x1ac51b(0x1e6)][_0x1ac51b(0x1fe)](_0xc4bb9a,_0x3702b2,!0x1);if(_0x56152a(_0x50fea7))throw _0x50fea7[_0x1ac51b(0x197)];if(_0x56152a(_0x329159))throw _0x329159[_0x1ac51b(0x197)];_0xea33bf[_0x1ac51b(0x193)]({..._0xe30041[_0x54e88a],'undoState':_0x50fea7[_0x1ac51b(0x32c)]['params'],'redoState':_0x329159['m2Prime'][_0x1ac51b(0x22e)]}),_0x65781a=_0x50fea7[_0x1ac51b(0x2cc)],_0xc4bb9a=_0x329159[_0x1ac51b(0x2cc)];}this[_0x1ac51b(0x2db)][_0x1ac51b(0x2d8)](_0x3f876c,{'history':_0x3ef711,'collaboration':_0xea33bf});}};ue=In([Le(0x0,_0xd1a258(_0x4075d0)),Le(0x1,_0x494dd8),Le(0x2,_0xd1a258(_0x569f77))],ue);var mn=Object[_0x2234f4(0x378)],fn=(_0x105915,_0xfd4526,_0x3e7d2,_0x24f703)=>{const _0x2e48a7=_0x2234f4;for(var _0x26cbdf=_0x24f703>0x1?void 0x0:_0x24f703?mn(_0xfd4526,_0x3e7d2):_0xfd4526,_0x2a1465=_0x105915[_0x2e48a7(0x31d)]-0x1,_0x3fd695;_0x2a1465>=0x0;_0x2a1465--)(_0x3fd695=_0x105915[_0x2a1465])&&(_0x26cbdf=_0x3fd695(_0x26cbdf)||_0x26cbdf);return _0x26cbdf;},ht=(_0x2e359e,_0x3198f8)=>(_0x3ff2a0,_0x3da6f6)=>_0x3198f8(_0x3ff2a0,_0x3da6f6,_0x2e359e);let de=class{constructor(_0x5add6e,_0x508064){const _0x4f14b4=_0x2234f4;this['_injector']=_0x5add6e,this[_0x4f14b4(0x1e6)]=_0x508064;}[_0x2234f4(0x260)](_0x32a9c5){const _0x5f54e1=_0x2234f4;var _0x17ee4d;const _0x1e1586=this[_0x5f54e1(0x1e1)][_0x5f54e1(0x184)](_0x121fc3),_0x4b949f=(_0x17ee4d=_0x1e1586[_0x5f54e1(0x2e8)]())!=null?_0x17ee4d:[];if(_0x4b949f[_0x5f54e1(0x31d)]===0x0)return;const _0x4e1150=_0x32a9c5[_0x5f54e1(0x298)],_0x53c5f0=[{'id':_0x5f54e1(0x37d),'params':{'unitId':_0x4e1150,'actions':null,'textRanges':_0x4b949f}}],_0x1f82f2=this[_0x5f54e1(0x1e6)]['transformMutationsWithChangeset'](_0x32a9c5,_0x53c5f0);if(!_0x34ce1a(_0x1f82f2))throw _0x1f82f2['error'];const _0x1408c9=_0x1f82f2[_0x5f54e1(0x32c)][0x0]['params'][_0x5f54e1(0x382)];Array['isArray'](_0x1408c9)&&_0x1408c9['length']&&_0x1e1586['replaceDocRanges'](_0x1408c9,{'unitId':_0x4e1150,'subUnitId':_0x4e1150},!0x1);}};de=fn([ht(0x0,_0xd1a258(_0x4075d0)),ht(0x1,_0x494dd8)],de);var gn=Object[_0x2234f4(0x378)],En=(_0x353647,_0x14dca9,_0x411958,_0x2dd93d)=>{const _0x2b10d2=_0x2234f4;for(var _0x1921ad=_0x2dd93d>0x1?void 0x0:_0x2dd93d?gn(_0x14dca9,_0x411958):_0x14dca9,_0x4a4f68=_0x353647[_0x2b10d2(0x31d)]-0x1,_0x31649c;_0x4a4f68>=0x0;_0x4a4f68--)(_0x31649c=_0x353647[_0x4a4f68])&&(_0x1921ad=_0x31649c(_0x1921ad)||_0x1921ad);return _0x1921ad;},U=(_0x4b3a03,_0x92940c)=>(_0x2257a2,_0xfb511e)=>_0x92940c(_0x2257a2,_0xfb511e,_0x4b3a03);let Se=class extends _0x451219{constructor(_0x479a7b,_0x374655,_0x55406e,_0x580ad5,_0xd37150,_0x42efe4,_0x2c1963,_0x35ca30){const _0x4fe305=_0x2234f4;super(),_(this,_0x4fe305(0x153),new _0x40aa62(_0x27f566[_0x4fe305(0x164)])),(this[_0x4fe305(0x2db)]=_0x479a7b,this['_collaborationController']=_0x374655,this[_0x4fe305(0x192)]=_0x55406e,this['_docTransformStateCacheService']=_0x580ad5,this[_0x4fe305(0x307)]=_0xd37150,this[_0x4fe305(0x1c2)]=_0x42efe4,this[_0x4fe305(0x196)]=_0x2c1963,this[_0x4fe305(0x1ed)]=_0x35ca30,this['_initEntityListener']());}[_0x2234f4(0x362)](){const _0x4049f9=_0x2234f4;this[_0x4049f9(0x1f0)](this[_0x4049f9(0x191)][_0x4049f9(0x2dc)][_0x4049f9(0x190)](_0xb35328=>{const _0x416acd=_0x4049f9,_0x2f964a=this[_0x416acd(0x2db)]['docStateChange$'][_0x416acd(0x190)](_0x1d603d=>{const _0x3067ef=_0x416acd;if(_0x1d603d==null)return;const {unitId:_0x53bc8e,redoState:_0x254cbe,commandId:_0x1f1515}=_0x1d603d;if(_0x53bc8e!==_0xb35328[_0x3067ef(0x298)])return;const _0x58150e={'id':_0x1f1515,'type':_0x5c096d[_0x3067ef(0x2b5)],'params':{'unitId':_0x53bc8e,'actions':_0x254cbe[_0x3067ef(0x15c)],'textRanges':null}};_0xb35328['onLocalMutation'](_0x58150e);});if(_0xb35328[_0x416acd(0x1f0)](_0x2f964a),_0xb35328 instanceof _0x301172){const _0x3271a2={'onTransformIME':_0x2f5ca7=>this['_docTransformIMECacheService'][_0x416acd(0x17b)](_0x2f5ca7),'onTransformState':_0x341993=>this[_0x416acd(0x219)][_0x416acd(0x223)](_0x341993),'onTransformSelections':_0x599655=>this['_docTransformSelectionsService'][_0x416acd(0x260)](_0x599655),'onSyncEditingCollabCursor':_0x2ccbb8=>this[_0x416acd(0x1c2)][_0x416acd(0x337)](_0x2ccbb8),'onTransformRemoteChangesetByIMECache':_0x2473d2=>this[_0x416acd(0x192)]['transformRemoteChangeset'](_0x2473d2),'onTransformRemoteChangesetByStateCache':_0x11549a=>this[_0x416acd(0x219)][_0x416acd(0x183)](_0x11549a)};_0xb35328['addHandlerCallback'](_0x3271a2);}}));}};Se=En([U(0x0,_0xd1a258(_0x569f77)),U(0x1,_0xd1a258(_0x54f68d)),U(0x2,_0xd1a258(he)),U(0x3,_0xd1a258(ue)),U(0x4,_0xd1a258(de)),U(0x5,_0xd1a258(ze)),U(0x6,_0x1de295),U(0x7,_0xd1a258(_0x5c8592))],Se);var Z=(_0x5cc489=>(_0x5cc489[_0x5cc489['UNDEFINED']=0x0]=_0x2234f4(0x292),_0x5cc489[_0x5cc489['OK']=0x1]='OK',_0x5cc489[_0x5cc489[_0x2234f4(0x2a2)]=0x2]='INTERNAL_ERROR',_0x5cc489[_0x5cc489[_0x2234f4(0x31a)]=0x3]=_0x2234f4(0x31a),_0x5cc489[_0x5cc489[_0x2234f4(0x359)]=0x4]=_0x2234f4(0x359),_0x5cc489[_0x5cc489[_0x2234f4(0x229)]=0x5]='UNAUTHENTICATED',_0x5cc489[_0x5cc489[_0x2234f4(0x251)]=0x6]='ALREADY_EXISTS',_0x5cc489[_0x5cc489[_0x2234f4(0x182)]=0x7]=_0x2234f4(0x182),_0x5cc489[_0x5cc489[_0x2234f4(0x1c1)]=0x8]=_0x2234f4(0x1c1),_0x5cc489[_0x5cc489[_0x2234f4(0x290)]=0x9]=_0x2234f4(0x290),_0x5cc489[_0x5cc489[_0x2234f4(0x1ee)]=0xa]='LOGIN_FAILED',_0x5cc489[_0x5cc489['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x2234f4(0x29c),_0x5cc489[_0x5cc489[_0x2234f4(0x33f)]=0xc]=_0x2234f4(0x33f),_0x5cc489[_0x5cc489['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x2234f4(0x1be),_0x5cc489[_0x5cc489[_0x2234f4(0x1ca)]=0xe]=_0x2234f4(0x1ca),_0x5cc489[_0x5cc489['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x2234f4(0x14c),_0x5cc489[_0x5cc489[_0x2234f4(0x209)]=0x10]=_0x2234f4(0x209),_0x5cc489[_0x5cc489[_0x2234f4(0x293)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x5cc489[_0x5cc489[_0x2234f4(0x2dd)]=0x65]=_0x2234f4(0x2dd),_0x5cc489[_0x5cc489['USER_NOT_FOUND']=0xc9]=_0x2234f4(0x26c),_0x5cc489[_0x5cc489[_0x2234f4(0x324)]=0xca]=_0x2234f4(0x324),_0x5cc489[_0x5cc489[_0x2234f4(0x314)]=0x1389]=_0x2234f4(0x314),_0x5cc489[_0x5cc489[_0x2234f4(0x25e)]=0x1771]=_0x2234f4(0x25e),_0x5cc489[_0x5cc489['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x5cc489[_0x5cc489[_0x2234f4(0x20c)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x5cc489[_0x5cc489[_0x2234f4(0x301)]=0x1b59]='APPLY_REJECT',_0x5cc489[_0x5cc489[_0x2234f4(0x366)]=0x1b5a]=_0x2234f4(0x366),_0x5cc489[_0x5cc489['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x5cc489[_0x5cc489[_0x2234f4(0x2ed)]=0x1b5c]=_0x2234f4(0x2ed),_0x5cc489[_0x5cc489[_0x2234f4(0x288)]=0x1b5d]=_0x2234f4(0x288),_0x5cc489[_0x5cc489[_0x2234f4(0x2fa)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5cc489[_0x5cc489[_0x2234f4(0x234)]=0x2329]=_0x2234f4(0x234),_0x5cc489[_0x5cc489['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x5cc489[_0x5cc489[_0x2234f4(0x28d)]=0x232b]=_0x2234f4(0x28d),_0x5cc489[_0x5cc489[_0x2234f4(0x266)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x5cc489[_0x5cc489['LICENSE_DISTRO_REJECTED']=0x232d]=_0x2234f4(0x173),_0x5cc489[_0x5cc489['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x5cc489[_0x5cc489['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x2234f4(0x144),_0x5cc489[_0x5cc489[_0x2234f4(0x31f)]=0x2713]=_0x2234f4(0x31f),_0x5cc489[_0x5cc489[_0x2234f4(0x32e)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x5cc489[_0x5cc489[_0x2234f4(0x1fb)]=0x271a]=_0x2234f4(0x1fb),_0x5cc489[_0x5cc489['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x2234f4(0x1e8),_0x5cc489[_0x5cc489['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x2234f4(0x2b3),_0x5cc489[_0x5cc489[_0x2234f4(0x36e)]=0x271d]=_0x2234f4(0x36e),_0x5cc489[_0x5cc489[_0x2234f4(0x157)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x5cc489[_0x5cc489[_0x2234f4(0x35a)]=0x271f]=_0x2234f4(0x35a),_0x5cc489[_0x5cc489['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x2234f4(0x385),_0x5cc489[_0x5cc489[_0x2234f4(0x2a6)]=0x2af9]=_0x2234f4(0x2a6),_0x5cc489[_0x5cc489[_0x2234f4(0x303)]=0x2ee1]=_0x2234f4(0x303),_0x5cc489[_0x5cc489[_0x2234f4(0x1e4)]=0x2ee2]=_0x2234f4(0x1e4),_0x5cc489[_0x5cc489[_0x2234f4(0x281)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x5cc489[_0x5cc489[_0x2234f4(0x309)]=0x2ee4]=_0x2234f4(0x309),_0x5cc489[_0x5cc489[_0x2234f4(0x352)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x5cc489[_0x5cc489['WECHAT_HAS_BEEN_BOUND']=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x5cc489[_0x5cc489[_0x2234f4(0x32a)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x5cc489[_0x5cc489[_0x2234f4(0x228)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x5cc489[_0x5cc489[_0x2234f4(0x233)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x5cc489[_0x5cc489[_0x2234f4(0x311)]=0x36b2]=_0x2234f4(0x311),_0x5cc489[_0x5cc489[_0x2234f4(0x241)]=0x36b3]=_0x2234f4(0x241),_0x5cc489[_0x5cc489[_0x2234f4(0x175)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x5cc489[_0x5cc489[_0x2234f4(0x1d2)]=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x5cc489[_0x5cc489[_0x2234f4(0x271)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x5cc489[_0x5cc489[_0x2234f4(0x2ff)]=0x36b7]='ENTITLE_COUPON_USED_UP',_0x5cc489[_0x5cc489[_0x2234f4(0x24b)]=0x36b8]=_0x2234f4(0x24b),_0x5cc489[_0x5cc489[_0x2234f4(0x2e0)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x5cc489[_0x5cc489[_0x2234f4(0x1de)]=0x3716]=_0x2234f4(0x1de),_0x5cc489[_0x5cc489[_0x2234f4(0x1fc)]=0x3717]=_0x2234f4(0x1fc),_0x5cc489[_0x5cc489[_0x2234f4(0x20f)]=0x37dd]=_0x2234f4(0x20f),_0x5cc489[_0x5cc489[_0x2234f4(0x294)]=0x3a99]=_0x2234f4(0x294),_0x5cc489[_0x5cc489['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x2234f4(0x26b),_0x5cc489[_0x5cc489[_0x2234f4(0x243)]=0x3a9b]=_0x2234f4(0x243),_0x5cc489[_0x5cc489['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x5cc489[_0x5cc489['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x2234f4(0x171),_0x5cc489[_0x5cc489[_0x2234f4(0x27c)]=0x3a9e]=_0x2234f4(0x27c),_0x5cc489[_0x5cc489[_0x2234f4(0x1b2)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x5cc489[_0x5cc489[_0x2234f4(0x240)]=0x3e81]=_0x2234f4(0x240),_0x5cc489[_0x5cc489[_0x2234f4(0x29b)]=-0x1]='UNRECOGNIZED',_0x5cc489))(Z||{});function vn(_0x5b81d4){const _0x19cf7e=_0x2234f4;var _0x542e44,_0x23d71d;const _0x171653=(_0x542e44=_0x5b81d4[_0x19cf7e(0x296)])==null?void 0x0:_0x542e44[_0x19cf7e(0x23c)],_0x487d69=((_0x23d71d=_0x5b81d4[_0x19cf7e(0x296)])==null?void 0x0:_0x23d71d[_0x19cf7e(0x361)])||0x0;return _0x171653===_0x591a78[_0x19cf7e(0x262)]&&_0x487d69>0x0;}function pn(_0x482513){const _0x3e0fda=_0x2234f4;return _0x482513[_0x3e0fda(0x38b)]===_0xa5aeb1[_0x3e0fda(0x250)];}var On=Object[_0x2234f4(0x378)],Tn=(_0x31258b,_0x17a60c,_0x4e0ac9,_0x4f77a2)=>{for(var _0x19a480=_0x4f77a2>0x1?void 0x0:_0x4f77a2?On(_0x17a60c,_0x4e0ac9):_0x17a60c,_0x2ceba7=_0x31258b['length']-0x1,_0x2b2699;_0x2ceba7>=0x0;_0x2ceba7--)(_0x2b2699=_0x31258b[_0x2ceba7])&&(_0x19a480=_0x2b2699(_0x19a480)||_0x19a480);return _0x19a480;},P=(_0xcb9c38,_0x3ec6d1)=>(_0x15f666,_0x2f434f)=>_0x3ec6d1(_0x15f666,_0x2f434f,_0xcb9c38);const Cn=_0x2234f4(0x1e2),Rn='/universer-api/license/formula/limit/start',Dn=_0x2234f4(0x180);let Ie=class extends _0x451219{constructor(_0x177af1,_0x1a8401,_0x20e972,_0x58294b,_0x5db234,_0x404b6c,_0x556eb3){const _0x47670a=_0x2234f4;super(),_(this,_0x47670a(0x2e9),null),_(this,_0x47670a(0x210),0x0),_(this,'_currentUsage',0x0),_(this,_0x47670a(0x380),[]),_(this,_0x47670a(0x238),0x0),(this['_messageService']=_0x177af1,this[_0x47670a(0x16f)]=_0x1a8401,this['_configService']=_0x20e972,this[_0x47670a(0x327)]=_0x58294b,this[_0x47670a(0x275)]=_0x5db234,this[_0x47670a(0x21d)]=_0x404b6c,this['_localeService']=_0x556eb3,this[_0x47670a(0x202)]());}[_0x2234f4(0x202)](){const _0x1ff883=_0x2234f4;this[_0x1ff883(0x1f0)](this[_0x1ff883(0x16f)][_0x1ff883(0x1d4)]((_0x2702ce,_0x219102)=>{const _0x210f39=_0x1ff883;var _0x62146d;if(_0x2702ce['id']!==_0x569dd4['id'])return;const _0x4372bf=_0x2702ce[_0x210f39(0x22e)];if(!this[_0x210f39(0x149)]((_0x62146d=_0x4372bf['dirtyRanges'])!=null?_0x62146d:[]))return;if(!this[_0x210f39(0x214)]())throw this[_0x210f39(0x23f)](_0x2702ce,_0x219102),this[_0x210f39(0x207)](),new _0x299f8a();})),this[_0x1ff883(0x1f0)](this[_0x1ff883(0x16f)]['onCommandExecuted']((_0x17519a,_0x4916c7)=>{const _0x5727ca=_0x1ff883;if(_0x17519a['id']!==_0x344bbd['id'])return;const _0xd0371f=_0x17519a[_0x5727ca(0x22e)];if(vn(_0xd0371f)){const _0x176fe4=_0x29e4dc();this[_0x5727ca(0x380)][_0x5727ca(0x2ad)](_0x176fe4),this[_0x5727ca(0x368)](_0x176fe4);}else{if(pn(_0xd0371f)&&this[_0x5727ca(0x380)][_0x5727ca(0x31d)]>0x0){const _0x28f3b6=this['_taskIds'][_0x5727ca(0x2eb)]();this[_0x5727ca(0x381)](_0x28f3b6);}}}));}[_0x2234f4(0x2e1)](){const _0x4c3295=_0x2234f4;super['dispose'](),this[_0x4c3295(0x2af)](),this[_0x4c3295(0x380)]=[],this[_0x4c3295(0x2bf)]=0x0,this[_0x4c3295(0x210)]=0x0,this[_0x4c3295(0x238)]=0x0;}async[_0x2234f4(0x23f)](_0xa49a25,_0x1d531a){const _0x241a67=_0x2234f4;for(let _0x599984=0x0;_0x599984<0x1e;_0x599984++)try{if(await this[_0x241a67(0x2b0)](),this[_0x241a67(0x214)]()){this[_0x241a67(0x37a)](_0xa49a25,_0x1d531a),this['_messageService'][_0x241a67(0x2b2)]({'content':this[_0x241a67(0x1ed)]['t']('formula.calculation.started'),'type':_0x47fe57[_0x241a67(0x146)]});return;}await new Promise(_0x38bdb8=>{const _0x9c816=_0x241a67;this[_0x9c816(0x2e9)]=window[_0x9c816(0x322)](_0x38bdb8,0x3e8);});}catch(_0x2a37c0){this[_0x241a67(0x21d)]['error'](_0x2a37c0);}this['_messageService']['show']({'content':this[_0x241a67(0x1ed)]['t'](_0x241a67(0x2ea)),'type':_0x47fe57['Error']});}[_0x2234f4(0x37a)](_0x28d423,_0x3f3a8b){const _0x536ece=_0x2234f4;try{this['_commandService'][_0x536ece(0x212)](_0x28d423['id'],_0x28d423[_0x536ece(0x22e)],_0x3f3a8b);}catch(_0x3a9ecc){this[_0x536ece(0x21d)][_0x536ece(0x197)](_0x3a9ecc);}}[_0x2234f4(0x345)](_0x201a90,_0x47bbe7){const _0x505c95=_0x2234f4;_0x47bbe7<this[_0x505c95(0x238)]||(this[_0x505c95(0x238)]=_0x47bbe7,this[_0x505c95(0x210)]=Number['parseInt'](_0x201a90[_0x505c95(0x15d)]),this[_0x505c95(0x2bf)]=Number[_0x505c95(0x15e)](_0x201a90[_0x505c95(0x27d)]));}async[_0x2234f4(0x368)](_0x4890df){const _0x4471a9=_0x2234f4;var _0x477fa0,_0x5a238d;const _0x4f021b=Date[_0x4471a9(0x299)]();try{const _0x306d57=((_0x477fa0=this['_configService'][_0x4471a9(0x1ef)](_0x5bd5ca))==null?void 0x0:_0x477fa0[_0x4471a9(0x26d)])||Rn,_0x179386=(await this[_0x4471a9(0x327)][_0x4471a9(0x2a5)](_0x306d57,{'body':JSON[_0x4471a9(0x28e)]({'taskId':_0x4890df})}))['body'];if(((_0x5a238d=_0x179386[_0x4471a9(0x197)])==null?void 0x0:_0x5a238d[_0x4471a9(0x1b9)])!==Z['OK'])return;this[_0x4471a9(0x345)](_0x179386[_0x4471a9(0x353)],_0x4f021b);}catch(_0x35848b){this[_0x4471a9(0x21d)][_0x4471a9(0x197)](_0x35848b);}}async[_0x2234f4(0x2b0)](_0x4e01e6){const _0x244594=_0x2234f4;var _0x2ac1ab,_0x4d3c33;const _0x12a7fb=Date[_0x244594(0x299)]();try{const _0x169450=((_0x2ac1ab=this[_0x244594(0x35e)][_0x244594(0x1ef)](_0x5bd5ca))==null?void 0x0:_0x2ac1ab['getformulaLimitStatusUrl'])||Cn,_0x1f9bdf=_0x4e01e6?_0x169450+_0x244594(0x254)+encodeURIComponent(_0x4e01e6):_0x169450,_0x5ac0fe=(await this[_0x244594(0x327)]['get'](_0x1f9bdf))[_0x244594(0x221)];if(((_0x4d3c33=_0x5ac0fe['error'])==null?void 0x0:_0x4d3c33[_0x244594(0x1b9)])!==Z['OK'])return;this[_0x244594(0x345)](_0x5ac0fe[_0x244594(0x353)],_0x12a7fb);}catch(_0x5044c3){this[_0x244594(0x21d)][_0x244594(0x197)](_0x5044c3);}}async[_0x2234f4(0x381)](_0x1e149c){const _0x80cc29=_0x2234f4;var _0x533eeb,_0x57ee41;const _0x21c101=Date['now']();try{const _0x333200=((_0x533eeb=this[_0x80cc29(0x35e)][_0x80cc29(0x1ef)](_0x5bd5ca))==null?void 0x0:_0x533eeb[_0x80cc29(0x17d)])||Dn,_0x5ebb70=(await this[_0x80cc29(0x327)]['post'](_0x333200,{'body':JSON[_0x80cc29(0x28e)]({'taskId':_0x1e149c})}))[_0x80cc29(0x221)];if(((_0x57ee41=_0x5ebb70['error'])==null?void 0x0:_0x57ee41[_0x80cc29(0x1b9)])!==Z['OK'])return;this[_0x80cc29(0x345)](_0x5ebb70['limitInfo'],_0x21c101);}catch(_0xfb63ab){this['_logService'][_0x80cc29(0x197)](_0xfb63ab);}}['_checkCalculationAvailable'](){const _0xe2b4a4=_0x2234f4;return this[_0xe2b4a4(0x210)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0xe2b4a4(0x2bf)]>0x0;}[_0x2234f4(0x2af)](){const _0x475419=_0x2234f4;this[_0x475419(0x2e9)]&&(clearTimeout(this[_0x475419(0x2e9)]),this[_0x475419(0x2e9)]=null);}[_0x2234f4(0x207)](){const _0x19bc99=_0x2234f4;this[_0x19bc99(0x196)][_0x19bc99(0x2b2)]({'content':this['_localeService']['t'](_0x19bc99(0x1ff)),'type':_0x47fe57['Loading']});}[_0x2234f4(0x149)](_0x48f691){const _0x4e7581=_0x2234f4;for(const _0x2b720c of _0x48f691){const {unitId:_0x2545e9,sheetId:_0x47c2ed,range:_0x383ea7}=_0x2b720c,_0x135d69=this[_0x4e7581(0x275)][_0x4e7581(0x335)](_0x2545e9);if(!_0x135d69)continue;const _0xfd5605=_0x135d69[_0x4e7581(0x312)](_0x47c2ed);if(!_0xfd5605)continue;const _0xfb6993=_0xfd5605[_0x4e7581(0x329)]();for(let _0x23f679=_0x383ea7[_0x4e7581(0x383)];_0x23f679<=_0x383ea7[_0x4e7581(0x19a)];_0x23f679++)for(let _0x49af4d=_0x383ea7[_0x4e7581(0x2b1)];_0x49af4d<=_0x383ea7['endColumn'];_0x49af4d++){const _0x547765=_0xfb6993[_0x4e7581(0x16b)](_0x23f679,_0x49af4d);if(_0x547765&&(_0x4bac35(_0x547765['f'])||_0x520265(_0x547765['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0xd1a258(_0x1de295)),P(0x1,_0xe14216),P(0x2,_0x3a2d6e),P(0x3,_0xd1a258(_0x185939)),P(0x4,_0x717147),P(0x5,_0x5d513a),P(0x6,_0xd1a258(_0x5c8592))],Ie);var Nn=Object[_0x2234f4(0x378)],bn=(_0x4595ae,_0x1f9621,_0x2510df,_0x3ad709)=>{for(var _0xbef26f=_0x3ad709>0x1?void 0x0:_0x3ad709?Nn(_0x1f9621,_0x2510df):_0x1f9621,_0x4784d1=_0x4595ae['length']-0x1,_0x400a98;_0x4784d1>=0x0;_0x4784d1--)(_0x400a98=_0x4595ae[_0x4784d1])&&(_0xbef26f=_0x400a98(_0xbef26f)||_0xbef26f);return _0xbef26f;},Ue=(_0x47cae1,_0x3da4d0)=>(_0x1d01f3,_0x2b64ec)=>_0x3da4d0(_0x1d01f3,_0x2b64ec,_0x47cae1);let He=class extends _0x451219{constructor(_0x9ffc9d,_0xd5eae1,_0x200394){const _0x43d887=_0x2234f4;super(),_(this,_0x43d887(0x148),new Map()),_(this,_0x43d887(0x1ad),new Map()),_(this,'_disabled',!0x1),(this[_0x43d887(0x35e)]=_0x9ffc9d,this[_0x43d887(0x2ce)]=_0xd5eae1,this[_0x43d887(0x189)]=_0x200394);}['disableLocalCache'](){const _0x596510=_0x2234f4;this[_0x596510(0x216)]=!0x0;}[_0x2234f4(0x199)](){const _0x338bb7=_0x2234f4;this[_0x338bb7(0x216)]=!0x1;}get[_0x2234f4(0x1a7)](){return this['_saveTaskMap'];}[_0x2234f4(0x2e1)](){const _0x584c7b=_0x2234f4;this[_0x584c7b(0x36b)]()[_0x584c7b(0x13f)](()=>super['dispose']());}async[_0x2234f4(0x23a)](_0xe70785){const _0x4ad6fc=_0x2234f4;return this[_0x4ad6fc(0x216)]?null:this['_localStorageService'][_0x4ad6fc(0x230)](_0x9d06b7(_0xe70785));}async[_0x2234f4(0x16c)](_0x5add85,_0x3fba9d){const _0x16620a=_0x2234f4;return!!this[_0x16620a(0x2ce)]['setItem'](_0x5add85,_0x3fba9d);}[_0x2234f4(0x2a9)](_0x2405cd,_0x39319f,_0x18ff89,_0x372f98){const _0x44868f=_0x2234f4,_0xd1817f=this[_0x44868f(0x189)][_0x44868f(0x1da)](_0x2405cd);this[_0x44868f(0x148)][_0x44868f(0x1f9)](_0x2405cd,{'unitID':_0x2405cd,'type':_0x39319f,'awaitingChangeset':_0x18ff89,'mutations':_0x372f98,'rev':_0xd1817f}),this[_0x44868f(0x1ad)]['has'](_0x2405cd)||this[_0x44868f(0x377)](_0x2405cd);}['_scheduleSaving'](_0x5e7bec){const _0x524abe=_0x2234f4,_0x457181=this['_getSaveTimeout']();_0x457181===0x0?this[_0x524abe(0x2a4)](_0x5e7bec):this[_0x524abe(0x1ad)][_0x524abe(0x1f9)](_0x5e7bec,setTimeout(()=>this[_0x524abe(0x2a4)](_0x5e7bec),_0x457181));}['_getSaveTimeout'](){const _0x5b1d1c=_0x2234f4;var _0x1f597a;return(_0x1f597a=this[_0x5b1d1c(0x35e)][_0x5b1d1c(0x1ef)](_0x4f1f3d))!=null?_0x1f597a:_0x40ab83;}[_0x2234f4(0x2a4)](_0x30f038){const _0x5d43c6=_0x2234f4,_0x2a07d9=this[_0x5d43c6(0x1ad)]['get'](_0x30f038);return _0x2a07d9!==void 0x0&&window[_0x5d43c6(0x186)](_0x2a07d9),this[_0x5d43c6(0x2ce)][_0x5d43c6(0x2d5)](_0x9d06b7(_0x30f038),this[_0x5d43c6(0x148)][_0x5d43c6(0x184)](_0x30f038))[_0x5d43c6(0x13f)](()=>this['_saveTaskMap']['delete'](_0x30f038));}async['exhaustSavingTask'](){const _0x3d9a2e=_0x2234f4,_0x274316=[];this[_0x3d9a2e(0x1ad)][_0x3d9a2e(0x32f)]((_0x438a63,_0x5da18f)=>{const _0x15604f=_0x3d9a2e;window[_0x15604f(0x186)](_0x438a63),_0x274316[_0x15604f(0x2ad)](this[_0x15604f(0x2a4)](_0x5da18f)[_0x15604f(0x13f)](()=>{const _0x522af3=_0x15604f;this['_saveTaskMap'][_0x522af3(0x304)](_0x5da18f);}));}),await Promise[_0x3d9a2e(0x27f)](_0x274316);}};He=bn([Ue(0x0,_0x3a2d6e),Ue(0x1,_0x267ca5),Ue(0x2,_0xd1a258(_0x1467ff))],He);class Ln extends _0x2f4832{constructor(){const _0x2d6f7e=_0x2234f4;super(),_(this,_0x2d6f7e(0x18d)),this[_0x2d6f7e(0x18d)]=_0x51b723(window,_0x2d6f7e(0x1b6))[_0x2d6f7e(0x277)](_0x49b716(this['dispose$']),_0x1a0d46(0x1),_0x1d319f(void 0x0));}[_0x2234f4(0x30d)](_0xc0462b,_0x5c7e3a,_0x39d1d3=!0x1){const _0x57590a=_0x2234f4,_0x4b710a=new URL(window[_0x57590a(0x29f)][_0x57590a(0x170)]);_0x4b710a[_0x57590a(0x2d7)][_0x57590a(0x1f9)](_0xc0462b,_0x5c7e3a),_0x39d1d3?window[_0x57590a(0x289)]['replaceState']('','',_0x4b710a[_0x57590a(0x185)]()):window['history'][_0x57590a(0x245)]('','',_0x4b710a[_0x57590a(0x185)]());}['removeParam'](_0x5717c1,_0x4612a9=!0x1){const _0x150a89=_0x2234f4,_0x28b876=new URL(window['location'][_0x150a89(0x170)]);_0x28b876['searchParams']['delete'](_0x5717c1),_0x4612a9?window[_0x150a89(0x289)][_0x150a89(0x2cd)]('','',_0x28b876['toString']()):window[_0x150a89(0x289)][_0x150a89(0x245)]('','',_0x28b876[_0x150a89(0x185)]());}[_0x2234f4(0x244)](_0x2c9696){const _0x4fa156=_0x2234f4;var _0xf8a53d;return(_0xf8a53d=new URL(window['location'][_0x4fa156(0x170)])[_0x4fa156(0x2d7)][_0x4fa156(0x184)](_0x2c9696))!=null?_0xf8a53d:void 0x0;}}var Un=Object['defineProperty'],Mn=Object[_0x2234f4(0x378)],An=(_0x522af9,_0x32b12d,_0x50f049)=>_0x32b12d in _0x522af9?Un(_0x522af9,_0x32b12d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50f049}):_0x522af9[_0x32b12d]=_0x50f049,Pn=(_0x2a52f4,_0x372b47,_0x5b1ea9,_0x18acb8)=>{const _0x1ce338=_0x2234f4;for(var _0x5d9c08=_0x18acb8>0x1?void 0x0:_0x18acb8?Mn(_0x372b47,_0x5b1ea9):_0x372b47,_0x28d331=_0x2a52f4[_0x1ce338(0x31d)]-0x1,_0x4f458d;_0x28d331>=0x0;_0x28d331--)(_0x4f458d=_0x2a52f4[_0x28d331])&&(_0x5d9c08=_0x4f458d(_0x5d9c08)||_0x5d9c08);return _0x5d9c08;},Me=(_0x30fb4b,_0x6d146a)=>(_0x36f142,_0x496659)=>_0x6d146a(_0x36f142,_0x496659,_0x30fb4b),wn=(_0x2e05c3,_0x39cdbe,_0x454163)=>An(_0x2e05c3,_0x39cdbe+'',_0x454163);const yn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ye=class extends _0x3a561a{constructor(_0x581d34=_t,_0x59b3fd,_0x1b52ea,_0x1be65b){const _0x36184e=_0x2234f4;super(),this['_config']=_0x581d34,this[_0x36184e(0x36a)]=_0x59b3fd,this[_0x36184e(0x1e1)]=_0x1b52ea,this[_0x36184e(0x35e)]=_0x1be65b;const {..._0x3a262a}=_0x51a3b6({},_t,this[_0x36184e(0x36f)]);this['_configService'][_0x36184e(0x280)](hn,_0x3a262a);}[_0x2234f4(0x169)](){const _0x42e227=_0x2234f4;this[_0x42e227(0x384)](),this[_0x42e227(0x295)]();}[_0x2234f4(0x1c8)](){const _0x555f8e=_0x2234f4;this[_0x555f8e(0x2c7)]();}[_0x2234f4(0x384)](){const _0x2d25b0=_0x2234f4;var _0x38941d;const _0xf49128=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0xe1ac11,{'useClass':_0x16eb47}],[_0xcdb955,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x2d25b0(0x36f)][_0x2d25b0(0x278)]&&_0xf49128[_0x2d25b0(0x2ad)]([le]),_0x232947(this[_0x2d25b0(0x1e1)],_0x5c568a(_0xf49128,(_0x38941d=this[_0x2d25b0(0x36f)])==null?void 0x0:_0x38941d[_0x2d25b0(0x25a)]));}['_registerRenderDependencies'](){const _0xe4dbe2=_0x2234f4;this['disposeWithMe'](this[_0xe4dbe2(0x36a)]['registerRenderModule'](_0x5722a6[_0xe4dbe2(0x166)],[Fe])),this[_0xe4dbe2(0x1f0)](this[_0xe4dbe2(0x36a)][_0xe4dbe2(0x31e)](_0x5722a6['UNIVER_SHEET'],[ke]));}[_0x2234f4(0x295)](){const _0x3b0c32=_0x2234f4;_0x2ad356(this['_injector'],[[H],[ae],[Se],[_e],[ce],[Ie]]),this['_config'][_0x3b0c32(0x278)]&&_0x2ad356(this[_0x3b0c32(0x1e1)],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x1afb5d(_0x56a2f6),Me(0x1,_0x5a59d5),Me(0x2,_0xd1a258(_0x4075d0)),Me(0x3,_0x3a2d6e)],Ye);var $n=Object[_0x2234f4(0x378)],xn=(_0x481c81,_0x180af2,_0x16f98b,_0x1a14ab)=>{for(var _0x2df44d=_0x1a14ab>0x1?void 0x0:_0x1a14ab?$n(_0x180af2,_0x16f98b):_0x180af2,_0xd7909e=_0x481c81['length']-0x1,_0x1ea503;_0xd7909e>=0x0;_0xd7909e--)(_0x1ea503=_0x481c81[_0xd7909e])&&(_0x2df44d=_0x1ea503(_0x2df44d)||_0x2df44d);return _0x2df44d;},J=(_0x1f9fbe,_0x452d1a)=>(_0x46d797,_0x17fc58)=>_0x452d1a(_0x46d797,_0x17fc58,_0x1f9fbe);let ut=class extends _0x5505d2{constructor(_0x440ffc,_0x2d153d,_0x511a66,_0x5c634c,_0x3dd3ae){super(_0x440ffc,_0x2d153d,_0x511a66,_0x5c634c,_0x3dd3ae);}async[_0x2234f4(0x29d)](_0x3ef930){const _0x140b00=_0x2234f4,_0x5121ba=await this[_0x140b00(0x23d)](),_0x1845dd=this[_0x140b00(0x2ec)](_0x3ef930,_0x5121ba);return this[_0x140b00(0x205)](_0x1845dd);}['_createSocketURL'](_0x4b2220,_0x2bc4ed){const _0x29e5d0=_0x2234f4,_0x10f6ef=typeof window>'u'?new URL(_0x4b2220):new URL(_0x4b2220,window[_0x29e5d0(0x29f)]['origin']);_0x10f6ef['searchParams']['set'](_0x29e5d0(0x1e3),_0x2bc4ed);const _0x58d224=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x29e5d0(0x29f)][_0x29e5d0(0x33e)]);return _0x58d224[_0x29e5d0(0x184)]('runId')&&_0x10f6ef[_0x29e5d0(0x2d7)]['set']('runId',_0x58d224['get']('runId')),_0x10f6ef[_0x29e5d0(0x185)]();}async[_0x2234f4(0x23d)](){const _0x383adf=_0x2234f4;var _0x3a0d6d,_0x31839a,_0x8aed5d;const _0x24eae6=this[_0x383adf(0x35e)]['getConfig'](_0x5bd5ca),_0x3bcfad=(_0x3a0d6d=_0x24eae6==null?void 0x0:_0x24eae6[_0x383adf(0x1e5)])!=null?_0x3a0d6d:_0x1158ce;return(_0x8aed5d=(_0x31839a=(await this[_0x383adf(0x327)][_0x383adf(0x184)](_0x3bcfad,{'headers':{'Content-Type':_0x383adf(0x26a)}}))[_0x383adf(0x221)])==null?void 0x0:_0x31839a[_0x383adf(0x27b)])!=null?_0x8aed5d:'';}};ut=xn([J(0x0,_0xd1a258(_0x4075d0)),J(0x1,_0xd1a258(_0x185939)),J(0x2,_0x3a2d6e),J(0x3,_0x5d513a),J(0x4,_0x43b657)],ut);var Bn=Object[_0x2234f4(0x378)],Fn=(_0x5a6123,_0x11059c,_0x23eeea,_0x1f39a4)=>{for(var _0x9c1380=_0x1f39a4>0x1?void 0x0:_0x1f39a4?Bn(_0x11059c,_0x23eeea):_0x11059c,_0x3276ea=_0x5a6123['length']-0x1,_0x2e128c;_0x3276ea>=0x0;_0x3276ea--)(_0x2e128c=_0x5a6123[_0x3276ea])&&(_0x9c1380=_0x2e128c(_0x9c1380)||_0x9c1380);return _0x9c1380;},Ae=(_0x709835,_0x534972)=>(_0x243d7a,_0x5b1c80)=>_0x534972(_0x243d7a,_0x5b1c80,_0x709835);let dt=class extends _0x451219{constructor(_0x5d8592,_0x8aec19,_0x33c3c9){const _0x4f2337=_0x2234f4;super(),this[_0x4f2337(0x334)]=_0x5d8592,this[_0x4f2337(0x327)]=_0x8aec19,this[_0x4f2337(0x35e)]=_0x33c3c9;}async['runOnServer'](_0x35ae86,_0x596840,_0x1c848d,..._0x5d5e4c){const _0x2756bd=_0x2234f4;var _0x4531b5,_0x3319c4,_0x3bef7f,_0x372328;const _0x23e21e=this[_0x2756bd(0x334)][_0x2756bd(0x367)]();if(!_0x23e21e)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x1aa15d=((_0x4531b5=this[_0x2756bd(0x35e)][_0x2756bd(0x1ef)](_0x1d0eb9))!=null?_0x4531b5:_0x55c3a5)+'/'+_0x35ae86+_0x2756bd(0x286)+_0x596840,_0x401f25=new URL(window[_0x2756bd(0x29f)]['href']),_0x3107b1={'scriptId':_0x35ae86,'runId':(_0x3319c4=_0x401f25['searchParams'][_0x2756bd(0x184)](_0x2756bd(0x1c5)))!=null?_0x3319c4:'','function':_0x596840,'unitId':_0x23e21e['getUnitId'](),'argsOfFunction':JSON[_0x2756bd(0x28e)](_0x5d5e4c),'invokeId':(_0x3bef7f=_0x1c848d[_0x2756bd(0x23b)])!=null?_0x3bef7f:'','executionId':(_0x372328=_0x1c848d['executionId'])!=null?_0x372328:''};try{const _0x3450dc=await this[_0x2756bd(0x327)]['post'](_0x1aa15d,{'body':_0x3107b1});return _0x3450dc[_0x2756bd(0x221)][_0x2756bd(0x197)]&&_0x3450dc[_0x2756bd(0x221)][_0x2756bd(0x197)][_0x2756bd(0x1b9)]!==Z['OK']?'Failed':_0x3450dc[_0x2756bd(0x221)]['result'];}catch{return _0x2756bd(0x373);}}};dt=Fn([Ae(0x0,_0x717147),Ae(0x1,_0xd1a258(_0x185939)),Ae(0x2,_0x3a2d6e)],dt);const St=0x7530,It=_0x2234f4(0x143);class rr extends _0x451219{constructor(){const _0x706c6c=_0x2234f4;super(),_(this,'_id',_0x29e4dc()),_(this,_0x706c6c(0x25f),new Set()),_(this,_0x706c6c(0x1a1),new Map()),_(this,_0x706c6c(0x357),null),_(this,'_clearOtherTimers',new Map()),_(this,_0x706c6c(0x18b),new Map()),this['_init']();}[_0x2234f4(0x2e1)](){const _0x50ae2b=_0x2234f4;super[_0x50ae2b(0x2e1)](),this['_clearOtherTimers'][_0x50ae2b(0x32f)]((_0x38c9f5,_0xb4bafe)=>this[_0x50ae2b(0x2ab)](_0xb4bafe)),this['_heartbeatTimer']&&window[_0x50ae2b(0x274)](this[_0x50ae2b(0x357)]);}[_0x2234f4(0x19b)](_0x1ff8af){const _0x75ecba=_0x2234f4;return this[_0x75ecba(0x154)](_0x1ff8af)['pipe'](_0x113cfc());}[_0x2234f4(0x2a7)](_0x517707){const _0x3103bb=_0x2234f4;this[_0x3103bb(0x25f)][_0x3103bb(0x14f)]===0x0&&this[_0x3103bb(0x354)](),this[_0x3103bb(0x25f)][_0x3103bb(0x176)](_0x517707),this[_0x3103bb(0x218)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x517707],'isForwarded':!0x1});}[_0x2234f4(0x18f)](_0x3959c0){const _0x5dba2e=_0x2234f4;this[_0x5dba2e(0x25f)]['delete'](_0x3959c0),this[_0x5dba2e(0x25f)]['size']===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x5dba2e(0x357)]);}[_0x2234f4(0x1b5)](){const _0x5f3cb0=_0x2234f4;this[_0x5f3cb0(0x1f0)](_0x3640fe(_0x51b723(window,_0x5f3cb0(0x1b4))[_0x5f3cb0(0x190)](_0x18b418=>{const _0x186c4b=_0x5f3cb0;if(_0x18b418[_0x186c4b(0x2d1)]!==It||!_0x18b418[_0x186c4b(0x1d8)])return;const _0xf3e028=JSON[_0x186c4b(0x1d7)](_0x18b418[_0x186c4b(0x1d8)]);this[_0x186c4b(0x35d)](_0xf3e028);}))),window[_0x5f3cb0(0x25d)](_0x5f3cb0(0x17a),()=>this[_0x5f3cb0(0x218)]({'type':0x1,'memberID':this[_0x5f3cb0(0x35c)],'unitIDs':Array['from'](this[_0x5f3cb0(0x25f)])}));}['_handleEvent'](_0x3461b1){const _0x130db0=_0x2234f4;switch(_0x3461b1[_0x130db0(0x1f6)]){case 0x0:this[_0x130db0(0x379)](_0x3461b1);break;case 0x1:this['_handleLeaveEvent'](_0x3461b1);break;case 0x2:this[_0x130db0(0x208)](_0x3461b1);break;}}[_0x2234f4(0x379)](_0x40f30c){const _0x4fb480=_0x2234f4,{unitIDs:_0x318068,memberID:_0x44566e,isForwarded:_0x2c418b}=_0x40f30c;_0x318068[_0x4fb480(0x32f)](_0x5aacdf=>{const _0x4ad87d=_0x4fb480;if(!_0x2c418b&&this[_0x4ad87d(0x1a1)]['has'](_0x5aacdf)&&this['_ensureSubject'](_0x5aacdf)['next'](_0x5cd56a['OTHER_CLIENTS_EDITING']),!this[_0x4ad87d(0x1a1)][_0x4ad87d(0x30c)](_0x5aacdf)||!this['_unitOnClients'][_0x4ad87d(0x184)](_0x5aacdf)[_0x4ad87d(0x30c)](_0x44566e)){const _0x170e10=this[_0x4ad87d(0x1a1)][_0x4ad87d(0x184)](_0x5aacdf)||new Set();_0x170e10[_0x4ad87d(0x176)](_0x44566e),this['_unitOnClients'][_0x4ad87d(0x1f9)](_0x5aacdf,_0x170e10),this[_0x4ad87d(0x2d4)](_0x44566e);}}),_0x2c418b||this[_0x4fb480(0x218)]({'type':0x0,'memberID':this[_0x4fb480(0x35c)],'unitIDs':[...this[_0x4fb480(0x25f)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x390030){const _0x11af21=_0x2234f4;this[_0x11af21(0x2ab)](_0x390030);const _0x50dd6b=window[_0x11af21(0x322)](()=>{const _0x4b1da1=_0x11af21;this[_0x4b1da1(0x1a1)][_0x4b1da1(0x32f)](_0x2c789f=>{const _0x10dba7=_0x4b1da1;_0x2c789f[_0x10dba7(0x304)](_0x390030);});},St*0x2);this[_0x11af21(0x34b)][_0x11af21(0x1f9)](_0x390030,_0x50dd6b);}[_0x2234f4(0x2ab)](_0x37b0ae){const _0x486b25=_0x2234f4;if(this['_clearOtherTimers']['has'](_0x37b0ae)){const _0x120891=this[_0x486b25(0x34b)]['get'](_0x37b0ae);_0x120891&&window[_0x486b25(0x186)](_0x120891),this[_0x486b25(0x34b)][_0x486b25(0x1f9)](_0x37b0ae,null);}}['_handleLeaveEvent'](_0x2027ae){const {memberID:_0x2825da,unitIDs:_0x4d6bd8}=_0x2027ae;_0x4d6bd8['forEach'](_0x219588=>{const _0x5485a4=_0x34ce;var _0x5921d4;const _0x1b649b=this['_unitOnClients']['get'](_0x219588);_0x1b649b&&(_0x1b649b[_0x5485a4(0x304)](_0x2825da),(_0x5921d4=this[_0x5485a4(0x154)](_0x219588))==null||_0x5921d4[_0x5485a4(0x37e)](_0x1b649b['size']===0x0?_0x5cd56a[_0x5485a4(0x2a1)]:_0x5cd56a[_0x5485a4(0x34e)]));}),this['_removeClearOtherTimer'](_0x2825da);}[_0x2234f4(0x208)](_0x1fea03){const _0x1876fa=_0x2234f4;this[_0x1876fa(0x2d4)](_0x1fea03[_0x1876fa(0x350)]);}[_0x2234f4(0x218)](_0x323e49){const _0x16d2e1=_0x2234f4;localStorage[_0x16d2e1(0x2d5)](It,JSON[_0x16d2e1(0x28e)](_0x323e49));}[_0x2234f4(0x354)](){const _0x1f7f90=_0x2234f4;this[_0x1f7f90(0x357)]=window[_0x1f7f90(0x2f3)](()=>{const _0x39e9b8=_0x1f7f90;this['_send']({'type':0x2,'memberID':this[_0x39e9b8(0x35c)]});},St);}[_0x2234f4(0x154)](_0x3522fb){const _0x29f04e=_0x2234f4;return this[_0x29f04e(0x18b)][_0x29f04e(0x30c)](_0x3522fb)||this['_unitStatus'][_0x29f04e(0x1f9)](_0x3522fb,new _0x40aa62(_0x5cd56a[_0x29f04e(0x2a1)])),this[_0x29f04e(0x18b)][_0x29f04e(0x184)](_0x3522fb);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};