@univerjs-pro/collaboration-client-ui 0.10.12-nightly.202510251119 → 0.10.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x17995c=_0x220d;(function(_0x49d3c5,_0x207635){const _0x21fac1=_0x220d,_0x18bf16=_0x49d3c5();while(!![]){try{const _0x5de2c4=-parseInt(_0x21fac1(0x293))/0x1*(parseInt(_0x21fac1(0x1d4))/0x2)+-parseInt(_0x21fac1(0x17c))/0x3*(-parseInt(_0x21fac1(0x8d))/0x4)+-parseInt(_0x21fac1(0xa0))/0x5*(parseInt(_0x21fac1(0x171))/0x6)+-parseInt(_0x21fac1(0x179))/0x7+-parseInt(_0x21fac1(0x19c))/0x8*(parseInt(_0x21fac1(0x1d8))/0x9)+-parseInt(_0x21fac1(0x9b))/0xa*(-parseInt(_0x21fac1(0x89))/0xb)+parseInt(_0x21fac1(0x12c))/0xc*(parseInt(_0x21fac1(0x15f))/0xd);if(_0x5de2c4===_0x207635)break;else _0x18bf16['push'](_0x18bf16['shift']());}catch(_0x3c0ca7){_0x18bf16['push'](_0x18bf16['shift']());}}}(_0x2c3e,0x9be1f));var Ft=Object[_0x17995c(0x138)],kt=(_0x2faa31,_0x396087,_0x33e711)=>_0x396087 in _0x2faa31?Ft(_0x2faa31,_0x396087,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33e711}):_0x2faa31[_0x396087]=_0x33e711,l=(_0x5008f3,_0xed4035,_0xe4d8d5)=>kt(_0x5008f3,typeof _0xed4035!=_0x17995c(0xd8)?_0xed4035+'':_0xed4035,_0xe4d8d5);import{jsx as _0x2de4d5,jsxs as _0x1aafd0}from'react/jsx-runtime';import{CollaborationStatus as _0x5bc4e1,CollaborationSessionService as _0x141d96,CollaborationController as _0x4a8b28,DataLoaderService as _0x209b42,MemberService as _0x3af1e3,SessionStatus as _0x343edf,ILocalCacheService as _0x3a200a,CollaborationUIEventService as _0x372bc6,CollaborationUIEventId as _0x38ed89,DocCollaborationEntity as _0x4ff6ee,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x561a7a,getLocalCacheKey as _0x47bb08,LOCAL_CACHE_INTERVAL as _0x34d795,LOCAL_CACHE_INTERVAL_KEY as _0x406905,UniverCollaborationClientPlugin as _0x2497f2,CollaborationSocketService as _0x331ab9,DEFAULT_WS_SESSION_TICKET_URL as _0x3f8692,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x6c9711,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x4a61fe,UnitStatus as _0x27e9f9}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x5bea2a,IUniverInstanceService as _0x382f2b,Inject as _0x11a278,Injector as _0x426398,Disposable as _0x29710c,createIdentifier as _0x3aacc3,ILogService as _0x12caba,ICommandService as _0x31e8e2,Optional as _0x5a4b96,RxDisposable as _0x53201b,Workbook as _0x169540,DOC_RANGE_TYPE as _0x461746,debounce as _0x302608,Rectangle as _0x3ec4b0,DisposableCollection as _0x5c7e15,toDisposable as _0x3213ea,UniverInstanceType as _0x502d97,generateRandomId as _0x25c646,COLORS as _0x4a1af7,ColorKit as _0x109ebd,ThemeService as _0x3e584d,fromEventSubject as _0x1f3ae9,Tools as _0x8e16b7,CommandType as _0x1bc9ba,IConfigService as _0x284c80,CanceledError as _0x5313b4,isFormulaString as _0x4f5ea9,isFormulaId as _0x267f20,ILocalStorageService as _0x241148,DependentOn as _0x53975f,Plugin as _0x494e53,merge as _0xf62ae0,registerDependencies as _0x3ace74,mergeOverrideWithDependencies as _0x23631a,touchDependencies as _0x3dce4a}from'@univerjs/core';import{useObservable as _0x4dd37a,useDependency as _0x3f14f5,IUIPartsService as _0x4e4718,BuiltInUIPart as _0x2203d5,connectInjector as _0x47ff02,IBeforeCloseService as _0x225f15,IMessageService as _0xc5e3ee,INotificationService as _0x503e3e}from'@univerjs/ui';import{BehaviorSubject as _0x5ab626,switchMap as _0x276c2a,of as _0x461f63,takeUntil as _0x426fdf,debounceTime as _0x241dd6,Subject as _0x34a8bd,filter as _0x26217d,merge as _0x298745,combineLatest as _0x524282,fromEvent as _0xa49f30,shareReplay as _0x9be7a1,mapTo as _0x2b6054,distinctUntilChanged as _0x430265}from'rxjs';import{Tooltip as _0x880d88,clsx as _0x550bfe,MessageType as _0x2001e5}from'@univerjs/design';import{useRef as _0x1878fa,createElement as _0x514801,forwardRef as _0x56b1a7,useCallback as _0x5a64d5}from'react';import{IRemoteInstanceService as _0x4f2f44}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x47535e,RefRangeService as _0x1fa5d1,SetSelectionsOperation as _0x4c6b4f,SheetsSelectionsService as _0x559b06,EffectRefRangId as _0x4e84fb,handleIRemoveRow as _0x21aa6f,handleIRemoveCol as _0x41f788,handleMoveRange as _0x3899df,handleInsertRow as _0xf510f4,handleInsertRangeMoveRight as _0x2f5940,handleInsertRangeMoveDown as _0x271c7f,handleInsertCol as _0x289e62,handleDeleteRangeMoveUp as _0x79a8bd,handleDeleteRangeMoveLeft as _0x230d4f,runRefRangeMutations as _0x205469}from'@univerjs/sheets';import{Shape as _0xd80c53,Rect as _0x27916c,getColor as _0x311d32,RegularPolygon as _0x4b441d,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x19661c,Vector2 as _0x58f725,SHEET_VIEWPORT_KEY as _0x2389fc,IRenderManagerService as _0x4b49a7}from'@univerjs/engine-render';import{HTTPService as _0x363c4f,ISocketService as _0x5a617a,WebSocketService as _0x3242f0}from'@univerjs/network';import{IDocClipboardService as _0x46f861,NodePositionConvertToCursor as _0x2b24bd,NodePositionConvertToRectRange as _0x3e66b9,TEXT_RANGE_LAYER_INDEX as _0x5f5b0d,SetDocZoomRatioOperation as _0x7dd482,DocIMEInputManagerService as _0x2a0c79,DocStateChangeManagerService as _0x2d3bec}from'@univerjs/docs-ui';import{IImageIoService as _0x42e058}from'@univerjs/drawing';import{ITransformService as _0x1a6bde,CollaborationEvent as _0x1eba19,isTransformMutationFailure as _0x55d582,isTransformMutationsWithChangesetSuccess as _0x4b8ff0,RevisionService as _0x225cbf,ISnapshotServerService as _0x4d1519}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x3c75e4,RichTextEditingMutation as _0xc2d7de,DocSelectionManagerService as _0x470162,DocSkeletonManagerService as _0x33174f}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x585551,serializeRangeWithSheet as _0x38a017,FormulaExecuteStageType as _0x19f2ec,FormulaExecutedStateType as _0x3bbfbf,SetFormulaCalculationStartMutation as _0x8e7314,SetFormulaCalculationNotificationMutation as _0x72d1d3}from'@univerjs/engine-formula';import{map as _0x248c7f,filter as _0x3f54ce,throttleTime as _0x53d2a8,takeUntil as _0x5050e3,switchMap as _0x4613aa}from'rxjs/operators';import{SheetSkeletonManagerService as _0x2fc12d,getCoordByCell as _0x2f11d6,getSheetObject as _0x1f24ae}from'@univerjs/sheets-ui';function Ve({ref:_0x12a208,..._0x52c05c}){const _0x50c3f9=_0x17995c,{icon:_0x1cc93a,id:_0x100e42,className:_0x356d13,extend:_0x1f9490,..._0x216bf2}=_0x52c05c,_0x299e6b=('univerjs-icon\x20univerjs-icon-'+_0x100e42+'\x20'+(_0x356d13||''))[_0x50c3f9(0x24b)](),_0x34f699=_0x1878fa('_'+gi());return Ut(_0x1cc93a,''+_0x100e42,{'defIds':_0x1cc93a['defIds'],'idSuffix':_0x34f699['current']},{'ref':_0x12a208,'className':_0x299e6b,..._0x216bf2},_0x1f9490);}function Ut(_0xbdda36,_0x1f894b,_0x37bbc6,_0x27df6e,_0x123e49){const _0x18ebb1=_0x17995c;return _0x514801(_0xbdda36[_0x18ebb1(0x215)],{'key':_0x1f894b,...mi(_0xbdda36,_0x37bbc6,_0x123e49),..._0x27df6e},(fi(_0xbdda36,_0x37bbc6)['children']||[])['map']((_0x423ed6,_0x24bbe1)=>Ut(_0x423ed6,_0x1f894b+'-'+_0xbdda36['tag']+'-'+_0x24bbe1,_0x37bbc6,void 0x0,_0x123e49)));}function mi(_0x1948c7,_0x20fd9a,_0xa72a98){const _0x599107=_0x17995c,_0x432089={..._0x1948c7[_0x599107(0xb4)]};_0xa72a98!=null&&_0xa72a98[_0x599107(0xa1)]&&_0x432089['fill']===_0x599107(0xa1)&&(_0x432089[_0x599107(0x1cd)]=_0xa72a98[_0x599107(0xa1)]),_0x1948c7['tag']===_0x599107(0x1d7)&&_0x432089['id']&&(_0x432089['id']=_0x432089['id']+_0x20fd9a['idSuffix']),Object[_0x599107(0x1b2)](_0x432089)[_0x599107(0xbe)](([_0x8fc770,_0x5638d7])=>{const _0x4ee0f6=_0x599107;_0x8fc770===_0x4ee0f6(0x1d7)&&typeof _0x5638d7==_0x4ee0f6(0x20b)&&(_0x432089[_0x8fc770]=_0x5638d7['replace'](/url\(#(.*)\)/,_0x4ee0f6(0x19b)+_0x20fd9a[_0x4ee0f6(0x118)]+')'));});const {defIds:_0x332578}=_0x20fd9a;return!_0x332578||_0x332578['length']===0x0||(_0x1948c7[_0x599107(0x215)]===_0x599107(0xd1)&&_0x432089['xlink:href']&&(_0x432089['xlink:href']=_0x432089[_0x599107(0x18b)]+_0x20fd9a[_0x599107(0x118)]),Object['entries'](_0x432089)[_0x599107(0xbe)](([_0x218c2c,_0x277232])=>{const _0x59fed7=_0x599107;typeof _0x277232==_0x59fed7(0x20b)&&(_0x432089[_0x218c2c]=_0x277232[_0x59fed7(0x183)](/url\(#(.*)\)/,_0x59fed7(0x19b)+_0x20fd9a[_0x59fed7(0x118)]+')'));})),_0x432089;}function fi(_0x21e64f,_0x4ea2a8){const _0x314c81=_0x17995c;var _0x56d4f0;const {defIds:_0x39b325}=_0x4ea2a8;return!_0x39b325||_0x39b325[_0x314c81(0x28b)]===0x0?_0x21e64f:_0x21e64f['tag']==='defs'&&((_0x56d4f0=_0x21e64f['children'])!=null&&_0x56d4f0['length'])?{..._0x21e64f,'children':_0x21e64f['children'][_0x314c81(0x14e)](_0x1953a4=>typeof _0x1953a4[_0x314c81(0xb4)]['id']==_0x314c81(0x20b)&&_0x39b325&&_0x39b325[_0x314c81(0x16e)](_0x1953a4[_0x314c81(0xb4)]['id'])?{..._0x1953a4,'attrs':{..._0x1953a4[_0x314c81(0xb4)],'id':_0x1953a4[_0x314c81(0xb4)]['id']+_0x4ea2a8[_0x314c81(0x118)]}}:_0x1953a4)}:_0x21e64f;}function gi(){const _0x28595b=_0x17995c;return Math[_0x28595b(0x160)]()[_0x28595b(0x201)](0x24)[_0x28595b(0x17f)](0x2,0x8);}Ve[_0x17995c(0x12e)]=_0x17995c(0x221);const vi={'tag':_0x17995c(0xde),'attrs':{'xmlns':_0x17995c(0x219),'fill':_0x17995c(0xad),'viewBox':_0x17995c(0x194),'width':'1em','height':_0x17995c(0x139)},'children':[{'tag':'g','attrs':{'clipPath':_0x17995c(0x2a6)},'children':[{'tag':_0x17995c(0x144),'attrs':{'stroke':_0x17995c(0xb0),'d':_0x17995c(0x159),'strokeLinecap':_0x17995c(0x1ce),'strokeLinejoin':_0x17995c(0x1ce),'strokeWidth':1.2}}]},{'tag':_0x17995c(0x27f),'attrs':{},'children':[{'tag':_0x17995c(0x90),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x17995c(0x144),'attrs':{'fill':_0x17995c(0x21c),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Lt=_0x56b1a7(function(_0x3ed593,_0x521f22){const _0x2b2b7c=_0x17995c;return _0x514801(Ve,Object[_0x2b2b7c(0xa5)]({},_0x3ed593,{'id':_0x2b2b7c(0x210),'ref':_0x521f22,'icon':vi}));});Lt[_0x17995c(0x12e)]=_0x17995c(0x1a7);const Ei={'tag':'svg','attrs':{'xmlns':_0x17995c(0x219),'fill':'none','viewBox':_0x17995c(0x124),'width':_0x17995c(0x139),'height':_0x17995c(0x139)},'children':[{'tag':'g','attrs':{'clipPath':_0x17995c(0x14a)},'children':[{'tag':_0x17995c(0x144),'attrs':{'stroke':_0x17995c(0xb0),'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':_0x17995c(0x1ce),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x17995c(0x27f),'attrs':{},'children':[{'tag':_0x17995c(0x90),'attrs':{'id':_0x17995c(0x1c1)},'children':[{'tag':_0x17995c(0x144),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':_0x17995c(0xef)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Mt=_0x56b1a7(function(_0x2f6a84,_0x23b99b){const _0x57fbaf=_0x17995c;return _0x514801(Ve,Object['assign']({},_0x2f6a84,{'id':_0x57fbaf(0x2aa),'ref':_0x23b99b,'icon':Ei}));});Mt[_0x17995c(0x12e)]=_0x17995c(0x1b9);function pi(_0x234662){const _0x4fd0b4=_0x17995c;switch(_0x234662){case _0x5bc4e1['OFFLINE']:return _0x4fd0b4(0x22d);case _0x5bc4e1[_0x4fd0b4(0x14f)]:return'collabStatus.conflict';case _0x5bc4e1[_0x4fd0b4(0x1f5)]:return _0x4fd0b4(0xfa);case _0x5bc4e1['NOT_COLLAB']:return _0x4fd0b4(0x244);case _0x5bc4e1['AWAITING']:case _0x5bc4e1['AWAITING_WITH_PENDING']:return _0x4fd0b4(0xec);case _0x5bc4e1[_0x4fd0b4(0x1c3)]:case _0x5bc4e1[_0x4fd0b4(0x181)]:return _0x4fd0b4(0x260);}}function Oi(_0x4c7f3c){const _0x1cb6ac=_0x17995c,{status$:_0x560738}=_0x4c7f3c,_0x280fff=_0x4dd37a(_0x560738,_0x5bc4e1[_0x1cb6ac(0x192)]),_0xa49558=_0x3f14f5(_0x5bea2a),_0x418095=_0x3f14f5(_0x141d96),_0x256e98=_0x280fff!==_0x5bc4e1[_0x1cb6ac(0x28d)],_0x3c7e06=_0xa49558['t'](pi(_0x280fff)),_0x427180=_0x256e98?_0x2de4d5(Mt,{}):_0x2de4d5(Lt,{}),_0x429177=_0x5a64d5(()=>{const _0x6046bb=_0x1cb6ac;_0x256e98||_0x418095[_0x6046bb(0x229)]();},[_0x256e98,_0x418095]);function _0x4857a5(){const _0x38d313=_0x1cb6ac;return _0x1aafd0(_0x38d313(0x18c),{'className':'univer-flex\x20univer-items-center','onClick':_0x429177,'children':[_0x2de4d5(_0x38d313(0x18c),{'className':_0x550bfe(_0x38d313(0x196),{'univer-text-green-500':_0x256e98,'univer-text-red-500':!_0x256e98}),'children':_0x427180}),_0x2de4d5(_0x38d313(0x18c),{'className':_0x38d313(0x1a3),'children':_0x3c7e06})]});}return _0x256e98?_0x4857a5():_0x2de4d5(_0x880d88,{'title':_0xa49558['t']('collab-client.tooltip.reconnect'),'children':_0x4857a5()});}var Ti=Object[_0x17995c(0x153)],Ci=(_0x10c4e5,_0x438099,_0x59e0ae,_0x17cc18)=>{const _0xf2160a=_0x17995c;for(var _0x2e01e5=_0x17cc18>0x1?void 0x0:_0x17cc18?Ti(_0x438099,_0x59e0ae):_0x438099,_0xc38301=_0x10c4e5[_0xf2160a(0x28b)]-0x1,_0x11c05e;_0xc38301>=0x0;_0xc38301--)(_0x11c05e=_0x10c4e5[_0xc38301])&&(_0x2e01e5=_0x11c05e(_0x2e01e5)||_0x2e01e5);return _0x2e01e5;},se=(_0x2542ca,_0x573ff1)=>(_0x4e9a7c,_0x5cbc32)=>_0x573ff1(_0x4e9a7c,_0x5cbc32,_0x2542ca);let oe=class extends _0x29710c{constructor(_0x17542d,_0x2ef2b0,_0x5ed94b,_0x5cee66){const _0x42c199=_0x17995c;super(),l(this,_0x42c199(0xf7),new _0x5ab626(_0x5bc4e1[_0x42c199(0x192)])),(this[_0x42c199(0x290)]=_0x17542d,this[_0x42c199(0x287)]=_0x2ef2b0,this[_0x42c199(0x24d)]=_0x5ed94b,this[_0x42c199(0x14b)]=_0x5cee66,this[_0x42c199(0x27a)](),this['_initStatusListener']());}[_0x17995c(0x1e3)](){const _0x38c001=_0x17995c;this[_0x38c001(0x1c2)](this[_0x38c001(0x290)]['focused$'][_0x38c001(0x269)](_0x276c2a(()=>{const _0x2b28f6=_0x38c001,_0x3b1a86=this['_univerInstanceService'][_0x2b28f6(0x177)]();return _0x3b1a86?this[_0x2b28f6(0x24d)]['getCollabEntity$'](_0x3b1a86[_0x2b28f6(0x10d)]()):_0x461f63(null);}),_0x276c2a(_0x2d0774=>_0x2d0774?_0x2d0774[_0x38c001(0x167)]:_0x461f63(_0x5bc4e1[_0x38c001(0x192)])))[_0x38c001(0x158)](_0x153ee2=>{const _0x39482e=_0x38c001;this[_0x39482e(0xf7)][_0x39482e(0xf2)](_0x153ee2);}));}[_0x17995c(0x27a)](){const _0x311161=_0x17995c;this[_0x311161(0x1c2)](this[_0x311161(0x14b)][_0x311161(0xb7)](_0x2203d5[_0x311161(0xaf)],()=>_0x47ff02(Ri({'status$':this['_status$'][_0x311161(0xc8)]()}),this[_0x311161(0x287)])));}};oe=Ci([se(0x0,_0x382f2b),se(0x1,_0x11a278(_0x426398)),se(0x2,_0x11a278(_0x4a8b28)),se(0x3,_0x4e4718)],oe);function Ri(_0x2b4745){const {status$:_0x194434}=_0x2b4745;return function(){return _0x2de4d5(Oi,{'status$':_0x194434});};}const At=_0x3aacc3(_0x17995c(0xcf));var Di=Object['getOwnPropertyDescriptor'],Ni=(_0x178d2f,_0x282bfb,_0x20fd0c,_0x47fe71)=>{const _0xcd69e7=_0x17995c;for(var _0x348387=_0x47fe71>0x1?void 0x0:_0x47fe71?Di(_0x282bfb,_0x20fd0c):_0x282bfb,_0x5e2b03=_0x178d2f[_0xcd69e7(0x28b)]-0x1,_0x1a174b;_0x5e2b03>=0x0;_0x5e2b03--)(_0x1a174b=_0x178d2f[_0x5e2b03])&&(_0x348387=_0x1a174b(_0x348387)||_0x348387);return _0x348387;},K=(_0x5eca7f,_0x214fff)=>(_0x10d8b8,_0x1ba7e3)=>_0x214fff(_0x10d8b8,_0x1ba7e3,_0x5eca7f);let ae=class extends _0x53201b{constructor(_0x4b7711,_0x21c66b,_0x3c002b,_0x1ce76c,_0x365c5f){const _0x24c7ba=_0x17995c;super(),this[_0x24c7ba(0x97)]=_0x4b7711,this[_0x24c7ba(0x18f)]=_0x21c66b,this[_0x24c7ba(0x1ed)]=_0x3c002b,this['_dataLoaderService']=_0x1ce76c,_0x365c5f?_0x365c5f==null||_0x365c5f[_0x24c7ba(0xe2)]()['then'](()=>this[_0x24c7ba(0x11f)]()):(this['_logService']['debug'](_0x24c7ba(0x281),_0x24c7ba(0x131)),this[_0x24c7ba(0x11f)]());}async['_init'](){const _0x416b9e=_0x17995c,_0x283f53=this[_0x416b9e(0x97)]['getParam'](_0x416b9e(0x20d)),_0x40b603=this[_0x416b9e(0x97)][_0x416b9e(0x1ea)]('type'),_0x98637a=this[_0x416b9e(0x97)][_0x416b9e(0x1ea)](_0x416b9e(0x268));if(!_0x283f53||!_0x40b603){this[_0x416b9e(0x18f)][_0x416b9e(0x24e)](_0x416b9e(0x281),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x1373d0=await this[_0x416b9e(0x1d1)][_0x416b9e(0xfd)](_0x283f53,Number(_0x40b603),_0x98637a);_0x1373d0&&_0x1373d0 instanceof _0x169540&&this['_setupSubUnitSync'](_0x1373d0);}async[_0x17995c(0x1e5)](_0xd458b7){const _0x3682e1=_0x17995c;await this['_updateSubUnitFromURLParams'](_0xd458b7),_0xd458b7[_0x3682e1(0xc6)][_0x3682e1(0x269)](_0x426fdf(this[_0x3682e1(0xda)]))[_0x3682e1(0x158)](_0x336353=>{_0x336353&&this['_updateURLWithCurrentState'](_0x336353);}),this[_0x3682e1(0x97)]['urlChange$'][_0x3682e1(0x269)](_0x426fdf(this[_0x3682e1(0xda)]))[_0x3682e1(0x158)](()=>this[_0x3682e1(0x27e)](_0xd458b7));}[_0x17995c(0x173)](_0xb23203,_0x58051a=!0x1){const _0x4541bd=_0x17995c,_0x386def=this[_0x4541bd(0x97)][_0x4541bd(0x1ea)]('subunit');_0xb23203[_0x4541bd(0xa9)]()!==_0x386def&&this[_0x4541bd(0x97)]['setParam']('subunit',_0xb23203[_0x4541bd(0xa9)](),_0x58051a);}async[_0x17995c(0x27e)](_0x32ed0e){const _0xa59856=_0x17995c;var _0x21b3c3;const _0x33005d=this['_urlService'][_0xa59856(0x1ea)]('subunit');if(!_0x33005d||!_0x32ed0e[_0xa59856(0x2c1)](_0x33005d)){const _0x3c198e=_0x32ed0e['getUnhiddenWorksheets']()[0x0],_0x13d7c2=_0x32ed0e[_0xa59856(0x2c1)](_0x3c198e);if(!_0x13d7c2)return;this[_0xa59856(0x173)](_0x13d7c2,!0x0),await this[_0xa59856(0x1ed)]['executeCommand'](_0x47535e['id'],{'unitId':_0x32ed0e['getUnitId'](),'subUnitId':_0x3c198e});return;}((_0x21b3c3=_0x32ed0e[_0xa59856(0x2a4)]())==null?void 0x0:_0x21b3c3[_0xa59856(0xa9)]())!==_0x33005d&&await this[_0xa59856(0x1ed)]['executeCommand'](_0x47535e['id'],{'unitId':_0x32ed0e[_0xa59856(0x10d)](),'subUnitId':_0x33005d});}};ae=Ni([K(0x0,At),K(0x1,_0x12caba),K(0x2,_0x31e8e2),K(0x3,_0x11a278(_0x209b42)),K(0x4,_0x5a4b96(_0x4f2f44))],ae);var bi=Object[_0x17995c(0x153)],Ui=(_0x4ab951,_0x9de29,_0x4c85f7,_0x2e39cb)=>{const _0x47a046=_0x17995c;for(var _0x3a2544=_0x2e39cb>0x1?void 0x0:_0x2e39cb?bi(_0x9de29,_0x4c85f7):_0x9de29,_0x58d7c6=_0x4ab951[_0x47a046(0x28b)]-0x1,_0x5b4dd4;_0x58d7c6>=0x0;_0x58d7c6--)(_0x5b4dd4=_0x4ab951[_0x58d7c6])&&(_0x3a2544=_0x5b4dd4(_0x3a2544)||_0x3a2544);return _0x3a2544;},tt=(_0x330452,_0x126f55)=>(_0x5261c9,_0x193e4c)=>_0x126f55(_0x5261c9,_0x193e4c,_0x330452);let Ae=class extends _0x53201b{constructor(_0x416ef7,_0x4db707){const _0x647a6b=_0x17995c;super(),this[_0x647a6b(0x172)]=_0x416ef7,this['_imageIoService']=_0x4db707,this[_0x647a6b(0x11f)]();}[_0x17995c(0x11f)](){const _0x41024c=_0x17995c,_0x3d3e97=this;this[_0x41024c(0x1c2)](this[_0x41024c(0x172)][_0x41024c(0xab)]({'onBeforePasteImage':async _0x300faf=>{const _0x5a77e8=_0x41024c,_0x15c360=await _0x3d3e97[_0x5a77e8(0x188)][_0x5a77e8(0x147)](_0x300faf);return _0x15c360?{'source':_0x15c360[_0x5a77e8(0x211)],'imageSourceType':_0x15c360[_0x5a77e8(0x180)]}:null;}}));}};Ae=Ui([tt(0x0,_0x46f861),tt(0x1,_0x42e058)],Ae);const st=['purple.300','jiqing.500',_0x17995c(0x26b),_0x17995c(0xb5),_0x17995c(0xa4),_0x17995c(0x15b)];class je extends _0x29710c{constructor(){const _0x3f2d21=_0x17995c;super(...arguments),l(this,'_assignedColors',new Map()),l(this,_0x3f2d21(0x258),0x0);}[_0x17995c(0x13e)](_0x23cdab){const _0x560067=_0x17995c;if(this[_0x560067(0x283)][_0x560067(0x2a9)](_0x23cdab))return this['_assignedColors']['get'](_0x23cdab);const _0x558baf=st[this[_0x560067(0x258)]];return this[_0x560067(0x258)]=(this[_0x560067(0x258)]+0x1)%st[_0x560067(0x28b)],this[_0x560067(0x283)][_0x560067(0xc9)](_0x23cdab,_0x558baf),_0x558baf;}}function Pt(_0x19e23b){let _0x3d0ffd='';for(const _0x2d9f23 of _0x19e23b){const {startOffset:_0x20086b,endOffset:_0x55e020,isActive:_0x20439d,rangeType:_0x297b5,segmentId:_0x2bf382,segmentPage:_0x5961b2}=_0x2d9f23;_0x3d0ffd['length']&&(_0x3d0ffd+=','),_0x3d0ffd+=_0x20086b+':'+_0x55e020+':'+(_0x20439d?'1':'0')+':'+_0x297b5+':'+_0x2bf382+':'+_0x5961b2;}return _0x3d0ffd;}function Li(_0x75f35){const _0x432997=_0x17995c,_0x318c07=_0x75f35['split'](','),_0x2cdfae=[];for(const _0x2e1dfc of _0x318c07){const [_0x334364,_0x12f799,_0x44ae93,_0x38f135,_0x2b121c,_0x3d589a]=_0x2e1dfc[_0x432997(0xd9)](':');_0x2cdfae[_0x432997(0x272)]({'startOffset':Number(_0x334364),'endOffset':Number(_0x12f799),'collapsed':_0x334364===_0x12f799,'isActive':_0x44ae93==='1','rangeType':_0x38f135===_0x461746[_0x432997(0x29e)]?_0x461746[_0x432997(0x29e)]:_0x461746[_0x432997(0x1aa)],'segmentId':typeof _0x2b121c=='string'?String(_0x2b121c):'','segmentPage':Number(_0x3d589a!=null?_0x3d589a:-0x1)});}return _0x2cdfae['some'](_0x59cd09=>_0x59cd09['isActive'])||(_0x2cdfae[0x0][_0x432997(0x262)]=!0x0),_0x2cdfae;}class Xe extends _0x53201b{constructor(){const _0x1891ee=_0x17995c;super(...arguments),l(this,_0x1891ee(0x125),new _0x5ab626(null)),l(this,_0x1891ee(0x248),this['_collabCursorState$'][_0x1891ee(0xc8)]());}[_0x17995c(0xe5)](_0x396afa){const _0x568f46=_0x17995c,{unitID:_0x299a9d,memberID:_0x5be6b1,textRanges:_0x5b7552}=_0x396afa,_0xb06cb5=Pt(_0x5b7552);if(_0xb06cb5==='')return;const _0x1b42fc={'unitID':_0x299a9d,'memberID':_0x5be6b1,'selection':_0xb06cb5};this[_0x568f46(0x125)][_0x568f46(0xf2)](_0x1b42fc);}}var Mi=Object['getOwnPropertyDescriptor'],Ai=(_0x2e6312,_0x1cc560,_0x10f49a,_0x295d60)=>{for(var _0x53648e=_0x295d60>0x1?void 0x0:_0x295d60?Mi(_0x1cc560,_0x10f49a):_0x1cc560,_0x554a89=_0x2e6312['length']-0x1,_0x4abeff;_0x554a89>=0x0;_0x554a89--)(_0x4abeff=_0x2e6312[_0x554a89])&&(_0x53648e=_0x4abeff(_0x53648e)||_0x53648e);return _0x53648e;},A=(_0x2b379d,_0x34e274)=>(_0x3c9e3,_0x11863d)=>_0x34e274(_0x3c9e3,_0x11863d,_0x2b379d);const Pi=0x12c,wi=0x64;let Pe=class extends _0x53201b{constructor(_0x5735aa,_0x477d2e,_0x3e5fd1,_0x29ed97,_0x18a323,_0x14d562,_0x1fd674,_0x1f9ae2,_0x55c7f9){const _0x4c0b7e=_0x17995c;super(),l(this,_0x4c0b7e(0x208),!0x1),l(this,'_init',!0x1),l(this,_0x4c0b7e(0xbf),new _0x5ab626(new Map())),l(this,_0x4c0b7e(0x1b5),this[_0x4c0b7e(0xbf)][_0x4c0b7e(0xc8)]()),l(this,_0x4c0b7e(0x204),new _0x5ab626([])),l(this,_0x4c0b7e(0x1ad),this[_0x4c0b7e(0x204)]['pipe'](_0x241dd6(Pi))),l(this,_0x4c0b7e(0x1a5),_0x302608(_0x598083=>{const _0x173eab=_0x4c0b7e,_0x477df9={'eventID':_0x1eba19['UPDATE_CURSOR'],'data':{'unitID':this[_0x173eab(0x251)],'memberID':this['_session'][_0x173eab(0x29c)](),'selection':Pt(_0x598083)}};this['_session'][_0x173eab(0x1d5)](_0x477df9,this['unitID']);},wi)),(this[_0x4c0b7e(0x251)]=_0x5735aa,this[_0x4c0b7e(0x20f)]=_0x477d2e,this['_injector']=_0x3e5fd1,this[_0x4c0b7e(0x1d6)]=_0x29ed97,this[_0x4c0b7e(0x224)]=_0x18a323,this['_syncEditingCollabCursorService']=_0x14d562,this[_0x4c0b7e(0x20a)]=_0x1fd674,this[_0x4c0b7e(0x290)]=_0x1f9ae2,this[_0x4c0b7e(0x1ed)]=_0x55c7f9);}get[_0x17995c(0x164)](){const _0x260a09=_0x17995c;return this[_0x260a09(0xbf)]['getValue']();}get[_0x17995c(0x150)](){const _0x24db1b=_0x17995c;return this[_0x24db1b(0x204)][_0x24db1b(0x146)]();}[_0x17995c(0x2b4)](){const _0x53bd1a=_0x17995c;super[_0x53bd1a(0x2b4)](),this['_cursorInfo$'][_0x53bd1a(0xf2)](new Map()),this[_0x53bd1a(0xbf)][_0x53bd1a(0x25e)](),this['_roomMembers$'][_0x53bd1a(0xf2)]([]),this[_0x53bd1a(0x204)][_0x53bd1a(0x25e)]();}[_0x17995c(0x1f9)](){const _0x1de992=_0x17995c;this[_0x1de992(0x11f)]||(this[_0x1de992(0x11f)]=!0x0,this[_0x1de992(0x20f)][_0x1de992(0x29a)][_0x1de992(0x269)](_0x426fdf(this[_0x1de992(0xda)]))[_0x1de992(0x158)](_0x406f8b=>{const _0x33d9cb=_0x1de992;_0x406f8b===_0x343edf[_0x33d9cb(0x12f)]?this['_toggleOnline']():this['_toggleOffline']();}),this['_session'][_0x1de992(0x26f)][_0x1de992(0x269)](_0x426fdf(this[_0x1de992(0xda)]))['subscribe'](_0x58c1cb=>{const _0x5292b9=_0x1de992,_0x385cf5=_0x58c1cb[_0x5292b9(0x28c)];_0x385cf5===_0x1eba19[_0x5292b9(0xff)]&&this['_onCursorUpdate'](_0x58c1cb),_0x385cf5===_0x1eba19[_0x5292b9(0xd6)]&&this[_0x5292b9(0x15c)](_0x58c1cb);}),this['disposeWithMe'](this[_0x1de992(0x1ed)][_0x1de992(0x162)](_0xbceb74=>{const _0x350b64=_0x1de992,_0x46b0a9=_0xbceb74['params'];_0x46b0a9!=null&&this[_0x350b64(0x208)]&&_0xbceb74['id']===_0x3c75e4['id']&&_0x46b0a9[_0x350b64(0x27b)]===this[_0x350b64(0x251)]&&_0x46b0a9[_0x350b64(0x148)]===!0x1&&_0x46b0a9['ranges'][_0x350b64(0x28b)]>0x0&&this['_updateLocalCursor'](_0x46b0a9[_0x350b64(0x1db)]);})),this[_0x1de992(0x267)][_0x1de992(0x248)][_0x1de992(0x269)](_0x426fdf(this['dispose$']))['subscribe'](_0x5d3fca=>{const _0x37fd8b=_0x1de992;if((_0x5d3fca==null?void 0x0:_0x5d3fca['unitID'])!==this[_0x37fd8b(0x251)])return;const _0x46e926={'eventID':_0x1eba19[_0x37fd8b(0xff)],'data':_0x5d3fca};this['_onCursorUpdate'](_0x46e926);}),this[_0x1de992(0x1c2)](this[_0x1de992(0x1ed)][_0x1de992(0x162)](_0x3372c5=>{const _0x32db06=_0x1de992;if(_0x3372c5[_0x32db06(0x166)]==null)return;const _0x466cf5=_0x3372c5[_0x32db06(0x166)];if(_0x3372c5['id']!==_0xc2d7de['id']||_0x466cf5[_0x32db06(0x27b)]!==this[_0x32db06(0x251)])return;const _0x2e2096={'id':_0x32db06(0x297),'params':_0x466cf5},_0x35d5c2=this[_0x32db06(0x164)];for(const [_0x342816,_0x157248]of _0x35d5c2){const _0x26c4be={'id':_0x32db06(0x297),'params':{'unitId':this[_0x32db06(0x251)],'actions':null,'textRanges':_0x157248[_0x32db06(0x1db)]}},_0x82e0f0=this[_0x32db06(0x20a)][_0x32db06(0x278)](_0x2e2096,_0x26c4be,!0x1);if(_0x55d582(_0x82e0f0))throw _0x82e0f0[_0x32db06(0x205)];_0x35d5c2[_0x32db06(0xc9)](_0x342816,{..._0x157248,'ranges':_0x82e0f0[_0x32db06(0x264)]['params'][_0x32db06(0x1b6)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x35d5c2);});})));}[_0x17995c(0x24a)](_0x1cb7da){const _0x16cdbc=_0x17995c;var _0x52727d,_0x72aa7c;const {memberID:_0x1551a2,selection:_0x56f306}=_0x1cb7da[_0x16cdbc(0x279)],_0x3051f2=Li(_0x56f306),_0xcd8afb=(_0x72aa7c=(_0x52727d=this['_memberService'][_0x16cdbc(0x2af)](this[_0x16cdbc(0x251)],_0x1551a2))==null?void 0x0:_0x52727d[_0x16cdbc(0x13a)])!=null?_0x72aa7c:_0x16cdbc(0xdf),_0x38e78f={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x1551a2),'name':_0xcd8afb,'ranges':_0x3051f2},_0x50cc57=this[_0x16cdbc(0x164)];_0x50cc57['set'](_0x1551a2,_0x38e78f),this[_0x16cdbc(0xbf)][_0x16cdbc(0xf2)](_0x50cc57);}[_0x17995c(0x15c)](_0x35f1e9){const _0x26e971=_0x17995c,{memberID:_0x2952a5}=_0x35f1e9[_0x26e971(0x279)],_0x39171a=this[_0x26e971(0x164)];_0x39171a[_0x26e971(0xeb)](_0x2952a5),this[_0x26e971(0xbf)][_0x26e971(0xf2)](_0x39171a);}[_0x17995c(0x23b)](){const _0x5298a5=_0x17995c;var _0x44e8e6;if(this[_0x5298a5(0x208)]=!0x0,((_0x44e8e6=this[_0x5298a5(0x290)][_0x5298a5(0x177)]())==null?void 0x0:_0x44e8e6[_0x5298a5(0x10d)]())!==this['unitID'])return;const _0x48ecb2=this[_0x5298a5(0x287)][_0x5298a5(0x265)](_0x470162)[_0x5298a5(0x1a0)]();Array[_0x5298a5(0x285)](_0x48ecb2)&&_0x48ecb2[_0x5298a5(0x28b)]>0x0&&this[_0x5298a5(0x1a5)](_0x48ecb2);}['_toggleOffline'](){this['_online']=!0x1;}};Pe=Ai([A(0x2,_0x11a278(_0x426398)),A(0x3,_0x11a278(je)),A(0x4,_0x11a278(_0x3af1e3)),A(0x5,_0x11a278(Xe)),A(0x6,_0x1a6bde),A(0x7,_0x382f2b),A(0x8,_0x31e8e2)],Pe);var yi=Object[_0x17995c(0x153)],$i=(_0xe3751e,_0x42c843,_0x271b2e,_0x3639ac)=>{const _0x2c88a3=_0x17995c;for(var _0x1fee78=_0x3639ac>0x1?void 0x0:_0x3639ac?yi(_0x42c843,_0x271b2e):_0x42c843,_0x1b7ef9=_0xe3751e[_0x2c88a3(0x28b)]-0x1,_0x59cbff;_0x1b7ef9>=0x0;_0x1b7ef9--)(_0x59cbff=_0xe3751e[_0x1b7ef9])&&(_0x1fee78=_0x59cbff(_0x1fee78)||_0x1fee78);return _0x1fee78;},B=(_0x49653a,_0x479dde)=>(_0x2ca8c4,_0x2b0447)=>_0x479dde(_0x2ca8c4,_0x2b0447,_0x49653a);const xi=0x12c,Bi=0x64,Fi=()=>{let _0x1da7b3=[],_0x5bf891=!0x1;return _0x3797c7=>{const _0x3535ab=_0x220d;_0x1da7b3[_0x3535ab(0x272)](_0x3797c7),_0x5bf891||(_0x5bf891=!0x0,setTimeout(()=>{_0x1da7b3['forEach'](_0x263ead=>_0x263ead()),_0x1da7b3=[],_0x5bf891=!0x1;}));};};let we=class extends _0x53201b{constructor(_0x128e58,_0x23f958,_0x19a4ea,_0x5bdfd6,_0x42c4e5,_0x30ee3f,_0x361bfb,_0x8764d6){const _0x1bc523=_0x17995c;super(),l(this,'_online',!0x1),l(this,_0x1bc523(0x11f),!0x1),l(this,_0x1bc523(0xbf),new _0x5ab626(new Map())),l(this,_0x1bc523(0x1b5),this['_cursorInfo$']['asObservable']()),l(this,_0x1bc523(0x204),new _0x5ab626([])),l(this,_0x1bc523(0x1ad),this[_0x1bc523(0x204)][_0x1bc523(0x269)](_0x241dd6(xi))),l(this,_0x1bc523(0x1a5),_0x302608((_0x5caf9a,_0x48f7e4)=>{const _0x2da358=_0x1bc523,_0x351e1a={'eventID':_0x1eba19[_0x2da358(0xff)],'data':{'unitID':this[_0x2da358(0x251)],'memberID':this['_session'][_0x2da358(0x29c)](),'selection':_0x38a017(_0x5caf9a,_0x48f7e4[_0x2da358(0x105)])}};this[_0x2da358(0x20f)][_0x2da358(0x1d5)](_0x351e1a,this['unitID']);},Bi)),(this[_0x1bc523(0x251)]=_0x128e58,this[_0x1bc523(0x20f)]=_0x23f958,this['_injector']=_0x19a4ea,this[_0x1bc523(0x1d6)]=_0x5bdfd6,this[_0x1bc523(0x224)]=_0x42c4e5,this[_0x1bc523(0x290)]=_0x30ee3f,this['_commandService']=_0x361bfb,this[_0x1bc523(0x11a)]=_0x8764d6);}get[_0x17995c(0x164)](){const _0xd41933=_0x17995c;return this[_0xd41933(0xbf)][_0xd41933(0x146)]();}get[_0x17995c(0x150)](){const _0x33c1ab=_0x17995c;return this['_roomMembers$'][_0x33c1ab(0x146)]();}[_0x17995c(0x2b4)](){const _0x3a7821=_0x17995c;super[_0x3a7821(0x2b4)](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$'][_0x3a7821(0x25e)](),this['_roomMembers$'][_0x3a7821(0xf2)]([]),this[_0x3a7821(0x204)][_0x3a7821(0x25e)]();}['init'](){const _0x556c98=_0x17995c;this[_0x556c98(0x11f)]||(this[_0x556c98(0x11f)]=!0x0,this[_0x556c98(0x20f)][_0x556c98(0x29a)][_0x556c98(0x269)](_0x426fdf(this['dispose$']))[_0x556c98(0x158)](_0x12d727=>{const _0x84105=_0x556c98;_0x12d727===_0x343edf[_0x84105(0x12f)]?this[_0x84105(0x23b)]():this['_toggleOffline']();}),this['_session']['event$'][_0x556c98(0x269)](_0x426fdf(this[_0x556c98(0xda)]))['subscribe'](_0x38abd6=>{const _0x40d781=_0x556c98,_0x2596a7=_0x38abd6[_0x40d781(0x28c)];_0x2596a7===_0x1eba19[_0x40d781(0xff)]&&this[_0x40d781(0x24a)](_0x38abd6),_0x2596a7===_0x1eba19[_0x40d781(0xd6)]&&this[_0x40d781(0x15c)](_0x38abd6);}),this[_0x556c98(0xce)](),this[_0x556c98(0x1c2)](this[_0x556c98(0x1ed)]['onCommandExecuted'](_0x431c0f=>{const _0x49db68=_0x556c98;if(this[_0x49db68(0x208)]&&_0x431c0f['id']===_0x4c6b4f['id']&&_0x431c0f[_0x49db68(0x166)][_0x49db68(0x27b)]===this['unitID']){const _0x220e06=_0x431c0f[_0x49db68(0x166)];this['_updateLocalCursor'](_0x220e06[_0x49db68(0x1be)],_0x220e06['selections'][0x0]);}})));}[_0x17995c(0x24a)](_0x38b30f){const _0x21c76b=_0x17995c;var _0x446e06,_0x522646;const {memberID:_0x4c426f,selection:_0x58c7a4}=_0x38b30f[_0x21c76b(0x279)],{sheetName:_0x448cbf,range:_0x46cc17}=_0x585551(_0x58c7a4),_0x5a9719={'name':(_0x522646=(_0x446e06=this['_memberService']['getMember'](this[_0x21c76b(0x251)],_0x4c426f))==null?void 0x0:_0x446e06[_0x21c76b(0x13a)])!=null?_0x522646:_0x21c76b(0xdf),'range':this['_getMergeRange'](_0x448cbf,_0x46cc17),'sheetID':_0x448cbf,'color':this[_0x21c76b(0x1d6)][_0x21c76b(0x13e)](_0x4c426f),'selection':_0x58c7a4},_0x346251=this[_0x21c76b(0x164)];_0x346251['set'](_0x4c426f,_0x5a9719),this[_0x21c76b(0xbf)][_0x21c76b(0xf2)](_0x346251);}[_0x17995c(0x15c)](_0x3fe85a){const _0x7dfd27=_0x17995c,{memberID:_0x29d1bf}=_0x3fe85a[_0x7dfd27(0x279)],_0x495878=this[_0x7dfd27(0x164)];_0x495878[_0x7dfd27(0xeb)](_0x29d1bf),this['_cursorInfo$'][_0x7dfd27(0xf2)](_0x495878);}[_0x17995c(0xbb)](_0x3ca4cf,_0x5324c1){const _0x51b739=_0x17995c;var _0x37765c,_0x2bb280;const _0x4cbfd=(_0x2bb280=(_0x37765c=this[_0x51b739(0x290)][_0x51b739(0x11c)](this[_0x51b739(0x251)]))==null?void 0x0:_0x37765c[_0x51b739(0x2c1)](_0x3ca4cf))==null?void 0x0:_0x2bb280['getMergeData']();return(_0x4cbfd==null?void 0x0:_0x4cbfd[_0x51b739(0xd2)](_0x419de9=>_0x3ec4b0[_0x51b739(0x252)](_0x419de9,_0x5324c1)))||_0x5324c1;}[_0x17995c(0xce)](){const _0x161532=_0x17995c,_0x1c200c=new _0x5c7e15(),_0x2207f0=Fi(),_0x1cce68=()=>{const _0x5545ec=_0x220d;_0x1c200c[_0x5545ec(0x2b4)]();const _0x4ead03=(_0x395bca,_0xe4999d,_0x3fc09e,_0xe15d89)=>{const _0x5ed03d=_0x5545ec;let _0x2619a6=[];switch(_0x395bca['id']){case _0x4e84fb[_0x5ed03d(0xc7)]:{_0x2619a6=_0x230d4f(_0x395bca,_0xe15d89);break;}case _0x4e84fb[_0x5ed03d(0x127)]:{_0x2619a6=_0x79a8bd(_0x395bca,_0xe15d89);break;}case _0x4e84fb[_0x5ed03d(0x1d0)]:{_0x2619a6=_0x289e62(_0x395bca,_0xe15d89);break;}case _0x4e84fb[_0x5ed03d(0x18d)]:{_0x2619a6=_0x271c7f(_0x395bca,_0xe15d89);break;}case _0x4e84fb[_0x5ed03d(0x112)]:{_0x2619a6=_0x2f5940(_0x395bca,_0xe15d89);break;}case _0x4e84fb[_0x5ed03d(0x295)]:{_0x2619a6=_0xf510f4(_0x395bca,_0xe15d89);break;}case _0x4e84fb['MoveRangeCommandId']:{_0x2619a6=_0x3899df(_0x395bca,_0xe15d89);break;}case _0x4e84fb[_0x5ed03d(0xb6)]:{_0x2619a6=_0x41f788(_0x395bca,_0xe15d89);break;}case _0x4e84fb['RemoveRowCommandId']:{_0x2619a6=_0x21aa6f(_0x395bca,_0xe15d89);break;}}const _0x553d3f=_0x205469(_0x2619a6,_0xe15d89),_0x1ea7da=this['cursorInfo'][_0x5ed03d(0x265)](_0xe4999d);if(_0x1ea7da&&_0x553d3f){const _0x3a6a8d={..._0x1ea7da,'range':_0x553d3f};this[_0x5ed03d(0x164)][_0x5ed03d(0xc9)](_0xe4999d,_0x3a6a8d),_0x2207f0(()=>{const _0x42a5b1=_0x5ed03d,_0x176d90=this[_0x42a5b1(0x11a)][_0x42a5b1(0x198)](_0x553d3f,_0x980206=>(_0x176d90[_0x42a5b1(0x2b4)](),_0x4ead03(_0x980206,_0xe4999d,_0x3fc09e,_0x553d3f)));_0x1c200c[_0x42a5b1(0x25d)](_0x176d90);});}return{'redos':[],'undos':[]};};this[_0x5545ec(0x164)]['forEach']((_0x5e8eec,_0x4b6ee5)=>{const _0x3aece0=_0x5545ec,{range:_0x582fec,sheetID:_0x1ce4ee}=_0x5e8eec,_0x22a870=this[_0x3aece0(0x11a)][_0x3aece0(0x198)](_0x582fec,_0x1e36ed=>(_0x22a870[_0x3aece0(0x2b4)](),_0x4ead03(_0x1e36ed,_0x4b6ee5,_0x1ce4ee,_0x582fec)));_0x1c200c[_0x3aece0(0x25d)](_0x22a870);});};this[_0x161532(0x1c2)](_0x3213ea(this[_0x161532(0xbf)][_0x161532(0x158)](()=>{_0x1cce68();})));}[_0x17995c(0x23b)](){const _0x551d16=_0x17995c;var _0x5cddd5,_0x38fcbb;if(this[_0x551d16(0x208)]=!0x0,((_0x5cddd5=this['_univerInstanceService'][_0x551d16(0x177)]())==null?void 0x0:_0x5cddd5['getUnitId']())!==this[_0x551d16(0x251)])return;const _0x144566=(_0x38fcbb=this[_0x551d16(0x287)]['get'](_0x559b06)[_0x551d16(0x23d)]())==null?void 0x0:_0x38fcbb[0x0],_0x28d877=this[_0x551d16(0x290)][_0x551d16(0x1af)](_0x502d97[_0x551d16(0x12d)])[_0x551d16(0x2a4)]();_0x144566&&_0x28d877&&this[_0x551d16(0x1a5)](_0x28d877[_0x551d16(0xa9)](),_0x144566);}[_0x17995c(0x197)](){const _0x1f92b2=_0x17995c;this[_0x1f92b2(0x208)]=!0x1;}};we=$i([B(0x2,_0x11a278(_0x426398)),B(0x3,_0x11a278(je)),B(0x4,_0x11a278(_0x3af1e3)),B(0x5,_0x382f2b),B(0x6,_0x31e8e2),B(0x7,_0x11a278(_0x1fa5d1))],we);var ki=Object[_0x17995c(0x153)],Hi=(_0x512212,_0xce1175,_0x1debac,_0x2f71f8)=>{const _0x30a50e=_0x17995c;for(var _0x43efa0=_0x2f71f8>0x1?void 0x0:_0x2f71f8?ki(_0xce1175,_0x1debac):_0xce1175,_0x2c64b4=_0x512212[_0x30a50e(0x28b)]-0x1,_0x451834;_0x2c64b4>=0x0;_0x2c64b4--)(_0x451834=_0x512212[_0x2c64b4])&&(_0x43efa0=_0x451834(_0x43efa0)||_0x43efa0);return _0x43efa0;},Ee=(_0x23c3ed,_0x2a2807)=>(_0x1b5dc0,_0x4252ac)=>_0x2a2807(_0x1b5dc0,_0x4252ac,_0x23c3ed);let H=class extends _0x53201b{constructor(_0x242432,_0x3c489c,_0x217af4){const _0x4c63a0=_0x17995c;super(),l(this,_0x4c63a0(0x250),new Map()),l(this,_0x4c63a0(0x10f),new _0x34a8bd()),(this[_0x4c63a0(0x290)]=_0x242432,this[_0x4c63a0(0x287)]=_0x3c489c,this[_0x4c63a0(0x195)]=_0x217af4,this['_init']());}['dispose'](){const _0x72c20b=_0x17995c;super[_0x72c20b(0x2b4)](),this[_0x72c20b(0x10f)][_0x72c20b(0x25e)](),this[_0x72c20b(0x250)]['forEach'](_0x100e76=>_0x100e76[_0x72c20b(0x2b4)]());}['getCollabCursors$'](_0x386586){const _0x23762b=_0x17995c;return this['_entities'][_0x23762b(0x2a9)](_0x386586)?this[_0x23762b(0x250)][_0x23762b(0x265)](_0x386586)['cursorInfo$']:this[_0x23762b(0x10f)][_0x23762b(0x269)](_0x26217d(_0x549bc4=>_0x549bc4[_0x23762b(0x251)]===_0x386586),_0x276c2a(_0xa66069=>_0xa66069[_0x23762b(0x1b5)]));}[_0x17995c(0x11f)](){const _0x53713d=_0x17995c;this[_0x53713d(0x290)][_0x53713d(0x206)](_0x502d97[_0x53713d(0x12d)])['pipe'](_0x426fdf(this[_0x53713d(0xda)]))[_0x53713d(0x158)](async _0x34ed62=>{const _0x2f3e27=_0x53713d,_0x59868c=_0x34ed62['getUnitId'](),_0x612159=await this[_0x2f3e27(0x1b3)](_0x59868c);this[_0x2f3e27(0x10f)][_0x2f3e27(0xf2)](_0x612159),this[_0x2f3e27(0x250)][_0x2f3e27(0xc9)](_0x59868c,_0x612159);}),this[_0x53713d(0x290)]['getTypeOfUnitAdded$'](_0x502d97['UNIVER_DOC'])[_0x53713d(0x269)](_0x426fdf(this[_0x53713d(0xda)]))['pipe'](_0x26217d(_0x5412f1=>!_0x5412f1[_0x53713d(0x10d)]()[_0x53713d(0xc2)]('__')))['subscribe'](async _0x4e8115=>{const _0x12553f=_0x53713d,_0x5a649d=_0x4e8115[_0x12553f(0x10d)](),_0x59d4d7=await this[_0x12553f(0x231)](_0x5a649d);this['_entityInit$'][_0x12553f(0xf2)](_0x59d4d7),this[_0x12553f(0x250)][_0x12553f(0xc9)](_0x5a649d,_0x59d4d7);}),_0x298745(this[_0x53713d(0x290)]['getTypeOfUnitDisposed$'](_0x502d97[_0x53713d(0x92)]),this[_0x53713d(0x290)][_0x53713d(0xdb)](_0x502d97['UNIVER_SHEET']))[_0x53713d(0x269)](_0x426fdf(this[_0x53713d(0xda)]))[_0x53713d(0x158)](_0x18a7f4=>{const _0x65fea7=_0x53713d,_0x4597e6=_0x18a7f4[_0x65fea7(0x10d)](),_0x21ca13=this[_0x65fea7(0x250)][_0x65fea7(0x265)](_0x4597e6);_0x21ca13&&(_0x21ca13[_0x65fea7(0x2b4)](),this['_entities'][_0x65fea7(0xeb)](_0x4597e6));});}async[_0x17995c(0x1b3)](_0x369113){const _0x680c2c=_0x17995c,_0x12447f=await this['_collabSessionService'][_0x680c2c(0xe3)](_0x369113),_0x4dfae3=this[_0x680c2c(0x287)]['createInstance'](we,_0x369113,_0x12447f);return _0x4dfae3[_0x680c2c(0x1f9)](),_0x4dfae3;}async[_0x17995c(0x231)](_0x29cb36){const _0x500360=_0x17995c,_0x9bd0e0=await this[_0x500360(0x195)][_0x500360(0xe3)](_0x29cb36),_0x11f8b4=this['_injector'][_0x500360(0x256)](Pe,_0x29cb36,_0x9bd0e0);return _0x11f8b4[_0x500360(0x1f9)](),_0x11f8b4;}};H=Hi([Ee(0x0,_0x382f2b),Ee(0x1,_0x11a278(_0x426398)),Ee(0x2,_0x11a278(_0x141d96))],H);const Q=0x14,it=0xc8,pe=0x4,Yi=0x5;function Wi(_0x2c936d,_0x184730){const _0x42a2c9=_0x17995c;let {radius:_0x274b13,width:_0x1b99da,height:_0x3b865c}=_0x184730;_0x274b13=_0x274b13!=null?_0x274b13:0x0,_0x1b99da=_0x1b99da!=null?_0x1b99da:0x1e,_0x3b865c=_0x3b865c!=null?_0x3b865c:0x1e;let _0x29a516=0x0,_0x3ef43e=0x0,_0x4d3c83=0x0;_0x29a516=_0x3ef43e=_0x4d3c83=Math[_0x42a2c9(0xe6)](_0x274b13,_0x1b99da/0x2,_0x3b865c/0x2),_0x2c936d[_0x42a2c9(0x13d)](),_0x2c936d['moveTo'](_0x29a516,0x0),_0x2c936d['lineTo'](_0x1b99da-_0x3ef43e,0x0),_0x2c936d['arc'](_0x1b99da-_0x3ef43e,_0x3ef43e,_0x3ef43e,Math['PI']*0x3/0x2,0x0,!0x1),_0x2c936d[_0x42a2c9(0x2a3)](_0x1b99da,_0x3b865c-_0x4d3c83),_0x2c936d[_0x42a2c9(0x1fa)](_0x1b99da-_0x4d3c83,_0x3b865c-_0x4d3c83,_0x4d3c83,0x0,Math['PI']/0x2,!0x1),_0x2c936d[_0x42a2c9(0x2a3)](0x0,_0x3b865c),_0x2c936d[_0x42a2c9(0x2a3)](0x0,_0x29a516),_0x2c936d[_0x42a2c9(0x1fa)](_0x29a516,_0x29a516,_0x29a516,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2c936d[_0x42a2c9(0x286)](),_0x184730['fill']&&(_0x2c936d['save'](),_0x2c936d[_0x42a2c9(0x122)]=_0x184730[_0x42a2c9(0x1cd)],_0x184730['fillRule']==='evenodd'?_0x2c936d[_0x42a2c9(0x1cd)](_0x42a2c9(0x193)):_0x2c936d[_0x42a2c9(0x1cd)](),_0x2c936d[_0x42a2c9(0x88)]());}class me extends _0xd80c53{constructor(_0x310e9a,_0x337fca){const _0x1b5a10=_0x17995c;super(_0x310e9a,_0x337fca),l(this,_0x1b5a10(0x1b1)),l(this,_0x1b5a10(0x109)),(this['color']=_0x337fca==null?void 0x0:_0x337fca[_0x1b5a10(0x1b1)],this[_0x1b5a10(0x109)]=_0x337fca==null?void 0x0:_0x337fca[_0x1b5a10(0x109)]);}static[_0x17995c(0x178)](_0x36c29d,_0x36d9fd){const _0x33e063=_0x17995c,{text:_0x456829,color:_0x43121b}=_0x36d9fd;_0x36c29d[_0x33e063(0xb8)](),_0x36c29d[_0x33e063(0x291)]=_0x33e063(0x1de);const _0x8a73b1=_0x36c29d[_0x33e063(0x8f)](_0x456829)[_0x33e063(0x213)],_0x3ae76d=Math[_0x33e063(0xe6)](_0x8a73b1+0x2*pe,it);Wi(_0x36c29d,{'height':Q,'radius':0x4,'width':_0x3ae76d,'fill':_0x43121b}),_0x36c29d['fillStyle']=_0x33e063(0x1b0);const _0x2a89ef=pe,_0x43d4d7=Q-Yi,_0xd708a9=it-0x2*pe;if(_0x8a73b1>_0xd708a9){let _0x2746af='',_0x3c44f6=0x0;for(const _0x351206 of _0x456829){const _0x246791=_0x36c29d['measureText'](_0x351206)['width'];if(_0x3c44f6+_0x246791<=_0xd708a9-_0x36c29d[_0x33e063(0x8f)](_0x33e063(0x284))[_0x33e063(0x213)])_0x2746af+=_0x351206,_0x3c44f6+=_0x246791;else{_0x2746af+=_0x33e063(0x284);break;}}_0x36c29d[_0x33e063(0x19f)](_0x2746af,_0x2a89ef,_0x43d4d7);}else _0x36c29d[_0x33e063(0x19f)](_0x456829,_0x2a89ef,_0x43d4d7);_0x36c29d[_0x33e063(0x88)]();}[_0x17995c(0x19e)](_0x4d7dff){const _0x10f77b=_0x17995c;me[_0x10f77b(0x178)](_0x4d7dff,this);}}const Oe='collab-text-anchor-',Vi='collab-text-range-',ji='collab-rect-range-',z=0x6,Xi=1.5,Te=0x4,Gi=1.5,Ki=_0x17995c(0x1e2);class nt{constructor(_0x571005,_0x526d95,_0x52ecb0,_0x12e205){const _0x55ad3e=_0x17995c;l(this,_0x55ad3e(0x133),[]),l(this,'_anchor',null),l(this,_0x55ad3e(0x117),null),l(this,_0x55ad3e(0xc5),null),l(this,'_hideTimer',null),l(this,_0x55ad3e(0x223),null),(this[_0x55ad3e(0x1ee)]=_0x571005,this['_scene']=_0x526d95,this[_0x55ad3e(0x119)]=_0x52ecb0,this[_0x55ad3e(0x247)]=_0x12e205,this['_render']());}set['_hover'](_0x381cce){const _0x16dda6=_0x17995c;_0x381cce?(this[_0x16dda6(0xc5)]&&this[_0x16dda6(0xc5)][_0x16dda6(0xcb)](),this['_textBubble']&&this[_0x16dda6(0x117)][_0x16dda6(0xfe)]()):(this[_0x16dda6(0xc5)]&&this['_anchorDot'][_0x16dda6(0xfe)](),this[_0x16dda6(0x117)]&&this['_textBubble'][_0x16dda6(0xcb)]());}[_0x17995c(0x2b4)](){const _0x3b1d41=_0x17995c;for(const _0x2002bb of this[_0x3b1d41(0x133)])_0x2002bb[_0x3b1d41(0x2b4)]();this[_0x3b1d41(0x117)]&&this[_0x3b1d41(0x117)][_0x3b1d41(0x2b4)](),this[_0x3b1d41(0xc5)]&&this['_anchorDot'][_0x3b1d41(0x2b4)](),this[_0x3b1d41(0x21e)]&&this[_0x3b1d41(0x21e)]['dispose'](),this[_0x3b1d41(0x223)]&&this['_eventUnsubscribe']();}[_0x17995c(0x2bc)](){const _0x1f2086=_0x17995c;var _0xcee9a2;const {_docSkeleton:_0x5b352c,_document:_0x192e43}=this,{color:_0x211478,name:_0xe4ac21,ranges:_0x87b0d7}=this[_0x1f2086(0x1ee)],_0xbea826=_0x192e43['getOffsetConfig'](),{docsLeft:_0x77ca69,docsTop:_0x11f81b}=_0xbea826,_0x3f1287=new _0x2b24bd(_0xbea826,_0x5b352c);for(const {startOffset:_0x50accd,endOffset:_0x1655cf,rangeType:_0x1d10a7,segmentId:_0xc9a9db,segmentPage:_0x4be7d7,collapsed:_0x4bf827,isActive:_0x28eeed}of _0x87b0d7){const _0x42d113=_0x5b352c[_0x1f2086(0x207)](_0x50accd,!0x0,_0xc9a9db,_0x4be7d7);let _0x3829f0=_0x5b352c[_0x1f2086(0x207)](_0x1655cf,!0x0,_0xc9a9db,_0x4be7d7);if(_0x3829f0==null&&(_0x3829f0=_0x5b352c[_0x1f2086(0x207)](_0x1655cf-0x1,!0x1,_0xc9a9db,_0x4be7d7)),_0x28eeed){const {contentBoxPointGroup:_0x4ee92b}=_0x3f1287[_0x1f2086(0x2b3)](_0x3829f0,_0x3829f0);if(_0x4ee92b['length']===0x0)continue;this[_0x1f2086(0x1e9)](_0x211478,_0x4ee92b,_0x77ca69,_0x11f81b,_0xe4ac21),this[_0x1f2086(0x223)]=this[_0x1f2086(0x17e)]();}if(_0x42d113&&_0x3829f0){if(_0x1d10a7===_0x461746[_0x1f2086(0x1aa)]){const _0x3c04f3=new _0x3e66b9(_0xbea826,_0x5b352c),{pointGroup:_0x3a9ad1}=(_0xcee9a2=_0x3c04f3['getRangePointData'](_0x42d113,_0x3829f0))!=null?_0xcee9a2:{};if(_0x3a9ad1==null||_0x3a9ad1['length']===0x0)continue;this[_0x1f2086(0x21d)](_0x211478,_0x3a9ad1,_0x77ca69,_0x11f81b);}else{if(!_0x4bf827){const {borderBoxPointGroup:_0x4366b4}=_0x3f1287['getRangePointData'](_0x42d113,_0x3829f0);if(_0x4366b4[_0x1f2086(0x28b)]===0x0)continue;this[_0x1f2086(0x1fc)](_0x211478,_0x4366b4,_0x77ca69,_0x11f81b);}}}}}[_0x17995c(0x1e9)](_0x3d0864,_0x595418,_0x22b852,_0x483603,_0x53610d){const _0x36f0e7=_0x17995c,_0x110657=this['_getAnchorBounding'](_0x595418),{left:_0x45c4cd,top:_0x546e1e,height:_0x56da22}=_0x110657,_0x51ef45=this[_0x36f0e7(0x156)](),_0x22554b=Gi/_0x51ef45,_0xcc7e7c=new _0x27916c(Oe+_0x25c646(z),{'left':_0x45c4cd+_0x22b852-_0x22554b,'top':_0x546e1e+_0x483603,'height':_0x56da22,'width':Xi,'fill':_0x3d0864||_0x311d32(_0x4a1af7['black'],0x0),'strokeWidth':_0x22554b,'stroke':Ki,'evented':!0x0});this[_0x36f0e7(0x21e)]=_0xcc7e7c,this[_0x36f0e7(0x15e)][_0x36f0e7(0x1a6)](_0xcc7e7c,_0x5f5b0d);const _0x1fd3fd=new _0x27916c(Oe+_0x25c646(z),{'left':_0x45c4cd+_0x22b852-_0x22554b,'top':_0x546e1e+_0x483603-Te/0x2,'height':Te,'width':Te,'fill':_0x3d0864||_0x311d32(_0x4a1af7['black'],0x0),'strokeWidth':0x0,'stroke':_0x3d0864||_0x311d32(_0x4a1af7[_0x36f0e7(0x140)],0x0),'evented':!0x1});this['_anchorDot']=_0x1fd3fd,this[_0x36f0e7(0x15e)][_0x36f0e7(0x1a6)](_0x1fd3fd,_0x5f5b0d);const _0x3cf7b4=new me(Oe+_0x25c646(z),{'left':_0x45c4cd+_0x22b852-_0x22554b,'top':_0x546e1e+_0x483603-Q,'text':_0x53610d,'color':_0x3d0864});this[_0x36f0e7(0x117)]=_0x3cf7b4,this[_0x36f0e7(0x15e)][_0x36f0e7(0x1a6)](_0x3cf7b4,_0x5f5b0d),this[_0x36f0e7(0x1d2)]=!0x1;}['_handleHover'](){const _0x2bb7bb=_0x17995c,_0x1a8145=this[_0x2bb7bb(0x21e)][_0x2bb7bb(0x2ac)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x86fb69=this[_0x2bb7bb(0x21e)][_0x2bb7bb(0x249)][_0x2bb7bb(0x2bd)](()=>{const _0x564d2b=_0x2bb7bb;this['_hideTimer']&&clearTimeout(this[_0x564d2b(0x255)]),this[_0x564d2b(0x255)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x11b653=_0x2bb7bb;_0x1a8145[_0x11b653(0x271)](),_0x86fb69[_0x11b653(0x271)]();};}['_drawTextRange'](_0x1537b6,_0x43bc48,_0x415d27,_0x135c2e){const _0x5f297d=_0x17995c,_0x5143aa=new _0x109ebd(_0x1537b6)['setAlpha'](0.2)[_0x5f297d(0x2a1)](),_0xb09c3e=new _0x4b441d(Vi+_0x25c646(z),{'pointsGroup':_0x43bc48,'fill':_0x5143aa||_0x311d32(_0x4a1af7[_0x5f297d(0x140)],0.2),'left':_0x415d27,'top':_0x135c2e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5f297d(0x133)][_0x5f297d(0x272)](_0xb09c3e),this[_0x5f297d(0x15e)][_0x5f297d(0x1a6)](_0xb09c3e,_0x5f5b0d);}['_drawRectRange'](_0x2bb2fe,_0x39ca98,_0x4654d6,_0x130499){const _0x50c8c3=_0x17995c,_0x22d122=new _0x109ebd(_0x2bb2fe)['setAlpha'](0.2)[_0x50c8c3(0x2a1)](),_0x4292a7=new _0x4b441d(ji+_0x25c646(z),{'pointsGroup':_0x39ca98,'fill':_0x22d122||_0x311d32(_0x4a1af7[_0x50c8c3(0x140)],0.2),'left':_0x4654d6,'top':_0x130499,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x50c8c3(0x133)]['push'](_0x4292a7),this[_0x50c8c3(0x15e)][_0x50c8c3(0x1a6)](_0x4292a7,_0x5f5b0d);}[_0x17995c(0xb9)](_0x397888){const _0x2ee61c=_0x397888[0x0],_0x506c6e=_0x2ee61c[0x0],_0x4fe67c=_0x2ee61c[0x2],{x:_0x1ea9f6,y:_0x26ad8}=_0x506c6e,{x:_0x5e52dc,y:_0x482d97}=_0x4fe67c;return{'left':_0x1ea9f6,'top':_0x26ad8,'width':_0x5e52dc-_0x1ea9f6,'height':_0x482d97-_0x26ad8};}[_0x17995c(0x156)](){const _0x4fc046=_0x17995c,{scaleX:_0x36dc70,scaleY:_0x2d79ed}=this[_0x4fc046(0x15e)]['getAncestorScale']();return Math[_0x4fc046(0x12b)](_0x36dc70,_0x2d79ed);}}var zi=Object[_0x17995c(0x153)],Ji=(_0x322a5d,_0x5db957,_0x1781f2,_0x3fba08)=>{const _0xac7786=_0x17995c;for(var _0x5bf690=_0x3fba08>0x1?void 0x0:_0x3fba08?zi(_0x5db957,_0x1781f2):_0x5db957,_0x623d9a=_0x322a5d[_0xac7786(0x28b)]-0x1,_0x5bbd19;_0x623d9a>=0x0;_0x623d9a--)(_0x5bbd19=_0x322a5d[_0x623d9a])&&(_0x5bf690=_0x5bbd19(_0x5bf690)||_0x5bf690);return _0x5bf690;},ie=(_0x5f2645,_0x35b057)=>(_0x3e1884,_0x4d38e2)=>_0x35b057(_0x3e1884,_0x4d38e2,_0x5f2645);let ye=class extends _0x53201b{constructor(_0x51a3b4,_0xef8eca,_0x5de965,_0x4f9219,_0x1bc0e5){const _0x456f46=_0x17995c;super(),l(this,_0x456f46(0x8e),[]),l(this,_0x456f46(0x136),[]),(this[_0x456f46(0xf6)]=_0x51a3b4,this[_0x456f46(0x9d)]=_0xef8eca,this[_0x456f46(0x25c)]=_0x5de965,this[_0x456f46(0x1ed)]=_0x4f9219,this[_0x456f46(0x143)]=_0x1bc0e5,this[_0x456f46(0x11f)]());}[_0x17995c(0x11f)](){const _0x94378a=_0x17995c,_0x1ede84=this[_0x94378a(0xf6)][_0x94378a(0x27b)],_0x5240bc=this[_0x94378a(0x9d)];this[_0x94378a(0x1c2)](_0x524282([this[_0x94378a(0x25c)]['getCollabCursors$'](_0x1ede84),this['_themeService'][_0x94378a(0x1bd)]])[_0x94378a(0x269)](_0x248c7f(([_0x24106e,_0x2db39a])=>({'skeleton':_0x5240bc[_0x94378a(0x1ae)](),'cursors':[..._0x24106e[_0x94378a(0x161)]()]['flatMap'](_0x562784=>({..._0x562784,'color':this['_themeService'][_0x94378a(0x28a)](_0x562784[_0x94378a(0x1b1)])}))})))[_0x94378a(0x158)](_0x23f105=>{if(this['_removeCollabCursors'](),_0x23f105){const {skeleton:_0xd2af7,cursors:_0x27630c}=_0x23f105;this['_updateCollabCursors'](_0xd2af7,_0x27630c);}})),this['_initResize'](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x3e1ac5,_0x1cd42d){const _0x134bea=_0x17995c,{scene:_0x405428,mainComponent:_0x11b563}=this[_0x134bea(0xf6)],_0x5c712a=_0x1cd42d[_0x134bea(0x14e)](_0xe070bd=>new nt(_0xe070bd,_0x405428,_0x3e1ac5,_0x11b563));this['_cursorShapes']=_0x5c712a,this['_cursors']=_0x1cd42d;}[_0x17995c(0x99)](){const _0x36100f=_0x17995c;this[_0x36100f(0x1f4)]();const {scene:_0x6281f7,mainComponent:_0x385864}=this[_0x36100f(0xf6)],_0x8cda5f=this[_0x36100f(0x9d)][_0x36100f(0x1ae)](),_0x1d5061=this['_cursors'][_0x36100f(0x14e)](_0x266632=>new nt(_0x266632,_0x6281f7,_0x8cda5f,_0x385864));this[_0x36100f(0x8e)]=_0x1d5061;}['_removeCollabCursors'](){const _0x4f5918=_0x17995c;this[_0x4f5918(0x8e)][_0x4f5918(0xbe)](_0x473eba=>_0x473eba[_0x4f5918(0x2b4)]()),this[_0x4f5918(0x8e)]=[];}[_0x17995c(0x103)](){const _0x3410a2=_0x17995c,_0x35d56e=[_0x7dd482['id']];this['disposeWithMe'](this[_0x3410a2(0x1ed)][_0x3410a2(0x162)](_0x39b0bd=>{const _0x46de66=_0x3410a2;_0x35d56e[_0x46de66(0x16e)](_0x39b0bd['id'])&&_0x39b0bd[_0x46de66(0x166)][_0x46de66(0x27b)]===this['_context'][_0x46de66(0x27b)]&&this[_0x46de66(0x99)]();}));}[_0x17995c(0x20c)](){const _0x261f7f=_0x17995c;this[_0x261f7f(0x1c2)](_0x1f3ae9(this[_0x261f7f(0xf6)]['engine'][_0x261f7f(0x239)])[_0x261f7f(0x269)](_0x3f54ce(_0x1adf1d=>_0x1adf1d[_0x261f7f(0x21b)]===_0x19661c[_0x261f7f(0x1c0)]),_0x53d2a8(0x10))[_0x261f7f(0x158)](()=>{const _0x552add=_0x261f7f;this[_0x552add(0x99)]();}));}};ye=Ji([ie(0x1,_0x11a278(_0x33174f)),ie(0x2,_0x11a278(H)),ie(0x3,_0x31e8e2),ie(0x4,_0x11a278(_0x3e584d))],ye);const Zi=0x1,Qi=1.5;class qi extends _0xd80c53{constructor(_0x321184,_0x34996c){const _0x52db11=_0x17995c;super(_0x321184,_0x34996c),l(this,_0x52db11(0x137)),l(this,_0x52db11(0x1c6),!0x1),l(this,_0x52db11(0xf5)),l(this,_0x52db11(0x2b9),''),l(this,_0x52db11(0x22f),_0x52db11(0x128)),l(this,_0x52db11(0x27c)),(_0x34996c&&this['setShapeProps'](_0x34996c),this[_0x52db11(0x2ac)]['subscribeEvent'](()=>this[_0x52db11(0x98)]({'hovered':!0x0})),this[_0x52db11(0x249)][_0x52db11(0x2bd)](()=>this[_0x52db11(0x98)]({'hovered':!0x1})));}[_0x17995c(0x98)](_0x26cabe){const _0x159739=_0x17995c;var _0xa9916c,_0x5b399f,_0x30bb58,_0x581f06,_0x4f050f,_0x526a9c;this[_0x159739(0x137)]=(_0xa9916c=_0x26cabe['color'])!=null?_0xa9916c:this[_0x159739(0x137)],this[_0x159739(0x1c6)]=(_0x5b399f=_0x26cabe[_0x159739(0x169)])!=null?_0x5b399f:this[_0x159739(0x1c6)],this[_0x159739(0xf5)]=(_0x30bb58=_0x26cabe[_0x159739(0x105)])!=null?_0x30bb58:this[_0x159739(0xf5)],this[_0x159739(0x2b9)]=(_0x581f06=_0x26cabe[_0x159739(0x13a)])!=null?_0x581f06:this['_name'],this[_0x159739(0x22f)]=(_0x4f050f=_0x26cabe[_0x159739(0x1e8)])!=null?_0x4f050f:this[_0x159739(0x22f)],this['_backgroundColor']=(_0x526a9c=_0x26cabe[_0x159739(0x1fd)])!=null?_0x526a9c:this['_backgroundColor'],this[_0x159739(0x15a)]({'width':_0x26cabe['width'],'height':_0x26cabe[_0x159739(0x2be)]});}[_0x17995c(0x2b0)](_0x1b4d9e){const _0x25bc84=_0x17995c,{row:_0x246701,column:_0x708d4f}=_0x1b4d9e;if(_0x246701>=this['_range'][_0x25bc84(0xb3)]&&_0x246701<=this[_0x25bc84(0xf5)]['endRow']&&_0x708d4f>=this[_0x25bc84(0xf5)][_0x25bc84(0x1c7)]&&_0x708d4f<=this[_0x25bc84(0xf5)][_0x25bc84(0x17b)]){this[_0x25bc84(0x98)]({'hovered':!0x0});return;}this[_0x25bc84(0x98)]({'hovered':!0x1});}['triggerDblclick'](_0x34be75){return!0x1;}[_0x17995c(0x19e)](_0x4283cf){const _0x9973ca=_0x17995c;_0x27916c[_0x9973ca(0x178)](_0x4283cf,{'width':this[_0x9973ca(0x213)],'height':this[_0x9973ca(0x2be)],'strokeWidth':Qi,'stroke':this[_0x9973ca(0x137)],'evented':!0x1,'fill':this[_0x9973ca(0x27c)]}),this['_hovered']&&(_0x4283cf[_0x9973ca(0xb8)](),_0x4283cf['transform'](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x9973ca(0x168)?0x0:-Q),me['drawWith'](_0x4283cf,{'text':this[_0x9973ca(0x2b9)],'color':this[_0x9973ca(0x137)]}),_0x4283cf[_0x9973ca(0x88)]());}}var en=Object['getOwnPropertyDescriptor'],tn=(_0xc3026c,_0x3b6d53,_0x3b8d08,_0x3c94e5)=>{const _0x2733ab=_0x17995c;for(var _0x86d718=_0x3c94e5>0x1?void 0x0:_0x3c94e5?en(_0x3b6d53,_0x3b8d08):_0x3b6d53,_0x47504d=_0xc3026c[_0x2733ab(0x28b)]-0x1,_0x5b3ea1;_0x47504d>=0x0;_0x47504d--)(_0x5b3ea1=_0xc3026c[_0x47504d])&&(_0x86d718=_0x5b3ea1(_0x86d718)||_0x86d718);return _0x86d718;},Ce=(_0x25dd75,_0x10b524)=>(_0x3d1d80,_0x40760b)=>_0x10b524(_0x3d1d80,_0x40760b,_0x25dd75);const sn=0x1389;let $e=class extends _0x53201b{constructor(_0x2a3621,_0x20db61,_0x34879d,_0x49239e){const _0x25a698=_0x17995c;super(),l(this,'_cursors',new Set()),l(this,'_lastPointer',null),(this[_0x25a698(0xf6)]=_0x2a3621,this[_0x25a698(0x174)]=_0x20db61,this[_0x25a698(0x25c)]=_0x34879d,this['_themeService']=_0x49239e,this[_0x25a698(0x11f)]());}[_0x17995c(0x11f)](){const _0x5b6100=_0x17995c;this[_0x5b6100(0x174)][_0x5b6100(0x135)][_0x5b6100(0x269)](_0x5050e3(this['dispose$']),_0x4613aa(_0x793257=>{const _0x4e5576=_0x5b6100;if(_0x793257){const _0x23327b=_0x793257[_0x4e5576(0x214)];return _0x524282(this['_collabCursorController'][_0x4e5576(0x245)](this['_context'][_0x4e5576(0x27b)]),this[_0x4e5576(0x143)]['currentTheme$'])['pipe'](_0x248c7f(([_0xa69828,_0x19eaf0])=>{const _0x46850e=_0x4e5576,_0x21d369=new Map();return _0xa69828[_0x46850e(0xbe)]((_0x17df51,_0x2c8db8)=>{const _0x5f0d2c=_0x46850e;if(_0x17df51[_0x5f0d2c(0x22a)]===_0x23327b){const _0x3ed736={..._0x17df51};_0x3ed736['color']=this['_themeService'][_0x5f0d2c(0x28a)](_0x17df51[_0x5f0d2c(0x1b1)]),_0x21d369[_0x5f0d2c(0xc9)](_0x2c8db8,_0x3ed736);}}),{'skeleton':_0x793257,'cursors':_0x21d369};}));}return _0x461f63({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1d60f8,cursors:_0x59df42})=>{const _0x461ba4=_0x5b6100;this[_0x461ba4(0x1f4)](),_0x1d60f8&&this[_0x461ba4(0x175)](_0x1d60f8,_0x59df42);}),this[_0x5b6100(0x174)][_0x5b6100(0x135)][_0x5b6100(0x158)](_0x1f9ec8=>{const _0x29a172=_0x5b6100;if(_0x1f9ec8==null)return;const {skeleton:_0x76c097}=_0x1f9ec8,{scene:_0x8ff3cd}=this[_0x29a172(0xf6)];_0x8ff3cd[_0x29a172(0x274)][_0x29a172(0x2bd)](_0x302608(_0x3cd2a7=>{const _0x3b5388=_0x29a172;var _0x22b5b3,_0x94cbfa;const {offsetX:_0x127028,offsetY:_0x41925c}=_0x3cd2a7,{x:_0xfd07b1,y:_0x553c02}=_0x8ff3cd[_0x3b5388(0x11e)](_0x58f725[_0x3b5388(0x2b7)]([_0x127028,_0x41925c])),{scaleX:_0x204881,scaleY:_0x20c155}=_0x8ff3cd[_0x3b5388(0x2ba)](),_0x4e23b5=_0x8ff3cd[_0x3b5388(0x11d)](_0x2389fc[_0x3b5388(0x184)]),_0x3aab02=_0x8ff3cd[_0x3b5388(0x1c5)](_0x58f725[_0x3b5388(0x2b7)]([_0xfd07b1,_0x553c02]),_0x4e23b5),_0xf58e9c=_0x76c097['getCellPositionByOffset'](_0x127028,_0x41925c,_0x204881,_0x20c155,_0x3aab02);((_0x22b5b3=this[_0x3b5388(0x1e0)])==null?void 0x0:_0x22b5b3['column'])===_0xf58e9c[_0x3b5388(0x14c)]&&((_0x94cbfa=this[_0x3b5388(0x1e0)])==null?void 0x0:_0x94cbfa[_0x3b5388(0x101)])===_0xf58e9c[_0x3b5388(0x101)]||this['_cursors'][_0x3b5388(0xbe)](_0xd45398=>{const _0x21c009=_0x3b5388;_0xd45398[_0x21c009(0x2b0)](_0xf58e9c);});},0x64));});}['_updateCollabCursors'](_0x5220b,_0x3f28df){const _0x4e44c5=_0x17995c;var _0x102a5c;const _0x34d85f=(_0x102a5c=this[_0x4e44c5(0x174)][_0x4e44c5(0x25f)]())==null?void 0x0:_0x102a5c['skeleton'];if(!_0x34d85f)return;const _0x1e7395=this[_0x4e44c5(0x25b)]();if(!_0x1e7395)return;this[_0x4e44c5(0x136)]['forEach'](_0x199723=>{const _0x557551=_0x4e44c5;_0x199723[_0x557551(0x1dc)]();});const {scene:_0x347c57}=_0x1e7395,_0x287e07=nn(Array[_0x4e44c5(0x294)](_0x3f28df[_0x4e44c5(0x161)]()))[_0x4e44c5(0x14e)](_0x431a8d=>{const {color:_0x10ef06,range:_0x292f7e,name:_0x206409,selection:_0x2f129b,sheetID:_0x44bc3e}=_0x431a8d,{startColumn:_0x44ea73,startRow:_0x4b8992,endColumn:_0x36a2f1,endRow:_0x148425}=_0x292f7e,_0x205a4b=_0x2f11d6(_0x4b8992,_0x44ea73,_0x347c57,_0x34d85f),_0x538ad5=_0x2f11d6(_0x148425,_0x36a2f1,_0x347c57,_0x34d85f),{columnHeaderHeightAndMarginTop:_0x2e0be3}=_0x34d85f,{startX:_0x4e0ee1,startY:_0x49ebec}=_0x205a4b,{endX:_0x52f7e6,endY:_0x35fed8}=_0x538ad5,_0x502c70=_0x52f7e6-_0x4e0ee1,_0x2be93f=_0x35fed8-_0x49ebec,_0x23b0f5={'labelPosition':_0x49ebec-_0x2e0be3>=Q?'top':'bottom','sheetID':_0x44bc3e,'range':_0x292f7e,'color':_0x10ef06,'name':_0x206409,'selection':_0x2f129b,'left':_0x4e0ee1,'top':_0x49ebec,'width':_0x502c70,'height':_0x2be93f,'evented':!0x1,'zIndex':sn};return new qi(_0x206409,_0x23b0f5);});_0x347c57[_0x4e44c5(0x299)](_0x287e07,Zi),this[_0x4e44c5(0x136)]=new Set(_0x287e07);}[_0x17995c(0x1f4)](){const _0x565ade=_0x17995c;var _0x4281a2;(_0x4281a2=this['_cursors'])==null||_0x4281a2['forEach'](_0x269769=>_0x269769[_0x565ade(0x2b4)]());}['_getSheetObject'](){const _0x3d964f=_0x17995c;return _0x1f24ae(this[_0x3d964f(0xf6)][_0x3d964f(0x20d)],this[_0x3d964f(0xf6)]);}};$e=tn([Ce(0x1,_0x11a278(_0x2fc12d)),Ce(0x2,_0x11a278(H)),Ce(0x3,_0x11a278(_0x3e584d))],$e);function nn(_0x57f747){const _0x2c96ea=_0x17995c,_0xc25cc2=new Map();return _0x57f747['forEach'](_0x363672=>{const _0x5b01a3=_0x220d;if(_0xc25cc2[_0x5b01a3(0x2a9)](_0x363672[_0x5b01a3(0x241)])){const _0x3e2058=_0xc25cc2['get'](_0x363672[_0x5b01a3(0x241)]);_0x3e2058[_0x5b01a3(0x13a)]+=',\x20'+_0x363672[_0x5b01a3(0x13a)];}else _0xc25cc2[_0x5b01a3(0xc9)](_0x363672['selection'],_0x363672);}),Array[_0x2c96ea(0x294)](_0xc25cc2[_0x2c96ea(0x161)]());}var rn=Object[_0x17995c(0x153)],on=(_0x5d1b1f,_0x2285b2,_0x4b11b6,_0x5a7cde)=>{const _0x517033=_0x17995c;for(var _0x211869=_0x5a7cde>0x1?void 0x0:_0x5a7cde?rn(_0x2285b2,_0x4b11b6):_0x2285b2,_0x4697e7=_0x5d1b1f[_0x517033(0x28b)]-0x1,_0xf598d;_0x4697e7>=0x0;_0x4697e7--)(_0xf598d=_0x5d1b1f[_0x4697e7])&&(_0x211869=_0xf598d(_0x211869)||_0x211869);return _0x211869;},F=(_0x1f38f6,_0x55f547)=>(_0x32c7f4,_0x1fe8fe)=>_0x55f547(_0x32c7f4,_0x1fe8fe,_0x1f38f6);let ce=class extends _0x29710c{constructor(_0x33d786,_0x22b10e,_0x2ac67d,_0xab289d,_0x45e198,_0x3c3078){const _0x229823=_0x17995c;super(),this[_0x229823(0x129)]=_0x33d786,this[_0x229823(0x259)]=_0x22b10e,this[_0x229823(0x185)]=_0x2ac67d,this[_0x229823(0x93)]=_0xab289d,this[_0x229823(0x2bb)]=_0x45e198,this[_0x229823(0x13c)]=_0x3c3078,this[_0x229823(0x2c0)](),this['_initEvent']();}[_0x17995c(0x2c0)](){const _0x4295fd=_0x17995c;this[_0x4295fd(0x1c2)](this[_0x4295fd(0x129)]['registerBeforeClose'](()=>{const _0x336e60=_0x4295fd;if(this[_0x336e60(0x259)][_0x336e60(0xa7)][_0x336e60(0x16f)])return this[_0x336e60(0x13c)]['t'](_0x336e60(0x273));}));}[_0x17995c(0x111)](){const _0x20ead3=_0x17995c;this[_0x20ead3(0x1c2)](this[_0x20ead3(0x185)]['event$']['subscribe'](_0x17c35f=>{const _0x1c1a2f=_0x20ead3;_0x17c35f['id']===_0x38ed89[_0x1c1a2f(0xf1)]&&this[_0x1c1a2f(0x93)][_0x1c1a2f(0xfe)]({'type':_0x2001e5[_0x1c1a2f(0x189)],'content':this[_0x1c1a2f(0x13c)]['t'](_0x1c1a2f(0x228))}),_0x17c35f['id']===_0x38ed89[_0x1c1a2f(0x12a)]&&this[_0x1c1a2f(0x93)][_0x1c1a2f(0xfe)]({'type':_0x2001e5[_0x1c1a2f(0x189)],'content':this[_0x1c1a2f(0x13c)]['t'](_0x1c1a2f(0x21a))}),_0x17c35f['id']===_0x38ed89['PERMISSION_DENIED']&&this[_0x1c1a2f(0x2bb)][_0x1c1a2f(0xfe)]({'title':this['_localeService']['t']('permission.title'),'content':this['_localeService']['t'](_0x1c1a2f(0x186)),'type':_0x1c1a2f(0x205),'duration':0x0}),_0x17c35f['id']===_0x38ed89[_0x1c1a2f(0x14f)]&&this[_0x1c1a2f(0x93)][_0x1c1a2f(0xfe)]({'type':_0x2001e5[_0x1c1a2f(0x157)],'content':this[_0x1c1a2f(0x13c)]['t'](_0x1c1a2f(0x21a))+'('+_0x17c35f[_0x1c1a2f(0x279)]+')'}),_0x17c35f['id']===_0x38ed89['JOIN_ROOM_FAILED']&&this['_messageService'][_0x1c1a2f(0xfe)]({'type':_0x2001e5['Warning'],'content':this[_0x1c1a2f(0x13c)]['t'](_0x17c35f[_0x1c1a2f(0x279)]||'')}),_0x17c35f['id']===_0x38ed89[_0x1c1a2f(0x24f)]&&this[_0x1c1a2f(0x93)]['show']({'type':_0x2001e5[_0x1c1a2f(0x189)],'content':this[_0x1c1a2f(0x13c)]['t']('session.will-retry')}),_0x17c35f['id']===_0x38ed89['SOCKET_FAILED']&&this[_0x1c1a2f(0x93)]['show']({'type':_0x2001e5['Error'],'content':this[_0x1c1a2f(0x13c)]['t'](_0x1c1a2f(0x1bb))}),_0x17c35f['id']===_0x38ed89['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService']['show']({'type':_0x2001e5[_0x1c1a2f(0x157)],'content':this[_0x1c1a2f(0x13c)]['t'](_0x1c1a2f(0x1cf))});}));}};ce=on([F(0x0,_0x225f15),F(0x1,_0x3a200a),F(0x2,_0x11a278(_0x372bc6)),F(0x3,_0xc5e3ee),F(0x4,_0x503e3e),F(0x5,_0x11a278(_0x5bea2a))],ce);const an=_0x17995c(0x26e),rt={};var cn=Object[_0x17995c(0x153)],_n=(_0x5418de,_0x524800,_0x156b49,_0x11aa1c)=>{const _0x23b60a=_0x17995c;for(var _0x1b3265=_0x11aa1c>0x1?void 0x0:_0x11aa1c?cn(_0x524800,_0x156b49):_0x524800,_0x3003ce=_0x5418de[_0x23b60a(0x28b)]-0x1,_0x18951f;_0x3003ce>=0x0;_0x3003ce--)(_0x18951f=_0x5418de[_0x3003ce])&&(_0x1b3265=_0x18951f(_0x1b3265)||_0x1b3265);return _0x1b3265;},ot=(_0x5b1840,_0x1d4c34)=>(_0x2e61bf,_0x2738ed)=>_0x1d4c34(_0x2e61bf,_0x2738ed,_0x5b1840);let _e=class{constructor(_0x2fe5ed,_0x4674e){const _0x4c6ff5=_0x17995c;this[_0x4c6ff5(0x20a)]=_0x2fe5ed,this['_renderManagerService']=_0x4674e;}['transformIMECache'](_0x36cdcf){this['_transformUndoRedoStack'](_0x36cdcf),this['_transformPreviousActiveRange'](_0x36cdcf);}['transformRemoteChangeset'](_0x3e8568){const _0x432cbb=_0x17995c,{unitID:_0x41aa09}=_0x3e8568,_0xc5261b=this[_0x432cbb(0x134)][_0x432cbb(0x107)](_0x41aa09)[_0x432cbb(0x261)](_0x2a0c79),{redoCache:_0x1e00b1}=_0xc5261b[_0x432cbb(0xca)]();if(_0x1e00b1[_0x432cbb(0x28b)]===0x0)return _0x3e8568;let _0x5627e7=_0x8e16b7[_0x432cbb(0x199)](_0x3e8568['mutations'][0x0]);for(let _0x2c5159=0x0;_0x2c5159<_0x1e00b1[_0x432cbb(0x28b)];_0x2c5159++){const _0x27648a={'id':_0x432cbb(0x297),'params':{..._0x1e00b1[_0x2c5159]}},_0x36bf42=this[_0x432cbb(0x20a)][_0x432cbb(0x278)](_0x5627e7,_0x27648a,!0x1);if(_0x55d582(_0x36bf42))throw _0x36bf42[_0x432cbb(0x205)];_0x5627e7=_0x36bf42[_0x432cbb(0x1f2)];}return{..._0x8e16b7[_0x432cbb(0x199)](_0x3e8568),'mutations':[_0x5627e7]};}[_0x17995c(0x123)](_0x167466){const _0x390d04=_0x17995c,{unitID:_0x332d90}=_0x167466,_0x56ff4f=this['_renderManagerService'][_0x390d04(0x107)](_0x332d90)[_0x390d04(0x261)](_0x2a0c79),{undoCache:_0x57b8fa,redoCache:_0x5bb24f}=_0x56ff4f[_0x390d04(0xca)]();if(_0x57b8fa[_0x390d04(0x28b)]===0x0||_0x5bb24f[_0x390d04(0x28b)]===0x0)return;const _0x493a65=[],_0x4ad395=[];let _0xc54562=_0x8e16b7[_0x390d04(0x199)](_0x167466[_0x390d04(0xe4)][0x0]),_0x444714=_0x8e16b7[_0x390d04(0x199)](_0x167466[_0x390d04(0xe4)][0x0]);for(let _0x3872a4=_0x57b8fa['length']-0x1;_0x3872a4>=0x0;_0x3872a4--){const _0x1c2f8e={'id':'doc.mutation.rich-text-editing','params':{..._0x57b8fa[_0x3872a4]}},_0x37e872={'id':'doc.mutation.rich-text-editing','params':{..._0x5bb24f[_0x3872a4]}},_0x356fc6=this['_transformService'][_0x390d04(0x278)](_0xc54562,_0x1c2f8e,!0x1),_0x11fe2d=this[_0x390d04(0x20a)][_0x390d04(0x278)](_0x444714,_0x37e872,!0x1);if(_0x55d582(_0x356fc6))throw _0x356fc6['error'];if(_0x55d582(_0x11fe2d))throw _0x11fe2d['error'];_0x493a65[_0x390d04(0x23e)](_0x356fc6[_0x390d04(0x264)][_0x390d04(0x166)]),_0x4ad395[_0x390d04(0x23e)](_0x11fe2d[_0x390d04(0x264)][_0x390d04(0x166)]),_0xc54562=_0x356fc6[_0x390d04(0x1f2)],_0x444714=_0x11fe2d['m1Prime'];}_0x56ff4f[_0x390d04(0x170)]({'undoCache':_0x493a65,'redoCache':_0x4ad395});}['_transformPreviousActiveRange'](_0x27af39){const _0x1e77c5=_0x17995c,{unitID:_0x160fee}=_0x27af39,_0x4df009=this[_0x1e77c5(0x134)][_0x1e77c5(0x107)](_0x160fee)['with'](_0x2a0c79),_0x245607=_0x4df009[_0x1e77c5(0xa2)]();if(_0x245607==null)return;const _0x5710eb=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x27af39['unitID'],'actions':null,'textRanges':[_0x245607]}}],_0x43c25e=this['_transformService'][_0x1e77c5(0x203)](_0x27af39,_0x5710eb);if(!_0x4b8ff0(_0x43c25e))throw _0x43c25e[_0x1e77c5(0x205)];const _0x425d75=_0x43c25e[_0x1e77c5(0x264)][0x0][_0x1e77c5(0x166)][_0x1e77c5(0x1b6)];Array['isArray'](_0x425d75)&&_0x425d75['length']&&_0x4df009[_0x1e77c5(0x1f8)](_0x425d75[0x0]);}};_e=_n([ot(0x0,_0x1a6bde),ot(0x1,_0x4b49a7)],_e);var ln=Object[_0x17995c(0x153)],hn=(_0x43effd,_0x1847d1,_0x1b809c,_0x18ece9)=>{for(var _0x4934eb=_0x18ece9>0x1?void 0x0:_0x18ece9?ln(_0x1847d1,_0x1b809c):_0x1847d1,_0x40a609=_0x43effd['length']-0x1,_0x5cd4bf;_0x40a609>=0x0;_0x40a609--)(_0x5cd4bf=_0x43effd[_0x40a609])&&(_0x4934eb=_0x5cd4bf(_0x4934eb)||_0x4934eb);return _0x4934eb;},Re=(_0x5d2874,_0x1405cf)=>(_0x36db53,_0x13aa94)=>_0x1405cf(_0x36db53,_0x13aa94,_0x5d2874);let le=class{constructor(_0x3ce797,_0x471c66,_0x352fff){const _0x1c0e5a=_0x17995c;this[_0x1c0e5a(0x287)]=_0x3ce797,this[_0x1c0e5a(0x20a)]=_0x471c66,this['_docStateChangeManagerService']=_0x352fff;}[_0x17995c(0x21f)](_0x101575){const _0x555f1a=_0x17995c;this[_0x555f1a(0xf3)](_0x101575);}[_0x17995c(0xb1)](_0x2d5bc2){const _0xa403c6=_0x17995c,{unitID:_0x485481}=_0x2d5bc2,{collaboration:_0x41e519}=this[_0xa403c6(0x106)][_0xa403c6(0x191)](_0x485481);if(_0x41e519[_0xa403c6(0x28b)]===0x0)return _0x2d5bc2;let _0x379a17=_0x8e16b7[_0xa403c6(0x199)](_0x2d5bc2[_0xa403c6(0xe4)][0x0]);for(let _0x5aab0c=0x0;_0x5aab0c<_0x41e519[_0xa403c6(0x28b)];_0x5aab0c++){const _0xb0feda={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x41e519[_0x5aab0c][_0xa403c6(0x27b)],..._0x41e519[_0x5aab0c][_0xa403c6(0xfb)]}},_0x55e11a=this[_0xa403c6(0x20a)]['transformMutation'](_0x379a17,_0xb0feda,!0x1);if(_0x55d582(_0x55e11a))throw _0x55e11a[_0xa403c6(0x205)];_0x379a17=_0x55e11a['m1Prime'];}return{..._0x8e16b7['deepClone'](_0x2d5bc2),'mutations':[_0x379a17]};}[_0x17995c(0xf3)](_0x2cb528){const _0x288cbe=_0x17995c,{unitID:_0x3f8d05}=_0x2cb528,{history:_0x286b06,collaboration:_0x17a354}=this[_0x288cbe(0x106)][_0x288cbe(0x191)](_0x3f8d05);if(_0x286b06[_0x288cbe(0x28b)]===0x0&&_0x17a354[_0x288cbe(0x28b)]===0x0)return;const _0x572681=[],_0x2da08f=[];let _0x22fb76=_0x8e16b7[_0x288cbe(0x199)](_0x2cb528[_0x288cbe(0xe4)][0x0]),_0x3eb19f=_0x8e16b7[_0x288cbe(0x199)](_0x2cb528[_0x288cbe(0xe4)][0x0]);for(let _0x16a631=_0x286b06[_0x288cbe(0x28b)]-0x1;_0x16a631>=0x0;_0x16a631--){const _0x576e72={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x286b06[_0x16a631][_0x288cbe(0x27b)],..._0x286b06[_0x16a631][_0x288cbe(0x220)]}},_0x215003={'id':_0x288cbe(0x297),'params':{'unitId':_0x286b06[_0x16a631][_0x288cbe(0x27b)],..._0x286b06[_0x16a631][_0x288cbe(0xfb)]}},_0x3e46f4=this[_0x288cbe(0x20a)][_0x288cbe(0x278)](_0x22fb76,_0x576e72,!0x1),_0x4ebf14=this[_0x288cbe(0x20a)]['transformMutation'](_0x3eb19f,_0x215003,!0x1);if(_0x55d582(_0x3e46f4))throw _0x3e46f4[_0x288cbe(0x205)];if(_0x55d582(_0x4ebf14))throw _0x4ebf14[_0x288cbe(0x205)];_0x572681['unshift']({..._0x286b06[_0x16a631],'undoState':_0x3e46f4[_0x288cbe(0x264)][_0x288cbe(0x166)],'redoState':_0x4ebf14[_0x288cbe(0x264)][_0x288cbe(0x166)]}),_0x22fb76=_0x3e46f4[_0x288cbe(0x1f2)],_0x3eb19f=_0x4ebf14[_0x288cbe(0x1f2)];}_0x22fb76=_0x8e16b7[_0x288cbe(0x199)](_0x2cb528['mutations'][0x0]),_0x3eb19f=_0x8e16b7['deepClone'](_0x2cb528[_0x288cbe(0xe4)][0x0]);for(let _0x40385e=_0x17a354[_0x288cbe(0x28b)]-0x1;_0x40385e>=0x0;_0x40385e--){const _0x7e5013={'id':_0x288cbe(0x297),'params':{'unitId':_0x17a354[_0x40385e]['unitId'],..._0x17a354[_0x40385e]['undoState']}},_0x246a40={'id':_0x288cbe(0x297),'params':{'unitId':_0x17a354[_0x40385e][_0x288cbe(0x27b)],..._0x17a354[_0x40385e][_0x288cbe(0xfb)]}},_0x2db2e1=this[_0x288cbe(0x20a)][_0x288cbe(0x278)](_0x22fb76,_0x7e5013,!0x1),_0xd5bfcb=this[_0x288cbe(0x20a)][_0x288cbe(0x278)](_0x3eb19f,_0x246a40,!0x1);if(_0x55d582(_0x2db2e1))throw _0x2db2e1[_0x288cbe(0x205)];if(_0x55d582(_0xd5bfcb))throw _0xd5bfcb[_0x288cbe(0x205)];_0x2da08f[_0x288cbe(0x23e)]({..._0x17a354[_0x40385e],'undoState':_0x2db2e1[_0x288cbe(0x264)]['params'],'redoState':_0xd5bfcb[_0x288cbe(0x264)]['params']}),_0x22fb76=_0x2db2e1[_0x288cbe(0x1f2)],_0x3eb19f=_0xd5bfcb[_0x288cbe(0x1f2)];}this[_0x288cbe(0x106)][_0x288cbe(0x121)](_0x3f8d05,{'history':_0x572681,'collaboration':_0x2da08f});}};le=hn([Re(0x0,_0x11a278(_0x426398)),Re(0x1,_0x1a6bde),Re(0x2,_0x11a278(_0x2d3bec))],le);function _0x2c3e(){const _0x1aae8b=['INVITE_CODE_HAS_BEEN_UES','onTransformChange$','YUUMI_ASYNCIO_CANCELLED','_toggleOnline','exhaustSavingTask','getCurrentSelections','unshift','_docTransformIMECacheService','_showGuardMessage','selection','CHANGESET_REVISION_CONFILICT','_heartbeatTimer','collabStatus.notCollab','getCollabCursors$','CONNECTOR_DATA_TOO_LARGE','_document','collabCursorState$','onPointerLeave$','_onCursorUpdate','trim','_docTransformSelectionsService','_collaborationController','debug','SOCKET_FAILED_RETRY','_entities','unitID','contains','_docSyncEditingCollabCursorService','wsSessionTicketUrl','_hideTimer','createInstance','_scheduleHeartbeat','_colorIndex','_localCacheService','transformIMECache','_getSheetObject','_collabCursorController','add','complete','getCurrent','collabStatus.synced','with','isActive','OTHER_CLIENTS_EDITING','m2Prime','get','ERROR_AGAIN','_syncEditingCollabCursorService','subunit','pipe','MUTATION','green.600','storage','updateOfflineData','collaboration-client-ui.config','event$','_saveTaskMap','unsubscribe','push','collaboration-client.offline-data-not-saved','onPointerMove$','APPLY_PERMISSION_DENIED','YUUMI_RATE_OVER_LIMIT','removeParam','transformMutation','data','_initStatusComponent','unitId','_backgroundColor','releaseFormulaLimitUrl','_updateSubUnitFromURLParams','defs','APPLY_REVISION_CONFILICT','[CollaborationDataLoaderController]','search','_assignedColors','...','isArray','closePath','_injector','functionsExecutedState','_checkCalculationAvailable','getColorFromTheme','length','eventID','OFFLINE','PAYMENT_CHANNEL_NOT_SUPPORT','addEventListener','_univerInstanceService','font','UNAUTHENTICATED','79631xAWklZ','from','InsertRowCommandId','USER_NOT_FOUND','doc.mutation.rich-text-editing','LOGIN_FAILED','addObjects','sessionStatus$','_applyCommand','getMemberID','code','TEXT','REDEMPTION_CODE_HAS_BEEN_CREATED','_getSaveTimeout','toRgbString','_setFormulaLimitStatus','lineTo','getActiveSheet','now','url(#off-line-icon_clip0_910_343)','_disabled','_lastResponseTimestamp','has','on-line-icon','APPLY_DUPLICATED','onPointerEnter$','location','_id','getMember','onMouseMove','parse','endRow','getRangePointData','dispose','disposeUnit','key','FromArray','_getFormulaLimitStatus','_name','getAncestorScale','_notificationService','_render','subscribeEvent','height','_handleJoinEvent','_setupBeforeClosingHandler','getSheetBySheetId','restore','6469331BTXpXu','ENTITLE_NEED_BILLING_ADDRESS','USER_IS_ANONYMOUS','AUTHORIZE_CODE_ILLEGAL','96956vtGhMs','_cursorShapes','measureText','clipPath','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','UNIVER_DOC','_messageService','transformSelections','enableLocalCache','_scheduleSaving','_urlService','setShapeProps','_refreshCollabCursors','SNAPSHOT_HAS_BEEN_REMOVED','10bymMwo','LICENSE_IMPORT_SIZE_EXCEEDED','_docSkeletonManagerService','executionId','UNRECOGNIZED','6635kTlWCz','colorChannel1','getActiveRange','PERMISSION_DENIED','blue.400','assign','dirtyRanges','saveTaskMap','loadOfflineData','getSheetId','formula.calculation.waiting','addClipboardHook','_handleLeaveEvent','none','ticket','HEADER_MENU','currentColor','transformRemoteChangeset','_revisionService','startRow','attrs','red.300','RemoveColCommandId','registerComponent','save','_getAnchorBounding','newValue','_getMergeRange','USER_NOT_INVITED_CODE','_cachedData','forEach','_cursorInfo$','_localStorageService','REDEMPTION_CODE_FULLY_REDEEMED','startsWith','_checkAndWaitForCalculationPermission','WECHAT_HAS_BEEN_BOUND','_anchorDot','activeSheet$','DeleteRangeMoveLeftCommandId','asObservable','set','getUndoRedoMutationParamsCache','hide','result','LICENSE_MAX_UNITS_EXCEEDED','_onRefRangeChange','uni.network.url-service','parseInt','use','find','onLocalMutation','_initEntityListener','_scheduleClearOtherTimer','USERS_LEAVE','LOGIN_TOKEN_PROCESSING_FAILED','symbol','split','dispose$','getTypeOfUnitDisposed$','registerRenderModule','limitInfo','svg','Unknown\x20user','pluginName','/universer-api/license/formula/limit/status','whenReady','requireSession','mutations','syncEditingCollabCursor','min','YUUMI_ALL_TABLES_IS_INVALID','getUnit','searchParams','REDEMPTION_USER_NOT_ELIGIBLE','delete','collabStatus.syncing','REDEMPTION_CODE_INACTIVE','post','translate(.97)','NO_OTHER_CLIENTS_EDITING','OTHER_CLIENT_EDITING','next','_transformHistoryAndStateStack','beforeCommandExecuted','_range','_context','_status$','setTimeout','CURRENT_STATUS_CANNOT_OPERATE','collabStatus.fetchMiss','redoState','setItem','loadUnit','show','UPDATE_CURSOR','override','row','replaceState','_initCommandExecutedListener','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','range','_docStateChangeManagerService','getRenderById','_registerRenderDependencies','text','urlChange$','entityInit$','YUUMI_SUBSCRIPTION_NOT_FOUND','getUnitId','clearTimeout','_entityInit$','_taskIds','_initEvent','InsertRangeMoveRightCommandId','_ensureSubject','_send','_doCreateSocket','Loading','_textBubble','idSuffix','_docSkeleton','_refRangeService','_handleEvent','getUniverSheetInstance','getViewport','getRelativeToViewportCoord','_init','setInterval','setStateCache','fillStyle','_transformUndoRedoStack','0\x200\x2017\x2016','_collabCursorState$','EMAIL_VERIFY_CODE_MISMATCH','DeleteRangeMoveUpCommandId','top','_beforeCloseService','CLOSE_ROOM','max','3696QOCylF','UNIVER_SHEET','displayName','ONLINE','_selfUnitIDs','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','INVALID_INVITE_CODE','_shapes','_renderManagerService','currentSkeleton$','_cursors','_color','defineProperty','1em','name','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_localeService','beginPath','assignAColorForMemberID','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','black','runId','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_themeService','path','INTERNAL_ERROR','getValue','saveImage','isEditing','MOBILE_HAS_BEEN_BOUND','url(#on-line-icon_clip0_910_349)','_uiPartsService','column','PY_RUNTIME_SCRIPT_ERROR','map','CONFLICT','roomMembers','startFormulaLimitUrl','REDEMPTION_INVALID_CODE','getOwnPropertyDescriptor','YUUMI_NO_CUBOID_FOR_QUESTION','getCellMatrix','_getScale','Error','subscribe','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','transformByState','yellow.400','_onCursorDelete','_pollingInterval','_scene','68250tHSDNv','random','values','onCommandExecuted','_config','cursorInfo','LICENSE_DISTRO_REJECTED','params','status$','bottom','hovered','history','/universer-api/license/formula/limit/start','_initCommandInterceptor','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','includes','size','setUndoRedoMutationParamsCache','3162SJYRRh','_docClipboardService','_updateURLWithCurrentState','_sheetSkeletonManagerService','_updateCollabCursors','_unitOnClients','getFocusedUnit','drawWith','3668763RZBTYD','stageInfo','endColumn','132HVIQif','shift','_handleHover','substring','imageSourceType','PENDING','href','replace','VIEW_MAIN','_collaborationUIEventService','permission.content','MOBILE_VERIFY_CODE_MISMATCH','_imageIoService','Warning','_getSessionTicket','xlink:href','div','InsertRangeMoveDownCommandId','_clearOtherTimers','_logService','YUUMI_CONNECTOR_URL_NOT_FOUND','getStateCache','NOT_COLLAB','evenodd','0\x200\x2016\x2016','_collabSessionService','univer-mr-2\x20univer-flex\x20univer-text-xl','_toggleOffline','registerRefRange','deepClone','getConfig','url(#$1','8fLsreI','memberID','_draw','fillText','getDocRanges','_clearPolling','YUUMI_UNABLE_LOAD_URL','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','popstate','_updateLocalCursor','addObject','OffLineIcon','addHandlerCallback','Failed','RECT','INVALID_ARGUMENT','ENTITLE_REPORT_LIMIT_EXCEED','roomMembers$','getSkeleton','getCurrentUnitForType','#FFF','color','entries','_startSheetCollabCursor','COMPLETION_FINISHED','cursorInfo$','textRanges','all','ENTITLE_CAN_NOT_BUY_LOWER_OTP','OnLineIcon','INVITE_CODE_REQUIRED','session.connection-failed','_unitStatus','currentTheme$','subUnitId','_maxFormulaLimit','resize','on-line-icon_clip0_910_349','disposeWithMe','SYNCED','executeCommand','getVpScrollXYInfoByPosToVp','_hovered','startColumn','_registerDependencies','ALREADY_EXISTS','stage','_hasFormulaInDirtyRanges','sessionTicket','fill','round','session.collaboration-timeout','InsertColCommandId','_dataLoaderService','_hover','then','26DaoHDn','send','_colorAssignService','mask','3370509EpAISB','APPLY_NON_SEQUENTIAL_REVISION','LICENSE_EXPORT_SIZE_EXCEEDED','ranges','makeDirty','stringify','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','onStarting','_lastPointer','ENTITLE_CHAT_LIMIT_EXCEED','rgba(255,\x20255,\x20255,\x200.01)','_initStatusListener','NOT_FOUND','_setupSubUnitSync','SNAPSHOT_INVALID_SNAPSHOT','REDEMPTION_USER_REDEEM_TIMES_EXCEED','labelPosition','_drawAnchor','getParam','ACTIVE_UNIT_EVENT_CHANNEL','_releaseCalculationLimit','_commandService','_cursor','getformulaLimitStatusUrl','_saveCache','APPLY_REJECT','m1Prime','REDEMPTION_CODE_NOT_STARTED','_removeCollabCursors','FETCH_MISS','Success','origin','setActiveRange','init','arc','_httpService','_drawTextRange','backgroundColor','_currentUsage','UNDEFINED','body','toString','application/json','transformMutationsWithChangeset','_roomMembers$','error','getTypeOfUnitAdded$','findNodePositionByCharIndex','_online','/universer-api/license/formula/limit/done','_transformService','string','_initResize','unit','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_session','off-line-icon','source','formula.calculation.started','width','sheetId','tag','replaceDocRanges','EMAIL_HAS_BEEN_BOUND','_initDependencies','http://www.w3.org/2000/svg','collaboration.closeRoom','type','white','_drawRectRange','_anchor','transformStateCache','undoState','UniverIcon','_docTransformStateCacheService','_eventUnsubscribe','_memberService','INVITE_CODE_ALREADY_BOUND','invokeId','setConfig','collaboration.single-unit.warning','reconnect','sheetID','_configService','_instanceService','collabStatus.offline','ENSURE_SNAPSHOT_EXECUTION','_labelPosition','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_startDocCollabCursor','saveOfflineData','_createSocketURL','_removeClearOtherTimer','YUUMI_AI_RUN_FAILED','getUnitStatus$','_startCalculationLimit'];_0x2c3e=function(){return _0x1aae8b;};return _0x2c3e();}var un=Object[_0x17995c(0x153)],dn=(_0x5ce16a,_0x160fbf,_0x88e93,_0x690448)=>{const _0x330b45=_0x17995c;for(var _0x4c191b=_0x690448>0x1?void 0x0:_0x690448?un(_0x160fbf,_0x88e93):_0x160fbf,_0x311274=_0x5ce16a[_0x330b45(0x28b)]-0x1,_0x50ebde;_0x311274>=0x0;_0x311274--)(_0x50ebde=_0x5ce16a[_0x311274])&&(_0x4c191b=_0x50ebde(_0x4c191b)||_0x4c191b);return _0x4c191b;},at=(_0x553236,_0x472adf)=>(_0x4c6d2c,_0x42141c)=>_0x472adf(_0x4c6d2c,_0x42141c,_0x553236);let he=class{constructor(_0x52cb04,_0x4aec2b){const _0x26bea5=_0x17995c;this[_0x26bea5(0x287)]=_0x52cb04,this[_0x26bea5(0x20a)]=_0x4aec2b;}[_0x17995c(0x94)](_0x269bfc){const _0x54de64=_0x17995c;var _0x5732d2;const _0x415144=this[_0x54de64(0x287)][_0x54de64(0x265)](_0x470162),_0xaf76ae=(_0x5732d2=_0x415144['getDocRanges']())!=null?_0x5732d2:[];if(_0xaf76ae[_0x54de64(0x28b)]===0x0)return;const _0x3ffa6c=_0x269bfc[_0x54de64(0x251)],_0x513840=[{'id':_0x54de64(0x297),'params':{'unitId':_0x3ffa6c,'actions':null,'textRanges':_0xaf76ae}}],_0x289b01=this[_0x54de64(0x20a)][_0x54de64(0x203)](_0x269bfc,_0x513840);if(!_0x4b8ff0(_0x289b01))throw _0x289b01['error'];const _0x41f8a0=_0x289b01[_0x54de64(0x264)][0x0]['params'][_0x54de64(0x1b6)];Array[_0x54de64(0x285)](_0x41f8a0)&&_0x41f8a0['length']&&_0x415144[_0x54de64(0x216)](_0x41f8a0,{'unitId':_0x3ffa6c,'subUnitId':_0x3ffa6c},!0x1);}};he=dn([at(0x0,_0x11a278(_0x426398)),at(0x1,_0x1a6bde)],he);function _0x220d(_0x5b21d1,_0x2b004d){const _0x2c3eff=_0x2c3e();return _0x220d=function(_0x220da6,_0x49799b){_0x220da6=_0x220da6-0x88;let _0x3d4a04=_0x2c3eff[_0x220da6];return _0x3d4a04;},_0x220d(_0x5b21d1,_0x2b004d);}var Sn=Object[_0x17995c(0x153)],In=(_0x33a433,_0x529052,_0x213b79,_0x3c5586)=>{const _0x24058a=_0x17995c;for(var _0x8c2ab3=_0x3c5586>0x1?void 0x0:_0x3c5586?Sn(_0x529052,_0x213b79):_0x529052,_0x2a0bdf=_0x33a433[_0x24058a(0x28b)]-0x1,_0x3581c2;_0x2a0bdf>=0x0;_0x2a0bdf--)(_0x3581c2=_0x33a433[_0x2a0bdf])&&(_0x8c2ab3=_0x3581c2(_0x8c2ab3)||_0x8c2ab3);return _0x8c2ab3;},b=(_0x31aaea,_0x468d06)=>(_0x562fea,_0x385421)=>_0x468d06(_0x562fea,_0x385421,_0x31aaea);let ue=class extends _0x29710c{constructor(_0x43c01a,_0x5e7724,_0x14624d,_0x85264d,_0x44f5ed,_0x50a901,_0x8383a9,_0x587a7c){const _0x2636e5=_0x17995c;super(),l(this,_0x2636e5(0xf7),new _0x5ab626(_0x5bc4e1[_0x2636e5(0x192)])),(this[_0x2636e5(0x106)]=_0x43c01a,this[_0x2636e5(0x24d)]=_0x5e7724,this[_0x2636e5(0x23f)]=_0x14624d,this[_0x2636e5(0x222)]=_0x85264d,this['_docTransformSelectionsService']=_0x44f5ed,this[_0x2636e5(0x253)]=_0x50a901,this['_messageService']=_0x8383a9,this['_localeService']=_0x587a7c,this['_initEntityListener']());}[_0x17995c(0xd4)](){const _0x442661=_0x17995c;this['disposeWithMe'](this['_collaborationController'][_0x442661(0x10b)][_0x442661(0x158)](_0x406340=>{const _0x3c408e=_0x442661,_0x499553=this[_0x3c408e(0x106)]['docStateChange$']['subscribe'](_0x4b579b=>{const _0x322d45=_0x3c408e;if(_0x4b579b==null)return;const {unitId:_0x3faf5e,redoState:_0x343a4e,commandId:_0x587b56}=_0x4b579b;if(_0x3faf5e!==_0x406340[_0x322d45(0x251)])return;const _0x128d36={'id':_0x587b56,'type':_0x1bc9ba[_0x322d45(0x26a)],'params':{'unitId':_0x3faf5e,'actions':_0x343a4e['actions'],'textRanges':null}};_0x406340[_0x322d45(0xd3)](_0x128d36);});if(_0x406340[_0x3c408e(0x1c2)](_0x499553),_0x406340 instanceof _0x4ff6ee){const _0x32f8c7={'onTransformIME':_0x289f15=>this[_0x3c408e(0x23f)][_0x3c408e(0x25a)](_0x289f15),'onTransformState':_0x352e8e=>this['_docTransformStateCacheService'][_0x3c408e(0x21f)](_0x352e8e),'onTransformSelections':_0x26ca7f=>this[_0x3c408e(0x24c)][_0x3c408e(0x94)](_0x26ca7f),'onSyncEditingCollabCursor':_0x1078c2=>this[_0x3c408e(0x253)]['syncEditingCollabCursor'](_0x1078c2),'onTransformRemoteChangesetByIMECache':_0xaef661=>this[_0x3c408e(0x23f)][_0x3c408e(0xb1)](_0xaef661),'onTransformRemoteChangesetByStateCache':_0x2adf1f=>this['_docTransformStateCacheService'][_0x3c408e(0xb1)](_0x2adf1f)};_0x406340[_0x3c408e(0x1a8)](_0x32f8c7);}}));}};ue=In([b(0x0,_0x11a278(_0x2d3bec)),b(0x1,_0x11a278(_0x4a8b28)),b(0x2,_0x11a278(_e)),b(0x3,_0x11a278(le)),b(0x4,_0x11a278(he)),b(0x5,_0x11a278(Xe)),b(0x6,_0xc5e3ee),b(0x7,_0x11a278(_0x5bea2a))],ue);var Z=(_0x4923c8=>(_0x4923c8[_0x4923c8[_0x17995c(0x1ff)]=0x0]=_0x17995c(0x1ff),_0x4923c8[_0x4923c8['OK']=0x1]='OK',_0x4923c8[_0x4923c8[_0x17995c(0x145)]=0x2]=_0x17995c(0x145),_0x4923c8[_0x4923c8[_0x17995c(0xa3)]=0x3]=_0x17995c(0xa3),_0x4923c8[_0x4923c8['NOT_FOUND']=0x4]=_0x17995c(0x1e4),_0x4923c8[_0x4923c8[_0x17995c(0x292)]=0x5]=_0x17995c(0x292),_0x4923c8[_0x4923c8[_0x17995c(0x1c9)]=0x6]=_0x17995c(0x1c9),_0x4923c8[_0x4923c8[_0x17995c(0x1ab)]=0x7]=_0x17995c(0x1ab),_0x4923c8[_0x4923c8['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x4923c8[_0x4923c8[_0x17995c(0x1b4)]=0x9]=_0x17995c(0x1b4),_0x4923c8[_0x4923c8['LOGIN_FAILED']=0xa]=_0x17995c(0x298),_0x4923c8[_0x4923c8['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x17995c(0x187),_0x4923c8[_0x4923c8[_0x17995c(0x13f)]=0xc]=_0x17995c(0x13f),_0x4923c8[_0x4923c8[_0x17995c(0x126)]=0xd]=_0x17995c(0x126),_0x4923c8[_0x4923c8[_0x17995c(0x91)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x4923c8[_0x4923c8[_0x17995c(0x8c)]=0xf]=_0x17995c(0x8c),_0x4923c8[_0x4923c8[_0x17995c(0xd7)]=0x10]=_0x17995c(0xd7),_0x4923c8[_0x4923c8[_0x17995c(0xf9)]=0x64]=_0x17995c(0xf9),_0x4923c8[_0x4923c8[_0x17995c(0x266)]=0x65]='ERROR_AGAIN',_0x4923c8[_0x4923c8[_0x17995c(0x296)]=0xc9]='USER_NOT_FOUND',_0x4923c8[_0x4923c8[_0x17995c(0x8b)]=0xca]=_0x17995c(0x8b),_0x4923c8[_0x4923c8[_0x17995c(0x242)]=0x1389]=_0x17995c(0x242),_0x4923c8[_0x4923c8[_0x17995c(0x1e6)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x4923c8[_0x4923c8['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x17995c(0x9a),_0x4923c8[_0x4923c8[_0x17995c(0x22e)]=0x1773]=_0x17995c(0x22e),_0x4923c8[_0x4923c8[_0x17995c(0x1f1)]=0x1b59]=_0x17995c(0x1f1),_0x4923c8[_0x4923c8[_0x17995c(0x1d9)]=0x1b5a]=_0x17995c(0x1d9),_0x4923c8[_0x4923c8[_0x17995c(0x280)]=0x1b5b]=_0x17995c(0x280),_0x4923c8[_0x4923c8[_0x17995c(0x275)]=0x1b5c]=_0x17995c(0x275),_0x4923c8[_0x4923c8['APPLY_DUPLICATED']=0x1b5d]=_0x17995c(0x2ab),_0x4923c8[_0x4923c8[_0x17995c(0x246)]=0x1f41]=_0x17995c(0x246),_0x4923c8[_0x4923c8[_0x17995c(0xcd)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x4923c8[_0x4923c8[_0x17995c(0x230)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x4923c8[_0x4923c8[_0x17995c(0x9c)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x4923c8[_0x4923c8['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x17995c(0x1da),_0x4923c8[_0x4923c8['LICENSE_DISTRO_REJECTED']=0x232d]=_0x17995c(0x165),_0x4923c8[_0x4923c8[_0x17995c(0x1a2)]=0x2711]=_0x17995c(0x1a2),_0x4923c8[_0x4923c8['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x4923c8[_0x4923c8['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x17995c(0x276),_0x4923c8[_0x4923c8[_0x17995c(0x10c)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x4923c8[_0x4923c8[_0x17995c(0x154)]=0x271a]=_0x17995c(0x154),_0x4923c8[_0x4923c8[_0x17995c(0x23a)]=0x271b]=_0x17995c(0x23a),_0x4923c8[_0x4923c8['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x17995c(0x20e),_0x4923c8[_0x4923c8[_0x17995c(0xe7)]=0x271d]=_0x17995c(0xe7),_0x4923c8[_0x4923c8['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x17995c(0x104),_0x4923c8[_0x4923c8['YUUMI_AI_RUN_FAILED']=0x271f]=_0x17995c(0x235),_0x4923c8[_0x4923c8[_0x17995c(0x190)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x4923c8[_0x4923c8[_0x17995c(0x14d)]=0x2af9]=_0x17995c(0x14d),_0x4923c8[_0x4923c8['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x17995c(0x238),_0x4923c8[_0x4923c8[_0x17995c(0x132)]=0x2ee2]=_0x17995c(0x132),_0x4923c8[_0x4923c8[_0x17995c(0x1ba)]=0x2ee3]=_0x17995c(0x1ba),_0x4923c8[_0x4923c8[_0x17995c(0xbc)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x4923c8[_0x4923c8[_0x17995c(0x225)]=0x2ee5]=_0x17995c(0x225),_0x4923c8[_0x4923c8[_0x17995c(0xc4)]=0x32c9]=_0x17995c(0xc4),_0x4923c8[_0x4923c8[_0x17995c(0x149)]=0x32ca]=_0x17995c(0x149),_0x4923c8[_0x4923c8[_0x17995c(0x217)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x4923c8[_0x4923c8[_0x17995c(0x1b8)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x4923c8[_0x4923c8[_0x17995c(0x16d)]=0x36b2]=_0x17995c(0x16d),_0x4923c8[_0x4923c8['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x4923c8[_0x4923c8[_0x17995c(0x28e)]=0x36b4]=_0x17995c(0x28e),_0x4923c8[_0x4923c8[_0x17995c(0x1e1)]=0x3715]=_0x17995c(0x1e1),_0x4923c8[_0x4923c8[_0x17995c(0x1ac)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x4923c8[_0x4923c8[_0x17995c(0x8a)]=0x37dd]=_0x17995c(0x8a),_0x4923c8[_0x4923c8[_0x17995c(0x152)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x4923c8[_0x4923c8[_0x17995c(0xed)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x4923c8[_0x4923c8['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x17995c(0xc1),_0x4923c8[_0x4923c8[_0x17995c(0x1f3)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x4923c8[_0x4923c8[_0x17995c(0xea)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x4923c8[_0x4923c8[_0x17995c(0x1e7)]=0x3a9e]=_0x17995c(0x1e7),_0x4923c8[_0x4923c8['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x17995c(0x29f),_0x4923c8[_0x4923c8[_0x17995c(0x9f)]=-0x1]=_0x17995c(0x9f),_0x4923c8))(Z||{});function mn(_0x39dd97){const _0x46a338=_0x17995c;var _0x5e6d68,_0x497fb0;const _0x189475=(_0x5e6d68=_0x39dd97[_0x46a338(0x17a)])==null?void 0x0:_0x5e6d68[_0x46a338(0x1ca)],_0x353cb2=((_0x497fb0=_0x39dd97['stageInfo'])==null?void 0x0:_0x497fb0['totalFormulasToCalculate'])||0x0;return _0x189475===_0x19f2ec['START_CALCULATION']&&_0x353cb2>0x0;}function fn(_0x4247e0){const _0x1e76ef=_0x17995c;return _0x4247e0[_0x1e76ef(0x288)]===_0x3bbfbf['SUCCESS'];}var gn=Object[_0x17995c(0x153)],vn=(_0x14b946,_0x36fe02,_0x1ebfbc,_0x1a9a58)=>{const _0x203564=_0x17995c;for(var _0x3c9f06=_0x1a9a58>0x1?void 0x0:_0x1a9a58?gn(_0x36fe02,_0x1ebfbc):_0x36fe02,_0x364b18=_0x14b946[_0x203564(0x28b)]-0x1,_0xab9d66;_0x364b18>=0x0;_0x364b18--)(_0xab9d66=_0x14b946[_0x364b18])&&(_0x3c9f06=_0xab9d66(_0x3c9f06)||_0x3c9f06);return _0x3c9f06;},P=(_0x21d812,_0x256182)=>(_0x51604c,_0xf3d058)=>_0x256182(_0x51604c,_0xf3d058,_0x21d812);const En=_0x17995c(0xe1),pn=_0x17995c(0x16b),On=_0x17995c(0x209);let de=class extends _0x29710c{constructor(_0x1489b9,_0x449ffb,_0x17f9d6,_0x222490,_0x1dbe9c,_0x130a1b,_0x2789cb){const _0x10d6d8=_0x17995c;super(),l(this,_0x10d6d8(0x15d),null),l(this,'_maxFormulaLimit',0x0),l(this,_0x10d6d8(0x1fe),0x0),l(this,_0x10d6d8(0x110),[]),l(this,_0x10d6d8(0x2a8),0x0),(this[_0x10d6d8(0x93)]=_0x1489b9,this['_commandService']=_0x449ffb,this[_0x10d6d8(0x22b)]=_0x17f9d6,this[_0x10d6d8(0x1fb)]=_0x222490,this['_univerInstanceService']=_0x1dbe9c,this[_0x10d6d8(0x18f)]=_0x130a1b,this[_0x10d6d8(0x13c)]=_0x2789cb,this[_0x10d6d8(0x16c)]());}[_0x17995c(0x16c)](){const _0x23ca76=_0x17995c;this[_0x23ca76(0x1c2)](this['_commandService'][_0x23ca76(0xf4)]((_0x42dfdf,_0x1a8fdd)=>{const _0x12d81f=_0x23ca76;if(_0x42dfdf['id']!==_0x8e7314['id'])return;const _0x2b80e5=_0x42dfdf[_0x12d81f(0x166)];if(!this[_0x12d81f(0x1cb)](_0x2b80e5[_0x12d81f(0xa6)]))return;if(!this['_checkCalculationAvailable']())throw this['_checkAndWaitForCalculationPermission'](_0x42dfdf,_0x1a8fdd),this[_0x12d81f(0x240)](),new _0x5313b4();})),this['disposeWithMe'](this[_0x23ca76(0x1ed)][_0x23ca76(0x162)]((_0x592c57,_0x298123)=>{const _0x23e859=_0x23ca76;if(_0x592c57['id']!==_0x72d1d3['id'])return;const _0x3fd29d=_0x592c57[_0x23e859(0x166)];if(mn(_0x3fd29d)){const _0x40eb0b=_0x25c646();this[_0x23e859(0x110)]['push'](_0x40eb0b),this[_0x23e859(0x237)](_0x40eb0b);}else{if(fn(_0x3fd29d)&&this['_taskIds'][_0x23e859(0x28b)]>0x0){const _0x530e57=this[_0x23e859(0x110)][_0x23e859(0x17d)]();this[_0x23e859(0x1ec)](_0x530e57);}}}));}[_0x17995c(0x2b4)](){const _0x4a4a35=_0x17995c;super[_0x4a4a35(0x2b4)](),this[_0x4a4a35(0x1a1)](),this[_0x4a4a35(0x110)]=[],this['_currentUsage']=0x0,this[_0x4a4a35(0x1bf)]=0x0,this[_0x4a4a35(0x2a8)]=0x0;}async[_0x17995c(0xc3)](_0x28482a,_0x4c5ffd){const _0x5efcc0=_0x17995c;for(let _0x40d8ad=0x0;_0x40d8ad<0x1e;_0x40d8ad++)try{if(await this[_0x5efcc0(0x2b8)](),this['_checkCalculationAvailable']()){this[_0x5efcc0(0x29b)](_0x28482a,_0x4c5ffd),this[_0x5efcc0(0x93)][_0x5efcc0(0xfe)]({'content':this[_0x5efcc0(0x13c)]['t'](_0x5efcc0(0x212)),'type':_0x2001e5[_0x5efcc0(0x1f6)]});return;}await new Promise(_0x5d6df2=>{const _0x1a7d6c=_0x5efcc0;this[_0x1a7d6c(0x15d)]=window[_0x1a7d6c(0xf8)](_0x5d6df2,0x3e8);});}catch(_0x17fea8){this[_0x5efcc0(0x18f)][_0x5efcc0(0x205)](_0x17fea8);}this[_0x5efcc0(0x93)][_0x5efcc0(0xfe)]({'content':this['_localeService']['t']('formula.calculation.unable'),'type':_0x2001e5[_0x5efcc0(0x157)]});}['_applyCommand'](_0x521b3c,_0x534bb3){const _0xff9843=_0x17995c;try{this[_0xff9843(0x1ed)][_0xff9843(0x1c4)](_0x521b3c['id'],_0x521b3c[_0xff9843(0x166)],_0x534bb3);}catch(_0x321d5e){this[_0xff9843(0x18f)]['error'](_0x321d5e);}}[_0x17995c(0x2a2)](_0x540f00,_0x1884c2){const _0x14d994=_0x17995c;_0x1884c2<this[_0x14d994(0x2a8)]||(this[_0x14d994(0x2a8)]=_0x1884c2,this['_maxFormulaLimit']=Number[_0x14d994(0xd0)](_0x540f00['maxFormulaLimit']),this[_0x14d994(0x1fe)]=Number['parseInt'](_0x540f00['currentUsage']));}async[_0x17995c(0x237)](_0x386c81){const _0x4e6a94=_0x17995c;var _0x3c6bb7,_0x1d8c6c;const _0x227dcd=Date['now']();try{const _0x3c783d=((_0x3c6bb7=this[_0x4e6a94(0x22b)]['getConfig'](_0x561a7a))==null?void 0x0:_0x3c6bb7[_0x4e6a94(0x151)])||pn,_0x1ed237=(await this[_0x4e6a94(0x1fb)][_0x4e6a94(0xee)](_0x3c783d,{'body':JSON['stringify']({'taskId':_0x386c81})}))[_0x4e6a94(0x200)];if(((_0x1d8c6c=_0x1ed237[_0x4e6a94(0x205)])==null?void 0x0:_0x1d8c6c['code'])!==Z['OK'])return;this[_0x4e6a94(0x2a2)](_0x1ed237[_0x4e6a94(0xdd)],_0x227dcd);}catch(_0x17b3dd){this[_0x4e6a94(0x18f)][_0x4e6a94(0x205)](_0x17b3dd);}}async[_0x17995c(0x2b8)](_0x54155c){const _0x1585a5=_0x17995c;var _0x42a88b,_0x1ba1e6;const _0x7f8531=Date[_0x1585a5(0x2a5)]();try{const _0x1f0946=((_0x42a88b=this[_0x1585a5(0x22b)]['getConfig'](_0x561a7a))==null?void 0x0:_0x42a88b[_0x1585a5(0x1ef)])||En,_0x1376a0=_0x54155c?_0x1f0946+'?taskId='+encodeURIComponent(_0x54155c):_0x1f0946,_0x35f9bf=(await this[_0x1585a5(0x1fb)][_0x1585a5(0x265)](_0x1376a0))['body'];if(((_0x1ba1e6=_0x35f9bf['error'])==null?void 0x0:_0x1ba1e6[_0x1585a5(0x29d)])!==Z['OK'])return;this[_0x1585a5(0x2a2)](_0x35f9bf[_0x1585a5(0xdd)],_0x7f8531);}catch(_0x37fb2b){this[_0x1585a5(0x18f)][_0x1585a5(0x205)](_0x37fb2b);}}async[_0x17995c(0x1ec)](_0x1c7102){const _0xc5efa3=_0x17995c;var _0x80090f,_0x26e493;const _0x98b644=Date[_0xc5efa3(0x2a5)]();try{const _0x3c425e=((_0x80090f=this[_0xc5efa3(0x22b)][_0xc5efa3(0x19a)](_0x561a7a))==null?void 0x0:_0x80090f[_0xc5efa3(0x27d)])||On,_0x423ea7=(await this['_httpService'][_0xc5efa3(0xee)](_0x3c425e,{'body':JSON[_0xc5efa3(0x1dd)]({'taskId':_0x1c7102})}))[_0xc5efa3(0x200)];if(((_0x26e493=_0x423ea7[_0xc5efa3(0x205)])==null?void 0x0:_0x26e493[_0xc5efa3(0x29d)])!==Z['OK'])return;this[_0xc5efa3(0x2a2)](_0x423ea7[_0xc5efa3(0xdd)],_0x98b644);}catch(_0x267f57){this[_0xc5efa3(0x18f)]['error'](_0x267f57);}}[_0x17995c(0x289)](){const _0x585a8a=_0x17995c;return this[_0x585a8a(0x1bf)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x585a8a(0x1fe)]>0x0;}[_0x17995c(0x1a1)](){this['_pollingInterval']&&(clearTimeout(this['_pollingInterval']),this['_pollingInterval']=null);}[_0x17995c(0x240)](){const _0x4150dc=_0x17995c;this[_0x4150dc(0x93)][_0x4150dc(0xfe)]({'content':this[_0x4150dc(0x13c)]['t'](_0x4150dc(0xaa)),'type':_0x2001e5[_0x4150dc(0x116)]});}[_0x17995c(0x1cb)](_0x1ba72c){const _0x102f1a=_0x17995c;for(const _0x35cb12 of _0x1ba72c){const {unitId:_0x48fd04,sheetId:_0x47bc16,range:_0x4edfa4}=_0x35cb12,_0x5c53e0=this['_univerInstanceService'][_0x102f1a(0xe8)](_0x48fd04);if(!_0x5c53e0)continue;const _0x450636=_0x5c53e0[_0x102f1a(0x2c1)](_0x47bc16);if(!_0x450636)continue;const _0x2cd7b1=_0x450636[_0x102f1a(0x155)]();for(let _0x41bac1=_0x4edfa4[_0x102f1a(0xb3)];_0x41bac1<=_0x4edfa4[_0x102f1a(0x2b2)];_0x41bac1++)for(let _0x4d9777=_0x4edfa4[_0x102f1a(0x1c7)];_0x4d9777<=_0x4edfa4[_0x102f1a(0x17b)];_0x4d9777++){const _0x42e03e=_0x2cd7b1[_0x102f1a(0x146)](_0x41bac1,_0x4d9777);if(_0x42e03e&&(_0x4f5ea9(_0x42e03e['f'])||_0x267f20(_0x42e03e['si'])))return!0x0;}}return!0x1;}};de=vn([P(0x0,_0x11a278(_0xc5e3ee)),P(0x1,_0x31e8e2),P(0x2,_0x284c80),P(0x3,_0x11a278(_0x363c4f)),P(0x4,_0x382f2b),P(0x5,_0x12caba),P(0x6,_0x11a278(_0x5bea2a))],de);var Tn=Object['getOwnPropertyDescriptor'],Cn=(_0x4df2c7,_0x373ef1,_0x5373b7,_0x2968f1)=>{const _0x42c13a=_0x17995c;for(var _0x360a04=_0x2968f1>0x1?void 0x0:_0x2968f1?Tn(_0x373ef1,_0x5373b7):_0x373ef1,_0x23a558=_0x4df2c7[_0x42c13a(0x28b)]-0x1,_0x4d0815;_0x23a558>=0x0;_0x23a558--)(_0x4d0815=_0x4df2c7[_0x23a558])&&(_0x360a04=_0x4d0815(_0x360a04)||_0x360a04);return _0x360a04;},De=(_0x13b360,_0x198a5c)=>(_0x33c50a,_0x4e263)=>_0x198a5c(_0x33c50a,_0x4e263,_0x13b360);let xe=class extends _0x29710c{constructor(_0x1e31cf,_0x33bee4,_0x109b05){const _0x253d27=_0x17995c;super(),l(this,_0x253d27(0xbd),new Map()),l(this,_0x253d27(0x270),new Map()),l(this,'_disabled',!0x1),(this[_0x253d27(0x22b)]=_0x1e31cf,this[_0x253d27(0xc0)]=_0x33bee4,this[_0x253d27(0xb2)]=_0x109b05);}['disableLocalCache'](){const _0x1da398=_0x17995c;this[_0x1da398(0x2a7)]=!0x0;}[_0x17995c(0x95)](){const _0x531368=_0x17995c;this[_0x531368(0x2a7)]=!0x1;}get[_0x17995c(0xa7)](){return this['_saveTaskMap'];}[_0x17995c(0x2b4)](){const _0x3c2f99=_0x17995c;this[_0x3c2f99(0x23c)]()[_0x3c2f99(0x1d3)](()=>super[_0x3c2f99(0x2b4)]());}async[_0x17995c(0xa8)](_0x24ea2b){const _0x4f6a54=_0x17995c;return this[_0x4f6a54(0x2a7)]?null:this['_localStorageService']['getItem'](_0x47bb08(_0x24ea2b));}async[_0x17995c(0x232)](_0x57e93e,_0x4601b8){const _0x358051=_0x17995c;return!!this[_0x358051(0xc0)][_0x358051(0xfc)](_0x57e93e,_0x4601b8);}[_0x17995c(0x26d)](_0x1e499e,_0x10a1fa,_0x2ab504,_0x1c965f){const _0x5b7483=_0x17995c,_0x1edd0b=this[_0x5b7483(0xb2)]['getCurrentRevOfUnit'](_0x1e499e);this[_0x5b7483(0xbd)][_0x5b7483(0xc9)](_0x1e499e,{'unitID':_0x1e499e,'type':_0x10a1fa,'awaitingChangeset':_0x2ab504,'mutations':_0x1c965f,'rev':_0x1edd0b}),this[_0x5b7483(0x270)][_0x5b7483(0x2a9)](_0x1e499e)||this[_0x5b7483(0x96)](_0x1e499e);}[_0x17995c(0x96)](_0x5445b1){const _0x4c8bbb=_0x17995c,_0x42802d=this[_0x4c8bbb(0x2a0)]();_0x42802d===0x0?this['_saveCache'](_0x5445b1):this[_0x4c8bbb(0x270)][_0x4c8bbb(0xc9)](_0x5445b1,setTimeout(()=>this[_0x4c8bbb(0x1f0)](_0x5445b1),_0x42802d));}[_0x17995c(0x2a0)](){const _0x3ab7f4=_0x17995c;var _0x352a1b;return(_0x352a1b=this[_0x3ab7f4(0x22b)][_0x3ab7f4(0x19a)](_0x406905))!=null?_0x352a1b:_0x34d795;}['_saveCache'](_0xbbf91){const _0x2d6826=_0x17995c,_0x5b7f49=this[_0x2d6826(0x270)]['get'](_0xbbf91);return _0x5b7f49!==void 0x0&&window['clearTimeout'](_0x5b7f49),this[_0x2d6826(0xc0)][_0x2d6826(0xfc)](_0x47bb08(_0xbbf91),this[_0x2d6826(0xbd)][_0x2d6826(0x265)](_0xbbf91))[_0x2d6826(0x1d3)](()=>this[_0x2d6826(0x270)]['delete'](_0xbbf91));}async['exhaustSavingTask'](){const _0x616175=_0x17995c,_0x4e1c31=[];this[_0x616175(0x270)][_0x616175(0xbe)]((_0x4c8481,_0x108623)=>{const _0x5de9a4=_0x616175;window[_0x5de9a4(0x10e)](_0x4c8481),_0x4e1c31[_0x5de9a4(0x272)](this[_0x5de9a4(0x1f0)](_0x108623)[_0x5de9a4(0x1d3)](()=>{const _0x2028d6=_0x5de9a4;this[_0x2028d6(0x270)][_0x2028d6(0xeb)](_0x108623);}));}),await Promise[_0x616175(0x1b7)](_0x4e1c31);}};xe=Cn([De(0x0,_0x284c80),De(0x1,_0x241148),De(0x2,_0x11a278(_0x225cbf))],xe);class Rn extends _0x53201b{constructor(){const _0x165f6f=_0x17995c;super(),l(this,_0x165f6f(0x10a)),this['urlChange$']=_0xa49f30(window,_0x165f6f(0x1a4))['pipe'](_0x426fdf(this[_0x165f6f(0xda)]),_0x9be7a1(0x1),_0x2b6054(void 0x0));}['setParam'](_0xaf10c8,_0x5b9742,_0x1aa013=!0x1){const _0x20ff40=_0x17995c,_0x217f50=new URL(window['location'][_0x20ff40(0x182)]);_0x217f50['searchParams'][_0x20ff40(0xc9)](_0xaf10c8,_0x5b9742),_0x1aa013?window[_0x20ff40(0x16a)][_0x20ff40(0x102)]('','',_0x217f50['toString']()):window[_0x20ff40(0x16a)]['pushState']('','',_0x217f50['toString']());}[_0x17995c(0x277)](_0x4872b5,_0x461718=!0x1){const _0x367148=_0x17995c,_0x109113=new URL(window['location'][_0x367148(0x182)]);_0x109113[_0x367148(0xe9)]['delete'](_0x4872b5),_0x461718?window['history'][_0x367148(0x102)]('','',_0x109113['toString']()):window[_0x367148(0x16a)]['pushState']('','',_0x109113[_0x367148(0x201)]());}[_0x17995c(0x1ea)](_0x1f97e1){const _0x3930d7=_0x17995c;var _0x4fd469;return(_0x4fd469=new URL(window[_0x3930d7(0x2ad)][_0x3930d7(0x182)])[_0x3930d7(0xe9)]['get'](_0x1f97e1))!=null?_0x4fd469:void 0x0;}}var Dn=Object[_0x17995c(0x138)],Nn=Object[_0x17995c(0x153)],bn=(_0x4ed3c1,_0x2178ce,_0x1f511f)=>_0x2178ce in _0x4ed3c1?Dn(_0x4ed3c1,_0x2178ce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f511f}):_0x4ed3c1[_0x2178ce]=_0x1f511f,Un=(_0x377180,_0x87eb39,_0x197eb9,_0x42650e)=>{const _0x25f8a6=_0x17995c;for(var _0x30628a=_0x42650e>0x1?void 0x0:_0x42650e?Nn(_0x87eb39,_0x197eb9):_0x87eb39,_0x4225bc=_0x377180[_0x25f8a6(0x28b)]-0x1,_0x81a7d3;_0x4225bc>=0x0;_0x4225bc--)(_0x81a7d3=_0x377180[_0x4225bc])&&(_0x30628a=_0x81a7d3(_0x30628a)||_0x30628a);return _0x30628a;},Ne=(_0x2faa60,_0x33e008)=>(_0x34ab9d,_0x4565d5)=>_0x33e008(_0x34ab9d,_0x4565d5,_0x2faa60),Ln=(_0x5155b7,_0x38e9c7,_0x3491bf)=>bn(_0x5155b7,_0x38e9c7+'',_0x3491bf);const Mn=_0x17995c(0x142);let Be=class extends _0x494e53{constructor(_0x531fdb=rt,_0x16da5b,_0x2d2185,_0x27ce91){const _0x1480d4=_0x17995c;super(),this[_0x1480d4(0x163)]=_0x531fdb,this[_0x1480d4(0x134)]=_0x16da5b,this[_0x1480d4(0x287)]=_0x2d2185,this[_0x1480d4(0x22b)]=_0x27ce91;const {..._0x65eff9}=_0xf62ae0({},rt,this[_0x1480d4(0x163)]);this[_0x1480d4(0x22b)][_0x1480d4(0x227)](an,_0x65eff9);}[_0x17995c(0x1df)](){const _0x228669=_0x17995c;this[_0x228669(0x1c8)](),this['_initDependencies']();}['onRendered'](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0xfad83c=_0x17995c;var _0x14cd50;const _0x55ad2e=[[je],[de],[he],[_e],[le],[Xe],[At,{'useClass':Rn}],[_0x5a617a,{'useClass':_0x3242f0}],[_0x3a200a,{'useClass':xe}],[oe],[ue],[ce],[H],[Ae],[ae]];_0x3ace74(this[_0xfad83c(0x287)],_0x23631a(_0x55ad2e,(_0x14cd50=this[_0xfad83c(0x163)])==null?void 0x0:_0x14cd50[_0xfad83c(0x100)]));}[_0x17995c(0x108)](){const _0x5460aa=_0x17995c;this[_0x5460aa(0x1c2)](this[_0x5460aa(0x134)]['registerRenderModule'](_0x502d97['UNIVER_DOC'],[ye])),this['disposeWithMe'](this['_renderManagerService'][_0x5460aa(0xdc)](_0x502d97[_0x5460aa(0x12d)],[$e]));}[_0x17995c(0x218)](){const _0x403f7e=_0x17995c;_0x3dce4a(this[_0x403f7e(0x287)],[[H],[oe],[ue],[ce],[ae],[de]]);}};Ln(Be,_0x17995c(0xe0),Mn),Be=Un([_0x53975f(_0x2497f2),Ne(0x1,_0x4b49a7),Ne(0x2,_0x11a278(_0x426398)),Ne(0x3,_0x284c80)],Be);var An=Object[_0x17995c(0x153)],Pn=(_0x5e879b,_0x45a83d,_0x33b438,_0x1606b6)=>{for(var _0x39cecf=_0x1606b6>0x1?void 0x0:_0x1606b6?An(_0x45a83d,_0x33b438):_0x45a83d,_0xcde81c=_0x5e879b['length']-0x1,_0x27a343;_0xcde81c>=0x0;_0xcde81c--)(_0x27a343=_0x5e879b[_0xcde81c])&&(_0x39cecf=_0x27a343(_0x39cecf)||_0x39cecf);return _0x39cecf;},J=(_0x28a8ff,_0x46f9ce)=>(_0x7b992b,_0x32dd75)=>_0x46f9ce(_0x7b992b,_0x32dd75,_0x28a8ff);let ct=class extends _0x331ab9{constructor(_0x33f54a,_0x3d8505,_0x22c446,_0x87ee8e,_0x4f504c){super(_0x33f54a,_0x3d8505,_0x22c446,_0x87ee8e,_0x4f504c);}async['createSocket'](_0x2dcd0d){const _0x115269=_0x17995c,_0x4155a2=await this['_getSessionTicket'](),_0x3a9f82=this['_createSocketURL'](_0x2dcd0d,_0x4155a2);return this[_0x115269(0x115)](_0x3a9f82);}[_0x17995c(0x233)](_0x5ba77e,_0x64742a){const _0x1bdb22=_0x17995c,_0x499b11=typeof window>'u'?new URL(_0x5ba77e):new URL(_0x5ba77e,window[_0x1bdb22(0x2ad)][_0x1bdb22(0x1f7)]);_0x499b11[_0x1bdb22(0xe9)][_0x1bdb22(0xc9)](_0x1bdb22(0x1cc),_0x64742a);const _0x3cb2b5=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1bdb22(0x282)]);return _0x3cb2b5['get']('runId')&&_0x499b11[_0x1bdb22(0xe9)][_0x1bdb22(0xc9)](_0x1bdb22(0x141),_0x3cb2b5['get'](_0x1bdb22(0x141))),_0x499b11[_0x1bdb22(0x201)]();}async[_0x17995c(0x18a)](){const _0x458faf=_0x17995c;var _0x3e8a59,_0x31a2c1,_0x43f562;const _0x3a3c28=this['_configService'][_0x458faf(0x19a)](_0x561a7a),_0x47a9d7=(_0x3e8a59=_0x3a3c28==null?void 0x0:_0x3a3c28[_0x458faf(0x254)])!=null?_0x3e8a59:_0x3f8692;return(_0x43f562=(_0x31a2c1=(await this[_0x458faf(0x1fb)][_0x458faf(0x265)](_0x47a9d7,{'headers':{'Content-Type':_0x458faf(0x202)}}))[_0x458faf(0x200)])==null?void 0x0:_0x31a2c1[_0x458faf(0xae)])!=null?_0x43f562:'';}};ct=Pn([J(0x0,_0x11a278(_0x426398)),J(0x1,_0x11a278(_0x363c4f)),J(0x2,_0x284c80),J(0x3,_0x12caba),J(0x4,_0x4d1519)],ct);var wn=Object[_0x17995c(0x153)],yn=(_0x591e65,_0x3ba57d,_0x3c8dd4,_0x386b24)=>{const _0x1fdf8a=_0x17995c;for(var _0x42d821=_0x386b24>0x1?void 0x0:_0x386b24?wn(_0x3ba57d,_0x3c8dd4):_0x3ba57d,_0x1e31f7=_0x591e65[_0x1fdf8a(0x28b)]-0x1,_0x429267;_0x1e31f7>=0x0;_0x1e31f7--)(_0x429267=_0x591e65[_0x1e31f7])&&(_0x42d821=_0x429267(_0x42d821)||_0x42d821);return _0x42d821;},be=(_0x582937,_0x2e8d40)=>(_0xdf4a8e,_0x1cb8c9)=>_0x2e8d40(_0xdf4a8e,_0x1cb8c9,_0x582937);let _t=class extends _0x29710c{constructor(_0x40da52,_0xfb613c,_0x166f2d){const _0x58d19c=_0x17995c;super(),this[_0x58d19c(0x22c)]=_0x40da52,this['_httpService']=_0xfb613c,this[_0x58d19c(0x22b)]=_0x166f2d;}async['runOnServer'](_0x126ed8,_0x551969,_0x443d63,..._0x361b4f){const _0x127c8a=_0x17995c;var _0x29865b,_0x36df4f,_0x5a14a9,_0x58ca6c;const _0x3387c7=this[_0x127c8a(0x22c)][_0x127c8a(0x177)]();if(!_0x3387c7)throw new Error(_0x127c8a(0x13b));const _0x3a4bd1=((_0x29865b=this['_configService'][_0x127c8a(0x19a)](_0x6c9711))!=null?_0x29865b:_0x4a61fe)+'/'+_0x126ed8+'/run/'+_0x551969,_0x1a807b=new URL(window[_0x127c8a(0x2ad)][_0x127c8a(0x182)]),_0x5614b9={'scriptId':_0x126ed8,'runId':(_0x36df4f=_0x1a807b['searchParams'][_0x127c8a(0x265)](_0x127c8a(0x141)))!=null?_0x36df4f:'','function':_0x551969,'unitId':_0x3387c7['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x361b4f),'invokeId':(_0x5a14a9=_0x443d63[_0x127c8a(0x226)])!=null?_0x5a14a9:'','executionId':(_0x58ca6c=_0x443d63[_0x127c8a(0x9e)])!=null?_0x58ca6c:''};try{const _0x204ef3=await this[_0x127c8a(0x1fb)][_0x127c8a(0xee)](_0x3a4bd1,{'body':_0x5614b9});return _0x204ef3[_0x127c8a(0x200)][_0x127c8a(0x205)]&&_0x204ef3['body'][_0x127c8a(0x205)][_0x127c8a(0x29d)]!==Z['OK']?_0x127c8a(0x1a9):_0x204ef3[_0x127c8a(0x200)][_0x127c8a(0xcc)];}catch{return _0x127c8a(0x1a9);}}};_t=yn([be(0x0,_0x382f2b),be(0x1,_0x11a278(_0x363c4f)),be(0x2,_0x284c80)],_t);const lt=0x7530,ht=_0x17995c(0x1eb);class tr extends _0x29710c{constructor(){const _0x298ded=_0x17995c;super(),l(this,'_id',_0x25c646()),l(this,'_selfUnitIDs',new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x298ded(0x243),null),l(this,'_clearOtherTimers',new Map()),l(this,_0x298ded(0x1bc),new Map()),this[_0x298ded(0x11f)]();}[_0x17995c(0x2b4)](){const _0x2557d1=_0x17995c;super[_0x2557d1(0x2b4)](),this[_0x2557d1(0x18e)][_0x2557d1(0xbe)]((_0x1cc68b,_0x4d77aa)=>this[_0x2557d1(0x234)](_0x4d77aa)),this[_0x2557d1(0x243)]&&window['clearInterval'](this[_0x2557d1(0x243)]);}[_0x17995c(0x236)](_0x3b4db2){const _0x12c446=_0x17995c;return this['_ensureSubject'](_0x3b4db2)[_0x12c446(0x269)](_0x430265());}['editingUnit'](_0x485bda){const _0x58472d=_0x17995c;this[_0x58472d(0x130)][_0x58472d(0x16f)]===0x0&&this[_0x58472d(0x257)](),this[_0x58472d(0x130)]['add'](_0x485bda),this['_send']({'type':0x0,'memberID':this[_0x58472d(0x2ae)],'unitIDs':[_0x485bda],'isForwarded':!0x1});}[_0x17995c(0x2b5)](_0x3e7d10){const _0x5e20d4=_0x17995c;this[_0x5e20d4(0x130)][_0x5e20d4(0xeb)](_0x3e7d10),this[_0x5e20d4(0x130)][_0x5e20d4(0x16f)]===0x0&&this[_0x5e20d4(0x243)]&&window['clearInterval'](this[_0x5e20d4(0x243)]);}['_init'](){const _0x1fd407=_0x17995c;this['disposeWithMe'](_0x3213ea(_0xa49f30(window,_0x1fd407(0x26c))['subscribe'](_0x593b1f=>{const _0x369ccf=_0x1fd407;if(_0x593b1f[_0x369ccf(0x2b6)]!==ht||!_0x593b1f['newValue'])return;const _0xffcbcb=JSON[_0x369ccf(0x2b1)](_0x593b1f[_0x369ccf(0xba)]);this['_handleEvent'](_0xffcbcb);}))),window[_0x1fd407(0x28f)]('unload',()=>this[_0x1fd407(0x114)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x1fd407(0x130)])}));}[_0x17995c(0x11b)](_0x1f96d3){const _0x7b2a21=_0x17995c;switch(_0x1f96d3[_0x7b2a21(0x21b)]){case 0x0:this[_0x7b2a21(0x2bf)](_0x1f96d3);break;case 0x1:this['_handleLeaveEvent'](_0x1f96d3);break;case 0x2:this['_handleHeartbeatEvent'](_0x1f96d3);break;}}[_0x17995c(0x2bf)](_0xc40e19){const _0x1d67cb=_0x17995c,{unitIDs:_0xe05d72,memberID:_0x37724d,isForwarded:_0x25f358}=_0xc40e19;_0xe05d72['forEach'](_0x27cd4b=>{const _0xbecf8=_0x220d;if(!_0x25f358&&this[_0xbecf8(0x176)][_0xbecf8(0x2a9)](_0x27cd4b)&&this[_0xbecf8(0x113)](_0x27cd4b)[_0xbecf8(0xf2)](_0x27e9f9[_0xbecf8(0x263)]),!this[_0xbecf8(0x176)][_0xbecf8(0x2a9)](_0x27cd4b)||!this[_0xbecf8(0x176)][_0xbecf8(0x265)](_0x27cd4b)[_0xbecf8(0x2a9)](_0x37724d)){const _0x46fabf=this[_0xbecf8(0x176)][_0xbecf8(0x265)](_0x27cd4b)||new Set();_0x46fabf[_0xbecf8(0x25d)](_0x37724d),this[_0xbecf8(0x176)]['set'](_0x27cd4b,_0x46fabf),this[_0xbecf8(0xd5)](_0x37724d);}}),_0x25f358||this[_0x1d67cb(0x114)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x19607e){const _0x574710=_0x17995c;this[_0x574710(0x234)](_0x19607e);const _0x20e6cd=window['setTimeout'](()=>{this['_unitOnClients']['forEach'](_0x4734c5=>{const _0x4e0fe8=_0x220d;_0x4734c5[_0x4e0fe8(0xeb)](_0x19607e);});},lt*0x2);this['_clearOtherTimers'][_0x574710(0xc9)](_0x19607e,_0x20e6cd);}[_0x17995c(0x234)](_0x30a873){const _0x36cdfd=_0x17995c;if(this['_clearOtherTimers'][_0x36cdfd(0x2a9)](_0x30a873)){const _0x3e4858=this[_0x36cdfd(0x18e)][_0x36cdfd(0x265)](_0x30a873);_0x3e4858&&window['clearTimeout'](_0x3e4858),this[_0x36cdfd(0x18e)][_0x36cdfd(0xc9)](_0x30a873,null);}}[_0x17995c(0xac)](_0x111da3){const _0x209ce1=_0x17995c,{memberID:_0x3515f0,unitIDs:_0x47301b}=_0x111da3;_0x47301b[_0x209ce1(0xbe)](_0x2db8e0=>{const _0x4c3d18=_0x209ce1;var _0x1300af;const _0x2bedd6=this[_0x4c3d18(0x176)][_0x4c3d18(0x265)](_0x2db8e0);_0x2bedd6&&(_0x2bedd6['delete'](_0x3515f0),(_0x1300af=this[_0x4c3d18(0x113)](_0x2db8e0))==null||_0x1300af[_0x4c3d18(0xf2)](_0x2bedd6[_0x4c3d18(0x16f)]===0x0?_0x27e9f9[_0x4c3d18(0xf0)]:_0x27e9f9[_0x4c3d18(0x263)]));}),this['_removeClearOtherTimer'](_0x3515f0);}['_handleHeartbeatEvent'](_0x10d7c4){const _0x2151b2=_0x17995c;this[_0x2151b2(0xd5)](_0x10d7c4[_0x2151b2(0x19d)]);}[_0x17995c(0x114)](_0x59bdf6){const _0x6f0997=_0x17995c;localStorage[_0x6f0997(0xfc)](ht,JSON[_0x6f0997(0x1dd)](_0x59bdf6));}['_scheduleHeartbeat'](){const _0x127283=_0x17995c;this[_0x127283(0x243)]=window[_0x127283(0x120)](()=>{const _0x56d676=_0x127283;this[_0x56d676(0x114)]({'type':0x2,'memberID':this[_0x56d676(0x2ae)]});},lt);}[_0x17995c(0x113)](_0x35303c){const _0x596ff5=_0x17995c;return this[_0x596ff5(0x1bc)][_0x596ff5(0x2a9)](_0x35303c)||this[_0x596ff5(0x1bc)][_0x596ff5(0xc9)](_0x35303c,new _0x5ab626(_0x27e9f9[_0x596ff5(0xf0)])),this[_0x596ff5(0x1bc)][_0x596ff5(0x265)](_0x35303c);}}export{ct as BrowserCollaborationSocketService,ae as CollaborationDataLoaderController,oe as DesktopCollaborationStatusDisplayController,At as IURLService,_t as RemoteUniscriptService,qi as SheetCollabCursorShape,Be as UniverCollaborationClientUIPlugin,tr as WebBrowserSingleActiveUnitService,Rn as WebURLService};
|
|
1
|
+
const _0x36889e=_0x4047;(function(_0x25097c,_0x334425){const _0x19bbb2=_0x4047,_0x1124d4=_0x25097c();while(!![]){try{const _0x44112a=-parseInt(_0x19bbb2(0x2f2))/0x1*(parseInt(_0x19bbb2(0x269))/0x2)+parseInt(_0x19bbb2(0x39c))/0x3*(parseInt(_0x19bbb2(0x2d2))/0x4)+-parseInt(_0x19bbb2(0x33b))/0x5*(parseInt(_0x19bbb2(0x268))/0x6)+parseInt(_0x19bbb2(0x33a))/0x7*(parseInt(_0x19bbb2(0x1c2))/0x8)+parseInt(_0x19bbb2(0x286))/0x9+parseInt(_0x19bbb2(0x249))/0xa+-parseInt(_0x19bbb2(0x261))/0xb;if(_0x44112a===_0x334425)break;else _0x1124d4['push'](_0x1124d4['shift']());}catch(_0x3248a0){_0x1124d4['push'](_0x1124d4['shift']());}}}(_0x4b6c,0x76e27));var Ft=Object[_0x36889e(0x36e)],kt=(_0xcdc0fa,_0x214f1c,_0x45320d)=>_0x214f1c in _0xcdc0fa?Ft(_0xcdc0fa,_0x214f1c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x45320d}):_0xcdc0fa[_0x214f1c]=_0x45320d,l=(_0x5f5b1a,_0x3593a5,_0x562294)=>kt(_0x5f5b1a,typeof _0x3593a5!=_0x36889e(0x1ba)?_0x3593a5+'':_0x3593a5,_0x562294);import{jsx as _0x127c6e,jsxs as _0x27ebb2}from'react/jsx-runtime';import{CollaborationStatus as _0x35fe7b,CollaborationSessionService as _0x3486ae,CollaborationController as _0x5dd025,DataLoaderService as _0x38f297,MemberService as _0x32994c,SessionStatus as _0x2ffc02,ILocalCacheService as _0x23d181,CollaborationUIEventService as _0x31cf35,CollaborationUIEventId as _0x557d91,DocCollaborationEntity as _0xeaac5a,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0xec5025,getLocalCacheKey as _0x37fd08,LOCAL_CACHE_INTERVAL as _0x5f4615,LOCAL_CACHE_INTERVAL_KEY as _0x5127db,UniverCollaborationClientPlugin as _0x54acb2,CollaborationSocketService as _0x519ec4,DEFAULT_WS_SESSION_TICKET_URL as _0x40c209,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x1a66bd,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x878450,UnitStatus as _0x3326af}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x34b1c0,IUniverInstanceService as _0x11a3cb,Inject as _0x43af65,Injector as _0x5a50a2,Disposable as _0x2d4248,createIdentifier as _0x20f552,ILogService as _0x2079f4,ICommandService as _0x19be55,Optional as _0x28004a,RxDisposable as _0x90cdab,Workbook as _0x39e5d3,DOC_RANGE_TYPE as _0x2573f0,debounce as _0x4871f3,Rectangle as _0x5d94d0,DisposableCollection as _0x2f030e,toDisposable as _0x587d38,UniverInstanceType as _0xeb1790,generateRandomId as _0x106418,COLORS as _0x31b33e,ColorKit as _0x262d06,ThemeService as _0x291287,fromEventSubject as _0x451a33,Tools as _0x452ace,CommandType as _0x8dd410,IConfigService as _0x30999b,CanceledError as _0x1df904,isFormulaString as _0x20d565,isFormulaId as _0x3dadc3,ILocalStorageService as _0x59e9d1,DependentOn as _0xfdebc4,Plugin as _0x2a1b8a,merge as _0x539c2b,registerDependencies as _0x5cd96d,mergeOverrideWithDependencies as _0x20ba8c,touchDependencies as _0x309974}from'@univerjs/core';import{useObservable as _0x4b6605,useDependency as _0x5ec3f8,IUIPartsService as _0x2851b3,BuiltInUIPart as _0x1b2b9e,connectInjector as _0x45d98b,IBeforeCloseService as _0x4772b6,IMessageService as _0x35a021,INotificationService as _0x157dfb}from'@univerjs/ui';import{BehaviorSubject as _0x28744e,switchMap as _0x4c5e7c,of as _0x15bfd3,takeUntil as _0x2bd178,debounceTime as _0x583a9f,Subject as _0x205b15,filter as _0x8fee6d,merge as _0x530f38,combineLatest as _0x6612f1,fromEvent as _0x40a393,shareReplay as _0x3e2590,mapTo as _0x13c8e0,distinctUntilChanged as _0x5b1ef3}from'rxjs';import{Tooltip as _0x5961e5,clsx as _0x130e06,MessageType as _0x3551}from'@univerjs/design';import{useRef as _0x2d5d5c,createElement as _0x54cd46,forwardRef as _0x20b1cb,useCallback as _0x4e88b8}from'react';import{IRemoteInstanceService as _0x4b9815}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x1dd493,RefRangeService as _0x560d59,SetSelectionsOperation as _0x2f573e,SheetsSelectionsService as _0x5ac9d1,EffectRefRangId as _0x234e1f,handleIRemoveRow as _0x2ffcdb,handleIRemoveCol as _0x384cd9,handleMoveRange as _0x2b4f10,handleInsertRow as _0xc096ee,handleInsertRangeMoveRight as _0x22c837,handleInsertRangeMoveDown as _0x5e27e8,handleInsertCol as _0x3e4f4e,handleDeleteRangeMoveUp as _0x4c9890,handleDeleteRangeMoveLeft as _0x4d91d0,runRefRangeMutations as _0xb701eb}from'@univerjs/sheets';import{Shape as _0x312cc4,Rect as _0x2af27a,getColor as _0x2219c7,RegularPolygon as _0x3e88a2,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x59f112,Vector2 as _0x4421dc,SHEET_VIEWPORT_KEY as _0x181b74,IRenderManagerService as _0x1461c3}from'@univerjs/engine-render';import{HTTPService as _0x144565,ISocketService as _0x48e9f7,WebSocketService as _0x331d4d}from'@univerjs/network';import{IDocClipboardService as _0x29034e,NodePositionConvertToCursor as _0x49d201,NodePositionConvertToRectRange as _0x139ac7,TEXT_RANGE_LAYER_INDEX as _0x395529,SetDocZoomRatioOperation as _0x1339b0,DocIMEInputManagerService as _0x21d165,DocStateChangeManagerService as _0x1c2dd0}from'@univerjs/docs-ui';import{IImageIoService as _0x2cd590}from'@univerjs/drawing';import{ITransformService as _0x477b88,CollaborationEvent as _0x4e265d,isTransformMutationFailure as _0x3bbf6b,isTransformMutationsWithChangesetSuccess as _0x555015,RevisionService as _0x12ae1d,ISnapshotServerService as _0x2f12ac}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x4698b8,RichTextEditingMutation as _0x1d7932,DocSelectionManagerService as _0x3ce9f9,DocSkeletonManagerService as _0x13e635}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x28c76e,serializeRangeWithSheet as _0x2eec07,FormulaExecuteStageType as _0x417a0b,FormulaExecutedStateType as _0xdc2a3,SetFormulaCalculationStartMutation as _0xf447bb,SetFormulaCalculationNotificationMutation as _0x49ec8c}from'@univerjs/engine-formula';import{map as _0x489674,filter as _0x18d9de,throttleTime as _0x55544b,takeUntil as _0x3ac2d0,switchMap as _0x28acc3}from'rxjs/operators';import{SheetSkeletonManagerService as _0x8160e4,getCoordByCell as _0x51a5a2,getSheetObject as _0x4dda01}from'@univerjs/sheets-ui';function Ve({ref:_0x20bd3f,..._0x487452}){const _0x3d643c=_0x36889e,{icon:_0x2ea0de,id:_0x2cacd6,className:_0x24a995,extend:_0x4eecd9,..._0x271b01}=_0x487452,_0x1c245d=(_0x3d643c(0x3c0)+_0x2cacd6+'\x20'+(_0x24a995||''))['trim'](),_0xb5337d=_0x2d5d5c('_'+gi());return Ut(_0x2ea0de,''+_0x2cacd6,{'defIds':_0x2ea0de['defIds'],'idSuffix':_0xb5337d[_0x3d643c(0x279)]},{'ref':_0x20bd3f,'className':_0x1c245d,..._0x271b01},_0x4eecd9);}function Ut(_0x2c252c,_0x41cf91,_0x4bec0b,_0x1ecb28,_0x4595d2){const _0x13eb37=_0x36889e;return _0x54cd46(_0x2c252c['tag'],{'key':_0x41cf91,...mi(_0x2c252c,_0x4bec0b,_0x4595d2),..._0x1ecb28},(fi(_0x2c252c,_0x4bec0b)[_0x13eb37(0x222)]||[])[_0x13eb37(0x35b)]((_0x4d6b4c,_0x580037)=>Ut(_0x4d6b4c,_0x41cf91+'-'+_0x2c252c[_0x13eb37(0x1c3)]+'-'+_0x580037,_0x4bec0b,void 0x0,_0x4595d2)));}function mi(_0x40a875,_0x32e8aa,_0x2544ad){const _0x301f3a=_0x36889e,_0x163a4c={..._0x40a875['attrs']};_0x2544ad!=null&&_0x2544ad['colorChannel1']&&_0x163a4c[_0x301f3a(0x211)]===_0x301f3a(0x2b1)&&(_0x163a4c['fill']=_0x2544ad[_0x301f3a(0x2b1)]),_0x40a875[_0x301f3a(0x1c3)]===_0x301f3a(0x275)&&_0x163a4c['id']&&(_0x163a4c['id']=_0x163a4c['id']+_0x32e8aa[_0x301f3a(0x225)]),Object[_0x301f3a(0x3bc)](_0x163a4c)[_0x301f3a(0x385)](([_0x3b9fec,_0x44f895])=>{const _0xc794ba=_0x301f3a;_0x3b9fec===_0xc794ba(0x275)&&typeof _0x44f895==_0xc794ba(0x3e8)&&(_0x163a4c[_0x3b9fec]=_0x44f895[_0xc794ba(0x328)](/url\(#(.*)\)/,'url(#$1'+_0x32e8aa[_0xc794ba(0x225)]+')'));});const {defIds:_0x5e962b}=_0x32e8aa;return!_0x5e962b||_0x5e962b[_0x301f3a(0x203)]===0x0||(_0x40a875['tag']===_0x301f3a(0x292)&&_0x163a4c[_0x301f3a(0x231)]&&(_0x163a4c[_0x301f3a(0x231)]=_0x163a4c[_0x301f3a(0x231)]+_0x32e8aa['idSuffix']),Object['entries'](_0x163a4c)[_0x301f3a(0x385)](([_0x5bd72b,_0x4d6bd0])=>{const _0xfd0d5f=_0x301f3a;typeof _0x4d6bd0==_0xfd0d5f(0x3e8)&&(_0x163a4c[_0x5bd72b]=_0x4d6bd0[_0xfd0d5f(0x328)](/url\(#(.*)\)/,'url(#$1'+_0x32e8aa['idSuffix']+')'));})),_0x163a4c;}function fi(_0x51bbb1,_0xdbd593){const _0x5570ce=_0x36889e;var _0x3b8780;const {defIds:_0x28d610}=_0xdbd593;return!_0x28d610||_0x28d610['length']===0x0?_0x51bbb1:_0x51bbb1[_0x5570ce(0x1c3)]===_0x5570ce(0x1d8)&&((_0x3b8780=_0x51bbb1[_0x5570ce(0x222)])!=null&&_0x3b8780[_0x5570ce(0x203)])?{..._0x51bbb1,'children':_0x51bbb1[_0x5570ce(0x222)][_0x5570ce(0x35b)](_0x3eee7e=>typeof _0x3eee7e['attrs']['id']==_0x5570ce(0x3e8)&&_0x28d610&&_0x28d610['includes'](_0x3eee7e[_0x5570ce(0x3ad)]['id'])?{..._0x3eee7e,'attrs':{..._0x3eee7e[_0x5570ce(0x3ad)],'id':_0x3eee7e[_0x5570ce(0x3ad)]['id']+_0xdbd593['idSuffix']}}:_0x3eee7e)}:_0x51bbb1;}function gi(){const _0x1262e9=_0x36889e;return Math['random']()[_0x1262e9(0x3a1)](0x24)['substring'](0x2,0x8);}Ve['displayName']=_0x36889e(0x228);const vi={'tag':_0x36889e(0x238),'attrs':{'xmlns':_0x36889e(0x285),'fill':_0x36889e(0x35f),'viewBox':'0\x200\x2016\x2016','width':_0x36889e(0x3ba),'height':_0x36889e(0x3ba)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x36889e(0x2f3),'attrs':{'stroke':_0x36889e(0x23b),'d':_0x36889e(0x395),'strokeLinecap':_0x36889e(0x2b3),'strokeLinejoin':_0x36889e(0x2b3),'strokeWidth':1.2}}]},{'tag':_0x36889e(0x1d8),'attrs':{},'children':[{'tag':_0x36889e(0x2db),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x36889e(0x2f3),'attrs':{'fill':_0x36889e(0x1d2),'d':_0x36889e(0x375)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Lt=_0x20b1cb(function(_0x1911e4,_0x5502d3){const _0x48d394=_0x36889e;return _0x54cd46(Ve,Object[_0x48d394(0x267)]({},_0x1911e4,{'id':_0x48d394(0x31f),'ref':_0x5502d3,'icon':vi}));});Lt['displayName']='OffLineIcon';const Ei={'tag':_0x36889e(0x238),'attrs':{'xmlns':_0x36889e(0x285),'fill':'none','viewBox':_0x36889e(0x243),'width':_0x36889e(0x3ba),'height':_0x36889e(0x3ba)},'children':[{'tag':'g','attrs':{'clipPath':_0x36889e(0x224)},'children':[{'tag':_0x36889e(0x2f3),'attrs':{'stroke':_0x36889e(0x23b),'d':_0x36889e(0x373),'strokeLinecap':_0x36889e(0x2b3),'strokeLinejoin':_0x36889e(0x2b3),'strokeWidth':1.2}}]},{'tag':_0x36889e(0x1d8),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x36889e(0x21d)},'children':[{'tag':_0x36889e(0x2f3),'attrs':{'fill':_0x36889e(0x1d2),'d':_0x36889e(0x375),'transform':_0x36889e(0x2eb)}}]}]}],'defIds':[_0x36889e(0x21d)]},Mt=_0x20b1cb(function(_0x11836a,_0x5122f3){const _0x2e077e=_0x36889e;return _0x54cd46(Ve,Object[_0x2e077e(0x267)]({},_0x11836a,{'id':'on-line-icon','ref':_0x5122f3,'icon':Ei}));});Mt['displayName']=_0x36889e(0x3a7);function pi(_0x54007a){const _0x277b24=_0x36889e;switch(_0x54007a){case _0x35fe7b[_0x277b24(0x2bf)]:return'collabStatus.offline';case _0x35fe7b[_0x277b24(0x357)]:return _0x277b24(0x3ae);case _0x35fe7b[_0x277b24(0x2e0)]:return _0x277b24(0x38a);case _0x35fe7b['NOT_COLLAB']:return _0x277b24(0x2d9);case _0x35fe7b['AWAITING']:case _0x35fe7b[_0x277b24(0x1e6)]:return'collabStatus.syncing';case _0x35fe7b[_0x277b24(0x2b0)]:case _0x35fe7b['PENDING']:return _0x277b24(0x229);}}function Oi(_0xf7921){const _0x5bd9a8=_0x36889e,{status$:_0x1c7e5d}=_0xf7921,_0x1ca55b=_0x4b6605(_0x1c7e5d,_0x35fe7b[_0x5bd9a8(0x29d)]),_0x1c9134=_0x5ec3f8(_0x34b1c0),_0x175a64=_0x5ec3f8(_0x3486ae),_0x565225=_0x1ca55b!==_0x35fe7b[_0x5bd9a8(0x2bf)],_0x176bd7=_0x1c9134['t'](pi(_0x1ca55b)),_0x379167=_0x565225?_0x127c6e(Mt,{}):_0x127c6e(Lt,{}),_0x2dabba=_0x4e88b8(()=>{const _0x5224d5=_0x5bd9a8;_0x565225||_0x175a64[_0x5224d5(0x26d)]();},[_0x565225,_0x175a64]);function _0x2f8402(){const _0x544194=_0x5bd9a8;return _0x27ebb2(_0x544194(0x2be),{'className':_0x544194(0x2e3),'onClick':_0x2dabba,'children':[_0x127c6e('div',{'className':_0x130e06(_0x544194(0x3a0),{'univer-text-green-500':_0x565225,'univer-text-red-500':!_0x565225}),'children':_0x379167}),_0x127c6e(_0x544194(0x2be),{'className':_0x544194(0x34a),'children':_0x176bd7})]});}return _0x565225?_0x2f8402():_0x127c6e(_0x5961e5,{'title':_0x1c9134['t']('collab-client.tooltip.reconnect'),'children':_0x2f8402()});}var Ti=Object['getOwnPropertyDescriptor'],Ci=(_0x4d996d,_0x290271,_0x38be73,_0x1483c7)=>{const _0xdb36fa=_0x36889e;for(var _0x48732c=_0x1483c7>0x1?void 0x0:_0x1483c7?Ti(_0x290271,_0x38be73):_0x290271,_0x909a6f=_0x4d996d[_0xdb36fa(0x203)]-0x1,_0x349ca7;_0x909a6f>=0x0;_0x909a6f--)(_0x349ca7=_0x4d996d[_0x909a6f])&&(_0x48732c=_0x349ca7(_0x48732c)||_0x48732c);return _0x48732c;},se=(_0x53bc1d,_0x49d14e)=>(_0x183160,_0x2f9176)=>_0x49d14e(_0x183160,_0x2f9176,_0x53bc1d);let oe=class extends _0x2d4248{constructor(_0x6d5f3f,_0x499bc1,_0x27b122,_0x1d1e26){const _0x1bee4b=_0x36889e;super(),l(this,'_status$',new _0x28744e(_0x35fe7b['NOT_COLLAB'])),(this[_0x1bee4b(0x1e7)]=_0x6d5f3f,this['_injector']=_0x499bc1,this['_collaborationController']=_0x27b122,this[_0x1bee4b(0x3af)]=_0x1d1e26,this[_0x1bee4b(0x3b7)](),this[_0x1bee4b(0x3e9)]());}[_0x36889e(0x3e9)](){const _0x31d6a6=_0x36889e;this[_0x31d6a6(0x20c)](this[_0x31d6a6(0x1e7)][_0x31d6a6(0x312)]['pipe'](_0x4c5e7c(()=>{const _0x23f037=_0x31d6a6,_0x491504=this[_0x23f037(0x1e7)][_0x23f037(0x3cc)]();return _0x491504?this[_0x23f037(0x28a)][_0x23f037(0x2d0)](_0x491504[_0x23f037(0x333)]()):_0x15bfd3(null);}),_0x4c5e7c(_0x5c6774=>_0x5c6774?_0x5c6774[_0x31d6a6(0x38d)]:_0x15bfd3(_0x35fe7b['NOT_COLLAB'])))[_0x31d6a6(0x3d8)](_0x19e5ae=>{const _0x2922d7=_0x31d6a6;this[_0x2922d7(0x31e)][_0x2922d7(0x345)](_0x19e5ae);}));}[_0x36889e(0x3b7)](){const _0x13b191=_0x36889e;this['disposeWithMe'](this[_0x13b191(0x3af)][_0x13b191(0x2a6)](_0x1b2b9e[_0x13b191(0x276)],()=>_0x45d98b(Ri({'status$':this[_0x13b191(0x31e)][_0x13b191(0x33d)]()}),this[_0x13b191(0x1fc)])));}};oe=Ci([se(0x0,_0x11a3cb),se(0x1,_0x43af65(_0x5a50a2)),se(0x2,_0x43af65(_0x5dd025)),se(0x3,_0x2851b3)],oe);function Ri(_0x4a9b00){const {status$:_0x2c829a}=_0x4a9b00;return function(){return _0x127c6e(Oi,{'status$':_0x2c829a});};}const At=_0x20f552(_0x36889e(0x321));var Di=Object[_0x36889e(0x39d)],Ni=(_0xa86d4d,_0x5e0d71,_0x353c4c,_0x27406d)=>{const _0x33224e=_0x36889e;for(var _0x5822cb=_0x27406d>0x1?void 0x0:_0x27406d?Di(_0x5e0d71,_0x353c4c):_0x5e0d71,_0x53985c=_0xa86d4d[_0x33224e(0x203)]-0x1,_0x47878c;_0x53985c>=0x0;_0x53985c--)(_0x47878c=_0xa86d4d[_0x53985c])&&(_0x5822cb=_0x47878c(_0x5822cb)||_0x5822cb);return _0x5822cb;},K=(_0x326bf6,_0x1ceabc)=>(_0x1b6501,_0x400674)=>_0x1ceabc(_0x1b6501,_0x400674,_0x326bf6);let ae=class extends _0x90cdab{constructor(_0x261e25,_0x2ee3cc,_0xbc770,_0x117be8,_0x55c771){const _0x373a31=_0x36889e;super(),this[_0x373a31(0x3da)]=_0x261e25,this[_0x373a31(0x1e5)]=_0x2ee3cc,this['_commandService']=_0xbc770,this[_0x373a31(0x325)]=_0x117be8,_0x55c771?_0x55c771==null||_0x55c771[_0x373a31(0x39f)]()[_0x373a31(0x1f5)](()=>this[_0x373a31(0x1d4)]()):(this['_logService']['debug'](_0x373a31(0x37f),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x373a31(0x1d4)]());}async[_0x36889e(0x1d4)](){const _0x36f037=_0x36889e,_0x23be91=this[_0x36f037(0x3da)]['getParam'](_0x36f037(0x2ff)),_0x3de218=this[_0x36f037(0x3da)][_0x36f037(0x3ce)]('type'),_0xd2a33f=this[_0x36f037(0x3da)][_0x36f037(0x3ce)](_0x36f037(0x3b5));if(!_0x23be91||!_0x3de218){this[_0x36f037(0x1e5)]['debug'](_0x36f037(0x37f),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x4d52c6=await this[_0x36f037(0x325)]['loadUnit'](_0x23be91,Number(_0x3de218),_0xd2a33f);_0x4d52c6&&_0x4d52c6 instanceof _0x39e5d3&&this[_0x36f037(0x291)](_0x4d52c6);}async['_setupSubUnitSync'](_0x169b04){const _0x3fae8a=_0x36889e;await this[_0x3fae8a(0x255)](_0x169b04),_0x169b04[_0x3fae8a(0x22a)][_0x3fae8a(0x1dd)](_0x2bd178(this[_0x3fae8a(0x3c5)]))[_0x3fae8a(0x3d8)](_0x489433=>{_0x489433&&this['_updateURLWithCurrentState'](_0x489433);}),this['_urlService'][_0x3fae8a(0x398)][_0x3fae8a(0x1dd)](_0x2bd178(this[_0x3fae8a(0x3c5)]))[_0x3fae8a(0x3d8)](()=>this[_0x3fae8a(0x255)](_0x169b04));}[_0x36889e(0x391)](_0x415d94,_0x1460c9=!0x1){const _0x300aa6=_0x36889e,_0x110f51=this['_urlService'][_0x300aa6(0x3ce)]('subunit');_0x415d94[_0x300aa6(0x313)]()!==_0x110f51&&this[_0x300aa6(0x3da)][_0x300aa6(0x245)](_0x300aa6(0x3b5),_0x415d94[_0x300aa6(0x313)](),_0x1460c9);}async[_0x36889e(0x255)](_0x375b9b){const _0x3e148c=_0x36889e;var _0x4c45d8;const _0x25d6d8=this[_0x3e148c(0x3da)][_0x3e148c(0x3ce)](_0x3e148c(0x3b5));if(!_0x25d6d8||!_0x375b9b[_0x3e148c(0x38c)](_0x25d6d8)){const _0x413bbc=_0x375b9b[_0x3e148c(0x215)]()[0x0],_0x23bde9=_0x375b9b[_0x3e148c(0x38c)](_0x413bbc);if(!_0x23bde9)return;this[_0x3e148c(0x391)](_0x23bde9,!0x0),await this['_commandService']['executeCommand'](_0x1dd493['id'],{'unitId':_0x375b9b[_0x3e148c(0x333)](),'subUnitId':_0x413bbc});return;}((_0x4c45d8=_0x375b9b[_0x3e148c(0x252)]())==null?void 0x0:_0x4c45d8[_0x3e148c(0x313)]())!==_0x25d6d8&&await this['_commandService']['executeCommand'](_0x1dd493['id'],{'unitId':_0x375b9b['getUnitId'](),'subUnitId':_0x25d6d8});}};ae=Ni([K(0x0,At),K(0x1,_0x2079f4),K(0x2,_0x19be55),K(0x3,_0x43af65(_0x38f297)),K(0x4,_0x28004a(_0x4b9815))],ae);var bi=Object[_0x36889e(0x39d)],Ui=(_0xef945a,_0x464b53,_0x3a1c9f,_0x339bcf)=>{const _0x370710=_0x36889e;for(var _0x42f19a=_0x339bcf>0x1?void 0x0:_0x339bcf?bi(_0x464b53,_0x3a1c9f):_0x464b53,_0x3a235f=_0xef945a[_0x370710(0x203)]-0x1,_0x5ee985;_0x3a235f>=0x0;_0x3a235f--)(_0x5ee985=_0xef945a[_0x3a235f])&&(_0x42f19a=_0x5ee985(_0x42f19a)||_0x42f19a);return _0x42f19a;},tt=(_0x39dfc1,_0x484ce8)=>(_0x14c497,_0x19064a)=>_0x484ce8(_0x14c497,_0x19064a,_0x39dfc1);let Ae=class extends _0x90cdab{constructor(_0xf553d3,_0x3c2fde){const _0x507409=_0x36889e;super(),this[_0x507409(0x21e)]=_0xf553d3,this[_0x507409(0x257)]=_0x3c2fde,this['_init']();}[_0x36889e(0x1d4)](){const _0x4021d9=_0x36889e,_0x306231=this;this['disposeWithMe'](this[_0x4021d9(0x21e)][_0x4021d9(0x2f8)]({'onBeforePasteImage':async _0x53cd72=>{const _0x303a94=_0x4021d9,_0x39a325=await _0x306231[_0x303a94(0x257)][_0x303a94(0x1cf)](_0x53cd72);return _0x39a325?{'source':_0x39a325['source'],'imageSourceType':_0x39a325[_0x303a94(0x1c8)]}:null;}}));}};Ae=Ui([tt(0x0,_0x29034e),tt(0x1,_0x2cd590)],Ae);const st=[_0x36889e(0x359),_0x36889e(0x282),'green.600',_0x36889e(0x354),_0x36889e(0x272),'yellow.400'];class je extends _0x2d4248{constructor(){const _0x5c439d=_0x36889e;super(...arguments),l(this,_0x5c439d(0x242),new Map()),l(this,_0x5c439d(0x2b2),0x0);}[_0x36889e(0x20d)](_0x12891c){const _0x3e32ca=_0x36889e;if(this[_0x3e32ca(0x242)][_0x3e32ca(0x3bb)](_0x12891c))return this[_0x3e32ca(0x242)][_0x3e32ca(0x2f9)](_0x12891c);const _0x29dc90=st[this[_0x3e32ca(0x2b2)]];return this[_0x3e32ca(0x2b2)]=(this[_0x3e32ca(0x2b2)]+0x1)%st[_0x3e32ca(0x203)],this[_0x3e32ca(0x242)]['set'](_0x12891c,_0x29dc90),_0x29dc90;}}function Pt(_0x264ae6){const _0x3477c2=_0x36889e;let _0x4d56b0='';for(const _0x3b1600 of _0x264ae6){const {startOffset:_0x5a4110,endOffset:_0x1f041f,isActive:_0x42a992,rangeType:_0x21ce2a,segmentId:_0x1612e4,segmentPage:_0x312e6a}=_0x3b1600;_0x4d56b0[_0x3477c2(0x203)]&&(_0x4d56b0+=','),_0x4d56b0+=_0x5a4110+':'+_0x1f041f+':'+(_0x42a992?'1':'0')+':'+_0x21ce2a+':'+_0x1612e4+':'+_0x312e6a;}return _0x4d56b0;}function Li(_0x4e1c00){const _0x35a704=_0x36889e,_0x1920c3=_0x4e1c00[_0x35a704(0x331)](','),_0xeab53e=[];for(const _0x485cdb of _0x1920c3){const [_0x5d09a5,_0x2e96b0,_0xc1268c,_0x26f0f3,_0x3938b2,_0x12abaa]=_0x485cdb['split'](':');_0xeab53e[_0x35a704(0x36b)]({'startOffset':Number(_0x5d09a5),'endOffset':Number(_0x2e96b0),'collapsed':_0x5d09a5===_0x2e96b0,'isActive':_0xc1268c==='1','rangeType':_0x26f0f3===_0x2573f0[_0x35a704(0x2a2)]?_0x2573f0[_0x35a704(0x2a2)]:_0x2573f0['RECT'],'segmentId':typeof _0x3938b2==_0x35a704(0x3e8)?String(_0x3938b2):'','segmentPage':Number(_0x12abaa!=null?_0x12abaa:-0x1)});}return _0xeab53e[_0x35a704(0x2a3)](_0x2f9d32=>_0x2f9d32[_0x35a704(0x253)])||(_0xeab53e[0x0][_0x35a704(0x253)]=!0x0),_0xeab53e;}class Xe extends _0x90cdab{constructor(){const _0x18885f=_0x36889e;super(...arguments),l(this,_0x18885f(0x3c3),new _0x28744e(null)),l(this,_0x18885f(0x1ef),this[_0x18885f(0x3c3)][_0x18885f(0x33d)]());}['syncEditingCollabCursor'](_0x4e0dfe){const _0x2d5b90=_0x36889e,{unitID:_0x10e2e1,memberID:_0x40322d,textRanges:_0x27f354}=_0x4e0dfe,_0x948ac8=Pt(_0x27f354);if(_0x948ac8==='')return;const _0x354701={'unitID':_0x10e2e1,'memberID':_0x40322d,'selection':_0x948ac8};this['_collabCursorState$'][_0x2d5b90(0x345)](_0x354701);}}var Mi=Object[_0x36889e(0x39d)],Ai=(_0x29cb83,_0x1dd5d8,_0x11f4f6,_0x172570)=>{for(var _0x4efa55=_0x172570>0x1?void 0x0:_0x172570?Mi(_0x1dd5d8,_0x11f4f6):_0x1dd5d8,_0xa43d70=_0x29cb83['length']-0x1,_0x5a40e8;_0xa43d70>=0x0;_0xa43d70--)(_0x5a40e8=_0x29cb83[_0xa43d70])&&(_0x4efa55=_0x5a40e8(_0x4efa55)||_0x4efa55);return _0x4efa55;},A=(_0x18b7bf,_0x76d2a9)=>(_0x240a5b,_0x47614e)=>_0x76d2a9(_0x240a5b,_0x47614e,_0x18b7bf);const Pi=0x12c,wi=0x64;let Pe=class extends _0x90cdab{constructor(_0x2095b1,_0x58bfd1,_0x39c14e,_0x4a42cc,_0x23ae78,_0x392067,_0x506be9,_0x1306fe,_0x58506e){const _0x2926bf=_0x36889e;super(),l(this,'_online',!0x1),l(this,_0x2926bf(0x1d4),!0x1),l(this,'_cursorInfo$',new _0x28744e(new Map())),l(this,_0x2926bf(0x1f6),this[_0x2926bf(0x26f)]['asObservable']()),l(this,'_roomMembers$',new _0x28744e([])),l(this,'roomMembers$',this[_0x2926bf(0x27b)]['pipe'](_0x583a9f(Pi))),l(this,'_updateLocalCursor',_0x4871f3(_0x1980ee=>{const _0x25b2dd=_0x2926bf,_0x4123b4={'eventID':_0x4e265d[_0x25b2dd(0x24e)],'data':{'unitID':this[_0x25b2dd(0x2ba)],'memberID':this[_0x25b2dd(0x39b)][_0x25b2dd(0x330)](),'selection':Pt(_0x1980ee)}};this[_0x25b2dd(0x39b)][_0x25b2dd(0x2e6)](_0x4123b4,this[_0x25b2dd(0x2ba)]);},wi)),(this[_0x2926bf(0x2ba)]=_0x2095b1,this[_0x2926bf(0x39b)]=_0x58bfd1,this['_injector']=_0x39c14e,this[_0x2926bf(0x1e8)]=_0x4a42cc,this[_0x2926bf(0x3b2)]=_0x23ae78,this[_0x2926bf(0x316)]=_0x392067,this[_0x2926bf(0x1c0)]=_0x506be9,this[_0x2926bf(0x1e7)]=_0x1306fe,this[_0x2926bf(0x227)]=_0x58506e);}get[_0x36889e(0x25c)](){const _0x5e9460=_0x36889e;return this[_0x5e9460(0x26f)][_0x5e9460(0x293)]();}get['roomMembers'](){const _0x2786d3=_0x36889e;return this[_0x2786d3(0x27b)]['getValue']();}['dispose'](){const _0x5974c8=_0x36889e;super[_0x5974c8(0x346)](),this[_0x5974c8(0x26f)]['next'](new Map()),this[_0x5974c8(0x26f)][_0x5974c8(0x2c8)](),this[_0x5974c8(0x27b)][_0x5974c8(0x345)]([]),this[_0x5974c8(0x27b)][_0x5974c8(0x2c8)]();}[_0x36889e(0x1f3)](){const _0x4434be=_0x36889e;this[_0x4434be(0x1d4)]||(this['_init']=!0x0,this[_0x4434be(0x39b)][_0x4434be(0x329)][_0x4434be(0x1dd)](_0x2bd178(this[_0x4434be(0x3c5)]))['subscribe'](_0x4cfb57=>{const _0x2abfc3=_0x4434be;_0x4cfb57===_0x2ffc02['ONLINE']?this['_toggleOnline']():this[_0x2abfc3(0x303)]();}),this['_session'][_0x4434be(0x380)][_0x4434be(0x1dd)](_0x2bd178(this[_0x4434be(0x3c5)]))[_0x4434be(0x3d8)](_0x3526f0=>{const _0x5cb070=_0x4434be,_0x3b604c=_0x3526f0[_0x5cb070(0x2c2)];_0x3b604c===_0x4e265d['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x3526f0),_0x3b604c===_0x4e265d[_0x5cb070(0x259)]&&this['_onCursorDelete'](_0x3526f0);}),this[_0x4434be(0x20c)](this[_0x4434be(0x227)][_0x4434be(0x1ff)](_0x49ccae=>{const _0x18bccc=_0x4434be,_0x47667d=_0x49ccae[_0x18bccc(0x2c5)];_0x47667d!=null&&this[_0x18bccc(0x1eb)]&&_0x49ccae['id']===_0x4698b8['id']&&_0x47667d[_0x18bccc(0x360)]===this[_0x18bccc(0x2ba)]&&_0x47667d[_0x18bccc(0x3aa)]===!0x1&&_0x47667d['ranges'][_0x18bccc(0x203)]>0x0&&this[_0x18bccc(0x394)](_0x47667d[_0x18bccc(0x1c1)]);})),this[_0x4434be(0x316)][_0x4434be(0x1ef)][_0x4434be(0x1dd)](_0x2bd178(this[_0x4434be(0x3c5)]))[_0x4434be(0x3d8)](_0x29683a=>{const _0x1e321f=_0x4434be;if((_0x29683a==null?void 0x0:_0x29683a[_0x1e321f(0x2ba)])!==this[_0x1e321f(0x2ba)])return;const _0x52d02e={'eventID':_0x4e265d[_0x1e321f(0x24e)],'data':_0x29683a};this[_0x1e321f(0x2e2)](_0x52d02e);}),this[_0x4434be(0x20c)](this[_0x4434be(0x227)][_0x4434be(0x1ff)](_0x5a77e4=>{const _0xde0f9b=_0x4434be;if(_0x5a77e4[_0xde0f9b(0x2c5)]==null)return;const _0x491d75=_0x5a77e4[_0xde0f9b(0x2c5)];if(_0x5a77e4['id']!==_0x1d7932['id']||_0x491d75[_0xde0f9b(0x360)]!==this[_0xde0f9b(0x2ba)])return;const _0x56d5a0={'id':_0xde0f9b(0x3cb),'params':_0x491d75},_0x477ed9=this['cursorInfo'];for(const [_0x276027,_0x580aeb]of _0x477ed9){const _0x4454c6={'id':_0xde0f9b(0x3cb),'params':{'unitId':this[_0xde0f9b(0x2ba)],'actions':null,'textRanges':_0x580aeb[_0xde0f9b(0x1c1)]}},_0x54c7e5=this[_0xde0f9b(0x1c0)][_0xde0f9b(0x2e9)](_0x56d5a0,_0x4454c6,!0x1);if(_0x3bbf6b(_0x54c7e5))throw _0x54c7e5[_0xde0f9b(0x206)];_0x477ed9[_0xde0f9b(0x2e8)](_0x276027,{..._0x580aeb,'ranges':_0x54c7e5[_0xde0f9b(0x271)][_0xde0f9b(0x2c5)][_0xde0f9b(0x3be)]});}queueMicrotask(()=>{const _0x5b33ab=_0xde0f9b;this[_0x5b33ab(0x26f)][_0x5b33ab(0x345)](_0x477ed9);});})));}[_0x36889e(0x2e2)](_0x1d0693){const _0xe202bc=_0x36889e;var _0x53fd5d,_0x27397f;const {memberID:_0x46d71f,selection:_0x2ec6f6}=_0x1d0693[_0xe202bc(0x232)],_0x387e78=Li(_0x2ec6f6),_0x54c1ee=(_0x27397f=(_0x53fd5d=this[_0xe202bc(0x3b2)][_0xe202bc(0x326)](this[_0xe202bc(0x2ba)],_0x46d71f))==null?void 0x0:_0x53fd5d[_0xe202bc(0x25d)])!=null?_0x27397f:'Unknown\x20user',_0x13d881={'color':this['_colorAssignService'][_0xe202bc(0x20d)](_0x46d71f),'name':_0x54c1ee,'ranges':_0x387e78},_0x25408c=this['cursorInfo'];_0x25408c['set'](_0x46d71f,_0x13d881),this[_0xe202bc(0x26f)][_0xe202bc(0x345)](_0x25408c);}['_onCursorDelete'](_0x1eaa97){const _0x56a7f4=_0x36889e,{memberID:_0x18a929}=_0x1eaa97[_0x56a7f4(0x232)],_0x489609=this['cursorInfo'];_0x489609[_0x56a7f4(0x2c3)](_0x18a929),this[_0x56a7f4(0x26f)][_0x56a7f4(0x345)](_0x489609);}[_0x36889e(0x3d3)](){const _0x515cec=_0x36889e;var _0x16ac9e;if(this[_0x515cec(0x1eb)]=!0x0,((_0x16ac9e=this[_0x515cec(0x1e7)]['getFocusedUnit']())==null?void 0x0:_0x16ac9e[_0x515cec(0x333)]())!==this[_0x515cec(0x2ba)])return;const _0x5d3091=this['_injector']['get'](_0x3ce9f9)[_0x515cec(0x29f)]();Array[_0x515cec(0x3a3)](_0x5d3091)&&_0x5d3091['length']>0x0&&this['_updateLocalCursor'](_0x5d3091);}[_0x36889e(0x303)](){const _0x1ec383=_0x36889e;this[_0x1ec383(0x1eb)]=!0x1;}};Pe=Ai([A(0x2,_0x43af65(_0x5a50a2)),A(0x3,_0x43af65(je)),A(0x4,_0x43af65(_0x32994c)),A(0x5,_0x43af65(Xe)),A(0x6,_0x477b88),A(0x7,_0x11a3cb),A(0x8,_0x19be55)],Pe);var yi=Object[_0x36889e(0x39d)],$i=(_0x56eea1,_0x324031,_0x2057ec,_0x49ed96)=>{for(var _0x5c6591=_0x49ed96>0x1?void 0x0:_0x49ed96?yi(_0x324031,_0x2057ec):_0x324031,_0x28f547=_0x56eea1['length']-0x1,_0x4c8c82;_0x28f547>=0x0;_0x28f547--)(_0x4c8c82=_0x56eea1[_0x28f547])&&(_0x5c6591=_0x4c8c82(_0x5c6591)||_0x5c6591);return _0x5c6591;},B=(_0x33d639,_0x552aee)=>(_0x5394f7,_0x3cbffb)=>_0x552aee(_0x5394f7,_0x3cbffb,_0x33d639);const xi=0x12c,Bi=0x64,Fi=()=>{let _0x51dcfa=[],_0x4dd8b2=!0x1;return _0x3cb806=>{const _0x12400f=_0x4047;_0x51dcfa[_0x12400f(0x36b)](_0x3cb806),_0x4dd8b2||(_0x4dd8b2=!0x0,setTimeout(()=>{const _0x47827f=_0x12400f;_0x51dcfa[_0x47827f(0x385)](_0x30da5c=>_0x30da5c()),_0x51dcfa=[],_0x4dd8b2=!0x1;}));};};let we=class extends _0x90cdab{constructor(_0x5309e2,_0x4bd734,_0xbba977,_0x455b01,_0x46d0a3,_0x353514,_0x3f6da5,_0x3c9bd2){const _0x3d25a5=_0x36889e;super(),l(this,_0x3d25a5(0x1eb),!0x1),l(this,'_init',!0x1),l(this,'_cursorInfo$',new _0x28744e(new Map())),l(this,_0x3d25a5(0x1f6),this[_0x3d25a5(0x26f)][_0x3d25a5(0x33d)]()),l(this,_0x3d25a5(0x27b),new _0x28744e([])),l(this,_0x3d25a5(0x295),this[_0x3d25a5(0x27b)]['pipe'](_0x583a9f(xi))),l(this,_0x3d25a5(0x394),_0x4871f3((_0x50b15d,_0x27a890)=>{const _0x47c72a=_0x3d25a5,_0x356e4f={'eventID':_0x4e265d[_0x47c72a(0x24e)],'data':{'unitID':this[_0x47c72a(0x2ba)],'memberID':this[_0x47c72a(0x39b)][_0x47c72a(0x330)](),'selection':_0x2eec07(_0x50b15d,_0x27a890[_0x47c72a(0x2cd)])}};this['_session'][_0x47c72a(0x2e6)](_0x356e4f,this['unitID']);},Bi)),(this[_0x3d25a5(0x2ba)]=_0x5309e2,this[_0x3d25a5(0x39b)]=_0x4bd734,this[_0x3d25a5(0x1fc)]=_0xbba977,this[_0x3d25a5(0x1e8)]=_0x455b01,this['_memberService']=_0x46d0a3,this[_0x3d25a5(0x1e7)]=_0x353514,this['_commandService']=_0x3f6da5,this[_0x3d25a5(0x2a4)]=_0x3c9bd2);}get['cursorInfo'](){const _0x4473de=_0x36889e;return this[_0x4473de(0x26f)][_0x4473de(0x293)]();}get[_0x36889e(0x1fa)](){const _0x282093=_0x36889e;return this[_0x282093(0x27b)][_0x282093(0x293)]();}[_0x36889e(0x346)](){const _0x13ff84=_0x36889e;super[_0x13ff84(0x346)](),this[_0x13ff84(0x26f)][_0x13ff84(0x345)](new Map()),this[_0x13ff84(0x26f)][_0x13ff84(0x2c8)](),this[_0x13ff84(0x27b)][_0x13ff84(0x345)]([]),this[_0x13ff84(0x27b)][_0x13ff84(0x2c8)]();}['init'](){const _0x32b79c=_0x36889e;this[_0x32b79c(0x1d4)]||(this[_0x32b79c(0x1d4)]=!0x0,this[_0x32b79c(0x39b)][_0x32b79c(0x329)][_0x32b79c(0x1dd)](_0x2bd178(this[_0x32b79c(0x3c5)]))[_0x32b79c(0x3d8)](_0x3b6b0b=>{const _0x58a6f6=_0x32b79c;_0x3b6b0b===_0x2ffc02[_0x58a6f6(0x361)]?this[_0x58a6f6(0x3d3)]():this['_toggleOffline']();}),this[_0x32b79c(0x39b)][_0x32b79c(0x380)]['pipe'](_0x2bd178(this[_0x32b79c(0x3c5)]))[_0x32b79c(0x3d8)](_0x6cef0a=>{const _0x13849b=_0x32b79c,_0x3870f0=_0x6cef0a[_0x13849b(0x2c2)];_0x3870f0===_0x4e265d[_0x13849b(0x24e)]&&this[_0x13849b(0x2e2)](_0x6cef0a),_0x3870f0===_0x4e265d[_0x13849b(0x259)]&&this[_0x13849b(0x26a)](_0x6cef0a);}),this[_0x32b79c(0x3dd)](),this[_0x32b79c(0x20c)](this[_0x32b79c(0x227)][_0x32b79c(0x1ff)](_0x32c16a=>{const _0x56942f=_0x32b79c;if(this['_online']&&_0x32c16a['id']===_0x2f573e['id']&&_0x32c16a[_0x56942f(0x2c5)][_0x56942f(0x360)]===this[_0x56942f(0x2ba)]){const _0x4ec48d=_0x32c16a[_0x56942f(0x2c5)];this[_0x56942f(0x394)](_0x4ec48d[_0x56942f(0x309)],_0x4ec48d[_0x56942f(0x2c6)][0x0]);}})));}[_0x36889e(0x2e2)](_0xc0853a){const _0x5ea551=_0x36889e;var _0x3a94a8,_0x34c246;const {memberID:_0x14ae32,selection:_0x2cd103}=_0xc0853a[_0x5ea551(0x232)],{sheetName:_0x36e80b,range:_0x335282}=_0x28c76e(_0x2cd103),_0x153a26={'name':(_0x34c246=(_0x3a94a8=this['_memberService'][_0x5ea551(0x326)](this[_0x5ea551(0x2ba)],_0x14ae32))==null?void 0x0:_0x3a94a8[_0x5ea551(0x25d)])!=null?_0x34c246:'Unknown\x20user','range':this['_getMergeRange'](_0x36e80b,_0x335282),'sheetID':_0x36e80b,'color':this[_0x5ea551(0x1e8)]['assignAColorForMemberID'](_0x14ae32),'selection':_0x2cd103},_0x247891=this['cursorInfo'];_0x247891[_0x5ea551(0x2e8)](_0x14ae32,_0x153a26),this[_0x5ea551(0x26f)]['next'](_0x247891);}[_0x36889e(0x26a)](_0x91caa4){const _0x57bb02=_0x36889e,{memberID:_0x5d59f7}=_0x91caa4[_0x57bb02(0x232)],_0x576569=this['cursorInfo'];_0x576569[_0x57bb02(0x2c3)](_0x5d59f7),this[_0x57bb02(0x26f)][_0x57bb02(0x345)](_0x576569);}[_0x36889e(0x241)](_0x2d3373,_0xfdc191){const _0x13ab9b=_0x36889e;var _0x36842e,_0x54267a;const _0x5564ba=(_0x54267a=(_0x36842e=this[_0x13ab9b(0x1e7)][_0x13ab9b(0x318)](this[_0x13ab9b(0x2ba)]))==null?void 0x0:_0x36842e['getSheetBySheetId'](_0x2d3373))==null?void 0x0:_0x54267a[_0x13ab9b(0x2f4)]();return(_0x5564ba==null?void 0x0:_0x5564ba[_0x13ab9b(0x3a6)](_0xcb720a=>_0x5d94d0[_0x13ab9b(0x301)](_0xcb720a,_0xfdc191)))||_0xfdc191;}[_0x36889e(0x3dd)](){const _0x40c5b6=_0x36889e,_0x4e262e=new _0x2f030e(),_0x3065c6=Fi(),_0x41019a=()=>{const _0x4ad22e=_0x4047;_0x4e262e[_0x4ad22e(0x346)]();const _0x48afd5=(_0x5a3db8,_0x48b524,_0x36d86e,_0x2f6c81)=>{const _0x50e929=_0x4ad22e;let _0x4b7abd=[];switch(_0x5a3db8['id']){case _0x234e1f[_0x50e929(0x2cf)]:{_0x4b7abd=_0x4d91d0(_0x5a3db8,_0x2f6c81);break;}case _0x234e1f[_0x50e929(0x2b9)]:{_0x4b7abd=_0x4c9890(_0x5a3db8,_0x2f6c81);break;}case _0x234e1f[_0x50e929(0x21f)]:{_0x4b7abd=_0x3e4f4e(_0x5a3db8,_0x2f6c81);break;}case _0x234e1f[_0x50e929(0x2a1)]:{_0x4b7abd=_0x5e27e8(_0x5a3db8,_0x2f6c81);break;}case _0x234e1f[_0x50e929(0x270)]:{_0x4b7abd=_0x22c837(_0x5a3db8,_0x2f6c81);break;}case _0x234e1f[_0x50e929(0x205)]:{_0x4b7abd=_0xc096ee(_0x5a3db8,_0x2f6c81);break;}case _0x234e1f[_0x50e929(0x27e)]:{_0x4b7abd=_0x2b4f10(_0x5a3db8,_0x2f6c81);break;}case _0x234e1f['RemoveColCommandId']:{_0x4b7abd=_0x384cd9(_0x5a3db8,_0x2f6c81);break;}case _0x234e1f[_0x50e929(0x304)]:{_0x4b7abd=_0x2ffcdb(_0x5a3db8,_0x2f6c81);break;}}const _0x20ce6c=_0xb701eb(_0x4b7abd,_0x2f6c81),_0xd34a95=this['cursorInfo']['get'](_0x48b524);if(_0xd34a95&&_0x20ce6c){const _0x922fba={..._0xd34a95,'range':_0x20ce6c};this['cursorInfo'][_0x50e929(0x2e8)](_0x48b524,_0x922fba),_0x3065c6(()=>{const _0x575875=_0x50e929,_0x499a2e=this[_0x575875(0x2a4)][_0x575875(0x3d6)](_0x20ce6c,_0xe1774d=>(_0x499a2e[_0x575875(0x346)](),_0x48afd5(_0xe1774d,_0x48b524,_0x36d86e,_0x20ce6c)));_0x4e262e['add'](_0x499a2e);});}return{'redos':[],'undos':[]};};this[_0x4ad22e(0x25c)][_0x4ad22e(0x385)]((_0x3607a8,_0x5ed24f)=>{const _0x5e06a9=_0x4ad22e,{range:_0x5849be,sheetID:_0xe7389c}=_0x3607a8,_0x1c5360=this[_0x5e06a9(0x2a4)][_0x5e06a9(0x3d6)](_0x5849be,_0x45c637=>(_0x1c5360['dispose'](),_0x48afd5(_0x45c637,_0x5ed24f,_0xe7389c,_0x5849be)));_0x4e262e[_0x5e06a9(0x230)](_0x1c5360);});};this[_0x40c5b6(0x20c)](_0x587d38(this['_cursorInfo$'][_0x40c5b6(0x3d8)](()=>{_0x41019a();})));}[_0x36889e(0x3d3)](){const _0x421d1a=_0x36889e;var _0x45ebae,_0x17a414;if(this[_0x421d1a(0x1eb)]=!0x0,((_0x45ebae=this[_0x421d1a(0x1e7)]['getFocusedUnit']())==null?void 0x0:_0x45ebae[_0x421d1a(0x333)]())!==this['unitID'])return;const _0x585329=(_0x17a414=this[_0x421d1a(0x1fc)][_0x421d1a(0x2f9)](_0x5ac9d1)[_0x421d1a(0x247)]())==null?void 0x0:_0x17a414[0x0],_0x46858c=this['_univerInstanceService'][_0x421d1a(0x217)](_0xeb1790['UNIVER_SHEET'])[_0x421d1a(0x252)]();_0x585329&&_0x46858c&&this['_updateLocalCursor'](_0x46858c[_0x421d1a(0x313)](),_0x585329);}[_0x36889e(0x303)](){this['_online']=!0x1;}};we=$i([B(0x2,_0x43af65(_0x5a50a2)),B(0x3,_0x43af65(je)),B(0x4,_0x43af65(_0x32994c)),B(0x5,_0x11a3cb),B(0x6,_0x19be55),B(0x7,_0x43af65(_0x560d59))],we);var ki=Object[_0x36889e(0x39d)],Hi=(_0x234e43,_0x5012ed,_0x576fe4,_0x4e05ba)=>{const _0x292d0a=_0x36889e;for(var _0x10a776=_0x4e05ba>0x1?void 0x0:_0x4e05ba?ki(_0x5012ed,_0x576fe4):_0x5012ed,_0x628ba6=_0x234e43[_0x292d0a(0x203)]-0x1,_0x4c1c30;_0x628ba6>=0x0;_0x628ba6--)(_0x4c1c30=_0x234e43[_0x628ba6])&&(_0x10a776=_0x4c1c30(_0x10a776)||_0x10a776);return _0x10a776;},Ee=(_0x165d6a,_0x43a872)=>(_0xe0f028,_0x4e98ed)=>_0x43a872(_0xe0f028,_0x4e98ed,_0x165d6a);let H=class extends _0x90cdab{constructor(_0x470b6b,_0x12de3e,_0x3d6e1f){const _0x21351c=_0x36889e;super(),l(this,_0x21351c(0x327),new Map()),l(this,_0x21351c(0x3db),new _0x205b15()),(this[_0x21351c(0x1e7)]=_0x470b6b,this[_0x21351c(0x1fc)]=_0x12de3e,this[_0x21351c(0x1f8)]=_0x3d6e1f,this[_0x21351c(0x1d4)]());}['dispose'](){const _0xa26c8f=_0x36889e;super[_0xa26c8f(0x346)](),this[_0xa26c8f(0x3db)]['complete'](),this['_entities']['forEach'](_0x236e9d=>_0x236e9d['dispose']());}[_0x36889e(0x36f)](_0x25580a){const _0x24180f=_0x36889e;return this[_0x24180f(0x327)][_0x24180f(0x3bb)](_0x25580a)?this[_0x24180f(0x327)][_0x24180f(0x2f9)](_0x25580a)[_0x24180f(0x1f6)]:this['_entityInit$']['pipe'](_0x8fee6d(_0x405062=>_0x405062[_0x24180f(0x2ba)]===_0x25580a),_0x4c5e7c(_0x3ae2c2=>_0x3ae2c2['cursorInfo$']));}[_0x36889e(0x1d4)](){const _0x23e607=_0x36889e;this[_0x23e607(0x1e7)][_0x23e607(0x1c6)](_0xeb1790['UNIVER_SHEET'])['pipe'](_0x2bd178(this[_0x23e607(0x3c5)]))[_0x23e607(0x3d8)](async _0x5565b4=>{const _0x135617=_0x23e607,_0x3a8f27=_0x5565b4['getUnitId'](),_0x5ab254=await this[_0x135617(0x2e7)](_0x3a8f27);this['_entityInit$'][_0x135617(0x345)](_0x5ab254),this[_0x135617(0x327)][_0x135617(0x2e8)](_0x3a8f27,_0x5ab254);}),this[_0x23e607(0x1e7)][_0x23e607(0x1c6)](_0xeb1790[_0x23e607(0x289)])[_0x23e607(0x1dd)](_0x2bd178(this[_0x23e607(0x3c5)]))[_0x23e607(0x1dd)](_0x8fee6d(_0xbaebcb=>!_0xbaebcb['getUnitId']()[_0x23e607(0x27a)]('__')))[_0x23e607(0x3d8)](async _0x9634cd=>{const _0x23ccdd=_0x23e607,_0x24c51f=_0x9634cd[_0x23ccdd(0x333)](),_0x1644a4=await this[_0x23ccdd(0x2d3)](_0x24c51f);this['_entityInit$'][_0x23ccdd(0x345)](_0x1644a4),this['_entities'][_0x23ccdd(0x2e8)](_0x24c51f,_0x1644a4);}),_0x530f38(this[_0x23e607(0x1e7)]['getTypeOfUnitDisposed$'](_0xeb1790['UNIVER_DOC']),this[_0x23e607(0x1e7)]['getTypeOfUnitDisposed$'](_0xeb1790[_0x23e607(0x2c7)]))[_0x23e607(0x1dd)](_0x2bd178(this[_0x23e607(0x3c5)]))[_0x23e607(0x3d8)](_0x35771c=>{const _0xe110a0=_0x23e607,_0x505edd=_0x35771c[_0xe110a0(0x333)](),_0x29ec5c=this['_entities']['get'](_0x505edd);_0x29ec5c&&(_0x29ec5c['dispose'](),this[_0xe110a0(0x327)][_0xe110a0(0x2c3)](_0x505edd));});}async[_0x36889e(0x2e7)](_0xdbe3a1){const _0x556ee=_0x36889e,_0x3359c2=await this['_collabSessionService'][_0x556ee(0x3b6)](_0xdbe3a1),_0x340150=this[_0x556ee(0x1fc)][_0x556ee(0x32b)](we,_0xdbe3a1,_0x3359c2);return _0x340150['init'](),_0x340150;}async[_0x36889e(0x2d3)](_0x1366fc){const _0x1ea3ec=_0x36889e,_0x1f4518=await this[_0x1ea3ec(0x1f8)]['requireSession'](_0x1366fc),_0x3a261b=this[_0x1ea3ec(0x1fc)][_0x1ea3ec(0x32b)](Pe,_0x1366fc,_0x1f4518);return _0x3a261b['init'](),_0x3a261b;}};H=Hi([Ee(0x0,_0x11a3cb),Ee(0x1,_0x43af65(_0x5a50a2)),Ee(0x2,_0x43af65(_0x3486ae))],H);const Q=0x14,it=0xc8,pe=0x4,Yi=0x5;function Wi(_0x54187f,_0x59507f){const _0x21aa64=_0x36889e;let {radius:_0x1117aa,width:_0x438fd7,height:_0x43f9dd}=_0x59507f;_0x1117aa=_0x1117aa!=null?_0x1117aa:0x0,_0x438fd7=_0x438fd7!=null?_0x438fd7:0x1e,_0x43f9dd=_0x43f9dd!=null?_0x43f9dd:0x1e;let _0x65edd1=0x0,_0x58b27f=0x0,_0x44c12b=0x0;_0x65edd1=_0x58b27f=_0x44c12b=Math[_0x21aa64(0x1f4)](_0x1117aa,_0x438fd7/0x2,_0x43f9dd/0x2),_0x54187f['beginPath'](),_0x54187f['moveTo'](_0x65edd1,0x0),_0x54187f['lineTo'](_0x438fd7-_0x58b27f,0x0),_0x54187f[_0x21aa64(0x1ec)](_0x438fd7-_0x58b27f,_0x58b27f,_0x58b27f,Math['PI']*0x3/0x2,0x0,!0x1),_0x54187f[_0x21aa64(0x2cc)](_0x438fd7,_0x43f9dd-_0x44c12b),_0x54187f[_0x21aa64(0x1ec)](_0x438fd7-_0x44c12b,_0x43f9dd-_0x44c12b,_0x44c12b,0x0,Math['PI']/0x2,!0x1),_0x54187f['lineTo'](0x0,_0x43f9dd),_0x54187f[_0x21aa64(0x2cc)](0x0,_0x65edd1),_0x54187f[_0x21aa64(0x1ec)](_0x65edd1,_0x65edd1,_0x65edd1,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x54187f[_0x21aa64(0x2c4)](),_0x59507f['fill']&&(_0x54187f[_0x21aa64(0x1db)](),_0x54187f[_0x21aa64(0x298)]=_0x59507f[_0x21aa64(0x211)],_0x59507f[_0x21aa64(0x343)]===_0x21aa64(0x226)?_0x54187f['fill'](_0x21aa64(0x226)):_0x54187f[_0x21aa64(0x211)](),_0x54187f[_0x21aa64(0x27c)]());}class me extends _0x312cc4{constructor(_0x594910,_0x56e3bb){const _0x1be460=_0x36889e;super(_0x594910,_0x56e3bb),l(this,'color'),l(this,_0x1be460(0x3b9)),(this[_0x1be460(0x2a8)]=_0x56e3bb==null?void 0x0:_0x56e3bb[_0x1be460(0x2a8)],this['text']=_0x56e3bb==null?void 0x0:_0x56e3bb[_0x1be460(0x3b9)]);}static['drawWith'](_0x21e1a4,_0x4103cd){const _0x4ff8e0=_0x36889e,{text:_0x35edf3,color:_0x4bb6db}=_0x4103cd;_0x21e1a4[_0x4ff8e0(0x1db)](),_0x21e1a4[_0x4ff8e0(0x3ac)]=_0x4ff8e0(0x352);const _0x1a4377=_0x21e1a4[_0x4ff8e0(0x2dd)](_0x35edf3)[_0x4ff8e0(0x251)],_0x42b7a3=Math[_0x4ff8e0(0x1f4)](_0x1a4377+0x2*pe,it);Wi(_0x21e1a4,{'height':Q,'radius':0x4,'width':_0x42b7a3,'fill':_0x4bb6db}),_0x21e1a4[_0x4ff8e0(0x298)]=_0x4ff8e0(0x306);const _0x4e6946=pe,_0x4b1dfa=Q-Yi,_0x2a914c=it-0x2*pe;if(_0x1a4377>_0x2a914c){let _0x53d6be='',_0x408f08=0x0;for(const _0x30837e of _0x35edf3){const _0x5f1e97=_0x21e1a4[_0x4ff8e0(0x2dd)](_0x30837e)[_0x4ff8e0(0x251)];if(_0x408f08+_0x5f1e97<=_0x2a914c-_0x21e1a4[_0x4ff8e0(0x2dd)](_0x4ff8e0(0x258))['width'])_0x53d6be+=_0x30837e,_0x408f08+=_0x5f1e97;else{_0x53d6be+=_0x4ff8e0(0x258);break;}}_0x21e1a4[_0x4ff8e0(0x348)](_0x53d6be,_0x4e6946,_0x4b1dfa);}else _0x21e1a4[_0x4ff8e0(0x348)](_0x35edf3,_0x4e6946,_0x4b1dfa);_0x21e1a4['restore']();}[_0x36889e(0x2ac)](_0x2cfd06){const _0x926cbe=_0x36889e;me[_0x926cbe(0x369)](_0x2cfd06,this);}}function _0x4047(_0x2bc054,_0x3ade9c){const _0x4b6c73=_0x4b6c();return _0x4047=function(_0x4047cb,_0x5a97a8){_0x4047cb=_0x4047cb-0x1ba;let _0x41901a=_0x4b6c73[_0x4047cb];return _0x41901a;},_0x4047(_0x2bc054,_0x3ade9c);}const Oe=_0x36889e(0x3c2),Vi='collab-text-range-',ji=_0x36889e(0x1fd),z=0x6,Xi=1.5,Te=0x4,Gi=1.5,Ki=_0x36889e(0x32a);class nt{constructor(_0x5b4771,_0x2b071f,_0x1e4c39,_0x239e0d){const _0x41c30f=_0x36889e;l(this,'_shapes',[]),l(this,_0x41c30f(0x21b),null),l(this,'_textBubble',null),l(this,'_anchorDot',null),l(this,_0x41c30f(0x355),null),l(this,_0x41c30f(0x3ca),null),(this[_0x41c30f(0x3e7)]=_0x5b4771,this[_0x41c30f(0x24d)]=_0x2b071f,this[_0x41c30f(0x32c)]=_0x1e4c39,this['_document']=_0x239e0d,this['_render']());}set[_0x36889e(0x278)](_0x3a0e90){const _0x310af6=_0x36889e;_0x3a0e90?(this[_0x310af6(0x372)]&&this[_0x310af6(0x372)][_0x310af6(0x3bd)](),this[_0x310af6(0x24c)]&&this['_textBubble']['show']()):(this[_0x310af6(0x372)]&&this[_0x310af6(0x372)][_0x310af6(0x1cb)](),this[_0x310af6(0x24c)]&&this['_textBubble']['hide']());}[_0x36889e(0x346)](){const _0x52168d=_0x36889e;for(const _0xd4154b of this[_0x52168d(0x2de)])_0xd4154b['dispose']();this['_textBubble']&&this['_textBubble'][_0x52168d(0x346)](),this[_0x52168d(0x372)]&&this[_0x52168d(0x372)]['dispose'](),this[_0x52168d(0x21b)]&&this[_0x52168d(0x21b)][_0x52168d(0x346)](),this['_eventUnsubscribe']&&this[_0x52168d(0x3ca)]();}[_0x36889e(0x296)](){const _0x2a3731=_0x36889e;var _0x5661e3;const {_docSkeleton:_0x12b6bc,_document:_0x46ede0}=this,{color:_0x17d693,name:_0x3e9dc7,ranges:_0x179eee}=this[_0x2a3731(0x3e7)],_0x30dbdf=_0x46ede0[_0x2a3731(0x376)](),{docsLeft:_0x5d9a24,docsTop:_0x16a0dc}=_0x30dbdf,_0x573570=new _0x49d201(_0x30dbdf,_0x12b6bc);for(const {startOffset:_0x3c9e02,endOffset:_0x5cacd3,rangeType:_0x5bd37a,segmentId:_0x2c4719,segmentPage:_0x1ded7b,collapsed:_0x3dc12c,isActive:_0x174f61}of _0x179eee){const _0x1ccf7d=_0x12b6bc['findNodePositionByCharIndex'](_0x3c9e02,!0x0,_0x2c4719,_0x1ded7b);let _0x4027ca=_0x12b6bc[_0x2a3731(0x235)](_0x5cacd3,!0x0,_0x2c4719,_0x1ded7b);if(_0x4027ca==null&&(_0x4027ca=_0x12b6bc[_0x2a3731(0x235)](_0x5cacd3-0x1,!0x1,_0x2c4719,_0x1ded7b)),_0x174f61){const {contentBoxPointGroup:_0x51e70c}=_0x573570[_0x2a3731(0x2dc)](_0x4027ca,_0x4027ca);if(_0x51e70c['length']===0x0)continue;this[_0x2a3731(0x3e4)](_0x17d693,_0x51e70c,_0x5d9a24,_0x16a0dc,_0x3e9dc7),this['_eventUnsubscribe']=this[_0x2a3731(0x2f0)]();}if(_0x1ccf7d&&_0x4027ca){if(_0x5bd37a===_0x2573f0[_0x2a3731(0x233)]){const _0x2dd116=new _0x139ac7(_0x30dbdf,_0x12b6bc),{pointGroup:_0x42dca1}=(_0x5661e3=_0x2dd116[_0x2a3731(0x2dc)](_0x1ccf7d,_0x4027ca))!=null?_0x5661e3:{};if(_0x42dca1==null||_0x42dca1[_0x2a3731(0x203)]===0x0)continue;this[_0x2a3731(0x277)](_0x17d693,_0x42dca1,_0x5d9a24,_0x16a0dc);}else{if(!_0x3dc12c){const {borderBoxPointGroup:_0x881d5d}=_0x573570[_0x2a3731(0x2dc)](_0x1ccf7d,_0x4027ca);if(_0x881d5d[_0x2a3731(0x203)]===0x0)continue;this[_0x2a3731(0x28d)](_0x17d693,_0x881d5d,_0x5d9a24,_0x16a0dc);}}}}}[_0x36889e(0x3e4)](_0x1160e2,_0x47c396,_0x32d963,_0x5967e9,_0x520362){const _0x25cf58=_0x36889e,_0x1acd34=this[_0x25cf58(0x365)](_0x47c396),{left:_0x411479,top:_0x19c931,height:_0x17b2d8}=_0x1acd34,_0x577f8d=this[_0x25cf58(0x38f)](),_0x9af04f=Gi/_0x577f8d,_0x45f63b=new _0x2af27a(Oe+_0x106418(z),{'left':_0x411479+_0x32d963-_0x9af04f,'top':_0x19c931+_0x5967e9,'height':_0x17b2d8,'width':Xi,'fill':_0x1160e2||_0x2219c7(_0x31b33e[_0x25cf58(0x23f)],0x0),'strokeWidth':_0x9af04f,'stroke':Ki,'evented':!0x0});this[_0x25cf58(0x21b)]=_0x45f63b,this['_scene'][_0x25cf58(0x1ce)](_0x45f63b,_0x395529);const _0x3923db=new _0x2af27a(Oe+_0x106418(z),{'left':_0x411479+_0x32d963-_0x9af04f,'top':_0x19c931+_0x5967e9-Te/0x2,'height':Te,'width':Te,'fill':_0x1160e2||_0x2219c7(_0x31b33e['black'],0x0),'strokeWidth':0x0,'stroke':_0x1160e2||_0x2219c7(_0x31b33e[_0x25cf58(0x23f)],0x0),'evented':!0x1});this[_0x25cf58(0x372)]=_0x3923db,this[_0x25cf58(0x24d)][_0x25cf58(0x1ce)](_0x3923db,_0x395529);const _0x5d2acf=new me(Oe+_0x106418(z),{'left':_0x411479+_0x32d963-_0x9af04f,'top':_0x19c931+_0x5967e9-Q,'text':_0x520362,'color':_0x1160e2});this[_0x25cf58(0x24c)]=_0x5d2acf,this[_0x25cf58(0x24d)]['addObject'](_0x5d2acf,_0x395529),this['_hover']=!0x1;}[_0x36889e(0x2f0)](){const _0x831392=_0x36889e,_0x38fc71=this[_0x831392(0x21b)][_0x831392(0x28e)][_0x831392(0x323)](()=>{const _0x2762c4=_0x831392;this[_0x2762c4(0x278)]=!0x0;}),_0x12f687=this[_0x831392(0x21b)][_0x831392(0x320)][_0x831392(0x323)](()=>{const _0x4dc58d=_0x831392;this[_0x4dc58d(0x355)]&&clearTimeout(this[_0x4dc58d(0x355)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x1249c2=_0x831392;_0x38fc71[_0x1249c2(0x334)](),_0x12f687[_0x1249c2(0x334)]();};}['_drawTextRange'](_0x44c4c7,_0x1d15e4,_0x250eee,_0x108c4a){const _0x57d48d=_0x36889e,_0x24c3aa=new _0x262d06(_0x44c4c7)['setAlpha'](0.2)['toRgbString'](),_0x2c5c25=new _0x3e88a2(Vi+_0x106418(z),{'pointsGroup':_0x1d15e4,'fill':_0x24c3aa||_0x2219c7(_0x31b33e[_0x57d48d(0x23f)],0.2),'left':_0x250eee,'top':_0x108c4a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x57d48d(0x2de)][_0x57d48d(0x36b)](_0x2c5c25),this[_0x57d48d(0x24d)][_0x57d48d(0x1ce)](_0x2c5c25,_0x395529);}['_drawRectRange'](_0x7dbe86,_0x4166b5,_0x560089,_0x1900a4){const _0x3dfaa4=_0x36889e,_0x2ef9a3=new _0x262d06(_0x7dbe86)[_0x3dfaa4(0x341)](0.2)[_0x3dfaa4(0x2df)](),_0xbd0ec=new _0x3e88a2(ji+_0x106418(z),{'pointsGroup':_0x4166b5,'fill':_0x2ef9a3||_0x2219c7(_0x31b33e[_0x3dfaa4(0x23f)],0.2),'left':_0x560089,'top':_0x1900a4,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0xbd0ec),this[_0x3dfaa4(0x24d)][_0x3dfaa4(0x1ce)](_0xbd0ec,_0x395529);}['_getAnchorBounding'](_0x25e04e){const _0x56d8f4=_0x25e04e[0x0],_0x1fee6f=_0x56d8f4[0x0],_0x34d125=_0x56d8f4[0x2],{x:_0xa4f2ec,y:_0x9282d9}=_0x1fee6f,{x:_0xbbc1bb,y:_0x24ec8b}=_0x34d125;return{'left':_0xa4f2ec,'top':_0x9282d9,'width':_0xbbc1bb-_0xa4f2ec,'height':_0x24ec8b-_0x9282d9};}[_0x36889e(0x38f)](){const _0x47280b=_0x36889e,{scaleX:_0x341fb4,scaleY:_0x2220a1}=this[_0x47280b(0x24d)][_0x47280b(0x388)]();return Math[_0x47280b(0x3c1)](_0x341fb4,_0x2220a1);}}var zi=Object[_0x36889e(0x39d)],Ji=(_0x3a78cd,_0x1dacbc,_0x36c36e,_0x5cf824)=>{const _0x445621=_0x36889e;for(var _0x221c1d=_0x5cf824>0x1?void 0x0:_0x5cf824?zi(_0x1dacbc,_0x36c36e):_0x1dacbc,_0xddd8a8=_0x3a78cd[_0x445621(0x203)]-0x1,_0x272c62;_0xddd8a8>=0x0;_0xddd8a8--)(_0x272c62=_0x3a78cd[_0xddd8a8])&&(_0x221c1d=_0x272c62(_0x221c1d)||_0x221c1d);return _0x221c1d;},ie=(_0xb0bbe5,_0x22c449)=>(_0x48f4a1,_0x4027fd)=>_0x22c449(_0x48f4a1,_0x4027fd,_0xb0bbe5);let ye=class extends _0x90cdab{constructor(_0x4b8ea4,_0x45e57b,_0x59a02a,_0x380914,_0x21f012){const _0x3d9f4c=_0x36889e;super(),l(this,_0x3d9f4c(0x21a),[]),l(this,_0x3d9f4c(0x349),[]),(this[_0x3d9f4c(0x32d)]=_0x4b8ea4,this[_0x3d9f4c(0x1c9)]=_0x45e57b,this[_0x3d9f4c(0x3ab)]=_0x59a02a,this[_0x3d9f4c(0x227)]=_0x380914,this[_0x3d9f4c(0x3e2)]=_0x21f012,this[_0x3d9f4c(0x1d4)]());}[_0x36889e(0x1d4)](){const _0x2ebadd=_0x36889e,_0x1d23a4=this[_0x2ebadd(0x32d)][_0x2ebadd(0x360)],_0x333d7f=this['_docSkeletonManagerService'];this[_0x2ebadd(0x20c)](_0x6612f1([this[_0x2ebadd(0x3ab)][_0x2ebadd(0x36f)](_0x1d23a4),this[_0x2ebadd(0x3e2)][_0x2ebadd(0x368)]])[_0x2ebadd(0x1dd)](_0x489674(([_0x439c30,_0xf95fd])=>({'skeleton':_0x333d7f[_0x2ebadd(0x3a5)](),'cursors':[..._0x439c30[_0x2ebadd(0x364)]()][_0x2ebadd(0x22b)](_0x11bf14=>({..._0x11bf14,'color':this[_0x2ebadd(0x3e2)][_0x2ebadd(0x220)](_0x11bf14[_0x2ebadd(0x2a8)])}))})))[_0x2ebadd(0x3d8)](_0xe31b72=>{const _0x3da0f9=_0x2ebadd;if(this[_0x3da0f9(0x3e5)](),_0xe31b72){const {skeleton:_0x525e10,cursors:_0x813d7}=_0xe31b72;this[_0x3da0f9(0x332)](_0x525e10,_0x813d7);}})),this[_0x2ebadd(0x36c)](),this[_0x2ebadd(0x287)]();}['_updateCollabCursors'](_0xc50768,_0x21cabd){const _0x478c2b=_0x36889e,{scene:_0x5d18bf,mainComponent:_0x3486a6}=this[_0x478c2b(0x32d)],_0x52366c=_0x21cabd[_0x478c2b(0x35b)](_0x40265b=>new nt(_0x40265b,_0x5d18bf,_0xc50768,_0x3486a6));this['_cursorShapes']=_0x52366c,this['_cursors']=_0x21cabd;}[_0x36889e(0x1ca)](){const _0x3c0597=_0x36889e;this['_removeCollabCursors']();const {scene:_0x504980,mainComponent:_0x8c18e7}=this[_0x3c0597(0x32d)],_0x21222e=this[_0x3c0597(0x1c9)]['getSkeleton'](),_0x321373=this[_0x3c0597(0x349)][_0x3c0597(0x35b)](_0x3854de=>new nt(_0x3854de,_0x504980,_0x21222e,_0x8c18e7));this[_0x3c0597(0x21a)]=_0x321373;}[_0x36889e(0x3e5)](){const _0x358036=_0x36889e;this[_0x358036(0x21a)][_0x358036(0x385)](_0x12d95a=>_0x12d95a[_0x358036(0x346)]()),this[_0x358036(0x21a)]=[];}['_initCommandExecutedListener'](){const _0x40405b=_0x36889e,_0x191d5d=[_0x1339b0['id']];this[_0x40405b(0x20c)](this[_0x40405b(0x227)][_0x40405b(0x1ff)](_0x5b9d7f=>{const _0x2e97ed=_0x40405b;_0x191d5d['includes'](_0x5b9d7f['id'])&&_0x5b9d7f['params'][_0x2e97ed(0x360)]===this[_0x2e97ed(0x32d)][_0x2e97ed(0x360)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x826b32=_0x36889e;this[_0x826b32(0x20c)](_0x451a33(this[_0x826b32(0x32d)][_0x826b32(0x33c)][_0x826b32(0x1dc)])[_0x826b32(0x1dd)](_0x18d9de(_0xddb617=>_0xddb617[_0x826b32(0x212)]===_0x59f112['resize']),_0x55544b(0x10))[_0x826b32(0x3d8)](()=>{const _0x2cc036=_0x826b32;this[_0x2cc036(0x1ca)]();}));}};ye=Ji([ie(0x1,_0x43af65(_0x13e635)),ie(0x2,_0x43af65(H)),ie(0x3,_0x19be55),ie(0x4,_0x43af65(_0x291287))],ye);const Zi=0x1,Qi=1.5;class qi extends _0x312cc4{constructor(_0x8287a4,_0x31290c){const _0x3c5f0f=_0x36889e;super(_0x8287a4,_0x31290c),l(this,_0x3c5f0f(0x37b)),l(this,_0x3c5f0f(0x221),!0x1),l(this,'_range'),l(this,_0x3c5f0f(0x288),''),l(this,_0x3c5f0f(0x337),_0x3c5f0f(0x223)),l(this,'_backgroundColor'),(_0x31290c&&this[_0x3c5f0f(0x2f5)](_0x31290c),this['onPointerEnter$'][_0x3c5f0f(0x323)](()=>this[_0x3c5f0f(0x2f5)]({'hovered':!0x0})),this[_0x3c5f0f(0x320)][_0x3c5f0f(0x323)](()=>this[_0x3c5f0f(0x2f5)]({'hovered':!0x1})));}['setShapeProps'](_0x24ec2a){const _0x58f783=_0x36889e;var _0x109ff7,_0x2ccf86,_0x45715e,_0xb6c330,_0x23f1a7,_0x284d97;this['_color']=(_0x109ff7=_0x24ec2a[_0x58f783(0x2a8)])!=null?_0x109ff7:this[_0x58f783(0x37b)],this[_0x58f783(0x221)]=(_0x2ccf86=_0x24ec2a[_0x58f783(0x35d)])!=null?_0x2ccf86:this['_hovered'],this[_0x58f783(0x2fd)]=(_0x45715e=_0x24ec2a['range'])!=null?_0x45715e:this[_0x58f783(0x2fd)],this[_0x58f783(0x288)]=(_0xb6c330=_0x24ec2a[_0x58f783(0x25d)])!=null?_0xb6c330:this[_0x58f783(0x288)],this[_0x58f783(0x337)]=(_0x23f1a7=_0x24ec2a['labelPosition'])!=null?_0x23f1a7:this[_0x58f783(0x337)],this[_0x58f783(0x371)]=(_0x284d97=_0x24ec2a[_0x58f783(0x31a)])!=null?_0x284d97:this['_backgroundColor'],this[_0x58f783(0x396)]({'width':_0x24ec2a[_0x58f783(0x251)],'height':_0x24ec2a['height']});}['onMouseMove'](_0x4b3227){const _0x38ac87=_0x36889e,{row:_0x196c49,column:_0x54d738}=_0x4b3227;if(_0x196c49>=this[_0x38ac87(0x2fd)]['startRow']&&_0x196c49<=this[_0x38ac87(0x2fd)][_0x38ac87(0x263)]&&_0x54d738>=this[_0x38ac87(0x2fd)][_0x38ac87(0x246)]&&_0x54d738<=this[_0x38ac87(0x2fd)][_0x38ac87(0x3c7)]){this[_0x38ac87(0x2f5)]({'hovered':!0x0});return;}this[_0x38ac87(0x2f5)]({'hovered':!0x1});}['triggerDblclick'](_0xd54d7e){return!0x1;}[_0x36889e(0x2ac)](_0x21ab65){const _0x260e20=_0x36889e;_0x2af27a[_0x260e20(0x369)](_0x21ab65,{'width':this['width'],'height':this['height'],'strokeWidth':Qi,'stroke':this[_0x260e20(0x37b)],'evented':!0x1,'fill':this[_0x260e20(0x371)]}),this[_0x260e20(0x221)]&&(_0x21ab65[_0x260e20(0x1db)](),_0x21ab65[_0x260e20(0x342)](0x1,0x0,0x0,0x1,this[_0x260e20(0x251)],this['_labelPosition']===_0x260e20(0x1df)?0x0:-Q),me[_0x260e20(0x369)](_0x21ab65,{'text':this[_0x260e20(0x288)],'color':this[_0x260e20(0x37b)]}),_0x21ab65[_0x260e20(0x27c)]());}}var en=Object[_0x36889e(0x39d)],tn=(_0x11dede,_0x31bbeb,_0x1b8cf0,_0x1852ee)=>{const _0x112509=_0x36889e;for(var _0x442481=_0x1852ee>0x1?void 0x0:_0x1852ee?en(_0x31bbeb,_0x1b8cf0):_0x31bbeb,_0x502ff8=_0x11dede[_0x112509(0x203)]-0x1,_0x4e2e50;_0x502ff8>=0x0;_0x502ff8--)(_0x4e2e50=_0x11dede[_0x502ff8])&&(_0x442481=_0x4e2e50(_0x442481)||_0x442481);return _0x442481;},Ce=(_0x3bba31,_0x4e9bc7)=>(_0x5dc0aa,_0x477701)=>_0x4e9bc7(_0x5dc0aa,_0x477701,_0x3bba31);const sn=0x1389;let $e=class extends _0x90cdab{constructor(_0x27efae,_0x41479c,_0x453953,_0x2a6da9){const _0x46ff0e=_0x36889e;super(),l(this,_0x46ff0e(0x349),new Set()),l(this,_0x46ff0e(0x384),null),(this['_context']=_0x27efae,this[_0x46ff0e(0x389)]=_0x41479c,this['_collabCursorController']=_0x453953,this[_0x46ff0e(0x3e2)]=_0x2a6da9,this[_0x46ff0e(0x1d4)]());}[_0x36889e(0x1d4)](){const _0x47c699=_0x36889e;this[_0x47c699(0x389)][_0x47c699(0x1f2)][_0x47c699(0x1dd)](_0x3ac2d0(this['dispose$']),_0x28acc3(_0x7d156b=>{const _0x1f7e36=_0x47c699;if(_0x7d156b){const _0x373403=_0x7d156b[_0x1f7e36(0x34d)];return _0x6612f1(this['_collabCursorController'][_0x1f7e36(0x36f)](this[_0x1f7e36(0x32d)]['unitId']),this[_0x1f7e36(0x3e2)][_0x1f7e36(0x368)])[_0x1f7e36(0x1dd)](_0x489674(([_0x43638f,_0x3380ba])=>{const _0x59c06d=_0x1f7e36,_0x412e6c=new Map();return _0x43638f[_0x59c06d(0x385)]((_0x4decfe,_0x5a8ea4)=>{const _0x518992=_0x59c06d;if(_0x4decfe[_0x518992(0x387)]===_0x373403){const _0x3a5a8c={..._0x4decfe};_0x3a5a8c['color']=this[_0x518992(0x3e2)][_0x518992(0x220)](_0x4decfe[_0x518992(0x2a8)]),_0x412e6c[_0x518992(0x2e8)](_0x5a8ea4,_0x3a5a8c);}}),{'skeleton':_0x7d156b,'cursors':_0x412e6c};}));}return _0x15bfd3({'skeleton':null,'cursors':new Map()});}))[_0x47c699(0x3d8)](({skeleton:_0x3d38e4,cursors:_0x3039f7})=>{const _0x18d1d4=_0x47c699;this[_0x18d1d4(0x3e5)](),_0x3d38e4&&this[_0x18d1d4(0x332)](_0x3d38e4,_0x3039f7);}),this[_0x47c699(0x389)][_0x47c699(0x1f2)][_0x47c699(0x3d8)](_0x278020=>{const _0x1d7f3c=_0x47c699;if(_0x278020==null)return;const {skeleton:_0x41c43c}=_0x278020,{scene:_0x2668fb}=this[_0x1d7f3c(0x32d)];_0x2668fb[_0x1d7f3c(0x20a)][_0x1d7f3c(0x323)](_0x4871f3(_0x11e564=>{const _0x5b6455=_0x1d7f3c;var _0x293eea,_0x4f4208;const {offsetX:_0x5e7dee,offsetY:_0x3fb744}=_0x11e564,{x:_0x4d61ad,y:_0x45159e}=_0x2668fb[_0x5b6455(0x2fb)](_0x4421dc[_0x5b6455(0x392)]([_0x5e7dee,_0x3fb744])),{scaleX:_0x2399de,scaleY:_0xcf0264}=_0x2668fb[_0x5b6455(0x388)](),_0x4437dd=_0x2668fb[_0x5b6455(0x25b)](_0x181b74[_0x5b6455(0x244)]),_0x35b50d=_0x2668fb[_0x5b6455(0x3df)](_0x4421dc[_0x5b6455(0x392)]([_0x4d61ad,_0x45159e]),_0x4437dd),_0x212e39=_0x41c43c[_0x5b6455(0x362)](_0x5e7dee,_0x3fb744,_0x2399de,_0xcf0264,_0x35b50d);((_0x293eea=this[_0x5b6455(0x384)])==null?void 0x0:_0x293eea['column'])===_0x212e39[_0x5b6455(0x390)]&&((_0x4f4208=this[_0x5b6455(0x384)])==null?void 0x0:_0x4f4208[_0x5b6455(0x266)])===_0x212e39['row']||this[_0x5b6455(0x349)][_0x5b6455(0x385)](_0x237aaa=>{_0x237aaa['onMouseMove'](_0x212e39);});},0x64));});}[_0x36889e(0x332)](_0x3942b1,_0xfa9752){const _0x23bc79=_0x36889e;var _0x4c4833;const _0x220406=(_0x4c4833=this[_0x23bc79(0x389)][_0x23bc79(0x22d)]())==null?void 0x0:_0x4c4833['skeleton'];if(!_0x220406)return;const _0x116e6e=this['_getSheetObject']();if(!_0x116e6e)return;this['_cursors']['forEach'](_0x44fbe9=>{_0x44fbe9['makeDirty']();});const {scene:_0x25e8b3}=_0x116e6e,_0x2ad9d0=nn(Array[_0x23bc79(0x2da)](_0xfa9752[_0x23bc79(0x364)]()))[_0x23bc79(0x35b)](_0x245638=>{const _0x26bbac=_0x23bc79,{color:_0x1f37f8,range:_0x59ad55,name:_0x110cb8,selection:_0x145eaf,sheetID:_0x43bd66}=_0x245638,{startColumn:_0x464a3e,startRow:_0x53f4c9,endColumn:_0x35e3df,endRow:_0x4880e2}=_0x59ad55,_0x4cbe22=_0x51a5a2(_0x53f4c9,_0x464a3e,_0x25e8b3,_0x220406),_0x12acaf=_0x51a5a2(_0x4880e2,_0x35e3df,_0x25e8b3,_0x220406),{columnHeaderHeightAndMarginTop:_0x3161d2}=_0x220406,{startX:_0x352bd7,startY:_0x460158}=_0x4cbe22,{endX:_0x16a2ee,endY:_0x44be86}=_0x12acaf,_0x2f596c=_0x16a2ee-_0x352bd7,_0x3812e0=_0x44be86-_0x460158,_0x2c5071={'labelPosition':_0x460158-_0x3161d2>=Q?_0x26bbac(0x223):_0x26bbac(0x1df),'sheetID':_0x43bd66,'range':_0x59ad55,'color':_0x1f37f8,'name':_0x110cb8,'selection':_0x145eaf,'left':_0x352bd7,'top':_0x460158,'width':_0x2f596c,'height':_0x3812e0,'evented':!0x1,'zIndex':sn};return new qi(_0x110cb8,_0x2c5071);});_0x25e8b3[_0x23bc79(0x38e)](_0x2ad9d0,Zi),this['_cursors']=new Set(_0x2ad9d0);}[_0x36889e(0x3e5)](){const _0x22f6e9=_0x36889e;var _0x5a5ee2;(_0x5a5ee2=this[_0x22f6e9(0x349)])==null||_0x5a5ee2[_0x22f6e9(0x385)](_0x1a9a61=>_0x1a9a61[_0x22f6e9(0x346)]());}[_0x36889e(0x1f9)](){const _0x34780c=_0x36889e;return _0x4dda01(this[_0x34780c(0x32d)][_0x34780c(0x2ff)],this['_context']);}};$e=tn([Ce(0x1,_0x43af65(_0x8160e4)),Ce(0x2,_0x43af65(H)),Ce(0x3,_0x43af65(_0x291287))],$e);function nn(_0x723066){const _0x3ec954=new Map();return _0x723066['forEach'](_0x58d82b=>{const _0x338c9e=_0x4047;if(_0x3ec954[_0x338c9e(0x3bb)](_0x58d82b['selection'])){const _0x259434=_0x3ec954[_0x338c9e(0x2f9)](_0x58d82b[_0x338c9e(0x3ec)]);_0x259434['name']+=',\x20'+_0x58d82b[_0x338c9e(0x25d)];}else _0x3ec954[_0x338c9e(0x2e8)](_0x58d82b[_0x338c9e(0x3ec)],_0x58d82b);}),Array['from'](_0x3ec954['values']());}var rn=Object[_0x36889e(0x39d)],on=(_0x154559,_0x3bea7e,_0x357fd1,_0x2b350d)=>{const _0x392b46=_0x36889e;for(var _0x1125e2=_0x2b350d>0x1?void 0x0:_0x2b350d?rn(_0x3bea7e,_0x357fd1):_0x3bea7e,_0x36d714=_0x154559[_0x392b46(0x203)]-0x1,_0x221de5;_0x36d714>=0x0;_0x36d714--)(_0x221de5=_0x154559[_0x36d714])&&(_0x1125e2=_0x221de5(_0x1125e2)||_0x1125e2);return _0x1125e2;},F=(_0x1330e6,_0x11f4ba)=>(_0x5227be,_0x29e31b)=>_0x11f4ba(_0x5227be,_0x29e31b,_0x1330e6);let ce=class extends _0x2d4248{constructor(_0x158838,_0x327f40,_0x25aab0,_0x488a26,_0x2ace2e,_0x42de44){const _0x3fa05c=_0x36889e;super(),this[_0x3fa05c(0x2ec)]=_0x158838,this['_localCacheService']=_0x327f40,this['_collaborationUIEventService']=_0x25aab0,this['_messageService']=_0x488a26,this[_0x3fa05c(0x37e)]=_0x2ace2e,this[_0x3fa05c(0x1f1)]=_0x42de44,this['_setupBeforeClosingHandler'](),this[_0x3fa05c(0x314)]();}[_0x36889e(0x377)](){const _0x412bcf=_0x36889e;this[_0x412bcf(0x20c)](this[_0x412bcf(0x2ec)][_0x412bcf(0x322)](()=>{const _0x3e1820=_0x412bcf;if(this[_0x3e1820(0x273)]['saveTaskMap'][_0x3e1820(0x213)])return this[_0x3e1820(0x1f1)]['t'](_0x3e1820(0x35c));}));}[_0x36889e(0x314)](){const _0x237f61=_0x36889e;this[_0x237f61(0x20c)](this[_0x237f61(0x3b8)][_0x237f61(0x380)]['subscribe'](_0x444579=>{const _0x5adc29=_0x237f61;_0x444579['id']===_0x557d91[_0x5adc29(0x22f)]&&this[_0x5adc29(0x2ad)][_0x5adc29(0x1cb)]({'type':_0x3551[_0x5adc29(0x347)],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x444579['id']===_0x557d91[_0x5adc29(0x290)]&&this['_messageService'][_0x5adc29(0x1cb)]({'type':_0x3551[_0x5adc29(0x347)],'content':this[_0x5adc29(0x1f1)]['t'](_0x5adc29(0x2a9))}),_0x444579['id']===_0x557d91['PERMISSION_DENIED']&&this[_0x5adc29(0x37e)][_0x5adc29(0x1cb)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x5adc29(0x1f1)]['t'](_0x5adc29(0x254)),'type':_0x5adc29(0x206),'duration':0x0}),_0x444579['id']===_0x557d91[_0x5adc29(0x357)]&&this[_0x5adc29(0x2ad)]['show']({'type':_0x3551[_0x5adc29(0x2fc)],'content':this[_0x5adc29(0x1f1)]['t']('collaboration.closeRoom')+'('+_0x444579['data']+')'}),_0x444579['id']===_0x557d91[_0x5adc29(0x22c)]&&this['_messageService']['show']({'type':_0x3551[_0x5adc29(0x347)],'content':this[_0x5adc29(0x1f1)]['t'](_0x444579[_0x5adc29(0x232)]||'')}),_0x444579['id']===_0x557d91[_0x5adc29(0x236)]&&this[_0x5adc29(0x2ad)][_0x5adc29(0x1cb)]({'type':_0x3551[_0x5adc29(0x347)],'content':this[_0x5adc29(0x1f1)]['t']('session.will-retry')}),_0x444579['id']===_0x557d91['SOCKET_FAILED']&&this[_0x5adc29(0x2ad)][_0x5adc29(0x1cb)]({'type':_0x3551[_0x5adc29(0x2fc)],'content':this['_localeService']['t'](_0x5adc29(0x1e2))}),_0x444579['id']===_0x557d91[_0x5adc29(0x2e5)]&&this['_messageService'][_0x5adc29(0x1cb)]({'type':_0x3551['Error'],'content':this[_0x5adc29(0x1f1)]['t']('session.collaboration-timeout')});}));}};ce=on([F(0x0,_0x4772b6),F(0x1,_0x23d181),F(0x2,_0x43af65(_0x31cf35)),F(0x3,_0x35a021),F(0x4,_0x157dfb),F(0x5,_0x43af65(_0x34b1c0))],ce);const an=_0x36889e(0x307),rt={};var cn=Object['getOwnPropertyDescriptor'],_n=(_0x4aba1e,_0x43b48a,_0x45df80,_0x54a3a1)=>{const _0x57d974=_0x36889e;for(var _0x1c36ac=_0x54a3a1>0x1?void 0x0:_0x54a3a1?cn(_0x43b48a,_0x45df80):_0x43b48a,_0x1492c3=_0x4aba1e[_0x57d974(0x203)]-0x1,_0x4edb94;_0x1492c3>=0x0;_0x1492c3--)(_0x4edb94=_0x4aba1e[_0x1492c3])&&(_0x1c36ac=_0x4edb94(_0x1c36ac)||_0x1c36ac);return _0x1c36ac;},ot=(_0x45c093,_0x155819)=>(_0x19f44c,_0x459f67)=>_0x155819(_0x19f44c,_0x459f67,_0x45c093);function _0x4b6c(){const _0x20f873=['subscribeEvent','Loading','_dataLoaderService','getMember','_entities','replace','sessionStatus$','rgba(255,\x20255,\x20255,\x200.01)','createInstance','_docSkeleton','_context','USER_IS_ANONYMOUS','_currentUsage','getMemberID','split','_updateCollabCursors','getUnitId','unsubscribe','maxFormulaLimit','searchParams','_labelPosition','limitInfo','_removeClearOtherTimer','427skKUYk','65UjsQmX','engine','asObservable','addHandlerCallback','UNAUTHENTICATED','_taskIds','setAlpha','transform','fillRule','stage','next','dispose','Warning','fillText','_cursors','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_renderManagerService','href','sheetId','START_CALCULATION','now','formula.calculation.waiting','_id','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','/universer-api/license/formula/limit/start','red.300','_hideTimer','origin','CONFLICT','createSocket','purple.300','disposeUnit','map','collaboration-client.offline-data-not-saved','hovered','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','none','unitId','ONLINE','getCellPositionByOffset','CONNECTOR_DATA_TOO_LARGE','values','_getAnchorBounding','undoState','_saveCache','currentTheme$','drawWith','YUUMI_RATE_OVER_LIMIT','push','_initResize','_docTransformStateCacheService','defineProperty','getCollabCursors$','totalFormulasToCalculate','_backgroundColor','_anchorDot','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','USER_NOT_INVITED_CODE','M0\x200H16V16H0z','getOffsetConfig','_setupBeforeClosingHandler','unload','ENTITLE_DUP_SUBSCRIPTION','parse','_color','exhaustSavingTask','search','_notificationService','[CollaborationDataLoaderController]','event$','CURRENT_STATUS_CANNOT_OPERATE','_docTransformSelectionsService','_transformPreviousActiveRange','_lastPointer','forEach','_disabled','sheetID','getAncestorScale','_sheetSkeletonManagerService','collabStatus.fetchMiss','NOT_FOUND','getSheetBySheetId','status$','addObjects','_getScale','column','_updateURLWithCurrentState','FromArray','INVITE_CODE_HAS_BEEN_UES','_updateLocalCursor','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','transformByState','APPLY_REVISION_CONFILICT','urlChange$','_applyCommand','REDEMPTION_CODE_NOT_STARTED','_session','406059dseOdo','getOwnPropertyDescriptor','_unitStatus','whenReady','univer-mr-2\x20univer-flex\x20univer-text-xl','toString','setActiveRange','isArray','/universer-api/license/formula/limit/status','getSkeleton','find','OnLineIcon','MUTATION','REDEMPTION_CODE_HAS_BEEN_CREATED','isEditing','_collabCursorController','font','attrs','collabStatus.conflict','_uiPartsService','MOBILE_VERIFY_CODE_MISMATCH','location','_memberService','_initDependencies','ERROR_AGAIN','subunit','requireSession','_initStatusComponent','_collaborationUIEventService','text','1em','has','entries','hide','textRanges','_scheduleHeartbeat','univerjs-icon\x20univerjs-icon-','max','collab-text-anchor-','_collabCursorState$','transformMutationsWithChangeset','dispose$','_pollingInterval','endColumn','YUUMI_UNABLE_LOAD_URL','redoState','_eventUnsubscribe','doc.mutation.rich-text-editing','getFocusedUnit','getRenderById','getParam','INVALID_INVITE_CODE','_doCreateSocket','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_handleLeaveEvent','_toggleOnline','popstate','transformRemoteChangeset','registerRefRange','PY_RUNTIME_SCRIPT_ERROR','subscribe','/run/','_urlService','_entityInit$','startRow','_onRefRangeChange','_showGuardMessage','getVpScrollXYInfoByPosToVp','Success','transformIMECache','_themeService','_setFormulaLimitStatus','_drawAnchor','_removeCollabCursors','history','_cursor','string','_initStatusListener','releaseFormulaLimitUrl','setItem','selection','symbol','getStateCache','_selfUnitIDs','ENTITLE_NEED_BILLING_ADDRESS','MOBILE_HAS_BEEN_BOUND','APPLY_DUPLICATED','_transformService','ranges','8lZJHOx','tag','_getFormulaLimitStatus','SUCCESS','getTypeOfUnitAdded$','with','imageSourceType','_docSkeletonManagerService','_refreshCollabCursors','show','deepClone','getItem','addObject','saveImage','CHANGESET_REVISION_CONFILICT','_docStateChangeManagerService','white','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_init','APPLY_REJECT','_scheduleSaving','getformulaLimitStatusUrl','defs','_createSocketURL','getCellMatrix','save','onTransformChange$','pipe','INVALID_ARGUMENT','bottom','replaceDocRanges','docStateChange$','session.connection-failed','TOO_MANY_REQUESTS','?taskId=','_logService','AWAITING_WITH_PENDING','_univerInstanceService','_colorAssignService','_registerDependencies','INVITE_CODE_REQUIRED','_online','arc','YUUMI_URL_COL_OUT_OF_RANGE','OTHER_CLIENTS_EDITING','collabCursorState$','ACTIVE_UNIT_EVENT_CHANNEL','_localeService','currentSkeleton$','init','min','then','cursorInfo$','functionsExecutedState','_collabSessionService','_getSheetObject','roomMembers','YUUMI_AI_RUN_FAILED','_injector','collab-rect-range-','all','onCommandExecuted','YUUMI_ASYNCIO_CANCELLED','UNDEFINED','LICENSE_MAX_UNITS_EXCEEDED','length','YUUMI_SUBSCRIPTION_NOT_FOUND','InsertRowCommandId','error','_localStorageService','_maxFormulaLimit','post','onPointerMove$','newValue','disposeWithMe','assignAColorForMemberID','_heartbeatTimer','_unitOnClients','getCurrentRevOfUnit','fill','type','size','transformStateCache','getUnhiddenWorksheets','_config','getCurrentUnitForType','USER_NOT_FOUND','_getSaveTimeout','_cursorShapes','_anchor','_releaseCalculationLimit','on-line-icon_clip0_910_349','_docClipboardService','InsertColCommandId','getColorFromTheme','_hovered','children','top','url(#on-line-icon_clip0_910_349)','idSuffix','evenodd','_commandService','UniverIcon','collabStatus.synced','activeSheet$','flatMap','JOIN_ROOM_FAILED','getCurrent','_handleJoinEvent','OTHER_CLIENT_EDITING','add','xlink:href','data','RECT','saveTaskMap','findNodePositionByCharIndex','SOCKET_FAILED_RETRY','getConfig','svg','YUUMI_CONNECTOR_URL_NOT_FOUND','ENTITLE_REPORT_LIMIT_EXCEED','currentColor','WECHAT_HAS_BEEN_BOUND','YUUMI_NO_CUBOID_FOR_QUESTION','runId','black','LOGIN_FAILED','_getMergeRange','_assignedColors','0\x200\x2017\x2016','VIEW_MAIN','setParam','startColumn','getCurrentSelections','m1Prime','1995820QZYFgg','EMAIL_VERIFY_CODE_MISMATCH','_httpService','_textBubble','_scene','UPDATE_CURSOR','EMAIL_HAS_BEEN_BOUND','LICENSE_DISTRO_REJECTED','width','getActiveSheet','isActive','permission.content','_updateSubUnitFromURLParams','addEventListener','_imageIoService','...','USERS_LEAVE','_cachedData','getViewport','cursorInfo','name','_saveTaskMap','_docSyncEditingCollabCursorService','getUnit','1764653LiEFzN','replaceState','endRow','disableLocalCache','REDEMPTION_USER_NOT_ELIGIBLE','row','assign','284226UBnAAv','674PdsfKY','_onCursorDelete','setTimeout','LICENSE_EXPORT_SIZE_EXCEEDED','reconnect','onLocalMutation','_cursorInfo$','InsertRangeMoveRightCommandId','m2Prime','blue.400','_localCacheService','_configService','mask','HEADER_MENU','_drawRectRange','_hover','current','startsWith','_roomMembers$','restore','_handleEvent','MoveRangeCommandId','code','_docTransformIMECacheService','transformSelections','jiqing.500','clearTimeout','SNAPSHOT_HAS_BEEN_REMOVED','http://www.w3.org/2000/svg','5205789uFJXzJ','_initCommandExecutedListener','_name','UNIVER_DOC','_collaborationController','storage','_clearPolling','_drawTextRange','onPointerEnter$','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','CLOSE_ROOM','_setupSubUnitSync','use','getValue','pushState','roomMembers$','_render','syncEditingCollabCursor','fillStyle','YUUMI_TABLE_NOT_FOUND_IN_UNIT','enableLocalCache','loadOfflineData','setConfig','NOT_COLLAB','_send','getDocRanges','ALREADY_EXISTS','InsertRangeMoveDownCommandId','TEXT','some','_refRangeService','saveOfflineData','registerComponent','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','color','collaboration.closeRoom','stringify','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_draw','_messageService','SNAPSHOT_INVALID_SNAPSHOT','LOGIN_TOKEN_PROCESSING_FAILED','SYNCED','colorChannel1','_colorIndex','round','parseInt','_transformUndoRedoStack','stageInfo','Failed','shift','DeleteRangeMoveUpCommandId','unitID','APPLY_NON_SEQUENTIAL_REVISION','entityInit$','PERMISSION_DENIED','div','OFFLINE','startFormulaLimitUrl','invokeId','eventID','delete','closePath','params','selections','UNIVER_SHEET','complete','_initCommandInterceptor','dirtyRanges','getUndoRedoMutationParamsCache','lineTo','range','_startCalculationLimit','DeleteRangeMoveLeftCommandId','getCollabEntity$','body','16tTVgav','_startDocCollabCursor','COMPLETION_FINISHED','_initEntityListener','override','application/json','REDEMPTION_INVALID_CODE','collabStatus.notCollab','from','clipPath','getRangePointData','measureText','_shapes','toRgbString','FETCH_MISS','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_onCursorUpdate','univer-flex\x20univer-items-center','PAYMENT_CHANNEL_NOT_SUPPORT','SUBMIT_CHANGESET_TIMEOUT','send','_startSheetCollabCursor','set','transformMutation','LICENSE_IMPORT_SIZE_EXCEEDED','translate(.97)','_beforeCloseService','NO_OTHER_CLIENTS_EDITING','_getSessionTicket','_ensureSubject','_handleHover','unshift','167xaXTEH','path','getMergeData','setShapeProps','_revisionService','actions','addClipboardHook','get','REDEMPTION_CODE_FULLY_REDEEMED','getRelativeToViewportCoord','Error','_range','INVITE_CODE_ALREADY_BOUND','unit','APPLY_PERMISSION_DENIED','contains','mutations','_toggleOffline','RemoveRowCommandId','_scheduleClearOtherTimer','#FFF','collaboration-client-ui.config','_hasFormulaInDirtyRanges','subUnitId','_lastResponseTimestamp','YUUMI_ALL_TABLES_IS_INVALID','updateOfflineData','ENTITLE_CHAT_LIMIT_EXCEED','currentUsage','_clearOtherTimers','editingUnit','setStateCache','focused$','getSheetId','_initEvent','setUndoRedoMutationParamsCache','_syncEditingCollabCursorService','_handleHeartbeatEvent','getUniverSheetInstance','_checkCalculationAvailable','backgroundColor','REDEMPTION_CODE_INACTIVE','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_transformHistoryAndStateStack','_status$','off-line-icon','onPointerLeave$','uni.network.url-service','registerBeforeClose'];_0x4b6c=function(){return _0x20f873;};return _0x4b6c();}let _e=class{constructor(_0x292d5f,_0xa0483f){const _0x12dc4b=_0x36889e;this['_transformService']=_0x292d5f,this[_0x12dc4b(0x34b)]=_0xa0483f;}[_0x36889e(0x3e1)](_0xf94a03){const _0x3c1722=_0x36889e;this[_0x3c1722(0x2b5)](_0xf94a03),this[_0x3c1722(0x383)](_0xf94a03);}[_0x36889e(0x3d5)](_0x321edf){const _0x513025=_0x36889e,{unitID:_0x2e9cc8}=_0x321edf,_0x585f92=this[_0x513025(0x34b)]['getRenderById'](_0x2e9cc8)[_0x513025(0x1c7)](_0x21d165),{redoCache:_0x2967d4}=_0x585f92[_0x513025(0x2cb)]();if(_0x2967d4[_0x513025(0x203)]===0x0)return _0x321edf;let _0x41fd6b=_0x452ace[_0x513025(0x1cc)](_0x321edf['mutations'][0x0]);for(let _0x5b4f4c=0x0;_0x5b4f4c<_0x2967d4['length'];_0x5b4f4c++){const _0x1151b9={'id':'doc.mutation.rich-text-editing','params':{..._0x2967d4[_0x5b4f4c]}},_0x4b2173=this[_0x513025(0x1c0)][_0x513025(0x2e9)](_0x41fd6b,_0x1151b9,!0x1);if(_0x3bbf6b(_0x4b2173))throw _0x4b2173[_0x513025(0x206)];_0x41fd6b=_0x4b2173['m1Prime'];}return{..._0x452ace[_0x513025(0x1cc)](_0x321edf),'mutations':[_0x41fd6b]};}[_0x36889e(0x2b5)](_0x32c69b){const _0x33d34d=_0x36889e,{unitID:_0x1b5461}=_0x32c69b,_0x1e1fa6=this[_0x33d34d(0x34b)][_0x33d34d(0x3cd)](_0x1b5461)[_0x33d34d(0x1c7)](_0x21d165),{undoCache:_0x2fe785,redoCache:_0x3994ea}=_0x1e1fa6['getUndoRedoMutationParamsCache']();if(_0x2fe785[_0x33d34d(0x203)]===0x0||_0x3994ea['length']===0x0)return;const _0x46aa48=[],_0x10d17a=[];let _0x45b238=_0x452ace[_0x33d34d(0x1cc)](_0x32c69b[_0x33d34d(0x302)][0x0]),_0x34b74e=_0x452ace[_0x33d34d(0x1cc)](_0x32c69b['mutations'][0x0]);for(let _0x13a0b1=_0x2fe785['length']-0x1;_0x13a0b1>=0x0;_0x13a0b1--){const _0x2f3aa4={'id':_0x33d34d(0x3cb),'params':{..._0x2fe785[_0x13a0b1]}},_0x16ff1f={'id':'doc.mutation.rich-text-editing','params':{..._0x3994ea[_0x13a0b1]}},_0x663b0a=this[_0x33d34d(0x1c0)][_0x33d34d(0x2e9)](_0x45b238,_0x2f3aa4,!0x1),_0x3d78d2=this[_0x33d34d(0x1c0)][_0x33d34d(0x2e9)](_0x34b74e,_0x16ff1f,!0x1);if(_0x3bbf6b(_0x663b0a))throw _0x663b0a['error'];if(_0x3bbf6b(_0x3d78d2))throw _0x3d78d2['error'];_0x46aa48[_0x33d34d(0x2f1)](_0x663b0a[_0x33d34d(0x271)][_0x33d34d(0x2c5)]),_0x10d17a['unshift'](_0x3d78d2[_0x33d34d(0x271)][_0x33d34d(0x2c5)]),_0x45b238=_0x663b0a[_0x33d34d(0x248)],_0x34b74e=_0x3d78d2[_0x33d34d(0x248)];}_0x1e1fa6[_0x33d34d(0x315)]({'undoCache':_0x46aa48,'redoCache':_0x10d17a});}['_transformPreviousActiveRange'](_0xb23594){const _0x37d29c=_0x36889e,{unitID:_0x419e3a}=_0xb23594,_0x48f35b=this[_0x37d29c(0x34b)][_0x37d29c(0x3cd)](_0x419e3a)[_0x37d29c(0x1c7)](_0x21d165),_0x14464a=_0x48f35b['getActiveRange']();if(_0x14464a==null)return;const _0x7311f4=[{'id':_0x37d29c(0x3cb),'params':{'unitId':_0xb23594['unitID'],'actions':null,'textRanges':[_0x14464a]}}],_0x4beef5=this[_0x37d29c(0x1c0)]['transformMutationsWithChangeset'](_0xb23594,_0x7311f4);if(!_0x555015(_0x4beef5))throw _0x4beef5[_0x37d29c(0x206)];const _0x100df7=_0x4beef5[_0x37d29c(0x271)][0x0]['params'][_0x37d29c(0x3be)];Array[_0x37d29c(0x3a3)](_0x100df7)&&_0x100df7[_0x37d29c(0x203)]&&_0x48f35b[_0x37d29c(0x3a2)](_0x100df7[0x0]);}};_e=_n([ot(0x0,_0x477b88),ot(0x1,_0x1461c3)],_e);var ln=Object[_0x36889e(0x39d)],hn=(_0x66711a,_0x13490e,_0x39afa7,_0x4b0937)=>{const _0x2d221d=_0x36889e;for(var _0x2546a9=_0x4b0937>0x1?void 0x0:_0x4b0937?ln(_0x13490e,_0x39afa7):_0x13490e,_0x349c72=_0x66711a[_0x2d221d(0x203)]-0x1,_0x199696;_0x349c72>=0x0;_0x349c72--)(_0x199696=_0x66711a[_0x349c72])&&(_0x2546a9=_0x199696(_0x2546a9)||_0x2546a9);return _0x2546a9;},Re=(_0x2ced89,_0x228ced)=>(_0x3ccd93,_0x2ad92e)=>_0x228ced(_0x3ccd93,_0x2ad92e,_0x2ced89);let le=class{constructor(_0x1422fe,_0x5625ec,_0x1de96e){const _0x2d4c23=_0x36889e;this[_0x2d4c23(0x1fc)]=_0x1422fe,this['_transformService']=_0x5625ec,this['_docStateChangeManagerService']=_0x1de96e;}[_0x36889e(0x214)](_0x24107b){const _0x26c46e=_0x36889e;this[_0x26c46e(0x31d)](_0x24107b);}[_0x36889e(0x3d5)](_0x34f0f7){const _0x56cc91=_0x36889e,{unitID:_0x62ae2d}=_0x34f0f7,{collaboration:_0x2d63bb}=this['_docStateChangeManagerService'][_0x56cc91(0x1bb)](_0x62ae2d);if(_0x2d63bb[_0x56cc91(0x203)]===0x0)return _0x34f0f7;let _0x10b329=_0x452ace['deepClone'](_0x34f0f7[_0x56cc91(0x302)][0x0]);for(let _0x8afb30=0x0;_0x8afb30<_0x2d63bb['length'];_0x8afb30++){const _0x142438={'id':_0x56cc91(0x3cb),'params':{'unitId':_0x2d63bb[_0x8afb30][_0x56cc91(0x360)],..._0x2d63bb[_0x8afb30][_0x56cc91(0x3c9)]}},_0x9c1cd1=this[_0x56cc91(0x1c0)][_0x56cc91(0x2e9)](_0x10b329,_0x142438,!0x1);if(_0x3bbf6b(_0x9c1cd1))throw _0x9c1cd1[_0x56cc91(0x206)];_0x10b329=_0x9c1cd1[_0x56cc91(0x248)];}return{..._0x452ace[_0x56cc91(0x1cc)](_0x34f0f7),'mutations':[_0x10b329]};}[_0x36889e(0x31d)](_0x3d0008){const _0x5ac833=_0x36889e,{unitID:_0x35ea45}=_0x3d0008,{history:_0xbca0e8,collaboration:_0x33f03e}=this[_0x5ac833(0x1d1)]['getStateCache'](_0x35ea45);if(_0xbca0e8['length']===0x0&&_0x33f03e[_0x5ac833(0x203)]===0x0)return;const _0x5e3ed1=[],_0x1f1e8b=[];let _0xf2b96e=_0x452ace[_0x5ac833(0x1cc)](_0x3d0008['mutations'][0x0]),_0x453bdb=_0x452ace['deepClone'](_0x3d0008[_0x5ac833(0x302)][0x0]);for(let _0x491067=_0xbca0e8['length']-0x1;_0x491067>=0x0;_0x491067--){const _0x30f5d9={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xbca0e8[_0x491067][_0x5ac833(0x360)],..._0xbca0e8[_0x491067]['undoState']}},_0x390fa0={'id':_0x5ac833(0x3cb),'params':{'unitId':_0xbca0e8[_0x491067][_0x5ac833(0x360)],..._0xbca0e8[_0x491067][_0x5ac833(0x3c9)]}},_0x289aec=this[_0x5ac833(0x1c0)][_0x5ac833(0x2e9)](_0xf2b96e,_0x30f5d9,!0x1),_0x21be27=this[_0x5ac833(0x1c0)][_0x5ac833(0x2e9)](_0x453bdb,_0x390fa0,!0x1);if(_0x3bbf6b(_0x289aec))throw _0x289aec[_0x5ac833(0x206)];if(_0x3bbf6b(_0x21be27))throw _0x21be27[_0x5ac833(0x206)];_0x5e3ed1[_0x5ac833(0x2f1)]({..._0xbca0e8[_0x491067],'undoState':_0x289aec['m2Prime'][_0x5ac833(0x2c5)],'redoState':_0x21be27[_0x5ac833(0x271)]['params']}),_0xf2b96e=_0x289aec['m1Prime'],_0x453bdb=_0x21be27['m1Prime'];}_0xf2b96e=_0x452ace[_0x5ac833(0x1cc)](_0x3d0008['mutations'][0x0]),_0x453bdb=_0x452ace[_0x5ac833(0x1cc)](_0x3d0008['mutations'][0x0]);for(let _0x306ec2=_0x33f03e[_0x5ac833(0x203)]-0x1;_0x306ec2>=0x0;_0x306ec2--){const _0x4307b0={'id':_0x5ac833(0x3cb),'params':{'unitId':_0x33f03e[_0x306ec2][_0x5ac833(0x360)],..._0x33f03e[_0x306ec2][_0x5ac833(0x366)]}},_0x291a30={'id':_0x5ac833(0x3cb),'params':{'unitId':_0x33f03e[_0x306ec2]['unitId'],..._0x33f03e[_0x306ec2][_0x5ac833(0x3c9)]}},_0x23cce5=this[_0x5ac833(0x1c0)][_0x5ac833(0x2e9)](_0xf2b96e,_0x4307b0,!0x1),_0x55790f=this[_0x5ac833(0x1c0)]['transformMutation'](_0x453bdb,_0x291a30,!0x1);if(_0x3bbf6b(_0x23cce5))throw _0x23cce5[_0x5ac833(0x206)];if(_0x3bbf6b(_0x55790f))throw _0x55790f[_0x5ac833(0x206)];_0x1f1e8b[_0x5ac833(0x2f1)]({..._0x33f03e[_0x306ec2],'undoState':_0x23cce5[_0x5ac833(0x271)][_0x5ac833(0x2c5)],'redoState':_0x55790f[_0x5ac833(0x271)][_0x5ac833(0x2c5)]}),_0xf2b96e=_0x23cce5[_0x5ac833(0x248)],_0x453bdb=_0x55790f['m1Prime'];}this[_0x5ac833(0x1d1)][_0x5ac833(0x311)](_0x35ea45,{'history':_0x5e3ed1,'collaboration':_0x1f1e8b});}};le=hn([Re(0x0,_0x43af65(_0x5a50a2)),Re(0x1,_0x477b88),Re(0x2,_0x43af65(_0x1c2dd0))],le);var un=Object[_0x36889e(0x39d)],dn=(_0x4e8b0b,_0x2d487c,_0x146d09,_0x23046f)=>{for(var _0x140382=_0x23046f>0x1?void 0x0:_0x23046f?un(_0x2d487c,_0x146d09):_0x2d487c,_0x5bdbe3=_0x4e8b0b['length']-0x1,_0x533ad7;_0x5bdbe3>=0x0;_0x5bdbe3--)(_0x533ad7=_0x4e8b0b[_0x5bdbe3])&&(_0x140382=_0x533ad7(_0x140382)||_0x140382);return _0x140382;},at=(_0x57e5d2,_0x3f1b57)=>(_0x4bcd8f,_0x2dc943)=>_0x3f1b57(_0x4bcd8f,_0x2dc943,_0x57e5d2);let he=class{constructor(_0x225676,_0x165e8a){const _0x17b909=_0x36889e;this[_0x17b909(0x1fc)]=_0x225676,this['_transformService']=_0x165e8a;}[_0x36889e(0x281)](_0x3eed66){const _0x36fa5c=_0x36889e;var _0x2748ab;const _0x5b79d8=this['_injector'][_0x36fa5c(0x2f9)](_0x3ce9f9),_0x33c3b7=(_0x2748ab=_0x5b79d8[_0x36fa5c(0x29f)]())!=null?_0x2748ab:[];if(_0x33c3b7[_0x36fa5c(0x203)]===0x0)return;const _0x2def9=_0x3eed66[_0x36fa5c(0x2ba)],_0x5c8593=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2def9,'actions':null,'textRanges':_0x33c3b7}}],_0x13dcb0=this['_transformService'][_0x36fa5c(0x3c4)](_0x3eed66,_0x5c8593);if(!_0x555015(_0x13dcb0))throw _0x13dcb0[_0x36fa5c(0x206)];const _0x2a2dfd=_0x13dcb0['m2Prime'][0x0][_0x36fa5c(0x2c5)][_0x36fa5c(0x3be)];Array[_0x36fa5c(0x3a3)](_0x2a2dfd)&&_0x2a2dfd['length']&&_0x5b79d8[_0x36fa5c(0x1e0)](_0x2a2dfd,{'unitId':_0x2def9,'subUnitId':_0x2def9},!0x1);}};he=dn([at(0x0,_0x43af65(_0x5a50a2)),at(0x1,_0x477b88)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x563d67,_0x3aa3dc,_0x570e36,_0x100132)=>{const _0x4f2053=_0x36889e;for(var _0x4de857=_0x100132>0x1?void 0x0:_0x100132?Sn(_0x3aa3dc,_0x570e36):_0x3aa3dc,_0x3023d9=_0x563d67[_0x4f2053(0x203)]-0x1,_0x434a65;_0x3023d9>=0x0;_0x3023d9--)(_0x434a65=_0x563d67[_0x3023d9])&&(_0x4de857=_0x434a65(_0x4de857)||_0x4de857);return _0x4de857;},b=(_0x4e607f,_0x55d40f)=>(_0x549d28,_0x2e5489)=>_0x55d40f(_0x549d28,_0x2e5489,_0x4e607f);let ue=class extends _0x2d4248{constructor(_0x404db9,_0x75233f,_0x4fbae1,_0x1f7d4e,_0x5c84c2,_0x16e265,_0x4693c3,_0x212687){const _0xd72415=_0x36889e;super(),l(this,_0xd72415(0x31e),new _0x28744e(_0x35fe7b[_0xd72415(0x29d)])),(this[_0xd72415(0x1d1)]=_0x404db9,this['_collaborationController']=_0x75233f,this['_docTransformIMECacheService']=_0x4fbae1,this[_0xd72415(0x36d)]=_0x1f7d4e,this[_0xd72415(0x382)]=_0x5c84c2,this[_0xd72415(0x25f)]=_0x16e265,this[_0xd72415(0x2ad)]=_0x4693c3,this['_localeService']=_0x212687,this['_initEntityListener']());}[_0x36889e(0x2d5)](){const _0x16ca5=_0x36889e;this['disposeWithMe'](this[_0x16ca5(0x28a)][_0x16ca5(0x2bc)]['subscribe'](_0x28c334=>{const _0x1fecf4=_0x16ca5,_0x2151cd=this['_docStateChangeManagerService'][_0x1fecf4(0x1e1)][_0x1fecf4(0x3d8)](_0x313387=>{const _0xbe135a=_0x1fecf4;if(_0x313387==null)return;const {unitId:_0x2ee450,redoState:_0x1418df,commandId:_0x5b683d}=_0x313387;if(_0x2ee450!==_0x28c334[_0xbe135a(0x2ba)])return;const _0x3a7b5a={'id':_0x5b683d,'type':_0x8dd410[_0xbe135a(0x3a8)],'params':{'unitId':_0x2ee450,'actions':_0x1418df[_0xbe135a(0x2f7)],'textRanges':null}};_0x28c334[_0xbe135a(0x26e)](_0x3a7b5a);});if(_0x28c334[_0x1fecf4(0x20c)](_0x2151cd),_0x28c334 instanceof _0xeaac5a){const _0x216d5d={'onTransformIME':_0xed321f=>this[_0x1fecf4(0x280)][_0x1fecf4(0x3e1)](_0xed321f),'onTransformState':_0x4a5673=>this[_0x1fecf4(0x36d)]['transformStateCache'](_0x4a5673),'onTransformSelections':_0x4232b4=>this['_docTransformSelectionsService'][_0x1fecf4(0x281)](_0x4232b4),'onSyncEditingCollabCursor':_0xbcbbac=>this[_0x1fecf4(0x25f)][_0x1fecf4(0x297)](_0xbcbbac),'onTransformRemoteChangesetByIMECache':_0x2de7b2=>this[_0x1fecf4(0x280)][_0x1fecf4(0x3d5)](_0x2de7b2),'onTransformRemoteChangesetByStateCache':_0x52cb28=>this[_0x1fecf4(0x36d)]['transformRemoteChangeset'](_0x52cb28)};_0x28c334[_0x1fecf4(0x33e)](_0x216d5d);}}));}};ue=In([b(0x0,_0x43af65(_0x1c2dd0)),b(0x1,_0x43af65(_0x5dd025)),b(0x2,_0x43af65(_e)),b(0x3,_0x43af65(le)),b(0x4,_0x43af65(he)),b(0x5,_0x43af65(Xe)),b(0x6,_0x35a021),b(0x7,_0x43af65(_0x34b1c0))],ue);var Z=(_0x440f30=>(_0x440f30[_0x440f30[_0x36889e(0x201)]=0x0]=_0x36889e(0x201),_0x440f30[_0x440f30['OK']=0x1]='OK',_0x440f30[_0x440f30['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x440f30[_0x440f30[_0x36889e(0x2bd)]=0x3]=_0x36889e(0x2bd),_0x440f30[_0x440f30[_0x36889e(0x38b)]=0x4]=_0x36889e(0x38b),_0x440f30[_0x440f30[_0x36889e(0x33f)]=0x5]=_0x36889e(0x33f),_0x440f30[_0x440f30[_0x36889e(0x2a0)]=0x6]=_0x36889e(0x2a0),_0x440f30[_0x440f30[_0x36889e(0x1de)]=0x7]=_0x36889e(0x1de),_0x440f30[_0x440f30[_0x36889e(0x1e3)]=0x8]=_0x36889e(0x1e3),_0x440f30[_0x440f30[_0x36889e(0x2d4)]=0x9]=_0x36889e(0x2d4),_0x440f30[_0x440f30[_0x36889e(0x240)]=0xa]=_0x36889e(0x240),_0x440f30[_0x440f30['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x36889e(0x3b0),_0x440f30[_0x440f30[_0x36889e(0x35e)]=0xc]=_0x36889e(0x35e),_0x440f30[_0x440f30[_0x36889e(0x24a)]=0xd]=_0x36889e(0x24a),_0x440f30[_0x440f30[_0x36889e(0x3d1)]=0xe]=_0x36889e(0x3d1),_0x440f30[_0x440f30['AUTHORIZE_CODE_ILLEGAL']=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x440f30[_0x440f30[_0x36889e(0x2af)]=0x10]=_0x36889e(0x2af),_0x440f30[_0x440f30[_0x36889e(0x381)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x440f30[_0x440f30[_0x36889e(0x3b4)]=0x65]=_0x36889e(0x3b4),_0x440f30[_0x440f30[_0x36889e(0x218)]=0xc9]=_0x36889e(0x218),_0x440f30[_0x440f30[_0x36889e(0x32e)]=0xca]=_0x36889e(0x32e),_0x440f30[_0x440f30['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x36889e(0x1d0),_0x440f30[_0x440f30[_0x36889e(0x2ae)]=0x1771]=_0x36889e(0x2ae),_0x440f30[_0x440f30[_0x36889e(0x284)]=0x1772]=_0x36889e(0x284),_0x440f30[_0x440f30['ENSURE_SNAPSHOT_EXECUTION']=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x440f30[_0x440f30[_0x36889e(0x1d5)]=0x1b59]='APPLY_REJECT',_0x440f30[_0x440f30[_0x36889e(0x2bb)]=0x1b5a]=_0x36889e(0x2bb),_0x440f30[_0x440f30[_0x36889e(0x397)]=0x1b5b]=_0x36889e(0x397),_0x440f30[_0x440f30[_0x36889e(0x300)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x440f30[_0x440f30[_0x36889e(0x1bf)]=0x1b5d]=_0x36889e(0x1bf),_0x440f30[_0x440f30[_0x36889e(0x363)]=0x1f41]=_0x36889e(0x363),_0x440f30[_0x440f30[_0x36889e(0x202)]=0x2329]=_0x36889e(0x202),_0x440f30[_0x440f30['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x440f30[_0x440f30[_0x36889e(0x2ea)]=0x232b]=_0x36889e(0x2ea),_0x440f30[_0x440f30[_0x36889e(0x26c)]=0x232c]=_0x36889e(0x26c),_0x440f30[_0x440f30[_0x36889e(0x250)]=0x232d]=_0x36889e(0x250),_0x440f30[_0x440f30[_0x36889e(0x3c8)]=0x2711]=_0x36889e(0x3c8),_0x440f30[_0x440f30['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x36889e(0x1ed),_0x440f30[_0x440f30[_0x36889e(0x36a)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x440f30[_0x440f30[_0x36889e(0x204)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x440f30[_0x440f30[_0x36889e(0x23d)]=0x271a]=_0x36889e(0x23d),_0x440f30[_0x440f30[_0x36889e(0x200)]=0x271b]=_0x36889e(0x200),_0x440f30[_0x440f30[_0x36889e(0x299)]=0x271c]=_0x36889e(0x299),_0x440f30[_0x440f30[_0x36889e(0x30b)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x440f30[_0x440f30[_0x36889e(0x31c)]=0x271e]=_0x36889e(0x31c),_0x440f30[_0x440f30[_0x36889e(0x1fb)]=0x271f]=_0x36889e(0x1fb),_0x440f30[_0x440f30[_0x36889e(0x239)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x440f30[_0x440f30[_0x36889e(0x3d7)]=0x2af9]=_0x36889e(0x3d7),_0x440f30[_0x440f30[_0x36889e(0x393)]=0x2ee1]=_0x36889e(0x393),_0x440f30[_0x440f30['INVALID_INVITE_CODE']=0x2ee2]=_0x36889e(0x3cf),_0x440f30[_0x440f30[_0x36889e(0x1ea)]=0x2ee3]=_0x36889e(0x1ea),_0x440f30[_0x440f30[_0x36889e(0x374)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x440f30[_0x440f30[_0x36889e(0x2fe)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x440f30[_0x440f30[_0x36889e(0x23c)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x440f30[_0x440f30[_0x36889e(0x1be)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x440f30[_0x440f30[_0x36889e(0x24f)]=0x32cb]=_0x36889e(0x24f),_0x440f30[_0x440f30[_0x36889e(0x2ab)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x440f30[_0x440f30[_0x36889e(0x2a7)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x440f30[_0x440f30[_0x36889e(0x379)]=0x36b3]=_0x36889e(0x379),_0x440f30[_0x440f30['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x36889e(0x2e4),_0x440f30[_0x440f30[_0x36889e(0x30d)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x440f30[_0x440f30[_0x36889e(0x23a)]=0x3716]=_0x36889e(0x23a),_0x440f30[_0x440f30[_0x36889e(0x1bd)]=0x37dd]=_0x36889e(0x1bd),_0x440f30[_0x440f30[_0x36889e(0x2d8)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x440f30[_0x440f30[_0x36889e(0x31b)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x440f30[_0x440f30[_0x36889e(0x2fa)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x440f30[_0x440f30[_0x36889e(0x39a)]=0x3a9c]=_0x36889e(0x39a),_0x440f30[_0x440f30[_0x36889e(0x265)]=0x3a9d]=_0x36889e(0x265),_0x440f30[_0x440f30['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x36889e(0x2e1),_0x440f30[_0x440f30['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x36889e(0x3a9),_0x440f30[_0x440f30['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x440f30))(Z||{});function mn(_0x125974){const _0x4d6c43=_0x36889e;var _0x4d480b,_0x4db970;const _0x2ac39f=(_0x4d480b=_0x125974[_0x4d6c43(0x2b6)])==null?void 0x0:_0x4d480b[_0x4d6c43(0x344)],_0x39a6f8=((_0x4db970=_0x125974[_0x4d6c43(0x2b6)])==null?void 0x0:_0x4db970[_0x4d6c43(0x370)])||0x0;return _0x2ac39f===_0x417a0b[_0x4d6c43(0x34e)]&&_0x39a6f8>0x0;}function fn(_0x549815){const _0x213083=_0x36889e;return _0x549815[_0x213083(0x1f7)]===_0xdc2a3[_0x213083(0x1c5)];}var gn=Object[_0x36889e(0x39d)],vn=(_0x3b7e2f,_0xe5dab1,_0x111cd4,_0x4f921c)=>{const _0x1a57cf=_0x36889e;for(var _0x292d62=_0x4f921c>0x1?void 0x0:_0x4f921c?gn(_0xe5dab1,_0x111cd4):_0xe5dab1,_0x2417ac=_0x3b7e2f[_0x1a57cf(0x203)]-0x1,_0x10b411;_0x2417ac>=0x0;_0x2417ac--)(_0x10b411=_0x3b7e2f[_0x2417ac])&&(_0x292d62=_0x10b411(_0x292d62)||_0x292d62);return _0x292d62;},P=(_0x302ef9,_0x50e8ac)=>(_0x518441,_0x11dd4b)=>_0x50e8ac(_0x518441,_0x11dd4b,_0x302ef9);const En=_0x36889e(0x3a4),pn=_0x36889e(0x353),On='/universer-api/license/formula/limit/done';let de=class extends _0x2d4248{constructor(_0x5e7d71,_0x12530d,_0x557ca7,_0x20ec60,_0x422726,_0x183555,_0x317c22){const _0x3306a3=_0x36889e;super(),l(this,_0x3306a3(0x3c6),null),l(this,_0x3306a3(0x208),0x0),l(this,_0x3306a3(0x32f),0x0),l(this,_0x3306a3(0x340),[]),l(this,'_lastResponseTimestamp',0x0),(this[_0x3306a3(0x2ad)]=_0x5e7d71,this[_0x3306a3(0x227)]=_0x12530d,this['_configService']=_0x557ca7,this[_0x3306a3(0x24b)]=_0x20ec60,this[_0x3306a3(0x1e7)]=_0x422726,this[_0x3306a3(0x1e5)]=_0x183555,this[_0x3306a3(0x1f1)]=_0x317c22,this[_0x3306a3(0x2c9)]());}[_0x36889e(0x2c9)](){const _0x46a059=_0x36889e;this['disposeWithMe'](this['_commandService']['beforeCommandExecuted']((_0x16bfc9,_0x5b2436)=>{const _0x2ebb41=_0x4047;if(_0x16bfc9['id']!==_0xf447bb['id'])return;const _0x2bbe9e=_0x16bfc9['params'];if(!this[_0x2ebb41(0x308)](_0x2bbe9e[_0x2ebb41(0x2ca)]))return;if(!this['_checkCalculationAvailable']())throw this['_checkAndWaitForCalculationPermission'](_0x16bfc9,_0x5b2436),this[_0x2ebb41(0x3de)](),new _0x1df904();})),this[_0x46a059(0x20c)](this[_0x46a059(0x227)]['onCommandExecuted']((_0x31297e,_0x294972)=>{const _0x1824f8=_0x46a059;if(_0x31297e['id']!==_0x49ec8c['id'])return;const _0x103bbe=_0x31297e[_0x1824f8(0x2c5)];if(mn(_0x103bbe)){const _0x26592e=_0x106418();this['_taskIds'][_0x1824f8(0x36b)](_0x26592e),this[_0x1824f8(0x2ce)](_0x26592e);}else{if(fn(_0x103bbe)&&this[_0x1824f8(0x340)]['length']>0x0){const _0x57c986=this[_0x1824f8(0x340)][_0x1824f8(0x2b8)]();this[_0x1824f8(0x21c)](_0x57c986);}}}));}['dispose'](){const _0x46210d=_0x36889e;super['dispose'](),this[_0x46210d(0x28c)](),this['_taskIds']=[],this[_0x46210d(0x32f)]=0x0,this[_0x46210d(0x208)]=0x0,this[_0x46210d(0x30a)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x2decda,_0x15e606){const _0x2ff168=_0x36889e;for(let _0x3565b0=0x0;_0x3565b0<0x1e;_0x3565b0++)try{if(await this[_0x2ff168(0x1c4)](),this['_checkCalculationAvailable']()){this['_applyCommand'](_0x2decda,_0x15e606),this[_0x2ff168(0x2ad)][_0x2ff168(0x1cb)]({'content':this[_0x2ff168(0x1f1)]['t']('formula.calculation.started'),'type':_0x3551[_0x2ff168(0x3e0)]});return;}await new Promise(_0x31b912=>{const _0x1bbf11=_0x2ff168;this['_pollingInterval']=window[_0x1bbf11(0x26b)](_0x31b912,0x3e8);});}catch(_0x451572){this[_0x2ff168(0x1e5)][_0x2ff168(0x206)](_0x451572);}this['_messageService'][_0x2ff168(0x1cb)]({'content':this[_0x2ff168(0x1f1)]['t']('formula.calculation.unable'),'type':_0x3551['Error']});}[_0x36889e(0x399)](_0x3ea497,_0x19bc72){try{this['_commandService']['executeCommand'](_0x3ea497['id'],_0x3ea497['params'],_0x19bc72);}catch(_0x44c47f){this['_logService']['error'](_0x44c47f);}}['_setFormulaLimitStatus'](_0x4ba97e,_0x5e9011){const _0x2943d5=_0x36889e;_0x5e9011<this[_0x2943d5(0x30a)]||(this[_0x2943d5(0x30a)]=_0x5e9011,this['_maxFormulaLimit']=Number[_0x2943d5(0x2b4)](_0x4ba97e[_0x2943d5(0x335)]),this['_currentUsage']=Number[_0x2943d5(0x2b4)](_0x4ba97e[_0x2943d5(0x30e)]));}async[_0x36889e(0x2ce)](_0x449bb6){const _0xbaf15=_0x36889e;var _0x18936c,_0x904c99;const _0x5eff68=Date[_0xbaf15(0x34f)]();try{const _0x64ac7d=((_0x18936c=this[_0xbaf15(0x274)]['getConfig'](_0xec5025))==null?void 0x0:_0x18936c[_0xbaf15(0x2c0)])||pn,_0x9fc574=(await this['_httpService']['post'](_0x64ac7d,{'body':JSON[_0xbaf15(0x2aa)]({'taskId':_0x449bb6})}))[_0xbaf15(0x2d1)];if(((_0x904c99=_0x9fc574['error'])==null?void 0x0:_0x904c99[_0xbaf15(0x27f)])!==Z['OK'])return;this[_0xbaf15(0x3e3)](_0x9fc574[_0xbaf15(0x338)],_0x5eff68);}catch(_0x5c09f3){this[_0xbaf15(0x1e5)][_0xbaf15(0x206)](_0x5c09f3);}}async[_0x36889e(0x1c4)](_0x143665){const _0x254da5=_0x36889e;var _0x198c77,_0x4499d0;const _0x4e7669=Date[_0x254da5(0x34f)]();try{const _0x39f105=((_0x198c77=this[_0x254da5(0x274)][_0x254da5(0x237)](_0xec5025))==null?void 0x0:_0x198c77[_0x254da5(0x1d7)])||En,_0x335ea0=_0x143665?_0x39f105+_0x254da5(0x1e4)+encodeURIComponent(_0x143665):_0x39f105,_0x1fface=(await this[_0x254da5(0x24b)][_0x254da5(0x2f9)](_0x335ea0))[_0x254da5(0x2d1)];if(((_0x4499d0=_0x1fface[_0x254da5(0x206)])==null?void 0x0:_0x4499d0['code'])!==Z['OK'])return;this[_0x254da5(0x3e3)](_0x1fface[_0x254da5(0x338)],_0x4e7669);}catch(_0x57179c){this['_logService'][_0x254da5(0x206)](_0x57179c);}}async[_0x36889e(0x21c)](_0x3b535c){const _0x596919=_0x36889e;var _0x3dba9d,_0x19f0de;const _0x22a801=Date[_0x596919(0x34f)]();try{const _0x40bc86=((_0x3dba9d=this[_0x596919(0x274)][_0x596919(0x237)](_0xec5025))==null?void 0x0:_0x3dba9d[_0x596919(0x3ea)])||On,_0x27db71=(await this['_httpService'][_0x596919(0x209)](_0x40bc86,{'body':JSON['stringify']({'taskId':_0x3b535c})}))['body'];if(((_0x19f0de=_0x27db71[_0x596919(0x206)])==null?void 0x0:_0x19f0de['code'])!==Z['OK'])return;this[_0x596919(0x3e3)](_0x27db71[_0x596919(0x338)],_0x22a801);}catch(_0x58d551){this['_logService'][_0x596919(0x206)](_0x58d551);}}[_0x36889e(0x319)](){const _0x4cce43=_0x36889e;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x4cce43(0x208)]-this['_currentUsage']>0x0;}[_0x36889e(0x28c)](){const _0x36d29d=_0x36889e;this[_0x36d29d(0x3c6)]&&(clearTimeout(this[_0x36d29d(0x3c6)]),this[_0x36d29d(0x3c6)]=null);}[_0x36889e(0x3de)](){const _0x319b32=_0x36889e;this[_0x319b32(0x2ad)][_0x319b32(0x1cb)]({'content':this[_0x319b32(0x1f1)]['t'](_0x319b32(0x350)),'type':_0x3551[_0x319b32(0x324)]});}[_0x36889e(0x308)](_0x17f701){const _0x47b479=_0x36889e;for(const _0x2f16e0 of _0x17f701){const {unitId:_0x33367e,sheetId:_0x2e3ba3,range:_0x5e39c5}=_0x2f16e0,_0x28332d=this[_0x47b479(0x1e7)][_0x47b479(0x260)](_0x33367e);if(!_0x28332d)continue;const _0x15c595=_0x28332d['getSheetBySheetId'](_0x2e3ba3);if(!_0x15c595)continue;const _0x2d01da=_0x15c595[_0x47b479(0x1da)]();for(let _0x1f499d=_0x5e39c5[_0x47b479(0x3dc)];_0x1f499d<=_0x5e39c5[_0x47b479(0x263)];_0x1f499d++)for(let _0x1e338e=_0x5e39c5[_0x47b479(0x246)];_0x1e338e<=_0x5e39c5[_0x47b479(0x3c7)];_0x1e338e++){const _0x8b28e8=_0x2d01da[_0x47b479(0x293)](_0x1f499d,_0x1e338e);if(_0x8b28e8&&(_0x20d565(_0x8b28e8['f'])||_0x3dadc3(_0x8b28e8['si'])))return!0x0;}}return!0x1;}};de=vn([P(0x0,_0x43af65(_0x35a021)),P(0x1,_0x19be55),P(0x2,_0x30999b),P(0x3,_0x43af65(_0x144565)),P(0x4,_0x11a3cb),P(0x5,_0x2079f4),P(0x6,_0x43af65(_0x34b1c0))],de);var Tn=Object[_0x36889e(0x39d)],Cn=(_0x3ad582,_0x4523ed,_0x1d0150,_0x2257f7)=>{const _0x4d643c=_0x36889e;for(var _0x2d9def=_0x2257f7>0x1?void 0x0:_0x2257f7?Tn(_0x4523ed,_0x1d0150):_0x4523ed,_0x3a07e6=_0x3ad582[_0x4d643c(0x203)]-0x1,_0x556331;_0x3a07e6>=0x0;_0x3a07e6--)(_0x556331=_0x3ad582[_0x3a07e6])&&(_0x2d9def=_0x556331(_0x2d9def)||_0x2d9def);return _0x2d9def;},De=(_0x5797b6,_0x493c58)=>(_0x375027,_0x126b32)=>_0x493c58(_0x375027,_0x126b32,_0x5797b6);let xe=class extends _0x2d4248{constructor(_0x3fb2b4,_0x4120c0,_0xaeb254){const _0xa40583=_0x36889e;super(),l(this,_0xa40583(0x25a),new Map()),l(this,_0xa40583(0x25e),new Map()),l(this,_0xa40583(0x386),!0x1),(this[_0xa40583(0x274)]=_0x3fb2b4,this['_localStorageService']=_0x4120c0,this['_revisionService']=_0xaeb254);}[_0x36889e(0x264)](){this['_disabled']=!0x0;}[_0x36889e(0x29a)](){const _0x295d6f=_0x36889e;this[_0x295d6f(0x386)]=!0x1;}get[_0x36889e(0x234)](){const _0x4ebdd5=_0x36889e;return this[_0x4ebdd5(0x25e)];}[_0x36889e(0x346)](){const _0x56621d=_0x36889e;this[_0x56621d(0x37c)]()[_0x56621d(0x1f5)](()=>super['dispose']());}async[_0x36889e(0x29b)](_0x2c1eff){const _0xb9af61=_0x36889e;return this[_0xb9af61(0x386)]?null:this[_0xb9af61(0x207)][_0xb9af61(0x1cd)](_0x37fd08(_0x2c1eff));}async[_0x36889e(0x2a5)](_0x5eb7eb,_0x4e3555){const _0xdf957f=_0x36889e;return!!this[_0xdf957f(0x207)][_0xdf957f(0x3eb)](_0x5eb7eb,_0x4e3555);}[_0x36889e(0x30c)](_0x39e50f,_0x311b6f,_0x4ecb08,_0xa97b00){const _0xe6abed=_0x36889e,_0x35a15e=this[_0xe6abed(0x2f6)][_0xe6abed(0x210)](_0x39e50f);this[_0xe6abed(0x25a)][_0xe6abed(0x2e8)](_0x39e50f,{'unitID':_0x39e50f,'type':_0x311b6f,'awaitingChangeset':_0x4ecb08,'mutations':_0xa97b00,'rev':_0x35a15e}),this['_saveTaskMap']['has'](_0x39e50f)||this[_0xe6abed(0x1d6)](_0x39e50f);}[_0x36889e(0x1d6)](_0x3d8a35){const _0x3c1ae6=_0x36889e,_0x220c3c=this[_0x3c1ae6(0x219)]();_0x220c3c===0x0?this['_saveCache'](_0x3d8a35):this[_0x3c1ae6(0x25e)][_0x3c1ae6(0x2e8)](_0x3d8a35,setTimeout(()=>this['_saveCache'](_0x3d8a35),_0x220c3c));}[_0x36889e(0x219)](){const _0x98afa4=_0x36889e;var _0x3e1e51;return(_0x3e1e51=this[_0x98afa4(0x274)][_0x98afa4(0x237)](_0x5127db))!=null?_0x3e1e51:_0x5f4615;}[_0x36889e(0x367)](_0x1361af){const _0x1b81b1=_0x36889e,_0x2c7212=this[_0x1b81b1(0x25e)][_0x1b81b1(0x2f9)](_0x1361af);return _0x2c7212!==void 0x0&&window['clearTimeout'](_0x2c7212),this[_0x1b81b1(0x207)]['setItem'](_0x37fd08(_0x1361af),this[_0x1b81b1(0x25a)][_0x1b81b1(0x2f9)](_0x1361af))[_0x1b81b1(0x1f5)](()=>this['_saveTaskMap'][_0x1b81b1(0x2c3)](_0x1361af));}async['exhaustSavingTask'](){const _0x3b60f8=_0x36889e,_0x473942=[];this[_0x3b60f8(0x25e)][_0x3b60f8(0x385)]((_0x5a5b1e,_0x591310)=>{const _0x43c3b1=_0x3b60f8;window[_0x43c3b1(0x283)](_0x5a5b1e),_0x473942[_0x43c3b1(0x36b)](this[_0x43c3b1(0x367)](_0x591310)[_0x43c3b1(0x1f5)](()=>{const _0x4797cf=_0x43c3b1;this[_0x4797cf(0x25e)][_0x4797cf(0x2c3)](_0x591310);}));}),await Promise[_0x3b60f8(0x1fe)](_0x473942);}};xe=Cn([De(0x0,_0x30999b),De(0x1,_0x59e9d1),De(0x2,_0x43af65(_0x12ae1d))],xe);class Rn extends _0x90cdab{constructor(){const _0xaa581e=_0x36889e;super(),l(this,'urlChange$'),this['urlChange$']=_0x40a393(window,_0xaa581e(0x3d4))[_0xaa581e(0x1dd)](_0x2bd178(this[_0xaa581e(0x3c5)]),_0x3e2590(0x1),_0x13c8e0(void 0x0));}[_0x36889e(0x245)](_0xdd3963,_0x432784,_0x3c252e=!0x1){const _0x1e4d15=_0x36889e,_0x5e7719=new URL(window['location']['href']);_0x5e7719['searchParams'][_0x1e4d15(0x2e8)](_0xdd3963,_0x432784),_0x3c252e?window['history']['replaceState']('','',_0x5e7719[_0x1e4d15(0x3a1)]()):window[_0x1e4d15(0x3e6)]['pushState']('','',_0x5e7719[_0x1e4d15(0x3a1)]());}['removeParam'](_0x48e85f,_0x4b6325=!0x1){const _0x3de438=_0x36889e,_0x4b5c0e=new URL(window[_0x3de438(0x3b1)][_0x3de438(0x34c)]);_0x4b5c0e[_0x3de438(0x336)][_0x3de438(0x2c3)](_0x48e85f),_0x4b6325?window[_0x3de438(0x3e6)][_0x3de438(0x262)]('','',_0x4b5c0e['toString']()):window[_0x3de438(0x3e6)][_0x3de438(0x294)]('','',_0x4b5c0e['toString']());}[_0x36889e(0x3ce)](_0x8bf6e7){const _0x21ee1b=_0x36889e;var _0x2eb37a;return(_0x2eb37a=new URL(window[_0x21ee1b(0x3b1)][_0x21ee1b(0x34c)])[_0x21ee1b(0x336)][_0x21ee1b(0x2f9)](_0x8bf6e7))!=null?_0x2eb37a:void 0x0;}}var Dn=Object[_0x36889e(0x36e)],Nn=Object[_0x36889e(0x39d)],bn=(_0x3627a6,_0x5d5964,_0x4f4ab5)=>_0x5d5964 in _0x3627a6?Dn(_0x3627a6,_0x5d5964,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f4ab5}):_0x3627a6[_0x5d5964]=_0x4f4ab5,Un=(_0x2ae5fa,_0xe931bb,_0x542f43,_0x4f1f11)=>{const _0x6c68ce=_0x36889e;for(var _0x3e9830=_0x4f1f11>0x1?void 0x0:_0x4f1f11?Nn(_0xe931bb,_0x542f43):_0xe931bb,_0x362ca6=_0x2ae5fa[_0x6c68ce(0x203)]-0x1,_0x4563f6;_0x362ca6>=0x0;_0x362ca6--)(_0x4563f6=_0x2ae5fa[_0x362ca6])&&(_0x3e9830=_0x4563f6(_0x3e9830)||_0x3e9830);return _0x3e9830;},Ne=(_0x33b855,_0x3d330d)=>(_0x5344ea,_0x2517c1)=>_0x3d330d(_0x5344ea,_0x2517c1,_0x33b855),Ln=(_0x43d6da,_0x4de9f7,_0x3fb325)=>bn(_0x43d6da,_0x4de9f7+'',_0x3fb325);const Mn=_0x36889e(0x28f);let Be=class extends _0x2a1b8a{constructor(_0x531bad=rt,_0x4543c6,_0x2e2a62,_0x29373d){const _0x2df300=_0x36889e;super(),this[_0x2df300(0x216)]=_0x531bad,this[_0x2df300(0x34b)]=_0x4543c6,this[_0x2df300(0x1fc)]=_0x2e2a62,this[_0x2df300(0x274)]=_0x29373d;const {..._0x303d80}=_0x539c2b({},rt,this[_0x2df300(0x216)]);this['_configService'][_0x2df300(0x29c)](an,_0x303d80);}['onStarting'](){const _0x3f1bd3=_0x36889e;this['_registerDependencies'](),this[_0x3f1bd3(0x3b3)]();}['onRendered'](){this['_registerRenderDependencies']();}[_0x36889e(0x1e9)](){const _0x1c3111=_0x36889e;var _0x3b8fb9;const _0x54414f=[[je],[de],[he],[_e],[le],[Xe],[At,{'useClass':Rn}],[_0x48e9f7,{'useClass':_0x331d4d}],[_0x23d181,{'useClass':xe}],[oe],[ue],[ce],[H],[Ae],[ae]];_0x5cd96d(this[_0x1c3111(0x1fc)],_0x20ba8c(_0x54414f,(_0x3b8fb9=this[_0x1c3111(0x216)])==null?void 0x0:_0x3b8fb9[_0x1c3111(0x2d6)]));}['_registerRenderDependencies'](){const _0x4a1165=_0x36889e;this[_0x4a1165(0x20c)](this[_0x4a1165(0x34b)]['registerRenderModule'](_0xeb1790['UNIVER_DOC'],[ye])),this[_0x4a1165(0x20c)](this[_0x4a1165(0x34b)]['registerRenderModule'](_0xeb1790[_0x4a1165(0x2c7)],[$e]));}[_0x36889e(0x3b3)](){_0x309974(this['_injector'],[[H],[oe],[ue],[ce],[ae],[de]]);}};Ln(Be,'pluginName',Mn),Be=Un([_0xfdebc4(_0x54acb2),Ne(0x1,_0x1461c3),Ne(0x2,_0x43af65(_0x5a50a2)),Ne(0x3,_0x30999b)],Be);var An=Object[_0x36889e(0x39d)],Pn=(_0x315c15,_0x1649fb,_0x9003ee,_0xc7170b)=>{for(var _0x19313c=_0xc7170b>0x1?void 0x0:_0xc7170b?An(_0x1649fb,_0x9003ee):_0x1649fb,_0xa1111c=_0x315c15['length']-0x1,_0x242f7c;_0xa1111c>=0x0;_0xa1111c--)(_0x242f7c=_0x315c15[_0xa1111c])&&(_0x19313c=_0x242f7c(_0x19313c)||_0x19313c);return _0x19313c;},J=(_0x4e67a5,_0x113427)=>(_0x43ae44,_0xc92964)=>_0x113427(_0x43ae44,_0xc92964,_0x4e67a5);let ct=class extends _0x519ec4{constructor(_0x40ba11,_0x112d42,_0x2c40d2,_0x4673eb,_0x4cb7f9){super(_0x40ba11,_0x112d42,_0x2c40d2,_0x4673eb,_0x4cb7f9);}async[_0x36889e(0x358)](_0x2c5795){const _0x3e7a36=_0x36889e,_0x5ae920=await this[_0x3e7a36(0x2ee)](),_0x29108b=this[_0x3e7a36(0x1d9)](_0x2c5795,_0x5ae920);return this[_0x3e7a36(0x3d0)](_0x29108b);}[_0x36889e(0x1d9)](_0x1c2dd8,_0x2a4aad){const _0x88c1d6=_0x36889e,_0x146ed0=typeof window>'u'?new URL(_0x1c2dd8):new URL(_0x1c2dd8,window['location'][_0x88c1d6(0x356)]);_0x146ed0['searchParams'][_0x88c1d6(0x2e8)]('sessionTicket',_0x2a4aad);const _0x336c26=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x88c1d6(0x3b1)][_0x88c1d6(0x37d)]);return _0x336c26[_0x88c1d6(0x2f9)](_0x88c1d6(0x23e))&&_0x146ed0['searchParams'][_0x88c1d6(0x2e8)]('runId',_0x336c26['get'](_0x88c1d6(0x23e))),_0x146ed0[_0x88c1d6(0x3a1)]();}async[_0x36889e(0x2ee)](){const _0x1b6727=_0x36889e;var _0x5c718f,_0x4afffb,_0x5a6810;const _0x1051a6=this[_0x1b6727(0x274)][_0x1b6727(0x237)](_0xec5025),_0xe53cb=(_0x5c718f=_0x1051a6==null?void 0x0:_0x1051a6['wsSessionTicketUrl'])!=null?_0x5c718f:_0x40c209;return(_0x5a6810=(_0x4afffb=(await this[_0x1b6727(0x24b)][_0x1b6727(0x2f9)](_0xe53cb,{'headers':{'Content-Type':_0x1b6727(0x2d7)}}))[_0x1b6727(0x2d1)])==null?void 0x0:_0x4afffb['ticket'])!=null?_0x5a6810:'';}};ct=Pn([J(0x0,_0x43af65(_0x5a50a2)),J(0x1,_0x43af65(_0x144565)),J(0x2,_0x30999b),J(0x3,_0x2079f4),J(0x4,_0x2f12ac)],ct);var wn=Object[_0x36889e(0x39d)],yn=(_0x5118f6,_0x14b523,_0x3d205f,_0x2fa78f)=>{for(var _0x351997=_0x2fa78f>0x1?void 0x0:_0x2fa78f?wn(_0x14b523,_0x3d205f):_0x14b523,_0x309085=_0x5118f6['length']-0x1,_0x1708b5;_0x309085>=0x0;_0x309085--)(_0x1708b5=_0x5118f6[_0x309085])&&(_0x351997=_0x1708b5(_0x351997)||_0x351997);return _0x351997;},be=(_0x719b99,_0x239988)=>(_0xf5830,_0x563ed3)=>_0x239988(_0xf5830,_0x563ed3,_0x719b99);let _t=class extends _0x2d4248{constructor(_0x4a6508,_0x979a39,_0x582b50){const _0x48abb3=_0x36889e;super(),this['_instanceService']=_0x4a6508,this[_0x48abb3(0x24b)]=_0x979a39,this['_configService']=_0x582b50;}async['runOnServer'](_0x237ed2,_0x2a6501,_0x1f6f9f,..._0x234e97){const _0x424224=_0x36889e;var _0x5cdb48,_0x574533,_0x1c6c63,_0x335370;const _0x116c89=this['_instanceService'][_0x424224(0x3cc)]();if(!_0x116c89)throw new Error(_0x424224(0x1d3));const _0x30f08f=((_0x5cdb48=this[_0x424224(0x274)][_0x424224(0x237)](_0x1a66bd))!=null?_0x5cdb48:_0x878450)+'/'+_0x237ed2+_0x424224(0x3d9)+_0x2a6501,_0x3f580a=new URL(window[_0x424224(0x3b1)][_0x424224(0x34c)]),_0x3b52ba={'scriptId':_0x237ed2,'runId':(_0x574533=_0x3f580a[_0x424224(0x336)][_0x424224(0x2f9)](_0x424224(0x23e)))!=null?_0x574533:'','function':_0x2a6501,'unitId':_0x116c89['getUnitId'](),'argsOfFunction':JSON[_0x424224(0x2aa)](_0x234e97),'invokeId':(_0x1c6c63=_0x1f6f9f[_0x424224(0x2c1)])!=null?_0x1c6c63:'','executionId':(_0x335370=_0x1f6f9f['executionId'])!=null?_0x335370:''};try{const _0x53f955=await this[_0x424224(0x24b)][_0x424224(0x209)](_0x30f08f,{'body':_0x3b52ba});return _0x53f955[_0x424224(0x2d1)][_0x424224(0x206)]&&_0x53f955[_0x424224(0x2d1)][_0x424224(0x206)]['code']!==Z['OK']?_0x424224(0x2b7):_0x53f955['body']['result'];}catch{return _0x424224(0x2b7);}}};_t=yn([be(0x0,_0x11a3cb),be(0x1,_0x43af65(_0x144565)),be(0x2,_0x30999b)],_t);const lt=0x7530,ht=_0x36889e(0x1f0);class tr extends _0x2d4248{constructor(){const _0x35fc22=_0x36889e;super(),l(this,_0x35fc22(0x351),_0x106418()),l(this,_0x35fc22(0x1bc),new Set()),l(this,_0x35fc22(0x20f),new Map()),l(this,'_heartbeatTimer',null),l(this,_0x35fc22(0x30f),new Map()),l(this,'_unitStatus',new Map()),this[_0x35fc22(0x1d4)]();}[_0x36889e(0x346)](){const _0x509e4a=_0x36889e;super['dispose'](),this['_clearOtherTimers']['forEach']((_0x22c145,_0x16fc97)=>this[_0x509e4a(0x339)](_0x16fc97)),this[_0x509e4a(0x20e)]&&window['clearInterval'](this[_0x509e4a(0x20e)]);}['getUnitStatus$'](_0x4bb208){const _0x36b31d=_0x36889e;return this[_0x36b31d(0x2ef)](_0x4bb208)[_0x36b31d(0x1dd)](_0x5b1ef3());}[_0x36889e(0x310)](_0x234615){const _0x56d4e0=_0x36889e;this[_0x56d4e0(0x1bc)][_0x56d4e0(0x213)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x56d4e0(0x230)](_0x234615),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x234615],'isForwarded':!0x1});}[_0x36889e(0x35a)](_0x1d4229){const _0x2ddea9=_0x36889e;this[_0x2ddea9(0x1bc)][_0x2ddea9(0x2c3)](_0x1d4229),this[_0x2ddea9(0x1bc)]['size']===0x0&&this[_0x2ddea9(0x20e)]&&window['clearInterval'](this[_0x2ddea9(0x20e)]);}['_init'](){const _0x3d14c2=_0x36889e;this['disposeWithMe'](_0x587d38(_0x40a393(window,_0x3d14c2(0x28b))[_0x3d14c2(0x3d8)](_0x3ea39b=>{const _0x2a745f=_0x3d14c2;if(_0x3ea39b['key']!==ht||!_0x3ea39b[_0x2a745f(0x20b)])return;const _0x3322cd=JSON[_0x2a745f(0x37a)](_0x3ea39b['newValue']);this[_0x2a745f(0x27d)](_0x3322cd);}))),window[_0x3d14c2(0x256)](_0x3d14c2(0x378),()=>this[_0x3d14c2(0x29e)]({'type':0x1,'memberID':this[_0x3d14c2(0x351)],'unitIDs':Array[_0x3d14c2(0x2da)](this[_0x3d14c2(0x1bc)])}));}[_0x36889e(0x27d)](_0x105f08){const _0x13597f=_0x36889e;switch(_0x105f08[_0x13597f(0x212)]){case 0x0:this[_0x13597f(0x22e)](_0x105f08);break;case 0x1:this[_0x13597f(0x3d2)](_0x105f08);break;case 0x2:this[_0x13597f(0x317)](_0x105f08);break;}}['_handleJoinEvent'](_0x3d0082){const _0x4a4ff2=_0x36889e,{unitIDs:_0x44cf4b,memberID:_0x40620,isForwarded:_0x4449cc}=_0x3d0082;_0x44cf4b[_0x4a4ff2(0x385)](_0x11f286=>{const _0x3b8d8b=_0x4a4ff2;if(!_0x4449cc&&this[_0x3b8d8b(0x20f)][_0x3b8d8b(0x3bb)](_0x11f286)&&this[_0x3b8d8b(0x2ef)](_0x11f286)['next'](_0x3326af[_0x3b8d8b(0x1ee)]),!this[_0x3b8d8b(0x20f)]['has'](_0x11f286)||!this['_unitOnClients'][_0x3b8d8b(0x2f9)](_0x11f286)[_0x3b8d8b(0x3bb)](_0x40620)){const _0x2a1be0=this[_0x3b8d8b(0x20f)][_0x3b8d8b(0x2f9)](_0x11f286)||new Set();_0x2a1be0[_0x3b8d8b(0x230)](_0x40620),this[_0x3b8d8b(0x20f)]['set'](_0x11f286,_0x2a1be0),this[_0x3b8d8b(0x305)](_0x40620);}}),_0x4449cc||this[_0x4a4ff2(0x29e)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x4a4ff2(0x1bc)]],'isForwarded':!0x0});}[_0x36889e(0x305)](_0x1819f9){const _0xaf5855=_0x36889e;this[_0xaf5855(0x339)](_0x1819f9);const _0x4652ee=window[_0xaf5855(0x26b)](()=>{const _0x2ef29e=_0xaf5855;this[_0x2ef29e(0x20f)][_0x2ef29e(0x385)](_0x42ff02=>{_0x42ff02['delete'](_0x1819f9);});},lt*0x2);this['_clearOtherTimers'][_0xaf5855(0x2e8)](_0x1819f9,_0x4652ee);}[_0x36889e(0x339)](_0x56d758){const _0x1b39ef=_0x36889e;if(this[_0x1b39ef(0x30f)][_0x1b39ef(0x3bb)](_0x56d758)){const _0x20cf0f=this[_0x1b39ef(0x30f)][_0x1b39ef(0x2f9)](_0x56d758);_0x20cf0f&&window[_0x1b39ef(0x283)](_0x20cf0f),this[_0x1b39ef(0x30f)][_0x1b39ef(0x2e8)](_0x56d758,null);}}[_0x36889e(0x3d2)](_0x2cff35){const _0x148c6a=_0x36889e,{memberID:_0x5dd8b2,unitIDs:_0xb1c758}=_0x2cff35;_0xb1c758['forEach'](_0x874cad=>{const _0x7724c8=_0x4047;var _0x4f9457;const _0x124f25=this['_unitOnClients']['get'](_0x874cad);_0x124f25&&(_0x124f25['delete'](_0x5dd8b2),(_0x4f9457=this[_0x7724c8(0x2ef)](_0x874cad))==null||_0x4f9457[_0x7724c8(0x345)](_0x124f25[_0x7724c8(0x213)]===0x0?_0x3326af[_0x7724c8(0x2ed)]:_0x3326af['OTHER_CLIENTS_EDITING']));}),this[_0x148c6a(0x339)](_0x5dd8b2);}['_handleHeartbeatEvent'](_0x5524c4){this['_scheduleClearOtherTimer'](_0x5524c4['memberID']);}['_send'](_0x3596c9){const _0x14d2f8=_0x36889e;localStorage[_0x14d2f8(0x3eb)](ht,JSON[_0x14d2f8(0x2aa)](_0x3596c9));}[_0x36889e(0x3bf)](){const _0x2e432e=_0x36889e;this[_0x2e432e(0x20e)]=window['setInterval'](()=>{const _0x276a45=_0x2e432e;this[_0x276a45(0x29e)]({'type':0x2,'memberID':this['_id']});},lt);}['_ensureSubject'](_0x3219c9){const _0x263f41=_0x36889e;return this[_0x263f41(0x39e)][_0x263f41(0x3bb)](_0x3219c9)||this[_0x263f41(0x39e)][_0x263f41(0x2e8)](_0x3219c9,new _0x28744e(_0x3326af[_0x263f41(0x2ed)])),this['_unitStatus'][_0x263f41(0x2f9)](_0x3219c9);}}export{ct as BrowserCollaborationSocketService,ae as CollaborationDataLoaderController,oe as DesktopCollaborationStatusDisplayController,At as IURLService,_t as RemoteUniscriptService,qi as SheetCollabCursorShape,Be as UniverCollaborationClientUIPlugin,tr as WebBrowserSingleActiveUnitService,Rn as WebURLService};
|