@univerjs-pro/collaboration-client 0.2.5 → 0.2.7
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/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/types/controllers/collab-cursor/doc-collab-cursor-render.controller.d.ts +11 -8
- package/lib/types/controllers/collab-cursor/sheet-collab-cursor-render.controller.d.ts +7 -8
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +3 -1
- package/lib/types/controllers/collaboration/utils/empty.d.ts +3 -0
- package/lib/types/plugin.d.ts +7 -3
- package/lib/types/views/shapes/doc-collab-cursor.d.ts +2 -1
- package/lib/umd/index.js +1 -1
- package/package.json +32 -36
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0x27a911=_0x5bd0;(function(_0x5a46b2,_0x5df729){const _0x1e2a29=_0x5bd0,_0x120d57=_0x5a46b2();while(!![]){try{const _0x476436=-parseInt(_0x1e2a29(0x34f))/0x1*(-parseInt(_0x1e2a29(0x266))/0x2)+parseInt(_0x1e2a29(0x29e))/0x3+parseInt(_0x1e2a29(0x2fa))/0x4*(parseInt(_0x1e2a29(0x49b))/0x5)+-parseInt(_0x1e2a29(0x2b5))/0x6+-parseInt(_0x1e2a29(0x426))/0x7*(parseInt(_0x1e2a29(0x35f))/0x8)+parseInt(_0x1e2a29(0x3dc))/0x9+parseInt(_0x1e2a29(0x49e))/0xa;if(_0x476436===_0x5df729)break;else _0x120d57['push'](_0x120d57['shift']());}catch(_0x1f9691){_0x120d57['push'](_0x120d57['shift']());}}}(_0x58ce,0x571cf));var ks=Object[_0x27a911(0x29f)],Bs=(_0x42d2aa,_0x362647,_0x5d07eb)=>_0x362647 in _0x42d2aa?ks(_0x42d2aa,_0x362647,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d07eb}):_0x42d2aa[_0x362647]=_0x5d07eb,l=(_0x255c32,_0x3275b7,_0x284818)=>Bs(_0x255c32,typeof _0x3275b7!=_0x27a911(0x3f9)?_0x3275b7+'':_0x3275b7,_0x284818);import{Disposable as _0xd60028,toDisposable as _0x1726d4,UniverInstanceType as _0x13af1a,Inject as _0x1f782,UserManagerService as _0x21113d,IUniverInstanceService as _0x41d661,createIdentifier as _0x358bbc,DisposableCollection as _0x40c494,IConfigService as _0x5c69d0,ILogService as _0x5e4d90,ISnapshotServerService as _0x3aa0af,RxDisposable as _0xe4c81a,LocaleService as _0x262e83,Injector as _0x55b67e,ILocalStorageService as _0xe4707a,Tools as _0x288a64,ICommandService as _0x22dfc9,JSONX as _0x3d81d5,IPermissionService as _0x1a3671,IUndoRedoService as _0x761a41,sequenceExecute as _0x183dc1,OnLifecycle as _0x5cbde1,LifecycleStages as _0x2af1fa,Optional as _0x275bb1,CommandType as _0x3b3d9c,Rectangle as _0x58a1b2,ThemeService as _0x2fce55,useDependency as _0xf55e15,connectInjector as _0x20fd92,Workbook as _0x3a1fec,textEncoder as _0x408316,b64DecodeUnicode as _0x2e8019,LocalUndoRedoService as _0xba6511,IContextService as _0xf12dbe,COLORS as _0x5c79d7,ColorKit as _0x31f891,isInternalEditorID as _0x154483,Plugin as _0x3a2e62,IAuthzIoService as _0x534d8a,mergeOverrideWithDependencies as _0x11950c,DependentOn as _0x33d520}from'@univerjs/core';import{SheetsSelectionsService as _0x378282,SetSelectionsOperation as _0x3e4a02,InsertSheetMutation as _0x494d53,WorkbookEditablePermission as _0x3665b6,RefRangeService as _0x35deed,EffectRefRangId as _0x27bec1,handleIRemoveRow as _0x23a55f,handleIRemoveCol as _0x58b3d6,handleMoveRange as _0x2abaa2,handleInsertRow as _0x49682a,handleInsertRangeMoveRight as _0x8a8f2b,handleInsertRangeMoveDown as _0x3e0ba6,handleInsertCol as _0x1980aa,handleDeleteRangeMoveUp as _0xa581dc,handleDeleteRangeMoveLeft as _0xed6964,runRefRangeMutations as _0x3a9738,SetWorksheetActivateCommand as _0x320312}from'@univerjs/sheets';import{MessageType as _0x471b9b}from'@univerjs/design';import{IBeforeCloseService as _0xe0324f,IMessageService as _0x3bfc5b,INotificationService as _0x279260,useObservable as _0x44b1fb,BuiltInUIPart as _0x23ba03,IUIPartsService as _0x25177a}from'@univerjs/ui';import{CollaborationEvent as _0xc426c8,parseChangesetToProtocol as _0x1f8cc1,RevisionService as _0x57a9f9,isTransformMutationFailure as _0x21109a,isTransformMutationsWithChangesetSuccess as _0x1707e0,ITransformService as _0x28f8f5,mapDocumentTypeToUniverType as _0x5c4843,isTransformChangesetsSuccess as _0x110469,CompressMutationService as _0x36ba7a,parseProtocolChangeset as _0x9afb39,SnapshotService as _0x507009,isTransformMutationsWithChangesetFailure as _0x1218ba,UniverCollaborationPlugin as _0x4cecce}from'@univerjs-pro/collaboration';import{merge as _0xe2f998,Subject as _0x5a3e6d,BehaviorSubject as _0x3146d9,distinctUntilChanged as _0x2e8f34,fromEvent as _0x4bb1b5,of as _0x4d7b9c,takeUntil as _0x39ba56,debounceTime as _0x416b32,filter as _0x10e932,switchMap as _0x508547,combineLatest as _0x4619fd,shareReplay as _0x551274,mapTo as _0xcaab66,concatMap as _0x4d232f}from'rxjs';import{map as _0x3b7068,takeUntil as _0x1e8d86,take as _0x32697e,filter as _0x22f021,delay as _0x22a006,shareReplay as _0x199d34,switchMap as _0xdffcb3}from'rxjs/operators';import{IMEInputManagerService as _0x3c8bf0,TextSelectionManagerService as _0x1f4972,serializeTextRange as _0x402695,DocStateChangeManagerService as _0x17b017,SetTextSelectionsOperation as _0x5812ee,RichTextEditingMutation as _0x33145a,getDocObject as _0x2c43a1,DocSkeletonManagerService as _0x3159ae}from'@univerjs/docs';import{HTTPService as _0x4c0c53,WebSocketService as _0x370db5,MergeInterceptorFactory as _0x4a8445,HTTPRequest as _0x47bc65,IHTTPImplementation as _0x16c1ea,XHRHTTPImplementation as _0x169803,ThresholdInterceptorFactory as _0x4106bc}from'@univerjs/network';import{ImageSourceType as _0x46b488,ImageUploadStatusType as _0x41e1e4,IImageIoService as _0x37b1ff}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x510d94,serializeRangeWithSheet as _0x344d14}from'@univerjs/engine-formula';import _0x441295 from'lodash/debounce';import{Shape as _0x44a775,Rect as _0x51d98d,Vector2 as _0x37415c,IRenderManagerService as _0x30f264,NodePositionConvertToCursor as _0x4d2c62,getColor as _0x35cbea,TEXT_RANGE_LAYER_INDEX as _0x17f27b,RegularPolygon as _0x897d6}from'@univerjs/engine-render';import{SheetSkeletonManagerService as _0x4bdf5f,VIEWPORT_KEY as _0x3edb69,getCoordByCell as _0xc4fe1,getSheetObject as _0x48b9fd,SheetPermissionInitController as _0x1f4804}from'@univerjs/sheets-ui';import _0x1ce8d0,{forwardRef as _0x3973d9,useRef as _0x330e6d,createElement as _0xa89835}from'react';import _0x18d5cb from'clsx';import{IRemoteInstanceService as _0x4113b5}from'@univerjs/rpc';const zi=_0x27a911(0x31d),Zi='/universer-api/snapshot',Qi=_0x27a911(0x2d5),en=_0x27a911(0x3ad),tn=0x7d0,sn=_0x27a911(0x47a),nn=_0x27a911(0x380),rn='HEARTBEAT_INTERVAL',on=0x7530,bs=_0x27a911(0x3d5),Ts=0x2710,an=_0x27a911(0x2ae),cn=0x4e20,hn='RETRY_CONNECTING_MAX_COUNT',ln=0x3,_n=_0x27a911(0x400),un=0x3e8,dn='COLLAB_SUBMIT_CHANGESET_URL',fn='/universer-api/comb',mn=_0x27a911(0x4b9),gn='/universer-api/oidc/authpage';var Rs=(_0x23a079=>(_0x23a079[_0x23a079[_0x27a911(0x27b)]=0x0]=_0x27a911(0x27b),_0x23a079[_0x23a079['OK']=0x1]='OK',_0x23a079[_0x23a079[_0x27a911(0x409)]=0x2]=_0x27a911(0x409),_0x23a079[_0x23a079[_0x27a911(0x31b)]=0x3]=_0x27a911(0x31b),_0x23a079[_0x23a079[_0x27a911(0x3cd)]=0x4]=_0x27a911(0x3cd),_0x23a079[_0x23a079[_0x27a911(0x441)]=0x5]='UNAUTHENTICATED',_0x23a079[_0x23a079[_0x27a911(0x358)]=0x6]=_0x27a911(0x358),_0x23a079[_0x23a079[_0x27a911(0x1de)]=0x7]=_0x27a911(0x1de),_0x23a079[_0x23a079['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x23a079[_0x23a079['COMPLETION_FINISHED']=0x9]=_0x27a911(0x2bb),_0x23a079[_0x23a079['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x23a079[_0x23a079[_0x27a911(0x491)]=0x1771]=_0x27a911(0x491),_0x23a079[_0x23a079[_0x27a911(0x385)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x23a079[_0x23a079['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x23a079[_0x23a079[_0x27a911(0x1d6)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x23a079[_0x23a079[_0x27a911(0x47b)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x23a079[_0x23a079[_0x27a911(0x277)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x23a079[_0x23a079[_0x27a911(0x44d)]=0x1f41]=_0x27a911(0x44d),_0x23a079[_0x23a079['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x27a911(0x25e),_0x23a079[_0x23a079[_0x27a911(0x4bb)]=0x232a]=_0x27a911(0x4bb),_0x23a079[_0x23a079[_0x27a911(0x475)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x23a079[_0x23a079['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x23a079[_0x23a079[_0x27a911(0x415)]=0x232d]=_0x27a911(0x415),_0x23a079[_0x23a079[_0x27a911(0x31f)]=0x2711]=_0x27a911(0x31f),_0x23a079[_0x23a079[_0x27a911(0x283)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x23a079[_0x23a079[_0x27a911(0x1ee)]=-0x1]='UNRECOGNIZED',_0x23a079))(Rs||{}),H=(_0x3a46ab=>(_0x3a46ab[_0x3a46ab[_0x27a911(0x233)]=0x0]=_0x27a911(0x233),_0x3a46ab[_0x3a46ab[_0x27a911(0x1c4)]=0x1]=_0x27a911(0x1c4),_0x3a46ab[_0x3a46ab[_0x27a911(0x3c2)]=0x2]=_0x27a911(0x3c2),_0x3a46ab[_0x3a46ab[_0x27a911(0x344)]=0x3]=_0x27a911(0x344),_0x3a46ab[_0x3a46ab[_0x27a911(0x1ee)]=-0x1]='UNRECOGNIZED',_0x3a46ab))(H||{}),I=(_0x54661e=>(_0x54661e[_0x54661e[_0x27a911(0x4cf)]=0x0]=_0x27a911(0x4cf),_0x54661e[_0x54661e[_0x27a911(0x201)]=0x1]='HELLO',_0x54661e[_0x54661e[_0x27a911(0x40f)]=0x2]=_0x27a911(0x40f),_0x54661e[_0x54661e[_0x27a911(0x208)]=0x3]=_0x27a911(0x208),_0x54661e[_0x54661e[_0x27a911(0x422)]=0x4]='INGEST',_0x54661e[_0x54661e[_0x27a911(0x3ec)]=0x5]=_0x27a911(0x3ec),_0x54661e[_0x54661e[_0x27a911(0x41d)]=0x6]=_0x27a911(0x41d),_0x54661e[_0x54661e[_0x27a911(0x1ee)]=-0x1]='UNRECOGNIZED',_0x54661e))(I||{}),yt=(_0xcbf1e7=>(_0xcbf1e7[_0xcbf1e7['UNKNOWN_CODE']=0x0]=_0x27a911(0x293),_0xcbf1e7[_0xcbf1e7['OK']=0x1]='OK',_0xcbf1e7[_0xcbf1e7['FAIL']=0x2]=_0x27a911(0x2b0),_0xcbf1e7[_0xcbf1e7[_0x27a911(0x1ee)]=-0x1]=_0x27a911(0x1ee),_0xcbf1e7))(yt||{}),Sn=Object[_0x27a911(0x29f)],vn=Object[_0x27a911(0x330)],pn=(_0x3699d8,_0x1e2234,_0x3fadfa,_0x400650)=>{const _0x2fa8a7=_0x27a911;for(var _0x23ee4d=_0x400650>0x1?void 0x0:_0x400650?vn(_0x1e2234,_0x3fadfa):_0x1e2234,_0x785c16=_0x3699d8[_0x2fa8a7(0x4d3)]-0x1,_0x2c7866;_0x785c16>=0x0;_0x785c16--)(_0x2c7866=_0x3699d8[_0x785c16])&&(_0x23ee4d=(_0x400650?_0x2c7866(_0x1e2234,_0x3fadfa,_0x23ee4d):_0x2c7866(_0x23ee4d))||_0x23ee4d);return _0x400650&&_0x23ee4d&&Sn(_0x1e2234,_0x3fadfa,_0x23ee4d),_0x23ee4d;},Kt=(_0x4eec19,_0x180fea)=>(_0x12037c,_0x2bfbf3)=>_0x180fea(_0x12037c,_0x2bfbf3,_0x4eec19);let ne=class extends _0xd60028{constructor(_0x578401,_0xeeeb1f){const _0xb66e03=_0x27a911;super(),l(this,_0xb66e03(0x3de),new Map()),(this['_univerInstanceService']=_0x578401,this[_0xb66e03(0x3d8)]=_0xeeeb1f,this['disposeWithMe'](_0x1726d4(_0xe2f998(this[_0xb66e03(0x339)][_0xb66e03(0x2e5)](_0x13af1a['UNIVER_SHEET'])[_0xb66e03(0x1a1)](_0x3b7068(_0x3f7927=>_0x3f7927[_0xb66e03(0x2ba)]())),this[_0xb66e03(0x339)]['getTypeOfUnitDisposed$'](_0x13af1a[_0xb66e03(0x1c4)])[_0xb66e03(0x1a1)](_0x3b7068(_0x18904e=>_0x18904e['getUnitId']())),this['_univerInstanceService'][_0xb66e03(0x2e5)](_0x13af1a[_0xb66e03(0x344)])[_0xb66e03(0x1a1)](_0x3b7068(_0x1a7c10=>_0x1a7c10[_0xb66e03(0x2ba)]())))[_0xb66e03(0x307)](_0x4ddc23=>this[_0xb66e03(0x463)](_0x4ddc23)))));}[_0x27a911(0x1e4)](_0x425745){const _0x3504d8=_0x27a911;this[_0x3504d8(0x3d8)][_0x3504d8(0x1e4)](_0x425745);}[_0x27a911(0x3d3)](){const _0x582a34=_0x27a911;return this[_0x582a34(0x3d8)]['getCurrentUser']();}[_0x27a911(0x3d6)](_0x3f4fce,_0xb90a22){const _0x5d3394=_0x27a911;let _0x23a029=this['_roomMembers']['get'](_0x3f4fce);_0x23a029||(_0x23a029=new In(),this[_0x5d3394(0x3de)][_0x5d3394(0x19e)](_0x3f4fce,_0x23a029)),_0x23a029['updateMember'](_0xb90a22);}[_0x27a911(0x3e1)](_0x2a7b00,_0x1f83f0){const _0x325d52=_0x27a911,_0x1d6772=this[_0x325d52(0x3de)]['get'](_0x2a7b00);_0x1d6772&&_0x1d6772[_0x325d52(0x3e1)](_0x1f83f0);}['getRoom'](_0x46f277){const _0x1dd938=_0x27a911;return this[_0x1dd938(0x3de)][_0x1dd938(0x26f)](_0x46f277);}[_0x27a911(0x425)](_0x246166,_0x48bb1c){const _0x39f09a=_0x27a911,_0x5b462d=this['_roomMembers'][_0x39f09a(0x26f)](_0x246166);if(_0x5b462d)return _0x5b462d[_0x39f09a(0x425)](_0x48bb1c);}[_0x27a911(0x463)](_0xfd4cf9){const _0x302523=_0x27a911,_0x2ed979=this['_roomMembers'][_0x302523(0x26f)](_0xfd4cf9);_0x2ed979&&(_0x2ed979[_0x302523(0x4de)](),this[_0x302523(0x3de)][_0x302523(0x21b)](_0xfd4cf9));}['dispose'](){const _0x35dde3=_0x27a911;this['_roomMembers']['forEach'](_0x541e3f=>_0x541e3f[_0x35dde3(0x4de)]()),this['_roomMembers'][_0x35dde3(0x3f4)]();}};ne=pn([Kt(0x0,_0x41d661),Kt(0x1,_0x1f782(_0x21113d))],ne);class In extends _0xd60028{constructor(){const _0x48794e=_0x27a911;super(...arguments),l(this,_0x48794e(0x22b),new Map());}[_0x27a911(0x4de)](){const _0x39074c=_0x27a911;this[_0x39074c(0x22b)][_0x39074c(0x3f4)]();}[_0x27a911(0x3d6)](_0x4feab5){const _0x50428e=_0x27a911;this['_members'][_0x50428e(0x19e)](_0x4feab5['memberID'],_0x4feab5);}[_0x27a911(0x3e1)](_0x575c0c){this['_members']['delete'](_0x575c0c);}['getMember'](_0x20be88){return this['_members']['get'](_0x20be88);}}function En(_0x26305e){const _0xcf4f77=_0x27a911;var _0x293e75,_0x471820,_0x1718df,_0x42698a;const _0x4a40e4=_0x26305e[_0xcf4f77(0x1a7)],_0x3b5729=JSON[_0xcf4f77(0x298)](_0x4a40e4);switch(_0x3b5729[_0xcf4f77(0x1cb)]){case I['HEARTBEAT']:case I[_0xcf4f77(0x201)]:{const _0x28c643=_0x3b5729[_0xcf4f77(0x205)];return{..._0x3b5729,'data':_0x28c643,'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};}case I[_0xcf4f77(0x40f)]:{const _0x2c1f5d=_0x3b5729['joinRsp'];return{..._0x3b5729,'data':_0x2c1f5d,'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};}case I['RECV']:{const _0x29d75d=_0x3b5729['collaMsg'];switch(_0x29d75d[_0xcf4f77(0x35d)]){case _0xc426c8['PERMISSION_REJ']:return{..._0x3b5729,'data':{..._0x29d75d,'data':(_0x293e75=_0x29d75d[_0xcf4f77(0x4dd)])==null?void 0x0:_0x293e75['cs']},'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};case _0xc426c8[_0xcf4f77(0x210)]:return{..._0x3b5729,'data':{..._0x29d75d,'data':(_0x471820=_0x29d75d[_0xcf4f77(0x3fc)])==null?void 0x0:_0x471820['cs']},'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};case _0xc426c8[_0xcf4f77(0x432)]:return{..._0x3b5729,'data':{..._0x29d75d,'data':(_0x1718df=_0x29d75d['newCsEvent'])==null?void 0x0:_0x1718df['cs']},'cmd':_0x3b5729['cmd']};case _0xc426c8[_0xcf4f77(0x1df)]:return{..._0x3b5729,'data':{..._0x29d75d,'data':(_0x42698a=_0x29d75d[_0xcf4f77(0x4d1)])==null?void 0x0:_0x42698a['cs']},'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};case _0xc426c8[_0xcf4f77(0x44f)]:return{..._0x3b5729,'data':{..._0x29d75d,'data':_0x29d75d[_0xcf4f77(0x465)]},'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};case _0xc426c8[_0xcf4f77(0x2c6)]:return{..._0x3b5729,'data':{..._0x29d75d,'data':_0x29d75d[_0xcf4f77(0x49f)]},'cmd':_0x3b5729['cmd']};case _0xc426c8['USERS_LEAVE']:return{..._0x3b5729,'data':{..._0x29d75d,'data':_0x29d75d['leaveEvent']},'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};case _0xc426c8[_0xcf4f77(0x30a)]:return{..._0x3b5729,'data':{..._0x29d75d,'data':_0x29d75d[_0xcf4f77(0x19b)]},'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};case _0xc426c8[_0xcf4f77(0x216)]:case _0xc426c8[_0xcf4f77(0x21d)]:return{..._0x3b5729,'data':{..._0x29d75d,'data':_0x29d75d[_0xcf4f77(0x2ca)]},'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};case _0xc426c8['LIVESHARE_TERMINATE']:return{..._0x3b5729,'data':{..._0x29d75d,'data':_0x29d75d[_0xcf4f77(0x19b)]},'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};case _0xc426c8['MSG_FOR_ERROR']:return{..._0x3b5729,'data':_0x29d75d,'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};case _0xc426c8[_0xcf4f77(0x240)]:return{..._0x3b5729,'data':{..._0x29d75d,'data':_0x29d75d[_0xcf4f77(0x3ac)]},'cmd':_0x3b5729['cmd']};case _0xc426c8[_0xcf4f77(0x438)]:return{..._0x3b5729,'data':{..._0x29d75d,'data':_0x29d75d[_0xcf4f77(0x2ff)]},'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};case _0xc426c8[_0xcf4f77(0x272)]:return{..._0x3b5729,'data':{..._0x29d75d,'data':_0x29d75d[_0xcf4f77(0x22f)]},'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};default:return _0x3b5729;}}default:return _0x3b5729;}}function Cn(_0x1a479e){const _0x35a41f=_0x27a911;switch(_0x1a479e[_0x35a41f(0x1cb)]){case I[_0x35a41f(0x3ec)]:case I[_0x35a41f(0x201)]:return JSON['stringify']({'cmd':_0x1a479e[_0x35a41f(0x1cb)],'routeKey':_0x1a479e[_0x35a41f(0x2e0)]});case I['INGEST']:{let _0x2fbad2;switch(_0x1a479e[_0x35a41f(0x1a7)][_0x35a41f(0x35d)]){case _0xc426c8['UPDATE_CURSOR']:{_0x2fbad2={'eventID':_0xc426c8[_0x35a41f(0x44f)],'updateCursorEvent':_0x1a479e[_0x35a41f(0x1a7)][_0x35a41f(0x1a7)]};break;}case _0xc426c8['USERS_LEAVE']:{_0x2fbad2={'eventID':_0xc426c8[_0x35a41f(0x311)],'leaveEvent':_0x1a479e[_0x35a41f(0x1a7)]['data']};break;}case _0xc426c8['USERS_ENTER']:{_0x2fbad2={'eventID':_0xc426c8[_0x35a41f(0x2c6)],'joinEvent':_0x1a479e['data']['data']};break;}case _0xc426c8['LIVESHARE_NEW_HOST']:{_0x2fbad2={'eventID':_0xc426c8['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x1a479e[_0x35a41f(0x1a7)][_0x35a41f(0x1a7)]};break;}case _0xc426c8[_0x35a41f(0x21d)]:{_0x2fbad2={'eventID':_0xc426c8[_0x35a41f(0x21d)],'liveShareOperation':_0x1a479e[_0x35a41f(0x1a7)][_0x35a41f(0x1a7)]};break;}case _0xc426c8[_0x35a41f(0x2bc)]:{_0x2fbad2={'eventID':_0xc426c8['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x1a479e[_0x35a41f(0x1a7)][_0x35a41f(0x1a7)]};break;}case _0xc426c8[_0x35a41f(0x329)]:{_0x2fbad2={'eventID':_0xc426c8[_0x35a41f(0x329)],'liveShareRequestHost':_0x1a479e[_0x35a41f(0x1a7)]['data']};break;}case _0xc426c8[_0x35a41f(0x216)]:{_0x2fbad2={'eventID':_0xc426c8[_0x35a41f(0x216)]};break;}default:_0x2fbad2={'eventID':_0x1a479e[_0x35a41f(0x1a7)]['eventID']};}return JSON['stringify']({'cmd':_0x1a479e[_0x35a41f(0x1cb)],'routeKey':_0x1a479e[_0x35a41f(0x2e0)],'collaMsg':_0x2fbad2});}case I[_0x35a41f(0x40f)]:return JSON[_0x35a41f(0x4cb)]({'cmd':_0x1a479e[_0x35a41f(0x1cb)],'routeKey':_0x1a479e[_0x35a41f(0x2e0)],'joinReq':_0x1a479e['data']});case I[_0x35a41f(0x208)]:return JSON[_0x35a41f(0x4cb)]({'cmd':_0x1a479e[_0x35a41f(0x1cb)],'routeKey':_0x1a479e[_0x35a41f(0x2e0)],'leaveReq':_0x1a479e[_0x35a41f(0x1a7)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var bn=Object[_0x27a911(0x29f)],Tn=Object['getOwnPropertyDescriptor'],Rn=(_0x188b94,_0xce920b,_0x11ce8f,_0x41de5b)=>{const _0x418752=_0x27a911;for(var _0x502cf5=_0x41de5b>0x1?void 0x0:_0x41de5b?Tn(_0xce920b,_0x11ce8f):_0xce920b,_0x5c54e9=_0x188b94[_0x418752(0x4d3)]-0x1,_0x9b32c9;_0x5c54e9>=0x0;_0x5c54e9--)(_0x9b32c9=_0x188b94[_0x5c54e9])&&(_0x502cf5=(_0x41de5b?_0x9b32c9(_0xce920b,_0x11ce8f,_0x502cf5):_0x9b32c9(_0x502cf5))||_0x502cf5);return _0x41de5b&&_0x502cf5&&bn(_0xce920b,_0x11ce8f,_0x502cf5),_0x502cf5;},Ee=(_0x2f9dfe,_0x3c1bc5)=>(_0x434800,_0x339ce6)=>_0x3c1bc5(_0x434800,_0x339ce6,_0x2f9dfe);const Os=_0x358bbc(_0x27a911(0x3cc));function On(_0x5be852,_0x5aa638,_0x158780){const _0x212e83=_0x27a911;return _0x5be852+'/'+_0x5aa638+'/unit/'+_0x158780+_0x212e83(0x38b);}let gt=class{constructor(_0x47df98,_0x55fc84,_0x365350,_0x5a5222,_0x42c88b){const _0x583321=_0x27a911;this[_0x583321(0x489)]=_0x47df98,this['_ws']=_0x55fc84,this[_0x583321(0x37e)]=_0x365350,this[_0x583321(0x304)]=_0x5a5222,this[_0x583321(0x4a8)]=_0x42c88b;}['createSocket'](_0xfe339d){const _0x190b65=_0x27a911,_0x54fd87=this[_0x190b65(0x389)][_0x190b65(0x1a8)](_0xfe339d);if(!_0x54fd87)throw new Error(_0x190b65(0x48a));const _0x5d9f33=new _0x40c494(),_0xbf454b=new _0x5a3e6d();_0x5d9f33[_0x190b65(0x3cf)](_0x1726d4(_0x54fd87['close$'][_0x190b65(0x307)](_0x977bbb=>_0xbf454b[_0x190b65(0x24a)](_0x977bbb)))),_0x5d9f33[_0x190b65(0x3cf)](_0x1726d4(()=>_0xbf454b[_0x190b65(0x44b)]()));const _0x108eb3=new _0x5a3e6d();_0x5d9f33[_0x190b65(0x3cf)](_0x1726d4(_0x54fd87[_0x190b65(0x418)][_0x190b65(0x307)](_0x226078=>_0x108eb3[_0x190b65(0x24a)](_0x226078)))),_0x5d9f33['add'](_0x1726d4(()=>_0x108eb3[_0x190b65(0x44b)]()));const _0x246124=new _0x5a3e6d();_0x5d9f33[_0x190b65(0x3cf)](_0x1726d4(_0x54fd87[_0x190b65(0x4ad)]['subscribe'](_0x490561=>{const _0x19227b=_0x190b65,_0x120989=En(_0x490561);_0x246124[_0x19227b(0x24a)](_0x120989);}))),_0x5d9f33[_0x190b65(0x3cf)](_0x1726d4(()=>_0x246124[_0x190b65(0x44b)]()));const _0x4223e4=()=>{const _0x51ae96=_0x190b65;_0x108eb3[_0x51ae96(0x24a)](new Event(_0x51ae96(0x30c))),_0xbf454b[_0x51ae96(0x24a)](new CloseEvent(_0x51ae96(0x30c))),_0x372f49[_0x51ae96(0x2ac)]();},_0x372f49={'memberID':'','close$':_0xbf454b[_0x190b65(0x48c)](),'error$':_0x108eb3['asObservable'](),'open$':_0x54fd87['open$'],'message$':_0x246124['asObservable'](),'send':_0x4f7030=>{const _0x1f0c9e=_0x190b65;if(_0x4f7030[_0x1f0c9e(0x1cb)]===I[_0x1f0c9e(0x422)]){if(_0x4f7030[_0x1f0c9e(0x1a7)][_0x1f0c9e(0x35d)]===_0xc426c8[_0x1f0c9e(0x399)]){this[_0x1f0c9e(0x460)](_0x372f49,_0x4f7030['data'])[_0x1f0c9e(0x328)](_0x36c4aa=>{const _0x59cdf5=_0x1f0c9e;this[_0x59cdf5(0x304)][_0x59cdf5(0x388)](_0x36c4aa),_0x4223e4();});return;}if(_0x4f7030[_0x1f0c9e(0x1a7)][_0x1f0c9e(0x35d)]===_0xc426c8[_0x1f0c9e(0x1aa)]){const _0x468114=_0x4f7030[_0x1f0c9e(0x1a7)];this[_0x1f0c9e(0x4db)](_0x468114)[_0x1f0c9e(0x2a6)](_0x5ead56=>{const _0x1dd441=_0x1f0c9e;_0x246124[_0x1dd441(0x24a)]({'cmd':I[_0x1dd441(0x41d)],'code':yt['OK'],'routeKey':_0x468114['data'][_0x1dd441(0x3a7)],'routeType':'','data':{'eventID':_0xc426c8[_0x1dd441(0x4c7)],'data':{'changesets':_0x5ead56}}});})['catch'](_0x571c53=>{const _0x5655ea=_0x1f0c9e;this[_0x5655ea(0x304)][_0x5655ea(0x388)](_0x571c53),_0x4223e4();});return;}}_0x54fd87[_0x1f0c9e(0x39a)](Cn(_0x4f7030));},'close':()=>{const _0x32c6ae=_0x190b65;_0x54fd87[_0x32c6ae(0x2ac)](),_0x5d9f33[_0x32c6ae(0x4de)]();}};return _0x372f49;}async[_0x27a911(0x460)](_0x49598b,_0x32a4be){const _0xca5181=_0x27a911;var _0x5bdc7e;const {unitType:_0x576a97,unitID:_0x22127d,changeset:_0x507e15}=_0x32a4be['data'],_0x1929d6={'unitID':_0x22127d,'memberID':_0x49598b['memberID'],'type':_0x576a97,'changeset':_0x1f8cc1(_0x507e15)},_0x15843d=On((_0x5bdc7e=this['_configService'][_0xca5181(0x406)](dn))!=null?_0x5bdc7e:fn,_0x576a97,_0x22127d);try{await this[_0xca5181(0x489)][_0xca5181(0x472)](_0x15843d,{'body':_0x1929d6});}catch(_0x264360){throw this[_0xca5181(0x304)]['error'](_0xca5181(0x32e),_0xca5181(0x318)),_0x264360;}}async['_fetchMissChangesets'](_0x28bc74){const _0x2e73f2=_0x27a911,{unitID:_0xcc8c47,from:_0x2c7962,to:_0x49ebc8,unitType:_0x30e0c9}=_0x28bc74[_0x2e73f2(0x1a7)];return(await this[_0x2e73f2(0x4a8)][_0x2e73f2(0x247)]({'metadata':void 0x0},{'unitID':_0xcc8c47,'type':_0x30e0c9,'from':_0x2c7962,'to':_0x49ebc8}))[_0x2e73f2(0x3a9)];}};gt=Rn([Ee(0x0,_0x1f782(_0x4c0c53)),Ee(0x1,_0x1f782(_0x370db5)),Ee(0x2,_0x5c69d0),Ee(0x3,_0x5e4d90),Ee(0x4,_0x3aa0af)],gt);class Ds{constructor(){const _0x459bfc=_0x27a911;l(this,_0x459bfc(0x4e1),new _0x5a3e6d()),l(this,'commentUpdate$',this['_commentUpdate$'][_0x459bfc(0x48c)]());}[_0x27a911(0x30d)](_0x5a4b04){const _0x43b2c2=_0x27a911;this[_0x43b2c2(0x4e1)][_0x43b2c2(0x24a)](_0x5a4b04);}}var Dn=Object[_0x27a911(0x29f)],Pn=Object[_0x27a911(0x330)],Ps=(_0x1d8b21,_0x35b17c,_0x17605e,_0x2ea0be)=>{const _0x50e897=_0x27a911;for(var _0x3ed370=_0x2ea0be>0x1?void 0x0:_0x2ea0be?Pn(_0x35b17c,_0x17605e):_0x35b17c,_0x4bc414=_0x1d8b21[_0x50e897(0x4d3)]-0x1,_0x45aa99;_0x4bc414>=0x0;_0x4bc414--)(_0x45aa99=_0x1d8b21[_0x4bc414])&&(_0x3ed370=(_0x2ea0be?_0x45aa99(_0x35b17c,_0x17605e,_0x3ed370):_0x45aa99(_0x3ed370))||_0x3ed370);return _0x2ea0be&&_0x3ed370&&Dn(_0x35b17c,_0x17605e,_0x3ed370),_0x3ed370;},M=(_0x399456,_0x5ef714)=>(_0x23fbec,_0x5a085e)=>_0x5ef714(_0x23fbec,_0x5a085e,_0x399456),de=(_0x3ce5e2=>(_0x3ce5e2[_0x3ce5e2[_0x27a911(0x39f)]=0x0]=_0x27a911(0x39f),_0x3ce5e2[_0x3ce5e2['JOINING']=0x1]=_0x27a911(0x4dc),_0x3ce5e2[_0x3ce5e2[_0x27a911(0x340)]=0x2]=_0x27a911(0x340),_0x3ce5e2[_0x3ce5e2[_0x27a911(0x3e6)]=0x3]='ONLINE',_0x3ce5e2))(de||{});let St=class extends _0xe4c81a{constructor(_0x8fbda7,_0x303b34,_0x3df6f9,_0x399f0f,_0x24ae30,_0x3b8991,_0x529fe9,_0xc633ce,_0x564f39){const _0x3d41dc=_0x27a911;super(),l(this,'_sessionStatus$',new _0x3146d9(0x0)),l(this,_0x3d41dc(0x4a2),this[_0x3d41dc(0x267)]['asObservable']()),l(this,_0x3d41dc(0x453),new _0x5a3e6d()),l(this,_0x3d41dc(0x28f),this['_event$'][_0x3d41dc(0x48c)]()),l(this,'_socket'),l(this,'_socketMessageSubscription'),l(this,'_collaborationTimeoutTimer'),(this['_unitID']=_0x8fbda7,this[_0x3d41dc(0x304)]=_0x3df6f9,this[_0x3d41dc(0x2f8)]=_0x399f0f,this[_0x3d41dc(0x402)]=_0x24ae30,this['_configService']=_0x3b8991,this[_0x3d41dc(0x2e2)]=_0x529fe9,this['_memberService']=_0xc633ce,this[_0x3d41dc(0x46d)]=_0x564f39,_0x303b34[_0x3d41dc(0x1a1)](_0x1e8d86(this[_0x3d41dc(0x1b0)]))[_0x3d41dc(0x307)](_0x3736a5=>{const _0x53c111=_0x3d41dc;var _0x4c9844;typeof _0x3736a5>'u'||(this[_0x53c111(0x397)]=_0x3736a5,_0x3736a5?(this['_joinRoom'](_0x3736a5),this[_0x53c111(0x30b)]=this['_socket']['message$'][_0x53c111(0x307)](_0x185af6=>{const _0x31998a=_0x53c111;_0x185af6[_0x31998a(0x2e0)]===this['_unitID']&&this[_0x31998a(0x363)](_0x185af6);})):(this[_0x53c111(0x267)][_0x53c111(0x24a)](0x2),(_0x4c9844=this['_socketMessageSubscription'])==null||_0x4c9844['unsubscribe'](),this[_0x53c111(0x30b)]=null));}),this[_0x3d41dc(0x3be)](this[_0x3d41dc(0x2f8)][_0x3d41dc(0x270)](()=>{const _0x426225=_0x3d41dc;var _0x142c98;(_0x142c98=this[_0x426225(0x397)])==null||_0x142c98[_0x426225(0x39a)]({'cmd':I[_0x426225(0x208)],'data':{'roomID':this['_unitID']}});})));}get[_0x27a911(0x348)](){const _0x3ed395=_0x27a911;return this[_0x3ed395(0x267)][_0x3ed395(0x45b)]();}[_0x27a911(0x33d)](){const _0x531205=_0x27a911;var _0x52290e,_0x3fa130;return(_0x3fa130=(_0x52290e=this[_0x531205(0x397)])==null?void 0x0:_0x52290e['memberID'])!=null?_0x3fa130:null;}[_0x27a911(0x4de)](){const _0x139715=_0x27a911;super[_0x139715(0x4de)](),this[_0x139715(0x1b0)][_0x139715(0x24a)](),this[_0x139715(0x1b0)][_0x139715(0x44b)]();}[_0x27a911(0x2ac)](){const _0x3b89b7=_0x27a911;var _0x1b4d06,_0x1d53bc;(_0x1b4d06=this[_0x3b89b7(0x397)])==null||_0x1b4d06[_0x3b89b7(0x39a)]({'cmd':I[_0x3b89b7(0x208)],'data':{'roomID':this[_0x3b89b7(0x21f)]}}),this[_0x3b89b7(0x453)][_0x3b89b7(0x44b)](),this[_0x3b89b7(0x267)][_0x3b89b7(0x44b)](),(_0x1d53bc=this[_0x3b89b7(0x397)])==null||_0x1d53bc[_0x3b89b7(0x2ac)](),this['dispose']();}[_0x27a911(0x363)](_0x2edac3){const _0x46caa1=_0x27a911;_0x2edac3['cmd']===I[_0x46caa1(0x40f)]?this[_0x46caa1(0x413)](_0x2edac3):_0x2edac3['cmd']===I['RECV']&&this[_0x46caa1(0x3a1)](_0x2edac3);}[_0x27a911(0x2f5)](_0x16daf9){const _0x479217=_0x27a911;this[_0x479217(0x267)]['next'](0x1),_0x16daf9['send']({'cmd':I[_0x479217(0x40f)],'routeKey':this[_0x479217(0x21f)],'routeType':'','data':{'rooms':[{'roomID':this[_0x479217(0x21f)]}]}});}['_onJoinRoomEvent'](_0x30e11f){const _0xa0e8d9=_0x27a911;var _0x479f83;if(_0x30e11f[_0xa0e8d9(0x37f)]===yt[_0xa0e8d9(0x2b0)]){this[_0xa0e8d9(0x402)][_0xa0e8d9(0x382)]({'type':_0x471b9b['Warning'],'content':this[_0xa0e8d9(0x2e2)]['t'](_0xa0e8d9(0x44a))}),this[_0xa0e8d9(0x267)][_0xa0e8d9(0x24a)](0x2);return;}this[_0xa0e8d9(0x267)][_0xa0e8d9(0x24a)](0x3);const _0x42fcdb=(_0x479f83=_0x30e11f[_0xa0e8d9(0x1a7)][_0xa0e8d9(0x498)][this[_0xa0e8d9(0x21f)]])==null?void 0x0:_0x479f83['members'];_0x42fcdb&&_0x42fcdb[_0xa0e8d9(0x4a1)](_0x376130=>this['_memberService'][_0xa0e8d9(0x3d6)](this[_0xa0e8d9(0x21f)],_0x376130));}[_0x27a911(0x3a1)](_0x3e3c12){const _0x3372f1=_0x27a911;try{const _0x35c4fc=_0x3e3c12[_0x3372f1(0x1a7)];switch(_0x35c4fc[_0x3372f1(0x35d)]){case _0xc426c8['USERS_ENTER']:this['_onUserJoin'](_0x35c4fc),this['_event$']['next'](_0x35c4fc);break;case _0xc426c8[_0x3372f1(0x311)]:this['_onUserLeave'](_0x35c4fc),this['_event$'][_0x3372f1(0x24a)](_0x35c4fc);break;case _0xc426c8[_0x3372f1(0x210)]:this[_0x3372f1(0x248)](),this[_0x3372f1(0x453)]['next'](_0x35c4fc);break;case _0xc426c8[_0x3372f1(0x20d)]:this['_logService'][_0x3372f1(0x388)](_0x3372f1(0x29b)+JSON[_0x3372f1(0x4cb)](_0x35c4fc)),this[_0x3372f1(0x453)]['next'](_0x35c4fc);break;case _0xc426c8[_0x3372f1(0x240)]:this[_0x3372f1(0x46d)][_0x3372f1(0x30d)](_0x35c4fc[_0x3372f1(0x1a7)]),this['_event$'][_0x3372f1(0x24a)](_0x35c4fc);break;default:this[_0x3372f1(0x453)][_0x3372f1(0x24a)](_0x35c4fc);}}catch(_0x251292){this[_0x3372f1(0x304)][_0x3372f1(0x388)](_0x251292,_0x3e3c12);}}[_0x27a911(0x2dc)](_0x4249e1){const _0x41b15e=_0x27a911;this[_0x41b15e(0x371)][_0x41b15e(0x3d6)](this[_0x41b15e(0x21f)],_0x4249e1[_0x41b15e(0x1a7)]);}[_0x27a911(0x20f)](_0x64508e){const _0x98a8f3=_0x27a911;this['_memberService'][_0x98a8f3(0x3e1)](this[_0x98a8f3(0x21f)],_0x64508e['data']['memberID']);}async[_0x27a911(0x39a)](_0x4cd93c,_0x340e7f){const _0x2ce233=_0x27a911;if(this[_0x2ce233(0x348)]!==0x3||!this[_0x2ce233(0x397)])throw new Error(_0x2ce233(0x3ba));try{_0x4cd93c[_0x2ce233(0x35d)]===_0xc426c8[_0x2ce233(0x432)]&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x2ce233(0x397)][_0x2ce233(0x39a)]({'cmd':I[_0x2ce233(0x422)],'routeKey':_0x340e7f,'routeType':'','data':_0x4cd93c});}catch(_0x288de9){this[_0x2ce233(0x304)][_0x2ce233(0x388)](_0x288de9);}}[_0x27a911(0x4c8)](){const _0x40b489=_0x27a911;var _0x266596;this[_0x40b489(0x3fb)]=window[_0x40b489(0x253)](()=>{const _0x46bdd0=_0x40b489;this[_0x46bdd0(0x3fb)]=null,this[_0x46bdd0(0x402)][_0x46bdd0(0x382)]({'type':_0x471b9b[_0x46bdd0(0x3f0)],'content':this[_0x46bdd0(0x2e2)]['t'](_0x46bdd0(0x21a))});},(_0x266596=this[_0x40b489(0x37e)][_0x40b489(0x406)](bs))!=null?_0x266596:Ts);}[_0x27a911(0x248)](){const _0x4705e8=_0x27a911;this[_0x4705e8(0x3fb)]&&(clearTimeout(this[_0x4705e8(0x3fb)]),this[_0x4705e8(0x3fb)]=null);}};St=Ps([M(0x2,_0x5e4d90),M(0x3,_0xe0324f),M(0x4,_0x3bfc5b),M(0x5,_0x5c69d0),M(0x6,_0x1f782(_0x262e83)),M(0x7,_0x1f782(ne)),M(0x8,_0x1f782(Ds))],St);function _0x5bd0(_0x5063fc,_0x201675){const _0x58ce2c=_0x58ce();return _0x5bd0=function(_0x5bd05a,_0x516154){_0x5bd05a=_0x5bd05a-0x198;let _0x5d9d89=_0x58ce2c[_0x5bd05a];return _0x5d9d89;},_0x5bd0(_0x5063fc,_0x201675);}let ge=class extends _0xd60028{constructor(_0xffefba,_0x302e57,_0x327067,_0x3c2736,_0x44ec2b,_0x2d5f81){const _0x5b0870=_0x27a911;super(),l(this,_0x5b0870(0x45a),new _0x3146d9(void 0x0)),l(this,'_sessions',new Map()),l(this,'_status$',new _0x3146d9(0x0)),l(this,_0x5b0870(0x4a5),this[_0x5b0870(0x1f4)][_0x5b0870(0x48c)]()),l(this,_0x5b0870(0x430),!0x1),l(this,'_sendHeartbeatTimer'),l(this,_0x5b0870(0x2a8)),l(this,_0x5b0870(0x4d5)),l(this,_0x5b0870(0x1a3),0x0),(this[_0x5b0870(0x43e)]=_0xffefba,this['_localeService']=_0x302e57,this[_0x5b0870(0x402)]=_0x327067,this[_0x5b0870(0x304)]=_0x3c2736,this[_0x5b0870(0x37e)]=_0x44ec2b,this[_0x5b0870(0x2ed)]=_0x2d5f81);}get[_0x27a911(0x397)](){const _0x2c34fa=_0x27a911;return this[_0x2c34fa(0x45a)][_0x2c34fa(0x45b)]();}[_0x27a911(0x4de)](){const _0x154f3a=_0x27a911;super['dispose'](),this[_0x154f3a(0x232)]['forEach'](_0x5b799f=>_0x5b799f[_0x154f3a(0x4de)]()),this[_0x154f3a(0x232)][_0x154f3a(0x3f4)](),this[_0x154f3a(0x1f4)][_0x154f3a(0x44b)]();}async['requireSession'](_0x28252a){const _0x19931e=_0x27a911;if(this['_sessions'][_0x19931e(0x496)](_0x28252a))return this['_sessions'][_0x19931e(0x26f)](_0x28252a);this['_tryEnsureSocket']();const _0x4e833d=this[_0x19931e(0x43e)][_0x19931e(0x1ce)](St,_0x28252a,this[_0x19931e(0x45a)][_0x19931e(0x48c)]());return this['_sessions'][_0x19931e(0x19e)](_0x28252a,_0x4e833d),_0x4e833d;}[_0x27a911(0x3b2)](_0x1b2c0e){const _0x5b8009=_0x27a911;var _0x3eebb6;const _0x1d0d9b=this[_0x5b8009(0x232)]['get'](_0x1b2c0e);_0x1d0d9b&&(this[_0x5b8009(0x232)][_0x5b8009(0x21b)](_0x1b2c0e),_0x1d0d9b['close']()),this['_sessions']['size']||(_0x3eebb6=this[_0x5b8009(0x397)])==null||_0x3eebb6['close']();}[_0x27a911(0x480)](){const _0x18c65e=_0x27a911;var _0x587865;const _0xaebc43=(_0x587865=this[_0x18c65e(0x37e)][_0x18c65e(0x406)](sn))!=null?_0x587865:nn;return this[_0x18c65e(0x2ed)]['createSocket'](_0xaebc43);}['_tryEnsureSocket'](){const _0x976fa0=_0x27a911;try{const _0x3fc092=this[_0x976fa0(0x480)]();if(_0x3fc092){const _0xf5ccbc=_0x3fc092['send'];_0x3fc092['send']=_0x4cca1a=>(this[_0x976fa0(0x206)](),_0xf5ccbc['apply'](_0x3fc092,[_0x4cca1a])),_0x3fc092['message$'][_0x976fa0(0x307)](_0x1b2a39=>this[_0x976fa0(0x2c7)](_0x3fc092,_0x1b2a39)),_0x3fc092[_0x976fa0(0x418)][_0x976fa0(0x1a1)](_0x32697e(0x1))['subscribe'](_0x405a79=>this[_0x976fa0(0x304)][_0x976fa0(0x388)](_0x976fa0(0x24e),_0x405a79)),_0x3fc092[_0x976fa0(0x401)][_0x976fa0(0x1a1)](_0x32697e(0x1))['subscribe'](()=>{const _0x450838=_0x976fa0;this[_0x450838(0x1e2)](_0x3fc092);}),_0x3fc092[_0x976fa0(0x294)][_0x976fa0(0x1a1)](_0x32697e(0x1))['subscribe'](_0xa0b220=>{const _0x46760e=_0x976fa0;this[_0x46760e(0x304)][_0x46760e(0x4bd)](_0x46760e(0x47c),_0x46760e(0x392),_0xa0b220),this['_onConnectionFailed']();});}}catch(_0x36f400){this[_0x976fa0(0x304)][_0x976fa0(0x388)](_0x36f400),this[_0x976fa0(0x2d6)]();}}[_0x27a911(0x1e2)](_0x4fe0fc){const _0x40a0b8=_0x27a911;this[_0x40a0b8(0x304)][_0x40a0b8(0x4bd)](_0x40a0b8(0x47c),_0x40a0b8(0x3e0)),_0x4fe0fc['send']({'cmd':I[_0x40a0b8(0x201)]}),this[_0x40a0b8(0x206)]();}[_0x27a911(0x2d6)](){const _0xa711c=_0x27a911;var _0x3206b1;this[_0xa711c(0x1f4)]['next'](0x2),this['_socket$'][_0xa711c(0x24a)](null),this[_0xa711c(0x33e)](),this[_0xa711c(0x220)](),this[_0xa711c(0x430)]=!0x1,this['_retryCount']<((_0x3206b1=this['_configService']['getConfig'](hn))!=null?_0x3206b1:ln)?(this[_0xa711c(0x349)](this[_0xa711c(0x1a3)]),this[_0xa711c(0x1a3)]+=0x1):this['_messageService'][_0xa711c(0x382)]({'type':_0x471b9b[_0xa711c(0x3f0)],'content':this['_localeService']['t']('session.connection-failed')});}[_0x27a911(0x349)](_0x1518ea){const _0x54f6e8=_0x27a911;var _0x3245fb;const _0x47500c=((_0x3245fb=this['_configService']['getConfig'](an))!=null?_0x3245fb:cn)*0x2**_0x1518ea;this[_0x54f6e8(0x402)][_0x54f6e8(0x382)]({'type':_0x471b9b[_0x54f6e8(0x467)],'content':this[_0x54f6e8(0x2e2)]['t'](_0x54f6e8(0x1e1))}),this['_retryConnectingTimer']=setTimeout(()=>{const _0x595b55=_0x54f6e8;this[_0x595b55(0x45c)](),clearTimeout(this['_retryConnectingTimer']),this[_0x595b55(0x4d5)]=null;},_0x47500c);}[_0x27a911(0x206)](){const _0xe1f5f7=_0x27a911;var _0x4954c0;this[_0xe1f5f7(0x220)](),this[_0xe1f5f7(0x442)]=setTimeout(()=>this[_0xe1f5f7(0x256)](),(_0x4954c0=this['_configService'][_0xe1f5f7(0x406)](rn))!=null?_0x4954c0:on);}[_0x27a911(0x256)](){const _0x55d667=_0x27a911;this[_0x55d667(0x397)][_0x55d667(0x39a)]({'cmd':I[_0x55d667(0x3ec)]}),this[_0x55d667(0x317)]();}[_0x27a911(0x317)](){const _0x580f31=_0x27a911;var _0x12a213;this[_0x580f31(0x2a8)]=setTimeout(()=>this[_0x580f31(0x2d6)](),(_0x12a213=this[_0x580f31(0x37e)][_0x580f31(0x406)](bs))!=null?_0x12a213:Ts);}['_onMessage'](_0x573cd6,_0x57547c){const _0x3900bd=_0x27a911,{cmd:_0x27f13e}=_0x57547c;_0x27f13e===I[_0x3900bd(0x201)]&&!this[_0x3900bd(0x430)]&&(_0x573cd6[_0x3900bd(0x3f2)]=_0x57547c[_0x3900bd(0x1a7)][_0x3900bd(0x3f2)],this[_0x3900bd(0x45a)][_0x3900bd(0x24a)](_0x573cd6),this[_0x3900bd(0x1f4)][_0x3900bd(0x24a)](0x3),this[_0x3900bd(0x430)]=!0x0),_0x27f13e===I['HEARTBEAT']&&this[_0x3900bd(0x33e)](),this['_rescheduleHeartbeatEvent']();}[_0x27a911(0x220)](){const _0x4baf64=_0x27a911;this[_0x4baf64(0x442)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x4baf64(0x442)]=null);}['_clearTimeoutTimer'](){const _0x3053c6=_0x27a911;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x3053c6(0x2a8)]),this['_timeoutTimer']=null);}};ge=Ps([M(0x0,_0x1f782(_0x55b67e)),M(0x1,_0x1f782(_0x262e83)),M(0x2,_0x3bfc5b),M(0x3,_0x5e4d90),M(0x4,_0x5c69d0),M(0x5,Os)],ge);var wn=Object[_0x27a911(0x29f)],Nn=Object[_0x27a911(0x330)],Mn=(_0x51266d,_0x390c2a,_0x5921a4,_0x53e848)=>{const _0x4304c3=_0x27a911;for(var _0x5833a8=_0x53e848>0x1?void 0x0:_0x53e848?Nn(_0x390c2a,_0x5921a4):_0x390c2a,_0x521074=_0x51266d[_0x4304c3(0x4d3)]-0x1,_0x58f1c4;_0x521074>=0x0;_0x521074--)(_0x58f1c4=_0x51266d[_0x521074])&&(_0x5833a8=(_0x53e848?_0x58f1c4(_0x390c2a,_0x5921a4,_0x5833a8):_0x58f1c4(_0x5833a8))||_0x5833a8);return _0x53e848&&_0x5833a8&&wn(_0x390c2a,_0x5921a4,_0x5833a8),_0x5833a8;},Ce=(_0x37efe5,_0x3fb689)=>(_0x466a53,_0x517fc1)=>_0x3fb689(_0x466a53,_0x517fc1,_0x37efe5);let D=class extends _0xd60028{constructor(_0x31584d,_0x458722,_0x42810d,_0x48ffdc,_0x235ada){const _0x37b148=_0x27a911;super(),l(this,_0x37b148(0x3d1),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x37b148(0x251),!0x1),(this[_0x37b148(0x37e)]=_0x31584d,this['_localStorageService']=_0x458722,this['_beforeCloseService']=_0x42810d,this['_localeService']=_0x48ffdc,this[_0x37b148(0x22a)]=_0x235ada,this[_0x37b148(0x3d9)]());}[_0x27a911(0x3e5)](){const _0x330c8e=_0x27a911;this[_0x330c8e(0x251)]=!0x0;}[_0x27a911(0x3c5)](){const _0x36d255=_0x27a911;this[_0x36d255(0x251)]=!0x1;}[_0x27a911(0x4de)](){const _0x15dad1=_0x27a911;this[_0x15dad1(0x46e)]()[_0x15dad1(0x2a6)](()=>super[_0x15dad1(0x4de)]());}async[_0x27a911(0x237)](_0x178f0a){const _0x4c4238=_0x27a911;return this[_0x4c4238(0x251)]?null:this['_localStorageService']['getItem'](Xt(_0x178f0a));}async[_0x27a911(0x457)](_0x21a935,_0x3837c2){return!!this['_localStorageService']['setItem'](_0x21a935,_0x3837c2);}[_0x27a911(0x198)](_0x1b22f2,_0x325746,_0x2d7711,_0x49c214){const _0x4c916b=_0x27a911,_0x3d6855=this[_0x4c916b(0x22a)][_0x4c916b(0x45d)](_0x1b22f2);this['_cachedData'][_0x4c916b(0x19e)](_0x1b22f2,{'unitID':_0x1b22f2,'type':_0x325746,'awaitingChangeset':_0x2d7711,'mutations':_0x49c214,'rev':_0x3d6855}),this[_0x4c916b(0x1b7)][_0x4c916b(0x496)](_0x1b22f2)||this['_scheduleSaving'](_0x1b22f2);}[_0x27a911(0x383)](_0x40051e){const _0x1a723f=_0x27a911,_0x50c064=this[_0x1a723f(0x23e)]();_0x50c064===0x0?this[_0x1a723f(0x4b8)](_0x40051e):this[_0x1a723f(0x1b7)]['set'](_0x40051e,setTimeout(()=>this[_0x1a723f(0x4b8)](_0x40051e),_0x50c064));}[_0x27a911(0x23e)](){const _0x426961=_0x27a911;var _0x1b726d;return(_0x1b726d=this['_configService'][_0x426961(0x406)](_n))!=null?_0x1b726d:un;}['_saveCache'](_0x8f6cc1){const _0xd4a801=_0x27a911,_0x529c87=this[_0xd4a801(0x1b7)][_0xd4a801(0x26f)](_0x8f6cc1);return _0x529c87!==void 0x0&&window[_0xd4a801(0x273)](_0x529c87),this[_0xd4a801(0x469)][_0xd4a801(0x2cd)](Xt(_0x8f6cc1),this['_cachedData']['get'](_0x8f6cc1))[_0xd4a801(0x2a6)](()=>this['_saveTaskMap'][_0xd4a801(0x21b)](_0x8f6cc1));}async[_0x27a911(0x46e)](){const _0x200910=_0x27a911,_0x1bf83f=[];this['_saveTaskMap'][_0x200910(0x4a1)]((_0x358bf7,_0x4ba845)=>{const _0x1900ca=_0x200910;window[_0x1900ca(0x273)](_0x358bf7),_0x1bf83f[_0x1900ca(0x477)](this[_0x1900ca(0x4b8)](_0x4ba845)[_0x1900ca(0x2a6)](()=>{const _0x1d7c36=_0x1900ca;this[_0x1d7c36(0x1b7)][_0x1d7c36(0x21b)](_0x4ba845);}));}),await Promise[_0x200910(0x4c5)](_0x1bf83f);}[_0x27a911(0x3d9)](){const _0x2122cd=_0x27a911;this[_0x2122cd(0x3be)](this[_0x2122cd(0x2f8)][_0x2122cd(0x44e)](()=>{const _0x1793b7=_0x2122cd;if(this[_0x1793b7(0x1b7)][_0x1793b7(0x1bd)])return this[_0x1793b7(0x2e2)]['t'](_0x1793b7(0x34e));}));}};D=Mn([Ce(0x0,_0x5c69d0),Ce(0x1,_0xe4707a),Ce(0x2,_0xe0324f),Ce(0x3,_0x1f782(_0x262e83)),Ce(0x4,_0x1f782(_0x57a9f9))],D);function Xt(_0x12d1c3){const _0x542d08=_0x27a911;return _0x542d08(0x33a)+_0x12d1c3;}const et=_0x358bbc('univer-pro.collaboration-client.single-active-unit-service');var ws=(_0x51d959=>(_0x51d959[_0x51d959[_0x27a911(0x3fd)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x51d959[_0x51d959[_0x27a911(0x27f)]=0x1]=_0x27a911(0x27f),_0x51d959))(ws||{});const Jt=0x7530,qt=_0x27a911(0x24b);class An extends _0xd60028{constructor(){const _0x899fa3=_0x27a911;super(),l(this,_0x899fa3(0x362),_0x288a64[_0x899fa3(0x376)]()),l(this,_0x899fa3(0x31a),new Set()),l(this,_0x899fa3(0x468),new Map()),l(this,'_heartbeatTimer',null),l(this,_0x899fa3(0x48d),new Map()),l(this,_0x899fa3(0x2a5),new Map()),this[_0x899fa3(0x1f7)]();}['dispose'](){const _0x411dcf=_0x27a911;super['dispose'](),this[_0x411dcf(0x48d)][_0x411dcf(0x4a1)]((_0x44ff77,_0xc9fb2e)=>this[_0x411dcf(0x1d7)](_0xc9fb2e)),this['_heartbeatTimer']&&window[_0x411dcf(0x24f)](this[_0x411dcf(0x24d)]);}['getUnitStatus$'](_0x447458){return this['_ensureSubject'](_0x447458)['pipe'](_0x2e8f34());}[_0x27a911(0x1ad)](_0x1b2661){const _0x2cda0c=_0x27a911;this[_0x2cda0c(0x31a)]['size']===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs']['add'](_0x1b2661),this['_send']({'type':0x0,'memberID':this[_0x2cda0c(0x362)],'unitIDs':[_0x1b2661],'isForwarded':!0x1});}[_0x27a911(0x4b7)](_0x3ce87a){const _0xe9d2d9=_0x27a911;this[_0xe9d2d9(0x31a)][_0xe9d2d9(0x21b)](_0x3ce87a),this[_0xe9d2d9(0x31a)][_0xe9d2d9(0x1bd)]===0x0&&this[_0xe9d2d9(0x24d)]&&window[_0xe9d2d9(0x24f)](this[_0xe9d2d9(0x24d)]);}['_init'](){const _0x1c9753=_0x27a911;this[_0x1c9753(0x3be)](_0x1726d4(_0x4bb1b5(window,_0x1c9753(0x394))[_0x1c9753(0x307)](_0x22b7db=>{const _0x3475c5=_0x1c9753;if(_0x22b7db[_0x3475c5(0x370)]!==qt||!_0x22b7db[_0x3475c5(0x2f4)])return;const _0x1ae83e=JSON[_0x3475c5(0x298)](_0x22b7db['newValue']);this['_handleEvent'](_0x1ae83e);}))),window[_0x1c9753(0x28a)](_0x1c9753(0x3fe),()=>this[_0x1c9753(0x354)]({'type':0x1,'memberID':this[_0x1c9753(0x362)],'unitIDs':Array[_0x1c9753(0x252)](this[_0x1c9753(0x31a)])}));}['_handleEvent'](_0x9b9ca5){const _0x3ba05f=_0x27a911;switch(_0x9b9ca5['type']){case 0x0:this['_handleJoinEvent'](_0x9b9ca5);break;case 0x1:this[_0x3ba05f(0x4c9)](_0x9b9ca5);break;case 0x2:this[_0x3ba05f(0x48e)](_0x9b9ca5);break;}}[_0x27a911(0x2cf)](_0x226d81){const _0x1db348=_0x27a911,{unitIDs:_0x6856a6,memberID:_0x442f7a,isForwarded:_0x57b487}=_0x226d81;_0x6856a6[_0x1db348(0x4a1)](_0x9bb80d=>{const _0x38853f=_0x1db348;if(!_0x57b487&&this[_0x38853f(0x468)][_0x38853f(0x496)](_0x9bb80d)&&this[_0x38853f(0x3f1)](_0x9bb80d)[_0x38853f(0x24a)](0x1),!this[_0x38853f(0x468)]['has'](_0x9bb80d)||!this[_0x38853f(0x468)][_0x38853f(0x26f)](_0x9bb80d)['has'](_0x442f7a)){const _0x2826eb=this[_0x38853f(0x468)]['get'](_0x9bb80d)||new Set();_0x2826eb[_0x38853f(0x3cf)](_0x442f7a),this[_0x38853f(0x468)][_0x38853f(0x19e)](_0x9bb80d,_0x2826eb),this['_scheduleClearOtherTimer'](_0x442f7a);}}),_0x57b487||this['_send']({'type':0x0,'memberID':this[_0x1db348(0x362)],'unitIDs':[...this[_0x1db348(0x31a)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x12a42b){const _0x187bac=_0x27a911;this[_0x187bac(0x1d7)](_0x12a42b);const _0x3fe0dc=window[_0x187bac(0x253)](()=>{const _0x29b008=_0x187bac;this[_0x29b008(0x468)][_0x29b008(0x4a1)](_0x512ff1=>{const _0x177aee=_0x29b008;_0x512ff1[_0x177aee(0x21b)](_0x12a42b);});},Jt*0x2);this[_0x187bac(0x48d)][_0x187bac(0x19e)](_0x12a42b,_0x3fe0dc);}[_0x27a911(0x1d7)](_0x28fbd3){const _0x426a6f=_0x27a911;if(this[_0x426a6f(0x48d)][_0x426a6f(0x496)](_0x28fbd3)){const _0x89c35d=this[_0x426a6f(0x48d)][_0x426a6f(0x26f)](_0x28fbd3);_0x89c35d&&window[_0x426a6f(0x273)](_0x89c35d),this[_0x426a6f(0x48d)]['set'](_0x28fbd3,null);}}[_0x27a911(0x4c9)](_0x28efe0){const _0x3d412a=_0x27a911,{memberID:_0x18170e,unitIDs:_0x200af6}=_0x28efe0;_0x200af6[_0x3d412a(0x4a1)](_0xf7eb53=>{const _0x4baa8b=_0x3d412a;var _0x36fa4d;const _0x3a64a2=this[_0x4baa8b(0x468)][_0x4baa8b(0x26f)](_0xf7eb53);_0x3a64a2&&(_0x3a64a2[_0x4baa8b(0x21b)](_0x18170e),(_0x36fa4d=this[_0x4baa8b(0x3f1)](_0xf7eb53))==null||_0x36fa4d['next'](_0x3a64a2[_0x4baa8b(0x1bd)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x18170e);}['_handleHeartbeatEvent'](_0x109e02){const _0x55a8f9=_0x27a911;this[_0x55a8f9(0x3b1)](_0x109e02[_0x55a8f9(0x3f2)]);}[_0x27a911(0x354)](_0x146a05){const _0xa43a6b=_0x27a911;localStorage[_0xa43a6b(0x2cd)](qt,JSON[_0xa43a6b(0x4cb)](_0x146a05));}['_scheduleHeartbeat'](){const _0xf41bfb=_0x27a911;this[_0xf41bfb(0x24d)]=window[_0xf41bfb(0x374)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},Jt);}['_ensureSubject'](_0x2dadde){const _0x25cb8f=_0x27a911;return this['_unitStatus'][_0x25cb8f(0x496)](_0x2dadde)||this[_0x25cb8f(0x2a5)][_0x25cb8f(0x19e)](_0x2dadde,new _0x3146d9(0x0)),this[_0x25cb8f(0x2a5)][_0x25cb8f(0x26f)](_0x2dadde);}}var yn=Object['defineProperty'],Un=Object[_0x27a911(0x330)],Ln=(_0x3dc33e,_0x1cef3c,_0x50e114,_0x563f04)=>{for(var _0x2d75c1=_0x563f04>0x1?void 0x0:_0x563f04?Un(_0x1cef3c,_0x50e114):_0x1cef3c,_0x2dd493=_0x3dc33e['length']-0x1,_0x56d6e0;_0x2dd493>=0x0;_0x2dd493--)(_0x56d6e0=_0x3dc33e[_0x2dd493])&&(_0x2d75c1=(_0x563f04?_0x56d6e0(_0x1cef3c,_0x50e114,_0x2d75c1):_0x56d6e0(_0x2d75c1))||_0x2d75c1);return _0x563f04&&_0x2d75c1&&yn(_0x1cef3c,_0x50e114,_0x2d75c1),_0x2d75c1;},zt=(_0x17e32c,_0x1052d3)=>(_0xc97c2,_0x3274fa)=>_0x1052d3(_0xc97c2,_0x3274fa,_0x17e32c);let Xe=class{constructor(_0x7624a7,_0x475ae5){const _0x159ab4=_0x27a911;this[_0x159ab4(0x43e)]=_0x7624a7,this[_0x159ab4(0x288)]=_0x475ae5;}[_0x27a911(0x2fe)](_0x39eada){const _0x182b8b=_0x27a911;this[_0x182b8b(0x49a)](_0x39eada),this[_0x182b8b(0x393)](_0x39eada);}['transformRemoteChangeset'](_0x7aa6ff){const _0xb09422=_0x27a911,_0x4aacd5=this[_0xb09422(0x43e)][_0xb09422(0x26f)](_0x3c8bf0),{redoCache:_0x5bd1fd}=_0x4aacd5[_0xb09422(0x319)]();if(_0x5bd1fd['length']===0x0)return _0x7aa6ff;let _0x396698=_0x288a64['deepClone'](_0x7aa6ff['mutations'][0x0]);for(let _0x5c9006=0x0;_0x5c9006<_0x5bd1fd['length'];_0x5c9006++){const _0x1e24f5={'id':'doc.mutation.rich-text-editing','params':{..._0x5bd1fd[_0x5c9006]}},_0x253200=this[_0xb09422(0x288)][_0xb09422(0x360)](_0x396698,_0x1e24f5,!0x1);if(_0x21109a(_0x253200))throw _0x253200['error'];_0x396698=_0x253200[_0xb09422(0x238)];}return{..._0x288a64['deepClone'](_0x7aa6ff),'mutations':[_0x396698]};}[_0x27a911(0x49a)](_0x24f754){const _0x1fc647=_0x27a911,_0x2181fd=this[_0x1fc647(0x43e)][_0x1fc647(0x26f)](_0x3c8bf0),{undoCache:_0x31b12f,redoCache:_0x12ce3d}=_0x2181fd['getUndoRedoMutationParamsCache']();if(_0x31b12f[_0x1fc647(0x4d3)]===0x0||_0x12ce3d[_0x1fc647(0x4d3)]===0x0)return;const _0x47ee42=[],_0x454538=[];let _0x4ec4dd=_0x288a64[_0x1fc647(0x4ce)](_0x24f754[_0x1fc647(0x1d2)][0x0]),_0x2ffe21=_0x288a64['deepClone'](_0x24f754[_0x1fc647(0x1d2)][0x0]);for(let _0x183cc1=_0x31b12f[_0x1fc647(0x4d3)]-0x1;_0x183cc1>=0x0;_0x183cc1--){const _0x36c027={'id':_0x1fc647(0x448),'params':{..._0x31b12f[_0x183cc1]}},_0xf4f325={'id':_0x1fc647(0x448),'params':{..._0x12ce3d[_0x183cc1]}},_0x3dcdcf=this[_0x1fc647(0x288)][_0x1fc647(0x360)](_0x4ec4dd,_0x36c027,!0x1),_0x12620d=this[_0x1fc647(0x288)]['transformMutation'](_0x2ffe21,_0xf4f325,!0x1);if(_0x21109a(_0x3dcdcf))throw _0x3dcdcf[_0x1fc647(0x388)];if(_0x21109a(_0x12620d))throw _0x12620d[_0x1fc647(0x388)];_0x47ee42[_0x1fc647(0x1f2)](_0x3dcdcf['m2Prime'][_0x1fc647(0x26a)]),_0x454538[_0x1fc647(0x1f2)](_0x12620d[_0x1fc647(0x2d4)]['params']),_0x4ec4dd=_0x3dcdcf[_0x1fc647(0x238)],_0x2ffe21=_0x12620d[_0x1fc647(0x238)];}_0x2181fd[_0x1fc647(0x387)]({'undoCache':_0x47ee42,'redoCache':_0x454538});}[_0x27a911(0x393)](_0x4fba77){const _0x5b38d9=_0x27a911,_0x49b499=this[_0x5b38d9(0x43e)]['get'](_0x3c8bf0),_0x3dc785=_0x49b499['getActiveRange']();if(_0x3dc785==null)return;const _0x263459=[{'id':_0x5b38d9(0x448),'params':{'unitId':_0x4fba77[_0x5b38d9(0x3a7)],'actions':null,'textRanges':[_0x3dc785]}}],_0x359d88=this[_0x5b38d9(0x288)][_0x5b38d9(0x2be)](_0x4fba77,_0x263459);if(!_0x1707e0(_0x359d88))throw _0x359d88[_0x5b38d9(0x388)];const _0x575595=_0x359d88[_0x5b38d9(0x2d4)][0x0][_0x5b38d9(0x26a)][_0x5b38d9(0x23a)];Array[_0x5b38d9(0x3f8)](_0x575595)&&_0x575595[_0x5b38d9(0x4d3)]&&_0x49b499[_0x5b38d9(0x473)](_0x575595[0x0]);}};Xe=Ln([zt(0x0,_0x1f782(_0x55b67e)),zt(0x1,_0x28f8f5)],Xe);var $n=Object[_0x27a911(0x29f)],jn=Object[_0x27a911(0x330)],Hn=(_0x41a498,_0x372086,_0x2d5280,_0xf28290)=>{for(var _0x3afddd=_0xf28290>0x1?void 0x0:_0xf28290?jn(_0x372086,_0x2d5280):_0x372086,_0x2e17d7=_0x41a498['length']-0x1,_0x1cd01d;_0x2e17d7>=0x0;_0x2e17d7--)(_0x1cd01d=_0x41a498[_0x2e17d7])&&(_0x3afddd=(_0xf28290?_0x1cd01d(_0x372086,_0x2d5280,_0x3afddd):_0x1cd01d(_0x3afddd))||_0x3afddd);return _0xf28290&&_0x3afddd&&$n(_0x372086,_0x2d5280,_0x3afddd),_0x3afddd;},Zt=(_0x38df66,_0x19d783)=>(_0x600fcb,_0x4780d8)=>_0x19d783(_0x600fcb,_0x4780d8,_0x38df66);let Je=class{constructor(_0x54eaff,_0x1edcc3){const _0x5a73af=_0x27a911;this[_0x5a73af(0x43e)]=_0x54eaff,this[_0x5a73af(0x288)]=_0x1edcc3;}['transformSelections'](_0x317020){const _0x495e2a=_0x27a911;var _0x46bbf6;const _0x200d8f=this[_0x495e2a(0x43e)][_0x495e2a(0x26f)](_0x1f4972),_0xf27de6=(_0x46bbf6=_0x200d8f[_0x495e2a(0x3c8)]())!=null?_0x46bbf6:[],_0x1f75fd=_0xf27de6==null?void 0x0:_0xf27de6[_0x495e2a(0x231)](_0x402695);if(_0x1f75fd[_0x495e2a(0x4d3)]===0x0)return;const _0x357329=[{'id':_0x495e2a(0x448),'params':{'unitId':_0x317020[_0x495e2a(0x3a7)],'actions':null,'textRanges':_0x1f75fd}}],_0x5332de=this[_0x495e2a(0x288)][_0x495e2a(0x2be)](_0x317020,_0x357329);if(!_0x1707e0(_0x5332de))throw _0x5332de[_0x495e2a(0x388)];const _0x48167f=_0x5332de['m2Prime'][0x0][_0x495e2a(0x26a)][_0x495e2a(0x23a)];Array[_0x495e2a(0x3f8)](_0x48167f)&&_0x48167f['length']&&_0x200d8f['replaceTextRanges'](_0x48167f,!0x1);}};Je=Hn([Zt(0x0,_0x1f782(_0x55b67e)),Zt(0x1,_0x28f8f5)],Je);function Ns(_0x4cafad){const _0x511aaa=_0x27a911;let _0x3e1bdc='';for(const _0x28a39c of _0x4cafad){const {startOffset:_0x20c103,endOffset:_0x1ade7b,isActive:_0x58d7a7}=_0x28a39c;_0x3e1bdc[_0x511aaa(0x4d3)]&&(_0x3e1bdc+=','),_0x3e1bdc+=_0x20c103+':'+_0x1ade7b+':'+(_0x58d7a7?'1':'0');}return _0x3e1bdc;}function xn(_0xbb9380){const _0x457ec9=_0x27a911,_0x350cb=_0xbb9380[_0x457ec9(0x21e)](','),_0x56d86f=[];for(const _0x3b1575 of _0x350cb){const [_0x47f4e4,_0x5f1848,_0x1956ad]=_0x3b1575['split'](':');_0x56d86f['push']({'startOffset':Number(_0x47f4e4),'endOffset':Number(_0x5f1848),'collapsed':_0x47f4e4===_0x5f1848,'isActive':_0x1956ad==='1'});}return _0x56d86f['some'](_0x35158e=>_0x35158e[_0x457ec9(0x37c)])||(_0x56d86f[0x0][_0x457ec9(0x37c)]=!0x0),_0x56d86f;}class Ut extends _0xe4c81a{constructor(){const _0x41c596=_0x27a911;super(...arguments),l(this,_0x41c596(0x39c),new _0x3146d9(null)),l(this,_0x41c596(0x215),this['_collabCursorState$']['asObservable']());}[_0x27a911(0x440)](_0x36112e){const _0x4be480=_0x27a911,{unitID:_0x3544d7,memberID:_0x47bbe0,textRanges:_0x50b7a2}=_0x36112e,_0x232d6e=Ns(_0x50b7a2),_0x22aebf={'unitID':_0x3544d7,'memberID':_0x47bbe0,'selection':_0x232d6e};this['_collabCursorState$'][_0x4be480(0x24a)](_0x22aebf);}}var Fn=Object['defineProperty'],Vn=Object[_0x27a911(0x330)],kn=(_0x19939b,_0x2a1200,_0x553b60,_0x2c76d8)=>{const _0x344915=_0x27a911;for(var _0x162e32=_0x2c76d8>0x1?void 0x0:_0x2c76d8?Vn(_0x2a1200,_0x553b60):_0x2a1200,_0xe26397=_0x19939b[_0x344915(0x4d3)]-0x1,_0x245f62;_0xe26397>=0x0;_0xe26397--)(_0x245f62=_0x19939b[_0xe26397])&&(_0x162e32=(_0x2c76d8?_0x245f62(_0x2a1200,_0x553b60,_0x162e32):_0x245f62(_0x162e32))||_0x162e32);return _0x2c76d8&&_0x162e32&&Fn(_0x2a1200,_0x553b60,_0x162e32),_0x162e32;},Qt=(_0x586fb2,_0x2b66c6)=>(_0x4f5d75,_0x211685)=>_0x2b66c6(_0x4f5d75,_0x211685,_0x586fb2);function Bn(_0x466432){const _0x3893ea=_0x27a911,{unitID:_0x584b48,mutations:_0x17fc8b}=_0x466432;return{'unitId':_0x584b48,'subUnitId':_0x17fc8b[0x0][_0x3893ea(0x26a)][_0x3893ea(0x1c2)]};}let qe=class{constructor(_0x3c2075,_0x3f809f){const _0x17c3ca=_0x27a911;this[_0x17c3ca(0x43e)]=_0x3c2075,this['_transformService']=_0x3f809f;}[_0x27a911(0x342)](_0x2b1d87){const _0x4c29a6=_0x27a911;var _0x2541d4,_0x3afe7e,_0x3450d1;const _0x4c5d44=this[_0x4c29a6(0x43e)][_0x4c29a6(0x26f)](_0x378282),{unitId:_0x31f630,subUnitId:_0x2013c5}=Bn(_0x2b1d87),_0x58c650=_0x4c5d44[_0x4c29a6(0x27d)](_0x31f630)[_0x4c29a6(0x3c8)]();if(_0x58c650[_0x4c29a6(0x4d3)]===0x0||!_0x31f630||!_0x2013c5)return;const _0x48f53c=[{'id':_0x3e4a02['id'],'params':{'unitId':_0x31f630,'subUnitId':_0x2013c5,'selections':_0x288a64[_0x4c29a6(0x4ce)](_0x58c650)}}],_0x14b1bc=this[_0x4c29a6(0x288)][_0x4c29a6(0x2be)](_0x2b1d87,_0x48f53c);if(!_0x1707e0(_0x14b1bc))throw _0x14b1bc['error'];const _0x11e098=(_0x3450d1=(_0x3afe7e=(_0x2541d4=_0x14b1bc[_0x4c29a6(0x2d4)][0x0])==null?void 0x0:_0x2541d4['params'])==null?void 0x0:_0x3afe7e[_0x4c29a6(0x27a)])!=null?_0x3450d1:_0x58c650;Array[_0x4c29a6(0x3f8)](_0x11e098)&&_0x11e098[_0x4c29a6(0x4d3)]&&this[_0x4c29a6(0x43e)][_0x4c29a6(0x26f)](_0x22dfc9)[_0x4c29a6(0x3f6)](_0x3e4a02['id'],{'unitId':_0x31f630,'subUnitId':_0x2013c5,'selections':_0x11e098});}};qe=kn([Qt(0x0,_0x1f782(_0x55b67e)),Qt(0x1,_0x28f8f5)],qe);function _0x58ce(){const _0xd4fef8=['text','defs','JOIN','hovered','interceptor','getSheetBlock','_onJoinRoomEvent','find','LICENSE_DISTRO_REJECTED','_transformSelections','/universer-api/snapshot/','error$','clipPath','put','call','_lockTransition','RECV','save','_awaitingChangeset','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','url(#off-line-single_clip0_910_343)','INGEST','setParam','verdancy600','getMember','4567990HhkeSu','displayName','synced','on-line-single_clip0_910_349','getParam','saveChangeset','_updateState','assign','_onConflict','getCollabEntity$','_socketReady','endRow','NEW_CHANGESETS','_collaborationPaused','body','moveTo','searchParams','...','UPDATE_PERMISSION_OBJ','InsertRangeMoveDownCommandId','/unit/','getTime','onSyncEditingCollabCursor','_checkMissing','_injector','_incrementRevisionNumber','syncEditingCollabCursor','UNAUTHENTICATED','_sendHeartbeatTimer','color','registerHTTPInterceptor','InsertRangeMoveRightCommandId','?url=','fromCollab','doc.mutation.rich-text-editing','responseType','session.room-full','complete','evenodd','CONNECTOR_DATA_TOO_LARGE','registerBeforeClose','UPDATE_CURSOR','_unitId','[CollaborationState]:\x20apply\x20error!','conflict','_event$','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','collabStatus.fetchMiss','round','saveOfflineData','_state$','location','_socket$','getValue','_tryEnsureSocket','getCurrentRevForDocument','univer-online-status-title','svg','_submitChangeset','change$','_pendingMutations','_removeRoom','_range','updateCursorEvent','Error\x20on\x20receiving\x20event','Warning','_unitOnClients','_localStorageService','collaboratorID','_getUndoStack','getTypeOfUnitAdded$','_commentService','exhaustSavingTask','actions','focused$','pluginName','post','setActiveRange','InsertRowCommandId','LICENSE_IMPORT_SIZE_EXCEEDED','method','push','onRemoteRej','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','COLLAB_WEB_SOCKET_URL','APPLY_REVISION_CONFILICT','[CollaborationSessionService]','/rev/','loadSheet','_getSheetObject','_createSocket','putCollaborators','result','baseRev','M0\x200H16V16H0z','conflict.title','replace','flatMap','_anchorDot','_http','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','withCredentials','asObservable','_clearOtherTimers','_handleHeartbeatEvent','extend','_getAPIPrefix','SNAPSHOT_INVALID_SNAPSHOT','title','FromArray','_refRangeService','xlink:href','has','triggerDblclick','roomInfos','_updateLocalCache','_transformUndoRedoStack','135eXWdkP','[SyncedState]:\x20received\x20rejection.','collabStatus.synced','9481840xkibxG','joinEvent','AWAITING_WITH_PENDING','forEach','sessionStatus$','/resources','init','status$','/object/','_config','_snapshotServerService','_docStateChangeManagerService','currentColor','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','univer-online','message$','_labelPosition','getViewModel','_syncEditingCollabCursor','OnLineSingle','_colorIndex','collab-text-range-','getCollabCursors$','permission.content','_onFetchMissResult','disposeUnit','_saveCache','LOGIN_URL_KEY','RemoveColCommandId','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','use','debug','UNIVER_COLLABORATION_CLIENT_PLUGIN','hasOwnProperty','resolve','_startDocCollabCursor','Univer','purple300','PERMISSION_REJ','all','onPointerMove$','PSEUDO_FETCH_MISSING_RESULT','_scheduleCollaborationTimeoutTimer','_handleLeaveEvent','OffLineSingle','stringify','fetch_missing','_getSignURL','deepClone','UNKNOWN_CMD','DEFAULT_FILE_NAME','csRejEvent','urlChange$','length','uni.network.url-service','_retryConnectingTimer','_collaborationController','_getScale','getInterceptPoints','_startCollaboration','incrementRevForDocument','_fetchMissChangesets','JOINING','permissionRejEvent','dispose','_docTransformSelectionsService','image/gif','_commentUpdate$','updateOfflineData','getActiveSheet','_schedule','liveShareNewHost','closePath','[OfflineState]:\x20received\x20acknowledgement.','set','blue400','&to=','pipe','_document','_retryCount','DeleteRangeMoveUpCommandId','backgroundColor','updatePermissionPoint','data','createSocket','_render','FETCH_MISSING','_getCtorByUniverType','onCommandExecuted','editingUnit','updateCollaborator','_initModules','dispose$','UniverIcon','_roomMembers$','_backgroundColor','userID','transformUndoRedo','_updateCollabCursors','_saveTaskMap','_getRedoStack','transform','_initStatusListener','_handler','beginPath','size','_hovered','currentTheme$','measureText','_localCacheService','subUnitId','onPointerLeave$','UNIVER_DOC','_decreaseWaiting','_cursors','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','[UniverCollaborationClientPlugin]','_replayCachedMutations','fillRule','cmd','_permissionService','_remoteChangesetQueue','createInstance','url(#on-line-single_clip0_910_349)','c2Prime','_updateSubUnitFromURLParams','mutations','currentSkeleton$','_getAnchorBounding','objectID','APPLY_NON_SEQUENTIAL_REVISION','_removeClearOtherTimer','_createInitialStateImpl','getRenderById','status','_updateURLWithCurrentState','subunit','_undoRedoService','INVALID_ARGUMENT','CHANGESET_REJ','requestParams','session.will-retry','_onConnectionOpen','gold400','setCurrentUser','_loadDoc','[FetchMissState]','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','getUnitType','state$','Ready','off-line-single_clip0_910_343','_name','permission.title','UNRECOGNIZED','height','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','_initCloseConn','unshift','state','_status$','apply','_eventUnsubscribe','_init','collaborators','univer-offline','makeDirty','_state','[SyncedState]:\x20received\x20acknowledgement.','column','_substituteRedoStack','width','reduce','HELLO','getOffsetConfig','_removeCollabCursors','roomMembers$','infoRsp','_rescheduleHeartbeatEvent','_clearScheduledTask','LEAVE','lineTo','isEditing','BASE64','[CollaborationUndoRedoService]','MSG_FOR_ERROR','auth.needGotoLoginAlert','_onUserLeave','CHANGESET_ACK','createCollaborator','range','transformChangesets','collabStatus.notCollab','collabCursorState$','LIVESHARE_FETCH_OPERATIONS','selection','HEADER_MENU','rgba(255,\x20255,\x20255,\x200.01)','session.collaboration-timeout','delete','_drawRange','LIVESHARE_OPERATION','split','_unitID','_clearHeartbeatTimer','_docSkeletonManagerService','MUTATION','includes','conflict.content','_snapshotService','_type','onTransformIME','onlineStatusTitle','div','_revisionService','_members','workbook','assignAColorForMemberID','1em','shouldCloseConn','_substituteUndoStack','map','_sessions','UNIVER_UNKNOWN','_onRemoteACK','getSheetBySheetId','findNodePositionByCharIndex','loadOfflineData','m1Prime','drawWith','textRanges','_entities','history','encode','_getSaveTimeout','override','COMMENT_UPDATE','_hover','getDataModel','0\x200\x2016\x2016','registerComponent','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','_collaborationSessionService','fetchMissingChangesets','_clearCollaborationTimeoutTimer','unitId','next','ACTIVE_UNIT_EVENT_CHANNEL','slice','_heartbeatTimer','[CollaborationSessionService]:\x20socket\x20error','clearInterval','saveSnapshot','_disabled','from','setTimeout','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_sheetTransformSelectionsService','_sendHeartbeat','onMouseMove','onTransformRemoteChangesetByIMECache','onPointerEnter$','getFocusedUnit','startRow','socketService','_replaceFileID','LICENSE_MAX_UNITS_EXCEEDED','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','fillText','univerjs-icon\x20univerjs-icon-','propertyIsEnumerable','ranges','0\x200\x2017\x2016','getRangePointData','22hKEYwC','_sessionStatus$','roomMembers','path','params','list','_entityInit$','onRemoteChangeset','awaiting_with_pending','get','registerOnClose','not_collab','SHOULD_CLOSE_CONN','clearTimeout','_commandService','initWorkbookPermissionChange','_queuedRemoteChangesets','APPLY_PERMISSION_DENIED','create','getAncestorScale','selections','UNDEFINED','getUnitOnRev','getWorkbookSelections','NOT_COLLAB','OTHER_CLIENTS_EDITING','removeParam','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','toggleOffline','YUUMI_URL_COL_OUT_OF_RANGE','getCellPositionByOffset','sheetID','collabStatus.offline','_getMergeRange','_transformService','pushState','addEventListener','sheets','prototype','_lastPointer','bottom','event$','docStateChange$','online','_collabSessionService','UNKNOWN_CODE','close$','/block/','ERROR_IMAGE_TYPE','resourceIDs','parse','collabStatus.syncing','\x20in\x20_schedule.','save\x20fail\x20reason\x20is\x20','_syncEditingCollabCursorService','max','62250UAVvki','defineProperty','_clearLocalCache','createElement','setAlpha','fetching\x20missing\x20changesets\x20from\x20','href','_unitStatus','then','_createInitialState','_timeoutTimer','SUCCUSS','string','replaceState','close','_imageSourceCache','RETRY_CONNECTING_INTERVAL','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','FAIL','VIEW_MAIN','[PendingState]:\x20received\x20rejection.','pauseCollaboration','startsWith','4113654TPxrHK','trim','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_HTTPService','min','getUnitId','COMPLETION_FINISHED','LIVESHARE_TERMINATE','_initMergeInterceptor','transformMutationsWithChangeset','_toggleOnline','\x0aAfter:\x20','awaitingChangeset','subscribeEvent','_setupSubUnitSync','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','indexOf','USERS_ENTER','_onMessage','unknown','json','liveShareOperation','jiqing500','_textBubble','setItem','translate(.97)','_handleJoinEvent','_createHandler','onTransformSelections','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_colorAssignService','m2Prime','SNAPSHOT_URL_KEY','_onConnectionFailed','_httpService','appendMutation','_themeService','_hideTimer','deleteCollaborator','_onUserJoin','listRoles','/collaborator','localeService','routeKey','name','_localeService','_initUnitPermissionChange','_startSheetCollabCursor','getTypeOfUnitDisposed$','_redoStacks','_clearRedo','Unknown\x20user','addImageSourceCache','/fetchmissing?from=','_loadSheet','CONFLICT','_socketService','icon','POST','FETCH_MISS','random','_onRefRangeChange','action','newValue','_joinRoom','_handleHover','PENDING','_beforeCloseService','onlineStatus','1164ofaSmR','_transformUndoredo','pending','_scheduleTimestamp','transformIMECache','updatePermissionObjEvent','defIds','batchAllowed','_getLoginPath','editing\x20status\x20changed\x20to','_logService','saveImage','getCurrentUnitForType','subscribe','_anchor','FileId','LIVESHARE_NEW_HOST','_socketMessageSubscription','connection\x20error','onCommentUpdate','COMPRESS_MUTATION_APPLY','_change$','_collabCursorController','USERS_LEAVE','_draw','[PendingState]:\x20received\x20acknowledgement.','?size=','red300','_getCurrentRevision','_waitForHeartbeatResponse','submit\x20changeset\x20error!','getUndoRedoMutationParamsCache','_selfUnitIDs','PERMISSION_DENIED','fetchThroughInterceptors','SNAPSHOT_SERVER_URL_KEY','_exhaustRemoteChangesetQueue','YUUMI_UNABLE_LOAD_URL','_uiPartsService','/universer-api/stream/file/upload','onlyLocal','_compressMutationService','function','getCollabEntity','onRemoteAck','Starting','catch','LIVESHARE_REQUEST_HOST','roles','_color','_transitionLocked','concat','[CollaborationSession]','_online','getOwnPropertyDescriptor','setWaitCount','arc','toRgbString','_onLocalMutation','substring','revision','requireSession','c1Prime','_univerInstanceService','unit-cache-','[PendingState]:\x20unhandled\x20univer\x20type:\x20','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','getMemberID','_clearTimeoutTimer','_sendingTimer','OFFLINE','transformRemoteChangeset','transformSelections','/object','UNIVER_SLIDE','offline','_renderManagerService','registerRefRange','sessionStatus','_scheduleReconnection','reject','onSendChangeset','unsubscribe','on-line-single','collaboration-client.offline-data-not-saved','61486hbQlbC','isPermissionRej','_onCursorUpdate','getUniverSheetInstance','_waitCount','_send','onlineStatusIcon','_isPermissionRej','_cursor','ALREADY_EXISTS','objectActions','[DataLoaderController]','_session','enableSingleActiveInstanceLock','eventID','_cursorInfo$','8EBBAtr','transformMutation','fillStyle','_id','_onCombEvent','whenReady','MoveRangeCommandId','setShapeProps','saveSheetBlock','getMergeData','getSheetId','failed\x20to\x20apply\x20missed\x20changesets!','_transformStack','activeSheet$','\x20-\x20','entries','_updateStatus','key','_memberService','_transformIMECache','resend','setInterval','collaborationUniverTypes','generateRandomId','#fff','onMissedChangesetFetched','unit','hide','[CollaborationEntity]','isActive','_getSendChangesetTimeout','_configService','code','ws://127.0.0.1:8000/universer-api/comb/connect','enableOfflineEditing','show','_scheduleSaving','/-/object/list','SNAPSHOT_HAS_BEEN_REMOVED','allowed','setUndoRedoMutationParamsCache','error','_ws','colorChannel1','/new_changes','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','type','file','confirm','getRelativeToViewportCoord','_transformRemoteChangesetByIMECache','socket\x20close','_transformPreviousActiveRange','storage','src','_applyRemoteChangeset','_socket','_acknowledgedAwaitingChangeset','SUBMIT_CHANGESET','send','_clearUndo','_collabCursorState$','collaboration.single-unit.warning','_urlService','IDLE','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_onRecvEvent','current','addObject','attrs','{fileID}','_docSyncEditingCollabCursorService','unitID','children','changesets','tag','url','commentUpdateEvent','SEND_CHANGESET_TIMEOUT','toggleOnline','_docTransformIMECacheService','toString','_scheduleClearOtherTimer','closeSession','_onCursorDelete','\x20to\x20','reverse','awaiting','image/png','compose','univer-online-status-icon','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','values','patch','_sheetSkeletonManagerService','disposeWithMe','fill','Steady','_singleActiveUnitService','UNIVER_SHEET','_showConflictNotification','_initStatusComponent','enableLocalCache','objectType','off-line-single','getCurrentSelections','SYNCED','originalMeta','black','univer-pro.collaboration-client-socket-service','NOT_FOUND','labelPosition','add','loadDoc','_cachedData','_executeRemoteChangeset','getCurrentUser','/-/object/-/batch_allowed','HEARTBEAT_TIMEOUT','updateMember','rev','_userManagerService','_setupBeforeClosingHandler','_disableEditing','getUnitStatus$','376713OfzvBY','_getUploadFileURL','_roomMembers','restore','socket\x20open.','removeMember','ERROR_IMAGE','_onRemoteRejected','getImage','disableLocalCache','ONLINE','collab-text-anchor-','_scene','font','_getSnapshotAPIPrefix','AWAITING','HEARTBEAT','skeleton','_getAPIPrefixPath','_notificationService','Error','_ensureSubject','memberID','popstate','clear','cursorInfo$','executeCommand','_toggleOffline','isArray','symbol','_assignedColors','_collaborationTimeoutTimer','csAckEvent','NO_OTHER_CLIENTS_EDITING','unload','onload','LOCAL_CACHE_INTERVAL','open$','_messageService','cursorInfo','url(#$1','_updateLocalCursor','getConfig','/allowed','_drawAnchor','INTERNAL_ERROR','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_unlockTransition','_shapes'];_0x58ce=function(){return _0xd4fef8;};return _0x58ce();}const Wn=new Set([_0x494d53['id']]);function Gn(_0x4e44c0,_0x409b00,_0x178e49,_0x400438,_0x573ffc){const _0x45570d=_0x27a911;var _0x55d7df,_0x1e9e4d,_0x2fe10f,_0x28f0e0;const _0x59feeb=[];for(const _0x4264de of _0x4e44c0)if(Wn['has'](_0x4264de['id'])){if(_0x59feeb[_0x45570d(0x4d3)]>0x0)break;_0x59feeb['push'](_0x4264de);break;}else _0x59feeb[_0x45570d(0x477)](_0x4264de);const _0x3a191d=(_0x1e9e4d=(_0x55d7df=_0x573ffc[_0x45570d(0x3d3)]())==null?void 0x0:_0x55d7df[_0x45570d(0x1b4)])!=null?_0x1e9e4d:_0x45570d(0x2c8),_0xefc524=(_0x28f0e0=(_0x2fe10f=_0x573ffc['getCurrentUser']())==null?void 0x0:_0x2fe10f[_0x45570d(0x3f2)])!=null?_0x28f0e0:_0x45570d(0x2c8);return{'changeset':{'unitID':_0x409b00,'type':_0x5c4843(_0x178e49[_0x45570d(0x1e8)](_0x409b00)),'baseRev':_0x400438[_0x45570d(0x45d)](_0x409b00),'revision':0x0,'userID':_0x3a191d,'memberID':_0xefc524,'mutations':_0x59feeb},'pendingMutations':_0x4e44c0[_0x45570d(0x24c)](_0x59feeb['length'])};}function Yn(_0x294719,_0x283a29,_0x3eac55,_0x3b3897,_0x4540bd){const _0x4551d4=_0x27a911;var _0x3cdf4f,_0x100167,_0x6334b,_0x371532;const _0x4d4de3=[_0x294719[_0x4551d4(0x200)]((_0x2fde55,_0x307f0e)=>{const _0x52483c=_0x4551d4;var _0x48acc1;const {id:_0x580c4a}=_0x2fde55,{id:_0x70bf1f,type:_0x27429e}=_0x307f0e,_0x159c3e=(_0x48acc1=_0x2fde55[_0x52483c(0x26a)])!=null?_0x48acc1:{'actions':null},_0x531014=_0x307f0e['params'];if(_0x580c4a&&_0x580c4a!==_0x70bf1f)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x580c4a+_0x52483c(0x36d)+_0x70bf1f+'.');return{..._0x2fde55,'id':_0x70bf1f,'type':_0x27429e,'params':{'unitId':_0x531014['unitId'],'textRanges':_0x531014[_0x52483c(0x23a)],'actions':_0x3d81d5[_0x52483c(0x3b8)](_0x159c3e[_0x52483c(0x46f)],_0x531014[_0x52483c(0x46f)])}};},{})],_0x21e23f=(_0x100167=(_0x3cdf4f=_0x4540bd[_0x4551d4(0x3d3)]())==null?void 0x0:_0x3cdf4f['userID'])!=null?_0x100167:'unknown',_0x56e1ad=(_0x371532=(_0x6334b=_0x4540bd[_0x4551d4(0x3d3)]())==null?void 0x0:_0x6334b[_0x4551d4(0x3f2)])!=null?_0x371532:'unknown';return{'changeset':{'unitID':_0x283a29,'type':_0x5c4843(_0x3eac55[_0x4551d4(0x1e8)](_0x283a29)),'baseRev':_0x3b3897['getCurrentRevForDocument'](_0x283a29),'revision':0x0,'userID':_0x21e23f,'memberID':_0x56e1ad,'mutations':_0x4d4de3},'pendingMutations':[]};}var Kn=Object[_0x27a911(0x29f)],Xn=Object[_0x27a911(0x330)],oe=(_0x157896,_0x16d210,_0x3c8296,_0x3eb4ed)=>{const _0x4e902f=_0x27a911;for(var _0x329938=_0x3eb4ed>0x1?void 0x0:_0x3eb4ed?Xn(_0x16d210,_0x3c8296):_0x16d210,_0x295771=_0x157896[_0x4e902f(0x4d3)]-0x1,_0x12b8c8;_0x295771>=0x0;_0x295771--)(_0x12b8c8=_0x157896[_0x295771])&&(_0x329938=(_0x3eb4ed?_0x12b8c8(_0x16d210,_0x3c8296,_0x329938):_0x12b8c8(_0x329938))||_0x329938);return _0x3eb4ed&&_0x329938&&Kn(_0x16d210,_0x3c8296,_0x329938),_0x329938;},m=(_0x4cd74b,_0x22c941)=>(_0x37f696,_0x2cb920)=>_0x22c941(_0x37f696,_0x2cb920,_0x4cd74b),w=(_0x3f8bfe=>(_0x3f8bfe['NOT_COLLAB']=_0x27a911(0x271),_0x3f8bfe['SYNCED']=_0x27a911(0x428),_0x3f8bfe[_0x27a911(0x2f7)]=_0x27a911(0x2fc),_0x3f8bfe[_0x27a911(0x3eb)]='awaiting',_0x3f8bfe[_0x27a911(0x4a0)]=_0x27a911(0x26e),_0x3f8bfe[_0x27a911(0x2f0)]=_0x27a911(0x4cc),_0x3f8bfe['CONFLICT']=_0x27a911(0x452),_0x3f8bfe[_0x27a911(0x340)]='offline',_0x3f8bfe))(w||{});class ae{constructor(_0x8120e0,_0x5115a7,_0x3f5dfd,_0x1ebe36,_0x18b4a8,_0x2bb1bd,_0x16ec3d,_0x136d78,_0x42284f){const _0x382d99=_0x27a911;l(this,_0x382d99(0x41f),null),l(this,_0x382d99(0x462),[]),(this['unitID']=_0x8120e0,this[_0x382d99(0x38d)]=_0x5115a7,this[_0x382d99(0x1bb)]=_0x18b4a8,this[_0x382d99(0x274)]=_0x2bb1bd,this[_0x382d99(0x1dd)]=_0x16ec3d,this['_revisionService']=_0x136d78,this[_0x382d99(0x1c1)]=_0x42284f,this['_awaitingChangeset']=_0x3f5dfd,this[_0x382d99(0x462)]=_0x1ebe36);}[_0x27a911(0x43d)](_0x3e14f9){const _0x135897=_0x27a911,_0x5726ea=this[_0x135897(0x22a)][_0x135897(0x45d)](this['unitID']);return _0x3e14f9[_0x135897(0x336)]>_0x5726ea+0x1?(this[_0x135897(0x1bb)]['onMissingChangesets']({'from':_0x5726ea,'to':_0x3e14f9[_0x135897(0x336)]-0x1}),!0x0):!0x1;}[_0x27a911(0x2fb)](_0x4eedfd){const _0x55cf88=_0x27a911;this[_0x55cf88(0x1dd)][_0x55cf88(0x1b5)](this[_0x55cf88(0x3a7)],_0x4eedfd);}[_0x27a911(0x416)](_0x33b904){const _0x452ad6=_0x27a911;var _0xc1a29a,_0x5c160f;(_0x5c160f=(_0xc1a29a=this[_0x452ad6(0x1bb)])[_0x452ad6(0x2d1)])==null||_0x5c160f['call'](_0xc1a29a,_0x33b904);}[_0x27a911(0x372)](_0x470d11){const _0x2ada3b=_0x27a911;var _0x3a6836,_0xf691e8;return(_0xf691e8=(_0x3a6836=this[_0x2ada3b(0x1bb)])['onTransformIME'])==null?void 0x0:_0xf691e8[_0x2ada3b(0x41b)](_0x3a6836,_0x470d11);}['_transformRemoteChangesetByIMECache'](_0x1638c3){const _0x13f5f3=_0x27a911;var _0x47535f,_0x937d6d,_0x359aa1;return(_0x359aa1=(_0x937d6d=(_0x47535f=this[_0x13f5f3(0x1bb)])[_0x13f5f3(0x258)])==null?void 0x0:_0x937d6d[_0x13f5f3(0x41b)](_0x47535f,_0x1638c3))!=null?_0x359aa1:_0x1638c3;}[_0x27a911(0x4b0)](_0x1e771b){const _0x5f23df=_0x27a911;var _0xd751ad,_0x2eb514;if(this[_0x5f23df(0x38d)]===H['UNIVER_DOC']){const {unitID:_0x2a8f06,mutations:_0x129391,memberID:_0x21a638}=_0x1e771b,_0x10132b=_0x129391[0x0][_0x5f23df(0x26a)]['textRanges'];Array[_0x5f23df(0x3f8)](_0x10132b)&&_0x10132b[_0x5f23df(0x4d3)]>0x0&&((_0x2eb514=(_0xd751ad=this[_0x5f23df(0x1bb)])[_0x5f23df(0x43c)])==null||_0x2eb514[_0x5f23df(0x41b)](_0xd751ad,{'unitID':_0x2a8f06,'memberID':_0x21a638,'textRanges':_0x10132b}));}}['_updateLocalCache'](){const _0x1d1068=_0x27a911;this[_0x1d1068(0x1c1)][_0x1d1068(0x198)](this['unitID'],this[_0x1d1068(0x38d)],this[_0x1d1068(0x41f)],this[_0x1d1068(0x462)]);}[_0x27a911(0x316)](){const _0x504fe1=_0x27a911;return this[_0x504fe1(0x22a)]['getCurrentRevForDocument'](this['unitID']);}[_0x27a911(0x43f)](){const _0x504bc5=_0x27a911;this[_0x504bc5(0x22a)][_0x504bc5(0x4da)](this['unitID']);}[_0x27a911(0x3d2)](_0x13aee5){const _0x29d36a=_0x27a911;var _0x2ac122;const _0x1b60e5=this[_0x29d36a(0x391)](_0x13aee5),_0x371ac3=_0x183dc1(_0x1b60e5[_0x29d36a(0x1d2)],this['_commandService'],{'fromCollab':!0x0});if(!_0x371ac3[_0x29d36a(0x482)])throw _0x371ac3[_0x29d36a(0x388)]instanceof Error?_0x371ac3[_0x29d36a(0x388)]:new Error((_0x2ac122=_0x371ac3[_0x29d36a(0x388)])!=null?_0x2ac122:_0x29d36a(0x451));this['_transformIMECache'](_0x1b60e5),this[_0x29d36a(0x2fb)](_0x13aee5),this[_0x29d36a(0x416)](_0x1b60e5),this[_0x29d36a(0x4b0)](_0x1b60e5),this['_incrementRevisionNumber']();}}let Ne=class extends ae{constructor(_0x4104b1,_0x1cfaf2,_0x506532,_0x2ff59f,_0x4c7c40,_0x2487f8,_0x5bb0c2,_0x10868a,_0x29c172){const _0x192650=_0x27a911;super(_0x4104b1,_0x1cfaf2,null,[],_0x506532,_0x10868a,_0x5bb0c2,_0x2ff59f,_0x4c7c40),l(this,'status','synced'),(this[_0x192650(0x43e)]=_0x2487f8,this['_logService']=_0x29c172);}[_0x27a911(0x2d8)](_0x3395b2){const _0x2b2453=_0x27a911,_0x401881=this[_0x2b2453(0x43e)][_0x2b2453(0x1ce)](B,this[_0x2b2453(0x3a7)],this[_0x2b2453(0x38d)],[_0x3395b2],this[_0x2b2453(0x1bb)]);return _0x401881['_schedule'](),_0x401881[_0x2b2453(0x499)](),_0x401881;}[_0x27a911(0x26d)](_0x412a43){const _0x47e955=_0x27a911;if(this[_0x47e955(0x43d)](_0x412a43))return this['_injector'][_0x47e955(0x1ce)](G,this[_0x47e955(0x3a7)],this['type'],null,[],null,[_0x412a43],this[_0x47e955(0x1bb)]);try{return this[_0x47e955(0x3d2)](_0x412a43),this;}catch(_0x33e91c){return this[_0x47e955(0x304)]['error']('[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.',_0x33e91c),this;}}[_0x27a911(0x326)](){const _0x532256=_0x27a911;throw new Error(_0x532256(0x1fc));}[_0x27a911(0x478)](){const _0x1eee99=_0x27a911;throw new Error(_0x1eee99(0x49c));}[_0x27a911(0x282)](){const _0x8ae83a=_0x27a911;return this[_0x8ae83a(0x43e)][_0x8ae83a(0x1ce)](z,this['unitID'],this[_0x8ae83a(0x38d)],null,[],this[_0x8ae83a(0x1bb)]);}[_0x27a911(0x3ae)](){return this;}[_0x27a911(0x373)](){const _0x2ef2c5=_0x27a911;throw new Error(_0x2ef2c5(0x420));}};Ne=oe([m(0x3,_0x1f782(_0x57a9f9)),m(0x4,_0x1f782(D)),m(0x5,_0x1f782(_0x55b67e)),m(0x6,_0x761a41),m(0x7,_0x22dfc9),m(0x8,_0x5e4d90)],Ne);let B=class extends ae{constructor(_0x5413de,_0x5afd57,_0x155079,_0x1d715d,_0x490c75,_0x37034c,_0x402ec0,_0x2066ca,_0x4ae535,_0x126369,_0x1318cb,_0x499fe1,_0x17f3a6,_0x1512ec){const _0x454b43=_0x27a911;super(_0x5413de,_0x5afd57,null,_0x155079,_0x1d715d,_0x126369,_0x1512ec,_0x37034c,_0x402ec0),l(this,_0x454b43(0x1da),_0x454b43(0x2fc)),l(this,_0x454b43(0x2fd),null),l(this,_0x454b43(0x33f),null),(this[_0x454b43(0x43e)]=_0x490c75,this[_0x454b43(0x371)]=_0x2066ca,this[_0x454b43(0x304)]=_0x4ae535,this[_0x454b43(0x37e)]=_0x1318cb,this[_0x454b43(0x288)]=_0x499fe1,this[_0x454b43(0x339)]=_0x17f3a6);}[_0x27a911(0x2d8)](_0x903dc6){const _0x1eb79b=_0x27a911;return this[_0x1eb79b(0x462)][_0x1eb79b(0x477)](_0x903dc6),this[_0x1eb79b(0x499)](),this;}[_0x27a911(0x26d)](_0x26ba6a){const _0x3cad72=_0x27a911;if(this[_0x3cad72(0x43d)](_0x26ba6a))return this[_0x3cad72(0x207)](),this[_0x3cad72(0x43e)][_0x3cad72(0x1ce)](G,this[_0x3cad72(0x3a7)],this[_0x3cad72(0x38d)],null,this['_pendingMutations'],null,[_0x26ba6a],this[_0x3cad72(0x1bb)]);try{const _0x196399=this[_0x3cad72(0x288)][_0x3cad72(0x2be)](_0x26ba6a,this['_pendingMutations']);if(_0x1707e0(_0x196399)){const {c1Prime:_0x2e7800,m2Prime:_0x41f7fa}=_0x196399;this['_executeRemoteChangeset'](_0x2e7800);const _0x40bad9=this[_0x3cad72(0x43e)][_0x3cad72(0x1ce)](B,this[_0x3cad72(0x3a7)],this[_0x3cad72(0x38d)],_0x41f7fa,this['_handler']);return this['_clearScheduledTask'](),_0x40bad9[_0x3cad72(0x19a)](this['_scheduleTimestamp']?Math[_0x3cad72(0x29d)](0x0,new Date()[_0x3cad72(0x43b)]()-this[_0x3cad72(0x2fd)]):this[_0x3cad72(0x37d)]()),_0x40bad9;}throw _0x196399[_0x3cad72(0x388)];}catch(_0x1de809){return this[_0x3cad72(0x304)][_0x3cad72(0x388)](_0x1de809),this[_0x3cad72(0x42e)](!0x1);}}[_0x27a911(0x326)](){const _0xb39784=_0x27a911;throw new Error(_0xb39784(0x313));}[_0x27a911(0x478)](){const _0x4d46fc=_0x27a911;throw new Error(_0x4d46fc(0x2b2));}[_0x27a911(0x282)](){const _0x20606d=_0x27a911;return this[_0x20606d(0x207)](),this[_0x20606d(0x43e)][_0x20606d(0x1ce)](z,this[_0x20606d(0x3a7)],this['type'],null,this[_0x20606d(0x462)],this[_0x20606d(0x1bb)]);}[_0x27a911(0x3ae)](){return this;}[_0x27a911(0x19a)](_0x4038a3){const _0x2deaf8=_0x27a911;_0x4038a3=_0x4038a3!=null?_0x4038a3:this[_0x2deaf8(0x37d)](),this[_0x2deaf8(0x2fd)]=new Date()['getTime'](),this[_0x2deaf8(0x33f)]=setTimeout(()=>{const _0xb51cd0=_0x2deaf8;this[_0xb51cd0(0x207)]();let _0x5215c0=null;switch(this[_0xb51cd0(0x38d)]){case H[_0xb51cd0(0x3c2)]:{_0x5215c0=Gn(this[_0xb51cd0(0x462)],this['unitID'],this[_0xb51cd0(0x339)],this['_revisionService'],this['_memberService']);break;}case H[_0xb51cd0(0x1c4)]:{_0x5215c0=Yn(this[_0xb51cd0(0x462)],this['unitID'],this[_0xb51cd0(0x339)],this[_0xb51cd0(0x22a)],this['_memberService']);break;}default:throw new Error(_0xb51cd0(0x33b)+this['type']+_0xb51cd0(0x29a));}const {changeset:_0x237346,pendingMutations:_0x42b4a9}=_0x5215c0;this[_0xb51cd0(0x1bb)]['onSendChangeset'](_0x237346);const _0x27eaee=_0x42b4a9['length']?this[_0xb51cd0(0x43e)]['createInstance'](W,this[_0xb51cd0(0x3a7)],this[_0xb51cd0(0x38d)],_0x237346,_0x42b4a9,this[_0xb51cd0(0x1bb)]):this[_0xb51cd0(0x43e)][_0xb51cd0(0x1ce)](q,this[_0xb51cd0(0x3a7)],this[_0xb51cd0(0x38d)],_0x237346,this['_handler']);_0x27eaee[_0xb51cd0(0x499)](),this[_0xb51cd0(0x1bb)]['onStateChange'](this,_0x27eaee);},_0x4038a3);}[_0x27a911(0x37d)](){const _0x357da8=_0x27a911;var _0x45acdd;return(_0x45acdd=this[_0x357da8(0x37e)][_0x357da8(0x406)](en))!=null?_0x45acdd:tn;}['resend'](){const _0x5e5949=_0x27a911;throw new Error(_0x5e5949(0x3a0));}[_0x27a911(0x207)](){const _0x29a30d=_0x27a911;this['_sendingTimer']!=null&&(clearTimeout(this[_0x29a30d(0x33f)]),this['_sendingTimer']=null);}[_0x27a911(0x42e)](_0x348447){const _0x3d947e=_0x27a911;return this[_0x3d947e(0x207)](),this[_0x3d947e(0x43e)][_0x3d947e(0x1ce)](re,this['unitID'],this['type'],null,this[_0x3d947e(0x462)],this[_0x3d947e(0x1bb)],_0x348447);}};B=oe([m(0x4,_0x1f782(_0x55b67e)),m(0x5,_0x1f782(_0x57a9f9)),m(0x6,_0x1f782(D)),m(0x7,_0x1f782(ne)),m(0x8,_0x5e4d90),m(0x9,_0x22dfc9),m(0xa,_0x5c69d0),m(0xb,_0x28f8f5),m(0xc,_0x41d661),m(0xd,_0x761a41)],B);let q=class extends ae{constructor(_0x18e9a6,_0x8532da,_0x5a6dd3,_0x44ec62,_0xd724c0,_0x4f9d05,_0x1b85b4,_0x52bf34,_0x3b6b16,_0x4fdae6,_0x3820e1){const _0x5a8c7c=_0x27a911;super(_0x18e9a6,_0x8532da,_0x5a6dd3,[],_0x44ec62,_0x52bf34,_0x3820e1,_0x4f9d05,_0x1b85b4),l(this,_0x5a8c7c(0x1da),_0x5a8c7c(0x3b6)),(this['_injector']=_0xd724c0,this[_0x5a8c7c(0x304)]=_0x3b6b16,this[_0x5a8c7c(0x288)]=_0x4fdae6);}[_0x27a911(0x2d8)](_0x155fe9){const _0x37c3a5=_0x27a911,_0x45fc0b=this[_0x37c3a5(0x43e)][_0x37c3a5(0x1ce)](W,this[_0x37c3a5(0x3a7)],this['type'],this['_awaitingChangeset'],[_0x155fe9],this[_0x37c3a5(0x1bb)]);return _0x45fc0b[_0x37c3a5(0x499)](),_0x45fc0b;}[_0x27a911(0x26d)](_0x3c9088){const _0xb8ba13=_0x27a911;if(this[_0xb8ba13(0x43d)](_0x3c9088))return this[_0xb8ba13(0x43e)]['createInstance'](G,this[_0xb8ba13(0x3a7)],this[_0xb8ba13(0x38d)],this[_0xb8ba13(0x41f)],[],null,[_0x3c9088],this[_0xb8ba13(0x1bb)]);try{const _0x217874=this[_0xb8ba13(0x288)][_0xb8ba13(0x213)]([_0x3c9088],[this['_awaitingChangeset']],!0x1);if(_0x110469(_0x217874)){const {c1Prime:_0x5ce017,c2Prime:_0x16902e}=_0x217874;this['_executeRemoteChangeset'](_0x5ce017[0x0]),_0x16902e[0x0][_0xb8ba13(0x483)]=this['_getCurrentRevision']();const _0x52a8c9=this[_0xb8ba13(0x43e)]['createInstance'](q,this[_0xb8ba13(0x3a7)],this['type'],_0x16902e[0x0],this['_handler']);return _0x52a8c9['_updateLocalCache'](),_0x52a8c9;}return this[_0xb8ba13(0x42e)](!0x1);}catch(_0x2bd844){return this[_0xb8ba13(0x304)]['error'](_0x2bd844),this[_0xb8ba13(0x42e)](!0x1);}}['onRemoteAck'](_0x1191c2){const _0x3e3c06=_0x27a911,_0x209f1e=this[_0x3e3c06(0x22a)][_0x3e3c06(0x45d)](this[_0x3e3c06(0x3a7)]);if(_0x1191c2['revision']<_0x209f1e-0x1)return this;if(this['_checkMissing'](_0x1191c2))return this[_0x3e3c06(0x43e)][_0x3e3c06(0x1ce)](G,this[_0x3e3c06(0x3a7)],this['type'],null,[],this[_0x3e3c06(0x41f)],[],this[_0x3e3c06(0x1bb)]);this[_0x3e3c06(0x43f)]();const _0x484ed9=this[_0x3e3c06(0x43e)]['createInstance'](Ne,this['unitID'],this['type'],this[_0x3e3c06(0x1bb)]);return _0x484ed9['_updateLocalCache'](),_0x484ed9;}[_0x27a911(0x478)](_0x2aa597){const _0x2512c2=_0x27a911;return this[_0x2512c2(0x42e)](!!(_0x2aa597!=null&&_0x2aa597['isPermissionRej']));}[_0x27a911(0x282)](){const _0x5b9a0c=_0x27a911;return this[_0x5b9a0c(0x43e)]['createInstance'](z,this[_0x5b9a0c(0x3a7)],this[_0x5b9a0c(0x38d)],this['_awaitingChangeset'],[],this[_0x5b9a0c(0x1bb)]);}[_0x27a911(0x3ae)](){return this;}[_0x27a911(0x373)](){const _0x3aeaee=_0x27a911;this[_0x3aeaee(0x1bb)][_0x3aeaee(0x34b)](this[_0x3aeaee(0x41f)]);}['_onConflict'](_0x4341f2){const _0x54408d=_0x27a911;return this[_0x54408d(0x43e)][_0x54408d(0x1ce)](re,this['unitID'],this['type'],this['_awaitingChangeset'],[],this[_0x54408d(0x1bb)],_0x4341f2);}};q=oe([m(0x4,_0x1f782(_0x55b67e)),m(0x5,_0x1f782(_0x57a9f9)),m(0x6,_0x1f782(D)),m(0x7,_0x22dfc9),m(0x8,_0x5e4d90),m(0x9,_0x28f8f5),m(0xa,_0x761a41)],q);let W=class extends ae{constructor(_0x1ea34d,_0x2ddb75,_0xa3bd2,_0x1e6f96,_0x1bd6c2,_0xf04dd,_0x21687c,_0x2b35ad,_0x3fca14,_0xb14fd8,_0x3eaabe,_0x3d0c8a){const _0xdc5e2b=_0x27a911;super(_0x1ea34d,_0x2ddb75,_0xa3bd2,_0x1e6f96,_0x1bd6c2,_0x3fca14,_0x3d0c8a,_0x21687c,_0x2b35ad),l(this,_0xdc5e2b(0x1da),_0xdc5e2b(0x26e)),(this[_0xdc5e2b(0x43e)]=_0xf04dd,this['_logService']=_0xb14fd8,this[_0xdc5e2b(0x288)]=_0x3eaabe);}['appendMutation'](_0x362965){const _0x137840=_0x27a911;return this[_0x137840(0x462)][_0x137840(0x477)](_0x362965),this;}[_0x27a911(0x26d)](_0x20a9bf){const _0xe85172=_0x27a911;if(this[_0xe85172(0x43d)](_0x20a9bf))return this['_injector']['createInstance'](G,this[_0xe85172(0x3a7)],this[_0xe85172(0x38d)],this['_awaitingChangeset'],this[_0xe85172(0x462)],null,[_0x20a9bf],this[_0xe85172(0x1bb)]);try{const _0x1efba8=this[_0xe85172(0x288)][_0xe85172(0x213)]([_0x20a9bf],[this[_0xe85172(0x41f)]],!0x1);if(_0x110469(_0x1efba8)){const {c1Prime:_0x31fafc,c2Prime:_0x16a909}=_0x1efba8,_0x1d5d15=this[_0xe85172(0x288)][_0xe85172(0x2be)](_0x31fafc[0x0],this[_0xe85172(0x462)]);if(_0x1707e0(_0x1d5d15)){const {c1Prime:_0xd0ec06,m2Prime:_0x1d3bda}=_0x1d5d15;return this['_executeRemoteChangeset'](_0xd0ec06),_0x16a909[0x0][_0xe85172(0x483)]=this[_0xe85172(0x316)](),this[_0xe85172(0x43e)]['createInstance'](W,this[_0xe85172(0x3a7)],this[_0xe85172(0x38d)],_0x16a909[0x0],_0x1d3bda,this[_0xe85172(0x1bb)]);}throw _0x1d5d15['error'];}throw _0x1efba8[_0xe85172(0x388)];}catch(_0x19b754){return this[_0xe85172(0x304)]['error'](_0x19b754),this[_0xe85172(0x42e)](!0x1);}}[_0x27a911(0x326)](_0x35b044){const _0x2240a6=_0x27a911;if(this['_checkMissing'](_0x35b044))return this['_injector'][_0x2240a6(0x1ce)](G,this[_0x2240a6(0x3a7)],this[_0x2240a6(0x38d)],null,this[_0x2240a6(0x462)],this['_awaitingChangeset'],[],this[_0x2240a6(0x1bb)]);this[_0x2240a6(0x43f)]();const _0x88d346=this['_injector'][_0x2240a6(0x1ce)](B,this[_0x2240a6(0x3a7)],this[_0x2240a6(0x38d)],this['_pendingMutations'],this['_handler']);return _0x88d346['_schedule'](),_0x88d346['_updateLocalCache'](),_0x88d346;}[_0x27a911(0x478)](_0x32b078){const _0x58b2fa=_0x27a911;return this[_0x58b2fa(0x42e)](!!(_0x32b078!=null&&_0x32b078[_0x58b2fa(0x350)]));}['toggleOffline'](){const _0x4bdc0a=_0x27a911;return this[_0x4bdc0a(0x43e)]['createInstance'](z,this[_0x4bdc0a(0x3a7)],this[_0x4bdc0a(0x38d)],this['_awaitingChangeset'],this[_0x4bdc0a(0x462)],this[_0x4bdc0a(0x1bb)]);}[_0x27a911(0x3ae)](){return this;}[_0x27a911(0x373)](){const _0x5de0c9=_0x27a911;this[_0x5de0c9(0x1bb)][_0x5de0c9(0x34b)](this[_0x5de0c9(0x41f)]);}[_0x27a911(0x42e)](_0x59729e){const _0x1f05bc=_0x27a911;return this[_0x1f05bc(0x43e)][_0x1f05bc(0x1ce)](re,this['unitID'],this[_0x1f05bc(0x38d)],null,this[_0x1f05bc(0x462)],this['_handler'],_0x59729e);}};W=oe([m(0x5,_0x1f782(_0x55b67e)),m(0x6,_0x1f782(_0x57a9f9)),m(0x7,_0x1f782(D)),m(0x8,_0x22dfc9),m(0x9,_0x5e4d90),m(0xa,_0x28f8f5),m(0xb,_0x761a41)],W);let re=class extends ae{constructor(_0x33766b,_0x35e624,_0x403477,_0x41a69a,_0x6fcd56,_0x4ed0a8=!0x1,_0x541bc7,_0x1f1437,_0x5929c0,_0x3864de,_0x2de172,_0x2ff664,_0x3efb01){const _0x56dd0d=_0x27a911;super(_0x33766b,_0x35e624,_0x403477,_0x41a69a,_0x6fcd56,_0x1f1437,_0x5929c0,_0x2de172,_0x3864de),l(this,_0x56dd0d(0x1da),'conflict'),(this[_0x56dd0d(0x356)]=_0x4ed0a8,this['_permissionService']=_0x541bc7,this[_0x56dd0d(0x2e2)]=_0x2ff664,this[_0x56dd0d(0x3ef)]=_0x3efb01,this[_0x56dd0d(0x3c3)](),this[_0x56dd0d(0x2a0)](),this[_0x56dd0d(0x3da)]());}['appendMutation'](){return this;}[_0x27a911(0x26d)](){return this;}[_0x27a911(0x326)](){return this;}['onRemoteRej'](){return this;}['toggleOffline'](){return this;}[_0x27a911(0x3ae)](){return this;}[_0x27a911(0x373)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearLocalCache'](){const _0x10c421=_0x27a911;this[_0x10c421(0x1c1)][_0x10c421(0x198)](this[_0x10c421(0x3a7)],this['type'],null,[]);}[_0x27a911(0x3c3)](){const _0x2e4b0a=_0x27a911;this[_0x2e4b0a(0x356)]?this[_0x2e4b0a(0x3ef)][_0x2e4b0a(0x382)]({'title':this[_0x2e4b0a(0x2e2)]['t'](_0x2e4b0a(0x1ed)),'content':this[_0x2e4b0a(0x2e2)]['t'](_0x2e4b0a(0x4b5)),'type':_0x2e4b0a(0x388),'duration':0x0}):this[_0x2e4b0a(0x3ef)][_0x2e4b0a(0x382)]({'title':this['_localeService']['t'](_0x2e4b0a(0x485)),'content':this[_0x2e4b0a(0x2e2)]['t'](_0x2e4b0a(0x224)),'type':_0x2e4b0a(0x388),'duration':0x0});}[_0x27a911(0x3da)](){const _0x3360b0=_0x27a911;this[_0x3360b0(0x1cc)]['updatePermissionPoint'](new _0x3665b6(this[_0x3360b0(0x3a7)])['id'],!0x1);}};re=oe([m(0x6,_0x1f782(_0x1a3671)),m(0x7,_0x22dfc9),m(0x8,_0x761a41),m(0x9,_0x1f782(D)),m(0xa,_0x1f782(_0x57a9f9)),m(0xb,_0x1f782(_0x262e83)),m(0xc,_0x279260)],re);let z=class extends ae{constructor(_0x3dda12,_0x16fa5d,_0x4e634c,_0x543a91,_0x5d6700,_0x4b2e9a,_0x16ac6c,_0x521b6e,_0x4da5a9,_0x3aa968){const _0x80e2da=_0x27a911;super(_0x3dda12,_0x16fa5d,_0x4e634c,_0x543a91,_0x5d6700,_0x4da5a9,_0x3aa968,_0x16ac6c,_0x521b6e),l(this,'status',_0x80e2da(0x345)),this['_injector']=_0x4b2e9a;}[_0x27a911(0x2d8)](_0x2c7460){const _0x34b9c3=_0x27a911;return this[_0x34b9c3(0x462)][_0x34b9c3(0x477)](_0x2c7460),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x26db2f){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0xf58d62=_0x27a911;throw new Error(_0xf58d62(0x19d));}[_0x27a911(0x478)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}['toggleOffline'](){return this;}['toggleOnline'](){const _0x4c3fe3=_0x27a911,{_injector:_0x202c4a,_pendingMutations:_0x2390c5,_awaitingChangeset:_0x7a8937,unitID:_0x18a9b7,_handler:_0x436cc9,type:_0x216c17}=this,_0x3cbdd5=Ms(_0x202c4a,_0x18a9b7,_0x216c17,_0x7a8937,_0x2390c5,_0x436cc9);return _0x3cbdd5 instanceof B?_0x3cbdd5[_0x4c3fe3(0x19a)]():(_0x3cbdd5 instanceof W||_0x3cbdd5 instanceof q)&&_0x3cbdd5[_0x4c3fe3(0x373)](),_0x3cbdd5;}['resend'](){const _0x702f29=_0x27a911;throw new Error(_0x702f29(0x1c7));}};z=oe([m(0x5,_0x1f782(_0x55b67e)),m(0x6,_0x1f782(_0x57a9f9)),m(0x7,_0x1f782(D)),m(0x8,_0x22dfc9),m(0x9,_0x761a41)],z);let G=class extends ae{constructor(_0x1441bb,_0x3c03b2,_0x2f2c3f,_0x50bf11,_0x32301f,_0x4e5282,_0x189e3f,_0xf39f97,_0x6f42d7,_0x51804a,_0xee5d19,_0x238312,_0x2f7a39,_0x5cb4e0){const _0x3d7115=_0x27a911;super(_0x1441bb,_0x3c03b2,_0x2f2c3f,_0x50bf11,_0x189e3f,_0x238312,_0x2f7a39,_0x6f42d7,_0x51804a),l(this,_0x3d7115(0x1da),'fetch_missing'),(this[_0x3d7115(0x398)]=_0x32301f,this[_0x3d7115(0x276)]=_0x4e5282,this[_0x3d7115(0x43e)]=_0xf39f97,this[_0x3d7115(0x304)]=_0xee5d19,this['_transformService']=_0x5cb4e0);}[_0x27a911(0x378)](_0x58c807){const _0x26f67c=_0x27a911;try{const _0x2bf373=[..._0x58c807,...this[_0x26f67c(0x276)]],_0x4fc28f=[this[_0x26f67c(0x41f)]||this[_0x26f67c(0x398)]]['filter'](_0x3852ab=>!!_0x3852ab);let _0x5aa555,_0x525d88;if(_0x4fc28f[_0x26f67c(0x4d3)]){const _0x5cf2c4=this[_0x26f67c(0x288)][_0x26f67c(0x213)](_0x2bf373,_0x4fc28f,!0x1);if(!_0x110469(_0x5cf2c4))throw _0x5cf2c4[_0x26f67c(0x388)];_0x5aa555=_0x5cf2c4[_0x26f67c(0x338)],_0x525d88=_0x5cf2c4[_0x26f67c(0x1d0)];}else _0x5aa555=_0x2bf373,_0x525d88=[];let _0x475b62=this['_pendingMutations'];_0x5aa555[_0x26f67c(0x4a1)](_0x52dd11=>{const _0x3bf1e5=_0x26f67c;let _0x3b54ca;if(_0x475b62[_0x3bf1e5(0x4d3)]){const _0x3a3857=this[_0x3bf1e5(0x288)][_0x3bf1e5(0x2be)](_0x52dd11,_0x475b62);if(!_0x1707e0(_0x3a3857))throw _0x3a3857[_0x3bf1e5(0x388)];_0x3b54ca=_0x3a3857['c1Prime'],_0x475b62=_0x3a3857['m2Prime'];}else _0x3b54ca=_0x52dd11;this[_0x3bf1e5(0x3d2)](_0x3b54ca);}),this[_0x26f67c(0x398)]&&this[_0x26f67c(0x43f)](),this['_awaitingChangeset']&&_0x525d88['length']&&(_0x525d88[0x0][_0x26f67c(0x483)]=this['_getCurrentRevision']());let _0x48196e;if(this[_0x26f67c(0x41f)]&&_0x475b62[_0x26f67c(0x4d3)]!==0x0)_0x48196e=this['_injector']['createInstance'](W,this[_0x26f67c(0x3a7)],this[_0x26f67c(0x38d)],_0x525d88[0x0],_0x475b62,this['_handler']);else{if(this[_0x26f67c(0x41f)]&&_0x475b62['length']===0x0)_0x525d88[0x0]['baseRev']=this[_0x26f67c(0x316)](),_0x48196e=this[_0x26f67c(0x43e)]['createInstance'](q,this[_0x26f67c(0x3a7)],this['type'],_0x525d88[0x0],this[_0x26f67c(0x1bb)]);else{if(_0x475b62['length']!==0x0){const _0x38938c=this[_0x26f67c(0x43e)][_0x26f67c(0x1ce)](B,this[_0x26f67c(0x3a7)],this[_0x26f67c(0x38d)],_0x475b62,this[_0x26f67c(0x1bb)]);_0x38938c[_0x26f67c(0x19a)](),_0x48196e=_0x38938c;}else _0x48196e=this[_0x26f67c(0x43e)][_0x26f67c(0x1ce)](Ne,this[_0x26f67c(0x3a7)],this[_0x26f67c(0x38d)],this[_0x26f67c(0x1bb)]);}}return _0x48196e[_0x26f67c(0x499)](),_0x48196e;}catch(_0x2d189d){return this['_logService'][_0x26f67c(0x388)](_0x26f67c(0x1e6),_0x26f67c(0x36a),_0x2d189d),this['_injector'][_0x26f67c(0x1ce)](re,this[_0x26f67c(0x3a7)],this['type'],this['_awaitingChangeset'],this[_0x26f67c(0x462)],this[_0x26f67c(0x1bb)],!0x1);}}[_0x27a911(0x373)](){const _0x402674=_0x27a911;throw new Error(_0x402674(0x25f));}[_0x27a911(0x2d8)](_0x4ac113){const _0x59338f=_0x27a911;return this['_pendingMutations'][_0x59338f(0x477)](_0x4ac113),this;}[_0x27a911(0x26d)](_0xd700d1){const _0x198f7a=_0x27a911;return this[_0x198f7a(0x276)][_0x198f7a(0x477)](_0xd700d1),this;}[_0x27a911(0x326)](_0x1366c1){const _0x25d6d2=_0x27a911;if(this['_awaitingChangeset'])return this['_acknowledgedAwaitingChangeset']=this[_0x25d6d2(0x41f)],this[_0x25d6d2(0x41f)]=null,this;throw new Error(_0x25d6d2(0x33c));}[_0x27a911(0x478)](_0x4e0129){const _0x382ffd=_0x27a911;return this[_0x382ffd(0x42e)](!!(_0x4e0129!=null&&_0x4e0129[_0x382ffd(0x350)]));}[_0x27a911(0x282)](){const _0x3c24d1=_0x27a911;return this[_0x3c24d1(0x43e)][_0x3c24d1(0x1ce)](z,this[_0x3c24d1(0x3a7)],this[_0x3c24d1(0x38d)],this[_0x3c24d1(0x41f)],this[_0x3c24d1(0x462)],this['_handler']);}[_0x27a911(0x3ae)](){return this;}[_0x27a911(0x42e)](_0x51d179){const _0x49c805=_0x27a911;return this[_0x49c805(0x43e)][_0x49c805(0x1ce)](re,this[_0x49c805(0x3a7)],this[_0x49c805(0x38d)],this[_0x49c805(0x41f)],this[_0x49c805(0x462)],this[_0x49c805(0x1bb)],_0x51d179);}};G=oe([m(0x7,_0x1f782(_0x55b67e)),m(0x8,_0x1f782(_0x57a9f9)),m(0x9,_0x1f782(D)),m(0xa,_0x5e4d90),m(0xb,_0x22dfc9),m(0xc,_0x761a41),m(0xd,_0x28f8f5)],G);function Ms(_0x36f833,_0x18789c,_0x4869b8,_0x4af7b6,_0x241ca8,_0x4c9f3b){const _0x5524aa=_0x27a911;return _0x4af7b6&&_0x241ca8[_0x5524aa(0x4d3)]?_0x36f833[_0x5524aa(0x1ce)](W,_0x18789c,_0x4869b8,_0x4af7b6,_0x241ca8,_0x4c9f3b):_0x4af7b6?_0x36f833['createInstance'](q,_0x18789c,_0x4869b8,_0x4af7b6,_0x4c9f3b):_0x241ca8[_0x5524aa(0x4d3)]?_0x36f833[_0x5524aa(0x1ce)](B,_0x18789c,_0x4869b8,_0x241ca8,_0x4c9f3b):_0x36f833[_0x5524aa(0x1ce)](Ne,_0x18789c,_0x4869b8,_0x4c9f3b);}var Jn=Object['defineProperty'],qn=Object[_0x27a911(0x330)],tt=(_0x5392b7,_0x353051,_0x157a8b,_0x5eb368)=>{const _0x1fc08f=_0x27a911;for(var _0x115279=_0x5eb368>0x1?void 0x0:_0x5eb368?qn(_0x353051,_0x157a8b):_0x353051,_0x3beb01=_0x5392b7[_0x1fc08f(0x4d3)]-0x1,_0x53bffc;_0x3beb01>=0x0;_0x3beb01--)(_0x53bffc=_0x5392b7[_0x3beb01])&&(_0x115279=(_0x5eb368?_0x53bffc(_0x353051,_0x157a8b,_0x115279):_0x53bffc(_0x115279))||_0x115279);return _0x5eb368&&_0x115279&&Jn(_0x353051,_0x157a8b,_0x115279),_0x115279;},S=(_0x4241f5,_0x4c0f15)=>(_0x597b14,_0x52772d)=>_0x4c0f15(_0x597b14,_0x52772d,_0x4241f5);let De=class extends _0xe4c81a{constructor(_0x56b4c4,_0x22a611,_0x3f88b0){const _0x49df4b=_0x27a911;super(),l(this,'_entities',new Map()),l(this,_0x49df4b(0x26c),new _0x5a3e6d()),(this[_0x49df4b(0x43e)]=_0x56b4c4,this[_0x49df4b(0x292)]=_0x22a611,this[_0x49df4b(0x339)]=_0x3f88b0,this['_init']());}[_0x27a911(0x4de)](){const _0x491474=_0x27a911;super[_0x491474(0x4de)](),this[_0x491474(0x23b)][_0x491474(0x4a1)](_0x47dc4d=>_0x47dc4d[_0x491474(0x4de)]()),this[_0x491474(0x23b)]['clear']();}['getCollabEntity'](_0x2531d1){const _0x41d89a=_0x27a911;var _0x3dff72;return(_0x3dff72=this[_0x41d89a(0x23b)][_0x41d89a(0x26f)](_0x2531d1))!=null?_0x3dff72:null;}[_0x27a911(0x42f)](_0x567e50){const _0x380e77=_0x27a911,_0xcce463=this[_0x380e77(0x325)](_0x567e50);return _0xcce463?_0x4d7b9c(_0xcce463):this['_entityInit$'][_0x380e77(0x1a1)](_0x22f021(_0x35c0c7=>_0x35c0c7['unitID']===_0x567e50));}[_0x27a911(0x1f7)](){const _0x55c417=_0x27a911;this[_0x55c417(0x339)]['getTypeOfUnitAdded$'](_0x13af1a[_0x55c417(0x3c2)])[_0x55c417(0x1a1)](_0x39ba56(this['dispose$']),_0x22a006(0x10))[_0x55c417(0x307)](async _0x4a2399=>{const _0x3181d7=_0x55c417,_0x57679e=_0x4a2399[_0x3181d7(0x2ba)](),_0x5259c8=await this[_0x3181d7(0x4d9)](_0x57679e,H[_0x3181d7(0x3c2)]);this[_0x3181d7(0x23b)][_0x3181d7(0x19e)](_0x57679e,_0x5259c8);}),this[_0x55c417(0x339)][_0x55c417(0x46c)](_0x13af1a[_0x55c417(0x1c4)])[_0x55c417(0x1a1)](_0x39ba56(this[_0x55c417(0x1b0)]),_0x22a006(0x10))[_0x55c417(0x1a1)](_0x22f021(_0x223f12=>!_0x223f12[_0x55c417(0x2ba)]()[_0x55c417(0x2b4)]('__')))[_0x55c417(0x307)](async _0x4ef85c=>{const _0x5c5335=_0x55c417,_0x51b3eb=_0x4ef85c[_0x5c5335(0x2ba)](),_0x3d4014=await this['_startCollaboration'](_0x51b3eb,H[_0x5c5335(0x1c4)]);this[_0x5c5335(0x23b)][_0x5c5335(0x19e)](_0x51b3eb,_0x3d4014);}),_0xe2f998(this[_0x55c417(0x339)]['getTypeOfUnitDisposed$'](_0x13af1a[_0x55c417(0x3c2)]),this['_univerInstanceService'][_0x55c417(0x2e5)](_0x13af1a[_0x55c417(0x1c4)]))['pipe'](_0x39ba56(this['dispose$']))[_0x55c417(0x307)](_0x5923bb=>{const _0x23d8ca=_0x55c417,_0x134b21=_0x5923bb[_0x23d8ca(0x2ba)](),_0x479a0b=this[_0x23d8ca(0x23b)][_0x23d8ca(0x26f)](_0x134b21);_0x479a0b&&(_0x479a0b['dispose'](),this[_0x23d8ca(0x23b)][_0x23d8ca(0x21b)](_0x134b21));});}async[_0x27a911(0x4d9)](_0x332210,_0x53751f){const _0x44b3bb=_0x27a911,_0x17e6cd=await this[_0x44b3bb(0x292)][_0x44b3bb(0x337)](_0x332210),_0x57fe06=this[_0x44b3bb(0x43e)][_0x44b3bb(0x1ce)](this[_0x44b3bb(0x1ab)](_0x53751f),_0x332210,_0x53751f,_0x17e6cd);return await _0x57fe06[_0x44b3bb(0x4a4)](),this[_0x44b3bb(0x26c)][_0x44b3bb(0x24a)](_0x57fe06),_0x57fe06;}[_0x27a911(0x1ab)](_0xb9facb){const _0xdfe1b5=_0x27a911;switch(_0xb9facb){case H[_0xdfe1b5(0x1c4)]:return vt;case H['UNIVER_SHEET']:return pt;default:throw new Error(_0xdfe1b5(0x4ab)+_0xb9facb);}}};De=tt([_0x5cbde1(_0x2af1fa[_0x27a911(0x327)],De),S(0x0,_0x1f782(_0x55b67e)),S(0x1,_0x1f782(ge)),S(0x2,_0x41d661)],De);let ze=class extends _0xe4c81a{constructor(_0x539177,_0x314a3b,_0x59ee20,_0x386b26,_0x5b4c8a,_0x40c864,_0x5846e2,_0x6c579b,_0x499c90,_0x1c2506,_0x385e5a,_0x51454f,_0x49211e){const _0x3c3314=_0x27a911;super(),l(this,'_state$',new _0x3146d9(null)),l(this,_0x3c3314(0x1e9),this['_state$'][_0x3c3314(0x48c)]()),l(this,_0x3c3314(0x1fb)),l(this,_0x3c3314(0x433),!0x1),l(this,_0x3c3314(0x4a5),this[_0x3c3314(0x1e9)][_0x3c3314(0x1a1)](_0x3b7068(_0x5b0cfe=>_0x5b0cfe?_0x5b0cfe['status']:w[_0x3c3314(0x340)]),_0x199d34(0x1))),l(this,_0x3c3314(0x32c),!0x1),l(this,'_remoteChangesetQueue',[]),(this[_0x3c3314(0x3a7)]=_0x539177,this['_type']=_0x314a3b,this['_session']=_0x59ee20,this[_0x3c3314(0x43e)]=_0x386b26,this[_0x3c3314(0x1c1)]=_0x5b4c8a,this[_0x3c3314(0x323)]=_0x40c864,this['_localeService']=_0x5846e2,this[_0x3c3314(0x22a)]=_0x6c579b,this['_logService']=_0x499c90,this[_0x3c3314(0x274)]=_0x1c2506,this[_0x3c3314(0x402)]=_0x385e5a,this[_0x3c3314(0x1cc)]=_0x51454f,this[_0x3c3314(0x3c1)]=_0x49211e);}get[_0x27a911(0x1f3)](){return this['_state'];}async[_0x27a911(0x4a4)](){const _0x51018d=_0x27a911;if(this[_0x51018d(0x1f3)])throw new Error(_0x51018d(0x1e7));await this[_0x51018d(0x1f7)]();}[_0x27a911(0x2b3)](){return this['_collaborationPaused']=!0x0,_0x1726d4(()=>{const _0xa5ad=_0x5bd0;this[_0xa5ad(0x433)]=!0x1,this[_0xa5ad(0x31e)]();});}[_0x27a911(0x42c)](_0x3d062e){const _0x152981=_0x27a911;this[_0x152981(0x1fb)]=_0x3d062e,this[_0x152981(0x458)][_0x152981(0x24a)](_0x3d062e);}async[_0x27a911(0x1f7)](){const _0x403c9d=_0x27a911;var _0x5849d8;return this[_0x403c9d(0x42c)](await this[_0x403c9d(0x2a7)]()),this[_0x403c9d(0x3c1)]&&((_0x5849d8=this[_0x403c9d(0x3c1)])==null||_0x5849d8[_0x403c9d(0x1ad)](this['unitID']),this[_0x403c9d(0x3be)](_0x1726d4(this[_0x403c9d(0x3c1)][_0x403c9d(0x3db)](this[_0x403c9d(0x3a7)])[_0x403c9d(0x307)](_0x503963=>{const _0x216ab8=_0x403c9d;this['_logService'][_0x216ab8(0x4bd)](_0x216ab8(0x37b),_0x216ab8(0x303),_0x503963),_0x503963===ws[_0x216ab8(0x27f)]?(this[_0x216ab8(0x402)]['show']({'content':this[_0x216ab8(0x2e2)]['t'](_0x216ab8(0x39d)),'type':_0x471b9b[_0x216ab8(0x467)]}),this[_0x216ab8(0x1cc)][_0x216ab8(0x1a6)](new _0x3665b6(this[_0x216ab8(0x3a7)])['id'],!0x1)):this[_0x216ab8(0x1cc)][_0x216ab8(0x1a6)](new _0x3665b6(this[_0x216ab8(0x3a7)])['id'],!0x0);})))),this[_0x403c9d(0x3be)](_0x1726d4(this[_0x403c9d(0x35b)][_0x403c9d(0x4a2)][_0x403c9d(0x307)](_0x2c856b=>{const _0x458a9a=_0x403c9d;_0x2c856b===de[_0x458a9a(0x3e6)]?this[_0x458a9a(0x2bf)]():_0x2c856b===de[_0x458a9a(0x340)]&&this[_0x458a9a(0x3f7)]();}))),this[_0x403c9d(0x3be)](_0x1726d4(this[_0x403c9d(0x35b)]['event$']['subscribe'](_0x37e8e1=>{const _0x590e65=_0x403c9d;try{switch(_0x37e8e1['eventID']){case _0xc426c8[_0x590e65(0x432)]:{this['_onRemoteChangeset'](_0x9afb39(_0x37e8e1['data']));break;}case _0xc426c8['CHANGESET_ACK']:{this[_0x590e65(0x234)](_0x37e8e1['data']);break;}case _0xc426c8[_0x590e65(0x1df)]:{this[_0x590e65(0x3e3)]();break;}case _0xc426c8['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x590e65(0x4b6)](_0x37e8e1[_0x590e65(0x1a7)][_0x590e65(0x3a9)][_0x590e65(0x231)](_0x542b3c=>_0x9afb39(_0x542b3c)));break;}case _0xc426c8[_0x590e65(0x4c4)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x32333b){throw console[_0x590e65(0x388)](_0x590e65(0x466),_0x32333b),_0x32333b;}}))),this[_0x403c9d(0x1fb)];}[_0x27a911(0x40b)](){const _0x30e8c0=_0x27a911;this[_0x30e8c0(0x32c)]=!0x1;}[_0x27a911(0x41c)](){const _0x33bfa4=_0x27a911;if(this[_0x33bfa4(0x32c)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x33bfa4(0x32c)]=!0x0;}[_0x27a911(0x334)](_0x10801e){const _0x13c41a=_0x27a911;this[_0x13c41a(0x41c)](),this[_0x13c41a(0x42c)](this['_state']['appendMutation'](_0x10801e)),this[_0x13c41a(0x40b)]();}['_onRemoteChangeset'](_0x471b18){const _0x413ff3=_0x27a911;if(!(_0x471b18[_0x413ff3(0x336)]<=this[_0x413ff3(0x22a)]['getCurrentRevForDocument'](this[_0x413ff3(0x3a7)]))){if(this[_0x413ff3(0x433)]){this[_0x413ff3(0x1cd)]['push'](_0x471b18);return;}this[_0x413ff3(0x396)](_0x471b18);}}['_exhaustRemoteChangesetQueue'](){const _0x27c357=_0x27a911;this[_0x27c357(0x1cd)]['forEach'](_0x4bbafe=>this[_0x27c357(0x396)](_0x4bbafe)),this['_remoteChangesetQueue']=[];}[_0x27a911(0x396)](_0x55487e){const _0x393dc0=_0x27a911,_0x3f9b26=this[_0x393dc0(0x323)][_0x393dc0(0x411)]['fetchThroughInterceptors'](this[_0x393dc0(0x323)]['interceptor'][_0x393dc0(0x4d8)]()[_0x393dc0(0x30e)])(_0x55487e['mutations'],null)||_0x55487e['mutations'],_0x2dca78={..._0x55487e,'mutations':_0x3f9b26};this[_0x393dc0(0x41c)](),this[_0x393dc0(0x42c)](this[_0x393dc0(0x1fb)][_0x393dc0(0x26d)](_0x2dca78)),this[_0x393dc0(0x40b)]();}[_0x27a911(0x234)](_0x22360d){const _0x556b4e=_0x27a911;this[_0x556b4e(0x41c)](),this[_0x556b4e(0x42c)](this[_0x556b4e(0x1fb)]['onRemoteAck'](_0x22360d)),this[_0x556b4e(0x40b)]();}['_onRemoteRejected'](_0x40ca9c){const _0x3009ea=_0x27a911;this[_0x3009ea(0x41c)](),this[_0x3009ea(0x42c)](this[_0x3009ea(0x1fb)][_0x3009ea(0x478)](_0x40ca9c)),this[_0x3009ea(0x40b)]();}['_onFetchMissResult'](_0x48eea7){const _0x25505d=_0x27a911;if(!(this[_0x25505d(0x1fb)]instanceof G))throw new TypeError(_0x25505d(0x2c4));const _0xce1e0a=_0x48eea7[_0x25505d(0x231)](_0x2ec3df=>{const _0x243ebe=_0x25505d,_0x2e2033=this['_compressMutationService'][_0x243ebe(0x411)][_0x243ebe(0x31c)](this[_0x243ebe(0x323)]['interceptor'][_0x243ebe(0x4d8)]()['COMPRESS_MUTATION_APPLY'])(_0x2ec3df['mutations'],null)||_0x2ec3df['mutations'];return{..._0x2ec3df,'mutations':_0x2e2033};});this['_lockTransition'](),this['_updateState'](this[_0x25505d(0x1fb)][_0x25505d(0x378)](_0xce1e0a)),this[_0x25505d(0x40b)]();}[_0x27a911(0x3f7)](){const _0x423f70=_0x27a911;this['_lockTransition'](),this[_0x423f70(0x42c)](this['_state'][_0x423f70(0x282)]()),this[_0x423f70(0x40b)]();}[_0x27a911(0x2bf)](){const _0x4d0679=_0x27a911;this['_lockTransition'](),this[_0x4d0679(0x42c)](this[_0x4d0679(0x1fb)]['toggleOnline']()),this[_0x4d0679(0x40b)]();}async[_0x27a911(0x2a7)](){return new Promise(_0x34bc18=>{const _0x4716cf=_0x5bd0;this['_session'][_0x4716cf(0x4a2)][_0x4716cf(0x1a1)](_0x32697e(0x1))[_0x4716cf(0x307)](async _0x4c2d77=>{const _0xfe755=_0x4716cf;_0x34bc18(await this[_0xfe755(0x1d8)](_0x4c2d77===de['ONLINE']));});});}['_createHandler'](){const _0x4f3fb1=_0x27a911,_0x2b61f2=this[_0x4f3fb1(0x3a7)];return{'onStateChange':(_0x430354,_0x4f2dfa)=>{const _0x3834fb=_0x4f3fb1;if(_0x430354!==this[_0x3834fb(0x1fb)])throw new Error(_0x3834fb(0x2b7)+_0x430354['status']+_0x3834fb(0x2c0)+_0x4f2dfa[_0x3834fb(0x1da)]+'\x0aCurrent:\x20'+this[_0x3834fb(0x1fb)][_0x3834fb(0x1da)]);this[_0x3834fb(0x42c)](_0x4f2dfa);},'onSendChangeset':_0x1d874f=>{const _0x5b9895=_0x4f3fb1,_0x319fab={'eventID':_0xc426c8[_0x5b9895(0x399)],'data':{'unitID':_0x1d874f[_0x5b9895(0x3a7)],'unitType':this[_0x5b9895(0x226)],'changeset':_0x1d874f,'memberID':this['_session'][_0x5b9895(0x33d)]()}};this[_0x5b9895(0x35b)]['send'](_0x319fab,this['unitID']);},'onMissingChangesets':({from:_0x5969cf,to:_0x43196f})=>{const _0x37f7ac=_0x4f3fb1;this[_0x37f7ac(0x304)][_0x37f7ac(0x4bd)](_0x37f7ac(0x37b),_0x37f7ac(0x2a3)+_0x5969cf+_0x37f7ac(0x3b4)+_0x43196f);const _0x133bb1={'eventID':_0xc426c8[_0x37f7ac(0x1aa)],'data':{'unitID':_0x2b61f2,'unitType':this[_0x37f7ac(0x226)],'from':_0x5969cf,'to':_0x43196f}};this[_0x37f7ac(0x35b)][_0x37f7ac(0x39a)](_0x133bb1,this[_0x37f7ac(0x3a7)]);}};}async[_0x27a911(0x1d8)](_0xd36d88){const _0x28a417=_0x27a911;var _0x3427d7,_0x1a3b28;const _0x28b29c=await this[_0x28a417(0x1c1)]['loadOfflineData'](this[_0x28a417(0x3a7)]),_0x163383=(_0x3427d7=_0x28b29c==null?void 0x0:_0x28b29c['mutations'])!=null?_0x3427d7:[],_0x6aaec=(_0x1a3b28=_0x28b29c==null?void 0x0:_0x28b29c['awaitingChangeset'])!=null?_0x1a3b28:null,_0x9da981=this[_0x28a417(0x3a7)];try{this[_0x28a417(0x1c9)](_0x6aaec,_0x163383);}catch(_0x48728f){this['_logService'][_0x28a417(0x388)](_0x48728f);}const _0x79cd8=this[_0x28a417(0x2d0)]();if(_0xd36d88){const _0x382169=Ms(this['_injector'],_0x9da981,this[_0x28a417(0x226)],_0x6aaec,_0x163383,_0x79cd8);return _0x382169 instanceof B?_0x382169[_0x28a417(0x19a)]():(_0x382169 instanceof W||_0x382169 instanceof q)&&_0x382169[_0x28a417(0x373)](),_0x382169;}return this[_0x28a417(0x43e)][_0x28a417(0x1ce)](z,_0x9da981,this[_0x28a417(0x226)],_0x6aaec,_0x163383,_0x79cd8);}['_replayCachedMutations'](_0x4bf5a8,_0x58bb51){const _0x1743d0=_0x27a911;var _0x7c605,_0x307b63;const _0x31e3ee=this['_compressMutationService'][_0x1743d0(0x411)][_0x1743d0(0x31c)](this[_0x1743d0(0x323)][_0x1743d0(0x411)]['getInterceptPoints']()[_0x1743d0(0x30e)]);(_0x7c605=_0x31e3ee((_0x4bf5a8==null?void 0x0:_0x4bf5a8[_0x1743d0(0x1d2)])||[],null))==null||_0x7c605[_0x1743d0(0x4a1)](_0x2ace29=>this[_0x1743d0(0x274)][_0x1743d0(0x3f6)](_0x2ace29['id'],_0x2ace29['params'])),(_0x307b63=_0x31e3ee(_0x58bb51||[],null))==null||_0x307b63[_0x1743d0(0x4a1)](_0x29f8a1=>this[_0x1743d0(0x274)][_0x1743d0(0x3f6)](_0x29f8a1['id'],_0x29f8a1['params']));}};ze=tt([S(0x3,_0x1f782(_0x55b67e)),S(0x4,_0x1f782(D)),S(0x5,_0x1f782(_0x36ba7a)),S(0x6,_0x1f782(_0x262e83)),S(0x7,_0x1f782(_0x57a9f9)),S(0x8,_0x5e4d90),S(0x9,_0x22dfc9),S(0xa,_0x3bfc5b),S(0xb,_0x1a3671),S(0xc,_0x275bb1(et))],ze);let vt=class extends ze{constructor(_0x439ee4,_0x16268e,_0xa6fbb4,_0x3d3212,_0x2cb967,_0x52de1e,_0x52d045,_0x52701a,_0x1fe4e8,_0x5cc439,_0xbcd3b3,_0xed5397,_0xe558ed,_0x53b44f,_0x1107c8,_0x2041bb,_0x3e048b){const _0x46303c=_0x27a911;super(_0x439ee4,_0x16268e,_0xa6fbb4,_0x3d3212,_0x2cb967,_0x52de1e,_0x52d045,_0x52701a,_0xe558ed,_0x53b44f,_0x1107c8,_0x2041bb,_0x3e048b),this[_0x46303c(0x3a7)]=_0x439ee4,this[_0x46303c(0x38d)]=_0x16268e,this['session']=_0xa6fbb4,this['_docStateChangeManagerService']=_0x1fe4e8,this[_0x46303c(0x3af)]=_0x5cc439,this[_0x46303c(0x4df)]=_0xbcd3b3,this['_docSyncEditingCollabCursorService']=_0xed5397;}[_0x27a911(0x2d0)](){const _0x35f278=_0x27a911,_0x3a764b=super[_0x35f278(0x2d0)]();return _0x3a764b[_0x35f278(0x227)]=_0x2fd645=>this[_0x35f278(0x3af)]['transformIMECache'](_0x2fd645),_0x3a764b[_0x35f278(0x2d1)]=_0x40d6ee=>this[_0x35f278(0x4df)][_0x35f278(0x342)](_0x40d6ee),_0x3a764b[_0x35f278(0x43c)]=_0x4fe18e=>this[_0x35f278(0x3a6)][_0x35f278(0x440)](_0x4fe18e),_0x3a764b[_0x35f278(0x258)]=_0x35966d=>this[_0x35f278(0x3af)][_0x35f278(0x341)](_0x35966d),_0x3a764b;}async[_0x27a911(0x1f7)](){const _0x4c8361=_0x27a911,_0x289380=await super['_init']();return this[_0x4c8361(0x4a9)][_0x4c8361(0x290)][_0x4c8361(0x1a1)](_0x39ba56(this[_0x4c8361(0x1b0)]))[_0x4c8361(0x307)](_0x5d55c7=>{const _0x9ff0fa=_0x4c8361;if(_0x5d55c7==null)return;const {unitId:_0x32a7ae,redoState:_0x14e80b,commandId:_0xe60f73}=_0x5d55c7;if(_0x32a7ae!==this[_0x9ff0fa(0x3a7)])return;const _0x3f1e20={'id':_0xe60f73,'type':_0x3b3d9c[_0x9ff0fa(0x222)],'params':{'unitId':_0x32a7ae,'actions':_0x14e80b['actions'],'textRanges':null}};this[_0x9ff0fa(0x334)](_0x3f1e20);}),_0x289380;}};vt=tt([S(0x3,_0x1f782(_0x55b67e)),S(0x4,_0x1f782(D)),S(0x5,_0x1f782(_0x36ba7a)),S(0x6,_0x1f782(_0x262e83)),S(0x7,_0x1f782(_0x57a9f9)),S(0x8,_0x1f782(_0x17b017)),S(0x9,_0x1f782(Xe)),S(0xa,_0x1f782(Je)),S(0xb,_0x1f782(Ut)),S(0xc,_0x5e4d90),S(0xd,_0x22dfc9),S(0xe,_0x3bfc5b),S(0xf,_0x1a3671),S(0x10,_0x275bb1(et))],vt);let pt=class extends ze{constructor(_0x506dcd,_0x2ef279,_0x4cafc8,_0x1055e1,_0x512eaa,_0x807eb4,_0x406d7e,_0x13a04b,_0x4c8121,_0x478a77,_0x14ad3b,_0x42bbeb,_0xed6fa4,_0x4e60b6){const _0x3a2eae=_0x27a911;super(_0x506dcd,_0x2ef279,_0x4cafc8,_0x1055e1,_0x512eaa,_0x807eb4,_0x406d7e,_0x13a04b,_0x478a77,_0x14ad3b,_0x42bbeb,_0xed6fa4,_0x4e60b6),this[_0x3a2eae(0x3a7)]=_0x506dcd,this[_0x3a2eae(0x38d)]=_0x2ef279,this['session']=_0x4cafc8,this[_0x3a2eae(0x255)]=_0x4c8121;}[_0x27a911(0x2d0)](){const _0x1d2315=_0x27a911,_0x553ac4=super['_createHandler']();return _0x553ac4[_0x1d2315(0x2d1)]=_0x222b40=>this[_0x1d2315(0x255)][_0x1d2315(0x342)](_0x222b40),_0x553ac4;}async['_init'](){const _0xcfe133=_0x27a911,_0x4145b1=await super[_0xcfe133(0x1f7)]();return this['disposeWithMe'](this[_0xcfe133(0x274)]['onCommandExecuted']((_0x2e578d,_0x1155e9)=>{const _0x6c6e79=_0xcfe133;if(_0x2e578d['type']!==_0x3b3d9c['MUTATION']||_0x1155e9!=null&&_0x1155e9[_0x6c6e79(0x447)]||_0x1155e9!=null&&_0x1155e9[_0x6c6e79(0x322)])return;const _0x3bdb01=_0x2e578d[_0x6c6e79(0x26a)];if((_0x3bdb01==null?void 0x0:_0x3bdb01['unitId'])!==this[_0x6c6e79(0x3a7)])return;const _0x404087=_0x2e578d,_0x2cc21d=this[_0x6c6e79(0x323)][_0x6c6e79(0x411)][_0x6c6e79(0x31c)](this['_compressMutationService'][_0x6c6e79(0x411)][_0x6c6e79(0x4d8)]()['COMPRESS_MUTATION_SEND'])([_0x404087],null)||[_0x404087];this[_0x6c6e79(0x334)](_0x2cc21d[0x0]);})),_0x4145b1;}};pt=tt([S(0x3,_0x1f782(_0x55b67e)),S(0x4,_0x1f782(D)),S(0x5,_0x1f782(_0x36ba7a)),S(0x6,_0x1f782(_0x262e83)),S(0x7,_0x1f782(_0x57a9f9)),S(0x8,_0x1f782(qe)),S(0x9,_0x5e4d90),S(0xa,_0x22dfc9),S(0xb,_0x3bfc5b),S(0xc,_0x1a3671),S(0xd,_0x275bb1(et))],pt);const es=[_0x27a911(0x4c3),_0x27a911(0x2cb),_0x27a911(0x424),_0x27a911(0x315),_0x27a911(0x19f),_0x27a911(0x1e3)];class Lt extends _0xd60028{constructor(){const _0x509408=_0x27a911;super(...arguments),l(this,_0x509408(0x3fa),new Map()),l(this,_0x509408(0x4b2),0x0);}[_0x27a911(0x22d)](_0x3be5c3){const _0x2d6ca8=_0x27a911;if(this['_assignedColors'][_0x2d6ca8(0x496)](_0x3be5c3))return this[_0x2d6ca8(0x3fa)]['get'](_0x3be5c3);const _0x567115=es[this['_colorIndex']];return this['_colorIndex']=(this[_0x2d6ca8(0x4b2)]+0x1)%es['length'],this[_0x2d6ca8(0x3fa)]['set'](_0x3be5c3,_0x567115),_0x567115;}}var zn=Object['defineProperty'],Zn=Object[_0x27a911(0x330)],Qn=(_0x488212,_0x198215,_0x9b4cee,_0x40999e)=>{const _0x52f475=_0x27a911;for(var _0x1de2f7=_0x40999e>0x1?void 0x0:_0x40999e?Zn(_0x198215,_0x9b4cee):_0x198215,_0x1c9279=_0x488212[_0x52f475(0x4d3)]-0x1,_0x80deb5;_0x1c9279>=0x0;_0x1c9279--)(_0x80deb5=_0x488212[_0x1c9279])&&(_0x1de2f7=(_0x40999e?_0x80deb5(_0x198215,_0x9b4cee,_0x1de2f7):_0x80deb5(_0x1de2f7))||_0x1de2f7);return _0x40999e&&_0x1de2f7&&zn(_0x198215,_0x9b4cee,_0x1de2f7),_0x1de2f7;},he=(_0x33c4e5,_0x201d47)=>(_0x402cfc,_0x3a598f)=>_0x201d47(_0x402cfc,_0x3a598f,_0x33c4e5);const er=0x12c,tr=0x64,sr=()=>{let _0x1b6a76=[],_0x2124e9=!0x1;return _0x497407=>{const _0x2fafa2=_0x5bd0;_0x1b6a76[_0x2fafa2(0x477)](_0x497407),_0x2124e9||(_0x2124e9=!0x0,setTimeout(()=>{const _0x410cee=_0x2fafa2;_0x1b6a76[_0x410cee(0x4a1)](_0x399cc1=>_0x399cc1()),_0x1b6a76=[],_0x2124e9=!0x1;}));};};let It=class extends _0xe4c81a{constructor(_0x3495cb,_0xaafb7a,_0x5d2825,_0x495040,_0x55d1f2,_0x5105f3,_0x4c942c,_0x15506b){const _0x494802=_0x27a911;super(),l(this,_0x494802(0x32f),!0x1),l(this,_0x494802(0x1f7),!0x1),l(this,_0x494802(0x35e),new _0x3146d9(new Map())),l(this,_0x494802(0x3f5),this[_0x494802(0x35e)]['asObservable']()),l(this,'_roomMembers$',new _0x3146d9([])),l(this,_0x494802(0x204),this['_roomMembers$'][_0x494802(0x1a1)](_0x416b32(er))),l(this,_0x494802(0x405),_0x441295((_0xd84a39,_0x16b4cb)=>{const _0x621b9d=_0x494802,_0x555332={'eventID':_0xc426c8['UPDATE_CURSOR'],'data':{'unitID':this[_0x621b9d(0x3a7)],'memberID':this['_session'][_0x621b9d(0x33d)](),'selection':_0x344d14(_0xd84a39,_0x16b4cb[_0x621b9d(0x212)])}};this[_0x621b9d(0x35b)][_0x621b9d(0x39a)](_0x555332,this[_0x621b9d(0x3a7)]);},tr)),(this[_0x494802(0x3a7)]=_0x3495cb,this[_0x494802(0x35b)]=_0xaafb7a,this[_0x494802(0x43e)]=_0x5d2825,this['_colorAssignService']=_0x495040,this[_0x494802(0x371)]=_0x55d1f2,this['_univerInstanceService']=_0x5105f3,this[_0x494802(0x274)]=_0x4c942c,this[_0x494802(0x494)]=_0x15506b);}get[_0x27a911(0x403)](){const _0x26450a=_0x27a911;return this[_0x26450a(0x35e)]['getValue']();}get['roomMembers'](){const _0x3516b9=_0x27a911;return this[_0x3516b9(0x1b2)][_0x3516b9(0x45b)]();}[_0x27a911(0x4de)](){const _0x4d3521=_0x27a911;super[_0x4d3521(0x4de)](),this[_0x4d3521(0x35e)][_0x4d3521(0x24a)](new Map()),this[_0x4d3521(0x35e)][_0x4d3521(0x44b)](),this['_roomMembers$'][_0x4d3521(0x24a)]([]),this[_0x4d3521(0x1b2)][_0x4d3521(0x44b)]();}[_0x27a911(0x4a4)](){const _0x53e3b0=_0x27a911;this[_0x53e3b0(0x1f7)]||(this[_0x53e3b0(0x1f7)]=!0x0,this[_0x53e3b0(0x35b)]['sessionStatus$'][_0x53e3b0(0x1a1)](_0x39ba56(this['dispose$']))[_0x53e3b0(0x307)](_0x32705d=>{const _0x2a1533=_0x53e3b0;_0x32705d===de[_0x2a1533(0x3e6)]?this[_0x2a1533(0x2bf)]():this[_0x2a1533(0x3f7)]();}),this[_0x53e3b0(0x35b)][_0x53e3b0(0x28f)][_0x53e3b0(0x1a1)](_0x39ba56(this[_0x53e3b0(0x1b0)]))['subscribe'](_0x31da54=>{const _0x21e1ee=_0x53e3b0,_0xe79044=_0x31da54[_0x21e1ee(0x35d)];_0xe79044===_0xc426c8['UPDATE_CURSOR']&&this[_0x21e1ee(0x351)](_0x31da54),_0xe79044===_0xc426c8[_0x21e1ee(0x311)]&&this[_0x21e1ee(0x3b3)](_0x31da54);}),this[_0x53e3b0(0x2f2)](),this[_0x53e3b0(0x3be)](this[_0x53e3b0(0x274)][_0x53e3b0(0x1ac)](_0x1f91a6=>{const _0x3af680=_0x53e3b0;if(this[_0x3af680(0x32f)]&&_0x1f91a6['id']===_0x3e4a02['id']&&_0x1f91a6[_0x3af680(0x26a)]['unitId']===this[_0x3af680(0x3a7)]){const _0x2accae=_0x1f91a6[_0x3af680(0x26a)];this[_0x3af680(0x405)](_0x2accae['subUnitId'],_0x2accae[_0x3af680(0x27a)][0x0]);}})));}[_0x27a911(0x351)](_0x28d8b5){const _0x492014=_0x27a911;var _0x17a799,_0x4a8a09;const {memberID:_0x19f3b5,selection:_0x1df216}=_0x28d8b5['data'],{sheetName:_0x277c4f,range:_0x5592bc}=_0x510d94(_0x1df216),_0x33909b={'name':(_0x4a8a09=(_0x17a799=this['_memberService']['getMember'](this[_0x492014(0x3a7)],_0x19f3b5))==null?void 0x0:_0x17a799[_0x492014(0x2e1)])!=null?_0x4a8a09:_0x492014(0x2e8),'range':this[_0x492014(0x287)](_0x277c4f,_0x5592bc),'sheetID':_0x277c4f,'color':this[_0x492014(0x2d3)][_0x492014(0x22d)](_0x19f3b5),'selection':_0x1df216},_0x650dc1=this[_0x492014(0x403)];_0x650dc1[_0x492014(0x19e)](_0x19f3b5,_0x33909b),this[_0x492014(0x35e)][_0x492014(0x24a)](_0x650dc1);}[_0x27a911(0x3b3)](_0x31b342){const _0x700748=_0x27a911,{memberID:_0x5abc70}=_0x31b342[_0x700748(0x1a7)],_0x2e3db9=this[_0x700748(0x403)];_0x2e3db9[_0x700748(0x21b)](_0x5abc70),this[_0x700748(0x35e)][_0x700748(0x24a)](_0x2e3db9);}[_0x27a911(0x287)](_0x7b5cd6,_0x14cf51){const _0x3c7b74=_0x27a911;var _0x2d532a,_0xa966df;const _0x527cc4=(_0xa966df=(_0x2d532a=this[_0x3c7b74(0x339)][_0x3c7b74(0x352)](this[_0x3c7b74(0x3a7)]))==null?void 0x0:_0x2d532a['getSheetBySheetId'](_0x7b5cd6))==null?void 0x0:_0xa966df[_0x3c7b74(0x368)]();return(_0x527cc4==null?void 0x0:_0x527cc4[_0x3c7b74(0x414)](_0x58c1df=>_0x58a1b2['contains'](_0x58c1df,_0x14cf51)))||_0x14cf51;}['_onRefRangeChange'](){const _0x5bd453=_0x27a911,_0x570770=new _0x40c494(),_0x4aec92=sr(),_0x36f9e9=()=>{const _0x50e7a5=_0x5bd0;_0x570770[_0x50e7a5(0x4de)]();const _0x1483d8=(_0x589341,_0x28f5a6,_0x1b0b33,_0x222802)=>{const _0x59dc74=_0x50e7a5;let _0x2e5077=[];switch(_0x589341['id']){case _0x27bec1['DeleteRangeMoveLeftCommandId']:{_0x2e5077=_0xed6964(_0x589341,_0x222802);break;}case _0x27bec1[_0x59dc74(0x1a4)]:{_0x2e5077=_0xa581dc(_0x589341,_0x222802);break;}case _0x27bec1['InsertColCommandId']:{_0x2e5077=_0x1980aa(_0x589341,_0x222802);break;}case _0x27bec1[_0x59dc74(0x439)]:{_0x2e5077=_0x3e0ba6(_0x589341,_0x222802);break;}case _0x27bec1[_0x59dc74(0x445)]:{_0x2e5077=_0x8a8f2b(_0x589341,_0x222802);break;}case _0x27bec1[_0x59dc74(0x474)]:{_0x2e5077=_0x49682a(_0x589341,_0x222802);break;}case _0x27bec1[_0x59dc74(0x365)]:{_0x2e5077=_0x2abaa2(_0x589341,_0x222802);break;}case _0x27bec1[_0x59dc74(0x4ba)]:{_0x2e5077=_0x58b3d6(_0x589341,_0x222802);break;}case _0x27bec1['RemoveRowCommandId']:{_0x2e5077=_0x23a55f(_0x589341,_0x222802);break;}}const _0x4d6c9c=_0x3a9738(_0x2e5077,_0x222802),_0x1ebf9d=this[_0x59dc74(0x403)][_0x59dc74(0x26f)](_0x28f5a6);if(_0x1ebf9d&&_0x4d6c9c){const _0x26a85d={..._0x1ebf9d,'range':_0x4d6c9c};this[_0x59dc74(0x403)][_0x59dc74(0x19e)](_0x28f5a6,_0x26a85d),_0x4aec92(()=>{const _0x1367d6=_0x59dc74,_0x2f4815=this['_refRangeService'][_0x1367d6(0x347)](_0x4d6c9c,_0x456a02=>(_0x2f4815[_0x1367d6(0x4de)](),_0x1483d8(_0x456a02,_0x28f5a6,_0x1b0b33,_0x4d6c9c)));_0x570770['add'](_0x2f4815);});}return{'redos':[],'undos':[]};};this[_0x50e7a5(0x403)][_0x50e7a5(0x4a1)]((_0x3487c7,_0x369640)=>{const _0x826c06=_0x50e7a5,{range:_0x68e61f,sheetID:_0x142ec3}=_0x3487c7,_0x30a969=this['_refRangeService']['registerRefRange'](_0x68e61f,_0x51cdbc=>(_0x30a969[_0x826c06(0x4de)](),_0x1483d8(_0x51cdbc,_0x369640,_0x142ec3,_0x68e61f)));_0x570770[_0x826c06(0x3cf)](_0x30a969);});};this[_0x5bd453(0x3be)](_0x1726d4(this['_cursorInfo$'][_0x5bd453(0x307)](()=>{_0x36f9e9();})));}[_0x27a911(0x2bf)](){const _0x2f7a5c=_0x27a911;var _0x48cc9e,_0x4b8b27;if(this[_0x2f7a5c(0x32f)]=!0x0,((_0x48cc9e=this[_0x2f7a5c(0x339)][_0x2f7a5c(0x25a)]())==null?void 0x0:_0x48cc9e[_0x2f7a5c(0x2ba)]())!==this[_0x2f7a5c(0x3a7)])return;const _0x1cd481=(_0x4b8b27=this['_injector'][_0x2f7a5c(0x26f)](_0x378282)[_0x2f7a5c(0x3c8)]())==null?void 0x0:_0x4b8b27[0x0],_0x4676ad=this['_univerInstanceService'][_0x2f7a5c(0x306)](_0x13af1a[_0x2f7a5c(0x3c2)])[_0x2f7a5c(0x199)]();_0x1cd481&&_0x4676ad&&this[_0x2f7a5c(0x405)](_0x4676ad[_0x2f7a5c(0x369)](),_0x1cd481);}[_0x27a911(0x3f7)](){const _0x2fbd1e=_0x27a911;this[_0x2fbd1e(0x32f)]=!0x1;}};It=Qn([he(0x2,_0x1f782(_0x55b67e)),he(0x3,_0x1f782(Lt)),he(0x4,_0x1f782(ne)),he(0x5,_0x41d661),he(0x6,_0x22dfc9),he(0x7,_0x1f782(_0x35deed))],It);var ir=Object['defineProperty'],nr=Object[_0x27a911(0x330)],rr=(_0x1aa136,_0x4a55cf,_0x41c8e5,_0x2af1da)=>{const _0x1e89c3=_0x27a911;for(var _0x5c85b5=_0x2af1da>0x1?void 0x0:_0x2af1da?nr(_0x4a55cf,_0x41c8e5):_0x4a55cf,_0x17a177=_0x1aa136[_0x1e89c3(0x4d3)]-0x1,_0x9fb4f3;_0x17a177>=0x0;_0x17a177--)(_0x9fb4f3=_0x1aa136[_0x17a177])&&(_0x5c85b5=(_0x2af1da?_0x9fb4f3(_0x4a55cf,_0x41c8e5,_0x5c85b5):_0x9fb4f3(_0x5c85b5))||_0x5c85b5);return _0x2af1da&&_0x5c85b5&&ir(_0x4a55cf,_0x41c8e5,_0x5c85b5),_0x5c85b5;},te=(_0x5be580,_0x237116)=>(_0x5eb81b,_0x59aae6)=>_0x237116(_0x5eb81b,_0x59aae6,_0x5be580);const or=0x12c,ar=0x64;let Et=class extends _0xe4c81a{constructor(_0x556383,_0x321257,_0x3322e5,_0x57ad76,_0x177c7d,_0x29c770,_0x56b9a8,_0x4c54ff,_0x35cb2f){const _0x25eecc=_0x27a911;super(),l(this,_0x25eecc(0x32f),!0x1),l(this,_0x25eecc(0x1f7),!0x1),l(this,'_cursorInfo$',new _0x3146d9(new Map())),l(this,_0x25eecc(0x3f5),this['_cursorInfo$'][_0x25eecc(0x48c)]()),l(this,'_roomMembers$',new _0x3146d9([])),l(this,'roomMembers$',this[_0x25eecc(0x1b2)]['pipe'](_0x416b32(or))),l(this,_0x25eecc(0x405),_0x441295(_0x1a6ca1=>{const _0x4efec9=_0x25eecc,_0x165977={'eventID':_0xc426c8['UPDATE_CURSOR'],'data':{'unitID':this[_0x4efec9(0x3a7)],'memberID':this[_0x4efec9(0x35b)][_0x4efec9(0x33d)](),'selection':Ns(_0x1a6ca1)}};this[_0x4efec9(0x35b)]['send'](_0x165977,this[_0x4efec9(0x3a7)]);},ar)),(this[_0x25eecc(0x3a7)]=_0x556383,this[_0x25eecc(0x35b)]=_0x321257,this[_0x25eecc(0x43e)]=_0x3322e5,this[_0x25eecc(0x2d3)]=_0x57ad76,this[_0x25eecc(0x371)]=_0x177c7d,this[_0x25eecc(0x29c)]=_0x29c770,this[_0x25eecc(0x288)]=_0x56b9a8,this[_0x25eecc(0x339)]=_0x4c54ff,this[_0x25eecc(0x274)]=_0x35cb2f);}get[_0x27a911(0x403)](){const _0x2513be=_0x27a911;return this[_0x2513be(0x35e)][_0x2513be(0x45b)]();}get[_0x27a911(0x268)](){const _0x6a91a8=_0x27a911;return this['_roomMembers$'][_0x6a91a8(0x45b)]();}[_0x27a911(0x4de)](){const _0x5a390d=_0x27a911;super['dispose'](),this[_0x5a390d(0x35e)][_0x5a390d(0x24a)](new Map()),this[_0x5a390d(0x35e)][_0x5a390d(0x44b)](),this[_0x5a390d(0x1b2)]['next']([]),this[_0x5a390d(0x1b2)]['complete']();}[_0x27a911(0x4a4)](){const _0x4b30b5=_0x27a911;this[_0x4b30b5(0x1f7)]||(this['_init']=!0x0,this['_session'][_0x4b30b5(0x4a2)][_0x4b30b5(0x1a1)](_0x39ba56(this[_0x4b30b5(0x1b0)]))[_0x4b30b5(0x307)](_0x44ea6c=>{const _0x3e9dba=_0x4b30b5;_0x44ea6c===de[_0x3e9dba(0x3e6)]?this['_toggleOnline']():this[_0x3e9dba(0x3f7)]();}),this[_0x4b30b5(0x35b)][_0x4b30b5(0x28f)][_0x4b30b5(0x1a1)](_0x39ba56(this[_0x4b30b5(0x1b0)]))[_0x4b30b5(0x307)](_0x1b8847=>{const _0x1dc62b=_0x4b30b5,_0x2a6de3=_0x1b8847[_0x1dc62b(0x35d)];_0x2a6de3===_0xc426c8[_0x1dc62b(0x44f)]&&this[_0x1dc62b(0x351)](_0x1b8847),_0x2a6de3===_0xc426c8[_0x1dc62b(0x311)]&&this[_0x1dc62b(0x3b3)](_0x1b8847);}),this[_0x4b30b5(0x3be)](this['_commandService'][_0x4b30b5(0x1ac)](_0x5755a5=>{const _0x463447=_0x4b30b5,_0x302168=_0x5755a5[_0x463447(0x26a)];_0x302168!=null&&this[_0x463447(0x32f)]&&_0x5755a5['id']===_0x5812ee['id']&&_0x302168['unitId']===this[_0x463447(0x3a7)]&&_0x302168[_0x463447(0x20a)]===!0x1&&this[_0x463447(0x405)](_0x302168['ranges']);})),this[_0x4b30b5(0x29c)][_0x4b30b5(0x215)][_0x4b30b5(0x1a1)](_0x39ba56(this[_0x4b30b5(0x1b0)]))[_0x4b30b5(0x307)](_0x533ecf=>{const _0x48dc83=_0x4b30b5;if((_0x533ecf==null?void 0x0:_0x533ecf['unitID'])!==this[_0x48dc83(0x3a7)])return;const _0x15655e={'eventID':_0xc426c8[_0x48dc83(0x44f)],'data':_0x533ecf};this['_onCursorUpdate'](_0x15655e);}),this['disposeWithMe'](this[_0x4b30b5(0x274)]['onCommandExecuted'](_0x3e3dae=>{const _0x41dded=_0x4b30b5;if(_0x3e3dae[_0x41dded(0x26a)]==null)return;const _0x6b9766=_0x3e3dae[_0x41dded(0x26a)];if(_0x3e3dae['id']!==_0x33145a['id']||_0x6b9766[_0x41dded(0x249)]!==this[_0x41dded(0x3a7)])return;const _0x16adb9={'id':_0x41dded(0x448),'params':_0x6b9766},_0x1bfb70=this['cursorInfo'];for(const [_0x23cc12,_0x35a39c]of _0x1bfb70){const _0x4dfacd={'id':_0x41dded(0x448),'params':{'unitId':this[_0x41dded(0x3a7)],'actions':null,'textRanges':_0x35a39c[_0x41dded(0x263)]}},_0xf0ecf5=this[_0x41dded(0x288)][_0x41dded(0x360)](_0x16adb9,_0x4dfacd,!0x1);if(_0x21109a(_0xf0ecf5))throw _0xf0ecf5[_0x41dded(0x388)];_0x1bfb70['set'](_0x23cc12,{..._0x35a39c,'ranges':_0xf0ecf5[_0x41dded(0x2d4)][_0x41dded(0x26a)][_0x41dded(0x23a)]});}queueMicrotask(()=>{const _0x24cf04=_0x41dded;this[_0x24cf04(0x35e)][_0x24cf04(0x24a)](_0x1bfb70);});})));}['_onCursorUpdate'](_0x25f0fd){const _0x47a8dc=_0x27a911;var _0x579a11,_0x40f573;const {memberID:_0x36b34c,selection:_0x42c84e}=_0x25f0fd[_0x47a8dc(0x1a7)],_0x2a5b22=xn(_0x42c84e),_0x43bc72=(_0x40f573=(_0x579a11=this[_0x47a8dc(0x371)][_0x47a8dc(0x425)](this['unitID'],_0x36b34c))==null?void 0x0:_0x579a11['name'])!=null?_0x40f573:_0x47a8dc(0x2e8),_0xeae0ff={'color':this[_0x47a8dc(0x2d3)][_0x47a8dc(0x22d)](_0x36b34c),'name':_0x43bc72,'ranges':_0x2a5b22},_0x1a23e3=this[_0x47a8dc(0x403)];_0x1a23e3[_0x47a8dc(0x19e)](_0x36b34c,_0xeae0ff),this[_0x47a8dc(0x35e)][_0x47a8dc(0x24a)](_0x1a23e3);}[_0x27a911(0x3b3)](_0x4b08d4){const _0x164225=_0x27a911,{memberID:_0x3ed1cd}=_0x4b08d4['data'],_0x42ad60=this['cursorInfo'];_0x42ad60[_0x164225(0x21b)](_0x3ed1cd),this[_0x164225(0x35e)][_0x164225(0x24a)](_0x42ad60);}[_0x27a911(0x2bf)](){const _0x4fa7d1=_0x27a911;var _0x2a1cae;if(this[_0x4fa7d1(0x32f)]=!0x0,((_0x2a1cae=this[_0x4fa7d1(0x339)][_0x4fa7d1(0x25a)]())==null?void 0x0:_0x2a1cae[_0x4fa7d1(0x2ba)]())!==this['unitID'])return;const _0x3f8d87=this[_0x4fa7d1(0x43e)][_0x4fa7d1(0x26f)](_0x1f4972)[_0x4fa7d1(0x3c8)](),_0x4fcbea=_0x3f8d87==null?void 0x0:_0x3f8d87[_0x4fa7d1(0x231)](_0x402695);Array[_0x4fa7d1(0x3f8)](_0x4fcbea)&&_0x4fcbea[_0x4fa7d1(0x4d3)]>0x0&&this[_0x4fa7d1(0x405)](_0x4fcbea);}['_toggleOffline'](){const _0x1dfb0f=_0x27a911;this[_0x1dfb0f(0x32f)]=!0x1;}};Et=rr([te(0x2,_0x1f782(_0x55b67e)),te(0x3,_0x1f782(Lt)),te(0x4,_0x1f782(ne)),te(0x5,_0x1f782(Ut)),te(0x6,_0x28f8f5),te(0x7,_0x41d661),te(0x8,_0x22dfc9)],Et);var cr=Object[_0x27a911(0x29f)],hr=Object['getOwnPropertyDescriptor'],lr=(_0x9333fa,_0x7830d,_0x24afcd,_0x361aaa)=>{const _0x246312=_0x27a911;for(var _0x5bf47c=_0x361aaa>0x1?void 0x0:_0x361aaa?hr(_0x7830d,_0x24afcd):_0x7830d,_0x473986=_0x9333fa[_0x246312(0x4d3)]-0x1,_0x16d83c;_0x473986>=0x0;_0x473986--)(_0x16d83c=_0x9333fa[_0x473986])&&(_0x5bf47c=(_0x361aaa?_0x16d83c(_0x7830d,_0x24afcd,_0x5bf47c):_0x16d83c(_0x5bf47c))||_0x5bf47c);return _0x361aaa&&_0x5bf47c&&cr(_0x7830d,_0x24afcd,_0x5bf47c),_0x5bf47c;},ct=(_0x104418,_0x3040c6)=>(_0x10d7d6,_0x48b168)=>_0x3040c6(_0x10d7d6,_0x48b168,_0x104418);let fe=class extends _0xe4c81a{constructor(_0x2022bb,_0x459cb0,_0x5261ce){const _0x23f0e0=_0x27a911;super(),l(this,_0x23f0e0(0x23b),new Map()),l(this,_0x23f0e0(0x26c),new _0x5a3e6d()),(this[_0x23f0e0(0x339)]=_0x2022bb,this[_0x23f0e0(0x43e)]=_0x459cb0,this['_collabSessionService']=_0x5261ce,this[_0x23f0e0(0x1f7)]());}['dispose'](){const _0x508cbc=_0x27a911;super['dispose'](),this[_0x508cbc(0x26c)]['complete'](),this['_entities'][_0x508cbc(0x4a1)](_0xbe86f1=>_0xbe86f1[_0x508cbc(0x4de)]());}['getCollabCursors$'](_0x212376){const _0x52ff67=_0x27a911;return this[_0x52ff67(0x23b)][_0x52ff67(0x496)](_0x212376)?this[_0x52ff67(0x23b)][_0x52ff67(0x26f)](_0x212376)[_0x52ff67(0x3f5)]:this[_0x52ff67(0x26c)][_0x52ff67(0x1a1)](_0x10e932(_0x50cebe=>_0x50cebe[_0x52ff67(0x3a7)]===_0x212376),_0x508547(_0xc372bf=>_0xc372bf[_0x52ff67(0x3f5)]));}[_0x27a911(0x1f7)](){const _0x2e6b1a=_0x27a911;this[_0x2e6b1a(0x339)]['getTypeOfUnitAdded$'](_0x13af1a[_0x2e6b1a(0x3c2)])[_0x2e6b1a(0x1a1)](_0x39ba56(this[_0x2e6b1a(0x1b0)]))[_0x2e6b1a(0x307)](async _0x3a89ef=>{const _0x10314c=_0x2e6b1a,_0x5e9365=_0x3a89ef[_0x10314c(0x2ba)](),_0x1156be=await this[_0x10314c(0x2e4)](_0x5e9365);this[_0x10314c(0x26c)][_0x10314c(0x24a)](_0x1156be),this[_0x10314c(0x23b)][_0x10314c(0x19e)](_0x5e9365,_0x1156be);}),this[_0x2e6b1a(0x339)]['getTypeOfUnitAdded$'](_0x13af1a[_0x2e6b1a(0x1c4)])['pipe'](_0x39ba56(this[_0x2e6b1a(0x1b0)]))[_0x2e6b1a(0x1a1)](_0x10e932(_0x433018=>!_0x433018[_0x2e6b1a(0x2ba)]()[_0x2e6b1a(0x2b4)]('__')))[_0x2e6b1a(0x307)](async _0x4969c5=>{const _0x1cc329=_0x2e6b1a,_0x21a146=_0x4969c5[_0x1cc329(0x2ba)](),_0xa862f9=await this['_startDocCollabCursor'](_0x21a146);this[_0x1cc329(0x26c)][_0x1cc329(0x24a)](_0xa862f9),this[_0x1cc329(0x23b)][_0x1cc329(0x19e)](_0x21a146,_0xa862f9);}),_0xe2f998(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x13af1a[_0x2e6b1a(0x1c4)]),this[_0x2e6b1a(0x339)]['getTypeOfUnitDisposed$'](_0x13af1a[_0x2e6b1a(0x3c2)]))['pipe'](_0x39ba56(this['dispose$']))[_0x2e6b1a(0x307)](_0x2d3853=>{const _0x980c63=_0x2e6b1a,_0x5076a6=_0x2d3853[_0x980c63(0x2ba)](),_0x13e0df=this['_entities'][_0x980c63(0x26f)](_0x5076a6);_0x13e0df&&(_0x13e0df['dispose'](),this[_0x980c63(0x23b)][_0x980c63(0x21b)](_0x5076a6));});}async[_0x27a911(0x2e4)](_0xde44c6){const _0x35ab14=_0x27a911,_0x4e07ba=await this[_0x35ab14(0x292)]['requireSession'](_0xde44c6),_0x3a4631=this['_injector'][_0x35ab14(0x1ce)](It,_0xde44c6,_0x4e07ba);return _0x3a4631[_0x35ab14(0x4a4)](),_0x3a4631;}async[_0x27a911(0x4c1)](_0x1d85ea){const _0x3dcf8d=_0x27a911,_0x2cff8b=await this[_0x3dcf8d(0x292)]['requireSession'](_0x1d85ea),_0x19dff8=this['_injector']['createInstance'](Et,_0x1d85ea,_0x2cff8b);return _0x19dff8[_0x3dcf8d(0x4a4)](),_0x19dff8;}};fe=lr([_0x5cbde1(_0x2af1fa[_0x27a911(0x327)],fe),ct(0x0,_0x41d661),ct(0x1,_0x1f782(_0x55b67e)),ct(0x2,_0x1f782(ge))],fe);const Me=0x14,ts=0xc8,ht=0x4,_r=0x5;function ur(_0x190551,_0x5cfcd3){const _0x23dbd8=_0x27a911;let {radius:_0x404cf4,width:_0x363d5b,height:_0x57ae13}=_0x5cfcd3;_0x404cf4=_0x404cf4!=null?_0x404cf4:0x0,_0x363d5b=_0x363d5b!=null?_0x363d5b:0x1e,_0x57ae13=_0x57ae13!=null?_0x57ae13:0x1e;let _0x283bec=0x0,_0x52ef4c=0x0,_0x3eeda0=0x0;_0x283bec=_0x52ef4c=_0x3eeda0=Math[_0x23dbd8(0x2b9)](_0x404cf4,_0x363d5b/0x2,_0x57ae13/0x2),_0x190551[_0x23dbd8(0x1bc)](),_0x190551[_0x23dbd8(0x435)](_0x283bec,0x0),_0x190551['lineTo'](_0x363d5b-_0x52ef4c,0x0),_0x190551['arc'](_0x363d5b-_0x52ef4c,_0x52ef4c,_0x52ef4c,Math['PI']*0x3/0x2,0x0,!0x1),_0x190551[_0x23dbd8(0x209)](_0x363d5b,_0x57ae13-_0x3eeda0),_0x190551[_0x23dbd8(0x332)](_0x363d5b-_0x3eeda0,_0x57ae13-_0x3eeda0,_0x3eeda0,0x0,Math['PI']/0x2,!0x1),_0x190551[_0x23dbd8(0x209)](0x0,_0x57ae13),_0x190551[_0x23dbd8(0x209)](0x0,_0x283bec),_0x190551[_0x23dbd8(0x332)](_0x283bec,_0x283bec,_0x283bec,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x190551[_0x23dbd8(0x19c)](),_0x5cfcd3['fill']&&(_0x190551[_0x23dbd8(0x41e)](),_0x190551[_0x23dbd8(0x361)]=_0x5cfcd3[_0x23dbd8(0x3bf)],_0x5cfcd3[_0x23dbd8(0x1ca)]==='evenodd'?_0x190551[_0x23dbd8(0x3bf)](_0x23dbd8(0x44c)):_0x190551[_0x23dbd8(0x3bf)](),_0x190551[_0x23dbd8(0x3df)]());}class st extends _0x44a775{constructor(_0x2db9ff,_0x1b916a){const _0x1fcf7e=_0x27a911;super(_0x2db9ff,_0x1b916a),l(this,_0x1fcf7e(0x443)),l(this,_0x1fcf7e(0x40d)),(this[_0x1fcf7e(0x443)]=_0x1b916a==null?void 0x0:_0x1b916a[_0x1fcf7e(0x443)],this[_0x1fcf7e(0x40d)]=_0x1b916a==null?void 0x0:_0x1b916a[_0x1fcf7e(0x40d)]);}static['drawWith'](_0x28f7cd,_0x53ce52){const _0x510f27=_0x27a911,{text:_0x3f1989,color:_0x342df0}=_0x53ce52;_0x28f7cd['save'](),_0x28f7cd[_0x510f27(0x3e9)]=_0x510f27(0x254);const _0x4a3a8f=_0x28f7cd[_0x510f27(0x1c0)](_0x3f1989)[_0x510f27(0x1ff)],_0x587f9d=Math[_0x510f27(0x2b9)](_0x4a3a8f+0x2*ht,ts);ur(_0x28f7cd,{'height':Me,'radius':0x4,'width':_0x587f9d,'fill':_0x342df0,'evented':!0x1}),_0x28f7cd[_0x510f27(0x361)]='#FFF';const _0x37827e=ht,_0x29dd62=Me-_r,_0x32e65c=ts-0x2*ht;if(_0x4a3a8f>_0x32e65c){let _0x30537f='',_0x168d01=0x0;for(const _0x1ad2f6 of _0x3f1989){const _0x5b2c0c=_0x28f7cd['measureText'](_0x1ad2f6)[_0x510f27(0x1ff)];if(_0x168d01+_0x5b2c0c<=_0x32e65c-_0x28f7cd[_0x510f27(0x1c0)]('...')['width'])_0x30537f+=_0x1ad2f6,_0x168d01+=_0x5b2c0c;else{_0x30537f+=_0x510f27(0x437);break;}}_0x28f7cd[_0x510f27(0x260)](_0x30537f,_0x37827e,_0x29dd62);}else _0x28f7cd['fillText'](_0x3f1989,_0x37827e,_0x29dd62);_0x28f7cd[_0x510f27(0x3df)]();}[_0x27a911(0x312)](_0x673327){const _0x47844a=_0x27a911;st[_0x47844a(0x239)](_0x673327,this);}}const dr=0x1,fr=1.5;class mr extends _0x44a775{constructor(_0x17b562,_0x4259b2){const _0x3d5c50=_0x27a911;super(_0x17b562,_0x4259b2),l(this,_0x3d5c50(0x32b)),l(this,_0x3d5c50(0x1be),!0x1),l(this,'_range'),l(this,'_name',''),l(this,_0x3d5c50(0x4ae),'top'),l(this,_0x3d5c50(0x1b3)),(_0x4259b2&&this[_0x3d5c50(0x366)](_0x4259b2),this[_0x3d5c50(0x259)][_0x3d5c50(0x2c2)](()=>this[_0x3d5c50(0x366)]({'hovered':!0x0})),this[_0x3d5c50(0x1c3)][_0x3d5c50(0x2c2)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x27a911(0x366)](_0x28ab00){const _0x30dd19=_0x27a911;var _0x41ae9c,_0x55addf,_0x16fd92,_0x551fb5,_0x1b95b1,_0x13866d;this['_color']=(_0x41ae9c=_0x28ab00[_0x30dd19(0x443)])!=null?_0x41ae9c:this[_0x30dd19(0x32b)],this['_hovered']=(_0x55addf=_0x28ab00[_0x30dd19(0x410)])!=null?_0x55addf:this['_hovered'],this[_0x30dd19(0x464)]=(_0x16fd92=_0x28ab00[_0x30dd19(0x212)])!=null?_0x16fd92:this[_0x30dd19(0x464)],this['_name']=(_0x551fb5=_0x28ab00[_0x30dd19(0x2e1)])!=null?_0x551fb5:this['_name'],this[_0x30dd19(0x4ae)]=(_0x1b95b1=_0x28ab00[_0x30dd19(0x3ce)])!=null?_0x1b95b1:this[_0x30dd19(0x4ae)],this['_backgroundColor']=(_0x13866d=_0x28ab00[_0x30dd19(0x1a5)])!=null?_0x13866d:this['_backgroundColor'],this['transformByState']({'width':_0x28ab00[_0x30dd19(0x1ff)],'height':_0x28ab00[_0x30dd19(0x1ef)]});}['onMouseMove'](_0x49c41a){const _0x35ff0c=_0x27a911,{row:_0x42fcfc,column:_0x4fed07}=_0x49c41a;if(_0x42fcfc>=this['_range'][_0x35ff0c(0x25b)]&&_0x42fcfc<=this[_0x35ff0c(0x464)][_0x35ff0c(0x431)]&&_0x4fed07>=this[_0x35ff0c(0x464)]['startColumn']&&_0x4fed07<=this[_0x35ff0c(0x464)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x35ff0c(0x366)]({'hovered':!0x1});}[_0x27a911(0x497)](_0x35c5a1){return!0x1;}['_draw'](_0x3d18cd){const _0x334e54=_0x27a911;_0x51d98d['drawWith'](_0x3d18cd,{'width':this[_0x334e54(0x1ff)],'height':this[_0x334e54(0x1ef)],'strokeWidth':fr,'stroke':this[_0x334e54(0x32b)],'evented':!0x1,'fill':this[_0x334e54(0x1b3)]}),this['_hovered']&&(_0x3d18cd[_0x334e54(0x41e)](),_0x3d18cd[_0x334e54(0x1b9)](0x1,0x0,0x0,0x1,this[_0x334e54(0x1ff)],this[_0x334e54(0x4ae)]===_0x334e54(0x28e)?0x0:-Me),st[_0x334e54(0x239)](_0x3d18cd,{'text':this[_0x334e54(0x1ec)],'color':this[_0x334e54(0x32b)]}),_0x3d18cd[_0x334e54(0x3df)]());}}var gr=Object[_0x27a911(0x29f)],Sr=Object[_0x27a911(0x330)],vr=(_0x39dc72,_0x77ef41,_0x3480a9,_0x2e4848)=>{const _0x9ba622=_0x27a911;for(var _0x546f78=_0x2e4848>0x1?void 0x0:_0x2e4848?Sr(_0x77ef41,_0x3480a9):_0x77ef41,_0x56d6b2=_0x39dc72[_0x9ba622(0x4d3)]-0x1,_0x26b59e;_0x56d6b2>=0x0;_0x56d6b2--)(_0x26b59e=_0x39dc72[_0x56d6b2])&&(_0x546f78=(_0x2e4848?_0x26b59e(_0x77ef41,_0x3480a9,_0x546f78):_0x26b59e(_0x546f78))||_0x546f78);return _0x2e4848&&_0x546f78&&gr(_0x77ef41,_0x3480a9,_0x546f78),_0x546f78;},$e=(_0x4ed722,_0x534487)=>(_0x27ca5b,_0x5b9eb5)=>_0x534487(_0x27ca5b,_0x5b9eb5,_0x4ed722);const pr=0x1389;let Ve=class extends _0xe4c81a{constructor(_0x165ce0,_0x58abd2,_0x4abb4d,_0x3b2e32){const _0x53d96a=_0x27a911;super(),l(this,_0x53d96a(0x1c6),new Set()),l(this,_0x53d96a(0x28d),null),(this['_collabCursorController']=_0x165ce0,this[_0x53d96a(0x339)]=_0x58abd2,this[_0x53d96a(0x346)]=_0x4abb4d,this['_themeService']=_0x3b2e32,this[_0x53d96a(0x1f7)]());}get[_0x27a911(0x3bd)](){const _0x577ec9=_0x27a911;return this[_0x577ec9(0x346)][_0x577ec9(0x1d9)](this[_0x577ec9(0x339)][_0x577ec9(0x306)](_0x13af1a[_0x577ec9(0x3c2)])['getUnitId']())['with'](_0x4bdf5f);}get[_0x27a911(0x450)](){const _0x255536=_0x27a911;return this[_0x255536(0x339)]['getCurrentUnitForType'](_0x13af1a[_0x255536(0x3c2)])[_0x255536(0x2ba)]();}[_0x27a911(0x1f7)](){const _0x49314c=_0x27a911;this[_0x49314c(0x3bd)][_0x49314c(0x1d3)][_0x49314c(0x1a1)](_0x1e8d86(this[_0x49314c(0x1b0)]),_0xdffcb3(_0x3942b4=>{const _0x35d72a=_0x49314c;if(_0x3942b4){const _0x564da1=_0x3942b4['sheetId'];return _0x4619fd(this['_collabCursorController'][_0x35d72a(0x4b4)](this[_0x35d72a(0x450)]),this['_themeService'][_0x35d72a(0x1bf)])['pipe'](_0x3b7068(([_0x5e35d6,_0x424e56])=>{const _0x1a5977=_0x35d72a,_0x456e67=new Map();return _0x5e35d6[_0x1a5977(0x4a1)]((_0x23e82d,_0x18c675)=>{const _0xe0843=_0x1a5977;if(_0x23e82d[_0xe0843(0x285)]===_0x564da1){const _0x5c8b44={..._0x23e82d};_0x5c8b44['color']=_0x424e56[_0x23e82d[_0xe0843(0x443)]],_0x456e67[_0xe0843(0x19e)](_0x18c675,_0x5c8b44);}}),{'skeleton':_0x3942b4,'cursors':_0x456e67};}));}return _0x4d7b9c({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x40485e,cursors:_0x35bfe5})=>{const _0x3be06b=_0x49314c;this[_0x3be06b(0x203)](),_0x40485e&&this[_0x3be06b(0x1b6)](_0x40485e,_0x35bfe5);}),this[_0x49314c(0x3bd)][_0x49314c(0x1d3)][_0x49314c(0x307)](_0x1e797f=>{const _0x10e35d=_0x49314c;if(_0x1e797f==null)return;const {skeleton:_0x41857e}=_0x1e797f,_0x7764eb=this['_renderManagerService']['getRenderById'](this[_0x10e35d(0x450)]),{scene:_0x1cc6a3}=_0x7764eb;_0x1cc6a3[_0x10e35d(0x4c6)][_0x10e35d(0x2c2)](_0x441295(_0x407d59=>{const _0x559ecb=_0x10e35d;var _0xafd407,_0x5d2b2f;const {offsetX:_0x9ae9d8,offsetY:_0x33c0bd}=_0x407d59,{x:_0x4cd682,y:_0x87a2fe}=_0x1cc6a3[_0x559ecb(0x390)](_0x37415c[_0x559ecb(0x493)]([_0x9ae9d8,_0x33c0bd])),{scaleX:_0x217dda,scaleY:_0x296094}=_0x1cc6a3[_0x559ecb(0x279)](),_0x3f9ceb=_0x1cc6a3['getViewport'](_0x3edb69[_0x559ecb(0x2b1)]),_0x1a4f19=_0x1cc6a3['getVpScrollXYInfoByPosToVp'](_0x37415c[_0x559ecb(0x493)]([_0x4cd682,_0x87a2fe]),_0x3f9ceb),_0xff4e7e=_0x41857e[_0x559ecb(0x284)](_0x9ae9d8,_0x33c0bd,_0x217dda,_0x296094,_0x1a4f19);((_0xafd407=this['_lastPointer'])==null?void 0x0:_0xafd407[_0x559ecb(0x1fd)])===_0xff4e7e[_0x559ecb(0x1fd)]&&((_0x5d2b2f=this[_0x559ecb(0x28d)])==null?void 0x0:_0x5d2b2f['row'])===_0xff4e7e['row']||this['_cursors']['forEach'](_0x5d81dc=>{const _0x29c29e=_0x559ecb;_0x5d81dc[_0x29c29e(0x257)](_0xff4e7e);});},0x64));});}['_updateCollabCursors'](_0x5bc415,_0x16e390){const _0x52569b=_0x27a911;var _0x5543d0;const _0x50bf59=(_0x5543d0=this[_0x52569b(0x3bd)]['getCurrent']())==null?void 0x0:_0x5543d0[_0x52569b(0x3ed)];if(!_0x50bf59)return;const _0x4a776b=this[_0x52569b(0x47f)]();if(!_0x4a776b)return;this[_0x52569b(0x1c6)]['forEach'](_0x4725fd=>{const _0x1762a4=_0x52569b;_0x4725fd[_0x1762a4(0x1fa)]();});const {scene:_0x1f9877}=_0x4a776b,_0x21ef58=Ir(Array[_0x52569b(0x252)](_0x16e390[_0x52569b(0x3bb)]()))[_0x52569b(0x231)](_0x320a8c=>{const _0x2c0a8d=_0x52569b,{color:_0xcf55aa,range:_0xb11e49,name:_0xa48288,selection:_0x5820a5,sheetID:_0x5573cc}=_0x320a8c,{startColumn:_0x4c3226,startRow:_0x762f56,endColumn:_0x3c34c2,endRow:_0x2a883f}=_0xb11e49,_0xd5ab5=_0xc4fe1(_0x762f56,_0x4c3226,_0x1f9877,_0x50bf59),_0x3595ee=_0xc4fe1(_0x2a883f,_0x3c34c2,_0x1f9877,_0x50bf59),{columnHeaderHeightAndMarginTop:_0x23d263}=_0x50bf59,{startX:_0x35750f,startY:_0x48970d}=_0xd5ab5,{endX:_0x2273ff,endY:_0x441fe2}=_0x3595ee,_0x1bca2e=_0x2273ff-_0x35750f,_0x582ada=_0x441fe2-_0x48970d,_0x440173={'labelPosition':_0x48970d-_0x23d263>=Me?'top':_0x2c0a8d(0x28e),'sheetID':_0x5573cc,'range':_0xb11e49,'color':_0xcf55aa,'name':_0xa48288,'selection':_0x5820a5,'left':_0x35750f,'top':_0x48970d,'width':_0x1bca2e,'height':_0x582ada,'evented':!0x1,'zIndex':pr};return new mr(_0xa48288,_0x440173);});_0x1f9877['addObjects'](_0x21ef58,dr),this[_0x52569b(0x1c6)]=new Set(_0x21ef58);}[_0x27a911(0x203)](){const _0x528145=_0x27a911;var _0x3d0621;(_0x3d0621=this['_cursors'])==null||_0x3d0621[_0x528145(0x4a1)](_0x57c01e=>_0x57c01e[_0x528145(0x4de)]());}['_getSheetObject'](){const _0x3b291e=_0x27a911;return _0x48b9fd(this[_0x3b291e(0x339)],this[_0x3b291e(0x346)]);}};Ve=vr([_0x5cbde1(_0x2af1fa[_0x27a911(0x3c0)],Ve),$e(0x0,_0x1f782(fe)),$e(0x1,_0x41d661),$e(0x2,_0x30f264),$e(0x3,_0x1f782(_0x2fce55))],Ve);function Ir(_0x22451d){const _0x5056af=_0x27a911,_0x2ba98e=new Map();return _0x22451d[_0x5056af(0x4a1)](_0x61f819=>{const _0x337b5a=_0x5056af;if(_0x2ba98e[_0x337b5a(0x496)](_0x61f819['selection'])){const _0x4562f4=_0x2ba98e['get'](_0x61f819['selection']);_0x4562f4[_0x337b5a(0x2e1)]+=',\x20'+_0x61f819['name'];}else _0x2ba98e[_0x337b5a(0x19e)](_0x61f819[_0x337b5a(0x217)],_0x61f819);}),Array[_0x5056af(0x252)](_0x2ba98e['values']());}var A=function(){const _0x5940d4=_0x27a911;return A=Object[_0x5940d4(0x42d)]||function(_0x5720a1){const _0x420483=_0x5940d4;for(var _0x2f6125,_0x1fbf0e=0x1,_0x319b72=arguments[_0x420483(0x4d3)];_0x1fbf0e<_0x319b72;_0x1fbf0e++){_0x2f6125=arguments[_0x1fbf0e];for(var _0x5a0375 in _0x2f6125)Object['prototype'][_0x420483(0x4bf)]['call'](_0x2f6125,_0x5a0375)&&(_0x5720a1[_0x5a0375]=_0x2f6125[_0x5a0375]);}return _0x5720a1;},A[_0x5940d4(0x1f5)](this,arguments);},Er=function(_0x2e1d00,_0x59dd71){const _0x439f1d=_0x27a911;var _0x36213f={};for(var _0x4da29d in _0x2e1d00)Object[_0x439f1d(0x28c)][_0x439f1d(0x4bf)][_0x439f1d(0x41b)](_0x2e1d00,_0x4da29d)&&_0x59dd71[_0x439f1d(0x2c5)](_0x4da29d)<0x0&&(_0x36213f[_0x4da29d]=_0x2e1d00[_0x4da29d]);if(_0x2e1d00!=null&&typeof Object['getOwnPropertySymbols']==_0x439f1d(0x324)){for(var _0xd7340b=0x0,_0x4da29d=Object['getOwnPropertySymbols'](_0x2e1d00);_0xd7340b<_0x4da29d['length'];_0xd7340b++)_0x59dd71[_0x439f1d(0x2c5)](_0x4da29d[_0xd7340b])<0x0&&Object['prototype'][_0x439f1d(0x262)][_0x439f1d(0x41b)](_0x2e1d00,_0x4da29d[_0xd7340b])&&(_0x36213f[_0x4da29d[_0xd7340b]]=_0x2e1d00[_0x4da29d[_0xd7340b]]);}return _0x36213f;},$t=_0x3973d9(function(_0x26eb20,_0xc59037){const _0x473214=_0x27a911;var _0x519441=_0x26eb20[_0x473214(0x2ee)],_0x208edf=_0x26eb20['id'],_0x2d8b8e=_0x26eb20['className'],_0xd9237a=_0x26eb20[_0x473214(0x48f)],_0x377b12=Er(_0x26eb20,[_0x473214(0x2ee),'id','className',_0x473214(0x48f)]),_0x4036ce=_0x473214(0x261)['concat'](_0x208edf,'\x20')['concat'](_0x2d8b8e||'')[_0x473214(0x2b6)](),_0x1f2d3f=_0x330e6d('_'[_0x473214(0x32d)](Tr()));return As(_0x519441,''[_0x473214(0x32d)](_0x208edf),{'defIds':_0x519441[_0x473214(0x300)],'idSuffix':_0x1f2d3f[_0x473214(0x3a2)]},A({'ref':_0xc59037,'className':_0x4036ce},_0x377b12),_0xd9237a);});function As(_0x223188,_0xf2fcf8,_0x9ff1c1,_0x170895,_0x48761f){const _0x17f443=_0x27a911;return _0xa89835(_0x223188[_0x17f443(0x3aa)],A(A({'key':_0xf2fcf8},Cr(_0x223188,_0x9ff1c1,_0x48761f)),_0x170895),(br(_0x223188,_0x9ff1c1)[_0x17f443(0x3a8)]||[])[_0x17f443(0x231)](function(_0x4a7d1a,_0x35ee57){const _0x2d8955=_0x17f443;return As(_0x4a7d1a,''[_0x2d8955(0x32d)](_0xf2fcf8,'-')[_0x2d8955(0x32d)](_0x223188[_0x2d8955(0x3aa)],'-')[_0x2d8955(0x32d)](_0x35ee57),_0x9ff1c1,void 0x0,_0x48761f);}));}function Cr(_0x21a922,_0x118fd3,_0x4e5181){const _0x40a6ed=_0x27a911;var _0x3bae0b=A({},_0x21a922['attrs']);_0x4e5181!=null&&_0x4e5181[_0x40a6ed(0x38a)]&&_0x3bae0b[_0x40a6ed(0x3bf)]===_0x40a6ed(0x38a)&&(_0x3bae0b[_0x40a6ed(0x3bf)]=_0x4e5181['colorChannel1']);var _0x44ae64=_0x118fd3[_0x40a6ed(0x300)];return!_0x44ae64||_0x44ae64[_0x40a6ed(0x4d3)]===0x0||(_0x21a922[_0x40a6ed(0x3aa)]===_0x40a6ed(0x4bc)&&_0x3bae0b[_0x40a6ed(0x495)]&&(_0x3bae0b[_0x40a6ed(0x495)]=_0x3bae0b[_0x40a6ed(0x495)]+_0x118fd3['idSuffix']),Object[_0x40a6ed(0x36e)](_0x3bae0b)['forEach'](function(_0xff5484){const _0x26ef7e=_0x40a6ed;var _0x2ffbaf=_0xff5484[0x0],_0x24ae06=_0xff5484[0x1];typeof _0x24ae06==_0x26ef7e(0x2aa)&&(_0x3bae0b[_0x2ffbaf]=_0x24ae06[_0x26ef7e(0x486)](/url\(#(.*)\)/,_0x26ef7e(0x404)[_0x26ef7e(0x32d)](_0x118fd3['idSuffix'],')')));})),_0x3bae0b;}function br(_0x2775f6,_0x2ff9c1){const _0x24c020=_0x27a911;var _0x4edb63,_0x1cbf9f=_0x2ff9c1['defIds'];return!_0x1cbf9f||_0x1cbf9f['length']===0x0?_0x2775f6:_0x2775f6['tag']===_0x24c020(0x40e)&&(!((_0x4edb63=_0x2775f6[_0x24c020(0x3a8)])===null||_0x4edb63===void 0x0)&&_0x4edb63[_0x24c020(0x4d3)])?A(A({},_0x2775f6),{'children':_0x2775f6[_0x24c020(0x3a8)][_0x24c020(0x231)](function(_0x97d4f6){const _0x400f92=_0x24c020;return typeof _0x97d4f6[_0x400f92(0x3a4)]['id']==_0x400f92(0x2aa)&&_0x1cbf9f&&_0x1cbf9f[_0x400f92(0x2c5)](_0x97d4f6[_0x400f92(0x3a4)]['id'])>-0x1?A(A({},_0x97d4f6),{'attrs':A(A({},_0x97d4f6[_0x400f92(0x3a4)]),{'id':_0x97d4f6[_0x400f92(0x3a4)]['id']+_0x2ff9c1['idSuffix']})}):_0x97d4f6;})}):_0x2775f6;}function Tr(){const _0x5317d5=_0x27a911;return Math[_0x5317d5(0x2f1)]()[_0x5317d5(0x3b0)](0x24)[_0x5317d5(0x335)](0x2,0x8);}$t[_0x27a911(0x427)]=_0x27a911(0x1b1);var Rr={'tag':_0x27a911(0x45f),'attrs':{'fill':'none','viewBox':_0x27a911(0x243),'width':_0x27a911(0x22e),'height':_0x27a911(0x22e)},'children':[{'tag':'g','attrs':{'clipPath':_0x27a911(0x421)},'children':[{'tag':_0x27a911(0x269),'attrs':{'stroke':_0x27a911(0x4aa),'d':_0x27a911(0x1f0),'strokeLinecap':_0x27a911(0x456),'strokeLinejoin':_0x27a911(0x456),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x27a911(0x419),'attrs':{'id':_0x27a911(0x1eb)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x27a911(0x484)}}]}]}],'defIds':[_0x27a911(0x1eb)]},ys=_0x3973d9(function(_0x4958ad,_0x55b4a8){const _0x2baf23=_0x27a911;return _0xa89835($t,Object[_0x2baf23(0x42d)]({},_0x4958ad,{'id':_0x2baf23(0x3c7),'ref':_0x55b4a8,'icon':Rr}));});ys['displayName']=_0x27a911(0x4ca);var Or={'tag':_0x27a911(0x45f),'attrs':{'fill':'none','viewBox':_0x27a911(0x264),'width':_0x27a911(0x22e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x27a911(0x1cf)},'children':[{'tag':'path','attrs':{'stroke':_0x27a911(0x4aa),'d':_0x27a911(0x245),'strokeLinecap':_0x27a911(0x456),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x27a911(0x269),'attrs':{'fill':_0x27a911(0x377),'d':_0x27a911(0x484),'transform':_0x27a911(0x2ce)}}]}]}],'defIds':[_0x27a911(0x429)]},Us=_0x3973d9(function(_0x24b944,_0x2d900f){const _0x5f2768=_0x27a911;return _0xa89835($t,Object[_0x5f2768(0x42d)]({},_0x24b944,{'id':_0x5f2768(0x34d),'ref':_0x2d900f,'icon':Or}));});Us['displayName']=_0x27a911(0x4b1);const Dr=_0x27a911(0x3b9),Pr=_0x27a911(0x45e),wr='univer-online-status',Nr=_0x27a911(0x4ac),Mr=_0x27a911(0x1f9),be={'onlineStatusIcon':Dr,'onlineStatusTitle':Pr,'onlineStatus':wr,'online':Nr,'offline':Mr};function Ar(_0x4021c6){const _0x198fa0=_0x27a911;switch(_0x4021c6){case w[_0x198fa0(0x340)]:return _0x198fa0(0x286);case w[_0x198fa0(0x2ec)]:return'collabStatus.conflict';case w[_0x198fa0(0x2f0)]:return _0x198fa0(0x455);case w[_0x198fa0(0x27e)]:return _0x198fa0(0x214);case w[_0x198fa0(0x2f7)]:case w[_0x198fa0(0x3eb)]:case w[_0x198fa0(0x4a0)]:return _0x198fa0(0x299);case w[_0x198fa0(0x3c9)]:return _0x198fa0(0x49d);}}function yr(_0x4fb410){const _0x27bc6b=_0x27a911,{status$:_0x1016d5}=_0x4fb410,_0x217409=_0x44b1fb(_0x1016d5,w[_0x27bc6b(0x27e)]),_0x174a61=_0xf55e15(_0x262e83),_0x20b468=_0x217409!==w[_0x27bc6b(0x340)],_0xeb8fd5=_0x174a61['t'](Ar(_0x217409)),_0x14291e=_0x18d5cb(be[_0x27bc6b(0x2f9)],{[be[_0x27bc6b(0x291)]]:_0x20b468,[be[_0x27bc6b(0x345)]]:!_0x20b468}),_0x975439=_0x20b468?_0x1ce8d0['createElement'](Us,null):_0x1ce8d0[_0x27bc6b(0x2a1)](ys,null);return _0x1ce8d0[_0x27bc6b(0x2a1)](_0x27bc6b(0x229),{'className':_0x14291e},_0x1ce8d0[_0x27bc6b(0x2a1)]('div',{'className':be[_0x27bc6b(0x355)]},_0x975439),_0x1ce8d0[_0x27bc6b(0x2a1)]('div',{'className':be[_0x27bc6b(0x228)]},_0xeb8fd5));}var Ur=Object[_0x27a911(0x29f)],Lr=Object[_0x27a911(0x330)],$r=(_0x2916c9,_0x410fd7,_0x43f507,_0xc6a213)=>{const _0x5f5838=_0x27a911;for(var _0x59c735=_0xc6a213>0x1?void 0x0:_0xc6a213?Lr(_0x410fd7,_0x43f507):_0x410fd7,_0x4a82c1=_0x2916c9[_0x5f5838(0x4d3)]-0x1,_0x179919;_0x4a82c1>=0x0;_0x4a82c1--)(_0x179919=_0x2916c9[_0x4a82c1])&&(_0x59c735=(_0xc6a213?_0x179919(_0x410fd7,_0x43f507,_0x59c735):_0x179919(_0x59c735))||_0x59c735);return _0xc6a213&&_0x59c735&&Ur(_0x410fd7,_0x43f507,_0x59c735),_0x59c735;},je=(_0x47c475,_0x5d25ee)=>(_0x7604ce,_0x40e3cc)=>_0x5d25ee(_0x7604ce,_0x40e3cc,_0x47c475);let ke=class extends _0xd60028{constructor(_0x30d1b6,_0x286020,_0x4bbd56,_0x288730){const _0x46fde0=_0x27a911;super(),l(this,_0x46fde0(0x1f4),new _0x3146d9(w[_0x46fde0(0x27e)])),(this[_0x46fde0(0x339)]=_0x30d1b6,this[_0x46fde0(0x320)]=_0x286020,this[_0x46fde0(0x43e)]=_0x4bbd56,this[_0x46fde0(0x4d6)]=_0x288730,this[_0x46fde0(0x3c4)](),this['_initStatusListener']());}['_initStatusComponent'](){const _0x172289=_0x27a911;this[_0x172289(0x3be)](this[_0x172289(0x320)][_0x172289(0x244)](_0x23ba03[_0x172289(0x218)],()=>_0x20fd92(jr({'status$':this[_0x172289(0x1f4)][_0x172289(0x48c)]()}),this[_0x172289(0x43e)])));}[_0x27a911(0x1ba)](){const _0x420216=_0x27a911;this[_0x420216(0x3be)](_0x1726d4(this[_0x420216(0x339)]['focused$'][_0x420216(0x1a1)](_0x508547(()=>{const _0x4c9da1=_0x420216,_0x5c1815=this[_0x4c9da1(0x339)][_0x4c9da1(0x25a)]();return _0x5c1815?this[_0x4c9da1(0x4d6)][_0x4c9da1(0x42f)](_0x5c1815[_0x4c9da1(0x2ba)]()):_0x4d7b9c(null);}),_0x508547(_0x29ccb9=>_0x29ccb9?_0x29ccb9[_0x420216(0x4a5)]:_0x4d7b9c(w[_0x420216(0x27e)])))['subscribe'](_0x292cd0=>{const _0x5f46bb=_0x420216;this['_status$'][_0x5f46bb(0x24a)](_0x292cd0);})));}};ke=$r([_0x5cbde1(_0x2af1fa[_0x27a911(0x327)],ke),je(0x0,_0x41d661),je(0x1,_0x25177a),je(0x2,_0x1f782(_0x55b67e)),je(0x3,_0x1f782(De))],ke);function jr(_0x4513bb){const {status$:_0x32e43a}=_0x4513bb;return function(){const _0x5d6192=_0x5bd0;return _0x1ce8d0[_0x5d6192(0x2a1)](yr,{'status$':_0x32e43a});};}const Ls=_0x358bbc(_0x27a911(0x4d4));var Hr=Object[_0x27a911(0x29f)],xr=Object['getOwnPropertyDescriptor'],Fr=(_0x2a609b,_0x3f0775,_0x15c9ac,_0x3df502)=>{for(var _0x14d0ec=_0x3df502>0x1?void 0x0:_0x3df502?xr(_0x3f0775,_0x15c9ac):_0x3f0775,_0x15efe=_0x2a609b['length']-0x1,_0x39fe04;_0x15efe>=0x0;_0x15efe--)(_0x39fe04=_0x2a609b[_0x15efe])&&(_0x14d0ec=(_0x3df502?_0x39fe04(_0x3f0775,_0x15c9ac,_0x14d0ec):_0x39fe04(_0x14d0ec))||_0x14d0ec);return _0x3df502&&_0x14d0ec&&Hr(_0x3f0775,_0x15c9ac,_0x14d0ec),_0x14d0ec;},le=(_0x2e815f,_0x1345e5)=>(_0x266a4a,_0x1a5382)=>_0x1345e5(_0x266a4a,_0x1a5382,_0x2e815f);let Be=class extends _0xe4c81a{constructor(_0xfcc5d6,_0x3a402c,_0xb6b849,_0x438359,_0x541767,_0x1b8a7e){const _0x1a12be=_0x27a911;super(),this['_urlService']=_0xfcc5d6,this[_0x1a12be(0x304)]=_0x3a402c,this[_0x1a12be(0x274)]=_0xb6b849,this[_0x1a12be(0x1c1)]=_0x438359,this['_snapshotService']=_0x541767,_0x1b8a7e?_0x1b8a7e==null||_0x1b8a7e[_0x1a12be(0x364)]()[_0x1a12be(0x2a6)](()=>this['_init']()):(this['_logService']['debug'](_0x1a12be(0x35a),_0x1a12be(0x454)),this[_0x1a12be(0x1f7)]());}async[_0x27a911(0x1f7)](){const _0x3c3a0a=_0x27a911,_0x1bcb6b=this['_urlService'][_0x3c3a0a(0x42a)](_0x3c3a0a(0x379)),_0x434730=this[_0x3c3a0a(0x39e)]['getParam'](_0x3c3a0a(0x38d));if(!_0x1bcb6b||!_0x434730){this[_0x3c3a0a(0x304)][_0x3c3a0a(0x4bd)]('[DataLoaderController]',_0x3c3a0a(0x281));return;}switch(Number(_0x434730)){case H[_0x3c3a0a(0x3c2)]:{const _0x31e6d2=await this[_0x3c3a0a(0x2eb)](_0x1bcb6b);this[_0x3c3a0a(0x2c3)](_0x31e6d2);break;}case H[_0x3c3a0a(0x1c4)]:{await this[_0x3c3a0a(0x1e5)](_0x1bcb6b);break;}default:{this[_0x3c3a0a(0x304)][_0x3c3a0a(0x388)](_0x3c3a0a(0x35a),_0x3c3a0a(0x479));break;}}}async[_0x27a911(0x2c3)](_0x3849ae){const _0x1da1af=_0x27a911;await this[_0x1da1af(0x1d1)](_0x3849ae),_0x3849ae[_0x1da1af(0x36c)][_0x1da1af(0x1a1)](_0x39ba56(this[_0x1da1af(0x1b0)]))[_0x1da1af(0x307)](_0x258072=>{const _0x4482ed=_0x1da1af;_0x258072&&this[_0x4482ed(0x1db)](_0x258072);}),this[_0x1da1af(0x39e)]['urlChange$'][_0x1da1af(0x1a1)](_0x39ba56(this['dispose$']))[_0x1da1af(0x307)](()=>this[_0x1da1af(0x1d1)](_0x3849ae));}[_0x27a911(0x1db)](_0xa113de,_0x583c45=!0x1){const _0x1d7a3c=_0x27a911,_0xab16ac=this['_urlService']['getParam'](_0x1d7a3c(0x1dc));_0xa113de[_0x1d7a3c(0x369)]()!==_0xab16ac&&this[_0x1d7a3c(0x39e)][_0x1d7a3c(0x423)](_0x1d7a3c(0x1dc),_0xa113de[_0x1d7a3c(0x369)](),_0x583c45);}async[_0x27a911(0x1d1)](_0x5eb301){const _0x4abe32=_0x27a911;var _0x25264c;const _0x2cfb5f=this[_0x4abe32(0x39e)]['getParam'](_0x4abe32(0x1dc));if(!_0x2cfb5f||!_0x5eb301[_0x4abe32(0x235)](_0x2cfb5f)){const _0x5edb99=_0x5eb301['getUnhiddenWorksheets']()[0x0],_0x1e7851=_0x5eb301['getSheetBySheetId'](_0x5edb99);if(!_0x1e7851)return;this[_0x4abe32(0x1db)](_0x1e7851,!0x0),await this[_0x4abe32(0x274)][_0x4abe32(0x3f6)](_0x320312['id'],{'unitId':_0x5eb301[_0x4abe32(0x2ba)](),'subUnitId':_0x5edb99});return;}((_0x25264c=_0x5eb301[_0x4abe32(0x199)]())==null?void 0x0:_0x25264c['getSheetId']())!==_0x2cfb5f&&await this[_0x4abe32(0x274)]['executeCommand'](_0x320312['id'],{'unitId':_0x5eb301[_0x4abe32(0x2ba)](),'subUnitId':_0x2cfb5f});}async[_0x27a911(0x2eb)](_0x2009bb){const _0x1c3c3b=_0x27a911;let _0x5ef84f=0x0;const _0x168cd0=await this['_localCacheService'][_0x1c3c3b(0x237)](_0x2009bb);return _0x168cd0&&(_0x168cd0[_0x1c3c3b(0x2c1)]||_0x168cd0[_0x1c3c3b(0x1d2)][_0x1c3c3b(0x4d3)]!==0x0)&&(_0x5ef84f=_0x168cd0[_0x1c3c3b(0x3d7)]),_0x5ef84f===0x0&&this[_0x1c3c3b(0x304)][_0x1c3c3b(0x4bd)](_0x1c3c3b(0x35a),_0x1c3c3b(0x2af)),this['_snapshotService'][_0x1c3c3b(0x47e)](_0x2009bb,_0x5ef84f);}async[_0x27a911(0x1e5)](_0x1c7a35){const _0x5bc76a=_0x27a911;let _0x5b6dfb=0x0;const _0x2fd5bb=await this[_0x5bc76a(0x1c1)][_0x5bc76a(0x237)](_0x1c7a35);return _0x2fd5bb&&(_0x2fd5bb[_0x5bc76a(0x2c1)]||_0x2fd5bb[_0x5bc76a(0x1d2)][_0x5bc76a(0x4d3)]!==0x0)&&(_0x5b6dfb=_0x2fd5bb[_0x5bc76a(0x3d7)]),_0x5b6dfb===0x0&&this[_0x5bc76a(0x304)]['debug']('[DataLoaderController]',_0x5bc76a(0x2af)),this[_0x5bc76a(0x225)][_0x5bc76a(0x3d0)](_0x1c7a35,_0x5b6dfb);}};Be=Fr([_0x5cbde1(_0x2af1fa['Starting'],Be),le(0x0,Ls),le(0x1,_0x5e4d90),le(0x2,_0x22dfc9),le(0x3,_0x1f782(D)),le(0x4,_0x1f782(_0x507009)),le(0x5,_0x275bb1(_0x4113b5))],Be);var Vr=Object['defineProperty'],kr=Object[_0x27a911(0x330)],Br=(_0x1d9d85,_0x4ebbbd,_0x37c15b,_0x2aced5)=>{const _0x1f9eed=_0x27a911;for(var _0x419c3a=_0x2aced5>0x1?void 0x0:_0x2aced5?kr(_0x4ebbbd,_0x37c15b):_0x4ebbbd,_0x596f11=_0x1d9d85[_0x1f9eed(0x4d3)]-0x1,_0x16acd6;_0x596f11>=0x0;_0x596f11--)(_0x16acd6=_0x1d9d85[_0x596f11])&&(_0x419c3a=(_0x2aced5?_0x16acd6(_0x4ebbbd,_0x37c15b,_0x419c3a):_0x16acd6(_0x419c3a))||_0x419c3a);return _0x2aced5&&_0x419c3a&&Vr(_0x4ebbbd,_0x37c15b,_0x419c3a),_0x419c3a;},ss=(_0x5060f0,_0x58eee)=>(_0x7ab2d0,_0x505550)=>_0x58eee(_0x7ab2d0,_0x505550,_0x5060f0);const Wr=_0x27a911(0x4d0),Gr=_0x27a911(0x4c2);let We=class extends _0xd60028{constructor(_0x7b9963,_0x2aec5a){const _0x13ea46=_0x27a911;super(),this[_0x13ea46(0x339)]=_0x7b9963,this[_0x13ea46(0x37e)]=_0x2aec5a,this[_0x13ea46(0x1f7)]();}['_init'](){const _0x54616b=_0x27a911;this[_0x54616b(0x3be)](_0x1726d4(this['_univerInstanceService'][_0x54616b(0x470)]['subscribe'](()=>{const _0x381ee7=_0x54616b;var _0x19ca67;const _0x3060c3=this[_0x381ee7(0x339)]['getFocusedUnit']();let _0x4e0178=(_0x19ca67=this[_0x381ee7(0x37e)][_0x381ee7(0x406)](Wr))!=null?_0x19ca67:Gr;_0x3060c3 instanceof _0x3a1fec&&(_0x4e0178=_0x3060c3[_0x381ee7(0x2e1)]),document[_0x381ee7(0x492)]=_0x4e0178;})));}};We=Br([_0x5cbde1(_0x2af1fa[_0x27a911(0x1ea)],We),ss(0x0,_0x41d661),ss(0x1,_0x5c69d0)],We);var Yr=Object[_0x27a911(0x29f)],Kr=Object[_0x27a911(0x330)],Xr=(_0x5c34de,_0x2d5959,_0x139b05,_0x522a90)=>{const _0x405bcc=_0x27a911;for(var _0xc72699=_0x522a90>0x1?void 0x0:_0x522a90?Kr(_0x2d5959,_0x139b05):_0x2d5959,_0xc193ae=_0x5c34de[_0x405bcc(0x4d3)]-0x1,_0x4ab43c;_0xc193ae>=0x0;_0xc193ae--)(_0x4ab43c=_0x5c34de[_0xc193ae])&&(_0xc72699=(_0x522a90?_0x4ab43c(_0x2d5959,_0x139b05,_0xc72699):_0x4ab43c(_0xc72699))||_0xc72699);return _0x522a90&&_0xc72699&&Yr(_0x2d5959,_0x139b05,_0xc72699),_0xc72699;},is=(_0x320f6e,_0x516558)=>(_0x2321aa,_0x5666af)=>_0x516558(_0x2321aa,_0x5666af,_0x320f6e);let Ct=class{constructor(_0x42e1c0,_0x3d9789){const _0x27dd10=_0x27a911;this[_0x27dd10(0x37e)]=_0x42e1c0,this[_0x27dd10(0x2d7)]=_0x3d9789;}async[_0x27a911(0x27c)](_0x2288e8,_0x478ee1){const _0x430d12=_0x27a911;var _0x47e176;const {unitID:_0x36ec82,type:_0x430073,revision:_0x498104=0x0}=_0x478ee1,_0x4dc8e7=this['_getSnapshotAPIPrefix']()+'/'+_0x430073+_0x430d12(0x43a)+_0x36ec82+_0x430d12(0x47d)+_0x498104,_0x18e6de=(await this['_httpService'][_0x430d12(0x26f)](_0x4dc8e7))[_0x430d12(0x434)],_0x27527f=(_0x47e176=_0x18e6de['snapshot'])==null?void 0x0:_0x47e176[_0x430d12(0x22c)];if(_0x27527f){const _0x5504a5=_0x27527f==null?void 0x0:_0x27527f['originalMeta'],_0x1692ec=_0x408316[_0x430d12(0x23d)](_0x2e8019(_0x5504a5));_0x27527f[_0x430d12(0x3ca)]=_0x1692ec,Object[_0x430d12(0x36e)](_0x27527f[_0x430d12(0x28b)])[_0x430d12(0x4a1)](([,_0x10948c])=>{const _0x52896e=_0x430d12,_0x17d4cf=_0x10948c[_0x52896e(0x3ca)],_0x165649=_0x408316[_0x52896e(0x23d)](_0x2e8019(_0x17d4cf));_0x10948c[_0x52896e(0x3ca)]=_0x165649;});}return _0x18e6de;}async[_0x27a911(0x412)](_0x556bbc,_0x2b1e0e){const _0x21e9a4=_0x27a911,{unitID:_0x45fe41,type:_0x13b14a,blockID:_0x37494}=_0x2b1e0e,_0x2c3617=this[_0x21e9a4(0x490)]()+'/'+_0x13b14a+_0x21e9a4(0x43a)+_0x45fe41+_0x21e9a4(0x295)+_0x37494;return(await this['_httpService'][_0x21e9a4(0x26f)](_0x2c3617))[_0x21e9a4(0x434)];}async[_0x27a911(0x247)](_0x58d02f,_0x44e8c0){const _0x3258da=_0x27a911,{unitID:_0x6dc586,type:_0x38597d,from:_0x24bf98,to:_0x4e109f}=_0x44e8c0,_0x45077c=this[_0x3258da(0x490)]()+'/'+_0x38597d+'/unit/'+_0x6dc586+_0x3258da(0x2ea)+_0x24bf98+_0x3258da(0x1a0)+_0x4e109f;return(await this[_0x3258da(0x2d7)][_0x3258da(0x26f)](_0x45077c))[_0x3258da(0x434)];}[_0x27a911(0x3ea)](){const _0x2e498d=_0x27a911;var _0x4e1bdd;return(_0x4e1bdd=this[_0x2e498d(0x37e)]['getConfig'](Qi))!=null?_0x4e1bdd:this[_0x2e498d(0x490)]();}[_0x27a911(0x490)](){const _0x30ae17=_0x27a911;var _0x5ef970;return(_0x5ef970=this[_0x30ae17(0x37e)][_0x30ae17(0x406)](zi))!=null?_0x5ef970:Zi;}async['getResourcesRequest'](_0x130ba9,_0x16ea60){const _0x2b95c0=_0x27a911,_0x52aab9=_0x2b95c0(0x417)+_0x16ea60[_0x2b95c0(0x38d)]+_0x2b95c0(0x43a)+_0x16ea60[_0x2b95c0(0x3a7)]+_0x2b95c0(0x4a3);return(await this['_httpService'][_0x2b95c0(0x26f)](_0x52aab9,{'params':{'resourceId':JSON[_0x2b95c0(0x4cb)](_0x16ea60[_0x2b95c0(0x297)])}}))[_0x2b95c0(0x434)];}[_0x27a911(0x250)](){const _0x156a00=_0x27a911;throw new Error(_0x156a00(0x38c));}[_0x27a911(0x367)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x27a911(0x42b)](){const _0x1755a7=_0x27a911;throw new Error(_0x1755a7(0x38c));}};Ct=Xr([is(0x0,_0x5c69d0),is(0x1,_0x1f782(_0x4c0c53))],Ct);var Jr=Object[_0x27a911(0x29f)],qr=Object[_0x27a911(0x330)],zr=(_0x3ac758,_0x53c9f5,_0x363ad6,_0x29e662)=>{const _0x172969=_0x27a911;for(var _0x37f223=_0x29e662>0x1?void 0x0:_0x29e662?qr(_0x53c9f5,_0x363ad6):_0x53c9f5,_0x25d6f0=_0x3ac758[_0x172969(0x4d3)]-0x1,_0x1ab55;_0x25d6f0>=0x0;_0x25d6f0--)(_0x1ab55=_0x3ac758[_0x25d6f0])&&(_0x37f223=(_0x29e662?_0x1ab55(_0x53c9f5,_0x363ad6,_0x37f223):_0x1ab55(_0x37f223))||_0x37f223);return _0x29e662&&_0x37f223&&Jr(_0x53c9f5,_0x363ad6,_0x37f223),_0x37f223;},Te=(_0x3d4c13,_0x306faf)=>(_0x3435b7,_0x6d25ba)=>_0x306faf(_0x3435b7,_0x6d25ba,_0x3d4c13);let bt=class extends _0xba6511{constructor(_0xcbf66e,_0x4700e6,_0x58c9ae,_0x512b81,_0x24e5f1){const _0x125b72=_0x27a911;super(_0xcbf66e,_0x4700e6,_0x58c9ae),this[_0x125b72(0x288)]=_0x512b81,this[_0x125b72(0x304)]=_0x24e5f1;}[_0x27a911(0x1b5)](_0xf6a16e,_0x2b4512){const _0xcb2f90=_0x27a911,_0x4f9b6f=this[_0xcb2f90(0x46b)](_0xf6a16e);if(_0x4f9b6f)try{const _0x3da2f8=this[_0xcb2f90(0x36b)](_0x4f9b6f,_0x2b4512);this[_0xcb2f90(0x230)](_0xf6a16e,_0x3da2f8);}catch(_0x3474c6){this[_0xcb2f90(0x304)][_0xcb2f90(0x388)](_0xcb2f90(0x20c),_0x3474c6),this[_0xcb2f90(0x39b)](_0xf6a16e);}const _0x4e0270=this[_0xcb2f90(0x1b8)](_0xf6a16e);if(_0x4e0270)try{const _0x378880=this[_0xcb2f90(0x36b)](_0x4e0270,_0x2b4512);this[_0xcb2f90(0x1fe)](_0xf6a16e,_0x378880);}catch(_0x283770){this[_0xcb2f90(0x304)][_0xcb2f90(0x388)](_0x283770),this['_clearRedo'](_0xf6a16e);}}['_clearUndo'](_0x167f30){const _0x2c86f4=_0x27a911,_0x34157d=this[_0x2c86f4(0x46b)](_0x167f30);_0x34157d&&(_0x34157d[_0x2c86f4(0x4d3)]=0x0,this['_updateStatus']());}[_0x27a911(0x2e7)](_0x594fce){const _0x330755=_0x27a911,_0xedf4a=this['_getRedoStack'](_0x594fce);_0xedf4a&&(_0xedf4a[_0x330755(0x4d3)]=0x0,this['_updateStatus']());}[_0x27a911(0x230)](_0x37e7d6,_0x1fb27c){const _0x5bb71e=_0x27a911;this['_undoStacks'][_0x5bb71e(0x19e)](_0x37e7d6,_0x1fb27c),this[_0x5bb71e(0x36f)]();}[_0x27a911(0x1fe)](_0x53083f,_0x130199){const _0x2fa551=_0x27a911;this[_0x2fa551(0x2e6)][_0x2fa551(0x19e)](_0x53083f,_0x130199),this[_0x2fa551(0x36f)]();}[_0x27a911(0x36b)](_0x21591a,_0x46d775){const _0x30f3ac=_0x27a911,_0x52d630=[];let _0x1cf873=_0x46d775,_0x11ddad=_0x46d775;for(let _0x3e5153=_0x21591a[_0x30f3ac(0x4d3)]-0x1;_0x3e5153>=0x0;_0x3e5153--){const {unitID:_0x2152af,undoMutations:_0x4fb52f,redoMutations:_0x4e6129}=_0x21591a[_0x3e5153],_0x3a0b44=this[_0x30f3ac(0x288)][_0x30f3ac(0x2be)](_0x1cf873,_0x4fb52f),_0x542178=this['_transformService'][_0x30f3ac(0x2be)](_0x11ddad,_0x4e6129);if(_0x1218ba(_0x3a0b44)||_0x1218ba(_0x542178)){this[_0x30f3ac(0x304)][_0x30f3ac(0x388)](_0x30f3ac(0x20c),'transformStack\x20failed!',_0x3a0b44,_0x542178);break;}_0x1cf873=_0x3a0b44[_0x30f3ac(0x338)],_0x11ddad=_0x542178['c1Prime'],_0x52d630['push']({'unitID':_0x2152af,'undoMutations':_0x3a0b44[_0x30f3ac(0x2d4)],'redoMutations':_0x542178['m2Prime']});}return _0x52d630[_0x30f3ac(0x3b5)]();}};bt=zr([Te(0x0,_0x41d661),Te(0x1,_0x22dfc9),Te(0x2,_0xf12dbe),Te(0x3,_0x28f8f5),Te(0x4,_0x5e4d90)],bt);class Zr extends _0xe4c81a{constructor(){const _0x295b1d=_0x27a911;super(),l(this,_0x295b1d(0x4d2)),this['urlChange$']=_0x4bb1b5(window,_0x295b1d(0x3f3))[_0x295b1d(0x1a1)](_0x39ba56(this[_0x295b1d(0x1b0)]),_0x551274(0x1),_0xcaab66(void 0x0));}[_0x27a911(0x423)](_0x475c70,_0x2319fe,_0x433573=!0x1){const _0x1c5abc=_0x27a911,_0x5c107f=new URL(window['location'][_0x1c5abc(0x2a4)]);_0x5c107f[_0x1c5abc(0x436)]['set'](_0x475c70,_0x2319fe),_0x433573?window[_0x1c5abc(0x23c)][_0x1c5abc(0x2ab)]('','',_0x5c107f[_0x1c5abc(0x3b0)]()):window['history'][_0x1c5abc(0x289)]('','',_0x5c107f[_0x1c5abc(0x3b0)]());}[_0x27a911(0x280)](_0x328c85,_0x492182=!0x1){const _0x299e71=_0x27a911,_0x3cda3a=new URL(window[_0x299e71(0x459)][_0x299e71(0x2a4)]);_0x3cda3a[_0x299e71(0x436)]['delete'](_0x328c85),_0x492182?window['history'][_0x299e71(0x2ab)]('','',_0x3cda3a[_0x299e71(0x3b0)]()):window['history']['pushState']('','',_0x3cda3a[_0x299e71(0x3b0)]());}['getParam'](_0x204ed2){const _0x57199e=_0x27a911;var _0x2a3529;return(_0x2a3529=new URL(window[_0x57199e(0x459)]['href'])['searchParams']['get'](_0x204ed2))!=null?_0x2a3529:void 0x0;}}const lt=_0x27a911(0x3e7),Qr=_0x27a911(0x4b3),He=0x6,eo=1.5,_t=0x4,to=1.5,so=_0x27a911(0x219);class io{constructor(_0x38d6e6,_0x4d5aa6,_0x463ff1,_0x4bf32a){const _0x4f5d97=_0x27a911;l(this,_0x4f5d97(0x40c),[]),l(this,_0x4f5d97(0x308),null),l(this,_0x4f5d97(0x2cc),null),l(this,_0x4f5d97(0x488),null),l(this,'_hideTimer',null),l(this,_0x4f5d97(0x1f6),null),(this[_0x4f5d97(0x357)]=_0x38d6e6,this[_0x4f5d97(0x3e8)]=_0x4d5aa6,this['_docSkeleton']=_0x463ff1,this[_0x4f5d97(0x1a2)]=_0x4bf32a,this[_0x4f5d97(0x1a9)]());}set[_0x27a911(0x241)](_0x599988){const _0x5ccd6a=_0x27a911;_0x599988?(this[_0x5ccd6a(0x488)]&&this[_0x5ccd6a(0x488)][_0x5ccd6a(0x37a)](),this[_0x5ccd6a(0x2cc)]&&this['_textBubble']['show']()):(this[_0x5ccd6a(0x488)]&&this[_0x5ccd6a(0x488)]['show'](),this[_0x5ccd6a(0x2cc)]&&this[_0x5ccd6a(0x2cc)]['hide']());}[_0x27a911(0x4de)](){const _0x3657ee=_0x27a911;for(const _0x43d3b0 of this[_0x3657ee(0x40c)])_0x43d3b0[_0x3657ee(0x4de)]();this[_0x3657ee(0x2cc)]&&this[_0x3657ee(0x2cc)][_0x3657ee(0x4de)](),this[_0x3657ee(0x488)]&&this[_0x3657ee(0x488)][_0x3657ee(0x4de)](),this[_0x3657ee(0x308)]&&this[_0x3657ee(0x308)][_0x3657ee(0x4de)](),this[_0x3657ee(0x1f6)]&&this[_0x3657ee(0x1f6)]();}[_0x27a911(0x1a9)](){const _0x2d86e2=_0x27a911,{_docSkeleton:_0x6492fd,_document:_0x24d5ab}=this,{color:_0x30b40c,name:_0x1c1141,ranges:_0x543df5}=this[_0x2d86e2(0x357)],_0x5a98c7=_0x24d5ab[_0x2d86e2(0x202)](),{docsLeft:_0x17d8b3,docsTop:_0x4a1a71}=_0x5a98c7,_0x4e0cdc=new _0x4d2c62(_0x5a98c7,_0x6492fd);for(const {startOffset:_0x1460c8,endOffset:_0x145b64,collapsed:_0x12d3c5,isActive:_0x82182b}of _0x543df5){const _0x39b482=_0x6492fd[_0x2d86e2(0x236)](_0x1460c8),_0x5f40ca=_0x6492fd['findNodePositionByCharIndex'](_0x145b64);if(_0x82182b){const {contentBoxPointGroup:_0x43f924}=_0x4e0cdc[_0x2d86e2(0x265)](_0x5f40ca,_0x5f40ca);if(_0x43f924[_0x2d86e2(0x4d3)]===0x0)continue;this[_0x2d86e2(0x408)](_0x30b40c,_0x43f924,_0x17d8b3,_0x4a1a71,_0x1c1141),this[_0x2d86e2(0x1f6)]=this[_0x2d86e2(0x2f6)]();}if(!_0x12d3c5){const {contentBoxPointGroup:_0x597d93}=_0x4e0cdc['getRangePointData'](_0x39b482,_0x5f40ca);if(_0x597d93[_0x2d86e2(0x4d3)]===0x0)continue;this[_0x2d86e2(0x21c)](_0x30b40c,_0x597d93,_0x17d8b3,_0x4a1a71);}}}[_0x27a911(0x408)](_0x56723c,_0x128d39,_0x10079e,_0x336e8e,_0x421d02){const _0x4a917b=_0x27a911,_0x1ee969=this[_0x4a917b(0x1d4)](_0x128d39),{left:_0x2b5f8c,top:_0x47de5d,height:_0x211ba7}=_0x1ee969,_0x1a2af8=this[_0x4a917b(0x4d7)](),_0x391323=to/_0x1a2af8,_0x159e20=new _0x51d98d(lt+_0x288a64[_0x4a917b(0x376)](He),{'left':_0x2b5f8c+_0x10079e-_0x391323,'top':_0x47de5d+_0x336e8e,'height':_0x211ba7,'width':eo,'fill':_0x56723c||_0x35cbea(_0x5c79d7[_0x4a917b(0x3cb)],0x0),'strokeWidth':_0x391323,'stroke':so,'evented':!0x0});this[_0x4a917b(0x308)]=_0x159e20,this[_0x4a917b(0x3e8)][_0x4a917b(0x3a3)](_0x159e20,_0x17f27b);const _0x473dff=new _0x51d98d(lt+_0x288a64[_0x4a917b(0x376)](He),{'left':_0x2b5f8c+_0x10079e-_0x391323,'top':_0x47de5d+_0x336e8e-_t/0x2,'height':_t,'width':_t,'fill':_0x56723c||_0x35cbea(_0x5c79d7['black'],0x0),'strokeWidth':0x0,'stroke':_0x56723c||_0x35cbea(_0x5c79d7[_0x4a917b(0x3cb)],0x0),'evented':!0x1});this[_0x4a917b(0x488)]=_0x473dff,this['_scene'][_0x4a917b(0x3a3)](_0x473dff,_0x17f27b);const _0x161711=new st(lt+_0x288a64[_0x4a917b(0x376)](He),{'left':_0x2b5f8c+_0x10079e-_0x391323,'top':_0x47de5d+_0x336e8e-Me,'text':_0x421d02,'color':_0x56723c});this[_0x4a917b(0x2cc)]=_0x161711,this[_0x4a917b(0x3e8)]['addObject'](_0x161711,_0x17f27b),this[_0x4a917b(0x241)]=!0x1;}['_handleHover'](){const _0x3823be=_0x27a911,_0xdd5ce5=this['_anchor'][_0x3823be(0x259)][_0x3823be(0x2c2)](()=>{this['_hover']=!0x0;}),_0x7f3d8a=this[_0x3823be(0x308)][_0x3823be(0x1c3)][_0x3823be(0x2c2)](()=>{const _0x218758=_0x3823be;this[_0x218758(0x2da)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x3aee6b=_0x218758;this[_0x3aee6b(0x241)]=!0x1;},0x7d0);});return()=>{const _0x18f608=_0x3823be;_0xdd5ce5[_0x18f608(0x34c)](),_0x7f3d8a['unsubscribe']();};}[_0x27a911(0x21c)](_0x20a197,_0x27f2fa,_0x1b0479,_0x4822c1){const _0x4085d6=_0x27a911,_0x3743f0=new _0x31f891(_0x20a197)[_0x4085d6(0x2a2)](0.2)[_0x4085d6(0x333)](),_0x517042=new _0x897d6(Qr+_0x288a64['generateRandomId'](He),{'pointsGroup':_0x27f2fa,'fill':_0x3743f0||_0x35cbea(_0x5c79d7[_0x4085d6(0x3cb)],0.2),'left':_0x1b0479,'top':_0x4822c1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4085d6(0x40c)][_0x4085d6(0x477)](_0x517042),this[_0x4085d6(0x3e8)][_0x4085d6(0x3a3)](_0x517042,_0x17f27b);}[_0x27a911(0x1d4)](_0x9b75cd){const _0xba6b29=_0x9b75cd[0x0],_0x30a272=_0xba6b29[0x0],_0x1d31eb=_0xba6b29[0x2],{x:_0x490669,y:_0x1b73ac}=_0x30a272,{x:_0x2af2a7,y:_0x14ed29}=_0x1d31eb;return{'left':_0x490669,'top':_0x1b73ac,'width':_0x2af2a7-_0x490669,'height':_0x14ed29-_0x1b73ac};}[_0x27a911(0x4d7)](){const _0x1d9736=_0x27a911,{scaleX:_0x25e2fc,scaleY:_0x50aaae}=this[_0x1d9736(0x3e8)]['getAncestorScale']();return Math[_0x1d9736(0x29d)](_0x25e2fc,_0x50aaae);}}var no=Object[_0x27a911(0x29f)],ro=Object[_0x27a911(0x330)],oo=(_0x11cba3,_0x2f0e43,_0x27348a,_0x1389d2)=>{const _0x48a0a3=_0x27a911;for(var _0x4f9346=_0x1389d2>0x1?void 0x0:_0x1389d2?ro(_0x2f0e43,_0x27348a):_0x2f0e43,_0x16d346=_0x11cba3[_0x48a0a3(0x4d3)]-0x1,_0x4b48e4;_0x16d346>=0x0;_0x16d346--)(_0x4b48e4=_0x11cba3[_0x16d346])&&(_0x4f9346=(_0x1389d2?_0x4b48e4(_0x2f0e43,_0x27348a,_0x4f9346):_0x4b48e4(_0x4f9346))||_0x4f9346);return _0x1389d2&&_0x4f9346&&no(_0x2f0e43,_0x27348a,_0x4f9346),_0x4f9346;},Re=(_0x19c42d,_0x47e686)=>(_0x179908,_0x15874f)=>_0x47e686(_0x179908,_0x15874f,_0x19c42d);let Ge=class extends _0xe4c81a{constructor(_0x3ab39c,_0x4c61c8,_0x2cfedf,_0xf84ea1,_0x47cdde){const _0x4f99eb=_0x27a911;super(),l(this,_0x4f99eb(0x1c6),[]),(this[_0x4f99eb(0x310)]=_0x3ab39c,this[_0x4f99eb(0x339)]=_0x4c61c8,this[_0x4f99eb(0x346)]=_0x2cfedf,this[_0x4f99eb(0x221)]=_0xf84ea1,this[_0x4f99eb(0x2d9)]=_0x47cdde,this[_0x4f99eb(0x1f7)]());}[_0x27a911(0x1f7)](){const _0x57d4ac=_0x27a911;this[_0x57d4ac(0x221)]['currentSkeleton$']['pipe'](_0x1e8d86(this['dispose$']),_0xdffcb3(_0x54d981=>{const _0x322dfd=_0x57d4ac;if(_0x54d981){const _0x4f3128=_0x54d981[_0x322dfd(0x4af)]()[_0x322dfd(0x242)]()[_0x322dfd(0x2ba)]();return _0x4619fd(this[_0x322dfd(0x310)][_0x322dfd(0x4b4)](_0x4f3128),this[_0x322dfd(0x2d9)][_0x322dfd(0x1bf)])[_0x322dfd(0x1a1)](_0x3b7068(([_0x3761aa,_0x209136])=>({'skeleton':_0x54d981,'cursors':[..._0x3761aa[_0x322dfd(0x3bb)]()][_0x322dfd(0x487)](_0x55dc45=>({..._0x55dc45,'color':_0x209136[_0x55dc45['color']]}))})));}return _0x4d7b9c({'skeleton':null,'cursors':[]});}))[_0x57d4ac(0x307)](({skeleton:_0x3d2bd9,cursors:_0x4436fe})=>{this['_removeCollabCursors'](),_0x3d2bd9&&this['_updateCollabCursors'](_0x3d2bd9,_0x4436fe);});}['_updateCollabCursors'](_0x493ed7,_0x1867ce){const _0x4b7949=_0x27a911,_0x3087df=this['_getDocObject']();if(_0x3087df==null)return;const {scene:_0x270045,document:_0x53e4f4}=_0x3087df,_0x49fce4=_0x1867ce['map'](_0xde9728=>new io(_0xde9728,_0x270045,_0x493ed7,_0x53e4f4));this[_0x4b7949(0x1c6)]=_0x49fce4;}[_0x27a911(0x203)](){const _0x4dd864=_0x27a911;this[_0x4dd864(0x1c6)]['forEach'](_0x1814b3=>_0x1814b3['dispose']()),this[_0x4dd864(0x1c6)]=[];}['_getDocObject'](){const _0x4215b5=_0x27a911;return _0x2c43a1(this[_0x4215b5(0x339)],this['_renderManagerService']);}};Ge=oo([_0x5cbde1(_0x2af1fa[_0x27a911(0x3c0)],Ge),Re(0x0,_0x1f782(fe)),Re(0x1,_0x41d661),Re(0x2,_0x30f264),Re(0x3,_0x1f782(_0x3159ae)),Re(0x4,_0x1f782(_0x2fce55))],Ge);var ao=Object[_0x27a911(0x29f)],co=Object[_0x27a911(0x330)],ho=(_0x35243f,_0x5ecb15,_0x2f0510,_0xc52a14)=>{const _0xa8f39b=_0x27a911;for(var _0x3d2873=_0xc52a14>0x1?void 0x0:_0xc52a14?co(_0x5ecb15,_0x2f0510):_0x5ecb15,_0x2f4d15=_0x35243f[_0xa8f39b(0x4d3)]-0x1,_0x526b03;_0x2f4d15>=0x0;_0x2f4d15--)(_0x526b03=_0x35243f[_0x2f4d15])&&(_0x3d2873=(_0xc52a14?_0x526b03(_0x5ecb15,_0x2f0510,_0x3d2873):_0x526b03(_0x3d2873))||_0x3d2873);return _0xc52a14&&_0x3d2873&&ao(_0x5ecb15,_0x2f0510,_0x3d2873),_0x3d2873;},ut=(_0x5183b3,_0x3f41f0)=>(_0x2c2114,_0x20c837)=>_0x3f41f0(_0x2c2114,_0x20c837,_0x5183b3);let Ze=class{constructor(_0x32cd37,_0x19cdad,_0x5f1255){const _0x5da7da=_0x27a911;this['_configService']=_0x32cd37,this[_0x5da7da(0x2d7)]=_0x19cdad,this['localeService']=_0x5f1255,this[_0x5da7da(0x4a4)]();}[_0x27a911(0x4a4)](){const _0x450847=_0x27a911;this['_httpService'][_0x450847(0x444)]({'priority':0x1,'interceptor':(_0x38baef,_0x1f4be9)=>_0x1f4be9(_0x38baef)[_0x450847(0x1a1)](_0x4d232f(async _0x3de6e8=>{const _0x3452ba=_0x450847,_0x10fc1b=_0x3de6e8;if(_0x10fc1b['status']===0x191&&window[_0x3452ba(0x38f)](this[_0x3452ba(0x2df)]['t'](_0x3452ba(0x20e)))){const _0x527084=window['encodeURIComponent'](window['location']['href']);window[_0x3452ba(0x459)][_0x3452ba(0x2a4)]=this[_0x3452ba(0x302)]()+_0x3452ba(0x446)+_0x527084;}return _0x10fc1b;}))});}[_0x27a911(0x302)](){const _0x55abdf=_0x27a911;var _0x5ea680;return(_0x5ea680=this[_0x55abdf(0x37e)][_0x55abdf(0x406)](mn))!=null?_0x5ea680:gn;}};Ze=ho([ut(0x0,_0x5c69d0),ut(0x1,_0x1f782(_0x4c0c53)),ut(0x2,_0x1f782(_0x262e83))],Ze);var lo=Object[_0x27a911(0x29f)],_o=Object[_0x27a911(0x330)],uo=(_0x36f342,_0x29eed9,_0x594bd6,_0x321d56)=>{const _0x6c0c90=_0x27a911;for(var _0x4ca237=_0x321d56>0x1?void 0x0:_0x321d56?_o(_0x29eed9,_0x594bd6):_0x29eed9,_0x3a5bdf=_0x36f342[_0x6c0c90(0x4d3)]-0x1,_0x388698;_0x3a5bdf>=0x0;_0x3a5bdf--)(_0x388698=_0x36f342[_0x3a5bdf])&&(_0x4ca237=(_0x321d56?_0x388698(_0x29eed9,_0x594bd6,_0x4ca237):_0x388698(_0x4ca237))||_0x4ca237);return _0x321d56&&_0x4ca237&&lo(_0x29eed9,_0x594bd6,_0x4ca237),_0x4ca237;},ns=(_0xd3acab,_0x65893d)=>(_0x3cbb79,_0x2a4986)=>_0x65893d(_0x3cbb79,_0x2a4986,_0xd3acab);const fo='AUTHZ_URL_KEY',mo='/universer-api/authz';let Tt=class extends _0xd60028{constructor(_0x349049,_0x546b8e){const _0x1f8e39=_0x27a911;super(),this[_0x1f8e39(0x2b8)]=_0x349049,this[_0x1f8e39(0x37e)]=_0x546b8e,this['_initMergeInterceptor']();}[_0x27a911(0x2bd)](){const _0xb84cd7=_0x27a911,_0x8155d6=this;this[_0xb84cd7(0x3be)](this[_0xb84cd7(0x2b8)][_0xb84cd7(0x444)]({'priority':0x3e7,'interceptor':_0x4a8445({'isMatch'(_0x52403f){const _0x168940=_0xb84cd7;var _0x3909b4;if(_0x52403f[_0x168940(0x476)]===_0x168940(0x2ef)&&((_0x3909b4=_0x52403f[_0x168940(0x1e0)])!=null&&_0x3909b4[_0x168940(0x434)])){const {objectID:_0x39b74f,objectType:_0x2578e8}=_0x52403f[_0x168940(0x1e0)]['body']||{};if(!_0x39b74f||_0x2578e8===void 0x0)return!0x1;const _0x1f1962=_0x8155d6[_0x168940(0x3ee)]()+'/'+_0x2578e8+_0x168940(0x4a6)+_0x39b74f+_0x168940(0x407);if(_0x52403f[_0x168940(0x3ab)]===_0x1f1962)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2ac973){const _0xcb5a76=_0xb84cd7;var _0x3e97ff;return(_0x3e97ff=_0x2ac973[_0xcb5a76(0x1e0)])==null?void 0x0:_0x3e97ff[_0xcb5a76(0x434)];},'mergeParamsToRequest'(_0x1171c0,_0x3c4841){const _0x23572e=_0xb84cd7,_0x324a54=_0x8155d6['_getAPIPrefixPath']()+_0x23572e(0x3d4),_0x115c66=_0x1171c0[_0x23572e(0x200)]((_0x1eb492,_0x94dd15)=>{const _0x47eec8=_0x23572e,{unitID:_0x9038dc,objectID:_0xa03130,objectType:_0x472ddc,actions:_0x347272}=_0x94dd15;return _0x1eb492[_0x9038dc]||(_0x1eb492[_0x9038dc]={}),_0x1eb492[_0x9038dc][_0xa03130]||(_0x1eb492[_0x9038dc][_0xa03130]={'objectID':_0xa03130,'objectType':_0x472ddc,'actions':[]}),_0x1eb492[_0x9038dc][_0xa03130][_0x47eec8(0x46f)]['push'](..._0x347272),_0x1eb492;},{}),_0x5fa057=[];for(const _0x1d8bb7 in _0x115c66)for(const _0x2608de in _0x115c66[_0x1d8bb7]){const {actions:_0x754a12,objectType:_0x27fef9}=_0x115c66[_0x1d8bb7][_0x2608de],_0x27dbf4=[...new Set(_0x754a12)];_0x5fa057['push']({'unitID':_0x1d8bb7,'objectID':_0x2608de,'objectType':_0x27fef9,'actions':_0x27dbf4});}return new _0x47bc65(_0x23572e(0x2ef),_0x324a54,{'headers':_0x3c4841['headers'],'withCredentials':_0x3c4841[_0x23572e(0x48b)],'responseType':_0x3c4841[_0x23572e(0x449)],'body':{'requests':_0x5fa057}});}},{'distributeResult'(_0x2e8623,_0xa22e17){const _0xb0168c=_0xb84cd7,{objectActions:_0xb58f0f}=_0x2e8623;return _0xa22e17[_0xb0168c(0x231)](_0x3184ea=>{const _0x270f66=_0xb0168c,{unitID:_0x141925,objectID:_0x563fa8,actions:_0x30e483}=_0x3184ea,_0x2c7f9b=_0xb58f0f[_0x270f66(0x414)](_0x4a0cae=>_0x4a0cae[_0x270f66(0x3a7)]===_0x141925&&_0x4a0cae['objectID']===_0x563fa8),_0x3963ea=_0x30e483[_0x270f66(0x231)](_0x12653d=>_0x2c7f9b==null?void 0x0:_0x2c7f9b['actions'][_0x270f66(0x414)](_0x1b4c42=>_0x1b4c42[_0x270f66(0x2f3)]===_0x12653d))['filter'](_0x32925d=>!!_0x32925d);return{'config':_0x3184ea,'result':{'actions':_0x3963ea,'error':_0x2e8623[_0x270f66(0x388)]}};});}})}));}[_0x27a911(0x3ee)](){const _0x27743a=_0x27a911;var _0x3d7b0c;return(_0x3d7b0c=this['_configService'][_0x27743a(0x406)](fo))!=null?_0x3d7b0c:mo;}async[_0x27a911(0x278)](_0x4aa75d){const _0x14b2cc=_0x27a911,_0x1d471d=this[_0x14b2cc(0x3ee)]()+'/'+_0x4aa75d[_0x14b2cc(0x3c6)]+_0x14b2cc(0x343);return(await this[_0x14b2cc(0x2b8)]['post'](_0x1d471d,{'body':_0x4aa75d}))[_0x14b2cc(0x434)][_0x14b2cc(0x1d5)]||'';}async[_0x27a911(0x26b)](_0x27a102){const _0xc0cfce=_0x27a911,_0x24c17b=this[_0xc0cfce(0x3ee)]()+_0xc0cfce(0x384);return(await this['_HTTPService'][_0xc0cfce(0x472)](_0x24c17b,{'body':_0x27a102}))[_0xc0cfce(0x434)]['objects'];}async['update'](_0x11fbd7){const _0x190793=_0x27a911,_0x370bd7=this[_0x190793(0x3ee)]()+'/'+_0x11fbd7['objectType']+_0x190793(0x4a6)+_0x11fbd7[_0x190793(0x1d5)];await this[_0x190793(0x2b8)][_0x190793(0x41a)](_0x370bd7,{'body':_0x11fbd7});}async[_0x27a911(0x386)](_0x55327b){const _0x267b2d=_0x27a911,_0x28b9af=this[_0x267b2d(0x3ee)]()+'/'+_0x55327b['objectType']+'/object/'+_0x55327b['objectID']+_0x267b2d(0x407);return(await this['_HTTPService'][_0x267b2d(0x472)](_0x28b9af,{'body':_0x55327b}))[_0x267b2d(0x434)][_0x267b2d(0x46f)];}async[_0x27a911(0x301)](_0x4db18f){const _0x3f6c0a=_0x27a911,_0x59c22d=this['_getAPIPrefixPath']()+_0x3f6c0a(0x3d4);return(await this[_0x3f6c0a(0x2b8)]['post'](_0x59c22d,{'body':{'requests':_0x4db18f}}))['body'][_0x3f6c0a(0x359)];}async[_0x27a911(0x2dd)](_0x3c337c){const _0x5b0250=_0x27a911,_0x57c563=this['_getAPIPrefixPath']()+'/'+_0x3c337c[_0x5b0250(0x3c6)]+'/role',_0x4b002b=await this['_HTTPService'][_0x5b0250(0x472)](_0x57c563,{'body':_0x3c337c});return{'roles':_0x4b002b[_0x5b0250(0x434)][_0x5b0250(0x32a)],'actions':_0x4b002b[_0x5b0250(0x434)][_0x5b0250(0x46f)]};}async[_0x27a911(0x2db)](_0x11cd95){const _0x56a9df=_0x27a911,_0x52606c=this[_0x56a9df(0x3ee)]()+_0x56a9df(0x2de);await this[_0x56a9df(0x2b8)][_0x56a9df(0x21b)](_0x52606c,{'params':{'collaboratorID':_0x11cd95[_0x56a9df(0x46a)],'objectID':_0x11cd95[_0x56a9df(0x1d5)],'unitID':_0x11cd95['unitID']}});}async[_0x27a911(0x1ae)](_0xb4084d){const _0x51af36=_0x27a911,_0x1d78e9=this[_0x51af36(0x3ee)]()+'/collaborator';await this[_0x51af36(0x2b8)][_0x51af36(0x3bc)](_0x1d78e9,{'body':_0xb4084d});}async[_0x27a911(0x211)](_0xf70bb5){const _0x3d51ac=_0x27a911,_0x4ee758=this[_0x3d51ac(0x3ee)]()+_0x3d51ac(0x2de);await this[_0x3d51ac(0x2b8)][_0x3d51ac(0x472)](_0x4ee758,{'body':_0xf70bb5});}async['listCollaborators'](_0x2b97a2){const _0x2b36ea=_0x27a911,_0xb51c17=this['_getAPIPrefixPath']()+_0x2b36ea(0x2de);return(await this[_0x2b36ea(0x2b8)][_0x2b36ea(0x26f)](_0xb51c17,{'params':{'objectID':_0x2b97a2[_0x2b36ea(0x1d5)],'unitID':_0x2b97a2[_0x2b36ea(0x3a7)]}}))['body'][_0x2b36ea(0x1f8)];}async[_0x27a911(0x481)](_0x26abe4){const _0x3d8980=_0x27a911,_0x2f0603=this[_0x3d8980(0x3ee)]()+_0x3d8980(0x2de);await this[_0x3d8980(0x2b8)][_0x3d8980(0x41a)](_0x2f0603,{'body':_0x26abe4});}};Tt=uo([ns(0x0,_0x1f782(_0x4c0c53)),ns(0x1,_0x1f782(_0x5c69d0))],Tt);var go=Object['defineProperty'],So=Object[_0x27a911(0x330)],vo=(_0xdb3280,_0x4a57ab,_0x1adbe7,_0x5ef13a)=>{const _0x36f921=_0x27a911;for(var _0x2a2aad=_0x5ef13a>0x1?void 0x0:_0x5ef13a?So(_0x4a57ab,_0x1adbe7):_0x4a57ab,_0x539959=_0xdb3280[_0x36f921(0x4d3)]-0x1,_0x1b19bd;_0x539959>=0x0;_0x539959--)(_0x1b19bd=_0xdb3280[_0x539959])&&(_0x2a2aad=(_0x5ef13a?_0x1b19bd(_0x4a57ab,_0x1adbe7,_0x2a2aad):_0x1b19bd(_0x2a2aad))||_0x2a2aad);return _0x5ef13a&&_0x2a2aad&&go(_0x4a57ab,_0x1adbe7,_0x2a2aad),_0x2a2aad;},rs=(_0x346c6e,_0x117c28)=>(_0x112ae2,_0xeeedf1)=>_0x117c28(_0x112ae2,_0xeeedf1,_0x346c6e);const po=[_0x27a911(0x3b7),'image/jpeg','image/jpg',_0x27a911(0x4e0),'image/bmp'],Io=0x5*0x400*0x400,Eo=_0x27a911(0x40a),Co=_0x27a911(0x321),bo=_0x27a911(0x2d2),To='/universer-api/file/{fileID}/sign-url';let Rt=class{constructor(_0x40d5b7,_0xfca409){const _0x245cca=_0x27a911;l(this,'_waitCount',0x0),l(this,_0x245cca(0x30f),new _0x5a3e6d()),l(this,_0x245cca(0x461),this[_0x245cca(0x30f)]),l(this,_0x245cca(0x2ad),new Map()),(this[_0x245cca(0x2d7)]=_0x40d5b7,this[_0x245cca(0x37e)]=_0xfca409);}[_0x27a911(0x331)](_0x6bcb73){const _0x3f6c64=_0x27a911;this[_0x3f6c64(0x353)]=_0x6bcb73,this[_0x3f6c64(0x30f)]['next'](_0x6bcb73);}['getImageSourceCache'](_0x291362,_0x2a3227){const _0x4b9282=_0x27a911;if(_0x2a3227===_0x46b488[_0x4b9282(0x20b)]){const _0x2e78bc=new Image();return _0x2e78bc[_0x4b9282(0x395)]=_0x291362,_0x2e78bc;}return this[_0x4b9282(0x2ad)][_0x4b9282(0x26f)](_0x291362);}[_0x27a911(0x2e9)](_0x3e4e6d,_0x182d05,_0x188d62){const _0x3af03f=_0x27a911;_0x182d05===_0x46b488['BASE64']||_0x188d62==null||this['_imageSourceCache'][_0x3af03f(0x19e)](_0x3e4e6d,_0x188d62);}async[_0x27a911(0x3e4)](_0x4a1784){const _0x1155fe=_0x27a911;try{const _0x3f30bd=this[_0x1155fe(0x25d)](this[_0x1155fe(0x4cd)](),''+_0x4a1784),_0xfbbf30=(await this[_0x1155fe(0x2d7)][_0x1155fe(0x26f)](_0x3f30bd))[_0x1155fe(0x434)];return _0xfbbf30['error']&&_0xfbbf30[_0x1155fe(0x388)][_0x1155fe(0x37f)]===Rs['OK']?Promise[_0x1155fe(0x4c0)](_0xfbbf30[_0x1155fe(0x3ab)]):Promise['reject'](_0xfbbf30[_0x1155fe(0x388)]);}catch(_0x49d065){return Promise[_0x1155fe(0x34a)](_0x49d065);}}async[_0x27a911(0x305)](_0x506823){const _0x19f7bf=_0x27a911;let _0x1c54c6='';if(!po[_0x19f7bf(0x223)](_0x506823[_0x19f7bf(0x38d)]))return this[_0x19f7bf(0x1c5)](),Promise[_0x19f7bf(0x34a)](new Error(_0x41e1e4[_0x19f7bf(0x296)]));if(_0x506823['size']>Io)return this[_0x19f7bf(0x1c5)](),Promise[_0x19f7bf(0x34a)](new Error(_0x41e1e4['ERROR_EXCEED_SIZE']));try{const _0x28d671=new FormData();_0x28d671['append'](_0x19f7bf(0x38e),_0x506823);const _0xdec215=this[_0x19f7bf(0x3dd)]()+_0x19f7bf(0x314)+_0x506823[_0x19f7bf(0x1bd)][_0x19f7bf(0x3b0)](),_0x5aef6d=await(await fetch(_0xdec215,{'method':_0x19f7bf(0x2ef),'body':_0x28d671}))[_0x19f7bf(0x2c9)]();if(typeof _0x5aef6d[_0x19f7bf(0x309)]!=_0x19f7bf(0x2aa))return this[_0x19f7bf(0x1c5)](),Promise['reject'](new Error(_0x41e1e4[_0x19f7bf(0x3e2)]));_0x1c54c6=_0x5aef6d[_0x19f7bf(0x309)];}catch{return this[_0x19f7bf(0x1c5)](),Promise[_0x19f7bf(0x34a)](new Error(_0x41e1e4[_0x19f7bf(0x3e2)]));}return new Promise((_0x516871,_0x15b497)=>{const _0x3a15c6=_0x19f7bf,_0x1c072a=new FileReader();_0x1c072a['readAsDataURL'](_0x506823),_0x1c072a[_0x3a15c6(0x3ff)]=_0x4ce651=>{const _0x21d233=_0x3a15c6;var _0x22ab02;const _0x1c6791=(_0x22ab02=_0x4ce651['target'])==null?void 0x0:_0x22ab02[_0x21d233(0x482)];if(_0x1c6791==null){this[_0x21d233(0x1c5)](),_0x15b497(new Error(_0x41e1e4[_0x21d233(0x3e2)]));return;}const _0x300b33=_0x288a64[_0x21d233(0x376)](0x6);_0x516871({'imageId':_0x300b33,'imageSourceType':_0x46b488['UUID'],'source':_0x1c54c6,'base64Cache':_0x1c6791,'status':_0x41e1e4[_0x21d233(0x2a9)]}),this[_0x21d233(0x1c5)]();};});}['_getUploadFileURL'](){const _0x283756=_0x27a911;var _0x46633e;return(_0x46633e=this[_0x283756(0x37e)][_0x283756(0x406)](Eo))!=null?_0x46633e:Co;}[_0x27a911(0x4cd)](){const _0x81674d=_0x27a911;var _0x16dc54;return(_0x16dc54=this['_configService'][_0x81674d(0x406)](bo))!=null?_0x16dc54:To;}[_0x27a911(0x25d)](_0x1ddcc2,_0x2f9e4c){const _0x59b417=_0x27a911;return _0x1ddcc2[_0x59b417(0x486)](_0x59b417(0x3a5),_0x2f9e4c);}[_0x27a911(0x1c5)](){const _0x152d71=_0x27a911;this[_0x152d71(0x353)]-=0x1,this[_0x152d71(0x30f)][_0x152d71(0x24a)](this[_0x152d71(0x353)]);}};Rt=vo([rs(0x0,_0x1f782(_0x4c0c53)),rs(0x1,_0x5c69d0)],Rt);var Ro=Object[_0x27a911(0x29f)],Oo=Object[_0x27a911(0x330)],Do=(_0x2c386b,_0x1fef62,_0x48037e,_0x5c0dd9)=>{const _0x24f965=_0x27a911;for(var _0x199592=_0x5c0dd9>0x1?void 0x0:_0x5c0dd9?Oo(_0x1fef62,_0x48037e):_0x1fef62,_0x3e1a81=_0x2c386b[_0x24f965(0x4d3)]-0x1,_0x2779ce;_0x3e1a81>=0x0;_0x3e1a81--)(_0x2779ce=_0x2c386b[_0x3e1a81])&&(_0x199592=(_0x5c0dd9?_0x2779ce(_0x1fef62,_0x48037e,_0x199592):_0x2779ce(_0x199592))||_0x199592);return _0x5c0dd9&&_0x199592&&Ro(_0x1fef62,_0x48037e,_0x199592),_0x199592;},Oe=(_0x286488,_0x11820b)=>(_0x56a857,_0x361c4a)=>_0x11820b(_0x56a857,_0x361c4a,_0x286488);let Ye=class extends _0xe4c81a{constructor(_0x798859,_0x2f9fe7,_0xce5815,_0x8fb009,_0x1b456e){const _0x1522cc=_0x27a911;super(),this[_0x1522cc(0x43e)]=_0x798859,this[_0x1522cc(0x339)]=_0x2f9fe7,this[_0x1522cc(0x1cc)]=_0xce5815,this['_collaborationSessionService']=_0x8fb009,this[_0x1522cc(0x2e2)]=_0x1b456e,this['_initUnitPermissionChange'](),this['_initCloseConn']();}[_0x27a911(0x1f1)](){const _0xc20dcd=_0x27a911,_0x40da35=async _0x442462=>{const _0x25930d=_0x5bd0;(await this['_collaborationSessionService'][_0x25930d(0x337)](_0x442462))['event$']['pipe'](_0x22f021(_0x48c51a=>_0x48c51a['eventID']===_0xc426c8['SHOULD_CLOSE_CONN']),_0x1e8d86(this[_0x25930d(0x1b0)]))[_0x25930d(0x307)](_0x3b34af=>{const _0x49b7f1=_0x25930d,_0x4c31a7=_0x3b34af,{reason:_0x3e64fa}=_0x4c31a7[_0x49b7f1(0x1a7)];this['_injector'][_0x49b7f1(0x26f)](_0x3bfc5b)['show']({'type':_0x471b9b[_0x49b7f1(0x3f0)],'content':this[_0x49b7f1(0x2e2)]['t']('collaboration.closeRoom')+'('+_0x3e64fa+')'}),this[_0x49b7f1(0x1cc)][_0x49b7f1(0x1a6)](new _0x3665b6(_0x442462)['id'],!0x1),this[_0x49b7f1(0x246)]['closeSession'](_0x442462);});};_0xe2f998(this[_0xc20dcd(0x339)][_0xc20dcd(0x46c)](_0x13af1a[_0xc20dcd(0x3c2)]),this[_0xc20dcd(0x339)]['getTypeOfUnitAdded$'](_0x13af1a['UNIVER_DOC']))['pipe'](_0x3b7068(_0x2524fe=>_0x2524fe[_0xc20dcd(0x2ba)]()),_0x22f021(_0x5314ee=>!_0x154483(_0x5314ee)),_0x1e8d86(this[_0xc20dcd(0x1b0)]))[_0xc20dcd(0x307)](_0x10b611=>{_0x40da35(_0x10b611);});}[_0x27a911(0x2e3)](){const _0x4ae5e4=_0x27a911,_0x11b974=async _0x3a19d7=>{const _0x24aeb7=_0x5bd0;(await this[_0x24aeb7(0x246)][_0x24aeb7(0x337)](_0x3a19d7))[_0x24aeb7(0x28f)][_0x24aeb7(0x1a1)](_0x22f021(_0x592698=>_0x592698[_0x24aeb7(0x35d)]===_0xc426c8['UPDATE_PERMISSION_OBJ']),_0x1e8d86(this[_0x24aeb7(0x1b0)]))[_0x24aeb7(0x307)](_0x2f749a=>{const _0x4a3486=_0x24aeb7,_0x3cf721=_0x2f749a,{objectId:_0x3a1b7d}=_0x3cf721['data'];_0x3a1b7d===_0x3a19d7&&this[_0x4a3486(0x43e)][_0x4a3486(0x26f)](_0x1f4804)[_0x4a3486(0x275)](_0x3a19d7);});};_0xe2f998(this[_0x4ae5e4(0x339)][_0x4ae5e4(0x46c)](_0x13af1a[_0x4ae5e4(0x3c2)]),this['_univerInstanceService'][_0x4ae5e4(0x46c)](_0x13af1a['UNIVER_DOC']))[_0x4ae5e4(0x1a1)](_0x3b7068(_0x2ebc61=>_0x2ebc61['getUnitId']()),_0x22f021(_0x1025b3=>!_0x154483(_0x1025b3)),_0x1e8d86(this[_0x4ae5e4(0x1b0)]))[_0x4ae5e4(0x307)](_0x5c9239=>{_0x11b974(_0x5c9239);});}};Ye=Do([_0x5cbde1(_0x2af1fa['Starting'],Ye),Oe(0x0,_0x1f782(_0x55b67e)),Oe(0x1,_0x41d661),Oe(0x2,_0x1a3671),Oe(0x3,_0x1f782(ge)),Oe(0x4,_0x1f782(_0x262e83))],Ye);var $s=Object[_0x27a911(0x29f)],Po=Object[_0x27a911(0x330)],wo=(_0x41d33a,_0x151670,_0xf86196)=>_0x151670 in _0x41d33a?$s(_0x41d33a,_0x151670,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf86196}):_0x41d33a[_0x151670]=_0xf86196,No=(_0x53caa2,_0x515ffb,_0x52b0d6,_0x30ceec)=>{for(var _0x183d13=_0x30ceec>0x1?void 0x0:_0x30ceec?Po(_0x515ffb,_0x52b0d6):_0x515ffb,_0x3b2e75=_0x53caa2['length']-0x1,_0x302325;_0x3b2e75>=0x0;_0x3b2e75--)(_0x302325=_0x53caa2[_0x3b2e75])&&(_0x183d13=(_0x30ceec?_0x302325(_0x515ffb,_0x52b0d6,_0x183d13):_0x302325(_0x183d13))||_0x183d13);return _0x30ceec&&_0x183d13&&$s(_0x515ffb,_0x52b0d6,_0x183d13),_0x183d13;},os=(_0x1d4f26,_0x1c1236)=>(_0x8564af,_0x207f67)=>_0x1c1236(_0x8564af,_0x207f67,_0x1d4f26),Mo=(_0x4c729a,_0x523a75,_0x441abc)=>wo(_0x4c729a,_0x523a75+'',_0x441abc);const Ao=_0x27a911(0x4be);let Ot=class extends _0x3a2e62{constructor(_0x233109,_0x3697f0,_0x195afc){super(),this['_config']=_0x233109,this['_logService']=_0x3697f0,this['_injector']=_0x195afc;}['onStarting'](_0x44a076){const _0x11e93d=_0x27a911;var _0x3d087b,_0x498bf4,_0xac620c,_0x19c755,_0x548968;_0x44a076[_0x11e93d(0x496)](_0x761a41)&&this[_0x11e93d(0x304)][_0x11e93d(0x388)](_0x11e93d(0x1c8),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x21f33b=[[_0x761a41,{'useClass':bt}],[ge],[Lt],[_0x4c0c53],[Ls,{'useClass':Zr}],[ne],[D],[_0x370db5],[qe],[Je],[Xe],[Ut],[Ze],[Ds],[Ye],[Os,{'useClass':(_0x498bf4=(_0x3d087b=this[_0x11e93d(0x4a7)])==null?void 0x0:_0x3d087b[_0x11e93d(0x25c)])!=null?_0x498bf4:gt}],[_0x16c1ea,{'useClass':_0x169803}],[_0x3aa0af,{'useClass':Ct}],[_0x534d8a,{'useClass':Tt}],[_0x37b1ff,{'useClass':Rt}],[De],[Be],[ke],[We],[fe]];(_0xac620c=this[_0x11e93d(0x4a7)])!=null&&_0xac620c[_0x11e93d(0x35c)]&&_0x21f33b['push']([et,{'useClass':An}]),((_0x19c755=this['_config'])==null?void 0x0:_0x19c755[_0x11e93d(0x375)])==null||this['_config']['collaborationUniverTypes'][_0x11e93d(0x223)](_0x13af1a[_0x11e93d(0x3c2)])?_0x21f33b[_0x11e93d(0x477)]([Ve]):this['_config']['collaborationUniverTypes'][_0x11e93d(0x223)](_0x13af1a['UNIVER_DOC'])&&_0x21f33b['push']([Ge]),_0x21f33b=_0x11950c(_0x21f33b,(_0x548968=this[_0x11e93d(0x4a7)])==null?void 0x0:_0x548968[_0x11e93d(0x23f)]),_0x21f33b[_0x11e93d(0x4a1)](_0x4a526e=>_0x44a076['add'](_0x4a526e)),_0x44a076[_0x11e93d(0x26f)](_0x4c0c53)[_0x11e93d(0x444)]({'priority':0x14,'interceptor':_0x4106bc({'maxParallel':0x6})}),this[_0x11e93d(0x1af)]();}['_initModules'](){const _0x3d3f8b=_0x27a911;var _0x385037,_0x1aa483;(_0x385037=this[_0x3d3f8b(0x4a7)])!=null&&_0x385037[_0x3d3f8b(0x381)]||this[_0x3d3f8b(0x43e)][_0x3d3f8b(0x26f)](D)[_0x3d3f8b(0x3e5)](),(_0x1aa483=this[_0x3d3f8b(0x4a7)])!=null&&_0x1aa483['enableAuthServer']&&this[_0x3d3f8b(0x43e)]['get'](Ze);}};Mo(Ot,_0x27a911(0x471),Ao),Ot=No([_0x33d520(_0x4cecce),os(0x1,_0x5e4d90),os(0x2,_0x1f782(_0x55b67e))],Ot);export{fo as AUTHZ_URL_KEY,Tt as AuthzIoHttpService,dn as COLLAB_SUBMIT_CHANGESET_URL_KEY,sn as COLLAB_WEB_SOCKET_URL_KEY,De as CollaborationController,St as CollaborationSession,ge as CollaborationSessionService,gt as CollaborationSocketService,w as CollaborationStatus,yr as CollaborationStatusDisplay,Ds as CommentService,Be as DataLoaderController,ke as DesktopCollaborationStatusDisplayController,rn as HEARTBEAT_INTERVAL_KEY,bs as HEARTBEAT_TIMEOUT_KEY,Os as ICollaborationSocketService,Ls as IURLService,Rt as ImageIoService,_n as LOCAL_CACHE_INTERVAL_KEY,mn as LOGIN_URL_KEY,D as LocalCacheService,en as SEND_CHANGESET_TIMEOUT_KEY,zi as SNAPSHOT_SERVER_URL_KEY,Qi as SNAPSHOT_URL_KEY,de as SessionStatus,mr as SheetCollabCursorShape,pt as SheetCollaborationEntity,Ct as SnapshotServerOverHTTPService,Ot as UniverCollaborationClientPlugin,Zr as WebURLService,En as deserializeToCombResponse,Cn as serializeCombRequest};
|
1
|
+
const _0x1e1deb=_0x44de;(function(_0x5caaba,_0xf4c842){const _0x31c50a=_0x44de,_0x1ed9d0=_0x5caaba();while(!![]){try{const _0x277aec=parseInt(_0x31c50a(0x22c))/0x1*(-parseInt(_0x31c50a(0x1ed))/0x2)+-parseInt(_0x31c50a(0x1f0))/0x3+parseInt(_0x31c50a(0x2cb))/0x4+parseInt(_0x31c50a(0x153))/0x5+-parseInt(_0x31c50a(0x235))/0x6*(-parseInt(_0x31c50a(0x1e7))/0x7)+-parseInt(_0x31c50a(0x2eb))/0x8*(parseInt(_0x31c50a(0x108))/0x9)+-parseInt(_0x31c50a(0x1d2))/0xa;if(_0x277aec===_0xf4c842)break;else _0x1ed9d0['push'](_0x1ed9d0['shift']());}catch(_0x1c31bd){_0x1ed9d0['push'](_0x1ed9d0['shift']());}}}(_0x48fb,0x7b1ff));var Gs=Object[_0x1e1deb(0x158)],Ys=(_0x1e9254,_0x27915c,_0x10e9dc)=>_0x27915c in _0x1e9254?Gs(_0x1e9254,_0x27915c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10e9dc}):_0x1e9254[_0x27915c]=_0x10e9dc,l=(_0x56df29,_0x505eb8,_0x49369f)=>Ys(_0x56df29,typeof _0x505eb8!=_0x1e1deb(0x180)?_0x505eb8+'':_0x505eb8,_0x49369f);import{Disposable as _0xc94eea,toDisposable as _0x4259e5,UniverInstanceType as _0x37298b,Inject as _0x441fe2,UserManagerService as _0x12c7a1,IUniverInstanceService as _0x4902a5,createIdentifier as _0x32feec,DisposableCollection as _0x5b86e3,IConfigService as _0x5445a8,ILogService as _0x5f4df3,ISnapshotServerService as _0x4a4d9b,RxDisposable as _0x5b9cf1,LocaleService as _0x2cfe85,Injector as _0x9c5d64,ILocalStorageService as _0x2f04ba,Tools as _0x4526c0,ICommandService as _0x9845f,JSONX as _0x564a09,CommandType as _0x5cd9c4,IPermissionService as _0x3660f2,IUndoRedoService as _0x416533,sequenceExecute as _0x35dc8f,OnLifecycle as _0x3e0133,LifecycleStages as _0x1781f1,Optional as _0x16cd37,Rectangle as _0xf02aa9,ThemeService as _0x5af768,useDependency as _0x12a590,connectInjector as _0x1bcf38,Workbook as _0x5a1e31,textEncoder as _0x3faa9c,b64DecodeUnicode as _0x41bd2d,LocalUndoRedoService as _0x3da1d9,IContextService as _0x3def4f,COLORS as _0x5090fb,ColorKit as _0x1d709d,fromEventSubject as _0x3cb543,isInternalEditorID as _0x2f9fa5,Plugin as _0x14ee3b,IAuthzIoService as _0x2914fb,mergeOverrideWithDependencies as _0x117d0f,DependentOn as _0xb27d8b}from'@univerjs/core';import{SheetsSelectionsService as _0x402922,SetSelectionsOperation as _0x37d621,InsertSheetMutation as _0x447932,EmptyMutation as _0x4bcf83,WorkbookEditablePermission as _0x230e97,RefRangeService as _0x298890,EffectRefRangId as _0x5d94fe,handleIRemoveRow as _0x361c3a,handleIRemoveCol as _0x1cf9bc,handleMoveRange as _0x158655,handleInsertRow as _0x4865ab,handleInsertRangeMoveRight as _0x5abfa3,handleInsertRangeMoveDown as _0x4c8313,handleInsertCol as _0x3fcda2,handleDeleteRangeMoveUp as _0x31ef26,handleDeleteRangeMoveLeft as _0x5f1e8b,runRefRangeMutations as _0x1df086,SetWorksheetActivateCommand as _0x2576c5}from'@univerjs/sheets';import{MessageType as _0x3eac95}from'@univerjs/design';import{IBeforeCloseService as _0x1a3f95,IMessageService as _0x49507b,INotificationService as _0x73ec84,useObservable as _0x40760a,BuiltInUIPart as _0x37823b,IUIPartsService as _0xbabd5f}from'@univerjs/ui';import{CollaborationEvent as _0x1c415b,parseChangesetToProtocol as _0x23ced7,RevisionService as _0xaeae41,isTransformMutationFailure as _0x1d42ec,isTransformMutationsWithChangesetSuccess as _0x4f645f,ITransformService as _0x1e0f5c,mapDocumentTypeToUniverType as _0x4d8b7d,isTransformChangesetsSuccess as _0x316cc8,CompressMutationService as _0x4ef08c,parseProtocolChangeset as _0x485874,SnapshotService as _0x1e8d71,isTransformMutationsWithChangesetFailure as _0x5339fb,UniverCollaborationPlugin as _0x5d157c}from'@univerjs-pro/collaboration';import{merge as _0x5726e7,Subject as _0x365a49,BehaviorSubject as _0x16d05d,distinctUntilChanged as _0x306a98,fromEvent as _0x1fd07d,of as _0x4f1794,takeUntil as _0x3f75b0,debounceTime as _0x380776,filter as _0x4543ab,switchMap as _0xd6054c,combineLatest as _0x1a6529,shareReplay as _0xaffb9f,mapTo as _0x497582,concatMap as _0x4ff395}from'rxjs';import{map as _0x5ac769,takeUntil as _0x946afe,take as _0x59ece1,filter as _0x190413,delay as _0x12d8e6,shareReplay as _0xec62cf,switchMap as _0x4abf00,throttleTime as _0x4faae9}from'rxjs/operators';import{IMEInputManagerService as _0x3c7fed,TextSelectionManagerService as _0x490704,serializeDocRange as _0x14d063,RichTextEditingMutation as _0x54abea,DocStateChangeManagerService as _0x30c46a,SetTextSelectionsOperation as _0x1ed2cb,SetDocZoomRatioOperation as _0x21025d,DocSkeletonManagerService as _0x1b04a5}from'@univerjs/docs';import{HTTPService as _0x34ef08,WebSocketService as _0x3ee676,MergeInterceptorFactory as _0x57c1a3,HTTPRequest as _0x3f5fe8,IHTTPImplementation as _0x2a4f7d,XHRHTTPImplementation as _0xea0666,ThresholdInterceptorFactory as _0x43013b}from'@univerjs/network';import{ImageSourceType as _0x53415e,ImageUploadStatusType as _0x3a4a7b,IImageIoService as _0x19b622}from'@univerjs/drawing';import{Shape as _0x26e4f3,Rect as _0xb0d98f,Vector2 as _0x261805,NodePositionConvertToCursor as _0x23cfc5,isValidRectRange as _0x4e3ab9,NodePositionConvertToRectRange as _0x52f652,getColor as _0x2c779e,TEXT_RANGE_LAYER_INDEX as _0x261e5f,RegularPolygon as _0x3fb47a,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x3aecba,IRenderManagerService as _0x2b632b}from'@univerjs/engine-render';import{deserializeRangeWithSheet as _0x370f5d,serializeRangeWithSheet as _0x419817}from'@univerjs/engine-formula';import _0x21f8bc from'lodash/debounce';import{VIEWPORT_KEY as _0x148a75,getCoordByCell as _0x2dd2e3,getSheetObject as _0x8759c1,SheetSkeletonManagerService as _0x1b2381,SheetPermissionInitController as _0x357f80}from'@univerjs/sheets-ui';import _0xed19ed,{forwardRef as _0x4c5978,useRef as _0x42a52e,createElement as _0x5dad64}from'react';import _0x513823 from'clsx';import{IRemoteInstanceService as _0x182e1b}from'@univerjs/rpc';const on=_0x1e1deb(0x347),an=_0x1e1deb(0x401),cn=_0x1e1deb(0x1b5),hn=_0x1e1deb(0x210),ln=0x7d0,_n=_0x1e1deb(0x30a),un=_0x1e1deb(0x1a9),dn=_0x1e1deb(0x297),mn=0x7530,Os=_0x1e1deb(0x239),Ds=0x2710,fn=_0x1e1deb(0x2c3),gn=0x4e20,Sn=_0x1e1deb(0x1f5),pn=0x3,vn=_0x1e1deb(0x41c),In=0x3e8,En=_0x1e1deb(0x120),Cn=_0x1e1deb(0x3af),bn='LOGIN_URL_KEY',Tn=_0x1e1deb(0x224);var Ps=(_0x2ff3ab=>(_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x36e)]=0x0]=_0x1e1deb(0x36e),_0x2ff3ab[_0x2ff3ab['OK']=0x1]='OK',_0x2ff3ab[_0x2ff3ab['INTERNAL_ERROR']=0x2]=_0x1e1deb(0x31a),_0x2ff3ab[_0x2ff3ab['PERMISSION_DENIED']=0x3]=_0x1e1deb(0x2f5),_0x2ff3ab[_0x2ff3ab['NOT_FOUND']=0x4]=_0x1e1deb(0x123),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x2fe)]=0x5]='UNAUTHENTICATED',_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x2bb)]=0x6]=_0x1e1deb(0x2bb),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x1c0)]=0x7]=_0x1e1deb(0x1c0),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x267)]=0x8]=_0x1e1deb(0x267),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x326)]=0x9]=_0x1e1deb(0x326),_0x2ff3ab[_0x2ff3ab['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x2ff3ab[_0x2ff3ab['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x2b7)]=0x1772]=_0x1e1deb(0x2b7),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x1a3)]=0x1b59]='APPLY_REJECT',_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x378)]=0x1b5a]=_0x1e1deb(0x378),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x343)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x321)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x2ff3ab[_0x2ff3ab['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x1e1deb(0x1a5),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x284)]=0x2329]=_0x1e1deb(0x284),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0xfb)]=0x232a]=_0x1e1deb(0xfb),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x3b2)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x3ac)]=0x232c]=_0x1e1deb(0x3ac),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x13d)]=0x232d]=_0x1e1deb(0x13d),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x122)]=0x2711]=_0x1e1deb(0x122),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x285)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x391)]=0x2713]=_0x1e1deb(0x391),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x2e0)]=0x2714]=_0x1e1deb(0x2e0),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x1b1)]=-0x1]=_0x1e1deb(0x1b1),_0x2ff3ab))(Ps||{}),x=(_0x310cc1=>(_0x310cc1[_0x310cc1[_0x1e1deb(0x234)]=0x0]=_0x1e1deb(0x234),_0x310cc1[_0x310cc1[_0x1e1deb(0x1c7)]=0x1]=_0x1e1deb(0x1c7),_0x310cc1[_0x310cc1['UNIVER_SHEET']=0x2]=_0x1e1deb(0x3d0),_0x310cc1[_0x310cc1[_0x1e1deb(0x41b)]=0x3]='UNIVER_SLIDE',_0x310cc1[_0x310cc1[_0x1e1deb(0x1b1)]=-0x1]=_0x1e1deb(0x1b1),_0x310cc1))(x||{}),I=(_0x5bb7f0=>(_0x5bb7f0[_0x5bb7f0[_0x1e1deb(0x17e)]=0x0]='UNKNOWN_CMD',_0x5bb7f0[_0x5bb7f0[_0x1e1deb(0x37f)]=0x1]='HELLO',_0x5bb7f0[_0x5bb7f0['JOIN']=0x2]=_0x1e1deb(0x14f),_0x5bb7f0[_0x5bb7f0[_0x1e1deb(0x3ca)]=0x3]=_0x1e1deb(0x3ca),_0x5bb7f0[_0x5bb7f0[_0x1e1deb(0x420)]=0x4]=_0x1e1deb(0x420),_0x5bb7f0[_0x5bb7f0['HEARTBEAT']=0x5]='HEARTBEAT',_0x5bb7f0[_0x5bb7f0[_0x1e1deb(0x3c5)]=0x6]=_0x1e1deb(0x3c5),_0x5bb7f0[_0x5bb7f0[_0x1e1deb(0x1b1)]=-0x1]=_0x1e1deb(0x1b1),_0x5bb7f0))(I||{}),$t=(_0xdea636=>(_0xdea636[_0xdea636[_0x1e1deb(0x21e)]=0x0]=_0x1e1deb(0x21e),_0xdea636[_0xdea636['OK']=0x1]='OK',_0xdea636[_0xdea636['FAIL']=0x2]='FAIL',_0xdea636[_0xdea636[_0x1e1deb(0x1b1)]=-0x1]=_0x1e1deb(0x1b1),_0xdea636))($t||{}),Rn=Object['defineProperty'],On=Object['getOwnPropertyDescriptor'],Dn=(_0x171d31,_0x124962,_0x12b32d,_0x199f79)=>{const _0x2ac37d=_0x1e1deb;for(var _0x3fa628=_0x199f79>0x1?void 0x0:_0x199f79?On(_0x124962,_0x12b32d):_0x124962,_0x12a6f1=_0x171d31[_0x2ac37d(0x426)]-0x1,_0x4760a8;_0x12a6f1>=0x0;_0x12a6f1--)(_0x4760a8=_0x171d31[_0x12a6f1])&&(_0x3fa628=(_0x199f79?_0x4760a8(_0x124962,_0x12b32d,_0x3fa628):_0x4760a8(_0x3fa628))||_0x3fa628);return _0x199f79&&_0x3fa628&&Rn(_0x124962,_0x12b32d,_0x3fa628),_0x3fa628;},Zt=(_0xd518a6,_0x28199a)=>(_0x301d51,_0x219caa)=>_0x28199a(_0x301d51,_0x219caa,_0xd518a6);let ne=class extends _0xc94eea{constructor(_0x453fac,_0x2b579e){const _0x25ee89=_0x1e1deb;super(),l(this,_0x25ee89(0x2cf),new Map()),(this['_univerInstanceService']=_0x453fac,this['_userManagerService']=_0x2b579e,this[_0x25ee89(0x32e)](_0x4259e5(_0x5726e7(this[_0x25ee89(0x145)][_0x25ee89(0x363)](_0x37298b[_0x25ee89(0x3d0)])[_0x25ee89(0x119)](_0x5ac769(_0xb76318=>_0xb76318[_0x25ee89(0x3cf)]())),this[_0x25ee89(0x145)][_0x25ee89(0x363)](_0x37298b['UNIVER_DOC'])[_0x25ee89(0x119)](_0x5ac769(_0x52e1f4=>_0x52e1f4[_0x25ee89(0x3cf)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x37298b['UNIVER_SLIDE'])['pipe'](_0x5ac769(_0x57ba0e=>_0x57ba0e[_0x25ee89(0x3cf)]())))[_0x25ee89(0x3e0)](_0x47680e=>this['_removeRoom'](_0x47680e)))));}['setCurrentUser'](_0x2131d5){const _0x3fd17d=_0x1e1deb;this['_userManagerService'][_0x3fd17d(0x380)](_0x2131d5);}[_0x1e1deb(0x20c)](){const _0x289c3a=_0x1e1deb;return this[_0x289c3a(0x192)][_0x289c3a(0x20c)]();}[_0x1e1deb(0x23f)](_0xbabbee,_0x5f3856){const _0x2d0537=_0x1e1deb;let _0x210e1b=this[_0x2d0537(0x2cf)]['get'](_0xbabbee);_0x210e1b||(_0x210e1b=new Pn(),this[_0x2d0537(0x2cf)][_0x2d0537(0x394)](_0xbabbee,_0x210e1b)),_0x210e1b['updateMember'](_0x5f3856);}[_0x1e1deb(0x238)](_0x76d36b,_0x45e793){const _0x9129f5=_0x1e1deb,_0x3d2f9b=this['_roomMembers'][_0x9129f5(0x10a)](_0x76d36b);_0x3d2f9b&&_0x3d2f9b[_0x9129f5(0x238)](_0x45e793);}[_0x1e1deb(0x42e)](_0x193658){const _0x2fa797=_0x1e1deb;return this[_0x2fa797(0x2cf)]['get'](_0x193658);}[_0x1e1deb(0x3a0)](_0x428ca9,_0x4be60b){const _0x5b255f=_0x1e1deb,_0x230529=this[_0x5b255f(0x2cf)]['get'](_0x428ca9);if(_0x230529)return _0x230529[_0x5b255f(0x3a0)](_0x4be60b);}[_0x1e1deb(0x3fa)](_0x5c91e8){const _0x5cf32e=_0x1e1deb,_0x684035=this[_0x5cf32e(0x2cf)][_0x5cf32e(0x10a)](_0x5c91e8);_0x684035&&(_0x684035['dispose'](),this[_0x5cf32e(0x2cf)][_0x5cf32e(0x36f)](_0x5c91e8));}[_0x1e1deb(0x1de)](){const _0x4da830=_0x1e1deb;this[_0x4da830(0x2cf)][_0x4da830(0x23e)](_0x275d0c=>_0x275d0c[_0x4da830(0x1de)]()),this[_0x4da830(0x2cf)][_0x4da830(0x124)]();}};ne=Dn([Zt(0x0,_0x4902a5),Zt(0x1,_0x441fe2(_0x12c7a1))],ne);class Pn extends _0xc94eea{constructor(){super(...arguments),l(this,'_members',new Map());}['dispose'](){const _0x42df64=_0x1e1deb;this[_0x42df64(0x3f1)]['clear']();}[_0x1e1deb(0x23f)](_0x286440){const _0xcc55ac=_0x1e1deb;this[_0xcc55ac(0x3f1)]['set'](_0x286440[_0xcc55ac(0x283)],_0x286440);}[_0x1e1deb(0x238)](_0x2af5c0){this['_members']['delete'](_0x2af5c0);}[_0x1e1deb(0x3a0)](_0x2b4dfb){const _0x2226f7=_0x1e1deb;return this[_0x2226f7(0x3f1)]['get'](_0x2b4dfb);}}function wn(_0x4957fd){const _0x3d48b0=_0x1e1deb;var _0x5e161e,_0x50581e,_0x7e86ea,_0x3fe3ac;const _0x156b8e=_0x4957fd[_0x3d48b0(0x265)],_0x5abd0a=JSON['parse'](_0x156b8e);switch(_0x5abd0a[_0x3d48b0(0x129)]){case I[_0x3d48b0(0x410)]:case I[_0x3d48b0(0x37f)]:{const _0x1ac88b=_0x5abd0a[_0x3d48b0(0xfa)];return{..._0x5abd0a,'data':_0x1ac88b,'cmd':_0x5abd0a[_0x3d48b0(0x129)]};}case I['JOIN']:{const _0x25c109=_0x5abd0a[_0x3d48b0(0x324)];return{..._0x5abd0a,'data':_0x25c109,'cmd':_0x5abd0a[_0x3d48b0(0x129)]};}case I[_0x3d48b0(0x3c5)]:{const _0x3d0697=_0x5abd0a[_0x3d48b0(0x24f)];switch(_0x3d0697[_0x3d48b0(0x2f8)]){case _0x1c415b[_0x3d48b0(0x436)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':(_0x5e161e=_0x3d0697[_0x3d48b0(0x3b5)])==null?void 0x0:_0x5e161e['cs']},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b[_0x3d48b0(0x402)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':(_0x50581e=_0x3d0697[_0x3d48b0(0x242)])==null?void 0x0:_0x50581e['cs']},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b[_0x3d48b0(0x38c)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':(_0x7e86ea=_0x3d0697[_0x3d48b0(0x262)])==null?void 0x0:_0x7e86ea['cs']},'cmd':_0x5abd0a['cmd']};case _0x1c415b[_0x3d48b0(0x3fb)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':(_0x3fe3ac=_0x3d0697[_0x3d48b0(0x3de)])==null?void 0x0:_0x3fe3ac['cs']},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b[_0x3d48b0(0x21d)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697['updateCursorEvent']},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b['USERS_ENTER']:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697[_0x3d48b0(0x399)]},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b[_0x3d48b0(0x25e)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697['leaveEvent']},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b[_0x3d48b0(0x2c5)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697[_0x3d48b0(0x3d6)]},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b['LIVESHARE_FETCH_OPERATIONS']:case _0x1c415b[_0x3d48b0(0x1dc)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697[_0x3d48b0(0x148)]},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b['LIVESHARE_TERMINATE']:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697[_0x3d48b0(0x3d6)]},'cmd':_0x5abd0a['cmd']};case _0x1c415b[_0x3d48b0(0x422)]:return{..._0x5abd0a,'data':_0x3d0697,'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b['COMMENT_UPDATE']:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697['commentUpdateEvent']},'cmd':_0x5abd0a['cmd']};case _0x1c415b[_0x3d48b0(0x207)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697['updatePermissionObjEvent']},'cmd':_0x5abd0a['cmd']};case _0x1c415b[_0x3d48b0(0x171)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697[_0x3d48b0(0x27a)]},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};default:return _0x5abd0a;}}default:return _0x5abd0a;}}function Nn(_0x5c7866){const _0x2a5a4f=_0x1e1deb;switch(_0x5c7866['cmd']){case I[_0x2a5a4f(0x410)]:case I[_0x2a5a4f(0x37f)]:return JSON[_0x2a5a4f(0x32f)]({'cmd':_0x5c7866['cmd'],'routeKey':_0x5c7866[_0x2a5a4f(0x349)]});case I[_0x2a5a4f(0x420)]:{let _0x4ad669;switch(_0x5c7866[_0x2a5a4f(0x265)][_0x2a5a4f(0x2f8)]){case _0x1c415b[_0x2a5a4f(0x21d)]:{_0x4ad669={'eventID':_0x1c415b[_0x2a5a4f(0x21d)],'updateCursorEvent':_0x5c7866[_0x2a5a4f(0x265)][_0x2a5a4f(0x265)]};break;}case _0x1c415b[_0x2a5a4f(0x25e)]:{_0x4ad669={'eventID':_0x1c415b['USERS_LEAVE'],'leaveEvent':_0x5c7866[_0x2a5a4f(0x265)][_0x2a5a4f(0x265)]};break;}case _0x1c415b['USERS_ENTER']:{_0x4ad669={'eventID':_0x1c415b[_0x2a5a4f(0x29f)],'joinEvent':_0x5c7866[_0x2a5a4f(0x265)][_0x2a5a4f(0x265)]};break;}case _0x1c415b[_0x2a5a4f(0x2c5)]:{_0x4ad669={'eventID':_0x1c415b[_0x2a5a4f(0x2c5)],'liveShareNewHost':_0x5c7866[_0x2a5a4f(0x265)][_0x2a5a4f(0x265)]};break;}case _0x1c415b[_0x2a5a4f(0x1dc)]:{_0x4ad669={'eventID':_0x1c415b[_0x2a5a4f(0x1dc)],'liveShareOperation':_0x5c7866[_0x2a5a4f(0x265)]['data']};break;}case _0x1c415b[_0x2a5a4f(0x1bb)]:{_0x4ad669={'eventID':_0x1c415b[_0x2a5a4f(0x1bb)],'liveShareTerminate':_0x5c7866[_0x2a5a4f(0x265)][_0x2a5a4f(0x265)]};break;}case _0x1c415b['LIVESHARE_REQUEST_HOST']:{_0x4ad669={'eventID':_0x1c415b[_0x2a5a4f(0x2ab)],'liveShareRequestHost':_0x5c7866[_0x2a5a4f(0x265)]['data']};break;}case _0x1c415b['LIVESHARE_FETCH_OPERATIONS']:{_0x4ad669={'eventID':_0x1c415b[_0x2a5a4f(0x139)]};break;}default:_0x4ad669={'eventID':_0x5c7866['data'][_0x2a5a4f(0x2f8)]};}return JSON[_0x2a5a4f(0x32f)]({'cmd':_0x5c7866[_0x2a5a4f(0x129)],'routeKey':_0x5c7866['routeKey'],'collaMsg':_0x4ad669});}case I['JOIN']:return JSON['stringify']({'cmd':_0x5c7866['cmd'],'routeKey':_0x5c7866['routeKey'],'joinReq':_0x5c7866['data']});case I[_0x2a5a4f(0x3ca)]:return JSON['stringify']({'cmd':_0x5c7866[_0x2a5a4f(0x129)],'routeKey':_0x5c7866['routeKey'],'leaveReq':_0x5c7866[_0x2a5a4f(0x265)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var Mn=Object[_0x1e1deb(0x158)],An=Object['getOwnPropertyDescriptor'],yn=(_0x3e9988,_0x511b74,_0x578662,_0x2f23e5)=>{const _0x78c512=_0x1e1deb;for(var _0x132225=_0x2f23e5>0x1?void 0x0:_0x2f23e5?An(_0x511b74,_0x578662):_0x511b74,_0x7e2168=_0x3e9988[_0x78c512(0x426)]-0x1,_0x351478;_0x7e2168>=0x0;_0x7e2168--)(_0x351478=_0x3e9988[_0x7e2168])&&(_0x132225=(_0x2f23e5?_0x351478(_0x511b74,_0x578662,_0x132225):_0x351478(_0x132225))||_0x132225);return _0x2f23e5&&_0x132225&&Mn(_0x511b74,_0x578662,_0x132225),_0x132225;},Re=(_0xcbcb1f,_0x41a5ec)=>(_0x3628d6,_0x152677)=>_0x41a5ec(_0x3628d6,_0x152677,_0xcbcb1f);const ws=_0x32feec(_0x1e1deb(0x1e0));function Un(_0x5ebece,_0x18ea01,_0x5e1d29){const _0x7f0b9b=_0x1e1deb;return _0x5ebece+'/'+_0x18ea01+_0x7f0b9b(0x19e)+_0x5e1d29+_0x7f0b9b(0x294);}let pt=class{constructor(_0x40ca17,_0xbeea79,_0x26dff6,_0x266166,_0x1a735d){const _0x2b2a2e=_0x1e1deb;this[_0x2b2a2e(0x1aa)]=_0x40ca17,this[_0x2b2a2e(0x1dd)]=_0xbeea79,this[_0x2b2a2e(0x26b)]=_0x26dff6,this['_logService']=_0x266166,this[_0x2b2a2e(0x18f)]=_0x1a735d;}['createSocket'](_0x4cd524){const _0x273813=_0x1e1deb,_0x4bd368=this[_0x273813(0x1dd)][_0x273813(0x17f)](_0x4cd524);if(!_0x4bd368)throw new Error(_0x273813(0x2f1));const _0x4da524=new _0x5b86e3(),_0x546453=new _0x365a49();_0x4da524[_0x273813(0x11a)](_0x4259e5(_0x4bd368[_0x273813(0x34e)][_0x273813(0x3e0)](_0x37a33c=>_0x546453[_0x273813(0x3cd)](_0x37a33c)))),_0x4da524[_0x273813(0x11a)](_0x4259e5(()=>_0x546453[_0x273813(0x433)]()));const _0x1fd6d6=new _0x365a49();_0x4da524[_0x273813(0x11a)](_0x4259e5(_0x4bd368['error$'][_0x273813(0x3e0)](_0xf82dde=>_0x1fd6d6['next'](_0xf82dde)))),_0x4da524[_0x273813(0x11a)](_0x4259e5(()=>_0x1fd6d6[_0x273813(0x433)]()));const _0xd21716=new _0x365a49();_0x4da524[_0x273813(0x11a)](_0x4259e5(_0x4bd368[_0x273813(0x2e2)]['subscribe'](_0x2b2375=>{const _0xcdaf6=_0x273813,_0x17c263=wn(_0x2b2375);_0xd21716[_0xcdaf6(0x3cd)](_0x17c263);}))),_0x4da524[_0x273813(0x11a)](_0x4259e5(()=>_0xd21716[_0x273813(0x433)]()));const _0x1d31de=()=>{const _0x2f03e0=_0x273813;_0x1fd6d6[_0x2f03e0(0x3cd)](new Event(_0x2f03e0(0x193))),_0x546453[_0x2f03e0(0x3cd)](new CloseEvent(_0x2f03e0(0x193))),_0x342176[_0x2f03e0(0x2fd)]();},_0x342176={'memberID':'','close$':_0x546453[_0x273813(0x14e)](),'error$':_0x1fd6d6[_0x273813(0x14e)](),'open$':_0x4bd368[_0x273813(0x386)],'message$':_0xd21716['asObservable'](),'send':_0xc17685=>{const _0x5471ce=_0x273813;if(_0xc17685[_0x5471ce(0x129)]===I['INGEST']){if(_0xc17685[_0x5471ce(0x265)][_0x5471ce(0x2f8)]===_0x1c415b[_0x5471ce(0x181)]){this[_0x5471ce(0x1ca)](_0x342176,_0xc17685[_0x5471ce(0x265)])[_0x5471ce(0x1ce)](_0x300f93=>{const _0x1b063e=_0x5471ce;this[_0x1b063e(0x12a)][_0x1b063e(0x1f8)](_0x300f93),_0x1d31de();});return;}if(_0xc17685[_0x5471ce(0x265)][_0x5471ce(0x2f8)]===_0x1c415b[_0x5471ce(0x15e)]){const _0x5da9cd=_0xc17685[_0x5471ce(0x265)];this[_0x5471ce(0x31b)](_0x5da9cd)[_0x5471ce(0x1e8)](_0x547497=>{const _0x26edb7=_0x5471ce;_0xd21716[_0x26edb7(0x3cd)]({'cmd':I[_0x26edb7(0x3c5)],'code':$t['OK'],'routeKey':_0x5da9cd['data'][_0x26edb7(0x370)],'routeType':'','data':{'eventID':_0x1c415b[_0x26edb7(0x2ff)],'data':{'changesets':_0x547497}}});})[_0x5471ce(0x1ce)](_0x3b42c1=>{const _0x4fc30f=_0x5471ce;this[_0x4fc30f(0x12a)][_0x4fc30f(0x1f8)](_0x3b42c1),_0x1d31de();});return;}}_0x4bd368[_0x5471ce(0x409)](Nn(_0xc17685));},'close':()=>{const _0x2d5935=_0x273813;_0x4bd368[_0x2d5935(0x2fd)](),_0x4da524[_0x2d5935(0x1de)]();}};return _0x342176;}async[_0x1e1deb(0x1ca)](_0x4e2132,_0x476a41){const _0x60d27a=_0x1e1deb;var _0x1f6727;const {unitType:_0x48d84d,unitID:_0x3762d6,changeset:_0x33ed30}=_0x476a41['data'],_0x221f7c={'unitID':_0x3762d6,'memberID':_0x4e2132[_0x60d27a(0x283)],'type':_0x48d84d,'changeset':_0x23ced7(_0x33ed30)},_0x55a90d=Un((_0x1f6727=this[_0x60d27a(0x26b)][_0x60d27a(0x35c)](En))!=null?_0x1f6727:Cn,_0x48d84d,_0x3762d6);try{await this[_0x60d27a(0x1aa)]['post'](_0x55a90d,{'body':_0x221f7c});}catch(_0x87e9e){throw this['_logService'][_0x60d27a(0x1f8)]('[CollaborationSession]',_0x60d27a(0x190)),_0x87e9e;}}async[_0x1e1deb(0x31b)](_0x172d40){const _0x5c332f=_0x1e1deb,{unitID:_0x1b4020,from:_0x42f7d1,to:_0x58353c,unitType:_0x4161e6}=_0x172d40[_0x5c332f(0x265)];return(await this[_0x5c332f(0x18f)][_0x5c332f(0x1d9)]({'metadata':void 0x0},{'unitID':_0x1b4020,'type':_0x4161e6,'from':_0x42f7d1,'to':_0x58353c}))[_0x5c332f(0x247)];}};pt=yn([Re(0x0,_0x441fe2(_0x34ef08)),Re(0x1,_0x441fe2(_0x3ee676)),Re(0x2,_0x5445a8),Re(0x3,_0x5f4df3),Re(0x4,_0x4a4d9b)],pt);class Ns{constructor(){const _0x36ff62=_0x1e1deb;l(this,_0x36ff62(0x156),new _0x365a49()),l(this,_0x36ff62(0x365),this[_0x36ff62(0x156)]['asObservable']());}[_0x1e1deb(0x22f)](_0x575e87){const _0x3c218a=_0x1e1deb;this[_0x3c218a(0x156)][_0x3c218a(0x3cd)](_0x575e87);}}var Ln=Object['defineProperty'],$n=Object[_0x1e1deb(0x32c)],Ms=(_0x59a1a4,_0x3cc291,_0x460f09,_0x3b89db)=>{const _0x1a35ae=_0x1e1deb;for(var _0x39d821=_0x3b89db>0x1?void 0x0:_0x3b89db?$n(_0x3cc291,_0x460f09):_0x3cc291,_0x44deaf=_0x59a1a4[_0x1a35ae(0x426)]-0x1,_0x2c1263;_0x44deaf>=0x0;_0x44deaf--)(_0x2c1263=_0x59a1a4[_0x44deaf])&&(_0x39d821=(_0x3b89db?_0x2c1263(_0x3cc291,_0x460f09,_0x39d821):_0x2c1263(_0x39d821))||_0x39d821);return _0x3b89db&&_0x39d821&&Ln(_0x3cc291,_0x460f09,_0x39d821),_0x39d821;},A=(_0x40e2b2,_0xb0a5cc)=>(_0x5f4f3c,_0x379a1a)=>_0xb0a5cc(_0x5f4f3c,_0x379a1a,_0x40e2b2),fe=(_0x86d639=>(_0x86d639[_0x86d639['IDLE']=0x0]=_0x1e1deb(0x21f),_0x86d639[_0x86d639[_0x1e1deb(0x3ab)]=0x1]='JOINING',_0x86d639[_0x86d639[_0x1e1deb(0x328)]=0x2]=_0x1e1deb(0x328),_0x86d639[_0x86d639[_0x1e1deb(0x3c2)]=0x3]='ONLINE',_0x86d639))(fe||{});let vt=class extends _0x5b9cf1{constructor(_0x4d6248,_0x377495,_0x78867,_0x513102,_0x2072fb,_0x21ed35,_0x5b35ee,_0x193cce,_0x311637){const _0x37e373=_0x1e1deb;super(),l(this,_0x37e373(0x286),new _0x16d05d(0x0)),l(this,'sessionStatus$',this[_0x37e373(0x286)][_0x37e373(0x14e)]()),l(this,_0x37e373(0x141),new _0x365a49()),l(this,_0x37e373(0x19f),this[_0x37e373(0x141)][_0x37e373(0x14e)]()),l(this,'_socket'),l(this,_0x37e373(0x2df)),l(this,_0x37e373(0x2b5)),(this['_unitID']=_0x4d6248,this[_0x37e373(0x12a)]=_0x78867,this[_0x37e373(0x27b)]=_0x513102,this[_0x37e373(0x130)]=_0x2072fb,this[_0x37e373(0x26b)]=_0x21ed35,this[_0x37e373(0x367)]=_0x5b35ee,this[_0x37e373(0x13e)]=_0x193cce,this[_0x37e373(0x37d)]=_0x311637,_0x377495[_0x37e373(0x119)](_0x946afe(this['dispose$']))[_0x37e373(0x3e0)](_0x2fcf70=>{const _0x490c07=_0x37e373;var _0x23eb0b;typeof _0x2fcf70>'u'||(this[_0x490c07(0x34b)]=_0x2fcf70,_0x2fcf70?(this[_0x490c07(0x2f6)](_0x2fcf70),this[_0x490c07(0x2df)]=this[_0x490c07(0x34b)]['message$'][_0x490c07(0x3e0)](_0x83ff33=>{const _0x1fc0be=_0x490c07;_0x83ff33['routeKey']===this[_0x1fc0be(0x2c9)]&&this['_onCombEvent'](_0x83ff33);})):(this['_sessionStatus$'][_0x490c07(0x3cd)](0x2),(_0x23eb0b=this[_0x490c07(0x2df)])==null||_0x23eb0b[_0x490c07(0x376)](),this[_0x490c07(0x2df)]=null));}),this[_0x37e373(0x32e)](this[_0x37e373(0x27b)]['registerOnClose'](()=>{const _0x5998b8=_0x37e373;var _0x534126;(_0x534126=this[_0x5998b8(0x34b)])==null||_0x534126[_0x5998b8(0x409)]({'cmd':I[_0x5998b8(0x3ca)],'data':{'roomID':this[_0x5998b8(0x2c9)]}});})));}get[_0x1e1deb(0x143)](){return this['_sessionStatus$']['getValue']();}['getMemberID'](){const _0x7acdd1=_0x1e1deb;var _0x45092a,_0x54057e;return(_0x54057e=(_0x45092a=this[_0x7acdd1(0x34b)])==null?void 0x0:_0x45092a[_0x7acdd1(0x283)])!=null?_0x54057e:null;}[_0x1e1deb(0x1de)](){const _0xf22381=_0x1e1deb;super[_0xf22381(0x1de)](),this['dispose$'][_0xf22381(0x3cd)](),this['dispose$'][_0xf22381(0x433)]();}['close'](){const _0x4b8f6c=_0x1e1deb;var _0x29327b,_0x4dbe41;(_0x29327b=this[_0x4b8f6c(0x34b)])==null||_0x29327b[_0x4b8f6c(0x409)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x4b8f6c(0x2c9)]}}),this['_event$'][_0x4b8f6c(0x433)](),this[_0x4b8f6c(0x286)][_0x4b8f6c(0x433)](),(_0x4dbe41=this[_0x4b8f6c(0x34b)])==null||_0x4dbe41[_0x4b8f6c(0x2fd)](),this[_0x4b8f6c(0x1de)]();}['_onCombEvent'](_0x367600){const _0x3f2300=_0x1e1deb;_0x367600[_0x3f2300(0x129)]===I[_0x3f2300(0x14f)]?this[_0x3f2300(0x2a9)](_0x367600):_0x367600[_0x3f2300(0x129)]===I[_0x3f2300(0x3c5)]&&this['_onRecvEvent'](_0x367600);}['_joinRoom'](_0x5f24d0){const _0x5a5574=_0x1e1deb;this[_0x5a5574(0x286)][_0x5a5574(0x3cd)](0x1),_0x5f24d0['send']({'cmd':I[_0x5a5574(0x14f)],'routeKey':this[_0x5a5574(0x2c9)],'routeType':'','data':{'rooms':[{'roomID':this[_0x5a5574(0x2c9)]}]}});}['_onJoinRoomEvent'](_0x118934){const _0x120080=_0x1e1deb;var _0x484f80;if(_0x118934[_0x120080(0x1d5)]===$t[_0x120080(0x388)]){this[_0x120080(0x130)]['show']({'type':_0x3eac95['Warning'],'content':this[_0x120080(0x367)]['t'](_0x120080(0x40d))}),this[_0x120080(0x286)][_0x120080(0x3cd)](0x2);return;}this[_0x120080(0x286)][_0x120080(0x3cd)](0x3);const _0x4e909d=(_0x484f80=_0x118934[_0x120080(0x265)][_0x120080(0x27f)][this['_unitID']])==null?void 0x0:_0x484f80[_0x120080(0x42c)];_0x4e909d&&_0x4e909d[_0x120080(0x23e)](_0x2f2958=>this[_0x120080(0x13e)]['updateMember'](this[_0x120080(0x2c9)],_0x2f2958));}['_onRecvEvent'](_0x3e54f2){const _0x94b683=_0x1e1deb;try{const _0xff73d2=_0x3e54f2[_0x94b683(0x265)];switch(_0xff73d2['eventID']){case _0x1c415b['USERS_ENTER']:this[_0x94b683(0x104)](_0xff73d2),this[_0x94b683(0x141)][_0x94b683(0x3cd)](_0xff73d2);break;case _0x1c415b[_0x94b683(0x25e)]:this[_0x94b683(0x3e5)](_0xff73d2),this[_0x94b683(0x141)][_0x94b683(0x3cd)](_0xff73d2);break;case _0x1c415b[_0x94b683(0x402)]:this[_0x94b683(0x39b)](),this[_0x94b683(0x141)][_0x94b683(0x3cd)](_0xff73d2);break;case _0x1c415b[_0x94b683(0x422)]:this[_0x94b683(0x12a)]['error'](_0x94b683(0x38e)+JSON[_0x94b683(0x32f)](_0xff73d2)),this['_event$'][_0x94b683(0x3cd)](_0xff73d2);break;case _0x1c415b[_0x94b683(0x2e4)]:this[_0x94b683(0x37d)]['onCommentUpdate'](_0xff73d2[_0x94b683(0x265)]),this['_event$'][_0x94b683(0x3cd)](_0xff73d2);break;default:this['_event$'][_0x94b683(0x3cd)](_0xff73d2);}}catch(_0x6b06b){this[_0x94b683(0x12a)][_0x94b683(0x1f8)](_0x6b06b,_0x3e54f2);}}[_0x1e1deb(0x104)](_0x584d33){const _0x4ec899=_0x1e1deb;this[_0x4ec899(0x13e)][_0x4ec899(0x23f)](this[_0x4ec899(0x2c9)],_0x584d33[_0x4ec899(0x265)]);}[_0x1e1deb(0x3e5)](_0x3aac67){const _0xe984d3=_0x1e1deb;this[_0xe984d3(0x13e)][_0xe984d3(0x238)](this[_0xe984d3(0x2c9)],_0x3aac67[_0xe984d3(0x265)][_0xe984d3(0x283)]);}async[_0x1e1deb(0x409)](_0x254998,_0xb16380){const _0xc4f00=_0x1e1deb;if(this[_0xc4f00(0x143)]!==0x3||!this[_0xc4f00(0x34b)])throw new Error(_0xc4f00(0x215));try{_0x254998[_0xc4f00(0x2f8)]===_0x1c415b[_0xc4f00(0x38c)]&&this[_0xc4f00(0x14c)](),this[_0xc4f00(0x34b)][_0xc4f00(0x409)]({'cmd':I[_0xc4f00(0x420)],'routeKey':_0xb16380,'routeType':'','data':_0x254998});}catch(_0x308f59){this[_0xc4f00(0x12a)]['error'](_0x308f59);}}[_0x1e1deb(0x14c)](){const _0x53b5c6=_0x1e1deb;var _0x2cdf00;this['_collaborationTimeoutTimer']=window['setTimeout'](()=>{const _0x22574f=_0x44de;this[_0x22574f(0x2b5)]=null,this[_0x22574f(0x130)][_0x22574f(0x154)]({'type':_0x3eac95['Error'],'content':this['_localeService']['t'](_0x22574f(0x3d1))});},(_0x2cdf00=this[_0x53b5c6(0x26b)]['getConfig'](Os))!=null?_0x2cdf00:Ds);}[_0x1e1deb(0x39b)](){const _0x46924b=_0x1e1deb;this[_0x46924b(0x2b5)]&&(clearTimeout(this[_0x46924b(0x2b5)]),this['_collaborationTimeoutTimer']=null);}};vt=Ms([A(0x2,_0x5f4df3),A(0x3,_0x1a3f95),A(0x4,_0x49507b),A(0x5,_0x5445a8),A(0x6,_0x441fe2(_0x2cfe85)),A(0x7,_0x441fe2(ne)),A(0x8,_0x441fe2(Ns))],vt);let pe=class extends _0xc94eea{constructor(_0x21b382,_0x57f318,_0x2550fd,_0x1ff16a,_0x15196c,_0x3ce70b){const _0xbf0374=_0x1e1deb;super(),l(this,_0xbf0374(0x3b8),new _0x16d05d(void 0x0)),l(this,_0xbf0374(0x21b),new Map()),l(this,'_status$',new _0x16d05d(0x0)),l(this,_0xbf0374(0x200),this['_status$'][_0xbf0374(0x14e)]()),l(this,_0xbf0374(0x11f),!0x1),l(this,_0xbf0374(0x296)),l(this,_0xbf0374(0x1f6)),l(this,_0xbf0374(0x100)),l(this,'_retryCount',0x0),(this[_0xbf0374(0x432)]=_0x21b382,this['_localeService']=_0x57f318,this['_messageService']=_0x2550fd,this['_logService']=_0x1ff16a,this[_0xbf0374(0x26b)]=_0x15196c,this[_0xbf0374(0x1b9)]=_0x3ce70b);}get[_0x1e1deb(0x34b)](){const _0x5e7a30=_0x1e1deb;return this['_socket$'][_0x5e7a30(0x107)]();}[_0x1e1deb(0x1de)](){const _0x46d5b6=_0x1e1deb;super[_0x46d5b6(0x1de)](),this[_0x46d5b6(0x21b)]['forEach'](_0x560dac=>_0x560dac[_0x46d5b6(0x1de)]()),this[_0x46d5b6(0x21b)]['clear'](),this['_status$']['complete']();}async[_0x1e1deb(0x2c6)](_0x291c56){const _0xea4af6=_0x1e1deb;if(this[_0xea4af6(0x21b)][_0xea4af6(0x1e3)](_0x291c56))return this[_0xea4af6(0x21b)][_0xea4af6(0x10a)](_0x291c56);this['_tryEnsureSocket']();const _0xbc1966=this[_0xea4af6(0x432)]['createInstance'](vt,_0x291c56,this[_0xea4af6(0x3b8)][_0xea4af6(0x14e)]());return this['_sessions'][_0xea4af6(0x394)](_0x291c56,_0xbc1966),_0xbc1966;}[_0x1e1deb(0x2ad)](_0x386b00){const _0x30be5f=_0x1e1deb;var _0x5ba5a6;const _0x5957df=this[_0x30be5f(0x21b)][_0x30be5f(0x10a)](_0x386b00);_0x5957df&&(this[_0x30be5f(0x21b)][_0x30be5f(0x36f)](_0x386b00),_0x5957df[_0x30be5f(0x2fd)]()),this['_sessions'][_0x30be5f(0x1b4)]||(_0x5ba5a6=this['_socket'])==null||_0x5ba5a6[_0x30be5f(0x2fd)]();}[_0x1e1deb(0x211)](){const _0x5f30ea=_0x1e1deb;var _0x20171d;const _0x5d6bc3=(_0x20171d=this[_0x5f30ea(0x26b)][_0x5f30ea(0x35c)](_n))!=null?_0x20171d:un;return this[_0x5f30ea(0x1b9)][_0x5f30ea(0x17f)](_0x5d6bc3);}[_0x1e1deb(0x417)](){const _0x1d345e=_0x1e1deb;try{const _0x767896=this[_0x1d345e(0x211)]();if(_0x767896){const _0x1dc594=_0x767896[_0x1d345e(0x409)];_0x767896[_0x1d345e(0x409)]=_0x23a864=>(this[_0x1d345e(0x3b7)](),_0x1dc594['apply'](_0x767896,[_0x23a864])),_0x767896['message$']['subscribe'](_0x55f1d3=>this[_0x1d345e(0x40f)](_0x767896,_0x55f1d3)),_0x767896[_0x1d345e(0x2bc)][_0x1d345e(0x119)](_0x59ece1(0x1))['subscribe'](_0x485a22=>this[_0x1d345e(0x12a)][_0x1d345e(0x1f8)](_0x1d345e(0x3c4),_0x485a22)),_0x767896[_0x1d345e(0x386)]['pipe'](_0x59ece1(0x1))[_0x1d345e(0x3e0)](()=>{const _0x3836ad=_0x1d345e;this[_0x3836ad(0x187)](_0x767896);}),_0x767896[_0x1d345e(0x34e)][_0x1d345e(0x119)](_0x59ece1(0x1))[_0x1d345e(0x3e0)](_0x5deb2d=>{const _0xe45d5b=_0x1d345e;this[_0xe45d5b(0x12a)][_0xe45d5b(0x1fc)](_0xe45d5b(0x42d),_0xe45d5b(0x3d4),_0x5deb2d),this[_0xe45d5b(0x41f)]();});}}catch(_0x5b005d){this[_0x1d345e(0x12a)][_0x1d345e(0x1f8)](_0x5b005d),this[_0x1d345e(0x41f)]();}}[_0x1e1deb(0x187)](_0x49f32d){const _0x50060f=_0x1e1deb;this[_0x50060f(0x12a)][_0x50060f(0x1fc)](_0x50060f(0x42d),_0x50060f(0x1d1)),_0x49f32d[_0x50060f(0x409)]({'cmd':I[_0x50060f(0x37f)]}),this[_0x50060f(0x3b7)]();}[_0x1e1deb(0x41f)](){const _0x5ad37a=_0x1e1deb;var _0x50f615;this['_status$'][_0x5ad37a(0x3cd)](0x2),this[_0x5ad37a(0x3b8)]['next'](null),this['_clearTimeoutTimer'](),this[_0x5ad37a(0x360)](),this[_0x5ad37a(0x11f)]=!0x1,this['_retryCount']<((_0x50f615=this[_0x5ad37a(0x26b)][_0x5ad37a(0x35c)](Sn))!=null?_0x50f615:pn)?(this[_0x5ad37a(0x34d)](this[_0x5ad37a(0x289)]),this[_0x5ad37a(0x289)]+=0x1):this['_messageService'][_0x5ad37a(0x154)]({'type':_0x3eac95['Error'],'content':this[_0x5ad37a(0x367)]['t'](_0x5ad37a(0x2d5))});}[_0x1e1deb(0x34d)](_0x12bd01){const _0x4f6bfb=_0x1e1deb;var _0x955c7b;const _0x1bc460=((_0x955c7b=this['_configService'][_0x4f6bfb(0x35c)](fn))!=null?_0x955c7b:gn)*0x2**_0x12bd01;this[_0x4f6bfb(0x130)][_0x4f6bfb(0x154)]({'type':_0x3eac95[_0x4f6bfb(0x15d)],'content':this[_0x4f6bfb(0x367)]['t']('session.will-retry')}),this[_0x4f6bfb(0x100)]=setTimeout(()=>{const _0x40b133=_0x4f6bfb;this['_tryEnsureSocket'](),clearTimeout(this[_0x40b133(0x100)]),this['_retryConnectingTimer']=null;},_0x1bc460);}['_rescheduleHeartbeatEvent'](){const _0x457d26=_0x1e1deb;var _0xc226a3;this[_0x457d26(0x360)](),this[_0x457d26(0x296)]=setTimeout(()=>this[_0x457d26(0x3ce)](),(_0xc226a3=this['_configService'][_0x457d26(0x35c)](dn))!=null?_0xc226a3:mn);}[_0x1e1deb(0x3ce)](){const _0x4e6630=_0x1e1deb;this[_0x4e6630(0x34b)][_0x4e6630(0x409)]({'cmd':I[_0x4e6630(0x410)]}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0x557c6d=_0x1e1deb;var _0x33425a;this[_0x557c6d(0x1f6)]=setTimeout(()=>this[_0x557c6d(0x41f)](),(_0x33425a=this[_0x557c6d(0x26b)]['getConfig'](Os))!=null?_0x33425a:Ds);}[_0x1e1deb(0x40f)](_0x27d8cf,_0x3d0b02){const _0x24be46=_0x1e1deb,{cmd:_0x4c9958}=_0x3d0b02;_0x4c9958===I['HELLO']&&!this[_0x24be46(0x11f)]&&(_0x27d8cf[_0x24be46(0x283)]=_0x3d0b02[_0x24be46(0x265)][_0x24be46(0x283)],this[_0x24be46(0x3b8)]['next'](_0x27d8cf),this[_0x24be46(0x2ea)][_0x24be46(0x3cd)](0x3),this[_0x24be46(0x11f)]=!0x0),_0x4c9958===I[_0x24be46(0x410)]&&this[_0x24be46(0x2cd)](),this[_0x24be46(0x3b7)]();}[_0x1e1deb(0x360)](){const _0x558ca8=_0x1e1deb;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x558ca8(0x296)]=null);}[_0x1e1deb(0x2cd)](){const _0x348fe2=_0x1e1deb;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x348fe2(0x1f6)]),this[_0x348fe2(0x1f6)]=null);}};pe=Ms([A(0x0,_0x441fe2(_0x9c5d64)),A(0x1,_0x441fe2(_0x2cfe85)),A(0x2,_0x49507b),A(0x3,_0x5f4df3),A(0x4,_0x5445a8),A(0x5,ws)],pe);var jn=Object[_0x1e1deb(0x158)],xn=Object[_0x1e1deb(0x32c)],Hn=(_0x4ee1e6,_0x4d3d03,_0x22641f,_0x313049)=>{const _0x43e972=_0x1e1deb;for(var _0x2f50a9=_0x313049>0x1?void 0x0:_0x313049?xn(_0x4d3d03,_0x22641f):_0x4d3d03,_0xf408a6=_0x4ee1e6[_0x43e972(0x426)]-0x1,_0x18aa20;_0xf408a6>=0x0;_0xf408a6--)(_0x18aa20=_0x4ee1e6[_0xf408a6])&&(_0x2f50a9=(_0x313049?_0x18aa20(_0x4d3d03,_0x22641f,_0x2f50a9):_0x18aa20(_0x2f50a9))||_0x2f50a9);return _0x313049&&_0x2f50a9&&jn(_0x4d3d03,_0x22641f,_0x2f50a9),_0x2f50a9;},Oe=(_0x376b62,_0x21e249)=>(_0x34fdbe,_0x5bd022)=>_0x21e249(_0x34fdbe,_0x5bd022,_0x376b62);let D=class extends _0xc94eea{constructor(_0x2d93f0,_0x14702e,_0x1bc6a4,_0x2f9cc6,_0x327b3c){const _0x481e0f=_0x1e1deb;super(),l(this,_0x481e0f(0x3e4),new Map()),l(this,_0x481e0f(0x354),new Map()),l(this,_0x481e0f(0x320),!0x1),(this['_configService']=_0x2d93f0,this[_0x481e0f(0x115)]=_0x14702e,this[_0x481e0f(0x27b)]=_0x1bc6a4,this['_localeService']=_0x2f9cc6,this['_revisionService']=_0x327b3c,this['_setupBeforeClosingHandler']());}['disableLocalCache'](){const _0x2dcd3e=_0x1e1deb;this[_0x2dcd3e(0x320)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}[_0x1e1deb(0x1de)](){const _0x22f33d=_0x1e1deb;this[_0x22f33d(0x2c8)]()[_0x22f33d(0x1e8)](()=>super[_0x22f33d(0x1de)]());}async['loadOfflineData'](_0xa45001){const _0x1c02d7=_0x1e1deb;return this[_0x1c02d7(0x320)]?null:this[_0x1c02d7(0x115)][_0x1c02d7(0x19d)](Qt(_0xa45001));}async['saveOfflineData'](_0x1a3eec,_0x1cbbdc){const _0x38f654=_0x1e1deb;return!!this[_0x38f654(0x115)][_0x38f654(0x28b)](_0x1a3eec,_0x1cbbdc);}[_0x1e1deb(0x2b4)](_0x3cf491,_0x451b62,_0x1de051,_0x58c610){const _0xe9bc76=_0x1e1deb,_0x58a5f1=this[_0xe9bc76(0x2d6)][_0xe9bc76(0x202)](_0x3cf491);this['_cachedData'][_0xe9bc76(0x394)](_0x3cf491,{'unitID':_0x3cf491,'type':_0x451b62,'awaitingChangeset':_0x1de051,'mutations':_0x58c610,'rev':_0x58a5f1}),this[_0xe9bc76(0x354)][_0xe9bc76(0x1e3)](_0x3cf491)||this[_0xe9bc76(0x29b)](_0x3cf491);}['_scheduleSaving'](_0x2055fa){const _0x36e4e6=_0x1e1deb,_0x1d9bf0=this['_getSaveTimeout']();_0x1d9bf0===0x0?this[_0x36e4e6(0x39e)](_0x2055fa):this[_0x36e4e6(0x354)][_0x36e4e6(0x394)](_0x2055fa,setTimeout(()=>this[_0x36e4e6(0x39e)](_0x2055fa),_0x1d9bf0));}['_getSaveTimeout'](){var _0xf61a13;return(_0xf61a13=this['_configService']['getConfig'](vn))!=null?_0xf61a13:In;}['_saveCache'](_0xc62227){const _0x4b3177=_0x1e1deb,_0x2b7597=this[_0x4b3177(0x354)][_0x4b3177(0x10a)](_0xc62227);return _0x2b7597!==void 0x0&&window[_0x4b3177(0x339)](_0x2b7597),this[_0x4b3177(0x115)][_0x4b3177(0x28b)](Qt(_0xc62227),this[_0x4b3177(0x3e4)][_0x4b3177(0x10a)](_0xc62227))[_0x4b3177(0x1e8)](()=>this[_0x4b3177(0x354)][_0x4b3177(0x36f)](_0xc62227));}async[_0x1e1deb(0x2c8)](){const _0x4e168d=_0x1e1deb,_0x12c518=[];this['_saveTaskMap'][_0x4e168d(0x23e)]((_0x4e3e4f,_0x3e6436)=>{const _0x426b8=_0x4e168d;window[_0x426b8(0x339)](_0x4e3e4f),_0x12c518['push'](this[_0x426b8(0x39e)](_0x3e6436)['then'](()=>{const _0x166ce4=_0x426b8;this[_0x166ce4(0x354)]['delete'](_0x3e6436);}));}),await Promise['all'](_0x12c518);}[_0x1e1deb(0x28c)](){const _0x40ab2b=_0x1e1deb;this[_0x40ab2b(0x32e)](this[_0x40ab2b(0x27b)][_0x40ab2b(0x1fe)](()=>{const _0x4e42e4=_0x40ab2b;if(this[_0x4e42e4(0x354)][_0x4e42e4(0x1b4)])return this[_0x4e42e4(0x367)]['t']('collaboration-client.offline-data-not-saved');}));}};D=Hn([Oe(0x0,_0x5445a8),Oe(0x1,_0x2f04ba),Oe(0x2,_0x1a3f95),Oe(0x3,_0x441fe2(_0x2cfe85)),Oe(0x4,_0x441fe2(_0xaeae41))],D);function Qt(_0x3c404b){return'unit-cache-'+_0x3c404b;}const tt=_0x32feec('univer-pro.collaboration-client.single-active-unit-service');var As=(_0x375917=>(_0x375917[_0x375917[_0x1e1deb(0x17a)]=0x0]=_0x1e1deb(0x17a),_0x375917[_0x375917[_0x1e1deb(0x288)]=0x1]=_0x1e1deb(0x288),_0x375917))(As||{});const es=0x7530,ts=_0x1e1deb(0x2c7);class kn extends _0xc94eea{constructor(){const _0x5b6d92=_0x1e1deb;super(),l(this,'_id',_0x4526c0[_0x5b6d92(0x259)]()),l(this,'_selfUnitIDs',new Set()),l(this,_0x5b6d92(0x219),new Map()),l(this,'_heartbeatTimer',null),l(this,_0x5b6d92(0x24a),new Map()),l(this,_0x5b6d92(0x366),new Map()),this['_init']();}[_0x1e1deb(0x1de)](){const _0x5978a0=_0x1e1deb;super['dispose'](),this[_0x5978a0(0x24a)][_0x5978a0(0x23e)]((_0x5e8bfd,_0x4696e4)=>this['_removeClearOtherTimer'](_0x4696e4)),this[_0x5978a0(0x253)]&&window[_0x5978a0(0x194)](this[_0x5978a0(0x253)]);}[_0x1e1deb(0x2ac)](_0xb470db){const _0x5edb9a=_0x1e1deb;return this['_ensureSubject'](_0xb470db)[_0x5edb9a(0x119)](_0x306a98());}[_0x1e1deb(0x2f9)](_0x1d12c6){const _0x40cad8=_0x1e1deb;this['_selfUnitIDs']['size']===0x0&&this[_0x40cad8(0x109)](),this['_selfUnitIDs'][_0x40cad8(0x11a)](_0x1d12c6),this[_0x40cad8(0x2de)]({'type':0x0,'memberID':this[_0x40cad8(0x1e2)],'unitIDs':[_0x1d12c6],'isForwarded':!0x1});}['disposeUnit'](_0x5c9fcf){const _0x599933=_0x1e1deb;this[_0x599933(0x2b0)][_0x599933(0x36f)](_0x5c9fcf),this[_0x599933(0x2b0)][_0x599933(0x1b4)]===0x0&&this['_heartbeatTimer']&&window[_0x599933(0x194)](this[_0x599933(0x253)]);}['_init'](){const _0x1fb32c=_0x1e1deb;this[_0x1fb32c(0x32e)](_0x4259e5(_0x1fd07d(window,_0x1fb32c(0x208))[_0x1fb32c(0x3e0)](_0x4d0a2a=>{const _0x838156=_0x1fb32c;if(_0x4d0a2a['key']!==ts||!_0x4d0a2a[_0x838156(0x256)])return;const _0x3478e9=JSON[_0x838156(0x1e1)](_0x4d0a2a[_0x838156(0x256)]);this[_0x838156(0x261)](_0x3478e9);}))),window[_0x1fb32c(0x397)](_0x1fb32c(0x3f4),()=>this['_send']({'type':0x1,'memberID':this[_0x1fb32c(0x1e2)],'unitIDs':Array[_0x1fb32c(0x427)](this[_0x1fb32c(0x2b0)])}));}[_0x1e1deb(0x261)](_0x415aad){const _0x3b7d50=_0x1e1deb;switch(_0x415aad[_0x3b7d50(0x2cc)]){case 0x0:this['_handleJoinEvent'](_0x415aad);break;case 0x1:this[_0x3b7d50(0x1bd)](_0x415aad);break;case 0x2:this['_handleHeartbeatEvent'](_0x415aad);break;}}[_0x1e1deb(0x11d)](_0x39154f){const _0x572c5d=_0x1e1deb,{unitIDs:_0x110c48,memberID:_0x3d3d22,isForwarded:_0x6017ca}=_0x39154f;_0x110c48[_0x572c5d(0x23e)](_0x19754e=>{const _0x54af23=_0x572c5d;if(!_0x6017ca&&this['_unitOnClients']['has'](_0x19754e)&&this[_0x54af23(0x1b2)](_0x19754e)['next'](0x1),!this[_0x54af23(0x219)][_0x54af23(0x1e3)](_0x19754e)||!this[_0x54af23(0x219)]['get'](_0x19754e)[_0x54af23(0x1e3)](_0x3d3d22)){const _0x722057=this[_0x54af23(0x219)][_0x54af23(0x10a)](_0x19754e)||new Set();_0x722057[_0x54af23(0x11a)](_0x3d3d22),this['_unitOnClients']['set'](_0x19754e,_0x722057),this[_0x54af23(0x18e)](_0x3d3d22);}}),_0x6017ca||this[_0x572c5d(0x2de)]({'type':0x0,'memberID':this[_0x572c5d(0x1e2)],'unitIDs':[...this[_0x572c5d(0x2b0)]],'isForwarded':!0x0});}[_0x1e1deb(0x18e)](_0x2337db){const _0x140413=_0x1e1deb;this['_removeClearOtherTimer'](_0x2337db);const _0x446163=window[_0x140413(0x245)](()=>{const _0x3725f1=_0x140413;this[_0x3725f1(0x219)][_0x3725f1(0x23e)](_0x1934cb=>{const _0x3f68fa=_0x3725f1;_0x1934cb[_0x3f68fa(0x36f)](_0x2337db);});},es*0x2);this[_0x140413(0x24a)][_0x140413(0x394)](_0x2337db,_0x446163);}['_removeClearOtherTimer'](_0x47934e){const _0x4129f4=_0x1e1deb;if(this['_clearOtherTimers'][_0x4129f4(0x1e3)](_0x47934e)){const _0x1a57b0=this[_0x4129f4(0x24a)][_0x4129f4(0x10a)](_0x47934e);_0x1a57b0&&window['clearTimeout'](_0x1a57b0),this[_0x4129f4(0x24a)][_0x4129f4(0x394)](_0x47934e,null);}}['_handleLeaveEvent'](_0x221a8d){const _0x228b70=_0x1e1deb,{memberID:_0x5cdf3f,unitIDs:_0x3cb7a9}=_0x221a8d;_0x3cb7a9['forEach'](_0x15f865=>{const _0x370055=_0x44de;var _0x5bcf40;const _0x4d5c1f=this['_unitOnClients'][_0x370055(0x10a)](_0x15f865);_0x4d5c1f&&(_0x4d5c1f['delete'](_0x5cdf3f),(_0x5bcf40=this[_0x370055(0x1b2)](_0x15f865))==null||_0x5bcf40[_0x370055(0x3cd)](_0x4d5c1f['size']===0x0?0x0:0x1));}),this[_0x228b70(0x301)](_0x5cdf3f);}[_0x1e1deb(0x277)](_0x1c78c8){const _0x27b36a=_0x1e1deb;this[_0x27b36a(0x18e)](_0x1c78c8[_0x27b36a(0x283)]);}[_0x1e1deb(0x2de)](_0x3bb720){const _0x6dc241=_0x1e1deb;localStorage[_0x6dc241(0x28b)](ts,JSON[_0x6dc241(0x32f)](_0x3bb720));}[_0x1e1deb(0x109)](){const _0xbdc7f9=_0x1e1deb;this[_0xbdc7f9(0x253)]=window[_0xbdc7f9(0x3ef)](()=>{const _0x115c54=_0xbdc7f9;this[_0x115c54(0x2de)]({'type':0x2,'memberID':this[_0x115c54(0x1e2)]});},es);}[_0x1e1deb(0x1b2)](_0x302c38){const _0x533489=_0x1e1deb;return this['_unitStatus'][_0x533489(0x1e3)](_0x302c38)||this[_0x533489(0x366)][_0x533489(0x394)](_0x302c38,new _0x16d05d(0x0)),this[_0x533489(0x366)]['get'](_0x302c38);}}var Fn=Object['defineProperty'],Vn=Object[_0x1e1deb(0x32c)],Bn=(_0xd78208,_0xc6466b,_0x3cd3d6,_0x211814)=>{const _0xfa355f=_0x1e1deb;for(var _0x39a585=_0x211814>0x1?void 0x0:_0x211814?Vn(_0xc6466b,_0x3cd3d6):_0xc6466b,_0x186c48=_0xd78208[_0xfa355f(0x426)]-0x1,_0x621efa;_0x186c48>=0x0;_0x186c48--)(_0x621efa=_0xd78208[_0x186c48])&&(_0x39a585=(_0x211814?_0x621efa(_0xc6466b,_0x3cd3d6,_0x39a585):_0x621efa(_0x39a585))||_0x39a585);return _0x211814&&_0x39a585&&Fn(_0xc6466b,_0x3cd3d6,_0x39a585),_0x39a585;},ss=(_0xf9a308,_0x56c1a4)=>(_0x1a4b6e,_0x441d02)=>_0x56c1a4(_0x1a4b6e,_0x441d02,_0xf9a308);let Je=class{constructor(_0x25138b,_0x2d7fcc){const _0x2f5a73=_0x1e1deb;this[_0x2f5a73(0x432)]=_0x25138b,this[_0x2f5a73(0x258)]=_0x2d7fcc;}[_0x1e1deb(0x218)](_0x1fc50e){const _0x5ecf6c=_0x1e1deb;this[_0x5ecf6c(0x361)](_0x1fc50e),this[_0x5ecf6c(0x323)](_0x1fc50e);}['transformRemoteChangeset'](_0x1a2fdd){const _0x50f1d0=_0x1e1deb,_0x18641d=this[_0x50f1d0(0x432)][_0x50f1d0(0x10a)](_0x3c7fed),{redoCache:_0x277a98}=_0x18641d[_0x50f1d0(0x1cc)]();if(_0x277a98['length']===0x0)return _0x1a2fdd;let _0x5d7099=_0x4526c0['deepClone'](_0x1a2fdd[_0x50f1d0(0x357)][0x0]);for(let _0x3a6de5=0x0;_0x3a6de5<_0x277a98[_0x50f1d0(0x426)];_0x3a6de5++){const _0x3097ce={'id':'doc.mutation.rich-text-editing','params':{..._0x277a98[_0x3a6de5]}},_0x1aca7d=this['_transformService'][_0x50f1d0(0x2d3)](_0x5d7099,_0x3097ce,!0x1);if(_0x1d42ec(_0x1aca7d))throw _0x1aca7d[_0x50f1d0(0x1f8)];_0x5d7099=_0x1aca7d[_0x50f1d0(0x11b)];}return{..._0x4526c0[_0x50f1d0(0x152)](_0x1a2fdd),'mutations':[_0x5d7099]};}[_0x1e1deb(0x361)](_0xd97128){const _0x1068e0=_0x1e1deb,_0x32e2a6=this[_0x1068e0(0x432)][_0x1068e0(0x10a)](_0x3c7fed),{undoCache:_0x2bf140,redoCache:_0x21dde7}=_0x32e2a6[_0x1068e0(0x1cc)]();if(_0x2bf140[_0x1068e0(0x426)]===0x0||_0x21dde7[_0x1068e0(0x426)]===0x0)return;const _0x1ffcdf=[],_0x5343b7=[];let _0x1af9bd=_0x4526c0[_0x1068e0(0x152)](_0xd97128['mutations'][0x0]),_0x2cd462=_0x4526c0[_0x1068e0(0x152)](_0xd97128[_0x1068e0(0x357)][0x0]);for(let _0x1ec60b=_0x2bf140[_0x1068e0(0x426)]-0x1;_0x1ec60b>=0x0;_0x1ec60b--){const _0x105321={'id':_0x1068e0(0x412),'params':{..._0x2bf140[_0x1ec60b]}},_0x31a7b9={'id':_0x1068e0(0x412),'params':{..._0x21dde7[_0x1ec60b]}},_0x36ce86=this[_0x1068e0(0x258)][_0x1068e0(0x2d3)](_0x1af9bd,_0x105321,!0x1),_0x260dbd=this[_0x1068e0(0x258)][_0x1068e0(0x2d3)](_0x2cd462,_0x31a7b9,!0x1);if(_0x1d42ec(_0x36ce86))throw _0x36ce86[_0x1068e0(0x1f8)];if(_0x1d42ec(_0x260dbd))throw _0x260dbd[_0x1068e0(0x1f8)];_0x1ffcdf[_0x1068e0(0x2b9)](_0x36ce86['m2Prime'][_0x1068e0(0x42b)]),_0x5343b7[_0x1068e0(0x2b9)](_0x260dbd[_0x1068e0(0x2fa)][_0x1068e0(0x42b)]),_0x1af9bd=_0x36ce86['m1Prime'],_0x2cd462=_0x260dbd[_0x1068e0(0x11b)];}_0x32e2a6['setUndoRedoMutationParamsCache']({'undoCache':_0x1ffcdf,'redoCache':_0x5343b7});}['_transformPreviousActiveRange'](_0x117136){const _0x88b7e8=_0x1e1deb,_0x1603ea=this[_0x88b7e8(0x432)][_0x88b7e8(0x10a)](_0x3c7fed),_0x882f18=_0x1603ea[_0x88b7e8(0x3e2)]();if(_0x882f18==null)return;const _0x440087=[{'id':_0x88b7e8(0x412),'params':{'unitId':_0x117136[_0x88b7e8(0x370)],'actions':null,'textRanges':[_0x882f18]}}],_0x35304a=this[_0x88b7e8(0x258)][_0x88b7e8(0x3a3)](_0x117136,_0x440087);if(!_0x4f645f(_0x35304a))throw _0x35304a[_0x88b7e8(0x1f8)];const _0x5de1c9=_0x35304a[_0x88b7e8(0x2fa)][0x0][_0x88b7e8(0x42b)][_0x88b7e8(0x203)];Array[_0x88b7e8(0x117)](_0x5de1c9)&&_0x5de1c9[_0x88b7e8(0x426)]&&_0x1603ea['setActiveRange'](_0x5de1c9[0x0]);}};Je=Bn([ss(0x0,_0x441fe2(_0x9c5d64)),ss(0x1,_0x1e0f5c)],Je);var Wn=Object[_0x1e1deb(0x158)],Gn=Object['getOwnPropertyDescriptor'],Yn=(_0x388f04,_0x3e04a6,_0x29c922,_0x65f95)=>{for(var _0x35aaab=_0x65f95>0x1?void 0x0:_0x65f95?Gn(_0x3e04a6,_0x29c922):_0x3e04a6,_0x313143=_0x388f04['length']-0x1,_0x20110c;_0x313143>=0x0;_0x313143--)(_0x20110c=_0x388f04[_0x313143])&&(_0x35aaab=(_0x65f95?_0x20110c(_0x3e04a6,_0x29c922,_0x35aaab):_0x20110c(_0x35aaab))||_0x35aaab);return _0x65f95&&_0x35aaab&&Wn(_0x3e04a6,_0x29c922,_0x35aaab),_0x35aaab;},is=(_0x55ece1,_0x518a46)=>(_0x54d57f,_0x4d6be6)=>_0x518a46(_0x54d57f,_0x4d6be6,_0x55ece1);let ze=class{constructor(_0x414078,_0x327a78){const _0x45ccce=_0x1e1deb;this[_0x45ccce(0x432)]=_0x414078,this[_0x45ccce(0x258)]=_0x327a78;}[_0x1e1deb(0x137)](_0x390a97){const _0x5d5e14=_0x1e1deb;var _0x31119b;const _0x229f0c=this[_0x5d5e14(0x432)][_0x5d5e14(0x10a)](_0x490704),_0x24e168=(_0x31119b=_0x229f0c[_0x5d5e14(0x31f)]())!=null?_0x31119b:[],_0x1980de=_0x24e168==null?void 0x0:_0x24e168[_0x5d5e14(0x230)](_0x14d063);if(_0x1980de[_0x5d5e14(0x426)]===0x0)return;const _0x212c1c=[{'id':_0x5d5e14(0x412),'params':{'unitId':_0x390a97[_0x5d5e14(0x370)],'actions':null,'textRanges':_0x1980de}}],_0x109915=this['_transformService']['transformMutationsWithChangeset'](_0x390a97,_0x212c1c);if(!_0x4f645f(_0x109915))throw _0x109915[_0x5d5e14(0x1f8)];const _0x59f8fc=_0x109915[_0x5d5e14(0x2fa)][0x0][_0x5d5e14(0x42b)]['textRanges'];Array[_0x5d5e14(0x117)](_0x59f8fc)&&_0x59f8fc[_0x5d5e14(0x426)]&&_0x229f0c[_0x5d5e14(0x273)](_0x59f8fc,!0x1);}};ze=Yn([is(0x0,_0x441fe2(_0x9c5d64)),is(0x1,_0x1e0f5c)],ze);function ys(_0x1db956){const _0x295dbe=_0x1e1deb;let _0x14cf0e='';for(const _0x231ded of _0x1db956){const {startOffset:_0x15b5f1,endOffset:_0x275c66,isActive:_0x44d914}=_0x231ded;_0x14cf0e[_0x295dbe(0x426)]&&(_0x14cf0e+=','),_0x14cf0e+=_0x15b5f1+':'+_0x275c66+':'+(_0x44d914?'1':'0');}return _0x14cf0e;}function Kn(_0x4a174c){const _0x3d6640=_0x1e1deb,_0x4e39b4=_0x4a174c['split'](','),_0x252d03=[];for(const _0x58c431 of _0x4e39b4){const [_0x1766c6,_0x23f45d,_0x44c456]=_0x58c431[_0x3d6640(0x2a1)](':');_0x252d03[_0x3d6640(0x39d)]({'startOffset':Number(_0x1766c6),'endOffset':Number(_0x23f45d),'collapsed':_0x1766c6===_0x23f45d,'isActive':_0x44c456==='1'});}return _0x252d03['some'](_0x287abc=>_0x287abc['isActive'])||(_0x252d03[0x0][_0x3d6640(0x3d9)]=!0x0),_0x252d03;}class jt extends _0x5b9cf1{constructor(){const _0x4d48f3=_0x1e1deb;super(...arguments),l(this,_0x4d48f3(0x26e),new _0x16d05d(null)),l(this,'collabCursorState$',this[_0x4d48f3(0x26e)][_0x4d48f3(0x14e)]());}[_0x1e1deb(0x40e)](_0x58bfc0){const _0x18781e=_0x1e1deb,{unitID:_0xa22bf3,memberID:_0x28de4a,textRanges:_0x39b7}=_0x58bfc0,_0x3a99ff=ys(_0x39b7),_0x4c2694={'unitID':_0xa22bf3,'memberID':_0x28de4a,'selection':_0x3a99ff};this[_0x18781e(0x26e)]['next'](_0x4c2694);}}var Xn=Object['defineProperty'],Jn=Object['getOwnPropertyDescriptor'],zn=(_0x967ada,_0x4842b9,_0x7a5738,_0x3c57ee)=>{const _0x5df762=_0x1e1deb;for(var _0x5613d0=_0x3c57ee>0x1?void 0x0:_0x3c57ee?Jn(_0x4842b9,_0x7a5738):_0x4842b9,_0x2b06a9=_0x967ada[_0x5df762(0x426)]-0x1,_0x5ca6d9;_0x2b06a9>=0x0;_0x2b06a9--)(_0x5ca6d9=_0x967ada[_0x2b06a9])&&(_0x5613d0=(_0x3c57ee?_0x5ca6d9(_0x4842b9,_0x7a5738,_0x5613d0):_0x5ca6d9(_0x5613d0))||_0x5613d0);return _0x3c57ee&&_0x5613d0&&Xn(_0x4842b9,_0x7a5738,_0x5613d0),_0x5613d0;},ns=(_0x99a6da,_0x5409f6)=>(_0x3366dd,_0xd1a7cc)=>_0x5409f6(_0x3366dd,_0xd1a7cc,_0x99a6da);function _0x44de(_0x18dc17,_0x3abca2){const _0x48fbad=_0x48fb();return _0x44de=function(_0x44de12,_0x7cde9b){_0x44de12=_0x44de12-0xfa;let _0xe2f919=_0x48fbad[_0x44de12];return _0xe2f919;},_0x44de(_0x18dc17,_0x3abca2);}function qn(_0x1f6084){const _0x40f5bb=_0x1e1deb,{unitID:_0x151892,mutations:_0x2a3d0b}=_0x1f6084;return{'unitId':_0x151892,'subUnitId':_0x2a3d0b[0x0][_0x40f5bb(0x42b)][_0x40f5bb(0x3b0)]};}let qe=class{constructor(_0x45f6b2,_0x5cf77d){const _0x25d535=_0x1e1deb;this['_injector']=_0x45f6b2,this[_0x25d535(0x258)]=_0x5cf77d;}[_0x1e1deb(0x137)](_0x1879c2){const _0x3d438e=_0x1e1deb;var _0x259013,_0x49d3fa,_0x3604d6;const _0x50b2b7=this[_0x3d438e(0x432)][_0x3d438e(0x10a)](_0x402922),{unitId:_0x1dfef8,subUnitId:_0x5e8641}=qn(_0x1879c2),_0x32b3fb=_0x50b2b7[_0x3d438e(0x160)](_0x1dfef8)[_0x3d438e(0x310)]();if(_0x32b3fb[_0x3d438e(0x426)]===0x0||!_0x1dfef8||!_0x5e8641)return;const _0x1b3167=[{'id':_0x37d621['id'],'params':{'unitId':_0x1dfef8,'subUnitId':_0x5e8641,'selections':_0x4526c0[_0x3d438e(0x152)](_0x32b3fb)}}],_0x120e92=this[_0x3d438e(0x258)]['transformMutationsWithChangeset'](_0x1879c2,_0x1b3167);if(!_0x4f645f(_0x120e92))throw _0x120e92[_0x3d438e(0x1f8)];const _0xf95e11=(_0x3604d6=(_0x49d3fa=(_0x259013=_0x120e92[_0x3d438e(0x2fa)][0x0])==null?void 0x0:_0x259013['params'])==null?void 0x0:_0x49d3fa[_0x3d438e(0x287)])!=null?_0x3604d6:_0x32b3fb;Array[_0x3d438e(0x117)](_0xf95e11)&&_0xf95e11['length']&&this['_injector']['get'](_0x9845f)[_0x3d438e(0x3e7)](_0x37d621['id'],{'unitId':_0x1dfef8,'subUnitId':_0x5e8641,'selections':_0xf95e11});}};qe=zn([ns(0x0,_0x441fe2(_0x9c5d64)),ns(0x1,_0x1e0f5c)],qe);const Zn=new Set([_0x447932['id']]);function rs(_0x24d909,_0x455ae4,_0x465880,_0x553ff0,_0x2403ae){const _0x175b34=_0x1e1deb;var _0x47629f,_0x10d79e,_0x32b3ae,_0x13b184;const _0x22e1de=[];for(const _0x61964c of _0x24d909)if(Zn[_0x175b34(0x1e3)](_0x61964c['id'])){if(_0x22e1de[_0x175b34(0x426)]>0x0)break;_0x22e1de[_0x175b34(0x39d)](_0x61964c);break;}else _0x22e1de[_0x175b34(0x39d)](_0x61964c);const _0x463ad3=(_0x10d79e=(_0x47629f=_0x2403ae[_0x175b34(0x20c)]())==null?void 0x0:_0x47629f['userID'])!=null?_0x10d79e:_0x175b34(0x2d9),_0x57c117=(_0x13b184=(_0x32b3ae=_0x2403ae[_0x175b34(0x20c)]())==null?void 0x0:_0x32b3ae[_0x175b34(0x283)])!=null?_0x13b184:'unknown';return{'changeset':{'unitID':_0x455ae4,'type':_0x4d8b7d(_0x465880['getUnitType'](_0x455ae4)),'baseRev':_0x553ff0[_0x175b34(0x202)](_0x455ae4),'revision':0x0,'userID':_0x463ad3,'memberID':_0x57c117,'mutations':_0x22e1de},'pendingMutations':_0x24d909[_0x175b34(0x1d7)](_0x22e1de[_0x175b34(0x426)])};}function Qn(_0x3dbc47,_0x21f4c1,_0x47e06b,_0xce29bc,_0x4bc00b){const _0x4bc76e=_0x1e1deb;var _0x3321fa,_0x13e1c2,_0x58d6f0,_0x48ec35;const _0x201d36=[_0x3dbc47['reduce']((_0x1e6de2,_0x241d77)=>{const _0x56ce39=_0x44de;var _0x50c451;const {id:_0x59ae12}=_0x1e6de2,{id:_0x4a024a,type:_0x29c5c3}=_0x241d77,_0x29d323=(_0x50c451=_0x1e6de2[_0x56ce39(0x42b)])!=null?_0x50c451:{'actions':null},_0x5c5fcb=_0x241d77['params'];if(_0x59ae12&&_0x59ae12!==_0x4a024a)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x59ae12+_0x56ce39(0x106)+_0x4a024a+'.');return{..._0x1e6de2,'id':_0x4a024a,'type':_0x29c5c3,'params':{'unitId':_0x5c5fcb[_0x56ce39(0x439)],'textRanges':_0x5c5fcb[_0x56ce39(0x203)],'actions':_0x564a09[_0x56ce39(0x381)](_0x29d323[_0x56ce39(0x15f)],_0x5c5fcb[_0x56ce39(0x15f)])}};},{})],_0x210753=(_0x13e1c2=(_0x3321fa=_0x4bc00b[_0x4bc76e(0x20c)]())==null?void 0x0:_0x3321fa[_0x4bc76e(0x314)])!=null?_0x13e1c2:'unknown',_0x37bceb=(_0x48ec35=(_0x58d6f0=_0x4bc00b[_0x4bc76e(0x20c)]())==null?void 0x0:_0x58d6f0[_0x4bc76e(0x283)])!=null?_0x48ec35:_0x4bc76e(0x2d9);return{'changeset':{'unitID':_0x21f4c1,'type':_0x4d8b7d(_0x47e06b[_0x4bc76e(0x182)](_0x21f4c1)),'baseRev':_0xce29bc['getCurrentRevForDocument'](_0x21f4c1),'revision':0x0,'userID':_0x210753,'memberID':_0x37bceb,'mutations':_0x201d36},'pendingMutations':[]};}const er={'id':_0x4bcf83['id'],'type':_0x5cd9c4[_0x1e1deb(0x173)],'params':{}};var tr=Object[_0x1e1deb(0x158)],sr=Object['getOwnPropertyDescriptor'],ce=(_0x4d15f3,_0x4ac7d8,_0x5be020,_0xe34def)=>{const _0x28c052=_0x1e1deb;for(var _0x3beb5e=_0xe34def>0x1?void 0x0:_0xe34def?sr(_0x4ac7d8,_0x5be020):_0x4ac7d8,_0x1330b4=_0x4d15f3[_0x28c052(0x426)]-0x1,_0x38d1a0;_0x1330b4>=0x0;_0x1330b4--)(_0x38d1a0=_0x4d15f3[_0x1330b4])&&(_0x3beb5e=(_0xe34def?_0x38d1a0(_0x4ac7d8,_0x5be020,_0x3beb5e):_0x38d1a0(_0x3beb5e))||_0x3beb5e);return _0xe34def&&_0x3beb5e&&tr(_0x4ac7d8,_0x5be020,_0x3beb5e),_0x3beb5e;},f=(_0x2997db,_0x1476bf)=>(_0x1fd000,_0x1f9242)=>_0x1476bf(_0x1fd000,_0x1f9242,_0x2997db),P=(_0x2e88a5=>(_0x2e88a5['NOT_COLLAB']=_0x1e1deb(0x19a),_0x2e88a5[_0x1e1deb(0x23d)]='synced',_0x2e88a5['PENDING']=_0x1e1deb(0x3f2),_0x2e88a5['AWAITING']=_0x1e1deb(0x3a2),_0x2e88a5[_0x1e1deb(0x1b7)]=_0x1e1deb(0x1f9),_0x2e88a5['FETCH_MISS']='fetch_missing',_0x2e88a5[_0x1e1deb(0x2dc)]=_0x1e1deb(0x142),_0x2e88a5[_0x1e1deb(0x328)]=_0x1e1deb(0x291),_0x2e88a5))(P||{});class he{constructor(_0xfb08,_0xd5fdd2,_0x17e028,_0x5bdeee,_0x266644,_0x1709d5,_0x4f8502,_0x2d7435,_0x13afc7){const _0x34351a=_0x1e1deb;l(this,_0x34351a(0x332),null),l(this,_0x34351a(0x23c),[]),(this['unitID']=_0xfb08,this[_0x34351a(0x2cc)]=_0xd5fdd2,this['_handler']=_0x266644,this[_0x34351a(0x1fb)]=_0x1709d5,this[_0x34351a(0x1d0)]=_0x4f8502,this[_0x34351a(0x2d6)]=_0x2d7435,this[_0x34351a(0x1f2)]=_0x13afc7,this[_0x34351a(0x332)]=_0x17e028,this[_0x34351a(0x23c)]=_0x5bdeee);}[_0x1e1deb(0x319)](_0x45ec3c){const _0x2a6483=_0x1e1deb,_0x4e044a=this[_0x2a6483(0x2d6)][_0x2a6483(0x202)](this[_0x2a6483(0x370)]);return _0x45ec3c[_0x2a6483(0x126)]>_0x4e044a+0x1?(this['_handler'][_0x2a6483(0x34f)]({'from':_0x4e044a,'to':_0x45ec3c[_0x2a6483(0x126)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x22bcee){const _0x4e286e=_0x1e1deb;this[_0x4e286e(0x1d0)][_0x4e286e(0x2f2)](this[_0x4e286e(0x370)],_0x22bcee);}['_transformSelections'](_0x2cd441){const _0x36f245=_0x1e1deb;var _0xaf70f9,_0x19cb46;(_0x19cb46=(_0xaf70f9=this['_handler'])['onTransformSelections'])==null||_0x19cb46[_0x36f245(0x2fb)](_0xaf70f9,_0x2cd441);}[_0x1e1deb(0x3c3)](_0x5409d9){const _0x403e2e=_0x1e1deb;var _0xe9bb97,_0x27ba34;return(_0x27ba34=(_0xe9bb97=this[_0x403e2e(0x373)])['onTransformIME'])==null?void 0x0:_0x27ba34[_0x403e2e(0x2fb)](_0xe9bb97,_0x5409d9);}[_0x1e1deb(0x3cb)](_0xfd3fee){const _0x51b7fa=_0x1e1deb;var _0x44a0f6,_0x3d2708,_0x23a5b4;return(_0x23a5b4=(_0x3d2708=(_0x44a0f6=this[_0x51b7fa(0x373)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x3d2708[_0x51b7fa(0x2fb)](_0x44a0f6,_0xfd3fee))!=null?_0x23a5b4:_0xfd3fee;}[_0x1e1deb(0x407)](_0x510d3b){const _0x52a0d8=_0x1e1deb;var _0x280155,_0x235f07;if(this[_0x52a0d8(0x2cc)]===x['UNIVER_DOC']){const {unitID:_0x5657cc,mutations:_0x33b2c7,memberID:_0x516fb6}=_0x510d3b,_0x495275=_0x33b2c7[0x0][_0x52a0d8(0x42b)][_0x52a0d8(0x203)];Array[_0x52a0d8(0x117)](_0x495275)&&_0x495275[_0x52a0d8(0x426)]>0x0&&((_0x235f07=(_0x280155=this[_0x52a0d8(0x373)])[_0x52a0d8(0x3ff)])==null||_0x235f07[_0x52a0d8(0x2fb)](_0x280155,{'unitID':_0x5657cc,'memberID':_0x516fb6,'textRanges':_0x495275}));}}['_updateLocalCache'](){const _0xdac977=_0x1e1deb;this[_0xdac977(0x1f2)][_0xdac977(0x2b4)](this[_0xdac977(0x370)],this[_0xdac977(0x2cc)],this[_0xdac977(0x332)],this['_pendingMutations']);}[_0x1e1deb(0x149)](){const _0x8ea5cd=_0x1e1deb;return this['_revisionService'][_0x8ea5cd(0x202)](this[_0x8ea5cd(0x370)]);}[_0x1e1deb(0x22b)](){const _0x1d435c=_0x1e1deb;this['_revisionService']['incrementRevForDocument'](this[_0x1d435c(0x370)]);}[_0x1e1deb(0x1ac)](_0x15165c){const _0x38bedf=_0x1e1deb;var _0x3384cc;const _0x524d8e=this[_0x38bedf(0x3cb)](_0x15165c),_0x29c7cb=_0x35dc8f(_0x524d8e[_0x38bedf(0x357)],this[_0x38bedf(0x1fb)],{'fromCollab':!0x0});if(!_0x29c7cb['result'])throw _0x29c7cb[_0x38bedf(0x1f8)]instanceof Error?_0x29c7cb['error']:new Error((_0x3384cc=_0x29c7cb['error'])!=null?_0x3384cc:_0x38bedf(0x12c));this[_0x38bedf(0x3c3)](_0x524d8e),this[_0x38bedf(0x18d)](_0x15165c),this[_0x38bedf(0x3f8)](_0x524d8e),this['_syncEditingCollabCursor'](_0x524d8e),this[_0x38bedf(0x22b)]();}}let ye=class extends he{constructor(_0x24cd87,_0x2b22ae,_0x376e41,_0x95b44b,_0x5c4581,_0x3cedcb,_0x1a4a24,_0x4a7712,_0x2ba433,_0x65e7d6){const _0x4b4faf=_0x1e1deb;super(_0x24cd87,_0x2b22ae,null,[],_0x376e41,_0x4a7712,_0x1a4a24,_0x95b44b,_0x5c4581),l(this,_0x4b4faf(0x356),_0x4b4faf(0x368)),(this[_0x4b4faf(0x432)]=_0x3cedcb,this['_logService']=_0x2ba433,this[_0x4b4faf(0x258)]=_0x65e7d6);}[_0x1e1deb(0x374)](_0x5bfc8f){const _0x3ac634=_0x1e1deb,_0x2663b6=this[_0x3ac634(0x432)][_0x3ac634(0x116)](G,this['unitID'],this[_0x3ac634(0x2cc)],[_0x5bfc8f],this[_0x3ac634(0x373)]);return _0x2663b6[_0x3ac634(0x198)](),_0x2663b6[_0x3ac634(0x32b)](),_0x2663b6;}[_0x1e1deb(0x25b)](_0x3e0cfa){const _0x243edf=_0x1e1deb;if(this['_checkMissing'](_0x3e0cfa))return this[_0x243edf(0x432)][_0x243edf(0x116)](K,this[_0x243edf(0x370)],this[_0x243edf(0x2cc)],null,[],null,[_0x3e0cfa],this[_0x243edf(0x373)]);try{const _0x8f2a5=this[_0x243edf(0x258)]['transformMutationsWithChangeset'](_0x3e0cfa,[er]);if(_0x4f645f(_0x8f2a5)){const {c1Prime:_0x15e3c0}=_0x8f2a5;return this[_0x243edf(0x1ac)](_0x15e3c0),this;}throw _0x8f2a5['error'];}catch(_0x3d7b66){return this[_0x243edf(0x12a)][_0x243edf(0x1f8)](_0x3d7b66),this[_0x243edf(0x359)](!0x1);}}[_0x1e1deb(0x359)](_0x39e4af){const _0x141d62=_0x1e1deb;return this['_injector'][_0x141d62(0x116)](Z,this[_0x141d62(0x370)],this[_0x141d62(0x2cc)],null,[],this[_0x141d62(0x373)],_0x39e4af);}[_0x1e1deb(0x379)](){const _0x45fc26=_0x1e1deb;throw new Error(_0x45fc26(0x35a));}[_0x1e1deb(0x37e)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x34a200=_0x1e1deb;return this[_0x34a200(0x432)][_0x34a200(0x116)](Q,this[_0x34a200(0x370)],this[_0x34a200(0x2cc)],null,[],this['_handler']);}['toggleOnline'](){return this;}[_0x1e1deb(0x372)](){const _0x445890=_0x1e1deb;throw new Error(_0x445890(0x32a));}};ye=ce([f(0x3,_0x441fe2(_0xaeae41)),f(0x4,_0x441fe2(D)),f(0x5,_0x441fe2(_0x9c5d64)),f(0x6,_0x416533),f(0x7,_0x9845f),f(0x8,_0x5f4df3),f(0x9,_0x1e0f5c)],ye);let G=class extends he{constructor(_0x311956,_0x4bafe7,_0x3b9a93,_0x23022b,_0x5ac925,_0x595466,_0x20c521,_0x217292,_0x1409eb,_0x1e7a60,_0x4c0c30,_0x1d0fa5,_0x2e44cf,_0x13c5dd){const _0x2eb3f5=_0x1e1deb;super(_0x311956,_0x4bafe7,null,_0x3b9a93,_0x23022b,_0x1e7a60,_0x13c5dd,_0x595466,_0x20c521),l(this,'status','pending'),l(this,'_scheduleTimestamp',null),l(this,_0x2eb3f5(0x266),null),(this[_0x2eb3f5(0x432)]=_0x5ac925,this[_0x2eb3f5(0x13e)]=_0x217292,this[_0x2eb3f5(0x12a)]=_0x1409eb,this[_0x2eb3f5(0x26b)]=_0x4c0c30,this[_0x2eb3f5(0x258)]=_0x1d0fa5,this['_univerInstanceService']=_0x2e44cf);}[_0x1e1deb(0x374)](_0x300643){const _0x1669a8=_0x1e1deb;return this[_0x1669a8(0x23c)][_0x1669a8(0x39d)](_0x300643),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x47fe00){const _0x3083b5=_0x1e1deb;if(this[_0x3083b5(0x319)](_0x47fe00))return this[_0x3083b5(0x355)](),this[_0x3083b5(0x432)]['createInstance'](K,this[_0x3083b5(0x370)],this[_0x3083b5(0x2cc)],null,this[_0x3083b5(0x23c)],null,[_0x47fe00],this[_0x3083b5(0x373)]);try{const _0x1ecea7=this['_transformService'][_0x3083b5(0x3a3)](_0x47fe00,this['_pendingMutations']);if(_0x4f645f(_0x1ecea7)){const {c1Prime:_0x148479,m2Prime:_0x508860}=_0x1ecea7;this[_0x3083b5(0x1ac)](_0x148479);const _0x494c6a=this[_0x3083b5(0x432)][_0x3083b5(0x116)](G,this[_0x3083b5(0x370)],this[_0x3083b5(0x2cc)],_0x508860,this['_handler']);return this[_0x3083b5(0x355)](),_0x494c6a[_0x3083b5(0x198)](this[_0x3083b5(0x1e9)]?Math[_0x3083b5(0x274)](0x0,new Date()[_0x3083b5(0x12b)]()-this[_0x3083b5(0x1e9)]):this[_0x3083b5(0x362)]()),_0x494c6a;}throw _0x1ecea7[_0x3083b5(0x1f8)];}catch(_0x6c9c2c){return this[_0x3083b5(0x12a)][_0x3083b5(0x1f8)](_0x6c9c2c),this['_onConflict'](!0x1);}}[_0x1e1deb(0x379)](){const _0x34560a=_0x1e1deb;throw new Error(_0x34560a(0x431));}[_0x1e1deb(0x37e)](){const _0x1bd64d=_0x1e1deb;throw new Error(_0x1bd64d(0x255));}[_0x1e1deb(0x2dd)](){const _0x293159=_0x1e1deb;return this[_0x293159(0x355)](),this[_0x293159(0x432)][_0x293159(0x116)](Q,this[_0x293159(0x370)],this[_0x293159(0x2cc)],null,this[_0x293159(0x23c)],this[_0x293159(0x373)]);}[_0x1e1deb(0x13a)](){return this;}[_0x1e1deb(0x198)](_0x15f770){const _0x5ea99c=_0x1e1deb;_0x15f770=_0x15f770!=null?_0x15f770:this[_0x5ea99c(0x362)](),this['_scheduleTimestamp']=new Date()[_0x5ea99c(0x12b)](),this[_0x5ea99c(0x266)]=setTimeout(()=>{const _0x16848d=_0x5ea99c;this[_0x16848d(0x355)]();let _0x32768c=null;switch(this[_0x16848d(0x2cc)]){case x['UNIVER_SHEET']:{_0x32768c=rs(this[_0x16848d(0x23c)],this[_0x16848d(0x370)],this[_0x16848d(0x145)],this[_0x16848d(0x2d6)],this[_0x16848d(0x13e)]);break;}case x[_0x16848d(0x1c7)]:{this[_0x16848d(0x23c)][_0x16848d(0x3a1)](_0x1d5203=>_0x1d5203['id']===_0x54abea['id'])?_0x32768c=Qn(this['_pendingMutations'],this[_0x16848d(0x370)],this['_univerInstanceService'],this[_0x16848d(0x2d6)],this[_0x16848d(0x13e)]):_0x32768c=rs(this['_pendingMutations'],this[_0x16848d(0x370)],this[_0x16848d(0x145)],this[_0x16848d(0x2d6)],this[_0x16848d(0x13e)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x16848d(0x2cc)]+_0x16848d(0x164));}const {changeset:_0x2af2b5,pendingMutations:_0x11f75d}=_0x32768c;this[_0x16848d(0x373)][_0x16848d(0x15c)](_0x2af2b5);const _0x19e322=_0x11f75d[_0x16848d(0x426)]?this[_0x16848d(0x432)][_0x16848d(0x116)](Y,this['unitID'],this[_0x16848d(0x2cc)],_0x2af2b5,_0x11f75d,this[_0x16848d(0x373)]):this[_0x16848d(0x432)][_0x16848d(0x116)](q,this[_0x16848d(0x370)],this[_0x16848d(0x2cc)],_0x2af2b5,this[_0x16848d(0x373)]);_0x19e322['_updateLocalCache'](),this[_0x16848d(0x373)]['onStateChange'](this,_0x19e322);},_0x15f770);}[_0x1e1deb(0x362)](){var _0x4a2473;return(_0x4a2473=this['_configService']['getConfig'](hn))!=null?_0x4a2473:ln;}['resend'](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1e1deb(0x355)](){const _0x4310a1=_0x1e1deb;this[_0x4310a1(0x266)]!=null&&(clearTimeout(this[_0x4310a1(0x266)]),this[_0x4310a1(0x266)]=null);}[_0x1e1deb(0x359)](_0x4a574e){const _0xf1b101=_0x1e1deb;return this['_clearScheduledTask'](),this[_0xf1b101(0x432)][_0xf1b101(0x116)](Z,this[_0xf1b101(0x370)],this[_0xf1b101(0x2cc)],null,this[_0xf1b101(0x23c)],this[_0xf1b101(0x373)],_0x4a574e);}};G=ce([f(0x4,_0x441fe2(_0x9c5d64)),f(0x5,_0x441fe2(_0xaeae41)),f(0x6,_0x441fe2(D)),f(0x7,_0x441fe2(ne)),f(0x8,_0x5f4df3),f(0x9,_0x9845f),f(0xa,_0x5445a8),f(0xb,_0x1e0f5c),f(0xc,_0x4902a5),f(0xd,_0x416533)],G);let q=class extends he{constructor(_0xbf79d9,_0x33819d,_0x207e59,_0x4b68e6,_0x238611,_0x18097d,_0x55aba0,_0x2ef123,_0x2fd63d,_0x12e951,_0x5f4fd9){const _0x484cfd=_0x1e1deb;super(_0xbf79d9,_0x33819d,_0x207e59,[],_0x4b68e6,_0x2ef123,_0x5f4fd9,_0x18097d,_0x55aba0),l(this,_0x484cfd(0x356),_0x484cfd(0x3a2)),(this[_0x484cfd(0x432)]=_0x238611,this['_logService']=_0x2fd63d,this['_transformService']=_0x12e951);}['appendMutation'](_0x4e0e3c){const _0x336b12=_0x1e1deb,_0x3a9f34=this[_0x336b12(0x432)][_0x336b12(0x116)](Y,this['unitID'],this[_0x336b12(0x2cc)],this[_0x336b12(0x332)],[_0x4e0e3c],this[_0x336b12(0x373)]);return _0x3a9f34['_updateLocalCache'](),_0x3a9f34;}[_0x1e1deb(0x25b)](_0x4f4144){const _0x5a876d=_0x1e1deb;if(this[_0x5a876d(0x319)](_0x4f4144))return this[_0x5a876d(0x432)][_0x5a876d(0x116)](K,this[_0x5a876d(0x370)],this[_0x5a876d(0x2cc)],this['_awaitingChangeset'],[],null,[_0x4f4144],this[_0x5a876d(0x373)]);try{const _0x449748=this['_transformService'][_0x5a876d(0x3e9)]([_0x4f4144],[this['_awaitingChangeset']],!0x1);if(_0x316cc8(_0x449748)){const {c1Prime:_0x112099,c2Prime:_0x12d0aa}=_0x449748;this[_0x5a876d(0x1ac)](_0x112099[0x0]),_0x12d0aa[0x0][_0x5a876d(0x212)]=this[_0x5a876d(0x149)]();const _0x1b6d00=this['_injector']['createInstance'](q,this['unitID'],this[_0x5a876d(0x2cc)],_0x12d0aa[0x0],this[_0x5a876d(0x373)]);return _0x1b6d00['_updateLocalCache'](),_0x1b6d00;}return this[_0x5a876d(0x359)](!0x1);}catch(_0x5c1f5a){return this[_0x5a876d(0x12a)][_0x5a876d(0x1f8)](_0x5c1f5a),this[_0x5a876d(0x359)](!0x1);}}[_0x1e1deb(0x379)](_0x5691d5){const _0x3a556d=_0x1e1deb,_0x435b5c=this[_0x3a556d(0x2d6)]['getCurrentRevForDocument'](this['unitID']);if(_0x5691d5[_0x3a556d(0x126)]<_0x435b5c-0x1)return this;if(this[_0x3a556d(0x319)](_0x5691d5))return this[_0x3a556d(0x432)]['createInstance'](K,this[_0x3a556d(0x370)],this[_0x3a556d(0x2cc)],null,[],this[_0x3a556d(0x332)],[],this[_0x3a556d(0x373)]);this['_incrementRevisionNumber']();const _0x1fccfe=this[_0x3a556d(0x432)][_0x3a556d(0x116)](ye,this[_0x3a556d(0x370)],this[_0x3a556d(0x2cc)],this[_0x3a556d(0x373)]);return _0x1fccfe[_0x3a556d(0x32b)](),_0x1fccfe;}[_0x1e1deb(0x37e)](_0x56ae55){const _0x52f4f8=_0x1e1deb;return this[_0x52f4f8(0x359)](!!(_0x56ae55!=null&&_0x56ae55['isPermissionRej']));}[_0x1e1deb(0x2dd)](){const _0x3db6ac=_0x1e1deb;return this[_0x3db6ac(0x432)][_0x3db6ac(0x116)](Q,this[_0x3db6ac(0x370)],this[_0x3db6ac(0x2cc)],this[_0x3db6ac(0x332)],[],this[_0x3db6ac(0x373)]);}[_0x1e1deb(0x13a)](){return this;}[_0x1e1deb(0x372)](){const _0x27b9a4=_0x1e1deb;this[_0x27b9a4(0x373)][_0x27b9a4(0x15c)](this[_0x27b9a4(0x332)]);}[_0x1e1deb(0x359)](_0x44690f){const _0x478ba4=_0x1e1deb;return this[_0x478ba4(0x432)][_0x478ba4(0x116)](Z,this['unitID'],this[_0x478ba4(0x2cc)],this[_0x478ba4(0x332)],[],this[_0x478ba4(0x373)],_0x44690f);}};q=ce([f(0x4,_0x441fe2(_0x9c5d64)),f(0x5,_0x441fe2(_0xaeae41)),f(0x6,_0x441fe2(D)),f(0x7,_0x9845f),f(0x8,_0x5f4df3),f(0x9,_0x1e0f5c),f(0xa,_0x416533)],q);let Y=class extends he{constructor(_0x1c5598,_0x55ac7d,_0x109cd5,_0x53310d,_0x1cb1de,_0x535291,_0x990d7b,_0x22dca9,_0x8f712,_0x4e3e3f,_0x4d7b92,_0x45bd63){const _0x311c51=_0x1e1deb;super(_0x1c5598,_0x55ac7d,_0x109cd5,_0x53310d,_0x1cb1de,_0x8f712,_0x45bd63,_0x990d7b,_0x22dca9),l(this,_0x311c51(0x356),_0x311c51(0x1f9)),(this['_injector']=_0x535291,this[_0x311c51(0x12a)]=_0x4e3e3f,this[_0x311c51(0x258)]=_0x4d7b92);}['appendMutation'](_0x296f0c){const _0x474d05=_0x1e1deb;return this[_0x474d05(0x23c)]['push'](_0x296f0c),this;}[_0x1e1deb(0x25b)](_0x1e317b){const _0x16b0fe=_0x1e1deb;if(this['_checkMissing'](_0x1e317b))return this[_0x16b0fe(0x432)][_0x16b0fe(0x116)](K,this[_0x16b0fe(0x370)],this['type'],this[_0x16b0fe(0x332)],this[_0x16b0fe(0x23c)],null,[_0x1e317b],this[_0x16b0fe(0x373)]);try{const _0x3e992f=this[_0x16b0fe(0x258)][_0x16b0fe(0x3e9)]([_0x1e317b],[this['_awaitingChangeset']],!0x1);if(_0x316cc8(_0x3e992f)){const {c1Prime:_0x598330,c2Prime:_0x3603ae}=_0x3e992f,_0xdc2477=this[_0x16b0fe(0x258)]['transformMutationsWithChangeset'](_0x598330[0x0],this[_0x16b0fe(0x23c)]);if(_0x4f645f(_0xdc2477)){const {c1Prime:_0x2edce6,m2Prime:_0xec2b1d}=_0xdc2477;return this[_0x16b0fe(0x1ac)](_0x2edce6),_0x3603ae[0x0][_0x16b0fe(0x212)]=this[_0x16b0fe(0x149)](),this[_0x16b0fe(0x432)][_0x16b0fe(0x116)](Y,this[_0x16b0fe(0x370)],this['type'],_0x3603ae[0x0],_0xec2b1d,this[_0x16b0fe(0x373)]);}throw _0xdc2477['error'];}throw _0x3e992f[_0x16b0fe(0x1f8)];}catch(_0x1852de){return this[_0x16b0fe(0x12a)][_0x16b0fe(0x1f8)](_0x1852de),this[_0x16b0fe(0x359)](!0x1);}}[_0x1e1deb(0x379)](_0xcd1fbb){const _0x402358=_0x1e1deb;if(this[_0x402358(0x319)](_0xcd1fbb))return this[_0x402358(0x432)][_0x402358(0x116)](K,this['unitID'],this[_0x402358(0x2cc)],null,this['_pendingMutations'],this[_0x402358(0x332)],[],this['_handler']);this[_0x402358(0x22b)]();const _0x215df=this[_0x402358(0x432)]['createInstance'](G,this[_0x402358(0x370)],this[_0x402358(0x2cc)],this[_0x402358(0x23c)],this[_0x402358(0x373)]);return _0x215df[_0x402358(0x198)](),_0x215df[_0x402358(0x32b)](),_0x215df;}[_0x1e1deb(0x37e)](_0x53b870){const _0x4f8615=_0x1e1deb;return this['_onConflict'](!!(_0x53b870!=null&&_0x53b870[_0x4f8615(0x32d)]));}[_0x1e1deb(0x2dd)](){const _0x3dfd76=_0x1e1deb;return this[_0x3dfd76(0x432)][_0x3dfd76(0x116)](Q,this['unitID'],this[_0x3dfd76(0x2cc)],this['_awaitingChangeset'],this[_0x3dfd76(0x23c)],this[_0x3dfd76(0x373)]);}[_0x1e1deb(0x13a)](){return this;}[_0x1e1deb(0x372)](){const _0x42accc=_0x1e1deb;this['_handler'][_0x42accc(0x15c)](this['_awaitingChangeset']);}[_0x1e1deb(0x359)](_0x483b69){const _0xfae14f=_0x1e1deb;return this[_0xfae14f(0x432)][_0xfae14f(0x116)](Z,this[_0xfae14f(0x370)],this[_0xfae14f(0x2cc)],null,this[_0xfae14f(0x23c)],this[_0xfae14f(0x373)],_0x483b69);}};Y=ce([f(0x5,_0x441fe2(_0x9c5d64)),f(0x6,_0x441fe2(_0xaeae41)),f(0x7,_0x441fe2(D)),f(0x8,_0x9845f),f(0x9,_0x5f4df3),f(0xa,_0x1e0f5c),f(0xb,_0x416533)],Y);let Z=class extends he{constructor(_0x47c831,_0x381247,_0x586de1,_0x3b6a91,_0x3f0a44,_0x3425ff=!0x1,_0x4870f5,_0x171b6a,_0x1478de,_0x39228f,_0x4c9e0b,_0x20dc09,_0x4ddedc){const _0x3620e3=_0x1e1deb;super(_0x47c831,_0x381247,_0x586de1,_0x3b6a91,_0x3f0a44,_0x171b6a,_0x1478de,_0x4c9e0b,_0x39228f),l(this,_0x3620e3(0x356),_0x3620e3(0x142)),(this[_0x3620e3(0x2e3)]=_0x3425ff,this[_0x3620e3(0x1eb)]=_0x4870f5,this['_localeService']=_0x20dc09,this[_0x3620e3(0x3dd)]=_0x4ddedc,this[_0x3620e3(0x2ca)](),this['_clearLocalCache'](),this['_disableEditing']());}[_0x1e1deb(0x374)](){return this;}['onRemoteChangeset'](){return this;}[_0x1e1deb(0x379)](){return this;}[_0x1e1deb(0x37e)](){return this;}[_0x1e1deb(0x2dd)](){return this;}[_0x1e1deb(0x13a)](){return this;}[_0x1e1deb(0x372)](){const _0x2dc7a2=_0x1e1deb;throw new Error(_0x2dc7a2(0x35e));}[_0x1e1deb(0x377)](){const _0x191080=_0x1e1deb;this[_0x191080(0x1f2)]['updateOfflineData'](this[_0x191080(0x370)],this['type'],null,[]);}[_0x1e1deb(0x2ca)](){const _0xbf1449=_0x1e1deb;this[_0xbf1449(0x2e3)]?this[_0xbf1449(0x3dd)][_0xbf1449(0x154)]({'title':this[_0xbf1449(0x367)]['t']('permission.title'),'content':this[_0xbf1449(0x367)]['t'](_0xbf1449(0x217)),'type':_0xbf1449(0x1f8),'duration':0x0}):this['_notificationService']['show']({'title':this[_0xbf1449(0x367)]['t'](_0xbf1449(0x30e)),'content':this[_0xbf1449(0x367)]['t'](_0xbf1449(0x1a7)),'type':_0xbf1449(0x1f8),'duration':0x0});}[_0x1e1deb(0x169)](){const _0x43f8a9=_0x1e1deb;this[_0x43f8a9(0x1eb)][_0x43f8a9(0x3ba)](new _0x230e97(this['unitID'])['id'],!0x1);}};Z=ce([f(0x6,_0x441fe2(_0x3660f2)),f(0x7,_0x9845f),f(0x8,_0x416533),f(0x9,_0x441fe2(D)),f(0xa,_0x441fe2(_0xaeae41)),f(0xb,_0x441fe2(_0x2cfe85)),f(0xc,_0x73ec84)],Z);let Q=class extends he{constructor(_0x4033ed,_0x294e68,_0x42ae01,_0x1ae8fa,_0x4a9923,_0x28c475,_0x445d82,_0x3de675,_0x3f2eb6,_0x2b6b18){const _0x4cf51f=_0x1e1deb;super(_0x4033ed,_0x294e68,_0x42ae01,_0x1ae8fa,_0x4a9923,_0x3f2eb6,_0x2b6b18,_0x445d82,_0x3de675),l(this,_0x4cf51f(0x356),'offline'),this['_injector']=_0x28c475;}['appendMutation'](_0x19d234){const _0x44a949=_0x1e1deb;return this[_0x44a949(0x23c)][_0x44a949(0x39d)](_0x19d234),this[_0x44a949(0x32b)](),this;}[_0x1e1deb(0x25b)](_0x31afe7){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0xb10699=_0x1e1deb;throw new Error(_0xb10699(0x26a));}[_0x1e1deb(0x37e)](){const _0x1395d2=_0x1e1deb;throw new Error(_0x1395d2(0x371));}[_0x1e1deb(0x2dd)](){return this;}['toggleOnline'](){const _0x37d1ab=_0x1e1deb,{_injector:_0x31e81f,_pendingMutations:_0x30cb4a,_awaitingChangeset:_0x2f4d56,unitID:_0x2d5b68,_handler:_0x592196,type:_0x2c9179}=this,_0x45df02=Us(_0x31e81f,_0x2d5b68,_0x2c9179,_0x2f4d56,_0x30cb4a,_0x592196);return _0x45df02 instanceof G?_0x45df02[_0x37d1ab(0x198)]():(_0x45df02 instanceof Y||_0x45df02 instanceof q)&&_0x45df02[_0x37d1ab(0x372)](),_0x45df02;}[_0x1e1deb(0x372)](){const _0x5ce96e=_0x1e1deb;throw new Error(_0x5ce96e(0x3da));}};Q=ce([f(0x5,_0x441fe2(_0x9c5d64)),f(0x6,_0x441fe2(_0xaeae41)),f(0x7,_0x441fe2(D)),f(0x8,_0x9845f),f(0x9,_0x416533)],Q);let K=class extends he{constructor(_0x5413fa,_0x10b864,_0x24d54e,_0x300b16,_0x35cc00,_0x35295d,_0xe20ac1,_0x28979e,_0x4637b7,_0x26d5f0,_0x181bcd,_0x1c0b77,_0x18fd54,_0x18e5ba){const _0x31c961=_0x1e1deb;super(_0x5413fa,_0x10b864,_0x24d54e,_0x300b16,_0xe20ac1,_0x1c0b77,_0x18fd54,_0x4637b7,_0x26d5f0),l(this,_0x31c961(0x356),_0x31c961(0x2b1)),(this[_0x31c961(0x3b4)]=_0x35cc00,this[_0x31c961(0x135)]=_0x35295d,this[_0x31c961(0x432)]=_0x28979e,this[_0x31c961(0x12a)]=_0x181bcd,this[_0x31c961(0x258)]=_0x18e5ba);}['onMissedChangesetFetched'](_0x352185){const _0x5a1a1b=_0x1e1deb;try{const _0xd2a67f=[..._0x352185,...this[_0x5a1a1b(0x135)]],_0x5b9a9c=[this[_0x5a1a1b(0x332)]||this[_0x5a1a1b(0x3b4)]][_0x5a1a1b(0x3fd)](_0x18ca98=>!!_0x18ca98);let _0x47a729,_0x5cb6ad;if(_0x5b9a9c[_0x5a1a1b(0x426)]){const _0x2ce4d1=this[_0x5a1a1b(0x258)][_0x5a1a1b(0x3e9)](_0xd2a67f,_0x5b9a9c,!0x1);if(!_0x316cc8(_0x2ce4d1))throw _0x2ce4d1[_0x5a1a1b(0x1f8)];_0x47a729=_0x2ce4d1[_0x5a1a1b(0x1ba)],_0x5cb6ad=_0x2ce4d1['c2Prime'];}else _0x47a729=_0xd2a67f,_0x5cb6ad=[];let _0x43119d=this[_0x5a1a1b(0x23c)];_0x47a729[_0x5a1a1b(0x23e)](_0x189226=>{const _0x5a3e9=_0x5a1a1b;let _0x4644e6;if(_0x43119d['length']){const _0x1ab949=this[_0x5a3e9(0x258)]['transformMutationsWithChangeset'](_0x189226,_0x43119d);if(!_0x4f645f(_0x1ab949))throw _0x1ab949[_0x5a3e9(0x1f8)];_0x4644e6=_0x1ab949[_0x5a3e9(0x1ba)],_0x43119d=_0x1ab949[_0x5a3e9(0x2fa)];}else _0x4644e6=_0x189226;this[_0x5a3e9(0x1ac)](_0x4644e6);}),this[_0x5a1a1b(0x3b4)]&&this[_0x5a1a1b(0x22b)](),this['_awaitingChangeset']&&_0x5cb6ad[_0x5a1a1b(0x426)]&&(_0x5cb6ad[0x0][_0x5a1a1b(0x212)]=this[_0x5a1a1b(0x149)]());let _0x304130;if(this[_0x5a1a1b(0x332)]&&_0x43119d[_0x5a1a1b(0x426)]!==0x0)_0x304130=this[_0x5a1a1b(0x432)][_0x5a1a1b(0x116)](Y,this['unitID'],this[_0x5a1a1b(0x2cc)],_0x5cb6ad[0x0],_0x43119d,this[_0x5a1a1b(0x373)]);else{if(this[_0x5a1a1b(0x332)]&&_0x43119d['length']===0x0)_0x5cb6ad[0x0][_0x5a1a1b(0x212)]=this['_getCurrentRevision'](),_0x304130=this[_0x5a1a1b(0x432)]['createInstance'](q,this[_0x5a1a1b(0x370)],this['type'],_0x5cb6ad[0x0],this[_0x5a1a1b(0x373)]);else{if(_0x43119d['length']!==0x0){const _0x86efe3=this[_0x5a1a1b(0x432)][_0x5a1a1b(0x116)](G,this['unitID'],this['type'],_0x43119d,this[_0x5a1a1b(0x373)]);_0x86efe3['_schedule'](),_0x304130=_0x86efe3;}else _0x304130=this[_0x5a1a1b(0x432)][_0x5a1a1b(0x116)](ye,this['unitID'],this[_0x5a1a1b(0x2cc)],this['_handler']);}}return _0x304130[_0x5a1a1b(0x32b)](),_0x304130;}catch(_0x550117){return this['_logService'][_0x5a1a1b(0x1f8)](_0x5a1a1b(0x290),_0x5a1a1b(0x26f),_0x550117),this[_0x5a1a1b(0x432)][_0x5a1a1b(0x116)](Z,this[_0x5a1a1b(0x370)],this[_0x5a1a1b(0x2cc)],this[_0x5a1a1b(0x332)],this[_0x5a1a1b(0x23c)],this[_0x5a1a1b(0x373)],!0x1);}}[_0x1e1deb(0x372)](){const _0x45f47c=_0x1e1deb;throw new Error(_0x45f47c(0x144));}[_0x1e1deb(0x374)](_0x5cb69b){const _0x1b773e=_0x1e1deb;return this[_0x1b773e(0x23c)][_0x1b773e(0x39d)](_0x5cb69b),this;}[_0x1e1deb(0x25b)](_0x407148){const _0x199083=_0x1e1deb;return this[_0x199083(0x135)][_0x199083(0x39d)](_0x407148),this;}[_0x1e1deb(0x379)](_0x4369e2){const _0x175780=_0x1e1deb;if(this[_0x175780(0x332)])return this['_acknowledgedAwaitingChangeset']=this[_0x175780(0x332)],this[_0x175780(0x332)]=null,this;throw new Error(_0x175780(0x27d));}['onRemoteRej'](_0xe91030){const _0x19e25=_0x1e1deb;return this[_0x19e25(0x359)](!!(_0xe91030!=null&&_0xe91030['isPermissionRej']));}[_0x1e1deb(0x2dd)](){const _0x24daff=_0x1e1deb;return this['_injector']['createInstance'](Q,this[_0x24daff(0x370)],this['type'],this['_awaitingChangeset'],this[_0x24daff(0x23c)],this[_0x24daff(0x373)]);}['toggleOnline'](){return this;}[_0x1e1deb(0x359)](_0xb28e10){const _0x516a3f=_0x1e1deb;return this[_0x516a3f(0x432)]['createInstance'](Z,this[_0x516a3f(0x370)],this['type'],this['_awaitingChangeset'],this[_0x516a3f(0x23c)],this['_handler'],_0xb28e10);}};K=ce([f(0x7,_0x441fe2(_0x9c5d64)),f(0x8,_0x441fe2(_0xaeae41)),f(0x9,_0x441fe2(D)),f(0xa,_0x5f4df3),f(0xb,_0x9845f),f(0xc,_0x416533),f(0xd,_0x1e0f5c)],K);function Us(_0x579dec,_0x46bd78,_0x1ebb8c,_0x13829d,_0x12331f,_0x2a5cae){const _0x4e6c22=_0x1e1deb;return _0x13829d&&_0x12331f[_0x4e6c22(0x426)]?_0x579dec[_0x4e6c22(0x116)](Y,_0x46bd78,_0x1ebb8c,_0x13829d,_0x12331f,_0x2a5cae):_0x13829d?_0x579dec['createInstance'](q,_0x46bd78,_0x1ebb8c,_0x13829d,_0x2a5cae):_0x12331f[_0x4e6c22(0x426)]?_0x579dec[_0x4e6c22(0x116)](G,_0x46bd78,_0x1ebb8c,_0x12331f,_0x2a5cae):_0x579dec[_0x4e6c22(0x116)](ye,_0x46bd78,_0x1ebb8c,_0x2a5cae);}var ir=Object[_0x1e1deb(0x158)],nr=Object[_0x1e1deb(0x32c)],st=(_0x48e165,_0x416c0b,_0x51291f,_0x451ff2)=>{const _0x54fda0=_0x1e1deb;for(var _0x4ce40e=_0x451ff2>0x1?void 0x0:_0x451ff2?nr(_0x416c0b,_0x51291f):_0x416c0b,_0x163375=_0x48e165[_0x54fda0(0x426)]-0x1,_0x460e26;_0x163375>=0x0;_0x163375--)(_0x460e26=_0x48e165[_0x163375])&&(_0x4ce40e=(_0x451ff2?_0x460e26(_0x416c0b,_0x51291f,_0x4ce40e):_0x460e26(_0x4ce40e))||_0x4ce40e);return _0x451ff2&&_0x4ce40e&&ir(_0x416c0b,_0x51291f,_0x4ce40e),_0x4ce40e;},p=(_0xee83f7,_0x169274)=>(_0x1b5003,_0x5b464a)=>_0x169274(_0x1b5003,_0x5b464a,_0xee83f7);let Me=class extends _0x5b9cf1{constructor(_0x509b45,_0x291204,_0x3e294d){const _0x2c87b9=_0x1e1deb;super(),l(this,'_entities',new Map()),l(this,_0x2c87b9(0x325),new _0x365a49()),(this[_0x2c87b9(0x432)]=_0x509b45,this[_0x2c87b9(0x341)]=_0x291204,this['_univerInstanceService']=_0x3e294d,this[_0x2c87b9(0x37a)]());}['dispose'](){const _0x5390a0=_0x1e1deb;super['dispose'](),this['_entities'][_0x5390a0(0x23e)](_0x4f282c=>_0x4f282c[_0x5390a0(0x1de)]()),this['_entities'][_0x5390a0(0x124)]();}['getCollabEntity'](_0x27039e){const _0x2c9152=_0x1e1deb;var _0x2701f3;return(_0x2701f3=this[_0x2c9152(0x272)]['get'](_0x27039e))!=null?_0x2701f3:null;}[_0x1e1deb(0x1d3)](_0x4ffc56){const _0x1c00ee=_0x1e1deb,_0x32c325=this['getCollabEntity'](_0x4ffc56);return _0x32c325?_0x4f1794(_0x32c325):this[_0x1c00ee(0x325)][_0x1c00ee(0x119)](_0x190413(_0x490ced=>_0x490ced[_0x1c00ee(0x370)]===_0x4ffc56));}[_0x1e1deb(0x37a)](){const _0x5b0435=_0x1e1deb;this[_0x5b0435(0x145)][_0x5b0435(0x405)](_0x37298b[_0x5b0435(0x3d0)])['pipe'](_0x3f75b0(this[_0x5b0435(0x413)]),_0x12d8e6(0x10))['subscribe'](async _0x499dd4=>{const _0x1e1229=_0x5b0435,_0x43f234=_0x499dd4['getUnitId'](),_0x6da999=await this[_0x1e1229(0x38f)](_0x43f234,x[_0x1e1229(0x3d0)]);this[_0x1e1229(0x272)]['set'](_0x43f234,_0x6da999);}),this[_0x5b0435(0x145)]['getTypeOfUnitAdded$'](_0x37298b[_0x5b0435(0x1c7)])[_0x5b0435(0x119)](_0x3f75b0(this['dispose$']),_0x12d8e6(0x10))[_0x5b0435(0x119)](_0x190413(_0x5d5cb4=>!_0x5d5cb4['getUnitId']()[_0x5b0435(0x240)]('__')))[_0x5b0435(0x3e0)](async _0x1bb952=>{const _0x198b8e=_0x5b0435,_0x26e91c=_0x1bb952[_0x198b8e(0x3cf)](),_0x4669b3=await this['_startCollaboration'](_0x26e91c,x[_0x198b8e(0x1c7)]);this[_0x198b8e(0x272)][_0x198b8e(0x394)](_0x26e91c,_0x4669b3);}),_0x5726e7(this[_0x5b0435(0x145)]['getTypeOfUnitDisposed$'](_0x37298b['UNIVER_SHEET']),this[_0x5b0435(0x145)]['getTypeOfUnitDisposed$'](_0x37298b[_0x5b0435(0x1c7)]))[_0x5b0435(0x119)](_0x3f75b0(this['dispose$']))[_0x5b0435(0x3e0)](_0x4e3e8d=>{const _0xbd1a18=_0x5b0435,_0x28b29c=_0x4e3e8d[_0xbd1a18(0x3cf)](),_0x5dc702=this[_0xbd1a18(0x272)][_0xbd1a18(0x10a)](_0x28b29c);_0x5dc702&&(_0x5dc702[_0xbd1a18(0x1de)](),this[_0xbd1a18(0x272)]['delete'](_0x28b29c));});}async[_0x1e1deb(0x38f)](_0xd132ec,_0x485567){const _0x6a96be=_0x1e1deb,_0x259989=await this['_collabSessionService'][_0x6a96be(0x2c6)](_0xd132ec),_0xa5e8a1=this['_injector'][_0x6a96be(0x116)](this[_0x6a96be(0x1d8)](_0x485567),_0xd132ec,_0x485567,_0x259989);return await _0xa5e8a1[_0x6a96be(0x3db)](),this[_0x6a96be(0x325)]['next'](_0xa5e8a1),_0xa5e8a1;}[_0x1e1deb(0x1d8)](_0x2d58b0){const _0x4854b7=_0x1e1deb;switch(_0x2d58b0){case x['UNIVER_DOC']:return It;case x[_0x4854b7(0x3d0)]:return Et;default:throw new Error(_0x4854b7(0x2e5)+_0x2d58b0);}}};Me=st([_0x3e0133(_0x1781f1[_0x1e1deb(0x3bd)],Me),p(0x0,_0x441fe2(_0x9c5d64)),p(0x1,_0x441fe2(pe)),p(0x2,_0x4902a5)],Me);let Ze=class extends _0x5b9cf1{constructor(_0x36f389,_0x1129b4,_0x1599de,_0x363f83,_0x523d17,_0x1f1971,_0x51f01c,_0x477fcc,_0x4f09ad,_0x50ac2a,_0x31773c,_0xbb257e,_0x1354cc){const _0x4c8e67=_0x1e1deb;super(),l(this,_0x4c8e67(0x128),new _0x16d05d(null)),l(this,_0x4c8e67(0x229),this[_0x4c8e67(0x128)]['asObservable']()),l(this,_0x4c8e67(0x195)),l(this,_0x4c8e67(0x2d4),!0x1),l(this,'status$',this[_0x4c8e67(0x229)][_0x4c8e67(0x119)](_0x5ac769(_0x1b3212=>_0x1b3212?_0x1b3212[_0x4c8e67(0x356)]:P[_0x4c8e67(0x328)]),_0xec62cf(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0x4c8e67(0x1ae),[]),(this[_0x4c8e67(0x370)]=_0x36f389,this[_0x4c8e67(0x33f)]=_0x1129b4,this[_0x4c8e67(0x188)]=_0x1599de,this[_0x4c8e67(0x432)]=_0x363f83,this['_localCacheService']=_0x523d17,this['_compressMutationService']=_0x1f1971,this['_localeService']=_0x51f01c,this[_0x4c8e67(0x2d6)]=_0x477fcc,this[_0x4c8e67(0x12a)]=_0x4f09ad,this[_0x4c8e67(0x1fb)]=_0x50ac2a,this[_0x4c8e67(0x130)]=_0x31773c,this['_permissionService']=_0xbb257e,this[_0x4c8e67(0x3ea)]=_0x1354cc);}get['state'](){const _0x31db9a=_0x1e1deb;return this[_0x31db9a(0x195)];}async['init'](){const _0x31b9cd=_0x1e1deb;if(this['state'])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x31b9cd(0x37a)]();}[_0x1e1deb(0x1c9)](){return this['_collaborationPaused']=!0x0,_0x4259e5(()=>{const _0x5eec24=_0x44de;this[_0x5eec24(0x2d4)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x1e1deb(0x330)](_0x269e6b){const _0x4104dc=_0x1e1deb;this[_0x4104dc(0x195)]=_0x269e6b,this[_0x4104dc(0x128)]['next'](_0x269e6b);}async[_0x1e1deb(0x37a)](){const _0x548a85=_0x1e1deb;var _0x4ecf58;return this[_0x548a85(0x330)](await this[_0x548a85(0x1a1)]()),this[_0x548a85(0x3ea)]&&((_0x4ecf58=this[_0x548a85(0x3ea)])==null||_0x4ecf58[_0x548a85(0x2f9)](this[_0x548a85(0x370)]),this[_0x548a85(0x32e)](_0x4259e5(this['_singleActiveUnitService'][_0x548a85(0x2ac)](this[_0x548a85(0x370)])[_0x548a85(0x3e0)](_0x48c6b6=>{const _0x58fa6c=_0x548a85;this[_0x58fa6c(0x12a)]['debug'](_0x58fa6c(0x20f),'editing\x20status\x20changed\x20to',_0x48c6b6),_0x48c6b6===As[_0x58fa6c(0x288)]?(this['_messageService']['show']({'content':this['_localeService']['t'](_0x58fa6c(0x336)),'type':_0x3eac95[_0x58fa6c(0x15d)]}),this[_0x58fa6c(0x1eb)][_0x58fa6c(0x3ba)](new _0x230e97(this[_0x58fa6c(0x370)])['id'],!0x1)):this['_permissionService'][_0x58fa6c(0x3ba)](new _0x230e97(this[_0x58fa6c(0x370)])['id'],!0x0);})))),this[_0x548a85(0x32e)](_0x4259e5(this[_0x548a85(0x188)][_0x548a85(0x220)]['subscribe'](_0x1b3d89=>{const _0x2248e5=_0x548a85;_0x1b3d89===fe[_0x2248e5(0x3c2)]?this['_toggleOnline']():_0x1b3d89===fe[_0x2248e5(0x328)]&&this[_0x2248e5(0x437)]();}))),this[_0x548a85(0x32e)](_0x4259e5(this['_session'][_0x548a85(0x19f)][_0x548a85(0x3e0)](_0x2ac18d=>{const _0x50b20e=_0x548a85;try{switch(_0x2ac18d[_0x50b20e(0x2f8)]){case _0x1c415b[_0x50b20e(0x38c)]:{this[_0x50b20e(0x127)](_0x485874(_0x2ac18d[_0x50b20e(0x265)]));break;}case _0x1c415b[_0x50b20e(0x402)]:{this['_onRemoteACK'](_0x2ac18d[_0x50b20e(0x265)]);break;}case _0x1c415b[_0x50b20e(0x3fb)]:{this['_onRemoteRejected']();break;}case _0x1c415b[_0x50b20e(0x2ff)]:{this[_0x50b20e(0x214)](_0x2ac18d['data'][_0x50b20e(0x247)][_0x50b20e(0x230)](_0x12692b=>_0x485874(_0x12692b)));break;}case _0x1c415b[_0x50b20e(0x436)]:this[_0x50b20e(0x1a4)]({'isPermissionRej':!0x0});}}catch(_0x2a0fcf){throw console[_0x50b20e(0x1f8)]('Error\x20on\x20receiving\x20event',_0x2a0fcf),_0x2a0fcf;}}))),this[_0x548a85(0x195)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x1e1deb(0x3b1)](){const _0x4f0ddd=_0x1e1deb;if(this[_0x4f0ddd(0x322)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x4f0ddd(0x322)]=!0x0;}[_0x1e1deb(0x2f3)](_0x46d15e){const _0x9726d5=_0x1e1deb;this[_0x9726d5(0x3b1)](),this[_0x9726d5(0x330)](this[_0x9726d5(0x195)]['appendMutation'](_0x46d15e)),this[_0x9726d5(0x125)]();}[_0x1e1deb(0x127)](_0x5d5ebb){const _0x1e552c=_0x1e1deb;if(!(_0x5d5ebb[_0x1e552c(0x126)]<=this[_0x1e552c(0x2d6)]['getCurrentRevForDocument'](this['unitID']))){if(this['_collaborationPaused']){this[_0x1e552c(0x1ae)]['push'](_0x5d5ebb);return;}this[_0x1e552c(0x382)](_0x5d5ebb);}}[_0x1e1deb(0x406)](){const _0x30e053=_0x1e1deb;this[_0x30e053(0x1ae)][_0x30e053(0x23e)](_0x12b2bc=>this[_0x30e053(0x382)](_0x12b2bc)),this['_remoteChangesetQueue']=[];}[_0x1e1deb(0x382)](_0x225df3){const _0x53d40a=_0x1e1deb,_0x49695b=this[_0x53d40a(0x312)]['interceptor'][_0x53d40a(0x184)](this[_0x53d40a(0x312)][_0x53d40a(0x3c1)][_0x53d40a(0x3d2)]()[_0x53d40a(0x1b3)])(_0x225df3[_0x53d40a(0x357)],null)||_0x225df3[_0x53d40a(0x357)],_0x4d5023={..._0x225df3,'mutations':_0x49695b};this[_0x53d40a(0x3b1)](),this['_updateState'](this[_0x53d40a(0x195)][_0x53d40a(0x25b)](_0x4d5023)),this[_0x53d40a(0x125)]();}['_onRemoteACK'](_0x5250dd){const _0x33ae49=_0x1e1deb;this[_0x33ae49(0x3b1)](),this['_updateState'](this[_0x33ae49(0x195)][_0x33ae49(0x379)](_0x5250dd)),this[_0x33ae49(0x125)]();}['_onRemoteRejected'](_0x45fa86){const _0x343ebd=_0x1e1deb;this['_lockTransition'](),this[_0x343ebd(0x330)](this[_0x343ebd(0x195)]['onRemoteRej'](_0x45fa86)),this[_0x343ebd(0x125)]();}[_0x1e1deb(0x214)](_0x2fc339){const _0x115f22=_0x1e1deb;if(!(this[_0x115f22(0x195)]instanceof K))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x24b9bd=_0x2fc339['map'](_0x5ed02d=>{const _0x53dabe=_0x115f22,_0xf8fb97=this[_0x53dabe(0x312)]['interceptor'][_0x53dabe(0x184)](this[_0x53dabe(0x312)]['interceptor'][_0x53dabe(0x3d2)]()[_0x53dabe(0x1b3)])(_0x5ed02d[_0x53dabe(0x357)],null)||_0x5ed02d[_0x53dabe(0x357)];return{..._0x5ed02d,'mutations':_0xf8fb97};});this[_0x115f22(0x3b1)](),this[_0x115f22(0x330)](this[_0x115f22(0x195)]['onMissedChangesetFetched'](_0x24b9bd)),this[_0x115f22(0x125)]();}[_0x1e1deb(0x437)](){const _0x21c958=_0x1e1deb;this[_0x21c958(0x3b1)](),this['_updateState'](this[_0x21c958(0x195)]['toggleOffline']()),this[_0x21c958(0x125)]();}[_0x1e1deb(0x225)](){const _0x3a59a4=_0x1e1deb;this[_0x3a59a4(0x3b1)](),this[_0x3a59a4(0x330)](this[_0x3a59a4(0x195)][_0x3a59a4(0x13a)]()),this[_0x3a59a4(0x125)]();}async[_0x1e1deb(0x1a1)](){return new Promise(_0x53e659=>{const _0xfeb62a=_0x44de;this[_0xfeb62a(0x188)][_0xfeb62a(0x220)][_0xfeb62a(0x119)](_0x59ece1(0x1))[_0xfeb62a(0x3e0)](async _0x2fcf63=>{const _0x40c2cf=_0xfeb62a;_0x53e659(await this[_0x40c2cf(0x28f)](_0x2fcf63===fe[_0x40c2cf(0x3c2)]));});});}[_0x1e1deb(0x300)](){const _0x4e1227=_0x1e1deb,_0x2302c8=this[_0x4e1227(0x370)];return{'onStateChange':(_0x3192e2,_0x536819)=>{const _0x1769a4=_0x4e1227;if(_0x3192e2!==this[_0x1769a4(0x195)])throw new Error(_0x1769a4(0x1b0)+_0x3192e2[_0x1769a4(0x356)]+_0x1769a4(0x315)+_0x536819[_0x1769a4(0x356)]+'\x0aCurrent:\x20'+this[_0x1769a4(0x195)]['status']);this[_0x1769a4(0x330)](_0x536819);},'onSendChangeset':_0x47aedd=>{const _0x4dadb6=_0x4e1227,_0x47f3a6={'eventID':_0x1c415b['SUBMIT_CHANGESET'],'data':{'unitID':_0x47aedd['unitID'],'unitType':this[_0x4dadb6(0x33f)],'changeset':_0x47aedd,'memberID':this[_0x4dadb6(0x188)][_0x4dadb6(0x3be)]()}};this[_0x4dadb6(0x188)][_0x4dadb6(0x409)](_0x47f3a6,this[_0x4dadb6(0x370)]);},'onMissingChangesets':({from:_0x11028d,to:_0x201bec})=>{const _0x344473=_0x4e1227;this[_0x344473(0x12a)]['debug'](_0x344473(0x20f),_0x344473(0x415)+_0x11028d+'\x20to\x20'+_0x201bec);const _0x24850b={'eventID':_0x1c415b[_0x344473(0x15e)],'data':{'unitID':_0x2302c8,'unitType':this[_0x344473(0x33f)],'from':_0x11028d,'to':_0x201bec}};this['_session'][_0x344473(0x409)](_0x24850b,this[_0x344473(0x370)]);}};}async[_0x1e1deb(0x28f)](_0x34fbea){const _0x2e6196=_0x1e1deb;var _0x2418b8,_0x1317bc;const _0x5d3816=await this[_0x2e6196(0x1f2)][_0x2e6196(0x329)](this[_0x2e6196(0x370)]),_0x46e058=(_0x2418b8=_0x5d3816==null?void 0x0:_0x5d3816['mutations'])!=null?_0x2418b8:[],_0x2fc0a4=(_0x1317bc=_0x5d3816==null?void 0x0:_0x5d3816[_0x2e6196(0x22e)])!=null?_0x1317bc:null,_0x629462=this[_0x2e6196(0x370)];try{this[_0x2e6196(0x16e)](_0x2fc0a4,_0x46e058);}catch(_0x1a1243){this[_0x2e6196(0x12a)][_0x2e6196(0x1f8)](_0x1a1243);}const _0x2dc677=this[_0x2e6196(0x300)]();if(_0x34fbea){const _0x3ad1f0=Us(this[_0x2e6196(0x432)],_0x629462,this[_0x2e6196(0x33f)],_0x2fc0a4,_0x46e058,_0x2dc677);return _0x3ad1f0 instanceof G?_0x3ad1f0[_0x2e6196(0x198)]():(_0x3ad1f0 instanceof Y||_0x3ad1f0 instanceof q)&&_0x3ad1f0['resend'](),_0x3ad1f0;}return this['_injector'][_0x2e6196(0x116)](Q,_0x629462,this['_type'],_0x2fc0a4,_0x46e058,_0x2dc677);}[_0x1e1deb(0x16e)](_0x346910,_0xce41be){const _0x44e2c8=_0x1e1deb;var _0x6c8128,_0x20cec4;const _0x44723e=this['_compressMutationService'][_0x44e2c8(0x3c1)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x44e2c8(0x3c1)]['getInterceptPoints']()[_0x44e2c8(0x1b3)]);(_0x6c8128=_0x44723e((_0x346910==null?void 0x0:_0x346910[_0x44e2c8(0x357)])||[],null))==null||_0x6c8128[_0x44e2c8(0x23e)](_0x13267d=>this[_0x44e2c8(0x1fb)]['executeCommand'](_0x13267d['id'],_0x13267d[_0x44e2c8(0x42b)])),(_0x20cec4=_0x44723e(_0xce41be||[],null))==null||_0x20cec4[_0x44e2c8(0x23e)](_0x35af36=>this[_0x44e2c8(0x1fb)]['executeCommand'](_0x35af36['id'],_0x35af36[_0x44e2c8(0x42b)]));}};Ze=st([p(0x3,_0x441fe2(_0x9c5d64)),p(0x4,_0x441fe2(D)),p(0x5,_0x441fe2(_0x4ef08c)),p(0x6,_0x441fe2(_0x2cfe85)),p(0x7,_0x441fe2(_0xaeae41)),p(0x8,_0x5f4df3),p(0x9,_0x9845f),p(0xa,_0x49507b),p(0xb,_0x3660f2),p(0xc,_0x16cd37(tt))],Ze);let It=class extends Ze{constructor(_0x359404,_0x56e96b,_0x30c039,_0x26c5bb,_0x1c93d5,_0x118725,_0x579c05,_0x236d9a,_0x43f6cf,_0x2c7ec4,_0x196a6d,_0x5b14db,_0x187016,_0x35b023,_0x1a2ce6,_0x529075,_0x3701ed){const _0x51004e=_0x1e1deb;super(_0x359404,_0x56e96b,_0x30c039,_0x26c5bb,_0x1c93d5,_0x118725,_0x579c05,_0x236d9a,_0x187016,_0x35b023,_0x1a2ce6,_0x529075,_0x3701ed),this[_0x51004e(0x370)]=_0x359404,this['type']=_0x56e96b,this['session']=_0x30c039,this['_docStateChangeManagerService']=_0x43f6cf,this[_0x51004e(0x185)]=_0x2c7ec4,this[_0x51004e(0x29e)]=_0x196a6d,this['_docSyncEditingCollabCursorService']=_0x5b14db;}[_0x1e1deb(0x300)](){const _0x2f6400=_0x1e1deb,_0x4d6a89=super[_0x2f6400(0x300)]();return _0x4d6a89[_0x2f6400(0x2d2)]=_0x520a34=>this[_0x2f6400(0x185)][_0x2f6400(0x218)](_0x520a34),_0x4d6a89[_0x2f6400(0xfe)]=_0x13146d=>this[_0x2f6400(0x29e)][_0x2f6400(0x137)](_0x13146d),_0x4d6a89[_0x2f6400(0x3ff)]=_0x172914=>this[_0x2f6400(0x29c)][_0x2f6400(0x40e)](_0x172914),_0x4d6a89[_0x2f6400(0x1c5)]=_0xa4dfa7=>this[_0x2f6400(0x185)][_0x2f6400(0x3f9)](_0xa4dfa7),_0x4d6a89;}async[_0x1e1deb(0x37a)](){const _0x228b58=_0x1e1deb,_0x1be8b0=await super[_0x228b58(0x37a)]();return this[_0x228b58(0x32e)](this[_0x228b58(0x1fb)][_0x228b58(0x250)]((_0x53e24f,_0x24a276)=>{const _0x3fbb43=_0x228b58;if(_0x53e24f[_0x3fbb43(0x2cc)]!==_0x5cd9c4[_0x3fbb43(0x173)]||_0x24a276!=null&&_0x24a276[_0x3fbb43(0x292)]||_0x24a276!=null&&_0x24a276[_0x3fbb43(0x270)])return;const _0x2359a3=_0x53e24f[_0x3fbb43(0x42b)];if((_0x2359a3==null?void 0x0:_0x2359a3['unitId'])!==this[_0x3fbb43(0x370)])return;let _0x343ffe=_0x53e24f;if(_0x343ffe['id']===_0x54abea['id']){const _0x3fd6d3=_0x343ffe[_0x3fbb43(0x42b)];_0x343ffe={'id':_0x54abea['id'],'type':_0x5cd9c4[_0x3fbb43(0x173)],'params':{'unitId':_0x3fd6d3[_0x3fbb43(0x439)],'actions':_0x3fd6d3['actions'],'textRanges':null}};}const _0x1cbdf3=this[_0x3fbb43(0x312)][_0x3fbb43(0x3c1)]['fetchThroughInterceptors'](this[_0x3fbb43(0x312)][_0x3fbb43(0x3c1)][_0x3fbb43(0x3d2)]()[_0x3fbb43(0x344)])([_0x343ffe],null)||[_0x343ffe];this[_0x3fbb43(0x2f3)](_0x1cbdf3[0x0]);})),_0x1be8b0;}};It=st([p(0x3,_0x441fe2(_0x9c5d64)),p(0x4,_0x441fe2(D)),p(0x5,_0x441fe2(_0x4ef08c)),p(0x6,_0x441fe2(_0x2cfe85)),p(0x7,_0x441fe2(_0xaeae41)),p(0x8,_0x441fe2(_0x30c46a)),p(0x9,_0x441fe2(Je)),p(0xa,_0x441fe2(ze)),p(0xb,_0x441fe2(jt)),p(0xc,_0x5f4df3),p(0xd,_0x9845f),p(0xe,_0x49507b),p(0xf,_0x3660f2),p(0x10,_0x16cd37(tt))],It);let Et=class extends Ze{constructor(_0xa19b1c,_0x522f30,_0x21b901,_0x7db238,_0x343306,_0x241c5f,_0x3a4710,_0x5743a6,_0x3e4f07,_0x4e3047,_0x2a8dcd,_0x5a5792,_0x2ea1a3,_0x4f87c3){const _0x2258a9=_0x1e1deb;super(_0xa19b1c,_0x522f30,_0x21b901,_0x7db238,_0x343306,_0x241c5f,_0x3a4710,_0x5743a6,_0x4e3047,_0x2a8dcd,_0x5a5792,_0x2ea1a3,_0x4f87c3),this[_0x2258a9(0x370)]=_0xa19b1c,this['type']=_0x522f30,this[_0x2258a9(0x11e)]=_0x21b901,this[_0x2258a9(0x174)]=_0x3e4f07;}[_0x1e1deb(0x300)](){const _0x310f9d=_0x1e1deb,_0x2ef298=super[_0x310f9d(0x300)]();return _0x2ef298[_0x310f9d(0xfe)]=_0x418d3f=>this[_0x310f9d(0x174)]['transformSelections'](_0x418d3f),_0x2ef298;}async['_init'](){const _0x40e195=_0x1e1deb,_0x120c0f=await super['_init']();return this[_0x40e195(0x32e)](this[_0x40e195(0x1fb)][_0x40e195(0x250)]((_0x1cb520,_0x3785e0)=>{const _0x39b850=_0x40e195;if(_0x1cb520[_0x39b850(0x2cc)]!==_0x5cd9c4[_0x39b850(0x173)]||_0x3785e0!=null&&_0x3785e0['fromCollab']||_0x3785e0!=null&&_0x3785e0[_0x39b850(0x270)])return;const _0x323ac4=_0x1cb520[_0x39b850(0x42b)];if((_0x323ac4==null?void 0x0:_0x323ac4[_0x39b850(0x439)])!==this[_0x39b850(0x370)])return;const _0x37ba9e=_0x1cb520,_0x48510b=this[_0x39b850(0x312)][_0x39b850(0x3c1)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor']['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x37ba9e],null)||[_0x37ba9e];this[_0x39b850(0x2f3)](_0x48510b[0x0]);})),_0x120c0f;}};Et=st([p(0x3,_0x441fe2(_0x9c5d64)),p(0x4,_0x441fe2(D)),p(0x5,_0x441fe2(_0x4ef08c)),p(0x6,_0x441fe2(_0x2cfe85)),p(0x7,_0x441fe2(_0xaeae41)),p(0x8,_0x441fe2(qe)),p(0x9,_0x5f4df3),p(0xa,_0x9845f),p(0xb,_0x49507b),p(0xc,_0x3660f2),p(0xd,_0x16cd37(tt))],Et);const os=[_0x1e1deb(0x38b),'jiqing500',_0x1e1deb(0x34a),_0x1e1deb(0x369),_0x1e1deb(0x275),_0x1e1deb(0x2c4)];class xt extends _0xc94eea{constructor(){const _0x2e59f0=_0x1e1deb;super(...arguments),l(this,_0x2e59f0(0x36b),new Map()),l(this,_0x2e59f0(0x28a),0x0);}[_0x1e1deb(0x3bf)](_0x470b83){const _0x25a40e=_0x1e1deb;if(this[_0x25a40e(0x36b)]['has'](_0x470b83))return this[_0x25a40e(0x36b)][_0x25a40e(0x10a)](_0x470b83);const _0x5cb892=os[this[_0x25a40e(0x28a)]];return this[_0x25a40e(0x28a)]=(this[_0x25a40e(0x28a)]+0x1)%os[_0x25a40e(0x426)],this[_0x25a40e(0x36b)]['set'](_0x470b83,_0x5cb892),_0x5cb892;}}var rr=Object['defineProperty'],or=Object[_0x1e1deb(0x32c)],ar=(_0x5c0c52,_0x1c47c7,_0x203b27,_0x438e61)=>{const _0x1e5e13=_0x1e1deb;for(var _0x2e701a=_0x438e61>0x1?void 0x0:_0x438e61?or(_0x1c47c7,_0x203b27):_0x1c47c7,_0x20d5a3=_0x5c0c52[_0x1e5e13(0x426)]-0x1,_0x577512;_0x20d5a3>=0x0;_0x20d5a3--)(_0x577512=_0x5c0c52[_0x20d5a3])&&(_0x2e701a=(_0x438e61?_0x577512(_0x1c47c7,_0x203b27,_0x2e701a):_0x577512(_0x2e701a))||_0x2e701a);return _0x438e61&&_0x2e701a&&rr(_0x1c47c7,_0x203b27,_0x2e701a),_0x2e701a;},_e=(_0x54e9fe,_0x19c3c3)=>(_0x3886e7,_0x27df62)=>_0x19c3c3(_0x3886e7,_0x27df62,_0x54e9fe);const cr=0x12c,hr=0x64,lr=()=>{let _0x4950f8=[],_0x30a567=!0x1;return _0x5c54f6=>{const _0x4cd4d5=_0x44de;_0x4950f8[_0x4cd4d5(0x39d)](_0x5c54f6),_0x30a567||(_0x30a567=!0x0,setTimeout(()=>{const _0x165b1b=_0x4cd4d5;_0x4950f8[_0x165b1b(0x23e)](_0x4082dc=>_0x4082dc()),_0x4950f8=[],_0x30a567=!0x1;}));};};let Ct=class extends _0x5b9cf1{constructor(_0x4e9f03,_0x511d86,_0x1b7a28,_0x2032a7,_0x3d55da,_0x1ab1f8,_0x18bdae,_0x9d287){const _0x557274=_0x1e1deb;super(),l(this,'_online',!0x1),l(this,_0x557274(0x37a),!0x1),l(this,_0x557274(0x42f),new _0x16d05d(new Map())),l(this,_0x557274(0x430),this[_0x557274(0x42f)][_0x557274(0x14e)]()),l(this,_0x557274(0x1cd),new _0x16d05d([])),l(this,_0x557274(0x421),this[_0x557274(0x1cd)][_0x557274(0x119)](_0x380776(cr))),l(this,_0x557274(0x22d),_0x21f8bc((_0x5cf6c9,_0x1f1997)=>{const _0x5b1bc8=_0x557274,_0x577a47={'eventID':_0x1c415b[_0x5b1bc8(0x21d)],'data':{'unitID':this[_0x5b1bc8(0x370)],'memberID':this['_session'][_0x5b1bc8(0x3be)](),'selection':_0x419817(_0x5cf6c9,_0x1f1997['range'])}};this[_0x5b1bc8(0x188)][_0x5b1bc8(0x409)](_0x577a47,this[_0x5b1bc8(0x370)]);},hr)),(this['unitID']=_0x4e9f03,this[_0x557274(0x188)]=_0x511d86,this[_0x557274(0x432)]=_0x1b7a28,this[_0x557274(0x231)]=_0x2032a7,this[_0x557274(0x13e)]=_0x3d55da,this['_univerInstanceService']=_0x1ab1f8,this['_commandService']=_0x18bdae,this['_refRangeService']=_0x9d287);}get[_0x1e1deb(0x30d)](){const _0x2e23c9=_0x1e1deb;return this['_cursorInfo$'][_0x2e23c9(0x107)]();}get[_0x1e1deb(0x25d)](){const _0x4a8f9b=_0x1e1deb;return this[_0x4a8f9b(0x1cd)][_0x4a8f9b(0x107)]();}[_0x1e1deb(0x1de)](){const _0x3913b5=_0x1e1deb;super[_0x3913b5(0x1de)](),this[_0x3913b5(0x42f)]['next'](new Map()),this['_cursorInfo$']['complete'](),this[_0x3913b5(0x1cd)][_0x3913b5(0x3cd)]([]),this[_0x3913b5(0x1cd)][_0x3913b5(0x433)]();}['init'](){const _0x54d00e=_0x1e1deb;this[_0x54d00e(0x37a)]||(this['_init']=!0x0,this[_0x54d00e(0x188)][_0x54d00e(0x220)][_0x54d00e(0x119)](_0x3f75b0(this[_0x54d00e(0x413)]))[_0x54d00e(0x3e0)](_0x50e4f9=>{const _0x40111a=_0x54d00e;_0x50e4f9===fe[_0x40111a(0x3c2)]?this[_0x40111a(0x225)]():this[_0x40111a(0x437)]();}),this[_0x54d00e(0x188)][_0x54d00e(0x19f)]['pipe'](_0x3f75b0(this[_0x54d00e(0x413)]))[_0x54d00e(0x3e0)](_0x458fc1=>{const _0x57bc0b=_0x54d00e,_0xf77f0c=_0x458fc1[_0x57bc0b(0x2f8)];_0xf77f0c===_0x1c415b[_0x57bc0b(0x21d)]&&this[_0x57bc0b(0x352)](_0x458fc1),_0xf77f0c===_0x1c415b[_0x57bc0b(0x25e)]&&this[_0x57bc0b(0x2a2)](_0x458fc1);}),this[_0x54d00e(0x2e7)](),this[_0x54d00e(0x32e)](this[_0x54d00e(0x1fb)][_0x54d00e(0x250)](_0x26c1d9=>{const _0x51605b=_0x54d00e;if(this[_0x51605b(0x132)]&&_0x26c1d9['id']===_0x37d621['id']&&_0x26c1d9[_0x51605b(0x42b)][_0x51605b(0x439)]===this[_0x51605b(0x370)]){const _0x3da80b=_0x26c1d9[_0x51605b(0x42b)];this['_updateLocalCursor'](_0x3da80b[_0x51605b(0x3b0)],_0x3da80b['selections'][0x0]);}})));}[_0x1e1deb(0x352)](_0x38b9f7){const _0x2fe3b3=_0x1e1deb;var _0x4685b9,_0x42f28a;const {memberID:_0x5c9b22,selection:_0x5c34b2}=_0x38b9f7['data'],{sheetName:_0x1cd938,range:_0x22683a}=_0x370f5d(_0x5c34b2),_0x45ac40={'name':(_0x42f28a=(_0x4685b9=this[_0x2fe3b3(0x13e)]['getMember'](this[_0x2fe3b3(0x370)],_0x5c9b22))==null?void 0x0:_0x4685b9[_0x2fe3b3(0x10e)])!=null?_0x42f28a:_0x2fe3b3(0x28e),'range':this[_0x2fe3b3(0x1b8)](_0x1cd938,_0x22683a),'sheetID':_0x1cd938,'color':this[_0x2fe3b3(0x231)][_0x2fe3b3(0x3bf)](_0x5c9b22),'selection':_0x5c34b2},_0x716212=this[_0x2fe3b3(0x30d)];_0x716212[_0x2fe3b3(0x394)](_0x5c9b22,_0x45ac40),this[_0x2fe3b3(0x42f)]['next'](_0x716212);}[_0x1e1deb(0x2a2)](_0x14528c){const _0x3e7c05=_0x1e1deb,{memberID:_0xa3bdd9}=_0x14528c[_0x3e7c05(0x265)],_0x12f015=this['cursorInfo'];_0x12f015['delete'](_0xa3bdd9),this[_0x3e7c05(0x42f)][_0x3e7c05(0x3cd)](_0x12f015);}[_0x1e1deb(0x1b8)](_0x1f2a52,_0x3469ff){const _0x49c2f9=_0x1e1deb;var _0xe1d6ca,_0x75541b;const _0x4e7748=(_0x75541b=(_0xe1d6ca=this[_0x49c2f9(0x145)][_0x49c2f9(0x351)](this[_0x49c2f9(0x370)]))==null?void 0x0:_0xe1d6ca[_0x49c2f9(0x2ee)](_0x1f2a52))==null?void 0x0:_0x75541b['getMergeData']();return(_0x4e7748==null?void 0x0:_0x4e7748['find'](_0x211ddb=>_0xf02aa9[_0x49c2f9(0x1cf)](_0x211ddb,_0x3469ff)))||_0x3469ff;}['_onRefRangeChange'](){const _0x3a6dc4=_0x1e1deb,_0xe3fdf9=new _0x5b86e3(),_0x10d318=lr(),_0x4586b8=()=>{const _0x917949=_0x44de;_0xe3fdf9[_0x917949(0x1de)]();const _0xa7555a=(_0x4886af,_0x9d81cb,_0x3926e9,_0x445848)=>{const _0x5f323c=_0x917949;let _0x137562=[];switch(_0x4886af['id']){case _0x5d94fe[_0x5f323c(0x419)]:{_0x137562=_0x5f1e8b(_0x4886af,_0x445848);break;}case _0x5d94fe['DeleteRangeMoveUpCommandId']:{_0x137562=_0x31ef26(_0x4886af,_0x445848);break;}case _0x5d94fe[_0x5f323c(0x3f3)]:{_0x137562=_0x3fcda2(_0x4886af,_0x445848);break;}case _0x5d94fe[_0x5f323c(0x316)]:{_0x137562=_0x4c8313(_0x4886af,_0x445848);break;}case _0x5d94fe['InsertRangeMoveRightCommandId']:{_0x137562=_0x5abfa3(_0x4886af,_0x445848);break;}case _0x5d94fe['InsertRowCommandId']:{_0x137562=_0x4865ab(_0x4886af,_0x445848);break;}case _0x5d94fe[_0x5f323c(0x3c9)]:{_0x137562=_0x158655(_0x4886af,_0x445848);break;}case _0x5d94fe[_0x5f323c(0x404)]:{_0x137562=_0x1cf9bc(_0x4886af,_0x445848);break;}case _0x5d94fe[_0x5f323c(0x26c)]:{_0x137562=_0x361c3a(_0x4886af,_0x445848);break;}}const _0x57be6a=_0x1df086(_0x137562,_0x445848),_0x38727c=this[_0x5f323c(0x30d)]['get'](_0x9d81cb);if(_0x38727c&&_0x57be6a){const _0x61ee33={..._0x38727c,'range':_0x57be6a};this['cursorInfo'][_0x5f323c(0x394)](_0x9d81cb,_0x61ee33),_0x10d318(()=>{const _0x1c8741=_0x5f323c,_0x269d9c=this[_0x1c8741(0x2b8)][_0x1c8741(0x1d6)](_0x57be6a,_0x3411b1=>(_0x269d9c['dispose'](),_0xa7555a(_0x3411b1,_0x9d81cb,_0x3926e9,_0x57be6a)));_0xe3fdf9['add'](_0x269d9c);});}return{'redos':[],'undos':[]};};this[_0x917949(0x30d)][_0x917949(0x23e)]((_0x4d88ef,_0x26d583)=>{const _0x377cb4=_0x917949,{range:_0x45913e,sheetID:_0x10fc86}=_0x4d88ef,_0x2a4792=this[_0x377cb4(0x2b8)]['registerRefRange'](_0x45913e,_0x429f4d=>(_0x2a4792[_0x377cb4(0x1de)](),_0xa7555a(_0x429f4d,_0x26d583,_0x10fc86,_0x45913e)));_0xe3fdf9[_0x377cb4(0x11a)](_0x2a4792);});};this['disposeWithMe'](_0x4259e5(this[_0x3a6dc4(0x42f)][_0x3a6dc4(0x3e0)](()=>{_0x4586b8();})));}[_0x1e1deb(0x225)](){const _0x14af37=_0x1e1deb;var _0x4331d6,_0x2c27ff;if(this['_online']=!0x0,((_0x4331d6=this['_univerInstanceService'][_0x14af37(0x228)]())==null?void 0x0:_0x4331d6['getUnitId']())!==this[_0x14af37(0x370)])return;const _0x29ff7e=(_0x2c27ff=this['_injector'][_0x14af37(0x10a)](_0x402922)[_0x14af37(0x310)]())==null?void 0x0:_0x2c27ff[0x0],_0x177507=this[_0x14af37(0x145)]['getCurrentUnitForType'](_0x37298b[_0x14af37(0x3d0)])['getActiveSheet']();_0x29ff7e&&_0x177507&&this['_updateLocalCursor'](_0x177507[_0x14af37(0x2c2)](),_0x29ff7e);}[_0x1e1deb(0x437)](){const _0x4afecc=_0x1e1deb;this[_0x4afecc(0x132)]=!0x1;}};Ct=ar([_e(0x2,_0x441fe2(_0x9c5d64)),_e(0x3,_0x441fe2(xt)),_e(0x4,_0x441fe2(ne)),_e(0x5,_0x4902a5),_e(0x6,_0x9845f),_e(0x7,_0x441fe2(_0x298890))],Ct);var _r=Object[_0x1e1deb(0x158)],ur=Object[_0x1e1deb(0x32c)],dr=(_0x2e92fb,_0x554deb,_0xcbae60,_0x5611b6)=>{const _0x464353=_0x1e1deb;for(var _0x1d7cd3=_0x5611b6>0x1?void 0x0:_0x5611b6?ur(_0x554deb,_0xcbae60):_0x554deb,_0x48a9b2=_0x2e92fb[_0x464353(0x426)]-0x1,_0x5ea5c1;_0x48a9b2>=0x0;_0x48a9b2--)(_0x5ea5c1=_0x2e92fb[_0x48a9b2])&&(_0x1d7cd3=(_0x5611b6?_0x5ea5c1(_0x554deb,_0xcbae60,_0x1d7cd3):_0x5ea5c1(_0x1d7cd3))||_0x1d7cd3);return _0x5611b6&&_0x1d7cd3&&_r(_0x554deb,_0xcbae60,_0x1d7cd3),_0x1d7cd3;},te=(_0x47ca82,_0x6dbd99)=>(_0xe49b80,_0x1ee1bd)=>_0x6dbd99(_0xe49b80,_0x1ee1bd,_0x47ca82);const mr=0x12c,fr=0x64;let bt=class extends _0x5b9cf1{constructor(_0xbcce6d,_0x202292,_0x4b679,_0x47b55d,_0x1f1b4d,_0x37ec6f,_0x23652a,_0x52f160,_0x279095){const _0x179e4c=_0x1e1deb;super(),l(this,_0x179e4c(0x132),!0x1),l(this,_0x179e4c(0x37a),!0x1),l(this,_0x179e4c(0x42f),new _0x16d05d(new Map())),l(this,_0x179e4c(0x430),this[_0x179e4c(0x42f)][_0x179e4c(0x14e)]()),l(this,'_roomMembers$',new _0x16d05d([])),l(this,_0x179e4c(0x421),this['_roomMembers$'][_0x179e4c(0x119)](_0x380776(mr))),l(this,'_updateLocalCursor',_0x21f8bc(_0xe2dfd4=>{const _0x4d4f7d=_0x179e4c,_0x4ec18c={'eventID':_0x1c415b[_0x4d4f7d(0x21d)],'data':{'unitID':this[_0x4d4f7d(0x370)],'memberID':this[_0x4d4f7d(0x188)][_0x4d4f7d(0x3be)](),'selection':ys(_0xe2dfd4)}};this[_0x4d4f7d(0x188)][_0x4d4f7d(0x409)](_0x4ec18c,this[_0x4d4f7d(0x370)]);},fr)),(this[_0x179e4c(0x370)]=_0xbcce6d,this['_session']=_0x202292,this[_0x179e4c(0x432)]=_0x4b679,this[_0x179e4c(0x231)]=_0x47b55d,this['_memberService']=_0x1f1b4d,this[_0x179e4c(0x2a4)]=_0x37ec6f,this[_0x179e4c(0x258)]=_0x23652a,this[_0x179e4c(0x145)]=_0x52f160,this[_0x179e4c(0x1fb)]=_0x279095);}get[_0x1e1deb(0x30d)](){const _0x427cc7=_0x1e1deb;return this['_cursorInfo$'][_0x427cc7(0x107)]();}get[_0x1e1deb(0x25d)](){const _0x27a25f=_0x1e1deb;return this['_roomMembers$'][_0x27a25f(0x107)]();}[_0x1e1deb(0x1de)](){const _0x406897=_0x1e1deb;super[_0x406897(0x1de)](),this[_0x406897(0x42f)][_0x406897(0x3cd)](new Map()),this[_0x406897(0x42f)][_0x406897(0x433)](),this[_0x406897(0x1cd)][_0x406897(0x3cd)]([]),this[_0x406897(0x1cd)]['complete']();}[_0x1e1deb(0x3db)](){const _0x583c2b=_0x1e1deb;this[_0x583c2b(0x37a)]||(this['_init']=!0x0,this['_session'][_0x583c2b(0x220)][_0x583c2b(0x119)](_0x3f75b0(this[_0x583c2b(0x413)]))[_0x583c2b(0x3e0)](_0x28f46a=>{const _0x582311=_0x583c2b;_0x28f46a===fe['ONLINE']?this[_0x582311(0x225)]():this['_toggleOffline']();}),this[_0x583c2b(0x188)][_0x583c2b(0x19f)][_0x583c2b(0x119)](_0x3f75b0(this[_0x583c2b(0x413)]))[_0x583c2b(0x3e0)](_0x376baa=>{const _0x285be2=_0x583c2b,_0x12639f=_0x376baa['eventID'];_0x12639f===_0x1c415b['UPDATE_CURSOR']&&this[_0x285be2(0x352)](_0x376baa),_0x12639f===_0x1c415b[_0x285be2(0x25e)]&&this[_0x285be2(0x2a2)](_0x376baa);}),this['disposeWithMe'](this['_commandService'][_0x583c2b(0x250)](_0x2f0425=>{const _0x450240=_0x583c2b,_0x1a1e9c=_0x2f0425[_0x450240(0x42b)];_0x1a1e9c!=null&&this[_0x450240(0x132)]&&_0x2f0425['id']===_0x1ed2cb['id']&&_0x1a1e9c[_0x450240(0x439)]===this[_0x450240(0x370)]&&_0x1a1e9c[_0x450240(0x348)]===!0x1&&this[_0x450240(0x22d)](_0x1a1e9c[_0x450240(0x345)]);})),this['_syncEditingCollabCursorService'][_0x583c2b(0x138)][_0x583c2b(0x119)](_0x3f75b0(this[_0x583c2b(0x413)]))[_0x583c2b(0x3e0)](_0x3c56ea=>{const _0x5a9b06=_0x583c2b;if((_0x3c56ea==null?void 0x0:_0x3c56ea[_0x5a9b06(0x370)])!==this['unitID'])return;const _0x1ceb45={'eventID':_0x1c415b['UPDATE_CURSOR'],'data':_0x3c56ea};this[_0x5a9b06(0x352)](_0x1ceb45);}),this['disposeWithMe'](this[_0x583c2b(0x1fb)][_0x583c2b(0x250)](_0x172710=>{const _0x5c2352=_0x583c2b;if(_0x172710[_0x5c2352(0x42b)]==null)return;const _0x3c6752=_0x172710[_0x5c2352(0x42b)];if(_0x172710['id']!==_0x54abea['id']||_0x3c6752[_0x5c2352(0x439)]!==this[_0x5c2352(0x370)])return;const _0x2eee03={'id':_0x5c2352(0x412),'params':_0x3c6752},_0x505cef=this[_0x5c2352(0x30d)];for(const [_0x44c87c,_0xcc40dd]of _0x505cef){const _0x5866b8={'id':_0x5c2352(0x412),'params':{'unitId':this[_0x5c2352(0x370)],'actions':null,'textRanges':_0xcc40dd[_0x5c2352(0x345)]}},_0x292b95=this[_0x5c2352(0x258)][_0x5c2352(0x2d3)](_0x2eee03,_0x5866b8,!0x1);if(_0x1d42ec(_0x292b95))throw _0x292b95[_0x5c2352(0x1f8)];_0x505cef[_0x5c2352(0x394)](_0x44c87c,{..._0xcc40dd,'ranges':_0x292b95[_0x5c2352(0x2fa)][_0x5c2352(0x42b)][_0x5c2352(0x203)]});}queueMicrotask(()=>{const _0x5a7bd1=_0x5c2352;this[_0x5a7bd1(0x42f)]['next'](_0x505cef);});})));}[_0x1e1deb(0x352)](_0x5c8291){const _0x367221=_0x1e1deb;var _0x19a125,_0x4a45d;const {memberID:_0x4ae349,selection:_0x5a8a5c}=_0x5c8291['data'],_0x44d5b8=Kn(_0x5a8a5c),_0x3ed819=(_0x4a45d=(_0x19a125=this['_memberService'][_0x367221(0x3a0)](this[_0x367221(0x370)],_0x4ae349))==null?void 0x0:_0x19a125[_0x367221(0x10e)])!=null?_0x4a45d:_0x367221(0x28e),_0x4b500a={'color':this[_0x367221(0x231)][_0x367221(0x3bf)](_0x4ae349),'name':_0x3ed819,'ranges':_0x44d5b8},_0x26b593=this[_0x367221(0x30d)];_0x26b593['set'](_0x4ae349,_0x4b500a),this[_0x367221(0x42f)][_0x367221(0x3cd)](_0x26b593);}[_0x1e1deb(0x2a2)](_0x3a0293){const _0x1d1916=_0x1e1deb,{memberID:_0x129ef2}=_0x3a0293[_0x1d1916(0x265)],_0x48d62d=this[_0x1d1916(0x30d)];_0x48d62d[_0x1d1916(0x36f)](_0x129ef2),this[_0x1d1916(0x42f)][_0x1d1916(0x3cd)](_0x48d62d);}[_0x1e1deb(0x225)](){const _0x18f2e0=_0x1e1deb;var _0x21820c;if(this['_online']=!0x0,((_0x21820c=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x21820c[_0x18f2e0(0x3cf)]())!==this['unitID'])return;const _0xced87=this['_injector']['get'](_0x490704)[_0x18f2e0(0x31f)](),_0x3c36b0=_0xced87==null?void 0x0:_0xced87['map'](_0x14d063);Array[_0x18f2e0(0x117)](_0x3c36b0)&&_0x3c36b0['length']>0x0&&this[_0x18f2e0(0x22d)](_0x3c36b0);}[_0x1e1deb(0x437)](){const _0x52823f=_0x1e1deb;this[_0x52823f(0x132)]=!0x1;}};bt=dr([te(0x2,_0x441fe2(_0x9c5d64)),te(0x3,_0x441fe2(xt)),te(0x4,_0x441fe2(ne)),te(0x5,_0x441fe2(jt)),te(0x6,_0x1e0f5c),te(0x7,_0x4902a5),te(0x8,_0x9845f)],bt);var gr=Object[_0x1e1deb(0x158)],Sr=Object[_0x1e1deb(0x32c)],pr=(_0x2fd3c3,_0x31cc47,_0x130d55,_0x5d098d)=>{const _0x9b0a8b=_0x1e1deb;for(var _0x2f9bb8=_0x5d098d>0x1?void 0x0:_0x5d098d?Sr(_0x31cc47,_0x130d55):_0x31cc47,_0x11fc9a=_0x2fd3c3[_0x9b0a8b(0x426)]-0x1,_0x1f5615;_0x11fc9a>=0x0;_0x11fc9a--)(_0x1f5615=_0x2fd3c3[_0x11fc9a])&&(_0x2f9bb8=(_0x5d098d?_0x1f5615(_0x31cc47,_0x130d55,_0x2f9bb8):_0x1f5615(_0x2f9bb8))||_0x2f9bb8);return _0x5d098d&&_0x2f9bb8&&gr(_0x31cc47,_0x130d55,_0x2f9bb8),_0x2f9bb8;},ct=(_0x50b993,_0xe197fb)=>(_0x191dd0,_0x3b0701)=>_0xe197fb(_0x191dd0,_0x3b0701,_0x50b993);let ge=class extends _0x5b9cf1{constructor(_0x11d64d,_0x517c96,_0x3bf14c){const _0x40646b=_0x1e1deb;super(),l(this,'_entities',new Map()),l(this,_0x40646b(0x325),new _0x365a49()),(this[_0x40646b(0x145)]=_0x11d64d,this[_0x40646b(0x432)]=_0x517c96,this[_0x40646b(0x341)]=_0x3bf14c,this[_0x40646b(0x37a)]());}[_0x1e1deb(0x1de)](){const _0x203e4c=_0x1e1deb;super[_0x203e4c(0x1de)](),this[_0x203e4c(0x325)][_0x203e4c(0x433)](),this[_0x203e4c(0x272)][_0x203e4c(0x23e)](_0x31f7da=>_0x31f7da['dispose']());}[_0x1e1deb(0x19c)](_0x197472){const _0x875ea6=_0x1e1deb;return this[_0x875ea6(0x272)][_0x875ea6(0x1e3)](_0x197472)?this[_0x875ea6(0x272)][_0x875ea6(0x10a)](_0x197472)[_0x875ea6(0x430)]:this[_0x875ea6(0x325)][_0x875ea6(0x119)](_0x4543ab(_0x573f37=>_0x573f37[_0x875ea6(0x370)]===_0x197472),_0xd6054c(_0x3aa0b9=>_0x3aa0b9[_0x875ea6(0x430)]));}[_0x1e1deb(0x37a)](){const _0x4f3a8b=_0x1e1deb;this[_0x4f3a8b(0x145)][_0x4f3a8b(0x405)](_0x37298b['UNIVER_SHEET'])[_0x4f3a8b(0x119)](_0x3f75b0(this['dispose$']))[_0x4f3a8b(0x3e0)](async _0x496678=>{const _0x5701d0=_0x4f3a8b,_0x4ea4ff=_0x496678[_0x5701d0(0x3cf)](),_0x4941fa=await this['_startSheetCollabCursor'](_0x4ea4ff);this[_0x5701d0(0x325)]['next'](_0x4941fa),this[_0x5701d0(0x272)]['set'](_0x4ea4ff,_0x4941fa);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x37298b[_0x4f3a8b(0x1c7)])[_0x4f3a8b(0x119)](_0x3f75b0(this[_0x4f3a8b(0x413)]))[_0x4f3a8b(0x119)](_0x4543ab(_0x396c76=>!_0x396c76[_0x4f3a8b(0x3cf)]()['startsWith']('__')))[_0x4f3a8b(0x3e0)](async _0x212673=>{const _0x378346=_0x4f3a8b,_0x2c4194=_0x212673[_0x378346(0x3cf)](),_0x24b8f1=await this[_0x378346(0x35b)](_0x2c4194);this[_0x378346(0x325)]['next'](_0x24b8f1),this[_0x378346(0x272)][_0x378346(0x394)](_0x2c4194,_0x24b8f1);}),_0x5726e7(this[_0x4f3a8b(0x145)][_0x4f3a8b(0x363)](_0x37298b['UNIVER_DOC']),this[_0x4f3a8b(0x145)][_0x4f3a8b(0x363)](_0x37298b[_0x4f3a8b(0x3d0)]))[_0x4f3a8b(0x119)](_0x3f75b0(this[_0x4f3a8b(0x413)]))[_0x4f3a8b(0x3e0)](_0x3e5738=>{const _0x4b44b0=_0x4f3a8b,_0xebe98c=_0x3e5738[_0x4b44b0(0x3cf)](),_0x4848d3=this[_0x4b44b0(0x272)]['get'](_0xebe98c);_0x4848d3&&(_0x4848d3[_0x4b44b0(0x1de)](),this[_0x4b44b0(0x272)]['delete'](_0xebe98c));});}async[_0x1e1deb(0x3c8)](_0x4c3944){const _0xcd6beb=_0x1e1deb,_0x23e121=await this[_0xcd6beb(0x341)]['requireSession'](_0x4c3944),_0x390b84=this[_0xcd6beb(0x432)][_0xcd6beb(0x116)](Ct,_0x4c3944,_0x23e121);return _0x390b84[_0xcd6beb(0x3db)](),_0x390b84;}async[_0x1e1deb(0x35b)](_0x2108f2){const _0x28fb16=_0x1e1deb,_0x562c77=await this['_collabSessionService'][_0x28fb16(0x2c6)](_0x2108f2),_0x587c69=this[_0x28fb16(0x432)]['createInstance'](bt,_0x2108f2,_0x562c77);return _0x587c69[_0x28fb16(0x3db)](),_0x587c69;}};ge=pr([_0x3e0133(_0x1781f1[_0x1e1deb(0x3bd)],ge),ct(0x0,_0x4902a5),ct(0x1,_0x441fe2(_0x9c5d64)),ct(0x2,_0x441fe2(pe))],ge);const Ue=0x14,as=0xc8,ht=0x4,vr=0x5;function Ir(_0x4fae90,_0x55c097){const _0x332056=_0x1e1deb;let {radius:_0x18a8eb,width:_0xcdf00e,height:_0xec2079}=_0x55c097;_0x18a8eb=_0x18a8eb!=null?_0x18a8eb:0x0,_0xcdf00e=_0xcdf00e!=null?_0xcdf00e:0x1e,_0xec2079=_0xec2079!=null?_0xec2079:0x1e;let _0x157922=0x0,_0x2974ce=0x0,_0x145dc8=0x0;_0x157922=_0x2974ce=_0x145dc8=Math[_0x332056(0x414)](_0x18a8eb,_0xcdf00e/0x2,_0xec2079/0x2),_0x4fae90[_0x332056(0x36d)](),_0x4fae90['moveTo'](_0x157922,0x0),_0x4fae90['lineTo'](_0xcdf00e-_0x2974ce,0x0),_0x4fae90['arc'](_0xcdf00e-_0x2974ce,_0x2974ce,_0x2974ce,Math['PI']*0x3/0x2,0x0,!0x1),_0x4fae90['lineTo'](_0xcdf00e,_0xec2079-_0x145dc8),_0x4fae90[_0x332056(0x2ae)](_0xcdf00e-_0x145dc8,_0xec2079-_0x145dc8,_0x145dc8,0x0,Math['PI']/0x2,!0x1),_0x4fae90[_0x332056(0x299)](0x0,_0xec2079),_0x4fae90['lineTo'](0x0,_0x157922),_0x4fae90[_0x332056(0x2ae)](_0x157922,_0x157922,_0x157922,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4fae90[_0x332056(0x27e)](),_0x55c097[_0x332056(0x248)]&&(_0x4fae90[_0x332056(0x2e8)](),_0x4fae90['fillStyle']=_0x55c097[_0x332056(0x248)],_0x55c097[_0x332056(0x112)]===_0x332056(0x3cc)?_0x4fae90[_0x332056(0x248)](_0x332056(0x3cc)):_0x4fae90[_0x332056(0x248)](),_0x4fae90['restore']());}class it extends _0x26e4f3{constructor(_0x778f19,_0x355f1c){const _0x51c1d6=_0x1e1deb;super(_0x778f19,_0x355f1c),l(this,_0x51c1d6(0x39f)),l(this,_0x51c1d6(0x2ce)),(this[_0x51c1d6(0x39f)]=_0x355f1c==null?void 0x0:_0x355f1c[_0x51c1d6(0x39f)],this[_0x51c1d6(0x2ce)]=_0x355f1c==null?void 0x0:_0x355f1c['text']);}static[_0x1e1deb(0x3dc)](_0x2e5c4c,_0x58259c){const _0x234a7f=_0x1e1deb,{text:_0x42336e,color:_0x8b4830}=_0x58259c;_0x2e5c4c['save'](),_0x2e5c4c[_0x234a7f(0x3df)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0xca54fa=_0x2e5c4c['measureText'](_0x42336e)[_0x234a7f(0x3b3)],_0x382391=Math[_0x234a7f(0x414)](_0xca54fa+0x2*ht,as);Ir(_0x2e5c4c,{'height':Ue,'radius':0x4,'width':_0x382391,'fill':_0x8b4830,'evented':!0x1}),_0x2e5c4c[_0x234a7f(0x271)]='#FFF';const _0xb107f6=ht,_0x10f815=Ue-vr,_0x23c570=as-0x2*ht;if(_0xca54fa>_0x23c570){let _0x2b0b1a='',_0xf37d96=0x0;for(const _0x5c80a9 of _0x42336e){const _0x461fb5=_0x2e5c4c[_0x234a7f(0x16d)](_0x5c80a9)[_0x234a7f(0x3b3)];if(_0xf37d96+_0x461fb5<=_0x23c570-_0x2e5c4c[_0x234a7f(0x16d)](_0x234a7f(0x20e))[_0x234a7f(0x3b3)])_0x2b0b1a+=_0x5c80a9,_0xf37d96+=_0x461fb5;else{_0x2b0b1a+=_0x234a7f(0x20e);break;}}_0x2e5c4c[_0x234a7f(0x14b)](_0x2b0b1a,_0xb107f6,_0x10f815);}else _0x2e5c4c[_0x234a7f(0x14b)](_0x42336e,_0xb107f6,_0x10f815);_0x2e5c4c[_0x234a7f(0x41d)]();}[_0x1e1deb(0x10d)](_0x3485b8){const _0x5bd01d=_0x1e1deb;it[_0x5bd01d(0x3dc)](_0x3485b8,this);}}const Er=0x1,Cr=1.5;class br extends _0x26e4f3{constructor(_0x26f13c,_0x14d361){const _0x3b1def=_0x1e1deb;super(_0x26f13c,_0x14d361),l(this,_0x3b1def(0x2aa)),l(this,_0x3b1def(0x155),!0x1),l(this,_0x3b1def(0x411)),l(this,_0x3b1def(0x102),''),l(this,_0x3b1def(0x113),_0x3b1def(0x2da)),l(this,_0x3b1def(0x233)),(_0x14d361&&this['setShapeProps'](_0x14d361),this[_0x3b1def(0x1c8)][_0x3b1def(0x364)](()=>this[_0x3b1def(0x384)]({'hovered':!0x0})),this['onPointerLeave$'][_0x3b1def(0x364)](()=>this[_0x3b1def(0x384)]({'hovered':!0x1})));}['setShapeProps'](_0x12ce4f){const _0x509e63=_0x1e1deb;var _0x5d3f58,_0xd0baf7,_0x32e5eb,_0x21c9a3,_0x320994,_0x2a966a;this['_color']=(_0x5d3f58=_0x12ce4f[_0x509e63(0x39f)])!=null?_0x5d3f58:this[_0x509e63(0x2aa)],this['_hovered']=(_0xd0baf7=_0x12ce4f['hovered'])!=null?_0xd0baf7:this[_0x509e63(0x155)],this['_range']=(_0x32e5eb=_0x12ce4f['range'])!=null?_0x32e5eb:this[_0x509e63(0x411)],this[_0x509e63(0x102)]=(_0x21c9a3=_0x12ce4f[_0x509e63(0x10e)])!=null?_0x21c9a3:this[_0x509e63(0x102)],this[_0x509e63(0x113)]=(_0x320994=_0x12ce4f[_0x509e63(0x18c)])!=null?_0x320994:this[_0x509e63(0x113)],this['_backgroundColor']=(_0x2a966a=_0x12ce4f[_0x509e63(0x429)])!=null?_0x2a966a:this[_0x509e63(0x233)],this['transformByState']({'width':_0x12ce4f[_0x509e63(0x3b3)],'height':_0x12ce4f[_0x509e63(0x2e1)]});}[_0x1e1deb(0x295)](_0x11e636){const _0x535666=_0x1e1deb,{row:_0x12380e,column:_0x4570fc}=_0x11e636;if(_0x12380e>=this[_0x535666(0x411)][_0x535666(0x2c1)]&&_0x12380e<=this[_0x535666(0x411)][_0x535666(0x1be)]&&_0x4570fc>=this[_0x535666(0x411)][_0x535666(0x236)]&&_0x4570fc<=this[_0x535666(0x411)][_0x535666(0x1c1)]){this[_0x535666(0x384)]({'hovered':!0x0});return;}this[_0x535666(0x384)]({'hovered':!0x1});}[_0x1e1deb(0x40c)](_0xd8efa8){return!0x1;}[_0x1e1deb(0x10d)](_0x335a6c){const _0x2f19fe=_0x1e1deb;_0xb0d98f['drawWith'](_0x335a6c,{'width':this[_0x2f19fe(0x3b3)],'height':this[_0x2f19fe(0x2e1)],'strokeWidth':Cr,'stroke':this['_color'],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x2f19fe(0x155)]&&(_0x335a6c[_0x2f19fe(0x2e8)](),_0x335a6c[_0x2f19fe(0x3f0)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']==='bottom'?0x0:-Ue),it[_0x2f19fe(0x3dc)](_0x335a6c,{'text':this[_0x2f19fe(0x102)],'color':this[_0x2f19fe(0x2aa)]}),_0x335a6c[_0x2f19fe(0x41d)]());}}var Tr=Object[_0x1e1deb(0x158)],Rr=Object['getOwnPropertyDescriptor'],Or=(_0x84c562,_0x2b3f89,_0x19547b,_0x662895)=>{const _0x5443f5=_0x1e1deb;for(var _0x51a268=_0x662895>0x1?void 0x0:_0x662895?Rr(_0x2b3f89,_0x19547b):_0x2b3f89,_0x2d551c=_0x84c562[_0x5443f5(0x426)]-0x1,_0x373ef4;_0x2d551c>=0x0;_0x2d551c--)(_0x373ef4=_0x84c562[_0x2d551c])&&(_0x51a268=(_0x662895?_0x373ef4(_0x2b3f89,_0x19547b,_0x51a268):_0x373ef4(_0x51a268))||_0x51a268);return _0x662895&&_0x51a268&&Tr(_0x2b3f89,_0x19547b,_0x51a268),_0x51a268;},lt=(_0x55d54a,_0x53e4d7)=>(_0x3007d7,_0x3981f8)=>_0x53e4d7(_0x3007d7,_0x3981f8,_0x55d54a);const Dr=0x1389;let Tt=class extends _0x5b9cf1{constructor(_0x3fd35e,_0x46ecc0,_0x380d3c,_0x103ed3){const _0x412eb2=_0x1e1deb;super(),l(this,'_cursors',new Set()),l(this,_0x412eb2(0x15a),null),(this[_0x412eb2(0x428)]=_0x3fd35e,this[_0x412eb2(0x2f0)]=_0x46ecc0,this['_collabCursorController']=_0x380d3c,this[_0x412eb2(0x281)]=_0x103ed3,this[_0x412eb2(0x37a)]());}[_0x1e1deb(0x37a)](){const _0x4ae974=_0x1e1deb;this[_0x4ae974(0x2f0)]['currentSkeleton$'][_0x4ae974(0x119)](_0x946afe(this[_0x4ae974(0x413)]),_0x4abf00(_0x42a5a3=>{const _0x3e5a55=_0x4ae974;if(_0x42a5a3){const _0x1c0294=_0x42a5a3[_0x3e5a55(0x35f)];return _0x1a6529(this[_0x3e5a55(0x307)][_0x3e5a55(0x19c)](this[_0x3e5a55(0x428)][_0x3e5a55(0x439)]),this[_0x3e5a55(0x281)][_0x3e5a55(0x24e)])[_0x3e5a55(0x119)](_0x5ac769(([_0x1edbf7,_0x4c4ca9])=>{const _0x22fb7c=_0x3e5a55,_0x1c5d8b=new Map();return _0x1edbf7[_0x22fb7c(0x23e)]((_0x550341,_0x26bd18)=>{const _0x50d53b=_0x22fb7c;if(_0x550341[_0x50d53b(0x438)]===_0x1c0294){const _0x4eb6ca={..._0x550341};_0x4eb6ca[_0x50d53b(0x39f)]=_0x4c4ca9[_0x550341['color']],_0x1c5d8b[_0x50d53b(0x394)](_0x26bd18,_0x4eb6ca);}}),{'skeleton':_0x42a5a3,'cursors':_0x1c5d8b};}));}return _0x4f1794({'skeleton':null,'cursors':new Map()});}))[_0x4ae974(0x3e0)](({skeleton:_0x32e391,cursors:_0x414bca})=>{const _0x540905=_0x4ae974;this[_0x540905(0x383)](),_0x32e391&&this['_updateCollabCursors'](_0x32e391,_0x414bca);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x4ae974(0x3e0)](_0x38a844=>{const _0x2a1f90=_0x4ae974;if(_0x38a844==null)return;const {skeleton:_0x16c7df}=_0x38a844,{scene:_0x285ec8}=this[_0x2a1f90(0x428)];_0x285ec8[_0x2a1f90(0x167)][_0x2a1f90(0x364)](_0x21f8bc(_0x25fb68=>{const _0x38a6c6=_0x2a1f90;var _0x5c348a,_0x2baddd;const {offsetX:_0x495000,offsetY:_0x2e86fc}=_0x25fb68,{x:_0x268ffc,y:_0x1a434d}=_0x285ec8['getRelativeToViewportCoord'](_0x261805[_0x38a6c6(0x172)]([_0x495000,_0x2e86fc])),{scaleX:_0x310ff8,scaleY:_0x2b0a64}=_0x285ec8[_0x38a6c6(0x197)](),_0x505959=_0x285ec8[_0x38a6c6(0x1f4)](_0x148a75[_0x38a6c6(0x33b)]),_0x3ef1ff=_0x285ec8[_0x38a6c6(0x276)](_0x261805[_0x38a6c6(0x172)]([_0x268ffc,_0x1a434d]),_0x505959),_0x2709f1=_0x16c7df['getCellPositionByOffset'](_0x495000,_0x2e86fc,_0x310ff8,_0x2b0a64,_0x3ef1ff);((_0x5c348a=this[_0x38a6c6(0x15a)])==null?void 0x0:_0x5c348a[_0x38a6c6(0x24d)])===_0x2709f1[_0x38a6c6(0x24d)]&&((_0x2baddd=this[_0x38a6c6(0x15a)])==null?void 0x0:_0x2baddd[_0x38a6c6(0x1f7)])===_0x2709f1[_0x38a6c6(0x1f7)]||this['_cursors'][_0x38a6c6(0x23e)](_0x309f8a=>{_0x309f8a['onMouseMove'](_0x2709f1);});},0x64));});}[_0x1e1deb(0x31e)](_0x451f4e,_0x440322){const _0x3c27b5=_0x1e1deb;var _0x39ccbd;const _0x4db93f=(_0x39ccbd=this[_0x3c27b5(0x2f0)][_0x3c27b5(0x298)]())==null?void 0x0:_0x39ccbd['skeleton'];if(!_0x4db93f)return;const _0x39d6e5=this[_0x3c27b5(0x23b)]();if(!_0x39d6e5)return;this['_cursors'][_0x3c27b5(0x23e)](_0x494a3f=>{_0x494a3f['makeDirty']();});const {scene:_0x40f750}=_0x39d6e5,_0x34f114=Pr(Array[_0x3c27b5(0x427)](_0x440322[_0x3c27b5(0x1ec)]()))[_0x3c27b5(0x230)](_0x4b5c43=>{const _0x530638=_0x3c27b5,{color:_0x13fe40,range:_0x4af9a6,name:_0x11d793,selection:_0x5bc2f5,sheetID:_0x5221cb}=_0x4b5c43,{startColumn:_0x2a6c17,startRow:_0x5ee295,endColumn:_0x528ab8,endRow:_0x48e823}=_0x4af9a6,_0x279133=_0x2dd2e3(_0x5ee295,_0x2a6c17,_0x40f750,_0x4db93f),_0x2e5178=_0x2dd2e3(_0x48e823,_0x528ab8,_0x40f750,_0x4db93f),{columnHeaderHeightAndMarginTop:_0xdec1c0}=_0x4db93f,{startX:_0x1f6506,startY:_0x404e20}=_0x279133,{endX:_0x2cef1a,endY:_0x22b5a5}=_0x2e5178,_0x4ed481=_0x2cef1a-_0x1f6506,_0x42ca7d=_0x22b5a5-_0x404e20,_0x21a154={'labelPosition':_0x404e20-_0xdec1c0>=Ue?_0x530638(0x2da):'bottom','sheetID':_0x5221cb,'range':_0x4af9a6,'color':_0x13fe40,'name':_0x11d793,'selection':_0x5bc2f5,'left':_0x1f6506,'top':_0x404e20,'width':_0x4ed481,'height':_0x42ca7d,'evented':!0x1,'zIndex':Dr};return new br(_0x11d793,_0x21a154);});_0x40f750[_0x3c27b5(0x3eb)](_0x34f114,Er),this[_0x3c27b5(0x18b)]=new Set(_0x34f114);}['_removeCollabCursors'](){const _0x54f433=_0x1e1deb;var _0x313a15;(_0x313a15=this[_0x54f433(0x18b)])==null||_0x313a15['forEach'](_0x1782a7=>_0x1782a7[_0x54f433(0x1de)]());}[_0x1e1deb(0x23b)](){const _0x546022=_0x1e1deb;return _0x8759c1(this[_0x546022(0x428)]['unit'],this['_context']);}};Tt=Or([lt(0x1,_0x441fe2(_0x1b2381)),lt(0x2,_0x441fe2(ge)),lt(0x3,_0x441fe2(_0x5af768))],Tt);function Pr(_0x19e1bc){const _0x14df0b=_0x1e1deb,_0x5196b5=new Map();return _0x19e1bc[_0x14df0b(0x23e)](_0x371068=>{const _0x3d8f81=_0x14df0b;if(_0x5196b5[_0x3d8f81(0x1e3)](_0x371068['selection'])){const _0x488ebb=_0x5196b5['get'](_0x371068[_0x3d8f81(0x3ad)]);_0x488ebb['name']+=',\x20'+_0x371068[_0x3d8f81(0x10e)];}else _0x5196b5[_0x3d8f81(0x394)](_0x371068[_0x3d8f81(0x3ad)],_0x371068);}),Array['from'](_0x5196b5['values']());}var y=function(){const _0x5a892f=_0x1e1deb;return y=Object[_0x5a892f(0x2fc)]||function(_0x3f3e1a){const _0x37adc6=_0x5a892f;for(var _0x6ffb07,_0x3e6933=0x1,_0x32a8bb=arguments['length'];_0x3e6933<_0x32a8bb;_0x3e6933++){_0x6ffb07=arguments[_0x3e6933];for(var _0x2c4f34 in _0x6ffb07)Object[_0x37adc6(0x1c2)][_0x37adc6(0x246)][_0x37adc6(0x2fb)](_0x6ffb07,_0x2c4f34)&&(_0x3f3e1a[_0x2c4f34]=_0x6ffb07[_0x2c4f34]);}return _0x3f3e1a;},y['apply'](this,arguments);},wr=function(_0x4704e7,_0x39dc15){const _0x2312d8=_0x1e1deb;var _0x2fced2={};for(var _0x2273f1 in _0x4704e7)Object[_0x2312d8(0x1c2)][_0x2312d8(0x246)][_0x2312d8(0x2fb)](_0x4704e7,_0x2273f1)&&_0x39dc15[_0x2312d8(0x196)](_0x2273f1)<0x0&&(_0x2fced2[_0x2273f1]=_0x4704e7[_0x2273f1]);if(_0x4704e7!=null&&typeof Object[_0x2312d8(0x2a5)]==_0x2312d8(0x408)){for(var _0x1a5ee1=0x0,_0x2273f1=Object[_0x2312d8(0x2a5)](_0x4704e7);_0x1a5ee1<_0x2273f1[_0x2312d8(0x426)];_0x1a5ee1++)_0x39dc15['indexOf'](_0x2273f1[_0x1a5ee1])<0x0&&Object['prototype'][_0x2312d8(0x305)][_0x2312d8(0x2fb)](_0x4704e7,_0x2273f1[_0x1a5ee1])&&(_0x2fced2[_0x2273f1[_0x1a5ee1]]=_0x4704e7[_0x2273f1[_0x1a5ee1]]);}return _0x2fced2;},Ht=_0x4c5978(function(_0x128bf2,_0x47c970){const _0x155037=_0x1e1deb;var _0x20675c=_0x128bf2['icon'],_0x85792b=_0x128bf2['id'],_0x532d2c=_0x128bf2[_0x155037(0x13b)],_0x2be95d=_0x128bf2['extend'],_0x5b776c=wr(_0x128bf2,[_0x155037(0x232),'id',_0x155037(0x13b),_0x155037(0x41e)]),_0x2dff62='univerjs-icon\x20univerjs-icon-'['concat'](_0x85792b,'\x20')[_0x155037(0x114)](_0x532d2c||'')[_0x155037(0x1e6)](),_0x3afa59=_0x42a52e('_'[_0x155037(0x114)](Ar()));return Ls(_0x20675c,''[_0x155037(0x114)](_0x85792b),{'defIds':_0x20675c[_0x155037(0x263)],'idSuffix':_0x3afa59[_0x155037(0x257)]},y({'ref':_0x47c970,'className':_0x2dff62},_0x5b776c),_0x2be95d);});function Ls(_0x5613b1,_0x3d68b5,_0x2b2edd,_0xd0487,_0x4b7e3c){const _0x24fb55=_0x1e1deb;return _0x5dad64(_0x5613b1['tag'],y(y({'key':_0x3d68b5},Nr(_0x5613b1,_0x2b2edd,_0x4b7e3c)),_0xd0487),(Mr(_0x5613b1,_0x2b2edd)[_0x24fb55(0x3d5)]||[])[_0x24fb55(0x230)](function(_0x3fc766,_0x403429){const _0x21ab84=_0x24fb55;return Ls(_0x3fc766,''['concat'](_0x3d68b5,'-')[_0x21ab84(0x114)](_0x5613b1[_0x21ab84(0x2e6)],'-')[_0x21ab84(0x114)](_0x403429),_0x2b2edd,void 0x0,_0x4b7e3c);}));}function Nr(_0x377fd9,_0x165002,_0x39762b){const _0x4e33dc=_0x1e1deb;var _0x2602a0=y({},_0x377fd9['attrs']);_0x39762b!=null&&_0x39762b[_0x4e33dc(0x1a8)]&&_0x2602a0[_0x4e33dc(0x248)]===_0x4e33dc(0x1a8)&&(_0x2602a0[_0x4e33dc(0x248)]=_0x39762b[_0x4e33dc(0x1a8)]);var _0x2c79d9=_0x165002[_0x4e33dc(0x263)];return!_0x2c79d9||_0x2c79d9[_0x4e33dc(0x426)]===0x0||(_0x377fd9[_0x4e33dc(0x2e6)]===_0x4e33dc(0x12e)&&_0x2602a0[_0x4e33dc(0x254)]&&(_0x2602a0['xlink:href']=_0x2602a0['xlink:href']+_0x165002['idSuffix']),Object['entries'](_0x2602a0)[_0x4e33dc(0x23e)](function(_0x5c5d16){const _0x33157b=_0x4e33dc;var _0x53e2eb=_0x5c5d16[0x0],_0x5e1a39=_0x5c5d16[0x1];typeof _0x5e1a39==_0x33157b(0x159)&&(_0x2602a0[_0x53e2eb]=_0x5e1a39[_0x33157b(0x20a)](/url\(#(.*)\)/,'url(#$1'[_0x33157b(0x114)](_0x165002[_0x33157b(0x20b)],')')));})),_0x2602a0;}function Mr(_0x2fd192,_0x418d82){const _0x132b67=_0x1e1deb;var _0x364f4e,_0xa0ea27=_0x418d82[_0x132b67(0x263)];return!_0xa0ea27||_0xa0ea27[_0x132b67(0x426)]===0x0?_0x2fd192:_0x2fd192[_0x132b67(0x2e6)]===_0x132b67(0x26d)&&(!((_0x364f4e=_0x2fd192['children'])===null||_0x364f4e===void 0x0)&&_0x364f4e[_0x132b67(0x426)])?y(y({},_0x2fd192),{'children':_0x2fd192[_0x132b67(0x3d5)][_0x132b67(0x230)](function(_0xccec19){const _0xec6668=_0x132b67;return typeof _0xccec19[_0xec6668(0x206)]['id']==_0xec6668(0x159)&&_0xa0ea27&&_0xa0ea27[_0xec6668(0x196)](_0xccec19[_0xec6668(0x206)]['id'])>-0x1?y(y({},_0xccec19),{'attrs':y(y({},_0xccec19[_0xec6668(0x206)]),{'id':_0xccec19[_0xec6668(0x206)]['id']+_0x418d82['idSuffix']})}):_0xccec19;})}):_0x2fd192;}function Ar(){const _0x1b560c=_0x1e1deb;return Math[_0x1b560c(0x216)]()[_0x1b560c(0x400)](0x24)[_0x1b560c(0x1a2)](0x2,0x8);}Ht['displayName']=_0x1e1deb(0x398);var yr={'tag':_0x1e1deb(0x2ec),'attrs':{'fill':_0x1e1deb(0x170),'viewBox':_0x1e1deb(0x157),'width':_0x1e1deb(0x1bc),'height':_0x1e1deb(0x1bc)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x1e1deb(0x1ea),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x1e1deb(0x24b),'strokeLinejoin':_0x1e1deb(0x24b),'strokeWidth':1.2}}]},{'tag':_0x1e1deb(0x26d),'attrs':{},'children':[{'tag':_0x1e1deb(0x40b),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x1e1deb(0x2bd),'attrs':{'fill':_0x1e1deb(0x416),'d':_0x1e1deb(0x1c6)}}]}]}],'defIds':['off-line-single_clip0_910_343']},$s=_0x4c5978(function(_0x3a7ab8,_0x503e27){const _0x9be884=_0x1e1deb;return _0x5dad64(Ht,Object[_0x9be884(0x2fc)]({},_0x3a7ab8,{'id':_0x9be884(0x16b),'ref':_0x503e27,'icon':yr}));});$s['displayName']='OffLineSingle';var Ur={'tag':'svg','attrs':{'fill':_0x1e1deb(0x170),'viewBox':_0x1e1deb(0x25c),'width':_0x1e1deb(0x1bc),'height':_0x1e1deb(0x1bc)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x1e1deb(0x1ea),'d':_0x1e1deb(0x205),'strokeLinecap':_0x1e1deb(0x24b),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1e1deb(0x26d),'attrs':{},'children':[{'tag':_0x1e1deb(0x40b),'attrs':{'id':_0x1e1deb(0x35d)},'children':[{'tag':_0x1e1deb(0x2bd),'attrs':{'fill':_0x1e1deb(0x416),'d':_0x1e1deb(0x1c6),'transform':_0x1e1deb(0x13c)}}]}]}],'defIds':[_0x1e1deb(0x35d)]},js=_0x4c5978(function(_0xaa6dc8,_0x226221){const _0x393908=_0x1e1deb;return _0x5dad64(Ht,Object[_0x393908(0x2fc)]({},_0xaa6dc8,{'id':_0x393908(0x2ba),'ref':_0x226221,'icon':Ur}));});js[_0x1e1deb(0x2a0)]='OnLineSingle';const Lr=_0x1e1deb(0x3d8),$r='univer-online-status-title',jr='univer-online-status',xr=_0x1e1deb(0x279),Hr=_0x1e1deb(0x1c3),De={'onlineStatusIcon':Lr,'onlineStatusTitle':$r,'onlineStatus':jr,'online':xr,'offline':Hr};function kr(_0x3f615b){const _0xc24b35=_0x1e1deb;switch(_0x3f615b){case P['OFFLINE']:return'collabStatus.offline';case P['CONFLICT']:return _0xc24b35(0x29a);case P[_0xc24b35(0x3c6)]:return _0xc24b35(0x390);case P['NOT_COLLAB']:return _0xc24b35(0x318);case P[_0xc24b35(0x2ef)]:case P['AWAITING']:case P[_0xc24b35(0x1b7)]:return _0xc24b35(0x19b);case P[_0xc24b35(0x23d)]:return _0xc24b35(0x133);}}function Fr(_0x5322c2){const _0xf3a9c3=_0x1e1deb,{status$:_0x4082d1}=_0x5322c2,_0x2290ec=_0x40760a(_0x4082d1,P[_0xf3a9c3(0x105)]),_0x87a24d=_0x12a590(_0x2cfe85),_0x381ca2=_0x2290ec!==P[_0xf3a9c3(0x328)],_0x3ba8ce=_0x87a24d['t'](kr(_0x2290ec)),_0x587275=_0x513823(De[_0xf3a9c3(0x147)],{[De[_0xf3a9c3(0x2b3)]]:_0x381ca2,[De[_0xf3a9c3(0x291)]]:!_0x381ca2}),_0x582921=_0x381ca2?_0xed19ed[_0xf3a9c3(0x350)](js,null):_0xed19ed[_0xf3a9c3(0x350)]($s,null);return _0xed19ed[_0xf3a9c3(0x350)](_0xf3a9c3(0x36c),{'className':_0x587275},_0xed19ed[_0xf3a9c3(0x350)](_0xf3a9c3(0x36c),{'className':De[_0xf3a9c3(0x3a6)]},_0x582921),_0xed19ed[_0xf3a9c3(0x350)](_0xf3a9c3(0x36c),{'className':De[_0xf3a9c3(0x3aa)]},_0x3ba8ce));}var Vr=Object[_0x1e1deb(0x158)],Br=Object[_0x1e1deb(0x32c)],Wr=(_0x1a2edd,_0x5c4e18,_0xd8bbb8,_0x2755b5)=>{const _0x2022ae=_0x1e1deb;for(var _0x19fbaa=_0x2755b5>0x1?void 0x0:_0x2755b5?Br(_0x5c4e18,_0xd8bbb8):_0x5c4e18,_0x118871=_0x1a2edd[_0x2022ae(0x426)]-0x1,_0x48891d;_0x118871>=0x0;_0x118871--)(_0x48891d=_0x1a2edd[_0x118871])&&(_0x19fbaa=(_0x2755b5?_0x48891d(_0x5c4e18,_0xd8bbb8,_0x19fbaa):_0x48891d(_0x19fbaa))||_0x19fbaa);return _0x2755b5&&_0x19fbaa&&Vr(_0x5c4e18,_0xd8bbb8,_0x19fbaa),_0x19fbaa;},$e=(_0x1d02c5,_0x5a6818)=>(_0x473fd6,_0x50e811)=>_0x5a6818(_0x473fd6,_0x50e811,_0x1d02c5);let ke=class extends _0xc94eea{constructor(_0x4133ff,_0x3a71a4,_0x409fcb,_0xf57783){const _0x377612=_0x1e1deb;super(),l(this,'_status$',new _0x16d05d(P[_0x377612(0x105)])),(this['_univerInstanceService']=_0x4133ff,this[_0x377612(0x237)]=_0x3a71a4,this['_injector']=_0x409fcb,this[_0x377612(0x3a8)]=_0xf57783,this[_0x377612(0x3a7)](),this[_0x377612(0x3bc)]());}['_initStatusComponent'](){const _0x35df1d=_0x1e1deb;this[_0x35df1d(0x32e)](this[_0x35df1d(0x237)]['registerComponent'](_0x37823b[_0x35df1d(0x3bb)],()=>_0x1bcf38(Gr({'status$':this[_0x35df1d(0x2ea)]['asObservable']()}),this['_injector'])));}[_0x1e1deb(0x3bc)](){const _0x214058=_0x1e1deb;this['disposeWithMe'](_0x4259e5(this['_univerInstanceService'][_0x214058(0xfd)][_0x214058(0x119)](_0xd6054c(()=>{const _0xf4f46e=_0x214058,_0x4cec09=this[_0xf4f46e(0x145)][_0xf4f46e(0x228)]();return _0x4cec09?this[_0xf4f46e(0x3a8)][_0xf4f46e(0x1d3)](_0x4cec09[_0xf4f46e(0x3cf)]()):_0x4f1794(null);}),_0xd6054c(_0x23f60f=>_0x23f60f?_0x23f60f[_0x214058(0x200)]:_0x4f1794(P['NOT_COLLAB'])))['subscribe'](_0x5cbbc7=>{const _0x4eac9a=_0x214058;this[_0x4eac9a(0x2ea)][_0x4eac9a(0x3cd)](_0x5cbbc7);})));}};ke=Wr([_0x3e0133(_0x1781f1[_0x1e1deb(0x3bd)],ke),$e(0x0,_0x4902a5),$e(0x1,_0xbabd5f),$e(0x2,_0x441fe2(_0x9c5d64)),$e(0x3,_0x441fe2(Me))],ke);function Gr(_0x8fcc7f){const {status$:_0x3e3663}=_0x8fcc7f;return function(){const _0x43e62f=_0x44de;return _0xed19ed[_0x43e62f(0x350)](Fr,{'status$':_0x3e3663});};}const xs=_0x32feec(_0x1e1deb(0x3ec));var Yr=Object['defineProperty'],Kr=Object[_0x1e1deb(0x32c)],Xr=(_0x44be9c,_0x4c0221,_0x4cac6e,_0x2e0d00)=>{const _0x4bcffd=_0x1e1deb;for(var _0x179476=_0x2e0d00>0x1?void 0x0:_0x2e0d00?Kr(_0x4c0221,_0x4cac6e):_0x4c0221,_0x191e7b=_0x44be9c[_0x4bcffd(0x426)]-0x1,_0x429a2f;_0x191e7b>=0x0;_0x191e7b--)(_0x429a2f=_0x44be9c[_0x191e7b])&&(_0x179476=(_0x2e0d00?_0x429a2f(_0x4c0221,_0x4cac6e,_0x179476):_0x429a2f(_0x179476))||_0x179476);return _0x2e0d00&&_0x179476&&Yr(_0x4c0221,_0x4cac6e,_0x179476),_0x179476;},ue=(_0x4988f6,_0x363bf8)=>(_0x3e208c,_0x43c652)=>_0x363bf8(_0x3e208c,_0x43c652,_0x4988f6);let Fe=class extends _0x5b9cf1{constructor(_0x12fc25,_0x536dbc,_0x3acce0,_0x4d21dc,_0x18021c,_0xac6f2b){const _0x136833=_0x1e1deb;super(),this[_0x136833(0x3ed)]=_0x12fc25,this['_logService']=_0x536dbc,this['_commandService']=_0x3acce0,this['_localCacheService']=_0x4d21dc,this[_0x136833(0x40a)]=_0x18021c,_0xac6f2b?_0xac6f2b==null||_0xac6f2b[_0x136833(0x199)]()[_0x136833(0x1e8)](()=>this[_0x136833(0x37a)]()):(this['_logService'][_0x136833(0x1fc)]('[DataLoaderController]',_0x136833(0x24c)),this[_0x136833(0x37a)]());}async['_init'](){const _0x26e9ed=_0x1e1deb,_0x59182c=this[_0x26e9ed(0x3ed)]['getParam'](_0x26e9ed(0x418)),_0x148378=this[_0x26e9ed(0x3ed)][_0x26e9ed(0x14a)](_0x26e9ed(0x2cc));if(!_0x59182c||!_0x148378){this['_logService']['debug'](_0x26e9ed(0x189),_0x26e9ed(0x337));return;}switch(Number(_0x148378)){case x[_0x26e9ed(0x3d0)]:{const _0x5498bd=await this[_0x26e9ed(0x311)](_0x59182c);this[_0x26e9ed(0x3e6)](_0x5498bd);break;}case x[_0x26e9ed(0x1c7)]:{await this[_0x26e9ed(0x3ae)](_0x59182c);break;}default:{this[_0x26e9ed(0x12a)][_0x26e9ed(0x1f8)](_0x26e9ed(0x189),_0x26e9ed(0xfc));break;}}}async[_0x1e1deb(0x3e6)](_0x3754d3){const _0x5d148f=_0x1e1deb;await this[_0x5d148f(0x25a)](_0x3754d3),_0x3754d3['activeSheet$'][_0x5d148f(0x119)](_0x3f75b0(this[_0x5d148f(0x413)]))['subscribe'](_0x132ca6=>{const _0x1dad28=_0x5d148f;_0x132ca6&&this[_0x1dad28(0x168)](_0x132ca6);}),this[_0x5d148f(0x3ed)]['urlChange$'][_0x5d148f(0x119)](_0x3f75b0(this[_0x5d148f(0x413)]))[_0x5d148f(0x3e0)](()=>this[_0x5d148f(0x25a)](_0x3754d3));}[_0x1e1deb(0x168)](_0x4baec9,_0x3565d0=!0x1){const _0x2270cb=_0x1e1deb,_0x583aa2=this['_urlService'][_0x2270cb(0x14a)](_0x2270cb(0x3fc));_0x4baec9['getSheetId']()!==_0x583aa2&&this['_urlService']['setParam']('subunit',_0x4baec9[_0x2270cb(0x2c2)](),_0x3565d0);}async['_updateSubUnitFromURLParams'](_0x46bcf2){const _0x3eda58=_0x1e1deb;var _0x1afcfc;const _0x5ce5cd=this['_urlService'][_0x3eda58(0x14a)](_0x3eda58(0x3fc));if(!_0x5ce5cd||!_0x46bcf2[_0x3eda58(0x2ee)](_0x5ce5cd)){const _0x183010=_0x46bcf2[_0x3eda58(0x1a6)]()[0x0],_0x2d2101=_0x46bcf2['getSheetBySheetId'](_0x183010);if(!_0x2d2101)return;this['_updateURLWithCurrentState'](_0x2d2101,!0x0),await this['_commandService'][_0x3eda58(0x3e7)](_0x2576c5['id'],{'unitId':_0x46bcf2['getUnitId'](),'subUnitId':_0x183010});return;}((_0x1afcfc=_0x46bcf2[_0x3eda58(0x39a)]())==null?void 0x0:_0x1afcfc[_0x3eda58(0x2c2)]())!==_0x5ce5cd&&await this[_0x3eda58(0x1fb)]['executeCommand'](_0x2576c5['id'],{'unitId':_0x46bcf2['getUnitId'](),'subUnitId':_0x5ce5cd});}async[_0x1e1deb(0x311)](_0x416964){const _0x5d73a4=_0x1e1deb;let _0x1a18ff=0x0;const _0x33cbd5=await this['_localCacheService']['loadOfflineData'](_0x416964);return _0x33cbd5&&(_0x33cbd5['awaitingChangeset']||_0x33cbd5['mutations'][_0x5d73a4(0x426)]!==0x0)&&(_0x1a18ff=_0x33cbd5[_0x5d73a4(0x209)]),_0x1a18ff===0x0&&this[_0x5d73a4(0x12a)][_0x5d73a4(0x1fc)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x5d73a4(0x40a)][_0x5d73a4(0x3fe)](_0x416964,_0x1a18ff);}async[_0x1e1deb(0x3ae)](_0x5b7308){const _0x4bf896=_0x1e1deb;let _0x22eff0=0x0;const _0x5abdbd=await this['_localCacheService'][_0x4bf896(0x329)](_0x5b7308);return _0x5abdbd&&(_0x5abdbd[_0x4bf896(0x22e)]||_0x5abdbd[_0x4bf896(0x357)][_0x4bf896(0x426)]!==0x0)&&(_0x22eff0=_0x5abdbd['rev']),_0x22eff0===0x0&&this[_0x4bf896(0x12a)][_0x4bf896(0x1fc)](_0x4bf896(0x189),_0x4bf896(0x16f)),this[_0x4bf896(0x40a)][_0x4bf896(0x280)](_0x5b7308,_0x22eff0);}};Fe=Xr([_0x3e0133(_0x1781f1[_0x1e1deb(0x3bd)],Fe),ue(0x0,xs),ue(0x1,_0x5f4df3),ue(0x2,_0x9845f),ue(0x3,_0x441fe2(D)),ue(0x4,_0x441fe2(_0x1e8d71)),ue(0x5,_0x16cd37(_0x182e1b))],Fe);var Jr=Object[_0x1e1deb(0x158)],zr=Object[_0x1e1deb(0x32c)],qr=(_0x280f13,_0x182afa,_0x5d3e0c,_0x18de35)=>{for(var _0x2263c3=_0x18de35>0x1?void 0x0:_0x18de35?zr(_0x182afa,_0x5d3e0c):_0x182afa,_0x54e851=_0x280f13['length']-0x1,_0x49440c;_0x54e851>=0x0;_0x54e851--)(_0x49440c=_0x280f13[_0x54e851])&&(_0x2263c3=(_0x18de35?_0x49440c(_0x182afa,_0x5d3e0c,_0x2263c3):_0x49440c(_0x2263c3))||_0x2263c3);return _0x18de35&&_0x2263c3&&Jr(_0x182afa,_0x5d3e0c,_0x2263c3),_0x2263c3;},cs=(_0x4ff45e,_0x219b4c)=>(_0x23a5cf,_0x47e372)=>_0x219b4c(_0x23a5cf,_0x47e372,_0x4ff45e);const Zr=_0x1e1deb(0x3b9),Qr=_0x1e1deb(0x183);let Ve=class extends _0xc94eea{constructor(_0x57c508,_0x23be06){const _0x1a6c62=_0x1e1deb;super(),this[_0x1a6c62(0x145)]=_0x57c508,this[_0x1a6c62(0x26b)]=_0x23be06,this[_0x1a6c62(0x37a)]();}[_0x1e1deb(0x37a)](){const _0x434d54=_0x1e1deb;this['disposeWithMe'](_0x4259e5(this['_univerInstanceService'][_0x434d54(0xfd)][_0x434d54(0x3e0)](()=>{const _0x1c7fa2=_0x434d54;var _0xb51369;const _0x174685=this[_0x1c7fa2(0x145)][_0x1c7fa2(0x228)]();let _0x5dbb1e=(_0xb51369=this[_0x1c7fa2(0x26b)][_0x1c7fa2(0x35c)](Zr))!=null?_0xb51369:Qr;_0x174685 instanceof _0x5a1e31&&(_0x5dbb1e=_0x174685[_0x1c7fa2(0x10e)]),document[_0x1c7fa2(0x244)]=_0x5dbb1e;})));}};Ve=qr([_0x3e0133(_0x1781f1[_0x1e1deb(0x249)],Ve),cs(0x0,_0x4902a5),cs(0x1,_0x5445a8)],Ve);var eo=Object[_0x1e1deb(0x158)],to=Object['getOwnPropertyDescriptor'],so=(_0x15125f,_0x502626,_0x507335,_0x41af40)=>{const _0x5f1573=_0x1e1deb;for(var _0x335fdb=_0x41af40>0x1?void 0x0:_0x41af40?to(_0x502626,_0x507335):_0x502626,_0x2d038f=_0x15125f[_0x5f1573(0x426)]-0x1,_0x62744d;_0x2d038f>=0x0;_0x2d038f--)(_0x62744d=_0x15125f[_0x2d038f])&&(_0x335fdb=(_0x41af40?_0x62744d(_0x502626,_0x507335,_0x335fdb):_0x62744d(_0x335fdb))||_0x335fdb);return _0x41af40&&_0x335fdb&&eo(_0x502626,_0x507335,_0x335fdb),_0x335fdb;},hs=(_0x1c81d3,_0x2ac7b9)=>(_0x21243f,_0x2db129)=>_0x2ac7b9(_0x21243f,_0x2db129,_0x1c81d3);let Rt=class{constructor(_0x217442,_0x5f30f9){const _0x59038a=_0x1e1deb;this['_configService']=_0x217442,this[_0x59038a(0x2d1)]=_0x5f30f9;}async[_0x1e1deb(0x309)](_0x4abab7,_0x5c61bb){const _0x1357ca=_0x1e1deb;var _0x1c849a;const {unitID:_0x36b1cc,type:_0x5d54c5,revision:_0x5f404c=0x0}=_0x5c61bb,_0x248159=this[_0x1357ca(0x1db)]()+'/'+_0x5d54c5+_0x1357ca(0x19e)+_0x36b1cc+_0x1357ca(0x303)+_0x5f404c,_0x244d3f=(await this[_0x1357ca(0x2d1)][_0x1357ca(0x10a)](_0x248159))['body'],_0x4677e9=(_0x1c849a=_0x244d3f[_0x1357ca(0x17c)])==null?void 0x0:_0x1c849a[_0x1357ca(0x30f)];if(_0x4677e9){const _0x5c0bfc=_0x4677e9==null?void 0x0:_0x4677e9[_0x1357ca(0x33d)],_0x234b86=_0x3faa9c[_0x1357ca(0x2b6)](_0x41bd2d(_0x5c0bfc));_0x4677e9[_0x1357ca(0x33d)]=_0x234b86,Object['entries'](_0x4677e9[_0x1357ca(0x331)])[_0x1357ca(0x23e)](([,_0x465410])=>{const _0x595597=_0x1357ca,_0x5134f1=_0x465410[_0x595597(0x33d)],_0x403ab6=_0x3faa9c['encode'](_0x41bd2d(_0x5134f1));_0x465410[_0x595597(0x33d)]=_0x403ab6;});}return _0x244d3f;}async[_0x1e1deb(0x39c)](_0x3be9e7,_0x367347){const _0x4d3200=_0x1e1deb,{unitID:_0xae3727,type:_0x52861d,blockID:_0x49deff}=_0x367347,_0x486564=this['_getAPIPrefix']()+'/'+_0x52861d+_0x4d3200(0x19e)+_0xae3727+'/block/'+_0x49deff;return(await this['_httpService']['get'](_0x486564))[_0x4d3200(0x434)];}async['fetchMissingChangesets'](_0xdb636b,_0x313032){const _0x243bac=_0x1e1deb,{unitID:_0x5aabe8,type:_0x4e2c16,from:_0x5a92e3,to:_0x2c4f76}=_0x313032,_0x4d314e=this[_0x243bac(0x34c)]()+'/'+_0x4e2c16+_0x243bac(0x19e)+_0x5aabe8+_0x243bac(0x1fa)+_0x5a92e3+_0x243bac(0x1b6)+_0x2c4f76;return(await this['_httpService'][_0x243bac(0x10a)](_0x4d314e))[_0x243bac(0x434)];}[_0x1e1deb(0x1db)](){const _0xbb3b60=_0x1e1deb;var _0x72421a;return(_0x72421a=this[_0xbb3b60(0x26b)]['getConfig'](cn))!=null?_0x72421a:this['_getAPIPrefix']();}[_0x1e1deb(0x34c)](){const _0x344aed=_0x1e1deb;var _0x4e45c8;return(_0x4e45c8=this['_configService'][_0x344aed(0x35c)](on))!=null?_0x4e45c8:an;}async[_0x1e1deb(0x25f)](_0x5ab554,_0x285625){const _0x3f93f8=_0x1e1deb,_0x5f46d3='/universer-api/snapshot/'+_0x285625[_0x3f93f8(0x2cc)]+_0x3f93f8(0x19e)+_0x285625[_0x3f93f8(0x370)]+'/resources';return(await this[_0x3f93f8(0x2d1)][_0x3f93f8(0x10a)](_0x5f46d3,{'params':{'resourceId':JSON[_0x3f93f8(0x32f)](_0x285625['resourceIDs'])}}))[_0x3f93f8(0x434)];}['saveSnapshot'](){const _0x5ba0bf=_0x1e1deb;throw new Error(_0x5ba0bf(0x3a5));}[_0x1e1deb(0x178)](){const _0x183c87=_0x1e1deb;throw new Error(_0x183c87(0x3a5));}[_0x1e1deb(0x140)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Rt=so([hs(0x0,_0x5445a8),hs(0x1,_0x441fe2(_0x34ef08))],Rt);var io=Object[_0x1e1deb(0x158)],no=Object['getOwnPropertyDescriptor'],ro=(_0x1452b2,_0x1e5a6e,_0xd640cf,_0x5ef52a)=>{const _0x493bab=_0x1e1deb;for(var _0x267e60=_0x5ef52a>0x1?void 0x0:_0x5ef52a?no(_0x1e5a6e,_0xd640cf):_0x1e5a6e,_0x43b008=_0x1452b2[_0x493bab(0x426)]-0x1,_0x49c055;_0x43b008>=0x0;_0x43b008--)(_0x49c055=_0x1452b2[_0x43b008])&&(_0x267e60=(_0x5ef52a?_0x49c055(_0x1e5a6e,_0xd640cf,_0x267e60):_0x49c055(_0x267e60))||_0x267e60);return _0x5ef52a&&_0x267e60&&io(_0x1e5a6e,_0xd640cf,_0x267e60),_0x267e60;},Pe=(_0x44aacb,_0xbc1b2c)=>(_0x1d804c,_0x52376d)=>_0xbc1b2c(_0x1d804c,_0x52376d,_0x44aacb);let Ot=class extends _0x3da1d9{constructor(_0x1f4175,_0x5ef20c,_0x2c397b,_0x5bb33f,_0x24e15c){const _0xb62b81=_0x1e1deb;super(_0x1f4175,_0x5ef20c,_0x2c397b),this[_0xb62b81(0x258)]=_0x5bb33f,this[_0xb62b81(0x12a)]=_0x24e15c;}[_0x1e1deb(0x2f2)](_0x198da2,_0x19b569){const _0x260ae1=_0x1e1deb,_0x2ac096=this['_getUndoStack'](_0x198da2);if(_0x2ac096)try{const _0x2f5762=this[_0x260ae1(0x33a)](_0x2ac096,_0x19b569);this[_0x260ae1(0x134)](_0x198da2,_0x2f5762);}catch(_0x5be885){this[_0x260ae1(0x12a)][_0x260ae1(0x1f8)](_0x260ae1(0x2f7),_0x5be885),this[_0x260ae1(0x2bf)](_0x198da2);}const _0x547600=this[_0x260ae1(0x191)](_0x198da2);if(_0x547600)try{const _0x187b46=this[_0x260ae1(0x33a)](_0x547600,_0x19b569);this[_0x260ae1(0x2b2)](_0x198da2,_0x187b46);}catch(_0xbe45cf){this[_0x260ae1(0x12a)][_0x260ae1(0x1f8)](_0xbe45cf),this[_0x260ae1(0x2e9)](_0x198da2);}}['_clearUndo'](_0x3359ea){const _0x2fbe63=_0x1e1deb,_0x380e28=this[_0x2fbe63(0x251)](_0x3359ea);_0x380e28&&(_0x380e28[_0x2fbe63(0x426)]=0x0,this[_0x2fbe63(0x353)]());}[_0x1e1deb(0x2e9)](_0x7d43ac){const _0x31f916=this['_getRedoStack'](_0x7d43ac);_0x31f916&&(_0x31f916['length']=0x0,this['_updateStatus']());}[_0x1e1deb(0x134)](_0x299506,_0x5d3f64){const _0x22df89=_0x1e1deb;this[_0x22df89(0x2a7)][_0x22df89(0x394)](_0x299506,_0x5d3f64),this[_0x22df89(0x353)]();}['_substituteRedoStack'](_0x1f1810,_0x34675a){const _0x3c279c=_0x1e1deb;this[_0x3c279c(0x37b)]['set'](_0x1f1810,_0x34675a),this[_0x3c279c(0x353)]();}[_0x1e1deb(0x33a)](_0x4536b6,_0x1b4b20){const _0x572fac=_0x1e1deb,_0x4d04d2=[];let _0x29fccb=_0x1b4b20,_0x1c71cf=_0x1b4b20;for(let _0x2a75c4=_0x4536b6[_0x572fac(0x426)]-0x1;_0x2a75c4>=0x0;_0x2a75c4--){const {unitID:_0x5a3210,undoMutations:_0x515979,redoMutations:_0x52c9bd}=_0x4536b6[_0x2a75c4],_0x1d51e1=this[_0x572fac(0x258)]['transformMutationsWithChangeset'](_0x29fccb,_0x515979),_0x23e11e=this[_0x572fac(0x258)][_0x572fac(0x3a3)](_0x1c71cf,_0x52c9bd);if(_0x5339fb(_0x1d51e1)||_0x5339fb(_0x23e11e)){this[_0x572fac(0x12a)][_0x572fac(0x1f8)](_0x572fac(0x2f7),_0x572fac(0x387),_0x1d51e1,_0x23e11e);break;}_0x29fccb=_0x1d51e1['c1Prime'],_0x1c71cf=_0x23e11e['c1Prime'],_0x4d04d2[_0x572fac(0x39d)]({'unitID':_0x5a3210,'undoMutations':_0x1d51e1[_0x572fac(0x2fa)],'redoMutations':_0x23e11e[_0x572fac(0x2fa)]});}return _0x4d04d2[_0x572fac(0x269)]();}};Ot=ro([Pe(0x0,_0x4902a5),Pe(0x1,_0x9845f),Pe(0x2,_0x3def4f),Pe(0x3,_0x1e0f5c),Pe(0x4,_0x5f4df3)],Ot);class oo extends _0x5b9cf1{constructor(){const _0x2f2309=_0x1e1deb;super(),l(this,_0x2f2309(0x1ab)),this[_0x2f2309(0x1ab)]=_0x1fd07d(window,_0x2f2309(0x20d))[_0x2f2309(0x119)](_0x3f75b0(this[_0x2f2309(0x413)]),_0xaffb9f(0x1),_0x497582(void 0x0));}[_0x1e1deb(0x3d7)](_0x50712a,_0x1ee5f8,_0x26b221=!0x1){const _0x2f639e=_0x1e1deb,_0x24c4b6=new URL(window[_0x2f639e(0x2f4)]['href']);_0x24c4b6[_0x2f639e(0x118)][_0x2f639e(0x394)](_0x50712a,_0x1ee5f8),_0x26b221?window[_0x2f639e(0x424)][_0x2f639e(0x21c)]('','',_0x24c4b6[_0x2f639e(0x400)]()):window['history'][_0x2f639e(0x335)]('','',_0x24c4b6[_0x2f639e(0x400)]());}['removeParam'](_0x2628fe,_0x438393=!0x1){const _0x1f8ce0=_0x1e1deb,_0x14e136=new URL(window['location'][_0x1f8ce0(0x111)]);_0x14e136[_0x1f8ce0(0x118)][_0x1f8ce0(0x36f)](_0x2628fe),_0x438393?window['history'][_0x1f8ce0(0x21c)]('','',_0x14e136['toString']()):window[_0x1f8ce0(0x424)][_0x1f8ce0(0x335)]('','',_0x14e136[_0x1f8ce0(0x400)]());}['getParam'](_0x3c9dfa){const _0x2f7dbb=_0x1e1deb;var _0x4fc706;return(_0x4fc706=new URL(window[_0x2f7dbb(0x2f4)][_0x2f7dbb(0x111)])[_0x2f7dbb(0x118)][_0x2f7dbb(0x10a)](_0x3c9dfa))!=null?_0x4fc706:void 0x0;}}const _t=_0x1e1deb(0x308),ao=_0x1e1deb(0x282),co=_0x1e1deb(0x151),we=0x6,ho=1.5,ut=0x4,lo=1.5,_o=_0x1e1deb(0x435);class ls{constructor(_0x10eccd,_0x2a0e67,_0x36714b,_0x484bcb){const _0x41e7b6=_0x1e1deb;l(this,_0x41e7b6(0x2d8),[]),l(this,_0x41e7b6(0x1e5),null),l(this,_0x41e7b6(0x2a3),null),l(this,_0x41e7b6(0x3ee),null),l(this,_0x41e7b6(0x1df),null),l(this,_0x41e7b6(0x12d),null),(this[_0x41e7b6(0x17b)]=_0x10eccd,this[_0x41e7b6(0x227)]=_0x2a0e67,this[_0x41e7b6(0x403)]=_0x36714b,this[_0x41e7b6(0x340)]=_0x484bcb,this[_0x41e7b6(0x136)]());}set[_0x1e1deb(0x1ef)](_0x361f75){const _0x2ac9b8=_0x1e1deb;_0x361f75?(this[_0x2ac9b8(0x3ee)]&&this[_0x2ac9b8(0x3ee)][_0x2ac9b8(0x389)](),this['_textBubble']&&this['_textBubble'][_0x2ac9b8(0x154)]()):(this[_0x2ac9b8(0x3ee)]&&this['_anchorDot'][_0x2ac9b8(0x154)](),this[_0x2ac9b8(0x2a3)]&&this['_textBubble'][_0x2ac9b8(0x389)]());}[_0x1e1deb(0x1de)](){const _0x432ac4=_0x1e1deb;for(const _0x4a3db9 of this[_0x432ac4(0x2d8)])_0x4a3db9[_0x432ac4(0x1de)]();this['_textBubble']&&this[_0x432ac4(0x2a3)][_0x432ac4(0x1de)](),this[_0x432ac4(0x3ee)]&&this['_anchorDot'][_0x432ac4(0x1de)](),this[_0x432ac4(0x1e5)]&&this[_0x432ac4(0x1e5)]['dispose'](),this[_0x432ac4(0x12d)]&&this[_0x432ac4(0x12d)]();}['_render'](){const _0x5a8dc8=_0x1e1deb;var _0x5bd4bc;const {_docSkeleton:_0xce096,_document:_0x4884dc}=this,{color:_0x12876e,name:_0x2c381b,ranges:_0x5cd29d}=this[_0x5a8dc8(0x17b)],_0x26f5c0=_0x4884dc[_0x5a8dc8(0x41a)](),{docsLeft:_0x42b46c,docsTop:_0x53581e}=_0x26f5c0,_0xbce8e3=new _0x23cfc5(_0x26f5c0,_0xce096);for(const {startOffset:_0x80f0e5,endOffset:_0x5dc4bb,collapsed:_0x233c7b,isActive:_0xf6a7a9}of _0x5cd29d){const _0x41a783=_0xce096[_0x5a8dc8(0x2a8)](_0x80f0e5),_0x26234a=_0xce096['findNodePositionByCharIndex'](_0x5dc4bb);if(_0xf6a7a9){const {contentBoxPointGroup:_0x21c0f2}=_0xbce8e3['getRangePointData'](_0x26234a,_0x26234a);if(_0x21c0f2[_0x5a8dc8(0x426)]===0x0)continue;this[_0x5a8dc8(0x12f)](_0x12876e,_0x21c0f2,_0x42b46c,_0x53581e,_0x2c381b),this[_0x5a8dc8(0x12d)]=this[_0x5a8dc8(0xff)]();}if(!_0x233c7b&&_0x41a783&&_0x26234a){if(_0x4e3ab9(_0x41a783,_0x26234a)){const _0x5f57d1=new _0x52f652(_0x26f5c0,_0xce096),{pointGroup:_0x8f8643}=(_0x5bd4bc=_0x5f57d1['getRangePointData'](_0x41a783,_0x26234a))!=null?_0x5bd4bc:{};if(_0x8f8643==null||_0x8f8643['length']===0x0)continue;this[_0x5a8dc8(0x21a)](_0x12876e,_0x8f8643,_0x42b46c,_0x53581e);}else{const {contentBoxPointGroup:_0x5d5d03}=_0xbce8e3[_0x5a8dc8(0x110)](_0x41a783,_0x26234a);if(_0x5d5d03[_0x5a8dc8(0x426)]===0x0)continue;this['_drawTextRange'](_0x12876e,_0x5d5d03,_0x42b46c,_0x53581e);}}}}['_drawAnchor'](_0x3524b8,_0x20d86b,_0x1af146,_0x262c54,_0xae6fe9){const _0x503508=_0x1e1deb,_0x3fe50b=this[_0x503508(0x18a)](_0x20d86b),{left:_0x208aa0,top:_0x1a8e7a,height:_0xdbffd5}=_0x3fe50b,_0x388bdb=this['_getScale'](),_0x17b3a8=lo/_0x388bdb,_0x322af9=new _0xb0d98f(_t+_0x4526c0['generateRandomId'](we),{'left':_0x208aa0+_0x1af146-_0x17b3a8,'top':_0x1a8e7a+_0x262c54,'height':_0xdbffd5,'width':ho,'fill':_0x3524b8||_0x2c779e(_0x5090fb[_0x503508(0x16c)],0x0),'strokeWidth':_0x17b3a8,'stroke':_o,'evented':!0x0});this['_anchor']=_0x322af9,this[_0x503508(0x227)][_0x503508(0x161)](_0x322af9,_0x261e5f);const _0x4b90e2=new _0xb0d98f(_t+_0x4526c0[_0x503508(0x259)](we),{'left':_0x208aa0+_0x1af146-_0x17b3a8,'top':_0x1a8e7a+_0x262c54-ut/0x2,'height':ut,'width':ut,'fill':_0x3524b8||_0x2c779e(_0x5090fb[_0x503508(0x16c)],0x0),'strokeWidth':0x0,'stroke':_0x3524b8||_0x2c779e(_0x5090fb[_0x503508(0x16c)],0x0),'evented':!0x1});this[_0x503508(0x3ee)]=_0x4b90e2,this['_scene'][_0x503508(0x161)](_0x4b90e2,_0x261e5f);const _0x4366bc=new it(_t+_0x4526c0[_0x503508(0x259)](we),{'left':_0x208aa0+_0x1af146-_0x17b3a8,'top':_0x1a8e7a+_0x262c54-Ue,'text':_0xae6fe9,'color':_0x3524b8});this[_0x503508(0x2a3)]=_0x4366bc,this['_scene'][_0x503508(0x161)](_0x4366bc,_0x261e5f),this[_0x503508(0x1ef)]=!0x1;}[_0x1e1deb(0xff)](){const _0x10f24e=_0x1e1deb,_0x525126=this[_0x10f24e(0x1e5)][_0x10f24e(0x1c8)][_0x10f24e(0x364)](()=>{const _0xe8e760=_0x10f24e;this[_0xe8e760(0x1ef)]=!0x0;}),_0x444691=this[_0x10f24e(0x1e5)]['onPointerLeave$'][_0x10f24e(0x364)](()=>{const _0xd466bd=_0x10f24e;this[_0xd466bd(0x1df)]&&clearTimeout(this['_hideTimer']),this[_0xd466bd(0x1df)]=setTimeout(()=>{const _0x42399a=_0xd466bd;this[_0x42399a(0x1ef)]=!0x1;},0x7d0);});return()=>{const _0x2fc9dc=_0x10f24e;_0x525126[_0x2fc9dc(0x376)](),_0x444691[_0x2fc9dc(0x376)]();};}[_0x1e1deb(0x327)](_0x21df58,_0x261408,_0x309978,_0x2e1957){const _0x2d2f25=_0x1e1deb,_0x5e42f3=new _0x1d709d(_0x21df58)[_0x2d2f25(0x1cb)](0.2)[_0x2d2f25(0x10b)](),_0x2f8150=new _0x3fb47a(ao+_0x4526c0[_0x2d2f25(0x259)](we),{'pointsGroup':_0x261408,'fill':_0x5e42f3||_0x2c779e(_0x5090fb[_0x2d2f25(0x16c)],0.2),'left':_0x309978,'top':_0x2e1957,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2d2f25(0x2d8)][_0x2d2f25(0x39d)](_0x2f8150),this[_0x2d2f25(0x227)][_0x2d2f25(0x161)](_0x2f8150,_0x261e5f);}[_0x1e1deb(0x21a)](_0x546779,_0x52d491,_0x1550c5,_0x424bda){const _0x97ff82=_0x1e1deb,_0x27dc54=new _0x1d709d(_0x546779)[_0x97ff82(0x1cb)](0.2)[_0x97ff82(0x10b)](),_0x265569=new _0x3fb47a(co+_0x4526c0[_0x97ff82(0x259)](we),{'pointsGroup':_0x52d491,'fill':_0x27dc54||_0x2c779e(_0x5090fb['black'],0.2),'left':_0x1550c5,'top':_0x424bda,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x97ff82(0x39d)](_0x265569),this['_scene'][_0x97ff82(0x161)](_0x265569,_0x261e5f);}[_0x1e1deb(0x18a)](_0x463cb1){const _0x4b5703=_0x463cb1[0x0],_0xb40da1=_0x4b5703[0x0],_0x23a388=_0x4b5703[0x2],{x:_0x1f185c,y:_0x3963a7}=_0xb40da1,{x:_0x24a21a,y:_0x3fe9f6}=_0x23a388;return{'left':_0x1f185c,'top':_0x3963a7,'width':_0x24a21a-_0x1f185c,'height':_0x3fe9f6-_0x3963a7};}[_0x1e1deb(0x3b6)](){const _0x1bf155=_0x1e1deb,{scaleX:_0x1c261d,scaleY:_0x1220ef}=this['_scene'][_0x1bf155(0x197)]();return Math[_0x1bf155(0x274)](_0x1c261d,_0x1220ef);}}var uo=Object[_0x1e1deb(0x158)],mo=Object['getOwnPropertyDescriptor'],fo=(_0x2fd6a0,_0x1b703e,_0x43bc04,_0x3b2e09)=>{const _0x57f08e=_0x1e1deb;for(var _0x4300c7=_0x3b2e09>0x1?void 0x0:_0x3b2e09?mo(_0x1b703e,_0x43bc04):_0x1b703e,_0x4bca6d=_0x2fd6a0[_0x57f08e(0x426)]-0x1,_0x9c390e;_0x4bca6d>=0x0;_0x4bca6d--)(_0x9c390e=_0x2fd6a0[_0x4bca6d])&&(_0x4300c7=(_0x3b2e09?_0x9c390e(_0x1b703e,_0x43bc04,_0x4300c7):_0x9c390e(_0x4300c7))||_0x4300c7);return _0x3b2e09&&_0x4300c7&&uo(_0x1b703e,_0x43bc04,_0x4300c7),_0x4300c7;},je=(_0xc07444,_0x8872e8)=>(_0x120429,_0xbd9e49)=>_0x8872e8(_0x120429,_0xbd9e49,_0xc07444);let Be=class extends _0x5b9cf1{constructor(_0x44b30b,_0x10905a,_0x5da8f4,_0x5109a0,_0x59d2d5){const _0x4fc687=_0x1e1deb;super(),l(this,'_cursorShapes',[]),l(this,_0x4fc687(0x18b),[]),(this[_0x4fc687(0x428)]=_0x44b30b,this[_0x4fc687(0x338)]=_0x10905a,this['_collabCursorController']=_0x5da8f4,this[_0x4fc687(0x1fb)]=_0x5109a0,this[_0x4fc687(0x281)]=_0x59d2d5,this[_0x4fc687(0x37a)]());}[_0x1e1deb(0x37a)](){const _0x1c8e27=_0x1e1deb,_0x5f02c3=this['_context'][_0x1c8e27(0x439)],_0x301ef6=this[_0x1c8e27(0x338)];this[_0x1c8e27(0x32e)](_0x1a6529([this[_0x1c8e27(0x307)]['getCollabCursors$'](_0x5f02c3),this[_0x1c8e27(0x281)]['currentTheme$']])[_0x1c8e27(0x119)](_0x5ac769(([_0x5175ce,_0x31db80])=>({'skeleton':_0x301ef6[_0x1c8e27(0x176)](),'cursors':[..._0x5175ce[_0x1c8e27(0x1ec)]()][_0x1c8e27(0x268)](_0x30a1e5=>({..._0x30a1e5,'color':_0x31db80[_0x30a1e5[_0x1c8e27(0x39f)]]}))})))[_0x1c8e27(0x3e0)](_0x35a2b7=>{const _0x1b9da4=_0x1c8e27;if(this[_0x1b9da4(0x383)](),_0x35a2b7){const {skeleton:_0x21ebe1,cursors:_0x567ac1}=_0x35a2b7;this['_updateCollabCursors'](_0x21ebe1,_0x567ac1);}})),this['_initResize'](),this[_0x1c8e27(0x36a)]();}[_0x1e1deb(0x31e)](_0x281ade,_0x165566){const _0x533def=_0x1e1deb,{scene:_0x27caf7,mainComponent:_0x4bcdb9}=this[_0x533def(0x428)],_0x393cbc=_0x165566[_0x533def(0x230)](_0x1b74d0=>new ls(_0x1b74d0,_0x27caf7,_0x281ade,_0x4bcdb9));this['_cursorShapes']=_0x393cbc,this['_cursors']=_0x165566;}[_0x1e1deb(0x425)](){const _0x171314=_0x1e1deb;this[_0x171314(0x383)]();const {scene:_0x6a3993,mainComponent:_0x2d3d30}=this[_0x171314(0x428)],_0x346d49=this[_0x171314(0x338)][_0x171314(0x176)](),_0x387ce7=this['_cursors'][_0x171314(0x230)](_0x429713=>new ls(_0x429713,_0x6a3993,_0x346d49,_0x2d3d30));this[_0x171314(0x150)]=_0x387ce7;}[_0x1e1deb(0x383)](){const _0x2e6ea6=_0x1e1deb;this[_0x2e6ea6(0x150)][_0x2e6ea6(0x23e)](_0x49124b=>_0x49124b[_0x2e6ea6(0x1de)]()),this[_0x2e6ea6(0x150)]=[];}['_initCommandExecutedListener'](){const _0x2a3cbd=_0x1e1deb,_0xda4e21=[_0x21025d['id']];this[_0x2a3cbd(0x32e)](this[_0x2a3cbd(0x1fb)][_0x2a3cbd(0x250)](_0x1b5270=>{const _0x305795=_0x2a3cbd;_0xda4e21[_0x305795(0x23a)](_0x1b5270['id'])&&_0x1b5270[_0x305795(0x42b)][_0x305795(0x439)]===this[_0x305795(0x428)]['unitId']&&this['_refreshCollabCursors']();}));}[_0x1e1deb(0x30c)](){const _0x1d78de=_0x1e1deb;this['disposeWithMe'](_0x3cb543(this[_0x1d78de(0x428)][_0x1d78de(0x313)][_0x1d78de(0x252)])[_0x1d78de(0x119)](_0x190413(_0x36b30c=>_0x36b30c['type']===_0x3aecba[_0x1d78de(0x1ad)]),_0x4faae9(0x10))[_0x1d78de(0x3e0)](()=>{const _0x49e7de=_0x1d78de;this[_0x49e7de(0x425)]();}));}};Be=fo([_0x3e0133(_0x1781f1[_0x1e1deb(0x2ed)],Be),je(0x1,_0x441fe2(_0x1b04a5)),je(0x2,_0x441fe2(ge)),je(0x3,_0x9845f),je(0x4,_0x441fe2(_0x5af768))],Be);function _0x48fb(){const _0x313528=['transformMutationsWithChangeset','objectActions','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','onlineStatusIcon','_initStatusComponent','_collaborationController','_change$','onlineStatusTitle','JOINING','LICENSE_EXPORT_SIZE_EXCEEDED','selection','_loadDoc','/universer-api/comb','subUnitId','_lockTransition','LICENSE_IMPORT_SIZE_EXCEEDED','width','_acknowledgedAwaitingChangeset','permissionRejEvent','_getScale','_rescheduleHeartbeatEvent','_socket$','DEFAULT_FILE_NAME','updatePermissionPoint','HEADER_MENU','_initStatusListener','Starting','getMemberID','assignAColorForMemberID','_collaborationSessionService','interceptor','ONLINE','_transformIMECache','[CollaborationSessionService]:\x20socket\x20error','RECV','FETCH_MISS','image/gif','_startSheetCollabCursor','MoveRangeCommandId','LEAVE','_transformRemoteChangesetByIMECache','evenodd','next','_sendHeartbeat','getUnitId','UNIVER_SHEET','session.collaboration-timeout','getInterceptPoints','_initCloseConn','socket\x20close','children','liveShareNewHost','setParam','univer-online-status-icon','isActive','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','init','drawWith','_notificationService','csRejEvent','font','subscribe','[UniverCollaborationClientPlugin]','getActiveRange','allowed','_cachedData','_onUserLeave','_setupSubUnitSync','executeCommand','reject','transformChangesets','_singleActiveUnitService','addObjects','uni.network.url-service','_urlService','_anchorDot','setInterval','transform','_members','pending','InsertColCommandId','unload','/-/object/-/batch_allowed','objects','saveImage','_transformSelections','transformRemoteChangeset','_removeRoom','CHANGESET_REJ','subunit','filter','loadSheet','onSyncEditingCollabCursor','toString','/universer-api/snapshot','CHANGESET_ACK','_docSkeleton','RemoveColCommandId','getTypeOfUnitAdded$','_exhaustRemoteChangesetQueue','_syncEditingCollabCursor','function','send','_snapshotService','clipPath','triggerDblclick','session.room-full','syncEditingCollabCursor','_onMessage','HEARTBEAT','_range','doc.mutation.rich-text-editing','dispose$','min','fetching\x20missing\x20changesets\x20from\x20','#fff','_tryEnsureSocket','unit','DeleteRangeMoveLeftCommandId','getOffsetConfig','UNIVER_SLIDE','LOCAL_CACHE_INTERVAL','restore','extend','_onConnectionFailed','INGEST','roomMembers$','MSG_FOR_ERROR','_waitCount','history','_refreshCollabCursors','length','from','_context','backgroundColor','override','params','members','[CollaborationSessionService]','getRoom','_cursorInfo$','cursorInfo$','[PendingState]:\x20received\x20acknowledgement.','_injector','complete','body','rgba(255,\x20255,\x20255,\x200.01)','PERMISSION_REJ','_toggleOffline','sheetID','unitId','infoRsp','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','focused$','onTransformSelections','_handleHover','_retryConnectingTimer','ERROR_IMAGE','_name','json','_onUserJoin','NOT_COLLAB','\x20-\x20','getValue','9nTpKTq','_scheduleHeartbeat','get','toRgbString','POST','_draw','name','_replaceFileID','getRangePointData','href','fillRule','_labelPosition','concat','_localStorageService','createInstance','isArray','searchParams','pipe','add','m1Prime','responseType','_handleJoinEvent','session','_socketReady','COLLAB_SUBMIT_CHANGESET_URL','/object/','YUUMI_UNABLE_LOAD_URL','NOT_FOUND','clear','_unlockTransition','revision','_onRemoteChangeset','_state$','cmd','_logService','getTime','[CollaborationState]:\x20apply\x20error!','_eventUnsubscribe','use','_drawAnchor','_messageService','objectType','_online','collabStatus.synced','_substituteUndoStack','_queuedRemoteChangesets','_render','transformSelections','collabCursorState$','LIVESHARE_FETCH_OPERATIONS','toggleOnline','className','translate(.97)','LICENSE_DISTRO_REJECTED','_memberService','readAsDataURL','saveChangeset','_event$','conflict','sessionStatus','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_univerInstanceService','onload','onlineStatus','liveShareOperation','_getCurrentRevision','getParam','fillText','_scheduleCollaborationTimeoutTimer','collaboratorID','asObservable','JOIN','_cursorShapes','collab-rect-range-','deepClone','3963470poEgnt','show','_hovered','_commentUpdate$','0\x200\x2016\x2016','defineProperty','string','_lastPointer','list','onSendChangeset','Warning','FETCH_MISSING','actions','getWorkbookSelections','addObject','append','withCredentials','\x20in\x20_schedule.','_getSignURL','putCollaborators','onPointerMove$','_updateURLWithCurrentState','_disableEditing','/collaborator','off-line-single','black','measureText','_replayCachedMutations','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','none','SHOULD_CLOSE_CONN','FromArray','MUTATION','_sheetTransformSelectionsService','image/bmp','getSkeleton','_registerDependencies','saveSheetBlock','setWaitCount','NO_OTHER_CLIENTS_EDITING','_cursor','snapshot','enableAuthServer','UNKNOWN_CMD','createSocket','symbol','SUBMIT_CHANGESET','getUnitType','Univer','fetchThroughInterceptors','_docTransformIMECacheService','socketService','_onConnectionOpen','_session','[DataLoaderController]','_getAnchorBounding','_cursors','labelPosition','_transformUndoredo','_scheduleClearOtherTimer','_snapshotServerService','submit\x20changeset\x20error!','_getRedoStack','_userManagerService','connection\x20error','clearInterval','_state','indexOf','getAncestorScale','_schedule','whenReady','not_collab','collabStatus.syncing','getCollabCursors$','getItem','/unit/','event$','UNIVER_COLLABORATION_CLIENT_PLUGIN','_createInitialState','substring','APPLY_REJECT','_onRemoteRejected','CONNECTOR_DATA_TOO_LARGE','getUnhiddenWorksheets','conflict.content','colorChannel1','ws://127.0.0.1:8000/universer-api/comb/connect','_http','urlChange$','_executeRemoteChangeset','resize','_remoteChangesetQueue','src','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','UNRECOGNIZED','_ensureSubject','COMPRESS_MUTATION_APPLY','size','SNAPSHOT_URL_KEY','&to=','AWAITING_WITH_PENDING','_getMergeRange','_socketService','c1Prime','LIVESHARE_TERMINATE','1em','_handleLeaveEvent','endRow','{fileID}','INVALID_ARGUMENT','endColumn','prototype','univer-offline','confirm','onTransformRemoteChangesetByIMECache','M0\x200H16V16H0z','UNIVER_DOC','onPointerEnter$','pauseCollaboration','_submitChangeset','setAlpha','getUndoRedoMutationParamsCache','_roomMembers$','catch','contains','_undoRedoService','socket\x20open.','1028130wtKxYy','getCollabEntity$','_imageSourceCache','code','registerRefRange','slice','_getCtorByUniverType','fetchMissingChangesets','_getAPIPrefixPath','_getSnapshotAPIPrefix','LIVESHARE_OPERATION','_ws','dispose','_hideTimer','univer-pro.collaboration-client-socket-service','parse','_id','has','encodeURIComponent','_anchor','trim','805LyhGIC','then','_scheduleTimestamp','currentColor','_permissionService','values','338yrKBja','onStarting','_hover','916455TxfTlp','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_localCacheService','/universer-api/authz','getViewport','RETRY_CONNECTING_MAX_COUNT','_timeoutTimer','row','error','awaiting_with_pending','/fetchmissing?from=','_commandService','debug','_decreaseWaiting','registerBeforeClose','AUTHZ_URL_KEY','status$','getImage','getCurrentRevForDocument','textRanges','enableOfflineEditing','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','attrs','UPDATE_PERMISSION_OBJ','storage','rev','replace','idSuffix','getCurrentUser','popstate','...','[CollaborationEntity]','SEND_CHANGESET_TIMEOUT','_createSocket','baseRev','objectID','_onFetchMissResult','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','random','permission.content','transformIMECache','_unitOnClients','_drawRectRange','_sessions','replaceState','UPDATE_CURSOR','UNKNOWN_CODE','IDLE','sessionStatus$','auth.needGotoLoginAlert','updateCollaborator','_initMergeInterceptor','/universer-api/oidc/authpage','_toggleOnline','FileId','_scene','getFocusedUnit','state$','/universer-api/file/{fileID}/sign-url','_incrementRevisionNumber','3243TLrxeF','_updateLocalCursor','awaitingChangeset','onCommentUpdate','map','_colorAssignService','icon','_backgroundColor','UNIVER_UNKNOWN','22986fnXIJj','startColumn','_uiPartsService','removeMember','HEARTBEAT_TIMEOUT','includes','_getSheetObject','_pendingMutations','SYNCED','forEach','updateMember','startsWith','_initUnitPermissionChange','csAckEvent','listRoles','title','setTimeout','hasOwnProperty','changesets','fill','Ready','_clearOtherTimers','round','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','column','currentTheme$','collaMsg','onCommandExecuted','_getUndoStack','onTransformChange$','_heartbeatTimer','xlink:href','[PendingState]:\x20received\x20rejection.','newValue','current','_transformService','generateRandomId','_updateSubUnitFromURLParams','onRemoteChangeset','0\x200\x2017\x2016','roomMembers','USERS_LEAVE','getResourcesRequest','image/jpeg','_handleEvent','newCsEvent','defIds','onRendered','data','_sendingTimer','TOO_MANY_REQUESTS','flatMap','reverse','[OfflineState]:\x20received\x20acknowledgement.','_configService','RemoveRowCommandId','defs','_collabCursorState$','failed\x20to\x20apply\x20missed\x20changesets!','onlyLocal','fillStyle','_entities','replaceTextRanges','max','blue400','getVpScrollXYInfoByPosToVp','_handleHeartbeatEvent','disableLocalCache','univer-online','shouldCloseConn','_beforeCloseService','image/jpg','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','closePath','roomInfos','loadDoc','_themeService','collab-text-range-','memberID','LICENSE_MAX_UNITS_EXCEEDED','YUUMI_URL_COL_OUT_OF_RANGE','_sessionStatus$','selections','OTHER_CLIENTS_EDITING','_retryCount','_colorIndex','setItem','_setupBeforeClosingHandler','_initModules','Unknown\x20user','_createInitialStateImpl','[FetchMissState]','offline','fromCollab','pluginName','/new_changes','onMouseMove','_sendHeartbeatTimer','HEARTBEAT_INTERVAL','getCurrent','lineTo','collabStatus.conflict','_scheduleSaving','_docSyncEditingCollabCursorService','/-/object/list','_docTransformSelectionsService','USERS_ENTER','displayName','split','_onCursorDelete','_textBubble','_syncEditingCollabCursorService','getOwnPropertySymbols','_HTTPService','_undoStacks','findNodePositionByCharIndex','_onJoinRoomEvent','_color','LIVESHARE_REQUEST_HOST','getUnitStatus$','closeSession','arc','_renderManagerService','_selfUnitIDs','fetch_missing','_substituteRedoStack','online','updateOfflineData','_collaborationTimeoutTimer','encode','SNAPSHOT_HAS_BEEN_REMOVED','_refRangeService','unshift','on-line-single','ALREADY_EXISTS','error$','path','getImageSourceCache','_clearUndo','localeService','startRow','getSheetId','RETRY_CONNECTING_INTERVAL','gold400','LIVESHARE_NEW_HOST','requireSession','ACTIVE_UNIT_EVENT_CHANNEL','exhaustSavingTask','_unitID','_showConflictNotification','2103804dZmSdw','type','_clearTimeoutTimer','text','_roomMembers','enableSingleActiveInstanceLock','_httpService','onTransformIME','transformMutation','_collaborationPaused','session.connection-failed','_revisionService','find','_shapes','unknown','top','action','CONFLICT','toggleOffline','_send','_socketMessageSubscription','YUUMI_SUBSCRIPTION_NOT_FOUND','height','message$','_isPermissionRej','COMMENT_UPDATE','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','tag','_onRefRangeChange','save','_clearRedo','_status$','2388208RnnXjJ','svg','Steady','getSheetBySheetId','PENDING','_sheetSkeletonManagerService','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','transformUndoRedo','_onLocalMutation','location','PERMISSION_DENIED','_joinRoom','[CollaborationUndoRedoService]','eventID','editingUnit','m2Prime','call','assign','close','UNAUTHENTICATED','PSEUDO_FETCH_MISSING_RESULT','_createHandler','_removeClearOtherTimer','?url=','/rev/','_registerRenderDependencies','propertyIsEnumerable','resolve','_collabCursorController','collab-text-anchor-','getUnitOnRev','COLLAB_WEB_SOCKET_URL','url','_initResize','cursorInfo','conflict.title','workbook','getCurrentSelections','_loadSheet','_compressMutationService','engine','userID','\x0aAfter:\x20','InsertRangeMoveDownCommandId','_config','collabStatus.notCollab','_checkMissing','INTERNAL_ERROR','_fetchMissChangesets','file','registerHTTPInterceptor','_updateCollabCursors','getDocRanges','_disabled','APPLY_PERMISSION_DENIED','_transitionLocked','_transformPreviousActiveRange','joinRsp','_entityInit$','COMPLETION_FINISHED','_drawTextRange','OFFLINE','loadOfflineData','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_updateLocalCache','getOwnPropertyDescriptor','isPermissionRej','disposeWithMe','stringify','_updateState','sheets','_awaitingChangeset','roles','addImageSourceCache','pushState','collaboration.single-unit.warning','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_docSkeletonManagerService','clearTimeout','_transformStack','VIEW_MAIN','Error','originalMeta','BASE64','_type','_document','_collabSessionService','target','APPLY_REVISION_CONFILICT','COMPRESS_MUTATION_SEND','ranges','_getUploadFileURL','SNAPSHOT_SERVER_URL_KEY','isEditing','routeKey','verdancy600','_socket','_getAPIPrefix','_scheduleReconnection','close$','onMissingChangesets','createElement','getUniverSheetInstance','_onCursorUpdate','_updateStatus','_saveTaskMap','_clearScheduledTask','status','mutations','post','_onConflict','[SyncedState]:\x20received\x20acknowledgement.','_startDocCollabCursor','getConfig','on-line-single_clip0_910_349','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','sheetId','_clearHeartbeatTimer','_transformUndoRedoStack','_getSendChangesetTimeout','getTypeOfUnitDisposed$','subscribeEvent','commentUpdate$','_unitStatus','_localeService','synced','red300','_initCommandExecutedListener','_assignedColors','div','beginPath','UNDEFINED','delete','unitID','[OfflineState]:\x20received\x20rejection.','resend','_handler','appendMutation','patch','unsubscribe','_clearLocalCache','APPLY_NON_SEQUENTIAL_REVISION','onRemoteAck','_init','_redoStacks','method','_commentService','onRemoteRej','HELLO','setCurrentUser','compose','_applyRemoteChangeset','_removeCollabCursors','setShapeProps','/allowed','open$','transformStack\x20failed!','FAIL','hide','requestParams','purple300','NEW_CHANGESETS','create','save\x20fail\x20reason\x20is\x20','_startCollaboration','collabStatus.fetchMiss','YUUMI_RATE_OVER_LIMIT','change$','put','set','ERROR_IMAGE_TYPE','UUID','addEventListener','UniverIcon','joinEvent','getActiveSheet','_clearCollaborationTimeoutTimer','getSheetBlock','push','_saveCache','color','getMember','every','awaiting'];_0x48fb=function(){return _0x313528;};return _0x48fb();}var go=Object[_0x1e1deb(0x158)],So=Object[_0x1e1deb(0x32c)],po=(_0x8440c6,_0x3dc453,_0x456eeb,_0x39eb3b)=>{for(var _0xccc40b=_0x39eb3b>0x1?void 0x0:_0x39eb3b?So(_0x3dc453,_0x456eeb):_0x3dc453,_0xad14ef=_0x8440c6['length']-0x1,_0x277943;_0xad14ef>=0x0;_0xad14ef--)(_0x277943=_0x8440c6[_0xad14ef])&&(_0xccc40b=(_0x39eb3b?_0x277943(_0x3dc453,_0x456eeb,_0xccc40b):_0x277943(_0xccc40b))||_0xccc40b);return _0x39eb3b&&_0xccc40b&&go(_0x3dc453,_0x456eeb,_0xccc40b),_0xccc40b;},dt=(_0x1b153b,_0x383563)=>(_0x2f09fa,_0x4ff221)=>_0x383563(_0x2f09fa,_0x4ff221,_0x1b153b);let Qe=class{constructor(_0x3690d1,_0x4c346a,_0x14e04e){const _0x263b51=_0x1e1deb;this[_0x263b51(0x26b)]=_0x3690d1,this['_httpService']=_0x4c346a,this[_0x263b51(0x2c0)]=_0x14e04e,this['init']();}['init'](){const _0x364257=_0x1e1deb;this[_0x364257(0x2d1)][_0x364257(0x31d)]({'priority':0x1,'interceptor':(_0x29295f,_0x566720)=>_0x566720(_0x29295f)[_0x364257(0x119)](_0x4ff395(async _0xd368a6=>{const _0x2a1264=_0x364257,_0x57cd53=_0xd368a6;if(_0x57cd53[_0x2a1264(0x356)]===0x191&&window[_0x2a1264(0x1c4)](this[_0x2a1264(0x2c0)]['t'](_0x2a1264(0x221)))){const _0x5379d8=window[_0x2a1264(0x1e4)](window[_0x2a1264(0x2f4)][_0x2a1264(0x111)]);window[_0x2a1264(0x2f4)][_0x2a1264(0x111)]=this['_getLoginPath']()+_0x2a1264(0x302)+_0x5379d8;}return _0x57cd53;}))});}['_getLoginPath'](){const _0x5818ab=_0x1e1deb;var _0x38c57e;return(_0x38c57e=this['_configService'][_0x5818ab(0x35c)](bn))!=null?_0x38c57e:Tn;}};Qe=po([dt(0x0,_0x5445a8),dt(0x1,_0x441fe2(_0x34ef08)),dt(0x2,_0x441fe2(_0x2cfe85))],Qe);var vo=Object[_0x1e1deb(0x158)],Io=Object[_0x1e1deb(0x32c)],Eo=(_0x4681fd,_0x30550a,_0x2613bb,_0x2fd22e)=>{const _0x36de3b=_0x1e1deb;for(var _0x39e0ce=_0x2fd22e>0x1?void 0x0:_0x2fd22e?Io(_0x30550a,_0x2613bb):_0x30550a,_0x4d6d4f=_0x4681fd[_0x36de3b(0x426)]-0x1,_0x4ce219;_0x4d6d4f>=0x0;_0x4d6d4f--)(_0x4ce219=_0x4681fd[_0x4d6d4f])&&(_0x39e0ce=(_0x2fd22e?_0x4ce219(_0x30550a,_0x2613bb,_0x39e0ce):_0x4ce219(_0x39e0ce))||_0x39e0ce);return _0x2fd22e&&_0x39e0ce&&vo(_0x30550a,_0x2613bb,_0x39e0ce),_0x39e0ce;},_s=(_0x56b7c1,_0x37b34a)=>(_0x494a87,_0x34379a)=>_0x37b34a(_0x494a87,_0x34379a,_0x56b7c1);const Co=_0x1e1deb(0x1ff),bo=_0x1e1deb(0x1f3);let Dt=class extends _0xc94eea{constructor(_0x21d1bf,_0x5d4d8f){const _0x2c2d13=_0x1e1deb;super(),this[_0x2c2d13(0x2a6)]=_0x21d1bf,this[_0x2c2d13(0x26b)]=_0x5d4d8f,this[_0x2c2d13(0x223)]();}[_0x1e1deb(0x223)](){const _0x410e64=_0x1e1deb,_0x111159=this;this[_0x410e64(0x32e)](this[_0x410e64(0x2a6)][_0x410e64(0x31d)]({'priority':0x3e7,'interceptor':_0x57c1a3({'isMatch'(_0x342ccd){const _0x1bcd12=_0x410e64;var _0x293a05;if(_0x342ccd[_0x1bcd12(0x37c)]===_0x1bcd12(0x10c)&&((_0x293a05=_0x342ccd[_0x1bcd12(0x38a)])!=null&&_0x293a05['body'])){const {objectID:_0x209144,objectType:_0x31bcc3}=_0x342ccd[_0x1bcd12(0x38a)][_0x1bcd12(0x434)]||{};if(!_0x209144||_0x31bcc3===void 0x0)return!0x1;const _0x2a4188=_0x111159['_getAPIPrefixPath']()+'/'+_0x31bcc3+_0x1bcd12(0x121)+_0x209144+_0x1bcd12(0x385);if(_0x342ccd[_0x1bcd12(0x30b)]===_0x2a4188)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5832ea){const _0x5e39bf=_0x410e64;var _0x47428e;return(_0x47428e=_0x5832ea[_0x5e39bf(0x38a)])==null?void 0x0:_0x47428e[_0x5e39bf(0x434)];},'mergeParamsToRequest'(_0x393289,_0x3ee5be){const _0x49eb18=_0x410e64,_0x753e8f=_0x111159[_0x49eb18(0x1da)]()+'/-/object/-/batch_allowed',_0x920126=_0x393289['reduce']((_0x150d1b,_0x3acba8)=>{const _0x433a4e=_0x49eb18,{unitID:_0x355f14,objectID:_0x123699,objectType:_0x1b0e2a,actions:_0x4a3a5f}=_0x3acba8;return _0x150d1b[_0x355f14]||(_0x150d1b[_0x355f14]={}),_0x150d1b[_0x355f14][_0x123699]||(_0x150d1b[_0x355f14][_0x123699]={'objectID':_0x123699,'objectType':_0x1b0e2a,'actions':[]}),_0x150d1b[_0x355f14][_0x123699][_0x433a4e(0x15f)][_0x433a4e(0x39d)](..._0x4a3a5f),_0x150d1b;},{}),_0x5ae5ac=[];for(const _0x3da7a1 in _0x920126)for(const _0x59472f in _0x920126[_0x3da7a1]){const {actions:_0x2671e1,objectType:_0x5135e6}=_0x920126[_0x3da7a1][_0x59472f],_0x28b33c=[...new Set(_0x2671e1)];_0x5ae5ac[_0x49eb18(0x39d)]({'unitID':_0x3da7a1,'objectID':_0x59472f,'objectType':_0x5135e6,'actions':_0x28b33c});}return new _0x3f5fe8(_0x49eb18(0x10c),_0x753e8f,{'headers':_0x3ee5be['headers'],'withCredentials':_0x3ee5be[_0x49eb18(0x163)],'responseType':_0x3ee5be[_0x49eb18(0x11c)],'body':{'requests':_0x5ae5ac}});}},{'distributeResult'(_0x41bd78,_0x27df9f){const _0xa61491=_0x410e64,{objectActions:_0x35ee39}=_0x41bd78;return _0x27df9f[_0xa61491(0x230)](_0x260a09=>{const _0x2c5f69=_0xa61491,{unitID:_0x39f3ca,objectID:_0x583373,actions:_0x4c0643}=_0x260a09,_0xf94f30=_0x35ee39['find'](_0x57084e=>_0x57084e['unitID']===_0x39f3ca&&_0x57084e[_0x2c5f69(0x213)]===_0x583373),_0xe13816=_0x4c0643['map'](_0x437cd2=>_0xf94f30==null?void 0x0:_0xf94f30['actions'][_0x2c5f69(0x2d7)](_0x17bffc=>_0x17bffc[_0x2c5f69(0x2db)]===_0x437cd2))[_0x2c5f69(0x3fd)](_0xde5c47=>!!_0xde5c47);return{'config':_0x260a09,'result':{'actions':_0xe13816,'error':_0x41bd78[_0x2c5f69(0x1f8)]}};});}})}));}[_0x1e1deb(0x1da)](){const _0x369a51=_0x1e1deb;var _0x3abd10;return(_0x3abd10=this[_0x369a51(0x26b)]['getConfig'](Co))!=null?_0x3abd10:bo;}async[_0x1e1deb(0x38d)](_0x369c16){const _0x1366ae=_0x1e1deb,_0x130277=this[_0x1366ae(0x1da)]()+'/'+_0x369c16['objectType']+'/object';return(await this['_HTTPService']['post'](_0x130277,{'body':_0x369c16}))[_0x1366ae(0x434)][_0x1366ae(0x213)]||'';}async[_0x1e1deb(0x15b)](_0x2b5b85){const _0x2ae2bd=_0x1e1deb,_0x527a73=this['_getAPIPrefixPath']()+_0x2ae2bd(0x29d);return(await this[_0x2ae2bd(0x2a6)]['post'](_0x527a73,{'body':_0x2b5b85}))[_0x2ae2bd(0x434)][_0x2ae2bd(0x3f6)];}async['update'](_0x52e6dc){const _0x21aaea=_0x1e1deb,_0x13c2be=this[_0x21aaea(0x1da)]()+'/'+_0x52e6dc[_0x21aaea(0x131)]+_0x21aaea(0x121)+_0x52e6dc[_0x21aaea(0x213)];await this[_0x21aaea(0x2a6)][_0x21aaea(0x393)](_0x13c2be,{'body':_0x52e6dc});}async[_0x1e1deb(0x3e3)](_0x96d540){const _0x4bf61f=_0x1e1deb,_0x3ba920=this[_0x4bf61f(0x1da)]()+'/'+_0x96d540[_0x4bf61f(0x131)]+_0x4bf61f(0x121)+_0x96d540[_0x4bf61f(0x213)]+_0x4bf61f(0x385);return(await this['_HTTPService'][_0x4bf61f(0x358)](_0x3ba920,{'body':_0x96d540}))[_0x4bf61f(0x434)][_0x4bf61f(0x15f)];}async['batchAllowed'](_0x3e2a79){const _0x5a5d5e=_0x1e1deb,_0x1fd85e=this[_0x5a5d5e(0x1da)]()+_0x5a5d5e(0x3f5);return(await this[_0x5a5d5e(0x2a6)][_0x5a5d5e(0x358)](_0x1fd85e,{'body':{'requests':_0x3e2a79}}))['body'][_0x5a5d5e(0x3a4)];}async[_0x1e1deb(0x243)](_0x32c852){const _0x5b374b=_0x1e1deb,_0x5f5d16=this[_0x5b374b(0x1da)]()+'/'+_0x32c852[_0x5b374b(0x131)]+'/role',_0x2903a9=await this[_0x5b374b(0x2a6)][_0x5b374b(0x358)](_0x5f5d16,{'body':_0x32c852});return{'roles':_0x2903a9[_0x5b374b(0x434)][_0x5b374b(0x333)],'actions':_0x2903a9[_0x5b374b(0x434)][_0x5b374b(0x15f)]};}async['deleteCollaborator'](_0x531d07){const _0x4316f4=_0x1e1deb,_0x130f3e=this['_getAPIPrefixPath']()+_0x4316f4(0x16a);await this['_HTTPService'][_0x4316f4(0x36f)](_0x130f3e,{'params':{'collaboratorID':_0x531d07[_0x4316f4(0x14d)],'objectID':_0x531d07[_0x4316f4(0x213)],'unitID':_0x531d07[_0x4316f4(0x370)]}});}async[_0x1e1deb(0x222)](_0x47bdce){const _0x219354=_0x1e1deb,_0x5ea432=this[_0x219354(0x1da)]()+'/collaborator';await this[_0x219354(0x2a6)][_0x219354(0x375)](_0x5ea432,{'body':_0x47bdce});}async['createCollaborator'](_0x3edb57){const _0x381275=_0x1e1deb,_0x102f8c=this['_getAPIPrefixPath']()+_0x381275(0x16a);await this[_0x381275(0x2a6)][_0x381275(0x358)](_0x102f8c,{'body':_0x3edb57});}async['listCollaborators'](_0x4d59c0){const _0x256f09=_0x1e1deb,_0xebd78e=this[_0x256f09(0x1da)]()+_0x256f09(0x16a);return(await this[_0x256f09(0x2a6)]['get'](_0xebd78e,{'params':{'objectID':_0x4d59c0['objectID'],'unitID':_0x4d59c0[_0x256f09(0x370)]}}))[_0x256f09(0x434)]['collaborators'];}async[_0x1e1deb(0x166)](_0x59f3d4){const _0xf4f4b8=_0x1e1deb,_0x432e76=this['_getAPIPrefixPath']()+_0xf4f4b8(0x16a);await this[_0xf4f4b8(0x2a6)][_0xf4f4b8(0x393)](_0x432e76,{'body':_0x59f3d4});}};Dt=Eo([_s(0x0,_0x441fe2(_0x34ef08)),_s(0x1,_0x441fe2(_0x5445a8))],Dt);var To=Object[_0x1e1deb(0x158)],Ro=Object[_0x1e1deb(0x32c)],Oo=(_0x37962c,_0x503155,_0x26d866,_0xbf2cc7)=>{const _0x1fa7ae=_0x1e1deb;for(var _0x28f91b=_0xbf2cc7>0x1?void 0x0:_0xbf2cc7?Ro(_0x503155,_0x26d866):_0x503155,_0x28b907=_0x37962c[_0x1fa7ae(0x426)]-0x1,_0x53a284;_0x28b907>=0x0;_0x28b907--)(_0x53a284=_0x37962c[_0x28b907])&&(_0x28f91b=(_0xbf2cc7?_0x53a284(_0x503155,_0x26d866,_0x28f91b):_0x53a284(_0x28f91b))||_0x28f91b);return _0xbf2cc7&&_0x28f91b&&To(_0x503155,_0x26d866,_0x28f91b),_0x28f91b;},us=(_0x29e87b,_0x1aaae3)=>(_0x2cb58c,_0x4f11a9)=>_0x1aaae3(_0x2cb58c,_0x4f11a9,_0x29e87b);const Do=['image/png',_0x1e1deb(0x260),_0x1e1deb(0x27c),_0x1e1deb(0x3c7),_0x1e1deb(0x175)],Po=0x5*0x400*0x400,wo='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',No='/universer-api/stream/file/upload',Mo='EXCHANGE_SIGN_URL_SERVER_URL_KEY',Ao=_0x1e1deb(0x22a);let Pt=class{constructor(_0x1ce7c8,_0x33d74c){const _0x34032b=_0x1e1deb;l(this,_0x34032b(0x423),0x0),l(this,_0x34032b(0x3a9),new _0x365a49()),l(this,_0x34032b(0x392),this[_0x34032b(0x3a9)]),l(this,_0x34032b(0x1d4),new Map()),(this['_httpService']=_0x1ce7c8,this[_0x34032b(0x26b)]=_0x33d74c);}[_0x1e1deb(0x179)](_0x329eb4){const _0x148a5c=_0x1e1deb;this[_0x148a5c(0x423)]=_0x329eb4,this[_0x148a5c(0x3a9)][_0x148a5c(0x3cd)](_0x329eb4);}[_0x1e1deb(0x2be)](_0x498d0e,_0x266623){const _0x37f56b=_0x1e1deb;if(_0x266623===_0x53415e[_0x37f56b(0x33e)]){const _0x35cd22=new Image();return _0x35cd22[_0x37f56b(0x1af)]=_0x498d0e,_0x35cd22;}return this[_0x37f56b(0x1d4)]['get'](_0x498d0e);}[_0x1e1deb(0x334)](_0x45937d,_0x1eb2b9,_0x511769){const _0x5380b6=_0x1e1deb;_0x1eb2b9===_0x53415e['BASE64']||_0x511769==null||this[_0x5380b6(0x1d4)][_0x5380b6(0x394)](_0x45937d,_0x511769);}async[_0x1e1deb(0x201)](_0xd2a422){const _0x19b7c2=_0x1e1deb;try{const _0x116ff8=this[_0x19b7c2(0x10f)](this[_0x19b7c2(0x165)](),''+_0xd2a422),_0x56bfa3=(await this['_httpService'][_0x19b7c2(0x10a)](_0x116ff8))[_0x19b7c2(0x434)];return _0x56bfa3['error']&&_0x56bfa3[_0x19b7c2(0x1f8)]['code']===Ps['OK']?Promise[_0x19b7c2(0x306)](_0x56bfa3[_0x19b7c2(0x30b)]):Promise[_0x19b7c2(0x3e8)](_0x56bfa3[_0x19b7c2(0x1f8)]);}catch(_0x3ad13e){return Promise[_0x19b7c2(0x3e8)](_0x3ad13e);}}async[_0x1e1deb(0x3f7)](_0x2dc082){const _0x432d22=_0x1e1deb;let _0x49e34b='';if(!Do['includes'](_0x2dc082['type']))return this[_0x432d22(0x1fd)](),Promise[_0x432d22(0x3e8)](new Error(_0x3a4a7b[_0x432d22(0x395)]));if(_0x2dc082[_0x432d22(0x1b4)]>Po)return this['_decreaseWaiting'](),Promise[_0x432d22(0x3e8)](new Error(_0x3a4a7b['ERROR_EXCEED_SIZE']));try{const _0x4934ad=new FormData();_0x4934ad[_0x432d22(0x162)](_0x432d22(0x31c),_0x2dc082);const _0x551068=this[_0x432d22(0x346)]()+'?size='+_0x2dc082['size']['toString'](),_0x46523a=await(await fetch(_0x551068,{'method':_0x432d22(0x10c),'body':_0x4934ad}))[_0x432d22(0x103)]();if(typeof _0x46523a[_0x432d22(0x226)]!='string')return this[_0x432d22(0x1fd)](),Promise[_0x432d22(0x3e8)](new Error(_0x3a4a7b['ERROR_IMAGE']));_0x49e34b=_0x46523a[_0x432d22(0x226)];}catch{return this[_0x432d22(0x1fd)](),Promise['reject'](new Error(_0x3a4a7b[_0x432d22(0x101)]));}return new Promise((_0x48be28,_0x4431f9)=>{const _0xc16006=_0x432d22,_0x5b83b7=new FileReader();_0x5b83b7[_0xc16006(0x13f)](_0x2dc082),_0x5b83b7[_0xc16006(0x146)]=_0x4a2f89=>{const _0x325f0=_0xc16006;var _0x43c9bf;const _0x54074f=(_0x43c9bf=_0x4a2f89[_0x325f0(0x342)])==null?void 0x0:_0x43c9bf['result'];if(_0x54074f==null){this[_0x325f0(0x1fd)](),_0x4431f9(new Error(_0x3a4a7b[_0x325f0(0x101)]));return;}const _0x49aa30=_0x4526c0[_0x325f0(0x259)](0x6);_0x48be28({'imageId':_0x49aa30,'imageSourceType':_0x53415e[_0x325f0(0x396)],'source':_0x49e34b,'base64Cache':_0x54074f,'status':_0x3a4a7b['SUCCUSS']}),this[_0x325f0(0x1fd)]();};});}[_0x1e1deb(0x346)](){const _0x28a5db=_0x1e1deb;var _0x102efb;return(_0x102efb=this[_0x28a5db(0x26b)][_0x28a5db(0x35c)](wo))!=null?_0x102efb:No;}['_getSignURL'](){const _0x84b9d9=_0x1e1deb;var _0x288752;return(_0x288752=this[_0x84b9d9(0x26b)][_0x84b9d9(0x35c)](Mo))!=null?_0x288752:Ao;}['_replaceFileID'](_0x2fde90,_0x771aae){const _0x187a3a=_0x1e1deb;return _0x2fde90[_0x187a3a(0x20a)](_0x187a3a(0x1bf),_0x771aae);}[_0x1e1deb(0x1fd)](){this['_waitCount']-=0x1,this['_change$']['next'](this['_waitCount']);}};Pt=Oo([us(0x0,_0x441fe2(_0x34ef08)),us(0x1,_0x5445a8)],Pt);var yo=Object[_0x1e1deb(0x158)],Uo=Object[_0x1e1deb(0x32c)],Lo=(_0x3ac11c,_0xe60ef9,_0x2fc2c3,_0x5ad2da)=>{const _0x3ceb83=_0x1e1deb;for(var _0xed29ba=_0x5ad2da>0x1?void 0x0:_0x5ad2da?Uo(_0xe60ef9,_0x2fc2c3):_0xe60ef9,_0x301d69=_0x3ac11c[_0x3ceb83(0x426)]-0x1,_0x32e4bb;_0x301d69>=0x0;_0x301d69--)(_0x32e4bb=_0x3ac11c[_0x301d69])&&(_0xed29ba=(_0x5ad2da?_0x32e4bb(_0xe60ef9,_0x2fc2c3,_0xed29ba):_0x32e4bb(_0xed29ba))||_0xed29ba);return _0x5ad2da&&_0xed29ba&&yo(_0xe60ef9,_0x2fc2c3,_0xed29ba),_0xed29ba;},Ne=(_0x2c9aa4,_0x2508f9)=>(_0x1f18d2,_0x2e3081)=>_0x2508f9(_0x1f18d2,_0x2e3081,_0x2c9aa4);let We=class extends _0x5b9cf1{constructor(_0x4e0e48,_0x452281,_0x88119d,_0xfc9f0b,_0x236e11){const _0x257dce=_0x1e1deb;super(),this[_0x257dce(0x432)]=_0x4e0e48,this[_0x257dce(0x145)]=_0x452281,this['_permissionService']=_0x88119d,this[_0x257dce(0x3c0)]=_0xfc9f0b,this[_0x257dce(0x367)]=_0x236e11,this[_0x257dce(0x241)](),this[_0x257dce(0x3d3)]();}[_0x1e1deb(0x3d3)](){const _0x3700e4=_0x1e1deb,_0xe1762c=async _0x51e286=>{const _0x2c1c4d=_0x44de;(await this[_0x2c1c4d(0x3c0)]['requireSession'](_0x51e286))['event$'][_0x2c1c4d(0x119)](_0x190413(_0x27e1fd=>_0x27e1fd[_0x2c1c4d(0x2f8)]===_0x1c415b[_0x2c1c4d(0x171)]),_0x946afe(this[_0x2c1c4d(0x413)]))[_0x2c1c4d(0x3e0)](_0x167378=>{const _0x33ef9d=_0x2c1c4d,_0x1636c3=_0x167378,{reason:_0x44f334}=_0x1636c3[_0x33ef9d(0x265)];this['_injector']['get'](_0x49507b)[_0x33ef9d(0x154)]({'type':_0x3eac95[_0x33ef9d(0x33c)],'content':this[_0x33ef9d(0x367)]['t']('collaboration.closeRoom')+'('+_0x44f334+')'}),this['_permissionService'][_0x33ef9d(0x3ba)](new _0x230e97(_0x51e286)['id'],!0x1),this[_0x33ef9d(0x3c0)][_0x33ef9d(0x2ad)](_0x51e286);});};_0x5726e7(this['_univerInstanceService'][_0x3700e4(0x405)](_0x37298b[_0x3700e4(0x3d0)]),this[_0x3700e4(0x145)][_0x3700e4(0x405)](_0x37298b[_0x3700e4(0x1c7)]))[_0x3700e4(0x119)](_0x5ac769(_0x5cdbdc=>_0x5cdbdc[_0x3700e4(0x3cf)]()),_0x190413(_0x30acf5=>!_0x2f9fa5(_0x30acf5)),_0x946afe(this[_0x3700e4(0x413)]))[_0x3700e4(0x3e0)](_0x2faaa9=>{_0xe1762c(_0x2faaa9);});}['_initUnitPermissionChange'](){const _0x261994=_0x1e1deb,_0x14bcf2=async _0x5b5c71=>{const _0x4f25ac=_0x44de;(await this[_0x4f25ac(0x3c0)]['requireSession'](_0x5b5c71))[_0x4f25ac(0x19f)][_0x4f25ac(0x119)](_0x190413(_0xf615a5=>_0xf615a5[_0x4f25ac(0x2f8)]===_0x1c415b[_0x4f25ac(0x207)]),_0x946afe(this['dispose$']))[_0x4f25ac(0x3e0)](_0x1a05a2=>{const _0x3abd46=_0x4f25ac,_0x58d481=_0x1a05a2,{objectId:_0x20bd23}=_0x58d481[_0x3abd46(0x265)];_0x20bd23===_0x5b5c71&&this[_0x3abd46(0x432)]['get'](_0x357f80)['initWorkbookPermissionChange'](_0x5b5c71);});};_0x5726e7(this['_univerInstanceService'][_0x261994(0x405)](_0x37298b['UNIVER_SHEET']),this[_0x261994(0x145)][_0x261994(0x405)](_0x37298b[_0x261994(0x1c7)]))[_0x261994(0x119)](_0x5ac769(_0x45d7d5=>_0x45d7d5[_0x261994(0x3cf)]()),_0x190413(_0x76fa0=>!_0x2f9fa5(_0x76fa0)),_0x946afe(this[_0x261994(0x413)]))['subscribe'](_0x44b5fc=>{_0x14bcf2(_0x44b5fc);});}};We=Lo([_0x3e0133(_0x1781f1[_0x1e1deb(0x3bd)],We),Ne(0x0,_0x441fe2(_0x9c5d64)),Ne(0x1,_0x4902a5),Ne(0x2,_0x3660f2),Ne(0x3,_0x441fe2(pe)),Ne(0x4,_0x441fe2(_0x2cfe85))],We);var Hs=Object[_0x1e1deb(0x158)],$o=Object['getOwnPropertyDescriptor'],jo=(_0x13a62f,_0x304f23,_0x2d1cee)=>_0x304f23 in _0x13a62f?Hs(_0x13a62f,_0x304f23,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d1cee}):_0x13a62f[_0x304f23]=_0x2d1cee,xo=(_0x447c3d,_0x33da96,_0x5c5cc1,_0x29c0b9)=>{for(var _0x283348=_0x29c0b9>0x1?void 0x0:_0x29c0b9?$o(_0x33da96,_0x5c5cc1):_0x33da96,_0x52efe9=_0x447c3d['length']-0x1,_0x461791;_0x52efe9>=0x0;_0x52efe9--)(_0x461791=_0x447c3d[_0x52efe9])&&(_0x283348=(_0x29c0b9?_0x461791(_0x33da96,_0x5c5cc1,_0x283348):_0x461791(_0x283348))||_0x283348);return _0x29c0b9&&_0x283348&&Hs(_0x33da96,_0x5c5cc1,_0x283348),_0x283348;},mt=(_0x20c2d6,_0x33eab4)=>(_0x3c8b84,_0x4413a0)=>_0x33eab4(_0x3c8b84,_0x4413a0,_0x20c2d6),Ho=(_0x564121,_0x3a7e02,_0x179853)=>jo(_0x564121,_0x3a7e02+'',_0x179853);const ko=_0x1e1deb(0x1a0);let wt=class extends _0x14ee3b{constructor(_0x7b993d,_0x24bd96,_0x40e79f,_0x10bad2){const _0x186333=_0x1e1deb;super(),this[_0x186333(0x317)]=_0x7b993d,this[_0x186333(0x12a)]=_0x24bd96,this[_0x186333(0x2af)]=_0x40e79f,this[_0x186333(0x432)]=_0x10bad2;}[_0x1e1deb(0x1ee)](_0x3c294d){this['_registerDependencies'](_0x3c294d);}[_0x1e1deb(0x264)](){const _0x5d1cae=_0x1e1deb;this[_0x5d1cae(0x304)]();}[_0x1e1deb(0x177)](_0x21fea1){const _0x18ab8e=_0x1e1deb;var _0x4004d2,_0x5c1d66,_0x171fa4,_0x55af7a;_0x21fea1['has'](_0x416533)&&this[_0x18ab8e(0x12a)][_0x18ab8e(0x1f8)](_0x18ab8e(0x3e1),_0x18ab8e(0x1f1));let _0x13a052=[[_0x416533,{'useClass':Ot}],[pe],[xt],[_0x34ef08],[xs,{'useClass':oo}],[ne],[D],[_0x3ee676],[qe],[ze],[Je],[jt],[Qe],[Ns],[We],[ws,{'useClass':(_0x5c1d66=(_0x4004d2=this['_config'])==null?void 0x0:_0x4004d2[_0x18ab8e(0x186)])!=null?_0x5c1d66:pt}],[_0x2a4f7d,{'useClass':_0xea0666}],[_0x4a4d9b,{'useClass':Rt}],[_0x2914fb,{'useClass':Dt}],[_0x19b622,{'useClass':Pt}],[Me],[Fe],[ke],[Ve],[ge]];(_0x171fa4=this['_config'])!=null&&_0x171fa4[_0x18ab8e(0x2d0)]&&_0x13a052['push']([tt,{'useClass':kn}]),_0x13a052=_0x117d0f(_0x13a052,(_0x55af7a=this['_config'])==null?void 0x0:_0x55af7a[_0x18ab8e(0x42a)]),_0x13a052[_0x18ab8e(0x23e)](_0x4be868=>_0x21fea1[_0x18ab8e(0x11a)](_0x4be868)),this[_0x18ab8e(0x28d)]();}[_0x1e1deb(0x304)](){const _0x52b1a2=_0x1e1deb;this[_0x52b1a2(0x32e)](this[_0x52b1a2(0x2af)]['registerRenderModule'](_0x37298b[_0x52b1a2(0x1c7)],[Be])),this[_0x52b1a2(0x32e)](this[_0x52b1a2(0x2af)]['registerRenderModule'](_0x37298b[_0x52b1a2(0x3d0)],[Tt]));}[_0x1e1deb(0x28d)](){const _0x386780=_0x1e1deb;var _0x9d1d6,_0x1ecd93;this[_0x386780(0x432)][_0x386780(0x10a)](_0x34ef08)[_0x386780(0x31d)]({'priority':0x14,'interceptor':_0x43013b({'maxParallel':0x6})}),(_0x9d1d6=this[_0x386780(0x317)])!=null&&_0x9d1d6[_0x386780(0x204)]||this[_0x386780(0x432)][_0x386780(0x10a)](D)[_0x386780(0x278)](),(_0x1ecd93=this[_0x386780(0x317)])!=null&&_0x1ecd93[_0x386780(0x17d)]&&this[_0x386780(0x432)][_0x386780(0x10a)](Qe);}};Ho(wt,_0x1e1deb(0x293),ko),wt=xo([_0xb27d8b(_0x5d157c),mt(0x1,_0x5f4df3),mt(0x2,_0x2b632b),mt(0x3,_0x441fe2(_0x9c5d64))],wt);export{Co as AUTHZ_URL_KEY,Dt as AuthzIoHttpService,En as COLLAB_SUBMIT_CHANGESET_URL_KEY,_n as COLLAB_WEB_SOCKET_URL_KEY,Me as CollaborationController,vt as CollaborationSession,pe as CollaborationSessionService,pt as CollaborationSocketService,P as CollaborationStatus,Fr as CollaborationStatusDisplay,Ns as CommentService,Fe as DataLoaderController,ke as DesktopCollaborationStatusDisplayController,dn as HEARTBEAT_INTERVAL_KEY,Os as HEARTBEAT_TIMEOUT_KEY,ws as ICollaborationSocketService,xs as IURLService,Pt as ImageIoService,vn as LOCAL_CACHE_INTERVAL_KEY,bn as LOGIN_URL_KEY,D as LocalCacheService,hn as SEND_CHANGESET_TIMEOUT_KEY,on as SNAPSHOT_SERVER_URL_KEY,cn as SNAPSHOT_URL_KEY,fe as SessionStatus,br as SheetCollabCursorShape,Et as SheetCollaborationEntity,Rt as SnapshotServerOverHTTPService,wt as UniverCollaborationClientPlugin,oo as WebURLService,wn as deserializeToCombResponse,Nn as serializeCombRequest};
|