@univerjs-pro/collaboration-client-ui 1.0.0 → 1.0.2
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/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.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/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.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-HK.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/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.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/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.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-HK.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/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.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/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.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/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.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/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.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-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +18 -18
- package/lib/types/controllers/config.schema.d.ts +0 -15
- package/lib/types/services/formula-calculation-guard/formula-calculation-guard.service.d.ts +0 -38
- package/lib/types/services/formula-calculation-guard/util.d.ts +0 -11
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x497e61=_0x1250;(function(_0x2d71c9,_0x3ca859){const _0x1f75ff=_0x1250,_0x21aabb=_0x2d71c9();while(!![]){try{const _0x584c7c=-parseInt(_0x1f75ff(0x333))/0x1*(parseInt(_0x1f75ff(0x2ad))/0x2)+-parseInt(_0x1f75ff(0x140))/0x3*(-parseInt(_0x1f75ff(0x357))/0x4)+-parseInt(_0x1f75ff(0x13e))/0x5+parseInt(_0x1f75ff(0x149))/0x6*(parseInt(_0x1f75ff(0x203))/0x7)+parseInt(_0x1f75ff(0x329))/0x8*(-parseInt(_0x1f75ff(0x29a))/0x9)+-parseInt(_0x1f75ff(0x1f7))/0xa+parseInt(_0x1f75ff(0x25f))/0xb*(parseInt(_0x1f75ff(0x26b))/0xc);if(_0x584c7c===_0x3ca859)break;else _0x21aabb['push'](_0x21aabb['shift']());}catch(_0x12cec3){_0x21aabb['push'](_0x21aabb['shift']());}}}(_0x48b8,0x1a096));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x39b318,CollaborationController as _0x2db83e,CollaborationSessionService as _0x1f87ca,CollaborationSocketService as _0x120dd7,CollaborationStatus as _0x52ef7e,CollaborationUIEventId as _0x1ceacf,CollaborationUIEventService as _0x3ac887,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x94ed93,DEFAULT_WS_SESSION_TICKET_URL as _0x2a7571,DataLoaderService as _0x18448c,DocCollaborationEntity as _0x4fcb18,ILocalCacheService as _0x137b82,LOCAL_CACHE_INTERVAL as _0xa5e54f,LOCAL_CACHE_INTERVAL_KEY as _0xc4dbea,MemberService as _0x1d0690,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x4959d3,SessionStatus as _0x4af289,UnitStatus as _0x385abd,UniverCollaborationClientPlugin as _0x15e476,getLocalCacheKey as _0x163373}from'@univerjs-pro/collaboration-client';import{COLORS as _0x310412,ColorKit as _0x5acc2d,CommandType as _0x38ddad,DOC_RANGE_TYPE as _0x1da835,DependentOn as _0x2ceeb4,Disposable as _0x26d1e6,DisposableCollection as _0x1f8f55,ICommandService as _0x137b25,IConfigService as _0x105ef2,IImageIoService as _0x27dbba,ILocalStorageService as _0x1c3442,ILogService as _0x141c38,IUniverInstanceService as _0x3a4483,Inject as _0x3d3024,Injector as _0x2351e1,LocaleService as _0x6b982d,Plugin as _0x36b188,Rectangle as _0x4de5df,RxDisposable as _0xe6d4b,ThemeService as _0x2d83e2,Tools as _0x1c1492,UniverInstanceType as _0x159b05,Workbook as _0x5163e7,createIdentifier as _0x386799,debounce as _0x43170b,fromEventSubject as _0x2935c6,generateRandomId as _0x5b81d9,isInternalEditorID as _0x189e98,merge as _0x4ee085,mergeOverrideWithDependencies as _0xc1bdde,registerDependencies as _0x3fff4e,toDisposable as _0x2b7065,touchDependencies as _0x24a3dd}from'@univerjs/core';import{BuiltInUIPart as _0x4c7d13,IBeforeCloseService as _0x5aa2f1,IMessageService as _0x50bfcc,INotificationService as _0x542b4d,IUIPartsService as _0x1d4041,IUnitPresenceUIAdapterRegistry as _0x3eb804,connectInjector as _0x42b10d,useDependency as _0x4ac807,useObservable as _0xc78634}from'@univerjs/ui';import{BehaviorSubject as _0x52e8e8,Subject as _0x336cf5,combineLatest as _0x3f9c97,debounceTime as _0x518394,distinctUntilChanged as _0x5d30e5,filter as _0xeb3cf0,fromEvent as _0x10d9b8,mapTo as _0x1445c8,merge as _0xa40193,of as _0x1eef53,shareReplay as _0x4d84b0,switchMap as _0x4cf5f5,takeUntil as _0x4eb845,throttle as _0x28c002,timer as _0x363ac4}from'rxjs';import{distinctUntilChanged as _0x4fd6fd,filter as _0x2877e3,map as _0x2de342,switchMap as _0x3f4083,takeUntil as _0x447a2c,throttleTime as _0x4a1286}from'rxjs/operators';import{Button as _0xfb512b,MessageType as _0x4d40c3,Tooltip as _0x3c52e1,clsx as _0x5c57d6}from'@univerjs/design';import{LoadingMultiIcon as _0x332951,OffLineIcon as _0x243cbb,OnLineIcon as _0x2e29c3,WarningIcon as _0x535da3}from'@univerjs/icons';import{createElement as _0x24ae67,useCallback as _0x11fc9c,useMemo as _0x405a3d}from'react';import{jsx as _0x242b5a,jsxs as _0x3fe01f}from'react/jsx-runtime';import{CollaborationEvent as _0x32fcce,ISnapshotServerService as _0xa5d101,ITransformService as _0x23eea6,RevisionService as _0x4a3125,SnapshotLoadStage as _0x3aa3b4,SnapshotLoadingService as _0xd32281,UniverCollaborationPlugin as _0x50773,isTransformMutationFailure as _0x1b03b5,isTransformMutationsWithChangesetSuccess as _0x5311f0}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0x5112e4}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x404c28,DocSkeletonManagerService as _0x13ce1c,DocStateChangeManagerService as _0x56ea32,RichTextEditingMutation as _0x2d00c3,SetTextSelectionsOperation as _0x59a131,UniverDocsPlugin as _0x6e0440}from'@univerjs/docs';import{DocIMEInputManagerService as _0x56d8d9,IDocClipboardService as _0x22f7e7,NodePositionConvertToCursor as _0x46e2d6,NodePositionConvertToRectRange as _0xb7adf9,SetDocZoomRatioOperation as _0x4bfa4a,TEXT_RANGE_LAYER_INDEX as _0x3e6fbc,UniverDocsUIPlugin as _0x27ffaf}from'@univerjs/docs-ui';import{DocumentSkeletonPageType as _0x488f5b,IRenderManagerService as _0x32ed6c,Rect as _0x283f11,RegularPolygon as _0x2cb3ad,SHEET_VIEWPORT_KEY as _0x1b53d2,Shape as _0x281907,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x18e772,UniverRenderEnginePlugin as _0x11f527,Vector2 as _0x1ff5ca,getColor as _0x2eaea6,getDocumentSkeletonColumnPagePathInfo as _0x860ed}from'@univerjs/engine-render';import{HTTPService as _0x32be63,ISocketService as _0x502944,UniverNetworkPlugin as _0x138e0b,WebSocketService as _0x53a61e}from'@univerjs/network';import{deserializeRangeWithSheet as _0x140571,serializeRangeWithSheet as _0x5e0b7e}from'@univerjs/engine-formula';import{EffectRefRangId as _0x2cb63b,RefRangeService as _0x2df9c7,SetSelectionsOperation as _0x1274dc,SetWorksheetActivateCommand as _0x5d4888,SheetsSelectionsService as _0x1a1a7e,handleDeleteRangeMoveLeft as _0x3f88b3,handleDeleteRangeMoveUp as _0x4148e4,handleIRemoveCol as _0xee6ac6,handleIRemoveRow as _0x4e9fab,handleInsertCol as _0x428dbb,handleInsertRangeMoveDown as _0x120244,handleInsertRangeMoveRight as _0x530674,handleInsertRow as _0x5252b5,handleMoveRange as _0x3c74fd,runRefRangeMutations as _0x304ab3}from'@univerjs/sheets';import{SheetSkeletonManagerService as _0x5cd311,getCoordByCell as _0x4b477e,getSheetObject as _0x35f9d2}from'@univerjs/sheets-ui';import{ErrorCode as _0x342cd0}from'@univerjs/protocol';function rn(_0x190263){const _0x5f146c=_0x1250;switch(_0x190263){case _0x52ef7e[_0x5f146c(0x375)]:return{'icon':_0x242b5a(_0x243cbb,{}),'colorClass':'univer-text-red-500','i18nKey':_0x5f146c(0x216),'tooltipKey':_0x5f146c(0x299),'clickable':!0x0,'indicator':_0x5f146c(0x251)};case _0x52ef7e['CONFLICT']:return{'icon':_0x242b5a(_0x243cbb,{}),'colorClass':_0x5f146c(0x354),'i18nKey':_0x5f146c(0x230),'clickable':!0x1,'indicator':_0x5f146c(0x251)};case _0x52ef7e[_0x5f146c(0x13f)]:return{'icon':_0x242b5a(_0x332951,{}),'colorClass':_0x5f146c(0x25b),'i18nKey':_0x5f146c(0x1a7),'clickable':!0x1,'indicator':_0x5f146c(0x205)};case _0x52ef7e[_0x5f146c(0x22e)]:return{'icon':_0x242b5a(_0x2e29c3,{}),'colorClass':_0x5f146c(0x1e4),'i18nKey':_0x5f146c(0x1c0),'clickable':!0x1,'indicator':_0x5f146c(0x251)};case _0x52ef7e[_0x5f146c(0x314)]:case _0x52ef7e['AWAITING_WITH_PENDING']:return{'icon':_0x242b5a(_0x332951,{}),'colorClass':_0x5f146c(0x25b),'i18nKey':_0x5f146c(0x2d4),'clickable':!0x1,'indicator':_0x5f146c(0x205)};case _0x52ef7e['PENDING']:return{'icon':_0x242b5a(_0x332951,{}),'colorClass':_0x5f146c(0x25b),'i18nKey':_0x5f146c(0x2d4),'clickable':!0x1,'indicator':_0x5f146c(0x205)};case _0x52ef7e[_0x5f146c(0x1e8)]:return{'icon':_0x242b5a(_0x2e29c3,{}),'colorClass':_0x5f146c(0x240),'i18nKey':_0x5f146c(0x332),'clickable':!0x1,'indicator':_0x5f146c(0x251)};}}function an(_0xa12bdf){const _0x4fc8fb=_0x1250;let {status$:_0x388d37}=_0xa12bdf,_0x5e7c7c=_0xc78634(_0x388d37,_0x52ef7e['NOT_COLLAB']),_0x133b8e=_0x4ac807(_0x6b982d),_0x20b435=_0x4ac807(_0x1f87ca),_0x53af97=_0x405a3d(()=>rn(_0x5e7c7c),[_0x5e7c7c]),_0x380db4=_0x5e7c7c!==_0x52ef7e[_0x4fc8fb(0x375)],_0x420ce1=_0x133b8e['t'](_0x53af97[_0x4fc8fb(0x2cb)]),_0x97aecb=_0x53af97[_0x4fc8fb(0x2d3)]?_0x133b8e['t'](_0x53af97[_0x4fc8fb(0x2d3)]):_0x420ce1,_0x4a118c=_0x11fc9c(()=>{const _0x4e0d54=_0x4fc8fb;_0x380db4||_0x20b435[_0x4e0d54(0x1b0)]();},[_0x380db4,_0x20b435]),_0x5f2c8f=_0x11fc9c(_0x517321=>{const _0x117266=_0x4fc8fb;!_0x380db4&&(_0x517321[_0x117266(0x112)]===_0x117266(0x254)||_0x517321['key']==='\x20')&&(_0x517321[_0x117266(0x1f8)](),_0x20b435['reconnect']());},[_0x380db4,_0x20b435]),_0x3449ca=_0x242b5a('span',{'className':_0x5c57d6(_0x4fc8fb(0x239),_0x4fc8fb(0x128),_0x53af97[_0x4fc8fb(0x162)],{'univer-animate-spin':_0x53af97['indicator']===_0x4fc8fb(0x205),'univer-animate-pulse':_0x53af97[_0x4fc8fb(0x2e0)]===_0x4fc8fb(0x31d)}),'aria-hidden':_0x4fc8fb(0x1b8),'children':_0x53af97['icon']}),_0x3f98a8=_0x242b5a('span',{'className':_0x5c57d6(_0x4fc8fb(0x239),_0x4fc8fb(0x14a),_0x4fc8fb(0x2dc),_0x4fc8fb(0x246),_0x4fc8fb(0x221),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x53af97[_0x4fc8fb(0x151)],'univer-cursor-default':!_0x53af97['clickable']}),'children':_0x3449ca});return _0x53af97[_0x4fc8fb(0x151)]?_0x242b5a(_0x3c52e1,{'title':_0x97aecb,'placement':_0x4fc8fb(0x261),'children':_0x242b5a(_0x4fc8fb(0x1ce),{'type':_0x4fc8fb(0x1ce),'onClick':_0x4a118c,'onKeyDown':_0x5f2c8f,'className':_0x5c57d6(_0x4fc8fb(0x187),'univer-border-none\x20univer-bg-transparent',_0x4fc8fb(0x29e),_0x4fc8fb(0x1dc)),'aria-label':_0x420ce1+_0x4fc8fb(0x33e)+_0x97aecb,'role':_0x4fc8fb(0x2b0),'aria-live':_0x4fc8fb(0x157),'aria-atomic':_0x4fc8fb(0x1b8),'children':_0x3f98a8})}):_0x242b5a(_0x3c52e1,{'title':_0x97aecb,'placement':_0x4fc8fb(0x261),'children':_0x242b5a(_0x4fc8fb(0x1b2),{'className':_0x5c57d6(_0x4fc8fb(0x187),'univer-border-none\x20univer-bg-transparent',_0x4fc8fb(0x29e)),'aria-label':_0x420ce1,'role':_0x4fc8fb(0x2b0),'aria-live':_0x4fc8fb(0x157),'aria-atomic':_0x4fc8fb(0x1b8),'children':_0x3f98a8})});}function W(_0x37b694){'@babel/helpers - typeof';const _0x12b2ef=_0x1250;return W=typeof Symbol=='function'&&typeof Symbol[_0x12b2ef(0x17c)]=='symbol'?function(_0x1fa03d){return typeof _0x1fa03d;}:function(_0x1fae69){const _0x2278e3=_0x12b2ef;return _0x1fae69&&typeof Symbol==_0x2278e3(0x23f)&&_0x1fae69[_0x2278e3(0x1d8)]===Symbol&&_0x1fae69!==Symbol[_0x2278e3(0x1c7)]?_0x2278e3(0x12b):typeof _0x1fae69;},W(_0x37b694);}function on(_0x2cc456,_0x3161f5){const _0x4c719d=_0x1250;if(W(_0x2cc456)!=_0x4c719d(0x146)||!_0x2cc456)return _0x2cc456;var _0x14fc96=_0x2cc456[Symbol[_0x4c719d(0x22a)]];if(_0x14fc96!==void 0x0){var _0x4b2c26=_0x14fc96[_0x4c719d(0x2a9)](_0x2cc456,_0x3161f5||_0x4c719d(0x2ca));if(W(_0x4b2c26)!=_0x4c719d(0x146))return _0x4b2c26;throw TypeError(_0x4c719d(0x111));}return(_0x3161f5===_0x4c719d(0x2ac)?String:Number)(_0x2cc456);}function sn(_0x16af52){const _0x3a33d3=_0x1250;var _0x3ac9fe=on(_0x16af52,_0x3a33d3(0x2ac));return W(_0x3ac9fe)=='symbol'?_0x3ac9fe:_0x3ac9fe+'';}function G(_0x18e101,_0x473714,_0x231107){const _0x250236=_0x1250;return(_0x473714=sn(_0x473714))in _0x18e101?Object[_0x250236(0x30b)](_0x18e101,_0x473714,{'value':_0x231107,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x18e101[_0x473714]=_0x231107,_0x18e101;}function K(_0x3bcfc4,_0x43dad0){return function(_0x363af5,_0x162ac4){_0x43dad0(_0x363af5,_0x162ac4,_0x3bcfc4);};}function q(_0x15a8ef,_0x4663e3,_0x4669,_0x5f3584){const _0x183d22=_0x1250;var _0x5a00dd=arguments[_0x183d22(0x346)],_0x1efd9e=_0x5a00dd<0x3?_0x4663e3:_0x5f3584===null?_0x5f3584=Object[_0x183d22(0x228)](_0x4663e3,_0x4669):_0x5f3584,_0x25d75a;if(typeof Reflect==_0x183d22(0x146)&&typeof Reflect['decorate']==_0x183d22(0x23f))_0x1efd9e=Reflect[_0x183d22(0x343)](_0x15a8ef,_0x4663e3,_0x4669,_0x5f3584);else{for(var _0x18b805=_0x15a8ef['length']-0x1;_0x18b805>=0x0;_0x18b805--)(_0x25d75a=_0x15a8ef[_0x18b805])&&(_0x1efd9e=(_0x5a00dd<0x3?_0x25d75a(_0x1efd9e):_0x5a00dd>0x3?_0x25d75a(_0x4663e3,_0x4669,_0x1efd9e):_0x25d75a(_0x4663e3,_0x4669))||_0x1efd9e);}return _0x5a00dd>0x3&&_0x1efd9e&&Object[_0x183d22(0x30b)](_0x4663e3,_0x4669,_0x1efd9e),_0x1efd9e;}let J=class extends _0x26d1e6{constructor(_0xe95e86,_0x4d569a,_0x1ecff0,_0x2b8d8e,_0x522e29){const _0x352e0a=_0x1250;super(),this['_univerInstanceService']=_0xe95e86,this[_0x352e0a(0x2ec)]=_0x4d569a,this['_collaborationController']=_0x1ecff0,this[_0x352e0a(0x2db)]=_0x2b8d8e,this[_0x352e0a(0x21f)]=_0x522e29,G(this,_0x352e0a(0x2e4),new _0x52e8e8(_0x52ef7e[_0x352e0a(0x22e)])),G(this,_0x352e0a(0x2b3),new Map()),this[_0x352e0a(0x2f8)](),this[_0x352e0a(0x21b)](),this[_0x352e0a(0x193)]();}[_0x497e61(0x242)](){const _0x1a02b3=_0x497e61;this['_presenceStatusRegistrations'][_0x1a02b3(0x176)](_0x61e25e=>_0x61e25e[_0x1a02b3(0x242)]()),this['_presenceStatusRegistrations'][_0x1a02b3(0x374)](),this[_0x1a02b3(0x2e4)][_0x1a02b3(0x223)](),super[_0x1a02b3(0x242)]();}[_0x497e61(0x21b)](){const _0x1c4480=_0x497e61;this['disposeWithMe'](_0xa40193(this[_0x1c4480(0x1a2)][_0x1c4480(0x244)],this[_0x1c4480(0x1a2)][_0x1c4480(0x321)](_0x159b05[_0x1c4480(0x29c)]),this[_0x1c4480(0x1a2)][_0x1c4480(0x321)](_0x159b05[_0x1c4480(0x25a)]))[_0x1c4480(0x27a)](_0x2de342(()=>cn(this['_univerInstanceService'])),_0x4fd6fd(),_0x4cf5f5(_0x18cf2b=>_0x18cf2b?this[_0x1c4480(0x241)]['getCollabEntity$'](_0x18cf2b):_0x1eef53(null)),_0x4cf5f5(_0x4a11f0=>_0x4a11f0?_0x4a11f0[_0x1c4480(0x179)]:_0x1eef53(_0x52ef7e[_0x1c4480(0x22e)])))[_0x1c4480(0x189)](_0x1b1389=>{const _0x3170fb=_0x1c4480;this[_0x3170fb(0x2e4)]['next'](_0x1b1389);}));}[_0x497e61(0x2f8)](){const _0x2abdcc=_0x497e61;this[_0x2abdcc(0x177)](this['_uiPartsService'][_0x2abdcc(0x263)](_0x4c7d13[_0x2abdcc(0x1a6)],()=>_0x42b10d(ln({'status$':this['_status$'][_0x2abdcc(0x30e)]()}),this[_0x2abdcc(0x2ec)])));}[_0x497e61(0x193)](){const _0x37994f=_0x497e61;let _0x411663=this[_0x37994f(0x21f)][_0x37994f(0x295)][_0x37994f(0x189)](_0x5ebd0f=>{this['_syncPresenceStatusComponents'](_0x5ebd0f);});this[_0x37994f(0x177)](_0x2b7065(()=>_0x411663[_0x37994f(0x1ab)]()));}[_0x497e61(0x1d6)](_0x16220c){const _0x5b4591=_0x497e61;let _0xa2ed02=new Map(_0x16220c[_0x5b4591(0x10d)](_0x260d2e=>_0x260d2e[_0x5b4591(0x35c)]!=null)[_0x5b4591(0x27d)](_0x39888a=>[_0x39888a[_0x5b4591(0x284)],_0x39888a]));this[_0x5b4591(0x2b3)][_0x5b4591(0x176)]((_0x2f6e8b,_0x25bec8)=>{const _0x39021d=_0x5b4591;_0xa2ed02[_0x39021d(0x1c9)](_0x25bec8)||(_0x2f6e8b[_0x39021d(0x242)](),this['_presenceStatusRegistrations']['delete'](_0x25bec8));}),_0xa2ed02['forEach']((_0x5e8a2b,_0x53e648)=>{const _0x175762=_0x5b4591;this[_0x175762(0x2b3)]['has'](_0x53e648)||this['_registerPresenceStatusComponent'](_0x5e8a2b);});}[_0x497e61(0x20c)](_0x22c2d6){const _0x4cb69f=_0x497e61;let _0x13b57f=_0x22c2d6[_0x4cb69f(0x35c)];if(!_0x13b57f)return;let _0x16afb1=new _0x1f8f55(),_0x17c1ec=new _0x52e8e8(_0x52ef7e['NOT_COLLAB']);_0x16afb1['add'](_0x2b7065(()=>_0x17c1ec[_0x4cb69f(0x223)]())),_0x16afb1['add'](this[_0x4cb69f(0x2db)][_0x4cb69f(0x263)](_0x13b57f,()=>_0x42b10d(ln({'status$':_0x17c1ec[_0x4cb69f(0x30e)]()}),this['_injector'])));let _0x5d23a8=this[_0x4cb69f(0x1a2)][_0x4cb69f(0x321)](_0x22c2d6['unitType'])[_0x4cb69f(0x27a)](_0x2de342(_0x37d126=>(_0x37d126==null?void 0x0:_0x37d126[_0x4cb69f(0x15c)]())??null),_0x4fd6fd(),_0x4cf5f5(_0x1fb377=>_0x1fb377?this[_0x4cb69f(0x241)][_0x4cb69f(0x12a)](_0x1fb377):_0x1eef53(null)),_0x4cf5f5(_0x51dd48=>(_0x51dd48==null?void 0x0:_0x51dd48[_0x4cb69f(0x179)])??_0x1eef53(_0x52ef7e[_0x4cb69f(0x22e)])))[_0x4cb69f(0x189)](_0x3c11ca=>_0x17c1ec[_0x4cb69f(0x238)](_0x3c11ca));_0x16afb1[_0x4cb69f(0x17a)](_0x2b7065(()=>_0x5d23a8[_0x4cb69f(0x1ab)]())),this[_0x4cb69f(0x2b3)][_0x4cb69f(0x21d)](_0x22c2d6[_0x4cb69f(0x284)],_0x16afb1);}};J=q([K(0x0,_0x3a4483),K(0x1,_0x3d3024(_0x2351e1)),K(0x2,_0x3d3024(_0x2db83e)),K(0x3,_0x1d4041),K(0x4,_0x3d3024(_0x3eb804))],J);function cn(_0x2541b9){const _0xf31075=_0x497e61;let _0x3956c9=_0x2541b9[_0xf31075(0x214)](),_0x41432b=_0x3956c9==null?void 0x0:_0x3956c9[_0xf31075(0x15c)]();if(_0x41432b&&!_0x189e98(_0x41432b))return _0x41432b;let _0x3f3d25=_0x2541b9[_0xf31075(0x165)](_0x159b05[_0xf31075(0x29c)]),_0xed57be=_0x3f3d25==null?void 0x0:_0x3f3d25[_0xf31075(0x15c)]();if(_0xed57be&&!_0x189e98(_0xed57be))return _0xed57be;let _0x3a8f47=_0x2541b9[_0xf31075(0x165)](_0x159b05[_0xf31075(0x25a)]);if(_0x3a8f47)return _0x3a8f47[_0xf31075(0x15c)]();let _0x28f4ff=_0x2541b9['getAllUnitsForType'](_0x159b05[_0xf31075(0x29c)])[_0xf31075(0x2a0)](_0x3355b6=>!_0x189e98(_0x3355b6['getUnitId']()));return _0x28f4ff?_0x28f4ff['getUnitId']():null;}function ln(_0x3d9c4d){let {status$:_0xd51737}=_0x3d9c4d;return function(){return _0x242b5a(an,{'status$':_0xd51737});};}var un='@univerjs-pro/collaboration-client-ui',dn=_0x497e61(0x201);const Y={'id':'collaboration-client-ui.operation.update-remote-unit-presence','type':_0x38ddad['OPERATION'],'handler':(_0x230f27,_0x22235a)=>{const _0xdc29ac=_0x497e61;let _0x485072=_0x230f27[_0xdc29ac(0x1b9)](_0x3eb804)[_0xdc29ac(0x1b9)](_0x22235a[_0xdc29ac(0x284)]);if(!_0x485072)return!0x1;switch(_0x22235a[_0xdc29ac(0x204)][_0xdc29ac(0x2a5)]){case _0xdc29ac(0x21d):return _0x485072[_0xdc29ac(0x2d5)](_0x22235a[_0xdc29ac(0x204)]['state']),!0x0;case _0xdc29ac(0x2c6):return _0x485072[_0xdc29ac(0x2f3)](_0x22235a['update']['unitId'],_0x22235a[_0xdc29ac(0x204)][_0xdc29ac(0x272)]),!0x0;case _0xdc29ac(0x374):return _0x485072['clearRemotePresences'](_0x22235a[_0xdc29ac(0x204)]['unitId']),!0x0;default:return!0x1;}}},fn={};let X=class extends _0xe6d4b{constructor(_0x4659cf,_0x133d3f){const _0x4d31d3=_0x497e61;super(),this['_docClipboardService']=_0x4659cf,this[_0x4d31d3(0x14e)]=_0x133d3f,this[_0x4d31d3(0x1a4)]();}['_init'](){const _0x196d2d=_0x497e61;let _0x4554f3=this;this[_0x196d2d(0x177)](this[_0x196d2d(0x2c8)][_0x196d2d(0x257)]({'onBeforePasteImage':async _0x5922ff=>{const _0x5c341a=_0x196d2d;let _0x48cfe7=await _0x4554f3[_0x5c341a(0x14e)][_0x5c341a(0x36b)](_0x5922ff);return _0x48cfe7?{'source':_0x48cfe7[_0x5c341a(0x367)],'imageSourceType':_0x48cfe7[_0x5c341a(0x305)]}:null;}}));}};X=q([K(0x0,_0x22f7e7),K(0x1,_0x27dbba)],X);const pn=[_0x497e61(0x291),'jiqing.500',_0x497e61(0x2f2),_0x497e61(0x21e),_0x497e61(0x17f),_0x497e61(0x232)];var mn=class extends _0x26d1e6{constructor(..._0x33ba4e){super(..._0x33ba4e),G(this,'_assignedColors',new Map()),G(this,'_colorIndex',0x0);}[_0x497e61(0x153)](_0x2f5efe){const _0x35ad09=_0x497e61;if(this[_0x35ad09(0x32e)]['has'](_0x2f5efe))return this[_0x35ad09(0x32e)]['get'](_0x2f5efe);let _0x3c261f=pn[this['_colorIndex']];return this[_0x35ad09(0x23c)]=(this[_0x35ad09(0x23c)]+0x1)%pn[_0x35ad09(0x346)],this[_0x35ad09(0x32e)]['set'](_0x2f5efe,_0x3c261f),_0x3c261f;}};function hn(_0x3adf93){const _0x4de237=_0x497e61;let _0xafea11='';for(let _0x884c5 of _0x3adf93){let {startOffset:_0x6db516,endOffset:_0x15d13b,isActive:_0x1b4e6a,rangeType:_0x13a256,segmentId:_0x5bec07,segmentPage:_0x396d8b}=_0x884c5;_0xafea11[_0x4de237(0x346)]&&(_0xafea11+=','),_0xafea11+=_0x6db516+':'+_0x15d13b+':'+(_0x1b4e6a?'1':'0')+':'+_0x13a256+':'+_0x5bec07+':'+_0x396d8b;}return _0xafea11;}function gn(_0x34262d){const _0x44e043=_0x497e61;let _0x28eb4c=_0x34262d[_0x44e043(0x1d1)](','),_0xf90732=[];for(let _0x1aadcf of _0x28eb4c){let [_0x5f37ce,_0x45e005,_0x552c86,_0x3435c0,_0x5c5ccf,_0x32436e]=_0x1aadcf[_0x44e043(0x1d1)](':');_0xf90732[_0x44e043(0x24b)]({'startOffset':Number(_0x5f37ce),'endOffset':Number(_0x45e005),'collapsed':_0x5f37ce===_0x45e005,'isActive':_0x552c86==='1','rangeType':_0x3435c0===_0x1da835[_0x44e043(0x15f)]?_0x1da835[_0x44e043(0x15f)]:_0x1da835[_0x44e043(0x227)],'segmentId':typeof _0x5c5ccf==_0x44e043(0x2ac)?String(_0x5c5ccf):'','segmentPage':Number(_0x32436e??-0x1)});}return _0xf90732[_0x44e043(0x1e3)](_0x116849=>_0x116849['isActive'])||(_0xf90732[0x0][_0x44e043(0x13c)]=!0x0),_0xf90732;}var _n=class extends _0xe6d4b{constructor(..._0x5bc346){const _0x4b5c4a=_0x497e61;super(..._0x5bc346),G(this,_0x4b5c4a(0x327),new _0x52e8e8(null)),G(this,'collabCursorState$',this[_0x4b5c4a(0x327)][_0x4b5c4a(0x30e)]());}[_0x497e61(0x1c2)](_0xa64732){const _0x5db2a7=_0x497e61;let {unitID:_0x25a95e,memberID:_0x40bbab,textRanges:_0x2fe597}=_0xa64732,_0x46cf19=hn(_0x2fe597);if(_0x46cf19==='')return;let _0x47778b={'unitID':_0x25a95e,'memberID':_0x40bbab,'selection':_0x46cf19};this[_0x5db2a7(0x327)]['next'](_0x47778b);}};let vn=class extends _0xe6d4b{get[_0x497e61(0x372)](){const _0x18ba2a=_0x497e61;return this[_0x18ba2a(0x113)][_0x18ba2a(0x18e)]();}get[_0x497e61(0x1f5)](){const _0x35dd3f=_0x497e61;return this[_0x35dd3f(0x19e)][_0x35dd3f(0x18e)]();}constructor(_0x44731c,_0x174e41,_0x50758b,_0x5dd32e,_0x189e95,_0xd012ff,_0x193485,_0x3f8578,_0x3a0154){const _0x105092=_0x497e61;super(),this[_0x105092(0x2c4)]=_0x44731c,this['_session']=_0x174e41,this[_0x105092(0x2ec)]=_0x50758b,this[_0x105092(0x171)]=_0x5dd32e,this[_0x105092(0x31c)]=_0x189e95,this[_0x105092(0x331)]=_0xd012ff,this[_0x105092(0x356)]=_0x193485,this[_0x105092(0x1a2)]=_0x3f8578,this[_0x105092(0x28b)]=_0x3a0154,G(this,_0x105092(0x32a),!0x1),G(this,_0x105092(0x1a4),!0x1),G(this,_0x105092(0x113),new _0x52e8e8(new Map())),G(this,_0x105092(0x308),this[_0x105092(0x113)][_0x105092(0x30e)]()),G(this,_0x105092(0x19e),new _0x52e8e8([])),G(this,'roomMembers$',this['_roomMembers$'][_0x105092(0x27a)](_0x518394(0x12c))),G(this,'_updateLocalCursor',_0x43170b(_0xa2eac4=>{const _0x363c4a=_0x105092;let _0x1a3ec7={'eventID':_0x32fcce[_0x363c4a(0x277)],'data':{'unitID':this[_0x363c4a(0x2c4)],'memberID':this[_0x363c4a(0x2f5)]['getMemberID'](),'selection':hn(_0xa2eac4)}};this[_0x363c4a(0x2f5)]['send'](_0x1a3ec7,this[_0x363c4a(0x2c4)]);},0x64));}[_0x497e61(0x242)](){const _0x2dbc7a=_0x497e61;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0x2dbc7a(0x113)][_0x2dbc7a(0x223)](),this[_0x2dbc7a(0x19e)][_0x2dbc7a(0x238)]([]),this[_0x2dbc7a(0x19e)][_0x2dbc7a(0x223)]();}['init'](){const _0x47d181=_0x497e61;this[_0x47d181(0x1a4)]||(this[_0x47d181(0x1a4)]=!0x0,this[_0x47d181(0x2f5)][_0x47d181(0x170)][_0x47d181(0x27a)](_0x4eb845(this[_0x47d181(0x1f0)]))[_0x47d181(0x189)](_0x5b9f63=>{const _0x10f1a1=_0x47d181;_0x5b9f63===_0x4af289[_0x10f1a1(0x169)]?this[_0x10f1a1(0x2ea)]():this[_0x10f1a1(0x1b1)]();}),this[_0x47d181(0x2f5)]['event$']['pipe'](_0x4eb845(this[_0x47d181(0x1f0)]))[_0x47d181(0x189)](_0x52e8ea=>{const _0x296f5a=_0x47d181;let _0x5ac62e=_0x52e8ea['eventID'];_0x5ac62e===_0x32fcce[_0x296f5a(0x277)]&&this[_0x296f5a(0x2a3)](_0x52e8ea),_0x5ac62e===_0x32fcce[_0x296f5a(0x25d)]&&this[_0x296f5a(0x1ae)](_0x52e8ea);}),this['disposeWithMe'](this[_0x47d181(0x28b)][_0x47d181(0x22c)](_0x5a824c=>{const _0x38115e=_0x47d181;let _0x15475d=_0x5a824c[_0x38115e(0x300)];_0x15475d!=null&&this[_0x38115e(0x32a)]&&_0x5a824c['id']===_0x59a131['id']&&_0x15475d['unitId']===this[_0x38115e(0x2c4)]&&_0x15475d[_0x38115e(0x137)]===!0x1&&_0x15475d[_0x38115e(0x191)][_0x38115e(0x346)]>0x0&&this[_0x38115e(0x281)](_0x15475d['ranges']);})),this[_0x47d181(0x331)][_0x47d181(0x133)]['pipe'](_0x4eb845(this[_0x47d181(0x1f0)]))[_0x47d181(0x189)](_0x351e41=>{const _0x4876fc=_0x47d181;if((_0x351e41==null?void 0x0:_0x351e41['unitID'])!==this[_0x4876fc(0x2c4)])return;let _0x5956b8={'eventID':_0x32fcce[_0x4876fc(0x277)],'data':_0x351e41};this['_onCursorUpdate'](_0x5956b8);}),this['disposeWithMe'](this[_0x47d181(0x28b)][_0x47d181(0x22c)](_0x5bf799=>{const _0x326206=_0x47d181;if(_0x5bf799[_0x326206(0x300)]==null)return;let _0x1478a9=_0x5bf799[_0x326206(0x300)];if(_0x5bf799['id']!==_0x2d00c3['id']||_0x1478a9[_0x326206(0x276)]!==this[_0x326206(0x2c4)])return;let _0x45f934={'id':_0x326206(0x361),'params':_0x1478a9},_0x11b481=this[_0x326206(0x372)];for(let [_0xafcb9,_0x309377]of _0x11b481){let _0xff88a8={'id':_0x326206(0x361),'params':{'unitId':this[_0x326206(0x2c4)],'actions':null,'textRanges':_0x309377[_0x326206(0x191)]}},_0x3beb8b=this[_0x326206(0x356)][_0x326206(0x1a8)](_0x45f934,_0xff88a8,!0x1);if(_0x1b03b5(_0x3beb8b))throw _0x3beb8b[_0x326206(0x264)];_0x11b481[_0x326206(0x21d)](_0xafcb9,{..._0x309377,'ranges':_0x3beb8b[_0x326206(0x2df)][_0x326206(0x300)][_0x326206(0x152)]});}queueMicrotask(()=>{const _0x1f5cd6=_0x326206;this[_0x1f5cd6(0x113)][_0x1f5cd6(0x238)](_0x11b481);});})));}[_0x497e61(0x2a3)](_0x19f6b4){const _0x3f6aac=_0x497e61;var _0x3c34e5;let {memberID:_0x4e3bce,selection:_0x352fde}=_0x19f6b4[_0x3f6aac(0x296)],_0x31c751=gn(_0x352fde),_0x538879=((_0x3c34e5=this[_0x3f6aac(0x31c)][_0x3f6aac(0x1e6)](this[_0x3f6aac(0x2c4)],_0x4e3bce))==null?void 0x0:_0x3c34e5[_0x3f6aac(0x196)])??_0x3f6aac(0x142),_0x249b08={'color':this[_0x3f6aac(0x171)][_0x3f6aac(0x153)](_0x4e3bce),'name':_0x538879,'ranges':_0x31c751},_0x265b34=this['cursorInfo'];_0x265b34['set'](_0x4e3bce,_0x249b08),this[_0x3f6aac(0x113)][_0x3f6aac(0x238)](_0x265b34);}[_0x497e61(0x1ae)](_0x33b0a8){const _0x34f419=_0x497e61;let {memberID:_0x38aa3a}=_0x33b0a8['data'],_0x20bd84=this[_0x34f419(0x372)];_0x20bd84['delete'](_0x38aa3a),this[_0x34f419(0x113)][_0x34f419(0x238)](_0x20bd84);}[_0x497e61(0x2ea)](){const _0x559ad9=_0x497e61;var _0x1a7916;if(this[_0x559ad9(0x32a)]=!0x0,((_0x1a7916=this[_0x559ad9(0x1a2)][_0x559ad9(0x214)]())==null?void 0x0:_0x1a7916[_0x559ad9(0x15c)]())!==this[_0x559ad9(0x2c4)])return;let _0xfdb1c2=this[_0x559ad9(0x2ec)][_0x559ad9(0x1b9)](_0x404c28)[_0x559ad9(0x1c3)]();Array[_0x559ad9(0x115)](_0xfdb1c2)&&_0xfdb1c2['length']>0x0&&this[_0x559ad9(0x281)](_0xfdb1c2);}[_0x497e61(0x1b1)](){this['_online']=!0x1;}};vn=q([K(0x2,_0x3d3024(_0x2351e1)),K(0x3,_0x3d3024(mn)),K(0x4,_0x3d3024(_0x1d0690)),K(0x5,_0x3d3024(_n)),K(0x6,_0x23eea6),K(0x7,_0x3a4483),K(0x8,_0x137b25)],vn);const yn=()=>{let _0xdd56a1=[],_0x55d467=!0x1;return _0x20243f=>{const _0x3fad4d=_0x1250;_0xdd56a1[_0x3fad4d(0x24b)](_0x20243f),_0x55d467||(_0x55d467=!0x0,setTimeout(()=>{const _0x2a0eaf=_0x3fad4d;_0xdd56a1[_0x2a0eaf(0x176)](_0x596748=>_0x596748()),_0xdd56a1=[],_0x55d467=!0x1;}));};};let bn=class extends _0xe6d4b{get[_0x497e61(0x372)](){const _0x124aa3=_0x497e61;return this[_0x124aa3(0x113)]['getValue']();}get[_0x497e61(0x1f5)](){const _0x92dd76=_0x497e61;return this[_0x92dd76(0x19e)][_0x92dd76(0x18e)]();}constructor(_0x3ae721,_0x71bca0,_0x548363,_0x232c97,_0x3c7872,_0x45388b,_0x36c1ec,_0x52d0f9){const _0x2fac94=_0x497e61;super(),this['unitID']=_0x3ae721,this[_0x2fac94(0x2f5)]=_0x71bca0,this['_injector']=_0x548363,this[_0x2fac94(0x171)]=_0x232c97,this[_0x2fac94(0x31c)]=_0x3c7872,this[_0x2fac94(0x1a2)]=_0x45388b,this[_0x2fac94(0x28b)]=_0x36c1ec,this['_refRangeService']=_0x52d0f9,G(this,_0x2fac94(0x32a),!0x1),G(this,_0x2fac94(0x1a4),!0x1),G(this,'_cursorInfo$',new _0x52e8e8(new Map())),G(this,'cursorInfo$',this[_0x2fac94(0x113)][_0x2fac94(0x30e)]()),G(this,_0x2fac94(0x19e),new _0x52e8e8([])),G(this,'roomMembers$',this[_0x2fac94(0x19e)][_0x2fac94(0x27a)](_0x518394(0x12c))),G(this,_0x2fac94(0x281),_0x43170b((_0x3b9389,_0x3fe322)=>{const _0x3d3072=_0x2fac94;let _0xf98f75={'eventID':_0x32fcce['UPDATE_CURSOR'],'data':{'unitID':this[_0x3d3072(0x2c4)],'memberID':this[_0x3d3072(0x2f5)][_0x3d3072(0x2aa)](),'selection':_0x5e0b7e(_0x3b9389,_0x3fe322[_0x3d3072(0x1ec)])}};this['_session'][_0x3d3072(0x2da)](_0xf98f75,this[_0x3d3072(0x2c4)]);},0x64));}['dispose'](){const _0x2075e3=_0x497e61;super[_0x2075e3(0x242)](),this['_cursorInfo$']['next'](new Map()),this[_0x2075e3(0x113)][_0x2075e3(0x223)](),this[_0x2075e3(0x19e)]['next']([]),this['_roomMembers$']['complete']();}['init'](){const _0x3aab19=_0x497e61;this[_0x3aab19(0x1a4)]||(this[_0x3aab19(0x1a4)]=!0x0,this[_0x3aab19(0x2f5)][_0x3aab19(0x170)][_0x3aab19(0x27a)](_0x4eb845(this['dispose$']))['subscribe'](_0x505e01=>{const _0x413709=_0x3aab19;_0x505e01===_0x4af289[_0x413709(0x169)]?this[_0x413709(0x2ea)]():this[_0x413709(0x1b1)]();}),this['_session']['event$']['pipe'](_0x4eb845(this[_0x3aab19(0x1f0)]))[_0x3aab19(0x189)](_0xe35b65=>{const _0x4da415=_0x3aab19;let _0x563a92=_0xe35b65[_0x4da415(0x335)];_0x563a92===_0x32fcce[_0x4da415(0x277)]&&this[_0x4da415(0x2a3)](_0xe35b65),_0x563a92===_0x32fcce[_0x4da415(0x25d)]&&this[_0x4da415(0x1ae)](_0xe35b65);}),this[_0x3aab19(0x18d)](),this['disposeWithMe'](this[_0x3aab19(0x28b)][_0x3aab19(0x22c)](_0x4a3238=>{const _0x5458f3=_0x3aab19;if(this[_0x5458f3(0x32a)]&&_0x4a3238['id']===_0x1274dc['id']&&_0x4a3238['params'][_0x5458f3(0x276)]===this['unitID']){let _0x48c4e7=_0x4a3238[_0x5458f3(0x300)];this[_0x5458f3(0x281)](_0x48c4e7[_0x5458f3(0x1da)],_0x48c4e7[_0x5458f3(0x11d)][0x0]);}})));}['_onCursorUpdate'](_0x3f1fc2){const _0x5c7648=_0x497e61;var _0x33eca4;let {memberID:_0x2a03d7,selection:_0x41b910}=_0x3f1fc2[_0x5c7648(0x296)],{sheetName:_0xc5f743,range:_0x2bf0c8}=_0x140571(_0x41b910),_0x39cc73={'name':((_0x33eca4=this[_0x5c7648(0x31c)][_0x5c7648(0x1e6)](this['unitID'],_0x2a03d7))==null?void 0x0:_0x33eca4[_0x5c7648(0x196)])??_0x5c7648(0x142),'range':this['_getMergeRange'](_0xc5f743,_0x2bf0c8),'sheetID':_0xc5f743,'color':this['_colorAssignService'][_0x5c7648(0x153)](_0x2a03d7),'selection':_0x41b910},_0x5d035e=this[_0x5c7648(0x372)];_0x5d035e['set'](_0x2a03d7,_0x39cc73),this[_0x5c7648(0x113)][_0x5c7648(0x238)](_0x5d035e);}['_onCursorDelete'](_0x565742){const _0x291774=_0x497e61;let {memberID:_0x5162ec}=_0x565742[_0x291774(0x296)],_0x2fe2c2=this[_0x291774(0x372)];_0x2fe2c2[_0x291774(0x23e)](_0x5162ec),this[_0x291774(0x113)][_0x291774(0x238)](_0x2fe2c2);}[_0x497e61(0x2de)](_0x374b96,_0x3b0c9c){const _0x314e39=_0x497e61;var _0x3e3ab4;let _0x27a13c=(_0x3e3ab4=this[_0x314e39(0x1a2)][_0x314e39(0x2ce)](this['unitID'],_0x159b05[_0x314e39(0x25a)]))==null||(_0x3e3ab4=_0x3e3ab4[_0x314e39(0x2d0)](_0x374b96))==null?void 0x0:_0x3e3ab4[_0x314e39(0x2b9)]();return(_0x27a13c==null?void 0x0:_0x27a13c['find'](_0x5d7238=>_0x4de5df['contains'](_0x5d7238,_0x3b0c9c)))||_0x3b0c9c;}[_0x497e61(0x18d)](){const _0x2ed1db=_0x497e61;let _0x32ad25=new _0x1f8f55(),_0x4a0ccd=yn(),_0x14aaba=()=>{const _0x58fa47=_0x1250;_0x32ad25[_0x58fa47(0x242)]();let _0x5b6a52=(_0x25ab67,_0x3ec766,_0x164103,_0x47c886)=>{const _0x22e5b5=_0x58fa47;let _0x36adaf=[];switch(_0x25ab67['id']){case _0x2cb63b[_0x22e5b5(0x2fe)]:_0x36adaf=_0x3f88b3(_0x25ab67,_0x47c886);break;case _0x2cb63b[_0x22e5b5(0x2c7)]:_0x36adaf=_0x4148e4(_0x25ab67,_0x47c886);break;case _0x2cb63b[_0x22e5b5(0x26c)]:_0x36adaf=_0x428dbb(_0x25ab67,_0x47c886);break;case _0x2cb63b['InsertRangeMoveDownCommandId']:_0x36adaf=_0x120244(_0x25ab67,_0x47c886);break;case _0x2cb63b[_0x22e5b5(0x298)]:_0x36adaf=_0x530674(_0x25ab67,_0x47c886);break;case _0x2cb63b[_0x22e5b5(0x16f)]:_0x36adaf=_0x5252b5(_0x25ab67,_0x47c886);break;case _0x2cb63b[_0x22e5b5(0x267)]:_0x36adaf=_0x3c74fd(_0x25ab67,_0x47c886);break;case _0x2cb63b['RemoveColCommandId']:_0x36adaf=_0xee6ac6(_0x25ab67,_0x47c886);break;case _0x2cb63b[_0x22e5b5(0x344)]:_0x36adaf=_0x4e9fab(_0x25ab67,_0x47c886);}let _0x49f022=_0x304ab3(_0x36adaf,_0x47c886),_0xda7a46=this[_0x22e5b5(0x372)]['get'](_0x3ec766);if(_0xda7a46&&_0x49f022){let _0x1f9e37={..._0xda7a46,'range':_0x49f022};this[_0x22e5b5(0x372)]['set'](_0x3ec766,_0x1f9e37),_0x4a0ccd(()=>{const _0x5a6291=_0x22e5b5;let _0x1dfb30=this[_0x5a6291(0x368)][_0x5a6291(0x1a5)](_0x49f022,_0xf2340b=>(_0x1dfb30['dispose'](),_0x5b6a52(_0xf2340b,_0x3ec766,_0x164103,_0x49f022)));_0x32ad25['add'](_0x1dfb30);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x58fa47(0x176)]((_0x3c01fa,_0x272358)=>{const _0x239ff5=_0x58fa47;let {range:_0xc064d1,sheetID:_0x488b0e}=_0x3c01fa,_0x5a4589=this[_0x239ff5(0x368)][_0x239ff5(0x1a5)](_0xc064d1,_0x5eb46c=>(_0x5a4589['dispose'](),_0x5b6a52(_0x5eb46c,_0x272358,_0x488b0e,_0xc064d1)));_0x32ad25[_0x239ff5(0x17a)](_0x5a4589);});};this[_0x2ed1db(0x177)](_0x2b7065(this[_0x2ed1db(0x113)][_0x2ed1db(0x189)](()=>{_0x14aaba();})));}[_0x497e61(0x2ea)](){const _0xcbeeee=_0x497e61;var _0x30169d,_0x24ea68;if(this['_online']=!0x0,((_0x30169d=this['_univerInstanceService'][_0xcbeeee(0x214)]())==null?void 0x0:_0x30169d[_0xcbeeee(0x15c)]())!==this['unitID'])return;let _0x1b2dc6=(_0x24ea68=this['_injector'][_0xcbeeee(0x1b9)](_0x1a1a7e)[_0xcbeeee(0x158)]())==null?void 0x0:_0x24ea68[0x0],_0x302c4c=this[_0xcbeeee(0x1a2)][_0xcbeeee(0x165)](_0x159b05[_0xcbeeee(0x25a)])[_0xcbeeee(0x24c)]();_0x1b2dc6&&_0x302c4c&&this[_0xcbeeee(0x281)](_0x302c4c[_0xcbeeee(0x378)](),_0x1b2dc6);}['_toggleOffline'](){const _0x1b4d1c=_0x497e61;this[_0x1b4d1c(0x32a)]=!0x1;}};bn=q([K(0x2,_0x3d3024(_0x2351e1)),K(0x3,_0x3d3024(mn)),K(0x4,_0x3d3024(_0x1d0690)),K(0x5,_0x3a4483),K(0x6,_0x137b25),K(0x7,_0x3d3024(_0x2df9c7))],bn);let Z=class extends _0xe6d4b{constructor(_0x1b31e4,_0x39cb52,_0x2383ff){const _0x526ef8=_0x497e61;super(),this[_0x526ef8(0x1a2)]=_0x1b31e4,this[_0x526ef8(0x2ec)]=_0x39cb52,this[_0x526ef8(0x2b8)]=_0x2383ff,G(this,_0x526ef8(0x119),new Map()),G(this,'_entityInit$',new _0x336cf5()),this[_0x526ef8(0x1a4)]();}['dispose'](){const _0x52e50c=_0x497e61;super[_0x52e50c(0x242)](),this[_0x52e50c(0x225)][_0x52e50c(0x223)](),this[_0x52e50c(0x119)][_0x52e50c(0x176)](_0x5a2fc1=>_0x5a2fc1[_0x52e50c(0x242)]());}['getCollabCursors$'](_0x1bda4e){const _0x3130f8=_0x497e61;let _0x20a6cf=this[_0x3130f8(0x119)][_0x3130f8(0x1b9)](_0x1bda4e);return _0x20a6cf?_0x20a6cf[_0x3130f8(0x308)]:this[_0x3130f8(0x225)][_0x3130f8(0x27a)](_0xeb3cf0(_0x8fcf59=>_0x8fcf59['unitID']===_0x1bda4e),_0x4cf5f5(_0x115d29=>_0x115d29[_0x3130f8(0x308)]));}[_0x497e61(0x1a4)](){const _0x1bbc7a=_0x497e61;this[_0x1bbc7a(0x1a2)][_0x1bbc7a(0x30c)](_0x159b05[_0x1bbc7a(0x25a)])[_0x1bbc7a(0x27a)](_0x4eb845(this['dispose$']))[_0x1bbc7a(0x189)](async _0x47e1ab=>{const _0x3af952=_0x1bbc7a;let _0x5be242=_0x47e1ab['unit']['getUnitId'](),_0x3d1b07=await this['_startSheetCollabCursor'](_0x5be242);this['_entityInit$'][_0x3af952(0x238)](_0x3d1b07),this[_0x3af952(0x119)][_0x3af952(0x21d)](_0x5be242,_0x3d1b07);}),this[_0x1bbc7a(0x1a2)][_0x1bbc7a(0x30c)](_0x159b05[_0x1bbc7a(0x29c)])[_0x1bbc7a(0x27a)](_0x4eb845(this[_0x1bbc7a(0x1f0)]))['pipe'](_0xeb3cf0(_0x38286e=>!_0x38286e[_0x1bbc7a(0x2f9)]['getUnitId']()[_0x1bbc7a(0x32c)]('__')))[_0x1bbc7a(0x189)](async _0x17415d=>{const _0x3a18bc=_0x1bbc7a;let {unit:_0x361bcb}=_0x17415d,_0x787183=_0x361bcb[_0x3a18bc(0x15c)](),_0x395bed=await this[_0x3a18bc(0x117)](_0x787183);this[_0x3a18bc(0x225)]['next'](_0x395bed),this[_0x3a18bc(0x119)][_0x3a18bc(0x21d)](_0x787183,_0x395bed);}),_0xa40193(this['_univerInstanceService'][_0x1bbc7a(0x148)](_0x159b05[_0x1bbc7a(0x29c)]),this[_0x1bbc7a(0x1a2)]['getTypeOfUnitDisposed$'](_0x159b05['UNIVER_SHEET']))[_0x1bbc7a(0x27a)](_0x4eb845(this[_0x1bbc7a(0x1f0)]))['subscribe'](_0x42d8a6=>{const _0x52aef5=_0x1bbc7a;let _0x34c5ed=_0x42d8a6[_0x52aef5(0x15c)](),_0x1cacf3=this['_entities']['get'](_0x34c5ed);_0x1cacf3&&(_0x1cacf3[_0x52aef5(0x242)](),this[_0x52aef5(0x119)]['delete'](_0x34c5ed));});}async[_0x497e61(0x16c)](_0x14d9f5){const _0x223e05=_0x497e61;let _0x58a328=await this[_0x223e05(0x2b8)][_0x223e05(0x2bc)](_0x14d9f5),_0x27793d=this[_0x223e05(0x2ec)]['createInstance'](bn,_0x14d9f5,_0x58a328);return _0x27793d['init'](),_0x27793d;}async[_0x497e61(0x117)](_0x182b05){const _0x43d5b1=_0x497e61;let _0xcb54eb=await this[_0x43d5b1(0x2b8)][_0x43d5b1(0x2bc)](_0x182b05),_0x1b7fe4=this[_0x43d5b1(0x2ec)][_0x43d5b1(0x268)](vn,_0x182b05,_0xcb54eb);return _0x1b7fe4['init'](),_0x1b7fe4;}};Z=q([K(0x0,_0x3a4483),K(0x1,_0x3d3024(_0x2351e1)),K(0x2,_0x3d3024(_0x1f87ca))],Z);function xn(_0xe690e5,_0x16ab68){const _0x1a0ea9=_0x497e61;_0xe690e5['save'](),_0xe690e5['font']=_0x1a0ea9(0x16a);let _0x372ace=_0xe690e5['measureText'](_0x16ab68)[_0x1a0ea9(0x1f3)];return _0xe690e5['restore'](),Math[_0x1a0ea9(0x28f)](_0x372ace+0x8,0xc8);}function Sn(_0x1e6fdc,_0x22466e){const _0x5e38b0=_0x497e61;let {radius:_0x278439,width:_0xe805f,height:_0x451f8f}=_0x22466e;_0x278439??=0x0,_0xe805f??=0x1e,_0x451f8f??=0x1e;let _0x458f83=0x0,_0x2c7f28=0x0,_0x214bd7=0x0;_0x458f83=_0x2c7f28=_0x214bd7=Math[_0x5e38b0(0x28f)](_0x278439,_0xe805f/0x2,_0x451f8f/0x2),_0x1e6fdc[_0x5e38b0(0x34c)](),_0x1e6fdc[_0x5e38b0(0x14c)](_0x458f83,0x0),_0x1e6fdc['lineTo'](_0xe805f-_0x2c7f28,0x0),_0x1e6fdc[_0x5e38b0(0x1bf)](_0xe805f-_0x2c7f28,_0x2c7f28,_0x2c7f28,Math['PI']*0x3/0x2,0x0,!0x1),_0x1e6fdc[_0x5e38b0(0x35f)](_0xe805f,_0x451f8f-_0x214bd7),_0x1e6fdc['arc'](_0xe805f-_0x214bd7,_0x451f8f-_0x214bd7,_0x214bd7,0x0,Math['PI']/0x2,!0x1),_0x1e6fdc[_0x5e38b0(0x35f)](0x0,_0x451f8f),_0x1e6fdc[_0x5e38b0(0x35f)](0x0,_0x458f83),_0x1e6fdc['arc'](_0x458f83,_0x458f83,_0x458f83,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1e6fdc[_0x5e38b0(0x1cf)](),_0x22466e[_0x5e38b0(0x1c8)]&&(_0x1e6fdc[_0x5e38b0(0x37a)](),_0x1e6fdc[_0x5e38b0(0x23b)]=_0x22466e[_0x5e38b0(0x1c8)],_0x22466e['fillRule']===_0x5e38b0(0x11f)?_0x1e6fdc[_0x5e38b0(0x1c8)](_0x5e38b0(0x11f)):_0x1e6fdc[_0x5e38b0(0x1c8)](),_0x1e6fdc[_0x5e38b0(0x1c4)]());}var Cn=class e extends _0x281907{constructor(_0x2fad17,_0xe32dc4){const _0x4e6e96=_0x497e61;super(_0x2fad17,_0xe32dc4),G(this,_0x4e6e96(0x25c),void 0x0),G(this,_0x4e6e96(0x24f),void 0x0),this['color']=_0xe32dc4==null?void 0x0:_0xe32dc4[_0x4e6e96(0x25c)],this[_0x4e6e96(0x24f)]=_0xe32dc4==null?void 0x0:_0xe32dc4['text'];}static[_0x497e61(0x1cb)](_0x5c0f96,_0x3fb553){const _0x4494ef=_0x497e61;let {text:_0x2d5344,color:_0xbd595d}=_0x3fb553;_0x5c0f96[_0x4494ef(0x37a)](),_0x5c0f96['font']=_0x4494ef(0x222);let _0x3d38f2=_0x5c0f96[_0x4494ef(0x339)](_0x2d5344)['width'];if(Sn(_0x5c0f96,{'height':0x14,'radius':0x4,'width':xn(_0x5c0f96,_0x2d5344),'fill':_0xbd595d,'evented':!0x1}),_0x5c0f96[_0x4494ef(0x23b)]=_0x4494ef(0x16b),_0x3d38f2>0xc0){let _0x5bdea9='',_0x127fe5=0x0;for(let _0x43b2e8 of _0x2d5344){let _0x289efd=_0x5c0f96[_0x4494ef(0x339)](_0x43b2e8)[_0x4494ef(0x1f3)];if(_0x127fe5+_0x289efd<=0xc0-_0x5c0f96[_0x4494ef(0x339)](_0x4494ef(0x1af))[_0x4494ef(0x1f3)])_0x5bdea9+=_0x43b2e8,_0x127fe5+=_0x289efd;else{_0x5bdea9+=_0x4494ef(0x1af);break;}}_0x5c0f96[_0x4494ef(0x215)](_0x5bdea9,0x4,0xf);}else _0x5c0f96['fillText'](_0x2d5344,0x4,0xf);_0x5c0f96[_0x4494ef(0x1c4)]();}[_0x497e61(0x1d5)](_0x420289){const _0x306f08=_0x497e61;e[_0x306f08(0x1cb)](_0x420289,this);}};const wn=_0x497e61(0x30f);var Tn=class{constructor(_0x40395a,_0x3250eb,_0x18b546,_0x70aca0){const _0x2d043c=_0x497e61;this[_0x2d043c(0x220)]=_0x40395a,this[_0x2d043c(0x1f1)]=_0x3250eb,this[_0x2d043c(0x183)]=_0x18b546,this['_document']=_0x70aca0,G(this,_0x2d043c(0x366),[]),G(this,_0x2d043c(0x369),null),G(this,'_textBubble',null),G(this,_0x2d043c(0x37b),null),G(this,_0x2d043c(0x150),null),G(this,'_eventUnsubscribe',null),this[_0x2d043c(0x184)]();}set[_0x497e61(0x341)](_0x1ca9c6){const _0xb0d8a=_0x497e61;_0x1ca9c6?(this['_anchorDot']&&this[_0xb0d8a(0x37b)][_0xb0d8a(0x258)](),this[_0xb0d8a(0x19a)]&&this[_0xb0d8a(0x19a)]['show']()):(this[_0xb0d8a(0x37b)]&&this[_0xb0d8a(0x37b)][_0xb0d8a(0x2f6)](),this[_0xb0d8a(0x19a)]&&this[_0xb0d8a(0x19a)]['hide']());}['dispose'](){const _0x1bc437=_0x497e61;for(let _0x24b589 of this['_shapes'])_0x24b589[_0x1bc437(0x242)]();this[_0x1bc437(0x19a)]&&this[_0x1bc437(0x19a)][_0x1bc437(0x242)](),this['_anchorDot']&&this[_0x1bc437(0x37b)][_0x1bc437(0x242)](),this[_0x1bc437(0x369)]&&this[_0x1bc437(0x369)][_0x1bc437(0x242)](),this[_0x1bc437(0x2e9)]&&this[_0x1bc437(0x2e9)]();}['_render'](){const _0x49a3bd=_0x497e61;let {_docSkeleton:_0x241334,_document:_0x5ce70e}=this,{color:_0x5b2f7a,name:_0x8c8531,ranges:_0x3800e7}=this[_0x49a3bd(0x220)],_0x51eb61=_0x5ce70e[_0x49a3bd(0x253)](),{docsLeft:_0xfe228a,docsTop:_0x1531a5}=_0x51eb61,_0x302e06=new _0x46e2d6(_0x51eb61,_0x241334);for(let {startOffset:_0x4383cb,endOffset:_0x64b86,rangeType:_0x23dc30,segmentId:_0x40db63,segmentPage:_0x240698,collapsed:_0x14699b,isActive:_0x128254}of _0x3800e7){let _0x419fc5=_0x241334[_0x49a3bd(0x12c)](_0x4383cb,!0x0,_0x40db63,_0x240698),_0x5f36e6=_0x241334[_0x49a3bd(0x12c)](_0x64b86,!0x0,_0x40db63,_0x240698);_0x5f36e6??=_0x241334['findNodePositionByCharIndex'](_0x64b86-0x1,!0x1,_0x40db63,_0x240698);let _0x3f87bd=En(_0x419fc5,_0x5f36e6);if(_0x128254&&_0x3f87bd[_0x49a3bd(0x11b)]){let {contentBoxPointGroup:_0x19c6f3}=_0x302e06[_0x49a3bd(0x19d)](_0x5f36e6,_0x5f36e6);if(_0x19c6f3[_0x49a3bd(0x346)]===0x0)continue;this[_0x49a3bd(0x33d)](_0x5b2f7a,_0x19c6f3,_0xfe228a,_0x1531a5,_0x8c8531),this[_0x49a3bd(0x2e9)]=this[_0x49a3bd(0x1a3)]();}if(_0x419fc5&&_0x5f36e6){if(_0x23dc30===_0x1da835[_0x49a3bd(0x227)]){let {pointGroup:_0x37c833}=new _0xb7adf9(_0x51eb61,_0x241334)[_0x49a3bd(0x19d)](_0x419fc5,_0x5f36e6)??{};if(_0x37c833==null||_0x37c833[_0x49a3bd(0x346)]===0x0)continue;this[_0x49a3bd(0x1fd)](_0x5b2f7a,_0x37c833,_0xfe228a,_0x1531a5);}else{if(!_0x14699b&&_0x3f87bd[_0x49a3bd(0x274)]){let {borderBoxPointGroup:_0x1d7058}=_0x302e06[_0x49a3bd(0x19d)](_0x419fc5,_0x5f36e6);if(_0x1d7058[_0x49a3bd(0x346)]===0x0)continue;this[_0x49a3bd(0x159)](_0x5b2f7a,_0x1d7058,_0xfe228a,_0x1531a5);}}}}}[_0x497e61(0x33d)](_0x18f6db,_0x3785fd,_0xfad557,_0x532591,_0x40223c){const _0x3085a1=_0x497e61;let {left:_0x501dff,top:_0x8fbad1,height:_0x1a17a9}=this[_0x3085a1(0x1a1)](_0x3785fd),_0x3593c9=1.5/this[_0x3085a1(0x35e)](),_0x48e473=new _0x283f11(wn+_0x5b81d9(0x6),{'left':_0x501dff+_0xfad557-_0x3593c9,'top':_0x8fbad1+_0x532591,'height':_0x1a17a9,'width':1.5,'fill':_0x18f6db||_0x2eaea6(_0x310412[_0x3085a1(0x340)],0x0),'strokeWidth':_0x3593c9,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this['_anchor']=_0x48e473,this[_0x3085a1(0x1f1)]['addObject'](_0x48e473,_0x3e6fbc);let _0x157fd4=new _0x283f11(wn+_0x5b81d9(0x6),{'left':_0x501dff+_0xfad557-_0x3593c9,'top':_0x8fbad1+_0x532591-0x2,'height':0x4,'width':0x4,'fill':_0x18f6db||_0x2eaea6(_0x310412[_0x3085a1(0x340)],0x0),'strokeWidth':0x0,'stroke':_0x18f6db||_0x2eaea6(_0x310412[_0x3085a1(0x340)],0x0),'evented':!0x1});this[_0x3085a1(0x37b)]=_0x157fd4,this[_0x3085a1(0x1f1)][_0x3085a1(0x160)](_0x157fd4,_0x3e6fbc);let _0x219def=new Cn(wn+_0x5b81d9(0x6),{'left':_0x501dff+_0xfad557-_0x3593c9,'top':_0x8fbad1+_0x532591-0x14,'text':_0x40223c,'color':_0x18f6db});this[_0x3085a1(0x19a)]=_0x219def,this[_0x3085a1(0x1f1)]['addObject'](_0x219def,_0x3e6fbc),this[_0x3085a1(0x341)]=!0x1;}[_0x497e61(0x1a3)](){const _0x4b2d1d=_0x497e61;let _0x17a810=this['_anchor']['onPointerEnter$'][_0x4b2d1d(0x11c)](()=>{const _0x61a550=_0x4b2d1d;this[_0x61a550(0x341)]=!0x0;}),_0x4364a4=this[_0x4b2d1d(0x369)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x2a5112=_0x4b2d1d;this[_0x2a5112(0x150)]&&clearTimeout(this[_0x2a5112(0x150)]),this[_0x2a5112(0x150)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x5257fd=_0x4b2d1d;_0x17a810['unsubscribe'](),_0x4364a4[_0x5257fd(0x1ab)]();};}[_0x497e61(0x159)](_0x3136df,_0x1b9124,_0x4ccfb4,_0x3e4f9b){const _0x301ada=_0x497e61;let _0x3b4b8a=0.2,_0x293657=new _0x5acc2d(_0x3136df)[_0x301ada(0x377)](_0x3b4b8a)[_0x301ada(0x290)](),_0x1f49af=new _0x2cb3ad(_0x301ada(0x2c1)+_0x5b81d9(0x6),{'pointsGroup':_0x1b9124,'fill':_0x293657||_0x2eaea6(_0x310412[_0x301ada(0x340)],_0x3b4b8a),'left':_0x4ccfb4,'top':_0x3e4f9b,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x301ada(0x24b)](_0x1f49af),this[_0x301ada(0x1f1)][_0x301ada(0x160)](_0x1f49af,_0x3e6fbc);}[_0x497e61(0x1fd)](_0x119869,_0x301abe,_0x3494eb,_0x2e00ed){const _0x269319=_0x497e61;let _0x1accac=0.2,_0x55df6d=new _0x5acc2d(_0x119869)[_0x269319(0x377)](_0x1accac)[_0x269319(0x290)](),_0x19c9eb=new _0x2cb3ad(_0x269319(0x2e2)+_0x5b81d9(0x6),{'pointsGroup':_0x301abe,'fill':_0x55df6d||_0x2eaea6(_0x310412[_0x269319(0x340)],_0x1accac),'left':_0x3494eb,'top':_0x2e00ed,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x269319(0x366)][_0x269319(0x24b)](_0x19c9eb),this['_scene'][_0x269319(0x160)](_0x19c9eb,_0x3e6fbc);}['_getAnchorBounding'](_0x8422b6){let _0xa1c7bd=_0x8422b6[0x0],_0x5382dc=_0xa1c7bd[0x0],_0x30caa1=_0xa1c7bd[0x2],{x:_0x5bea5f,y:_0x465cf4}=_0x5382dc,{x:_0x52c869,y:_0x5380e0}=_0x30caa1;return{'left':_0x5bea5f,'top':_0x465cf4,'width':_0x52c869-_0x5bea5f,'height':_0x5380e0-_0x465cf4};}[_0x497e61(0x35e)](){const _0x55a5f0=_0x497e61;let {scaleX:_0x41e84a,scaleY:_0x1c176d}=this[_0x55a5f0(0x1f1)]['getAncestorScale']();return Math[_0x55a5f0(0x33b)](_0x41e84a,_0x1c176d);}};function En(_0x506ac9,_0x407655){const _0x2c5229=_0x497e61;if(!_0x407655)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x506ac9||_0x506ac9[_0x2c5229(0x348)]!==_0x407655[_0x2c5229(0x348)]||(_0x506ac9[_0x2c5229(0x348)]===_0x488f5b['HEADER']||_0x506ac9[_0x2c5229(0x348)]===_0x488f5b[_0x2c5229(0x116)])&&_0x506ac9[_0x2c5229(0x195)]!==_0x407655[_0x2c5229(0x195)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x508407=_0x860ed(_0x506ac9),_0x3b64bf=_0x860ed(_0x407655);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x508407==null||_0x3b64bf==null?_0x508407==null&&_0x3b64bf==null:_0x508407['pageIndex']===_0x3b64bf[_0x2c5229(0x30a)]&&_0x508407[_0x2c5229(0x32b)]===_0x3b64bf[_0x2c5229(0x32b)]&&_0x508407[_0x2c5229(0x31b)]===_0x3b64bf[_0x2c5229(0x31b)]};}let Dn=class extends _0xe6d4b{constructor(_0x422d76,_0xcc6939,_0x508ee1,_0x3948d3,_0x31a228){const _0x601d8=_0x497e61;super(),this[_0x601d8(0x351)]=_0x422d76,this[_0x601d8(0x2c5)]=_0xcc6939,this[_0x601d8(0x2f7)]=_0x508ee1,this['_commandService']=_0x3948d3,this[_0x601d8(0x2d8)]=_0x31a228,G(this,_0x601d8(0x1d9),[]),G(this,_0x601d8(0x2e6),[]),this['_init']();}[_0x497e61(0x1a4)](){const _0x289d94=_0x497e61;let _0x49d4d5=this['_context'][_0x289d94(0x276)],_0xe0e97b=this[_0x289d94(0x2c5)];this['disposeWithMe'](_0x3f9c97([this[_0x289d94(0x2f7)]['getCollabCursors$'](_0x49d4d5),this[_0x289d94(0x2d8)]['currentTheme$']])[_0x289d94(0x27a)](_0x2de342(([_0x18458a,_0x538e1a])=>({'skeleton':_0xe0e97b[_0x289d94(0x336)](),'cursors':[..._0x18458a[_0x289d94(0x1dd)]()]['flatMap'](_0xc8ced6=>({..._0xc8ced6,'color':this['_themeService'][_0x289d94(0x2e3)](_0xc8ced6['color'])}))})))[_0x289d94(0x189)](_0x1d367e=>{const _0x3427e9=_0x289d94;if(this['_removeCollabCursors'](),_0x1d367e){let {skeleton:_0x3e5b1b,cursors:_0x1130da}=_0x1d367e;this[_0x3427e9(0x2a4)](_0x3e5b1b,_0x1130da);}})),this[_0x289d94(0x36f)](),this[_0x289d94(0x248)]();}[_0x497e61(0x2a4)](_0x5ba2e6,_0x101a06){const _0x15ea9f=_0x497e61;let {scene:_0x571f06,mainComponent:_0x42f98f}=this['_context'],_0x4ccdc7=_0x101a06[_0x15ea9f(0x27d)](_0x183249=>new Tn(_0x183249,_0x571f06,_0x5ba2e6,_0x42f98f));this[_0x15ea9f(0x1d9)]=_0x4ccdc7,this[_0x15ea9f(0x2e6)]=_0x101a06;}[_0x497e61(0x124)](){const _0x227395=_0x497e61;this['_removeCollabCursors']();let {scene:_0x56a191,mainComponent:_0x52308f}=this[_0x227395(0x351)],_0x30f995=this[_0x227395(0x2c5)]['getSkeleton'](),_0x47df99=this['_cursors'][_0x227395(0x27d)](_0x326c68=>new Tn(_0x326c68,_0x56a191,_0x30f995,_0x52308f));this['_cursorShapes']=_0x47df99;}['_removeCollabCursors'](){const _0x1da7dc=_0x497e61;this['_cursorShapes'][_0x1da7dc(0x176)](_0x19b7d7=>_0x19b7d7['dispose']()),this['_cursorShapes']=[];}[_0x497e61(0x248)](){const _0x327c1f=_0x497e61;let _0x508365=[_0x4bfa4a['id']];this['disposeWithMe'](this[_0x327c1f(0x28b)][_0x327c1f(0x22c)](_0x44aa9f=>{const _0x9ba60d=_0x327c1f;_0x508365[_0x9ba60d(0x11e)](_0x44aa9f['id'])&&_0x44aa9f[_0x9ba60d(0x300)][_0x9ba60d(0x276)]===this[_0x9ba60d(0x351)][_0x9ba60d(0x276)]&&this[_0x9ba60d(0x124)]();}));}[_0x497e61(0x36f)](){const _0x4df50b=_0x497e61;this['disposeWithMe'](_0x2935c6(this[_0x4df50b(0x351)][_0x4df50b(0x161)][_0x4df50b(0x2a2)])[_0x4df50b(0x27a)](_0x2877e3(_0x5ddf5a=>_0x5ddf5a[_0x4df50b(0x2a5)]===_0x18e772[_0x4df50b(0x13a)]),_0x4a1286(0x10))[_0x4df50b(0x189)](()=>{this['_refreshCollabCursors']();}));}};Dn=q([K(0x1,_0x3d3024(_0x13ce1c)),K(0x2,_0x3d3024(Z)),K(0x3,_0x137b25),K(0x4,_0x3d3024(_0x2d83e2))],Dn);var On=class extends _0x281907{constructor(_0x5dbc01,_0x58739f){const _0x583182=_0x497e61;super(_0x5dbc01,_0x58739f),G(this,_0x583182(0x29f),void 0x0),G(this,_0x583182(0x32d),!0x1),G(this,_0x583182(0x2eb),void 0x0),G(this,'_name',''),G(this,'_labelPosition',_0x583182(0x20b)),G(this,_0x583182(0x245),void 0x0),G(this,'_showText',void 0x0),G(this,_0x583182(0x207),void 0x0),G(this,'_highlightSecond',0x4),G(this,_0x583182(0x173),void 0x0),G(this,_0x583182(0x256),void 0x0),G(this,_0x583182(0x211),!0x0),G(this,'_offsetY',0x0),G(this,_0x583182(0x23d),_0x583182(0x123)),_0x58739f&&(this[_0x583182(0x278)](_0x58739f),_0x58739f[_0x583182(0x271)]&&(_0x58739f[_0x583182(0x28e)]??this[_0x583182(0x10f)])&&this[_0x583182(0x364)](_0x58739f[_0x583182(0x28e)]??this[_0x583182(0x10f)])),this[_0x583182(0x210)][_0x583182(0x11c)](()=>this[_0x583182(0x278)]({'hovered':!0x0})),this[_0x583182(0x247)]['subscribeEvent'](()=>this[_0x583182(0x278)]({'hovered':!0x1}));}['setOffsetY'](_0x147eb7){this['_offsetY']=_0x147eb7;}[_0x497e61(0x278)](_0xf2df6e){const _0x5a2efa=_0x497e61;this[_0x5a2efa(0x29f)]=_0xf2df6e[_0x5a2efa(0x25c)]??this[_0x5a2efa(0x29f)],this['_hovered']=_0xf2df6e[_0x5a2efa(0x1c1)]??this[_0x5a2efa(0x32d)],this[_0x5a2efa(0x2eb)]=_0xf2df6e[_0x5a2efa(0x1ec)]??this['_range'],this[_0x5a2efa(0x2d2)]=_0xf2df6e[_0x5a2efa(0x196)]??this[_0x5a2efa(0x2d2)],this[_0x5a2efa(0x326)]=_0xf2df6e[_0x5a2efa(0x166)]??this[_0x5a2efa(0x326)],this['_backgroundColor']=_0xf2df6e[_0x5a2efa(0x168)]??this['_backgroundColor'],this[_0x5a2efa(0x33f)]=_0xf2df6e[_0x5a2efa(0x1fc)]??this['_showText'],this[_0x5a2efa(0x23d)]=_0xf2df6e[_0x5a2efa(0x2bf)]??this['_labelHorizontalPosition'],_0xf2df6e[_0x5a2efa(0x28e)]!==void 0x0&&(this[_0x5a2efa(0x10f)]=_0xf2df6e['highlightSecond']),_0xf2df6e['highlight']!==void 0x0&&(this[_0x5a2efa(0x207)]=_0xf2df6e[_0x5a2efa(0x271)]),_0xf2df6e[_0x5a2efa(0x26e)]!==void 0x0&&(this['_offsetY']=_0xf2df6e[_0x5a2efa(0x26e)]),this['transformByState']({'width':_0xf2df6e[_0x5a2efa(0x1f3)],'height':_0xf2df6e[_0x5a2efa(0x37c)]});}[_0x497e61(0x2a1)](_0x580e6a){const _0x51a7d9=_0x497e61;let {row:_0x1a3469,column:_0x20f20d}=_0x580e6a;if(_0x1a3469>=this[_0x51a7d9(0x2eb)][_0x51a7d9(0x114)]&&_0x1a3469<=this[_0x51a7d9(0x2eb)][_0x51a7d9(0x14b)]&&_0x20f20d>=this['_range'][_0x51a7d9(0x317)]&&_0x20f20d<=this[_0x51a7d9(0x2eb)][_0x51a7d9(0x1b7)]){this[_0x51a7d9(0x278)]({'hovered':!0x0});return;}this[_0x51a7d9(0x278)]({'hovered':!0x1});}[_0x497e61(0x364)](_0x7494cb){const _0x123337=_0x497e61;this[_0x123337(0x363)](),this[_0x123337(0x211)]=!0x0,this[_0x123337(0x256)]=window[_0x123337(0x15d)](()=>{const _0x46f806=_0x123337;this['_isBlinkVisible']=!this[_0x46f806(0x211)],this[_0x46f806(0x16e)](!0x0);},0x1f4),this[_0x123337(0x173)]=window['setTimeout'](()=>{const _0x54c7c6=_0x123337;this[_0x54c7c6(0x363)](),this['_isBlinkVisible']=!0x0,this[_0x54c7c6(0x16e)](!0x0);},_0x7494cb*0x3e8);}[_0x497e61(0x363)](){const _0x26ca84=_0x497e61;this['_blinkIntervalTimer']&&=(window['clearInterval'](this[_0x26ca84(0x256)]),void 0x0),this[_0x26ca84(0x173)]&&=(window['clearTimeout'](this[_0x26ca84(0x173)]),void 0x0);}[_0x497e61(0x2fd)](_0x4001e1){return!0x1;}[_0x497e61(0x242)](){const _0x4c9afc=_0x497e61;this[_0x4c9afc(0x363)](),super[_0x4c9afc(0x242)]();}[_0x497e61(0x1d5)](_0x51de7b){const _0x21adba=_0x497e61;let _0x4d208f=this[_0x21adba(0x29f)],_0x372b7a=this[_0x21adba(0x245)];if(this[_0x21adba(0x207)]&&!this['_isBlinkVisible']&&(_0x4d208f=this[_0x21adba(0x27b)](this['_color']),_0x372b7a=this[_0x21adba(0x245)]?this[_0x21adba(0x27b)](this[_0x21adba(0x245)]):void 0x0),_0x283f11[_0x21adba(0x1cb)](_0x51de7b,{'width':this[_0x21adba(0x1f3)],'height':this[_0x21adba(0x37c)],'strokeWidth':this[_0x21adba(0x376)]||1.5,'stroke':_0x4d208f,'evented':!0x1,'fill':_0x372b7a}),this[_0x21adba(0x32d)]||this[_0x21adba(0x33f)]){_0x51de7b[_0x21adba(0x37a)]();let _0x353e35=this[_0x21adba(0x23d)]===_0x21adba(0x262)?-xn(_0x51de7b,this[_0x21adba(0x2d2)]):this[_0x21adba(0x1f3)];_0x51de7b['transform'](0x1,0x0,0x0,0x1,_0x353e35,(this[_0x21adba(0x326)]===_0x21adba(0x261)?0x0:-0x14)+(this['_offsetY']??0x0)),Cn['drawWith'](_0x51de7b,{'text':this[_0x21adba(0x2d2)],'color':_0x4d208f}),_0x51de7b['restore']();}}[_0x497e61(0x27b)](_0x45c6e5){const _0x1b0710=_0x497e61;return _0x45c6e5[_0x1b0710(0x32c)]('#')?'rgba('+Number[_0x1b0710(0x279)](_0x45c6e5[_0x1b0710(0x129)](0x1,0x3),0x10)+',\x20'+Number['parseInt'](_0x45c6e5[_0x1b0710(0x129)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x45c6e5['slice'](0x5,0x7),0x10)+_0x1b0710(0x35d):_0x45c6e5[_0x1b0710(0x32c)](_0x1b0710(0x12f))?_0x45c6e5[_0x1b0710(0x316)](/[\d.]+\)$/g,_0x1b0710(0x286)):_0x45c6e5[_0x1b0710(0x32c)](_0x1b0710(0x349))?_0x45c6e5[_0x1b0710(0x316)]('rgb',_0x1b0710(0x12f))[_0x1b0710(0x316)](')',_0x1b0710(0x35d)):_0x45c6e5;}};let kn=class extends _0xe6d4b{constructor(_0x2a0f89,_0x1c6fb0,_0x4d071f,_0x529280){const _0x54b9ae=_0x497e61;super(),this[_0x54b9ae(0x351)]=_0x2a0f89,this[_0x54b9ae(0x186)]=_0x1c6fb0,this[_0x54b9ae(0x2f7)]=_0x4d071f,this['_themeService']=_0x529280,G(this,_0x54b9ae(0x2e6),new Set()),G(this,_0x54b9ae(0x20d),null),G(this,'_pointerMoveDisposable',null),this[_0x54b9ae(0x1a4)]();}['_init'](){const _0x1d3a6e=_0x497e61;this[_0x1d3a6e(0x186)][_0x1d3a6e(0x2bb)][_0x1d3a6e(0x27a)](_0x447a2c(this[_0x1d3a6e(0x1f0)]),_0x3f4083(_0x196b86=>{const _0xebe0a8=_0x1d3a6e;if(_0x196b86){let _0xcb55ad=_0x196b86[_0xebe0a8(0x27c)];return _0x3f9c97(this[_0xebe0a8(0x2f7)][_0xebe0a8(0x266)](this[_0xebe0a8(0x351)][_0xebe0a8(0x276)]),this[_0xebe0a8(0x2d8)]['currentTheme$'])['pipe'](_0x2de342(([_0x2991ee,_0x56dde4])=>{const _0x220f25=_0xebe0a8;let _0x335e2f=new Map();return _0x2991ee[_0x220f25(0x176)]((_0x337bbd,_0x50a408)=>{const _0x57347a=_0x220f25;if(_0x337bbd['sheetID']===_0xcb55ad){let _0x40daf6={..._0x337bbd};_0x40daf6['color']=this['_themeService'][_0x57347a(0x2e3)](_0x337bbd[_0x57347a(0x25c)]),_0x335e2f[_0x57347a(0x21d)](_0x50a408,_0x40daf6);}}),{'skeleton':_0x196b86,'cursors':_0x335e2f};}));}return _0x1eef53({'skeleton':null,'cursors':new Map()});}))[_0x1d3a6e(0x189)](({skeleton:_0x221c61,cursors:_0x461391})=>{const _0x1b4301=_0x1d3a6e;this[_0x1b4301(0x125)](),_0x221c61&&this[_0x1b4301(0x2a4)](_0x221c61,_0x461391);}),this[_0x1d3a6e(0x177)](this[_0x1d3a6e(0x186)]['currentSkeleton$'][_0x1d3a6e(0x27a)](_0x447a2c(this[_0x1d3a6e(0x1f0)]))[_0x1d3a6e(0x189)](_0xbc656a=>{const _0x24e5b8=_0x1d3a6e;var _0x1cd77c;if(_0xbc656a==null)return;(_0x1cd77c=this[_0x24e5b8(0x334)])==null||_0x1cd77c['unsubscribe'](),this[_0x24e5b8(0x334)]=null;let {skeleton:_0x10791f}=_0xbc656a,{scene:_0x1fc1e5}=this['_context'];this[_0x24e5b8(0x334)]=_0x1fc1e5[_0x24e5b8(0x192)][_0x24e5b8(0x11c)](_0x43170b(_0x5a31bc=>{const _0x5376c4=_0x24e5b8;var _0x32465e,_0x259b01;let {offsetX:_0x3e839b,offsetY:_0x2c053e}=_0x5a31bc,{x:_0x48aa39,y:_0xdf4285}=_0x1fc1e5[_0x5376c4(0x130)](_0x1ff5ca['FromArray']([_0x3e839b,_0x2c053e])),{scaleX:_0x1edc35,scaleY:_0x1d26b2}=_0x1fc1e5['getAncestorScale'](),_0x4aa8e4=_0x1fc1e5[_0x5376c4(0x322)](_0x1b53d2[_0x5376c4(0x1b5)]),_0x459ff5=_0x1fc1e5['getScrollXYInfoByViewport'](_0x1ff5ca[_0x5376c4(0x323)]([_0x48aa39,_0xdf4285]),_0x4aa8e4),_0x3f973d=_0x10791f[_0x5376c4(0x365)](_0x3e839b,_0x2c053e,_0x1edc35,_0x1d26b2,_0x459ff5);(((_0x32465e=this['_lastPointer'])==null?void 0x0:_0x32465e[_0x5376c4(0x1e0)])!==_0x3f973d[_0x5376c4(0x1e0)]||((_0x259b01=this['_lastPointer'])==null?void 0x0:_0x259b01[_0x5376c4(0x198)])!==_0x3f973d['row'])&&this['_cursors'][_0x5376c4(0x176)](_0xbe565b=>{const _0x55edc3=_0x5376c4;_0xbe565b[_0x55edc3(0x2a1)](_0x3f973d);});},0x64));})),this[_0x1d3a6e(0x177)](_0x2b7065(()=>{const _0x41740a=_0x1d3a6e;var _0x5d93e0;(_0x5d93e0=this['_pointerMoveDisposable'])==null||_0x5d93e0[_0x41740a(0x1ab)](),this[_0x41740a(0x334)]=null;}));}[_0x497e61(0x2a4)](_0x369e3f,_0x9adcb5){const _0x2bfecb=_0x497e61;let _0x41b56b=this[_0x2bfecb(0x186)][_0x2bfecb(0x2b2)]();if(!_0x41b56b)return;let _0x3854fe=this['_getSheetObject']();if(!_0x3854fe)return;this['_cursors']['forEach'](_0x3a9b6c=>{const _0x3f17d5=_0x2bfecb;_0x3a9b6c[_0x3f17d5(0x16e)]();});let {scene:_0x2b77cb}=_0x3854fe,_0x446d7f=An(Array[_0x2bfecb(0x1f6)](_0x9adcb5[_0x2bfecb(0x1dd)]()))['map'](_0x3a5fd9=>{let {color:_0xc51fc3,range:_0x6665d6,name:_0x1b30e3,selection:_0x2104bf,sheetID:_0x4b24aa}=_0x3a5fd9,{startColumn:_0x58994c,startRow:_0x20525b,endColumn:_0x4672eb,endRow:_0x4bbef1}=_0x6665d6,_0x4010ef=_0x4b477e(_0x20525b,_0x58994c,_0x2b77cb,_0x41b56b),_0x46e72a=_0x4b477e(_0x4bbef1,_0x4672eb,_0x2b77cb,_0x41b56b),{columnHeaderHeightAndMarginTop:_0x276c7d}=_0x41b56b,{startX:_0x39f07a,startY:_0x4505e2}=_0x4010ef,{endX:_0x129953,endY:_0x539341}=_0x46e72a,_0x39f3db=_0x129953-_0x39f07a,_0x39b338=_0x539341-_0x4505e2;return new On(_0x1b30e3,{'labelPosition':_0x4505e2-_0x276c7d>=0x14?'top':'bottom','sheetID':_0x4b24aa,'range':_0x6665d6,'color':_0xc51fc3,'name':_0x1b30e3,'selection':_0x2104bf,'left':_0x39f07a,'top':_0x4505e2,'width':_0x39f3db,'height':_0x39b338,'evented':!0x1,'zIndex':0x1389});});_0x2b77cb[_0x2bfecb(0x259)](_0x446d7f,0x1),this['_cursors']=new Set(_0x446d7f);}[_0x497e61(0x125)](){const _0x34ece7=_0x497e61;var _0x21dd26;(_0x21dd26=this[_0x34ece7(0x2e6)])==null||_0x21dd26[_0x34ece7(0x176)](_0x373386=>_0x373386[_0x34ece7(0x242)]());}[_0x497e61(0x36c)](){const _0x2105d6=_0x497e61;return _0x35f9d2(this[_0x2105d6(0x351)][_0x2105d6(0x2f9)],this[_0x2105d6(0x351)]);}};kn=q([K(0x1,_0x3d3024(_0x5cd311)),K(0x2,_0x3d3024(Z)),K(0x3,_0x3d3024(_0x2d83e2))],kn);function An(_0x2f48a5){const _0x37d216=_0x497e61;let _0x432f21=new Map();return _0x2f48a5[_0x37d216(0x176)](_0xe4d34f=>{const _0x14f8ec=_0x37d216;if(_0x432f21[_0x14f8ec(0x1c9)](_0xe4d34f['selection'])){let _0x103d85=_0x432f21['get'](_0xe4d34f[_0x14f8ec(0x26a)]);_0x103d85[_0x14f8ec(0x196)]+=',\x20'+_0xe4d34f[_0x14f8ec(0x196)];}else _0x432f21['set'](_0xe4d34f[_0x14f8ec(0x26a)],_0xe4d34f);}),Array[_0x37d216(0x1f6)](_0x432f21[_0x37d216(0x1dd)]());}function jn(_0x258000){const _0x2fc45a=_0x497e61;return typeof _0x258000==_0x2fc45a(0x146)&&!!_0x258000;}function Mn(_0x2eb611){const _0x2ba289=_0x497e61;return _0x2eb611['eventID']===_0x32fcce[_0x2ba289(0x277)]&&'data'in _0x2eb611&&jn(_0x2eb611['data'])&&typeof _0x2eb611[_0x2ba289(0x296)][_0x2ba289(0x155)]==_0x2ba289(0x2ac)&&typeof _0x2eb611['data'][_0x2ba289(0x26a)]==_0x2ba289(0x2ac);}function Nn(_0x1bda4d){const _0x5512e0=_0x497e61;return _0x1bda4d[_0x5512e0(0x335)]===_0x32fcce['USERS_LEAVE']&&'data'in _0x1bda4d&&jn(_0x1bda4d[_0x5512e0(0x296)])&&typeof _0x1bda4d[_0x5512e0(0x296)][_0x5512e0(0x155)]==_0x5512e0(0x2ac);}function Pn(_0x2709f8,_0xcd2e1b){const _0x52b862=_0x497e61;let _0xa3c6e4;try{_0xa3c6e4=JSON['parse'](_0x2709f8);}catch{return null;}if(!jn(_0xa3c6e4)||typeof _0xa3c6e4[_0x52b862(0x237)]!=_0x52b862(0x2ac)||typeof _0xa3c6e4['unitId']!=_0x52b862(0x2ac)||typeof _0xa3c6e4['subUnitId']!=_0x52b862(0x2ac))return null;let _0x5e4019=typeof _0xa3c6e4[_0x52b862(0x284)]==_0x52b862(0x213)?_0xa3c6e4[_0x52b862(0x284)]:_0xcd2e1b;if(_0x5e4019==null)return null;let _0x5e8584=jn(_0xa3c6e4[_0x52b862(0x28d)])&&typeof _0xa3c6e4[_0x52b862(0x28d)]['x']==_0x52b862(0x213)&&Number[_0x52b862(0x145)](_0xa3c6e4[_0x52b862(0x28d)]['x'])&&typeof _0xa3c6e4['pointer']['y']==_0x52b862(0x213)&&Number['isFinite'](_0xa3c6e4[_0x52b862(0x28d)]['y'])?{'x':_0xa3c6e4[_0x52b862(0x28d)]['x'],'y':_0xa3c6e4[_0x52b862(0x28d)]['y']}:null;return{'kind':_0xa3c6e4['kind'],'unitType':_0x5e4019,'unitId':_0xa3c6e4[_0x52b862(0x276)],'subUnitId':_0xa3c6e4[_0x52b862(0x1da)],'selectedIds':Array[_0x52b862(0x115)](_0xa3c6e4[_0x52b862(0x131)])?_0xa3c6e4[_0x52b862(0x131)][_0x52b862(0x10d)](_0x5a2942=>typeof _0x5a2942==_0x52b862(0x2ac)):[],'focusedId':typeof _0xa3c6e4[_0x52b862(0x283)]==_0x52b862(0x2ac)?_0xa3c6e4[_0x52b862(0x283)]:null,'pointer':_0x5e8584};}function Fn(_0x2df50d,_0x103ff9,_0x5baec6){const _0x5ca869=_0x497e61;return{'kind':_0x103ff9,'unitType':_0x2df50d,'unitId':_0x5baec6[_0x5ca869(0x276)],'subUnitId':_0x5baec6[_0x5ca869(0x1da)],'selectedIds':Array[_0x5ca869(0x1f6)](_0x5baec6[_0x5ca869(0x131)]),'focusedId':_0x5baec6[_0x5ca869(0x283)],'pointer':_0x5baec6[_0x5ca869(0x28d)]?{..._0x5baec6[_0x5ca869(0x28d)]}:null};}let In=class extends _0xe6d4b{constructor(_0x3393a4,_0x1cb3fc,_0x55c87b,_0x65969a,_0x30a7b5,_0x306478){const _0x3dea7d=_0x497e61;super(),this[_0x3dea7d(0x276)]=_0x3393a4,this[_0x3dea7d(0x2f5)]=_0x1cb3fc,this[_0x3dea7d(0x1ea)]=_0x55c87b,this['_colorAssignService']=_0x65969a,this[_0x3dea7d(0x31c)]=_0x30a7b5,this[_0x3dea7d(0x28b)]=_0x306478,G(this,_0x3dea7d(0x32a),!0x1),G(this,_0x3dea7d(0x1e1),!0x1);}get[_0x497e61(0x284)](){const _0xd50be6=_0x497e61;return this['_adapter'][_0xd50be6(0x284)];}[_0x497e61(0x242)](){const _0x5973cf=_0x497e61;this[_0x5973cf(0x14d)](),super['dispose']();}[_0x497e61(0x1bc)](){const _0x453925=_0x497e61;this['_initialized']||(this[_0x453925(0x1e1)]=!0x0,this[_0x453925(0x2f5)][_0x453925(0x170)][_0x453925(0x27a)](_0x4eb845(this[_0x453925(0x1f0)]))[_0x453925(0x189)](_0x1394a6=>{const _0x3bd49e=_0x453925;if(_0x1394a6===_0x4af289[_0x3bd49e(0x169)]){this[_0x3bd49e(0x32a)]=!0x0;let _0x2c1b8d=this[_0x3bd49e(0x1ea)][_0x3bd49e(0x226)](this[_0x3bd49e(0x276)]);_0x2c1b8d&&this[_0x3bd49e(0x118)](_0x2c1b8d);return;}this[_0x3bd49e(0x32a)]=!0x1,this[_0x3bd49e(0x14d)]();}),this['_session'][_0x453925(0x21a)][_0x453925(0x27a)](_0x4eb845(this[_0x453925(0x1f0)]))['subscribe'](_0x2e8ddf=>{const _0x1136ad=_0x453925;Mn(_0x2e8ddf)?this[_0x1136ad(0x2ab)](_0x2e8ddf):Nn(_0x2e8ddf)&&this[_0x1136ad(0x25e)](_0x2e8ddf[_0x1136ad(0x296)][_0x1136ad(0x155)]);}),this[_0x453925(0x1ea)][_0x453925(0x121)][_0x453925(0x27a)](_0xeb3cf0(_0x58de91=>this[_0x453925(0x32a)]&&_0x58de91[_0x453925(0x276)]===this[_0x453925(0x276)]),_0x28c002(_0x1a4f55=>_0x363ac4(_0x1a4f55[_0x453925(0x229)]),{'leading':!0x0,'trailing':!0x0}),_0x4eb845(this[_0x453925(0x1f0)]))[_0x453925(0x189)](_0x136af6=>this[_0x453925(0x118)](_0x136af6)));}[_0x497e61(0x118)](_0x4061fc){const _0x2b42f4=_0x497e61;let _0x1ed78e=this[_0x2b42f4(0x2f5)]['getMemberID']();if(!_0x1ed78e||!this[_0x2b42f4(0x32a)])return;let _0x47f6d9={'eventID':_0x32fcce[_0x2b42f4(0x277)],'data':{'unitID':this[_0x2b42f4(0x276)],'memberID':_0x1ed78e,'selection':JSON[_0x2b42f4(0x209)](Fn(this[_0x2b42f4(0x284)],this[_0x2b42f4(0x1ea)][_0x2b42f4(0x31a)],_0x4061fc))}};this[_0x2b42f4(0x2f5)][_0x2b42f4(0x2da)](_0x47f6d9,this[_0x2b42f4(0x276)])['catch'](()=>void 0x0);}[_0x497e61(0x2ab)](_0x23a98b){const _0x1ce904=_0x497e61;let {memberID:_0x285dcf,selection:_0x3843b0}=_0x23a98b[_0x1ce904(0x296)];if(_0x285dcf===this[_0x1ce904(0x2f5)][_0x1ce904(0x2aa)]())return;let _0x11c4ba=Pn(_0x3843b0,this[_0x1ce904(0x284)]);if(!_0x11c4ba||_0x11c4ba[_0x1ce904(0x237)]!==this[_0x1ce904(0x1ea)]['presenceKind']||_0x11c4ba[_0x1ce904(0x284)]!==this[_0x1ce904(0x284)]||_0x11c4ba[_0x1ce904(0x276)]!==this['unitId'])return;let _0x171af2=this['_memberService'][_0x1ce904(0x1e6)](this[_0x1ce904(0x276)],_0x285dcf),_0x483f93={'unitId':_0x11c4ba['unitId'],'subUnitId':_0x11c4ba['subUnitId'],'selectedIds':_0x11c4ba[_0x1ce904(0x131)],'focusedId':_0x11c4ba['focusedId'],'pointer':_0x11c4ba['pointer'],'memberId':_0x285dcf,'color':this['_colorAssignService'][_0x1ce904(0x153)](_0x285dcf),'name':(_0x171af2==null?void 0x0:_0x171af2[_0x1ce904(0x196)])??_0x285dcf};this[_0x1ce904(0x28b)][_0x1ce904(0x181)](Y['id'],{'unitType':this[_0x1ce904(0x284)],'update':{'type':_0x1ce904(0x21d),'state':_0x483f93}})[_0x1ce904(0x347)](()=>void 0x0);}['_removeRemotePresence'](_0x3b5270){const _0x1ddbe9=_0x497e61;this[_0x1ddbe9(0x28b)][_0x1ddbe9(0x181)](Y['id'],{'unitType':this[_0x1ddbe9(0x284)],'update':{'type':_0x1ddbe9(0x2c6),'unitId':this[_0x1ddbe9(0x276)],'memberId':_0x3b5270}})[_0x1ddbe9(0x347)](()=>void 0x0);}[_0x497e61(0x14d)](){const _0x57e073=_0x497e61;this['_commandService'][_0x57e073(0x181)](Y['id'],{'unitType':this[_0x57e073(0x284)],'update':{'type':_0x57e073(0x374),'unitId':this[_0x57e073(0x276)]}})[_0x57e073(0x347)](()=>void 0x0);}};In=q([K(0x3,_0x3d3024(mn)),K(0x4,_0x3d3024(_0x1d0690)),K(0x5,_0x3d3024(_0x137b25))],In);let Q=class extends _0xe6d4b{constructor(_0x3d6c7b,_0x73d746,_0x5deee6,_0x4f7e04){const _0x407706=_0x497e61;super(),this['_univerInstanceService']=_0x3d6c7b,this[_0x407706(0x2ec)]=_0x73d746,this[_0x407706(0x2b8)]=_0x5deee6,this[_0x407706(0x24d)]=_0x4f7e04,G(this,_0x407706(0x19b),!0x1),G(this,_0x407706(0x119),new Map()),G(this,_0x407706(0x2b7),new Map()),G(this,'_adapterDisposables',new Map()),this['_init']();}[_0x497e61(0x242)](){const _0x396dad=_0x497e61;this[_0x396dad(0x19b)]=!0x0,this[_0x396dad(0x265)]['forEach'](_0x4974fa=>_0x4974fa['dispose']()),this[_0x396dad(0x265)][_0x396dad(0x374)](),this[_0x396dad(0x119)][_0x396dad(0x176)](_0x34b4ec=>_0x34b4ec[_0x396dad(0x242)]()),this[_0x396dad(0x119)][_0x396dad(0x374)](),this[_0x396dad(0x2b7)][_0x396dad(0x374)](),super[_0x396dad(0x242)]();}[_0x497e61(0x1a4)](){const _0x1e45c7=_0x497e61;this[_0x1e45c7(0x24d)][_0x1e45c7(0x295)]['pipe'](_0x4eb845(this['dispose$']))[_0x1e45c7(0x189)](_0x49e920=>this[_0x1e45c7(0x1d2)](_0x49e920));}['_syncAdapters'](_0x56f729){const _0xbfa930=_0x497e61;let _0x5b82ea=new Set(_0x56f729[_0xbfa930(0x27d)](_0x538f13=>_0x538f13[_0xbfa930(0x284)]));this[_0xbfa930(0x265)]['forEach']((_0x10b822,_0x3ff565)=>{const _0x3fc961=_0xbfa930;_0x5b82ea[_0x3fc961(0x1c9)](_0x3ff565)||(_0x10b822[_0x3fc961(0x242)](),this[_0x3fc961(0x265)][_0x3fc961(0x23e)](_0x3ff565),this[_0x3fc961(0x28a)](_0x3ff565));}),_0x56f729[_0xbfa930(0x176)](_0x3e6b78=>{const _0x59f382=_0xbfa930;this[_0x59f382(0x265)]['has'](_0x3e6b78[_0x59f382(0x284)])||this[_0x59f382(0x2fa)](_0x3e6b78);});}[_0x497e61(0x2fa)](_0x4ffaf8){const _0x4ed4c4=_0x497e61;let _0x59050c=new _0x1f8f55();this[_0x4ed4c4(0x265)]['set'](_0x4ffaf8[_0x4ed4c4(0x284)],_0x59050c),_0x59050c[_0x4ed4c4(0x17a)](_0x4ffaf8[_0x4ed4c4(0x14f)]()),this['_univerInstanceService'][_0x4ed4c4(0x34f)](_0x4ffaf8[_0x4ed4c4(0x284)])[_0x4ed4c4(0x176)](_0x4f9800=>this[_0x4ed4c4(0x154)](_0x4f9800[_0x4ed4c4(0x15c)](),_0x4ffaf8)[_0x4ed4c4(0x347)](()=>void 0x0));let _0x3fb204=this[_0x4ed4c4(0x1a2)][_0x4ed4c4(0x30c)](_0x4ffaf8[_0x4ed4c4(0x284)])['subscribe'](({unit:_0x1eb485})=>this[_0x4ed4c4(0x154)](_0x1eb485['getUnitId'](),_0x4ffaf8)[_0x4ed4c4(0x347)](()=>void 0x0));_0x59050c[_0x4ed4c4(0x17a)](_0x2b7065(()=>_0x3fb204['unsubscribe']()));let _0x366aaa=this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4ffaf8[_0x4ed4c4(0x284)])['subscribe'](_0x6bb236=>this[_0x4ed4c4(0x122)](_0x6bb236['getUnitId']()));_0x59050c[_0x4ed4c4(0x17a)](_0x2b7065(()=>_0x366aaa[_0x4ed4c4(0x1ab)]()));}async[_0x497e61(0x154)](_0x5b729f,_0x159d1b){const _0x2aeee3=_0x497e61;if(this['_entities'][_0x2aeee3(0x1c9)](_0x5b729f)||this[_0x2aeee3(0x2b7)][_0x2aeee3(0x1c9)](_0x5b729f))return;let _0x4a4cbc={};this[_0x2aeee3(0x2b7)][_0x2aeee3(0x21d)](_0x5b729f,_0x4a4cbc);let _0x395ffa=await this[_0x2aeee3(0x2b8)][_0x2aeee3(0x2bc)](_0x5b729f)[_0x2aeee3(0x347)](_0x2509f2=>{const _0x279ff2=_0x2aeee3;throw this[_0x279ff2(0x2b7)]['get'](_0x5b729f)===_0x4a4cbc&&this[_0x279ff2(0x2b7)][_0x279ff2(0x23e)](_0x5b729f),_0x2509f2;});if(this['_isDisposed']||this[_0x2aeee3(0x2b7)][_0x2aeee3(0x1b9)](_0x5b729f)!==_0x4a4cbc||this[_0x2aeee3(0x24d)][_0x2aeee3(0x1b9)](_0x159d1b[_0x2aeee3(0x284)])!==_0x159d1b){this[_0x2aeee3(0x2b7)][_0x2aeee3(0x1b9)](_0x5b729f)===_0x4a4cbc&&this[_0x2aeee3(0x2b7)][_0x2aeee3(0x23e)](_0x5b729f);return;}let _0x261159=this[_0x2aeee3(0x2ec)]['createInstance'](In,_0x5b729f,_0x395ffa,_0x159d1b);_0x261159[_0x2aeee3(0x1bc)](),this['_pendingEntities'][_0x2aeee3(0x23e)](_0x5b729f),this['_entities'][_0x2aeee3(0x21d)](_0x5b729f,_0x261159);}[_0x497e61(0x122)](_0x54a0a1){const _0x4287d0=_0x497e61;this[_0x4287d0(0x2b7)][_0x4287d0(0x23e)](_0x54a0a1);let _0x486bbb=this[_0x4287d0(0x119)][_0x4287d0(0x1b9)](_0x54a0a1);_0x486bbb&&(_0x486bbb['dispose'](),this[_0x4287d0(0x119)][_0x4287d0(0x23e)](_0x54a0a1));}[_0x497e61(0x28a)](_0x2cf99f){const _0x2419b0=_0x497e61;this[_0x2419b0(0x1a2)][_0x2419b0(0x34f)](_0x2cf99f)[_0x2419b0(0x176)](_0xa4424b=>this[_0x2419b0(0x2b7)][_0x2419b0(0x23e)](_0xa4424b[_0x2419b0(0x15c)]())),Array[_0x2419b0(0x1f6)](this[_0x2419b0(0x119)][_0x2419b0(0x1b6)]())['forEach'](([_0x40d64b,_0x541996])=>{const _0x5a148e=_0x2419b0;_0x541996[_0x5a148e(0x284)]===_0x2cf99f&&this['_disposeEntity'](_0x40d64b);});}};Q=q([K(0x0,_0x3a4483),K(0x1,_0x3d3024(_0x2351e1)),K(0x2,_0x3d3024(_0x1f87ca)),K(0x3,_0x3d3024(_0x3eb804))],Q);let Ln=class extends _0x26d1e6{constructor(_0x25c2e5,_0x1a9e91,_0x421a43,_0x57fcfb,_0x41d446,_0x679544){const _0x3bfbab=_0x497e61;super(),this[_0x3bfbab(0x362)]=_0x25c2e5,this[_0x3bfbab(0x22b)]=_0x1a9e91,this[_0x3bfbab(0x13b)]=_0x421a43,this[_0x3bfbab(0x208)]=_0x57fcfb,this[_0x3bfbab(0x330)]=_0x41d446,this[_0x3bfbab(0x17e)]=_0x679544,G(this,_0x3bfbab(0x269),null),G(this,_0x3bfbab(0x2cd),new Set()),this[_0x3bfbab(0x250)](),this[_0x3bfbab(0x1df)]();}[_0x497e61(0x242)](){const _0x58e65e=_0x497e61;var _0x42cb22;(_0x42cb22=this[_0x58e65e(0x269)])==null||_0x42cb22['dispose'](),this[_0x58e65e(0x269)]=null,super[_0x58e65e(0x242)]();}[_0x497e61(0x250)](){const _0x44c421=_0x497e61;this[_0x44c421(0x177)](this['_beforeCloseService'][_0x44c421(0x2af)](()=>{const _0x3ad0ed=_0x44c421;if(this[_0x3ad0ed(0x22b)][_0x3ad0ed(0x110)][_0x3ad0ed(0x337)])return this[_0x3ad0ed(0x17e)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}['_initEvent'](){const _0x3556fc=_0x497e61;this[_0x3556fc(0x177)](this[_0x3556fc(0x13b)][_0x3556fc(0x21a)][_0x3556fc(0x189)](_0x5b4e3d=>{const _0x10b01a=_0x3556fc;_0x5b4e3d['id']===_0x1ceacf[_0x10b01a(0x182)]&&this[_0x10b01a(0x208)][_0x10b01a(0x2f6)]({'type':_0x4d40c3[_0x10b01a(0x1be)],'content':this[_0x10b01a(0x17e)]['t'](_0x10b01a(0x307))}),_0x5b4e3d['id']===_0x1ceacf[_0x10b01a(0x2d7)]&&this['_messageService'][_0x10b01a(0x2f6)]({'type':_0x4d40c3['Warning'],'content':this[_0x10b01a(0x17e)]['t']('collaboration-client-ui.collaboration.closeRoom')}),_0x5b4e3d['id']===_0x1ceacf['PERMISSION_DENIED']&&this[_0x10b01a(0x34e)]({'title':this[_0x10b01a(0x17e)]['t'](_0x10b01a(0x138)),'content':this['_localeService']['t'](_0x10b01a(0x143)),'type':'error','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this[_0x10b01a(0x17e)]['t'](_0x10b01a(0x1f9)),'onClick':_0x2105a4=>{const _0x3c453d=_0x10b01a;_0x2105a4[_0x3c453d(0x1f8)](),window[_0x3c453d(0x234)]['reload']();}}}),_0x5b4e3d['id']===_0x1ceacf[_0x10b01a(0x273)]&&this[_0x10b01a(0x185)](),_0x5b4e3d['id']===_0x1ceacf['CONFLICT_CACHE_CLEAR_FAILED']&&_0x5b4e3d[_0x10b01a(0x2c4)]&&this[_0x10b01a(0x309)](_0x5b4e3d[_0x10b01a(0x2c4)]),_0x5b4e3d['id']===_0x1ceacf[_0x10b01a(0x2ae)]&&this[_0x10b01a(0x34e)]({'title':this[_0x10b01a(0x17e)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x10b01a(0x17e)]['t']('collaboration-client-ui.conflict.content'),'type':_0x10b01a(0x264),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this['_localeService']['t']('collaboration-client-ui.snapshotLoading.refresh'),'onClick':_0x375671=>{const _0xe632fb=_0x10b01a;_0x375671[_0xe632fb(0x1f8)](),window[_0xe632fb(0x234)][_0xe632fb(0x217)]();}}}),_0x5b4e3d['id']===_0x1ceacf[_0x10b01a(0x18b)]&&this[_0x10b01a(0x208)]['show']({'type':_0x4d40c3[_0x10b01a(0x1be)],'content':this['_localeService']['t'](_0x5b4e3d['data']||'')}),_0x5b4e3d['id']===_0x1ceacf['SOCKET_FAILED_RETRY']&&this[_0x10b01a(0x208)][_0x10b01a(0x2f6)]({'type':_0x4d40c3[_0x10b01a(0x1be)],'content':this['_localeService']['t']('collaboration-client-ui.session.will-retry')}),_0x5b4e3d['id']===_0x1ceacf[_0x10b01a(0x2b5)]&&this[_0x10b01a(0x208)][_0x10b01a(0x2f6)]({'type':_0x4d40c3[_0x10b01a(0x289)],'content':this[_0x10b01a(0x17e)]['t'](_0x10b01a(0x1ad))}),_0x5b4e3d['id']===_0x1ceacf['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService']['show']({'type':_0x4d40c3[_0x10b01a(0x289)],'content':this[_0x10b01a(0x17e)]['t'](_0x10b01a(0x287))});}));}[_0x497e61(0x185)](){const _0x42895a=_0x497e61;this['_replaceConflictNotification']({'title':this[_0x42895a(0x17e)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x42895a(0x17e)]['t'](_0x42895a(0x37d)),'type':'loading','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}[_0x497e61(0x309)](_0x5d0d12){const _0x4d5b32=_0x497e61;this[_0x4d5b32(0x34e)]({'title':this[_0x4d5b32(0x17e)]['t'](_0x4d5b32(0x163)),'content':this[_0x4d5b32(0x17e)]['t'](_0x4d5b32(0x312)),'type':'error','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this[_0x4d5b32(0x17e)]['t']('collaboration-client-ui.conflict.retry'),'onClick':_0x5687f7=>{const _0x3f8094=_0x4d5b32;_0x5687f7[_0x3f8094(0x1f8)](),this[_0x3f8094(0x2ef)](_0x5d0d12);}}});}[_0x497e61(0x2ef)](_0x178994){const _0x95ae13=_0x497e61;this['_retryingConflictCacheUnitIDs'][_0x95ae13(0x1c9)](_0x178994)||(this['_retryingConflictCacheUnitIDs']['add'](_0x178994),this['_showConflictProcessingNotification'](),this[_0x95ae13(0x22b)][_0x95ae13(0x359)](_0x178994)['then'](()=>window[_0x95ae13(0x234)][_0x95ae13(0x217)]())[_0x95ae13(0x347)](()=>this[_0x95ae13(0x309)](_0x178994))[_0x95ae13(0x379)](()=>this[_0x95ae13(0x2cd)][_0x95ae13(0x23e)](_0x178994)));}[_0x497e61(0x34e)](_0x42c8aa){const _0x38545c=_0x497e61;var _0x3cdf8e;(_0x3cdf8e=this['_conflictNotification'])==null||_0x3cdf8e[_0x38545c(0x242)](),this[_0x38545c(0x269)]=this[_0x38545c(0x330)][_0x38545c(0x2f6)](_0x42c8aa);}};Ln=q([K(0x0,_0x5aa2f1),K(0x1,_0x137b82),K(0x2,_0x3d3024(_0x3ac887)),K(0x3,_0x50bfcc),K(0x4,_0x542b4d),K(0x5,_0x3d3024(_0x6b982d))],Ln);const Rn=_0x386799(_0x497e61(0x313));let zn=class extends _0xe6d4b{constructor(_0x26faee,_0x2f7a2b,_0x5128af,_0x50680d){const _0x3fae12=_0x497e61;super(),this[_0x3fae12(0x2c3)]=_0x26faee,this[_0x3fae12(0x319)]=_0x2f7a2b,this[_0x3fae12(0x28b)]=_0x5128af,this[_0x3fae12(0x27e)]=_0x50680d,this['_init']()['catch'](_0x2e0753=>this[_0x3fae12(0x319)][_0x3fae12(0x264)](_0x3fae12(0x16d),_0x2e0753));}async['_init'](){const _0x2912de=_0x497e61;let _0x5ac780=this['_urlService'][_0x2912de(0x26d)](_0x2912de(0x2f9)),_0x496483=this['_urlService'][_0x2912de(0x26d)](_0x2912de(0x2a5)),_0x529046=this['_urlService'][_0x2912de(0x26d)]('subunit');if(!_0x5ac780||!_0x496483){this[_0x2912de(0x319)][_0x2912de(0x36d)](_0x2912de(0x16d),_0x2912de(0x15e));return;}let _0x34af2e=await this['_dataLoaderService'][_0x2912de(0x2c9)](_0x5ac780,Number(_0x496483),_0x529046);this[_0x2912de(0x1ee)]||_0x34af2e&&_0x34af2e instanceof _0x5163e7&&await this[_0x2912de(0x139)](_0x34af2e);}async[_0x497e61(0x139)](_0x2051d8){const _0x18839b=_0x497e61;await this[_0x18839b(0x141)](_0x2051d8,!0x0),!this['_disposed']&&(_0x2051d8[_0x18839b(0x21c)][_0x18839b(0x27a)](_0x4eb845(this[_0x18839b(0x1f0)]))['subscribe'](_0x373cae=>{const _0x41902c=_0x18839b;_0x373cae&&this[_0x41902c(0x2ff)](_0x373cae);}),this[_0x18839b(0x2c3)][_0x18839b(0x219)][_0x18839b(0x27a)](_0x4eb845(this[_0x18839b(0x1f0)]))['subscribe'](()=>{const _0x32a1b3=_0x18839b;this[_0x32a1b3(0x141)](_0x2051d8)[_0x32a1b3(0x347)](_0x46d4d6=>this['_logService'][_0x32a1b3(0x264)](_0x32a1b3(0x16d),_0x46d4d6));}));}[_0x497e61(0x2ff)](_0x37c226,_0x1c6898=!0x1){const _0x5ef40d=_0x497e61;let _0x1cd30b=this['_urlService']['getParam'](_0x5ef40d(0x1b4));_0x37c226[_0x5ef40d(0x378)]()!==_0x1cd30b&&this[_0x5ef40d(0x2c3)][_0x5ef40d(0x371)](_0x5ef40d(0x1b4),_0x37c226[_0x5ef40d(0x378)](),_0x1c6898);}async['_updateSubUnitFromURLParams'](_0x358e7e,_0x17506b=!0x1){const _0x1c5b4f=_0x497e61;var _0x24e375;let _0x388c58=this[_0x1c5b4f(0x2c3)][_0x1c5b4f(0x26d)](_0x1c5b4f(0x1b4));if(!_0x388c58||!_0x358e7e[_0x1c5b4f(0x2d0)](_0x388c58)){let _0x466234=_0x358e7e['getUnhiddenWorksheets']()[0x0],_0x2064b8=_0x358e7e[_0x1c5b4f(0x2d0)](_0x466234);if(!_0x2064b8||(this[_0x1c5b4f(0x2ff)](_0x2064b8,!0x0),this[_0x1c5b4f(0x1ee)]))return;await this['_commandService'][_0x1c5b4f(0x181)](_0x5d4888['id'],{'unitId':_0x358e7e[_0x1c5b4f(0x15c)](),'subUnitId':_0x466234});return;}(_0x17506b||((_0x24e375=_0x358e7e[_0x1c5b4f(0x24c)]())==null?void 0x0:_0x24e375[_0x1c5b4f(0x378)]())!==_0x388c58)&&await this[_0x1c5b4f(0x28b)][_0x1c5b4f(0x181)](_0x5d4888['id'],{'unitId':_0x358e7e[_0x1c5b4f(0x15c)](),'subUnitId':_0x388c58});}};zn=q([K(0x0,Rn),K(0x1,_0x141c38),K(0x2,_0x137b25),K(0x3,_0x3d3024(_0x18448c))],zn);let Bn=class{constructor(_0x17eb8d,_0x372ffd){const _0x2ecc53=_0x497e61;this['_transformService']=_0x17eb8d,this[_0x2ecc53(0x1f4)]=_0x372ffd;}[_0x497e61(0x1b3)](_0x322b68){const _0x23ec3c=_0x497e61;this[_0x23ec3c(0x19f)](_0x322b68),this['_transformPreviousActiveRange'](_0x322b68);}[_0x497e61(0x231)](_0x49562b){const _0x11e2a9=_0x497e61;let {unitID:_0x3d36de}=_0x49562b,{redoCache:_0x1e5191}=this[_0x11e2a9(0x1f4)]['getRenderUnitById'](_0x3d36de)['with'](_0x56d8d9)[_0x11e2a9(0x175)]();if(_0x1e5191[_0x11e2a9(0x346)]===0x0)return _0x49562b;let _0x5188a1=_0x1c1492[_0x11e2a9(0x27f)](_0x49562b[_0x11e2a9(0x126)][0x0]);for(let _0x220256=0x0;_0x220256<_0x1e5191[_0x11e2a9(0x346)];_0x220256++){let _0x1b2968={'id':_0x11e2a9(0x361),'params':{..._0x1e5191[_0x220256]}},_0x146159=this[_0x11e2a9(0x356)]['transformMutation'](_0x5188a1,_0x1b2968,!0x1);if(_0x1b03b5(_0x146159))throw _0x146159['error'];_0x5188a1=_0x146159[_0x11e2a9(0x275)];}return{..._0x1c1492[_0x11e2a9(0x27f)](_0x49562b),'mutations':[_0x5188a1]};}[_0x497e61(0x19f)](_0x5ec320){const _0x5d18a7=_0x497e61;let {unitID:_0x5e1af3}=_0x5ec320,_0x1ddec5=this[_0x5d18a7(0x1f4)][_0x5d18a7(0x32f)](_0x5e1af3)[_0x5d18a7(0x270)](_0x56d8d9),{undoCache:_0x2e3eda,redoCache:_0x60d4ee}=_0x1ddec5[_0x5d18a7(0x175)]();if(_0x2e3eda[_0x5d18a7(0x346)]===0x0||_0x60d4ee[_0x5d18a7(0x346)]===0x0)return;let _0x3a8ce2=[],_0x257eb1=[],_0x36fab9=_0x1c1492[_0x5d18a7(0x27f)](_0x5ec320[_0x5d18a7(0x126)][0x0]),_0x1d47d3=_0x1c1492[_0x5d18a7(0x27f)](_0x5ec320[_0x5d18a7(0x126)][0x0]);for(let _0x146728=_0x2e3eda[_0x5d18a7(0x346)]-0x1;_0x146728>=0x0;_0x146728--){let _0x174e7d={'id':_0x5d18a7(0x361),'params':{..._0x2e3eda[_0x146728]}},_0x3009f7={'id':_0x5d18a7(0x361),'params':{..._0x60d4ee[_0x146728]}},_0x3c519f=this[_0x5d18a7(0x356)]['transformMutation'](_0x36fab9,_0x174e7d,!0x1),_0x29a0b6=this['_transformService'][_0x5d18a7(0x1a8)](_0x1d47d3,_0x3009f7,!0x1);if(_0x1b03b5(_0x3c519f))throw _0x3c519f[_0x5d18a7(0x264)];if(_0x1b03b5(_0x29a0b6))throw _0x29a0b6[_0x5d18a7(0x264)];_0x3a8ce2[_0x5d18a7(0x19c)](_0x3c519f[_0x5d18a7(0x2df)]['params']),_0x257eb1[_0x5d18a7(0x19c)](_0x29a0b6[_0x5d18a7(0x2df)][_0x5d18a7(0x300)]),_0x36fab9=_0x3c519f[_0x5d18a7(0x275)],_0x1d47d3=_0x29a0b6['m1Prime'];}_0x1ddec5['setUndoRedoMutationParamsCache']({'undoCache':_0x3a8ce2,'redoCache':_0x257eb1});}[_0x497e61(0x315)](_0x268b4b){const _0x46e75f=_0x497e61;let {unitID:_0x628371}=_0x268b4b,_0x464eff=this['_renderManagerService'][_0x46e75f(0x32f)](_0x628371)['with'](_0x56d8d9),_0x480255=_0x464eff[_0x46e75f(0x197)]();if(_0x480255==null)return;let _0x134c7a=[{'id':_0x46e75f(0x361),'params':{'unitId':_0x268b4b['unitID'],'actions':null,'textRanges':[_0x480255]}}],_0x2795a1=this[_0x46e75f(0x356)][_0x46e75f(0x36a)](_0x268b4b,_0x134c7a);if(!_0x5311f0(_0x2795a1))throw _0x2795a1['error'];let _0x2f39ee=_0x2795a1[_0x46e75f(0x2df)][0x0]['params'][_0x46e75f(0x152)];Array['isArray'](_0x2f39ee)&&_0x2f39ee[_0x46e75f(0x346)]&&_0x464eff['setActiveRange'](_0x2f39ee[0x0]);}};Bn=q([K(0x0,_0x23eea6),K(0x1,_0x32ed6c)],Bn);let Vn=class{constructor(_0x18bdce,_0x276300,_0x15375a){const _0x1fd529=_0x497e61;this[_0x1fd529(0x2ec)]=_0x18bdce,this[_0x1fd529(0x356)]=_0x276300,this['_docStateChangeManagerService']=_0x15375a;}[_0x497e61(0x22f)](_0xc1b9a4){this['_transformHistoryAndStateStack'](_0xc1b9a4);}[_0x497e61(0x231)](_0x236936){const _0x2a8a1e=_0x497e61;let {unitID:_0x4cc5e8}=_0x236936,{collaboration:_0x30a026}=this[_0x2a8a1e(0x249)][_0x2a8a1e(0x2f0)](_0x4cc5e8);if(_0x30a026[_0x2a8a1e(0x346)]===0x0)return _0x236936;let _0x2749a3=_0x1c1492[_0x2a8a1e(0x27f)](_0x236936[_0x2a8a1e(0x126)][0x0]);for(let _0xe16be2=0x0;_0xe16be2<_0x30a026[_0x2a8a1e(0x346)];_0xe16be2++){let _0xee9667={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x30a026[_0xe16be2][_0x2a8a1e(0x276)],..._0x30a026[_0xe16be2]['redoState']}},_0x55627a=this[_0x2a8a1e(0x356)][_0x2a8a1e(0x1a8)](_0x2749a3,_0xee9667,!0x1);if(_0x1b03b5(_0x55627a))throw _0x55627a[_0x2a8a1e(0x264)];_0x2749a3=_0x55627a[_0x2a8a1e(0x275)];}return{..._0x1c1492[_0x2a8a1e(0x27f)](_0x236936),'mutations':[_0x2749a3]};}['_transformHistoryAndStateStack'](_0xc70ba9){const _0x24362a=_0x497e61;let {unitID:_0x360dce}=_0xc70ba9,{history:_0x115f5e,collaboration:_0x46883e}=this[_0x24362a(0x249)]['getStateCache'](_0x360dce);if(_0x115f5e['length']===0x0&&_0x46883e[_0x24362a(0x346)]===0x0)return;let _0x4ce115=[],_0x4e43a4=[],_0x475523=_0x1c1492[_0x24362a(0x27f)](_0xc70ba9[_0x24362a(0x126)][0x0]),_0x2d0ab2=_0x1c1492[_0x24362a(0x27f)](_0xc70ba9[_0x24362a(0x126)][0x0]);for(let _0x47796b=_0x115f5e[_0x24362a(0x346)]-0x1;_0x47796b>=0x0;_0x47796b--){let _0x468589={'id':_0x24362a(0x361),'params':{'unitId':_0x115f5e[_0x47796b][_0x24362a(0x276)],..._0x115f5e[_0x47796b][_0x24362a(0x324)]}},_0x54cb8a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x115f5e[_0x47796b][_0x24362a(0x276)],..._0x115f5e[_0x47796b]['redoState']}},_0x33b10b=this['_transformService'][_0x24362a(0x1a8)](_0x475523,_0x468589,!0x1),_0x90233f=this[_0x24362a(0x356)][_0x24362a(0x1a8)](_0x2d0ab2,_0x54cb8a,!0x1);if(_0x1b03b5(_0x33b10b))throw _0x33b10b[_0x24362a(0x264)];if(_0x1b03b5(_0x90233f))throw _0x90233f['error'];_0x4ce115[_0x24362a(0x19c)]({..._0x115f5e[_0x47796b],'undoState':_0x33b10b[_0x24362a(0x2df)]['params'],'redoState':_0x90233f['m2Prime'][_0x24362a(0x300)]}),_0x475523=_0x33b10b['m1Prime'],_0x2d0ab2=_0x90233f[_0x24362a(0x275)];}_0x475523=_0x1c1492['deepClone'](_0xc70ba9[_0x24362a(0x126)][0x0]),_0x2d0ab2=_0x1c1492[_0x24362a(0x27f)](_0xc70ba9[_0x24362a(0x126)][0x0]);for(let _0x3f5cec=_0x46883e[_0x24362a(0x346)]-0x1;_0x3f5cec>=0x0;_0x3f5cec--){let _0x5d63a9={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x46883e[_0x3f5cec][_0x24362a(0x276)],..._0x46883e[_0x3f5cec][_0x24362a(0x324)]}},_0x4f6cb5={'id':_0x24362a(0x361),'params':{'unitId':_0x46883e[_0x3f5cec]['unitId'],..._0x46883e[_0x3f5cec][_0x24362a(0x17b)]}},_0x4dfee2=this['_transformService'][_0x24362a(0x1a8)](_0x475523,_0x5d63a9,!0x1),_0x106fce=this[_0x24362a(0x356)]['transformMutation'](_0x2d0ab2,_0x4f6cb5,!0x1);if(_0x1b03b5(_0x4dfee2))throw _0x4dfee2[_0x24362a(0x264)];if(_0x1b03b5(_0x106fce))throw _0x106fce[_0x24362a(0x264)];_0x4e43a4[_0x24362a(0x19c)]({..._0x46883e[_0x3f5cec],'undoState':_0x4dfee2[_0x24362a(0x2df)][_0x24362a(0x300)],'redoState':_0x106fce['m2Prime'][_0x24362a(0x300)]}),_0x475523=_0x4dfee2[_0x24362a(0x275)],_0x2d0ab2=_0x106fce['m1Prime'];}this[_0x24362a(0x249)]['setStateCache'](_0x360dce,{'history':_0x4ce115,'collaboration':_0x4e43a4});}};Vn=q([K(0x0,_0x3d3024(_0x2351e1)),K(0x1,_0x23eea6),K(0x2,_0x3d3024(_0x56ea32))],Vn);let Hn=class{constructor(_0xba3a6b,_0x131825){const _0x95b5ee=_0x497e61;this['_docSelectionManagerService']=_0xba3a6b,this[_0x95b5ee(0x356)]=_0x131825;}[_0x497e61(0x18a)](_0xd2ee64){const _0x528277=_0x497e61;var _0x3c6de3;let _0x451e4b=this[_0x528277(0x30d)]['getDocRanges']()??[],_0x279b0a=this['_docSelectionManagerService'][_0x528277(0x2d9)]();if(_0x451e4b[_0x528277(0x346)]===0x0||_0x279b0a==null)return null;let _0x3169fd=_0xd2ee64[_0x528277(0x2c4)],_0x39d470=[{'id':_0x528277(0x361),'params':{'unitId':_0x3169fd,'actions':null,'textRanges':_0x451e4b}}],_0x20d95b=this['_transformService']['transformMutationsWithChangeset'](_0xd2ee64,_0x39d470);if(!_0x5311f0(_0x20d95b))throw _0x20d95b[_0x528277(0x264)];let _0x5bd866=(_0x3c6de3=_0x20d95b[_0x528277(0x2df)][0x0])==null?void 0x0:_0x3c6de3[_0x528277(0x300)],_0x34a38c=_0x5bd866&&typeof _0x5bd866==_0x528277(0x146)&&_0x528277(0x152)in _0x5bd866?_0x5bd866[_0x528277(0x152)]:null;if(!Gn(_0x34a38c))return null;let _0x16821e=Un(_0xd2ee64['mutations'][_0x528277(0x1e3)](_0x39ced4=>Kn(_0x39ced4[_0x528277(0x300)]))?_0x34a38c[_0x528277(0x10d)](_0x3c1f70=>!(_0x528277(0x23a)in _0x3c1f70)):_0x34a38c,{..._0x279b0a,'options':_0x279b0a[_0x528277(0x2b1)]?{..._0x279b0a['options'],'wholeDocument':!0x1}:void 0x0}),_0x54d5ad={'unitId':_0x3169fd,'subUnitId':_0x3169fd};this[_0x528277(0x30d)]['replaceSelectionInfoWithoutRefresh'](_0x16821e,_0x54d5ad);let _0x31146a=!0x0;return{'commit':()=>{_0x31146a=!0x1;},'rollback':()=>{const _0x4d09c5=_0x528277;_0x31146a&&(_0x31146a=!0x1,this[_0x4d09c5(0x30d)][_0x4d09c5(0x36e)](_0x279b0a,_0x54d5ad));}};}};Hn=q([K(0x0,_0x3d3024(_0x404c28)),K(0x1,_0x23eea6)],Hn);function Un(_0x2dad00,_0x38b1dd){const _0x61b71f=_0x497e61;let _0xc83dd9=[],_0x12ca55=[];for(let _0x117387 of _0x2dad00)Wn(_0x117387)?_0x12ca55[_0x61b71f(0x24b)](_0x117387):_0xc83dd9[_0x61b71f(0x24b)](_0x117387);return{..._0x38b1dd,'textRanges':_0xc83dd9,'rectRanges':_0x12ca55};}function Wn(_0x5d90b5){const _0x346353=_0x497e61;return _0x346353(0x23a)in _0x5d90b5;}function Gn(_0x5b2b0f){const _0x3048fb=_0x497e61;return Array[_0x3048fb(0x115)](_0x5b2b0f)&&_0x5b2b0f[_0x3048fb(0x18f)](_0x5dcf68=>typeof _0x5dcf68==_0x3048fb(0x146)&&!!_0x5dcf68&&_0x3048fb(0x144)in _0x5dcf68&&_0x3048fb(0x20e)in _0x5dcf68);}function Kn(_0xc4b717){const _0x130607=_0x497e61;return _0xc4b717===_0x130607(0x29d)?!0x0:Array['isArray'](_0xc4b717)?_0xc4b717['some'](_0x539298=>Kn(_0x539298)):!_0xc4b717||typeof _0xc4b717!=_0x130607(0x146)?!0x1:Object['values'](_0xc4b717)['some'](_0x58f1c7=>Kn(_0x58f1c7));}let qn=class extends _0x26d1e6{constructor(_0xb3ee39,_0x1192d5,_0x57c78a,_0x439451,_0xd1bbda,_0x24b902,_0x22b05f){const _0x50a13f=_0x497e61;super(),this[_0x50a13f(0x241)]=_0xb3ee39,this[_0x50a13f(0x1ca)]=_0x1192d5,this[_0x50a13f(0x15a)]=_0x57c78a,this[_0x50a13f(0x17d)]=_0x439451,this['_docSyncEditingCollabCursorService']=_0xd1bbda,this[_0x50a13f(0x208)]=_0x24b902,this['_localeService']=_0x22b05f,G(this,'_status$',new _0x52e8e8(_0x52ef7e['NOT_COLLAB'])),this[_0x50a13f(0x174)]();}[_0x497e61(0x174)](){const _0x3389cc=_0x497e61;this[_0x3389cc(0x177)](this[_0x3389cc(0x241)][_0x3389cc(0x1eb)]['subscribe'](_0x317454=>{const _0x38345d=_0x3389cc;_0x317454 instanceof _0x4fcb18&&_0x317454['addHandlerCallback']({'onTransformIME':_0x316e7b=>this[_0x38345d(0x1ca)][_0x38345d(0x1b3)](_0x316e7b),'onTransformState':_0x5a0930=>this[_0x38345d(0x15a)][_0x38345d(0x22f)](_0x5a0930),'onPrepareTransformSelections':_0x5c3285=>this[_0x38345d(0x17d)][_0x38345d(0x18a)](_0x5c3285),'onSyncEditingCollabCursor':_0x1e5127=>this[_0x38345d(0x218)][_0x38345d(0x1c2)](_0x1e5127),'onTransformRemoteChangesetByIMECache':_0x577663=>this[_0x38345d(0x1ca)][_0x38345d(0x231)](_0x577663),'onTransformRemoteChangesetByStateCache':_0x324ac5=>this[_0x38345d(0x15a)][_0x38345d(0x231)](_0x324ac5)});}));}};qn=q([K(0x0,_0x3d3024(_0x2db83e)),K(0x1,_0x3d3024(Bn)),K(0x2,_0x3d3024(Vn)),K(0x3,_0x3d3024(Hn)),K(0x4,_0x3d3024(_n)),K(0x5,_0x50bfcc),K(0x6,_0x3d3024(_0x6b982d))],qn);let Jn=class extends _0x26d1e6{constructor(_0x165d5a,_0x5b9fb4,_0x582521,_0x2b88d1){const _0x63d79a=_0x497e61;super(),this[_0x63d79a(0x2ec)]=_0x165d5a,this[_0x63d79a(0x301)]=_0x5b9fb4,this[_0x63d79a(0x319)]=_0x582521,this['_collaborationSessionService']=_0x2b88d1,G(this,'_memberID',void 0x0),this['_init']();}[_0x497e61(0x1a4)](){const _0x44ffd6=_0x497e61;this[_0x44ffd6(0x282)](),this[_0x44ffd6(0x2ed)](),this[_0x44ffd6(0x304)](),this[_0x44ffd6(0x127)]();}[_0x497e61(0x127)](){const _0x561ed1=_0x497e61;this[_0x561ed1(0x177)](this[_0x561ed1(0x1cd)][_0x561ed1(0x1c5)][_0x561ed1(0x189)](_0x4babcf=>{const _0x53b530=_0x561ed1;this['_memberID']=_0x4babcf==null?void 0x0:_0x4babcf[_0x53b530(0x155)];}));}[_0x497e61(0x282)](){const _0x34a95b=_0x497e61;let _0x52ec90=_0x38334a=>{const _0x339fe5=_0x1250;var _0xe051fe;this[_0x339fe5(0x2e7)](_0x339fe5(0x264),'[Window\x20Error]:\x20'+_0x38334a[_0x339fe5(0x11a)]+'\x20at\x20'+_0x38334a['filename']+':'+_0x38334a['lineno']+':'+_0x38334a[_0x339fe5(0x358)]+'\x0a'+(((_0xe051fe=_0x38334a[_0x339fe5(0x264)])==null?void 0x0:_0xe051fe[_0x339fe5(0x350)])||''));};window[_0x34a95b(0x2be)](_0x34a95b(0x264),_0x52ec90),this['disposeWithMe'](()=>{const _0x18add0=_0x34a95b;window['removeEventListener'](_0x18add0(0x264),_0x52ec90);});}[_0x497e61(0x2ed)](){const _0x3e4650=_0x497e61;let _0x21693a=_0xfadde1=>{const _0x4af01e=_0x1250;this[_0x4af01e(0x2e7)](_0x4af01e(0x264),_0x4af01e(0x34b)+_0xfadde1[_0x4af01e(0x260)]);};window[_0x3e4650(0x2be)](_0x3e4650(0x1fe),_0x21693a),this[_0x3e4650(0x177)](()=>{const _0x374091=_0x3e4650;window[_0x374091(0x147)]('unhandledrejection',_0x21693a);});}[_0x497e61(0x304)](){const _0x2a61b5=_0x497e61;let _0x59bad8=this[_0x2a61b5(0x319)][_0x2a61b5(0x264)]['bind'](this[_0x2a61b5(0x319)]);this[_0x2a61b5(0x319)]['error']=(..._0x2d53f6)=>{const _0x1e94f9=_0x2a61b5;let _0x531ff9=_0x2d53f6[_0x1e94f9(0x27d)](_0x51d0f9=>_0x51d0f9 instanceof Error?_0x51d0f9[_0x1e94f9(0x11a)]+'\x0a'+_0x51d0f9[_0x1e94f9(0x350)]:String(_0x51d0f9))[_0x1e94f9(0x294)]('\x20');this[_0x1e94f9(0x2e7)](_0x1e94f9(0x264),'[LogService\x20Error]:\x20'+_0x531ff9),_0x59bad8(..._0x2d53f6);},this['disposeWithMe'](()=>{const _0x1a382e=_0x2a61b5;this['_logService'][_0x1a382e(0x264)]=_0x59bad8;});}[_0x497e61(0x2e7)](_0x3271f7,_0x3c7e93){const _0x173802=_0x497e61;try{let _0x15a56d={'userId':this[_0x173802(0x206)],'logLabel':_0x3271f7,'content':_0x3c7e93};this['_httpService'][_0x173802(0x2e5)](_0x173802(0x1c6),{'body':_0x15a56d})[_0x173802(0x347)](()=>{});}catch{}}};Jn=q([K(0x0,_0x3d3024(_0x2351e1)),K(0x1,_0x3d3024(_0x32be63)),K(0x2,_0x141c38),K(0x3,_0x3d3024(_0x1f87ca))],Jn);function Yn({state$:_0x37f6d1}){const _0x10e04b=_0x497e61;let _0x5046da=_0xc78634(_0x37f6d1,null,!0x0);return _0x5046da?_0x3fe01f(_0x10e04b(0x1b2),{'data-u-comp':_0x10e04b(0x1fb),'role':_0x10e04b(0x13d),'className':_0x10e04b(0x15b),'children':[_0x242b5a(_0x535da3,{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),_0x242b5a('span',{'children':_0x5046da[_0x10e04b(0x12d)]}),_0x242b5a(_0xfb512b,{'size':_0x10e04b(0x2f1),'variant':'primary','onClick':()=>window[_0x10e04b(0x234)][_0x10e04b(0x217)](),'children':_0x5046da[_0x10e04b(0x212)]})]}):null;}const Xn=_0x497e61(0x1ff);let Zn=class extends _0x26d1e6{constructor(_0x5e0c73,_0x117585,_0x33c63c,_0x2048fc,_0x4b8026,_0x3b1f59){const _0x94c65=_0x497e61;super(),this[_0x94c65(0x24a)]=_0x5e0c73,this[_0x94c65(0x208)]=_0x117585,this[_0x94c65(0x17e)]=_0x33c63c,this[_0x94c65(0x2ec)]=_0x2048fc,this['_urlService']=_0x3b1f59,G(this,'_timeoutState$',new _0x52e8e8(null)),G(this,'_messageIds',new Set()),G(this,_0x94c65(0x1e2),new Map()),G(this,_0x94c65(0x178),new Map()),G(this,_0x94c65(0x28c),this['_timeoutState$'][_0x94c65(0x30e)]());let _0x48a78d=()=>_0x24ae67(Yn,{'state$':this['timeoutState$']});this['disposeWithMe'](_0x4b8026[_0x94c65(0x263)](_0x4c7d13[_0x94c65(0x1a9)],()=>_0x42b10d(_0x48a78d,this[_0x94c65(0x2ec)]))),this[_0x94c65(0x177)](this['_snapshotLoadingService']['state$'][_0x94c65(0x189)](_0x3c0089=>{const _0x157357=_0x94c65;this[_0x157357(0x178)]=_0x3c0089,_0x3c0089[_0x157357(0x176)](_0x283a4a=>this[_0x157357(0x194)](_0x283a4a));})),this[_0x94c65(0x177)](this[_0x94c65(0x2c3)][_0x94c65(0x219)]['subscribe'](()=>{const _0x4d81ba=_0x94c65;this[_0x4d81ba(0x178)]['forEach'](_0xc2d050=>this['_updateMessage'](_0xc2d050));}));}[_0x497e61(0x242)](){const _0x43548b=_0x497e61;this[_0x43548b(0x20a)]['forEach'](_0x410769=>this[_0x43548b(0x208)][_0x43548b(0x2c6)](_0x410769)),this[_0x43548b(0x20a)]['clear'](),this[_0x43548b(0x1e2)][_0x43548b(0x176)](({timeoutId:_0x196d1e})=>clearTimeout(_0x196d1e)),this[_0x43548b(0x1e2)][_0x43548b(0x374)](),this[_0x43548b(0x202)]['complete'](),super[_0x43548b(0x242)]();}[_0x497e61(0x194)](_0x2d2d67){const _0xc7da18=_0x497e61;let _0x886ead=''+Xn+_0x2d2d67[_0xc7da18(0x276)];if(_0x2d2d67[_0xc7da18(0x373)]===_0x3aa3b4[_0xc7da18(0x167)]){this[_0xc7da18(0x2c0)](_0x2d2d67[_0xc7da18(0x276)]),this['_clearTimeoutState'](_0x2d2d67[_0xc7da18(0x276)]),this['_messageService'][_0xc7da18(0x2c6)](_0x886ead),this[_0xc7da18(0x20a)][_0xc7da18(0x23e)](_0x886ead);return;}if(!this['_isVisibleUnit'](_0x2d2d67['unitId'])){this[_0xc7da18(0x2c0)](_0x2d2d67[_0xc7da18(0x276)]),this['_clearTimeoutState'](_0x2d2d67['unitId']),this[_0xc7da18(0x208)][_0xc7da18(0x2c6)](_0x886ead),this[_0xc7da18(0x20a)]['delete'](_0x886ead);return;}if(_0x2d2d67['stage']===_0x3aa3b4['ERROR']){this['_clearBlockProgressWatch'](_0x2d2d67[_0xc7da18(0x276)]),this[_0xc7da18(0x12e)](_0x2d2d67[_0xc7da18(0x276)]),this[_0xc7da18(0x208)][_0xc7da18(0x2f6)]({'id':_0x886ead,'type':_0x4d40c3[_0xc7da18(0x289)],'content':this[_0xc7da18(0x17e)]['t'](_0xc7da18(0x1ad))}),this[_0xc7da18(0x20a)][_0xc7da18(0x23e)](_0x886ead);return;}if(_0x2d2d67['stage']!==_0x3aa3b4[_0xc7da18(0x2d6)]||_0x2d2d67[_0xc7da18(0x33a)]<=0xa){this[_0xc7da18(0x2c0)](_0x2d2d67[_0xc7da18(0x276)]),this[_0xc7da18(0x208)][_0xc7da18(0x2c6)](_0x886ead),this[_0xc7da18(0x20a)][_0xc7da18(0x23e)](_0x886ead);return;}this['_watchBlockProgress'](_0x2d2d67)||(this[_0xc7da18(0x208)][_0xc7da18(0x2f6)]({'id':_0x886ead,'type':_0x4d40c3[_0xc7da18(0x200)],'duration':0x1/0x0,'content':this[_0xc7da18(0x17e)]['t'](_0xc7da18(0x1a7))+'\x20'+_0x2d2d67['loadedBlocks']+'/'+_0x2d2d67['totalBlocks']}),this[_0xc7da18(0x20a)]['add'](_0x886ead));}['_watchBlockProgress'](_0x521393){const _0xe5e81e=_0x497e61;let _0x34e090=this['_blockProgressWatches']['get'](_0x521393[_0xe5e81e(0x276)]);if((_0x34e090==null?void 0x0:_0x34e090[_0xe5e81e(0x2e1)])===_0x521393['loadedBlocks'])return _0x34e090[_0xe5e81e(0x1d0)];this['_clearBlockProgressWatch'](_0x521393[_0xe5e81e(0x276)]);let _0x594c3c=setTimeout(()=>{const _0x3a2021=_0xe5e81e;let _0x4a5ed=this[_0x3a2021(0x1e2)][_0x3a2021(0x1b9)](_0x521393[_0x3a2021(0x276)]);if(!_0x4a5ed||_0x4a5ed[_0x3a2021(0x224)]!==_0x594c3c)return;_0x4a5ed[_0x3a2021(0x1d0)]=!0x0;let _0x3ec963=''+Xn+_0x521393[_0x3a2021(0x276)];this[_0x3a2021(0x208)][_0x3a2021(0x2c6)](_0x3ec963),this['_messageIds'][_0x3a2021(0x23e)](_0x3ec963),this[_0x3a2021(0x202)][_0x3a2021(0x238)]({'unitId':_0x521393[_0x3a2021(0x276)],'content':this['_localeService']['t'](_0x3a2021(0x18c),String(_0x521393[_0x3a2021(0x2e1)]),String(_0x521393[_0x3a2021(0x33a)])),'refreshLabel':this[_0x3a2021(0x17e)]['t'](_0x3a2021(0x1f9))});},0xea60);return this[_0xe5e81e(0x1e2)]['set'](_0x521393['unitId'],{'loadedBlocks':_0x521393[_0xe5e81e(0x2e1)],'timedOut':!0x1,'timeoutId':_0x594c3c}),!0x1;}[_0x497e61(0x2c0)](_0x1a02e5){const _0x277de7=_0x497e61;let _0x30d5a1=this[_0x277de7(0x1e2)][_0x277de7(0x1b9)](_0x1a02e5);_0x30d5a1&&(clearTimeout(_0x30d5a1[_0x277de7(0x224)]),this['_blockProgressWatches']['delete'](_0x1a02e5),this['_clearTimeoutState'](_0x1a02e5));}['_clearTimeoutState'](_0xe85a4b){const _0x4a820d=_0x497e61;var _0xe1a80a;((_0xe1a80a=this[_0x4a820d(0x202)][_0x4a820d(0x156)])==null?void 0x0:_0xe1a80a[_0x4a820d(0x276)])===_0xe85a4b&&this[_0x4a820d(0x202)][_0x4a820d(0x238)](null);}[_0x497e61(0x318)](_0x1ec91a){const _0x133e52=_0x497e61;let _0x3e3d9b=this['_urlService'][_0x133e52(0x26d)](_0x133e52(0x2f9));return!_0x3e3d9b||_0x3e3d9b===_0x1ec91a;}};Zn=q([K(0x0,_0x3d3024(_0xd32281)),K(0x1,_0x50bfcc),K(0x2,_0x3d3024(_0x6b982d)),K(0x3,_0x3d3024(_0x2351e1)),K(0x4,_0x1d4041),K(0x5,Rn)],Zn);let Qn=class extends _0x26d1e6{constructor(_0x9d170,_0x46346f,_0x472700){const _0x42b5a5=_0x497e61;super(),this[_0x42b5a5(0x2a7)]=_0x9d170,this[_0x42b5a5(0x2cf)]=_0x46346f,this[_0x42b5a5(0x1ba)]=_0x472700,G(this,_0x42b5a5(0x233),new Map()),G(this,_0x42b5a5(0x252),new Map()),G(this,'_activeSaveTaskMap',new Map()),G(this,_0x42b5a5(0x29b),!0x1);}[_0x497e61(0x288)](){const _0x95890e=_0x497e61;this[_0x95890e(0x29b)]=!0x0;}[_0x497e61(0x33c)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x1c794b=_0x497e61;return this[_0x1c794b(0x252)];}[_0x497e61(0x242)](){const _0x5c9e06=_0x497e61;this[_0x5c9e06(0x135)]()[_0x5c9e06(0x1ac)](()=>super[_0x5c9e06(0x242)]());}async['loadOfflineData'](_0x1bff10){const _0x10c4c5=_0x497e61;return this[_0x10c4c5(0x29b)]?null:this['_localStorageService'][_0x10c4c5(0x34d)](_0x163373(_0x1bff10));}async[_0x497e61(0x172)](_0x10313b,_0xa5fb5a){const _0x520df7=_0x497e61;let _0x2ee056=this['_localStorageService'][_0x520df7(0x20f)](_0x163373(_0x10313b),_0xa5fb5a);return this[_0x520df7(0x255)](_0x10313b,_0x2ee056),!!await _0x2ee056;}async[_0x497e61(0x120)](_0x2fd6b0,_0x34fce3){const _0x39979f=_0x497e61;let _0x133972=this['_cachedData'][_0x39979f(0x1b9)](_0x2fd6b0)??await this[_0x39979f(0x2cf)]['getItem'](_0x163373(_0x2fd6b0));if(!_0x133972)return;let _0x18ca4f=Date['now'](),_0x16ae5d=new Date(_0x18ca4f)['toISOString']();await this[_0x39979f(0x2cf)][_0x39979f(0x20f)](_0x163373(_0x2fd6b0)+':backup:'+_0x18ca4f,{'reason':_0x34fce3,'createdAt':_0x16ae5d,'data':_0x133972});}async[_0x497e61(0x359)](_0x103da9){const _0x551b1b=_0x497e61;let _0x3a0869=this['_saveTaskMap'][_0x551b1b(0x1b9)](_0x103da9);_0x3a0869!==void 0x0&&(window[_0x551b1b(0x1e7)](_0x3a0869),this[_0x551b1b(0x252)][_0x551b1b(0x23e)](_0x103da9));let _0x1881b0=this[_0x551b1b(0x2f4)]['get'](_0x103da9);_0x1881b0&&await Promise[_0x551b1b(0x297)](_0x1881b0),this[_0x551b1b(0x233)][_0x551b1b(0x23e)](_0x103da9),await this['_localStorageService'][_0x551b1b(0x136)](_0x163373(_0x103da9));}[_0x497e61(0x342)](_0x26e626,_0x485b10,_0x14feba,_0x13641a){const _0x366b9f=_0x497e61;let _0x1a71b4=this[_0x366b9f(0x1ba)]['getCurrentRevOfUnit'](_0x26e626);this[_0x366b9f(0x233)]['set'](_0x26e626,{'unitID':_0x26e626,'type':_0x485b10,'awaitingChangeset':_0x14feba,'mutations':_0x13641a,'rev':_0x1a71b4}),this[_0x366b9f(0x252)]['has'](_0x26e626)||this[_0x366b9f(0x293)](_0x26e626);}['_scheduleSaving'](_0x5e8c2d){const _0x7e19e8=_0x497e61;let _0x25b719=this[_0x7e19e8(0x310)]();_0x25b719===0x0?this[_0x7e19e8(0x1bb)](_0x5e8c2d):this[_0x7e19e8(0x252)][_0x7e19e8(0x21d)](_0x5e8c2d,window[_0x7e19e8(0x235)](()=>this[_0x7e19e8(0x1bb)](_0x5e8c2d),_0x25b719));}['_getSaveTimeout'](){const _0x3e219d=_0x497e61;return this[_0x3e219d(0x2a7)][_0x3e219d(0x24e)](_0xc4dbea)??_0xa5e54f;}['_saveCache'](_0x4a1b68){const _0x1f1b2e=_0x497e61;let _0x44537a=this[_0x1f1b2e(0x252)][_0x1f1b2e(0x1b9)](_0x4a1b68);_0x44537a!==void 0x0&&window[_0x1f1b2e(0x1e7)](_0x44537a);let _0x54bc09=this[_0x1f1b2e(0x2cf)][_0x1f1b2e(0x20f)](_0x163373(_0x4a1b68),this[_0x1f1b2e(0x233)][_0x1f1b2e(0x1b9)](_0x4a1b68))[_0x1f1b2e(0x1ac)](()=>this[_0x1f1b2e(0x252)][_0x1f1b2e(0x23e)](_0x4a1b68));return this['_trackActiveSaveTask'](_0x4a1b68,_0x54bc09),_0x54bc09;}[_0x497e61(0x255)](_0x4a9cc1,_0x3fd33e){const _0x43042d=_0x497e61;let _0x284c9d=this[_0x43042d(0x2f4)][_0x43042d(0x1b9)](_0x4a9cc1);_0x284c9d||(_0x284c9d=new Set(),this[_0x43042d(0x2f4)][_0x43042d(0x21d)](_0x4a9cc1,_0x284c9d)),_0x284c9d[_0x43042d(0x17a)](_0x3fd33e);let _0x1a2b19=()=>{const _0x4dff7e=_0x43042d;_0x284c9d[_0x4dff7e(0x23e)](_0x3fd33e),_0x284c9d['size']===0x0&&this[_0x4dff7e(0x2f4)][_0x4dff7e(0x23e)](_0x4a9cc1);};_0x3fd33e['then'](_0x1a2b19,_0x1a2b19);}async[_0x497e61(0x135)](){const _0xbdd53=_0x497e61;let _0x428462=[];this['_saveTaskMap'][_0xbdd53(0x176)]((_0x18b832,_0x57fbf8)=>{const _0x276ce7=_0xbdd53;window[_0x276ce7(0x1e7)](_0x18b832),_0x428462['push'](this['_saveCache'](_0x57fbf8)[_0x276ce7(0x1ac)](()=>{const _0x1b978=_0x276ce7;this[_0x1b978(0x252)][_0x1b978(0x23e)](_0x57fbf8);}));}),await Promise[_0xbdd53(0x1d4)](_0x428462);}};Qn=q([K(0x0,_0x105ef2),K(0x1,_0x1c3442),K(0x2,_0x3d3024(_0x4a3125))],Qn);var $n=class extends _0xe6d4b{constructor(){const _0xc72145=_0x497e61;super(),G(this,_0xc72145(0x219),void 0x0),this['urlChange$']=_0x10d9b8(window,'popstate')[_0xc72145(0x27a)](_0x4eb845(this[_0xc72145(0x1f0)]),_0x4d84b0({'bufferSize':0x1,'refCount':!0x0}),_0x1445c8(void 0x0));}[_0x497e61(0x371)](_0x288bc5,_0x2a3e28,_0x890b17=!0x1){const _0x41f313=_0x497e61;let _0xc861a3=new URL(window['location'][_0x41f313(0x353)]);_0xc861a3[_0x41f313(0x2fb)]['set'](_0x288bc5,_0x2a3e28),_0x890b17?window[_0x41f313(0x1cc)][_0x41f313(0x2b6)]('','',_0xc861a3['toString']()):window[_0x41f313(0x1cc)]['pushState']('','',_0xc861a3[_0x41f313(0x292)]());}[_0x497e61(0x2ee)](_0x3659db,_0x174c20=!0x1){const _0x56fcda=_0x497e61;let _0xe8b849=new URL(window[_0x56fcda(0x234)]['href']);_0xe8b849[_0x56fcda(0x2fb)][_0x56fcda(0x23e)](_0x3659db),_0x174c20?window[_0x56fcda(0x1cc)][_0x56fcda(0x2b6)]('','',_0xe8b849[_0x56fcda(0x292)]()):window[_0x56fcda(0x1cc)]['pushState']('','',_0xe8b849['toString']());}[_0x497e61(0x26d)](_0x5a03cb){const _0x5e1471=_0x497e61;return new URL(window['location'][_0x5e1471(0x353)])[_0x5e1471(0x2fb)][_0x5e1471(0x1b9)](_0x5a03cb)??void 0x0;}};let $=class extends _0x36b188{constructor(_0x1e6e65=fn,_0x2ca476,_0x25183c,_0x1b8221,_0x39b455){const _0x1dbbd8=_0x497e61;super(),this[_0x1dbbd8(0x199)]=_0x1e6e65,this[_0x1dbbd8(0x1f4)]=_0x2ca476,this['_injector']=_0x25183c,this['_configService']=_0x1b8221,this[_0x1dbbd8(0x28b)]=_0x39b455;let {..._0x58513c}=_0x4ee085({},fn,this[_0x1dbbd8(0x199)]);this[_0x1dbbd8(0x2a7)][_0x1dbbd8(0x352)](_0x1dbbd8(0x320),_0x58513c);}['onStarting'](){const _0x12e32e=_0x497e61;this[_0x12e32e(0x132)](),this[_0x12e32e(0x177)](this[_0x12e32e(0x28b)][_0x12e32e(0x31e)](Y)),this[_0x12e32e(0x303)]();}['onRendered'](){this['_registerRenderDependencies']();}[_0x497e61(0x132)](){const _0x2ba3f3=_0x497e61;var _0x145ed4;let _0x29463d=[[mn],[Rn,{'useClass':$n}],[_0x502944,{'useClass':_0x53a61e}],[_0x137b82,{'useClass':Qn}],[J],[Ln],[Z],[Q],[zn],[Zn]];this[_0x2ba3f3(0x199)][_0x2ba3f3(0x243)]!==!0x1&&_0x29463d['push']([Hn],[Bn],[Vn],[_n],[qn],[X]),this['_config']['enableFrontendLog']&&_0x29463d[_0x2ba3f3(0x24b)]([Jn]),_0x3fff4e(this['_injector'],_0xc1bdde(_0x29463d,(_0x145ed4=this[_0x2ba3f3(0x199)])==null?void 0x0:_0x145ed4[_0x2ba3f3(0x355)]));}[_0x497e61(0x1d7)](){const _0x3ca46e=_0x497e61;this[_0x3ca46e(0x199)][_0x3ca46e(0x243)]!==!0x1&&this[_0x3ca46e(0x177)](this['_renderManagerService'][_0x3ca46e(0x1a0)](_0x159b05['UNIVER_DOC'],[Dn])),this['disposeWithMe'](this[_0x3ca46e(0x1f4)]['registerRenderModule'](_0x159b05[_0x3ca46e(0x25a)],[kn]));}['_initDependencies'](){const _0x2c9ff1=_0x497e61;_0x24a3dd(this['_injector'],[[Z],[Q],[J],[Ln],[zn],[Zn]]),this[_0x2c9ff1(0x199)][_0x2c9ff1(0x243)]!==!0x1&&_0x24a3dd(this['_injector'],[[qn],[X]]),this[_0x2c9ff1(0x199)][_0x2c9ff1(0x311)]&&_0x24a3dd(this[_0x2c9ff1(0x2ec)],[[Jn]]);}};G($,_0x497e61(0x345),_0x497e61(0x2fc)),G($,_0x497e61(0x2a8),un),G($,_0x497e61(0x2e8),dn),$=q([_0x2ceeb4(_0x5112e4,_0x6e0440,_0x11f527,_0x138e0b,_0x50773,_0x27ffaf,_0x15e476),K(0x1,_0x32ed6c),K(0x2,_0x3d3024(_0x2351e1)),K(0x3,_0x105ef2),K(0x4,_0x137b25)],$);function _0x1250(_0x28c61f,_0x3f8fbd){_0x28c61f=_0x28c61f-0x10d;const _0x48b8b9=_0x48b8();let _0x125081=_0x48b8b9[_0x28c61f];return _0x125081;}let er=class extends _0x120dd7{constructor(_0x1c1b85,_0x46b99c,_0x1b1698,_0x4ee9bf,_0x14cb63){super(_0x1c1b85,_0x46b99c,_0x1b1698,_0x4ee9bf,_0x14cb63);}async[_0x497e61(0x1f2)](_0x127743){const _0x3fbffd=_0x497e61;let _0xe0e68d=await this[_0x3fbffd(0x2b4)](),_0x32e9d9=this[_0x3fbffd(0x285)](_0x127743,_0xe0e68d);return this['_doCreateSocket'](_0x32e9d9);}[_0x497e61(0x285)](_0x5de701,_0x71c1e8){const _0x31b9d2=_0x497e61;let _0x12b127=typeof window>'u'?new URL(_0x5de701):new URL(_0x5de701,window[_0x31b9d2(0x234)]['origin']);_0x12b127[_0x31b9d2(0x2fb)]['set'](_0x31b9d2(0x302),_0x71c1e8);let _0x217222=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x31b9d2(0x234)][_0x31b9d2(0x10e)]);return _0x217222[_0x31b9d2(0x1b9)](_0x31b9d2(0x1aa))&&_0x12b127[_0x31b9d2(0x2fb)][_0x31b9d2(0x21d)](_0x31b9d2(0x1aa),_0x217222[_0x31b9d2(0x1b9)](_0x31b9d2(0x1aa))),_0x12b127['toString']();}async[_0x497e61(0x2b4)](){const _0xc4a15e=_0x497e61;var _0x109045;let _0xc4e9cc=this[_0xc4a15e(0x2a7)][_0xc4a15e(0x24e)](_0x39b318),_0x1bb834=(_0xc4e9cc==null?void 0x0:_0xc4e9cc[_0xc4a15e(0x2bd)])??_0x2a7571;return((_0x109045=(await this[_0xc4a15e(0x301)][_0xc4a15e(0x1b9)](_0x1bb834,{'headers':{'Content-Type':'application/json'}}))[_0xc4a15e(0x306)])==null?void 0x0:_0x109045[_0xc4a15e(0x1e5)])??'';}};er=q([K(0x0,_0x3d3024(_0x2351e1)),K(0x1,_0x3d3024(_0x32be63)),K(0x2,_0x105ef2),K(0x3,_0x141c38),K(0x4,_0xa5d101)],er);let tr=class extends _0x26d1e6{constructor(_0x12f2d0,_0x1c4446,_0x54cf9d){const _0x5f0e64=_0x497e61;super(),this['_instanceService']=_0x12f2d0,this[_0x5f0e64(0x301)]=_0x1c4446,this[_0x5f0e64(0x2a7)]=_0x54cf9d;}async['runOnServer'](_0x33c21c,_0xe1379f,_0xcee4a7,..._0x5d19af){const _0xcc88d5=_0x497e61;let _0x49bedf=this[_0xcc88d5(0x328)]['getFocusedUnit']();if(!_0x49bedf)throw Error(_0xcc88d5(0x1ed));let _0x46498c=(this[_0xcc88d5(0x2a7)]['getConfig'](_0x4959d3)??_0x94ed93)+'/'+_0x33c21c+_0xcc88d5(0x2cc)+_0xe1379f,_0x53efb5={'scriptId':_0x33c21c,'runId':new URL(window['location'][_0xcc88d5(0x353)])[_0xcc88d5(0x2fb)][_0xcc88d5(0x1b9)](_0xcc88d5(0x1aa))??'','function':_0xe1379f,'unitId':_0x49bedf[_0xcc88d5(0x15c)](),'argsOfFunction':JSON[_0xcc88d5(0x209)](_0x5d19af),'invokeId':_0xcee4a7[_0xcc88d5(0x1db)]??'','executionId':_0xcee4a7[_0xcc88d5(0x34a)]??''};try{let _0x27c919=await this[_0xcc88d5(0x301)][_0xcc88d5(0x2e5)](_0x46498c,{'body':_0x53efb5});return _0x27c919[_0xcc88d5(0x306)][_0xcc88d5(0x264)]&&_0x27c919['body'][_0xcc88d5(0x264)][_0xcc88d5(0x22d)]!==_0x342cd0['OK']?_0xcc88d5(0x31f):_0x27c919[_0xcc88d5(0x306)][_0xcc88d5(0x190)];}catch{return'Failed';}}};function _0x48b8(){const _0x101824=['_onRefRangeChange','getValue','every','result','ranges','onPointerMove$','_initPresenceStatusComponents','_updateMessage','segmentPage','name','getActiveRange','row','_config','_textBubble','_isDisposed','unshift','getRangePointData','_roomMembers$','_transformUndoRedoStack','registerRenderModule','_getAnchorBounding','_univerInstanceService','_handleHover','_init','registerRefRange','HEADER_MENU','collaboration-client-ui.collabStatus.fetchMiss','transformMutation','GLOBAL','runId','unsubscribe','then','collaboration-client-ui.session.connection-failed','_onCursorDelete','...','reconnect','_toggleOffline','div','transformIMECache','subunit','VIEW_MAIN','entries','endColumn','true','get','_revisionService','_saveCache','init','_handleLeaveEvent','Warning','arc','collaboration-client-ui.collabStatus.notCollab','hovered','syncEditingCollabCursor','getDocRanges','restore','socket$','/universer-api/frontend/logs','prototype','fill','has','_docTransformIMECacheService','drawWith','history','_collaborationSessionService','button','closePath','timedOut','split','_syncAdapters','_ensureSubject','all','_draw','_syncPresenceStatusComponents','_registerRenderDependencies','constructor','_cursorShapes','subUnitId','invokeId','univer-appearance-none','values','_unitOnClients','_initEvent','column','_initialized','_blockProgressWatches','some','univer-text-gray-400','ticket','getMember','clearTimeout','SYNCED','_id','_adapter','entityInit$','range','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_disposed','NO_OTHER_CLIENTS_EDITING','dispose$','_scene','createSocket','width','_renderManagerService','roomMembers','from','304700Llhsfe','preventDefault','collaboration-client-ui.snapshotLoading.refresh','_unitStatus','snapshot-loading-timeout','showText','_drawRectRange','unhandledrejection','snapshot-loading-','Loading','1.0.0','_timeoutState$','560TiMxpX','update','spin','_memberID','_highlight','_messageService','stringify','_messageIds','top','_registerPresenceStatusComponent','_lastPointer','endOffset','setItem','onPointerEnter$','_isBlinkVisible','refreshLabel','number','getFocusedUnit','fillText','collaboration-client-ui.collabStatus.offline','reload','_docSyncEditingCollabCursorService','urlChange$','event$','_initStatusListener','activeSheet$','set','red.300','_presenceAdapterRegistry','_cursor','dark:focus:!univer-ring-offset-gray-800','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','complete','timeoutId','_entityInit$','getLocalPresence','RECT','getOwnPropertyDescriptor','shareInterval','toPrimitive','_localCacheService','onCommandExecuted','code','NOT_COLLAB','transformStateCache','collaboration-client-ui.collabStatus.conflict','transformRemoteChangeset','yellow.400','_cachedData','location','setTimeout','_handleHeartbeatEvent','kind','next','univer-flex\x20univer-items-center\x20univer-justify-center','tableId','fillStyle','_colorIndex','_labelHorizontalPosition','delete','function','univer-text-green-500','_collaborationController','dispose','enableDocumentCollaborationUI','focused$','_backgroundColor','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','onPointerLeave$','_initCommandExecutedListener','_docStateChangeManagerService','_snapshotLoadingService','push','getActiveSheet','_adapterRegistry','getConfig','text','_setupBeforeClosingHandler','static','_saveTaskMap','getOffsetConfig','Enter','_trackActiveSaveTask','_blinkIntervalTimer','addClipboardHook','hide','addObjects','UNIVER_SHEET','univer-text-blue-500','color','USERS_LEAVE','_removeRemotePresence','649KMZmql','reason','bottom','left','registerComponent','error','_adapterDisposables','getCollabCursors$','MoveRangeCommandId','createInstance','_conflictNotification','selection','5964bbsVom','InsertColCommandId','getParam','offsetY','newValue','with','highlight','memberId','CONFLICT_PROCESSING','canRenderSelection','m1Prime','unitId','UPDATE_CURSOR','setShapeProps','parseInt','pipe','_getLighterColor','sheetId','map','_dataLoaderService','deepClone','getUnitStatus$','_updateLocalCursor','_initWindowErrorListener','focusedId','unitType','_createSocketURL','0.2)','collaboration-client-ui.session.collaboration-timeout','disableLocalCache','Error','_disposeEntitiesForType','_commandService','timeoutState$','pointer','highlightSecond','min','toRgbString','purple.300','toString','_scheduleSaving','join','adapters$','data','allSettled','InsertRangeMoveRightCommandId','collaboration-client-ui.collabClient.tooltip.reconnect','207trmzUw','_disabled','UNIVER_DOC','tableSource','univer-m-0\x20univer-p-0','_color','find','onMouseMove','onTransformChange$','_onCursorUpdate','_updateCollabCursors','type','unload','_configService','packageName','call','getMemberID','_handleCursorUpdate','string','58jpRubk','CONFLICT','registerBeforeClose','status','options','getCurrentSkeleton','_presenceStatusRegistrations','_getSessionTicket','SOCKET_FAILED','replaceState','_pendingEntities','_collabSessionService','getMergeData','disposeUnit','currentSkeleton$','requireSession','wsSessionTicketUrl','addEventListener','labelHorizontalPosition','_clearBlockProgressWatch','collab-text-range-','_removeClearOtherTimer','_urlService','unitID','_docSkeletonManagerService','remove','DeleteRangeMoveUpCommandId','_docClipboardService','loadUnit','default','i18nKey','/run/','_retryingConflictCacheUnitIDs','getUnit','_localStorageService','getSheetBySheetId','_selfUnitIDs','_name','tooltipKey','collaboration-client-ui.collabStatus.syncing','setRemotePresence','LOADING_BLOCKS','CLOSE_ROOM','_themeService','getSelectionInfo','send','_uiPartsService','univer-transition-all\x20univer-duration-200','_clearOtherTimers','_getMergeRange','m2Prime','indicator','loadedBlocks','collab-rect-range-','getColorFromTheme','_status$','post','_cursors','_uploadLog','version','_eventUnsubscribe','_toggleOnline','_range','_injector','_initUnhandledRejectionListener','removeParam','_retryConflictCacheClear','getStateCache','small','green.600','removeRemotePresence','_activeSaveTaskMap','_session','show','_collabCursorController','_initStatusComponent','unit','_bindAdapter','searchParams','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','triggerDblclick','DeleteRangeMoveLeftCommandId','_updateURLWithCurrentState','params','_httpService','sessionTicket','_initDependencies','_monkeyPatchLogService','imageSourceType','body','collaboration-client-ui.collaboration.single-unit.warning','cursorInfo$','_showConflictCacheClearFailedNotification','pageIndex','defineProperty','getTypeOfUnitAdded$','_docSelectionManagerService','asObservable','collab-text-anchor-','_getSaveTimeout','enableFrontendLog','collaboration-client-ui.conflict.clearFailed','uni.network.url-service','AWAITING','_transformPreviousActiveRange','replace','startColumn','_isVisibleUnit','_logService','presenceKind','columnIndex','_memberService','pulse','registerCommand','Failed','collaboration-client-ui.config','getCurrentTypeOfUnit$','getViewport','FromArray','undoState','clearInterval','_labelPosition','_collabCursorState$','_instanceService','9904dALvuQ','_online','columnGroupId','startsWith','_hovered','_assignedColors','getRenderUnitById','_notificationService','_syncEditingCollabCursorService','collaboration-client-ui.collabStatus.synced','2317HwTvja','_pointerMoveDisposable','eventID','getSkeleton','size','_handleJoinEvent','measureText','totalBlocks','max','enableLocalCache','_drawAnchor','\x20-\x20','_showText','black','_hover','updateOfflineData','decorate','RemoveRowCommandId','pluginName','length','catch','pageType','rgb','executionId','[Unhandled\x20Rejection]:\x20','beginPath','getItem','_replaceConflictNotification','getAllUnitsForType','stack','_context','setConfig','href','univer-text-orange-500','override','_transformService','31156bDOuGg','colno','clearOfflineData','_send','_handleEvent','statusUIPart',',\x200.2)','_getScale','lineTo','_scheduleHeartbeat','doc.mutation.rich-text-editing','_beforeCloseService','_stopBlinking','_startBlinking','getCellIndexByOffset','_shapes','source','_refRangeService','_anchor','transformMutationsWithChangeset','saveImage','_getSheetObject','debug','replaceSelectionInfoWithoutRefresh','_initResize','storage','setParam','cursorInfo','stage','clear','OFFLINE','strokeWidth','setAlpha','getSheetId','finally','save','_anchorDot','height','collaboration-client-ui.conflict.processing','filter','search','_highlightSecond','saveTaskMap','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','key','_cursorInfo$','startRow','isArray','FOOTER','_startDocCollabCursor','_sendLocalPresence','_entities','message','canRenderAnchor','subscribeEvent','selections','includes','evenodd','backupOfflineData','localPresence$','_disposeEntity','right','_refreshCollabCursors','_removeCollabCursors','mutations','_initUserListener','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','slice','getCollabEntity$','symbol','findNodePositionByCharIndex','content','_clearTimeoutState','rgba','getCoordRelativeToViewport','selectedIds','_registerDependencies','collabCursorState$','OTHER_CLIENTS_EDITING','exhaustSavingTask','removeItem','isEditing','collaboration-client-ui.permission.title','_setupSubUnitSync','resize','_collaborationUIEventService','isActive','alert','67780LHxKuQ','FETCH_MISS','72qifDEZ','_updateSubUnitFromURLParams','Unknown\x20user','collaboration-client-ui.permission.content','startOffset','isFinite','object','removeEventListener','getTypeOfUnitDisposed$','2256WepfDM','univer-h-8\x20univer-w-8\x20univer-rounded-lg','endRow','moveTo','_clearRemotePresences','_imageIoService','activate','_hideTimer','clickable','textRanges','assignAColorForMemberID','_startEntity','memberID','value','polite','getCurrentSelections','_drawTextRange','_docTransformStateCacheService','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','getUnitId','setInterval','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','TEXT','addObject','engine','colorClass','collaboration-client-ui.conflict.title','editingUnit','getCurrentUnitOfType','labelPosition','COMPLETE','backgroundColor','ONLINE','bold\x2013px\x20Arial,\x20sans-serif','#FFF','_startSheetCollabCursor','[CollaborationDataLoaderController]','makeDirty','InsertRowCommandId','sessionStatus$','_colorAssignService','saveOfflineData','_blinkTimer','_initEntityListener','getUndoRedoMutationParamsCache','forEach','disposeWithMe','_latestStates','status$','add','redoState','iterator','_docTransformSelectionsService','_localeService','blue.400','_scheduleClearOtherTimer','executeCommand','OTHER_CLIENT_EDITING','_docSkeleton','_render','_showConflictProcessingNotification','_sheetSkeletonManagerService','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_heartbeatTimer','subscribe','prepareTransformSelections','JOIN_ROOM_FAILED','collaboration-client-ui.snapshotLoading.timeout'];_0x48b8=function(){return _0x101824;};return _0x48b8();}tr=q([K(0x0,_0x3a4483),K(0x1,_0x3d3024(_0x32be63)),K(0x2,_0x105ef2)],tr);const nr=0x7530,rr='ACTIVE_UNIT_EVENT_CHANNEL';var ir=class extends _0x26d1e6{constructor(){const _0x18edfd=_0x497e61;super(),G(this,_0x18edfd(0x1e9),_0x5b81d9()),G(this,_0x18edfd(0x2d1),new Set()),G(this,_0x18edfd(0x1de),new Map()),G(this,_0x18edfd(0x188),null),G(this,'_clearOtherTimers',new Map()),G(this,_0x18edfd(0x1fa),new Map()),this[_0x18edfd(0x1a4)]();}[_0x497e61(0x242)](){const _0x3a663f=_0x497e61;super['dispose'](),this[_0x3a663f(0x2dd)][_0x3a663f(0x176)]((_0x589e79,_0x4ae8fa)=>this['_removeClearOtherTimer'](_0x4ae8fa)),this[_0x3a663f(0x188)]&&window[_0x3a663f(0x325)](this['_heartbeatTimer']);}[_0x497e61(0x280)](_0x2629db){const _0x288166=_0x497e61;return this[_0x288166(0x1d3)](_0x2629db)['pipe'](_0x5d30e5());}[_0x497e61(0x164)](_0x15b271){const _0x5474a5=_0x497e61;this[_0x5474a5(0x2d1)][_0x5474a5(0x337)]===0x0&&this['_scheduleHeartbeat'](),this[_0x5474a5(0x2d1)][_0x5474a5(0x17a)](_0x15b271),this['_send']({'type':0x0,'memberID':this[_0x5474a5(0x1e9)],'unitIDs':[_0x15b271],'isForwarded':!0x1});}[_0x497e61(0x2ba)](_0x54a3c1){const _0x152c90=_0x497e61;this['_selfUnitIDs'][_0x152c90(0x23e)](_0x54a3c1),this[_0x152c90(0x2d1)][_0x152c90(0x337)]===0x0&&this['_heartbeatTimer']&&window[_0x152c90(0x325)](this[_0x152c90(0x188)]);}['_init'](){const _0x4e3b88=_0x497e61;this['disposeWithMe'](_0x2b7065(_0x10d9b8(window,_0x4e3b88(0x370))['subscribe'](_0x3f6fd5=>{const _0x428af1=_0x4e3b88;if(_0x3f6fd5[_0x428af1(0x112)]!==rr||!_0x3f6fd5[_0x428af1(0x26f)])return;let _0x5b9e28=JSON['parse'](_0x3f6fd5[_0x428af1(0x26f)]);this['_handleEvent'](_0x5b9e28);}))),window['addEventListener'](_0x4e3b88(0x2a6),()=>this['_send']({'type':0x1,'memberID':this[_0x4e3b88(0x1e9)],'unitIDs':Array['from'](this[_0x4e3b88(0x2d1)])}));}[_0x497e61(0x35b)](_0x126a46){const _0x56dc91=_0x497e61;switch(_0x126a46[_0x56dc91(0x2a5)]){case 0x0:this[_0x56dc91(0x338)](_0x126a46);break;case 0x1:this[_0x56dc91(0x1bd)](_0x126a46);break;case 0x2:this[_0x56dc91(0x236)](_0x126a46);}}[_0x497e61(0x338)](_0x402bf1){const _0x1ccdde=_0x497e61;let {unitIDs:_0x7085ef,memberID:_0x43708d,isForwarded:_0x31b7db}=_0x402bf1;_0x7085ef[_0x1ccdde(0x176)](_0x5b41fa=>{const _0x4bea81=_0x1ccdde;if(!_0x31b7db&&this['_unitOnClients'][_0x4bea81(0x1c9)](_0x5b41fa)&&this['_ensureSubject'](_0x5b41fa)[_0x4bea81(0x238)](_0x385abd[_0x4bea81(0x134)]),!this[_0x4bea81(0x1de)][_0x4bea81(0x1c9)](_0x5b41fa)||!this[_0x4bea81(0x1de)][_0x4bea81(0x1b9)](_0x5b41fa)[_0x4bea81(0x1c9)](_0x43708d)){let _0x352365=this[_0x4bea81(0x1de)]['get'](_0x5b41fa)||new Set();_0x352365['add'](_0x43708d),this[_0x4bea81(0x1de)]['set'](_0x5b41fa,_0x352365),this[_0x4bea81(0x180)](_0x43708d);}}),_0x31b7db||this[_0x1ccdde(0x35a)]({'type':0x0,'memberID':this[_0x1ccdde(0x1e9)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x497e61(0x180)](_0x3dac94){const _0x30fad1=_0x497e61;this[_0x30fad1(0x2c2)](_0x3dac94);let _0x37f3da=window[_0x30fad1(0x235)](()=>{const _0x2647ff=_0x30fad1;this[_0x2647ff(0x1de)][_0x2647ff(0x176)](_0x34d221=>{_0x34d221['delete'](_0x3dac94);});},nr*0x2);this[_0x30fad1(0x2dd)]['set'](_0x3dac94,_0x37f3da);}[_0x497e61(0x2c2)](_0x187662){const _0x1a5f8e=_0x497e61;if(this[_0x1a5f8e(0x2dd)]['has'](_0x187662)){let _0x2b6681=this[_0x1a5f8e(0x2dd)][_0x1a5f8e(0x1b9)](_0x187662);_0x2b6681&&window[_0x1a5f8e(0x1e7)](_0x2b6681),this['_clearOtherTimers'][_0x1a5f8e(0x21d)](_0x187662,null);}}[_0x497e61(0x1bd)](_0xd3244d){const _0x4cd121=_0x497e61;let {memberID:_0xbb0fb6,unitIDs:_0x3b6e95}=_0xd3244d;_0x3b6e95[_0x4cd121(0x176)](_0x59c84d=>{const _0x151217=_0x4cd121;var _0x4babda;let _0xeee3b6=this[_0x151217(0x1de)][_0x151217(0x1b9)](_0x59c84d);_0xeee3b6&&(_0xeee3b6[_0x151217(0x23e)](_0xbb0fb6),(_0x4babda=this['_ensureSubject'](_0x59c84d))==null||_0x4babda[_0x151217(0x238)](_0xeee3b6[_0x151217(0x337)]===0x0?_0x385abd[_0x151217(0x1ef)]:_0x385abd[_0x151217(0x134)]));}),this['_removeClearOtherTimer'](_0xbb0fb6);}[_0x497e61(0x236)](_0x281dbc){const _0x172c7c=_0x497e61;this[_0x172c7c(0x180)](_0x281dbc['memberID']);}[_0x497e61(0x35a)](_0x5c1e69){const _0x38c189=_0x497e61;localStorage[_0x38c189(0x20f)](rr,JSON[_0x38c189(0x209)](_0x5c1e69));}[_0x497e61(0x360)](){const _0x320059=_0x497e61;this[_0x320059(0x188)]=window[_0x320059(0x15d)](()=>{const _0x267c75=_0x320059;this['_send']({'type':0x2,'memberID':this[_0x267c75(0x1e9)]});},nr);}[_0x497e61(0x1d3)](_0x1a5d3b){const _0x480ddc=_0x497e61;return this['_unitStatus'][_0x480ddc(0x1c9)](_0x1a5d3b)||this['_unitStatus'][_0x480ddc(0x21d)](_0x1a5d3b,new _0x52e8e8(_0x385abd[_0x480ddc(0x1ef)])),this['_unitStatus'][_0x480ddc(0x1b9)](_0x1a5d3b);}};export{er as BrowserCollaborationSocketService,J as DesktopCollaborationStatusDisplayController,Rn as IURLService,tr as RemoteUniscriptService,On as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,ir as WebBrowserSingleActiveUnitService};
|
|
1
|
+
const _0x247c5a=_0x2e9b;(function(_0x5ac71f,_0x4cc541){const _0x3a3105=_0x2e9b,_0x1ae49c=_0x5ac71f();while(!![]){try{const _0x5da43f=-parseInt(_0x3a3105(0x1ec))/0x1*(parseInt(_0x3a3105(0x20c))/0x2)+parseInt(_0x3a3105(0x1d3))/0x3*(parseInt(_0x3a3105(0x3d6))/0x4)+parseInt(_0x3a3105(0x2fb))/0x5+-parseInt(_0x3a3105(0x2b6))/0x6+parseInt(_0x3a3105(0x3ba))/0x7*(-parseInt(_0x3a3105(0x33c))/0x8)+parseInt(_0x3a3105(0x332))/0x9+parseInt(_0x3a3105(0x1b9))/0xa*(parseInt(_0x3a3105(0x1d2))/0xb);if(_0x5da43f===_0x4cc541)break;else _0x1ae49c['push'](_0x1ae49c['shift']());}catch(_0x120bb2){_0x1ae49c['push'](_0x1ae49c['shift']());}}}(_0x29c9,0x2065c));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0xc7ece1,CollaborationController as _0x501041,CollaborationSessionService as _0xed7c81,CollaborationSocketService as _0x25c99b,CollaborationStatus as _0x5c157a,CollaborationUIEventId as _0x2b0b3d,CollaborationUIEventService as _0x1327e3,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x41c70c,DEFAULT_WS_SESSION_TICKET_URL as _0x3a4d7e,DataLoaderService as _0x51e8bf,DocCollaborationEntity as _0x4a9a22,ILocalCacheService as _0x1974ac,LOCAL_CACHE_INTERVAL as _0x56be35,LOCAL_CACHE_INTERVAL_KEY as _0x39f139,MemberService as _0x405f4a,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x1db53f,SessionStatus as _0x511a18,UnitStatus as _0x258828,UniverCollaborationClientPlugin as _0x1116a6,getLocalCacheKey as _0x98c216}from'@univerjs-pro/collaboration-client';import{COLORS as _0xf528d4,ColorKit as _0x2ac9a9,CommandType as _0x54dfe6,DOC_RANGE_TYPE as _0x26a332,DependentOn as _0x3e9939,Disposable as _0x50ca1f,DisposableCollection as _0x469794,ICommandService as _0x3fa174,IConfigService as _0xdca818,IImageIoService as _0x173c5c,ILocalStorageService as _0x24200d,ILogService as _0x583b3f,IUniverInstanceService as _0x3fd3c3,Inject as _0x3b8ccc,Injector as _0x5c9bca,LocaleService as _0x5a18da,Plugin as _0x50441f,Rectangle as _0x12eda0,RxDisposable as _0x3318cc,ThemeService as _0xbb7758,Tools as _0x55db4d,UniverInstanceType as _0x98e284,Workbook as _0x16e1e6,createIdentifier as _0x44855e,debounce as _0x5bd974,fromEventSubject as _0x56e033,generateRandomId as _0x4a2001,isInternalEditorID as _0x543c0f,merge as _0x1ee81d,mergeOverrideWithDependencies as _0x47a538,registerDependencies as _0x3b0029,toDisposable as _0x265f18,touchDependencies as _0x327d6b}from'@univerjs/core';import{BuiltInUIPart as _0x4fb6b8,IBeforeCloseService as _0x1b0f9c,IMessageService as _0x4a0381,INotificationService as _0x502777,IUIPartsService as _0x4bd601,IUnitPresenceUIAdapterRegistry as _0x5a5714,connectInjector as _0x107421,useDependency as _0x28e5e2,useObservable as _0x47ef38}from'@univerjs/ui';import{BehaviorSubject as _0x24b100,Subject as _0x5896e4,combineLatest as _0x3e4240,debounceTime as _0x166d03,distinctUntilChanged as _0xc32d41,filter as _0x48c179,fromEvent as _0x1412e7,mapTo as _0x13e54e,merge as _0x424375,of as _0x2a2751,shareReplay as _0x28413a,switchMap as _0x34977b,takeUntil as _0x3fa56b,throttle as _0x14b9f0,timer as _0x22ec2d}from'rxjs';import{distinctUntilChanged as _0x5403c2,filter as _0x240473,map as _0x328767,switchMap as _0x51e718,takeUntil as _0x1a5f96,throttleTime as _0x596cdc}from'rxjs/operators';import{Button as _0x58172d,MessageType as _0x2f977e,Tooltip as _0x4a1448,clsx as _0x4a14d0}from'@univerjs/design';import{LoadingMultiIcon as _0x169f56,OffLineIcon as _0x49cce6,OnLineIcon as _0x57556d,WarningIcon as _0x14cc8f}from'@univerjs/icons';import{createElement as _0x30be06,useCallback as _0x6c1b82,useMemo as _0x540e69}from'react';import{jsx as _0x5b3a46,jsxs as _0x10ab35}from'react/jsx-runtime';import{CollaborationEvent as _0x6181db,ISnapshotServerService as _0x3b6c27,ITransformService as _0x2ebb05,RevisionService as _0x49db3a,SnapshotLoadStage as _0x338f29,SnapshotLoadingService as _0x1a827f,UniverCollaborationPlugin as _0x1724e3,isTransformMutationFailure as _0x2be4e3,isTransformMutationsWithChangesetSuccess as _0x10ddcf}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0x3df221}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x16bdd0,DocSkeletonManagerService as _0x585056,DocStateChangeManagerService as _0x56aa2a,RichTextEditingMutation as _0x759f54,SetTextSelectionsOperation as _0x4e121a,UniverDocsPlugin as _0x2f83a4}from'@univerjs/docs';import{DocIMEInputManagerService as _0x5beedc,IDocClipboardService as _0x3088c8,NodePositionConvertToCursor as _0x36c330,NodePositionConvertToRectRange as _0x1095f0,SetDocZoomRatioOperation as _0x4186fd,TEXT_RANGE_LAYER_INDEX as _0x7badc3,UniverDocsUIPlugin as _0x74c715}from'@univerjs/docs-ui';import{DocumentSkeletonPageType as _0x52e84a,IRenderManagerService as _0x34d5fc,Rect as _0x52bc18,RegularPolygon as _0x31acbf,SHEET_VIEWPORT_KEY as _0x4bb69c,Shape as _0x522a01,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x3f0e13,UniverRenderEnginePlugin as _0x5161e3,Vector2 as _0x3adc07,getColor as _0x2949e8,getDocumentSkeletonColumnPagePathInfo as _0x336b78}from'@univerjs/engine-render';import{HTTPService as _0x47169a,ISocketService as _0x4b4083,UniverNetworkPlugin as _0x3bb077,WebSocketService as _0x3c7443}from'@univerjs/network';import{deserializeRangeWithSheet as _0x264f50,serializeRangeWithSheet as _0x1e4d3b}from'@univerjs/engine-formula';import{EffectRefRangId as _0x4934af,RefRangeService as _0x4485d1,SetSelectionsOperation as _0x21c51f,SetWorksheetActivateCommand as _0x211d66,SheetsSelectionsService as _0x157274,handleDeleteRangeMoveLeft as _0x48fd4e,handleDeleteRangeMoveUp as _0x378cdc,handleIRemoveCol as _0x4f79ac,handleIRemoveRow as _0x3f2774,handleInsertCol as _0xff97dd,handleInsertRangeMoveDown as _0x5cf38c,handleInsertRangeMoveRight as _0x5239d4,handleInsertRow as _0x447949,handleMoveRange as _0x3a5cbb,runRefRangeMutations as _0x25ff6b}from'@univerjs/sheets';import{SheetSkeletonManagerService as _0xfb8c7d,getCoordByCell as _0x3bf5c4,getSheetObject as _0x12b1af}from'@univerjs/sheets-ui';import{ErrorCode as _0x530575}from'@univerjs/protocol';function rn(_0x18854f){const _0x230362=_0x2e9b;switch(_0x18854f){case _0x5c157a[_0x230362(0x315)]:return{'icon':_0x5b3a46(_0x49cce6,{}),'colorClass':_0x230362(0x2ce),'i18nKey':_0x230362(0x23d),'tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':_0x230362(0x2b8)};case _0x5c157a[_0x230362(0x1b0)]:return{'icon':_0x5b3a46(_0x49cce6,{}),'colorClass':_0x230362(0x3c8),'i18nKey':_0x230362(0x39b),'clickable':!0x1,'indicator':_0x230362(0x2b8)};case _0x5c157a['FETCH_MISS']:return{'icon':_0x5b3a46(_0x169f56,{}),'colorClass':_0x230362(0x264),'i18nKey':'collaboration-client-ui.collabStatus.fetchMiss','clickable':!0x1,'indicator':_0x230362(0x366)};case _0x5c157a[_0x230362(0x288)]:return{'icon':_0x5b3a46(_0x57556d,{}),'colorClass':_0x230362(0x2dd),'i18nKey':_0x230362(0x1d6),'clickable':!0x1,'indicator':'static'};case _0x5c157a[_0x230362(0x2a6)]:case _0x5c157a['AWAITING_WITH_PENDING']:return{'icon':_0x5b3a46(_0x169f56,{}),'colorClass':_0x230362(0x264),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x230362(0x366)};case _0x5c157a[_0x230362(0x1f2)]:return{'icon':_0x5b3a46(_0x169f56,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x230362(0x225),'clickable':!0x1,'indicator':_0x230362(0x366)};case _0x5c157a[_0x230362(0x35d)]:return{'icon':_0x5b3a46(_0x57556d,{}),'colorClass':'univer-text-green-500','i18nKey':_0x230362(0x403),'clickable':!0x1,'indicator':_0x230362(0x2b8)};}}function an(_0x4027f4){const _0x4a4509=_0x2e9b;let {status$:_0x5f12c6}=_0x4027f4,_0x1cc1d7=_0x47ef38(_0x5f12c6,_0x5c157a['NOT_COLLAB']),_0x1b2efc=_0x28e5e2(_0x5a18da),_0x482770=_0x28e5e2(_0xed7c81),_0x2fa76d=_0x540e69(()=>rn(_0x1cc1d7),[_0x1cc1d7]),_0x3ada52=_0x1cc1d7!==_0x5c157a['OFFLINE'],_0x2dd196=_0x1b2efc['t'](_0x2fa76d['i18nKey']),_0x377037=_0x2fa76d['tooltipKey']?_0x1b2efc['t'](_0x2fa76d[_0x4a4509(0x1b1)]):_0x2dd196,_0x51651b=_0x6c1b82(()=>{const _0x31cab4=_0x4a4509;_0x3ada52||_0x482770[_0x31cab4(0x22e)]();},[_0x3ada52,_0x482770]),_0x4e0250=_0x6c1b82(_0x144d1a=>{const _0x25b03f=_0x4a4509;!_0x3ada52&&(_0x144d1a[_0x25b03f(0x2f6)]===_0x25b03f(0x21d)||_0x144d1a[_0x25b03f(0x2f6)]==='\x20')&&(_0x144d1a['preventDefault'](),_0x482770[_0x25b03f(0x22e)]());},[_0x3ada52,_0x482770]),_0x14d84c=_0x5b3a46(_0x4a4509(0x1bd),{'className':_0x4a14d0(_0x4a4509(0x1e5),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x2fa76d[_0x4a4509(0x2f9)],{'univer-animate-spin':_0x2fa76d[_0x4a4509(0x221)]===_0x4a4509(0x366),'univer-animate-pulse':_0x2fa76d[_0x4a4509(0x221)]===_0x4a4509(0x40a)}),'aria-hidden':_0x4a4509(0x285),'children':_0x2fa76d[_0x4a4509(0x2ad)]}),_0x18039e=_0x5b3a46(_0x4a4509(0x1bd),{'className':_0x4a14d0('univer-flex\x20univer-items-center\x20univer-justify-center',_0x4a4509(0x2ec),_0x4a4509(0x2d7),_0x4a4509(0x31d),_0x4a4509(0x3b9),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x2fa76d[_0x4a4509(0x270)],'univer-cursor-default':!_0x2fa76d['clickable']}),'children':_0x14d84c});return _0x2fa76d[_0x4a4509(0x270)]?_0x5b3a46(_0x4a1448,{'title':_0x377037,'placement':_0x4a4509(0x381),'children':_0x5b3a46('button',{'type':'button','onClick':_0x51651b,'onKeyDown':_0x4e0250,'className':_0x4a14d0(_0x4a4509(0x38a),_0x4a4509(0x2bd),_0x4a4509(0x1ae),'univer-appearance-none'),'aria-label':_0x2dd196+_0x4a4509(0x2a7)+_0x377037,'role':_0x4a4509(0x1bf),'aria-live':_0x4a4509(0x1bc),'aria-atomic':'true','children':_0x18039e})}):_0x5b3a46(_0x4a1448,{'title':_0x377037,'placement':'bottom','children':_0x5b3a46(_0x4a4509(0x202),{'className':_0x4a14d0('univer-inline-flex\x20univer-items-center\x20univer-justify-center','univer-border-none\x20univer-bg-transparent',_0x4a4509(0x1ae)),'aria-label':_0x2dd196,'role':'status','aria-live':'polite','aria-atomic':_0x4a4509(0x285),'children':_0x18039e})});}function W(_0x1ab00b){'@babel/helpers - typeof';const _0xd006ab=_0x2e9b;return W=typeof Symbol==_0xd006ab(0x3cc)&&typeof Symbol['iterator']==_0xd006ab(0x1e8)?function(_0x32f72c){return typeof _0x32f72c;}:function(_0x74068a){const _0x331131=_0xd006ab;return _0x74068a&&typeof Symbol==_0x331131(0x3cc)&&_0x74068a[_0x331131(0x299)]===Symbol&&_0x74068a!==Symbol[_0x331131(0x260)]?_0x331131(0x1e8):typeof _0x74068a;},W(_0x1ab00b);}function on(_0x146b02,_0x37e985){const _0x208f9f=_0x2e9b;if(W(_0x146b02)!=_0x208f9f(0x300)||!_0x146b02)return _0x146b02;var _0x1c5760=_0x146b02[Symbol['toPrimitive']];if(_0x1c5760!==void 0x0){var _0x2212ac=_0x1c5760[_0x208f9f(0x331)](_0x146b02,_0x37e985||_0x208f9f(0x362));if(W(_0x2212ac)!='object')return _0x2212ac;throw TypeError(_0x208f9f(0x290));}return(_0x37e985==='string'?String:Number)(_0x146b02);}function sn(_0x31c5a7){var _0x5188de=on(_0x31c5a7,'string');return W(_0x5188de)=='symbol'?_0x5188de:_0x5188de+'';}function G(_0x1e31a2,_0x3c0390,_0x1d63a8){const _0x19c6a5=_0x2e9b;return(_0x3c0390=sn(_0x3c0390))in _0x1e31a2?Object[_0x19c6a5(0x1fb)](_0x1e31a2,_0x3c0390,{'value':_0x1d63a8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1e31a2[_0x3c0390]=_0x1d63a8,_0x1e31a2;}function K(_0x5eeaef,_0x54d1e9){return function(_0x5cd856,_0x3995fd){_0x54d1e9(_0x5cd856,_0x3995fd,_0x5eeaef);};}function q(_0x358a09,_0x2422a7,_0x1e0f79,_0x351ff4){const _0x2cbdc7=_0x2e9b;var _0x1c8c2d=arguments['length'],_0x4dc4d6=_0x1c8c2d<0x3?_0x2422a7:_0x351ff4===null?_0x351ff4=Object[_0x2cbdc7(0x334)](_0x2422a7,_0x1e0f79):_0x351ff4,_0x29708e;if(typeof Reflect==_0x2cbdc7(0x300)&&typeof Reflect[_0x2cbdc7(0x1b3)]==_0x2cbdc7(0x3cc))_0x4dc4d6=Reflect[_0x2cbdc7(0x1b3)](_0x358a09,_0x2422a7,_0x1e0f79,_0x351ff4);else{for(var _0x372b42=_0x358a09[_0x2cbdc7(0x23e)]-0x1;_0x372b42>=0x0;_0x372b42--)(_0x29708e=_0x358a09[_0x372b42])&&(_0x4dc4d6=(_0x1c8c2d<0x3?_0x29708e(_0x4dc4d6):_0x1c8c2d>0x3?_0x29708e(_0x2422a7,_0x1e0f79,_0x4dc4d6):_0x29708e(_0x2422a7,_0x1e0f79))||_0x4dc4d6);}return _0x1c8c2d>0x3&&_0x4dc4d6&&Object[_0x2cbdc7(0x1fb)](_0x2422a7,_0x1e0f79,_0x4dc4d6),_0x4dc4d6;}let J=class extends _0x50ca1f{constructor(_0x29ae91,_0x5cfda4,_0x417e42,_0x5d59c5,_0x1ab7ae){const _0x380625=_0x2e9b;super(),this[_0x380625(0x390)]=_0x29ae91,this[_0x380625(0x325)]=_0x5cfda4,this[_0x380625(0x2cd)]=_0x417e42,this[_0x380625(0x3fe)]=_0x5d59c5,this['_presenceAdapterRegistry']=_0x1ab7ae,G(this,_0x380625(0x227),new _0x24b100(_0x5c157a[_0x380625(0x288)])),G(this,'_presenceStatusRegistrations',new Map()),this[_0x380625(0x392)](),this['_initStatusListener'](),this['_initPresenceStatusComponents']();}[_0x247c5a(0x204)](){const _0xcdb968=_0x247c5a;this[_0xcdb968(0x2bb)]['forEach'](_0x15f778=>_0x15f778['dispose']()),this['_presenceStatusRegistrations']['clear'](),this[_0xcdb968(0x227)]['complete'](),super[_0xcdb968(0x204)]();}[_0x247c5a(0x2ee)](){const _0x516566=_0x247c5a;this[_0x516566(0x3a7)](_0x424375(this[_0x516566(0x390)][_0x516566(0x40e)],this[_0x516566(0x390)][_0x516566(0x271)](_0x98e284[_0x516566(0x3b2)]),this['_univerInstanceService'][_0x516566(0x271)](_0x98e284[_0x516566(0x3bd)]))[_0x516566(0x2cc)](_0x328767(()=>cn(this['_univerInstanceService'])),_0x5403c2(),_0x34977b(_0x1bfd08=>_0x1bfd08?this[_0x516566(0x2cd)][_0x516566(0x224)](_0x1bfd08):_0x2a2751(null)),_0x34977b(_0x128ed1=>_0x128ed1?_0x128ed1['status$']:_0x2a2751(_0x5c157a[_0x516566(0x288)])))['subscribe'](_0x30a361=>{const _0x90e5e=_0x516566;this['_status$'][_0x90e5e(0x1c0)](_0x30a361);}));}[_0x247c5a(0x392)](){const _0xb0b112=_0x247c5a;this['disposeWithMe'](this[_0xb0b112(0x3fe)]['registerComponent'](_0x4fb6b8['HEADER_MENU'],()=>_0x107421(ln({'status$':this[_0xb0b112(0x227)]['asObservable']()}),this[_0xb0b112(0x325)])));}[_0x247c5a(0x347)](){const _0x2d9a41=_0x247c5a;let _0x2479c0=this['_presenceAdapterRegistry']['adapters$'][_0x2d9a41(0x2d5)](_0x2e7165=>{const _0x2502e0=_0x2d9a41;this[_0x2502e0(0x1dc)](_0x2e7165);});this[_0x2d9a41(0x3a7)](_0x265f18(()=>_0x2479c0[_0x2d9a41(0x1f6)]()));}[_0x247c5a(0x1dc)](_0x3cbf73){const _0x1eb840=_0x247c5a;let _0x1f6156=new Map(_0x3cbf73['filter'](_0x1a90a7=>_0x1a90a7[_0x1eb840(0x1ff)]!=null)[_0x1eb840(0x1f3)](_0x6de11f=>[_0x6de11f[_0x1eb840(0x2a1)],_0x6de11f]));this[_0x1eb840(0x2bb)]['forEach']((_0x22c0f8,_0x4664fe)=>{const _0x3f4277=_0x1eb840;_0x1f6156[_0x3f4277(0x2ed)](_0x4664fe)||(_0x22c0f8[_0x3f4277(0x204)](),this[_0x3f4277(0x2bb)][_0x3f4277(0x2ea)](_0x4664fe));}),_0x1f6156['forEach']((_0x45d443,_0x4bdb25)=>{const _0x55700e=_0x1eb840;this[_0x55700e(0x2bb)][_0x55700e(0x2ed)](_0x4bdb25)||this[_0x55700e(0x320)](_0x45d443);});}[_0x247c5a(0x320)](_0x1c54a9){const _0x45cbea=_0x247c5a;let _0x1bf75f=_0x1c54a9[_0x45cbea(0x1ff)];if(!_0x1bf75f)return;let _0x1a385a=new _0x469794(),_0x55fc10=new _0x24b100(_0x5c157a[_0x45cbea(0x288)]);_0x1a385a[_0x45cbea(0x23b)](_0x265f18(()=>_0x55fc10['complete']())),_0x1a385a[_0x45cbea(0x23b)](this[_0x45cbea(0x3fe)]['registerComponent'](_0x1bf75f,()=>_0x107421(ln({'status$':_0x55fc10[_0x45cbea(0x3d8)]()}),this[_0x45cbea(0x325)])));let _0xb3c88b=this[_0x45cbea(0x390)]['getCurrentTypeOfUnit$'](_0x1c54a9[_0x45cbea(0x2a1)])[_0x45cbea(0x2cc)](_0x328767(_0x485d6a=>(_0x485d6a==null?void 0x0:_0x485d6a[_0x45cbea(0x308)]())??null),_0x5403c2(),_0x34977b(_0x326ad3=>_0x326ad3?this[_0x45cbea(0x2cd)][_0x45cbea(0x224)](_0x326ad3):_0x2a2751(null)),_0x34977b(_0x156046=>(_0x156046==null?void 0x0:_0x156046['status$'])??_0x2a2751(_0x5c157a['NOT_COLLAB'])))[_0x45cbea(0x2d5)](_0x4fae01=>_0x55fc10['next'](_0x4fae01));_0x1a385a[_0x45cbea(0x23b)](_0x265f18(()=>_0xb3c88b[_0x45cbea(0x1f6)]())),this['_presenceStatusRegistrations']['set'](_0x1c54a9[_0x45cbea(0x2a1)],_0x1a385a);}};J=q([K(0x0,_0x3fd3c3),K(0x1,_0x3b8ccc(_0x5c9bca)),K(0x2,_0x3b8ccc(_0x501041)),K(0x3,_0x4bd601),K(0x4,_0x3b8ccc(_0x5a5714))],J);function cn(_0x38b39d){const _0x35a0dc=_0x247c5a;let _0x3258ce=_0x38b39d['getFocusedUnit'](),_0x2da903=_0x3258ce==null?void 0x0:_0x3258ce[_0x35a0dc(0x308)]();if(_0x2da903&&!_0x543c0f(_0x2da903))return _0x2da903;let _0x4da35b=_0x38b39d['getCurrentUnitOfType'](_0x98e284[_0x35a0dc(0x3b2)]),_0xd56070=_0x4da35b==null?void 0x0:_0x4da35b[_0x35a0dc(0x308)]();if(_0xd56070&&!_0x543c0f(_0xd56070))return _0xd56070;let _0xbd7e69=_0x38b39d['getCurrentUnitOfType'](_0x98e284[_0x35a0dc(0x3bd)]);if(_0xbd7e69)return _0xbd7e69[_0x35a0dc(0x308)]();let _0xf5018e=_0x38b39d[_0x35a0dc(0x250)](_0x98e284[_0x35a0dc(0x3b2)])[_0x35a0dc(0x310)](_0x1859d5=>!_0x543c0f(_0x1859d5[_0x35a0dc(0x308)]()));return _0xf5018e?_0xf5018e['getUnitId']():null;}function ln(_0x1e6c59){let {status$:_0x28526b}=_0x1e6c59;return function(){return _0x5b3a46(an,{'status$':_0x28526b});};}var un=_0x247c5a(0x342),dn=_0x247c5a(0x27b);const Y={'id':_0x247c5a(0x2d6),'type':_0x54dfe6[_0x247c5a(0x28a)],'handler':(_0x246684,_0x3c9a58)=>{const _0x5288fe=_0x247c5a;let _0x4968eb=_0x246684[_0x5288fe(0x211)](_0x5a5714)['get'](_0x3c9a58[_0x5288fe(0x2a1)]);if(!_0x4968eb)return!0x1;switch(_0x3c9a58[_0x5288fe(0x3fa)]['type']){case _0x5288fe(0x21f):return _0x4968eb[_0x5288fe(0x3f8)](_0x3c9a58[_0x5288fe(0x3fa)][_0x5288fe(0x394)]),!0x0;case'remove':return _0x4968eb[_0x5288fe(0x1df)](_0x3c9a58[_0x5288fe(0x3fa)]['unitId'],_0x3c9a58[_0x5288fe(0x3fa)][_0x5288fe(0x28d)]),!0x0;case'clear':return _0x4968eb['clearRemotePresences'](_0x3c9a58[_0x5288fe(0x3fa)][_0x5288fe(0x399)]),!0x0;default:return!0x1;}}},fn={};let X=class extends _0x3318cc{constructor(_0x2108c4,_0x156fed){const _0x1113d4=_0x247c5a;super(),this[_0x1113d4(0x203)]=_0x2108c4,this['_imageIoService']=_0x156fed,this[_0x1113d4(0x302)]();}['_init'](){const _0x81963e=_0x247c5a;let _0x6ba2=this;this['disposeWithMe'](this['_docClipboardService'][_0x81963e(0x335)]({'onBeforePasteImage':async _0x54935d=>{const _0x53621a=_0x81963e;let _0x16716e=await _0x6ba2[_0x53621a(0x385)][_0x53621a(0x2d0)](_0x54935d);return _0x16716e?{'source':_0x16716e[_0x53621a(0x3aa)],'imageSourceType':_0x16716e[_0x53621a(0x2c4)]}:null;}}));}};X=q([K(0x0,_0x3088c8),K(0x1,_0x173c5c)],X);const pn=['purple.300','jiqing.500','green.600',_0x247c5a(0x380),_0x247c5a(0x28c),_0x247c5a(0x30e)];var mn=class extends _0x50ca1f{constructor(..._0x5c5e2f){const _0xce57a0=_0x247c5a;super(..._0x5c5e2f),G(this,_0xce57a0(0x350),new Map()),G(this,'_colorIndex',0x0);}[_0x247c5a(0x1d4)](_0x20c7d6){const _0x708835=_0x247c5a;if(this[_0x708835(0x350)][_0x708835(0x2ed)](_0x20c7d6))return this[_0x708835(0x350)][_0x708835(0x211)](_0x20c7d6);let _0x13acdd=pn[this[_0x708835(0x243)]];return this[_0x708835(0x243)]=(this[_0x708835(0x243)]+0x1)%pn['length'],this[_0x708835(0x350)]['set'](_0x20c7d6,_0x13acdd),_0x13acdd;}};function hn(_0x144092){const _0x4ec872=_0x247c5a;let _0x408dce='';for(let _0x447492 of _0x144092){let {startOffset:_0x2daa4a,endOffset:_0x5e6df5,isActive:_0x27d49f,rangeType:_0x3e4524,segmentId:_0x11c205,segmentPage:_0x1d0a57}=_0x447492;_0x408dce[_0x4ec872(0x23e)]&&(_0x408dce+=','),_0x408dce+=_0x2daa4a+':'+_0x5e6df5+':'+(_0x27d49f?'1':'0')+':'+_0x3e4524+':'+_0x11c205+':'+_0x1d0a57;}return _0x408dce;}function gn(_0x260cca){const _0x47f3d3=_0x247c5a;let _0x3e3381=_0x260cca[_0x47f3d3(0x2cf)](','),_0x32929d=[];for(let _0x27abfd of _0x3e3381){let [_0x2764b5,_0x1e3f32,_0x29a1ad,_0x316e77,_0x592903,_0x2fd3a4]=_0x27abfd[_0x47f3d3(0x2cf)](':');_0x32929d[_0x47f3d3(0x319)]({'startOffset':Number(_0x2764b5),'endOffset':Number(_0x1e3f32),'collapsed':_0x2764b5===_0x1e3f32,'isActive':_0x29a1ad==='1','rangeType':_0x316e77===_0x26a332[_0x47f3d3(0x393)]?_0x26a332[_0x47f3d3(0x393)]:_0x26a332[_0x47f3d3(0x1fd)],'segmentId':typeof _0x592903=='string'?String(_0x592903):'','segmentPage':Number(_0x2fd3a4??-0x1)});}return _0x32929d[_0x47f3d3(0x2b4)](_0x444fcb=>_0x444fcb[_0x47f3d3(0x3f3)])||(_0x32929d[0x0][_0x47f3d3(0x3f3)]=!0x0),_0x32929d;}var _n=class extends _0x3318cc{constructor(..._0x556a6f){const _0x19225c=_0x247c5a;super(..._0x556a6f),G(this,_0x19225c(0x3cf),new _0x24b100(null)),G(this,_0x19225c(0x312),this[_0x19225c(0x3cf)][_0x19225c(0x3d8)]());}[_0x247c5a(0x26b)](_0x571a8f){const _0x529132=_0x247c5a;let {unitID:_0x3d63f4,memberID:_0x278829,textRanges:_0x38f1f6}=_0x571a8f,_0x330786=hn(_0x38f1f6);if(_0x330786==='')return;let _0x115e0d={'unitID':_0x3d63f4,'memberID':_0x278829,'selection':_0x330786};this['_collabCursorState$'][_0x529132(0x1c0)](_0x115e0d);}};let vn=class extends _0x3318cc{get[_0x247c5a(0x1ba)](){const _0x89892f=_0x247c5a;return this['_cursorInfo$'][_0x89892f(0x379)]();}get[_0x247c5a(0x235)](){const _0x20d153=_0x247c5a;return this['_roomMembers$'][_0x20d153(0x379)]();}constructor(_0x147bf0,_0x4753ef,_0xf0157e,_0x2bc259,_0x1abd58,_0x265150,_0x131f36,_0x25bcfe,_0x2bf14a){const _0x52878d=_0x247c5a;super(),this['unitID']=_0x147bf0,this[_0x52878d(0x29d)]=_0x4753ef,this[_0x52878d(0x325)]=_0xf0157e,this[_0x52878d(0x246)]=_0x2bc259,this['_memberService']=_0x1abd58,this[_0x52878d(0x1e7)]=_0x265150,this[_0x52878d(0x30d)]=_0x131f36,this[_0x52878d(0x390)]=_0x25bcfe,this[_0x52878d(0x3fb)]=_0x2bf14a,G(this,'_online',!0x1),G(this,_0x52878d(0x302),!0x1),G(this,'_cursorInfo$',new _0x24b100(new Map())),G(this,_0x52878d(0x22f),this[_0x52878d(0x212)]['asObservable']()),G(this,'_roomMembers$',new _0x24b100([])),G(this,'roomMembers$',this[_0x52878d(0x30c)][_0x52878d(0x2cc)](_0x166d03(0x12c))),G(this,_0x52878d(0x205),_0x5bd974(_0x2e6d26=>{const _0x480f4b=_0x52878d;let _0x1d314f={'eventID':_0x6181db[_0x480f4b(0x3f6)],'data':{'unitID':this[_0x480f4b(0x29c)],'memberID':this[_0x480f4b(0x29d)][_0x480f4b(0x360)](),'selection':hn(_0x2e6d26)}};this[_0x480f4b(0x29d)][_0x480f4b(0x3e1)](_0x1d314f,this[_0x480f4b(0x29c)]);},0x64));}[_0x247c5a(0x204)](){const _0x4d8468=_0x247c5a;super[_0x4d8468(0x204)](),this[_0x4d8468(0x212)]['next'](new Map()),this[_0x4d8468(0x212)][_0x4d8468(0x36f)](),this[_0x4d8468(0x30c)]['next']([]),this['_roomMembers$']['complete']();}[_0x247c5a(0x284)](){const _0x2b6a1e=_0x247c5a;this[_0x2b6a1e(0x302)]||(this['_init']=!0x0,this['_session'][_0x2b6a1e(0x304)][_0x2b6a1e(0x2cc)](_0x3fa56b(this[_0x2b6a1e(0x40c)]))['subscribe'](_0x5473e2=>{const _0x144479=_0x2b6a1e;_0x5473e2===_0x511a18['ONLINE']?this[_0x144479(0x1e4)]():this[_0x144479(0x3a8)]();}),this[_0x2b6a1e(0x29d)][_0x2b6a1e(0x382)][_0x2b6a1e(0x2cc)](_0x3fa56b(this[_0x2b6a1e(0x40c)]))[_0x2b6a1e(0x2d5)](_0x535ea1=>{const _0x44572c=_0x2b6a1e;let _0x4498aa=_0x535ea1[_0x44572c(0x37d)];_0x4498aa===_0x6181db[_0x44572c(0x3f6)]&&this[_0x44572c(0x22d)](_0x535ea1),_0x4498aa===_0x6181db[_0x44572c(0x3db)]&&this[_0x44572c(0x3da)](_0x535ea1);}),this[_0x2b6a1e(0x3a7)](this[_0x2b6a1e(0x3fb)]['onCommandExecuted'](_0x10c9b9=>{const _0x3c2b2c=_0x2b6a1e;let _0x56d536=_0x10c9b9[_0x3c2b2c(0x37c)];_0x56d536!=null&&this[_0x3c2b2c(0x412)]&&_0x10c9b9['id']===_0x4e121a['id']&&_0x56d536[_0x3c2b2c(0x399)]===this[_0x3c2b2c(0x29c)]&&_0x56d536[_0x3c2b2c(0x1ed)]===!0x1&&_0x56d536[_0x3c2b2c(0x3a9)]['length']>0x0&&this['_updateLocalCursor'](_0x56d536[_0x3c2b2c(0x3a9)]);})),this['_syncEditingCollabCursorService'][_0x2b6a1e(0x312)][_0x2b6a1e(0x2cc)](_0x3fa56b(this[_0x2b6a1e(0x40c)]))[_0x2b6a1e(0x2d5)](_0x181ada=>{const _0x1d0c6a=_0x2b6a1e;if((_0x181ada==null?void 0x0:_0x181ada[_0x1d0c6a(0x29c)])!==this['unitID'])return;let _0x595a32={'eventID':_0x6181db[_0x1d0c6a(0x3f6)],'data':_0x181ada};this[_0x1d0c6a(0x22d)](_0x595a32);}),this['disposeWithMe'](this[_0x2b6a1e(0x3fb)][_0x2b6a1e(0x3ce)](_0x452ed0=>{const _0x3048d9=_0x2b6a1e;if(_0x452ed0[_0x3048d9(0x37c)]==null)return;let _0x2ba9c3=_0x452ed0[_0x3048d9(0x37c)];if(_0x452ed0['id']!==_0x759f54['id']||_0x2ba9c3[_0x3048d9(0x399)]!==this[_0x3048d9(0x29c)])return;let _0x33714e={'id':_0x3048d9(0x242),'params':_0x2ba9c3},_0x69f943=this['cursorInfo'];for(let [_0x253c82,_0x15af9c]of _0x69f943){let _0x1e00af={'id':_0x3048d9(0x242),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x15af9c[_0x3048d9(0x3a9)]}},_0x542248=this['_transformService'][_0x3048d9(0x3ed)](_0x33714e,_0x1e00af,!0x1);if(_0x2be4e3(_0x542248))throw _0x542248['error'];_0x69f943[_0x3048d9(0x21f)](_0x253c82,{..._0x15af9c,'ranges':_0x542248[_0x3048d9(0x24b)][_0x3048d9(0x37c)]['textRanges']});}queueMicrotask(()=>{const _0x52fb8c=_0x3048d9;this[_0x52fb8c(0x212)][_0x52fb8c(0x1c0)](_0x69f943);});})));}[_0x247c5a(0x22d)](_0x4c732f){const _0x1c4048=_0x247c5a;var _0x33321d;let {memberID:_0x14ba7d,selection:_0x56161c}=_0x4c732f['data'],_0x191d60=gn(_0x56161c),_0x4e4940=((_0x33321d=this[_0x1c4048(0x3f7)][_0x1c4048(0x265)](this[_0x1c4048(0x29c)],_0x14ba7d))==null?void 0x0:_0x33321d['name'])??_0x1c4048(0x352),_0x463d9f={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x14ba7d),'name':_0x4e4940,'ranges':_0x191d60},_0x45d374=this[_0x1c4048(0x1ba)];_0x45d374[_0x1c4048(0x21f)](_0x14ba7d,_0x463d9f),this[_0x1c4048(0x212)][_0x1c4048(0x1c0)](_0x45d374);}[_0x247c5a(0x3da)](_0x193a03){const _0x41ce7b=_0x247c5a;let {memberID:_0x4fbdf9}=_0x193a03['data'],_0x35c858=this[_0x41ce7b(0x1ba)];_0x35c858[_0x41ce7b(0x2ea)](_0x4fbdf9),this[_0x41ce7b(0x212)][_0x41ce7b(0x1c0)](_0x35c858);}[_0x247c5a(0x1e4)](){const _0x495e08=_0x247c5a;var _0xc18e90;if(this[_0x495e08(0x412)]=!0x0,((_0xc18e90=this['_univerInstanceService'][_0x495e08(0x200)]())==null?void 0x0:_0xc18e90[_0x495e08(0x308)]())!==this[_0x495e08(0x29c)])return;let _0x498d5b=this[_0x495e08(0x325)]['get'](_0x16bdd0)[_0x495e08(0x372)]();Array[_0x495e08(0x3ca)](_0x498d5b)&&_0x498d5b[_0x495e08(0x23e)]>0x0&&this[_0x495e08(0x205)](_0x498d5b);}[_0x247c5a(0x3a8)](){const _0xbea32e=_0x247c5a;this[_0xbea32e(0x412)]=!0x1;}};vn=q([K(0x2,_0x3b8ccc(_0x5c9bca)),K(0x3,_0x3b8ccc(mn)),K(0x4,_0x3b8ccc(_0x405f4a)),K(0x5,_0x3b8ccc(_n)),K(0x6,_0x2ebb05),K(0x7,_0x3fd3c3),K(0x8,_0x3fa174)],vn);const yn=()=>{let _0x424796=[],_0x18626b=!0x1;return _0xd11596=>{const _0x5e5438=_0x2e9b;_0x424796[_0x5e5438(0x319)](_0xd11596),_0x18626b||(_0x18626b=!0x0,setTimeout(()=>{const _0x1256f9=_0x5e5438;_0x424796[_0x1256f9(0x409)](_0x2f37b1=>_0x2f37b1()),_0x424796=[],_0x18626b=!0x1;}));};};let bn=class extends _0x3318cc{get[_0x247c5a(0x1ba)](){const _0x52adc8=_0x247c5a;return this[_0x52adc8(0x212)][_0x52adc8(0x379)]();}get['roomMembers'](){const _0x3f08a4=_0x247c5a;return this[_0x3f08a4(0x30c)][_0x3f08a4(0x379)]();}constructor(_0x444a59,_0x29c83f,_0x337ebb,_0x18968c,_0x3414d2,_0x5b47c7,_0x5bc5e8,_0x39845f){const _0x84fbb=_0x247c5a;super(),this[_0x84fbb(0x29c)]=_0x444a59,this[_0x84fbb(0x29d)]=_0x29c83f,this[_0x84fbb(0x325)]=_0x337ebb,this[_0x84fbb(0x246)]=_0x18968c,this[_0x84fbb(0x3f7)]=_0x3414d2,this[_0x84fbb(0x390)]=_0x5b47c7,this[_0x84fbb(0x3fb)]=_0x5bc5e8,this[_0x84fbb(0x2a8)]=_0x39845f,G(this,_0x84fbb(0x412),!0x1),G(this,_0x84fbb(0x302),!0x1),G(this,'_cursorInfo$',new _0x24b100(new Map())),G(this,_0x84fbb(0x22f),this['_cursorInfo$'][_0x84fbb(0x3d8)]()),G(this,_0x84fbb(0x30c),new _0x24b100([])),G(this,_0x84fbb(0x24f),this[_0x84fbb(0x30c)]['pipe'](_0x166d03(0x12c))),G(this,_0x84fbb(0x205),_0x5bd974((_0x3fb7f6,_0x4e9072)=>{const _0x37f0dd=_0x84fbb;let _0x2d0f2d={'eventID':_0x6181db[_0x37f0dd(0x3f6)],'data':{'unitID':this['unitID'],'memberID':this[_0x37f0dd(0x29d)][_0x37f0dd(0x360)](),'selection':_0x1e4d3b(_0x3fb7f6,_0x4e9072[_0x37f0dd(0x2e5)])}};this[_0x37f0dd(0x29d)][_0x37f0dd(0x3e1)](_0x2d0f2d,this[_0x37f0dd(0x29c)]);},0x64));}[_0x247c5a(0x204)](){const _0x543bb1=_0x247c5a;super[_0x543bb1(0x204)](),this[_0x543bb1(0x212)][_0x543bb1(0x1c0)](new Map()),this[_0x543bb1(0x212)][_0x543bb1(0x36f)](),this['_roomMembers$']['next']([]),this[_0x543bb1(0x30c)][_0x543bb1(0x36f)]();}[_0x247c5a(0x284)](){const _0x5f0b6a=_0x247c5a;this['_init']||(this[_0x5f0b6a(0x302)]=!0x0,this['_session'][_0x5f0b6a(0x304)][_0x5f0b6a(0x2cc)](_0x3fa56b(this['dispose$']))[_0x5f0b6a(0x2d5)](_0xda02b5=>{const _0x328485=_0x5f0b6a;_0xda02b5===_0x511a18[_0x328485(0x410)]?this[_0x328485(0x1e4)]():this[_0x328485(0x3a8)]();}),this[_0x5f0b6a(0x29d)]['event$'][_0x5f0b6a(0x2cc)](_0x3fa56b(this[_0x5f0b6a(0x40c)]))[_0x5f0b6a(0x2d5)](_0x7b87e7=>{const _0x2f1c2c=_0x5f0b6a;let _0x5bc778=_0x7b87e7[_0x2f1c2c(0x37d)];_0x5bc778===_0x6181db[_0x2f1c2c(0x3f6)]&&this['_onCursorUpdate'](_0x7b87e7),_0x5bc778===_0x6181db[_0x2f1c2c(0x3db)]&&this['_onCursorDelete'](_0x7b87e7);}),this[_0x5f0b6a(0x387)](),this[_0x5f0b6a(0x3a7)](this['_commandService'][_0x5f0b6a(0x3ce)](_0x31f857=>{const _0x539351=_0x5f0b6a;if(this['_online']&&_0x31f857['id']===_0x21c51f['id']&&_0x31f857[_0x539351(0x37c)][_0x539351(0x399)]===this[_0x539351(0x29c)]){let _0x4654ba=_0x31f857[_0x539351(0x37c)];this[_0x539351(0x205)](_0x4654ba['subUnitId'],_0x4654ba['selections'][0x0]);}})));}['_onCursorUpdate'](_0x516419){const _0x574b67=_0x247c5a;var _0x5cb2a2;let {memberID:_0x142310,selection:_0x3773fb}=_0x516419[_0x574b67(0x231)],{sheetName:_0x1982d3,range:_0x51fe72}=_0x264f50(_0x3773fb),_0xeaea86={'name':((_0x5cb2a2=this[_0x574b67(0x3f7)][_0x574b67(0x265)](this[_0x574b67(0x29c)],_0x142310))==null?void 0x0:_0x5cb2a2[_0x574b67(0x261)])??_0x574b67(0x352),'range':this[_0x574b67(0x307)](_0x1982d3,_0x51fe72),'sheetID':_0x1982d3,'color':this[_0x574b67(0x246)][_0x574b67(0x1d4)](_0x142310),'selection':_0x3773fb},_0x469f34=this[_0x574b67(0x1ba)];_0x469f34[_0x574b67(0x21f)](_0x142310,_0xeaea86),this['_cursorInfo$']['next'](_0x469f34);}[_0x247c5a(0x3da)](_0x394137){const _0x18c0be=_0x247c5a;let {memberID:_0x4c39e8}=_0x394137[_0x18c0be(0x231)],_0x200933=this[_0x18c0be(0x1ba)];_0x200933[_0x18c0be(0x2ea)](_0x4c39e8),this[_0x18c0be(0x212)][_0x18c0be(0x1c0)](_0x200933);}['_getMergeRange'](_0x1577cf,_0x4f33a9){const _0x6f7127=_0x247c5a;var _0x3a9c2c;let _0x5dde5e=(_0x3a9c2c=this['_univerInstanceService']['getUnit'](this[_0x6f7127(0x29c)],_0x98e284[_0x6f7127(0x3bd)]))==null||(_0x3a9c2c=_0x3a9c2c['getSheetBySheetId'](_0x1577cf))==null?void 0x0:_0x3a9c2c[_0x6f7127(0x33d)]();return(_0x5dde5e==null?void 0x0:_0x5dde5e[_0x6f7127(0x310)](_0x30ad20=>_0x12eda0['contains'](_0x30ad20,_0x4f33a9)))||_0x4f33a9;}['_onRefRangeChange'](){const _0x43a1e4=_0x247c5a;let _0x10605b=new _0x469794(),_0x33cfee=yn(),_0x13c74f=()=>{const _0x42442f=_0x2e9b;_0x10605b[_0x42442f(0x204)]();let _0x5e0681=(_0x135432,_0x61cad8,_0x19fa32,_0x2575b4)=>{const _0x4392f0=_0x42442f;let _0xa37fbd=[];switch(_0x135432['id']){case _0x4934af[_0x4392f0(0x305)]:_0xa37fbd=_0x48fd4e(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x1f7)]:_0xa37fbd=_0x378cdc(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x3e2)]:_0xa37fbd=_0xff97dd(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x35f)]:_0xa37fbd=_0x5cf38c(_0x135432,_0x2575b4);break;case _0x4934af['InsertRangeMoveRightCommandId']:_0xa37fbd=_0x5239d4(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x39e)]:_0xa37fbd=_0x447949(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x29a)]:_0xa37fbd=_0x3a5cbb(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x1ca)]:_0xa37fbd=_0x4f79ac(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x2f7)]:_0xa37fbd=_0x3f2774(_0x135432,_0x2575b4);}let _0x5f00f5=_0x25ff6b(_0xa37fbd,_0x2575b4),_0xfb56b0=this[_0x4392f0(0x1ba)][_0x4392f0(0x211)](_0x61cad8);if(_0xfb56b0&&_0x5f00f5){let _0x101b6e={..._0xfb56b0,'range':_0x5f00f5};this[_0x4392f0(0x1ba)]['set'](_0x61cad8,_0x101b6e),_0x33cfee(()=>{const _0x18f2e3=_0x4392f0;let _0x166182=this[_0x18f2e3(0x2a8)]['registerRefRange'](_0x5f00f5,_0x2838a5=>(_0x166182['dispose'](),_0x5e0681(_0x2838a5,_0x61cad8,_0x19fa32,_0x5f00f5)));_0x10605b['add'](_0x166182);});}return{'redos':[],'undos':[]};};this[_0x42442f(0x1ba)][_0x42442f(0x409)]((_0x1850d4,_0x44d433)=>{const _0x15fa2e=_0x42442f;let {range:_0x389e51,sheetID:_0x546434}=_0x1850d4,_0x287984=this[_0x15fa2e(0x2a8)][_0x15fa2e(0x34f)](_0x389e51,_0x1ed5bb=>(_0x287984[_0x15fa2e(0x204)](),_0x5e0681(_0x1ed5bb,_0x44d433,_0x546434,_0x389e51)));_0x10605b[_0x15fa2e(0x23b)](_0x287984);});};this[_0x43a1e4(0x3a7)](_0x265f18(this[_0x43a1e4(0x212)][_0x43a1e4(0x2d5)](()=>{_0x13c74f();})));}[_0x247c5a(0x1e4)](){const _0x45253f=_0x247c5a;var _0x551ac6,_0x99df90;if(this[_0x45253f(0x412)]=!0x0,((_0x551ac6=this[_0x45253f(0x390)][_0x45253f(0x200)]())==null?void 0x0:_0x551ac6[_0x45253f(0x308)]())!==this['unitID'])return;let _0x22c05e=(_0x99df90=this[_0x45253f(0x325)][_0x45253f(0x211)](_0x157274)[_0x45253f(0x39a)]())==null?void 0x0:_0x99df90[0x0],_0x1ca859=this[_0x45253f(0x390)][_0x45253f(0x367)](_0x98e284[_0x45253f(0x3bd)])[_0x45253f(0x268)]();_0x22c05e&&_0x1ca859&&this['_updateLocalCursor'](_0x1ca859[_0x45253f(0x411)](),_0x22c05e);}['_toggleOffline'](){this['_online']=!0x1;}};function _0x2e9b(_0x39927a,_0x488fe8){_0x39927a=_0x39927a-0x1a9;const _0x29c94f=_0x29c9();let _0x2e9b70=_0x29c94f[_0x39927a];return _0x2e9b70;}bn=q([K(0x2,_0x3b8ccc(_0x5c9bca)),K(0x3,_0x3b8ccc(mn)),K(0x4,_0x3b8ccc(_0x405f4a)),K(0x5,_0x3fd3c3),K(0x6,_0x3fa174),K(0x7,_0x3b8ccc(_0x4485d1))],bn);let Z=class extends _0x3318cc{constructor(_0x2796bd,_0x2275fa,_0x43a956){const _0x5eb3f8=_0x247c5a;super(),this[_0x5eb3f8(0x390)]=_0x2796bd,this[_0x5eb3f8(0x325)]=_0x2275fa,this[_0x5eb3f8(0x337)]=_0x43a956,G(this,_0x5eb3f8(0x1c7),new Map()),G(this,_0x5eb3f8(0x40f),new _0x5896e4()),this[_0x5eb3f8(0x302)]();}[_0x247c5a(0x204)](){const _0x2b24e1=_0x247c5a;super[_0x2b24e1(0x204)](),this['_entityInit$'][_0x2b24e1(0x36f)](),this[_0x2b24e1(0x1c7)]['forEach'](_0xf2b225=>_0xf2b225[_0x2b24e1(0x204)]());}[_0x247c5a(0x33b)](_0xc3ca58){const _0x590ed9=_0x247c5a;let _0x44455f=this[_0x590ed9(0x1c7)][_0x590ed9(0x211)](_0xc3ca58);return _0x44455f?_0x44455f[_0x590ed9(0x22f)]:this[_0x590ed9(0x40f)][_0x590ed9(0x2cc)](_0x48c179(_0x5a33e5=>_0x5a33e5[_0x590ed9(0x29c)]===_0xc3ca58),_0x34977b(_0x3a6455=>_0x3a6455[_0x590ed9(0x22f)]));}[_0x247c5a(0x302)](){const _0x52bc2b=_0x247c5a;this[_0x52bc2b(0x390)]['getTypeOfUnitAdded$'](_0x98e284[_0x52bc2b(0x3bd)])[_0x52bc2b(0x2cc)](_0x3fa56b(this[_0x52bc2b(0x40c)]))['subscribe'](async _0x281020=>{const _0x1721e3=_0x52bc2b;let _0x277c45=_0x281020[_0x1721e3(0x400)][_0x1721e3(0x308)](),_0xb34516=await this['_startSheetCollabCursor'](_0x277c45);this['_entityInit$'][_0x1721e3(0x1c0)](_0xb34516),this[_0x1721e3(0x1c7)][_0x1721e3(0x21f)](_0x277c45,_0xb34516);}),this[_0x52bc2b(0x390)][_0x52bc2b(0x2a0)](_0x98e284[_0x52bc2b(0x3b2)])[_0x52bc2b(0x2cc)](_0x3fa56b(this[_0x52bc2b(0x40c)]))['pipe'](_0x48c179(_0x4f6100=>!_0x4f6100['unit']['getUnitId']()[_0x52bc2b(0x244)]('__')))['subscribe'](async _0x5650db=>{const _0x513109=_0x52bc2b;let {unit:_0x3ce160}=_0x5650db,_0x5d251d=_0x3ce160[_0x513109(0x308)](),_0x2d7c68=await this[_0x513109(0x301)](_0x5d251d);this[_0x513109(0x40f)][_0x513109(0x1c0)](_0x2d7c68),this['_entities'][_0x513109(0x21f)](_0x5d251d,_0x2d7c68);}),_0x424375(this[_0x52bc2b(0x390)][_0x52bc2b(0x251)](_0x98e284[_0x52bc2b(0x3b2)]),this[_0x52bc2b(0x390)][_0x52bc2b(0x251)](_0x98e284[_0x52bc2b(0x3bd)]))['pipe'](_0x3fa56b(this[_0x52bc2b(0x40c)]))['subscribe'](_0x1616dd=>{const _0x56a954=_0x52bc2b;let _0x1ba324=_0x1616dd[_0x56a954(0x308)](),_0x1a9e7e=this['_entities'][_0x56a954(0x211)](_0x1ba324);_0x1a9e7e&&(_0x1a9e7e[_0x56a954(0x204)](),this['_entities'][_0x56a954(0x2ea)](_0x1ba324));});}async[_0x247c5a(0x23a)](_0x548765){const _0x4c4448=_0x247c5a;let _0xf51c21=await this[_0x4c4448(0x337)][_0x4c4448(0x2bf)](_0x548765),_0x1cc78f=this[_0x4c4448(0x325)][_0x4c4448(0x21a)](bn,_0x548765,_0xf51c21);return _0x1cc78f[_0x4c4448(0x284)](),_0x1cc78f;}async['_startDocCollabCursor'](_0x19996a){const _0x3fde21=_0x247c5a;let _0x4db3f7=await this[_0x3fde21(0x337)]['requireSession'](_0x19996a),_0x3d6305=this[_0x3fde21(0x325)][_0x3fde21(0x21a)](vn,_0x19996a,_0x4db3f7);return _0x3d6305[_0x3fde21(0x284)](),_0x3d6305;}};Z=q([K(0x0,_0x3fd3c3),K(0x1,_0x3b8ccc(_0x5c9bca)),K(0x2,_0x3b8ccc(_0xed7c81))],Z);function xn(_0x3f39da,_0x5bfcc8){const _0x535b87=_0x247c5a;_0x3f39da['save'](),_0x3f39da['font']=_0x535b87(0x384);let _0x21d25e=_0x3f39da[_0x535b87(0x2d2)](_0x5bfcc8)[_0x535b87(0x375)];return _0x3f39da['restore'](),Math[_0x535b87(0x34a)](_0x21d25e+0x8,0xc8);}function Sn(_0x1fa308,_0x4b6ab8){const _0x10c4f9=_0x247c5a;let {radius:_0x4444f5,width:_0x33fdbe,height:_0x318539}=_0x4b6ab8;_0x4444f5??=0x0,_0x33fdbe??=0x1e,_0x318539??=0x1e;let _0x60e587=0x0,_0xf07747=0x0,_0x2aa74b=0x0;_0x60e587=_0xf07747=_0x2aa74b=Math['min'](_0x4444f5,_0x33fdbe/0x2,_0x318539/0x2),_0x1fa308['beginPath'](),_0x1fa308[_0x10c4f9(0x33e)](_0x60e587,0x0),_0x1fa308[_0x10c4f9(0x217)](_0x33fdbe-_0xf07747,0x0),_0x1fa308[_0x10c4f9(0x1b4)](_0x33fdbe-_0xf07747,_0xf07747,_0xf07747,Math['PI']*0x3/0x2,0x0,!0x1),_0x1fa308['lineTo'](_0x33fdbe,_0x318539-_0x2aa74b),_0x1fa308[_0x10c4f9(0x1b4)](_0x33fdbe-_0x2aa74b,_0x318539-_0x2aa74b,_0x2aa74b,0x0,Math['PI']/0x2,!0x1),_0x1fa308[_0x10c4f9(0x217)](0x0,_0x318539),_0x1fa308[_0x10c4f9(0x217)](0x0,_0x60e587),_0x1fa308[_0x10c4f9(0x1b4)](_0x60e587,_0x60e587,_0x60e587,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1fa308[_0x10c4f9(0x1f8)](),_0x4b6ab8[_0x10c4f9(0x345)]&&(_0x1fa308[_0x10c4f9(0x286)](),_0x1fa308['fillStyle']=_0x4b6ab8[_0x10c4f9(0x345)],_0x4b6ab8[_0x10c4f9(0x266)]===_0x10c4f9(0x3c6)?_0x1fa308[_0x10c4f9(0x345)](_0x10c4f9(0x3c6)):_0x1fa308[_0x10c4f9(0x345)](),_0x1fa308[_0x10c4f9(0x25b)]());}var Cn=class e extends _0x522a01{constructor(_0x2581ae,_0x397df1){const _0x114f57=_0x247c5a;super(_0x2581ae,_0x397df1),G(this,_0x114f57(0x3b1),void 0x0),G(this,_0x114f57(0x358),void 0x0),this[_0x114f57(0x3b1)]=_0x397df1==null?void 0x0:_0x397df1[_0x114f57(0x3b1)],this[_0x114f57(0x358)]=_0x397df1==null?void 0x0:_0x397df1['text'];}static['drawWith'](_0x2d7e9f,_0x4ea7d1){const _0xf95c35=_0x247c5a;let {text:_0x477af6,color:_0x26ce65}=_0x4ea7d1;_0x2d7e9f[_0xf95c35(0x286)](),_0x2d7e9f['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0x4d8f35=_0x2d7e9f[_0xf95c35(0x2d2)](_0x477af6)['width'];if(Sn(_0x2d7e9f,{'height':0x14,'radius':0x4,'width':xn(_0x2d7e9f,_0x477af6),'fill':_0x26ce65,'evented':!0x1}),_0x2d7e9f['fillStyle']=_0xf95c35(0x1c9),_0x4d8f35>0xc0){let _0x22fc76='',_0x1eed1e=0x0;for(let _0x3f3d21 of _0x477af6){let _0x468e58=_0x2d7e9f['measureText'](_0x3f3d21)[_0xf95c35(0x375)];if(_0x1eed1e+_0x468e58<=0xc0-_0x2d7e9f['measureText'](_0xf95c35(0x1f0))[_0xf95c35(0x375)])_0x22fc76+=_0x3f3d21,_0x1eed1e+=_0x468e58;else{_0x22fc76+=_0xf95c35(0x1f0);break;}}_0x2d7e9f[_0xf95c35(0x1d8)](_0x22fc76,0x4,0xf);}else _0x2d7e9f[_0xf95c35(0x1d8)](_0x477af6,0x4,0xf);_0x2d7e9f[_0xf95c35(0x25b)]();}[_0x247c5a(0x2ef)](_0x6e8bd5){e['drawWith'](_0x6e8bd5,this);}};const wn=_0x247c5a(0x3bf);var Tn=class{constructor(_0x17aa4a,_0x3988b1,_0x3c7ba3,_0x44c47d){const _0x556232=_0x247c5a;this[_0x556232(0x1e1)]=_0x17aa4a,this['_scene']=_0x3988b1,this['_docSkeleton']=_0x3c7ba3,this[_0x556232(0x38f)]=_0x44c47d,G(this,'_shapes',[]),G(this,'_anchor',null),G(this,_0x556232(0x32c),null),G(this,_0x556232(0x2f8),null),G(this,_0x556232(0x35a),null),G(this,'_eventUnsubscribe',null),this[_0x556232(0x1ad)]();}set[_0x247c5a(0x1eb)](_0x4061f3){const _0x129ac5=_0x247c5a;_0x4061f3?(this['_anchorDot']&&this[_0x129ac5(0x2f8)][_0x129ac5(0x3b5)](),this[_0x129ac5(0x32c)]&&this[_0x129ac5(0x32c)][_0x129ac5(0x30a)]()):(this['_anchorDot']&&this[_0x129ac5(0x2f8)][_0x129ac5(0x30a)](),this['_textBubble']&&this[_0x129ac5(0x32c)][_0x129ac5(0x3b5)]());}[_0x247c5a(0x204)](){const _0x2f1e97=_0x247c5a;for(let _0x3a528a of this[_0x2f1e97(0x365)])_0x3a528a[_0x2f1e97(0x204)]();this['_textBubble']&&this['_textBubble'][_0x2f1e97(0x204)](),this[_0x2f1e97(0x2f8)]&&this['_anchorDot'][_0x2f1e97(0x204)](),this[_0x2f1e97(0x2c1)]&&this['_anchor']['dispose'](),this[_0x2f1e97(0x3c5)]&&this[_0x2f1e97(0x3c5)]();}[_0x247c5a(0x1ad)](){const _0x46dcc4=_0x247c5a;let {_docSkeleton:_0x552c41,_document:_0x190e01}=this,{color:_0x592a50,name:_0x19ff33,ranges:_0x1e8cd4}=this[_0x46dcc4(0x1e1)],_0x26174e=_0x190e01['getOffsetConfig'](),{docsLeft:_0x4550e4,docsTop:_0x556317}=_0x26174e,_0x196d4c=new _0x36c330(_0x26174e,_0x552c41);for(let {startOffset:_0x1395b5,endOffset:_0x2dfc33,rangeType:_0xec8895,segmentId:_0x29b22f,segmentPage:_0x1586ed,collapsed:_0x2b9e6f,isActive:_0x1b340c}of _0x1e8cd4){let _0x8c59c8=_0x552c41[_0x46dcc4(0x3eb)](_0x1395b5,!0x0,_0x29b22f,_0x1586ed),_0x445d24=_0x552c41[_0x46dcc4(0x3eb)](_0x2dfc33,!0x0,_0x29b22f,_0x1586ed);_0x445d24??=_0x552c41[_0x46dcc4(0x3eb)](_0x2dfc33-0x1,!0x1,_0x29b22f,_0x1586ed);let _0x45c6bf=En(_0x8c59c8,_0x445d24);if(_0x1b340c&&_0x45c6bf['canRenderAnchor']){let {contentBoxPointGroup:_0xf1b6d8}=_0x196d4c[_0x46dcc4(0x37a)](_0x445d24,_0x445d24);if(_0xf1b6d8[_0x46dcc4(0x23e)]===0x0)continue;this[_0x46dcc4(0x237)](_0x592a50,_0xf1b6d8,_0x4550e4,_0x556317,_0x19ff33),this['_eventUnsubscribe']=this[_0x46dcc4(0x282)]();}if(_0x8c59c8&&_0x445d24){if(_0xec8895===_0x26a332[_0x46dcc4(0x1fd)]){let {pointGroup:_0x5d44f6}=new _0x1095f0(_0x26174e,_0x552c41)[_0x46dcc4(0x37a)](_0x8c59c8,_0x445d24)??{};if(_0x5d44f6==null||_0x5d44f6[_0x46dcc4(0x23e)]===0x0)continue;this[_0x46dcc4(0x292)](_0x592a50,_0x5d44f6,_0x4550e4,_0x556317);}else{if(!_0x2b9e6f&&_0x45c6bf[_0x46dcc4(0x29e)]){let {borderBoxPointGroup:_0x24dcbd}=_0x196d4c[_0x46dcc4(0x37a)](_0x8c59c8,_0x445d24);if(_0x24dcbd['length']===0x0)continue;this[_0x46dcc4(0x31f)](_0x592a50,_0x24dcbd,_0x4550e4,_0x556317);}}}}}['_drawAnchor'](_0x381a06,_0x1dfda5,_0x319729,_0x52439e,_0x57b5aa){const _0x1435f6=_0x247c5a;let {left:_0x54c62e,top:_0x5d967a,height:_0x2bffa3}=this[_0x1435f6(0x3df)](_0x1dfda5),_0x1de0a2=1.5/this['_getScale'](),_0x27a757=new _0x52bc18(wn+_0x4a2001(0x6),{'left':_0x54c62e+_0x319729-_0x1de0a2,'top':_0x5d967a+_0x52439e,'height':_0x2bffa3,'width':1.5,'fill':_0x381a06||_0x2949e8(_0xf528d4[_0x1435f6(0x373)],0x0),'strokeWidth':_0x1de0a2,'stroke':_0x1435f6(0x27a),'evented':!0x0});this[_0x1435f6(0x2c1)]=_0x27a757,this['_scene'][_0x1435f6(0x207)](_0x27a757,_0x7badc3);let _0x376cdb=new _0x52bc18(wn+_0x4a2001(0x6),{'left':_0x54c62e+_0x319729-_0x1de0a2,'top':_0x5d967a+_0x52439e-0x2,'height':0x4,'width':0x4,'fill':_0x381a06||_0x2949e8(_0xf528d4[_0x1435f6(0x373)],0x0),'strokeWidth':0x0,'stroke':_0x381a06||_0x2949e8(_0xf528d4['black'],0x0),'evented':!0x1});this[_0x1435f6(0x2f8)]=_0x376cdb,this[_0x1435f6(0x40b)][_0x1435f6(0x207)](_0x376cdb,_0x7badc3);let _0x2c0f44=new Cn(wn+_0x4a2001(0x6),{'left':_0x54c62e+_0x319729-_0x1de0a2,'top':_0x5d967a+_0x52439e-0x14,'text':_0x57b5aa,'color':_0x381a06});this[_0x1435f6(0x32c)]=_0x2c0f44,this[_0x1435f6(0x40b)][_0x1435f6(0x207)](_0x2c0f44,_0x7badc3),this[_0x1435f6(0x1eb)]=!0x1;}[_0x247c5a(0x282)](){const _0x5604fb=_0x247c5a;let _0x29e84a=this[_0x5604fb(0x2c1)]['onPointerEnter$'][_0x5604fb(0x2af)](()=>{const _0x5e0140=_0x5604fb;this[_0x5e0140(0x1eb)]=!0x0;}),_0x30bd89=this[_0x5604fb(0x2c1)][_0x5604fb(0x2ae)]['subscribeEvent'](()=>{const _0x2b4f28=_0x5604fb;this[_0x2b4f28(0x35a)]&&clearTimeout(this[_0x2b4f28(0x35a)]),this[_0x2b4f28(0x35a)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x224578=_0x5604fb;_0x29e84a[_0x224578(0x1f6)](),_0x30bd89[_0x224578(0x1f6)]();};}[_0x247c5a(0x31f)](_0x3c07e1,_0x4667e5,_0x89f4c3,_0x16f3ea){const _0x2f63fa=_0x247c5a;let _0x51ce6b=0.2,_0xb12a9a=new _0x2ac9a9(_0x3c07e1)[_0x2f63fa(0x1ea)](_0x51ce6b)['toRgbString'](),_0x2c49da=new _0x31acbf(_0x2f63fa(0x34e)+_0x4a2001(0x6),{'pointsGroup':_0x4667e5,'fill':_0xb12a9a||_0x2949e8(_0xf528d4['black'],_0x51ce6b),'left':_0x89f4c3,'top':_0x16f3ea,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2f63fa(0x365)][_0x2f63fa(0x319)](_0x2c49da),this['_scene'][_0x2f63fa(0x207)](_0x2c49da,_0x7badc3);}[_0x247c5a(0x292)](_0xc5f8a4,_0x3c5c6e,_0x32fd28,_0x5297b8){const _0x3507a4=_0x247c5a;let _0x4af16f=0.2,_0x260784=new _0x2ac9a9(_0xc5f8a4)[_0x3507a4(0x1ea)](_0x4af16f)['toRgbString'](),_0x168966=new _0x31acbf(_0x3507a4(0x1f5)+_0x4a2001(0x6),{'pointsGroup':_0x3c5c6e,'fill':_0x260784||_0x2949e8(_0xf528d4['black'],_0x4af16f),'left':_0x32fd28,'top':_0x5297b8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3507a4(0x365)][_0x3507a4(0x319)](_0x168966),this[_0x3507a4(0x40b)]['addObject'](_0x168966,_0x7badc3);}[_0x247c5a(0x3df)](_0x47c90d){let _0x5f4326=_0x47c90d[0x0],_0x3229b9=_0x5f4326[0x0],_0x315f32=_0x5f4326[0x2],{x:_0x3d93cf,y:_0xc25aca}=_0x3229b9,{x:_0x1ac5cf,y:_0xe12db0}=_0x315f32;return{'left':_0x3d93cf,'top':_0xc25aca,'width':_0x1ac5cf-_0x3d93cf,'height':_0xe12db0-_0xc25aca};}['_getScale'](){const _0x21aa61=_0x247c5a;let {scaleX:_0x9a3dc4,scaleY:_0x1b8199}=this[_0x21aa61(0x40b)][_0x21aa61(0x3c7)]();return Math['max'](_0x9a3dc4,_0x1b8199);}};function En(_0x276376,_0x4250fb){const _0x12c994=_0x247c5a;if(!_0x4250fb)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x276376||_0x276376[_0x12c994(0x24e)]!==_0x4250fb[_0x12c994(0x24e)]||(_0x276376['pageType']===_0x52e84a[_0x12c994(0x405)]||_0x276376[_0x12c994(0x24e)]===_0x52e84a[_0x12c994(0x29b)])&&_0x276376[_0x12c994(0x336)]!==_0x4250fb[_0x12c994(0x336)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x2f269b=_0x336b78(_0x276376),_0x41023c=_0x336b78(_0x4250fb);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x2f269b==null||_0x41023c==null?_0x2f269b==null&&_0x41023c==null:_0x2f269b[_0x12c994(0x3dc)]===_0x41023c['pageIndex']&&_0x2f269b['columnGroupId']===_0x41023c[_0x12c994(0x311)]&&_0x2f269b[_0x12c994(0x1dd)]===_0x41023c[_0x12c994(0x1dd)]};}let Dn=class extends _0x3318cc{constructor(_0xa074cc,_0x266782,_0x5989eb,_0x50587c,_0x1b0069){const _0x2b8441=_0x247c5a;super(),this[_0x2b8441(0x31e)]=_0xa074cc,this['_docSkeletonManagerService']=_0x266782,this[_0x2b8441(0x2b1)]=_0x5989eb,this[_0x2b8441(0x3fb)]=_0x50587c,this['_themeService']=_0x1b0069,G(this,_0x2b8441(0x24d),[]),G(this,_0x2b8441(0x313),[]),this[_0x2b8441(0x302)]();}[_0x247c5a(0x302)](){const _0x4165e0=_0x247c5a;let _0x51d622=this[_0x4165e0(0x31e)][_0x4165e0(0x399)],_0x15a508=this[_0x4165e0(0x1c1)];this[_0x4165e0(0x3a7)](_0x3e4240([this[_0x4165e0(0x2b1)][_0x4165e0(0x33b)](_0x51d622),this[_0x4165e0(0x306)][_0x4165e0(0x3b3)]])[_0x4165e0(0x2cc)](_0x328767(([_0x1413ea,_0x1fd8d7])=>({'skeleton':_0x15a508[_0x4165e0(0x329)](),'cursors':[..._0x1413ea[_0x4165e0(0x35e)]()][_0x4165e0(0x27e)](_0x3f111d=>({..._0x3f111d,'color':this[_0x4165e0(0x306)]['getColorFromTheme'](_0x3f111d[_0x4165e0(0x3b1)])}))})))[_0x4165e0(0x2d5)](_0x1463ed=>{const _0x3bf38f=_0x4165e0;if(this[_0x3bf38f(0x363)](),_0x1463ed){let {skeleton:_0x4083a4,cursors:_0xbf333b}=_0x1463ed;this[_0x3bf38f(0x1ab)](_0x4083a4,_0xbf333b);}})),this['_initResize'](),this[_0x4165e0(0x1e0)]();}[_0x247c5a(0x1ab)](_0x3038ab,_0x514fb6){const _0x29a192=_0x247c5a;let {scene:_0x1b0391,mainComponent:_0x4a4e11}=this[_0x29a192(0x31e)],_0x391af6=_0x514fb6['map'](_0xc65482=>new Tn(_0xc65482,_0x1b0391,_0x3038ab,_0x4a4e11));this[_0x29a192(0x24d)]=_0x391af6,this[_0x29a192(0x313)]=_0x514fb6;}[_0x247c5a(0x3e0)](){const _0x2ce561=_0x247c5a;this[_0x2ce561(0x363)]();let {scene:_0x4239b5,mainComponent:_0x26ce47}=this[_0x2ce561(0x31e)],_0x3601db=this['_docSkeletonManagerService']['getSkeleton'](),_0x423d52=this['_cursors'][_0x2ce561(0x1f3)](_0x308761=>new Tn(_0x308761,_0x4239b5,_0x3601db,_0x26ce47));this[_0x2ce561(0x24d)]=_0x423d52;}['_removeCollabCursors'](){const _0x453616=_0x247c5a;this['_cursorShapes'][_0x453616(0x409)](_0x2f40ae=>_0x2f40ae[_0x453616(0x204)]()),this[_0x453616(0x24d)]=[];}[_0x247c5a(0x1e0)](){const _0x5c5ca9=_0x247c5a;let _0x460335=[_0x4186fd['id']];this['disposeWithMe'](this['_commandService'][_0x5c5ca9(0x3ce)](_0xe2e71c=>{const _0x3c2dbc=_0x5c5ca9;_0x460335[_0x3c2dbc(0x2f4)](_0xe2e71c['id'])&&_0xe2e71c[_0x3c2dbc(0x37c)][_0x3c2dbc(0x399)]===this[_0x3c2dbc(0x31e)]['unitId']&&this['_refreshCollabCursors']();}));}[_0x247c5a(0x3ad)](){const _0x447a35=_0x247c5a;this[_0x447a35(0x3a7)](_0x56e033(this[_0x447a35(0x31e)]['engine'][_0x447a35(0x259)])[_0x447a35(0x2cc)](_0x240473(_0x45ad23=>_0x45ad23[_0x447a35(0x2d8)]===_0x3f0e13[_0x447a35(0x31a)]),_0x596cdc(0x10))[_0x447a35(0x2d5)](()=>{const _0x34edb6=_0x447a35;this[_0x34edb6(0x3e0)]();}));}};Dn=q([K(0x1,_0x3b8ccc(_0x585056)),K(0x2,_0x3b8ccc(Z)),K(0x3,_0x3fa174),K(0x4,_0x3b8ccc(_0xbb7758))],Dn);var On=class extends _0x522a01{constructor(_0x5de9d7,_0x483e87){const _0x462381=_0x247c5a;super(_0x5de9d7,_0x483e87),G(this,_0x462381(0x339),void 0x0),G(this,_0x462381(0x34d),!0x1),G(this,_0x462381(0x2f3),void 0x0),G(this,_0x462381(0x1de),''),G(this,_0x462381(0x26f),_0x462381(0x2ac)),G(this,_0x462381(0x2a3),void 0x0),G(this,'_showText',void 0x0),G(this,'_highlight',void 0x0),G(this,'_highlightSecond',0x4),G(this,'_blinkTimer',void 0x0),G(this,_0x462381(0x1b8),void 0x0),G(this,_0x462381(0x3ac),!0x0),G(this,'_offsetY',0x0),G(this,_0x462381(0x254),_0x462381(0x2cb)),_0x483e87&&(this[_0x462381(0x3e8)](_0x483e87),_0x483e87[_0x462381(0x32e)]&&(_0x483e87['highlightSecond']??this[_0x462381(0x2a9)])&&this['_startBlinking'](_0x483e87[_0x462381(0x263)]??this[_0x462381(0x2a9)])),this[_0x462381(0x258)][_0x462381(0x2af)](()=>this[_0x462381(0x3e8)]({'hovered':!0x0})),this[_0x462381(0x2ae)][_0x462381(0x2af)](()=>this[_0x462381(0x3e8)]({'hovered':!0x1}));}[_0x247c5a(0x348)](_0x2d51dd){this['_offsetY']=_0x2d51dd;}[_0x247c5a(0x3e8)](_0x127ee2){const _0x2f958a=_0x247c5a;this[_0x2f958a(0x339)]=_0x127ee2[_0x2f958a(0x3b1)]??this[_0x2f958a(0x339)],this['_hovered']=_0x127ee2[_0x2f958a(0x1d9)]??this[_0x2f958a(0x34d)],this[_0x2f958a(0x2f3)]=_0x127ee2[_0x2f958a(0x2e5)]??this['_range'],this['_name']=_0x127ee2['name']??this[_0x2f958a(0x1de)],this[_0x2f958a(0x26f)]=_0x127ee2[_0x2f958a(0x25c)]??this['_labelPosition'],this['_backgroundColor']=_0x127ee2[_0x2f958a(0x3ef)]??this['_backgroundColor'],this[_0x2f958a(0x3f0)]=_0x127ee2['showText']??this[_0x2f958a(0x3f0)],this[_0x2f958a(0x254)]=_0x127ee2[_0x2f958a(0x3c0)]??this[_0x2f958a(0x254)],_0x127ee2[_0x2f958a(0x263)]!==void 0x0&&(this[_0x2f958a(0x2a9)]=_0x127ee2[_0x2f958a(0x263)]),_0x127ee2[_0x2f958a(0x32e)]!==void 0x0&&(this['_highlight']=_0x127ee2['highlight']),_0x127ee2[_0x2f958a(0x228)]!==void 0x0&&(this[_0x2f958a(0x3dd)]=_0x127ee2[_0x2f958a(0x228)]),this[_0x2f958a(0x402)]({'width':_0x127ee2[_0x2f958a(0x375)],'height':_0x127ee2['height']});}[_0x247c5a(0x2e9)](_0x2e4866){const _0x188870=_0x247c5a;let {row:_0x23ef0e,column:_0x5bd6e0}=_0x2e4866;if(_0x23ef0e>=this[_0x188870(0x2f3)][_0x188870(0x1da)]&&_0x23ef0e<=this[_0x188870(0x2f3)][_0x188870(0x3ee)]&&_0x5bd6e0>=this[_0x188870(0x2f3)][_0x188870(0x321)]&&_0x5bd6e0<=this[_0x188870(0x2f3)][_0x188870(0x1be)]){this[_0x188870(0x3e8)]({'hovered':!0x0});return;}this[_0x188870(0x3e8)]({'hovered':!0x1});}['_startBlinking'](_0x5e5611){const _0x181fdb=_0x247c5a;this['_stopBlinking'](),this['_isBlinkVisible']=!0x0,this[_0x181fdb(0x1b8)]=window['setInterval'](()=>{const _0x490a5a=_0x181fdb;this['_isBlinkVisible']=!this[_0x490a5a(0x3ac)],this[_0x490a5a(0x220)](!0x0);},0x1f4),this[_0x181fdb(0x353)]=window[_0x181fdb(0x1c8)](()=>{const _0x36fb99=_0x181fdb;this[_0x36fb99(0x3d1)](),this[_0x36fb99(0x3ac)]=!0x0,this[_0x36fb99(0x220)](!0x0);},_0x5e5611*0x3e8);}[_0x247c5a(0x3d1)](){const _0x464823=_0x247c5a;this[_0x464823(0x1b8)]&&=(window[_0x464823(0x2d4)](this[_0x464823(0x1b8)]),void 0x0),this[_0x464823(0x353)]&&=(window[_0x464823(0x249)](this[_0x464823(0x353)]),void 0x0);}['triggerDblclick'](_0x328afd){return!0x1;}['dispose'](){const _0xf2e5d6=_0x247c5a;this[_0xf2e5d6(0x3d1)](),super[_0xf2e5d6(0x204)]();}[_0x247c5a(0x2ef)](_0x2de793){const _0x1c4220=_0x247c5a;let _0x4c5383=this[_0x1c4220(0x339)],_0xb96973=this[_0x1c4220(0x2a3)];if(this[_0x1c4220(0x2ca)]&&!this[_0x1c4220(0x3ac)]&&(_0x4c5383=this[_0x1c4220(0x341)](this[_0x1c4220(0x339)]),_0xb96973=this['_backgroundColor']?this['_getLighterColor'](this[_0x1c4220(0x2a3)]):void 0x0),_0x52bc18[_0x1c4220(0x374)](_0x2de793,{'width':this[_0x1c4220(0x375)],'height':this[_0x1c4220(0x247)],'strokeWidth':this[_0x1c4220(0x413)]||1.5,'stroke':_0x4c5383,'evented':!0x1,'fill':_0xb96973}),this[_0x1c4220(0x34d)]||this[_0x1c4220(0x3f0)]){_0x2de793[_0x1c4220(0x286)]();let _0x213025=this[_0x1c4220(0x254)]===_0x1c4220(0x240)?-xn(_0x2de793,this['_name']):this[_0x1c4220(0x375)];_0x2de793[_0x1c4220(0x3e3)](0x1,0x0,0x0,0x1,_0x213025,(this[_0x1c4220(0x26f)]===_0x1c4220(0x381)?0x0:-0x14)+(this[_0x1c4220(0x3dd)]??0x0)),Cn[_0x1c4220(0x374)](_0x2de793,{'text':this[_0x1c4220(0x1de)],'color':_0x4c5383}),_0x2de793[_0x1c4220(0x25b)]();}}['_getLighterColor'](_0x5ab84e){const _0x4a361d=_0x247c5a;return _0x5ab84e[_0x4a361d(0x244)]('#')?'rgba('+Number[_0x4a361d(0x2c7)](_0x5ab84e[_0x4a361d(0x3af)](0x1,0x3),0x10)+',\x20'+Number[_0x4a361d(0x2c7)](_0x5ab84e[_0x4a361d(0x3af)](0x3,0x5),0x10)+',\x20'+Number[_0x4a361d(0x2c7)](_0x5ab84e[_0x4a361d(0x3af)](0x5,0x7),0x10)+_0x4a361d(0x1e9):_0x5ab84e[_0x4a361d(0x244)]('rgba')?_0x5ab84e[_0x4a361d(0x322)](/[\d.]+\)$/g,_0x4a361d(0x248)):_0x5ab84e[_0x4a361d(0x244)]('rgb')?_0x5ab84e[_0x4a361d(0x322)]('rgb',_0x4a361d(0x406))[_0x4a361d(0x322)](')',_0x4a361d(0x1e9)):_0x5ab84e;}};let kn=class extends _0x3318cc{constructor(_0x37efa2,_0x2954c6,_0x174170,_0x54ce55){const _0xc92138=_0x247c5a;super(),this[_0xc92138(0x31e)]=_0x37efa2,this['_sheetSkeletonManagerService']=_0x2954c6,this[_0xc92138(0x2b1)]=_0x174170,this[_0xc92138(0x306)]=_0x54ce55,G(this,_0xc92138(0x313),new Set()),G(this,'_lastPointer',null),G(this,_0xc92138(0x291),null),this[_0xc92138(0x302)]();}[_0x247c5a(0x302)](){const _0x2a4188=_0x247c5a;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x2a4188(0x2cc)](_0x1a5f96(this[_0x2a4188(0x40c)]),_0x51e718(_0x12868b=>{const _0x1996a5=_0x2a4188;if(_0x12868b){let _0x4bf54e=_0x12868b[_0x1996a5(0x229)];return _0x3e4240(this[_0x1996a5(0x2b1)][_0x1996a5(0x33b)](this['_context'][_0x1996a5(0x399)]),this[_0x1996a5(0x306)]['currentTheme$'])[_0x1996a5(0x2cc)](_0x328767(([_0x14c7af,_0x2ddb14])=>{let _0x183e4e=new Map();return _0x14c7af['forEach']((_0x490126,_0x45c88d)=>{const _0x10017b=_0x2e9b;if(_0x490126['sheetID']===_0x4bf54e){let _0x944228={..._0x490126};_0x944228[_0x10017b(0x3b1)]=this['_themeService'][_0x10017b(0x26a)](_0x490126['color']),_0x183e4e[_0x10017b(0x21f)](_0x45c88d,_0x944228);}}),{'skeleton':_0x12868b,'cursors':_0x183e4e};}));}return _0x2a2751({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x5bbacf,cursors:_0x3d6275})=>{const _0x5cca3d=_0x2a4188;this[_0x5cca3d(0x363)](),_0x5bbacf&&this['_updateCollabCursors'](_0x5bbacf,_0x3d6275);}),this[_0x2a4188(0x3a7)](this['_sheetSkeletonManagerService'][_0x2a4188(0x236)][_0x2a4188(0x2cc)](_0x1a5f96(this['dispose$']))['subscribe'](_0x30538c=>{const _0x586a7a=_0x2a4188;var _0x25d60e;if(_0x30538c==null)return;(_0x25d60e=this[_0x586a7a(0x291)])==null||_0x25d60e[_0x586a7a(0x1f6)](),this[_0x586a7a(0x291)]=null;let {skeleton:_0x50a801}=_0x30538c,{scene:_0x1c3bf9}=this['_context'];this[_0x586a7a(0x291)]=_0x1c3bf9[_0x586a7a(0x226)]['subscribeEvent'](_0x5bd974(_0x3bb3f2=>{const _0x5a1879=_0x586a7a;var _0x494e55,_0x2ad3c7;let {offsetX:_0x3c25d4,offsetY:_0x4d2afb}=_0x3bb3f2,{x:_0x3e3024,y:_0xa03481}=_0x1c3bf9[_0x5a1879(0x283)](_0x3adc07[_0x5a1879(0x3b8)]([_0x3c25d4,_0x4d2afb])),{scaleX:_0x64c65f,scaleY:_0x13c4e0}=_0x1c3bf9[_0x5a1879(0x3c7)](),_0x2216fc=_0x1c3bf9['getViewport'](_0x4bb69c[_0x5a1879(0x22a)]),_0x26f004=_0x1c3bf9[_0x5a1879(0x21e)](_0x3adc07['FromArray']([_0x3e3024,_0xa03481]),_0x2216fc),_0x4939a5=_0x50a801[_0x5a1879(0x26e)](_0x3c25d4,_0x4d2afb,_0x64c65f,_0x13c4e0,_0x26f004);(((_0x494e55=this['_lastPointer'])==null?void 0x0:_0x494e55[_0x5a1879(0x3e4)])!==_0x4939a5[_0x5a1879(0x3e4)]||((_0x2ad3c7=this['_lastPointer'])==null?void 0x0:_0x2ad3c7[_0x5a1879(0x25d)])!==_0x4939a5[_0x5a1879(0x25d)])&&this[_0x5a1879(0x313)][_0x5a1879(0x409)](_0x5dd453=>{const _0x51e5eb=_0x5a1879;_0x5dd453[_0x51e5eb(0x2e9)](_0x4939a5);});},0x64));})),this[_0x2a4188(0x3a7)](_0x265f18(()=>{const _0x138713=_0x2a4188;var _0x2e8bfa;(_0x2e8bfa=this[_0x138713(0x291)])==null||_0x2e8bfa[_0x138713(0x1f6)](),this[_0x138713(0x291)]=null;}));}[_0x247c5a(0x1ab)](_0x2d25cb,_0x4bb140){const _0x1db468=_0x247c5a;let _0x154aa4=this['_sheetSkeletonManagerService'][_0x1db468(0x355)]();if(!_0x154aa4)return;let _0x5d732c=this[_0x1db468(0x1fa)]();if(!_0x5d732c)return;this[_0x1db468(0x313)][_0x1db468(0x409)](_0xbaf683=>{_0xbaf683['makeDirty']();});let {scene:_0x1d0ed8}=_0x5d732c,_0x5b8077=An(Array[_0x1db468(0x287)](_0x4bb140[_0x1db468(0x35e)]()))[_0x1db468(0x1f3)](_0x4b1f92=>{const _0x438684=_0x1db468;let {color:_0x3936fd,range:_0x53c1b9,name:_0x1ec014,selection:_0x507243,sheetID:_0x1ea6a7}=_0x4b1f92,{startColumn:_0x4302ed,startRow:_0x3e3d60,endColumn:_0x4691f4,endRow:_0x2547e2}=_0x53c1b9,_0x1eb38d=_0x3bf5c4(_0x3e3d60,_0x4302ed,_0x1d0ed8,_0x154aa4),_0x1033dc=_0x3bf5c4(_0x2547e2,_0x4691f4,_0x1d0ed8,_0x154aa4),{columnHeaderHeightAndMarginTop:_0x4b2138}=_0x154aa4,{startX:_0x4c5f5e,startY:_0x3ed746}=_0x1eb38d,{endX:_0x54ea30,endY:_0x29d855}=_0x1033dc,_0x3c03b0=_0x54ea30-_0x4c5f5e,_0xe5a76f=_0x29d855-_0x3ed746;return new On(_0x1ec014,{'labelPosition':_0x3ed746-_0x4b2138>=0x14?_0x438684(0x2ac):_0x438684(0x381),'sheetID':_0x1ea6a7,'range':_0x53c1b9,'color':_0x3936fd,'name':_0x1ec014,'selection':_0x507243,'left':_0x4c5f5e,'top':_0x3ed746,'width':_0x3c03b0,'height':_0xe5a76f,'evented':!0x1,'zIndex':0x1389});});_0x1d0ed8[_0x1db468(0x33a)](_0x5b8077,0x1),this[_0x1db468(0x313)]=new Set(_0x5b8077);}[_0x247c5a(0x363)](){const _0x41d511=_0x247c5a;var _0xbc6d9f;(_0xbc6d9f=this[_0x41d511(0x313)])==null||_0xbc6d9f['forEach'](_0x4a1ea3=>_0x4a1ea3[_0x41d511(0x204)]());}['_getSheetObject'](){const _0x13f64e=_0x247c5a;return _0x12b1af(this[_0x13f64e(0x31e)][_0x13f64e(0x400)],this['_context']);}};kn=q([K(0x1,_0x3b8ccc(_0xfb8c7d)),K(0x2,_0x3b8ccc(Z)),K(0x3,_0x3b8ccc(_0xbb7758))],kn);function An(_0x148bcb){const _0x1cc211=_0x247c5a;let _0x486b01=new Map();return _0x148bcb[_0x1cc211(0x409)](_0x4fda54=>{const _0x536c64=_0x1cc211;if(_0x486b01[_0x536c64(0x2ed)](_0x4fda54[_0x536c64(0x275)])){let _0x18f781=_0x486b01['get'](_0x4fda54['selection']);_0x18f781[_0x536c64(0x261)]+=',\x20'+_0x4fda54['name'];}else _0x486b01[_0x536c64(0x21f)](_0x4fda54['selection'],_0x4fda54);}),Array[_0x1cc211(0x287)](_0x486b01[_0x1cc211(0x35e)]());}function jn(_0x57b943){const _0x4b9ad=_0x247c5a;return typeof _0x57b943==_0x4b9ad(0x300)&&!!_0x57b943;}function Mn(_0x4257f4){const _0x429398=_0x247c5a;return _0x4257f4['eventID']===_0x6181db['UPDATE_CURSOR']&&'data'in _0x4257f4&&jn(_0x4257f4[_0x429398(0x231)])&&typeof _0x4257f4[_0x429398(0x231)][_0x429398(0x2f2)]==_0x429398(0x3f9)&&typeof _0x4257f4['data']['selection']==_0x429398(0x3f9);}function Nn(_0x1d53f7){const _0x4658d2=_0x247c5a;return _0x1d53f7['eventID']===_0x6181db[_0x4658d2(0x3db)]&&_0x4658d2(0x231)in _0x1d53f7&&jn(_0x1d53f7[_0x4658d2(0x231)])&&typeof _0x1d53f7[_0x4658d2(0x231)][_0x4658d2(0x2f2)]=='string';}function Pn(_0x4fd3b2,_0x33f8d9){const _0x5adbc5=_0x247c5a;let _0x529335;try{_0x529335=JSON[_0x5adbc5(0x3f1)](_0x4fd3b2);}catch{return null;}if(!jn(_0x529335)||typeof _0x529335[_0x5adbc5(0x20b)]!=_0x5adbc5(0x3f9)||typeof _0x529335['unitId']!='string'||typeof _0x529335[_0x5adbc5(0x326)]!=_0x5adbc5(0x3f9))return null;let _0xf420e9=typeof _0x529335[_0x5adbc5(0x2a1)]==_0x5adbc5(0x3fd)?_0x529335[_0x5adbc5(0x2a1)]:_0x33f8d9;if(_0xf420e9==null)return null;let _0x1de210=jn(_0x529335[_0x5adbc5(0x377)])&&typeof _0x529335[_0x5adbc5(0x377)]['x']=='number'&&Number['isFinite'](_0x529335[_0x5adbc5(0x377)]['x'])&&typeof _0x529335['pointer']['y']==_0x5adbc5(0x3fd)&&Number[_0x5adbc5(0x36e)](_0x529335[_0x5adbc5(0x377)]['y'])?{'x':_0x529335[_0x5adbc5(0x377)]['x'],'y':_0x529335[_0x5adbc5(0x377)]['y']}:null;return{'kind':_0x529335[_0x5adbc5(0x20b)],'unitType':_0xf420e9,'unitId':_0x529335[_0x5adbc5(0x399)],'subUnitId':_0x529335[_0x5adbc5(0x326)],'selectedIds':Array['isArray'](_0x529335[_0x5adbc5(0x238)])?_0x529335[_0x5adbc5(0x238)][_0x5adbc5(0x351)](_0x4a2c00=>typeof _0x4a2c00==_0x5adbc5(0x3f9)):[],'focusedId':typeof _0x529335[_0x5adbc5(0x2a5)]=='string'?_0x529335[_0x5adbc5(0x2a5)]:null,'pointer':_0x1de210};}function Fn(_0x589ea1,_0x45d0b2,_0x1856f5){const _0x3cc074=_0x247c5a;return{'kind':_0x45d0b2,'unitType':_0x589ea1,'unitId':_0x1856f5[_0x3cc074(0x399)],'subUnitId':_0x1856f5[_0x3cc074(0x326)],'selectedIds':Array['from'](_0x1856f5[_0x3cc074(0x238)]),'focusedId':_0x1856f5[_0x3cc074(0x2a5)],'pointer':_0x1856f5[_0x3cc074(0x377)]?{..._0x1856f5[_0x3cc074(0x377)]}:null};}let In=class extends _0x3318cc{constructor(_0x198409,_0x1797e2,_0x7f942c,_0xb0bf13,_0x24e30f,_0x2c5d25){const _0x538a66=_0x247c5a;super(),this['unitId']=_0x198409,this[_0x538a66(0x29d)]=_0x1797e2,this[_0x538a66(0x1cc)]=_0x7f942c,this[_0x538a66(0x246)]=_0xb0bf13,this[_0x538a66(0x3f7)]=_0x24e30f,this[_0x538a66(0x3fb)]=_0x2c5d25,G(this,_0x538a66(0x412),!0x1),G(this,_0x538a66(0x2b7),!0x1);}get[_0x247c5a(0x2a1)](){const _0x32f2fa=_0x247c5a;return this['_adapter'][_0x32f2fa(0x2a1)];}[_0x247c5a(0x204)](){const _0xfd9dee=_0x247c5a;this[_0xfd9dee(0x24c)](),super[_0xfd9dee(0x204)]();}[_0x247c5a(0x284)](){const _0x2272eb=_0x247c5a;this[_0x2272eb(0x2b7)]||(this['_initialized']=!0x0,this[_0x2272eb(0x29d)][_0x2272eb(0x304)][_0x2272eb(0x2cc)](_0x3fa56b(this[_0x2272eb(0x40c)]))[_0x2272eb(0x2d5)](_0xffd9a3=>{const _0x113d6c=_0x2272eb;if(_0xffd9a3===_0x511a18[_0x113d6c(0x410)]){this['_online']=!0x0;let _0x109a62=this[_0x113d6c(0x1cc)][_0x113d6c(0x343)](this[_0x113d6c(0x399)]);_0x109a62&&this[_0x113d6c(0x3c1)](_0x109a62);return;}this[_0x113d6c(0x412)]=!0x1,this['_clearRemotePresences']();}),this[_0x2272eb(0x29d)]['event$'][_0x2272eb(0x2cc)](_0x3fa56b(this[_0x2272eb(0x40c)]))[_0x2272eb(0x2d5)](_0x354815=>{const _0xee9632=_0x2272eb;Mn(_0x354815)?this[_0xee9632(0x2a4)](_0x354815):Nn(_0x354815)&&this[_0xee9632(0x38b)](_0x354815[_0xee9632(0x231)][_0xee9632(0x2f2)]);}),this[_0x2272eb(0x1cc)][_0x2272eb(0x369)][_0x2272eb(0x2cc)](_0x48c179(_0x5998a0=>this['_online']&&_0x5998a0[_0x2272eb(0x399)]===this['unitId']),_0x14b9f0(_0x2cf5ea=>_0x22ec2d(_0x2cf5ea[_0x2272eb(0x346)]),{'leading':!0x0,'trailing':!0x0}),_0x3fa56b(this[_0x2272eb(0x40c)]))['subscribe'](_0x1d73e1=>this[_0x2272eb(0x3c1)](_0x1d73e1)));}[_0x247c5a(0x3c1)](_0x1301b1){const _0x449225=_0x247c5a;let _0x514a2f=this[_0x449225(0x29d)][_0x449225(0x360)]();if(!_0x514a2f||!this[_0x449225(0x412)])return;let _0x16519a={'eventID':_0x6181db['UPDATE_CURSOR'],'data':{'unitID':this[_0x449225(0x399)],'memberID':_0x514a2f,'selection':JSON[_0x449225(0x257)](Fn(this[_0x449225(0x2a1)],this[_0x449225(0x1cc)]['presenceKind'],_0x1301b1))}};this[_0x449225(0x29d)][_0x449225(0x3e1)](_0x16519a,this[_0x449225(0x399)])[_0x449225(0x1ac)](()=>void 0x0);}[_0x247c5a(0x2a4)](_0x1b837e){const _0xe0fea8=_0x247c5a;let {memberID:_0x51ca45,selection:_0x4c3c06}=_0x1b837e[_0xe0fea8(0x231)];if(_0x51ca45===this['_session']['getMemberID']())return;let _0x3072ce=Pn(_0x4c3c06,this[_0xe0fea8(0x2a1)]);if(!_0x3072ce||_0x3072ce['kind']!==this['_adapter'][_0xe0fea8(0x296)]||_0x3072ce[_0xe0fea8(0x2a1)]!==this['unitType']||_0x3072ce['unitId']!==this[_0xe0fea8(0x399)])return;let _0x2fd95b=this['_memberService'][_0xe0fea8(0x265)](this[_0xe0fea8(0x399)],_0x51ca45),_0x19ca14={'unitId':_0x3072ce[_0xe0fea8(0x399)],'subUnitId':_0x3072ce[_0xe0fea8(0x326)],'selectedIds':_0x3072ce[_0xe0fea8(0x238)],'focusedId':_0x3072ce[_0xe0fea8(0x2a5)],'pointer':_0x3072ce[_0xe0fea8(0x377)],'memberId':_0x51ca45,'color':this[_0xe0fea8(0x246)][_0xe0fea8(0x1d4)](_0x51ca45),'name':(_0x2fd95b==null?void 0x0:_0x2fd95b[_0xe0fea8(0x261)])??_0x51ca45};this[_0xe0fea8(0x3fb)]['executeCommand'](Y['id'],{'unitType':this[_0xe0fea8(0x2a1)],'update':{'type':'set','state':_0x19ca14}})[_0xe0fea8(0x1ac)](()=>void 0x0);}[_0x247c5a(0x38b)](_0x2f0cee){const _0x4f4ad2=_0x247c5a;this[_0x4f4ad2(0x3fb)]['executeCommand'](Y['id'],{'unitType':this[_0x4f4ad2(0x2a1)],'update':{'type':_0x4f4ad2(0x3bc),'unitId':this[_0x4f4ad2(0x399)],'memberId':_0x2f0cee}})[_0x4f4ad2(0x1ac)](()=>void 0x0);}['_clearRemotePresences'](){const _0x22daba=_0x247c5a;this[_0x22daba(0x3fb)][_0x22daba(0x3f4)](Y['id'],{'unitType':this[_0x22daba(0x2a1)],'update':{'type':_0x22daba(0x3cd),'unitId':this['unitId']}})['catch'](()=>void 0x0);}};In=q([K(0x3,_0x3b8ccc(mn)),K(0x4,_0x3b8ccc(_0x405f4a)),K(0x5,_0x3b8ccc(_0x3fa174))],In);let Q=class extends _0x3318cc{constructor(_0x30dc3d,_0x14245f,_0x1ea05e,_0x463684){const _0xfbd8cc=_0x247c5a;super(),this[_0xfbd8cc(0x390)]=_0x30dc3d,this[_0xfbd8cc(0x325)]=_0x14245f,this[_0xfbd8cc(0x337)]=_0x1ea05e,this['_adapterRegistry']=_0x463684,G(this,_0xfbd8cc(0x277),!0x1),G(this,_0xfbd8cc(0x1c7),new Map()),G(this,_0xfbd8cc(0x338),new Map()),G(this,'_adapterDisposables',new Map()),this[_0xfbd8cc(0x302)]();}[_0x247c5a(0x204)](){const _0x450f4e=_0x247c5a;this[_0x450f4e(0x277)]=!0x0,this['_adapterDisposables']['forEach'](_0x2735d9=>_0x2735d9['dispose']()),this[_0x450f4e(0x27d)][_0x450f4e(0x3cd)](),this[_0x450f4e(0x1c7)]['forEach'](_0x3120b0=>_0x3120b0[_0x450f4e(0x204)]()),this[_0x450f4e(0x1c7)]['clear'](),this[_0x450f4e(0x338)]['clear'](),super[_0x450f4e(0x204)]();}[_0x247c5a(0x302)](){const _0x474253=_0x247c5a;this['_adapterRegistry'][_0x474253(0x1d1)][_0x474253(0x2cc)](_0x3fa56b(this[_0x474253(0x40c)]))[_0x474253(0x2d5)](_0x444450=>this[_0x474253(0x3c9)](_0x444450));}[_0x247c5a(0x3c9)](_0x5e7b95){const _0x5ef8af=_0x247c5a;let _0x1e5a93=new Set(_0x5e7b95[_0x5ef8af(0x1f3)](_0x5ec4b3=>_0x5ec4b3[_0x5ef8af(0x2a1)]));this['_adapterDisposables'][_0x5ef8af(0x409)]((_0x49145a,_0x46adf9)=>{const _0x26476b=_0x5ef8af;_0x1e5a93[_0x26476b(0x2ed)](_0x46adf9)||(_0x49145a[_0x26476b(0x204)](),this[_0x26476b(0x27d)][_0x26476b(0x2ea)](_0x46adf9),this[_0x26476b(0x35c)](_0x46adf9));}),_0x5e7b95[_0x5ef8af(0x409)](_0x444545=>{const _0x51e2bf=_0x5ef8af;this[_0x51e2bf(0x27d)][_0x51e2bf(0x2ed)](_0x444545[_0x51e2bf(0x2a1)])||this[_0x51e2bf(0x28e)](_0x444545);});}[_0x247c5a(0x28e)](_0x4416db){const _0x4ee753=_0x247c5a;let _0x3ec667=new _0x469794();this[_0x4ee753(0x27d)][_0x4ee753(0x21f)](_0x4416db[_0x4ee753(0x2a1)],_0x3ec667),_0x3ec667[_0x4ee753(0x23b)](_0x4416db['activate']()),this['_univerInstanceService'][_0x4ee753(0x250)](_0x4416db[_0x4ee753(0x2a1)])[_0x4ee753(0x409)](_0x2177da=>this[_0x4ee753(0x398)](_0x2177da[_0x4ee753(0x308)](),_0x4416db)[_0x4ee753(0x1ac)](()=>void 0x0));let _0x2d5ffe=this['_univerInstanceService'][_0x4ee753(0x2a0)](_0x4416db['unitType'])[_0x4ee753(0x2d5)](({unit:_0x415d2a})=>this[_0x4ee753(0x398)](_0x415d2a[_0x4ee753(0x308)](),_0x4416db)['catch'](()=>void 0x0));_0x3ec667[_0x4ee753(0x23b)](_0x265f18(()=>_0x2d5ffe[_0x4ee753(0x1f6)]()));let _0x2021e9=this[_0x4ee753(0x390)][_0x4ee753(0x251)](_0x4416db[_0x4ee753(0x2a1)])['subscribe'](_0x44449a=>this[_0x4ee753(0x371)](_0x44449a[_0x4ee753(0x308)]()));_0x3ec667['add'](_0x265f18(()=>_0x2021e9[_0x4ee753(0x1f6)]()));}async[_0x247c5a(0x398)](_0x33c861,_0x4b519c){const _0x213d19=_0x247c5a;if(this[_0x213d19(0x1c7)][_0x213d19(0x2ed)](_0x33c861)||this[_0x213d19(0x338)]['has'](_0x33c861))return;let _0x3c9771={};this[_0x213d19(0x338)][_0x213d19(0x21f)](_0x33c861,_0x3c9771);let _0x2879a6=await this[_0x213d19(0x337)]['requireSession'](_0x33c861)[_0x213d19(0x1ac)](_0x364109=>{const _0x12dc3d=_0x213d19;throw this['_pendingEntities']['get'](_0x33c861)===_0x3c9771&&this[_0x12dc3d(0x338)][_0x12dc3d(0x2ea)](_0x33c861),_0x364109;});if(this[_0x213d19(0x277)]||this[_0x213d19(0x338)][_0x213d19(0x211)](_0x33c861)!==_0x3c9771||this[_0x213d19(0x26d)][_0x213d19(0x211)](_0x4b519c['unitType'])!==_0x4b519c){this['_pendingEntities'][_0x213d19(0x211)](_0x33c861)===_0x3c9771&&this[_0x213d19(0x338)]['delete'](_0x33c861);return;}let _0x25a02d=this[_0x213d19(0x325)][_0x213d19(0x21a)](In,_0x33c861,_0x2879a6,_0x4b519c);_0x25a02d['init'](),this[_0x213d19(0x338)][_0x213d19(0x2ea)](_0x33c861),this[_0x213d19(0x1c7)][_0x213d19(0x21f)](_0x33c861,_0x25a02d);}[_0x247c5a(0x371)](_0x591128){const _0x1f41f8=_0x247c5a;this[_0x1f41f8(0x338)][_0x1f41f8(0x2ea)](_0x591128);let _0x2a3914=this[_0x1f41f8(0x1c7)][_0x1f41f8(0x211)](_0x591128);_0x2a3914&&(_0x2a3914['dispose'](),this[_0x1f41f8(0x1c7)][_0x1f41f8(0x2ea)](_0x591128));}[_0x247c5a(0x35c)](_0x32e61){const _0x280af7=_0x247c5a;this['_univerInstanceService']['getAllUnitsForType'](_0x32e61)[_0x280af7(0x409)](_0x1ef457=>this[_0x280af7(0x338)]['delete'](_0x1ef457[_0x280af7(0x308)]())),Array[_0x280af7(0x287)](this[_0x280af7(0x1c7)]['entries']())[_0x280af7(0x409)](([_0x11cffc,_0x43aad4])=>{const _0x25992d=_0x280af7;_0x43aad4[_0x25992d(0x2a1)]===_0x32e61&&this[_0x25992d(0x371)](_0x11cffc);});}};Q=q([K(0x0,_0x3fd3c3),K(0x1,_0x3b8ccc(_0x5c9bca)),K(0x2,_0x3b8ccc(_0xed7c81)),K(0x3,_0x3b8ccc(_0x5a5714))],Q);let Ln=class extends _0x50ca1f{constructor(_0x9fef84,_0xee2880,_0x151c6e,_0x19db78,_0x43c8cb,_0x5f410a){const _0x9a5b58=_0x247c5a;super(),this[_0x9a5b58(0x239)]=_0x9fef84,this[_0x9a5b58(0x2e7)]=_0xee2880,this['_collaborationUIEventService']=_0x151c6e,this[_0x9a5b58(0x1b7)]=_0x19db78,this['_notificationService']=_0x43c8cb,this['_localeService']=_0x5f410a,G(this,_0x9a5b58(0x25e),null),G(this,_0x9a5b58(0x1b5),new Set()),this[_0x9a5b58(0x1ce)](),this[_0x9a5b58(0x2de)]();}[_0x247c5a(0x204)](){const _0x41f367=_0x247c5a;var _0x3b165e;(_0x3b165e=this['_conflictNotification'])==null||_0x3b165e[_0x41f367(0x204)](),this[_0x41f367(0x25e)]=null,super[_0x41f367(0x204)]();}[_0x247c5a(0x1ce)](){const _0x1f4e2f=_0x247c5a;this[_0x1f4e2f(0x3a7)](this['_beforeCloseService'][_0x1f4e2f(0x1f1)](()=>{const _0x2e66ad=_0x1f4e2f;if(this['_localCacheService']['saveTaskMap']['size'])return this[_0x2e66ad(0x3e6)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x247c5a(0x2de)](){const _0x3524eb=_0x247c5a;this[_0x3524eb(0x3a7)](this[_0x3524eb(0x3f5)]['event$'][_0x3524eb(0x2d5)](_0x5b2189=>{const _0x47e23c=_0x3524eb;_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x2c6)]&&this['_messageService']['show']({'type':_0x2f977e[_0x47e23c(0x1ef)],'content':this[_0x47e23c(0x3e6)]['t']('collaboration-client-ui.collaboration.single-unit.warning')}),_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x223)]&&this[_0x47e23c(0x1b7)][_0x47e23c(0x30a)]({'type':_0x2f977e['Warning'],'content':this[_0x47e23c(0x3e6)]['t'](_0x47e23c(0x3cb))}),_0x5b2189['id']===_0x2b0b3d['PERMISSION_DENIED']&&this[_0x47e23c(0x276)]({'title':this['_localeService']['t'](_0x47e23c(0x316)),'content':this['_localeService']['t']('collaboration-client-ui.permission.content'),'type':_0x47e23c(0x3f2),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this['_localeService']['t'](_0x47e23c(0x1c4)),'onClick':_0xd51d7b=>{const _0x39e9df=_0x47e23c;_0xd51d7b[_0x39e9df(0x2dc)](),window[_0x39e9df(0x274)][_0x39e9df(0x26c)]();}}}),_0x5b2189['id']===_0x2b0b3d['CONFLICT_PROCESSING']&&this[_0x47e23c(0x1f9)](),_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x309)]&&_0x5b2189[_0x47e23c(0x29c)]&&this['_showConflictCacheClearFailedNotification'](_0x5b2189[_0x47e23c(0x29c)]),_0x5b2189['id']===_0x2b0b3d['CONFLICT']&&this[_0x47e23c(0x276)]({'title':this[_0x47e23c(0x3e6)]['t'](_0x47e23c(0x3de)),'content':this[_0x47e23c(0x3e6)]['t']('collaboration-client-ui.conflict.content'),'type':'error','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this[_0x47e23c(0x3e6)]['t']('collaboration-client-ui.snapshotLoading.refresh'),'onClick':_0x99abef=>{const _0x4bcad8=_0x47e23c;_0x99abef[_0x4bcad8(0x2dc)](),window['location'][_0x4bcad8(0x26c)]();}}}),_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x24a)]&&this[_0x47e23c(0x1b7)][_0x47e23c(0x30a)]({'type':_0x2f977e['Warning'],'content':this['_localeService']['t'](_0x5b2189['data']||'')}),_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x2fd)]&&this[_0x47e23c(0x1b7)]['show']({'type':_0x2f977e[_0x47e23c(0x1ef)],'content':this[_0x47e23c(0x3e6)]['t'](_0x47e23c(0x3b0))}),_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x333)]&&this[_0x47e23c(0x1b7)][_0x47e23c(0x30a)]({'type':_0x2f977e[_0x47e23c(0x3d2)],'content':this['_localeService']['t'](_0x47e23c(0x3ea))}),_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x404)]&&this[_0x47e23c(0x1b7)]['show']({'type':_0x2f977e[_0x47e23c(0x3d2)],'content':this[_0x47e23c(0x3e6)]['t'](_0x47e23c(0x206))});}));}['_showConflictProcessingNotification'](){const _0x473cf5=_0x247c5a;this['_replaceConflictNotification']({'title':this[_0x473cf5(0x3e6)]['t'](_0x473cf5(0x3de)),'content':this[_0x473cf5(0x3e6)]['t'](_0x473cf5(0x2b3)),'type':_0x473cf5(0x38d),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}['_showConflictCacheClearFailedNotification'](_0x52411d){const _0x548085=_0x247c5a;this[_0x548085(0x276)]({'title':this[_0x548085(0x3e6)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x548085(0x3e6)]['t'](_0x548085(0x295)),'type':'error','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this['_localeService']['t'](_0x548085(0x2eb)),'onClick':_0x337102=>{const _0x207b5e=_0x548085;_0x337102[_0x207b5e(0x2dc)](),this['_retryConflictCacheClear'](_0x52411d);}}});}[_0x247c5a(0x297)](_0x5b1ed2){const _0x2a90f3=_0x247c5a;this['_retryingConflictCacheUnitIDs']['has'](_0x5b1ed2)||(this[_0x2a90f3(0x1b5)][_0x2a90f3(0x23b)](_0x5b1ed2),this[_0x2a90f3(0x1f9)](),this[_0x2a90f3(0x2e7)][_0x2a90f3(0x22c)](_0x5b1ed2)['then'](()=>window[_0x2a90f3(0x274)]['reload']())['catch'](()=>this[_0x2a90f3(0x33f)](_0x5b1ed2))[_0x2a90f3(0x2a2)](()=>this[_0x2a90f3(0x1b5)][_0x2a90f3(0x2ea)](_0x5b1ed2)));}['_replaceConflictNotification'](_0x5cdc90){const _0xb2b6dd=_0x247c5a;var _0x26c52d;(_0x26c52d=this['_conflictNotification'])==null||_0x26c52d['dispose'](),this[_0xb2b6dd(0x25e)]=this['_notificationService'][_0xb2b6dd(0x30a)](_0x5cdc90);}};Ln=q([K(0x0,_0x1b0f9c),K(0x1,_0x1974ac),K(0x2,_0x3b8ccc(_0x1327e3)),K(0x3,_0x4a0381),K(0x4,_0x502777),K(0x5,_0x3b8ccc(_0x5a18da))],Ln);const Rn=_0x44855e(_0x247c5a(0x32f));let zn=class extends _0x3318cc{constructor(_0xf749be,_0xd86437,_0x45e5da,_0x255798){const _0x2e75e6=_0x247c5a;super(),this[_0x2e75e6(0x1b6)]=_0xf749be,this[_0x2e75e6(0x2be)]=_0xd86437,this[_0x2e75e6(0x3fb)]=_0x45e5da,this[_0x2e75e6(0x3be)]=_0x255798,this[_0x2e75e6(0x302)]()['catch'](_0x27c6b0=>this[_0x2e75e6(0x2be)][_0x2e75e6(0x3f2)](_0x2e75e6(0x2ff),_0x27c6b0));}async[_0x247c5a(0x302)](){const _0x402715=_0x247c5a;let _0x55d4a9=this[_0x402715(0x1b6)][_0x402715(0x20d)](_0x402715(0x400)),_0x20a4b3=this['_urlService'][_0x402715(0x20d)](_0x402715(0x2d8)),_0x384fd3=this[_0x402715(0x1b6)][_0x402715(0x20d)]('subunit');if(!_0x55d4a9||!_0x20a4b3){this[_0x402715(0x2be)][_0x402715(0x281)](_0x402715(0x2ff),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x1386c9=await this[_0x402715(0x3be)]['loadUnit'](_0x55d4a9,Number(_0x20a4b3),_0x384fd3);this['_disposed']||_0x1386c9&&_0x1386c9 instanceof _0x16e1e6&&await this[_0x402715(0x1e6)](_0x1386c9);}async['_setupSubUnitSync'](_0x2767f8){const _0x5f5d74=_0x247c5a;await this['_updateSubUnitFromURLParams'](_0x2767f8,!0x0),!this[_0x5f5d74(0x408)]&&(_0x2767f8[_0x5f5d74(0x317)][_0x5f5d74(0x2cc)](_0x3fa56b(this[_0x5f5d74(0x40c)]))[_0x5f5d74(0x2d5)](_0x43914a=>{const _0x435c05=_0x5f5d74;_0x43914a&&this[_0x435c05(0x34b)](_0x43914a);}),this[_0x5f5d74(0x1b6)][_0x5f5d74(0x210)][_0x5f5d74(0x2cc)](_0x3fa56b(this[_0x5f5d74(0x40c)]))[_0x5f5d74(0x2d5)](()=>{const _0x43c1f0=_0x5f5d74;this['_updateSubUnitFromURLParams'](_0x2767f8)[_0x43c1f0(0x1ac)](_0x48936f=>this[_0x43c1f0(0x2be)][_0x43c1f0(0x3f2)](_0x43c1f0(0x2ff),_0x48936f));}));}['_updateURLWithCurrentState'](_0x352d84,_0x7c1313=!0x1){const _0x4443b2=_0x247c5a;let _0x354aa8=this[_0x4443b2(0x1b6)]['getParam']('subunit');_0x352d84[_0x4443b2(0x411)]()!==_0x354aa8&&this[_0x4443b2(0x1b6)][_0x4443b2(0x3b4)](_0x4443b2(0x3ff),_0x352d84[_0x4443b2(0x411)](),_0x7c1313);}async[_0x247c5a(0x3e9)](_0x83be18,_0x4fd00a=!0x1){const _0x4f7b90=_0x247c5a;var _0x1eb76e;let _0x5190ca=this['_urlService']['getParam'](_0x4f7b90(0x3ff));if(!_0x5190ca||!_0x83be18[_0x4f7b90(0x294)](_0x5190ca)){let _0x31fc7a=_0x83be18[_0x4f7b90(0x1c6)]()[0x0],_0x2a4074=_0x83be18[_0x4f7b90(0x294)](_0x31fc7a);if(!_0x2a4074||(this['_updateURLWithCurrentState'](_0x2a4074,!0x0),this[_0x4f7b90(0x408)]))return;await this['_commandService'][_0x4f7b90(0x3f4)](_0x211d66['id'],{'unitId':_0x83be18[_0x4f7b90(0x308)](),'subUnitId':_0x31fc7a});return;}(_0x4fd00a||((_0x1eb76e=_0x83be18[_0x4f7b90(0x268)]())==null?void 0x0:_0x1eb76e[_0x4f7b90(0x411)]())!==_0x5190ca)&&await this[_0x4f7b90(0x3fb)][_0x4f7b90(0x3f4)](_0x211d66['id'],{'unitId':_0x83be18[_0x4f7b90(0x308)](),'subUnitId':_0x5190ca});}};zn=q([K(0x0,Rn),K(0x1,_0x583b3f),K(0x2,_0x3fa174),K(0x3,_0x3b8ccc(_0x51e8bf))],zn);let Bn=class{constructor(_0x58d822,_0x5d74ba){const _0x358355=_0x247c5a;this['_transformService']=_0x58d822,this[_0x358355(0x37f)]=_0x5d74ba;}[_0x247c5a(0x3ec)](_0x3be5c6){const _0x52dee4=_0x247c5a;this['_transformUndoRedoStack'](_0x3be5c6),this[_0x52dee4(0x314)](_0x3be5c6);}[_0x247c5a(0x31c)](_0x127c1d){const _0x428b21=_0x247c5a;let {unitID:_0x1e966b}=_0x127c1d,{redoCache:_0x236037}=this[_0x428b21(0x37f)]['getRenderUnitById'](_0x1e966b)[_0x428b21(0x267)](_0x5beedc)[_0x428b21(0x3b6)]();if(_0x236037[_0x428b21(0x23e)]===0x0)return _0x127c1d;let _0x4bb135=_0x55db4d['deepClone'](_0x127c1d['mutations'][0x0]);for(let _0x3a8736=0x0;_0x3a8736<_0x236037[_0x428b21(0x23e)];_0x3a8736++){let _0x47d94e={'id':_0x428b21(0x242),'params':{..._0x236037[_0x3a8736]}},_0x5b1a3a=this[_0x428b21(0x30d)][_0x428b21(0x3ed)](_0x4bb135,_0x47d94e,!0x1);if(_0x2be4e3(_0x5b1a3a))throw _0x5b1a3a[_0x428b21(0x3f2)];_0x4bb135=_0x5b1a3a[_0x428b21(0x2c0)];}return{..._0x55db4d[_0x428b21(0x2e6)](_0x127c1d),'mutations':[_0x4bb135]};}['_transformUndoRedoStack'](_0x2a406e){const _0xafeac6=_0x247c5a;let {unitID:_0x1efc2a}=_0x2a406e,_0x4ec9f2=this['_renderManagerService'][_0xafeac6(0x1a9)](_0x1efc2a)[_0xafeac6(0x267)](_0x5beedc),{undoCache:_0x11b12c,redoCache:_0x2fb9af}=_0x4ec9f2[_0xafeac6(0x3b6)]();if(_0x11b12c[_0xafeac6(0x23e)]===0x0||_0x2fb9af[_0xafeac6(0x23e)]===0x0)return;let _0x498e59=[],_0x4f187c=[],_0x4cf8c3=_0x55db4d[_0xafeac6(0x2e6)](_0x2a406e['mutations'][0x0]),_0x38c5c3=_0x55db4d[_0xafeac6(0x2e6)](_0x2a406e['mutations'][0x0]);for(let _0x47cedf=_0x11b12c['length']-0x1;_0x47cedf>=0x0;_0x47cedf--){let _0x554aaa={'id':'doc.mutation.rich-text-editing','params':{..._0x11b12c[_0x47cedf]}},_0x3df78e={'id':_0xafeac6(0x242),'params':{..._0x2fb9af[_0x47cedf]}},_0x13c869=this[_0xafeac6(0x30d)][_0xafeac6(0x3ed)](_0x4cf8c3,_0x554aaa,!0x1),_0x335b86=this[_0xafeac6(0x30d)]['transformMutation'](_0x38c5c3,_0x3df78e,!0x1);if(_0x2be4e3(_0x13c869))throw _0x13c869[_0xafeac6(0x3f2)];if(_0x2be4e3(_0x335b86))throw _0x335b86[_0xafeac6(0x3f2)];_0x498e59['unshift'](_0x13c869[_0xafeac6(0x24b)][_0xafeac6(0x37c)]),_0x4f187c[_0xafeac6(0x38e)](_0x335b86['m2Prime'][_0xafeac6(0x37c)]),_0x4cf8c3=_0x13c869['m1Prime'],_0x38c5c3=_0x335b86[_0xafeac6(0x2c0)];}_0x4ec9f2[_0xafeac6(0x273)]({'undoCache':_0x498e59,'redoCache':_0x4f187c});}[_0x247c5a(0x314)](_0x1b0999){const _0x21fabc=_0x247c5a;let {unitID:_0x24f9da}=_0x1b0999,_0x46103b=this[_0x21fabc(0x37f)][_0x21fabc(0x1a9)](_0x24f9da)['with'](_0x5beedc),_0x50af7b=_0x46103b['getActiveRange']();if(_0x50af7b==null)return;let _0x5e3251=[{'id':_0x21fabc(0x242),'params':{'unitId':_0x1b0999[_0x21fabc(0x29c)],'actions':null,'textRanges':[_0x50af7b]}}],_0x2b9118=this[_0x21fabc(0x30d)][_0x21fabc(0x213)](_0x1b0999,_0x5e3251);if(!_0x10ddcf(_0x2b9118))throw _0x2b9118[_0x21fabc(0x3f2)];let _0x1f220f=_0x2b9118[_0x21fabc(0x24b)][0x0][_0x21fabc(0x37c)]['textRanges'];Array[_0x21fabc(0x3ca)](_0x1f220f)&&_0x1f220f[_0x21fabc(0x23e)]&&_0x46103b[_0x21fabc(0x272)](_0x1f220f[0x0]);}};function _0x29c9(){const _0x2af8a0=['find','columnGroupId','collabCursorState$','_cursors','_transformPreviousActiveRange','OFFLINE','collaboration-client-ui.permission.title','activeSheet$','_registerDependencies','push','resize','_initDependencies','transformRemoteChangeset','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_context','_drawTextRange','_registerPresenceStatusComponent','startColumn','replace','getCurrentRevOfUnit','registerComponent','_injector','subUnitId','wsSessionTicketUrl','startOffset','getSkeleton','executionId','backupOfflineData','_textBubble','_collaborationSessionService','highlight','uni.network.url-service','[Unhandled\x20Rejection]:\x20','call','557928vMSmFr','SOCKET_FAILED','getOwnPropertyDescriptor','addClipboardHook','segmentPage','_collabSessionService','_pendingEntities','_color','addObjects','getCollabCursors$','8yuEvFo','getMergeData','moveTo','_showConflictCacheClearFailedNotification','collaboration-client-ui.config','_getLighterColor','@univerjs-pro/collaboration-client-ui','getLocalPresence','tableSource','fill','shareInterval','_initPresenceStatusComponents','setOffsetY','setItem','min','_updateURLWithCurrentState','replaceState','_hovered','collab-text-range-','registerRefRange','_assignedColors','filter','Unknown\x20user','_blinkTimer','registerRenderModule','getCurrentSkeleton','timeoutState$','_scheduleHeartbeat','text','_messageIds','_hideTimer','enableDocumentCollaborationUI','_disposeEntitiesForType','SYNCED','values','InsertRangeMoveDownCommandId','getMemberID','options','default','_removeCollabCursors','mutations','_shapes','spin','getCurrentUnitOfType','_initWindowErrorListener','localPresence$','_unitStatus','lineno','_updateMessage','[RemoteUniscriptService]:\x20no\x20focused\x20unit','isFinite','complete','sessionTicket','_disposeEntity','getDocRanges','black','drawWith','width','_send','pointer','_docTransformStateCacheService','getValue','getRangePointData','collaboration-client-ui.snapshotLoading.timeout','params','eventID','application/json','_renderManagerService','red.300','bottom','event$','unload','bold\x2013px\x20Arial,\x20sans-serif','_imageIoService','_blockProgressWatches','_onRefRangeChange','undoState','toISOString','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_removeRemotePresence','exhaustSavingTask','loading','unshift','_document','_univerInstanceService','textRanges','_initStatusComponent','TEXT','state','setInterval','onRendered','tableId','_startEntity','unitId','getCurrentSelections','collaboration-client-ui.collabStatus.conflict','getUnitStatus$','getItem','InsertRowCommandId','replaceSelectionInfoWithoutRefresh','updateOfflineData','_docStateChangeManagerService','transformStateCache','_config','_handleHeartbeatEvent','_watchBlockProgress','getSelectionInfo','disposeWithMe','_toggleOffline','ranges','source','timeoutId','_isBlinkVisible','_initResize','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','slice','collaboration-client-ui.session.will-retry','color','UNIVER_DOC','currentTheme$','setParam','hide','getUndoRedoMutationParamsCache','_cachedData','FromArray','dark:focus:!univer-ring-offset-gray-800','716597AcidHZ','snapshot-loading-timeout','remove','UNIVER_SHEET','_dataLoaderService','collab-text-anchor-','labelHorizontalPosition','_sendLocalPresence','_docSyncEditingCollabCursorService','all','version','_eventUnsubscribe','evenodd','getAncestorScale','univer-text-orange-500','_syncAdapters','isArray','collaboration-client-ui.collaboration.closeRoom','function','clear','onCommandExecuted','_collabCursorState$','removeItem','_stopBlinking','Error','LOADING_BLOCKS','Failed','_isVisibleUnit','2896nGVAYD','_heartbeatTimer','asObservable','origin','_onCursorDelete','USERS_LEAVE','pageIndex','_offsetY','collaboration-client-ui.conflict.title','_getAnchorBounding','_refreshCollabCursors','send','InsertColCommandId','transform','column','_configService','_localeService','setConfig','setShapeProps','_updateSubUnitFromURLParams','collaboration-client-ui.session.connection-failed','findNodePositionByCharIndex','transformIMECache','transformMutation','endRow','backgroundColor','_showText','parse','error','isActive','executeCommand','_collaborationUIEventService','UPDATE_CURSOR','_memberService','setRemotePresence','string','update','_commandService','_id','number','_uiPartsService','subunit','unit','popstate','transformByState','collaboration-client-ui.collabStatus.synced','SUBMIT_CHANGESET_TIMEOUT','HEADER','rgba','runOnServer','_disposed','forEach','pulse','_scene','dispose$','_latestStates','focused$','_entityInit$','ONLINE','getSheetId','_online','strokeWidth','getRenderUnitById','setStateCache','_updateCollabCursors','catch','_render','univer-m-0\x20univer-p-0','_transformHistoryAndStateStack','CONFLICT','tooltipKey','_saveTaskMap','decorate','arc','_retryingConflictCacheUnitIDs','_urlService','_messageService','_blinkIntervalTimer','530xTuwWm','cursorInfo','removeEventListener','polite','span','endColumn','status','next','_docSkeletonManagerService','ERROR','addHandlerCallback','collaboration-client-ui.snapshotLoading.refresh','[Window\x20Error]:\x20','getUnhiddenWorksheets','_entities','setTimeout','#FFF','RemoveColCommandId','_revisionService','_adapter','timedOut','_setupBeforeClosingHandler','_docTransformIMECacheService','_ensureSubject','adapters$','39457zMlllf','405xPnJkZ','assignAColorForMemberID','_docTransformSelectionsService','collaboration-client-ui.collabStatus.notCollab','_activeSaveTaskMap','fillText','hovered','startRow','onStarting','_syncPresenceStatusComponents','columnIndex','_name','removeRemotePresence','_initCommandExecutedListener','_cursor','reason','_httpService','_toggleOnline','univer-flex\x20univer-items-center\x20univer-justify-center','_setupSubUnitSync','_syncEditingCollabCursorService','symbol',',\x200.2)','setAlpha','_hover','292pUgGlV','isEditing','_scheduleSaving','Warning','...','registerBeforeClose','PENDING','map','_initUserListener','collab-rect-range-','unsubscribe','DeleteRangeMoveUpCommandId','closePath','_showConflictProcessingNotification','_getSheetObject','defineProperty','then','RECT','_clearBlockProgressWatch','statusUIPart','getFocusedUnit','_registerRenderDependencies','div','_docClipboardService','dispose','_updateLocalCursor','collaboration-client-ui.session.collaboration-timeout','addObject','toString','history','_removeClearOtherTimer','kind','376GRkfJZ','getParam','post','_handleEvent','urlChange$','get','_cursorInfo$','transformMutationsWithChangeset','_initUnhandledRejectionListener','editingUnit','_docSelectionManagerService','lineTo','now','_instanceService','createInstance','createSocket','packageName','Enter','getScrollXYInfoByViewport','set','makeDirty','indicator','result','CLOSE_ROOM','getCollabEntity$','collaboration-client-ui.collabStatus.syncing','onPointerMove$','_status$','offsetY','sheetId','VIEW_MAIN','small','clearOfflineData','_onCursorUpdate','reconnect','cursorInfo$','content','data','totalBlocks','stack','invokeId','roomMembers','currentSkeleton$','_drawAnchor','selectedIds','_beforeCloseService','_startSheetCollabCursor','add','snapshot-loading-','collaboration-client-ui.collabStatus.offline','length','_scheduleClearOtherTimer','left','/universer-api/frontend/logs','doc.mutation.rich-text-editing','_colorIndex','startsWith','pluginName','_colorAssignService','height','0.2)','clearTimeout','JOIN_ROOM_FAILED','m2Prime','_clearRemotePresences','_cursorShapes','pageType','roomMembers$','getAllUnitsForType','getTypeOfUnitDisposed$','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_handleJoinEvent','_labelHorizontalPosition','_getSaveTimeout','size','stringify','onPointerEnter$','onTransformChange$','_monkeyPatchLogService','restore','labelPosition','row','_conflictNotification','disposeUnit','prototype','name','[LogService\x20Error]:\x20','highlightSecond','univer-text-blue-500','getMember','fillRule','with','getActiveSheet','_clearTimeoutState','getColorFromTheme','syncEditingCollabCursor','reload','_adapterRegistry','getCellIndexByOffset','_labelPosition','clickable','getCurrentTypeOfUnit$','setActiveRange','setUndoRedoMutationParamsCache','location','selection','_replaceConflictNotification','_isDisposed','NO_OTHER_CLIENTS_EDITING','unhandledrejection','rgba(255,\x20255,\x20255,\x200.01)','1.0.2','every','_adapterDisposables','flatMap','_snapshotLoadingService','/run/','debug','_handleHover','getCoordRelativeToViewport','init','true','save','from','NOT_COLLAB','_unitOnClients','OPERATION','redoState','blue.400','memberId','_bindAdapter','bind','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_pointerMoveDisposable','_drawRectRange','_localStorageService','getSheetBySheetId','collaboration-client-ui.conflict.clearFailed','presenceKind','_retryConflictCacheClear','COMPLETE','constructor','MoveRangeCommandId','FOOTER','unitID','_session','canRenderSelection','getConfig','getTypeOfUnitAdded$','unitType','finally','_backgroundColor','_handleCursorUpdate','focusedId','AWAITING','\x20-\x20','_refRangeService','_highlightSecond','registerCommand','_disabled','top','icon','onPointerLeave$','subscribeEvent','_memberID','_collabCursorController','code','collaboration-client-ui.conflict.processing','some','join','1149012laMCRC','_initialized','static','_trackActiveSaveTask','entityInit$','_presenceStatusRegistrations','loadOfflineData','univer-border-none\x20univer-bg-transparent','_logService','requireSession','m1Prime','_anchor','_clearOtherTimers','href','imageSourceType','_uploadLog','OTHER_CLIENT_EDITING','parseInt','override','socket$','_highlight','right','pipe','_collaborationController','univer-text-red-500','split','saveImage','pushState','measureText','runId','clearInterval','subscribe','collaboration-client-ui.operation.update-remote-unit-presence','univer-transition-all\x20univer-duration-200','type','body','_getSessionTicket','_selfUnitIDs','preventDefault','univer-text-gray-400','_initEvent','prepareTransformSelections','stage','search','loadedBlocks','addEventListener',':backup:','range','deepClone','_localCacheService','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','onMouseMove','delete','collaboration-client-ui.conflict.retry','univer-h-8\x20univer-w-8\x20univer-rounded-lg','has','_initStatusListener','_draw','_timeoutState$','searchParams','memberID','_range','includes','_saveCache','key','RemoveRowCommandId','_anchorDot','colorClass','_handleLeaveEvent','658130Lyrknj','removeParam','SOCKET_FAILED_RETRY','primary','[CollaborationDataLoaderController]','object','_startDocCollabCursor','_init','_createSocketURL','sessionStatus$','DeleteRangeMoveLeftCommandId','_themeService','_getMergeRange','getUnitId','CONFLICT_CACHE_CLEAR_FAILED','show','saveTaskMap','_roomMembers$','_transformService','yellow.400','getStateCache'];_0x29c9=function(){return _0x2af8a0;};return _0x29c9();}Bn=q([K(0x0,_0x2ebb05),K(0x1,_0x34d5fc)],Bn);let Vn=class{constructor(_0xf13f6e,_0xfefa7c,_0x9ffcfa){const _0x1d7355=_0x247c5a;this[_0x1d7355(0x325)]=_0xf13f6e,this[_0x1d7355(0x30d)]=_0xfefa7c,this['_docStateChangeManagerService']=_0x9ffcfa;}[_0x247c5a(0x3a2)](_0x3cb5f3){const _0x4710fa=_0x247c5a;this[_0x4710fa(0x1af)](_0x3cb5f3);}['transformRemoteChangeset'](_0x2aa4d4){const _0x29817d=_0x247c5a;let {unitID:_0x32d79e}=_0x2aa4d4,{collaboration:_0x3b1a4}=this['_docStateChangeManagerService']['getStateCache'](_0x32d79e);if(_0x3b1a4[_0x29817d(0x23e)]===0x0)return _0x2aa4d4;let _0x412e73=_0x55db4d['deepClone'](_0x2aa4d4[_0x29817d(0x364)][0x0]);for(let _0x48c9a4=0x0;_0x48c9a4<_0x3b1a4[_0x29817d(0x23e)];_0x48c9a4++){let _0x57a793={'id':_0x29817d(0x242),'params':{'unitId':_0x3b1a4[_0x48c9a4]['unitId'],..._0x3b1a4[_0x48c9a4][_0x29817d(0x28b)]}},_0x47b3dd=this[_0x29817d(0x30d)][_0x29817d(0x3ed)](_0x412e73,_0x57a793,!0x1);if(_0x2be4e3(_0x47b3dd))throw _0x47b3dd[_0x29817d(0x3f2)];_0x412e73=_0x47b3dd['m1Prime'];}return{..._0x55db4d[_0x29817d(0x2e6)](_0x2aa4d4),'mutations':[_0x412e73]};}[_0x247c5a(0x1af)](_0x1530e2){const _0x496af4=_0x247c5a;let {unitID:_0x13b9d7}=_0x1530e2,{history:_0x1b37ee,collaboration:_0x2e65ab}=this[_0x496af4(0x3a1)][_0x496af4(0x30f)](_0x13b9d7);if(_0x1b37ee[_0x496af4(0x23e)]===0x0&&_0x2e65ab[_0x496af4(0x23e)]===0x0)return;let _0x47938e=[],_0x122c42=[],_0x267c36=_0x55db4d[_0x496af4(0x2e6)](_0x1530e2[_0x496af4(0x364)][0x0]),_0x5e8829=_0x55db4d[_0x496af4(0x2e6)](_0x1530e2[_0x496af4(0x364)][0x0]);for(let _0x4a02d6=_0x1b37ee[_0x496af4(0x23e)]-0x1;_0x4a02d6>=0x0;_0x4a02d6--){let _0xf5367c={'id':_0x496af4(0x242),'params':{'unitId':_0x1b37ee[_0x4a02d6][_0x496af4(0x399)],..._0x1b37ee[_0x4a02d6][_0x496af4(0x388)]}},_0x21a5ec={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1b37ee[_0x4a02d6]['unitId'],..._0x1b37ee[_0x4a02d6][_0x496af4(0x28b)]}},_0x1449e2=this[_0x496af4(0x30d)][_0x496af4(0x3ed)](_0x267c36,_0xf5367c,!0x1),_0xdbbc81=this[_0x496af4(0x30d)][_0x496af4(0x3ed)](_0x5e8829,_0x21a5ec,!0x1);if(_0x2be4e3(_0x1449e2))throw _0x1449e2[_0x496af4(0x3f2)];if(_0x2be4e3(_0xdbbc81))throw _0xdbbc81[_0x496af4(0x3f2)];_0x47938e[_0x496af4(0x38e)]({..._0x1b37ee[_0x4a02d6],'undoState':_0x1449e2['m2Prime'][_0x496af4(0x37c)],'redoState':_0xdbbc81[_0x496af4(0x24b)]['params']}),_0x267c36=_0x1449e2[_0x496af4(0x2c0)],_0x5e8829=_0xdbbc81['m1Prime'];}_0x267c36=_0x55db4d[_0x496af4(0x2e6)](_0x1530e2[_0x496af4(0x364)][0x0]),_0x5e8829=_0x55db4d[_0x496af4(0x2e6)](_0x1530e2[_0x496af4(0x364)][0x0]);for(let _0x5b7620=_0x2e65ab[_0x496af4(0x23e)]-0x1;_0x5b7620>=0x0;_0x5b7620--){let _0x22b2af={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2e65ab[_0x5b7620][_0x496af4(0x399)],..._0x2e65ab[_0x5b7620]['undoState']}},_0xf23f99={'id':_0x496af4(0x242),'params':{'unitId':_0x2e65ab[_0x5b7620][_0x496af4(0x399)],..._0x2e65ab[_0x5b7620]['redoState']}},_0x1d39d8=this[_0x496af4(0x30d)][_0x496af4(0x3ed)](_0x267c36,_0x22b2af,!0x1),_0x2c71e9=this[_0x496af4(0x30d)][_0x496af4(0x3ed)](_0x5e8829,_0xf23f99,!0x1);if(_0x2be4e3(_0x1d39d8))throw _0x1d39d8[_0x496af4(0x3f2)];if(_0x2be4e3(_0x2c71e9))throw _0x2c71e9[_0x496af4(0x3f2)];_0x122c42[_0x496af4(0x38e)]({..._0x2e65ab[_0x5b7620],'undoState':_0x1d39d8[_0x496af4(0x24b)][_0x496af4(0x37c)],'redoState':_0x2c71e9[_0x496af4(0x24b)]['params']}),_0x267c36=_0x1d39d8[_0x496af4(0x2c0)],_0x5e8829=_0x2c71e9[_0x496af4(0x2c0)];}this[_0x496af4(0x3a1)][_0x496af4(0x1aa)](_0x13b9d7,{'history':_0x47938e,'collaboration':_0x122c42});}};Vn=q([K(0x0,_0x3b8ccc(_0x5c9bca)),K(0x1,_0x2ebb05),K(0x2,_0x3b8ccc(_0x56aa2a))],Vn);let Hn=class{constructor(_0x5acca6,_0xf42fd7){const _0x405230=_0x247c5a;this[_0x405230(0x216)]=_0x5acca6,this[_0x405230(0x30d)]=_0xf42fd7;}[_0x247c5a(0x2df)](_0x23f339){const _0x247ade=_0x247c5a;var _0x13cb3a;let _0x5c1781=this[_0x247ade(0x216)][_0x247ade(0x372)]()??[],_0x15458a=this['_docSelectionManagerService'][_0x247ade(0x3a6)]();if(_0x5c1781[_0x247ade(0x23e)]===0x0||_0x15458a==null)return null;let _0x3a0dee=_0x23f339[_0x247ade(0x29c)],_0x24fc96=[{'id':_0x247ade(0x242),'params':{'unitId':_0x3a0dee,'actions':null,'textRanges':_0x5c1781}}],_0xfe2ae7=this['_transformService'][_0x247ade(0x213)](_0x23f339,_0x24fc96);if(!_0x10ddcf(_0xfe2ae7))throw _0xfe2ae7[_0x247ade(0x3f2)];let _0x33c4fd=(_0x13cb3a=_0xfe2ae7[_0x247ade(0x24b)][0x0])==null?void 0x0:_0x13cb3a[_0x247ade(0x37c)],_0x1e1dd8=_0x33c4fd&&typeof _0x33c4fd==_0x247ade(0x300)&&_0x247ade(0x391)in _0x33c4fd?_0x33c4fd['textRanges']:null;if(!Gn(_0x1e1dd8))return null;let _0x4956dc=Un(_0x23f339[_0x247ade(0x364)][_0x247ade(0x2b4)](_0x3ce6c4=>Kn(_0x3ce6c4[_0x247ade(0x37c)]))?_0x1e1dd8['filter'](_0x31bfc5=>!(_0x247ade(0x397)in _0x31bfc5)):_0x1e1dd8,{..._0x15458a,'options':_0x15458a[_0x247ade(0x361)]?{..._0x15458a[_0x247ade(0x361)],'wholeDocument':!0x1}:void 0x0}),_0x4d18d2={'unitId':_0x3a0dee,'subUnitId':_0x3a0dee};this[_0x247ade(0x216)]['replaceSelectionInfoWithoutRefresh'](_0x4956dc,_0x4d18d2);let _0x23a76f=!0x0;return{'commit':()=>{_0x23a76f=!0x1;},'rollback':()=>{const _0x5b8027=_0x247ade;_0x23a76f&&(_0x23a76f=!0x1,this[_0x5b8027(0x216)][_0x5b8027(0x39f)](_0x15458a,_0x4d18d2));}};}};Hn=q([K(0x0,_0x3b8ccc(_0x16bdd0)),K(0x1,_0x2ebb05)],Hn);function Un(_0x5b3c93,_0x238954){let _0x2292cb=[],_0x507f2f=[];for(let _0x4ffe1e of _0x5b3c93)Wn(_0x4ffe1e)?_0x507f2f['push'](_0x4ffe1e):_0x2292cb['push'](_0x4ffe1e);return{..._0x238954,'textRanges':_0x2292cb,'rectRanges':_0x507f2f};}function Wn(_0x2b644b){return'tableId'in _0x2b644b;}function Gn(_0x2f8436){const _0xa010e=_0x247c5a;return Array[_0xa010e(0x3ca)](_0x2f8436)&&_0x2f8436[_0xa010e(0x27c)](_0x595253=>typeof _0x595253==_0xa010e(0x300)&&!!_0x595253&&_0xa010e(0x328)in _0x595253&&'endOffset'in _0x595253);}function Kn(_0x55ec95){const _0x4d8033=_0x247c5a;return _0x55ec95===_0x4d8033(0x344)?!0x0:Array[_0x4d8033(0x3ca)](_0x55ec95)?_0x55ec95[_0x4d8033(0x2b4)](_0x535e77=>Kn(_0x535e77)):!_0x55ec95||typeof _0x55ec95!='object'?!0x1:Object[_0x4d8033(0x35e)](_0x55ec95)[_0x4d8033(0x2b4)](_0x3653b8=>Kn(_0x3653b8));}let qn=class extends _0x50ca1f{constructor(_0x428ca9,_0x26882d,_0x1f1d4b,_0x1c65b6,_0x1adee4,_0x7af276,_0x19f924){const _0x1d469d=_0x247c5a;super(),this[_0x1d469d(0x2cd)]=_0x428ca9,this[_0x1d469d(0x1cf)]=_0x26882d,this[_0x1d469d(0x378)]=_0x1f1d4b,this[_0x1d469d(0x1d5)]=_0x1c65b6,this[_0x1d469d(0x3c2)]=_0x1adee4,this[_0x1d469d(0x1b7)]=_0x7af276,this[_0x1d469d(0x3e6)]=_0x19f924,G(this,'_status$',new _0x24b100(_0x5c157a['NOT_COLLAB'])),this['_initEntityListener']();}['_initEntityListener'](){const _0x1cff04=_0x247c5a;this[_0x1cff04(0x3a7)](this[_0x1cff04(0x2cd)][_0x1cff04(0x2ba)]['subscribe'](_0x39592c=>{const _0x5a006d=_0x1cff04;_0x39592c instanceof _0x4a9a22&&_0x39592c[_0x5a006d(0x1c3)]({'onTransformIME':_0x30649e=>this[_0x5a006d(0x1cf)][_0x5a006d(0x3ec)](_0x30649e),'onTransformState':_0x5d0468=>this[_0x5a006d(0x378)][_0x5a006d(0x3a2)](_0x5d0468),'onPrepareTransformSelections':_0x5a9845=>this[_0x5a006d(0x1d5)][_0x5a006d(0x2df)](_0x5a9845),'onSyncEditingCollabCursor':_0x1a59bf=>this[_0x5a006d(0x3c2)][_0x5a006d(0x26b)](_0x1a59bf),'onTransformRemoteChangesetByIMECache':_0x12f915=>this[_0x5a006d(0x1cf)][_0x5a006d(0x31c)](_0x12f915),'onTransformRemoteChangesetByStateCache':_0x16385d=>this[_0x5a006d(0x378)][_0x5a006d(0x31c)](_0x16385d)});}));}};qn=q([K(0x0,_0x3b8ccc(_0x501041)),K(0x1,_0x3b8ccc(Bn)),K(0x2,_0x3b8ccc(Vn)),K(0x3,_0x3b8ccc(Hn)),K(0x4,_0x3b8ccc(_n)),K(0x5,_0x4a0381),K(0x6,_0x3b8ccc(_0x5a18da))],qn);let Jn=class extends _0x50ca1f{constructor(_0x1ced60,_0x849185,_0x27d891,_0x22cdc0){const _0x2e4046=_0x247c5a;super(),this[_0x2e4046(0x325)]=_0x1ced60,this['_httpService']=_0x849185,this[_0x2e4046(0x2be)]=_0x27d891,this[_0x2e4046(0x32d)]=_0x22cdc0,G(this,_0x2e4046(0x2b0),void 0x0),this[_0x2e4046(0x302)]();}['_init'](){const _0x3f7c60=_0x247c5a;this[_0x3f7c60(0x368)](),this[_0x3f7c60(0x214)](),this[_0x3f7c60(0x25a)](),this[_0x3f7c60(0x1f4)]();}[_0x247c5a(0x1f4)](){const _0xaed843=_0x247c5a;this[_0xaed843(0x3a7)](this['_collaborationSessionService'][_0xaed843(0x2c9)]['subscribe'](_0x2ff9dc=>{const _0x5aaddc=_0xaed843;this['_memberID']=_0x2ff9dc==null?void 0x0:_0x2ff9dc[_0x5aaddc(0x2f2)];}));}['_initWindowErrorListener'](){const _0xa51d3f=_0x247c5a;let _0xf0731f=_0x5c2978=>{const _0x18bac6=_0x2e9b;var _0x23a357;this['_uploadLog'](_0x18bac6(0x3f2),_0x18bac6(0x1c5)+_0x5c2978['message']+'\x20at\x20'+_0x5c2978['filename']+':'+_0x5c2978[_0x18bac6(0x36b)]+':'+_0x5c2978['colno']+'\x0a'+(((_0x23a357=_0x5c2978[_0x18bac6(0x3f2)])==null?void 0x0:_0x23a357[_0x18bac6(0x233)])||''));};window[_0xa51d3f(0x2e3)]('error',_0xf0731f),this[_0xa51d3f(0x3a7)](()=>{const _0x5ae89b=_0xa51d3f;window[_0x5ae89b(0x1bb)](_0x5ae89b(0x3f2),_0xf0731f);});}[_0x247c5a(0x214)](){const _0x26c911=_0x247c5a;let _0x3a4935=_0x4215e6=>{const _0x173ab8=_0x2e9b;this[_0x173ab8(0x2c5)](_0x173ab8(0x3f2),_0x173ab8(0x330)+_0x4215e6[_0x173ab8(0x1e2)]);};window['addEventListener'](_0x26c911(0x279),_0x3a4935),this[_0x26c911(0x3a7)](()=>{const _0x39e540=_0x26c911;window['removeEventListener'](_0x39e540(0x279),_0x3a4935);});}[_0x247c5a(0x25a)](){const _0x59c6cd=_0x247c5a;let _0x14af05=this[_0x59c6cd(0x2be)][_0x59c6cd(0x3f2)][_0x59c6cd(0x28f)](this[_0x59c6cd(0x2be)]);this[_0x59c6cd(0x2be)][_0x59c6cd(0x3f2)]=(..._0x3bffe3)=>{const _0x36b003=_0x59c6cd;let _0x1b586b=_0x3bffe3['map'](_0x44af4d=>_0x44af4d instanceof Error?_0x44af4d['message']+'\x0a'+_0x44af4d[_0x36b003(0x233)]:String(_0x44af4d))[_0x36b003(0x2b5)]('\x20');this[_0x36b003(0x2c5)]('error',_0x36b003(0x262)+_0x1b586b),_0x14af05(..._0x3bffe3);},this[_0x59c6cd(0x3a7)](()=>{const _0x1a1733=_0x59c6cd;this[_0x1a1733(0x2be)][_0x1a1733(0x3f2)]=_0x14af05;});}[_0x247c5a(0x2c5)](_0x518b63,_0x577a4a){const _0x2b25b6=_0x247c5a;try{let _0x78853f={'userId':this[_0x2b25b6(0x2b0)],'logLabel':_0x518b63,'content':_0x577a4a};this[_0x2b25b6(0x1e3)][_0x2b25b6(0x20e)](_0x2b25b6(0x241),{'body':_0x78853f})[_0x2b25b6(0x1ac)](()=>{});}catch{}}};Jn=q([K(0x0,_0x3b8ccc(_0x5c9bca)),K(0x1,_0x3b8ccc(_0x47169a)),K(0x2,_0x583b3f),K(0x3,_0x3b8ccc(_0xed7c81))],Jn);function Yn({state$:_0x27a554}){const _0x48ab3a=_0x247c5a;let _0x19b206=_0x47ef38(_0x27a554,null,!0x0);return _0x19b206?_0x10ab35(_0x48ab3a(0x202),{'data-u-comp':_0x48ab3a(0x3bb),'role':'alert','className':_0x48ab3a(0x3ae),'children':[_0x5b3a46(_0x14cc8f,{'className':_0x48ab3a(0x2e8)}),_0x5b3a46(_0x48ab3a(0x1bd),{'children':_0x19b206[_0x48ab3a(0x230)]}),_0x5b3a46(_0x58172d,{'size':_0x48ab3a(0x22b),'variant':_0x48ab3a(0x2fe),'onClick':()=>window['location'][_0x48ab3a(0x26c)](),'children':_0x19b206['refreshLabel']})]}):null;}const Xn=_0x247c5a(0x23c);let Zn=class extends _0x50ca1f{constructor(_0x54df5d,_0x4f8120,_0x227b49,_0x38e097,_0x255e53,_0x53f511){const _0x845fa1=_0x247c5a;super(),this[_0x845fa1(0x27f)]=_0x54df5d,this[_0x845fa1(0x1b7)]=_0x4f8120,this[_0x845fa1(0x3e6)]=_0x227b49,this[_0x845fa1(0x325)]=_0x38e097,this[_0x845fa1(0x1b6)]=_0x53f511,G(this,_0x845fa1(0x2f0),new _0x24b100(null)),G(this,_0x845fa1(0x359),new Set()),G(this,'_blockProgressWatches',new Map()),G(this,'_latestStates',new Map()),G(this,'timeoutState$',this[_0x845fa1(0x2f0)][_0x845fa1(0x3d8)]());let _0x3fa948=()=>_0x30be06(Yn,{'state$':this[_0x845fa1(0x356)]});this[_0x845fa1(0x3a7)](_0x255e53[_0x845fa1(0x324)](_0x4fb6b8['GLOBAL'],()=>_0x107421(_0x3fa948,this[_0x845fa1(0x325)]))),this[_0x845fa1(0x3a7)](this[_0x845fa1(0x27f)]['state$'][_0x845fa1(0x2d5)](_0x1964c2=>{const _0x116575=_0x845fa1;this[_0x116575(0x40d)]=_0x1964c2,_0x1964c2[_0x116575(0x409)](_0x50ff66=>this[_0x116575(0x36c)](_0x50ff66));})),this[_0x845fa1(0x3a7)](this[_0x845fa1(0x1b6)]['urlChange$']['subscribe'](()=>{const _0x4f26af=_0x845fa1;this['_latestStates'][_0x4f26af(0x409)](_0x49e33a=>this[_0x4f26af(0x36c)](_0x49e33a));}));}['dispose'](){const _0x5e2115=_0x247c5a;this[_0x5e2115(0x359)][_0x5e2115(0x409)](_0x57a539=>this['_messageService'][_0x5e2115(0x3bc)](_0x57a539)),this['_messageIds']['clear'](),this[_0x5e2115(0x386)][_0x5e2115(0x409)](({timeoutId:_0x1b3b89})=>clearTimeout(_0x1b3b89)),this[_0x5e2115(0x386)][_0x5e2115(0x3cd)](),this[_0x5e2115(0x2f0)][_0x5e2115(0x36f)](),super[_0x5e2115(0x204)]();}[_0x247c5a(0x36c)](_0x37b893){const _0x5388df=_0x247c5a;let _0xcdac66=''+Xn+_0x37b893[_0x5388df(0x399)];if(_0x37b893['stage']===_0x338f29[_0x5388df(0x298)]){this[_0x5388df(0x1fe)](_0x37b893[_0x5388df(0x399)]),this['_clearTimeoutState'](_0x37b893[_0x5388df(0x399)]),this[_0x5388df(0x1b7)][_0x5388df(0x3bc)](_0xcdac66),this[_0x5388df(0x359)]['delete'](_0xcdac66);return;}if(!this[_0x5388df(0x3d5)](_0x37b893[_0x5388df(0x399)])){this[_0x5388df(0x1fe)](_0x37b893[_0x5388df(0x399)]),this[_0x5388df(0x269)](_0x37b893[_0x5388df(0x399)]),this[_0x5388df(0x1b7)][_0x5388df(0x3bc)](_0xcdac66),this[_0x5388df(0x359)][_0x5388df(0x2ea)](_0xcdac66);return;}if(_0x37b893['stage']===_0x338f29[_0x5388df(0x1c2)]){this[_0x5388df(0x1fe)](_0x37b893[_0x5388df(0x399)]),this[_0x5388df(0x269)](_0x37b893[_0x5388df(0x399)]),this[_0x5388df(0x1b7)][_0x5388df(0x30a)]({'id':_0xcdac66,'type':_0x2f977e[_0x5388df(0x3d2)],'content':this[_0x5388df(0x3e6)]['t'](_0x5388df(0x3ea))}),this[_0x5388df(0x359)][_0x5388df(0x2ea)](_0xcdac66);return;}if(_0x37b893[_0x5388df(0x2e0)]!==_0x338f29[_0x5388df(0x3d3)]||_0x37b893[_0x5388df(0x232)]<=0xa){this['_clearBlockProgressWatch'](_0x37b893[_0x5388df(0x399)]),this[_0x5388df(0x1b7)][_0x5388df(0x3bc)](_0xcdac66),this[_0x5388df(0x359)]['delete'](_0xcdac66);return;}this[_0x5388df(0x3a5)](_0x37b893)||(this[_0x5388df(0x1b7)][_0x5388df(0x30a)]({'id':_0xcdac66,'type':_0x2f977e['Loading'],'duration':0x1/0x0,'content':this['_localeService']['t']('collaboration-client-ui.collabStatus.fetchMiss')+'\x20'+_0x37b893[_0x5388df(0x2e2)]+'/'+_0x37b893['totalBlocks']}),this['_messageIds'][_0x5388df(0x23b)](_0xcdac66));}[_0x247c5a(0x3a5)](_0x4026a4){const _0x47ae6b=_0x247c5a;let _0x10b9df=this['_blockProgressWatches'][_0x47ae6b(0x211)](_0x4026a4['unitId']);if((_0x10b9df==null?void 0x0:_0x10b9df[_0x47ae6b(0x2e2)])===_0x4026a4[_0x47ae6b(0x2e2)])return _0x10b9df['timedOut'];this[_0x47ae6b(0x1fe)](_0x4026a4[_0x47ae6b(0x399)]);let _0x1b8faa=setTimeout(()=>{const _0x433ef1=_0x47ae6b;let _0x413a88=this[_0x433ef1(0x386)][_0x433ef1(0x211)](_0x4026a4[_0x433ef1(0x399)]);if(!_0x413a88||_0x413a88[_0x433ef1(0x3ab)]!==_0x1b8faa)return;_0x413a88[_0x433ef1(0x1cd)]=!0x0;let _0x750331=''+Xn+_0x4026a4[_0x433ef1(0x399)];this['_messageService'][_0x433ef1(0x3bc)](_0x750331),this[_0x433ef1(0x359)][_0x433ef1(0x2ea)](_0x750331),this['_timeoutState$'][_0x433ef1(0x1c0)]({'unitId':_0x4026a4['unitId'],'content':this['_localeService']['t'](_0x433ef1(0x37b),String(_0x4026a4[_0x433ef1(0x2e2)]),String(_0x4026a4[_0x433ef1(0x232)])),'refreshLabel':this[_0x433ef1(0x3e6)]['t']('collaboration-client-ui.snapshotLoading.refresh')});},0xea60);return this['_blockProgressWatches'][_0x47ae6b(0x21f)](_0x4026a4[_0x47ae6b(0x399)],{'loadedBlocks':_0x4026a4['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x1b8faa}),!0x1;}[_0x247c5a(0x1fe)](_0x425717){const _0x2016de=_0x247c5a;let _0x17b122=this[_0x2016de(0x386)][_0x2016de(0x211)](_0x425717);_0x17b122&&(clearTimeout(_0x17b122[_0x2016de(0x3ab)]),this[_0x2016de(0x386)]['delete'](_0x425717),this[_0x2016de(0x269)](_0x425717));}[_0x247c5a(0x269)](_0x1eb87e){const _0x3cd55e=_0x247c5a;var _0x538374;((_0x538374=this[_0x3cd55e(0x2f0)]['value'])==null?void 0x0:_0x538374[_0x3cd55e(0x399)])===_0x1eb87e&&this[_0x3cd55e(0x2f0)][_0x3cd55e(0x1c0)](null);}[_0x247c5a(0x3d5)](_0x35135a){const _0x23e918=_0x247c5a;let _0x5dbb68=this[_0x23e918(0x1b6)][_0x23e918(0x20d)](_0x23e918(0x400));return!_0x5dbb68||_0x5dbb68===_0x35135a;}};Zn=q([K(0x0,_0x3b8ccc(_0x1a827f)),K(0x1,_0x4a0381),K(0x2,_0x3b8ccc(_0x5a18da)),K(0x3,_0x3b8ccc(_0x5c9bca)),K(0x4,_0x4bd601),K(0x5,Rn)],Zn);let Qn=class extends _0x50ca1f{constructor(_0x2f9409,_0x18e921,_0x22d518){const _0x10f3a1=_0x247c5a;super(),this[_0x10f3a1(0x3e5)]=_0x2f9409,this[_0x10f3a1(0x293)]=_0x18e921,this[_0x10f3a1(0x1cb)]=_0x22d518,G(this,'_cachedData',new Map()),G(this,_0x10f3a1(0x1b2),new Map()),G(this,_0x10f3a1(0x1d7),new Map()),G(this,_0x10f3a1(0x2ab),!0x1);}['disableLocalCache'](){const _0x3ac10a=_0x247c5a;this[_0x3ac10a(0x2ab)]=!0x0;}['enableLocalCache'](){const _0x2eb60e=_0x247c5a;this[_0x2eb60e(0x2ab)]=!0x1;}get[_0x247c5a(0x30b)](){const _0x71825c=_0x247c5a;return this[_0x71825c(0x1b2)];}[_0x247c5a(0x204)](){const _0x153a8f=_0x247c5a;this[_0x153a8f(0x38c)]()[_0x153a8f(0x1fc)](()=>super['dispose']());}async[_0x247c5a(0x2bc)](_0x279398){const _0x156b34=_0x247c5a;return this[_0x156b34(0x2ab)]?null:this[_0x156b34(0x293)][_0x156b34(0x39d)](_0x98c216(_0x279398));}async['saveOfflineData'](_0x182fbf,_0x172f28){const _0x21ba6d=_0x247c5a;let _0x103e49=this[_0x21ba6d(0x293)][_0x21ba6d(0x349)](_0x98c216(_0x182fbf),_0x172f28);return this['_trackActiveSaveTask'](_0x182fbf,_0x103e49),!!await _0x103e49;}async[_0x247c5a(0x32b)](_0x87b3e6,_0xe7e973){const _0x292594=_0x247c5a;let _0x5682bb=this[_0x292594(0x3b7)][_0x292594(0x211)](_0x87b3e6)??await this[_0x292594(0x293)][_0x292594(0x39d)](_0x98c216(_0x87b3e6));if(!_0x5682bb)return;let _0x212d3e=Date[_0x292594(0x218)](),_0x169637=new Date(_0x212d3e)[_0x292594(0x389)]();await this[_0x292594(0x293)][_0x292594(0x349)](_0x98c216(_0x87b3e6)+_0x292594(0x2e4)+_0x212d3e,{'reason':_0xe7e973,'createdAt':_0x169637,'data':_0x5682bb});}async[_0x247c5a(0x22c)](_0x4130ed){const _0x295c38=_0x247c5a;let _0x24af77=this['_saveTaskMap'][_0x295c38(0x211)](_0x4130ed);_0x24af77!==void 0x0&&(window['clearTimeout'](_0x24af77),this['_saveTaskMap'][_0x295c38(0x2ea)](_0x4130ed));let _0xb15de6=this[_0x295c38(0x1d7)]['get'](_0x4130ed);_0xb15de6&&await Promise['allSettled'](_0xb15de6),this[_0x295c38(0x3b7)][_0x295c38(0x2ea)](_0x4130ed),await this['_localStorageService'][_0x295c38(0x3d0)](_0x98c216(_0x4130ed));}[_0x247c5a(0x3a0)](_0x2f447f,_0x3897ef,_0x348ea6,_0x3db9ad){const _0x26f30d=_0x247c5a;let _0x54f46a=this[_0x26f30d(0x1cb)][_0x26f30d(0x323)](_0x2f447f);this[_0x26f30d(0x3b7)][_0x26f30d(0x21f)](_0x2f447f,{'unitID':_0x2f447f,'type':_0x3897ef,'awaitingChangeset':_0x348ea6,'mutations':_0x3db9ad,'rev':_0x54f46a}),this['_saveTaskMap'][_0x26f30d(0x2ed)](_0x2f447f)||this[_0x26f30d(0x1ee)](_0x2f447f);}[_0x247c5a(0x1ee)](_0xcb3263){const _0x1b6275=_0x247c5a;let _0x5b9dcb=this[_0x1b6275(0x255)]();_0x5b9dcb===0x0?this[_0x1b6275(0x2f5)](_0xcb3263):this[_0x1b6275(0x1b2)]['set'](_0xcb3263,window[_0x1b6275(0x1c8)](()=>this[_0x1b6275(0x2f5)](_0xcb3263),_0x5b9dcb));}[_0x247c5a(0x255)](){const _0x284986=_0x247c5a;return this['_configService'][_0x284986(0x29f)](_0x39f139)??_0x56be35;}[_0x247c5a(0x2f5)](_0x2e4c87){const _0x5b7f85=_0x247c5a;let _0x44bd02=this['_saveTaskMap'][_0x5b7f85(0x211)](_0x2e4c87);_0x44bd02!==void 0x0&&window[_0x5b7f85(0x249)](_0x44bd02);let _0x3be44d=this[_0x5b7f85(0x293)][_0x5b7f85(0x349)](_0x98c216(_0x2e4c87),this['_cachedData']['get'](_0x2e4c87))[_0x5b7f85(0x1fc)](()=>this[_0x5b7f85(0x1b2)][_0x5b7f85(0x2ea)](_0x2e4c87));return this[_0x5b7f85(0x2b9)](_0x2e4c87,_0x3be44d),_0x3be44d;}['_trackActiveSaveTask'](_0x471151,_0x47e927){const _0x506a1f=_0x247c5a;let _0x5a7d87=this['_activeSaveTaskMap'][_0x506a1f(0x211)](_0x471151);_0x5a7d87||(_0x5a7d87=new Set(),this['_activeSaveTaskMap'][_0x506a1f(0x21f)](_0x471151,_0x5a7d87)),_0x5a7d87[_0x506a1f(0x23b)](_0x47e927);let _0x1025ed=()=>{const _0x45000b=_0x506a1f;_0x5a7d87['delete'](_0x47e927),_0x5a7d87[_0x45000b(0x256)]===0x0&&this['_activeSaveTaskMap'][_0x45000b(0x2ea)](_0x471151);};_0x47e927[_0x506a1f(0x1fc)](_0x1025ed,_0x1025ed);}async['exhaustSavingTask'](){const _0x1c5535=_0x247c5a;let _0xf09a33=[];this[_0x1c5535(0x1b2)]['forEach']((_0x3f341c,_0x335a7d)=>{const _0x436ed0=_0x1c5535;window[_0x436ed0(0x249)](_0x3f341c),_0xf09a33['push'](this[_0x436ed0(0x2f5)](_0x335a7d)['then'](()=>{const _0x4af67c=_0x436ed0;this[_0x4af67c(0x1b2)][_0x4af67c(0x2ea)](_0x335a7d);}));}),await Promise[_0x1c5535(0x3c3)](_0xf09a33);}};Qn=q([K(0x0,_0xdca818),K(0x1,_0x24200d),K(0x2,_0x3b8ccc(_0x49db3a))],Qn);var $n=class extends _0x3318cc{constructor(){const _0x38e8a6=_0x247c5a;super(),G(this,_0x38e8a6(0x210),void 0x0),this[_0x38e8a6(0x210)]=_0x1412e7(window,_0x38e8a6(0x401))['pipe'](_0x3fa56b(this[_0x38e8a6(0x40c)]),_0x28413a({'bufferSize':0x1,'refCount':!0x0}),_0x13e54e(void 0x0));}[_0x247c5a(0x3b4)](_0x1eb4e0,_0x495fed,_0x11c354=!0x1){const _0x492b3f=_0x247c5a;let _0x1a50a6=new URL(window['location']['href']);_0x1a50a6[_0x492b3f(0x2f1)]['set'](_0x1eb4e0,_0x495fed),_0x11c354?window['history'][_0x492b3f(0x34c)]('','',_0x1a50a6[_0x492b3f(0x208)]()):window['history'][_0x492b3f(0x2d1)]('','',_0x1a50a6[_0x492b3f(0x208)]());}[_0x247c5a(0x2fc)](_0x4395b0,_0x45ddf7=!0x1){const _0x3d988e=_0x247c5a;let _0x3c6eb1=new URL(window[_0x3d988e(0x274)][_0x3d988e(0x2c3)]);_0x3c6eb1[_0x3d988e(0x2f1)][_0x3d988e(0x2ea)](_0x4395b0),_0x45ddf7?window[_0x3d988e(0x209)]['replaceState']('','',_0x3c6eb1[_0x3d988e(0x208)]()):window[_0x3d988e(0x209)][_0x3d988e(0x2d1)]('','',_0x3c6eb1['toString']());}[_0x247c5a(0x20d)](_0x18ef73){const _0x58e690=_0x247c5a;return new URL(window['location'][_0x58e690(0x2c3)])[_0x58e690(0x2f1)][_0x58e690(0x211)](_0x18ef73)??void 0x0;}};let $=class extends _0x50441f{constructor(_0x29d422=fn,_0x48aca5,_0x817941,_0x53644a,_0x52c8f6){const _0x19fa3d=_0x247c5a;super(),this[_0x19fa3d(0x3a3)]=_0x29d422,this[_0x19fa3d(0x37f)]=_0x48aca5,this[_0x19fa3d(0x325)]=_0x817941,this[_0x19fa3d(0x3e5)]=_0x53644a,this[_0x19fa3d(0x3fb)]=_0x52c8f6;let {..._0x170623}=_0x1ee81d({},fn,this[_0x19fa3d(0x3a3)]);this[_0x19fa3d(0x3e5)][_0x19fa3d(0x3e7)](_0x19fa3d(0x340),_0x170623);}[_0x247c5a(0x1db)](){const _0x18ac4b=_0x247c5a;this[_0x18ac4b(0x318)](),this[_0x18ac4b(0x3a7)](this[_0x18ac4b(0x3fb)][_0x18ac4b(0x2aa)](Y)),this[_0x18ac4b(0x31b)]();}[_0x247c5a(0x396)](){const _0x32414c=_0x247c5a;this[_0x32414c(0x201)]();}[_0x247c5a(0x318)](){const _0x16538e=_0x247c5a;var _0x266dbe;let _0x4fd978=[[mn],[Rn,{'useClass':$n}],[_0x4b4083,{'useClass':_0x3c7443}],[_0x1974ac,{'useClass':Qn}],[J],[Ln],[Z],[Q],[zn],[Zn]];this[_0x16538e(0x3a3)][_0x16538e(0x35b)]!==!0x1&&_0x4fd978[_0x16538e(0x319)]([Hn],[Bn],[Vn],[_n],[qn],[X]),this[_0x16538e(0x3a3)]['enableFrontendLog']&&_0x4fd978[_0x16538e(0x319)]([Jn]),_0x3b0029(this[_0x16538e(0x325)],_0x47a538(_0x4fd978,(_0x266dbe=this[_0x16538e(0x3a3)])==null?void 0x0:_0x266dbe[_0x16538e(0x2c8)]));}['_registerRenderDependencies'](){const _0x438067=_0x247c5a;this[_0x438067(0x3a3)][_0x438067(0x35b)]!==!0x1&&this[_0x438067(0x3a7)](this['_renderManagerService'][_0x438067(0x354)](_0x98e284[_0x438067(0x3b2)],[Dn])),this[_0x438067(0x3a7)](this[_0x438067(0x37f)][_0x438067(0x354)](_0x98e284[_0x438067(0x3bd)],[kn]));}[_0x247c5a(0x31b)](){const _0xeefa4=_0x247c5a;_0x327d6b(this[_0xeefa4(0x325)],[[Z],[Q],[J],[Ln],[zn],[Zn]]),this[_0xeefa4(0x3a3)]['enableDocumentCollaborationUI']!==!0x1&&_0x327d6b(this[_0xeefa4(0x325)],[[qn],[X]]),this['_config']['enableFrontendLog']&&_0x327d6b(this[_0xeefa4(0x325)],[[Jn]]);}};G($,_0x247c5a(0x245),_0x247c5a(0x252)),G($,_0x247c5a(0x21c),un),G($,_0x247c5a(0x3c4),dn),$=q([_0x3e9939(_0x3df221,_0x2f83a4,_0x5161e3,_0x3bb077,_0x1724e3,_0x74c715,_0x1116a6),K(0x1,_0x34d5fc),K(0x2,_0x3b8ccc(_0x5c9bca)),K(0x3,_0xdca818),K(0x4,_0x3fa174)],$);let er=class extends _0x25c99b{constructor(_0x21d2e5,_0x42d501,_0x42a6e2,_0x188707,_0x227805){super(_0x21d2e5,_0x42d501,_0x42a6e2,_0x188707,_0x227805);}async[_0x247c5a(0x21b)](_0x5a929d){const _0x1ba774=_0x247c5a;let _0x4200cf=await this[_0x1ba774(0x2da)](),_0x43f348=this[_0x1ba774(0x303)](_0x5a929d,_0x4200cf);return this['_doCreateSocket'](_0x43f348);}[_0x247c5a(0x303)](_0x2d6eca,_0x14d649){const _0x5357ea=_0x247c5a;let _0x26c1cd=typeof window>'u'?new URL(_0x2d6eca):new URL(_0x2d6eca,window[_0x5357ea(0x274)][_0x5357ea(0x3d9)]);_0x26c1cd[_0x5357ea(0x2f1)][_0x5357ea(0x21f)](_0x5357ea(0x370),_0x14d649);let _0x3106c4=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5357ea(0x274)][_0x5357ea(0x2e1)]);return _0x3106c4[_0x5357ea(0x211)]('runId')&&_0x26c1cd[_0x5357ea(0x2f1)][_0x5357ea(0x21f)](_0x5357ea(0x2d3),_0x3106c4[_0x5357ea(0x211)]('runId')),_0x26c1cd[_0x5357ea(0x208)]();}async[_0x247c5a(0x2da)](){const _0x6b9947=_0x247c5a;var _0x74a968;let _0x97e070=this['_configService'][_0x6b9947(0x29f)](_0xc7ece1),_0x25bf22=(_0x97e070==null?void 0x0:_0x97e070[_0x6b9947(0x327)])??_0x3a4d7e;return((_0x74a968=(await this[_0x6b9947(0x1e3)][_0x6b9947(0x211)](_0x25bf22,{'headers':{'Content-Type':_0x6b9947(0x37e)}}))[_0x6b9947(0x2d9)])==null?void 0x0:_0x74a968['ticket'])??'';}};er=q([K(0x0,_0x3b8ccc(_0x5c9bca)),K(0x1,_0x3b8ccc(_0x47169a)),K(0x2,_0xdca818),K(0x3,_0x583b3f),K(0x4,_0x3b6c27)],er);let tr=class extends _0x50ca1f{constructor(_0x430ed6,_0x2c8633,_0x2c8c28){const _0x4ba7db=_0x247c5a;super(),this[_0x4ba7db(0x219)]=_0x430ed6,this['_httpService']=_0x2c8633,this['_configService']=_0x2c8c28;}async[_0x247c5a(0x407)](_0x411377,_0x2eaa87,_0x594aa3,..._0x51f2ce){const _0x568ad3=_0x247c5a;let _0x15ec09=this[_0x568ad3(0x219)]['getFocusedUnit']();if(!_0x15ec09)throw Error(_0x568ad3(0x36d));let _0x800198=(this[_0x568ad3(0x3e5)][_0x568ad3(0x29f)](_0x1db53f)??_0x41c70c)+'/'+_0x411377+_0x568ad3(0x280)+_0x2eaa87,_0x57d1bd={'scriptId':_0x411377,'runId':new URL(window[_0x568ad3(0x274)]['href'])[_0x568ad3(0x2f1)][_0x568ad3(0x211)]('runId')??'','function':_0x2eaa87,'unitId':_0x15ec09[_0x568ad3(0x308)](),'argsOfFunction':JSON[_0x568ad3(0x257)](_0x51f2ce),'invokeId':_0x594aa3[_0x568ad3(0x234)]??'','executionId':_0x594aa3[_0x568ad3(0x32a)]??''};try{let _0x5cefc6=await this[_0x568ad3(0x1e3)][_0x568ad3(0x20e)](_0x800198,{'body':_0x57d1bd});return _0x5cefc6[_0x568ad3(0x2d9)][_0x568ad3(0x3f2)]&&_0x5cefc6[_0x568ad3(0x2d9)][_0x568ad3(0x3f2)][_0x568ad3(0x2b2)]!==_0x530575['OK']?_0x568ad3(0x3d4):_0x5cefc6[_0x568ad3(0x2d9)][_0x568ad3(0x222)];}catch{return _0x568ad3(0x3d4);}}};tr=q([K(0x0,_0x3fd3c3),K(0x1,_0x3b8ccc(_0x47169a)),K(0x2,_0xdca818)],tr);const nr=0x7530,rr='ACTIVE_UNIT_EVENT_CHANNEL';var ir=class extends _0x50ca1f{constructor(){const _0x13bb30=_0x247c5a;super(),G(this,_0x13bb30(0x3fc),_0x4a2001()),G(this,'_selfUnitIDs',new Set()),G(this,'_unitOnClients',new Map()),G(this,_0x13bb30(0x3d7),null),G(this,'_clearOtherTimers',new Map()),G(this,'_unitStatus',new Map()),this[_0x13bb30(0x302)]();}[_0x247c5a(0x204)](){const _0x4432b1=_0x247c5a;super[_0x4432b1(0x204)](),this[_0x4432b1(0x2c2)][_0x4432b1(0x409)]((_0x5910de,_0x4cb8f6)=>this[_0x4432b1(0x20a)](_0x4cb8f6)),this[_0x4432b1(0x3d7)]&&window[_0x4432b1(0x2d4)](this[_0x4432b1(0x3d7)]);}[_0x247c5a(0x39c)](_0x3e114e){const _0x2fc8d5=_0x247c5a;return this[_0x2fc8d5(0x1d0)](_0x3e114e)['pipe'](_0xc32d41());}[_0x247c5a(0x215)](_0x41c769){const _0x1eaf40=_0x247c5a;this[_0x1eaf40(0x2db)]['size']===0x0&&this[_0x1eaf40(0x357)](),this[_0x1eaf40(0x2db)]['add'](_0x41c769),this['_send']({'type':0x0,'memberID':this[_0x1eaf40(0x3fc)],'unitIDs':[_0x41c769],'isForwarded':!0x1});}[_0x247c5a(0x25f)](_0x12dbec){const _0x3045b9=_0x247c5a;this[_0x3045b9(0x2db)][_0x3045b9(0x2ea)](_0x12dbec),this['_selfUnitIDs']['size']===0x0&&this[_0x3045b9(0x3d7)]&&window[_0x3045b9(0x2d4)](this['_heartbeatTimer']);}[_0x247c5a(0x302)](){const _0x39ebbe=_0x247c5a;this[_0x39ebbe(0x3a7)](_0x265f18(_0x1412e7(window,'storage')[_0x39ebbe(0x2d5)](_0x3c97cd=>{const _0xc85310=_0x39ebbe;if(_0x3c97cd[_0xc85310(0x2f6)]!==rr||!_0x3c97cd['newValue'])return;let _0x1020b7=JSON['parse'](_0x3c97cd['newValue']);this[_0xc85310(0x20f)](_0x1020b7);}))),window['addEventListener'](_0x39ebbe(0x383),()=>this['_send']({'type':0x1,'memberID':this[_0x39ebbe(0x3fc)],'unitIDs':Array[_0x39ebbe(0x287)](this[_0x39ebbe(0x2db)])}));}[_0x247c5a(0x20f)](_0x4bc15a){const _0x357dfe=_0x247c5a;switch(_0x4bc15a[_0x357dfe(0x2d8)]){case 0x0:this[_0x357dfe(0x253)](_0x4bc15a);break;case 0x1:this[_0x357dfe(0x2fa)](_0x4bc15a);break;case 0x2:this[_0x357dfe(0x3a4)](_0x4bc15a);}}[_0x247c5a(0x253)](_0x55f4ca){const _0x43ec82=_0x247c5a;let {unitIDs:_0x57d578,memberID:_0x53eb6f,isForwarded:_0x220ba8}=_0x55f4ca;_0x57d578[_0x43ec82(0x409)](_0x4fae80=>{const _0x5d51db=_0x43ec82;if(!_0x220ba8&&this[_0x5d51db(0x289)][_0x5d51db(0x2ed)](_0x4fae80)&&this[_0x5d51db(0x1d0)](_0x4fae80)[_0x5d51db(0x1c0)](_0x258828['OTHER_CLIENTS_EDITING']),!this[_0x5d51db(0x289)][_0x5d51db(0x2ed)](_0x4fae80)||!this[_0x5d51db(0x289)][_0x5d51db(0x211)](_0x4fae80)[_0x5d51db(0x2ed)](_0x53eb6f)){let _0x319dfd=this['_unitOnClients'][_0x5d51db(0x211)](_0x4fae80)||new Set();_0x319dfd['add'](_0x53eb6f),this[_0x5d51db(0x289)][_0x5d51db(0x21f)](_0x4fae80,_0x319dfd),this['_scheduleClearOtherTimer'](_0x53eb6f);}}),_0x220ba8||this[_0x43ec82(0x376)]({'type':0x0,'memberID':this[_0x43ec82(0x3fc)],'unitIDs':[...this[_0x43ec82(0x2db)]],'isForwarded':!0x0});}[_0x247c5a(0x23f)](_0xc5478a){const _0x4b8469=_0x247c5a;this['_removeClearOtherTimer'](_0xc5478a);let _0x3854bf=window[_0x4b8469(0x1c8)](()=>{const _0x57d16b=_0x4b8469;this[_0x57d16b(0x289)]['forEach'](_0x5a3311=>{const _0x17b116=_0x57d16b;_0x5a3311[_0x17b116(0x2ea)](_0xc5478a);});},nr*0x2);this[_0x4b8469(0x2c2)]['set'](_0xc5478a,_0x3854bf);}[_0x247c5a(0x20a)](_0x2bab7d){const _0x61cb3=_0x247c5a;if(this[_0x61cb3(0x2c2)][_0x61cb3(0x2ed)](_0x2bab7d)){let _0x22723f=this[_0x61cb3(0x2c2)][_0x61cb3(0x211)](_0x2bab7d);_0x22723f&&window['clearTimeout'](_0x22723f),this[_0x61cb3(0x2c2)][_0x61cb3(0x21f)](_0x2bab7d,null);}}[_0x247c5a(0x2fa)](_0x538da5){const _0x2a9c6d=_0x247c5a;let {memberID:_0x40cee5,unitIDs:_0x5dda0b}=_0x538da5;_0x5dda0b[_0x2a9c6d(0x409)](_0x351c62=>{const _0x55af1f=_0x2a9c6d;var _0x5cf7e5;let _0x5e9d84=this['_unitOnClients'][_0x55af1f(0x211)](_0x351c62);_0x5e9d84&&(_0x5e9d84['delete'](_0x40cee5),(_0x5cf7e5=this['_ensureSubject'](_0x351c62))==null||_0x5cf7e5[_0x55af1f(0x1c0)](_0x5e9d84[_0x55af1f(0x256)]===0x0?_0x258828[_0x55af1f(0x278)]:_0x258828['OTHER_CLIENTS_EDITING']));}),this[_0x2a9c6d(0x20a)](_0x40cee5);}[_0x247c5a(0x3a4)](_0x49e9d8){const _0x7ac323=_0x247c5a;this[_0x7ac323(0x23f)](_0x49e9d8[_0x7ac323(0x2f2)]);}[_0x247c5a(0x376)](_0x25b7bd){const _0xc7dfe4=_0x247c5a;localStorage[_0xc7dfe4(0x349)](rr,JSON[_0xc7dfe4(0x257)](_0x25b7bd));}['_scheduleHeartbeat'](){const _0x311fe1=_0x247c5a;this['_heartbeatTimer']=window[_0x311fe1(0x395)](()=>{const _0x38ec09=_0x311fe1;this[_0x38ec09(0x376)]({'type':0x2,'memberID':this[_0x38ec09(0x3fc)]});},nr);}['_ensureSubject'](_0x426355){const _0x414cb5=_0x247c5a;return this['_unitStatus']['has'](_0x426355)||this[_0x414cb5(0x36a)][_0x414cb5(0x21f)](_0x426355,new _0x24b100(_0x258828[_0x414cb5(0x278)])),this[_0x414cb5(0x36a)][_0x414cb5(0x211)](_0x426355);}};export{er as BrowserCollaborationSocketService,J as DesktopCollaborationStatusDisplayController,Rn as IURLService,tr as RemoteUniscriptService,On as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,ir as WebBrowserSingleActiveUnitService};
|