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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/umd/facade.js +1 -1
  38. package/lib/umd/index.js +1 -1
  39. package/lib/umd/locale/ca-ES.js +1 -1
  40. package/lib/umd/locale/en-US.js +1 -1
  41. package/lib/umd/locale/es-ES.js +1 -1
  42. package/lib/umd/locale/fa-IR.js +1 -1
  43. package/lib/umd/locale/fr-FR.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +15 -15
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _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};
1
+ const _0x279361=_0x168c;(function(_0x145b65,_0x1d1c8e){const _0x5cc53e=_0x168c,_0xcd1603=_0x145b65();while(!![]){try{const _0x3293f2=parseInt(_0x5cc53e(0x236))/0x1*(-parseInt(_0x5cc53e(0x2dd))/0x2)+-parseInt(_0x5cc53e(0x15c))/0x3*(parseInt(_0x5cc53e(0x31d))/0x4)+-parseInt(_0x5cc53e(0x1ef))/0x5+parseInt(_0x5cc53e(0x1d5))/0x6+parseInt(_0x5cc53e(0x24a))/0x7*(parseInt(_0x5cc53e(0x352))/0x8)+parseInt(_0x5cc53e(0x13d))/0x9+parseInt(_0x5cc53e(0x32b))/0xa*(parseInt(_0x5cc53e(0x26a))/0xb);if(_0x3293f2===_0x1d1c8e)break;else _0xcd1603['push'](_0xcd1603['shift']());}catch(_0x926d77){_0xcd1603['push'](_0xcd1603['shift']());}}}(_0x46ed,0xc90c7));var kt=Object[_0x279361(0x1b5)],Ht=(_0xb573b6,_0x4a31c4,_0x5b2f72)=>_0x4a31c4 in _0xb573b6?kt(_0xb573b6,_0x4a31c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b2f72}):_0xb573b6[_0x4a31c4]=_0x5b2f72,_=(_0x10a8bb,_0xe154d3,_0x55898b)=>Ht(_0x10a8bb,typeof _0xe154d3!=_0x279361(0x20d)?_0xe154d3+'':_0xe154d3,_0x55898b);import{jsx as _0x417d02,jsxs as _0x12ae45}from'react/jsx-runtime';import{CollaborationStatus as _0x20f601,CollaborationSessionService as _0xe3b745,CollaborationController as _0x1c1280,DataLoaderService as _0x13e42a,MemberService as _0x4ac7a2,SessionStatus as _0x4ef11f,ILocalCacheService as _0x3b29b1,CollaborationUIEventService as _0x5307c3,CollaborationUIEventId as _0x48a9b0,DocCollaborationEntity as _0x237a0f,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x15a639,getLocalCacheKey as _0x5e73e3,LOCAL_CACHE_INTERVAL as _0x4b0503,LOCAL_CACHE_INTERVAL_KEY as _0x451d1f,UniverCollaborationClientPlugin as _0x3a6051,CollaborationSocketService as _0x26a376,DEFAULT_WS_SESSION_TICKET_URL as _0x5705fa,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x1f2e5e,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x43c7d3,UnitStatus as _0x4fc1d9}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x5852b4,IUniverInstanceService as _0x56b693,Inject as _0x349554,Injector as _0x543124,Disposable as _0x2972bb,createIdentifier as _0xf30ca8,ILogService as _0x525e85,ICommandService as _0x28d9e9,Optional as _0x3ff1c0,RxDisposable as _0x46d041,Workbook as _0x549dc5,DOC_RANGE_TYPE as _0x57a80d,debounce as _0x22d40a,Rectangle as _0x5c6826,DisposableCollection as _0x3616d9,toDisposable as _0x9a67c7,UniverInstanceType as _0x3d4c4a,generateRandomId as _0x1667d1,COLORS as _0x42b207,ColorKit as _0x17b25c,ThemeService as _0x5bf8fa,fromEventSubject as _0x470ace,Tools as _0x55b651,CommandType as _0x2d51ab,IConfigService as _0x3b186e,CanceledError as _0x4ccc82,isFormulaString as _0x54db1c,isFormulaId as _0x320189,ILocalStorageService as _0x47a719,DependentOn as _0x23c35b,Plugin as _0x565e94,merge as _0x206c2b,registerDependencies as _0x1c6e38,mergeOverrideWithDependencies as _0x274243,touchDependencies as _0x5a0569}from'@univerjs/core';import{useObservable as _0x23d515,useDependency as _0x23cdda,IUIPartsService as _0x213a5b,BuiltInUIPart as _0xcddbf3,connectInjector as _0xf3565a,IBeforeCloseService as _0x310aab,IMessageService as _0x382ae3,INotificationService as _0x3a220c}from'@univerjs/ui';import{BehaviorSubject as _0x5ccbb2,switchMap as _0x336798,of as _0x472e19,takeUntil as _0x1f12e2,debounceTime as _0x4cb684,Subject as _0x57abac,filter as _0x5eca73,merge as _0x27a14c,combineLatest as _0x4310f5,fromEvent as _0x175217,shareReplay as _0x2aeefc,mapTo as _0x2fd631,distinctUntilChanged as _0x1fa727}from'rxjs';import{Tooltip as _0x5c1611,clsx as _0x4889cb,MessageType as _0x41554e}from'@univerjs/design';import{forwardRef as _0x1bf544,useRef as _0x46ac09,createElement as _0x4fd7b0,useCallback as _0x1ee64f}from'react';import{IRemoteInstanceService as _0x15d297}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x306b9d,RefRangeService as _0x4336d8,SetSelectionsOperation as _0x2b686f,SheetsSelectionsService as _0x3c434f,EffectRefRangId as _0x5ba2a6,handleIRemoveRow as _0x471a44,handleIRemoveCol as _0x1e5959,handleMoveRange as _0x1450ab,handleInsertRow as _0x17b391,handleInsertRangeMoveRight as _0x1413a9,handleInsertRangeMoveDown as _0x1ac42c,handleInsertCol as _0x16ea5d,handleDeleteRangeMoveUp as _0x563e59,handleDeleteRangeMoveLeft as _0x23cee5,runRefRangeMutations as _0x4a4ccd}from'@univerjs/sheets';import{Shape as _0x8d0ab,Rect as _0x5beebc,getColor as _0x3775c8,RegularPolygon as _0x1ec3a4,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x167676,Vector2 as _0x5abf10,SHEET_VIEWPORT_KEY as _0x42cb58,IRenderManagerService as _0x3bda3f}from'@univerjs/engine-render';import{HTTPService as _0x4be316,ISocketService as _0x4665df,WebSocketService as _0x113f5a}from'@univerjs/network';import{IDocClipboardService as _0x145d98,NodePositionConvertToCursor as _0x11eb33,NodePositionConvertToRectRange as _0x1d33b0,TEXT_RANGE_LAYER_INDEX as _0x260d0d,SetDocZoomRatioOperation as _0x1d8eb6,DocIMEInputManagerService as _0x4f8931,DocStateChangeManagerService as _0xedf1f6}from'@univerjs/docs-ui';import{IImageIoService as _0x371d41}from'@univerjs/drawing';function _0x168c(_0x2feb4b,_0x137f3b){const _0x46ede2=_0x46ed();return _0x168c=function(_0x168c6e,_0x477b48){_0x168c6e=_0x168c6e-0x139;let _0xedfd64=_0x46ede2[_0x168c6e];return _0xedfd64;},_0x168c(_0x2feb4b,_0x137f3b);}import{ITransformService as _0x5aa3d9,CollaborationEvent as _0x52ad46,isTransformMutationFailure as _0x325207,isTransformMutationsWithChangesetSuccess as _0x1bca00,RevisionService as _0x2816b1,ISnapshotServerService as _0x3c8a43}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x3e4467,RichTextEditingMutation as _0xa51f36,DocSelectionManagerService as _0x304158,DocSkeletonManagerService as _0x40e4ab}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x1ea442,serializeRangeWithSheet as _0x5ddf78,FormulaExecuteStageType as _0x16e445,FormulaExecutedStateType as _0x24f9e0,SetFormulaCalculationStartMutation as _0x45c15a,SetFormulaCalculationNotificationMutation as _0x49e7c7}from'@univerjs/engine-formula';import{map as _0x457ae1,filter as _0x142e74,throttleTime as _0x449b52,takeUntil as _0xc3d5cb,switchMap as _0x1e056c}from'rxjs/operators';import{SheetSkeletonManagerService as _0x17a6cb,getCoordByCell as _0xdccc3d,getSheetObject as _0x18a982}from'@univerjs/sheets-ui';var g=function(){const _0x2e25e9=_0x279361;return g=Object['assign']||function(_0x480600){const _0x3f6ecb=_0x168c;for(var _0xed0fce,_0x2bc88a=0x1,_0x4a15a4=arguments[_0x3f6ecb(0x35e)];_0x2bc88a<_0x4a15a4;_0x2bc88a++){_0xed0fce=arguments[_0x2bc88a];for(var _0x26b635 in _0xed0fce)Object['prototype'][_0x3f6ecb(0x1d0)][_0x3f6ecb(0x1dc)](_0xed0fce,_0x26b635)&&(_0x480600[_0x26b635]=_0xed0fce[_0x26b635]);}return _0x480600;},g[_0x2e25e9(0x1b7)](this,arguments);},Ii=function(_0x369fac,_0x478c06){const _0x5e203b=_0x279361;var _0x2b2f94={};for(var _0x4bf863 in _0x369fac)Object['prototype'][_0x5e203b(0x1d0)][_0x5e203b(0x1dc)](_0x369fac,_0x4bf863)&&_0x478c06[_0x5e203b(0x298)](_0x4bf863)<0x0&&(_0x2b2f94[_0x4bf863]=_0x369fac[_0x4bf863]);if(_0x369fac!=null&&typeof Object[_0x5e203b(0x211)]==_0x5e203b(0x15f)){for(var _0x3f6c96=0x0,_0x4bf863=Object['getOwnPropertySymbols'](_0x369fac);_0x3f6c96<_0x4bf863[_0x5e203b(0x35e)];_0x3f6c96++)_0x478c06[_0x5e203b(0x298)](_0x4bf863[_0x3f6c96])<0x0&&Object['prototype'][_0x5e203b(0x1a0)][_0x5e203b(0x1dc)](_0x369fac,_0x4bf863[_0x3f6c96])&&(_0x2b2f94[_0x4bf863[_0x3f6c96]]=_0x369fac[_0x4bf863[_0x3f6c96]]);}return _0x2b2f94;},Xe=_0x1bf544(function(_0x66dd2c,_0x1dbc56){const _0x101922=_0x279361;var _0xd6f87b=_0x66dd2c[_0x101922(0x142)],_0xb94293=_0x66dd2c['id'],_0x325eb2=_0x66dd2c[_0x101922(0x26e)],_0x1019fe=_0x66dd2c[_0x101922(0x361)],_0x3405a5=Ii(_0x66dd2c,[_0x101922(0x142),'id',_0x101922(0x26e),'extend']),_0x572816=_0x101922(0x354)[_0x101922(0x25b)](_0xb94293,'\x20')[_0x101922(0x25b)](_0x325eb2||'')[_0x101922(0x2f1)](),_0x27027f=_0x46ac09('_'['concat'](Ei()));return Lt(_0xd6f87b,''['concat'](_0xb94293),{'defIds':_0xd6f87b[_0x101922(0x2c1)],'idSuffix':_0x27027f['current']},g({'ref':_0x1dbc56,'className':_0x572816},_0x3405a5),_0x1019fe);});function Lt(_0x20695d,_0x3a695c,_0x51e171,_0x23be71,_0x2ce83b){const _0x8c0924=_0x279361;return _0x4fd7b0(_0x20695d['tag'],g(g({'key':_0x3a695c},gi(_0x20695d,_0x51e171,_0x2ce83b)),_0x23be71),(vi(_0x20695d,_0x51e171)[_0x8c0924(0x216)]||[])['map'](function(_0x4ec9b9,_0x38f68e){const _0xe63473=_0x8c0924;return Lt(_0x4ec9b9,''['concat'](_0x3a695c,'-')['concat'](_0x20695d[_0xe63473(0x261)],'-')['concat'](_0x38f68e),_0x51e171,void 0x0,_0x2ce83b);}));}function gi(_0x31999a,_0x4004b6,_0x571c64){const _0x233b53=_0x279361;var _0x274493=g({},_0x31999a[_0x233b53(0x162)]);_0x571c64!=null&&_0x571c64['colorChannel1']&&_0x274493[_0x233b53(0x308)]==='colorChannel1'&&(_0x274493[_0x233b53(0x308)]=_0x571c64[_0x233b53(0x28f)]),_0x31999a['tag']==='mask'&&_0x274493['id']&&(_0x274493['id']=_0x274493['id']+_0x4004b6[_0x233b53(0x2c0)]),Object[_0x233b53(0x1ff)](_0x274493)['forEach'](function(_0x1d07e4){const _0x25ab7b=_0x233b53;var _0x4356be=_0x1d07e4[0x0],_0x582a23=_0x1d07e4[0x1];_0x4356be==='mask'&&typeof _0x582a23==_0x25ab7b(0x278)&&(_0x274493[_0x4356be]=_0x582a23[_0x25ab7b(0x324)](/url\(#(.*)\)/,'url(#$1'[_0x25ab7b(0x25b)](_0x4004b6[_0x25ab7b(0x2c0)],')')));});var _0x28d537=_0x4004b6[_0x233b53(0x2c1)];return!_0x28d537||_0x28d537[_0x233b53(0x35e)]===0x0||(_0x31999a['tag']==='use'&&_0x274493['xlink:href']&&(_0x274493[_0x233b53(0x2d4)]=_0x274493[_0x233b53(0x2d4)]+_0x4004b6[_0x233b53(0x2c0)]),Object[_0x233b53(0x1ff)](_0x274493)[_0x233b53(0x1a6)](function(_0x26ae33){const _0x14659c=_0x233b53;var _0x1a6b63=_0x26ae33[0x0],_0xc6dcc8=_0x26ae33[0x1];typeof _0xc6dcc8==_0x14659c(0x278)&&(_0x274493[_0x1a6b63]=_0xc6dcc8[_0x14659c(0x324)](/url\(#(.*)\)/,'url(#$1'[_0x14659c(0x25b)](_0x4004b6[_0x14659c(0x2c0)],')')));})),_0x274493;}function vi(_0x115615,_0x5f0b90){const _0x2565dd=_0x279361;var _0x38ea8a,_0x42936c=_0x5f0b90[_0x2565dd(0x2c1)];return!_0x42936c||_0x42936c[_0x2565dd(0x35e)]===0x0?_0x115615:_0x115615[_0x2565dd(0x261)]===_0x2565dd(0x23d)&&(!((_0x38ea8a=_0x115615[_0x2565dd(0x216)])===null||_0x38ea8a===void 0x0)&&_0x38ea8a[_0x2565dd(0x35e)])?g(g({},_0x115615),{'children':_0x115615[_0x2565dd(0x216)]['map'](function(_0x1ec695){const _0x1376ad=_0x2565dd;return typeof _0x1ec695[_0x1376ad(0x162)]['id']=='string'&&_0x42936c&&_0x42936c[_0x1376ad(0x281)](_0x1ec695['attrs']['id'])?g(g({},_0x1ec695),{'attrs':g(g({},_0x1ec695['attrs']),{'id':_0x1ec695['attrs']['id']+_0x5f0b90[_0x1376ad(0x2c0)]})}):_0x1ec695;})}):_0x115615;}function Ei(){const _0x51d9a6=_0x279361;return Math[_0x51d9a6(0x29d)]()[_0x51d9a6(0x259)](0x24)['substring'](0x2,0x8);}Xe['displayName']=_0x279361(0x205);var pi={'tag':'svg','attrs':{'xmlns':_0x279361(0x23b),'fill':'none','viewBox':_0x279361(0x2bb),'width':_0x279361(0x335),'height':_0x279361(0x335)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x279361(0x16f),'attrs':{'stroke':_0x279361(0x181),'d':_0x279361(0x2ee),'strokeLinecap':'round','strokeLinejoin':_0x279361(0x2b1),'strokeWidth':1.2}}]},{'tag':_0x279361(0x23d),'attrs':{},'children':[{'tag':_0x279361(0x1ba),'attrs':{'id':_0x279361(0x16c)},'children':[{'tag':_0x279361(0x16f),'attrs':{'fill':'white','d':_0x279361(0x271)}}]}]}],'defIds':[_0x279361(0x16c)]},Mt=_0x1bf544(function(_0x3169f8,_0x3955d5){const _0x3d1fd1=_0x279361;return _0x4fd7b0(Xe,Object[_0x3d1fd1(0x2c4)]({},_0x3169f8,{'id':'off-line-icon','ref':_0x3955d5,'icon':pi}));});Mt['displayName']='OffLineIcon';var Oi={'tag':_0x279361(0x1ea),'attrs':{'xmlns':_0x279361(0x23b),'fill':'none','viewBox':_0x279361(0x14c),'width':'1em','height':_0x279361(0x335)},'children':[{'tag':'g','attrs':{'clipPath':_0x279361(0x1c8)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x279361(0x2a3),'strokeLinecap':_0x279361(0x2b1),'strokeLinejoin':_0x279361(0x2b1),'strokeWidth':1.2}}]},{'tag':_0x279361(0x23d),'attrs':{},'children':[{'tag':_0x279361(0x1ba),'attrs':{'id':_0x279361(0x292)},'children':[{'tag':'path','attrs':{'fill':_0x279361(0x260),'d':_0x279361(0x271),'transform':'translate(.97)'}}]}]}],'defIds':[_0x279361(0x292)]},At=_0x1bf544(function(_0x52a5fc,_0x420489){const _0x5b75e6=_0x279361;return _0x4fd7b0(Xe,Object['assign']({},_0x52a5fc,{'id':_0x5b75e6(0x254),'ref':_0x420489,'icon':Oi}));});At[_0x279361(0x376)]=_0x279361(0x168);function Ti(_0x2ac268){const _0x474ac4=_0x279361;switch(_0x2ac268){case _0x20f601['OFFLINE']:return _0x474ac4(0x1fc);case _0x20f601['CONFLICT']:return _0x474ac4(0x2c2);case _0x20f601['FETCH_MISS']:return _0x474ac4(0x381);case _0x20f601[_0x474ac4(0x1de)]:return _0x474ac4(0x238);case _0x20f601[_0x474ac4(0x16d)]:case _0x20f601[_0x474ac4(0x2ef)]:return _0x474ac4(0x153);case _0x20f601['SYNCED']:case _0x20f601[_0x474ac4(0x1e0)]:return _0x474ac4(0x1d9);}}function Ci(_0x422252){const _0x55e215=_0x279361,{status$:_0x228746}=_0x422252,_0x4c7f2b=_0x23d515(_0x228746,_0x20f601[_0x55e215(0x1de)]),_0x4687bf=_0x23cdda(_0x5852b4),_0x290a0f=_0x23cdda(_0xe3b745),_0x4868ae=_0x4c7f2b!==_0x20f601['OFFLINE'],_0x240234=_0x4687bf['t'](Ti(_0x4c7f2b)),_0x455f93=_0x4868ae?_0x417d02(At,{}):_0x417d02(Mt,{}),_0x4f2247=_0x1ee64f(()=>{const _0x1ae6ee=_0x55e215;_0x4868ae||_0x290a0f[_0x1ae6ee(0x143)]();},[_0x4868ae,_0x290a0f]);function _0x3f69d0(){const _0x4c1a22=_0x55e215;return _0x12ae45(_0x4c1a22(0x22b),{'className':'univer-flex\x20univer-items-center','onClick':_0x4f2247,'children':[_0x417d02(_0x4c1a22(0x22b),{'className':_0x4889cb(_0x4c1a22(0x2d5),{'univer-text-green-500':_0x4868ae,'univer-text-red-500':!_0x4868ae}),'children':_0x455f93}),_0x417d02(_0x4c1a22(0x22b),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x240234})]});}return _0x4868ae?_0x3f69d0():_0x417d02(_0x5c1611,{'title':_0x4687bf['t'](_0x55e215(0x1e5)),'children':_0x3f69d0()});}var Ri=Object[_0x279361(0x1ec)],Di=(_0x4d1d78,_0x5c942a,_0x1df142,_0x402ee2)=>{const _0x4f1e72=_0x279361;for(var _0x40e0f5=_0x402ee2>0x1?void 0x0:_0x402ee2?Ri(_0x5c942a,_0x1df142):_0x5c942a,_0x712dbd=_0x4d1d78[_0x4f1e72(0x35e)]-0x1,_0x5d253e;_0x712dbd>=0x0;_0x712dbd--)(_0x5d253e=_0x4d1d78[_0x712dbd])&&(_0x40e0f5=_0x5d253e(_0x40e0f5)||_0x40e0f5);return _0x40e0f5;},ie=(_0x2510c1,_0x61712)=>(_0x24bae5,_0x4cf7dc)=>_0x61712(_0x24bae5,_0x4cf7dc,_0x2510c1);let ae=class extends _0x2972bb{constructor(_0x3b3501,_0x356f3e,_0x1e331c,_0x41b7f1){const _0xa568c5=_0x279361;super(),_(this,_0xa568c5(0x2ad),new _0x5ccbb2(_0x20f601['NOT_COLLAB'])),(this[_0xa568c5(0x276)]=_0x3b3501,this[_0xa568c5(0x31b)]=_0x356f3e,this[_0xa568c5(0x2ac)]=_0x1e331c,this[_0xa568c5(0x35b)]=_0x41b7f1,this[_0xa568c5(0x2e7)](),this[_0xa568c5(0x37a)]());}[_0x279361(0x37a)](){const _0x4888a1=_0x279361;this[_0x4888a1(0x285)](this[_0x4888a1(0x276)]['focused$'][_0x4888a1(0x34d)](_0x336798(()=>{const _0x5ad2a1=_0x4888a1,_0x39d007=this[_0x5ad2a1(0x276)]['getFocusedUnit']();return _0x39d007?this[_0x5ad2a1(0x2ac)][_0x5ad2a1(0x2e9)](_0x39d007['getUnitId']()):_0x472e19(null);}),_0x336798(_0x58046a=>_0x58046a?_0x58046a[_0x4888a1(0x184)]:_0x472e19(_0x20f601[_0x4888a1(0x1de)])))[_0x4888a1(0x1f6)](_0x101a89=>{const _0x14bcae=_0x4888a1;this[_0x14bcae(0x2ad)][_0x14bcae(0x1e4)](_0x101a89);}));}[_0x279361(0x2e7)](){const _0x27c57b=_0x279361;this['disposeWithMe'](this['_uiPartsService']['registerComponent'](_0xcddbf3[_0x27c57b(0x36e)],()=>_0xf3565a(bi({'status$':this['_status$']['asObservable']()}),this[_0x27c57b(0x31b)])));}};ae=Di([ie(0x0,_0x56b693),ie(0x1,_0x349554(_0x543124)),ie(0x2,_0x349554(_0x1c1280)),ie(0x3,_0x213a5b)],ae);function bi(_0x50ee51){const {status$:_0x536dcc}=_0x50ee51;return function(){return _0x417d02(Ci,{'status$':_0x536dcc});};}const Pt=_0xf30ca8(_0x279361(0x154));var Ni=Object[_0x279361(0x1ec)],Ui=(_0xf5cfd,_0x5c0852,_0x46b5f2,_0x55eeea)=>{const _0x2a1d18=_0x279361;for(var _0x3a41ce=_0x55eeea>0x1?void 0x0:_0x55eeea?Ni(_0x5c0852,_0x46b5f2):_0x5c0852,_0xeee6e5=_0xf5cfd[_0x2a1d18(0x35e)]-0x1,_0x4b2d5e;_0xeee6e5>=0x0;_0xeee6e5--)(_0x4b2d5e=_0xf5cfd[_0xeee6e5])&&(_0x3a41ce=_0x4b2d5e(_0x3a41ce)||_0x3a41ce);return _0x3a41ce;},z=(_0x3dcb3f,_0x2eadd2)=>(_0x31582a,_0x11409b)=>_0x2eadd2(_0x31582a,_0x11409b,_0x3dcb3f);let ce=class extends _0x46d041{constructor(_0x51dd45,_0x25524f,_0x3375df,_0x5ea8fc,_0xe9d601){const _0x44868f=_0x279361;super(),this[_0x44868f(0x287)]=_0x51dd45,this['_logService']=_0x25524f,this['_commandService']=_0x3375df,this[_0x44868f(0x347)]=_0x5ea8fc,_0xe9d601?_0xe9d601==null||_0xe9d601[_0x44868f(0x160)]()[_0x44868f(0x19e)](()=>this[_0x44868f(0x275)]()):(this['_logService'][_0x44868f(0x2f5)]('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x44868f(0x275)]());}async['_init'](){const _0x4ead38=_0x279361,_0x4e217f=this['_urlService']['getParam'](_0x4ead38(0x14d)),_0x3ddaaa=this[_0x4ead38(0x287)][_0x4ead38(0x242)](_0x4ead38(0x297)),_0x1760bb=this[_0x4ead38(0x287)][_0x4ead38(0x242)](_0x4ead38(0x37b));if(!_0x4e217f||!_0x3ddaaa){this[_0x4ead38(0x1da)][_0x4ead38(0x2f5)]('[CollaborationDataLoaderController]',_0x4ead38(0x33d));return;}const _0x2264a4=await this[_0x4ead38(0x347)][_0x4ead38(0x155)](_0x4e217f,Number(_0x3ddaaa),_0x1760bb);_0x2264a4&&_0x2264a4 instanceof _0x549dc5&&this['_setupSubUnitSync'](_0x2264a4);}async[_0x279361(0x333)](_0x3cecab){const _0x44192f=_0x279361;await this['_updateSubUnitFromURLParams'](_0x3cecab),_0x3cecab[_0x44192f(0x351)][_0x44192f(0x34d)](_0x1f12e2(this['dispose$']))[_0x44192f(0x1f6)](_0x4f4756=>{_0x4f4756&&this['_updateURLWithCurrentState'](_0x4f4756);}),this[_0x44192f(0x287)]['urlChange$'][_0x44192f(0x34d)](_0x1f12e2(this['dispose$']))[_0x44192f(0x1f6)](()=>this['_updateSubUnitFromURLParams'](_0x3cecab));}[_0x279361(0x18e)](_0x1f9801,_0x11baff=!0x1){const _0x2f0e7d=_0x279361,_0x2d05d0=this[_0x2f0e7d(0x287)][_0x2f0e7d(0x242)]('subunit');_0x1f9801[_0x2f0e7d(0x13e)]()!==_0x2d05d0&&this[_0x2f0e7d(0x287)][_0x2f0e7d(0x17e)]('subunit',_0x1f9801[_0x2f0e7d(0x13e)](),_0x11baff);}async[_0x279361(0x32d)](_0x1ae399){const _0x2cfb80=_0x279361;var _0x26fb4b;const _0x5204a4=this[_0x2cfb80(0x287)]['getParam'](_0x2cfb80(0x37b));if(!_0x5204a4||!_0x1ae399['getSheetBySheetId'](_0x5204a4)){const _0x12f3d7=_0x1ae399[_0x2cfb80(0x385)]()[0x0],_0x2a7b15=_0x1ae399[_0x2cfb80(0x2f4)](_0x12f3d7);if(!_0x2a7b15)return;this['_updateURLWithCurrentState'](_0x2a7b15,!0x0),await this['_commandService']['executeCommand'](_0x306b9d['id'],{'unitId':_0x1ae399[_0x2cfb80(0x228)](),'subUnitId':_0x12f3d7});return;}((_0x26fb4b=_0x1ae399['getActiveSheet']())==null?void 0x0:_0x26fb4b[_0x2cfb80(0x13e)]())!==_0x5204a4&&await this[_0x2cfb80(0x232)][_0x2cfb80(0x30d)](_0x306b9d['id'],{'unitId':_0x1ae399[_0x2cfb80(0x228)](),'subUnitId':_0x5204a4});}};ce=Ui([z(0x0,Pt),z(0x1,_0x525e85),z(0x2,_0x28d9e9),z(0x3,_0x349554(_0x13e42a)),z(0x4,_0x3ff1c0(_0x15d297))],ce);var Li=Object[_0x279361(0x1ec)],Mi=(_0x12ba4a,_0x3d992f,_0x41279a,_0xdbd515)=>{const _0x5c5fd2=_0x279361;for(var _0x1c4c20=_0xdbd515>0x1?void 0x0:_0xdbd515?Li(_0x3d992f,_0x41279a):_0x3d992f,_0x2c26f0=_0x12ba4a[_0x5c5fd2(0x35e)]-0x1,_0x58cbe8;_0x2c26f0>=0x0;_0x2c26f0--)(_0x58cbe8=_0x12ba4a[_0x2c26f0])&&(_0x1c4c20=_0x58cbe8(_0x1c4c20)||_0x1c4c20);return _0x1c4c20;},it=(_0x1828ee,_0x15e207)=>(_0xb3618f,_0x12f860)=>_0x15e207(_0xb3618f,_0x12f860,_0x1828ee);let Pe=class extends _0x46d041{constructor(_0x20e01b,_0x305ca5){const _0x5a1211=_0x279361;super(),this[_0x5a1211(0x1a9)]=_0x20e01b,this[_0x5a1211(0x22d)]=_0x305ca5,this[_0x5a1211(0x275)]();}[_0x279361(0x275)](){const _0x5ba699=_0x279361,_0x54585f=this;this[_0x5ba699(0x285)](this[_0x5ba699(0x1a9)][_0x5ba699(0x24b)]({'onBeforePasteImage':async _0x414133=>{const _0x45db33=_0x5ba699,_0x25c9d3=await _0x54585f[_0x45db33(0x22d)][_0x45db33(0x2c6)](_0x414133);return _0x25c9d3?{'source':_0x25c9d3['source'],'imageSourceType':_0x25c9d3[_0x45db33(0x1a2)]}:null;}}));}};Pe=Mi([it(0x0,_0x145d98),it(0x1,_0x371d41)],Pe);const nt=[_0x279361(0x37c),_0x279361(0x27e),_0x279361(0x249),'red.300',_0x279361(0x1df),_0x279361(0x180)];class Ge extends _0x2972bb{constructor(){const _0x156eea=_0x279361;super(...arguments),_(this,_0x156eea(0x1a8),new Map()),_(this,_0x156eea(0x374),0x0);}[_0x279361(0x2ed)](_0x2c0d45){const _0x2d40cb=_0x279361;if(this[_0x2d40cb(0x1a8)]['has'](_0x2c0d45))return this[_0x2d40cb(0x1a8)][_0x2d40cb(0x225)](_0x2c0d45);const _0x23e2a6=nt[this[_0x2d40cb(0x374)]];return this['_colorIndex']=(this[_0x2d40cb(0x374)]+0x1)%nt[_0x2d40cb(0x35e)],this[_0x2d40cb(0x1a8)][_0x2d40cb(0x357)](_0x2c0d45,_0x23e2a6),_0x23e2a6;}}function wt(_0x1fc344){const _0x41096e=_0x279361;let _0x42c3b0='';for(const _0x102b09 of _0x1fc344){const {startOffset:_0x595265,endOffset:_0x316184,isActive:_0x1a235f,rangeType:_0xf5f0eb,segmentId:_0x34d6b8,segmentPage:_0x1c4f56}=_0x102b09;_0x42c3b0[_0x41096e(0x35e)]&&(_0x42c3b0+=','),_0x42c3b0+=_0x595265+':'+_0x316184+':'+(_0x1a235f?'1':'0')+':'+_0xf5f0eb+':'+_0x34d6b8+':'+_0x1c4f56;}return _0x42c3b0;}function Ai(_0x3d0373){const _0x18f6d8=_0x279361,_0x46cb8e=_0x3d0373[_0x18f6d8(0x329)](','),_0x28e4c0=[];for(const _0x5114b1 of _0x46cb8e){const [_0x1f291b,_0x30159f,_0x961b9f,_0x8faca8,_0x40516e,_0x21e69d]=_0x5114b1['split'](':');_0x28e4c0[_0x18f6d8(0x246)]({'startOffset':Number(_0x1f291b),'endOffset':Number(_0x30159f),'collapsed':_0x1f291b===_0x30159f,'isActive':_0x961b9f==='1','rangeType':_0x8faca8===_0x57a80d[_0x18f6d8(0x1cf)]?_0x57a80d[_0x18f6d8(0x1cf)]:_0x57a80d[_0x18f6d8(0x383)],'segmentId':typeof _0x40516e==_0x18f6d8(0x278)?String(_0x40516e):'','segmentPage':Number(_0x21e69d!=null?_0x21e69d:-0x1)});}return _0x28e4c0[_0x18f6d8(0x1c7)](_0x2d17e2=>_0x2d17e2[_0x18f6d8(0x13c)])||(_0x28e4c0[0x0][_0x18f6d8(0x13c)]=!0x0),_0x28e4c0;}class Ke extends _0x46d041{constructor(){const _0x385253=_0x279361;super(...arguments),_(this,_0x385253(0x372),new _0x5ccbb2(null)),_(this,_0x385253(0x1cb),this[_0x385253(0x372)][_0x385253(0x34e)]());}[_0x279361(0x2e2)](_0x172aba){const _0x5d5fc3=_0x279361,{unitID:_0x51d388,memberID:_0x540631,textRanges:_0x1e7bf4}=_0x172aba,_0x525a00=wt(_0x1e7bf4);if(_0x525a00==='')return;const _0x5d341a={'unitID':_0x51d388,'memberID':_0x540631,'selection':_0x525a00};this[_0x5d5fc3(0x372)][_0x5d5fc3(0x1e4)](_0x5d341a);}}var Pi=Object[_0x279361(0x1ec)],wi=(_0xa37405,_0x34d832,_0x3dd48f,_0x9850bc)=>{const _0x8d1f64=_0x279361;for(var _0x13d460=_0x9850bc>0x1?void 0x0:_0x9850bc?Pi(_0x34d832,_0x3dd48f):_0x34d832,_0x844512=_0xa37405[_0x8d1f64(0x35e)]-0x1,_0x35b9d2;_0x844512>=0x0;_0x844512--)(_0x35b9d2=_0xa37405[_0x844512])&&(_0x13d460=_0x35b9d2(_0x13d460)||_0x13d460);return _0x13d460;},P=(_0x16527e,_0x582f8e)=>(_0x47d347,_0x3aba57)=>_0x582f8e(_0x47d347,_0x3aba57,_0x16527e);const yi=0x12c,$i=0x64;let we=class extends _0x46d041{constructor(_0xde5f1a,_0x63c16,_0xc58830,_0x4422a4,_0x23f44c,_0x1b204a,_0x1718ae,_0x4ec9d4,_0x57fe99){const _0x17cb3b=_0x279361;super(),_(this,_0x17cb3b(0x264),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new _0x5ccbb2(new Map())),_(this,_0x17cb3b(0x1be),this[_0x17cb3b(0x195)][_0x17cb3b(0x34e)]()),_(this,_0x17cb3b(0x229),new _0x5ccbb2([])),_(this,'roomMembers$',this[_0x17cb3b(0x229)][_0x17cb3b(0x34d)](_0x4cb684(yi))),_(this,_0x17cb3b(0x1d7),_0x22d40a(_0x21e4bb=>{const _0x42b111=_0x17cb3b,_0x5c2620={'eventID':_0x52ad46[_0x42b111(0x2c8)],'data':{'unitID':this[_0x42b111(0x2ea)],'memberID':this['_session'][_0x42b111(0x387)](),'selection':wt(_0x21e4bb)}};this[_0x42b111(0x28e)][_0x42b111(0x14e)](_0x5c2620,this[_0x42b111(0x2ea)]);},$i)),(this[_0x17cb3b(0x2ea)]=_0xde5f1a,this[_0x17cb3b(0x28e)]=_0x63c16,this[_0x17cb3b(0x31b)]=_0xc58830,this[_0x17cb3b(0x350)]=_0x4422a4,this[_0x17cb3b(0x1f0)]=_0x23f44c,this[_0x17cb3b(0x311)]=_0x1b204a,this['_transformService']=_0x1718ae,this[_0x17cb3b(0x276)]=_0x4ec9d4,this[_0x17cb3b(0x232)]=_0x57fe99);}get[_0x279361(0x2fa)](){const _0x46304b=_0x279361;return this[_0x46304b(0x195)][_0x46304b(0x263)]();}get[_0x279361(0x231)](){const _0x44e571=_0x279361;return this[_0x44e571(0x229)][_0x44e571(0x263)]();}[_0x279361(0x1e2)](){const _0x35dcd2=_0x279361;super['dispose'](),this[_0x35dcd2(0x195)][_0x35dcd2(0x1e4)](new Map()),this[_0x35dcd2(0x195)][_0x35dcd2(0x262)](),this['_roomMembers$'][_0x35dcd2(0x1e4)]([]),this[_0x35dcd2(0x229)][_0x35dcd2(0x262)]();}[_0x279361(0x35a)](){const _0x39a4a4=_0x279361;this[_0x39a4a4(0x275)]||(this[_0x39a4a4(0x275)]=!0x0,this[_0x39a4a4(0x28e)][_0x39a4a4(0x21a)][_0x39a4a4(0x34d)](_0x1f12e2(this[_0x39a4a4(0x337)]))[_0x39a4a4(0x1f6)](_0x14d276=>{const _0x40bba5=_0x39a4a4;_0x14d276===_0x4ef11f['ONLINE']?this['_toggleOnline']():this[_0x40bba5(0x359)]();}),this['_session'][_0x39a4a4(0x2d3)]['pipe'](_0x1f12e2(this['dispose$']))[_0x39a4a4(0x1f6)](_0x4630f6=>{const _0x576866=_0x39a4a4,_0x27a93a=_0x4630f6['eventID'];_0x27a93a===_0x52ad46[_0x576866(0x2c8)]&&this[_0x576866(0x356)](_0x4630f6),_0x27a93a===_0x52ad46[_0x576866(0x196)]&&this[_0x576866(0x21d)](_0x4630f6);}),this[_0x39a4a4(0x285)](this[_0x39a4a4(0x232)][_0x39a4a4(0x258)](_0x41cc5d=>{const _0x1e837e=_0x39a4a4,_0x4ae763=_0x41cc5d[_0x1e837e(0x141)];_0x4ae763!=null&&this['_online']&&_0x41cc5d['id']===_0x3e4467['id']&&_0x4ae763[_0x1e837e(0x140)]===this[_0x1e837e(0x2ea)]&&_0x4ae763[_0x1e837e(0x1d3)]===!0x1&&_0x4ae763[_0x1e837e(0x291)][_0x1e837e(0x35e)]>0x0&&this['_updateLocalCursor'](_0x4ae763[_0x1e837e(0x291)]);})),this[_0x39a4a4(0x311)][_0x39a4a4(0x1cb)][_0x39a4a4(0x34d)](_0x1f12e2(this['dispose$']))['subscribe'](_0x3af6ce=>{const _0x5bd130=_0x39a4a4;if((_0x3af6ce==null?void 0x0:_0x3af6ce[_0x5bd130(0x2ea)])!==this[_0x5bd130(0x2ea)])return;const _0x19aeef={'eventID':_0x52ad46[_0x5bd130(0x2c8)],'data':_0x3af6ce};this[_0x5bd130(0x356)](_0x19aeef);}),this[_0x39a4a4(0x285)](this['_commandService'][_0x39a4a4(0x258)](_0x3338b2=>{const _0x183c64=_0x39a4a4;if(_0x3338b2[_0x183c64(0x141)]==null)return;const _0x4a0420=_0x3338b2[_0x183c64(0x141)];if(_0x3338b2['id']!==_0xa51f36['id']||_0x4a0420['unitId']!==this['unitID'])return;const _0xa1e656={'id':_0x183c64(0x2ab),'params':_0x4a0420},_0x107e24=this[_0x183c64(0x2fa)];for(const [_0x815cd7,_0x5d58fe]of _0x107e24){const _0x2cb18f={'id':_0x183c64(0x2ab),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x5d58fe['ranges']}},_0x36b4f1=this[_0x183c64(0x192)][_0x183c64(0x1bc)](_0xa1e656,_0x2cb18f,!0x1);if(_0x325207(_0x36b4f1))throw _0x36b4f1[_0x183c64(0x21b)];_0x107e24[_0x183c64(0x357)](_0x815cd7,{..._0x5d58fe,'ranges':_0x36b4f1['m2Prime'][_0x183c64(0x141)][_0x183c64(0x1d4)]});}queueMicrotask(()=>{const _0x2e9690=_0x183c64;this['_cursorInfo$'][_0x2e9690(0x1e4)](_0x107e24);});})));}[_0x279361(0x356)](_0xd5e2ca){const _0x38b788=_0x279361;var _0x6631e7,_0x455f38;const {memberID:_0x493487,selection:_0x21ff0b}=_0xd5e2ca[_0x38b788(0x28a)],_0x57bc8f=Ai(_0x21ff0b),_0x551b39=(_0x455f38=(_0x6631e7=this[_0x38b788(0x1f0)][_0x38b788(0x296)](this[_0x38b788(0x2ea)],_0x493487))==null?void 0x0:_0x6631e7[_0x38b788(0x371)])!=null?_0x455f38:_0x38b788(0x29b),_0x57b810={'color':this[_0x38b788(0x350)][_0x38b788(0x2ed)](_0x493487),'name':_0x551b39,'ranges':_0x57bc8f},_0x5af7f5=this['cursorInfo'];_0x5af7f5[_0x38b788(0x357)](_0x493487,_0x57b810),this[_0x38b788(0x195)][_0x38b788(0x1e4)](_0x5af7f5);}[_0x279361(0x21d)](_0x2fd2b0){const _0xf2b53b=_0x279361,{memberID:_0x5e40e0}=_0x2fd2b0['data'],_0x1d6d69=this[_0xf2b53b(0x2fa)];_0x1d6d69[_0xf2b53b(0x250)](_0x5e40e0),this['_cursorInfo$']['next'](_0x1d6d69);}[_0x279361(0x20f)](){const _0x2a1cbd=_0x279361;var _0x166ce4;if(this[_0x2a1cbd(0x264)]=!0x0,((_0x166ce4=this[_0x2a1cbd(0x276)][_0x2a1cbd(0x1c2)]())==null?void 0x0:_0x166ce4[_0x2a1cbd(0x228)]())!==this[_0x2a1cbd(0x2ea)])return;const _0x2bf29a=this[_0x2a1cbd(0x31b)]['get'](_0x304158)[_0x2a1cbd(0x227)]();Array['isArray'](_0x2bf29a)&&_0x2bf29a[_0x2a1cbd(0x35e)]>0x0&&this[_0x2a1cbd(0x1d7)](_0x2bf29a);}[_0x279361(0x359)](){const _0x1c94e4=_0x279361;this[_0x1c94e4(0x264)]=!0x1;}};we=wi([P(0x2,_0x349554(_0x543124)),P(0x3,_0x349554(Ge)),P(0x4,_0x349554(_0x4ac7a2)),P(0x5,_0x349554(Ke)),P(0x6,_0x5aa3d9),P(0x7,_0x56b693),P(0x8,_0x28d9e9)],we);var xi=Object[_0x279361(0x1ec)],Bi=(_0x326288,_0x57205b,_0x4e6b5e,_0x159751)=>{const _0x294ee2=_0x279361;for(var _0x45f5ed=_0x159751>0x1?void 0x0:_0x159751?xi(_0x57205b,_0x4e6b5e):_0x57205b,_0x48c060=_0x326288[_0x294ee2(0x35e)]-0x1,_0x5edcff;_0x48c060>=0x0;_0x48c060--)(_0x5edcff=_0x326288[_0x48c060])&&(_0x45f5ed=_0x5edcff(_0x45f5ed)||_0x45f5ed);return _0x45f5ed;},F=(_0x55022b,_0x489eae)=>(_0x6e1960,_0x3c2619)=>_0x489eae(_0x6e1960,_0x3c2619,_0x55022b);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x25c320=[],_0x2d3e7b=!0x1;return _0x566061=>{const _0x49479b=_0x168c;_0x25c320[_0x49479b(0x246)](_0x566061),_0x2d3e7b||(_0x2d3e7b=!0x0,setTimeout(()=>{const _0x46c84d=_0x49479b;_0x25c320[_0x46c84d(0x1a6)](_0x3d4e36=>_0x3d4e36()),_0x25c320=[],_0x2d3e7b=!0x1;}));};};let ye=class extends _0x46d041{constructor(_0x25d56d,_0x46add1,_0x57076e,_0x350364,_0xb3cbb5,_0x3e25c6,_0x1236b6,_0x210042){const _0xfe13cd=_0x279361;super(),_(this,_0xfe13cd(0x264),!0x1),_(this,_0xfe13cd(0x275),!0x1),_(this,_0xfe13cd(0x195),new _0x5ccbb2(new Map())),_(this,_0xfe13cd(0x1be),this[_0xfe13cd(0x195)][_0xfe13cd(0x34e)]()),_(this,_0xfe13cd(0x229),new _0x5ccbb2([])),_(this,_0xfe13cd(0x303),this['_roomMembers$'][_0xfe13cd(0x34d)](_0x4cb684(Fi))),_(this,_0xfe13cd(0x1d7),_0x22d40a((_0x312bfd,_0x4668f7)=>{const _0x4c3330=_0xfe13cd,_0x3a8357={'eventID':_0x52ad46[_0x4c3330(0x2c8)],'data':{'unitID':this[_0x4c3330(0x2ea)],'memberID':this[_0x4c3330(0x28e)][_0x4c3330(0x387)](),'selection':_0x5ddf78(_0x312bfd,_0x4668f7[_0x4c3330(0x2be)])}};this['_session'][_0x4c3330(0x14e)](_0x3a8357,this[_0x4c3330(0x2ea)]);},ki)),(this[_0xfe13cd(0x2ea)]=_0x25d56d,this[_0xfe13cd(0x28e)]=_0x46add1,this[_0xfe13cd(0x31b)]=_0x57076e,this[_0xfe13cd(0x350)]=_0x350364,this[_0xfe13cd(0x1f0)]=_0xb3cbb5,this[_0xfe13cd(0x276)]=_0x3e25c6,this[_0xfe13cd(0x232)]=_0x1236b6,this[_0xfe13cd(0x273)]=_0x210042);}get[_0x279361(0x2fa)](){const _0x46bffc=_0x279361;return this[_0x46bffc(0x195)]['getValue']();}get[_0x279361(0x231)](){const _0x465f39=_0x279361;return this['_roomMembers$'][_0x465f39(0x263)]();}[_0x279361(0x1e2)](){const _0x44e1d3=_0x279361;super[_0x44e1d3(0x1e2)](),this[_0x44e1d3(0x195)][_0x44e1d3(0x1e4)](new Map()),this[_0x44e1d3(0x195)]['complete'](),this[_0x44e1d3(0x229)][_0x44e1d3(0x1e4)]([]),this[_0x44e1d3(0x229)]['complete']();}['init'](){const _0x1ac25b=_0x279361;this[_0x1ac25b(0x275)]||(this['_init']=!0x0,this[_0x1ac25b(0x28e)][_0x1ac25b(0x21a)][_0x1ac25b(0x34d)](_0x1f12e2(this['dispose$']))[_0x1ac25b(0x1f6)](_0xabd9f3=>{const _0xb8469a=_0x1ac25b;_0xabd9f3===_0x4ef11f[_0xb8469a(0x1c6)]?this['_toggleOnline']():this['_toggleOffline']();}),this['_session']['event$'][_0x1ac25b(0x34d)](_0x1f12e2(this[_0x1ac25b(0x337)]))[_0x1ac25b(0x1f6)](_0x481fcb=>{const _0x5e4386=_0x1ac25b,_0x28ee17=_0x481fcb[_0x5e4386(0x323)];_0x28ee17===_0x52ad46[_0x5e4386(0x2c8)]&&this['_onCursorUpdate'](_0x481fcb),_0x28ee17===_0x52ad46[_0x5e4386(0x196)]&&this['_onCursorDelete'](_0x481fcb);}),this[_0x1ac25b(0x1ae)](),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x11bc33=>{const _0x326e17=_0x1ac25b;if(this['_online']&&_0x11bc33['id']===_0x2b686f['id']&&_0x11bc33['params']['unitId']===this[_0x326e17(0x2ea)]){const _0xb082bf=_0x11bc33[_0x326e17(0x141)];this[_0x326e17(0x1d7)](_0xb082bf[_0x326e17(0x223)],_0xb082bf[_0x326e17(0x295)][0x0]);}})));}[_0x279361(0x356)](_0xd8b2a2){const _0x3a5fbf=_0x279361;var _0x2604f9,_0x44312b;const {memberID:_0x32ddb4,selection:_0x6d835c}=_0xd8b2a2[_0x3a5fbf(0x28a)],{sheetName:_0x1ca129,range:_0x5f5a1f}=_0x1ea442(_0x6d835c),_0x20884b={'name':(_0x44312b=(_0x2604f9=this[_0x3a5fbf(0x1f0)]['getMember'](this[_0x3a5fbf(0x2ea)],_0x32ddb4))==null?void 0x0:_0x2604f9[_0x3a5fbf(0x371)])!=null?_0x44312b:_0x3a5fbf(0x29b),'range':this[_0x3a5fbf(0x1bf)](_0x1ca129,_0x5f5a1f),'sheetID':_0x1ca129,'color':this[_0x3a5fbf(0x350)][_0x3a5fbf(0x2ed)](_0x32ddb4),'selection':_0x6d835c},_0x5e4e89=this[_0x3a5fbf(0x2fa)];_0x5e4e89['set'](_0x32ddb4,_0x20884b),this[_0x3a5fbf(0x195)][_0x3a5fbf(0x1e4)](_0x5e4e89);}[_0x279361(0x21d)](_0x898be){const _0x12ed8e=_0x279361,{memberID:_0x46f610}=_0x898be['data'],_0x3aabad=this[_0x12ed8e(0x2fa)];_0x3aabad['delete'](_0x46f610),this[_0x12ed8e(0x195)]['next'](_0x3aabad);}[_0x279361(0x1bf)](_0x42dc07,_0x29f012){const _0x3c5382=_0x279361;var _0x6dc3ae,_0xa2a642;const _0x68a5a0=(_0xa2a642=(_0x6dc3ae=this['_univerInstanceService'][_0x3c5382(0x22f)](this[_0x3c5382(0x2ea)]))==null?void 0x0:_0x6dc3ae[_0x3c5382(0x2f4)](_0x42dc07))==null?void 0x0:_0xa2a642[_0x3c5382(0x380)]();return(_0x68a5a0==null?void 0x0:_0x68a5a0[_0x3c5382(0x316)](_0x1d301a=>_0x5c6826[_0x3c5382(0x2af)](_0x1d301a,_0x29f012)))||_0x29f012;}[_0x279361(0x1ae)](){const _0x2c96cf=_0x279361,_0x5804ae=new _0x3616d9(),_0xf67885=Hi(),_0x1e39ad=()=>{const _0x4a4969=_0x168c;_0x5804ae[_0x4a4969(0x1e2)]();const _0x176e99=(_0x47b21c,_0x43ca01,_0x48b038,_0x1ca4e2)=>{const _0x201329=_0x4a4969;let _0x11e732=[];switch(_0x47b21c['id']){case _0x5ba2a6[_0x201329(0x20a)]:{_0x11e732=_0x23cee5(_0x47b21c,_0x1ca4e2);break;}case _0x5ba2a6[_0x201329(0x2d2)]:{_0x11e732=_0x563e59(_0x47b21c,_0x1ca4e2);break;}case _0x5ba2a6[_0x201329(0x17a)]:{_0x11e732=_0x16ea5d(_0x47b21c,_0x1ca4e2);break;}case _0x5ba2a6[_0x201329(0x18f)]:{_0x11e732=_0x1ac42c(_0x47b21c,_0x1ca4e2);break;}case _0x5ba2a6[_0x201329(0x28c)]:{_0x11e732=_0x1413a9(_0x47b21c,_0x1ca4e2);break;}case _0x5ba2a6['InsertRowCommandId']:{_0x11e732=_0x17b391(_0x47b21c,_0x1ca4e2);break;}case _0x5ba2a6[_0x201329(0x388)]:{_0x11e732=_0x1450ab(_0x47b21c,_0x1ca4e2);break;}case _0x5ba2a6['RemoveColCommandId']:{_0x11e732=_0x1e5959(_0x47b21c,_0x1ca4e2);break;}case _0x5ba2a6[_0x201329(0x305)]:{_0x11e732=_0x471a44(_0x47b21c,_0x1ca4e2);break;}}const _0x22fe45=_0x4a4ccd(_0x11e732,_0x1ca4e2),_0x3539a2=this[_0x201329(0x2fa)][_0x201329(0x225)](_0x43ca01);if(_0x3539a2&&_0x22fe45){const _0x4e3712={..._0x3539a2,'range':_0x22fe45};this[_0x201329(0x2fa)][_0x201329(0x357)](_0x43ca01,_0x4e3712),_0xf67885(()=>{const _0x594c33=_0x201329,_0x151acf=this['_refRangeService'][_0x594c33(0x2c5)](_0x22fe45,_0x7f3ce7=>(_0x151acf[_0x594c33(0x1e2)](),_0x176e99(_0x7f3ce7,_0x43ca01,_0x48b038,_0x22fe45)));_0x5804ae['add'](_0x151acf);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x56b199,_0x581be4)=>{const _0x13fe8c=_0x4a4969,{range:_0x1c333a,sheetID:_0x40290e}=_0x56b199,_0xf83522=this[_0x13fe8c(0x273)][_0x13fe8c(0x2c5)](_0x1c333a,_0x2c6f21=>(_0xf83522[_0x13fe8c(0x1e2)](),_0x176e99(_0x2c6f21,_0x581be4,_0x40290e,_0x1c333a)));_0x5804ae[_0x13fe8c(0x169)](_0xf83522);});};this[_0x2c96cf(0x285)](_0x9a67c7(this['_cursorInfo$']['subscribe'](()=>{_0x1e39ad();})));}[_0x279361(0x20f)](){const _0x38d3d3=_0x279361;var _0x4ec26a,_0x4ca6b2;if(this['_online']=!0x0,((_0x4ec26a=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x4ec26a[_0x38d3d3(0x228)]())!==this[_0x38d3d3(0x2ea)])return;const _0x1a7ce4=(_0x4ca6b2=this[_0x38d3d3(0x31b)][_0x38d3d3(0x225)](_0x3c434f)[_0x38d3d3(0x2a8)]())==null?void 0x0:_0x4ca6b2[0x0],_0x43d977=this['_univerInstanceService'][_0x38d3d3(0x18c)](_0x3d4c4a[_0x38d3d3(0x26c)])[_0x38d3d3(0x363)]();_0x1a7ce4&&_0x43d977&&this[_0x38d3d3(0x1d7)](_0x43d977[_0x38d3d3(0x13e)](),_0x1a7ce4);}[_0x279361(0x359)](){this['_online']=!0x1;}};ye=Bi([F(0x2,_0x349554(_0x543124)),F(0x3,_0x349554(Ge)),F(0x4,_0x349554(_0x4ac7a2)),F(0x5,_0x56b693),F(0x6,_0x28d9e9),F(0x7,_0x349554(_0x4336d8))],ye);var Yi=Object[_0x279361(0x1ec)],Wi=(_0xac01ba,_0x362c96,_0x371d6e,_0x28b79b)=>{const _0x15147d=_0x279361;for(var _0x3582f5=_0x28b79b>0x1?void 0x0:_0x28b79b?Yi(_0x362c96,_0x371d6e):_0x362c96,_0x48d402=_0xac01ba[_0x15147d(0x35e)]-0x1,_0x136270;_0x48d402>=0x0;_0x48d402--)(_0x136270=_0xac01ba[_0x48d402])&&(_0x3582f5=_0x136270(_0x3582f5)||_0x3582f5);return _0x3582f5;},pe=(_0x133e75,_0x235896)=>(_0x2bedaf,_0xcce4b3)=>_0x235896(_0x2bedaf,_0xcce4b3,_0x133e75);let Y=class extends _0x46d041{constructor(_0x5cd5cb,_0xe40ed1,_0x434953){const _0x3e0c88=_0x279361;super(),_(this,_0x3e0c88(0x171),new Map()),_(this,_0x3e0c88(0x241),new _0x57abac()),(this[_0x3e0c88(0x276)]=_0x5cd5cb,this[_0x3e0c88(0x31b)]=_0xe40ed1,this['_collabSessionService']=_0x434953,this[_0x3e0c88(0x275)]());}[_0x279361(0x1e2)](){const _0x59c713=_0x279361;super[_0x59c713(0x1e2)](),this[_0x59c713(0x241)][_0x59c713(0x262)](),this['_entities'][_0x59c713(0x1a6)](_0x557d7b=>_0x557d7b[_0x59c713(0x1e2)]());}[_0x279361(0x139)](_0x40016b){const _0x176da8=_0x279361;return this['_entities'][_0x176da8(0x30e)](_0x40016b)?this[_0x176da8(0x171)][_0x176da8(0x225)](_0x40016b)[_0x176da8(0x1be)]:this[_0x176da8(0x241)]['pipe'](_0x5eca73(_0x586d2a=>_0x586d2a[_0x176da8(0x2ea)]===_0x40016b),_0x336798(_0x45001d=>_0x45001d[_0x176da8(0x1be)]));}[_0x279361(0x275)](){const _0xa7876c=_0x279361;this[_0xa7876c(0x276)][_0xa7876c(0x18d)](_0x3d4c4a[_0xa7876c(0x26c)])[_0xa7876c(0x34d)](_0x1f12e2(this[_0xa7876c(0x337)]))[_0xa7876c(0x1f6)](async _0x478cec=>{const _0x5947ab=_0xa7876c,_0x446027=_0x478cec[_0x5947ab(0x228)](),_0x34fe57=await this[_0x5947ab(0x1eb)](_0x446027);this['_entityInit$']['next'](_0x34fe57),this['_entities']['set'](_0x446027,_0x34fe57);}),this[_0xa7876c(0x276)]['getTypeOfUnitAdded$'](_0x3d4c4a['UNIVER_DOC'])[_0xa7876c(0x34d)](_0x1f12e2(this['dispose$']))[_0xa7876c(0x34d)](_0x5eca73(_0x53e27e=>!_0x53e27e[_0xa7876c(0x228)]()[_0xa7876c(0x24e)]('__')))[_0xa7876c(0x1f6)](async _0x481df5=>{const _0x3952a7=_0xa7876c,_0x442b56=_0x481df5['getUnitId'](),_0x544438=await this[_0x3952a7(0x2dc)](_0x442b56);this[_0x3952a7(0x241)][_0x3952a7(0x1e4)](_0x544438),this[_0x3952a7(0x171)][_0x3952a7(0x357)](_0x442b56,_0x544438);}),_0x27a14c(this[_0xa7876c(0x276)]['getTypeOfUnitDisposed$'](_0x3d4c4a[_0xa7876c(0x14b)]),this[_0xa7876c(0x276)][_0xa7876c(0x17b)](_0x3d4c4a[_0xa7876c(0x26c)]))['pipe'](_0x1f12e2(this[_0xa7876c(0x337)]))[_0xa7876c(0x1f6)](_0x2eb0fd=>{const _0x3a9879=_0xa7876c,_0x1ca3e5=_0x2eb0fd['getUnitId'](),_0x1908e5=this[_0x3a9879(0x171)][_0x3a9879(0x225)](_0x1ca3e5);_0x1908e5&&(_0x1908e5[_0x3a9879(0x1e2)](),this[_0x3a9879(0x171)][_0x3a9879(0x250)](_0x1ca3e5));});}async['_startSheetCollabCursor'](_0x12473a){const _0x1ed677=_0x279361,_0x5ebe52=await this['_collabSessionService'][_0x1ed677(0x156)](_0x12473a),_0x19db77=this['_injector'][_0x1ed677(0x1f5)](ye,_0x12473a,_0x5ebe52);return _0x19db77[_0x1ed677(0x35a)](),_0x19db77;}async[_0x279361(0x2dc)](_0x7a971b){const _0x2bffc5=_0x279361,_0x2a7e01=await this[_0x2bffc5(0x293)]['requireSession'](_0x7a971b),_0x31d8f3=this[_0x2bffc5(0x31b)]['createInstance'](we,_0x7a971b,_0x2a7e01);return _0x31d8f3[_0x2bffc5(0x35a)](),_0x31d8f3;}};Y=Wi([pe(0x0,_0x56b693),pe(0x1,_0x349554(_0x543124)),pe(0x2,_0x349554(_0xe3b745))],Y);const q=0x14,rt=0xc8,Oe=0x4,Vi=0x5;function ji(_0x546da8,_0x512132){const _0x38da78=_0x279361;let {radius:_0x169d94,width:_0x3fa090,height:_0x18b373}=_0x512132;_0x169d94=_0x169d94!=null?_0x169d94:0x0,_0x3fa090=_0x3fa090!=null?_0x3fa090:0x1e,_0x18b373=_0x18b373!=null?_0x18b373:0x1e;let _0x3a1b05=0x0,_0xd05e01=0x0,_0x37a8ee=0x0;_0x3a1b05=_0xd05e01=_0x37a8ee=Math[_0x38da78(0x237)](_0x169d94,_0x3fa090/0x2,_0x18b373/0x2),_0x546da8[_0x38da78(0x36a)](),_0x546da8[_0x38da78(0x2b8)](_0x3a1b05,0x0),_0x546da8[_0x38da78(0x369)](_0x3fa090-_0xd05e01,0x0),_0x546da8['arc'](_0x3fa090-_0xd05e01,_0xd05e01,_0xd05e01,Math['PI']*0x3/0x2,0x0,!0x1),_0x546da8['lineTo'](_0x3fa090,_0x18b373-_0x37a8ee),_0x546da8[_0x38da78(0x389)](_0x3fa090-_0x37a8ee,_0x18b373-_0x37a8ee,_0x37a8ee,0x0,Math['PI']/0x2,!0x1),_0x546da8[_0x38da78(0x369)](0x0,_0x18b373),_0x546da8[_0x38da78(0x369)](0x0,_0x3a1b05),_0x546da8[_0x38da78(0x389)](_0x3a1b05,_0x3a1b05,_0x3a1b05,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x546da8[_0x38da78(0x177)](),_0x512132[_0x38da78(0x308)]&&(_0x546da8[_0x38da78(0x301)](),_0x546da8['fillStyle']=_0x512132[_0x38da78(0x308)],_0x512132[_0x38da78(0x26d)]===_0x38da78(0x251)?_0x546da8[_0x38da78(0x308)](_0x38da78(0x251)):_0x546da8[_0x38da78(0x308)](),_0x546da8[_0x38da78(0x30f)]());}class Ie extends _0x8d0ab{constructor(_0x474bc6,_0x22d745){const _0x5a44ce=_0x279361;super(_0x474bc6,_0x22d745),_(this,_0x5a44ce(0x314)),_(this,_0x5a44ce(0x20e)),(this[_0x5a44ce(0x314)]=_0x22d745==null?void 0x0:_0x22d745['color'],this[_0x5a44ce(0x20e)]=_0x22d745==null?void 0x0:_0x22d745['text']);}static[_0x279361(0x2cf)](_0x3de8f7,_0x5f2b0d){const _0x517183=_0x279361,{text:_0x5ae77a,color:_0xec66f2}=_0x5f2b0d;_0x3de8f7[_0x517183(0x301)](),_0x3de8f7[_0x517183(0x379)]=_0x517183(0x25a);const _0x39fc57=_0x3de8f7[_0x517183(0x13f)](_0x5ae77a)[_0x517183(0x29a)],_0x5469ae=Math[_0x517183(0x237)](_0x39fc57+0x2*Oe,rt);ji(_0x3de8f7,{'height':q,'radius':0x4,'width':_0x5469ae,'fill':_0xec66f2}),_0x3de8f7[_0x517183(0x364)]=_0x517183(0x1d6);const _0x1ea05f=Oe,_0x5d6318=q-Vi,_0x381f8f=rt-0x2*Oe;if(_0x39fc57>_0x381f8f){let _0x1633a8='',_0x542b68=0x0;for(const _0x8f9db7 of _0x5ae77a){const _0x3f757d=_0x3de8f7[_0x517183(0x13f)](_0x8f9db7)[_0x517183(0x29a)];if(_0x542b68+_0x3f757d<=_0x381f8f-_0x3de8f7[_0x517183(0x13f)](_0x517183(0x332))[_0x517183(0x29a)])_0x1633a8+=_0x8f9db7,_0x542b68+=_0x3f757d;else{_0x1633a8+=_0x517183(0x332);break;}}_0x3de8f7['fillText'](_0x1633a8,_0x1ea05f,_0x5d6318);}else _0x3de8f7[_0x517183(0x190)](_0x5ae77a,_0x1ea05f,_0x5d6318);_0x3de8f7[_0x517183(0x30f)]();}[_0x279361(0x200)](_0x53ac51){const _0x1e9c2b=_0x279361;Ie[_0x1e9c2b(0x2cf)](_0x53ac51,this);}}const Te=_0x279361(0x1fd),Xi=_0x279361(0x36d),Gi=_0x279361(0x212),J=0x6,Ki=1.5,Ce=0x4,zi=1.5,Ji=_0x279361(0x300);class ot{constructor(_0x9a147c,_0x1fda1d,_0x300fe3,_0x4b8902){const _0xe50168=_0x279361;_(this,_0xe50168(0x23f),[]),_(this,_0xe50168(0x289),null),_(this,_0xe50168(0x159),null),_(this,'_anchorDot',null),_(this,_0xe50168(0x185),null),_(this,_0xe50168(0x2a7),null),(this[_0xe50168(0x226)]=_0x9a147c,this[_0xe50168(0x220)]=_0x1fda1d,this[_0xe50168(0x33f)]=_0x300fe3,this[_0xe50168(0x144)]=_0x4b8902,this[_0xe50168(0x230)]());}set['_hover'](_0x3d1c10){const _0x15ff21=_0x279361;_0x3d1c10?(this['_anchorDot']&&this[_0x15ff21(0x2d6)][_0x15ff21(0x360)](),this[_0x15ff21(0x159)]&&this['_textBubble'][_0x15ff21(0x1b4)]()):(this['_anchorDot']&&this[_0x15ff21(0x2d6)][_0x15ff21(0x1b4)](),this[_0x15ff21(0x159)]&&this[_0x15ff21(0x159)][_0x15ff21(0x360)]());}['dispose'](){const _0x349b1c=_0x279361;for(const _0x2bf0cb of this[_0x349b1c(0x23f)])_0x2bf0cb[_0x349b1c(0x1e2)]();this['_textBubble']&&this[_0x349b1c(0x159)][_0x349b1c(0x1e2)](),this['_anchorDot']&&this[_0x349b1c(0x2d6)][_0x349b1c(0x1e2)](),this[_0x349b1c(0x289)]&&this['_anchor'][_0x349b1c(0x1e2)](),this[_0x349b1c(0x2a7)]&&this['_eventUnsubscribe']();}[_0x279361(0x230)](){const _0x586fd4=_0x279361;var _0x582218;const {_docSkeleton:_0x1712c6,_document:_0xccb3da}=this,{color:_0x34975e,name:_0x3af834,ranges:_0x53121d}=this[_0x586fd4(0x226)],_0x46c69c=_0xccb3da['getOffsetConfig'](),{docsLeft:_0x8ac9fe,docsTop:_0xbe53ed}=_0x46c69c,_0xb07d33=new _0x11eb33(_0x46c69c,_0x1712c6);for(const {startOffset:_0x1623f6,endOffset:_0x46654a,rangeType:_0x40f6b1,segmentId:_0x9035a8,segmentPage:_0x3a2c03,collapsed:_0x40f867,isActive:_0xd268c5}of _0x53121d){const _0x4a3869=_0x1712c6['findNodePositionByCharIndex'](_0x1623f6,!0x0,_0x9035a8,_0x3a2c03);let _0x3b02c7=_0x1712c6[_0x586fd4(0x256)](_0x46654a,!0x0,_0x9035a8,_0x3a2c03);if(_0x3b02c7==null&&(_0x3b02c7=_0x1712c6[_0x586fd4(0x256)](_0x46654a-0x1,!0x1,_0x9035a8,_0x3a2c03)),_0xd268c5){const {contentBoxPointGroup:_0x7449a5}=_0xb07d33[_0x586fd4(0x306)](_0x3b02c7,_0x3b02c7);if(_0x7449a5['length']===0x0)continue;this['_drawAnchor'](_0x34975e,_0x7449a5,_0x8ac9fe,_0xbe53ed,_0x3af834),this['_eventUnsubscribe']=this[_0x586fd4(0x375)]();}if(_0x4a3869&&_0x3b02c7){if(_0x40f6b1===_0x57a80d[_0x586fd4(0x383)]){const _0x4be36a=new _0x1d33b0(_0x46c69c,_0x1712c6),{pointGroup:_0x2a09ed}=(_0x582218=_0x4be36a[_0x586fd4(0x306)](_0x4a3869,_0x3b02c7))!=null?_0x582218:{};if(_0x2a09ed==null||_0x2a09ed[_0x586fd4(0x35e)]===0x0)continue;this[_0x586fd4(0x1fe)](_0x34975e,_0x2a09ed,_0x8ac9fe,_0xbe53ed);}else{if(!_0x40f867){const {borderBoxPointGroup:_0x40dbfc}=_0xb07d33[_0x586fd4(0x306)](_0x4a3869,_0x3b02c7);if(_0x40dbfc[_0x586fd4(0x35e)]===0x0)continue;this[_0x586fd4(0x22a)](_0x34975e,_0x40dbfc,_0x8ac9fe,_0xbe53ed);}}}}}[_0x279361(0x367)](_0x4fa935,_0x3dc697,_0x253cf7,_0xbc2f79,_0x523e2d){const _0x92623f=_0x279361,_0x3392fe=this[_0x92623f(0x19d)](_0x3dc697),{left:_0x4b75bd,top:_0x405d22,height:_0x2ed5b8}=_0x3392fe,_0x547ff7=this[_0x92623f(0x203)](),_0x334465=zi/_0x547ff7,_0x23fdbe=new _0x5beebc(Te+_0x1667d1(J),{'left':_0x4b75bd+_0x253cf7-_0x334465,'top':_0x405d22+_0xbc2f79,'height':_0x2ed5b8,'width':Ki,'fill':_0x4fa935||_0x3775c8(_0x42b207[_0x92623f(0x1a3)],0x0),'strokeWidth':_0x334465,'stroke':Ji,'evented':!0x0});this[_0x92623f(0x289)]=_0x23fdbe,this[_0x92623f(0x220)][_0x92623f(0x174)](_0x23fdbe,_0x260d0d);const _0x18d722=new _0x5beebc(Te+_0x1667d1(J),{'left':_0x4b75bd+_0x253cf7-_0x334465,'top':_0x405d22+_0xbc2f79-Ce/0x2,'height':Ce,'width':Ce,'fill':_0x4fa935||_0x3775c8(_0x42b207['black'],0x0),'strokeWidth':0x0,'stroke':_0x4fa935||_0x3775c8(_0x42b207[_0x92623f(0x1a3)],0x0),'evented':!0x1});this['_anchorDot']=_0x18d722,this[_0x92623f(0x220)]['addObject'](_0x18d722,_0x260d0d);const _0x187977=new Ie(Te+_0x1667d1(J),{'left':_0x4b75bd+_0x253cf7-_0x334465,'top':_0x405d22+_0xbc2f79-q,'text':_0x523e2d,'color':_0x4fa935});this[_0x92623f(0x159)]=_0x187977,this['_scene']['addObject'](_0x187977,_0x260d0d),this[_0x92623f(0x340)]=!0x1;}['_handleHover'](){const _0x210f87=_0x279361,_0x1ff205=this[_0x210f87(0x289)][_0x210f87(0x161)]['subscribeEvent'](()=>{const _0x365000=_0x210f87;this[_0x365000(0x340)]=!0x0;}),_0x52e6ad=this['_anchor'][_0x210f87(0x29c)]['subscribeEvent'](()=>{const _0x190160=_0x210f87;this['_hideTimer']&&clearTimeout(this[_0x190160(0x185)]),this[_0x190160(0x185)]=setTimeout(()=>{const _0xf8c0a8=_0x190160;this[_0xf8c0a8(0x340)]=!0x1;},0x7d0);});return()=>{const _0x128bb1=_0x210f87;_0x1ff205[_0x128bb1(0x1e9)](),_0x52e6ad[_0x128bb1(0x1e9)]();};}['_drawTextRange'](_0x25e715,_0x4cf9cd,_0x4b9c66,_0x5ddc33){const _0x24163a=_0x279361,_0x302dca=new _0x17b25c(_0x25e715)[_0x24163a(0x152)](0.2)[_0x24163a(0x2f7)](),_0x4e5025=new _0x1ec3a4(Xi+_0x1667d1(J),{'pointsGroup':_0x4cf9cd,'fill':_0x302dca||_0x3775c8(_0x42b207[_0x24163a(0x1a3)],0.2),'left':_0x4b9c66,'top':_0x5ddc33,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x24163a(0x246)](_0x4e5025),this[_0x24163a(0x220)][_0x24163a(0x174)](_0x4e5025,_0x260d0d);}[_0x279361(0x1fe)](_0x1c27b0,_0x267ce5,_0x368658,_0x57ee38){const _0x91ec3d=_0x279361,_0x1b5b12=new _0x17b25c(_0x1c27b0)[_0x91ec3d(0x152)](0.2)['toRgbString'](),_0x1124cd=new _0x1ec3a4(Gi+_0x1667d1(J),{'pointsGroup':_0x267ce5,'fill':_0x1b5b12||_0x3775c8(_0x42b207['black'],0.2),'left':_0x368658,'top':_0x57ee38,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x1124cd),this[_0x91ec3d(0x220)][_0x91ec3d(0x174)](_0x1124cd,_0x260d0d);}[_0x279361(0x19d)](_0xcd8ca7){const _0x4f12ac=_0xcd8ca7[0x0],_0x373241=_0x4f12ac[0x0],_0x469f16=_0x4f12ac[0x2],{x:_0x50b0a6,y:_0x52d524}=_0x373241,{x:_0x180fb9,y:_0x44f73f}=_0x469f16;return{'left':_0x50b0a6,'top':_0x52d524,'width':_0x180fb9-_0x50b0a6,'height':_0x44f73f-_0x52d524};}[_0x279361(0x203)](){const _0x4599b0=_0x279361,{scaleX:_0x39c574,scaleY:_0x4451bd}=this[_0x4599b0(0x220)][_0x4599b0(0x1c0)]();return Math[_0x4599b0(0x2d7)](_0x39c574,_0x4451bd);}}var Zi=Object[_0x279361(0x1ec)],Qi=(_0x581e3a,_0x257702,_0x439cd5,_0x4c5665)=>{const _0x2c2186=_0x279361;for(var _0x2f3547=_0x4c5665>0x1?void 0x0:_0x4c5665?Zi(_0x257702,_0x439cd5):_0x257702,_0x4699aa=_0x581e3a[_0x2c2186(0x35e)]-0x1,_0x2aee93;_0x4699aa>=0x0;_0x4699aa--)(_0x2aee93=_0x581e3a[_0x4699aa])&&(_0x2f3547=_0x2aee93(_0x2f3547)||_0x2f3547);return _0x2f3547;},ne=(_0x265bbf,_0x35fd9c)=>(_0x5d1d3d,_0x52f2a4)=>_0x35fd9c(_0x5d1d3d,_0x52f2a4,_0x265bbf);let $e=class extends _0x46d041{constructor(_0x43be05,_0x343e40,_0x56977c,_0x4ea8ac,_0x5c7f19){const _0x103db3=_0x279361;super(),_(this,_0x103db3(0x17c),[]),_(this,'_cursors',[]),(this[_0x103db3(0x2f3)]=_0x43be05,this[_0x103db3(0x16e)]=_0x343e40,this[_0x103db3(0x1b1)]=_0x56977c,this[_0x103db3(0x232)]=_0x4ea8ac,this['_themeService']=_0x5c7f19,this[_0x103db3(0x275)]());}[_0x279361(0x275)](){const _0x254c5d=_0x279361,_0x18fe2b=this[_0x254c5d(0x2f3)][_0x254c5d(0x140)],_0x42dde4=this[_0x254c5d(0x16e)];this[_0x254c5d(0x285)](_0x4310f5([this[_0x254c5d(0x1b1)][_0x254c5d(0x139)](_0x18fe2b),this[_0x254c5d(0x21f)]['currentTheme$']])[_0x254c5d(0x34d)](_0x457ae1(([_0x4cac3c,_0x4ed542])=>({'skeleton':_0x42dde4[_0x254c5d(0x1f1)](),'cursors':[..._0x4cac3c[_0x254c5d(0x244)]()][_0x254c5d(0x30c)](_0x6609f3=>({..._0x6609f3,'color':this[_0x254c5d(0x21f)][_0x254c5d(0x32e)](_0x6609f3[_0x254c5d(0x314)])}))})))[_0x254c5d(0x1f6)](_0x391e63=>{const _0x2f2c56=_0x254c5d;if(this[_0x2f2c56(0x31c)](),_0x391e63){const {skeleton:_0x34da4f,cursors:_0x10c3b8}=_0x391e63;this['_updateCollabCursors'](_0x34da4f,_0x10c3b8);}})),this['_initResize'](),this[_0x254c5d(0x34f)]();}[_0x279361(0x179)](_0x19844f,_0x2efa4b){const _0x52bf8f=_0x279361,{scene:_0x183707,mainComponent:_0x27bea0}=this[_0x52bf8f(0x2f3)],_0x24e2f7=_0x2efa4b[_0x52bf8f(0x16a)](_0x1b4074=>new ot(_0x1b4074,_0x183707,_0x19844f,_0x27bea0));this[_0x52bf8f(0x17c)]=_0x24e2f7,this['_cursors']=_0x2efa4b;}[_0x279361(0x198)](){const _0x4be296=_0x279361;this[_0x4be296(0x31c)]();const {scene:_0x4e9b50,mainComponent:_0x3534b7}=this[_0x4be296(0x2f3)],_0xb329c5=this[_0x4be296(0x16e)][_0x4be296(0x1f1)](),_0x5bf543=this[_0x4be296(0x233)][_0x4be296(0x16a)](_0x149444=>new ot(_0x149444,_0x4e9b50,_0xb329c5,_0x3534b7));this['_cursorShapes']=_0x5bf543;}[_0x279361(0x31c)](){const _0x58c807=_0x279361;this['_cursorShapes'][_0x58c807(0x1a6)](_0x2c296d=>_0x2c296d['dispose']()),this[_0x58c807(0x17c)]=[];}[_0x279361(0x34f)](){const _0x3fb483=_0x279361,_0x1e0f71=[_0x1d8eb6['id']];this[_0x3fb483(0x285)](this[_0x3fb483(0x232)]['onCommandExecuted'](_0x525513=>{const _0x2772cc=_0x3fb483;_0x1e0f71['includes'](_0x525513['id'])&&_0x525513['params'][_0x2772cc(0x140)]===this[_0x2772cc(0x2f3)][_0x2772cc(0x140)]&&this[_0x2772cc(0x198)]();}));}[_0x279361(0x207)](){const _0x22b7a8=_0x279361;this['disposeWithMe'](_0x470ace(this[_0x22b7a8(0x2f3)]['engine'][_0x22b7a8(0x268)])[_0x22b7a8(0x34d)](_0x142e74(_0x34cb34=>_0x34cb34['type']===_0x167676['resize']),_0x449b52(0x10))[_0x22b7a8(0x1f6)](()=>{const _0x299dee=_0x22b7a8;this[_0x299dee(0x198)]();}));}};$e=Qi([ne(0x1,_0x349554(_0x40e4ab)),ne(0x2,_0x349554(Y)),ne(0x3,_0x28d9e9),ne(0x4,_0x349554(_0x5bf8fa))],$e);const qi=0x1,en=1.5;class tn extends _0x8d0ab{constructor(_0x49e97c,_0x3fdff9){const _0x42b6b6=_0x279361;super(_0x49e97c,_0x3fdff9),_(this,_0x42b6b6(0x370)),_(this,_0x42b6b6(0x1d1),!0x1),_(this,_0x42b6b6(0x2d9)),_(this,_0x42b6b6(0x215),''),_(this,'_labelPosition',_0x42b6b6(0x35c)),_(this,_0x42b6b6(0x182)),(_0x3fdff9&&this[_0x42b6b6(0x280)](_0x3fdff9),this[_0x42b6b6(0x161)][_0x42b6b6(0x2b4)](()=>this[_0x42b6b6(0x280)]({'hovered':!0x0})),this[_0x42b6b6(0x29c)][_0x42b6b6(0x2b4)](()=>this[_0x42b6b6(0x280)]({'hovered':!0x1})));}[_0x279361(0x280)](_0x53f93c){const _0x21422c=_0x279361;var _0x1a5b15,_0x1c9c83,_0x5b3932,_0x549b5e,_0x2abfd7,_0x4641e6;this[_0x21422c(0x370)]=(_0x1a5b15=_0x53f93c['color'])!=null?_0x1a5b15:this[_0x21422c(0x370)],this['_hovered']=(_0x1c9c83=_0x53f93c[_0x21422c(0x2a4)])!=null?_0x1c9c83:this['_hovered'],this['_range']=(_0x5b3932=_0x53f93c[_0x21422c(0x2be)])!=null?_0x5b3932:this[_0x21422c(0x2d9)],this['_name']=(_0x549b5e=_0x53f93c['name'])!=null?_0x549b5e:this[_0x21422c(0x215)],this[_0x21422c(0x1f8)]=(_0x2abfd7=_0x53f93c['labelPosition'])!=null?_0x2abfd7:this[_0x21422c(0x1f8)],this[_0x21422c(0x182)]=(_0x4641e6=_0x53f93c[_0x21422c(0x197)])!=null?_0x4641e6:this[_0x21422c(0x182)],this[_0x21422c(0x25e)]({'width':_0x53f93c[_0x21422c(0x29a)],'height':_0x53f93c['height']});}[_0x279361(0x33a)](_0x1cdc26){const _0x31417e=_0x279361,{row:_0x5e9b16,column:_0x5066eb}=_0x1cdc26;if(_0x5e9b16>=this[_0x31417e(0x2d9)][_0x31417e(0x310)]&&_0x5e9b16<=this['_range']['endRow']&&_0x5066eb>=this[_0x31417e(0x2d9)][_0x31417e(0x353)]&&_0x5066eb<=this[_0x31417e(0x2d9)][_0x31417e(0x27c)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x31417e(0x280)]({'hovered':!0x1});}['triggerDblclick'](_0x3c39dd){return!0x1;}['_draw'](_0x3159b8){const _0x4f9f15=_0x279361;_0x5beebc['drawWith'](_0x3159b8,{'width':this[_0x4f9f15(0x29a)],'height':this[_0x4f9f15(0x2df)],'strokeWidth':en,'stroke':this[_0x4f9f15(0x370)],'evented':!0x1,'fill':this[_0x4f9f15(0x182)]}),this[_0x4f9f15(0x1d1)]&&(_0x3159b8[_0x4f9f15(0x301)](),_0x3159b8[_0x4f9f15(0x320)](0x1,0x0,0x0,0x1,this['width'],this[_0x4f9f15(0x1f8)]===_0x4f9f15(0x1ee)?0x0:-q),Ie[_0x4f9f15(0x2cf)](_0x3159b8,{'text':this[_0x4f9f15(0x215)],'color':this[_0x4f9f15(0x370)]}),_0x3159b8[_0x4f9f15(0x30f)]());}}var sn=Object['getOwnPropertyDescriptor'],nn=(_0x122e3c,_0x178c8c,_0x51eee5,_0x5ce12c)=>{const _0x43c4a5=_0x279361;for(var _0x33e7e7=_0x5ce12c>0x1?void 0x0:_0x5ce12c?sn(_0x178c8c,_0x51eee5):_0x178c8c,_0x47e9c1=_0x122e3c[_0x43c4a5(0x35e)]-0x1,_0x507bd5;_0x47e9c1>=0x0;_0x47e9c1--)(_0x507bd5=_0x122e3c[_0x47e9c1])&&(_0x33e7e7=_0x507bd5(_0x33e7e7)||_0x33e7e7);return _0x33e7e7;},Re=(_0x52091f,_0x499f51)=>(_0x7d1545,_0xd7c10f)=>_0x499f51(_0x7d1545,_0xd7c10f,_0x52091f);const rn=0x1389;let xe=class extends _0x46d041{constructor(_0x31f7df,_0x50575e,_0xdbce14,_0xba7fca){const _0x2c643f=_0x279361;super(),_(this,_0x2c643f(0x233),new Set()),_(this,_0x2c643f(0x2e0),null),(this[_0x2c643f(0x2f3)]=_0x31f7df,this[_0x2c643f(0x1e8)]=_0x50575e,this[_0x2c643f(0x1b1)]=_0xdbce14,this[_0x2c643f(0x21f)]=_0xba7fca,this[_0x2c643f(0x275)]());}[_0x279361(0x275)](){const _0x4b9e7=_0x279361;this[_0x4b9e7(0x1e8)]['currentSkeleton$'][_0x4b9e7(0x34d)](_0xc3d5cb(this[_0x4b9e7(0x337)]),_0x1e056c(_0x348a16=>{const _0x11d0f8=_0x4b9e7;if(_0x348a16){const _0x1d5805=_0x348a16['sheetId'];return _0x4310f5(this[_0x11d0f8(0x1b1)][_0x11d0f8(0x139)](this[_0x11d0f8(0x2f3)][_0x11d0f8(0x140)]),this[_0x11d0f8(0x21f)][_0x11d0f8(0x13a)])[_0x11d0f8(0x34d)](_0x457ae1(([_0x2449e6,_0x2d3040])=>{const _0x4164bd=_0x11d0f8,_0x2876da=new Map();return _0x2449e6[_0x4164bd(0x1a6)]((_0x465787,_0xaf0b3a)=>{const _0x582a2b=_0x4164bd;if(_0x465787[_0x582a2b(0x1fa)]===_0x1d5805){const _0x5a859a={..._0x465787};_0x5a859a[_0x582a2b(0x314)]=this['_themeService'][_0x582a2b(0x32e)](_0x465787[_0x582a2b(0x314)]),_0x2876da[_0x582a2b(0x357)](_0xaf0b3a,_0x5a859a);}}),{'skeleton':_0x348a16,'cursors':_0x2876da};}));}return _0x472e19({'skeleton':null,'cursors':new Map()});}))[_0x4b9e7(0x1f6)](({skeleton:_0x4f0464,cursors:_0x42a903})=>{const _0x4ccc40=_0x4b9e7;this[_0x4ccc40(0x31c)](),_0x4f0464&&this[_0x4ccc40(0x179)](_0x4f0464,_0x42a903);}),this[_0x4b9e7(0x1e8)][_0x4b9e7(0x284)][_0x4b9e7(0x1f6)](_0x467757=>{const _0x23be3b=_0x4b9e7;if(_0x467757==null)return;const {skeleton:_0x3a633a}=_0x467757,{scene:_0x189174}=this['_context'];_0x189174[_0x23be3b(0x14f)][_0x23be3b(0x2b4)](_0x22d40a(_0x2cd578=>{const _0x29dcba=_0x23be3b;var _0x180057,_0x48172b;const {offsetX:_0x20c091,offsetY:_0x548b7f}=_0x2cd578,{x:_0xf8efe6,y:_0xa59f88}=_0x189174[_0x29dcba(0x283)](_0x5abf10[_0x29dcba(0x2aa)]([_0x20c091,_0x548b7f])),{scaleX:_0x529553,scaleY:_0x50ccb7}=_0x189174['getAncestorScale'](),_0x1a0cb8=_0x189174[_0x29dcba(0x1cd)](_0x42cb58[_0x29dcba(0x19b)]),_0x2fb264=_0x189174[_0x29dcba(0x149)](_0x5abf10[_0x29dcba(0x2aa)]([_0xf8efe6,_0xa59f88]),_0x1a0cb8),_0x269d68=_0x3a633a[_0x29dcba(0x34c)](_0x20c091,_0x548b7f,_0x529553,_0x50ccb7,_0x2fb264);((_0x180057=this['_lastPointer'])==null?void 0x0:_0x180057['column'])===_0x269d68[_0x29dcba(0x365)]&&((_0x48172b=this[_0x29dcba(0x2e0)])==null?void 0x0:_0x48172b[_0x29dcba(0x2cb)])===_0x269d68['row']||this[_0x29dcba(0x233)][_0x29dcba(0x1a6)](_0x362162=>{_0x362162['onMouseMove'](_0x269d68);});},0x64));});}[_0x279361(0x179)](_0x4b9ec0,_0x453041){const _0x9e64bc=_0x279361;var _0x30bc68;const _0x3361b3=(_0x30bc68=this[_0x9e64bc(0x1e8)][_0x9e64bc(0x342)]())==null?void 0x0:_0x30bc68['skeleton'];if(!_0x3361b3)return;const _0x15ffcf=this[_0x9e64bc(0x147)]();if(!_0x15ffcf)return;this[_0x9e64bc(0x233)][_0x9e64bc(0x1a6)](_0x20eaf1=>{const _0x4ca479=_0x9e64bc;_0x20eaf1[_0x4ca479(0x1ca)]();});const {scene:_0x4c15a5}=_0x15ffcf,_0x584029=on(Array[_0x9e64bc(0x23a)](_0x453041[_0x9e64bc(0x244)]()))[_0x9e64bc(0x16a)](_0x164d0c=>{const _0x48ce9a=_0x9e64bc,{color:_0x308eff,range:_0x401cc0,name:_0x2e5043,selection:_0x2fea85,sheetID:_0x36e7aa}=_0x164d0c,{startColumn:_0x43762f,startRow:_0x206556,endColumn:_0x2e3802,endRow:_0x159fce}=_0x401cc0,_0x33734d=_0xdccc3d(_0x206556,_0x43762f,_0x4c15a5,_0x3361b3),_0x317cad=_0xdccc3d(_0x159fce,_0x2e3802,_0x4c15a5,_0x3361b3),{columnHeaderHeightAndMarginTop:_0x4836a6}=_0x3361b3,{startX:_0x352dc1,startY:_0x2f3116}=_0x33734d,{endX:_0x589c5e,endY:_0x463dba}=_0x317cad,_0x522054=_0x589c5e-_0x352dc1,_0x54af75=_0x463dba-_0x2f3116,_0x2e9df6={'labelPosition':_0x2f3116-_0x4836a6>=q?_0x48ce9a(0x35c):_0x48ce9a(0x1ee),'sheetID':_0x36e7aa,'range':_0x401cc0,'color':_0x308eff,'name':_0x2e5043,'selection':_0x2fea85,'left':_0x352dc1,'top':_0x2f3116,'width':_0x522054,'height':_0x54af75,'evented':!0x1,'zIndex':rn};return new tn(_0x2e5043,_0x2e9df6);});_0x4c15a5[_0x9e64bc(0x15a)](_0x584029,qi),this[_0x9e64bc(0x233)]=new Set(_0x584029);}['_removeCollabCursors'](){const _0x5f3b82=_0x279361;var _0x426d49;(_0x426d49=this['_cursors'])==null||_0x426d49[_0x5f3b82(0x1a6)](_0x543678=>_0x543678['dispose']());}['_getSheetObject'](){const _0x557a0b=_0x279361;return _0x18a982(this['_context'][_0x557a0b(0x14d)],this[_0x557a0b(0x2f3)]);}};xe=nn([Re(0x1,_0x349554(_0x17a6cb)),Re(0x2,_0x349554(Y)),Re(0x3,_0x349554(_0x5bf8fa))],xe);function on(_0x549936){const _0x55133d=_0x279361,_0x548123=new Map();return _0x549936[_0x55133d(0x1a6)](_0x20832e=>{const _0x2ba3c2=_0x55133d;if(_0x548123[_0x2ba3c2(0x30e)](_0x20832e[_0x2ba3c2(0x201)])){const _0x3d82c6=_0x548123[_0x2ba3c2(0x225)](_0x20832e[_0x2ba3c2(0x201)]);_0x3d82c6[_0x2ba3c2(0x371)]+=',\x20'+_0x20832e[_0x2ba3c2(0x371)];}else _0x548123[_0x2ba3c2(0x357)](_0x20832e[_0x2ba3c2(0x201)],_0x20832e);}),Array[_0x55133d(0x23a)](_0x548123[_0x55133d(0x244)]());}var an=Object[_0x279361(0x1ec)],cn=(_0x431a81,_0x4339ef,_0x535b64,_0xe17581)=>{const _0x387661=_0x279361;for(var _0x151477=_0xe17581>0x1?void 0x0:_0xe17581?an(_0x4339ef,_0x535b64):_0x4339ef,_0x1b5562=_0x431a81[_0x387661(0x35e)]-0x1,_0x177619;_0x1b5562>=0x0;_0x1b5562--)(_0x177619=_0x431a81[_0x1b5562])&&(_0x151477=_0x177619(_0x151477)||_0x151477);return _0x151477;},k=(_0x513305,_0x33aad7)=>(_0x40621e,_0x20962f)=>_0x33aad7(_0x40621e,_0x20962f,_0x513305);let le=class extends _0x2972bb{constructor(_0x197e92,_0x9a219b,_0x19a38d,_0x23a949,_0x15e02c,_0x1943e4){const _0x18421e=_0x279361;super(),this[_0x18421e(0x2cc)]=_0x197e92,this[_0x18421e(0x150)]=_0x9a219b,this[_0x18421e(0x325)]=_0x19a38d,this[_0x18421e(0x386)]=_0x23a949,this[_0x18421e(0x277)]=_0x15e02c,this[_0x18421e(0x26f)]=_0x1943e4,this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x279361(0x255)](){const _0x15fccd=_0x279361;this[_0x15fccd(0x285)](this[_0x15fccd(0x2cc)][_0x15fccd(0x27b)](()=>{const _0x24c55d=_0x15fccd;if(this[_0x24c55d(0x150)][_0x24c55d(0x33e)][_0x24c55d(0x1c4)])return this[_0x24c55d(0x26f)]['t'](_0x24c55d(0x1ac));}));}['_initEvent'](){const _0xa1ec3f=_0x279361;this['disposeWithMe'](this[_0xa1ec3f(0x325)][_0xa1ec3f(0x2d3)][_0xa1ec3f(0x1f6)](_0x54fba3=>{const _0x4483d8=_0xa1ec3f;_0x54fba3['id']===_0x48a9b0[_0x4483d8(0x339)]&&this[_0x4483d8(0x386)]['show']({'type':_0x41554e[_0x4483d8(0x148)],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x54fba3['id']===_0x48a9b0[_0x4483d8(0x269)]&&this[_0x4483d8(0x386)][_0x4483d8(0x1b4)]({'type':_0x41554e[_0x4483d8(0x148)],'content':this['_localeService']['t'](_0x4483d8(0x2a2))}),_0x54fba3['id']===_0x48a9b0[_0x4483d8(0x2bd)]&&this[_0x4483d8(0x277)][_0x4483d8(0x1b4)]({'title':this[_0x4483d8(0x26f)]['t']('permission.title'),'content':this['_localeService']['t'](_0x4483d8(0x30b)),'type':_0x4483d8(0x21b),'duration':0x0}),_0x54fba3['id']===_0x48a9b0[_0x4483d8(0x302)]&&this[_0x4483d8(0x386)]['show']({'type':_0x41554e[_0x4483d8(0x1aa)],'content':this[_0x4483d8(0x26f)]['t']('collaboration.closeRoom')+'('+_0x54fba3['data']+')'}),_0x54fba3['id']===_0x48a9b0[_0x4483d8(0x2e4)]&&this['_messageService']['show']({'type':_0x41554e[_0x4483d8(0x148)],'content':this['_localeService']['t'](_0x54fba3[_0x4483d8(0x28a)]||'')}),_0x54fba3['id']===_0x48a9b0['SOCKET_FAILED_RETRY']&&this['_messageService']['show']({'type':_0x41554e[_0x4483d8(0x148)],'content':this[_0x4483d8(0x26f)]['t']('session.will-retry')}),_0x54fba3['id']===_0x48a9b0[_0x4483d8(0x27f)]&&this[_0x4483d8(0x386)][_0x4483d8(0x1b4)]({'type':_0x41554e['Error'],'content':this[_0x4483d8(0x26f)]['t'](_0x4483d8(0x30a))}),_0x54fba3['id']===_0x48a9b0['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x4483d8(0x386)][_0x4483d8(0x1b4)]({'type':_0x41554e[_0x4483d8(0x1aa)],'content':this[_0x4483d8(0x26f)]['t'](_0x4483d8(0x1bb))});}));}};le=cn([k(0x0,_0x310aab),k(0x1,_0x3b29b1),k(0x2,_0x349554(_0x5307c3)),k(0x3,_0x382ae3),k(0x4,_0x3a220c),k(0x5,_0x349554(_0x5852b4))],le);const ln=_0x279361(0x2fd),at={};var _n=Object[_0x279361(0x1ec)],hn=(_0x9bcb7a,_0x124b5a,_0x1c66e6,_0x11dcf7)=>{const _0x4c01bb=_0x279361;for(var _0x171b8e=_0x11dcf7>0x1?void 0x0:_0x11dcf7?_n(_0x124b5a,_0x1c66e6):_0x124b5a,_0x29c339=_0x9bcb7a[_0x4c01bb(0x35e)]-0x1,_0x388b17;_0x29c339>=0x0;_0x29c339--)(_0x388b17=_0x9bcb7a[_0x29c339])&&(_0x171b8e=_0x388b17(_0x171b8e)||_0x171b8e);return _0x171b8e;},ct=(_0x122508,_0x2974c9)=>(_0x3d6d8d,_0x4af94d)=>_0x2974c9(_0x3d6d8d,_0x4af94d,_0x122508);let _e=class{constructor(_0x1b305a,_0xc60ce0){const _0x4c538a=_0x279361;this['_transformService']=_0x1b305a,this[_0x4c538a(0x2e5)]=_0xc60ce0;}[_0x279361(0x1fb)](_0x14c433){const _0x20db52=_0x279361;this[_0x20db52(0x206)](_0x14c433),this['_transformPreviousActiveRange'](_0x14c433);}[_0x279361(0x1d2)](_0x53f9e8){const _0x24bdd0=_0x279361,{unitID:_0x5065ae}=_0x53f9e8,_0xd4e5a7=this['_renderManagerService']['getRenderById'](_0x5065ae)[_0x24bdd0(0x343)](_0x4f8931),{redoCache:_0x4d0007}=_0xd4e5a7[_0x24bdd0(0x2bf)]();if(_0x4d0007[_0x24bdd0(0x35e)]===0x0)return _0x53f9e8;let _0x1d81ef=_0x55b651[_0x24bdd0(0x17f)](_0x53f9e8[_0x24bdd0(0x344)][0x0]);for(let _0x3f3ff9=0x0;_0x3f3ff9<_0x4d0007[_0x24bdd0(0x35e)];_0x3f3ff9++){const _0x17aa92={'id':'doc.mutation.rich-text-editing','params':{..._0x4d0007[_0x3f3ff9]}},_0x381f27=this['_transformService'][_0x24bdd0(0x1bc)](_0x1d81ef,_0x17aa92,!0x1);if(_0x325207(_0x381f27))throw _0x381f27[_0x24bdd0(0x21b)];_0x1d81ef=_0x381f27['m1Prime'];}return{..._0x55b651['deepClone'](_0x53f9e8),'mutations':[_0x1d81ef]};}[_0x279361(0x206)](_0x5f3164){const _0xe929fc=_0x279361,{unitID:_0x74b68c}=_0x5f3164,_0x1d6281=this[_0xe929fc(0x2e5)][_0xe929fc(0x209)](_0x74b68c)['with'](_0x4f8931),{undoCache:_0x452ac0,redoCache:_0x1a4394}=_0x1d6281['getUndoRedoMutationParamsCache']();if(_0x452ac0[_0xe929fc(0x35e)]===0x0||_0x1a4394[_0xe929fc(0x35e)]===0x0)return;const _0x549275=[],_0x523fd8=[];let _0x37ed33=_0x55b651[_0xe929fc(0x17f)](_0x5f3164[_0xe929fc(0x344)][0x0]),_0xa86854=_0x55b651[_0xe929fc(0x17f)](_0x5f3164['mutations'][0x0]);for(let _0x586bf6=_0x452ac0['length']-0x1;_0x586bf6>=0x0;_0x586bf6--){const _0x512938={'id':_0xe929fc(0x2ab),'params':{..._0x452ac0[_0x586bf6]}},_0x496307={'id':_0xe929fc(0x2ab),'params':{..._0x1a4394[_0x586bf6]}},_0x19bc5f=this[_0xe929fc(0x192)]['transformMutation'](_0x37ed33,_0x512938,!0x1),_0x4859fd=this[_0xe929fc(0x192)][_0xe929fc(0x1bc)](_0xa86854,_0x496307,!0x1);if(_0x325207(_0x19bc5f))throw _0x19bc5f[_0xe929fc(0x21b)];if(_0x325207(_0x4859fd))throw _0x4859fd['error'];_0x549275['unshift'](_0x19bc5f['m2Prime'][_0xe929fc(0x141)]),_0x523fd8[_0xe929fc(0x373)](_0x4859fd['m2Prime'][_0xe929fc(0x141)]),_0x37ed33=_0x19bc5f[_0xe929fc(0x2d0)],_0xa86854=_0x4859fd[_0xe929fc(0x2d0)];}_0x1d6281[_0xe929fc(0x32a)]({'undoCache':_0x549275,'redoCache':_0x523fd8});}[_0x279361(0x36b)](_0x320c53){const _0x4608b2=_0x279361,{unitID:_0x3c02ee}=_0x320c53,_0x48bf71=this[_0x4608b2(0x2e5)][_0x4608b2(0x209)](_0x3c02ee)[_0x4608b2(0x343)](_0x4f8931),_0x2005b7=_0x48bf71[_0x4608b2(0x345)]();if(_0x2005b7==null)return;const _0x26636b=[{'id':_0x4608b2(0x2ab),'params':{'unitId':_0x320c53[_0x4608b2(0x2ea)],'actions':null,'textRanges':[_0x2005b7]}}],_0x96ecd9=this[_0x4608b2(0x192)][_0x4608b2(0x2eb)](_0x320c53,_0x26636b);if(!_0x1bca00(_0x96ecd9))throw _0x96ecd9[_0x4608b2(0x21b)];const _0x511523=_0x96ecd9[_0x4608b2(0x1b2)][0x0][_0x4608b2(0x141)][_0x4608b2(0x1d4)];Array[_0x4608b2(0x17d)](_0x511523)&&_0x511523[_0x4608b2(0x35e)]&&_0x48bf71[_0x4608b2(0x312)](_0x511523[0x0]);}};_e=hn([ct(0x0,_0x5aa3d9),ct(0x1,_0x3bda3f)],_e);var un=Object[_0x279361(0x1ec)],dn=(_0x15f3ad,_0x452269,_0x30593e,_0xe76fd)=>{const _0x3172c4=_0x279361;for(var _0x27564e=_0xe76fd>0x1?void 0x0:_0xe76fd?un(_0x452269,_0x30593e):_0x452269,_0x2c501b=_0x15f3ad[_0x3172c4(0x35e)]-0x1,_0x577102;_0x2c501b>=0x0;_0x2c501b--)(_0x577102=_0x15f3ad[_0x2c501b])&&(_0x27564e=_0x577102(_0x27564e)||_0x27564e);return _0x27564e;},De=(_0x59fa88,_0x19a95a)=>(_0x45088f,_0x3f8ecc)=>_0x19a95a(_0x45088f,_0x3f8ecc,_0x59fa88);let he=class{constructor(_0x3ca1d5,_0x5bd91f,_0x42ede7){const _0x40438b=_0x279361;this['_injector']=_0x3ca1d5,this[_0x40438b(0x192)]=_0x5bd91f,this['_docStateChangeManagerService']=_0x42ede7;}[_0x279361(0x158)](_0x4178f3){this['_transformHistoryAndStateStack'](_0x4178f3);}['transformRemoteChangeset'](_0x4ec1de){const _0xa4a94c=_0x279361,{unitID:_0x153c97}=_0x4ec1de,{collaboration:_0x1d8dc8}=this[_0xa4a94c(0x1a5)][_0xa4a94c(0x15d)](_0x153c97);if(_0x1d8dc8[_0xa4a94c(0x35e)]===0x0)return _0x4ec1de;let _0x1a054a=_0x55b651[_0xa4a94c(0x17f)](_0x4ec1de[_0xa4a94c(0x344)][0x0]);for(let _0x1e2982=0x0;_0x1e2982<_0x1d8dc8[_0xa4a94c(0x35e)];_0x1e2982++){const _0x1851c1={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1d8dc8[_0x1e2982]['unitId'],..._0x1d8dc8[_0x1e2982][_0xa4a94c(0x2c7)]}},_0x9c880=this['_transformService']['transformMutation'](_0x1a054a,_0x1851c1,!0x1);if(_0x325207(_0x9c880))throw _0x9c880['error'];_0x1a054a=_0x9c880[_0xa4a94c(0x2d0)];}return{..._0x55b651[_0xa4a94c(0x17f)](_0x4ec1de),'mutations':[_0x1a054a]};}[_0x279361(0x2ec)](_0x2b1d8f){const _0x535d61=_0x279361,{unitID:_0x17dfbd}=_0x2b1d8f,{history:_0x41fa4a,collaboration:_0x3c4be2}=this[_0x535d61(0x1a5)]['getStateCache'](_0x17dfbd);if(_0x41fa4a['length']===0x0&&_0x3c4be2['length']===0x0)return;const _0xd535d9=[],_0x4fef7b=[];let _0x17ed4f=_0x55b651[_0x535d61(0x17f)](_0x2b1d8f[_0x535d61(0x344)][0x0]),_0xd9ecdc=_0x55b651[_0x535d61(0x17f)](_0x2b1d8f[_0x535d61(0x344)][0x0]);for(let _0x171e11=_0x41fa4a[_0x535d61(0x35e)]-0x1;_0x171e11>=0x0;_0x171e11--){const _0x41d368={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x41fa4a[_0x171e11]['unitId'],..._0x41fa4a[_0x171e11][_0x535d61(0x219)]}},_0x3f7a10={'id':_0x535d61(0x2ab),'params':{'unitId':_0x41fa4a[_0x171e11][_0x535d61(0x140)],..._0x41fa4a[_0x171e11][_0x535d61(0x2c7)]}},_0x4495fa=this['_transformService'][_0x535d61(0x1bc)](_0x17ed4f,_0x41d368,!0x1),_0x428d9b=this[_0x535d61(0x192)][_0x535d61(0x1bc)](_0xd9ecdc,_0x3f7a10,!0x1);if(_0x325207(_0x4495fa))throw _0x4495fa['error'];if(_0x325207(_0x428d9b))throw _0x428d9b[_0x535d61(0x21b)];_0xd535d9[_0x535d61(0x373)]({..._0x41fa4a[_0x171e11],'undoState':_0x4495fa['m2Prime'][_0x535d61(0x141)],'redoState':_0x428d9b[_0x535d61(0x1b2)][_0x535d61(0x141)]}),_0x17ed4f=_0x4495fa[_0x535d61(0x2d0)],_0xd9ecdc=_0x428d9b[_0x535d61(0x2d0)];}_0x17ed4f=_0x55b651[_0x535d61(0x17f)](_0x2b1d8f[_0x535d61(0x344)][0x0]),_0xd9ecdc=_0x55b651[_0x535d61(0x17f)](_0x2b1d8f[_0x535d61(0x344)][0x0]);for(let _0x161499=_0x3c4be2[_0x535d61(0x35e)]-0x1;_0x161499>=0x0;_0x161499--){const _0x18bcbc={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3c4be2[_0x161499]['unitId'],..._0x3c4be2[_0x161499][_0x535d61(0x219)]}},_0x247acc={'id':_0x535d61(0x2ab),'params':{'unitId':_0x3c4be2[_0x161499]['unitId'],..._0x3c4be2[_0x161499][_0x535d61(0x2c7)]}},_0x42c952=this[_0x535d61(0x192)][_0x535d61(0x1bc)](_0x17ed4f,_0x18bcbc,!0x1),_0x27563a=this[_0x535d61(0x192)][_0x535d61(0x1bc)](_0xd9ecdc,_0x247acc,!0x1);if(_0x325207(_0x42c952))throw _0x42c952[_0x535d61(0x21b)];if(_0x325207(_0x27563a))throw _0x27563a[_0x535d61(0x21b)];_0x4fef7b[_0x535d61(0x373)]({..._0x3c4be2[_0x161499],'undoState':_0x42c952[_0x535d61(0x1b2)][_0x535d61(0x141)],'redoState':_0x27563a[_0x535d61(0x1b2)]['params']}),_0x17ed4f=_0x42c952['m1Prime'],_0xd9ecdc=_0x27563a[_0x535d61(0x2d0)];}this[_0x535d61(0x1a5)][_0x535d61(0x15b)](_0x17dfbd,{'history':_0xd535d9,'collaboration':_0x4fef7b});}};he=dn([De(0x0,_0x349554(_0x543124)),De(0x1,_0x5aa3d9),De(0x2,_0x349554(_0xedf1f6))],he);var fn=Object[_0x279361(0x1ec)],Sn=(_0x18a1fa,_0x15974a,_0x336d58,_0x3f05f5)=>{const _0xd95bc6=_0x279361;for(var _0x285896=_0x3f05f5>0x1?void 0x0:_0x3f05f5?fn(_0x15974a,_0x336d58):_0x15974a,_0x2aad51=_0x18a1fa[_0xd95bc6(0x35e)]-0x1,_0x44c551;_0x2aad51>=0x0;_0x2aad51--)(_0x44c551=_0x18a1fa[_0x2aad51])&&(_0x285896=_0x44c551(_0x285896)||_0x285896);return _0x285896;},lt=(_0x14d525,_0x16ada6)=>(_0x457e4b,_0x324be3)=>_0x16ada6(_0x457e4b,_0x324be3,_0x14d525);let ue=class{constructor(_0x5ac66a,_0x11b40f){const _0x39ce12=_0x279361;this[_0x39ce12(0x31b)]=_0x5ac66a,this[_0x39ce12(0x192)]=_0x11b40f;}['transformSelections'](_0x428ac2){const _0x1a74e0=_0x279361;var _0x3c0b4b;const _0x2ef18d=this[_0x1a74e0(0x31b)][_0x1a74e0(0x225)](_0x304158),_0x274c79=(_0x3c0b4b=_0x2ef18d[_0x1a74e0(0x227)]())!=null?_0x3c0b4b:[];if(_0x274c79[_0x1a74e0(0x35e)]===0x0)return;const _0x46f174=_0x428ac2[_0x1a74e0(0x2ea)],_0x464705=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x46f174,'actions':null,'textRanges':_0x274c79}}],_0x2c6778=this[_0x1a74e0(0x192)][_0x1a74e0(0x2eb)](_0x428ac2,_0x464705);if(!_0x1bca00(_0x2c6778))throw _0x2c6778[_0x1a74e0(0x21b)];const _0x5a4aa6=_0x2c6778[_0x1a74e0(0x1b2)][0x0]['params'][_0x1a74e0(0x1d4)];Array['isArray'](_0x5a4aa6)&&_0x5a4aa6[_0x1a74e0(0x35e)]&&_0x2ef18d[_0x1a74e0(0x163)](_0x5a4aa6,{'unitId':_0x46f174,'subUnitId':_0x46f174},!0x1);}};ue=Sn([lt(0x0,_0x349554(_0x543124)),lt(0x1,_0x5aa3d9)],ue);var mn=Object[_0x279361(0x1ec)],In=(_0x598500,_0x1554b1,_0x3d0b2f,_0x81bef6)=>{for(var _0xfc75fa=_0x81bef6>0x1?void 0x0:_0x81bef6?mn(_0x1554b1,_0x3d0b2f):_0x1554b1,_0x37e541=_0x598500['length']-0x1,_0x205cad;_0x37e541>=0x0;_0x37e541--)(_0x205cad=_0x598500[_0x37e541])&&(_0xfc75fa=_0x205cad(_0xfc75fa)||_0xfc75fa);return _0xfc75fa;},U=(_0x76904,_0x3d2c09)=>(_0x5d7da6,_0xf5e965)=>_0x3d2c09(_0x5d7da6,_0xf5e965,_0x76904);let de=class extends _0x2972bb{constructor(_0x1730f4,_0x43855c,_0x20c84c,_0x1160dc,_0x4ac710,_0x3304a3,_0x168985,_0x9323de){const _0xcd839a=_0x279361;super(),_(this,_0xcd839a(0x2ad),new _0x5ccbb2(_0x20f601[_0xcd839a(0x1de)])),(this['_docStateChangeManagerService']=_0x1730f4,this['_collaborationController']=_0x43855c,this[_0xcd839a(0x341)]=_0x20c84c,this[_0xcd839a(0x1a1)]=_0x1160dc,this[_0xcd839a(0x1e1)]=_0x4ac710,this[_0xcd839a(0x186)]=_0x3304a3,this['_messageService']=_0x168985,this[_0xcd839a(0x26f)]=_0x9323de,this[_0xcd839a(0x172)]());}[_0x279361(0x172)](){const _0x547f04=_0x279361;this[_0x547f04(0x285)](this[_0x547f04(0x2ac)]['entityInit$']['subscribe'](_0x15c9ab=>{const _0x37be94=_0x547f04,_0x5c83a2=this[_0x37be94(0x1a5)]['docStateChange$'][_0x37be94(0x1f6)](_0x267adc=>{const _0x2a6952=_0x37be94;if(_0x267adc==null)return;const {unitId:_0x46b4ca,redoState:_0x547bae,commandId:_0x19046c}=_0x267adc;if(_0x46b4ca!==_0x15c9ab[_0x2a6952(0x2ea)])return;const _0x1d9205={'id':_0x19046c,'type':_0x2d51ab[_0x2a6952(0x1c3)],'params':{'unitId':_0x46b4ca,'actions':_0x547bae[_0x2a6952(0x165)],'textRanges':null}};_0x15c9ab[_0x2a6952(0x2d8)](_0x1d9205);});if(_0x15c9ab[_0x37be94(0x285)](_0x5c83a2),_0x15c9ab instanceof _0x237a0f){const _0x5bd131={'onTransformIME':_0x439d9d=>this['_docTransformIMECacheService'][_0x37be94(0x1fb)](_0x439d9d),'onTransformState':_0x35d937=>this[_0x37be94(0x1a1)][_0x37be94(0x158)](_0x35d937),'onTransformSelections':_0x52b62a=>this[_0x37be94(0x1e1)][_0x37be94(0x1a4)](_0x52b62a),'onSyncEditingCollabCursor':_0x385c86=>this[_0x37be94(0x186)][_0x37be94(0x2e2)](_0x385c86),'onTransformRemoteChangesetByIMECache':_0x19e388=>this[_0x37be94(0x341)][_0x37be94(0x1d2)](_0x19e388),'onTransformRemoteChangesetByStateCache':_0x66761d=>this[_0x37be94(0x1a1)][_0x37be94(0x1d2)](_0x66761d)};_0x15c9ab[_0x37be94(0x315)](_0x5bd131);}}));}};de=In([U(0x0,_0x349554(_0xedf1f6)),U(0x1,_0x349554(_0x1c1280)),U(0x2,_0x349554(_e)),U(0x3,_0x349554(he)),U(0x4,_0x349554(ue)),U(0x5,_0x349554(Ke)),U(0x6,_0x382ae3),U(0x7,_0x349554(_0x5852b4))],de);var Q=(_0x4cfd7c=>(_0x4cfd7c[_0x4cfd7c[_0x279361(0x267)]=0x0]='UNDEFINED',_0x4cfd7c[_0x4cfd7c['OK']=0x1]='OK',_0x4cfd7c[_0x4cfd7c[_0x279361(0x384)]=0x2]=_0x279361(0x384),_0x4cfd7c[_0x4cfd7c[_0x279361(0x2bd)]=0x3]='PERMISSION_DENIED',_0x4cfd7c[_0x4cfd7c[_0x279361(0x24f)]=0x4]=_0x279361(0x24f),_0x4cfd7c[_0x4cfd7c['UNAUTHENTICATED']=0x5]=_0x279361(0x166),_0x4cfd7c[_0x4cfd7c[_0x279361(0x31e)]=0x6]=_0x279361(0x31e),_0x4cfd7c[_0x4cfd7c[_0x279361(0x1ab)]=0x7]='INVALID_ARGUMENT',_0x4cfd7c[_0x4cfd7c[_0x279361(0x2ce)]=0x8]=_0x279361(0x2ce),_0x4cfd7c[_0x4cfd7c[_0x279361(0x170)]=0x9]='COMPLETION_FINISHED',_0x4cfd7c[_0x4cfd7c[_0x279361(0x35d)]=0xa]=_0x279361(0x35d),_0x4cfd7c[_0x4cfd7c[_0x279361(0x1ce)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x4cfd7c[_0x4cfd7c['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x4cfd7c[_0x4cfd7c[_0x279361(0x194)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x4cfd7c[_0x4cfd7c[_0x279361(0x322)]=0xe]=_0x279361(0x322),_0x4cfd7c[_0x4cfd7c[_0x279361(0x167)]=0xf]=_0x279361(0x167),_0x4cfd7c[_0x4cfd7c[_0x279361(0x358)]=0x10]=_0x279361(0x358),_0x4cfd7c[_0x4cfd7c[_0x279361(0x20b)]=0x64]=_0x279361(0x20b),_0x4cfd7c[_0x4cfd7c[_0x279361(0x257)]=0x65]=_0x279361(0x257),_0x4cfd7c[_0x4cfd7c[_0x279361(0x146)]=0xc9]=_0x279361(0x146),_0x4cfd7c[_0x4cfd7c['USER_IS_ANONYMOUS']=0xca]=_0x279361(0x248),_0x4cfd7c[_0x4cfd7c[_0x279361(0x234)]=0x1389]=_0x279361(0x234),_0x4cfd7c[_0x4cfd7c[_0x279361(0x2f8)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x4cfd7c[_0x4cfd7c[_0x279361(0x327)]=0x1772]=_0x279361(0x327),_0x4cfd7c[_0x4cfd7c[_0x279361(0x27a)]=0x1773]=_0x279361(0x27a),_0x4cfd7c[_0x4cfd7c[_0x279361(0x37e)]=0x1b59]=_0x279361(0x37e),_0x4cfd7c[_0x4cfd7c['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x279361(0x1f3),_0x4cfd7c[_0x4cfd7c['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x4cfd7c[_0x4cfd7c[_0x279361(0x29e)]=0x1b5c]=_0x279361(0x29e),_0x4cfd7c[_0x4cfd7c[_0x279361(0x2f6)]=0x1b5d]=_0x279361(0x2f6),_0x4cfd7c[_0x4cfd7c[_0x279361(0x27d)]=0x1f41]=_0x279361(0x27d),_0x4cfd7c[_0x4cfd7c[_0x279361(0x1ad)]=0x2329]=_0x279361(0x1ad),_0x4cfd7c[_0x4cfd7c[_0x279361(0x2a0)]=0x232a]=_0x279361(0x2a0),_0x4cfd7c[_0x4cfd7c[_0x279361(0x16b)]=0x232b]=_0x279361(0x16b),_0x4cfd7c[_0x4cfd7c[_0x279361(0x26b)]=0x232c]=_0x279361(0x26b),_0x4cfd7c[_0x4cfd7c[_0x279361(0x2e3)]=0x232d]=_0x279361(0x2e3),_0x4cfd7c[_0x4cfd7c['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x4cfd7c[_0x4cfd7c['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x4cfd7c[_0x4cfd7c[_0x279361(0x31a)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x4cfd7c[_0x4cfd7c[_0x279361(0x319)]=0x2714]=_0x279361(0x319),_0x4cfd7c[_0x4cfd7c[_0x279361(0x294)]=0x271a]=_0x279361(0x294),_0x4cfd7c[_0x4cfd7c[_0x279361(0x175)]=0x271b]=_0x279361(0x175),_0x4cfd7c[_0x4cfd7c['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x279361(0x272),_0x4cfd7c[_0x4cfd7c[_0x279361(0x2f2)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x4cfd7c[_0x4cfd7c[_0x279361(0x18a)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x4cfd7c[_0x4cfd7c[_0x279361(0x2a1)]=0x271f]=_0x279361(0x2a1),_0x4cfd7c[_0x4cfd7c[_0x279361(0x338)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x4cfd7c[_0x4cfd7c['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x4cfd7c[_0x4cfd7c[_0x279361(0x2ca)]=0x2ee1]=_0x279361(0x2ca),_0x4cfd7c[_0x4cfd7c[_0x279361(0x19a)]=0x2ee2]=_0x279361(0x19a),_0x4cfd7c[_0x4cfd7c[_0x279361(0x37f)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x4cfd7c[_0x4cfd7c[_0x279361(0x36c)]=0x2ee4]=_0x279361(0x36c),_0x4cfd7c[_0x4cfd7c['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x279361(0x331),_0x4cfd7c[_0x4cfd7c[_0x279361(0x288)]=0x32c9]=_0x279361(0x288),_0x4cfd7c[_0x4cfd7c[_0x279361(0x28d)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x4cfd7c[_0x4cfd7c['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x279361(0x35f),_0x4cfd7c[_0x4cfd7c[_0x279361(0x204)]=0x36b1]=_0x279361(0x204),_0x4cfd7c[_0x4cfd7c[_0x279361(0x2ba)]=0x36b2]=_0x279361(0x2ba),_0x4cfd7c[_0x4cfd7c[_0x279361(0x270)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x4cfd7c[_0x4cfd7c[_0x279361(0x1b3)]=0x36b4]=_0x279361(0x1b3),_0x4cfd7c[_0x4cfd7c['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x279361(0x349),_0x4cfd7c[_0x4cfd7c[_0x279361(0x218)]=0x3716]=_0x279361(0x218),_0x4cfd7c[_0x4cfd7c[_0x279361(0x1f9)]=0x37dd]=_0x279361(0x1f9),_0x4cfd7c[_0x4cfd7c[_0x279361(0x22c)]=0x3a99]=_0x279361(0x22c),_0x4cfd7c[_0x4cfd7c[_0x279361(0x313)]=0x3a9a]=_0x279361(0x313),_0x4cfd7c[_0x4cfd7c['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x279361(0x239),_0x4cfd7c[_0x4cfd7c[_0x279361(0x31f)]=0x3a9c]=_0x279361(0x31f),_0x4cfd7c[_0x4cfd7c[_0x279361(0x240)]=0x3a9d]=_0x279361(0x240),_0x4cfd7c[_0x4cfd7c['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x279361(0x176),_0x4cfd7c[_0x4cfd7c['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x4cfd7c[_0x4cfd7c['UNRECOGNIZED']=-0x1]=_0x279361(0x247),_0x4cfd7c))(Q||{});function gn(_0x2585ec){const _0x4da53f=_0x279361;var _0x2e7387,_0x10e1d8;const _0x149e70=(_0x2e7387=_0x2585ec[_0x4da53f(0x25c)])==null?void 0x0:_0x2e7387[_0x4da53f(0x210)],_0x24bf2e=((_0x10e1d8=_0x2585ec[_0x4da53f(0x25c)])==null?void 0x0:_0x10e1d8[_0x4da53f(0x222)])||0x0;return _0x149e70===_0x16e445[_0x4da53f(0x2b5)]&&_0x24bf2e>0x0;}function vn(_0x497a3d){const _0x3381c5=_0x279361;return _0x497a3d['functionsExecutedState']===_0x24f9e0[_0x3381c5(0x183)];}var En=Object[_0x279361(0x1ec)],pn=(_0x2f2ada,_0x5efd40,_0x4cdfa7,_0x5f1afd)=>{const _0x491585=_0x279361;for(var _0x13f532=_0x5f1afd>0x1?void 0x0:_0x5f1afd?En(_0x5efd40,_0x4cdfa7):_0x5efd40,_0x44edce=_0x2f2ada[_0x491585(0x35e)]-0x1,_0x1fa41e;_0x44edce>=0x0;_0x44edce--)(_0x1fa41e=_0x2f2ada[_0x44edce])&&(_0x13f532=_0x1fa41e(_0x13f532)||_0x13f532);return _0x13f532;},w=(_0x47954e,_0x3aea54)=>(_0x50f857,_0x42578b)=>_0x3aea54(_0x50f857,_0x42578b,_0x47954e);function _0x46ed(){const _0x4d560a=['some','url(#on-line-icon_clip0_910_349)','href','makeDirty','collabCursorState$','replaceState','getViewport','MOBILE_VERIFY_CODE_MISMATCH','TEXT','hasOwnProperty','_hovered','transformRemoteChangeset','isEditing','textRanges','1740582yEFbtT','#FFF','_updateLocalCursor','_handleLeaveEvent','collabStatus.synced','_logService','body','call','_maxFormulaLimit','NOT_COLLAB','blue.400','PENDING','_docTransformSelectionsService','dispose','application/json','next','collab-client.tooltip.reconnect','_config','clearInterval','_sheetSkeletonManagerService','unsubscribe','svg','_startSheetCollabCursor','getOwnPropertyDescriptor','_selfUnitIDs','bottom','4964460JNQScW','_memberService','getSkeleton','getUnit','APPLY_NON_SEQUENTIAL_REVISION','getformulaLimitStatusUrl','createInstance','subscribe','beforeCommandExecuted','_labelPosition','ENTITLE_NEED_BILLING_ADDRESS','sheetID','transformIMECache','collabStatus.offline','collab-text-anchor-','_drawRectRange','entries','_draw','selection','releaseFormulaLimitUrl','_getScale','ENTITLE_CAN_NOT_BUY_LOWER_OTP','UniverIcon','_transformUndoRedoStack','_initResize','_send','getRenderById','DeleteRangeMoveLeftCommandId','CURRENT_STATUS_CANNOT_OPERATE','_getSaveTimeout','symbol','text','_toggleOnline','stage','getOwnPropertySymbols','collab-rect-range-','_taskIds','NO_OTHER_CLIENTS_EDITING','_name','children','stringify','ENTITLE_REPORT_LIMIT_EXCEED','undoState','sessionStatus$','error','clearTimeout','_onCursorDelete','exhaustSavingTask','_themeService','_scene','executionId','totalFormulasToCalculate','subUnitId','_unitOnClients','get','_cursor','getDocRanges','getUnitId','_roomMembers$','_drawTextRange','div','REDEMPTION_INVALID_CODE','_imageIoService','_showGuardMessage','getUniverSheetInstance','_render','roomMembers','_commandService','_cursors','CHANGESET_REVISION_CONFILICT','parseInt','1158434vYRqRF','min','collabStatus.notCollab','REDEMPTION_CODE_FULLY_REDEEMED','from','http://www.w3.org/2000/svg','removeParam','defs','_getSessionTicket','_shapes','REDEMPTION_USER_NOT_ELIGIBLE','_entityInit$','getParam','_releaseCalculationLimit','values','_ensureSubject','push','UNRECOGNIZED','USER_IS_ANONYMOUS','green.600','7QQIEhA','addClipboardHook','onStarting','setTimeout','startsWith','NOT_FOUND','delete','evenodd','_saveCache','loadOfflineData','on-line-icon','_setupBeforeClosingHandler','findNodePositionByCharIndex','ERROR_AGAIN','onCommandExecuted','toString','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','concat','stageInfo','_unitStatus','transformByState','/universer-api/license/formula/limit/status','white','tag','complete','getValue','_online','_setFormulaLimitStatus','_cachedData','UNDEFINED','onTransformChange$','CLOSE_ROOM','96569JpfhAS','LICENSE_EXPORT_SIZE_EXCEEDED','UNIVER_SHEET','fillRule','className','_localeService','ENTITLE_DUP_SUBSCRIPTION','M0\x200H16V16H0z','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_refRangeService','_initDependencies','_init','_univerInstanceService','_notificationService','string','Failed','ENSURE_SNAPSHOT_EXECUTION','registerBeforeClose','endColumn','CONNECTOR_DATA_TOO_LARGE','jiqing.500','SOCKET_FAILED','setShapeProps','includes','getConfig','getRelativeToViewportCoord','currentSkeleton$','disposeWithMe','/run/','_urlService','WECHAT_HAS_BEEN_BOUND','_anchor','data','searchParams','InsertRangeMoveRightCommandId','MOBILE_HAS_BEEN_BOUND','_session','colorChannel1','_checkAndWaitForCalculationPermission','ranges','on-line-icon_clip0_910_349','_collabSessionService','YUUMI_NO_CUBOID_FOR_QUESTION','selections','getMember','type','indexOf','limitInfo','width','Unknown\x20user','onPointerLeave$','random','APPLY_PERMISSION_DENIED','_heartbeatTimer','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','YUUMI_AI_RUN_FAILED','collaboration.closeRoom','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','hovered','_httpService','shift','_eventUnsubscribe','getCurrentSelections','location','FromArray','doc.mutation.rich-text-editing','_collaborationController','_status$','Loading','contains','_doCreateSocket','round','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','addEventListener','subscribeEvent','START_CALCULATION','ticket','_id','moveTo','registerRenderModule','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','0\x200\x2016\x2016','setInterval','PERMISSION_DENIED','range','getUndoRedoMutationParamsCache','idSuffix','defIds','collabStatus.conflict','setItem','assign','registerRefRange','saveImage','redoState','UPDATE_CURSOR','_startCalculationLimit','INVITE_CODE_HAS_BEEN_UES','row','_beforeCloseService','_getFormulaLimitStatus','TOO_MANY_REQUESTS','drawWith','m1Prime','endRow','DeleteRangeMoveUpCommandId','event$','xlink:href','univer-mr-2\x20univer-flex\x20univer-text-xl','_anchorDot','max','onLocalMutation','_range','sessionTicket','memberID','_startDocCollabCursor','2nYluVR','_revisionService','height','_lastPointer','storage','syncEditingCollabCursor','LICENSE_DISTRO_REJECTED','JOIN_ROOM_FAILED','_renderManagerService','post','_initStatusComponent','unload','getCollabEntity$','unitID','transformMutationsWithChangeset','_transformHistoryAndStateStack','assignAColorForMemberID','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','AWAITING_WITH_PENDING','runOnServer','trim','YUUMI_ALL_TABLES_IS_INVALID','_context','getSheetBySheetId','debug','APPLY_DUPLICATED','toRgbString','SNAPSHOT_INVALID_SNAPSHOT','invokeId','cursorInfo','_clearPolling','_handleHeartbeatEvent','collaboration-client-ui.config','_createSocketURL','parse','rgba(255,\x20255,\x20255,\x200.01)','save','CONFLICT','roomMembers$','Success','RemoveRowCommandId','getRangePointData','newValue','fill','_scheduleHeartbeat','session.connection-failed','permission.content','flatMap','executeCommand','has','restore','startRow','_syncEditingCollabCursorService','setActiveRange','REDEMPTION_CODE_INACTIVE','color','addHandlerCallback','find','ACTIVE_UNIT_EVENT_CHANNEL','startFormulaLimitUrl','YUUMI_SUBSCRIPTION_NOT_FOUND','YUUMI_RATE_OVER_LIMIT','_injector','_removeCollabCursors','8aZvhTA','ALREADY_EXISTS','REDEMPTION_CODE_NOT_STARTED','transform','history','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','eventID','replace','_collaborationUIEventService','search','SNAPSHOT_HAS_BEEN_REMOVED','_checkCalculationAvailable','split','setUndoRedoMutationParamsCache','2540lxFTSQ','_instanceService','_updateSubUnitFromURLParams','getColorFromTheme','getItem','_handleEvent','INVITE_CODE_ALREADY_BOUND','...','_setupSubUnitSync','_handleJoinEvent','1em','popstate','dispose$','YUUMI_CONNECTOR_URL_NOT_FOUND','OTHER_CLIENT_EDITING','onMouseMove','_scheduleClearOtherTimer','getCurrentRevOfUnit','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','saveTaskMap','_docSkeleton','_hover','_docTransformIMECacheService','getCurrent','with','mutations','getActiveRange','formula.calculation.started','_dataLoaderService','_hasFormulaInDirtyRanges','ENTITLE_CHAT_LIMIT_EXCEED','updateOfflineData','override','getCellPositionByOffset','pipe','asObservable','_initCommandExecutedListener','_colorAssignService','activeSheet$','4957736FzeCrw','startColumn','univerjs-icon\x20univerjs-icon-','_applyCommand','_onCursorUpdate','set','LOGIN_TOKEN_PROCESSING_FAILED','_toggleOffline','init','_uiPartsService','top','LOGIN_FAILED','length','EMAIL_HAS_BEEN_BOUND','hide','extend','all','getActiveSheet','fillStyle','column','_scheduleSaving','_drawAnchor','pushState','lineTo','beginPath','_transformPreviousActiveRange','USER_NOT_INVITED_CODE','collab-text-range-','HEADER_MENU','getCellMatrix','_color','name','_collabCursorState$','unshift','_colorIndex','_handleHover','displayName','runId','onRendered','font','_initStatusListener','subunit','purple.300','_saveTaskMap','APPLY_REJECT','INVITE_CODE_REQUIRED','getMergeData','collabStatus.fetchMiss','now','RECT','INTERNAL_ERROR','getUnhiddenWorksheets','_messageService','getMemberID','MoveRangeCommandId','arc','createSocket','getCollabCursors$','currentTheme$','_disabled','isActive','11985003NoYWod','getSheetId','measureText','unitId','params','icon','reconnect','_document','[RemoteUniscriptService]:\x20no\x20focused\x20unit','USER_NOT_FOUND','_getSheetObject','Warning','getVpScrollXYInfoByPosToVp','_registerDependencies','UNIVER_DOC','0\x200\x2017\x2016','unit','send','onPointerMove$','_localCacheService','dirtyRanges','setAlpha','collabStatus.syncing','uni.network.url-service','loadUnit','requireSession','_localStorageService','transformStateCache','_textBubble','addObjects','setStateCache','2244789jBjkEv','getStateCache','code','function','whenReady','onPointerEnter$','attrs','replaceDocRanges','_registerRenderDependencies','actions','UNAUTHENTICATED','AUTHORIZE_CODE_ILLEGAL','OnLineIcon','add','map','LICENSE_IMPORT_SIZE_EXCEEDED','off-line-icon_clip0_910_343','AWAITING','_docSkeletonManagerService','path','COMPLETION_FINISHED','_entities','_initEntityListener','_lastResponseTimestamp','addObject','YUUMI_ASYNCIO_CANCELLED','REDEMPTION_USER_REDEEM_TIMES_EXCEED','closePath','?taskId=','_updateCollabCursors','InsertColCommandId','getTypeOfUnitDisposed$','_cursorShapes','isArray','setParam','deepClone','yellow.400','currentColor','_backgroundColor','SUCCESS','status$','_hideTimer','_docSyncEditingCollabCursorService','/universer-api/license/formula/limit/done','_initCommandInterceptor','pluginName','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','disableLocalCache','getCurrentUnitForType','getTypeOfUnitAdded$','_updateURLWithCurrentState','InsertRangeMoveDownCommandId','fillText','getUnitStatus$','_transformService','setConfig','EMAIL_VERIFY_CODE_MISMATCH','_cursorInfo$','USERS_LEAVE','backgroundColor','_refreshCollabCursors','key','INVALID_INVITE_CODE','VIEW_MAIN','_clearOtherTimers','_getAnchorBounding','then','_configService','propertyIsEnumerable','_docTransformStateCacheService','imageSourceType','black','transformSelections','_docStateChangeManagerService','forEach','_pollingInterval','_assignedColors','_docClipboardService','Error','INVALID_ARGUMENT','collaboration-client.offline-data-not-saved','LICENSE_MAX_UNITS_EXCEEDED','_onRefRangeChange','saveOfflineData','urlChange$','_collabCursorController','m2Prime','PAYMENT_CHANNEL_NOT_SUPPORT','show','defineProperty','result','apply','enableLocalCache','_removeClearOtherTimer','clipPath','session.collaboration-timeout','transformMutation','_currentUsage','cursorInfo$','_getMergeRange','getAncestorScale','OTHER_CLIENTS_EDITING','getFocusedUnit','MUTATION','size','/universer-api/license/formula/limit/start','ONLINE'];_0x46ed=function(){return _0x4d560a;};return _0x46ed();}const On=_0x279361(0x25f),Tn=_0x279361(0x1c5),Cn=_0x279361(0x187);let fe=class extends _0x2972bb{constructor(_0x28e513,_0x5ddbba,_0x14afc3,_0x523655,_0x5d3ca7,_0x144744,_0x598a7a){const _0x33d4a1=_0x279361;super(),_(this,'_pollingInterval',null),_(this,'_maxFormulaLimit',0x0),_(this,_0x33d4a1(0x1bd),0x0),_(this,_0x33d4a1(0x213),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x33d4a1(0x386)]=_0x28e513,this[_0x33d4a1(0x232)]=_0x5ddbba,this['_configService']=_0x14afc3,this[_0x33d4a1(0x2a5)]=_0x523655,this[_0x33d4a1(0x276)]=_0x5d3ca7,this[_0x33d4a1(0x1da)]=_0x144744,this['_localeService']=_0x598a7a,this[_0x33d4a1(0x188)]());}[_0x279361(0x188)](){const _0x5c5897=_0x279361;this['disposeWithMe'](this['_commandService'][_0x5c5897(0x1f7)]((_0x17f686,_0x2f8c7b)=>{const _0x1e54f6=_0x5c5897;if(_0x17f686['id']!==_0x45c15a['id'])return;const _0xa4a8ce=_0x17f686[_0x1e54f6(0x141)];if(!this['_hasFormulaInDirtyRanges'](_0xa4a8ce[_0x1e54f6(0x151)]))return;if(!this[_0x1e54f6(0x328)]())throw this[_0x1e54f6(0x290)](_0x17f686,_0x2f8c7b),this['_showGuardMessage'](),new _0x4ccc82();})),this[_0x5c5897(0x285)](this[_0x5c5897(0x232)]['onCommandExecuted']((_0x4c0cdc,_0x49587c)=>{const _0x48a21e=_0x5c5897;if(_0x4c0cdc['id']!==_0x49e7c7['id'])return;const _0x57da47=_0x4c0cdc[_0x48a21e(0x141)];if(gn(_0x57da47)){const _0x18beaf=_0x1667d1();this[_0x48a21e(0x213)][_0x48a21e(0x246)](_0x18beaf),this['_startCalculationLimit'](_0x18beaf);}else{if(vn(_0x57da47)&&this[_0x48a21e(0x213)][_0x48a21e(0x35e)]>0x0){const _0xfab00e=this[_0x48a21e(0x213)][_0x48a21e(0x2a6)]();this[_0x48a21e(0x243)](_0xfab00e);}}}));}[_0x279361(0x1e2)](){const _0x31d3f5=_0x279361;super[_0x31d3f5(0x1e2)](),this[_0x31d3f5(0x2fb)](),this[_0x31d3f5(0x213)]=[],this[_0x31d3f5(0x1bd)]=0x0,this[_0x31d3f5(0x1dd)]=0x0,this[_0x31d3f5(0x173)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x1c4f0d,_0x39db12){const _0x2c3a86=_0x279361;for(let _0x3059cb=0x0;_0x3059cb<0x1e;_0x3059cb++)try{if(await this[_0x2c3a86(0x2cd)](),this[_0x2c3a86(0x328)]()){this[_0x2c3a86(0x355)](_0x1c4f0d,_0x39db12),this[_0x2c3a86(0x386)]['show']({'content':this[_0x2c3a86(0x26f)]['t'](_0x2c3a86(0x346)),'type':_0x41554e[_0x2c3a86(0x304)]});return;}await new Promise(_0x2c4462=>{const _0x4e2ff0=_0x2c3a86;this[_0x4e2ff0(0x1a7)]=window[_0x4e2ff0(0x24d)](_0x2c4462,0x3e8);});}catch(_0xe9dee0){this[_0x2c3a86(0x1da)]['error'](_0xe9dee0);}this[_0x2c3a86(0x386)][_0x2c3a86(0x1b4)]({'content':this[_0x2c3a86(0x26f)]['t']('formula.calculation.unable'),'type':_0x41554e[_0x2c3a86(0x1aa)]});}[_0x279361(0x355)](_0x1b6405,_0x5cb7ff){const _0x59f949=_0x279361;try{this[_0x59f949(0x232)][_0x59f949(0x30d)](_0x1b6405['id'],_0x1b6405[_0x59f949(0x141)],_0x5cb7ff);}catch(_0xca159f){this[_0x59f949(0x1da)][_0x59f949(0x21b)](_0xca159f);}}[_0x279361(0x265)](_0x382217,_0x841bf0){const _0x5d45c8=_0x279361;_0x841bf0<this['_lastResponseTimestamp']||(this['_lastResponseTimestamp']=_0x841bf0,this[_0x5d45c8(0x1dd)]=Number['parseInt'](_0x382217['maxFormulaLimit']),this[_0x5d45c8(0x1bd)]=Number[_0x5d45c8(0x235)](_0x382217['currentUsage']));}async[_0x279361(0x2c9)](_0x1f1bfd){const _0x344a91=_0x279361;var _0x42935b,_0x321efc;const _0x263817=Date[_0x344a91(0x382)]();try{const _0x395008=((_0x42935b=this['_configService'][_0x344a91(0x282)](_0x15a639))==null?void 0x0:_0x42935b[_0x344a91(0x318)])||Tn,_0x5a643b=(await this[_0x344a91(0x2a5)][_0x344a91(0x2e6)](_0x395008,{'body':JSON[_0x344a91(0x217)]({'taskId':_0x1f1bfd})}))[_0x344a91(0x1db)];if(((_0x321efc=_0x5a643b['error'])==null?void 0x0:_0x321efc[_0x344a91(0x15e)])!==Q['OK'])return;this[_0x344a91(0x265)](_0x5a643b[_0x344a91(0x299)],_0x263817);}catch(_0x2a70a9){this[_0x344a91(0x1da)]['error'](_0x2a70a9);}}async[_0x279361(0x2cd)](_0x29990d){const _0x5d6e50=_0x279361;var _0x3cff26,_0x5e5004;const _0x2389a6=Date[_0x5d6e50(0x382)]();try{const _0x3f52fc=((_0x3cff26=this[_0x5d6e50(0x19f)][_0x5d6e50(0x282)](_0x15a639))==null?void 0x0:_0x3cff26[_0x5d6e50(0x1f4)])||On,_0x369956=_0x29990d?_0x3f52fc+_0x5d6e50(0x178)+encodeURIComponent(_0x29990d):_0x3f52fc,_0x528d96=(await this['_httpService'][_0x5d6e50(0x225)](_0x369956))['body'];if(((_0x5e5004=_0x528d96['error'])==null?void 0x0:_0x5e5004[_0x5d6e50(0x15e)])!==Q['OK'])return;this[_0x5d6e50(0x265)](_0x528d96[_0x5d6e50(0x299)],_0x2389a6);}catch(_0x31b380){this[_0x5d6e50(0x1da)][_0x5d6e50(0x21b)](_0x31b380);}}async[_0x279361(0x243)](_0x38f62a){const _0x15e711=_0x279361;var _0x54b389,_0x25a6d2;const _0x1b3705=Date['now']();try{const _0x3891ff=((_0x54b389=this[_0x15e711(0x19f)]['getConfig'](_0x15a639))==null?void 0x0:_0x54b389[_0x15e711(0x202)])||Cn,_0x29505d=(await this[_0x15e711(0x2a5)][_0x15e711(0x2e6)](_0x3891ff,{'body':JSON['stringify']({'taskId':_0x38f62a})}))[_0x15e711(0x1db)];if(((_0x25a6d2=_0x29505d[_0x15e711(0x21b)])==null?void 0x0:_0x25a6d2['code'])!==Q['OK'])return;this[_0x15e711(0x265)](_0x29505d[_0x15e711(0x299)],_0x1b3705);}catch(_0x2fc2b4){this[_0x15e711(0x1da)][_0x15e711(0x21b)](_0x2fc2b4);}}['_checkCalculationAvailable'](){const _0x24cc88=_0x279361;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x24cc88(0x1dd)]-this[_0x24cc88(0x1bd)]>0x0;}[_0x279361(0x2fb)](){const _0x15829e=_0x279361;this[_0x15829e(0x1a7)]&&(clearTimeout(this[_0x15829e(0x1a7)]),this[_0x15829e(0x1a7)]=null);}[_0x279361(0x22e)](){const _0x11990d=_0x279361;this['_messageService']['show']({'content':this['_localeService']['t']('formula.calculation.waiting'),'type':_0x41554e[_0x11990d(0x2ae)]});}[_0x279361(0x348)](_0x1ed21d){const _0x56643a=_0x279361;for(const _0x3b1c5e of _0x1ed21d){const {unitId:_0x51bfc8,sheetId:_0x1a1aff,range:_0x33e84f}=_0x3b1c5e,_0x338376=this[_0x56643a(0x276)][_0x56643a(0x1f2)](_0x51bfc8);if(!_0x338376)continue;const _0x3ec094=_0x338376['getSheetBySheetId'](_0x1a1aff);if(!_0x3ec094)continue;const _0x4da635=_0x3ec094[_0x56643a(0x36f)]();for(let _0x2af0e8=_0x33e84f['startRow'];_0x2af0e8<=_0x33e84f[_0x56643a(0x2d1)];_0x2af0e8++)for(let _0x148dac=_0x33e84f[_0x56643a(0x353)];_0x148dac<=_0x33e84f[_0x56643a(0x27c)];_0x148dac++){const _0x59c561=_0x4da635[_0x56643a(0x263)](_0x2af0e8,_0x148dac);if(_0x59c561&&(_0x54db1c(_0x59c561['f'])||_0x320189(_0x59c561['si'])))return!0x0;}}return!0x1;}};fe=pn([w(0x0,_0x349554(_0x382ae3)),w(0x1,_0x28d9e9),w(0x2,_0x3b186e),w(0x3,_0x349554(_0x4be316)),w(0x4,_0x56b693),w(0x5,_0x525e85),w(0x6,_0x349554(_0x5852b4))],fe);var Rn=Object[_0x279361(0x1ec)],Dn=(_0x346234,_0x5c3766,_0x30152b,_0x2966f5)=>{const _0x25fc6c=_0x279361;for(var _0x539985=_0x2966f5>0x1?void 0x0:_0x2966f5?Rn(_0x5c3766,_0x30152b):_0x5c3766,_0x3c7eb7=_0x346234[_0x25fc6c(0x35e)]-0x1,_0x226ae5;_0x3c7eb7>=0x0;_0x3c7eb7--)(_0x226ae5=_0x346234[_0x3c7eb7])&&(_0x539985=_0x226ae5(_0x539985)||_0x539985);return _0x539985;},be=(_0x5740ef,_0x1c232a)=>(_0x3d648d,_0x4a3a88)=>_0x1c232a(_0x3d648d,_0x4a3a88,_0x5740ef);let Be=class extends _0x2972bb{constructor(_0x1bc43a,_0x17ad62,_0x1e852a){const _0x1c3e48=_0x279361;super(),_(this,'_cachedData',new Map()),_(this,_0x1c3e48(0x37d),new Map()),_(this,_0x1c3e48(0x13b),!0x1),(this['_configService']=_0x1bc43a,this['_localStorageService']=_0x17ad62,this[_0x1c3e48(0x2de)]=_0x1e852a);}[_0x279361(0x18b)](){const _0x416014=_0x279361;this[_0x416014(0x13b)]=!0x0;}[_0x279361(0x1b8)](){const _0x4935c4=_0x279361;this[_0x4935c4(0x13b)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x279361(0x1e2)](){const _0x48584e=_0x279361;this[_0x48584e(0x21e)]()[_0x48584e(0x19e)](()=>super[_0x48584e(0x1e2)]());}async[_0x279361(0x253)](_0x2b47a9){const _0x55f304=_0x279361;return this['_disabled']?null:this[_0x55f304(0x157)][_0x55f304(0x32f)](_0x5e73e3(_0x2b47a9));}async[_0x279361(0x1af)](_0x3588c5,_0x4a686c){const _0xeb4224=_0x279361;return!!this[_0xeb4224(0x157)]['setItem'](_0x3588c5,_0x4a686c);}[_0x279361(0x34a)](_0x4d10d9,_0x18e2a9,_0x3d1a4b,_0x96f646){const _0x338a55=_0x279361,_0x3e5305=this[_0x338a55(0x2de)][_0x338a55(0x33c)](_0x4d10d9);this[_0x338a55(0x266)][_0x338a55(0x357)](_0x4d10d9,{'unitID':_0x4d10d9,'type':_0x18e2a9,'awaitingChangeset':_0x3d1a4b,'mutations':_0x96f646,'rev':_0x3e5305}),this[_0x338a55(0x37d)][_0x338a55(0x30e)](_0x4d10d9)||this['_scheduleSaving'](_0x4d10d9);}[_0x279361(0x366)](_0x359743){const _0x1160e8=_0x279361,_0x425c94=this[_0x1160e8(0x20c)]();_0x425c94===0x0?this[_0x1160e8(0x252)](_0x359743):this[_0x1160e8(0x37d)][_0x1160e8(0x357)](_0x359743,setTimeout(()=>this[_0x1160e8(0x252)](_0x359743),_0x425c94));}['_getSaveTimeout'](){const _0x4aed92=_0x279361;var _0x1be355;return(_0x1be355=this[_0x4aed92(0x19f)][_0x4aed92(0x282)](_0x451d1f))!=null?_0x1be355:_0x4b0503;}[_0x279361(0x252)](_0x22d965){const _0x59e6db=_0x279361,_0x3be692=this['_saveTaskMap'][_0x59e6db(0x225)](_0x22d965);return _0x3be692!==void 0x0&&window[_0x59e6db(0x21c)](_0x3be692),this[_0x59e6db(0x157)]['setItem'](_0x5e73e3(_0x22d965),this['_cachedData']['get'](_0x22d965))[_0x59e6db(0x19e)](()=>this[_0x59e6db(0x37d)][_0x59e6db(0x250)](_0x22d965));}async['exhaustSavingTask'](){const _0x3ee0c0=_0x279361,_0x50b35f=[];this[_0x3ee0c0(0x37d)][_0x3ee0c0(0x1a6)]((_0xbda23f,_0x11440f)=>{const _0x2b4b56=_0x3ee0c0;window[_0x2b4b56(0x21c)](_0xbda23f),_0x50b35f[_0x2b4b56(0x246)](this[_0x2b4b56(0x252)](_0x11440f)[_0x2b4b56(0x19e)](()=>{const _0x550fe3=_0x2b4b56;this[_0x550fe3(0x37d)][_0x550fe3(0x250)](_0x11440f);}));}),await Promise[_0x3ee0c0(0x362)](_0x50b35f);}};Be=Dn([be(0x0,_0x3b186e),be(0x1,_0x47a719),be(0x2,_0x349554(_0x2816b1))],Be);class bn extends _0x46d041{constructor(){const _0xc15ba=_0x279361;super(),_(this,_0xc15ba(0x1b0)),this['urlChange$']=_0x175217(window,_0xc15ba(0x336))[_0xc15ba(0x34d)](_0x1f12e2(this[_0xc15ba(0x337)]),_0x2aeefc(0x1),_0x2fd631(void 0x0));}[_0x279361(0x17e)](_0x2f54e5,_0x4d1827,_0x4b3b30=!0x1){const _0x4378a7=_0x279361,_0x5e56d1=new URL(window[_0x4378a7(0x2a9)][_0x4378a7(0x1c9)]);_0x5e56d1[_0x4378a7(0x28b)][_0x4378a7(0x357)](_0x2f54e5,_0x4d1827),_0x4b3b30?window[_0x4378a7(0x321)][_0x4378a7(0x1cc)]('','',_0x5e56d1['toString']()):window[_0x4378a7(0x321)][_0x4378a7(0x368)]('','',_0x5e56d1[_0x4378a7(0x259)]());}[_0x279361(0x23c)](_0xb91617,_0x26b4d9=!0x1){const _0x387cc3=_0x279361,_0x1a158a=new URL(window['location'][_0x387cc3(0x1c9)]);_0x1a158a[_0x387cc3(0x28b)][_0x387cc3(0x250)](_0xb91617),_0x26b4d9?window['history']['replaceState']('','',_0x1a158a['toString']()):window[_0x387cc3(0x321)]['pushState']('','',_0x1a158a[_0x387cc3(0x259)]());}[_0x279361(0x242)](_0x5734f6){const _0x65368b=_0x279361;var _0x1ef7c5;return(_0x1ef7c5=new URL(window[_0x65368b(0x2a9)][_0x65368b(0x1c9)])[_0x65368b(0x28b)][_0x65368b(0x225)](_0x5734f6))!=null?_0x1ef7c5:void 0x0;}}var Nn=Object[_0x279361(0x1b5)],Un=Object[_0x279361(0x1ec)],Ln=(_0x26f1fd,_0x2497ba,_0x321de3)=>_0x2497ba in _0x26f1fd?Nn(_0x26f1fd,_0x2497ba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x321de3}):_0x26f1fd[_0x2497ba]=_0x321de3,Mn=(_0x52cd55,_0x28f3ca,_0x3f1d07,_0x575265)=>{for(var _0xc78917=_0x575265>0x1?void 0x0:_0x575265?Un(_0x28f3ca,_0x3f1d07):_0x28f3ca,_0x2c6d99=_0x52cd55['length']-0x1,_0xb3d91f;_0x2c6d99>=0x0;_0x2c6d99--)(_0xb3d91f=_0x52cd55[_0x2c6d99])&&(_0xc78917=_0xb3d91f(_0xc78917)||_0xc78917);return _0xc78917;},Ne=(_0x10ec78,_0x228cb7)=>(_0x133cc7,_0x52b481)=>_0x228cb7(_0x133cc7,_0x52b481,_0x10ec78),An=(_0x24d028,_0x19221e,_0x51e1be)=>Ln(_0x24d028,_0x19221e+'',_0x51e1be);const Pn=_0x279361(0x2b2);let Fe=class extends _0x565e94{constructor(_0x3589da=at,_0x41ccdf,_0x4a860d,_0x38ac9e){const _0x4d7ef0=_0x279361;super(),this[_0x4d7ef0(0x1e6)]=_0x3589da,this[_0x4d7ef0(0x2e5)]=_0x41ccdf,this[_0x4d7ef0(0x31b)]=_0x4a860d,this[_0x4d7ef0(0x19f)]=_0x38ac9e;const {..._0x30cb1a}=_0x206c2b({},at,this[_0x4d7ef0(0x1e6)]);this[_0x4d7ef0(0x19f)][_0x4d7ef0(0x193)](ln,_0x30cb1a);}[_0x279361(0x24c)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x279361(0x378)](){const _0x2d78ef=_0x279361;this[_0x2d78ef(0x164)]();}[_0x279361(0x14a)](){const _0x58bc04=_0x279361;var _0x13735d;const _0x328535=[[Ge],[fe],[ue],[_e],[he],[Ke],[Pt,{'useClass':bn}],[_0x4665df,{'useClass':_0x113f5a}],[_0x3b29b1,{'useClass':Be}],[ae],[de],[le],[Y],[Pe],[ce]];_0x1c6e38(this[_0x58bc04(0x31b)],_0x274243(_0x328535,(_0x13735d=this[_0x58bc04(0x1e6)])==null?void 0x0:_0x13735d[_0x58bc04(0x34b)]));}[_0x279361(0x164)](){const _0x2e92d2=_0x279361;this[_0x2e92d2(0x285)](this['_renderManagerService'][_0x2e92d2(0x2b9)](_0x3d4c4a['UNIVER_DOC'],[$e])),this['disposeWithMe'](this[_0x2e92d2(0x2e5)]['registerRenderModule'](_0x3d4c4a[_0x2e92d2(0x26c)],[xe]));}[_0x279361(0x274)](){const _0x53fae4=_0x279361;_0x5a0569(this[_0x53fae4(0x31b)],[[Y],[ae],[de],[le],[ce],[fe]]);}};An(Fe,_0x279361(0x189),Pn),Fe=Mn([_0x23c35b(_0x3a6051),Ne(0x1,_0x3bda3f),Ne(0x2,_0x349554(_0x543124)),Ne(0x3,_0x3b186e)],Fe);var wn=Object[_0x279361(0x1ec)],yn=(_0xf9d391,_0x52fb8b,_0x3357ee,_0x4f9388)=>{for(var _0x34d8b3=_0x4f9388>0x1?void 0x0:_0x4f9388?wn(_0x52fb8b,_0x3357ee):_0x52fb8b,_0xb3c42b=_0xf9d391['length']-0x1,_0x4fcc07;_0xb3c42b>=0x0;_0xb3c42b--)(_0x4fcc07=_0xf9d391[_0xb3c42b])&&(_0x34d8b3=_0x4fcc07(_0x34d8b3)||_0x34d8b3);return _0x34d8b3;},Z=(_0x4f4ed1,_0x555b7a)=>(_0x6a1c94,_0x2c357f)=>_0x555b7a(_0x6a1c94,_0x2c357f,_0x4f4ed1);let _t=class extends _0x26a376{constructor(_0x13ecd2,_0x5e5fd1,_0x146576,_0x52b21e,_0x2b35c7){super(_0x13ecd2,_0x5e5fd1,_0x146576,_0x52b21e,_0x2b35c7);}async[_0x279361(0x38a)](_0x281693){const _0x4e5f44=_0x279361,_0x4d2d06=await this[_0x4e5f44(0x23e)](),_0x52de02=this[_0x4e5f44(0x2fe)](_0x281693,_0x4d2d06);return this[_0x4e5f44(0x2b0)](_0x52de02);}[_0x279361(0x2fe)](_0x2dad1d,_0x3e272a){const _0x4dc45f=_0x279361,_0x262ce6=typeof window>'u'?new URL(_0x2dad1d):new URL(_0x2dad1d,window[_0x4dc45f(0x2a9)]['origin']);_0x262ce6[_0x4dc45f(0x28b)][_0x4dc45f(0x357)](_0x4dc45f(0x2da),_0x3e272a);const _0x323105=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4dc45f(0x2a9)][_0x4dc45f(0x326)]);return _0x323105[_0x4dc45f(0x225)](_0x4dc45f(0x377))&&_0x262ce6[_0x4dc45f(0x28b)][_0x4dc45f(0x357)]('runId',_0x323105[_0x4dc45f(0x225)](_0x4dc45f(0x377))),_0x262ce6['toString']();}async[_0x279361(0x23e)](){const _0x8d36b0=_0x279361;var _0x2277c5,_0x5368e0,_0x3960d7;const _0x29e85f=this[_0x8d36b0(0x19f)]['getConfig'](_0x15a639),_0x2dad8d=(_0x2277c5=_0x29e85f==null?void 0x0:_0x29e85f['wsSessionTicketUrl'])!=null?_0x2277c5:_0x5705fa;return(_0x3960d7=(_0x5368e0=(await this[_0x8d36b0(0x2a5)][_0x8d36b0(0x225)](_0x2dad8d,{'headers':{'Content-Type':_0x8d36b0(0x1e3)}}))['body'])==null?void 0x0:_0x5368e0[_0x8d36b0(0x2b6)])!=null?_0x3960d7:'';}};_t=yn([Z(0x0,_0x349554(_0x543124)),Z(0x1,_0x349554(_0x4be316)),Z(0x2,_0x3b186e),Z(0x3,_0x525e85),Z(0x4,_0x3c8a43)],_t);var $n=Object[_0x279361(0x1ec)],xn=(_0x21b28d,_0x106c60,_0x37dfd3,_0x4003ba)=>{const _0x3adbd0=_0x279361;for(var _0x120023=_0x4003ba>0x1?void 0x0:_0x4003ba?$n(_0x106c60,_0x37dfd3):_0x106c60,_0xac1a82=_0x21b28d[_0x3adbd0(0x35e)]-0x1,_0x32569f;_0xac1a82>=0x0;_0xac1a82--)(_0x32569f=_0x21b28d[_0xac1a82])&&(_0x120023=_0x32569f(_0x120023)||_0x120023);return _0x120023;},Ue=(_0x43eda6,_0x59dcc5)=>(_0x99e3d6,_0x45564b)=>_0x59dcc5(_0x99e3d6,_0x45564b,_0x43eda6);let ht=class extends _0x2972bb{constructor(_0x27347a,_0x13b79b,_0xe1d817){const _0x1bc86c=_0x279361;super(),this[_0x1bc86c(0x32c)]=_0x27347a,this['_httpService']=_0x13b79b,this['_configService']=_0xe1d817;}async[_0x279361(0x2f0)](_0x547a8d,_0x13a05b,_0xd9ad4e,..._0x3d21fa){const _0x33ec94=_0x279361;var _0x49b340,_0x2d882f,_0x24a195,_0x1304fe;const _0x270b59=this['_instanceService']['getFocusedUnit']();if(!_0x270b59)throw new Error(_0x33ec94(0x145));const _0x106a45=((_0x49b340=this[_0x33ec94(0x19f)][_0x33ec94(0x282)](_0x1f2e5e))!=null?_0x49b340:_0x43c7d3)+'/'+_0x547a8d+_0x33ec94(0x286)+_0x13a05b,_0xe662e0=new URL(window['location'][_0x33ec94(0x1c9)]),_0x10b280={'scriptId':_0x547a8d,'runId':(_0x2d882f=_0xe662e0['searchParams']['get']('runId'))!=null?_0x2d882f:'','function':_0x13a05b,'unitId':_0x270b59[_0x33ec94(0x228)](),'argsOfFunction':JSON[_0x33ec94(0x217)](_0x3d21fa),'invokeId':(_0x24a195=_0xd9ad4e[_0x33ec94(0x2f9)])!=null?_0x24a195:'','executionId':(_0x1304fe=_0xd9ad4e[_0x33ec94(0x221)])!=null?_0x1304fe:''};try{const _0x3fa6a5=await this[_0x33ec94(0x2a5)]['post'](_0x106a45,{'body':_0x10b280});return _0x3fa6a5[_0x33ec94(0x1db)][_0x33ec94(0x21b)]&&_0x3fa6a5[_0x33ec94(0x1db)][_0x33ec94(0x21b)][_0x33ec94(0x15e)]!==Q['OK']?_0x33ec94(0x279):_0x3fa6a5[_0x33ec94(0x1db)][_0x33ec94(0x1b6)];}catch{return _0x33ec94(0x279);}}};ht=xn([Ue(0x0,_0x56b693),Ue(0x1,_0x349554(_0x4be316)),Ue(0x2,_0x3b186e)],ht);const ut=0x7530,dt=_0x279361(0x317);class ir extends _0x2972bb{constructor(){const _0x3cdca0=_0x279361;super(),_(this,_0x3cdca0(0x2b7),_0x1667d1()),_(this,_0x3cdca0(0x1ed),new Set()),_(this,_0x3cdca0(0x224),new Map()),_(this,_0x3cdca0(0x29f),null),_(this,_0x3cdca0(0x19c),new Map()),_(this,'_unitStatus',new Map()),this[_0x3cdca0(0x275)]();}[_0x279361(0x1e2)](){const _0x58bd5c=_0x279361;super[_0x58bd5c(0x1e2)](),this[_0x58bd5c(0x19c)][_0x58bd5c(0x1a6)]((_0x2dd197,_0x4fc751)=>this[_0x58bd5c(0x1b9)](_0x4fc751)),this[_0x58bd5c(0x29f)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x279361(0x191)](_0x2026e5){const _0x207689=_0x279361;return this[_0x207689(0x245)](_0x2026e5)[_0x207689(0x34d)](_0x1fa727());}['editingUnit'](_0x740d3){const _0x248b2a=_0x279361;this[_0x248b2a(0x1ed)][_0x248b2a(0x1c4)]===0x0&&this[_0x248b2a(0x309)](),this[_0x248b2a(0x1ed)]['add'](_0x740d3),this[_0x248b2a(0x208)]({'type':0x0,'memberID':this[_0x248b2a(0x2b7)],'unitIDs':[_0x740d3],'isForwarded':!0x1});}['disposeUnit'](_0x455c6f){const _0x27f93c=_0x279361;this[_0x27f93c(0x1ed)][_0x27f93c(0x250)](_0x455c6f),this['_selfUnitIDs']['size']===0x0&&this[_0x27f93c(0x29f)]&&window[_0x27f93c(0x1e7)](this[_0x27f93c(0x29f)]);}['_init'](){const _0x556087=_0x279361;this[_0x556087(0x285)](_0x9a67c7(_0x175217(window,_0x556087(0x2e1))['subscribe'](_0x52f225=>{const _0x314140=_0x556087;if(_0x52f225[_0x314140(0x199)]!==dt||!_0x52f225[_0x314140(0x307)])return;const _0x52c968=JSON[_0x314140(0x2ff)](_0x52f225[_0x314140(0x307)]);this[_0x314140(0x330)](_0x52c968);}))),window[_0x556087(0x2b3)](_0x556087(0x2e8),()=>this[_0x556087(0x208)]({'type':0x1,'memberID':this[_0x556087(0x2b7)],'unitIDs':Array[_0x556087(0x23a)](this[_0x556087(0x1ed)])}));}[_0x279361(0x330)](_0x45ff37){const _0x4e3851=_0x279361;switch(_0x45ff37[_0x4e3851(0x297)]){case 0x0:this[_0x4e3851(0x334)](_0x45ff37);break;case 0x1:this[_0x4e3851(0x1d8)](_0x45ff37);break;case 0x2:this[_0x4e3851(0x2fc)](_0x45ff37);break;}}[_0x279361(0x334)](_0xaa0abb){const _0xd25f50=_0x279361,{unitIDs:_0x13915d,memberID:_0x5c8293,isForwarded:_0x5db55d}=_0xaa0abb;_0x13915d['forEach'](_0x31fdaf=>{const _0x4e17c1=_0x168c;if(!_0x5db55d&&this[_0x4e17c1(0x224)][_0x4e17c1(0x30e)](_0x31fdaf)&&this[_0x4e17c1(0x245)](_0x31fdaf)[_0x4e17c1(0x1e4)](_0x4fc1d9[_0x4e17c1(0x1c1)]),!this[_0x4e17c1(0x224)][_0x4e17c1(0x30e)](_0x31fdaf)||!this[_0x4e17c1(0x224)]['get'](_0x31fdaf)['has'](_0x5c8293)){const _0x56872c=this[_0x4e17c1(0x224)][_0x4e17c1(0x225)](_0x31fdaf)||new Set();_0x56872c[_0x4e17c1(0x169)](_0x5c8293),this[_0x4e17c1(0x224)][_0x4e17c1(0x357)](_0x31fdaf,_0x56872c),this[_0x4e17c1(0x33b)](_0x5c8293);}}),_0x5db55d||this[_0xd25f50(0x208)]({'type':0x0,'memberID':this[_0xd25f50(0x2b7)],'unitIDs':[...this[_0xd25f50(0x1ed)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x2ebad9){const _0x184085=_0x279361;this['_removeClearOtherTimer'](_0x2ebad9);const _0x14647c=window[_0x184085(0x24d)](()=>{const _0x58a149=_0x184085;this[_0x58a149(0x224)][_0x58a149(0x1a6)](_0x21f5df=>{const _0x58171c=_0x58a149;_0x21f5df[_0x58171c(0x250)](_0x2ebad9);});},ut*0x2);this['_clearOtherTimers'][_0x184085(0x357)](_0x2ebad9,_0x14647c);}[_0x279361(0x1b9)](_0x428053){const _0x47bd42=_0x279361;if(this[_0x47bd42(0x19c)]['has'](_0x428053)){const _0xa7e22=this[_0x47bd42(0x19c)][_0x47bd42(0x225)](_0x428053);_0xa7e22&&window[_0x47bd42(0x21c)](_0xa7e22),this['_clearOtherTimers'][_0x47bd42(0x357)](_0x428053,null);}}[_0x279361(0x1d8)](_0x266a75){const _0x57d5a4=_0x279361,{memberID:_0x5896f6,unitIDs:_0x93b78d}=_0x266a75;_0x93b78d['forEach'](_0x40cc6f=>{const _0x363e3e=_0x168c;var _0x132386;const _0xe9c7b8=this[_0x363e3e(0x224)][_0x363e3e(0x225)](_0x40cc6f);_0xe9c7b8&&(_0xe9c7b8[_0x363e3e(0x250)](_0x5896f6),(_0x132386=this[_0x363e3e(0x245)](_0x40cc6f))==null||_0x132386[_0x363e3e(0x1e4)](_0xe9c7b8[_0x363e3e(0x1c4)]===0x0?_0x4fc1d9[_0x363e3e(0x214)]:_0x4fc1d9[_0x363e3e(0x1c1)]));}),this[_0x57d5a4(0x1b9)](_0x5896f6);}['_handleHeartbeatEvent'](_0x5236ba){const _0x2a8bb6=_0x279361;this[_0x2a8bb6(0x33b)](_0x5236ba[_0x2a8bb6(0x2db)]);}['_send'](_0xe34ece){const _0x3771e9=_0x279361;localStorage[_0x3771e9(0x2c3)](dt,JSON['stringify'](_0xe34ece));}[_0x279361(0x309)](){const _0x1e5d13=_0x279361;this['_heartbeatTimer']=window[_0x1e5d13(0x2bc)](()=>{const _0x4f4836=_0x1e5d13;this['_send']({'type':0x2,'memberID':this[_0x4f4836(0x2b7)]});},ut);}['_ensureSubject'](_0x43547d){const _0x2c3a75=_0x279361;return this[_0x2c3a75(0x25d)]['has'](_0x43547d)||this['_unitStatus']['set'](_0x43547d,new _0x5ccbb2(_0x4fc1d9[_0x2c3a75(0x214)])),this[_0x2c3a75(0x25d)][_0x2c3a75(0x225)](_0x43547d);}}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};