@univerjs-pro/collaboration-client-ui 0.10.13 → 0.10.14-nightly.202511070628
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.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +18 -18
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x36889e=_0x4047;(function(_0x25097c,_0x334425){const _0x19bbb2=_0x4047,_0x1124d4=_0x25097c();while(!![]){try{const _0x44112a=-parseInt(_0x19bbb2(0x2f2))/0x1*(parseInt(_0x19bbb2(0x269))/0x2)+parseInt(_0x19bbb2(0x39c))/0x3*(parseInt(_0x19bbb2(0x2d2))/0x4)+-parseInt(_0x19bbb2(0x33b))/0x5*(parseInt(_0x19bbb2(0x268))/0x6)+parseInt(_0x19bbb2(0x33a))/0x7*(parseInt(_0x19bbb2(0x1c2))/0x8)+parseInt(_0x19bbb2(0x286))/0x9+parseInt(_0x19bbb2(0x249))/0xa+-parseInt(_0x19bbb2(0x261))/0xb;if(_0x44112a===_0x334425)break;else _0x1124d4['push'](_0x1124d4['shift']());}catch(_0x3248a0){_0x1124d4['push'](_0x1124d4['shift']());}}}(_0x4b6c,0x76e27));var Ft=Object[_0x36889e(0x36e)],kt=(_0xcdc0fa,_0x214f1c,_0x45320d)=>_0x214f1c in _0xcdc0fa?Ft(_0xcdc0fa,_0x214f1c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x45320d}):_0xcdc0fa[_0x214f1c]=_0x45320d,l=(_0x5f5b1a,_0x3593a5,_0x562294)=>kt(_0x5f5b1a,typeof _0x3593a5!=_0x36889e(0x1ba)?_0x3593a5+'':_0x3593a5,_0x562294);import{jsx as _0x127c6e,jsxs as _0x27ebb2}from'react/jsx-runtime';import{CollaborationStatus as _0x35fe7b,CollaborationSessionService as _0x3486ae,CollaborationController as _0x5dd025,DataLoaderService as _0x38f297,MemberService as _0x32994c,SessionStatus as _0x2ffc02,ILocalCacheService as _0x23d181,CollaborationUIEventService as _0x31cf35,CollaborationUIEventId as _0x557d91,DocCollaborationEntity as _0xeaac5a,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0xec5025,getLocalCacheKey as _0x37fd08,LOCAL_CACHE_INTERVAL as _0x5f4615,LOCAL_CACHE_INTERVAL_KEY as _0x5127db,UniverCollaborationClientPlugin as _0x54acb2,CollaborationSocketService as _0x519ec4,DEFAULT_WS_SESSION_TICKET_URL as _0x40c209,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x1a66bd,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x878450,UnitStatus as _0x3326af}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x34b1c0,IUniverInstanceService as _0x11a3cb,Inject as _0x43af65,Injector as _0x5a50a2,Disposable as _0x2d4248,createIdentifier as _0x20f552,ILogService as _0x2079f4,ICommandService as _0x19be55,Optional as _0x28004a,RxDisposable as _0x90cdab,Workbook as _0x39e5d3,DOC_RANGE_TYPE as _0x2573f0,debounce as _0x4871f3,Rectangle as _0x5d94d0,DisposableCollection as _0x2f030e,toDisposable as _0x587d38,UniverInstanceType as _0xeb1790,generateRandomId as _0x106418,COLORS as _0x31b33e,ColorKit as _0x262d06,ThemeService as _0x291287,fromEventSubject as _0x451a33,Tools as _0x452ace,CommandType as _0x8dd410,IConfigService as _0x30999b,CanceledError as _0x1df904,isFormulaString as _0x20d565,isFormulaId as _0x3dadc3,ILocalStorageService as _0x59e9d1,DependentOn as _0xfdebc4,Plugin as _0x2a1b8a,merge as _0x539c2b,registerDependencies as _0x5cd96d,mergeOverrideWithDependencies as _0x20ba8c,touchDependencies as _0x309974}from'@univerjs/core';import{useObservable as _0x4b6605,useDependency as _0x5ec3f8,IUIPartsService as _0x2851b3,BuiltInUIPart as _0x1b2b9e,connectInjector as _0x45d98b,IBeforeCloseService as _0x4772b6,IMessageService as _0x35a021,INotificationService as _0x157dfb}from'@univerjs/ui';import{BehaviorSubject as _0x28744e,switchMap as _0x4c5e7c,of as _0x15bfd3,takeUntil as _0x2bd178,debounceTime as _0x583a9f,Subject as _0x205b15,filter as _0x8fee6d,merge as _0x530f38,combineLatest as _0x6612f1,fromEvent as _0x40a393,shareReplay as _0x3e2590,mapTo as _0x13c8e0,distinctUntilChanged as _0x5b1ef3}from'rxjs';import{Tooltip as _0x5961e5,clsx as _0x130e06,MessageType as _0x3551}from'@univerjs/design';import{useRef as _0x2d5d5c,createElement as _0x54cd46,forwardRef as _0x20b1cb,useCallback as _0x4e88b8}from'react';import{IRemoteInstanceService as _0x4b9815}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x1dd493,RefRangeService as _0x560d59,SetSelectionsOperation as _0x2f573e,SheetsSelectionsService as _0x5ac9d1,EffectRefRangId as _0x234e1f,handleIRemoveRow as _0x2ffcdb,handleIRemoveCol as _0x384cd9,handleMoveRange as _0x2b4f10,handleInsertRow as _0xc096ee,handleInsertRangeMoveRight as _0x22c837,handleInsertRangeMoveDown as _0x5e27e8,handleInsertCol as _0x3e4f4e,handleDeleteRangeMoveUp as _0x4c9890,handleDeleteRangeMoveLeft as _0x4d91d0,runRefRangeMutations as _0xb701eb}from'@univerjs/sheets';import{Shape as _0x312cc4,Rect as _0x2af27a,getColor as _0x2219c7,RegularPolygon as _0x3e88a2,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x59f112,Vector2 as _0x4421dc,SHEET_VIEWPORT_KEY as _0x181b74,IRenderManagerService as _0x1461c3}from'@univerjs/engine-render';import{HTTPService as _0x144565,ISocketService as _0x48e9f7,WebSocketService as _0x331d4d}from'@univerjs/network';import{IDocClipboardService as _0x29034e,NodePositionConvertToCursor as _0x49d201,NodePositionConvertToRectRange as _0x139ac7,TEXT_RANGE_LAYER_INDEX as _0x395529,SetDocZoomRatioOperation as _0x1339b0,DocIMEInputManagerService as _0x21d165,DocStateChangeManagerService as _0x1c2dd0}from'@univerjs/docs-ui';import{IImageIoService as _0x2cd590}from'@univerjs/drawing';import{ITransformService as _0x477b88,CollaborationEvent as _0x4e265d,isTransformMutationFailure as _0x3bbf6b,isTransformMutationsWithChangesetSuccess as _0x555015,RevisionService as _0x12ae1d,ISnapshotServerService as _0x2f12ac}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x4698b8,RichTextEditingMutation as _0x1d7932,DocSelectionManagerService as _0x3ce9f9,DocSkeletonManagerService as _0x13e635}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x28c76e,serializeRangeWithSheet as _0x2eec07,FormulaExecuteStageType as _0x417a0b,FormulaExecutedStateType as _0xdc2a3,SetFormulaCalculationStartMutation as _0xf447bb,SetFormulaCalculationNotificationMutation as _0x49ec8c}from'@univerjs/engine-formula';import{map as _0x489674,filter as _0x18d9de,throttleTime as _0x55544b,takeUntil as _0x3ac2d0,switchMap as _0x28acc3}from'rxjs/operators';import{SheetSkeletonManagerService as _0x8160e4,getCoordByCell as _0x51a5a2,getSheetObject as _0x4dda01}from'@univerjs/sheets-ui';function Ve({ref:_0x20bd3f,..._0x487452}){const _0x3d643c=_0x36889e,{icon:_0x2ea0de,id:_0x2cacd6,className:_0x24a995,extend:_0x4eecd9,..._0x271b01}=_0x487452,_0x1c245d=(_0x3d643c(0x3c0)+_0x2cacd6+'\x20'+(_0x24a995||''))['trim'](),_0xb5337d=_0x2d5d5c('_'+gi());return Ut(_0x2ea0de,''+_0x2cacd6,{'defIds':_0x2ea0de['defIds'],'idSuffix':_0xb5337d[_0x3d643c(0x279)]},{'ref':_0x20bd3f,'className':_0x1c245d,..._0x271b01},_0x4eecd9);}function Ut(_0x2c252c,_0x41cf91,_0x4bec0b,_0x1ecb28,_0x4595d2){const _0x13eb37=_0x36889e;return _0x54cd46(_0x2c252c['tag'],{'key':_0x41cf91,...mi(_0x2c252c,_0x4bec0b,_0x4595d2),..._0x1ecb28},(fi(_0x2c252c,_0x4bec0b)[_0x13eb37(0x222)]||[])[_0x13eb37(0x35b)]((_0x4d6b4c,_0x580037)=>Ut(_0x4d6b4c,_0x41cf91+'-'+_0x2c252c[_0x13eb37(0x1c3)]+'-'+_0x580037,_0x4bec0b,void 0x0,_0x4595d2)));}function mi(_0x40a875,_0x32e8aa,_0x2544ad){const _0x301f3a=_0x36889e,_0x163a4c={..._0x40a875['attrs']};_0x2544ad!=null&&_0x2544ad['colorChannel1']&&_0x163a4c[_0x301f3a(0x211)]===_0x301f3a(0x2b1)&&(_0x163a4c['fill']=_0x2544ad[_0x301f3a(0x2b1)]),_0x40a875[_0x301f3a(0x1c3)]===_0x301f3a(0x275)&&_0x163a4c['id']&&(_0x163a4c['id']=_0x163a4c['id']+_0x32e8aa[_0x301f3a(0x225)]),Object[_0x301f3a(0x3bc)](_0x163a4c)[_0x301f3a(0x385)](([_0x3b9fec,_0x44f895])=>{const _0xc794ba=_0x301f3a;_0x3b9fec===_0xc794ba(0x275)&&typeof _0x44f895==_0xc794ba(0x3e8)&&(_0x163a4c[_0x3b9fec]=_0x44f895[_0xc794ba(0x328)](/url\(#(.*)\)/,'url(#$1'+_0x32e8aa[_0xc794ba(0x225)]+')'));});const {defIds:_0x5e962b}=_0x32e8aa;return!_0x5e962b||_0x5e962b[_0x301f3a(0x203)]===0x0||(_0x40a875['tag']===_0x301f3a(0x292)&&_0x163a4c[_0x301f3a(0x231)]&&(_0x163a4c[_0x301f3a(0x231)]=_0x163a4c[_0x301f3a(0x231)]+_0x32e8aa['idSuffix']),Object['entries'](_0x163a4c)[_0x301f3a(0x385)](([_0x5bd72b,_0x4d6bd0])=>{const _0xfd0d5f=_0x301f3a;typeof _0x4d6bd0==_0xfd0d5f(0x3e8)&&(_0x163a4c[_0x5bd72b]=_0x4d6bd0[_0xfd0d5f(0x328)](/url\(#(.*)\)/,'url(#$1'+_0x32e8aa['idSuffix']+')'));})),_0x163a4c;}function fi(_0x51bbb1,_0xdbd593){const _0x5570ce=_0x36889e;var _0x3b8780;const {defIds:_0x28d610}=_0xdbd593;return!_0x28d610||_0x28d610['length']===0x0?_0x51bbb1:_0x51bbb1[_0x5570ce(0x1c3)]===_0x5570ce(0x1d8)&&((_0x3b8780=_0x51bbb1[_0x5570ce(0x222)])!=null&&_0x3b8780[_0x5570ce(0x203)])?{..._0x51bbb1,'children':_0x51bbb1[_0x5570ce(0x222)][_0x5570ce(0x35b)](_0x3eee7e=>typeof _0x3eee7e['attrs']['id']==_0x5570ce(0x3e8)&&_0x28d610&&_0x28d610['includes'](_0x3eee7e[_0x5570ce(0x3ad)]['id'])?{..._0x3eee7e,'attrs':{..._0x3eee7e[_0x5570ce(0x3ad)],'id':_0x3eee7e[_0x5570ce(0x3ad)]['id']+_0xdbd593['idSuffix']}}:_0x3eee7e)}:_0x51bbb1;}function gi(){const _0x1262e9=_0x36889e;return Math['random']()[_0x1262e9(0x3a1)](0x24)['substring'](0x2,0x8);}Ve['displayName']=_0x36889e(0x228);const vi={'tag':_0x36889e(0x238),'attrs':{'xmlns':_0x36889e(0x285),'fill':_0x36889e(0x35f),'viewBox':'0\x200\x2016\x2016','width':_0x36889e(0x3ba),'height':_0x36889e(0x3ba)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x36889e(0x2f3),'attrs':{'stroke':_0x36889e(0x23b),'d':_0x36889e(0x395),'strokeLinecap':_0x36889e(0x2b3),'strokeLinejoin':_0x36889e(0x2b3),'strokeWidth':1.2}}]},{'tag':_0x36889e(0x1d8),'attrs':{},'children':[{'tag':_0x36889e(0x2db),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x36889e(0x2f3),'attrs':{'fill':_0x36889e(0x1d2),'d':_0x36889e(0x375)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Lt=_0x20b1cb(function(_0x1911e4,_0x5502d3){const _0x48d394=_0x36889e;return _0x54cd46(Ve,Object[_0x48d394(0x267)]({},_0x1911e4,{'id':_0x48d394(0x31f),'ref':_0x5502d3,'icon':vi}));});Lt['displayName']='OffLineIcon';const Ei={'tag':_0x36889e(0x238),'attrs':{'xmlns':_0x36889e(0x285),'fill':'none','viewBox':_0x36889e(0x243),'width':_0x36889e(0x3ba),'height':_0x36889e(0x3ba)},'children':[{'tag':'g','attrs':{'clipPath':_0x36889e(0x224)},'children':[{'tag':_0x36889e(0x2f3),'attrs':{'stroke':_0x36889e(0x23b),'d':_0x36889e(0x373),'strokeLinecap':_0x36889e(0x2b3),'strokeLinejoin':_0x36889e(0x2b3),'strokeWidth':1.2}}]},{'tag':_0x36889e(0x1d8),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x36889e(0x21d)},'children':[{'tag':_0x36889e(0x2f3),'attrs':{'fill':_0x36889e(0x1d2),'d':_0x36889e(0x375),'transform':_0x36889e(0x2eb)}}]}]}],'defIds':[_0x36889e(0x21d)]},Mt=_0x20b1cb(function(_0x11836a,_0x5122f3){const _0x2e077e=_0x36889e;return _0x54cd46(Ve,Object[_0x2e077e(0x267)]({},_0x11836a,{'id':'on-line-icon','ref':_0x5122f3,'icon':Ei}));});Mt['displayName']=_0x36889e(0x3a7);function pi(_0x54007a){const _0x277b24=_0x36889e;switch(_0x54007a){case _0x35fe7b[_0x277b24(0x2bf)]:return'collabStatus.offline';case _0x35fe7b[_0x277b24(0x357)]:return _0x277b24(0x3ae);case _0x35fe7b[_0x277b24(0x2e0)]:return _0x277b24(0x38a);case _0x35fe7b['NOT_COLLAB']:return _0x277b24(0x2d9);case _0x35fe7b['AWAITING']:case _0x35fe7b[_0x277b24(0x1e6)]:return'collabStatus.syncing';case _0x35fe7b[_0x277b24(0x2b0)]:case _0x35fe7b['PENDING']:return _0x277b24(0x229);}}function Oi(_0xf7921){const _0x5bd9a8=_0x36889e,{status$:_0x1c7e5d}=_0xf7921,_0x1ca55b=_0x4b6605(_0x1c7e5d,_0x35fe7b[_0x5bd9a8(0x29d)]),_0x1c9134=_0x5ec3f8(_0x34b1c0),_0x175a64=_0x5ec3f8(_0x3486ae),_0x565225=_0x1ca55b!==_0x35fe7b[_0x5bd9a8(0x2bf)],_0x176bd7=_0x1c9134['t'](pi(_0x1ca55b)),_0x379167=_0x565225?_0x127c6e(Mt,{}):_0x127c6e(Lt,{}),_0x2dabba=_0x4e88b8(()=>{const _0x5224d5=_0x5bd9a8;_0x565225||_0x175a64[_0x5224d5(0x26d)]();},[_0x565225,_0x175a64]);function _0x2f8402(){const _0x544194=_0x5bd9a8;return _0x27ebb2(_0x544194(0x2be),{'className':_0x544194(0x2e3),'onClick':_0x2dabba,'children':[_0x127c6e('div',{'className':_0x130e06(_0x544194(0x3a0),{'univer-text-green-500':_0x565225,'univer-text-red-500':!_0x565225}),'children':_0x379167}),_0x127c6e(_0x544194(0x2be),{'className':_0x544194(0x34a),'children':_0x176bd7})]});}return _0x565225?_0x2f8402():_0x127c6e(_0x5961e5,{'title':_0x1c9134['t']('collab-client.tooltip.reconnect'),'children':_0x2f8402()});}var Ti=Object['getOwnPropertyDescriptor'],Ci=(_0x4d996d,_0x290271,_0x38be73,_0x1483c7)=>{const _0xdb36fa=_0x36889e;for(var _0x48732c=_0x1483c7>0x1?void 0x0:_0x1483c7?Ti(_0x290271,_0x38be73):_0x290271,_0x909a6f=_0x4d996d[_0xdb36fa(0x203)]-0x1,_0x349ca7;_0x909a6f>=0x0;_0x909a6f--)(_0x349ca7=_0x4d996d[_0x909a6f])&&(_0x48732c=_0x349ca7(_0x48732c)||_0x48732c);return _0x48732c;},se=(_0x53bc1d,_0x49d14e)=>(_0x183160,_0x2f9176)=>_0x49d14e(_0x183160,_0x2f9176,_0x53bc1d);let oe=class extends _0x2d4248{constructor(_0x6d5f3f,_0x499bc1,_0x27b122,_0x1d1e26){const _0x1bee4b=_0x36889e;super(),l(this,'_status$',new _0x28744e(_0x35fe7b['NOT_COLLAB'])),(this[_0x1bee4b(0x1e7)]=_0x6d5f3f,this['_injector']=_0x499bc1,this['_collaborationController']=_0x27b122,this[_0x1bee4b(0x3af)]=_0x1d1e26,this[_0x1bee4b(0x3b7)](),this[_0x1bee4b(0x3e9)]());}[_0x36889e(0x3e9)](){const _0x31d6a6=_0x36889e;this[_0x31d6a6(0x20c)](this[_0x31d6a6(0x1e7)][_0x31d6a6(0x312)]['pipe'](_0x4c5e7c(()=>{const _0x23f037=_0x31d6a6,_0x491504=this[_0x23f037(0x1e7)][_0x23f037(0x3cc)]();return _0x491504?this[_0x23f037(0x28a)][_0x23f037(0x2d0)](_0x491504[_0x23f037(0x333)]()):_0x15bfd3(null);}),_0x4c5e7c(_0x5c6774=>_0x5c6774?_0x5c6774[_0x31d6a6(0x38d)]:_0x15bfd3(_0x35fe7b['NOT_COLLAB'])))[_0x31d6a6(0x3d8)](_0x19e5ae=>{const _0x2922d7=_0x31d6a6;this[_0x2922d7(0x31e)][_0x2922d7(0x345)](_0x19e5ae);}));}[_0x36889e(0x3b7)](){const _0x13b191=_0x36889e;this['disposeWithMe'](this[_0x13b191(0x3af)][_0x13b191(0x2a6)](_0x1b2b9e[_0x13b191(0x276)],()=>_0x45d98b(Ri({'status$':this[_0x13b191(0x31e)][_0x13b191(0x33d)]()}),this[_0x13b191(0x1fc)])));}};oe=Ci([se(0x0,_0x11a3cb),se(0x1,_0x43af65(_0x5a50a2)),se(0x2,_0x43af65(_0x5dd025)),se(0x3,_0x2851b3)],oe);function Ri(_0x4a9b00){const {status$:_0x2c829a}=_0x4a9b00;return function(){return _0x127c6e(Oi,{'status$':_0x2c829a});};}const At=_0x20f552(_0x36889e(0x321));var Di=Object[_0x36889e(0x39d)],Ni=(_0xa86d4d,_0x5e0d71,_0x353c4c,_0x27406d)=>{const _0x33224e=_0x36889e;for(var _0x5822cb=_0x27406d>0x1?void 0x0:_0x27406d?Di(_0x5e0d71,_0x353c4c):_0x5e0d71,_0x53985c=_0xa86d4d[_0x33224e(0x203)]-0x1,_0x47878c;_0x53985c>=0x0;_0x53985c--)(_0x47878c=_0xa86d4d[_0x53985c])&&(_0x5822cb=_0x47878c(_0x5822cb)||_0x5822cb);return _0x5822cb;},K=(_0x326bf6,_0x1ceabc)=>(_0x1b6501,_0x400674)=>_0x1ceabc(_0x1b6501,_0x400674,_0x326bf6);let ae=class extends _0x90cdab{constructor(_0x261e25,_0x2ee3cc,_0xbc770,_0x117be8,_0x55c771){const _0x373a31=_0x36889e;super(),this[_0x373a31(0x3da)]=_0x261e25,this[_0x373a31(0x1e5)]=_0x2ee3cc,this['_commandService']=_0xbc770,this[_0x373a31(0x325)]=_0x117be8,_0x55c771?_0x55c771==null||_0x55c771[_0x373a31(0x39f)]()[_0x373a31(0x1f5)](()=>this[_0x373a31(0x1d4)]()):(this['_logService']['debug'](_0x373a31(0x37f),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x373a31(0x1d4)]());}async[_0x36889e(0x1d4)](){const _0x36f037=_0x36889e,_0x23be91=this[_0x36f037(0x3da)]['getParam'](_0x36f037(0x2ff)),_0x3de218=this[_0x36f037(0x3da)][_0x36f037(0x3ce)]('type'),_0xd2a33f=this[_0x36f037(0x3da)][_0x36f037(0x3ce)](_0x36f037(0x3b5));if(!_0x23be91||!_0x3de218){this[_0x36f037(0x1e5)]['debug'](_0x36f037(0x37f),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x4d52c6=await this[_0x36f037(0x325)]['loadUnit'](_0x23be91,Number(_0x3de218),_0xd2a33f);_0x4d52c6&&_0x4d52c6 instanceof _0x39e5d3&&this[_0x36f037(0x291)](_0x4d52c6);}async['_setupSubUnitSync'](_0x169b04){const _0x3fae8a=_0x36889e;await this[_0x3fae8a(0x255)](_0x169b04),_0x169b04[_0x3fae8a(0x22a)][_0x3fae8a(0x1dd)](_0x2bd178(this[_0x3fae8a(0x3c5)]))[_0x3fae8a(0x3d8)](_0x489433=>{_0x489433&&this['_updateURLWithCurrentState'](_0x489433);}),this['_urlService'][_0x3fae8a(0x398)][_0x3fae8a(0x1dd)](_0x2bd178(this[_0x3fae8a(0x3c5)]))[_0x3fae8a(0x3d8)](()=>this[_0x3fae8a(0x255)](_0x169b04));}[_0x36889e(0x391)](_0x415d94,_0x1460c9=!0x1){const _0x300aa6=_0x36889e,_0x110f51=this['_urlService'][_0x300aa6(0x3ce)]('subunit');_0x415d94[_0x300aa6(0x313)]()!==_0x110f51&&this[_0x300aa6(0x3da)][_0x300aa6(0x245)](_0x300aa6(0x3b5),_0x415d94[_0x300aa6(0x313)](),_0x1460c9);}async[_0x36889e(0x255)](_0x375b9b){const _0x3e148c=_0x36889e;var _0x4c45d8;const _0x25d6d8=this[_0x3e148c(0x3da)][_0x3e148c(0x3ce)](_0x3e148c(0x3b5));if(!_0x25d6d8||!_0x375b9b[_0x3e148c(0x38c)](_0x25d6d8)){const _0x413bbc=_0x375b9b[_0x3e148c(0x215)]()[0x0],_0x23bde9=_0x375b9b[_0x3e148c(0x38c)](_0x413bbc);if(!_0x23bde9)return;this[_0x3e148c(0x391)](_0x23bde9,!0x0),await this['_commandService']['executeCommand'](_0x1dd493['id'],{'unitId':_0x375b9b[_0x3e148c(0x333)](),'subUnitId':_0x413bbc});return;}((_0x4c45d8=_0x375b9b[_0x3e148c(0x252)]())==null?void 0x0:_0x4c45d8[_0x3e148c(0x313)]())!==_0x25d6d8&&await this['_commandService']['executeCommand'](_0x1dd493['id'],{'unitId':_0x375b9b['getUnitId'](),'subUnitId':_0x25d6d8});}};ae=Ni([K(0x0,At),K(0x1,_0x2079f4),K(0x2,_0x19be55),K(0x3,_0x43af65(_0x38f297)),K(0x4,_0x28004a(_0x4b9815))],ae);var bi=Object[_0x36889e(0x39d)],Ui=(_0xef945a,_0x464b53,_0x3a1c9f,_0x339bcf)=>{const _0x370710=_0x36889e;for(var _0x42f19a=_0x339bcf>0x1?void 0x0:_0x339bcf?bi(_0x464b53,_0x3a1c9f):_0x464b53,_0x3a235f=_0xef945a[_0x370710(0x203)]-0x1,_0x5ee985;_0x3a235f>=0x0;_0x3a235f--)(_0x5ee985=_0xef945a[_0x3a235f])&&(_0x42f19a=_0x5ee985(_0x42f19a)||_0x42f19a);return _0x42f19a;},tt=(_0x39dfc1,_0x484ce8)=>(_0x14c497,_0x19064a)=>_0x484ce8(_0x14c497,_0x19064a,_0x39dfc1);let Ae=class extends _0x90cdab{constructor(_0xf553d3,_0x3c2fde){const _0x507409=_0x36889e;super(),this[_0x507409(0x21e)]=_0xf553d3,this[_0x507409(0x257)]=_0x3c2fde,this['_init']();}[_0x36889e(0x1d4)](){const _0x4021d9=_0x36889e,_0x306231=this;this['disposeWithMe'](this[_0x4021d9(0x21e)][_0x4021d9(0x2f8)]({'onBeforePasteImage':async _0x53cd72=>{const _0x303a94=_0x4021d9,_0x39a325=await _0x306231[_0x303a94(0x257)][_0x303a94(0x1cf)](_0x53cd72);return _0x39a325?{'source':_0x39a325['source'],'imageSourceType':_0x39a325[_0x303a94(0x1c8)]}:null;}}));}};Ae=Ui([tt(0x0,_0x29034e),tt(0x1,_0x2cd590)],Ae);const st=[_0x36889e(0x359),_0x36889e(0x282),'green.600',_0x36889e(0x354),_0x36889e(0x272),'yellow.400'];class je extends _0x2d4248{constructor(){const _0x5c439d=_0x36889e;super(...arguments),l(this,_0x5c439d(0x242),new Map()),l(this,_0x5c439d(0x2b2),0x0);}[_0x36889e(0x20d)](_0x12891c){const _0x3e32ca=_0x36889e;if(this[_0x3e32ca(0x242)][_0x3e32ca(0x3bb)](_0x12891c))return this[_0x3e32ca(0x242)][_0x3e32ca(0x2f9)](_0x12891c);const _0x29dc90=st[this[_0x3e32ca(0x2b2)]];return this[_0x3e32ca(0x2b2)]=(this[_0x3e32ca(0x2b2)]+0x1)%st[_0x3e32ca(0x203)],this[_0x3e32ca(0x242)]['set'](_0x12891c,_0x29dc90),_0x29dc90;}}function Pt(_0x264ae6){const _0x3477c2=_0x36889e;let _0x4d56b0='';for(const _0x3b1600 of _0x264ae6){const {startOffset:_0x5a4110,endOffset:_0x1f041f,isActive:_0x42a992,rangeType:_0x21ce2a,segmentId:_0x1612e4,segmentPage:_0x312e6a}=_0x3b1600;_0x4d56b0[_0x3477c2(0x203)]&&(_0x4d56b0+=','),_0x4d56b0+=_0x5a4110+':'+_0x1f041f+':'+(_0x42a992?'1':'0')+':'+_0x21ce2a+':'+_0x1612e4+':'+_0x312e6a;}return _0x4d56b0;}function Li(_0x4e1c00){const _0x35a704=_0x36889e,_0x1920c3=_0x4e1c00[_0x35a704(0x331)](','),_0xeab53e=[];for(const _0x485cdb of _0x1920c3){const [_0x5d09a5,_0x2e96b0,_0xc1268c,_0x26f0f3,_0x3938b2,_0x12abaa]=_0x485cdb['split'](':');_0xeab53e[_0x35a704(0x36b)]({'startOffset':Number(_0x5d09a5),'endOffset':Number(_0x2e96b0),'collapsed':_0x5d09a5===_0x2e96b0,'isActive':_0xc1268c==='1','rangeType':_0x26f0f3===_0x2573f0[_0x35a704(0x2a2)]?_0x2573f0[_0x35a704(0x2a2)]:_0x2573f0['RECT'],'segmentId':typeof _0x3938b2==_0x35a704(0x3e8)?String(_0x3938b2):'','segmentPage':Number(_0x12abaa!=null?_0x12abaa:-0x1)});}return _0xeab53e[_0x35a704(0x2a3)](_0x2f9d32=>_0x2f9d32[_0x35a704(0x253)])||(_0xeab53e[0x0][_0x35a704(0x253)]=!0x0),_0xeab53e;}class Xe extends _0x90cdab{constructor(){const _0x18885f=_0x36889e;super(...arguments),l(this,_0x18885f(0x3c3),new _0x28744e(null)),l(this,_0x18885f(0x1ef),this[_0x18885f(0x3c3)][_0x18885f(0x33d)]());}['syncEditingCollabCursor'](_0x4e0dfe){const _0x2d5b90=_0x36889e,{unitID:_0x10e2e1,memberID:_0x40322d,textRanges:_0x27f354}=_0x4e0dfe,_0x948ac8=Pt(_0x27f354);if(_0x948ac8==='')return;const _0x354701={'unitID':_0x10e2e1,'memberID':_0x40322d,'selection':_0x948ac8};this['_collabCursorState$'][_0x2d5b90(0x345)](_0x354701);}}var Mi=Object[_0x36889e(0x39d)],Ai=(_0x29cb83,_0x1dd5d8,_0x11f4f6,_0x172570)=>{for(var _0x4efa55=_0x172570>0x1?void 0x0:_0x172570?Mi(_0x1dd5d8,_0x11f4f6):_0x1dd5d8,_0xa43d70=_0x29cb83['length']-0x1,_0x5a40e8;_0xa43d70>=0x0;_0xa43d70--)(_0x5a40e8=_0x29cb83[_0xa43d70])&&(_0x4efa55=_0x5a40e8(_0x4efa55)||_0x4efa55);return _0x4efa55;},A=(_0x18b7bf,_0x76d2a9)=>(_0x240a5b,_0x47614e)=>_0x76d2a9(_0x240a5b,_0x47614e,_0x18b7bf);const Pi=0x12c,wi=0x64;let Pe=class extends _0x90cdab{constructor(_0x2095b1,_0x58bfd1,_0x39c14e,_0x4a42cc,_0x23ae78,_0x392067,_0x506be9,_0x1306fe,_0x58506e){const _0x2926bf=_0x36889e;super(),l(this,'_online',!0x1),l(this,_0x2926bf(0x1d4),!0x1),l(this,'_cursorInfo$',new _0x28744e(new Map())),l(this,_0x2926bf(0x1f6),this[_0x2926bf(0x26f)]['asObservable']()),l(this,'_roomMembers$',new _0x28744e([])),l(this,'roomMembers$',this[_0x2926bf(0x27b)]['pipe'](_0x583a9f(Pi))),l(this,'_updateLocalCursor',_0x4871f3(_0x1980ee=>{const _0x25b2dd=_0x2926bf,_0x4123b4={'eventID':_0x4e265d[_0x25b2dd(0x24e)],'data':{'unitID':this[_0x25b2dd(0x2ba)],'memberID':this[_0x25b2dd(0x39b)][_0x25b2dd(0x330)](),'selection':Pt(_0x1980ee)}};this[_0x25b2dd(0x39b)][_0x25b2dd(0x2e6)](_0x4123b4,this[_0x25b2dd(0x2ba)]);},wi)),(this[_0x2926bf(0x2ba)]=_0x2095b1,this[_0x2926bf(0x39b)]=_0x58bfd1,this['_injector']=_0x39c14e,this[_0x2926bf(0x1e8)]=_0x4a42cc,this[_0x2926bf(0x3b2)]=_0x23ae78,this[_0x2926bf(0x316)]=_0x392067,this[_0x2926bf(0x1c0)]=_0x506be9,this[_0x2926bf(0x1e7)]=_0x1306fe,this[_0x2926bf(0x227)]=_0x58506e);}get[_0x36889e(0x25c)](){const _0x5e9460=_0x36889e;return this[_0x5e9460(0x26f)][_0x5e9460(0x293)]();}get['roomMembers'](){const _0x2786d3=_0x36889e;return this[_0x2786d3(0x27b)]['getValue']();}['dispose'](){const _0x5974c8=_0x36889e;super[_0x5974c8(0x346)](),this[_0x5974c8(0x26f)]['next'](new Map()),this[_0x5974c8(0x26f)][_0x5974c8(0x2c8)](),this[_0x5974c8(0x27b)][_0x5974c8(0x345)]([]),this[_0x5974c8(0x27b)][_0x5974c8(0x2c8)]();}[_0x36889e(0x1f3)](){const _0x4434be=_0x36889e;this[_0x4434be(0x1d4)]||(this['_init']=!0x0,this[_0x4434be(0x39b)][_0x4434be(0x329)][_0x4434be(0x1dd)](_0x2bd178(this[_0x4434be(0x3c5)]))['subscribe'](_0x4cfb57=>{const _0x2abfc3=_0x4434be;_0x4cfb57===_0x2ffc02['ONLINE']?this['_toggleOnline']():this[_0x2abfc3(0x303)]();}),this['_session'][_0x4434be(0x380)][_0x4434be(0x1dd)](_0x2bd178(this[_0x4434be(0x3c5)]))[_0x4434be(0x3d8)](_0x3526f0=>{const _0x5cb070=_0x4434be,_0x3b604c=_0x3526f0[_0x5cb070(0x2c2)];_0x3b604c===_0x4e265d['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x3526f0),_0x3b604c===_0x4e265d[_0x5cb070(0x259)]&&this['_onCursorDelete'](_0x3526f0);}),this[_0x4434be(0x20c)](this[_0x4434be(0x227)][_0x4434be(0x1ff)](_0x49ccae=>{const _0x18bccc=_0x4434be,_0x47667d=_0x49ccae[_0x18bccc(0x2c5)];_0x47667d!=null&&this[_0x18bccc(0x1eb)]&&_0x49ccae['id']===_0x4698b8['id']&&_0x47667d[_0x18bccc(0x360)]===this[_0x18bccc(0x2ba)]&&_0x47667d[_0x18bccc(0x3aa)]===!0x1&&_0x47667d['ranges'][_0x18bccc(0x203)]>0x0&&this[_0x18bccc(0x394)](_0x47667d[_0x18bccc(0x1c1)]);})),this[_0x4434be(0x316)][_0x4434be(0x1ef)][_0x4434be(0x1dd)](_0x2bd178(this[_0x4434be(0x3c5)]))[_0x4434be(0x3d8)](_0x29683a=>{const _0x1e321f=_0x4434be;if((_0x29683a==null?void 0x0:_0x29683a[_0x1e321f(0x2ba)])!==this[_0x1e321f(0x2ba)])return;const _0x52d02e={'eventID':_0x4e265d[_0x1e321f(0x24e)],'data':_0x29683a};this[_0x1e321f(0x2e2)](_0x52d02e);}),this[_0x4434be(0x20c)](this[_0x4434be(0x227)][_0x4434be(0x1ff)](_0x5a77e4=>{const _0xde0f9b=_0x4434be;if(_0x5a77e4[_0xde0f9b(0x2c5)]==null)return;const _0x491d75=_0x5a77e4[_0xde0f9b(0x2c5)];if(_0x5a77e4['id']!==_0x1d7932['id']||_0x491d75[_0xde0f9b(0x360)]!==this[_0xde0f9b(0x2ba)])return;const _0x56d5a0={'id':_0xde0f9b(0x3cb),'params':_0x491d75},_0x477ed9=this['cursorInfo'];for(const [_0x276027,_0x580aeb]of _0x477ed9){const _0x4454c6={'id':_0xde0f9b(0x3cb),'params':{'unitId':this[_0xde0f9b(0x2ba)],'actions':null,'textRanges':_0x580aeb[_0xde0f9b(0x1c1)]}},_0x54c7e5=this[_0xde0f9b(0x1c0)][_0xde0f9b(0x2e9)](_0x56d5a0,_0x4454c6,!0x1);if(_0x3bbf6b(_0x54c7e5))throw _0x54c7e5[_0xde0f9b(0x206)];_0x477ed9[_0xde0f9b(0x2e8)](_0x276027,{..._0x580aeb,'ranges':_0x54c7e5[_0xde0f9b(0x271)][_0xde0f9b(0x2c5)][_0xde0f9b(0x3be)]});}queueMicrotask(()=>{const _0x5b33ab=_0xde0f9b;this[_0x5b33ab(0x26f)][_0x5b33ab(0x345)](_0x477ed9);});})));}[_0x36889e(0x2e2)](_0x1d0693){const _0xe202bc=_0x36889e;var _0x53fd5d,_0x27397f;const {memberID:_0x46d71f,selection:_0x2ec6f6}=_0x1d0693[_0xe202bc(0x232)],_0x387e78=Li(_0x2ec6f6),_0x54c1ee=(_0x27397f=(_0x53fd5d=this[_0xe202bc(0x3b2)][_0xe202bc(0x326)](this[_0xe202bc(0x2ba)],_0x46d71f))==null?void 0x0:_0x53fd5d[_0xe202bc(0x25d)])!=null?_0x27397f:'Unknown\x20user',_0x13d881={'color':this['_colorAssignService'][_0xe202bc(0x20d)](_0x46d71f),'name':_0x54c1ee,'ranges':_0x387e78},_0x25408c=this['cursorInfo'];_0x25408c['set'](_0x46d71f,_0x13d881),this[_0xe202bc(0x26f)][_0xe202bc(0x345)](_0x25408c);}['_onCursorDelete'](_0x1eaa97){const _0x56a7f4=_0x36889e,{memberID:_0x18a929}=_0x1eaa97[_0x56a7f4(0x232)],_0x489609=this['cursorInfo'];_0x489609[_0x56a7f4(0x2c3)](_0x18a929),this[_0x56a7f4(0x26f)][_0x56a7f4(0x345)](_0x489609);}[_0x36889e(0x3d3)](){const _0x515cec=_0x36889e;var _0x16ac9e;if(this[_0x515cec(0x1eb)]=!0x0,((_0x16ac9e=this[_0x515cec(0x1e7)]['getFocusedUnit']())==null?void 0x0:_0x16ac9e[_0x515cec(0x333)]())!==this[_0x515cec(0x2ba)])return;const _0x5d3091=this['_injector']['get'](_0x3ce9f9)[_0x515cec(0x29f)]();Array[_0x515cec(0x3a3)](_0x5d3091)&&_0x5d3091['length']>0x0&&this['_updateLocalCursor'](_0x5d3091);}[_0x36889e(0x303)](){const _0x1ec383=_0x36889e;this[_0x1ec383(0x1eb)]=!0x1;}};Pe=Ai([A(0x2,_0x43af65(_0x5a50a2)),A(0x3,_0x43af65(je)),A(0x4,_0x43af65(_0x32994c)),A(0x5,_0x43af65(Xe)),A(0x6,_0x477b88),A(0x7,_0x11a3cb),A(0x8,_0x19be55)],Pe);var yi=Object[_0x36889e(0x39d)],$i=(_0x56eea1,_0x324031,_0x2057ec,_0x49ed96)=>{for(var _0x5c6591=_0x49ed96>0x1?void 0x0:_0x49ed96?yi(_0x324031,_0x2057ec):_0x324031,_0x28f547=_0x56eea1['length']-0x1,_0x4c8c82;_0x28f547>=0x0;_0x28f547--)(_0x4c8c82=_0x56eea1[_0x28f547])&&(_0x5c6591=_0x4c8c82(_0x5c6591)||_0x5c6591);return _0x5c6591;},B=(_0x33d639,_0x552aee)=>(_0x5394f7,_0x3cbffb)=>_0x552aee(_0x5394f7,_0x3cbffb,_0x33d639);const xi=0x12c,Bi=0x64,Fi=()=>{let _0x51dcfa=[],_0x4dd8b2=!0x1;return _0x3cb806=>{const _0x12400f=_0x4047;_0x51dcfa[_0x12400f(0x36b)](_0x3cb806),_0x4dd8b2||(_0x4dd8b2=!0x0,setTimeout(()=>{const _0x47827f=_0x12400f;_0x51dcfa[_0x47827f(0x385)](_0x30da5c=>_0x30da5c()),_0x51dcfa=[],_0x4dd8b2=!0x1;}));};};let we=class extends _0x90cdab{constructor(_0x5309e2,_0x4bd734,_0xbba977,_0x455b01,_0x46d0a3,_0x353514,_0x3f6da5,_0x3c9bd2){const _0x3d25a5=_0x36889e;super(),l(this,_0x3d25a5(0x1eb),!0x1),l(this,'_init',!0x1),l(this,'_cursorInfo$',new _0x28744e(new Map())),l(this,_0x3d25a5(0x1f6),this[_0x3d25a5(0x26f)][_0x3d25a5(0x33d)]()),l(this,_0x3d25a5(0x27b),new _0x28744e([])),l(this,_0x3d25a5(0x295),this[_0x3d25a5(0x27b)]['pipe'](_0x583a9f(xi))),l(this,_0x3d25a5(0x394),_0x4871f3((_0x50b15d,_0x27a890)=>{const _0x47c72a=_0x3d25a5,_0x356e4f={'eventID':_0x4e265d[_0x47c72a(0x24e)],'data':{'unitID':this[_0x47c72a(0x2ba)],'memberID':this[_0x47c72a(0x39b)][_0x47c72a(0x330)](),'selection':_0x2eec07(_0x50b15d,_0x27a890[_0x47c72a(0x2cd)])}};this['_session'][_0x47c72a(0x2e6)](_0x356e4f,this['unitID']);},Bi)),(this[_0x3d25a5(0x2ba)]=_0x5309e2,this[_0x3d25a5(0x39b)]=_0x4bd734,this[_0x3d25a5(0x1fc)]=_0xbba977,this[_0x3d25a5(0x1e8)]=_0x455b01,this['_memberService']=_0x46d0a3,this[_0x3d25a5(0x1e7)]=_0x353514,this['_commandService']=_0x3f6da5,this[_0x3d25a5(0x2a4)]=_0x3c9bd2);}get['cursorInfo'](){const _0x4473de=_0x36889e;return this[_0x4473de(0x26f)][_0x4473de(0x293)]();}get[_0x36889e(0x1fa)](){const _0x282093=_0x36889e;return this[_0x282093(0x27b)][_0x282093(0x293)]();}[_0x36889e(0x346)](){const _0x13ff84=_0x36889e;super[_0x13ff84(0x346)](),this[_0x13ff84(0x26f)][_0x13ff84(0x345)](new Map()),this[_0x13ff84(0x26f)][_0x13ff84(0x2c8)](),this[_0x13ff84(0x27b)][_0x13ff84(0x345)]([]),this[_0x13ff84(0x27b)][_0x13ff84(0x2c8)]();}['init'](){const _0x32b79c=_0x36889e;this[_0x32b79c(0x1d4)]||(this[_0x32b79c(0x1d4)]=!0x0,this[_0x32b79c(0x39b)][_0x32b79c(0x329)][_0x32b79c(0x1dd)](_0x2bd178(this[_0x32b79c(0x3c5)]))[_0x32b79c(0x3d8)](_0x3b6b0b=>{const _0x58a6f6=_0x32b79c;_0x3b6b0b===_0x2ffc02[_0x58a6f6(0x361)]?this[_0x58a6f6(0x3d3)]():this['_toggleOffline']();}),this[_0x32b79c(0x39b)][_0x32b79c(0x380)]['pipe'](_0x2bd178(this[_0x32b79c(0x3c5)]))[_0x32b79c(0x3d8)](_0x6cef0a=>{const _0x13849b=_0x32b79c,_0x3870f0=_0x6cef0a[_0x13849b(0x2c2)];_0x3870f0===_0x4e265d[_0x13849b(0x24e)]&&this[_0x13849b(0x2e2)](_0x6cef0a),_0x3870f0===_0x4e265d[_0x13849b(0x259)]&&this[_0x13849b(0x26a)](_0x6cef0a);}),this[_0x32b79c(0x3dd)](),this[_0x32b79c(0x20c)](this[_0x32b79c(0x227)][_0x32b79c(0x1ff)](_0x32c16a=>{const _0x56942f=_0x32b79c;if(this['_online']&&_0x32c16a['id']===_0x2f573e['id']&&_0x32c16a[_0x56942f(0x2c5)][_0x56942f(0x360)]===this[_0x56942f(0x2ba)]){const _0x4ec48d=_0x32c16a[_0x56942f(0x2c5)];this[_0x56942f(0x394)](_0x4ec48d[_0x56942f(0x309)],_0x4ec48d[_0x56942f(0x2c6)][0x0]);}})));}[_0x36889e(0x2e2)](_0xc0853a){const _0x5ea551=_0x36889e;var _0x3a94a8,_0x34c246;const {memberID:_0x14ae32,selection:_0x2cd103}=_0xc0853a[_0x5ea551(0x232)],{sheetName:_0x36e80b,range:_0x335282}=_0x28c76e(_0x2cd103),_0x153a26={'name':(_0x34c246=(_0x3a94a8=this['_memberService'][_0x5ea551(0x326)](this[_0x5ea551(0x2ba)],_0x14ae32))==null?void 0x0:_0x3a94a8[_0x5ea551(0x25d)])!=null?_0x34c246:'Unknown\x20user','range':this['_getMergeRange'](_0x36e80b,_0x335282),'sheetID':_0x36e80b,'color':this[_0x5ea551(0x1e8)]['assignAColorForMemberID'](_0x14ae32),'selection':_0x2cd103},_0x247891=this['cursorInfo'];_0x247891[_0x5ea551(0x2e8)](_0x14ae32,_0x153a26),this[_0x5ea551(0x26f)]['next'](_0x247891);}[_0x36889e(0x26a)](_0x91caa4){const _0x57bb02=_0x36889e,{memberID:_0x5d59f7}=_0x91caa4[_0x57bb02(0x232)],_0x576569=this['cursorInfo'];_0x576569[_0x57bb02(0x2c3)](_0x5d59f7),this[_0x57bb02(0x26f)][_0x57bb02(0x345)](_0x576569);}[_0x36889e(0x241)](_0x2d3373,_0xfdc191){const _0x13ab9b=_0x36889e;var _0x36842e,_0x54267a;const _0x5564ba=(_0x54267a=(_0x36842e=this[_0x13ab9b(0x1e7)][_0x13ab9b(0x318)](this[_0x13ab9b(0x2ba)]))==null?void 0x0:_0x36842e['getSheetBySheetId'](_0x2d3373))==null?void 0x0:_0x54267a[_0x13ab9b(0x2f4)]();return(_0x5564ba==null?void 0x0:_0x5564ba[_0x13ab9b(0x3a6)](_0xcb720a=>_0x5d94d0[_0x13ab9b(0x301)](_0xcb720a,_0xfdc191)))||_0xfdc191;}[_0x36889e(0x3dd)](){const _0x40c5b6=_0x36889e,_0x4e262e=new _0x2f030e(),_0x3065c6=Fi(),_0x41019a=()=>{const _0x4ad22e=_0x4047;_0x4e262e[_0x4ad22e(0x346)]();const _0x48afd5=(_0x5a3db8,_0x48b524,_0x36d86e,_0x2f6c81)=>{const _0x50e929=_0x4ad22e;let _0x4b7abd=[];switch(_0x5a3db8['id']){case _0x234e1f[_0x50e929(0x2cf)]:{_0x4b7abd=_0x4d91d0(_0x5a3db8,_0x2f6c81);break;}case _0x234e1f[_0x50e929(0x2b9)]:{_0x4b7abd=_0x4c9890(_0x5a3db8,_0x2f6c81);break;}case _0x234e1f[_0x50e929(0x21f)]:{_0x4b7abd=_0x3e4f4e(_0x5a3db8,_0x2f6c81);break;}case _0x234e1f[_0x50e929(0x2a1)]:{_0x4b7abd=_0x5e27e8(_0x5a3db8,_0x2f6c81);break;}case _0x234e1f[_0x50e929(0x270)]:{_0x4b7abd=_0x22c837(_0x5a3db8,_0x2f6c81);break;}case _0x234e1f[_0x50e929(0x205)]:{_0x4b7abd=_0xc096ee(_0x5a3db8,_0x2f6c81);break;}case _0x234e1f[_0x50e929(0x27e)]:{_0x4b7abd=_0x2b4f10(_0x5a3db8,_0x2f6c81);break;}case _0x234e1f['RemoveColCommandId']:{_0x4b7abd=_0x384cd9(_0x5a3db8,_0x2f6c81);break;}case _0x234e1f[_0x50e929(0x304)]:{_0x4b7abd=_0x2ffcdb(_0x5a3db8,_0x2f6c81);break;}}const _0x20ce6c=_0xb701eb(_0x4b7abd,_0x2f6c81),_0xd34a95=this['cursorInfo']['get'](_0x48b524);if(_0xd34a95&&_0x20ce6c){const _0x922fba={..._0xd34a95,'range':_0x20ce6c};this['cursorInfo'][_0x50e929(0x2e8)](_0x48b524,_0x922fba),_0x3065c6(()=>{const _0x575875=_0x50e929,_0x499a2e=this[_0x575875(0x2a4)][_0x575875(0x3d6)](_0x20ce6c,_0xe1774d=>(_0x499a2e[_0x575875(0x346)](),_0x48afd5(_0xe1774d,_0x48b524,_0x36d86e,_0x20ce6c)));_0x4e262e['add'](_0x499a2e);});}return{'redos':[],'undos':[]};};this[_0x4ad22e(0x25c)][_0x4ad22e(0x385)]((_0x3607a8,_0x5ed24f)=>{const _0x5e06a9=_0x4ad22e,{range:_0x5849be,sheetID:_0xe7389c}=_0x3607a8,_0x1c5360=this[_0x5e06a9(0x2a4)][_0x5e06a9(0x3d6)](_0x5849be,_0x45c637=>(_0x1c5360['dispose'](),_0x48afd5(_0x45c637,_0x5ed24f,_0xe7389c,_0x5849be)));_0x4e262e[_0x5e06a9(0x230)](_0x1c5360);});};this[_0x40c5b6(0x20c)](_0x587d38(this['_cursorInfo$'][_0x40c5b6(0x3d8)](()=>{_0x41019a();})));}[_0x36889e(0x3d3)](){const _0x421d1a=_0x36889e;var _0x45ebae,_0x17a414;if(this[_0x421d1a(0x1eb)]=!0x0,((_0x45ebae=this[_0x421d1a(0x1e7)]['getFocusedUnit']())==null?void 0x0:_0x45ebae[_0x421d1a(0x333)]())!==this['unitID'])return;const _0x585329=(_0x17a414=this[_0x421d1a(0x1fc)][_0x421d1a(0x2f9)](_0x5ac9d1)[_0x421d1a(0x247)]())==null?void 0x0:_0x17a414[0x0],_0x46858c=this['_univerInstanceService'][_0x421d1a(0x217)](_0xeb1790['UNIVER_SHEET'])[_0x421d1a(0x252)]();_0x585329&&_0x46858c&&this['_updateLocalCursor'](_0x46858c[_0x421d1a(0x313)](),_0x585329);}[_0x36889e(0x303)](){this['_online']=!0x1;}};we=$i([B(0x2,_0x43af65(_0x5a50a2)),B(0x3,_0x43af65(je)),B(0x4,_0x43af65(_0x32994c)),B(0x5,_0x11a3cb),B(0x6,_0x19be55),B(0x7,_0x43af65(_0x560d59))],we);var ki=Object[_0x36889e(0x39d)],Hi=(_0x234e43,_0x5012ed,_0x576fe4,_0x4e05ba)=>{const _0x292d0a=_0x36889e;for(var _0x10a776=_0x4e05ba>0x1?void 0x0:_0x4e05ba?ki(_0x5012ed,_0x576fe4):_0x5012ed,_0x628ba6=_0x234e43[_0x292d0a(0x203)]-0x1,_0x4c1c30;_0x628ba6>=0x0;_0x628ba6--)(_0x4c1c30=_0x234e43[_0x628ba6])&&(_0x10a776=_0x4c1c30(_0x10a776)||_0x10a776);return _0x10a776;},Ee=(_0x165d6a,_0x43a872)=>(_0xe0f028,_0x4e98ed)=>_0x43a872(_0xe0f028,_0x4e98ed,_0x165d6a);let H=class extends _0x90cdab{constructor(_0x470b6b,_0x12de3e,_0x3d6e1f){const _0x21351c=_0x36889e;super(),l(this,_0x21351c(0x327),new Map()),l(this,_0x21351c(0x3db),new _0x205b15()),(this[_0x21351c(0x1e7)]=_0x470b6b,this[_0x21351c(0x1fc)]=_0x12de3e,this[_0x21351c(0x1f8)]=_0x3d6e1f,this[_0x21351c(0x1d4)]());}['dispose'](){const _0xa26c8f=_0x36889e;super[_0xa26c8f(0x346)](),this[_0xa26c8f(0x3db)]['complete'](),this['_entities']['forEach'](_0x236e9d=>_0x236e9d['dispose']());}[_0x36889e(0x36f)](_0x25580a){const _0x24180f=_0x36889e;return this[_0x24180f(0x327)][_0x24180f(0x3bb)](_0x25580a)?this[_0x24180f(0x327)][_0x24180f(0x2f9)](_0x25580a)[_0x24180f(0x1f6)]:this['_entityInit$']['pipe'](_0x8fee6d(_0x405062=>_0x405062[_0x24180f(0x2ba)]===_0x25580a),_0x4c5e7c(_0x3ae2c2=>_0x3ae2c2['cursorInfo$']));}[_0x36889e(0x1d4)](){const _0x23e607=_0x36889e;this[_0x23e607(0x1e7)][_0x23e607(0x1c6)](_0xeb1790['UNIVER_SHEET'])['pipe'](_0x2bd178(this[_0x23e607(0x3c5)]))[_0x23e607(0x3d8)](async _0x5565b4=>{const _0x135617=_0x23e607,_0x3a8f27=_0x5565b4['getUnitId'](),_0x5ab254=await this[_0x135617(0x2e7)](_0x3a8f27);this['_entityInit$'][_0x135617(0x345)](_0x5ab254),this[_0x135617(0x327)][_0x135617(0x2e8)](_0x3a8f27,_0x5ab254);}),this[_0x23e607(0x1e7)][_0x23e607(0x1c6)](_0xeb1790[_0x23e607(0x289)])[_0x23e607(0x1dd)](_0x2bd178(this[_0x23e607(0x3c5)]))[_0x23e607(0x1dd)](_0x8fee6d(_0xbaebcb=>!_0xbaebcb['getUnitId']()[_0x23e607(0x27a)]('__')))[_0x23e607(0x3d8)](async _0x9634cd=>{const _0x23ccdd=_0x23e607,_0x24c51f=_0x9634cd[_0x23ccdd(0x333)](),_0x1644a4=await this[_0x23ccdd(0x2d3)](_0x24c51f);this['_entityInit$'][_0x23ccdd(0x345)](_0x1644a4),this['_entities'][_0x23ccdd(0x2e8)](_0x24c51f,_0x1644a4);}),_0x530f38(this[_0x23e607(0x1e7)]['getTypeOfUnitDisposed$'](_0xeb1790['UNIVER_DOC']),this[_0x23e607(0x1e7)]['getTypeOfUnitDisposed$'](_0xeb1790[_0x23e607(0x2c7)]))[_0x23e607(0x1dd)](_0x2bd178(this[_0x23e607(0x3c5)]))[_0x23e607(0x3d8)](_0x35771c=>{const _0xe110a0=_0x23e607,_0x505edd=_0x35771c[_0xe110a0(0x333)](),_0x29ec5c=this['_entities']['get'](_0x505edd);_0x29ec5c&&(_0x29ec5c['dispose'](),this[_0xe110a0(0x327)][_0xe110a0(0x2c3)](_0x505edd));});}async[_0x36889e(0x2e7)](_0xdbe3a1){const _0x556ee=_0x36889e,_0x3359c2=await this['_collabSessionService'][_0x556ee(0x3b6)](_0xdbe3a1),_0x340150=this[_0x556ee(0x1fc)][_0x556ee(0x32b)](we,_0xdbe3a1,_0x3359c2);return _0x340150['init'](),_0x340150;}async[_0x36889e(0x2d3)](_0x1366fc){const _0x1ea3ec=_0x36889e,_0x1f4518=await this[_0x1ea3ec(0x1f8)]['requireSession'](_0x1366fc),_0x3a261b=this[_0x1ea3ec(0x1fc)][_0x1ea3ec(0x32b)](Pe,_0x1366fc,_0x1f4518);return _0x3a261b['init'](),_0x3a261b;}};H=Hi([Ee(0x0,_0x11a3cb),Ee(0x1,_0x43af65(_0x5a50a2)),Ee(0x2,_0x43af65(_0x3486ae))],H);const Q=0x14,it=0xc8,pe=0x4,Yi=0x5;function Wi(_0x54187f,_0x59507f){const _0x21aa64=_0x36889e;let {radius:_0x1117aa,width:_0x438fd7,height:_0x43f9dd}=_0x59507f;_0x1117aa=_0x1117aa!=null?_0x1117aa:0x0,_0x438fd7=_0x438fd7!=null?_0x438fd7:0x1e,_0x43f9dd=_0x43f9dd!=null?_0x43f9dd:0x1e;let _0x65edd1=0x0,_0x58b27f=0x0,_0x44c12b=0x0;_0x65edd1=_0x58b27f=_0x44c12b=Math[_0x21aa64(0x1f4)](_0x1117aa,_0x438fd7/0x2,_0x43f9dd/0x2),_0x54187f['beginPath'](),_0x54187f['moveTo'](_0x65edd1,0x0),_0x54187f['lineTo'](_0x438fd7-_0x58b27f,0x0),_0x54187f[_0x21aa64(0x1ec)](_0x438fd7-_0x58b27f,_0x58b27f,_0x58b27f,Math['PI']*0x3/0x2,0x0,!0x1),_0x54187f[_0x21aa64(0x2cc)](_0x438fd7,_0x43f9dd-_0x44c12b),_0x54187f[_0x21aa64(0x1ec)](_0x438fd7-_0x44c12b,_0x43f9dd-_0x44c12b,_0x44c12b,0x0,Math['PI']/0x2,!0x1),_0x54187f['lineTo'](0x0,_0x43f9dd),_0x54187f[_0x21aa64(0x2cc)](0x0,_0x65edd1),_0x54187f[_0x21aa64(0x1ec)](_0x65edd1,_0x65edd1,_0x65edd1,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x54187f[_0x21aa64(0x2c4)](),_0x59507f['fill']&&(_0x54187f[_0x21aa64(0x1db)](),_0x54187f[_0x21aa64(0x298)]=_0x59507f[_0x21aa64(0x211)],_0x59507f[_0x21aa64(0x343)]===_0x21aa64(0x226)?_0x54187f['fill'](_0x21aa64(0x226)):_0x54187f[_0x21aa64(0x211)](),_0x54187f[_0x21aa64(0x27c)]());}class me extends _0x312cc4{constructor(_0x594910,_0x56e3bb){const _0x1be460=_0x36889e;super(_0x594910,_0x56e3bb),l(this,'color'),l(this,_0x1be460(0x3b9)),(this[_0x1be460(0x2a8)]=_0x56e3bb==null?void 0x0:_0x56e3bb[_0x1be460(0x2a8)],this['text']=_0x56e3bb==null?void 0x0:_0x56e3bb[_0x1be460(0x3b9)]);}static['drawWith'](_0x21e1a4,_0x4103cd){const _0x4ff8e0=_0x36889e,{text:_0x35edf3,color:_0x4bb6db}=_0x4103cd;_0x21e1a4[_0x4ff8e0(0x1db)](),_0x21e1a4[_0x4ff8e0(0x3ac)]=_0x4ff8e0(0x352);const _0x1a4377=_0x21e1a4[_0x4ff8e0(0x2dd)](_0x35edf3)[_0x4ff8e0(0x251)],_0x42b7a3=Math[_0x4ff8e0(0x1f4)](_0x1a4377+0x2*pe,it);Wi(_0x21e1a4,{'height':Q,'radius':0x4,'width':_0x42b7a3,'fill':_0x4bb6db}),_0x21e1a4[_0x4ff8e0(0x298)]=_0x4ff8e0(0x306);const _0x4e6946=pe,_0x4b1dfa=Q-Yi,_0x2a914c=it-0x2*pe;if(_0x1a4377>_0x2a914c){let _0x53d6be='',_0x408f08=0x0;for(const _0x30837e of _0x35edf3){const _0x5f1e97=_0x21e1a4[_0x4ff8e0(0x2dd)](_0x30837e)[_0x4ff8e0(0x251)];if(_0x408f08+_0x5f1e97<=_0x2a914c-_0x21e1a4[_0x4ff8e0(0x2dd)](_0x4ff8e0(0x258))['width'])_0x53d6be+=_0x30837e,_0x408f08+=_0x5f1e97;else{_0x53d6be+=_0x4ff8e0(0x258);break;}}_0x21e1a4[_0x4ff8e0(0x348)](_0x53d6be,_0x4e6946,_0x4b1dfa);}else _0x21e1a4[_0x4ff8e0(0x348)](_0x35edf3,_0x4e6946,_0x4b1dfa);_0x21e1a4['restore']();}[_0x36889e(0x2ac)](_0x2cfd06){const _0x926cbe=_0x36889e;me[_0x926cbe(0x369)](_0x2cfd06,this);}}function _0x4047(_0x2bc054,_0x3ade9c){const _0x4b6c73=_0x4b6c();return _0x4047=function(_0x4047cb,_0x5a97a8){_0x4047cb=_0x4047cb-0x1ba;let _0x41901a=_0x4b6c73[_0x4047cb];return _0x41901a;},_0x4047(_0x2bc054,_0x3ade9c);}const Oe=_0x36889e(0x3c2),Vi='collab-text-range-',ji=_0x36889e(0x1fd),z=0x6,Xi=1.5,Te=0x4,Gi=1.5,Ki=_0x36889e(0x32a);class nt{constructor(_0x5b4771,_0x2b071f,_0x1e4c39,_0x239e0d){const _0x41c30f=_0x36889e;l(this,'_shapes',[]),l(this,_0x41c30f(0x21b),null),l(this,'_textBubble',null),l(this,'_anchorDot',null),l(this,_0x41c30f(0x355),null),l(this,_0x41c30f(0x3ca),null),(this[_0x41c30f(0x3e7)]=_0x5b4771,this[_0x41c30f(0x24d)]=_0x2b071f,this[_0x41c30f(0x32c)]=_0x1e4c39,this['_document']=_0x239e0d,this['_render']());}set[_0x36889e(0x278)](_0x3a0e90){const _0x310af6=_0x36889e;_0x3a0e90?(this[_0x310af6(0x372)]&&this[_0x310af6(0x372)][_0x310af6(0x3bd)](),this[_0x310af6(0x24c)]&&this['_textBubble']['show']()):(this[_0x310af6(0x372)]&&this[_0x310af6(0x372)][_0x310af6(0x1cb)](),this[_0x310af6(0x24c)]&&this['_textBubble']['hide']());}[_0x36889e(0x346)](){const _0x52168d=_0x36889e;for(const _0xd4154b of this[_0x52168d(0x2de)])_0xd4154b['dispose']();this['_textBubble']&&this['_textBubble'][_0x52168d(0x346)](),this[_0x52168d(0x372)]&&this[_0x52168d(0x372)]['dispose'](),this[_0x52168d(0x21b)]&&this[_0x52168d(0x21b)][_0x52168d(0x346)](),this['_eventUnsubscribe']&&this[_0x52168d(0x3ca)]();}[_0x36889e(0x296)](){const _0x2a3731=_0x36889e;var _0x5661e3;const {_docSkeleton:_0x12b6bc,_document:_0x46ede0}=this,{color:_0x17d693,name:_0x3e9dc7,ranges:_0x179eee}=this[_0x2a3731(0x3e7)],_0x30dbdf=_0x46ede0[_0x2a3731(0x376)](),{docsLeft:_0x5d9a24,docsTop:_0x16a0dc}=_0x30dbdf,_0x573570=new _0x49d201(_0x30dbdf,_0x12b6bc);for(const {startOffset:_0x3c9e02,endOffset:_0x5cacd3,rangeType:_0x5bd37a,segmentId:_0x2c4719,segmentPage:_0x1ded7b,collapsed:_0x3dc12c,isActive:_0x174f61}of _0x179eee){const _0x1ccf7d=_0x12b6bc['findNodePositionByCharIndex'](_0x3c9e02,!0x0,_0x2c4719,_0x1ded7b);let _0x4027ca=_0x12b6bc[_0x2a3731(0x235)](_0x5cacd3,!0x0,_0x2c4719,_0x1ded7b);if(_0x4027ca==null&&(_0x4027ca=_0x12b6bc[_0x2a3731(0x235)](_0x5cacd3-0x1,!0x1,_0x2c4719,_0x1ded7b)),_0x174f61){const {contentBoxPointGroup:_0x51e70c}=_0x573570[_0x2a3731(0x2dc)](_0x4027ca,_0x4027ca);if(_0x51e70c['length']===0x0)continue;this[_0x2a3731(0x3e4)](_0x17d693,_0x51e70c,_0x5d9a24,_0x16a0dc,_0x3e9dc7),this['_eventUnsubscribe']=this[_0x2a3731(0x2f0)]();}if(_0x1ccf7d&&_0x4027ca){if(_0x5bd37a===_0x2573f0[_0x2a3731(0x233)]){const _0x2dd116=new _0x139ac7(_0x30dbdf,_0x12b6bc),{pointGroup:_0x42dca1}=(_0x5661e3=_0x2dd116[_0x2a3731(0x2dc)](_0x1ccf7d,_0x4027ca))!=null?_0x5661e3:{};if(_0x42dca1==null||_0x42dca1[_0x2a3731(0x203)]===0x0)continue;this[_0x2a3731(0x277)](_0x17d693,_0x42dca1,_0x5d9a24,_0x16a0dc);}else{if(!_0x3dc12c){const {borderBoxPointGroup:_0x881d5d}=_0x573570[_0x2a3731(0x2dc)](_0x1ccf7d,_0x4027ca);if(_0x881d5d[_0x2a3731(0x203)]===0x0)continue;this[_0x2a3731(0x28d)](_0x17d693,_0x881d5d,_0x5d9a24,_0x16a0dc);}}}}}[_0x36889e(0x3e4)](_0x1160e2,_0x47c396,_0x32d963,_0x5967e9,_0x520362){const _0x25cf58=_0x36889e,_0x1acd34=this[_0x25cf58(0x365)](_0x47c396),{left:_0x411479,top:_0x19c931,height:_0x17b2d8}=_0x1acd34,_0x577f8d=this[_0x25cf58(0x38f)](),_0x9af04f=Gi/_0x577f8d,_0x45f63b=new _0x2af27a(Oe+_0x106418(z),{'left':_0x411479+_0x32d963-_0x9af04f,'top':_0x19c931+_0x5967e9,'height':_0x17b2d8,'width':Xi,'fill':_0x1160e2||_0x2219c7(_0x31b33e[_0x25cf58(0x23f)],0x0),'strokeWidth':_0x9af04f,'stroke':Ki,'evented':!0x0});this[_0x25cf58(0x21b)]=_0x45f63b,this['_scene'][_0x25cf58(0x1ce)](_0x45f63b,_0x395529);const _0x3923db=new _0x2af27a(Oe+_0x106418(z),{'left':_0x411479+_0x32d963-_0x9af04f,'top':_0x19c931+_0x5967e9-Te/0x2,'height':Te,'width':Te,'fill':_0x1160e2||_0x2219c7(_0x31b33e['black'],0x0),'strokeWidth':0x0,'stroke':_0x1160e2||_0x2219c7(_0x31b33e[_0x25cf58(0x23f)],0x0),'evented':!0x1});this[_0x25cf58(0x372)]=_0x3923db,this[_0x25cf58(0x24d)][_0x25cf58(0x1ce)](_0x3923db,_0x395529);const _0x5d2acf=new me(Oe+_0x106418(z),{'left':_0x411479+_0x32d963-_0x9af04f,'top':_0x19c931+_0x5967e9-Q,'text':_0x520362,'color':_0x1160e2});this[_0x25cf58(0x24c)]=_0x5d2acf,this[_0x25cf58(0x24d)]['addObject'](_0x5d2acf,_0x395529),this['_hover']=!0x1;}[_0x36889e(0x2f0)](){const _0x831392=_0x36889e,_0x38fc71=this[_0x831392(0x21b)][_0x831392(0x28e)][_0x831392(0x323)](()=>{const _0x2762c4=_0x831392;this[_0x2762c4(0x278)]=!0x0;}),_0x12f687=this[_0x831392(0x21b)][_0x831392(0x320)][_0x831392(0x323)](()=>{const _0x4dc58d=_0x831392;this[_0x4dc58d(0x355)]&&clearTimeout(this[_0x4dc58d(0x355)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x1249c2=_0x831392;_0x38fc71[_0x1249c2(0x334)](),_0x12f687[_0x1249c2(0x334)]();};}['_drawTextRange'](_0x44c4c7,_0x1d15e4,_0x250eee,_0x108c4a){const _0x57d48d=_0x36889e,_0x24c3aa=new _0x262d06(_0x44c4c7)['setAlpha'](0.2)['toRgbString'](),_0x2c5c25=new _0x3e88a2(Vi+_0x106418(z),{'pointsGroup':_0x1d15e4,'fill':_0x24c3aa||_0x2219c7(_0x31b33e[_0x57d48d(0x23f)],0.2),'left':_0x250eee,'top':_0x108c4a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x57d48d(0x2de)][_0x57d48d(0x36b)](_0x2c5c25),this[_0x57d48d(0x24d)][_0x57d48d(0x1ce)](_0x2c5c25,_0x395529);}['_drawRectRange'](_0x7dbe86,_0x4166b5,_0x560089,_0x1900a4){const _0x3dfaa4=_0x36889e,_0x2ef9a3=new _0x262d06(_0x7dbe86)[_0x3dfaa4(0x341)](0.2)[_0x3dfaa4(0x2df)](),_0xbd0ec=new _0x3e88a2(ji+_0x106418(z),{'pointsGroup':_0x4166b5,'fill':_0x2ef9a3||_0x2219c7(_0x31b33e[_0x3dfaa4(0x23f)],0.2),'left':_0x560089,'top':_0x1900a4,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0xbd0ec),this[_0x3dfaa4(0x24d)][_0x3dfaa4(0x1ce)](_0xbd0ec,_0x395529);}['_getAnchorBounding'](_0x25e04e){const _0x56d8f4=_0x25e04e[0x0],_0x1fee6f=_0x56d8f4[0x0],_0x34d125=_0x56d8f4[0x2],{x:_0xa4f2ec,y:_0x9282d9}=_0x1fee6f,{x:_0xbbc1bb,y:_0x24ec8b}=_0x34d125;return{'left':_0xa4f2ec,'top':_0x9282d9,'width':_0xbbc1bb-_0xa4f2ec,'height':_0x24ec8b-_0x9282d9};}[_0x36889e(0x38f)](){const _0x47280b=_0x36889e,{scaleX:_0x341fb4,scaleY:_0x2220a1}=this[_0x47280b(0x24d)][_0x47280b(0x388)]();return Math[_0x47280b(0x3c1)](_0x341fb4,_0x2220a1);}}var zi=Object[_0x36889e(0x39d)],Ji=(_0x3a78cd,_0x1dacbc,_0x36c36e,_0x5cf824)=>{const _0x445621=_0x36889e;for(var _0x221c1d=_0x5cf824>0x1?void 0x0:_0x5cf824?zi(_0x1dacbc,_0x36c36e):_0x1dacbc,_0xddd8a8=_0x3a78cd[_0x445621(0x203)]-0x1,_0x272c62;_0xddd8a8>=0x0;_0xddd8a8--)(_0x272c62=_0x3a78cd[_0xddd8a8])&&(_0x221c1d=_0x272c62(_0x221c1d)||_0x221c1d);return _0x221c1d;},ie=(_0xb0bbe5,_0x22c449)=>(_0x48f4a1,_0x4027fd)=>_0x22c449(_0x48f4a1,_0x4027fd,_0xb0bbe5);let ye=class extends _0x90cdab{constructor(_0x4b8ea4,_0x45e57b,_0x59a02a,_0x380914,_0x21f012){const _0x3d9f4c=_0x36889e;super(),l(this,_0x3d9f4c(0x21a),[]),l(this,_0x3d9f4c(0x349),[]),(this[_0x3d9f4c(0x32d)]=_0x4b8ea4,this[_0x3d9f4c(0x1c9)]=_0x45e57b,this[_0x3d9f4c(0x3ab)]=_0x59a02a,this[_0x3d9f4c(0x227)]=_0x380914,this[_0x3d9f4c(0x3e2)]=_0x21f012,this[_0x3d9f4c(0x1d4)]());}[_0x36889e(0x1d4)](){const _0x2ebadd=_0x36889e,_0x1d23a4=this[_0x2ebadd(0x32d)][_0x2ebadd(0x360)],_0x333d7f=this['_docSkeletonManagerService'];this[_0x2ebadd(0x20c)](_0x6612f1([this[_0x2ebadd(0x3ab)][_0x2ebadd(0x36f)](_0x1d23a4),this[_0x2ebadd(0x3e2)][_0x2ebadd(0x368)]])[_0x2ebadd(0x1dd)](_0x489674(([_0x439c30,_0xf95fd])=>({'skeleton':_0x333d7f[_0x2ebadd(0x3a5)](),'cursors':[..._0x439c30[_0x2ebadd(0x364)]()][_0x2ebadd(0x22b)](_0x11bf14=>({..._0x11bf14,'color':this[_0x2ebadd(0x3e2)][_0x2ebadd(0x220)](_0x11bf14[_0x2ebadd(0x2a8)])}))})))[_0x2ebadd(0x3d8)](_0xe31b72=>{const _0x3da0f9=_0x2ebadd;if(this[_0x3da0f9(0x3e5)](),_0xe31b72){const {skeleton:_0x525e10,cursors:_0x813d7}=_0xe31b72;this[_0x3da0f9(0x332)](_0x525e10,_0x813d7);}})),this[_0x2ebadd(0x36c)](),this[_0x2ebadd(0x287)]();}['_updateCollabCursors'](_0xc50768,_0x21cabd){const _0x478c2b=_0x36889e,{scene:_0x5d18bf,mainComponent:_0x3486a6}=this[_0x478c2b(0x32d)],_0x52366c=_0x21cabd[_0x478c2b(0x35b)](_0x40265b=>new nt(_0x40265b,_0x5d18bf,_0xc50768,_0x3486a6));this['_cursorShapes']=_0x52366c,this['_cursors']=_0x21cabd;}[_0x36889e(0x1ca)](){const _0x3c0597=_0x36889e;this['_removeCollabCursors']();const {scene:_0x504980,mainComponent:_0x8c18e7}=this[_0x3c0597(0x32d)],_0x21222e=this[_0x3c0597(0x1c9)]['getSkeleton'](),_0x321373=this[_0x3c0597(0x349)][_0x3c0597(0x35b)](_0x3854de=>new nt(_0x3854de,_0x504980,_0x21222e,_0x8c18e7));this[_0x3c0597(0x21a)]=_0x321373;}[_0x36889e(0x3e5)](){const _0x358036=_0x36889e;this[_0x358036(0x21a)][_0x358036(0x385)](_0x12d95a=>_0x12d95a[_0x358036(0x346)]()),this[_0x358036(0x21a)]=[];}['_initCommandExecutedListener'](){const _0x40405b=_0x36889e,_0x191d5d=[_0x1339b0['id']];this[_0x40405b(0x20c)](this[_0x40405b(0x227)][_0x40405b(0x1ff)](_0x5b9d7f=>{const _0x2e97ed=_0x40405b;_0x191d5d['includes'](_0x5b9d7f['id'])&&_0x5b9d7f['params'][_0x2e97ed(0x360)]===this[_0x2e97ed(0x32d)][_0x2e97ed(0x360)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x826b32=_0x36889e;this[_0x826b32(0x20c)](_0x451a33(this[_0x826b32(0x32d)][_0x826b32(0x33c)][_0x826b32(0x1dc)])[_0x826b32(0x1dd)](_0x18d9de(_0xddb617=>_0xddb617[_0x826b32(0x212)]===_0x59f112['resize']),_0x55544b(0x10))[_0x826b32(0x3d8)](()=>{const _0x2cc036=_0x826b32;this[_0x2cc036(0x1ca)]();}));}};ye=Ji([ie(0x1,_0x43af65(_0x13e635)),ie(0x2,_0x43af65(H)),ie(0x3,_0x19be55),ie(0x4,_0x43af65(_0x291287))],ye);const Zi=0x1,Qi=1.5;class qi extends _0x312cc4{constructor(_0x8287a4,_0x31290c){const _0x3c5f0f=_0x36889e;super(_0x8287a4,_0x31290c),l(this,_0x3c5f0f(0x37b)),l(this,_0x3c5f0f(0x221),!0x1),l(this,'_range'),l(this,_0x3c5f0f(0x288),''),l(this,_0x3c5f0f(0x337),_0x3c5f0f(0x223)),l(this,'_backgroundColor'),(_0x31290c&&this[_0x3c5f0f(0x2f5)](_0x31290c),this['onPointerEnter$'][_0x3c5f0f(0x323)](()=>this[_0x3c5f0f(0x2f5)]({'hovered':!0x0})),this[_0x3c5f0f(0x320)][_0x3c5f0f(0x323)](()=>this[_0x3c5f0f(0x2f5)]({'hovered':!0x1})));}['setShapeProps'](_0x24ec2a){const _0x58f783=_0x36889e;var _0x109ff7,_0x2ccf86,_0x45715e,_0xb6c330,_0x23f1a7,_0x284d97;this['_color']=(_0x109ff7=_0x24ec2a[_0x58f783(0x2a8)])!=null?_0x109ff7:this[_0x58f783(0x37b)],this[_0x58f783(0x221)]=(_0x2ccf86=_0x24ec2a[_0x58f783(0x35d)])!=null?_0x2ccf86:this['_hovered'],this[_0x58f783(0x2fd)]=(_0x45715e=_0x24ec2a['range'])!=null?_0x45715e:this[_0x58f783(0x2fd)],this[_0x58f783(0x288)]=(_0xb6c330=_0x24ec2a[_0x58f783(0x25d)])!=null?_0xb6c330:this[_0x58f783(0x288)],this[_0x58f783(0x337)]=(_0x23f1a7=_0x24ec2a['labelPosition'])!=null?_0x23f1a7:this[_0x58f783(0x337)],this[_0x58f783(0x371)]=(_0x284d97=_0x24ec2a[_0x58f783(0x31a)])!=null?_0x284d97:this['_backgroundColor'],this[_0x58f783(0x396)]({'width':_0x24ec2a[_0x58f783(0x251)],'height':_0x24ec2a['height']});}['onMouseMove'](_0x4b3227){const _0x38ac87=_0x36889e,{row:_0x196c49,column:_0x54d738}=_0x4b3227;if(_0x196c49>=this[_0x38ac87(0x2fd)]['startRow']&&_0x196c49<=this[_0x38ac87(0x2fd)][_0x38ac87(0x263)]&&_0x54d738>=this[_0x38ac87(0x2fd)][_0x38ac87(0x246)]&&_0x54d738<=this[_0x38ac87(0x2fd)][_0x38ac87(0x3c7)]){this[_0x38ac87(0x2f5)]({'hovered':!0x0});return;}this[_0x38ac87(0x2f5)]({'hovered':!0x1});}['triggerDblclick'](_0xd54d7e){return!0x1;}[_0x36889e(0x2ac)](_0x21ab65){const _0x260e20=_0x36889e;_0x2af27a[_0x260e20(0x369)](_0x21ab65,{'width':this['width'],'height':this['height'],'strokeWidth':Qi,'stroke':this[_0x260e20(0x37b)],'evented':!0x1,'fill':this[_0x260e20(0x371)]}),this[_0x260e20(0x221)]&&(_0x21ab65[_0x260e20(0x1db)](),_0x21ab65[_0x260e20(0x342)](0x1,0x0,0x0,0x1,this[_0x260e20(0x251)],this['_labelPosition']===_0x260e20(0x1df)?0x0:-Q),me[_0x260e20(0x369)](_0x21ab65,{'text':this[_0x260e20(0x288)],'color':this[_0x260e20(0x37b)]}),_0x21ab65[_0x260e20(0x27c)]());}}var en=Object[_0x36889e(0x39d)],tn=(_0x11dede,_0x31bbeb,_0x1b8cf0,_0x1852ee)=>{const _0x112509=_0x36889e;for(var _0x442481=_0x1852ee>0x1?void 0x0:_0x1852ee?en(_0x31bbeb,_0x1b8cf0):_0x31bbeb,_0x502ff8=_0x11dede[_0x112509(0x203)]-0x1,_0x4e2e50;_0x502ff8>=0x0;_0x502ff8--)(_0x4e2e50=_0x11dede[_0x502ff8])&&(_0x442481=_0x4e2e50(_0x442481)||_0x442481);return _0x442481;},Ce=(_0x3bba31,_0x4e9bc7)=>(_0x5dc0aa,_0x477701)=>_0x4e9bc7(_0x5dc0aa,_0x477701,_0x3bba31);const sn=0x1389;let $e=class extends _0x90cdab{constructor(_0x27efae,_0x41479c,_0x453953,_0x2a6da9){const _0x46ff0e=_0x36889e;super(),l(this,_0x46ff0e(0x349),new Set()),l(this,_0x46ff0e(0x384),null),(this['_context']=_0x27efae,this[_0x46ff0e(0x389)]=_0x41479c,this['_collabCursorController']=_0x453953,this[_0x46ff0e(0x3e2)]=_0x2a6da9,this[_0x46ff0e(0x1d4)]());}[_0x36889e(0x1d4)](){const _0x47c699=_0x36889e;this[_0x47c699(0x389)][_0x47c699(0x1f2)][_0x47c699(0x1dd)](_0x3ac2d0(this['dispose$']),_0x28acc3(_0x7d156b=>{const _0x1f7e36=_0x47c699;if(_0x7d156b){const _0x373403=_0x7d156b[_0x1f7e36(0x34d)];return _0x6612f1(this['_collabCursorController'][_0x1f7e36(0x36f)](this[_0x1f7e36(0x32d)]['unitId']),this[_0x1f7e36(0x3e2)][_0x1f7e36(0x368)])[_0x1f7e36(0x1dd)](_0x489674(([_0x43638f,_0x3380ba])=>{const _0x59c06d=_0x1f7e36,_0x412e6c=new Map();return _0x43638f[_0x59c06d(0x385)]((_0x4decfe,_0x5a8ea4)=>{const _0x518992=_0x59c06d;if(_0x4decfe[_0x518992(0x387)]===_0x373403){const _0x3a5a8c={..._0x4decfe};_0x3a5a8c['color']=this[_0x518992(0x3e2)][_0x518992(0x220)](_0x4decfe[_0x518992(0x2a8)]),_0x412e6c[_0x518992(0x2e8)](_0x5a8ea4,_0x3a5a8c);}}),{'skeleton':_0x7d156b,'cursors':_0x412e6c};}));}return _0x15bfd3({'skeleton':null,'cursors':new Map()});}))[_0x47c699(0x3d8)](({skeleton:_0x3d38e4,cursors:_0x3039f7})=>{const _0x18d1d4=_0x47c699;this[_0x18d1d4(0x3e5)](),_0x3d38e4&&this[_0x18d1d4(0x332)](_0x3d38e4,_0x3039f7);}),this[_0x47c699(0x389)][_0x47c699(0x1f2)][_0x47c699(0x3d8)](_0x278020=>{const _0x1d7f3c=_0x47c699;if(_0x278020==null)return;const {skeleton:_0x41c43c}=_0x278020,{scene:_0x2668fb}=this[_0x1d7f3c(0x32d)];_0x2668fb[_0x1d7f3c(0x20a)][_0x1d7f3c(0x323)](_0x4871f3(_0x11e564=>{const _0x5b6455=_0x1d7f3c;var _0x293eea,_0x4f4208;const {offsetX:_0x5e7dee,offsetY:_0x3fb744}=_0x11e564,{x:_0x4d61ad,y:_0x45159e}=_0x2668fb[_0x5b6455(0x2fb)](_0x4421dc[_0x5b6455(0x392)]([_0x5e7dee,_0x3fb744])),{scaleX:_0x2399de,scaleY:_0xcf0264}=_0x2668fb[_0x5b6455(0x388)](),_0x4437dd=_0x2668fb[_0x5b6455(0x25b)](_0x181b74[_0x5b6455(0x244)]),_0x35b50d=_0x2668fb[_0x5b6455(0x3df)](_0x4421dc[_0x5b6455(0x392)]([_0x4d61ad,_0x45159e]),_0x4437dd),_0x212e39=_0x41c43c[_0x5b6455(0x362)](_0x5e7dee,_0x3fb744,_0x2399de,_0xcf0264,_0x35b50d);((_0x293eea=this[_0x5b6455(0x384)])==null?void 0x0:_0x293eea['column'])===_0x212e39[_0x5b6455(0x390)]&&((_0x4f4208=this[_0x5b6455(0x384)])==null?void 0x0:_0x4f4208[_0x5b6455(0x266)])===_0x212e39['row']||this[_0x5b6455(0x349)][_0x5b6455(0x385)](_0x237aaa=>{_0x237aaa['onMouseMove'](_0x212e39);});},0x64));});}[_0x36889e(0x332)](_0x3942b1,_0xfa9752){const _0x23bc79=_0x36889e;var _0x4c4833;const _0x220406=(_0x4c4833=this[_0x23bc79(0x389)][_0x23bc79(0x22d)]())==null?void 0x0:_0x4c4833['skeleton'];if(!_0x220406)return;const _0x116e6e=this['_getSheetObject']();if(!_0x116e6e)return;this['_cursors']['forEach'](_0x44fbe9=>{_0x44fbe9['makeDirty']();});const {scene:_0x25e8b3}=_0x116e6e,_0x2ad9d0=nn(Array[_0x23bc79(0x2da)](_0xfa9752[_0x23bc79(0x364)]()))[_0x23bc79(0x35b)](_0x245638=>{const _0x26bbac=_0x23bc79,{color:_0x1f37f8,range:_0x59ad55,name:_0x110cb8,selection:_0x145eaf,sheetID:_0x43bd66}=_0x245638,{startColumn:_0x464a3e,startRow:_0x53f4c9,endColumn:_0x35e3df,endRow:_0x4880e2}=_0x59ad55,_0x4cbe22=_0x51a5a2(_0x53f4c9,_0x464a3e,_0x25e8b3,_0x220406),_0x12acaf=_0x51a5a2(_0x4880e2,_0x35e3df,_0x25e8b3,_0x220406),{columnHeaderHeightAndMarginTop:_0x3161d2}=_0x220406,{startX:_0x352bd7,startY:_0x460158}=_0x4cbe22,{endX:_0x16a2ee,endY:_0x44be86}=_0x12acaf,_0x2f596c=_0x16a2ee-_0x352bd7,_0x3812e0=_0x44be86-_0x460158,_0x2c5071={'labelPosition':_0x460158-_0x3161d2>=Q?_0x26bbac(0x223):_0x26bbac(0x1df),'sheetID':_0x43bd66,'range':_0x59ad55,'color':_0x1f37f8,'name':_0x110cb8,'selection':_0x145eaf,'left':_0x352bd7,'top':_0x460158,'width':_0x2f596c,'height':_0x3812e0,'evented':!0x1,'zIndex':sn};return new qi(_0x110cb8,_0x2c5071);});_0x25e8b3[_0x23bc79(0x38e)](_0x2ad9d0,Zi),this['_cursors']=new Set(_0x2ad9d0);}[_0x36889e(0x3e5)](){const _0x22f6e9=_0x36889e;var _0x5a5ee2;(_0x5a5ee2=this[_0x22f6e9(0x349)])==null||_0x5a5ee2[_0x22f6e9(0x385)](_0x1a9a61=>_0x1a9a61[_0x22f6e9(0x346)]());}[_0x36889e(0x1f9)](){const _0x34780c=_0x36889e;return _0x4dda01(this[_0x34780c(0x32d)][_0x34780c(0x2ff)],this['_context']);}};$e=tn([Ce(0x1,_0x43af65(_0x8160e4)),Ce(0x2,_0x43af65(H)),Ce(0x3,_0x43af65(_0x291287))],$e);function nn(_0x723066){const _0x3ec954=new Map();return _0x723066['forEach'](_0x58d82b=>{const _0x338c9e=_0x4047;if(_0x3ec954[_0x338c9e(0x3bb)](_0x58d82b['selection'])){const _0x259434=_0x3ec954[_0x338c9e(0x2f9)](_0x58d82b[_0x338c9e(0x3ec)]);_0x259434['name']+=',\x20'+_0x58d82b[_0x338c9e(0x25d)];}else _0x3ec954[_0x338c9e(0x2e8)](_0x58d82b[_0x338c9e(0x3ec)],_0x58d82b);}),Array['from'](_0x3ec954['values']());}var rn=Object[_0x36889e(0x39d)],on=(_0x154559,_0x3bea7e,_0x357fd1,_0x2b350d)=>{const _0x392b46=_0x36889e;for(var _0x1125e2=_0x2b350d>0x1?void 0x0:_0x2b350d?rn(_0x3bea7e,_0x357fd1):_0x3bea7e,_0x36d714=_0x154559[_0x392b46(0x203)]-0x1,_0x221de5;_0x36d714>=0x0;_0x36d714--)(_0x221de5=_0x154559[_0x36d714])&&(_0x1125e2=_0x221de5(_0x1125e2)||_0x1125e2);return _0x1125e2;},F=(_0x1330e6,_0x11f4ba)=>(_0x5227be,_0x29e31b)=>_0x11f4ba(_0x5227be,_0x29e31b,_0x1330e6);let ce=class extends _0x2d4248{constructor(_0x158838,_0x327f40,_0x25aab0,_0x488a26,_0x2ace2e,_0x42de44){const _0x3fa05c=_0x36889e;super(),this[_0x3fa05c(0x2ec)]=_0x158838,this['_localCacheService']=_0x327f40,this['_collaborationUIEventService']=_0x25aab0,this['_messageService']=_0x488a26,this[_0x3fa05c(0x37e)]=_0x2ace2e,this[_0x3fa05c(0x1f1)]=_0x42de44,this['_setupBeforeClosingHandler'](),this[_0x3fa05c(0x314)]();}[_0x36889e(0x377)](){const _0x412bcf=_0x36889e;this[_0x412bcf(0x20c)](this[_0x412bcf(0x2ec)][_0x412bcf(0x322)](()=>{const _0x3e1820=_0x412bcf;if(this[_0x3e1820(0x273)]['saveTaskMap'][_0x3e1820(0x213)])return this[_0x3e1820(0x1f1)]['t'](_0x3e1820(0x35c));}));}[_0x36889e(0x314)](){const _0x237f61=_0x36889e;this[_0x237f61(0x20c)](this[_0x237f61(0x3b8)][_0x237f61(0x380)]['subscribe'](_0x444579=>{const _0x5adc29=_0x237f61;_0x444579['id']===_0x557d91[_0x5adc29(0x22f)]&&this[_0x5adc29(0x2ad)][_0x5adc29(0x1cb)]({'type':_0x3551[_0x5adc29(0x347)],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x444579['id']===_0x557d91[_0x5adc29(0x290)]&&this['_messageService'][_0x5adc29(0x1cb)]({'type':_0x3551[_0x5adc29(0x347)],'content':this[_0x5adc29(0x1f1)]['t'](_0x5adc29(0x2a9))}),_0x444579['id']===_0x557d91['PERMISSION_DENIED']&&this[_0x5adc29(0x37e)][_0x5adc29(0x1cb)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x5adc29(0x1f1)]['t'](_0x5adc29(0x254)),'type':_0x5adc29(0x206),'duration':0x0}),_0x444579['id']===_0x557d91[_0x5adc29(0x357)]&&this[_0x5adc29(0x2ad)]['show']({'type':_0x3551[_0x5adc29(0x2fc)],'content':this[_0x5adc29(0x1f1)]['t']('collaboration.closeRoom')+'('+_0x444579['data']+')'}),_0x444579['id']===_0x557d91[_0x5adc29(0x22c)]&&this['_messageService']['show']({'type':_0x3551[_0x5adc29(0x347)],'content':this[_0x5adc29(0x1f1)]['t'](_0x444579[_0x5adc29(0x232)]||'')}),_0x444579['id']===_0x557d91[_0x5adc29(0x236)]&&this[_0x5adc29(0x2ad)][_0x5adc29(0x1cb)]({'type':_0x3551[_0x5adc29(0x347)],'content':this[_0x5adc29(0x1f1)]['t']('session.will-retry')}),_0x444579['id']===_0x557d91['SOCKET_FAILED']&&this[_0x5adc29(0x2ad)][_0x5adc29(0x1cb)]({'type':_0x3551[_0x5adc29(0x2fc)],'content':this['_localeService']['t'](_0x5adc29(0x1e2))}),_0x444579['id']===_0x557d91[_0x5adc29(0x2e5)]&&this['_messageService'][_0x5adc29(0x1cb)]({'type':_0x3551['Error'],'content':this[_0x5adc29(0x1f1)]['t']('session.collaboration-timeout')});}));}};ce=on([F(0x0,_0x4772b6),F(0x1,_0x23d181),F(0x2,_0x43af65(_0x31cf35)),F(0x3,_0x35a021),F(0x4,_0x157dfb),F(0x5,_0x43af65(_0x34b1c0))],ce);const an=_0x36889e(0x307),rt={};var cn=Object['getOwnPropertyDescriptor'],_n=(_0x4aba1e,_0x43b48a,_0x45df80,_0x54a3a1)=>{const _0x57d974=_0x36889e;for(var _0x1c36ac=_0x54a3a1>0x1?void 0x0:_0x54a3a1?cn(_0x43b48a,_0x45df80):_0x43b48a,_0x1492c3=_0x4aba1e[_0x57d974(0x203)]-0x1,_0x4edb94;_0x1492c3>=0x0;_0x1492c3--)(_0x4edb94=_0x4aba1e[_0x1492c3])&&(_0x1c36ac=_0x4edb94(_0x1c36ac)||_0x1c36ac);return _0x1c36ac;},ot=(_0x45c093,_0x155819)=>(_0x19f44c,_0x459f67)=>_0x155819(_0x19f44c,_0x459f67,_0x45c093);function _0x4b6c(){const _0x20f873=['subscribeEvent','Loading','_dataLoaderService','getMember','_entities','replace','sessionStatus$','rgba(255,\x20255,\x20255,\x200.01)','createInstance','_docSkeleton','_context','USER_IS_ANONYMOUS','_currentUsage','getMemberID','split','_updateCollabCursors','getUnitId','unsubscribe','maxFormulaLimit','searchParams','_labelPosition','limitInfo','_removeClearOtherTimer','427skKUYk','65UjsQmX','engine','asObservable','addHandlerCallback','UNAUTHENTICATED','_taskIds','setAlpha','transform','fillRule','stage','next','dispose','Warning','fillText','_cursors','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_renderManagerService','href','sheetId','START_CALCULATION','now','formula.calculation.waiting','_id','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','/universer-api/license/formula/limit/start','red.300','_hideTimer','origin','CONFLICT','createSocket','purple.300','disposeUnit','map','collaboration-client.offline-data-not-saved','hovered','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','none','unitId','ONLINE','getCellPositionByOffset','CONNECTOR_DATA_TOO_LARGE','values','_getAnchorBounding','undoState','_saveCache','currentTheme$','drawWith','YUUMI_RATE_OVER_LIMIT','push','_initResize','_docTransformStateCacheService','defineProperty','getCollabCursors$','totalFormulasToCalculate','_backgroundColor','_anchorDot','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','USER_NOT_INVITED_CODE','M0\x200H16V16H0z','getOffsetConfig','_setupBeforeClosingHandler','unload','ENTITLE_DUP_SUBSCRIPTION','parse','_color','exhaustSavingTask','search','_notificationService','[CollaborationDataLoaderController]','event$','CURRENT_STATUS_CANNOT_OPERATE','_docTransformSelectionsService','_transformPreviousActiveRange','_lastPointer','forEach','_disabled','sheetID','getAncestorScale','_sheetSkeletonManagerService','collabStatus.fetchMiss','NOT_FOUND','getSheetBySheetId','status$','addObjects','_getScale','column','_updateURLWithCurrentState','FromArray','INVITE_CODE_HAS_BEEN_UES','_updateLocalCursor','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','transformByState','APPLY_REVISION_CONFILICT','urlChange$','_applyCommand','REDEMPTION_CODE_NOT_STARTED','_session','406059dseOdo','getOwnPropertyDescriptor','_unitStatus','whenReady','univer-mr-2\x20univer-flex\x20univer-text-xl','toString','setActiveRange','isArray','/universer-api/license/formula/limit/status','getSkeleton','find','OnLineIcon','MUTATION','REDEMPTION_CODE_HAS_BEEN_CREATED','isEditing','_collabCursorController','font','attrs','collabStatus.conflict','_uiPartsService','MOBILE_VERIFY_CODE_MISMATCH','location','_memberService','_initDependencies','ERROR_AGAIN','subunit','requireSession','_initStatusComponent','_collaborationUIEventService','text','1em','has','entries','hide','textRanges','_scheduleHeartbeat','univerjs-icon\x20univerjs-icon-','max','collab-text-anchor-','_collabCursorState$','transformMutationsWithChangeset','dispose$','_pollingInterval','endColumn','YUUMI_UNABLE_LOAD_URL','redoState','_eventUnsubscribe','doc.mutation.rich-text-editing','getFocusedUnit','getRenderById','getParam','INVALID_INVITE_CODE','_doCreateSocket','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_handleLeaveEvent','_toggleOnline','popstate','transformRemoteChangeset','registerRefRange','PY_RUNTIME_SCRIPT_ERROR','subscribe','/run/','_urlService','_entityInit$','startRow','_onRefRangeChange','_showGuardMessage','getVpScrollXYInfoByPosToVp','Success','transformIMECache','_themeService','_setFormulaLimitStatus','_drawAnchor','_removeCollabCursors','history','_cursor','string','_initStatusListener','releaseFormulaLimitUrl','setItem','selection','symbol','getStateCache','_selfUnitIDs','ENTITLE_NEED_BILLING_ADDRESS','MOBILE_HAS_BEEN_BOUND','APPLY_DUPLICATED','_transformService','ranges','8lZJHOx','tag','_getFormulaLimitStatus','SUCCESS','getTypeOfUnitAdded$','with','imageSourceType','_docSkeletonManagerService','_refreshCollabCursors','show','deepClone','getItem','addObject','saveImage','CHANGESET_REVISION_CONFILICT','_docStateChangeManagerService','white','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_init','APPLY_REJECT','_scheduleSaving','getformulaLimitStatusUrl','defs','_createSocketURL','getCellMatrix','save','onTransformChange$','pipe','INVALID_ARGUMENT','bottom','replaceDocRanges','docStateChange$','session.connection-failed','TOO_MANY_REQUESTS','?taskId=','_logService','AWAITING_WITH_PENDING','_univerInstanceService','_colorAssignService','_registerDependencies','INVITE_CODE_REQUIRED','_online','arc','YUUMI_URL_COL_OUT_OF_RANGE','OTHER_CLIENTS_EDITING','collabCursorState$','ACTIVE_UNIT_EVENT_CHANNEL','_localeService','currentSkeleton$','init','min','then','cursorInfo$','functionsExecutedState','_collabSessionService','_getSheetObject','roomMembers','YUUMI_AI_RUN_FAILED','_injector','collab-rect-range-','all','onCommandExecuted','YUUMI_ASYNCIO_CANCELLED','UNDEFINED','LICENSE_MAX_UNITS_EXCEEDED','length','YUUMI_SUBSCRIPTION_NOT_FOUND','InsertRowCommandId','error','_localStorageService','_maxFormulaLimit','post','onPointerMove$','newValue','disposeWithMe','assignAColorForMemberID','_heartbeatTimer','_unitOnClients','getCurrentRevOfUnit','fill','type','size','transformStateCache','getUnhiddenWorksheets','_config','getCurrentUnitForType','USER_NOT_FOUND','_getSaveTimeout','_cursorShapes','_anchor','_releaseCalculationLimit','on-line-icon_clip0_910_349','_docClipboardService','InsertColCommandId','getColorFromTheme','_hovered','children','top','url(#on-line-icon_clip0_910_349)','idSuffix','evenodd','_commandService','UniverIcon','collabStatus.synced','activeSheet$','flatMap','JOIN_ROOM_FAILED','getCurrent','_handleJoinEvent','OTHER_CLIENT_EDITING','add','xlink:href','data','RECT','saveTaskMap','findNodePositionByCharIndex','SOCKET_FAILED_RETRY','getConfig','svg','YUUMI_CONNECTOR_URL_NOT_FOUND','ENTITLE_REPORT_LIMIT_EXCEED','currentColor','WECHAT_HAS_BEEN_BOUND','YUUMI_NO_CUBOID_FOR_QUESTION','runId','black','LOGIN_FAILED','_getMergeRange','_assignedColors','0\x200\x2017\x2016','VIEW_MAIN','setParam','startColumn','getCurrentSelections','m1Prime','1995820QZYFgg','EMAIL_VERIFY_CODE_MISMATCH','_httpService','_textBubble','_scene','UPDATE_CURSOR','EMAIL_HAS_BEEN_BOUND','LICENSE_DISTRO_REJECTED','width','getActiveSheet','isActive','permission.content','_updateSubUnitFromURLParams','addEventListener','_imageIoService','...','USERS_LEAVE','_cachedData','getViewport','cursorInfo','name','_saveTaskMap','_docSyncEditingCollabCursorService','getUnit','1764653LiEFzN','replaceState','endRow','disableLocalCache','REDEMPTION_USER_NOT_ELIGIBLE','row','assign','284226UBnAAv','674PdsfKY','_onCursorDelete','setTimeout','LICENSE_EXPORT_SIZE_EXCEEDED','reconnect','onLocalMutation','_cursorInfo$','InsertRangeMoveRightCommandId','m2Prime','blue.400','_localCacheService','_configService','mask','HEADER_MENU','_drawRectRange','_hover','current','startsWith','_roomMembers$','restore','_handleEvent','MoveRangeCommandId','code','_docTransformIMECacheService','transformSelections','jiqing.500','clearTimeout','SNAPSHOT_HAS_BEEN_REMOVED','http://www.w3.org/2000/svg','5205789uFJXzJ','_initCommandExecutedListener','_name','UNIVER_DOC','_collaborationController','storage','_clearPolling','_drawTextRange','onPointerEnter$','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','CLOSE_ROOM','_setupSubUnitSync','use','getValue','pushState','roomMembers$','_render','syncEditingCollabCursor','fillStyle','YUUMI_TABLE_NOT_FOUND_IN_UNIT','enableLocalCache','loadOfflineData','setConfig','NOT_COLLAB','_send','getDocRanges','ALREADY_EXISTS','InsertRangeMoveDownCommandId','TEXT','some','_refRangeService','saveOfflineData','registerComponent','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','color','collaboration.closeRoom','stringify','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_draw','_messageService','SNAPSHOT_INVALID_SNAPSHOT','LOGIN_TOKEN_PROCESSING_FAILED','SYNCED','colorChannel1','_colorIndex','round','parseInt','_transformUndoRedoStack','stageInfo','Failed','shift','DeleteRangeMoveUpCommandId','unitID','APPLY_NON_SEQUENTIAL_REVISION','entityInit$','PERMISSION_DENIED','div','OFFLINE','startFormulaLimitUrl','invokeId','eventID','delete','closePath','params','selections','UNIVER_SHEET','complete','_initCommandInterceptor','dirtyRanges','getUndoRedoMutationParamsCache','lineTo','range','_startCalculationLimit','DeleteRangeMoveLeftCommandId','getCollabEntity$','body','16tTVgav','_startDocCollabCursor','COMPLETION_FINISHED','_initEntityListener','override','application/json','REDEMPTION_INVALID_CODE','collabStatus.notCollab','from','clipPath','getRangePointData','measureText','_shapes','toRgbString','FETCH_MISS','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_onCursorUpdate','univer-flex\x20univer-items-center','PAYMENT_CHANNEL_NOT_SUPPORT','SUBMIT_CHANGESET_TIMEOUT','send','_startSheetCollabCursor','set','transformMutation','LICENSE_IMPORT_SIZE_EXCEEDED','translate(.97)','_beforeCloseService','NO_OTHER_CLIENTS_EDITING','_getSessionTicket','_ensureSubject','_handleHover','unshift','167xaXTEH','path','getMergeData','setShapeProps','_revisionService','actions','addClipboardHook','get','REDEMPTION_CODE_FULLY_REDEEMED','getRelativeToViewportCoord','Error','_range','INVITE_CODE_ALREADY_BOUND','unit','APPLY_PERMISSION_DENIED','contains','mutations','_toggleOffline','RemoveRowCommandId','_scheduleClearOtherTimer','#FFF','collaboration-client-ui.config','_hasFormulaInDirtyRanges','subUnitId','_lastResponseTimestamp','YUUMI_ALL_TABLES_IS_INVALID','updateOfflineData','ENTITLE_CHAT_LIMIT_EXCEED','currentUsage','_clearOtherTimers','editingUnit','setStateCache','focused$','getSheetId','_initEvent','setUndoRedoMutationParamsCache','_syncEditingCollabCursorService','_handleHeartbeatEvent','getUniverSheetInstance','_checkCalculationAvailable','backgroundColor','REDEMPTION_CODE_INACTIVE','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_transformHistoryAndStateStack','_status$','off-line-icon','onPointerLeave$','uni.network.url-service','registerBeforeClose'];_0x4b6c=function(){return _0x20f873;};return _0x4b6c();}let _e=class{constructor(_0x292d5f,_0xa0483f){const _0x12dc4b=_0x36889e;this['_transformService']=_0x292d5f,this[_0x12dc4b(0x34b)]=_0xa0483f;}[_0x36889e(0x3e1)](_0xf94a03){const _0x3c1722=_0x36889e;this[_0x3c1722(0x2b5)](_0xf94a03),this[_0x3c1722(0x383)](_0xf94a03);}[_0x36889e(0x3d5)](_0x321edf){const _0x513025=_0x36889e,{unitID:_0x2e9cc8}=_0x321edf,_0x585f92=this[_0x513025(0x34b)]['getRenderById'](_0x2e9cc8)[_0x513025(0x1c7)](_0x21d165),{redoCache:_0x2967d4}=_0x585f92[_0x513025(0x2cb)]();if(_0x2967d4[_0x513025(0x203)]===0x0)return _0x321edf;let _0x41fd6b=_0x452ace[_0x513025(0x1cc)](_0x321edf['mutations'][0x0]);for(let _0x5b4f4c=0x0;_0x5b4f4c<_0x2967d4['length'];_0x5b4f4c++){const _0x1151b9={'id':'doc.mutation.rich-text-editing','params':{..._0x2967d4[_0x5b4f4c]}},_0x4b2173=this[_0x513025(0x1c0)][_0x513025(0x2e9)](_0x41fd6b,_0x1151b9,!0x1);if(_0x3bbf6b(_0x4b2173))throw _0x4b2173[_0x513025(0x206)];_0x41fd6b=_0x4b2173['m1Prime'];}return{..._0x452ace[_0x513025(0x1cc)](_0x321edf),'mutations':[_0x41fd6b]};}[_0x36889e(0x2b5)](_0x32c69b){const _0x33d34d=_0x36889e,{unitID:_0x1b5461}=_0x32c69b,_0x1e1fa6=this[_0x33d34d(0x34b)][_0x33d34d(0x3cd)](_0x1b5461)[_0x33d34d(0x1c7)](_0x21d165),{undoCache:_0x2fe785,redoCache:_0x3994ea}=_0x1e1fa6['getUndoRedoMutationParamsCache']();if(_0x2fe785[_0x33d34d(0x203)]===0x0||_0x3994ea['length']===0x0)return;const _0x46aa48=[],_0x10d17a=[];let _0x45b238=_0x452ace[_0x33d34d(0x1cc)](_0x32c69b[_0x33d34d(0x302)][0x0]),_0x34b74e=_0x452ace[_0x33d34d(0x1cc)](_0x32c69b['mutations'][0x0]);for(let _0x13a0b1=_0x2fe785['length']-0x1;_0x13a0b1>=0x0;_0x13a0b1--){const _0x2f3aa4={'id':_0x33d34d(0x3cb),'params':{..._0x2fe785[_0x13a0b1]}},_0x16ff1f={'id':'doc.mutation.rich-text-editing','params':{..._0x3994ea[_0x13a0b1]}},_0x663b0a=this[_0x33d34d(0x1c0)][_0x33d34d(0x2e9)](_0x45b238,_0x2f3aa4,!0x1),_0x3d78d2=this[_0x33d34d(0x1c0)][_0x33d34d(0x2e9)](_0x34b74e,_0x16ff1f,!0x1);if(_0x3bbf6b(_0x663b0a))throw _0x663b0a['error'];if(_0x3bbf6b(_0x3d78d2))throw _0x3d78d2['error'];_0x46aa48[_0x33d34d(0x2f1)](_0x663b0a[_0x33d34d(0x271)][_0x33d34d(0x2c5)]),_0x10d17a['unshift'](_0x3d78d2[_0x33d34d(0x271)][_0x33d34d(0x2c5)]),_0x45b238=_0x663b0a[_0x33d34d(0x248)],_0x34b74e=_0x3d78d2[_0x33d34d(0x248)];}_0x1e1fa6[_0x33d34d(0x315)]({'undoCache':_0x46aa48,'redoCache':_0x10d17a});}['_transformPreviousActiveRange'](_0xb23594){const _0x37d29c=_0x36889e,{unitID:_0x419e3a}=_0xb23594,_0x48f35b=this[_0x37d29c(0x34b)][_0x37d29c(0x3cd)](_0x419e3a)[_0x37d29c(0x1c7)](_0x21d165),_0x14464a=_0x48f35b['getActiveRange']();if(_0x14464a==null)return;const _0x7311f4=[{'id':_0x37d29c(0x3cb),'params':{'unitId':_0xb23594['unitID'],'actions':null,'textRanges':[_0x14464a]}}],_0x4beef5=this[_0x37d29c(0x1c0)]['transformMutationsWithChangeset'](_0xb23594,_0x7311f4);if(!_0x555015(_0x4beef5))throw _0x4beef5[_0x37d29c(0x206)];const _0x100df7=_0x4beef5[_0x37d29c(0x271)][0x0]['params'][_0x37d29c(0x3be)];Array[_0x37d29c(0x3a3)](_0x100df7)&&_0x100df7[_0x37d29c(0x203)]&&_0x48f35b[_0x37d29c(0x3a2)](_0x100df7[0x0]);}};_e=_n([ot(0x0,_0x477b88),ot(0x1,_0x1461c3)],_e);var ln=Object[_0x36889e(0x39d)],hn=(_0x66711a,_0x13490e,_0x39afa7,_0x4b0937)=>{const _0x2d221d=_0x36889e;for(var _0x2546a9=_0x4b0937>0x1?void 0x0:_0x4b0937?ln(_0x13490e,_0x39afa7):_0x13490e,_0x349c72=_0x66711a[_0x2d221d(0x203)]-0x1,_0x199696;_0x349c72>=0x0;_0x349c72--)(_0x199696=_0x66711a[_0x349c72])&&(_0x2546a9=_0x199696(_0x2546a9)||_0x2546a9);return _0x2546a9;},Re=(_0x2ced89,_0x228ced)=>(_0x3ccd93,_0x2ad92e)=>_0x228ced(_0x3ccd93,_0x2ad92e,_0x2ced89);let le=class{constructor(_0x1422fe,_0x5625ec,_0x1de96e){const _0x2d4c23=_0x36889e;this[_0x2d4c23(0x1fc)]=_0x1422fe,this['_transformService']=_0x5625ec,this['_docStateChangeManagerService']=_0x1de96e;}[_0x36889e(0x214)](_0x24107b){const _0x26c46e=_0x36889e;this[_0x26c46e(0x31d)](_0x24107b);}[_0x36889e(0x3d5)](_0x34f0f7){const _0x56cc91=_0x36889e,{unitID:_0x62ae2d}=_0x34f0f7,{collaboration:_0x2d63bb}=this['_docStateChangeManagerService'][_0x56cc91(0x1bb)](_0x62ae2d);if(_0x2d63bb[_0x56cc91(0x203)]===0x0)return _0x34f0f7;let _0x10b329=_0x452ace['deepClone'](_0x34f0f7[_0x56cc91(0x302)][0x0]);for(let _0x8afb30=0x0;_0x8afb30<_0x2d63bb['length'];_0x8afb30++){const _0x142438={'id':_0x56cc91(0x3cb),'params':{'unitId':_0x2d63bb[_0x8afb30][_0x56cc91(0x360)],..._0x2d63bb[_0x8afb30][_0x56cc91(0x3c9)]}},_0x9c1cd1=this[_0x56cc91(0x1c0)][_0x56cc91(0x2e9)](_0x10b329,_0x142438,!0x1);if(_0x3bbf6b(_0x9c1cd1))throw _0x9c1cd1[_0x56cc91(0x206)];_0x10b329=_0x9c1cd1[_0x56cc91(0x248)];}return{..._0x452ace[_0x56cc91(0x1cc)](_0x34f0f7),'mutations':[_0x10b329]};}[_0x36889e(0x31d)](_0x3d0008){const _0x5ac833=_0x36889e,{unitID:_0x35ea45}=_0x3d0008,{history:_0xbca0e8,collaboration:_0x33f03e}=this[_0x5ac833(0x1d1)]['getStateCache'](_0x35ea45);if(_0xbca0e8['length']===0x0&&_0x33f03e[_0x5ac833(0x203)]===0x0)return;const _0x5e3ed1=[],_0x1f1e8b=[];let _0xf2b96e=_0x452ace[_0x5ac833(0x1cc)](_0x3d0008['mutations'][0x0]),_0x453bdb=_0x452ace['deepClone'](_0x3d0008[_0x5ac833(0x302)][0x0]);for(let _0x491067=_0xbca0e8['length']-0x1;_0x491067>=0x0;_0x491067--){const _0x30f5d9={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xbca0e8[_0x491067][_0x5ac833(0x360)],..._0xbca0e8[_0x491067]['undoState']}},_0x390fa0={'id':_0x5ac833(0x3cb),'params':{'unitId':_0xbca0e8[_0x491067][_0x5ac833(0x360)],..._0xbca0e8[_0x491067][_0x5ac833(0x3c9)]}},_0x289aec=this[_0x5ac833(0x1c0)][_0x5ac833(0x2e9)](_0xf2b96e,_0x30f5d9,!0x1),_0x21be27=this[_0x5ac833(0x1c0)][_0x5ac833(0x2e9)](_0x453bdb,_0x390fa0,!0x1);if(_0x3bbf6b(_0x289aec))throw _0x289aec[_0x5ac833(0x206)];if(_0x3bbf6b(_0x21be27))throw _0x21be27[_0x5ac833(0x206)];_0x5e3ed1[_0x5ac833(0x2f1)]({..._0xbca0e8[_0x491067],'undoState':_0x289aec['m2Prime'][_0x5ac833(0x2c5)],'redoState':_0x21be27[_0x5ac833(0x271)]['params']}),_0xf2b96e=_0x289aec['m1Prime'],_0x453bdb=_0x21be27['m1Prime'];}_0xf2b96e=_0x452ace[_0x5ac833(0x1cc)](_0x3d0008['mutations'][0x0]),_0x453bdb=_0x452ace[_0x5ac833(0x1cc)](_0x3d0008['mutations'][0x0]);for(let _0x306ec2=_0x33f03e[_0x5ac833(0x203)]-0x1;_0x306ec2>=0x0;_0x306ec2--){const _0x4307b0={'id':_0x5ac833(0x3cb),'params':{'unitId':_0x33f03e[_0x306ec2][_0x5ac833(0x360)],..._0x33f03e[_0x306ec2][_0x5ac833(0x366)]}},_0x291a30={'id':_0x5ac833(0x3cb),'params':{'unitId':_0x33f03e[_0x306ec2]['unitId'],..._0x33f03e[_0x306ec2][_0x5ac833(0x3c9)]}},_0x23cce5=this[_0x5ac833(0x1c0)][_0x5ac833(0x2e9)](_0xf2b96e,_0x4307b0,!0x1),_0x55790f=this[_0x5ac833(0x1c0)]['transformMutation'](_0x453bdb,_0x291a30,!0x1);if(_0x3bbf6b(_0x23cce5))throw _0x23cce5[_0x5ac833(0x206)];if(_0x3bbf6b(_0x55790f))throw _0x55790f[_0x5ac833(0x206)];_0x1f1e8b[_0x5ac833(0x2f1)]({..._0x33f03e[_0x306ec2],'undoState':_0x23cce5[_0x5ac833(0x271)][_0x5ac833(0x2c5)],'redoState':_0x55790f[_0x5ac833(0x271)][_0x5ac833(0x2c5)]}),_0xf2b96e=_0x23cce5[_0x5ac833(0x248)],_0x453bdb=_0x55790f['m1Prime'];}this[_0x5ac833(0x1d1)][_0x5ac833(0x311)](_0x35ea45,{'history':_0x5e3ed1,'collaboration':_0x1f1e8b});}};le=hn([Re(0x0,_0x43af65(_0x5a50a2)),Re(0x1,_0x477b88),Re(0x2,_0x43af65(_0x1c2dd0))],le);var un=Object[_0x36889e(0x39d)],dn=(_0x4e8b0b,_0x2d487c,_0x146d09,_0x23046f)=>{for(var _0x140382=_0x23046f>0x1?void 0x0:_0x23046f?un(_0x2d487c,_0x146d09):_0x2d487c,_0x5bdbe3=_0x4e8b0b['length']-0x1,_0x533ad7;_0x5bdbe3>=0x0;_0x5bdbe3--)(_0x533ad7=_0x4e8b0b[_0x5bdbe3])&&(_0x140382=_0x533ad7(_0x140382)||_0x140382);return _0x140382;},at=(_0x57e5d2,_0x3f1b57)=>(_0x4bcd8f,_0x2dc943)=>_0x3f1b57(_0x4bcd8f,_0x2dc943,_0x57e5d2);let he=class{constructor(_0x225676,_0x165e8a){const _0x17b909=_0x36889e;this[_0x17b909(0x1fc)]=_0x225676,this['_transformService']=_0x165e8a;}[_0x36889e(0x281)](_0x3eed66){const _0x36fa5c=_0x36889e;var _0x2748ab;const _0x5b79d8=this['_injector'][_0x36fa5c(0x2f9)](_0x3ce9f9),_0x33c3b7=(_0x2748ab=_0x5b79d8[_0x36fa5c(0x29f)]())!=null?_0x2748ab:[];if(_0x33c3b7[_0x36fa5c(0x203)]===0x0)return;const _0x2def9=_0x3eed66[_0x36fa5c(0x2ba)],_0x5c8593=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2def9,'actions':null,'textRanges':_0x33c3b7}}],_0x13dcb0=this['_transformService'][_0x36fa5c(0x3c4)](_0x3eed66,_0x5c8593);if(!_0x555015(_0x13dcb0))throw _0x13dcb0[_0x36fa5c(0x206)];const _0x2a2dfd=_0x13dcb0['m2Prime'][0x0][_0x36fa5c(0x2c5)][_0x36fa5c(0x3be)];Array[_0x36fa5c(0x3a3)](_0x2a2dfd)&&_0x2a2dfd['length']&&_0x5b79d8[_0x36fa5c(0x1e0)](_0x2a2dfd,{'unitId':_0x2def9,'subUnitId':_0x2def9},!0x1);}};he=dn([at(0x0,_0x43af65(_0x5a50a2)),at(0x1,_0x477b88)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x563d67,_0x3aa3dc,_0x570e36,_0x100132)=>{const _0x4f2053=_0x36889e;for(var _0x4de857=_0x100132>0x1?void 0x0:_0x100132?Sn(_0x3aa3dc,_0x570e36):_0x3aa3dc,_0x3023d9=_0x563d67[_0x4f2053(0x203)]-0x1,_0x434a65;_0x3023d9>=0x0;_0x3023d9--)(_0x434a65=_0x563d67[_0x3023d9])&&(_0x4de857=_0x434a65(_0x4de857)||_0x4de857);return _0x4de857;},b=(_0x4e607f,_0x55d40f)=>(_0x549d28,_0x2e5489)=>_0x55d40f(_0x549d28,_0x2e5489,_0x4e607f);let ue=class extends _0x2d4248{constructor(_0x404db9,_0x75233f,_0x4fbae1,_0x1f7d4e,_0x5c84c2,_0x16e265,_0x4693c3,_0x212687){const _0xd72415=_0x36889e;super(),l(this,_0xd72415(0x31e),new _0x28744e(_0x35fe7b[_0xd72415(0x29d)])),(this[_0xd72415(0x1d1)]=_0x404db9,this['_collaborationController']=_0x75233f,this['_docTransformIMECacheService']=_0x4fbae1,this[_0xd72415(0x36d)]=_0x1f7d4e,this[_0xd72415(0x382)]=_0x5c84c2,this[_0xd72415(0x25f)]=_0x16e265,this[_0xd72415(0x2ad)]=_0x4693c3,this['_localeService']=_0x212687,this['_initEntityListener']());}[_0x36889e(0x2d5)](){const _0x16ca5=_0x36889e;this['disposeWithMe'](this[_0x16ca5(0x28a)][_0x16ca5(0x2bc)]['subscribe'](_0x28c334=>{const _0x1fecf4=_0x16ca5,_0x2151cd=this['_docStateChangeManagerService'][_0x1fecf4(0x1e1)][_0x1fecf4(0x3d8)](_0x313387=>{const _0xbe135a=_0x1fecf4;if(_0x313387==null)return;const {unitId:_0x2ee450,redoState:_0x1418df,commandId:_0x5b683d}=_0x313387;if(_0x2ee450!==_0x28c334[_0xbe135a(0x2ba)])return;const _0x3a7b5a={'id':_0x5b683d,'type':_0x8dd410[_0xbe135a(0x3a8)],'params':{'unitId':_0x2ee450,'actions':_0x1418df[_0xbe135a(0x2f7)],'textRanges':null}};_0x28c334[_0xbe135a(0x26e)](_0x3a7b5a);});if(_0x28c334[_0x1fecf4(0x20c)](_0x2151cd),_0x28c334 instanceof _0xeaac5a){const _0x216d5d={'onTransformIME':_0xed321f=>this[_0x1fecf4(0x280)][_0x1fecf4(0x3e1)](_0xed321f),'onTransformState':_0x4a5673=>this[_0x1fecf4(0x36d)]['transformStateCache'](_0x4a5673),'onTransformSelections':_0x4232b4=>this['_docTransformSelectionsService'][_0x1fecf4(0x281)](_0x4232b4),'onSyncEditingCollabCursor':_0xbcbbac=>this[_0x1fecf4(0x25f)][_0x1fecf4(0x297)](_0xbcbbac),'onTransformRemoteChangesetByIMECache':_0x2de7b2=>this[_0x1fecf4(0x280)][_0x1fecf4(0x3d5)](_0x2de7b2),'onTransformRemoteChangesetByStateCache':_0x52cb28=>this[_0x1fecf4(0x36d)]['transformRemoteChangeset'](_0x52cb28)};_0x28c334[_0x1fecf4(0x33e)](_0x216d5d);}}));}};ue=In([b(0x0,_0x43af65(_0x1c2dd0)),b(0x1,_0x43af65(_0x5dd025)),b(0x2,_0x43af65(_e)),b(0x3,_0x43af65(le)),b(0x4,_0x43af65(he)),b(0x5,_0x43af65(Xe)),b(0x6,_0x35a021),b(0x7,_0x43af65(_0x34b1c0))],ue);var Z=(_0x440f30=>(_0x440f30[_0x440f30[_0x36889e(0x201)]=0x0]=_0x36889e(0x201),_0x440f30[_0x440f30['OK']=0x1]='OK',_0x440f30[_0x440f30['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x440f30[_0x440f30[_0x36889e(0x2bd)]=0x3]=_0x36889e(0x2bd),_0x440f30[_0x440f30[_0x36889e(0x38b)]=0x4]=_0x36889e(0x38b),_0x440f30[_0x440f30[_0x36889e(0x33f)]=0x5]=_0x36889e(0x33f),_0x440f30[_0x440f30[_0x36889e(0x2a0)]=0x6]=_0x36889e(0x2a0),_0x440f30[_0x440f30[_0x36889e(0x1de)]=0x7]=_0x36889e(0x1de),_0x440f30[_0x440f30[_0x36889e(0x1e3)]=0x8]=_0x36889e(0x1e3),_0x440f30[_0x440f30[_0x36889e(0x2d4)]=0x9]=_0x36889e(0x2d4),_0x440f30[_0x440f30[_0x36889e(0x240)]=0xa]=_0x36889e(0x240),_0x440f30[_0x440f30['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x36889e(0x3b0),_0x440f30[_0x440f30[_0x36889e(0x35e)]=0xc]=_0x36889e(0x35e),_0x440f30[_0x440f30[_0x36889e(0x24a)]=0xd]=_0x36889e(0x24a),_0x440f30[_0x440f30[_0x36889e(0x3d1)]=0xe]=_0x36889e(0x3d1),_0x440f30[_0x440f30['AUTHORIZE_CODE_ILLEGAL']=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x440f30[_0x440f30[_0x36889e(0x2af)]=0x10]=_0x36889e(0x2af),_0x440f30[_0x440f30[_0x36889e(0x381)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x440f30[_0x440f30[_0x36889e(0x3b4)]=0x65]=_0x36889e(0x3b4),_0x440f30[_0x440f30[_0x36889e(0x218)]=0xc9]=_0x36889e(0x218),_0x440f30[_0x440f30[_0x36889e(0x32e)]=0xca]=_0x36889e(0x32e),_0x440f30[_0x440f30['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x36889e(0x1d0),_0x440f30[_0x440f30[_0x36889e(0x2ae)]=0x1771]=_0x36889e(0x2ae),_0x440f30[_0x440f30[_0x36889e(0x284)]=0x1772]=_0x36889e(0x284),_0x440f30[_0x440f30['ENSURE_SNAPSHOT_EXECUTION']=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x440f30[_0x440f30[_0x36889e(0x1d5)]=0x1b59]='APPLY_REJECT',_0x440f30[_0x440f30[_0x36889e(0x2bb)]=0x1b5a]=_0x36889e(0x2bb),_0x440f30[_0x440f30[_0x36889e(0x397)]=0x1b5b]=_0x36889e(0x397),_0x440f30[_0x440f30[_0x36889e(0x300)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x440f30[_0x440f30[_0x36889e(0x1bf)]=0x1b5d]=_0x36889e(0x1bf),_0x440f30[_0x440f30[_0x36889e(0x363)]=0x1f41]=_0x36889e(0x363),_0x440f30[_0x440f30[_0x36889e(0x202)]=0x2329]=_0x36889e(0x202),_0x440f30[_0x440f30['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x440f30[_0x440f30[_0x36889e(0x2ea)]=0x232b]=_0x36889e(0x2ea),_0x440f30[_0x440f30[_0x36889e(0x26c)]=0x232c]=_0x36889e(0x26c),_0x440f30[_0x440f30[_0x36889e(0x250)]=0x232d]=_0x36889e(0x250),_0x440f30[_0x440f30[_0x36889e(0x3c8)]=0x2711]=_0x36889e(0x3c8),_0x440f30[_0x440f30['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x36889e(0x1ed),_0x440f30[_0x440f30[_0x36889e(0x36a)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x440f30[_0x440f30[_0x36889e(0x204)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x440f30[_0x440f30[_0x36889e(0x23d)]=0x271a]=_0x36889e(0x23d),_0x440f30[_0x440f30[_0x36889e(0x200)]=0x271b]=_0x36889e(0x200),_0x440f30[_0x440f30[_0x36889e(0x299)]=0x271c]=_0x36889e(0x299),_0x440f30[_0x440f30[_0x36889e(0x30b)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x440f30[_0x440f30[_0x36889e(0x31c)]=0x271e]=_0x36889e(0x31c),_0x440f30[_0x440f30[_0x36889e(0x1fb)]=0x271f]=_0x36889e(0x1fb),_0x440f30[_0x440f30[_0x36889e(0x239)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x440f30[_0x440f30[_0x36889e(0x3d7)]=0x2af9]=_0x36889e(0x3d7),_0x440f30[_0x440f30[_0x36889e(0x393)]=0x2ee1]=_0x36889e(0x393),_0x440f30[_0x440f30['INVALID_INVITE_CODE']=0x2ee2]=_0x36889e(0x3cf),_0x440f30[_0x440f30[_0x36889e(0x1ea)]=0x2ee3]=_0x36889e(0x1ea),_0x440f30[_0x440f30[_0x36889e(0x374)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x440f30[_0x440f30[_0x36889e(0x2fe)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x440f30[_0x440f30[_0x36889e(0x23c)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x440f30[_0x440f30[_0x36889e(0x1be)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x440f30[_0x440f30[_0x36889e(0x24f)]=0x32cb]=_0x36889e(0x24f),_0x440f30[_0x440f30[_0x36889e(0x2ab)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x440f30[_0x440f30[_0x36889e(0x2a7)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x440f30[_0x440f30[_0x36889e(0x379)]=0x36b3]=_0x36889e(0x379),_0x440f30[_0x440f30['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x36889e(0x2e4),_0x440f30[_0x440f30[_0x36889e(0x30d)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x440f30[_0x440f30[_0x36889e(0x23a)]=0x3716]=_0x36889e(0x23a),_0x440f30[_0x440f30[_0x36889e(0x1bd)]=0x37dd]=_0x36889e(0x1bd),_0x440f30[_0x440f30[_0x36889e(0x2d8)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x440f30[_0x440f30[_0x36889e(0x31b)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x440f30[_0x440f30[_0x36889e(0x2fa)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x440f30[_0x440f30[_0x36889e(0x39a)]=0x3a9c]=_0x36889e(0x39a),_0x440f30[_0x440f30[_0x36889e(0x265)]=0x3a9d]=_0x36889e(0x265),_0x440f30[_0x440f30['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x36889e(0x2e1),_0x440f30[_0x440f30['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x36889e(0x3a9),_0x440f30[_0x440f30['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x440f30))(Z||{});function mn(_0x125974){const _0x4d6c43=_0x36889e;var _0x4d480b,_0x4db970;const _0x2ac39f=(_0x4d480b=_0x125974[_0x4d6c43(0x2b6)])==null?void 0x0:_0x4d480b[_0x4d6c43(0x344)],_0x39a6f8=((_0x4db970=_0x125974[_0x4d6c43(0x2b6)])==null?void 0x0:_0x4db970[_0x4d6c43(0x370)])||0x0;return _0x2ac39f===_0x417a0b[_0x4d6c43(0x34e)]&&_0x39a6f8>0x0;}function fn(_0x549815){const _0x213083=_0x36889e;return _0x549815[_0x213083(0x1f7)]===_0xdc2a3[_0x213083(0x1c5)];}var gn=Object[_0x36889e(0x39d)],vn=(_0x3b7e2f,_0xe5dab1,_0x111cd4,_0x4f921c)=>{const _0x1a57cf=_0x36889e;for(var _0x292d62=_0x4f921c>0x1?void 0x0:_0x4f921c?gn(_0xe5dab1,_0x111cd4):_0xe5dab1,_0x2417ac=_0x3b7e2f[_0x1a57cf(0x203)]-0x1,_0x10b411;_0x2417ac>=0x0;_0x2417ac--)(_0x10b411=_0x3b7e2f[_0x2417ac])&&(_0x292d62=_0x10b411(_0x292d62)||_0x292d62);return _0x292d62;},P=(_0x302ef9,_0x50e8ac)=>(_0x518441,_0x11dd4b)=>_0x50e8ac(_0x518441,_0x11dd4b,_0x302ef9);const En=_0x36889e(0x3a4),pn=_0x36889e(0x353),On='/universer-api/license/formula/limit/done';let de=class extends _0x2d4248{constructor(_0x5e7d71,_0x12530d,_0x557ca7,_0x20ec60,_0x422726,_0x183555,_0x317c22){const _0x3306a3=_0x36889e;super(),l(this,_0x3306a3(0x3c6),null),l(this,_0x3306a3(0x208),0x0),l(this,_0x3306a3(0x32f),0x0),l(this,_0x3306a3(0x340),[]),l(this,'_lastResponseTimestamp',0x0),(this[_0x3306a3(0x2ad)]=_0x5e7d71,this[_0x3306a3(0x227)]=_0x12530d,this['_configService']=_0x557ca7,this[_0x3306a3(0x24b)]=_0x20ec60,this[_0x3306a3(0x1e7)]=_0x422726,this[_0x3306a3(0x1e5)]=_0x183555,this[_0x3306a3(0x1f1)]=_0x317c22,this[_0x3306a3(0x2c9)]());}[_0x36889e(0x2c9)](){const _0x46a059=_0x36889e;this['disposeWithMe'](this['_commandService']['beforeCommandExecuted']((_0x16bfc9,_0x5b2436)=>{const _0x2ebb41=_0x4047;if(_0x16bfc9['id']!==_0xf447bb['id'])return;const _0x2bbe9e=_0x16bfc9['params'];if(!this[_0x2ebb41(0x308)](_0x2bbe9e[_0x2ebb41(0x2ca)]))return;if(!this['_checkCalculationAvailable']())throw this['_checkAndWaitForCalculationPermission'](_0x16bfc9,_0x5b2436),this[_0x2ebb41(0x3de)](),new _0x1df904();})),this[_0x46a059(0x20c)](this[_0x46a059(0x227)]['onCommandExecuted']((_0x31297e,_0x294972)=>{const _0x1824f8=_0x46a059;if(_0x31297e['id']!==_0x49ec8c['id'])return;const _0x103bbe=_0x31297e[_0x1824f8(0x2c5)];if(mn(_0x103bbe)){const _0x26592e=_0x106418();this['_taskIds'][_0x1824f8(0x36b)](_0x26592e),this[_0x1824f8(0x2ce)](_0x26592e);}else{if(fn(_0x103bbe)&&this[_0x1824f8(0x340)]['length']>0x0){const _0x57c986=this[_0x1824f8(0x340)][_0x1824f8(0x2b8)]();this[_0x1824f8(0x21c)](_0x57c986);}}}));}['dispose'](){const _0x46210d=_0x36889e;super['dispose'](),this[_0x46210d(0x28c)](),this['_taskIds']=[],this[_0x46210d(0x32f)]=0x0,this[_0x46210d(0x208)]=0x0,this[_0x46210d(0x30a)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x2decda,_0x15e606){const _0x2ff168=_0x36889e;for(let _0x3565b0=0x0;_0x3565b0<0x1e;_0x3565b0++)try{if(await this[_0x2ff168(0x1c4)](),this['_checkCalculationAvailable']()){this['_applyCommand'](_0x2decda,_0x15e606),this[_0x2ff168(0x2ad)][_0x2ff168(0x1cb)]({'content':this[_0x2ff168(0x1f1)]['t']('formula.calculation.started'),'type':_0x3551[_0x2ff168(0x3e0)]});return;}await new Promise(_0x31b912=>{const _0x1bbf11=_0x2ff168;this['_pollingInterval']=window[_0x1bbf11(0x26b)](_0x31b912,0x3e8);});}catch(_0x451572){this[_0x2ff168(0x1e5)][_0x2ff168(0x206)](_0x451572);}this['_messageService'][_0x2ff168(0x1cb)]({'content':this[_0x2ff168(0x1f1)]['t']('formula.calculation.unable'),'type':_0x3551['Error']});}[_0x36889e(0x399)](_0x3ea497,_0x19bc72){try{this['_commandService']['executeCommand'](_0x3ea497['id'],_0x3ea497['params'],_0x19bc72);}catch(_0x44c47f){this['_logService']['error'](_0x44c47f);}}['_setFormulaLimitStatus'](_0x4ba97e,_0x5e9011){const _0x2943d5=_0x36889e;_0x5e9011<this[_0x2943d5(0x30a)]||(this[_0x2943d5(0x30a)]=_0x5e9011,this['_maxFormulaLimit']=Number[_0x2943d5(0x2b4)](_0x4ba97e[_0x2943d5(0x335)]),this['_currentUsage']=Number[_0x2943d5(0x2b4)](_0x4ba97e[_0x2943d5(0x30e)]));}async[_0x36889e(0x2ce)](_0x449bb6){const _0xbaf15=_0x36889e;var _0x18936c,_0x904c99;const _0x5eff68=Date[_0xbaf15(0x34f)]();try{const _0x64ac7d=((_0x18936c=this[_0xbaf15(0x274)]['getConfig'](_0xec5025))==null?void 0x0:_0x18936c[_0xbaf15(0x2c0)])||pn,_0x9fc574=(await this['_httpService']['post'](_0x64ac7d,{'body':JSON[_0xbaf15(0x2aa)]({'taskId':_0x449bb6})}))[_0xbaf15(0x2d1)];if(((_0x904c99=_0x9fc574['error'])==null?void 0x0:_0x904c99[_0xbaf15(0x27f)])!==Z['OK'])return;this[_0xbaf15(0x3e3)](_0x9fc574[_0xbaf15(0x338)],_0x5eff68);}catch(_0x5c09f3){this[_0xbaf15(0x1e5)][_0xbaf15(0x206)](_0x5c09f3);}}async[_0x36889e(0x1c4)](_0x143665){const _0x254da5=_0x36889e;var _0x198c77,_0x4499d0;const _0x4e7669=Date[_0x254da5(0x34f)]();try{const _0x39f105=((_0x198c77=this[_0x254da5(0x274)][_0x254da5(0x237)](_0xec5025))==null?void 0x0:_0x198c77[_0x254da5(0x1d7)])||En,_0x335ea0=_0x143665?_0x39f105+_0x254da5(0x1e4)+encodeURIComponent(_0x143665):_0x39f105,_0x1fface=(await this[_0x254da5(0x24b)][_0x254da5(0x2f9)](_0x335ea0))[_0x254da5(0x2d1)];if(((_0x4499d0=_0x1fface[_0x254da5(0x206)])==null?void 0x0:_0x4499d0['code'])!==Z['OK'])return;this[_0x254da5(0x3e3)](_0x1fface[_0x254da5(0x338)],_0x4e7669);}catch(_0x57179c){this['_logService'][_0x254da5(0x206)](_0x57179c);}}async[_0x36889e(0x21c)](_0x3b535c){const _0x596919=_0x36889e;var _0x3dba9d,_0x19f0de;const _0x22a801=Date[_0x596919(0x34f)]();try{const _0x40bc86=((_0x3dba9d=this[_0x596919(0x274)][_0x596919(0x237)](_0xec5025))==null?void 0x0:_0x3dba9d[_0x596919(0x3ea)])||On,_0x27db71=(await this['_httpService'][_0x596919(0x209)](_0x40bc86,{'body':JSON['stringify']({'taskId':_0x3b535c})}))['body'];if(((_0x19f0de=_0x27db71[_0x596919(0x206)])==null?void 0x0:_0x19f0de['code'])!==Z['OK'])return;this[_0x596919(0x3e3)](_0x27db71[_0x596919(0x338)],_0x22a801);}catch(_0x58d551){this['_logService'][_0x596919(0x206)](_0x58d551);}}[_0x36889e(0x319)](){const _0x4cce43=_0x36889e;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x4cce43(0x208)]-this['_currentUsage']>0x0;}[_0x36889e(0x28c)](){const _0x36d29d=_0x36889e;this[_0x36d29d(0x3c6)]&&(clearTimeout(this[_0x36d29d(0x3c6)]),this[_0x36d29d(0x3c6)]=null);}[_0x36889e(0x3de)](){const _0x319b32=_0x36889e;this[_0x319b32(0x2ad)][_0x319b32(0x1cb)]({'content':this[_0x319b32(0x1f1)]['t'](_0x319b32(0x350)),'type':_0x3551[_0x319b32(0x324)]});}[_0x36889e(0x308)](_0x17f701){const _0x47b479=_0x36889e;for(const _0x2f16e0 of _0x17f701){const {unitId:_0x33367e,sheetId:_0x2e3ba3,range:_0x5e39c5}=_0x2f16e0,_0x28332d=this[_0x47b479(0x1e7)][_0x47b479(0x260)](_0x33367e);if(!_0x28332d)continue;const _0x15c595=_0x28332d['getSheetBySheetId'](_0x2e3ba3);if(!_0x15c595)continue;const _0x2d01da=_0x15c595[_0x47b479(0x1da)]();for(let _0x1f499d=_0x5e39c5[_0x47b479(0x3dc)];_0x1f499d<=_0x5e39c5[_0x47b479(0x263)];_0x1f499d++)for(let _0x1e338e=_0x5e39c5[_0x47b479(0x246)];_0x1e338e<=_0x5e39c5[_0x47b479(0x3c7)];_0x1e338e++){const _0x8b28e8=_0x2d01da[_0x47b479(0x293)](_0x1f499d,_0x1e338e);if(_0x8b28e8&&(_0x20d565(_0x8b28e8['f'])||_0x3dadc3(_0x8b28e8['si'])))return!0x0;}}return!0x1;}};de=vn([P(0x0,_0x43af65(_0x35a021)),P(0x1,_0x19be55),P(0x2,_0x30999b),P(0x3,_0x43af65(_0x144565)),P(0x4,_0x11a3cb),P(0x5,_0x2079f4),P(0x6,_0x43af65(_0x34b1c0))],de);var Tn=Object[_0x36889e(0x39d)],Cn=(_0x3ad582,_0x4523ed,_0x1d0150,_0x2257f7)=>{const _0x4d643c=_0x36889e;for(var _0x2d9def=_0x2257f7>0x1?void 0x0:_0x2257f7?Tn(_0x4523ed,_0x1d0150):_0x4523ed,_0x3a07e6=_0x3ad582[_0x4d643c(0x203)]-0x1,_0x556331;_0x3a07e6>=0x0;_0x3a07e6--)(_0x556331=_0x3ad582[_0x3a07e6])&&(_0x2d9def=_0x556331(_0x2d9def)||_0x2d9def);return _0x2d9def;},De=(_0x5797b6,_0x493c58)=>(_0x375027,_0x126b32)=>_0x493c58(_0x375027,_0x126b32,_0x5797b6);let xe=class extends _0x2d4248{constructor(_0x3fb2b4,_0x4120c0,_0xaeb254){const _0xa40583=_0x36889e;super(),l(this,_0xa40583(0x25a),new Map()),l(this,_0xa40583(0x25e),new Map()),l(this,_0xa40583(0x386),!0x1),(this[_0xa40583(0x274)]=_0x3fb2b4,this['_localStorageService']=_0x4120c0,this['_revisionService']=_0xaeb254);}[_0x36889e(0x264)](){this['_disabled']=!0x0;}[_0x36889e(0x29a)](){const _0x295d6f=_0x36889e;this[_0x295d6f(0x386)]=!0x1;}get[_0x36889e(0x234)](){const _0x4ebdd5=_0x36889e;return this[_0x4ebdd5(0x25e)];}[_0x36889e(0x346)](){const _0x56621d=_0x36889e;this[_0x56621d(0x37c)]()[_0x56621d(0x1f5)](()=>super['dispose']());}async[_0x36889e(0x29b)](_0x2c1eff){const _0xb9af61=_0x36889e;return this[_0xb9af61(0x386)]?null:this[_0xb9af61(0x207)][_0xb9af61(0x1cd)](_0x37fd08(_0x2c1eff));}async[_0x36889e(0x2a5)](_0x5eb7eb,_0x4e3555){const _0xdf957f=_0x36889e;return!!this[_0xdf957f(0x207)][_0xdf957f(0x3eb)](_0x5eb7eb,_0x4e3555);}[_0x36889e(0x30c)](_0x39e50f,_0x311b6f,_0x4ecb08,_0xa97b00){const _0xe6abed=_0x36889e,_0x35a15e=this[_0xe6abed(0x2f6)][_0xe6abed(0x210)](_0x39e50f);this[_0xe6abed(0x25a)][_0xe6abed(0x2e8)](_0x39e50f,{'unitID':_0x39e50f,'type':_0x311b6f,'awaitingChangeset':_0x4ecb08,'mutations':_0xa97b00,'rev':_0x35a15e}),this['_saveTaskMap']['has'](_0x39e50f)||this[_0xe6abed(0x1d6)](_0x39e50f);}[_0x36889e(0x1d6)](_0x3d8a35){const _0x3c1ae6=_0x36889e,_0x220c3c=this[_0x3c1ae6(0x219)]();_0x220c3c===0x0?this['_saveCache'](_0x3d8a35):this[_0x3c1ae6(0x25e)][_0x3c1ae6(0x2e8)](_0x3d8a35,setTimeout(()=>this['_saveCache'](_0x3d8a35),_0x220c3c));}[_0x36889e(0x219)](){const _0x98afa4=_0x36889e;var _0x3e1e51;return(_0x3e1e51=this[_0x98afa4(0x274)][_0x98afa4(0x237)](_0x5127db))!=null?_0x3e1e51:_0x5f4615;}[_0x36889e(0x367)](_0x1361af){const _0x1b81b1=_0x36889e,_0x2c7212=this[_0x1b81b1(0x25e)][_0x1b81b1(0x2f9)](_0x1361af);return _0x2c7212!==void 0x0&&window['clearTimeout'](_0x2c7212),this[_0x1b81b1(0x207)]['setItem'](_0x37fd08(_0x1361af),this[_0x1b81b1(0x25a)][_0x1b81b1(0x2f9)](_0x1361af))[_0x1b81b1(0x1f5)](()=>this['_saveTaskMap'][_0x1b81b1(0x2c3)](_0x1361af));}async['exhaustSavingTask'](){const _0x3b60f8=_0x36889e,_0x473942=[];this[_0x3b60f8(0x25e)][_0x3b60f8(0x385)]((_0x5a5b1e,_0x591310)=>{const _0x43c3b1=_0x3b60f8;window[_0x43c3b1(0x283)](_0x5a5b1e),_0x473942[_0x43c3b1(0x36b)](this[_0x43c3b1(0x367)](_0x591310)[_0x43c3b1(0x1f5)](()=>{const _0x4797cf=_0x43c3b1;this[_0x4797cf(0x25e)][_0x4797cf(0x2c3)](_0x591310);}));}),await Promise[_0x3b60f8(0x1fe)](_0x473942);}};xe=Cn([De(0x0,_0x30999b),De(0x1,_0x59e9d1),De(0x2,_0x43af65(_0x12ae1d))],xe);class Rn extends _0x90cdab{constructor(){const _0xaa581e=_0x36889e;super(),l(this,'urlChange$'),this['urlChange$']=_0x40a393(window,_0xaa581e(0x3d4))[_0xaa581e(0x1dd)](_0x2bd178(this[_0xaa581e(0x3c5)]),_0x3e2590(0x1),_0x13c8e0(void 0x0));}[_0x36889e(0x245)](_0xdd3963,_0x432784,_0x3c252e=!0x1){const _0x1e4d15=_0x36889e,_0x5e7719=new URL(window['location']['href']);_0x5e7719['searchParams'][_0x1e4d15(0x2e8)](_0xdd3963,_0x432784),_0x3c252e?window['history']['replaceState']('','',_0x5e7719[_0x1e4d15(0x3a1)]()):window[_0x1e4d15(0x3e6)]['pushState']('','',_0x5e7719[_0x1e4d15(0x3a1)]());}['removeParam'](_0x48e85f,_0x4b6325=!0x1){const _0x3de438=_0x36889e,_0x4b5c0e=new URL(window[_0x3de438(0x3b1)][_0x3de438(0x34c)]);_0x4b5c0e[_0x3de438(0x336)][_0x3de438(0x2c3)](_0x48e85f),_0x4b6325?window[_0x3de438(0x3e6)][_0x3de438(0x262)]('','',_0x4b5c0e['toString']()):window[_0x3de438(0x3e6)][_0x3de438(0x294)]('','',_0x4b5c0e['toString']());}[_0x36889e(0x3ce)](_0x8bf6e7){const _0x21ee1b=_0x36889e;var _0x2eb37a;return(_0x2eb37a=new URL(window[_0x21ee1b(0x3b1)][_0x21ee1b(0x34c)])[_0x21ee1b(0x336)][_0x21ee1b(0x2f9)](_0x8bf6e7))!=null?_0x2eb37a:void 0x0;}}var Dn=Object[_0x36889e(0x36e)],Nn=Object[_0x36889e(0x39d)],bn=(_0x3627a6,_0x5d5964,_0x4f4ab5)=>_0x5d5964 in _0x3627a6?Dn(_0x3627a6,_0x5d5964,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f4ab5}):_0x3627a6[_0x5d5964]=_0x4f4ab5,Un=(_0x2ae5fa,_0xe931bb,_0x542f43,_0x4f1f11)=>{const _0x6c68ce=_0x36889e;for(var _0x3e9830=_0x4f1f11>0x1?void 0x0:_0x4f1f11?Nn(_0xe931bb,_0x542f43):_0xe931bb,_0x362ca6=_0x2ae5fa[_0x6c68ce(0x203)]-0x1,_0x4563f6;_0x362ca6>=0x0;_0x362ca6--)(_0x4563f6=_0x2ae5fa[_0x362ca6])&&(_0x3e9830=_0x4563f6(_0x3e9830)||_0x3e9830);return _0x3e9830;},Ne=(_0x33b855,_0x3d330d)=>(_0x5344ea,_0x2517c1)=>_0x3d330d(_0x5344ea,_0x2517c1,_0x33b855),Ln=(_0x43d6da,_0x4de9f7,_0x3fb325)=>bn(_0x43d6da,_0x4de9f7+'',_0x3fb325);const Mn=_0x36889e(0x28f);let Be=class extends _0x2a1b8a{constructor(_0x531bad=rt,_0x4543c6,_0x2e2a62,_0x29373d){const _0x2df300=_0x36889e;super(),this[_0x2df300(0x216)]=_0x531bad,this[_0x2df300(0x34b)]=_0x4543c6,this[_0x2df300(0x1fc)]=_0x2e2a62,this[_0x2df300(0x274)]=_0x29373d;const {..._0x303d80}=_0x539c2b({},rt,this[_0x2df300(0x216)]);this['_configService'][_0x2df300(0x29c)](an,_0x303d80);}['onStarting'](){const _0x3f1bd3=_0x36889e;this['_registerDependencies'](),this[_0x3f1bd3(0x3b3)]();}['onRendered'](){this['_registerRenderDependencies']();}[_0x36889e(0x1e9)](){const _0x1c3111=_0x36889e;var _0x3b8fb9;const _0x54414f=[[je],[de],[he],[_e],[le],[Xe],[At,{'useClass':Rn}],[_0x48e9f7,{'useClass':_0x331d4d}],[_0x23d181,{'useClass':xe}],[oe],[ue],[ce],[H],[Ae],[ae]];_0x5cd96d(this[_0x1c3111(0x1fc)],_0x20ba8c(_0x54414f,(_0x3b8fb9=this[_0x1c3111(0x216)])==null?void 0x0:_0x3b8fb9[_0x1c3111(0x2d6)]));}['_registerRenderDependencies'](){const _0x4a1165=_0x36889e;this[_0x4a1165(0x20c)](this[_0x4a1165(0x34b)]['registerRenderModule'](_0xeb1790['UNIVER_DOC'],[ye])),this[_0x4a1165(0x20c)](this[_0x4a1165(0x34b)]['registerRenderModule'](_0xeb1790[_0x4a1165(0x2c7)],[$e]));}[_0x36889e(0x3b3)](){_0x309974(this['_injector'],[[H],[oe],[ue],[ce],[ae],[de]]);}};Ln(Be,'pluginName',Mn),Be=Un([_0xfdebc4(_0x54acb2),Ne(0x1,_0x1461c3),Ne(0x2,_0x43af65(_0x5a50a2)),Ne(0x3,_0x30999b)],Be);var An=Object[_0x36889e(0x39d)],Pn=(_0x315c15,_0x1649fb,_0x9003ee,_0xc7170b)=>{for(var _0x19313c=_0xc7170b>0x1?void 0x0:_0xc7170b?An(_0x1649fb,_0x9003ee):_0x1649fb,_0xa1111c=_0x315c15['length']-0x1,_0x242f7c;_0xa1111c>=0x0;_0xa1111c--)(_0x242f7c=_0x315c15[_0xa1111c])&&(_0x19313c=_0x242f7c(_0x19313c)||_0x19313c);return _0x19313c;},J=(_0x4e67a5,_0x113427)=>(_0x43ae44,_0xc92964)=>_0x113427(_0x43ae44,_0xc92964,_0x4e67a5);let ct=class extends _0x519ec4{constructor(_0x40ba11,_0x112d42,_0x2c40d2,_0x4673eb,_0x4cb7f9){super(_0x40ba11,_0x112d42,_0x2c40d2,_0x4673eb,_0x4cb7f9);}async[_0x36889e(0x358)](_0x2c5795){const _0x3e7a36=_0x36889e,_0x5ae920=await this[_0x3e7a36(0x2ee)](),_0x29108b=this[_0x3e7a36(0x1d9)](_0x2c5795,_0x5ae920);return this[_0x3e7a36(0x3d0)](_0x29108b);}[_0x36889e(0x1d9)](_0x1c2dd8,_0x2a4aad){const _0x88c1d6=_0x36889e,_0x146ed0=typeof window>'u'?new URL(_0x1c2dd8):new URL(_0x1c2dd8,window['location'][_0x88c1d6(0x356)]);_0x146ed0['searchParams'][_0x88c1d6(0x2e8)]('sessionTicket',_0x2a4aad);const _0x336c26=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x88c1d6(0x3b1)][_0x88c1d6(0x37d)]);return _0x336c26[_0x88c1d6(0x2f9)](_0x88c1d6(0x23e))&&_0x146ed0['searchParams'][_0x88c1d6(0x2e8)]('runId',_0x336c26['get'](_0x88c1d6(0x23e))),_0x146ed0[_0x88c1d6(0x3a1)]();}async[_0x36889e(0x2ee)](){const _0x1b6727=_0x36889e;var _0x5c718f,_0x4afffb,_0x5a6810;const _0x1051a6=this[_0x1b6727(0x274)][_0x1b6727(0x237)](_0xec5025),_0xe53cb=(_0x5c718f=_0x1051a6==null?void 0x0:_0x1051a6['wsSessionTicketUrl'])!=null?_0x5c718f:_0x40c209;return(_0x5a6810=(_0x4afffb=(await this[_0x1b6727(0x24b)][_0x1b6727(0x2f9)](_0xe53cb,{'headers':{'Content-Type':_0x1b6727(0x2d7)}}))[_0x1b6727(0x2d1)])==null?void 0x0:_0x4afffb['ticket'])!=null?_0x5a6810:'';}};ct=Pn([J(0x0,_0x43af65(_0x5a50a2)),J(0x1,_0x43af65(_0x144565)),J(0x2,_0x30999b),J(0x3,_0x2079f4),J(0x4,_0x2f12ac)],ct);var wn=Object[_0x36889e(0x39d)],yn=(_0x5118f6,_0x14b523,_0x3d205f,_0x2fa78f)=>{for(var _0x351997=_0x2fa78f>0x1?void 0x0:_0x2fa78f?wn(_0x14b523,_0x3d205f):_0x14b523,_0x309085=_0x5118f6['length']-0x1,_0x1708b5;_0x309085>=0x0;_0x309085--)(_0x1708b5=_0x5118f6[_0x309085])&&(_0x351997=_0x1708b5(_0x351997)||_0x351997);return _0x351997;},be=(_0x719b99,_0x239988)=>(_0xf5830,_0x563ed3)=>_0x239988(_0xf5830,_0x563ed3,_0x719b99);let _t=class extends _0x2d4248{constructor(_0x4a6508,_0x979a39,_0x582b50){const _0x48abb3=_0x36889e;super(),this['_instanceService']=_0x4a6508,this[_0x48abb3(0x24b)]=_0x979a39,this['_configService']=_0x582b50;}async['runOnServer'](_0x237ed2,_0x2a6501,_0x1f6f9f,..._0x234e97){const _0x424224=_0x36889e;var _0x5cdb48,_0x574533,_0x1c6c63,_0x335370;const _0x116c89=this['_instanceService'][_0x424224(0x3cc)]();if(!_0x116c89)throw new Error(_0x424224(0x1d3));const _0x30f08f=((_0x5cdb48=this[_0x424224(0x274)][_0x424224(0x237)](_0x1a66bd))!=null?_0x5cdb48:_0x878450)+'/'+_0x237ed2+_0x424224(0x3d9)+_0x2a6501,_0x3f580a=new URL(window[_0x424224(0x3b1)][_0x424224(0x34c)]),_0x3b52ba={'scriptId':_0x237ed2,'runId':(_0x574533=_0x3f580a[_0x424224(0x336)][_0x424224(0x2f9)](_0x424224(0x23e)))!=null?_0x574533:'','function':_0x2a6501,'unitId':_0x116c89['getUnitId'](),'argsOfFunction':JSON[_0x424224(0x2aa)](_0x234e97),'invokeId':(_0x1c6c63=_0x1f6f9f[_0x424224(0x2c1)])!=null?_0x1c6c63:'','executionId':(_0x335370=_0x1f6f9f['executionId'])!=null?_0x335370:''};try{const _0x53f955=await this[_0x424224(0x24b)][_0x424224(0x209)](_0x30f08f,{'body':_0x3b52ba});return _0x53f955[_0x424224(0x2d1)][_0x424224(0x206)]&&_0x53f955[_0x424224(0x2d1)][_0x424224(0x206)]['code']!==Z['OK']?_0x424224(0x2b7):_0x53f955['body']['result'];}catch{return _0x424224(0x2b7);}}};_t=yn([be(0x0,_0x11a3cb),be(0x1,_0x43af65(_0x144565)),be(0x2,_0x30999b)],_t);const lt=0x7530,ht=_0x36889e(0x1f0);class tr extends _0x2d4248{constructor(){const _0x35fc22=_0x36889e;super(),l(this,_0x35fc22(0x351),_0x106418()),l(this,_0x35fc22(0x1bc),new Set()),l(this,_0x35fc22(0x20f),new Map()),l(this,'_heartbeatTimer',null),l(this,_0x35fc22(0x30f),new Map()),l(this,'_unitStatus',new Map()),this[_0x35fc22(0x1d4)]();}[_0x36889e(0x346)](){const _0x509e4a=_0x36889e;super['dispose'](),this['_clearOtherTimers']['forEach']((_0x22c145,_0x16fc97)=>this[_0x509e4a(0x339)](_0x16fc97)),this[_0x509e4a(0x20e)]&&window['clearInterval'](this[_0x509e4a(0x20e)]);}['getUnitStatus$'](_0x4bb208){const _0x36b31d=_0x36889e;return this[_0x36b31d(0x2ef)](_0x4bb208)[_0x36b31d(0x1dd)](_0x5b1ef3());}[_0x36889e(0x310)](_0x234615){const _0x56d4e0=_0x36889e;this[_0x56d4e0(0x1bc)][_0x56d4e0(0x213)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x56d4e0(0x230)](_0x234615),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x234615],'isForwarded':!0x1});}[_0x36889e(0x35a)](_0x1d4229){const _0x2ddea9=_0x36889e;this[_0x2ddea9(0x1bc)][_0x2ddea9(0x2c3)](_0x1d4229),this[_0x2ddea9(0x1bc)]['size']===0x0&&this[_0x2ddea9(0x20e)]&&window['clearInterval'](this[_0x2ddea9(0x20e)]);}['_init'](){const _0x3d14c2=_0x36889e;this['disposeWithMe'](_0x587d38(_0x40a393(window,_0x3d14c2(0x28b))[_0x3d14c2(0x3d8)](_0x3ea39b=>{const _0x2a745f=_0x3d14c2;if(_0x3ea39b['key']!==ht||!_0x3ea39b[_0x2a745f(0x20b)])return;const _0x3322cd=JSON[_0x2a745f(0x37a)](_0x3ea39b['newValue']);this[_0x2a745f(0x27d)](_0x3322cd);}))),window[_0x3d14c2(0x256)](_0x3d14c2(0x378),()=>this[_0x3d14c2(0x29e)]({'type':0x1,'memberID':this[_0x3d14c2(0x351)],'unitIDs':Array[_0x3d14c2(0x2da)](this[_0x3d14c2(0x1bc)])}));}[_0x36889e(0x27d)](_0x105f08){const _0x13597f=_0x36889e;switch(_0x105f08[_0x13597f(0x212)]){case 0x0:this[_0x13597f(0x22e)](_0x105f08);break;case 0x1:this[_0x13597f(0x3d2)](_0x105f08);break;case 0x2:this[_0x13597f(0x317)](_0x105f08);break;}}['_handleJoinEvent'](_0x3d0082){const _0x4a4ff2=_0x36889e,{unitIDs:_0x44cf4b,memberID:_0x40620,isForwarded:_0x4449cc}=_0x3d0082;_0x44cf4b[_0x4a4ff2(0x385)](_0x11f286=>{const _0x3b8d8b=_0x4a4ff2;if(!_0x4449cc&&this[_0x3b8d8b(0x20f)][_0x3b8d8b(0x3bb)](_0x11f286)&&this[_0x3b8d8b(0x2ef)](_0x11f286)['next'](_0x3326af[_0x3b8d8b(0x1ee)]),!this[_0x3b8d8b(0x20f)]['has'](_0x11f286)||!this['_unitOnClients'][_0x3b8d8b(0x2f9)](_0x11f286)[_0x3b8d8b(0x3bb)](_0x40620)){const _0x2a1be0=this[_0x3b8d8b(0x20f)][_0x3b8d8b(0x2f9)](_0x11f286)||new Set();_0x2a1be0[_0x3b8d8b(0x230)](_0x40620),this[_0x3b8d8b(0x20f)]['set'](_0x11f286,_0x2a1be0),this[_0x3b8d8b(0x305)](_0x40620);}}),_0x4449cc||this[_0x4a4ff2(0x29e)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x4a4ff2(0x1bc)]],'isForwarded':!0x0});}[_0x36889e(0x305)](_0x1819f9){const _0xaf5855=_0x36889e;this[_0xaf5855(0x339)](_0x1819f9);const _0x4652ee=window[_0xaf5855(0x26b)](()=>{const _0x2ef29e=_0xaf5855;this[_0x2ef29e(0x20f)][_0x2ef29e(0x385)](_0x42ff02=>{_0x42ff02['delete'](_0x1819f9);});},lt*0x2);this['_clearOtherTimers'][_0xaf5855(0x2e8)](_0x1819f9,_0x4652ee);}[_0x36889e(0x339)](_0x56d758){const _0x1b39ef=_0x36889e;if(this[_0x1b39ef(0x30f)][_0x1b39ef(0x3bb)](_0x56d758)){const _0x20cf0f=this[_0x1b39ef(0x30f)][_0x1b39ef(0x2f9)](_0x56d758);_0x20cf0f&&window[_0x1b39ef(0x283)](_0x20cf0f),this[_0x1b39ef(0x30f)][_0x1b39ef(0x2e8)](_0x56d758,null);}}[_0x36889e(0x3d2)](_0x2cff35){const _0x148c6a=_0x36889e,{memberID:_0x5dd8b2,unitIDs:_0xb1c758}=_0x2cff35;_0xb1c758['forEach'](_0x874cad=>{const _0x7724c8=_0x4047;var _0x4f9457;const _0x124f25=this['_unitOnClients']['get'](_0x874cad);_0x124f25&&(_0x124f25['delete'](_0x5dd8b2),(_0x4f9457=this[_0x7724c8(0x2ef)](_0x874cad))==null||_0x4f9457[_0x7724c8(0x345)](_0x124f25[_0x7724c8(0x213)]===0x0?_0x3326af[_0x7724c8(0x2ed)]:_0x3326af['OTHER_CLIENTS_EDITING']));}),this[_0x148c6a(0x339)](_0x5dd8b2);}['_handleHeartbeatEvent'](_0x5524c4){this['_scheduleClearOtherTimer'](_0x5524c4['memberID']);}['_send'](_0x3596c9){const _0x14d2f8=_0x36889e;localStorage[_0x14d2f8(0x3eb)](ht,JSON[_0x14d2f8(0x2aa)](_0x3596c9));}[_0x36889e(0x3bf)](){const _0x2e432e=_0x36889e;this[_0x2e432e(0x20e)]=window['setInterval'](()=>{const _0x276a45=_0x2e432e;this[_0x276a45(0x29e)]({'type':0x2,'memberID':this['_id']});},lt);}['_ensureSubject'](_0x3219c9){const _0x263f41=_0x36889e;return this[_0x263f41(0x39e)][_0x263f41(0x3bb)](_0x3219c9)||this[_0x263f41(0x39e)][_0x263f41(0x2e8)](_0x3219c9,new _0x28744e(_0x3326af[_0x263f41(0x2ed)])),this['_unitStatus'][_0x263f41(0x2f9)](_0x3219c9);}}export{ct as BrowserCollaborationSocketService,ae as CollaborationDataLoaderController,oe as DesktopCollaborationStatusDisplayController,At as IURLService,_t as RemoteUniscriptService,qi as SheetCollabCursorShape,Be as UniverCollaborationClientUIPlugin,tr as WebBrowserSingleActiveUnitService,Rn as WebURLService};
|
|
1
|
+
const _0x5724cd=_0x4324;(function(_0x38b829,_0x44d48b){const _0x4e98e5=_0x4324,_0x44961d=_0x38b829();while(!![]){try{const _0x4af66a=-parseInt(_0x4e98e5(0x2af))/0x1+parseInt(_0x4e98e5(0xef))/0x2*(-parseInt(_0x4e98e5(0x2b6))/0x3)+parseInt(_0x4e98e5(0x251))/0x4*(parseInt(_0x4e98e5(0xdc))/0x5)+-parseInt(_0x4e98e5(0x254))/0x6+-parseInt(_0x4e98e5(0x2f4))/0x7+-parseInt(_0x4e98e5(0x261))/0x8+parseInt(_0x4e98e5(0x238))/0x9*(parseInt(_0x4e98e5(0x265))/0xa);if(_0x4af66a===_0x44d48b)break;else _0x44961d['push'](_0x44961d['shift']());}catch(_0x337eae){_0x44961d['push'](_0x44961d['shift']());}}}(_0xc813,0x64321));var Ft=Object[_0x5724cd(0x125)],kt=(_0x17d3fc,_0x9da338,_0x18f896)=>_0x9da338 in _0x17d3fc?Ft(_0x17d3fc,_0x9da338,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18f896}):_0x17d3fc[_0x9da338]=_0x18f896,l=(_0x2c2477,_0x43db81,_0x516c8a)=>kt(_0x2c2477,typeof _0x43db81!=_0x5724cd(0x16d)?_0x43db81+'':_0x43db81,_0x516c8a);import{jsx as _0x3ea50e,jsxs as _0x5fce33}from'react/jsx-runtime';import{CollaborationStatus as _0x50afaa,CollaborationSessionService as _0x2c15e3,CollaborationController as _0x18f9ba,DataLoaderService as _0x2c6881,MemberService as _0x1a6b56,SessionStatus as _0x452290,ILocalCacheService as _0x5b4070,CollaborationUIEventService as _0x5f0edf,CollaborationUIEventId as _0x1513c0,DocCollaborationEntity as _0x342039,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x32c484,getLocalCacheKey as _0xb1ea91,LOCAL_CACHE_INTERVAL as _0x283278,LOCAL_CACHE_INTERVAL_KEY as _0x23a142,UniverCollaborationClientPlugin as _0x21bbd3,CollaborationSocketService as _0x155bb6,DEFAULT_WS_SESSION_TICKET_URL as _0x392e41,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x1f66b6,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x4e25d6,UnitStatus as _0x509d02}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x234aab,IUniverInstanceService as _0x166a1e,Inject as _0x4db080,Injector as _0xca9a6f,Disposable as _0x2916da,createIdentifier as _0x5e1b6d,ILogService as _0x1edaba,ICommandService as _0x3d0367,Optional as _0x28a111,RxDisposable as _0x466553,Workbook as _0x2d40a7,DOC_RANGE_TYPE as _0x4bed57,debounce as _0x322732,Rectangle as _0x3fa0cb,DisposableCollection as _0x43401e,toDisposable as _0xc6be91,UniverInstanceType as _0x5483ba,generateRandomId as _0x46dcf5,COLORS as _0x675d83,ColorKit as _0x40a014,ThemeService as _0x571088,fromEventSubject as _0x57e071,Tools as _0x352d2a,CommandType as _0x393e92,IConfigService as _0xa43f31,CanceledError as _0x426e2a,isFormulaString as _0x444db3,isFormulaId as _0xaf5a34,ILocalStorageService as _0x5d62b5,DependentOn as _0x30d103,Plugin as _0x4c752d,merge as _0x21d242,registerDependencies as _0x4e8074,mergeOverrideWithDependencies as _0x6b7a83,touchDependencies as _0x19cfd9}from'@univerjs/core';import{useObservable as _0x4756b4,useDependency as _0x2bd7e4,IUIPartsService as _0x3ff3af,BuiltInUIPart as _0x1c67bd,connectInjector as _0x3aeb97,IBeforeCloseService as _0x578e72,IMessageService as _0x60d69d,INotificationService as _0x44eeb7}from'@univerjs/ui';import{BehaviorSubject as _0x29a5ca,switchMap as _0xa10b69,of as _0x2a30cc,takeUntil as _0x29d39,debounceTime as _0x19dce7,Subject as _0x303857,filter as _0x1d12b5,merge as _0x14f17d,combineLatest as _0x57e5ce,fromEvent as _0xba30,shareReplay as _0x44c2b3,mapTo as _0x3ab484,distinctUntilChanged as _0x5c79da}from'rxjs';import{Tooltip as _0x41ecc8,clsx as _0x386c2c,MessageType as _0x408d4f}from'@univerjs/design';import{useRef as _0x569e42,createElement as _0x3f82cd,forwardRef as _0x5dd539,useCallback as _0x73dded}from'react';import{IRemoteInstanceService as _0x30a3e3}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x49cac3,RefRangeService as _0x1006f2,SetSelectionsOperation as _0x38a87a,SheetsSelectionsService as _0x1edee4,EffectRefRangId as _0x5d6206,handleIRemoveRow as _0x46d1c8,handleIRemoveCol as _0xe874f5,handleMoveRange as _0x397e48,handleInsertRow as _0x2deae8,handleInsertRangeMoveRight as _0x45c5a6,handleInsertRangeMoveDown as _0x46e032,handleInsertCol as _0x167ad0,handleDeleteRangeMoveUp as _0x689337,handleDeleteRangeMoveLeft as _0x58c097,runRefRangeMutations as _0x2d0a41}from'@univerjs/sheets';import{Shape as _0x376f96,Rect as _0x5a4309,getColor as _0x4741e2,RegularPolygon as _0x11a369,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x1aaa34,Vector2 as _0x3be4b3,SHEET_VIEWPORT_KEY as _0x1e6b43,IRenderManagerService as _0x21229d}from'@univerjs/engine-render';import{HTTPService as _0x367dbf,ISocketService as _0x3c3284,WebSocketService as _0x36b239}from'@univerjs/network';import{IDocClipboardService as _0xbfc833,NodePositionConvertToCursor as _0x2118c1,NodePositionConvertToRectRange as _0x57a528,TEXT_RANGE_LAYER_INDEX as _0x3dd04b,SetDocZoomRatioOperation as _0x28c097,DocIMEInputManagerService as _0x15fd68,DocStateChangeManagerService as _0xf2cfc0}from'@univerjs/docs-ui';import{IImageIoService as _0x3b68ae}from'@univerjs/drawing';import{ITransformService as _0x4603fd,CollaborationEvent as _0x1c5ec5,isTransformMutationFailure as _0x48ab2e,isTransformMutationsWithChangesetSuccess as _0x11903c,RevisionService as _0x294c44,ISnapshotServerService as _0x5030fd}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x38bad8,RichTextEditingMutation as _0x1cf356,DocSelectionManagerService as _0x5a5e71,DocSkeletonManagerService as _0x33170f}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x428cf8,serializeRangeWithSheet as _0x25d8d1,FormulaExecuteStageType as _0x4cc043,FormulaExecutedStateType as _0x3cc8fe,SetFormulaCalculationStartMutation as _0x5f11a2,SetFormulaCalculationNotificationMutation as _0x3da7cf}from'@univerjs/engine-formula';import{map as _0x2ac750,filter as _0x23fe25,throttleTime as _0x51e9be,takeUntil as _0xd4923a,switchMap as _0x4b25bc}from'rxjs/operators';import{SheetSkeletonManagerService as _0x232217,getCoordByCell as _0x489060,getSheetObject as _0xcf58dc}from'@univerjs/sheets-ui';function Ve({ref:_0x1fe498,..._0x50f548}){const _0x36633a=_0x5724cd,{icon:_0x556d02,id:_0x5751c8,className:_0x390c61,extend:_0x2ba19f,..._0x3d6bf6}=_0x50f548,_0x46205c=(_0x36633a(0x1af)+_0x5751c8+'\x20'+(_0x390c61||''))[_0x36633a(0x2aa)](),_0x15d5e0=_0x569e42('_'+gi());return Ut(_0x556d02,''+_0x5751c8,{'defIds':_0x556d02[_0x36633a(0x1e0)],'idSuffix':_0x15d5e0[_0x36633a(0x131)]},{'ref':_0x1fe498,'className':_0x46205c,..._0x3d6bf6},_0x2ba19f);}function Ut(_0x5c58dd,_0x354688,_0x252197,_0x2f2e81,_0x173d22){const _0x103a6e=_0x5724cd;return _0x3f82cd(_0x5c58dd[_0x103a6e(0x14e)],{'key':_0x354688,...mi(_0x5c58dd,_0x252197,_0x173d22),..._0x2f2e81},(fi(_0x5c58dd,_0x252197)[_0x103a6e(0x1e6)]||[])[_0x103a6e(0x30d)]((_0x3e127a,_0x32be2d)=>Ut(_0x3e127a,_0x354688+'-'+_0x5c58dd[_0x103a6e(0x14e)]+'-'+_0x32be2d,_0x252197,void 0x0,_0x173d22)));}function mi(_0x54a6d5,_0x115e41,_0x5c1a6c){const _0x5d5d65=_0x5724cd,_0x1dbe88={..._0x54a6d5['attrs']};_0x5c1a6c!=null&&_0x5c1a6c['colorChannel1']&&_0x1dbe88['fill']==='colorChannel1'&&(_0x1dbe88['fill']=_0x5c1a6c[_0x5d5d65(0x101)]),_0x54a6d5[_0x5d5d65(0x14e)]===_0x5d5d65(0xe5)&&_0x1dbe88['id']&&(_0x1dbe88['id']=_0x1dbe88['id']+_0x115e41['idSuffix']),Object[_0x5d5d65(0x21d)](_0x1dbe88)[_0x5d5d65(0x1a5)](([_0x55f16f,_0x178120])=>{const _0x2631c9=_0x5d5d65;_0x55f16f===_0x2631c9(0xe5)&&typeof _0x178120==_0x2631c9(0x248)&&(_0x1dbe88[_0x55f16f]=_0x178120[_0x2631c9(0x1de)](/url\(#(.*)\)/,'url(#$1'+_0x115e41['idSuffix']+')'));});const {defIds:_0x2cae42}=_0x115e41;return!_0x2cae42||_0x2cae42['length']===0x0||(_0x54a6d5[_0x5d5d65(0x14e)]==='use'&&_0x1dbe88[_0x5d5d65(0x291)]&&(_0x1dbe88[_0x5d5d65(0x291)]=_0x1dbe88[_0x5d5d65(0x291)]+_0x115e41[_0x5d5d65(0x1f5)]),Object[_0x5d5d65(0x21d)](_0x1dbe88)[_0x5d5d65(0x1a5)](([_0xbb3173,_0x4ebc09])=>{const _0xb8e899=_0x5d5d65;typeof _0x4ebc09=='string'&&(_0x1dbe88[_0xbb3173]=_0x4ebc09['replace'](/url\(#(.*)\)/,_0xb8e899(0x1b5)+_0x115e41[_0xb8e899(0x1f5)]+')'));})),_0x1dbe88;}function fi(_0x289699,_0x38d34d){const _0x5331b5=_0x5724cd;var _0x21b831;const {defIds:_0x5074ef}=_0x38d34d;return!_0x5074ef||_0x5074ef[_0x5331b5(0x173)]===0x0?_0x289699:_0x289699[_0x5331b5(0x14e)]===_0x5331b5(0x302)&&((_0x21b831=_0x289699[_0x5331b5(0x1e6)])!=null&&_0x21b831[_0x5331b5(0x173)])?{..._0x289699,'children':_0x289699[_0x5331b5(0x1e6)][_0x5331b5(0x30d)](_0x1d5872=>typeof _0x1d5872[_0x5331b5(0xd4)]['id']==_0x5331b5(0x248)&&_0x5074ef&&_0x5074ef[_0x5331b5(0x1c1)](_0x1d5872['attrs']['id'])?{..._0x1d5872,'attrs':{..._0x1d5872[_0x5331b5(0xd4)],'id':_0x1d5872[_0x5331b5(0xd4)]['id']+_0x38d34d[_0x5331b5(0x1f5)]}}:_0x1d5872)}:_0x289699;}function gi(){const _0x1def8a=_0x5724cd;return Math[_0x1def8a(0x182)]()['toString'](0x24)[_0x1def8a(0x2e7)](0x2,0x8);}Ve[_0x5724cd(0x2b0)]=_0x5724cd(0x15e);const vi={'tag':_0x5724cd(0x247),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x5724cd(0x134),'width':_0x5724cd(0xf8),'height':_0x5724cd(0xf8)},'children':[{'tag':'g','attrs':{'clipPath':_0x5724cd(0x188)},'children':[{'tag':_0x5724cd(0xfb),'attrs':{'stroke':_0x5724cd(0x146),'d':_0x5724cd(0x206),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5724cd(0x302),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x5724cd(0xfb),'attrs':{'fill':_0x5724cd(0x304),'d':_0x5724cd(0x303)}}]}]}],'defIds':[_0x5724cd(0x259)]},Lt=_0x5dd539(function(_0x32c011,_0xde43f3){const _0x2c3337=_0x5724cd;return _0x3f82cd(Ve,Object['assign']({},_0x32c011,{'id':_0x2c3337(0x21c),'ref':_0xde43f3,'icon':vi}));});Lt['displayName']=_0x5724cd(0x1e7);const Ei={'tag':_0x5724cd(0x247),'attrs':{'xmlns':_0x5724cd(0xe7),'fill':_0x5724cd(0x242),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x5724cd(0xf8)},'children':[{'tag':'g','attrs':{'clipPath':_0x5724cd(0x282)},'children':[{'tag':_0x5724cd(0xfb),'attrs':{'stroke':_0x5724cd(0x146),'d':_0x5724cd(0x11d),'strokeLinecap':_0x5724cd(0x2f9),'strokeLinejoin':_0x5724cd(0x2f9),'strokeWidth':1.2}}]},{'tag':_0x5724cd(0x302),'attrs':{},'children':[{'tag':_0x5724cd(0x1fc),'attrs':{'id':_0x5724cd(0x103)},'children':[{'tag':'path','attrs':{'fill':_0x5724cd(0x304),'d':_0x5724cd(0x303),'transform':_0x5724cd(0x2fa)}}]}]}],'defIds':[_0x5724cd(0x103)]},Mt=_0x5dd539(function(_0x22619a,_0xc62a26){const _0x412965=_0x5724cd;return _0x3f82cd(Ve,Object['assign']({},_0x22619a,{'id':_0x412965(0x2cf),'ref':_0xc62a26,'icon':Ei}));});Mt['displayName']=_0x5724cd(0x14a);function pi(_0x1ac015){const _0x1184ae=_0x5724cd;switch(_0x1ac015){case _0x50afaa[_0x1184ae(0x171)]:return'collabStatus.offline';case _0x50afaa[_0x1184ae(0x1df)]:return _0x1184ae(0x1ed);case _0x50afaa[_0x1184ae(0x243)]:return _0x1184ae(0x305);case _0x50afaa['NOT_COLLAB']:return'collabStatus.notCollab';case _0x50afaa[_0x1184ae(0x1f6)]:case _0x50afaa[_0x1184ae(0x290)]:return _0x1184ae(0x1a6);case _0x50afaa[_0x1184ae(0x18c)]:case _0x50afaa['PENDING']:return'collabStatus.synced';}}function _0xc813(){const _0x2a9c23=['getTypeOfUnitAdded$','_localeService','CLOSE_ROOM','tag','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','disableLocalCache','history','transformRemoteChangeset','_docSkeleton','isArray','_localStorageService','onPointerMove$','add','_scene','/run/','event$','_context','_hovered','redoState','UniverIcon','onPointerEnter$','ENTITLE_REPORT_LIMIT_EXCEED','getCurrent','_notificationService','_name','unitId','SNAPSHOT_HAS_BEEN_REMOVED','params','_session','COMPLETION_FINISHED','dispose$','now','_init','LICENSE_EXPORT_SIZE_EXCEEDED','symbol','[CollaborationDataLoaderController]','init','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','OFFLINE','getMemberID','length','ENTITLE_CAN_NOT_BUY_LOWER_OTP','ENSURE_SNAPSHOT_EXECUTION','APPLY_REJECT','setTimeout','unit','invokeId','UNRECOGNIZED','addEventListener','_cachedData','_hasFormulaInDirtyRanges','_docTransformIMECacheService','row','USER_IS_ANONYMOUS','m2Prime','random','data','_configService','key','getCurrentSelections','exhaustSavingTask','url(#off-line-icon_clip0_910_343)','then','collaboration.closeRoom','LICENSE_IMPORT_SIZE_EXCEEDED','SYNCED','_initResize','rgba(255,\x20255,\x20255,\x200.01)','DeleteRangeMoveUpCommandId','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','isActive','error','getSkeleton','NO_OTHER_CLIENTS_EDITING','_initCommandInterceptor','REDEMPTION_CODE_NOT_STARTED','_startDocCollabCursor','_applyCommand','_transformService','startFormulaLimitUrl','REDEMPTION_USER_NOT_ELIGIBLE','LOGIN_TOKEN_PROCESSING_FAILED','univer-mr-2\x20univer-flex\x20univer-text-xl','_eventUnsubscribe','href','_setFormulaLimitStatus','_getFormulaLimitStatus','_urlService','_lastPointer','_getScale','forEach','collabStatus.syncing','_saveCache','result','removeParam','_cursor','ranges','uni.network.url-service','engine','_docSkeletonManagerService','univerjs-icon\x20univerjs-icon-','_httpService','subscribeEvent','_transformUndoRedoStack','getMergeData','_onRefRangeChange','url(#$1','selection','currentTheme$','type','transformIMECache','toRgbString','height','onLocalMutation','delete','formula.calculation.unable','OTHER_CLIENTS_EDITING','transformByState','includes','YUUMI_NO_CUBOID_FOR_QUESTION','getParam','onMouseMove','eventID','getViewport','_showGuardMessage','_checkCalculationAvailable','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','/universer-api/license/formula/limit/start','_instanceService','_taskIds','Failed','subscribe','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','has','fillText','application/json','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_initEvent','size','getRangePointData','setActiveRange','...','ENTITLE_DUP_SUBSCRIPTION','triggerDblclick','evenodd','fillRule','executeCommand','replace','CONFLICT','defIds','_shapes','disposeWithMe','runId','_setupSubUnitSync','_uiPartsService','children','OffLineIcon','selections','SNAPSHOT_INVALID_SNAPSHOT','MOBILE_HAS_BEEN_BOUND','makeDirty','onPointerLeave$','collabStatus.conflict','getCurrentUnitForType','unsubscribe','fillStyle','WECHAT_HAS_BEEN_BOUND','backgroundColor','subunit','YUUMI_AI_RUN_FAILED','idSuffix','AWAITING','getUniverSheetInstance','TOO_MANY_REQUESTS','_removeCollabCursors','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','actions','clipPath','AUTHORIZE_CODE_ILLEGAL','_scheduleSaving','_onCursorUpdate','collab-text-anchor-','origin','restore','some','FromArray','_dataLoaderService','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','dispose','lineTo','div','_assignedColors','arc','_collaborationController','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','getCurrentRevOfUnit','endRow','_unitStatus','permission.title','getStateCache','split','_heartbeatTimer','pluginName','getActiveSheet','CHANGESET_REVISION_CONFILICT','debug','_injector','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','createSocket','off-line-icon','entries','_doCreateSocket','UNAUTHENTICATED','_drawAnchor','_updateSubUnitFromURLParams','INTERNAL_ERROR','replaceDocRanges','formula.calculation.waiting','_updateCollabCursors','code','setShapeProps','_memberService','collaboration-client.offline-data-not-saved','YUUMI_TABLE_NOT_FOUND_IN_UNIT','name','_docStateChangeManagerService','ENTITLE_NEED_BILLING_ADDRESS','reconnect','_sheetSkeletonManagerService','m1Prime','getOwnPropertyDescriptor','_roomMembers$','getCollabEntity$','OTHER_CLIENT_EDITING','_refRangeService','saveTaskMap','limitInfo','29979VFHYDP','START_CALCULATION','_handleLeaveEvent','INVALID_ARGUMENT','drawWith','RemoveColCommandId','max','_status$','_createSocketURL','PY_RUNTIME_SCRIPT_ERROR','none','FETCH_MISS','green.600','post','_toggleOnline','svg','string','_setupBeforeClosingHandler','collab-client.tooltip.reconnect','transform','registerRenderModule','beginPath','Error','searchParams','functionsExecutedState','301060wuhwQE','mutations','unload','2061678PyTjLz','APPLY_NON_SEQUENTIAL_REVISION','_getMergeRange','getCollabCursors$','_unitOnClients','off-line-icon_clip0_910_343','getUnitId','_handleEvent','findNodePositionByCharIndex','REDEMPTION_CODE_INACTIVE','registerBeforeClose','hide','executionId','5814360UuplYo','_logService','loadUnit','black','7610bwUOEi','_drawRectRange','_collabSessionService','pushState','SUCCESS','enableLocalCache','Loading','collabCursorState$','syncEditingCollabCursor','wsSessionTicketUrl','_getSheetObject','_onCursorDelete','measureText','clearTimeout','flatMap','stringify','width','_syncEditingCollabCursorService','transformMutation','getItem','_initDependencies','override','_collabCursorController','_config','EMAIL_HAS_BEEN_BOUND','APPLY_REVISION_CONFILICT','SUBMIT_CHANGESET_TIMEOUT','YUUMI_RATE_OVER_LIMIT','collab-rect-range-','url(#on-line-icon_clip0_910_349)','getActiveRange','_textBubble','range','color','APPLY_DUPLICATED','labelPosition','newValue','clearInterval','UNIVER_DOC','textRanges','top','_maxFormulaLimit','PAYMENT_CHANNEL_NOT_SUPPORT','AWAITING_WITH_PENDING','xlink:href','USER_NOT_INVITED_CODE','setParam','session.collaboration-timeout','focused$','ticket','get','_hover','_renderManagerService','stageInfo','show','MOBILE_VERIFY_CODE_MISMATCH','startRow','InsertRowCommandId','LICENSE_MAX_UNITS_EXCEEDED','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','YUUMI_CONNECTOR_URL_NOT_FOUND','endColumn','disposeUnit','HEADER_MENU','undoState','InsertRangeMoveRightCommandId','PERMISSION_DENIED','_draw','body','trim','getUndoRedoMutationParamsCache','sessionTicket','InsertColCommandId','getUnit','361565jQNxhs','displayName','INVITE_CODE_HAS_BEEN_UES','getformulaLimitStatusUrl','subUnitId','addHandlerCallback','blue.400','1241121pXerLm','startColumn','_checkAndWaitForCalculationPermission','_startSheetCollabCursor','cursorInfo','setAlpha','sessionStatus$','EMAIL_VERIFY_CODE_MISMATCH','_revisionService','unitID','getRelativeToViewportCoord','isEditing','unshift','INVALID_INVITE_CODE','saveOfflineData','_cursorShapes','_getSaveTimeout','getColorFromTheme','_lastResponseTimestamp','_labelPosition','getConfig','_imageIoService','ALREADY_EXISTS','maxFormulaLimit','_selfUnitIDs','on-line-icon','_clearOtherTimers','_disabled','roomMembers$','UNIVER_SHEET','Success','source','fill','_handleHeartbeatEvent','getFocusedUnit','univer-flex\x20univer-items-center','getDocRanges','LICENSE_DISTRO_REJECTED','_updateLocalCursor','MoveRangeCommandId','_cursors','_colorIndex','red.300','_range','with','YUUMI_ALL_TABLES_IS_INVALID','_registerDependencies','parse','parseInt','substring','_color','_anchor','_saveTaskMap','_cursorInfo$','push','REDEMPTION_CODE_HAS_BEEN_CREATED','_pollingInterval','_commandService','set','INVITE_CODE_REQUIRED','_drawTextRange','LOGIN_FAILED','3532235WAQsTj','addClipboardHook','assignAColorForMemberID','_registerRenderDependencies','_localCacheService','round','translate(.97)','beforeCommandExecuted','INVITE_CODE_ALREADY_BOUND','USER_NOT_FOUND','_online','min','_docTransformStateCacheService','VIEW_MAIN','defs','M0\x200H16V16H0z','white','collabStatus.fetchMiss','UNDEFINED','_colorAssignService','_document','ERROR_AGAIN','setItem','sheetId','CONNECTOR_DATA_TOO_LARGE','map','getSheetId','onStarting','_releaseCalculationLimit','_handleHover','attrs','_updateURLWithCurrentState','cursorInfo$','docStateChange$','_initCommandExecutedListener','session.connection-failed','_currentUsage','search','15GDZayW','urlChange$','ENTITLE_CHAT_LIMIT_EXCEED','getRenderById','resize','_univerInstanceService','ONLINE','createInstance','popstate','mask','_render','http://www.w3.org/2000/svg','CURRENT_STATUS_CANNOT_OPERATE','_id','status$','runOnServer','_initStatusListener','_hideTimer','Warning','2AxiDiy','YUUMI_UNABLE_LOAD_URL','_docSyncEditingCollabCursorService','_transformHistoryAndStateStack','TEXT','sheetID','asObservable','transformStateCache','_scheduleHeartbeat','1em','send','_anchorDot','path','getSheetBySheetId','getCellMatrix','REDEMPTION_INVALID_CODE','getMember','_refreshCollabCursors','colorChannel1','_collaborationUIEventService','on-line-icon_clip0_910_349','getUnitStatus$','_initStatusComponent','_backgroundColor','formula.calculation.started','complete','entityInit$','registerRefRange','collaboration-client-ui.config','_send','NOT_FOUND','REDEMPTION_CODE_FULLY_REDEEMED','_clearPolling','roomMembers','_beforeCloseService','JOIN_ROOM_FAILED','_ensureSubject','jiqing.500','text','getValue','currentSkeleton$','setStateCache','deepClone','onCommandExecuted','column','requireSession','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','_themeService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','UPDATE_CURSOR','_removeClearOtherTimer','toString','closePath','_messageService','defineProperty','memberID','_entities','save','_collabCursorState$','_initEntityListener','hovered','YUUMI_SUBSCRIPTION_NOT_FOUND','ENTITLE_INSUFFICIENT_QUOTA','USERS_LEAVE','startsWith','next','current','NOT_COLLAB','storage','0\x200\x2016\x2016','addObject','_docTransformSelectionsService','onRendered','APPLY_PERMISSION_DENIED','getAncestorScale','_entityInit$','location','stage','transformMutationsWithChangeset','_docClipboardService','doc.mutation.rich-text-editing','DeleteRangeMoveLeftCommandId','editingUnit','REDEMPTION_USER_REDEEM_TIMES_EXCEED','YUUMI_ASYNCIO_CANCELLED','_toggleOffline','_scheduleClearOtherTimer','currentColor','replaceState','pipe','values','OnLineIcon'];_0xc813=function(){return _0x2a9c23;};return _0xc813();}function _0x4324(_0x16bf3,_0x1b3031){const _0xc81348=_0xc813();return _0x4324=function(_0x4324cf,_0x5b75d9){_0x4324cf=_0x4324cf-0xd0;let _0xa432ba=_0xc81348[_0x4324cf];return _0xa432ba;},_0x4324(_0x16bf3,_0x1b3031);}function Oi(_0x3a815d){const _0x45d3ca=_0x5724cd,{status$:_0x550236}=_0x3a815d,_0x2e41ef=_0x4756b4(_0x550236,_0x50afaa[_0x45d3ca(0x132)]),_0x3b30d0=_0x2bd7e4(_0x234aab),_0x269256=_0x2bd7e4(_0x2c15e3),_0x45dc2e=_0x2e41ef!==_0x50afaa[_0x45d3ca(0x171)],_0x1838ed=_0x3b30d0['t'](pi(_0x2e41ef)),_0xdfa4a0=_0x45dc2e?_0x3ea50e(Mt,{}):_0x3ea50e(Lt,{}),_0x52b798=_0x73dded(()=>{const _0x20027b=_0x45d3ca;_0x45dc2e||_0x269256[_0x20027b(0x22e)]();},[_0x45dc2e,_0x269256]);function _0x29167f(){const _0x2125e8=_0x45d3ca;return _0x5fce33(_0x2125e8(0x209),{'className':_0x2125e8(0x2d9),'onClick':_0x52b798,'children':[_0x3ea50e('div',{'className':_0x386c2c(_0x2125e8(0x19d),{'univer-text-green-500':_0x45dc2e,'univer-text-red-500':!_0x45dc2e}),'children':_0xdfa4a0}),_0x3ea50e(_0x2125e8(0x209),{'className':_0x2125e8(0x1c9),'children':_0x1838ed})]});}return _0x45dc2e?_0x29167f():_0x3ea50e(_0x41ecc8,{'title':_0x3b30d0['t'](_0x45d3ca(0x24a)),'children':_0x29167f()});}var Ti=Object[_0x5724cd(0x231)],Ci=(_0x125330,_0x4983e1,_0x4e7f0c,_0x3a8e15)=>{const _0x160b11=_0x5724cd;for(var _0x96e63a=_0x3a8e15>0x1?void 0x0:_0x3a8e15?Ti(_0x4983e1,_0x4e7f0c):_0x4983e1,_0x4c9711=_0x125330[_0x160b11(0x173)]-0x1,_0x1d5aa7;_0x4c9711>=0x0;_0x4c9711--)(_0x1d5aa7=_0x125330[_0x4c9711])&&(_0x96e63a=_0x1d5aa7(_0x96e63a)||_0x96e63a);return _0x96e63a;},se=(_0x3807f5,_0x4f6969)=>(_0x1d814f,_0x3dda3d)=>_0x4f6969(_0x1d814f,_0x3dda3d,_0x3807f5);let oe=class extends _0x2916da{constructor(_0x362c92,_0x2685c5,_0x441b42,_0x2cbe73){const _0xc3f18d=_0x5724cd;super(),l(this,_0xc3f18d(0x23f),new _0x29a5ca(_0x50afaa['NOT_COLLAB'])),(this[_0xc3f18d(0xe1)]=_0x362c92,this[_0xc3f18d(0x219)]=_0x2685c5,this['_collaborationController']=_0x441b42,this[_0xc3f18d(0x1e5)]=_0x2cbe73,this[_0xc3f18d(0x105)](),this['_initStatusListener']());}[_0x5724cd(0xec)](){const _0x2bc9a8=_0x5724cd;this[_0x2bc9a8(0x1e2)](this['_univerInstanceService'][_0x2bc9a8(0x295)][_0x2bc9a8(0x148)](_0xa10b69(()=>{const _0xd49107=_0x2bc9a8,_0x31f0d3=this[_0xd49107(0xe1)][_0xd49107(0x2d8)]();return _0x31f0d3?this[_0xd49107(0x20c)][_0xd49107(0x233)](_0x31f0d3[_0xd49107(0x25a)]()):_0x2a30cc(null);}),_0xa10b69(_0x1ae58a=>_0x1ae58a?_0x1ae58a[_0x2bc9a8(0xea)]:_0x2a30cc(_0x50afaa[_0x2bc9a8(0x132)])))['subscribe'](_0x5bdd65=>{const _0x4b63d8=_0x2bc9a8;this[_0x4b63d8(0x23f)][_0x4b63d8(0x130)](_0x5bdd65);}));}[_0x5724cd(0x105)](){const _0x2774c1=_0x5724cd;this['disposeWithMe'](this[_0x2774c1(0x1e5)]['registerComponent'](_0x1c67bd[_0x2774c1(0x2a4)],()=>_0x3aeb97(Ri({'status$':this[_0x2774c1(0x23f)][_0x2774c1(0xf5)]()}),this[_0x2774c1(0x219)])));}};oe=Ci([se(0x0,_0x166a1e),se(0x1,_0x4db080(_0xca9a6f)),se(0x2,_0x4db080(_0x18f9ba)),se(0x3,_0x3ff3af)],oe);function Ri(_0x4f98b1){const {status$:_0x483a76}=_0x4f98b1;return function(){return _0x3ea50e(Oi,{'status$':_0x483a76});};}const At=_0x5e1b6d(_0x5724cd(0x1ac));var Di=Object[_0x5724cd(0x231)],Ni=(_0x1eeee2,_0x27bbec,_0x1f1d67,_0x203b19)=>{for(var _0xef71c6=_0x203b19>0x1?void 0x0:_0x203b19?Di(_0x27bbec,_0x1f1d67):_0x27bbec,_0x228267=_0x1eeee2['length']-0x1,_0x12baa9;_0x228267>=0x0;_0x228267--)(_0x12baa9=_0x1eeee2[_0x228267])&&(_0xef71c6=_0x12baa9(_0xef71c6)||_0xef71c6);return _0xef71c6;},K=(_0x267b2c,_0x4fe574)=>(_0x3a8f6b,_0x17fe6f)=>_0x4fe574(_0x3a8f6b,_0x17fe6f,_0x267b2c);let ae=class extends _0x466553{constructor(_0x6a6752,_0x134a9d,_0x1d884d,_0x442dd8,_0x8e1f70){const _0x2551f3=_0x5724cd;super(),this[_0x2551f3(0x1a2)]=_0x6a6752,this['_logService']=_0x134a9d,this[_0x2551f3(0x2ef)]=_0x1d884d,this[_0x2551f3(0x205)]=_0x442dd8,_0x8e1f70?_0x8e1f70==null||_0x8e1f70['whenReady']()['then'](()=>this[_0x2551f3(0x16b)]()):(this[_0x2551f3(0x262)][_0x2551f3(0x218)](_0x2551f3(0x16e),_0x2551f3(0x1cf)),this['_init']());}async[_0x5724cd(0x16b)](){const _0x5edd33=_0x5724cd,_0x3ff3b7=this[_0x5edd33(0x1a2)][_0x5edd33(0x1c3)](_0x5edd33(0x178)),_0x39dbf2=this[_0x5edd33(0x1a2)][_0x5edd33(0x1c3)](_0x5edd33(0x1b8)),_0x5054c6=this[_0x5edd33(0x1a2)][_0x5edd33(0x1c3)](_0x5edd33(0x1f3));if(!_0x3ff3b7||!_0x39dbf2){this[_0x5edd33(0x262)][_0x5edd33(0x218)](_0x5edd33(0x16e),_0x5edd33(0x14f));return;}const _0x4e7ff5=await this[_0x5edd33(0x205)][_0x5edd33(0x263)](_0x3ff3b7,Number(_0x39dbf2),_0x5054c6);_0x4e7ff5&&_0x4e7ff5 instanceof _0x2d40a7&&this['_setupSubUnitSync'](_0x4e7ff5);}async[_0x5724cd(0x1e4)](_0x292ba4){const _0x5a1207=_0x5724cd;await this[_0x5a1207(0x221)](_0x292ba4),_0x292ba4['activeSheet$'][_0x5a1207(0x148)](_0x29d39(this['dispose$']))['subscribe'](_0x1220dd=>{_0x1220dd&&this['_updateURLWithCurrentState'](_0x1220dd);}),this[_0x5a1207(0x1a2)]['urlChange$']['pipe'](_0x29d39(this['dispose$']))[_0x5a1207(0x1ce)](()=>this[_0x5a1207(0x221)](_0x292ba4));}[_0x5724cd(0xd5)](_0x34860e,_0x54d8b7=!0x1){const _0x16d079=_0x5724cd,_0x104779=this[_0x16d079(0x1a2)][_0x16d079(0x1c3)](_0x16d079(0x1f3));_0x34860e[_0x16d079(0xd0)]()!==_0x104779&&this[_0x16d079(0x1a2)][_0x16d079(0x293)]('subunit',_0x34860e['getSheetId'](),_0x54d8b7);}async[_0x5724cd(0x221)](_0x182305){const _0x5a8919=_0x5724cd;var _0x2d173b;const _0x59599b=this[_0x5a8919(0x1a2)][_0x5a8919(0x1c3)](_0x5a8919(0x1f3));if(!_0x59599b||!_0x182305[_0x5a8919(0xfc)](_0x59599b)){const _0x5c4a82=_0x182305['getUnhiddenWorksheets']()[0x0],_0x4b11f8=_0x182305['getSheetBySheetId'](_0x5c4a82);if(!_0x4b11f8)return;this['_updateURLWithCurrentState'](_0x4b11f8,!0x0),await this[_0x5a8919(0x2ef)][_0x5a8919(0x1dd)](_0x49cac3['id'],{'unitId':_0x182305[_0x5a8919(0x25a)](),'subUnitId':_0x5c4a82});return;}((_0x2d173b=_0x182305[_0x5a8919(0x216)]())==null?void 0x0:_0x2d173b['getSheetId']())!==_0x59599b&&await this['_commandService'][_0x5a8919(0x1dd)](_0x49cac3['id'],{'unitId':_0x182305[_0x5a8919(0x25a)](),'subUnitId':_0x59599b});}};ae=Ni([K(0x0,At),K(0x1,_0x1edaba),K(0x2,_0x3d0367),K(0x3,_0x4db080(_0x2c6881)),K(0x4,_0x28a111(_0x30a3e3))],ae);var bi=Object[_0x5724cd(0x231)],Ui=(_0x249b59,_0x54390d,_0x3f314a,_0x412134)=>{for(var _0x4acaa3=_0x412134>0x1?void 0x0:_0x412134?bi(_0x54390d,_0x3f314a):_0x54390d,_0x4889ef=_0x249b59['length']-0x1,_0x53f2d9;_0x4889ef>=0x0;_0x4889ef--)(_0x53f2d9=_0x249b59[_0x4889ef])&&(_0x4acaa3=_0x53f2d9(_0x4acaa3)||_0x4acaa3);return _0x4acaa3;},tt=(_0x286e34,_0x5f52c4)=>(_0x1f10d6,_0x27b433)=>_0x5f52c4(_0x1f10d6,_0x27b433,_0x286e34);let Ae=class extends _0x466553{constructor(_0x4c9277,_0x1a812e){const _0x95bc1e=_0x5724cd;super(),this[_0x95bc1e(0x13e)]=_0x4c9277,this[_0x95bc1e(0x2cb)]=_0x1a812e,this['_init']();}[_0x5724cd(0x16b)](){const _0x2d8e70=_0x5724cd,_0x4643fe=this;this['disposeWithMe'](this[_0x2d8e70(0x13e)][_0x2d8e70(0x2f5)]({'onBeforePasteImage':async _0x35b8d1=>{const _0x4a86d8=_0x2d8e70,_0x3ba0be=await _0x4643fe[_0x4a86d8(0x2cb)]['saveImage'](_0x35b8d1);return _0x3ba0be?{'source':_0x3ba0be[_0x4a86d8(0x2d5)],'imageSourceType':_0x3ba0be['imageSourceType']}:null;}}));}};Ae=Ui([tt(0x0,_0xbfc833),tt(0x1,_0x3b68ae)],Ae);const st=['purple.300',_0x5724cd(0x114),_0x5724cd(0x244),_0x5724cd(0x2e0),_0x5724cd(0x2b5),'yellow.400'];class je extends _0x2916da{constructor(){const _0x5d3552=_0x5724cd;super(...arguments),l(this,_0x5d3552(0x20a),new Map()),l(this,_0x5d3552(0x2df),0x0);}['assignAColorForMemberID'](_0x1ec0b2){const _0xf24724=_0x5724cd;if(this[_0xf24724(0x20a)][_0xf24724(0x1d0)](_0x1ec0b2))return this[_0xf24724(0x20a)][_0xf24724(0x297)](_0x1ec0b2);const _0x16bd8f=st[this[_0xf24724(0x2df)]];return this['_colorIndex']=(this[_0xf24724(0x2df)]+0x1)%st['length'],this['_assignedColors'][_0xf24724(0x2f0)](_0x1ec0b2,_0x16bd8f),_0x16bd8f;}}function Pt(_0x2da524){let _0x115f52='';for(const _0xbee8f4 of _0x2da524){const {startOffset:_0x161bf8,endOffset:_0x2f63db,isActive:_0x5e4397,rangeType:_0x3b4fef,segmentId:_0x377477,segmentPage:_0x51524c}=_0xbee8f4;_0x115f52['length']&&(_0x115f52+=','),_0x115f52+=_0x161bf8+':'+_0x2f63db+':'+(_0x5e4397?'1':'0')+':'+_0x3b4fef+':'+_0x377477+':'+_0x51524c;}return _0x115f52;}function Li(_0x25ac83){const _0x16d536=_0x5724cd,_0x48ebe6=_0x25ac83['split'](','),_0x161436=[];for(const _0x48c1cb of _0x48ebe6){const [_0x2bcaba,_0x2f7c26,_0x26a19f,_0x2e4633,_0x16b19a,_0x36c016]=_0x48c1cb[_0x16d536(0x213)](':');_0x161436['push']({'startOffset':Number(_0x2bcaba),'endOffset':Number(_0x2f7c26),'collapsed':_0x2bcaba===_0x2f7c26,'isActive':_0x26a19f==='1','rangeType':_0x2e4633===_0x4bed57[_0x16d536(0xf3)]?_0x4bed57[_0x16d536(0xf3)]:_0x4bed57['RECT'],'segmentId':typeof _0x16b19a==_0x16d536(0x248)?String(_0x16b19a):'','segmentPage':Number(_0x36c016!=null?_0x36c016:-0x1)});}return _0x161436[_0x16d536(0x203)](_0x56caa4=>_0x56caa4[_0x16d536(0x191)])||(_0x161436[0x0]['isActive']=!0x0),_0x161436;}class Xe extends _0x466553{constructor(){const _0x42d2a8=_0x5724cd;super(...arguments),l(this,_0x42d2a8(0x129),new _0x29a5ca(null)),l(this,'collabCursorState$',this[_0x42d2a8(0x129)][_0x42d2a8(0xf5)]());}[_0x5724cd(0x26d)](_0x9bdcaf){const _0x4041fb=_0x5724cd,{unitID:_0x32ca03,memberID:_0x36dff5,textRanges:_0xb309b}=_0x9bdcaf,_0x37d2c6=Pt(_0xb309b);if(_0x37d2c6==='')return;const _0x3123e7={'unitID':_0x32ca03,'memberID':_0x36dff5,'selection':_0x37d2c6};this[_0x4041fb(0x129)]['next'](_0x3123e7);}}var Mi=Object[_0x5724cd(0x231)],Ai=(_0x517683,_0x33bc01,_0x5e9d40,_0x2f6f5b)=>{const _0x10acc8=_0x5724cd;for(var _0x497113=_0x2f6f5b>0x1?void 0x0:_0x2f6f5b?Mi(_0x33bc01,_0x5e9d40):_0x33bc01,_0x532fd9=_0x517683[_0x10acc8(0x173)]-0x1,_0x559d68;_0x532fd9>=0x0;_0x532fd9--)(_0x559d68=_0x517683[_0x532fd9])&&(_0x497113=_0x559d68(_0x497113)||_0x497113);return _0x497113;},A=(_0xd02617,_0x1acf41)=>(_0x4802c1,_0x2a017e)=>_0x1acf41(_0x4802c1,_0x2a017e,_0xd02617);const Pi=0x12c,wi=0x64;let Pe=class extends _0x466553{constructor(_0x37f900,_0x3eaa4e,_0x403a86,_0x50a6c7,_0x533e49,_0x436012,_0x3c7677,_0x3da655,_0x21a1c3){const _0x4842aa=_0x5724cd;super(),l(this,_0x4842aa(0x2fe),!0x1),l(this,_0x4842aa(0x16b),!0x1),l(this,_0x4842aa(0x2eb),new _0x29a5ca(new Map())),l(this,'cursorInfo$',this['_cursorInfo$'][_0x4842aa(0xf5)]()),l(this,_0x4842aa(0x232),new _0x29a5ca([])),l(this,'roomMembers$',this[_0x4842aa(0x232)][_0x4842aa(0x148)](_0x19dce7(Pi))),l(this,_0x4842aa(0x2dc),_0x322732(_0xfbc1a6=>{const _0x3baca7=_0x4842aa,_0x4ced91={'eventID':_0x1c5ec5['UPDATE_CURSOR'],'data':{'unitID':this[_0x3baca7(0x2bf)],'memberID':this['_session'][_0x3baca7(0x172)](),'selection':Pt(_0xfbc1a6)}};this[_0x3baca7(0x167)][_0x3baca7(0xf9)](_0x4ced91,this['unitID']);},wi)),(this['unitID']=_0x37f900,this[_0x4842aa(0x167)]=_0x3eaa4e,this[_0x4842aa(0x219)]=_0x403a86,this[_0x4842aa(0x307)]=_0x50a6c7,this[_0x4842aa(0x228)]=_0x533e49,this['_syncEditingCollabCursorService']=_0x436012,this[_0x4842aa(0x199)]=_0x3c7677,this[_0x4842aa(0xe1)]=_0x3da655,this[_0x4842aa(0x2ef)]=_0x21a1c3);}get[_0x5724cd(0x2ba)](){const _0x16ba5f=_0x5724cd;return this[_0x16ba5f(0x2eb)][_0x16ba5f(0x116)]();}get[_0x5724cd(0x110)](){const _0x220a1b=_0x5724cd;return this[_0x220a1b(0x232)][_0x220a1b(0x116)]();}[_0x5724cd(0x207)](){const _0x546edf=_0x5724cd;super['dispose'](),this[_0x546edf(0x2eb)][_0x546edf(0x130)](new Map()),this[_0x546edf(0x2eb)]['complete'](),this[_0x546edf(0x232)]['next']([]),this[_0x546edf(0x232)][_0x546edf(0x108)]();}[_0x5724cd(0x16f)](){const _0x282b44=_0x5724cd;this['_init']||(this[_0x282b44(0x16b)]=!0x0,this[_0x282b44(0x167)][_0x282b44(0x2bc)]['pipe'](_0x29d39(this[_0x282b44(0x169)]))[_0x282b44(0x1ce)](_0xbfd201=>{const _0x43791c=_0x282b44;_0xbfd201===_0x452290[_0x43791c(0xe2)]?this[_0x43791c(0x246)]():this[_0x43791c(0x144)]();}),this[_0x282b44(0x167)][_0x282b44(0x15a)][_0x282b44(0x148)](_0x29d39(this[_0x282b44(0x169)]))['subscribe'](_0x36af7c=>{const _0x45c2a2=_0x282b44,_0x298978=_0x36af7c[_0x45c2a2(0x1c5)];_0x298978===_0x1c5ec5[_0x45c2a2(0x120)]&&this[_0x45c2a2(0x1ff)](_0x36af7c),_0x298978===_0x1c5ec5[_0x45c2a2(0x12e)]&&this['_onCursorDelete'](_0x36af7c);}),this[_0x282b44(0x1e2)](this['_commandService'][_0x282b44(0x11a)](_0x58231b=>{const _0x21c97b=_0x282b44,_0x362061=_0x58231b['params'];_0x362061!=null&&this[_0x21c97b(0x2fe)]&&_0x58231b['id']===_0x38bad8['id']&&_0x362061['unitId']===this[_0x21c97b(0x2bf)]&&_0x362061[_0x21c97b(0x2c1)]===!0x1&&_0x362061[_0x21c97b(0x1ab)][_0x21c97b(0x173)]>0x0&&this[_0x21c97b(0x2dc)](_0x362061[_0x21c97b(0x1ab)]);})),this[_0x282b44(0x276)][_0x282b44(0x26c)][_0x282b44(0x148)](_0x29d39(this['dispose$']))[_0x282b44(0x1ce)](_0x44514=>{const _0x1bacde=_0x282b44;if((_0x44514==null?void 0x0:_0x44514[_0x1bacde(0x2bf)])!==this['unitID'])return;const _0xfe99={'eventID':_0x1c5ec5[_0x1bacde(0x120)],'data':_0x44514};this[_0x1bacde(0x1ff)](_0xfe99);}),this['disposeWithMe'](this[_0x282b44(0x2ef)][_0x282b44(0x11a)](_0x83a4dc=>{const _0x1c2190=_0x282b44;if(_0x83a4dc[_0x1c2190(0x166)]==null)return;const _0x37260f=_0x83a4dc['params'];if(_0x83a4dc['id']!==_0x1cf356['id']||_0x37260f[_0x1c2190(0x164)]!==this['unitID'])return;const _0x29552a={'id':_0x1c2190(0x13f),'params':_0x37260f},_0x41149f=this[_0x1c2190(0x2ba)];for(const [_0x357273,_0xae73e1]of _0x41149f){const _0x52b35b={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x1c2190(0x2bf)],'actions':null,'textRanges':_0xae73e1['ranges']}},_0x258006=this[_0x1c2190(0x199)]['transformMutation'](_0x29552a,_0x52b35b,!0x1);if(_0x48ab2e(_0x258006))throw _0x258006[_0x1c2190(0x192)];_0x41149f[_0x1c2190(0x2f0)](_0x357273,{..._0xae73e1,'ranges':_0x258006[_0x1c2190(0x181)]['params'][_0x1c2190(0x28c)]});}queueMicrotask(()=>{const _0xbca6c=_0x1c2190;this[_0xbca6c(0x2eb)]['next'](_0x41149f);});})));}[_0x5724cd(0x1ff)](_0x4a9fad){const _0x42a9bf=_0x5724cd;var _0x1e1f52,_0x560fb5;const {memberID:_0x31f7dd,selection:_0x2ac7e1}=_0x4a9fad[_0x42a9bf(0x183)],_0x221c39=Li(_0x2ac7e1),_0x35bcd4=(_0x560fb5=(_0x1e1f52=this['_memberService'][_0x42a9bf(0xff)](this['unitID'],_0x31f7dd))==null?void 0x0:_0x1e1f52['name'])!=null?_0x560fb5:'Unknown\x20user',_0x3cca14={'color':this[_0x42a9bf(0x307)][_0x42a9bf(0x2f6)](_0x31f7dd),'name':_0x35bcd4,'ranges':_0x221c39},_0x559ae0=this['cursorInfo'];_0x559ae0[_0x42a9bf(0x2f0)](_0x31f7dd,_0x3cca14),this[_0x42a9bf(0x2eb)][_0x42a9bf(0x130)](_0x559ae0);}[_0x5724cd(0x270)](_0x404c1f){const _0x4216de=_0x5724cd,{memberID:_0x17f1c4}=_0x404c1f['data'],_0x4a8f7c=this[_0x4216de(0x2ba)];_0x4a8f7c[_0x4216de(0x1bd)](_0x17f1c4),this[_0x4216de(0x2eb)][_0x4216de(0x130)](_0x4a8f7c);}[_0x5724cd(0x246)](){const _0x1d06ef=_0x5724cd;var _0x3e25d5;if(this['_online']=!0x0,((_0x3e25d5=this[_0x1d06ef(0xe1)][_0x1d06ef(0x2d8)]())==null?void 0x0:_0x3e25d5[_0x1d06ef(0x25a)]())!==this[_0x1d06ef(0x2bf)])return;const _0x11aac1=this[_0x1d06ef(0x219)][_0x1d06ef(0x297)](_0x5a5e71)[_0x1d06ef(0x2da)]();Array[_0x1d06ef(0x154)](_0x11aac1)&&_0x11aac1[_0x1d06ef(0x173)]>0x0&&this[_0x1d06ef(0x2dc)](_0x11aac1);}[_0x5724cd(0x144)](){const _0x5ba1be=_0x5724cd;this[_0x5ba1be(0x2fe)]=!0x1;}};Pe=Ai([A(0x2,_0x4db080(_0xca9a6f)),A(0x3,_0x4db080(je)),A(0x4,_0x4db080(_0x1a6b56)),A(0x5,_0x4db080(Xe)),A(0x6,_0x4603fd),A(0x7,_0x166a1e),A(0x8,_0x3d0367)],Pe);var yi=Object[_0x5724cd(0x231)],$i=(_0x1ad0c4,_0x211faf,_0x5a5eb0,_0x4366c8)=>{for(var _0xac3cfc=_0x4366c8>0x1?void 0x0:_0x4366c8?yi(_0x211faf,_0x5a5eb0):_0x211faf,_0x227829=_0x1ad0c4['length']-0x1,_0x3a3646;_0x227829>=0x0;_0x227829--)(_0x3a3646=_0x1ad0c4[_0x227829])&&(_0xac3cfc=_0x3a3646(_0xac3cfc)||_0xac3cfc);return _0xac3cfc;},B=(_0x3f580f,_0x4f3253)=>(_0x4c628f,_0x5c6bb5)=>_0x4f3253(_0x4c628f,_0x5c6bb5,_0x3f580f);const xi=0x12c,Bi=0x64,Fi=()=>{let _0x1742c3=[],_0xdfb94e=!0x1;return _0x18c832=>{const _0x39be30=_0x4324;_0x1742c3[_0x39be30(0x2ec)](_0x18c832),_0xdfb94e||(_0xdfb94e=!0x0,setTimeout(()=>{const _0x425092=_0x39be30;_0x1742c3[_0x425092(0x1a5)](_0x3ed76e=>_0x3ed76e()),_0x1742c3=[],_0xdfb94e=!0x1;}));};};let we=class extends _0x466553{constructor(_0x141bfc,_0x55e822,_0x3ff7e5,_0x5582bc,_0x20178d,_0x485c2a,_0xa2a2db,_0x4cbdcf){const _0x28a51f=_0x5724cd;super(),l(this,_0x28a51f(0x2fe),!0x1),l(this,_0x28a51f(0x16b),!0x1),l(this,_0x28a51f(0x2eb),new _0x29a5ca(new Map())),l(this,'cursorInfo$',this[_0x28a51f(0x2eb)][_0x28a51f(0xf5)]()),l(this,'_roomMembers$',new _0x29a5ca([])),l(this,_0x28a51f(0x2d2),this['_roomMembers$'][_0x28a51f(0x148)](_0x19dce7(xi))),l(this,_0x28a51f(0x2dc),_0x322732((_0xe4aed5,_0x5852ef)=>{const _0x4ea578=_0x28a51f,_0x38bb0d={'eventID':_0x1c5ec5[_0x4ea578(0x120)],'data':{'unitID':this[_0x4ea578(0x2bf)],'memberID':this[_0x4ea578(0x167)][_0x4ea578(0x172)](),'selection':_0x25d8d1(_0xe4aed5,_0x5852ef[_0x4ea578(0x285)])}};this['_session']['send'](_0x38bb0d,this[_0x4ea578(0x2bf)]);},Bi)),(this[_0x28a51f(0x2bf)]=_0x141bfc,this['_session']=_0x55e822,this[_0x28a51f(0x219)]=_0x3ff7e5,this['_colorAssignService']=_0x5582bc,this[_0x28a51f(0x228)]=_0x20178d,this['_univerInstanceService']=_0x485c2a,this['_commandService']=_0xa2a2db,this[_0x28a51f(0x235)]=_0x4cbdcf);}get[_0x5724cd(0x2ba)](){const _0x1f02fe=_0x5724cd;return this['_cursorInfo$'][_0x1f02fe(0x116)]();}get[_0x5724cd(0x110)](){const _0x2879f4=_0x5724cd;return this['_roomMembers$'][_0x2879f4(0x116)]();}[_0x5724cd(0x207)](){const _0x116fa5=_0x5724cd;super[_0x116fa5(0x207)](),this[_0x116fa5(0x2eb)][_0x116fa5(0x130)](new Map()),this[_0x116fa5(0x2eb)][_0x116fa5(0x108)](),this[_0x116fa5(0x232)][_0x116fa5(0x130)]([]),this[_0x116fa5(0x232)]['complete']();}[_0x5724cd(0x16f)](){const _0x5da973=_0x5724cd;this[_0x5da973(0x16b)]||(this[_0x5da973(0x16b)]=!0x0,this['_session'][_0x5da973(0x2bc)][_0x5da973(0x148)](_0x29d39(this[_0x5da973(0x169)]))[_0x5da973(0x1ce)](_0x5a56e3=>{const _0x396a6a=_0x5da973;_0x5a56e3===_0x452290[_0x396a6a(0xe2)]?this['_toggleOnline']():this[_0x396a6a(0x144)]();}),this[_0x5da973(0x167)][_0x5da973(0x15a)]['pipe'](_0x29d39(this[_0x5da973(0x169)]))['subscribe'](_0xf312d9=>{const _0x14baf9=_0x5da973,_0x813578=_0xf312d9[_0x14baf9(0x1c5)];_0x813578===_0x1c5ec5[_0x14baf9(0x120)]&&this[_0x14baf9(0x1ff)](_0xf312d9),_0x813578===_0x1c5ec5[_0x14baf9(0x12e)]&&this[_0x14baf9(0x270)](_0xf312d9);}),this['_onRefRangeChange'](),this[_0x5da973(0x1e2)](this[_0x5da973(0x2ef)][_0x5da973(0x11a)](_0x213171=>{const _0x318f5d=_0x5da973;if(this[_0x318f5d(0x2fe)]&&_0x213171['id']===_0x38a87a['id']&&_0x213171['params']['unitId']===this[_0x318f5d(0x2bf)]){const _0x5e6462=_0x213171[_0x318f5d(0x166)];this['_updateLocalCursor'](_0x5e6462[_0x318f5d(0x2b3)],_0x5e6462[_0x318f5d(0x1e8)][0x0]);}})));}[_0x5724cd(0x1ff)](_0x3a5a49){const _0x39805b=_0x5724cd;var _0x883ce,_0x3baacb;const {memberID:_0x3d48a0,selection:_0x22370e}=_0x3a5a49[_0x39805b(0x183)],{sheetName:_0x2cf259,range:_0x2f3ce2}=_0x428cf8(_0x22370e),_0x353453={'name':(_0x3baacb=(_0x883ce=this['_memberService'][_0x39805b(0xff)](this['unitID'],_0x3d48a0))==null?void 0x0:_0x883ce[_0x39805b(0x22b)])!=null?_0x3baacb:'Unknown\x20user','range':this[_0x39805b(0x256)](_0x2cf259,_0x2f3ce2),'sheetID':_0x2cf259,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x3d48a0),'selection':_0x22370e},_0xc16437=this[_0x39805b(0x2ba)];_0xc16437[_0x39805b(0x2f0)](_0x3d48a0,_0x353453),this[_0x39805b(0x2eb)][_0x39805b(0x130)](_0xc16437);}[_0x5724cd(0x270)](_0x26ae58){const _0x4497a3=_0x5724cd,{memberID:_0x116bb5}=_0x26ae58[_0x4497a3(0x183)],_0x154ef1=this['cursorInfo'];_0x154ef1['delete'](_0x116bb5),this[_0x4497a3(0x2eb)]['next'](_0x154ef1);}['_getMergeRange'](_0x990983,_0x48cc52){const _0x403515=_0x5724cd;var _0x3a42c4,_0x542b8c;const _0x18540c=(_0x542b8c=(_0x3a42c4=this[_0x403515(0xe1)][_0x403515(0x1f7)](this[_0x403515(0x2bf)]))==null?void 0x0:_0x3a42c4['getSheetBySheetId'](_0x990983))==null?void 0x0:_0x542b8c[_0x403515(0x1b3)]();return(_0x18540c==null?void 0x0:_0x18540c['find'](_0x1f49e5=>_0x3fa0cb['contains'](_0x1f49e5,_0x48cc52)))||_0x48cc52;}[_0x5724cd(0x1b4)](){const _0x3c8d44=_0x5724cd,_0xb0e77c=new _0x43401e(),_0xf66e7b=Fi(),_0x339571=()=>{const _0xb3d27=_0x4324;_0xb0e77c[_0xb3d27(0x207)]();const _0x1ae452=(_0xe70dfc,_0x39050d,_0x11926b,_0x4b96d1)=>{const _0xb161d=_0xb3d27;let _0x3a7737=[];switch(_0xe70dfc['id']){case _0x5d6206[_0xb161d(0x140)]:{_0x3a7737=_0x58c097(_0xe70dfc,_0x4b96d1);break;}case _0x5d6206[_0xb161d(0x18f)]:{_0x3a7737=_0x689337(_0xe70dfc,_0x4b96d1);break;}case _0x5d6206[_0xb161d(0x2ad)]:{_0x3a7737=_0x167ad0(_0xe70dfc,_0x4b96d1);break;}case _0x5d6206['InsertRangeMoveDownCommandId']:{_0x3a7737=_0x46e032(_0xe70dfc,_0x4b96d1);break;}case _0x5d6206[_0xb161d(0x2a6)]:{_0x3a7737=_0x45c5a6(_0xe70dfc,_0x4b96d1);break;}case _0x5d6206[_0xb161d(0x29e)]:{_0x3a7737=_0x2deae8(_0xe70dfc,_0x4b96d1);break;}case _0x5d6206[_0xb161d(0x2dd)]:{_0x3a7737=_0x397e48(_0xe70dfc,_0x4b96d1);break;}case _0x5d6206[_0xb161d(0x23d)]:{_0x3a7737=_0xe874f5(_0xe70dfc,_0x4b96d1);break;}case _0x5d6206['RemoveRowCommandId']:{_0x3a7737=_0x46d1c8(_0xe70dfc,_0x4b96d1);break;}}const _0x50f099=_0x2d0a41(_0x3a7737,_0x4b96d1),_0x569311=this[_0xb161d(0x2ba)][_0xb161d(0x297)](_0x39050d);if(_0x569311&&_0x50f099){const _0x567e29={..._0x569311,'range':_0x50f099};this['cursorInfo'][_0xb161d(0x2f0)](_0x39050d,_0x567e29),_0xf66e7b(()=>{const _0x1a305b=_0xb161d,_0x403248=this['_refRangeService'][_0x1a305b(0x10a)](_0x50f099,_0x30020b=>(_0x403248[_0x1a305b(0x207)](),_0x1ae452(_0x30020b,_0x39050d,_0x11926b,_0x50f099)));_0xb0e77c['add'](_0x403248);});}return{'redos':[],'undos':[]};};this[_0xb3d27(0x2ba)][_0xb3d27(0x1a5)]((_0x1790e7,_0x19419f)=>{const _0x20a408=_0xb3d27,{range:_0x97e89a,sheetID:_0x4ae153}=_0x1790e7,_0x55d2aa=this[_0x20a408(0x235)]['registerRefRange'](_0x97e89a,_0x148439=>(_0x55d2aa[_0x20a408(0x207)](),_0x1ae452(_0x148439,_0x19419f,_0x4ae153,_0x97e89a)));_0xb0e77c[_0x20a408(0x157)](_0x55d2aa);});};this[_0x3c8d44(0x1e2)](_0xc6be91(this[_0x3c8d44(0x2eb)][_0x3c8d44(0x1ce)](()=>{_0x339571();})));}[_0x5724cd(0x246)](){const _0xa6758c=_0x5724cd;var _0x3e9d40,_0x403a3c;if(this[_0xa6758c(0x2fe)]=!0x0,((_0x3e9d40=this[_0xa6758c(0xe1)][_0xa6758c(0x2d8)]())==null?void 0x0:_0x3e9d40['getUnitId']())!==this[_0xa6758c(0x2bf)])return;const _0x4fd34b=(_0x403a3c=this[_0xa6758c(0x219)]['get'](_0x1edee4)[_0xa6758c(0x186)]())==null?void 0x0:_0x403a3c[0x0],_0x16e620=this[_0xa6758c(0xe1)][_0xa6758c(0x1ee)](_0x5483ba[_0xa6758c(0x2d3)])[_0xa6758c(0x216)]();_0x4fd34b&&_0x16e620&&this[_0xa6758c(0x2dc)](_0x16e620['getSheetId'](),_0x4fd34b);}[_0x5724cd(0x144)](){this['_online']=!0x1;}};we=$i([B(0x2,_0x4db080(_0xca9a6f)),B(0x3,_0x4db080(je)),B(0x4,_0x4db080(_0x1a6b56)),B(0x5,_0x166a1e),B(0x6,_0x3d0367),B(0x7,_0x4db080(_0x1006f2))],we);var ki=Object[_0x5724cd(0x231)],Hi=(_0x11104c,_0x7b036b,_0x51f083,_0x40724)=>{const _0x19d57f=_0x5724cd;for(var _0x59007a=_0x40724>0x1?void 0x0:_0x40724?ki(_0x7b036b,_0x51f083):_0x7b036b,_0x57f1f0=_0x11104c[_0x19d57f(0x173)]-0x1,_0x135c09;_0x57f1f0>=0x0;_0x57f1f0--)(_0x135c09=_0x11104c[_0x57f1f0])&&(_0x59007a=_0x135c09(_0x59007a)||_0x59007a);return _0x59007a;},Ee=(_0x5a27f6,_0x3b9dcf)=>(_0x38c106,_0x451dac)=>_0x3b9dcf(_0x38c106,_0x451dac,_0x5a27f6);let H=class extends _0x466553{constructor(_0x25cd9f,_0x5c22f8,_0x587f1a){const _0x30eda7=_0x5724cd;super(),l(this,'_entities',new Map()),l(this,_0x30eda7(0x13a),new _0x303857()),(this[_0x30eda7(0xe1)]=_0x25cd9f,this[_0x30eda7(0x219)]=_0x5c22f8,this['_collabSessionService']=_0x587f1a,this[_0x30eda7(0x16b)]());}[_0x5724cd(0x207)](){const _0x5347be=_0x5724cd;super[_0x5347be(0x207)](),this['_entityInit$']['complete'](),this[_0x5347be(0x127)][_0x5347be(0x1a5)](_0x24fa8a=>_0x24fa8a['dispose']());}[_0x5724cd(0x257)](_0x4d94a0){const _0x4668f0=_0x5724cd;return this['_entities'][_0x4668f0(0x1d0)](_0x4d94a0)?this['_entities'][_0x4668f0(0x297)](_0x4d94a0)[_0x4668f0(0xd6)]:this[_0x4668f0(0x13a)][_0x4668f0(0x148)](_0x1d12b5(_0x49cb96=>_0x49cb96[_0x4668f0(0x2bf)]===_0x4d94a0),_0xa10b69(_0x15be0c=>_0x15be0c[_0x4668f0(0xd6)]));}[_0x5724cd(0x16b)](){const _0x5b4735=_0x5724cd;this[_0x5b4735(0xe1)]['getTypeOfUnitAdded$'](_0x5483ba[_0x5b4735(0x2d3)])['pipe'](_0x29d39(this['dispose$']))['subscribe'](async _0x449247=>{const _0x5129be=_0x5b4735,_0x4c85f7=_0x449247['getUnitId'](),_0x8188c1=await this[_0x5129be(0x2b9)](_0x4c85f7);this[_0x5129be(0x13a)][_0x5129be(0x130)](_0x8188c1),this[_0x5129be(0x127)]['set'](_0x4c85f7,_0x8188c1);}),this[_0x5b4735(0xe1)][_0x5b4735(0x14b)](_0x5483ba[_0x5b4735(0x28b)])['pipe'](_0x29d39(this[_0x5b4735(0x169)]))[_0x5b4735(0x148)](_0x1d12b5(_0x490d7c=>!_0x490d7c[_0x5b4735(0x25a)]()[_0x5b4735(0x12f)]('__')))[_0x5b4735(0x1ce)](async _0x22fc3a=>{const _0x418c2f=_0x5b4735,_0x3a9ad9=_0x22fc3a[_0x418c2f(0x25a)](),_0x197b08=await this[_0x418c2f(0x197)](_0x3a9ad9);this[_0x418c2f(0x13a)][_0x418c2f(0x130)](_0x197b08),this['_entities'][_0x418c2f(0x2f0)](_0x3a9ad9,_0x197b08);}),_0x14f17d(this[_0x5b4735(0xe1)]['getTypeOfUnitDisposed$'](_0x5483ba[_0x5b4735(0x28b)]),this[_0x5b4735(0xe1)]['getTypeOfUnitDisposed$'](_0x5483ba[_0x5b4735(0x2d3)]))[_0x5b4735(0x148)](_0x29d39(this[_0x5b4735(0x169)]))[_0x5b4735(0x1ce)](_0x5e6492=>{const _0x4dd41f=_0x5b4735,_0x38c023=_0x5e6492[_0x4dd41f(0x25a)](),_0xc4dcd6=this[_0x4dd41f(0x127)][_0x4dd41f(0x297)](_0x38c023);_0xc4dcd6&&(_0xc4dcd6['dispose'](),this[_0x4dd41f(0x127)][_0x4dd41f(0x1bd)](_0x38c023));});}async[_0x5724cd(0x2b9)](_0xf1245b){const _0x2c643c=_0x5724cd,_0x4f4e38=await this[_0x2c643c(0x267)][_0x2c643c(0x11c)](_0xf1245b),_0x295f86=this[_0x2c643c(0x219)]['createInstance'](we,_0xf1245b,_0x4f4e38);return _0x295f86[_0x2c643c(0x16f)](),_0x295f86;}async[_0x5724cd(0x197)](_0x44b4cb){const _0x10c78d=_0x5724cd,_0xffe060=await this[_0x10c78d(0x267)][_0x10c78d(0x11c)](_0x44b4cb),_0x3bc314=this[_0x10c78d(0x219)][_0x10c78d(0xe3)](Pe,_0x44b4cb,_0xffe060);return _0x3bc314['init'](),_0x3bc314;}};H=Hi([Ee(0x0,_0x166a1e),Ee(0x1,_0x4db080(_0xca9a6f)),Ee(0x2,_0x4db080(_0x2c15e3))],H);const Q=0x14,it=0xc8,pe=0x4,Yi=0x5;function Wi(_0x211327,_0x599a25){const _0x57d1e2=_0x5724cd;let {radius:_0x165093,width:_0xb7737f,height:_0x129ec3}=_0x599a25;_0x165093=_0x165093!=null?_0x165093:0x0,_0xb7737f=_0xb7737f!=null?_0xb7737f:0x1e,_0x129ec3=_0x129ec3!=null?_0x129ec3:0x1e;let _0x2ea776=0x0,_0x2aa584=0x0,_0x349b1a=0x0;_0x2ea776=_0x2aa584=_0x349b1a=Math[_0x57d1e2(0x2ff)](_0x165093,_0xb7737f/0x2,_0x129ec3/0x2),_0x211327[_0x57d1e2(0x24d)](),_0x211327['moveTo'](_0x2ea776,0x0),_0x211327['lineTo'](_0xb7737f-_0x2aa584,0x0),_0x211327[_0x57d1e2(0x20b)](_0xb7737f-_0x2aa584,_0x2aa584,_0x2aa584,Math['PI']*0x3/0x2,0x0,!0x1),_0x211327[_0x57d1e2(0x208)](_0xb7737f,_0x129ec3-_0x349b1a),_0x211327['arc'](_0xb7737f-_0x349b1a,_0x129ec3-_0x349b1a,_0x349b1a,0x0,Math['PI']/0x2,!0x1),_0x211327[_0x57d1e2(0x208)](0x0,_0x129ec3),_0x211327[_0x57d1e2(0x208)](0x0,_0x2ea776),_0x211327[_0x57d1e2(0x20b)](_0x2ea776,_0x2ea776,_0x2ea776,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x211327[_0x57d1e2(0x123)](),_0x599a25['fill']&&(_0x211327[_0x57d1e2(0x128)](),_0x211327[_0x57d1e2(0x1f0)]=_0x599a25[_0x57d1e2(0x2d6)],_0x599a25[_0x57d1e2(0x1dc)]==='evenodd'?_0x211327['fill'](_0x57d1e2(0x1db)):_0x211327['fill'](),_0x211327[_0x57d1e2(0x202)]());}class me extends _0x376f96{constructor(_0x112e7c,_0x36db21){const _0x301fa1=_0x5724cd;super(_0x112e7c,_0x36db21),l(this,_0x301fa1(0x286)),l(this,_0x301fa1(0x115)),(this['color']=_0x36db21==null?void 0x0:_0x36db21[_0x301fa1(0x286)],this['text']=_0x36db21==null?void 0x0:_0x36db21[_0x301fa1(0x115)]);}static[_0x5724cd(0x23c)](_0x37c5ef,_0x2df8f0){const _0x1ef9b7=_0x5724cd,{text:_0x1688a0,color:_0x372e80}=_0x2df8f0;_0x37c5ef[_0x1ef9b7(0x128)](),_0x37c5ef['font']=_0x1ef9b7(0x190);const _0x4c16be=_0x37c5ef['measureText'](_0x1688a0)[_0x1ef9b7(0x275)],_0x32a814=Math[_0x1ef9b7(0x2ff)](_0x4c16be+0x2*pe,it);Wi(_0x37c5ef,{'height':Q,'radius':0x4,'width':_0x32a814,'fill':_0x372e80}),_0x37c5ef[_0x1ef9b7(0x1f0)]='#FFF';const _0x3bf87b=pe,_0x48c912=Q-Yi,_0x5ba278=it-0x2*pe;if(_0x4c16be>_0x5ba278){let _0x268797='',_0x22f2db=0x0;for(const _0x14c8ca of _0x1688a0){const _0x372099=_0x37c5ef[_0x1ef9b7(0x271)](_0x14c8ca)[_0x1ef9b7(0x275)];if(_0x22f2db+_0x372099<=_0x5ba278-_0x37c5ef['measureText'](_0x1ef9b7(0x1d8))[_0x1ef9b7(0x275)])_0x268797+=_0x14c8ca,_0x22f2db+=_0x372099;else{_0x268797+=_0x1ef9b7(0x1d8);break;}}_0x37c5ef[_0x1ef9b7(0x1d1)](_0x268797,_0x3bf87b,_0x48c912);}else _0x37c5ef[_0x1ef9b7(0x1d1)](_0x1688a0,_0x3bf87b,_0x48c912);_0x37c5ef[_0x1ef9b7(0x202)]();}[_0x5724cd(0x2a8)](_0x537fc3){const _0x34bf1c=_0x5724cd;me[_0x34bf1c(0x23c)](_0x537fc3,this);}}const Oe=_0x5724cd(0x200),Vi='collab-text-range-',ji=_0x5724cd(0x281),z=0x6,Xi=1.5,Te=0x4,Gi=1.5,Ki=_0x5724cd(0x18e);class nt{constructor(_0x44b270,_0x1ea8ba,_0x5182c8,_0x213845){const _0x1f7e04=_0x5724cd;l(this,_0x1f7e04(0x1e1),[]),l(this,_0x1f7e04(0x2e9),null),l(this,_0x1f7e04(0x284),null),l(this,_0x1f7e04(0xfa),null),l(this,_0x1f7e04(0xed),null),l(this,_0x1f7e04(0x19e),null),(this['_cursor']=_0x44b270,this[_0x1f7e04(0x158)]=_0x1ea8ba,this[_0x1f7e04(0x153)]=_0x5182c8,this[_0x1f7e04(0x308)]=_0x213845,this[_0x1f7e04(0xe6)]());}set[_0x5724cd(0x298)](_0x26a091){const _0x24016f=_0x5724cd;_0x26a091?(this[_0x24016f(0xfa)]&&this[_0x24016f(0xfa)][_0x24016f(0x25f)](),this[_0x24016f(0x284)]&&this[_0x24016f(0x284)][_0x24016f(0x29b)]()):(this[_0x24016f(0xfa)]&&this[_0x24016f(0xfa)][_0x24016f(0x29b)](),this[_0x24016f(0x284)]&&this[_0x24016f(0x284)][_0x24016f(0x25f)]());}['dispose'](){const _0x27f905=_0x5724cd;for(const _0x5b1694 of this[_0x27f905(0x1e1)])_0x5b1694[_0x27f905(0x207)]();this['_textBubble']&&this['_textBubble'][_0x27f905(0x207)](),this[_0x27f905(0xfa)]&&this[_0x27f905(0xfa)][_0x27f905(0x207)](),this[_0x27f905(0x2e9)]&&this[_0x27f905(0x2e9)][_0x27f905(0x207)](),this[_0x27f905(0x19e)]&&this['_eventUnsubscribe']();}['_render'](){const _0x5727a2=_0x5724cd;var _0xf87101;const {_docSkeleton:_0x46692a,_document:_0x1d9e67}=this,{color:_0x5da439,name:_0x897afa,ranges:_0xce3273}=this[_0x5727a2(0x1aa)],_0x830b3=_0x1d9e67['getOffsetConfig'](),{docsLeft:_0x5c7032,docsTop:_0x44de07}=_0x830b3,_0x5d8508=new _0x2118c1(_0x830b3,_0x46692a);for(const {startOffset:_0x3bad55,endOffset:_0x18f7a3,rangeType:_0x58ea8f,segmentId:_0x209854,segmentPage:_0x3634f1,collapsed:_0x22c575,isActive:_0x7a0f64}of _0xce3273){const _0x506f8a=_0x46692a['findNodePositionByCharIndex'](_0x3bad55,!0x0,_0x209854,_0x3634f1);let _0x312233=_0x46692a['findNodePositionByCharIndex'](_0x18f7a3,!0x0,_0x209854,_0x3634f1);if(_0x312233==null&&(_0x312233=_0x46692a[_0x5727a2(0x25c)](_0x18f7a3-0x1,!0x1,_0x209854,_0x3634f1)),_0x7a0f64){const {contentBoxPointGroup:_0x490784}=_0x5d8508[_0x5727a2(0x1d6)](_0x312233,_0x312233);if(_0x490784[_0x5727a2(0x173)]===0x0)continue;this['_drawAnchor'](_0x5da439,_0x490784,_0x5c7032,_0x44de07,_0x897afa),this[_0x5727a2(0x19e)]=this[_0x5727a2(0xd3)]();}if(_0x506f8a&&_0x312233){if(_0x58ea8f===_0x4bed57['RECT']){const _0x460cda=new _0x57a528(_0x830b3,_0x46692a),{pointGroup:_0x1a2721}=(_0xf87101=_0x460cda[_0x5727a2(0x1d6)](_0x506f8a,_0x312233))!=null?_0xf87101:{};if(_0x1a2721==null||_0x1a2721[_0x5727a2(0x173)]===0x0)continue;this[_0x5727a2(0x266)](_0x5da439,_0x1a2721,_0x5c7032,_0x44de07);}else{if(!_0x22c575){const {borderBoxPointGroup:_0x3b26bc}=_0x5d8508['getRangePointData'](_0x506f8a,_0x312233);if(_0x3b26bc['length']===0x0)continue;this[_0x5727a2(0x2f2)](_0x5da439,_0x3b26bc,_0x5c7032,_0x44de07);}}}}}[_0x5724cd(0x220)](_0x2fa50d,_0x1101ef,_0x4ae1fd,_0x136e5d,_0x2f5368){const _0x5b48a0=_0x5724cd,_0x1a1977=this['_getAnchorBounding'](_0x1101ef),{left:_0x2f60a1,top:_0x328549,height:_0x11b64c}=_0x1a1977,_0x4e7d10=this[_0x5b48a0(0x1a4)](),_0x594c5c=Gi/_0x4e7d10,_0x2c551b=new _0x5a4309(Oe+_0x46dcf5(z),{'left':_0x2f60a1+_0x4ae1fd-_0x594c5c,'top':_0x328549+_0x136e5d,'height':_0x11b64c,'width':Xi,'fill':_0x2fa50d||_0x4741e2(_0x675d83[_0x5b48a0(0x264)],0x0),'strokeWidth':_0x594c5c,'stroke':Ki,'evented':!0x0});this[_0x5b48a0(0x2e9)]=_0x2c551b,this['_scene'][_0x5b48a0(0x135)](_0x2c551b,_0x3dd04b);const _0x3f5cc7=new _0x5a4309(Oe+_0x46dcf5(z),{'left':_0x2f60a1+_0x4ae1fd-_0x594c5c,'top':_0x328549+_0x136e5d-Te/0x2,'height':Te,'width':Te,'fill':_0x2fa50d||_0x4741e2(_0x675d83['black'],0x0),'strokeWidth':0x0,'stroke':_0x2fa50d||_0x4741e2(_0x675d83[_0x5b48a0(0x264)],0x0),'evented':!0x1});this['_anchorDot']=_0x3f5cc7,this['_scene'][_0x5b48a0(0x135)](_0x3f5cc7,_0x3dd04b);const _0x3b9a60=new me(Oe+_0x46dcf5(z),{'left':_0x2f60a1+_0x4ae1fd-_0x594c5c,'top':_0x328549+_0x136e5d-Q,'text':_0x2f5368,'color':_0x2fa50d});this['_textBubble']=_0x3b9a60,this[_0x5b48a0(0x158)]['addObject'](_0x3b9a60,_0x3dd04b),this['_hover']=!0x1;}[_0x5724cd(0xd3)](){const _0x14a531=_0x5724cd,_0x2e8fc4=this[_0x14a531(0x2e9)][_0x14a531(0x15f)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x39a29a=this[_0x14a531(0x2e9)][_0x14a531(0x1ec)]['subscribeEvent'](()=>{const _0x406480=_0x14a531;this[_0x406480(0xed)]&&clearTimeout(this['_hideTimer']),this[_0x406480(0xed)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x9fd35a=_0x14a531;_0x2e8fc4[_0x9fd35a(0x1ef)](),_0x39a29a[_0x9fd35a(0x1ef)]();};}[_0x5724cd(0x2f2)](_0x2c81d4,_0x2f2924,_0x3021e1,_0x28a3c5){const _0x8eb6b8=_0x5724cd,_0x5c7dad=new _0x40a014(_0x2c81d4)[_0x8eb6b8(0x2bb)](0.2)[_0x8eb6b8(0x1ba)](),_0x326c23=new _0x11a369(Vi+_0x46dcf5(z),{'pointsGroup':_0x2f2924,'fill':_0x5c7dad||_0x4741e2(_0x675d83[_0x8eb6b8(0x264)],0.2),'left':_0x3021e1,'top':_0x28a3c5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x8eb6b8(0x1e1)][_0x8eb6b8(0x2ec)](_0x326c23),this['_scene'][_0x8eb6b8(0x135)](_0x326c23,_0x3dd04b);}['_drawRectRange'](_0xd2586,_0x568e1d,_0xd2422a,_0x103261){const _0x183e86=_0x5724cd,_0x1d967e=new _0x40a014(_0xd2586)['setAlpha'](0.2)[_0x183e86(0x1ba)](),_0x1de2f4=new _0x11a369(ji+_0x46dcf5(z),{'pointsGroup':_0x568e1d,'fill':_0x1d967e||_0x4741e2(_0x675d83['black'],0.2),'left':_0xd2422a,'top':_0x103261,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x1de2f4),this[_0x183e86(0x158)]['addObject'](_0x1de2f4,_0x3dd04b);}['_getAnchorBounding'](_0xd0fce8){const _0x1d92cf=_0xd0fce8[0x0],_0x3ad9a1=_0x1d92cf[0x0],_0x599571=_0x1d92cf[0x2],{x:_0x454d50,y:_0x3b8a81}=_0x3ad9a1,{x:_0x4d000e,y:_0x56e7ec}=_0x599571;return{'left':_0x454d50,'top':_0x3b8a81,'width':_0x4d000e-_0x454d50,'height':_0x56e7ec-_0x3b8a81};}[_0x5724cd(0x1a4)](){const _0x23aae6=_0x5724cd,{scaleX:_0x39daf7,scaleY:_0x4fee9b}=this[_0x23aae6(0x158)][_0x23aae6(0x139)]();return Math[_0x23aae6(0x23e)](_0x39daf7,_0x4fee9b);}}var zi=Object[_0x5724cd(0x231)],Ji=(_0x397be3,_0x2b0c9f,_0x270a53,_0x42cb4c)=>{const _0x1b2931=_0x5724cd;for(var _0x57d2f1=_0x42cb4c>0x1?void 0x0:_0x42cb4c?zi(_0x2b0c9f,_0x270a53):_0x2b0c9f,_0x96fe48=_0x397be3[_0x1b2931(0x173)]-0x1,_0x25bd6f;_0x96fe48>=0x0;_0x96fe48--)(_0x25bd6f=_0x397be3[_0x96fe48])&&(_0x57d2f1=_0x25bd6f(_0x57d2f1)||_0x57d2f1);return _0x57d2f1;},ie=(_0x1ed7af,_0x472999)=>(_0x58123a,_0x53182a)=>_0x472999(_0x58123a,_0x53182a,_0x1ed7af);let ye=class extends _0x466553{constructor(_0x5a0399,_0x434008,_0x388dbe,_0xee386,_0x50f7dc){const _0x4c52d1=_0x5724cd;super(),l(this,_0x4c52d1(0x2c5),[]),l(this,_0x4c52d1(0x2de),[]),(this['_context']=_0x5a0399,this[_0x4c52d1(0x1ae)]=_0x434008,this[_0x4c52d1(0x27b)]=_0x388dbe,this[_0x4c52d1(0x2ef)]=_0xee386,this[_0x4c52d1(0x11e)]=_0x50f7dc,this[_0x4c52d1(0x16b)]());}[_0x5724cd(0x16b)](){const _0xd604e3=_0x5724cd,_0x64653=this['_context']['unitId'],_0x44e92=this[_0xd604e3(0x1ae)];this['disposeWithMe'](_0x57e5ce([this[_0xd604e3(0x27b)][_0xd604e3(0x257)](_0x64653),this['_themeService'][_0xd604e3(0x1b7)]])[_0xd604e3(0x148)](_0x2ac750(([_0x10e013,_0x521849])=>({'skeleton':_0x44e92['getSkeleton'](),'cursors':[..._0x10e013['values']()][_0xd604e3(0x273)](_0x5b889a=>({..._0x5b889a,'color':this[_0xd604e3(0x11e)][_0xd604e3(0x2c7)](_0x5b889a[_0xd604e3(0x286)])}))})))[_0xd604e3(0x1ce)](_0x323a93=>{const _0x347da7=_0xd604e3;if(this[_0x347da7(0x1f9)](),_0x323a93){const {skeleton:_0x48957c,cursors:_0x4efca7}=_0x323a93;this[_0x347da7(0x225)](_0x48957c,_0x4efca7);}})),this[_0xd604e3(0x18d)](),this['_initCommandExecutedListener']();}[_0x5724cd(0x225)](_0x41365a,_0x294bdd){const _0x2ee699=_0x5724cd,{scene:_0x4a19fc,mainComponent:_0x2f61a9}=this[_0x2ee699(0x15b)],_0x381fbc=_0x294bdd[_0x2ee699(0x30d)](_0x2a6d1c=>new nt(_0x2a6d1c,_0x4a19fc,_0x41365a,_0x2f61a9));this['_cursorShapes']=_0x381fbc,this[_0x2ee699(0x2de)]=_0x294bdd;}[_0x5724cd(0x100)](){const _0x31afb9=_0x5724cd;this[_0x31afb9(0x1f9)]();const {scene:_0x29dd3b,mainComponent:_0x5e70c7}=this[_0x31afb9(0x15b)],_0x20471a=this[_0x31afb9(0x1ae)][_0x31afb9(0x193)](),_0x1bfbbf=this[_0x31afb9(0x2de)][_0x31afb9(0x30d)](_0x3b279a=>new nt(_0x3b279a,_0x29dd3b,_0x20471a,_0x5e70c7));this['_cursorShapes']=_0x1bfbbf;}[_0x5724cd(0x1f9)](){const _0x385268=_0x5724cd;this['_cursorShapes']['forEach'](_0x105d63=>_0x105d63['dispose']()),this[_0x385268(0x2c5)]=[];}[_0x5724cd(0xd8)](){const _0x18e54b=_0x5724cd,_0x1cac7f=[_0x28c097['id']];this['disposeWithMe'](this[_0x18e54b(0x2ef)][_0x18e54b(0x11a)](_0x264617=>{const _0x54611f=_0x18e54b;_0x1cac7f['includes'](_0x264617['id'])&&_0x264617[_0x54611f(0x166)][_0x54611f(0x164)]===this['_context']['unitId']&&this[_0x54611f(0x100)]();}));}['_initResize'](){const _0x4068b3=_0x5724cd;this['disposeWithMe'](_0x57e071(this[_0x4068b3(0x15b)][_0x4068b3(0x1ad)]['onTransformChange$'])[_0x4068b3(0x148)](_0x23fe25(_0x4ce08c=>_0x4ce08c['type']===_0x1aaa34[_0x4068b3(0xe0)]),_0x51e9be(0x10))[_0x4068b3(0x1ce)](()=>{this['_refreshCollabCursors']();}));}};ye=Ji([ie(0x1,_0x4db080(_0x33170f)),ie(0x2,_0x4db080(H)),ie(0x3,_0x3d0367),ie(0x4,_0x4db080(_0x571088))],ye);const Zi=0x1,Qi=1.5;class qi extends _0x376f96{constructor(_0x206c11,_0x5b545c){const _0x853620=_0x5724cd;super(_0x206c11,_0x5b545c),l(this,_0x853620(0x2e8)),l(this,_0x853620(0x15c),!0x1),l(this,_0x853620(0x2e1)),l(this,_0x853620(0x163),''),l(this,'_labelPosition',_0x853620(0x28d)),l(this,_0x853620(0x106)),(_0x5b545c&&this[_0x853620(0x227)](_0x5b545c),this[_0x853620(0x15f)][_0x853620(0x1b1)](()=>this[_0x853620(0x227)]({'hovered':!0x0})),this['onPointerLeave$'][_0x853620(0x1b1)](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x40fa97){const _0x223763=_0x5724cd;var _0x579426,_0x392858,_0x3708d3,_0x20cb5c,_0x5ee322,_0x53269f;this[_0x223763(0x2e8)]=(_0x579426=_0x40fa97[_0x223763(0x286)])!=null?_0x579426:this[_0x223763(0x2e8)],this[_0x223763(0x15c)]=(_0x392858=_0x40fa97[_0x223763(0x12b)])!=null?_0x392858:this['_hovered'],this['_range']=(_0x3708d3=_0x40fa97['range'])!=null?_0x3708d3:this[_0x223763(0x2e1)],this[_0x223763(0x163)]=(_0x20cb5c=_0x40fa97['name'])!=null?_0x20cb5c:this[_0x223763(0x163)],this['_labelPosition']=(_0x5ee322=_0x40fa97[_0x223763(0x288)])!=null?_0x5ee322:this[_0x223763(0x2c9)],this[_0x223763(0x106)]=(_0x53269f=_0x40fa97[_0x223763(0x1f2)])!=null?_0x53269f:this[_0x223763(0x106)],this[_0x223763(0x1c0)]({'width':_0x40fa97[_0x223763(0x275)],'height':_0x40fa97[_0x223763(0x1bb)]});}[_0x5724cd(0x1c4)](_0x4cb1c2){const _0x20fdba=_0x5724cd,{row:_0x1e3503,column:_0x27ae9e}=_0x4cb1c2;if(_0x1e3503>=this['_range'][_0x20fdba(0x29d)]&&_0x1e3503<=this[_0x20fdba(0x2e1)][_0x20fdba(0x20f)]&&_0x27ae9e>=this[_0x20fdba(0x2e1)]['startColumn']&&_0x27ae9e<=this[_0x20fdba(0x2e1)][_0x20fdba(0x2a2)]){this[_0x20fdba(0x227)]({'hovered':!0x0});return;}this[_0x20fdba(0x227)]({'hovered':!0x1});}[_0x5724cd(0x1da)](_0x329f7f){return!0x1;}['_draw'](_0x144e69){const _0xa36876=_0x5724cd;_0x5a4309[_0xa36876(0x23c)](_0x144e69,{'width':this[_0xa36876(0x275)],'height':this[_0xa36876(0x1bb)],'strokeWidth':Qi,'stroke':this[_0xa36876(0x2e8)],'evented':!0x1,'fill':this[_0xa36876(0x106)]}),this[_0xa36876(0x15c)]&&(_0x144e69['save'](),_0x144e69[_0xa36876(0x24b)](0x1,0x0,0x0,0x1,this[_0xa36876(0x275)],this[_0xa36876(0x2c9)]==='bottom'?0x0:-Q),me[_0xa36876(0x23c)](_0x144e69,{'text':this[_0xa36876(0x163)],'color':this[_0xa36876(0x2e8)]}),_0x144e69[_0xa36876(0x202)]());}}var en=Object['getOwnPropertyDescriptor'],tn=(_0x40030d,_0x33a978,_0x4e0b6f,_0x45ba12)=>{const _0x2a021c=_0x5724cd;for(var _0x2abb97=_0x45ba12>0x1?void 0x0:_0x45ba12?en(_0x33a978,_0x4e0b6f):_0x33a978,_0x17c2ee=_0x40030d[_0x2a021c(0x173)]-0x1,_0x28420a;_0x17c2ee>=0x0;_0x17c2ee--)(_0x28420a=_0x40030d[_0x17c2ee])&&(_0x2abb97=_0x28420a(_0x2abb97)||_0x2abb97);return _0x2abb97;},Ce=(_0x26e0ed,_0x3df0d5)=>(_0x19532a,_0x24957d)=>_0x3df0d5(_0x19532a,_0x24957d,_0x26e0ed);const sn=0x1389;let $e=class extends _0x466553{constructor(_0x57d874,_0x1f15bc,_0x433607,_0xf0ec5d){const _0x570729=_0x5724cd;super(),l(this,_0x570729(0x2de),new Set()),l(this,_0x570729(0x1a3),null),(this[_0x570729(0x15b)]=_0x57d874,this['_sheetSkeletonManagerService']=_0x1f15bc,this[_0x570729(0x27b)]=_0x433607,this[_0x570729(0x11e)]=_0xf0ec5d,this['_init']());}[_0x5724cd(0x16b)](){const _0x6349e7=_0x5724cd;this[_0x6349e7(0x22f)][_0x6349e7(0x117)][_0x6349e7(0x148)](_0xd4923a(this[_0x6349e7(0x169)]),_0x4b25bc(_0x3fb590=>{const _0x598a1c=_0x6349e7;if(_0x3fb590){const _0x434455=_0x3fb590[_0x598a1c(0x30b)];return _0x57e5ce(this[_0x598a1c(0x27b)][_0x598a1c(0x257)](this['_context']['unitId']),this[_0x598a1c(0x11e)][_0x598a1c(0x1b7)])[_0x598a1c(0x148)](_0x2ac750(([_0x450ab4,_0x301f01])=>{const _0x5a24c7=_0x598a1c,_0x2d2423=new Map();return _0x450ab4[_0x5a24c7(0x1a5)]((_0x1fd3fe,_0x417354)=>{const _0x45164e=_0x5a24c7;if(_0x1fd3fe[_0x45164e(0xf4)]===_0x434455){const _0x5a0f70={..._0x1fd3fe};_0x5a0f70[_0x45164e(0x286)]=this['_themeService'][_0x45164e(0x2c7)](_0x1fd3fe['color']),_0x2d2423[_0x45164e(0x2f0)](_0x417354,_0x5a0f70);}}),{'skeleton':_0x3fb590,'cursors':_0x2d2423};}));}return _0x2a30cc({'skeleton':null,'cursors':new Map()});}))[_0x6349e7(0x1ce)](({skeleton:_0xd9a19a,cursors:_0x238158})=>{const _0x27bf49=_0x6349e7;this[_0x27bf49(0x1f9)](),_0xd9a19a&&this[_0x27bf49(0x225)](_0xd9a19a,_0x238158);}),this[_0x6349e7(0x22f)][_0x6349e7(0x117)]['subscribe'](_0x4efd76=>{const _0x20e007=_0x6349e7;if(_0x4efd76==null)return;const {skeleton:_0xe3864b}=_0x4efd76,{scene:_0x14cf29}=this[_0x20e007(0x15b)];_0x14cf29[_0x20e007(0x156)][_0x20e007(0x1b1)](_0x322732(_0x1bd25c=>{const _0x4313c4=_0x20e007;var _0x1d370b,_0x22c190;const {offsetX:_0x781249,offsetY:_0x4130d2}=_0x1bd25c,{x:_0xba37c9,y:_0x28f7dd}=_0x14cf29[_0x4313c4(0x2c0)](_0x3be4b3[_0x4313c4(0x204)]([_0x781249,_0x4130d2])),{scaleX:_0xc222a9,scaleY:_0x11b871}=_0x14cf29[_0x4313c4(0x139)](),_0x55d844=_0x14cf29[_0x4313c4(0x1c6)](_0x1e6b43[_0x4313c4(0x301)]),_0x333b6d=_0x14cf29['getVpScrollXYInfoByPosToVp'](_0x3be4b3[_0x4313c4(0x204)]([_0xba37c9,_0x28f7dd]),_0x55d844),_0x2a0481=_0xe3864b['getCellPositionByOffset'](_0x781249,_0x4130d2,_0xc222a9,_0x11b871,_0x333b6d);((_0x1d370b=this[_0x4313c4(0x1a3)])==null?void 0x0:_0x1d370b[_0x4313c4(0x11b)])===_0x2a0481[_0x4313c4(0x11b)]&&((_0x22c190=this[_0x4313c4(0x1a3)])==null?void 0x0:_0x22c190['row'])===_0x2a0481[_0x4313c4(0x17f)]||this['_cursors'][_0x4313c4(0x1a5)](_0x4808b4=>{_0x4808b4['onMouseMove'](_0x2a0481);});},0x64));});}[_0x5724cd(0x225)](_0x2e8081,_0x5bb434){const _0x567618=_0x5724cd;var _0x1a48dd;const _0x269ba4=(_0x1a48dd=this[_0x567618(0x22f)][_0x567618(0x161)]())==null?void 0x0:_0x1a48dd['skeleton'];if(!_0x269ba4)return;const _0x5897f8=this[_0x567618(0x26f)]();if(!_0x5897f8)return;this[_0x567618(0x2de)][_0x567618(0x1a5)](_0x1cc418=>{const _0x2c5738=_0x567618;_0x1cc418[_0x2c5738(0x1eb)]();});const {scene:_0x511ac0}=_0x5897f8,_0x2afd3c=nn(Array['from'](_0x5bb434[_0x567618(0x149)]()))[_0x567618(0x30d)](_0xd0057=>{const _0x2cd057=_0x567618,{color:_0x21a910,range:_0x1bb4c1,name:_0x3973a9,selection:_0x588ef7,sheetID:_0x156761}=_0xd0057,{startColumn:_0xc0128b,startRow:_0xbb6232,endColumn:_0x2f7748,endRow:_0x82a339}=_0x1bb4c1,_0x3e8860=_0x489060(_0xbb6232,_0xc0128b,_0x511ac0,_0x269ba4),_0x1ee877=_0x489060(_0x82a339,_0x2f7748,_0x511ac0,_0x269ba4),{columnHeaderHeightAndMarginTop:_0x1f124b}=_0x269ba4,{startX:_0x6b6b00,startY:_0x3c976f}=_0x3e8860,{endX:_0x2b127b,endY:_0x2d8f5e}=_0x1ee877,_0x17d79c=_0x2b127b-_0x6b6b00,_0x389432=_0x2d8f5e-_0x3c976f,_0x299a09={'labelPosition':_0x3c976f-_0x1f124b>=Q?_0x2cd057(0x28d):'bottom','sheetID':_0x156761,'range':_0x1bb4c1,'color':_0x21a910,'name':_0x3973a9,'selection':_0x588ef7,'left':_0x6b6b00,'top':_0x3c976f,'width':_0x17d79c,'height':_0x389432,'evented':!0x1,'zIndex':sn};return new qi(_0x3973a9,_0x299a09);});_0x511ac0['addObjects'](_0x2afd3c,Zi),this['_cursors']=new Set(_0x2afd3c);}[_0x5724cd(0x1f9)](){const _0x1370f3=_0x5724cd;var _0x1931af;(_0x1931af=this[_0x1370f3(0x2de)])==null||_0x1931af['forEach'](_0x3d4b6b=>_0x3d4b6b[_0x1370f3(0x207)]());}[_0x5724cd(0x26f)](){const _0x4940e3=_0x5724cd;return _0xcf58dc(this[_0x4940e3(0x15b)][_0x4940e3(0x178)],this[_0x4940e3(0x15b)]);}};$e=tn([Ce(0x1,_0x4db080(_0x232217)),Ce(0x2,_0x4db080(H)),Ce(0x3,_0x4db080(_0x571088))],$e);function nn(_0x43d10f){const _0x2aeb9c=_0x5724cd,_0x1ba0e4=new Map();return _0x43d10f[_0x2aeb9c(0x1a5)](_0x2abef1=>{const _0x829f1=_0x2aeb9c;if(_0x1ba0e4[_0x829f1(0x1d0)](_0x2abef1['selection'])){const _0x271be3=_0x1ba0e4[_0x829f1(0x297)](_0x2abef1['selection']);_0x271be3['name']+=',\x20'+_0x2abef1[_0x829f1(0x22b)];}else _0x1ba0e4[_0x829f1(0x2f0)](_0x2abef1[_0x829f1(0x1b6)],_0x2abef1);}),Array['from'](_0x1ba0e4[_0x2aeb9c(0x149)]());}var rn=Object[_0x5724cd(0x231)],on=(_0x1fbccb,_0x3d6fb0,_0x5626a9,_0xd1c1df)=>{const _0x2aed97=_0x5724cd;for(var _0x560675=_0xd1c1df>0x1?void 0x0:_0xd1c1df?rn(_0x3d6fb0,_0x5626a9):_0x3d6fb0,_0x204ada=_0x1fbccb[_0x2aed97(0x173)]-0x1,_0x2a050b;_0x204ada>=0x0;_0x204ada--)(_0x2a050b=_0x1fbccb[_0x204ada])&&(_0x560675=_0x2a050b(_0x560675)||_0x560675);return _0x560675;},F=(_0x1375ea,_0x3b63a7)=>(_0x1e916b,_0x1bf7d7)=>_0x3b63a7(_0x1e916b,_0x1bf7d7,_0x1375ea);let ce=class extends _0x2916da{constructor(_0x4cc5f6,_0x548fe6,_0x3a3ce5,_0x457f95,_0x361b98,_0x26797e){const _0x5e4d0c=_0x5724cd;super(),this[_0x5e4d0c(0x111)]=_0x4cc5f6,this[_0x5e4d0c(0x2f8)]=_0x548fe6,this['_collaborationUIEventService']=_0x3a3ce5,this[_0x5e4d0c(0x124)]=_0x457f95,this[_0x5e4d0c(0x162)]=_0x361b98,this[_0x5e4d0c(0x14c)]=_0x26797e,this[_0x5e4d0c(0x249)](),this[_0x5e4d0c(0x1d4)]();}[_0x5724cd(0x249)](){const _0x4f77b4=_0x5724cd;this[_0x4f77b4(0x1e2)](this[_0x4f77b4(0x111)][_0x4f77b4(0x25e)](()=>{const _0xfb8a53=_0x4f77b4;if(this[_0xfb8a53(0x2f8)][_0xfb8a53(0x236)][_0xfb8a53(0x1d5)])return this[_0xfb8a53(0x14c)]['t'](_0xfb8a53(0x229));}));}[_0x5724cd(0x1d4)](){const _0x5147dc=_0x5724cd;this[_0x5147dc(0x1e2)](this[_0x5147dc(0x102)][_0x5147dc(0x15a)]['subscribe'](_0x30415e=>{const _0x32409f=_0x5147dc;_0x30415e['id']===_0x1513c0[_0x32409f(0x234)]&&this['_messageService'][_0x32409f(0x29b)]({'type':_0x408d4f[_0x32409f(0xee)],'content':this[_0x32409f(0x14c)]['t']('collaboration.single-unit.warning')}),_0x30415e['id']===_0x1513c0[_0x32409f(0x14d)]&&this['_messageService'][_0x32409f(0x29b)]({'type':_0x408d4f['Warning'],'content':this[_0x32409f(0x14c)]['t'](_0x32409f(0x18a))}),_0x30415e['id']===_0x1513c0[_0x32409f(0x2a7)]&&this[_0x32409f(0x162)][_0x32409f(0x29b)]({'title':this[_0x32409f(0x14c)]['t'](_0x32409f(0x211)),'content':this['_localeService']['t']('permission.content'),'type':_0x32409f(0x192),'duration':0x0}),_0x30415e['id']===_0x1513c0[_0x32409f(0x1df)]&&this[_0x32409f(0x124)][_0x32409f(0x29b)]({'type':_0x408d4f[_0x32409f(0x24e)],'content':this[_0x32409f(0x14c)]['t'](_0x32409f(0x18a))+'('+_0x30415e['data']+')'}),_0x30415e['id']===_0x1513c0[_0x32409f(0x112)]&&this[_0x32409f(0x124)]['show']({'type':_0x408d4f[_0x32409f(0xee)],'content':this['_localeService']['t'](_0x30415e[_0x32409f(0x183)]||'')}),_0x30415e['id']===_0x1513c0['SOCKET_FAILED_RETRY']&&this[_0x32409f(0x124)][_0x32409f(0x29b)]({'type':_0x408d4f[_0x32409f(0xee)],'content':this[_0x32409f(0x14c)]['t']('session.will-retry')}),_0x30415e['id']===_0x1513c0['SOCKET_FAILED']&&this[_0x32409f(0x124)][_0x32409f(0x29b)]({'type':_0x408d4f[_0x32409f(0x24e)],'content':this[_0x32409f(0x14c)]['t'](_0x32409f(0xd9))}),_0x30415e['id']===_0x1513c0[_0x32409f(0x27f)]&&this[_0x32409f(0x124)][_0x32409f(0x29b)]({'type':_0x408d4f['Error'],'content':this['_localeService']['t'](_0x32409f(0x294))});}));}};ce=on([F(0x0,_0x578e72),F(0x1,_0x5b4070),F(0x2,_0x4db080(_0x5f0edf)),F(0x3,_0x60d69d),F(0x4,_0x44eeb7),F(0x5,_0x4db080(_0x234aab))],ce);const an=_0x5724cd(0x10b),rt={};var cn=Object['getOwnPropertyDescriptor'],_n=(_0x2a8aa6,_0x5c6b6c,_0x3dbb96,_0xe634d5)=>{const _0x19b261=_0x5724cd;for(var _0x308924=_0xe634d5>0x1?void 0x0:_0xe634d5?cn(_0x5c6b6c,_0x3dbb96):_0x5c6b6c,_0x32f3d5=_0x2a8aa6[_0x19b261(0x173)]-0x1,_0x119838;_0x32f3d5>=0x0;_0x32f3d5--)(_0x119838=_0x2a8aa6[_0x32f3d5])&&(_0x308924=_0x119838(_0x308924)||_0x308924);return _0x308924;},ot=(_0x260b3c,_0x1d0bf3)=>(_0x2382eb,_0x1ab184)=>_0x1d0bf3(_0x2382eb,_0x1ab184,_0x260b3c);let _e=class{constructor(_0x578178,_0x88828b){const _0x424028=_0x5724cd;this['_transformService']=_0x578178,this[_0x424028(0x299)]=_0x88828b;}[_0x5724cd(0x1b9)](_0x5473d2){const _0x27cd04=_0x5724cd;this[_0x27cd04(0x1b2)](_0x5473d2),this['_transformPreviousActiveRange'](_0x5473d2);}[_0x5724cd(0x152)](_0x84720d){const _0xc1b96f=_0x5724cd,{unitID:_0x364cfa}=_0x84720d,_0x3140ce=this[_0xc1b96f(0x299)][_0xc1b96f(0xdf)](_0x364cfa)[_0xc1b96f(0x2e2)](_0x15fd68),{redoCache:_0x128bc4}=_0x3140ce[_0xc1b96f(0x2ab)]();if(_0x128bc4[_0xc1b96f(0x173)]===0x0)return _0x84720d;let _0x4897b9=_0x352d2a[_0xc1b96f(0x119)](_0x84720d[_0xc1b96f(0x252)][0x0]);for(let _0x535595=0x0;_0x535595<_0x128bc4['length'];_0x535595++){const _0x1688ed={'id':_0xc1b96f(0x13f),'params':{..._0x128bc4[_0x535595]}},_0x3c4e2e=this[_0xc1b96f(0x199)][_0xc1b96f(0x277)](_0x4897b9,_0x1688ed,!0x1);if(_0x48ab2e(_0x3c4e2e))throw _0x3c4e2e['error'];_0x4897b9=_0x3c4e2e[_0xc1b96f(0x230)];}return{..._0x352d2a[_0xc1b96f(0x119)](_0x84720d),'mutations':[_0x4897b9]};}[_0x5724cd(0x1b2)](_0x261cb2){const _0x6b4624=_0x5724cd,{unitID:_0x361649}=_0x261cb2,_0x49204a=this[_0x6b4624(0x299)][_0x6b4624(0xdf)](_0x361649)[_0x6b4624(0x2e2)](_0x15fd68),{undoCache:_0x47ce62,redoCache:_0xa1275a}=_0x49204a[_0x6b4624(0x2ab)]();if(_0x47ce62['length']===0x0||_0xa1275a[_0x6b4624(0x173)]===0x0)return;const _0x49750a=[],_0x58d5bf=[];let _0x1c34c6=_0x352d2a['deepClone'](_0x261cb2['mutations'][0x0]),_0x5b9673=_0x352d2a['deepClone'](_0x261cb2[_0x6b4624(0x252)][0x0]);for(let _0x1099f5=_0x47ce62[_0x6b4624(0x173)]-0x1;_0x1099f5>=0x0;_0x1099f5--){const _0x371457={'id':_0x6b4624(0x13f),'params':{..._0x47ce62[_0x1099f5]}},_0x15f0b2={'id':'doc.mutation.rich-text-editing','params':{..._0xa1275a[_0x1099f5]}},_0x1d21d1=this['_transformService'][_0x6b4624(0x277)](_0x1c34c6,_0x371457,!0x1),_0x40ceb1=this['_transformService']['transformMutation'](_0x5b9673,_0x15f0b2,!0x1);if(_0x48ab2e(_0x1d21d1))throw _0x1d21d1[_0x6b4624(0x192)];if(_0x48ab2e(_0x40ceb1))throw _0x40ceb1['error'];_0x49750a[_0x6b4624(0x2c2)](_0x1d21d1[_0x6b4624(0x181)]['params']),_0x58d5bf[_0x6b4624(0x2c2)](_0x40ceb1['m2Prime'][_0x6b4624(0x166)]),_0x1c34c6=_0x1d21d1[_0x6b4624(0x230)],_0x5b9673=_0x40ceb1[_0x6b4624(0x230)];}_0x49204a['setUndoRedoMutationParamsCache']({'undoCache':_0x49750a,'redoCache':_0x58d5bf});}['_transformPreviousActiveRange'](_0x2fc852){const _0x5b7b61=_0x5724cd,{unitID:_0x4989ba}=_0x2fc852,_0x4bfada=this[_0x5b7b61(0x299)][_0x5b7b61(0xdf)](_0x4989ba)['with'](_0x15fd68),_0xeee347=_0x4bfada[_0x5b7b61(0x283)]();if(_0xeee347==null)return;const _0x4b3e76=[{'id':_0x5b7b61(0x13f),'params':{'unitId':_0x2fc852[_0x5b7b61(0x2bf)],'actions':null,'textRanges':[_0xeee347]}}],_0x108e32=this[_0x5b7b61(0x199)]['transformMutationsWithChangeset'](_0x2fc852,_0x4b3e76);if(!_0x11903c(_0x108e32))throw _0x108e32['error'];const _0x95b6ce=_0x108e32['m2Prime'][0x0][_0x5b7b61(0x166)][_0x5b7b61(0x28c)];Array['isArray'](_0x95b6ce)&&_0x95b6ce[_0x5b7b61(0x173)]&&_0x4bfada[_0x5b7b61(0x1d7)](_0x95b6ce[0x0]);}};_e=_n([ot(0x0,_0x4603fd),ot(0x1,_0x21229d)],_e);var ln=Object[_0x5724cd(0x231)],hn=(_0x5ee56f,_0x434a04,_0x112a63,_0x286a53)=>{const _0x7128d9=_0x5724cd;for(var _0x55ca71=_0x286a53>0x1?void 0x0:_0x286a53?ln(_0x434a04,_0x112a63):_0x434a04,_0x8e0749=_0x5ee56f[_0x7128d9(0x173)]-0x1,_0x5c778e;_0x8e0749>=0x0;_0x8e0749--)(_0x5c778e=_0x5ee56f[_0x8e0749])&&(_0x55ca71=_0x5c778e(_0x55ca71)||_0x55ca71);return _0x55ca71;},Re=(_0x11b99b,_0x107d39)=>(_0x27a2a4,_0x1c4679)=>_0x107d39(_0x27a2a4,_0x1c4679,_0x11b99b);let le=class{constructor(_0x4764a9,_0x359e5f,_0x358fc1){const _0x1a5106=_0x5724cd;this[_0x1a5106(0x219)]=_0x4764a9,this[_0x1a5106(0x199)]=_0x359e5f,this[_0x1a5106(0x22c)]=_0x358fc1;}[_0x5724cd(0xf6)](_0x5398b1){const _0x1725c4=_0x5724cd;this[_0x1725c4(0xf2)](_0x5398b1);}[_0x5724cd(0x152)](_0x22a153){const _0x1a602b=_0x5724cd,{unitID:_0x420f80}=_0x22a153,{collaboration:_0x5015f1}=this[_0x1a602b(0x22c)]['getStateCache'](_0x420f80);if(_0x5015f1[_0x1a602b(0x173)]===0x0)return _0x22a153;let _0x5d8902=_0x352d2a['deepClone'](_0x22a153[_0x1a602b(0x252)][0x0]);for(let _0x216412=0x0;_0x216412<_0x5015f1['length'];_0x216412++){const _0x280004={'id':_0x1a602b(0x13f),'params':{'unitId':_0x5015f1[_0x216412]['unitId'],..._0x5015f1[_0x216412][_0x1a602b(0x15d)]}},_0x259ce8=this['_transformService'][_0x1a602b(0x277)](_0x5d8902,_0x280004,!0x1);if(_0x48ab2e(_0x259ce8))throw _0x259ce8['error'];_0x5d8902=_0x259ce8[_0x1a602b(0x230)];}return{..._0x352d2a[_0x1a602b(0x119)](_0x22a153),'mutations':[_0x5d8902]};}[_0x5724cd(0xf2)](_0x30dc0c){const _0x37537a=_0x5724cd,{unitID:_0xc9518f}=_0x30dc0c,{history:_0x28a495,collaboration:_0x48e0fc}=this[_0x37537a(0x22c)][_0x37537a(0x212)](_0xc9518f);if(_0x28a495['length']===0x0&&_0x48e0fc[_0x37537a(0x173)]===0x0)return;const _0x2ff94d=[],_0xda29ed=[];let _0x1f5194=_0x352d2a[_0x37537a(0x119)](_0x30dc0c[_0x37537a(0x252)][0x0]),_0x404404=_0x352d2a['deepClone'](_0x30dc0c['mutations'][0x0]);for(let _0x3dcdb2=_0x28a495[_0x37537a(0x173)]-0x1;_0x3dcdb2>=0x0;_0x3dcdb2--){const _0x27b414={'id':_0x37537a(0x13f),'params':{'unitId':_0x28a495[_0x3dcdb2][_0x37537a(0x164)],..._0x28a495[_0x3dcdb2][_0x37537a(0x2a5)]}},_0x4f5562={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x28a495[_0x3dcdb2][_0x37537a(0x164)],..._0x28a495[_0x3dcdb2][_0x37537a(0x15d)]}},_0x1427c9=this[_0x37537a(0x199)][_0x37537a(0x277)](_0x1f5194,_0x27b414,!0x1),_0x4e127f=this[_0x37537a(0x199)]['transformMutation'](_0x404404,_0x4f5562,!0x1);if(_0x48ab2e(_0x1427c9))throw _0x1427c9['error'];if(_0x48ab2e(_0x4e127f))throw _0x4e127f['error'];_0x2ff94d[_0x37537a(0x2c2)]({..._0x28a495[_0x3dcdb2],'undoState':_0x1427c9[_0x37537a(0x181)][_0x37537a(0x166)],'redoState':_0x4e127f['m2Prime']['params']}),_0x1f5194=_0x1427c9[_0x37537a(0x230)],_0x404404=_0x4e127f[_0x37537a(0x230)];}_0x1f5194=_0x352d2a['deepClone'](_0x30dc0c['mutations'][0x0]),_0x404404=_0x352d2a[_0x37537a(0x119)](_0x30dc0c[_0x37537a(0x252)][0x0]);for(let _0x335075=_0x48e0fc['length']-0x1;_0x335075>=0x0;_0x335075--){const _0x38f297={'id':_0x37537a(0x13f),'params':{'unitId':_0x48e0fc[_0x335075][_0x37537a(0x164)],..._0x48e0fc[_0x335075][_0x37537a(0x2a5)]}},_0x2a739e={'id':_0x37537a(0x13f),'params':{'unitId':_0x48e0fc[_0x335075]['unitId'],..._0x48e0fc[_0x335075]['redoState']}},_0x1ab06d=this['_transformService'][_0x37537a(0x277)](_0x1f5194,_0x38f297,!0x1),_0x42e98f=this['_transformService'][_0x37537a(0x277)](_0x404404,_0x2a739e,!0x1);if(_0x48ab2e(_0x1ab06d))throw _0x1ab06d[_0x37537a(0x192)];if(_0x48ab2e(_0x42e98f))throw _0x42e98f[_0x37537a(0x192)];_0xda29ed[_0x37537a(0x2c2)]({..._0x48e0fc[_0x335075],'undoState':_0x1ab06d['m2Prime'][_0x37537a(0x166)],'redoState':_0x42e98f[_0x37537a(0x181)][_0x37537a(0x166)]}),_0x1f5194=_0x1ab06d['m1Prime'],_0x404404=_0x42e98f[_0x37537a(0x230)];}this[_0x37537a(0x22c)][_0x37537a(0x118)](_0xc9518f,{'history':_0x2ff94d,'collaboration':_0xda29ed});}};le=hn([Re(0x0,_0x4db080(_0xca9a6f)),Re(0x1,_0x4603fd),Re(0x2,_0x4db080(_0xf2cfc0))],le);var un=Object[_0x5724cd(0x231)],dn=(_0x5d2e73,_0xecceb6,_0x1577b5,_0x2e86c3)=>{const _0xe29b52=_0x5724cd;for(var _0x2f2bfd=_0x2e86c3>0x1?void 0x0:_0x2e86c3?un(_0xecceb6,_0x1577b5):_0xecceb6,_0x4b4a70=_0x5d2e73[_0xe29b52(0x173)]-0x1,_0x24ac21;_0x4b4a70>=0x0;_0x4b4a70--)(_0x24ac21=_0x5d2e73[_0x4b4a70])&&(_0x2f2bfd=_0x24ac21(_0x2f2bfd)||_0x2f2bfd);return _0x2f2bfd;},at=(_0x17b6c5,_0x272dc6)=>(_0x31cfe6,_0x516d1e)=>_0x272dc6(_0x31cfe6,_0x516d1e,_0x17b6c5);let he=class{constructor(_0x233627,_0x241f8e){const _0x55482c=_0x5724cd;this[_0x55482c(0x219)]=_0x233627,this[_0x55482c(0x199)]=_0x241f8e;}['transformSelections'](_0x5e6cfe){const _0x544beb=_0x5724cd;var _0x30bded;const _0x372f03=this[_0x544beb(0x219)]['get'](_0x5a5e71),_0x48950f=(_0x30bded=_0x372f03[_0x544beb(0x2da)]())!=null?_0x30bded:[];if(_0x48950f['length']===0x0)return;const _0x570a67=_0x5e6cfe[_0x544beb(0x2bf)],_0x541152=[{'id':_0x544beb(0x13f),'params':{'unitId':_0x570a67,'actions':null,'textRanges':_0x48950f}}],_0x4232ff=this[_0x544beb(0x199)][_0x544beb(0x13d)](_0x5e6cfe,_0x541152);if(!_0x11903c(_0x4232ff))throw _0x4232ff[_0x544beb(0x192)];const _0x129c7d=_0x4232ff['m2Prime'][0x0]['params']['textRanges'];Array[_0x544beb(0x154)](_0x129c7d)&&_0x129c7d['length']&&_0x372f03[_0x544beb(0x223)](_0x129c7d,{'unitId':_0x570a67,'subUnitId':_0x570a67},!0x1);}};he=dn([at(0x0,_0x4db080(_0xca9a6f)),at(0x1,_0x4603fd)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x4fceab,_0x428b62,_0x34f030,_0x1501c7)=>{for(var _0x31194e=_0x1501c7>0x1?void 0x0:_0x1501c7?Sn(_0x428b62,_0x34f030):_0x428b62,_0x529b3e=_0x4fceab['length']-0x1,_0x1292c3;_0x529b3e>=0x0;_0x529b3e--)(_0x1292c3=_0x4fceab[_0x529b3e])&&(_0x31194e=_0x1292c3(_0x31194e)||_0x31194e);return _0x31194e;},b=(_0x3853a8,_0x2dae81)=>(_0x3cfe62,_0xd8530b)=>_0x2dae81(_0x3cfe62,_0xd8530b,_0x3853a8);let ue=class extends _0x2916da{constructor(_0x46f4aa,_0x4848b0,_0x46766a,_0x36a371,_0x134799,_0x158a94,_0x4014d6,_0x16d140){const _0x47f1c7=_0x5724cd;super(),l(this,_0x47f1c7(0x23f),new _0x29a5ca(_0x50afaa[_0x47f1c7(0x132)])),(this[_0x47f1c7(0x22c)]=_0x46f4aa,this[_0x47f1c7(0x20c)]=_0x4848b0,this['_docTransformIMECacheService']=_0x46766a,this[_0x47f1c7(0x300)]=_0x36a371,this[_0x47f1c7(0x136)]=_0x134799,this[_0x47f1c7(0xf1)]=_0x158a94,this[_0x47f1c7(0x124)]=_0x4014d6,this['_localeService']=_0x16d140,this[_0x47f1c7(0x12a)]());}[_0x5724cd(0x12a)](){const _0x2d59db=_0x5724cd;this[_0x2d59db(0x1e2)](this[_0x2d59db(0x20c)][_0x2d59db(0x109)][_0x2d59db(0x1ce)](_0x5ebd9a=>{const _0x59df0e=_0x2d59db,_0x2ac0cb=this['_docStateChangeManagerService'][_0x59df0e(0xd7)][_0x59df0e(0x1ce)](_0x23cd7d=>{const _0xa5b81b=_0x59df0e;if(_0x23cd7d==null)return;const {unitId:_0x42b30e,redoState:_0x5c942b,commandId:_0x111926}=_0x23cd7d;if(_0x42b30e!==_0x5ebd9a[_0xa5b81b(0x2bf)])return;const _0x314c04={'id':_0x111926,'type':_0x393e92['MUTATION'],'params':{'unitId':_0x42b30e,'actions':_0x5c942b[_0xa5b81b(0x1fb)],'textRanges':null}};_0x5ebd9a[_0xa5b81b(0x1bc)](_0x314c04);});if(_0x5ebd9a[_0x59df0e(0x1e2)](_0x2ac0cb),_0x5ebd9a instanceof _0x342039){const _0x38daaa={'onTransformIME':_0xa84188=>this[_0x59df0e(0x17e)][_0x59df0e(0x1b9)](_0xa84188),'onTransformState':_0x43683e=>this[_0x59df0e(0x300)]['transformStateCache'](_0x43683e),'onTransformSelections':_0x593683=>this[_0x59df0e(0x136)]['transformSelections'](_0x593683),'onSyncEditingCollabCursor':_0x2e7950=>this[_0x59df0e(0xf1)]['syncEditingCollabCursor'](_0x2e7950),'onTransformRemoteChangesetByIMECache':_0x5003e1=>this[_0x59df0e(0x17e)][_0x59df0e(0x152)](_0x5003e1),'onTransformRemoteChangesetByStateCache':_0x31e406=>this[_0x59df0e(0x300)][_0x59df0e(0x152)](_0x31e406)};_0x5ebd9a[_0x59df0e(0x2b4)](_0x38daaa);}}));}};ue=In([b(0x0,_0x4db080(_0xf2cfc0)),b(0x1,_0x4db080(_0x18f9ba)),b(0x2,_0x4db080(_e)),b(0x3,_0x4db080(le)),b(0x4,_0x4db080(he)),b(0x5,_0x4db080(Xe)),b(0x6,_0x60d69d),b(0x7,_0x4db080(_0x234aab))],ue);var Z=(_0x15b9bd=>(_0x15b9bd[_0x15b9bd[_0x5724cd(0x306)]=0x0]='UNDEFINED',_0x15b9bd[_0x15b9bd['OK']=0x1]='OK',_0x15b9bd[_0x15b9bd['INTERNAL_ERROR']=0x2]=_0x5724cd(0x222),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2a7)]=0x3]=_0x5724cd(0x2a7),_0x15b9bd[_0x15b9bd[_0x5724cd(0x10d)]=0x4]=_0x5724cd(0x10d),_0x15b9bd[_0x15b9bd['UNAUTHENTICATED']=0x5]=_0x5724cd(0x21f),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2cc)]=0x6]='ALREADY_EXISTS',_0x15b9bd[_0x15b9bd['INVALID_ARGUMENT']=0x7]=_0x5724cd(0x23b),_0x15b9bd[_0x15b9bd['TOO_MANY_REQUESTS']=0x8]=_0x5724cd(0x1f8),_0x15b9bd[_0x15b9bd[_0x5724cd(0x168)]=0x9]=_0x5724cd(0x168),_0x15b9bd[_0x15b9bd['LOGIN_FAILED']=0xa]=_0x5724cd(0x2f3),_0x15b9bd[_0x15b9bd[_0x5724cd(0x29c)]=0xb]=_0x5724cd(0x29c),_0x15b9bd[_0x15b9bd[_0x5724cd(0x1d3)]=0xc]=_0x5724cd(0x1d3),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2bd)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x15b9bd[_0x15b9bd[_0x5724cd(0x21a)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x15b9bd[_0x15b9bd[_0x5724cd(0x1fd)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x15b9bd[_0x15b9bd[_0x5724cd(0x19c)]=0x10]=_0x5724cd(0x19c),_0x15b9bd[_0x15b9bd[_0x5724cd(0xe8)]=0x64]=_0x5724cd(0xe8),_0x15b9bd[_0x15b9bd[_0x5724cd(0x309)]=0x65]=_0x5724cd(0x309),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2fd)]=0xc9]='USER_NOT_FOUND',_0x15b9bd[_0x15b9bd[_0x5724cd(0x180)]=0xca]=_0x5724cd(0x180),_0x15b9bd[_0x15b9bd[_0x5724cd(0x217)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x15b9bd[_0x15b9bd[_0x5724cd(0x1e9)]=0x1771]=_0x5724cd(0x1e9),_0x15b9bd[_0x15b9bd[_0x5724cd(0x165)]=0x1772]=_0x5724cd(0x165),_0x15b9bd[_0x15b9bd[_0x5724cd(0x175)]=0x1773]=_0x5724cd(0x175),_0x15b9bd[_0x15b9bd[_0x5724cd(0x176)]=0x1b59]='APPLY_REJECT',_0x15b9bd[_0x15b9bd['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x5724cd(0x255),_0x15b9bd[_0x15b9bd['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x5724cd(0x27e),_0x15b9bd[_0x15b9bd[_0x5724cd(0x138)]=0x1b5c]=_0x5724cd(0x138),_0x15b9bd[_0x15b9bd[_0x5724cd(0x287)]=0x1b5d]=_0x5724cd(0x287),_0x15b9bd[_0x15b9bd[_0x5724cd(0x30c)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x15b9bd[_0x15b9bd['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x5724cd(0x29f),_0x15b9bd[_0x15b9bd['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x5724cd(0x2a0),_0x15b9bd[_0x15b9bd[_0x5724cd(0x18b)]=0x232b]=_0x5724cd(0x18b),_0x15b9bd[_0x15b9bd['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x5724cd(0x16c),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2db)]=0x232d]=_0x5724cd(0x2db),_0x15b9bd[_0x15b9bd[_0x5724cd(0xf0)]=0x2711]=_0x5724cd(0xf0),_0x15b9bd[_0x15b9bd['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x15b9bd[_0x15b9bd[_0x5724cd(0x280)]=0x2713]=_0x5724cd(0x280),_0x15b9bd[_0x15b9bd[_0x5724cd(0x12c)]=0x2714]=_0x5724cd(0x12c),_0x15b9bd[_0x15b9bd[_0x5724cd(0x1c2)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x15b9bd[_0x15b9bd['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x5724cd(0x143),_0x15b9bd[_0x15b9bd['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x5724cd(0x22a),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2e3)]=0x271d]=_0x5724cd(0x2e3),_0x15b9bd[_0x15b9bd[_0x5724cd(0x20d)]=0x271e]=_0x5724cd(0x20d),_0x15b9bd[_0x15b9bd[_0x5724cd(0x1f4)]=0x271f]=_0x5724cd(0x1f4),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2a1)]=0x2720]=_0x5724cd(0x2a1),_0x15b9bd[_0x15b9bd['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x5724cd(0x241),_0x15b9bd[_0x15b9bd['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x5724cd(0x2b1),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2c3)]=0x2ee2]='INVALID_INVITE_CODE',_0x15b9bd[_0x15b9bd[_0x5724cd(0x2f1)]=0x2ee3]=_0x5724cd(0x2f1),_0x15b9bd[_0x15b9bd[_0x5724cd(0x292)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x15b9bd[_0x15b9bd['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x5724cd(0x2fc),_0x15b9bd[_0x15b9bd[_0x5724cd(0x1f1)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x15b9bd[_0x15b9bd[_0x5724cd(0x1ea)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x15b9bd[_0x15b9bd[_0x5724cd(0x27d)]=0x32cb]=_0x5724cd(0x27d),_0x15b9bd[_0x15b9bd[_0x5724cd(0x174)]=0x36b1]=_0x5724cd(0x174),_0x15b9bd[_0x15b9bd[_0x5724cd(0x1fa)]=0x36b2]=_0x5724cd(0x1fa),_0x15b9bd[_0x15b9bd[_0x5724cd(0x1d9)]=0x36b3]=_0x5724cd(0x1d9),_0x15b9bd[_0x15b9bd[_0x5724cd(0x28f)]=0x36b4]=_0x5724cd(0x28f),_0x15b9bd[_0x15b9bd['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x5724cd(0xde),_0x15b9bd[_0x15b9bd[_0x5724cd(0x160)]=0x3716]=_0x5724cd(0x160),_0x15b9bd[_0x15b9bd[_0x5724cd(0x12d)]=0x3717]=_0x5724cd(0x12d),_0x15b9bd[_0x15b9bd[_0x5724cd(0x22d)]=0x37dd]=_0x5724cd(0x22d),_0x15b9bd[_0x15b9bd[_0x5724cd(0xfe)]=0x3a99]=_0x5724cd(0xfe),_0x15b9bd[_0x15b9bd[_0x5724cd(0x25d)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x15b9bd[_0x15b9bd[_0x5724cd(0x10e)]=0x3a9b]=_0x5724cd(0x10e),_0x15b9bd[_0x15b9bd['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x5724cd(0x196),_0x15b9bd[_0x15b9bd[_0x5724cd(0x19b)]=0x3a9d]=_0x5724cd(0x19b),_0x15b9bd[_0x15b9bd['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x5724cd(0x142),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2ed)]=0x3a9f]=_0x5724cd(0x2ed),_0x15b9bd[_0x15b9bd['DATA_SOURCE_TOO_LARGE']=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x15b9bd[_0x15b9bd[_0x5724cd(0x17a)]=-0x1]=_0x5724cd(0x17a),_0x15b9bd))(Z||{});function mn(_0x107abe){const _0x4e70dc=_0x5724cd;var _0x43dfb6,_0x3c58cc;const _0x4517d4=(_0x43dfb6=_0x107abe[_0x4e70dc(0x29a)])==null?void 0x0:_0x43dfb6[_0x4e70dc(0x13c)],_0x1afa93=((_0x3c58cc=_0x107abe['stageInfo'])==null?void 0x0:_0x3c58cc['totalFormulasToCalculate'])||0x0;return _0x4517d4===_0x4cc043[_0x4e70dc(0x239)]&&_0x1afa93>0x0;}function fn(_0x225c41){const _0x24e59c=_0x5724cd;return _0x225c41[_0x24e59c(0x250)]===_0x3cc8fe[_0x24e59c(0x269)];}var gn=Object[_0x5724cd(0x231)],vn=(_0x271461,_0x5ae16e,_0x2a5bb6,_0x4ba617)=>{for(var _0x3c2250=_0x4ba617>0x1?void 0x0:_0x4ba617?gn(_0x5ae16e,_0x2a5bb6):_0x5ae16e,_0x56020b=_0x271461['length']-0x1,_0x9a5930;_0x56020b>=0x0;_0x56020b--)(_0x9a5930=_0x271461[_0x56020b])&&(_0x3c2250=_0x9a5930(_0x3c2250)||_0x3c2250);return _0x3c2250;},P=(_0x1e9d70,_0x342a6f)=>(_0x10ca09,_0x484a0e)=>_0x342a6f(_0x10ca09,_0x484a0e,_0x1e9d70);const En='/universer-api/license/formula/limit/status',pn=_0x5724cd(0x1ca),On='/universer-api/license/formula/limit/done';let de=class extends _0x2916da{constructor(_0x5540db,_0x1399f2,_0x1f1ed1,_0x580e6e,_0x55d509,_0x523cf1,_0x37f8d7){const _0x1ed8b6=_0x5724cd;super(),l(this,_0x1ed8b6(0x2ee),null),l(this,_0x1ed8b6(0x28e),0x0),l(this,_0x1ed8b6(0xda),0x0),l(this,_0x1ed8b6(0x1cc),[]),l(this,_0x1ed8b6(0x2c8),0x0),(this['_messageService']=_0x5540db,this[_0x1ed8b6(0x2ef)]=_0x1399f2,this[_0x1ed8b6(0x184)]=_0x1f1ed1,this[_0x1ed8b6(0x1b0)]=_0x580e6e,this[_0x1ed8b6(0xe1)]=_0x55d509,this[_0x1ed8b6(0x262)]=_0x523cf1,this[_0x1ed8b6(0x14c)]=_0x37f8d7,this[_0x1ed8b6(0x195)]());}[_0x5724cd(0x195)](){const _0x4a2659=_0x5724cd;this['disposeWithMe'](this[_0x4a2659(0x2ef)][_0x4a2659(0x2fb)]((_0x407d01,_0xdf1947)=>{const _0x4c2cfc=_0x4a2659;var _0x7b2ec9;if(_0x407d01['id']!==_0x5f11a2['id'])return;const _0x473081=_0x407d01[_0x4c2cfc(0x166)];if(!this[_0x4c2cfc(0x17d)]((_0x7b2ec9=_0x473081['dirtyRanges'])!=null?_0x7b2ec9:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x4c2cfc(0x2b8)](_0x407d01,_0xdf1947),this[_0x4c2cfc(0x1c7)](),new _0x426e2a();})),this[_0x4a2659(0x1e2)](this[_0x4a2659(0x2ef)]['onCommandExecuted']((_0x171c6e,_0x52043d)=>{const _0x491225=_0x4a2659;if(_0x171c6e['id']!==_0x3da7cf['id'])return;const _0x23cce8=_0x171c6e[_0x491225(0x166)];if(mn(_0x23cce8)){const _0x58f384=_0x46dcf5();this['_taskIds'][_0x491225(0x2ec)](_0x58f384),this['_startCalculationLimit'](_0x58f384);}else{if(fn(_0x23cce8)&&this[_0x491225(0x1cc)][_0x491225(0x173)]>0x0){const _0x496fd9=this['_taskIds']['shift']();this[_0x491225(0xd2)](_0x496fd9);}}}));}[_0x5724cd(0x207)](){const _0x3ad6e3=_0x5724cd;super[_0x3ad6e3(0x207)](),this[_0x3ad6e3(0x10f)](),this[_0x3ad6e3(0x1cc)]=[],this['_currentUsage']=0x0,this[_0x3ad6e3(0x28e)]=0x0,this[_0x3ad6e3(0x2c8)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x5d6b8d,_0x2ef5eb){const _0x3e9539=_0x5724cd;for(let _0x432252=0x0;_0x432252<0x1e;_0x432252++)try{if(await this[_0x3e9539(0x1a1)](),this[_0x3e9539(0x1c8)]()){this[_0x3e9539(0x198)](_0x5d6b8d,_0x2ef5eb),this[_0x3e9539(0x124)][_0x3e9539(0x29b)]({'content':this['_localeService']['t'](_0x3e9539(0x107)),'type':_0x408d4f[_0x3e9539(0x2d4)]});return;}await new Promise(_0x2b0a6f=>{const _0x41b1f7=_0x3e9539;this[_0x41b1f7(0x2ee)]=window[_0x41b1f7(0x177)](_0x2b0a6f,0x3e8);});}catch(_0x3d5341){this[_0x3e9539(0x262)][_0x3e9539(0x192)](_0x3d5341);}this['_messageService']['show']({'content':this['_localeService']['t'](_0x3e9539(0x1be)),'type':_0x408d4f[_0x3e9539(0x24e)]});}[_0x5724cd(0x198)](_0x25701e,_0x12ce6d){const _0xe3a972=_0x5724cd;try{this['_commandService'][_0xe3a972(0x1dd)](_0x25701e['id'],_0x25701e['params'],_0x12ce6d);}catch(_0x1fbbc5){this[_0xe3a972(0x262)][_0xe3a972(0x192)](_0x1fbbc5);}}[_0x5724cd(0x1a0)](_0x4d2bfe,_0x4a7592){const _0x2ce059=_0x5724cd;_0x4a7592<this['_lastResponseTimestamp']||(this[_0x2ce059(0x2c8)]=_0x4a7592,this[_0x2ce059(0x28e)]=Number[_0x2ce059(0x2e6)](_0x4d2bfe[_0x2ce059(0x2cd)]),this[_0x2ce059(0xda)]=Number['parseInt'](_0x4d2bfe['currentUsage']));}async['_startCalculationLimit'](_0x24fde7){const _0x27cf2b=_0x5724cd;var _0x4cc6a2,_0x5db882;const _0x460592=Date[_0x27cf2b(0x16a)]();try{const _0x9a5396=((_0x4cc6a2=this['_configService']['getConfig'](_0x32c484))==null?void 0x0:_0x4cc6a2[_0x27cf2b(0x19a)])||pn,_0x302def=(await this['_httpService'][_0x27cf2b(0x245)](_0x9a5396,{'body':JSON['stringify']({'taskId':_0x24fde7})}))['body'];if(((_0x5db882=_0x302def[_0x27cf2b(0x192)])==null?void 0x0:_0x5db882[_0x27cf2b(0x226)])!==Z['OK'])return;this[_0x27cf2b(0x1a0)](_0x302def[_0x27cf2b(0x237)],_0x460592);}catch(_0x3ad74f){this[_0x27cf2b(0x262)][_0x27cf2b(0x192)](_0x3ad74f);}}async[_0x5724cd(0x1a1)](_0x45a44a){const _0x2f4c33=_0x5724cd;var _0x3f2e68,_0xf16e33;const _0x5d5880=Date[_0x2f4c33(0x16a)]();try{const _0x31919c=((_0x3f2e68=this[_0x2f4c33(0x184)][_0x2f4c33(0x2ca)](_0x32c484))==null?void 0x0:_0x3f2e68[_0x2f4c33(0x2b2)])||En,_0x1a63ba=_0x45a44a?_0x31919c+'?taskId='+encodeURIComponent(_0x45a44a):_0x31919c,_0x5175e0=(await this[_0x2f4c33(0x1b0)][_0x2f4c33(0x297)](_0x1a63ba))[_0x2f4c33(0x2a9)];if(((_0xf16e33=_0x5175e0[_0x2f4c33(0x192)])==null?void 0x0:_0xf16e33['code'])!==Z['OK'])return;this[_0x2f4c33(0x1a0)](_0x5175e0[_0x2f4c33(0x237)],_0x5d5880);}catch(_0xf1743f){this[_0x2f4c33(0x262)][_0x2f4c33(0x192)](_0xf1743f);}}async['_releaseCalculationLimit'](_0x5328be){const _0x2171ff=_0x5724cd;var _0x133923,_0xfad265;const _0x405c9d=Date[_0x2171ff(0x16a)]();try{const _0x1dace3=((_0x133923=this['_configService'][_0x2171ff(0x2ca)](_0x32c484))==null?void 0x0:_0x133923['releaseFormulaLimitUrl'])||On,_0x30f197=(await this[_0x2171ff(0x1b0)][_0x2171ff(0x245)](_0x1dace3,{'body':JSON[_0x2171ff(0x274)]({'taskId':_0x5328be})}))['body'];if(((_0xfad265=_0x30f197[_0x2171ff(0x192)])==null?void 0x0:_0xfad265[_0x2171ff(0x226)])!==Z['OK'])return;this[_0x2171ff(0x1a0)](_0x30f197['limitInfo'],_0x405c9d);}catch(_0x4d6e41){this[_0x2171ff(0x262)][_0x2171ff(0x192)](_0x4d6e41);}}['_checkCalculationAvailable'](){const _0x4e7847=_0x5724cd;return this[_0x4e7847(0x28e)]===0x0?!0x0:this[_0x4e7847(0x28e)]-this[_0x4e7847(0xda)]>0x0;}[_0x5724cd(0x10f)](){const _0x11fba1=_0x5724cd;this[_0x11fba1(0x2ee)]&&(clearTimeout(this[_0x11fba1(0x2ee)]),this[_0x11fba1(0x2ee)]=null);}[_0x5724cd(0x1c7)](){const _0x3526c5=_0x5724cd;this[_0x3526c5(0x124)][_0x3526c5(0x29b)]({'content':this[_0x3526c5(0x14c)]['t'](_0x3526c5(0x224)),'type':_0x408d4f[_0x3526c5(0x26b)]});}[_0x5724cd(0x17d)](_0x306c63){const _0x78e9d5=_0x5724cd;for(const _0x4d7c45 of _0x306c63){const {unitId:_0x2f43f4,sheetId:_0x25a200,range:_0x4693cb}=_0x4d7c45,_0x350495=this[_0x78e9d5(0xe1)][_0x78e9d5(0x2ae)](_0x2f43f4);if(!_0x350495)continue;const _0x3e5f13=_0x350495['getSheetBySheetId'](_0x25a200);if(!_0x3e5f13)continue;const _0x2174b3=_0x3e5f13[_0x78e9d5(0xfd)]();for(let _0x199d53=_0x4693cb[_0x78e9d5(0x29d)];_0x199d53<=_0x4693cb[_0x78e9d5(0x20f)];_0x199d53++)for(let _0x5e4496=_0x4693cb[_0x78e9d5(0x2b7)];_0x5e4496<=_0x4693cb['endColumn'];_0x5e4496++){const _0x4298ff=_0x2174b3[_0x78e9d5(0x116)](_0x199d53,_0x5e4496);if(_0x4298ff&&(_0x444db3(_0x4298ff['f'])||_0xaf5a34(_0x4298ff['si'])))return!0x0;}}return!0x1;}};de=vn([P(0x0,_0x4db080(_0x60d69d)),P(0x1,_0x3d0367),P(0x2,_0xa43f31),P(0x3,_0x4db080(_0x367dbf)),P(0x4,_0x166a1e),P(0x5,_0x1edaba),P(0x6,_0x4db080(_0x234aab))],de);var Tn=Object[_0x5724cd(0x231)],Cn=(_0x5bada5,_0x4d0fbf,_0x32f067,_0x1622f1)=>{const _0x362a7e=_0x5724cd;for(var _0x5d8a78=_0x1622f1>0x1?void 0x0:_0x1622f1?Tn(_0x4d0fbf,_0x32f067):_0x4d0fbf,_0x5551a3=_0x5bada5[_0x362a7e(0x173)]-0x1,_0x23fe5c;_0x5551a3>=0x0;_0x5551a3--)(_0x23fe5c=_0x5bada5[_0x5551a3])&&(_0x5d8a78=_0x23fe5c(_0x5d8a78)||_0x5d8a78);return _0x5d8a78;},De=(_0x4a7fee,_0x146d8e)=>(_0x58cd8e,_0x1513e6)=>_0x146d8e(_0x58cd8e,_0x1513e6,_0x4a7fee);let xe=class extends _0x2916da{constructor(_0x1dae13,_0x158476,_0x221ff0){const _0x2678b3=_0x5724cd;super(),l(this,_0x2678b3(0x17c),new Map()),l(this,_0x2678b3(0x2ea),new Map()),l(this,'_disabled',!0x1),(this['_configService']=_0x1dae13,this['_localStorageService']=_0x158476,this[_0x2678b3(0x2be)]=_0x221ff0);}[_0x5724cd(0x150)](){const _0x591e91=_0x5724cd;this[_0x591e91(0x2d1)]=!0x0;}[_0x5724cd(0x26a)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x5249e5=_0x5724cd;return this[_0x5249e5(0x2ea)];}[_0x5724cd(0x207)](){const _0x4ca847=_0x5724cd;this[_0x4ca847(0x187)]()[_0x4ca847(0x189)](()=>super[_0x4ca847(0x207)]());}async['loadOfflineData'](_0x57ae34){const _0x27d415=_0x5724cd;return this[_0x27d415(0x2d1)]?null:this[_0x27d415(0x155)][_0x27d415(0x278)](_0xb1ea91(_0x57ae34));}async[_0x5724cd(0x2c4)](_0x2301a2,_0x48dc42){const _0x57be4f=_0x5724cd;return!!this[_0x57be4f(0x155)][_0x57be4f(0x30a)](_0x2301a2,_0x48dc42);}['updateOfflineData'](_0x748e38,_0x46c941,_0x291e29,_0x5d405f){const _0x256d07=_0x5724cd,_0x36612a=this[_0x256d07(0x2be)][_0x256d07(0x20e)](_0x748e38);this[_0x256d07(0x17c)][_0x256d07(0x2f0)](_0x748e38,{'unitID':_0x748e38,'type':_0x46c941,'awaitingChangeset':_0x291e29,'mutations':_0x5d405f,'rev':_0x36612a}),this['_saveTaskMap']['has'](_0x748e38)||this[_0x256d07(0x1fe)](_0x748e38);}['_scheduleSaving'](_0x20909e){const _0x8df7f1=_0x5724cd,_0x2ce8d0=this['_getSaveTimeout']();_0x2ce8d0===0x0?this[_0x8df7f1(0x1a7)](_0x20909e):this[_0x8df7f1(0x2ea)][_0x8df7f1(0x2f0)](_0x20909e,setTimeout(()=>this[_0x8df7f1(0x1a7)](_0x20909e),_0x2ce8d0));}[_0x5724cd(0x2c6)](){const _0x380c97=_0x5724cd;var _0x1a5bb9;return(_0x1a5bb9=this[_0x380c97(0x184)]['getConfig'](_0x23a142))!=null?_0x1a5bb9:_0x283278;}[_0x5724cd(0x1a7)](_0xa9fdb1){const _0x5f0bbc=_0x5724cd,_0x2b33c9=this['_saveTaskMap'][_0x5f0bbc(0x297)](_0xa9fdb1);return _0x2b33c9!==void 0x0&&window[_0x5f0bbc(0x272)](_0x2b33c9),this['_localStorageService'][_0x5f0bbc(0x30a)](_0xb1ea91(_0xa9fdb1),this[_0x5f0bbc(0x17c)]['get'](_0xa9fdb1))[_0x5f0bbc(0x189)](()=>this['_saveTaskMap'][_0x5f0bbc(0x1bd)](_0xa9fdb1));}async[_0x5724cd(0x187)](){const _0xbfd702=_0x5724cd,_0xf4362=[];this[_0xbfd702(0x2ea)][_0xbfd702(0x1a5)]((_0x31f37f,_0x3b8176)=>{const _0x443864=_0xbfd702;window[_0x443864(0x272)](_0x31f37f),_0xf4362['push'](this[_0x443864(0x1a7)](_0x3b8176)[_0x443864(0x189)](()=>{const _0x5bd838=_0x443864;this[_0x5bd838(0x2ea)][_0x5bd838(0x1bd)](_0x3b8176);}));}),await Promise['all'](_0xf4362);}};xe=Cn([De(0x0,_0xa43f31),De(0x1,_0x5d62b5),De(0x2,_0x4db080(_0x294c44))],xe);class Rn extends _0x466553{constructor(){const _0x351d6f=_0x5724cd;super(),l(this,_0x351d6f(0xdd)),this[_0x351d6f(0xdd)]=_0xba30(window,_0x351d6f(0xe4))[_0x351d6f(0x148)](_0x29d39(this[_0x351d6f(0x169)]),_0x44c2b3(0x1),_0x3ab484(void 0x0));}['setParam'](_0x174185,_0x33ad19,_0x1142da=!0x1){const _0x1f226e=_0x5724cd,_0x2428d1=new URL(window[_0x1f226e(0x13b)][_0x1f226e(0x19f)]);_0x2428d1[_0x1f226e(0x24f)][_0x1f226e(0x2f0)](_0x174185,_0x33ad19),_0x1142da?window[_0x1f226e(0x151)]['replaceState']('','',_0x2428d1[_0x1f226e(0x122)]()):window[_0x1f226e(0x151)]['pushState']('','',_0x2428d1[_0x1f226e(0x122)]());}[_0x5724cd(0x1a9)](_0x335e07,_0x3312d9=!0x1){const _0x5ebcbb=_0x5724cd,_0xc1a19a=new URL(window[_0x5ebcbb(0x13b)]['href']);_0xc1a19a[_0x5ebcbb(0x24f)][_0x5ebcbb(0x1bd)](_0x335e07),_0x3312d9?window['history'][_0x5ebcbb(0x147)]('','',_0xc1a19a['toString']()):window['history'][_0x5ebcbb(0x268)]('','',_0xc1a19a[_0x5ebcbb(0x122)]());}['getParam'](_0x3f54d5){const _0x17c742=_0x5724cd;var _0xb9322b;return(_0xb9322b=new URL(window[_0x17c742(0x13b)][_0x17c742(0x19f)])[_0x17c742(0x24f)]['get'](_0x3f54d5))!=null?_0xb9322b:void 0x0;}}var Dn=Object['defineProperty'],Nn=Object[_0x5724cd(0x231)],bn=(_0x513988,_0x57c0c5,_0x4b72f7)=>_0x57c0c5 in _0x513988?Dn(_0x513988,_0x57c0c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b72f7}):_0x513988[_0x57c0c5]=_0x4b72f7,Un=(_0x14f375,_0x2be610,_0x4e667d,_0x242b5e)=>{for(var _0x3562c3=_0x242b5e>0x1?void 0x0:_0x242b5e?Nn(_0x2be610,_0x4e667d):_0x2be610,_0x386f9e=_0x14f375['length']-0x1,_0x5b7d1c;_0x386f9e>=0x0;_0x386f9e--)(_0x5b7d1c=_0x14f375[_0x386f9e])&&(_0x3562c3=_0x5b7d1c(_0x3562c3)||_0x3562c3);return _0x3562c3;},Ne=(_0xb765ab,_0x2b28bd)=>(_0x2cc9fc,_0x443ce8)=>_0x2b28bd(_0x2cc9fc,_0x443ce8,_0xb765ab),Ln=(_0x4fbe79,_0xe2ebbf,_0x436592)=>bn(_0x4fbe79,_0xe2ebbf+'',_0x436592);const Mn=_0x5724cd(0x170);let Be=class extends _0x4c752d{constructor(_0x789293=rt,_0x5b9cc2,_0x122697,_0x3adbc3){const _0x385020=_0x5724cd;super(),this[_0x385020(0x27c)]=_0x789293,this[_0x385020(0x299)]=_0x5b9cc2,this[_0x385020(0x219)]=_0x122697,this[_0x385020(0x184)]=_0x3adbc3;const {..._0x57d60f}=_0x21d242({},rt,this['_config']);this['_configService']['setConfig'](an,_0x57d60f);}[_0x5724cd(0xd1)](){const _0x27b395=_0x5724cd;this['_registerDependencies'](),this[_0x27b395(0x279)]();}[_0x5724cd(0x137)](){this['_registerRenderDependencies']();}[_0x5724cd(0x2e4)](){const _0x2044d3=_0x5724cd;var _0x2bb1e3;const _0x56cf05=[[je],[de],[he],[_e],[le],[Xe],[At,{'useClass':Rn}],[_0x3c3284,{'useClass':_0x36b239}],[_0x5b4070,{'useClass':xe}],[oe],[ue],[ce],[H],[Ae],[ae]];_0x4e8074(this[_0x2044d3(0x219)],_0x6b7a83(_0x56cf05,(_0x2bb1e3=this[_0x2044d3(0x27c)])==null?void 0x0:_0x2bb1e3[_0x2044d3(0x27a)]));}[_0x5724cd(0x2f7)](){const _0x4733e6=_0x5724cd;this['disposeWithMe'](this[_0x4733e6(0x299)]['registerRenderModule'](_0x5483ba[_0x4733e6(0x28b)],[ye])),this[_0x4733e6(0x1e2)](this[_0x4733e6(0x299)][_0x4733e6(0x24c)](_0x5483ba['UNIVER_SHEET'],[$e]));}[_0x5724cd(0x279)](){const _0x12ea98=_0x5724cd;_0x19cfd9(this[_0x12ea98(0x219)],[[H],[oe],[ue],[ce],[ae],[de]]);}};Ln(Be,_0x5724cd(0x215),Mn),Be=Un([_0x30d103(_0x21bbd3),Ne(0x1,_0x21229d),Ne(0x2,_0x4db080(_0xca9a6f)),Ne(0x3,_0xa43f31)],Be);var An=Object[_0x5724cd(0x231)],Pn=(_0x4506ef,_0x41d70f,_0x4412cc,_0x7cd144)=>{for(var _0x23485b=_0x7cd144>0x1?void 0x0:_0x7cd144?An(_0x41d70f,_0x4412cc):_0x41d70f,_0x3b3930=_0x4506ef['length']-0x1,_0x5cec36;_0x3b3930>=0x0;_0x3b3930--)(_0x5cec36=_0x4506ef[_0x3b3930])&&(_0x23485b=_0x5cec36(_0x23485b)||_0x23485b);return _0x23485b;},J=(_0x483e93,_0x24dff7)=>(_0x5a9d3a,_0x531e20)=>_0x24dff7(_0x5a9d3a,_0x531e20,_0x483e93);let ct=class extends _0x155bb6{constructor(_0x21eeaf,_0x4cb5c3,_0x2287ba,_0x1bf903,_0x34f7fc){super(_0x21eeaf,_0x4cb5c3,_0x2287ba,_0x1bf903,_0x34f7fc);}async[_0x5724cd(0x21b)](_0x382217){const _0x4fc0e9=_0x5724cd,_0x54f39d=await this['_getSessionTicket'](),_0x2b604c=this['_createSocketURL'](_0x382217,_0x54f39d);return this[_0x4fc0e9(0x21e)](_0x2b604c);}[_0x5724cd(0x240)](_0xc023f7,_0x48f323){const _0x8f0908=_0x5724cd,_0x177fa0=typeof window>'u'?new URL(_0xc023f7):new URL(_0xc023f7,window[_0x8f0908(0x13b)][_0x8f0908(0x201)]);_0x177fa0['searchParams'][_0x8f0908(0x2f0)](_0x8f0908(0x2ac),_0x48f323);const _0x3cc23c=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x8f0908(0x13b)][_0x8f0908(0xdb)]);return _0x3cc23c['get']('runId')&&_0x177fa0[_0x8f0908(0x24f)][_0x8f0908(0x2f0)]('runId',_0x3cc23c['get'](_0x8f0908(0x1e3))),_0x177fa0[_0x8f0908(0x122)]();}async['_getSessionTicket'](){const _0x7b8d3c=_0x5724cd;var _0x163b8d,_0xb26810,_0x28b3cc;const _0x3ea35e=this[_0x7b8d3c(0x184)]['getConfig'](_0x32c484),_0x4337a4=(_0x163b8d=_0x3ea35e==null?void 0x0:_0x3ea35e[_0x7b8d3c(0x26e)])!=null?_0x163b8d:_0x392e41;return(_0x28b3cc=(_0xb26810=(await this['_httpService'][_0x7b8d3c(0x297)](_0x4337a4,{'headers':{'Content-Type':_0x7b8d3c(0x1d2)}}))[_0x7b8d3c(0x2a9)])==null?void 0x0:_0xb26810[_0x7b8d3c(0x296)])!=null?_0x28b3cc:'';}};ct=Pn([J(0x0,_0x4db080(_0xca9a6f)),J(0x1,_0x4db080(_0x367dbf)),J(0x2,_0xa43f31),J(0x3,_0x1edaba),J(0x4,_0x5030fd)],ct);var wn=Object['getOwnPropertyDescriptor'],yn=(_0x279b2c,_0x5acb2b,_0x2337ae,_0x5e7578)=>{const _0x2e06dc=_0x5724cd;for(var _0x31da64=_0x5e7578>0x1?void 0x0:_0x5e7578?wn(_0x5acb2b,_0x2337ae):_0x5acb2b,_0x275ad7=_0x279b2c[_0x2e06dc(0x173)]-0x1,_0x3951a2;_0x275ad7>=0x0;_0x275ad7--)(_0x3951a2=_0x279b2c[_0x275ad7])&&(_0x31da64=_0x3951a2(_0x31da64)||_0x31da64);return _0x31da64;},be=(_0x338d32,_0x156897)=>(_0x1b7ba1,_0x54bcc0)=>_0x156897(_0x1b7ba1,_0x54bcc0,_0x338d32);let _t=class extends _0x2916da{constructor(_0x47df24,_0x71ee8e,_0x3b338d){const _0x4b303b=_0x5724cd;super(),this[_0x4b303b(0x1cb)]=_0x47df24,this[_0x4b303b(0x1b0)]=_0x71ee8e,this[_0x4b303b(0x184)]=_0x3b338d;}async[_0x5724cd(0xeb)](_0x1486ba,_0x367c02,_0x45f24e,..._0x45b7f1){const _0x3a14a9=_0x5724cd;var _0x446daf,_0x479b87,_0x73f2fe,_0x446c01;const _0x48908e=this[_0x3a14a9(0x1cb)]['getFocusedUnit']();if(!_0x48908e)throw new Error(_0x3a14a9(0x11f));const _0x9f344a=((_0x446daf=this[_0x3a14a9(0x184)]['getConfig'](_0x1f66b6))!=null?_0x446daf:_0x4e25d6)+'/'+_0x1486ba+_0x3a14a9(0x159)+_0x367c02,_0x366769=new URL(window['location'][_0x3a14a9(0x19f)]),_0x22f327={'scriptId':_0x1486ba,'runId':(_0x479b87=_0x366769[_0x3a14a9(0x24f)][_0x3a14a9(0x297)](_0x3a14a9(0x1e3)))!=null?_0x479b87:'','function':_0x367c02,'unitId':_0x48908e[_0x3a14a9(0x25a)](),'argsOfFunction':JSON[_0x3a14a9(0x274)](_0x45b7f1),'invokeId':(_0x73f2fe=_0x45f24e[_0x3a14a9(0x179)])!=null?_0x73f2fe:'','executionId':(_0x446c01=_0x45f24e[_0x3a14a9(0x260)])!=null?_0x446c01:''};try{const _0x5cb743=await this[_0x3a14a9(0x1b0)][_0x3a14a9(0x245)](_0x9f344a,{'body':_0x22f327});return _0x5cb743[_0x3a14a9(0x2a9)][_0x3a14a9(0x192)]&&_0x5cb743[_0x3a14a9(0x2a9)][_0x3a14a9(0x192)][_0x3a14a9(0x226)]!==Z['OK']?_0x3a14a9(0x1cd):_0x5cb743[_0x3a14a9(0x2a9)][_0x3a14a9(0x1a8)];}catch{return _0x3a14a9(0x1cd);}}};_t=yn([be(0x0,_0x166a1e),be(0x1,_0x4db080(_0x367dbf)),be(0x2,_0xa43f31)],_t);const lt=0x7530,ht='ACTIVE_UNIT_EVENT_CHANNEL';class tr extends _0x2916da{constructor(){const _0x227f4e=_0x5724cd;super(),l(this,_0x227f4e(0xe9),_0x46dcf5()),l(this,_0x227f4e(0x2ce),new Set()),l(this,_0x227f4e(0x258),new Map()),l(this,_0x227f4e(0x214),null),l(this,_0x227f4e(0x2d0),new Map()),l(this,'_unitStatus',new Map()),this[_0x227f4e(0x16b)]();}[_0x5724cd(0x207)](){const _0x4c3145=_0x5724cd;super[_0x4c3145(0x207)](),this['_clearOtherTimers']['forEach']((_0x15d2af,_0x35fd45)=>this[_0x4c3145(0x121)](_0x35fd45)),this['_heartbeatTimer']&&window[_0x4c3145(0x28a)](this[_0x4c3145(0x214)]);}[_0x5724cd(0x104)](_0x1cb9d3){const _0x40903e=_0x5724cd;return this[_0x40903e(0x113)](_0x1cb9d3)[_0x40903e(0x148)](_0x5c79da());}[_0x5724cd(0x141)](_0x885e82){const _0x1fe591=_0x5724cd;this[_0x1fe591(0x2ce)][_0x1fe591(0x1d5)]===0x0&&this[_0x1fe591(0xf7)](),this[_0x1fe591(0x2ce)][_0x1fe591(0x157)](_0x885e82),this[_0x1fe591(0x10c)]({'type':0x0,'memberID':this[_0x1fe591(0xe9)],'unitIDs':[_0x885e82],'isForwarded':!0x1});}[_0x5724cd(0x2a3)](_0x24de32){const _0x448872=_0x5724cd;this[_0x448872(0x2ce)][_0x448872(0x1bd)](_0x24de32),this['_selfUnitIDs']['size']===0x0&&this[_0x448872(0x214)]&&window[_0x448872(0x28a)](this['_heartbeatTimer']);}['_init'](){const _0x74c883=_0x5724cd;this[_0x74c883(0x1e2)](_0xc6be91(_0xba30(window,_0x74c883(0x133))[_0x74c883(0x1ce)](_0x260bee=>{const _0x32fca5=_0x74c883;if(_0x260bee[_0x32fca5(0x185)]!==ht||!_0x260bee['newValue'])return;const _0x1c816c=JSON[_0x32fca5(0x2e5)](_0x260bee[_0x32fca5(0x289)]);this[_0x32fca5(0x25b)](_0x1c816c);}))),window[_0x74c883(0x17b)](_0x74c883(0x253),()=>this[_0x74c883(0x10c)]({'type':0x1,'memberID':this[_0x74c883(0xe9)],'unitIDs':Array['from'](this[_0x74c883(0x2ce)])}));}[_0x5724cd(0x25b)](_0x1a8613){const _0x4a33c3=_0x5724cd;switch(_0x1a8613[_0x4a33c3(0x1b8)]){case 0x0:this['_handleJoinEvent'](_0x1a8613);break;case 0x1:this[_0x4a33c3(0x23a)](_0x1a8613);break;case 0x2:this[_0x4a33c3(0x2d7)](_0x1a8613);break;}}['_handleJoinEvent'](_0x199a24){const _0x3ed0a0=_0x5724cd,{unitIDs:_0x52c6fc,memberID:_0x1b4728,isForwarded:_0x1c37eb}=_0x199a24;_0x52c6fc[_0x3ed0a0(0x1a5)](_0x40f89c=>{const _0x1c8705=_0x3ed0a0;if(!_0x1c37eb&&this['_unitOnClients'][_0x1c8705(0x1d0)](_0x40f89c)&&this[_0x1c8705(0x113)](_0x40f89c)['next'](_0x509d02[_0x1c8705(0x1bf)]),!this[_0x1c8705(0x258)][_0x1c8705(0x1d0)](_0x40f89c)||!this['_unitOnClients'][_0x1c8705(0x297)](_0x40f89c)[_0x1c8705(0x1d0)](_0x1b4728)){const _0x437aba=this[_0x1c8705(0x258)][_0x1c8705(0x297)](_0x40f89c)||new Set();_0x437aba[_0x1c8705(0x157)](_0x1b4728),this['_unitOnClients'][_0x1c8705(0x2f0)](_0x40f89c,_0x437aba),this[_0x1c8705(0x145)](_0x1b4728);}}),_0x1c37eb||this['_send']({'type':0x0,'memberID':this[_0x3ed0a0(0xe9)],'unitIDs':[...this[_0x3ed0a0(0x2ce)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x58d729){const _0x29a2cb=_0x5724cd;this[_0x29a2cb(0x121)](_0x58d729);const _0x375fc6=window[_0x29a2cb(0x177)](()=>{const _0x508430=_0x29a2cb;this[_0x508430(0x258)][_0x508430(0x1a5)](_0xecee7=>{const _0xe9034a=_0x508430;_0xecee7[_0xe9034a(0x1bd)](_0x58d729);});},lt*0x2);this[_0x29a2cb(0x2d0)]['set'](_0x58d729,_0x375fc6);}[_0x5724cd(0x121)](_0x55d627){const _0x3b789a=_0x5724cd;if(this[_0x3b789a(0x2d0)][_0x3b789a(0x1d0)](_0x55d627)){const _0x57d72a=this[_0x3b789a(0x2d0)][_0x3b789a(0x297)](_0x55d627);_0x57d72a&&window[_0x3b789a(0x272)](_0x57d72a),this[_0x3b789a(0x2d0)][_0x3b789a(0x2f0)](_0x55d627,null);}}[_0x5724cd(0x23a)](_0x5b3ae4){const _0xbb7445=_0x5724cd,{memberID:_0x1b2117,unitIDs:_0x306426}=_0x5b3ae4;_0x306426[_0xbb7445(0x1a5)](_0x24187a=>{const _0x22e70f=_0xbb7445;var _0x43b901;const _0x4a72d3=this[_0x22e70f(0x258)][_0x22e70f(0x297)](_0x24187a);_0x4a72d3&&(_0x4a72d3[_0x22e70f(0x1bd)](_0x1b2117),(_0x43b901=this[_0x22e70f(0x113)](_0x24187a))==null||_0x43b901[_0x22e70f(0x130)](_0x4a72d3[_0x22e70f(0x1d5)]===0x0?_0x509d02[_0x22e70f(0x194)]:_0x509d02[_0x22e70f(0x1bf)]));}),this['_removeClearOtherTimer'](_0x1b2117);}['_handleHeartbeatEvent'](_0x32de85){const _0x594fc6=_0x5724cd;this[_0x594fc6(0x145)](_0x32de85[_0x594fc6(0x126)]);}[_0x5724cd(0x10c)](_0x127deb){const _0x520cf4=_0x5724cd;localStorage[_0x520cf4(0x30a)](ht,JSON['stringify'](_0x127deb));}[_0x5724cd(0xf7)](){const _0xf5ac7d=_0x5724cd;this[_0xf5ac7d(0x214)]=window['setInterval'](()=>{const _0x54b7d2=_0xf5ac7d;this['_send']({'type':0x2,'memberID':this[_0x54b7d2(0xe9)]});},lt);}[_0x5724cd(0x113)](_0x1c9d19){const _0x20b17b=_0x5724cd;return this[_0x20b17b(0x210)][_0x20b17b(0x1d0)](_0x1c9d19)||this[_0x20b17b(0x210)]['set'](_0x1c9d19,new _0x29a5ca(_0x509d02['NO_OTHER_CLIENTS_EDITING'])),this[_0x20b17b(0x210)][_0x20b17b(0x297)](_0x1c9d19);}}export{ct as BrowserCollaborationSocketService,ae as CollaborationDataLoaderController,oe as DesktopCollaborationStatusDisplayController,At as IURLService,_t as RemoteUniscriptService,qi as SheetCollabCursorShape,Be as UniverCollaborationClientUIPlugin,tr as WebBrowserSingleActiveUnitService,Rn as WebURLService};
|