@univerjs-pro/collaboration-client-ui 0.10.11-nightly.202510220308 → 0.10.12-nightly.202510221114

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/umd/facade.js +1 -1
  38. package/lib/umd/index.js +1 -1
  39. package/lib/umd/locale/ca-ES.js +1 -1
  40. package/lib/umd/locale/en-US.js +1 -1
  41. package/lib/umd/locale/es-ES.js +1 -1
  42. package/lib/umd/locale/fa-IR.js +1 -1
  43. package/lib/umd/locale/fr-FR.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +16 -16
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1711de=_0xf036;(function(_0x5a1a51,_0x3a5a5a){const _0x19a736=_0xf036,_0x221ad1=_0x5a1a51();while(!![]){try{const _0x20911c=parseInt(_0x19a736(0x113))/0x1+-parseInt(_0x19a736(0x1e5))/0x2+-parseInt(_0x19a736(0x1cd))/0x3+-parseInt(_0x19a736(0x106))/0x4*(-parseInt(_0x19a736(0x231))/0x5)+-parseInt(_0x19a736(0x1fc))/0x6+-parseInt(_0x19a736(0x178))/0x7+parseInt(_0x19a736(0x6f))/0x8*(parseInt(_0x19a736(0x173))/0x9);if(_0x20911c===_0x3a5a5a)break;else _0x221ad1['push'](_0x221ad1['shift']());}catch(_0x23c337){_0x221ad1['push'](_0x221ad1['shift']());}}}(_0x4afb,0x51c50));var kt=Object[_0x1711de(0xcc)],Ht=(_0x3e26aa,_0x318b8c,_0x3191b4)=>_0x318b8c in _0x3e26aa?kt(_0x3e26aa,_0x318b8c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3191b4}):_0x3e26aa[_0x318b8c]=_0x3191b4,_=(_0x45c4c3,_0x45434b,_0x34266b)=>Ht(_0x45c4c3,typeof _0x45434b!=_0x1711de(0x20f)?_0x45434b+'':_0x45434b,_0x34266b);import{jsx as _0x4efc8c,jsxs as _0x2d3a54}from'react/jsx-runtime';import{CollaborationStatus as _0x2403e1,CollaborationSessionService as _0x344ae3,CollaborationController as _0xf63711,DataLoaderService as _0x1c6214,MemberService as _0x1daa17,SessionStatus as _0x19ff57,ILocalCacheService as _0x424de6,CollaborationUIEventService as _0x19e51b,CollaborationUIEventId as _0x482e2b,DocCollaborationEntity as _0x1239bc,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x4682df,getLocalCacheKey as _0x4fff1e,LOCAL_CACHE_INTERVAL as _0x2d233c,LOCAL_CACHE_INTERVAL_KEY as _0x307a04,UniverCollaborationClientPlugin as _0xf13ac0,CollaborationSocketService as _0x2b2e44,DEFAULT_WS_SESSION_TICKET_URL as _0x9391dc,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x1d00d4,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x315aaf,UnitStatus as _0x3aa629}from'@univerjs-pro/collaboration-client';import{LocaleService as _0xcc52b6,IUniverInstanceService as _0x54d197,Inject as _0x7b53ac,Injector as _0x3f62bb,Disposable as _0x50b6bd,createIdentifier as _0x3c0952,ILogService as _0x505efa,ICommandService as _0x22c686,Optional as _0x489030,RxDisposable as _0x46e415,Workbook as _0xf3a577,DOC_RANGE_TYPE as _0xd88b09,debounce as _0x5b9bbb,Rectangle as _0x5830b8,DisposableCollection as _0x4e1f5a,toDisposable as _0x20e0ba,UniverInstanceType as _0x432bba,generateRandomId as _0x2896ee,COLORS as _0x5a9755,ColorKit as _0x3f91ca,ThemeService as _0x50ac79,fromEventSubject as _0x3fc964,Tools as _0x3d4b34,CommandType as _0x30d864,IConfigService as _0x4a2a55,CanceledError as _0x523fe6,isFormulaString as _0x30db78,isFormulaId as _0x3d97c8,ILocalStorageService as _0x93315e,DependentOn as _0x24eb2e,Plugin as _0x2b1b46,merge as _0x7cc5b8,registerDependencies as _0x3dc597,mergeOverrideWithDependencies as _0x2904c0,touchDependencies as _0x3e1d55}from'@univerjs/core';import{useObservable as _0x152fe6,useDependency as _0x4419f1,IUIPartsService as _0x4bcbd1,BuiltInUIPart as _0x303794,connectInjector as _0x4acaaf,IBeforeCloseService as _0x467fde,IMessageService as _0x548240,INotificationService as _0x37887a}from'@univerjs/ui';function _0xf036(_0x28fb80,_0x201f9d){const _0x4afb26=_0x4afb();return _0xf036=function(_0xf03667,_0x1cba58){_0xf03667=_0xf03667-0x66;let _0x177f1e=_0x4afb26[_0xf03667];return _0x177f1e;},_0xf036(_0x28fb80,_0x201f9d);}import{BehaviorSubject as _0xc9ceb,switchMap as _0x7602bf,of as _0x36e9fe,takeUntil as _0x219c46,debounceTime as _0x3c7ab9,Subject as _0x15a0c2,filter as _0x5512a7,merge as _0x5d3293,combineLatest as _0x387d36,fromEvent as _0x8d5ab2,shareReplay as _0x4d2f23,mapTo as _0x409c82,distinctUntilChanged as _0x373e68}from'rxjs';import{Tooltip as _0x42e525,clsx as _0x200428,MessageType as _0x4c0c70}from'@univerjs/design';import{forwardRef as _0x246c5d,useRef as _0x33dbbe,createElement as _0x357d90,useCallback as _0x5c1d8a}from'react';import{IRemoteInstanceService as _0x360bc0}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x150e7b,RefRangeService as _0x1b6953,SetSelectionsOperation as _0x2047ff,SheetsSelectionsService as _0x1efd31,EffectRefRangId as _0x2dbbc5,handleIRemoveRow as _0x41c9ef,handleIRemoveCol as _0x4be1e9,handleMoveRange as _0x434739,handleInsertRow as _0x418b27,handleInsertRangeMoveRight as _0x22e1e5,handleInsertRangeMoveDown as _0x22e6a2,handleInsertCol as _0x3500ce,handleDeleteRangeMoveUp as _0x13d5c6,handleDeleteRangeMoveLeft as _0xe107e9,runRefRangeMutations as _0x4712af}from'@univerjs/sheets';import{Shape as _0x48454c,Rect as _0x15d285,getColor as _0x2e43c1,RegularPolygon as _0x1eba98,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x43e218,Vector2 as _0x6e489b,SHEET_VIEWPORT_KEY as _0x433b8e,IRenderManagerService as _0xe6e859}from'@univerjs/engine-render';import{HTTPService as _0x50c8af,ISocketService as _0x4c4e30,WebSocketService as _0x2afa8e}from'@univerjs/network';import{IDocClipboardService as _0x427770,NodePositionConvertToCursor as _0x1b0c86,NodePositionConvertToRectRange as _0x1f4db6,TEXT_RANGE_LAYER_INDEX as _0x5f242b,SetDocZoomRatioOperation as _0x5607be,DocIMEInputManagerService as _0x395d26,DocStateChangeManagerService as _0x1f9a31}from'@univerjs/docs-ui';import{IImageIoService as _0x9f2b83}from'@univerjs/drawing';import{ITransformService as _0x4ed100,CollaborationEvent as _0x49dbc4,isTransformMutationFailure as _0x1a68ef,isTransformMutationsWithChangesetSuccess as _0x5ed451,RevisionService as _0x4b3091,ISnapshotServerService as _0x4ec86e}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x22bb50,RichTextEditingMutation as _0x3721e0,DocSelectionManagerService as _0x2fa8e8,DocSkeletonManagerService as _0x1ffda2}from'@univerjs/docs';import{deserializeRangeWithSheet as _0xd2f755,serializeRangeWithSheet as _0x4adbd2,FormulaExecuteStageType as _0x1aca12,FormulaExecutedStateType as _0x166d51,SetFormulaCalculationStartMutation as _0x215073,SetFormulaCalculationNotificationMutation as _0x425284}from'@univerjs/engine-formula';import{map as _0x395c27,filter as _0x5d5d8f,throttleTime as _0x5d71f6,takeUntil as _0x323642,switchMap as _0x21f469}from'rxjs/operators';import{SheetSkeletonManagerService as _0x430913,getCoordByCell as _0x8febeb,getSheetObject as _0x4a8d1a}from'@univerjs/sheets-ui';var g=function(){return g=Object['assign']||function(_0x3696eb){const _0x38558c=_0xf036;for(var _0x388d07,_0x13ccc0=0x1,_0x41913f=arguments[_0x38558c(0x10b)];_0x13ccc0<_0x41913f;_0x13ccc0++){_0x388d07=arguments[_0x13ccc0];for(var _0x12599c in _0x388d07)Object[_0x38558c(0x25e)][_0x38558c(0x9d)][_0x38558c(0x1c3)](_0x388d07,_0x12599c)&&(_0x3696eb[_0x12599c]=_0x388d07[_0x12599c]);}return _0x3696eb;},g['apply'](this,arguments);},Ii=function(_0x3cd607,_0x2535c4){const _0x2cfd77=_0x1711de;var _0x3d2a97={};for(var _0x4fc457 in _0x3cd607)Object['prototype'][_0x2cfd77(0x9d)][_0x2cfd77(0x1c3)](_0x3cd607,_0x4fc457)&&_0x2535c4[_0x2cfd77(0x230)](_0x4fc457)<0x0&&(_0x3d2a97[_0x4fc457]=_0x3cd607[_0x4fc457]);if(_0x3cd607!=null&&typeof Object[_0x2cfd77(0x1df)]==_0x2cfd77(0x99)){for(var _0x40351e=0x0,_0x4fc457=Object['getOwnPropertySymbols'](_0x3cd607);_0x40351e<_0x4fc457[_0x2cfd77(0x10b)];_0x40351e++)_0x2535c4[_0x2cfd77(0x230)](_0x4fc457[_0x40351e])<0x0&&Object[_0x2cfd77(0x25e)]['propertyIsEnumerable'][_0x2cfd77(0x1c3)](_0x3cd607,_0x4fc457[_0x40351e])&&(_0x3d2a97[_0x4fc457[_0x40351e]]=_0x3cd607[_0x4fc457[_0x40351e]]);}return _0x3d2a97;},Xe=_0x246c5d(function(_0x58d0f3,_0x3b80df){const _0x13473e=_0x1711de;var _0x3c0e4a=_0x58d0f3[_0x13473e(0x27f)],_0x2a8b4b=_0x58d0f3['id'],_0x1dc68a=_0x58d0f3[_0x13473e(0xf2)],_0x8bcee6=_0x58d0f3[_0x13473e(0x25f)],_0x938cfc=Ii(_0x58d0f3,[_0x13473e(0x27f),'id','className',_0x13473e(0x25f)]),_0x3f01c5=_0x13473e(0x9a)[_0x13473e(0x186)](_0x2a8b4b,'\x20')[_0x13473e(0x186)](_0x1dc68a||'')[_0x13473e(0x125)](),_0x48278a=_0x33dbbe('_'[_0x13473e(0x186)](Ei()));return Lt(_0x3c0e4a,''['concat'](_0x2a8b4b),{'defIds':_0x3c0e4a[_0x13473e(0x29d)],'idSuffix':_0x48278a['current']},g({'ref':_0x3b80df,'className':_0x3f01c5},_0x938cfc),_0x8bcee6);});function Lt(_0x417ee4,_0x2df823,_0x38cf58,_0x46479f,_0x17467a){const _0x170475=_0x1711de;return _0x357d90(_0x417ee4[_0x170475(0x21b)],g(g({'key':_0x2df823},gi(_0x417ee4,_0x38cf58,_0x17467a)),_0x46479f),(vi(_0x417ee4,_0x38cf58)[_0x170475(0x23f)]||[])['map'](function(_0xf2698d,_0xa01c98){const _0x48e9e8=_0x170475;return Lt(_0xf2698d,''[_0x48e9e8(0x186)](_0x2df823,'-')[_0x48e9e8(0x186)](_0x417ee4[_0x48e9e8(0x21b)],'-')[_0x48e9e8(0x186)](_0xa01c98),_0x38cf58,void 0x0,_0x17467a);}));}function gi(_0x3c73ae,_0x51e73d,_0x28fd4b){const _0x18f13d=_0x1711de;var _0x3edc49=g({},_0x3c73ae[_0x18f13d(0x7d)]);_0x28fd4b!=null&&_0x28fd4b[_0x18f13d(0x1d7)]&&_0x3edc49[_0x18f13d(0x179)]===_0x18f13d(0x1d7)&&(_0x3edc49['fill']=_0x28fd4b['colorChannel1']),_0x3c73ae['tag']==='mask'&&_0x3edc49['id']&&(_0x3edc49['id']=_0x3edc49['id']+_0x51e73d['idSuffix']),Object['entries'](_0x3edc49)[_0x18f13d(0x1ef)](function(_0x3ebe90){const _0x1c9401=_0x18f13d;var _0x394450=_0x3ebe90[0x0],_0x554fdc=_0x3ebe90[0x1];_0x394450===_0x1c9401(0x116)&&typeof _0x554fdc=='string'&&(_0x3edc49[_0x394450]=_0x554fdc[_0x1c9401(0x15b)](/url\(#(.*)\)/,_0x1c9401(0x18d)[_0x1c9401(0x186)](_0x51e73d[_0x1c9401(0x163)],')')));});var _0x22332c=_0x51e73d['defIds'];return!_0x22332c||_0x22332c[_0x18f13d(0x10b)]===0x0||(_0x3c73ae['tag']===_0x18f13d(0x95)&&_0x3edc49[_0x18f13d(0x72)]&&(_0x3edc49['xlink:href']=_0x3edc49[_0x18f13d(0x72)]+_0x51e73d['idSuffix']),Object['entries'](_0x3edc49)[_0x18f13d(0x1ef)](function(_0x2beb3f){const _0x144776=_0x18f13d;var _0x13492a=_0x2beb3f[0x0],_0x243d9a=_0x2beb3f[0x1];typeof _0x243d9a==_0x144776(0x9b)&&(_0x3edc49[_0x13492a]=_0x243d9a[_0x144776(0x15b)](/url\(#(.*)\)/,'url(#$1'[_0x144776(0x186)](_0x51e73d[_0x144776(0x163)],')')));})),_0x3edc49;}function vi(_0x5a3869,_0x1dac66){const _0x24c218=_0x1711de;var _0x4c1287,_0x38c9c9=_0x1dac66[_0x24c218(0x29d)];return!_0x38c9c9||_0x38c9c9['length']===0x0?_0x5a3869:_0x5a3869[_0x24c218(0x21b)]===_0x24c218(0x28b)&&(!((_0x4c1287=_0x5a3869[_0x24c218(0x23f)])===null||_0x4c1287===void 0x0)&&_0x4c1287[_0x24c218(0x10b)])?g(g({},_0x5a3869),{'children':_0x5a3869[_0x24c218(0x23f)][_0x24c218(0x208)](function(_0x1b2259){const _0x2d892a=_0x24c218;return typeof _0x1b2259[_0x2d892a(0x7d)]['id']==_0x2d892a(0x9b)&&_0x38c9c9&&_0x38c9c9[_0x2d892a(0x22c)](_0x1b2259[_0x2d892a(0x7d)]['id'])?g(g({},_0x1b2259),{'attrs':g(g({},_0x1b2259[_0x2d892a(0x7d)]),{'id':_0x1b2259[_0x2d892a(0x7d)]['id']+_0x1dac66['idSuffix']})}):_0x1b2259;})}):_0x5a3869;}function Ei(){const _0x2b0857=_0x1711de;return Math[_0x2b0857(0x1ee)]()[_0x2b0857(0x273)](0x24)[_0x2b0857(0xf0)](0x2,0x8);}Xe[_0x1711de(0x19b)]=_0x1711de(0x196);var pi={'tag':_0x1711de(0x278),'attrs':{'xmlns':_0x1711de(0x277),'fill':_0x1711de(0x291),'viewBox':_0x1711de(0x256),'width':_0x1711de(0x1db),'height':_0x1711de(0x1db)},'children':[{'tag':'g','attrs':{'clipPath':_0x1711de(0x243)},'children':[{'tag':'path','attrs':{'stroke':_0x1711de(0x19e),'d':_0x1711de(0x1fb),'strokeLinecap':'round','strokeLinejoin':_0x1711de(0x1cc),'strokeWidth':1.2}}]},{'tag':_0x1711de(0x28b),'attrs':{},'children':[{'tag':_0x1711de(0x183),'attrs':{'id':_0x1711de(0x127)},'children':[{'tag':_0x1711de(0xd9),'attrs':{'fill':_0x1711de(0xf4),'d':_0x1711de(0x1ea)}}]}]}],'defIds':[_0x1711de(0x127)]},Mt=_0x246c5d(function(_0x1b4621,_0x41bbdf){return _0x357d90(Xe,Object['assign']({},_0x1b4621,{'id':'off-line-icon','ref':_0x41bbdf,'icon':pi}));});Mt[_0x1711de(0x19b)]=_0x1711de(0x233);var Oi={'tag':'svg','attrs':{'xmlns':_0x1711de(0x277),'fill':_0x1711de(0x291),'viewBox':_0x1711de(0x1b3),'width':_0x1711de(0x1db),'height':_0x1711de(0x1db)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x1711de(0xd9),'attrs':{'stroke':_0x1711de(0x19e),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x1711de(0x1cc),'strokeWidth':1.2}}]},{'tag':_0x1711de(0x28b),'attrs':{},'children':[{'tag':_0x1711de(0x183),'attrs':{'id':_0x1711de(0x118)},'children':[{'tag':_0x1711de(0xd9),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':_0x1711de(0x152)}}]}]}],'defIds':[_0x1711de(0x118)]},At=_0x246c5d(function(_0xe33633,_0xa45ce8){const _0x44b546=_0x1711de;return _0x357d90(Xe,Object[_0x44b546(0x1e1)]({},_0xe33633,{'id':_0x44b546(0x27e),'ref':_0xa45ce8,'icon':Oi}));});At[_0x1711de(0x19b)]='OnLineIcon';function Ti(_0x184c2e){const _0x19ac18=_0x1711de;switch(_0x184c2e){case _0x2403e1[_0x19ac18(0x21f)]:return _0x19ac18(0x23a);case _0x2403e1[_0x19ac18(0x69)]:return'collabStatus.conflict';case _0x2403e1[_0x19ac18(0x14f)]:return _0x19ac18(0x1ff);case _0x2403e1['NOT_COLLAB']:return _0x19ac18(0xb5);case _0x2403e1['AWAITING']:case _0x2403e1['AWAITING_WITH_PENDING']:return _0x19ac18(0x10f);case _0x2403e1[_0x19ac18(0x292)]:case _0x2403e1['PENDING']:return'collabStatus.synced';}}function Ci(_0x506cb1){const _0x16165f=_0x1711de,{status$:_0xce660a}=_0x506cb1,_0x5334f9=_0x152fe6(_0xce660a,_0x2403e1[_0x16165f(0x29e)]),_0x5837c4=_0x4419f1(_0xcc52b6),_0x38f574=_0x4419f1(_0x344ae3),_0x311490=_0x5334f9!==_0x2403e1[_0x16165f(0x21f)],_0x5def4a=_0x5837c4['t'](Ti(_0x5334f9)),_0x4b8c2e=_0x311490?_0x4efc8c(At,{}):_0x4efc8c(Mt,{}),_0x5b1fc9=_0x5c1d8a(()=>{const _0x7165d4=_0x16165f;_0x311490||_0x38f574[_0x7165d4(0x23b)]();},[_0x311490,_0x38f574]);function _0xdf036f(){const _0x48bfe8=_0x16165f;return _0x2d3a54('div',{'className':'univer-flex\x20univer-items-center','onClick':_0x5b1fc9,'children':[_0x4efc8c(_0x48bfe8(0xd4),{'className':_0x200428('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x311490,'univer-text-red-500':!_0x311490}),'children':_0x4b8c2e}),_0x4efc8c('div',{'className':_0x48bfe8(0x226),'children':_0x5def4a})]});}return _0x311490?_0xdf036f():_0x4efc8c(_0x42e525,{'title':_0x5837c4['t']('collab-client.tooltip.reconnect'),'children':_0xdf036f()});}var Ri=Object[_0x1711de(0x24f)],Di=(_0x2b76cf,_0x4469e7,_0x10b74e,_0x12d7a7)=>{for(var _0x1dc983=_0x12d7a7>0x1?void 0x0:_0x12d7a7?Ri(_0x4469e7,_0x10b74e):_0x4469e7,_0x1b69d1=_0x2b76cf['length']-0x1,_0x459e61;_0x1b69d1>=0x0;_0x1b69d1--)(_0x459e61=_0x2b76cf[_0x1b69d1])&&(_0x1dc983=_0x459e61(_0x1dc983)||_0x1dc983);return _0x1dc983;},ie=(_0x273f01,_0x2b88b1)=>(_0x5e68be,_0x6918d2)=>_0x2b88b1(_0x5e68be,_0x6918d2,_0x273f01);let ae=class extends _0x50b6bd{constructor(_0x35ad6a,_0x56df07,_0x4f23cc,_0x3f9cef){const _0x522612=_0x1711de;super(),_(this,_0x522612(0x1f2),new _0xc9ceb(_0x2403e1[_0x522612(0x29e)])),(this['_univerInstanceService']=_0x35ad6a,this[_0x522612(0xbd)]=_0x56df07,this['_collaborationController']=_0x4f23cc,this[_0x522612(0x78)]=_0x3f9cef,this[_0x522612(0x1e2)](),this[_0x522612(0x139)]());}['_initStatusListener'](){const _0x44c112=_0x1711de;this[_0x44c112(0xa0)](this[_0x44c112(0x1c1)][_0x44c112(0x236)][_0x44c112(0xf9)](_0x7602bf(()=>{const _0x3b2b8c=_0x44c112,_0x47394e=this[_0x3b2b8c(0x1c1)][_0x3b2b8c(0x24e)]();return _0x47394e?this[_0x3b2b8c(0x140)]['getCollabEntity$'](_0x47394e[_0x3b2b8c(0x1f1)]()):_0x36e9fe(null);}),_0x7602bf(_0x17f006=>_0x17f006?_0x17f006[_0x44c112(0x1e7)]:_0x36e9fe(_0x2403e1[_0x44c112(0x29e)])))[_0x44c112(0x270)](_0x513477=>{const _0xe2a240=_0x44c112;this[_0xe2a240(0x1f2)][_0xe2a240(0x10d)](_0x513477);}));}[_0x1711de(0x1e2)](){const _0x1911ba=_0x1711de;this[_0x1911ba(0xa0)](this[_0x1911ba(0x78)]['registerComponent'](_0x303794['HEADER_MENU'],()=>_0x4acaaf(bi({'status$':this[_0x1911ba(0x1f2)][_0x1911ba(0xe7)]()}),this[_0x1911ba(0xbd)])));}};ae=Di([ie(0x0,_0x54d197),ie(0x1,_0x7b53ac(_0x3f62bb)),ie(0x2,_0x7b53ac(_0xf63711)),ie(0x3,_0x4bcbd1)],ae);function bi(_0xb32fb5){const {status$:_0x3acf2d}=_0xb32fb5;return function(){return _0x4efc8c(Ci,{'status$':_0x3acf2d});};}const Pt=_0x3c0952(_0x1711de(0xca));var Ni=Object[_0x1711de(0x24f)],Ui=(_0x28a13f,_0xafdd47,_0x2bcd08,_0x5bb2eb)=>{const _0x40356a=_0x1711de;for(var _0x178b5c=_0x5bb2eb>0x1?void 0x0:_0x5bb2eb?Ni(_0xafdd47,_0x2bcd08):_0xafdd47,_0x18a6d5=_0x28a13f[_0x40356a(0x10b)]-0x1,_0x2d9767;_0x18a6d5>=0x0;_0x18a6d5--)(_0x2d9767=_0x28a13f[_0x18a6d5])&&(_0x178b5c=_0x2d9767(_0x178b5c)||_0x178b5c);return _0x178b5c;},z=(_0x1fe419,_0x210da0)=>(_0x10bc84,_0x177150)=>_0x210da0(_0x10bc84,_0x177150,_0x1fe419);let ce=class extends _0x46e415{constructor(_0x302486,_0x12ac85,_0x30eedf,_0x9fbb76,_0x3a8c22){const _0x3350f0=_0x1711de;super(),this[_0x3350f0(0x203)]=_0x302486,this[_0x3350f0(0x9c)]=_0x12ac85,this['_commandService']=_0x30eedf,this[_0x3350f0(0x19f)]=_0x9fbb76,_0x3a8c22?_0x3a8c22==null||_0x3a8c22[_0x3350f0(0xdb)]()[_0x3350f0(0x18a)](()=>this[_0x3350f0(0xda)]()):(this['_logService'][_0x3350f0(0x25d)]('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async['_init'](){const _0x5df1e5=_0x1711de,_0x5ec729=this['_urlService'][_0x5df1e5(0x1bb)]('unit'),_0x4f9b14=this[_0x5df1e5(0x203)][_0x5df1e5(0x1bb)](_0x5df1e5(0x6c)),_0x33c3f8=this[_0x5df1e5(0x203)][_0x5df1e5(0x1bb)](_0x5df1e5(0x218));if(!_0x5ec729||!_0x4f9b14){this[_0x5df1e5(0x9c)][_0x5df1e5(0x25d)](_0x5df1e5(0x120),_0x5df1e5(0x23c));return;}const _0x2f2fa6=await this[_0x5df1e5(0x19f)][_0x5df1e5(0x191)](_0x5ec729,Number(_0x4f9b14),_0x33c3f8);_0x2f2fa6&&_0x2f2fa6 instanceof _0xf3a577&&this['_setupSubUnitSync'](_0x2f2fa6);}async[_0x1711de(0x7c)](_0x7ccf0){const _0x185567=_0x1711de;await this[_0x185567(0x293)](_0x7ccf0),_0x7ccf0['activeSheet$'][_0x185567(0xf9)](_0x219c46(this[_0x185567(0xdf)]))[_0x185567(0x270)](_0x1dee2b=>{const _0x294773=_0x185567;_0x1dee2b&&this[_0x294773(0x238)](_0x1dee2b);}),this[_0x185567(0x203)]['urlChange$'][_0x185567(0xf9)](_0x219c46(this[_0x185567(0xdf)]))[_0x185567(0x270)](()=>this['_updateSubUnitFromURLParams'](_0x7ccf0));}[_0x1711de(0x238)](_0x355aba,_0x1f26ba=!0x1){const _0x173e2b=_0x1711de,_0x1f35f6=this['_urlService'][_0x173e2b(0x1bb)](_0x173e2b(0x218));_0x355aba['getSheetId']()!==_0x1f35f6&&this['_urlService'][_0x173e2b(0xc7)](_0x173e2b(0x218),_0x355aba[_0x173e2b(0x1fa)](),_0x1f26ba);}async[_0x1711de(0x293)](_0xa6313){const _0x239c0f=_0x1711de;var _0x723fdc;const _0x4a34d0=this['_urlService']['getParam'](_0x239c0f(0x218));if(!_0x4a34d0||!_0xa6313[_0x239c0f(0x19a)](_0x4a34d0)){const _0x114a23=_0xa6313[_0x239c0f(0x239)]()[0x0],_0x5411b4=_0xa6313[_0x239c0f(0x19a)](_0x114a23);if(!_0x5411b4)return;this['_updateURLWithCurrentState'](_0x5411b4,!0x0),await this['_commandService'][_0x239c0f(0x1d5)](_0x150e7b['id'],{'unitId':_0xa6313['getUnitId'](),'subUnitId':_0x114a23});return;}((_0x723fdc=_0xa6313[_0x239c0f(0x276)]())==null?void 0x0:_0x723fdc[_0x239c0f(0x1fa)]())!==_0x4a34d0&&await this[_0x239c0f(0x128)]['executeCommand'](_0x150e7b['id'],{'unitId':_0xa6313[_0x239c0f(0x1f1)](),'subUnitId':_0x4a34d0});}};ce=Ui([z(0x0,Pt),z(0x1,_0x505efa),z(0x2,_0x22c686),z(0x3,_0x7b53ac(_0x1c6214)),z(0x4,_0x489030(_0x360bc0))],ce);var Li=Object[_0x1711de(0x24f)],Mi=(_0x431449,_0x5978f6,_0x2223d2,_0x1d6714)=>{const _0x335f71=_0x1711de;for(var _0x54bfd0=_0x1d6714>0x1?void 0x0:_0x1d6714?Li(_0x5978f6,_0x2223d2):_0x5978f6,_0x5aa831=_0x431449[_0x335f71(0x10b)]-0x1,_0x1861fa;_0x5aa831>=0x0;_0x5aa831--)(_0x1861fa=_0x431449[_0x5aa831])&&(_0x54bfd0=_0x1861fa(_0x54bfd0)||_0x54bfd0);return _0x54bfd0;},it=(_0x56954f,_0x42948e)=>(_0x8be163,_0x1a9add)=>_0x42948e(_0x8be163,_0x1a9add,_0x56954f);let Pe=class extends _0x46e415{constructor(_0x5e29da,_0x5caed8){const _0x5a6b00=_0x1711de;super(),this[_0x5a6b00(0x22f)]=_0x5e29da,this[_0x5a6b00(0x1a2)]=_0x5caed8,this[_0x5a6b00(0xda)]();}[_0x1711de(0xda)](){const _0x375974=_0x1711de,_0x316438=this;this[_0x375974(0xa0)](this[_0x375974(0x22f)][_0x375974(0x286)]({'onBeforePasteImage':async _0x52e7f0=>{const _0x55b432=_0x375974,_0x3cf31f=await _0x316438[_0x55b432(0x1a2)][_0x55b432(0x20b)](_0x52e7f0);return _0x3cf31f?{'source':_0x3cf31f[_0x55b432(0x24b)],'imageSourceType':_0x3cf31f[_0x55b432(0x28e)]}:null;}}));}};Pe=Mi([it(0x0,_0x427770),it(0x1,_0x9f2b83)],Pe);const nt=[_0x1711de(0x229),_0x1711de(0x15d),_0x1711de(0x17b),_0x1711de(0x260),_0x1711de(0x1c4),_0x1711de(0x170)];class Ge extends _0x50b6bd{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}[_0x1711de(0x131)](_0x428e09){const _0x2a7d8a=_0x1711de;if(this[_0x2a7d8a(0x232)]['has'](_0x428e09))return this[_0x2a7d8a(0x232)][_0x2a7d8a(0x12a)](_0x428e09);const _0x5b6d3b=nt[this[_0x2a7d8a(0x11d)]];return this[_0x2a7d8a(0x11d)]=(this[_0x2a7d8a(0x11d)]+0x1)%nt[_0x2a7d8a(0x10b)],this[_0x2a7d8a(0x232)][_0x2a7d8a(0x151)](_0x428e09,_0x5b6d3b),_0x5b6d3b;}}function wt(_0x582e7c){let _0x2997f1='';for(const _0x31ae3c of _0x582e7c){const {startOffset:_0x54bc8e,endOffset:_0x33922b,isActive:_0x28547f,rangeType:_0x2f4e19,segmentId:_0x3dff40,segmentPage:_0x246d41}=_0x31ae3c;_0x2997f1['length']&&(_0x2997f1+=','),_0x2997f1+=_0x54bc8e+':'+_0x33922b+':'+(_0x28547f?'1':'0')+':'+_0x2f4e19+':'+_0x3dff40+':'+_0x246d41;}return _0x2997f1;}function Ai(_0x2d5da0){const _0x2dacc8=_0x1711de,_0x3c00d5=_0x2d5da0['split'](','),_0x3b7916=[];for(const _0x233192 of _0x3c00d5){const [_0x7b5cb6,_0x8295b9,_0x471d49,_0x3fda29,_0x27b9da,_0x29c729]=_0x233192[_0x2dacc8(0x117)](':');_0x3b7916[_0x2dacc8(0x205)]({'startOffset':Number(_0x7b5cb6),'endOffset':Number(_0x8295b9),'collapsed':_0x7b5cb6===_0x8295b9,'isActive':_0x471d49==='1','rangeType':_0x3fda29===_0xd88b09[_0x2dacc8(0x1ae)]?_0xd88b09[_0x2dacc8(0x1ae)]:_0xd88b09[_0x2dacc8(0xec)],'segmentId':typeof _0x27b9da==_0x2dacc8(0x9b)?String(_0x27b9da):'','segmentPage':Number(_0x29c729!=null?_0x29c729:-0x1)});}return _0x3b7916['some'](_0x946ad3=>_0x946ad3[_0x2dacc8(0x18f)])||(_0x3b7916[0x0][_0x2dacc8(0x18f)]=!0x0),_0x3b7916;}class Ke extends _0x46e415{constructor(){const _0x13d3e4=_0x1711de;super(...arguments),_(this,_0x13d3e4(0xf5),new _0xc9ceb(null)),_(this,'collabCursorState$',this[_0x13d3e4(0xf5)]['asObservable']());}[_0x1711de(0x280)](_0x8fc552){const _0x1d5103=_0x1711de,{unitID:_0x373c83,memberID:_0x54d6b5,textRanges:_0x398da2}=_0x8fc552,_0x366273=wt(_0x398da2);if(_0x366273==='')return;const _0x3f103a={'unitID':_0x373c83,'memberID':_0x54d6b5,'selection':_0x366273};this[_0x1d5103(0xf5)]['next'](_0x3f103a);}}var Pi=Object[_0x1711de(0x24f)],wi=(_0x52f4c5,_0x30533b,_0x1b0965,_0x4e6236)=>{const _0x1f855b=_0x1711de;for(var _0xcc8a1d=_0x4e6236>0x1?void 0x0:_0x4e6236?Pi(_0x30533b,_0x1b0965):_0x30533b,_0x1ad976=_0x52f4c5[_0x1f855b(0x10b)]-0x1,_0x5c2f69;_0x1ad976>=0x0;_0x1ad976--)(_0x5c2f69=_0x52f4c5[_0x1ad976])&&(_0xcc8a1d=_0x5c2f69(_0xcc8a1d)||_0xcc8a1d);return _0xcc8a1d;},P=(_0x173870,_0x51fc1b)=>(_0x2a9ff6,_0x54ccdc)=>_0x51fc1b(_0x2a9ff6,_0x54ccdc,_0x173870);const yi=0x12c,$i=0x64;let we=class extends _0x46e415{constructor(_0x1bc3be,_0x467338,_0x15a88e,_0x4f60ae,_0x239bf1,_0x5ec68f,_0x2f37fe,_0x25b209,_0x1417f5){const _0x5c42f9=_0x1711de;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,_0x5c42f9(0x102),new _0xc9ceb(new Map())),_(this,_0x5c42f9(0x27b),this[_0x5c42f9(0x102)][_0x5c42f9(0xe7)]()),_(this,'_roomMembers$',new _0xc9ceb([])),_(this,_0x5c42f9(0x11c),this['_roomMembers$'][_0x5c42f9(0xf9)](_0x3c7ab9(yi))),_(this,'_updateLocalCursor',_0x5b9bbb(_0x52293e=>{const _0x5f4ce9=_0x5c42f9,_0x3f64ed={'eventID':_0x49dbc4[_0x5f4ce9(0x257)],'data':{'unitID':this[_0x5f4ce9(0x14e)],'memberID':this[_0x5f4ce9(0xc6)][_0x5f4ce9(0x249)](),'selection':wt(_0x52293e)}};this['_session'][_0x5f4ce9(0x1dd)](_0x3f64ed,this[_0x5f4ce9(0x14e)]);},$i)),(this[_0x5c42f9(0x14e)]=_0x1bc3be,this[_0x5c42f9(0xc6)]=_0x467338,this[_0x5c42f9(0xbd)]=_0x15a88e,this['_colorAssignService']=_0x4f60ae,this[_0x5c42f9(0xd6)]=_0x239bf1,this[_0x5c42f9(0xaf)]=_0x5ec68f,this[_0x5c42f9(0x85)]=_0x2f37fe,this[_0x5c42f9(0x1c1)]=_0x25b209,this[_0x5c42f9(0x128)]=_0x1417f5);}get[_0x1711de(0x253)](){const _0x504035=_0x1711de;return this[_0x504035(0x102)][_0x504035(0x14a)]();}get[_0x1711de(0x7f)](){const _0x1fa288=_0x1711de;return this[_0x1fa288(0x210)]['getValue']();}['dispose'](){const _0x562242=_0x1711de;super[_0x562242(0x136)](),this[_0x562242(0x102)][_0x562242(0x10d)](new Map()),this['_cursorInfo$'][_0x562242(0x70)](),this['_roomMembers$'][_0x562242(0x10d)]([]),this[_0x562242(0x210)][_0x562242(0x70)]();}['init'](){const _0x309280=_0x1711de;this[_0x309280(0xda)]||(this[_0x309280(0xda)]=!0x0,this[_0x309280(0xc6)][_0x309280(0x255)][_0x309280(0xf9)](_0x219c46(this['dispose$']))[_0x309280(0x270)](_0x3275b4=>{const _0x349d4a=_0x309280;_0x3275b4===_0x19ff57['ONLINE']?this[_0x349d4a(0x299)]():this[_0x349d4a(0x18b)]();}),this[_0x309280(0xc6)]['event$']['pipe'](_0x219c46(this['dispose$']))['subscribe'](_0x329600=>{const _0x13d8fa=_0x309280,_0x39c420=_0x329600[_0x13d8fa(0xfa)];_0x39c420===_0x49dbc4[_0x13d8fa(0x257)]&&this[_0x13d8fa(0x150)](_0x329600),_0x39c420===_0x49dbc4[_0x13d8fa(0x25b)]&&this['_onCursorDelete'](_0x329600);}),this['disposeWithMe'](this[_0x309280(0x128)][_0x309280(0x21a)](_0x20741f=>{const _0x180515=_0x309280,_0xfc028e=_0x20741f[_0x180515(0x9e)];_0xfc028e!=null&&this[_0x180515(0x76)]&&_0x20741f['id']===_0x22bb50['id']&&_0xfc028e[_0x180515(0x216)]===this['unitID']&&_0xfc028e[_0x180515(0x82)]===!0x1&&_0xfc028e[_0x180515(0x209)][_0x180515(0x10b)]>0x0&&this[_0x180515(0x156)](_0xfc028e[_0x180515(0x209)]);})),this[_0x309280(0xaf)][_0x309280(0xe1)]['pipe'](_0x219c46(this['dispose$']))[_0x309280(0x270)](_0x12a1c0=>{const _0xe4cf6a=_0x309280;if((_0x12a1c0==null?void 0x0:_0x12a1c0[_0xe4cf6a(0x14e)])!==this[_0xe4cf6a(0x14e)])return;const _0x5f5df7={'eventID':_0x49dbc4[_0xe4cf6a(0x257)],'data':_0x12a1c0};this[_0xe4cf6a(0x150)](_0x5f5df7);}),this[_0x309280(0xa0)](this[_0x309280(0x128)][_0x309280(0x21a)](_0x6a02f0=>{const _0x3f47d3=_0x309280;if(_0x6a02f0[_0x3f47d3(0x9e)]==null)return;const _0x4cad07=_0x6a02f0[_0x3f47d3(0x9e)];if(_0x6a02f0['id']!==_0x3721e0['id']||_0x4cad07['unitId']!==this[_0x3f47d3(0x14e)])return;const _0x3b5665={'id':'doc.mutation.rich-text-editing','params':_0x4cad07},_0x70f367=this[_0x3f47d3(0x253)];for(const [_0x28997d,_0x24a40f]of _0x70f367){const _0x19a98c={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x24a40f['ranges']}},_0x57f6c1=this[_0x3f47d3(0x85)]['transformMutation'](_0x3b5665,_0x19a98c,!0x1);if(_0x1a68ef(_0x57f6c1))throw _0x57f6c1[_0x3f47d3(0x258)];_0x70f367['set'](_0x28997d,{..._0x24a40f,'ranges':_0x57f6c1[_0x3f47d3(0x279)]['params']['textRanges']});}queueMicrotask(()=>{const _0x1e69b1=_0x3f47d3;this[_0x1e69b1(0x102)]['next'](_0x70f367);});})));}['_onCursorUpdate'](_0x19143e){const _0x4a3087=_0x1711de;var _0x4bda43,_0x3e2f9c;const {memberID:_0x165347,selection:_0x547885}=_0x19143e[_0x4a3087(0x1a4)],_0x894115=Ai(_0x547885),_0x38f82c=(_0x3e2f9c=(_0x4bda43=this['_memberService'][_0x4a3087(0x204)](this[_0x4a3087(0x14e)],_0x165347))==null?void 0x0:_0x4bda43[_0x4a3087(0x8c)])!=null?_0x3e2f9c:'Unknown\x20user',_0x50afd3={'color':this[_0x4a3087(0xb1)][_0x4a3087(0x131)](_0x165347),'name':_0x38f82c,'ranges':_0x894115},_0x19edb5=this[_0x4a3087(0x253)];_0x19edb5[_0x4a3087(0x151)](_0x165347,_0x50afd3),this[_0x4a3087(0x102)][_0x4a3087(0x10d)](_0x19edb5);}['_onCursorDelete'](_0x40d3dd){const _0x5b59b9=_0x1711de,{memberID:_0x4f8d45}=_0x40d3dd[_0x5b59b9(0x1a4)],_0x2b7aba=this[_0x5b59b9(0x253)];_0x2b7aba[_0x5b59b9(0x171)](_0x4f8d45),this['_cursorInfo$'][_0x5b59b9(0x10d)](_0x2b7aba);}[_0x1711de(0x299)](){const _0x9d7ef6=_0x1711de;var _0x258b04;if(this[_0x9d7ef6(0x76)]=!0x0,((_0x258b04=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x258b04['getUnitId']())!==this[_0x9d7ef6(0x14e)])return;const _0x4bef96=this[_0x9d7ef6(0xbd)][_0x9d7ef6(0x12a)](_0x2fa8e8)['getDocRanges']();Array[_0x9d7ef6(0xd1)](_0x4bef96)&&_0x4bef96[_0x9d7ef6(0x10b)]>0x0&&this[_0x9d7ef6(0x156)](_0x4bef96);}[_0x1711de(0x18b)](){const _0x166bbd=_0x1711de;this[_0x166bbd(0x76)]=!0x1;}};we=wi([P(0x2,_0x7b53ac(_0x3f62bb)),P(0x3,_0x7b53ac(Ge)),P(0x4,_0x7b53ac(_0x1daa17)),P(0x5,_0x7b53ac(Ke)),P(0x6,_0x4ed100),P(0x7,_0x54d197),P(0x8,_0x22c686)],we);function _0x4afb(){const _0x5b5eda=['onStarting','UniverIcon','onPointerEnter$','clearTimeout','ENSURE_SNAPSHOT_EXECUTION','getSheetBySheetId','displayName','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_collabCursorController','currentColor','_dataLoaderService','doc.mutation.rich-text-editing','getUnitStatus$','_imageIoService','limitInfo','data','currentUsage','_getMergeRange','_saveCache','APPLY_DUPLICATED','_drawTextRange','_startCalculationLimit','transformMutationsWithChangeset','_scheduleHeartbeat','_getAnchorBounding','TEXT','EMAIL_HAS_BEEN_BOUND','triggerDblclick','YUUMI_CONNECTOR_URL_NOT_FOUND','unsubscribe','0\x200\x2017\x2016','_taskIds','max','_initCommandInterceptor','href','show','stage','RemoveRowCommandId','getParam','_getFormulaLimitStatus','transformSelections','getCellPositionByOffset','_refRangeService','CLOSE_ROOM','_univerInstanceService','INVALID_INVITE_CODE','call','blue.400','INVALID_ARGUMENT','?taskId=','session.connection-failed','getCurrentSelections','_collabSessionService','RemoveColCommandId','_ensureSubject','round','1510185rcvfES','REDEMPTION_CODE_FULLY_REDEEMED','PERMISSION_DENIED','getTypeOfUnitDisposed$','event$','getItem','permission.content','onLocalMutation','executeCommand','collaboration-client.offline-data-not-saved','colorChannel1','_anchor','subscribeEvent','_sheetSkeletonManagerService','1em','_startSheetCollabCursor','send','lineTo','getOwnPropertySymbols','_localCacheService','assign','_initStatusComponent','_document','UNRECOGNIZED','1259158WVaJgd','_cachedData','status$','_textBubble','post','M0\x200H16V16H0z','_docTransformIMECacheService','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','session.collaboration-timeout','random','forEach','saveTaskMap','getUnitId','_status$','_handleHeartbeatEvent','removeParam','UNAUTHENTICATED','stageInfo','fillText','currentTheme$','_heartbeatTimer','getSheetId','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','1029084FuqSOz','_drawRectRange','body','collabStatus.fetchMiss','contains','REDEMPTION_INVALID_CODE','_getSheetObject','_urlService','getMember','push','_lastPointer','_beforeCloseService','map','ranges','getUniverSheetInstance','saveImage','unload','functionsExecutedState','onTransformChange$','symbol','_roomMembers$','session.will-retry','createInstance','moveTo','pluginName','InsertRangeMoveDownCommandId','unitId','_backgroundColor','subunit','selections','onCommandExecuted','tag','toRgbString','wsSessionTicketUrl','UNIVER_DOC','OFFLINE','DeleteRangeMoveUpCommandId','deepClone','updateOfflineData','endRow','/universer-api/license/formula/limit/done','runId','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','collab-text-range-','LICENSE_MAX_UNITS_EXCEEDED','purple.300','rgba(255,\x20255,\x20255,\x200.01)','startFormulaLimitUrl','includes','docStateChange$','EMAIL_VERIFY_CODE_MISMATCH','_docClipboardService','indexOf','5NtOQYq','_assignedColors','OffLineIcon','transformByState','_docTransformSelectionsService','focused$','registerBeforeClose','_updateURLWithCurrentState','getUnhiddenWorksheets','collabStatus.offline','reconnect','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','evenodd','getAncestorScale','children','permission.title','_labelPosition','_pollingInterval','url(#off-line-icon_clip0_910_343)','_localStorageService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_docSkeletonManagerService','editingUnit','_cursor','getMemberID','COMPLETION_FINISHED','source','_createSocketURL','onPointerLeave$','getFocusedUnit','getOwnPropertyDescriptor','UNIVER_SHEET','transformIMECache','MOBILE_VERIFY_CODE_MISMATCH','cursorInfo','_registerRenderDependencies','sessionStatus$','0\x200\x2016\x2016','UPDATE_CURSOR','error','getCollabCursors$','LOGIN_TOKEN_PROCESSING_FAILED','USERS_LEAVE','getCellMatrix','debug','prototype','extend','red.300','_getSessionTicket','dirtyRanges','invokeId','_draw','ENTITLE_CHAT_LIMIT_EXCEED','MUTATION','CHANGESET_REVISION_CONFILICT','PY_RUNTIME_SCRIPT_ERROR','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_handleJoinEvent','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_getSaveTimeout','Warning','formula.calculation.unable','/universer-api/license/formula/limit/status','subscribe','_initDependencies','maxFormulaLimit','toString','_clearOtherTimers','setInterval','getActiveSheet','http://www.w3.org/2000/svg','svg','m2Prime','application/json','cursorInfo$','runOnServer','_transformUndoRedoStack','on-line-icon','icon','syncEditingCollabCursor','onMouseMove','height','onPointerMove$','MoveRangeCommandId','drawWith','addClipboardHook','_scene','UNDEFINED','values','Failed','defs','_range','AUTHORIZE_CODE_ILLEGAL','imageSourceType','_maxFormulaLimit','USER_IS_ANONYMOUS','none','SYNCED','_updateSubUnitFromURLParams','registerRenderModule','CURRENT_STATUS_CANNOT_OPERATE','/run/','range','_doCreateSocket','_toggleOnline','resize','hide','_unitStatus','defIds','NOT_COLLAB','setTimeout','_unitOnClients','urlChange$','_name','save','CONFLICT','textRanges','INVITE_CODE_HAS_BEEN_UES','type','_initResize','setUndoRedoMutationParamsCache','25656ahHDwd','complete','formula.calculation.waiting','xlink:href','code','_shapes','disableLocalCache','_online','WECHAT_HAS_BEEN_BOUND','_uiPartsService','YUUMI_URL_COL_OUT_OF_RANGE','_cursors','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_setupSubUnitSync','attrs','[RemoteUniscriptService]:\x20no\x20focused\x20unit','roomMembers','SNAPSHOT_HAS_BEEN_REMOVED','backgroundColor','isEditing','result','stringify','_transformService','_docSyncEditingCollabCursorService','collaboration.closeRoom','_currentUsage','black','setShapeProps','_httpService','name','LOGIN_FAILED','collaboration-client-ui.config','_docSkeleton','entityInit$','_disabled','MOBILE_HAS_BEEN_BOUND','sessionTicket','fillRule','use','REDEMPTION_USER_NOT_ELIGIBLE','_messageService','REDEMPTION_CODE_INACTIVE','function','univerjs-icon\x20univerjs-icon-','string','_logService','hasOwnProperty','params','_lastResponseTimestamp','disposeWithMe','getConfig','ERROR_AGAIN','_removeCollabCursors','getVpScrollXYInfoByPosToVp','APPLY_NON_SEQUENTIAL_REVISION','createSocket','now','_handleLeaveEvent','_onRefRangeChange','fillStyle','mutations','min','_context','_id','_syncEditingCollabCursorService','SOCKET_FAILED','_colorAssignService','_startDocCollabCursor','_instanceService','collaboration.single-unit.warning','collabStatus.notCollab','_getScale','transformMutation','YUUMI_ALL_TABLES_IS_INVALID','setAlpha','ACTIVE_UNIT_EVENT_CHANNEL','redoState','Error','_injector','INTERNAL_ERROR','m1Prime','USER_NOT_INVITED_CODE','TOO_MANY_REQUESTS','addObject','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_send','history','_session','setParam','_scheduleClearOtherTimer','_checkCalculationAvailable','uni.network.url-service','getStateCache','defineProperty','parseInt','REDEMPTION_CODE_NOT_STARTED','newValue','_showGuardMessage','isArray','transformStateCache','YUUMI_ASYNCIO_CANCELLED','div','color','_memberService','override','APPLY_REJECT','path','_init','whenReady','popstate','replaceDocRanges','getCurrentRevOfUnit','dispose$','saveOfflineData','collabCursorState$','pushState','_releaseCalculationLimit','_color','addHandlerCallback','closePath','asObservable','find','size','LICENSE_DISTRO_REJECTED','YUUMI_AI_RUN_FAILED','RECT','_docStateChangeManagerService','_handleHover','NO_OTHER_CLIENTS_EDITING','substring','_entities','className','_localeService','white','_collabCursorState$','getCurrent','_notificationService','_initEvent','pipe','eventID','_onCursorDelete','parse','_removeClearOtherTimer','engine','_eventUnsubscribe','measureText','_setupBeforeClosingHandler','_cursorInfo$','memberID','storage','FromArray','1971220HJfply','arc','collab-rect-range-','location','ENTITLE_DUP_SUBSCRIPTION','length','_initCommandExecutedListener','next','exhaustSavingTask','collabStatus.syncing','_collaborationUIEventService','startsWith','NOT_FOUND','81923ARlxYk','startRow','SNAPSHOT_INVALID_SNAPSHOT','mask','split','on-line-icon_clip0_910_349','LICENSE_IMPORT_SIZE_EXCEEDED','_checkAndWaitForCalculationPermission','/universer-api/license/formula/limit/start','roomMembers$','_colorIndex','_initEntityListener','YUUMI_SUBSCRIPTION_NOT_FOUND','[CollaborationDataLoaderController]','clearInterval','unshift','getSkeleton','_docTransformStateCacheService','trim','setItem','off-line-icon_clip0_910_343','_commandService','_refreshCollabCursors','get','_setFormulaLimitStatus','getOffsetConfig','text','undoState','getCurrentUnitForType','APPLY_REVISION_CONFILICT','assignAColorForMemberID','_transformHistoryAndStateStack','ENTITLE_CAN_NOT_BUY_LOWER_OTP','skeleton','hovered','dispose','ENTITLE_NEED_BILLING_ADDRESS','_themeService','_initStatusListener','JOIN_ROOM_FAILED','setStateCache','_hideTimer','INVITE_CODE_ALREADY_BOUND','getColorFromTheme','width','_collaborationController','_configService','_registerDependencies','_saveTaskMap','_renderManagerService','_hasFormulaInDirtyRanges','executionId','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','restore','getRangePointData','getValue','_clearPolling','INVITE_CODE_REQUIRED','_hovered','unitID','FETCH_MISS','_onCursorUpdate','set','translate(.97)','beforeCommandExecuted','from','_drawAnchor','_updateLocalCursor','YUUMI_NO_CUBOID_FOR_QUESTION','LICENSE_EXPORT_SIZE_EXCEEDED','_hover','transformRemoteChangeset','replace','replaceState','jiqing.500','getTypeOfUnitAdded$','getRelativeToViewportCoord','_entityInit$','unit','PAYMENT_CHANNEL_NOT_SUPPORT','idSuffix','_handleEvent','getUndoRedoMutationParamsCache','Unknown\x20user','setActiveRange','selection','row','bottom','getRenderById','APPLY_PERMISSION_DENIED','_scheduleSaving','disposeUnit','_render','yellow.400','delete','_updateCollabCursors','3636QnfdHD','_applyCommand','onRendered','_selfUnitIDs','all','1616580jGUfiC','fill','getDocRanges','green.600','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_cursorShapes','requireSession','registerRefRange','_anchorDot','_config','with','clipPath','_transformPreviousActiveRange','has','concat','YUUMI_UNABLE_LOAD_URL','CONNECTOR_DATA_TOO_LARGE','ALREADY_EXISTS','then','_toggleOffline','SOCKET_FAILED_RETRY','url(#$1','init','isActive','startColumn','loadUnit','searchParams','findNodePositionByCharIndex','USER_NOT_FOUND'];_0x4afb=function(){return _0x5b5eda;};return _0x4afb();}var xi=Object[_0x1711de(0x24f)],Bi=(_0x29d873,_0x1ba725,_0x54ec1c,_0x4b55b6)=>{const _0xa78de5=_0x1711de;for(var _0x3e0335=_0x4b55b6>0x1?void 0x0:_0x4b55b6?xi(_0x1ba725,_0x54ec1c):_0x1ba725,_0x5a0242=_0x29d873[_0xa78de5(0x10b)]-0x1,_0x15de92;_0x5a0242>=0x0;_0x5a0242--)(_0x15de92=_0x29d873[_0x5a0242])&&(_0x3e0335=_0x15de92(_0x3e0335)||_0x3e0335);return _0x3e0335;},F=(_0x3827d6,_0x4e9fcc)=>(_0x46d00b,_0xcb73a3)=>_0x4e9fcc(_0x46d00b,_0xcb73a3,_0x3827d6);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x10b2b7=[],_0x4e7b65=!0x1;return _0x30f828=>{const _0x48dfdd=_0xf036;_0x10b2b7[_0x48dfdd(0x205)](_0x30f828),_0x4e7b65||(_0x4e7b65=!0x0,setTimeout(()=>{const _0x194e62=_0x48dfdd;_0x10b2b7[_0x194e62(0x1ef)](_0x149422=>_0x149422()),_0x10b2b7=[],_0x4e7b65=!0x1;}));};};let ye=class extends _0x46e415{constructor(_0x58e751,_0xc84c67,_0x4c1734,_0x65665f,_0x6417,_0x45adac,_0x457ba9,_0x4c69f1){const _0x300fbd=_0x1711de;super(),_(this,_0x300fbd(0x76),!0x1),_(this,_0x300fbd(0xda),!0x1),_(this,_0x300fbd(0x102),new _0xc9ceb(new Map())),_(this,_0x300fbd(0x27b),this[_0x300fbd(0x102)][_0x300fbd(0xe7)]()),_(this,_0x300fbd(0x210),new _0xc9ceb([])),_(this,_0x300fbd(0x11c),this[_0x300fbd(0x210)][_0x300fbd(0xf9)](_0x3c7ab9(Fi))),_(this,_0x300fbd(0x156),_0x5b9bbb((_0x4af5a0,_0x2d5411)=>{const _0x5a3d8a=_0x300fbd,_0x16db04={'eventID':_0x49dbc4[_0x5a3d8a(0x257)],'data':{'unitID':this['unitID'],'memberID':this[_0x5a3d8a(0xc6)][_0x5a3d8a(0x249)](),'selection':_0x4adbd2(_0x4af5a0,_0x2d5411[_0x5a3d8a(0x297)])}};this[_0x5a3d8a(0xc6)][_0x5a3d8a(0x1dd)](_0x16db04,this['unitID']);},ki)),(this[_0x300fbd(0x14e)]=_0x58e751,this['_session']=_0xc84c67,this[_0x300fbd(0xbd)]=_0x4c1734,this[_0x300fbd(0xb1)]=_0x65665f,this['_memberService']=_0x6417,this[_0x300fbd(0x1c1)]=_0x45adac,this[_0x300fbd(0x128)]=_0x457ba9,this[_0x300fbd(0x1bf)]=_0x4c69f1);}get[_0x1711de(0x253)](){const _0x101a41=_0x1711de;return this[_0x101a41(0x102)][_0x101a41(0x14a)]();}get[_0x1711de(0x7f)](){const _0x1eeb3e=_0x1711de;return this[_0x1eeb3e(0x210)][_0x1eeb3e(0x14a)]();}['dispose'](){const _0x59ea5a=_0x1711de;super[_0x59ea5a(0x136)](),this['_cursorInfo$']['next'](new Map()),this[_0x59ea5a(0x102)][_0x59ea5a(0x70)](),this[_0x59ea5a(0x210)][_0x59ea5a(0x10d)]([]),this[_0x59ea5a(0x210)][_0x59ea5a(0x70)]();}[_0x1711de(0x18e)](){const _0x2c5915=_0x1711de;this[_0x2c5915(0xda)]||(this[_0x2c5915(0xda)]=!0x0,this[_0x2c5915(0xc6)]['sessionStatus$']['pipe'](_0x219c46(this[_0x2c5915(0xdf)]))[_0x2c5915(0x270)](_0x5c63fe=>{const _0xf4fdc8=_0x2c5915;_0x5c63fe===_0x19ff57['ONLINE']?this[_0xf4fdc8(0x299)]():this[_0xf4fdc8(0x18b)]();}),this[_0x2c5915(0xc6)][_0x2c5915(0x1d1)]['pipe'](_0x219c46(this[_0x2c5915(0xdf)]))[_0x2c5915(0x270)](_0x5ed200=>{const _0x529a4b=_0x2c5915,_0x1e8c10=_0x5ed200['eventID'];_0x1e8c10===_0x49dbc4['UPDATE_CURSOR']&&this[_0x529a4b(0x150)](_0x5ed200),_0x1e8c10===_0x49dbc4[_0x529a4b(0x25b)]&&this[_0x529a4b(0xfb)](_0x5ed200);}),this[_0x2c5915(0xa9)](),this[_0x2c5915(0xa0)](this[_0x2c5915(0x128)][_0x2c5915(0x21a)](_0x578704=>{const _0x282591=_0x2c5915;if(this[_0x282591(0x76)]&&_0x578704['id']===_0x2047ff['id']&&_0x578704[_0x282591(0x9e)][_0x282591(0x216)]===this[_0x282591(0x14e)]){const _0xff7928=_0x578704[_0x282591(0x9e)];this[_0x282591(0x156)](_0xff7928['subUnitId'],_0xff7928[_0x282591(0x219)][0x0]);}})));}['_onCursorUpdate'](_0x492863){const _0x4f3460=_0x1711de;var _0x46372c,_0x2ec8bf;const {memberID:_0x50c659,selection:_0x622682}=_0x492863['data'],{sheetName:_0x17f098,range:_0x2fc45c}=_0xd2f755(_0x622682),_0x3ada8a={'name':(_0x2ec8bf=(_0x46372c=this[_0x4f3460(0xd6)][_0x4f3460(0x204)](this[_0x4f3460(0x14e)],_0x50c659))==null?void 0x0:_0x46372c[_0x4f3460(0x8c)])!=null?_0x2ec8bf:_0x4f3460(0x166),'range':this['_getMergeRange'](_0x17f098,_0x2fc45c),'sheetID':_0x17f098,'color':this[_0x4f3460(0xb1)][_0x4f3460(0x131)](_0x50c659),'selection':_0x622682},_0x3b60e9=this[_0x4f3460(0x253)];_0x3b60e9['set'](_0x50c659,_0x3ada8a),this[_0x4f3460(0x102)][_0x4f3460(0x10d)](_0x3b60e9);}[_0x1711de(0xfb)](_0x3d2341){const _0x12162b=_0x1711de,{memberID:_0x2bf7b0}=_0x3d2341[_0x12162b(0x1a4)],_0x204e06=this['cursorInfo'];_0x204e06[_0x12162b(0x171)](_0x2bf7b0),this['_cursorInfo$'][_0x12162b(0x10d)](_0x204e06);}[_0x1711de(0x1a6)](_0xfc1e8e,_0x1ccb23){const _0x325021=_0x1711de;var _0x5d1de9,_0x3a4aa7;const _0xf5ec7b=(_0x3a4aa7=(_0x5d1de9=this[_0x325021(0x1c1)][_0x325021(0x20a)](this['unitID']))==null?void 0x0:_0x5d1de9[_0x325021(0x19a)](_0xfc1e8e))==null?void 0x0:_0x3a4aa7['getMergeData']();return(_0xf5ec7b==null?void 0x0:_0xf5ec7b[_0x325021(0xe8)](_0x443d49=>_0x5830b8[_0x325021(0x200)](_0x443d49,_0x1ccb23)))||_0x1ccb23;}[_0x1711de(0xa9)](){const _0x4fb1b4=_0x1711de,_0x110223=new _0x4e1f5a(),_0x59d49a=Hi(),_0x32587a=()=>{const _0x58a712=_0xf036;_0x110223[_0x58a712(0x136)]();const _0x4bca29=(_0x4ebbe9,_0x456db3,_0x1c33a2,_0x1ecdd1)=>{const _0x7da5ae=_0x58a712;let _0x278616=[];switch(_0x4ebbe9['id']){case _0x2dbbc5['DeleteRangeMoveLeftCommandId']:{_0x278616=_0xe107e9(_0x4ebbe9,_0x1ecdd1);break;}case _0x2dbbc5[_0x7da5ae(0x220)]:{_0x278616=_0x13d5c6(_0x4ebbe9,_0x1ecdd1);break;}case _0x2dbbc5['InsertColCommandId']:{_0x278616=_0x3500ce(_0x4ebbe9,_0x1ecdd1);break;}case _0x2dbbc5[_0x7da5ae(0x215)]:{_0x278616=_0x22e6a2(_0x4ebbe9,_0x1ecdd1);break;}case _0x2dbbc5['InsertRangeMoveRightCommandId']:{_0x278616=_0x22e1e5(_0x4ebbe9,_0x1ecdd1);break;}case _0x2dbbc5['InsertRowCommandId']:{_0x278616=_0x418b27(_0x4ebbe9,_0x1ecdd1);break;}case _0x2dbbc5[_0x7da5ae(0x284)]:{_0x278616=_0x434739(_0x4ebbe9,_0x1ecdd1);break;}case _0x2dbbc5[_0x7da5ae(0x1ca)]:{_0x278616=_0x4be1e9(_0x4ebbe9,_0x1ecdd1);break;}case _0x2dbbc5[_0x7da5ae(0x1ba)]:{_0x278616=_0x41c9ef(_0x4ebbe9,_0x1ecdd1);break;}}const _0x11e5e0=_0x4712af(_0x278616,_0x1ecdd1),_0x2c5485=this['cursorInfo'][_0x7da5ae(0x12a)](_0x456db3);if(_0x2c5485&&_0x11e5e0){const _0x4f77a2={..._0x2c5485,'range':_0x11e5e0};this[_0x7da5ae(0x253)][_0x7da5ae(0x151)](_0x456db3,_0x4f77a2),_0x59d49a(()=>{const _0x50e481=_0x7da5ae,_0xf22a82=this[_0x50e481(0x1bf)][_0x50e481(0x17f)](_0x11e5e0,_0x53b083=>(_0xf22a82['dispose'](),_0x4bca29(_0x53b083,_0x456db3,_0x1c33a2,_0x11e5e0)));_0x110223['add'](_0xf22a82);});}return{'redos':[],'undos':[]};};this[_0x58a712(0x253)][_0x58a712(0x1ef)]((_0xdd075e,_0x40e088)=>{const _0x152dc1=_0x58a712,{range:_0x3728d7,sheetID:_0x42dd0e}=_0xdd075e,_0x309499=this[_0x152dc1(0x1bf)][_0x152dc1(0x17f)](_0x3728d7,_0x2dab05=>(_0x309499[_0x152dc1(0x136)](),_0x4bca29(_0x2dab05,_0x40e088,_0x42dd0e,_0x3728d7)));_0x110223['add'](_0x309499);});};this['disposeWithMe'](_0x20e0ba(this[_0x4fb1b4(0x102)][_0x4fb1b4(0x270)](()=>{_0x32587a();})));}['_toggleOnline'](){const _0x3e9d2f=_0x1711de;var _0x3856e4,_0x58927c;if(this[_0x3e9d2f(0x76)]=!0x0,((_0x3856e4=this['_univerInstanceService'][_0x3e9d2f(0x24e)]())==null?void 0x0:_0x3856e4['getUnitId']())!==this[_0x3e9d2f(0x14e)])return;const _0x36e009=(_0x58927c=this[_0x3e9d2f(0xbd)][_0x3e9d2f(0x12a)](_0x1efd31)[_0x3e9d2f(0x1c8)]())==null?void 0x0:_0x58927c[0x0],_0x45f2b8=this[_0x3e9d2f(0x1c1)][_0x3e9d2f(0x12f)](_0x432bba[_0x3e9d2f(0x250)])[_0x3e9d2f(0x276)]();_0x36e009&&_0x45f2b8&&this[_0x3e9d2f(0x156)](_0x45f2b8['getSheetId'](),_0x36e009);}['_toggleOffline'](){const _0x1ada5c=_0x1711de;this[_0x1ada5c(0x76)]=!0x1;}};ye=Bi([F(0x2,_0x7b53ac(_0x3f62bb)),F(0x3,_0x7b53ac(Ge)),F(0x4,_0x7b53ac(_0x1daa17)),F(0x5,_0x54d197),F(0x6,_0x22c686),F(0x7,_0x7b53ac(_0x1b6953))],ye);var Yi=Object[_0x1711de(0x24f)],Wi=(_0xeebbdb,_0x39c5d8,_0x1aedd0,_0x112aee)=>{const _0xd5bda7=_0x1711de;for(var _0xb630d3=_0x112aee>0x1?void 0x0:_0x112aee?Yi(_0x39c5d8,_0x1aedd0):_0x39c5d8,_0xe90d66=_0xeebbdb[_0xd5bda7(0x10b)]-0x1,_0x1f03db;_0xe90d66>=0x0;_0xe90d66--)(_0x1f03db=_0xeebbdb[_0xe90d66])&&(_0xb630d3=_0x1f03db(_0xb630d3)||_0xb630d3);return _0xb630d3;},pe=(_0x52f3f3,_0x23e2af)=>(_0x4e6922,_0x5def7b)=>_0x23e2af(_0x4e6922,_0x5def7b,_0x52f3f3);let Y=class extends _0x46e415{constructor(_0x51c77e,_0x21f53d,_0x195d78){const _0x924376=_0x1711de;super(),_(this,_0x924376(0xf1),new Map()),_(this,_0x924376(0x160),new _0x15a0c2()),(this['_univerInstanceService']=_0x51c77e,this[_0x924376(0xbd)]=_0x21f53d,this[_0x924376(0x1c9)]=_0x195d78,this[_0x924376(0xda)]());}['dispose'](){const _0x382aed=_0x1711de;super[_0x382aed(0x136)](),this[_0x382aed(0x160)]['complete'](),this[_0x382aed(0xf1)][_0x382aed(0x1ef)](_0x32e3ae=>_0x32e3ae[_0x382aed(0x136)]());}[_0x1711de(0x259)](_0x317a56){const _0x1726ea=_0x1711de;return this[_0x1726ea(0xf1)][_0x1726ea(0x185)](_0x317a56)?this[_0x1726ea(0xf1)][_0x1726ea(0x12a)](_0x317a56)['cursorInfo$']:this[_0x1726ea(0x160)][_0x1726ea(0xf9)](_0x5512a7(_0x347a8b=>_0x347a8b['unitID']===_0x317a56),_0x7602bf(_0x3cea5d=>_0x3cea5d[_0x1726ea(0x27b)]));}['_init'](){const _0x19e3d5=_0x1711de;this[_0x19e3d5(0x1c1)][_0x19e3d5(0x15e)](_0x432bba[_0x19e3d5(0x250)])[_0x19e3d5(0xf9)](_0x219c46(this[_0x19e3d5(0xdf)]))[_0x19e3d5(0x270)](async _0x152705=>{const _0xb56290=_0x19e3d5,_0x527f32=_0x152705[_0xb56290(0x1f1)](),_0x2fdc3f=await this[_0xb56290(0x1dc)](_0x527f32);this['_entityInit$'][_0xb56290(0x10d)](_0x2fdc3f),this[_0xb56290(0xf1)][_0xb56290(0x151)](_0x527f32,_0x2fdc3f);}),this[_0x19e3d5(0x1c1)][_0x19e3d5(0x15e)](_0x432bba[_0x19e3d5(0x21e)])[_0x19e3d5(0xf9)](_0x219c46(this[_0x19e3d5(0xdf)]))[_0x19e3d5(0xf9)](_0x5512a7(_0x4dc216=>!_0x4dc216['getUnitId']()[_0x19e3d5(0x111)]('__')))[_0x19e3d5(0x270)](async _0x5438a7=>{const _0x3ae478=_0x19e3d5,_0x41bbb2=_0x5438a7[_0x3ae478(0x1f1)](),_0x1de47d=await this['_startDocCollabCursor'](_0x41bbb2);this[_0x3ae478(0x160)][_0x3ae478(0x10d)](_0x1de47d),this[_0x3ae478(0xf1)][_0x3ae478(0x151)](_0x41bbb2,_0x1de47d);}),_0x5d3293(this[_0x19e3d5(0x1c1)]['getTypeOfUnitDisposed$'](_0x432bba['UNIVER_DOC']),this['_univerInstanceService'][_0x19e3d5(0x1d0)](_0x432bba['UNIVER_SHEET']))[_0x19e3d5(0xf9)](_0x219c46(this['dispose$']))['subscribe'](_0x2a0b05=>{const _0x457408=_0x19e3d5,_0x337c5b=_0x2a0b05[_0x457408(0x1f1)](),_0x267b59=this['_entities'][_0x457408(0x12a)](_0x337c5b);_0x267b59&&(_0x267b59['dispose'](),this[_0x457408(0xf1)][_0x457408(0x171)](_0x337c5b));});}async[_0x1711de(0x1dc)](_0x1dea5e){const _0x483f1e=_0x1711de,_0x19254e=await this[_0x483f1e(0x1c9)][_0x483f1e(0x17e)](_0x1dea5e),_0x3a43c3=this[_0x483f1e(0xbd)]['createInstance'](ye,_0x1dea5e,_0x19254e);return _0x3a43c3[_0x483f1e(0x18e)](),_0x3a43c3;}async[_0x1711de(0xb2)](_0x223ef1){const _0x1ecd19=_0x1711de,_0x24ee5f=await this[_0x1ecd19(0x1c9)]['requireSession'](_0x223ef1),_0x2afbab=this[_0x1ecd19(0xbd)][_0x1ecd19(0x212)](we,_0x223ef1,_0x24ee5f);return _0x2afbab[_0x1ecd19(0x18e)](),_0x2afbab;}};Y=Wi([pe(0x0,_0x54d197),pe(0x1,_0x7b53ac(_0x3f62bb)),pe(0x2,_0x7b53ac(_0x344ae3))],Y);const q=0x14,rt=0xc8,Oe=0x4,Vi=0x5;function ji(_0x573145,_0x42a8ca){const _0x4cd699=_0x1711de;let {radius:_0x2d3278,width:_0x2a29a9,height:_0x3f1f88}=_0x42a8ca;_0x2d3278=_0x2d3278!=null?_0x2d3278:0x0,_0x2a29a9=_0x2a29a9!=null?_0x2a29a9:0x1e,_0x3f1f88=_0x3f1f88!=null?_0x3f1f88:0x1e;let _0x4849ec=0x0,_0x3c785b=0x0,_0xac8438=0x0;_0x4849ec=_0x3c785b=_0xac8438=Math[_0x4cd699(0xac)](_0x2d3278,_0x2a29a9/0x2,_0x3f1f88/0x2),_0x573145['beginPath'](),_0x573145[_0x4cd699(0x213)](_0x4849ec,0x0),_0x573145[_0x4cd699(0x1de)](_0x2a29a9-_0x3c785b,0x0),_0x573145[_0x4cd699(0x107)](_0x2a29a9-_0x3c785b,_0x3c785b,_0x3c785b,Math['PI']*0x3/0x2,0x0,!0x1),_0x573145[_0x4cd699(0x1de)](_0x2a29a9,_0x3f1f88-_0xac8438),_0x573145[_0x4cd699(0x107)](_0x2a29a9-_0xac8438,_0x3f1f88-_0xac8438,_0xac8438,0x0,Math['PI']/0x2,!0x1),_0x573145[_0x4cd699(0x1de)](0x0,_0x3f1f88),_0x573145[_0x4cd699(0x1de)](0x0,_0x4849ec),_0x573145['arc'](_0x4849ec,_0x4849ec,_0x4849ec,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x573145[_0x4cd699(0xe6)](),_0x42a8ca[_0x4cd699(0x179)]&&(_0x573145[_0x4cd699(0x68)](),_0x573145[_0x4cd699(0xaa)]=_0x42a8ca[_0x4cd699(0x179)],_0x42a8ca[_0x4cd699(0x94)]===_0x4cd699(0x23d)?_0x573145['fill'](_0x4cd699(0x23d)):_0x573145['fill'](),_0x573145[_0x4cd699(0x148)]());}class Ie extends _0x48454c{constructor(_0x5ebddd,_0x3a5dd6){const _0x40f75b=_0x1711de;super(_0x5ebddd,_0x3a5dd6),_(this,_0x40f75b(0xd5)),_(this,_0x40f75b(0x12d)),(this[_0x40f75b(0xd5)]=_0x3a5dd6==null?void 0x0:_0x3a5dd6['color'],this[_0x40f75b(0x12d)]=_0x3a5dd6==null?void 0x0:_0x3a5dd6[_0x40f75b(0x12d)]);}static[_0x1711de(0x285)](_0x17b96e,_0x2d334d){const _0x515b17=_0x1711de,{text:_0x4e4881,color:_0x1e2139}=_0x2d334d;_0x17b96e[_0x515b17(0x68)](),_0x17b96e['font']=_0x515b17(0x245);const _0x4d94df=_0x17b96e[_0x515b17(0x100)](_0x4e4881)[_0x515b17(0x13f)],_0x29d56e=Math['min'](_0x4d94df+0x2*Oe,rt);ji(_0x17b96e,{'height':q,'radius':0x4,'width':_0x29d56e,'fill':_0x1e2139}),_0x17b96e[_0x515b17(0xaa)]='#FFF';const _0x23a476=Oe,_0x313ad0=q-Vi,_0x1f294e=rt-0x2*Oe;if(_0x4d94df>_0x1f294e){let _0x50a005='',_0x41abfa=0x0;for(const _0x33f95f of _0x4e4881){const _0x3205c5=_0x17b96e[_0x515b17(0x100)](_0x33f95f)[_0x515b17(0x13f)];if(_0x41abfa+_0x3205c5<=_0x1f294e-_0x17b96e[_0x515b17(0x100)]('...')[_0x515b17(0x13f)])_0x50a005+=_0x33f95f,_0x41abfa+=_0x3205c5;else{_0x50a005+='...';break;}}_0x17b96e[_0x515b17(0x1f7)](_0x50a005,_0x23a476,_0x313ad0);}else _0x17b96e[_0x515b17(0x1f7)](_0x4e4881,_0x23a476,_0x313ad0);_0x17b96e[_0x515b17(0x148)]();}['_draw'](_0x59ca95){const _0x195c87=_0x1711de;Ie[_0x195c87(0x285)](_0x59ca95,this);}}const Te='collab-text-anchor-',Xi=_0x1711de(0x227),Gi=_0x1711de(0x108),J=0x6,Ki=1.5,Ce=0x4,zi=1.5,Ji=_0x1711de(0x22a);class ot{constructor(_0x210233,_0x27bc36,_0x53af99,_0xc01464){const _0x36215e=_0x1711de;_(this,_0x36215e(0x74),[]),_(this,'_anchor',null),_(this,_0x36215e(0x1e8),null),_(this,_0x36215e(0x180),null),_(this,_0x36215e(0x13c),null),_(this,_0x36215e(0xff),null),(this[_0x36215e(0x248)]=_0x210233,this['_scene']=_0x27bc36,this[_0x36215e(0x8f)]=_0x53af99,this[_0x36215e(0x1e3)]=_0xc01464,this[_0x36215e(0x16f)]());}set[_0x1711de(0x159)](_0x16746b){const _0x4f40d2=_0x1711de;_0x16746b?(this[_0x4f40d2(0x180)]&&this[_0x4f40d2(0x180)][_0x4f40d2(0x29b)](),this[_0x4f40d2(0x1e8)]&&this[_0x4f40d2(0x1e8)][_0x4f40d2(0x1b8)]()):(this[_0x4f40d2(0x180)]&&this[_0x4f40d2(0x180)]['show'](),this[_0x4f40d2(0x1e8)]&&this[_0x4f40d2(0x1e8)][_0x4f40d2(0x29b)]());}[_0x1711de(0x136)](){const _0xa797b0=_0x1711de;for(const _0x45e975 of this[_0xa797b0(0x74)])_0x45e975[_0xa797b0(0x136)]();this['_textBubble']&&this[_0xa797b0(0x1e8)][_0xa797b0(0x136)](),this[_0xa797b0(0x180)]&&this['_anchorDot'][_0xa797b0(0x136)](),this[_0xa797b0(0x1d8)]&&this[_0xa797b0(0x1d8)][_0xa797b0(0x136)](),this[_0xa797b0(0xff)]&&this[_0xa797b0(0xff)]();}[_0x1711de(0x16f)](){const _0x1d1725=_0x1711de;var _0x169e73;const {_docSkeleton:_0x2dd79e,_document:_0x4d73e9}=this,{color:_0x333afd,name:_0x23ff09,ranges:_0xd787df}=this[_0x1d1725(0x248)],_0x3b802d=_0x4d73e9[_0x1d1725(0x12c)](),{docsLeft:_0x23179a,docsTop:_0x1408c8}=_0x3b802d,_0xa5f8ee=new _0x1b0c86(_0x3b802d,_0x2dd79e);for(const {startOffset:_0x234ba9,endOffset:_0x861064,rangeType:_0x110107,segmentId:_0x31598a,segmentPage:_0x1da28d,collapsed:_0x1d2301,isActive:_0x2c9168}of _0xd787df){const _0x48baf6=_0x2dd79e[_0x1d1725(0x193)](_0x234ba9,!0x0,_0x31598a,_0x1da28d);let _0x2e0061=_0x2dd79e[_0x1d1725(0x193)](_0x861064,!0x0,_0x31598a,_0x1da28d);if(_0x2e0061==null&&(_0x2e0061=_0x2dd79e['findNodePositionByCharIndex'](_0x861064-0x1,!0x1,_0x31598a,_0x1da28d)),_0x2c9168){const {contentBoxPointGroup:_0x4b48aa}=_0xa5f8ee[_0x1d1725(0x149)](_0x2e0061,_0x2e0061);if(_0x4b48aa[_0x1d1725(0x10b)]===0x0)continue;this['_drawAnchor'](_0x333afd,_0x4b48aa,_0x23179a,_0x1408c8,_0x23ff09),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x48baf6&&_0x2e0061){if(_0x110107===_0xd88b09[_0x1d1725(0xec)]){const _0xe3a637=new _0x1f4db6(_0x3b802d,_0x2dd79e),{pointGroup:_0x198991}=(_0x169e73=_0xe3a637[_0x1d1725(0x149)](_0x48baf6,_0x2e0061))!=null?_0x169e73:{};if(_0x198991==null||_0x198991[_0x1d1725(0x10b)]===0x0)continue;this[_0x1d1725(0x1fd)](_0x333afd,_0x198991,_0x23179a,_0x1408c8);}else{if(!_0x1d2301){const {borderBoxPointGroup:_0x44d636}=_0xa5f8ee[_0x1d1725(0x149)](_0x48baf6,_0x2e0061);if(_0x44d636[_0x1d1725(0x10b)]===0x0)continue;this[_0x1d1725(0x1a9)](_0x333afd,_0x44d636,_0x23179a,_0x1408c8);}}}}}[_0x1711de(0x155)](_0xf1ca53,_0xd81d6,_0x158e1f,_0x32ef07,_0x4a54c8){const _0x310425=_0x1711de,_0x12a11b=this[_0x310425(0x1ad)](_0xd81d6),{left:_0x4eab59,top:_0x28fba6,height:_0x43b975}=_0x12a11b,_0x284235=this[_0x310425(0xb6)](),_0x16e006=zi/_0x284235,_0x3fd1ff=new _0x15d285(Te+_0x2896ee(J),{'left':_0x4eab59+_0x158e1f-_0x16e006,'top':_0x28fba6+_0x32ef07,'height':_0x43b975,'width':Ki,'fill':_0xf1ca53||_0x2e43c1(_0x5a9755['black'],0x0),'strokeWidth':_0x16e006,'stroke':Ji,'evented':!0x0});this[_0x310425(0x1d8)]=_0x3fd1ff,this[_0x310425(0x287)]['addObject'](_0x3fd1ff,_0x5f242b);const _0x1de7c8=new _0x15d285(Te+_0x2896ee(J),{'left':_0x4eab59+_0x158e1f-_0x16e006,'top':_0x28fba6+_0x32ef07-Ce/0x2,'height':Ce,'width':Ce,'fill':_0xf1ca53||_0x2e43c1(_0x5a9755['black'],0x0),'strokeWidth':0x0,'stroke':_0xf1ca53||_0x2e43c1(_0x5a9755[_0x310425(0x89)],0x0),'evented':!0x1});this[_0x310425(0x180)]=_0x1de7c8,this[_0x310425(0x287)][_0x310425(0xc2)](_0x1de7c8,_0x5f242b);const _0x3b081f=new Ie(Te+_0x2896ee(J),{'left':_0x4eab59+_0x158e1f-_0x16e006,'top':_0x28fba6+_0x32ef07-q,'text':_0x4a54c8,'color':_0xf1ca53});this[_0x310425(0x1e8)]=_0x3b081f,this[_0x310425(0x287)][_0x310425(0xc2)](_0x3b081f,_0x5f242b),this[_0x310425(0x159)]=!0x1;}[_0x1711de(0xee)](){const _0x3aa6ac=_0x1711de,_0x3d4c5b=this[_0x3aa6ac(0x1d8)][_0x3aa6ac(0x197)]['subscribeEvent'](()=>{const _0x42df5c=_0x3aa6ac;this[_0x42df5c(0x159)]=!0x0;}),_0x29142e=this[_0x3aa6ac(0x1d8)]['onPointerLeave$'][_0x3aa6ac(0x1d9)](()=>{const _0x58f43b=_0x3aa6ac;this[_0x58f43b(0x13c)]&&clearTimeout(this['_hideTimer']),this[_0x58f43b(0x13c)]=setTimeout(()=>{const _0x305114=_0x58f43b;this[_0x305114(0x159)]=!0x1;},0x7d0);});return()=>{const _0x2a83f1=_0x3aa6ac;_0x3d4c5b[_0x2a83f1(0x1b2)](),_0x29142e[_0x2a83f1(0x1b2)]();};}[_0x1711de(0x1a9)](_0xa7ec1,_0x4b0584,_0x4acc6e,_0x11ffab){const _0x38d070=_0x1711de,_0x3cb23d=new _0x3f91ca(_0xa7ec1)[_0x38d070(0xb9)](0.2)[_0x38d070(0x21c)](),_0x696d5e=new _0x1eba98(Xi+_0x2896ee(J),{'pointsGroup':_0x4b0584,'fill':_0x3cb23d||_0x2e43c1(_0x5a9755[_0x38d070(0x89)],0.2),'left':_0x4acc6e,'top':_0x11ffab,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x38d070(0x205)](_0x696d5e),this[_0x38d070(0x287)][_0x38d070(0xc2)](_0x696d5e,_0x5f242b);}[_0x1711de(0x1fd)](_0x136eec,_0x342605,_0x24cbd9,_0x2f8035){const _0x4e52c5=_0x1711de,_0x5c361c=new _0x3f91ca(_0x136eec)[_0x4e52c5(0xb9)](0.2)['toRgbString'](),_0x4cc721=new _0x1eba98(Gi+_0x2896ee(J),{'pointsGroup':_0x342605,'fill':_0x5c361c||_0x2e43c1(_0x5a9755['black'],0.2),'left':_0x24cbd9,'top':_0x2f8035,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4e52c5(0x74)][_0x4e52c5(0x205)](_0x4cc721),this[_0x4e52c5(0x287)][_0x4e52c5(0xc2)](_0x4cc721,_0x5f242b);}[_0x1711de(0x1ad)](_0x6fb0cb){const _0xbc6207=_0x6fb0cb[0x0],_0x311526=_0xbc6207[0x0],_0x1c3f81=_0xbc6207[0x2],{x:_0x14dd60,y:_0x2ef850}=_0x311526,{x:_0x30bc00,y:_0x246fff}=_0x1c3f81;return{'left':_0x14dd60,'top':_0x2ef850,'width':_0x30bc00-_0x14dd60,'height':_0x246fff-_0x2ef850};}[_0x1711de(0xb6)](){const _0x193657=_0x1711de,{scaleX:_0x4456a5,scaleY:_0x546a53}=this[_0x193657(0x287)]['getAncestorScale']();return Math[_0x193657(0x1b5)](_0x4456a5,_0x546a53);}}var Zi=Object[_0x1711de(0x24f)],Qi=(_0x3ce7a1,_0x4a7048,_0x5c2c62,_0x49565c)=>{const _0x26b1bf=_0x1711de;for(var _0x16c3aa=_0x49565c>0x1?void 0x0:_0x49565c?Zi(_0x4a7048,_0x5c2c62):_0x4a7048,_0x478a02=_0x3ce7a1[_0x26b1bf(0x10b)]-0x1,_0x4aba9d;_0x478a02>=0x0;_0x478a02--)(_0x4aba9d=_0x3ce7a1[_0x478a02])&&(_0x16c3aa=_0x4aba9d(_0x16c3aa)||_0x16c3aa);return _0x16c3aa;},ne=(_0x31a3ec,_0x3f595d)=>(_0x35bee3,_0x55efc0)=>_0x3f595d(_0x35bee3,_0x55efc0,_0x31a3ec);let $e=class extends _0x46e415{constructor(_0x5553fe,_0x5751cf,_0x28c2ca,_0x2b7341,_0x547d70){const _0x326adb=_0x1711de;super(),_(this,'_cursorShapes',[]),_(this,'_cursors',[]),(this[_0x326adb(0xad)]=_0x5553fe,this[_0x326adb(0x246)]=_0x5751cf,this['_collabCursorController']=_0x28c2ca,this[_0x326adb(0x128)]=_0x2b7341,this[_0x326adb(0x138)]=_0x547d70,this['_init']());}[_0x1711de(0xda)](){const _0x451678=_0x1711de,_0x27ffc4=this[_0x451678(0xad)]['unitId'],_0x6d24a8=this['_docSkeletonManagerService'];this[_0x451678(0xa0)](_0x387d36([this[_0x451678(0x19d)]['getCollabCursors$'](_0x27ffc4),this[_0x451678(0x138)][_0x451678(0x1f8)]])[_0x451678(0xf9)](_0x395c27(([_0x33a8d6,_0x4c414d])=>({'skeleton':_0x6d24a8[_0x451678(0x123)](),'cursors':[..._0x33a8d6[_0x451678(0x289)]()]['flatMap'](_0x253c8e=>({..._0x253c8e,'color':this[_0x451678(0x138)]['getColorFromTheme'](_0x253c8e[_0x451678(0xd5)])}))})))['subscribe'](_0x7510cc=>{const _0x35df93=_0x451678;if(this[_0x35df93(0xa3)](),_0x7510cc){const {skeleton:_0x1df509,cursors:_0x42f895}=_0x7510cc;this[_0x35df93(0x172)](_0x1df509,_0x42f895);}})),this['_initResize'](),this[_0x451678(0x10c)]();}[_0x1711de(0x172)](_0x553af5,_0x547e7b){const _0x215f05=_0x1711de,{scene:_0x357adc,mainComponent:_0x1efa86}=this[_0x215f05(0xad)],_0xd48bb0=_0x547e7b[_0x215f05(0x208)](_0x42f671=>new ot(_0x42f671,_0x357adc,_0x553af5,_0x1efa86));this[_0x215f05(0x17d)]=_0xd48bb0,this[_0x215f05(0x7a)]=_0x547e7b;}[_0x1711de(0x129)](){const _0x1c2f31=_0x1711de;this[_0x1c2f31(0xa3)]();const {scene:_0x1803d3,mainComponent:_0x91b5a7}=this[_0x1c2f31(0xad)],_0xd62d5=this[_0x1c2f31(0x246)][_0x1c2f31(0x123)](),_0x42c3c4=this['_cursors']['map'](_0x3f1f8f=>new ot(_0x3f1f8f,_0x1803d3,_0xd62d5,_0x91b5a7));this[_0x1c2f31(0x17d)]=_0x42c3c4;}[_0x1711de(0xa3)](){const _0x1021dd=_0x1711de;this['_cursorShapes']['forEach'](_0x26f256=>_0x26f256[_0x1021dd(0x136)]()),this['_cursorShapes']=[];}[_0x1711de(0x10c)](){const _0x44fbf1=_0x1711de,_0x13a4d5=[_0x5607be['id']];this['disposeWithMe'](this[_0x44fbf1(0x128)][_0x44fbf1(0x21a)](_0x3b488f=>{const _0x5262dc=_0x44fbf1;_0x13a4d5[_0x5262dc(0x22c)](_0x3b488f['id'])&&_0x3b488f['params'][_0x5262dc(0x216)]===this[_0x5262dc(0xad)]['unitId']&&this['_refreshCollabCursors']();}));}[_0x1711de(0x6d)](){const _0x5cac91=_0x1711de;this[_0x5cac91(0xa0)](_0x3fc964(this[_0x5cac91(0xad)][_0x5cac91(0xfe)][_0x5cac91(0x20e)])[_0x5cac91(0xf9)](_0x5d5d8f(_0x407c70=>_0x407c70[_0x5cac91(0x6c)]===_0x43e218[_0x5cac91(0x29a)]),_0x5d71f6(0x10))['subscribe'](()=>{const _0xa5f213=_0x5cac91;this[_0xa5f213(0x129)]();}));}};$e=Qi([ne(0x1,_0x7b53ac(_0x1ffda2)),ne(0x2,_0x7b53ac(Y)),ne(0x3,_0x22c686),ne(0x4,_0x7b53ac(_0x50ac79))],$e);const qi=0x1,en=1.5;class tn extends _0x48454c{constructor(_0x3aaef2,_0x3ca831){const _0x1a8844=_0x1711de;super(_0x3aaef2,_0x3ca831),_(this,_0x1a8844(0xe4)),_(this,_0x1a8844(0x14d),!0x1),_(this,_0x1a8844(0x28c)),_(this,'_name',''),_(this,_0x1a8844(0x241),'top'),_(this,_0x1a8844(0x217)),(_0x3ca831&&this[_0x1a8844(0x8a)](_0x3ca831),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x1a8844(0x8a)]({'hovered':!0x0})),this[_0x1a8844(0x24d)][_0x1a8844(0x1d9)](()=>this[_0x1a8844(0x8a)]({'hovered':!0x1})));}[_0x1711de(0x8a)](_0x3d4cf9){const _0x5e1dfc=_0x1711de;var _0xa6614b,_0x150585,_0x10f99e,_0x134cbc,_0x1d0e43,_0xd4f0c2;this[_0x5e1dfc(0xe4)]=(_0xa6614b=_0x3d4cf9[_0x5e1dfc(0xd5)])!=null?_0xa6614b:this[_0x5e1dfc(0xe4)],this[_0x5e1dfc(0x14d)]=(_0x150585=_0x3d4cf9[_0x5e1dfc(0x135)])!=null?_0x150585:this[_0x5e1dfc(0x14d)],this[_0x5e1dfc(0x28c)]=(_0x10f99e=_0x3d4cf9['range'])!=null?_0x10f99e:this[_0x5e1dfc(0x28c)],this[_0x5e1dfc(0x67)]=(_0x134cbc=_0x3d4cf9[_0x5e1dfc(0x8c)])!=null?_0x134cbc:this['_name'],this['_labelPosition']=(_0x1d0e43=_0x3d4cf9['labelPosition'])!=null?_0x1d0e43:this[_0x5e1dfc(0x241)],this['_backgroundColor']=(_0xd4f0c2=_0x3d4cf9[_0x5e1dfc(0x81)])!=null?_0xd4f0c2:this['_backgroundColor'],this[_0x5e1dfc(0x234)]({'width':_0x3d4cf9[_0x5e1dfc(0x13f)],'height':_0x3d4cf9[_0x5e1dfc(0x282)]});}[_0x1711de(0x281)](_0x7c8c4){const _0x1d6b52=_0x1711de,{row:_0x4952a4,column:_0x10bfe1}=_0x7c8c4;if(_0x4952a4>=this['_range'][_0x1d6b52(0x114)]&&_0x4952a4<=this[_0x1d6b52(0x28c)][_0x1d6b52(0x223)]&&_0x10bfe1>=this[_0x1d6b52(0x28c)][_0x1d6b52(0x190)]&&_0x10bfe1<=this[_0x1d6b52(0x28c)]['endColumn']){this[_0x1d6b52(0x8a)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x1711de(0x1b0)](_0x97d004){return!0x1;}[_0x1711de(0x264)](_0x4fb797){const _0x1be22e=_0x1711de;_0x15d285[_0x1be22e(0x285)](_0x4fb797,{'width':this[_0x1be22e(0x13f)],'height':this[_0x1be22e(0x282)],'strokeWidth':en,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x1be22e(0x217)]}),this[_0x1be22e(0x14d)]&&(_0x4fb797[_0x1be22e(0x68)](),_0x4fb797['transform'](0x1,0x0,0x0,0x1,this[_0x1be22e(0x13f)],this[_0x1be22e(0x241)]==='bottom'?0x0:-q),Ie[_0x1be22e(0x285)](_0x4fb797,{'text':this[_0x1be22e(0x67)],'color':this['_color']}),_0x4fb797[_0x1be22e(0x148)]());}}var sn=Object[_0x1711de(0x24f)],nn=(_0x1b5f26,_0x475fc9,_0x34023d,_0x34bfb4)=>{const _0x2f60e2=_0x1711de;for(var _0x252f42=_0x34bfb4>0x1?void 0x0:_0x34bfb4?sn(_0x475fc9,_0x34023d):_0x475fc9,_0x4f86f8=_0x1b5f26[_0x2f60e2(0x10b)]-0x1,_0x205198;_0x4f86f8>=0x0;_0x4f86f8--)(_0x205198=_0x1b5f26[_0x4f86f8])&&(_0x252f42=_0x205198(_0x252f42)||_0x252f42);return _0x252f42;},Re=(_0xebc645,_0x34533b)=>(_0x56565a,_0x3884e0)=>_0x34533b(_0x56565a,_0x3884e0,_0xebc645);const rn=0x1389;let xe=class extends _0x46e415{constructor(_0x4f1b65,_0x185158,_0xb1f2dc,_0x2da568){const _0x5eb3b4=_0x1711de;super(),_(this,_0x5eb3b4(0x7a),new Set()),_(this,_0x5eb3b4(0x206),null),(this[_0x5eb3b4(0xad)]=_0x4f1b65,this['_sheetSkeletonManagerService']=_0x185158,this['_collabCursorController']=_0xb1f2dc,this[_0x5eb3b4(0x138)]=_0x2da568,this[_0x5eb3b4(0xda)]());}['_init'](){const _0x3827dd=_0x1711de;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x3827dd(0xf9)](_0x323642(this['dispose$']),_0x21f469(_0x4f8266=>{const _0x18a7cf=_0x3827dd;if(_0x4f8266){const _0x2785bc=_0x4f8266['sheetId'];return _0x387d36(this[_0x18a7cf(0x19d)]['getCollabCursors$'](this['_context']['unitId']),this[_0x18a7cf(0x138)][_0x18a7cf(0x1f8)])[_0x18a7cf(0xf9)](_0x395c27(([_0x4abc34,_0x244ccd])=>{const _0x213736=new Map();return _0x4abc34['forEach']((_0x320712,_0x4d87c1)=>{const _0x512acd=_0xf036;if(_0x320712['sheetID']===_0x2785bc){const _0x4f96f4={..._0x320712};_0x4f96f4[_0x512acd(0xd5)]=this['_themeService'][_0x512acd(0x13e)](_0x320712[_0x512acd(0xd5)]),_0x213736['set'](_0x4d87c1,_0x4f96f4);}}),{'skeleton':_0x4f8266,'cursors':_0x213736};}));}return _0x36e9fe({'skeleton':null,'cursors':new Map()});}))[_0x3827dd(0x270)](({skeleton:_0x24b808,cursors:_0x5ef6a6})=>{const _0x3edd49=_0x3827dd;this[_0x3edd49(0xa3)](),_0x24b808&&this[_0x3edd49(0x172)](_0x24b808,_0x5ef6a6);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x3827dd(0x270)](_0xf2da18=>{const _0x39574d=_0x3827dd;if(_0xf2da18==null)return;const {skeleton:_0x5b7f0c}=_0xf2da18,{scene:_0x372d8f}=this[_0x39574d(0xad)];_0x372d8f[_0x39574d(0x283)][_0x39574d(0x1d9)](_0x5b9bbb(_0x21c8be=>{const _0x3b06b5=_0x39574d;var _0x6d213d,_0x474042;const {offsetX:_0xd85373,offsetY:_0x415dbe}=_0x21c8be,{x:_0x4fab47,y:_0x459913}=_0x372d8f[_0x3b06b5(0x15f)](_0x6e489b[_0x3b06b5(0x105)]([_0xd85373,_0x415dbe])),{scaleX:_0x2c1dac,scaleY:_0xae9532}=_0x372d8f[_0x3b06b5(0x23e)](),_0x302097=_0x372d8f['getViewport'](_0x433b8e['VIEW_MAIN']),_0x1ad339=_0x372d8f[_0x3b06b5(0xa4)](_0x6e489b[_0x3b06b5(0x105)]([_0x4fab47,_0x459913]),_0x302097),_0xebbd41=_0x5b7f0c[_0x3b06b5(0x1be)](_0xd85373,_0x415dbe,_0x2c1dac,_0xae9532,_0x1ad339);((_0x6d213d=this[_0x3b06b5(0x206)])==null?void 0x0:_0x6d213d['column'])===_0xebbd41['column']&&((_0x474042=this[_0x3b06b5(0x206)])==null?void 0x0:_0x474042[_0x3b06b5(0x169)])===_0xebbd41['row']||this[_0x3b06b5(0x7a)][_0x3b06b5(0x1ef)](_0x245106=>{const _0x15f89d=_0x3b06b5;_0x245106[_0x15f89d(0x281)](_0xebbd41);});},0x64));});}[_0x1711de(0x172)](_0x4bc225,_0x23ff52){const _0x2a8350=_0x1711de;var _0x2eece5;const _0x24bae4=(_0x2eece5=this[_0x2a8350(0x1da)][_0x2a8350(0xf6)]())==null?void 0x0:_0x2eece5[_0x2a8350(0x134)];if(!_0x24bae4)return;const _0x1ea856=this[_0x2a8350(0x202)]();if(!_0x1ea856)return;this[_0x2a8350(0x7a)][_0x2a8350(0x1ef)](_0x297831=>{_0x297831['makeDirty']();});const {scene:_0x26aa1c}=_0x1ea856,_0x29f72c=on(Array['from'](_0x23ff52[_0x2a8350(0x289)]()))['map'](_0x340cd2=>{const _0x230616=_0x2a8350,{color:_0x3bbbac,range:_0x5decb2,name:_0x413184,selection:_0x3545bc,sheetID:_0x2b701}=_0x340cd2,{startColumn:_0x4b7ae4,startRow:_0x3934cd,endColumn:_0x24fc28,endRow:_0x41caea}=_0x5decb2,_0x2e9354=_0x8febeb(_0x3934cd,_0x4b7ae4,_0x26aa1c,_0x24bae4),_0x1a3d90=_0x8febeb(_0x41caea,_0x24fc28,_0x26aa1c,_0x24bae4),{columnHeaderHeightAndMarginTop:_0x337a50}=_0x24bae4,{startX:_0x336f99,startY:_0x19ef87}=_0x2e9354,{endX:_0x264410,endY:_0x304701}=_0x1a3d90,_0x505c0f=_0x264410-_0x336f99,_0x417b44=_0x304701-_0x19ef87,_0x2cb58b={'labelPosition':_0x19ef87-_0x337a50>=q?'top':_0x230616(0x16a),'sheetID':_0x2b701,'range':_0x5decb2,'color':_0x3bbbac,'name':_0x413184,'selection':_0x3545bc,'left':_0x336f99,'top':_0x19ef87,'width':_0x505c0f,'height':_0x417b44,'evented':!0x1,'zIndex':rn};return new tn(_0x413184,_0x2cb58b);});_0x26aa1c['addObjects'](_0x29f72c,qi),this['_cursors']=new Set(_0x29f72c);}[_0x1711de(0xa3)](){const _0x3b6a09=_0x1711de;var _0x8e2c66;(_0x8e2c66=this[_0x3b6a09(0x7a)])==null||_0x8e2c66[_0x3b6a09(0x1ef)](_0x4466f8=>_0x4466f8[_0x3b6a09(0x136)]());}[_0x1711de(0x202)](){const _0x16afa3=_0x1711de;return _0x4a8d1a(this[_0x16afa3(0xad)][_0x16afa3(0x161)],this['_context']);}};xe=nn([Re(0x1,_0x7b53ac(_0x430913)),Re(0x2,_0x7b53ac(Y)),Re(0x3,_0x7b53ac(_0x50ac79))],xe);function on(_0x41276d){const _0x59cf6e=_0x1711de,_0x30c1ea=new Map();return _0x41276d[_0x59cf6e(0x1ef)](_0x1addeb=>{const _0x27b403=_0x59cf6e;if(_0x30c1ea['has'](_0x1addeb[_0x27b403(0x168)])){const _0x27a9eb=_0x30c1ea[_0x27b403(0x12a)](_0x1addeb[_0x27b403(0x168)]);_0x27a9eb['name']+=',\x20'+_0x1addeb[_0x27b403(0x8c)];}else _0x30c1ea[_0x27b403(0x151)](_0x1addeb[_0x27b403(0x168)],_0x1addeb);}),Array[_0x59cf6e(0x154)](_0x30c1ea[_0x59cf6e(0x289)]());}var an=Object[_0x1711de(0x24f)],cn=(_0x194e56,_0x58f475,_0x53b351,_0x4cbd19)=>{const _0x48c0d3=_0x1711de;for(var _0x1e587e=_0x4cbd19>0x1?void 0x0:_0x4cbd19?an(_0x58f475,_0x53b351):_0x58f475,_0x30c855=_0x194e56[_0x48c0d3(0x10b)]-0x1,_0x366864;_0x30c855>=0x0;_0x30c855--)(_0x366864=_0x194e56[_0x30c855])&&(_0x1e587e=_0x366864(_0x1e587e)||_0x1e587e);return _0x1e587e;},k=(_0x2a7550,_0x455f3d)=>(_0x3ffe5c,_0x488d10)=>_0x455f3d(_0x3ffe5c,_0x488d10,_0x2a7550);let le=class extends _0x50b6bd{constructor(_0x24bc6c,_0x18ef4a,_0x3a3a8b,_0x32d400,_0xb6d29a,_0x268107){const _0x228002=_0x1711de;super(),this[_0x228002(0x207)]=_0x24bc6c,this[_0x228002(0x1e0)]=_0x18ef4a,this[_0x228002(0x110)]=_0x3a3a8b,this['_messageService']=_0x32d400,this[_0x228002(0xf7)]=_0xb6d29a,this[_0x228002(0xf3)]=_0x268107,this[_0x228002(0x101)](),this['_initEvent']();}[_0x1711de(0x101)](){const _0x34c8ae=_0x1711de;this[_0x34c8ae(0xa0)](this[_0x34c8ae(0x207)][_0x34c8ae(0x237)](()=>{const _0x2ca2a3=_0x34c8ae;if(this[_0x2ca2a3(0x1e0)][_0x2ca2a3(0x1f0)]['size'])return this[_0x2ca2a3(0xf3)]['t'](_0x2ca2a3(0x1d6));}));}[_0x1711de(0xf8)](){const _0x21c325=_0x1711de;this[_0x21c325(0xa0)](this[_0x21c325(0x110)][_0x21c325(0x1d1)][_0x21c325(0x270)](_0x49fc33=>{const _0x345d92=_0x21c325;_0x49fc33['id']===_0x482e2b['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x345d92(0x1b8)]({'type':_0x4c0c70[_0x345d92(0x26d)],'content':this['_localeService']['t'](_0x345d92(0xb4))}),_0x49fc33['id']===_0x482e2b[_0x345d92(0x1c0)]&&this[_0x345d92(0x97)][_0x345d92(0x1b8)]({'type':_0x4c0c70[_0x345d92(0x26d)],'content':this[_0x345d92(0xf3)]['t'](_0x345d92(0x87))}),_0x49fc33['id']===_0x482e2b[_0x345d92(0x1cf)]&&this[_0x345d92(0xf7)]['show']({'title':this['_localeService']['t'](_0x345d92(0x240)),'content':this[_0x345d92(0xf3)]['t'](_0x345d92(0x1d3)),'type':_0x345d92(0x258),'duration':0x0}),_0x49fc33['id']===_0x482e2b[_0x345d92(0x69)]&&this[_0x345d92(0x97)][_0x345d92(0x1b8)]({'type':_0x4c0c70[_0x345d92(0xbc)],'content':this[_0x345d92(0xf3)]['t'](_0x345d92(0x87))+'('+_0x49fc33[_0x345d92(0x1a4)]+')'}),_0x49fc33['id']===_0x482e2b[_0x345d92(0x13a)]&&this['_messageService'][_0x345d92(0x1b8)]({'type':_0x4c0c70[_0x345d92(0x26d)],'content':this['_localeService']['t'](_0x49fc33['data']||'')}),_0x49fc33['id']===_0x482e2b[_0x345d92(0x18c)]&&this['_messageService']['show']({'type':_0x4c0c70['Warning'],'content':this[_0x345d92(0xf3)]['t'](_0x345d92(0x211))}),_0x49fc33['id']===_0x482e2b[_0x345d92(0xb0)]&&this['_messageService']['show']({'type':_0x4c0c70[_0x345d92(0xbc)],'content':this[_0x345d92(0xf3)]['t'](_0x345d92(0x1c7))}),_0x49fc33['id']===_0x482e2b['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x345d92(0x97)][_0x345d92(0x1b8)]({'type':_0x4c0c70[_0x345d92(0xbc)],'content':this['_localeService']['t'](_0x345d92(0x1ed))});}));}};le=cn([k(0x0,_0x467fde),k(0x1,_0x424de6),k(0x2,_0x7b53ac(_0x19e51b)),k(0x3,_0x548240),k(0x4,_0x37887a),k(0x5,_0x7b53ac(_0xcc52b6))],le);const ln=_0x1711de(0x8e),at={};var _n=Object[_0x1711de(0x24f)],hn=(_0x4472e9,_0x2b04ee,_0x567014,_0x4d73d9)=>{for(var _0x2aaf1b=_0x4d73d9>0x1?void 0x0:_0x4d73d9?_n(_0x2b04ee,_0x567014):_0x2b04ee,_0xe05912=_0x4472e9['length']-0x1,_0x33afac;_0xe05912>=0x0;_0xe05912--)(_0x33afac=_0x4472e9[_0xe05912])&&(_0x2aaf1b=_0x33afac(_0x2aaf1b)||_0x2aaf1b);return _0x2aaf1b;},ct=(_0x1edea3,_0x525f73)=>(_0x472457,_0x5d0e9d)=>_0x525f73(_0x472457,_0x5d0e9d,_0x1edea3);let _e=class{constructor(_0x4bb30d,_0x26ee00){const _0x2bf7ad=_0x1711de;this[_0x2bf7ad(0x85)]=_0x4bb30d,this[_0x2bf7ad(0x144)]=_0x26ee00;}[_0x1711de(0x251)](_0x404cf3){const _0x37a7aa=_0x1711de;this[_0x37a7aa(0x27d)](_0x404cf3),this['_transformPreviousActiveRange'](_0x404cf3);}[_0x1711de(0x15a)](_0x408bfc){const _0x26ba2f=_0x1711de,{unitID:_0x47d373}=_0x408bfc,_0x54f64d=this['_renderManagerService'][_0x26ba2f(0x16b)](_0x47d373)[_0x26ba2f(0x182)](_0x395d26),{redoCache:_0x4938fc}=_0x54f64d['getUndoRedoMutationParamsCache']();if(_0x4938fc[_0x26ba2f(0x10b)]===0x0)return _0x408bfc;let _0x68c93=_0x3d4b34[_0x26ba2f(0x221)](_0x408bfc[_0x26ba2f(0xab)][0x0]);for(let _0x5202b3=0x0;_0x5202b3<_0x4938fc[_0x26ba2f(0x10b)];_0x5202b3++){const _0xfdd95={'id':_0x26ba2f(0x1a0),'params':{..._0x4938fc[_0x5202b3]}},_0x33d332=this[_0x26ba2f(0x85)][_0x26ba2f(0xb7)](_0x68c93,_0xfdd95,!0x1);if(_0x1a68ef(_0x33d332))throw _0x33d332[_0x26ba2f(0x258)];_0x68c93=_0x33d332['m1Prime'];}return{..._0x3d4b34[_0x26ba2f(0x221)](_0x408bfc),'mutations':[_0x68c93]};}[_0x1711de(0x27d)](_0x313249){const _0x175bde=_0x1711de,{unitID:_0x308d49}=_0x313249,_0x16c4d0=this[_0x175bde(0x144)][_0x175bde(0x16b)](_0x308d49)[_0x175bde(0x182)](_0x395d26),{undoCache:_0x5662ff,redoCache:_0x1242e5}=_0x16c4d0[_0x175bde(0x165)]();if(_0x5662ff[_0x175bde(0x10b)]===0x0||_0x1242e5[_0x175bde(0x10b)]===0x0)return;const _0x42ad92=[],_0x263b77=[];let _0x54e5f5=_0x3d4b34['deepClone'](_0x313249[_0x175bde(0xab)][0x0]),_0x2cb740=_0x3d4b34[_0x175bde(0x221)](_0x313249[_0x175bde(0xab)][0x0]);for(let _0x3c1777=_0x5662ff[_0x175bde(0x10b)]-0x1;_0x3c1777>=0x0;_0x3c1777--){const _0x2c16b6={'id':'doc.mutation.rich-text-editing','params':{..._0x5662ff[_0x3c1777]}},_0x3cd14e={'id':_0x175bde(0x1a0),'params':{..._0x1242e5[_0x3c1777]}},_0x2510ad=this[_0x175bde(0x85)]['transformMutation'](_0x54e5f5,_0x2c16b6,!0x1),_0x476b0c=this[_0x175bde(0x85)]['transformMutation'](_0x2cb740,_0x3cd14e,!0x1);if(_0x1a68ef(_0x2510ad))throw _0x2510ad[_0x175bde(0x258)];if(_0x1a68ef(_0x476b0c))throw _0x476b0c[_0x175bde(0x258)];_0x42ad92['unshift'](_0x2510ad[_0x175bde(0x279)][_0x175bde(0x9e)]),_0x263b77[_0x175bde(0x122)](_0x476b0c[_0x175bde(0x279)][_0x175bde(0x9e)]),_0x54e5f5=_0x2510ad[_0x175bde(0xbf)],_0x2cb740=_0x476b0c[_0x175bde(0xbf)];}_0x16c4d0[_0x175bde(0x6e)]({'undoCache':_0x42ad92,'redoCache':_0x263b77});}[_0x1711de(0x184)](_0x1d5ca4){const _0x34d694=_0x1711de,{unitID:_0x4dc3e3}=_0x1d5ca4,_0x48d948=this[_0x34d694(0x144)][_0x34d694(0x16b)](_0x4dc3e3)[_0x34d694(0x182)](_0x395d26),_0x4691e3=_0x48d948['getActiveRange']();if(_0x4691e3==null)return;const _0x6ed5fa=[{'id':_0x34d694(0x1a0),'params':{'unitId':_0x1d5ca4[_0x34d694(0x14e)],'actions':null,'textRanges':[_0x4691e3]}}],_0x45c0a0=this[_0x34d694(0x85)][_0x34d694(0x1ab)](_0x1d5ca4,_0x6ed5fa);if(!_0x5ed451(_0x45c0a0))throw _0x45c0a0[_0x34d694(0x258)];const _0x129e9b=_0x45c0a0[_0x34d694(0x279)][0x0][_0x34d694(0x9e)][_0x34d694(0x6a)];Array['isArray'](_0x129e9b)&&_0x129e9b[_0x34d694(0x10b)]&&_0x48d948[_0x34d694(0x167)](_0x129e9b[0x0]);}};_e=hn([ct(0x0,_0x4ed100),ct(0x1,_0xe6e859)],_e);var un=Object['getOwnPropertyDescriptor'],dn=(_0xbfe14c,_0x32733d,_0x4f5bb5,_0xfe8fa)=>{const _0x59d2d4=_0x1711de;for(var _0x2dbd4d=_0xfe8fa>0x1?void 0x0:_0xfe8fa?un(_0x32733d,_0x4f5bb5):_0x32733d,_0x252839=_0xbfe14c[_0x59d2d4(0x10b)]-0x1,_0x25b96e;_0x252839>=0x0;_0x252839--)(_0x25b96e=_0xbfe14c[_0x252839])&&(_0x2dbd4d=_0x25b96e(_0x2dbd4d)||_0x2dbd4d);return _0x2dbd4d;},De=(_0x1007f2,_0x1ec54b)=>(_0x2fb3d9,_0x499671)=>_0x1ec54b(_0x2fb3d9,_0x499671,_0x1007f2);let he=class{constructor(_0x23950e,_0x4f34d9,_0x37dc65){const _0x4e1b24=_0x1711de;this[_0x4e1b24(0xbd)]=_0x23950e,this['_transformService']=_0x4f34d9,this[_0x4e1b24(0xed)]=_0x37dc65;}[_0x1711de(0xd2)](_0x26c68e){const _0x2d71a4=_0x1711de;this[_0x2d71a4(0x132)](_0x26c68e);}['transformRemoteChangeset'](_0xaa28ce){const _0x124c93=_0x1711de,{unitID:_0x399bd8}=_0xaa28ce,{collaboration:_0x107132}=this[_0x124c93(0xed)][_0x124c93(0xcb)](_0x399bd8);if(_0x107132[_0x124c93(0x10b)]===0x0)return _0xaa28ce;let _0x31acba=_0x3d4b34[_0x124c93(0x221)](_0xaa28ce[_0x124c93(0xab)][0x0]);for(let _0xe10e27=0x0;_0xe10e27<_0x107132[_0x124c93(0x10b)];_0xe10e27++){const _0xea5dee={'id':_0x124c93(0x1a0),'params':{'unitId':_0x107132[_0xe10e27][_0x124c93(0x216)],..._0x107132[_0xe10e27][_0x124c93(0xbb)]}},_0x4860bb=this[_0x124c93(0x85)][_0x124c93(0xb7)](_0x31acba,_0xea5dee,!0x1);if(_0x1a68ef(_0x4860bb))throw _0x4860bb[_0x124c93(0x258)];_0x31acba=_0x4860bb[_0x124c93(0xbf)];}return{..._0x3d4b34[_0x124c93(0x221)](_0xaa28ce),'mutations':[_0x31acba]};}[_0x1711de(0x132)](_0x1636b0){const _0x530c34=_0x1711de,{unitID:_0x845206}=_0x1636b0,{history:_0x416d74,collaboration:_0x473099}=this[_0x530c34(0xed)]['getStateCache'](_0x845206);if(_0x416d74[_0x530c34(0x10b)]===0x0&&_0x473099[_0x530c34(0x10b)]===0x0)return;const _0x4d7cc8=[],_0x14b3cc=[];let _0x43dfb5=_0x3d4b34['deepClone'](_0x1636b0[_0x530c34(0xab)][0x0]),_0x288aa4=_0x3d4b34[_0x530c34(0x221)](_0x1636b0['mutations'][0x0]);for(let _0x1b3328=_0x416d74['length']-0x1;_0x1b3328>=0x0;_0x1b3328--){const _0x2426bc={'id':_0x530c34(0x1a0),'params':{'unitId':_0x416d74[_0x1b3328][_0x530c34(0x216)],..._0x416d74[_0x1b3328][_0x530c34(0x12e)]}},_0x545636={'id':_0x530c34(0x1a0),'params':{'unitId':_0x416d74[_0x1b3328]['unitId'],..._0x416d74[_0x1b3328][_0x530c34(0xbb)]}},_0x3e403a=this[_0x530c34(0x85)][_0x530c34(0xb7)](_0x43dfb5,_0x2426bc,!0x1),_0x4e73db=this[_0x530c34(0x85)][_0x530c34(0xb7)](_0x288aa4,_0x545636,!0x1);if(_0x1a68ef(_0x3e403a))throw _0x3e403a[_0x530c34(0x258)];if(_0x1a68ef(_0x4e73db))throw _0x4e73db[_0x530c34(0x258)];_0x4d7cc8[_0x530c34(0x122)]({..._0x416d74[_0x1b3328],'undoState':_0x3e403a[_0x530c34(0x279)][_0x530c34(0x9e)],'redoState':_0x4e73db[_0x530c34(0x279)]['params']}),_0x43dfb5=_0x3e403a['m1Prime'],_0x288aa4=_0x4e73db[_0x530c34(0xbf)];}_0x43dfb5=_0x3d4b34['deepClone'](_0x1636b0[_0x530c34(0xab)][0x0]),_0x288aa4=_0x3d4b34[_0x530c34(0x221)](_0x1636b0[_0x530c34(0xab)][0x0]);for(let _0x4acf03=_0x473099[_0x530c34(0x10b)]-0x1;_0x4acf03>=0x0;_0x4acf03--){const _0x4d3955={'id':_0x530c34(0x1a0),'params':{'unitId':_0x473099[_0x4acf03][_0x530c34(0x216)],..._0x473099[_0x4acf03]['undoState']}},_0x41cd55={'id':_0x530c34(0x1a0),'params':{'unitId':_0x473099[_0x4acf03][_0x530c34(0x216)],..._0x473099[_0x4acf03]['redoState']}},_0x4098f9=this[_0x530c34(0x85)][_0x530c34(0xb7)](_0x43dfb5,_0x4d3955,!0x1),_0x36ec5d=this[_0x530c34(0x85)]['transformMutation'](_0x288aa4,_0x41cd55,!0x1);if(_0x1a68ef(_0x4098f9))throw _0x4098f9[_0x530c34(0x258)];if(_0x1a68ef(_0x36ec5d))throw _0x36ec5d[_0x530c34(0x258)];_0x14b3cc[_0x530c34(0x122)]({..._0x473099[_0x4acf03],'undoState':_0x4098f9[_0x530c34(0x279)]['params'],'redoState':_0x36ec5d[_0x530c34(0x279)][_0x530c34(0x9e)]}),_0x43dfb5=_0x4098f9['m1Prime'],_0x288aa4=_0x36ec5d[_0x530c34(0xbf)];}this[_0x530c34(0xed)][_0x530c34(0x13b)](_0x845206,{'history':_0x4d7cc8,'collaboration':_0x14b3cc});}};he=dn([De(0x0,_0x7b53ac(_0x3f62bb)),De(0x1,_0x4ed100),De(0x2,_0x7b53ac(_0x1f9a31))],he);var fn=Object['getOwnPropertyDescriptor'],Sn=(_0x361891,_0x2c9d9c,_0x46d2ff,_0x5e1fa9)=>{const _0x586d73=_0x1711de;for(var _0x384462=_0x5e1fa9>0x1?void 0x0:_0x5e1fa9?fn(_0x2c9d9c,_0x46d2ff):_0x2c9d9c,_0x5a2e0f=_0x361891[_0x586d73(0x10b)]-0x1,_0x2da30f;_0x5a2e0f>=0x0;_0x5a2e0f--)(_0x2da30f=_0x361891[_0x5a2e0f])&&(_0x384462=_0x2da30f(_0x384462)||_0x384462);return _0x384462;},lt=(_0x2db694,_0x4875f3)=>(_0x1749fe,_0x1243cd)=>_0x4875f3(_0x1749fe,_0x1243cd,_0x2db694);let ue=class{constructor(_0x3d7e81,_0x313aae){const _0x47679e=_0x1711de;this[_0x47679e(0xbd)]=_0x3d7e81,this[_0x47679e(0x85)]=_0x313aae;}[_0x1711de(0x1bd)](_0x498cc9){const _0x35d9d1=_0x1711de;var _0x415048;const _0x30602e=this[_0x35d9d1(0xbd)][_0x35d9d1(0x12a)](_0x2fa8e8),_0x33b072=(_0x415048=_0x30602e[_0x35d9d1(0x17a)]())!=null?_0x415048:[];if(_0x33b072[_0x35d9d1(0x10b)]===0x0)return;const _0x458f04=_0x498cc9[_0x35d9d1(0x14e)],_0x53918a=[{'id':_0x35d9d1(0x1a0),'params':{'unitId':_0x458f04,'actions':null,'textRanges':_0x33b072}}],_0x23713e=this[_0x35d9d1(0x85)][_0x35d9d1(0x1ab)](_0x498cc9,_0x53918a);if(!_0x5ed451(_0x23713e))throw _0x23713e[_0x35d9d1(0x258)];const _0x387044=_0x23713e[_0x35d9d1(0x279)][0x0]['params'][_0x35d9d1(0x6a)];Array[_0x35d9d1(0xd1)](_0x387044)&&_0x387044[_0x35d9d1(0x10b)]&&_0x30602e[_0x35d9d1(0xdd)](_0x387044,{'unitId':_0x458f04,'subUnitId':_0x458f04},!0x1);}};ue=Sn([lt(0x0,_0x7b53ac(_0x3f62bb)),lt(0x1,_0x4ed100)],ue);var mn=Object[_0x1711de(0x24f)],In=(_0x3e0764,_0x571fe9,_0x4cd47f,_0x324761)=>{const _0x31be37=_0x1711de;for(var _0x303d07=_0x324761>0x1?void 0x0:_0x324761?mn(_0x571fe9,_0x4cd47f):_0x571fe9,_0x3df601=_0x3e0764[_0x31be37(0x10b)]-0x1,_0x56471c;_0x3df601>=0x0;_0x3df601--)(_0x56471c=_0x3e0764[_0x3df601])&&(_0x303d07=_0x56471c(_0x303d07)||_0x303d07);return _0x303d07;},U=(_0x55912f,_0x2c603e)=>(_0x18fce6,_0x48543b)=>_0x2c603e(_0x18fce6,_0x48543b,_0x55912f);let de=class extends _0x50b6bd{constructor(_0x77544b,_0x30d605,_0x107a94,_0x99f6b9,_0x155f77,_0x76c290,_0x56ae6e,_0x1b8c9b){const _0x18d1ff=_0x1711de;super(),_(this,_0x18d1ff(0x1f2),new _0xc9ceb(_0x2403e1[_0x18d1ff(0x29e)])),(this[_0x18d1ff(0xed)]=_0x77544b,this['_collaborationController']=_0x30d605,this['_docTransformIMECacheService']=_0x107a94,this['_docTransformStateCacheService']=_0x99f6b9,this[_0x18d1ff(0x235)]=_0x155f77,this[_0x18d1ff(0x86)]=_0x76c290,this[_0x18d1ff(0x97)]=_0x56ae6e,this[_0x18d1ff(0xf3)]=_0x1b8c9b,this[_0x18d1ff(0x11e)]());}[_0x1711de(0x11e)](){const _0x1b1700=_0x1711de;this['disposeWithMe'](this['_collaborationController'][_0x1b1700(0x90)][_0x1b1700(0x270)](_0x3804e5=>{const _0x56be19=_0x1b1700,_0x51db34=this[_0x56be19(0xed)][_0x56be19(0x22d)]['subscribe'](_0x39dfb6=>{const _0x206e7d=_0x56be19;if(_0x39dfb6==null)return;const {unitId:_0x345d79,redoState:_0x507f93,commandId:_0xcf78c6}=_0x39dfb6;if(_0x345d79!==_0x3804e5['unitID'])return;const _0x7e43cd={'id':_0xcf78c6,'type':_0x30d864[_0x206e7d(0x266)],'params':{'unitId':_0x345d79,'actions':_0x507f93['actions'],'textRanges':null}};_0x3804e5[_0x206e7d(0x1d4)](_0x7e43cd);});if(_0x3804e5[_0x56be19(0xa0)](_0x51db34),_0x3804e5 instanceof _0x1239bc){const _0x23b51d={'onTransformIME':_0x151743=>this[_0x56be19(0x1eb)][_0x56be19(0x251)](_0x151743),'onTransformState':_0x4fcece=>this[_0x56be19(0x124)][_0x56be19(0xd2)](_0x4fcece),'onTransformSelections':_0x109d26=>this[_0x56be19(0x235)][_0x56be19(0x1bd)](_0x109d26),'onSyncEditingCollabCursor':_0x125ccc=>this[_0x56be19(0x86)]['syncEditingCollabCursor'](_0x125ccc),'onTransformRemoteChangesetByIMECache':_0x6df3fb=>this['_docTransformIMECacheService'][_0x56be19(0x15a)](_0x6df3fb),'onTransformRemoteChangesetByStateCache':_0x1c0d98=>this[_0x56be19(0x124)][_0x56be19(0x15a)](_0x1c0d98)};_0x3804e5[_0x56be19(0xe5)](_0x23b51d);}}));}};de=In([U(0x0,_0x7b53ac(_0x1f9a31)),U(0x1,_0x7b53ac(_0xf63711)),U(0x2,_0x7b53ac(_e)),U(0x3,_0x7b53ac(he)),U(0x4,_0x7b53ac(ue)),U(0x5,_0x7b53ac(Ke)),U(0x6,_0x548240),U(0x7,_0x7b53ac(_0xcc52b6))],de);var Q=(_0x11d146=>(_0x11d146[_0x11d146[_0x1711de(0x288)]=0x0]=_0x1711de(0x288),_0x11d146[_0x11d146['OK']=0x1]='OK',_0x11d146[_0x11d146[_0x1711de(0xbe)]=0x2]='INTERNAL_ERROR',_0x11d146[_0x11d146[_0x1711de(0x1cf)]=0x3]='PERMISSION_DENIED',_0x11d146[_0x11d146['NOT_FOUND']=0x4]=_0x1711de(0x112),_0x11d146[_0x11d146[_0x1711de(0x1f5)]=0x5]='UNAUTHENTICATED',_0x11d146[_0x11d146[_0x1711de(0x189)]=0x6]='ALREADY_EXISTS',_0x11d146[_0x11d146[_0x1711de(0x1c5)]=0x7]=_0x1711de(0x1c5),_0x11d146[_0x11d146[_0x1711de(0xc1)]=0x8]=_0x1711de(0xc1),_0x11d146[_0x11d146[_0x1711de(0x24a)]=0x9]=_0x1711de(0x24a),_0x11d146[_0x11d146[_0x1711de(0x8d)]=0xa]='LOGIN_FAILED',_0x11d146[_0x11d146[_0x1711de(0x252)]=0xb]=_0x1711de(0x252),_0x11d146[_0x11d146['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x1711de(0x269),_0x11d146[_0x11d146[_0x1711de(0x22e)]=0xd]=_0x1711de(0x22e),_0x11d146[_0x11d146[_0x1711de(0x1ec)]=0xe]=_0x1711de(0x1ec),_0x11d146[_0x11d146[_0x1711de(0x28d)]=0xf]=_0x1711de(0x28d),_0x11d146[_0x11d146[_0x1711de(0x25a)]=0x10]=_0x1711de(0x25a),_0x11d146[_0x11d146[_0x1711de(0x295)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x11d146[_0x11d146[_0x1711de(0xa2)]=0x65]=_0x1711de(0xa2),_0x11d146[_0x11d146['USER_NOT_FOUND']=0xc9]=_0x1711de(0x194),_0x11d146[_0x11d146[_0x1711de(0x290)]=0xca]='USER_IS_ANONYMOUS',_0x11d146[_0x11d146[_0x1711de(0x267)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x11d146[_0x11d146['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x1711de(0x115),_0x11d146[_0x11d146[_0x1711de(0x80)]=0x1772]=_0x1711de(0x80),_0x11d146[_0x11d146[_0x1711de(0x199)]=0x1773]=_0x1711de(0x199),_0x11d146[_0x11d146[_0x1711de(0xd8)]=0x1b59]=_0x1711de(0xd8),_0x11d146[_0x11d146['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x1711de(0xa5),_0x11d146[_0x11d146[_0x1711de(0x130)]=0x1b5b]=_0x1711de(0x130),_0x11d146[_0x11d146[_0x1711de(0x16c)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x11d146[_0x11d146[_0x1711de(0x1a8)]=0x1b5d]=_0x1711de(0x1a8),_0x11d146[_0x11d146[_0x1711de(0x188)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x11d146[_0x11d146[_0x1711de(0x228)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x11d146[_0x11d146[_0x1711de(0x17c)]=0x232a]=_0x1711de(0x17c),_0x11d146[_0x11d146['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x1711de(0x119),_0x11d146[_0x11d146[_0x1711de(0x158)]=0x232c]=_0x1711de(0x158),_0x11d146[_0x11d146['LICENSE_DISTRO_REJECTED']=0x232d]=_0x1711de(0xea),_0x11d146[_0x11d146[_0x1711de(0x187)]=0x2711]=_0x1711de(0x187),_0x11d146[_0x11d146[_0x1711de(0x79)]=0x2712]=_0x1711de(0x79),_0x11d146[_0x11d146['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x11d146[_0x11d146['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x1711de(0x11f),_0x11d146[_0x11d146['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x1711de(0x157),_0x11d146[_0x11d146[_0x1711de(0xd3)]=0x271b]=_0x1711de(0xd3),_0x11d146[_0x11d146[_0x1711de(0x19c)]=0x271c]=_0x1711de(0x19c),_0x11d146[_0x11d146[_0x1711de(0xb8)]=0x271d]=_0x1711de(0xb8),_0x11d146[_0x11d146['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x1711de(0x147),_0x11d146[_0x11d146[_0x1711de(0xeb)]=0x271f]=_0x1711de(0xeb),_0x11d146[_0x11d146[_0x1711de(0x1b1)]=0x2720]=_0x1711de(0x1b1),_0x11d146[_0x11d146['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x1711de(0x268),_0x11d146[_0x11d146[_0x1711de(0x6b)]=0x2ee1]=_0x1711de(0x6b),_0x11d146[_0x11d146[_0x1711de(0x1c2)]=0x2ee2]='INVALID_INVITE_CODE',_0x11d146[_0x11d146['INVITE_CODE_REQUIRED']=0x2ee3]=_0x1711de(0x14c),_0x11d146[_0x11d146['USER_NOT_INVITED_CODE']=0x2ee4]=_0x1711de(0xc0),_0x11d146[_0x11d146[_0x1711de(0x13d)]=0x2ee5]=_0x1711de(0x13d),_0x11d146[_0x11d146[_0x1711de(0x77)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x11d146[_0x11d146[_0x1711de(0x92)]=0x32ca]=_0x1711de(0x92),_0x11d146[_0x11d146[_0x1711de(0x1af)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x11d146[_0x11d146[_0x1711de(0x133)]=0x36b1]=_0x1711de(0x133),_0x11d146[_0x11d146[_0x1711de(0x7b)]=0x36b2]=_0x1711de(0x7b),_0x11d146[_0x11d146[_0x1711de(0x10a)]=0x36b3]=_0x1711de(0x10a),_0x11d146[_0x11d146['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x1711de(0x162),_0x11d146[_0x11d146[_0x1711de(0x265)]=0x3715]=_0x1711de(0x265),_0x11d146[_0x11d146['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x11d146[_0x11d146[_0x1711de(0x137)]=0x37dd]=_0x1711de(0x137),_0x11d146[_0x11d146[_0x1711de(0x201)]=0x3a99]=_0x1711de(0x201),_0x11d146[_0x11d146[_0x1711de(0x98)]=0x3a9a]=_0x1711de(0x98),_0x11d146[_0x11d146[_0x1711de(0x1ce)]=0x3a9b]=_0x1711de(0x1ce),_0x11d146[_0x11d146[_0x1711de(0xce)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x11d146[_0x11d146[_0x1711de(0x96)]=0x3a9d]=_0x1711de(0x96),_0x11d146[_0x11d146['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x1711de(0x26b),_0x11d146[_0x11d146['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x11d146[_0x11d146[_0x1711de(0x1e4)]=-0x1]='UNRECOGNIZED',_0x11d146))(Q||{});function gn(_0x4669d1){const _0x41d2ce=_0x1711de;var _0x3b5236,_0x348d30;const _0x5d5f58=(_0x3b5236=_0x4669d1[_0x41d2ce(0x1f6)])==null?void 0x0:_0x3b5236[_0x41d2ce(0x1b9)],_0x5a29a2=((_0x348d30=_0x4669d1[_0x41d2ce(0x1f6)])==null?void 0x0:_0x348d30['totalFormulasToCalculate'])||0x0;return _0x5d5f58===_0x1aca12['START_CALCULATION']&&_0x5a29a2>0x0;}function vn(_0x74f939){const _0x15175a=_0x1711de;return _0x74f939[_0x15175a(0x20d)]===_0x166d51['SUCCESS'];}var En=Object[_0x1711de(0x24f)],pn=(_0x55de8b,_0x350309,_0x560611,_0x362f59)=>{for(var _0x3385f7=_0x362f59>0x1?void 0x0:_0x362f59?En(_0x350309,_0x560611):_0x350309,_0x288572=_0x55de8b['length']-0x1,_0x5ec959;_0x288572>=0x0;_0x288572--)(_0x5ec959=_0x55de8b[_0x288572])&&(_0x3385f7=_0x5ec959(_0x3385f7)||_0x3385f7);return _0x3385f7;},w=(_0x374f98,_0x1f37c0)=>(_0x4c4ed7,_0x232e57)=>_0x1f37c0(_0x4c4ed7,_0x232e57,_0x374f98);const On=_0x1711de(0x26f),Tn=_0x1711de(0x11b),Cn=_0x1711de(0x224);let fe=class extends _0x50b6bd{constructor(_0x47e1da,_0x2c174f,_0x3463f6,_0x4669b0,_0x1af9eb,_0x144fe0,_0x5586c8){const _0x165d87=_0x1711de;super(),_(this,_0x165d87(0x242),null),_(this,_0x165d87(0x28f),0x0),_(this,_0x165d87(0x88),0x0),_(this,'_taskIds',[]),_(this,_0x165d87(0x9f),0x0),(this[_0x165d87(0x97)]=_0x47e1da,this[_0x165d87(0x128)]=_0x2c174f,this[_0x165d87(0x141)]=_0x3463f6,this[_0x165d87(0x8b)]=_0x4669b0,this['_univerInstanceService']=_0x1af9eb,this[_0x165d87(0x9c)]=_0x144fe0,this[_0x165d87(0xf3)]=_0x5586c8,this[_0x165d87(0x1b6)]());}[_0x1711de(0x1b6)](){const _0x991ca2=_0x1711de;this[_0x991ca2(0xa0)](this[_0x991ca2(0x128)][_0x991ca2(0x153)]((_0x5944de,_0x2233dd)=>{const _0x582e0d=_0x991ca2;if(_0x5944de['id']!==_0x215073['id'])return;const _0x1810ee=_0x5944de[_0x582e0d(0x9e)];if(!this[_0x582e0d(0x145)](_0x1810ee[_0x582e0d(0x262)]))return;if(!this[_0x582e0d(0xc9)]())throw this[_0x582e0d(0x11a)](_0x5944de,_0x2233dd),this[_0x582e0d(0xd0)](),new _0x523fe6();})),this[_0x991ca2(0xa0)](this[_0x991ca2(0x128)][_0x991ca2(0x21a)]((_0x4e2006,_0x467df6)=>{const _0x448095=_0x991ca2;if(_0x4e2006['id']!==_0x425284['id'])return;const _0x24e250=_0x4e2006[_0x448095(0x9e)];if(gn(_0x24e250)){const _0x3e39ce=_0x2896ee();this[_0x448095(0x1b4)][_0x448095(0x205)](_0x3e39ce),this[_0x448095(0x1aa)](_0x3e39ce);}else{if(vn(_0x24e250)&&this[_0x448095(0x1b4)][_0x448095(0x10b)]>0x0){const _0x1b973d=this[_0x448095(0x1b4)]['shift']();this[_0x448095(0xe3)](_0x1b973d);}}}));}[_0x1711de(0x136)](){const _0x7dfc9f=_0x1711de;super['dispose'](),this[_0x7dfc9f(0x14b)](),this[_0x7dfc9f(0x1b4)]=[],this[_0x7dfc9f(0x88)]=0x0,this['_maxFormulaLimit']=0x0,this[_0x7dfc9f(0x9f)]=0x0;}async[_0x1711de(0x11a)](_0x56368a,_0x1bf0fb){const _0xe7076b=_0x1711de;for(let _0x178b1b=0x0;_0x178b1b<0x1e;_0x178b1b++)try{if(await this[_0xe7076b(0x1bc)](),this['_checkCalculationAvailable']()){this['_applyCommand'](_0x56368a,_0x1bf0fb),this[_0xe7076b(0x97)][_0xe7076b(0x1b8)]({'content':this[_0xe7076b(0xf3)]['t']('formula.calculation.started'),'type':_0x4c0c70['Success']});return;}await new Promise(_0x44cfab=>{const _0x244d0d=_0xe7076b;this[_0x244d0d(0x242)]=window[_0x244d0d(0x29f)](_0x44cfab,0x3e8);});}catch(_0x2010ce){this[_0xe7076b(0x9c)][_0xe7076b(0x258)](_0x2010ce);}this['_messageService'][_0xe7076b(0x1b8)]({'content':this[_0xe7076b(0xf3)]['t'](_0xe7076b(0x26e)),'type':_0x4c0c70[_0xe7076b(0xbc)]});}[_0x1711de(0x174)](_0x2cfd45,_0x27175a){const _0x4fd0ab=_0x1711de;try{this['_commandService']['executeCommand'](_0x2cfd45['id'],_0x2cfd45[_0x4fd0ab(0x9e)],_0x27175a);}catch(_0x490b06){this[_0x4fd0ab(0x9c)][_0x4fd0ab(0x258)](_0x490b06);}}[_0x1711de(0x12b)](_0x248738,_0x517e12){const _0x48fa73=_0x1711de;_0x517e12<this[_0x48fa73(0x9f)]||(this[_0x48fa73(0x9f)]=_0x517e12,this['_maxFormulaLimit']=Number[_0x48fa73(0xcd)](_0x248738[_0x48fa73(0x272)]),this['_currentUsage']=Number[_0x48fa73(0xcd)](_0x248738[_0x48fa73(0x1a5)]));}async[_0x1711de(0x1aa)](_0x5772ed){const _0xb43eec=_0x1711de;var _0x294785,_0x48fc90;const _0x1f294d=Date[_0xb43eec(0xa7)]();try{const _0x22fdcf=((_0x294785=this['_configService'][_0xb43eec(0xa1)](_0x4682df))==null?void 0x0:_0x294785[_0xb43eec(0x22b)])||Tn,_0x2f3bf7=(await this[_0xb43eec(0x8b)][_0xb43eec(0x1e9)](_0x22fdcf,{'body':JSON[_0xb43eec(0x84)]({'taskId':_0x5772ed})}))[_0xb43eec(0x1fe)];if(((_0x48fc90=_0x2f3bf7['error'])==null?void 0x0:_0x48fc90[_0xb43eec(0x73)])!==Q['OK'])return;this[_0xb43eec(0x12b)](_0x2f3bf7[_0xb43eec(0x1a3)],_0x1f294d);}catch(_0x51bf18){this[_0xb43eec(0x9c)][_0xb43eec(0x258)](_0x51bf18);}}async[_0x1711de(0x1bc)](_0x4135e7){const _0x43a38f=_0x1711de;var _0x549d1f,_0x42246e;const _0x37ca4d=Date['now']();try{const _0x56cf30=((_0x549d1f=this[_0x43a38f(0x141)][_0x43a38f(0xa1)](_0x4682df))==null?void 0x0:_0x549d1f['getformulaLimitStatusUrl'])||On,_0xe9c3a2=_0x4135e7?_0x56cf30+_0x43a38f(0x1c6)+encodeURIComponent(_0x4135e7):_0x56cf30,_0x3aed15=(await this[_0x43a38f(0x8b)][_0x43a38f(0x12a)](_0xe9c3a2))[_0x43a38f(0x1fe)];if(((_0x42246e=_0x3aed15[_0x43a38f(0x258)])==null?void 0x0:_0x42246e['code'])!==Q['OK'])return;this[_0x43a38f(0x12b)](_0x3aed15[_0x43a38f(0x1a3)],_0x37ca4d);}catch(_0x1f901b){this['_logService'][_0x43a38f(0x258)](_0x1f901b);}}async[_0x1711de(0xe3)](_0x2ecf42){const _0x72c36e=_0x1711de;var _0x386664,_0x48d0e6;const _0x4fa4a4=Date[_0x72c36e(0xa7)]();try{const _0x431a7e=((_0x386664=this[_0x72c36e(0x141)][_0x72c36e(0xa1)](_0x4682df))==null?void 0x0:_0x386664['releaseFormulaLimitUrl'])||Cn,_0x415d98=(await this[_0x72c36e(0x8b)][_0x72c36e(0x1e9)](_0x431a7e,{'body':JSON[_0x72c36e(0x84)]({'taskId':_0x2ecf42})}))[_0x72c36e(0x1fe)];if(((_0x48d0e6=_0x415d98[_0x72c36e(0x258)])==null?void 0x0:_0x48d0e6[_0x72c36e(0x73)])!==Q['OK'])return;this[_0x72c36e(0x12b)](_0x415d98[_0x72c36e(0x1a3)],_0x4fa4a4);}catch(_0x38fcfe){this[_0x72c36e(0x9c)][_0x72c36e(0x258)](_0x38fcfe);}}[_0x1711de(0xc9)](){const _0x2671b8=_0x1711de;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x2671b8(0x28f)]-this[_0x2671b8(0x88)]>0x0;}[_0x1711de(0x14b)](){const _0xcc1c4f=_0x1711de;this[_0xcc1c4f(0x242)]&&(clearTimeout(this[_0xcc1c4f(0x242)]),this[_0xcc1c4f(0x242)]=null);}[_0x1711de(0xd0)](){const _0x27312a=_0x1711de;this[_0x27312a(0x97)][_0x27312a(0x1b8)]({'content':this[_0x27312a(0xf3)]['t'](_0x27312a(0x71)),'type':_0x4c0c70['Loading']});}[_0x1711de(0x145)](_0x3a225c){const _0x55294b=_0x1711de;for(const _0x57bb93 of _0x3a225c){const {unitId:_0x577db8,sheetId:_0x183143,range:_0x555880}=_0x57bb93,_0x5b0e4a=this[_0x55294b(0x1c1)]['getUnit'](_0x577db8);if(!_0x5b0e4a)continue;const _0xac52e=_0x5b0e4a['getSheetBySheetId'](_0x183143);if(!_0xac52e)continue;const _0x1f64bd=_0xac52e[_0x55294b(0x25c)]();for(let _0x29c5f7=_0x555880[_0x55294b(0x114)];_0x29c5f7<=_0x555880[_0x55294b(0x223)];_0x29c5f7++)for(let _0x27bec3=_0x555880[_0x55294b(0x190)];_0x27bec3<=_0x555880['endColumn'];_0x27bec3++){const _0x595d74=_0x1f64bd['getValue'](_0x29c5f7,_0x27bec3);if(_0x595d74&&(_0x30db78(_0x595d74['f'])||_0x3d97c8(_0x595d74['si'])))return!0x0;}}return!0x1;}};fe=pn([w(0x0,_0x7b53ac(_0x548240)),w(0x1,_0x22c686),w(0x2,_0x4a2a55),w(0x3,_0x7b53ac(_0x50c8af)),w(0x4,_0x54d197),w(0x5,_0x505efa),w(0x6,_0x7b53ac(_0xcc52b6))],fe);var Rn=Object[_0x1711de(0x24f)],Dn=(_0x408d16,_0x5d582f,_0x1335e0,_0x1f0373)=>{for(var _0x540507=_0x1f0373>0x1?void 0x0:_0x1f0373?Rn(_0x5d582f,_0x1335e0):_0x5d582f,_0x290e14=_0x408d16['length']-0x1,_0x5703d7;_0x290e14>=0x0;_0x290e14--)(_0x5703d7=_0x408d16[_0x290e14])&&(_0x540507=_0x5703d7(_0x540507)||_0x540507);return _0x540507;},be=(_0x411466,_0x149ddd)=>(_0xebbd7d,_0x39c360)=>_0x149ddd(_0xebbd7d,_0x39c360,_0x411466);let Be=class extends _0x50b6bd{constructor(_0x1ab17d,_0x2cebdc,_0x5db90d){const _0x2533f6=_0x1711de;super(),_(this,'_cachedData',new Map()),_(this,_0x2533f6(0x143),new Map()),_(this,_0x2533f6(0x91),!0x1),(this['_configService']=_0x1ab17d,this['_localStorageService']=_0x2cebdc,this['_revisionService']=_0x5db90d);}[_0x1711de(0x75)](){this['_disabled']=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x496a63=_0x1711de;return this[_0x496a63(0x143)];}[_0x1711de(0x136)](){const _0x5de189=_0x1711de;this[_0x5de189(0x10e)]()[_0x5de189(0x18a)](()=>super[_0x5de189(0x136)]());}async['loadOfflineData'](_0x2ef436){const _0x36cd9d=_0x1711de;return this[_0x36cd9d(0x91)]?null:this[_0x36cd9d(0x244)][_0x36cd9d(0x1d2)](_0x4fff1e(_0x2ef436));}async[_0x1711de(0xe0)](_0xbac90a,_0x2578f5){const _0x4b67c2=_0x1711de;return!!this[_0x4b67c2(0x244)]['setItem'](_0xbac90a,_0x2578f5);}[_0x1711de(0x222)](_0x26a7f9,_0x41c3f2,_0x3ce2f9,_0x442fa7){const _0x140d0c=_0x1711de,_0x1ad0b4=this['_revisionService'][_0x140d0c(0xde)](_0x26a7f9);this['_cachedData'][_0x140d0c(0x151)](_0x26a7f9,{'unitID':_0x26a7f9,'type':_0x41c3f2,'awaitingChangeset':_0x3ce2f9,'mutations':_0x442fa7,'rev':_0x1ad0b4}),this[_0x140d0c(0x143)][_0x140d0c(0x185)](_0x26a7f9)||this[_0x140d0c(0x16d)](_0x26a7f9);}[_0x1711de(0x16d)](_0xc6a686){const _0x34b70d=_0x1711de,_0x50b4a2=this[_0x34b70d(0x26c)]();_0x50b4a2===0x0?this['_saveCache'](_0xc6a686):this[_0x34b70d(0x143)][_0x34b70d(0x151)](_0xc6a686,setTimeout(()=>this[_0x34b70d(0x1a7)](_0xc6a686),_0x50b4a2));}[_0x1711de(0x26c)](){const _0xd55ef4=_0x1711de;var _0x420320;return(_0x420320=this['_configService'][_0xd55ef4(0xa1)](_0x307a04))!=null?_0x420320:_0x2d233c;}['_saveCache'](_0x2230be){const _0x20aca5=_0x1711de,_0x27e243=this['_saveTaskMap']['get'](_0x2230be);return _0x27e243!==void 0x0&&window['clearTimeout'](_0x27e243),this[_0x20aca5(0x244)][_0x20aca5(0x126)](_0x4fff1e(_0x2230be),this[_0x20aca5(0x1e6)][_0x20aca5(0x12a)](_0x2230be))['then'](()=>this[_0x20aca5(0x143)]['delete'](_0x2230be));}async[_0x1711de(0x10e)](){const _0x384597=_0x1711de,_0x3e390a=[];this[_0x384597(0x143)]['forEach']((_0x13003d,_0x539d76)=>{const _0x402ede=_0x384597;window['clearTimeout'](_0x13003d),_0x3e390a[_0x402ede(0x205)](this[_0x402ede(0x1a7)](_0x539d76)[_0x402ede(0x18a)](()=>{const _0x1d1f79=_0x402ede;this[_0x1d1f79(0x143)][_0x1d1f79(0x171)](_0x539d76);}));}),await Promise[_0x384597(0x177)](_0x3e390a);}};Be=Dn([be(0x0,_0x4a2a55),be(0x1,_0x93315e),be(0x2,_0x7b53ac(_0x4b3091))],Be);class bn extends _0x46e415{constructor(){const _0x2d7bb5=_0x1711de;super(),_(this,_0x2d7bb5(0x66)),this[_0x2d7bb5(0x66)]=_0x8d5ab2(window,_0x2d7bb5(0xdc))[_0x2d7bb5(0xf9)](_0x219c46(this['dispose$']),_0x4d2f23(0x1),_0x409c82(void 0x0));}[_0x1711de(0xc7)](_0x28abeb,_0x16b4a8,_0x2c9842=!0x1){const _0x5655f2=_0x1711de,_0x53d847=new URL(window[_0x5655f2(0x109)][_0x5655f2(0x1b7)]);_0x53d847[_0x5655f2(0x192)]['set'](_0x28abeb,_0x16b4a8),_0x2c9842?window[_0x5655f2(0xc5)][_0x5655f2(0x15c)]('','',_0x53d847[_0x5655f2(0x273)]()):window[_0x5655f2(0xc5)][_0x5655f2(0xe2)]('','',_0x53d847['toString']());}[_0x1711de(0x1f4)](_0x8f5397,_0x228734=!0x1){const _0x2f92c0=_0x1711de,_0x1d4fd0=new URL(window[_0x2f92c0(0x109)][_0x2f92c0(0x1b7)]);_0x1d4fd0[_0x2f92c0(0x192)][_0x2f92c0(0x171)](_0x8f5397),_0x228734?window[_0x2f92c0(0xc5)][_0x2f92c0(0x15c)]('','',_0x1d4fd0[_0x2f92c0(0x273)]()):window[_0x2f92c0(0xc5)][_0x2f92c0(0xe2)]('','',_0x1d4fd0['toString']());}[_0x1711de(0x1bb)](_0x1ad472){const _0x51c215=_0x1711de;var _0x17fb01;return(_0x17fb01=new URL(window[_0x51c215(0x109)][_0x51c215(0x1b7)])[_0x51c215(0x192)]['get'](_0x1ad472))!=null?_0x17fb01:void 0x0;}}var Nn=Object[_0x1711de(0xcc)],Un=Object[_0x1711de(0x24f)],Ln=(_0x19c5f7,_0x240ed8,_0x5711e)=>_0x240ed8 in _0x19c5f7?Nn(_0x19c5f7,_0x240ed8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5711e}):_0x19c5f7[_0x240ed8]=_0x5711e,Mn=(_0x56aece,_0x3dd891,_0x48bf35,_0x1715b9)=>{for(var _0x535d32=_0x1715b9>0x1?void 0x0:_0x1715b9?Un(_0x3dd891,_0x48bf35):_0x3dd891,_0x27b4c9=_0x56aece['length']-0x1,_0x46f329;_0x27b4c9>=0x0;_0x27b4c9--)(_0x46f329=_0x56aece[_0x27b4c9])&&(_0x535d32=_0x46f329(_0x535d32)||_0x535d32);return _0x535d32;},Ne=(_0x4bfe3a,_0x326bfd)=>(_0x245d75,_0x13c245)=>_0x326bfd(_0x245d75,_0x13c245,_0x4bfe3a),An=(_0x135ec4,_0x4cb0d0,_0x392e22)=>Ln(_0x135ec4,_0x4cb0d0+'',_0x392e22);const Pn=_0x1711de(0xc3);let Fe=class extends _0x2b1b46{constructor(_0x2d73a3=at,_0x45fb8f,_0x5e822b,_0x49f969){const _0x36dff3=_0x1711de;super(),this[_0x36dff3(0x181)]=_0x2d73a3,this['_renderManagerService']=_0x45fb8f,this[_0x36dff3(0xbd)]=_0x5e822b,this['_configService']=_0x49f969;const {..._0x214369}=_0x7cc5b8({},at,this[_0x36dff3(0x181)]);this[_0x36dff3(0x141)]['setConfig'](ln,_0x214369);}[_0x1711de(0x195)](){const _0x24162b=_0x1711de;this[_0x24162b(0x142)](),this[_0x24162b(0x271)]();}[_0x1711de(0x175)](){this['_registerRenderDependencies']();}[_0x1711de(0x142)](){const _0x24d660=_0x1711de;var _0x17a486;const _0x4ce899=[[Ge],[fe],[ue],[_e],[he],[Ke],[Pt,{'useClass':bn}],[_0x4c4e30,{'useClass':_0x2afa8e}],[_0x424de6,{'useClass':Be}],[ae],[de],[le],[Y],[Pe],[ce]];_0x3dc597(this[_0x24d660(0xbd)],_0x2904c0(_0x4ce899,(_0x17a486=this[_0x24d660(0x181)])==null?void 0x0:_0x17a486[_0x24d660(0xd7)]));}[_0x1711de(0x254)](){const _0x5d85dd=_0x1711de;this[_0x5d85dd(0xa0)](this['_renderManagerService'][_0x5d85dd(0x294)](_0x432bba[_0x5d85dd(0x21e)],[$e])),this['disposeWithMe'](this[_0x5d85dd(0x144)][_0x5d85dd(0x294)](_0x432bba[_0x5d85dd(0x250)],[xe]));}['_initDependencies'](){const _0x3a6b86=_0x1711de;_0x3e1d55(this[_0x3a6b86(0xbd)],[[Y],[ae],[de],[le],[ce],[fe]]);}};An(Fe,_0x1711de(0x214),Pn),Fe=Mn([_0x24eb2e(_0xf13ac0),Ne(0x1,_0xe6e859),Ne(0x2,_0x7b53ac(_0x3f62bb)),Ne(0x3,_0x4a2a55)],Fe);var wn=Object[_0x1711de(0x24f)],yn=(_0x1f495e,_0x10dd46,_0x11281f,_0x4958e1)=>{for(var _0x3a19fb=_0x4958e1>0x1?void 0x0:_0x4958e1?wn(_0x10dd46,_0x11281f):_0x10dd46,_0x42cf49=_0x1f495e['length']-0x1,_0x1e32e9;_0x42cf49>=0x0;_0x42cf49--)(_0x1e32e9=_0x1f495e[_0x42cf49])&&(_0x3a19fb=_0x1e32e9(_0x3a19fb)||_0x3a19fb);return _0x3a19fb;},Z=(_0x4cd0d5,_0x4308e0)=>(_0x123bb6,_0x138fb3)=>_0x4308e0(_0x123bb6,_0x138fb3,_0x4cd0d5);let _t=class extends _0x2b2e44{constructor(_0x9f472f,_0x4cc0d2,_0x2d8167,_0x5ab258,_0x3eeaa0){super(_0x9f472f,_0x4cc0d2,_0x2d8167,_0x5ab258,_0x3eeaa0);}async[_0x1711de(0xa6)](_0x289d29){const _0x1de2d9=_0x1711de,_0x23eecc=await this[_0x1de2d9(0x261)](),_0x448a61=this[_0x1de2d9(0x24c)](_0x289d29,_0x23eecc);return this[_0x1de2d9(0x298)](_0x448a61);}[_0x1711de(0x24c)](_0x30a647,_0x3c70e8){const _0x4d7e44=_0x1711de,_0xbbfcc6=typeof window>'u'?new URL(_0x30a647):new URL(_0x30a647,window[_0x4d7e44(0x109)]['origin']);_0xbbfcc6[_0x4d7e44(0x192)][_0x4d7e44(0x151)](_0x4d7e44(0x93),_0x3c70e8);const _0x1f8ab1=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4d7e44(0x109)]['search']);return _0x1f8ab1[_0x4d7e44(0x12a)](_0x4d7e44(0x225))&&_0xbbfcc6[_0x4d7e44(0x192)][_0x4d7e44(0x151)]('runId',_0x1f8ab1[_0x4d7e44(0x12a)](_0x4d7e44(0x225))),_0xbbfcc6['toString']();}async[_0x1711de(0x261)](){const _0x1b1157=_0x1711de;var _0x1f6637,_0x5052e2,_0x193187;const _0x54733b=this[_0x1b1157(0x141)][_0x1b1157(0xa1)](_0x4682df),_0x2504cb=(_0x1f6637=_0x54733b==null?void 0x0:_0x54733b[_0x1b1157(0x21d)])!=null?_0x1f6637:_0x9391dc;return(_0x193187=(_0x5052e2=(await this['_httpService'][_0x1b1157(0x12a)](_0x2504cb,{'headers':{'Content-Type':_0x1b1157(0x27a)}}))[_0x1b1157(0x1fe)])==null?void 0x0:_0x5052e2['ticket'])!=null?_0x193187:'';}};_t=yn([Z(0x0,_0x7b53ac(_0x3f62bb)),Z(0x1,_0x7b53ac(_0x50c8af)),Z(0x2,_0x4a2a55),Z(0x3,_0x505efa),Z(0x4,_0x4ec86e)],_t);var $n=Object[_0x1711de(0x24f)],xn=(_0x2c2c6d,_0x4d8389,_0xe94e41,_0x340a2d)=>{const _0x4c18db=_0x1711de;for(var _0x206fa6=_0x340a2d>0x1?void 0x0:_0x340a2d?$n(_0x4d8389,_0xe94e41):_0x4d8389,_0x37f474=_0x2c2c6d[_0x4c18db(0x10b)]-0x1,_0xc3520;_0x37f474>=0x0;_0x37f474--)(_0xc3520=_0x2c2c6d[_0x37f474])&&(_0x206fa6=_0xc3520(_0x206fa6)||_0x206fa6);return _0x206fa6;},Ue=(_0x2240f1,_0x2f8f60)=>(_0x2be8b0,_0x31d0d2)=>_0x2f8f60(_0x2be8b0,_0x31d0d2,_0x2240f1);let ht=class extends _0x50b6bd{constructor(_0x45050a,_0x1b103a,_0x5e2369){const _0x435896=_0x1711de;super(),this[_0x435896(0xb3)]=_0x45050a,this[_0x435896(0x8b)]=_0x1b103a,this[_0x435896(0x141)]=_0x5e2369;}async[_0x1711de(0x27c)](_0x46c82b,_0x13ea8b,_0x2b1a64,..._0x35d9a5){const _0x424bc7=_0x1711de;var _0x58349c,_0x1d6f75,_0x224380,_0xac8891;const _0xb5e6b4=this['_instanceService']['getFocusedUnit']();if(!_0xb5e6b4)throw new Error(_0x424bc7(0x7e));const _0x2e42c9=((_0x58349c=this[_0x424bc7(0x141)][_0x424bc7(0xa1)](_0x1d00d4))!=null?_0x58349c:_0x315aaf)+'/'+_0x46c82b+_0x424bc7(0x296)+_0x13ea8b,_0x5a37a2=new URL(window[_0x424bc7(0x109)]['href']),_0x350dd9={'scriptId':_0x46c82b,'runId':(_0x1d6f75=_0x5a37a2[_0x424bc7(0x192)][_0x424bc7(0x12a)]('runId'))!=null?_0x1d6f75:'','function':_0x13ea8b,'unitId':_0xb5e6b4[_0x424bc7(0x1f1)](),'argsOfFunction':JSON[_0x424bc7(0x84)](_0x35d9a5),'invokeId':(_0x224380=_0x2b1a64[_0x424bc7(0x263)])!=null?_0x224380:'','executionId':(_0xac8891=_0x2b1a64[_0x424bc7(0x146)])!=null?_0xac8891:''};try{const _0x33f4ae=await this[_0x424bc7(0x8b)][_0x424bc7(0x1e9)](_0x2e42c9,{'body':_0x350dd9});return _0x33f4ae['body']['error']&&_0x33f4ae[_0x424bc7(0x1fe)][_0x424bc7(0x258)][_0x424bc7(0x73)]!==Q['OK']?_0x424bc7(0x28a):_0x33f4ae['body'][_0x424bc7(0x83)];}catch{return _0x424bc7(0x28a);}}};ht=xn([Ue(0x0,_0x54d197),Ue(0x1,_0x7b53ac(_0x50c8af)),Ue(0x2,_0x4a2a55)],ht);const ut=0x7530,dt=_0x1711de(0xba);class ir extends _0x50b6bd{constructor(){const _0x5466a2=_0x1711de;super(),_(this,_0x5466a2(0xae),_0x2896ee()),_(this,_0x5466a2(0x176),new Set()),_(this,_0x5466a2(0x2a0),new Map()),_(this,'_heartbeatTimer',null),_(this,_0x5466a2(0x274),new Map()),_(this,_0x5466a2(0x29c),new Map()),this[_0x5466a2(0xda)]();}[_0x1711de(0x136)](){const _0x3bc08c=_0x1711de;super[_0x3bc08c(0x136)](),this[_0x3bc08c(0x274)][_0x3bc08c(0x1ef)]((_0x440545,_0x37c2b0)=>this['_removeClearOtherTimer'](_0x37c2b0)),this[_0x3bc08c(0x1f9)]&&window[_0x3bc08c(0x121)](this[_0x3bc08c(0x1f9)]);}[_0x1711de(0x1a1)](_0x178a6e){const _0x510e8b=_0x1711de;return this[_0x510e8b(0x1cb)](_0x178a6e)[_0x510e8b(0xf9)](_0x373e68());}[_0x1711de(0x247)](_0x1df171){const _0x12196a=_0x1711de;this[_0x12196a(0x176)][_0x12196a(0xe9)]===0x0&&this[_0x12196a(0x1ac)](),this[_0x12196a(0x176)]['add'](_0x1df171),this[_0x12196a(0xc4)]({'type':0x0,'memberID':this[_0x12196a(0xae)],'unitIDs':[_0x1df171],'isForwarded':!0x1});}[_0x1711de(0x16e)](_0xa5f22a){const _0x51f396=_0x1711de;this[_0x51f396(0x176)]['delete'](_0xa5f22a),this[_0x51f396(0x176)][_0x51f396(0xe9)]===0x0&&this[_0x51f396(0x1f9)]&&window[_0x51f396(0x121)](this[_0x51f396(0x1f9)]);}[_0x1711de(0xda)](){const _0x370593=_0x1711de;this[_0x370593(0xa0)](_0x20e0ba(_0x8d5ab2(window,_0x370593(0x104))[_0x370593(0x270)](_0x32ec5e=>{const _0x4bf89a=_0x370593;if(_0x32ec5e['key']!==dt||!_0x32ec5e[_0x4bf89a(0xcf)])return;const _0x2d7776=JSON[_0x4bf89a(0xfc)](_0x32ec5e['newValue']);this['_handleEvent'](_0x2d7776);}))),window['addEventListener'](_0x370593(0x20c),()=>this[_0x370593(0xc4)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x370593(0x176)])}));}[_0x1711de(0x164)](_0x10cf9c){const _0x480202=_0x1711de;switch(_0x10cf9c[_0x480202(0x6c)]){case 0x0:this[_0x480202(0x26a)](_0x10cf9c);break;case 0x1:this[_0x480202(0xa8)](_0x10cf9c);break;case 0x2:this[_0x480202(0x1f3)](_0x10cf9c);break;}}[_0x1711de(0x26a)](_0x238800){const _0x58d707=_0x1711de,{unitIDs:_0x2dd5fd,memberID:_0x30a549,isForwarded:_0x22a738}=_0x238800;_0x2dd5fd['forEach'](_0x48cd2d=>{const _0x378b42=_0xf036;if(!_0x22a738&&this['_unitOnClients']['has'](_0x48cd2d)&&this[_0x378b42(0x1cb)](_0x48cd2d)[_0x378b42(0x10d)](_0x3aa629['OTHER_CLIENTS_EDITING']),!this['_unitOnClients']['has'](_0x48cd2d)||!this[_0x378b42(0x2a0)][_0x378b42(0x12a)](_0x48cd2d)[_0x378b42(0x185)](_0x30a549)){const _0x2ddbca=this[_0x378b42(0x2a0)][_0x378b42(0x12a)](_0x48cd2d)||new Set();_0x2ddbca['add'](_0x30a549),this[_0x378b42(0x2a0)][_0x378b42(0x151)](_0x48cd2d,_0x2ddbca),this[_0x378b42(0xc8)](_0x30a549);}}),_0x22a738||this[_0x58d707(0xc4)]({'type':0x0,'memberID':this[_0x58d707(0xae)],'unitIDs':[...this[_0x58d707(0x176)]],'isForwarded':!0x0});}[_0x1711de(0xc8)](_0x2d03d2){const _0x506b90=_0x1711de;this[_0x506b90(0xfd)](_0x2d03d2);const _0xb12247=window[_0x506b90(0x29f)](()=>{const _0x6dd35f=_0x506b90;this[_0x6dd35f(0x2a0)][_0x6dd35f(0x1ef)](_0x2bc3a7=>{_0x2bc3a7['delete'](_0x2d03d2);});},ut*0x2);this[_0x506b90(0x274)][_0x506b90(0x151)](_0x2d03d2,_0xb12247);}[_0x1711de(0xfd)](_0x58a608){const _0x1b807e=_0x1711de;if(this['_clearOtherTimers'][_0x1b807e(0x185)](_0x58a608)){const _0x4d18bc=this[_0x1b807e(0x274)]['get'](_0x58a608);_0x4d18bc&&window[_0x1b807e(0x198)](_0x4d18bc),this[_0x1b807e(0x274)][_0x1b807e(0x151)](_0x58a608,null);}}[_0x1711de(0xa8)](_0x1b7ef4){const _0x4fea52=_0x1711de,{memberID:_0x3e8bda,unitIDs:_0x606bc9}=_0x1b7ef4;_0x606bc9[_0x4fea52(0x1ef)](_0x27905e=>{const _0x2864b0=_0x4fea52;var _0x401e42;const _0x23c79d=this[_0x2864b0(0x2a0)][_0x2864b0(0x12a)](_0x27905e);_0x23c79d&&(_0x23c79d['delete'](_0x3e8bda),(_0x401e42=this[_0x2864b0(0x1cb)](_0x27905e))==null||_0x401e42['next'](_0x23c79d['size']===0x0?_0x3aa629[_0x2864b0(0xef)]:_0x3aa629['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x3e8bda);}['_handleHeartbeatEvent'](_0x4fceaf){const _0x3b8749=_0x1711de;this[_0x3b8749(0xc8)](_0x4fceaf[_0x3b8749(0x103)]);}['_send'](_0x366782){localStorage['setItem'](dt,JSON['stringify'](_0x366782));}[_0x1711de(0x1ac)](){const _0x5019e1=_0x1711de;this['_heartbeatTimer']=window[_0x5019e1(0x275)](()=>{const _0x1c37e9=_0x5019e1;this[_0x1c37e9(0xc4)]({'type':0x2,'memberID':this[_0x1c37e9(0xae)]});},ut);}['_ensureSubject'](_0x43ae43){const _0x2d77b9=_0x1711de;return this[_0x2d77b9(0x29c)][_0x2d77b9(0x185)](_0x43ae43)||this[_0x2d77b9(0x29c)]['set'](_0x43ae43,new _0xc9ceb(_0x3aa629[_0x2d77b9(0xef)])),this[_0x2d77b9(0x29c)]['get'](_0x43ae43);}}export{_t as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,Pt as IURLService,ht as RemoteUniscriptService,tn as SheetCollabCursorShape,Fe as UniverCollaborationClientUIPlugin,ir as WebBrowserSingleActiveUnitService,bn as WebURLService};
1
+ const _0x350772=_0x2f90;(function(_0x5aa551,_0x26c47c){const _0x22e3a4=_0x2f90,_0x5050b2=_0x5aa551();while(!![]){try{const _0x5401e7=-parseInt(_0x22e3a4(0xcf))/0x1+-parseInt(_0x22e3a4(0x1f1))/0x2*(-parseInt(_0x22e3a4(0x21d))/0x3)+-parseInt(_0x22e3a4(0x269))/0x4*(-parseInt(_0x22e3a4(0x21f))/0x5)+-parseInt(_0x22e3a4(0x211))/0x6+parseInt(_0x22e3a4(0x235))/0x7+-parseInt(_0x22e3a4(0x1b7))/0x8*(parseInt(_0x22e3a4(0x1b4))/0x9)+parseInt(_0x22e3a4(0x274))/0xa;if(_0x5401e7===_0x26c47c)break;else _0x5050b2['push'](_0x5050b2['shift']());}catch(_0x18e6d6){_0x5050b2['push'](_0x5050b2['shift']());}}}(_0x30a7,0x3fcf2));var kt=Object[_0x350772(0x14f)],Ht=(_0x36fea1,_0x271928,_0x4f46ca)=>_0x271928 in _0x36fea1?kt(_0x36fea1,_0x271928,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f46ca}):_0x36fea1[_0x271928]=_0x4f46ca,_=(_0x19434d,_0x1995fd,_0x16ab4f)=>Ht(_0x19434d,typeof _0x1995fd!=_0x350772(0x2b9)?_0x1995fd+'':_0x1995fd,_0x16ab4f);import{jsx as _0x246fec,jsxs as _0x5a115a}from'react/jsx-runtime';import{CollaborationStatus as _0x180dd3,CollaborationSessionService as _0x13b5b6,CollaborationController as _0x1e6a4e,DataLoaderService as _0x294538,MemberService as _0x52df85,SessionStatus as _0x1c77d0,ILocalCacheService as _0x5c5358,CollaborationUIEventService as _0x9b1590,CollaborationUIEventId as _0x2b9ee3,DocCollaborationEntity as _0xe5876,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3fa50f,getLocalCacheKey as _0x40a77a,LOCAL_CACHE_INTERVAL as _0x1de824,LOCAL_CACHE_INTERVAL_KEY as _0x251a18,UniverCollaborationClientPlugin as _0x39440b,CollaborationSocketService as _0x569b8c,DEFAULT_WS_SESSION_TICKET_URL as _0x4e1a77,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5e58e4,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0xd8680f,UnitStatus as _0x32ac9a}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x57786a,IUniverInstanceService as _0xbcb279,Inject as _0x1ada69,Injector as _0x37163f,Disposable as _0x2d8b34,createIdentifier as _0x1774d0,ILogService as _0x3d4f4a,ICommandService as _0x5df3ab,Optional as _0x38f252,RxDisposable as _0x3e95b8,Workbook as _0xda32c5,DOC_RANGE_TYPE as _0x1fab1a,debounce as _0x54c55d,Rectangle as _0x5acc85,DisposableCollection as _0x182a59,toDisposable as _0x296cd2,UniverInstanceType as _0x2ebb81,generateRandomId as _0x43b449,COLORS as _0x1b0abb,ColorKit as _0x1e2ad1,ThemeService as _0x3617fd,fromEventSubject as _0x2754b0,Tools as _0x2d642b,CommandType as _0x4dffdb,IConfigService as _0x20c298,CanceledError as _0x140840,isFormulaString as _0x1c6988,isFormulaId as _0x392987,ILocalStorageService as _0x48d2fd,DependentOn as _0x418b27,Plugin as _0x47149e,merge as _0x1e3d46,registerDependencies as _0x535a10,mergeOverrideWithDependencies as _0x8250d8,touchDependencies as _0x8549f3}from'@univerjs/core';import{useObservable as _0x416760,useDependency as _0x4af09c,IUIPartsService as _0x5638da,BuiltInUIPart as _0x3c2daa,connectInjector as _0x6134a2,IBeforeCloseService as _0x48b30a,IMessageService as _0x41069b,INotificationService as _0x2b8f27}from'@univerjs/ui';import{BehaviorSubject as _0x1cc040,switchMap as _0x554a5c,of as _0x37bd79,takeUntil as _0x561bd3,debounceTime as _0x4bb6e6,Subject as _0x4e3abd,filter as _0x57538f,merge as _0x42ed05,combineLatest as _0x264ffa,fromEvent as _0x46d8b5,shareReplay as _0x341114,mapTo as _0x477239,distinctUntilChanged as _0x9b68fc}from'rxjs';import{Tooltip as _0x2394d1,clsx as _0x5a546f,MessageType as _0x13949b}from'@univerjs/design';import{forwardRef as _0x56ee26,useRef as _0x83dcd6,createElement as _0x2531c4,useCallback as _0x311ea5}from'react';import{IRemoteInstanceService as _0x5f3fe1}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x20572e,RefRangeService as _0x388961,SetSelectionsOperation as _0x254310,SheetsSelectionsService as _0x51e3a3,EffectRefRangId as _0x216edf,handleIRemoveRow as _0x3e2bf0,handleIRemoveCol as _0x234858,handleMoveRange as _0x557e56,handleInsertRow as _0x3fba3f,handleInsertRangeMoveRight as _0xfc5eb2,handleInsertRangeMoveDown as _0x4f512d,handleInsertCol as _0x49dcc1,handleDeleteRangeMoveUp as _0x437356,handleDeleteRangeMoveLeft as _0x49e285,runRefRangeMutations as _0x10f8a1}from'@univerjs/sheets';import{Shape as _0x316be7,Rect as _0x154153,getColor as _0x4740de,RegularPolygon as _0x5f4a89,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x239e83,Vector2 as _0x53f9d6,SHEET_VIEWPORT_KEY as _0x3d904a,IRenderManagerService as _0xef866a}from'@univerjs/engine-render';import{HTTPService as _0x1def6f,ISocketService as _0x51a87f,WebSocketService as _0x5c837c}from'@univerjs/network';import{IDocClipboardService as _0x426fd6,NodePositionConvertToCursor as _0x23b453,NodePositionConvertToRectRange as _0x4c81a5,TEXT_RANGE_LAYER_INDEX as _0x3d216c,SetDocZoomRatioOperation as _0x49cb7f,DocIMEInputManagerService as _0x10bdfa,DocStateChangeManagerService as _0x25d3bb}from'@univerjs/docs-ui';import{IImageIoService as _0x43cd35}from'@univerjs/drawing';import{ITransformService as _0x3f4e3f,CollaborationEvent as _0x29b382,isTransformMutationFailure as _0x456676,isTransformMutationsWithChangesetSuccess as _0x1d6d36,RevisionService as _0x18b0c3,ISnapshotServerService as _0x5de3db}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x309f97,RichTextEditingMutation as _0x4778c0,DocSelectionManagerService as _0x47440a,DocSkeletonManagerService as _0x107acb}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x4ca388,serializeRangeWithSheet as _0x247e4f,FormulaExecuteStageType as _0x33c948,FormulaExecutedStateType as _0x323fe9,SetFormulaCalculationStartMutation as _0x17319b,SetFormulaCalculationNotificationMutation as _0x37a5a7}from'@univerjs/engine-formula';import{map as _0x273082,filter as _0x564fd5,throttleTime as _0xe18dca,takeUntil as _0x140ecf,switchMap as _0xa0b962}from'rxjs/operators';import{SheetSkeletonManagerService as _0x301028,getCoordByCell as _0x26559f,getSheetObject as _0x15f05b}from'@univerjs/sheets-ui';var g=function(){const _0x1df082=_0x350772;return g=Object[_0x1df082(0x2d4)]||function(_0x4332ab){const _0x2a0e78=_0x1df082;for(var _0x5893f5,_0x2d87d4=0x1,_0x2a8600=arguments[_0x2a0e78(0x2e6)];_0x2d87d4<_0x2a8600;_0x2d87d4++){_0x5893f5=arguments[_0x2d87d4];for(var _0xa7dfa8 in _0x5893f5)Object[_0x2a0e78(0x13b)][_0x2a0e78(0x245)][_0x2a0e78(0x2a7)](_0x5893f5,_0xa7dfa8)&&(_0x4332ab[_0xa7dfa8]=_0x5893f5[_0xa7dfa8]);}return _0x4332ab;},g[_0x1df082(0x294)](this,arguments);},Ii=function(_0x214918,_0x4132cc){const _0x12c8d2=_0x350772;var _0x18b8f5={};for(var _0x140bd0 in _0x214918)Object[_0x12c8d2(0x13b)][_0x12c8d2(0x245)][_0x12c8d2(0x2a7)](_0x214918,_0x140bd0)&&_0x4132cc[_0x12c8d2(0x1a3)](_0x140bd0)<0x0&&(_0x18b8f5[_0x140bd0]=_0x214918[_0x140bd0]);if(_0x214918!=null&&typeof Object[_0x12c8d2(0x2ae)]==_0x12c8d2(0x1ae)){for(var _0x1931f4=0x0,_0x140bd0=Object['getOwnPropertySymbols'](_0x214918);_0x1931f4<_0x140bd0[_0x12c8d2(0x2e6)];_0x1931f4++)_0x4132cc['indexOf'](_0x140bd0[_0x1931f4])<0x0&&Object[_0x12c8d2(0x13b)][_0x12c8d2(0x110)][_0x12c8d2(0x2a7)](_0x214918,_0x140bd0[_0x1931f4])&&(_0x18b8f5[_0x140bd0[_0x1931f4]]=_0x214918[_0x140bd0[_0x1931f4]]);}return _0x18b8f5;},Xe=_0x56ee26(function(_0x46b47e,_0xf4ab0d){const _0x296b9e=_0x350772;var _0x1c98d4=_0x46b47e['icon'],_0x4239dd=_0x46b47e['id'],_0x1490e6=_0x46b47e['className'],_0x204072=_0x46b47e[_0x296b9e(0x23a)],_0x3565f0=Ii(_0x46b47e,['icon','id',_0x296b9e(0x1f0),_0x296b9e(0x23a)]),_0x9c36c=_0x296b9e(0xca)[_0x296b9e(0x1b0)](_0x4239dd,'\x20')[_0x296b9e(0x1b0)](_0x1490e6||'')[_0x296b9e(0x11c)](),_0xc84274=_0x83dcd6('_'[_0x296b9e(0x1b0)](Ei()));return Lt(_0x1c98d4,''[_0x296b9e(0x1b0)](_0x4239dd),{'defIds':_0x1c98d4[_0x296b9e(0x1c0)],'idSuffix':_0xc84274['current']},g({'ref':_0xf4ab0d,'className':_0x9c36c},_0x3565f0),_0x204072);});function Lt(_0x580c4a,_0x497fde,_0x1aa7b0,_0x5f3095,_0x393546){const _0x317bbb=_0x350772;return _0x2531c4(_0x580c4a[_0x317bbb(0x127)],g(g({'key':_0x497fde},gi(_0x580c4a,_0x1aa7b0,_0x393546)),_0x5f3095),(vi(_0x580c4a,_0x1aa7b0)[_0x317bbb(0xe0)]||[])[_0x317bbb(0xba)](function(_0x29ba9f,_0x5a4ca0){const _0x1a3ce8=_0x317bbb;return Lt(_0x29ba9f,''[_0x1a3ce8(0x1b0)](_0x497fde,'-')['concat'](_0x580c4a['tag'],'-')[_0x1a3ce8(0x1b0)](_0x5a4ca0),_0x1aa7b0,void 0x0,_0x393546);}));}function gi(_0x4cce85,_0x5f1a27,_0x23dfc3){const _0x599560=_0x350772;var _0x5c6555=g({},_0x4cce85[_0x599560(0x25e)]);_0x23dfc3!=null&&_0x23dfc3['colorChannel1']&&_0x5c6555[_0x599560(0xd9)]==='colorChannel1'&&(_0x5c6555[_0x599560(0xd9)]=_0x23dfc3[_0x599560(0x178)]),_0x4cce85[_0x599560(0x127)]===_0x599560(0x27b)&&_0x5c6555['id']&&(_0x5c6555['id']=_0x5c6555['id']+_0x5f1a27['idSuffix']),Object[_0x599560(0x219)](_0x5c6555)[_0x599560(0x237)](function(_0x368c6c){const _0x2b4066=_0x599560;var _0x32993a=_0x368c6c[0x0],_0x383079=_0x368c6c[0x1];_0x32993a===_0x2b4066(0x27b)&&typeof _0x383079==_0x2b4066(0xa4)&&(_0x5c6555[_0x32993a]=_0x383079[_0x2b4066(0xe3)](/url\(#(.*)\)/,'url(#$1'[_0x2b4066(0x1b0)](_0x5f1a27[_0x2b4066(0xc9)],')')));});var _0x9c3763=_0x5f1a27[_0x599560(0x1c0)];return!_0x9c3763||_0x9c3763[_0x599560(0x2e6)]===0x0||(_0x4cce85[_0x599560(0x127)]===_0x599560(0x12f)&&_0x5c6555['xlink:href']&&(_0x5c6555[_0x599560(0x276)]=_0x5c6555['xlink:href']+_0x5f1a27['idSuffix']),Object['entries'](_0x5c6555)[_0x599560(0x237)](function(_0x46d50a){const _0x135809=_0x599560;var _0x117559=_0x46d50a[0x0],_0x16c2d9=_0x46d50a[0x1];typeof _0x16c2d9==_0x135809(0xa4)&&(_0x5c6555[_0x117559]=_0x16c2d9['replace'](/url\(#(.*)\)/,_0x135809(0x2b3)[_0x135809(0x1b0)](_0x5f1a27['idSuffix'],')')));})),_0x5c6555;}function vi(_0x3ea0dd,_0x1037ce){const _0x10f6b5=_0x350772;var _0xcae98,_0x5356d0=_0x1037ce[_0x10f6b5(0x1c0)];return!_0x5356d0||_0x5356d0['length']===0x0?_0x3ea0dd:_0x3ea0dd[_0x10f6b5(0x127)]===_0x10f6b5(0x27d)&&(!((_0xcae98=_0x3ea0dd[_0x10f6b5(0xe0)])===null||_0xcae98===void 0x0)&&_0xcae98['length'])?g(g({},_0x3ea0dd),{'children':_0x3ea0dd[_0x10f6b5(0xe0)][_0x10f6b5(0xba)](function(_0x2eafcb){const _0x22ac94=_0x10f6b5;return typeof _0x2eafcb[_0x22ac94(0x25e)]['id']==_0x22ac94(0xa4)&&_0x5356d0&&_0x5356d0[_0x22ac94(0x16d)](_0x2eafcb['attrs']['id'])?g(g({},_0x2eafcb),{'attrs':g(g({},_0x2eafcb['attrs']),{'id':_0x2eafcb['attrs']['id']+_0x1037ce[_0x22ac94(0xc9)]})}):_0x2eafcb;})}):_0x3ea0dd;}function Ei(){const _0x3359c=_0x350772;return Math[_0x3359c(0x1e7)]()[_0x3359c(0x207)](0x24)[_0x3359c(0x137)](0x2,0x8);}Xe[_0x350772(0x151)]=_0x350772(0x1d9);var pi={'tag':'svg','attrs':{'xmlns':_0x350772(0x1cd),'fill':_0x350772(0x106),'viewBox':_0x350772(0x21e),'width':_0x350772(0x22b),'height':_0x350772(0x22b)},'children':[{'tag':'g','attrs':{'clipPath':_0x350772(0x27a)},'children':[{'tag':'path','attrs':{'stroke':_0x350772(0x2b4),'d':_0x350772(0xdf),'strokeLinecap':_0x350772(0x1ac),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x350772(0x27d),'attrs':{},'children':[{'tag':_0x350772(0x2d5),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x350772(0x1b3)}}]}]}],'defIds':[_0x350772(0xed)]},Mt=_0x56ee26(function(_0x86893a,_0x9d2c9){const _0x55a2c0=_0x350772;return _0x2531c4(Xe,Object[_0x55a2c0(0x2d4)]({},_0x86893a,{'id':_0x55a2c0(0xad),'ref':_0x9d2c9,'icon':pi}));});Mt[_0x350772(0x151)]='OffLineIcon';var Oi={'tag':_0x350772(0x12e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x350772(0x106),'viewBox':'0\x200\x2017\x2016','width':_0x350772(0x22b),'height':_0x350772(0x22b)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x350772(0x2c7),'attrs':{'stroke':_0x350772(0x2b4),'d':_0x350772(0x16f),'strokeLinecap':_0x350772(0x1ac),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x350772(0x27d),'attrs':{},'children':[{'tag':_0x350772(0x2d5),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x350772(0x1d0),'d':_0x350772(0x1b3),'transform':_0x350772(0x1ad)}}]}]}],'defIds':[_0x350772(0x163)]},At=_0x56ee26(function(_0xcb49a7,_0x125513){const _0x48b73d=_0x350772;return _0x2531c4(Xe,Object[_0x48b73d(0x2d4)]({},_0xcb49a7,{'id':_0x48b73d(0x2e0),'ref':_0x125513,'icon':Oi}));});At[_0x350772(0x151)]='OnLineIcon';function Ti(_0x3e511b){const _0x3b0c62=_0x350772;switch(_0x3e511b){case _0x180dd3[_0x3b0c62(0x234)]:return _0x3b0c62(0x287);case _0x180dd3[_0x3b0c62(0x2af)]:return _0x3b0c62(0x1f4);case _0x180dd3[_0x3b0c62(0x1ef)]:return'collabStatus.fetchMiss';case _0x180dd3[_0x3b0c62(0x2b5)]:return'collabStatus.notCollab';case _0x180dd3[_0x3b0c62(0xd8)]:case _0x180dd3[_0x3b0c62(0x14e)]:return'collabStatus.syncing';case _0x180dd3[_0x3b0c62(0x1e3)]:case _0x180dd3[_0x3b0c62(0xcc)]:return'collabStatus.synced';}}function Ci(_0x454c74){const _0x3980ed=_0x350772,{status$:_0x4de2eb}=_0x454c74,_0x3b17ee=_0x416760(_0x4de2eb,_0x180dd3[_0x3980ed(0x2b5)]),_0x48b930=_0x4af09c(_0x57786a),_0x335447=_0x4af09c(_0x13b5b6),_0xf16aa0=_0x3b17ee!==_0x180dd3[_0x3980ed(0x234)],_0x5ee512=_0x48b930['t'](Ti(_0x3b17ee)),_0x542a52=_0xf16aa0?_0x246fec(At,{}):_0x246fec(Mt,{}),_0x230419=_0x311ea5(()=>{const _0x1b5ce8=_0x3980ed;_0xf16aa0||_0x335447[_0x1b5ce8(0x199)]();},[_0xf16aa0,_0x335447]);function _0x397100(){const _0xe71412=_0x3980ed;return _0x5a115a('div',{'className':'univer-flex\x20univer-items-center','onClick':_0x230419,'children':[_0x246fec(_0xe71412(0x22e),{'className':_0x5a546f('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0xf16aa0,'univer-text-red-500':!_0xf16aa0}),'children':_0x542a52}),_0x246fec(_0xe71412(0x22e),{'className':_0xe71412(0x11d),'children':_0x5ee512})]});}return _0xf16aa0?_0x397100():_0x246fec(_0x2394d1,{'title':_0x48b930['t']('collab-client.tooltip.reconnect'),'children':_0x397100()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0xd8bb98,_0x41bfe1,_0x2d7181,_0x5f09cd)=>{for(var _0x93c26=_0x5f09cd>0x1?void 0x0:_0x5f09cd?Ri(_0x41bfe1,_0x2d7181):_0x41bfe1,_0x276649=_0xd8bb98['length']-0x1,_0x3bc00c;_0x276649>=0x0;_0x276649--)(_0x3bc00c=_0xd8bb98[_0x276649])&&(_0x93c26=_0x3bc00c(_0x93c26)||_0x93c26);return _0x93c26;},ie=(_0x39fdb7,_0x4eb065)=>(_0xe65408,_0x2b09bd)=>_0x4eb065(_0xe65408,_0x2b09bd,_0x39fdb7);let ae=class extends _0x2d8b34{constructor(_0x3de38f,_0x5c596a,_0x5599c3,_0x14e387){const _0x2a6cd8=_0x350772;super(),_(this,'_status$',new _0x1cc040(_0x180dd3['NOT_COLLAB'])),(this[_0x2a6cd8(0x1b6)]=_0x3de38f,this['_injector']=_0x5c596a,this[_0x2a6cd8(0x2c3)]=_0x5599c3,this[_0x2a6cd8(0x2a3)]=_0x14e387,this[_0x2a6cd8(0xa1)](),this['_initStatusListener']());}[_0x350772(0x24f)](){const _0x41f0e6=_0x350772;this[_0x41f0e6(0x222)](this[_0x41f0e6(0x1b6)][_0x41f0e6(0x212)][_0x41f0e6(0xcb)](_0x554a5c(()=>{const _0x25431f=_0x41f0e6,_0x5d1cd3=this[_0x25431f(0x1b6)]['getFocusedUnit']();return _0x5d1cd3?this[_0x25431f(0x2c3)][_0x25431f(0x182)](_0x5d1cd3[_0x25431f(0x25a)]()):_0x37bd79(null);}),_0x554a5c(_0x79d068=>_0x79d068?_0x79d068[_0x41f0e6(0x14b)]:_0x37bd79(_0x180dd3[_0x41f0e6(0x2b5)])))[_0x41f0e6(0x28a)](_0x59a917=>{const _0x34cb54=_0x41f0e6;this[_0x34cb54(0xea)]['next'](_0x59a917);}));}[_0x350772(0xa1)](){const _0x5b98be=_0x350772;this[_0x5b98be(0x222)](this[_0x5b98be(0x2a3)][_0x5b98be(0xa7)](_0x3c2daa[_0x5b98be(0x205)],()=>_0x6134a2(bi({'status$':this[_0x5b98be(0xea)]['asObservable']()}),this[_0x5b98be(0x12a)])));}};ae=Di([ie(0x0,_0xbcb279),ie(0x1,_0x1ada69(_0x37163f)),ie(0x2,_0x1ada69(_0x1e6a4e)),ie(0x3,_0x5638da)],ae);function bi(_0xd3ba45){const {status$:_0x877af6}=_0xd3ba45;return function(){return _0x246fec(Ci,{'status$':_0x877af6});};}const Pt=_0x1774d0('uni.network.url-service');var Ni=Object[_0x350772(0x2c2)],Ui=(_0x41f02f,_0x1071f4,_0x167760,_0x58d1ac)=>{const _0x1eced8=_0x350772;for(var _0x4ba021=_0x58d1ac>0x1?void 0x0:_0x58d1ac?Ni(_0x1071f4,_0x167760):_0x1071f4,_0x2cd29d=_0x41f02f[_0x1eced8(0x2e6)]-0x1,_0x179c92;_0x2cd29d>=0x0;_0x2cd29d--)(_0x179c92=_0x41f02f[_0x2cd29d])&&(_0x4ba021=_0x179c92(_0x4ba021)||_0x4ba021);return _0x4ba021;},z=(_0xc4ada3,_0x2454b1)=>(_0x4e2dcc,_0x3007f3)=>_0x2454b1(_0x4e2dcc,_0x3007f3,_0xc4ada3);let ce=class extends _0x3e95b8{constructor(_0x47b0cd,_0x406534,_0x304579,_0x24e3fe,_0x3d0e6a){const _0x30fc7b=_0x350772;super(),this[_0x30fc7b(0xbf)]=_0x47b0cd,this[_0x30fc7b(0x1cf)]=_0x406534,this[_0x30fc7b(0xe1)]=_0x304579,this[_0x30fc7b(0x230)]=_0x24e3fe,_0x3d0e6a?_0x3d0e6a==null||_0x3d0e6a[_0x30fc7b(0x165)]()[_0x30fc7b(0x1e9)](()=>this[_0x30fc7b(0x2e4)]()):(this['_logService'][_0x30fc7b(0x2ca)](_0x30fc7b(0x1a8),_0x30fc7b(0x1c9)),this[_0x30fc7b(0x2e4)]());}async[_0x350772(0x2e4)](){const _0x5adb78=_0x350772,_0xb19594=this[_0x5adb78(0xbf)][_0x5adb78(0x1d7)](_0x5adb78(0x298)),_0x46ef2d=this[_0x5adb78(0xbf)][_0x5adb78(0x1d7)](_0x5adb78(0xbd)),_0x17ded5=this[_0x5adb78(0xbf)][_0x5adb78(0x1d7)](_0x5adb78(0x268));if(!_0xb19594||!_0x46ef2d){this[_0x5adb78(0x1cf)][_0x5adb78(0x2ca)](_0x5adb78(0x1a8),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0xca352e=await this['_dataLoaderService'][_0x5adb78(0xef)](_0xb19594,Number(_0x46ef2d),_0x17ded5);_0xca352e&&_0xca352e instanceof _0xda32c5&&this[_0x5adb78(0x10f)](_0xca352e);}async['_setupSubUnitSync'](_0x56e315){const _0x19ee9c=_0x350772;await this[_0x19ee9c(0x115)](_0x56e315),_0x56e315[_0x19ee9c(0x2db)][_0x19ee9c(0xcb)](_0x561bd3(this[_0x19ee9c(0xa8)]))[_0x19ee9c(0x28a)](_0x4279be=>{_0x4279be&&this['_updateURLWithCurrentState'](_0x4279be);}),this['_urlService'][_0x19ee9c(0x26e)][_0x19ee9c(0xcb)](_0x561bd3(this[_0x19ee9c(0xa8)]))[_0x19ee9c(0x28a)](()=>this['_updateSubUnitFromURLParams'](_0x56e315));}['_updateURLWithCurrentState'](_0x16f1d2,_0x1b48c9=!0x1){const _0x476982=_0x350772,_0x4e9401=this[_0x476982(0xbf)]['getParam']('subunit');_0x16f1d2[_0x476982(0xbb)]()!==_0x4e9401&&this[_0x476982(0xbf)][_0x476982(0x117)](_0x476982(0x268),_0x16f1d2[_0x476982(0xbb)](),_0x1b48c9);}async['_updateSubUnitFromURLParams'](_0x1e8676){const _0x3fe9ae=_0x350772;var _0x48f2e3;const _0x4107e7=this[_0x3fe9ae(0xbf)][_0x3fe9ae(0x1d7)](_0x3fe9ae(0x268));if(!_0x4107e7||!_0x1e8676[_0x3fe9ae(0x232)](_0x4107e7)){const _0x4ca4d4=_0x1e8676[_0x3fe9ae(0x2b6)]()[0x0],_0x3eb30b=_0x1e8676[_0x3fe9ae(0x232)](_0x4ca4d4);if(!_0x3eb30b)return;this[_0x3fe9ae(0x1e1)](_0x3eb30b,!0x0),await this[_0x3fe9ae(0xe1)][_0x3fe9ae(0xa0)](_0x20572e['id'],{'unitId':_0x1e8676[_0x3fe9ae(0x25a)](),'subUnitId':_0x4ca4d4});return;}((_0x48f2e3=_0x1e8676[_0x3fe9ae(0x1bc)]())==null?void 0x0:_0x48f2e3[_0x3fe9ae(0xbb)]())!==_0x4107e7&&await this['_commandService'][_0x3fe9ae(0xa0)](_0x20572e['id'],{'unitId':_0x1e8676[_0x3fe9ae(0x25a)](),'subUnitId':_0x4107e7});}};ce=Ui([z(0x0,Pt),z(0x1,_0x3d4f4a),z(0x2,_0x5df3ab),z(0x3,_0x1ada69(_0x294538)),z(0x4,_0x38f252(_0x5f3fe1))],ce);var Li=Object[_0x350772(0x2c2)],Mi=(_0x2aceb1,_0x33c42f,_0x2f2541,_0x13a441)=>{const _0x52f41e=_0x350772;for(var _0x4724d1=_0x13a441>0x1?void 0x0:_0x13a441?Li(_0x33c42f,_0x2f2541):_0x33c42f,_0xf3a6e2=_0x2aceb1[_0x52f41e(0x2e6)]-0x1,_0x19266e;_0xf3a6e2>=0x0;_0xf3a6e2--)(_0x19266e=_0x2aceb1[_0xf3a6e2])&&(_0x4724d1=_0x19266e(_0x4724d1)||_0x4724d1);return _0x4724d1;},it=(_0x50ff52,_0x16f242)=>(_0x1473ca,_0x4cf395)=>_0x16f242(_0x1473ca,_0x4cf395,_0x50ff52);let Pe=class extends _0x3e95b8{constructor(_0x219c44,_0x3c913a){const _0x4ccff1=_0x350772;super(),this[_0x4ccff1(0x11e)]=_0x219c44,this[_0x4ccff1(0x236)]=_0x3c913a,this[_0x4ccff1(0x2e4)]();}['_init'](){const _0x12b8bc=_0x350772,_0x3a58c2=this;this[_0x12b8bc(0x222)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x1619ae=>{const _0x5e96a2=_0x12b8bc,_0x5426d1=await _0x3a58c2[_0x5e96a2(0x236)][_0x5e96a2(0x1a0)](_0x1619ae);return _0x5426d1?{'source':_0x5426d1[_0x5e96a2(0x113)],'imageSourceType':_0x5426d1[_0x5e96a2(0x101)]}:null;}}));}};Pe=Mi([it(0x0,_0x426fd6),it(0x1,_0x43cd35)],Pe);const nt=['purple.300','jiqing.500',_0x350772(0x2a2),'red.300',_0x350772(0x1d4),_0x350772(0x17e)];class Ge extends _0x2d8b34{constructor(){const _0x5f4c03=_0x350772;super(...arguments),_(this,_0x5f4c03(0x1af),new Map()),_(this,'_colorIndex',0x0);}[_0x350772(0x251)](_0x33ddb3){const _0x333ec0=_0x350772;if(this[_0x333ec0(0x1af)]['has'](_0x33ddb3))return this[_0x333ec0(0x1af)][_0x333ec0(0xc6)](_0x33ddb3);const _0x39409f=nt[this[_0x333ec0(0x1b2)]];return this[_0x333ec0(0x1b2)]=(this[_0x333ec0(0x1b2)]+0x1)%nt[_0x333ec0(0x2e6)],this[_0x333ec0(0x1af)][_0x333ec0(0x279)](_0x33ddb3,_0x39409f),_0x39409f;}}function wt(_0x1998c3){const _0x408f8c=_0x350772;let _0xdbb92a='';for(const _0x1c06e6 of _0x1998c3){const {startOffset:_0x10ad2a,endOffset:_0x351acf,isActive:_0x5abfb5,rangeType:_0x341e00,segmentId:_0x14e1b7,segmentPage:_0x192db6}=_0x1c06e6;_0xdbb92a[_0x408f8c(0x2e6)]&&(_0xdbb92a+=','),_0xdbb92a+=_0x10ad2a+':'+_0x351acf+':'+(_0x5abfb5?'1':'0')+':'+_0x341e00+':'+_0x14e1b7+':'+_0x192db6;}return _0xdbb92a;}function Ai(_0x459f81){const _0x1d7c9a=_0x350772,_0x2428be=_0x459f81[_0x1d7c9a(0x201)](','),_0x235344=[];for(const _0x3177bc of _0x2428be){const [_0x30ddf6,_0x1c6d4d,_0x2125d0,_0x561ccc,_0xb01d79,_0x1f52e9]=_0x3177bc[_0x1d7c9a(0x201)](':');_0x235344['push']({'startOffset':Number(_0x30ddf6),'endOffset':Number(_0x1c6d4d),'collapsed':_0x30ddf6===_0x1c6d4d,'isActive':_0x2125d0==='1','rangeType':_0x561ccc===_0x1fab1a[_0x1d7c9a(0x124)]?_0x1fab1a[_0x1d7c9a(0x124)]:_0x1fab1a[_0x1d7c9a(0x120)],'segmentId':typeof _0xb01d79==_0x1d7c9a(0xa4)?String(_0xb01d79):'','segmentPage':Number(_0x1f52e9!=null?_0x1f52e9:-0x1)});}return _0x235344['some'](_0x4c5887=>_0x4c5887[_0x1d7c9a(0xb5)])||(_0x235344[0x0][_0x1d7c9a(0xb5)]=!0x0),_0x235344;}class Ke extends _0x3e95b8{constructor(){const _0x429fae=_0x350772;super(...arguments),_(this,'_collabCursorState$',new _0x1cc040(null)),_(this,'collabCursorState$',this[_0x429fae(0x1b8)]['asObservable']());}[_0x350772(0xc1)](_0x7b3117){const _0x5cf143=_0x350772,{unitID:_0x4cac3f,memberID:_0x1b4adb,textRanges:_0x540b52}=_0x7b3117,_0x1f7193=wt(_0x540b52);if(_0x1f7193==='')return;const _0x2a1f8f={'unitID':_0x4cac3f,'memberID':_0x1b4adb,'selection':_0x1f7193};this[_0x5cf143(0x1b8)][_0x5cf143(0x1c2)](_0x2a1f8f);}}var Pi=Object[_0x350772(0x2c2)],wi=(_0x132612,_0x1f79d7,_0x6f04b3,_0x11a228)=>{for(var _0x5cc152=_0x11a228>0x1?void 0x0:_0x11a228?Pi(_0x1f79d7,_0x6f04b3):_0x1f79d7,_0x48d7fc=_0x132612['length']-0x1,_0x3c472a;_0x48d7fc>=0x0;_0x48d7fc--)(_0x3c472a=_0x132612[_0x48d7fc])&&(_0x5cc152=_0x3c472a(_0x5cc152)||_0x5cc152);return _0x5cc152;},P=(_0x3adb7d,_0x3fb4ba)=>(_0x5dc807,_0x2f06a4)=>_0x3fb4ba(_0x5dc807,_0x2f06a4,_0x3adb7d);const yi=0x12c,$i=0x64;let we=class extends _0x3e95b8{constructor(_0x29c984,_0x204e42,_0x1b3795,_0x43ac95,_0x150a2e,_0x1d34a2,_0x8e0b9e,_0x4af583,_0x3a0d4f){const _0x48979=_0x350772;super(),_(this,_0x48979(0x12d),!0x1),_(this,_0x48979(0x2e4),!0x1),_(this,_0x48979(0x263),new _0x1cc040(new Map())),_(this,_0x48979(0x1fc),this['_cursorInfo$'][_0x48979(0x14a)]()),_(this,'_roomMembers$',new _0x1cc040([])),_(this,'roomMembers$',this['_roomMembers$'][_0x48979(0xcb)](_0x4bb6e6(yi))),_(this,_0x48979(0x1be),_0x54c55d(_0x5ba49d=>{const _0x337b14=_0x48979,_0x285ba8={'eventID':_0x29b382[_0x337b14(0xf2)],'data':{'unitID':this[_0x337b14(0x2cd)],'memberID':this[_0x337b14(0x128)]['getMemberID'](),'selection':wt(_0x5ba49d)}};this['_session']['send'](_0x285ba8,this['unitID']);},$i)),(this[_0x48979(0x2cd)]=_0x29c984,this[_0x48979(0x128)]=_0x204e42,this['_injector']=_0x1b3795,this[_0x48979(0xa6)]=_0x43ac95,this[_0x48979(0x20f)]=_0x150a2e,this[_0x48979(0xe9)]=_0x1d34a2,this[_0x48979(0x2cc)]=_0x8e0b9e,this[_0x48979(0x1b6)]=_0x4af583,this[_0x48979(0xe1)]=_0x3a0d4f);}get['cursorInfo'](){const _0x320885=_0x350772;return this[_0x320885(0x263)][_0x320885(0x10e)]();}get['roomMembers'](){const _0x51baed=_0x350772;return this[_0x51baed(0x15d)][_0x51baed(0x10e)]();}['dispose'](){const _0x3dc310=_0x350772;super[_0x3dc310(0x1e0)](),this['_cursorInfo$']['next'](new Map()),this[_0x3dc310(0x263)][_0x3dc310(0x156)](),this[_0x3dc310(0x15d)][_0x3dc310(0x1c2)]([]),this[_0x3dc310(0x15d)][_0x3dc310(0x156)]();}[_0x350772(0x1c6)](){const _0x21992f=_0x350772;this[_0x21992f(0x2e4)]||(this[_0x21992f(0x2e4)]=!0x0,this[_0x21992f(0x128)]['sessionStatus$'][_0x21992f(0xcb)](_0x561bd3(this['dispose$']))['subscribe'](_0x3ac95d=>{const _0x572956=_0x21992f;_0x3ac95d===_0x1c77d0[_0x572956(0x125)]?this['_toggleOnline']():this[_0x572956(0x1a5)]();}),this[_0x21992f(0x128)][_0x21992f(0x1b9)][_0x21992f(0xcb)](_0x561bd3(this[_0x21992f(0xa8)]))[_0x21992f(0x28a)](_0xc5b2cc=>{const _0x3218eb=_0x21992f,_0x1f9292=_0xc5b2cc[_0x3218eb(0x21b)];_0x1f9292===_0x29b382[_0x3218eb(0xf2)]&&this[_0x3218eb(0xe4)](_0xc5b2cc),_0x1f9292===_0x29b382[_0x3218eb(0x1fa)]&&this[_0x3218eb(0x11a)](_0xc5b2cc);}),this[_0x21992f(0x222)](this[_0x21992f(0xe1)]['onCommandExecuted'](_0x4e146=>{const _0x580730=_0x21992f,_0x298a8b=_0x4e146[_0x580730(0x22f)];_0x298a8b!=null&&this[_0x580730(0x12d)]&&_0x4e146['id']===_0x309f97['id']&&_0x298a8b[_0x580730(0x154)]===this['unitID']&&_0x298a8b['isEditing']===!0x1&&_0x298a8b['ranges']['length']>0x0&&this[_0x580730(0x1be)](_0x298a8b[_0x580730(0x112)]);})),this[_0x21992f(0xe9)][_0x21992f(0x29b)][_0x21992f(0xcb)](_0x561bd3(this['dispose$']))['subscribe'](_0x53e7a2=>{const _0x47829f=_0x21992f;if((_0x53e7a2==null?void 0x0:_0x53e7a2[_0x47829f(0x2cd)])!==this[_0x47829f(0x2cd)])return;const _0x398fd3={'eventID':_0x29b382[_0x47829f(0xf2)],'data':_0x53e7a2};this[_0x47829f(0xe4)](_0x398fd3);}),this[_0x21992f(0x222)](this[_0x21992f(0xe1)][_0x21992f(0x162)](_0x4390b4=>{const _0x45d795=_0x21992f;if(_0x4390b4['params']==null)return;const _0x497fe1=_0x4390b4[_0x45d795(0x22f)];if(_0x4390b4['id']!==_0x4778c0['id']||_0x497fe1['unitId']!==this[_0x45d795(0x2cd)])return;const _0x8bb512={'id':_0x45d795(0xe8),'params':_0x497fe1},_0x558a60=this[_0x45d795(0x2cf)];for(const [_0x30f1c9,_0x134545]of _0x558a60){const _0x30742a={'id':_0x45d795(0xe8),'params':{'unitId':this[_0x45d795(0x2cd)],'actions':null,'textRanges':_0x134545['ranges']}},_0x5374a1=this[_0x45d795(0x2cc)][_0x45d795(0x280)](_0x8bb512,_0x30742a,!0x1);if(_0x456676(_0x5374a1))throw _0x5374a1[_0x45d795(0x246)];_0x558a60[_0x45d795(0x279)](_0x30f1c9,{..._0x134545,'ranges':_0x5374a1['m2Prime'][_0x45d795(0x22f)][_0x45d795(0x102)]});}queueMicrotask(()=>{const _0x4a7157=_0x45d795;this['_cursorInfo$'][_0x4a7157(0x1c2)](_0x558a60);});})));}[_0x350772(0xe4)](_0x336718){const _0xd05263=_0x350772;var _0x5b6daa,_0x565101;const {memberID:_0x2d8ad7,selection:_0x599720}=_0x336718[_0xd05263(0x223)],_0x18aebf=Ai(_0x599720),_0x2c0fab=(_0x565101=(_0x5b6daa=this[_0xd05263(0x20f)]['getMember'](this[_0xd05263(0x2cd)],_0x2d8ad7))==null?void 0x0:_0x5b6daa[_0xd05263(0x2c1)])!=null?_0x565101:_0xd05263(0xa2),_0x4a37c7={'color':this['_colorAssignService'][_0xd05263(0x251)](_0x2d8ad7),'name':_0x2c0fab,'ranges':_0x18aebf},_0x31ca7b=this[_0xd05263(0x2cf)];_0x31ca7b[_0xd05263(0x279)](_0x2d8ad7,_0x4a37c7),this[_0xd05263(0x263)]['next'](_0x31ca7b);}['_onCursorDelete'](_0x335974){const _0x926b36=_0x350772,{memberID:_0x18d175}=_0x335974[_0x926b36(0x223)],_0x47ef29=this['cursorInfo'];_0x47ef29[_0x926b36(0x218)](_0x18d175),this[_0x926b36(0x263)][_0x926b36(0x1c2)](_0x47ef29);}[_0x350772(0x1a6)](){const _0xe24672=_0x350772;var _0x118962;if(this[_0xe24672(0x12d)]=!0x0,((_0x118962=this[_0xe24672(0x1b6)][_0xe24672(0x15f)]())==null?void 0x0:_0x118962[_0xe24672(0x25a)]())!==this[_0xe24672(0x2cd)])return;const _0x3b4bdb=this[_0xe24672(0x12a)][_0xe24672(0xc6)](_0x47440a)['getDocRanges']();Array['isArray'](_0x3b4bdb)&&_0x3b4bdb[_0xe24672(0x2e6)]>0x0&&this[_0xe24672(0x1be)](_0x3b4bdb);}[_0x350772(0x1a5)](){const _0x404294=_0x350772;this[_0x404294(0x12d)]=!0x1;}};we=wi([P(0x2,_0x1ada69(_0x37163f)),P(0x3,_0x1ada69(Ge)),P(0x4,_0x1ada69(_0x52df85)),P(0x5,_0x1ada69(Ke)),P(0x6,_0x3f4e3f),P(0x7,_0xbcb279),P(0x8,_0x5df3ab)],we);var xi=Object[_0x350772(0x2c2)],Bi=(_0x49f80d,_0x518a5c,_0x41925d,_0x5f907c)=>{for(var _0x44022b=_0x5f907c>0x1?void 0x0:_0x5f907c?xi(_0x518a5c,_0x41925d):_0x518a5c,_0x49cd26=_0x49f80d['length']-0x1,_0x3eacac;_0x49cd26>=0x0;_0x49cd26--)(_0x3eacac=_0x49f80d[_0x49cd26])&&(_0x44022b=_0x3eacac(_0x44022b)||_0x44022b);return _0x44022b;},F=(_0x32f87c,_0xde69eb)=>(_0x386c83,_0x3aa8ef)=>_0xde69eb(_0x386c83,_0x3aa8ef,_0x32f87c);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x55725a=[],_0x7e7f54=!0x1;return _0x332625=>{const _0x1814b8=_0x2f90;_0x55725a[_0x1814b8(0x25d)](_0x332625),_0x7e7f54||(_0x7e7f54=!0x0,setTimeout(()=>{const _0x4a6378=_0x1814b8;_0x55725a[_0x4a6378(0x237)](_0x3b1411=>_0x3b1411()),_0x55725a=[],_0x7e7f54=!0x1;}));};};let ye=class extends _0x3e95b8{constructor(_0x2408b3,_0x1112a6,_0x202157,_0x1279de,_0x2694ee,_0x1ac281,_0x1b60f5,_0x5b14bb){const _0x2dcefb=_0x350772;super(),_(this,_0x2dcefb(0x12d),!0x1),_(this,'_init',!0x1),_(this,_0x2dcefb(0x263),new _0x1cc040(new Map())),_(this,'cursorInfo$',this[_0x2dcefb(0x263)][_0x2dcefb(0x14a)]()),_(this,_0x2dcefb(0x15d),new _0x1cc040([])),_(this,'roomMembers$',this[_0x2dcefb(0x15d)]['pipe'](_0x4bb6e6(Fi))),_(this,_0x2dcefb(0x1be),_0x54c55d((_0x3dc373,_0x4cc921)=>{const _0x28ebe1=_0x2dcefb,_0x2d2b73={'eventID':_0x29b382[_0x28ebe1(0xf2)],'data':{'unitID':this[_0x28ebe1(0x2cd)],'memberID':this[_0x28ebe1(0x128)]['getMemberID'](),'selection':_0x247e4f(_0x3dc373,_0x4cc921[_0x28ebe1(0x28c)])}};this[_0x28ebe1(0x128)][_0x28ebe1(0x282)](_0x2d2b73,this[_0x28ebe1(0x2cd)]);},ki)),(this[_0x2dcefb(0x2cd)]=_0x2408b3,this[_0x2dcefb(0x128)]=_0x1112a6,this[_0x2dcefb(0x12a)]=_0x202157,this[_0x2dcefb(0xa6)]=_0x1279de,this[_0x2dcefb(0x20f)]=_0x2694ee,this[_0x2dcefb(0x1b6)]=_0x1ac281,this[_0x2dcefb(0xe1)]=_0x1b60f5,this[_0x2dcefb(0x11b)]=_0x5b14bb);}get[_0x350772(0x2cf)](){const _0x69b776=_0x350772;return this[_0x69b776(0x263)][_0x69b776(0x10e)]();}get['roomMembers'](){const _0x106396=_0x350772;return this[_0x106396(0x15d)][_0x106396(0x10e)]();}['dispose'](){const _0x1d39ff=_0x350772;super['dispose'](),this[_0x1d39ff(0x263)][_0x1d39ff(0x1c2)](new Map()),this[_0x1d39ff(0x263)][_0x1d39ff(0x156)](),this[_0x1d39ff(0x15d)][_0x1d39ff(0x1c2)]([]),this[_0x1d39ff(0x15d)][_0x1d39ff(0x156)]();}['init'](){const _0x37925e=_0x350772;this[_0x37925e(0x2e4)]||(this[_0x37925e(0x2e4)]=!0x0,this[_0x37925e(0x128)][_0x37925e(0x25c)][_0x37925e(0xcb)](_0x561bd3(this[_0x37925e(0xa8)]))[_0x37925e(0x28a)](_0x5ad7af=>{const _0x521cd5=_0x37925e;_0x5ad7af===_0x1c77d0[_0x521cd5(0x125)]?this[_0x521cd5(0x1a6)]():this[_0x521cd5(0x1a5)]();}),this[_0x37925e(0x128)][_0x37925e(0x1b9)][_0x37925e(0xcb)](_0x561bd3(this[_0x37925e(0xa8)]))['subscribe'](_0x1477a2=>{const _0x133a5a=_0x37925e,_0x19edb5=_0x1477a2[_0x133a5a(0x21b)];_0x19edb5===_0x29b382['UPDATE_CURSOR']&&this[_0x133a5a(0xe4)](_0x1477a2),_0x19edb5===_0x29b382[_0x133a5a(0x1fa)]&&this[_0x133a5a(0x11a)](_0x1477a2);}),this[_0x37925e(0xf7)](),this[_0x37925e(0x222)](this['_commandService']['onCommandExecuted'](_0x4fe304=>{const _0x222b6c=_0x37925e;if(this[_0x222b6c(0x12d)]&&_0x4fe304['id']===_0x254310['id']&&_0x4fe304['params'][_0x222b6c(0x154)]===this[_0x222b6c(0x2cd)]){const _0x5b565a=_0x4fe304[_0x222b6c(0x22f)];this[_0x222b6c(0x1be)](_0x5b565a[_0x222b6c(0x291)],_0x5b565a[_0x222b6c(0x158)][0x0]);}})));}[_0x350772(0xe4)](_0x1b32a5){const _0x3cd49c=_0x350772;var _0x5d4abf,_0x24ade9;const {memberID:_0x232c30,selection:_0x564b9a}=_0x1b32a5[_0x3cd49c(0x223)],{sheetName:_0x2f5ab5,range:_0x1bf59b}=_0x4ca388(_0x564b9a),_0x5a92ff={'name':(_0x24ade9=(_0x5d4abf=this[_0x3cd49c(0x20f)][_0x3cd49c(0x1ec)](this[_0x3cd49c(0x2cd)],_0x232c30))==null?void 0x0:_0x5d4abf[_0x3cd49c(0x2c1)])!=null?_0x24ade9:_0x3cd49c(0xa2),'range':this['_getMergeRange'](_0x2f5ab5,_0x1bf59b),'sheetID':_0x2f5ab5,'color':this[_0x3cd49c(0xa6)][_0x3cd49c(0x251)](_0x232c30),'selection':_0x564b9a},_0x220701=this['cursorInfo'];_0x220701[_0x3cd49c(0x279)](_0x232c30,_0x5a92ff),this[_0x3cd49c(0x263)][_0x3cd49c(0x1c2)](_0x220701);}[_0x350772(0x11a)](_0x183df3){const _0x48d9f2=_0x350772,{memberID:_0x7e411e}=_0x183df3['data'],_0x3d6628=this[_0x48d9f2(0x2cf)];_0x3d6628[_0x48d9f2(0x218)](_0x7e411e),this[_0x48d9f2(0x263)][_0x48d9f2(0x1c2)](_0x3d6628);}['_getMergeRange'](_0x2ea29a,_0x3d8c05){const _0x41c772=_0x350772;var _0x54cee2,_0xb528eb;const _0x5b8111=(_0xb528eb=(_0x54cee2=this['_univerInstanceService'][_0x41c772(0x23e)](this[_0x41c772(0x2cd)]))==null?void 0x0:_0x54cee2[_0x41c772(0x232)](_0x2ea29a))==null?void 0x0:_0xb528eb[_0x41c772(0x109)]();return(_0x5b8111==null?void 0x0:_0x5b8111[_0x41c772(0x131)](_0x543aff=>_0x5acc85[_0x41c772(0x2cb)](_0x543aff,_0x3d8c05)))||_0x3d8c05;}['_onRefRangeChange'](){const _0x1d7f1b=_0x350772,_0x1810e2=new _0x182a59(),_0x2ee2b3=Hi(),_0x123da6=()=>{_0x1810e2['dispose']();const _0x389314=(_0x9f7164,_0x121a1a,_0x58299f,_0x35bb0b)=>{const _0xb5854f=_0x2f90;let _0x29caac=[];switch(_0x9f7164['id']){case _0x216edf[_0xb5854f(0x2c9)]:{_0x29caac=_0x49e285(_0x9f7164,_0x35bb0b);break;}case _0x216edf['DeleteRangeMoveUpCommandId']:{_0x29caac=_0x437356(_0x9f7164,_0x35bb0b);break;}case _0x216edf[_0xb5854f(0xeb)]:{_0x29caac=_0x49dcc1(_0x9f7164,_0x35bb0b);break;}case _0x216edf['InsertRangeMoveDownCommandId']:{_0x29caac=_0x4f512d(_0x9f7164,_0x35bb0b);break;}case _0x216edf[_0xb5854f(0xcd)]:{_0x29caac=_0xfc5eb2(_0x9f7164,_0x35bb0b);break;}case _0x216edf[_0xb5854f(0x126)]:{_0x29caac=_0x3fba3f(_0x9f7164,_0x35bb0b);break;}case _0x216edf['MoveRangeCommandId']:{_0x29caac=_0x557e56(_0x9f7164,_0x35bb0b);break;}case _0x216edf[_0xb5854f(0x147)]:{_0x29caac=_0x234858(_0x9f7164,_0x35bb0b);break;}case _0x216edf[_0xb5854f(0x140)]:{_0x29caac=_0x3e2bf0(_0x9f7164,_0x35bb0b);break;}}const _0x75762b=_0x10f8a1(_0x29caac,_0x35bb0b),_0x4cb608=this[_0xb5854f(0x2cf)][_0xb5854f(0xc6)](_0x121a1a);if(_0x4cb608&&_0x75762b){const _0x19818a={..._0x4cb608,'range':_0x75762b};this['cursorInfo'][_0xb5854f(0x279)](_0x121a1a,_0x19818a),_0x2ee2b3(()=>{const _0x39bb8b=_0xb5854f,_0x3a7031=this['_refRangeService'][_0x39bb8b(0x1dc)](_0x75762b,_0x2d13db=>(_0x3a7031['dispose'](),_0x389314(_0x2d13db,_0x121a1a,_0x58299f,_0x75762b)));_0x1810e2[_0x39bb8b(0x10c)](_0x3a7031);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x50ea51,_0x491fa8)=>{const _0x2bf275=_0x2f90,{range:_0xabdc3b,sheetID:_0x556e86}=_0x50ea51,_0x28ea39=this[_0x2bf275(0x11b)][_0x2bf275(0x1dc)](_0xabdc3b,_0x561f5d=>(_0x28ea39[_0x2bf275(0x1e0)](),_0x389314(_0x561f5d,_0x491fa8,_0x556e86,_0xabdc3b)));_0x1810e2[_0x2bf275(0x10c)](_0x28ea39);});};this[_0x1d7f1b(0x222)](_0x296cd2(this[_0x1d7f1b(0x263)][_0x1d7f1b(0x28a)](()=>{_0x123da6();})));}[_0x350772(0x1a6)](){const _0x5878fc=_0x350772;var _0xeea8cb,_0x3d5576;if(this[_0x5878fc(0x12d)]=!0x0,((_0xeea8cb=this[_0x5878fc(0x1b6)][_0x5878fc(0x15f)]())==null?void 0x0:_0xeea8cb[_0x5878fc(0x25a)]())!==this[_0x5878fc(0x2cd)])return;const _0x420f50=(_0x3d5576=this[_0x5878fc(0x12a)][_0x5878fc(0xc6)](_0x51e3a3)[_0x5878fc(0x2bf)]())==null?void 0x0:_0x3d5576[0x0],_0x19671c=this[_0x5878fc(0x1b6)][_0x5878fc(0xb3)](_0x2ebb81[_0x5878fc(0xb6)])[_0x5878fc(0x1bc)]();_0x420f50&&_0x19671c&&this[_0x5878fc(0x1be)](_0x19671c[_0x5878fc(0xbb)](),_0x420f50);}['_toggleOffline'](){const _0x542455=_0x350772;this[_0x542455(0x12d)]=!0x1;}};ye=Bi([F(0x2,_0x1ada69(_0x37163f)),F(0x3,_0x1ada69(Ge)),F(0x4,_0x1ada69(_0x52df85)),F(0x5,_0xbcb279),F(0x6,_0x5df3ab),F(0x7,_0x1ada69(_0x388961))],ye);var Yi=Object['getOwnPropertyDescriptor'],Wi=(_0x1dcf14,_0x3ae2ce,_0xc79822,_0xb248d2)=>{const _0x52d33d=_0x350772;for(var _0x1b13a1=_0xb248d2>0x1?void 0x0:_0xb248d2?Yi(_0x3ae2ce,_0xc79822):_0x3ae2ce,_0x50d875=_0x1dcf14[_0x52d33d(0x2e6)]-0x1,_0x2c64ea;_0x50d875>=0x0;_0x50d875--)(_0x2c64ea=_0x1dcf14[_0x50d875])&&(_0x1b13a1=_0x2c64ea(_0x1b13a1)||_0x1b13a1);return _0x1b13a1;},pe=(_0x4169ad,_0x3b4bbd)=>(_0xf75eb6,_0x444c25)=>_0x3b4bbd(_0xf75eb6,_0x444c25,_0x4169ad);let Y=class extends _0x3e95b8{constructor(_0x1c0b38,_0x430254,_0x49ff14){const _0x5af918=_0x350772;super(),_(this,'_entities',new Map()),_(this,_0x5af918(0x1d2),new _0x4e3abd()),(this[_0x5af918(0x1b6)]=_0x1c0b38,this[_0x5af918(0x12a)]=_0x430254,this[_0x5af918(0x292)]=_0x49ff14,this[_0x5af918(0x2e4)]());}[_0x350772(0x1e0)](){const _0x57f712=_0x350772;super['dispose'](),this[_0x57f712(0x1d2)][_0x57f712(0x156)](),this[_0x57f712(0x1fb)][_0x57f712(0x237)](_0x2dd2dc=>_0x2dd2dc[_0x57f712(0x1e0)]());}[_0x350772(0x286)](_0xa73772){const _0x2e4215=_0x350772;return this[_0x2e4215(0x1fb)][_0x2e4215(0x105)](_0xa73772)?this[_0x2e4215(0x1fb)][_0x2e4215(0xc6)](_0xa73772)[_0x2e4215(0x1fc)]:this[_0x2e4215(0x1d2)]['pipe'](_0x57538f(_0x3a5084=>_0x3a5084[_0x2e4215(0x2cd)]===_0xa73772),_0x554a5c(_0x25eb07=>_0x25eb07[_0x2e4215(0x1fc)]));}[_0x350772(0x2e4)](){const _0x41f953=_0x350772;this['_univerInstanceService'][_0x41f953(0x1bd)](_0x2ebb81[_0x41f953(0xb6)])[_0x41f953(0xcb)](_0x561bd3(this['dispose$']))['subscribe'](async _0x1636fb=>{const _0x2d9d6f=_0x41f953,_0x53dcf1=_0x1636fb[_0x2d9d6f(0x25a)](),_0x24f106=await this[_0x2d9d6f(0x15e)](_0x53dcf1);this[_0x2d9d6f(0x1d2)][_0x2d9d6f(0x1c2)](_0x24f106),this['_entities'][_0x2d9d6f(0x279)](_0x53dcf1,_0x24f106);}),this[_0x41f953(0x1b6)][_0x41f953(0x1bd)](_0x2ebb81[_0x41f953(0x1ed)])[_0x41f953(0xcb)](_0x561bd3(this[_0x41f953(0xa8)]))[_0x41f953(0xcb)](_0x57538f(_0x36e5ef=>!_0x36e5ef[_0x41f953(0x25a)]()[_0x41f953(0x152)]('__')))[_0x41f953(0x28a)](async _0x3c6961=>{const _0x4cec65=_0x41f953,_0x186a8a=_0x3c6961[_0x4cec65(0x25a)](),_0x38c686=await this[_0x4cec65(0x249)](_0x186a8a);this[_0x4cec65(0x1d2)][_0x4cec65(0x1c2)](_0x38c686),this[_0x4cec65(0x1fb)][_0x4cec65(0x279)](_0x186a8a,_0x38c686);}),_0x42ed05(this['_univerInstanceService'][_0x41f953(0x189)](_0x2ebb81['UNIVER_DOC']),this['_univerInstanceService'][_0x41f953(0x189)](_0x2ebb81[_0x41f953(0xb6)]))[_0x41f953(0xcb)](_0x561bd3(this[_0x41f953(0xa8)]))[_0x41f953(0x28a)](_0x3826be=>{const _0x5e17ea=_0x41f953,_0x187819=_0x3826be[_0x5e17ea(0x25a)](),_0x22a9b9=this['_entities'][_0x5e17ea(0xc6)](_0x187819);_0x22a9b9&&(_0x22a9b9[_0x5e17ea(0x1e0)](),this['_entities'][_0x5e17ea(0x218)](_0x187819));});}async['_startSheetCollabCursor'](_0x2dfb73){const _0x345a6f=_0x350772,_0x5d76d5=await this[_0x345a6f(0x292)][_0x345a6f(0xa5)](_0x2dfb73),_0x220e33=this[_0x345a6f(0x12a)][_0x345a6f(0x144)](ye,_0x2dfb73,_0x5d76d5);return _0x220e33[_0x345a6f(0x1c6)](),_0x220e33;}async['_startDocCollabCursor'](_0x377e64){const _0x154a4f=_0x350772,_0x2f90a0=await this['_collabSessionService'][_0x154a4f(0xa5)](_0x377e64),_0x1643a2=this['_injector'][_0x154a4f(0x144)](we,_0x377e64,_0x2f90a0);return _0x1643a2[_0x154a4f(0x1c6)](),_0x1643a2;}};function _0x2f90(_0x592140,_0x53a9b2){const _0x30a7bc=_0x30a7();return _0x2f90=function(_0x2f90cf,_0x5e42b3){_0x2f90cf=_0x2f90cf-0xa0;let _0x5363e5=_0x30a7bc[_0x2f90cf];return _0x5363e5;},_0x2f90(_0x592140,_0x53a9b2);}Y=Wi([pe(0x0,_0xbcb279),pe(0x1,_0x1ada69(_0x37163f)),pe(0x2,_0x1ada69(_0x13b5b6))],Y);const q=0x14,rt=0xc8,Oe=0x4,Vi=0x5;function ji(_0x22518c,_0x1916c1){const _0x56e602=_0x350772;let {radius:_0x1be25f,width:_0x1f7946,height:_0x5b93fe}=_0x1916c1;_0x1be25f=_0x1be25f!=null?_0x1be25f:0x0,_0x1f7946=_0x1f7946!=null?_0x1f7946:0x1e,_0x5b93fe=_0x5b93fe!=null?_0x5b93fe:0x1e;let _0x292065=0x0,_0x20b1ce=0x0,_0x378675=0x0;_0x292065=_0x20b1ce=_0x378675=Math[_0x56e602(0x132)](_0x1be25f,_0x1f7946/0x2,_0x5b93fe/0x2),_0x22518c[_0x56e602(0x10b)](),_0x22518c[_0x56e602(0x22a)](_0x292065,0x0),_0x22518c[_0x56e602(0x290)](_0x1f7946-_0x20b1ce,0x0),_0x22518c[_0x56e602(0x281)](_0x1f7946-_0x20b1ce,_0x20b1ce,_0x20b1ce,Math['PI']*0x3/0x2,0x0,!0x1),_0x22518c[_0x56e602(0x290)](_0x1f7946,_0x5b93fe-_0x378675),_0x22518c['arc'](_0x1f7946-_0x378675,_0x5b93fe-_0x378675,_0x378675,0x0,Math['PI']/0x2,!0x1),_0x22518c['lineTo'](0x0,_0x5b93fe),_0x22518c[_0x56e602(0x290)](0x0,_0x292065),_0x22518c['arc'](_0x292065,_0x292065,_0x292065,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x22518c[_0x56e602(0x1e8)](),_0x1916c1['fill']&&(_0x22518c[_0x56e602(0x226)](),_0x22518c[_0x56e602(0x206)]=_0x1916c1['fill'],_0x1916c1[_0x56e602(0x259)]===_0x56e602(0x17a)?_0x22518c[_0x56e602(0xd9)](_0x56e602(0x17a)):_0x22518c[_0x56e602(0xd9)](),_0x22518c[_0x56e602(0xee)]());}class Ie extends _0x316be7{constructor(_0x42ef63,_0x2e9d8f){const _0x5c5a5d=_0x350772;super(_0x42ef63,_0x2e9d8f),_(this,_0x5c5a5d(0x231)),_(this,'text'),(this[_0x5c5a5d(0x231)]=_0x2e9d8f==null?void 0x0:_0x2e9d8f['color'],this[_0x5c5a5d(0x17f)]=_0x2e9d8f==null?void 0x0:_0x2e9d8f['text']);}static['drawWith'](_0x545eab,_0x4ce7b7){const _0x3d5b88=_0x350772,{text:_0x1a43e7,color:_0x1f7375}=_0x4ce7b7;_0x545eab['save'](),_0x545eab[_0x3d5b88(0x19d)]=_0x3d5b88(0x2d6);const _0x12d8dc=_0x545eab[_0x3d5b88(0x28f)](_0x1a43e7)[_0x3d5b88(0xa3)],_0x1ab065=Math[_0x3d5b88(0x132)](_0x12d8dc+0x2*Oe,rt);ji(_0x545eab,{'height':q,'radius':0x4,'width':_0x1ab065,'fill':_0x1f7375}),_0x545eab[_0x3d5b88(0x206)]=_0x3d5b88(0xd5);const _0x38f17c=Oe,_0x376d39=q-Vi,_0x5068a2=rt-0x2*Oe;if(_0x12d8dc>_0x5068a2){let _0x2c5976='',_0x3948c3=0x0;for(const _0x4df550 of _0x1a43e7){const _0x1000a1=_0x545eab['measureText'](_0x4df550)[_0x3d5b88(0xa3)];if(_0x3948c3+_0x1000a1<=_0x5068a2-_0x545eab[_0x3d5b88(0x28f)](_0x3d5b88(0xd7))['width'])_0x2c5976+=_0x4df550,_0x3948c3+=_0x1000a1;else{_0x2c5976+=_0x3d5b88(0xd7);break;}}_0x545eab[_0x3d5b88(0x27c)](_0x2c5976,_0x38f17c,_0x376d39);}else _0x545eab[_0x3d5b88(0x27c)](_0x1a43e7,_0x38f17c,_0x376d39);_0x545eab[_0x3d5b88(0xee)]();}[_0x350772(0xd0)](_0x3c39d0){const _0x187d67=_0x350772;Ie[_0x187d67(0x208)](_0x3c39d0,this);}}function _0x30a7(){const _0x25e665=['9rCgeMQ','_docSkeleton','_univerInstanceService','2872328GKlrUU','_collabCursorState$','event$','with','_transformHistoryAndStateStack','getActiveSheet','getTypeOfUnitAdded$','_updateLocalCursor','runOnServer','defIds','code','next','stringify','_cursors','bottom','init','mutations','origin','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getSkeleton','m2Prime','beforeCommandExecuted','http://www.w3.org/2000/svg','_initCommandInterceptor','_logService','white','YUUMI_CONNECTOR_URL_NOT_FOUND','_entityInit$','_handleJoinEvent','blue.400','_releaseCalculationLimit','YUUMI_RATE_OVER_LIMIT','getParam','JOIN_ROOM_FAILED','UniverIcon','APPLY_NON_SEQUENTIAL_REVISION','TOO_MANY_REQUESTS','registerRefRange','PY_RUNTIME_SCRIPT_ERROR','shift','black','dispose','_updateURLWithCurrentState','_updateCollabCursors','SYNCED','Failed','_pollingInterval','searchParams','random','closePath','then','session.will-retry','_saveCache','getMember','UNIVER_DOC','getRangePointData','FETCH_MISS','className','2rHDfrv','INVITE_CODE_REQUIRED','_drawRectRange','collabStatus.conflict','labelPosition','INTERNAL_ERROR','UNDEFINED','onTransformChange$','_anchor','USERS_LEAVE','_entities','cursorInfo$','Success','LICENSE_IMPORT_SIZE_EXCEEDED','_eventUnsubscribe','collaboration.closeRoom','split','transformIMECache','collaboration.single-unit.warning','YUUMI_NO_CUBOID_FOR_QUESTION','HEADER_MENU','fillStyle','toString','drawWith','disposeUnit','REDEMPTION_CODE_FULLY_REDEEMED','addEventListener','ALREADY_EXISTS','_collabCursorController','_name','_memberService','invokeId','1680744gOQIQy','focused$','_document','onLocalMutation','_docTransformStateCacheService','_backgroundColor','findNodePositionByCharIndex','delete','entries','_localCacheService','eventID','_maxFormulaLimit','683922LTDKxg','0\x200\x2016\x2016','214730zsOyIk','START_CALCULATION','_localStorageService','disposeWithMe','data','INVALID_ARGUMENT','_renderManagerService','save','formula.calculation.started','CURRENT_STATUS_CANNOT_OPERATE','_docTransformIMECacheService','moveTo','1em','_httpService','from','div','params','_dataLoaderService','color','getSheetBySheetId','PERMISSION_DENIED','OFFLINE','3343494NEhPDH','_imageIoService','forEach','ticket','location','extend','_hover','memberID','resize','getUniverSheetInstance','ENSURE_SNAPSHOT_EXECUTION','registerRenderModule','key','UNRECOGNIZED','exhaustSavingTask','_scheduleHeartbeat','hasOwnProperty','error','_shapes','transform','_startDocCollabCursor','hovered','runId','_showGuardMessage','_docSyncEditingCollabCursorService','currentTheme$','_initStatusListener','_hovered','assignAColorForMemberID','_localeService','clearTimeout','_startCalculationLimit','getRelativeToViewportCoord','_registerRenderDependencies','INVITE_CODE_HAS_BEEN_UES','endRow','fillRule','getUnitId','CLOSE_ROOM','sessionStatus$','push','attrs','REDEMPTION_CODE_HAS_BEEN_CREATED','USER_NOT_FOUND','getUnit','_heartbeatTimer','_cursorInfo$','_handleHover','selection','_unitOnClients','_initEvent','subunit','12PqfAjQ','CHANGESET_REVISION_CONFILICT','_registerDependencies','_instanceService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','urlChange$','_notificationService','SNAPSHOT_INVALID_SNAPSHOT','_getFormulaLimitStatus','setItem','MOBILE_VERIFY_CODE_MISMATCH','1045750dqVyFm','_selfUnitIDs','xlink:href','_hasFormulaInDirtyRanges','sessionTicket','set','url(#off-line-icon_clip0_910_343)','mask','fillText','defs','LICENSE_EXPORT_SIZE_EXCEEDED','getformulaLimitStatusUrl','transformMutation','arc','send','OTHER_CLIENTS_EDITING','permission.content','stageInfo','getCollabCursors$','collabStatus.offline','_transformUndoRedoStack','_applyCommand','subscribe','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','range','_refreshCollabCursors','startFormulaLimitUrl','measureText','lineTo','subUnitId','_collabSessionService','_getSaveTimeout','apply','_configService','undoState','all','unit','_handleEvent','APPLY_DUPLICATED','collabCursorState$','_themeService','collab-text-anchor-','SUBMIT_CHANGESET_TIMEOUT','_initCommandExecutedListener','transformStateCache','APPLY_PERMISSION_DENIED','green.600','_uiPartsService','EMAIL_VERIFY_CODE_MISMATCH','redoState','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','call','_beforeCloseService','sheetID','_config','ENTITLE_REPORT_LIMIT_EXCEED','LICENSE_DISTRO_REJECTED','height','getOwnPropertySymbols','CONFLICT','_taskIds','values','now','url(#$1','currentColor','NOT_COLLAB','getUnhiddenWorksheets','post','_ensureSubject','symbol','endColumn','_messageService','session.connection-failed','popstate','_handleHeartbeatEvent','getCurrentSelections','actions','name','getOwnPropertyDescriptor','_collaborationController','transformByState','transformMutationsWithChangeset','_setFormulaLimitStatus','path','_send','DeleteRangeMoveLeftCommandId','debug','contains','_transformService','unitID','size','cursorInfo','history','_drawTextRange','unsubscribe','MUTATION','assign','clipPath','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','setUndoRedoMutationParamsCache','dirtyRanges','_collaborationUIEventService','totalFormulasToCalculate','activeSheet$','_cachedData','ENTITLE_DUP_SUBSCRIPTION','getCellMatrix','session.collaboration-timeout','on-line-icon','getDocRanges','_doCreateSocket','NO_OTHER_CLIENTS_EDITING','_init','getCurrentRevOfUnit','length','executeCommand','_initStatusComponent','Unknown\x20user','width','string','requireSession','_colorAssignService','registerComponent','dispose$','_docTransformSelectionsService','permission.title','_setupBeforeClosingHandler','LICENSE_MAX_UNITS_EXCEEDED','off-line-icon','ENTITLE_CHAT_LIMIT_EXCEED','YUUMI_ALL_TABLES_IS_INVALID','SOCKET_FAILED','Warning','registerBeforeClose','getCurrentUnitForType','releaseFormulaLimitUrl','isActive','UNIVER_SHEET','replaceState','deepClone','show','map','getSheetId','YUUMI_ASYNCIO_CANCELLED','type','startColumn','_urlService','REDEMPTION_USER_NOT_ELIGIBLE','syncEditingCollabCursor','_cursor','SNAPSHOT_HAS_BEEN_REMOVED','_createSocketURL','newValue','get','_revisionService','_range','idSuffix','univerjs-icon\x20univerjs-icon-','pipe','PENDING','InsertRangeMoveRightCommandId','_disabled','38502zBqvMo','_draw','_removeCollabCursors','_clearOtherTimers','body','LOGIN_TOKEN_PROCESSING_FAILED','#FFF','_color','...','AWAITING','fill','search','_lastResponseTimestamp','getCurrent','APPLY_REVISION_CONFILICT','backgroundColor','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','children','_commandService','USER_IS_ANONYMOUS','replace','_onCursorUpdate','_scene','_sheetSkeletonManagerService','ENTITLE_CAN_NOT_BUY_LOWER_OTP','doc.mutation.rich-text-editing','_syncEditingCollabCursorService','_status$','InsertColCommandId','onPointerEnter$','off-line-icon_clip0_910_343','restore','loadUnit','skeleton','VIEW_MAIN','UPDATE_CURSOR','functionsExecutedState','setActiveRange','collaboration-client-ui.config','/universer-api/license/formula/limit/status','_onRefRangeChange','onStarting','INVITE_CODE_ALREADY_BOUND','onPointerLeave$','parse','m1Prime','_hideTimer','collab-rect-range-','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_textBubble','imageSourceType','textRanges','collab-text-range-','_initDependencies','has','none','PAYMENT_CHANNEL_NOT_SUPPORT','REDEMPTION_CODE_INACTIVE','getMergeData','_saveTaskMap','beginPath','add','wsSessionTicketUrl','getValue','_setupSubUnitSync','propertyIsEnumerable','COMPLETION_FINISHED','ranges','source','subscribeEvent','_updateSubUnitFromURLParams','APPLY_REJECT','setParam','isArray','setAlpha','_onCursorDelete','_refRangeService','trim','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_docClipboardService','UNAUTHENTICATED','RECT','setConfig','USER_NOT_INVITED_CODE','entityInit$','TEXT','ONLINE','InsertRowCommandId','tag','_session','MOBILE_HAS_BEEN_BOUND','_injector','YUUMI_UNABLE_LOAD_URL','Loading','_online','svg','use','_lastPointer','find','min','onRendered','removeParam','limitInfo','REDEMPTION_USER_REDEEM_TIMES_EXCEED','substring','_render','_initEntityListener','editingUnit','prototype','WECHAT_HAS_BEEN_BOUND','triggerDblclick','_context','currentSkeleton$','RemoveRowCommandId','/universer-api/license/formula/limit/start','NOT_FOUND','_transformPreviousActiveRange','createInstance','_scheduleSaving','getActiveRange','RemoveColCommandId','_getSheetObject','getColorFromTheme','asObservable','status$','hide','EMAIL_HAS_BEEN_BOUND','AWAITING_WITH_PENDING','defineProperty','createSocket','displayName','startsWith','_drawAnchor','unitId','_scheduleClearOtherTimer','complete','_getAnchorBounding','selections','_clearPolling','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','href','onMouseMove','_roomMembers$','_startSheetCollabCursor','getFocusedUnit','_cursorShapes','executionId','onCommandExecuted','on-line-icon_clip0_910_349','getUndoRedoMutationParamsCache','whenReady','getVpScrollXYInfoByPosToVp','INVALID_INVITE_CODE','toRgbString','_docStateChangeManagerService','currentUsage','getItem','top','includes','sheetId','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','YUUMI_AI_RUN_FAILED','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_id','YUUMI_SUBSCRIPTION_NOT_FOUND','updateOfflineData','enableLocalCache','_docSkeletonManagerService','docStateChange$','colorChannel1','_getSessionTicket','evenodd','setShapeProps','REDEMPTION_CODE_NOT_STARTED','AUTHORIZE_CODE_ILLEGAL','yellow.400','text','unshift','getConfig','getCollabEntity$','_removeClearOtherTimer','_checkCalculationAvailable','_anchorDot','formula.calculation.unable','onPointerMove$','_getScale','getTypeOfUnitDisposed$','clearInterval','startRow','transformSelections','_currentUsage','parseInt','maxFormulaLimit','column','_initResize','transformRemoteChangeset','unload','addObject','YUUMI_URL_COL_OUT_OF_RANGE','Error','saveTaskMap','getStateCache','reconnect','REDEMPTION_INVALID_CODE','application/json','LOGIN_FAILED','font','_unitStatus','getUnitStatus$','saveImage','setTimeout','FromArray','indexOf','CONNECTOR_DATA_TOO_LARGE','_toggleOffline','_toggleOnline','ERROR_AGAIN','[CollaborationDataLoaderController]','getRenderById','_labelPosition','ENTITLE_NEED_BILLING_ADDRESS','round','translate(.97)','function','_assignedColors','concat','_checkAndWaitForCalculationPermission','_colorIndex','M0\x200H16V16H0z'];_0x30a7=function(){return _0x25e665;};return _0x30a7();}const Te=_0x350772(0x29d),Xi=_0x350772(0x103),Gi=_0x350772(0xfe),J=0x6,Ki=1.5,Ce=0x4,zi=1.5,Ji='rgba(255,\x20255,\x20255,\x200.01)';class ot{constructor(_0x3e87b3,_0x5dc387,_0x3be03b,_0x3d0b7b){const _0x2f567d=_0x350772;_(this,_0x2f567d(0x247),[]),_(this,_0x2f567d(0x1f9),null),_(this,_0x2f567d(0x100),null),_(this,_0x2f567d(0x185),null),_(this,'_hideTimer',null),_(this,_0x2f567d(0x1ff),null),(this[_0x2f567d(0xc2)]=_0x3e87b3,this[_0x2f567d(0xe5)]=_0x5dc387,this[_0x2f567d(0x1b5)]=_0x3be03b,this[_0x2f567d(0x213)]=_0x3d0b7b,this[_0x2f567d(0x138)]());}set[_0x350772(0x23b)](_0x47260b){const _0x29300c=_0x350772;_0x47260b?(this[_0x29300c(0x185)]&&this[_0x29300c(0x185)]['hide'](),this[_0x29300c(0x100)]&&this['_textBubble']['show']()):(this[_0x29300c(0x185)]&&this[_0x29300c(0x185)][_0x29300c(0xb9)](),this[_0x29300c(0x100)]&&this[_0x29300c(0x100)][_0x29300c(0x14c)]());}[_0x350772(0x1e0)](){const _0x38650e=_0x350772;for(const _0x5484d3 of this['_shapes'])_0x5484d3['dispose']();this[_0x38650e(0x100)]&&this[_0x38650e(0x100)]['dispose'](),this['_anchorDot']&&this[_0x38650e(0x185)][_0x38650e(0x1e0)](),this[_0x38650e(0x1f9)]&&this['_anchor'][_0x38650e(0x1e0)](),this[_0x38650e(0x1ff)]&&this[_0x38650e(0x1ff)]();}[_0x350772(0x138)](){const _0xd41476=_0x350772;var _0x5eab9d;const {_docSkeleton:_0x3e2a69,_document:_0x2312a3}=this,{color:_0x69d254,name:_0x4230d2,ranges:_0x46af6f}=this[_0xd41476(0xc2)],_0x2ae8c9=_0x2312a3['getOffsetConfig'](),{docsLeft:_0x5004fc,docsTop:_0x262c5e}=_0x2ae8c9,_0x347cc1=new _0x23b453(_0x2ae8c9,_0x3e2a69);for(const {startOffset:_0x412daa,endOffset:_0x31d27,rangeType:_0x269e82,segmentId:_0x2b941b,segmentPage:_0x4714f8,collapsed:_0x898014,isActive:_0x54628d}of _0x46af6f){const _0x3fff7d=_0x3e2a69[_0xd41476(0x217)](_0x412daa,!0x0,_0x2b941b,_0x4714f8);let _0x430af7=_0x3e2a69[_0xd41476(0x217)](_0x31d27,!0x0,_0x2b941b,_0x4714f8);if(_0x430af7==null&&(_0x430af7=_0x3e2a69[_0xd41476(0x217)](_0x31d27-0x1,!0x1,_0x2b941b,_0x4714f8)),_0x54628d){const {contentBoxPointGroup:_0x298e44}=_0x347cc1['getRangePointData'](_0x430af7,_0x430af7);if(_0x298e44[_0xd41476(0x2e6)]===0x0)continue;this[_0xd41476(0x153)](_0x69d254,_0x298e44,_0x5004fc,_0x262c5e,_0x4230d2),this[_0xd41476(0x1ff)]=this[_0xd41476(0x264)]();}if(_0x3fff7d&&_0x430af7){if(_0x269e82===_0x1fab1a[_0xd41476(0x120)]){const _0x243ba7=new _0x4c81a5(_0x2ae8c9,_0x3e2a69),{pointGroup:_0xeb353}=(_0x5eab9d=_0x243ba7[_0xd41476(0x1ee)](_0x3fff7d,_0x430af7))!=null?_0x5eab9d:{};if(_0xeb353==null||_0xeb353[_0xd41476(0x2e6)]===0x0)continue;this['_drawRectRange'](_0x69d254,_0xeb353,_0x5004fc,_0x262c5e);}else{if(!_0x898014){const {borderBoxPointGroup:_0x52d6b2}=_0x347cc1[_0xd41476(0x1ee)](_0x3fff7d,_0x430af7);if(_0x52d6b2[_0xd41476(0x2e6)]===0x0)continue;this[_0xd41476(0x2d1)](_0x69d254,_0x52d6b2,_0x5004fc,_0x262c5e);}}}}}[_0x350772(0x153)](_0x12afeb,_0x442130,_0x54c75e,_0x164ea2,_0x3430ee){const _0x319dfe=_0x350772,_0xf1105a=this['_getAnchorBounding'](_0x442130),{left:_0x752be8,top:_0x3a04b0,height:_0x26935b}=_0xf1105a,_0x1a1287=this[_0x319dfe(0x188)](),_0x49616e=zi/_0x1a1287,_0x13e2ce=new _0x154153(Te+_0x43b449(J),{'left':_0x752be8+_0x54c75e-_0x49616e,'top':_0x3a04b0+_0x164ea2,'height':_0x26935b,'width':Ki,'fill':_0x12afeb||_0x4740de(_0x1b0abb[_0x319dfe(0x1df)],0x0),'strokeWidth':_0x49616e,'stroke':Ji,'evented':!0x0});this[_0x319dfe(0x1f9)]=_0x13e2ce,this[_0x319dfe(0xe5)][_0x319dfe(0x194)](_0x13e2ce,_0x3d216c);const _0x5345c0=new _0x154153(Te+_0x43b449(J),{'left':_0x752be8+_0x54c75e-_0x49616e,'top':_0x3a04b0+_0x164ea2-Ce/0x2,'height':Ce,'width':Ce,'fill':_0x12afeb||_0x4740de(_0x1b0abb[_0x319dfe(0x1df)],0x0),'strokeWidth':0x0,'stroke':_0x12afeb||_0x4740de(_0x1b0abb[_0x319dfe(0x1df)],0x0),'evented':!0x1});this[_0x319dfe(0x185)]=_0x5345c0,this[_0x319dfe(0xe5)]['addObject'](_0x5345c0,_0x3d216c);const _0x57b206=new Ie(Te+_0x43b449(J),{'left':_0x752be8+_0x54c75e-_0x49616e,'top':_0x3a04b0+_0x164ea2-q,'text':_0x3430ee,'color':_0x12afeb});this[_0x319dfe(0x100)]=_0x57b206,this[_0x319dfe(0xe5)][_0x319dfe(0x194)](_0x57b206,_0x3d216c),this[_0x319dfe(0x23b)]=!0x1;}[_0x350772(0x264)](){const _0x3d5c37=_0x350772,_0x54f8b1=this[_0x3d5c37(0x1f9)][_0x3d5c37(0xec)][_0x3d5c37(0x114)](()=>{const _0x31ec81=_0x3d5c37;this[_0x31ec81(0x23b)]=!0x0;}),_0x44ed0a=this[_0x3d5c37(0x1f9)][_0x3d5c37(0xfa)][_0x3d5c37(0x114)](()=>{const _0x4071fc=_0x3d5c37;this['_hideTimer']&&clearTimeout(this[_0x4071fc(0xfd)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x3db62c=_0x3d5c37;_0x54f8b1[_0x3db62c(0x2d2)](),_0x44ed0a[_0x3db62c(0x2d2)]();};}[_0x350772(0x2d1)](_0x29f96b,_0x2489bc,_0x32e2a9,_0x26e5d0){const _0x3a3d43=_0x350772,_0x452460=new _0x1e2ad1(_0x29f96b)[_0x3a3d43(0x119)](0.2)[_0x3a3d43(0x168)](),_0x39e194=new _0x5f4a89(Xi+_0x43b449(J),{'pointsGroup':_0x2489bc,'fill':_0x452460||_0x4740de(_0x1b0abb['black'],0.2),'left':_0x32e2a9,'top':_0x26e5d0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3a3d43(0x247)][_0x3a3d43(0x25d)](_0x39e194),this[_0x3a3d43(0xe5)][_0x3a3d43(0x194)](_0x39e194,_0x3d216c);}[_0x350772(0x1f3)](_0x3dbaef,_0x57f7c9,_0x3fa374,_0x3b6cdc){const _0x2d44e5=_0x350772,_0x535d5e=new _0x1e2ad1(_0x3dbaef)['setAlpha'](0.2)[_0x2d44e5(0x168)](),_0xfd5006=new _0x5f4a89(Gi+_0x43b449(J),{'pointsGroup':_0x57f7c9,'fill':_0x535d5e||_0x4740de(_0x1b0abb[_0x2d44e5(0x1df)],0.2),'left':_0x3fa374,'top':_0x3b6cdc,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2d44e5(0x247)][_0x2d44e5(0x25d)](_0xfd5006),this[_0x2d44e5(0xe5)]['addObject'](_0xfd5006,_0x3d216c);}[_0x350772(0x157)](_0xa7b47f){const _0x160a35=_0xa7b47f[0x0],_0x55517c=_0x160a35[0x0],_0x3ef9c3=_0x160a35[0x2],{x:_0x5c44a3,y:_0x33605a}=_0x55517c,{x:_0x93e5c1,y:_0x2572df}=_0x3ef9c3;return{'left':_0x5c44a3,'top':_0x33605a,'width':_0x93e5c1-_0x5c44a3,'height':_0x2572df-_0x33605a};}[_0x350772(0x188)](){const _0x5ba415=_0x350772,{scaleX:_0x10dd05,scaleY:_0x511a35}=this[_0x5ba415(0xe5)]['getAncestorScale']();return Math['max'](_0x10dd05,_0x511a35);}}var Zi=Object[_0x350772(0x2c2)],Qi=(_0xd5853c,_0x117cb2,_0xe6c958,_0x56a022)=>{const _0x25f1fe=_0x350772;for(var _0xa1bea1=_0x56a022>0x1?void 0x0:_0x56a022?Zi(_0x117cb2,_0xe6c958):_0x117cb2,_0x5071e5=_0xd5853c[_0x25f1fe(0x2e6)]-0x1,_0x478ec3;_0x5071e5>=0x0;_0x5071e5--)(_0x478ec3=_0xd5853c[_0x5071e5])&&(_0xa1bea1=_0x478ec3(_0xa1bea1)||_0xa1bea1);return _0xa1bea1;},ne=(_0x1d2cb4,_0x35423d)=>(_0x4f653d,_0x57be12)=>_0x35423d(_0x4f653d,_0x57be12,_0x1d2cb4);let $e=class extends _0x3e95b8{constructor(_0x22fcf2,_0x10dd4d,_0x446d3a,_0x36112d,_0x16f469){const _0x4287c8=_0x350772;super(),_(this,_0x4287c8(0x160),[]),_(this,_0x4287c8(0x1c4),[]),(this[_0x4287c8(0x13e)]=_0x22fcf2,this['_docSkeletonManagerService']=_0x10dd4d,this[_0x4287c8(0x20d)]=_0x446d3a,this[_0x4287c8(0xe1)]=_0x36112d,this[_0x4287c8(0x29c)]=_0x16f469,this[_0x4287c8(0x2e4)]());}['_init'](){const _0x2ea7c4=_0x350772,_0x235fa8=this[_0x2ea7c4(0x13e)][_0x2ea7c4(0x154)],_0x6eb27f=this['_docSkeletonManagerService'];this[_0x2ea7c4(0x222)](_0x264ffa([this[_0x2ea7c4(0x20d)][_0x2ea7c4(0x286)](_0x235fa8),this[_0x2ea7c4(0x29c)][_0x2ea7c4(0x24e)]])[_0x2ea7c4(0xcb)](_0x273082(([_0x154c55,_0x218ddc])=>({'skeleton':_0x6eb27f[_0x2ea7c4(0x1ca)](),'cursors':[..._0x154c55[_0x2ea7c4(0x2b1)]()]['flatMap'](_0x58b9dc=>({..._0x58b9dc,'color':this[_0x2ea7c4(0x29c)][_0x2ea7c4(0x149)](_0x58b9dc[_0x2ea7c4(0x231)])}))})))[_0x2ea7c4(0x28a)](_0x39f079=>{const _0x27059f=_0x2ea7c4;if(this['_removeCollabCursors'](),_0x39f079){const {skeleton:_0x5731cf,cursors:_0x16a63f}=_0x39f079;this[_0x27059f(0x1e2)](_0x5731cf,_0x16a63f);}})),this[_0x2ea7c4(0x191)](),this[_0x2ea7c4(0x29f)]();}[_0x350772(0x1e2)](_0x2c5d58,_0x1283f9){const _0xc4a6e5=_0x350772,{scene:_0x2d4f4d,mainComponent:_0x2f916f}=this['_context'],_0x4729a2=_0x1283f9[_0xc4a6e5(0xba)](_0x11017e=>new ot(_0x11017e,_0x2d4f4d,_0x2c5d58,_0x2f916f));this[_0xc4a6e5(0x160)]=_0x4729a2,this[_0xc4a6e5(0x1c4)]=_0x1283f9;}[_0x350772(0x28d)](){const _0x4af1d2=_0x350772;this[_0x4af1d2(0xd1)]();const {scene:_0x24d03e,mainComponent:_0x3991df}=this[_0x4af1d2(0x13e)],_0xdd9993=this[_0x4af1d2(0x176)][_0x4af1d2(0x1ca)](),_0xb44129=this[_0x4af1d2(0x1c4)][_0x4af1d2(0xba)](_0x2ae6ac=>new ot(_0x2ae6ac,_0x24d03e,_0xdd9993,_0x3991df));this[_0x4af1d2(0x160)]=_0xb44129;}[_0x350772(0xd1)](){const _0x59ca1b=_0x350772;this[_0x59ca1b(0x160)][_0x59ca1b(0x237)](_0x47af2c=>_0x47af2c[_0x59ca1b(0x1e0)]()),this[_0x59ca1b(0x160)]=[];}[_0x350772(0x29f)](){const _0x3ea5bd=_0x350772,_0x5c1ec0=[_0x49cb7f['id']];this['disposeWithMe'](this['_commandService'][_0x3ea5bd(0x162)](_0x42c0e9=>{const _0x24e7a8=_0x3ea5bd;_0x5c1ec0[_0x24e7a8(0x16d)](_0x42c0e9['id'])&&_0x42c0e9[_0x24e7a8(0x22f)]['unitId']===this[_0x24e7a8(0x13e)][_0x24e7a8(0x154)]&&this[_0x24e7a8(0x28d)]();}));}[_0x350772(0x191)](){const _0x1386e9=_0x350772;this[_0x1386e9(0x222)](_0x2754b0(this[_0x1386e9(0x13e)]['engine'][_0x1386e9(0x1f8)])[_0x1386e9(0xcb)](_0x564fd5(_0x20a72a=>_0x20a72a[_0x1386e9(0xbd)]===_0x239e83[_0x1386e9(0x23d)]),_0xe18dca(0x10))[_0x1386e9(0x28a)](()=>{const _0x12a312=_0x1386e9;this[_0x12a312(0x28d)]();}));}};$e=Qi([ne(0x1,_0x1ada69(_0x107acb)),ne(0x2,_0x1ada69(Y)),ne(0x3,_0x5df3ab),ne(0x4,_0x1ada69(_0x3617fd))],$e);const qi=0x1,en=1.5;class tn extends _0x316be7{constructor(_0x5359f9,_0x43bfd7){const _0x25e2c3=_0x350772;super(_0x5359f9,_0x43bfd7),_(this,_0x25e2c3(0xd6)),_(this,'_hovered',!0x1),_(this,_0x25e2c3(0xc8)),_(this,_0x25e2c3(0x20e),''),_(this,_0x25e2c3(0x1aa),_0x25e2c3(0x16c)),_(this,'_backgroundColor'),(_0x43bfd7&&this[_0x25e2c3(0x17b)](_0x43bfd7),this['onPointerEnter$'][_0x25e2c3(0x114)](()=>this[_0x25e2c3(0x17b)]({'hovered':!0x0})),this[_0x25e2c3(0xfa)][_0x25e2c3(0x114)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x350772(0x17b)](_0x3af4bc){const _0x1a02c1=_0x350772;var _0x2127e9,_0x329b0e,_0xc91ce8,_0x1edc3f,_0x3403f8,_0x11da2f;this[_0x1a02c1(0xd6)]=(_0x2127e9=_0x3af4bc[_0x1a02c1(0x231)])!=null?_0x2127e9:this['_color'],this[_0x1a02c1(0x250)]=(_0x329b0e=_0x3af4bc[_0x1a02c1(0x24a)])!=null?_0x329b0e:this[_0x1a02c1(0x250)],this[_0x1a02c1(0xc8)]=(_0xc91ce8=_0x3af4bc[_0x1a02c1(0x28c)])!=null?_0xc91ce8:this[_0x1a02c1(0xc8)],this[_0x1a02c1(0x20e)]=(_0x1edc3f=_0x3af4bc[_0x1a02c1(0x2c1)])!=null?_0x1edc3f:this[_0x1a02c1(0x20e)],this[_0x1a02c1(0x1aa)]=(_0x3403f8=_0x3af4bc[_0x1a02c1(0x1f5)])!=null?_0x3403f8:this[_0x1a02c1(0x1aa)],this[_0x1a02c1(0x216)]=(_0x11da2f=_0x3af4bc[_0x1a02c1(0xde)])!=null?_0x11da2f:this[_0x1a02c1(0x216)],this[_0x1a02c1(0x2c4)]({'width':_0x3af4bc[_0x1a02c1(0xa3)],'height':_0x3af4bc[_0x1a02c1(0x2ad)]});}['onMouseMove'](_0x2edc75){const _0x3d0d98=_0x350772,{row:_0x44904f,column:_0x3b8aa7}=_0x2edc75;if(_0x44904f>=this[_0x3d0d98(0xc8)]['startRow']&&_0x44904f<=this['_range'][_0x3d0d98(0x258)]&&_0x3b8aa7>=this['_range'][_0x3d0d98(0xbe)]&&_0x3b8aa7<=this[_0x3d0d98(0xc8)][_0x3d0d98(0x2ba)]){this[_0x3d0d98(0x17b)]({'hovered':!0x0});return;}this[_0x3d0d98(0x17b)]({'hovered':!0x1});}[_0x350772(0x13d)](_0x6dc196){return!0x1;}[_0x350772(0xd0)](_0x20afd5){const _0xfb9ef1=_0x350772;_0x154153[_0xfb9ef1(0x208)](_0x20afd5,{'width':this[_0xfb9ef1(0xa3)],'height':this['height'],'strokeWidth':en,'stroke':this[_0xfb9ef1(0xd6)],'evented':!0x1,'fill':this[_0xfb9ef1(0x216)]}),this[_0xfb9ef1(0x250)]&&(_0x20afd5[_0xfb9ef1(0x226)](),_0x20afd5[_0xfb9ef1(0x248)](0x1,0x0,0x0,0x1,this[_0xfb9ef1(0xa3)],this[_0xfb9ef1(0x1aa)]===_0xfb9ef1(0x1c5)?0x0:-q),Ie[_0xfb9ef1(0x208)](_0x20afd5,{'text':this[_0xfb9ef1(0x20e)],'color':this['_color']}),_0x20afd5[_0xfb9ef1(0xee)]());}}var sn=Object[_0x350772(0x2c2)],nn=(_0x160518,_0x438ea1,_0x4adeef,_0x54026e)=>{const _0xa4e118=_0x350772;for(var _0x366ec0=_0x54026e>0x1?void 0x0:_0x54026e?sn(_0x438ea1,_0x4adeef):_0x438ea1,_0x4fbf1d=_0x160518[_0xa4e118(0x2e6)]-0x1,_0x1cb8dc;_0x4fbf1d>=0x0;_0x4fbf1d--)(_0x1cb8dc=_0x160518[_0x4fbf1d])&&(_0x366ec0=_0x1cb8dc(_0x366ec0)||_0x366ec0);return _0x366ec0;},Re=(_0x27bc3c,_0x198c9b)=>(_0x111d36,_0x271efa)=>_0x198c9b(_0x111d36,_0x271efa,_0x27bc3c);const rn=0x1389;let xe=class extends _0x3e95b8{constructor(_0x3b9e85,_0x469473,_0x33ae47,_0x4c88fa){const _0x480210=_0x350772;super(),_(this,'_cursors',new Set()),_(this,_0x480210(0x130),null),(this[_0x480210(0x13e)]=_0x3b9e85,this[_0x480210(0xe6)]=_0x469473,this[_0x480210(0x20d)]=_0x33ae47,this[_0x480210(0x29c)]=_0x4c88fa,this[_0x480210(0x2e4)]());}[_0x350772(0x2e4)](){const _0x1d28e2=_0x350772;this[_0x1d28e2(0xe6)]['currentSkeleton$'][_0x1d28e2(0xcb)](_0x140ecf(this[_0x1d28e2(0xa8)]),_0xa0b962(_0x24b4ba=>{const _0x362c99=_0x1d28e2;if(_0x24b4ba){const _0xfdbbde=_0x24b4ba[_0x362c99(0x16e)];return _0x264ffa(this['_collabCursorController'][_0x362c99(0x286)](this[_0x362c99(0x13e)]['unitId']),this[_0x362c99(0x29c)][_0x362c99(0x24e)])['pipe'](_0x273082(([_0x561fdc,_0x5f1957])=>{const _0x3f8b11=new Map();return _0x561fdc['forEach']((_0x2bf7b0,_0x2df34d)=>{const _0x52a482=_0x2f90;if(_0x2bf7b0[_0x52a482(0x2a9)]===_0xfdbbde){const _0x3d4e6a={..._0x2bf7b0};_0x3d4e6a[_0x52a482(0x231)]=this[_0x52a482(0x29c)][_0x52a482(0x149)](_0x2bf7b0['color']),_0x3f8b11[_0x52a482(0x279)](_0x2df34d,_0x3d4e6a);}}),{'skeleton':_0x24b4ba,'cursors':_0x3f8b11};}));}return _0x37bd79({'skeleton':null,'cursors':new Map()});}))[_0x1d28e2(0x28a)](({skeleton:_0x1a0aab,cursors:_0x20dbd8})=>{const _0x3eb81c=_0x1d28e2;this[_0x3eb81c(0xd1)](),_0x1a0aab&&this[_0x3eb81c(0x1e2)](_0x1a0aab,_0x20dbd8);}),this[_0x1d28e2(0xe6)][_0x1d28e2(0x13f)][_0x1d28e2(0x28a)](_0x38b86d=>{const _0x5535b9=_0x1d28e2;if(_0x38b86d==null)return;const {skeleton:_0x38ed05}=_0x38b86d,{scene:_0xd819a}=this['_context'];_0xd819a[_0x5535b9(0x187)][_0x5535b9(0x114)](_0x54c55d(_0x390f4c=>{const _0x1bec51=_0x5535b9;var _0x57c6d4,_0x34d60b;const {offsetX:_0x477e73,offsetY:_0x4cea53}=_0x390f4c,{x:_0x38880a,y:_0x5134cf}=_0xd819a[_0x1bec51(0x255)](_0x53f9d6[_0x1bec51(0x1a2)]([_0x477e73,_0x4cea53])),{scaleX:_0x1943c6,scaleY:_0xebeb6a}=_0xd819a['getAncestorScale'](),_0x2b52c9=_0xd819a['getViewport'](_0x3d904a[_0x1bec51(0xf1)]),_0x5a8391=_0xd819a[_0x1bec51(0x166)](_0x53f9d6[_0x1bec51(0x1a2)]([_0x38880a,_0x5134cf]),_0x2b52c9),_0x48b872=_0x38ed05['getCellPositionByOffset'](_0x477e73,_0x4cea53,_0x1943c6,_0xebeb6a,_0x5a8391);((_0x57c6d4=this[_0x1bec51(0x130)])==null?void 0x0:_0x57c6d4['column'])===_0x48b872[_0x1bec51(0x190)]&&((_0x34d60b=this['_lastPointer'])==null?void 0x0:_0x34d60b['row'])===_0x48b872['row']||this['_cursors'][_0x1bec51(0x237)](_0x1bcbad=>{const _0x1d1c57=_0x1bec51;_0x1bcbad[_0x1d1c57(0x15c)](_0x48b872);});},0x64));});}[_0x350772(0x1e2)](_0x372c9e,_0x4fa8cd){const _0x4916f0=_0x350772;var _0x354330;const _0x3d71c6=(_0x354330=this['_sheetSkeletonManagerService'][_0x4916f0(0xdc)]())==null?void 0x0:_0x354330[_0x4916f0(0xf0)];if(!_0x3d71c6)return;const _0x2cdb71=this[_0x4916f0(0x148)]();if(!_0x2cdb71)return;this[_0x4916f0(0x1c4)][_0x4916f0(0x237)](_0x33e0b9=>{_0x33e0b9['makeDirty']();});const {scene:_0x1e5705}=_0x2cdb71,_0x1d0212=on(Array[_0x4916f0(0x22d)](_0x4fa8cd[_0x4916f0(0x2b1)]()))[_0x4916f0(0xba)](_0x4aaf93=>{const _0x297a82=_0x4916f0,{color:_0x44329a,range:_0x3172f0,name:_0x2a8c07,selection:_0x488b1e,sheetID:_0x102717}=_0x4aaf93,{startColumn:_0x4f844b,startRow:_0x332929,endColumn:_0x340d6d,endRow:_0x289b7f}=_0x3172f0,_0x4878bb=_0x26559f(_0x332929,_0x4f844b,_0x1e5705,_0x3d71c6),_0x5d5660=_0x26559f(_0x289b7f,_0x340d6d,_0x1e5705,_0x3d71c6),{columnHeaderHeightAndMarginTop:_0x2f1410}=_0x3d71c6,{startX:_0x4eef3d,startY:_0x58b713}=_0x4878bb,{endX:_0x1c45b1,endY:_0x77ac6e}=_0x5d5660,_0x33ee82=_0x1c45b1-_0x4eef3d,_0x35a5b8=_0x77ac6e-_0x58b713,_0x4d1430={'labelPosition':_0x58b713-_0x2f1410>=q?_0x297a82(0x16c):'bottom','sheetID':_0x102717,'range':_0x3172f0,'color':_0x44329a,'name':_0x2a8c07,'selection':_0x488b1e,'left':_0x4eef3d,'top':_0x58b713,'width':_0x33ee82,'height':_0x35a5b8,'evented':!0x1,'zIndex':rn};return new tn(_0x2a8c07,_0x4d1430);});_0x1e5705['addObjects'](_0x1d0212,qi),this[_0x4916f0(0x1c4)]=new Set(_0x1d0212);}[_0x350772(0xd1)](){const _0x2581d9=_0x350772;var _0x27d0bd;(_0x27d0bd=this['_cursors'])==null||_0x27d0bd['forEach'](_0x56b801=>_0x56b801[_0x2581d9(0x1e0)]());}['_getSheetObject'](){const _0x112333=_0x350772;return _0x15f05b(this[_0x112333(0x13e)][_0x112333(0x298)],this[_0x112333(0x13e)]);}};xe=nn([Re(0x1,_0x1ada69(_0x301028)),Re(0x2,_0x1ada69(Y)),Re(0x3,_0x1ada69(_0x3617fd))],xe);function on(_0x5a5404){const _0x3e076d=_0x350772,_0x1615b1=new Map();return _0x5a5404[_0x3e076d(0x237)](_0x2fb7f2=>{const _0x4da6e0=_0x3e076d;if(_0x1615b1[_0x4da6e0(0x105)](_0x2fb7f2[_0x4da6e0(0x265)])){const _0x35168f=_0x1615b1['get'](_0x2fb7f2[_0x4da6e0(0x265)]);_0x35168f['name']+=',\x20'+_0x2fb7f2[_0x4da6e0(0x2c1)];}else _0x1615b1[_0x4da6e0(0x279)](_0x2fb7f2[_0x4da6e0(0x265)],_0x2fb7f2);}),Array[_0x3e076d(0x22d)](_0x1615b1[_0x3e076d(0x2b1)]());}var an=Object[_0x350772(0x2c2)],cn=(_0x7a321d,_0x1134ca,_0x2c9406,_0x48a62a)=>{for(var _0x566e82=_0x48a62a>0x1?void 0x0:_0x48a62a?an(_0x1134ca,_0x2c9406):_0x1134ca,_0x1dde6f=_0x7a321d['length']-0x1,_0x347611;_0x1dde6f>=0x0;_0x1dde6f--)(_0x347611=_0x7a321d[_0x1dde6f])&&(_0x566e82=_0x347611(_0x566e82)||_0x566e82);return _0x566e82;},k=(_0x47048c,_0x12d366)=>(_0x18363a,_0x9c8a20)=>_0x12d366(_0x18363a,_0x9c8a20,_0x47048c);let le=class extends _0x2d8b34{constructor(_0x53e0c3,_0x4f2014,_0x153d85,_0x23785a,_0x532fec,_0x4c3531){const _0x1bcbcf=_0x350772;super(),this[_0x1bcbcf(0x2a8)]=_0x53e0c3,this[_0x1bcbcf(0x21a)]=_0x4f2014,this[_0x1bcbcf(0x2d9)]=_0x153d85,this['_messageService']=_0x23785a,this[_0x1bcbcf(0x26f)]=_0x532fec,this['_localeService']=_0x4c3531,this['_setupBeforeClosingHandler'](),this[_0x1bcbcf(0x267)]();}[_0x350772(0xab)](){const _0x306564=_0x350772;this[_0x306564(0x222)](this[_0x306564(0x2a8)][_0x306564(0xb2)](()=>{const _0x301a69=_0x306564;if(this['_localCacheService']['saveTaskMap'][_0x301a69(0x2ce)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}['_initEvent'](){const _0x35dac8=_0x350772;this[_0x35dac8(0x222)](this[_0x35dac8(0x2d9)][_0x35dac8(0x1b9)]['subscribe'](_0x4b1961=>{const _0x507663=_0x35dac8;_0x4b1961['id']===_0x2b9ee3['OTHER_CLIENT_EDITING']&&this[_0x507663(0x2bb)][_0x507663(0xb9)]({'type':_0x13949b['Warning'],'content':this['_localeService']['t'](_0x507663(0x203))}),_0x4b1961['id']===_0x2b9ee3[_0x507663(0x25b)]&&this[_0x507663(0x2bb)][_0x507663(0xb9)]({'type':_0x13949b[_0x507663(0xb1)],'content':this[_0x507663(0x252)]['t'](_0x507663(0x200))}),_0x4b1961['id']===_0x2b9ee3[_0x507663(0x233)]&&this[_0x507663(0x26f)][_0x507663(0xb9)]({'title':this['_localeService']['t'](_0x507663(0xaa)),'content':this[_0x507663(0x252)]['t'](_0x507663(0x284)),'type':'error','duration':0x0}),_0x4b1961['id']===_0x2b9ee3[_0x507663(0x2af)]&&this[_0x507663(0x2bb)][_0x507663(0xb9)]({'type':_0x13949b[_0x507663(0x196)],'content':this[_0x507663(0x252)]['t'](_0x507663(0x200))+'('+_0x4b1961[_0x507663(0x223)]+')'}),_0x4b1961['id']===_0x2b9ee3[_0x507663(0x1d8)]&&this[_0x507663(0x2bb)][_0x507663(0xb9)]({'type':_0x13949b[_0x507663(0xb1)],'content':this['_localeService']['t'](_0x4b1961['data']||'')}),_0x4b1961['id']===_0x2b9ee3['SOCKET_FAILED_RETRY']&&this[_0x507663(0x2bb)][_0x507663(0xb9)]({'type':_0x13949b[_0x507663(0xb1)],'content':this[_0x507663(0x252)]['t'](_0x507663(0x1ea))}),_0x4b1961['id']===_0x2b9ee3[_0x507663(0xb0)]&&this[_0x507663(0x2bb)][_0x507663(0xb9)]({'type':_0x13949b[_0x507663(0x196)],'content':this[_0x507663(0x252)]['t'](_0x507663(0x2bc))}),_0x4b1961['id']===_0x2b9ee3[_0x507663(0x29e)]&&this[_0x507663(0x2bb)][_0x507663(0xb9)]({'type':_0x13949b[_0x507663(0x196)],'content':this['_localeService']['t'](_0x507663(0x2df))});}));}};le=cn([k(0x0,_0x48b30a),k(0x1,_0x5c5358),k(0x2,_0x1ada69(_0x9b1590)),k(0x3,_0x41069b),k(0x4,_0x2b8f27),k(0x5,_0x1ada69(_0x57786a))],le);const ln=_0x350772(0xf5),at={};var _n=Object[_0x350772(0x2c2)],hn=(_0x2e5925,_0x4608dd,_0x2543a8,_0x14e11b)=>{const _0x4378e0=_0x350772;for(var _0x27fd9f=_0x14e11b>0x1?void 0x0:_0x14e11b?_n(_0x4608dd,_0x2543a8):_0x4608dd,_0x31bc40=_0x2e5925[_0x4378e0(0x2e6)]-0x1,_0x26e9ba;_0x31bc40>=0x0;_0x31bc40--)(_0x26e9ba=_0x2e5925[_0x31bc40])&&(_0x27fd9f=_0x26e9ba(_0x27fd9f)||_0x27fd9f);return _0x27fd9f;},ct=(_0x1da711,_0x3ef6f8)=>(_0xe2002f,_0x1e8326)=>_0x3ef6f8(_0xe2002f,_0x1e8326,_0x1da711);let _e=class{constructor(_0x3ff888,_0x4422a0){const _0x1eb2b5=_0x350772;this['_transformService']=_0x3ff888,this[_0x1eb2b5(0x225)]=_0x4422a0;}['transformIMECache'](_0x13e0c8){const _0x4bade9=_0x350772;this[_0x4bade9(0x288)](_0x13e0c8),this[_0x4bade9(0x143)](_0x13e0c8);}['transformRemoteChangeset'](_0xbb41ba){const _0x447e64=_0x350772,{unitID:_0x1304e4}=_0xbb41ba,_0x390546=this[_0x447e64(0x225)][_0x447e64(0x1a9)](_0x1304e4)[_0x447e64(0x1ba)](_0x10bdfa),{redoCache:_0xac8d05}=_0x390546[_0x447e64(0x164)]();if(_0xac8d05[_0x447e64(0x2e6)]===0x0)return _0xbb41ba;let _0x5f050f=_0x2d642b['deepClone'](_0xbb41ba[_0x447e64(0x1c7)][0x0]);for(let _0x561070=0x0;_0x561070<_0xac8d05[_0x447e64(0x2e6)];_0x561070++){const _0x4cf302={'id':_0x447e64(0xe8),'params':{..._0xac8d05[_0x561070]}},_0x203845=this['_transformService'][_0x447e64(0x280)](_0x5f050f,_0x4cf302,!0x1);if(_0x456676(_0x203845))throw _0x203845[_0x447e64(0x246)];_0x5f050f=_0x203845['m1Prime'];}return{..._0x2d642b[_0x447e64(0xb8)](_0xbb41ba),'mutations':[_0x5f050f]};}[_0x350772(0x288)](_0x5f36cb){const _0xa8b578=_0x350772,{unitID:_0x25d9f1}=_0x5f36cb,_0x1877fa=this[_0xa8b578(0x225)]['getRenderById'](_0x25d9f1)[_0xa8b578(0x1ba)](_0x10bdfa),{undoCache:_0x5219cb,redoCache:_0x231030}=_0x1877fa[_0xa8b578(0x164)]();if(_0x5219cb[_0xa8b578(0x2e6)]===0x0||_0x231030['length']===0x0)return;const _0x17493f=[],_0x534ad9=[];let _0x2d7f99=_0x2d642b['deepClone'](_0x5f36cb[_0xa8b578(0x1c7)][0x0]),_0x3dbda4=_0x2d642b['deepClone'](_0x5f36cb[_0xa8b578(0x1c7)][0x0]);for(let _0x3c1098=_0x5219cb[_0xa8b578(0x2e6)]-0x1;_0x3c1098>=0x0;_0x3c1098--){const _0x10eef3={'id':_0xa8b578(0xe8),'params':{..._0x5219cb[_0x3c1098]}},_0x51e5e3={'id':_0xa8b578(0xe8),'params':{..._0x231030[_0x3c1098]}},_0x1b6dfa=this[_0xa8b578(0x2cc)]['transformMutation'](_0x2d7f99,_0x10eef3,!0x1),_0x1b2978=this[_0xa8b578(0x2cc)]['transformMutation'](_0x3dbda4,_0x51e5e3,!0x1);if(_0x456676(_0x1b6dfa))throw _0x1b6dfa[_0xa8b578(0x246)];if(_0x456676(_0x1b2978))throw _0x1b2978['error'];_0x17493f[_0xa8b578(0x180)](_0x1b6dfa[_0xa8b578(0x1cb)][_0xa8b578(0x22f)]),_0x534ad9[_0xa8b578(0x180)](_0x1b2978[_0xa8b578(0x1cb)][_0xa8b578(0x22f)]),_0x2d7f99=_0x1b6dfa['m1Prime'],_0x3dbda4=_0x1b2978[_0xa8b578(0xfc)];}_0x1877fa[_0xa8b578(0x2d7)]({'undoCache':_0x17493f,'redoCache':_0x534ad9});}[_0x350772(0x143)](_0x1c2fb2){const _0x527bb8=_0x350772,{unitID:_0x255da9}=_0x1c2fb2,_0x314b7a=this[_0x527bb8(0x225)][_0x527bb8(0x1a9)](_0x255da9)[_0x527bb8(0x1ba)](_0x10bdfa),_0xca0f1a=_0x314b7a[_0x527bb8(0x146)]();if(_0xca0f1a==null)return;const _0x5f225a=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1c2fb2[_0x527bb8(0x2cd)],'actions':null,'textRanges':[_0xca0f1a]}}],_0x2e7288=this[_0x527bb8(0x2cc)][_0x527bb8(0x2c5)](_0x1c2fb2,_0x5f225a);if(!_0x1d6d36(_0x2e7288))throw _0x2e7288[_0x527bb8(0x246)];const _0x4663f4=_0x2e7288['m2Prime'][0x0][_0x527bb8(0x22f)][_0x527bb8(0x102)];Array['isArray'](_0x4663f4)&&_0x4663f4[_0x527bb8(0x2e6)]&&_0x314b7a[_0x527bb8(0xf4)](_0x4663f4[0x0]);}};_e=hn([ct(0x0,_0x3f4e3f),ct(0x1,_0xef866a)],_e);var un=Object['getOwnPropertyDescriptor'],dn=(_0x100a24,_0x3aeb12,_0xe579c1,_0x50327a)=>{const _0x1a95fb=_0x350772;for(var _0x4fa797=_0x50327a>0x1?void 0x0:_0x50327a?un(_0x3aeb12,_0xe579c1):_0x3aeb12,_0x35b718=_0x100a24[_0x1a95fb(0x2e6)]-0x1,_0x6ae35e;_0x35b718>=0x0;_0x35b718--)(_0x6ae35e=_0x100a24[_0x35b718])&&(_0x4fa797=_0x6ae35e(_0x4fa797)||_0x4fa797);return _0x4fa797;},De=(_0x3d1fdd,_0x2c579f)=>(_0x40ccf0,_0x2b0205)=>_0x2c579f(_0x40ccf0,_0x2b0205,_0x3d1fdd);let he=class{constructor(_0x232b5b,_0x4e9a80,_0x265fea){const _0x57d450=_0x350772;this[_0x57d450(0x12a)]=_0x232b5b,this[_0x57d450(0x2cc)]=_0x4e9a80,this['_docStateChangeManagerService']=_0x265fea;}[_0x350772(0x2a0)](_0x406c12){this['_transformHistoryAndStateStack'](_0x406c12);}[_0x350772(0x192)](_0x1b9af1){const _0x309489=_0x350772,{unitID:_0x2ce076}=_0x1b9af1,{collaboration:_0x421dbb}=this[_0x309489(0x169)][_0x309489(0x198)](_0x2ce076);if(_0x421dbb[_0x309489(0x2e6)]===0x0)return _0x1b9af1;let _0x14a0a9=_0x2d642b[_0x309489(0xb8)](_0x1b9af1[_0x309489(0x1c7)][0x0]);for(let _0x4251b8=0x0;_0x4251b8<_0x421dbb[_0x309489(0x2e6)];_0x4251b8++){const _0xac3f30={'id':_0x309489(0xe8),'params':{'unitId':_0x421dbb[_0x4251b8]['unitId'],..._0x421dbb[_0x4251b8][_0x309489(0x2a5)]}},_0x3c3d0a=this[_0x309489(0x2cc)][_0x309489(0x280)](_0x14a0a9,_0xac3f30,!0x1);if(_0x456676(_0x3c3d0a))throw _0x3c3d0a[_0x309489(0x246)];_0x14a0a9=_0x3c3d0a[_0x309489(0xfc)];}return{..._0x2d642b[_0x309489(0xb8)](_0x1b9af1),'mutations':[_0x14a0a9]};}[_0x350772(0x1bb)](_0x35860a){const _0x5cc18f=_0x350772,{unitID:_0x7f25c3}=_0x35860a,{history:_0xe38233,collaboration:_0x5eae92}=this[_0x5cc18f(0x169)][_0x5cc18f(0x198)](_0x7f25c3);if(_0xe38233[_0x5cc18f(0x2e6)]===0x0&&_0x5eae92[_0x5cc18f(0x2e6)]===0x0)return;const _0x55bf9f=[],_0x6c7737=[];let _0x458c25=_0x2d642b['deepClone'](_0x35860a['mutations'][0x0]),_0x57917d=_0x2d642b[_0x5cc18f(0xb8)](_0x35860a[_0x5cc18f(0x1c7)][0x0]);for(let _0x442866=_0xe38233['length']-0x1;_0x442866>=0x0;_0x442866--){const _0x105de2={'id':_0x5cc18f(0xe8),'params':{'unitId':_0xe38233[_0x442866][_0x5cc18f(0x154)],..._0xe38233[_0x442866][_0x5cc18f(0x296)]}},_0xcc926={'id':_0x5cc18f(0xe8),'params':{'unitId':_0xe38233[_0x442866][_0x5cc18f(0x154)],..._0xe38233[_0x442866][_0x5cc18f(0x2a5)]}},_0x4d07ef=this[_0x5cc18f(0x2cc)]['transformMutation'](_0x458c25,_0x105de2,!0x1),_0x218ff5=this['_transformService'][_0x5cc18f(0x280)](_0x57917d,_0xcc926,!0x1);if(_0x456676(_0x4d07ef))throw _0x4d07ef[_0x5cc18f(0x246)];if(_0x456676(_0x218ff5))throw _0x218ff5[_0x5cc18f(0x246)];_0x55bf9f['unshift']({..._0xe38233[_0x442866],'undoState':_0x4d07ef['m2Prime'][_0x5cc18f(0x22f)],'redoState':_0x218ff5['m2Prime'][_0x5cc18f(0x22f)]}),_0x458c25=_0x4d07ef[_0x5cc18f(0xfc)],_0x57917d=_0x218ff5['m1Prime'];}_0x458c25=_0x2d642b[_0x5cc18f(0xb8)](_0x35860a['mutations'][0x0]),_0x57917d=_0x2d642b[_0x5cc18f(0xb8)](_0x35860a[_0x5cc18f(0x1c7)][0x0]);for(let _0x2a7ac5=_0x5eae92[_0x5cc18f(0x2e6)]-0x1;_0x2a7ac5>=0x0;_0x2a7ac5--){const _0x5d6e7b={'id':_0x5cc18f(0xe8),'params':{'unitId':_0x5eae92[_0x2a7ac5][_0x5cc18f(0x154)],..._0x5eae92[_0x2a7ac5][_0x5cc18f(0x296)]}},_0x295bae={'id':_0x5cc18f(0xe8),'params':{'unitId':_0x5eae92[_0x2a7ac5]['unitId'],..._0x5eae92[_0x2a7ac5][_0x5cc18f(0x2a5)]}},_0x5d5c50=this[_0x5cc18f(0x2cc)]['transformMutation'](_0x458c25,_0x5d6e7b,!0x1),_0x4db733=this[_0x5cc18f(0x2cc)]['transformMutation'](_0x57917d,_0x295bae,!0x1);if(_0x456676(_0x5d5c50))throw _0x5d5c50[_0x5cc18f(0x246)];if(_0x456676(_0x4db733))throw _0x4db733[_0x5cc18f(0x246)];_0x6c7737[_0x5cc18f(0x180)]({..._0x5eae92[_0x2a7ac5],'undoState':_0x5d5c50[_0x5cc18f(0x1cb)][_0x5cc18f(0x22f)],'redoState':_0x4db733[_0x5cc18f(0x1cb)][_0x5cc18f(0x22f)]}),_0x458c25=_0x5d5c50[_0x5cc18f(0xfc)],_0x57917d=_0x4db733['m1Prime'];}this[_0x5cc18f(0x169)]['setStateCache'](_0x7f25c3,{'history':_0x55bf9f,'collaboration':_0x6c7737});}};he=dn([De(0x0,_0x1ada69(_0x37163f)),De(0x1,_0x3f4e3f),De(0x2,_0x1ada69(_0x25d3bb))],he);var fn=Object[_0x350772(0x2c2)],Sn=(_0x4baa8c,_0xe2140b,_0x24731b,_0x5bdf1e)=>{for(var _0x18ebcf=_0x5bdf1e>0x1?void 0x0:_0x5bdf1e?fn(_0xe2140b,_0x24731b):_0xe2140b,_0x2c3b69=_0x4baa8c['length']-0x1,_0x94ecc0;_0x2c3b69>=0x0;_0x2c3b69--)(_0x94ecc0=_0x4baa8c[_0x2c3b69])&&(_0x18ebcf=_0x94ecc0(_0x18ebcf)||_0x18ebcf);return _0x18ebcf;},lt=(_0x503192,_0x38217e)=>(_0x708c96,_0x1a1938)=>_0x38217e(_0x708c96,_0x1a1938,_0x503192);let ue=class{constructor(_0x239d06,_0x3ac525){this['_injector']=_0x239d06,this['_transformService']=_0x3ac525;}[_0x350772(0x18c)](_0x1ea133){const _0x1dcb68=_0x350772;var _0x230118;const _0x45f3aa=this[_0x1dcb68(0x12a)]['get'](_0x47440a),_0xb8127a=(_0x230118=_0x45f3aa[_0x1dcb68(0x2e1)]())!=null?_0x230118:[];if(_0xb8127a[_0x1dcb68(0x2e6)]===0x0)return;const _0x19b6de=_0x1ea133[_0x1dcb68(0x2cd)],_0x553cf3=[{'id':_0x1dcb68(0xe8),'params':{'unitId':_0x19b6de,'actions':null,'textRanges':_0xb8127a}}],_0x4c99aa=this[_0x1dcb68(0x2cc)][_0x1dcb68(0x2c5)](_0x1ea133,_0x553cf3);if(!_0x1d6d36(_0x4c99aa))throw _0x4c99aa['error'];const _0xb4fb2b=_0x4c99aa[_0x1dcb68(0x1cb)][0x0][_0x1dcb68(0x22f)][_0x1dcb68(0x102)];Array[_0x1dcb68(0x118)](_0xb4fb2b)&&_0xb4fb2b[_0x1dcb68(0x2e6)]&&_0x45f3aa['replaceDocRanges'](_0xb4fb2b,{'unitId':_0x19b6de,'subUnitId':_0x19b6de},!0x1);}};ue=Sn([lt(0x0,_0x1ada69(_0x37163f)),lt(0x1,_0x3f4e3f)],ue);var mn=Object[_0x350772(0x2c2)],In=(_0x526f7e,_0x4e92ea,_0x317568,_0x49621d)=>{const _0x405fb5=_0x350772;for(var _0x1300d7=_0x49621d>0x1?void 0x0:_0x49621d?mn(_0x4e92ea,_0x317568):_0x4e92ea,_0x3b37d4=_0x526f7e[_0x405fb5(0x2e6)]-0x1,_0x495bcd;_0x3b37d4>=0x0;_0x3b37d4--)(_0x495bcd=_0x526f7e[_0x3b37d4])&&(_0x1300d7=_0x495bcd(_0x1300d7)||_0x1300d7);return _0x1300d7;},U=(_0x1f2886,_0x479193)=>(_0x1c2f80,_0x4af24a)=>_0x479193(_0x1c2f80,_0x4af24a,_0x1f2886);let de=class extends _0x2d8b34{constructor(_0x3a4cd7,_0x22f27a,_0x2ef208,_0x22b67c,_0x4b1f6a,_0x2a413b,_0x52a370,_0x3c855c){const _0x434e7e=_0x350772;super(),_(this,_0x434e7e(0xea),new _0x1cc040(_0x180dd3[_0x434e7e(0x2b5)])),(this[_0x434e7e(0x169)]=_0x3a4cd7,this[_0x434e7e(0x2c3)]=_0x22f27a,this['_docTransformIMECacheService']=_0x2ef208,this[_0x434e7e(0x215)]=_0x22b67c,this[_0x434e7e(0xa9)]=_0x4b1f6a,this[_0x434e7e(0x24d)]=_0x2a413b,this['_messageService']=_0x52a370,this[_0x434e7e(0x252)]=_0x3c855c,this[_0x434e7e(0x139)]());}['_initEntityListener'](){const _0x5d69be=_0x350772;this[_0x5d69be(0x222)](this['_collaborationController'][_0x5d69be(0x123)][_0x5d69be(0x28a)](_0x14d07c=>{const _0x56a681=_0x5d69be,_0x2fddd6=this[_0x56a681(0x169)][_0x56a681(0x177)][_0x56a681(0x28a)](_0x31331c=>{const _0x65db5c=_0x56a681;if(_0x31331c==null)return;const {unitId:_0x5271d8,redoState:_0x3c8db8,commandId:_0x260aae}=_0x31331c;if(_0x5271d8!==_0x14d07c[_0x65db5c(0x2cd)])return;const _0x353e15={'id':_0x260aae,'type':_0x4dffdb[_0x65db5c(0x2d3)],'params':{'unitId':_0x5271d8,'actions':_0x3c8db8[_0x65db5c(0x2c0)],'textRanges':null}};_0x14d07c[_0x65db5c(0x214)](_0x353e15);});if(_0x14d07c['disposeWithMe'](_0x2fddd6),_0x14d07c instanceof _0xe5876){const _0x3af763={'onTransformIME':_0x434304=>this[_0x56a681(0x229)][_0x56a681(0x202)](_0x434304),'onTransformState':_0x10fc50=>this[_0x56a681(0x215)][_0x56a681(0x2a0)](_0x10fc50),'onTransformSelections':_0x5eeecb=>this[_0x56a681(0xa9)]['transformSelections'](_0x5eeecb),'onSyncEditingCollabCursor':_0x5299c3=>this[_0x56a681(0x24d)]['syncEditingCollabCursor'](_0x5299c3),'onTransformRemoteChangesetByIMECache':_0x5aa5ff=>this[_0x56a681(0x229)][_0x56a681(0x192)](_0x5aa5ff),'onTransformRemoteChangesetByStateCache':_0x12b0c8=>this[_0x56a681(0x215)][_0x56a681(0x192)](_0x12b0c8)};_0x14d07c['addHandlerCallback'](_0x3af763);}}));}};de=In([U(0x0,_0x1ada69(_0x25d3bb)),U(0x1,_0x1ada69(_0x1e6a4e)),U(0x2,_0x1ada69(_e)),U(0x3,_0x1ada69(he)),U(0x4,_0x1ada69(ue)),U(0x5,_0x1ada69(Ke)),U(0x6,_0x41069b),U(0x7,_0x1ada69(_0x57786a))],de);var Q=(_0x28ee1b=>(_0x28ee1b[_0x28ee1b[_0x350772(0x1f7)]=0x0]=_0x350772(0x1f7),_0x28ee1b[_0x28ee1b['OK']=0x1]='OK',_0x28ee1b[_0x28ee1b[_0x350772(0x1f6)]=0x2]=_0x350772(0x1f6),_0x28ee1b[_0x28ee1b['PERMISSION_DENIED']=0x3]=_0x350772(0x233),_0x28ee1b[_0x28ee1b[_0x350772(0x142)]=0x4]=_0x350772(0x142),_0x28ee1b[_0x28ee1b[_0x350772(0x11f)]=0x5]=_0x350772(0x11f),_0x28ee1b[_0x28ee1b['ALREADY_EXISTS']=0x6]=_0x350772(0x20c),_0x28ee1b[_0x28ee1b['INVALID_ARGUMENT']=0x7]=_0x350772(0x224),_0x28ee1b[_0x28ee1b[_0x350772(0x1db)]=0x8]=_0x350772(0x1db),_0x28ee1b[_0x28ee1b[_0x350772(0x111)]=0x9]='COMPLETION_FINISHED',_0x28ee1b[_0x28ee1b[_0x350772(0x19c)]=0xa]=_0x350772(0x19c),_0x28ee1b[_0x28ee1b[_0x350772(0x273)]=0xb]=_0x350772(0x273),_0x28ee1b[_0x28ee1b[_0x350772(0x171)]=0xc]=_0x350772(0x171),_0x28ee1b[_0x28ee1b['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x350772(0x2a4),_0x28ee1b[_0x28ee1b['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x350772(0x15a),_0x28ee1b[_0x28ee1b[_0x350772(0x17d)]=0xf]=_0x350772(0x17d),_0x28ee1b[_0x28ee1b['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x350772(0xd4),_0x28ee1b[_0x28ee1b[_0x350772(0x228)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x28ee1b[_0x28ee1b[_0x350772(0x1a7)]=0x65]=_0x350772(0x1a7),_0x28ee1b[_0x28ee1b[_0x350772(0x260)]=0xc9]=_0x350772(0x260),_0x28ee1b[_0x28ee1b['USER_IS_ANONYMOUS']=0xca]=_0x350772(0xe2),_0x28ee1b[_0x28ee1b[_0x350772(0x26a)]=0x1389]=_0x350772(0x26a),_0x28ee1b[_0x28ee1b[_0x350772(0x270)]=0x1771]=_0x350772(0x270),_0x28ee1b[_0x28ee1b[_0x350772(0xc3)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x28ee1b[_0x28ee1b[_0x350772(0x23f)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x28ee1b[_0x28ee1b[_0x350772(0x116)]=0x1b59]=_0x350772(0x116),_0x28ee1b[_0x28ee1b[_0x350772(0x1da)]=0x1b5a]=_0x350772(0x1da),_0x28ee1b[_0x28ee1b[_0x350772(0xdd)]=0x1b5b]=_0x350772(0xdd),_0x28ee1b[_0x28ee1b[_0x350772(0x2a1)]=0x1b5c]=_0x350772(0x2a1),_0x28ee1b[_0x28ee1b[_0x350772(0x29a)]=0x1b5d]=_0x350772(0x29a),_0x28ee1b[_0x28ee1b[_0x350772(0x1a4)]=0x1f41]=_0x350772(0x1a4),_0x28ee1b[_0x28ee1b[_0x350772(0xac)]=0x2329]=_0x350772(0xac),_0x28ee1b[_0x28ee1b[_0x350772(0x28b)]=0x232a]=_0x350772(0x28b),_0x28ee1b[_0x28ee1b[_0x350772(0x1fe)]=0x232b]=_0x350772(0x1fe),_0x28ee1b[_0x28ee1b['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x350772(0x27e),_0x28ee1b[_0x28ee1b[_0x350772(0x2ac)]=0x232d]=_0x350772(0x2ac),_0x28ee1b[_0x28ee1b['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x350772(0x12b),_0x28ee1b[_0x28ee1b[_0x350772(0x195)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x28ee1b[_0x28ee1b[_0x350772(0x1d6)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x28ee1b[_0x28ee1b[_0x350772(0x173)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x28ee1b[_0x28ee1b[_0x350772(0x204)]=0x271a]=_0x350772(0x204),_0x28ee1b[_0x28ee1b[_0x350772(0xbc)]=0x271b]=_0x350772(0xbc),_0x28ee1b[_0x28ee1b['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x350772(0x26d),_0x28ee1b[_0x28ee1b[_0x350772(0xaf)]=0x271d]=_0x350772(0xaf),_0x28ee1b[_0x28ee1b[_0x350772(0xff)]=0x271e]=_0x350772(0xff),_0x28ee1b[_0x28ee1b[_0x350772(0x170)]=0x271f]=_0x350772(0x170),_0x28ee1b[_0x28ee1b[_0x350772(0x1d1)]=0x2720]=_0x350772(0x1d1),_0x28ee1b[_0x28ee1b[_0x350772(0x1dd)]=0x2af9]=_0x350772(0x1dd),_0x28ee1b[_0x28ee1b[_0x350772(0x257)]=0x2ee1]=_0x350772(0x257),_0x28ee1b[_0x28ee1b[_0x350772(0x167)]=0x2ee2]=_0x350772(0x167),_0x28ee1b[_0x28ee1b[_0x350772(0x1f2)]=0x2ee3]=_0x350772(0x1f2),_0x28ee1b[_0x28ee1b[_0x350772(0x122)]=0x2ee4]=_0x350772(0x122),_0x28ee1b[_0x28ee1b[_0x350772(0xf9)]=0x2ee5]=_0x350772(0xf9),_0x28ee1b[_0x28ee1b[_0x350772(0x13c)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x28ee1b[_0x28ee1b['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x350772(0x129),_0x28ee1b[_0x28ee1b[_0x350772(0x14d)]=0x32cb]=_0x350772(0x14d),_0x28ee1b[_0x28ee1b[_0x350772(0xe7)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x28ee1b[_0x28ee1b[_0x350772(0x2a6)]=0x36b2]=_0x350772(0x2a6),_0x28ee1b[_0x28ee1b[_0x350772(0x2dd)]=0x36b3]=_0x350772(0x2dd),_0x28ee1b[_0x28ee1b[_0x350772(0x107)]=0x36b4]=_0x350772(0x107),_0x28ee1b[_0x28ee1b[_0x350772(0xae)]=0x3715]=_0x350772(0xae),_0x28ee1b[_0x28ee1b[_0x350772(0x2ab)]=0x3716]=_0x350772(0x2ab),_0x28ee1b[_0x28ee1b[_0x350772(0x1ab)]=0x37dd]=_0x350772(0x1ab),_0x28ee1b[_0x28ee1b[_0x350772(0x19a)]=0x3a99]=_0x350772(0x19a),_0x28ee1b[_0x28ee1b[_0x350772(0x108)]=0x3a9a]=_0x350772(0x108),_0x28ee1b[_0x28ee1b['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x350772(0x20a),_0x28ee1b[_0x28ee1b[_0x350772(0x17c)]=0x3a9c]=_0x350772(0x17c),_0x28ee1b[_0x28ee1b[_0x350772(0xc0)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x28ee1b[_0x28ee1b[_0x350772(0x136)]=0x3a9e]=_0x350772(0x136),_0x28ee1b[_0x28ee1b[_0x350772(0x25f)]=0x3a9f]=_0x350772(0x25f),_0x28ee1b[_0x28ee1b[_0x350772(0x242)]=-0x1]=_0x350772(0x242),_0x28ee1b))(Q||{});function gn(_0x56dd13){const _0x235e50=_0x350772;var _0x33b6a7,_0x1e9e1a;const _0x2b22aa=(_0x33b6a7=_0x56dd13['stageInfo'])==null?void 0x0:_0x33b6a7['stage'],_0xf77972=((_0x1e9e1a=_0x56dd13[_0x235e50(0x285)])==null?void 0x0:_0x1e9e1a[_0x235e50(0x2da)])||0x0;return _0x2b22aa===_0x33c948[_0x235e50(0x220)]&&_0xf77972>0x0;}function vn(_0x5b54d9){const _0xe9f166=_0x350772;return _0x5b54d9[_0xe9f166(0xf3)]===_0x323fe9['SUCCESS'];}var En=Object[_0x350772(0x2c2)],pn=(_0xd93e7e,_0x149de7,_0x5d415e,_0x50ee24)=>{for(var _0x3223a0=_0x50ee24>0x1?void 0x0:_0x50ee24?En(_0x149de7,_0x5d415e):_0x149de7,_0x3cef2c=_0xd93e7e['length']-0x1,_0x179233;_0x3cef2c>=0x0;_0x3cef2c--)(_0x179233=_0xd93e7e[_0x3cef2c])&&(_0x3223a0=_0x179233(_0x3223a0)||_0x3223a0);return _0x3223a0;},w=(_0x54315f,_0xbc81c4)=>(_0xa67a56,_0x5d0c96)=>_0xbc81c4(_0xa67a56,_0x5d0c96,_0x54315f);const On=_0x350772(0xf6),Tn=_0x350772(0x141),Cn='/universer-api/license/formula/limit/done';let fe=class extends _0x2d8b34{constructor(_0x19abff,_0x144f77,_0x3e6855,_0x1fc45c,_0x57f780,_0x102307,_0x25f477){const _0x598a1f=_0x350772;super(),_(this,_0x598a1f(0x1e5),null),_(this,'_maxFormulaLimit',0x0),_(this,_0x598a1f(0x18d),0x0),_(this,_0x598a1f(0x2b0),[]),_(this,_0x598a1f(0xdb),0x0),(this[_0x598a1f(0x2bb)]=_0x19abff,this['_commandService']=_0x144f77,this[_0x598a1f(0x295)]=_0x3e6855,this['_httpService']=_0x1fc45c,this['_univerInstanceService']=_0x57f780,this['_logService']=_0x102307,this[_0x598a1f(0x252)]=_0x25f477,this[_0x598a1f(0x1ce)]());}[_0x350772(0x1ce)](){const _0x525379=_0x350772;this[_0x525379(0x222)](this[_0x525379(0xe1)][_0x525379(0x1cc)]((_0x47237a,_0x1e3815)=>{const _0x20f660=_0x525379;if(_0x47237a['id']!==_0x17319b['id'])return;const _0x5a5504=_0x47237a[_0x20f660(0x22f)];if(!this[_0x20f660(0x277)](_0x5a5504[_0x20f660(0x2d8)]))return;if(!this[_0x20f660(0x184)]())throw this[_0x20f660(0x1b1)](_0x47237a,_0x1e3815),this['_showGuardMessage'](),new _0x140840();})),this[_0x525379(0x222)](this[_0x525379(0xe1)][_0x525379(0x162)]((_0x30ced5,_0x347ab8)=>{const _0x4df4e2=_0x525379;if(_0x30ced5['id']!==_0x37a5a7['id'])return;const _0x13c5c9=_0x30ced5[_0x4df4e2(0x22f)];if(gn(_0x13c5c9)){const _0x2d85e1=_0x43b449();this[_0x4df4e2(0x2b0)][_0x4df4e2(0x25d)](_0x2d85e1),this[_0x4df4e2(0x254)](_0x2d85e1);}else{if(vn(_0x13c5c9)&&this[_0x4df4e2(0x2b0)][_0x4df4e2(0x2e6)]>0x0){const _0x5a97c3=this[_0x4df4e2(0x2b0)][_0x4df4e2(0x1de)]();this[_0x4df4e2(0x1d5)](_0x5a97c3);}}}));}[_0x350772(0x1e0)](){const _0x2e4d51=_0x350772;super[_0x2e4d51(0x1e0)](),this[_0x2e4d51(0x159)](),this[_0x2e4d51(0x2b0)]=[],this[_0x2e4d51(0x18d)]=0x0,this[_0x2e4d51(0x21c)]=0x0,this[_0x2e4d51(0xdb)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x250bb8,_0x4c3612){const _0x3dfef0=_0x350772;for(let _0x4103d4=0x0;_0x4103d4<0x1e;_0x4103d4++)try{if(await this[_0x3dfef0(0x271)](),this[_0x3dfef0(0x184)]()){this[_0x3dfef0(0x289)](_0x250bb8,_0x4c3612),this['_messageService']['show']({'content':this[_0x3dfef0(0x252)]['t'](_0x3dfef0(0x227)),'type':_0x13949b[_0x3dfef0(0x1fd)]});return;}await new Promise(_0x5b7588=>{const _0x280381=_0x3dfef0;this[_0x280381(0x1e5)]=window['setTimeout'](_0x5b7588,0x3e8);});}catch(_0xf30d98){this['_logService'][_0x3dfef0(0x246)](_0xf30d98);}this[_0x3dfef0(0x2bb)][_0x3dfef0(0xb9)]({'content':this[_0x3dfef0(0x252)]['t'](_0x3dfef0(0x186)),'type':_0x13949b['Error']});}[_0x350772(0x289)](_0x1fdb2d,_0x141322){const _0x5edcfb=_0x350772;try{this[_0x5edcfb(0xe1)]['executeCommand'](_0x1fdb2d['id'],_0x1fdb2d[_0x5edcfb(0x22f)],_0x141322);}catch(_0x4ffe0b){this[_0x5edcfb(0x1cf)][_0x5edcfb(0x246)](_0x4ffe0b);}}[_0x350772(0x2c6)](_0x30a87d,_0x3692c5){const _0x188ce2=_0x350772;_0x3692c5<this['_lastResponseTimestamp']||(this['_lastResponseTimestamp']=_0x3692c5,this[_0x188ce2(0x21c)]=Number[_0x188ce2(0x18e)](_0x30a87d[_0x188ce2(0x18f)]),this['_currentUsage']=Number[_0x188ce2(0x18e)](_0x30a87d[_0x188ce2(0x16a)]));}async[_0x350772(0x254)](_0x12f5af){const _0x524fbe=_0x350772;var _0x5cdebc,_0x29a51a;const _0x587c01=Date['now']();try{const _0x428be7=((_0x5cdebc=this[_0x524fbe(0x295)]['getConfig'](_0x3fa50f))==null?void 0x0:_0x5cdebc[_0x524fbe(0x28e)])||Tn,_0x5bde05=(await this[_0x524fbe(0x22c)][_0x524fbe(0x2b7)](_0x428be7,{'body':JSON['stringify']({'taskId':_0x12f5af})}))[_0x524fbe(0xd3)];if(((_0x29a51a=_0x5bde05[_0x524fbe(0x246)])==null?void 0x0:_0x29a51a['code'])!==Q['OK'])return;this['_setFormulaLimitStatus'](_0x5bde05[_0x524fbe(0x135)],_0x587c01);}catch(_0x42a495){this[_0x524fbe(0x1cf)]['error'](_0x42a495);}}async[_0x350772(0x271)](_0x1e1f86){const _0x11bd8c=_0x350772;var _0x2a4098,_0x54a063;const _0x3810b7=Date[_0x11bd8c(0x2b2)]();try{const _0x2d3fb7=((_0x2a4098=this[_0x11bd8c(0x295)]['getConfig'](_0x3fa50f))==null?void 0x0:_0x2a4098[_0x11bd8c(0x27f)])||On,_0x5e2e4b=_0x1e1f86?_0x2d3fb7+'?taskId='+encodeURIComponent(_0x1e1f86):_0x2d3fb7,_0x4f578a=(await this[_0x11bd8c(0x22c)][_0x11bd8c(0xc6)](_0x5e2e4b))[_0x11bd8c(0xd3)];if(((_0x54a063=_0x4f578a[_0x11bd8c(0x246)])==null?void 0x0:_0x54a063['code'])!==Q['OK'])return;this['_setFormulaLimitStatus'](_0x4f578a[_0x11bd8c(0x135)],_0x3810b7);}catch(_0x420195){this[_0x11bd8c(0x1cf)]['error'](_0x420195);}}async[_0x350772(0x1d5)](_0x3f9592){const _0x3a8913=_0x350772;var _0x1c7ddb,_0x4c3121;const _0x9c1884=Date[_0x3a8913(0x2b2)]();try{const _0x3630a6=((_0x1c7ddb=this[_0x3a8913(0x295)][_0x3a8913(0x181)](_0x3fa50f))==null?void 0x0:_0x1c7ddb[_0x3a8913(0xb4)])||Cn,_0x293317=(await this[_0x3a8913(0x22c)]['post'](_0x3630a6,{'body':JSON[_0x3a8913(0x1c3)]({'taskId':_0x3f9592})}))[_0x3a8913(0xd3)];if(((_0x4c3121=_0x293317[_0x3a8913(0x246)])==null?void 0x0:_0x4c3121[_0x3a8913(0x1c1)])!==Q['OK'])return;this[_0x3a8913(0x2c6)](_0x293317[_0x3a8913(0x135)],_0x9c1884);}catch(_0x5e4912){this[_0x3a8913(0x1cf)][_0x3a8913(0x246)](_0x5e4912);}}[_0x350772(0x184)](){const _0x2ceb52=_0x350772;return this[_0x2ceb52(0x21c)]===0x0?!0x0:this[_0x2ceb52(0x21c)]-this[_0x2ceb52(0x18d)]>0x0;}[_0x350772(0x159)](){const _0x4e9d58=_0x350772;this[_0x4e9d58(0x1e5)]&&(clearTimeout(this['_pollingInterval']),this[_0x4e9d58(0x1e5)]=null);}[_0x350772(0x24c)](){const _0x1c08f7=_0x350772;this[_0x1c08f7(0x2bb)][_0x1c08f7(0xb9)]({'content':this['_localeService']['t']('formula.calculation.waiting'),'type':_0x13949b[_0x1c08f7(0x12c)]});}[_0x350772(0x277)](_0x433c3c){const _0x4d0137=_0x350772;for(const _0x438475 of _0x433c3c){const {unitId:_0x537e50,sheetId:_0x36bdf9,range:_0x435626}=_0x438475,_0x32f073=this['_univerInstanceService'][_0x4d0137(0x261)](_0x537e50);if(!_0x32f073)continue;const _0x57cb97=_0x32f073['getSheetBySheetId'](_0x36bdf9);if(!_0x57cb97)continue;const _0x2f6394=_0x57cb97[_0x4d0137(0x2de)]();for(let _0x430249=_0x435626[_0x4d0137(0x18b)];_0x430249<=_0x435626['endRow'];_0x430249++)for(let _0x18499a=_0x435626[_0x4d0137(0xbe)];_0x18499a<=_0x435626[_0x4d0137(0x2ba)];_0x18499a++){const _0x511ddd=_0x2f6394['getValue'](_0x430249,_0x18499a);if(_0x511ddd&&(_0x1c6988(_0x511ddd['f'])||_0x392987(_0x511ddd['si'])))return!0x0;}}return!0x1;}};fe=pn([w(0x0,_0x1ada69(_0x41069b)),w(0x1,_0x5df3ab),w(0x2,_0x20c298),w(0x3,_0x1ada69(_0x1def6f)),w(0x4,_0xbcb279),w(0x5,_0x3d4f4a),w(0x6,_0x1ada69(_0x57786a))],fe);var Rn=Object[_0x350772(0x2c2)],Dn=(_0x57d97c,_0x4e822c,_0x431f11,_0x61d486)=>{const _0x1afa99=_0x350772;for(var _0x4ed2a2=_0x61d486>0x1?void 0x0:_0x61d486?Rn(_0x4e822c,_0x431f11):_0x4e822c,_0x502abb=_0x57d97c[_0x1afa99(0x2e6)]-0x1,_0x593618;_0x502abb>=0x0;_0x502abb--)(_0x593618=_0x57d97c[_0x502abb])&&(_0x4ed2a2=_0x593618(_0x4ed2a2)||_0x4ed2a2);return _0x4ed2a2;},be=(_0x579a40,_0x4a0ec0)=>(_0x14879b,_0x6b36e)=>_0x4a0ec0(_0x14879b,_0x6b36e,_0x579a40);let Be=class extends _0x2d8b34{constructor(_0x271924,_0x1342f0,_0x901ab1){const _0x3e47f2=_0x350772;super(),_(this,_0x3e47f2(0x2dc),new Map()),_(this,_0x3e47f2(0x10a),new Map()),_(this,'_disabled',!0x1),(this[_0x3e47f2(0x295)]=_0x271924,this[_0x3e47f2(0x221)]=_0x1342f0,this[_0x3e47f2(0xc7)]=_0x901ab1);}['disableLocalCache'](){const _0x3c99c4=_0x350772;this[_0x3c99c4(0xce)]=!0x0;}[_0x350772(0x175)](){const _0xd615c2=_0x350772;this[_0xd615c2(0xce)]=!0x1;}get[_0x350772(0x197)](){return this['_saveTaskMap'];}[_0x350772(0x1e0)](){const _0x1eb14d=_0x350772;this[_0x1eb14d(0x243)]()[_0x1eb14d(0x1e9)](()=>super[_0x1eb14d(0x1e0)]());}async['loadOfflineData'](_0x1d7d4a){const _0x5d3a55=_0x350772;return this[_0x5d3a55(0xce)]?null:this[_0x5d3a55(0x221)][_0x5d3a55(0x16b)](_0x40a77a(_0x1d7d4a));}async['saveOfflineData'](_0xac3589,_0x132a45){const _0xb18ab2=_0x350772;return!!this[_0xb18ab2(0x221)]['setItem'](_0xac3589,_0x132a45);}[_0x350772(0x174)](_0x22dc86,_0x6b9fc6,_0x3ce378,_0x563427){const _0x1259eb=_0x350772,_0x21fe34=this[_0x1259eb(0xc7)][_0x1259eb(0x2e5)](_0x22dc86);this[_0x1259eb(0x2dc)][_0x1259eb(0x279)](_0x22dc86,{'unitID':_0x22dc86,'type':_0x6b9fc6,'awaitingChangeset':_0x3ce378,'mutations':_0x563427,'rev':_0x21fe34}),this[_0x1259eb(0x10a)]['has'](_0x22dc86)||this['_scheduleSaving'](_0x22dc86);}[_0x350772(0x145)](_0x1ac191){const _0x4c955c=_0x350772,_0x295b93=this[_0x4c955c(0x293)]();_0x295b93===0x0?this[_0x4c955c(0x1eb)](_0x1ac191):this[_0x4c955c(0x10a)][_0x4c955c(0x279)](_0x1ac191,setTimeout(()=>this[_0x4c955c(0x1eb)](_0x1ac191),_0x295b93));}[_0x350772(0x293)](){const _0x364f2f=_0x350772;var _0x2d7e6a;return(_0x2d7e6a=this[_0x364f2f(0x295)][_0x364f2f(0x181)](_0x251a18))!=null?_0x2d7e6a:_0x1de824;}['_saveCache'](_0x26a02b){const _0xf09020=_0x350772,_0x39f022=this[_0xf09020(0x10a)][_0xf09020(0xc6)](_0x26a02b);return _0x39f022!==void 0x0&&window['clearTimeout'](_0x39f022),this['_localStorageService'][_0xf09020(0x272)](_0x40a77a(_0x26a02b),this[_0xf09020(0x2dc)][_0xf09020(0xc6)](_0x26a02b))[_0xf09020(0x1e9)](()=>this[_0xf09020(0x10a)][_0xf09020(0x218)](_0x26a02b));}async[_0x350772(0x243)](){const _0x345858=_0x350772,_0x133607=[];this[_0x345858(0x10a)][_0x345858(0x237)]((_0x1c9061,_0xe51f53)=>{const _0xc7ded0=_0x345858;window[_0xc7ded0(0x253)](_0x1c9061),_0x133607[_0xc7ded0(0x25d)](this[_0xc7ded0(0x1eb)](_0xe51f53)[_0xc7ded0(0x1e9)](()=>{const _0x1e1523=_0xc7ded0;this['_saveTaskMap'][_0x1e1523(0x218)](_0xe51f53);}));}),await Promise[_0x345858(0x297)](_0x133607);}};Be=Dn([be(0x0,_0x20c298),be(0x1,_0x48d2fd),be(0x2,_0x1ada69(_0x18b0c3))],Be);class bn extends _0x3e95b8{constructor(){const _0x47a822=_0x350772;super(),_(this,_0x47a822(0x26e)),this['urlChange$']=_0x46d8b5(window,_0x47a822(0x2bd))[_0x47a822(0xcb)](_0x561bd3(this[_0x47a822(0xa8)]),_0x341114(0x1),_0x477239(void 0x0));}[_0x350772(0x117)](_0x1f2b96,_0x787749,_0x4acc56=!0x1){const _0x4e36b4=_0x350772,_0x318e2a=new URL(window[_0x4e36b4(0x239)][_0x4e36b4(0x15b)]);_0x318e2a[_0x4e36b4(0x1e6)][_0x4e36b4(0x279)](_0x1f2b96,_0x787749),_0x4acc56?window['history'][_0x4e36b4(0xb7)]('','',_0x318e2a[_0x4e36b4(0x207)]()):window[_0x4e36b4(0x2d0)]['pushState']('','',_0x318e2a[_0x4e36b4(0x207)]());}[_0x350772(0x134)](_0x1ccd0a,_0x53ebff=!0x1){const _0x5904de=_0x350772,_0x49c7a6=new URL(window[_0x5904de(0x239)]['href']);_0x49c7a6[_0x5904de(0x1e6)][_0x5904de(0x218)](_0x1ccd0a),_0x53ebff?window[_0x5904de(0x2d0)][_0x5904de(0xb7)]('','',_0x49c7a6[_0x5904de(0x207)]()):window['history']['pushState']('','',_0x49c7a6[_0x5904de(0x207)]());}[_0x350772(0x1d7)](_0x882bef){const _0x448033=_0x350772;var _0x2250cb;return(_0x2250cb=new URL(window[_0x448033(0x239)]['href'])['searchParams']['get'](_0x882bef))!=null?_0x2250cb:void 0x0;}}var Nn=Object[_0x350772(0x14f)],Un=Object[_0x350772(0x2c2)],Ln=(_0x3871c4,_0x542d8b,_0x3a5f86)=>_0x542d8b in _0x3871c4?Nn(_0x3871c4,_0x542d8b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a5f86}):_0x3871c4[_0x542d8b]=_0x3a5f86,Mn=(_0x26aaf9,_0x495e4c,_0x51f001,_0x244dd1)=>{const _0x183879=_0x350772;for(var _0x6e9223=_0x244dd1>0x1?void 0x0:_0x244dd1?Un(_0x495e4c,_0x51f001):_0x495e4c,_0x225b2f=_0x26aaf9[_0x183879(0x2e6)]-0x1,_0x444491;_0x225b2f>=0x0;_0x225b2f--)(_0x444491=_0x26aaf9[_0x225b2f])&&(_0x6e9223=_0x444491(_0x6e9223)||_0x6e9223);return _0x6e9223;},Ne=(_0x1e2aa3,_0x33c8e5)=>(_0x2a56c2,_0x226e80)=>_0x33c8e5(_0x2a56c2,_0x226e80,_0x1e2aa3),An=(_0x23c978,_0x446f7f,_0x1a984b)=>Ln(_0x23c978,_0x446f7f+'',_0x1a984b);const Pn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Fe=class extends _0x47149e{constructor(_0x2bb7b9=at,_0x296926,_0x53504d,_0x4cf8af){const _0x256008=_0x350772;super(),this[_0x256008(0x2aa)]=_0x2bb7b9,this[_0x256008(0x225)]=_0x296926,this[_0x256008(0x12a)]=_0x53504d,this[_0x256008(0x295)]=_0x4cf8af;const {..._0x5bd733}=_0x1e3d46({},at,this[_0x256008(0x2aa)]);this[_0x256008(0x295)][_0x256008(0x121)](ln,_0x5bd733);}[_0x350772(0xf8)](){const _0x5cd576=_0x350772;this[_0x5cd576(0x26b)](),this[_0x5cd576(0x104)]();}[_0x350772(0x133)](){this['_registerRenderDependencies']();}[_0x350772(0x26b)](){const _0x320d2f=_0x350772;var _0x53c479;const _0x3c0f00=[[Ge],[fe],[ue],[_e],[he],[Ke],[Pt,{'useClass':bn}],[_0x51a87f,{'useClass':_0x5c837c}],[_0x5c5358,{'useClass':Be}],[ae],[de],[le],[Y],[Pe],[ce]];_0x535a10(this[_0x320d2f(0x12a)],_0x8250d8(_0x3c0f00,(_0x53c479=this[_0x320d2f(0x2aa)])==null?void 0x0:_0x53c479['override']));}[_0x350772(0x256)](){const _0x4b575e=_0x350772;this[_0x4b575e(0x222)](this[_0x4b575e(0x225)][_0x4b575e(0x240)](_0x2ebb81[_0x4b575e(0x1ed)],[$e])),this['disposeWithMe'](this[_0x4b575e(0x225)]['registerRenderModule'](_0x2ebb81[_0x4b575e(0xb6)],[xe]));}['_initDependencies'](){const _0x5b2c89=_0x350772;_0x8549f3(this[_0x5b2c89(0x12a)],[[Y],[ae],[de],[le],[ce],[fe]]);}};An(Fe,'pluginName',Pn),Fe=Mn([_0x418b27(_0x39440b),Ne(0x1,_0xef866a),Ne(0x2,_0x1ada69(_0x37163f)),Ne(0x3,_0x20c298)],Fe);var wn=Object['getOwnPropertyDescriptor'],yn=(_0x216aa8,_0x4ae7c6,_0x3d2d41,_0x3da8d5)=>{const _0x345e5a=_0x350772;for(var _0xdd45a0=_0x3da8d5>0x1?void 0x0:_0x3da8d5?wn(_0x4ae7c6,_0x3d2d41):_0x4ae7c6,_0x67900b=_0x216aa8[_0x345e5a(0x2e6)]-0x1,_0x1e91d4;_0x67900b>=0x0;_0x67900b--)(_0x1e91d4=_0x216aa8[_0x67900b])&&(_0xdd45a0=_0x1e91d4(_0xdd45a0)||_0xdd45a0);return _0xdd45a0;},Z=(_0x10b8a7,_0x3625ed)=>(_0x3c0f81,_0x2f2153)=>_0x3625ed(_0x3c0f81,_0x2f2153,_0x10b8a7);let _t=class extends _0x569b8c{constructor(_0x30aa31,_0x3e7a6e,_0x5d67a3,_0x20163a,_0x279767){super(_0x30aa31,_0x3e7a6e,_0x5d67a3,_0x20163a,_0x279767);}async[_0x350772(0x150)](_0x219d70){const _0x432486=_0x350772,_0xf24dea=await this[_0x432486(0x179)](),_0x5d2f65=this[_0x432486(0xc4)](_0x219d70,_0xf24dea);return this[_0x432486(0x2e2)](_0x5d2f65);}[_0x350772(0xc4)](_0x47cf2d,_0x42ccef){const _0x484103=_0x350772,_0x4ff463=typeof window>'u'?new URL(_0x47cf2d):new URL(_0x47cf2d,window[_0x484103(0x239)][_0x484103(0x1c8)]);_0x4ff463['searchParams']['set'](_0x484103(0x278),_0x42ccef);const _0x4922f0=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x484103(0x239)][_0x484103(0xda)]);return _0x4922f0['get'](_0x484103(0x24b))&&_0x4ff463['searchParams'][_0x484103(0x279)]('runId',_0x4922f0[_0x484103(0xc6)](_0x484103(0x24b))),_0x4ff463[_0x484103(0x207)]();}async[_0x350772(0x179)](){const _0x4c78a3=_0x350772;var _0x3e3177,_0x2a8cb9,_0x56cec9;const _0x5a5806=this[_0x4c78a3(0x295)][_0x4c78a3(0x181)](_0x3fa50f),_0x35d295=(_0x3e3177=_0x5a5806==null?void 0x0:_0x5a5806[_0x4c78a3(0x10d)])!=null?_0x3e3177:_0x4e1a77;return(_0x56cec9=(_0x2a8cb9=(await this[_0x4c78a3(0x22c)][_0x4c78a3(0xc6)](_0x35d295,{'headers':{'Content-Type':_0x4c78a3(0x19b)}}))['body'])==null?void 0x0:_0x2a8cb9[_0x4c78a3(0x238)])!=null?_0x56cec9:'';}};_t=yn([Z(0x0,_0x1ada69(_0x37163f)),Z(0x1,_0x1ada69(_0x1def6f)),Z(0x2,_0x20c298),Z(0x3,_0x3d4f4a),Z(0x4,_0x5de3db)],_t);var $n=Object[_0x350772(0x2c2)],xn=(_0x2caae6,_0x1ef9d3,_0x29e0a1,_0x3fdc39)=>{const _0x5bbee1=_0x350772;for(var _0x190536=_0x3fdc39>0x1?void 0x0:_0x3fdc39?$n(_0x1ef9d3,_0x29e0a1):_0x1ef9d3,_0x4a9f97=_0x2caae6[_0x5bbee1(0x2e6)]-0x1,_0x5a6de9;_0x4a9f97>=0x0;_0x4a9f97--)(_0x5a6de9=_0x2caae6[_0x4a9f97])&&(_0x190536=_0x5a6de9(_0x190536)||_0x190536);return _0x190536;},Ue=(_0x25c03b,_0x162155)=>(_0xfc5bb9,_0x5cf354)=>_0x162155(_0xfc5bb9,_0x5cf354,_0x25c03b);let ht=class extends _0x2d8b34{constructor(_0x96337,_0xa750de,_0x12ec7e){const _0x483a7b=_0x350772;super(),this[_0x483a7b(0x26c)]=_0x96337,this[_0x483a7b(0x22c)]=_0xa750de,this['_configService']=_0x12ec7e;}async[_0x350772(0x1bf)](_0x3ee9e5,_0x239b51,_0x8aabb1,..._0xa44d64){const _0x35ad1e=_0x350772;var _0x4e34e5,_0xb74e41,_0x441d3b,_0x3f2c5a;const _0x2919c9=this[_0x35ad1e(0x26c)][_0x35ad1e(0x15f)]();if(!_0x2919c9)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x5350ad=((_0x4e34e5=this[_0x35ad1e(0x295)]['getConfig'](_0x5e58e4))!=null?_0x4e34e5:_0xd8680f)+'/'+_0x3ee9e5+'/run/'+_0x239b51,_0x4ec7a5=new URL(window[_0x35ad1e(0x239)][_0x35ad1e(0x15b)]),_0x59a71f={'scriptId':_0x3ee9e5,'runId':(_0xb74e41=_0x4ec7a5[_0x35ad1e(0x1e6)][_0x35ad1e(0xc6)](_0x35ad1e(0x24b)))!=null?_0xb74e41:'','function':_0x239b51,'unitId':_0x2919c9[_0x35ad1e(0x25a)](),'argsOfFunction':JSON['stringify'](_0xa44d64),'invokeId':(_0x441d3b=_0x8aabb1[_0x35ad1e(0x210)])!=null?_0x441d3b:'','executionId':(_0x3f2c5a=_0x8aabb1[_0x35ad1e(0x161)])!=null?_0x3f2c5a:''};try{const _0x32749c=await this['_httpService'][_0x35ad1e(0x2b7)](_0x5350ad,{'body':_0x59a71f});return _0x32749c['body'][_0x35ad1e(0x246)]&&_0x32749c[_0x35ad1e(0xd3)][_0x35ad1e(0x246)]['code']!==Q['OK']?'Failed':_0x32749c[_0x35ad1e(0xd3)]['result'];}catch{return _0x35ad1e(0x1e4);}}};ht=xn([Ue(0x0,_0xbcb279),Ue(0x1,_0x1ada69(_0x1def6f)),Ue(0x2,_0x20c298)],ht);const ut=0x7530,dt='ACTIVE_UNIT_EVENT_CHANNEL';class ir extends _0x2d8b34{constructor(){const _0x246539=_0x350772;super(),_(this,_0x246539(0x172),_0x43b449()),_(this,'_selfUnitIDs',new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x246539(0x262),null),_(this,_0x246539(0xd2),new Map()),_(this,'_unitStatus',new Map()),this[_0x246539(0x2e4)]();}[_0x350772(0x1e0)](){const _0x1575a1=_0x350772;super[_0x1575a1(0x1e0)](),this[_0x1575a1(0xd2)][_0x1575a1(0x237)]((_0x28cdb3,_0x2fa201)=>this[_0x1575a1(0x183)](_0x2fa201)),this[_0x1575a1(0x262)]&&window[_0x1575a1(0x18a)](this[_0x1575a1(0x262)]);}[_0x350772(0x19f)](_0x93c6a3){const _0x3d38e9=_0x350772;return this[_0x3d38e9(0x2b8)](_0x93c6a3)[_0x3d38e9(0xcb)](_0x9b68fc());}[_0x350772(0x13a)](_0x2469d6){const _0x19ab92=_0x350772;this[_0x19ab92(0x275)][_0x19ab92(0x2ce)]===0x0&&this[_0x19ab92(0x244)](),this[_0x19ab92(0x275)][_0x19ab92(0x10c)](_0x2469d6),this[_0x19ab92(0x2c8)]({'type':0x0,'memberID':this[_0x19ab92(0x172)],'unitIDs':[_0x2469d6],'isForwarded':!0x1});}[_0x350772(0x209)](_0x36ef47){const _0x28651a=_0x350772;this[_0x28651a(0x275)][_0x28651a(0x218)](_0x36ef47),this['_selfUnitIDs'][_0x28651a(0x2ce)]===0x0&&this['_heartbeatTimer']&&window[_0x28651a(0x18a)](this[_0x28651a(0x262)]);}[_0x350772(0x2e4)](){const _0x5aa119=_0x350772;this[_0x5aa119(0x222)](_0x296cd2(_0x46d8b5(window,'storage')['subscribe'](_0x12f07c=>{const _0x4bacf6=_0x5aa119;if(_0x12f07c[_0x4bacf6(0x241)]!==dt||!_0x12f07c[_0x4bacf6(0xc5)])return;const _0x6dd894=JSON[_0x4bacf6(0xfb)](_0x12f07c[_0x4bacf6(0xc5)]);this[_0x4bacf6(0x299)](_0x6dd894);}))),window[_0x5aa119(0x20b)](_0x5aa119(0x193),()=>this[_0x5aa119(0x2c8)]({'type':0x1,'memberID':this[_0x5aa119(0x172)],'unitIDs':Array[_0x5aa119(0x22d)](this['_selfUnitIDs'])}));}[_0x350772(0x299)](_0x4d161b){const _0x59f9ac=_0x350772;switch(_0x4d161b[_0x59f9ac(0xbd)]){case 0x0:this[_0x59f9ac(0x1d3)](_0x4d161b);break;case 0x1:this['_handleLeaveEvent'](_0x4d161b);break;case 0x2:this[_0x59f9ac(0x2be)](_0x4d161b);break;}}[_0x350772(0x1d3)](_0x17233d){const _0x29b1d8=_0x350772,{unitIDs:_0x45b63c,memberID:_0x37e38b,isForwarded:_0x191d4f}=_0x17233d;_0x45b63c[_0x29b1d8(0x237)](_0x3533c5=>{const _0x36d2f4=_0x29b1d8;if(!_0x191d4f&&this[_0x36d2f4(0x266)][_0x36d2f4(0x105)](_0x3533c5)&&this['_ensureSubject'](_0x3533c5)[_0x36d2f4(0x1c2)](_0x32ac9a['OTHER_CLIENTS_EDITING']),!this[_0x36d2f4(0x266)][_0x36d2f4(0x105)](_0x3533c5)||!this['_unitOnClients']['get'](_0x3533c5)[_0x36d2f4(0x105)](_0x37e38b)){const _0x22eb39=this[_0x36d2f4(0x266)]['get'](_0x3533c5)||new Set();_0x22eb39[_0x36d2f4(0x10c)](_0x37e38b),this['_unitOnClients'][_0x36d2f4(0x279)](_0x3533c5,_0x22eb39),this['_scheduleClearOtherTimer'](_0x37e38b);}}),_0x191d4f||this[_0x29b1d8(0x2c8)]({'type':0x0,'memberID':this[_0x29b1d8(0x172)],'unitIDs':[...this[_0x29b1d8(0x275)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x30aec6){const _0x15cb77=_0x350772;this[_0x15cb77(0x183)](_0x30aec6);const _0xb9d54f=window[_0x15cb77(0x1a1)](()=>{const _0x7cb53e=_0x15cb77;this[_0x7cb53e(0x266)][_0x7cb53e(0x237)](_0x5d8fcc=>{const _0x314923=_0x7cb53e;_0x5d8fcc[_0x314923(0x218)](_0x30aec6);});},ut*0x2);this[_0x15cb77(0xd2)][_0x15cb77(0x279)](_0x30aec6,_0xb9d54f);}[_0x350772(0x183)](_0x53a716){const _0x2d162d=_0x350772;if(this[_0x2d162d(0xd2)][_0x2d162d(0x105)](_0x53a716)){const _0x3b61e9=this[_0x2d162d(0xd2)][_0x2d162d(0xc6)](_0x53a716);_0x3b61e9&&window['clearTimeout'](_0x3b61e9),this[_0x2d162d(0xd2)][_0x2d162d(0x279)](_0x53a716,null);}}['_handleLeaveEvent'](_0x3983a6){const _0x3d9359=_0x350772,{memberID:_0x5bd389,unitIDs:_0x57dd9a}=_0x3983a6;_0x57dd9a['forEach'](_0x1ef65d=>{const _0x877c43=_0x2f90;var _0x4695e2;const _0x25db66=this['_unitOnClients']['get'](_0x1ef65d);_0x25db66&&(_0x25db66[_0x877c43(0x218)](_0x5bd389),(_0x4695e2=this[_0x877c43(0x2b8)](_0x1ef65d))==null||_0x4695e2[_0x877c43(0x1c2)](_0x25db66[_0x877c43(0x2ce)]===0x0?_0x32ac9a[_0x877c43(0x2e3)]:_0x32ac9a[_0x877c43(0x283)]));}),this[_0x3d9359(0x183)](_0x5bd389);}[_0x350772(0x2be)](_0x4758d3){const _0x1f4075=_0x350772;this[_0x1f4075(0x155)](_0x4758d3[_0x1f4075(0x23c)]);}[_0x350772(0x2c8)](_0x2ea3c6){const _0x21985f=_0x350772;localStorage[_0x21985f(0x272)](dt,JSON[_0x21985f(0x1c3)](_0x2ea3c6));}['_scheduleHeartbeat'](){const _0x189db0=_0x350772;this[_0x189db0(0x262)]=window['setInterval'](()=>{const _0x1c47ae=_0x189db0;this[_0x1c47ae(0x2c8)]({'type':0x2,'memberID':this[_0x1c47ae(0x172)]});},ut);}['_ensureSubject'](_0x3cf479){const _0x58a46a=_0x350772;return this['_unitStatus'][_0x58a46a(0x105)](_0x3cf479)||this[_0x58a46a(0x19e)][_0x58a46a(0x279)](_0x3cf479,new _0x1cc040(_0x32ac9a['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x58a46a(0xc6)](_0x3cf479);}}export{_t as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,Pt as IURLService,ht as RemoteUniscriptService,tn as SheetCollabCursorShape,Fe as UniverCollaborationClientUIPlugin,ir as WebBrowserSingleActiveUnitService,bn as WebURLService};