@univerjs-pro/collaboration-client-ui 0.12.4-insiders.20251212-6c41730 → 0.12.4-insiders.20251213-692494c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +15 -15
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3a7433=_0x474c;(function(_0x31ecc5,_0x29a4e1){const _0x5c2927=_0x474c,_0x30c1ec=_0x31ecc5();while(!![]){try{const _0x3efce8=-parseInt(_0x5c2927(0x21d))/0x1+parseInt(_0x5c2927(0x1d1))/0x2*(parseInt(_0x5c2927(0x40a))/0x3)+-parseInt(_0x5c2927(0x33f))/0x4+parseInt(_0x5c2927(0x310))/0x5+-parseInt(_0x5c2927(0x312))/0x6*(-parseInt(_0x5c2927(0x367))/0x7)+parseInt(_0x5c2927(0x3ae))/0x8*(-parseInt(_0x5c2927(0x3ee))/0x9)+-parseInt(_0x5c2927(0x20a))/0xa*(-parseInt(_0x5c2927(0x263))/0xb);if(_0x3efce8===_0x29a4e1)break;else _0x30c1ec['push'](_0x30c1ec['shift']());}catch(_0x2bc07a){_0x30c1ec['push'](_0x30c1ec['shift']());}}}(_0x4974,0x978d4));var Yt=Object[_0x3a7433(0x286)],Wt=(_0x351edb,_0x336963,_0x20b96d)=>_0x336963 in _0x351edb?Yt(_0x351edb,_0x336963,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20b96d}):_0x351edb[_0x336963]=_0x20b96d,_=(_0x423b39,_0x194b1f,_0x498383)=>Wt(_0x423b39,typeof _0x194b1f!=_0x3a7433(0x1c2)?_0x194b1f+'':_0x194b1f,_0x498383);import{jsx as _0x6d53f8,jsxs as _0x1a4fef}from'react/jsx-runtime';import{CollaborationStatus as _0x578bc7,CollaborationSessionService as _0x33dafd,CollaborationController as _0x4c101c,DataLoaderService as _0x26e739,MemberService as _0xba6281,SessionStatus as _0xa37934,ILocalCacheService as _0x3d14fc,CollaborationUIEventService as _0x5d3b6b,CollaborationUIEventId as _0xb775dc,DocCollaborationEntity as _0x30a98e,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3f2cb9,getLocalCacheKey as _0x1f06b2,LOCAL_CACHE_INTERVAL as _0x3051c8,LOCAL_CACHE_INTERVAL_KEY as _0x4f98ba,UniverCollaborationClientPlugin as _0x3d7acc,CollaborationSocketService as _0x33b5a6,DEFAULT_WS_SESSION_TICKET_URL as _0x151348,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x4d0e9a,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x26483f,UnitStatus as _0x218817}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x5875ca,IUniverInstanceService as _0x1cf763,Inject as _0x27384c,Injector as _0x546954,Disposable as _0x1c0642,createIdentifier as _0x408afa,ILogService as _0x2e91cd,ICommandService as _0x23b771,Optional as _0x122559,RxDisposable as _0x572f10,Workbook as _0x500951,DOC_RANGE_TYPE as _0x1de649,debounce as _0x44a666,Rectangle as _0x385ece,DisposableCollection as _0x57736b,toDisposable as _0x157525,UniverInstanceType as _0x36653e,generateRandomId as _0x3f0ee8,COLORS as _0x164b29,ColorKit as _0x3be8fa,ThemeService as _0x54d291,fromEventSubject as _0x58d8c3,Tools as _0x144735,CommandType as _0x5ab7c5,IConfigService as _0x574df3,CanceledError as _0x853b6b,isFormulaString as _0x5b7c7b,isFormulaId as _0x433ef4,ILocalStorageService as _0x32ff2a,DependentOn as _0x11ccda,Plugin as _0x50392c,merge as _0x266c93,registerDependencies as _0x1de876,mergeOverrideWithDependencies as _0x2fb84b,touchDependencies as _0x1fe50a}from'@univerjs/core';import{useObservable as _0x1f71ea,useDependency as _0x10b267,IUIPartsService as _0x2f02ad,BuiltInUIPart as _0x21ee09,connectInjector as _0x25edc7,IBeforeCloseService as _0x18dba0,IMessageService as _0x52022d,INotificationService as _0x7f620d}from'@univerjs/ui';import{BehaviorSubject as _0x29de4b,switchMap as _0x232519,of as _0x44fc3f,takeUntil as _0x7b7810,debounceTime as _0x1d53b6,Subject as _0x4b5f78,filter as _0x3c21b3,merge as _0x26d8bd,combineLatest as _0x3f4d03,fromEvent as _0x57cde1,shareReplay as _0xe65cb8,mapTo as _0x2a23d6,distinctUntilChanged as _0x55e285}from'rxjs';import{Tooltip as _0x4ee450,clsx as _0x66ea2b,MessageType as _0x5e610d}from'@univerjs/design';import{useRef as _0x7e8e76,createElement as _0x531fb2,forwardRef as _0x46c57a,useCallback as _0x570daa}from'react';import{IRemoteInstanceService as _0x1d1879}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x22929c,RefRangeService as _0xc89b4,SetSelectionsOperation as _0x2bb3a5,SheetsSelectionsService as _0xd281b6,EffectRefRangId as _0x5bfdab,handleIRemoveRow as _0xdffde2,handleIRemoveCol as _0x5cb489,handleMoveRange as _0x158e95,handleInsertRow as _0x3599ed,handleInsertRangeMoveRight as _0x121378,handleInsertRangeMoveDown as _0x50e396,handleInsertCol as _0x1dc9ed,handleDeleteRangeMoveUp as _0x3406ca,handleDeleteRangeMoveLeft as _0x2ad0c0,runRefRangeMutations as _0x5b3708}from'@univerjs/sheets';import{Shape as _0x2a2a66,Rect as _0x4dfe17,getColor as _0x25acc8,RegularPolygon as _0x5b22a5,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x309312,Vector2 as _0x4aee94,SHEET_VIEWPORT_KEY as _0x5d3294,IRenderManagerService as _0x47acbb}from'@univerjs/engine-render';function _0x474c(_0x1dc195,_0xd3c14){_0x1dc195=_0x1dc195-0x1b0;const _0x4974a6=_0x4974();let _0x474c6c=_0x4974a6[_0x1dc195];return _0x474c6c;}import{HTTPService as _0x37faeb,ISocketService as _0x2a889b,WebSocketService as _0x3f3140}from'@univerjs/network';import{IDocClipboardService as _0x2ce0c2,NodePositionConvertToCursor as _0x388172,NodePositionConvertToRectRange as _0x2166fb,TEXT_RANGE_LAYER_INDEX as _0x3e1dcd,SetDocZoomRatioOperation as _0x49f1f4,DocIMEInputManagerService as _0x12d831,DocStateChangeManagerService as _0x391aa1}from'@univerjs/docs-ui';import{IImageIoService as _0x3f9245}from'@univerjs/drawing';import{ITransformService as _0x3417ba,CollaborationEvent as _0x5b6d00,isTransformMutationFailure as _0x28a191,isTransformMutationsWithChangesetSuccess as _0x4d115f,RevisionService as _0x4a7a7a,ISnapshotServerService as _0x12f3e4}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x470c0a,RichTextEditingMutation as _0x8475e8,DocSelectionManagerService as _0x1ba78b,DocSkeletonManagerService as _0xf10ffb}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x30bdea,serializeRangeWithSheet as _0x1473d8,FormulaExecuteStageType as _0x5ee1af,FormulaExecutedStateType as _0x3f1c63,SetFormulaCalculationStartMutation as _0x54c579,SetFormulaCalculationNotificationMutation as _0x8e2626}from'@univerjs/engine-formula';import{map as _0x4024aa,filter as _0x3c1d7f,throttleTime as _0x33ced3,takeUntil as _0x45dbd4,switchMap as _0x174e30}from'rxjs/operators';import{SheetSkeletonManagerService as _0x3e00d6,getCoordByCell as _0x3ba7ce,getSheetObject as _0xbc8dbe}from'@univerjs/sheets-ui';function Ge({ref:_0x40de29,..._0x270ccb}){const _0x1cb29e=_0x3a7433,{icon:_0x22c1fe,id:_0x502de2,className:_0x15db24,extend:_0x1d9023,..._0x3c860d}=_0x270ccb,_0x2631b5=(_0x1cb29e(0x2da)+_0x502de2+'\x20'+(_0x15db24||''))['trim'](),_0x29cbd0=_0x7e8e76('_'+vi());return At(_0x22c1fe,''+_0x502de2,{'defIds':_0x22c1fe[_0x1cb29e(0x309)],'idSuffix':_0x29cbd0[_0x1cb29e(0x1cc)]},{'ref':_0x40de29,'className':_0x2631b5,..._0x3c860d},_0x1d9023);}function At(_0x4dd798,_0x4038a2,_0x27933b,_0x2f7073,_0x2350f6){const _0x3b148d=_0x3a7433;return _0x531fb2(_0x4dd798[_0x3b148d(0x267)],{'key':_0x4038a2,...gi(_0x4dd798,_0x27933b,_0x2350f6),..._0x2f7073},(Ei(_0x4dd798,_0x27933b)[_0x3b148d(0x1db)]||[])[_0x3b148d(0x3d1)]((_0x41e642,_0x567391)=>At(_0x41e642,_0x4038a2+'-'+_0x4dd798[_0x3b148d(0x267)]+'-'+_0x567391,_0x27933b,void 0x0,_0x2350f6)));}function gi(_0x27f024,_0x1a2220,_0x4baf6c){const _0x42be27=_0x3a7433,_0x218318={..._0x27f024['attrs']};_0x4baf6c!=null&&_0x4baf6c[_0x42be27(0x35b)]&&_0x218318[_0x42be27(0x37b)]==='colorChannel1'&&(_0x218318[_0x42be27(0x37b)]=_0x4baf6c['colorChannel1']),_0x27f024[_0x42be27(0x267)]===_0x42be27(0x270)&&_0x218318['id']&&(_0x218318['id']=_0x218318['id']+_0x1a2220[_0x42be27(0x1e7)]),Object[_0x42be27(0x2d2)](_0x218318)[_0x42be27(0x2eb)](([_0x4f47d1,_0x5db70c])=>{const _0x2782a5=_0x42be27;_0x4f47d1==='mask'&&typeof _0x5db70c=='string'&&(_0x218318[_0x4f47d1]=_0x5db70c[_0x2782a5(0x3e0)](/url\(#(.*)\)/,_0x2782a5(0x29a)+_0x1a2220['idSuffix']+')'));});const {defIds:_0x490446}=_0x1a2220;return!_0x490446||_0x490446[_0x42be27(0x34d)]===0x0||(_0x27f024['tag']===_0x42be27(0x2f1)&&_0x218318[_0x42be27(0x277)]&&(_0x218318['xlink:href']=_0x218318[_0x42be27(0x277)]+_0x1a2220['idSuffix']),Object[_0x42be27(0x2d2)](_0x218318)[_0x42be27(0x2eb)](([_0x1d82e3,_0x446180])=>{const _0xe972d8=_0x42be27;typeof _0x446180==_0xe972d8(0x2cb)&&(_0x218318[_0x1d82e3]=_0x446180[_0xe972d8(0x3e0)](/url\(#(.*)\)/,_0xe972d8(0x29a)+_0x1a2220[_0xe972d8(0x1e7)]+')'));})),_0x218318;}function Ei(_0x155e7e,_0x2cbe14){const _0x29da84=_0x3a7433;var _0x484f67;const {defIds:_0x408109}=_0x2cbe14;return!_0x408109||_0x408109[_0x29da84(0x34d)]===0x0?_0x155e7e:_0x155e7e[_0x29da84(0x267)]==='defs'&&((_0x484f67=_0x155e7e[_0x29da84(0x1db)])!=null&&_0x484f67[_0x29da84(0x34d)])?{..._0x155e7e,'children':_0x155e7e[_0x29da84(0x1db)]['map'](_0x258ec2=>typeof _0x258ec2[_0x29da84(0x33e)]['id']==_0x29da84(0x2cb)&&_0x408109&&_0x408109[_0x29da84(0x2f2)](_0x258ec2[_0x29da84(0x33e)]['id'])?{..._0x258ec2,'attrs':{..._0x258ec2['attrs'],'id':_0x258ec2[_0x29da84(0x33e)]['id']+_0x2cbe14[_0x29da84(0x1e7)]}}:_0x258ec2)}:_0x155e7e;}function vi(){const _0x41fd42=_0x3a7433;return Math[_0x41fd42(0x1bd)]()[_0x41fd42(0x2ff)](0x24)['substring'](0x2,0x8);}Ge[_0x3a7433(0x35e)]=_0x3a7433(0x350);const pi={'tag':_0x3a7433(0x2b1),'attrs':{'xmlns':_0x3a7433(0x3f5),'fill':_0x3a7433(0x27f),'viewBox':'0\x200\x2016\x2016','width':_0x3a7433(0x1c3),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x3a7433(0x2f7),'attrs':{'stroke':_0x3a7433(0x3d8),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x3a7433(0x220),'strokeLinejoin':_0x3a7433(0x220),'strokeWidth':1.2}}]},{'tag':_0x3a7433(0x208),'attrs':{},'children':[{'tag':_0x3a7433(0x256),'attrs':{'id':_0x3a7433(0x39a)},'children':[{'tag':_0x3a7433(0x2f7),'attrs':{'fill':_0x3a7433(0x31d),'d':_0x3a7433(0x2b7)}}]}]}],'defIds':[_0x3a7433(0x39a)]},Pt=_0x46c57a(function(_0x17f15e,_0x57db71){const _0x3468ff=_0x3a7433;return _0x531fb2(Ge,Object[_0x3468ff(0x3de)]({},_0x17f15e,{'id':_0x3468ff(0x34c),'ref':_0x57db71,'icon':pi}));});Pt[_0x3a7433(0x35e)]=_0x3a7433(0x2e0);const Oi={'tag':_0x3a7433(0x2b1),'attrs':{'xmlns':_0x3a7433(0x3f5),'fill':_0x3a7433(0x27f),'viewBox':_0x3a7433(0x29f),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3a7433(0x35a)},'children':[{'tag':_0x3a7433(0x2f7),'attrs':{'stroke':_0x3a7433(0x3d8),'d':_0x3a7433(0x3dc),'strokeLinecap':_0x3a7433(0x220),'strokeLinejoin':_0x3a7433(0x220),'strokeWidth':1.2}}]},{'tag':_0x3a7433(0x208),'attrs':{},'children':[{'tag':_0x3a7433(0x256),'attrs':{'id':_0x3a7433(0x36c)},'children':[{'tag':'path','attrs':{'fill':_0x3a7433(0x31d),'d':_0x3a7433(0x2b7),'transform':_0x3a7433(0x329)}}]}]}],'defIds':[_0x3a7433(0x36c)]},wt=_0x46c57a(function(_0x853d28,_0x4556fa){const _0x46bbf0=_0x3a7433;return _0x531fb2(Ge,Object[_0x46bbf0(0x3de)]({},_0x853d28,{'id':_0x46bbf0(0x24e),'ref':_0x4556fa,'icon':Oi}));});wt[_0x3a7433(0x35e)]=_0x3a7433(0x3a4);function Ti(_0xc8bff5){const _0x5b8ff4=_0x3a7433;switch(_0xc8bff5){case _0x578bc7[_0x5b8ff4(0x33d)]:return _0x5b8ff4(0x1dc);case _0x578bc7[_0x5b8ff4(0x218)]:return _0x5b8ff4(0x3e1);case _0x578bc7[_0x5b8ff4(0x2a6)]:return'collabStatus.fetchMiss';case _0x578bc7['NOT_COLLAB']:return'collabStatus.notCollab';case _0x578bc7[_0x5b8ff4(0x1f1)]:case _0x578bc7[_0x5b8ff4(0x380)]:return _0x5b8ff4(0x28e);case _0x578bc7[_0x5b8ff4(0x32f)]:case _0x578bc7[_0x5b8ff4(0x23f)]:return _0x5b8ff4(0x3ea);}}function Ci(_0x3efdff){const _0x27b4df=_0x3a7433,{status$:_0x4caa7e}=_0x3efdff,_0x359093=_0x1f71ea(_0x4caa7e,_0x578bc7[_0x27b4df(0x402)]),_0x113f84=_0x10b267(_0x5875ca),_0x4be5cc=_0x10b267(_0x33dafd),_0x3b4f31=_0x359093!==_0x578bc7['OFFLINE'],_0x106361=_0x113f84['t'](Ti(_0x359093)),_0x4a7352=_0x3b4f31?_0x6d53f8(wt,{}):_0x6d53f8(Pt,{}),_0x4ca55a=_0x570daa(()=>{const _0x344568=_0x27b4df;_0x3b4f31||_0x4be5cc[_0x344568(0x2f9)]();},[_0x3b4f31,_0x4be5cc]);function _0x422991(){const _0x2c1686=_0x27b4df;return _0x1a4fef(_0x2c1686(0x31a),{'className':_0x2c1686(0x3bd),'onClick':_0x4ca55a,'children':[_0x6d53f8('div',{'className':_0x66ea2b(_0x2c1686(0x1e6),{'univer-text-green-500':_0x3b4f31,'univer-text-red-500':!_0x3b4f31}),'children':_0x4a7352}),_0x6d53f8(_0x2c1686(0x31a),{'className':_0x2c1686(0x3aa),'children':_0x106361})]});}return _0x3b4f31?_0x422991():_0x6d53f8(_0x4ee450,{'title':_0x113f84['t'](_0x27b4df(0x222)),'children':_0x422991()});}var Ri=Object[_0x3a7433(0x210)],Di=(_0x4c027a,_0x3f74ba,_0x368a5c,_0x2fbb78)=>{for(var _0x241233=_0x2fbb78>0x1?void 0x0:_0x2fbb78?Ri(_0x3f74ba,_0x368a5c):_0x3f74ba,_0x23edef=_0x4c027a['length']-0x1,_0x338fc5;_0x23edef>=0x0;_0x23edef--)(_0x338fc5=_0x4c027a[_0x23edef])&&(_0x241233=_0x338fc5(_0x241233)||_0x241233);return _0x241233;},se=(_0x3c5707,_0x22d4db)=>(_0x59402e,_0x34b3ac)=>_0x22d4db(_0x59402e,_0x34b3ac,_0x3c5707);let ae=class extends _0x1c0642{constructor(_0x1e18ab,_0x4a2026,_0x536dfd,_0x5bfad6){const _0x4567e3=_0x3a7433;super(),_(this,_0x4567e3(0x1b3),new _0x29de4b(_0x578bc7[_0x4567e3(0x402)])),(this[_0x4567e3(0x2a4)]=_0x1e18ab,this[_0x4567e3(0x1cb)]=_0x4a2026,this[_0x4567e3(0x3d6)]=_0x536dfd,this[_0x4567e3(0x360)]=_0x5bfad6,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x3a7433(0x201)](){const _0x4dda16=_0x3a7433;this[_0x4dda16(0x3f9)](this['_univerInstanceService']['focused$']['pipe'](_0x232519(()=>{const _0x2cd7c3=_0x4dda16,_0x39f207=this[_0x2cd7c3(0x2a4)][_0x2cd7c3(0x381)]();return _0x39f207?this['_collaborationController'][_0x2cd7c3(0x39c)](_0x39f207['getUnitId']()):_0x44fc3f(null);}),_0x232519(_0x18a261=>_0x18a261?_0x18a261[_0x4dda16(0x1e3)]:_0x44fc3f(_0x578bc7[_0x4dda16(0x402)])))[_0x4dda16(0x395)](_0x3f38de=>{const _0x3bb4eb=_0x4dda16;this[_0x3bb4eb(0x1b3)][_0x3bb4eb(0x293)](_0x3f38de);}));}[_0x3a7433(0x2d9)](){const _0x2b2dfc=_0x3a7433;this[_0x2b2dfc(0x3f9)](this['_uiPartsService'][_0x2b2dfc(0x250)](_0x21ee09[_0x2b2dfc(0x203)],()=>_0x25edc7(Ni({'status$':this[_0x2b2dfc(0x1b3)][_0x2b2dfc(0x2b6)]()}),this['_injector'])));}};ae=Di([se(0x0,_0x1cf763),se(0x1,_0x27384c(_0x546954)),se(0x2,_0x27384c(_0x4c101c)),se(0x3,_0x2f02ad)],ae);function Ni(_0x2aeee6){const {status$:_0x39b265}=_0x2aeee6;return function(){return _0x6d53f8(Ci,{'status$':_0x39b265});};}const yt=_0x408afa(_0x3a7433(0x3b9));var bi=Object['getOwnPropertyDescriptor'],Li=(_0x3d1ef6,_0x374185,_0x3644a2,_0x3ebc91)=>{const _0x3ab024=_0x3a7433;for(var _0x852e99=_0x3ebc91>0x1?void 0x0:_0x3ebc91?bi(_0x374185,_0x3644a2):_0x374185,_0x2b3f6e=_0x3d1ef6[_0x3ab024(0x34d)]-0x1,_0x27650b;_0x2b3f6e>=0x0;_0x2b3f6e--)(_0x27650b=_0x3d1ef6[_0x2b3f6e])&&(_0x852e99=_0x27650b(_0x852e99)||_0x852e99);return _0x852e99;},K=(_0x3fee85,_0x117069)=>(_0x1df073,_0x220106)=>_0x117069(_0x1df073,_0x220106,_0x3fee85);let ce=class extends _0x572f10{constructor(_0x545fa0,_0x33eac9,_0x437cc7,_0xda0e21,_0x185b87){const _0x207803=_0x3a7433;super(),this['_urlService']=_0x545fa0,this[_0x207803(0x2ed)]=_0x33eac9,this[_0x207803(0x212)]=_0x437cc7,this[_0x207803(0x1f5)]=_0xda0e21,_0x185b87?_0x185b87==null||_0x185b87[_0x207803(0x2d3)]()[_0x207803(0x22f)](()=>this[_0x207803(0x20b)]()):(this[_0x207803(0x2ed)]['debug'](_0x207803(0x336),_0x207803(0x2df)),this[_0x207803(0x20b)]());}async[_0x3a7433(0x20b)](){const _0x1575d8=_0x3a7433,_0x4c5359=this[_0x1575d8(0x3c0)][_0x1575d8(0x2bd)](_0x1575d8(0x304)),_0x428307=this[_0x1575d8(0x3c0)][_0x1575d8(0x2bd)](_0x1575d8(0x409)),_0x278bbc=this[_0x1575d8(0x3c0)][_0x1575d8(0x2bd)](_0x1575d8(0x254));if(!_0x4c5359||!_0x428307){this[_0x1575d8(0x2ed)][_0x1575d8(0x230)]('[CollaborationDataLoaderController]',_0x1575d8(0x274));return;}const _0x1e9afb=await this[_0x1575d8(0x1f5)][_0x1575d8(0x3d9)](_0x4c5359,Number(_0x428307),_0x278bbc);_0x1e9afb&&_0x1e9afb instanceof _0x500951&&this[_0x1575d8(0x231)](_0x1e9afb);}async[_0x3a7433(0x231)](_0x5afa60){const _0x2f22e4=_0x3a7433;await this[_0x2f22e4(0x216)](_0x5afa60),_0x5afa60[_0x2f22e4(0x2fc)][_0x2f22e4(0x368)](_0x7b7810(this['dispose$']))[_0x2f22e4(0x395)](_0x49b36d=>{_0x49b36d&&this['_updateURLWithCurrentState'](_0x49b36d);}),this[_0x2f22e4(0x3c0)][_0x2f22e4(0x29b)]['pipe'](_0x7b7810(this[_0x2f22e4(0x34e)]))[_0x2f22e4(0x395)](()=>this['_updateSubUnitFromURLParams'](_0x5afa60));}[_0x3a7433(0x285)](_0x3a7bb8,_0x34d7b4=!0x1){const _0x4b1d9a=_0x3a7433,_0x18edfd=this[_0x4b1d9a(0x3c0)][_0x4b1d9a(0x2bd)]('subunit');_0x3a7bb8['getSheetId']()!==_0x18edfd&&this['_urlService'][_0x4b1d9a(0x3b8)]('subunit',_0x3a7bb8['getSheetId'](),_0x34d7b4);}async[_0x3a7433(0x216)](_0x1f923e){const _0x35dac8=_0x3a7433;var _0x2c9f00;const _0x197700=this[_0x35dac8(0x3c0)][_0x35dac8(0x2bd)](_0x35dac8(0x254));if(!_0x197700||!_0x1f923e['getSheetBySheetId'](_0x197700)){const _0x38ee1e=_0x1f923e[_0x35dac8(0x2c2)]()[0x0],_0x4feb09=_0x1f923e[_0x35dac8(0x202)](_0x38ee1e);if(!_0x4feb09)return;this[_0x35dac8(0x285)](_0x4feb09,!0x0),await this['_commandService'][_0x35dac8(0x2e3)](_0x22929c['id'],{'unitId':_0x1f923e[_0x35dac8(0x385)](),'subUnitId':_0x38ee1e});return;}((_0x2c9f00=_0x1f923e[_0x35dac8(0x3e9)]())==null?void 0x0:_0x2c9f00['getSheetId']())!==_0x197700&&await this[_0x35dac8(0x212)][_0x35dac8(0x2e3)](_0x22929c['id'],{'unitId':_0x1f923e[_0x35dac8(0x385)](),'subUnitId':_0x197700});}};ce=Li([K(0x0,yt),K(0x1,_0x2e91cd),K(0x2,_0x23b771),K(0x3,_0x27384c(_0x26e739)),K(0x4,_0x122559(_0x1d1879))],ce);var Ui=Object['getOwnPropertyDescriptor'],Mi=(_0x4909bd,_0x5db3d0,_0x263ca8,_0x204f1a)=>{for(var _0xa6ada5=_0x204f1a>0x1?void 0x0:_0x204f1a?Ui(_0x5db3d0,_0x263ca8):_0x5db3d0,_0x1196dc=_0x4909bd['length']-0x1,_0x40ed16;_0x1196dc>=0x0;_0x1196dc--)(_0x40ed16=_0x4909bd[_0x1196dc])&&(_0xa6ada5=_0x40ed16(_0xa6ada5)||_0xa6ada5);return _0xa6ada5;},rt=(_0x2de3df,_0x409783)=>(_0x299e7c,_0x578ab6)=>_0x409783(_0x299e7c,_0x578ab6,_0x2de3df);let $e=class extends _0x572f10{constructor(_0x50af5f,_0x4974d1){const _0x3ec9b1=_0x3a7433;super(),this['_docClipboardService']=_0x50af5f,this[_0x3ec9b1(0x3da)]=_0x4974d1,this[_0x3ec9b1(0x20b)]();}['_init'](){const _0x46a8e6=_0x3a7433,_0x418c18=this;this['disposeWithMe'](this['_docClipboardService'][_0x46a8e6(0x2d4)]({'onBeforePasteImage':async _0x57e9cf=>{const _0x23bc30=_0x46a8e6,_0x251919=await _0x418c18[_0x23bc30(0x3da)]['saveImage'](_0x57e9cf);return _0x251919?{'source':_0x251919['source'],'imageSourceType':_0x251919['imageSourceType']}:null;}}));}};$e=Mi([rt(0x0,_0x2ce0c2),rt(0x1,_0x3f9245)],$e);const ot=[_0x3a7433(0x366),_0x3a7433(0x305),_0x3a7433(0x2e6),_0x3a7433(0x345),_0x3a7433(0x32a),_0x3a7433(0x1e2)];class Ke extends _0x1c0642{constructor(){const _0x1a1f92=_0x3a7433;super(...arguments),_(this,_0x1a1f92(0x2e4),new Map()),_(this,_0x1a1f92(0x1d7),0x0);}['assignAColorForMemberID'](_0x26f042){const _0x5a6d92=_0x3a7433;if(this['_assignedColors'][_0x5a6d92(0x35f)](_0x26f042))return this[_0x5a6d92(0x2e4)][_0x5a6d92(0x359)](_0x26f042);const _0x4b48d6=ot[this[_0x5a6d92(0x1d7)]];return this['_colorIndex']=(this[_0x5a6d92(0x1d7)]+0x1)%ot[_0x5a6d92(0x34d)],this[_0x5a6d92(0x2e4)][_0x5a6d92(0x1bf)](_0x26f042,_0x4b48d6),_0x4b48d6;}}function $t(_0x4b7926){const _0x4b31e5=_0x3a7433;let _0x39344b='';for(const _0xb35768 of _0x4b7926){const {startOffset:_0x3052c1,endOffset:_0x53836d,isActive:_0x20649f,rangeType:_0x4a0579,segmentId:_0x44c751,segmentPage:_0xb7df9e}=_0xb35768;_0x39344b[_0x4b31e5(0x34d)]&&(_0x39344b+=','),_0x39344b+=_0x3052c1+':'+_0x53836d+':'+(_0x20649f?'1':'0')+':'+_0x4a0579+':'+_0x44c751+':'+_0xb7df9e;}return _0x39344b;}function Ai(_0xc8e1e4){const _0x430ab5=_0x3a7433,_0x5defc3=_0xc8e1e4[_0x430ab5(0x27b)](','),_0x20d507=[];for(const _0x461b5e of _0x5defc3){const [_0x206cb7,_0x102ff0,_0x42ca84,_0x5a15ff,_0x54ba96,_0x3a3c77]=_0x461b5e[_0x430ab5(0x27b)](':');_0x20d507['push']({'startOffset':Number(_0x206cb7),'endOffset':Number(_0x102ff0),'collapsed':_0x206cb7===_0x102ff0,'isActive':_0x42ca84==='1','rangeType':_0x5a15ff===_0x1de649[_0x430ab5(0x398)]?_0x1de649[_0x430ab5(0x398)]:_0x1de649[_0x430ab5(0x1b7)],'segmentId':typeof _0x54ba96==_0x430ab5(0x2cb)?String(_0x54ba96):'','segmentPage':Number(_0x3a3c77!=null?_0x3a3c77:-0x1)});}return _0x20d507[_0x430ab5(0x33c)](_0x40299b=>_0x40299b[_0x430ab5(0x365)])||(_0x20d507[0x0]['isActive']=!0x0),_0x20d507;}class ze extends _0x572f10{constructor(){const _0x3b77ac=_0x3a7433;super(...arguments),_(this,_0x3b77ac(0x3ca),new _0x29de4b(null)),_(this,_0x3b77ac(0x353),this[_0x3b77ac(0x3ca)][_0x3b77ac(0x2b6)]());}['syncEditingCollabCursor'](_0x2b0c36){const _0x35ca2c=_0x3a7433,{unitID:_0x5451bb,memberID:_0x3722ec,textRanges:_0x115d76}=_0x2b0c36,_0x12bf22=$t(_0x115d76);if(_0x12bf22==='')return;const _0xee6a34={'unitID':_0x5451bb,'memberID':_0x3722ec,'selection':_0x12bf22};this[_0x35ca2c(0x3ca)][_0x35ca2c(0x293)](_0xee6a34);}}var Pi=Object['getOwnPropertyDescriptor'],wi=(_0x43af98,_0x42a9e2,_0x19c0a2,_0x5a3c83)=>{const _0x4fb565=_0x3a7433;for(var _0x218f21=_0x5a3c83>0x1?void 0x0:_0x5a3c83?Pi(_0x42a9e2,_0x19c0a2):_0x42a9e2,_0x290fb7=_0x43af98[_0x4fb565(0x34d)]-0x1,_0x48463f;_0x290fb7>=0x0;_0x290fb7--)(_0x48463f=_0x43af98[_0x290fb7])&&(_0x218f21=_0x48463f(_0x218f21)||_0x218f21);return _0x218f21;},A=(_0xb93ae8,_0x2de04f)=>(_0x3a3d2b,_0x416356)=>_0x2de04f(_0x3a3d2b,_0x416356,_0xb93ae8);const yi=0x12c,$i=0x64;let xe=class extends _0x572f10{constructor(_0x4805ba,_0x1375b3,_0x3fb96e,_0x4f71c6,_0x424a1e,_0x8f5bcb,_0x41b26f,_0x2bcc0a,_0x39fbec){const _0xa14ca7=_0x3a7433;super(),_(this,'_online',!0x1),_(this,_0xa14ca7(0x20b),!0x1),_(this,_0xa14ca7(0x3fd),new _0x29de4b(new Map())),_(this,'cursorInfo$',this['_cursorInfo$'][_0xa14ca7(0x2b6)]()),_(this,_0xa14ca7(0x204),new _0x29de4b([])),_(this,_0xa14ca7(0x39e),this['_roomMembers$'][_0xa14ca7(0x368)](_0x1d53b6(yi))),_(this,_0xa14ca7(0x404),_0x44a666(_0x1399e3=>{const _0x3e71a4=_0xa14ca7,_0xa0e062={'eventID':_0x5b6d00[_0x3e71a4(0x35d)],'data':{'unitID':this[_0x3e71a4(0x401)],'memberID':this[_0x3e71a4(0x339)][_0x3e71a4(0x3f1)](),'selection':$t(_0x1399e3)}};this[_0x3e71a4(0x339)][_0x3e71a4(0x1fd)](_0xa0e062,this[_0x3e71a4(0x401)]);},$i)),(this[_0xa14ca7(0x401)]=_0x4805ba,this['_session']=_0x1375b3,this[_0xa14ca7(0x1cb)]=_0x3fb96e,this[_0xa14ca7(0x1d9)]=_0x4f71c6,this[_0xa14ca7(0x291)]=_0x424a1e,this[_0xa14ca7(0x209)]=_0x8f5bcb,this[_0xa14ca7(0x28f)]=_0x41b26f,this[_0xa14ca7(0x2a4)]=_0x2bcc0a,this[_0xa14ca7(0x212)]=_0x39fbec);}get[_0x3a7433(0x2a2)](){const _0x23cbd3=_0x3a7433;return this[_0x23cbd3(0x3fd)][_0x23cbd3(0x37f)]();}get['roomMembers'](){const _0x3d9383=_0x3a7433;return this[_0x3d9383(0x204)][_0x3d9383(0x37f)]();}[_0x3a7433(0x2c4)](){const _0xdf52ce=_0x3a7433;super[_0xdf52ce(0x2c4)](),this[_0xdf52ce(0x3fd)]['next'](new Map()),this[_0xdf52ce(0x3fd)][_0xdf52ce(0x31e)](),this[_0xdf52ce(0x204)][_0xdf52ce(0x293)]([]),this[_0xdf52ce(0x204)][_0xdf52ce(0x31e)]();}[_0x3a7433(0x1ef)](){const _0x534023=_0x3a7433;this[_0x534023(0x20b)]||(this['_init']=!0x0,this[_0x534023(0x339)]['sessionStatus$'][_0x534023(0x368)](_0x7b7810(this[_0x534023(0x34e)]))['subscribe'](_0x62debf=>{const _0x4571d6=_0x534023;_0x62debf===_0xa37934[_0x4571d6(0x205)]?this[_0x4571d6(0x389)]():this[_0x4571d6(0x284)]();}),this[_0x534023(0x339)][_0x534023(0x2a5)][_0x534023(0x368)](_0x7b7810(this[_0x534023(0x34e)]))[_0x534023(0x395)](_0xad2a81=>{const _0x113929=_0x534023,_0x4c2a56=_0xad2a81[_0x113929(0x233)];_0x4c2a56===_0x5b6d00['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0xad2a81),_0x4c2a56===_0x5b6d00[_0x113929(0x3cf)]&&this['_onCursorDelete'](_0xad2a81);}),this[_0x534023(0x3f9)](this[_0x534023(0x212)][_0x534023(0x1f8)](_0x5c8464=>{const _0x4065d9=_0x534023,_0x2b9e69=_0x5c8464[_0x4065d9(0x219)];_0x2b9e69!=null&&this['_online']&&_0x5c8464['id']===_0x470c0a['id']&&_0x2b9e69[_0x4065d9(0x223)]===this[_0x4065d9(0x401)]&&_0x2b9e69[_0x4065d9(0x25f)]===!0x1&&_0x2b9e69[_0x4065d9(0x3a1)][_0x4065d9(0x34d)]>0x0&&this[_0x4065d9(0x404)](_0x2b9e69[_0x4065d9(0x3a1)]);})),this[_0x534023(0x209)]['collabCursorState$'][_0x534023(0x368)](_0x7b7810(this[_0x534023(0x34e)]))[_0x534023(0x395)](_0x35afed=>{const _0xdd538b=_0x534023;if((_0x35afed==null?void 0x0:_0x35afed[_0xdd538b(0x401)])!==this[_0xdd538b(0x401)])return;const _0x2f3ef0={'eventID':_0x5b6d00[_0xdd538b(0x35d)],'data':_0x35afed};this[_0xdd538b(0x1e9)](_0x2f3ef0);}),this[_0x534023(0x3f9)](this[_0x534023(0x212)][_0x534023(0x1f8)](_0x4067fd=>{const _0x124027=_0x534023;if(_0x4067fd[_0x124027(0x219)]==null)return;const _0x590ea1=_0x4067fd['params'];if(_0x4067fd['id']!==_0x8475e8['id']||_0x590ea1[_0x124027(0x223)]!==this['unitID'])return;const _0x3067f7={'id':_0x124027(0x37a),'params':_0x590ea1},_0x4fb6e2=this['cursorInfo'];for(const [_0x16b90c,_0x3a4fc6]of _0x4fb6e2){const _0x1e1193={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x3a4fc6[_0x124027(0x3a1)]}},_0x4ad5d5=this[_0x124027(0x28f)][_0x124027(0x2dc)](_0x3067f7,_0x1e1193,!0x1);if(_0x28a191(_0x4ad5d5))throw _0x4ad5d5['error'];_0x4fb6e2['set'](_0x16b90c,{..._0x3a4fc6,'ranges':_0x4ad5d5['m2Prime'][_0x124027(0x219)]['textRanges']});}queueMicrotask(()=>{const _0x55bec3=_0x124027;this[_0x55bec3(0x3fd)]['next'](_0x4fb6e2);});})));}['_onCursorUpdate'](_0x20d5ed){const _0x532e29=_0x3a7433;var _0x4997b6,_0x5a8c8c;const {memberID:_0x23a38c,selection:_0x5adea3}=_0x20d5ed[_0x532e29(0x217)],_0xafa80a=Ai(_0x5adea3),_0x127010=(_0x5a8c8c=(_0x4997b6=this[_0x532e29(0x291)][_0x532e29(0x40e)](this['unitID'],_0x23a38c))==null?void 0x0:_0x4997b6[_0x532e29(0x386)])!=null?_0x5a8c8c:'Unknown\x20user',_0x5be419={'color':this[_0x532e29(0x1d9)][_0x532e29(0x301)](_0x23a38c),'name':_0x127010,'ranges':_0xafa80a},_0x1ebff2=this[_0x532e29(0x2a2)];_0x1ebff2[_0x532e29(0x1bf)](_0x23a38c,_0x5be419),this[_0x532e29(0x3fd)][_0x532e29(0x293)](_0x1ebff2);}['_onCursorDelete'](_0x3bbbe5){const _0x4459cf=_0x3a7433,{memberID:_0xf970d}=_0x3bbbe5[_0x4459cf(0x217)],_0x4d4fb9=this['cursorInfo'];_0x4d4fb9[_0x4459cf(0x236)](_0xf970d),this[_0x4459cf(0x3fd)][_0x4459cf(0x293)](_0x4d4fb9);}[_0x3a7433(0x389)](){const _0x5e30a3=_0x3a7433;var _0x1b2d6f;if(this[_0x5e30a3(0x324)]=!0x0,((_0x1b2d6f=this[_0x5e30a3(0x2a4)][_0x5e30a3(0x381)]())==null?void 0x0:_0x1b2d6f[_0x5e30a3(0x385)]())!==this[_0x5e30a3(0x401)])return;const _0x439f79=this[_0x5e30a3(0x1cb)][_0x5e30a3(0x359)](_0x1ba78b)[_0x5e30a3(0x34b)]();Array[_0x5e30a3(0x321)](_0x439f79)&&_0x439f79['length']>0x0&&this[_0x5e30a3(0x404)](_0x439f79);}['_toggleOffline'](){const _0x2256fe=_0x3a7433;this[_0x2256fe(0x324)]=!0x1;}};xe=wi([A(0x2,_0x27384c(_0x546954)),A(0x3,_0x27384c(Ke)),A(0x4,_0x27384c(_0xba6281)),A(0x5,_0x27384c(ze)),A(0x6,_0x3417ba),A(0x7,_0x1cf763),A(0x8,_0x23b771)],xe);var xi=Object[_0x3a7433(0x210)],Bi=(_0x169d29,_0x58fdbb,_0x5abc15,_0x1790eb)=>{const _0x57bd18=_0x3a7433;for(var _0x3aefe0=_0x1790eb>0x1?void 0x0:_0x1790eb?xi(_0x58fdbb,_0x5abc15):_0x58fdbb,_0x3811db=_0x169d29[_0x57bd18(0x34d)]-0x1,_0x1f1446;_0x3811db>=0x0;_0x3811db--)(_0x1f1446=_0x169d29[_0x3811db])&&(_0x3aefe0=_0x1f1446(_0x3aefe0)||_0x3aefe0);return _0x3aefe0;},B=(_0x34bdf9,_0x27f051)=>(_0x5d9d51,_0x24e435)=>_0x27f051(_0x5d9d51,_0x24e435,_0x34bdf9);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x125751=[],_0x3dc542=!0x1;return _0x187090=>{const _0x1e40a4=_0x474c;_0x125751[_0x1e40a4(0x3b0)](_0x187090),_0x3dc542||(_0x3dc542=!0x0,setTimeout(()=>{const _0x57f776=_0x1e40a4;_0x125751[_0x57f776(0x2eb)](_0x48e94a=>_0x48e94a()),_0x125751=[],_0x3dc542=!0x1;}));};};let Be=class extends _0x572f10{constructor(_0x4141db,_0x4f2e6a,_0x5f5b3d,_0x523931,_0x262584,_0x2f358a,_0x5c3568,_0x28b93b){const _0x16a4c1=_0x3a7433;super(),_(this,_0x16a4c1(0x324),!0x1),_(this,_0x16a4c1(0x20b),!0x1),_(this,_0x16a4c1(0x3fd),new _0x29de4b(new Map())),_(this,_0x16a4c1(0x298),this[_0x16a4c1(0x3fd)]['asObservable']()),_(this,_0x16a4c1(0x204),new _0x29de4b([])),_(this,_0x16a4c1(0x39e),this[_0x16a4c1(0x204)][_0x16a4c1(0x368)](_0x1d53b6(Fi))),_(this,_0x16a4c1(0x404),_0x44a666((_0x59ee68,_0x1e69e8)=>{const _0xf88db8=_0x16a4c1,_0x335682={'eventID':_0x5b6d00[_0xf88db8(0x35d)],'data':{'unitID':this[_0xf88db8(0x401)],'memberID':this[_0xf88db8(0x339)][_0xf88db8(0x3f1)](),'selection':_0x1473d8(_0x59ee68,_0x1e69e8[_0xf88db8(0x3f2)])}};this['_session'][_0xf88db8(0x1fd)](_0x335682,this['unitID']);},ki)),(this[_0x16a4c1(0x401)]=_0x4141db,this[_0x16a4c1(0x339)]=_0x4f2e6a,this[_0x16a4c1(0x1cb)]=_0x5f5b3d,this[_0x16a4c1(0x1d9)]=_0x523931,this[_0x16a4c1(0x291)]=_0x262584,this['_univerInstanceService']=_0x2f358a,this[_0x16a4c1(0x212)]=_0x5c3568,this['_refRangeService']=_0x28b93b);}get[_0x3a7433(0x2a2)](){const _0x3b9dcd=_0x3a7433;return this[_0x3b9dcd(0x3fd)]['getValue']();}get[_0x3a7433(0x1b2)](){return this['_roomMembers$']['getValue']();}[_0x3a7433(0x2c4)](){const _0x529ba9=_0x3a7433;super[_0x529ba9(0x2c4)](),this[_0x529ba9(0x3fd)]['next'](new Map()),this['_cursorInfo$'][_0x529ba9(0x31e)](),this[_0x529ba9(0x204)]['next']([]),this['_roomMembers$'][_0x529ba9(0x31e)]();}[_0x3a7433(0x1ef)](){const _0xc66333=_0x3a7433;this[_0xc66333(0x20b)]||(this[_0xc66333(0x20b)]=!0x0,this['_session'][_0xc66333(0x2c0)][_0xc66333(0x368)](_0x7b7810(this[_0xc66333(0x34e)]))[_0xc66333(0x395)](_0x215a81=>{const _0xc7c3af=_0xc66333;_0x215a81===_0xa37934[_0xc7c3af(0x205)]?this['_toggleOnline']():this[_0xc7c3af(0x284)]();}),this[_0xc66333(0x339)][_0xc66333(0x2a5)][_0xc66333(0x368)](_0x7b7810(this[_0xc66333(0x34e)]))[_0xc66333(0x395)](_0x5ca035=>{const _0x29f571=_0xc66333,_0x13214e=_0x5ca035[_0x29f571(0x233)];_0x13214e===_0x5b6d00['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x5ca035),_0x13214e===_0x5b6d00[_0x29f571(0x3cf)]&&this[_0x29f571(0x280)](_0x5ca035);}),this['_onRefRangeChange'](),this['disposeWithMe'](this[_0xc66333(0x212)][_0xc66333(0x1f8)](_0x544ab5=>{const _0x2a2680=_0xc66333;if(this[_0x2a2680(0x324)]&&_0x544ab5['id']===_0x2bb3a5['id']&&_0x544ab5[_0x2a2680(0x219)]['unitId']===this[_0x2a2680(0x401)]){const _0x574355=_0x544ab5[_0x2a2680(0x219)];this[_0x2a2680(0x404)](_0x574355[_0x2a2680(0x266)],_0x574355['selections'][0x0]);}})));}[_0x3a7433(0x1e9)](_0xcd74f7){const _0x4c561b=_0x3a7433;var _0x15f0c9,_0x472ddb;const {memberID:_0x519b5d,selection:_0x28587c}=_0xcd74f7['data'],{sheetName:_0x2362cb,range:_0x144490}=_0x30bdea(_0x28587c),_0x2707fc={'name':(_0x472ddb=(_0x15f0c9=this[_0x4c561b(0x291)]['getMember'](this['unitID'],_0x519b5d))==null?void 0x0:_0x15f0c9[_0x4c561b(0x386)])!=null?_0x472ddb:_0x4c561b(0x3f7),'range':this[_0x4c561b(0x248)](_0x2362cb,_0x144490),'sheetID':_0x2362cb,'color':this[_0x4c561b(0x1d9)][_0x4c561b(0x301)](_0x519b5d),'selection':_0x28587c},_0xdc9560=this[_0x4c561b(0x2a2)];_0xdc9560['set'](_0x519b5d,_0x2707fc),this['_cursorInfo$']['next'](_0xdc9560);}['_onCursorDelete'](_0xe49120){const _0x13f2db=_0x3a7433,{memberID:_0x5a3140}=_0xe49120[_0x13f2db(0x217)],_0x5be73f=this[_0x13f2db(0x2a2)];_0x5be73f['delete'](_0x5a3140),this[_0x13f2db(0x3fd)][_0x13f2db(0x293)](_0x5be73f);}[_0x3a7433(0x248)](_0x288a79,_0x3d1381){const _0x47729e=_0x3a7433;var _0x1102f7,_0x4a7883;const _0x45d5ca=(_0x4a7883=(_0x1102f7=this[_0x47729e(0x2a4)]['getUniverSheetInstance'](this[_0x47729e(0x401)]))==null?void 0x0:_0x1102f7['getSheetBySheetId'](_0x288a79))==null?void 0x0:_0x4a7883[_0x47729e(0x246)]();return(_0x45d5ca==null?void 0x0:_0x45d5ca[_0x47729e(0x2b5)](_0x521267=>_0x385ece[_0x47729e(0x1b6)](_0x521267,_0x3d1381)))||_0x3d1381;}[_0x3a7433(0x3c4)](){const _0x5d5cd6=_0x3a7433,_0x5eb772=new _0x57736b(),_0xdb3118=Hi(),_0x594753=()=>{const _0x258132=_0x474c;_0x5eb772[_0x258132(0x2c4)]();const _0x1a967a=(_0x26fb90,_0x242de3,_0x44ee34,_0x4bc7ed)=>{const _0x287813=_0x258132;let _0x33762c=[];switch(_0x26fb90['id']){case _0x5bfdab['DeleteRangeMoveLeftCommandId']:{_0x33762c=_0x2ad0c0(_0x26fb90,_0x4bc7ed);break;}case _0x5bfdab[_0x287813(0x3e7)]:{_0x33762c=_0x3406ca(_0x26fb90,_0x4bc7ed);break;}case _0x5bfdab[_0x287813(0x315)]:{_0x33762c=_0x1dc9ed(_0x26fb90,_0x4bc7ed);break;}case _0x5bfdab[_0x287813(0x294)]:{_0x33762c=_0x50e396(_0x26fb90,_0x4bc7ed);break;}case _0x5bfdab['InsertRangeMoveRightCommandId']:{_0x33762c=_0x121378(_0x26fb90,_0x4bc7ed);break;}case _0x5bfdab[_0x287813(0x21e)]:{_0x33762c=_0x3599ed(_0x26fb90,_0x4bc7ed);break;}case _0x5bfdab[_0x287813(0x282)]:{_0x33762c=_0x158e95(_0x26fb90,_0x4bc7ed);break;}case _0x5bfdab[_0x287813(0x358)]:{_0x33762c=_0x5cb489(_0x26fb90,_0x4bc7ed);break;}case _0x5bfdab[_0x287813(0x2f3)]:{_0x33762c=_0xdffde2(_0x26fb90,_0x4bc7ed);break;}}const _0xee14d=_0x5b3708(_0x33762c,_0x4bc7ed),_0x513f34=this[_0x287813(0x2a2)][_0x287813(0x359)](_0x242de3);if(_0x513f34&&_0xee14d){const _0x5ee7e0={..._0x513f34,'range':_0xee14d};this[_0x287813(0x2a2)][_0x287813(0x1bf)](_0x242de3,_0x5ee7e0),_0xdb3118(()=>{const _0x2f48b5=_0x287813,_0x186c28=this[_0x2f48b5(0x325)]['registerRefRange'](_0xee14d,_0x40ca0d=>(_0x186c28[_0x2f48b5(0x2c4)](),_0x1a967a(_0x40ca0d,_0x242de3,_0x44ee34,_0xee14d)));_0x5eb772[_0x2f48b5(0x40b)](_0x186c28);});}return{'redos':[],'undos':[]};};this[_0x258132(0x2a2)][_0x258132(0x2eb)]((_0x244376,_0x1727db)=>{const _0x572217=_0x258132,{range:_0x479715,sheetID:_0x2801e5}=_0x244376,_0x1a5cf4=this[_0x572217(0x325)][_0x572217(0x323)](_0x479715,_0x3edf17=>(_0x1a5cf4[_0x572217(0x2c4)](),_0x1a967a(_0x3edf17,_0x1727db,_0x2801e5,_0x479715)));_0x5eb772[_0x572217(0x40b)](_0x1a5cf4);});};this['disposeWithMe'](_0x157525(this[_0x5d5cd6(0x3fd)]['subscribe'](()=>{_0x594753();})));}[_0x3a7433(0x389)](){const _0x654915=_0x3a7433;var _0x123c98,_0x4c0b65;if(this[_0x654915(0x324)]=!0x0,((_0x123c98=this[_0x654915(0x2a4)][_0x654915(0x381)]())==null?void 0x0:_0x123c98['getUnitId']())!==this[_0x654915(0x401)])return;const _0x169ecd=(_0x4c0b65=this[_0x654915(0x1cb)][_0x654915(0x359)](_0xd281b6)[_0x654915(0x23c)]())==null?void 0x0:_0x4c0b65[0x0],_0xb7b8a9=this[_0x654915(0x2a4)]['getCurrentUnitForType'](_0x36653e[_0x654915(0x2a9)])[_0x654915(0x3e9)]();_0x169ecd&&_0xb7b8a9&&this[_0x654915(0x404)](_0xb7b8a9[_0x654915(0x3d2)](),_0x169ecd);}[_0x3a7433(0x284)](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0x27384c(_0x546954)),B(0x3,_0x27384c(Ke)),B(0x4,_0x27384c(_0xba6281)),B(0x5,_0x1cf763),B(0x6,_0x23b771),B(0x7,_0x27384c(_0xc89b4))],Be);var Yi=Object['getOwnPropertyDescriptor'],Wi=(_0x16edb8,_0x22d854,_0x527e52,_0x528d4c)=>{const _0x10b210=_0x3a7433;for(var _0x5c88da=_0x528d4c>0x1?void 0x0:_0x528d4c?Yi(_0x22d854,_0x527e52):_0x22d854,_0x574ef5=_0x16edb8[_0x10b210(0x34d)]-0x1,_0x1002b4;_0x574ef5>=0x0;_0x574ef5--)(_0x1002b4=_0x16edb8[_0x574ef5])&&(_0x5c88da=_0x1002b4(_0x5c88da)||_0x5c88da);return _0x5c88da;},Ce=(_0x374e66,_0x5b37b3)=>(_0x4874e0,_0x4c3091)=>_0x5b37b3(_0x4874e0,_0x4c3091,_0x374e66);let H=class extends _0x572f10{constructor(_0x5b0b3b,_0x2bd7d1,_0x222f4){const _0x4cad08=_0x3a7433;super(),_(this,_0x4cad08(0x3ba),new Map()),_(this,_0x4cad08(0x1eb),new _0x4b5f78()),(this['_univerInstanceService']=_0x5b0b3b,this['_injector']=_0x2bd7d1,this['_collabSessionService']=_0x222f4,this[_0x4cad08(0x20b)]());}['dispose'](){const _0x122452=_0x3a7433;super[_0x122452(0x2c4)](),this[_0x122452(0x1eb)][_0x122452(0x31e)](),this[_0x122452(0x3ba)]['forEach'](_0x30a653=>_0x30a653[_0x122452(0x2c4)]());}[_0x3a7433(0x26f)](_0x3dfa92){const _0xde6c9d=_0x3a7433;return this['_entities']['has'](_0x3dfa92)?this['_entities'][_0xde6c9d(0x359)](_0x3dfa92)[_0xde6c9d(0x298)]:this['_entityInit$'][_0xde6c9d(0x368)](_0x3c21b3(_0xddea22=>_0xddea22[_0xde6c9d(0x401)]===_0x3dfa92),_0x232519(_0x51a6fc=>_0x51a6fc[_0xde6c9d(0x298)]));}['_init'](){const _0x46d027=_0x3a7433;this[_0x46d027(0x2a4)][_0x46d027(0x271)](_0x36653e[_0x46d027(0x2a9)])[_0x46d027(0x368)](_0x7b7810(this[_0x46d027(0x34e)]))[_0x46d027(0x395)](async _0x3d4621=>{const _0x809dec=_0x46d027,_0x1d5111=_0x3d4621['getUnitId'](),_0x2ea440=await this[_0x809dec(0x2be)](_0x1d5111);this[_0x809dec(0x1eb)]['next'](_0x2ea440),this[_0x809dec(0x3ba)][_0x809dec(0x1bf)](_0x1d5111,_0x2ea440);}),this[_0x46d027(0x2a4)][_0x46d027(0x271)](_0x36653e['UNIVER_DOC'])[_0x46d027(0x368)](_0x7b7810(this[_0x46d027(0x34e)]))[_0x46d027(0x368)](_0x3c21b3(_0x5b2196=>!_0x5b2196['getUnitId']()[_0x46d027(0x34a)]('__')))['subscribe'](async _0x282a49=>{const _0x10922c=_0x46d027,_0x373fc4=_0x282a49[_0x10922c(0x385)](),_0x2e9a48=await this['_startDocCollabCursor'](_0x373fc4);this[_0x10922c(0x1eb)][_0x10922c(0x293)](_0x2e9a48),this[_0x10922c(0x3ba)][_0x10922c(0x1bf)](_0x373fc4,_0x2e9a48);}),_0x26d8bd(this[_0x46d027(0x2a4)][_0x46d027(0x281)](_0x36653e[_0x46d027(0x2cc)]),this[_0x46d027(0x2a4)][_0x46d027(0x281)](_0x36653e[_0x46d027(0x2a9)]))['pipe'](_0x7b7810(this[_0x46d027(0x34e)]))[_0x46d027(0x395)](_0xed1e0d=>{const _0x5fd39f=_0x46d027,_0x48c3e2=_0xed1e0d[_0x5fd39f(0x385)](),_0x2c18c0=this[_0x5fd39f(0x3ba)]['get'](_0x48c3e2);_0x2c18c0&&(_0x2c18c0[_0x5fd39f(0x2c4)](),this[_0x5fd39f(0x3ba)]['delete'](_0x48c3e2));});}async[_0x3a7433(0x2be)](_0xf0f321){const _0x3f3381=_0x3a7433,_0x2f1069=await this['_collabSessionService']['requireSession'](_0xf0f321),_0x43fb80=this[_0x3f3381(0x1cb)]['createInstance'](Be,_0xf0f321,_0x2f1069);return _0x43fb80[_0x3f3381(0x1ef)](),_0x43fb80;}async[_0x3a7433(0x288)](_0x492974){const _0xb5408c=_0x3a7433,_0x1d28d6=await this[_0xb5408c(0x322)][_0xb5408c(0x262)](_0x492974),_0x1d4802=this[_0xb5408c(0x1cb)][_0xb5408c(0x28d)](xe,_0x492974,_0x1d28d6);return _0x1d4802['init'](),_0x1d4802;}};H=Wi([Ce(0x0,_0x1cf763),Ce(0x1,_0x27384c(_0x546954)),Ce(0x2,_0x27384c(_0x33dafd))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x36c14b,_0x185f0e){const _0x12c68c=_0x3a7433;let {radius:_0x5ad41a,width:_0x3e9d06,height:_0x4badde}=_0x185f0e;_0x5ad41a=_0x5ad41a!=null?_0x5ad41a:0x0,_0x3e9d06=_0x3e9d06!=null?_0x3e9d06:0x1e,_0x4badde=_0x4badde!=null?_0x4badde:0x1e;let _0x336f59=0x0,_0x10e095=0x0,_0x1ee187=0x0;_0x336f59=_0x10e095=_0x1ee187=Math[_0x12c68c(0x24a)](_0x5ad41a,_0x3e9d06/0x2,_0x4badde/0x2),_0x36c14b[_0x12c68c(0x387)](),_0x36c14b['moveTo'](_0x336f59,0x0),_0x36c14b[_0x12c68c(0x1d4)](_0x3e9d06-_0x10e095,0x0),_0x36c14b['arc'](_0x3e9d06-_0x10e095,_0x10e095,_0x10e095,Math['PI']*0x3/0x2,0x0,!0x1),_0x36c14b[_0x12c68c(0x1d4)](_0x3e9d06,_0x4badde-_0x1ee187),_0x36c14b[_0x12c68c(0x27e)](_0x3e9d06-_0x1ee187,_0x4badde-_0x1ee187,_0x1ee187,0x0,Math['PI']/0x2,!0x1),_0x36c14b[_0x12c68c(0x1d4)](0x0,_0x4badde),_0x36c14b[_0x12c68c(0x1d4)](0x0,_0x336f59),_0x36c14b[_0x12c68c(0x27e)](_0x336f59,_0x336f59,_0x336f59,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x36c14b[_0x12c68c(0x330)](),_0x185f0e[_0x12c68c(0x37b)]&&(_0x36c14b[_0x12c68c(0x2b8)](),_0x36c14b[_0x12c68c(0x30e)]=_0x185f0e[_0x12c68c(0x37b)],_0x185f0e[_0x12c68c(0x393)]===_0x12c68c(0x243)?_0x36c14b['fill']('evenodd'):_0x36c14b[_0x12c68c(0x37b)](),_0x36c14b[_0x12c68c(0x3b4)]());}class ve extends _0x2a2a66{constructor(_0x47af25,_0x54ec2d){const _0x38a471=_0x3a7433;super(_0x47af25,_0x54ec2d),_(this,'color'),_(this,_0x38a471(0x3f6)),(this[_0x38a471(0x20f)]=_0x54ec2d==null?void 0x0:_0x54ec2d['color'],this['text']=_0x54ec2d==null?void 0x0:_0x54ec2d['text']);}static[_0x3a7433(0x2fb)](_0x29955c,_0x10db39){const _0x5b6547=_0x3a7433,{text:_0x15a676,color:_0x8fbbdb}=_0x10db39;_0x29955c[_0x5b6547(0x2b8)](),_0x29955c[_0x5b6547(0x33b)]=_0x5b6547(0x251);const _0xb94de9=_0x29955c[_0x5b6547(0x2ad)](_0x15a676)[_0x5b6547(0x227)],_0xd1c94e=Math[_0x5b6547(0x24a)](_0xb94de9+0x2*Re,at);ji(_0x29955c,{'height':Q,'radius':0x4,'width':_0xd1c94e,'fill':_0x8fbbdb}),_0x29955c[_0x5b6547(0x30e)]=_0x5b6547(0x37c);const _0x55d6a0=Re,_0x4b2c77=Q-Vi,_0x2c651e=at-0x2*Re;if(_0xb94de9>_0x2c651e){let _0x2a67c9='',_0x5688b5=0x0;for(const _0x21663c of _0x15a676){const _0x45b2ab=_0x29955c[_0x5b6547(0x2ad)](_0x21663c)[_0x5b6547(0x227)];if(_0x5688b5+_0x45b2ab<=_0x2c651e-_0x29955c[_0x5b6547(0x2ad)](_0x5b6547(0x2ab))[_0x5b6547(0x227)])_0x2a67c9+=_0x21663c,_0x5688b5+=_0x45b2ab;else{_0x2a67c9+=_0x5b6547(0x2ab);break;}}_0x29955c[_0x5b6547(0x1c4)](_0x2a67c9,_0x55d6a0,_0x4b2c77);}else _0x29955c['fillText'](_0x15a676,_0x55d6a0,_0x4b2c77);_0x29955c[_0x5b6547(0x3b4)]();}[_0x3a7433(0x237)](_0x3cc0ce){const _0x2d3002=_0x3a7433;ve[_0x2d3002(0x2fb)](_0x3cc0ce,this);}}const De=_0x3a7433(0x1c0),Xi='collab-text-range-',Gi=_0x3a7433(0x1b0),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x3a7433(0x340);class ct{constructor(_0x3945ea,_0x4a92d0,_0x2829bc,_0x2005d3){const _0x3420e4=_0x3a7433;_(this,'_shapes',[]),_(this,_0x3420e4(0x338),null),_(this,'_textBubble',null),_(this,_0x3420e4(0x3a3),null),_(this,'_hideTimer',null),_(this,_0x3420e4(0x249),null),(this[_0x3420e4(0x1c7)]=_0x3945ea,this[_0x3420e4(0x3c5)]=_0x4a92d0,this['_docSkeleton']=_0x2829bc,this['_document']=_0x2005d3,this[_0x3420e4(0x226)]());}set[_0x3a7433(0x363)](_0x56ee6c){const _0xda9513=_0x3a7433;_0x56ee6c?(this[_0xda9513(0x3a3)]&&this[_0xda9513(0x3a3)][_0xda9513(0x36b)](),this[_0xda9513(0x326)]&&this['_textBubble'][_0xda9513(0x1bc)]()):(this['_anchorDot']&&this['_anchorDot'][_0xda9513(0x1bc)](),this[_0xda9513(0x326)]&&this[_0xda9513(0x326)][_0xda9513(0x36b)]());}[_0x3a7433(0x2c4)](){const _0x216ee8=_0x3a7433;for(const _0x3e4b7a of this[_0x216ee8(0x38b)])_0x3e4b7a[_0x216ee8(0x2c4)]();this['_textBubble']&&this[_0x216ee8(0x326)]['dispose'](),this[_0x216ee8(0x3a3)]&&this[_0x216ee8(0x3a3)][_0x216ee8(0x2c4)](),this[_0x216ee8(0x338)]&&this['_anchor']['dispose'](),this[_0x216ee8(0x249)]&&this[_0x216ee8(0x249)]();}[_0x3a7433(0x226)](){const _0x32e605=_0x3a7433;var _0x3f173b;const {_docSkeleton:_0x150b2e,_document:_0x2e3611}=this,{color:_0x2268c4,name:_0x2c15c5,ranges:_0x59e088}=this[_0x32e605(0x1c7)],_0x4c38b9=_0x2e3611[_0x32e605(0x2b2)](),{docsLeft:_0x1c4036,docsTop:_0xac3aa6}=_0x4c38b9,_0x25d925=new _0x388172(_0x4c38b9,_0x150b2e);for(const {startOffset:_0x4fbd9b,endOffset:_0x47dee9,rangeType:_0x359115,segmentId:_0x542a4b,segmentPage:_0x191a2b,collapsed:_0x3ca612,isActive:_0xadf3c5}of _0x59e088){const _0x34efc5=_0x150b2e[_0x32e605(0x1fb)](_0x4fbd9b,!0x0,_0x542a4b,_0x191a2b);let _0x164bc6=_0x150b2e[_0x32e605(0x1fb)](_0x47dee9,!0x0,_0x542a4b,_0x191a2b);if(_0x164bc6==null&&(_0x164bc6=_0x150b2e[_0x32e605(0x1fb)](_0x47dee9-0x1,!0x1,_0x542a4b,_0x191a2b)),_0xadf3c5){const {contentBoxPointGroup:_0x1f8c6b}=_0x25d925[_0x32e605(0x255)](_0x164bc6,_0x164bc6);if(_0x1f8c6b[_0x32e605(0x34d)]===0x0)continue;this['_drawAnchor'](_0x2268c4,_0x1f8c6b,_0x1c4036,_0xac3aa6,_0x2c15c5),this[_0x32e605(0x249)]=this['_handleHover']();}if(_0x34efc5&&_0x164bc6){if(_0x359115===_0x1de649[_0x32e605(0x1b7)]){const _0x2eefcf=new _0x2166fb(_0x4c38b9,_0x150b2e),{pointGroup:_0x13c1a6}=(_0x3f173b=_0x2eefcf[_0x32e605(0x255)](_0x34efc5,_0x164bc6))!=null?_0x3f173b:{};if(_0x13c1a6==null||_0x13c1a6[_0x32e605(0x34d)]===0x0)continue;this[_0x32e605(0x241)](_0x2268c4,_0x13c1a6,_0x1c4036,_0xac3aa6);}else{if(!_0x3ca612){const {borderBoxPointGroup:_0x528cd2}=_0x25d925[_0x32e605(0x255)](_0x34efc5,_0x164bc6);if(_0x528cd2['length']===0x0)continue;this[_0x32e605(0x35c)](_0x2268c4,_0x528cd2,_0x1c4036,_0xac3aa6);}}}}}['_drawAnchor'](_0xb98222,_0x44ccd8,_0x28a136,_0x57d29e,_0x4355b0){const _0x20a9e0=_0x3a7433,_0x1091aa=this[_0x20a9e0(0x23e)](_0x44ccd8),{left:_0x3f9bfe,top:_0x27761e,height:_0xfc3f4a}=_0x1091aa,_0x8dbd90=this[_0x20a9e0(0x269)](),_0x381e24=zi/_0x8dbd90,_0x94382d=new _0x4dfe17(De+_0x3f0ee8(z),{'left':_0x3f9bfe+_0x28a136-_0x381e24,'top':_0x27761e+_0x57d29e,'height':_0xfc3f4a,'width':Ki,'fill':_0xb98222||_0x25acc8(_0x164b29[_0x20a9e0(0x3e8)],0x0),'strokeWidth':_0x381e24,'stroke':Ji,'evented':!0x0});this[_0x20a9e0(0x338)]=_0x94382d,this[_0x20a9e0(0x3c5)][_0x20a9e0(0x21c)](_0x94382d,_0x3e1dcd);const _0x47a9d1=new _0x4dfe17(De+_0x3f0ee8(z),{'left':_0x3f9bfe+_0x28a136-_0x381e24,'top':_0x27761e+_0x57d29e-Ne/0x2,'height':Ne,'width':Ne,'fill':_0xb98222||_0x25acc8(_0x164b29[_0x20a9e0(0x3e8)],0x0),'strokeWidth':0x0,'stroke':_0xb98222||_0x25acc8(_0x164b29[_0x20a9e0(0x3e8)],0x0),'evented':!0x1});this[_0x20a9e0(0x3a3)]=_0x47a9d1,this[_0x20a9e0(0x3c5)][_0x20a9e0(0x21c)](_0x47a9d1,_0x3e1dcd);const _0x988b62=new ve(De+_0x3f0ee8(z),{'left':_0x3f9bfe+_0x28a136-_0x381e24,'top':_0x27761e+_0x57d29e-Q,'text':_0x4355b0,'color':_0xb98222});this[_0x20a9e0(0x326)]=_0x988b62,this[_0x20a9e0(0x3c5)][_0x20a9e0(0x21c)](_0x988b62,_0x3e1dcd),this[_0x20a9e0(0x363)]=!0x1;}[_0x3a7433(0x3be)](){const _0x188fa6=_0x3a7433,_0x1354b8=this[_0x188fa6(0x338)]['onPointerEnter$'][_0x188fa6(0x382)](()=>{const _0x583925=_0x188fa6;this[_0x583925(0x363)]=!0x0;}),_0x933964=this[_0x188fa6(0x338)][_0x188fa6(0x260)]['subscribeEvent'](()=>{const _0x418038=_0x188fa6;this[_0x418038(0x259)]&&clearTimeout(this[_0x418038(0x259)]),this[_0x418038(0x259)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x5c0e24=_0x188fa6;_0x1354b8['unsubscribe'](),_0x933964[_0x5c0e24(0x38e)]();};}[_0x3a7433(0x35c)](_0x1c1691,_0x5ef632,_0x34e086,_0x2024ed){const _0x4f9b44=_0x3a7433,_0x4d2d64=new _0x3be8fa(_0x1c1691)['setAlpha'](0.2)['toRgbString'](),_0x37788d=new _0x5b22a5(Xi+_0x3f0ee8(z),{'pointsGroup':_0x5ef632,'fill':_0x4d2d64||_0x25acc8(_0x164b29[_0x4f9b44(0x3e8)],0.2),'left':_0x34e086,'top':_0x2024ed,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4f9b44(0x38b)][_0x4f9b44(0x3b0)](_0x37788d),this['_scene'][_0x4f9b44(0x21c)](_0x37788d,_0x3e1dcd);}[_0x3a7433(0x241)](_0x3bea46,_0xac66e1,_0x2fc19f,_0x1f62f2){const _0x1e375c=_0x3a7433,_0x1761de=new _0x3be8fa(_0x3bea46)['setAlpha'](0.2)[_0x1e375c(0x3ab)](),_0x687bcc=new _0x5b22a5(Gi+_0x3f0ee8(z),{'pointsGroup':_0xac66e1,'fill':_0x1761de||_0x25acc8(_0x164b29[_0x1e375c(0x3e8)],0.2),'left':_0x2fc19f,'top':_0x1f62f2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1e375c(0x38b)][_0x1e375c(0x3b0)](_0x687bcc),this[_0x1e375c(0x3c5)]['addObject'](_0x687bcc,_0x3e1dcd);}['_getAnchorBounding'](_0x3e9627){const _0x48be00=_0x3e9627[0x0],_0x13eecd=_0x48be00[0x0],_0x506064=_0x48be00[0x2],{x:_0x3e5a02,y:_0x4a16a3}=_0x13eecd,{x:_0x88260f,y:_0x349b4d}=_0x506064;return{'left':_0x3e5a02,'top':_0x4a16a3,'width':_0x88260f-_0x3e5a02,'height':_0x349b4d-_0x4a16a3};}[_0x3a7433(0x269)](){const _0x1ae4af=_0x3a7433,{scaleX:_0x8b79e4,scaleY:_0x27a584}=this[_0x1ae4af(0x3c5)][_0x1ae4af(0x2b3)]();return Math[_0x1ae4af(0x346)](_0x8b79e4,_0x27a584);}}var Zi=Object['getOwnPropertyDescriptor'],Qi=(_0x489000,_0x2d4852,_0x47bd21,_0x48192f)=>{const _0x933c3c=_0x3a7433;for(var _0x2ed006=_0x48192f>0x1?void 0x0:_0x48192f?Zi(_0x2d4852,_0x47bd21):_0x2d4852,_0xc2a0d6=_0x489000[_0x933c3c(0x34d)]-0x1,_0x5ed45b;_0xc2a0d6>=0x0;_0xc2a0d6--)(_0x5ed45b=_0x489000[_0xc2a0d6])&&(_0x2ed006=_0x5ed45b(_0x2ed006)||_0x2ed006);return _0x2ed006;},ie=(_0x6644ab,_0x2a43aa)=>(_0x392c1b,_0x5256cd)=>_0x2a43aa(_0x392c1b,_0x5256cd,_0x6644ab);let Fe=class extends _0x572f10{constructor(_0x2f80da,_0x154da9,_0x567679,_0x31a7d9,_0x2789d6){const _0x67f9c2=_0x3a7433;super(),_(this,'_cursorShapes',[]),_(this,_0x67f9c2(0x2ce),[]),(this[_0x67f9c2(0x374)]=_0x2f80da,this[_0x67f9c2(0x356)]=_0x154da9,this[_0x67f9c2(0x2a0)]=_0x567679,this[_0x67f9c2(0x212)]=_0x31a7d9,this[_0x67f9c2(0x377)]=_0x2789d6,this[_0x67f9c2(0x20b)]());}[_0x3a7433(0x20b)](){const _0x2d78e8=_0x3a7433,_0x4bd5ce=this[_0x2d78e8(0x374)][_0x2d78e8(0x223)],_0x53b833=this['_docSkeletonManagerService'];this[_0x2d78e8(0x3f9)](_0x3f4d03([this[_0x2d78e8(0x2a0)][_0x2d78e8(0x26f)](_0x4bd5ce),this[_0x2d78e8(0x377)][_0x2d78e8(0x22c)]])[_0x2d78e8(0x368)](_0x4024aa(([_0x981416,_0x4040e7])=>({'skeleton':_0x53b833[_0x2d78e8(0x2cf)](),'cursors':[..._0x981416['values']()][_0x2d78e8(0x1d5)](_0x1248b2=>({..._0x1248b2,'color':this[_0x2d78e8(0x377)]['getColorFromTheme'](_0x1248b2[_0x2d78e8(0x20f)])}))})))[_0x2d78e8(0x395)](_0x2182ed=>{if(this['_removeCollabCursors'](),_0x2182ed){const {skeleton:_0x561c33,cursors:_0x4c0a07}=_0x2182ed;this['_updateCollabCursors'](_0x561c33,_0x4c0a07);}})),this[_0x2d78e8(0x2d7)](),this['_initCommandExecutedListener']();}[_0x3a7433(0x38f)](_0x1bc4c8,_0x2f753a){const _0x3922a1=_0x3a7433,{scene:_0x2fa54e,mainComponent:_0x53956}=this['_context'],_0x490e33=_0x2f753a[_0x3922a1(0x3d1)](_0x462661=>new ct(_0x462661,_0x2fa54e,_0x1bc4c8,_0x53956));this[_0x3922a1(0x245)]=_0x490e33,this[_0x3922a1(0x2ce)]=_0x2f753a;}[_0x3a7433(0x2ac)](){const _0xd1aa00=_0x3a7433;this['_removeCollabCursors']();const {scene:_0x14882a,mainComponent:_0x378032}=this[_0xd1aa00(0x374)],_0x15c157=this[_0xd1aa00(0x356)][_0xd1aa00(0x2cf)](),_0x49a24e=this['_cursors'][_0xd1aa00(0x3d1)](_0x5ce1d2=>new ct(_0x5ce1d2,_0x14882a,_0x15c157,_0x378032));this[_0xd1aa00(0x245)]=_0x49a24e;}[_0x3a7433(0x22b)](){const _0x23ac66=_0x3a7433;this[_0x23ac66(0x245)][_0x23ac66(0x2eb)](_0x2e972c=>_0x2e972c[_0x23ac66(0x2c4)]()),this['_cursorShapes']=[];}[_0x3a7433(0x275)](){const _0x3d3665=[_0x49f1f4['id']];this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x318394=>{const _0x1bc16e=_0x474c;_0x3d3665[_0x1bc16e(0x2f2)](_0x318394['id'])&&_0x318394['params']['unitId']===this['_context']['unitId']&&this[_0x1bc16e(0x2ac)]();}));}[_0x3a7433(0x2d7)](){const _0x577a64=_0x3a7433;this[_0x577a64(0x3f9)](_0x58d8c3(this['_context'][_0x577a64(0x2d6)][_0x577a64(0x279)])[_0x577a64(0x368)](_0x3c1d7f(_0x28ab03=>_0x28ab03[_0x577a64(0x409)]===_0x309312[_0x577a64(0x1b9)]),_0x33ced3(0x10))[_0x577a64(0x395)](()=>{const _0x2c8ce2=_0x577a64;this[_0x2c8ce2(0x2ac)]();}));}};Fe=Qi([ie(0x1,_0x27384c(_0xf10ffb)),ie(0x2,_0x27384c(H)),ie(0x3,_0x23b771),ie(0x4,_0x27384c(_0x54d291))],Fe);const qi=0x1,en=1.5;class tn extends _0x2a2a66{constructor(_0x4928b4,_0x576c16){const _0x13acbe=_0x3a7433;super(_0x4928b4,_0x576c16),_(this,_0x13acbe(0x38a)),_(this,'_hovered',!0x1),_(this,_0x13acbe(0x3fe)),_(this,'_name',''),_(this,_0x13acbe(0x3ac),_0x13acbe(0x1b4)),_(this,_0x13acbe(0x2fe)),(_0x576c16&&this[_0x13acbe(0x403)](_0x576c16),this[_0x13acbe(0x2a7)][_0x13acbe(0x382)](()=>this[_0x13acbe(0x403)]({'hovered':!0x0})),this[_0x13acbe(0x260)][_0x13acbe(0x382)](()=>this[_0x13acbe(0x403)]({'hovered':!0x1})));}[_0x3a7433(0x403)](_0x2d7a29){const _0x17e91f=_0x3a7433;var _0x52df96,_0x5999f8,_0x321e99,_0x39c90d,_0x1dcfab,_0x3af465;this[_0x17e91f(0x38a)]=(_0x52df96=_0x2d7a29[_0x17e91f(0x20f)])!=null?_0x52df96:this[_0x17e91f(0x38a)],this['_hovered']=(_0x5999f8=_0x2d7a29[_0x17e91f(0x31f)])!=null?_0x5999f8:this[_0x17e91f(0x319)],this[_0x17e91f(0x3fe)]=(_0x321e99=_0x2d7a29[_0x17e91f(0x3f2)])!=null?_0x321e99:this[_0x17e91f(0x3fe)],this[_0x17e91f(0x2e8)]=(_0x39c90d=_0x2d7a29[_0x17e91f(0x386)])!=null?_0x39c90d:this['_name'],this['_labelPosition']=(_0x1dcfab=_0x2d7a29['labelPosition'])!=null?_0x1dcfab:this[_0x17e91f(0x3ac)],this[_0x17e91f(0x2fe)]=(_0x3af465=_0x2d7a29[_0x17e91f(0x1be)])!=null?_0x3af465:this[_0x17e91f(0x2fe)],this['transformByState']({'width':_0x2d7a29[_0x17e91f(0x227)],'height':_0x2d7a29[_0x17e91f(0x2af)]});}[_0x3a7433(0x3a7)](_0x214f14){const _0x46d942=_0x3a7433,{row:_0x41700e,column:_0x1c3850}=_0x214f14;if(_0x41700e>=this[_0x46d942(0x3fe)][_0x46d942(0x3c8)]&&_0x41700e<=this['_range']['endRow']&&_0x1c3850>=this[_0x46d942(0x3fe)][_0x46d942(0x2fd)]&&_0x1c3850<=this[_0x46d942(0x3fe)][_0x46d942(0x39f)]){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x3a7433(0x391)](_0x5944b1){return!0x1;}[_0x3a7433(0x237)](_0x2cb7a0){const _0x56389a=_0x3a7433;_0x4dfe17[_0x56389a(0x2fb)](_0x2cb7a0,{'width':this['width'],'height':this[_0x56389a(0x2af)],'strokeWidth':en,'stroke':this[_0x56389a(0x38a)],'evented':!0x1,'fill':this[_0x56389a(0x2fe)]}),this[_0x56389a(0x319)]&&(_0x2cb7a0['save'](),_0x2cb7a0['transform'](0x1,0x0,0x0,0x1,this[_0x56389a(0x227)],this['_labelPosition']===_0x56389a(0x300)?0x0:-Q),ve[_0x56389a(0x2fb)](_0x2cb7a0,{'text':this[_0x56389a(0x2e8)],'color':this[_0x56389a(0x38a)]}),_0x2cb7a0[_0x56389a(0x3b4)]());}}var sn=Object[_0x3a7433(0x210)],nn=(_0x48e805,_0x3bbf22,_0x46ffc7,_0x3015ce)=>{const _0x3c4283=_0x3a7433;for(var _0x2dd8e6=_0x3015ce>0x1?void 0x0:_0x3015ce?sn(_0x3bbf22,_0x46ffc7):_0x3bbf22,_0xc11353=_0x48e805[_0x3c4283(0x34d)]-0x1,_0x35843a;_0xc11353>=0x0;_0xc11353--)(_0x35843a=_0x48e805[_0xc11353])&&(_0x2dd8e6=_0x35843a(_0x2dd8e6)||_0x2dd8e6);return _0x2dd8e6;},be=(_0x136beb,_0x2cfda9)=>(_0x5661e7,_0x2337b9)=>_0x2cfda9(_0x5661e7,_0x2337b9,_0x136beb);const rn=0x1389;let ke=class extends _0x572f10{constructor(_0x59124f,_0x537fa9,_0x3edef7,_0x38ee5){const _0x2ca67a=_0x3a7433;super(),_(this,_0x2ca67a(0x2ce),new Set()),_(this,_0x2ca67a(0x36d),null),(this[_0x2ca67a(0x374)]=_0x59124f,this[_0x2ca67a(0x24d)]=_0x537fa9,this[_0x2ca67a(0x2a0)]=_0x3edef7,this[_0x2ca67a(0x377)]=_0x38ee5,this[_0x2ca67a(0x20b)]());}[_0x3a7433(0x20b)](){const _0x2815fb=_0x3a7433;this[_0x2815fb(0x24d)]['currentSkeleton$'][_0x2815fb(0x368)](_0x45dbd4(this[_0x2815fb(0x34e)]),_0x174e30(_0x11e539=>{const _0x3a0b79=_0x2815fb;if(_0x11e539){const _0x489866=_0x11e539[_0x3a0b79(0x23a)];return _0x3f4d03(this[_0x3a0b79(0x2a0)][_0x3a0b79(0x26f)](this[_0x3a0b79(0x374)]['unitId']),this[_0x3a0b79(0x377)][_0x3a0b79(0x22c)])[_0x3a0b79(0x368)](_0x4024aa(([_0x5beef4,_0x47bec5])=>{const _0x4f05ff=_0x3a0b79,_0x225b6b=new Map();return _0x5beef4[_0x4f05ff(0x2eb)]((_0x265d4c,_0x29381b)=>{const _0x45b3a1=_0x4f05ff;if(_0x265d4c['sheetID']===_0x489866){const _0x43c0bb={..._0x265d4c};_0x43c0bb[_0x45b3a1(0x20f)]=this[_0x45b3a1(0x377)][_0x45b3a1(0x290)](_0x265d4c[_0x45b3a1(0x20f)]),_0x225b6b[_0x45b3a1(0x1bf)](_0x29381b,_0x43c0bb);}}),{'skeleton':_0x11e539,'cursors':_0x225b6b};}));}return _0x44fc3f({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x189ac1,cursors:_0x112b7a})=>{const _0x1bf499=_0x2815fb;this[_0x1bf499(0x22b)](),_0x189ac1&&this[_0x1bf499(0x38f)](_0x189ac1,_0x112b7a);}),this[_0x2815fb(0x24d)][_0x2815fb(0x299)][_0x2815fb(0x395)](_0xc98208=>{const _0x3af684=_0x2815fb;if(_0xc98208==null)return;const {skeleton:_0x331b90}=_0xc98208,{scene:_0x3a7677}=this[_0x3af684(0x374)];_0x3a7677['onPointerMove$'][_0x3af684(0x382)](_0x44a666(_0xc0a1e0=>{const _0x26bb5d=_0x3af684;var _0x28d417,_0x4f6b26;const {offsetX:_0x5a2dee,offsetY:_0x5bf726}=_0xc0a1e0,{x:_0x2808bc,y:_0x5783a9}=_0x3a7677['getRelativeToViewportCoord'](_0x4aee94[_0x26bb5d(0x22d)]([_0x5a2dee,_0x5bf726])),{scaleX:_0xf5c4e,scaleY:_0x41e5d4}=_0x3a7677[_0x26bb5d(0x2b3)](),_0x487e14=_0x3a7677['getViewport'](_0x5d3294[_0x26bb5d(0x1ee)]),_0x4b53ab=_0x3a7677[_0x26bb5d(0x38c)](_0x4aee94[_0x26bb5d(0x22d)]([_0x2808bc,_0x5783a9]),_0x487e14),_0x2d5246=_0x331b90[_0x26bb5d(0x2aa)](_0x5a2dee,_0x5bf726,_0xf5c4e,_0x41e5d4,_0x4b53ab);((_0x28d417=this['_lastPointer'])==null?void 0x0:_0x28d417['column'])===_0x2d5246['column']&&((_0x4f6b26=this[_0x26bb5d(0x36d)])==null?void 0x0:_0x4f6b26[_0x26bb5d(0x200)])===_0x2d5246[_0x26bb5d(0x200)]||this[_0x26bb5d(0x2ce)][_0x26bb5d(0x2eb)](_0xbde128=>{const _0x41a841=_0x26bb5d;_0xbde128[_0x41a841(0x3a7)](_0x2d5246);});},0x64));});}[_0x3a7433(0x38f)](_0x70fe8d,_0x27b59b){const _0x1cd022=_0x3a7433;var _0x198556;const _0x289442=(_0x198556=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x198556[_0x1cd022(0x373)];if(!_0x289442)return;const _0x1a26db=this['_getSheetObject']();if(!_0x1a26db)return;this[_0x1cd022(0x2ce)][_0x1cd022(0x2eb)](_0x10ec9d=>{const _0x4bbd8c=_0x1cd022;_0x10ec9d[_0x4bbd8c(0x1e1)]();});const {scene:_0x5943b1}=_0x1a26db,_0x2bddff=on(Array['from'](_0x27b59b[_0x1cd022(0x2ef)]()))[_0x1cd022(0x3d1)](_0x13113d=>{const _0x373e25=_0x1cd022,{color:_0x37c172,range:_0x137f02,name:_0x31ff95,selection:_0x1130f2,sheetID:_0x2d99a9}=_0x13113d,{startColumn:_0x19463a,startRow:_0x2a59aa,endColumn:_0xbce5b9,endRow:_0x17255f}=_0x137f02,_0x48d86b=_0x3ba7ce(_0x2a59aa,_0x19463a,_0x5943b1,_0x289442),_0x46ff06=_0x3ba7ce(_0x17255f,_0xbce5b9,_0x5943b1,_0x289442),{columnHeaderHeightAndMarginTop:_0x58eed1}=_0x289442,{startX:_0x1f1514,startY:_0x5bd0e8}=_0x48d86b,{endX:_0x1d56aa,endY:_0x1eae91}=_0x46ff06,_0x246584=_0x1d56aa-_0x1f1514,_0x1bba81=_0x1eae91-_0x5bd0e8,_0x261c8e={'labelPosition':_0x5bd0e8-_0x58eed1>=Q?_0x373e25(0x1b4):_0x373e25(0x300),'sheetID':_0x2d99a9,'range':_0x137f02,'color':_0x37c172,'name':_0x31ff95,'selection':_0x1130f2,'left':_0x1f1514,'top':_0x5bd0e8,'width':_0x246584,'height':_0x1bba81,'evented':!0x1,'zIndex':rn};return new tn(_0x31ff95,_0x261c8e);});_0x5943b1[_0x1cd022(0x406)](_0x2bddff,qi),this[_0x1cd022(0x2ce)]=new Set(_0x2bddff);}[_0x3a7433(0x22b)](){const _0x1a4f06=_0x3a7433;var _0xf1b4c3;(_0xf1b4c3=this['_cursors'])==null||_0xf1b4c3[_0x1a4f06(0x2eb)](_0x1ec03b=>_0x1ec03b[_0x1a4f06(0x2c4)]());}[_0x3a7433(0x1da)](){const _0x2b20d1=_0x3a7433;return _0xbc8dbe(this['_context']['unit'],this[_0x2b20d1(0x374)]);}};ke=nn([be(0x1,_0x27384c(_0x3e00d6)),be(0x2,_0x27384c(H)),be(0x3,_0x27384c(_0x54d291))],ke);function on(_0x3b61e9){const _0x5eab2d=_0x3a7433,_0x52283f=new Map();return _0x3b61e9[_0x5eab2d(0x2eb)](_0x20eea2=>{const _0x90d59f=_0x5eab2d;if(_0x52283f['has'](_0x20eea2[_0x90d59f(0x1c9)])){const _0x5880af=_0x52283f[_0x90d59f(0x359)](_0x20eea2[_0x90d59f(0x1c9)]);_0x5880af[_0x90d59f(0x386)]+=',\x20'+_0x20eea2['name'];}else _0x52283f[_0x90d59f(0x1bf)](_0x20eea2['selection'],_0x20eea2);}),Array[_0x5eab2d(0x27d)](_0x52283f[_0x5eab2d(0x2ef)]());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x1778e1,_0xa9ad6d,_0x1c13cc,_0x4e71d6)=>{const _0x1ec3b7=_0x3a7433;for(var _0x383a9e=_0x4e71d6>0x1?void 0x0:_0x4e71d6?an(_0xa9ad6d,_0x1c13cc):_0xa9ad6d,_0x241d45=_0x1778e1[_0x1ec3b7(0x34d)]-0x1,_0x11b978;_0x241d45>=0x0;_0x241d45--)(_0x11b978=_0x1778e1[_0x241d45])&&(_0x383a9e=_0x11b978(_0x383a9e)||_0x383a9e);return _0x383a9e;},F=(_0x1e213d,_0x4cdafc)=>(_0xcd4c75,_0x43fdb0)=>_0x4cdafc(_0xcd4c75,_0x43fdb0,_0x1e213d);let _e=class extends _0x1c0642{constructor(_0x4dab2a,_0x2feb19,_0x5e81c0,_0x405e45,_0x36a8b7,_0x5ce15d){const _0x1fb441=_0x3a7433;super(),this[_0x1fb441(0x405)]=_0x4dab2a,this[_0x1fb441(0x332)]=_0x2feb19,this['_collaborationUIEventService']=_0x5e81c0,this[_0x1fb441(0x2a3)]=_0x405e45,this['_notificationService']=_0x36a8b7,this['_localeService']=_0x5ce15d,this['_setupBeforeClosingHandler'](),this[_0x1fb441(0x20c)]();}[_0x3a7433(0x2ea)](){const _0x2d846b=_0x3a7433;this['disposeWithMe'](this['_beforeCloseService'][_0x2d846b(0x3e4)](()=>{const _0x1b027a=_0x2d846b;if(this[_0x1b027a(0x332)]['saveTaskMap']['size'])return this[_0x1b027a(0x306)]['t'](_0x1b027a(0x407));}));}['_initEvent'](){const _0x3972b1=_0x3a7433;this[_0x3972b1(0x3f9)](this[_0x3972b1(0x292)][_0x3972b1(0x2a5)]['subscribe'](_0x351078=>{const _0x51f708=_0x3972b1;_0x351078['id']===_0xb775dc[_0x51f708(0x2bc)]&&this[_0x51f708(0x2a3)][_0x51f708(0x1bc)]({'type':_0x5e610d['Warning'],'content':this[_0x51f708(0x306)]['t'](_0x51f708(0x24b))}),_0x351078['id']===_0xb775dc[_0x51f708(0x268)]&&this['_messageService'][_0x51f708(0x1bc)]({'type':_0x5e610d[_0x51f708(0x239)],'content':this[_0x51f708(0x306)]['t']('collaboration.closeRoom')}),_0x351078['id']===_0xb775dc[_0x51f708(0x2e5)]&&this[_0x51f708(0x3eb)]['show']({'title':this[_0x51f708(0x306)]['t'](_0x51f708(0x1d6)),'content':this[_0x51f708(0x306)]['t']('permission.content'),'type':'error','duration':0x0}),_0x351078['id']===_0xb775dc[_0x51f708(0x218)]&&this['_messageService']['show']({'type':_0x5e610d[_0x51f708(0x354)],'content':this['_localeService']['t'](_0x51f708(0x342))+'('+_0x351078[_0x51f708(0x217)]+')'}),_0x351078['id']===_0xb775dc[_0x51f708(0x2e1)]&&this[_0x51f708(0x2a3)][_0x51f708(0x1bc)]({'type':_0x5e610d[_0x51f708(0x239)],'content':this[_0x51f708(0x306)]['t'](_0x351078['data']||'')}),_0x351078['id']===_0xb775dc[_0x51f708(0x3fb)]&&this['_messageService'][_0x51f708(0x1bc)]({'type':_0x5e610d['Warning'],'content':this[_0x51f708(0x306)]['t']('session.will-retry')}),_0x351078['id']===_0xb775dc[_0x51f708(0x3e5)]&&this[_0x51f708(0x2a3)][_0x51f708(0x1bc)]({'type':_0x5e610d[_0x51f708(0x354)],'content':this['_localeService']['t'](_0x51f708(0x257))}),_0x351078['id']===_0xb775dc[_0x51f708(0x28a)]&&this[_0x51f708(0x2a3)][_0x51f708(0x1bc)]({'type':_0x5e610d[_0x51f708(0x354)],'content':this[_0x51f708(0x306)]['t']('session.collaboration-timeout')});}));}};function _0x4974(){const _0x2f82af=['split','_maxFormulaLimit','from','arc','none','_onCursorDelete','getTypeOfUnitDisposed$','MoveRangeCommandId','PY_RUNTIME_SCRIPT_ERROR','_toggleOffline','_updateURLWithCurrentState','defineProperty','mutations','_startDocCollabCursor','_clearPolling','SUBMIT_CHANGESET_TIMEOUT','saveOfflineData','bind','createInstance','collabStatus.syncing','_transformService','getColorFromTheme','_memberService','_collaborationUIEventService','next','InsertRangeMoveDownCommandId','textRanges','origin','Failed','cursorInfo$','currentSkeleton$','url(#$1','urlChange$','_checkAndWaitForCalculationPermission','_scheduleHeartbeat','_instanceService','0\x200\x2017\x2016','_collabCursorController','stageInfo','cursorInfo','_messageService','_univerInstanceService','event$','FETCH_MISS','onPointerEnter$','_showGuardMessage','UNIVER_SHEET','getCellPositionByOffset','...','_refreshCollabCursors','measureText','wsSessionTicketUrl','height','REDEMPTION_USER_REDEEM_TIMES_EXCEED','svg','getOffsetConfig','getAncestorScale','newValue','find','asObservable','M0\x200H16V16H0z','save','_uploadLog','addHandlerCallback','getCurrentRevOfUnit','OTHER_CLIENT_EDITING','getParam','_startSheetCollabCursor','executionId','sessionStatus$','_getSessionTicket','getUnhiddenWorksheets','transformSelections','dispose','_scheduleSaving','code','entityInit$','ticket','_initUnhandledRejectionListener','getUndoRedoMutationParamsCache','string','UNIVER_DOC','_saveCache','_cursors','getSkeleton','_config','APPLY_PERMISSION_DENIED','entries','whenReady','addClipboardHook','DATA_SOURCE_TOO_LARGE','engine','_initResize','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_initStatusComponent','univerjs-icon\x20univerjs-icon-','_initCommandInterceptor','transformMutation','clearInterval','syncEditingCollabCursor','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','OffLineIcon','JOIN_ROOM_FAILED','_clearOtherTimers','executeCommand','_assignedColors','PERMISSION_DENIED','green.600','setConfig','_name','_initEntityListener','_setupBeforeClosingHandler','forEach','_docSyncEditingCollabCursorService','_logService','post','values','INTERNAL_ERROR','use','includes','RemoveRowCommandId','ENTITLE_DUP_SUBSCRIPTION','getRenderById','disposeUnit','path','_handleJoinEvent','reconnect','getStateCache','drawWith','activeSheet$','startColumn','_backgroundColor','toString','bottom','assignAColorForMemberID','formula.calculation.started','CURRENT_STATUS_CANNOT_OPERATE','unit','jiqing.500','_localeService','INVITE_CODE_HAS_BEEN_UES','SNAPSHOT_HAS_BEEN_REMOVED','defIds','START_CALCULATION','_send','limitInfo','currentUsage','fillStyle','createSocket','772005MXKUCP','reason','156lmfNLd','_cachedData','?taskId=','InsertColCommandId','invokeId','LICENSE_DISTRO_REJECTED','_transformPreviousActiveRange','_hovered','div','_selfUnitIDs','USER_IS_ANONYMOUS','white','complete','hovered','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','isArray','_collabSessionService','registerRefRange','_online','_refRangeService','_textBubble','_monkeyPatchLogService','_initDependencies','translate(.97)','blue.400','_initUserListener','popstate','runId','APPLY_DUPLICATED','SYNCED','closePath','PAYMENT_CHANNEL_NOT_SUPPORT','_localCacheService','catch','_getFormulaLimitStatus','formula.calculation.unable','[CollaborationDataLoaderController]','_memberID','_anchor','_session','editingUnit','font','some','OFFLINE','attrs','429936xDRAQc','rgba(255,\x20255,\x20255,\x200.01)','now','collaboration.closeRoom','_configService','_registerRenderDependencies','red.300','max','m1Prime','/universer-api/license/formula/limit/status','addEventListener','startsWith','getDocRanges','off-line-icon','length','dispose$','maxFormulaLimit','UniverIcon','INVITE_CODE_ALREADY_BOUND','LOGIN_FAILED','collabCursorState$','Error','REDEMPTION_CODE_NOT_STARTED','_docSkeletonManagerService','LICENSE_EXPORT_SIZE_EXCEEDED','RemoveColCommandId','get','url(#on-line-icon_clip0_910_349)','colorChannel1','_drawTextRange','UPDATE_CURSOR','displayName','has','_uiPartsService','ALREADY_EXISTS','OTHER_CLIENTS_EDITING','_hover','_hasFormulaInDirtyRanges','isActive','purple.300','130907EkeQZN','pipe','setActiveRange','LICENSE_IMPORT_SIZE_EXCEEDED','hide','on-line-icon_clip0_910_349','_lastPointer','searchParams','YUUMI_ALL_TABLES_IS_INVALID','ACTIVE_UNIT_EVENT_CHANNEL','YUUMI_AI_RUN_FAILED','stage','skeleton','_context','replaceDocRanges','removeEventListener','_themeService','YUUMI_SUBSCRIPTION_NOT_FOUND','_handleLeaveEvent','doc.mutation.rich-text-editing','fill','#FFF','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','CONNECTOR_DATA_TOO_LARGE','getValue','AWAITING_WITH_PENDING','getFocusedUnit','subscribeEvent','_currentUsage','all','getUnitId','name','beginPath','ERROR_AGAIN','_toggleOnline','_color','_shapes','getVpScrollXYInfoByPosToVp','beforeCommandExecuted','unsubscribe','_updateCollabCursors','getConfig','triggerDblclick','_pollingInterval','fillRule','USER_NOT_FOUND','subscribe','REDEMPTION_CODE_HAS_BEEN_CREATED','colno','TEXT','_docTransformIMECacheService','off-line-icon_clip0_910_343','SNAPSHOT_INVALID_SNAPSHOT','getCollabEntity$','_renderManagerService','roomMembers$','endColumn','_scheduleClearOtherTimer','ranges','WECHAT_HAS_BEEN_BOUND','_anchorDot','OnLineIcon','error','/universer-api/frontend/logs','onMouseMove','YUUMI_UNABLE_LOAD_URL','replaceState','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','toRgbString','_labelPosition','YUUMI_ASYNCIO_CANCELLED','2803880OlaJSl','totalFormulasToCalculate','push','[Unhandled\x20Rejection]:\x20','ENTITLE_COUPON_EXPIRED','_revisionService','restore','history','_saveTaskMap','setUndoRedoMutationParamsCache','setParam','uni.network.url-service','_entities','_getSaveTimeout','COMPLETION_FINISHED','univer-flex\x20univer-items-center','_handleHover','enableFrontendLog','_urlService','m2Prime','_handleEvent','USER_NOT_INVITED_CODE','_onRefRangeChange','_scene','message','APPLY_REJECT','startRow','with','_collabCursorState$','pluginName','EMAIL_VERIFY_CODE_MISMATCH','_docTransformStateCacheService','disableLocalCache','USERS_LEAVE','APPLY_REVISION_CONFILICT','map','getSheetId','transformMutationsWithChangeset','dirtyRanges','_lastResponseTimestamp','_collaborationController','_handleHeartbeatEvent','currentColor','loadUnit','_imageIoService','socket$','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','size','assign','getformulaLimitStatusUrl','replace','collabStatus.conflict','parseInt','getUnit','registerBeforeClose','SOCKET_FAILED','_unitStatus','DeleteRangeMoveUpCommandId','black','getActiveSheet','collabStatus.synced','_notificationService','onLocalMutation','application/json','9pVZYyn','ENTITLE_COUPON_USED_UP','search','getMemberID','range','_registerDependencies','_taskIds','http://www.w3.org/2000/svg','text','Unknown\x20user','_checkCalculationAvailable','disposeWithMe','_createSocketURL','SOCKET_FAILED_RETRY','functionsExecutedState','_cursorInfo$','_range','NOT_FOUND','MUTATION','unitID','NOT_COLLAB','setShapeProps','_updateLocalCursor','_beforeCloseService','addObjects','collaboration.offline-data-not-saved','/run/','type','3CIoAOY','add','storage','filename','getMember','collab-rect-range-','location','roomMembers','_status$','top','deepClone','contains','RECT','REDEMPTION_INVALID_CODE','resize','sessionTicket','YUUMI_URL_COL_OUT_OF_RANGE','show','random','backgroundColor','set','collab-text-anchor-','ENTITLE_REPORT_LIMIT_EXCEED','symbol','1em','fillText','_unitOnClients','_setFormulaLimitStatus','_cursor','unhandledrejection','selection','REDEMPTION_CODE_FULLY_REDEEMED','_injector','current','updateOfflineData','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','INVITE_CODE_REQUIRED','ENTITLE_CAN_NOT_BUY_LOWER_OTP','1691942EnPhCh','collaboration-client-ui.config','exhaustSavingTask','lineTo','flatMap','permission.title','_colorIndex','_applyCommand','_colorAssignService','_getSheetObject','children','collabStatus.offline','_localStorageService','unload','_ensureSubject','[Window\x20Error]:\x20','makeDirty','yellow.400','status$','override','_heartbeatTimer','univer-mr-2\x20univer-flex\x20univer-text-xl','idSuffix','registerRenderModule','_onCursorUpdate','ENTITLE_NEED_BILLING_ADDRESS','_entityInit$','startFormulaLimitUrl','YUUMI_TABLE_NOT_FOUND_IN_UNIT','VIEW_MAIN','init','UNAUTHENTICATED','AWAITING','unshift','_disabled','_removeClearOtherTimer','_dataLoaderService','UNRECOGNIZED','setTimeout','onCommandExecuted','_collaborationSessionService','stack','findNodePositionByCharIndex','AUTHORIZE_CODE_ILLEGAL','send','clearTimeout','_initWindowErrorListener','row','_initStatusListener','getSheetBySheetId','HEADER_MENU','_roomMembers$','ONLINE','_transformHistoryAndStateStack','transformIMECache','defs','_syncEditingCollabCursorService','4404340FSojZj','_init','_initEvent','pushState','INVALID_ARGUMENT','color','getOwnPropertyDescriptor','result','_commandService','ENTITLE_INVALID_COUPON_CODE','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_transformUndoRedoStack','_updateSubUnitFromURLParams','data','CONFLICT','params','_httpService','REDEMPTION_USER_NOT_ELIGIBLE','addObject','848307XelzTK','InsertRowCommandId','getActiveRange','round','setStateCache','collab-client.tooltip.reconnect','unitId','ENTITLE_USE_COUPON_NOT_1ST_TRADE','formula.calculation.waiting','_render','width','YUUMI_RATE_OVER_LIMIT','TOO_MANY_REQUESTS','removeParam','_removeCollabCursors','currentTheme$','FromArray','MOBILE_VERIFY_CODE_MISMATCH','then','debug','_setupSubUnitSync','REDEMPTION_CODE_INACTIVE','eventID','transformStateCache','undoState','delete','_draw','getCellMatrix','Warning','sheetId','_id','getCurrentSelections','SUCCESS','_getAnchorBounding','PENDING','_docStateChangeManagerService','_drawRectRange','[LogService\x20Error]:\x20','evenodd','getUnitStatus$','_cursorShapes','getMergeData','YUUMI_CONNECTOR_URL_NOT_FOUND','_getMergeRange','_eventUnsubscribe','min','collaboration.single-unit.warning','href','_sheetSkeletonManagerService','on-line-icon','transformRemoteChangeset','registerComponent','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','LOGIN_TOKEN_PROCESSING_FAILED','stringify','subunit','getRangePointData','clipPath','session.connection-failed','YUUMI_NO_CUBOID_FOR_QUESTION','_hideTimer','ENSURE_SNAPSHOT_EXECUTION','ENTITLE_CHAT_LIMIT_EXCEED','/universer-api/license/formula/limit/done','getItem','key','isEditing','onPointerLeave$','[RemoteUniscriptService]:\x20no\x20focused\x20unit','requireSession','11cIeOOz','onRendered','INVALID_INVITE_CODE','subUnitId','tag','CLOSE_ROOM','_getScale','UNDEFINED','ENTITLE_INSUFFICIENT_QUOTA','body','LICENSE_MAX_UNITS_EXCEEDED','NO_OTHER_CLIENTS_EDITING','getCollabCursors$','mask','getTypeOfUnitAdded$','memberID','_docTransformSelectionsService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_initCommandExecutedListener','redoState','xlink:href','setItem','onTransformChange$','enableLocalCache'];_0x4974=function(){return _0x2f82af;};return _0x4974();}_e=cn([F(0x0,_0x18dba0),F(0x1,_0x3d14fc),F(0x2,_0x27384c(_0x5d3b6b)),F(0x3,_0x52022d),F(0x4,_0x7f620d),F(0x5,_0x27384c(_0x5875ca))],_e);var _n=Object[_0x3a7433(0x210)],ln=(_0x1d2d8b,_0x2ea932,_0x4f0edc,_0x29d204)=>{const _0xb60b78=_0x3a7433;for(var _0x1d8a46=_0x29d204>0x1?void 0x0:_0x29d204?_n(_0x2ea932,_0x4f0edc):_0x2ea932,_0x47bc54=_0x1d2d8b[_0xb60b78(0x34d)]-0x1,_0x355270;_0x47bc54>=0x0;_0x47bc54--)(_0x355270=_0x1d2d8b[_0x47bc54])&&(_0x1d8a46=_0x355270(_0x1d8a46)||_0x1d8a46);return _0x1d8a46;},ne=(_0xfad9d,_0x59b2e1)=>(_0x54f1f8,_0x265784)=>_0x59b2e1(_0x54f1f8,_0x265784,_0xfad9d);let le=class extends _0x1c0642{constructor(_0xf09980,_0x35fef4,_0x53e414,_0x568339){const _0x14570f=_0x3a7433;super(),_(this,_0x14570f(0x337)),(this[_0x14570f(0x1cb)]=_0xf09980,this[_0x14570f(0x21a)]=_0x35fef4,this[_0x14570f(0x2ed)]=_0x53e414,this[_0x14570f(0x1f9)]=_0x568339,this['_init']());}[_0x3a7433(0x20b)](){const _0x17ff9d=_0x3a7433;this[_0x17ff9d(0x1ff)](),this['_initUnhandledRejectionListener'](),this[_0x17ff9d(0x327)](),this[_0x17ff9d(0x32b)]();}[_0x3a7433(0x32b)](){const _0x447c6b=_0x3a7433;this[_0x447c6b(0x3f9)](this['_collaborationSessionService'][_0x447c6b(0x3db)][_0x447c6b(0x395)](_0x36a145=>{const _0xaed4f2=_0x447c6b;this[_0xaed4f2(0x337)]=_0x36a145==null?void 0x0:_0x36a145['memberID'];}));}[_0x3a7433(0x1ff)](){const _0x508d07=_0x3a7433,_0x1932f3=_0x1310eb=>{const _0x528da6=_0x474c;var _0x2e5eda;this[_0x528da6(0x2b9)](_0x528da6(0x3a5),_0x528da6(0x1e0)+_0x1310eb[_0x528da6(0x3c6)]+'\x20at\x20'+_0x1310eb[_0x528da6(0x40d)]+':'+_0x1310eb['lineno']+':'+_0x1310eb[_0x528da6(0x397)]+'\x0a'+(((_0x2e5eda=_0x1310eb['error'])==null?void 0x0:_0x2e5eda[_0x528da6(0x1fa)])||''));};window[_0x508d07(0x349)](_0x508d07(0x3a5),_0x1932f3),this[_0x508d07(0x3f9)](()=>{const _0x1c6b36=_0x508d07;window[_0x1c6b36(0x376)](_0x1c6b36(0x3a5),_0x1932f3);});}[_0x3a7433(0x2c9)](){const _0x5259f6=_0x3a7433,_0x55d574=_0x3de372=>{const _0x549985=_0x474c;this['_uploadLog'](_0x549985(0x3a5),_0x549985(0x3b1)+_0x3de372[_0x549985(0x311)]);};window[_0x5259f6(0x349)](_0x5259f6(0x1c8),_0x55d574),this['disposeWithMe'](()=>{const _0x1119b6=_0x5259f6;window[_0x1119b6(0x376)](_0x1119b6(0x1c8),_0x55d574);});}['_monkeyPatchLogService'](){const _0x468611=_0x3a7433,_0x14afd5=this['_logService'][_0x468611(0x3a5)][_0x468611(0x28c)](this[_0x468611(0x2ed)]);this[_0x468611(0x2ed)]['error']=(..._0x14fa80)=>{const _0x27ca51=_0x468611,_0x38336c=_0x14fa80[_0x27ca51(0x3d1)](_0x15fb34=>_0x15fb34 instanceof Error?_0x15fb34['message']+'\x0a'+_0x15fb34[_0x27ca51(0x1fa)]:String(_0x15fb34))['join']('\x20');this[_0x27ca51(0x2b9)](_0x27ca51(0x3a5),_0x27ca51(0x242)+_0x38336c),_0x14afd5(..._0x14fa80);},this[_0x468611(0x3f9)](()=>{this['_logService']['error']=_0x14afd5;});}[_0x3a7433(0x2b9)](_0x1c1c8f,_0x4b3b63){const _0x171f4e=_0x3a7433;try{const _0x403897={'userId':this[_0x171f4e(0x337)],'logLabel':_0x1c1c8f,'content':_0x4b3b63};this['_httpService'][_0x171f4e(0x2ee)](_0x171f4e(0x3a6),{'body':_0x403897})[_0x171f4e(0x333)](()=>{});}catch{}}};le=ln([ne(0x0,_0x27384c(_0x546954)),ne(0x1,_0x27384c(_0x37faeb)),ne(0x2,_0x2e91cd),ne(0x3,_0x27384c(_0x33dafd))],le);const hn=_0x3a7433(0x1d2),_t={};var un=Object['getOwnPropertyDescriptor'],dn=(_0xe1f34b,_0x211473,_0x43346a,_0x3c2c4f)=>{const _0x5e3623=_0x3a7433;for(var _0x52bb87=_0x3c2c4f>0x1?void 0x0:_0x3c2c4f?un(_0x211473,_0x43346a):_0x211473,_0x1d3a25=_0xe1f34b[_0x5e3623(0x34d)]-0x1,_0x4eadc0;_0x1d3a25>=0x0;_0x1d3a25--)(_0x4eadc0=_0xe1f34b[_0x1d3a25])&&(_0x52bb87=_0x4eadc0(_0x52bb87)||_0x52bb87);return _0x52bb87;},lt=(_0x4b6b7b,_0x723b16)=>(_0x1a9059,_0x4c79eb)=>_0x723b16(_0x1a9059,_0x4c79eb,_0x4b6b7b);let he=class{constructor(_0x5b889c,_0x398cc2){const _0x11348d=_0x3a7433;this[_0x11348d(0x28f)]=_0x5b889c,this[_0x11348d(0x39d)]=_0x398cc2;}[_0x3a7433(0x207)](_0x47688d){const _0x498fb6=_0x3a7433;this[_0x498fb6(0x215)](_0x47688d),this[_0x498fb6(0x318)](_0x47688d);}['transformRemoteChangeset'](_0x29c646){const _0x43bd3b=_0x3a7433,{unitID:_0x1cb9c5}=_0x29c646,_0x2968d5=this['_renderManagerService'][_0x43bd3b(0x2f5)](_0x1cb9c5)[_0x43bd3b(0x3c9)](_0x12d831),{redoCache:_0x279163}=_0x2968d5[_0x43bd3b(0x2ca)]();if(_0x279163[_0x43bd3b(0x34d)]===0x0)return _0x29c646;let _0x4fa4bb=_0x144735['deepClone'](_0x29c646[_0x43bd3b(0x287)][0x0]);for(let _0x381de2=0x0;_0x381de2<_0x279163[_0x43bd3b(0x34d)];_0x381de2++){const _0x1f4ae5={'id':_0x43bd3b(0x37a),'params':{..._0x279163[_0x381de2]}},_0xcf792d=this[_0x43bd3b(0x28f)][_0x43bd3b(0x2dc)](_0x4fa4bb,_0x1f4ae5,!0x1);if(_0x28a191(_0xcf792d))throw _0xcf792d[_0x43bd3b(0x3a5)];_0x4fa4bb=_0xcf792d['m1Prime'];}return{..._0x144735[_0x43bd3b(0x1b5)](_0x29c646),'mutations':[_0x4fa4bb]};}[_0x3a7433(0x215)](_0x42e2b6){const _0x195836=_0x3a7433,{unitID:_0x4faad9}=_0x42e2b6,_0x2477b8=this['_renderManagerService']['getRenderById'](_0x4faad9)[_0x195836(0x3c9)](_0x12d831),{undoCache:_0x4fb13c,redoCache:_0x7f5dfc}=_0x2477b8[_0x195836(0x2ca)]();if(_0x4fb13c['length']===0x0||_0x7f5dfc['length']===0x0)return;const _0x28d8d2=[],_0x39920a=[];let _0x1cafdc=_0x144735[_0x195836(0x1b5)](_0x42e2b6[_0x195836(0x287)][0x0]),_0xc62c36=_0x144735['deepClone'](_0x42e2b6['mutations'][0x0]);for(let _0x265342=_0x4fb13c[_0x195836(0x34d)]-0x1;_0x265342>=0x0;_0x265342--){const _0x26641f={'id':_0x195836(0x37a),'params':{..._0x4fb13c[_0x265342]}},_0x44f14c={'id':_0x195836(0x37a),'params':{..._0x7f5dfc[_0x265342]}},_0xf97b3d=this[_0x195836(0x28f)][_0x195836(0x2dc)](_0x1cafdc,_0x26641f,!0x1),_0x4b3f54=this['_transformService'][_0x195836(0x2dc)](_0xc62c36,_0x44f14c,!0x1);if(_0x28a191(_0xf97b3d))throw _0xf97b3d[_0x195836(0x3a5)];if(_0x28a191(_0x4b3f54))throw _0x4b3f54['error'];_0x28d8d2[_0x195836(0x1f2)](_0xf97b3d[_0x195836(0x3c1)][_0x195836(0x219)]),_0x39920a[_0x195836(0x1f2)](_0x4b3f54['m2Prime'][_0x195836(0x219)]),_0x1cafdc=_0xf97b3d[_0x195836(0x347)],_0xc62c36=_0x4b3f54['m1Prime'];}_0x2477b8[_0x195836(0x3b7)]({'undoCache':_0x28d8d2,'redoCache':_0x39920a});}[_0x3a7433(0x318)](_0x38e6fd){const _0x4ea42c=_0x3a7433,{unitID:_0x49dfd3}=_0x38e6fd,_0x4b5f6d=this[_0x4ea42c(0x39d)]['getRenderById'](_0x49dfd3)[_0x4ea42c(0x3c9)](_0x12d831),_0x25341d=_0x4b5f6d[_0x4ea42c(0x21f)]();if(_0x25341d==null)return;const _0x2cd0ec=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x38e6fd[_0x4ea42c(0x401)],'actions':null,'textRanges':[_0x25341d]}}],_0x309112=this[_0x4ea42c(0x28f)][_0x4ea42c(0x3d3)](_0x38e6fd,_0x2cd0ec);if(!_0x4d115f(_0x309112))throw _0x309112[_0x4ea42c(0x3a5)];const _0x5d6e44=_0x309112[_0x4ea42c(0x3c1)][0x0][_0x4ea42c(0x219)][_0x4ea42c(0x295)];Array[_0x4ea42c(0x321)](_0x5d6e44)&&_0x5d6e44['length']&&_0x4b5f6d[_0x4ea42c(0x369)](_0x5d6e44[0x0]);}};he=dn([lt(0x0,_0x3417ba),lt(0x1,_0x47acbb)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x494049,_0x1b4fd5,_0x2e3c5e,_0x4f9dd2)=>{for(var _0x5bec39=_0x4f9dd2>0x1?void 0x0:_0x4f9dd2?Sn(_0x1b4fd5,_0x2e3c5e):_0x1b4fd5,_0x2a3684=_0x494049['length']-0x1,_0x174925;_0x2a3684>=0x0;_0x2a3684--)(_0x174925=_0x494049[_0x2a3684])&&(_0x5bec39=_0x174925(_0x5bec39)||_0x5bec39);return _0x5bec39;},Le=(_0x1557ca,_0x5680aa)=>(_0x570f15,_0x2b51fd)=>_0x5680aa(_0x570f15,_0x2b51fd,_0x1557ca);let ue=class{constructor(_0x3e99f6,_0x5ee8f2,_0x2610d4){const _0x3b7503=_0x3a7433;this[_0x3b7503(0x1cb)]=_0x3e99f6,this['_transformService']=_0x5ee8f2,this[_0x3b7503(0x240)]=_0x2610d4;}[_0x3a7433(0x234)](_0x199489){const _0x1c085d=_0x3a7433;this[_0x1c085d(0x206)](_0x199489);}[_0x3a7433(0x24f)](_0x311db4){const _0x232e52=_0x3a7433,{unitID:_0x111b31}=_0x311db4,{collaboration:_0x43b983}=this[_0x232e52(0x240)]['getStateCache'](_0x111b31);if(_0x43b983[_0x232e52(0x34d)]===0x0)return _0x311db4;let _0x4ef69c=_0x144735[_0x232e52(0x1b5)](_0x311db4['mutations'][0x0]);for(let _0x5ecbfa=0x0;_0x5ecbfa<_0x43b983[_0x232e52(0x34d)];_0x5ecbfa++){const _0x6cc46c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x43b983[_0x5ecbfa][_0x232e52(0x223)],..._0x43b983[_0x5ecbfa]['redoState']}},_0xdb2d78=this['_transformService'][_0x232e52(0x2dc)](_0x4ef69c,_0x6cc46c,!0x1);if(_0x28a191(_0xdb2d78))throw _0xdb2d78[_0x232e52(0x3a5)];_0x4ef69c=_0xdb2d78[_0x232e52(0x347)];}return{..._0x144735['deepClone'](_0x311db4),'mutations':[_0x4ef69c]};}[_0x3a7433(0x206)](_0x5522dc){const _0x3a2e28=_0x3a7433,{unitID:_0x565c18}=_0x5522dc,{history:_0x34b287,collaboration:_0x12ccf0}=this['_docStateChangeManagerService'][_0x3a2e28(0x2fa)](_0x565c18);if(_0x34b287[_0x3a2e28(0x34d)]===0x0&&_0x12ccf0[_0x3a2e28(0x34d)]===0x0)return;const _0x574f93=[],_0x5bf53c=[];let _0x76bd37=_0x144735[_0x3a2e28(0x1b5)](_0x5522dc['mutations'][0x0]),_0x583e0b=_0x144735[_0x3a2e28(0x1b5)](_0x5522dc[_0x3a2e28(0x287)][0x0]);for(let _0xe27962=_0x34b287[_0x3a2e28(0x34d)]-0x1;_0xe27962>=0x0;_0xe27962--){const _0x3399a6={'id':_0x3a2e28(0x37a),'params':{'unitId':_0x34b287[_0xe27962][_0x3a2e28(0x223)],..._0x34b287[_0xe27962][_0x3a2e28(0x235)]}},_0x46532c={'id':_0x3a2e28(0x37a),'params':{'unitId':_0x34b287[_0xe27962][_0x3a2e28(0x223)],..._0x34b287[_0xe27962][_0x3a2e28(0x276)]}},_0x531f8e=this[_0x3a2e28(0x28f)][_0x3a2e28(0x2dc)](_0x76bd37,_0x3399a6,!0x1),_0x318284=this[_0x3a2e28(0x28f)][_0x3a2e28(0x2dc)](_0x583e0b,_0x46532c,!0x1);if(_0x28a191(_0x531f8e))throw _0x531f8e[_0x3a2e28(0x3a5)];if(_0x28a191(_0x318284))throw _0x318284[_0x3a2e28(0x3a5)];_0x574f93['unshift']({..._0x34b287[_0xe27962],'undoState':_0x531f8e[_0x3a2e28(0x3c1)]['params'],'redoState':_0x318284[_0x3a2e28(0x3c1)][_0x3a2e28(0x219)]}),_0x76bd37=_0x531f8e[_0x3a2e28(0x347)],_0x583e0b=_0x318284[_0x3a2e28(0x347)];}_0x76bd37=_0x144735[_0x3a2e28(0x1b5)](_0x5522dc[_0x3a2e28(0x287)][0x0]),_0x583e0b=_0x144735['deepClone'](_0x5522dc[_0x3a2e28(0x287)][0x0]);for(let _0xd6894c=_0x12ccf0[_0x3a2e28(0x34d)]-0x1;_0xd6894c>=0x0;_0xd6894c--){const _0x10484d={'id':_0x3a2e28(0x37a),'params':{'unitId':_0x12ccf0[_0xd6894c]['unitId'],..._0x12ccf0[_0xd6894c][_0x3a2e28(0x235)]}},_0x1ab7f5={'id':_0x3a2e28(0x37a),'params':{'unitId':_0x12ccf0[_0xd6894c][_0x3a2e28(0x223)],..._0x12ccf0[_0xd6894c]['redoState']}},_0x3f91f9=this[_0x3a2e28(0x28f)]['transformMutation'](_0x76bd37,_0x10484d,!0x1),_0x587608=this[_0x3a2e28(0x28f)]['transformMutation'](_0x583e0b,_0x1ab7f5,!0x1);if(_0x28a191(_0x3f91f9))throw _0x3f91f9[_0x3a2e28(0x3a5)];if(_0x28a191(_0x587608))throw _0x587608[_0x3a2e28(0x3a5)];_0x5bf53c[_0x3a2e28(0x1f2)]({..._0x12ccf0[_0xd6894c],'undoState':_0x3f91f9[_0x3a2e28(0x3c1)][_0x3a2e28(0x219)],'redoState':_0x587608[_0x3a2e28(0x3c1)][_0x3a2e28(0x219)]}),_0x76bd37=_0x3f91f9[_0x3a2e28(0x347)],_0x583e0b=_0x587608['m1Prime'];}this[_0x3a2e28(0x240)][_0x3a2e28(0x221)](_0x565c18,{'history':_0x574f93,'collaboration':_0x5bf53c});}};ue=In([Le(0x0,_0x27384c(_0x546954)),Le(0x1,_0x3417ba),Le(0x2,_0x27384c(_0x391aa1))],ue);var mn=Object[_0x3a7433(0x210)],fn=(_0x28ba19,_0x4cff4b,_0x2f26a0,_0x334dbf)=>{const _0x73df9c=_0x3a7433;for(var _0x1e439e=_0x334dbf>0x1?void 0x0:_0x334dbf?mn(_0x4cff4b,_0x2f26a0):_0x4cff4b,_0x368d20=_0x28ba19[_0x73df9c(0x34d)]-0x1,_0x569992;_0x368d20>=0x0;_0x368d20--)(_0x569992=_0x28ba19[_0x368d20])&&(_0x1e439e=_0x569992(_0x1e439e)||_0x1e439e);return _0x1e439e;},ht=(_0x317204,_0x527f66)=>(_0x70dbbe,_0x31ff0f)=>_0x527f66(_0x70dbbe,_0x31ff0f,_0x317204);let de=class{constructor(_0xd0acb2,_0x2bb0e0){const _0x58a8b0=_0x3a7433;this[_0x58a8b0(0x1cb)]=_0xd0acb2,this[_0x58a8b0(0x28f)]=_0x2bb0e0;}[_0x3a7433(0x2c3)](_0x4a6ecd){const _0x272b76=_0x3a7433;var _0x234636;const _0x8af7a4=this[_0x272b76(0x1cb)][_0x272b76(0x359)](_0x1ba78b),_0x3fb0ae=(_0x234636=_0x8af7a4[_0x272b76(0x34b)]())!=null?_0x234636:[];if(_0x3fb0ae['length']===0x0)return;const _0x4db1ac=_0x4a6ecd[_0x272b76(0x401)],_0x123941=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4db1ac,'actions':null,'textRanges':_0x3fb0ae}}],_0x3a3621=this[_0x272b76(0x28f)][_0x272b76(0x3d3)](_0x4a6ecd,_0x123941);if(!_0x4d115f(_0x3a3621))throw _0x3a3621[_0x272b76(0x3a5)];const _0x358864=_0x3a3621[_0x272b76(0x3c1)][0x0][_0x272b76(0x219)][_0x272b76(0x295)];Array[_0x272b76(0x321)](_0x358864)&&_0x358864[_0x272b76(0x34d)]&&_0x8af7a4[_0x272b76(0x375)](_0x358864,{'unitId':_0x4db1ac,'subUnitId':_0x4db1ac},!0x1);}};de=fn([ht(0x0,_0x27384c(_0x546954)),ht(0x1,_0x3417ba)],de);var gn=Object[_0x3a7433(0x210)],En=(_0x6eb969,_0x39f743,_0x5bd8c8,_0x5c554b)=>{const _0x35c15d=_0x3a7433;for(var _0x2c7ac0=_0x5c554b>0x1?void 0x0:_0x5c554b?gn(_0x39f743,_0x5bd8c8):_0x39f743,_0x40bef3=_0x6eb969[_0x35c15d(0x34d)]-0x1,_0x19886d;_0x40bef3>=0x0;_0x40bef3--)(_0x19886d=_0x6eb969[_0x40bef3])&&(_0x2c7ac0=_0x19886d(_0x2c7ac0)||_0x2c7ac0);return _0x2c7ac0;},U=(_0x45a1b2,_0x1f966b)=>(_0x22d5ff,_0x43f228)=>_0x1f966b(_0x22d5ff,_0x43f228,_0x45a1b2);let Se=class extends _0x1c0642{constructor(_0x333ffe,_0x5b3fb7,_0x2359b0,_0x35f2d4,_0x5392cd,_0x2229b2,_0x2b2729,_0x41f85f){const _0x51064d=_0x3a7433;super(),_(this,'_status$',new _0x29de4b(_0x578bc7[_0x51064d(0x402)])),(this[_0x51064d(0x240)]=_0x333ffe,this[_0x51064d(0x3d6)]=_0x5b3fb7,this[_0x51064d(0x399)]=_0x2359b0,this[_0x51064d(0x3cd)]=_0x35f2d4,this['_docTransformSelectionsService']=_0x5392cd,this['_docSyncEditingCollabCursorService']=_0x2229b2,this[_0x51064d(0x2a3)]=_0x2b2729,this[_0x51064d(0x306)]=_0x41f85f,this[_0x51064d(0x2e9)]());}[_0x3a7433(0x2e9)](){const _0x5513aa=_0x3a7433;this['disposeWithMe'](this[_0x5513aa(0x3d6)][_0x5513aa(0x2c7)]['subscribe'](_0x52267a=>{const _0x2bbab8=_0x5513aa,_0x1219d4=this['_docStateChangeManagerService']['docStateChange$'][_0x2bbab8(0x395)](_0x24a298=>{const _0x1cd826=_0x2bbab8;if(_0x24a298==null)return;const {unitId:_0x5035f8,redoState:_0x2a4e9f,commandId:_0x38bb4f}=_0x24a298;if(_0x5035f8!==_0x52267a[_0x1cd826(0x401)])return;const _0x33c610={'id':_0x38bb4f,'type':_0x5ab7c5[_0x1cd826(0x400)],'params':{'unitId':_0x5035f8,'actions':_0x2a4e9f['actions'],'textRanges':null}};_0x52267a[_0x1cd826(0x3ec)](_0x33c610);});if(_0x52267a[_0x2bbab8(0x3f9)](_0x1219d4),_0x52267a instanceof _0x30a98e){const _0x154325={'onTransformIME':_0x248c00=>this[_0x2bbab8(0x399)]['transformIMECache'](_0x248c00),'onTransformState':_0x2ddfd8=>this['_docTransformStateCacheService'][_0x2bbab8(0x234)](_0x2ddfd8),'onTransformSelections':_0x45a40b=>this[_0x2bbab8(0x273)][_0x2bbab8(0x2c3)](_0x45a40b),'onSyncEditingCollabCursor':_0x34700a=>this[_0x2bbab8(0x2ec)][_0x2bbab8(0x2de)](_0x34700a),'onTransformRemoteChangesetByIMECache':_0x8cc1e6=>this[_0x2bbab8(0x399)][_0x2bbab8(0x24f)](_0x8cc1e6),'onTransformRemoteChangesetByStateCache':_0x93d6f6=>this['_docTransformStateCacheService'][_0x2bbab8(0x24f)](_0x93d6f6)};_0x52267a[_0x2bbab8(0x2ba)](_0x154325);}}));}};Se=En([U(0x0,_0x27384c(_0x391aa1)),U(0x1,_0x27384c(_0x4c101c)),U(0x2,_0x27384c(he)),U(0x3,_0x27384c(ue)),U(0x4,_0x27384c(de)),U(0x5,_0x27384c(ze)),U(0x6,_0x52022d),U(0x7,_0x27384c(_0x5875ca))],Se);var Z=(_0x43879a=>(_0x43879a[_0x43879a[_0x3a7433(0x26a)]=0x0]=_0x3a7433(0x26a),_0x43879a[_0x43879a['OK']=0x1]='OK',_0x43879a[_0x43879a['INTERNAL_ERROR']=0x2]=_0x3a7433(0x2f0),_0x43879a[_0x43879a['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x43879a[_0x43879a[_0x3a7433(0x3ff)]=0x4]=_0x3a7433(0x3ff),_0x43879a[_0x43879a[_0x3a7433(0x1f0)]=0x5]=_0x3a7433(0x1f0),_0x43879a[_0x43879a[_0x3a7433(0x361)]=0x6]=_0x3a7433(0x361),_0x43879a[_0x43879a['INVALID_ARGUMENT']=0x7]=_0x3a7433(0x20e),_0x43879a[_0x43879a[_0x3a7433(0x229)]=0x8]=_0x3a7433(0x229),_0x43879a[_0x43879a[_0x3a7433(0x3bc)]=0x9]=_0x3a7433(0x3bc),_0x43879a[_0x43879a[_0x3a7433(0x352)]=0xa]=_0x3a7433(0x352),_0x43879a[_0x43879a[_0x3a7433(0x22e)]=0xb]=_0x3a7433(0x22e),_0x43879a[_0x43879a[_0x3a7433(0x37d)]=0xc]=_0x3a7433(0x37d),_0x43879a[_0x43879a['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x3a7433(0x3cc),_0x43879a[_0x43879a['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x43879a[_0x43879a[_0x3a7433(0x1fc)]=0xf]=_0x3a7433(0x1fc),_0x43879a[_0x43879a[_0x3a7433(0x252)]=0x10]=_0x3a7433(0x252),_0x43879a[_0x43879a[_0x3a7433(0x303)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x43879a[_0x43879a[_0x3a7433(0x388)]=0x65]='ERROR_AGAIN',_0x43879a[_0x43879a[_0x3a7433(0x394)]=0xc9]=_0x3a7433(0x394),_0x43879a[_0x43879a[_0x3a7433(0x31c)]=0xca]=_0x3a7433(0x31c),_0x43879a[_0x43879a['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x43879a[_0x43879a[_0x3a7433(0x39b)]=0x1771]=_0x3a7433(0x39b),_0x43879a[_0x43879a[_0x3a7433(0x308)]=0x1772]=_0x3a7433(0x308),_0x43879a[_0x43879a[_0x3a7433(0x25a)]=0x1773]=_0x3a7433(0x25a),_0x43879a[_0x43879a[_0x3a7433(0x3c7)]=0x1b59]=_0x3a7433(0x3c7),_0x43879a[_0x43879a['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x43879a[_0x43879a[_0x3a7433(0x3d0)]=0x1b5b]=_0x3a7433(0x3d0),_0x43879a[_0x43879a[_0x3a7433(0x2d1)]=0x1b5c]=_0x3a7433(0x2d1),_0x43879a[_0x43879a['APPLY_DUPLICATED']=0x1b5d]=_0x3a7433(0x32e),_0x43879a[_0x43879a['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3a7433(0x37e),_0x43879a[_0x43879a['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x3a7433(0x26d),_0x43879a[_0x43879a[_0x3a7433(0x1ce)]=0x232a]=_0x3a7433(0x1ce),_0x43879a[_0x43879a[_0x3a7433(0x36a)]=0x232b]=_0x3a7433(0x36a),_0x43879a[_0x43879a['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x3a7433(0x357),_0x43879a[_0x43879a[_0x3a7433(0x317)]=0x232d]=_0x3a7433(0x317),_0x43879a[_0x43879a[_0x3a7433(0x3a8)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x43879a[_0x43879a[_0x3a7433(0x1bb)]=0x2712]=_0x3a7433(0x1bb),_0x43879a[_0x43879a['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x3a7433(0x228),_0x43879a[_0x43879a['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x3a7433(0x378),_0x43879a[_0x43879a['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x3a7433(0x258),_0x43879a[_0x43879a[_0x3a7433(0x3ad)]=0x271b]=_0x3a7433(0x3ad),_0x43879a[_0x43879a[_0x3a7433(0x1ed)]=0x271c]=_0x3a7433(0x1ed),_0x43879a[_0x43879a[_0x3a7433(0x36f)]=0x271d]=_0x3a7433(0x36f),_0x43879a[_0x43879a[_0x3a7433(0x214)]=0x271e]=_0x3a7433(0x214),_0x43879a[_0x43879a['YUUMI_AI_RUN_FAILED']=0x271f]=_0x3a7433(0x371),_0x43879a[_0x43879a[_0x3a7433(0x247)]=0x2720]=_0x3a7433(0x247),_0x43879a[_0x43879a[_0x3a7433(0x283)]=0x2af9]=_0x3a7433(0x283),_0x43879a[_0x43879a['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x3a7433(0x307),_0x43879a[_0x43879a[_0x3a7433(0x265)]=0x2ee2]=_0x3a7433(0x265),_0x43879a[_0x43879a[_0x3a7433(0x1cf)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x43879a[_0x43879a[_0x3a7433(0x3c3)]=0x2ee4]=_0x3a7433(0x3c3),_0x43879a[_0x43879a[_0x3a7433(0x351)]=0x2ee5]=_0x3a7433(0x351),_0x43879a[_0x43879a[_0x3a7433(0x3a2)]=0x32c9]=_0x3a7433(0x3a2),_0x43879a[_0x43879a['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x43879a[_0x43879a['EMAIL_HAS_BEEN_BOUND']=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x43879a[_0x43879a[_0x3a7433(0x1d0)]=0x36b1]=_0x3a7433(0x1d0),_0x43879a[_0x43879a[_0x3a7433(0x2d8)]=0x36b2]=_0x3a7433(0x2d8),_0x43879a[_0x43879a[_0x3a7433(0x2f4)]=0x36b3]=_0x3a7433(0x2f4),_0x43879a[_0x43879a[_0x3a7433(0x331)]=0x36b4]=_0x3a7433(0x331),_0x43879a[_0x43879a[_0x3a7433(0x213)]=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x43879a[_0x43879a[_0x3a7433(0x3b2)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x43879a[_0x43879a['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x3a7433(0x3ef),_0x43879a[_0x43879a[_0x3a7433(0x224)]=0x36b8]='ENTITLE_USE_COUPON_NOT_1ST_TRADE',_0x43879a[_0x43879a[_0x3a7433(0x25b)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x43879a[_0x43879a[_0x3a7433(0x1c1)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x43879a[_0x43879a[_0x3a7433(0x26b)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x43879a[_0x43879a[_0x3a7433(0x1ea)]=0x37dd]=_0x3a7433(0x1ea),_0x43879a[_0x43879a[_0x3a7433(0x1b8)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x43879a[_0x43879a['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x3a7433(0x232),_0x43879a[_0x43879a[_0x3a7433(0x1ca)]=0x3a9b]=_0x3a7433(0x1ca),_0x43879a[_0x43879a[_0x3a7433(0x355)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x43879a[_0x43879a[_0x3a7433(0x21b)]=0x3a9d]=_0x3a7433(0x21b),_0x43879a[_0x43879a[_0x3a7433(0x2b0)]=0x3a9e]=_0x3a7433(0x2b0),_0x43879a[_0x43879a['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x3a7433(0x396),_0x43879a[_0x43879a[_0x3a7433(0x2d5)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x43879a[_0x43879a[_0x3a7433(0x1f6)]=-0x1]=_0x3a7433(0x1f6),_0x43879a))(Z||{});function vn(_0x21af0b){const _0xe191fc=_0x3a7433;var _0x12927a,_0x59bb3a;const _0x464f64=(_0x12927a=_0x21af0b[_0xe191fc(0x2a1)])==null?void 0x0:_0x12927a[_0xe191fc(0x372)],_0x14e756=((_0x59bb3a=_0x21af0b['stageInfo'])==null?void 0x0:_0x59bb3a[_0xe191fc(0x3af)])||0x0;return _0x464f64===_0x5ee1af[_0xe191fc(0x30a)]&&_0x14e756>0x0;}function pn(_0x224435){const _0xde9338=_0x3a7433;return _0x224435[_0xde9338(0x3fc)]===_0x3f1c63[_0xde9338(0x23d)];}var On=Object[_0x3a7433(0x210)],Tn=(_0xefe3b5,_0x101ea1,_0x446b54,_0x3fa20c)=>{const _0x36d810=_0x3a7433;for(var _0x2959e7=_0x3fa20c>0x1?void 0x0:_0x3fa20c?On(_0x101ea1,_0x446b54):_0x101ea1,_0xcfdd5b=_0xefe3b5[_0x36d810(0x34d)]-0x1,_0x5f2f61;_0xcfdd5b>=0x0;_0xcfdd5b--)(_0x5f2f61=_0xefe3b5[_0xcfdd5b])&&(_0x2959e7=_0x5f2f61(_0x2959e7)||_0x2959e7);return _0x2959e7;},P=(_0x72694d,_0x3b6069)=>(_0x22287d,_0x1d40d6)=>_0x3b6069(_0x22287d,_0x1d40d6,_0x72694d);const Cn=_0x3a7433(0x348),Rn='/universer-api/license/formula/limit/start',Dn=_0x3a7433(0x25c);let Ie=class extends _0x1c0642{constructor(_0x5dbc79,_0x312b83,_0x5af08e,_0x5015eb,_0x5547f8,_0x2bda97,_0x19ef6f){const _0x7f8083=_0x3a7433;super(),_(this,_0x7f8083(0x392),null),_(this,_0x7f8083(0x27c),0x0),_(this,_0x7f8083(0x383),0x0),_(this,_0x7f8083(0x3f4),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x7f8083(0x2a3)]=_0x5dbc79,this[_0x7f8083(0x212)]=_0x312b83,this['_configService']=_0x5af08e,this[_0x7f8083(0x21a)]=_0x5015eb,this[_0x7f8083(0x2a4)]=_0x5547f8,this[_0x7f8083(0x2ed)]=_0x2bda97,this[_0x7f8083(0x306)]=_0x19ef6f,this['_initCommandInterceptor']());}[_0x3a7433(0x2db)](){const _0x474f2f=_0x3a7433;this[_0x474f2f(0x3f9)](this[_0x474f2f(0x212)][_0x474f2f(0x38d)]((_0x3257ae,_0xce4d5d)=>{const _0x234501=_0x474f2f;var _0x3ae3f7;if(_0x3257ae['id']!==_0x54c579['id'])return;const _0x43a88d=_0x3257ae[_0x234501(0x219)];if(!this[_0x234501(0x364)]((_0x3ae3f7=_0x43a88d[_0x234501(0x3d4)])!=null?_0x3ae3f7:[]))return;if(!this['_checkCalculationAvailable']())throw this['_checkAndWaitForCalculationPermission'](_0x3257ae,_0xce4d5d),this[_0x234501(0x2a8)](),new _0x853b6b();})),this[_0x474f2f(0x3f9)](this[_0x474f2f(0x212)][_0x474f2f(0x1f8)]((_0x540d41,_0x51d432)=>{const _0x4a5140=_0x474f2f;if(_0x540d41['id']!==_0x8e2626['id'])return;const _0xa4838f=_0x540d41['params'];if(vn(_0xa4838f)){const _0x1bc149=_0x3f0ee8();this[_0x4a5140(0x3f4)][_0x4a5140(0x3b0)](_0x1bc149),this['_startCalculationLimit'](_0x1bc149);}else{if(pn(_0xa4838f)&&this['_taskIds'][_0x4a5140(0x34d)]>0x0){const _0x3fb949=this['_taskIds']['shift']();this['_releaseCalculationLimit'](_0x3fb949);}}}));}['dispose'](){const _0x3ddb55=_0x3a7433;super[_0x3ddb55(0x2c4)](),this['_clearPolling'](),this['_taskIds']=[],this[_0x3ddb55(0x383)]=0x0,this[_0x3ddb55(0x27c)]=0x0,this[_0x3ddb55(0x3d5)]=0x0;}async[_0x3a7433(0x29c)](_0x4c193b,_0x21a3a0){const _0x37cfdd=_0x3a7433;for(let _0x169758=0x0;_0x169758<0x1e;_0x169758++)try{if(await this[_0x37cfdd(0x334)](),this[_0x37cfdd(0x3f8)]()){this[_0x37cfdd(0x1d8)](_0x4c193b,_0x21a3a0),this['_messageService'][_0x37cfdd(0x1bc)]({'content':this[_0x37cfdd(0x306)]['t'](_0x37cfdd(0x302)),'type':_0x5e610d['Success']});return;}await new Promise(_0x57209f=>{const _0x597dfe=_0x37cfdd;this['_pollingInterval']=window[_0x597dfe(0x1f7)](_0x57209f,0x3e8);});}catch(_0x8f579d){this[_0x37cfdd(0x2ed)][_0x37cfdd(0x3a5)](_0x8f579d);}this['_messageService'][_0x37cfdd(0x1bc)]({'content':this[_0x37cfdd(0x306)]['t'](_0x37cfdd(0x335)),'type':_0x5e610d[_0x37cfdd(0x354)]});}['_applyCommand'](_0x36963c,_0x322c0d){const _0x3edd4a=_0x3a7433;try{this[_0x3edd4a(0x212)][_0x3edd4a(0x2e3)](_0x36963c['id'],_0x36963c['params'],_0x322c0d);}catch(_0x6114db){this[_0x3edd4a(0x2ed)][_0x3edd4a(0x3a5)](_0x6114db);}}[_0x3a7433(0x1c6)](_0x3ed297,_0x5ad05a){const _0x336b88=_0x3a7433;_0x5ad05a<this[_0x336b88(0x3d5)]||(this[_0x336b88(0x3d5)]=_0x5ad05a,this[_0x336b88(0x27c)]=Number[_0x336b88(0x3e2)](_0x3ed297[_0x336b88(0x34f)]),this[_0x336b88(0x383)]=Number[_0x336b88(0x3e2)](_0x3ed297[_0x336b88(0x30d)]));}async['_startCalculationLimit'](_0x7406da){const _0x2bd37c=_0x3a7433;var _0x36d61e,_0x6d9757;const _0x552dcd=Date['now']();try{const _0x2a810f=((_0x36d61e=this[_0x2bd37c(0x343)]['getConfig'](_0x3f2cb9))==null?void 0x0:_0x36d61e[_0x2bd37c(0x1ec)])||Rn,_0x54ffb7=(await this[_0x2bd37c(0x21a)][_0x2bd37c(0x2ee)](_0x2a810f,{'body':JSON[_0x2bd37c(0x253)]({'taskId':_0x7406da})}))['body'];if(((_0x6d9757=_0x54ffb7[_0x2bd37c(0x3a5)])==null?void 0x0:_0x6d9757[_0x2bd37c(0x2c6)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x54ffb7[_0x2bd37c(0x30c)],_0x552dcd);}catch(_0x653a84){this['_logService'][_0x2bd37c(0x3a5)](_0x653a84);}}async[_0x3a7433(0x334)](_0x31ef61){const _0x3d3bb7=_0x3a7433;var _0x2513d8,_0x1f7ef8;const _0x2fddd8=Date['now']();try{const _0x568c39=((_0x2513d8=this[_0x3d3bb7(0x343)][_0x3d3bb7(0x390)](_0x3f2cb9))==null?void 0x0:_0x2513d8[_0x3d3bb7(0x3df)])||Cn,_0x27d3b9=_0x31ef61?_0x568c39+_0x3d3bb7(0x314)+encodeURIComponent(_0x31ef61):_0x568c39,_0x650025=(await this[_0x3d3bb7(0x21a)][_0x3d3bb7(0x359)](_0x27d3b9))[_0x3d3bb7(0x26c)];if(((_0x1f7ef8=_0x650025[_0x3d3bb7(0x3a5)])==null?void 0x0:_0x1f7ef8['code'])!==Z['OK'])return;this[_0x3d3bb7(0x1c6)](_0x650025['limitInfo'],_0x2fddd8);}catch(_0x1a9b80){this[_0x3d3bb7(0x2ed)][_0x3d3bb7(0x3a5)](_0x1a9b80);}}async['_releaseCalculationLimit'](_0x44de82){const _0x37a9ac=_0x3a7433;var _0x44228a,_0x3e831c;const _0x4aed1a=Date[_0x37a9ac(0x341)]();try{const _0x51044c=((_0x44228a=this['_configService'][_0x37a9ac(0x390)](_0x3f2cb9))==null?void 0x0:_0x44228a['releaseFormulaLimitUrl'])||Dn,_0x2806ba=(await this[_0x37a9ac(0x21a)]['post'](_0x51044c,{'body':JSON[_0x37a9ac(0x253)]({'taskId':_0x44de82})}))[_0x37a9ac(0x26c)];if(((_0x3e831c=_0x2806ba[_0x37a9ac(0x3a5)])==null?void 0x0:_0x3e831c[_0x37a9ac(0x2c6)])!==Z['OK'])return;this[_0x37a9ac(0x1c6)](_0x2806ba[_0x37a9ac(0x30c)],_0x4aed1a);}catch(_0x263890){this[_0x37a9ac(0x2ed)][_0x37a9ac(0x3a5)](_0x263890);}}[_0x3a7433(0x3f8)](){const _0x3e7b9c=_0x3a7433;return this[_0x3e7b9c(0x27c)]===0x0?!0x0:this[_0x3e7b9c(0x27c)]-this[_0x3e7b9c(0x383)]>0x0;}[_0x3a7433(0x289)](){const _0x3ccf6f=_0x3a7433;this[_0x3ccf6f(0x392)]&&(clearTimeout(this[_0x3ccf6f(0x392)]),this[_0x3ccf6f(0x392)]=null);}['_showGuardMessage'](){const _0x3f4e95=_0x3a7433;this['_messageService'][_0x3f4e95(0x1bc)]({'content':this['_localeService']['t'](_0x3f4e95(0x225)),'type':_0x5e610d['Loading']});}[_0x3a7433(0x364)](_0xcab34e){const _0x115884=_0x3a7433;for(const _0x513183 of _0xcab34e){const {unitId:_0x5ee88e,sheetId:_0x433179,range:_0x22af89}=_0x513183,_0xfe8f92=this[_0x115884(0x2a4)][_0x115884(0x3e3)](_0x5ee88e);if(!_0xfe8f92)continue;const _0x2e4f91=_0xfe8f92[_0x115884(0x202)](_0x433179);if(!_0x2e4f91)continue;const _0x275995=_0x2e4f91[_0x115884(0x238)]();for(let _0x3f699a=_0x22af89[_0x115884(0x3c8)];_0x3f699a<=_0x22af89['endRow'];_0x3f699a++)for(let _0x522859=_0x22af89[_0x115884(0x2fd)];_0x522859<=_0x22af89[_0x115884(0x39f)];_0x522859++){const _0x4b4fd0=_0x275995[_0x115884(0x37f)](_0x3f699a,_0x522859);if(_0x4b4fd0&&(_0x5b7c7b(_0x4b4fd0['f'])||_0x433ef4(_0x4b4fd0['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x27384c(_0x52022d)),P(0x1,_0x23b771),P(0x2,_0x574df3),P(0x3,_0x27384c(_0x37faeb)),P(0x4,_0x1cf763),P(0x5,_0x2e91cd),P(0x6,_0x27384c(_0x5875ca))],Ie);var Nn=Object[_0x3a7433(0x210)],bn=(_0x136011,_0x1180b0,_0x5786e0,_0x469239)=>{const _0x48a160=_0x3a7433;for(var _0x2fc4ea=_0x469239>0x1?void 0x0:_0x469239?Nn(_0x1180b0,_0x5786e0):_0x1180b0,_0x4b1f9d=_0x136011[_0x48a160(0x34d)]-0x1,_0x58a8bc;_0x4b1f9d>=0x0;_0x4b1f9d--)(_0x58a8bc=_0x136011[_0x4b1f9d])&&(_0x2fc4ea=_0x58a8bc(_0x2fc4ea)||_0x2fc4ea);return _0x2fc4ea;},Ue=(_0x224f3a,_0x531bd0)=>(_0x2ac27c,_0x2421d6)=>_0x531bd0(_0x2ac27c,_0x2421d6,_0x224f3a);let He=class extends _0x1c0642{constructor(_0x186b82,_0x35d8ad,_0x4cfec6){const _0x12267e=_0x3a7433;super(),_(this,_0x12267e(0x313),new Map()),_(this,_0x12267e(0x3b6),new Map()),_(this,_0x12267e(0x1f3),!0x1),(this['_configService']=_0x186b82,this[_0x12267e(0x1dd)]=_0x35d8ad,this[_0x12267e(0x3b3)]=_0x4cfec6);}[_0x3a7433(0x3ce)](){const _0x30d222=_0x3a7433;this[_0x30d222(0x1f3)]=!0x0;}[_0x3a7433(0x27a)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x16e96a=_0x3a7433;return this[_0x16e96a(0x3b6)];}['dispose'](){const _0x285d56=_0x3a7433;this[_0x285d56(0x1d3)]()[_0x285d56(0x22f)](()=>super[_0x285d56(0x2c4)]());}async['loadOfflineData'](_0x275e26){const _0x473017=_0x3a7433;return this[_0x473017(0x1f3)]?null:this[_0x473017(0x1dd)][_0x473017(0x25d)](_0x1f06b2(_0x275e26));}async[_0x3a7433(0x28b)](_0x189fc3,_0x414d61){const _0x4b36d8=_0x3a7433;return!!this[_0x4b36d8(0x1dd)]['setItem'](_0x189fc3,_0x414d61);}[_0x3a7433(0x1cd)](_0x5830b9,_0x224b45,_0x3f1032,_0x2b3048){const _0x2852ff=_0x3a7433,_0x1c0aaf=this[_0x2852ff(0x3b3)][_0x2852ff(0x2bb)](_0x5830b9);this[_0x2852ff(0x313)][_0x2852ff(0x1bf)](_0x5830b9,{'unitID':_0x5830b9,'type':_0x224b45,'awaitingChangeset':_0x3f1032,'mutations':_0x2b3048,'rev':_0x1c0aaf}),this[_0x2852ff(0x3b6)][_0x2852ff(0x35f)](_0x5830b9)||this['_scheduleSaving'](_0x5830b9);}[_0x3a7433(0x2c5)](_0x1d289e){const _0x2453fa=_0x3a7433,_0xe8fb83=this[_0x2453fa(0x3bb)]();_0xe8fb83===0x0?this[_0x2453fa(0x2cd)](_0x1d289e):this['_saveTaskMap'][_0x2453fa(0x1bf)](_0x1d289e,setTimeout(()=>this[_0x2453fa(0x2cd)](_0x1d289e),_0xe8fb83));}[_0x3a7433(0x3bb)](){const _0x44a705=_0x3a7433;var _0x653ef7;return(_0x653ef7=this[_0x44a705(0x343)][_0x44a705(0x390)](_0x4f98ba))!=null?_0x653ef7:_0x3051c8;}[_0x3a7433(0x2cd)](_0x223ff3){const _0xcde4da=_0x3a7433,_0x688eab=this[_0xcde4da(0x3b6)][_0xcde4da(0x359)](_0x223ff3);return _0x688eab!==void 0x0&&window[_0xcde4da(0x1fe)](_0x688eab),this[_0xcde4da(0x1dd)]['setItem'](_0x1f06b2(_0x223ff3),this[_0xcde4da(0x313)][_0xcde4da(0x359)](_0x223ff3))[_0xcde4da(0x22f)](()=>this[_0xcde4da(0x3b6)]['delete'](_0x223ff3));}async['exhaustSavingTask'](){const _0x39db8c=_0x3a7433,_0x48d5a3=[];this[_0x39db8c(0x3b6)][_0x39db8c(0x2eb)]((_0x45f074,_0x59841e)=>{const _0x50d5c0=_0x39db8c;window['clearTimeout'](_0x45f074),_0x48d5a3[_0x50d5c0(0x3b0)](this['_saveCache'](_0x59841e)[_0x50d5c0(0x22f)](()=>{const _0x55e281=_0x50d5c0;this['_saveTaskMap'][_0x55e281(0x236)](_0x59841e);}));}),await Promise[_0x39db8c(0x384)](_0x48d5a3);}};He=bn([Ue(0x0,_0x574df3),Ue(0x1,_0x32ff2a),Ue(0x2,_0x27384c(_0x4a7a7a))],He);class Ln extends _0x572f10{constructor(){const _0x243511=_0x3a7433;super(),_(this,'urlChange$'),this[_0x243511(0x29b)]=_0x57cde1(window,_0x243511(0x32c))[_0x243511(0x368)](_0x7b7810(this[_0x243511(0x34e)]),_0xe65cb8(0x1),_0x2a23d6(void 0x0));}[_0x3a7433(0x3b8)](_0x2c3966,_0x5050a9,_0x1df6ae=!0x1){const _0x2aa796=_0x3a7433,_0x5a9519=new URL(window[_0x2aa796(0x1b1)][_0x2aa796(0x24c)]);_0x5a9519[_0x2aa796(0x36e)][_0x2aa796(0x1bf)](_0x2c3966,_0x5050a9),_0x1df6ae?window[_0x2aa796(0x3b5)][_0x2aa796(0x3a9)]('','',_0x5a9519[_0x2aa796(0x2ff)]()):window[_0x2aa796(0x3b5)]['pushState']('','',_0x5a9519[_0x2aa796(0x2ff)]());}[_0x3a7433(0x22a)](_0x5801a7,_0x203520=!0x1){const _0x70d990=_0x3a7433,_0x3569fd=new URL(window[_0x70d990(0x1b1)][_0x70d990(0x24c)]);_0x3569fd[_0x70d990(0x36e)]['delete'](_0x5801a7),_0x203520?window[_0x70d990(0x3b5)][_0x70d990(0x3a9)]('','',_0x3569fd[_0x70d990(0x2ff)]()):window[_0x70d990(0x3b5)][_0x70d990(0x20d)]('','',_0x3569fd[_0x70d990(0x2ff)]());}[_0x3a7433(0x2bd)](_0x3c9d9b){const _0x504ffd=_0x3a7433;var _0x27f854;return(_0x27f854=new URL(window[_0x504ffd(0x1b1)]['href'])['searchParams'][_0x504ffd(0x359)](_0x3c9d9b))!=null?_0x27f854:void 0x0;}}var Un=Object[_0x3a7433(0x286)],Mn=Object[_0x3a7433(0x210)],An=(_0x2f530a,_0x56df0d,_0x1776f9)=>_0x56df0d in _0x2f530a?Un(_0x2f530a,_0x56df0d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1776f9}):_0x2f530a[_0x56df0d]=_0x1776f9,Pn=(_0x4769db,_0x15ade8,_0x413b26,_0x39d309)=>{const _0x223725=_0x3a7433;for(var _0xa66200=_0x39d309>0x1?void 0x0:_0x39d309?Mn(_0x15ade8,_0x413b26):_0x15ade8,_0x2eceed=_0x4769db[_0x223725(0x34d)]-0x1,_0x3a2f5c;_0x2eceed>=0x0;_0x2eceed--)(_0x3a2f5c=_0x4769db[_0x2eceed])&&(_0xa66200=_0x3a2f5c(_0xa66200)||_0xa66200);return _0xa66200;},Me=(_0xda6d8d,_0x396a36)=>(_0x138127,_0x6d9704)=>_0x396a36(_0x138127,_0x6d9704,_0xda6d8d),wn=(_0xbc41b7,_0x9ce293,_0x1cd494)=>An(_0xbc41b7,_0x9ce293+'',_0x1cd494);const yn=_0x3a7433(0x320);let Ye=class extends _0x50392c{constructor(_0x5aad4d=_t,_0x16c02f,_0x13c659,_0x3b0304){const _0x4f2e1b=_0x3a7433;super(),this[_0x4f2e1b(0x2d0)]=_0x5aad4d,this[_0x4f2e1b(0x39d)]=_0x16c02f,this['_injector']=_0x13c659,this[_0x4f2e1b(0x343)]=_0x3b0304;const {..._0x23ef16}=_0x266c93({},_t,this['_config']);this[_0x4f2e1b(0x343)][_0x4f2e1b(0x2e7)](hn,_0x23ef16);}['onStarting'](){const _0x19a15f=_0x3a7433;this[_0x19a15f(0x3f3)](),this[_0x19a15f(0x328)]();}[_0x3a7433(0x264)](){const _0x17b6eb=_0x3a7433;this[_0x17b6eb(0x344)]();}['_registerDependencies'](){const _0x1ca475=_0x3a7433;var _0x476223;const _0x21c9b1=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x2a889b,{'useClass':_0x3f3140}],[_0x3d14fc,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this['_config'][_0x1ca475(0x3bf)]&&_0x21c9b1[_0x1ca475(0x3b0)]([le]),_0x1de876(this[_0x1ca475(0x1cb)],_0x2fb84b(_0x21c9b1,(_0x476223=this[_0x1ca475(0x2d0)])==null?void 0x0:_0x476223[_0x1ca475(0x1e4)]));}['_registerRenderDependencies'](){const _0x2421ad=_0x3a7433;this['disposeWithMe'](this[_0x2421ad(0x39d)][_0x2421ad(0x1e8)](_0x36653e[_0x2421ad(0x2cc)],[Fe])),this[_0x2421ad(0x3f9)](this[_0x2421ad(0x39d)][_0x2421ad(0x1e8)](_0x36653e[_0x2421ad(0x2a9)],[ke]));}[_0x3a7433(0x328)](){const _0x5ba26e=_0x3a7433;_0x1fe50a(this[_0x5ba26e(0x1cb)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x5ba26e(0x2d0)][_0x5ba26e(0x3bf)]&&_0x1fe50a(this['_injector'],[[le]]);}};wn(Ye,_0x3a7433(0x3cb),yn),Ye=Pn([_0x11ccda(_0x3d7acc),Me(0x1,_0x47acbb),Me(0x2,_0x27384c(_0x546954)),Me(0x3,_0x574df3)],Ye);var $n=Object[_0x3a7433(0x210)],xn=(_0x54ebeb,_0x5b3ff6,_0x4d3c5f,_0x354865)=>{const _0x493a90=_0x3a7433;for(var _0x5b5062=_0x354865>0x1?void 0x0:_0x354865?$n(_0x5b3ff6,_0x4d3c5f):_0x5b3ff6,_0x35989d=_0x54ebeb[_0x493a90(0x34d)]-0x1,_0x47cf89;_0x35989d>=0x0;_0x35989d--)(_0x47cf89=_0x54ebeb[_0x35989d])&&(_0x5b5062=_0x47cf89(_0x5b5062)||_0x5b5062);return _0x5b5062;},J=(_0x1bdaf5,_0x296cd)=>(_0x560b48,_0x5d12b6)=>_0x296cd(_0x560b48,_0x5d12b6,_0x1bdaf5);let ut=class extends _0x33b5a6{constructor(_0x592efc,_0x131228,_0x1e6a02,_0x24fa7f,_0x592648){super(_0x592efc,_0x131228,_0x1e6a02,_0x24fa7f,_0x592648);}async[_0x3a7433(0x30f)](_0x252b23){const _0x32f232=_0x3a7433,_0x133321=await this[_0x32f232(0x2c1)](),_0x4640ed=this[_0x32f232(0x3fa)](_0x252b23,_0x133321);return this['_doCreateSocket'](_0x4640ed);}['_createSocketURL'](_0x406a2b,_0x539ef1){const _0x3a5d7d=_0x3a7433,_0x800c43=typeof window>'u'?new URL(_0x406a2b):new URL(_0x406a2b,window[_0x3a5d7d(0x1b1)][_0x3a5d7d(0x296)]);_0x800c43[_0x3a5d7d(0x36e)][_0x3a5d7d(0x1bf)](_0x3a5d7d(0x1ba),_0x539ef1);const _0x2a83ca=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3a5d7d(0x1b1)][_0x3a5d7d(0x3f0)]);return _0x2a83ca[_0x3a5d7d(0x359)](_0x3a5d7d(0x32d))&&_0x800c43[_0x3a5d7d(0x36e)][_0x3a5d7d(0x1bf)](_0x3a5d7d(0x32d),_0x2a83ca[_0x3a5d7d(0x359)]('runId')),_0x800c43[_0x3a5d7d(0x2ff)]();}async[_0x3a7433(0x2c1)](){const _0x462956=_0x3a7433;var _0x5993e4,_0x55fdd7,_0x272647;const _0x263197=this[_0x462956(0x343)][_0x462956(0x390)](_0x3f2cb9),_0x329e5b=(_0x5993e4=_0x263197==null?void 0x0:_0x263197[_0x462956(0x2ae)])!=null?_0x5993e4:_0x151348;return(_0x272647=(_0x55fdd7=(await this['_httpService'][_0x462956(0x359)](_0x329e5b,{'headers':{'Content-Type':_0x462956(0x3ed)}}))['body'])==null?void 0x0:_0x55fdd7[_0x462956(0x2c8)])!=null?_0x272647:'';}};ut=xn([J(0x0,_0x27384c(_0x546954)),J(0x1,_0x27384c(_0x37faeb)),J(0x2,_0x574df3),J(0x3,_0x2e91cd),J(0x4,_0x12f3e4)],ut);var Bn=Object[_0x3a7433(0x210)],Fn=(_0x3e5fec,_0x23c3a6,_0x4eee17,_0x163666)=>{for(var _0x3b37c7=_0x163666>0x1?void 0x0:_0x163666?Bn(_0x23c3a6,_0x4eee17):_0x23c3a6,_0x370c60=_0x3e5fec['length']-0x1,_0x11cf8c;_0x370c60>=0x0;_0x370c60--)(_0x11cf8c=_0x3e5fec[_0x370c60])&&(_0x3b37c7=_0x11cf8c(_0x3b37c7)||_0x3b37c7);return _0x3b37c7;},Ae=(_0x18467a,_0x2c60ac)=>(_0x15aac5,_0x396153)=>_0x2c60ac(_0x15aac5,_0x396153,_0x18467a);let dt=class extends _0x1c0642{constructor(_0x29026d,_0xf89761,_0x6bf2a3){const _0x463db2=_0x3a7433;super(),this[_0x463db2(0x29e)]=_0x29026d,this['_httpService']=_0xf89761,this['_configService']=_0x6bf2a3;}async['runOnServer'](_0x1068e0,_0x33177f,_0x1cefe7,..._0x1f754e){const _0x4fa76f=_0x3a7433;var _0x395f20,_0x16fddf,_0x31964b,_0x2924db;const _0x53b7f3=this['_instanceService'][_0x4fa76f(0x381)]();if(!_0x53b7f3)throw new Error(_0x4fa76f(0x261));const _0x542e5c=((_0x395f20=this['_configService'][_0x4fa76f(0x390)](_0x4d0e9a))!=null?_0x395f20:_0x26483f)+'/'+_0x1068e0+_0x4fa76f(0x408)+_0x33177f,_0x3d0636=new URL(window[_0x4fa76f(0x1b1)][_0x4fa76f(0x24c)]),_0x412ee2={'scriptId':_0x1068e0,'runId':(_0x16fddf=_0x3d0636[_0x4fa76f(0x36e)][_0x4fa76f(0x359)](_0x4fa76f(0x32d)))!=null?_0x16fddf:'','function':_0x33177f,'unitId':_0x53b7f3[_0x4fa76f(0x385)](),'argsOfFunction':JSON['stringify'](_0x1f754e),'invokeId':(_0x31964b=_0x1cefe7[_0x4fa76f(0x316)])!=null?_0x31964b:'','executionId':(_0x2924db=_0x1cefe7[_0x4fa76f(0x2bf)])!=null?_0x2924db:''};try{const _0x3b0d2d=await this[_0x4fa76f(0x21a)][_0x4fa76f(0x2ee)](_0x542e5c,{'body':_0x412ee2});return _0x3b0d2d[_0x4fa76f(0x26c)][_0x4fa76f(0x3a5)]&&_0x3b0d2d['body']['error'][_0x4fa76f(0x2c6)]!==Z['OK']?'Failed':_0x3b0d2d[_0x4fa76f(0x26c)][_0x4fa76f(0x211)];}catch{return _0x4fa76f(0x297);}}};dt=Fn([Ae(0x0,_0x1cf763),Ae(0x1,_0x27384c(_0x37faeb)),Ae(0x2,_0x574df3)],dt);const St=0x7530,It=_0x3a7433(0x370);class rr extends _0x1c0642{constructor(){const _0x16fe3f=_0x3a7433;super(),_(this,_0x16fe3f(0x23b),_0x3f0ee8()),_(this,_0x16fe3f(0x31b),new Set()),_(this,_0x16fe3f(0x1c5),new Map()),_(this,_0x16fe3f(0x1e5),null),_(this,_0x16fe3f(0x2e2),new Map()),_(this,_0x16fe3f(0x3e6),new Map()),this[_0x16fe3f(0x20b)]();}[_0x3a7433(0x2c4)](){const _0x1531b7=_0x3a7433;super[_0x1531b7(0x2c4)](),this[_0x1531b7(0x2e2)]['forEach']((_0x54944f,_0x5079c9)=>this[_0x1531b7(0x1f4)](_0x5079c9)),this['_heartbeatTimer']&&window[_0x1531b7(0x2dd)](this[_0x1531b7(0x1e5)]);}[_0x3a7433(0x244)](_0x3e8d4f){const _0x16b2ae=_0x3a7433;return this[_0x16b2ae(0x1df)](_0x3e8d4f)[_0x16b2ae(0x368)](_0x55e285());}[_0x3a7433(0x33a)](_0x1a2181){const _0x3e8113=_0x3a7433;this[_0x3e8113(0x31b)][_0x3e8113(0x3dd)]===0x0&&this['_scheduleHeartbeat'](),this[_0x3e8113(0x31b)][_0x3e8113(0x40b)](_0x1a2181),this['_send']({'type':0x0,'memberID':this[_0x3e8113(0x23b)],'unitIDs':[_0x1a2181],'isForwarded':!0x1});}[_0x3a7433(0x2f6)](_0x50cc37){const _0x1a2b33=_0x3a7433;this['_selfUnitIDs']['delete'](_0x50cc37),this[_0x1a2b33(0x31b)][_0x1a2b33(0x3dd)]===0x0&&this[_0x1a2b33(0x1e5)]&&window[_0x1a2b33(0x2dd)](this['_heartbeatTimer']);}[_0x3a7433(0x20b)](){const _0x90878e=_0x3a7433;this[_0x90878e(0x3f9)](_0x157525(_0x57cde1(window,_0x90878e(0x40c))['subscribe'](_0xe05cb8=>{const _0x34ba73=_0x90878e;if(_0xe05cb8[_0x34ba73(0x25e)]!==It||!_0xe05cb8[_0x34ba73(0x2b4)])return;const _0x48419e=JSON['parse'](_0xe05cb8['newValue']);this[_0x34ba73(0x3c2)](_0x48419e);}))),window[_0x90878e(0x349)](_0x90878e(0x1de),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x3a7433(0x3c2)](_0x18bd6b){const _0x30f7ac=_0x3a7433;switch(_0x18bd6b['type']){case 0x0:this[_0x30f7ac(0x2f8)](_0x18bd6b);break;case 0x1:this['_handleLeaveEvent'](_0x18bd6b);break;case 0x2:this[_0x30f7ac(0x3d7)](_0x18bd6b);break;}}['_handleJoinEvent'](_0x6f084){const _0x3efcdf=_0x3a7433,{unitIDs:_0x4779ae,memberID:_0x41a831,isForwarded:_0x3a1ff1}=_0x6f084;_0x4779ae[_0x3efcdf(0x2eb)](_0xdccecf=>{const _0x20d0a9=_0x3efcdf;if(!_0x3a1ff1&&this[_0x20d0a9(0x1c5)]['has'](_0xdccecf)&&this[_0x20d0a9(0x1df)](_0xdccecf)['next'](_0x218817[_0x20d0a9(0x362)]),!this[_0x20d0a9(0x1c5)]['has'](_0xdccecf)||!this['_unitOnClients'][_0x20d0a9(0x359)](_0xdccecf)[_0x20d0a9(0x35f)](_0x41a831)){const _0x4dec30=this[_0x20d0a9(0x1c5)][_0x20d0a9(0x359)](_0xdccecf)||new Set();_0x4dec30[_0x20d0a9(0x40b)](_0x41a831),this[_0x20d0a9(0x1c5)]['set'](_0xdccecf,_0x4dec30),this['_scheduleClearOtherTimer'](_0x41a831);}}),_0x3a1ff1||this[_0x3efcdf(0x30b)]({'type':0x0,'memberID':this[_0x3efcdf(0x23b)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x3a7433(0x3a0)](_0x2b9262){const _0x541b88=_0x3a7433;this[_0x541b88(0x1f4)](_0x2b9262);const _0x146100=window['setTimeout'](()=>{const _0x305f9a=_0x541b88;this[_0x305f9a(0x1c5)][_0x305f9a(0x2eb)](_0x450164=>{const _0x19c95c=_0x305f9a;_0x450164[_0x19c95c(0x236)](_0x2b9262);});},St*0x2);this[_0x541b88(0x2e2)][_0x541b88(0x1bf)](_0x2b9262,_0x146100);}[_0x3a7433(0x1f4)](_0x3514cf){const _0xe6b8fc=_0x3a7433;if(this[_0xe6b8fc(0x2e2)][_0xe6b8fc(0x35f)](_0x3514cf)){const _0xbd256b=this[_0xe6b8fc(0x2e2)]['get'](_0x3514cf);_0xbd256b&&window[_0xe6b8fc(0x1fe)](_0xbd256b),this[_0xe6b8fc(0x2e2)][_0xe6b8fc(0x1bf)](_0x3514cf,null);}}[_0x3a7433(0x379)](_0x3729d4){const _0x4a50b9=_0x3a7433,{memberID:_0x4a1c2a,unitIDs:_0x10b836}=_0x3729d4;_0x10b836[_0x4a50b9(0x2eb)](_0x7bba04=>{const _0x318612=_0x4a50b9;var _0xbf07f2;const _0x42356f=this['_unitOnClients'][_0x318612(0x359)](_0x7bba04);_0x42356f&&(_0x42356f['delete'](_0x4a1c2a),(_0xbf07f2=this[_0x318612(0x1df)](_0x7bba04))==null||_0xbf07f2[_0x318612(0x293)](_0x42356f[_0x318612(0x3dd)]===0x0?_0x218817[_0x318612(0x26e)]:_0x218817['OTHER_CLIENTS_EDITING']));}),this[_0x4a50b9(0x1f4)](_0x4a1c2a);}[_0x3a7433(0x3d7)](_0x4a0373){const _0x122d7f=_0x3a7433;this['_scheduleClearOtherTimer'](_0x4a0373[_0x122d7f(0x272)]);}[_0x3a7433(0x30b)](_0xc13559){const _0x422654=_0x3a7433;localStorage[_0x422654(0x278)](It,JSON['stringify'](_0xc13559));}[_0x3a7433(0x29d)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0xd783b5=_0x474c;this[_0xd783b5(0x30b)]({'type':0x2,'memberID':this[_0xd783b5(0x23b)]});},St);}['_ensureSubject'](_0x2e28fe){const _0x131579=_0x3a7433;return this[_0x131579(0x3e6)][_0x131579(0x35f)](_0x2e28fe)||this[_0x131579(0x3e6)][_0x131579(0x1bf)](_0x2e28fe,new _0x29de4b(_0x218817[_0x131579(0x26e)])),this['_unitStatus']['get'](_0x2e28fe);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
1
+ const _0x12f7be=_0x473f;function _0x473f(_0x3ab86e,_0x485d35){_0x3ab86e=_0x3ab86e-0xb0;const _0x919a54=_0x919a();let _0x473f33=_0x919a54[_0x3ab86e];return _0x473f33;}(function(_0x51d400,_0x3876c8){const _0x4081f2=_0x473f,_0x22a72e=_0x51d400();while(!![]){try{const _0x46c6ed=parseInt(_0x4081f2(0x27c))/0x1*(parseInt(_0x4081f2(0xfe))/0x2)+parseInt(_0x4081f2(0x131))/0x3+parseInt(_0x4081f2(0x1bf))/0x4+parseInt(_0x4081f2(0x10a))/0x5*(parseInt(_0x4081f2(0x182))/0x6)+parseInt(_0x4081f2(0x13e))/0x7+-parseInt(_0x4081f2(0x2e1))/0x8+-parseInt(_0x4081f2(0x1fb))/0x9;if(_0x46c6ed===_0x3876c8)break;else _0x22a72e['push'](_0x22a72e['shift']());}catch(_0x3082e1){_0x22a72e['push'](_0x22a72e['shift']());}}}(_0x919a,0xb419b));var Yt=Object[_0x12f7be(0x265)],Wt=(_0x14c1d3,_0xabc033,_0x14663f)=>_0xabc033 in _0x14c1d3?Yt(_0x14c1d3,_0xabc033,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14663f}):_0x14c1d3[_0xabc033]=_0x14663f,_=(_0x4d5ab6,_0x173480,_0x25ebf4)=>Wt(_0x4d5ab6,typeof _0x173480!=_0x12f7be(0x10b)?_0x173480+'':_0x173480,_0x25ebf4);import{jsx as _0x113f07,jsxs as _0x1eecd1}from'react/jsx-runtime';import{CollaborationStatus as _0x2a0d66,CollaborationSessionService as _0x3c5e90,CollaborationController as _0x41819a,DataLoaderService as _0x48f288,MemberService as _0xa7c392,SessionStatus as _0x434c9d,ILocalCacheService as _0x381fc8,CollaborationUIEventService as _0x4cdc9c,CollaborationUIEventId as _0x45a0bb,DocCollaborationEntity as _0x2f6c55,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3c1c8f,getLocalCacheKey as _0x193170,LOCAL_CACHE_INTERVAL as _0x41a768,LOCAL_CACHE_INTERVAL_KEY as _0x1d75b1,UniverCollaborationClientPlugin as _0x2e3618,CollaborationSocketService as _0x5012d6,DEFAULT_WS_SESSION_TICKET_URL as _0x29d557,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x587df1,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x499824,UnitStatus as _0x4d3796}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x35b6c7,IUniverInstanceService as _0x52d51e,Inject as _0x3714f8,Injector as _0x24a160,Disposable as _0x112363,createIdentifier as _0x21b651,ILogService as _0x36e10f,ICommandService as _0x58f12e,Optional as _0x4a5b34,RxDisposable as _0x53e01a,Workbook as _0x137b01,DOC_RANGE_TYPE as _0x6ed74f,debounce as _0x5a1035,Rectangle as _0x3fed9b,DisposableCollection as _0x4284de,toDisposable as _0x16c8e4,UniverInstanceType as _0x53cd3e,generateRandomId as _0x28ef98,COLORS as _0x5c8de6,ColorKit as _0x376a8e,ThemeService as _0x252ee3,fromEventSubject as _0x535589,Tools as _0x4dbc53,CommandType as _0x1de431,IConfigService as _0x5a741e,CanceledError as _0x24cc76,isFormulaString as _0x371c6c,isFormulaId as _0x2bd85a,ILocalStorageService as _0x5e3c18,DependentOn as _0x1999b3,Plugin as _0x5affa2,merge as _0x537f2b,registerDependencies as _0x358fe2,mergeOverrideWithDependencies as _0x2cd5a1,touchDependencies as _0x48ed1d}from'@univerjs/core';import{useObservable as _0x368c28,useDependency as _0x5911c2,IUIPartsService as _0x1e6b0c,BuiltInUIPart as _0x5a54ac,connectInjector as _0x4e04ea,IBeforeCloseService as _0x3e8c86,IMessageService as _0x543869,INotificationService as _0x4d19e9}from'@univerjs/ui';import{BehaviorSubject as _0x51f523,switchMap as _0x55969c,of as _0x1ec186,takeUntil as _0x4da0bf,debounceTime as _0x19303b,Subject as _0x1fac1f,filter as _0x24339d,merge as _0x826d92,combineLatest as _0x48aeb3,fromEvent as _0x45269d,shareReplay as _0x528417,mapTo as _0x84d373,distinctUntilChanged as _0x332830}from'rxjs';import{Tooltip as _0x40dc63,clsx as _0xee85e0,MessageType as _0x4bbdcc}from'@univerjs/design';import{useRef as _0x48b388,createElement as _0x1773bb,forwardRef as _0x374bc5,useCallback as _0x48404f}from'react';import{IRemoteInstanceService as _0x136b48}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x280b7c,RefRangeService as _0xe3159f,SetSelectionsOperation as _0x25f058,SheetsSelectionsService as _0x5bbf8d,EffectRefRangId as _0x4eb700,handleIRemoveRow as _0x44c162,handleIRemoveCol as _0x3dbb55,handleMoveRange as _0x221e69,handleInsertRow as _0x44d812,handleInsertRangeMoveRight as _0x554330,handleInsertRangeMoveDown as _0x3fbd49,handleInsertCol as _0x3f84c9,handleDeleteRangeMoveUp as _0x5e9d7d,handleDeleteRangeMoveLeft as _0x16e40f,runRefRangeMutations as _0x908350}from'@univerjs/sheets';import{Shape as _0x453ad9,Rect as _0xf6029d,getColor as _0x51fc9e,RegularPolygon as _0x6842e7,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x19edf3,Vector2 as _0x20bdbd,SHEET_VIEWPORT_KEY as _0x1db3ff,IRenderManagerService as _0x4ae0f1}from'@univerjs/engine-render';import{HTTPService as _0x1ef343,ISocketService as _0x333b75,WebSocketService as _0x12b10a}from'@univerjs/network';import{IDocClipboardService as _0x392901,NodePositionConvertToCursor as _0x5a7e88,NodePositionConvertToRectRange as _0x506f46,TEXT_RANGE_LAYER_INDEX as _0x4df622,SetDocZoomRatioOperation as _0xea9b01,DocIMEInputManagerService as _0x5d750a,DocStateChangeManagerService as _0xc26da3}from'@univerjs/docs-ui';import{IImageIoService as _0x1e7b2a}from'@univerjs/drawing';import{ITransformService as _0x5963ba,CollaborationEvent as _0x38e1b2,isTransformMutationFailure as _0x594698,isTransformMutationsWithChangesetSuccess as _0xcbda0,RevisionService as _0x17c8fb,ISnapshotServerService as _0x479bb3}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x16b06b,RichTextEditingMutation as _0x105f6f,DocSelectionManagerService as _0x299386,DocSkeletonManagerService as _0x17ec67}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x1513e7,serializeRangeWithSheet as _0x269cf9,FormulaExecuteStageType as _0x252b95,FormulaExecutedStateType as _0x84f645,SetFormulaCalculationStartMutation as _0x576576,SetFormulaCalculationNotificationMutation as _0x554e96}from'@univerjs/engine-formula';import{map as _0x2da2ce,filter as _0x57f830,throttleTime as _0x58940e,takeUntil as _0x5894b4,switchMap as _0x1fb447}from'rxjs/operators';import{SheetSkeletonManagerService as _0x498a70,getCoordByCell as _0x30bc8b,getSheetObject as _0x5bfd58}from'@univerjs/sheets-ui';function Ge({ref:_0x54291e,..._0x241bea}){const _0x406c15=_0x12f7be,{icon:_0x5a965f,id:_0x2e2ab2,className:_0x5051be,extend:_0x17a17b,..._0x15162f}=_0x241bea,_0x3bcf9f=('univerjs-icon\x20univerjs-icon-'+_0x2e2ab2+'\x20'+(_0x5051be||''))[_0x406c15(0x20f)](),_0x2be787=_0x48b388('_'+vi());return At(_0x5a965f,''+_0x2e2ab2,{'defIds':_0x5a965f[_0x406c15(0x271)],'idSuffix':_0x2be787[_0x406c15(0x1eb)]},{'ref':_0x54291e,'className':_0x3bcf9f,..._0x15162f},_0x17a17b);}function At(_0x48337c,_0x8fdcfa,_0x1aae2a,_0x4886cf,_0x37bae4){const _0x482f46=_0x12f7be;return _0x1773bb(_0x48337c[_0x482f46(0xb1)],{'key':_0x8fdcfa,...gi(_0x48337c,_0x1aae2a,_0x37bae4),..._0x4886cf},(Ei(_0x48337c,_0x1aae2a)['children']||[])[_0x482f46(0x2ae)]((_0x5701bd,_0x503352)=>At(_0x5701bd,_0x8fdcfa+'-'+_0x48337c['tag']+'-'+_0x503352,_0x1aae2a,void 0x0,_0x37bae4)));}function gi(_0x1a639a,_0x106a49,_0x3f4a77){const _0x100204=_0x12f7be,_0x221261={..._0x1a639a[_0x100204(0x1da)]};_0x3f4a77!=null&&_0x3f4a77[_0x100204(0x1bb)]&&_0x221261['fill']===_0x100204(0x1bb)&&(_0x221261[_0x100204(0x26a)]=_0x3f4a77[_0x100204(0x1bb)]),_0x1a639a[_0x100204(0xb1)]===_0x100204(0x1d6)&&_0x221261['id']&&(_0x221261['id']=_0x221261['id']+_0x106a49[_0x100204(0x2a4)]),Object[_0x100204(0xd5)](_0x221261)[_0x100204(0x275)](([_0x16ae69,_0x221fa8])=>{const _0x11cbf2=_0x100204;_0x16ae69==='mask'&&typeof _0x221fa8==_0x11cbf2(0x2b2)&&(_0x221261[_0x16ae69]=_0x221fa8[_0x11cbf2(0xba)](/url\(#(.*)\)/,_0x11cbf2(0x2b4)+_0x106a49[_0x11cbf2(0x2a4)]+')'));});const {defIds:_0x45398a}=_0x106a49;return!_0x45398a||_0x45398a[_0x100204(0x1c8)]===0x0||(_0x1a639a['tag']==='use'&&_0x221261[_0x100204(0x1b4)]&&(_0x221261[_0x100204(0x1b4)]=_0x221261[_0x100204(0x1b4)]+_0x106a49[_0x100204(0x2a4)]),Object[_0x100204(0xd5)](_0x221261)[_0x100204(0x275)](([_0x37688a,_0x313bb4])=>{const _0x13d8f2=_0x100204;typeof _0x313bb4==_0x13d8f2(0x2b2)&&(_0x221261[_0x37688a]=_0x313bb4[_0x13d8f2(0xba)](/url\(#(.*)\)/,_0x13d8f2(0x2b4)+_0x106a49[_0x13d8f2(0x2a4)]+')'));})),_0x221261;}function Ei(_0x3d723b,_0x402667){const _0xc86db6=_0x12f7be;var _0x56acb2;const {defIds:_0x272e3e}=_0x402667;return!_0x272e3e||_0x272e3e[_0xc86db6(0x1c8)]===0x0?_0x3d723b:_0x3d723b[_0xc86db6(0xb1)]===_0xc86db6(0x272)&&((_0x56acb2=_0x3d723b['children'])!=null&&_0x56acb2[_0xc86db6(0x1c8)])?{..._0x3d723b,'children':_0x3d723b[_0xc86db6(0x186)][_0xc86db6(0x2ae)](_0x31ea3c=>typeof _0x31ea3c['attrs']['id']=='string'&&_0x272e3e&&_0x272e3e['includes'](_0x31ea3c[_0xc86db6(0x1da)]['id'])?{..._0x31ea3c,'attrs':{..._0x31ea3c[_0xc86db6(0x1da)],'id':_0x31ea3c[_0xc86db6(0x1da)]['id']+_0x402667[_0xc86db6(0x2a4)]}}:_0x31ea3c)}:_0x3d723b;}function vi(){const _0x1e38fa=_0x12f7be;return Math['random']()[_0x1e38fa(0x20c)](0x24)[_0x1e38fa(0xe0)](0x2,0x8);}Ge[_0x12f7be(0x2f9)]=_0x12f7be(0x14c);const pi={'tag':'svg','attrs':{'xmlns':_0x12f7be(0x2ea),'fill':'none','viewBox':_0x12f7be(0x202),'width':'1em','height':_0x12f7be(0x2a2)},'children':[{'tag':'g','attrs':{'clipPath':_0x12f7be(0x130)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x12f7be(0x1d9),'strokeLinecap':_0x12f7be(0x2d3),'strokeLinejoin':_0x12f7be(0x2d3),'strokeWidth':1.2}}]},{'tag':_0x12f7be(0x272),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x12f7be(0x242)},'children':[{'tag':_0x12f7be(0x1d8),'attrs':{'fill':_0x12f7be(0xe4),'d':_0x12f7be(0x170)}}]}]}],'defIds':[_0x12f7be(0x242)]},Pt=_0x374bc5(function(_0x26a7a1,_0xf58833){const _0x526caa=_0x12f7be;return _0x1773bb(Ge,Object[_0x526caa(0x1de)]({},_0x26a7a1,{'id':_0x526caa(0x294),'ref':_0xf58833,'icon':pi}));});Pt['displayName']=_0x12f7be(0x2e3);const Oi={'tag':_0x12f7be(0x27d),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x12f7be(0xc8),'viewBox':_0x12f7be(0xc7),'width':_0x12f7be(0x2a2),'height':_0x12f7be(0x2a2)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x12f7be(0x1d8),'attrs':{'stroke':_0x12f7be(0x2a8),'d':_0x12f7be(0xc4),'strokeLinecap':_0x12f7be(0x2d3),'strokeLinejoin':_0x12f7be(0x2d3),'strokeWidth':1.2}}]},{'tag':_0x12f7be(0x272),'attrs':{},'children':[{'tag':_0x12f7be(0x262),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x12f7be(0x1d8),'attrs':{'fill':_0x12f7be(0xe4),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x12f7be(0x25b)]},wt=_0x374bc5(function(_0x3b0cc2,_0x52eba6){const _0x3df1e3=_0x12f7be;return _0x1773bb(Ge,Object[_0x3df1e3(0x1de)]({},_0x3b0cc2,{'id':_0x3df1e3(0x17a),'ref':_0x52eba6,'icon':Oi}));});wt['displayName']='OnLineIcon';function Ti(_0x299edf){const _0x450195=_0x12f7be;switch(_0x299edf){case _0x2a0d66['OFFLINE']:return _0x450195(0x2e6);case _0x2a0d66[_0x450195(0x1ba)]:return _0x450195(0x297);case _0x2a0d66[_0x450195(0xd6)]:return _0x450195(0x2fe);case _0x2a0d66[_0x450195(0x16a)]:return _0x450195(0x2e9);case _0x2a0d66['AWAITING']:case _0x2a0d66[_0x450195(0xb9)]:return _0x450195(0x200);case _0x2a0d66[_0x450195(0x1b5)]:case _0x2a0d66['PENDING']:return _0x450195(0x204);}}function Ci(_0x1e47cd){const _0x1c4f8f=_0x12f7be,{status$:_0x59eead}=_0x1e47cd,_0x53d908=_0x368c28(_0x59eead,_0x2a0d66[_0x1c4f8f(0x16a)]),_0xbbc8c4=_0x5911c2(_0x35b6c7),_0xf58517=_0x5911c2(_0x3c5e90),_0x37defb=_0x53d908!==_0x2a0d66[_0x1c4f8f(0x2fb)],_0xff51bd=_0xbbc8c4['t'](Ti(_0x53d908)),_0x49bac4=_0x37defb?_0x113f07(wt,{}):_0x113f07(Pt,{}),_0x40b105=_0x48404f(()=>{const _0x241e44=_0x1c4f8f;_0x37defb||_0xf58517[_0x241e44(0x18c)]();},[_0x37defb,_0xf58517]);function _0x18e815(){const _0x1d6afe=_0x1c4f8f;return _0x1eecd1(_0x1d6afe(0x280),{'className':'univer-flex\x20univer-items-center','onClick':_0x40b105,'children':[_0x113f07(_0x1d6afe(0x280),{'className':_0xee85e0(_0x1d6afe(0x24a),{'univer-text-green-500':_0x37defb,'univer-text-red-500':!_0x37defb}),'children':_0x49bac4}),_0x113f07(_0x1d6afe(0x280),{'className':_0x1d6afe(0x146),'children':_0xff51bd})]});}return _0x37defb?_0x18e815():_0x113f07(_0x40dc63,{'title':_0xbbc8c4['t'](_0x1c4f8f(0x14f)),'children':_0x18e815()});}var Ri=Object[_0x12f7be(0x214)],Di=(_0x5aedbf,_0x538faf,_0x422285,_0xf94fb3)=>{const _0x6cb629=_0x12f7be;for(var _0x358d8d=_0xf94fb3>0x1?void 0x0:_0xf94fb3?Ri(_0x538faf,_0x422285):_0x538faf,_0xf023fe=_0x5aedbf[_0x6cb629(0x1c8)]-0x1,_0x190f60;_0xf023fe>=0x0;_0xf023fe--)(_0x190f60=_0x5aedbf[_0xf023fe])&&(_0x358d8d=_0x190f60(_0x358d8d)||_0x358d8d);return _0x358d8d;},se=(_0x1678f1,_0x487908)=>(_0xe604bf,_0x216b10)=>_0x487908(_0xe604bf,_0x216b10,_0x1678f1);let ae=class extends _0x112363{constructor(_0xebd0bd,_0x139be5,_0x35914c,_0x250602){const _0x51118d=_0x12f7be;super(),_(this,_0x51118d(0x2ec),new _0x51f523(_0x2a0d66['NOT_COLLAB'])),(this[_0x51118d(0x1e0)]=_0xebd0bd,this[_0x51118d(0x213)]=_0x139be5,this[_0x51118d(0x14d)]=_0x35914c,this[_0x51118d(0xf1)]=_0x250602,this[_0x51118d(0x303)](),this[_0x51118d(0x207)]());}['_initStatusListener'](){const _0x463472=_0x12f7be;this[_0x463472(0x26c)](this[_0x463472(0x1e0)]['focused$']['pipe'](_0x55969c(()=>{const _0x418ecf=_0x463472,_0x11f1e0=this[_0x418ecf(0x1e0)][_0x418ecf(0x20d)]();return _0x11f1e0?this[_0x418ecf(0x14d)][_0x418ecf(0xdb)](_0x11f1e0[_0x418ecf(0xb6)]()):_0x1ec186(null);}),_0x55969c(_0x32f2da=>_0x32f2da?_0x32f2da[_0x463472(0x10c)]:_0x1ec186(_0x2a0d66[_0x463472(0x16a)])))[_0x463472(0x1e6)](_0x8b865e=>{const _0x386b05=_0x463472;this[_0x386b05(0x2ec)][_0x386b05(0xe6)](_0x8b865e);}));}[_0x12f7be(0x303)](){const _0x5bd223=_0x12f7be;this[_0x5bd223(0x26c)](this[_0x5bd223(0xf1)][_0x5bd223(0x174)](_0x5a54ac[_0x5bd223(0x12c)],()=>_0x4e04ea(Ni({'status$':this[_0x5bd223(0x2ec)][_0x5bd223(0x195)]()}),this['_injector'])));}};ae=Di([se(0x0,_0x52d51e),se(0x1,_0x3714f8(_0x24a160)),se(0x2,_0x3714f8(_0x41819a)),se(0x3,_0x1e6b0c)],ae);function Ni(_0x1bd33c){const {status$:_0x3efcbb}=_0x1bd33c;return function(){return _0x113f07(Ci,{'status$':_0x3efcbb});};}const yt=_0x21b651('uni.network.url-service');var bi=Object['getOwnPropertyDescriptor'],Li=(_0x1f837a,_0x1153fd,_0x45afab,_0x568d64)=>{for(var _0x376df0=_0x568d64>0x1?void 0x0:_0x568d64?bi(_0x1153fd,_0x45afab):_0x1153fd,_0x2f01b7=_0x1f837a['length']-0x1,_0x47849b;_0x2f01b7>=0x0;_0x2f01b7--)(_0x47849b=_0x1f837a[_0x2f01b7])&&(_0x376df0=_0x47849b(_0x376df0)||_0x376df0);return _0x376df0;},K=(_0xc19778,_0x26a287)=>(_0x3201a7,_0x277ac4)=>_0x26a287(_0x3201a7,_0x277ac4,_0xc19778);let ce=class extends _0x53e01a{constructor(_0x204f71,_0x1e8763,_0x3f7204,_0x178583,_0x323cea){const _0x129770=_0x12f7be;super(),this['_urlService']=_0x204f71,this[_0x129770(0x267)]=_0x1e8763,this[_0x129770(0x21d)]=_0x3f7204,this[_0x129770(0x2c6)]=_0x178583,_0x323cea?_0x323cea==null||_0x323cea['whenReady']()['then'](()=>this['_init']()):(this[_0x129770(0x267)][_0x129770(0x209)](_0x129770(0x2b3),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x129770(0x279)]());}async[_0x12f7be(0x279)](){const _0x567f80=_0x12f7be,_0x8c5cca=this[_0x567f80(0x11b)]['getParam'](_0x567f80(0x132)),_0x3f839a=this[_0x567f80(0x11b)][_0x567f80(0x1ac)](_0x567f80(0x16d)),_0xbe7ebd=this['_urlService'][_0x567f80(0x1ac)](_0x567f80(0x255));if(!_0x8c5cca||!_0x3f839a){this[_0x567f80(0x267)][_0x567f80(0x209)](_0x567f80(0x2b3),_0x567f80(0x192));return;}const _0x50b6be=await this['_dataLoaderService'][_0x567f80(0x238)](_0x8c5cca,Number(_0x3f839a),_0xbe7ebd);_0x50b6be&&_0x50b6be instanceof _0x137b01&&this['_setupSubUnitSync'](_0x50b6be);}async['_setupSubUnitSync'](_0x81701){const _0xc7d08d=_0x12f7be;await this['_updateSubUnitFromURLParams'](_0x81701),_0x81701[_0xc7d08d(0x2c0)]['pipe'](_0x4da0bf(this[_0xc7d08d(0x2a6)]))['subscribe'](_0x347aee=>{_0x347aee&&this['_updateURLWithCurrentState'](_0x347aee);}),this[_0xc7d08d(0x11b)]['urlChange$']['pipe'](_0x4da0bf(this[_0xc7d08d(0x2a6)]))[_0xc7d08d(0x1e6)](()=>this[_0xc7d08d(0x1a9)](_0x81701));}['_updateURLWithCurrentState'](_0x3d82ea,_0x120241=!0x1){const _0x2d079a=_0x12f7be,_0x89e54b=this[_0x2d079a(0x11b)]['getParam'](_0x2d079a(0x255));_0x3d82ea[_0x2d079a(0x184)]()!==_0x89e54b&&this[_0x2d079a(0x11b)][_0x2d079a(0x149)]('subunit',_0x3d82ea[_0x2d079a(0x184)](),_0x120241);}async['_updateSubUnitFromURLParams'](_0x525dd2){const _0x2842e9=_0x12f7be;var _0x403ba2;const _0x28406a=this[_0x2842e9(0x11b)]['getParam'](_0x2842e9(0x255));if(!_0x28406a||!_0x525dd2[_0x2842e9(0x1af)](_0x28406a)){const _0x430253=_0x525dd2[_0x2842e9(0xcb)]()[0x0],_0x5ab056=_0x525dd2[_0x2842e9(0x1af)](_0x430253);if(!_0x5ab056)return;this[_0x2842e9(0x2da)](_0x5ab056,!0x0),await this[_0x2842e9(0x21d)][_0x2842e9(0x2fd)](_0x280b7c['id'],{'unitId':_0x525dd2[_0x2842e9(0xb6)](),'subUnitId':_0x430253});return;}((_0x403ba2=_0x525dd2[_0x2842e9(0x2e4)]())==null?void 0x0:_0x403ba2['getSheetId']())!==_0x28406a&&await this[_0x2842e9(0x21d)]['executeCommand'](_0x280b7c['id'],{'unitId':_0x525dd2[_0x2842e9(0xb6)](),'subUnitId':_0x28406a});}};ce=Li([K(0x0,yt),K(0x1,_0x36e10f),K(0x2,_0x58f12e),K(0x3,_0x3714f8(_0x48f288)),K(0x4,_0x4a5b34(_0x136b48))],ce);var Ui=Object[_0x12f7be(0x214)],Mi=(_0x165193,_0x5acf9f,_0x3d769a,_0x2edd2e)=>{const _0x61825f=_0x12f7be;for(var _0x283bdb=_0x2edd2e>0x1?void 0x0:_0x2edd2e?Ui(_0x5acf9f,_0x3d769a):_0x5acf9f,_0x5c9b30=_0x165193[_0x61825f(0x1c8)]-0x1,_0x27138e;_0x5c9b30>=0x0;_0x5c9b30--)(_0x27138e=_0x165193[_0x5c9b30])&&(_0x283bdb=_0x27138e(_0x283bdb)||_0x283bdb);return _0x283bdb;},rt=(_0x536b1c,_0x13bebd)=>(_0x4fdb09,_0x4796a8)=>_0x13bebd(_0x4fdb09,_0x4796a8,_0x536b1c);let $e=class extends _0x53e01a{constructor(_0x361c00,_0x511114){const _0x26c2de=_0x12f7be;super(),this['_docClipboardService']=_0x361c00,this[_0x26c2de(0x164)]=_0x511114,this[_0x26c2de(0x279)]();}[_0x12f7be(0x279)](){const _0x57b437=_0x12f7be,_0x20249e=this;this[_0x57b437(0x26c)](this['_docClipboardService'][_0x57b437(0x1b1)]({'onBeforePasteImage':async _0x4d50f7=>{const _0x4640c5=_0x57b437,_0x310c1c=await _0x20249e[_0x4640c5(0x164)]['saveImage'](_0x4d50f7);return _0x310c1c?{'source':_0x310c1c[_0x4640c5(0x251)],'imageSourceType':_0x310c1c[_0x4640c5(0x1bc)]}:null;}}));}};$e=Mi([rt(0x0,_0x392901),rt(0x1,_0x1e7b2a)],$e);const ot=[_0x12f7be(0x2a3),_0x12f7be(0x245),_0x12f7be(0x161),'red.300',_0x12f7be(0x13d),_0x12f7be(0x13f)];class Ke extends _0x112363{constructor(){const _0x56eb1a=_0x12f7be;super(...arguments),_(this,_0x56eb1a(0xed),new Map()),_(this,_0x56eb1a(0x124),0x0);}[_0x12f7be(0xff)](_0x5a7c37){const _0x556629=_0x12f7be;if(this[_0x556629(0xed)][_0x556629(0x201)](_0x5a7c37))return this['_assignedColors']['get'](_0x5a7c37);const _0x31b599=ot[this['_colorIndex']];return this['_colorIndex']=(this[_0x556629(0x124)]+0x1)%ot['length'],this[_0x556629(0xed)][_0x556629(0x13b)](_0x5a7c37,_0x31b599),_0x31b599;}}function $t(_0x1a470e){let _0x47ce35='';for(const _0x58f336 of _0x1a470e){const {startOffset:_0x3fd4be,endOffset:_0x56bfe2,isActive:_0x3f01a1,rangeType:_0x27f4f8,segmentId:_0x503ba3,segmentPage:_0x1afafc}=_0x58f336;_0x47ce35['length']&&(_0x47ce35+=','),_0x47ce35+=_0x3fd4be+':'+_0x56bfe2+':'+(_0x3f01a1?'1':'0')+':'+_0x27f4f8+':'+_0x503ba3+':'+_0x1afafc;}return _0x47ce35;}function Ai(_0x3c41f4){const _0x2f5edf=_0x12f7be,_0x4d94d6=_0x3c41f4[_0x2f5edf(0x2de)](','),_0x291279=[];for(const _0x4e005c of _0x4d94d6){const [_0x1aeb46,_0x1a1dfc,_0x2bb9bf,_0x39356a,_0x558c50,_0x5b59fc]=_0x4e005c['split'](':');_0x291279[_0x2f5edf(0x210)]({'startOffset':Number(_0x1aeb46),'endOffset':Number(_0x1a1dfc),'collapsed':_0x1aeb46===_0x1a1dfc,'isActive':_0x2bb9bf==='1','rangeType':_0x39356a===_0x6ed74f[_0x2f5edf(0x2f6)]?_0x6ed74f[_0x2f5edf(0x2f6)]:_0x6ed74f[_0x2f5edf(0x101)],'segmentId':typeof _0x558c50=='string'?String(_0x558c50):'','segmentPage':Number(_0x5b59fc!=null?_0x5b59fc:-0x1)});}return _0x291279[_0x2f5edf(0x12f)](_0x54844f=>_0x54844f[_0x2f5edf(0x217)])||(_0x291279[0x0][_0x2f5edf(0x217)]=!0x0),_0x291279;}class ze extends _0x53e01a{constructor(){const _0x31c3aa=_0x12f7be;super(...arguments),_(this,_0x31c3aa(0x158),new _0x51f523(null)),_(this,_0x31c3aa(0x1b0),this['_collabCursorState$'][_0x31c3aa(0x195)]());}[_0x12f7be(0xe2)](_0x53ff9c){const _0x2a7077=_0x12f7be,{unitID:_0xaf8c4f,memberID:_0xc8ec8c,textRanges:_0x52b4dc}=_0x53ff9c,_0x3dd4e4=$t(_0x52b4dc);if(_0x3dd4e4==='')return;const _0xc828ca={'unitID':_0xaf8c4f,'memberID':_0xc8ec8c,'selection':_0x3dd4e4};this['_collabCursorState$'][_0x2a7077(0xe6)](_0xc828ca);}}var Pi=Object[_0x12f7be(0x214)],wi=(_0x1a2358,_0x1d1932,_0x201fd9,_0x27ff99)=>{for(var _0x20185a=_0x27ff99>0x1?void 0x0:_0x27ff99?Pi(_0x1d1932,_0x201fd9):_0x1d1932,_0x407745=_0x1a2358['length']-0x1,_0x372f42;_0x407745>=0x0;_0x407745--)(_0x372f42=_0x1a2358[_0x407745])&&(_0x20185a=_0x372f42(_0x20185a)||_0x20185a);return _0x20185a;},A=(_0x4809d0,_0x62ae78)=>(_0x5c4907,_0x29db4c)=>_0x62ae78(_0x5c4907,_0x29db4c,_0x4809d0);const yi=0x12c,$i=0x64;let xe=class extends _0x53e01a{constructor(_0x3a2c8f,_0x34248f,_0x520e78,_0x1d0a40,_0x1055af,_0xebe9e3,_0x20b000,_0x3cfde3,_0x2093d8){const _0x252e57=_0x12f7be;super(),_(this,_0x252e57(0x22f),!0x1),_(this,_0x252e57(0x279),!0x1),_(this,_0x252e57(0x154),new _0x51f523(new Map())),_(this,_0x252e57(0x1d5),this[_0x252e57(0x154)][_0x252e57(0x195)]()),_(this,'_roomMembers$',new _0x51f523([])),_(this,_0x252e57(0x2ee),this[_0x252e57(0x155)][_0x252e57(0x1c3)](_0x19303b(yi))),_(this,_0x252e57(0x22c),_0x5a1035(_0x3cceb8=>{const _0x55472d=_0x252e57,_0x1038b4={'eventID':_0x38e1b2[_0x55472d(0x27b)],'data':{'unitID':this[_0x55472d(0x254)],'memberID':this['_session'][_0x55472d(0x196)](),'selection':$t(_0x3cceb8)}};this[_0x55472d(0xb0)][_0x55472d(0x1d2)](_0x1038b4,this[_0x55472d(0x254)]);},$i)),(this[_0x252e57(0x254)]=_0x3a2c8f,this['_session']=_0x34248f,this[_0x252e57(0x213)]=_0x520e78,this[_0x252e57(0xd2)]=_0x1d0a40,this[_0x252e57(0x208)]=_0x1055af,this[_0x252e57(0x258)]=_0xebe9e3,this[_0x252e57(0x13c)]=_0x20b000,this['_univerInstanceService']=_0x3cfde3,this[_0x252e57(0x21d)]=_0x2093d8);}get[_0x12f7be(0x2b1)](){const _0x500b19=_0x12f7be;return this['_cursorInfo$'][_0x500b19(0x2eb)]();}get[_0x12f7be(0xdc)](){const _0x3f88b6=_0x12f7be;return this[_0x3f88b6(0x155)]['getValue']();}[_0x12f7be(0x2e8)](){const _0x6c863=_0x12f7be;super[_0x6c863(0x2e8)](),this[_0x6c863(0x154)][_0x6c863(0xe6)](new Map()),this['_cursorInfo$'][_0x6c863(0x1a5)](),this[_0x6c863(0x155)][_0x6c863(0xe6)]([]),this['_roomMembers$']['complete']();}['init'](){const _0x39c7c7=_0x12f7be;this[_0x39c7c7(0x279)]||(this[_0x39c7c7(0x279)]=!0x0,this[_0x39c7c7(0xb0)][_0x39c7c7(0x102)][_0x39c7c7(0x1c3)](_0x4da0bf(this[_0x39c7c7(0x2a6)]))[_0x39c7c7(0x1e6)](_0x5f1674=>{const _0x2730fb=_0x39c7c7;_0x5f1674===_0x434c9d[_0x2730fb(0x2f5)]?this['_toggleOnline']():this[_0x2730fb(0x133)]();}),this[_0x39c7c7(0xb0)][_0x39c7c7(0x295)][_0x39c7c7(0x1c3)](_0x4da0bf(this[_0x39c7c7(0x2a6)]))[_0x39c7c7(0x1e6)](_0x37a25e=>{const _0x5a85f2=_0x39c7c7,_0x742ebf=_0x37a25e[_0x5a85f2(0x175)];_0x742ebf===_0x38e1b2[_0x5a85f2(0x27b)]&&this['_onCursorUpdate'](_0x37a25e),_0x742ebf===_0x38e1b2[_0x5a85f2(0x296)]&&this[_0x5a85f2(0x1f3)](_0x37a25e);}),this[_0x39c7c7(0x26c)](this[_0x39c7c7(0x21d)][_0x39c7c7(0x188)](_0x5f3be2=>{const _0x436073=_0x39c7c7,_0x311111=_0x5f3be2[_0x436073(0x281)];_0x311111!=null&&this[_0x436073(0x22f)]&&_0x5f3be2['id']===_0x16b06b['id']&&_0x311111[_0x436073(0x2a5)]===this[_0x436073(0x254)]&&_0x311111[_0x436073(0x17e)]===!0x1&&_0x311111['ranges'][_0x436073(0x1c8)]>0x0&&this[_0x436073(0x22c)](_0x311111[_0x436073(0x103)]);})),this[_0x39c7c7(0x258)][_0x39c7c7(0x1b0)]['pipe'](_0x4da0bf(this['dispose$']))['subscribe'](_0x4c7000=>{const _0xccbed9=_0x39c7c7;if((_0x4c7000==null?void 0x0:_0x4c7000[_0xccbed9(0x254)])!==this[_0xccbed9(0x254)])return;const _0x202908={'eventID':_0x38e1b2[_0xccbed9(0x27b)],'data':_0x4c7000};this['_onCursorUpdate'](_0x202908);}),this[_0x39c7c7(0x26c)](this['_commandService'][_0x39c7c7(0x188)](_0x57ba33=>{const _0x4422a4=_0x39c7c7;if(_0x57ba33['params']==null)return;const _0x3d1241=_0x57ba33[_0x4422a4(0x281)];if(_0x57ba33['id']!==_0x105f6f['id']||_0x3d1241[_0x4422a4(0x2a5)]!==this['unitID'])return;const _0x20034e={'id':'doc.mutation.rich-text-editing','params':_0x3d1241},_0x5826b1=this[_0x4422a4(0x2b1)];for(const [_0x1b928a,_0x154dee]of _0x5826b1){const _0x3acc1b={'id':_0x4422a4(0x219),'params':{'unitId':this[_0x4422a4(0x254)],'actions':null,'textRanges':_0x154dee[_0x4422a4(0x103)]}},_0x562b49=this['_transformService'][_0x4422a4(0x249)](_0x20034e,_0x3acc1b,!0x1);if(_0x594698(_0x562b49))throw _0x562b49[_0x4422a4(0x2d5)];_0x5826b1[_0x4422a4(0x13b)](_0x1b928a,{..._0x154dee,'ranges':_0x562b49[_0x4422a4(0x166)][_0x4422a4(0x281)]['textRanges']});}queueMicrotask(()=>{const _0x3e23f3=_0x4422a4;this[_0x3e23f3(0x154)][_0x3e23f3(0xe6)](_0x5826b1);});})));}['_onCursorUpdate'](_0x9867e1){const _0xa1f2dc=_0x12f7be;var _0x5517a5,_0x449865;const {memberID:_0x51bf32,selection:_0x269311}=_0x9867e1[_0xa1f2dc(0x19f)],_0x5d1f4c=Ai(_0x269311),_0x16d882=(_0x449865=(_0x5517a5=this[_0xa1f2dc(0x208)][_0xa1f2dc(0x1fa)](this[_0xa1f2dc(0x254)],_0x51bf32))==null?void 0x0:_0x5517a5[_0xa1f2dc(0x197)])!=null?_0x449865:'Unknown\x20user',_0x13adb8={'color':this['_colorAssignService'][_0xa1f2dc(0xff)](_0x51bf32),'name':_0x16d882,'ranges':_0x5d1f4c},_0x38ace7=this[_0xa1f2dc(0x2b1)];_0x38ace7[_0xa1f2dc(0x13b)](_0x51bf32,_0x13adb8),this[_0xa1f2dc(0x154)][_0xa1f2dc(0xe6)](_0x38ace7);}[_0x12f7be(0x1f3)](_0x6b4e0d){const _0xa0b45f=_0x12f7be,{memberID:_0x58010c}=_0x6b4e0d['data'],_0x421bf8=this[_0xa0b45f(0x2b1)];_0x421bf8[_0xa0b45f(0x1a0)](_0x58010c),this['_cursorInfo$']['next'](_0x421bf8);}['_toggleOnline'](){const _0x4f9e56=_0x12f7be;var _0x23d946;if(this[_0x4f9e56(0x22f)]=!0x0,((_0x23d946=this[_0x4f9e56(0x1e0)][_0x4f9e56(0x20d)]())==null?void 0x0:_0x23d946[_0x4f9e56(0xb6)]())!==this[_0x4f9e56(0x254)])return;const _0x36946d=this['_injector'][_0x4f9e56(0x163)](_0x299386)[_0x4f9e56(0x293)]();Array['isArray'](_0x36946d)&&_0x36946d[_0x4f9e56(0x1c8)]>0x0&&this['_updateLocalCursor'](_0x36946d);}[_0x12f7be(0x133)](){const _0x1e1135=_0x12f7be;this[_0x1e1135(0x22f)]=!0x1;}};xe=wi([A(0x2,_0x3714f8(_0x24a160)),A(0x3,_0x3714f8(Ke)),A(0x4,_0x3714f8(_0xa7c392)),A(0x5,_0x3714f8(ze)),A(0x6,_0x5963ba),A(0x7,_0x52d51e),A(0x8,_0x58f12e)],xe);var xi=Object[_0x12f7be(0x214)],Bi=(_0x4b2ec0,_0x32de92,_0x4aedeb,_0x2f27b2)=>{for(var _0xecfd=_0x2f27b2>0x1?void 0x0:_0x2f27b2?xi(_0x32de92,_0x4aedeb):_0x32de92,_0x4e9118=_0x4b2ec0['length']-0x1,_0x243adf;_0x4e9118>=0x0;_0x4e9118--)(_0x243adf=_0x4b2ec0[_0x4e9118])&&(_0xecfd=_0x243adf(_0xecfd)||_0xecfd);return _0xecfd;},B=(_0x1d83f5,_0x4e6ebb)=>(_0x3ef48b,_0x3ab8d7)=>_0x4e6ebb(_0x3ef48b,_0x3ab8d7,_0x1d83f5);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x31d106=[],_0x58ef4c=!0x1;return _0x47da9b=>{const _0x121db0=_0x473f;_0x31d106[_0x121db0(0x210)](_0x47da9b),_0x58ef4c||(_0x58ef4c=!0x0,setTimeout(()=>{const _0x2f93d4=_0x121db0;_0x31d106[_0x2f93d4(0x275)](_0x3ee024=>_0x3ee024()),_0x31d106=[],_0x58ef4c=!0x1;}));};};let Be=class extends _0x53e01a{constructor(_0x3a82ca,_0x4ff01d,_0x1a6338,_0x33d356,_0x22a62d,_0x2a8548,_0x2fe06a,_0x3e2b96){const _0x1f91b5=_0x12f7be;super(),_(this,_0x1f91b5(0x22f),!0x1),_(this,_0x1f91b5(0x279),!0x1),_(this,_0x1f91b5(0x154),new _0x51f523(new Map())),_(this,_0x1f91b5(0x1d5),this['_cursorInfo$'][_0x1f91b5(0x195)]()),_(this,_0x1f91b5(0x155),new _0x51f523([])),_(this,_0x1f91b5(0x2ee),this[_0x1f91b5(0x155)][_0x1f91b5(0x1c3)](_0x19303b(Fi))),_(this,_0x1f91b5(0x22c),_0x5a1035((_0x5a4c4e,_0x224274)=>{const _0x5638f1=_0x1f91b5,_0x2a960c={'eventID':_0x38e1b2[_0x5638f1(0x27b)],'data':{'unitID':this['unitID'],'memberID':this[_0x5638f1(0xb0)][_0x5638f1(0x196)](),'selection':_0x269cf9(_0x5a4c4e,_0x224274['range'])}};this[_0x5638f1(0xb0)][_0x5638f1(0x1d2)](_0x2a960c,this[_0x5638f1(0x254)]);},ki)),(this[_0x1f91b5(0x254)]=_0x3a82ca,this['_session']=_0x4ff01d,this[_0x1f91b5(0x213)]=_0x1a6338,this[_0x1f91b5(0xd2)]=_0x33d356,this[_0x1f91b5(0x208)]=_0x22a62d,this[_0x1f91b5(0x1e0)]=_0x2a8548,this[_0x1f91b5(0x21d)]=_0x2fe06a,this['_refRangeService']=_0x3e2b96);}get['cursorInfo'](){const _0x5460d7=_0x12f7be;return this[_0x5460d7(0x154)]['getValue']();}get['roomMembers'](){const _0x5cdb86=_0x12f7be;return this[_0x5cdb86(0x155)][_0x5cdb86(0x2eb)]();}[_0x12f7be(0x2e8)](){const _0x345f90=_0x12f7be;super[_0x345f90(0x2e8)](),this['_cursorInfo$']['next'](new Map()),this[_0x345f90(0x154)][_0x345f90(0x1a5)](),this[_0x345f90(0x155)][_0x345f90(0xe6)]([]),this[_0x345f90(0x155)][_0x345f90(0x1a5)]();}['init'](){const _0x15f3c6=_0x12f7be;this[_0x15f3c6(0x279)]||(this[_0x15f3c6(0x279)]=!0x0,this[_0x15f3c6(0xb0)]['sessionStatus$'][_0x15f3c6(0x1c3)](_0x4da0bf(this[_0x15f3c6(0x2a6)]))['subscribe'](_0x22e7df=>{const _0x3ea967=_0x15f3c6;_0x22e7df===_0x434c9d[_0x3ea967(0x2f5)]?this[_0x3ea967(0x2aa)]():this[_0x3ea967(0x133)]();}),this['_session'][_0x15f3c6(0x295)][_0x15f3c6(0x1c3)](_0x4da0bf(this[_0x15f3c6(0x2a6)]))['subscribe'](_0x57dd78=>{const _0x40db85=_0x15f3c6,_0x363c17=_0x57dd78['eventID'];_0x363c17===_0x38e1b2[_0x40db85(0x27b)]&&this['_onCursorUpdate'](_0x57dd78),_0x363c17===_0x38e1b2[_0x40db85(0x296)]&&this['_onCursorDelete'](_0x57dd78);}),this['_onRefRangeChange'](),this['disposeWithMe'](this[_0x15f3c6(0x21d)][_0x15f3c6(0x188)](_0x74c1f8=>{const _0x50605d=_0x15f3c6;if(this[_0x50605d(0x22f)]&&_0x74c1f8['id']===_0x25f058['id']&&_0x74c1f8['params'][_0x50605d(0x2a5)]===this[_0x50605d(0x254)]){const _0x2e5eb1=_0x74c1f8[_0x50605d(0x281)];this[_0x50605d(0x22c)](_0x2e5eb1[_0x50605d(0x260)],_0x2e5eb1[_0x50605d(0x1e8)][0x0]);}})));}[_0x12f7be(0x1f4)](_0x5d694f){const _0x2b5a94=_0x12f7be;var _0x4c9ec6,_0x2548d7;const {memberID:_0xbed6a5,selection:_0x4e4c64}=_0x5d694f[_0x2b5a94(0x19f)],{sheetName:_0x48b17c,range:_0x6575cc}=_0x1513e7(_0x4e4c64),_0x2ce775={'name':(_0x2548d7=(_0x4c9ec6=this['_memberService'][_0x2b5a94(0x1fa)](this['unitID'],_0xbed6a5))==null?void 0x0:_0x4c9ec6[_0x2b5a94(0x197)])!=null?_0x2548d7:_0x2b5a94(0x211),'range':this[_0x2b5a94(0xda)](_0x48b17c,_0x6575cc),'sheetID':_0x48b17c,'color':this['_colorAssignService'][_0x2b5a94(0xff)](_0xbed6a5),'selection':_0x4e4c64},_0x4eac91=this[_0x2b5a94(0x2b1)];_0x4eac91[_0x2b5a94(0x13b)](_0xbed6a5,_0x2ce775),this[_0x2b5a94(0x154)][_0x2b5a94(0xe6)](_0x4eac91);}['_onCursorDelete'](_0x34c034){const _0xa7078d=_0x12f7be,{memberID:_0x1a11ff}=_0x34c034['data'],_0x1ce100=this[_0xa7078d(0x2b1)];_0x1ce100['delete'](_0x1a11ff),this[_0xa7078d(0x154)][_0xa7078d(0xe6)](_0x1ce100);}[_0x12f7be(0xda)](_0x2f30b0,_0x577bad){const _0x333cc5=_0x12f7be;var _0x2b205a,_0x429aac;const _0x558629=(_0x429aac=(_0x2b205a=this[_0x333cc5(0x1e0)]['getUniverSheetInstance'](this[_0x333cc5(0x254)]))==null?void 0x0:_0x2b205a[_0x333cc5(0x1af)](_0x2f30b0))==null?void 0x0:_0x429aac[_0x333cc5(0x277)]();return(_0x558629==null?void 0x0:_0x558629[_0x333cc5(0x305)](_0x3bb35d=>_0x3fed9b[_0x333cc5(0x151)](_0x3bb35d,_0x577bad)))||_0x577bad;}[_0x12f7be(0x2b9)](){const _0x5739d3=_0x12f7be,_0x301356=new _0x4284de(),_0x303c48=Hi(),_0x4c4785=()=>{const _0x4eb8d8=_0x473f;_0x301356[_0x4eb8d8(0x2e8)]();const _0x497c1b=(_0x468276,_0x2e8a18,_0x1e39bb,_0x2bfb31)=>{const _0x36759c=_0x4eb8d8;let _0x12284f=[];switch(_0x468276['id']){case _0x4eb700[_0x36759c(0xf0)]:{_0x12284f=_0x16e40f(_0x468276,_0x2bfb31);break;}case _0x4eb700[_0x36759c(0x1fe)]:{_0x12284f=_0x5e9d7d(_0x468276,_0x2bfb31);break;}case _0x4eb700[_0x36759c(0xbf)]:{_0x12284f=_0x3f84c9(_0x468276,_0x2bfb31);break;}case _0x4eb700[_0x36759c(0x1c0)]:{_0x12284f=_0x3fbd49(_0x468276,_0x2bfb31);break;}case _0x4eb700[_0x36759c(0x181)]:{_0x12284f=_0x554330(_0x468276,_0x2bfb31);break;}case _0x4eb700[_0x36759c(0x1c7)]:{_0x12284f=_0x44d812(_0x468276,_0x2bfb31);break;}case _0x4eb700[_0x36759c(0x241)]:{_0x12284f=_0x221e69(_0x468276,_0x2bfb31);break;}case _0x4eb700[_0x36759c(0x15e)]:{_0x12284f=_0x3dbb55(_0x468276,_0x2bfb31);break;}case _0x4eb700[_0x36759c(0x22e)]:{_0x12284f=_0x44c162(_0x468276,_0x2bfb31);break;}}const _0x2582e9=_0x908350(_0x12284f,_0x2bfb31),_0x42de02=this[_0x36759c(0x2b1)][_0x36759c(0x163)](_0x2e8a18);if(_0x42de02&&_0x2582e9){const _0xd58f9={..._0x42de02,'range':_0x2582e9};this['cursorInfo'][_0x36759c(0x13b)](_0x2e8a18,_0xd58f9),_0x303c48(()=>{const _0xa5c244=_0x36759c,_0x5d6b1b=this[_0xa5c244(0x1df)]['registerRefRange'](_0x2582e9,_0x8ffb0f=>(_0x5d6b1b[_0xa5c244(0x2e8)](),_0x497c1b(_0x8ffb0f,_0x2e8a18,_0x1e39bb,_0x2582e9)));_0x301356[_0xa5c244(0x1ad)](_0x5d6b1b);});}return{'redos':[],'undos':[]};};this[_0x4eb8d8(0x2b1)][_0x4eb8d8(0x275)]((_0x485d77,_0x38e578)=>{const _0x460f70=_0x4eb8d8,{range:_0x141537,sheetID:_0x3ea322}=_0x485d77,_0x22d2a1=this[_0x460f70(0x1df)][_0x460f70(0x2ed)](_0x141537,_0x59ad45=>(_0x22d2a1[_0x460f70(0x2e8)](),_0x497c1b(_0x59ad45,_0x38e578,_0x3ea322,_0x141537)));_0x301356[_0x460f70(0x1ad)](_0x22d2a1);});};this[_0x5739d3(0x26c)](_0x16c8e4(this['_cursorInfo$'][_0x5739d3(0x1e6)](()=>{_0x4c4785();})));}[_0x12f7be(0x2aa)](){const _0x67930=_0x12f7be;var _0x31b23a,_0x4e9a22;if(this[_0x67930(0x22f)]=!0x0,((_0x31b23a=this[_0x67930(0x1e0)][_0x67930(0x20d)]())==null?void 0x0:_0x31b23a[_0x67930(0xb6)]())!==this['unitID'])return;const _0x39372c=(_0x4e9a22=this[_0x67930(0x213)][_0x67930(0x163)](_0x5bbf8d)[_0x67930(0x22d)]())==null?void 0x0:_0x4e9a22[0x0],_0x27acc8=this[_0x67930(0x1e0)]['getCurrentUnitForType'](_0x53cd3e['UNIVER_SHEET'])['getActiveSheet']();_0x39372c&&_0x27acc8&&this['_updateLocalCursor'](_0x27acc8[_0x67930(0x184)](),_0x39372c);}['_toggleOffline'](){const _0x291995=_0x12f7be;this[_0x291995(0x22f)]=!0x1;}};Be=Bi([B(0x2,_0x3714f8(_0x24a160)),B(0x3,_0x3714f8(Ke)),B(0x4,_0x3714f8(_0xa7c392)),B(0x5,_0x52d51e),B(0x6,_0x58f12e),B(0x7,_0x3714f8(_0xe3159f))],Be);var Yi=Object[_0x12f7be(0x214)],Wi=(_0x184b2a,_0x366585,_0x40c509,_0x5dfe28)=>{const _0x3dd4fb=_0x12f7be;for(var _0x2940f1=_0x5dfe28>0x1?void 0x0:_0x5dfe28?Yi(_0x366585,_0x40c509):_0x366585,_0x154b77=_0x184b2a[_0x3dd4fb(0x1c8)]-0x1,_0x16ebf5;_0x154b77>=0x0;_0x154b77--)(_0x16ebf5=_0x184b2a[_0x154b77])&&(_0x2940f1=_0x16ebf5(_0x2940f1)||_0x2940f1);return _0x2940f1;},Ce=(_0xbb063f,_0x4d0b4d)=>(_0x35d965,_0x26622b)=>_0x4d0b4d(_0x35d965,_0x26622b,_0xbb063f);let H=class extends _0x53e01a{constructor(_0x1a0743,_0x46237f,_0x56dc58){const _0x9c7051=_0x12f7be;super(),_(this,_0x9c7051(0x1f2),new Map()),_(this,_0x9c7051(0x239),new _0x1fac1f()),(this[_0x9c7051(0x1e0)]=_0x1a0743,this[_0x9c7051(0x213)]=_0x46237f,this[_0x9c7051(0x104)]=_0x56dc58,this[_0x9c7051(0x279)]());}[_0x12f7be(0x2e8)](){const _0x233184=_0x12f7be;super[_0x233184(0x2e8)](),this[_0x233184(0x239)][_0x233184(0x1a5)](),this[_0x233184(0x1f2)][_0x233184(0x275)](_0x43807a=>_0x43807a['dispose']());}[_0x12f7be(0x2bc)](_0x1f5219){const _0x3b0f8d=_0x12f7be;return this[_0x3b0f8d(0x1f2)]['has'](_0x1f5219)?this[_0x3b0f8d(0x1f2)][_0x3b0f8d(0x163)](_0x1f5219)[_0x3b0f8d(0x1d5)]:this[_0x3b0f8d(0x239)][_0x3b0f8d(0x1c3)](_0x24339d(_0x16651f=>_0x16651f[_0x3b0f8d(0x254)]===_0x1f5219),_0x55969c(_0x5b8951=>_0x5b8951[_0x3b0f8d(0x1d5)]));}[_0x12f7be(0x279)](){const _0x431087=_0x12f7be;this['_univerInstanceService'][_0x431087(0x292)](_0x53cd3e[_0x431087(0x268)])[_0x431087(0x1c3)](_0x4da0bf(this[_0x431087(0x2a6)]))[_0x431087(0x1e6)](async _0x3e5f22=>{const _0xee150b=_0x431087,_0x3ab7e2=_0x3e5f22['getUnitId'](),_0x528217=await this['_startSheetCollabCursor'](_0x3ab7e2);this[_0xee150b(0x239)]['next'](_0x528217),this['_entities']['set'](_0x3ab7e2,_0x528217);}),this[_0x431087(0x1e0)][_0x431087(0x292)](_0x53cd3e[_0x431087(0xc1)])[_0x431087(0x1c3)](_0x4da0bf(this[_0x431087(0x2a6)]))['pipe'](_0x24339d(_0x103895=>!_0x103895[_0x431087(0xb6)]()[_0x431087(0x24d)]('__')))[_0x431087(0x1e6)](async _0xc4fd2a=>{const _0x462ee3=_0x431087,_0x4acf7f=_0xc4fd2a[_0x462ee3(0xb6)](),_0x5be69a=await this['_startDocCollabCursor'](_0x4acf7f);this[_0x462ee3(0x239)]['next'](_0x5be69a),this[_0x462ee3(0x1f2)][_0x462ee3(0x13b)](_0x4acf7f,_0x5be69a);}),_0x826d92(this[_0x431087(0x1e0)][_0x431087(0x226)](_0x53cd3e['UNIVER_DOC']),this[_0x431087(0x1e0)][_0x431087(0x226)](_0x53cd3e[_0x431087(0x268)]))[_0x431087(0x1c3)](_0x4da0bf(this[_0x431087(0x2a6)]))[_0x431087(0x1e6)](_0x7adf37=>{const _0x402eeb=_0x431087,_0x3d9ba2=_0x7adf37['getUnitId'](),_0x23441e=this[_0x402eeb(0x1f2)][_0x402eeb(0x163)](_0x3d9ba2);_0x23441e&&(_0x23441e[_0x402eeb(0x2e8)](),this[_0x402eeb(0x1f2)][_0x402eeb(0x1a0)](_0x3d9ba2));});}async[_0x12f7be(0x190)](_0x5b1063){const _0x571974=_0x12f7be,_0x42dd4a=await this[_0x571974(0x104)][_0x571974(0xe3)](_0x5b1063),_0x568719=this[_0x571974(0x213)][_0x571974(0x205)](Be,_0x5b1063,_0x42dd4a);return _0x568719[_0x571974(0x233)](),_0x568719;}async['_startDocCollabCursor'](_0x2776cc){const _0x2e7e5c=_0x12f7be,_0x1a9dbf=await this[_0x2e7e5c(0x104)][_0x2e7e5c(0xe3)](_0x2776cc),_0x1cbb6b=this[_0x2e7e5c(0x213)][_0x2e7e5c(0x205)](xe,_0x2776cc,_0x1a9dbf);return _0x1cbb6b[_0x2e7e5c(0x233)](),_0x1cbb6b;}};H=Wi([Ce(0x0,_0x52d51e),Ce(0x1,_0x3714f8(_0x24a160)),Ce(0x2,_0x3714f8(_0x3c5e90))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x3aee98,_0x49d5ca){const _0x1d0fbb=_0x12f7be;let {radius:_0x5109f0,width:_0x22f2b1,height:_0x444189}=_0x49d5ca;_0x5109f0=_0x5109f0!=null?_0x5109f0:0x0,_0x22f2b1=_0x22f2b1!=null?_0x22f2b1:0x1e,_0x444189=_0x444189!=null?_0x444189:0x1e;let _0x77570e=0x0,_0x5b3e8e=0x0,_0x47f795=0x0;_0x77570e=_0x5b3e8e=_0x47f795=Math[_0x1d0fbb(0xf7)](_0x5109f0,_0x22f2b1/0x2,_0x444189/0x2),_0x3aee98[_0x1d0fbb(0xef)](),_0x3aee98['moveTo'](_0x77570e,0x0),_0x3aee98[_0x1d0fbb(0x15b)](_0x22f2b1-_0x5b3e8e,0x0),_0x3aee98[_0x1d0fbb(0x26d)](_0x22f2b1-_0x5b3e8e,_0x5b3e8e,_0x5b3e8e,Math['PI']*0x3/0x2,0x0,!0x1),_0x3aee98[_0x1d0fbb(0x15b)](_0x22f2b1,_0x444189-_0x47f795),_0x3aee98[_0x1d0fbb(0x26d)](_0x22f2b1-_0x47f795,_0x444189-_0x47f795,_0x47f795,0x0,Math['PI']/0x2,!0x1),_0x3aee98['lineTo'](0x0,_0x444189),_0x3aee98[_0x1d0fbb(0x15b)](0x0,_0x77570e),_0x3aee98[_0x1d0fbb(0x26d)](_0x77570e,_0x77570e,_0x77570e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3aee98[_0x1d0fbb(0x20a)](),_0x49d5ca[_0x1d0fbb(0x26a)]&&(_0x3aee98[_0x1d0fbb(0x2f3)](),_0x3aee98['fillStyle']=_0x49d5ca[_0x1d0fbb(0x26a)],_0x49d5ca[_0x1d0fbb(0x263)]===_0x1d0fbb(0xfa)?_0x3aee98[_0x1d0fbb(0x26a)](_0x1d0fbb(0xfa)):_0x3aee98[_0x1d0fbb(0x26a)](),_0x3aee98['restore']());}class ve extends _0x453ad9{constructor(_0x4339b5,_0x1dee56){const _0x50e9af=_0x12f7be;super(_0x4339b5,_0x1dee56),_(this,_0x50e9af(0x126)),_(this,_0x50e9af(0x2ca)),(this[_0x50e9af(0x126)]=_0x1dee56==null?void 0x0:_0x1dee56[_0x50e9af(0x126)],this[_0x50e9af(0x2ca)]=_0x1dee56==null?void 0x0:_0x1dee56[_0x50e9af(0x2ca)]);}static[_0x12f7be(0x2ef)](_0x115982,_0x2d18cd){const _0x407810=_0x12f7be,{text:_0x23d510,color:_0x2d430f}=_0x2d18cd;_0x115982[_0x407810(0x2f3)](),_0x115982[_0x407810(0x1c6)]=_0x407810(0x180);const _0x12632f=_0x115982[_0x407810(0x1f6)](_0x23d510)['width'],_0x3c2e75=Math['min'](_0x12632f+0x2*Re,at);ji(_0x115982,{'height':Q,'radius':0x4,'width':_0x3c2e75,'fill':_0x2d430f}),_0x115982[_0x407810(0x125)]='#FFF';const _0x11674f=Re,_0xa1e2ad=Q-Vi,_0x5b3e88=at-0x2*Re;if(_0x12632f>_0x5b3e88){let _0x30eb8d='',_0x427bd5=0x0;for(const _0x381f56 of _0x23d510){const _0x2deedd=_0x115982[_0x407810(0x1f6)](_0x381f56)['width'];if(_0x427bd5+_0x2deedd<=_0x5b3e88-_0x115982[_0x407810(0x1f6)](_0x407810(0x168))[_0x407810(0x1e2)])_0x30eb8d+=_0x381f56,_0x427bd5+=_0x2deedd;else{_0x30eb8d+=_0x407810(0x168);break;}}_0x115982['fillText'](_0x30eb8d,_0x11674f,_0xa1e2ad);}else _0x115982[_0x407810(0x301)](_0x23d510,_0x11674f,_0xa1e2ad);_0x115982[_0x407810(0x2d0)]();}['_draw'](_0x33daab){const _0x338eda=_0x12f7be;ve[_0x338eda(0x2ef)](_0x33daab,this);}}const De='collab-text-anchor-',Xi='collab-text-range-',Gi=_0x12f7be(0x250),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x12f7be(0x15c);class ct{constructor(_0x2bbc12,_0x3b311e,_0x16ca4d,_0x5edcc1){const _0x38ca3e=_0x12f7be;_(this,_0x38ca3e(0x1a7),[]),_(this,_0x38ca3e(0xbb),null),_(this,_0x38ca3e(0x17f),null),_(this,'_anchorDot',null),_(this,'_hideTimer',null),_(this,_0x38ca3e(0x29d),null),(this['_cursor']=_0x2bbc12,this['_scene']=_0x3b311e,this['_docSkeleton']=_0x16ca4d,this['_document']=_0x5edcc1,this[_0x38ca3e(0x11d)]());}set[_0x12f7be(0x162)](_0xdc858a){const _0x16beab=_0x12f7be;_0xdc858a?(this[_0x16beab(0x244)]&&this[_0x16beab(0x244)][_0x16beab(0x1f8)](),this[_0x16beab(0x17f)]&&this[_0x16beab(0x17f)][_0x16beab(0xd0)]()):(this['_anchorDot']&&this[_0x16beab(0x244)][_0x16beab(0xd0)](),this[_0x16beab(0x17f)]&&this[_0x16beab(0x17f)]['hide']());}[_0x12f7be(0x2e8)](){const _0x2ebf19=_0x12f7be;for(const _0x1d1e1f of this[_0x2ebf19(0x1a7)])_0x1d1e1f[_0x2ebf19(0x2e8)]();this[_0x2ebf19(0x17f)]&&this[_0x2ebf19(0x17f)]['dispose'](),this['_anchorDot']&&this[_0x2ebf19(0x244)]['dispose'](),this[_0x2ebf19(0xbb)]&&this[_0x2ebf19(0xbb)][_0x2ebf19(0x2e8)](),this[_0x2ebf19(0x29d)]&&this[_0x2ebf19(0x29d)]();}[_0x12f7be(0x11d)](){const _0x342eca=_0x12f7be;var _0x102826;const {_docSkeleton:_0x1618ad,_document:_0x31e27f}=this,{color:_0x4c2c71,name:_0x19f8ad,ranges:_0x1c1a3e}=this[_0x342eca(0x152)],_0x325d15=_0x31e27f[_0x342eca(0x2d8)](),{docsLeft:_0x2f1181,docsTop:_0x36a27f}=_0x325d15,_0x8e8cc8=new _0x5a7e88(_0x325d15,_0x1618ad);for(const {startOffset:_0x35c291,endOffset:_0x24dc14,rangeType:_0x3c7e41,segmentId:_0x400d6e,segmentPage:_0x455cdd,collapsed:_0x3f44fe,isActive:_0xddd5a0}of _0x1c1a3e){const _0xf5391d=_0x1618ad[_0x342eca(0xb5)](_0x35c291,!0x0,_0x400d6e,_0x455cdd);let _0x12f2cf=_0x1618ad[_0x342eca(0xb5)](_0x24dc14,!0x0,_0x400d6e,_0x455cdd);if(_0x12f2cf==null&&(_0x12f2cf=_0x1618ad[_0x342eca(0xb5)](_0x24dc14-0x1,!0x1,_0x400d6e,_0x455cdd)),_0xddd5a0){const {contentBoxPointGroup:_0x1558b5}=_0x8e8cc8[_0x342eca(0x2b8)](_0x12f2cf,_0x12f2cf);if(_0x1558b5[_0x342eca(0x1c8)]===0x0)continue;this['_drawAnchor'](_0x4c2c71,_0x1558b5,_0x2f1181,_0x36a27f,_0x19f8ad),this[_0x342eca(0x29d)]=this[_0x342eca(0x24e)]();}if(_0xf5391d&&_0x12f2cf){if(_0x3c7e41===_0x6ed74f[_0x342eca(0x101)]){const _0x26f9c9=new _0x506f46(_0x325d15,_0x1618ad),{pointGroup:_0x36c61d}=(_0x102826=_0x26f9c9['getRangePointData'](_0xf5391d,_0x12f2cf))!=null?_0x102826:{};if(_0x36c61d==null||_0x36c61d[_0x342eca(0x1c8)]===0x0)continue;this[_0x342eca(0x1cd)](_0x4c2c71,_0x36c61d,_0x2f1181,_0x36a27f);}else{if(!_0x3f44fe){const {borderBoxPointGroup:_0x27e9dc}=_0x8e8cc8[_0x342eca(0x2b8)](_0xf5391d,_0x12f2cf);if(_0x27e9dc[_0x342eca(0x1c8)]===0x0)continue;this['_drawTextRange'](_0x4c2c71,_0x27e9dc,_0x2f1181,_0x36a27f);}}}}}[_0x12f7be(0xc9)](_0x33d5cd,_0x652d4a,_0x15b4ad,_0x291ad7,_0x5b35d4){const _0x55145f=_0x12f7be,_0x279171=this[_0x55145f(0x269)](_0x652d4a),{left:_0x1cc67b,top:_0x4c7f54,height:_0x54a19d}=_0x279171,_0x5e410b=this[_0x55145f(0x2e0)](),_0x3ca605=zi/_0x5e410b,_0x30e121=new _0xf6029d(De+_0x28ef98(z),{'left':_0x1cc67b+_0x15b4ad-_0x3ca605,'top':_0x4c7f54+_0x291ad7,'height':_0x54a19d,'width':Ki,'fill':_0x33d5cd||_0x51fc9e(_0x5c8de6[_0x55145f(0x16f)],0x0),'strokeWidth':_0x3ca605,'stroke':Ji,'evented':!0x0});this[_0x55145f(0xbb)]=_0x30e121,this[_0x55145f(0x276)][_0x55145f(0x247)](_0x30e121,_0x4df622);const _0xf576c2=new _0xf6029d(De+_0x28ef98(z),{'left':_0x1cc67b+_0x15b4ad-_0x3ca605,'top':_0x4c7f54+_0x291ad7-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x33d5cd||_0x51fc9e(_0x5c8de6['black'],0x0),'strokeWidth':0x0,'stroke':_0x33d5cd||_0x51fc9e(_0x5c8de6[_0x55145f(0x16f)],0x0),'evented':!0x1});this[_0x55145f(0x244)]=_0xf576c2,this[_0x55145f(0x276)][_0x55145f(0x247)](_0xf576c2,_0x4df622);const _0x22aa12=new ve(De+_0x28ef98(z),{'left':_0x1cc67b+_0x15b4ad-_0x3ca605,'top':_0x4c7f54+_0x291ad7-Q,'text':_0x5b35d4,'color':_0x33d5cd});this[_0x55145f(0x17f)]=_0x22aa12,this[_0x55145f(0x276)][_0x55145f(0x247)](_0x22aa12,_0x4df622),this['_hover']=!0x1;}[_0x12f7be(0x24e)](){const _0x2ba20a=_0x12f7be,_0x5694f8=this[_0x2ba20a(0xbb)][_0x2ba20a(0x198)]['subscribeEvent'](()=>{const _0x434ee8=_0x2ba20a;this[_0x434ee8(0x162)]=!0x0;}),_0x48e84b=this['_anchor'][_0x2ba20a(0x286)][_0x2ba20a(0x2b5)](()=>{const _0x340860=_0x2ba20a;this[_0x340860(0x2c7)]&&clearTimeout(this[_0x340860(0x2c7)]),this[_0x340860(0x2c7)]=setTimeout(()=>{const _0x508636=_0x340860;this[_0x508636(0x162)]=!0x1;},0x7d0);});return()=>{const _0x337777=_0x2ba20a;_0x5694f8[_0x337777(0x29f)](),_0x48e84b[_0x337777(0x29f)]();};}[_0x12f7be(0x227)](_0x1bd1f2,_0x360670,_0x103b50,_0x179ede){const _0x4e8349=_0x12f7be,_0xe04fb1=new _0x376a8e(_0x1bd1f2)[_0x4e8349(0x308)](0.2)[_0x4e8349(0x1e7)](),_0x369376=new _0x6842e7(Xi+_0x28ef98(z),{'pointsGroup':_0x360670,'fill':_0xe04fb1||_0x51fc9e(_0x5c8de6[_0x4e8349(0x16f)],0.2),'left':_0x103b50,'top':_0x179ede,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4e8349(0x1a7)][_0x4e8349(0x210)](_0x369376),this[_0x4e8349(0x276)][_0x4e8349(0x247)](_0x369376,_0x4df622);}['_drawRectRange'](_0x20860e,_0x25efbe,_0x287e1c,_0xe8ca54){const _0x3582f4=_0x12f7be,_0x4e1d71=new _0x376a8e(_0x20860e)[_0x3582f4(0x308)](0.2)[_0x3582f4(0x1e7)](),_0x2b55d8=new _0x6842e7(Gi+_0x28ef98(z),{'pointsGroup':_0x25efbe,'fill':_0x4e1d71||_0x51fc9e(_0x5c8de6[_0x3582f4(0x16f)],0.2),'left':_0x287e1c,'top':_0xe8ca54,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3582f4(0x1a7)][_0x3582f4(0x210)](_0x2b55d8),this[_0x3582f4(0x276)][_0x3582f4(0x247)](_0x2b55d8,_0x4df622);}[_0x12f7be(0x269)](_0x18b3ef){const _0xce881d=_0x18b3ef[0x0],_0x476ae9=_0xce881d[0x0],_0x5b6c1f=_0xce881d[0x2],{x:_0x3ea84a,y:_0x491c69}=_0x476ae9,{x:_0x13e383,y:_0x4389b0}=_0x5b6c1f;return{'left':_0x3ea84a,'top':_0x491c69,'width':_0x13e383-_0x3ea84a,'height':_0x4389b0-_0x491c69};}[_0x12f7be(0x2e0)](){const _0x57e18d=_0x12f7be,{scaleX:_0x38c7b3,scaleY:_0x2a8c29}=this['_scene'][_0x57e18d(0x1b3)]();return Math[_0x57e18d(0xfc)](_0x38c7b3,_0x2a8c29);}}var Zi=Object[_0x12f7be(0x214)],Qi=(_0x3c982c,_0x4a766d,_0x3f0dbd,_0x2c7de9)=>{const _0x49862a=_0x12f7be;for(var _0x41018d=_0x2c7de9>0x1?void 0x0:_0x2c7de9?Zi(_0x4a766d,_0x3f0dbd):_0x4a766d,_0x1c8bd0=_0x3c982c[_0x49862a(0x1c8)]-0x1,_0x49b0bb;_0x1c8bd0>=0x0;_0x1c8bd0--)(_0x49b0bb=_0x3c982c[_0x1c8bd0])&&(_0x41018d=_0x49b0bb(_0x41018d)||_0x41018d);return _0x41018d;},ie=(_0x32a7ba,_0x1df4fd)=>(_0x5e17c5,_0x530bf1)=>_0x1df4fd(_0x5e17c5,_0x530bf1,_0x32a7ba);let Fe=class extends _0x53e01a{constructor(_0xdc8141,_0x22f04d,_0x5de0e6,_0x5226d3,_0x2bea8b){const _0x32c505=_0x12f7be;super(),_(this,_0x32c505(0x123),[]),_(this,_0x32c505(0x145),[]),(this[_0x32c505(0x2a0)]=_0xdc8141,this['_docSkeletonManagerService']=_0x22f04d,this[_0x32c505(0xbd)]=_0x5de0e6,this[_0x32c505(0x21d)]=_0x5226d3,this['_themeService']=_0x2bea8b,this[_0x32c505(0x279)]());}[_0x12f7be(0x279)](){const _0x10e2b4=_0x12f7be,_0x2c449d=this[_0x10e2b4(0x2a0)][_0x10e2b4(0x2a5)],_0x1e28d0=this[_0x10e2b4(0x12a)];this['disposeWithMe'](_0x48aeb3([this[_0x10e2b4(0xbd)][_0x10e2b4(0x2bc)](_0x2c449d),this[_0x10e2b4(0xf4)]['currentTheme$']])[_0x10e2b4(0x1c3)](_0x2da2ce(([_0x313d77,_0x5021cf])=>({'skeleton':_0x1e28d0[_0x10e2b4(0x153)](),'cursors':[..._0x313d77['values']()][_0x10e2b4(0x25c)](_0x144cf1=>({..._0x144cf1,'color':this['_themeService'][_0x10e2b4(0x157)](_0x144cf1[_0x10e2b4(0x126)])}))})))[_0x10e2b4(0x1e6)](_0x114a47=>{const _0x505add=_0x10e2b4;if(this[_0x505add(0x224)](),_0x114a47){const {skeleton:_0x22013d,cursors:_0x3e5174}=_0x114a47;this[_0x505add(0x187)](_0x22013d,_0x3e5174);}})),this[_0x10e2b4(0x25d)](),this[_0x10e2b4(0x1b8)]();}[_0x12f7be(0x187)](_0x2c4bbc,_0x559470){const _0xc2c653=_0x12f7be,{scene:_0x36b2fd,mainComponent:_0x2cc37b}=this[_0xc2c653(0x2a0)],_0xaa9174=_0x559470[_0xc2c653(0x2ae)](_0x182bb9=>new ct(_0x182bb9,_0x36b2fd,_0x2c4bbc,_0x2cc37b));this[_0xc2c653(0x123)]=_0xaa9174,this[_0xc2c653(0x145)]=_0x559470;}[_0x12f7be(0x128)](){const _0x25316b=_0x12f7be;this[_0x25316b(0x224)]();const {scene:_0x333955,mainComponent:_0x2a9c9a}=this[_0x25316b(0x2a0)],_0x4c5ba2=this['_docSkeletonManagerService'][_0x25316b(0x153)](),_0x735c7=this['_cursors'][_0x25316b(0x2ae)](_0xa49286=>new ct(_0xa49286,_0x333955,_0x4c5ba2,_0x2a9c9a));this[_0x25316b(0x123)]=_0x735c7;}[_0x12f7be(0x224)](){const _0x3d3ed1=_0x12f7be;this['_cursorShapes'][_0x3d3ed1(0x275)](_0xf9d58c=>_0xf9d58c['dispose']()),this[_0x3d3ed1(0x123)]=[];}['_initCommandExecutedListener'](){const _0x26a193=_0x12f7be,_0x35ab5a=[_0xea9b01['id']];this[_0x26a193(0x26c)](this['_commandService'][_0x26a193(0x188)](_0x1cc046=>{const _0x13d259=_0x26a193;_0x35ab5a[_0x13d259(0x2b7)](_0x1cc046['id'])&&_0x1cc046['params'][_0x13d259(0x2a5)]===this[_0x13d259(0x2a0)][_0x13d259(0x2a5)]&&this[_0x13d259(0x128)]();}));}[_0x12f7be(0x25d)](){const _0x80680a=_0x12f7be;this['disposeWithMe'](_0x535589(this[_0x80680a(0x2a0)][_0x80680a(0x10d)][_0x80680a(0x306)])[_0x80680a(0x1c3)](_0x57f830(_0x383bc1=>_0x383bc1[_0x80680a(0x16d)]===_0x19edf3['resize']),_0x58940e(0x10))[_0x80680a(0x1e6)](()=>{const _0x577e7e=_0x80680a;this[_0x577e7e(0x128)]();}));}};Fe=Qi([ie(0x1,_0x3714f8(_0x17ec67)),ie(0x2,_0x3714f8(H)),ie(0x3,_0x58f12e),ie(0x4,_0x3714f8(_0x252ee3))],Fe);const qi=0x1,en=1.5;class tn extends _0x453ad9{constructor(_0x469e9e,_0x491617){const _0x118807=_0x12f7be;super(_0x469e9e,_0x491617),_(this,_0x118807(0x231)),_(this,'_hovered',!0x1),_(this,_0x118807(0x1d0)),_(this,_0x118807(0xe7),''),_(this,_0x118807(0xfb),_0x118807(0x144)),_(this,_0x118807(0x1ce)),(_0x491617&&this[_0x118807(0x165)](_0x491617),this[_0x118807(0x198)]['subscribeEvent'](()=>this[_0x118807(0x165)]({'hovered':!0x0})),this[_0x118807(0x286)][_0x118807(0x2b5)](()=>this[_0x118807(0x165)]({'hovered':!0x1})));}[_0x12f7be(0x165)](_0x5eed11){const _0x2d7ac3=_0x12f7be;var _0x10d158,_0x5e068b,_0x1b77e8,_0x1f1cec,_0xe57d23,_0x3bbbbc;this[_0x2d7ac3(0x231)]=(_0x10d158=_0x5eed11[_0x2d7ac3(0x126)])!=null?_0x10d158:this['_color'],this['_hovered']=(_0x5e068b=_0x5eed11[_0x2d7ac3(0x1b9)])!=null?_0x5e068b:this[_0x2d7ac3(0x2d2)],this[_0x2d7ac3(0x1d0)]=(_0x1b77e8=_0x5eed11[_0x2d7ac3(0x1db)])!=null?_0x1b77e8:this[_0x2d7ac3(0x1d0)],this[_0x2d7ac3(0xe7)]=(_0x1f1cec=_0x5eed11['name'])!=null?_0x1f1cec:this[_0x2d7ac3(0xe7)],this[_0x2d7ac3(0xfb)]=(_0xe57d23=_0x5eed11[_0x2d7ac3(0x10f)])!=null?_0xe57d23:this['_labelPosition'],this['_backgroundColor']=(_0x3bbbbc=_0x5eed11[_0x2d7ac3(0x183)])!=null?_0x3bbbbc:this['_backgroundColor'],this[_0x2d7ac3(0xe8)]({'width':_0x5eed11[_0x2d7ac3(0x1e2)],'height':_0x5eed11[_0x2d7ac3(0x230)]});}[_0x12f7be(0x1f0)](_0x1a9af0){const _0x10599f=_0x12f7be,{row:_0x29847e,column:_0x56f2a3}=_0x1a9af0;if(_0x29847e>=this[_0x10599f(0x1d0)]['startRow']&&_0x29847e<=this[_0x10599f(0x1d0)][_0x10599f(0xd9)]&&_0x56f2a3>=this[_0x10599f(0x1d0)][_0x10599f(0x2ac)]&&_0x56f2a3<=this[_0x10599f(0x1d0)][_0x10599f(0x12b)]){this[_0x10599f(0x165)]({'hovered':!0x0});return;}this[_0x10599f(0x165)]({'hovered':!0x1});}['triggerDblclick'](_0x5f581d){return!0x1;}[_0x12f7be(0x1f9)](_0x319326){const _0x4b4af5=_0x12f7be;_0xf6029d[_0x4b4af5(0x2ef)](_0x319326,{'width':this['width'],'height':this['height'],'strokeWidth':en,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x4b4af5(0x1ce)]}),this['_hovered']&&(_0x319326['save'](),_0x319326['transform'](0x1,0x0,0x0,0x1,this[_0x4b4af5(0x1e2)],this[_0x4b4af5(0xfb)]===_0x4b4af5(0x10e)?0x0:-Q),ve[_0x4b4af5(0x2ef)](_0x319326,{'text':this['_name'],'color':this[_0x4b4af5(0x231)]}),_0x319326[_0x4b4af5(0x2d0)]());}}var sn=Object[_0x12f7be(0x214)],nn=(_0x8f896b,_0x3719d1,_0x5b33b0,_0x202adf)=>{for(var _0x56eea2=_0x202adf>0x1?void 0x0:_0x202adf?sn(_0x3719d1,_0x5b33b0):_0x3719d1,_0x5364d7=_0x8f896b['length']-0x1,_0x5c7e58;_0x5364d7>=0x0;_0x5364d7--)(_0x5c7e58=_0x8f896b[_0x5364d7])&&(_0x56eea2=_0x5c7e58(_0x56eea2)||_0x56eea2);return _0x56eea2;},be=(_0x2ede4b,_0x1d15dd)=>(_0x188e08,_0x16b534)=>_0x1d15dd(_0x188e08,_0x16b534,_0x2ede4b);const rn=0x1389;let ke=class extends _0x53e01a{constructor(_0x3fdf4c,_0x521dd0,_0x1b06c7,_0x460433){const _0x5ada1d=_0x12f7be;super(),_(this,'_cursors',new Set()),_(this,_0x5ada1d(0x1aa),null),(this[_0x5ada1d(0x2a0)]=_0x3fdf4c,this[_0x5ada1d(0x1dc)]=_0x521dd0,this[_0x5ada1d(0xbd)]=_0x1b06c7,this[_0x5ada1d(0xf4)]=_0x460433,this[_0x5ada1d(0x279)]());}[_0x12f7be(0x279)](){const _0x2d64de=_0x12f7be;this[_0x2d64de(0x1dc)][_0x2d64de(0x117)]['pipe'](_0x5894b4(this[_0x2d64de(0x2a6)]),_0x1fb447(_0x521882=>{const _0x3eb58c=_0x2d64de;if(_0x521882){const _0x243c52=_0x521882[_0x3eb58c(0x1e4)];return _0x48aeb3(this[_0x3eb58c(0xbd)][_0x3eb58c(0x2bc)](this[_0x3eb58c(0x2a0)]['unitId']),this['_themeService'][_0x3eb58c(0x23b)])[_0x3eb58c(0x1c3)](_0x2da2ce(([_0x5d2fcf,_0x14b9f7])=>{const _0x562042=_0x3eb58c,_0x1512cb=new Map();return _0x5d2fcf[_0x562042(0x275)]((_0x12256c,_0x3407e1)=>{const _0x1b3bed=_0x562042;if(_0x12256c[_0x1b3bed(0x18b)]===_0x243c52){const _0x4704f8={..._0x12256c};_0x4704f8[_0x1b3bed(0x126)]=this['_themeService'][_0x1b3bed(0x157)](_0x12256c['color']),_0x1512cb[_0x1b3bed(0x13b)](_0x3407e1,_0x4704f8);}}),{'skeleton':_0x521882,'cursors':_0x1512cb};}));}return _0x1ec186({'skeleton':null,'cursors':new Map()});}))[_0x2d64de(0x1e6)](({skeleton:_0x2dc9fd,cursors:_0x24b770})=>{const _0x47767d=_0x2d64de;this[_0x47767d(0x224)](),_0x2dc9fd&&this['_updateCollabCursors'](_0x2dc9fd,_0x24b770);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x2d64de(0x1e6)](_0x395d7f=>{const _0x4954ef=_0x2d64de;if(_0x395d7f==null)return;const {skeleton:_0x1e632a}=_0x395d7f,{scene:_0x2f9b85}=this[_0x4954ef(0x2a0)];_0x2f9b85['onPointerMove$'][_0x4954ef(0x2b5)](_0x5a1035(_0x4f6950=>{const _0x1db003=_0x4954ef;var _0x35fd68,_0x245da1;const {offsetX:_0x48d66f,offsetY:_0x28652e}=_0x4f6950,{x:_0x5defbf,y:_0x136282}=_0x2f9b85['getRelativeToViewportCoord'](_0x20bdbd[_0x1db003(0x1ab)]([_0x48d66f,_0x28652e])),{scaleX:_0x25903d,scaleY:_0x3b72cd}=_0x2f9b85[_0x1db003(0x1b3)](),_0x548156=_0x2f9b85[_0x1db003(0x299)](_0x1db3ff['VIEW_MAIN']),_0x799917=_0x2f9b85[_0x1db003(0x121)](_0x20bdbd['FromArray']([_0x5defbf,_0x136282]),_0x548156),_0x2b4ef8=_0x1e632a[_0x1db003(0x18e)](_0x48d66f,_0x28652e,_0x25903d,_0x3b72cd,_0x799917);((_0x35fd68=this[_0x1db003(0x1aa)])==null?void 0x0:_0x35fd68['column'])===_0x2b4ef8[_0x1db003(0x212)]&&((_0x245da1=this[_0x1db003(0x1aa)])==null?void 0x0:_0x245da1[_0x1db003(0x141)])===_0x2b4ef8[_0x1db003(0x141)]||this[_0x1db003(0x145)][_0x1db003(0x275)](_0x523e2c=>{const _0x105e53=_0x1db003;_0x523e2c[_0x105e53(0x1f0)](_0x2b4ef8);});},0x64));});}[_0x12f7be(0x187)](_0x474e6e,_0x46cf87){const _0x33a201=_0x12f7be;var _0x4a0f6d;const _0x1100e8=(_0x4a0f6d=this[_0x33a201(0x1dc)][_0x33a201(0xf3)]())==null?void 0x0:_0x4a0f6d[_0x33a201(0x11e)];if(!_0x1100e8)return;const _0x182c76=this[_0x33a201(0xc3)]();if(!_0x182c76)return;this[_0x33a201(0x145)][_0x33a201(0x275)](_0x39ce21=>{const _0x4a7221=_0x33a201;_0x39ce21[_0x4a7221(0x240)]();});const {scene:_0x1d2987}=_0x182c76,_0x52915b=on(Array[_0x33a201(0x1cc)](_0x46cf87[_0x33a201(0xd3)]()))[_0x33a201(0x2ae)](_0xf950a=>{const _0x5d37fd=_0x33a201,{color:_0x16522e,range:_0x1b9b2f,name:_0x42dc67,selection:_0x2c70e6,sheetID:_0x79e615}=_0xf950a,{startColumn:_0x37d2f1,startRow:_0x3fa8f7,endColumn:_0x1b9abb,endRow:_0x5f5ae9}=_0x1b9b2f,_0x510594=_0x30bc8b(_0x3fa8f7,_0x37d2f1,_0x1d2987,_0x1100e8),_0x3a6bf4=_0x30bc8b(_0x5f5ae9,_0x1b9abb,_0x1d2987,_0x1100e8),{columnHeaderHeightAndMarginTop:_0xf8ab97}=_0x1100e8,{startX:_0x5f3fb8,startY:_0x3209fa}=_0x510594,{endX:_0x42f35d,endY:_0x37e948}=_0x3a6bf4,_0xf923f4=_0x42f35d-_0x5f3fb8,_0x4b3179=_0x37e948-_0x3209fa,_0x170bad={'labelPosition':_0x3209fa-_0xf8ab97>=Q?_0x5d37fd(0x144):_0x5d37fd(0x10e),'sheetID':_0x79e615,'range':_0x1b9b2f,'color':_0x16522e,'name':_0x42dc67,'selection':_0x2c70e6,'left':_0x5f3fb8,'top':_0x3209fa,'width':_0xf923f4,'height':_0x4b3179,'evented':!0x1,'zIndex':rn};return new tn(_0x42dc67,_0x170bad);});_0x1d2987[_0x33a201(0x2f0)](_0x52915b,qi),this['_cursors']=new Set(_0x52915b);}[_0x12f7be(0x224)](){const _0x5eb5f4=_0x12f7be;var _0x23d51c;(_0x23d51c=this[_0x5eb5f4(0x145)])==null||_0x23d51c['forEach'](_0x4ecf60=>_0x4ecf60[_0x5eb5f4(0x2e8)]());}[_0x12f7be(0xc3)](){const _0x3762dc=_0x12f7be;return _0x5bfd58(this['_context']['unit'],this[_0x3762dc(0x2a0)]);}};ke=nn([be(0x1,_0x3714f8(_0x498a70)),be(0x2,_0x3714f8(H)),be(0x3,_0x3714f8(_0x252ee3))],ke);function on(_0x2a1e0e){const _0x5a32d2=_0x12f7be,_0x5533dc=new Map();return _0x2a1e0e['forEach'](_0x3bfd38=>{const _0x193603=_0x473f;if(_0x5533dc[_0x193603(0x201)](_0x3bfd38[_0x193603(0x172)])){const _0x1bd4bb=_0x5533dc[_0x193603(0x163)](_0x3bfd38[_0x193603(0x172)]);_0x1bd4bb[_0x193603(0x197)]+=',\x20'+_0x3bfd38[_0x193603(0x197)];}else _0x5533dc[_0x193603(0x13b)](_0x3bfd38[_0x193603(0x172)],_0x3bfd38);}),Array[_0x5a32d2(0x1cc)](_0x5533dc[_0x5a32d2(0xd3)]());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x4f3fe0,_0x4196e0,_0x581c5b,_0x1fe0ff)=>{for(var _0x427ba4=_0x1fe0ff>0x1?void 0x0:_0x1fe0ff?an(_0x4196e0,_0x581c5b):_0x4196e0,_0x4a9526=_0x4f3fe0['length']-0x1,_0x311f44;_0x4a9526>=0x0;_0x4a9526--)(_0x311f44=_0x4f3fe0[_0x4a9526])&&(_0x427ba4=_0x311f44(_0x427ba4)||_0x427ba4);return _0x427ba4;},F=(_0x3779a2,_0x4d97)=>(_0x3e205a,_0x30909e)=>_0x4d97(_0x3e205a,_0x30909e,_0x3779a2);let _e=class extends _0x112363{constructor(_0x29a21b,_0x5296df,_0x2e1037,_0x2e17e3,_0x2c7c59,_0x15bb9a){const _0x28e14c=_0x12f7be;super(),this[_0x28e14c(0x17d)]=_0x29a21b,this[_0x28e14c(0x16c)]=_0x5296df,this[_0x28e14c(0x2c2)]=_0x2e1037,this['_messageService']=_0x2e17e3,this[_0x28e14c(0x13a)]=_0x2c7c59,this[_0x28e14c(0x185)]=_0x15bb9a,this[_0x28e14c(0x229)](),this[_0x28e14c(0x1c1)]();}[_0x12f7be(0x229)](){const _0x539130=_0x12f7be;this['disposeWithMe'](this[_0x539130(0x17d)][_0x539130(0x218)](()=>{const _0x518170=_0x539130;if(this[_0x518170(0x16c)]['saveTaskMap']['size'])return this[_0x518170(0x185)]['t'](_0x518170(0x116));}));}['_initEvent'](){const _0x325a7e=_0x12f7be;this[_0x325a7e(0x26c)](this['_collaborationUIEventService'][_0x325a7e(0x295)]['subscribe'](_0x34c46f=>{const _0x553c5d=_0x325a7e;_0x34c46f['id']===_0x45a0bb['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x553c5d(0xd0)]({'type':_0x4bbdcc['Warning'],'content':this[_0x553c5d(0x185)]['t'](_0x553c5d(0x20b))}),_0x34c46f['id']===_0x45a0bb[_0x553c5d(0x119)]&&this[_0x553c5d(0x2cf)][_0x553c5d(0xd0)]({'type':_0x4bbdcc[_0x553c5d(0x1b2)],'content':this['_localeService']['t'](_0x553c5d(0x274))}),_0x34c46f['id']===_0x45a0bb['PERMISSION_DENIED']&&this[_0x553c5d(0x13a)][_0x553c5d(0xd0)]({'title':this[_0x553c5d(0x185)]['t'](_0x553c5d(0x248)),'content':this[_0x553c5d(0x185)]['t']('permission.content'),'type':'error','duration':0x0}),_0x34c46f['id']===_0x45a0bb['CONFLICT']&&this['_messageService'][_0x553c5d(0xd0)]({'type':_0x4bbdcc['Error'],'content':this[_0x553c5d(0x185)]['t'](_0x553c5d(0x274))+'('+_0x34c46f[_0x553c5d(0x19f)]+')'}),_0x34c46f['id']===_0x45a0bb[_0x553c5d(0xea)]&&this[_0x553c5d(0x2cf)][_0x553c5d(0xd0)]({'type':_0x4bbdcc[_0x553c5d(0x1b2)],'content':this[_0x553c5d(0x185)]['t'](_0x34c46f[_0x553c5d(0x19f)]||'')}),_0x34c46f['id']===_0x45a0bb[_0x553c5d(0x2ff)]&&this[_0x553c5d(0x2cf)][_0x553c5d(0xd0)]({'type':_0x4bbdcc[_0x553c5d(0x1b2)],'content':this['_localeService']['t']('session.will-retry')}),_0x34c46f['id']===_0x45a0bb[_0x553c5d(0x1a4)]&&this['_messageService'][_0x553c5d(0xd0)]({'type':_0x4bbdcc[_0x553c5d(0x11a)],'content':this[_0x553c5d(0x185)]['t'](_0x553c5d(0xbe))}),_0x34c46f['id']===_0x45a0bb[_0x553c5d(0x138)]&&this[_0x553c5d(0x2cf)][_0x553c5d(0xd0)]({'type':_0x4bbdcc['Error'],'content':this[_0x553c5d(0x185)]['t'](_0x553c5d(0x302))});}));}};_e=cn([F(0x0,_0x3e8c86),F(0x1,_0x381fc8),F(0x2,_0x3714f8(_0x4cdc9c)),F(0x3,_0x543869),F(0x4,_0x4d19e9),F(0x5,_0x3714f8(_0x35b6c7))],_e);var _n=Object[_0x12f7be(0x214)],ln=(_0x31e0e0,_0x36202c,_0x1e373f,_0x274243)=>{for(var _0xa14bb5=_0x274243>0x1?void 0x0:_0x274243?_n(_0x36202c,_0x1e373f):_0x36202c,_0x452216=_0x31e0e0['length']-0x1,_0x2e4eea;_0x452216>=0x0;_0x452216--)(_0x2e4eea=_0x31e0e0[_0x452216])&&(_0xa14bb5=_0x2e4eea(_0xa14bb5)||_0xa14bb5);return _0xa14bb5;},ne=(_0x12ff5b,_0x24cd2f)=>(_0xd6d120,_0x1c7e1e)=>_0x24cd2f(_0xd6d120,_0x1c7e1e,_0x12ff5b);let le=class extends _0x112363{constructor(_0xb96125,_0x1b050a,_0x4ab0dd,_0xb75860){const _0x55f0a2=_0x12f7be;super(),_(this,_0x55f0a2(0x14e)),(this['_injector']=_0xb96125,this[_0x55f0a2(0x21e)]=_0x1b050a,this[_0x55f0a2(0x267)]=_0x4ab0dd,this[_0x55f0a2(0x137)]=_0xb75860,this['_init']());}[_0x12f7be(0x279)](){const _0x630713=_0x12f7be;this['_initWindowErrorListener'](),this['_initUnhandledRejectionListener'](),this[_0x630713(0x21b)](),this[_0x630713(0x112)]();}['_initUserListener'](){const _0x4f7182=_0x12f7be;this[_0x4f7182(0x26c)](this['_collaborationSessionService'][_0x4f7182(0x18d)][_0x4f7182(0x1e6)](_0x14b7ed=>{const _0x50451b=_0x4f7182;this[_0x50451b(0x14e)]=_0x14b7ed==null?void 0x0:_0x14b7ed[_0x50451b(0x2ab)];}));}[_0x12f7be(0x20e)](){const _0x1765eb=_0x12f7be,_0xca41a3=_0x25faae=>{const _0x1b281e=_0x473f;var _0x499b51;this[_0x1b281e(0x2db)]('error','[Window\x20Error]:\x20'+_0x25faae['message']+'\x20at\x20'+_0x25faae[_0x1b281e(0x193)]+':'+_0x25faae[_0x1b281e(0x2dc)]+':'+_0x25faae[_0x1b281e(0x1ec)]+'\x0a'+(((_0x499b51=_0x25faae[_0x1b281e(0x2d5)])==null?void 0x0:_0x499b51['stack'])||''));};window[_0x1765eb(0x176)](_0x1765eb(0x2d5),_0xca41a3),this[_0x1765eb(0x26c)](()=>{const _0xf95c38=_0x1765eb;window[_0xf95c38(0x108)](_0xf95c38(0x2d5),_0xca41a3);});}['_initUnhandledRejectionListener'](){const _0xccd62f=_0x12f7be,_0x26a1c6=_0x31dc4f=>{const _0x339fc5=_0x473f;this['_uploadLog'](_0x339fc5(0x2d5),_0x339fc5(0x14a)+_0x31dc4f[_0x339fc5(0x278)]);};window[_0xccd62f(0x176)]('unhandledrejection',_0x26a1c6),this[_0xccd62f(0x26c)](()=>{const _0x5e04cc=_0xccd62f;window['removeEventListener'](_0x5e04cc(0x19e),_0x26a1c6);});}[_0x12f7be(0x21b)](){const _0x2e8bda=_0x12f7be,_0x453deb=this['_logService'][_0x2e8bda(0x2d5)][_0x2e8bda(0x2cd)](this[_0x2e8bda(0x267)]);this[_0x2e8bda(0x267)][_0x2e8bda(0x2d5)]=(..._0xdf2c1b)=>{const _0x79ed29=_0x2e8bda,_0x2bd06f=_0xdf2c1b[_0x79ed29(0x2ae)](_0x4eb929=>_0x4eb929 instanceof Error?_0x4eb929[_0x79ed29(0x2f2)]+'\x0a'+_0x4eb929[_0x79ed29(0x107)]:String(_0x4eb929))['join']('\x20');this[_0x79ed29(0x2db)](_0x79ed29(0x2d5),_0x79ed29(0x252)+_0x2bd06f),_0x453deb(..._0xdf2c1b);},this[_0x2e8bda(0x26c)](()=>{const _0x1a0176=_0x2e8bda;this[_0x1a0176(0x267)][_0x1a0176(0x2d5)]=_0x453deb;});}['_uploadLog'](_0x2edaa5,_0xab946f){const _0x16e7f6=_0x12f7be;try{const _0x29db51={'userId':this[_0x16e7f6(0x14e)],'logLabel':_0x2edaa5,'content':_0xab946f};this['_httpService'][_0x16e7f6(0x2dd)](_0x16e7f6(0x2f4),{'body':_0x29db51})[_0x16e7f6(0x199)](()=>{});}catch{}}};le=ln([ne(0x0,_0x3714f8(_0x24a160)),ne(0x1,_0x3714f8(_0x1ef343)),ne(0x2,_0x36e10f),ne(0x3,_0x3714f8(_0x3c5e90))],le);const hn=_0x12f7be(0x307),_t={};var un=Object['getOwnPropertyDescriptor'],dn=(_0x5f0876,_0x10c066,_0x502c84,_0x3dcc70)=>{const _0x1f9d63=_0x12f7be;for(var _0x44341d=_0x3dcc70>0x1?void 0x0:_0x3dcc70?un(_0x10c066,_0x502c84):_0x10c066,_0x506ede=_0x5f0876[_0x1f9d63(0x1c8)]-0x1,_0x358616;_0x506ede>=0x0;_0x506ede--)(_0x358616=_0x5f0876[_0x506ede])&&(_0x44341d=_0x358616(_0x44341d)||_0x44341d);return _0x44341d;},lt=(_0x9019f7,_0xb03693)=>(_0x30ba7f,_0x3bcf3d)=>_0xb03693(_0x30ba7f,_0x3bcf3d,_0x9019f7);let he=class{constructor(_0x27b924,_0x4bdc54){const _0x5b9a0e=_0x12f7be;this[_0x5b9a0e(0x13c)]=_0x27b924,this[_0x5b9a0e(0x216)]=_0x4bdc54;}['transformIMECache'](_0x106549){const _0x306c82=_0x12f7be;this[_0x306c82(0x1f7)](_0x106549),this[_0x306c82(0x134)](_0x106549);}[_0x12f7be(0x1ee)](_0x2478ba){const _0x3226f8=_0x12f7be,{unitID:_0x43caf5}=_0x2478ba,_0x4e0ea5=this[_0x3226f8(0x216)][_0x3226f8(0x169)](_0x43caf5)['with'](_0x5d750a),{redoCache:_0x4c148b}=_0x4e0ea5[_0x3226f8(0x1c5)]();if(_0x4c148b[_0x3226f8(0x1c8)]===0x0)return _0x2478ba;let _0x4cd3b3=_0x4dbc53['deepClone'](_0x2478ba['mutations'][0x0]);for(let _0x5463be=0x0;_0x5463be<_0x4c148b[_0x3226f8(0x1c8)];_0x5463be++){const _0xa6d89c={'id':_0x3226f8(0x219),'params':{..._0x4c148b[_0x5463be]}},_0xee9f92=this[_0x3226f8(0x13c)][_0x3226f8(0x249)](_0x4cd3b3,_0xa6d89c,!0x1);if(_0x594698(_0xee9f92))throw _0xee9f92['error'];_0x4cd3b3=_0xee9f92[_0x3226f8(0x243)];}return{..._0x4dbc53[_0x3226f8(0x1ed)](_0x2478ba),'mutations':[_0x4cd3b3]};}[_0x12f7be(0x1f7)](_0x165921){const _0x2096e7=_0x12f7be,{unitID:_0x11bd15}=_0x165921,_0x58789b=this[_0x2096e7(0x216)][_0x2096e7(0x169)](_0x11bd15)[_0x2096e7(0xdd)](_0x5d750a),{undoCache:_0x339476,redoCache:_0x123928}=_0x58789b['getUndoRedoMutationParamsCache']();if(_0x339476[_0x2096e7(0x1c8)]===0x0||_0x123928[_0x2096e7(0x1c8)]===0x0)return;const _0x2cb198=[],_0x55ff02=[];let _0x366c06=_0x4dbc53[_0x2096e7(0x1ed)](_0x165921[_0x2096e7(0x283)][0x0]),_0xf3e79a=_0x4dbc53[_0x2096e7(0x1ed)](_0x165921[_0x2096e7(0x283)][0x0]);for(let _0x307564=_0x339476['length']-0x1;_0x307564>=0x0;_0x307564--){const _0x1809da={'id':_0x2096e7(0x219),'params':{..._0x339476[_0x307564]}},_0x1b8a56={'id':_0x2096e7(0x219),'params':{..._0x123928[_0x307564]}},_0x20e528=this[_0x2096e7(0x13c)][_0x2096e7(0x249)](_0x366c06,_0x1809da,!0x1),_0x3337e1=this[_0x2096e7(0x13c)][_0x2096e7(0x249)](_0xf3e79a,_0x1b8a56,!0x1);if(_0x594698(_0x20e528))throw _0x20e528[_0x2096e7(0x2d5)];if(_0x594698(_0x3337e1))throw _0x3337e1[_0x2096e7(0x2d5)];_0x2cb198[_0x2096e7(0x2be)](_0x20e528['m2Prime'][_0x2096e7(0x281)]),_0x55ff02['unshift'](_0x3337e1[_0x2096e7(0x166)][_0x2096e7(0x281)]),_0x366c06=_0x20e528[_0x2096e7(0x243)],_0xf3e79a=_0x3337e1[_0x2096e7(0x243)];}_0x58789b[_0x2096e7(0x26e)]({'undoCache':_0x2cb198,'redoCache':_0x55ff02});}[_0x12f7be(0x134)](_0x46c1c8){const _0x42657f=_0x12f7be,{unitID:_0xf5de53}=_0x46c1c8,_0x38a4be=this['_renderManagerService'][_0x42657f(0x169)](_0xf5de53)[_0x42657f(0xdd)](_0x5d750a),_0x179167=_0x38a4be[_0x42657f(0x282)]();if(_0x179167==null)return;const _0x2caa51=[{'id':_0x42657f(0x219),'params':{'unitId':_0x46c1c8['unitID'],'actions':null,'textRanges':[_0x179167]}}],_0x1d2eba=this[_0x42657f(0x13c)][_0x42657f(0x23a)](_0x46c1c8,_0x2caa51);if(!_0xcbda0(_0x1d2eba))throw _0x1d2eba[_0x42657f(0x2d5)];const _0x570a2b=_0x1d2eba[_0x42657f(0x166)][0x0][_0x42657f(0x281)][_0x42657f(0x2a1)];Array[_0x42657f(0x17c)](_0x570a2b)&&_0x570a2b[_0x42657f(0x1c8)]&&_0x38a4be[_0x42657f(0x27f)](_0x570a2b[0x0]);}};he=dn([lt(0x0,_0x5963ba),lt(0x1,_0x4ae0f1)],he);var Sn=Object[_0x12f7be(0x214)],In=(_0x3e02e4,_0x3a79d3,_0x55c29f,_0x507ad2)=>{const _0x4bd69f=_0x12f7be;for(var _0x530ae8=_0x507ad2>0x1?void 0x0:_0x507ad2?Sn(_0x3a79d3,_0x55c29f):_0x3a79d3,_0x46efc5=_0x3e02e4[_0x4bd69f(0x1c8)]-0x1,_0x3a0c37;_0x46efc5>=0x0;_0x46efc5--)(_0x3a0c37=_0x3e02e4[_0x46efc5])&&(_0x530ae8=_0x3a0c37(_0x530ae8)||_0x530ae8);return _0x530ae8;},Le=(_0x11c01b,_0x186f6f)=>(_0x4f97cd,_0x52aa0a)=>_0x186f6f(_0x4f97cd,_0x52aa0a,_0x11c01b);let ue=class{constructor(_0xd30b61,_0x399990,_0x2ef360){const _0x2da45f=_0x12f7be;this[_0x2da45f(0x213)]=_0xd30b61,this[_0x2da45f(0x13c)]=_0x399990,this[_0x2da45f(0x21c)]=_0x2ef360;}[_0x12f7be(0x129)](_0xfa453f){this['_transformHistoryAndStateStack'](_0xfa453f);}[_0x12f7be(0x1ee)](_0x263bb1){const _0x318359=_0x12f7be,{unitID:_0x2eb311}=_0x263bb1,{collaboration:_0x1c14e5}=this[_0x318359(0x21c)][_0x318359(0x203)](_0x2eb311);if(_0x1c14e5[_0x318359(0x1c8)]===0x0)return _0x263bb1;let _0x12a4c9=_0x4dbc53[_0x318359(0x1ed)](_0x263bb1['mutations'][0x0]);for(let _0x37414d=0x0;_0x37414d<_0x1c14e5[_0x318359(0x1c8)];_0x37414d++){const _0x2cfed9={'id':_0x318359(0x219),'params':{'unitId':_0x1c14e5[_0x37414d][_0x318359(0x2a5)],..._0x1c14e5[_0x37414d][_0x318359(0x222)]}},_0x4dddec=this[_0x318359(0x13c)][_0x318359(0x249)](_0x12a4c9,_0x2cfed9,!0x1);if(_0x594698(_0x4dddec))throw _0x4dddec[_0x318359(0x2d5)];_0x12a4c9=_0x4dddec[_0x318359(0x243)];}return{..._0x4dbc53[_0x318359(0x1ed)](_0x263bb1),'mutations':[_0x12a4c9]};}['_transformHistoryAndStateStack'](_0x3de92a){const _0x59214a=_0x12f7be,{unitID:_0x1108ad}=_0x3de92a,{history:_0x152bea,collaboration:_0x17e332}=this['_docStateChangeManagerService'][_0x59214a(0x203)](_0x1108ad);if(_0x152bea[_0x59214a(0x1c8)]===0x0&&_0x17e332[_0x59214a(0x1c8)]===0x0)return;const _0x49dd62=[],_0x40cc41=[];let _0x3396fa=_0x4dbc53[_0x59214a(0x1ed)](_0x3de92a[_0x59214a(0x283)][0x0]),_0x4983bf=_0x4dbc53[_0x59214a(0x1ed)](_0x3de92a[_0x59214a(0x283)][0x0]);for(let _0x2c6a00=_0x152bea[_0x59214a(0x1c8)]-0x1;_0x2c6a00>=0x0;_0x2c6a00--){const _0x3df78c={'id':_0x59214a(0x219),'params':{'unitId':_0x152bea[_0x2c6a00][_0x59214a(0x2a5)],..._0x152bea[_0x2c6a00][_0x59214a(0x21f)]}},_0x281ef5={'id':_0x59214a(0x219),'params':{'unitId':_0x152bea[_0x2c6a00]['unitId'],..._0x152bea[_0x2c6a00]['redoState']}},_0x52ee79=this[_0x59214a(0x13c)]['transformMutation'](_0x3396fa,_0x3df78c,!0x1),_0x3cdcf1=this[_0x59214a(0x13c)][_0x59214a(0x249)](_0x4983bf,_0x281ef5,!0x1);if(_0x594698(_0x52ee79))throw _0x52ee79[_0x59214a(0x2d5)];if(_0x594698(_0x3cdcf1))throw _0x3cdcf1[_0x59214a(0x2d5)];_0x49dd62[_0x59214a(0x2be)]({..._0x152bea[_0x2c6a00],'undoState':_0x52ee79[_0x59214a(0x166)][_0x59214a(0x281)],'redoState':_0x3cdcf1[_0x59214a(0x166)][_0x59214a(0x281)]}),_0x3396fa=_0x52ee79['m1Prime'],_0x4983bf=_0x3cdcf1[_0x59214a(0x243)];}_0x3396fa=_0x4dbc53['deepClone'](_0x3de92a[_0x59214a(0x283)][0x0]),_0x4983bf=_0x4dbc53[_0x59214a(0x1ed)](_0x3de92a[_0x59214a(0x283)][0x0]);for(let _0x361713=_0x17e332[_0x59214a(0x1c8)]-0x1;_0x361713>=0x0;_0x361713--){const _0x36be96={'id':_0x59214a(0x219),'params':{'unitId':_0x17e332[_0x361713][_0x59214a(0x2a5)],..._0x17e332[_0x361713][_0x59214a(0x21f)]}},_0x5ea7d7={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x17e332[_0x361713][_0x59214a(0x2a5)],..._0x17e332[_0x361713]['redoState']}},_0xd0fa69=this[_0x59214a(0x13c)][_0x59214a(0x249)](_0x3396fa,_0x36be96,!0x1),_0x4b887f=this[_0x59214a(0x13c)][_0x59214a(0x249)](_0x4983bf,_0x5ea7d7,!0x1);if(_0x594698(_0xd0fa69))throw _0xd0fa69[_0x59214a(0x2d5)];if(_0x594698(_0x4b887f))throw _0x4b887f[_0x59214a(0x2d5)];_0x40cc41[_0x59214a(0x2be)]({..._0x17e332[_0x361713],'undoState':_0xd0fa69[_0x59214a(0x166)]['params'],'redoState':_0x4b887f[_0x59214a(0x166)][_0x59214a(0x281)]}),_0x3396fa=_0xd0fa69[_0x59214a(0x243)],_0x4983bf=_0x4b887f[_0x59214a(0x243)];}this['_docStateChangeManagerService']['setStateCache'](_0x1108ad,{'history':_0x49dd62,'collaboration':_0x40cc41});}};ue=In([Le(0x0,_0x3714f8(_0x24a160)),Le(0x1,_0x5963ba),Le(0x2,_0x3714f8(_0xc26da3))],ue);var mn=Object[_0x12f7be(0x214)],fn=(_0x3f3f7e,_0x2edcde,_0x145d8a,_0x529887)=>{const _0x367dda=_0x12f7be;for(var _0x2d8789=_0x529887>0x1?void 0x0:_0x529887?mn(_0x2edcde,_0x145d8a):_0x2edcde,_0x4d049f=_0x3f3f7e[_0x367dda(0x1c8)]-0x1,_0xd316c4;_0x4d049f>=0x0;_0x4d049f--)(_0xd316c4=_0x3f3f7e[_0x4d049f])&&(_0x2d8789=_0xd316c4(_0x2d8789)||_0x2d8789);return _0x2d8789;},ht=(_0x163c92,_0x5384ae)=>(_0x14ca04,_0x3f7018)=>_0x5384ae(_0x14ca04,_0x3f7018,_0x163c92);let de=class{constructor(_0x424c82,_0x497d9d){const _0x1245d1=_0x12f7be;this[_0x1245d1(0x213)]=_0x424c82,this['_transformService']=_0x497d9d;}['transformSelections'](_0xbcef2c){const _0x10f1f9=_0x12f7be;var _0x5e0116;const _0x3320ca=this[_0x10f1f9(0x213)][_0x10f1f9(0x163)](_0x299386),_0x15eb4d=(_0x5e0116=_0x3320ca['getDocRanges']())!=null?_0x5e0116:[];if(_0x15eb4d[_0x10f1f9(0x1c8)]===0x0)return;const _0xdc626d=_0xbcef2c['unitID'],_0x2ba872=[{'id':_0x10f1f9(0x219),'params':{'unitId':_0xdc626d,'actions':null,'textRanges':_0x15eb4d}}],_0x593128=this['_transformService']['transformMutationsWithChangeset'](_0xbcef2c,_0x2ba872);if(!_0xcbda0(_0x593128))throw _0x593128[_0x10f1f9(0x2d5)];const _0x566e4e=_0x593128[_0x10f1f9(0x166)][0x0][_0x10f1f9(0x281)][_0x10f1f9(0x2a1)];Array[_0x10f1f9(0x17c)](_0x566e4e)&&_0x566e4e[_0x10f1f9(0x1c8)]&&_0x3320ca[_0x10f1f9(0xcd)](_0x566e4e,{'unitId':_0xdc626d,'subUnitId':_0xdc626d},!0x1);}};de=fn([ht(0x0,_0x3714f8(_0x24a160)),ht(0x1,_0x5963ba)],de);var gn=Object[_0x12f7be(0x214)],En=(_0x45a5ec,_0x2db9c3,_0x2c512e,_0x424e94)=>{const _0x315c84=_0x12f7be;for(var _0x4a3343=_0x424e94>0x1?void 0x0:_0x424e94?gn(_0x2db9c3,_0x2c512e):_0x2db9c3,_0x21cd48=_0x45a5ec[_0x315c84(0x1c8)]-0x1,_0x387eb5;_0x21cd48>=0x0;_0x21cd48--)(_0x387eb5=_0x45a5ec[_0x21cd48])&&(_0x4a3343=_0x387eb5(_0x4a3343)||_0x4a3343);return _0x4a3343;},U=(_0x193549,_0x3c80ca)=>(_0x71adc8,_0x4eda7e)=>_0x3c80ca(_0x71adc8,_0x4eda7e,_0x193549);let Se=class extends _0x112363{constructor(_0xe49b8e,_0x15944b,_0x33a647,_0x55dafd,_0x8efc80,_0xdfde2d,_0x97b20f,_0x2eb510){const _0x840191=_0x12f7be;super(),_(this,_0x840191(0x2ec),new _0x51f523(_0x2a0d66[_0x840191(0x16a)])),(this[_0x840191(0x21c)]=_0xe49b8e,this[_0x840191(0x14d)]=_0x15944b,this[_0x840191(0x2c3)]=_0x33a647,this['_docTransformStateCacheService']=_0x55dafd,this[_0x840191(0x288)]=_0x8efc80,this[_0x840191(0xd7)]=_0xdfde2d,this[_0x840191(0x2cf)]=_0x97b20f,this[_0x840191(0x185)]=_0x2eb510,this['_initEntityListener']());}[_0x12f7be(0x1a8)](){const _0x354a6d=_0x12f7be;this[_0x354a6d(0x26c)](this['_collaborationController'][_0x354a6d(0x1ae)][_0x354a6d(0x1e6)](_0x592938=>{const _0x594547=_0x354a6d,_0xa14781=this[_0x594547(0x21c)][_0x594547(0x29e)][_0x594547(0x1e6)](_0x87ffd7=>{const _0x4d223f=_0x594547;if(_0x87ffd7==null)return;const {unitId:_0xf99837,redoState:_0x684ff9,commandId:_0x3990ca}=_0x87ffd7;if(_0xf99837!==_0x592938[_0x4d223f(0x254)])return;const _0x17e897={'id':_0x3990ca,'type':_0x1de431[_0x4d223f(0x11f)],'params':{'unitId':_0xf99837,'actions':_0x684ff9[_0x4d223f(0x2df)],'textRanges':null}};_0x592938[_0x4d223f(0x1f5)](_0x17e897);});if(_0x592938[_0x594547(0x26c)](_0xa14781),_0x592938 instanceof _0x2f6c55){const _0x4c35e5={'onTransformIME':_0x220025=>this[_0x594547(0x2c3)][_0x594547(0xce)](_0x220025),'onTransformState':_0x3e7dee=>this[_0x594547(0x2f8)]['transformStateCache'](_0x3e7dee),'onTransformSelections':_0x5529d5=>this[_0x594547(0x288)]['transformSelections'](_0x5529d5),'onSyncEditingCollabCursor':_0x574683=>this[_0x594547(0xd7)][_0x594547(0xe2)](_0x574683),'onTransformRemoteChangesetByIMECache':_0x2c4f1d=>this[_0x594547(0x2c3)][_0x594547(0x1ee)](_0x2c4f1d),'onTransformRemoteChangesetByStateCache':_0x149b53=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x149b53)};_0x592938['addHandlerCallback'](_0x4c35e5);}}));}};Se=En([U(0x0,_0x3714f8(_0xc26da3)),U(0x1,_0x3714f8(_0x41819a)),U(0x2,_0x3714f8(he)),U(0x3,_0x3714f8(ue)),U(0x4,_0x3714f8(de)),U(0x5,_0x3714f8(ze)),U(0x6,_0x543869),U(0x7,_0x3714f8(_0x35b6c7))],Se);var Z=(_0x36b731=>(_0x36b731[_0x36b731[_0x12f7be(0xc6)]=0x0]=_0x12f7be(0xc6),_0x36b731[_0x36b731['OK']=0x1]='OK',_0x36b731[_0x36b731[_0x12f7be(0x189)]=0x2]=_0x12f7be(0x189),_0x36b731[_0x36b731['PERMISSION_DENIED']=0x3]=_0x12f7be(0xf8),_0x36b731[_0x36b731[_0x12f7be(0x2a9)]=0x4]=_0x12f7be(0x2a9),_0x36b731[_0x36b731[_0x12f7be(0x25e)]=0x5]=_0x12f7be(0x25e),_0x36b731[_0x36b731[_0x12f7be(0x261)]=0x6]=_0x12f7be(0x261),_0x36b731[_0x36b731[_0x12f7be(0x1fd)]=0x7]=_0x12f7be(0x1fd),_0x36b731[_0x36b731['TOO_MANY_REQUESTS']=0x8]=_0x12f7be(0x28a),_0x36b731[_0x36b731['COMPLETION_FINISHED']=0x9]=_0x12f7be(0xee),_0x36b731[_0x36b731[_0x12f7be(0x2d7)]=0xa]=_0x12f7be(0x2d7),_0x36b731[_0x36b731['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x12f7be(0x114),_0x36b731[_0x36b731[_0x12f7be(0x28f)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x36b731[_0x36b731[_0x12f7be(0x1cb)]=0xd]=_0x12f7be(0x1cb),_0x36b731[_0x36b731['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x12f7be(0x15f),_0x36b731[_0x36b731[_0x12f7be(0x100)]=0xf]=_0x12f7be(0x100),_0x36b731[_0x36b731[_0x12f7be(0x232)]=0x10]=_0x12f7be(0x232),_0x36b731[_0x36b731['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x12f7be(0x22a),_0x36b731[_0x36b731[_0x12f7be(0x12d)]=0x65]=_0x12f7be(0x12d),_0x36b731[_0x36b731[_0x12f7be(0x1d7)]=0xc9]=_0x12f7be(0x1d7),_0x36b731[_0x36b731[_0x12f7be(0x24b)]=0xca]=_0x12f7be(0x24b),_0x36b731[_0x36b731['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x12f7be(0x110),_0x36b731[_0x36b731[_0x12f7be(0x246)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x36b731[_0x36b731[_0x12f7be(0x23c)]=0x1772]=_0x12f7be(0x23c),_0x36b731[_0x36b731[_0x12f7be(0x16e)]=0x1773]=_0x12f7be(0x16e),_0x36b731[_0x36b731['APPLY_REJECT']=0x1b59]=_0x12f7be(0x256),_0x36b731[_0x36b731['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x12f7be(0x1a1),_0x36b731[_0x36b731['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x12f7be(0x1fc),_0x36b731[_0x36b731[_0x12f7be(0xeb)]=0x1b5c]=_0x12f7be(0xeb),_0x36b731[_0x36b731[_0x12f7be(0x24f)]=0x1b5d]=_0x12f7be(0x24f),_0x36b731[_0x36b731[_0x12f7be(0x120)]=0x1f41]=_0x12f7be(0x120),_0x36b731[_0x36b731['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x12f7be(0xec),_0x36b731[_0x36b731['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x36b731[_0x36b731['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x12f7be(0x298),_0x36b731[_0x36b731[_0x12f7be(0x304)]=0x232c]=_0x12f7be(0x304),_0x36b731[_0x36b731[_0x12f7be(0x18a)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x36b731[_0x36b731['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x12f7be(0x27e),_0x36b731[_0x36b731['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x12f7be(0xb7),_0x36b731[_0x36b731[_0x12f7be(0x17b)]=0x2713]=_0x12f7be(0x17b),_0x36b731[_0x36b731[_0x12f7be(0x27a)]=0x2714]=_0x12f7be(0x27a),_0x36b731[_0x36b731['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x12f7be(0x28e),_0x36b731[_0x36b731[_0x12f7be(0x118)]=0x271b]=_0x12f7be(0x118),_0x36b731[_0x36b731[_0x12f7be(0x19b)]=0x271c]=_0x12f7be(0x19b),_0x36b731[_0x36b731[_0x12f7be(0x1e9)]=0x271d]=_0x12f7be(0x1e9),_0x36b731[_0x36b731['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x12f7be(0x259),_0x36b731[_0x36b731[_0x12f7be(0xf2)]=0x271f]=_0x12f7be(0xf2),_0x36b731[_0x36b731[_0x12f7be(0x1ff)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x36b731[_0x36b731[_0x12f7be(0x2cb)]=0x2af9]=_0x12f7be(0x2cb),_0x36b731[_0x36b731[_0x12f7be(0x206)]=0x2ee1]=_0x12f7be(0x206),_0x36b731[_0x36b731[_0x12f7be(0x177)]=0x2ee2]=_0x12f7be(0x177),_0x36b731[_0x36b731[_0x12f7be(0x2e5)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x36b731[_0x36b731[_0x12f7be(0x113)]=0x2ee4]=_0x12f7be(0x113),_0x36b731[_0x36b731[_0x12f7be(0x2c4)]=0x2ee5]=_0x12f7be(0x2c4),_0x36b731[_0x36b731['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x12f7be(0x140),_0x36b731[_0x36b731[_0x12f7be(0x2c5)]=0x32ca]=_0x12f7be(0x2c5),_0x36b731[_0x36b731[_0x12f7be(0x2d9)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x36b731[_0x36b731[_0x12f7be(0xb2)]=0x36b1]=_0x12f7be(0xb2),_0x36b731[_0x36b731[_0x12f7be(0x284)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x36b731[_0x36b731[_0x12f7be(0x23f)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x36b731[_0x36b731[_0x12f7be(0x1d4)]=0x36b4]=_0x12f7be(0x1d4),_0x36b731[_0x36b731[_0x12f7be(0x1d3)]=0x36b5]=_0x12f7be(0x1d3),_0x36b731[_0x36b731[_0x12f7be(0x2bf)]=0x36b6]=_0x12f7be(0x2bf),_0x36b731[_0x36b731['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x12f7be(0x15a),_0x36b731[_0x36b731[_0x12f7be(0x106)]=0x36b8]='ENTITLE_USE_COUPON_NOT_1ST_TRADE',_0x36b731[_0x36b731[_0x12f7be(0x1d1)]=0x3715]=_0x12f7be(0x1d1),_0x36b731[_0x36b731[_0x12f7be(0x105)]=0x3716]=_0x12f7be(0x105),_0x36b731[_0x36b731[_0x12f7be(0x171)]=0x3717]=_0x12f7be(0x171),_0x36b731[_0x36b731['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x12f7be(0x194),_0x36b731[_0x36b731['REDEMPTION_INVALID_CODE']=0x3a99]='REDEMPTION_INVALID_CODE',_0x36b731[_0x36b731[_0x12f7be(0x25a)]=0x3a9a]=_0x12f7be(0x25a),_0x36b731[_0x36b731[_0x12f7be(0x167)]=0x3a9b]=_0x12f7be(0x167),_0x36b731[_0x36b731[_0x12f7be(0xd1)]=0x3a9c]=_0x12f7be(0xd1),_0x36b731[_0x36b731['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x12f7be(0x1cf),_0x36b731[_0x36b731['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x12f7be(0x273),_0x36b731[_0x36b731[_0x12f7be(0xdf)]=0x3a9f]=_0x12f7be(0xdf),_0x36b731[_0x36b731[_0x12f7be(0x2bb)]=0x3e81]=_0x12f7be(0x2bb),_0x36b731[_0x36b731[_0x12f7be(0x28b)]=-0x1]=_0x12f7be(0x28b),_0x36b731))(Z||{});function vn(_0x47b615){const _0x19a7d7=_0x12f7be;var _0x4f39fb,_0x4b3c06;const _0x45cbdc=(_0x4f39fb=_0x47b615[_0x19a7d7(0x1a3)])==null?void 0x0:_0x4f39fb['stage'],_0x111666=((_0x4b3c06=_0x47b615['stageInfo'])==null?void 0x0:_0x4b3c06[_0x19a7d7(0x2f7)])||0x0;return _0x45cbdc===_0x252b95[_0x19a7d7(0x1c9)]&&_0x111666>0x0;}function pn(_0x561e48){const _0x3b0cf1=_0x12f7be;return _0x561e48[_0x3b0cf1(0xb3)]===_0x84f645['SUCCESS'];}var On=Object[_0x12f7be(0x214)],Tn=(_0x44036c,_0x2445d7,_0x50f40f,_0x27ba37)=>{const _0x34f135=_0x12f7be;for(var _0x518bd7=_0x27ba37>0x1?void 0x0:_0x27ba37?On(_0x2445d7,_0x50f40f):_0x2445d7,_0x1b9f88=_0x44036c[_0x34f135(0x1c8)]-0x1,_0x30f650;_0x1b9f88>=0x0;_0x1b9f88--)(_0x30f650=_0x44036c[_0x1b9f88])&&(_0x518bd7=_0x30f650(_0x518bd7)||_0x518bd7);return _0x518bd7;},P=(_0x3c7b4d,_0x4c920d)=>(_0x135467,_0x3124ec)=>_0x4c920d(_0x135467,_0x3124ec,_0x3c7b4d);const Cn=_0x12f7be(0x26b),Rn=_0x12f7be(0x159),Dn=_0x12f7be(0x16b);let Ie=class extends _0x112363{constructor(_0x280164,_0x5a6625,_0x2b68bb,_0x15e80d,_0x16e1c5,_0x4c2505,_0x40a8e2){const _0x109b0a=_0x12f7be;super(),_(this,_0x109b0a(0x15d),null),_(this,_0x109b0a(0x22b),0x0),_(this,_0x109b0a(0x1c2),0x0),_(this,_0x109b0a(0x2ce),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x109b0a(0x2cf)]=_0x280164,this['_commandService']=_0x5a6625,this[_0x109b0a(0x11c)]=_0x2b68bb,this['_httpService']=_0x15e80d,this[_0x109b0a(0x1e0)]=_0x16e1c5,this['_logService']=_0x4c2505,this['_localeService']=_0x40a8e2,this['_initCommandInterceptor']());}[_0x12f7be(0x160)](){const _0xe6945e=_0x12f7be;this[_0xe6945e(0x26c)](this[_0xe6945e(0x21d)][_0xe6945e(0xbc)]((_0x119197,_0x3232ba)=>{const _0x4daaf6=_0xe6945e;var _0x3a50cb;if(_0x119197['id']!==_0x576576['id'])return;const _0x12d63a=_0x119197[_0x4daaf6(0x281)];if(!this[_0x4daaf6(0x2f1)]((_0x3a50cb=_0x12d63a[_0x4daaf6(0x156)])!=null?_0x3a50cb:[]))return;if(!this[_0x4daaf6(0x2c1)]())throw this[_0x4daaf6(0x173)](_0x119197,_0x3232ba),this['_showGuardMessage'](),new _0x24cc76();})),this['disposeWithMe'](this[_0xe6945e(0x21d)]['onCommandExecuted']((_0x124b2a,_0x3c429b)=>{const _0x35037f=_0xe6945e;if(_0x124b2a['id']!==_0x554e96['id'])return;const _0x2218fb=_0x124b2a['params'];if(vn(_0x2218fb)){const _0x515f82=_0x28ef98();this[_0x35037f(0x2ce)]['push'](_0x515f82),this[_0x35037f(0x2d4)](_0x515f82);}else{if(pn(_0x2218fb)&&this[_0x35037f(0x2ce)]['length']>0x0){const _0x4307e2=this[_0x35037f(0x2ce)][_0x35037f(0xb8)]();this['_releaseCalculationLimit'](_0x4307e2);}}}));}[_0x12f7be(0x2e8)](){const _0x494a92=_0x12f7be;super[_0x494a92(0x2e8)](),this[_0x494a92(0x291)](),this[_0x494a92(0x2ce)]=[],this[_0x494a92(0x1c2)]=0x0,this[_0x494a92(0x22b)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x12f7be(0x173)](_0x5e3ac5,_0x5d2810){const _0x36ffa9=_0x12f7be;for(let _0x5f2754=0x0;_0x5f2754<0x1e;_0x5f2754++)try{if(await this[_0x36ffa9(0x136)](),this[_0x36ffa9(0x2c1)]()){this[_0x36ffa9(0x122)](_0x5e3ac5,_0x5d2810),this[_0x36ffa9(0x2cf)][_0x36ffa9(0xd0)]({'content':this['_localeService']['t'](_0x36ffa9(0x2d1)),'type':_0x4bbdcc[_0x36ffa9(0x215)]});return;}await new Promise(_0x5d328e=>{this['_pollingInterval']=window['setTimeout'](_0x5d328e,0x3e8);});}catch(_0x1480be){this['_logService']['error'](_0x1480be);}this[_0x36ffa9(0x2cf)][_0x36ffa9(0xd0)]({'content':this['_localeService']['t']('formula.calculation.unable'),'type':_0x4bbdcc[_0x36ffa9(0x11a)]});}[_0x12f7be(0x122)](_0x2cb853,_0x4f6bbc){const _0x16eeec=_0x12f7be;try{this[_0x16eeec(0x21d)][_0x16eeec(0x2fd)](_0x2cb853['id'],_0x2cb853[_0x16eeec(0x281)],_0x4f6bbc);}catch(_0x411f72){this[_0x16eeec(0x267)][_0x16eeec(0x2d5)](_0x411f72);}}[_0x12f7be(0x150)](_0x237b0d,_0x42c344){const _0x5a9725=_0x12f7be;_0x42c344<this[_0x5a9725(0x1c4)]||(this[_0x5a9725(0x1c4)]=_0x42c344,this[_0x5a9725(0x22b)]=Number[_0x5a9725(0xd4)](_0x237b0d[_0x5a9725(0x1b6)]),this[_0x5a9725(0x1c2)]=Number[_0x5a9725(0xd4)](_0x237b0d['currentUsage']));}async['_startCalculationLimit'](_0x1972b8){const _0x12b5bb=_0x12f7be;var _0x3a9ba1,_0x3341d3;const _0x148bad=Date[_0x12b5bb(0x23e)]();try{const _0x20860a=((_0x3a9ba1=this[_0x12b5bb(0x11c)][_0x12b5bb(0x221)](_0x3c1c8f))==null?void 0x0:_0x3a9ba1[_0x12b5bb(0x2e7)])||Rn,_0x4bc368=(await this['_httpService'][_0x12b5bb(0x2dd)](_0x20860a,{'body':JSON[_0x12b5bb(0x225)]({'taskId':_0x1972b8})}))[_0x12b5bb(0x115)];if(((_0x3341d3=_0x4bc368[_0x12b5bb(0x2d5)])==null?void 0x0:_0x3341d3[_0x12b5bb(0xfd)])!==Z['OK'])return;this[_0x12b5bb(0x150)](_0x4bc368[_0x12b5bb(0x191)],_0x148bad);}catch(_0x3a2409){this[_0x12b5bb(0x267)][_0x12b5bb(0x2d5)](_0x3a2409);}}async['_getFormulaLimitStatus'](_0x23b1ca){const _0xd2e4e8=_0x12f7be;var _0x1b0184,_0x12bdb0;const _0x3c0326=Date[_0xd2e4e8(0x23e)]();try{const _0x4a20c0=((_0x1b0184=this['_configService'][_0xd2e4e8(0x221)](_0x3c1c8f))==null?void 0x0:_0x1b0184['getformulaLimitStatusUrl'])||Cn,_0x3557cf=_0x23b1ca?_0x4a20c0+_0xd2e4e8(0xd8)+encodeURIComponent(_0x23b1ca):_0x4a20c0,_0x500d51=(await this[_0xd2e4e8(0x21e)][_0xd2e4e8(0x163)](_0x3557cf))[_0xd2e4e8(0x115)];if(((_0x12bdb0=_0x500d51[_0xd2e4e8(0x2d5)])==null?void 0x0:_0x12bdb0[_0xd2e4e8(0xfd)])!==Z['OK'])return;this[_0xd2e4e8(0x150)](_0x500d51[_0xd2e4e8(0x191)],_0x3c0326);}catch(_0x5babe9){this[_0xd2e4e8(0x267)][_0xd2e4e8(0x2d5)](_0x5babe9);}}async[_0x12f7be(0xc2)](_0x2de6c9){const _0x7a6477=_0x12f7be;var _0xa0ba51,_0x122e48;const _0x59c689=Date[_0x7a6477(0x23e)]();try{const _0x11e432=((_0xa0ba51=this[_0x7a6477(0x11c)][_0x7a6477(0x221)](_0x3c1c8f))==null?void 0x0:_0xa0ba51[_0x7a6477(0x2fa)])||Dn,_0x36801a=(await this[_0x7a6477(0x21e)][_0x7a6477(0x2dd)](_0x11e432,{'body':JSON[_0x7a6477(0x225)]({'taskId':_0x2de6c9})}))[_0x7a6477(0x115)];if(((_0x122e48=_0x36801a[_0x7a6477(0x2d5)])==null?void 0x0:_0x122e48[_0x7a6477(0xfd)])!==Z['OK'])return;this[_0x7a6477(0x150)](_0x36801a[_0x7a6477(0x191)],_0x59c689);}catch(_0x44c271){this[_0x7a6477(0x267)][_0x7a6477(0x2d5)](_0x44c271);}}[_0x12f7be(0x2c1)](){const _0x5d968c=_0x12f7be;return this[_0x5d968c(0x22b)]===0x0?!0x0:this[_0x5d968c(0x22b)]-this['_currentUsage']>0x0;}[_0x12f7be(0x291)](){const _0x1a951f=_0x12f7be;this[_0x1a951f(0x15d)]&&(clearTimeout(this[_0x1a951f(0x15d)]),this[_0x1a951f(0x15d)]=null);}[_0x12f7be(0x178)](){const _0x5d068f=_0x12f7be;this[_0x5d068f(0x2cf)]['show']({'content':this[_0x5d068f(0x185)]['t'](_0x5d068f(0x2d6)),'type':_0x4bbdcc[_0x5d068f(0x127)]});}[_0x12f7be(0x2f1)](_0x2de137){const _0x287199=_0x12f7be;for(const _0x1f0364 of _0x2de137){const {unitId:_0x517c09,sheetId:_0x520540,range:_0x1ee6a5}=_0x1f0364,_0x201778=this[_0x287199(0x1e0)][_0x287199(0x1dd)](_0x517c09);if(!_0x201778)continue;const _0x3b2a63=_0x201778[_0x287199(0x1af)](_0x520540);if(!_0x3b2a63)continue;const _0x5a0c27=_0x3b2a63['getCellMatrix']();for(let _0x292b37=_0x1ee6a5[_0x287199(0x2fc)];_0x292b37<=_0x1ee6a5['endRow'];_0x292b37++)for(let _0x20767d=_0x1ee6a5[_0x287199(0x2ac)];_0x20767d<=_0x1ee6a5[_0x287199(0x12b)];_0x20767d++){const _0x35e185=_0x5a0c27['getValue'](_0x292b37,_0x20767d);if(_0x35e185&&(_0x371c6c(_0x35e185['f'])||_0x2bd85a(_0x35e185['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x3714f8(_0x543869)),P(0x1,_0x58f12e),P(0x2,_0x5a741e),P(0x3,_0x3714f8(_0x1ef343)),P(0x4,_0x52d51e),P(0x5,_0x36e10f),P(0x6,_0x3714f8(_0x35b6c7))],Ie);var Nn=Object['getOwnPropertyDescriptor'],bn=(_0x1ebe7b,_0x42ae32,_0x30b24c,_0x501e23)=>{for(var _0x2d5b5f=_0x501e23>0x1?void 0x0:_0x501e23?Nn(_0x42ae32,_0x30b24c):_0x42ae32,_0x2e7fa9=_0x1ebe7b['length']-0x1,_0x357bf4;_0x2e7fa9>=0x0;_0x2e7fa9--)(_0x357bf4=_0x1ebe7b[_0x2e7fa9])&&(_0x2d5b5f=_0x357bf4(_0x2d5b5f)||_0x2d5b5f);return _0x2d5b5f;},Ue=(_0x4020f0,_0x2ff48e)=>(_0x49c0be,_0xd29f02)=>_0x2ff48e(_0x49c0be,_0xd29f02,_0x4020f0);let He=class extends _0x112363{constructor(_0x4d0f2c,_0x20629f,_0x4e2e97){const _0x2f4fa6=_0x12f7be;super(),_(this,_0x2f4fa6(0x24c),new Map()),_(this,_0x2f4fa6(0x220),new Map()),_(this,_0x2f4fa6(0x21a),!0x1),(this[_0x2f4fa6(0x11c)]=_0x4d0f2c,this[_0x2f4fa6(0x1ef)]=_0x20629f,this[_0x2f4fa6(0xc0)]=_0x4e2e97);}[_0x12f7be(0x1b7)](){const _0x3859d3=_0x12f7be;this[_0x3859d3(0x21a)]=!0x0;}[_0x12f7be(0x300)](){const _0xd16f3d=_0x12f7be;this[_0xd16f3d(0x21a)]=!0x1;}get['saveTaskMap'](){const _0x338681=_0x12f7be;return this[_0x338681(0x220)];}[_0x12f7be(0x2e8)](){const _0x50b548=_0x12f7be;this[_0x50b548(0x266)]()['then'](()=>super[_0x50b548(0x2e8)]());}async[_0x12f7be(0x2b0)](_0x4adec4){const _0x36ff92=_0x12f7be;return this[_0x36ff92(0x21a)]?null:this[_0x36ff92(0x1ef)][_0x36ff92(0x1f1)](_0x193170(_0x4adec4));}async[_0x12f7be(0x19c)](_0x83f1ae,_0x163d49){const _0x340c2a=_0x12f7be;return!!this[_0x340c2a(0x1ef)][_0x340c2a(0x1e5)](_0x83f1ae,_0x163d49);}[_0x12f7be(0x12e)](_0x559c3f,_0x5c4c1e,_0x347252,_0x32d01e){const _0x111694=_0x12f7be,_0x19efb7=this[_0x111694(0xc0)][_0x111694(0x2b6)](_0x559c3f);this[_0x111694(0x24c)]['set'](_0x559c3f,{'unitID':_0x559c3f,'type':_0x5c4c1e,'awaitingChangeset':_0x347252,'mutations':_0x32d01e,'rev':_0x19efb7}),this['_saveTaskMap']['has'](_0x559c3f)||this[_0x111694(0xf6)](_0x559c3f);}[_0x12f7be(0xf6)](_0x553ee9){const _0x232c39=_0x12f7be,_0x4aa3d5=this[_0x232c39(0x270)]();_0x4aa3d5===0x0?this[_0x232c39(0x25f)](_0x553ee9):this[_0x232c39(0x220)][_0x232c39(0x13b)](_0x553ee9,setTimeout(()=>this[_0x232c39(0x25f)](_0x553ee9),_0x4aa3d5));}[_0x12f7be(0x270)](){const _0xacd6b0=_0x12f7be;var _0x3b103b;return(_0x3b103b=this[_0xacd6b0(0x11c)][_0xacd6b0(0x221)](_0x1d75b1))!=null?_0x3b103b:_0x41a768;}['_saveCache'](_0x1288f8){const _0x1898b7=_0x12f7be,_0x1170dd=this[_0x1898b7(0x220)]['get'](_0x1288f8);return _0x1170dd!==void 0x0&&window['clearTimeout'](_0x1170dd),this[_0x1898b7(0x1ef)][_0x1898b7(0x1e5)](_0x193170(_0x1288f8),this[_0x1898b7(0x24c)]['get'](_0x1288f8))[_0x1898b7(0x1a6)](()=>this[_0x1898b7(0x220)][_0x1898b7(0x1a0)](_0x1288f8));}async[_0x12f7be(0x266)](){const _0xc39d87=_0x12f7be,_0x51388e=[];this[_0xc39d87(0x220)][_0xc39d87(0x275)]((_0x26c0a2,_0xd26df1)=>{const _0x22bf8c=_0xc39d87;window[_0x22bf8c(0x2c9)](_0x26c0a2),_0x51388e[_0x22bf8c(0x210)](this[_0x22bf8c(0x25f)](_0xd26df1)['then'](()=>{const _0x12f276=_0x22bf8c;this[_0x12f276(0x220)][_0x12f276(0x1a0)](_0xd26df1);}));}),await Promise[_0xc39d87(0xe9)](_0x51388e);}};function _0x919a(){const _0x368be9=['doc.mutation.rich-text-editing','_disabled','_monkeyPatchLogService','_docStateChangeManagerService','_commandService','_httpService','undoState','_saveTaskMap','getConfig','redoState','executionId','_removeCollabCursors','stringify','getTypeOfUnitDisposed$','_drawTextRange','setConfig','_setupBeforeClosingHandler','CURRENT_STATUS_CANNOT_OPERATE','_maxFormulaLimit','_updateLocalCursor','getCurrentSelections','RemoveRowCommandId','_online','height','_color','LOGIN_TOKEN_PROCESSING_FAILED','init','clearInterval','removeParam','origin','history','loadUnit','_entityInit$','transformMutationsWithChangeset','currentTheme$','SNAPSHOT_HAS_BEEN_REMOVED','enableFrontendLog','now','ENTITLE_DUP_SUBSCRIPTION','makeDirty','MoveRangeCommandId','off-line-icon_clip0_910_343','m1Prime','_anchorDot','jiqing.500','SNAPSHOT_INVALID_SNAPSHOT','addObject','permission.title','transformMutation','univer-mr-2\x20univer-flex\x20univer-text-xl','USER_IS_ANONYMOUS','_cachedData','startsWith','_handleHover','APPLY_DUPLICATED','collab-rect-range-','source','[LogService\x20Error]:\x20','_doCreateSocket','unitID','subunit','APPLY_REJECT','_ensureSubject','_syncEditingCollabCursorService','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','REDEMPTION_CODE_INACTIVE','on-line-icon_clip0_910_349','flatMap','_initResize','UNAUTHENTICATED','_saveCache','subUnitId','ALREADY_EXISTS','clipPath','fillRule','invokeId','defineProperty','exhaustSavingTask','_logService','UNIVER_SHEET','_getAnchorBounding','fill','/universer-api/license/formula/limit/status','disposeWithMe','arc','setUndoRedoMutationParamsCache','_unitStatus','_getSaveTimeout','defIds','defs','REDEMPTION_USER_REDEEM_TIMES_EXCEED','collaboration.closeRoom','forEach','_scene','getMergeData','reason','_init','YUUMI_SUBSCRIPTION_NOT_FOUND','UPDATE_CURSOR','1FiTLjY','svg','YUUMI_UNABLE_LOAD_URL','setActiveRange','div','params','getActiveRange','mutations','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_handleEvent','onPointerLeave$','parse','_docTransformSelectionsService','runOnServer','TOO_MANY_REQUESTS','UNRECOGNIZED','_scheduleHeartbeat','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','YUUMI_NO_CUBOID_FOR_QUESTION','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','override','_clearPolling','getTypeOfUnitAdded$','getDocRanges','off-line-icon','event$','USERS_LEAVE','collabStatus.conflict','LICENSE_IMPORT_SIZE_EXCEEDED','getViewport','_send','size','onStarting','_eventUnsubscribe','docStateChange$','unsubscribe','_context','textRanges','1em','purple.300','idSuffix','unitId','dispose$','disposeUnit','currentColor','NOT_FOUND','_toggleOnline','memberID','startColumn','_unitOnClients','map','_selfUnitIDs','loadOfflineData','cursorInfo','string','[CollaborationDataLoaderController]','url(#$1','subscribeEvent','getCurrentRevOfUnit','includes','getRangePointData','_onRefRangeChange','_removeClearOtherTimer','DATA_SOURCE_TOO_LARGE','getCollabCursors$','unload','unshift','ENTITLE_COUPON_EXPIRED','activeSheet$','_checkCalculationAvailable','_collaborationUIEventService','_docTransformIMECacheService','INVITE_CODE_ALREADY_BOUND','MOBILE_HAS_BEEN_BOUND','_dataLoaderService','_hideTimer','NO_OTHER_CLIENTS_EDITING','clearTimeout','text','PY_RUNTIME_SCRIPT_ERROR','_config','bind','_taskIds','_messageService','restore','formula.calculation.started','_hovered','round','_startCalculationLimit','error','formula.calculation.waiting','LOGIN_FAILED','getOffsetConfig','EMAIL_HAS_BEEN_BOUND','_updateURLWithCurrentState','_uploadLog','lineno','post','split','actions','_getScale','2954624CVyHFu','sessionTicket','OffLineIcon','getActiveSheet','INVITE_CODE_REQUIRED','collabStatus.offline','startFormulaLimitUrl','dispose','collabStatus.notCollab','http://www.w3.org/2000/svg','getValue','_status$','registerRefRange','roomMembers$','drawWith','addObjects','_hasFormulaInDirtyRanges','message','save','/universer-api/frontend/logs','ONLINE','TEXT','totalFormulasToCalculate','_docTransformStateCacheService','displayName','releaseFormulaLimitUrl','OFFLINE','startRow','executeCommand','collabStatus.fetchMiss','SOCKET_FAILED_RETRY','enableLocalCache','fillText','session.collaboration-timeout','_initStatusComponent','LICENSE_EXPORT_SIZE_EXCEEDED','find','onTransformChange$','collaboration-client-ui.config','setAlpha','_session','tag','ENTITLE_CAN_NOT_BUY_LOWER_OTP','functionsExecutedState','searchParams','findNodePositionByCharIndex','getUnitId','YUUMI_URL_COL_OUT_OF_RANGE','shift','AWAITING_WITH_PENDING','replace','_anchor','beforeCommandExecuted','_collabCursorController','session.connection-failed','InsertColCommandId','_revisionService','UNIVER_DOC','_releaseCalculationLimit','_getSheetObject','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','_instanceService','UNDEFINED','0\x200\x2017\x2016','none','_drawAnchor','key','getUnhiddenWorksheets','pushState','replaceDocRanges','transformIMECache','_handleLeaveEvent','show','REDEMPTION_CODE_NOT_STARTED','_colorAssignService','values','parseInt','entries','FETCH_MISS','_docSyncEditingCollabCursorService','?taskId=','endRow','_getMergeRange','getCollabEntity$','roomMembers','with','_clearOtherTimers','REDEMPTION_CODE_HAS_BEEN_CREATED','substring','_handleJoinEvent','syncEditingCollabCursor','requireSession','white','_createSocketURL','next','_name','transformByState','all','JOIN_ROOM_FAILED','APPLY_PERMISSION_DENIED','LICENSE_MAX_UNITS_EXCEEDED','_assignedColors','COMPLETION_FINISHED','beginPath','DeleteRangeMoveLeftCommandId','_uiPartsService','YUUMI_AI_RUN_FAILED','getCurrent','_themeService','replaceState','_scheduleSaving','min','PERMISSION_DENIED','setInterval','evenodd','_labelPosition','max','code','1251812LtSfoM','assignAColorForMemberID','AUTHORIZE_CODE_ILLEGAL','RECT','sessionStatus$','ranges','_collabSessionService','ENTITLE_REPORT_LIMIT_EXCEED','ENTITLE_USE_COUPON_NOT_1ST_TRADE','stack','removeEventListener','runId','15KddQjC','symbol','status$','engine','bottom','labelPosition','CHANGESET_REVISION_CONFILICT','wsSessionTicketUrl','_initUserListener','USER_NOT_INVITED_CODE','MOBILE_VERIFY_CODE_MISMATCH','body','collaboration.offline-data-not-saved','currentSkeleton$','YUUMI_ASYNCIO_CANCELLED','CLOSE_ROOM','Error','_urlService','_configService','_render','skeleton','MUTATION','CONNECTOR_DATA_TOO_LARGE','getVpScrollXYInfoByPosToVp','_applyCommand','_cursorShapes','_colorIndex','fillStyle','color','Loading','_refreshCollabCursors','transformStateCache','_docSkeletonManagerService','endColumn','HEADER_MENU','ERROR_AGAIN','updateOfflineData','some','url(#off-line-icon_clip0_910_343)','671616vvrWhT','unit','_toggleOffline','_transformPreviousActiveRange','location','_getFormulaLimitStatus','_collaborationSessionService','SUBMIT_CHANGESET_TIMEOUT','_id','_notificationService','set','_transformService','blue.400','5854051fGqdjZ','yellow.400','WECHAT_HAS_BEEN_BOUND','row','registerRenderModule','_initDependencies','top','_cursors','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','getUnitStatus$','_registerRenderDependencies','setParam','[Unhandled\x20Rejection]:\x20','href','UniverIcon','_collaborationController','_memberID','collab-client.tooltip.reconnect','_setFormulaLimitStatus','contains','_cursor','getSkeleton','_cursorInfo$','_roomMembers$','dirtyRanges','getColorFromTheme','_collabCursorState$','/universer-api/license/formula/limit/start','ENTITLE_COUPON_USED_UP','lineTo','rgba(255,\x20255,\x20255,\x200.01)','_pollingInterval','RemoveColCommandId','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_initCommandInterceptor','green.600','_hover','get','_imageIoService','setShapeProps','m2Prime','REDEMPTION_CODE_FULLY_REDEEMED','...','getRenderById','NOT_COLLAB','/universer-api/license/formula/limit/done','_localCacheService','type','ENSURE_SNAPSHOT_EXECUTION','black','M0\x200H16V16H0z','ENTITLE_INSUFFICIENT_QUOTA','selection','_checkAndWaitForCalculationPermission','registerComponent','eventID','addEventListener','INVALID_INVITE_CODE','_showGuardMessage','_heartbeatTimer','on-line-icon','YUUMI_RATE_OVER_LIMIT','isArray','_beforeCloseService','isEditing','_textBubble','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','InsertRangeMoveRightCommandId','1148952zxehWZ','backgroundColor','getSheetId','_localeService','children','_updateCollabCursors','onCommandExecuted','INTERNAL_ERROR','LICENSE_DISTRO_REJECTED','sheetID','reconnect','socket$','getCellPositionByOffset','/run/','_startSheetCollabCursor','limitInfo','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','filename','ENTITLE_NEED_BILLING_ADDRESS','asObservable','getMemberID','name','onPointerEnter$','catch','search','YUUMI_TABLE_NOT_FOUND_IN_UNIT','saveOfflineData','setTimeout','unhandledrejection','data','delete','APPLY_NON_SEQUENTIAL_REVISION','Failed','stageInfo','SOCKET_FAILED','complete','then','_shapes','_initEntityListener','_updateSubUnitFromURLParams','_lastPointer','FromArray','getParam','add','entityInit$','getSheetBySheetId','collabCursorState$','addClipboardHook','Warning','getAncestorScale','xlink:href','SYNCED','maxFormulaLimit','disableLocalCache','_initCommandExecutedListener','hovered','CONFLICT','colorChannel1','imageSourceType','ticket','_getSessionTicket','98548bEqjop','InsertRangeMoveDownCommandId','_initEvent','_currentUsage','pipe','_lastResponseTimestamp','getUndoRedoMutationParamsCache','font','InsertRowCommandId','length','START_CALCULATION','_scheduleClearOtherTimer','EMAIL_VERIFY_CODE_MISMATCH','from','_drawRectRange','_backgroundColor','REDEMPTION_USER_NOT_ELIGIBLE','_range','ENTITLE_CHAT_LIMIT_EXCEED','send','ENTITLE_INVALID_COUPON_CODE','PAYMENT_CHANNEL_NOT_SUPPORT','cursorInfo$','mask','USER_NOT_FOUND','path','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','attrs','range','_sheetSkeletonManagerService','getUnit','assign','_refRangeService','_univerInstanceService','_handleHeartbeatEvent','width','urlChange$','sheetId','setItem','subscribe','toRgbString','selections','YUUMI_ALL_TABLES_IS_INVALID','OTHER_CLIENTS_EDITING','current','colno','deepClone','transformRemoteChangeset','_localStorageService','onMouseMove','getItem','_entities','_onCursorDelete','_onCursorUpdate','onLocalMutation','measureText','_transformUndoRedoStack','hide','_draw','getMember','10603485feoqdy','APPLY_REVISION_CONFILICT','INVALID_ARGUMENT','DeleteRangeMoveUpCommandId','YUUMI_CONNECTOR_URL_NOT_FOUND','collabStatus.syncing','has','0\x200\x2016\x2016','getStateCache','collabStatus.synced','createInstance','INVITE_CODE_HAS_BEEN_UES','_initStatusListener','_memberService','debug','closePath','collaboration.single-unit.warning','toString','getFocusedUnit','_initWindowErrorListener','trim','push','Unknown\x20user','column','_injector','getOwnPropertyDescriptor','Success','_renderManagerService','isActive','registerBeforeClose'];_0x919a=function(){return _0x368be9;};return _0x919a();}He=bn([Ue(0x0,_0x5a741e),Ue(0x1,_0x5e3c18),Ue(0x2,_0x3714f8(_0x17c8fb))],He);class Ln extends _0x53e01a{constructor(){const _0x4485f4=_0x12f7be;super(),_(this,'urlChange$'),this[_0x4485f4(0x1e3)]=_0x45269d(window,'popstate')['pipe'](_0x4da0bf(this[_0x4485f4(0x2a6)]),_0x528417(0x1),_0x84d373(void 0x0));}['setParam'](_0x2de8e8,_0x1c9659,_0x1217cb=!0x1){const _0x12a812=_0x12f7be,_0x1487e1=new URL(window[_0x12a812(0x135)][_0x12a812(0x14b)]);_0x1487e1['searchParams'][_0x12a812(0x13b)](_0x2de8e8,_0x1c9659),_0x1217cb?window['history'][_0x12a812(0xf5)]('','',_0x1487e1[_0x12a812(0x20c)]()):window[_0x12a812(0x237)][_0x12a812(0xcc)]('','',_0x1487e1[_0x12a812(0x20c)]());}[_0x12f7be(0x235)](_0x23c072,_0x20c627=!0x1){const _0x4c53f9=_0x12f7be,_0x4a0722=new URL(window['location'][_0x4c53f9(0x14b)]);_0x4a0722[_0x4c53f9(0xb4)][_0x4c53f9(0x1a0)](_0x23c072),_0x20c627?window[_0x4c53f9(0x237)][_0x4c53f9(0xf5)]('','',_0x4a0722['toString']()):window[_0x4c53f9(0x237)][_0x4c53f9(0xcc)]('','',_0x4a0722[_0x4c53f9(0x20c)]());}[_0x12f7be(0x1ac)](_0x570f8f){const _0x38f2af=_0x12f7be;var _0x33f254;return(_0x33f254=new URL(window[_0x38f2af(0x135)]['href'])[_0x38f2af(0xb4)][_0x38f2af(0x163)](_0x570f8f))!=null?_0x33f254:void 0x0;}}var Un=Object[_0x12f7be(0x265)],Mn=Object[_0x12f7be(0x214)],An=(_0x23d9e9,_0x2121ab,_0x1737a9)=>_0x2121ab in _0x23d9e9?Un(_0x23d9e9,_0x2121ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1737a9}):_0x23d9e9[_0x2121ab]=_0x1737a9,Pn=(_0x2777e0,_0x163df9,_0x4f4a5c,_0x25e59e)=>{const _0x2a7351=_0x12f7be;for(var _0x4cf423=_0x25e59e>0x1?void 0x0:_0x25e59e?Mn(_0x163df9,_0x4f4a5c):_0x163df9,_0x6a21aa=_0x2777e0[_0x2a7351(0x1c8)]-0x1,_0x45c2ee;_0x6a21aa>=0x0;_0x6a21aa--)(_0x45c2ee=_0x2777e0[_0x6a21aa])&&(_0x4cf423=_0x45c2ee(_0x4cf423)||_0x4cf423);return _0x4cf423;},Me=(_0x54655e,_0x565622)=>(_0x23261d,_0x6c0a4a)=>_0x565622(_0x23261d,_0x6c0a4a,_0x54655e),wn=(_0x2c5d0d,_0x826b00,_0x8eb4ad)=>An(_0x2c5d0d,_0x826b00+'',_0x8eb4ad);const yn=_0x12f7be(0x28d);let Ye=class extends _0x5affa2{constructor(_0x2745df=_t,_0x4c129f,_0x1d6b10,_0x169233){const _0x27002d=_0x12f7be;super(),this[_0x27002d(0x2cc)]=_0x2745df,this[_0x27002d(0x216)]=_0x4c129f,this[_0x27002d(0x213)]=_0x1d6b10,this[_0x27002d(0x11c)]=_0x169233;const {..._0x3fb15a}=_0x537f2b({},_t,this[_0x27002d(0x2cc)]);this['_configService'][_0x27002d(0x228)](hn,_0x3fb15a);}[_0x12f7be(0x29c)](){const _0x480c28=_0x12f7be;this['_registerDependencies'](),this[_0x480c28(0x143)]();}['onRendered'](){const _0x40a492=_0x12f7be;this[_0x40a492(0x148)]();}['_registerDependencies'](){const _0x1cece9=_0x12f7be;var _0x32ef16;const _0x1165f1=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x333b75,{'useClass':_0x12b10a}],[_0x381fc8,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x1cece9(0x2cc)][_0x1cece9(0x23d)]&&_0x1165f1['push']([le]),_0x358fe2(this['_injector'],_0x2cd5a1(_0x1165f1,(_0x32ef16=this[_0x1cece9(0x2cc)])==null?void 0x0:_0x32ef16[_0x1cece9(0x290)]));}[_0x12f7be(0x148)](){const _0x2bb815=_0x12f7be;this[_0x2bb815(0x26c)](this[_0x2bb815(0x216)][_0x2bb815(0x142)](_0x53cd3e[_0x2bb815(0xc1)],[Fe])),this['disposeWithMe'](this[_0x2bb815(0x216)][_0x2bb815(0x142)](_0x53cd3e[_0x2bb815(0x268)],[ke]));}['_initDependencies'](){_0x48ed1d(this['_injector'],[[H],[ae],[Se],[_e],[ce],[Ie]]),this['_config']['enableFrontendLog']&&_0x48ed1d(this['_injector'],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x1999b3(_0x2e3618),Me(0x1,_0x4ae0f1),Me(0x2,_0x3714f8(_0x24a160)),Me(0x3,_0x5a741e)],Ye);var $n=Object[_0x12f7be(0x214)],xn=(_0x5ec9b6,_0x1fe9e1,_0x9cd46f,_0x3faac8)=>{const _0x91c725=_0x12f7be;for(var _0x512be1=_0x3faac8>0x1?void 0x0:_0x3faac8?$n(_0x1fe9e1,_0x9cd46f):_0x1fe9e1,_0x2c7d9d=_0x5ec9b6[_0x91c725(0x1c8)]-0x1,_0x83ebc2;_0x2c7d9d>=0x0;_0x2c7d9d--)(_0x83ebc2=_0x5ec9b6[_0x2c7d9d])&&(_0x512be1=_0x83ebc2(_0x512be1)||_0x512be1);return _0x512be1;},J=(_0x571158,_0x4ce604)=>(_0xde1d76,_0x4dc11f)=>_0x4ce604(_0xde1d76,_0x4dc11f,_0x571158);let ut=class extends _0x5012d6{constructor(_0x13d161,_0x4431e2,_0x458750,_0x25fb50,_0x595833){super(_0x13d161,_0x4431e2,_0x458750,_0x25fb50,_0x595833);}async['createSocket'](_0x483e78){const _0x25ca96=_0x12f7be,_0x4f2a64=await this['_getSessionTicket'](),_0x7f1169=this[_0x25ca96(0xe5)](_0x483e78,_0x4f2a64);return this[_0x25ca96(0x253)](_0x7f1169);}['_createSocketURL'](_0x12fa71,_0x112ac3){const _0x48fe54=_0x12f7be,_0x89c491=typeof window>'u'?new URL(_0x12fa71):new URL(_0x12fa71,window[_0x48fe54(0x135)][_0x48fe54(0x236)]);_0x89c491['searchParams'][_0x48fe54(0x13b)](_0x48fe54(0x2e2),_0x112ac3);const _0x3426af=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x48fe54(0x135)][_0x48fe54(0x19a)]);return _0x3426af[_0x48fe54(0x163)](_0x48fe54(0x109))&&_0x89c491['searchParams'][_0x48fe54(0x13b)](_0x48fe54(0x109),_0x3426af['get'](_0x48fe54(0x109))),_0x89c491[_0x48fe54(0x20c)]();}async[_0x12f7be(0x1be)](){const _0x235cd2=_0x12f7be;var _0x2a0c43,_0x3334ff,_0x27ebe5;const _0x5f5f4a=this[_0x235cd2(0x11c)][_0x235cd2(0x221)](_0x3c1c8f),_0x14dcd5=(_0x2a0c43=_0x5f5f4a==null?void 0x0:_0x5f5f4a[_0x235cd2(0x111)])!=null?_0x2a0c43:_0x29d557;return(_0x27ebe5=(_0x3334ff=(await this[_0x235cd2(0x21e)][_0x235cd2(0x163)](_0x14dcd5,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x3334ff[_0x235cd2(0x1bd)])!=null?_0x27ebe5:'';}};ut=xn([J(0x0,_0x3714f8(_0x24a160)),J(0x1,_0x3714f8(_0x1ef343)),J(0x2,_0x5a741e),J(0x3,_0x36e10f),J(0x4,_0x479bb3)],ut);var Bn=Object['getOwnPropertyDescriptor'],Fn=(_0x4b5925,_0x287d9f,_0x12f050,_0x1f0a6c)=>{for(var _0x64dbce=_0x1f0a6c>0x1?void 0x0:_0x1f0a6c?Bn(_0x287d9f,_0x12f050):_0x287d9f,_0x56f37f=_0x4b5925['length']-0x1,_0x2d78a0;_0x56f37f>=0x0;_0x56f37f--)(_0x2d78a0=_0x4b5925[_0x56f37f])&&(_0x64dbce=_0x2d78a0(_0x64dbce)||_0x64dbce);return _0x64dbce;},Ae=(_0x37e7b2,_0x2d03e7)=>(_0x22136d,_0x5f551a)=>_0x2d03e7(_0x22136d,_0x5f551a,_0x37e7b2);let dt=class extends _0x112363{constructor(_0x28eda9,_0x57956c,_0x1b0663){const _0x221382=_0x12f7be;super(),this['_instanceService']=_0x28eda9,this[_0x221382(0x21e)]=_0x57956c,this['_configService']=_0x1b0663;}async[_0x12f7be(0x289)](_0x57130f,_0x4bc9f5,_0x70baf5,..._0x3d2c35){const _0x1aa91f=_0x12f7be;var _0x308634,_0x97a005,_0x3acb34,_0x3cde4a;const _0x276319=this[_0x1aa91f(0xc5)][_0x1aa91f(0x20d)]();if(!_0x276319)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x3c73c2=((_0x308634=this[_0x1aa91f(0x11c)]['getConfig'](_0x587df1))!=null?_0x308634:_0x499824)+'/'+_0x57130f+_0x1aa91f(0x18f)+_0x4bc9f5,_0x8c24bd=new URL(window[_0x1aa91f(0x135)][_0x1aa91f(0x14b)]),_0x37ac0c={'scriptId':_0x57130f,'runId':(_0x97a005=_0x8c24bd[_0x1aa91f(0xb4)][_0x1aa91f(0x163)](_0x1aa91f(0x109)))!=null?_0x97a005:'','function':_0x4bc9f5,'unitId':_0x276319[_0x1aa91f(0xb6)](),'argsOfFunction':JSON[_0x1aa91f(0x225)](_0x3d2c35),'invokeId':(_0x3acb34=_0x70baf5[_0x1aa91f(0x264)])!=null?_0x3acb34:'','executionId':(_0x3cde4a=_0x70baf5[_0x1aa91f(0x223)])!=null?_0x3cde4a:''};try{const _0x3930b7=await this[_0x1aa91f(0x21e)]['post'](_0x3c73c2,{'body':_0x37ac0c});return _0x3930b7[_0x1aa91f(0x115)][_0x1aa91f(0x2d5)]&&_0x3930b7['body']['error'][_0x1aa91f(0xfd)]!==Z['OK']?'Failed':_0x3930b7[_0x1aa91f(0x115)]['result'];}catch{return _0x1aa91f(0x1a2);}}};dt=Fn([Ae(0x0,_0x52d51e),Ae(0x1,_0x3714f8(_0x1ef343)),Ae(0x2,_0x5a741e)],dt);const St=0x7530,It='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0x112363{constructor(){const _0x6ac7a8=_0x12f7be;super(),_(this,_0x6ac7a8(0x139),_0x28ef98()),_(this,'_selfUnitIDs',new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x6ac7a8(0x179),null),_(this,'_clearOtherTimers',new Map()),_(this,_0x6ac7a8(0x26f),new Map()),this['_init']();}[_0x12f7be(0x2e8)](){const _0x5c8468=_0x12f7be;super[_0x5c8468(0x2e8)](),this[_0x5c8468(0xde)][_0x5c8468(0x275)]((_0x229190,_0x2369a4)=>this['_removeClearOtherTimer'](_0x2369a4)),this[_0x5c8468(0x179)]&&window['clearInterval'](this[_0x5c8468(0x179)]);}[_0x12f7be(0x147)](_0x44ddaa){const _0x5e6bf6=_0x12f7be;return this[_0x5e6bf6(0x257)](_0x44ddaa)[_0x5e6bf6(0x1c3)](_0x332830());}['editingUnit'](_0xf0c331){const _0x2ee02c=_0x12f7be;this[_0x2ee02c(0x2af)][_0x2ee02c(0x29b)]===0x0&&this[_0x2ee02c(0x28c)](),this[_0x2ee02c(0x2af)]['add'](_0xf0c331),this['_send']({'type':0x0,'memberID':this[_0x2ee02c(0x139)],'unitIDs':[_0xf0c331],'isForwarded':!0x1});}[_0x12f7be(0x2a7)](_0x4b962b){const _0x53511a=_0x12f7be;this[_0x53511a(0x2af)][_0x53511a(0x1a0)](_0x4b962b),this[_0x53511a(0x2af)][_0x53511a(0x29b)]===0x0&&this['_heartbeatTimer']&&window[_0x53511a(0x234)](this[_0x53511a(0x179)]);}[_0x12f7be(0x279)](){const _0x5016f9=_0x12f7be;this[_0x5016f9(0x26c)](_0x16c8e4(_0x45269d(window,'storage')['subscribe'](_0x2b5c0a=>{const _0x547334=_0x5016f9;if(_0x2b5c0a[_0x547334(0xca)]!==It||!_0x2b5c0a['newValue'])return;const _0xb9fc0=JSON[_0x547334(0x287)](_0x2b5c0a['newValue']);this[_0x547334(0x285)](_0xb9fc0);}))),window[_0x5016f9(0x176)](_0x5016f9(0x2bd),()=>this[_0x5016f9(0x29a)]({'type':0x1,'memberID':this[_0x5016f9(0x139)],'unitIDs':Array[_0x5016f9(0x1cc)](this[_0x5016f9(0x2af)])}));}[_0x12f7be(0x285)](_0x5f563d){const _0x1b5825=_0x12f7be;switch(_0x5f563d[_0x1b5825(0x16d)]){case 0x0:this[_0x1b5825(0xe1)](_0x5f563d);break;case 0x1:this[_0x1b5825(0xcf)](_0x5f563d);break;case 0x2:this[_0x1b5825(0x1e1)](_0x5f563d);break;}}[_0x12f7be(0xe1)](_0x15cda1){const _0x3c1b12=_0x12f7be,{unitIDs:_0x1be19e,memberID:_0x53f9d9,isForwarded:_0x4c6bac}=_0x15cda1;_0x1be19e[_0x3c1b12(0x275)](_0x41c3d2=>{const _0x102b47=_0x3c1b12;if(!_0x4c6bac&&this[_0x102b47(0x2ad)][_0x102b47(0x201)](_0x41c3d2)&&this['_ensureSubject'](_0x41c3d2)[_0x102b47(0xe6)](_0x4d3796[_0x102b47(0x1ea)]),!this[_0x102b47(0x2ad)][_0x102b47(0x201)](_0x41c3d2)||!this['_unitOnClients'][_0x102b47(0x163)](_0x41c3d2)['has'](_0x53f9d9)){const _0x2c8316=this[_0x102b47(0x2ad)]['get'](_0x41c3d2)||new Set();_0x2c8316[_0x102b47(0x1ad)](_0x53f9d9),this[_0x102b47(0x2ad)]['set'](_0x41c3d2,_0x2c8316),this[_0x102b47(0x1ca)](_0x53f9d9);}}),_0x4c6bac||this[_0x3c1b12(0x29a)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x3c1b12(0x2af)]],'isForwarded':!0x0});}[_0x12f7be(0x1ca)](_0x24e921){const _0x45759d=_0x12f7be;this[_0x45759d(0x2ba)](_0x24e921);const _0x5e7438=window[_0x45759d(0x19d)](()=>{const _0x11bfe8=_0x45759d;this[_0x11bfe8(0x2ad)][_0x11bfe8(0x275)](_0x4e3799=>{const _0xb997ce=_0x11bfe8;_0x4e3799[_0xb997ce(0x1a0)](_0x24e921);});},St*0x2);this[_0x45759d(0xde)][_0x45759d(0x13b)](_0x24e921,_0x5e7438);}['_removeClearOtherTimer'](_0x3fb607){const _0x5c4762=_0x12f7be;if(this['_clearOtherTimers'][_0x5c4762(0x201)](_0x3fb607)){const _0x1797b8=this['_clearOtherTimers'][_0x5c4762(0x163)](_0x3fb607);_0x1797b8&&window['clearTimeout'](_0x1797b8),this[_0x5c4762(0xde)][_0x5c4762(0x13b)](_0x3fb607,null);}}[_0x12f7be(0xcf)](_0x220899){const _0x4e4a9e=_0x12f7be,{memberID:_0x843458,unitIDs:_0x47c0b6}=_0x220899;_0x47c0b6['forEach'](_0x334ee0=>{const _0x11a69f=_0x473f;var _0x3e8db5;const _0x389c9c=this[_0x11a69f(0x2ad)][_0x11a69f(0x163)](_0x334ee0);_0x389c9c&&(_0x389c9c[_0x11a69f(0x1a0)](_0x843458),(_0x3e8db5=this[_0x11a69f(0x257)](_0x334ee0))==null||_0x3e8db5[_0x11a69f(0xe6)](_0x389c9c['size']===0x0?_0x4d3796[_0x11a69f(0x2c8)]:_0x4d3796[_0x11a69f(0x1ea)]));}),this[_0x4e4a9e(0x2ba)](_0x843458);}['_handleHeartbeatEvent'](_0x86756b){const _0xbef987=_0x12f7be;this[_0xbef987(0x1ca)](_0x86756b[_0xbef987(0x2ab)]);}[_0x12f7be(0x29a)](_0x46a942){const _0xfa8e1a=_0x12f7be;localStorage[_0xfa8e1a(0x1e5)](It,JSON[_0xfa8e1a(0x225)](_0x46a942));}['_scheduleHeartbeat'](){const _0x6a935=_0x12f7be;this['_heartbeatTimer']=window[_0x6a935(0xf9)](()=>{const _0x6aff8a=_0x6a935;this['_send']({'type':0x2,'memberID':this[_0x6aff8a(0x139)]});},St);}[_0x12f7be(0x257)](_0x499234){const _0x3c2c4d=_0x12f7be;return this[_0x3c2c4d(0x26f)][_0x3c2c4d(0x201)](_0x499234)||this[_0x3c2c4d(0x26f)]['set'](_0x499234,new _0x51f523(_0x4d3796[_0x3c2c4d(0x2c8)])),this['_unitStatus'][_0x3c2c4d(0x163)](_0x499234);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};