@univerjs-pro/collaboration-client-ui 0.15.0-insiders.20251227-dafc157 → 0.15.0
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/ja-JP.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/ja-JP.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/ja-JP.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/ja-JP.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 +15 -15
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x137374=_0x3d3a;(function(_0x53e699,_0x4f6379){const _0xdb8bf9=_0x3d3a,_0xea166a=_0x53e699();while(!![]){try{const _0x46faf9=-parseInt(_0xdb8bf9(0x2e5))/0x1+parseInt(_0xdb8bf9(0x200))/0x2*(-parseInt(_0xdb8bf9(0x271))/0x3)+parseInt(_0xdb8bf9(0x355))/0x4+parseInt(_0xdb8bf9(0x3c0))/0x5*(-parseInt(_0xdb8bf9(0x21e))/0x6)+parseInt(_0xdb8bf9(0x421))/0x7*(parseInt(_0xdb8bf9(0x373))/0x8)+parseInt(_0xdb8bf9(0x1fa))/0x9*(-parseInt(_0xdb8bf9(0x247))/0xa)+parseInt(_0xdb8bf9(0x353))/0xb*(-parseInt(_0xdb8bf9(0x2c4))/0xc);if(_0x46faf9===_0x4f6379)break;else _0xea166a['push'](_0xea166a['shift']());}catch(_0x45922e){_0xea166a['push'](_0xea166a['shift']());}}}(_0x1d03,0x3b9df));var Yt=Object[_0x137374(0x35b)],Wt=(_0x5bf455,_0x314ac2,_0x435a93)=>_0x314ac2 in _0x5bf455?Yt(_0x5bf455,_0x314ac2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x435a93}):_0x5bf455[_0x314ac2]=_0x435a93,_=(_0x19b9a9,_0x332dbe,_0x31507f)=>Wt(_0x19b9a9,typeof _0x332dbe!=_0x137374(0x376)?_0x332dbe+'':_0x332dbe,_0x31507f);import{jsx as _0x8509cd,jsxs as _0x17eceb}from'react/jsx-runtime';import{CollaborationStatus as _0x2e02de,CollaborationSessionService as _0x66bad9,CollaborationController as _0x573dad,DataLoaderService as _0x329ea5,MemberService as _0x1e15f6,SessionStatus as _0x1147de,ILocalCacheService as _0x2b1e85,CollaborationUIEventService as _0x166f27,CollaborationUIEventId as _0x3041bd,DocCollaborationEntity as _0x1d259e,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1e86b8,getLocalCacheKey as _0xe796ed,LOCAL_CACHE_INTERVAL as _0x48566c,LOCAL_CACHE_INTERVAL_KEY as _0x5a78ff,UniverCollaborationClientPlugin as _0x5d1b34,CollaborationSocketService as _0x3c5468,DEFAULT_WS_SESSION_TICKET_URL as _0x3801bf,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x599585,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0xe555a2,UnitStatus as _0xb88388}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x55a4a7,IUniverInstanceService as _0x14d7a9,Inject as _0x23f7c2,Injector as _0x1173e2,Disposable as _0x2dffbf,createIdentifier as _0x414700,ILogService as _0x4cfb97,ICommandService as _0x532ba9,Optional as _0x367d62,RxDisposable as _0xa32225,Workbook as _0xac5a73,DOC_RANGE_TYPE as _0x5e55c6,debounce as _0x5e38e7,Rectangle as _0x510353,DisposableCollection as _0x21c388,toDisposable as _0x10b382,UniverInstanceType as _0x221888,generateRandomId as _0x1a0884,COLORS as _0x456502,ColorKit as _0x2a7785,ThemeService as _0x27efaf,fromEventSubject as _0x5e75e5,Tools as _0x43e3cb,CommandType as _0x5f58f3,IConfigService as _0x33a0bc,CanceledError as _0xaf0871,isFormulaString as _0x34edce,isFormulaId as _0x669a1e,ILocalStorageService as _0x2c6c03,DependentOn as _0x7f4b09,Plugin as _0xa676fd,merge as _0x2a3f8e,registerDependencies as _0x5d6cf9,mergeOverrideWithDependencies as _0x5e1524,touchDependencies as _0x41e9c7}from'@univerjs/core';import{useObservable as _0xa2a3ef,useDependency as _0x594231,IUIPartsService as _0x22d5a9,BuiltInUIPart as _0x86dd93,connectInjector as _0x2bbfbb,IBeforeCloseService as _0x3bf86c,IMessageService as _0x3d39b5,INotificationService as _0x5cea2e}from'@univerjs/ui';import{BehaviorSubject as _0x5b93d9,switchMap as _0x5cbe42,of as _0x3f9e73,takeUntil as _0x1d8ed1,debounceTime as _0xf53222,Subject as _0x24d9e4,filter as _0x2cee0a,merge as _0x2fab56,combineLatest as _0x5129a0,fromEvent as _0x58ef8d,shareReplay as _0x411e24,mapTo as _0x5b150f,distinctUntilChanged as _0x553790}from'rxjs';import{Tooltip as _0x24fcac,clsx as _0x3c192e,MessageType as _0x17ce26}from'@univerjs/design';import{useRef as _0x20cd3d,createElement as _0x4a2fa2,forwardRef as _0x14884c,useCallback as _0x2fceac}from'react';import{IRemoteInstanceService as _0x223ed4}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x44656d,RefRangeService as _0x46b6a8,SetSelectionsOperation as _0x49f5b6,SheetsSelectionsService as _0x552954,EffectRefRangId as _0x495460,handleIRemoveRow as _0x429be3,handleIRemoveCol as _0x2e7529,handleMoveRange as _0x43875b,handleInsertRow as _0x2c24c2,handleInsertRangeMoveRight as _0x4fea4e,handleInsertRangeMoveDown as _0x1aa2a3,handleInsertCol as _0x310ac0,handleDeleteRangeMoveUp as _0x19e82f,handleDeleteRangeMoveLeft as _0x5d65ed,runRefRangeMutations as _0x521ce3}from'@univerjs/sheets';import{Shape as _0x24350b,Rect as _0x43325f,getColor as _0x252682,RegularPolygon as _0x4db73d,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x33a8b4,Vector2 as _0x81a68f,SHEET_VIEWPORT_KEY as _0x10210d,IRenderManagerService as _0x46c3d4}from'@univerjs/engine-render';import{HTTPService as _0x2410da,ISocketService as _0x499c83,WebSocketService as _0x18cf93}from'@univerjs/network';import{IDocClipboardService as _0xe41cee,NodePositionConvertToCursor as _0x118499,NodePositionConvertToRectRange as _0x5c33ef,TEXT_RANGE_LAYER_INDEX as _0x2afac1,SetDocZoomRatioOperation as _0xe0676e,DocIMEInputManagerService as _0x14ec08,DocStateChangeManagerService as _0x11105a}from'@univerjs/docs-ui';import{IImageIoService as _0xb3b996}from'@univerjs/drawing';import{ITransformService as _0x44abdb,CollaborationEvent as _0xf8b602,isTransformMutationFailure as _0x5c3d1d,isTransformMutationsWithChangesetSuccess as _0x53d5b6,RevisionService as _0x29aef1,ISnapshotServerService as _0x425c73}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x33f8ea,RichTextEditingMutation as _0x26be09,DocSelectionManagerService as _0x46950a,DocSkeletonManagerService as _0x281b9b}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x13c820,serializeRangeWithSheet as _0x2ef9fb,FormulaExecuteStageType as _0xa43128,FormulaExecutedStateType as _0x8f19c0,SetFormulaCalculationStartMutation as _0x3fa7c3,SetFormulaCalculationNotificationMutation as _0x18e3c7}from'@univerjs/engine-formula';import{map as _0x37ca5f,filter as _0x58385a,throttleTime as _0x12f0f6,takeUntil as _0x17f684,switchMap as _0x44a498}from'rxjs/operators';import{SheetSkeletonManagerService as _0x16576d,getCoordByCell as _0x4a882f,getSheetObject as _0x4b881}from'@univerjs/sheets-ui';function Ge({ref:_0x153cfa,..._0xfb167b}){const _0xc0942=_0x137374,{icon:_0x341fba,id:_0x25dc73,className:_0x426c58,extend:_0x3108db,..._0x127dc3}=_0xfb167b,_0x1c98d8=(_0xc0942(0x3dc)+_0x25dc73+'\x20'+(_0x426c58||''))['trim'](),_0x38a229=_0x20cd3d('_'+vi());return At(_0x341fba,''+_0x25dc73,{'defIds':_0x341fba[_0xc0942(0x322)],'idSuffix':_0x38a229[_0xc0942(0x397)]},{'ref':_0x153cfa,'className':_0x1c98d8,..._0x127dc3},_0x3108db);}function At(_0x5f13b6,_0x13db71,_0x32c213,_0x44ecb1,_0x39202a){const _0x1cdf4e=_0x137374;return _0x4a2fa2(_0x5f13b6[_0x1cdf4e(0x3af)],{'key':_0x13db71,...gi(_0x5f13b6,_0x32c213,_0x39202a),..._0x44ecb1},(Ei(_0x5f13b6,_0x32c213)[_0x1cdf4e(0x3b6)]||[])[_0x1cdf4e(0x384)]((_0x2ee0bd,_0x2c7104)=>At(_0x2ee0bd,_0x13db71+'-'+_0x5f13b6[_0x1cdf4e(0x3af)]+'-'+_0x2c7104,_0x32c213,void 0x0,_0x39202a)));}function gi(_0x456a86,_0x4dd5a4,_0x18aed7){const _0x2c36a3=_0x137374,_0x1b3e92={..._0x456a86[_0x2c36a3(0x420)]};_0x18aed7!=null&&_0x18aed7[_0x2c36a3(0x29a)]&&_0x1b3e92[_0x2c36a3(0x2c1)]===_0x2c36a3(0x29a)&&(_0x1b3e92[_0x2c36a3(0x2c1)]=_0x18aed7[_0x2c36a3(0x29a)]),_0x456a86[_0x2c36a3(0x3af)]===_0x2c36a3(0x3e7)&&_0x1b3e92['id']&&(_0x1b3e92['id']=_0x1b3e92['id']+_0x4dd5a4[_0x2c36a3(0x367)]),Object['entries'](_0x1b3e92)['forEach'](([_0xde606c,_0x3edd49])=>{const _0x4e1411=_0x2c36a3;_0xde606c===_0x4e1411(0x3e7)&&typeof _0x3edd49==_0x4e1411(0x27e)&&(_0x1b3e92[_0xde606c]=_0x3edd49[_0x4e1411(0x21a)](/url\(#(.*)\)/,'url(#$1'+_0x4dd5a4[_0x4e1411(0x367)]+')'));});const {defIds:_0x466028}=_0x4dd5a4;return!_0x466028||_0x466028[_0x2c36a3(0x327)]===0x0||(_0x456a86[_0x2c36a3(0x3af)]===_0x2c36a3(0x2db)&&_0x1b3e92['xlink:href']&&(_0x1b3e92[_0x2c36a3(0x36e)]=_0x1b3e92[_0x2c36a3(0x36e)]+_0x4dd5a4[_0x2c36a3(0x367)]),Object[_0x2c36a3(0x245)](_0x1b3e92)[_0x2c36a3(0x343)](([_0x5def54,_0x3c9e86])=>{const _0x453eda=_0x2c36a3;typeof _0x3c9e86==_0x453eda(0x27e)&&(_0x1b3e92[_0x5def54]=_0x3c9e86[_0x453eda(0x21a)](/url\(#(.*)\)/,_0x453eda(0x3da)+_0x4dd5a4['idSuffix']+')'));})),_0x1b3e92;}function Ei(_0x64e349,_0x3bd18e){const _0x5bbac4=_0x137374;var _0x3875f2;const {defIds:_0x1793c8}=_0x3bd18e;return!_0x1793c8||_0x1793c8[_0x5bbac4(0x327)]===0x0?_0x64e349:_0x64e349[_0x5bbac4(0x3af)]==='defs'&&((_0x3875f2=_0x64e349[_0x5bbac4(0x3b6)])!=null&&_0x3875f2[_0x5bbac4(0x327)])?{..._0x64e349,'children':_0x64e349[_0x5bbac4(0x3b6)][_0x5bbac4(0x384)](_0x4fb254=>typeof _0x4fb254[_0x5bbac4(0x420)]['id']==_0x5bbac4(0x27e)&&_0x1793c8&&_0x1793c8[_0x5bbac4(0x2ab)](_0x4fb254[_0x5bbac4(0x420)]['id'])?{..._0x4fb254,'attrs':{..._0x4fb254['attrs'],'id':_0x4fb254[_0x5bbac4(0x420)]['id']+_0x3bd18e[_0x5bbac4(0x367)]}}:_0x4fb254)}:_0x64e349;}function vi(){const _0x164c00=_0x137374;return Math[_0x164c00(0x2a4)]()['toString'](0x24)['substring'](0x2,0x8);}Ge['displayName']='UniverIcon';const pi={'tag':_0x137374(0x371),'attrs':{'xmlns':_0x137374(0x2ad),'fill':'none','viewBox':_0x137374(0x30c),'width':_0x137374(0x228),'height':_0x137374(0x228)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x137374(0x223),'attrs':{'stroke':_0x137374(0x38a),'d':_0x137374(0x422),'strokeLinecap':_0x137374(0x253),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x137374(0x202),'attrs':{},'children':[{'tag':_0x137374(0x1f0),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x137374(0x223),'attrs':{'fill':_0x137374(0x3c6),'d':_0x137374(0x20e)}}]}]}],'defIds':[_0x137374(0x32e)]},Pt=_0x14884c(function(_0x16e478,_0x3d12a0){return _0x4a2fa2(Ge,Object['assign']({},_0x16e478,{'id':'off-line-icon','ref':_0x3d12a0,'icon':pi}));});function _0x3d3a(_0x22f5d9,_0x522b57){_0x22f5d9=_0x22f5d9-0x1db;const _0x1d031b=_0x1d03();let _0x3d3a42=_0x1d031b[_0x22f5d9];return _0x3d3a42;}Pt[_0x137374(0x2da)]=_0x137374(0x393);const Oi={'tag':'svg','attrs':{'xmlns':_0x137374(0x2ad),'fill':_0x137374(0x38c),'viewBox':_0x137374(0x40a),'width':_0x137374(0x228),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x137374(0x223),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x137374(0x253),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x137374(0x2fe)},'children':[{'tag':_0x137374(0x223),'attrs':{'fill':_0x137374(0x3c6),'d':_0x137374(0x20e),'transform':'translate(.97)'}}]}]}],'defIds':[_0x137374(0x2fe)]},wt=_0x14884c(function(_0x3e0c24,_0x14e77c){const _0x3c8a41=_0x137374;return _0x4a2fa2(Ge,Object[_0x3c8a41(0x2a2)]({},_0x3e0c24,{'id':_0x3c8a41(0x3dd),'ref':_0x14e77c,'icon':Oi}));});wt['displayName']=_0x137374(0x3f1);function Ti(_0x31c7b0){const _0x138b2e=_0x137374;switch(_0x31c7b0){case _0x2e02de['OFFLINE']:return _0x138b2e(0x3d6);case _0x2e02de[_0x138b2e(0x3a4)]:return _0x138b2e(0x222);case _0x2e02de['FETCH_MISS']:return _0x138b2e(0x33e);case _0x2e02de[_0x138b2e(0x2af)]:return'collabStatus.notCollab';case _0x2e02de['AWAITING']:case _0x2e02de[_0x138b2e(0x370)]:return'collabStatus.syncing';case _0x2e02de[_0x138b2e(0x307)]:case _0x2e02de[_0x138b2e(0x26d)]:return'collabStatus.synced';}}function Ci(_0xcd89e6){const _0x3b07c8=_0x137374,{status$:_0x1898f4}=_0xcd89e6,_0xf184b9=_0xa2a3ef(_0x1898f4,_0x2e02de['NOT_COLLAB']),_0x4403af=_0x594231(_0x55a4a7),_0x8c25dc=_0x594231(_0x66bad9),_0x5d39d7=_0xf184b9!==_0x2e02de[_0x3b07c8(0x3f6)],_0x5a36b9=_0x4403af['t'](Ti(_0xf184b9)),_0x45375e=_0x5d39d7?_0x8509cd(wt,{}):_0x8509cd(Pt,{}),_0x2d9098=_0x2fceac(()=>{const _0x4d3713=_0x3b07c8;_0x5d39d7||_0x8c25dc[_0x4d3713(0x1f5)]();},[_0x5d39d7,_0x8c25dc]);function _0xcff54c(){const _0x15232b=_0x3b07c8;return _0x17eceb(_0x15232b(0x28f),{'className':_0x15232b(0x3ff),'onClick':_0x2d9098,'children':[_0x8509cd(_0x15232b(0x28f),{'className':_0x3c192e(_0x15232b(0x36a),{'univer-text-green-500':_0x5d39d7,'univer-text-red-500':!_0x5d39d7}),'children':_0x45375e}),_0x8509cd(_0x15232b(0x28f),{'className':_0x15232b(0x257),'children':_0x5a36b9})]});}return _0x5d39d7?_0xcff54c():_0x8509cd(_0x24fcac,{'title':_0x4403af['t'](_0x3b07c8(0x1ef)),'children':_0xcff54c()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0x51868e,_0x5c25a0,_0x11054d,_0x3f4fce)=>{const _0x12fb0b=_0x137374;for(var _0x26153a=_0x3f4fce>0x1?void 0x0:_0x3f4fce?Ri(_0x5c25a0,_0x11054d):_0x5c25a0,_0x3c5d40=_0x51868e[_0x12fb0b(0x327)]-0x1,_0x56cde5;_0x3c5d40>=0x0;_0x3c5d40--)(_0x56cde5=_0x51868e[_0x3c5d40])&&(_0x26153a=_0x56cde5(_0x26153a)||_0x26153a);return _0x26153a;},se=(_0x56658b,_0x580564)=>(_0x59d3ca,_0x2ea457)=>_0x580564(_0x59d3ca,_0x2ea457,_0x56658b);let ae=class extends _0x2dffbf{constructor(_0x5596ce,_0xd72649,_0x443dcd,_0x4ac404){const _0x5a0b6b=_0x137374;super(),_(this,_0x5a0b6b(0x293),new _0x5b93d9(_0x2e02de[_0x5a0b6b(0x2af)])),(this[_0x5a0b6b(0x366)]=_0x5596ce,this[_0x5a0b6b(0x265)]=_0xd72649,this['_collaborationController']=_0x443dcd,this[_0x5a0b6b(0x30a)]=_0x4ac404,this['_initStatusComponent'](),this[_0x5a0b6b(0x35e)]());}[_0x137374(0x35e)](){const _0x1f273d=_0x137374;this['disposeWithMe'](this[_0x1f273d(0x366)]['focused$'][_0x1f273d(0x25f)](_0x5cbe42(()=>{const _0x243266=_0x1f273d,_0x1d6895=this[_0x243266(0x366)]['getFocusedUnit']();return _0x1d6895?this[_0x243266(0x32f)][_0x243266(0x275)](_0x1d6895[_0x243266(0x254)]()):_0x3f9e73(null);}),_0x5cbe42(_0x3c431c=>_0x3c431c?_0x3c431c[_0x1f273d(0x334)]:_0x3f9e73(_0x2e02de[_0x1f273d(0x2af)])))[_0x1f273d(0x305)](_0x52a429=>{const _0x4d1ef3=_0x1f273d;this['_status$'][_0x4d1ef3(0x28d)](_0x52a429);}));}[_0x137374(0x40c)](){const _0x519b76=_0x137374;this[_0x519b76(0x32c)](this[_0x519b76(0x30a)][_0x519b76(0x415)](_0x86dd93['HEADER_MENU'],()=>_0x2bbfbb(Ni({'status$':this[_0x519b76(0x293)]['asObservable']()}),this['_injector'])));}};ae=Di([se(0x0,_0x14d7a9),se(0x1,_0x23f7c2(_0x1173e2)),se(0x2,_0x23f7c2(_0x573dad)),se(0x3,_0x22d5a9)],ae);function Ni(_0x36e51a){const {status$:_0x5ef316}=_0x36e51a;return function(){return _0x8509cd(Ci,{'status$':_0x5ef316});};}const yt=_0x414700(_0x137374(0x3e1));var bi=Object[_0x137374(0x2cb)],Li=(_0x1e0be3,_0x2ab542,_0x1449e7,_0x2e64ce)=>{for(var _0x188bf3=_0x2e64ce>0x1?void 0x0:_0x2e64ce?bi(_0x2ab542,_0x1449e7):_0x2ab542,_0x4fcb34=_0x1e0be3['length']-0x1,_0x1539bd;_0x4fcb34>=0x0;_0x4fcb34--)(_0x1539bd=_0x1e0be3[_0x4fcb34])&&(_0x188bf3=_0x1539bd(_0x188bf3)||_0x188bf3);return _0x188bf3;},K=(_0x4df660,_0x37c620)=>(_0x5263ef,_0x5ad99f)=>_0x37c620(_0x5263ef,_0x5ad99f,_0x4df660);let ce=class extends _0xa32225{constructor(_0x4dffe4,_0x2ef7e3,_0x4b4611,_0x232b8a,_0x52a353){const _0x1c738c=_0x137374;super(),this[_0x1c738c(0x235)]=_0x4dffe4,this[_0x1c738c(0x2ff)]=_0x2ef7e3,this[_0x1c738c(0x233)]=_0x4b4611,this['_dataLoaderService']=_0x232b8a,_0x52a353?_0x52a353==null||_0x52a353[_0x1c738c(0x22a)]()[_0x1c738c(0x312)](()=>this[_0x1c738c(0x1de)]()):(this[_0x1c738c(0x2ff)]['debug']('[CollaborationDataLoaderController]',_0x1c738c(0x2d4)),this[_0x1c738c(0x1de)]());}async[_0x137374(0x1de)](){const _0x4c4c4f=_0x137374,_0x48aeef=this[_0x4c4c4f(0x235)]['getParam'](_0x4c4c4f(0x3b0)),_0x456c2c=this['_urlService'][_0x4c4c4f(0x1e0)](_0x4c4c4f(0x404)),_0x3667e9=this[_0x4c4c4f(0x235)][_0x4c4c4f(0x1e0)]('subunit');if(!_0x48aeef||!_0x456c2c){this[_0x4c4c4f(0x2ff)]['debug'](_0x4c4c4f(0x284),_0x4c4c4f(0x3f5));return;}const _0x24e9fb=await this[_0x4c4c4f(0x2fa)][_0x4c4c4f(0x220)](_0x48aeef,Number(_0x456c2c),_0x3667e9);_0x24e9fb&&_0x24e9fb instanceof _0xac5a73&&this[_0x4c4c4f(0x23b)](_0x24e9fb);}async[_0x137374(0x23b)](_0x4741f1){const _0x33eb1a=_0x137374;await this[_0x33eb1a(0x35f)](_0x4741f1),_0x4741f1['activeSheet$'][_0x33eb1a(0x25f)](_0x1d8ed1(this[_0x33eb1a(0x3c7)]))[_0x33eb1a(0x305)](_0x1cf9d4=>{const _0x3478b9=_0x33eb1a;_0x1cf9d4&&this[_0x3478b9(0x37c)](_0x1cf9d4);}),this['_urlService'][_0x33eb1a(0x317)][_0x33eb1a(0x25f)](_0x1d8ed1(this['dispose$']))[_0x33eb1a(0x305)](()=>this[_0x33eb1a(0x35f)](_0x4741f1));}[_0x137374(0x37c)](_0xc4884d,_0xa3be2a=!0x1){const _0x5cf567=_0x137374,_0xbeda00=this[_0x5cf567(0x235)]['getParam'](_0x5cf567(0x2a3));_0xc4884d[_0x5cf567(0x2f3)]()!==_0xbeda00&&this[_0x5cf567(0x235)][_0x5cf567(0x324)](_0x5cf567(0x2a3),_0xc4884d[_0x5cf567(0x2f3)](),_0xa3be2a);}async[_0x137374(0x35f)](_0x53a6ec){const _0x2b0551=_0x137374;var _0x1a5661;const _0x21ae36=this[_0x2b0551(0x235)][_0x2b0551(0x1e0)](_0x2b0551(0x2a3));if(!_0x21ae36||!_0x53a6ec[_0x2b0551(0x2f4)](_0x21ae36)){const _0x323963=_0x53a6ec[_0x2b0551(0x2e3)]()[0x0],_0xc1c66d=_0x53a6ec[_0x2b0551(0x2f4)](_0x323963);if(!_0xc1c66d)return;this['_updateURLWithCurrentState'](_0xc1c66d,!0x0),await this['_commandService'][_0x2b0551(0x2d6)](_0x44656d['id'],{'unitId':_0x53a6ec[_0x2b0551(0x254)](),'subUnitId':_0x323963});return;}((_0x1a5661=_0x53a6ec[_0x2b0551(0x3d8)]())==null?void 0x0:_0x1a5661[_0x2b0551(0x2f3)]())!==_0x21ae36&&await this[_0x2b0551(0x233)][_0x2b0551(0x2d6)](_0x44656d['id'],{'unitId':_0x53a6ec['getUnitId'](),'subUnitId':_0x21ae36});}};ce=Li([K(0x0,yt),K(0x1,_0x4cfb97),K(0x2,_0x532ba9),K(0x3,_0x23f7c2(_0x329ea5)),K(0x4,_0x367d62(_0x223ed4))],ce);var Ui=Object[_0x137374(0x2cb)],Mi=(_0x3b7e6d,_0xbe7656,_0x1c276b,_0x23b005)=>{for(var _0x3dca31=_0x23b005>0x1?void 0x0:_0x23b005?Ui(_0xbe7656,_0x1c276b):_0xbe7656,_0xcb2d50=_0x3b7e6d['length']-0x1,_0x1e960c;_0xcb2d50>=0x0;_0xcb2d50--)(_0x1e960c=_0x3b7e6d[_0xcb2d50])&&(_0x3dca31=_0x1e960c(_0x3dca31)||_0x3dca31);return _0x3dca31;},rt=(_0x2f78c6,_0x25c9f6)=>(_0x354b96,_0x51f461)=>_0x25c9f6(_0x354b96,_0x51f461,_0x2f78c6);let $e=class extends _0xa32225{constructor(_0xac4f91,_0x2f0a86){const _0x850673=_0x137374;super(),this[_0x850673(0x267)]=_0xac4f91,this[_0x850673(0x29d)]=_0x2f0a86,this['_init']();}[_0x137374(0x1de)](){const _0x51906d=_0x137374,_0x4ce010=this;this[_0x51906d(0x32c)](this[_0x51906d(0x267)][_0x51906d(0x2f5)]({'onBeforePasteImage':async _0xc0bbe1=>{const _0x596fa4=_0x51906d,_0x264831=await _0x4ce010['_imageIoService']['saveImage'](_0xc0bbe1);return _0x264831?{'source':_0x264831[_0x596fa4(0x224)],'imageSourceType':_0x264831['imageSourceType']}:null;}}));}};$e=Mi([rt(0x0,_0xe41cee),rt(0x1,_0xb3b996)],$e);const ot=[_0x137374(0x39d),'jiqing.500',_0x137374(0x33a),_0x137374(0x40e),_0x137374(0x288),_0x137374(0x3c5)];class Ke extends _0x2dffbf{constructor(){const _0x4b7b58=_0x137374;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x4b7b58(0x313),0x0);}[_0x137374(0x350)](_0x314b39){const _0x30ad6f=_0x137374;if(this['_assignedColors']['has'](_0x314b39))return this[_0x30ad6f(0x280)][_0x30ad6f(0x34d)](_0x314b39);const _0x512401=ot[this[_0x30ad6f(0x313)]];return this[_0x30ad6f(0x313)]=(this[_0x30ad6f(0x313)]+0x1)%ot[_0x30ad6f(0x327)],this[_0x30ad6f(0x280)][_0x30ad6f(0x308)](_0x314b39,_0x512401),_0x512401;}}function $t(_0x5dc80a){const _0x26ee8c=_0x137374;let _0x31381b='';for(const _0x28abc9 of _0x5dc80a){const {startOffset:_0x6f190c,endOffset:_0x416a1a,isActive:_0x3e2c8e,rangeType:_0x1c81dc,segmentId:_0x1b4477,segmentPage:_0x79cc09}=_0x28abc9;_0x31381b[_0x26ee8c(0x327)]&&(_0x31381b+=','),_0x31381b+=_0x6f190c+':'+_0x416a1a+':'+(_0x3e2c8e?'1':'0')+':'+_0x1c81dc+':'+_0x1b4477+':'+_0x79cc09;}return _0x31381b;}function Ai(_0x8e1748){const _0x4bf7ef=_0x137374,_0x4d1652=_0x8e1748[_0x4bf7ef(0x34f)](','),_0x23bdef=[];for(const _0x4892e5 of _0x4d1652){const [_0x7462ec,_0x159b77,_0xe73a5b,_0x3436d7,_0x5ef157,_0x29358f]=_0x4892e5['split'](':');_0x23bdef[_0x4bf7ef(0x378)]({'startOffset':Number(_0x7462ec),'endOffset':Number(_0x159b77),'collapsed':_0x7462ec===_0x159b77,'isActive':_0xe73a5b==='1','rangeType':_0x3436d7===_0x5e55c6['TEXT']?_0x5e55c6[_0x4bf7ef(0x3b8)]:_0x5e55c6[_0x4bf7ef(0x256)],'segmentId':typeof _0x5ef157==_0x4bf7ef(0x27e)?String(_0x5ef157):'','segmentPage':Number(_0x29358f!=null?_0x29358f:-0x1)});}return _0x23bdef[_0x4bf7ef(0x2a8)](_0x1fe274=>_0x1fe274[_0x4bf7ef(0x299)])||(_0x23bdef[0x0][_0x4bf7ef(0x299)]=!0x0),_0x23bdef;}class ze extends _0xa32225{constructor(){const _0x3b7ed6=_0x137374;super(...arguments),_(this,_0x3b7ed6(0x1e3),new _0x5b93d9(null)),_(this,'collabCursorState$',this[_0x3b7ed6(0x1e3)][_0x3b7ed6(0x315)]());}[_0x137374(0x354)](_0x126fe8){const _0x1cd15b=_0x137374,{unitID:_0xd03a96,memberID:_0x22a0a8,textRanges:_0xf5693d}=_0x126fe8,_0x32464e=$t(_0xf5693d);if(_0x32464e==='')return;const _0x4574d5={'unitID':_0xd03a96,'memberID':_0x22a0a8,'selection':_0x32464e};this[_0x1cd15b(0x1e3)][_0x1cd15b(0x28d)](_0x4574d5);}}var Pi=Object[_0x137374(0x2cb)],wi=(_0x1ba89c,_0xb93a44,_0x5ae7fe,_0x254d73)=>{const _0x560e51=_0x137374;for(var _0x294f30=_0x254d73>0x1?void 0x0:_0x254d73?Pi(_0xb93a44,_0x5ae7fe):_0xb93a44,_0xfbc908=_0x1ba89c[_0x560e51(0x327)]-0x1,_0x175bd9;_0xfbc908>=0x0;_0xfbc908--)(_0x175bd9=_0x1ba89c[_0xfbc908])&&(_0x294f30=_0x175bd9(_0x294f30)||_0x294f30);return _0x294f30;},A=(_0x3d7715,_0x246253)=>(_0x233b08,_0xc4c4da)=>_0x246253(_0x233b08,_0xc4c4da,_0x3d7715);const yi=0x12c,$i=0x64;let xe=class extends _0xa32225{constructor(_0x109eec,_0x571039,_0x43e7b2,_0x33a68c,_0x4bc2fc,_0xae55c2,_0x3e4a96,_0x572207,_0x16283b){const _0x3419d4=_0x137374;super(),_(this,_0x3419d4(0x2c0),!0x1),_(this,_0x3419d4(0x1de),!0x1),_(this,_0x3419d4(0x337),new _0x5b93d9(new Map())),_(this,_0x3419d4(0x2e0),this[_0x3419d4(0x337)]['asObservable']()),_(this,_0x3419d4(0x3e0),new _0x5b93d9([])),_(this,'roomMembers$',this[_0x3419d4(0x3e0)]['pipe'](_0xf53222(yi))),_(this,_0x3419d4(0x1f7),_0x5e38e7(_0x31de2e=>{const _0x3ac383=_0x3419d4,_0x116fcf={'eventID':_0xf8b602['UPDATE_CURSOR'],'data':{'unitID':this[_0x3ac383(0x1f4)],'memberID':this[_0x3ac383(0x263)][_0x3ac383(0x22d)](),'selection':$t(_0x31de2e)}};this['_session'][_0x3ac383(0x3e2)](_0x116fcf,this['unitID']);},$i)),(this[_0x3419d4(0x1f4)]=_0x109eec,this[_0x3419d4(0x263)]=_0x571039,this[_0x3419d4(0x265)]=_0x43e7b2,this[_0x3419d4(0x357)]=_0x33a68c,this[_0x3419d4(0x419)]=_0x4bc2fc,this['_syncEditingCollabCursorService']=_0xae55c2,this[_0x3419d4(0x304)]=_0x3e4a96,this['_univerInstanceService']=_0x572207,this[_0x3419d4(0x233)]=_0x16283b);}get[_0x137374(0x2fd)](){const _0x1f32f1=_0x137374;return this[_0x1f32f1(0x337)][_0x1f32f1(0x352)]();}get[_0x137374(0x2f8)](){const _0x5c98c1=_0x137374;return this['_roomMembers$'][_0x5c98c1(0x352)]();}['dispose'](){const _0x68c0fd=_0x137374;super['dispose'](),this[_0x68c0fd(0x337)]['next'](new Map()),this[_0x68c0fd(0x337)][_0x68c0fd(0x301)](),this[_0x68c0fd(0x3e0)][_0x68c0fd(0x28d)]([]),this[_0x68c0fd(0x3e0)][_0x68c0fd(0x301)]();}['init'](){const _0x3b43db=_0x137374;this['_init']||(this[_0x3b43db(0x1de)]=!0x0,this[_0x3b43db(0x263)][_0x3b43db(0x3de)][_0x3b43db(0x25f)](_0x1d8ed1(this[_0x3b43db(0x3c7)]))[_0x3b43db(0x305)](_0x5f1453=>{const _0x5d8803=_0x3b43db;_0x5f1453===_0x1147de[_0x5d8803(0x386)]?this[_0x5d8803(0x3d1)]():this['_toggleOffline']();}),this[_0x3b43db(0x263)][_0x3b43db(0x1e9)][_0x3b43db(0x25f)](_0x1d8ed1(this[_0x3b43db(0x3c7)]))[_0x3b43db(0x305)](_0x129ab=>{const _0x15346f=_0x3b43db,_0x3a1f92=_0x129ab[_0x15346f(0x239)];_0x3a1f92===_0xf8b602[_0x15346f(0x2cc)]&&this[_0x15346f(0x2cf)](_0x129ab),_0x3a1f92===_0xf8b602[_0x15346f(0x3fb)]&&this['_onCursorDelete'](_0x129ab);}),this[_0x3b43db(0x32c)](this[_0x3b43db(0x233)][_0x3b43db(0x23a)](_0x59578c=>{const _0x310cfc=_0x3b43db,_0x4650fa=_0x59578c['params'];_0x4650fa!=null&&this['_online']&&_0x59578c['id']===_0x33f8ea['id']&&_0x4650fa[_0x310cfc(0x207)]===this[_0x310cfc(0x1f4)]&&_0x4650fa[_0x310cfc(0x362)]===!0x1&&_0x4650fa['ranges'][_0x310cfc(0x327)]>0x0&&this['_updateLocalCursor'](_0x4650fa[_0x310cfc(0x227)]);})),this[_0x3b43db(0x211)]['collabCursorState$'][_0x3b43db(0x25f)](_0x1d8ed1(this['dispose$']))[_0x3b43db(0x305)](_0x44211c=>{const _0x26878c=_0x3b43db;if((_0x44211c==null?void 0x0:_0x44211c['unitID'])!==this['unitID'])return;const _0xf3e3f6={'eventID':_0xf8b602[_0x26878c(0x2cc)],'data':_0x44211c};this[_0x26878c(0x2cf)](_0xf3e3f6);}),this['disposeWithMe'](this[_0x3b43db(0x233)][_0x3b43db(0x23a)](_0x390e15=>{const _0x1c0b8e=_0x3b43db;if(_0x390e15[_0x1c0b8e(0x2c3)]==null)return;const _0x1f6488=_0x390e15[_0x1c0b8e(0x2c3)];if(_0x390e15['id']!==_0x26be09['id']||_0x1f6488[_0x1c0b8e(0x207)]!==this[_0x1c0b8e(0x1f4)])return;const _0x4d1236={'id':_0x1c0b8e(0x338),'params':_0x1f6488},_0x4db296=this['cursorInfo'];for(const [_0x456fdd,_0x3af459]of _0x4db296){const _0x21dfa1={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x1c0b8e(0x1f4)],'actions':null,'textRanges':_0x3af459[_0x1c0b8e(0x227)]}},_0x5dc4ac=this[_0x1c0b8e(0x304)]['transformMutation'](_0x4d1236,_0x21dfa1,!0x1);if(_0x5c3d1d(_0x5dc4ac))throw _0x5dc4ac[_0x1c0b8e(0x349)];_0x4db296[_0x1c0b8e(0x308)](_0x456fdd,{..._0x3af459,'ranges':_0x5dc4ac[_0x1c0b8e(0x20c)][_0x1c0b8e(0x2c3)]['textRanges']});}queueMicrotask(()=>{const _0x58e7d8=_0x1c0b8e;this[_0x58e7d8(0x337)]['next'](_0x4db296);});})));}[_0x137374(0x2cf)](_0x2638ee){const _0xc74b37=_0x137374;var _0x20787e,_0x5d43b8;const {memberID:_0x5594ed,selection:_0xfc113e}=_0x2638ee[_0xc74b37(0x286)],_0xf8eb3d=Ai(_0xfc113e),_0x1d0528=(_0x5d43b8=(_0x20787e=this['_memberService'][_0xc74b37(0x21d)](this[_0xc74b37(0x1f4)],_0x5594ed))==null?void 0x0:_0x20787e[_0xc74b37(0x1ff)])!=null?_0x5d43b8:_0xc74b37(0x274),_0x1577b7={'color':this[_0xc74b37(0x357)][_0xc74b37(0x350)](_0x5594ed),'name':_0x1d0528,'ranges':_0xf8eb3d},_0x14c677=this[_0xc74b37(0x2fd)];_0x14c677[_0xc74b37(0x308)](_0x5594ed,_0x1577b7),this[_0xc74b37(0x337)][_0xc74b37(0x28d)](_0x14c677);}['_onCursorDelete'](_0x4fad6a){const _0x1846a0=_0x137374,{memberID:_0x3ef1ed}=_0x4fad6a[_0x1846a0(0x286)],_0x56116a=this[_0x1846a0(0x2fd)];_0x56116a[_0x1846a0(0x2c2)](_0x3ef1ed),this['_cursorInfo$'][_0x1846a0(0x28d)](_0x56116a);}[_0x137374(0x3d1)](){const _0x5e0f92=_0x137374;var _0x4482cc;if(this['_online']=!0x0,((_0x4482cc=this[_0x5e0f92(0x366)][_0x5e0f92(0x3f8)]())==null?void 0x0:_0x4482cc[_0x5e0f92(0x254)]())!==this[_0x5e0f92(0x1f4)])return;const _0x563341=this['_injector']['get'](_0x46950a)[_0x5e0f92(0x369)]();Array[_0x5e0f92(0x3a7)](_0x563341)&&_0x563341['length']>0x0&&this[_0x5e0f92(0x1f7)](_0x563341);}[_0x137374(0x380)](){const _0xd39bb7=_0x137374;this[_0xd39bb7(0x2c0)]=!0x1;}};xe=wi([A(0x2,_0x23f7c2(_0x1173e2)),A(0x3,_0x23f7c2(Ke)),A(0x4,_0x23f7c2(_0x1e15f6)),A(0x5,_0x23f7c2(ze)),A(0x6,_0x44abdb),A(0x7,_0x14d7a9),A(0x8,_0x532ba9)],xe);var xi=Object[_0x137374(0x2cb)],Bi=(_0x453b71,_0x3c2fc3,_0x290936,_0x5599ec)=>{const _0x3e30a2=_0x137374;for(var _0x2dfa83=_0x5599ec>0x1?void 0x0:_0x5599ec?xi(_0x3c2fc3,_0x290936):_0x3c2fc3,_0x4fa144=_0x453b71[_0x3e30a2(0x327)]-0x1,_0x3681fc;_0x4fa144>=0x0;_0x4fa144--)(_0x3681fc=_0x453b71[_0x4fa144])&&(_0x2dfa83=_0x3681fc(_0x2dfa83)||_0x2dfa83);return _0x2dfa83;},B=(_0x595192,_0x148cbb)=>(_0x417696,_0x4b8c4e)=>_0x148cbb(_0x417696,_0x4b8c4e,_0x595192);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x4022d0=[],_0x429c56=!0x1;return _0x1d442e=>{_0x4022d0['push'](_0x1d442e),_0x429c56||(_0x429c56=!0x0,setTimeout(()=>{const _0x51974e=_0x3d3a;_0x4022d0[_0x51974e(0x343)](_0x43b9a1=>_0x43b9a1()),_0x4022d0=[],_0x429c56=!0x1;}));};};let Be=class extends _0xa32225{constructor(_0x5405d2,_0x1a81f5,_0x540566,_0x3e67c6,_0x122f73,_0x236757,_0x1f7cae,_0x103e89){const _0x1f6481=_0x137374;super(),_(this,_0x1f6481(0x2c0),!0x1),_(this,_0x1f6481(0x1de),!0x1),_(this,_0x1f6481(0x337),new _0x5b93d9(new Map())),_(this,_0x1f6481(0x2e0),this['_cursorInfo$']['asObservable']()),_(this,_0x1f6481(0x3e0),new _0x5b93d9([])),_(this,_0x1f6481(0x205),this[_0x1f6481(0x3e0)]['pipe'](_0xf53222(Fi))),_(this,_0x1f6481(0x1f7),_0x5e38e7((_0x2f3cd9,_0x360472)=>{const _0x54a846=_0x1f6481,_0x282170={'eventID':_0xf8b602[_0x54a846(0x2cc)],'data':{'unitID':this[_0x54a846(0x1f4)],'memberID':this['_session'][_0x54a846(0x22d)](),'selection':_0x2ef9fb(_0x2f3cd9,_0x360472['range'])}};this['_session'][_0x54a846(0x3e2)](_0x282170,this['unitID']);},ki)),(this[_0x1f6481(0x1f4)]=_0x5405d2,this[_0x1f6481(0x263)]=_0x1a81f5,this['_injector']=_0x540566,this[_0x1f6481(0x357)]=_0x3e67c6,this['_memberService']=_0x122f73,this[_0x1f6481(0x366)]=_0x236757,this[_0x1f6481(0x233)]=_0x1f7cae,this[_0x1f6481(0x413)]=_0x103e89);}get[_0x137374(0x2fd)](){const _0x234f4e=_0x137374;return this[_0x234f4e(0x337)]['getValue']();}get[_0x137374(0x2f8)](){const _0x497584=_0x137374;return this['_roomMembers$'][_0x497584(0x352)]();}[_0x137374(0x325)](){const _0x3e7204=_0x137374;super[_0x3e7204(0x325)](),this[_0x3e7204(0x337)][_0x3e7204(0x28d)](new Map()),this[_0x3e7204(0x337)][_0x3e7204(0x301)](),this['_roomMembers$'][_0x3e7204(0x28d)]([]),this['_roomMembers$'][_0x3e7204(0x301)]();}['init'](){const _0x3163dc=_0x137374;this[_0x3163dc(0x1de)]||(this[_0x3163dc(0x1de)]=!0x0,this[_0x3163dc(0x263)]['sessionStatus$']['pipe'](_0x1d8ed1(this[_0x3163dc(0x3c7)]))[_0x3163dc(0x305)](_0x92a1ac=>{const _0x576f23=_0x3163dc;_0x92a1ac===_0x1147de[_0x576f23(0x386)]?this[_0x576f23(0x3d1)]():this['_toggleOffline']();}),this[_0x3163dc(0x263)][_0x3163dc(0x1e9)]['pipe'](_0x1d8ed1(this['dispose$']))['subscribe'](_0x56a981=>{const _0x284835=_0x3163dc,_0x5eb8bc=_0x56a981['eventID'];_0x5eb8bc===_0xf8b602[_0x284835(0x2cc)]&&this[_0x284835(0x2cf)](_0x56a981),_0x5eb8bc===_0xf8b602[_0x284835(0x3fb)]&&this[_0x284835(0x241)](_0x56a981);}),this['_onRefRangeChange'](),this[_0x3163dc(0x32c)](this[_0x3163dc(0x233)][_0x3163dc(0x23a)](_0x1040eb=>{const _0xdf901c=_0x3163dc;if(this['_online']&&_0x1040eb['id']===_0x49f5b6['id']&&_0x1040eb[_0xdf901c(0x2c3)][_0xdf901c(0x207)]===this['unitID']){const _0x1b7870=_0x1040eb[_0xdf901c(0x2c3)];this[_0xdf901c(0x1f7)](_0x1b7870[_0xdf901c(0x32a)],_0x1b7870[_0xdf901c(0x2e2)][0x0]);}})));}[_0x137374(0x2cf)](_0x2c994e){const _0x507202=_0x137374;var _0x468da6,_0x581bbe;const {memberID:_0x3ff27a,selection:_0x4ad318}=_0x2c994e['data'],{sheetName:_0x3a81e3,range:_0x5cf037}=_0x13c820(_0x4ad318),_0x352950={'name':(_0x581bbe=(_0x468da6=this['_memberService'][_0x507202(0x21d)](this[_0x507202(0x1f4)],_0x3ff27a))==null?void 0x0:_0x468da6[_0x507202(0x1ff)])!=null?_0x581bbe:_0x507202(0x274),'range':this[_0x507202(0x3f0)](_0x3a81e3,_0x5cf037),'sheetID':_0x3a81e3,'color':this[_0x507202(0x357)]['assignAColorForMemberID'](_0x3ff27a),'selection':_0x4ad318},_0x42bd93=this[_0x507202(0x2fd)];_0x42bd93['set'](_0x3ff27a,_0x352950),this[_0x507202(0x337)]['next'](_0x42bd93);}[_0x137374(0x241)](_0x4773f9){const _0x197a65=_0x137374,{memberID:_0x54eae9}=_0x4773f9[_0x197a65(0x286)],_0x54aeb2=this['cursorInfo'];_0x54aeb2['delete'](_0x54eae9),this[_0x197a65(0x337)][_0x197a65(0x28d)](_0x54aeb2);}[_0x137374(0x3f0)](_0x2441bd,_0x16eea8){const _0x314d41=_0x137374;var _0xd30ee8,_0x431b5e;const _0x3d8e8e=(_0x431b5e=(_0xd30ee8=this['_univerInstanceService'][_0x314d41(0x31b)](this[_0x314d41(0x1f4)]))==null?void 0x0:_0xd30ee8['getSheetBySheetId'](_0x2441bd))==null?void 0x0:_0x431b5e[_0x314d41(0x2ce)]();return(_0x3d8e8e==null?void 0x0:_0x3d8e8e[_0x314d41(0x215)](_0x4d727b=>_0x510353['contains'](_0x4d727b,_0x16eea8)))||_0x16eea8;}['_onRefRangeChange'](){const _0x5a9a7d=_0x137374,_0x4ccdf4=new _0x21c388(),_0x123f75=Hi(),_0x1d40cb=()=>{const _0x4dd24b=_0x3d3a;_0x4ccdf4[_0x4dd24b(0x325)]();const _0x35b0c0=(_0x2f8b4f,_0x5a5b2e,_0x51d42a,_0x5b38ec)=>{const _0x48bf36=_0x4dd24b;let _0x1c7af3=[];switch(_0x2f8b4f['id']){case _0x495460[_0x48bf36(0x41f)]:{_0x1c7af3=_0x5d65ed(_0x2f8b4f,_0x5b38ec);break;}case _0x495460[_0x48bf36(0x2ca)]:{_0x1c7af3=_0x19e82f(_0x2f8b4f,_0x5b38ec);break;}case _0x495460['InsertColCommandId']:{_0x1c7af3=_0x310ac0(_0x2f8b4f,_0x5b38ec);break;}case _0x495460[_0x48bf36(0x2e1)]:{_0x1c7af3=_0x1aa2a3(_0x2f8b4f,_0x5b38ec);break;}case _0x495460[_0x48bf36(0x2ba)]:{_0x1c7af3=_0x4fea4e(_0x2f8b4f,_0x5b38ec);break;}case _0x495460[_0x48bf36(0x418)]:{_0x1c7af3=_0x2c24c2(_0x2f8b4f,_0x5b38ec);break;}case _0x495460[_0x48bf36(0x3f3)]:{_0x1c7af3=_0x43875b(_0x2f8b4f,_0x5b38ec);break;}case _0x495460['RemoveColCommandId']:{_0x1c7af3=_0x2e7529(_0x2f8b4f,_0x5b38ec);break;}case _0x495460[_0x48bf36(0x1f8)]:{_0x1c7af3=_0x429be3(_0x2f8b4f,_0x5b38ec);break;}}const _0x173ab5=_0x521ce3(_0x1c7af3,_0x5b38ec),_0x8ff000=this['cursorInfo']['get'](_0x5a5b2e);if(_0x8ff000&&_0x173ab5){const _0x2a6244={..._0x8ff000,'range':_0x173ab5};this[_0x48bf36(0x2fd)][_0x48bf36(0x308)](_0x5a5b2e,_0x2a6244),_0x123f75(()=>{const _0x5cd107=_0x48bf36,_0x2c8cc4=this[_0x5cd107(0x413)][_0x5cd107(0x3ee)](_0x173ab5,_0x3aaf5e=>(_0x2c8cc4[_0x5cd107(0x325)](),_0x35b0c0(_0x3aaf5e,_0x5a5b2e,_0x51d42a,_0x173ab5)));_0x4ccdf4[_0x5cd107(0x37d)](_0x2c8cc4);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x3792fa,_0x5ac070)=>{const _0x3af6a4=_0x4dd24b,{range:_0x325ff7,sheetID:_0x38527b}=_0x3792fa,_0x2be4d7=this[_0x3af6a4(0x413)][_0x3af6a4(0x3ee)](_0x325ff7,_0x125e58=>(_0x2be4d7['dispose'](),_0x35b0c0(_0x125e58,_0x5ac070,_0x38527b,_0x325ff7)));_0x4ccdf4[_0x3af6a4(0x37d)](_0x2be4d7);});};this[_0x5a9a7d(0x32c)](_0x10b382(this[_0x5a9a7d(0x337)][_0x5a9a7d(0x305)](()=>{_0x1d40cb();})));}[_0x137374(0x3d1)](){const _0x57cfd9=_0x137374;var _0x59eeac,_0x2deeb5;if(this['_online']=!0x0,((_0x59eeac=this[_0x57cfd9(0x366)][_0x57cfd9(0x3f8)]())==null?void 0x0:_0x59eeac[_0x57cfd9(0x254)]())!==this[_0x57cfd9(0x1f4)])return;const _0x1a8865=(_0x2deeb5=this[_0x57cfd9(0x265)]['get'](_0x552954)[_0x57cfd9(0x25a)]())==null?void 0x0:_0x2deeb5[0x0],_0x12f164=this[_0x57cfd9(0x366)][_0x57cfd9(0x41a)](_0x221888[_0x57cfd9(0x35c)])[_0x57cfd9(0x3d8)]();_0x1a8865&&_0x12f164&&this[_0x57cfd9(0x1f7)](_0x12f164[_0x57cfd9(0x2f3)](),_0x1a8865);}[_0x137374(0x380)](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0x23f7c2(_0x1173e2)),B(0x3,_0x23f7c2(Ke)),B(0x4,_0x23f7c2(_0x1e15f6)),B(0x5,_0x14d7a9),B(0x6,_0x532ba9),B(0x7,_0x23f7c2(_0x46b6a8))],Be);var Yi=Object[_0x137374(0x2cb)],Wi=(_0x445820,_0x581360,_0x45be04,_0x3f9d09)=>{for(var _0x3b61c7=_0x3f9d09>0x1?void 0x0:_0x3f9d09?Yi(_0x581360,_0x45be04):_0x581360,_0x476ab8=_0x445820['length']-0x1,_0x5935ea;_0x476ab8>=0x0;_0x476ab8--)(_0x5935ea=_0x445820[_0x476ab8])&&(_0x3b61c7=_0x5935ea(_0x3b61c7)||_0x3b61c7);return _0x3b61c7;},Ce=(_0xa6124e,_0x50a775)=>(_0x1ba36b,_0x3a8167)=>_0x50a775(_0x1ba36b,_0x3a8167,_0xa6124e);let H=class extends _0xa32225{constructor(_0x189921,_0x86d38b,_0x9e72cb){const _0x1da4cc=_0x137374;super(),_(this,'_entities',new Map()),_(this,_0x1da4cc(0x3ab),new _0x24d9e4()),(this[_0x1da4cc(0x366)]=_0x189921,this[_0x1da4cc(0x265)]=_0x86d38b,this[_0x1da4cc(0x358)]=_0x9e72cb,this[_0x1da4cc(0x1de)]());}['dispose'](){const _0xb46bdc=_0x137374;super[_0xb46bdc(0x325)](),this[_0xb46bdc(0x3ab)][_0xb46bdc(0x301)](),this['_entities']['forEach'](_0x590447=>_0x590447[_0xb46bdc(0x325)]());}[_0x137374(0x27a)](_0x5177de){const _0x4336a0=_0x137374;return this[_0x4336a0(0x20b)][_0x4336a0(0x3ea)](_0x5177de)?this[_0x4336a0(0x20b)][_0x4336a0(0x34d)](_0x5177de)['cursorInfo$']:this['_entityInit$'][_0x4336a0(0x25f)](_0x2cee0a(_0x4bd2e0=>_0x4bd2e0['unitID']===_0x5177de),_0x5cbe42(_0x598060=>_0x598060[_0x4336a0(0x2e0)]));}[_0x137374(0x1de)](){const _0x16a4ec=_0x137374;this[_0x16a4ec(0x366)][_0x16a4ec(0x379)](_0x221888['UNIVER_SHEET'])[_0x16a4ec(0x25f)](_0x1d8ed1(this[_0x16a4ec(0x3c7)]))[_0x16a4ec(0x305)](async _0xf36bf5=>{const _0x3c1c59=_0x16a4ec,_0x2ac614=_0xf36bf5['getUnitId'](),_0xf9b7df=await this[_0x3c1c59(0x282)](_0x2ac614);this[_0x3c1c59(0x3ab)]['next'](_0xf9b7df),this[_0x3c1c59(0x20b)][_0x3c1c59(0x308)](_0x2ac614,_0xf9b7df);}),this[_0x16a4ec(0x366)][_0x16a4ec(0x379)](_0x221888[_0x16a4ec(0x2f2)])[_0x16a4ec(0x25f)](_0x1d8ed1(this['dispose$']))[_0x16a4ec(0x25f)](_0x2cee0a(_0x24641d=>!_0x24641d[_0x16a4ec(0x254)]()[_0x16a4ec(0x3ef)]('__')))[_0x16a4ec(0x305)](async _0x4d38b6=>{const _0x327f36=_0x16a4ec,_0x3642e2=_0x4d38b6['getUnitId'](),_0x3bc39e=await this['_startDocCollabCursor'](_0x3642e2);this['_entityInit$'][_0x327f36(0x28d)](_0x3bc39e),this[_0x327f36(0x20b)]['set'](_0x3642e2,_0x3bc39e);}),_0x2fab56(this[_0x16a4ec(0x366)][_0x16a4ec(0x2aa)](_0x221888[_0x16a4ec(0x2f2)]),this[_0x16a4ec(0x366)][_0x16a4ec(0x2aa)](_0x221888[_0x16a4ec(0x35c)]))[_0x16a4ec(0x25f)](_0x1d8ed1(this['dispose$']))[_0x16a4ec(0x305)](_0x196217=>{const _0x48dd9a=_0x16a4ec,_0x3d3671=_0x196217[_0x48dd9a(0x254)](),_0x62216b=this[_0x48dd9a(0x20b)]['get'](_0x3d3671);_0x62216b&&(_0x62216b[_0x48dd9a(0x325)](),this[_0x48dd9a(0x20b)]['delete'](_0x3d3671));});}async['_startSheetCollabCursor'](_0x3e9e78){const _0x3b927c=_0x137374,_0x4ea4bc=await this[_0x3b927c(0x358)][_0x3b927c(0x277)](_0x3e9e78),_0x107387=this[_0x3b927c(0x265)]['createInstance'](Be,_0x3e9e78,_0x4ea4bc);return _0x107387['init'](),_0x107387;}async[_0x137374(0x346)](_0x350b26){const _0x216bb6=_0x137374,_0x2bf9db=await this[_0x216bb6(0x358)]['requireSession'](_0x350b26),_0x535761=this[_0x216bb6(0x265)][_0x216bb6(0x3a3)](xe,_0x350b26,_0x2bf9db);return _0x535761['init'](),_0x535761;}};H=Wi([Ce(0x0,_0x14d7a9),Ce(0x1,_0x23f7c2(_0x1173e2)),Ce(0x2,_0x23f7c2(_0x66bad9))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x11e71a,_0x18f707){const _0x322c08=_0x137374;let {radius:_0x553156,width:_0x2a483e,height:_0x393873}=_0x18f707;_0x553156=_0x553156!=null?_0x553156:0x0,_0x2a483e=_0x2a483e!=null?_0x2a483e:0x1e,_0x393873=_0x393873!=null?_0x393873:0x1e;let _0xa81492=0x0,_0x5b61b3=0x0,_0x13901d=0x0;_0xa81492=_0x5b61b3=_0x13901d=Math[_0x322c08(0x407)](_0x553156,_0x2a483e/0x2,_0x393873/0x2),_0x11e71a['beginPath'](),_0x11e71a[_0x322c08(0x3c3)](_0xa81492,0x0),_0x11e71a['lineTo'](_0x2a483e-_0x5b61b3,0x0),_0x11e71a[_0x322c08(0x39f)](_0x2a483e-_0x5b61b3,_0x5b61b3,_0x5b61b3,Math['PI']*0x3/0x2,0x0,!0x1),_0x11e71a[_0x322c08(0x20a)](_0x2a483e,_0x393873-_0x13901d),_0x11e71a[_0x322c08(0x39f)](_0x2a483e-_0x13901d,_0x393873-_0x13901d,_0x13901d,0x0,Math['PI']/0x2,!0x1),_0x11e71a[_0x322c08(0x20a)](0x0,_0x393873),_0x11e71a[_0x322c08(0x20a)](0x0,_0xa81492),_0x11e71a[_0x322c08(0x39f)](_0xa81492,_0xa81492,_0xa81492,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x11e71a[_0x322c08(0x40d)](),_0x18f707['fill']&&(_0x11e71a[_0x322c08(0x264)](),_0x11e71a[_0x322c08(0x22f)]=_0x18f707[_0x322c08(0x2c1)],_0x18f707['fillRule']===_0x322c08(0x361)?_0x11e71a['fill']('evenodd'):_0x11e71a[_0x322c08(0x2c1)](),_0x11e71a[_0x322c08(0x39a)]());}class ve extends _0x24350b{constructor(_0x5c3d2c,_0x810e4b){const _0x8507fd=_0x137374;super(_0x5c3d2c,_0x810e4b),_(this,_0x8507fd(0x26f)),_(this,_0x8507fd(0x3a9)),(this[_0x8507fd(0x26f)]=_0x810e4b==null?void 0x0:_0x810e4b['color'],this[_0x8507fd(0x3a9)]=_0x810e4b==null?void 0x0:_0x810e4b[_0x8507fd(0x3a9)]);}static[_0x137374(0x1ea)](_0x33d1cc,_0x2e8abe){const _0x523a51=_0x137374,{text:_0x38beea,color:_0x428a22}=_0x2e8abe;_0x33d1cc[_0x523a51(0x264)](),_0x33d1cc['font']=_0x523a51(0x21f);const _0x404099=_0x33d1cc['measureText'](_0x38beea)[_0x523a51(0x385)],_0x396269=Math['min'](_0x404099+0x2*Re,at);ji(_0x33d1cc,{'height':Q,'radius':0x4,'width':_0x396269,'fill':_0x428a22}),_0x33d1cc[_0x523a51(0x22f)]='#FFF';const _0x102a95=Re,_0x44e0dc=Q-Vi,_0x30943e=at-0x2*Re;if(_0x404099>_0x30943e){let _0x4ce1a6='',_0x4e145d=0x0;for(const _0x3626ea of _0x38beea){const _0x242199=_0x33d1cc[_0x523a51(0x2de)](_0x3626ea)[_0x523a51(0x385)];if(_0x4e145d+_0x242199<=_0x30943e-_0x33d1cc[_0x523a51(0x2de)](_0x523a51(0x36f))[_0x523a51(0x385)])_0x4ce1a6+=_0x3626ea,_0x4e145d+=_0x242199;else{_0x4ce1a6+=_0x523a51(0x36f);break;}}_0x33d1cc[_0x523a51(0x23c)](_0x4ce1a6,_0x102a95,_0x44e0dc);}else _0x33d1cc['fillText'](_0x38beea,_0x102a95,_0x44e0dc);_0x33d1cc[_0x523a51(0x39a)]();}[_0x137374(0x1f1)](_0x35e3cb){ve['drawWith'](_0x35e3cb,this);}}const De=_0x137374(0x31c),Xi='collab-text-range-',Gi=_0x137374(0x37a),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji='rgba(255,\x20255,\x20255,\x200.01)';class ct{constructor(_0x50f398,_0x23db4e,_0xcbb04c,_0x5d4538){const _0x3fff3c=_0x137374;_(this,_0x3fff3c(0x270),[]),_(this,_0x3fff3c(0x281),null),_(this,'_textBubble',null),_(this,_0x3fff3c(0x3e3),null),_(this,_0x3fff3c(0x2bb),null),_(this,_0x3fff3c(0x2b0),null),(this[_0x3fff3c(0x38d)]=_0x50f398,this[_0x3fff3c(0x37f)]=_0x23db4e,this['_docSkeleton']=_0xcbb04c,this[_0x3fff3c(0x345)]=_0x5d4538,this[_0x3fff3c(0x330)]());}set[_0x137374(0x2f6)](_0x534d31){const _0x12f2eb=_0x137374;_0x534d31?(this['_anchorDot']&&this[_0x12f2eb(0x3e3)][_0x12f2eb(0x3ec)](),this[_0x12f2eb(0x23e)]&&this[_0x12f2eb(0x23e)]['show']()):(this[_0x12f2eb(0x3e3)]&&this[_0x12f2eb(0x3e3)][_0x12f2eb(0x342)](),this['_textBubble']&&this[_0x12f2eb(0x23e)][_0x12f2eb(0x3ec)]());}[_0x137374(0x325)](){const _0x196716=_0x137374;for(const _0x2ef33d of this[_0x196716(0x270)])_0x2ef33d['dispose']();this[_0x196716(0x23e)]&&this['_textBubble'][_0x196716(0x325)](),this[_0x196716(0x3e3)]&&this[_0x196716(0x3e3)][_0x196716(0x325)](),this[_0x196716(0x281)]&&this[_0x196716(0x281)][_0x196716(0x325)](),this['_eventUnsubscribe']&&this[_0x196716(0x2b0)]();}['_render'](){const _0xd2605d=_0x137374;var _0x50ca26;const {_docSkeleton:_0x1b228c,_document:_0x539840}=this,{color:_0x57e381,name:_0x1cc3af,ranges:_0x1606db}=this[_0xd2605d(0x38d)],_0x4ed0e2=_0x539840[_0xd2605d(0x38f)](),{docsLeft:_0x2c548f,docsTop:_0x3c6d80}=_0x4ed0e2,_0x285ccc=new _0x118499(_0x4ed0e2,_0x1b228c);for(const {startOffset:_0x1d3794,endOffset:_0x3b7a08,rangeType:_0x2dcbd1,segmentId:_0x12e9f6,segmentPage:_0x139682,collapsed:_0x7e0f3d,isActive:_0x301b19}of _0x1606db){const _0x35bf0b=_0x1b228c[_0xd2605d(0x1e5)](_0x1d3794,!0x0,_0x12e9f6,_0x139682);let _0x86d053=_0x1b228c[_0xd2605d(0x1e5)](_0x3b7a08,!0x0,_0x12e9f6,_0x139682);if(_0x86d053==null&&(_0x86d053=_0x1b228c['findNodePositionByCharIndex'](_0x3b7a08-0x1,!0x1,_0x12e9f6,_0x139682)),_0x301b19){const {contentBoxPointGroup:_0x400027}=_0x285ccc[_0xd2605d(0x1ec)](_0x86d053,_0x86d053);if(_0x400027[_0xd2605d(0x327)]===0x0)continue;this[_0xd2605d(0x408)](_0x57e381,_0x400027,_0x2c548f,_0x3c6d80,_0x1cc3af),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x35bf0b&&_0x86d053){if(_0x2dcbd1===_0x5e55c6[_0xd2605d(0x256)]){const _0x30d367=new _0x5c33ef(_0x4ed0e2,_0x1b228c),{pointGroup:_0x20f825}=(_0x50ca26=_0x30d367['getRangePointData'](_0x35bf0b,_0x86d053))!=null?_0x50ca26:{};if(_0x20f825==null||_0x20f825[_0xd2605d(0x327)]===0x0)continue;this[_0xd2605d(0x3d2)](_0x57e381,_0x20f825,_0x2c548f,_0x3c6d80);}else{if(!_0x7e0f3d){const {borderBoxPointGroup:_0xc2585a}=_0x285ccc['getRangePointData'](_0x35bf0b,_0x86d053);if(_0xc2585a[_0xd2605d(0x327)]===0x0)continue;this['_drawTextRange'](_0x57e381,_0xc2585a,_0x2c548f,_0x3c6d80);}}}}}[_0x137374(0x408)](_0x29e2d7,_0x3c5a3c,_0x4dbbfe,_0x1e71dc,_0x5954ed){const _0xcd1434=_0x137374,_0x28fce1=this['_getAnchorBounding'](_0x3c5a3c),{left:_0x56154e,top:_0x1b0e68,height:_0x5dbe96}=_0x28fce1,_0x15c336=this[_0xcd1434(0x2e9)](),_0x2b8388=zi/_0x15c336,_0x1e1ed2=new _0x43325f(De+_0x1a0884(z),{'left':_0x56154e+_0x4dbbfe-_0x2b8388,'top':_0x1b0e68+_0x1e71dc,'height':_0x5dbe96,'width':Ki,'fill':_0x29e2d7||_0x252682(_0x456502['black'],0x0),'strokeWidth':_0x2b8388,'stroke':Ji,'evented':!0x0});this[_0xcd1434(0x281)]=_0x1e1ed2,this[_0xcd1434(0x37f)][_0xcd1434(0x24e)](_0x1e1ed2,_0x2afac1);const _0x202ef2=new _0x43325f(De+_0x1a0884(z),{'left':_0x56154e+_0x4dbbfe-_0x2b8388,'top':_0x1b0e68+_0x1e71dc-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x29e2d7||_0x252682(_0x456502['black'],0x0),'strokeWidth':0x0,'stroke':_0x29e2d7||_0x252682(_0x456502[_0xcd1434(0x28b)],0x0),'evented':!0x1});this[_0xcd1434(0x3e3)]=_0x202ef2,this['_scene'][_0xcd1434(0x24e)](_0x202ef2,_0x2afac1);const _0x279b60=new ve(De+_0x1a0884(z),{'left':_0x56154e+_0x4dbbfe-_0x2b8388,'top':_0x1b0e68+_0x1e71dc-Q,'text':_0x5954ed,'color':_0x29e2d7});this[_0xcd1434(0x23e)]=_0x279b60,this[_0xcd1434(0x37f)][_0xcd1434(0x24e)](_0x279b60,_0x2afac1),this[_0xcd1434(0x2f6)]=!0x1;}['_handleHover'](){const _0x34f7c8=_0x137374,_0x1419f8=this[_0x34f7c8(0x281)][_0x34f7c8(0x260)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x268608=this['_anchor'][_0x34f7c8(0x230)][_0x34f7c8(0x374)](()=>{const _0x2d09d4=_0x34f7c8;this['_hideTimer']&&clearTimeout(this[_0x2d09d4(0x2bb)]),this[_0x2d09d4(0x2bb)]=setTimeout(()=>{const _0x6d0897=_0x2d09d4;this[_0x6d0897(0x2f6)]=!0x1;},0x7d0);});return()=>{const _0x4f0382=_0x34f7c8;_0x1419f8[_0x4f0382(0x2ed)](),_0x268608[_0x4f0382(0x2ed)]();};}[_0x137374(0x201)](_0x23cc0b,_0x1cb6d4,_0x494ba3,_0x265a32){const _0xff4c3=_0x137374,_0x450ca7=new _0x2a7785(_0x23cc0b)[_0xff4c3(0x344)](0.2)[_0xff4c3(0x249)](),_0x10891b=new _0x4db73d(Xi+_0x1a0884(z),{'pointsGroup':_0x1cb6d4,'fill':_0x450ca7||_0x252682(_0x456502[_0xff4c3(0x28b)],0.2),'left':_0x494ba3,'top':_0x265a32,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xff4c3(0x270)][_0xff4c3(0x378)](_0x10891b),this[_0xff4c3(0x37f)][_0xff4c3(0x24e)](_0x10891b,_0x2afac1);}['_drawRectRange'](_0x2bfb7c,_0x3fb00d,_0x19f3be,_0x2f34a3){const _0x11ccfe=_0x137374,_0x3ab4cc=new _0x2a7785(_0x2bfb7c)[_0x11ccfe(0x344)](0.2)['toRgbString'](),_0x34df01=new _0x4db73d(Gi+_0x1a0884(z),{'pointsGroup':_0x3fb00d,'fill':_0x3ab4cc||_0x252682(_0x456502['black'],0.2),'left':_0x19f3be,'top':_0x2f34a3,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x11ccfe(0x270)][_0x11ccfe(0x378)](_0x34df01),this[_0x11ccfe(0x37f)][_0x11ccfe(0x24e)](_0x34df01,_0x2afac1);}[_0x137374(0x2e7)](_0x3e14e7){const _0x32e862=_0x3e14e7[0x0],_0x5f13bf=_0x32e862[0x0],_0x3ad688=_0x32e862[0x2],{x:_0x61e71d,y:_0x4cbd7d}=_0x5f13bf,{x:_0xe1b587,y:_0x784548}=_0x3ad688;return{'left':_0x61e71d,'top':_0x4cbd7d,'width':_0xe1b587-_0x61e71d,'height':_0x784548-_0x4cbd7d};}['_getScale'](){const _0x221531=_0x137374,{scaleX:_0x49a5ec,scaleY:_0x2089b2}=this[_0x221531(0x37f)]['getAncestorScale']();return Math['max'](_0x49a5ec,_0x2089b2);}}var Zi=Object[_0x137374(0x2cb)],Qi=(_0x57fef0,_0x2bb2b8,_0x1d171a,_0x3e03f0)=>{const _0x28d50d=_0x137374;for(var _0x3d275e=_0x3e03f0>0x1?void 0x0:_0x3e03f0?Zi(_0x2bb2b8,_0x1d171a):_0x2bb2b8,_0x5350f4=_0x57fef0[_0x28d50d(0x327)]-0x1,_0x3dfd14;_0x5350f4>=0x0;_0x5350f4--)(_0x3dfd14=_0x57fef0[_0x5350f4])&&(_0x3d275e=_0x3dfd14(_0x3d275e)||_0x3d275e);return _0x3d275e;},ie=(_0x19bed6,_0x5334f8)=>(_0x1a7825,_0x4d7d0d)=>_0x5334f8(_0x1a7825,_0x4d7d0d,_0x19bed6);let Fe=class extends _0xa32225{constructor(_0x4eaa6b,_0x170749,_0x217325,_0x12f013,_0x267e48){const _0x38ba0b=_0x137374;super(),_(this,_0x38ba0b(0x27d),[]),_(this,_0x38ba0b(0x3c1),[]),(this[_0x38ba0b(0x229)]=_0x4eaa6b,this['_docSkeletonManagerService']=_0x170749,this[_0x38ba0b(0x285)]=_0x217325,this[_0x38ba0b(0x233)]=_0x12f013,this['_themeService']=_0x267e48,this[_0x38ba0b(0x1de)]());}[_0x137374(0x1de)](){const _0x2c1e62=_0x137374,_0x39b0fe=this[_0x2c1e62(0x229)][_0x2c1e62(0x207)],_0x416e9e=this[_0x2c1e62(0x217)];this[_0x2c1e62(0x32c)](_0x5129a0([this[_0x2c1e62(0x285)]['getCollabCursors$'](_0x39b0fe),this[_0x2c1e62(0x410)][_0x2c1e62(0x1ee)]])[_0x2c1e62(0x25f)](_0x37ca5f(([_0x37c556,_0x1d5a3d])=>({'skeleton':_0x416e9e[_0x2c1e62(0x37e)](),'cursors':[..._0x37c556[_0x2c1e62(0x364)]()][_0x2c1e62(0x2cd)](_0x1c69b7=>({..._0x1c69b7,'color':this['_themeService']['getColorFromTheme'](_0x1c69b7['color'])}))})))['subscribe'](_0x1afc7b=>{const _0xbe0061=_0x2c1e62;if(this[_0xbe0061(0x295)](),_0x1afc7b){const {skeleton:_0x4b1401,cursors:_0x29a1ac}=_0x1afc7b;this[_0xbe0061(0x302)](_0x4b1401,_0x29a1ac);}})),this[_0x2c1e62(0x2d1)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x462147,_0x4edc2f){const _0x3b4d7e=_0x137374,{scene:_0xb37a12,mainComponent:_0x5eb0da}=this[_0x3b4d7e(0x229)],_0x279703=_0x4edc2f[_0x3b4d7e(0x384)](_0x17d4bc=>new ct(_0x17d4bc,_0xb37a12,_0x462147,_0x5eb0da));this[_0x3b4d7e(0x27d)]=_0x279703,this['_cursors']=_0x4edc2f;}[_0x137374(0x1e1)](){const _0x2cfc4e=_0x137374;this[_0x2cfc4e(0x295)]();const {scene:_0xa45920,mainComponent:_0x55028b}=this['_context'],_0x327df6=this[_0x2cfc4e(0x217)][_0x2cfc4e(0x37e)](),_0x1d064b=this[_0x2cfc4e(0x3c1)][_0x2cfc4e(0x384)](_0x1682ee=>new ct(_0x1682ee,_0xa45920,_0x327df6,_0x55028b));this['_cursorShapes']=_0x1d064b;}['_removeCollabCursors'](){const _0x18b337=_0x137374;this[_0x18b337(0x27d)]['forEach'](_0x2b4593=>_0x2b4593[_0x18b337(0x325)]()),this[_0x18b337(0x27d)]=[];}[_0x137374(0x314)](){const _0xe8aeb7=_0x137374,_0x6f8777=[_0xe0676e['id']];this[_0xe8aeb7(0x32c)](this[_0xe8aeb7(0x233)][_0xe8aeb7(0x23a)](_0x36a17a=>{const _0x409d89=_0xe8aeb7;_0x6f8777[_0x409d89(0x2ab)](_0x36a17a['id'])&&_0x36a17a['params'][_0x409d89(0x207)]===this[_0x409d89(0x229)]['unitId']&&this[_0x409d89(0x1e1)]();}));}[_0x137374(0x2d1)](){const _0x440d70=_0x137374;this[_0x440d70(0x32c)](_0x5e75e5(this['_context']['engine'][_0x440d70(0x359)])['pipe'](_0x58385a(_0x52bde6=>_0x52bde6['type']===_0x33a8b4[_0x440d70(0x332)]),_0x12f0f6(0x10))[_0x440d70(0x305)](()=>{const _0x4040f0=_0x440d70;this[_0x4040f0(0x1e1)]();}));}};Fe=Qi([ie(0x1,_0x23f7c2(_0x281b9b)),ie(0x2,_0x23f7c2(H)),ie(0x3,_0x532ba9),ie(0x4,_0x23f7c2(_0x27efaf))],Fe);const qi=0x1,en=1.5;class tn extends _0x24350b{constructor(_0x21a0c9,_0x32dd0d){const _0x2d6788=_0x137374;super(_0x21a0c9,_0x32dd0d),_(this,'_color'),_(this,_0x2d6788(0x399),!0x1),_(this,'_range'),_(this,_0x2d6788(0x28e),''),_(this,_0x2d6788(0x237),_0x2d6788(0x3d5)),_(this,_0x2d6788(0x23d)),(_0x32dd0d&&this[_0x2d6788(0x406)](_0x32dd0d),this[_0x2d6788(0x260)][_0x2d6788(0x374)](()=>this[_0x2d6788(0x406)]({'hovered':!0x0})),this[_0x2d6788(0x230)]['subscribeEvent'](()=>this[_0x2d6788(0x406)]({'hovered':!0x1})));}['setShapeProps'](_0x3b6259){const _0x132e85=_0x137374;var _0x3aa1e6,_0x440345,_0x1dc848,_0x7f912,_0x564eac,_0x4b9245;this[_0x132e85(0x3ae)]=(_0x3aa1e6=_0x3b6259[_0x132e85(0x26f)])!=null?_0x3aa1e6:this[_0x132e85(0x3ae)],this[_0x132e85(0x399)]=(_0x440345=_0x3b6259[_0x132e85(0x3ac)])!=null?_0x440345:this[_0x132e85(0x399)],this[_0x132e85(0x3bd)]=(_0x1dc848=_0x3b6259['range'])!=null?_0x1dc848:this['_range'],this[_0x132e85(0x28e)]=(_0x7f912=_0x3b6259[_0x132e85(0x1ff)])!=null?_0x7f912:this[_0x132e85(0x28e)],this[_0x132e85(0x237)]=(_0x564eac=_0x3b6259[_0x132e85(0x1e7)])!=null?_0x564eac:this['_labelPosition'],this[_0x132e85(0x23d)]=(_0x4b9245=_0x3b6259[_0x132e85(0x30e)])!=null?_0x4b9245:this['_backgroundColor'],this[_0x132e85(0x300)]({'width':_0x3b6259[_0x132e85(0x385)],'height':_0x3b6259[_0x132e85(0x20f)]});}[_0x137374(0x2f1)](_0x463825){const _0x586a1b=_0x137374,{row:_0x1548b5,column:_0xcd11ad}=_0x463825;if(_0x1548b5>=this[_0x586a1b(0x3bd)][_0x586a1b(0x326)]&&_0x1548b5<=this[_0x586a1b(0x3bd)][_0x586a1b(0x375)]&&_0xcd11ad>=this[_0x586a1b(0x3bd)][_0x586a1b(0x234)]&&_0xcd11ad<=this['_range'][_0x586a1b(0x21b)]){this[_0x586a1b(0x406)]({'hovered':!0x0});return;}this[_0x586a1b(0x406)]({'hovered':!0x1});}['triggerDblclick'](_0x4ed09b){return!0x1;}[_0x137374(0x1f1)](_0x19e3b1){const _0x49e196=_0x137374;_0x43325f[_0x49e196(0x1ea)](_0x19e3b1,{'width':this[_0x49e196(0x385)],'height':this['height'],'strokeWidth':en,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x49e196(0x23d)]}),this[_0x49e196(0x399)]&&(_0x19e3b1[_0x49e196(0x264)](),_0x19e3b1[_0x49e196(0x2d8)](0x1,0x0,0x0,0x1,this[_0x49e196(0x385)],this['_labelPosition']===_0x49e196(0x231)?0x0:-Q),ve[_0x49e196(0x1ea)](_0x19e3b1,{'text':this[_0x49e196(0x28e)],'color':this[_0x49e196(0x3ae)]}),_0x19e3b1[_0x49e196(0x39a)]());}}var sn=Object['getOwnPropertyDescriptor'],nn=(_0x1020cf,_0x30c2b9,_0x88e1d0,_0x3a7a1a)=>{const _0xc994ab=_0x137374;for(var _0x2c3fd9=_0x3a7a1a>0x1?void 0x0:_0x3a7a1a?sn(_0x30c2b9,_0x88e1d0):_0x30c2b9,_0x2ea332=_0x1020cf[_0xc994ab(0x327)]-0x1,_0x2e2903;_0x2ea332>=0x0;_0x2ea332--)(_0x2e2903=_0x1020cf[_0x2ea332])&&(_0x2c3fd9=_0x2e2903(_0x2c3fd9)||_0x2c3fd9);return _0x2c3fd9;},be=(_0xc4b9a3,_0x486778)=>(_0x3fde90,_0x1e5621)=>_0x486778(_0x3fde90,_0x1e5621,_0xc4b9a3);const rn=0x1389;let ke=class extends _0xa32225{constructor(_0x4c8415,_0x4db5b1,_0x39637d,_0x3c7383){const _0x56fcc1=_0x137374;super(),_(this,_0x56fcc1(0x3c1),new Set()),_(this,'_lastPointer',null),(this['_context']=_0x4c8415,this[_0x56fcc1(0x3e5)]=_0x4db5b1,this['_collabCursorController']=_0x39637d,this['_themeService']=_0x3c7383,this['_init']());}[_0x137374(0x1de)](){const _0x52bc66=_0x137374;this[_0x52bc66(0x3e5)][_0x52bc66(0x390)][_0x52bc66(0x25f)](_0x17f684(this['dispose$']),_0x44a498(_0xf146a4=>{const _0x38db39=_0x52bc66;if(_0xf146a4){const _0x111245=_0xf146a4[_0x38db39(0x258)];return _0x5129a0(this[_0x38db39(0x285)][_0x38db39(0x27a)](this['_context'][_0x38db39(0x207)]),this['_themeService'][_0x38db39(0x1ee)])[_0x38db39(0x25f)](_0x37ca5f(([_0x4b544c,_0x3c627d])=>{const _0x15d5fd=_0x38db39,_0x41f4c3=new Map();return _0x4b544c[_0x15d5fd(0x343)]((_0xfe3c4,_0x5efe39)=>{const _0x752d4=_0x15d5fd;if(_0xfe3c4[_0x752d4(0x331)]===_0x111245){const _0x204175={..._0xfe3c4};_0x204175[_0x752d4(0x26f)]=this['_themeService'][_0x752d4(0x20d)](_0xfe3c4[_0x752d4(0x26f)]),_0x41f4c3['set'](_0x5efe39,_0x204175);}}),{'skeleton':_0xf146a4,'cursors':_0x41f4c3};}));}return _0x3f9e73({'skeleton':null,'cursors':new Map()});}))[_0x52bc66(0x305)](({skeleton:_0xeef647,cursors:_0x9c539f})=>{const _0x51d3d9=_0x52bc66;this['_removeCollabCursors'](),_0xeef647&&this[_0x51d3d9(0x302)](_0xeef647,_0x9c539f);}),this[_0x52bc66(0x3e5)][_0x52bc66(0x390)][_0x52bc66(0x305)](_0x1ce73=>{const _0x53868f=_0x52bc66;if(_0x1ce73==null)return;const {skeleton:_0x5ad136}=_0x1ce73,{scene:_0xb6fb6c}=this[_0x53868f(0x229)];_0xb6fb6c[_0x53868f(0x3c9)]['subscribeEvent'](_0x5e38e7(_0x208b5a=>{const _0x229c05=_0x53868f;var _0x2049f8,_0x12e08b;const {offsetX:_0x5bb66b,offsetY:_0x3167d5}=_0x208b5a,{x:_0x4052fb,y:_0x1e13fd}=_0xb6fb6c[_0x229c05(0x2e8)](_0x81a68f['FromArray']([_0x5bb66b,_0x3167d5])),{scaleX:_0xd017f0,scaleY:_0x1e60db}=_0xb6fb6c[_0x229c05(0x3ce)](),_0x41e876=_0xb6fb6c[_0x229c05(0x26c)](_0x10210d[_0x229c05(0x22e)]),_0x4c9d7e=_0xb6fb6c[_0x229c05(0x291)](_0x81a68f['FromArray']([_0x4052fb,_0x1e13fd]),_0x41e876),_0x486de8=_0x5ad136['getCellPositionByOffset'](_0x5bb66b,_0x3167d5,_0xd017f0,_0x1e60db,_0x4c9d7e);((_0x2049f8=this['_lastPointer'])==null?void 0x0:_0x2049f8[_0x229c05(0x2d5)])===_0x486de8[_0x229c05(0x2d5)]&&((_0x12e08b=this[_0x229c05(0x297)])==null?void 0x0:_0x12e08b[_0x229c05(0x311)])===_0x486de8[_0x229c05(0x311)]||this['_cursors'][_0x229c05(0x343)](_0x205d96=>{const _0x3d3012=_0x229c05;_0x205d96[_0x3d3012(0x2f1)](_0x486de8);});},0x64));});}[_0x137374(0x302)](_0xa6eeb,_0x493463){const _0x350327=_0x137374;var _0x310c00;const _0x8e114c=(_0x310c00=this['_sheetSkeletonManagerService'][_0x350327(0x34e)]())==null?void 0x0:_0x310c00['skeleton'];if(!_0x8e114c)return;const _0x3ffd78=this['_getSheetObject']();if(!_0x3ffd78)return;this['_cursors']['forEach'](_0x514333=>{const _0x4ebeed=_0x350327;_0x514333[_0x4ebeed(0x2f9)]();});const {scene:_0x4e4d85}=_0x3ffd78,_0x5a25c2=on(Array[_0x350327(0x377)](_0x493463['values']()))[_0x350327(0x384)](_0x40deaf=>{const _0x1c1f08=_0x350327,{color:_0x214516,range:_0x19f611,name:_0x4bc644,selection:_0x2ef19e,sheetID:_0xad9d6c}=_0x40deaf,{startColumn:_0x2c8630,startRow:_0x2faf08,endColumn:_0x1b6533,endRow:_0xeec2db}=_0x19f611,_0x5c07dc=_0x4a882f(_0x2faf08,_0x2c8630,_0x4e4d85,_0x8e114c),_0xabd522=_0x4a882f(_0xeec2db,_0x1b6533,_0x4e4d85,_0x8e114c),{columnHeaderHeightAndMarginTop:_0x259f4e}=_0x8e114c,{startX:_0x54a279,startY:_0x55cf95}=_0x5c07dc,{endX:_0x1a2e3f,endY:_0x58d2e5}=_0xabd522,_0x5e6c84=_0x1a2e3f-_0x54a279,_0x295dc5=_0x58d2e5-_0x55cf95,_0x426ce5={'labelPosition':_0x55cf95-_0x259f4e>=Q?_0x1c1f08(0x3d5):'bottom','sheetID':_0xad9d6c,'range':_0x19f611,'color':_0x214516,'name':_0x4bc644,'selection':_0x2ef19e,'left':_0x54a279,'top':_0x55cf95,'width':_0x5e6c84,'height':_0x295dc5,'evented':!0x1,'zIndex':rn};return new tn(_0x4bc644,_0x426ce5);});_0x4e4d85[_0x350327(0x412)](_0x5a25c2,qi),this['_cursors']=new Set(_0x5a25c2);}[_0x137374(0x295)](){const _0x41db56=_0x137374;var _0x2379aa;(_0x2379aa=this[_0x41db56(0x3c1)])==null||_0x2379aa['forEach'](_0xedaec6=>_0xedaec6[_0x41db56(0x325)]());}[_0x137374(0x3e8)](){const _0x33530=_0x137374;return _0x4b881(this[_0x33530(0x229)][_0x33530(0x3b0)],this[_0x33530(0x229)]);}};ke=nn([be(0x1,_0x23f7c2(_0x16576d)),be(0x2,_0x23f7c2(H)),be(0x3,_0x23f7c2(_0x27efaf))],ke);function on(_0x1943cc){const _0x33a6b9=_0x137374,_0x4cadf0=new Map();return _0x1943cc[_0x33a6b9(0x343)](_0x3da916=>{const _0x452350=_0x33a6b9;if(_0x4cadf0[_0x452350(0x3ea)](_0x3da916[_0x452350(0x372)])){const _0x16496c=_0x4cadf0[_0x452350(0x34d)](_0x3da916[_0x452350(0x372)]);_0x16496c[_0x452350(0x1ff)]+=',\x20'+_0x3da916[_0x452350(0x1ff)];}else _0x4cadf0[_0x452350(0x308)](_0x3da916[_0x452350(0x372)],_0x3da916);}),Array[_0x33a6b9(0x377)](_0x4cadf0['values']());}var an=Object[_0x137374(0x2cb)],cn=(_0x1aab35,_0x533464,_0x35f6b3,_0x1eaaa1)=>{const _0x2e57e8=_0x137374;for(var _0x39c8b4=_0x1eaaa1>0x1?void 0x0:_0x1eaaa1?an(_0x533464,_0x35f6b3):_0x533464,_0x96013c=_0x1aab35[_0x2e57e8(0x327)]-0x1,_0x133e60;_0x96013c>=0x0;_0x96013c--)(_0x133e60=_0x1aab35[_0x96013c])&&(_0x39c8b4=_0x133e60(_0x39c8b4)||_0x39c8b4);return _0x39c8b4;},F=(_0xf5216b,_0x55d190)=>(_0x44372d,_0x2d297c)=>_0x55d190(_0x44372d,_0x2d297c,_0xf5216b);let _e=class extends _0x2dffbf{constructor(_0xc8ef21,_0x331bd4,_0x20853e,_0x334fb6,_0x37a21a,_0x23cb2a){const _0x2ea94c=_0x137374;super(),this[_0x2ea94c(0x32b)]=_0xc8ef21,this[_0x2ea94c(0x335)]=_0x331bd4,this[_0x2ea94c(0x3fe)]=_0x20853e,this[_0x2ea94c(0x294)]=_0x334fb6,this[_0x2ea94c(0x242)]=_0x37a21a,this[_0x2ea94c(0x403)]=_0x23cb2a,this[_0x2ea94c(0x22c)](),this[_0x2ea94c(0x32d)]();}['_setupBeforeClosingHandler'](){const _0x376389=_0x137374;this[_0x376389(0x32c)](this['_beforeCloseService'][_0x376389(0x38e)](()=>{const _0x42088c=_0x376389;if(this[_0x42088c(0x335)][_0x42088c(0x36c)][_0x42088c(0x2c7)])return this[_0x42088c(0x403)]['t']('collaboration.offline-data-not-saved');}));}[_0x137374(0x32d)](){const _0x222cb6=_0x137374;this[_0x222cb6(0x32c)](this['_collaborationUIEventService']['event$']['subscribe'](_0x55c3de=>{const _0x5568e8=_0x222cb6;_0x55c3de['id']===_0x3041bd['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x5568e8(0x342)]({'type':_0x17ce26[_0x5568e8(0x2eb)],'content':this['_localeService']['t'](_0x5568e8(0x1eb))}),_0x55c3de['id']===_0x3041bd[_0x5568e8(0x321)]&&this[_0x5568e8(0x294)][_0x5568e8(0x342)]({'type':_0x17ce26[_0x5568e8(0x2eb)],'content':this['_localeService']['t'](_0x5568e8(0x2b3))}),_0x55c3de['id']===_0x3041bd[_0x5568e8(0x2ef)]&&this['_notificationService'][_0x5568e8(0x342)]({'title':this[_0x5568e8(0x403)]['t'](_0x5568e8(0x3b1)),'content':this[_0x5568e8(0x403)]['t']('permission.content'),'type':'error','duration':0x0}),_0x55c3de['id']===_0x3041bd['CONFLICT']&&this[_0x5568e8(0x294)][_0x5568e8(0x342)]({'type':_0x17ce26[_0x5568e8(0x41b)],'content':this[_0x5568e8(0x403)]['t'](_0x5568e8(0x2b3))+'('+_0x55c3de[_0x5568e8(0x286)]+')'}),_0x55c3de['id']===_0x3041bd[_0x5568e8(0x336)]&&this['_messageService'][_0x5568e8(0x342)]({'type':_0x17ce26[_0x5568e8(0x2eb)],'content':this[_0x5568e8(0x403)]['t'](_0x55c3de[_0x5568e8(0x286)]||'')}),_0x55c3de['id']===_0x3041bd[_0x5568e8(0x225)]&&this[_0x5568e8(0x294)]['show']({'type':_0x17ce26[_0x5568e8(0x2eb)],'content':this[_0x5568e8(0x403)]['t']('session.will-retry')}),_0x55c3de['id']===_0x3041bd['SOCKET_FAILED']&&this['_messageService'][_0x5568e8(0x342)]({'type':_0x17ce26[_0x5568e8(0x41b)],'content':this['_localeService']['t'](_0x5568e8(0x2c6))}),_0x55c3de['id']===_0x3041bd['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x5568e8(0x294)][_0x5568e8(0x342)]({'type':_0x17ce26['Error'],'content':this[_0x5568e8(0x403)]['t'](_0x5568e8(0x309))});}));}};_e=cn([F(0x0,_0x3bf86c),F(0x1,_0x2b1e85),F(0x2,_0x23f7c2(_0x166f27)),F(0x3,_0x3d39b5),F(0x4,_0x5cea2e),F(0x5,_0x23f7c2(_0x55a4a7))],_e);var _n=Object[_0x137374(0x2cb)],ln=(_0x4df74d,_0x10437c,_0xd4816f,_0x1d79cb)=>{for(var _0x159251=_0x1d79cb>0x1?void 0x0:_0x1d79cb?_n(_0x10437c,_0xd4816f):_0x10437c,_0x1a46cb=_0x4df74d['length']-0x1,_0x158f8e;_0x1a46cb>=0x0;_0x1a46cb--)(_0x158f8e=_0x4df74d[_0x1a46cb])&&(_0x159251=_0x158f8e(_0x159251)||_0x159251);return _0x159251;},ne=(_0x1bb144,_0x4e766a)=>(_0x4863cd,_0x5423d1)=>_0x4e766a(_0x4863cd,_0x5423d1,_0x1bb144);let le=class extends _0x2dffbf{constructor(_0x584200,_0x27e3f1,_0x594a4b,_0x32976a){const _0x2acc19=_0x137374;super(),_(this,_0x2acc19(0x2df)),(this['_injector']=_0x584200,this['_httpService']=_0x27e3f1,this[_0x2acc19(0x2ff)]=_0x594a4b,this[_0x2acc19(0x394)]=_0x32976a,this[_0x2acc19(0x1de)]());}[_0x137374(0x1de)](){const _0x2fdcfa=_0x137374;this[_0x2fdcfa(0x39e)](),this[_0x2fdcfa(0x2a6)](),this['_monkeyPatchLogService'](),this[_0x2fdcfa(0x2f0)]();}['_initUserListener'](){const _0x29e256=_0x137374;this[_0x29e256(0x32c)](this[_0x29e256(0x394)][_0x29e256(0x2fb)][_0x29e256(0x305)](_0xda40d2=>{const _0x211245=_0x29e256;this[_0x211245(0x2df)]=_0xda40d2==null?void 0x0:_0xda40d2['memberID'];}));}[_0x137374(0x39e)](){const _0x8fbf8e=_0x137374,_0x32f8d2=_0x322dbe=>{const _0x4b33ac=_0x3d3a;var _0x299945;this[_0x4b33ac(0x30b)](_0x4b33ac(0x349),_0x4b33ac(0x368)+_0x322dbe[_0x4b33ac(0x3a1)]+_0x4b33ac(0x401)+_0x322dbe[_0x4b33ac(0x1e8)]+':'+_0x322dbe[_0x4b33ac(0x2bd)]+':'+_0x322dbe[_0x4b33ac(0x240)]+'\x0a'+(((_0x299945=_0x322dbe[_0x4b33ac(0x349)])==null?void 0x0:_0x299945['stack'])||''));};window['addEventListener']('error',_0x32f8d2),this[_0x8fbf8e(0x32c)](()=>{const _0x4236ea=_0x8fbf8e;window[_0x4236ea(0x31f)]('error',_0x32f8d2);});}[_0x137374(0x2a6)](){const _0x16ffad=_0x137374,_0x34f848=_0x5eb65d=>{const _0x15a349=_0x3d3a;this[_0x15a349(0x30b)]('error',_0x15a349(0x2b8)+_0x5eb65d[_0x15a349(0x30f)]);};window[_0x16ffad(0x417)](_0x16ffad(0x3c2),_0x34f848),this[_0x16ffad(0x32c)](()=>{const _0x3fc613=_0x16ffad;window[_0x3fc613(0x31f)](_0x3fc613(0x3c2),_0x34f848);});}[_0x137374(0x250)](){const _0x4187f9=_0x137374,_0x159208=this[_0x4187f9(0x2ff)][_0x4187f9(0x349)]['bind'](this[_0x4187f9(0x2ff)]);this['_logService']['error']=(..._0x508d2d)=>{const _0x71b0ba=_0x4187f9,_0xfda123=_0x508d2d[_0x71b0ba(0x384)](_0x1d7933=>_0x1d7933 instanceof Error?_0x1d7933[_0x71b0ba(0x3a1)]+'\x0a'+_0x1d7933[_0x71b0ba(0x2a9)]:String(_0x1d7933))['join']('\x20');this[_0x71b0ba(0x30b)](_0x71b0ba(0x349),_0x71b0ba(0x3bb)+_0xfda123),_0x159208(..._0x508d2d);},this[_0x4187f9(0x32c)](()=>{const _0x48b1a6=_0x4187f9;this[_0x48b1a6(0x2ff)][_0x48b1a6(0x349)]=_0x159208;});}[_0x137374(0x30b)](_0x561093,_0xcbdf27){const _0x14569b=_0x137374;try{const _0x228777={'userId':this[_0x14569b(0x2df)],'logLabel':_0x561093,'content':_0xcbdf27};this[_0x14569b(0x31d)][_0x14569b(0x2b6)](_0x14569b(0x298),{'body':_0x228777})[_0x14569b(0x289)](()=>{});}catch{}}};le=ln([ne(0x0,_0x23f7c2(_0x1173e2)),ne(0x1,_0x23f7c2(_0x2410da)),ne(0x2,_0x4cfb97),ne(0x3,_0x23f7c2(_0x66bad9))],le);const hn='collaboration-client-ui.config',_t={};var un=Object[_0x137374(0x2cb)],dn=(_0x109cc6,_0x2410af,_0x3b6b0e,_0x21cfea)=>{const _0x3d7727=_0x137374;for(var _0x52cda6=_0x21cfea>0x1?void 0x0:_0x21cfea?un(_0x2410af,_0x3b6b0e):_0x2410af,_0x43883a=_0x109cc6[_0x3d7727(0x327)]-0x1,_0x2d0a41;_0x43883a>=0x0;_0x43883a--)(_0x2d0a41=_0x109cc6[_0x43883a])&&(_0x52cda6=_0x2d0a41(_0x52cda6)||_0x52cda6);return _0x52cda6;},lt=(_0x5d97ef,_0x55f5e8)=>(_0x462e5e,_0x4670b2)=>_0x55f5e8(_0x462e5e,_0x4670b2,_0x5d97ef);let he=class{constructor(_0x1deea7,_0x2bc49b){const _0x45e1a7=_0x137374;this['_transformService']=_0x1deea7,this[_0x45e1a7(0x2d9)]=_0x2bc49b;}[_0x137374(0x25d)](_0x35c1ff){const _0x19258a=_0x137374;this[_0x19258a(0x323)](_0x35c1ff),this['_transformPreviousActiveRange'](_0x35c1ff);}[_0x137374(0x347)](_0x3de299){const _0x33b2a5=_0x137374,{unitID:_0x23fec5}=_0x3de299,_0x7a951=this[_0x33b2a5(0x2d9)][_0x33b2a5(0x3a0)](_0x23fec5)[_0x33b2a5(0x296)](_0x14ec08),{redoCache:_0x3929ea}=_0x7a951[_0x33b2a5(0x398)]();if(_0x3929ea[_0x33b2a5(0x327)]===0x0)return _0x3de299;let _0x3de4e1=_0x43e3cb['deepClone'](_0x3de299[_0x33b2a5(0x3cf)][0x0]);for(let _0x13dcf3=0x0;_0x13dcf3<_0x3929ea[_0x33b2a5(0x327)];_0x13dcf3++){const _0x32626f={'id':_0x33b2a5(0x338),'params':{..._0x3929ea[_0x13dcf3]}},_0x1061a6=this[_0x33b2a5(0x304)]['transformMutation'](_0x3de4e1,_0x32626f,!0x1);if(_0x5c3d1d(_0x1061a6))throw _0x1061a6[_0x33b2a5(0x349)];_0x3de4e1=_0x1061a6[_0x33b2a5(0x1e2)];}return{..._0x43e3cb[_0x33b2a5(0x28a)](_0x3de299),'mutations':[_0x3de4e1]};}[_0x137374(0x323)](_0x3356cd){const _0x3de53a=_0x137374,{unitID:_0x12394a}=_0x3356cd,_0x4c76dd=this['_renderManagerService'][_0x3de53a(0x3a0)](_0x12394a)[_0x3de53a(0x296)](_0x14ec08),{undoCache:_0x2317bc,redoCache:_0x3ec85f}=_0x4c76dd[_0x3de53a(0x398)]();if(_0x2317bc[_0x3de53a(0x327)]===0x0||_0x3ec85f[_0x3de53a(0x327)]===0x0)return;const _0x22368e=[],_0x47f016=[];let _0xbcd786=_0x43e3cb[_0x3de53a(0x28a)](_0x3356cd['mutations'][0x0]),_0x2409e0=_0x43e3cb[_0x3de53a(0x28a)](_0x3356cd['mutations'][0x0]);for(let _0x3171ba=_0x2317bc[_0x3de53a(0x327)]-0x1;_0x3171ba>=0x0;_0x3171ba--){const _0x9b6c5c={'id':_0x3de53a(0x338),'params':{..._0x2317bc[_0x3171ba]}},_0x2e0224={'id':_0x3de53a(0x338),'params':{..._0x3ec85f[_0x3171ba]}},_0x466d89=this[_0x3de53a(0x304)][_0x3de53a(0x339)](_0xbcd786,_0x9b6c5c,!0x1),_0x543fec=this[_0x3de53a(0x304)][_0x3de53a(0x339)](_0x2409e0,_0x2e0224,!0x1);if(_0x5c3d1d(_0x466d89))throw _0x466d89[_0x3de53a(0x349)];if(_0x5c3d1d(_0x543fec))throw _0x543fec[_0x3de53a(0x349)];_0x22368e['unshift'](_0x466d89[_0x3de53a(0x20c)][_0x3de53a(0x2c3)]),_0x47f016[_0x3de53a(0x3a5)](_0x543fec[_0x3de53a(0x20c)][_0x3de53a(0x2c3)]),_0xbcd786=_0x466d89[_0x3de53a(0x1e2)],_0x2409e0=_0x543fec[_0x3de53a(0x1e2)];}_0x4c76dd[_0x3de53a(0x36b)]({'undoCache':_0x22368e,'redoCache':_0x47f016});}[_0x137374(0x276)](_0x478340){const _0xf21c2=_0x137374,{unitID:_0x3277d6}=_0x478340,_0x2f8393=this[_0xf21c2(0x2d9)]['getRenderById'](_0x3277d6)['with'](_0x14ec08),_0x27f08e=_0x2f8393[_0xf21c2(0x3f7)]();if(_0x27f08e==null)return;const _0x248436=[{'id':_0xf21c2(0x338),'params':{'unitId':_0x478340[_0xf21c2(0x1f4)],'actions':null,'textRanges':[_0x27f08e]}}],_0x3d0244=this[_0xf21c2(0x304)]['transformMutationsWithChangeset'](_0x478340,_0x248436);if(!_0x53d5b6(_0x3d0244))throw _0x3d0244['error'];const _0x17cdd0=_0x3d0244[_0xf21c2(0x20c)][0x0][_0xf21c2(0x2c3)][_0xf21c2(0x3bf)];Array['isArray'](_0x17cdd0)&&_0x17cdd0[_0xf21c2(0x327)]&&_0x2f8393[_0xf21c2(0x2a1)](_0x17cdd0[0x0]);}};he=dn([lt(0x0,_0x44abdb),lt(0x1,_0x46c3d4)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x267ae8,_0x1715a7,_0x2f18ad,_0x30fe54)=>{const _0x93b486=_0x137374;for(var _0x182422=_0x30fe54>0x1?void 0x0:_0x30fe54?Sn(_0x1715a7,_0x2f18ad):_0x1715a7,_0x4c41c6=_0x267ae8[_0x93b486(0x327)]-0x1,_0x15bd9f;_0x4c41c6>=0x0;_0x4c41c6--)(_0x15bd9f=_0x267ae8[_0x4c41c6])&&(_0x182422=_0x15bd9f(_0x182422)||_0x182422);return _0x182422;},Le=(_0x101fdc,_0x23f7bf)=>(_0x13ebab,_0x521ce9)=>_0x23f7bf(_0x13ebab,_0x521ce9,_0x101fdc);let ue=class{constructor(_0x512e61,_0x20c22a,_0x1f82f2){const _0x115072=_0x137374;this[_0x115072(0x265)]=_0x512e61,this['_transformService']=_0x20c22a,this[_0x115072(0x351)]=_0x1f82f2;}[_0x137374(0x251)](_0x518794){const _0x49be7c=_0x137374;this[_0x49be7c(0x3cc)](_0x518794);}[_0x137374(0x347)](_0x130c8b){const _0x41ffe7=_0x137374,{unitID:_0x264341}=_0x130c8b,{collaboration:_0x575afb}=this['_docStateChangeManagerService'][_0x41ffe7(0x219)](_0x264341);if(_0x575afb['length']===0x0)return _0x130c8b;let _0x1176bc=_0x43e3cb['deepClone'](_0x130c8b[_0x41ffe7(0x3cf)][0x0]);for(let _0x3320cf=0x0;_0x3320cf<_0x575afb[_0x41ffe7(0x327)];_0x3320cf++){const _0x356012={'id':_0x41ffe7(0x338),'params':{'unitId':_0x575afb[_0x3320cf][_0x41ffe7(0x207)],..._0x575afb[_0x3320cf]['redoState']}},_0x11b00b=this[_0x41ffe7(0x304)][_0x41ffe7(0x339)](_0x1176bc,_0x356012,!0x1);if(_0x5c3d1d(_0x11b00b))throw _0x11b00b[_0x41ffe7(0x349)];_0x1176bc=_0x11b00b[_0x41ffe7(0x1e2)];}return{..._0x43e3cb[_0x41ffe7(0x28a)](_0x130c8b),'mutations':[_0x1176bc]};}[_0x137374(0x3cc)](_0x303460){const _0x3c16ce=_0x137374,{unitID:_0x3e0053}=_0x303460,{history:_0x5993ab,collaboration:_0x5f5a36}=this[_0x3c16ce(0x351)][_0x3c16ce(0x219)](_0x3e0053);if(_0x5993ab[_0x3c16ce(0x327)]===0x0&&_0x5f5a36['length']===0x0)return;const _0x1ff474=[],_0xe1d792=[];let _0x3dd5fd=_0x43e3cb['deepClone'](_0x303460[_0x3c16ce(0x3cf)][0x0]),_0x36f9f4=_0x43e3cb[_0x3c16ce(0x28a)](_0x303460['mutations'][0x0]);for(let _0xc7a2c9=_0x5993ab['length']-0x1;_0xc7a2c9>=0x0;_0xc7a2c9--){const _0x1935f0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5993ab[_0xc7a2c9][_0x3c16ce(0x207)],..._0x5993ab[_0xc7a2c9]['undoState']}},_0x4a0476={'id':_0x3c16ce(0x338),'params':{'unitId':_0x5993ab[_0xc7a2c9][_0x3c16ce(0x207)],..._0x5993ab[_0xc7a2c9][_0x3c16ce(0x3e9)]}},_0x3e5bc1=this['_transformService'][_0x3c16ce(0x339)](_0x3dd5fd,_0x1935f0,!0x1),_0x5d32cb=this[_0x3c16ce(0x304)]['transformMutation'](_0x36f9f4,_0x4a0476,!0x1);if(_0x5c3d1d(_0x3e5bc1))throw _0x3e5bc1[_0x3c16ce(0x349)];if(_0x5c3d1d(_0x5d32cb))throw _0x5d32cb[_0x3c16ce(0x349)];_0x1ff474[_0x3c16ce(0x3a5)]({..._0x5993ab[_0xc7a2c9],'undoState':_0x3e5bc1[_0x3c16ce(0x20c)]['params'],'redoState':_0x5d32cb[_0x3c16ce(0x20c)][_0x3c16ce(0x2c3)]}),_0x3dd5fd=_0x3e5bc1[_0x3c16ce(0x1e2)],_0x36f9f4=_0x5d32cb[_0x3c16ce(0x1e2)];}_0x3dd5fd=_0x43e3cb[_0x3c16ce(0x28a)](_0x303460['mutations'][0x0]),_0x36f9f4=_0x43e3cb['deepClone'](_0x303460[_0x3c16ce(0x3cf)][0x0]);for(let _0x88493=_0x5f5a36[_0x3c16ce(0x327)]-0x1;_0x88493>=0x0;_0x88493--){const _0x48327c={'id':_0x3c16ce(0x338),'params':{'unitId':_0x5f5a36[_0x88493][_0x3c16ce(0x207)],..._0x5f5a36[_0x88493]['undoState']}},_0x35de44={'id':_0x3c16ce(0x338),'params':{'unitId':_0x5f5a36[_0x88493]['unitId'],..._0x5f5a36[_0x88493][_0x3c16ce(0x3e9)]}},_0xbe5a72=this[_0x3c16ce(0x304)][_0x3c16ce(0x339)](_0x3dd5fd,_0x48327c,!0x1),_0x2c1ee8=this[_0x3c16ce(0x304)][_0x3c16ce(0x339)](_0x36f9f4,_0x35de44,!0x1);if(_0x5c3d1d(_0xbe5a72))throw _0xbe5a72['error'];if(_0x5c3d1d(_0x2c1ee8))throw _0x2c1ee8['error'];_0xe1d792[_0x3c16ce(0x3a5)]({..._0x5f5a36[_0x88493],'undoState':_0xbe5a72[_0x3c16ce(0x20c)][_0x3c16ce(0x2c3)],'redoState':_0x2c1ee8[_0x3c16ce(0x20c)]['params']}),_0x3dd5fd=_0xbe5a72[_0x3c16ce(0x1e2)],_0x36f9f4=_0x2c1ee8[_0x3c16ce(0x1e2)];}this[_0x3c16ce(0x351)][_0x3c16ce(0x36d)](_0x3e0053,{'history':_0x1ff474,'collaboration':_0xe1d792});}};ue=In([Le(0x0,_0x23f7c2(_0x1173e2)),Le(0x1,_0x44abdb),Le(0x2,_0x23f7c2(_0x11105a))],ue);var mn=Object[_0x137374(0x2cb)],fn=(_0x4eef2a,_0xcc704a,_0x3f68ae,_0x224ae9)=>{for(var _0x5c8327=_0x224ae9>0x1?void 0x0:_0x224ae9?mn(_0xcc704a,_0x3f68ae):_0xcc704a,_0x2b7856=_0x4eef2a['length']-0x1,_0x59cbbc;_0x2b7856>=0x0;_0x2b7856--)(_0x59cbbc=_0x4eef2a[_0x2b7856])&&(_0x5c8327=_0x59cbbc(_0x5c8327)||_0x5c8327);return _0x5c8327;},ht=(_0x180180,_0x598b58)=>(_0x592009,_0x47f489)=>_0x598b58(_0x592009,_0x47f489,_0x180180);let de=class{constructor(_0x3ee5a4,_0x3cd7f5){const _0x392e62=_0x137374;this[_0x392e62(0x265)]=_0x3ee5a4,this[_0x392e62(0x304)]=_0x3cd7f5;}[_0x137374(0x259)](_0xd05e21){const _0x4a13f8=_0x137374;var _0x452988;const _0x565926=this[_0x4a13f8(0x265)][_0x4a13f8(0x34d)](_0x46950a),_0x48e226=(_0x452988=_0x565926[_0x4a13f8(0x369)]())!=null?_0x452988:[];if(_0x48e226[_0x4a13f8(0x327)]===0x0)return;const _0x3f2364=_0xd05e21[_0x4a13f8(0x1f4)],_0xf7ba5d=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3f2364,'actions':null,'textRanges':_0x48e226}}],_0x5f42a5=this[_0x4a13f8(0x304)][_0x4a13f8(0x392)](_0xd05e21,_0xf7ba5d);if(!_0x53d5b6(_0x5f42a5))throw _0x5f42a5[_0x4a13f8(0x349)];const _0x4b2f0e=_0x5f42a5[_0x4a13f8(0x20c)][0x0][_0x4a13f8(0x2c3)][_0x4a13f8(0x3bf)];Array[_0x4a13f8(0x3a7)](_0x4b2f0e)&&_0x4b2f0e[_0x4a13f8(0x327)]&&_0x565926[_0x4a13f8(0x2b5)](_0x4b2f0e,{'unitId':_0x3f2364,'subUnitId':_0x3f2364},!0x1);}};de=fn([ht(0x0,_0x23f7c2(_0x1173e2)),ht(0x1,_0x44abdb)],de);var gn=Object[_0x137374(0x2cb)],En=(_0xfb0a07,_0x5d6747,_0x3d518d,_0xd86848)=>{const _0x442202=_0x137374;for(var _0x1f72ef=_0xd86848>0x1?void 0x0:_0xd86848?gn(_0x5d6747,_0x3d518d):_0x5d6747,_0x1a17c8=_0xfb0a07[_0x442202(0x327)]-0x1,_0x466425;_0x1a17c8>=0x0;_0x1a17c8--)(_0x466425=_0xfb0a07[_0x1a17c8])&&(_0x1f72ef=_0x466425(_0x1f72ef)||_0x1f72ef);return _0x1f72ef;},U=(_0x848f91,_0x32b4ec)=>(_0x353a25,_0xc4678f)=>_0x32b4ec(_0x353a25,_0xc4678f,_0x848f91);let Se=class extends _0x2dffbf{constructor(_0x5ced7d,_0x302e30,_0x3437af,_0xc8e864,_0x36d0e8,_0x21b013,_0x2eef8a,_0x1e1c06){const _0x1d0123=_0x137374;super(),_(this,'_status$',new _0x5b93d9(_0x2e02de[_0x1d0123(0x2af)])),(this[_0x1d0123(0x351)]=_0x5ced7d,this['_collaborationController']=_0x302e30,this[_0x1d0123(0x3f2)]=_0x3437af,this['_docTransformStateCacheService']=_0xc8e864,this[_0x1d0123(0x383)]=_0x36d0e8,this[_0x1d0123(0x3a8)]=_0x21b013,this['_messageService']=_0x2eef8a,this['_localeService']=_0x1e1c06,this[_0x1d0123(0x1ed)]());}[_0x137374(0x1ed)](){const _0x3c2d0a=_0x137374;this['disposeWithMe'](this[_0x3c2d0a(0x32f)]['entityInit$'][_0x3c2d0a(0x305)](_0x21619c=>{const _0x201727=_0x3c2d0a,_0x3c0300=this[_0x201727(0x351)][_0x201727(0x328)]['subscribe'](_0x35675d=>{const _0x1071ae=_0x201727;if(_0x35675d==null)return;const {unitId:_0x1451a5,redoState:_0x3f93a7,commandId:_0x51f419}=_0x35675d;if(_0x1451a5!==_0x21619c[_0x1071ae(0x1f4)])return;const _0x211350={'id':_0x51f419,'type':_0x5f58f3['MUTATION'],'params':{'unitId':_0x1451a5,'actions':_0x3f93a7['actions'],'textRanges':null}};_0x21619c['onLocalMutation'](_0x211350);});if(_0x21619c[_0x201727(0x32c)](_0x3c0300),_0x21619c instanceof _0x1d259e){const _0x4f7390={'onTransformIME':_0x229938=>this['_docTransformIMECacheService'][_0x201727(0x25d)](_0x229938),'onTransformState':_0x1b5f48=>this[_0x201727(0x2bf)][_0x201727(0x251)](_0x1b5f48),'onTransformSelections':_0x30b6ec=>this[_0x201727(0x383)][_0x201727(0x259)](_0x30b6ec),'onSyncEditingCollabCursor':_0x20e17e=>this[_0x201727(0x3a8)][_0x201727(0x354)](_0x20e17e),'onTransformRemoteChangesetByIMECache':_0x53e206=>this[_0x201727(0x3f2)][_0x201727(0x347)](_0x53e206),'onTransformRemoteChangesetByStateCache':_0x3d8ec=>this[_0x201727(0x2bf)][_0x201727(0x347)](_0x3d8ec)};_0x21619c['addHandlerCallback'](_0x4f7390);}}));}};function _0x1d03(){const _0x4e2396=['currentColor','_handleEvent','none','_cursor','registerBeforeClose','getOffsetConfig','currentSkeleton$','/universer-api/license/formula/limit/done','transformMutationsWithChangeset','OffLineIcon','_collaborationSessionService','disableLocalCache','_doCreateSocket','current','getUndoRedoMutationParamsCache','_hovered','restore','clearInterval','getConfig','purple.300','_initWindowErrorListener','arc','getRenderById','message','ENTITLE_INSUFFICIENT_QUOTA','createInstance','CONFLICT','unshift','_scheduleClearOtherTimer','isArray','_docSyncEditingCollabCursorService','text','pushState','_entityInit$','hovered','YUUMI_ALL_TABLES_IS_INVALID','_color','tag','unit','permission.title','onRendered','updateOfflineData','CURRENT_STATUS_CANNOT_OPERATE','invokeId','children','APPLY_NON_SEQUENTIAL_REVISION','TEXT','ENTITLE_USE_COUPON_NOT_1ST_TRADE','parseInt','[LogService\x20Error]:\x20','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_range','toString','textRanges','510245DMFHfF','_cursors','unhandledrejection','moveTo','beforeCommandExecuted','yellow.400','white','dispose$','UNAUTHENTICATED','onPointerMove$','APPLY_REVISION_CONFILICT','removeParam','_transformHistoryAndStateStack','ENTITLE_CHAT_LIMIT_EXCEED','getAncestorScale','mutations','_showGuardMessage','_toggleOnline','_drawRectRange','ENSURE_SNAPSHOT_EXECUTION','LOGIN_TOKEN_PROCESSING_FAILED','top','collabStatus.offline','Failed','getActiveSheet','memberID','url(#$1','LICENSE_IMPORT_SIZE_EXCEEDED','univerjs-icon\x20univerjs-icon-','on-line-icon','sessionStatus$','_currentUsage','_roomMembers$','uni.network.url-service','send','_anchorDot','_getSessionTicket','_sheetSkeletonManagerService','_clearPolling','mask','_getSheetObject','redoState','has','functionsExecutedState','hide','INVITE_CODE_ALREADY_BOUND','registerRefRange','startsWith','_getMergeRange','OnLineIcon','_docTransformIMECacheService','MoveRangeCommandId','_handleJoinEvent','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','OFFLINE','getActiveRange','getFocusedUnit','body','_setFormulaLimitStatus','USERS_LEAVE','_handleLeaveEvent','_pollingInterval','_collaborationUIEventService','univer-flex\x20univer-items-center','replaceState','\x20at\x20','_localStorageService','_localeService','type','popstate','setShapeProps','min','_drawAnchor','_applyCommand','0\x200\x2017\x2016','_releaseCalculationLimit','_initStatusComponent','closePath','red.300','MOBILE_VERIFY_CODE_MISMATCH','_themeService','application/json','addObjects','_refRangeService','setInterval','registerComponent','START_CALCULATION','addEventListener','InsertRowCommandId','_memberService','getCurrentUnitForType','Error','_id','_initCommandInterceptor','_hasFormulaInDirtyRanges','DeleteRangeMoveLeftCommandId','attrs','10703sNXNID','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','YUUMI_RATE_OVER_LIMIT','LICENSE_EXPORT_SIZE_EXCEEDED','formula.calculation.waiting','_init','exhaustSavingTask','getParam','_refreshCollabCursors','m1Prime','_collabCursorState$','_scheduleSaving','findNodePositionByCharIndex','ENTITLE_REPORT_LIMIT_EXCEED','labelPosition','filename','event$','drawWith','collaboration.single-unit.warning','getRangePointData','_initEntityListener','currentTheme$','collab-client.tooltip.reconnect','clipPath','_draw','ERROR_AGAIN','dirtyRanges','unitID','reconnect','_saveTaskMap','_updateLocalCursor','RemoveRowCommandId','_scheduleHeartbeat','1046745KVtfWz','SNAPSHOT_INVALID_SNAPSHOT','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_initDependencies','_handleHeartbeatEvent','name','258pWaBSu','_drawTextRange','defs','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','YUUMI_URL_COL_OUT_OF_RANGE','roomMembers$','YUUMI_TABLE_NOT_FOUND_IN_UNIT','unitId','REDEMPTION_CODE_INACTIVE','AUTHORIZE_CODE_ILLEGAL','lineTo','_entities','m2Prime','getColorFromTheme','M0\x200H16V16H0z','height','stageInfo','_syncEditingCollabCursorService','enableFrontendLog','YUUMI_CONNECTOR_URL_NOT_FOUND','Success','find','clearTimeout','_docSkeletonManagerService','_clearOtherTimers','getStateCache','replace','endColumn','REDEMPTION_CODE_FULLY_REDEEMED','getMember','6hSDqfy','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','loadUnit','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','collabStatus.conflict','path','source','SOCKET_FAILED_RETRY','getUnit','ranges','1em','_context','whenReady','setTimeout','_setupBeforeClosingHandler','getMemberID','VIEW_MAIN','fillStyle','onPointerLeave$','bottom','WECHAT_HAS_BEEN_BOUND','_commandService','startColumn','_urlService','REDEMPTION_INVALID_CODE','_labelPosition','_registerRenderDependencies','eventID','onCommandExecuted','_setupSubUnitSync','fillText','_backgroundColor','_textBubble','onStarting','colno','_onCursorDelete','_notificationService','loadOfflineData','INVITE_CODE_REQUIRED','entries','DATA_SOURCE_TOO_LARGE','20LrqYfV','MOBILE_HAS_BEEN_BOUND','toRgbString','saveOfflineData','unload','REDEMPTION_CODE_NOT_STARTED','_ensureSubject','addObject','PY_RUNTIME_SCRIPT_ERROR','_monkeyPatchLogService','transformStateCache','result','round','getUnitId','_unitOnClients','RECT','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','sheetId','transformSelections','getCurrentSelections','ENTITLE_COUPON_USED_UP','_config','transformIMECache','APPLY_REJECT','pipe','onPointerEnter$','_saveCache','_cachedData','_session','save','_injector','CONNECTOR_DATA_TOO_LARGE','_docClipboardService','executionId','PAYMENT_CHANNEL_NOT_SUPPORT','USER_IS_ANONYMOUS','getUnitStatus$','getViewport','PENDING','_configService','color','_shapes','96Cgzlet','maxFormulaLimit','COMPLETION_FINISHED','Unknown\x20user','getCollabEntity$','_transformPreviousActiveRange','requireSession','_unitStatus','enableLocalCache','getCollabCursors$','INVITE_CODE_HAS_BEEN_UES','YUUMI_UNABLE_LOAD_URL','_cursorShapes','string','wsSessionTicketUrl','_assignedColors','_anchor','_startSheetCollabCursor','pluginName','[CollaborationDataLoaderController]','_collabCursorController','data','ENTITLE_NEED_BILLING_ADDRESS','blue.400','catch','deepClone','black','ALREADY_EXISTS','next','_name','div','ENTITLE_DUP_SUBSCRIPTION','getVpScrollXYInfoByPosToVp','history','_status$','_messageService','_removeCollabCursors','with','_lastPointer','/universer-api/frontend/logs','isActive','colorChannel1','YUUMI_SUBSCRIPTION_NOT_FOUND','SNAPSHOT_HAS_BEEN_REMOVED','_imageIoService','_registerDependencies','_maxFormulaLimit','_heartbeatTimer','setActiveRange','assign','subunit','random','searchParams','_initUnhandledRejectionListener','_send','some','stack','getTypeOfUnitDisposed$','includes','_disabled','http://www.w3.org/2000/svg','setItem','NOT_COLLAB','_eventUnsubscribe','ACTIVE_UNIT_EVENT_CHANNEL','APPLY_DUPLICATED','collaboration.closeRoom','YUUMI_NO_CUBOID_FOR_QUESTION','replaceDocRanges','post','_taskIds','[Unhandled\x20Rejection]:\x20','_instanceService','InsertRangeMoveRightCommandId','_hideTimer','_selfUnitIDs','lineno','NOT_FOUND','_docTransformStateCacheService','_online','fill','delete','params','1668RFciyf','editingUnit','session.connection-failed','size','key','registerRenderModule','DeleteRangeMoveUpCommandId','getOwnPropertyDescriptor','UPDATE_CURSOR','flatMap','getMergeData','_onCursorUpdate','UNRECOGNIZED','_initResize','getCurrentRevOfUnit','REDEMPTION_CODE_HAS_BEEN_CREATED','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','column','executeCommand','EMAIL_VERIFY_CODE_MISMATCH','transform','_renderManagerService','displayName','use','INTERNAL_ERROR','EMAIL_HAS_BEEN_BOUND','measureText','_memberID','cursorInfo$','InsertRangeMoveDownCommandId','selections','getUnhiddenWorksheets','href','968vZAZRZ','LICENSE_MAX_UNITS_EXCEEDED','_getAnchorBounding','getRelativeToViewportCoord','_getScale','releaseFormulaLimitUrl','Warning','_removeClearOtherTimer','unsubscribe','YUUMI_ASYNCIO_CANCELLED','PERMISSION_DENIED','_initUserListener','onMouseMove','UNIVER_DOC','getSheetId','getSheetBySheetId','addClipboardHook','_hover','runId','roomMembers','makeDirty','_dataLoaderService','socket$','_getFormulaLimitStatus','cursorInfo','on-line-icon_clip0_910_349','_logService','transformByState','complete','_updateCollabCursors','storage','_transformService','subscribe','REDEMPTION_USER_NOT_ELIGIBLE','SYNCED','set','session.collaboration-timeout','_uiPartsService','_uploadLog','0\x200\x2016\x2016','stringify','backgroundColor','reason','limitInfo','row','then','_colorIndex','_initCommandExecutedListener','asObservable','location','urlChange$','/universer-api/license/formula/limit/status','UNDEFINED','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','getUniverSheetInstance','collab-text-anchor-','_httpService','_checkCalculationAvailable','removeEventListener','USER_NOT_INVITED_CODE','CLOSE_ROOM','defIds','_transformUndoRedoStack','setParam','dispose','startRow','length','docStateChange$','/universer-api/license/formula/limit/start','subUnitId','_beforeCloseService','disposeWithMe','_initEvent','off-line-icon_clip0_910_343','_collaborationController','_render','sheetID','resize','formula.calculation.unable','status$','_localCacheService','JOIN_ROOM_FAILED','_cursorInfo$','doc.mutation.rich-text-editing','transformMutation','green.600','ticket','code','USER_NOT_FOUND','collabStatus.fetchMiss','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','now','stage','show','forEach','setAlpha','_document','_startDocCollabCursor','transformRemoteChangeset','LICENSE_DISTRO_REJECTED','error','_revisionService','CHANGESET_REVISION_CONFILICT','TOO_MANY_REQUESTS','get','getCurrent','split','assignAColorForMemberID','_docStateChangeManagerService','getValue','5467NTjagK','syncEditingCollabCursor','1505120VZUoOw','all','_colorAssignService','_collabSessionService','onTransformChange$','/run/','defineProperty','UNIVER_SHEET','disposeUnit','_initStatusListener','_updateSubUnitFromURLParams','LOGIN_FAILED','evenodd','isEditing','_lastResponseTimestamp','values','INVALID_INVITE_CODE','_univerInstanceService','idSuffix','[Window\x20Error]:\x20','getDocRanges','univer-mr-2\x20univer-flex\x20univer-text-xl','setUndoRedoMutationParamsCache','saveTaskMap','setStateCache','xlink:href','...','AWAITING_WITH_PENDING','svg','selection','1448pkOXJe','subscribeEvent','endRow','symbol','from','push','getTypeOfUnitAdded$','collab-rect-range-','getformulaLimitStatusUrl','_updateURLWithCurrentState','add','getSkeleton','_scene','_toggleOffline','search','createSocket','_docTransformSelectionsService','map','width','ONLINE','_createSocketURL','_startCalculationLimit','YUUMI_AI_RUN_FAILED'];_0x1d03=function(){return _0x4e2396;};return _0x1d03();}Se=En([U(0x0,_0x23f7c2(_0x11105a)),U(0x1,_0x23f7c2(_0x573dad)),U(0x2,_0x23f7c2(he)),U(0x3,_0x23f7c2(ue)),U(0x4,_0x23f7c2(de)),U(0x5,_0x23f7c2(ze)),U(0x6,_0x3d39b5),U(0x7,_0x23f7c2(_0x55a4a7))],Se);var Z=(_0x284a62=>(_0x284a62[_0x284a62['UNDEFINED']=0x0]=_0x137374(0x319),_0x284a62[_0x284a62['OK']=0x1]='OK',_0x284a62[_0x284a62['INTERNAL_ERROR']=0x2]=_0x137374(0x2dc),_0x284a62[_0x284a62['PERMISSION_DENIED']=0x3]=_0x137374(0x2ef),_0x284a62[_0x284a62['NOT_FOUND']=0x4]=_0x137374(0x2be),_0x284a62[_0x284a62[_0x137374(0x3c8)]=0x5]=_0x137374(0x3c8),_0x284a62[_0x284a62[_0x137374(0x28c)]=0x6]=_0x137374(0x28c),_0x284a62[_0x284a62['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x284a62[_0x284a62['TOO_MANY_REQUESTS']=0x8]=_0x137374(0x34c),_0x284a62[_0x284a62[_0x137374(0x273)]=0x9]='COMPLETION_FINISHED',_0x284a62[_0x284a62[_0x137374(0x360)]=0xa]=_0x137374(0x360),_0x284a62[_0x284a62[_0x137374(0x40f)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x284a62[_0x284a62[_0x137374(0x221)]=0xc]=_0x137374(0x221),_0x284a62[_0x284a62[_0x137374(0x2d7)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x284a62[_0x284a62[_0x137374(0x1fc)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x284a62[_0x284a62[_0x137374(0x209)]=0xf]=_0x137374(0x209),_0x284a62[_0x284a62[_0x137374(0x3d4)]=0x10]=_0x137374(0x3d4),_0x284a62[_0x284a62[_0x137374(0x3b4)]=0x64]=_0x137374(0x3b4),_0x284a62[_0x284a62[_0x137374(0x1f2)]=0x65]=_0x137374(0x1f2),_0x284a62[_0x284a62[_0x137374(0x33d)]=0xc9]=_0x137374(0x33d),_0x284a62[_0x284a62[_0x137374(0x26a)]=0xca]=_0x137374(0x26a),_0x284a62[_0x284a62[_0x137374(0x34b)]=0x1389]=_0x137374(0x34b),_0x284a62[_0x284a62[_0x137374(0x1fb)]=0x1771]=_0x137374(0x1fb),_0x284a62[_0x284a62[_0x137374(0x29c)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x284a62[_0x284a62[_0x137374(0x3d3)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x284a62[_0x284a62['APPLY_REJECT']=0x1b59]=_0x137374(0x25e),_0x284a62[_0x284a62[_0x137374(0x3b7)]=0x1b5a]=_0x137374(0x3b7),_0x284a62[_0x284a62[_0x137374(0x3ca)]=0x1b5b]=_0x137374(0x3ca),_0x284a62[_0x284a62['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x284a62[_0x284a62[_0x137374(0x2b2)]=0x1b5d]='APPLY_DUPLICATED',_0x284a62[_0x284a62['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x137374(0x266),_0x284a62[_0x284a62[_0x137374(0x2e6)]=0x2329]=_0x137374(0x2e6),_0x284a62[_0x284a62['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x284a62[_0x284a62[_0x137374(0x3db)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x284a62[_0x284a62[_0x137374(0x1dc)]=0x232c]=_0x137374(0x1dc),_0x284a62[_0x284a62[_0x137374(0x348)]=0x232d]=_0x137374(0x348),_0x284a62[_0x284a62[_0x137374(0x27c)]=0x2711]=_0x137374(0x27c),_0x284a62[_0x284a62[_0x137374(0x204)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x284a62[_0x284a62[_0x137374(0x1db)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x284a62[_0x284a62[_0x137374(0x29b)]=0x2714]=_0x137374(0x29b),_0x284a62[_0x284a62[_0x137374(0x2b4)]=0x271a]=_0x137374(0x2b4),_0x284a62[_0x284a62[_0x137374(0x2ee)]=0x271b]=_0x137374(0x2ee),_0x284a62[_0x284a62['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x137374(0x206),_0x284a62[_0x284a62['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x137374(0x3ad),_0x284a62[_0x284a62[_0x137374(0x31a)]=0x271e]=_0x137374(0x31a),_0x284a62[_0x284a62['YUUMI_AI_RUN_FAILED']=0x271f]=_0x137374(0x389),_0x284a62[_0x284a62[_0x137374(0x213)]=0x2720]=_0x137374(0x213),_0x284a62[_0x284a62[_0x137374(0x24f)]=0x2af9]=_0x137374(0x24f),_0x284a62[_0x284a62[_0x137374(0x27b)]=0x2ee1]=_0x137374(0x27b),_0x284a62[_0x284a62[_0x137374(0x365)]=0x2ee2]='INVALID_INVITE_CODE',_0x284a62[_0x284a62['INVITE_CODE_REQUIRED']=0x2ee3]=_0x137374(0x244),_0x284a62[_0x284a62[_0x137374(0x320)]=0x2ee4]=_0x137374(0x320),_0x284a62[_0x284a62[_0x137374(0x3ed)]=0x2ee5]=_0x137374(0x3ed),_0x284a62[_0x284a62['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x137374(0x232),_0x284a62[_0x284a62[_0x137374(0x248)]=0x32ca]=_0x137374(0x248),_0x284a62[_0x284a62[_0x137374(0x2dd)]=0x32cb]=_0x137374(0x2dd),_0x284a62[_0x284a62['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x284a62[_0x284a62[_0x137374(0x33f)]=0x36b2]=_0x137374(0x33f),_0x284a62[_0x284a62[_0x137374(0x290)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x284a62[_0x284a62[_0x137374(0x269)]=0x36b4]=_0x137374(0x269),_0x284a62[_0x284a62['ENTITLE_INVALID_COUPON_CODE']=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x284a62[_0x284a62['ENTITLE_COUPON_EXPIRED']=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x284a62[_0x284a62['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x137374(0x25b),_0x284a62[_0x284a62[_0x137374(0x3b9)]=0x36b8]=_0x137374(0x3b9),_0x284a62[_0x284a62[_0x137374(0x3cd)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x284a62[_0x284a62[_0x137374(0x1e6)]=0x3716]=_0x137374(0x1e6),_0x284a62[_0x284a62[_0x137374(0x3a2)]=0x3717]=_0x137374(0x3a2),_0x284a62[_0x284a62[_0x137374(0x287)]=0x37dd]=_0x137374(0x287),_0x284a62[_0x284a62[_0x137374(0x236)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x284a62[_0x284a62[_0x137374(0x208)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x284a62[_0x284a62[_0x137374(0x21c)]=0x3a9b]=_0x137374(0x21c),_0x284a62[_0x284a62[_0x137374(0x24c)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x284a62[_0x284a62[_0x137374(0x306)]=0x3a9d]=_0x137374(0x306),_0x284a62[_0x284a62['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x137374(0x3bc),_0x284a62[_0x284a62[_0x137374(0x2d3)]=0x3a9f]=_0x137374(0x2d3),_0x284a62[_0x284a62[_0x137374(0x246)]=0x3e81]=_0x137374(0x246),_0x284a62[_0x284a62[_0x137374(0x2d0)]=-0x1]=_0x137374(0x2d0),_0x284a62))(Z||{});function vn(_0x1b1917){const _0x15d7d4=_0x137374;var _0xe85a39,_0x39482d;const _0x303b09=(_0xe85a39=_0x1b1917[_0x15d7d4(0x210)])==null?void 0x0:_0xe85a39[_0x15d7d4(0x341)],_0x5305da=((_0x39482d=_0x1b1917[_0x15d7d4(0x210)])==null?void 0x0:_0x39482d['totalFormulasToCalculate'])||0x0;return _0x303b09===_0xa43128[_0x15d7d4(0x416)]&&_0x5305da>0x0;}function pn(_0x222720){const _0x1fd674=_0x137374;return _0x222720[_0x1fd674(0x3eb)]===_0x8f19c0['SUCCESS'];}var On=Object[_0x137374(0x2cb)],Tn=(_0x3c216b,_0x323397,_0x1b04b5,_0x4660a1)=>{const _0x8e9627=_0x137374;for(var _0x5bce6c=_0x4660a1>0x1?void 0x0:_0x4660a1?On(_0x323397,_0x1b04b5):_0x323397,_0x226e3f=_0x3c216b[_0x8e9627(0x327)]-0x1,_0x47338b;_0x226e3f>=0x0;_0x226e3f--)(_0x47338b=_0x3c216b[_0x226e3f])&&(_0x5bce6c=_0x47338b(_0x5bce6c)||_0x5bce6c);return _0x5bce6c;},P=(_0x2cad86,_0x102dcc)=>(_0x22e7de,_0x3aec2e)=>_0x102dcc(_0x22e7de,_0x3aec2e,_0x2cad86);const Cn=_0x137374(0x318),Rn=_0x137374(0x329),Dn=_0x137374(0x391);let Ie=class extends _0x2dffbf{constructor(_0x537ded,_0x49af36,_0x28d60d,_0x47fffe,_0xbddf85,_0x403951,_0x367c05){const _0x27dd39=_0x137374;super(),_(this,_0x27dd39(0x3fd),null),_(this,_0x27dd39(0x29f),0x0),_(this,'_currentUsage',0x0),_(this,_0x27dd39(0x2b7),[]),_(this,_0x27dd39(0x363),0x0),(this[_0x27dd39(0x294)]=_0x537ded,this[_0x27dd39(0x233)]=_0x49af36,this['_configService']=_0x28d60d,this[_0x27dd39(0x31d)]=_0x47fffe,this[_0x27dd39(0x366)]=_0xbddf85,this['_logService']=_0x403951,this[_0x27dd39(0x403)]=_0x367c05,this['_initCommandInterceptor']());}[_0x137374(0x41d)](){const _0x3a4ec0=_0x137374;this[_0x3a4ec0(0x32c)](this[_0x3a4ec0(0x233)][_0x3a4ec0(0x3c4)]((_0x42743c,_0x3ab456)=>{const _0x2b7570=_0x3a4ec0;var _0xcdde61;if(_0x42743c['id']!==_0x3fa7c3['id'])return;const _0x5f5a17=_0x42743c['params'];if(!this[_0x2b7570(0x41e)]((_0xcdde61=_0x5f5a17[_0x2b7570(0x1f3)])!=null?_0xcdde61:[]))return;if(!this[_0x2b7570(0x31e)]())throw this['_checkAndWaitForCalculationPermission'](_0x42743c,_0x3ab456),this[_0x2b7570(0x3d0)](),new _0xaf0871();})),this[_0x3a4ec0(0x32c)](this[_0x3a4ec0(0x233)][_0x3a4ec0(0x23a)]((_0x1cbf81,_0x161b6c)=>{const _0x2fe5b0=_0x3a4ec0;if(_0x1cbf81['id']!==_0x18e3c7['id'])return;const _0x3f02db=_0x1cbf81[_0x2fe5b0(0x2c3)];if(vn(_0x3f02db)){const _0x29be58=_0x1a0884();this[_0x2fe5b0(0x2b7)]['push'](_0x29be58),this[_0x2fe5b0(0x388)](_0x29be58);}else{if(pn(_0x3f02db)&&this[_0x2fe5b0(0x2b7)][_0x2fe5b0(0x327)]>0x0){const _0x33fa56=this[_0x2fe5b0(0x2b7)]['shift']();this['_releaseCalculationLimit'](_0x33fa56);}}}));}[_0x137374(0x325)](){const _0x57891a=_0x137374;super[_0x57891a(0x325)](),this[_0x57891a(0x3e6)](),this[_0x57891a(0x2b7)]=[],this['_currentUsage']=0x0,this[_0x57891a(0x29f)]=0x0,this[_0x57891a(0x363)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x4ca819,_0x52273f){const _0xbab481=_0x137374;for(let _0x250a3f=0x0;_0x250a3f<0x1e;_0x250a3f++)try{if(await this[_0xbab481(0x2fc)](),this[_0xbab481(0x31e)]()){this['_applyCommand'](_0x4ca819,_0x52273f),this['_messageService']['show']({'content':this[_0xbab481(0x403)]['t']('formula.calculation.started'),'type':_0x17ce26[_0xbab481(0x214)]});return;}await new Promise(_0x1904ee=>{const _0x35ab20=_0xbab481;this['_pollingInterval']=window[_0x35ab20(0x22b)](_0x1904ee,0x3e8);});}catch(_0x45cd83){this[_0xbab481(0x2ff)][_0xbab481(0x349)](_0x45cd83);}this[_0xbab481(0x294)][_0xbab481(0x342)]({'content':this[_0xbab481(0x403)]['t'](_0xbab481(0x333)),'type':_0x17ce26[_0xbab481(0x41b)]});}[_0x137374(0x409)](_0x47424f,_0x566c31){const _0x1053c3=_0x137374;try{this[_0x1053c3(0x233)][_0x1053c3(0x2d6)](_0x47424f['id'],_0x47424f[_0x1053c3(0x2c3)],_0x566c31);}catch(_0x4830c3){this[_0x1053c3(0x2ff)][_0x1053c3(0x349)](_0x4830c3);}}[_0x137374(0x3fa)](_0x25f640,_0x575657){const _0x3cc7d9=_0x137374;_0x575657<this[_0x3cc7d9(0x363)]||(this[_0x3cc7d9(0x363)]=_0x575657,this[_0x3cc7d9(0x29f)]=Number[_0x3cc7d9(0x3ba)](_0x25f640[_0x3cc7d9(0x272)]),this[_0x3cc7d9(0x3df)]=Number[_0x3cc7d9(0x3ba)](_0x25f640['currentUsage']));}async[_0x137374(0x388)](_0x1c621d){const _0x508c7c=_0x137374;var _0x108f92,_0x45543a;const _0x1316a0=Date[_0x508c7c(0x340)]();try{const _0x14665b=((_0x108f92=this[_0x508c7c(0x26e)]['getConfig'](_0x1e86b8))==null?void 0x0:_0x108f92['startFormulaLimitUrl'])||Rn,_0x2473cd=(await this[_0x508c7c(0x31d)][_0x508c7c(0x2b6)](_0x14665b,{'body':JSON[_0x508c7c(0x30d)]({'taskId':_0x1c621d})}))[_0x508c7c(0x3f9)];if(((_0x45543a=_0x2473cd['error'])==null?void 0x0:_0x45543a[_0x508c7c(0x33c)])!==Z['OK'])return;this[_0x508c7c(0x3fa)](_0x2473cd[_0x508c7c(0x310)],_0x1316a0);}catch(_0xd94f12){this['_logService'][_0x508c7c(0x349)](_0xd94f12);}}async['_getFormulaLimitStatus'](_0x34c3b9){const _0x442a4e=_0x137374;var _0x5c95eb,_0x9957f0;const _0x4fb4a0=Date[_0x442a4e(0x340)]();try{const _0x490dde=((_0x5c95eb=this['_configService'][_0x442a4e(0x39c)](_0x1e86b8))==null?void 0x0:_0x5c95eb[_0x442a4e(0x37b)])||Cn,_0x2a4b2a=_0x34c3b9?_0x490dde+'?taskId='+encodeURIComponent(_0x34c3b9):_0x490dde,_0x7e2de2=(await this[_0x442a4e(0x31d)]['get'](_0x2a4b2a))[_0x442a4e(0x3f9)];if(((_0x9957f0=_0x7e2de2[_0x442a4e(0x349)])==null?void 0x0:_0x9957f0[_0x442a4e(0x33c)])!==Z['OK'])return;this[_0x442a4e(0x3fa)](_0x7e2de2[_0x442a4e(0x310)],_0x4fb4a0);}catch(_0x3d6d7f){this[_0x442a4e(0x2ff)][_0x442a4e(0x349)](_0x3d6d7f);}}async[_0x137374(0x40b)](_0x539c73){const _0x340d9b=_0x137374;var _0x48ca8d,_0x5b9453;const _0xefa3e3=Date[_0x340d9b(0x340)]();try{const _0x3061e2=((_0x48ca8d=this[_0x340d9b(0x26e)][_0x340d9b(0x39c)](_0x1e86b8))==null?void 0x0:_0x48ca8d[_0x340d9b(0x2ea)])||Dn,_0x4595f2=(await this[_0x340d9b(0x31d)][_0x340d9b(0x2b6)](_0x3061e2,{'body':JSON['stringify']({'taskId':_0x539c73})}))[_0x340d9b(0x3f9)];if(((_0x5b9453=_0x4595f2[_0x340d9b(0x349)])==null?void 0x0:_0x5b9453[_0x340d9b(0x33c)])!==Z['OK'])return;this[_0x340d9b(0x3fa)](_0x4595f2[_0x340d9b(0x310)],_0xefa3e3);}catch(_0x19a38d){this[_0x340d9b(0x2ff)][_0x340d9b(0x349)](_0x19a38d);}}[_0x137374(0x31e)](){const _0x459cab=_0x137374;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x459cab(0x29f)]-this['_currentUsage']>0x0;}[_0x137374(0x3e6)](){const _0x11d6d4=_0x137374;this['_pollingInterval']&&(clearTimeout(this[_0x11d6d4(0x3fd)]),this[_0x11d6d4(0x3fd)]=null);}['_showGuardMessage'](){const _0x21c0e0=_0x137374;this[_0x21c0e0(0x294)]['show']({'content':this[_0x21c0e0(0x403)]['t'](_0x21c0e0(0x1dd)),'type':_0x17ce26['Loading']});}[_0x137374(0x41e)](_0x3316bc){const _0x5473ea=_0x137374;for(const _0x3001f9 of _0x3316bc){const {unitId:_0x205873,sheetId:_0x2a45ea,range:_0x217d6b}=_0x3001f9,_0x4d44c0=this[_0x5473ea(0x366)][_0x5473ea(0x226)](_0x205873);if(!_0x4d44c0)continue;const _0x35c587=_0x4d44c0[_0x5473ea(0x2f4)](_0x2a45ea);if(!_0x35c587)continue;const _0x350485=_0x35c587['getCellMatrix']();for(let _0x5907ed=_0x217d6b['startRow'];_0x5907ed<=_0x217d6b['endRow'];_0x5907ed++)for(let _0x1e63f2=_0x217d6b[_0x5473ea(0x234)];_0x1e63f2<=_0x217d6b[_0x5473ea(0x21b)];_0x1e63f2++){const _0x1d044c=_0x350485[_0x5473ea(0x352)](_0x5907ed,_0x1e63f2);if(_0x1d044c&&(_0x34edce(_0x1d044c['f'])||_0x669a1e(_0x1d044c['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x23f7c2(_0x3d39b5)),P(0x1,_0x532ba9),P(0x2,_0x33a0bc),P(0x3,_0x23f7c2(_0x2410da)),P(0x4,_0x14d7a9),P(0x5,_0x4cfb97),P(0x6,_0x23f7c2(_0x55a4a7))],Ie);var Nn=Object[_0x137374(0x2cb)],bn=(_0x1681d8,_0x362502,_0xe7509a,_0x574d5c)=>{for(var _0x15e5cf=_0x574d5c>0x1?void 0x0:_0x574d5c?Nn(_0x362502,_0xe7509a):_0x362502,_0x14355b=_0x1681d8['length']-0x1,_0x1887c5;_0x14355b>=0x0;_0x14355b--)(_0x1887c5=_0x1681d8[_0x14355b])&&(_0x15e5cf=_0x1887c5(_0x15e5cf)||_0x15e5cf);return _0x15e5cf;},Ue=(_0x34b88f,_0x17ca47)=>(_0x260ab1,_0x1c3165)=>_0x17ca47(_0x260ab1,_0x1c3165,_0x34b88f);let He=class extends _0x2dffbf{constructor(_0x3bd13e,_0x1621ca,_0x57d284){const _0x287e48=_0x137374;super(),_(this,_0x287e48(0x262),new Map()),_(this,_0x287e48(0x1f6),new Map()),_(this,_0x287e48(0x2ac),!0x1),(this[_0x287e48(0x26e)]=_0x3bd13e,this[_0x287e48(0x402)]=_0x1621ca,this[_0x287e48(0x34a)]=_0x57d284);}[_0x137374(0x395)](){const _0x5ec6c5=_0x137374;this[_0x5ec6c5(0x2ac)]=!0x0;}[_0x137374(0x279)](){const _0x34cd82=_0x137374;this[_0x34cd82(0x2ac)]=!0x1;}get[_0x137374(0x36c)](){const _0x36cc02=_0x137374;return this[_0x36cc02(0x1f6)];}['dispose'](){const _0x279ce8=_0x137374;this['exhaustSavingTask']()[_0x279ce8(0x312)](()=>super[_0x279ce8(0x325)]());}async[_0x137374(0x243)](_0xf96e56){const _0x5ecdf4=_0x137374;return this[_0x5ecdf4(0x2ac)]?null:this['_localStorageService']['getItem'](_0xe796ed(_0xf96e56));}async[_0x137374(0x24a)](_0xf2fc9f,_0x5a756d){const _0xb2f18e=_0x137374;return!!this['_localStorageService'][_0xb2f18e(0x2ae)](_0xf2fc9f,_0x5a756d);}[_0x137374(0x3b3)](_0x31c974,_0x5f2258,_0x3cc75f,_0x458119){const _0x5ded57=_0x137374,_0x40429b=this[_0x5ded57(0x34a)][_0x5ded57(0x2d2)](_0x31c974);this['_cachedData'][_0x5ded57(0x308)](_0x31c974,{'unitID':_0x31c974,'type':_0x5f2258,'awaitingChangeset':_0x3cc75f,'mutations':_0x458119,'rev':_0x40429b}),this[_0x5ded57(0x1f6)]['has'](_0x31c974)||this[_0x5ded57(0x1e4)](_0x31c974);}[_0x137374(0x1e4)](_0x1b794c){const _0x525db5=_0x137374,_0x599a49=this['_getSaveTimeout']();_0x599a49===0x0?this[_0x525db5(0x261)](_0x1b794c):this[_0x525db5(0x1f6)][_0x525db5(0x308)](_0x1b794c,setTimeout(()=>this['_saveCache'](_0x1b794c),_0x599a49));}['_getSaveTimeout'](){const _0x2a7a49=_0x137374;var _0x1538db;return(_0x1538db=this[_0x2a7a49(0x26e)]['getConfig'](_0x5a78ff))!=null?_0x1538db:_0x48566c;}[_0x137374(0x261)](_0x25be46){const _0x33c651=_0x137374,_0x290846=this[_0x33c651(0x1f6)]['get'](_0x25be46);return _0x290846!==void 0x0&&window[_0x33c651(0x216)](_0x290846),this['_localStorageService'][_0x33c651(0x2ae)](_0xe796ed(_0x25be46),this[_0x33c651(0x262)]['get'](_0x25be46))[_0x33c651(0x312)](()=>this[_0x33c651(0x1f6)][_0x33c651(0x2c2)](_0x25be46));}async[_0x137374(0x1df)](){const _0x5a45c1=_0x137374,_0x4e6072=[];this[_0x5a45c1(0x1f6)]['forEach']((_0x5db05f,_0xfd122d)=>{const _0x294c97=_0x5a45c1;window[_0x294c97(0x216)](_0x5db05f),_0x4e6072['push'](this[_0x294c97(0x261)](_0xfd122d)[_0x294c97(0x312)](()=>{const _0x5dba3d=_0x294c97;this[_0x5dba3d(0x1f6)][_0x5dba3d(0x2c2)](_0xfd122d);}));}),await Promise[_0x5a45c1(0x356)](_0x4e6072);}};He=bn([Ue(0x0,_0x33a0bc),Ue(0x1,_0x2c6c03),Ue(0x2,_0x23f7c2(_0x29aef1))],He);class Ln extends _0xa32225{constructor(){const _0x119da6=_0x137374;super(),_(this,_0x119da6(0x317)),this[_0x119da6(0x317)]=_0x58ef8d(window,_0x119da6(0x405))['pipe'](_0x1d8ed1(this[_0x119da6(0x3c7)]),_0x411e24(0x1),_0x5b150f(void 0x0));}[_0x137374(0x324)](_0x3ff5b3,_0x1f66c1,_0x4e8de7=!0x1){const _0x216095=_0x137374,_0x280781=new URL(window[_0x216095(0x316)][_0x216095(0x2e4)]);_0x280781[_0x216095(0x2a5)][_0x216095(0x308)](_0x3ff5b3,_0x1f66c1),_0x4e8de7?window[_0x216095(0x292)][_0x216095(0x400)]('','',_0x280781[_0x216095(0x3be)]()):window[_0x216095(0x292)][_0x216095(0x3aa)]('','',_0x280781['toString']());}[_0x137374(0x3cb)](_0xd017d0,_0x372e95=!0x1){const _0x5834f3=_0x137374,_0x52985e=new URL(window[_0x5834f3(0x316)][_0x5834f3(0x2e4)]);_0x52985e[_0x5834f3(0x2a5)]['delete'](_0xd017d0),_0x372e95?window[_0x5834f3(0x292)][_0x5834f3(0x400)]('','',_0x52985e[_0x5834f3(0x3be)]()):window['history']['pushState']('','',_0x52985e[_0x5834f3(0x3be)]());}['getParam'](_0x87286a){const _0x46eb98=_0x137374;var _0x44aae0;return(_0x44aae0=new URL(window[_0x46eb98(0x316)][_0x46eb98(0x2e4)])[_0x46eb98(0x2a5)]['get'](_0x87286a))!=null?_0x44aae0:void 0x0;}}var Un=Object[_0x137374(0x35b)],Mn=Object[_0x137374(0x2cb)],An=(_0x544042,_0xe70fbf,_0x193bd4)=>_0xe70fbf in _0x544042?Un(_0x544042,_0xe70fbf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x193bd4}):_0x544042[_0xe70fbf]=_0x193bd4,Pn=(_0x2844da,_0x43a117,_0x3bc695,_0x151564)=>{for(var _0x471cff=_0x151564>0x1?void 0x0:_0x151564?Mn(_0x43a117,_0x3bc695):_0x43a117,_0x2546a6=_0x2844da['length']-0x1,_0x5b19cf;_0x2546a6>=0x0;_0x2546a6--)(_0x5b19cf=_0x2844da[_0x2546a6])&&(_0x471cff=_0x5b19cf(_0x471cff)||_0x471cff);return _0x471cff;},Me=(_0x29a830,_0x41cb79)=>(_0x1a1c23,_0x47faa5)=>_0x41cb79(_0x1a1c23,_0x47faa5,_0x29a830),wn=(_0x10aa3d,_0x2668a4,_0x448cdf)=>An(_0x10aa3d,_0x2668a4+'',_0x448cdf);const yn=_0x137374(0x203);let Ye=class extends _0xa676fd{constructor(_0x39c036=_t,_0x5781c9,_0x16fe12,_0x4d03d6){const _0x5cd181=_0x137374;super(),this[_0x5cd181(0x25c)]=_0x39c036,this[_0x5cd181(0x2d9)]=_0x5781c9,this[_0x5cd181(0x265)]=_0x16fe12,this[_0x5cd181(0x26e)]=_0x4d03d6;const {..._0x1c85d7}=_0x2a3f8e({},_t,this[_0x5cd181(0x25c)]);this[_0x5cd181(0x26e)]['setConfig'](hn,_0x1c85d7);}[_0x137374(0x23f)](){const _0x308bb8=_0x137374;this[_0x308bb8(0x29e)](),this['_initDependencies']();}[_0x137374(0x3b2)](){this['_registerRenderDependencies']();}[_0x137374(0x29e)](){const _0x1ab14f=_0x137374;var _0x129c47;const _0x454370=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x499c83,{'useClass':_0x18cf93}],[_0x2b1e85,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x1ab14f(0x25c)][_0x1ab14f(0x212)]&&_0x454370['push']([le]),_0x5d6cf9(this[_0x1ab14f(0x265)],_0x5e1524(_0x454370,(_0x129c47=this[_0x1ab14f(0x25c)])==null?void 0x0:_0x129c47['override']));}[_0x137374(0x238)](){const _0x54be65=_0x137374;this[_0x54be65(0x32c)](this[_0x54be65(0x2d9)]['registerRenderModule'](_0x221888[_0x54be65(0x2f2)],[Fe])),this[_0x54be65(0x32c)](this[_0x54be65(0x2d9)][_0x54be65(0x2c9)](_0x221888[_0x54be65(0x35c)],[ke]));}[_0x137374(0x1fd)](){const _0x176b08=_0x137374;_0x41e9c7(this[_0x176b08(0x265)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x176b08(0x25c)][_0x176b08(0x212)]&&_0x41e9c7(this['_injector'],[[le]]);}};wn(Ye,_0x137374(0x283),yn),Ye=Pn([_0x7f4b09(_0x5d1b34),Me(0x1,_0x46c3d4),Me(0x2,_0x23f7c2(_0x1173e2)),Me(0x3,_0x33a0bc)],Ye);var $n=Object[_0x137374(0x2cb)],xn=(_0x1afbb9,_0x397457,_0x1619b5,_0x8eb2c2)=>{const _0x1b48f4=_0x137374;for(var _0x368dd4=_0x8eb2c2>0x1?void 0x0:_0x8eb2c2?$n(_0x397457,_0x1619b5):_0x397457,_0x1257fe=_0x1afbb9[_0x1b48f4(0x327)]-0x1,_0x19920b;_0x1257fe>=0x0;_0x1257fe--)(_0x19920b=_0x1afbb9[_0x1257fe])&&(_0x368dd4=_0x19920b(_0x368dd4)||_0x368dd4);return _0x368dd4;},J=(_0x11ed9c,_0x350896)=>(_0x380e39,_0x5a7813)=>_0x350896(_0x380e39,_0x5a7813,_0x11ed9c);let ut=class extends _0x3c5468{constructor(_0x371ac0,_0xbeeeca,_0x4f0d5d,_0x3dd535,_0x3b0524){super(_0x371ac0,_0xbeeeca,_0x4f0d5d,_0x3dd535,_0x3b0524);}async[_0x137374(0x382)](_0x2f26b4){const _0x22e29e=_0x137374,_0x1754c6=await this[_0x22e29e(0x3e4)](),_0x2733a5=this[_0x22e29e(0x387)](_0x2f26b4,_0x1754c6);return this[_0x22e29e(0x396)](_0x2733a5);}[_0x137374(0x387)](_0x2ffa8d,_0x5159a7){const _0x541ff1=_0x137374,_0x2109f5=typeof window>'u'?new URL(_0x2ffa8d):new URL(_0x2ffa8d,window[_0x541ff1(0x316)]['origin']);_0x2109f5[_0x541ff1(0x2a5)][_0x541ff1(0x308)]('sessionTicket',_0x5159a7);const _0x4e5d6c=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x541ff1(0x316)][_0x541ff1(0x381)]);return _0x4e5d6c[_0x541ff1(0x34d)](_0x541ff1(0x2f7))&&_0x2109f5[_0x541ff1(0x2a5)][_0x541ff1(0x308)]('runId',_0x4e5d6c['get'](_0x541ff1(0x2f7))),_0x2109f5[_0x541ff1(0x3be)]();}async[_0x137374(0x3e4)](){const _0x406a36=_0x137374;var _0x13c79b,_0x4d2b26,_0x46878d;const _0x5c44a3=this[_0x406a36(0x26e)][_0x406a36(0x39c)](_0x1e86b8),_0x348948=(_0x13c79b=_0x5c44a3==null?void 0x0:_0x5c44a3[_0x406a36(0x27f)])!=null?_0x13c79b:_0x3801bf;return(_0x46878d=(_0x4d2b26=(await this[_0x406a36(0x31d)]['get'](_0x348948,{'headers':{'Content-Type':_0x406a36(0x411)}}))['body'])==null?void 0x0:_0x4d2b26[_0x406a36(0x33b)])!=null?_0x46878d:'';}};ut=xn([J(0x0,_0x23f7c2(_0x1173e2)),J(0x1,_0x23f7c2(_0x2410da)),J(0x2,_0x33a0bc),J(0x3,_0x4cfb97),J(0x4,_0x425c73)],ut);var Bn=Object[_0x137374(0x2cb)],Fn=(_0x4f4e1d,_0x47e7e0,_0x1ceefa,_0x504e8e)=>{const _0x4d3c47=_0x137374;for(var _0x5f516b=_0x504e8e>0x1?void 0x0:_0x504e8e?Bn(_0x47e7e0,_0x1ceefa):_0x47e7e0,_0x7589e4=_0x4f4e1d[_0x4d3c47(0x327)]-0x1,_0x5a3e7d;_0x7589e4>=0x0;_0x7589e4--)(_0x5a3e7d=_0x4f4e1d[_0x7589e4])&&(_0x5f516b=_0x5a3e7d(_0x5f516b)||_0x5f516b);return _0x5f516b;},Ae=(_0x241f6d,_0x874214)=>(_0x5c08b7,_0x54550f)=>_0x874214(_0x5c08b7,_0x54550f,_0x241f6d);let dt=class extends _0x2dffbf{constructor(_0xfd8e0,_0x43d78d,_0x19cd04){const _0x404e2a=_0x137374;super(),this[_0x404e2a(0x2b9)]=_0xfd8e0,this['_httpService']=_0x43d78d,this['_configService']=_0x19cd04;}async['runOnServer'](_0x461ad2,_0xbbb50a,_0x3afc35,..._0x304b39){const _0x53fa50=_0x137374;var _0x2bba62,_0x3aeb24,_0x3ac0c0,_0x57b6f5;const _0x22ae42=this[_0x53fa50(0x2b9)]['getFocusedUnit']();if(!_0x22ae42)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x2e2c0d=((_0x2bba62=this[_0x53fa50(0x26e)][_0x53fa50(0x39c)](_0x599585))!=null?_0x2bba62:_0xe555a2)+'/'+_0x461ad2+_0x53fa50(0x35a)+_0xbbb50a,_0x37c271=new URL(window['location'][_0x53fa50(0x2e4)]),_0xf3e2e3={'scriptId':_0x461ad2,'runId':(_0x3aeb24=_0x37c271[_0x53fa50(0x2a5)][_0x53fa50(0x34d)]('runId'))!=null?_0x3aeb24:'','function':_0xbbb50a,'unitId':_0x22ae42[_0x53fa50(0x254)](),'argsOfFunction':JSON[_0x53fa50(0x30d)](_0x304b39),'invokeId':(_0x3ac0c0=_0x3afc35[_0x53fa50(0x3b5)])!=null?_0x3ac0c0:'','executionId':(_0x57b6f5=_0x3afc35[_0x53fa50(0x268)])!=null?_0x57b6f5:''};try{const _0x324635=await this[_0x53fa50(0x31d)]['post'](_0x2e2c0d,{'body':_0xf3e2e3});return _0x324635[_0x53fa50(0x3f9)][_0x53fa50(0x349)]&&_0x324635[_0x53fa50(0x3f9)][_0x53fa50(0x349)][_0x53fa50(0x33c)]!==Z['OK']?_0x53fa50(0x3d7):_0x324635[_0x53fa50(0x3f9)][_0x53fa50(0x252)];}catch{return _0x53fa50(0x3d7);}}};dt=Fn([Ae(0x0,_0x14d7a9),Ae(0x1,_0x23f7c2(_0x2410da)),Ae(0x2,_0x33a0bc)],dt);const St=0x7530,It=_0x137374(0x2b1);class rr extends _0x2dffbf{constructor(){const _0x67a4ab=_0x137374;super(),_(this,_0x67a4ab(0x41c),_0x1a0884()),_(this,'_selfUnitIDs',new Set()),_(this,_0x67a4ab(0x255),new Map()),_(this,_0x67a4ab(0x2a0),null),_(this,_0x67a4ab(0x218),new Map()),_(this,'_unitStatus',new Map()),this[_0x67a4ab(0x1de)]();}[_0x137374(0x325)](){const _0x2350bd=_0x137374;super[_0x2350bd(0x325)](),this[_0x2350bd(0x218)][_0x2350bd(0x343)]((_0x524bfd,_0x3de0b0)=>this[_0x2350bd(0x2ec)](_0x3de0b0)),this[_0x2350bd(0x2a0)]&&window[_0x2350bd(0x39b)](this[_0x2350bd(0x2a0)]);}[_0x137374(0x26b)](_0x4c60d9){const _0x2c641a=_0x137374;return this[_0x2c641a(0x24d)](_0x4c60d9)[_0x2c641a(0x25f)](_0x553790());}[_0x137374(0x2c5)](_0x5401c2){const _0x3197fc=_0x137374;this[_0x3197fc(0x2bc)][_0x3197fc(0x2c7)]===0x0&&this[_0x3197fc(0x1f9)](),this[_0x3197fc(0x2bc)][_0x3197fc(0x37d)](_0x5401c2),this['_send']({'type':0x0,'memberID':this[_0x3197fc(0x41c)],'unitIDs':[_0x5401c2],'isForwarded':!0x1});}[_0x137374(0x35d)](_0x52c9a4){const _0x18984a=_0x137374;this[_0x18984a(0x2bc)][_0x18984a(0x2c2)](_0x52c9a4),this[_0x18984a(0x2bc)][_0x18984a(0x2c7)]===0x0&&this[_0x18984a(0x2a0)]&&window[_0x18984a(0x39b)](this[_0x18984a(0x2a0)]);}['_init'](){const _0x5bca3f=_0x137374;this[_0x5bca3f(0x32c)](_0x10b382(_0x58ef8d(window,_0x5bca3f(0x303))[_0x5bca3f(0x305)](_0x3e25e9=>{const _0x54c560=_0x5bca3f;if(_0x3e25e9[_0x54c560(0x2c8)]!==It||!_0x3e25e9['newValue'])return;const _0x15e382=JSON['parse'](_0x3e25e9['newValue']);this[_0x54c560(0x38b)](_0x15e382);}))),window[_0x5bca3f(0x417)](_0x5bca3f(0x24b),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x5bca3f(0x377)](this[_0x5bca3f(0x2bc)])}));}['_handleEvent'](_0x2d9a22){const _0x20cdcf=_0x137374;switch(_0x2d9a22[_0x20cdcf(0x404)]){case 0x0:this['_handleJoinEvent'](_0x2d9a22);break;case 0x1:this[_0x20cdcf(0x3fc)](_0x2d9a22);break;case 0x2:this[_0x20cdcf(0x1fe)](_0x2d9a22);break;}}[_0x137374(0x3f4)](_0x28c309){const _0x217b8f=_0x137374,{unitIDs:_0x2ee2fd,memberID:_0x37b1e5,isForwarded:_0x1117f3}=_0x28c309;_0x2ee2fd[_0x217b8f(0x343)](_0x506752=>{const _0xb24ca3=_0x217b8f;if(!_0x1117f3&&this[_0xb24ca3(0x255)][_0xb24ca3(0x3ea)](_0x506752)&&this['_ensureSubject'](_0x506752)[_0xb24ca3(0x28d)](_0xb88388['OTHER_CLIENTS_EDITING']),!this[_0xb24ca3(0x255)][_0xb24ca3(0x3ea)](_0x506752)||!this[_0xb24ca3(0x255)][_0xb24ca3(0x34d)](_0x506752)[_0xb24ca3(0x3ea)](_0x37b1e5)){const _0x5def34=this[_0xb24ca3(0x255)][_0xb24ca3(0x34d)](_0x506752)||new Set();_0x5def34['add'](_0x37b1e5),this['_unitOnClients']['set'](_0x506752,_0x5def34),this['_scheduleClearOtherTimer'](_0x37b1e5);}}),_0x1117f3||this[_0x217b8f(0x2a7)]({'type':0x0,'memberID':this[_0x217b8f(0x41c)],'unitIDs':[...this[_0x217b8f(0x2bc)]],'isForwarded':!0x0});}[_0x137374(0x3a6)](_0x26f8f4){const _0x2a90d3=_0x137374;this[_0x2a90d3(0x2ec)](_0x26f8f4);const _0x4d0dd3=window[_0x2a90d3(0x22b)](()=>{const _0x313289=_0x2a90d3;this[_0x313289(0x255)]['forEach'](_0x1a814e=>{_0x1a814e['delete'](_0x26f8f4);});},St*0x2);this[_0x2a90d3(0x218)][_0x2a90d3(0x308)](_0x26f8f4,_0x4d0dd3);}['_removeClearOtherTimer'](_0x2dd0f8){const _0x458ebe=_0x137374;if(this['_clearOtherTimers'][_0x458ebe(0x3ea)](_0x2dd0f8)){const _0x5584da=this[_0x458ebe(0x218)][_0x458ebe(0x34d)](_0x2dd0f8);_0x5584da&&window[_0x458ebe(0x216)](_0x5584da),this[_0x458ebe(0x218)][_0x458ebe(0x308)](_0x2dd0f8,null);}}[_0x137374(0x3fc)](_0x50b52c){const _0x5381aa=_0x137374,{memberID:_0x293572,unitIDs:_0x55fc7a}=_0x50b52c;_0x55fc7a[_0x5381aa(0x343)](_0x30513b=>{const _0x41258f=_0x5381aa;var _0x54acf3;const _0x1a0ec6=this[_0x41258f(0x255)]['get'](_0x30513b);_0x1a0ec6&&(_0x1a0ec6[_0x41258f(0x2c2)](_0x293572),(_0x54acf3=this[_0x41258f(0x24d)](_0x30513b))==null||_0x54acf3['next'](_0x1a0ec6['size']===0x0?_0xb88388['NO_OTHER_CLIENTS_EDITING']:_0xb88388['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x293572);}[_0x137374(0x1fe)](_0x33f0f1){const _0x51ba95=_0x137374;this[_0x51ba95(0x3a6)](_0x33f0f1[_0x51ba95(0x3d9)]);}[_0x137374(0x2a7)](_0x2be42f){const _0x29f359=_0x137374;localStorage['setItem'](It,JSON[_0x29f359(0x30d)](_0x2be42f));}['_scheduleHeartbeat'](){const _0x1fe2dc=_0x137374;this[_0x1fe2dc(0x2a0)]=window[_0x1fe2dc(0x414)](()=>{const _0x18ac62=_0x1fe2dc;this[_0x18ac62(0x2a7)]({'type':0x2,'memberID':this['_id']});},St);}[_0x137374(0x24d)](_0x5eb84c){const _0x17a70a=_0x137374;return this[_0x17a70a(0x278)][_0x17a70a(0x3ea)](_0x5eb84c)||this[_0x17a70a(0x278)][_0x17a70a(0x308)](_0x5eb84c,new _0x5b93d9(_0xb88388['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x17a70a(0x34d)](_0x5eb84c);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
|
|
1
|
+
const _0x7f8acc=_0x5d9e;(function(_0x10ded8,_0xd3792a){const _0x28ae1c=_0x5d9e,_0x3f5daf=_0x10ded8();while(!![]){try{const _0x12cd06=-parseInt(_0x28ae1c(0x3b7))/0x1*(parseInt(_0x28ae1c(0x1fd))/0x2)+parseInt(_0x28ae1c(0x278))/0x3*(parseInt(_0x28ae1c(0x27a))/0x4)+-parseInt(_0x28ae1c(0x36f))/0x5*(parseInt(_0x28ae1c(0x262))/0x6)+-parseInt(_0x28ae1c(0x23b))/0x7*(parseInt(_0x28ae1c(0x32e))/0x8)+-parseInt(_0x28ae1c(0x25d))/0x9*(parseInt(_0x28ae1c(0x3f5))/0xa)+-parseInt(_0x28ae1c(0x38a))/0xb*(-parseInt(_0x28ae1c(0x242))/0xc)+parseInt(_0x28ae1c(0x1ff))/0xd;if(_0x12cd06===_0xd3792a)break;else _0x3f5daf['push'](_0x3f5daf['shift']());}catch(_0x4edc81){_0x3f5daf['push'](_0x3f5daf['shift']());}}}(_0x4ffd,0x40877));var Yt=Object[_0x7f8acc(0x3c6)],Wt=(_0x1ef5c3,_0x3e5a64,_0x3b526d)=>_0x3e5a64 in _0x1ef5c3?Yt(_0x1ef5c3,_0x3e5a64,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b526d}):_0x1ef5c3[_0x3e5a64]=_0x3b526d,_=(_0x3df319,_0x2985d4,_0x40c876)=>Wt(_0x3df319,typeof _0x2985d4!=_0x7f8acc(0x3c9)?_0x2985d4+'':_0x2985d4,_0x40c876);import{jsx as _0x34a615,jsxs as _0x38be2f}from'react/jsx-runtime';import{CollaborationStatus as _0x4fc8bc,CollaborationSessionService as _0x4e2359,CollaborationController as _0x266ed1,DataLoaderService as _0x17e103,MemberService as _0x5e3fc2,SessionStatus as _0x44c92d,ILocalCacheService as _0xdd6cb7,CollaborationUIEventService as _0x2c6b3d,CollaborationUIEventId as _0xdb3270,DocCollaborationEntity as _0x4f28ea,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0xb08d55,getLocalCacheKey as _0x45f20f,LOCAL_CACHE_INTERVAL as _0x301cfa,LOCAL_CACHE_INTERVAL_KEY as _0x3f63a5,UniverCollaborationClientPlugin as _0x59eda8,CollaborationSocketService as _0x4162d7,DEFAULT_WS_SESSION_TICKET_URL as _0xe70929,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x19602d,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x3ce571,UnitStatus as _0x2493f9}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x21bb66,IUniverInstanceService as _0x319eb9,Inject as _0xe86757,Injector as _0x24194e,Disposable as _0x561bf0,createIdentifier as _0x37dc0b,ILogService as _0x2065a5,ICommandService as _0x2049b3,Optional as _0x4f0c3f,RxDisposable as _0x24b4d8,Workbook as _0xcd4786,DOC_RANGE_TYPE as _0x3e8b8f,debounce as _0x201617,Rectangle as _0x48060d,DisposableCollection as _0x37aa85,toDisposable as _0x721eb2,UniverInstanceType as _0x43c887,generateRandomId as _0x21630d,COLORS as _0x5688e8,ColorKit as _0x25d6e4,ThemeService as _0x78e4ed,fromEventSubject as _0x272251,Tools as _0x2fb330,CommandType as _0x5686c8,IConfigService as _0x38de65,CanceledError as _0x2fd875,isFormulaString as _0x186c94,isFormulaId as _0x14a082,ILocalStorageService as _0x53204f,DependentOn as _0x29ab69,Plugin as _0x4be243,merge as _0x18b46c,registerDependencies as _0x20de22,mergeOverrideWithDependencies as _0x449c3d,touchDependencies as _0x431a4e}from'@univerjs/core';import{useObservable as _0x5151b7,useDependency as _0x160f2f,IUIPartsService as _0x417976,BuiltInUIPart as _0x3a2c0b,connectInjector as _0x5da3de,IBeforeCloseService as _0x1b1b29,IMessageService as _0x44b101,INotificationService as _0x1152ce}from'@univerjs/ui';import{BehaviorSubject as _0x2bbfbf,switchMap as _0x3c14e4,of as _0x11f445,takeUntil as _0x761d71,debounceTime as _0x4a6a5d,Subject as _0x2e9f6f,filter as _0x75e715,merge as _0x11afdc,combineLatest as _0x369b54,fromEvent as _0x2863c4,shareReplay as _0x3c5005,mapTo as _0x351ee1,distinctUntilChanged as _0x246a1d}from'rxjs';import{Tooltip as _0x3df75b,clsx as _0x1eb27e,MessageType as _0x10fa0d}from'@univerjs/design';import{useRef as _0x640e43,createElement as _0x39b61d,forwardRef as _0xe015d8,useCallback as _0x42aa6b}from'react';import{IRemoteInstanceService as _0x16f1cd}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x3d77ad,RefRangeService as _0x1e4a15,SetSelectionsOperation as _0x58ff5b,SheetsSelectionsService as _0x3c9fec,EffectRefRangId as _0x25fc82,handleIRemoveRow as _0x4c992d,handleIRemoveCol as _0x21a94b,handleMoveRange as _0xd4b4c0,handleInsertRow as _0x3e4256,handleInsertRangeMoveRight as _0x85b5b,handleInsertRangeMoveDown as _0x574817,handleInsertCol as _0x10cb13,handleDeleteRangeMoveUp as _0x15dfeb,handleDeleteRangeMoveLeft as _0x34180b,runRefRangeMutations as _0x228458}from'@univerjs/sheets';import{Shape as _0x159947,Rect as _0x1bb5f1,getColor as _0x3b090c,RegularPolygon as _0x159ed6,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x223c04,Vector2 as _0xf47159,SHEET_VIEWPORT_KEY as _0x488f02,IRenderManagerService as _0x2cedfd}from'@univerjs/engine-render';import{HTTPService as _0x943484,ISocketService as _0x2776fd,WebSocketService as _0x3d008e}from'@univerjs/network';import{IDocClipboardService as _0x4aea8b,NodePositionConvertToCursor as _0xc661d0,NodePositionConvertToRectRange as _0x1184d5,TEXT_RANGE_LAYER_INDEX as _0xe74629,SetDocZoomRatioOperation as _0x366a0a,DocIMEInputManagerService as _0x3ea52d,DocStateChangeManagerService as _0x51c2ae}from'@univerjs/docs-ui';import{IImageIoService as _0x40b057}from'@univerjs/drawing';import{ITransformService as _0xa0bd0,CollaborationEvent as _0x2a2223,isTransformMutationFailure as _0x4891f8,isTransformMutationsWithChangesetSuccess as _0x59f6fd,RevisionService as _0x716ef5,ISnapshotServerService as _0x54304d}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0xc889e4,RichTextEditingMutation as _0x26ac54,DocSelectionManagerService as _0x13e01a,DocSkeletonManagerService as _0x46f333}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x351f53,serializeRangeWithSheet as _0x3c469a,FormulaExecuteStageType as _0x3241a4,FormulaExecutedStateType as _0x3d3478,SetFormulaCalculationStartMutation as _0x3e888a,SetFormulaCalculationNotificationMutation as _0x12df4d}from'@univerjs/engine-formula';import{map as _0x3bc960,filter as _0x1befca,throttleTime as _0x39abd9,takeUntil as _0x204ac2,switchMap as _0x13c08e}from'rxjs/operators';import{SheetSkeletonManagerService as _0x3a1bfb,getCoordByCell as _0x51afff,getSheetObject as _0x2f44db}from'@univerjs/sheets-ui';function Ge({ref:_0x534cc9,..._0x4b2596}){const _0x350f79=_0x7f8acc,{icon:_0x1bd475,id:_0x482bfd,className:_0x102e80,extend:_0x48472a,..._0x5a6d4a}=_0x4b2596,_0x377734=('univerjs-icon\x20univerjs-icon-'+_0x482bfd+'\x20'+(_0x102e80||''))[_0x350f79(0x272)](),_0x5373d8=_0x640e43('_'+vi());return At(_0x1bd475,''+_0x482bfd,{'defIds':_0x1bd475[_0x350f79(0x290)],'idSuffix':_0x5373d8[_0x350f79(0x349)]},{'ref':_0x534cc9,'className':_0x377734,..._0x5a6d4a},_0x48472a);}function At(_0x479e55,_0x9baae3,_0x1eb43e,_0x52cfa2,_0x121913){const _0x47ee42=_0x7f8acc;return _0x39b61d(_0x479e55[_0x47ee42(0x269)],{'key':_0x9baae3,...gi(_0x479e55,_0x1eb43e,_0x121913),..._0x52cfa2},(Ei(_0x479e55,_0x1eb43e)[_0x47ee42(0x2b2)]||[])[_0x47ee42(0x33e)]((_0x3749ec,_0x56c4dd)=>At(_0x3749ec,_0x9baae3+'-'+_0x479e55[_0x47ee42(0x269)]+'-'+_0x56c4dd,_0x1eb43e,void 0x0,_0x121913)));}function gi(_0x5b6869,_0x172e96,_0x4a4852){const _0x105f60=_0x7f8acc,_0x3abf39={..._0x5b6869['attrs']};_0x4a4852!=null&&_0x4a4852[_0x105f60(0x226)]&&_0x3abf39['fill']===_0x105f60(0x226)&&(_0x3abf39[_0x105f60(0x3e0)]=_0x4a4852[_0x105f60(0x226)]),_0x5b6869[_0x105f60(0x269)]===_0x105f60(0x265)&&_0x3abf39['id']&&(_0x3abf39['id']=_0x3abf39['id']+_0x172e96[_0x105f60(0x24a)]),Object[_0x105f60(0x42c)](_0x3abf39)[_0x105f60(0x390)](([_0x326270,_0x4935b4])=>{const _0xfa87f4=_0x105f60;_0x326270==='mask'&&typeof _0x4935b4=='string'&&(_0x3abf39[_0x326270]=_0x4935b4[_0xfa87f4(0x421)](/url\(#(.*)\)/,'url(#$1'+_0x172e96[_0xfa87f4(0x24a)]+')'));});const {defIds:_0x2ea21d}=_0x172e96;return!_0x2ea21d||_0x2ea21d[_0x105f60(0x277)]===0x0||(_0x5b6869[_0x105f60(0x269)]===_0x105f60(0x2d7)&&_0x3abf39[_0x105f60(0x381)]&&(_0x3abf39[_0x105f60(0x381)]=_0x3abf39[_0x105f60(0x381)]+_0x172e96[_0x105f60(0x24a)]),Object[_0x105f60(0x42c)](_0x3abf39)['forEach'](([_0x41af42,_0x3aba04])=>{const _0x451fb5=_0x105f60;typeof _0x3aba04=='string'&&(_0x3abf39[_0x41af42]=_0x3aba04[_0x451fb5(0x421)](/url\(#(.*)\)/,_0x451fb5(0x395)+_0x172e96[_0x451fb5(0x24a)]+')'));})),_0x3abf39;}function Ei(_0x364806,_0x238cc8){const _0x788acd=_0x7f8acc;var _0x138c79;const {defIds:_0x3eeda8}=_0x238cc8;return!_0x3eeda8||_0x3eeda8[_0x788acd(0x277)]===0x0?_0x364806:_0x364806[_0x788acd(0x269)]===_0x788acd(0x2a7)&&((_0x138c79=_0x364806[_0x788acd(0x2b2)])!=null&&_0x138c79['length'])?{..._0x364806,'children':_0x364806[_0x788acd(0x2b2)][_0x788acd(0x33e)](_0x220880=>typeof _0x220880['attrs']['id']==_0x788acd(0x337)&&_0x3eeda8&&_0x3eeda8[_0x788acd(0x206)](_0x220880[_0x788acd(0x2d9)]['id'])?{..._0x220880,'attrs':{..._0x220880[_0x788acd(0x2d9)],'id':_0x220880[_0x788acd(0x2d9)]['id']+_0x238cc8[_0x788acd(0x24a)]}}:_0x220880)}:_0x364806;}function vi(){const _0x4d5876=_0x7f8acc;return Math[_0x4d5876(0x330)]()[_0x4d5876(0x2ad)](0x24)['substring'](0x2,0x8);}Ge[_0x7f8acc(0x3af)]=_0x7f8acc(0x2a9);const pi={'tag':_0x7f8acc(0x2e1),'attrs':{'xmlns':_0x7f8acc(0x322),'fill':'none','viewBox':_0x7f8acc(0x40a),'width':_0x7f8acc(0x367),'height':_0x7f8acc(0x367)},'children':[{'tag':'g','attrs':{'clipPath':_0x7f8acc(0x331)},'children':[{'tag':_0x7f8acc(0x21a),'attrs':{'stroke':_0x7f8acc(0x300),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':_0x7f8acc(0x257),'strokeWidth':1.2}}]},{'tag':_0x7f8acc(0x2a7),'attrs':{},'children':[{'tag':_0x7f8acc(0x2b0),'attrs':{'id':_0x7f8acc(0x3d7)},'children':[{'tag':_0x7f8acc(0x21a),'attrs':{'fill':_0x7f8acc(0x22f),'d':_0x7f8acc(0x3b6)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Pt=_0xe015d8(function(_0x5681c0,_0x4b42bc){const _0x487425=_0x7f8acc;return _0x39b61d(Ge,Object[_0x487425(0x31f)]({},_0x5681c0,{'id':_0x487425(0x434),'ref':_0x4b42bc,'icon':pi}));});Pt[_0x7f8acc(0x3af)]=_0x7f8acc(0x30e);const Oi={'tag':_0x7f8acc(0x2e1),'attrs':{'xmlns':_0x7f8acc(0x322),'fill':_0x7f8acc(0x431),'viewBox':_0x7f8acc(0x27d),'width':'1em','height':_0x7f8acc(0x367)},'children':[{'tag':'g','attrs':{'clipPath':_0x7f8acc(0x39c)},'children':[{'tag':'path','attrs':{'stroke':_0x7f8acc(0x300),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x7f8acc(0x257),'strokeLinejoin':_0x7f8acc(0x257),'strokeWidth':1.2}}]},{'tag':_0x7f8acc(0x2a7),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x7f8acc(0x379)},'children':[{'tag':_0x7f8acc(0x21a),'attrs':{'fill':_0x7f8acc(0x22f),'d':_0x7f8acc(0x3b6),'transform':_0x7f8acc(0x3ee)}}]}]}],'defIds':[_0x7f8acc(0x379)]},wt=_0xe015d8(function(_0x416f3a,_0x37d034){const _0x3eed07=_0x7f8acc;return _0x39b61d(Ge,Object['assign']({},_0x416f3a,{'id':_0x3eed07(0x28c),'ref':_0x37d034,'icon':Oi}));});wt[_0x7f8acc(0x3af)]=_0x7f8acc(0x1f1);function Ti(_0xf43f53){const _0x4a0e30=_0x7f8acc;switch(_0xf43f53){case _0x4fc8bc[_0x4a0e30(0x287)]:return _0x4a0e30(0x3b2);case _0x4fc8bc['CONFLICT']:return _0x4a0e30(0x436);case _0x4fc8bc[_0x4a0e30(0x1f8)]:return _0x4a0e30(0x27e);case _0x4fc8bc[_0x4a0e30(0x28b)]:return _0x4a0e30(0x2c0);case _0x4fc8bc['AWAITING']:case _0x4fc8bc[_0x4a0e30(0x42a)]:return _0x4a0e30(0x2a3);case _0x4fc8bc[_0x4a0e30(0x2a2)]:case _0x4fc8bc['PENDING']:return _0x4a0e30(0x276);}}function Ci(_0xd94fed){const _0x5b09f0=_0x7f8acc,{status$:_0xb34905}=_0xd94fed,_0x467319=_0x5151b7(_0xb34905,_0x4fc8bc[_0x5b09f0(0x28b)]),_0x656422=_0x160f2f(_0x21bb66),_0xf7da94=_0x160f2f(_0x4e2359),_0x346e25=_0x467319!==_0x4fc8bc[_0x5b09f0(0x287)],_0x4b4f93=_0x656422['t'](Ti(_0x467319)),_0xf0a6da=_0x346e25?_0x34a615(wt,{}):_0x34a615(Pt,{}),_0x29ac34=_0x42aa6b(()=>{const _0x22d0e3=_0x5b09f0;_0x346e25||_0xf7da94[_0x22d0e3(0x356)]();},[_0x346e25,_0xf7da94]);function _0x8d2178(){const _0x57138a=_0x5b09f0;return _0x38be2f(_0x57138a(0x2a0),{'className':'univer-flex\x20univer-items-center','onClick':_0x29ac34,'children':[_0x34a615(_0x57138a(0x2a0),{'className':_0x1eb27e('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x346e25,'univer-text-red-500':!_0x346e25}),'children':_0xf0a6da}),_0x34a615(_0x57138a(0x2a0),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x4b4f93})]});}return _0x346e25?_0x8d2178():_0x34a615(_0x3df75b,{'title':_0x656422['t'](_0x5b09f0(0x30b)),'children':_0x8d2178()});}var Ri=Object[_0x7f8acc(0x404)],Di=(_0x2d7b8b,_0x251019,_0x2da4b6,_0x2fdb3a)=>{for(var _0x4e45ef=_0x2fdb3a>0x1?void 0x0:_0x2fdb3a?Ri(_0x251019,_0x2da4b6):_0x251019,_0x3a11a1=_0x2d7b8b['length']-0x1,_0x5a1de0;_0x3a11a1>=0x0;_0x3a11a1--)(_0x5a1de0=_0x2d7b8b[_0x3a11a1])&&(_0x4e45ef=_0x5a1de0(_0x4e45ef)||_0x4e45ef);return _0x4e45ef;},se=(_0x542b04,_0xbed19f)=>(_0xbcd6c2,_0x379529)=>_0xbed19f(_0xbcd6c2,_0x379529,_0x542b04);let ae=class extends _0x561bf0{constructor(_0x54bc33,_0x102fa0,_0x1f439f,_0x44e7b5){const _0x39fd8d=_0x7f8acc;super(),_(this,'_status$',new _0x2bbfbf(_0x4fc8bc[_0x39fd8d(0x28b)])),(this[_0x39fd8d(0x3ae)]=_0x54bc33,this['_injector']=_0x102fa0,this[_0x39fd8d(0x398)]=_0x1f439f,this[_0x39fd8d(0x26b)]=_0x44e7b5,this[_0x39fd8d(0x1f2)](),this['_initStatusListener']());}[_0x7f8acc(0x338)](){const _0xbadaeb=_0x7f8acc;this[_0xbadaeb(0x2f4)](this['_univerInstanceService'][_0xbadaeb(0x263)][_0xbadaeb(0x1f9)](_0x3c14e4(()=>{const _0x3305d3=_0xbadaeb,_0x4696d4=this[_0x3305d3(0x3ae)][_0x3305d3(0x362)]();return _0x4696d4?this['_collaborationController']['getCollabEntity$'](_0x4696d4[_0x3305d3(0x215)]()):_0x11f445(null);}),_0x3c14e4(_0x45256c=>_0x45256c?_0x45256c[_0xbadaeb(0x408)]:_0x11f445(_0x4fc8bc[_0xbadaeb(0x28b)])))[_0xbadaeb(0x409)](_0x513396=>{const _0x13a8d9=_0xbadaeb;this[_0x13a8d9(0x208)][_0x13a8d9(0x437)](_0x513396);}));}['_initStatusComponent'](){const _0x316bfc=_0x7f8acc;this[_0x316bfc(0x2f4)](this[_0x316bfc(0x26b)][_0x316bfc(0x316)](_0x3a2c0b[_0x316bfc(0x2b6)],()=>_0x5da3de(Ni({'status$':this['_status$']['asObservable']()}),this[_0x316bfc(0x43b)])));}};ae=Di([se(0x0,_0x319eb9),se(0x1,_0xe86757(_0x24194e)),se(0x2,_0xe86757(_0x266ed1)),se(0x3,_0x417976)],ae);function Ni(_0x4e4e24){const {status$:_0x2755f8}=_0x4e4e24;return function(){return _0x34a615(Ci,{'status$':_0x2755f8});};}const yt=_0x37dc0b(_0x7f8acc(0x2de));var bi=Object['getOwnPropertyDescriptor'],Li=(_0x5d5be1,_0x26ac0e,_0x318ca2,_0x318920)=>{for(var _0xab966f=_0x318920>0x1?void 0x0:_0x318920?bi(_0x26ac0e,_0x318ca2):_0x26ac0e,_0x53d551=_0x5d5be1['length']-0x1,_0x1af037;_0x53d551>=0x0;_0x53d551--)(_0x1af037=_0x5d5be1[_0x53d551])&&(_0xab966f=_0x1af037(_0xab966f)||_0xab966f);return _0xab966f;},K=(_0x427e53,_0x24255e)=>(_0x395dd0,_0x415f47)=>_0x24255e(_0x395dd0,_0x415f47,_0x427e53);let ce=class extends _0x24b4d8{constructor(_0x1f0b00,_0x590ebb,_0x590fe6,_0x21d251,_0xdd2bd1){const _0x9b44ac=_0x7f8acc;super(),this[_0x9b44ac(0x31c)]=_0x1f0b00,this[_0x9b44ac(0x3b3)]=_0x590ebb,this[_0x9b44ac(0x1fa)]=_0x590fe6,this[_0x9b44ac(0x28e)]=_0x21d251,_0xdd2bd1?_0xdd2bd1==null||_0xdd2bd1[_0x9b44ac(0x36e)]()['then'](()=>this[_0x9b44ac(0x225)]()):(this['_logService'][_0x9b44ac(0x21c)](_0x9b44ac(0x33a),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x9b44ac(0x225)]());}async['_init'](){const _0x1000d8=_0x7f8acc,_0x44b4fa=this[_0x1000d8(0x31c)][_0x1000d8(0x24b)]('unit'),_0x4c8752=this[_0x1000d8(0x31c)][_0x1000d8(0x24b)](_0x1000d8(0x42e)),_0x28c924=this['_urlService']['getParam'](_0x1000d8(0x386));if(!_0x44b4fa||!_0x4c8752){this[_0x1000d8(0x3b3)]['debug'](_0x1000d8(0x33a),_0x1000d8(0x3ea));return;}const _0x427a66=await this['_dataLoaderService']['loadUnit'](_0x44b4fa,Number(_0x4c8752),_0x28c924);_0x427a66&&_0x427a66 instanceof _0xcd4786&&this[_0x1000d8(0x3a2)](_0x427a66);}async[_0x7f8acc(0x3a2)](_0x56bfea){const _0x3bc56d=_0x7f8acc;await this['_updateSubUnitFromURLParams'](_0x56bfea),_0x56bfea[_0x3bc56d(0x3a7)][_0x3bc56d(0x1f9)](_0x761d71(this[_0x3bc56d(0x29e)]))[_0x3bc56d(0x409)](_0x123983=>{const _0x1a0933=_0x3bc56d;_0x123983&&this[_0x1a0933(0x285)](_0x123983);}),this['_urlService'][_0x3bc56d(0x26c)][_0x3bc56d(0x1f9)](_0x761d71(this[_0x3bc56d(0x29e)]))[_0x3bc56d(0x409)](()=>this[_0x3bc56d(0x2f6)](_0x56bfea));}[_0x7f8acc(0x285)](_0x134c2a,_0x24a2c6=!0x1){const _0x2265df=_0x7f8acc,_0x5eeefc=this[_0x2265df(0x31c)]['getParam'](_0x2265df(0x386));_0x134c2a[_0x2265df(0x200)]()!==_0x5eeefc&&this[_0x2265df(0x31c)][_0x2265df(0x384)](_0x2265df(0x386),_0x134c2a['getSheetId'](),_0x24a2c6);}async[_0x7f8acc(0x2f6)](_0x761a65){const _0x529873=_0x7f8acc;var _0xbf543b;const _0x1bf15a=this[_0x529873(0x31c)][_0x529873(0x24b)](_0x529873(0x386));if(!_0x1bf15a||!_0x761a65[_0x529873(0x33c)](_0x1bf15a)){const _0x5cc967=_0x761a65['getUnhiddenWorksheets']()[0x0],_0x1e2bfc=_0x761a65[_0x529873(0x33c)](_0x5cc967);if(!_0x1e2bfc)return;this[_0x529873(0x285)](_0x1e2bfc,!0x0),await this[_0x529873(0x1fa)][_0x529873(0x353)](_0x3d77ad['id'],{'unitId':_0x761a65[_0x529873(0x215)](),'subUnitId':_0x5cc967});return;}((_0xbf543b=_0x761a65[_0x529873(0x2c3)]())==null?void 0x0:_0xbf543b[_0x529873(0x200)]())!==_0x1bf15a&&await this[_0x529873(0x1fa)][_0x529873(0x353)](_0x3d77ad['id'],{'unitId':_0x761a65[_0x529873(0x215)](),'subUnitId':_0x1bf15a});}};ce=Li([K(0x0,yt),K(0x1,_0x2065a5),K(0x2,_0x2049b3),K(0x3,_0xe86757(_0x17e103)),K(0x4,_0x4f0c3f(_0x16f1cd))],ce);var Ui=Object[_0x7f8acc(0x404)],Mi=(_0x44d360,_0x30c91b,_0x407f63,_0x1dd832)=>{for(var _0x1ff52a=_0x1dd832>0x1?void 0x0:_0x1dd832?Ui(_0x30c91b,_0x407f63):_0x30c91b,_0x2b3824=_0x44d360['length']-0x1,_0x33a0b9;_0x2b3824>=0x0;_0x2b3824--)(_0x33a0b9=_0x44d360[_0x2b3824])&&(_0x1ff52a=_0x33a0b9(_0x1ff52a)||_0x1ff52a);return _0x1ff52a;},rt=(_0x55292d,_0xc9253)=>(_0x181af0,_0x2630af)=>_0xc9253(_0x181af0,_0x2630af,_0x55292d);let $e=class extends _0x24b4d8{constructor(_0x45239d,_0x5c4806){const _0xaa6b28=_0x7f8acc;super(),this[_0xaa6b28(0x3a8)]=_0x45239d,this[_0xaa6b28(0x21e)]=_0x5c4806,this['_init']();}[_0x7f8acc(0x225)](){const _0x3640ce=_0x7f8acc,_0x46d72d=this;this[_0x3640ce(0x2f4)](this[_0x3640ce(0x3a8)][_0x3640ce(0x3ac)]({'onBeforePasteImage':async _0x1b4d4c=>{const _0x42d3a7=_0x3640ce,_0x4f5d51=await _0x46d72d[_0x42d3a7(0x21e)][_0x42d3a7(0x299)](_0x1b4d4c);return _0x4f5d51?{'source':_0x4f5d51[_0x42d3a7(0x259)],'imageSourceType':_0x4f5d51[_0x42d3a7(0x232)]}:null;}}));}};$e=Mi([rt(0x0,_0x4aea8b),rt(0x1,_0x40b057)],$e);const ot=['purple.300',_0x7f8acc(0x2ef),_0x7f8acc(0x3eb),_0x7f8acc(0x39f),_0x7f8acc(0x279),_0x7f8acc(0x1e8)];class Ke extends _0x561bf0{constructor(){const _0x4f104e=_0x7f8acc;super(...arguments),_(this,_0x4f104e(0x406),new Map()),_(this,_0x4f104e(0x306),0x0);}[_0x7f8acc(0x20f)](_0x2662c1){const _0x477e0e=_0x7f8acc;if(this[_0x477e0e(0x406)][_0x477e0e(0x28d)](_0x2662c1))return this[_0x477e0e(0x406)][_0x477e0e(0x2be)](_0x2662c1);const _0xa07568=ot[this['_colorIndex']];return this[_0x477e0e(0x306)]=(this[_0x477e0e(0x306)]+0x1)%ot[_0x477e0e(0x277)],this['_assignedColors'][_0x477e0e(0x39d)](_0x2662c1,_0xa07568),_0xa07568;}}function $t(_0x3e8c63){const _0x56205a=_0x7f8acc;let _0x123e68='';for(const _0x5f29bb of _0x3e8c63){const {startOffset:_0x21bb42,endOffset:_0x4a6128,isActive:_0x3fcfe2,rangeType:_0x155f56,segmentId:_0x5c0c1d,segmentPage:_0x5a8752}=_0x5f29bb;_0x123e68[_0x56205a(0x277)]&&(_0x123e68+=','),_0x123e68+=_0x21bb42+':'+_0x4a6128+':'+(_0x3fcfe2?'1':'0')+':'+_0x155f56+':'+_0x5c0c1d+':'+_0x5a8752;}return _0x123e68;}function Ai(_0x49bc08){const _0x21ea6a=_0x7f8acc,_0x3ab306=_0x49bc08[_0x21ea6a(0x35a)](','),_0x25e156=[];for(const _0x1c3b7e of _0x3ab306){const [_0x4c7d3d,_0x33b3e0,_0x215690,_0x3d1f56,_0x467335,_0x185918]=_0x1c3b7e[_0x21ea6a(0x35a)](':');_0x25e156[_0x21ea6a(0x211)]({'startOffset':Number(_0x4c7d3d),'endOffset':Number(_0x33b3e0),'collapsed':_0x4c7d3d===_0x33b3e0,'isActive':_0x215690==='1','rangeType':_0x3d1f56===_0x3e8b8f[_0x21ea6a(0x341)]?_0x3e8b8f['TEXT']:_0x3e8b8f[_0x21ea6a(0x28a)],'segmentId':typeof _0x467335=='string'?String(_0x467335):'','segmentPage':Number(_0x185918!=null?_0x185918:-0x1)});}return _0x25e156[_0x21ea6a(0x24d)](_0x4e3f48=>_0x4e3f48[_0x21ea6a(0x318)])||(_0x25e156[0x0][_0x21ea6a(0x318)]=!0x0),_0x25e156;}class ze extends _0x24b4d8{constructor(){const _0x30420e=_0x7f8acc;super(...arguments),_(this,'_collabCursorState$',new _0x2bbfbf(null)),_(this,_0x30420e(0x289),this[_0x30420e(0x293)]['asObservable']());}[_0x7f8acc(0x3ab)](_0x2b712d){const {unitID:_0x1869fc,memberID:_0xc25808,textRanges:_0x13d62d}=_0x2b712d,_0x36b255=$t(_0x13d62d);if(_0x36b255==='')return;const _0xa962d8={'unitID':_0x1869fc,'memberID':_0xc25808,'selection':_0x36b255};this['_collabCursorState$']['next'](_0xa962d8);}}var Pi=Object[_0x7f8acc(0x404)],wi=(_0x142d15,_0x57b2d7,_0x2df999,_0x884e58)=>{for(var _0x330ba6=_0x884e58>0x1?void 0x0:_0x884e58?Pi(_0x57b2d7,_0x2df999):_0x57b2d7,_0x34b5c8=_0x142d15['length']-0x1,_0x4518a8;_0x34b5c8>=0x0;_0x34b5c8--)(_0x4518a8=_0x142d15[_0x34b5c8])&&(_0x330ba6=_0x4518a8(_0x330ba6)||_0x330ba6);return _0x330ba6;},A=(_0x1f7eda,_0x5af8f3)=>(_0x29ed4e,_0x105245)=>_0x5af8f3(_0x29ed4e,_0x105245,_0x1f7eda);const yi=0x12c,$i=0x64;let xe=class extends _0x24b4d8{constructor(_0x629376,_0x38dd39,_0x404802,_0xc92a8d,_0x54849d,_0x458972,_0x14a216,_0x201a29,_0x105cf8){const _0x2d16a9=_0x7f8acc;super(),_(this,_0x2d16a9(0x2c8),!0x1),_(this,'_init',!0x1),_(this,_0x2d16a9(0x342),new _0x2bbfbf(new Map())),_(this,_0x2d16a9(0x271),this[_0x2d16a9(0x342)][_0x2d16a9(0x416)]()),_(this,_0x2d16a9(0x26d),new _0x2bbfbf([])),_(this,_0x2d16a9(0x2cb),this[_0x2d16a9(0x26d)]['pipe'](_0x4a6a5d(yi))),_(this,_0x2d16a9(0x25e),_0x201617(_0xa8c909=>{const _0x3d645d=_0x2d16a9,_0x46d22b={'eventID':_0x2a2223[_0x3d645d(0x37b)],'data':{'unitID':this[_0x3d645d(0x42d)],'memberID':this['_session'][_0x3d645d(0x2df)](),'selection':$t(_0xa8c909)}};this[_0x3d645d(0x2ec)][_0x3d645d(0x2ba)](_0x46d22b,this[_0x3d645d(0x42d)]);},$i)),(this['unitID']=_0x629376,this[_0x2d16a9(0x2ec)]=_0x38dd39,this[_0x2d16a9(0x43b)]=_0x404802,this[_0x2d16a9(0x2e5)]=_0xc92a8d,this[_0x2d16a9(0x3f3)]=_0x54849d,this[_0x2d16a9(0x392)]=_0x458972,this['_transformService']=_0x14a216,this['_univerInstanceService']=_0x201a29,this['_commandService']=_0x105cf8);}get['cursorInfo'](){const _0xc25b11=_0x7f8acc;return this[_0xc25b11(0x342)][_0xc25b11(0x3e1)]();}get[_0x7f8acc(0x40c)](){const _0x533609=_0x7f8acc;return this[_0x533609(0x26d)][_0x533609(0x3e1)]();}[_0x7f8acc(0x24f)](){const _0x9f29ba=_0x7f8acc;super['dispose'](),this['_cursorInfo$'][_0x9f29ba(0x437)](new Map()),this['_cursorInfo$'][_0x9f29ba(0x3e6)](),this['_roomMembers$']['next']([]),this[_0x9f29ba(0x26d)]['complete']();}['init'](){const _0x2e0a6a=_0x7f8acc;this[_0x2e0a6a(0x225)]||(this[_0x2e0a6a(0x225)]=!0x0,this['_session'][_0x2e0a6a(0x2f0)]['pipe'](_0x761d71(this[_0x2e0a6a(0x29e)]))['subscribe'](_0x55d9bf=>{const _0x4fb4f7=_0x2e0a6a;_0x55d9bf===_0x44c92d[_0x4fb4f7(0x296)]?this[_0x4fb4f7(0x3bc)]():this['_toggleOffline']();}),this[_0x2e0a6a(0x2ec)][_0x2e0a6a(0x2f1)]['pipe'](_0x761d71(this[_0x2e0a6a(0x29e)]))['subscribe'](_0x247f11=>{const _0x27715b=_0x2e0a6a,_0x155eb8=_0x247f11['eventID'];_0x155eb8===_0x2a2223[_0x27715b(0x37b)]&&this[_0x27715b(0x22c)](_0x247f11),_0x155eb8===_0x2a2223[_0x27715b(0x25b)]&&this[_0x27715b(0x43c)](_0x247f11);}),this[_0x2e0a6a(0x2f4)](this['_commandService']['onCommandExecuted'](_0x448446=>{const _0x987a87=_0x2e0a6a,_0x246903=_0x448446[_0x987a87(0x302)];_0x246903!=null&&this[_0x987a87(0x2c8)]&&_0x448446['id']===_0xc889e4['id']&&_0x246903[_0x987a87(0x213)]===this[_0x987a87(0x42d)]&&_0x246903['isEditing']===!0x1&&_0x246903[_0x987a87(0x229)]['length']>0x0&&this['_updateLocalCursor'](_0x246903[_0x987a87(0x229)]);})),this['_syncEditingCollabCursorService'][_0x2e0a6a(0x289)][_0x2e0a6a(0x1f9)](_0x761d71(this['dispose$']))[_0x2e0a6a(0x409)](_0x3f3fac=>{const _0x4ddf63=_0x2e0a6a;if((_0x3f3fac==null?void 0x0:_0x3f3fac[_0x4ddf63(0x42d)])!==this[_0x4ddf63(0x42d)])return;const _0x289c4a={'eventID':_0x2a2223[_0x4ddf63(0x37b)],'data':_0x3f3fac};this['_onCursorUpdate'](_0x289c4a);}),this[_0x2e0a6a(0x2f4)](this[_0x2e0a6a(0x1fa)][_0x2e0a6a(0x3cd)](_0x2c72c8=>{const _0x512890=_0x2e0a6a;if(_0x2c72c8[_0x512890(0x302)]==null)return;const _0x580d59=_0x2c72c8[_0x512890(0x302)];if(_0x2c72c8['id']!==_0x26ac54['id']||_0x580d59[_0x512890(0x213)]!==this['unitID'])return;const _0x4f7cc8={'id':_0x512890(0x1f4),'params':_0x580d59},_0x44b8b5=this['cursorInfo'];for(const [_0x4daa28,_0x1f4408]of _0x44b8b5){const _0x10447a={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x1f4408[_0x512890(0x229)]}},_0x50fb33=this[_0x512890(0x3d4)]['transformMutation'](_0x4f7cc8,_0x10447a,!0x1);if(_0x4891f8(_0x50fb33))throw _0x50fb33[_0x512890(0x3e9)];_0x44b8b5[_0x512890(0x39d)](_0x4daa28,{..._0x1f4408,'ranges':_0x50fb33['m2Prime'][_0x512890(0x302)]['textRanges']});}queueMicrotask(()=>{const _0x45325f=_0x512890;this[_0x45325f(0x342)][_0x45325f(0x437)](_0x44b8b5);});})));}[_0x7f8acc(0x22c)](_0x30b4a8){const _0x225091=_0x7f8acc;var _0x34da52,_0x331c3f;const {memberID:_0x4b5441,selection:_0x5510a8}=_0x30b4a8['data'],_0x39bb75=Ai(_0x5510a8),_0x32a3a2=(_0x331c3f=(_0x34da52=this[_0x225091(0x3f3)][_0x225091(0x345)](this[_0x225091(0x42d)],_0x4b5441))==null?void 0x0:_0x34da52[_0x225091(0x3ef)])!=null?_0x331c3f:_0x225091(0x368),_0x5ebf6c={'color':this['_colorAssignService'][_0x225091(0x20f)](_0x4b5441),'name':_0x32a3a2,'ranges':_0x39bb75},_0x173a83=this['cursorInfo'];_0x173a83[_0x225091(0x39d)](_0x4b5441,_0x5ebf6c),this['_cursorInfo$'][_0x225091(0x437)](_0x173a83);}[_0x7f8acc(0x43c)](_0x563c6f){const _0x4155b7=_0x7f8acc,{memberID:_0x19fe48}=_0x563c6f['data'],_0xb101e9=this[_0x4155b7(0x247)];_0xb101e9[_0x4155b7(0x308)](_0x19fe48),this['_cursorInfo$'][_0x4155b7(0x437)](_0xb101e9);}[_0x7f8acc(0x3bc)](){const _0x21242f=_0x7f8acc;var _0x250539;if(this['_online']=!0x0,((_0x250539=this['_univerInstanceService'][_0x21242f(0x362)]())==null?void 0x0:_0x250539[_0x21242f(0x215)]())!==this[_0x21242f(0x42d)])return;const _0x4da96c=this[_0x21242f(0x43b)][_0x21242f(0x2be)](_0x13e01a)[_0x21242f(0x325)]();Array[_0x21242f(0x352)](_0x4da96c)&&_0x4da96c['length']>0x0&&this['_updateLocalCursor'](_0x4da96c);}[_0x7f8acc(0x3f2)](){const _0x30751f=_0x7f8acc;this[_0x30751f(0x2c8)]=!0x1;}};xe=wi([A(0x2,_0xe86757(_0x24194e)),A(0x3,_0xe86757(Ke)),A(0x4,_0xe86757(_0x5e3fc2)),A(0x5,_0xe86757(ze)),A(0x6,_0xa0bd0),A(0x7,_0x319eb9),A(0x8,_0x2049b3)],xe);var xi=Object[_0x7f8acc(0x404)],Bi=(_0x2187be,_0x72c444,_0xeb6864,_0x380039)=>{const _0x3a8ffa=_0x7f8acc;for(var _0x3021dc=_0x380039>0x1?void 0x0:_0x380039?xi(_0x72c444,_0xeb6864):_0x72c444,_0x38b501=_0x2187be[_0x3a8ffa(0x277)]-0x1,_0x37169b;_0x38b501>=0x0;_0x38b501--)(_0x37169b=_0x2187be[_0x38b501])&&(_0x3021dc=_0x37169b(_0x3021dc)||_0x3021dc);return _0x3021dc;},B=(_0x52a75a,_0x22c965)=>(_0x55781d,_0x3ea978)=>_0x22c965(_0x55781d,_0x3ea978,_0x52a75a);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x21e131=[],_0x3607eb=!0x1;return _0xa3ecb3=>{_0x21e131['push'](_0xa3ecb3),_0x3607eb||(_0x3607eb=!0x0,setTimeout(()=>{const _0x237ceb=_0x5d9e;_0x21e131[_0x237ceb(0x390)](_0x471b7e=>_0x471b7e()),_0x21e131=[],_0x3607eb=!0x1;}));};};let Be=class extends _0x24b4d8{constructor(_0x538e6c,_0xa84647,_0x25205d,_0x2f9d95,_0x1d3d4d,_0x353590,_0x2dbc68,_0x1c4e28){const _0x58f37a=_0x7f8acc;super(),_(this,_0x58f37a(0x2c8),!0x1),_(this,_0x58f37a(0x225),!0x1),_(this,'_cursorInfo$',new _0x2bbfbf(new Map())),_(this,_0x58f37a(0x271),this[_0x58f37a(0x342)][_0x58f37a(0x416)]()),_(this,_0x58f37a(0x26d),new _0x2bbfbf([])),_(this,_0x58f37a(0x2cb),this[_0x58f37a(0x26d)][_0x58f37a(0x1f9)](_0x4a6a5d(Fi))),_(this,_0x58f37a(0x25e),_0x201617((_0x1c3603,_0xbaf9c9)=>{const _0x7bcfc0=_0x58f37a,_0x50ac63={'eventID':_0x2a2223[_0x7bcfc0(0x37b)],'data':{'unitID':this[_0x7bcfc0(0x42d)],'memberID':this[_0x7bcfc0(0x2ec)][_0x7bcfc0(0x2df)](),'selection':_0x3c469a(_0x1c3603,_0xbaf9c9[_0x7bcfc0(0x33d)])}};this['_session']['send'](_0x50ac63,this['unitID']);},ki)),(this[_0x58f37a(0x42d)]=_0x538e6c,this[_0x58f37a(0x2ec)]=_0xa84647,this[_0x58f37a(0x43b)]=_0x25205d,this[_0x58f37a(0x2e5)]=_0x2f9d95,this[_0x58f37a(0x3f3)]=_0x1d3d4d,this[_0x58f37a(0x3ae)]=_0x353590,this['_commandService']=_0x2dbc68,this[_0x58f37a(0x32b)]=_0x1c4e28);}get[_0x7f8acc(0x247)](){const _0xbf215d=_0x7f8acc;return this['_cursorInfo$'][_0xbf215d(0x3e1)]();}get[_0x7f8acc(0x40c)](){const _0x4cd52e=_0x7f8acc;return this[_0x4cd52e(0x26d)][_0x4cd52e(0x3e1)]();}[_0x7f8acc(0x24f)](){const _0x3d8a3b=_0x7f8acc;super['dispose'](),this['_cursorInfo$'][_0x3d8a3b(0x437)](new Map()),this[_0x3d8a3b(0x342)]['complete'](),this[_0x3d8a3b(0x26d)]['next']([]),this['_roomMembers$'][_0x3d8a3b(0x3e6)]();}[_0x7f8acc(0x3df)](){const _0x4d3a53=_0x7f8acc;this[_0x4d3a53(0x225)]||(this[_0x4d3a53(0x225)]=!0x0,this[_0x4d3a53(0x2ec)]['sessionStatus$'][_0x4d3a53(0x1f9)](_0x761d71(this['dispose$']))[_0x4d3a53(0x409)](_0x26a7e1=>{const _0x11913c=_0x4d3a53;_0x26a7e1===_0x44c92d['ONLINE']?this[_0x11913c(0x3bc)]():this[_0x11913c(0x3f2)]();}),this[_0x4d3a53(0x2ec)]['event$'][_0x4d3a53(0x1f9)](_0x761d71(this['dispose$']))[_0x4d3a53(0x409)](_0x355b73=>{const _0x5ddf0b=_0x4d3a53,_0x244fbc=_0x355b73[_0x5ddf0b(0x224)];_0x244fbc===_0x2a2223[_0x5ddf0b(0x37b)]&&this[_0x5ddf0b(0x22c)](_0x355b73),_0x244fbc===_0x2a2223[_0x5ddf0b(0x25b)]&&this[_0x5ddf0b(0x43c)](_0x355b73);}),this[_0x4d3a53(0x34f)](),this['disposeWithMe'](this['_commandService'][_0x4d3a53(0x3cd)](_0x3c2a5d=>{const _0x3dea10=_0x4d3a53;if(this[_0x3dea10(0x2c8)]&&_0x3c2a5d['id']===_0x58ff5b['id']&&_0x3c2a5d[_0x3dea10(0x302)][_0x3dea10(0x213)]===this['unitID']){const _0x3202cf=_0x3c2a5d[_0x3dea10(0x302)];this['_updateLocalCursor'](_0x3202cf[_0x3dea10(0x380)],_0x3202cf[_0x3dea10(0x2b4)][0x0]);}})));}[_0x7f8acc(0x22c)](_0x552b73){const _0x213bcf=_0x7f8acc;var _0x4832bc,_0x406735;const {memberID:_0x5c57cd,selection:_0x47acc8}=_0x552b73[_0x213bcf(0x2cc)],{sheetName:_0x2367b1,range:_0xa20dda}=_0x351f53(_0x47acc8),_0x28d60c={'name':(_0x406735=(_0x4832bc=this['_memberService']['getMember'](this[_0x213bcf(0x42d)],_0x5c57cd))==null?void 0x0:_0x4832bc[_0x213bcf(0x3ef)])!=null?_0x406735:_0x213bcf(0x368),'range':this[_0x213bcf(0x412)](_0x2367b1,_0xa20dda),'sheetID':_0x2367b1,'color':this[_0x213bcf(0x2e5)][_0x213bcf(0x20f)](_0x5c57cd),'selection':_0x47acc8},_0x5b442a=this[_0x213bcf(0x247)];_0x5b442a['set'](_0x5c57cd,_0x28d60c),this[_0x213bcf(0x342)][_0x213bcf(0x437)](_0x5b442a);}[_0x7f8acc(0x43c)](_0x18e084){const _0x50c111=_0x7f8acc,{memberID:_0x4e8f5b}=_0x18e084['data'],_0x12df3c=this[_0x50c111(0x247)];_0x12df3c[_0x50c111(0x308)](_0x4e8f5b),this[_0x50c111(0x342)][_0x50c111(0x437)](_0x12df3c);}[_0x7f8acc(0x412)](_0x51f0b0,_0x2792ba){const _0x3f00d7=_0x7f8acc;var _0x3dc77d,_0x44c5e1;const _0x32d181=(_0x44c5e1=(_0x3dc77d=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x3f00d7(0x42d)]))==null?void 0x0:_0x3dc77d[_0x3f00d7(0x33c)](_0x51f0b0))==null?void 0x0:_0x44c5e1['getMergeData']();return(_0x32d181==null?void 0x0:_0x32d181[_0x3f00d7(0x3e5)](_0xcc64b8=>_0x48060d['contains'](_0xcc64b8,_0x2792ba)))||_0x2792ba;}['_onRefRangeChange'](){const _0x1f89aa=_0x7f8acc,_0x2aa042=new _0x37aa85(),_0x5c24ff=Hi(),_0x42303c=()=>{const _0x11d62f=_0x5d9e;_0x2aa042[_0x11d62f(0x24f)]();const _0x1a3dd0=(_0x580d0f,_0x176b37,_0x23efa1,_0x2172bf)=>{const _0x241b73=_0x11d62f;let _0x5acde6=[];switch(_0x580d0f['id']){case _0x25fc82[_0x241b73(0x2ed)]:{_0x5acde6=_0x34180b(_0x580d0f,_0x2172bf);break;}case _0x25fc82[_0x241b73(0x221)]:{_0x5acde6=_0x15dfeb(_0x580d0f,_0x2172bf);break;}case _0x25fc82[_0x241b73(0x43e)]:{_0x5acde6=_0x10cb13(_0x580d0f,_0x2172bf);break;}case _0x25fc82[_0x241b73(0x254)]:{_0x5acde6=_0x574817(_0x580d0f,_0x2172bf);break;}case _0x25fc82['InsertRangeMoveRightCommandId']:{_0x5acde6=_0x85b5b(_0x580d0f,_0x2172bf);break;}case _0x25fc82[_0x241b73(0x389)]:{_0x5acde6=_0x3e4256(_0x580d0f,_0x2172bf);break;}case _0x25fc82[_0x241b73(0x2a1)]:{_0x5acde6=_0xd4b4c0(_0x580d0f,_0x2172bf);break;}case _0x25fc82[_0x241b73(0x2e4)]:{_0x5acde6=_0x21a94b(_0x580d0f,_0x2172bf);break;}case _0x25fc82[_0x241b73(0x376)]:{_0x5acde6=_0x4c992d(_0x580d0f,_0x2172bf);break;}}const _0x140497=_0x228458(_0x5acde6,_0x2172bf),_0x5c0d45=this[_0x241b73(0x247)]['get'](_0x176b37);if(_0x5c0d45&&_0x140497){const _0x31b761={..._0x5c0d45,'range':_0x140497};this['cursorInfo'][_0x241b73(0x39d)](_0x176b37,_0x31b761),_0x5c24ff(()=>{const _0x89dae6=_0x241b73,_0x5841d0=this[_0x89dae6(0x32b)]['registerRefRange'](_0x140497,_0x3e07fa=>(_0x5841d0[_0x89dae6(0x24f)](),_0x1a3dd0(_0x3e07fa,_0x176b37,_0x23efa1,_0x140497)));_0x2aa042[_0x89dae6(0x207)](_0x5841d0);});}return{'redos':[],'undos':[]};};this[_0x11d62f(0x247)]['forEach']((_0x4b16d9,_0x3cf1b6)=>{const _0xca6e26=_0x11d62f,{range:_0x4e367c,sheetID:_0x141db2}=_0x4b16d9,_0x220e3f=this[_0xca6e26(0x32b)][_0xca6e26(0x354)](_0x4e367c,_0x225b9b=>(_0x220e3f[_0xca6e26(0x24f)](),_0x1a3dd0(_0x225b9b,_0x3cf1b6,_0x141db2,_0x4e367c)));_0x2aa042['add'](_0x220e3f);});};this['disposeWithMe'](_0x721eb2(this[_0x1f89aa(0x342)]['subscribe'](()=>{_0x42303c();})));}[_0x7f8acc(0x3bc)](){const _0x103c76=_0x7f8acc;var _0x3599c7,_0x35c1b9;if(this['_online']=!0x0,((_0x3599c7=this[_0x103c76(0x3ae)]['getFocusedUnit']())==null?void 0x0:_0x3599c7[_0x103c76(0x215)]())!==this['unitID'])return;const _0x356fc5=(_0x35c1b9=this[_0x103c76(0x43b)]['get'](_0x3c9fec)['getCurrentSelections']())==null?void 0x0:_0x35c1b9[0x0],_0x22c022=this['_univerInstanceService'][_0x103c76(0x3b9)](_0x43c887[_0x103c76(0x273)])[_0x103c76(0x2c3)]();_0x356fc5&&_0x22c022&&this['_updateLocalCursor'](_0x22c022['getSheetId'](),_0x356fc5);}['_toggleOffline'](){const _0x28c63c=_0x7f8acc;this[_0x28c63c(0x2c8)]=!0x1;}};Be=Bi([B(0x2,_0xe86757(_0x24194e)),B(0x3,_0xe86757(Ke)),B(0x4,_0xe86757(_0x5e3fc2)),B(0x5,_0x319eb9),B(0x6,_0x2049b3),B(0x7,_0xe86757(_0x1e4a15))],Be);var Yi=Object[_0x7f8acc(0x404)],Wi=(_0x4b40f8,_0x530afb,_0x272047,_0x3a4b1c)=>{const _0x1d2721=_0x7f8acc;for(var _0x27ba36=_0x3a4b1c>0x1?void 0x0:_0x3a4b1c?Yi(_0x530afb,_0x272047):_0x530afb,_0x52e3aa=_0x4b40f8[_0x1d2721(0x277)]-0x1,_0xdfa6a2;_0x52e3aa>=0x0;_0x52e3aa--)(_0xdfa6a2=_0x4b40f8[_0x52e3aa])&&(_0x27ba36=_0xdfa6a2(_0x27ba36)||_0x27ba36);return _0x27ba36;},Ce=(_0x54520d,_0x25aa7f)=>(_0x28df69,_0x44fd48)=>_0x25aa7f(_0x28df69,_0x44fd48,_0x54520d);let H=class extends _0x24b4d8{constructor(_0x27fe6f,_0x271844,_0x38b1dd){const _0x589b5c=_0x7f8acc;super(),_(this,_0x589b5c(0x314),new Map()),_(this,_0x589b5c(0x295),new _0x2e9f6f()),(this['_univerInstanceService']=_0x27fe6f,this[_0x589b5c(0x43b)]=_0x271844,this[_0x589b5c(0x2b5)]=_0x38b1dd,this[_0x589b5c(0x225)]());}[_0x7f8acc(0x24f)](){const _0x81c36e=_0x7f8acc;super[_0x81c36e(0x24f)](),this[_0x81c36e(0x295)]['complete'](),this['_entities'][_0x81c36e(0x390)](_0x20508f=>_0x20508f['dispose']());}[_0x7f8acc(0x43d)](_0x5f34d2){const _0x4d9ecf=_0x7f8acc;return this[_0x4d9ecf(0x314)][_0x4d9ecf(0x28d)](_0x5f34d2)?this[_0x4d9ecf(0x314)][_0x4d9ecf(0x2be)](_0x5f34d2)[_0x4d9ecf(0x271)]:this[_0x4d9ecf(0x295)][_0x4d9ecf(0x1f9)](_0x75e715(_0xedb32d=>_0xedb32d[_0x4d9ecf(0x42d)]===_0x5f34d2),_0x3c14e4(_0x607771=>_0x607771[_0x4d9ecf(0x271)]));}[_0x7f8acc(0x225)](){const _0x5248f8=_0x7f8acc;this[_0x5248f8(0x3ae)]['getTypeOfUnitAdded$'](_0x43c887[_0x5248f8(0x273)])[_0x5248f8(0x1f9)](_0x761d71(this[_0x5248f8(0x29e)]))[_0x5248f8(0x409)](async _0x5394ed=>{const _0x140305=_0x5248f8,_0x5c660c=_0x5394ed[_0x140305(0x215)](),_0xcc703=await this[_0x140305(0x35f)](_0x5c660c);this[_0x140305(0x295)][_0x140305(0x437)](_0xcc703),this[_0x140305(0x314)][_0x140305(0x39d)](_0x5c660c,_0xcc703);}),this[_0x5248f8(0x3ae)][_0x5248f8(0x2d4)](_0x43c887[_0x5248f8(0x303)])[_0x5248f8(0x1f9)](_0x761d71(this[_0x5248f8(0x29e)]))[_0x5248f8(0x1f9)](_0x75e715(_0x2a9c5e=>!_0x2a9c5e[_0x5248f8(0x215)]()[_0x5248f8(0x210)]('__')))[_0x5248f8(0x409)](async _0x54745a=>{const _0x268e5e=_0x5248f8,_0x12c2c6=_0x54745a[_0x268e5e(0x215)](),_0x94ae92=await this[_0x268e5e(0x427)](_0x12c2c6);this['_entityInit$'][_0x268e5e(0x437)](_0x94ae92),this[_0x268e5e(0x314)][_0x268e5e(0x39d)](_0x12c2c6,_0x94ae92);}),_0x11afdc(this[_0x5248f8(0x3ae)]['getTypeOfUnitDisposed$'](_0x43c887[_0x5248f8(0x303)]),this[_0x5248f8(0x3ae)]['getTypeOfUnitDisposed$'](_0x43c887[_0x5248f8(0x273)]))['pipe'](_0x761d71(this[_0x5248f8(0x29e)]))[_0x5248f8(0x409)](_0x2da5ef=>{const _0x41e0cb=_0x5248f8,_0x463aec=_0x2da5ef['getUnitId'](),_0x2c893e=this[_0x41e0cb(0x314)][_0x41e0cb(0x2be)](_0x463aec);_0x2c893e&&(_0x2c893e['dispose'](),this[_0x41e0cb(0x314)][_0x41e0cb(0x308)](_0x463aec));});}async['_startSheetCollabCursor'](_0x513607){const _0x333043=_0x7f8acc,_0x5661b6=await this[_0x333043(0x2b5)][_0x333043(0x332)](_0x513607),_0x328277=this[_0x333043(0x43b)][_0x333043(0x238)](Be,_0x513607,_0x5661b6);return _0x328277['init'](),_0x328277;}async['_startDocCollabCursor'](_0x2d74ec){const _0x2037fc=_0x7f8acc,_0x942174=await this['_collabSessionService'][_0x2037fc(0x332)](_0x2d74ec),_0xa05ef4=this[_0x2037fc(0x43b)][_0x2037fc(0x238)](xe,_0x2d74ec,_0x942174);return _0xa05ef4['init'](),_0xa05ef4;}};H=Wi([Ce(0x0,_0x319eb9),Ce(0x1,_0xe86757(_0x24194e)),Ce(0x2,_0xe86757(_0x4e2359))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x43a5fa,_0x56cc96){const _0x16cc9a=_0x7f8acc;let {radius:_0x26bf63,width:_0xf82275,height:_0x570bb6}=_0x56cc96;_0x26bf63=_0x26bf63!=null?_0x26bf63:0x0,_0xf82275=_0xf82275!=null?_0xf82275:0x1e,_0x570bb6=_0x570bb6!=null?_0x570bb6:0x1e;let _0x5dd2f6=0x0,_0xdd2e7e=0x0,_0x5e0c00=0x0;_0x5dd2f6=_0xdd2e7e=_0x5e0c00=Math[_0x16cc9a(0x439)](_0x26bf63,_0xf82275/0x2,_0x570bb6/0x2),_0x43a5fa[_0x16cc9a(0x21f)](),_0x43a5fa['moveTo'](_0x5dd2f6,0x0),_0x43a5fa[_0x16cc9a(0x2c9)](_0xf82275-_0xdd2e7e,0x0),_0x43a5fa[_0x16cc9a(0x25f)](_0xf82275-_0xdd2e7e,_0xdd2e7e,_0xdd2e7e,Math['PI']*0x3/0x2,0x0,!0x1),_0x43a5fa[_0x16cc9a(0x2c9)](_0xf82275,_0x570bb6-_0x5e0c00),_0x43a5fa[_0x16cc9a(0x25f)](_0xf82275-_0x5e0c00,_0x570bb6-_0x5e0c00,_0x5e0c00,0x0,Math['PI']/0x2,!0x1),_0x43a5fa[_0x16cc9a(0x2c9)](0x0,_0x570bb6),_0x43a5fa['lineTo'](0x0,_0x5dd2f6),_0x43a5fa[_0x16cc9a(0x25f)](_0x5dd2f6,_0x5dd2f6,_0x5dd2f6,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x43a5fa[_0x16cc9a(0x38c)](),_0x56cc96[_0x16cc9a(0x3e0)]&&(_0x43a5fa[_0x16cc9a(0x3d3)](),_0x43a5fa['fillStyle']=_0x56cc96[_0x16cc9a(0x3e0)],_0x56cc96[_0x16cc9a(0x26f)]===_0x16cc9a(0x377)?_0x43a5fa[_0x16cc9a(0x3e0)](_0x16cc9a(0x377)):_0x43a5fa[_0x16cc9a(0x3e0)](),_0x43a5fa['restore']());}class ve extends _0x159947{constructor(_0x1abd52,_0x63d153){const _0x3c87fd=_0x7f8acc;super(_0x1abd52,_0x63d153),_(this,_0x3c87fd(0x297)),_(this,_0x3c87fd(0x37d)),(this[_0x3c87fd(0x297)]=_0x63d153==null?void 0x0:_0x63d153[_0x3c87fd(0x297)],this[_0x3c87fd(0x37d)]=_0x63d153==null?void 0x0:_0x63d153['text']);}static[_0x7f8acc(0x3a4)](_0x4489c4,_0x2f5914){const _0x2bdc51=_0x7f8acc,{text:_0x5c5c56,color:_0x240bc4}=_0x2f5914;_0x4489c4[_0x2bdc51(0x3d3)](),_0x4489c4[_0x2bdc51(0x40b)]=_0x2bdc51(0x1ed);const _0x90471e=_0x4489c4[_0x2bdc51(0x34b)](_0x5c5c56)['width'],_0x20ecd3=Math[_0x2bdc51(0x439)](_0x90471e+0x2*Re,at);ji(_0x4489c4,{'height':Q,'radius':0x4,'width':_0x20ecd3,'fill':_0x240bc4}),_0x4489c4['fillStyle']='#FFF';const _0x272eb7=Re,_0x2ddc72=Q-Vi,_0x3273ac=at-0x2*Re;if(_0x90471e>_0x3273ac){let _0x2f4bbd='',_0x112ca8=0x0;for(const _0x55f4a6 of _0x5c5c56){const _0x277ecc=_0x4489c4[_0x2bdc51(0x34b)](_0x55f4a6)[_0x2bdc51(0x201)];if(_0x112ca8+_0x277ecc<=_0x3273ac-_0x4489c4['measureText'](_0x2bdc51(0x3a9))[_0x2bdc51(0x201)])_0x2f4bbd+=_0x55f4a6,_0x112ca8+=_0x277ecc;else{_0x2f4bbd+=_0x2bdc51(0x3a9);break;}}_0x4489c4[_0x2bdc51(0x2e8)](_0x2f4bbd,_0x272eb7,_0x2ddc72);}else _0x4489c4[_0x2bdc51(0x2e8)](_0x5c5c56,_0x272eb7,_0x2ddc72);_0x4489c4['restore']();}[_0x7f8acc(0x426)](_0x4e99d6){ve['drawWith'](_0x4e99d6,this);}}const De=_0x7f8acc(0x2c1),Xi='collab-text-range-',Gi=_0x7f8acc(0x3db),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x7f8acc(0x3bf);class ct{constructor(_0x5ab0e3,_0x2014d6,_0x2f029f,_0x1a12b4){const _0x1923f6=_0x7f8acc;_(this,'_shapes',[]),_(this,'_anchor',null),_(this,'_textBubble',null),_(this,'_anchorDot',null),_(this,'_hideTimer',null),_(this,_0x1923f6(0x245),null),(this[_0x1923f6(0x359)]=_0x5ab0e3,this[_0x1923f6(0x374)]=_0x2014d6,this[_0x1923f6(0x2b7)]=_0x2f029f,this[_0x1923f6(0x317)]=_0x1a12b4,this[_0x1923f6(0x27b)]());}set['_hover'](_0x58ca25){const _0x467ded=_0x7f8acc;_0x58ca25?(this[_0x467ded(0x393)]&&this[_0x467ded(0x393)][_0x467ded(0x22a)](),this[_0x467ded(0x249)]&&this['_textBubble'][_0x467ded(0x204)]()):(this[_0x467ded(0x393)]&&this[_0x467ded(0x393)][_0x467ded(0x204)](),this[_0x467ded(0x249)]&&this['_textBubble']['hide']());}[_0x7f8acc(0x24f)](){const _0x2b9551=_0x7f8acc;for(const _0x3942e2 of this[_0x2b9551(0x256)])_0x3942e2['dispose']();this[_0x2b9551(0x249)]&&this[_0x2b9551(0x249)][_0x2b9551(0x24f)](),this[_0x2b9551(0x393)]&&this[_0x2b9551(0x393)]['dispose'](),this['_anchor']&&this[_0x2b9551(0x3e3)][_0x2b9551(0x24f)](),this['_eventUnsubscribe']&&this[_0x2b9551(0x245)]();}[_0x7f8acc(0x27b)](){const _0x2f5737=_0x7f8acc;var _0x472751;const {_docSkeleton:_0x399f8e,_document:_0x2d21ca}=this,{color:_0x28529f,name:_0x352e44,ranges:_0x4e466b}=this[_0x2f5737(0x359)],_0x3cbe12=_0x2d21ca['getOffsetConfig'](),{docsLeft:_0x53a93e,docsTop:_0x3263cd}=_0x3cbe12,_0x3b6636=new _0xc661d0(_0x3cbe12,_0x399f8e);for(const {startOffset:_0x570f08,endOffset:_0x793e1,rangeType:_0x242b6f,segmentId:_0x2feb81,segmentPage:_0x39533f,collapsed:_0x59b462,isActive:_0x29fd9f}of _0x4e466b){const _0x1c48c1=_0x399f8e[_0x2f5737(0x218)](_0x570f08,!0x0,_0x2feb81,_0x39533f);let _0x5e02db=_0x399f8e['findNodePositionByCharIndex'](_0x793e1,!0x0,_0x2feb81,_0x39533f);if(_0x5e02db==null&&(_0x5e02db=_0x399f8e[_0x2f5737(0x218)](_0x793e1-0x1,!0x1,_0x2feb81,_0x39533f)),_0x29fd9f){const {contentBoxPointGroup:_0x13d76b}=_0x3b6636[_0x2f5737(0x3f8)](_0x5e02db,_0x5e02db);if(_0x13d76b[_0x2f5737(0x277)]===0x0)continue;this[_0x2f5737(0x3ca)](_0x28529f,_0x13d76b,_0x53a93e,_0x3263cd,_0x352e44),this[_0x2f5737(0x245)]=this[_0x2f5737(0x228)]();}if(_0x1c48c1&&_0x5e02db){if(_0x242b6f===_0x3e8b8f[_0x2f5737(0x28a)]){const _0x2263d6=new _0x1184d5(_0x3cbe12,_0x399f8e),{pointGroup:_0x154427}=(_0x472751=_0x2263d6[_0x2f5737(0x3f8)](_0x1c48c1,_0x5e02db))!=null?_0x472751:{};if(_0x154427==null||_0x154427[_0x2f5737(0x277)]===0x0)continue;this[_0x2f5737(0x261)](_0x28529f,_0x154427,_0x53a93e,_0x3263cd);}else{if(!_0x59b462){const {borderBoxPointGroup:_0x157e5}=_0x3b6636[_0x2f5737(0x3f8)](_0x1c48c1,_0x5e02db);if(_0x157e5['length']===0x0)continue;this[_0x2f5737(0x34a)](_0x28529f,_0x157e5,_0x53a93e,_0x3263cd);}}}}}[_0x7f8acc(0x3ca)](_0x9e88d5,_0x5c8dbb,_0x164907,_0x275b47,_0x2da5d2){const _0x383561=_0x7f8acc,_0x121396=this[_0x383561(0x348)](_0x5c8dbb),{left:_0x5d5562,top:_0xccd92d,height:_0xc04850}=_0x121396,_0x14543b=this['_getScale'](),_0x21722b=zi/_0x14543b,_0x447493=new _0x1bb5f1(De+_0x21630d(z),{'left':_0x5d5562+_0x164907-_0x21722b,'top':_0xccd92d+_0x275b47,'height':_0xc04850,'width':Ki,'fill':_0x9e88d5||_0x3b090c(_0x5688e8[_0x383561(0x3f0)],0x0),'strokeWidth':_0x21722b,'stroke':Ji,'evented':!0x0});this[_0x383561(0x3e3)]=_0x447493,this['_scene'][_0x383561(0x2d5)](_0x447493,_0xe74629);const _0x290a1e=new _0x1bb5f1(De+_0x21630d(z),{'left':_0x5d5562+_0x164907-_0x21722b,'top':_0xccd92d+_0x275b47-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x9e88d5||_0x3b090c(_0x5688e8[_0x383561(0x3f0)],0x0),'strokeWidth':0x0,'stroke':_0x9e88d5||_0x3b090c(_0x5688e8[_0x383561(0x3f0)],0x0),'evented':!0x1});this[_0x383561(0x393)]=_0x290a1e,this[_0x383561(0x374)][_0x383561(0x2d5)](_0x290a1e,_0xe74629);const _0xeac25a=new ve(De+_0x21630d(z),{'left':_0x5d5562+_0x164907-_0x21722b,'top':_0xccd92d+_0x275b47-Q,'text':_0x2da5d2,'color':_0x9e88d5});this['_textBubble']=_0xeac25a,this[_0x383561(0x374)][_0x383561(0x2d5)](_0xeac25a,_0xe74629),this[_0x383561(0x1ee)]=!0x1;}['_handleHover'](){const _0x393cf7=_0x7f8acc,_0x1eb5d9=this['_anchor'][_0x393cf7(0x2bd)][_0x393cf7(0x2e7)](()=>{this['_hover']=!0x0;}),_0x528776=this['_anchor'][_0x393cf7(0x1f7)][_0x393cf7(0x2e7)](()=>{const _0x190fb3=_0x393cf7;this[_0x190fb3(0x3a3)]&&clearTimeout(this[_0x190fb3(0x3a3)]),this[_0x190fb3(0x3a3)]=setTimeout(()=>{const _0x2e5a9a=_0x190fb3;this[_0x2e5a9a(0x1ee)]=!0x1;},0x7d0);});return()=>{const _0x1c59d9=_0x393cf7;_0x1eb5d9['unsubscribe'](),_0x528776[_0x1c59d9(0x2f7)]();};}['_drawTextRange'](_0x1107ac,_0x39e7ea,_0x2792d2,_0x400b80){const _0x5c01ce=_0x7f8acc,_0x2af55a=new _0x25d6e4(_0x1107ac)[_0x5c01ce(0x2ca)](0.2)[_0x5c01ce(0x3f9)](),_0x37bcc2=new _0x159ed6(Xi+_0x21630d(z),{'pointsGroup':_0x39e7ea,'fill':_0x2af55a||_0x3b090c(_0x5688e8['black'],0.2),'left':_0x2792d2,'top':_0x400b80,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5c01ce(0x256)][_0x5c01ce(0x211)](_0x37bcc2),this[_0x5c01ce(0x374)]['addObject'](_0x37bcc2,_0xe74629);}[_0x7f8acc(0x261)](_0x39ce32,_0x5e737d,_0xb54d80,_0xeb30c8){const _0x390b29=_0x7f8acc,_0x736264=new _0x25d6e4(_0x39ce32)['setAlpha'](0.2)[_0x390b29(0x3f9)](),_0x12ac74=new _0x159ed6(Gi+_0x21630d(z),{'pointsGroup':_0x5e737d,'fill':_0x736264||_0x3b090c(_0x5688e8['black'],0.2),'left':_0xb54d80,'top':_0xeb30c8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x390b29(0x256)][_0x390b29(0x211)](_0x12ac74),this[_0x390b29(0x374)][_0x390b29(0x2d5)](_0x12ac74,_0xe74629);}[_0x7f8acc(0x348)](_0x5a1339){const _0x5220e4=_0x5a1339[0x0],_0x23842f=_0x5220e4[0x0],_0xe87ebe=_0x5220e4[0x2],{x:_0x160ed4,y:_0x17e738}=_0x23842f,{x:_0x4f98b2,y:_0x58fa1a}=_0xe87ebe;return{'left':_0x160ed4,'top':_0x17e738,'width':_0x4f98b2-_0x160ed4,'height':_0x58fa1a-_0x17e738};}['_getScale'](){const _0x2f02e9=_0x7f8acc,{scaleX:_0x330196,scaleY:_0x347066}=this[_0x2f02e9(0x374)][_0x2f02e9(0x3e8)]();return Math['max'](_0x330196,_0x347066);}}var Zi=Object[_0x7f8acc(0x404)],Qi=(_0x12645f,_0xc91d9,_0x33adcd,_0x4edff2)=>{const _0x28cc51=_0x7f8acc;for(var _0x437b7e=_0x4edff2>0x1?void 0x0:_0x4edff2?Zi(_0xc91d9,_0x33adcd):_0xc91d9,_0x4fe5a7=_0x12645f[_0x28cc51(0x277)]-0x1,_0x541d45;_0x4fe5a7>=0x0;_0x4fe5a7--)(_0x541d45=_0x12645f[_0x4fe5a7])&&(_0x437b7e=_0x541d45(_0x437b7e)||_0x437b7e);return _0x437b7e;},ie=(_0x56a3a1,_0x14d3ba)=>(_0x2ec70c,_0x435ea7)=>_0x14d3ba(_0x2ec70c,_0x435ea7,_0x56a3a1);let Fe=class extends _0x24b4d8{constructor(_0x1d01ce,_0x1251b9,_0x9daef6,_0x1f64aa,_0x50ea7f){const _0x44f879=_0x7f8acc;super(),_(this,_0x44f879(0x39a),[]),_(this,_0x44f879(0x320),[]),(this[_0x44f879(0x3ec)]=_0x1d01ce,this['_docSkeletonManagerService']=_0x1251b9,this[_0x44f879(0x3dc)]=_0x9daef6,this[_0x44f879(0x1fa)]=_0x1f64aa,this[_0x44f879(0x3de)]=_0x50ea7f,this['_init']());}[_0x7f8acc(0x225)](){const _0x261651=_0x7f8acc,_0x1a2e1a=this[_0x261651(0x3ec)][_0x261651(0x213)],_0x4bfcc2=this[_0x261651(0x38d)];this[_0x261651(0x2f4)](_0x369b54([this[_0x261651(0x3dc)][_0x261651(0x43d)](_0x1a2e1a),this[_0x261651(0x3de)][_0x261651(0x2f3)]])['pipe'](_0x3bc960(([_0x17340c,_0x56f5af])=>({'skeleton':_0x4bfcc2['getSkeleton'](),'cursors':[..._0x17340c['values']()][_0x261651(0x2dc)](_0x4ef0f4=>({..._0x4ef0f4,'color':this['_themeService'][_0x261651(0x3c8)](_0x4ef0f4[_0x261651(0x297)])}))})))[_0x261651(0x409)](_0x1e4536=>{const _0x35dd88=_0x261651;if(this[_0x35dd88(0x3f1)](),_0x1e4536){const {skeleton:_0x367bc4,cursors:_0x54478d}=_0x1e4536;this[_0x35dd88(0x2e6)](_0x367bc4,_0x54478d);}})),this[_0x261651(0x3b5)](),this[_0x261651(0x399)]();}[_0x7f8acc(0x2e6)](_0x30b7ab,_0x5520ea){const _0x5c35dd=_0x7f8acc,{scene:_0x25d4b2,mainComponent:_0xb504dd}=this[_0x5c35dd(0x3ec)],_0x2487c0=_0x5520ea[_0x5c35dd(0x33e)](_0x1825a4=>new ct(_0x1825a4,_0x25d4b2,_0x30b7ab,_0xb504dd));this[_0x5c35dd(0x39a)]=_0x2487c0,this[_0x5c35dd(0x320)]=_0x5520ea;}['_refreshCollabCursors'](){const _0x5b3fc9=_0x7f8acc;this[_0x5b3fc9(0x3f1)]();const {scene:_0x2aadfc,mainComponent:_0x17d5f5}=this[_0x5b3fc9(0x3ec)],_0x19563c=this['_docSkeletonManagerService'][_0x5b3fc9(0x323)](),_0x3a719d=this['_cursors'][_0x5b3fc9(0x33e)](_0x475d78=>new ct(_0x475d78,_0x2aadfc,_0x19563c,_0x17d5f5));this[_0x5b3fc9(0x39a)]=_0x3a719d;}['_removeCollabCursors'](){const _0x1e2109=_0x7f8acc;this['_cursorShapes'][_0x1e2109(0x390)](_0x43fcef=>_0x43fcef['dispose']()),this[_0x1e2109(0x39a)]=[];}[_0x7f8acc(0x399)](){const _0x55721a=_0x7f8acc,_0xe2dccb=[_0x366a0a['id']];this[_0x55721a(0x2f4)](this['_commandService']['onCommandExecuted'](_0x3adcff=>{const _0xb356e5=_0x55721a;_0xe2dccb[_0xb356e5(0x206)](_0x3adcff['id'])&&_0x3adcff[_0xb356e5(0x302)][_0xb356e5(0x213)]===this[_0xb356e5(0x3ec)][_0xb356e5(0x213)]&&this['_refreshCollabCursors']();}));}[_0x7f8acc(0x3b5)](){const _0x2bfaf2=_0x7f8acc;this[_0x2bfaf2(0x2f4)](_0x272251(this[_0x2bfaf2(0x3ec)]['engine'][_0x2bfaf2(0x32f)])[_0x2bfaf2(0x1f9)](_0x1befca(_0xdfce77=>_0xdfce77['type']===_0x223c04[_0x2bfaf2(0x304)]),_0x39abd9(0x10))[_0x2bfaf2(0x409)](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0xe86757(_0x46f333)),ie(0x2,_0xe86757(H)),ie(0x3,_0x2049b3),ie(0x4,_0xe86757(_0x78e4ed))],Fe);const qi=0x1,en=1.5;class tn extends _0x159947{constructor(_0x3b2f10,_0x2a81ac){const _0x319153=_0x7f8acc;super(_0x3b2f10,_0x2a81ac),_(this,_0x319153(0x1e6)),_(this,_0x319153(0x2ac),!0x1),_(this,_0x319153(0x236)),_(this,'_name',''),_(this,_0x319153(0x217),_0x319153(0x32a)),_(this,_0x319153(0x369)),(_0x2a81ac&&this[_0x319153(0x31a)](_0x2a81ac),this['onPointerEnter$'][_0x319153(0x2e7)](()=>this[_0x319153(0x31a)]({'hovered':!0x0})),this[_0x319153(0x1f7)]['subscribeEvent'](()=>this[_0x319153(0x31a)]({'hovered':!0x1})));}[_0x7f8acc(0x31a)](_0x2a6658){const _0x351fa7=_0x7f8acc;var _0x5f13cf,_0x12fb18,_0x4466f1,_0x16097b,_0x25e5d1,_0x52d662;this['_color']=(_0x5f13cf=_0x2a6658[_0x351fa7(0x297)])!=null?_0x5f13cf:this[_0x351fa7(0x1e6)],this['_hovered']=(_0x12fb18=_0x2a6658[_0x351fa7(0x42f)])!=null?_0x12fb18:this['_hovered'],this[_0x351fa7(0x236)]=(_0x4466f1=_0x2a6658[_0x351fa7(0x33d)])!=null?_0x4466f1:this[_0x351fa7(0x236)],this[_0x351fa7(0x3fc)]=(_0x16097b=_0x2a6658[_0x351fa7(0x3ef)])!=null?_0x16097b:this['_name'],this[_0x351fa7(0x217)]=(_0x25e5d1=_0x2a6658[_0x351fa7(0x333)])!=null?_0x25e5d1:this['_labelPosition'],this['_backgroundColor']=(_0x52d662=_0x2a6658[_0x351fa7(0x364)])!=null?_0x52d662:this[_0x351fa7(0x369)],this['transformByState']({'width':_0x2a6658[_0x351fa7(0x201)],'height':_0x2a6658[_0x351fa7(0x40f)]});}[_0x7f8acc(0x400)](_0x2a8efd){const _0x56fbca=_0x7f8acc,{row:_0x1df5e5,column:_0x38290e}=_0x2a8efd;if(_0x1df5e5>=this['_range'][_0x56fbca(0x36c)]&&_0x1df5e5<=this[_0x56fbca(0x236)][_0x56fbca(0x365)]&&_0x38290e>=this['_range'][_0x56fbca(0x366)]&&_0x38290e<=this['_range'][_0x56fbca(0x40d)]){this[_0x56fbca(0x31a)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x233b0a){return!0x1;}[_0x7f8acc(0x426)](_0xf011ed){const _0x3ecd97=_0x7f8acc;_0x1bb5f1[_0x3ecd97(0x3a4)](_0xf011ed,{'width':this[_0x3ecd97(0x201)],'height':this[_0x3ecd97(0x40f)],'strokeWidth':en,'stroke':this[_0x3ecd97(0x1e6)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x3ecd97(0x2ac)]&&(_0xf011ed[_0x3ecd97(0x3d3)](),_0xf011ed[_0x3ecd97(0x23f)](0x1,0x0,0x0,0x1,this[_0x3ecd97(0x201)],this[_0x3ecd97(0x217)]==='bottom'?0x0:-Q),ve[_0x3ecd97(0x3a4)](_0xf011ed,{'text':this[_0x3ecd97(0x3fc)],'color':this[_0x3ecd97(0x1e6)]}),_0xf011ed[_0x3ecd97(0x2d6)]());}}var sn=Object[_0x7f8acc(0x404)],nn=(_0x58d8c4,_0x251327,_0x5556f4,_0x1ddd71)=>{const _0x8d45b1=_0x7f8acc;for(var _0x1a9f1c=_0x1ddd71>0x1?void 0x0:_0x1ddd71?sn(_0x251327,_0x5556f4):_0x251327,_0xca00f3=_0x58d8c4[_0x8d45b1(0x277)]-0x1,_0x431b0d;_0xca00f3>=0x0;_0xca00f3--)(_0x431b0d=_0x58d8c4[_0xca00f3])&&(_0x1a9f1c=_0x431b0d(_0x1a9f1c)||_0x1a9f1c);return _0x1a9f1c;},be=(_0x7b2341,_0x460a93)=>(_0x74feff,_0x4d9690)=>_0x460a93(_0x74feff,_0x4d9690,_0x7b2341);const rn=0x1389;let ke=class extends _0x24b4d8{constructor(_0x38239f,_0x19f7fc,_0x2e3779,_0x55356b){const _0x1b002a=_0x7f8acc;super(),_(this,_0x1b002a(0x320),new Set()),_(this,_0x1b002a(0x1e7),null),(this[_0x1b002a(0x3ec)]=_0x38239f,this['_sheetSkeletonManagerService']=_0x19f7fc,this[_0x1b002a(0x3dc)]=_0x2e3779,this[_0x1b002a(0x3de)]=_0x55356b,this[_0x1b002a(0x225)]());}[_0x7f8acc(0x225)](){const _0x57b1b0=_0x7f8acc;this[_0x57b1b0(0x283)][_0x57b1b0(0x30a)][_0x57b1b0(0x1f9)](_0x204ac2(this[_0x57b1b0(0x29e)]),_0x13c08e(_0x25e41e=>{const _0x1aacc3=_0x57b1b0;if(_0x25e41e){const _0x4af791=_0x25e41e[_0x1aacc3(0x2ea)];return _0x369b54(this['_collabCursorController'][_0x1aacc3(0x43d)](this[_0x1aacc3(0x3ec)][_0x1aacc3(0x213)]),this[_0x1aacc3(0x3de)]['currentTheme$'])[_0x1aacc3(0x1f9)](_0x3bc960(([_0x34f32f,_0x3ee0b3])=>{const _0x57658e=_0x1aacc3,_0x573c48=new Map();return _0x34f32f[_0x57658e(0x390)]((_0x3ccd7e,_0xded580)=>{const _0x475a80=_0x57658e;if(_0x3ccd7e[_0x475a80(0x41b)]===_0x4af791){const _0x53ded6={..._0x3ccd7e};_0x53ded6['color']=this[_0x475a80(0x3de)][_0x475a80(0x3c8)](_0x3ccd7e['color']),_0x573c48[_0x475a80(0x39d)](_0xded580,_0x53ded6);}}),{'skeleton':_0x25e41e,'cursors':_0x573c48};}));}return _0x11f445({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x5c22b8,cursors:_0x322996})=>{const _0x51d007=_0x57b1b0;this['_removeCollabCursors'](),_0x5c22b8&&this[_0x51d007(0x2e6)](_0x5c22b8,_0x322996);}),this[_0x57b1b0(0x283)][_0x57b1b0(0x30a)][_0x57b1b0(0x409)](_0x7c5239=>{const _0x5e427d=_0x57b1b0;if(_0x7c5239==null)return;const {skeleton:_0x5e8964}=_0x7c5239,{scene:_0x4942e0}=this[_0x5e427d(0x3ec)];_0x4942e0[_0x5e427d(0x248)][_0x5e427d(0x2e7)](_0x201617(_0x2162d0=>{const _0x5768b0=_0x5e427d;var _0x19f4dc,_0xe389a8;const {offsetX:_0x1ba047,offsetY:_0x4f08ba}=_0x2162d0,{x:_0x389030,y:_0x338921}=_0x4942e0[_0x5768b0(0x319)](_0xf47159[_0x5768b0(0x1ef)]([_0x1ba047,_0x4f08ba])),{scaleX:_0x53873e,scaleY:_0x2292a8}=_0x4942e0[_0x5768b0(0x3e8)](),_0x32a008=_0x4942e0[_0x5768b0(0x41d)](_0x488f02[_0x5768b0(0x2d1)]),_0x4860e9=_0x4942e0[_0x5768b0(0x3be)](_0xf47159[_0x5768b0(0x1ef)]([_0x389030,_0x338921]),_0x32a008),_0x5ce7e2=_0x5e8964[_0x5768b0(0x270)](_0x1ba047,_0x4f08ba,_0x53873e,_0x2292a8,_0x4860e9);((_0x19f4dc=this[_0x5768b0(0x1e7)])==null?void 0x0:_0x19f4dc['column'])===_0x5ce7e2[_0x5768b0(0x358)]&&((_0xe389a8=this[_0x5768b0(0x1e7)])==null?void 0x0:_0xe389a8[_0x5768b0(0x435)])===_0x5ce7e2[_0x5768b0(0x435)]||this['_cursors'][_0x5768b0(0x390)](_0x11463b=>{const _0x1c4ac7=_0x5768b0;_0x11463b[_0x1c4ac7(0x400)](_0x5ce7e2);});},0x64));});}[_0x7f8acc(0x2e6)](_0x16c4fc,_0x4654a9){const _0x2145bf=_0x7f8acc;var _0x26bebc;const _0xa744e9=(_0x26bebc=this[_0x2145bf(0x283)][_0x2145bf(0x422)]())==null?void 0x0:_0x26bebc[_0x2145bf(0x2f9)];if(!_0xa744e9)return;const _0x412038=this['_getSheetObject']();if(!_0x412038)return;this[_0x2145bf(0x320)]['forEach'](_0x35abff=>{const _0x5109aa=_0x2145bf;_0x35abff[_0x5109aa(0x1f0)]();});const {scene:_0x28e5f6}=_0x412038,_0x48c878=on(Array[_0x2145bf(0x38e)](_0x4654a9[_0x2145bf(0x336)]()))[_0x2145bf(0x33e)](_0x32d6a6=>{const _0x5ed447=_0x2145bf,{color:_0x3dfd4b,range:_0x291cc7,name:_0xc7424,selection:_0x4a6ee9,sheetID:_0x39edae}=_0x32d6a6,{startColumn:_0x3b4cdd,startRow:_0x4ad3f8,endColumn:_0x42e219,endRow:_0x566f04}=_0x291cc7,_0x4ceacf=_0x51afff(_0x4ad3f8,_0x3b4cdd,_0x28e5f6,_0xa744e9),_0x382872=_0x51afff(_0x566f04,_0x42e219,_0x28e5f6,_0xa744e9),{columnHeaderHeightAndMarginTop:_0x396ede}=_0xa744e9,{startX:_0x2d29d3,startY:_0x4a5458}=_0x4ceacf,{endX:_0x4514f2,endY:_0x61b519}=_0x382872,_0x4c5d1c=_0x4514f2-_0x2d29d3,_0x52c9d2=_0x61b519-_0x4a5458,_0x63378f={'labelPosition':_0x4a5458-_0x396ede>=Q?_0x5ed447(0x32a):_0x5ed447(0x202),'sheetID':_0x39edae,'range':_0x291cc7,'color':_0x3dfd4b,'name':_0xc7424,'selection':_0x4a6ee9,'left':_0x2d29d3,'top':_0x4a5458,'width':_0x4c5d1c,'height':_0x52c9d2,'evented':!0x1,'zIndex':rn};return new tn(_0xc7424,_0x63378f);});_0x28e5f6[_0x2145bf(0x280)](_0x48c878,qi),this[_0x2145bf(0x320)]=new Set(_0x48c878);}[_0x7f8acc(0x3f1)](){const _0x19fe17=_0x7f8acc;var _0x3e4bf4;(_0x3e4bf4=this[_0x19fe17(0x320)])==null||_0x3e4bf4['forEach'](_0x519552=>_0x519552[_0x19fe17(0x24f)]());}[_0x7f8acc(0x30c)](){const _0x623503=_0x7f8acc;return _0x2f44db(this['_context'][_0x623503(0x268)],this['_context']);}};ke=nn([be(0x1,_0xe86757(_0x3a1bfb)),be(0x2,_0xe86757(H)),be(0x3,_0xe86757(_0x78e4ed))],ke);function on(_0x5f0d80){const _0x49866c=_0x7f8acc,_0x4ef592=new Map();return _0x5f0d80[_0x49866c(0x390)](_0x152687=>{const _0x25d621=_0x49866c;if(_0x4ef592['has'](_0x152687[_0x25d621(0x2fe)])){const _0x2d9a0c=_0x4ef592[_0x25d621(0x2be)](_0x152687[_0x25d621(0x2fe)]);_0x2d9a0c['name']+=',\x20'+_0x152687[_0x25d621(0x3ef)];}else _0x4ef592[_0x25d621(0x39d)](_0x152687[_0x25d621(0x2fe)],_0x152687);}),Array['from'](_0x4ef592[_0x49866c(0x336)]());}var an=Object[_0x7f8acc(0x404)],cn=(_0x522ed3,_0x243a58,_0x38dcd4,_0x5cc494)=>{const _0x13d3ca=_0x7f8acc;for(var _0xe44ac7=_0x5cc494>0x1?void 0x0:_0x5cc494?an(_0x243a58,_0x38dcd4):_0x243a58,_0x20f49e=_0x522ed3[_0x13d3ca(0x277)]-0x1,_0x1c3f93;_0x20f49e>=0x0;_0x20f49e--)(_0x1c3f93=_0x522ed3[_0x20f49e])&&(_0xe44ac7=_0x1c3f93(_0xe44ac7)||_0xe44ac7);return _0xe44ac7;},F=(_0x50f46,_0x4cbd80)=>(_0x29e0dd,_0x2ba48a)=>_0x4cbd80(_0x29e0dd,_0x2ba48a,_0x50f46);let _e=class extends _0x561bf0{constructor(_0x400e7b,_0x1f1195,_0xed836b,_0x1696f0,_0x41a09c,_0x5e81a0){const _0x16e10e=_0x7f8acc;super(),this[_0x16e10e(0x292)]=_0x400e7b,this['_localCacheService']=_0x1f1195,this['_collaborationUIEventService']=_0xed836b,this[_0x16e10e(0x311)]=_0x1696f0,this[_0x16e10e(0x3cb)]=_0x41a09c,this[_0x16e10e(0x253)]=_0x5e81a0,this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x7f8acc(0x347)](){const _0x3733e0=_0x7f8acc;this[_0x3733e0(0x2f4)](this['_beforeCloseService'][_0x3733e0(0x344)](()=>{const _0x1a1c21=_0x3733e0;if(this['_localCacheService'][_0x1a1c21(0x3fd)]['size'])return this[_0x1a1c21(0x253)]['t']('collaboration.offline-data-not-saved');}));}['_initEvent'](){const _0xf5b670=_0x7f8acc;this[_0xf5b670(0x2f4)](this['_collaborationUIEventService'][_0xf5b670(0x2f1)]['subscribe'](_0x230a2b=>{const _0x10fb1a=_0xf5b670;_0x230a2b['id']===_0xdb3270['OTHER_CLIENT_EDITING']&&this[_0x10fb1a(0x311)][_0x10fb1a(0x204)]({'type':_0x10fa0d[_0x10fb1a(0x410)],'content':this[_0x10fb1a(0x253)]['t']('collaboration.single-unit.warning')}),_0x230a2b['id']===_0xdb3270[_0x10fb1a(0x415)]&&this[_0x10fb1a(0x311)][_0x10fb1a(0x204)]({'type':_0x10fa0d[_0x10fb1a(0x410)],'content':this[_0x10fb1a(0x253)]['t'](_0x10fb1a(0x2eb))}),_0x230a2b['id']===_0xdb3270['PERMISSION_DENIED']&&this[_0x10fb1a(0x3cb)]['show']({'title':this[_0x10fb1a(0x253)]['t'](_0x10fb1a(0x371)),'content':this[_0x10fb1a(0x253)]['t'](_0x10fb1a(0x291)),'type':'error','duration':0x0}),_0x230a2b['id']===_0xdb3270[_0x10fb1a(0x3bb)]&&this[_0x10fb1a(0x311)]['show']({'type':_0x10fa0d['Error'],'content':this['_localeService']['t'](_0x10fb1a(0x2eb))+'('+_0x230a2b[_0x10fb1a(0x2cc)]+')'}),_0x230a2b['id']===_0xdb3270[_0x10fb1a(0x309)]&&this[_0x10fb1a(0x311)][_0x10fb1a(0x204)]({'type':_0x10fa0d[_0x10fb1a(0x410)],'content':this['_localeService']['t'](_0x230a2b[_0x10fb1a(0x2cc)]||'')}),_0x230a2b['id']===_0xdb3270[_0x10fb1a(0x281)]&&this[_0x10fb1a(0x311)][_0x10fb1a(0x204)]({'type':_0x10fa0d['Warning'],'content':this[_0x10fb1a(0x253)]['t'](_0x10fb1a(0x3f7))}),_0x230a2b['id']===_0xdb3270['SOCKET_FAILED']&&this['_messageService'][_0x10fb1a(0x204)]({'type':_0x10fa0d['Error'],'content':this[_0x10fb1a(0x253)]['t'](_0x10fb1a(0x2c4))}),_0x230a2b['id']===_0xdb3270['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x10fb1a(0x311)][_0x10fb1a(0x204)]({'type':_0x10fa0d[_0x10fb1a(0x2bf)],'content':this[_0x10fb1a(0x253)]['t'](_0x10fb1a(0x3e2))});}));}};_e=cn([F(0x0,_0x1b1b29),F(0x1,_0xdd6cb7),F(0x2,_0xe86757(_0x2c6b3d)),F(0x3,_0x44b101),F(0x4,_0x1152ce),F(0x5,_0xe86757(_0x21bb66))],_e);var _n=Object[_0x7f8acc(0x404)],ln=(_0x45c597,_0x53e1ac,_0x4a2346,_0x594f43)=>{const _0x253c46=_0x7f8acc;for(var _0x47804e=_0x594f43>0x1?void 0x0:_0x594f43?_n(_0x53e1ac,_0x4a2346):_0x53e1ac,_0x80ebf3=_0x45c597[_0x253c46(0x277)]-0x1,_0x51ec74;_0x80ebf3>=0x0;_0x80ebf3--)(_0x51ec74=_0x45c597[_0x80ebf3])&&(_0x47804e=_0x51ec74(_0x47804e)||_0x47804e);return _0x47804e;},ne=(_0x56fb2b,_0x173c60)=>(_0xf741f1,_0x26edbd)=>_0x173c60(_0xf741f1,_0x26edbd,_0x56fb2b);let le=class extends _0x561bf0{constructor(_0x2acc80,_0x1af540,_0xc7d709,_0x2be41b){const _0x1820a6=_0x7f8acc;super(),_(this,_0x1820a6(0x274)),(this['_injector']=_0x2acc80,this[_0x1820a6(0x3c4)]=_0x1af540,this[_0x1820a6(0x3b3)]=_0xc7d709,this[_0x1820a6(0x23d)]=_0x2be41b,this[_0x1820a6(0x225)]());}['_init'](){const _0x2b030b=_0x7f8acc;this['_initWindowErrorListener'](),this[_0x2b030b(0x288)](),this[_0x2b030b(0x430)](),this[_0x2b030b(0x267)]();}[_0x7f8acc(0x267)](){const _0x2f79a5=_0x7f8acc;this[_0x2f79a5(0x2f4)](this[_0x2f79a5(0x23d)][_0x2f79a5(0x3fa)][_0x2f79a5(0x409)](_0x5a73b0=>{const _0x5dbba8=_0x2f79a5;this[_0x5dbba8(0x274)]=_0x5a73b0==null?void 0x0:_0x5a73b0[_0x5dbba8(0x227)];}));}[_0x7f8acc(0x20c)](){const _0xdbfceb=_0x7f8acc,_0x34b6e7=_0x375ae6=>{const _0x1afd0a=_0x5d9e;var _0x374cfe;this[_0x1afd0a(0x2c6)](_0x1afd0a(0x3e9),_0x1afd0a(0x329)+_0x375ae6[_0x1afd0a(0x2fa)]+_0x1afd0a(0x391)+_0x375ae6['filename']+':'+_0x375ae6[_0x1afd0a(0x203)]+':'+_0x375ae6[_0x1afd0a(0x423)]+'\x0a'+(((_0x374cfe=_0x375ae6['error'])==null?void 0x0:_0x374cfe['stack'])||''));};window[_0xdbfceb(0x3b0)]('error',_0x34b6e7),this[_0xdbfceb(0x2f4)](()=>{const _0x462b6e=_0xdbfceb;window[_0x462b6e(0x2aa)](_0x462b6e(0x3e9),_0x34b6e7);});}['_initUnhandledRejectionListener'](){const _0x41b605=_0x7f8acc,_0x55ddb2=_0x22f5b0=>{const _0x45ed7a=_0x5d9e;this[_0x45ed7a(0x2c6)](_0x45ed7a(0x3e9),_0x45ed7a(0x231)+_0x22f5b0[_0x45ed7a(0x2c7)]);};window[_0x41b605(0x3b0)]('unhandledrejection',_0x55ddb2),this[_0x41b605(0x2f4)](()=>{const _0x1615c4=_0x41b605;window[_0x1615c4(0x2aa)](_0x1615c4(0x25a),_0x55ddb2);});}['_monkeyPatchLogService'](){const _0x5904d2=_0x7f8acc,_0x56c427=this[_0x5904d2(0x3b3)][_0x5904d2(0x3e9)][_0x5904d2(0x266)](this['_logService']);this['_logService']['error']=(..._0x1b55c0)=>{const _0x413237=_0x5904d2,_0x255cd1=_0x1b55c0[_0x413237(0x33e)](_0x2c8392=>_0x2c8392 instanceof Error?_0x2c8392[_0x413237(0x2fa)]+'\x0a'+_0x2c8392[_0x413237(0x37e)]:String(_0x2c8392))[_0x413237(0x30f)]('\x20');this[_0x413237(0x2c6)](_0x413237(0x3e9),_0x413237(0x2bb)+_0x255cd1),_0x56c427(..._0x1b55c0);},this[_0x5904d2(0x2f4)](()=>{const _0x4c7a18=_0x5904d2;this[_0x4c7a18(0x3b3)]['error']=_0x56c427;});}['_uploadLog'](_0x3d9b64,_0x4f4482){const _0x120e3e=_0x7f8acc;try{const _0x5934de={'userId':this[_0x120e3e(0x274)],'logLabel':_0x3d9b64,'content':_0x4f4482};this[_0x120e3e(0x3c4)][_0x120e3e(0x2a5)]('/universer-api/frontend/logs',{'body':_0x5934de})[_0x120e3e(0x286)](()=>{});}catch{}}};le=ln([ne(0x0,_0xe86757(_0x24194e)),ne(0x1,_0xe86757(_0x943484)),ne(0x2,_0x2065a5),ne(0x3,_0xe86757(_0x4e2359))],le);const hn=_0x7f8acc(0x24e),_t={};var un=Object[_0x7f8acc(0x404)],dn=(_0x4af1e0,_0x49bacb,_0x2e2401,_0x1e3101)=>{const _0xf880d0=_0x7f8acc;for(var _0x115ccb=_0x1e3101>0x1?void 0x0:_0x1e3101?un(_0x49bacb,_0x2e2401):_0x49bacb,_0x33433c=_0x4af1e0[_0xf880d0(0x277)]-0x1,_0x510297;_0x33433c>=0x0;_0x33433c--)(_0x510297=_0x4af1e0[_0x33433c])&&(_0x115ccb=_0x510297(_0x115ccb)||_0x115ccb);return _0x115ccb;},lt=(_0x367421,_0x3fb5a7)=>(_0x43fa97,_0x1aeecc)=>_0x3fb5a7(_0x43fa97,_0x1aeecc,_0x367421);let he=class{constructor(_0x35234a,_0x4b835d){const _0x5382b0=_0x7f8acc;this[_0x5382b0(0x3d4)]=_0x35234a,this['_renderManagerService']=_0x4b835d;}[_0x7f8acc(0x1e9)](_0x4d221c){const _0x37ce21=_0x7f8acc;this[_0x37ce21(0x37c)](_0x4d221c),this[_0x37ce21(0x418)](_0x4d221c);}['transformRemoteChangeset'](_0x1aa228){const _0x115acc=_0x7f8acc,{unitID:_0x24939b}=_0x1aa228,_0x1e0a44=this[_0x115acc(0x294)]['getRenderById'](_0x24939b)[_0x115acc(0x2d2)](_0x3ea52d),{redoCache:_0x155a9e}=_0x1e0a44[_0x115acc(0x3cc)]();if(_0x155a9e[_0x115acc(0x277)]===0x0)return _0x1aa228;let _0x5073f7=_0x2fb330[_0x115acc(0x301)](_0x1aa228['mutations'][0x0]);for(let _0x43a1c7=0x0;_0x43a1c7<_0x155a9e[_0x115acc(0x277)];_0x43a1c7++){const _0x4cd6d3={'id':_0x115acc(0x1f4),'params':{..._0x155a9e[_0x43a1c7]}},_0x4b4dfa=this[_0x115acc(0x3d4)][_0x115acc(0x25c)](_0x5073f7,_0x4cd6d3,!0x1);if(_0x4891f8(_0x4b4dfa))throw _0x4b4dfa[_0x115acc(0x3e9)];_0x5073f7=_0x4b4dfa[_0x115acc(0x357)];}return{..._0x2fb330[_0x115acc(0x301)](_0x1aa228),'mutations':[_0x5073f7]};}[_0x7f8acc(0x37c)](_0x6c0394){const _0x4ad708=_0x7f8acc,{unitID:_0x573b7f}=_0x6c0394,_0x185938=this[_0x4ad708(0x294)][_0x4ad708(0x401)](_0x573b7f)['with'](_0x3ea52d),{undoCache:_0x2fa784,redoCache:_0x199f85}=_0x185938[_0x4ad708(0x3cc)]();if(_0x2fa784[_0x4ad708(0x277)]===0x0||_0x199f85['length']===0x0)return;const _0x5d2849=[],_0xd37b4c=[];let _0xae23cb=_0x2fb330['deepClone'](_0x6c0394['mutations'][0x0]),_0x2e17d1=_0x2fb330['deepClone'](_0x6c0394[_0x4ad708(0x2e9)][0x0]);for(let _0x14d967=_0x2fa784[_0x4ad708(0x277)]-0x1;_0x14d967>=0x0;_0x14d967--){const _0x2168ed={'id':_0x4ad708(0x1f4),'params':{..._0x2fa784[_0x14d967]}},_0x75e45f={'id':_0x4ad708(0x1f4),'params':{..._0x199f85[_0x14d967]}},_0x17390a=this[_0x4ad708(0x3d4)]['transformMutation'](_0xae23cb,_0x2168ed,!0x1),_0x900739=this[_0x4ad708(0x3d4)][_0x4ad708(0x25c)](_0x2e17d1,_0x75e45f,!0x1);if(_0x4891f8(_0x17390a))throw _0x17390a[_0x4ad708(0x3e9)];if(_0x4891f8(_0x900739))throw _0x900739[_0x4ad708(0x3e9)];_0x5d2849[_0x4ad708(0x383)](_0x17390a[_0x4ad708(0x2fd)][_0x4ad708(0x302)]),_0xd37b4c[_0x4ad708(0x383)](_0x900739[_0x4ad708(0x2fd)]['params']),_0xae23cb=_0x17390a[_0x4ad708(0x357)],_0x2e17d1=_0x900739['m1Prime'];}_0x185938[_0x4ad708(0x335)]({'undoCache':_0x5d2849,'redoCache':_0xd37b4c});}[_0x7f8acc(0x418)](_0xbf9435){const _0x1a6cff=_0x7f8acc,{unitID:_0x40c80e}=_0xbf9435,_0x37ad01=this[_0x1a6cff(0x294)][_0x1a6cff(0x401)](_0x40c80e)[_0x1a6cff(0x2d2)](_0x3ea52d),_0x35cd7d=_0x37ad01[_0x1a6cff(0x31b)]();if(_0x35cd7d==null)return;const _0x52726d=[{'id':_0x1a6cff(0x1f4),'params':{'unitId':_0xbf9435[_0x1a6cff(0x42d)],'actions':null,'textRanges':[_0x35cd7d]}}],_0x17817a=this[_0x1a6cff(0x3d4)]['transformMutationsWithChangeset'](_0xbf9435,_0x52726d);if(!_0x59f6fd(_0x17817a))throw _0x17817a[_0x1a6cff(0x3e9)];const _0x104c0f=_0x17817a[_0x1a6cff(0x2fd)][0x0][_0x1a6cff(0x302)]['textRanges'];Array[_0x1a6cff(0x352)](_0x104c0f)&&_0x104c0f[_0x1a6cff(0x277)]&&_0x37ad01[_0x1a6cff(0x2e2)](_0x104c0f[0x0]);}};he=dn([lt(0x0,_0xa0bd0),lt(0x1,_0x2cedfd)],he);var Sn=Object[_0x7f8acc(0x404)],In=(_0x32c668,_0x53d4d2,_0xcc162b,_0x309360)=>{const _0x2083f5=_0x7f8acc;for(var _0x2b947a=_0x309360>0x1?void 0x0:_0x309360?Sn(_0x53d4d2,_0xcc162b):_0x53d4d2,_0x25c4db=_0x32c668[_0x2083f5(0x277)]-0x1,_0x2942f8;_0x25c4db>=0x0;_0x25c4db--)(_0x2942f8=_0x32c668[_0x25c4db])&&(_0x2b947a=_0x2942f8(_0x2b947a)||_0x2b947a);return _0x2b947a;},Le=(_0x39052b,_0x749459)=>(_0x544a09,_0x18939a)=>_0x749459(_0x544a09,_0x18939a,_0x39052b);let ue=class{constructor(_0x442d5b,_0x265c7d,_0x4dd1d9){const _0x281d9b=_0x7f8acc;this[_0x281d9b(0x43b)]=_0x442d5b,this['_transformService']=_0x265c7d,this[_0x281d9b(0x411)]=_0x4dd1d9;}[_0x7f8acc(0x28f)](_0x41f0a2){const _0x2e33d6=_0x7f8acc;this[_0x2e33d6(0x3a1)](_0x41f0a2);}[_0x7f8acc(0x2a4)](_0x232411){const _0x236d24=_0x7f8acc,{unitID:_0x33fef9}=_0x232411,{collaboration:_0x3d3240}=this['_docStateChangeManagerService']['getStateCache'](_0x33fef9);if(_0x3d3240[_0x236d24(0x277)]===0x0)return _0x232411;let _0x461dc3=_0x2fb330[_0x236d24(0x301)](_0x232411[_0x236d24(0x2e9)][0x0]);for(let _0x3123c9=0x0;_0x3123c9<_0x3d3240['length'];_0x3123c9++){const _0x52f416={'id':_0x236d24(0x1f4),'params':{'unitId':_0x3d3240[_0x3123c9][_0x236d24(0x213)],..._0x3d3240[_0x3123c9][_0x236d24(0x3ff)]}},_0x3e1523=this[_0x236d24(0x3d4)][_0x236d24(0x25c)](_0x461dc3,_0x52f416,!0x1);if(_0x4891f8(_0x3e1523))throw _0x3e1523[_0x236d24(0x3e9)];_0x461dc3=_0x3e1523[_0x236d24(0x357)];}return{..._0x2fb330[_0x236d24(0x301)](_0x232411),'mutations':[_0x461dc3]};}[_0x7f8acc(0x3a1)](_0x424863){const _0x2b1fe3=_0x7f8acc,{unitID:_0x5e0df4}=_0x424863,{history:_0x472b5b,collaboration:_0x2d84ed}=this[_0x2b1fe3(0x411)][_0x2b1fe3(0x2dd)](_0x5e0df4);if(_0x472b5b['length']===0x0&&_0x2d84ed[_0x2b1fe3(0x277)]===0x0)return;const _0x32b849=[],_0x389ba1=[];let _0x166a2b=_0x2fb330['deepClone'](_0x424863['mutations'][0x0]),_0x406d8b=_0x2fb330[_0x2b1fe3(0x301)](_0x424863[_0x2b1fe3(0x2e9)][0x0]);for(let _0x7117b5=_0x472b5b[_0x2b1fe3(0x277)]-0x1;_0x7117b5>=0x0;_0x7117b5--){const _0x55bd53={'id':_0x2b1fe3(0x1f4),'params':{'unitId':_0x472b5b[_0x7117b5][_0x2b1fe3(0x213)],..._0x472b5b[_0x7117b5]['undoState']}},_0x5df198={'id':_0x2b1fe3(0x1f4),'params':{'unitId':_0x472b5b[_0x7117b5][_0x2b1fe3(0x213)],..._0x472b5b[_0x7117b5][_0x2b1fe3(0x3ff)]}},_0x56d5d9=this[_0x2b1fe3(0x3d4)][_0x2b1fe3(0x25c)](_0x166a2b,_0x55bd53,!0x1),_0x4b90b2=this[_0x2b1fe3(0x3d4)]['transformMutation'](_0x406d8b,_0x5df198,!0x1);if(_0x4891f8(_0x56d5d9))throw _0x56d5d9[_0x2b1fe3(0x3e9)];if(_0x4891f8(_0x4b90b2))throw _0x4b90b2['error'];_0x32b849[_0x2b1fe3(0x383)]({..._0x472b5b[_0x7117b5],'undoState':_0x56d5d9[_0x2b1fe3(0x2fd)][_0x2b1fe3(0x302)],'redoState':_0x4b90b2['m2Prime'][_0x2b1fe3(0x302)]}),_0x166a2b=_0x56d5d9[_0x2b1fe3(0x357)],_0x406d8b=_0x4b90b2[_0x2b1fe3(0x357)];}_0x166a2b=_0x2fb330['deepClone'](_0x424863['mutations'][0x0]),_0x406d8b=_0x2fb330[_0x2b1fe3(0x301)](_0x424863[_0x2b1fe3(0x2e9)][0x0]);for(let _0x1c82b3=_0x2d84ed[_0x2b1fe3(0x277)]-0x1;_0x1c82b3>=0x0;_0x1c82b3--){const _0x54eb5f={'id':_0x2b1fe3(0x1f4),'params':{'unitId':_0x2d84ed[_0x1c82b3][_0x2b1fe3(0x213)],..._0x2d84ed[_0x1c82b3][_0x2b1fe3(0x2d8)]}},_0x5af75b={'id':_0x2b1fe3(0x1f4),'params':{'unitId':_0x2d84ed[_0x1c82b3][_0x2b1fe3(0x213)],..._0x2d84ed[_0x1c82b3][_0x2b1fe3(0x3ff)]}},_0x4d456f=this[_0x2b1fe3(0x3d4)]['transformMutation'](_0x166a2b,_0x54eb5f,!0x1),_0x4f0a2b=this[_0x2b1fe3(0x3d4)][_0x2b1fe3(0x25c)](_0x406d8b,_0x5af75b,!0x1);if(_0x4891f8(_0x4d456f))throw _0x4d456f[_0x2b1fe3(0x3e9)];if(_0x4891f8(_0x4f0a2b))throw _0x4f0a2b[_0x2b1fe3(0x3e9)];_0x389ba1[_0x2b1fe3(0x383)]({..._0x2d84ed[_0x1c82b3],'undoState':_0x4d456f[_0x2b1fe3(0x2fd)][_0x2b1fe3(0x302)],'redoState':_0x4f0a2b[_0x2b1fe3(0x2fd)][_0x2b1fe3(0x302)]}),_0x166a2b=_0x4d456f['m1Prime'],_0x406d8b=_0x4f0a2b[_0x2b1fe3(0x357)];}this[_0x2b1fe3(0x411)]['setStateCache'](_0x5e0df4,{'history':_0x32b849,'collaboration':_0x389ba1});}};ue=In([Le(0x0,_0xe86757(_0x24194e)),Le(0x1,_0xa0bd0),Le(0x2,_0xe86757(_0x51c2ae))],ue);var mn=Object['getOwnPropertyDescriptor'],fn=(_0x32f2f4,_0x23fe8e,_0x50c261,_0x40c812)=>{const _0x1d8955=_0x7f8acc;for(var _0x1efd1f=_0x40c812>0x1?void 0x0:_0x40c812?mn(_0x23fe8e,_0x50c261):_0x23fe8e,_0x1104d8=_0x32f2f4[_0x1d8955(0x277)]-0x1,_0x56e14e;_0x1104d8>=0x0;_0x1104d8--)(_0x56e14e=_0x32f2f4[_0x1104d8])&&(_0x1efd1f=_0x56e14e(_0x1efd1f)||_0x1efd1f);return _0x1efd1f;},ht=(_0x3ca5bb,_0x12dc88)=>(_0x159bf5,_0x14fa12)=>_0x12dc88(_0x159bf5,_0x14fa12,_0x3ca5bb);let de=class{constructor(_0x16813f,_0x2c7432){const _0x44f383=_0x7f8acc;this[_0x44f383(0x43b)]=_0x16813f,this[_0x44f383(0x3d4)]=_0x2c7432;}[_0x7f8acc(0x3d5)](_0x1909fc){const _0x20f52f=_0x7f8acc;var _0x31cb09;const _0x337667=this['_injector']['get'](_0x13e01a),_0x5df903=(_0x31cb09=_0x337667[_0x20f52f(0x325)]())!=null?_0x31cb09:[];if(_0x5df903[_0x20f52f(0x277)]===0x0)return;const _0x455d24=_0x1909fc['unitID'],_0x23e97f=[{'id':_0x20f52f(0x1f4),'params':{'unitId':_0x455d24,'actions':null,'textRanges':_0x5df903}}],_0x43897b=this[_0x20f52f(0x3d4)][_0x20f52f(0x32d)](_0x1909fc,_0x23e97f);if(!_0x59f6fd(_0x43897b))throw _0x43897b[_0x20f52f(0x3e9)];const _0x4e253f=_0x43897b['m2Prime'][0x0][_0x20f52f(0x302)][_0x20f52f(0x363)];Array[_0x20f52f(0x352)](_0x4e253f)&&_0x4e253f[_0x20f52f(0x277)]&&_0x337667[_0x20f52f(0x321)](_0x4e253f,{'unitId':_0x455d24,'subUnitId':_0x455d24},!0x1);}};de=fn([ht(0x0,_0xe86757(_0x24194e)),ht(0x1,_0xa0bd0)],de);var gn=Object[_0x7f8acc(0x404)],En=(_0x20e8ab,_0x245d31,_0x4689d4,_0x174be3)=>{const _0x2aa2f6=_0x7f8acc;for(var _0x33f2da=_0x174be3>0x1?void 0x0:_0x174be3?gn(_0x245d31,_0x4689d4):_0x245d31,_0x39f741=_0x20e8ab[_0x2aa2f6(0x277)]-0x1,_0x4b2d5b;_0x39f741>=0x0;_0x39f741--)(_0x4b2d5b=_0x20e8ab[_0x39f741])&&(_0x33f2da=_0x4b2d5b(_0x33f2da)||_0x33f2da);return _0x33f2da;},U=(_0x569da6,_0xe151a0)=>(_0x38ccc4,_0x520311)=>_0xe151a0(_0x38ccc4,_0x520311,_0x569da6);let Se=class extends _0x561bf0{constructor(_0xa2fd8f,_0x45672f,_0x359198,_0x3b333b,_0x1bfb82,_0xf2ece4,_0x1fef84,_0x7b42d){const _0x359a6f=_0x7f8acc;super(),_(this,'_status$',new _0x2bbfbf(_0x4fc8bc['NOT_COLLAB'])),(this[_0x359a6f(0x411)]=_0xa2fd8f,this['_collaborationController']=_0x45672f,this[_0x359a6f(0x214)]=_0x359198,this[_0x359a6f(0x31e)]=_0x3b333b,this['_docTransformSelectionsService']=_0x1bfb82,this['_docSyncEditingCollabCursorService']=_0xf2ece4,this['_messageService']=_0x1fef84,this[_0x359a6f(0x253)]=_0x7b42d,this['_initEntityListener']());}['_initEntityListener'](){const _0x1050b6=_0x7f8acc;this[_0x1050b6(0x2f4)](this[_0x1050b6(0x398)][_0x1050b6(0x20e)][_0x1050b6(0x409)](_0xdfe16a=>{const _0x5124df=_0x1050b6,_0x5333ce=this['_docStateChangeManagerService'][_0x5124df(0x23e)][_0x5124df(0x409)](_0x2b3e8a=>{const _0x812987=_0x5124df;if(_0x2b3e8a==null)return;const {unitId:_0x3307ec,redoState:_0x2fb825,commandId:_0x37f10c}=_0x2b3e8a;if(_0x3307ec!==_0xdfe16a[_0x812987(0x42d)])return;const _0x10e8b7={'id':_0x37f10c,'type':_0x5686c8[_0x812987(0x372)],'params':{'unitId':_0x3307ec,'actions':_0x2fb825['actions'],'textRanges':null}};_0xdfe16a[_0x812987(0x3f4)](_0x10e8b7);});if(_0xdfe16a['disposeWithMe'](_0x5333ce),_0xdfe16a instanceof _0x4f28ea){const _0x5b609b={'onTransformIME':_0x3b7034=>this['_docTransformIMECacheService']['transformIMECache'](_0x3b7034),'onTransformState':_0x235e61=>this[_0x5124df(0x31e)][_0x5124df(0x28f)](_0x235e61),'onTransformSelections':_0x484b35=>this['_docTransformSelectionsService'][_0x5124df(0x3d5)](_0x484b35),'onSyncEditingCollabCursor':_0x1bfd7a=>this[_0x5124df(0x2da)][_0x5124df(0x3ab)](_0x1bfd7a),'onTransformRemoteChangesetByIMECache':_0x268cac=>this[_0x5124df(0x214)][_0x5124df(0x2a4)](_0x268cac),'onTransformRemoteChangesetByStateCache':_0x43a6bc=>this[_0x5124df(0x31e)][_0x5124df(0x2a4)](_0x43a6bc)};_0xdfe16a[_0x5124df(0x424)](_0x5b609b);}}));}};Se=En([U(0x0,_0xe86757(_0x51c2ae)),U(0x1,_0xe86757(_0x266ed1)),U(0x2,_0xe86757(he)),U(0x3,_0xe86757(ue)),U(0x4,_0xe86757(de)),U(0x5,_0xe86757(ze)),U(0x6,_0x44b101),U(0x7,_0xe86757(_0x21bb66))],Se);var Z=(_0x446874=>(_0x446874[_0x446874['UNDEFINED']=0x0]=_0x7f8acc(0x41e),_0x446874[_0x446874['OK']=0x1]='OK',_0x446874[_0x446874[_0x7f8acc(0x251)]=0x2]=_0x7f8acc(0x251),_0x446874[_0x446874[_0x7f8acc(0x34e)]=0x3]=_0x7f8acc(0x34e),_0x446874[_0x446874[_0x7f8acc(0x24c)]=0x4]='NOT_FOUND',_0x446874[_0x446874[_0x7f8acc(0x27c)]=0x5]=_0x7f8acc(0x27c),_0x446874[_0x446874['ALREADY_EXISTS']=0x6]=_0x7f8acc(0x3c7),_0x446874[_0x446874[_0x7f8acc(0x264)]=0x7]=_0x7f8acc(0x264),_0x446874[_0x446874['TOO_MANY_REQUESTS']=0x8]=_0x7f8acc(0x2bc),_0x446874[_0x446874[_0x7f8acc(0x34d)]=0x9]=_0x7f8acc(0x34d),_0x446874[_0x446874[_0x7f8acc(0x339)]=0xa]='LOGIN_FAILED',_0x446874[_0x446874[_0x7f8acc(0x233)]=0xb]=_0x7f8acc(0x233),_0x446874[_0x446874[_0x7f8acc(0x394)]=0xc]=_0x7f8acc(0x394),_0x446874[_0x446874[_0x7f8acc(0x35d)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x446874[_0x446874[_0x7f8acc(0x3ba)]=0xe]=_0x7f8acc(0x3ba),_0x446874[_0x446874[_0x7f8acc(0x20d)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x446874[_0x446874['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x7f8acc(0x38b),_0x446874[_0x446874[_0x7f8acc(0x26a)]=0x64]=_0x7f8acc(0x26a),_0x446874[_0x446874['ERROR_AGAIN']=0x65]=_0x7f8acc(0x2af),_0x446874[_0x446874['USER_NOT_FOUND']=0xc9]=_0x7f8acc(0x3d2),_0x446874[_0x446874[_0x7f8acc(0x252)]=0xca]='USER_IS_ANONYMOUS',_0x446874[_0x446874[_0x7f8acc(0x22d)]=0x1389]=_0x7f8acc(0x22d),_0x446874[_0x446874['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x446874[_0x446874['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x7f8acc(0x21d),_0x446874[_0x446874[_0x7f8acc(0x414)]=0x1773]=_0x7f8acc(0x414),_0x446874[_0x446874[_0x7f8acc(0x212)]=0x1b59]=_0x7f8acc(0x212),_0x446874[_0x446874[_0x7f8acc(0x425)]=0x1b5a]=_0x7f8acc(0x425),_0x446874[_0x446874[_0x7f8acc(0x21b)]=0x1b5b]=_0x7f8acc(0x21b),_0x446874[_0x446874[_0x7f8acc(0x3d6)]=0x1b5c]=_0x7f8acc(0x3d6),_0x446874[_0x446874['APPLY_DUPLICATED']=0x1b5d]=_0x7f8acc(0x230),_0x446874[_0x446874[_0x7f8acc(0x30d)]=0x1f41]=_0x7f8acc(0x30d),_0x446874[_0x446874[_0x7f8acc(0x20a)]=0x2329]=_0x7f8acc(0x20a),_0x446874[_0x446874[_0x7f8acc(0x3c2)]=0x232a]=_0x7f8acc(0x3c2),_0x446874[_0x446874['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x7f8acc(0x39e),_0x446874[_0x446874['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x446874[_0x446874[_0x7f8acc(0x327)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x446874[_0x446874['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x7f8acc(0x388),_0x446874[_0x446874[_0x7f8acc(0x239)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x446874[_0x446874[_0x7f8acc(0x313)]=0x2713]=_0x7f8acc(0x313),_0x446874[_0x446874['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x7f8acc(0x41f),_0x446874[_0x446874[_0x7f8acc(0x2c5)]=0x271a]=_0x7f8acc(0x2c5),_0x446874[_0x446874[_0x7f8acc(0x237)]=0x271b]=_0x7f8acc(0x237),_0x446874[_0x446874[_0x7f8acc(0x37a)]=0x271c]=_0x7f8acc(0x37a),_0x446874[_0x446874['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x7f8acc(0x3b8),_0x446874[_0x446874['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x7f8acc(0x3bd),_0x446874[_0x446874[_0x7f8acc(0x1ea)]=0x271f]=_0x7f8acc(0x1ea),_0x446874[_0x446874[_0x7f8acc(0x2a8)]=0x2720]=_0x7f8acc(0x2a8),_0x446874[_0x446874[_0x7f8acc(0x2c2)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x446874[_0x446874['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x446874[_0x446874[_0x7f8acc(0x219)]=0x2ee2]=_0x7f8acc(0x219),_0x446874[_0x446874[_0x7f8acc(0x2b3)]=0x2ee3]=_0x7f8acc(0x2b3),_0x446874[_0x446874[_0x7f8acc(0x29f)]=0x2ee4]=_0x7f8acc(0x29f),_0x446874[_0x446874['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x7f8acc(0x36a),_0x446874[_0x446874[_0x7f8acc(0x382)]=0x32c9]=_0x7f8acc(0x382),_0x446874[_0x446874[_0x7f8acc(0x2f2)]=0x32ca]=_0x7f8acc(0x2f2),_0x446874[_0x446874[_0x7f8acc(0x2f5)]=0x32cb]=_0x7f8acc(0x2f5),_0x446874[_0x446874[_0x7f8acc(0x3c0)]=0x36b1]=_0x7f8acc(0x3c0),_0x446874[_0x446874[_0x7f8acc(0x1f3)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x446874[_0x446874[_0x7f8acc(0x2fc)]=0x36b3]=_0x7f8acc(0x2fc),_0x446874[_0x446874['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x446874[_0x446874[_0x7f8acc(0x324)]=0x36b5]=_0x7f8acc(0x324),_0x446874[_0x446874[_0x7f8acc(0x2ff)]=0x36b6]=_0x7f8acc(0x2ff),_0x446874[_0x446874['ENTITLE_COUPON_USED_UP']=0x36b7]='ENTITLE_COUPON_USED_UP',_0x446874[_0x446874[_0x7f8acc(0x315)]=0x36b8]=_0x7f8acc(0x315),_0x446874[_0x446874[_0x7f8acc(0x23c)]=0x3715]=_0x7f8acc(0x23c),_0x446874[_0x446874[_0x7f8acc(0x1f5)]=0x3716]=_0x7f8acc(0x1f5),_0x446874[_0x446874[_0x7f8acc(0x240)]=0x3717]=_0x7f8acc(0x240),_0x446874[_0x446874[_0x7f8acc(0x2db)]=0x37dd]=_0x7f8acc(0x2db),_0x446874[_0x446874['REDEMPTION_INVALID_CODE']=0x3a99]='REDEMPTION_INVALID_CODE',_0x446874[_0x446874[_0x7f8acc(0x2cd)]=0x3a9a]=_0x7f8acc(0x2cd),_0x446874[_0x446874[_0x7f8acc(0x3d9)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x446874[_0x446874[_0x7f8acc(0x1eb)]=0x3a9c]=_0x7f8acc(0x1eb),_0x446874[_0x446874['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x7f8acc(0x3a5),_0x446874[_0x446874[_0x7f8acc(0x432)]=0x3a9e]=_0x7f8acc(0x432),_0x446874[_0x446874['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x7f8acc(0x3d0),_0x446874[_0x446874['DATA_SOURCE_TOO_LARGE']=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x446874[_0x446874[_0x7f8acc(0x360)]=-0x1]=_0x7f8acc(0x360),_0x446874))(Z||{});function vn(_0x54d15a){const _0x427b59=_0x7f8acc;var _0x39d0be,_0x207d7a;const _0x22177d=(_0x39d0be=_0x54d15a[_0x427b59(0x3aa)])==null?void 0x0:_0x39d0be['stage'],_0x14bfe1=((_0x207d7a=_0x54d15a['stageInfo'])==null?void 0x0:_0x207d7a[_0x427b59(0x3fb)])||0x0;return _0x22177d===_0x3241a4[_0x427b59(0x351)]&&_0x14bfe1>0x0;}function pn(_0x3c2940){const _0x29bb0c=_0x7f8acc;return _0x3c2940[_0x29bb0c(0x3ed)]===_0x3d3478[_0x29bb0c(0x3d1)];}var On=Object[_0x7f8acc(0x404)],Tn=(_0x5e2287,_0x5ab245,_0x5a9414,_0x5ed699)=>{const _0x40f54c=_0x7f8acc;for(var _0x518f59=_0x5ed699>0x1?void 0x0:_0x5ed699?On(_0x5ab245,_0x5a9414):_0x5ab245,_0x31eadc=_0x5e2287[_0x40f54c(0x277)]-0x1,_0x1f806e;_0x31eadc>=0x0;_0x31eadc--)(_0x1f806e=_0x5e2287[_0x31eadc])&&(_0x518f59=_0x1f806e(_0x518f59)||_0x518f59);return _0x518f59;},P=(_0x21d82a,_0x3aa02f)=>(_0x2e91c5,_0x7b8ffb)=>_0x3aa02f(_0x2e91c5,_0x7b8ffb,_0x21d82a);function _0x4ffd(){const _0x1ec370=['_hovered','toString','pushState','ERROR_AGAIN','clipPath','body','children','INVITE_CODE_REQUIRED','selections','_collabSessionService','HEADER_MENU','_docSkeleton','searchParams','href','send','[LogService\x20Error]:\x20','TOO_MANY_REQUESTS','onPointerEnter$','get','Error','collabStatus.notCollab','collab-text-anchor-','PY_RUNTIME_SCRIPT_ERROR','getActiveSheet','session.connection-failed','YUUMI_NO_CUBOID_FOR_QUESTION','_uploadLog','reason','_online','lineTo','setAlpha','roomMembers$','data','REDEMPTION_CODE_INACTIVE','_scheduleClearOtherTimer','_heartbeatTimer','_startCalculationLimit','VIEW_MAIN','with','_maxFormulaLimit','getTypeOfUnitAdded$','addObject','restore','use','undoState','attrs','_docSyncEditingCollabCursorService','ENTITLE_NEED_BILLING_ADDRESS','flatMap','getStateCache','uni.network.url-service','getMemberID','_initCommandInterceptor','svg','setActiveRange','_currentUsage','RemoveColCommandId','_colorAssignService','_updateCollabCursors','subscribeEvent','fillText','mutations','sheetId','collaboration.closeRoom','_session','DeleteRangeMoveLeftCommandId','/universer-api/license/formula/limit/start','jiqing.500','sessionStatus$','event$','MOBILE_HAS_BEEN_BOUND','currentTheme$','disposeWithMe','EMAIL_HAS_BEEN_BOUND','_updateSubUnitFromURLParams','unsubscribe','clearTimeout','skeleton','message','/run/','ENTITLE_DUP_SUBSCRIPTION','m2Prime','selection','ENTITLE_COUPON_EXPIRED','currentColor','deepClone','params','UNIVER_DOC','resize','maxFormulaLimit','_colorIndex','_configService','delete','JOIN_ROOM_FAILED','currentSkeleton$','collab-client.tooltip.reconnect','_getSheetObject','CONNECTOR_DATA_TOO_LARGE','OffLineIcon','join','onRendered','_messageService','_saveCache','YUUMI_RATE_OVER_LIMIT','_entities','ENTITLE_USE_COUPON_NOT_1ST_TRADE','registerComponent','_document','isActive','getRelativeToViewportCoord','setShapeProps','getActiveRange','_urlService','_hasFormulaInDirtyRanges','_docTransformStateCacheService','assign','_cursors','replaceDocRanges','http://www.w3.org/2000/svg','getSkeleton','ENTITLE_INVALID_COUPON_CODE','getDocRanges','limitInfo','LICENSE_DISTRO_REJECTED','disposeUnit','[Window\x20Error]:\x20','top','_refRangeService','_clearOtherTimers','transformMutationsWithChangeset','232008DFeNtr','onTransformChange$','random','url(#off-line-icon_clip0_910_343)','requireSession','labelPosition','Success','setUndoRedoMutationParamsCache','values','string','_initStatusListener','LOGIN_FAILED','[CollaborationDataLoaderController]','storage','getSheetBySheetId','range','map','stringify','code','TEXT','_cursorInfo$','replaceState','registerBeforeClose','getMember','_setFormulaLimitStatus','_setupBeforeClosingHandler','_getAnchorBounding','current','_drawTextRange','measureText','_handleEvent','COMPLETION_FINISHED','PERMISSION_DENIED','_onRefRangeChange','createSocket','START_CALCULATION','isArray','executeCommand','registerRefRange','all','reconnect','m1Prime','column','_cursor','split','disableLocalCache','getUnit','EMAIL_VERIFY_CODE_MISMATCH','/universer-api/license/formula/limit/status','_startSheetCollabCursor','UNRECOGNIZED','then','getFocusedUnit','textRanges','backgroundColor','endRow','startColumn','1em','Unknown\x20user','_backgroundColor','INVITE_CODE_ALREADY_BOUND','getItem','startRow','_id','whenReady','21495lZzzuT','_send','permission.title','MUTATION','_showGuardMessage','_scene','currentUsage','RemoveRowCommandId','evenodd','_createSocketURL','on-line-icon_clip0_910_349','YUUMI_TABLE_NOT_FOUND_IN_UNIT','UPDATE_CURSOR','_transformUndoRedoStack','text','stack','getConfig','subUnitId','xlink:href','WECHAT_HAS_BEEN_BOUND','unshift','setParam','startFormulaLimitUrl','subunit','now','YUUMI_UNABLE_LOAD_URL','InsertRowCommandId','176GthZnR','LOGIN_TOKEN_PROCESSING_FAILED','closePath','_docSkeletonManagerService','from','executionId','forEach','\x20at\x20','_syncEditingCollabCursorService','_anchorDot','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','url(#$1','getCellMatrix','exhaustSavingTask','_collaborationController','_initCommandExecutedListener','_cursorShapes','formula.calculation.started','url(#on-line-icon_clip0_910_349)','set','LICENSE_IMPORT_SIZE_EXCEEDED','red.300','_handleLeaveEvent','_transformHistoryAndStateStack','_setupSubUnitSync','_hideTimer','drawWith','REDEMPTION_USER_NOT_ELIGIBLE','?taskId=','activeSheet$','_docClipboardService','...','stageInfo','syncEditingCollabCursor','addClipboardHook','formula.calculation.waiting','_univerInstanceService','displayName','addEventListener','application/json','collabStatus.offline','_logService','_applyCommand','_initResize','M0\x200H16V16H0z','33kQROvh','YUUMI_ALL_TABLES_IS_INVALID','getCurrentUnitForType','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','CONFLICT','_toggleOnline','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','getVpScrollXYInfoByPosToVp','rgba(255,\x20255,\x20255,\x200.01)','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_selfUnitIDs','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','clearInterval','_httpService','_getFormulaLimitStatus','defineProperty','ALREADY_EXISTS','getColorFromTheme','symbol','_drawAnchor','_notificationService','getUndoRedoMutationParamsCache','onCommandExecuted','OTHER_CLIENTS_EDITING','_localStorageService','REDEMPTION_CODE_HAS_BEEN_CREATED','SUCCESS','USER_NOT_FOUND','save','_transformService','transformSelections','APPLY_PERMISSION_DENIED','off-line-icon_clip0_910_343','newValue','REDEMPTION_CODE_FULLY_REDEEMED','_releaseCalculationLimit','collab-rect-range-','_collabCursorController','unload','_themeService','init','fill','getValue','session.collaboration-timeout','_anchor','history','find','complete','getformulaLimitStatusUrl','getAncestorScale','error','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','green.600','_context','functionsExecutedState','translate(.97)','name','black','_removeCollabCursors','_toggleOffline','_memberService','onLocalMutation','130AWiRJD','_cachedData','session.will-retry','getRangePointData','toRgbString','socket$','totalFormulasToCalculate','_name','saveTaskMap','enableFrontendLog','redoState','onMouseMove','getRenderById','_initDependencies','_ensureSubject','getOwnPropertyDescriptor','updateOfflineData','_assignedColors','editingUnit','status$','subscribe','0\x200\x2016\x2016','font','roomMembers','endColumn','_lastResponseTimestamp','height','Warning','_docStateChangeManagerService','_getMergeRange','loadOfflineData','ENSURE_SNAPSHOT_EXECUTION','CLOSE_ROOM','asObservable','_saveTaskMap','_transformPreviousActiveRange','NO_OTHER_CLIENTS_EDITING','Failed','sheetID','_disabled','getViewport','UNDEFINED','YUUMI_SUBSCRIPTION_NOT_FOUND','_clearPolling','replace','getCurrent','colno','addHandlerCallback','APPLY_NON_SEQUENTIAL_REVISION','_draw','_startDocCollabCursor','setItem','_unitStatus','AWAITING_WITH_PENDING','_handleHeartbeatEvent','entries','unitID','type','hovered','_monkeyPatchLogService','none','REDEMPTION_USER_REDEEM_TIMES_EXCEED','parse','off-line-icon','row','collabStatus.conflict','next','_taskIds','min','ticket','_injector','_onCursorDelete','getCollabCursors$','InsertColCommandId','runOnServer','_color','_lastPointer','yellow.400','transformIMECache','YUUMI_AI_RUN_FAILED','REDEMPTION_CODE_NOT_STARTED','wsSessionTicketUrl','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_hover','FromArray','makeDirty','OnLineIcon','_initStatusComponent','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','doc.mutation.rich-text-editing','ENTITLE_REPORT_LIMIT_EXCEED','formula.calculation.unable','onPointerLeave$','FETCH_MISS','pipe','_commandService','invokeId','_registerDependencies','1682eYbCkY','popstate','15942446xrXRNj','getSheetId','width','bottom','lineno','show','search','includes','add','_status$','registerRenderModule','LICENSE_MAX_UNITS_EXCEEDED','/universer-api/license/formula/limit/done','_initWindowErrorListener','AUTHORIZE_CODE_ILLEGAL','entityInit$','assignAColorForMemberID','startsWith','push','APPLY_REJECT','unitId','_docTransformIMECacheService','getUnitId','origin','_labelPosition','findNodePositionByCharIndex','INVALID_INVITE_CODE','path','APPLY_REVISION_CONFILICT','debug','SNAPSHOT_HAS_BEEN_REMOVED','_imageIoService','beginPath','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','DeleteRangeMoveUpCommandId','getCurrentRevOfUnit','_removeClearOtherTimer','eventID','_init','colorChannel1','memberID','_handleHover','ranges','hide','removeParam','_onCursorUpdate','CHANGESET_REVISION_CONFILICT','beforeCommandExecuted','white','APPLY_DUPLICATED','[Unhandled\x20Rejection]:\x20','imageSourceType','MOBILE_VERIFY_CODE_MISMATCH','parseInt','_pollingInterval','_range','YUUMI_ASYNCIO_CANCELLED','createInstance','YUUMI_URL_COL_OUT_OF_RANGE','_registerRenderDependencies','105bfNvdW','ENTITLE_CHAT_LIMIT_EXCEED','_collaborationSessionService','docStateChange$','transform','ENTITLE_INSUFFICIENT_QUOTA','_scheduleSaving','195204YzpcKr','shift','_config','_eventUnsubscribe','_getSaveTimeout','cursorInfo','onPointerMove$','_textBubble','idSuffix','getParam','NOT_FOUND','some','collaboration-client-ui.config','dispose','_instanceService','INTERNAL_ERROR','USER_IS_ANONYMOUS','_localeService','InsertRangeMoveDownCommandId','_handleJoinEvent','_shapes','round','key','source','unhandledrejection','USERS_LEAVE','transformMutation','349173gyHHvB','_updateLocalCursor','arc','_checkCalculationAvailable','_drawRectRange','372ublDLe','focused$','INVALID_ARGUMENT','mask','bind','_initUserListener','unit','tag','CURRENT_STATUS_CANNOT_OPERATE','_uiPartsService','urlChange$','_roomMembers$','runId','fillRule','getCellPositionByOffset','cursorInfo$','trim','UNIVER_SHEET','_memberID','_scheduleHeartbeat','collabStatus.synced','length','17046dDVUYU','blue.400','8KGjvOJ','_render','UNAUTHENTICATED','0\x200\x2017\x2016','collabStatus.fetchMiss','_unitOnClients','addObjects','SOCKET_FAILED_RETRY','setTimeout','_sheetSkeletonManagerService','_checkAndWaitForCalculationPermission','_updateURLWithCurrentState','catch','OFFLINE','_initUnhandledRejectionListener','collabCursorState$','RECT','NOT_COLLAB','on-line-icon','has','_dataLoaderService','transformStateCache','defIds','permission.content','_beforeCloseService','_collabCursorState$','_renderManagerService','_entityInit$','ONLINE','color','onStarting','saveImage','getUnitStatus$','location','sessionTicket','_doCreateSocket','dispose$','USER_NOT_INVITED_CODE','div','MoveRangeCommandId','SYNCED','collabStatus.syncing','transformRemoteChangeset','post','_revisionService','defs','YUUMI_CONNECTOR_URL_NOT_FOUND','UniverIcon','removeEventListener','size'];_0x4ffd=function(){return _0x1ec370;};return _0x4ffd();}const Cn=_0x7f8acc(0x35e),Rn=_0x7f8acc(0x2ee),Dn=_0x7f8acc(0x20b);let Ie=class extends _0x561bf0{constructor(_0x2eba93,_0x50d45b,_0xd72316,_0x362205,_0xe20f1d,_0x5d3d95,_0x23f64a){const _0x213b11=_0x7f8acc;super(),_(this,_0x213b11(0x235),null),_(this,_0x213b11(0x2d3),0x0),_(this,_0x213b11(0x2e3),0x0),_(this,_0x213b11(0x438),[]),_(this,_0x213b11(0x40e),0x0),(this[_0x213b11(0x311)]=_0x2eba93,this[_0x213b11(0x1fa)]=_0x50d45b,this[_0x213b11(0x307)]=_0xd72316,this[_0x213b11(0x3c4)]=_0x362205,this[_0x213b11(0x3ae)]=_0xe20f1d,this['_logService']=_0x5d3d95,this['_localeService']=_0x23f64a,this[_0x213b11(0x2e0)]());}[_0x7f8acc(0x2e0)](){const _0x3d0220=_0x7f8acc;this['disposeWithMe'](this[_0x3d0220(0x1fa)][_0x3d0220(0x22e)]((_0x55de01,_0x51bc2b)=>{const _0x10c03c=_0x3d0220;var _0x55a1cc;if(_0x55de01['id']!==_0x3e888a['id'])return;const _0x16dc56=_0x55de01[_0x10c03c(0x302)];if(!this[_0x10c03c(0x31d)]((_0x55a1cc=_0x16dc56['dirtyRanges'])!=null?_0x55a1cc:[]))return;if(!this[_0x10c03c(0x260)]())throw this[_0x10c03c(0x284)](_0x55de01,_0x51bc2b),this[_0x10c03c(0x373)](),new _0x2fd875();})),this[_0x3d0220(0x2f4)](this[_0x3d0220(0x1fa)][_0x3d0220(0x3cd)]((_0x24218a,_0x32d17f)=>{const _0x49d995=_0x3d0220;if(_0x24218a['id']!==_0x12df4d['id'])return;const _0x24e3da=_0x24218a[_0x49d995(0x302)];if(vn(_0x24e3da)){const _0x11fb63=_0x21630d();this[_0x49d995(0x438)][_0x49d995(0x211)](_0x11fb63),this[_0x49d995(0x2d0)](_0x11fb63);}else{if(pn(_0x24e3da)&&this[_0x49d995(0x438)][_0x49d995(0x277)]>0x0){const _0x4ee12b=this['_taskIds'][_0x49d995(0x243)]();this[_0x49d995(0x3da)](_0x4ee12b);}}}));}[_0x7f8acc(0x24f)](){const _0x19e96d=_0x7f8acc;super[_0x19e96d(0x24f)](),this[_0x19e96d(0x420)](),this[_0x19e96d(0x438)]=[],this['_currentUsage']=0x0,this[_0x19e96d(0x2d3)]=0x0,this[_0x19e96d(0x40e)]=0x0;}async[_0x7f8acc(0x284)](_0xe4906a,_0x5dc98b){const _0x48c3ca=_0x7f8acc;for(let _0x353353=0x0;_0x353353<0x1e;_0x353353++)try{if(await this[_0x48c3ca(0x3c5)](),this[_0x48c3ca(0x260)]()){this[_0x48c3ca(0x3b4)](_0xe4906a,_0x5dc98b),this['_messageService'][_0x48c3ca(0x204)]({'content':this['_localeService']['t'](_0x48c3ca(0x39b)),'type':_0x10fa0d[_0x48c3ca(0x334)]});return;}await new Promise(_0x8b495f=>{const _0x32425c=_0x48c3ca;this[_0x32425c(0x235)]=window[_0x32425c(0x282)](_0x8b495f,0x3e8);});}catch(_0x19b2da){this[_0x48c3ca(0x3b3)][_0x48c3ca(0x3e9)](_0x19b2da);}this[_0x48c3ca(0x311)][_0x48c3ca(0x204)]({'content':this[_0x48c3ca(0x253)]['t'](_0x48c3ca(0x1f6)),'type':_0x10fa0d[_0x48c3ca(0x2bf)]});}['_applyCommand'](_0x452767,_0x281185){const _0x3a3a13=_0x7f8acc;try{this['_commandService'][_0x3a3a13(0x353)](_0x452767['id'],_0x452767['params'],_0x281185);}catch(_0x4bb33a){this[_0x3a3a13(0x3b3)][_0x3a3a13(0x3e9)](_0x4bb33a);}}[_0x7f8acc(0x346)](_0x3aebb5,_0x18ec00){const _0x4f29e1=_0x7f8acc;_0x18ec00<this[_0x4f29e1(0x40e)]||(this[_0x4f29e1(0x40e)]=_0x18ec00,this['_maxFormulaLimit']=Number[_0x4f29e1(0x234)](_0x3aebb5[_0x4f29e1(0x305)]),this[_0x4f29e1(0x2e3)]=Number[_0x4f29e1(0x234)](_0x3aebb5[_0x4f29e1(0x375)]));}async[_0x7f8acc(0x2d0)](_0x2922b9){const _0x42935d=_0x7f8acc;var _0x3b967d,_0x4f76f8;const _0xef2c80=Date[_0x42935d(0x387)]();try{const _0x185d21=((_0x3b967d=this[_0x42935d(0x307)][_0x42935d(0x37f)](_0xb08d55))==null?void 0x0:_0x3b967d[_0x42935d(0x385)])||Rn,_0x1ea019=(await this['_httpService'][_0x42935d(0x2a5)](_0x185d21,{'body':JSON[_0x42935d(0x33f)]({'taskId':_0x2922b9})}))[_0x42935d(0x2b1)];if(((_0x4f76f8=_0x1ea019['error'])==null?void 0x0:_0x4f76f8['code'])!==Z['OK'])return;this[_0x42935d(0x346)](_0x1ea019[_0x42935d(0x326)],_0xef2c80);}catch(_0x5445b1){this[_0x42935d(0x3b3)]['error'](_0x5445b1);}}async[_0x7f8acc(0x3c5)](_0x3468b4){const _0xd5517c=_0x7f8acc;var _0xf879a2,_0x47906d;const _0x35ab59=Date['now']();try{const _0x29e4e4=((_0xf879a2=this[_0xd5517c(0x307)]['getConfig'](_0xb08d55))==null?void 0x0:_0xf879a2[_0xd5517c(0x3e7)])||Cn,_0x1e66f5=_0x3468b4?_0x29e4e4+_0xd5517c(0x3a6)+encodeURIComponent(_0x3468b4):_0x29e4e4,_0x1c427b=(await this[_0xd5517c(0x3c4)]['get'](_0x1e66f5))['body'];if(((_0x47906d=_0x1c427b[_0xd5517c(0x3e9)])==null?void 0x0:_0x47906d['code'])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x1c427b['limitInfo'],_0x35ab59);}catch(_0x1ea3f3){this['_logService']['error'](_0x1ea3f3);}}async[_0x7f8acc(0x3da)](_0x981ba9){const _0x5b1646=_0x7f8acc;var _0x3b5955,_0x45bf80;const _0x21411c=Date[_0x5b1646(0x387)]();try{const _0x56fa60=((_0x3b5955=this[_0x5b1646(0x307)][_0x5b1646(0x37f)](_0xb08d55))==null?void 0x0:_0x3b5955['releaseFormulaLimitUrl'])||Dn,_0x527ad9=(await this['_httpService'][_0x5b1646(0x2a5)](_0x56fa60,{'body':JSON[_0x5b1646(0x33f)]({'taskId':_0x981ba9})}))[_0x5b1646(0x2b1)];if(((_0x45bf80=_0x527ad9[_0x5b1646(0x3e9)])==null?void 0x0:_0x45bf80[_0x5b1646(0x340)])!==Z['OK'])return;this[_0x5b1646(0x346)](_0x527ad9['limitInfo'],_0x21411c);}catch(_0x373914){this[_0x5b1646(0x3b3)]['error'](_0x373914);}}['_checkCalculationAvailable'](){const _0x1630a0=_0x7f8acc;return this[_0x1630a0(0x2d3)]===0x0?!0x0:this[_0x1630a0(0x2d3)]-this[_0x1630a0(0x2e3)]>0x0;}[_0x7f8acc(0x420)](){const _0x4653eb=_0x7f8acc;this[_0x4653eb(0x235)]&&(clearTimeout(this[_0x4653eb(0x235)]),this['_pollingInterval']=null);}['_showGuardMessage'](){const _0x3f8ff8=_0x7f8acc;this[_0x3f8ff8(0x311)][_0x3f8ff8(0x204)]({'content':this[_0x3f8ff8(0x253)]['t'](_0x3f8ff8(0x3ad)),'type':_0x10fa0d['Loading']});}[_0x7f8acc(0x31d)](_0x5049da){const _0x565df7=_0x7f8acc;for(const _0x4bba2b of _0x5049da){const {unitId:_0x46a0b3,sheetId:_0x23ac66,range:_0x1268e7}=_0x4bba2b,_0x1a715c=this['_univerInstanceService'][_0x565df7(0x35c)](_0x46a0b3);if(!_0x1a715c)continue;const _0x5b9002=_0x1a715c[_0x565df7(0x33c)](_0x23ac66);if(!_0x5b9002)continue;const _0x2bc991=_0x5b9002[_0x565df7(0x396)]();for(let _0xb9dce1=_0x1268e7[_0x565df7(0x36c)];_0xb9dce1<=_0x1268e7[_0x565df7(0x365)];_0xb9dce1++)for(let _0x1ca6c6=_0x1268e7[_0x565df7(0x366)];_0x1ca6c6<=_0x1268e7[_0x565df7(0x40d)];_0x1ca6c6++){const _0x94d3ab=_0x2bc991['getValue'](_0xb9dce1,_0x1ca6c6);if(_0x94d3ab&&(_0x186c94(_0x94d3ab['f'])||_0x14a082(_0x94d3ab['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0xe86757(_0x44b101)),P(0x1,_0x2049b3),P(0x2,_0x38de65),P(0x3,_0xe86757(_0x943484)),P(0x4,_0x319eb9),P(0x5,_0x2065a5),P(0x6,_0xe86757(_0x21bb66))],Ie);var Nn=Object['getOwnPropertyDescriptor'],bn=(_0x51272a,_0x50a983,_0x101815,_0x279799)=>{const _0x2555c1=_0x7f8acc;for(var _0x3456d3=_0x279799>0x1?void 0x0:_0x279799?Nn(_0x50a983,_0x101815):_0x50a983,_0x216445=_0x51272a[_0x2555c1(0x277)]-0x1,_0x474efd;_0x216445>=0x0;_0x216445--)(_0x474efd=_0x51272a[_0x216445])&&(_0x3456d3=_0x474efd(_0x3456d3)||_0x3456d3);return _0x3456d3;},Ue=(_0x2275b9,_0x468a49)=>(_0x30ccf3,_0xf660c)=>_0x468a49(_0x30ccf3,_0xf660c,_0x2275b9);let He=class extends _0x561bf0{constructor(_0x1f631c,_0xc1b82d,_0x1bfe97){const _0x126230=_0x7f8acc;super(),_(this,'_cachedData',new Map()),_(this,_0x126230(0x417),new Map()),_(this,'_disabled',!0x1),(this['_configService']=_0x1f631c,this['_localStorageService']=_0xc1b82d,this['_revisionService']=_0x1bfe97);}[_0x7f8acc(0x35b)](){const _0x10c048=_0x7f8acc;this[_0x10c048(0x41c)]=!0x0;}['enableLocalCache'](){const _0x503869=_0x7f8acc;this[_0x503869(0x41c)]=!0x1;}get[_0x7f8acc(0x3fd)](){const _0x1efcfb=_0x7f8acc;return this[_0x1efcfb(0x417)];}['dispose'](){const _0x4f8a08=_0x7f8acc;this['exhaustSavingTask']()['then'](()=>super[_0x4f8a08(0x24f)]());}async[_0x7f8acc(0x413)](_0x10ff0e){const _0x20ed5b=_0x7f8acc;return this['_disabled']?null:this[_0x20ed5b(0x3cf)][_0x20ed5b(0x36b)](_0x45f20f(_0x10ff0e));}async['saveOfflineData'](_0x5353ba,_0x3026f6){return!!this['_localStorageService']['setItem'](_0x5353ba,_0x3026f6);}[_0x7f8acc(0x405)](_0x17e526,_0x4dc197,_0x2fa609,_0x16880b){const _0x398648=_0x7f8acc,_0x4bebc9=this[_0x398648(0x2a6)][_0x398648(0x222)](_0x17e526);this[_0x398648(0x3f6)]['set'](_0x17e526,{'unitID':_0x17e526,'type':_0x4dc197,'awaitingChangeset':_0x2fa609,'mutations':_0x16880b,'rev':_0x4bebc9}),this['_saveTaskMap'][_0x398648(0x28d)](_0x17e526)||this[_0x398648(0x241)](_0x17e526);}[_0x7f8acc(0x241)](_0x103740){const _0xb78e2c=_0x7f8acc,_0x9bcad7=this['_getSaveTimeout']();_0x9bcad7===0x0?this[_0xb78e2c(0x312)](_0x103740):this[_0xb78e2c(0x417)][_0xb78e2c(0x39d)](_0x103740,setTimeout(()=>this[_0xb78e2c(0x312)](_0x103740),_0x9bcad7));}[_0x7f8acc(0x246)](){const _0x561110=_0x7f8acc;var _0x3931c1;return(_0x3931c1=this['_configService'][_0x561110(0x37f)](_0x3f63a5))!=null?_0x3931c1:_0x301cfa;}[_0x7f8acc(0x312)](_0x4569c0){const _0x1105aa=_0x7f8acc,_0x301dd2=this[_0x1105aa(0x417)][_0x1105aa(0x2be)](_0x4569c0);return _0x301dd2!==void 0x0&&window[_0x1105aa(0x2f8)](_0x301dd2),this['_localStorageService'][_0x1105aa(0x428)](_0x45f20f(_0x4569c0),this[_0x1105aa(0x3f6)]['get'](_0x4569c0))[_0x1105aa(0x361)](()=>this[_0x1105aa(0x417)][_0x1105aa(0x308)](_0x4569c0));}async[_0x7f8acc(0x397)](){const _0x371324=_0x7f8acc,_0x3489f9=[];this[_0x371324(0x417)]['forEach']((_0x1d3a1d,_0x434925)=>{const _0x35a7e9=_0x371324;window[_0x35a7e9(0x2f8)](_0x1d3a1d),_0x3489f9[_0x35a7e9(0x211)](this[_0x35a7e9(0x312)](_0x434925)[_0x35a7e9(0x361)](()=>{const _0x565029=_0x35a7e9;this[_0x565029(0x417)][_0x565029(0x308)](_0x434925);}));}),await Promise[_0x371324(0x355)](_0x3489f9);}};He=bn([Ue(0x0,_0x38de65),Ue(0x1,_0x53204f),Ue(0x2,_0xe86757(_0x716ef5))],He);class Ln extends _0x24b4d8{constructor(){const _0x5ad545=_0x7f8acc;super(),_(this,_0x5ad545(0x26c)),this[_0x5ad545(0x26c)]=_0x2863c4(window,_0x5ad545(0x1fe))[_0x5ad545(0x1f9)](_0x761d71(this['dispose$']),_0x3c5005(0x1),_0x351ee1(void 0x0));}['setParam'](_0x15980f,_0x2ef097,_0x1a2900=!0x1){const _0x434b58=_0x7f8acc,_0x2f8bb5=new URL(window[_0x434b58(0x29b)][_0x434b58(0x2b9)]);_0x2f8bb5[_0x434b58(0x2b8)][_0x434b58(0x39d)](_0x15980f,_0x2ef097),_0x1a2900?window[_0x434b58(0x3e4)][_0x434b58(0x343)]('','',_0x2f8bb5[_0x434b58(0x2ad)]()):window['history'][_0x434b58(0x2ae)]('','',_0x2f8bb5[_0x434b58(0x2ad)]());}[_0x7f8acc(0x22b)](_0x563836,_0x2c1751=!0x1){const _0x515532=_0x7f8acc,_0x1fa45d=new URL(window[_0x515532(0x29b)][_0x515532(0x2b9)]);_0x1fa45d[_0x515532(0x2b8)][_0x515532(0x308)](_0x563836),_0x2c1751?window[_0x515532(0x3e4)][_0x515532(0x343)]('','',_0x1fa45d[_0x515532(0x2ad)]()):window['history']['pushState']('','',_0x1fa45d[_0x515532(0x2ad)]());}[_0x7f8acc(0x24b)](_0x33e9c2){const _0x34566c=_0x7f8acc;var _0x172977;return(_0x172977=new URL(window[_0x34566c(0x29b)][_0x34566c(0x2b9)])[_0x34566c(0x2b8)][_0x34566c(0x2be)](_0x33e9c2))!=null?_0x172977:void 0x0;}}var Un=Object['defineProperty'],Mn=Object[_0x7f8acc(0x404)],An=(_0x1091f6,_0x2a9261,_0x3f4e23)=>_0x2a9261 in _0x1091f6?Un(_0x1091f6,_0x2a9261,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3f4e23}):_0x1091f6[_0x2a9261]=_0x3f4e23,Pn=(_0x1156e1,_0x384e5a,_0x44c263,_0x533bb5)=>{const _0x4de4c4=_0x7f8acc;for(var _0x5b8bb1=_0x533bb5>0x1?void 0x0:_0x533bb5?Mn(_0x384e5a,_0x44c263):_0x384e5a,_0x4c9f79=_0x1156e1[_0x4de4c4(0x277)]-0x1,_0x5a8b5e;_0x4c9f79>=0x0;_0x4c9f79--)(_0x5a8b5e=_0x1156e1[_0x4c9f79])&&(_0x5b8bb1=_0x5a8b5e(_0x5b8bb1)||_0x5b8bb1);return _0x5b8bb1;},Me=(_0x29074d,_0x5b8a1d)=>(_0x33018d,_0x164076)=>_0x5b8a1d(_0x33018d,_0x164076,_0x29074d),wn=(_0x4fcabe,_0x24f71e,_0x47384b)=>An(_0x4fcabe,_0x24f71e+'',_0x47384b);const yn=_0x7f8acc(0x220);let Ye=class extends _0x4be243{constructor(_0x5b9ec2=_t,_0x22afc9,_0x17327c,_0x5c720a){const _0x3d0b81=_0x7f8acc;super(),this[_0x3d0b81(0x244)]=_0x5b9ec2,this[_0x3d0b81(0x294)]=_0x22afc9,this[_0x3d0b81(0x43b)]=_0x17327c,this[_0x3d0b81(0x307)]=_0x5c720a;const {..._0x2a44a1}=_0x18b46c({},_t,this[_0x3d0b81(0x244)]);this[_0x3d0b81(0x307)]['setConfig'](hn,_0x2a44a1);}[_0x7f8acc(0x298)](){const _0x5e7bb9=_0x7f8acc;this[_0x5e7bb9(0x1fc)](),this[_0x5e7bb9(0x402)]();}[_0x7f8acc(0x310)](){const _0x5e2637=_0x7f8acc;this[_0x5e2637(0x23a)]();}[_0x7f8acc(0x1fc)](){const _0x3fca36=_0x7f8acc;var _0x49fc1c;const _0x1ef25d=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x2776fd,{'useClass':_0x3d008e}],[_0xdd6cb7,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x3fca36(0x244)][_0x3fca36(0x3fe)]&&_0x1ef25d[_0x3fca36(0x211)]([le]),_0x20de22(this[_0x3fca36(0x43b)],_0x449c3d(_0x1ef25d,(_0x49fc1c=this[_0x3fca36(0x244)])==null?void 0x0:_0x49fc1c['override']));}[_0x7f8acc(0x23a)](){const _0x37c284=_0x7f8acc;this[_0x37c284(0x2f4)](this[_0x37c284(0x294)][_0x37c284(0x209)](_0x43c887[_0x37c284(0x303)],[Fe])),this['disposeWithMe'](this[_0x37c284(0x294)]['registerRenderModule'](_0x43c887[_0x37c284(0x273)],[ke]));}[_0x7f8acc(0x402)](){const _0x5db6aa=_0x7f8acc;_0x431a4e(this[_0x5db6aa(0x43b)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x5db6aa(0x244)][_0x5db6aa(0x3fe)]&&_0x431a4e(this[_0x5db6aa(0x43b)],[[le]]);}};function _0x5d9e(_0x15b6f1,_0x14c96b){_0x15b6f1=_0x15b6f1-0x1e5;const _0x4ffd97=_0x4ffd();let _0x5d9ef9=_0x4ffd97[_0x15b6f1];return _0x5d9ef9;}wn(Ye,'pluginName',yn),Ye=Pn([_0x29ab69(_0x59eda8),Me(0x1,_0x2cedfd),Me(0x2,_0xe86757(_0x24194e)),Me(0x3,_0x38de65)],Ye);var $n=Object[_0x7f8acc(0x404)],xn=(_0x319992,_0x26c6ae,_0x256292,_0x41cf5a)=>{const _0x24023e=_0x7f8acc;for(var _0x3c234e=_0x41cf5a>0x1?void 0x0:_0x41cf5a?$n(_0x26c6ae,_0x256292):_0x26c6ae,_0x5a23e5=_0x319992[_0x24023e(0x277)]-0x1,_0x255374;_0x5a23e5>=0x0;_0x5a23e5--)(_0x255374=_0x319992[_0x5a23e5])&&(_0x3c234e=_0x255374(_0x3c234e)||_0x3c234e);return _0x3c234e;},J=(_0x35f5d9,_0x473b4b)=>(_0x5d88e4,_0x50af99)=>_0x473b4b(_0x5d88e4,_0x50af99,_0x35f5d9);let ut=class extends _0x4162d7{constructor(_0x15606e,_0x50b194,_0x2df338,_0x566ba6,_0x6a562c){super(_0x15606e,_0x50b194,_0x2df338,_0x566ba6,_0x6a562c);}async[_0x7f8acc(0x350)](_0x433222){const _0x552828=_0x7f8acc,_0x5d3fcc=await this['_getSessionTicket'](),_0x19c624=this[_0x552828(0x378)](_0x433222,_0x5d3fcc);return this[_0x552828(0x29d)](_0x19c624);}[_0x7f8acc(0x378)](_0x4d4e6d,_0x418f12){const _0x690df0=_0x7f8acc,_0x5c4313=typeof window>'u'?new URL(_0x4d4e6d):new URL(_0x4d4e6d,window['location'][_0x690df0(0x216)]);_0x5c4313['searchParams'][_0x690df0(0x39d)](_0x690df0(0x29c),_0x418f12);const _0x2028f0=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x690df0(0x205)]);return _0x2028f0['get'](_0x690df0(0x26e))&&_0x5c4313[_0x690df0(0x2b8)][_0x690df0(0x39d)](_0x690df0(0x26e),_0x2028f0[_0x690df0(0x2be)]('runId')),_0x5c4313['toString']();}async['_getSessionTicket'](){const _0x369f2e=_0x7f8acc;var _0x4df096,_0x184562,_0x586964;const _0x56cffe=this[_0x369f2e(0x307)][_0x369f2e(0x37f)](_0xb08d55),_0x39531f=(_0x4df096=_0x56cffe==null?void 0x0:_0x56cffe[_0x369f2e(0x1ec)])!=null?_0x4df096:_0xe70929;return(_0x586964=(_0x184562=(await this[_0x369f2e(0x3c4)][_0x369f2e(0x2be)](_0x39531f,{'headers':{'Content-Type':_0x369f2e(0x3b1)}}))[_0x369f2e(0x2b1)])==null?void 0x0:_0x184562[_0x369f2e(0x43a)])!=null?_0x586964:'';}};ut=xn([J(0x0,_0xe86757(_0x24194e)),J(0x1,_0xe86757(_0x943484)),J(0x2,_0x38de65),J(0x3,_0x2065a5),J(0x4,_0x54304d)],ut);var Bn=Object[_0x7f8acc(0x404)],Fn=(_0x1e46ae,_0x49693e,_0x361c8b,_0x39f0e3)=>{const _0x40dee5=_0x7f8acc;for(var _0x1ae62d=_0x39f0e3>0x1?void 0x0:_0x39f0e3?Bn(_0x49693e,_0x361c8b):_0x49693e,_0x4bdef3=_0x1e46ae[_0x40dee5(0x277)]-0x1,_0x419348;_0x4bdef3>=0x0;_0x4bdef3--)(_0x419348=_0x1e46ae[_0x4bdef3])&&(_0x1ae62d=_0x419348(_0x1ae62d)||_0x1ae62d);return _0x1ae62d;},Ae=(_0x38be9d,_0x2a252a)=>(_0x3e4b16,_0x1475ce)=>_0x2a252a(_0x3e4b16,_0x1475ce,_0x38be9d);let dt=class extends _0x561bf0{constructor(_0x5ec418,_0x262724,_0x14fe67){const _0x197dbb=_0x7f8acc;super(),this[_0x197dbb(0x250)]=_0x5ec418,this[_0x197dbb(0x3c4)]=_0x262724,this[_0x197dbb(0x307)]=_0x14fe67;}async[_0x7f8acc(0x1e5)](_0x3e29d6,_0x39e437,_0x2e5eac,..._0x4bbe24){const _0x5c7c90=_0x7f8acc;var _0x19ad12,_0x1e6f60,_0x53e211,_0x3ea3d8;const _0x1c67f2=this[_0x5c7c90(0x250)]['getFocusedUnit']();if(!_0x1c67f2)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0xb884f2=((_0x19ad12=this[_0x5c7c90(0x307)][_0x5c7c90(0x37f)](_0x19602d))!=null?_0x19ad12:_0x3ce571)+'/'+_0x3e29d6+_0x5c7c90(0x2fb)+_0x39e437,_0x4e2e13=new URL(window['location'][_0x5c7c90(0x2b9)]),_0x259c6a={'scriptId':_0x3e29d6,'runId':(_0x1e6f60=_0x4e2e13['searchParams'][_0x5c7c90(0x2be)](_0x5c7c90(0x26e)))!=null?_0x1e6f60:'','function':_0x39e437,'unitId':_0x1c67f2['getUnitId'](),'argsOfFunction':JSON[_0x5c7c90(0x33f)](_0x4bbe24),'invokeId':(_0x53e211=_0x2e5eac[_0x5c7c90(0x1fb)])!=null?_0x53e211:'','executionId':(_0x3ea3d8=_0x2e5eac[_0x5c7c90(0x38f)])!=null?_0x3ea3d8:''};try{const _0x1e993a=await this['_httpService'][_0x5c7c90(0x2a5)](_0xb884f2,{'body':_0x259c6a});return _0x1e993a[_0x5c7c90(0x2b1)][_0x5c7c90(0x3e9)]&&_0x1e993a['body']['error'][_0x5c7c90(0x340)]!==Z['OK']?_0x5c7c90(0x41a):_0x1e993a['body']['result'];}catch{return'Failed';}}};dt=Fn([Ae(0x0,_0x319eb9),Ae(0x1,_0xe86757(_0x943484)),Ae(0x2,_0x38de65)],dt);const St=0x7530,It='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0x561bf0{constructor(){const _0x443916=_0x7f8acc;super(),_(this,_0x443916(0x36d),_0x21630d()),_(this,_0x443916(0x3c1),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x443916(0x2cf),null),_(this,_0x443916(0x32c),new Map()),_(this,_0x443916(0x429),new Map()),this[_0x443916(0x225)]();}[_0x7f8acc(0x24f)](){const _0x2d7d34=_0x7f8acc;super[_0x2d7d34(0x24f)](),this[_0x2d7d34(0x32c)][_0x2d7d34(0x390)]((_0x330f1b,_0x195f87)=>this[_0x2d7d34(0x223)](_0x195f87)),this[_0x2d7d34(0x2cf)]&&window[_0x2d7d34(0x3c3)](this[_0x2d7d34(0x2cf)]);}[_0x7f8acc(0x29a)](_0x442021){const _0x16ad1d=_0x7f8acc;return this[_0x16ad1d(0x403)](_0x442021)['pipe'](_0x246a1d());}[_0x7f8acc(0x407)](_0x3a12e8){const _0x5406fe=_0x7f8acc;this[_0x5406fe(0x3c1)][_0x5406fe(0x2ab)]===0x0&&this[_0x5406fe(0x275)](),this[_0x5406fe(0x3c1)]['add'](_0x3a12e8),this['_send']({'type':0x0,'memberID':this[_0x5406fe(0x36d)],'unitIDs':[_0x3a12e8],'isForwarded':!0x1});}[_0x7f8acc(0x328)](_0x5468f4){const _0x1a22dd=_0x7f8acc;this['_selfUnitIDs'][_0x1a22dd(0x308)](_0x5468f4),this[_0x1a22dd(0x3c1)][_0x1a22dd(0x2ab)]===0x0&&this['_heartbeatTimer']&&window[_0x1a22dd(0x3c3)](this[_0x1a22dd(0x2cf)]);}[_0x7f8acc(0x225)](){const _0x35f260=_0x7f8acc;this['disposeWithMe'](_0x721eb2(_0x2863c4(window,_0x35f260(0x33b))['subscribe'](_0x22bb14=>{const _0x3ef1a8=_0x35f260;if(_0x22bb14[_0x3ef1a8(0x258)]!==It||!_0x22bb14[_0x3ef1a8(0x3d8)])return;const _0x1d4f47=JSON[_0x3ef1a8(0x433)](_0x22bb14['newValue']);this['_handleEvent'](_0x1d4f47);}))),window[_0x35f260(0x3b0)](_0x35f260(0x3dd),()=>this[_0x35f260(0x370)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x35f260(0x38e)](this[_0x35f260(0x3c1)])}));}[_0x7f8acc(0x34c)](_0x5c1973){const _0x2bef90=_0x7f8acc;switch(_0x5c1973[_0x2bef90(0x42e)]){case 0x0:this[_0x2bef90(0x255)](_0x5c1973);break;case 0x1:this[_0x2bef90(0x3a0)](_0x5c1973);break;case 0x2:this[_0x2bef90(0x42b)](_0x5c1973);break;}}[_0x7f8acc(0x255)](_0x289670){const _0x419d2a=_0x7f8acc,{unitIDs:_0x17e265,memberID:_0x2fd282,isForwarded:_0x9678d9}=_0x289670;_0x17e265[_0x419d2a(0x390)](_0x1e26e5=>{const _0x2d92bb=_0x419d2a;if(!_0x9678d9&&this['_unitOnClients'][_0x2d92bb(0x28d)](_0x1e26e5)&&this[_0x2d92bb(0x403)](_0x1e26e5)['next'](_0x2493f9[_0x2d92bb(0x3ce)]),!this[_0x2d92bb(0x27f)][_0x2d92bb(0x28d)](_0x1e26e5)||!this[_0x2d92bb(0x27f)][_0x2d92bb(0x2be)](_0x1e26e5)['has'](_0x2fd282)){const _0x5ec4cc=this['_unitOnClients'][_0x2d92bb(0x2be)](_0x1e26e5)||new Set();_0x5ec4cc[_0x2d92bb(0x207)](_0x2fd282),this[_0x2d92bb(0x27f)][_0x2d92bb(0x39d)](_0x1e26e5,_0x5ec4cc),this[_0x2d92bb(0x2ce)](_0x2fd282);}}),_0x9678d9||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x419d2a(0x3c1)]],'isForwarded':!0x0});}[_0x7f8acc(0x2ce)](_0x47feab){const _0x45060b=_0x7f8acc;this[_0x45060b(0x223)](_0x47feab);const _0x52e26d=window[_0x45060b(0x282)](()=>{const _0xdf06d8=_0x45060b;this[_0xdf06d8(0x27f)][_0xdf06d8(0x390)](_0x176bbd=>{_0x176bbd['delete'](_0x47feab);});},St*0x2);this['_clearOtherTimers']['set'](_0x47feab,_0x52e26d);}['_removeClearOtherTimer'](_0x89753c){const _0x27a642=_0x7f8acc;if(this[_0x27a642(0x32c)][_0x27a642(0x28d)](_0x89753c)){const _0x1979b7=this[_0x27a642(0x32c)][_0x27a642(0x2be)](_0x89753c);_0x1979b7&&window[_0x27a642(0x2f8)](_0x1979b7),this[_0x27a642(0x32c)][_0x27a642(0x39d)](_0x89753c,null);}}[_0x7f8acc(0x3a0)](_0x5dce50){const _0x4be57b=_0x7f8acc,{memberID:_0x41f1bb,unitIDs:_0xff175e}=_0x5dce50;_0xff175e['forEach'](_0x5dc6a2=>{const _0x559613=_0x5d9e;var _0x13d5e2;const _0x24c6df=this[_0x559613(0x27f)][_0x559613(0x2be)](_0x5dc6a2);_0x24c6df&&(_0x24c6df['delete'](_0x41f1bb),(_0x13d5e2=this['_ensureSubject'](_0x5dc6a2))==null||_0x13d5e2[_0x559613(0x437)](_0x24c6df[_0x559613(0x2ab)]===0x0?_0x2493f9[_0x559613(0x419)]:_0x2493f9[_0x559613(0x3ce)]));}),this[_0x4be57b(0x223)](_0x41f1bb);}[_0x7f8acc(0x42b)](_0x7a9efa){const _0x12afc3=_0x7f8acc;this[_0x12afc3(0x2ce)](_0x7a9efa[_0x12afc3(0x227)]);}[_0x7f8acc(0x370)](_0x1faad7){const _0x567e9c=_0x7f8acc;localStorage[_0x567e9c(0x428)](It,JSON[_0x567e9c(0x33f)](_0x1faad7));}['_scheduleHeartbeat'](){const _0x5a1367=_0x7f8acc;this[_0x5a1367(0x2cf)]=window['setInterval'](()=>{const _0x4b5ea3=_0x5a1367;this[_0x4b5ea3(0x370)]({'type':0x2,'memberID':this[_0x4b5ea3(0x36d)]});},St);}[_0x7f8acc(0x403)](_0x33755f){const _0x146a39=_0x7f8acc;return this[_0x146a39(0x429)][_0x146a39(0x28d)](_0x33755f)||this[_0x146a39(0x429)][_0x146a39(0x39d)](_0x33755f,new _0x2bbfbf(_0x2493f9[_0x146a39(0x419)])),this[_0x146a39(0x429)]['get'](_0x33755f);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
|