@univerjs-pro/collaboration-client 0.1.13 → 0.1.15
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/config/config.d.ts +44 -0
- package/lib/types/controllers/collab-cursor/sheet-collab-cursor-render.controller.d.ts +3 -3
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +0 -4
- package/lib/types/index.d.ts +6 -8
- package/lib/types/plugin.d.ts +4 -4
- package/lib/types/services/auth-server/auth-server.service.d.ts +0 -4
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +0 -7
- package/lib/types/services/local-cache/local-cache.service.d.ts +0 -5
- package/lib/types/services/member/member.service.d.ts +9 -3
- package/lib/types/services/snapshot-server/snapshot-server.service.d.ts +2 -6
- package/lib/types/services/socket/collaboration-socket.service.d.ts +0 -1
- package/lib/umd/index.js +1 -1
- package/package.json +49 -35
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0x369344=_0xfefa;(function(_0x25d44c,_0x3a0a4b){const _0xe74c9d=_0xfefa,_0x3d3667=_0x25d44c();while(!![]){try{const _0x589736=parseInt(_0xe74c9d(0x2e6))/0x1+-parseInt(_0xe74c9d(0x379))/0x2+parseInt(_0xe74c9d(0x3b2))/0x3*(parseInt(_0xe74c9d(0x266))/0x4)+-parseInt(_0xe74c9d(0x426))/0x5*(-parseInt(_0xe74c9d(0x271))/0x6)+-parseInt(_0xe74c9d(0x1f0))/0x7*(parseInt(_0xe74c9d(0x1b1))/0x8)+parseInt(_0xe74c9d(0x1e5))/0x9+parseInt(_0xe74c9d(0x30b))/0xa*(-parseInt(_0xe74c9d(0x188))/0xb);if(_0x589736===_0x3a0a4b)break;else _0x3d3667['push'](_0x3d3667['shift']());}catch(_0xeaa507){_0x3d3667['push'](_0x3d3667['shift']());}}}(_0x22b6,0xc7867));var ks=Object[_0x369344(0x235)],$s=(_0x3385ae,_0x37f4ef,_0x5abb45)=>_0x37f4ef in _0x3385ae?ks(_0x3385ae,_0x37f4ef,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5abb45}):_0x3385ae[_0x37f4ef]=_0x5abb45,l=(_0x34db96,_0x1abafe,_0x319158)=>($s(_0x34db96,typeof _0x1abafe!=_0x369344(0x3a2)?_0x1abafe+'':_0x1abafe,_0x319158),_0x319158);import{Disposable as _0x1bbf2c,toDisposable as _0xd3a753,UniverInstanceType as _0x195e2d,IUniverInstanceService as _0x1e6754,DisposableCollection as _0x17acc5,IConfigService as _0xcb4dc7,ILogService as _0x5e199c,ISnapshotServerService as _0xb15e1d,RxDisposable as _0x1f6cf4,LocaleService as _0x122a5b,ILocalStorageService as _0x56feea,Tools as _0x16b7ed,ICommandService as _0x2e73f7,JSONX as _0x597d08,IPermissionService as _0x2657e7,IUndoRedoService as _0x34383f,sequenceExecute as _0x3b0c60,OnLifecycle as _0x3cfe98,LifecycleStages as _0x41440a,CommandType as _0x10679a,Rectangle as _0x2defa9,ThemeService as _0x1851c3,Workbook as _0x261fbb,textEncoder as _0x5a0fb1,b64DecodeUnicode as _0x15cbc3,LocalUndoRedoService as _0x26b2de,IContextService as _0x3daa7a,COLORS as _0x2a1b5f,ColorKit as _0x11cecc,Plugin as _0x1b07a0,IAuthzIoService as _0x3ee45a,mergeOverrideWithDependencies as _0x31fff2}from'@univerjs/core';import{SelectionManagerService as _0x12ef89,SetSelectionsOperation as _0x20fa8e,InsertSheetMutation as _0x4e0868,WorkbookEditablePermission as _0x690418,RefRangeService as _0x5658f4,EffectRefRangId as _0x43f5f2,handleIRemoveRow as _0x663d2b,handleIRemoveCol as _0x137d66,handleMoveRange as _0x318054,handleInsertRow as _0x51d70f,handleInsertRangeMoveRight as _0x3b6994,handleInsertRangeMoveDown as _0x224b57,handleInsertCol as _0x2fb529,handleDeleteRangeMoveUp as _0x18b750,handleDeleteRangeMoveLeft as _0x4aa26a,runRefRangeMutations as _0x45121f,SetWorksheetActivateCommand as _0x36e21d}from'@univerjs/sheets';import{MessageType as _0x1aba92}from'@univerjs/design';import{IBeforeCloseService as _0x29d50d,IMessageService as _0x45f7cf,INotificationService as _0x4eec4b,useObservable as _0x39b1aa,BuiltInUIPart as _0x319785,IUIPartsService as _0x482719}from'@univerjs/ui';import{CollaborationEvent as _0x217d29,parseChangesetToProtocol as _0x1ccc97,RevisionService as _0x4f9324,isTransformMutationFailure as _0xe12b02,isTransformMutationsWithChangesetSuccess as _0x1cf98b,ITransformService as _0x5cdc22,mapDocumentTypeToUniverType as _0x25caf3,isTransformChangesetsSuccess as _0x12c9d2,CompressMutationService as _0x528191,parseProtocolChangeset as _0xc8b712,SnapshotService as _0x557428,isTransformMutationsWithChangesetFailure as _0x5c914b}from'@univerjs-pro/collaboration';import{createIdentifier as _0x519219,Inject as _0x3bdb53,Injector as _0x29e329,Optional as _0x4447c0}from'@wendellhu/redi';import{merge as _0x4de0cc,Subject as _0x36360c,BehaviorSubject as _0x2a5f89,distinctUntilChanged as _0xc9666f,fromEvent as _0x190c51,of as _0x169b33,takeUntil as _0x5f2af8,debounceTime as _0x136cc0,filter as _0xb07331,switchMap as _0x1148ff,combineLatest as _0xf0253e,shareReplay as _0x2d5bca,mapTo as _0x41fdc8,concatMap as _0x1b553f}from'rxjs';import{map as _0x19010f,takeUntil as _0x46656a,take as _0x1cadbd,filter as _0x1aaaf4,delay as _0x33ce7d,shareReplay as _0x55c0ae,switchMap as _0x2b4de3}from'rxjs/operators';import{IMEInputManagerService as _0x2eb9bb,TextSelectionManagerService as _0x1c9a21,serializeTextRange as _0x38b333,DocStateChangeManagerService as _0x2ad533,SetTextSelectionsOperation as _0x130d67,RichTextEditingMutation as _0x398d0b,getDocObject as _0x35a139,DocSkeletonManagerService as _0x4ca2e9}from'@univerjs/docs';import{HTTPService as _0xe9c2a2,WebSocketService as _0x42c558,IHTTPImplementation as _0x1e7960,XHRHTTPImplementation as _0x5ca741,ThresholdInterceptorFactory as _0x437693}from'@univerjs/network';import{ImageSourceType as _0x51fc09,ImageUploadStatusType as _0x4ac7c3,IImageIoService as _0x443a0e}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x5a55eb,serializeRangeWithSheet as _0x3b8151}from'@univerjs/engine-formula';import _0x507660 from'lodash/debounce';import{Shape as _0x1377ce,Rect as _0x8391c2,Vector2 as _0x2ce8cf,IRenderManagerService as _0x12e984,NodePositionConvertToCursor as _0x2a5751,getColor as _0x4d3636,TEXT_RANGE_LAYER_INDEX as _0x451223,RegularPolygon as _0x4d3b2d}from'@univerjs/engine-render';import{VIEWPORT_KEY as _0x4b02ee,getCoordByCell as _0x24e2be,getSheetObject as _0x1d153d,SheetSkeletonManagerService as _0xbbb3e5}from'@univerjs/sheets-ui';import{useDependency as _0x2732fc,connectInjector as _0x3f045f}from'@wendellhu/redi/react-bindings';import _0x11b04c,{forwardRef as _0x593069,useRef as _0x49d57c,createElement as _0x2a382f}from'react';import _0x65ec29 from'clsx';import{IRemoteInstanceService as _0x365c6e}from'@univerjs/rpc';var ps=(_0x29e4e9=>(_0x29e4e9[_0x29e4e9[_0x369344(0x27e)]=0x0]=_0x369344(0x27e),_0x29e4e9[_0x29e4e9['OK']=0x1]='OK',_0x29e4e9[_0x29e4e9[_0x369344(0x197)]=0x2]='INTERNAL_ERROR',_0x29e4e9[_0x29e4e9[_0x369344(0x1bd)]=0x3]=_0x369344(0x1bd),_0x29e4e9[_0x29e4e9[_0x369344(0x1e2)]=0x4]='NOT_FOUND',_0x29e4e9[_0x29e4e9[_0x369344(0x3f8)]=0x5]=_0x369344(0x3f8),_0x29e4e9[_0x29e4e9[_0x369344(0x2f4)]=0x6]='ALREADY_EXISTS',_0x29e4e9[_0x29e4e9[_0x369344(0x39f)]=0x7]=_0x369344(0x39f),_0x29e4e9[_0x29e4e9[_0x369344(0x278)]=0x8]='TOO_MANY_REQUESTS',_0x29e4e9[_0x29e4e9['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x369344(0x18a),_0x29e4e9[_0x29e4e9[_0x369344(0x158)]=0x1771]=_0x369344(0x158),_0x29e4e9[_0x29e4e9['APPLY_REJECT']=0x1b59]=_0x369344(0x166),_0x29e4e9[_0x29e4e9[_0x369344(0x33c)]=0x1b5a]=_0x369344(0x33c),_0x29e4e9[_0x29e4e9[_0x369344(0x2f6)]=0x1b5b]=_0x369344(0x2f6),_0x29e4e9[_0x29e4e9[_0x369344(0x33e)]=0x1b5c]=_0x369344(0x33e),_0x29e4e9[_0x29e4e9[_0x369344(0x28d)]=0x1f41]=_0x369344(0x28d),_0x29e4e9[_0x29e4e9[_0x369344(0x3d3)]=0x2329]=_0x369344(0x3d3),_0x29e4e9[_0x29e4e9[_0x369344(0x1d9)]=0x232a]=_0x369344(0x1d9),_0x29e4e9[_0x29e4e9[_0x369344(0x39d)]=0x232b]=_0x369344(0x39d),_0x29e4e9[_0x29e4e9[_0x369344(0x3d5)]=0x232c]=_0x369344(0x3d5),_0x29e4e9[_0x29e4e9[_0x369344(0x45a)]=0x232d]=_0x369344(0x45a),_0x29e4e9[_0x29e4e9['UNRECOGNIZED']=-0x1]=_0x369344(0x3fe),_0x29e4e9))(ps||{}),H=(_0x17f6ba=>(_0x17f6ba[_0x17f6ba[_0x369344(0x283)]=0x0]=_0x369344(0x283),_0x17f6ba[_0x17f6ba[_0x369344(0x3c6)]=0x1]='UNIVER_DOC',_0x17f6ba[_0x17f6ba[_0x369344(0x38c)]=0x2]=_0x369344(0x38c),_0x17f6ba[_0x17f6ba[_0x369344(0x2a9)]=0x3]=_0x369344(0x2a9),_0x17f6ba[_0x17f6ba[_0x369344(0x3fe)]=-0x1]=_0x369344(0x3fe),_0x17f6ba))(H||{}),I=(_0x45977a=>(_0x45977a[_0x45977a[_0x369344(0x44d)]=0x0]=_0x369344(0x44d),_0x45977a[_0x45977a[_0x369344(0x290)]=0x1]='HELLO',_0x45977a[_0x45977a[_0x369344(0x1f1)]=0x2]=_0x369344(0x1f1),_0x45977a[_0x45977a['LEAVE']=0x3]=_0x369344(0x25e),_0x45977a[_0x45977a[_0x369344(0x395)]=0x4]='INGEST',_0x45977a[_0x45977a[_0x369344(0x182)]=0x5]=_0x369344(0x182),_0x45977a[_0x45977a[_0x369344(0x28a)]=0x6]=_0x369344(0x28a),_0x45977a[_0x45977a[_0x369344(0x3fe)]=-0x1]=_0x369344(0x3fe),_0x45977a))(I||{}),wt=(_0x53a605=>(_0x53a605[_0x53a605['UNKNOWN_CODE']=0x0]='UNKNOWN_CODE',_0x53a605[_0x53a605['OK']=0x1]='OK',_0x53a605[_0x53a605[_0x369344(0x23a)]=0x2]='FAIL',_0x53a605[_0x53a605[_0x369344(0x3fe)]=-0x1]=_0x369344(0x3fe),_0x53a605))(wt||{}),ji=(_0x2eb086,_0x5d112d,_0x34cbb0,_0x11ccb1)=>{const _0xdd51c1=_0x369344;for(var _0x236eb5=_0x5d112d,_0x23dd4a=_0x2eb086[_0xdd51c1(0x3b6)]-0x1,_0x3d9ac7;_0x23dd4a>=0x0;_0x23dd4a--)(_0x3d9ac7=_0x2eb086[_0x23dd4a])&&(_0x236eb5=_0x3d9ac7(_0x236eb5)||_0x236eb5);return _0x236eb5;},Fi=(_0x4c1962,_0x3a1a34)=>(_0x137985,_0x41748c)=>_0x3a1a34(_0x137985,_0x41748c,_0x4c1962);let ee=class extends _0x1bbf2c{constructor(_0x49f34c){const _0xbb6ac5=_0x369344;super(),l(this,_0xbb6ac5(0x466),new Map()),l(this,'_currentUser',null),(this[_0xbb6ac5(0x2dd)]=_0x49f34c,this[_0xbb6ac5(0x1f9)](_0xd3a753(_0x4de0cc(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x195e2d[_0xbb6ac5(0x38c)])['pipe'](_0x19010f(_0x3953c1=>_0x3953c1[_0xbb6ac5(0x2c0)]())),this[_0xbb6ac5(0x2dd)][_0xbb6ac5(0x3fb)](_0x195e2d['UNIVER_DOC'])[_0xbb6ac5(0x2be)](_0x19010f(_0x440058=>_0x440058[_0xbb6ac5(0x2c0)]())),this[_0xbb6ac5(0x2dd)][_0xbb6ac5(0x3fb)](_0x195e2d['UNIVER_SLIDE'])['pipe'](_0x19010f(_0x2789cc=>_0x2789cc[_0xbb6ac5(0x2c0)]())))[_0xbb6ac5(0x3c2)](_0x2b8f05=>this['_removeRoom'](_0x2b8f05)))));}[_0x369344(0x2a2)](_0x20b163){const _0xf809a5=_0x369344;this[_0xf809a5(0x2f0)]=_0x20b163;}[_0x369344(0x2b9)](){return this['_currentUser'];}[_0x369344(0x441)](_0xfd6057,_0x389b3d){const _0x1e116e=_0x369344;let _0x3241b0=this[_0x1e116e(0x466)][_0x1e116e(0x19d)](_0xfd6057);_0x3241b0||(_0x3241b0=new Vi(),this['_roomMembers']['set'](_0xfd6057,_0x3241b0)),_0x3241b0[_0x1e116e(0x441)](_0x389b3d);}[_0x369344(0x2cd)](_0x40d989,_0x40faf9){const _0x558f5a=_0x369344,_0x561d0a=this['_roomMembers'][_0x558f5a(0x19d)](_0x40d989);_0x561d0a&&_0x561d0a[_0x558f5a(0x2cd)](_0x40faf9);}[_0x369344(0x439)](_0x967d0e){const _0x503761=_0x369344;return this['_roomMembers'][_0x503761(0x19d)](_0x967d0e);}['getMember'](_0x1d7518,_0x5b626f){const _0x4e7e24=_0x369344,_0x3fa6e3=this[_0x4e7e24(0x466)][_0x4e7e24(0x19d)](_0x1d7518);if(_0x3fa6e3)return _0x3fa6e3[_0x4e7e24(0x3da)](_0x5b626f);}[_0x369344(0x2ac)](_0x3f004f){const _0x2460e3=_0x369344,_0x227a78=this[_0x2460e3(0x466)][_0x2460e3(0x19d)](_0x3f004f);_0x227a78&&(_0x227a78['dispose'](),this['_roomMembers'][_0x2460e3(0x358)](_0x3f004f));}[_0x369344(0x42d)](){const _0x449068=_0x369344;this[_0x449068(0x466)]['forEach'](_0x195c2f=>_0x195c2f[_0x449068(0x42d)]()),this[_0x449068(0x466)][_0x449068(0x1b6)]();}};ee=ji([Fi(0x0,_0x1e6754)],ee);class Vi extends _0x1bbf2c{constructor(){super(...arguments),l(this,'_members',new Map());}['dispose'](){const _0x1ffcdd=_0x369344;this[_0x1ffcdd(0x2e8)][_0x1ffcdd(0x1b6)]();}[_0x369344(0x441)](_0x392a9b){const _0x433e35=_0x369344;this['_members'][_0x433e35(0x24c)](_0x392a9b['memberID'],_0x392a9b);}[_0x369344(0x2cd)](_0x1c0e16){const _0x343585=_0x369344;this[_0x343585(0x2e8)][_0x343585(0x358)](_0x1c0e16);}[_0x369344(0x3da)](_0xa252fa){return this['_members']['get'](_0xa252fa);}}function Bi(_0x5c0a1e){const _0x1a66e7=_0x369344;var _0x265296,_0x1dd47f,_0x274d8a,_0x18f199;const _0x520a59=_0x5c0a1e[_0x1a66e7(0x336)],_0x4ee9c1=JSON['parse'](_0x520a59);switch(_0x4ee9c1[_0x1a66e7(0x3b9)]){case I['HEARTBEAT']:case I[_0x1a66e7(0x290)]:{const _0x59bc24=_0x4ee9c1['infoRsp'];return{..._0x4ee9c1,'data':_0x59bc24,'cmd':_0x4ee9c1['cmd']};}case I[_0x1a66e7(0x1f1)]:{const _0x5d6819=_0x4ee9c1['joinRsp'];return{..._0x4ee9c1,'data':_0x5d6819,'cmd':_0x4ee9c1[_0x1a66e7(0x3b9)]};}case I[_0x1a66e7(0x28a)]:{const _0x195e4d=_0x4ee9c1[_0x1a66e7(0x3aa)];switch(_0x195e4d[_0x1a66e7(0x1c5)]){case _0x217d29[_0x1a66e7(0x2e7)]:return{..._0x4ee9c1,'data':{..._0x195e4d,'data':(_0x265296=_0x195e4d[_0x1a66e7(0x37f)])==null?void 0x0:_0x265296['cs']},'cmd':_0x4ee9c1[_0x1a66e7(0x3b9)]};case _0x217d29[_0x1a66e7(0x3f9)]:return{..._0x4ee9c1,'data':{..._0x195e4d,'data':(_0x1dd47f=_0x195e4d[_0x1a66e7(0x2d1)])==null?void 0x0:_0x1dd47f['cs']},'cmd':_0x4ee9c1[_0x1a66e7(0x3b9)]};case _0x217d29[_0x1a66e7(0x430)]:return{..._0x4ee9c1,'data':{..._0x195e4d,'data':(_0x274d8a=_0x195e4d[_0x1a66e7(0x16f)])==null?void 0x0:_0x274d8a['cs']},'cmd':_0x4ee9c1['cmd']};case _0x217d29[_0x1a66e7(0x3c4)]:return{..._0x4ee9c1,'data':{..._0x195e4d,'data':(_0x18f199=_0x195e4d[_0x1a66e7(0x1e6)])==null?void 0x0:_0x18f199['cs']},'cmd':_0x4ee9c1[_0x1a66e7(0x3b9)]};case _0x217d29[_0x1a66e7(0x3d4)]:return{..._0x4ee9c1,'data':{..._0x195e4d,'data':_0x195e4d[_0x1a66e7(0x42c)]},'cmd':_0x4ee9c1[_0x1a66e7(0x3b9)]};case _0x217d29['USERS_ENTER']:return{..._0x4ee9c1,'data':{..._0x195e4d,'data':_0x195e4d[_0x1a66e7(0x1e4)]},'cmd':_0x4ee9c1[_0x1a66e7(0x3b9)]};case _0x217d29[_0x1a66e7(0x1ee)]:return{..._0x4ee9c1,'data':{..._0x195e4d,'data':_0x195e4d[_0x1a66e7(0x1cb)]},'cmd':_0x4ee9c1[_0x1a66e7(0x3b9)]};case _0x217d29[_0x1a66e7(0x234)]:return{..._0x4ee9c1,'data':{..._0x195e4d,'data':_0x195e4d['liveShareNewHost']},'cmd':_0x4ee9c1['cmd']};case _0x217d29[_0x1a66e7(0x390)]:case _0x217d29[_0x1a66e7(0x414)]:return{..._0x4ee9c1,'data':{..._0x195e4d,'data':_0x195e4d[_0x1a66e7(0x1ad)]},'cmd':_0x4ee9c1[_0x1a66e7(0x3b9)]};case _0x217d29[_0x1a66e7(0x36e)]:return{..._0x4ee9c1,'data':{..._0x195e4d,'data':_0x195e4d[_0x1a66e7(0x40a)]},'cmd':_0x4ee9c1[_0x1a66e7(0x3b9)]};case _0x217d29[_0x1a66e7(0x3b1)]:return{..._0x4ee9c1,'data':_0x195e4d,'cmd':_0x4ee9c1['cmd']};default:return _0x4ee9c1;}}default:return _0x4ee9c1;}}function Wi(_0x506044){const _0x2d87eb=_0x369344;switch(_0x506044[_0x2d87eb(0x3b9)]){case I['HEARTBEAT']:case I[_0x2d87eb(0x290)]:return JSON[_0x2d87eb(0x183)]({'cmd':_0x506044['cmd'],'routeKey':_0x506044[_0x2d87eb(0x41d)]});case I[_0x2d87eb(0x395)]:{let _0x21301a;switch(_0x506044['data'][_0x2d87eb(0x1c5)]){case _0x217d29['UPDATE_CURSOR']:{_0x21301a={'eventID':_0x217d29[_0x2d87eb(0x3d4)],'updateCursorEvent':_0x506044['data']['data']};break;}case _0x217d29['USERS_LEAVE']:{_0x21301a={'eventID':_0x217d29[_0x2d87eb(0x1ee)],'leaveEvent':_0x506044[_0x2d87eb(0x336)]['data']};break;}case _0x217d29['USERS_ENTER']:{_0x21301a={'eventID':_0x217d29[_0x2d87eb(0x35f)],'joinEvent':_0x506044['data'][_0x2d87eb(0x336)]};break;}case _0x217d29[_0x2d87eb(0x234)]:{_0x21301a={'eventID':_0x217d29['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x506044[_0x2d87eb(0x336)][_0x2d87eb(0x336)]};break;}case _0x217d29[_0x2d87eb(0x414)]:{_0x21301a={'eventID':_0x217d29[_0x2d87eb(0x414)],'liveShareOperation':_0x506044[_0x2d87eb(0x336)][_0x2d87eb(0x336)]};break;}case _0x217d29[_0x2d87eb(0x36e)]:{_0x21301a={'eventID':_0x217d29[_0x2d87eb(0x36e)],'liveShareTerminate':_0x506044[_0x2d87eb(0x336)][_0x2d87eb(0x336)]};break;}case _0x217d29['LIVESHARE_REQUEST_HOST']:{_0x21301a={'eventID':_0x217d29[_0x2d87eb(0x3de)],'liveShareRequestHost':_0x506044[_0x2d87eb(0x336)][_0x2d87eb(0x336)]};break;}case _0x217d29['LIVESHARE_FETCH_OPERATIONS']:{_0x21301a={'eventID':_0x217d29[_0x2d87eb(0x390)]};break;}default:_0x21301a={'eventID':_0x506044[_0x2d87eb(0x336)][_0x2d87eb(0x1c5)]};}return JSON[_0x2d87eb(0x183)]({'cmd':_0x506044[_0x2d87eb(0x3b9)],'routeKey':_0x506044[_0x2d87eb(0x41d)],'collaMsg':_0x21301a});}case I['JOIN']:return JSON[_0x2d87eb(0x183)]({'cmd':_0x506044[_0x2d87eb(0x3b9)],'routeKey':_0x506044[_0x2d87eb(0x41d)],'joinReq':_0x506044['data']});case I[_0x2d87eb(0x25e)]:return JSON[_0x2d87eb(0x183)]({'cmd':_0x506044[_0x2d87eb(0x3b9)],'routeKey':_0x506044['routeKey'],'leaveReq':_0x506044[_0x2d87eb(0x336)]});default:throw new Error(_0x2d87eb(0x20f));}}var Gi=(_0x52d935,_0x466b45,_0x2585e3,_0x4fbd9b)=>{const _0x24cb9=_0x369344;for(var _0x3dbc7c=_0x466b45,_0x30d9bd=_0x52d935[_0x24cb9(0x3b6)]-0x1,_0x1d9a54;_0x30d9bd>=0x0;_0x30d9bd--)(_0x1d9a54=_0x52d935[_0x30d9bd])&&(_0x3dbc7c=_0x1d9a54(_0x3dbc7c)||_0x3dbc7c);return _0x3dbc7c;},fe=(_0x280b7e,_0x52a036)=>(_0x14667e,_0x54d99e)=>_0x52a036(_0x14667e,_0x54d99e,_0x280b7e);const Is=_0x519219(_0x369344(0x3f7)),Yi=_0x369344(0x38a),Ki='/universer-api/comb';function Xi(_0x8f2b36,_0x2d6e10,_0x424c42){const _0x453c71=_0x369344;return _0x8f2b36+'/'+_0x2d6e10+_0x453c71(0x3c1)+_0x424c42+'/new_changes';}let ut=class{constructor(_0x2d6983,_0x462c0f,_0x2b3500,_0x15021d,_0xf090f6){const _0x402c97=_0x369344;this[_0x402c97(0x258)]=_0x2d6983,this[_0x402c97(0x40b)]=_0x462c0f,this[_0x402c97(0x3f1)]=_0x2b3500,this[_0x402c97(0x2d5)]=_0x15021d,this[_0x402c97(0x30a)]=_0xf090f6;}[_0x369344(0x19c)](_0x5c7d9c){const _0x1ebd6d=_0x369344,_0x40ea01=this[_0x1ebd6d(0x40b)][_0x1ebd6d(0x19c)](_0x5c7d9c);if(!_0x40ea01)throw new Error(_0x1ebd6d(0x18d));const _0x5a913e=new _0x17acc5(),_0x3d7357=new _0x36360c();_0x5a913e[_0x1ebd6d(0x1a0)](_0xd3a753(_0x40ea01['close$'][_0x1ebd6d(0x3c2)](_0x18a1da=>_0x3d7357[_0x1ebd6d(0x43d)](_0x18a1da)))),_0x5a913e[_0x1ebd6d(0x1a0)](_0xd3a753(()=>_0x3d7357[_0x1ebd6d(0x17c)]()));const _0x3e4794=new _0x36360c();_0x5a913e['add'](_0xd3a753(_0x40ea01[_0x1ebd6d(0x41c)][_0x1ebd6d(0x3c2)](_0xda3502=>_0x3e4794[_0x1ebd6d(0x43d)](_0xda3502)))),_0x5a913e['add'](_0xd3a753(()=>_0x3e4794['complete']()));const _0x5e769b=new _0x36360c();_0x5a913e[_0x1ebd6d(0x1a0)](_0xd3a753(_0x40ea01[_0x1ebd6d(0x1a5)][_0x1ebd6d(0x3c2)](_0x545a39=>{const _0x3e4d12=_0x1ebd6d,_0x53ad62=Bi(_0x545a39);_0x5e769b[_0x3e4d12(0x43d)](_0x53ad62);}))),_0x5a913e[_0x1ebd6d(0x1a0)](_0xd3a753(()=>_0x5e769b[_0x1ebd6d(0x17c)]()));const _0xe0c9a7=()=>{const _0x47cc72=_0x1ebd6d;_0x3e4794[_0x47cc72(0x43d)](new Event('connection\x20error')),_0x3d7357[_0x47cc72(0x43d)](new CloseEvent(_0x47cc72(0x286))),_0x573340['close']();},_0x573340={'memberID':'','close$':_0x3d7357[_0x1ebd6d(0x36b)](),'error$':_0x3e4794[_0x1ebd6d(0x36b)](),'open$':_0x40ea01[_0x1ebd6d(0x26c)],'message$':_0x5e769b[_0x1ebd6d(0x36b)](),'send':_0x2e32c2=>{const _0x4bc936=_0x1ebd6d;if(_0x2e32c2[_0x4bc936(0x3b9)]===I[_0x4bc936(0x395)]){if(_0x2e32c2[_0x4bc936(0x336)]['eventID']===_0x217d29[_0x4bc936(0x3d7)]){this[_0x4bc936(0x1da)](_0x573340,_0x2e32c2['data'])[_0x4bc936(0x15f)](_0x55fea3=>{const _0xcf4665=_0x4bc936;this[_0xcf4665(0x2d5)]['error'](_0x55fea3),_0xe0c9a7();});return;}if(_0x2e32c2[_0x4bc936(0x336)][_0x4bc936(0x1c5)]===_0x217d29['FETCH_MISSING']){const _0x214877=_0x2e32c2[_0x4bc936(0x336)];this[_0x4bc936(0x3cf)](_0x214877)['then'](_0x28e2d2=>{const _0x1d1cd9=_0x4bc936;_0x5e769b[_0x1d1cd9(0x43d)]({'cmd':I[_0x1d1cd9(0x28a)],'code':wt['OK'],'routeKey':_0x214877[_0x1d1cd9(0x336)][_0x1d1cd9(0x3cc)],'routeType':'','data':{'eventID':_0x217d29[_0x1d1cd9(0x264)],'data':{'changesets':_0x28e2d2}}});})[_0x4bc936(0x15f)](_0x46367e=>{const _0x1944c7=_0x4bc936;this['_logService'][_0x1944c7(0x284)](_0x46367e),_0xe0c9a7();});return;}}_0x40ea01[_0x4bc936(0x332)](Wi(_0x2e32c2));},'close':()=>{const _0x334ba2=_0x1ebd6d;_0x40ea01[_0x334ba2(0x323)](),_0x5a913e[_0x334ba2(0x42d)]();}};return _0x573340;}async['_submitChangeset'](_0x3f05ed,_0x5a85d4){const _0x5ccf90=_0x369344;var _0x3e5afa;const {unitType:_0x3e5521,unitID:_0x13c106,changeset:_0x5606ab}=_0x5a85d4['data'],_0x5ce21c={'unitID':_0x13c106,'memberID':_0x3f05ed[_0x5ccf90(0x1cf)],'type':_0x3e5521,'changeset':_0x1ccc97(_0x5606ab)},_0xa90bae=Xi((_0x3e5afa=this['_configService'][_0x5ccf90(0x306)](Yi))!=null?_0x3e5afa:Ki,_0x3e5521,_0x13c106);try{await this[_0x5ccf90(0x258)]['post'](_0xa90bae,{'body':_0x5ce21c});}catch(_0x49363e){throw this['_logService'][_0x5ccf90(0x284)]('[CollaborationSession]',_0x5ccf90(0x302)),_0x49363e;}}async[_0x369344(0x3cf)](_0x4be940){const _0x17461d=_0x369344,{unitID:_0x2991de,from:_0x14b6b5,to:_0x36c93b,unitType:_0x56834a}=_0x4be940[_0x17461d(0x336)];return(await this[_0x17461d(0x30a)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x2991de,'type':_0x56834a,'from':_0x14b6b5,'to':_0x36c93b}))[_0x17461d(0x1f4)];}};ut=Gi([fe(0x0,_0x3bdb53(_0xe9c2a2)),fe(0x1,_0x3bdb53(_0x42c558)),fe(0x2,_0xcb4dc7),fe(0x3,_0x5e199c),fe(0x4,_0xb15e1d)],ut);var Es=(_0x855b8,_0xfa9b5c,_0x18350a,_0x1e5d33)=>{const _0x2fc90d=_0x369344;for(var _0x55bcd9=_0xfa9b5c,_0x578dc6=_0x855b8[_0x2fc90d(0x3b6)]-0x1,_0xcf1d0e;_0x578dc6>=0x0;_0x578dc6--)(_0xcf1d0e=_0x855b8[_0x578dc6])&&(_0x55bcd9=_0xcf1d0e(_0x55bcd9)||_0x55bcd9);return _0x55bcd9;},M=(_0x1afcf7,_0x426f08)=>(_0xf2d7ca,_0xc0af85)=>_0x426f08(_0xf2d7ca,_0xc0af85,_0x1afcf7),_e=(_0x43b472=>(_0x43b472[_0x43b472[_0x369344(0x3eb)]=0x0]=_0x369344(0x3eb),_0x43b472[_0x43b472[_0x369344(0x16b)]=0x1]='JOINING',_0x43b472[_0x43b472[_0x369344(0x37b)]=0x2]=_0x369344(0x37b),_0x43b472[_0x43b472[_0x369344(0x3a5)]=0x3]='ONLINE',_0x43b472))(_e||{});const Ji='COLLAB_WEB_SOCKET_URL',zi='ws://127.0.0.1:8000/universer-api/comb/connect',qi=_0x369344(0x31d),Zi=0x7530,Cs=_0x369344(0x35c),bs=0x2710,Qi=_0x369344(0x331),en=0x4e20,tn=_0x369344(0x3ad),sn=0x3;let dt=class extends _0x1f6cf4{constructor(_0x4c1113,_0x1902ef,_0x51be64,_0x3f5649,_0x362ab6,_0x1bb4dd,_0x167922,_0x13ec73){const _0xe277ba=_0x369344;super(),l(this,_0xe277ba(0x3fd),new _0x2a5f89(0x0)),l(this,'sessionStatus$',this[_0xe277ba(0x3fd)][_0xe277ba(0x36b)]()),l(this,_0xe277ba(0x1f6),new _0x36360c()),l(this,_0xe277ba(0x326),this['_event$']['asObservable']()),l(this,_0xe277ba(0x178)),l(this,_0xe277ba(0x347)),l(this,_0xe277ba(0x19e)),(this[_0xe277ba(0x175)]=_0x4c1113,this[_0xe277ba(0x2d5)]=_0x51be64,this['_beforeCloseService']=_0x3f5649,this[_0xe277ba(0x41a)]=_0x362ab6,this[_0xe277ba(0x3f1)]=_0x1bb4dd,this[_0xe277ba(0x24a)]=_0x167922,this[_0xe277ba(0x2c2)]=_0x13ec73,_0x1902ef[_0xe277ba(0x2be)](_0x46656a(this[_0xe277ba(0x351)]))[_0xe277ba(0x3c2)](_0x47f0cd=>{const _0x3345fd=_0xe277ba;var _0xdc6376;typeof _0x47f0cd>'u'||(this['_socket']=_0x47f0cd,_0x47f0cd?(this['_joinRoom'](_0x47f0cd),this[_0x3345fd(0x347)]=this[_0x3345fd(0x178)][_0x3345fd(0x1a5)][_0x3345fd(0x3c2)](_0x22c02f=>{const _0x1fd420=_0x3345fd;_0x22c02f[_0x1fd420(0x41d)]===this[_0x1fd420(0x175)]&&this[_0x1fd420(0x446)](_0x22c02f);})):(this[_0x3345fd(0x3fd)][_0x3345fd(0x43d)](0x2),(_0xdc6376=this[_0x3345fd(0x347)])==null||_0xdc6376['unsubscribe'](),this['_socketMessageSubscription']=null));}),this[_0xe277ba(0x1f9)](this[_0xe277ba(0x20e)][_0xe277ba(0x3dd)](()=>{const _0x57f241=_0xe277ba;var _0x3e1137;(_0x3e1137=this[_0x57f241(0x178)])==null||_0x3e1137[_0x57f241(0x332)]({'cmd':I[_0x57f241(0x25e)],'data':{'roomID':this[_0x57f241(0x175)]}});})));}get[_0x369344(0x1d4)](){const _0x32c04b=_0x369344;return this[_0x32c04b(0x3fd)][_0x32c04b(0x1ae)]();}[_0x369344(0x1c3)](){const _0x307d57=_0x369344;var _0x3cd445,_0x2ceb70;return(_0x2ceb70=(_0x3cd445=this[_0x307d57(0x178)])==null?void 0x0:_0x3cd445[_0x307d57(0x1cf)])!=null?_0x2ceb70:null;}[_0x369344(0x42d)](){const _0x51f9ec=_0x369344;super[_0x51f9ec(0x42d)](),this['dispose$'][_0x51f9ec(0x43d)](),this[_0x51f9ec(0x351)][_0x51f9ec(0x17c)]();}[_0x369344(0x446)](_0x16ca5d){const _0x5c0286=_0x369344;_0x16ca5d[_0x5c0286(0x3b9)]===I[_0x5c0286(0x1f1)]?this['_onJoinRoomEvent'](_0x16ca5d):_0x16ca5d['cmd']===I[_0x5c0286(0x28a)]&&this[_0x5c0286(0x383)](_0x16ca5d);}[_0x369344(0x25b)](_0x5c7bc4){const _0x5726c5=_0x369344;this['_sessionStatus$']['next'](0x1),_0x5c7bc4[_0x5726c5(0x332)]({'cmd':I[_0x5726c5(0x1f1)],'routeKey':this[_0x5726c5(0x175)],'routeType':'','data':{'rooms':[{'roomID':this[_0x5726c5(0x175)]}]}});}['_onJoinRoomEvent'](_0x140dc5){const _0x459799=_0x369344;var _0x1b67e6;if(_0x140dc5['code']===wt['FAIL']){this['_messageService'][_0x459799(0x1d1)]({'type':_0x1aba92['Warning'],'content':this[_0x459799(0x24a)]['t'](_0x459799(0x1fd))}),this[_0x459799(0x3fd)]['next'](0x2);return;}this[_0x459799(0x3fd)][_0x459799(0x43d)](0x3);const _0xb4a3a7=(_0x1b67e6=_0x140dc5[_0x459799(0x336)][_0x459799(0x2c3)][this['_unitID']])==null?void 0x0:_0x1b67e6['members'];_0xb4a3a7&&_0xb4a3a7[_0x459799(0x33d)](_0x111f4a=>this['_memberService']['updateMember'](this[_0x459799(0x175)],_0x111f4a));}[_0x369344(0x383)](_0x47ea1b){const _0x13d27b=_0x369344;try{const _0x418fc4=_0x47ea1b[_0x13d27b(0x336)];switch(_0x418fc4['eventID']){case _0x217d29['USERS_ENTER']:this[_0x13d27b(0x30d)](_0x418fc4),this[_0x13d27b(0x1f6)]['next'](_0x418fc4);break;case _0x217d29[_0x13d27b(0x1ee)]:this[_0x13d27b(0x1d3)](_0x418fc4),this['_event$'][_0x13d27b(0x43d)](_0x418fc4);break;case _0x217d29[_0x13d27b(0x3f9)]:this[_0x13d27b(0x2cf)](),this[_0x13d27b(0x1f6)]['next'](_0x418fc4);break;case _0x217d29[_0x13d27b(0x3b1)]:this[_0x13d27b(0x2d5)]['error']('save\x20fail\x20reason\x20is\x20'+JSON[_0x13d27b(0x183)](_0x418fc4)),this[_0x13d27b(0x1f6)]['next'](_0x418fc4);break;default:this['_event$']['next'](_0x418fc4);}}catch(_0x57ce9f){this[_0x13d27b(0x2d5)][_0x13d27b(0x284)](_0x57ce9f,_0x47ea1b);}}[_0x369344(0x30d)](_0x1e2721){const _0x4be366=_0x369344;this['_memberService'][_0x4be366(0x441)](this['_unitID'],_0x1e2721[_0x4be366(0x336)]);}[_0x369344(0x1d3)](_0x11eeeb){const _0x216337=_0x369344;this[_0x216337(0x2c2)]['removeMember'](this[_0x216337(0x175)],_0x11eeeb['data']['memberID']);}async[_0x369344(0x332)](_0xb71dc1,_0x9d90ee){const _0x131a73=_0x369344;if(this[_0x131a73(0x1d4)]!==0x3||!this[_0x131a73(0x178)])throw new Error(_0x131a73(0x161));try{_0xb71dc1[_0x131a73(0x1c5)]===_0x217d29[_0x131a73(0x430)]&&this[_0x131a73(0x248)](),this['_socket']['send']({'cmd':I[_0x131a73(0x395)],'routeKey':_0x9d90ee,'routeType':'','data':_0xb71dc1});}catch(_0x28a3d2){this[_0x131a73(0x2d5)][_0x131a73(0x284)](_0x28a3d2);}}[_0x369344(0x248)](){const _0x3eb085=_0x369344;var _0x410a2d;this['_collaborationTimeoutTimer']=window[_0x3eb085(0x348)](()=>{const _0x2234d2=_0x3eb085;this[_0x2234d2(0x19e)]=null,this['_messageService'][_0x2234d2(0x1d1)]({'type':_0x1aba92[_0x2234d2(0x345)],'content':this[_0x2234d2(0x24a)]['t'](_0x2234d2(0x22b))});},(_0x410a2d=this[_0x3eb085(0x3f1)][_0x3eb085(0x306)](Cs))!=null?_0x410a2d:bs);}[_0x369344(0x2cf)](){const _0x231683=_0x369344;this[_0x231683(0x19e)]&&(clearTimeout(this[_0x231683(0x19e)]),this['_collaborationTimeoutTimer']=null);}};dt=Es([M(0x2,_0x5e199c),M(0x3,_0x29d50d),M(0x4,_0x45f7cf),M(0x5,_0xcb4dc7),M(0x6,_0x3bdb53(_0x122a5b)),M(0x7,_0x3bdb53(ee))],dt);let Oe=class extends _0x1bbf2c{constructor(_0x428ed3,_0x5d13d7,_0x44c208,_0x4be676,_0xa1d162,_0x123779){const _0x498385=_0x369344;super(),l(this,_0x498385(0x2ad),new _0x2a5f89(void 0x0)),l(this,_0x498385(0x1ab),new Map()),l(this,_0x498385(0x2f3),new _0x2a5f89(0x0)),l(this,_0x498385(0x29e),this[_0x498385(0x2f3)][_0x498385(0x36b)]()),l(this,_0x498385(0x2d4),!0x1),l(this,_0x498385(0x357)),l(this,_0x498385(0x1fa)),l(this,_0x498385(0x25f)),l(this,_0x498385(0x244),0x0),(this[_0x498385(0x2e0)]=_0x428ed3,this[_0x498385(0x24a)]=_0x5d13d7,this[_0x498385(0x41a)]=_0x44c208,this[_0x498385(0x2d5)]=_0x4be676,this[_0x498385(0x3f1)]=_0xa1d162,this[_0x498385(0x1fe)]=_0x123779);}get[_0x369344(0x178)](){const _0x152f19=_0x369344;return this[_0x152f19(0x2ad)][_0x152f19(0x1ae)]();}[_0x369344(0x42d)](){const _0x1bde6e=_0x369344;super['dispose'](),this[_0x1bde6e(0x1ab)][_0x1bde6e(0x33d)](_0x3249ec=>_0x3249ec[_0x1bde6e(0x42d)]()),this['_sessions']['clear'](),this[_0x1bde6e(0x2f3)]['complete']();}async[_0x369344(0x24d)](_0x47bf25){const _0x22618e=_0x369344;if(this['_sessions']['has'](_0x47bf25))return this[_0x22618e(0x1ab)][_0x22618e(0x19d)](_0x47bf25);this[_0x22618e(0x217)]();const _0x4ebfb1=this['_injector'][_0x22618e(0x191)](dt,_0x47bf25,this[_0x22618e(0x2ad)]['asObservable']());return this[_0x22618e(0x1ab)][_0x22618e(0x24c)](_0x47bf25,_0x4ebfb1),_0x4ebfb1;}[_0x369344(0x398)](){const _0x2be780=_0x369344;var _0x5deee0;const _0x432a93=(_0x5deee0=this[_0x2be780(0x3f1)]['getConfig'](Ji))!=null?_0x5deee0:zi;return this['_socketService'][_0x2be780(0x19c)](_0x432a93);}['_tryEnsureSocket'](){const _0x1142b8=_0x369344;try{const _0x2b4bd0=this['_createSocket']();if(_0x2b4bd0){const _0x199eb9=_0x2b4bd0['send'];_0x2b4bd0[_0x1142b8(0x332)]=_0x1754d7=>(this[_0x1142b8(0x1c9)](),_0x199eb9[_0x1142b8(0x190)](_0x2b4bd0,[_0x1754d7])),_0x2b4bd0['message$'][_0x1142b8(0x3c2)](_0x43ebf3=>this['_onMessage'](_0x2b4bd0,_0x43ebf3)),_0x2b4bd0['error$'][_0x1142b8(0x2be)](_0x1cadbd(0x1))[_0x1142b8(0x3c2)](_0x1a3629=>this[_0x1142b8(0x2d5)][_0x1142b8(0x284)](_0x1142b8(0x338),_0x1a3629)),_0x2b4bd0[_0x1142b8(0x26c)]['pipe'](_0x1cadbd(0x1))[_0x1142b8(0x3c2)](()=>{const _0x141776=_0x1142b8;this[_0x141776(0x156)](_0x2b4bd0);}),_0x2b4bd0[_0x1142b8(0x19a)][_0x1142b8(0x2be)](_0x1cadbd(0x1))[_0x1142b8(0x3c2)](_0x25c434=>{const _0x2a7c04=_0x1142b8;this[_0x2a7c04(0x2d5)]['debug'](_0x2a7c04(0x184),_0x2a7c04(0x305),_0x25c434),this[_0x2a7c04(0x1b9)]();});}}catch(_0x1b4aa8){this[_0x1142b8(0x2d5)][_0x1142b8(0x284)](_0x1b4aa8),this['_onConnectionFailed']();}}[_0x369344(0x156)](_0x567ce2){const _0xba0559=_0x369344;this[_0xba0559(0x2d5)][_0xba0559(0x215)](_0xba0559(0x184),_0xba0559(0x249)),_0x567ce2['send']({'cmd':I[_0xba0559(0x290)]}),this[_0xba0559(0x1c9)]();}[_0x369344(0x1b9)](){const _0x136c09=_0x369344;var _0x4fc738;this[_0x136c09(0x2f3)][_0x136c09(0x43d)](0x2),this[_0x136c09(0x2ad)]['next'](null),this['_clearTimeoutTimer'](),this[_0x136c09(0x209)](),this['_socketReady']=!0x1,this[_0x136c09(0x244)]<((_0x4fc738=this['_configService']['getConfig'](tn))!=null?_0x4fc738:sn)?(this[_0x136c09(0x454)](this[_0x136c09(0x244)]),this[_0x136c09(0x244)]+=0x1):this[_0x136c09(0x41a)][_0x136c09(0x1d1)]({'type':_0x1aba92[_0x136c09(0x345)],'content':this['_localeService']['t'](_0x136c09(0x21b))});}[_0x369344(0x454)](_0x4b1477){const _0x169559=_0x369344;var _0x3bd9ca;const _0x9d423a=((_0x3bd9ca=this[_0x169559(0x3f1)]['getConfig'](Qi))!=null?_0x3bd9ca:en)*0x2**_0x4b1477;this[_0x169559(0x41a)][_0x169559(0x1d1)]({'type':_0x1aba92[_0x169559(0x2bd)],'content':this['_localeService']['t'](_0x169559(0x44e))}),this['_retryConnectingTimer']=setTimeout(()=>{const _0x2e0a56=_0x169559;this[_0x2e0a56(0x217)](),clearTimeout(this[_0x2e0a56(0x25f)]),this[_0x2e0a56(0x25f)]=null;},_0x9d423a);}['_rescheduleHeartbeatEvent'](){const _0x2e57de=_0x369344;var _0x21cb06;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x2e57de(0x41f)](),(_0x21cb06=this[_0x2e57de(0x3f1)][_0x2e57de(0x306)](qi))!=null?_0x21cb06:Zi);}[_0x369344(0x41f)](){const _0x329b1b=_0x369344;this['_socket'][_0x329b1b(0x332)]({'cmd':I[_0x329b1b(0x182)]}),this[_0x329b1b(0x28e)]();}['_waitForHeartbeatResponse'](){const _0x30a687=_0x369344;var _0xd60320;this[_0x30a687(0x1fa)]=setTimeout(()=>this[_0x30a687(0x1b9)](),(_0xd60320=this['_configService']['getConfig'](Cs))!=null?_0xd60320:bs);}[_0x369344(0x246)](_0x2f2562,_0x8392ad){const _0x2f67cf=_0x369344,{cmd:_0x5347bd}=_0x8392ad;_0x5347bd===I[_0x2f67cf(0x290)]&&!this[_0x2f67cf(0x2d4)]&&(_0x2f2562[_0x2f67cf(0x1cf)]=_0x8392ad[_0x2f67cf(0x336)][_0x2f67cf(0x1cf)],this[_0x2f67cf(0x2ad)]['next'](_0x2f2562),this['_status$']['next'](0x3),this[_0x2f67cf(0x2d4)]=!0x0),_0x5347bd===I[_0x2f67cf(0x182)]&&this['_clearTimeoutTimer'](),this[_0x2f67cf(0x1c9)]();}['_clearHeartbeatTimer'](){const _0x11970a=_0x369344;this[_0x11970a(0x357)]!=null&&(clearTimeout(this[_0x11970a(0x357)]),this['_sendHeartbeatTimer']=null);}[_0x369344(0x415)](){const _0x3b8aaa=_0x369344;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x3b8aaa(0x1fa)]),this[_0x3b8aaa(0x1fa)]=null);}};Oe=Es([M(0x0,_0x3bdb53(_0x29e329)),M(0x1,_0x3bdb53(_0x122a5b)),M(0x2,_0x45f7cf),M(0x3,_0x5e199c),M(0x4,_0xcb4dc7),M(0x5,Is)],Oe);var nn=(_0x48c4ad,_0x523858,_0x3e8aca,_0x371958)=>{for(var _0x201dc4=_0x523858,_0x4db982=_0x48c4ad['length']-0x1,_0x5c17b5;_0x4db982>=0x0;_0x4db982--)(_0x5c17b5=_0x48c4ad[_0x4db982])&&(_0x201dc4=_0x5c17b5(_0x201dc4)||_0x201dc4);return _0x201dc4;},ve=(_0x2f5be8,_0x20bd15)=>(_0x3cb8bc,_0x47f1cf)=>_0x20bd15(_0x3cb8bc,_0x47f1cf,_0x2f5be8);const rn='LOCAL_CACHE_INTERVAL',on=0x3e8;let O=class extends _0x1bbf2c{constructor(_0x55d90b,_0x5a293e,_0x12e5d8,_0xf695b0,_0x354a20){const _0x58e147=_0x369344;super(),l(this,_0x58e147(0x2ae),new Map()),l(this,_0x58e147(0x2d8),new Map()),l(this,_0x58e147(0x360),!0x1),(this['_configService']=_0x55d90b,this[_0x58e147(0x342)]=_0x5a293e,this[_0x58e147(0x20e)]=_0x12e5d8,this[_0x58e147(0x24a)]=_0xf695b0,this[_0x58e147(0x317)]=_0x354a20,this[_0x58e147(0x2a5)]());}[_0x369344(0x2da)](){const _0x372a5f=_0x369344;this[_0x372a5f(0x360)]=!0x0;}[_0x369344(0x1b4)](){const _0x38a166=_0x369344;this[_0x38a166(0x360)]=!0x1;}[_0x369344(0x42d)](){const _0x2046d6=_0x369344;this[_0x2046d6(0x229)]()['then'](()=>super['dispose']());}async[_0x369344(0x1dd)](_0x56fb22){const _0x2ee0e0=_0x369344;return this[_0x2ee0e0(0x360)]?null:this['_localStorageService'][_0x2ee0e0(0x2ba)](Bt(_0x56fb22));}async['saveOfflineData'](_0x37a2b6,_0x340641){const _0x1ce4e5=_0x369344;return!!this[_0x1ce4e5(0x342)][_0x1ce4e5(0x410)](_0x37a2b6,_0x340641);}[_0x369344(0x1f7)](_0x146fc7,_0x5d0bd9,_0xba2ff3,_0x1e161c){const _0x5bc5d2=_0x369344,_0x5933d4=this[_0x5bc5d2(0x317)][_0x5bc5d2(0x21c)](_0x146fc7);this['_cachedData']['set'](_0x146fc7,{'unitID':_0x146fc7,'type':_0x5d0bd9,'awaitingChangeset':_0xba2ff3,'mutations':_0x1e161c,'rev':_0x5933d4}),this[_0x5bc5d2(0x2d8)]['has'](_0x146fc7)||this['_scheduleSaving'](_0x146fc7);}[_0x369344(0x32a)](_0x168902){const _0x2f552e=_0x369344,_0x2d6d9a=this['_getSaveTimeout']();_0x2d6d9a===0x0?this[_0x2f552e(0x35e)](_0x168902):this[_0x2f552e(0x2d8)][_0x2f552e(0x24c)](_0x168902,setTimeout(()=>this[_0x2f552e(0x35e)](_0x168902),_0x2d6d9a));}[_0x369344(0x465)](){const _0x23517c=_0x369344;var _0x43a7af;return(_0x43a7af=this['_configService'][_0x23517c(0x306)](rn))!=null?_0x43a7af:on;}[_0x369344(0x35e)](_0x57e44b){const _0x119893=_0x369344,_0x44e244=this[_0x119893(0x2d8)][_0x119893(0x19d)](_0x57e44b);return _0x44e244!==void 0x0&&window[_0x119893(0x2ee)](_0x44e244),this[_0x119893(0x342)]['setItem'](Bt(_0x57e44b),this[_0x119893(0x2ae)]['get'](_0x57e44b))[_0x119893(0x267)](()=>this[_0x119893(0x2d8)][_0x119893(0x358)](_0x57e44b));}async[_0x369344(0x229)](){const _0x1ac9d6=_0x369344,_0x5ba579=[];this[_0x1ac9d6(0x2d8)][_0x1ac9d6(0x33d)]((_0x31b7bc,_0x14eedb)=>{const _0x3be521=_0x1ac9d6;window[_0x3be521(0x2ee)](_0x31b7bc),_0x5ba579['push'](this[_0x3be521(0x35e)](_0x14eedb)['then'](()=>{const _0x5a6a76=_0x3be521;this[_0x5a6a76(0x2d8)][_0x5a6a76(0x358)](_0x14eedb);}));}),await Promise[_0x1ac9d6(0x1fb)](_0x5ba579);}[_0x369344(0x2a5)](){const _0x288e20=_0x369344;this[_0x288e20(0x1f9)](this['_beforeCloseService'][_0x288e20(0x272)](()=>{const _0x3774fd=_0x288e20;if(this['_saveTaskMap']['size'])return this[_0x3774fd(0x24a)]['t'](_0x3774fd(0x2d2));}));}};O=nn([ve(0x0,_0xcb4dc7),ve(0x1,_0x56feea),ve(0x2,_0x29d50d),ve(0x3,_0x3bdb53(_0x122a5b)),ve(0x4,_0x3bdb53(_0x4f9324))],O);function Bt(_0x339e22){const _0x17417e=_0x369344;return _0x17417e(0x399)+_0x339e22;}const Je=_0x519219(_0x369344(0x1bb));var Rs=(_0xebe460=>(_0xebe460[_0xebe460['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0xebe460[_0xebe460['OTHER_CLIENTS_EDITING']=0x1]=_0x369344(0x26d),_0xebe460))(Rs||{});const Wt=0x7530,Gt=_0x369344(0x2b8);class an extends _0x1bbf2c{constructor(){const _0x5635be=_0x369344;super(),l(this,_0x5635be(0x3ea),_0x16b7ed[_0x5635be(0x3d2)]()),l(this,'_selfUnitIDs',new Set()),l(this,_0x5635be(0x261),new Map()),l(this,'_heartbeatTimer',null),l(this,'_clearOtherTimers',new Map()),l(this,_0x5635be(0x3a9),new Map()),this['_init']();}[_0x369344(0x42d)](){const _0x3e1add=_0x369344;super[_0x3e1add(0x42d)](),this['_clearOtherTimers'][_0x3e1add(0x33d)]((_0x51fe97,_0xa2ad6f)=>this[_0x3e1add(0x292)](_0xa2ad6f)),this[_0x3e1add(0x25c)]&&window[_0x3e1add(0x381)](this[_0x3e1add(0x25c)]);}[_0x369344(0x42a)](_0x3c1ba9){const _0x408821=_0x369344;return this[_0x408821(0x3a0)](_0x3c1ba9)[_0x408821(0x2be)](_0xc9666f());}['editingUnit'](_0x5849a7){const _0x35db18=_0x369344;this['_selfUnitIDs'][_0x35db18(0x407)]===0x0&&this[_0x35db18(0x24b)](),this[_0x35db18(0x36f)][_0x35db18(0x1a0)](_0x5849a7),this[_0x35db18(0x29d)]({'type':0x0,'memberID':this[_0x35db18(0x3ea)],'unitID':_0x5849a7});}[_0x369344(0x24e)](_0x58c9cc){const _0x472dcb=_0x369344;this[_0x472dcb(0x36f)][_0x472dcb(0x358)](_0x58c9cc),this['_selfUnitIDs']['size']===0x0&&this[_0x472dcb(0x25c)]&&window[_0x472dcb(0x381)](this[_0x472dcb(0x25c)]);}[_0x369344(0x3e0)](){const _0x5bdddd=_0x369344;this[_0x5bdddd(0x1f9)](_0xd3a753(_0x190c51(window,_0x5bdddd(0x453))['subscribe'](_0x34c931=>{const _0x11c926=_0x5bdddd;if(_0x34c931[_0x11c926(0x299)]!==Gt||!_0x34c931['newValue'])return;const _0xa05f19=JSON[_0x11c926(0x2af)](_0x34c931['newValue']);this['_handleEvent'](_0xa05f19);}))),window['addEventListener'](_0x5bdddd(0x467),()=>this[_0x5bdddd(0x29d)]({'type':0x1,'memberID':this[_0x5bdddd(0x3ea)],'unitIDs':Array[_0x5bdddd(0x201)](this[_0x5bdddd(0x36f)])}));}[_0x369344(0x2bf)](_0x198fc5){const _0x5d7c7c=_0x369344;switch(_0x198fc5['type']){case 0x0:this[_0x5d7c7c(0x1c6)](_0x198fc5);break;case 0x1:this[_0x5d7c7c(0x22c)](_0x198fc5);break;case 0x2:this['_handleHeartbeatEvent'](_0x198fc5);break;}}[_0x369344(0x1c6)](_0x46affd){const _0x454ea9=_0x369344,{unitID:_0x2c0853,memberID:_0x21c1f7}=_0x46affd;if(!this[_0x454ea9(0x261)]['has'](_0x2c0853)||!this[_0x454ea9(0x261)][_0x454ea9(0x19d)](_0x2c0853)[_0x454ea9(0x282)](_0x21c1f7)){const _0x57cf9d=this['_unitOnClients'][_0x454ea9(0x19d)](_0x2c0853)||new Set();_0x57cf9d['add'](_0x21c1f7),this['_unitOnClients']['set'](_0x2c0853,_0x57cf9d),this[_0x454ea9(0x3e9)](_0x21c1f7),this[_0x454ea9(0x29d)]({'type':0x0,'memberID':this[_0x454ea9(0x3ea)],'unitID':_0x2c0853});}else this[_0x454ea9(0x3a0)](_0x2c0853)[_0x454ea9(0x43d)](0x1);}['_scheduleClearOtherTimer'](_0x258f9d){const _0x52c640=_0x369344;this['_removeClearOtherTimer'](_0x258f9d);const _0x29e8dd=window[_0x52c640(0x348)](()=>{const _0x15d6b5=_0x52c640;this['_unitOnClients'][_0x15d6b5(0x33d)](_0x2264e6=>{const _0xc53f39=_0x15d6b5;_0x2264e6[_0xc53f39(0x358)](_0x258f9d);});},Wt*0x2);this[_0x52c640(0x198)][_0x52c640(0x24c)](_0x258f9d,_0x29e8dd);}[_0x369344(0x292)](_0x9b0cd2){const _0x54367e=_0x369344;if(this[_0x54367e(0x198)][_0x54367e(0x282)](_0x9b0cd2)){const _0x38ec32=this['_clearOtherTimers'][_0x54367e(0x19d)](_0x9b0cd2);_0x38ec32&&window[_0x54367e(0x2ee)](_0x38ec32),this[_0x54367e(0x198)][_0x54367e(0x24c)](_0x9b0cd2,null);}}[_0x369344(0x22c)](_0x1c7b6e){const _0x3a2080=_0x369344,{memberID:_0x5dfff0,unitIDs:_0x45fea9}=_0x1c7b6e;_0x45fea9[_0x3a2080(0x33d)](_0x1388c8=>{const _0x117c54=_0x3a2080;var _0x3b98db;const _0x5658f8=this['_unitOnClients'][_0x117c54(0x19d)](_0x1388c8);_0x5658f8&&(_0x5658f8[_0x117c54(0x358)](_0x5dfff0),(_0x3b98db=this[_0x117c54(0x3a0)](_0x1388c8))==null||_0x3b98db['next'](_0x5658f8[_0x117c54(0x407)]===0x0?0x0:0x1));}),this[_0x3a2080(0x292)](_0x5dfff0);}[_0x369344(0x2d6)](_0x228329){const _0x1aeb9d=_0x369344;this[_0x1aeb9d(0x3e9)](_0x228329[_0x1aeb9d(0x1cf)]);}['_send'](_0x3fec10){const _0xad2665=_0x369344;localStorage[_0xad2665(0x410)](Gt,JSON[_0xad2665(0x183)](_0x3fec10));}[_0x369344(0x24b)](){const _0x13ee99=_0x369344;this[_0x13ee99(0x25c)]=window[_0x13ee99(0x254)](()=>{const _0x34bbef=_0x13ee99;this[_0x34bbef(0x29d)]({'type':0x2,'memberID':this['_id']});},Wt);}[_0x369344(0x3a0)](_0x50cc79){const _0x4d8374=_0x369344;return this[_0x4d8374(0x3a9)][_0x4d8374(0x282)](_0x50cc79)||this[_0x4d8374(0x3a9)]['set'](_0x50cc79,new _0x2a5f89(0x0)),this[_0x4d8374(0x3a9)]['get'](_0x50cc79);}}var cn=(_0x479989,_0x5e0e44,_0x255661,_0x44f03b)=>{const _0x4af494=_0x369344;for(var _0x3d5e32=_0x5e0e44,_0x2e6c12=_0x479989[_0x4af494(0x3b6)]-0x1,_0x444363;_0x2e6c12>=0x0;_0x2e6c12--)(_0x444363=_0x479989[_0x2e6c12])&&(_0x3d5e32=_0x444363(_0x3d5e32)||_0x3d5e32);return _0x3d5e32;},Yt=(_0x418921,_0x236e43)=>(_0x3a27f7,_0x231b5f)=>_0x236e43(_0x3a27f7,_0x231b5f,_0x418921);let Ve=class{constructor(_0xd0c5b6,_0x3dec14){const _0x44a152=_0x369344;this['_injector']=_0xd0c5b6,this[_0x44a152(0x27b)]=_0x3dec14;}[_0x369344(0x32f)](_0x14277f){const _0xc92b5c=_0x369344;this[_0xc92b5c(0x423)](_0x14277f),this[_0xc92b5c(0x268)](_0x14277f);}[_0x369344(0x257)](_0x49fa97){const _0x214403=_0x369344,_0x2ccb76=this['_injector']['get'](_0x2eb9bb),{redoCache:_0x42c924}=_0x2ccb76[_0x214403(0x437)]();if(_0x42c924[_0x214403(0x3b6)]===0x0)return _0x49fa97;let _0x15e267=_0x16b7ed[_0x214403(0x1aa)](_0x49fa97[_0x214403(0x2e9)][0x0]);for(let _0x3acd2d=0x0;_0x3acd2d<_0x42c924[_0x214403(0x3b6)];_0x3acd2d++){const _0x1c01b={'id':'doc.mutation.rich-text-editing','params':{..._0x42c924[_0x3acd2d]}},_0x25cd26=this['_transformService'][_0x214403(0x364)](_0x15e267,_0x1c01b,!0x1);if(_0xe12b02(_0x25cd26))throw _0x25cd26[_0x214403(0x284)];_0x15e267=_0x25cd26[_0x214403(0x40d)];}return{..._0x16b7ed[_0x214403(0x1aa)](_0x49fa97),'mutations':[_0x15e267]};}[_0x369344(0x423)](_0x1da390){const _0x2d368f=_0x369344,_0x5f4744=this['_injector']['get'](_0x2eb9bb),{undoCache:_0x2bafb9,redoCache:_0x366cae}=_0x5f4744[_0x2d368f(0x437)]();if(_0x2bafb9[_0x2d368f(0x3b6)]===0x0||_0x366cae[_0x2d368f(0x3b6)]===0x0)return;const _0x269593=[],_0x34f7cf=[];let _0x5c73b3=_0x16b7ed[_0x2d368f(0x1aa)](_0x1da390[_0x2d368f(0x2e9)][0x0]),_0x2b6bdc=_0x16b7ed[_0x2d368f(0x1aa)](_0x1da390['mutations'][0x0]);for(let _0x411e9d=_0x2bafb9['length']-0x1;_0x411e9d>=0x0;_0x411e9d--){const _0x51e8cd={'id':_0x2d368f(0x1b2),'params':{..._0x2bafb9[_0x411e9d]}},_0x1cca9d={'id':'doc.mutation.rich-text-editing','params':{..._0x366cae[_0x411e9d]}},_0x3e7934=this['_transformService'][_0x2d368f(0x364)](_0x5c73b3,_0x51e8cd,!0x1),_0x37543b=this[_0x2d368f(0x27b)][_0x2d368f(0x364)](_0x2b6bdc,_0x1cca9d,!0x1);if(_0xe12b02(_0x3e7934))throw _0x3e7934[_0x2d368f(0x284)];if(_0xe12b02(_0x37543b))throw _0x37543b[_0x2d368f(0x284)];_0x269593[_0x2d368f(0x380)](_0x3e7934[_0x2d368f(0x422)][_0x2d368f(0x3fc)]),_0x34f7cf['unshift'](_0x37543b[_0x2d368f(0x422)][_0x2d368f(0x3fc)]),_0x5c73b3=_0x3e7934[_0x2d368f(0x40d)],_0x2b6bdc=_0x37543b[_0x2d368f(0x40d)];}_0x5f4744['setUndoRedoMutationParamsCache']({'undoCache':_0x269593,'redoCache':_0x34f7cf});}[_0x369344(0x268)](_0x138131){const _0x439581=_0x369344,_0x15f3a7=this['_injector'][_0x439581(0x19d)](_0x2eb9bb),_0x410dd2=_0x15f3a7['getActiveRange']();if(_0x410dd2==null)return;const _0x4c2bd4=[{'id':_0x439581(0x1b2),'params':{'unitId':_0x138131[_0x439581(0x3cc)],'actions':null,'textRanges':[_0x410dd2]}}],_0x3a7400=this[_0x439581(0x27b)]['transformMutationsWithChangeset'](_0x138131,_0x4c2bd4);if(!_0x1cf98b(_0x3a7400))throw _0x3a7400[_0x439581(0x284)];const _0x41ce3a=_0x3a7400[_0x439581(0x422)][0x0][_0x439581(0x3fc)][_0x439581(0x369)];Array[_0x439581(0x15c)](_0x41ce3a)&&_0x41ce3a['length']&&_0x15f3a7['setActiveRange'](_0x41ce3a[0x0]);}};Ve=cn([Yt(0x0,_0x3bdb53(_0x29e329)),Yt(0x1,_0x5cdc22)],Ve);function _0x22b6(){const _0x4aa32a=['_sheetTransformSelectionsService','_imageSourceCache','cmd','_startCollaboration','/object','addObjects','_onRemoteACK','getCollabEntity$','min','MoveRangeCommandId','/unit/','subscribe','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','CHANGESET_REJ','_redoStacks','UNIVER_DOC','_sheetSkeletonManagerService','replaceState','_replayCachedMutations','transformByState','_textBubble','unitID','unitId','#fff','_fetchMissChangesets','InsertRowCommandId','_substituteRedoStack','generateRandomId','LICENSE_MAX_UNITS_EXCEEDED','UPDATE_CURSOR','LICENSE_EXPORT_SIZE_EXCEEDED','1em','SUBMIT_CHANGESET','Steady','incrementRevForDocument','getMember','_createInitialStateImpl','onPointerEnterObserver','registerOnClose','LIVESHARE_REQUEST_HOST','_change$','_init','toRgbString','_executeRemoteChangeset','AWAITING_WITH_PENDING','objectActions','onSendChangeset','filter','cursorInfo$','_themeService','_scheduleClearOtherTimer','_id','IDLE','removeParam','onlyLocal','_transformRemoteChangesetByIMECache','[CollaborationEntity]','invoke','_configService','_urlService','_getMergeRange','_exhaustRemoteChangesetQueue','_colorIndex','hovered','univer-pro.collaboration-client-socket-service','UNAUTHENTICATED','CHANGESET_ACK','getSelections','getTypeOfUnitDisposed$','params','_sessionStatus$','UNRECOGNIZED','permission.content','values','_roomMembers$','_updateCollabCursors','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','getSheetBlock','_labelPosition','_cursorInfo$','size','_remoteChangesetQueue','fetching\x20missing\x20changesets\x20from\x20','liveShareNewHost','_ws','workbook','m1Prime','onSyncEditingCollabCursor','_startSheetCollabCursor','setItem','appendMutation','_getSheetObject','colorChannel1','LIVESHARE_OPERATION','_clearTimeoutTimer','onRemoteRej','_removeCollabCursors','_docStateChangeManagerService','location','_messageService','conflict','error$','routeKey','COMPRESS_MUTATION_SEND','_sendHeartbeat','image/jpeg','sheetId','m2Prime','_transformUndoRedoStack','arc','SNAPSHOT_SERVER_URL_KEY','830015LmphqY','_clearLocalCache','_onRemoteRejected','pauseCollaboration','getUnitStatus$','Unknown\x20user','updateCursorEvent','dispose','onlineStatus','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','NEW_CHANGESETS','url(#on-line-single_clip0_910_349)','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','docStateChange$','univer-online-status','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_drawRange','getUndoRedoMutationParamsCache','_docSyncEditingCollabCursorService','getRoom','confirm','\x0aAfter:\x20','userID','next','_updateStatus','selection','onTransformRemoteChangesetByIMECache','updateMember','ranges','[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.','concat','getRangePointData','_onCombEvent','_transitionLocked','loadSheet','_updateState','createCollaborator','pluginName','getImageSourceCache','UNKNOWN_CMD','session.will-retry','_render','idSuffix','interceptor','fetchMissingChangesets','storage','_scheduleReconnection','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_queuedRemoteChangesets','file','name','OffLineSingle','LICENSE_DISTRO_REJECTED','awaiting_with_pending','ERROR_IMAGE','getViewport','href','_transformUndoredo','_disableEditing','not_collab','unknown','onMissedChangesetFetched','collabStatus.offline','_getSaveTimeout','_roomMembers','unload','_getUploadFileURL','override','collabStatus.notCollab','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','deleteCollaborator','transformMutationsWithChangeset','pending','awaitingChangeset','_onConnectionOpen','_updateLocalCache','SNAPSHOT_INVALID_SNAPSHOT','fetchThroughInterceptors','_initStatusListener','DeleteRangeMoveLeftCommandId','isArray','_getUndoStack','BASE64','catch','_hover','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','icon','setShapeProps','getParam','getRelativeCoord','APPLY_REJECT','_hideTimer','_draw','beginPath','_onConflict','JOINING','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','makeDirty','online','newCsEvent','_refRangeService','univerjs-icon\x20univerjs-icon-','NOT_COLLAB','flatMap','translate(.97)','_unitID','_clearRedo','resourceIDs','_socket','_permissionService','[PendingState]:\x20unhandled\x20univer\x20type:\x20','/block/','complete','labelPosition','collab-text-range-','fillRule','skeleton','collaborationUniverTypes','HEARTBEAT','stringify','[CollaborationSessionService]','state','onMouseMove','_handler','11bikKBe','listRoles','CHANGESET_REVISION_CONFILICT','_snapshotService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_clearUndo','url(#$1','apply','createInstance','objectType','/collaborator','OnLineSingle','prototype','_lastPointer','INTERNAL_ERROR','_clearOtherTimers','bottom','close$','_substituteUndoStack','createSocket','get','_collaborationTimeoutTimer','selections','add','LOGIN_URL_KEY','result','verdancy600','_shapes','message$','currentTheme$','lineTo','_session','font','deepClone','_sessions','collaboratorID','liveShareOperation','getValue','collabStatus.syncing','subunit','858296yPpNwZ','doc.mutation.rich-text-editing','cursorInfo','enableLocalCache','xlink:href','clear','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','map','_onConnectionFailed','FETCH_MISSING','univer-pro.collaboration-client.single-active-unit-service','encodeURIComponent','PERMISSION_DENIED','saveSnapshot','/universer-api/oidc/authpage','triggerDblclick','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','0\x200\x2016\x2016','getMemberID','_waitCount','eventID','_handleJoinEvent','editing\x20status\x20changed\x20to','_awaitingChangeset','_rescheduleHeartbeatEvent','_docSkeletonManagerService','leaveEvent','_getAPIPrefixPath','_schedule','_range','memberID','fillText','show','top','_onUserLeave','sessionStatus','onTransformIME','compose','collaborators','some','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_submitChangeset','_applyRemoteChangeset','focused$','loadOfflineData','_getSignURL','_getAnchorBounding','_updateSubUnitFromURLParams','AUTHZ_URL_KEY','NOT_FOUND','batchAllowed','joinEvent','2479734ccJLnI','csRejEvent','_pendingMutations','jiqing500','assignAColorForMemberID','Univer','collabCursorState$','slice','PENDING','USERS_LEAVE','reject','105nusmdH','JOIN','univer-online-status-title','_singleActiveUnitService','changesets','auth.needGotoLoginAlert','_event$','updateOfflineData','roomMembers','disposeWithMe','_timeoutTimer','all','endRow','session.room-full','_socketService','?url=','currentSkeleton$','from','setParam','history','_collaborationPaused','defIds','isEditing','_getDocObject','round','_clearHeartbeatTimer','/rev/','registerHTTPInterceptor','replaceTextRanges','getOffsetConfig','_beforeCloseService','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','body','height','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','startColumn','contains','debug','synced','_tryEnsureSocket','_loadDoc','currentColor','red300','session.connection-failed','getCurrentRevForDocument','conflict.title','getAncestorScale','onPointerMoveObserver','_undoRedoService','?size=','COMPRESS_MUTATION_APPLY','FromArray','_entities','offline','_getRedoStack','getTime','transformChangesets','_exhaustSavingTask','on-line-single','session.collaboration-timeout','_handleLeaveEvent','drawWith','code','_unlockTransition','_transformStack','UniverIcon','transformSelections','univer-offline','LIVESHARE_NEW_HOST','defineProperty','path','patch','_toggleOnline','fetch_missing','FAIL','CONFLICT','MUTATION','restore','_createHandler','conflict.content','_cursor','getRenderById','onTransformSelections','/resources','_retryCount','_decreaseWaiting','_onMessage','_acknowledgedAwaitingChangeset','_scheduleCollaborationTimeoutTimer','socket\x20open.','_localeService','_scheduleHeartbeat','set','requireSession','disposeUnit','addImageSourceCache','_lockTransition','[SyncedState]:\x20received\x20acknowledgement.','getUniverSheetInstance','popstate','setInterval','measureText','rgba(255,\x20255,\x20255,\x200.01)','transformRemoteChangeset','_http','text','socketService','_joinRoom','_heartbeatTimer','_clearScheduledTask','LEAVE','_retryConnectingTimer','onRemoteChangeset','_unitOnClients','substring','fill','PSEUDO_FETCH_MISSING_RESULT','_drawAnchor','4246700FPvwkc','then','_transformPreviousActiveRange','getUnitType','...','M0\x200H16V16H0z','open$','OTHER_CLIENTS_EDITING','EXCHANGE_SIGN_URL_SERVER_URL_KEY','ERROR_EXCEED_SIZE','AWAITING','48ncWnmu','registerBeforeClose','SYNCED','div','_collabCursorState$','createElement','#FFF','TOO_MANY_REQUESTS','black','status','_transformService','endColumn','_hovered','UNDEFINED','getCollabEntity','image/bmp','urlChange$','has','UNIVER_UNKNOWN','error','_notificationService','connection\x20error','_onCursorDelete','push','actions','RECV','getTypeOfUnitAdded$','getActiveSheet','CONNECTOR_DATA_TOO_LARGE','_waitForHeartbeatResponse','resend','HELLO','_transformSelections','_removeClearOtherTimer','_httpService','url(#off-line-single_clip0_910_343)','_getSendChangesetTimeout','_docTransformIMECacheService','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','roomMembers$','key','getResourcesRequest','Ready','_collaborationController','_send','status$','failed\x20to\x20apply\x20missed\x20changesets!','_anchor','tag','setCurrentUser','_scene','transformStack\x20failed!','_setupBeforeClosingHandler','localeService','uni.network.url-service','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','UNIVER_SLIDE','_scheduleTimestamp','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_removeRoom','_socket$','_cachedData','parse','onStateChange','addObject','_online','/-/object/-/batch_allowed','[DataLoaderController]','collabStatus.conflict','_compressMutationService','sessionStatus$','ACTIVE_UNIT_EVENT_CHANNEL','getCurrentUser','getItem','executeCommand','_getCtorByUniverType','Warning','pipe','_handleEvent','getUnitId','toggleOffline','_memberService','roomInfos','transform','onRemoteAck','_setupSubUnitSync','putCollaborators','findNodePositionByCharIndex','collabStatus.synced','_localCacheService','_renderManagerService','awaiting','removeMember','_onCursorUpdate','_clearCollaborationTimeoutTimer','_colorAssignService','csAckEvent','collaboration-client.offline-data-not-saved','_toggleOffline','_socketReady','_logService','_handleHeartbeatEvent','baseRev','_saveTaskMap','activeSheet$','disableLocalCache','split','_cursors','_univerInstanceService','indexOf','put','_injector','_HTTPService','_onRemoteChangeset','Error\x20on\x20receiving\x20event','svg','collabStatus.fetchMiss','349017nggxvB','PERMISSION_REJ','_members','mutations','remove','current','_sendingTimer','row','clearTimeout','getCollabCursors$','_currentUser','toggleOnline','_initStatusComponent','_status$','ALREADY_EXISTS','type','APPLY_REVISION_CONFILICT','isActive','assign','VIEW_MAIN','UUID','toString','collaboration-client','function','hasOwnProperty','_onRefRangeChange','DeleteRangeMoveUpCommandId','_initModules','submit\x20changeset\x20error!','blue400','max','socket\x20close','getConfig','allowed','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_onLocalMutation','_snapshotServerService','2126870bCVGbK','_eventUnsubscribe','_onUserJoin','getSheetId','_syncEditingCollabCursorService','_loadSheet','call','FETCH_MISS','_collabSessionService','/universer-api/snapshot','_collabCursorController','onPointerLeaveObserver','_revisionService','SUCCUSS','clipPath','originalMeta','_transformIMECache','/fetchmissing?from=','HEARTBEAT_INTERVAL','change$','fillStyle','listCollaborators','updatePermissionPoint','univer-online','close','_name','width','event$','/object/','searchParams','_onFetchMissResult','_scheduleSaving','ERROR_IMAGE_TYPE','_updateURLWithCurrentState','_assignedColors','c2Prime','transformIMECache','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','RETRY_CONNECTING_INTERVAL','send','collaboration.single-unit.warning','objectID','pushState','data','_config','[CollaborationSessionService]:\x20socket\x20error','getCurrent','_document','src','APPLY_NON_SEQUENTIAL_REVISION','forEach','APPLY_PERMISSION_DENIED','_createInitialState','_showConflictNotification','FileId','_localStorageService','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_entityInit$','Error','InsertColCommandId','_socketMessageSubscription','setTimeout','Starting','/universer-api/stream/file/upload','isPermissionRej','none','[CollaborationUndoRedoService]','RemoveColCommandId','_startDocCollabCursor','propertyIsEnumerable','dispose$','attrs','state$','/role','off-line-single_clip0_910_343','_state$','_sendHeartbeatTimer','delete','setAlpha','revision','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','HEARTBEAT_TIMEOUT','_type','_saveCache','USERS_ENTER','_disabled','resolve','rev','objects','transformMutation','hide','displayName','_commandService','syncEditingCollabCursor','textRanges','getScrollXYByRelativeCoords','asObservable','includes','_isPermissionRej','LIVESHARE_TERMINATE','_selfUnitIDs','save','post','loadDoc','use','on-line-single_clip0_910_349','getSheetBySheetId','className','_undoStacks','purple300','749990rkYjus','fromCollab','OFFLINE','0\x200\x2017\x2016','readAsDataURL','c1Prime','permissionRejEvent','unshift','clearInterval','[PendingState]:\x20received\x20acknowledgement.','_onRecvEvent','_handleHover','enableOfflineEditing','session','url','registerRefRange','update','COLLAB_SUBMIT_CHANGESET_URL','startsWith','UNIVER_SHEET','_syncEditingCollabCursor','permission.title','_checkMissing','LIVESHARE_FETCH_OPERATIONS','encode','onCommandExecuted','DEFAULT_FILE_NAME','transformUndoRedo','INGEST','list','_updateLocalCursor','_createSocket','unit-cache-','_state','_incrementRevisionNumber','extend','LICENSE_IMPORT_SIZE_EXCEEDED','color','INVALID_ARGUMENT','_ensureSubject','getOwnPropertySymbols','symbol','json','defs','ONLINE','getFocusedUnit','_color','replace','_unitStatus','collaMsg','[OfflineState]:\x20received\x20rejection.','init','RETRY_CONNECTING_MAX_COUNT','string','_anchorDot','_uiPartsService','MSG_FOR_ERROR','3ProCCL','getImage','entries','_getLoginPath','length'];_0x22b6=function(){return _0x4aa32a;};return _0x22b6();}var hn=(_0x3c7750,_0x1fa968,_0x4a9df1,_0x1a0afd)=>{for(var _0x1578b9=_0x1fa968,_0x49614d=_0x3c7750['length']-0x1,_0x15301e;_0x49614d>=0x0;_0x49614d--)(_0x15301e=_0x3c7750[_0x49614d])&&(_0x1578b9=_0x15301e(_0x1578b9)||_0x1578b9);return _0x1578b9;},Kt=(_0x4c62c1,_0x3aa810)=>(_0x8e488,_0x5825f6)=>_0x3aa810(_0x8e488,_0x5825f6,_0x4c62c1);let Be=class{constructor(_0x725b2e,_0x5b4218){const _0x25f8e8=_0x369344;this[_0x25f8e8(0x2e0)]=_0x725b2e,this[_0x25f8e8(0x27b)]=_0x5b4218;}[_0x369344(0x232)](_0x29a449){const _0x48c4fa=_0x369344;var _0x32e4ee;const _0x5757b1=this[_0x48c4fa(0x2e0)][_0x48c4fa(0x19d)](_0x1c9a21),_0x512c13=(_0x32e4ee=_0x5757b1[_0x48c4fa(0x3fa)]())!=null?_0x32e4ee:[],_0xd1cda2=_0x512c13==null?void 0x0:_0x512c13[_0x48c4fa(0x1b8)](_0x38b333);if(_0xd1cda2['length']===0x0)return;const _0x17e474=[{'id':_0x48c4fa(0x1b2),'params':{'unitId':_0x29a449[_0x48c4fa(0x3cc)],'actions':null,'textRanges':_0xd1cda2}}],_0x515ad5=this['_transformService']['transformMutationsWithChangeset'](_0x29a449,_0x17e474);if(!_0x1cf98b(_0x515ad5))throw _0x515ad5['error'];const _0x5eb2a3=_0x515ad5[_0x48c4fa(0x422)][0x0][_0x48c4fa(0x3fc)][_0x48c4fa(0x369)];Array[_0x48c4fa(0x15c)](_0x5eb2a3)&&_0x5eb2a3[_0x48c4fa(0x3b6)]&&_0x5757b1[_0x48c4fa(0x20c)](_0x5eb2a3,!0x1);}};Be=hn([Kt(0x0,_0x3bdb53(_0x29e329)),Kt(0x1,_0x5cdc22)],Be);function Ts(_0x5037fd){let _0x3ee1e7='';for(const _0x24429b of _0x5037fd){const {startOffset:_0x202104,endOffset:_0x4503a9,isActive:_0x8fc2a3}=_0x24429b;_0x3ee1e7['length']&&(_0x3ee1e7+=','),_0x3ee1e7+=_0x202104+':'+_0x4503a9+':'+(_0x8fc2a3?'1':'0');}return _0x3ee1e7;}function ln(_0x5e0f49){const _0x49ab72=_0x369344,_0x56ef8e=_0x5e0f49['split'](','),_0x5a0b98=[];for(const _0x47cc62 of _0x56ef8e){const [_0x415b85,_0x335e5e,_0x5e1d09]=_0x47cc62[_0x49ab72(0x2db)](':');_0x5a0b98[_0x49ab72(0x288)]({'startOffset':Number(_0x415b85),'endOffset':Number(_0x335e5e),'collapsed':_0x415b85===_0x335e5e,'isActive':_0x5e1d09==='1'});}return _0x5a0b98[_0x49ab72(0x1d8)](_0x12578e=>_0x12578e[_0x49ab72(0x2f7)])||(_0x5a0b98[0x0]['isActive']=!0x0),_0x5a0b98;}class Mt extends _0x1f6cf4{constructor(){const _0x47ac7c=_0x369344;super(...arguments),l(this,_0x47ac7c(0x275),new _0x2a5f89(null)),l(this,_0x47ac7c(0x1eb),this[_0x47ac7c(0x275)][_0x47ac7c(0x36b)]());}[_0x369344(0x368)](_0x58ad3c){const _0x3a51f6=_0x369344,{unitID:_0x513dd1,memberID:_0x494dcf,textRanges:_0x125e37}=_0x58ad3c,_0x1fa3a3=Ts(_0x125e37),_0xa15cf7={'unitID':_0x513dd1,'memberID':_0x494dcf,'selection':_0x1fa3a3};this[_0x3a51f6(0x275)][_0x3a51f6(0x43d)](_0xa15cf7);}}var _n=(_0x6e124a,_0x5aa713,_0x576685,_0x34b815)=>{for(var _0xeb4223=_0x5aa713,_0x7d234=_0x6e124a['length']-0x1,_0x29a7e3;_0x7d234>=0x0;_0x7d234--)(_0x29a7e3=_0x6e124a[_0x7d234])&&(_0xeb4223=_0x29a7e3(_0xeb4223)||_0xeb4223);return _0xeb4223;},Xt=(_0x318041,_0xa6efb2)=>(_0x1ba9bf,_0x2629a6)=>_0xa6efb2(_0x1ba9bf,_0x2629a6,_0x318041);let We=class{constructor(_0x6c47c1,_0x23d4b5){const _0x95c53d=_0x369344;this[_0x95c53d(0x2e0)]=_0x6c47c1,this[_0x95c53d(0x27b)]=_0x23d4b5;}[_0x369344(0x232)](_0x491c9f){const _0x2d1e19=_0x369344;var _0x3c8502,_0x58c382,_0x19697e,_0x1d8f45;const _0x2a9a05=this[_0x2d1e19(0x2e0)][_0x2d1e19(0x19d)](_0x12ef89),{pluginName:_0x33217f,unitId:_0x44fbdf,sheetId:_0x4b4f99}=_0x2a9a05[_0x2d1e19(0x339)]()||{},_0x5a4bc7=(_0x3c8502=_0x2a9a05[_0x2d1e19(0x3fa)]())!=null?_0x3c8502:[];if(_0x5a4bc7[_0x2d1e19(0x3b6)]===0x0||!_0x33217f||!_0x44fbdf||!_0x4b4f99)return;const _0x19949a=[{'id':_0x20fa8e['id'],'params':{'unitId':_0x44fbdf,'subUnitId':_0x4b4f99,'pluginName':_0x33217f,'selections':_0x16b7ed['deepClone'](_0x5a4bc7)}}],_0x4ada82=this[_0x2d1e19(0x27b)][_0x2d1e19(0x46d)](_0x491c9f,_0x19949a);if(!_0x1cf98b(_0x4ada82))throw _0x4ada82[_0x2d1e19(0x284)];const _0x36e7dc=(_0x1d8f45=(_0x19697e=(_0x58c382=_0x4ada82[_0x2d1e19(0x422)][0x0])==null?void 0x0:_0x58c382[_0x2d1e19(0x3fc)])==null?void 0x0:_0x19697e[_0x2d1e19(0x19f)])!=null?_0x1d8f45:_0x5a4bc7;Array['isArray'](_0x36e7dc)&&_0x36e7dc[_0x2d1e19(0x3b6)]&&this[_0x2d1e19(0x2e0)][_0x2d1e19(0x19d)](_0x2e73f7)[_0x2d1e19(0x2bb)](_0x20fa8e['id'],{'unitId':_0x44fbdf,'subUnitId':_0x4b4f99,'pluginName':_0x33217f,'selections':_0x36e7dc});}};We=_n([Xt(0x0,_0x3bdb53(_0x29e329)),Xt(0x1,_0x5cdc22)],We);const un=new Set([_0x4e0868['id']]);function dn(_0xe8c75a,_0x8ebba1,_0x5e5835,_0x52044a,_0x558a21){const _0x376fe1=_0x369344;var _0x48d973,_0x9d34ec,_0x67cc36,_0x1e8be9;const _0xce904b=[];for(const _0x321413 of _0xe8c75a)if(un[_0x376fe1(0x282)](_0x321413['id'])){if(_0xce904b[_0x376fe1(0x3b6)]>0x0)break;_0xce904b[_0x376fe1(0x288)](_0x321413);break;}else _0xce904b[_0x376fe1(0x288)](_0x321413);const _0x36ca41=(_0x9d34ec=(_0x48d973=_0x558a21[_0x376fe1(0x2b9)]())==null?void 0x0:_0x48d973[_0x376fe1(0x43c)])!=null?_0x9d34ec:_0x376fe1(0x462),_0x25804d=(_0x1e8be9=(_0x67cc36=_0x558a21[_0x376fe1(0x2b9)]())==null?void 0x0:_0x67cc36[_0x376fe1(0x1cf)])!=null?_0x1e8be9:_0x376fe1(0x462);return{'changeset':{'unitID':_0x8ebba1,'type':_0x25caf3(_0x5e5835[_0x376fe1(0x269)](_0x8ebba1)),'baseRev':_0x52044a[_0x376fe1(0x21c)](_0x8ebba1),'revision':0x0,'userID':_0x36ca41,'memberID':_0x25804d,'mutations':_0xce904b},'pendingMutations':_0xe8c75a[_0x376fe1(0x1ec)](_0xce904b[_0x376fe1(0x3b6)])};}function gn(_0x5dce03,_0x50639b,_0x48fdd5,_0x4b0c92,_0x5a62bf){const _0x4b6b39=_0x369344;var _0x32b73a,_0x365c64,_0x2b42fa,_0x185fe4;const _0x5ecc96=[_0x5dce03['reduce']((_0x4ee789,_0x255ca5)=>{const _0x480e26=_0xfefa;var _0x34f783;const {id:_0xf0ea50}=_0x4ee789,{id:_0x339d32,type:_0x360c75}=_0x255ca5,_0x279df1=(_0x34f783=_0x4ee789[_0x480e26(0x3fc)])!=null?_0x34f783:{'actions':null},_0x28e79b=_0x255ca5[_0x480e26(0x3fc)];if(_0xf0ea50&&_0xf0ea50!==_0x339d32)throw new Error(_0x480e26(0x212)+_0xf0ea50+'\x20-\x20'+_0x339d32+'.');return{..._0x4ee789,'id':_0x339d32,'type':_0x360c75,'params':{'unitId':_0x28e79b[_0x480e26(0x3cd)],'textRanges':_0x28e79b['textRanges'],'actions':_0x597d08[_0x480e26(0x1d6)](_0x279df1['actions'],_0x28e79b['actions'])}};},{})],_0x32656a=(_0x365c64=(_0x32b73a=_0x5a62bf[_0x4b6b39(0x2b9)]())==null?void 0x0:_0x32b73a['userID'])!=null?_0x365c64:_0x4b6b39(0x462),_0x29c439=(_0x185fe4=(_0x2b42fa=_0x5a62bf[_0x4b6b39(0x2b9)]())==null?void 0x0:_0x2b42fa[_0x4b6b39(0x1cf)])!=null?_0x185fe4:_0x4b6b39(0x462);return{'changeset':{'unitID':_0x50639b,'type':_0x25caf3(_0x48fdd5[_0x4b6b39(0x269)](_0x50639b)),'baseRev':_0x4b0c92['getCurrentRevForDocument'](_0x50639b),'revision':0x0,'userID':_0x32656a,'memberID':_0x29c439,'mutations':_0x5ecc96},'pendingMutations':[]};}var ne=(_0x11378c,_0x33923c,_0x1ab5d8,_0x48b0e5)=>{const _0x26b2e5=_0x369344;for(var _0x32d75d=_0x33923c,_0x18d872=_0x11378c[_0x26b2e5(0x3b6)]-0x1,_0x1b2930;_0x18d872>=0x0;_0x18d872--)(_0x1b2930=_0x11378c[_0x18d872])&&(_0x32d75d=_0x1b2930(_0x32d75d)||_0x32d75d);return _0x32d75d;},m=(_0x81864c,_0x2a8a60)=>(_0x4c4278,_0x3bd356)=>_0x2a8a60(_0x4c4278,_0x3bd356,_0x81864c);const mn='SEND_CHANGESET_TIMEOUT',Sn=0x7d0;function _0xfefa(_0x5d6be6,_0x733214){const _0x22b68c=_0x22b6();return _0xfefa=function(_0xfefa42,_0x32a089){_0xfefa42=_0xfefa42-0x156;let _0x462b3e=_0x22b68c[_0xfefa42];return _0x462b3e;},_0xfefa(_0x5d6be6,_0x733214);}var y=(_0x50e069=>(_0x50e069[_0x369344(0x172)]=_0x369344(0x461),_0x50e069[_0x369344(0x273)]=_0x369344(0x216),_0x50e069[_0x369344(0x1ed)]=_0x369344(0x46e),_0x50e069[_0x369344(0x270)]='awaiting',_0x50e069['AWAITING_WITH_PENDING']=_0x369344(0x45b),_0x50e069[_0x369344(0x312)]=_0x369344(0x239),_0x50e069[_0x369344(0x23b)]=_0x369344(0x41b),_0x50e069[_0x369344(0x37b)]='offline',_0x50e069))(y||{});class re{constructor(_0x5ae41b,_0x3345c6,_0x1a4446,_0x2431f1,_0x26102a,_0x509e83,_0x3d340a,_0x2bb59e,_0x34526a){const _0x5485cd=_0x369344;l(this,_0x5485cd(0x1c8),null),l(this,_0x5485cd(0x1e7),[]),(this['unitID']=_0x5ae41b,this[_0x5485cd(0x2f5)]=_0x3345c6,this[_0x5485cd(0x187)]=_0x26102a,this[_0x5485cd(0x367)]=_0x509e83,this[_0x5485cd(0x220)]=_0x3d340a,this[_0x5485cd(0x317)]=_0x2bb59e,this[_0x5485cd(0x2ca)]=_0x34526a,this[_0x5485cd(0x1c8)]=_0x1a4446,this['_pendingMutations']=_0x2431f1);}[_0x369344(0x38f)](_0x18b8f5){const _0x17c1f8=_0x369344,_0x413ec6=this[_0x17c1f8(0x317)][_0x17c1f8(0x21c)](this[_0x17c1f8(0x3cc)]);return _0x18b8f5['revision']>_0x413ec6+0x1?(this['_handler']['onMissingChangesets']({'from':_0x413ec6,'to':_0x18b8f5[_0x17c1f8(0x35a)]-0x1}),!0x0):!0x1;}[_0x369344(0x45f)](_0x238ea0){const _0x5baa39=_0x369344;this['_undoRedoService'][_0x5baa39(0x394)](this[_0x5baa39(0x3cc)],_0x238ea0);}[_0x369344(0x291)](_0x3ef34d){const _0x18b34d=_0x369344;var _0x3ad790,_0x553097;(_0x553097=(_0x3ad790=this[_0x18b34d(0x187)])[_0x18b34d(0x242)])==null||_0x553097[_0x18b34d(0x311)](_0x3ad790,_0x3ef34d);}[_0x369344(0x31b)](_0x3e55b3){const _0x1af4a5=_0x369344;var _0x55e763,_0x4de19c;return(_0x4de19c=(_0x55e763=this[_0x1af4a5(0x187)])['onTransformIME'])==null?void 0x0:_0x4de19c['call'](_0x55e763,_0x3e55b3);}[_0x369344(0x3ee)](_0x5d7a16){const _0x410208=_0x369344;var _0x26536a,_0x27194d,_0x493dfc;return(_0x493dfc=(_0x27194d=(_0x26536a=this[_0x410208(0x187)])[_0x410208(0x440)])==null?void 0x0:_0x27194d[_0x410208(0x311)](_0x26536a,_0x5d7a16))!=null?_0x493dfc:_0x5d7a16;}[_0x369344(0x38d)](_0x4ec3bc){const _0x16353a=_0x369344;var _0x2b1cf9,_0x34fe94;if(this[_0x16353a(0x2f5)]===H['UNIVER_DOC']){const {unitID:_0x10a314,mutations:_0x1e34e3,memberID:_0x377d9d}=_0x4ec3bc,_0x4bc90d=_0x1e34e3[0x0][_0x16353a(0x3fc)][_0x16353a(0x369)];Array['isArray'](_0x4bc90d)&&_0x4bc90d['length']>0x0&&((_0x34fe94=(_0x2b1cf9=this[_0x16353a(0x187)])[_0x16353a(0x40e)])==null||_0x34fe94['call'](_0x2b1cf9,{'unitID':_0x10a314,'memberID':_0x377d9d,'textRanges':_0x4bc90d}));}}[_0x369344(0x157)](){const _0x2a17ab=_0x369344;this['_localCacheService']['updateOfflineData'](this[_0x2a17ab(0x3cc)],this['type'],this[_0x2a17ab(0x1c8)],this[_0x2a17ab(0x1e7)]);}['_getCurrentRevision'](){const _0x5c86dc=_0x369344;return this['_revisionService'][_0x5c86dc(0x21c)](this[_0x5c86dc(0x3cc)]);}[_0x369344(0x39b)](){const _0x44a9c6=_0x369344;this[_0x44a9c6(0x317)][_0x44a9c6(0x3d9)](this[_0x44a9c6(0x3cc)]);}[_0x369344(0x3e2)](_0x3e607a){const _0x436bff=_0x369344;var _0x24d523;const _0x4fbfae=this['_transformRemoteChangesetByIMECache'](_0x3e607a),_0x47049a=_0x3b0c60(_0x4fbfae[_0x436bff(0x2e9)],this['_commandService'],{'fromCollab':!0x0});if(!_0x47049a[_0x436bff(0x1a2)])throw _0x47049a[_0x436bff(0x284)]instanceof Error?_0x47049a[_0x436bff(0x284)]:new Error((_0x24d523=_0x47049a[_0x436bff(0x284)])!=null?_0x24d523:'[CollaborationState]:\x20apply\x20error!');this['_transformIMECache'](_0x4fbfae),this[_0x436bff(0x45f)](_0x3e607a),this[_0x436bff(0x291)](_0x4fbfae),this['_syncEditingCollabCursor'](_0x4fbfae),this['_incrementRevisionNumber']();}}let De=class extends re{constructor(_0x2b1bd0,_0x441a95,_0x21b4fc,_0x306e88,_0x31796f,_0x377070,_0x34a6b9,_0x3a864c,_0x47fc67){const _0x259686=_0x369344;super(_0x2b1bd0,_0x441a95,null,[],_0x21b4fc,_0x3a864c,_0x34a6b9,_0x306e88,_0x31796f),l(this,_0x259686(0x27a),_0x259686(0x216)),(this[_0x259686(0x2e0)]=_0x377070,this['_logService']=_0x47fc67);}[_0x369344(0x411)](_0x416785){const _0x5f1ee0=_0x369344,_0x2e76ad=this[_0x5f1ee0(0x2e0)][_0x5f1ee0(0x191)](V,this['unitID'],this['type'],[_0x416785],this['_handler']);return _0x2e76ad[_0x5f1ee0(0x1cd)](),_0x2e76ad['_updateLocalCache'](),_0x2e76ad;}[_0x369344(0x260)](_0x4b6f0d){const _0x581fda=_0x369344;if(this[_0x581fda(0x38f)](_0x4b6f0d))return this['_injector']['createInstance'](W,this['unitID'],this[_0x581fda(0x2f5)],null,[],null,[_0x4b6f0d],this[_0x581fda(0x187)]);try{return this[_0x581fda(0x3e2)](_0x4b6f0d),this;}catch(_0x3bf6f9){return this[_0x581fda(0x2d5)]['error'](_0x581fda(0x432),_0x3bf6f9),this;}}[_0x369344(0x2c5)](){const _0x18917a=_0x369344;throw new Error(_0x18917a(0x251));}['onRemoteRej'](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x369344(0x2c1)](){const _0x2ea884=_0x369344;return this[_0x2ea884(0x2e0)][_0x2ea884(0x191)](X,this['unitID'],this[_0x2ea884(0x2f5)],null,[],this[_0x2ea884(0x187)]);}[_0x369344(0x2f1)](){return this;}[_0x369344(0x28f)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}};De=ne([m(0x3,_0x3bdb53(_0x4f9324)),m(0x4,_0x3bdb53(O)),m(0x5,_0x3bdb53(_0x29e329)),m(0x6,_0x34383f),m(0x7,_0x2e73f7),m(0x8,_0x5e199c)],De);let V=class extends re{constructor(_0x5bf6c9,_0x108213,_0x3590c9,_0x365734,_0x327c30,_0x18fa35,_0x32e26c,_0x102ed9,_0xd9e66a,_0x129046,_0x45e6a6,_0xc7171,_0x1c9042,_0x10b6de){const _0x1ef05d=_0x369344;super(_0x5bf6c9,_0x108213,null,_0x3590c9,_0x365734,_0x129046,_0x10b6de,_0x18fa35,_0x32e26c),l(this,_0x1ef05d(0x27a),_0x1ef05d(0x46e)),l(this,'_scheduleTimestamp',null),l(this,_0x1ef05d(0x2ec),null),(this[_0x1ef05d(0x2e0)]=_0x327c30,this[_0x1ef05d(0x2c2)]=_0x102ed9,this[_0x1ef05d(0x2d5)]=_0xd9e66a,this[_0x1ef05d(0x3f1)]=_0x45e6a6,this[_0x1ef05d(0x27b)]=_0xc7171,this[_0x1ef05d(0x2dd)]=_0x1c9042);}[_0x369344(0x411)](_0x3c0b09){const _0x4d5a92=_0x369344;return this[_0x4d5a92(0x1e7)][_0x4d5a92(0x288)](_0x3c0b09),this[_0x4d5a92(0x157)](),this;}[_0x369344(0x260)](_0x5c2404){const _0x169adf=_0x369344;if(this[_0x169adf(0x38f)](_0x5c2404))return this['_clearScheduledTask'](),this['_injector']['createInstance'](W,this['unitID'],this[_0x169adf(0x2f5)],null,this[_0x169adf(0x1e7)],null,[_0x5c2404],this[_0x169adf(0x187)]);try{const _0x51b114=this[_0x169adf(0x27b)][_0x169adf(0x46d)](_0x5c2404,this[_0x169adf(0x1e7)]);if(_0x1cf98b(_0x51b114)){const {c1Prime:_0x313d57,m2Prime:_0x2d3b4b}=_0x51b114;this[_0x169adf(0x3e2)](_0x313d57);const _0x44cdf7=this[_0x169adf(0x2e0)][_0x169adf(0x191)](V,this[_0x169adf(0x3cc)],this[_0x169adf(0x2f5)],_0x2d3b4b,this[_0x169adf(0x187)]);return this[_0x169adf(0x25d)](),_0x44cdf7[_0x169adf(0x1cd)](this[_0x169adf(0x2aa)]?Math[_0x169adf(0x304)](0x0,new Date()[_0x169adf(0x227)]()-this['_scheduleTimestamp']):this[_0x169adf(0x295)]()),_0x44cdf7;}throw _0x51b114[_0x169adf(0x284)];}catch(_0x12bfb5){return this[_0x169adf(0x2d5)][_0x169adf(0x284)](_0x12bfb5),this[_0x169adf(0x16a)](!0x1);}}[_0x369344(0x2c5)](){const _0x26ca23=_0x369344;throw new Error(_0x26ca23(0x382));}['onRemoteRej'](){throw new Error('[PendingState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x51ffb4=_0x369344;return this['_clearScheduledTask'](),this[_0x51ffb4(0x2e0)][_0x51ffb4(0x191)](X,this[_0x51ffb4(0x3cc)],this[_0x51ffb4(0x2f5)],null,this[_0x51ffb4(0x1e7)],this[_0x51ffb4(0x187)]);}['toggleOnline'](){return this;}[_0x369344(0x1cd)](_0x2d1289){const _0x3ea66d=_0x369344;_0x2d1289=_0x2d1289!=null?_0x2d1289:this[_0x3ea66d(0x295)](),this[_0x3ea66d(0x2aa)]=new Date()[_0x3ea66d(0x227)](),this[_0x3ea66d(0x2ec)]=setTimeout(()=>{const _0x168d43=_0x3ea66d;this['_clearScheduledTask']();let _0x53f0ed=null;switch(this[_0x168d43(0x2f5)]){case H[_0x168d43(0x38c)]:{_0x53f0ed=dn(this['_pendingMutations'],this[_0x168d43(0x3cc)],this[_0x168d43(0x2dd)],this[_0x168d43(0x317)],this[_0x168d43(0x2c2)]);break;}case H[_0x168d43(0x3c6)]:{_0x53f0ed=gn(this[_0x168d43(0x1e7)],this[_0x168d43(0x3cc)],this[_0x168d43(0x2dd)],this[_0x168d43(0x317)],this[_0x168d43(0x2c2)]);break;}default:throw new Error(_0x168d43(0x17a)+this[_0x168d43(0x2f5)]+'\x20in\x20_schedule.');}const {changeset:_0x505fb5,pendingMutations:_0x11a1c6}=_0x53f0ed;this[_0x168d43(0x187)][_0x168d43(0x3e5)](_0x505fb5);const _0x450398=_0x11a1c6['length']?this['_injector'][_0x168d43(0x191)](B,this[_0x168d43(0x3cc)],this['type'],_0x505fb5,_0x11a1c6,this[_0x168d43(0x187)]):this['_injector']['createInstance'](K,this['unitID'],this['type'],_0x505fb5,this[_0x168d43(0x187)]);_0x450398['_updateLocalCache'](),this[_0x168d43(0x187)][_0x168d43(0x2b0)](this,_0x450398);},_0x2d1289);}[_0x369344(0x295)](){const _0x2af608=_0x369344;var _0x241620;return(_0x241620=this[_0x2af608(0x3f1)][_0x2af608(0x306)](mn))!=null?_0x241620:Sn;}[_0x369344(0x28f)](){const _0x56e86e=_0x369344;throw new Error(_0x56e86e(0x1c1));}[_0x369344(0x25d)](){const _0x142a31=_0x369344;this[_0x142a31(0x2ec)]!=null&&(clearTimeout(this[_0x142a31(0x2ec)]),this[_0x142a31(0x2ec)]=null);}['_onConflict'](_0x499056){const _0x56a4c4=_0x369344;return this[_0x56a4c4(0x25d)](),this[_0x56a4c4(0x2e0)][_0x56a4c4(0x191)](te,this[_0x56a4c4(0x3cc)],this[_0x56a4c4(0x2f5)],null,this[_0x56a4c4(0x1e7)],this[_0x56a4c4(0x187)],_0x499056);}};V=ne([m(0x4,_0x3bdb53(_0x29e329)),m(0x5,_0x3bdb53(_0x4f9324)),m(0x6,_0x3bdb53(O)),m(0x7,_0x3bdb53(ee)),m(0x8,_0x5e199c),m(0x9,_0x2e73f7),m(0xa,_0xcb4dc7),m(0xb,_0x5cdc22),m(0xc,_0x1e6754),m(0xd,_0x34383f)],V);let K=class extends re{constructor(_0x2a8cba,_0x51fa49,_0x343d1f,_0x486f61,_0x44d3e8,_0x3667f9,_0x14e9b2,_0x18fec2,_0x233ce3,_0x2dae07,_0x2aee89){const _0x3d5ed0=_0x369344;super(_0x2a8cba,_0x51fa49,_0x343d1f,[],_0x486f61,_0x18fec2,_0x2aee89,_0x3667f9,_0x14e9b2),l(this,_0x3d5ed0(0x27a),_0x3d5ed0(0x2cc)),(this[_0x3d5ed0(0x2e0)]=_0x44d3e8,this[_0x3d5ed0(0x2d5)]=_0x233ce3,this[_0x3d5ed0(0x27b)]=_0x2dae07);}[_0x369344(0x411)](_0x9807e5){const _0x323726=_0x369344,_0x2d0b19=this[_0x323726(0x2e0)][_0x323726(0x191)](B,this[_0x323726(0x3cc)],this['type'],this[_0x323726(0x1c8)],[_0x9807e5],this[_0x323726(0x187)]);return _0x2d0b19['_updateLocalCache'](),_0x2d0b19;}['onRemoteChangeset'](_0x1f1123){const _0x3b49d5=_0x369344;if(this['_checkMissing'](_0x1f1123))return this[_0x3b49d5(0x2e0)]['createInstance'](W,this[_0x3b49d5(0x3cc)],this[_0x3b49d5(0x2f5)],this[_0x3b49d5(0x1c8)],[],null,[_0x1f1123],this[_0x3b49d5(0x187)]);try{const _0x455077=this[_0x3b49d5(0x27b)]['transformChangesets']([_0x1f1123],[this[_0x3b49d5(0x1c8)]],!0x1);if(_0x12c9d2(_0x455077)){const {c1Prime:_0x1792fa,c2Prime:_0x563349}=_0x455077;this['_executeRemoteChangeset'](_0x1792fa[0x0]),_0x563349[0x0][_0x3b49d5(0x2d7)]=this['_getCurrentRevision']();const _0x2a9755=this[_0x3b49d5(0x2e0)][_0x3b49d5(0x191)](K,this[_0x3b49d5(0x3cc)],this[_0x3b49d5(0x2f5)],_0x563349[0x0],this[_0x3b49d5(0x187)]);return _0x2a9755[_0x3b49d5(0x157)](),_0x2a9755;}return this['_onConflict'](!0x1);}catch(_0x1d42ba){return this[_0x3b49d5(0x2d5)]['error'](_0x1d42ba),this[_0x3b49d5(0x16a)](!0x1);}}[_0x369344(0x2c5)](_0x298266){const _0x839891=_0x369344,_0x162652=this['_revisionService'][_0x839891(0x21c)](this[_0x839891(0x3cc)]);if(_0x298266['revision']<_0x162652-0x1)return this;if(this[_0x839891(0x38f)](_0x298266))return this[_0x839891(0x2e0)]['createInstance'](W,this[_0x839891(0x3cc)],this[_0x839891(0x2f5)],null,[],this[_0x839891(0x1c8)],[],this[_0x839891(0x187)]);this[_0x839891(0x39b)]();const _0x36b035=this[_0x839891(0x2e0)][_0x839891(0x191)](De,this[_0x839891(0x3cc)],this[_0x839891(0x2f5)],this[_0x839891(0x187)]);return _0x36b035[_0x839891(0x157)](),_0x36b035;}[_0x369344(0x416)](_0x43abbe){const _0x1ced77=_0x369344;return this[_0x1ced77(0x16a)](!!(_0x43abbe!=null&&_0x43abbe['isPermissionRej']));}[_0x369344(0x2c1)](){const _0xf24935=_0x369344;return this[_0xf24935(0x2e0)][_0xf24935(0x191)](X,this[_0xf24935(0x3cc)],this['type'],this[_0xf24935(0x1c8)],[],this['_handler']);}[_0x369344(0x2f1)](){return this;}[_0x369344(0x28f)](){const _0x23004f=_0x369344;this['_handler'][_0x23004f(0x3e5)](this['_awaitingChangeset']);}[_0x369344(0x16a)](_0x42cffe){const _0x4d68a5=_0x369344;return this[_0x4d68a5(0x2e0)][_0x4d68a5(0x191)](te,this[_0x4d68a5(0x3cc)],this[_0x4d68a5(0x2f5)],this[_0x4d68a5(0x1c8)],[],this[_0x4d68a5(0x187)],_0x42cffe);}};K=ne([m(0x4,_0x3bdb53(_0x29e329)),m(0x5,_0x3bdb53(_0x4f9324)),m(0x6,_0x3bdb53(O)),m(0x7,_0x2e73f7),m(0x8,_0x5e199c),m(0x9,_0x5cdc22),m(0xa,_0x34383f)],K);let B=class extends re{constructor(_0x2f5be1,_0x4b1d05,_0x55b1db,_0xf868e1,_0x145a2b,_0x45851e,_0x3a9d1a,_0x3bc6c9,_0x3d7876,_0x18ce40,_0x1be400,_0x5af8c2){const _0x2dd2d1=_0x369344;super(_0x2f5be1,_0x4b1d05,_0x55b1db,_0xf868e1,_0x145a2b,_0x3d7876,_0x5af8c2,_0x3a9d1a,_0x3bc6c9),l(this,_0x2dd2d1(0x27a),_0x2dd2d1(0x45b)),(this[_0x2dd2d1(0x2e0)]=_0x45851e,this['_logService']=_0x18ce40,this[_0x2dd2d1(0x27b)]=_0x1be400);}[_0x369344(0x411)](_0x36ac2d){const _0x358d96=_0x369344;return this[_0x358d96(0x1e7)][_0x358d96(0x288)](_0x36ac2d),this;}['onRemoteChangeset'](_0x120e83){const _0x2305a0=_0x369344;if(this['_checkMissing'](_0x120e83))return this['_injector'][_0x2305a0(0x191)](W,this[_0x2305a0(0x3cc)],this[_0x2305a0(0x2f5)],this[_0x2305a0(0x1c8)],this['_pendingMutations'],null,[_0x120e83],this[_0x2305a0(0x187)]);try{const _0x14c6c4=this[_0x2305a0(0x27b)][_0x2305a0(0x228)]([_0x120e83],[this['_awaitingChangeset']],!0x1);if(_0x12c9d2(_0x14c6c4)){const {c1Prime:_0x4bbc00,c2Prime:_0x135b96}=_0x14c6c4,_0x3f4d3b=this[_0x2305a0(0x27b)][_0x2305a0(0x46d)](_0x4bbc00[0x0],this[_0x2305a0(0x1e7)]);if(_0x1cf98b(_0x3f4d3b)){const {c1Prime:_0x1b5aa2,m2Prime:_0x266c67}=_0x3f4d3b;return this[_0x2305a0(0x3e2)](_0x1b5aa2),_0x135b96[0x0][_0x2305a0(0x2d7)]=this['_getCurrentRevision'](),this[_0x2305a0(0x2e0)][_0x2305a0(0x191)](B,this['unitID'],this['type'],_0x135b96[0x0],_0x266c67,this[_0x2305a0(0x187)]);}throw _0x3f4d3b[_0x2305a0(0x284)];}throw _0x14c6c4['error'];}catch(_0x4b8bef){return this[_0x2305a0(0x2d5)]['error'](_0x4b8bef),this[_0x2305a0(0x16a)](!0x1);}}['onRemoteAck'](_0x2da382){const _0x48f0ca=_0x369344;if(this['_checkMissing'](_0x2da382))return this[_0x48f0ca(0x2e0)][_0x48f0ca(0x191)](W,this[_0x48f0ca(0x3cc)],this['type'],null,this[_0x48f0ca(0x1e7)],this['_awaitingChangeset'],[],this[_0x48f0ca(0x187)]);this[_0x48f0ca(0x39b)]();const _0x527019=this[_0x48f0ca(0x2e0)][_0x48f0ca(0x191)](V,this['unitID'],this['type'],this[_0x48f0ca(0x1e7)],this[_0x48f0ca(0x187)]);return _0x527019[_0x48f0ca(0x1cd)](),_0x527019[_0x48f0ca(0x157)](),_0x527019;}[_0x369344(0x416)](_0x2a9bb9){const _0x24e627=_0x369344;return this['_onConflict'](!!(_0x2a9bb9!=null&&_0x2a9bb9[_0x24e627(0x34b)]));}[_0x369344(0x2c1)](){const _0x34a705=_0x369344;return this[_0x34a705(0x2e0)][_0x34a705(0x191)](X,this[_0x34a705(0x3cc)],this[_0x34a705(0x2f5)],this[_0x34a705(0x1c8)],this[_0x34a705(0x1e7)],this[_0x34a705(0x187)]);}[_0x369344(0x2f1)](){return this;}[_0x369344(0x28f)](){const _0x1c3d3c=_0x369344;this['_handler']['onSendChangeset'](this[_0x1c3d3c(0x1c8)]);}[_0x369344(0x16a)](_0x86a511){const _0x5e446d=_0x369344;return this[_0x5e446d(0x2e0)][_0x5e446d(0x191)](te,this[_0x5e446d(0x3cc)],this[_0x5e446d(0x2f5)],null,this['_pendingMutations'],this[_0x5e446d(0x187)],_0x86a511);}};B=ne([m(0x5,_0x3bdb53(_0x29e329)),m(0x6,_0x3bdb53(_0x4f9324)),m(0x7,_0x3bdb53(O)),m(0x8,_0x2e73f7),m(0x9,_0x5e199c),m(0xa,_0x5cdc22),m(0xb,_0x34383f)],B);let te=class extends re{constructor(_0xb8e6b,_0x325c8a,_0x192d33,_0x415977,_0x3449e8,_0x58fdd5=!0x1,_0x4a826c,_0x53b387,_0x574c89,_0x4edffc,_0x146906,_0x1b0c6a,_0x8d3247){const _0x2cd130=_0x369344;super(_0xb8e6b,_0x325c8a,_0x192d33,_0x415977,_0x3449e8,_0x53b387,_0x574c89,_0x146906,_0x4edffc),l(this,_0x2cd130(0x27a),_0x2cd130(0x41b)),(this[_0x2cd130(0x36d)]=_0x58fdd5,this[_0x2cd130(0x179)]=_0x4a826c,this['_localeService']=_0x1b0c6a,this[_0x2cd130(0x285)]=_0x8d3247,this[_0x2cd130(0x340)](),this[_0x2cd130(0x427)](),this[_0x2cd130(0x460)]());}[_0x369344(0x411)](){return this;}[_0x369344(0x260)](){return this;}[_0x369344(0x2c5)](){return this;}[_0x369344(0x416)](){return this;}[_0x369344(0x2c1)](){return this;}['toggleOnline'](){return this;}['resend'](){const _0x1295a6=_0x369344;throw new Error(_0x1295a6(0x2a8));}[_0x369344(0x427)](){const _0x5306b0=_0x369344;this['_localCacheService'][_0x5306b0(0x1f7)](this[_0x5306b0(0x3cc)],this[_0x5306b0(0x2f5)],null,[]);}[_0x369344(0x340)](){const _0x32a936=_0x369344;this[_0x32a936(0x36d)]?this[_0x32a936(0x285)]['show']({'title':this[_0x32a936(0x24a)]['t'](_0x32a936(0x38e)),'content':this[_0x32a936(0x24a)]['t'](_0x32a936(0x3ff)),'type':_0x32a936(0x284),'duration':0x0}):this['_notificationService']['show']({'title':this[_0x32a936(0x24a)]['t'](_0x32a936(0x21d)),'content':this[_0x32a936(0x24a)]['t'](_0x32a936(0x23f)),'type':_0x32a936(0x284),'duration':0x0});}[_0x369344(0x460)](){const _0x412cbe=_0x369344;this['_permissionService'][_0x412cbe(0x321)](new _0x690418(this[_0x412cbe(0x3cc)])['id'],!0x1);}};te=ne([m(0x6,_0x3bdb53(_0x2657e7)),m(0x7,_0x2e73f7),m(0x8,_0x34383f),m(0x9,_0x3bdb53(O)),m(0xa,_0x3bdb53(_0x4f9324)),m(0xb,_0x3bdb53(_0x122a5b)),m(0xc,_0x4eec4b)],te);let X=class extends re{constructor(_0x1edaa7,_0x407ee7,_0x26e017,_0x338067,_0x2fd43c,_0x470bd3,_0x271d23,_0x21c7e2,_0x261110,_0x5eac4c){const _0x5185ee=_0x369344;super(_0x1edaa7,_0x407ee7,_0x26e017,_0x338067,_0x2fd43c,_0x261110,_0x5eac4c,_0x271d23,_0x21c7e2),l(this,'status',_0x5185ee(0x225)),this['_injector']=_0x470bd3;}[_0x369344(0x411)](_0x2e3275){const _0x3bff68=_0x369344;return this['_pendingMutations'][_0x3bff68(0x288)](_0x2e3275),this[_0x3bff68(0x157)](),this;}['onRemoteChangeset'](_0x4511ed){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x369344(0x2c5)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x369344(0x416)](){const _0x85362b=_0x369344;throw new Error(_0x85362b(0x3ab));}[_0x369344(0x2c1)](){return this;}[_0x369344(0x2f1)](){const _0xd981b3=_0x369344,{_injector:_0x32fe82,_pendingMutations:_0x14cb31,_awaitingChangeset:_0xad561b,unitID:_0x574dd4,_handler:_0x5d13e9,type:_0x4ee6f9}=this,_0x95f3f6=Os(_0x32fe82,_0x574dd4,_0x4ee6f9,_0xad561b,_0x14cb31,_0x5d13e9);return _0x95f3f6 instanceof V?_0x95f3f6[_0xd981b3(0x1cd)]():(_0x95f3f6 instanceof B||_0x95f3f6 instanceof K)&&_0x95f3f6[_0xd981b3(0x28f)](),_0x95f3f6;}['resend'](){const _0x582357=_0x369344;throw new Error(_0x582357(0x35b));}};X=ne([m(0x5,_0x3bdb53(_0x29e329)),m(0x6,_0x3bdb53(_0x4f9324)),m(0x7,_0x3bdb53(O)),m(0x8,_0x2e73f7),m(0x9,_0x34383f)],X);let W=class extends re{constructor(_0x3cea31,_0x5383bc,_0x4b99da,_0xe8eac6,_0x1df6b9,_0x15e354,_0x3a1f05,_0x43d5d0,_0x3ba1b0,_0x549875,_0x3f0c5d,_0x3818e3,_0x55d821,_0x40c5e1){const _0x5a9064=_0x369344;super(_0x3cea31,_0x5383bc,_0x4b99da,_0xe8eac6,_0x3a1f05,_0x3818e3,_0x55d821,_0x3ba1b0,_0x549875),l(this,_0x5a9064(0x27a),'fetch_missing'),(this['_acknowledgedAwaitingChangeset']=_0x1df6b9,this[_0x5a9064(0x456)]=_0x15e354,this[_0x5a9064(0x2e0)]=_0x43d5d0,this[_0x5a9064(0x2d5)]=_0x3f0c5d,this[_0x5a9064(0x27b)]=_0x40c5e1);}[_0x369344(0x463)](_0x5f1d68){const _0x57b956=_0x369344;try{const _0x48fadd=[..._0x5f1d68,...this[_0x57b956(0x456)]],_0x3850b8=[this[_0x57b956(0x1c8)]||this[_0x57b956(0x247)]][_0x57b956(0x3e6)](_0x1306ae=>!!_0x1306ae);let _0x57ff26,_0x2246ec;if(_0x3850b8[_0x57b956(0x3b6)]){const _0x5c7299=this['_transformService']['transformChangesets'](_0x48fadd,_0x3850b8,!0x1);if(!_0x12c9d2(_0x5c7299))throw _0x5c7299[_0x57b956(0x284)];_0x57ff26=_0x5c7299[_0x57b956(0x37e)],_0x2246ec=_0x5c7299[_0x57b956(0x32e)];}else _0x57ff26=_0x48fadd,_0x2246ec=[];let _0x3d0760=this[_0x57b956(0x1e7)];_0x57ff26[_0x57b956(0x33d)](_0x3b0c2c=>{const _0x56eb79=_0x57b956;let _0x5cc4d1;if(_0x3d0760[_0x56eb79(0x3b6)]){const _0xfbe1c1=this['_transformService'][_0x56eb79(0x46d)](_0x3b0c2c,_0x3d0760);if(!_0x1cf98b(_0xfbe1c1))throw _0xfbe1c1['error'];_0x5cc4d1=_0xfbe1c1['c1Prime'],_0x3d0760=_0xfbe1c1[_0x56eb79(0x422)];}else _0x5cc4d1=_0x3b0c2c;this[_0x56eb79(0x3e2)](_0x5cc4d1);}),this[_0x57b956(0x247)]&&this[_0x57b956(0x39b)](),this['_awaitingChangeset']&&_0x2246ec[_0x57b956(0x3b6)]&&(_0x2246ec[0x0][_0x57b956(0x2d7)]=this['_getCurrentRevision']());let _0xc70bcc;if(this[_0x57b956(0x1c8)]&&_0x3d0760[_0x57b956(0x3b6)]!==0x0)_0xc70bcc=this[_0x57b956(0x2e0)][_0x57b956(0x191)](B,this[_0x57b956(0x3cc)],this[_0x57b956(0x2f5)],_0x2246ec[0x0],_0x3d0760,this[_0x57b956(0x187)]);else{if(this[_0x57b956(0x1c8)]&&_0x3d0760[_0x57b956(0x3b6)]===0x0)_0x2246ec[0x0][_0x57b956(0x2d7)]=this['_getCurrentRevision'](),_0xc70bcc=this[_0x57b956(0x2e0)][_0x57b956(0x191)](K,this['unitID'],this[_0x57b956(0x2f5)],_0x2246ec[0x0],this[_0x57b956(0x187)]);else{if(_0x3d0760[_0x57b956(0x3b6)]!==0x0){const _0x2b5002=this[_0x57b956(0x2e0)]['createInstance'](V,this[_0x57b956(0x3cc)],this[_0x57b956(0x2f5)],_0x3d0760,this[_0x57b956(0x187)]);_0x2b5002['_schedule'](),_0xc70bcc=_0x2b5002;}else _0xc70bcc=this['_injector'][_0x57b956(0x191)](De,this[_0x57b956(0x3cc)],this[_0x57b956(0x2f5)],this[_0x57b956(0x187)]);}}return _0xc70bcc[_0x57b956(0x157)](),_0xc70bcc;}catch(_0x4b3246){return this[_0x57b956(0x2d5)][_0x57b956(0x284)]('[FetchMissState]',_0x57b956(0x29f),_0x4b3246),this[_0x57b956(0x2e0)][_0x57b956(0x191)](te,this[_0x57b956(0x3cc)],this['type'],this[_0x57b956(0x1c8)],this[_0x57b956(0x1e7)],this[_0x57b956(0x187)],!0x1);}}[_0x369344(0x28f)](){const _0x753c55=_0x369344;throw new Error(_0x753c55(0x330));}[_0x369344(0x411)](_0xceb98d){const _0x1dc50d=_0x369344;return this[_0x1dc50d(0x1e7)][_0x1dc50d(0x288)](_0xceb98d),this;}['onRemoteChangeset'](_0x189e8d){const _0x282a0a=_0x369344;return this[_0x282a0a(0x456)]['push'](_0x189e8d),this;}[_0x369344(0x2c5)](_0x5bf6b0){const _0xf089fa=_0x369344;if(this[_0xf089fa(0x1c8)])return this['_acknowledgedAwaitingChangeset']=this[_0xf089fa(0x1c8)],this[_0xf089fa(0x1c8)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x369344(0x416)](_0x3c030e){const _0x3b9c84=_0x369344;return this['_onConflict'](!!(_0x3c030e!=null&&_0x3c030e[_0x3b9c84(0x34b)]));}[_0x369344(0x2c1)](){const _0x2875a6=_0x369344;return this[_0x2875a6(0x2e0)][_0x2875a6(0x191)](X,this[_0x2875a6(0x3cc)],this[_0x2875a6(0x2f5)],this[_0x2875a6(0x1c8)],this[_0x2875a6(0x1e7)],this['_handler']);}[_0x369344(0x2f1)](){return this;}[_0x369344(0x16a)](_0x429e40){const _0x19458a=_0x369344;return this[_0x19458a(0x2e0)][_0x19458a(0x191)](te,this[_0x19458a(0x3cc)],this[_0x19458a(0x2f5)],this[_0x19458a(0x1c8)],this[_0x19458a(0x1e7)],this['_handler'],_0x429e40);}};W=ne([m(0x7,_0x3bdb53(_0x29e329)),m(0x8,_0x3bdb53(_0x4f9324)),m(0x9,_0x3bdb53(O)),m(0xa,_0x5e199c),m(0xb,_0x2e73f7),m(0xc,_0x34383f),m(0xd,_0x5cdc22)],W);function Os(_0x293172,_0x2b96b3,_0x4592e2,_0x1808f6,_0x1fa1fe,_0x83b789){const _0x1acc61=_0x369344;return _0x1808f6&&_0x1fa1fe[_0x1acc61(0x3b6)]?_0x293172['createInstance'](B,_0x2b96b3,_0x4592e2,_0x1808f6,_0x1fa1fe,_0x83b789):_0x1808f6?_0x293172[_0x1acc61(0x191)](K,_0x2b96b3,_0x4592e2,_0x1808f6,_0x83b789):_0x1fa1fe[_0x1acc61(0x3b6)]?_0x293172[_0x1acc61(0x191)](V,_0x2b96b3,_0x4592e2,_0x1fa1fe,_0x83b789):_0x293172[_0x1acc61(0x191)](De,_0x2b96b3,_0x4592e2,_0x83b789);}var ze=(_0x4a168b,_0x4affd9,_0x4b79fc,_0x558d8a)=>{const _0x485e66=_0x369344;for(var _0x3d70c1=_0x4affd9,_0x2fe4aa=_0x4a168b[_0x485e66(0x3b6)]-0x1,_0x1ffc89;_0x2fe4aa>=0x0;_0x2fe4aa--)(_0x1ffc89=_0x4a168b[_0x2fe4aa])&&(_0x3d70c1=_0x1ffc89(_0x3d70c1)||_0x3d70c1);return _0x3d70c1;},f=(_0x2f30f4,_0x431006)=>(_0x45dbe0,_0x61fdf8)=>_0x431006(_0x45dbe0,_0x61fdf8,_0x2f30f4);let be=class extends _0x1f6cf4{constructor(_0x267aa3,_0x58dbc0,_0x16cbb7){const _0x163eb9=_0x369344;super(),l(this,_0x163eb9(0x224),new Map()),l(this,_0x163eb9(0x344),new _0x36360c()),(this[_0x163eb9(0x2e0)]=_0x267aa3,this[_0x163eb9(0x313)]=_0x58dbc0,this[_0x163eb9(0x2dd)]=_0x16cbb7,this[_0x163eb9(0x3e0)]());}[_0x369344(0x42d)](){const _0x2ab171=_0x369344;super[_0x2ab171(0x42d)](),this[_0x2ab171(0x224)][_0x2ab171(0x33d)](_0x2125aa=>_0x2125aa['dispose']()),this[_0x2ab171(0x224)][_0x2ab171(0x1b6)]();}['getCollabEntity'](_0x3faa29){const _0x4a8c88=_0x369344;var _0x44f418;return(_0x44f418=this[_0x4a8c88(0x224)][_0x4a8c88(0x19d)](_0x3faa29))!=null?_0x44f418:null;}[_0x369344(0x3be)](_0x3be4d0){const _0x2c94db=_0x369344,_0x1c4bae=this[_0x2c94db(0x27f)](_0x3be4d0);return _0x1c4bae?_0x169b33(_0x1c4bae):this[_0x2c94db(0x344)][_0x2c94db(0x2be)](_0x1aaaf4(_0x4df90a=>_0x4df90a[_0x2c94db(0x3cc)]===_0x3be4d0));}[_0x369344(0x3e0)](){const _0x338eb0=_0x369344;this['_univerInstanceService'][_0x338eb0(0x28b)](_0x195e2d['UNIVER_SHEET'])[_0x338eb0(0x2be)](_0x5f2af8(this[_0x338eb0(0x351)]),_0x33ce7d(0x10))[_0x338eb0(0x3c2)](async _0x17dda5=>{const _0x3e3fcd=_0x338eb0,_0x10e71d=_0x17dda5['getUnitId'](),_0x1fca48=await this['_startCollaboration'](_0x10e71d,H[_0x3e3fcd(0x38c)]);this['_entities'][_0x3e3fcd(0x24c)](_0x10e71d,_0x1fca48);}),this['_univerInstanceService'][_0x338eb0(0x28b)](_0x195e2d[_0x338eb0(0x3c6)])['pipe'](_0x5f2af8(this['dispose$']),_0x33ce7d(0x10))['pipe'](_0x1aaaf4(_0x49ace8=>!_0x49ace8[_0x338eb0(0x2c0)]()[_0x338eb0(0x38b)]('__')))[_0x338eb0(0x3c2)](async _0x5f5103=>{const _0x447e20=_0x338eb0,_0x431854=_0x5f5103[_0x447e20(0x2c0)](),_0x34effd=await this[_0x447e20(0x3ba)](_0x431854,H[_0x447e20(0x3c6)]);this[_0x447e20(0x224)][_0x447e20(0x24c)](_0x431854,_0x34effd);}),_0x4de0cc(this['_univerInstanceService'][_0x338eb0(0x3fb)](_0x195e2d[_0x338eb0(0x38c)]),this[_0x338eb0(0x2dd)][_0x338eb0(0x3fb)](_0x195e2d['UNIVER_DOC']))[_0x338eb0(0x2be)](_0x5f2af8(this[_0x338eb0(0x351)]))[_0x338eb0(0x3c2)](_0x49d9ba=>{const _0x48d813=_0x338eb0,_0x1dc995=_0x49d9ba[_0x48d813(0x2c0)](),_0x51c5a4=this[_0x48d813(0x224)][_0x48d813(0x19d)](_0x1dc995);_0x51c5a4&&(_0x51c5a4[_0x48d813(0x42d)](),this[_0x48d813(0x224)][_0x48d813(0x358)](_0x1dc995));});}async['_startCollaboration'](_0x9f608b,_0x4b8bc6){const _0x1bf324=_0x369344,_0x14cd6f=await this['_collabSessionService'][_0x1bf324(0x24d)](_0x9f608b),_0x3e0089=this[_0x1bf324(0x2e0)][_0x1bf324(0x191)](this['_getCtorByUniverType'](_0x4b8bc6),_0x9f608b,_0x4b8bc6,_0x14cd6f);return await _0x3e0089['init'](),this['_entityInit$'][_0x1bf324(0x43d)](_0x3e0089),_0x3e0089;}[_0x369344(0x2bc)](_0x55f0a4){const _0x5532f5=_0x369344;switch(_0x55f0a4){case H[_0x5532f5(0x3c6)]:return gt;case H[_0x5532f5(0x38c)]:return mt;default:throw new Error(_0x5532f5(0x343)+_0x55f0a4);}}};be=ze([_0x3cfe98(_0x41440a[_0x369344(0x349)],be),f(0x0,_0x3bdb53(_0x29e329)),f(0x1,_0x3bdb53(Oe)),f(0x2,_0x1e6754)],be);let Ge=class extends _0x1f6cf4{constructor(_0x18fc87,_0x2e0553,_0x23a8bc,_0x44b866,_0x37cec0,_0x4d1cc3,_0x409701,_0x23d37b,_0x3a3a0e,_0x418e57,_0xf3fd40,_0x677459,_0x3d5c15){const _0x173d7a=_0x369344;super(),l(this,_0x173d7a(0x356),new _0x2a5f89(null)),l(this,_0x173d7a(0x353),this[_0x173d7a(0x356)][_0x173d7a(0x36b)]()),l(this,_0x173d7a(0x39a)),l(this,_0x173d7a(0x204),!0x1),l(this,_0x173d7a(0x29e),this[_0x173d7a(0x353)][_0x173d7a(0x2be)](_0x19010f(_0xe895de=>_0xe895de?_0xe895de[_0x173d7a(0x27a)]:y[_0x173d7a(0x37b)]),_0x55c0ae(0x1))),l(this,_0x173d7a(0x447),!0x1),l(this,'_remoteChangesetQueue',[]),(this['unitID']=_0x18fc87,this[_0x173d7a(0x35d)]=_0x2e0553,this[_0x173d7a(0x1a8)]=_0x23a8bc,this[_0x173d7a(0x2e0)]=_0x44b866,this[_0x173d7a(0x2ca)]=_0x37cec0,this['_compressMutationService']=_0x4d1cc3,this[_0x173d7a(0x24a)]=_0x409701,this[_0x173d7a(0x317)]=_0x23d37b,this[_0x173d7a(0x2d5)]=_0x3a3a0e,this['_commandService']=_0x418e57,this[_0x173d7a(0x41a)]=_0xf3fd40,this[_0x173d7a(0x179)]=_0x677459,this[_0x173d7a(0x1f3)]=_0x3d5c15);}get[_0x369344(0x185)](){const _0x1909a4=_0x369344;return this[_0x1909a4(0x39a)];}async['init'](){const _0x11e608=_0x369344;if(this['state'])throw new Error(_0x11e608(0x16c));await this[_0x11e608(0x3e0)]();}[_0x369344(0x429)](){const _0x57dbd0=_0x369344;return this[_0x57dbd0(0x204)]=!0x0,_0xd3a753(()=>{const _0x4444e1=_0x57dbd0;this[_0x4444e1(0x204)]=!0x1,this[_0x4444e1(0x3f4)]();});}[_0x369344(0x449)](_0x293923){const _0x4a8d1e=_0x369344;this[_0x4a8d1e(0x39a)]=_0x293923,this[_0x4a8d1e(0x356)][_0x4a8d1e(0x43d)](_0x293923);}async[_0x369344(0x3e0)](){const _0x1bc332=_0x369344;var _0x45333a;return this[_0x1bc332(0x449)](await this[_0x1bc332(0x33f)]()),this[_0x1bc332(0x1f3)]&&((_0x45333a=this['_singleActiveUnitService'])==null||_0x45333a['editingUnit'](this['unitID']),this[_0x1bc332(0x1f9)](_0xd3a753(this['_singleActiveUnitService'][_0x1bc332(0x42a)](this['unitID'])[_0x1bc332(0x3c2)](_0x3405ed=>{const _0x4c362c=_0x1bc332;this[_0x4c362c(0x2d5)]['debug'](_0x4c362c(0x3ef),_0x4c362c(0x1c7),_0x3405ed),_0x3405ed===Rs[_0x4c362c(0x26d)]?(this[_0x4c362c(0x41a)][_0x4c362c(0x1d1)]({'content':this['_localeService']['t'](_0x4c362c(0x333)),'type':_0x1aba92['Warning']}),this[_0x4c362c(0x179)]['updatePermissionPoint'](new _0x690418(this['unitID'])['id'],!0x1)):this[_0x4c362c(0x179)][_0x4c362c(0x321)](new _0x690418(this['unitID'])['id'],!0x0);})))),this[_0x1bc332(0x1f9)](_0xd3a753(this[_0x1bc332(0x1a8)][_0x1bc332(0x2b7)][_0x1bc332(0x3c2)](_0x22e2b2=>{const _0x2edb2f=_0x1bc332;_0x22e2b2===_e['ONLINE']?this[_0x2edb2f(0x238)]():_0x22e2b2===_e[_0x2edb2f(0x37b)]&&this[_0x2edb2f(0x2d3)]();}))),this[_0x1bc332(0x1f9)](_0xd3a753(this[_0x1bc332(0x1a8)][_0x1bc332(0x326)][_0x1bc332(0x3c2)](_0x169ee2=>{const _0x2db309=_0x1bc332;try{switch(_0x169ee2[_0x2db309(0x1c5)]){case _0x217d29['NEW_CHANGESETS']:{this[_0x2db309(0x2e2)](_0xc8b712(_0x169ee2[_0x2db309(0x336)]));break;}case _0x217d29['CHANGESET_ACK']:{this['_onRemoteACK'](_0x169ee2[_0x2db309(0x336)]);break;}case _0x217d29[_0x2db309(0x3c4)]:{this[_0x2db309(0x428)]();break;}case _0x217d29[_0x2db309(0x264)]:{this[_0x2db309(0x329)](_0x169ee2[_0x2db309(0x336)][_0x2db309(0x1f4)]['map'](_0x35d576=>_0xc8b712(_0x35d576)));break;}case _0x217d29[_0x2db309(0x2e7)]:this[_0x2db309(0x428)]({'isPermissionRej':!0x0});}}catch(_0x3bf044){throw console[_0x2db309(0x284)](_0x2db309(0x2e3),_0x3bf044),_0x3bf044;}}))),this[_0x1bc332(0x39a)];}[_0x369344(0x22f)](){const _0xeb1fb=_0x369344;this[_0xeb1fb(0x447)]=!0x1;}[_0x369344(0x250)](){const _0x46b2a4=_0x369344;if(this[_0x46b2a4(0x447)])throw new Error(_0x46b2a4(0x443));this[_0x46b2a4(0x447)]=!0x0;}[_0x369344(0x309)](_0x2a8fd8){const _0x432794=_0x369344;this[_0x432794(0x250)](),this['_updateState'](this[_0x432794(0x39a)][_0x432794(0x411)](_0x2a8fd8)),this[_0x432794(0x22f)]();}[_0x369344(0x2e2)](_0x3122c7){const _0x56bf9c=_0x369344;if(!(_0x3122c7[_0x56bf9c(0x35a)]<=this['_revisionService']['getCurrentRevForDocument'](this[_0x56bf9c(0x3cc)]))){if(this['_collaborationPaused']){this[_0x56bf9c(0x408)][_0x56bf9c(0x288)](_0x3122c7);return;}this[_0x56bf9c(0x1db)](_0x3122c7);}}[_0x369344(0x3f4)](){const _0x58d5e8=_0x369344;this[_0x58d5e8(0x408)][_0x58d5e8(0x33d)](_0xbd0b08=>this[_0x58d5e8(0x1db)](_0xbd0b08)),this[_0x58d5e8(0x408)]=[];}['_applyRemoteChangeset'](_0x4a46c7){const _0x1a7da3=_0x369344,_0x5910ea=this[_0x1a7da3(0x2b6)][_0x1a7da3(0x451)][_0x1a7da3(0x159)](this[_0x1a7da3(0x2b6)][_0x1a7da3(0x451)]['getInterceptPoints']()[_0x1a7da3(0x222)])(_0x4a46c7[_0x1a7da3(0x2e9)],null)||_0x4a46c7[_0x1a7da3(0x2e9)],_0x128e49={..._0x4a46c7,'mutations':_0x5910ea};this['_lockTransition'](),this[_0x1a7da3(0x449)](this[_0x1a7da3(0x39a)][_0x1a7da3(0x260)](_0x128e49)),this[_0x1a7da3(0x22f)]();}[_0x369344(0x3bd)](_0x4d7ed7){const _0x420704=_0x369344;this[_0x420704(0x250)](),this[_0x420704(0x449)](this[_0x420704(0x39a)]['onRemoteAck'](_0x4d7ed7)),this[_0x420704(0x22f)]();}[_0x369344(0x428)](_0x4dfcc1){const _0x58ade4=_0x369344;this[_0x58ade4(0x250)](),this[_0x58ade4(0x449)](this[_0x58ade4(0x39a)][_0x58ade4(0x416)](_0x4dfcc1)),this[_0x58ade4(0x22f)]();}[_0x369344(0x329)](_0x49dab8){const _0x419cf6=_0x369344;if(!(this[_0x419cf6(0x39a)]instanceof W))throw new TypeError(_0x419cf6(0x18c));const _0xeb6b65=_0x49dab8[_0x419cf6(0x1b8)](_0x54c260=>{const _0x5b14ec=_0x419cf6,_0x53304a=this[_0x5b14ec(0x2b6)][_0x5b14ec(0x451)][_0x5b14ec(0x159)](this[_0x5b14ec(0x2b6)][_0x5b14ec(0x451)]['getInterceptPoints']()[_0x5b14ec(0x222)])(_0x54c260['mutations'],null)||_0x54c260[_0x5b14ec(0x2e9)];return{..._0x54c260,'mutations':_0x53304a};});this['_lockTransition'](),this[_0x419cf6(0x449)](this[_0x419cf6(0x39a)]['onMissedChangesetFetched'](_0xeb6b65)),this['_unlockTransition']();}[_0x369344(0x2d3)](){const _0x238a7a=_0x369344;this[_0x238a7a(0x250)](),this[_0x238a7a(0x449)](this[_0x238a7a(0x39a)]['toggleOffline']()),this[_0x238a7a(0x22f)]();}['_toggleOnline'](){const _0xe1c2e1=_0x369344;this[_0xe1c2e1(0x250)](),this[_0xe1c2e1(0x449)](this[_0xe1c2e1(0x39a)][_0xe1c2e1(0x2f1)]()),this['_unlockTransition']();}async[_0x369344(0x33f)](){return new Promise(_0x2a8f31=>{const _0x4acb21=_0xfefa;this[_0x4acb21(0x1a8)][_0x4acb21(0x2b7)][_0x4acb21(0x2be)](_0x1cadbd(0x1))[_0x4acb21(0x3c2)](async _0x217c8f=>{const _0xcc0056=_0x4acb21;_0x2a8f31(await this[_0xcc0056(0x3db)](_0x217c8f===_e[_0xcc0056(0x3a5)]));});});}['_createHandler'](){const _0x15944c=_0x369344,_0x3a9b5e=this[_0x15944c(0x3cc)];return{'onStateChange':(_0x52bb30,_0x3b132f)=>{const _0x324059=_0x15944c;if(_0x52bb30!==this[_0x324059(0x39a)])throw new Error(_0x324059(0x308)+_0x52bb30['status']+_0x324059(0x43b)+_0x3b132f[_0x324059(0x27a)]+'\x0aCurrent:\x20'+this['_state'][_0x324059(0x27a)]);this['_updateState'](_0x3b132f);},'onSendChangeset':_0x42181f=>{const _0x5db289=_0x15944c,_0x42fa17={'eventID':_0x217d29[_0x5db289(0x3d7)],'data':{'unitID':_0x42181f[_0x5db289(0x3cc)],'unitType':this['_type'],'changeset':_0x42181f,'memberID':this[_0x5db289(0x1a8)][_0x5db289(0x1c3)]()}};this[_0x5db289(0x1a8)]['send'](_0x42fa17,this['unitID']);},'onMissingChangesets':({from:_0x59e40a,to:_0x48d9d0})=>{const _0x4c01f1=_0x15944c;this[_0x4c01f1(0x2d5)][_0x4c01f1(0x215)]('[CollaborationEntity]',_0x4c01f1(0x409)+_0x59e40a+'\x20to\x20'+_0x48d9d0);const _0x28db93={'eventID':_0x217d29[_0x4c01f1(0x1ba)],'data':{'unitID':_0x3a9b5e,'unitType':this['_type'],'from':_0x59e40a,'to':_0x48d9d0}};this['_session'][_0x4c01f1(0x332)](_0x28db93,this[_0x4c01f1(0x3cc)]);}};}async[_0x369344(0x3db)](_0x2ea155){const _0x337499=_0x369344;var _0x291d05,_0x500f4f;const _0x3ea586=await this[_0x337499(0x2ca)][_0x337499(0x1dd)](this[_0x337499(0x3cc)]),_0x861bba=(_0x291d05=_0x3ea586==null?void 0x0:_0x3ea586[_0x337499(0x2e9)])!=null?_0x291d05:[],_0x48a8e9=(_0x500f4f=_0x3ea586==null?void 0x0:_0x3ea586[_0x337499(0x46f)])!=null?_0x500f4f:null,_0x1b0f04=this['unitID'];try{this[_0x337499(0x3c9)](_0x48a8e9,_0x861bba);}catch(_0x3ac47e){this[_0x337499(0x2d5)][_0x337499(0x284)](_0x3ac47e);}const _0x4fa66c=this['_createHandler']();if(_0x2ea155){const _0x26ea1b=Os(this[_0x337499(0x2e0)],_0x1b0f04,this[_0x337499(0x35d)],_0x48a8e9,_0x861bba,_0x4fa66c);return _0x26ea1b instanceof V?_0x26ea1b[_0x337499(0x1cd)]():(_0x26ea1b instanceof B||_0x26ea1b instanceof K)&&_0x26ea1b[_0x337499(0x28f)](),_0x26ea1b;}return this['_injector'][_0x337499(0x191)](X,_0x1b0f04,this[_0x337499(0x35d)],_0x48a8e9,_0x861bba,_0x4fa66c);}[_0x369344(0x3c9)](_0x568db9,_0x54ec63){const _0x30969c=_0x369344;var _0x48db50,_0x322863;const _0x271cd4=this[_0x30969c(0x2b6)][_0x30969c(0x451)][_0x30969c(0x159)](this[_0x30969c(0x2b6)][_0x30969c(0x451)]['getInterceptPoints']()[_0x30969c(0x222)]);(_0x48db50=_0x271cd4((_0x568db9==null?void 0x0:_0x568db9[_0x30969c(0x2e9)])||[],null))==null||_0x48db50[_0x30969c(0x33d)](_0x55f06c=>this[_0x30969c(0x367)]['executeCommand'](_0x55f06c['id'],_0x55f06c[_0x30969c(0x3fc)])),(_0x322863=_0x271cd4(_0x54ec63||[],null))==null||_0x322863[_0x30969c(0x33d)](_0x3eacf3=>this[_0x30969c(0x367)]['executeCommand'](_0x3eacf3['id'],_0x3eacf3[_0x30969c(0x3fc)]));}};Ge=ze([f(0x3,_0x3bdb53(_0x29e329)),f(0x4,_0x3bdb53(O)),f(0x5,_0x3bdb53(_0x528191)),f(0x6,_0x3bdb53(_0x122a5b)),f(0x7,_0x3bdb53(_0x4f9324)),f(0x8,_0x5e199c),f(0x9,_0x2e73f7),f(0xa,_0x45f7cf),f(0xb,_0x2657e7),f(0xc,_0x4447c0(Je))],Ge);let gt=class extends Ge{constructor(_0x6b7bb9,_0xb05d55,_0x5f3ea7,_0x1ecfeb,_0x56dd93,_0xf225e2,_0x87a92e,_0x53a5d0,_0x153fde,_0x1b3384,_0x286c51,_0x34f117,_0x5d40aa,_0x47ac12,_0x12f7cc,_0x1c1538,_0x4bf057){const _0x4ee190=_0x369344;super(_0x6b7bb9,_0xb05d55,_0x5f3ea7,_0x1ecfeb,_0x56dd93,_0xf225e2,_0x87a92e,_0x53a5d0,_0x5d40aa,_0x47ac12,_0x12f7cc,_0x1c1538,_0x4bf057),this[_0x4ee190(0x3cc)]=_0x6b7bb9,this['type']=_0xb05d55,this[_0x4ee190(0x386)]=_0x5f3ea7,this['_docStateChangeManagerService']=_0x153fde,this[_0x4ee190(0x296)]=_0x1b3384,this['_docTransformSelectionsService']=_0x286c51,this[_0x4ee190(0x438)]=_0x34f117;}[_0x369344(0x23e)](){const _0x453a49=_0x369344,_0x4f3f8d=super[_0x453a49(0x23e)]();return _0x4f3f8d[_0x453a49(0x1d5)]=_0x1d8ab5=>this[_0x453a49(0x296)]['transformIMECache'](_0x1d8ab5),_0x4f3f8d[_0x453a49(0x242)]=_0x57ca5a=>this['_docTransformSelectionsService'][_0x453a49(0x232)](_0x57ca5a),_0x4f3f8d[_0x453a49(0x40e)]=_0x4997d4=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x4997d4),_0x4f3f8d[_0x453a49(0x440)]=_0x3e436b=>this[_0x453a49(0x296)][_0x453a49(0x257)](_0x3e436b),_0x4f3f8d;}async[_0x369344(0x3e0)](){const _0x219e1b=_0x369344,_0xa0d419=await super['_init']();return this[_0x219e1b(0x418)][_0x219e1b(0x433)][_0x219e1b(0x2be)](_0x5f2af8(this[_0x219e1b(0x351)]))['subscribe'](_0x5b87b8=>{const _0x37655e=_0x219e1b;if(_0x5b87b8==null)return;const {unitId:_0x269672,redoState:_0x2e1fc6,commandId:_0x4703f7}=_0x5b87b8;if(_0x269672!==this[_0x37655e(0x3cc)])return;const _0x299341={'id':_0x4703f7,'type':_0x10679a[_0x37655e(0x23c)],'params':{'unitId':_0x269672,'actions':_0x2e1fc6[_0x37655e(0x289)],'textRanges':null}};this[_0x37655e(0x309)](_0x299341);}),_0xa0d419;}};gt=ze([f(0x3,_0x3bdb53(_0x29e329)),f(0x4,_0x3bdb53(O)),f(0x5,_0x3bdb53(_0x528191)),f(0x6,_0x3bdb53(_0x122a5b)),f(0x7,_0x3bdb53(_0x4f9324)),f(0x8,_0x3bdb53(_0x2ad533)),f(0x9,_0x3bdb53(Ve)),f(0xa,_0x3bdb53(Be)),f(0xb,_0x3bdb53(Mt)),f(0xc,_0x5e199c),f(0xd,_0x2e73f7),f(0xe,_0x45f7cf),f(0xf,_0x2657e7),f(0x10,_0x4447c0(Je))],gt);let mt=class extends Ge{constructor(_0x54e18b,_0x3582fc,_0x28ec12,_0x420365,_0x2dd8df,_0x2dd285,_0x144629,_0x3220ea,_0x45becc,_0x3bb5f3,_0x32d773,_0x247373,_0xff734d,_0x5aade0){const _0x16af26=_0x369344;super(_0x54e18b,_0x3582fc,_0x28ec12,_0x420365,_0x2dd8df,_0x2dd285,_0x144629,_0x3220ea,_0x3bb5f3,_0x32d773,_0x247373,_0xff734d,_0x5aade0),this[_0x16af26(0x3cc)]=_0x54e18b,this['type']=_0x3582fc,this[_0x16af26(0x386)]=_0x28ec12,this[_0x16af26(0x3b7)]=_0x45becc;}[_0x369344(0x23e)](){const _0x328403=_0x369344,_0x29c828=super['_createHandler']();return _0x29c828[_0x328403(0x242)]=_0x53caff=>this[_0x328403(0x3b7)][_0x328403(0x232)](_0x53caff),_0x29c828;}async[_0x369344(0x3e0)](){const _0x37e93e=_0x369344,_0x45a26e=await super['_init']();return this[_0x37e93e(0x1f9)](this[_0x37e93e(0x367)]['onCommandExecuted']((_0x17c95,_0x1d432e)=>{const _0xb1fbd1=_0x37e93e;if(_0x17c95[_0xb1fbd1(0x2f5)]!==_0x10679a[_0xb1fbd1(0x23c)]||_0x1d432e!=null&&_0x1d432e[_0xb1fbd1(0x37a)]||_0x1d432e!=null&&_0x1d432e[_0xb1fbd1(0x3ed)])return;const _0x353867=_0x17c95[_0xb1fbd1(0x3fc)];if((_0x353867==null?void 0x0:_0x353867[_0xb1fbd1(0x3cd)])!==this[_0xb1fbd1(0x3cc)])return;const _0x42380a=_0x17c95,_0x596c86=this[_0xb1fbd1(0x2b6)]['interceptor']['fetchThroughInterceptors'](this[_0xb1fbd1(0x2b6)][_0xb1fbd1(0x451)]['getInterceptPoints']()[_0xb1fbd1(0x41e)])([_0x42380a],null)||[_0x42380a];this[_0xb1fbd1(0x309)](_0x596c86[0x0]);})),_0x45a26e;}};mt=ze([f(0x3,_0x3bdb53(_0x29e329)),f(0x4,_0x3bdb53(O)),f(0x5,_0x3bdb53(_0x528191)),f(0x6,_0x3bdb53(_0x122a5b)),f(0x7,_0x3bdb53(_0x4f9324)),f(0x8,_0x3bdb53(We)),f(0x9,_0x5e199c),f(0xa,_0x2e73f7),f(0xb,_0x45f7cf),f(0xc,_0x2657e7),f(0xd,_0x4447c0(Je))],mt);const Jt=[_0x369344(0x378),_0x369344(0x1e8),_0x369344(0x1a3),_0x369344(0x21a),_0x369344(0x303),'gold400'];class At extends _0x1bbf2c{constructor(){const _0x35717f=_0x369344;super(...arguments),l(this,_0x35717f(0x32d),new Map()),l(this,_0x35717f(0x3f5),0x0);}['assignAColorForMemberID'](_0x24d721){const _0x2c52f1=_0x369344;if(this['_assignedColors'][_0x2c52f1(0x282)](_0x24d721))return this[_0x2c52f1(0x32d)]['get'](_0x24d721);const _0x188158=Jt[this['_colorIndex']];return this[_0x2c52f1(0x3f5)]=(this[_0x2c52f1(0x3f5)]+0x1)%Jt['length'],this[_0x2c52f1(0x32d)][_0x2c52f1(0x24c)](_0x24d721,_0x188158),_0x188158;}}var fn=(_0x5ef02a,_0x7cabf9,_0x5cbcd8,_0x47772a)=>{for(var _0x4810c2=_0x7cabf9,_0x123796=_0x5ef02a['length']-0x1,_0x1abc38;_0x123796>=0x0;_0x123796--)(_0x1abc38=_0x5ef02a[_0x123796])&&(_0x4810c2=_0x1abc38(_0x4810c2)||_0x4810c2);return _0x4810c2;},ae=(_0x16714f,_0x4f7bc1)=>(_0x266576,_0x52ad19)=>_0x4f7bc1(_0x266576,_0x52ad19,_0x16714f);const vn=0x12c,pn=0x64,In=()=>{let _0x553abb=[],_0x183b1c=!0x1;return _0x49ce6c=>{_0x553abb['push'](_0x49ce6c),_0x183b1c||(_0x183b1c=!0x0,setTimeout(()=>{_0x553abb['forEach'](_0xefcd6c=>_0xefcd6c()),_0x553abb=[],_0x183b1c=!0x1;}));};};let St=class extends _0x1f6cf4{constructor(_0x4550ec,_0x3dee33,_0x254052,_0xc113f6,_0xace1e8,_0x14ceb0,_0x7c8348,_0x4b5b80){const _0x2eb142=_0x369344;super(),l(this,'_online',!0x1),l(this,_0x2eb142(0x3e0),!0x1),l(this,_0x2eb142(0x406),new _0x2a5f89(new Map())),l(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),l(this,_0x2eb142(0x401),new _0x2a5f89([])),l(this,_0x2eb142(0x298),this[_0x2eb142(0x401)][_0x2eb142(0x2be)](_0x136cc0(vn))),l(this,_0x2eb142(0x397),_0x507660((_0x429d7c,_0x3cbb2c)=>{const _0x49393a=_0x2eb142,_0x20f532={'eventID':_0x217d29[_0x49393a(0x3d4)],'data':{'unitID':this[_0x49393a(0x3cc)],'memberID':this[_0x49393a(0x1a8)][_0x49393a(0x1c3)](),'selection':_0x3b8151(_0x429d7c,_0x3cbb2c['range'])}};this[_0x49393a(0x1a8)][_0x49393a(0x332)](_0x20f532,this['unitID']);},pn)),(this[_0x2eb142(0x3cc)]=_0x4550ec,this['_session']=_0x3dee33,this[_0x2eb142(0x2e0)]=_0x254052,this[_0x2eb142(0x2d0)]=_0xc113f6,this[_0x2eb142(0x2c2)]=_0xace1e8,this[_0x2eb142(0x2dd)]=_0x14ceb0,this[_0x2eb142(0x367)]=_0x7c8348,this[_0x2eb142(0x170)]=_0x4b5b80);}get['cursorInfo'](){const _0x231794=_0x369344;return this[_0x231794(0x406)]['getValue']();}get[_0x369344(0x1f8)](){const _0x5c230c=_0x369344;return this[_0x5c230c(0x401)]['getValue']();}[_0x369344(0x42d)](){const _0x4297ef=_0x369344;super[_0x4297ef(0x42d)](),this[_0x4297ef(0x406)][_0x4297ef(0x43d)](new Map()),this[_0x4297ef(0x406)][_0x4297ef(0x17c)](),this[_0x4297ef(0x401)][_0x4297ef(0x43d)]([]),this['_roomMembers$'][_0x4297ef(0x17c)]();}['init'](){const _0x270296=_0x369344;this[_0x270296(0x3e0)]||(this[_0x270296(0x3e0)]=!0x0,this['_session'][_0x270296(0x2b7)][_0x270296(0x2be)](_0x5f2af8(this[_0x270296(0x351)]))[_0x270296(0x3c2)](_0x2af34c=>{const _0x12840f=_0x270296;_0x2af34c===_e[_0x12840f(0x3a5)]?this['_toggleOnline']():this[_0x12840f(0x2d3)]();}),this[_0x270296(0x1a8)][_0x270296(0x326)][_0x270296(0x2be)](_0x5f2af8(this['dispose$']))[_0x270296(0x3c2)](_0xaa0232=>{const _0x483cd1=_0x270296,_0x257503=_0xaa0232[_0x483cd1(0x1c5)];_0x257503===_0x217d29[_0x483cd1(0x3d4)]&&this[_0x483cd1(0x2ce)](_0xaa0232),_0x257503===_0x217d29[_0x483cd1(0x1ee)]&&this[_0x483cd1(0x287)](_0xaa0232);}),this['_onRefRangeChange'](),this[_0x270296(0x1f9)](this[_0x270296(0x367)]['onCommandExecuted'](_0x47ac6e=>{const _0x228cee=_0x270296;if(this[_0x228cee(0x2b2)]&&_0x47ac6e['id']===_0x20fa8e['id']&&_0x47ac6e[_0x228cee(0x3fc)][_0x228cee(0x3cd)]===this['unitID']){const _0x42f0c8=_0x47ac6e[_0x228cee(0x3fc)];this[_0x228cee(0x397)](_0x42f0c8['subUnitId'],_0x42f0c8[_0x228cee(0x19f)][0x0]);}})));}[_0x369344(0x2ce)](_0x15f461){const _0x5bbc71=_0x369344;var _0x9f1e82,_0x4fdee4;const {memberID:_0x3107ba,selection:_0x1dddfd}=_0x15f461['data'],{sheetName:_0x1e9ff1,range:_0x224de4}=_0x5a55eb(_0x1dddfd),_0x403f8a={'name':(_0x4fdee4=(_0x9f1e82=this[_0x5bbc71(0x2c2)][_0x5bbc71(0x3da)](this[_0x5bbc71(0x3cc)],_0x3107ba))==null?void 0x0:_0x9f1e82['name'])!=null?_0x4fdee4:_0x5bbc71(0x42b),'range':this[_0x5bbc71(0x3f3)](_0x1e9ff1,_0x224de4),'sheetID':_0x1e9ff1,'color':this['_colorAssignService'][_0x5bbc71(0x1e9)](_0x3107ba),'selection':_0x1dddfd},_0x1fde1d=this[_0x5bbc71(0x1b3)];_0x1fde1d[_0x5bbc71(0x24c)](_0x3107ba,_0x403f8a),this['_cursorInfo$']['next'](_0x1fde1d);}[_0x369344(0x287)](_0x3084f8){const _0x431597=_0x369344,{memberID:_0x51c937}=_0x3084f8[_0x431597(0x336)],_0x1384c3=this['cursorInfo'];_0x1384c3[_0x431597(0x358)](_0x51c937),this[_0x431597(0x406)][_0x431597(0x43d)](_0x1384c3);}[_0x369344(0x3f3)](_0x466d66,_0x127814){const _0x1f412e=_0x369344;var _0xb505a,_0x14acbb;const _0x5a1252=(_0x14acbb=(_0xb505a=this[_0x1f412e(0x2dd)][_0x1f412e(0x252)](this[_0x1f412e(0x3cc)]))==null?void 0x0:_0xb505a[_0x1f412e(0x375)](_0x466d66))==null?void 0x0:_0x14acbb['getMergeData']();return(_0x5a1252==null?void 0x0:_0x5a1252['find'](_0x58c69e=>_0x2defa9[_0x1f412e(0x214)](_0x58c69e,_0x127814)))||_0x127814;}[_0x369344(0x2ff)](){const _0x432a08=_0x369344,_0x37517f=new _0x17acc5(),_0x4ce642=In(),_0x59e2d0=()=>{const _0x38f15f=_0xfefa;_0x37517f[_0x38f15f(0x42d)]();const _0x18e20e=(_0x26a8b7,_0xfb4d7e,_0x831996,_0xa63238)=>{const _0x5a2f50=_0x38f15f;let _0x1d2a07=[];switch(_0x26a8b7['id']){case _0x43f5f2[_0x5a2f50(0x15b)]:{_0x1d2a07=_0x4aa26a(_0x26a8b7,_0xa63238);break;}case _0x43f5f2[_0x5a2f50(0x300)]:{_0x1d2a07=_0x18b750(_0x26a8b7,_0xa63238);break;}case _0x43f5f2[_0x5a2f50(0x346)]:{_0x1d2a07=_0x2fb529(_0x26a8b7,_0xa63238);break;}case _0x43f5f2['InsertRangeMoveDownCommandId']:{_0x1d2a07=_0x224b57(_0x26a8b7,_0xa63238);break;}case _0x43f5f2['InsertRangeMoveRightCommandId']:{_0x1d2a07=_0x3b6994(_0x26a8b7,_0xa63238);break;}case _0x43f5f2[_0x5a2f50(0x3d0)]:{_0x1d2a07=_0x51d70f(_0x26a8b7,_0xa63238);break;}case _0x43f5f2[_0x5a2f50(0x3c0)]:{_0x1d2a07=_0x318054(_0x26a8b7,_0xa63238);break;}case _0x43f5f2[_0x5a2f50(0x34e)]:{_0x1d2a07=_0x137d66(_0x26a8b7,_0xa63238);break;}case _0x43f5f2['RemoveRowCommandId']:{_0x1d2a07=_0x663d2b(_0x26a8b7,_0xa63238);break;}}const _0x28cbb1=_0x45121f(_0x1d2a07,_0xa63238),_0x51c5c7=this[_0x5a2f50(0x1b3)][_0x5a2f50(0x19d)](_0xfb4d7e);if(_0x51c5c7&&_0x28cbb1){const _0x351976={..._0x51c5c7,'range':_0x28cbb1};this[_0x5a2f50(0x1b3)]['set'](_0xfb4d7e,_0x351976),_0x4ce642(()=>{const _0x2a3c3a=_0x5a2f50,_0x3e5dca=this[_0x2a3c3a(0x170)]['registerRefRange'](_0x28cbb1,_0x25c2d0=>(_0x3e5dca[_0x2a3c3a(0x42d)](),_0x18e20e(_0x25c2d0,_0xfb4d7e,_0x831996,_0x28cbb1)));_0x37517f[_0x2a3c3a(0x1a0)](_0x3e5dca);});}return{'redos':[],'undos':[]};};this[_0x38f15f(0x1b3)][_0x38f15f(0x33d)]((_0x5aa76c,_0x3f8da7)=>{const _0x1c2694=_0x38f15f,{range:_0x354643,sheetID:_0x395055}=_0x5aa76c,_0x57a2a2=this[_0x1c2694(0x170)][_0x1c2694(0x388)](_0x354643,_0x3c49a6=>(_0x57a2a2[_0x1c2694(0x42d)](),_0x18e20e(_0x3c49a6,_0x3f8da7,_0x395055,_0x354643)));_0x37517f[_0x1c2694(0x1a0)](_0x57a2a2);});};this['disposeWithMe'](_0xd3a753(this[_0x432a08(0x406)]['subscribe'](()=>{_0x59e2d0();})));}[_0x369344(0x238)](){const _0x4960e7=_0x369344;var _0xa7b854,_0xca2adf;if(this[_0x4960e7(0x2b2)]=!0x0,((_0xa7b854=this[_0x4960e7(0x2dd)][_0x4960e7(0x3a6)]())==null?void 0x0:_0xa7b854[_0x4960e7(0x2c0)]())!==this[_0x4960e7(0x3cc)])return;const _0x5c5ea4=(_0xca2adf=this['_injector'][_0x4960e7(0x19d)](_0x12ef89)['getSelections']())==null?void 0x0:_0xca2adf[0x0];_0x5c5ea4&&this[_0x4960e7(0x397)](this[_0x4960e7(0x2dd)]['getCurrentUnitForType'](_0x195e2d['UNIVER_SHEET'])['getActiveSheet']()[_0x4960e7(0x30e)](),_0x5c5ea4);}['_toggleOffline'](){const _0x1f7b61=_0x369344;this[_0x1f7b61(0x2b2)]=!0x1;}};St=fn([ae(0x2,_0x3bdb53(_0x29e329)),ae(0x3,_0x3bdb53(At)),ae(0x4,_0x3bdb53(ee)),ae(0x5,_0x1e6754),ae(0x6,_0x2e73f7),ae(0x7,_0x3bdb53(_0x5658f4))],St);var En=(_0x5a6af1,_0x414a63,_0x247529,_0x92db42)=>{const _0x44db48=_0x369344;for(var _0x2994ce=_0x414a63,_0x21ae93=_0x5a6af1[_0x44db48(0x3b6)]-0x1,_0x18f815;_0x21ae93>=0x0;_0x21ae93--)(_0x18f815=_0x5a6af1[_0x21ae93])&&(_0x2994ce=_0x18f815(_0x2994ce)||_0x2994ce);return _0x2994ce;},q=(_0xdbf41f,_0x50e5e2)=>(_0x18183a,_0x4d0321)=>_0x50e5e2(_0x18183a,_0x4d0321,_0xdbf41f);const Cn=0x12c,bn=0x64;let ft=class extends _0x1f6cf4{constructor(_0x61b67d,_0x5f1607,_0x5aa103,_0x216bb3,_0x1ed691,_0x1da44f,_0x3b51b4,_0x45e28b,_0x476a65){const _0x11f6d2=_0x369344;super(),l(this,_0x11f6d2(0x2b2),!0x1),l(this,_0x11f6d2(0x3e0),!0x1),l(this,_0x11f6d2(0x406),new _0x2a5f89(new Map())),l(this,_0x11f6d2(0x3e7),this['_cursorInfo$'][_0x11f6d2(0x36b)]()),l(this,_0x11f6d2(0x401),new _0x2a5f89([])),l(this,'roomMembers$',this[_0x11f6d2(0x401)][_0x11f6d2(0x2be)](_0x136cc0(Cn))),l(this,_0x11f6d2(0x397),_0x507660(_0x1d3c47=>{const _0x32ac9f=_0x11f6d2,_0xc205ba={'eventID':_0x217d29['UPDATE_CURSOR'],'data':{'unitID':this[_0x32ac9f(0x3cc)],'memberID':this[_0x32ac9f(0x1a8)][_0x32ac9f(0x1c3)](),'selection':Ts(_0x1d3c47)}};this['_session'][_0x32ac9f(0x332)](_0xc205ba,this[_0x32ac9f(0x3cc)]);},bn)),(this[_0x11f6d2(0x3cc)]=_0x61b67d,this[_0x11f6d2(0x1a8)]=_0x5f1607,this[_0x11f6d2(0x2e0)]=_0x5aa103,this[_0x11f6d2(0x2d0)]=_0x216bb3,this['_memberService']=_0x1ed691,this[_0x11f6d2(0x30f)]=_0x1da44f,this[_0x11f6d2(0x27b)]=_0x3b51b4,this[_0x11f6d2(0x2dd)]=_0x45e28b,this[_0x11f6d2(0x367)]=_0x476a65);}get[_0x369344(0x1b3)](){const _0x21ee96=_0x369344;return this['_cursorInfo$'][_0x21ee96(0x1ae)]();}get[_0x369344(0x1f8)](){const _0x26458f=_0x369344;return this['_roomMembers$'][_0x26458f(0x1ae)]();}['dispose'](){const _0x249e9b=_0x369344;super[_0x249e9b(0x42d)](),this[_0x249e9b(0x406)][_0x249e9b(0x43d)](new Map()),this[_0x249e9b(0x406)][_0x249e9b(0x17c)](),this[_0x249e9b(0x401)][_0x249e9b(0x43d)]([]),this[_0x249e9b(0x401)][_0x249e9b(0x17c)]();}[_0x369344(0x3ac)](){const _0x1639a8=_0x369344;this[_0x1639a8(0x3e0)]||(this[_0x1639a8(0x3e0)]=!0x0,this[_0x1639a8(0x1a8)]['sessionStatus$'][_0x1639a8(0x2be)](_0x5f2af8(this['dispose$']))['subscribe'](_0x56d5ae=>{const _0x3b41e6=_0x1639a8;_0x56d5ae===_e[_0x3b41e6(0x3a5)]?this[_0x3b41e6(0x238)]():this[_0x3b41e6(0x2d3)]();}),this[_0x1639a8(0x1a8)]['event$'][_0x1639a8(0x2be)](_0x5f2af8(this[_0x1639a8(0x351)]))[_0x1639a8(0x3c2)](_0x51ca9c=>{const _0x32dbc7=_0x1639a8,_0x2a5e1e=_0x51ca9c[_0x32dbc7(0x1c5)];_0x2a5e1e===_0x217d29['UPDATE_CURSOR']&&this[_0x32dbc7(0x2ce)](_0x51ca9c),_0x2a5e1e===_0x217d29[_0x32dbc7(0x1ee)]&&this[_0x32dbc7(0x287)](_0x51ca9c);}),this[_0x1639a8(0x1f9)](this[_0x1639a8(0x367)][_0x1639a8(0x392)](_0x2a7eb9=>{const _0xc33dba=_0x1639a8,_0x2b0876=_0x2a7eb9['params'];_0x2b0876!=null&&this['_online']&&_0x2a7eb9['id']===_0x130d67['id']&&_0x2b0876[_0xc33dba(0x3cd)]===this[_0xc33dba(0x3cc)]&&_0x2b0876[_0xc33dba(0x206)]===!0x1&&this[_0xc33dba(0x397)](_0x2b0876[_0xc33dba(0x442)]);})),this[_0x1639a8(0x30f)]['collabCursorState$'][_0x1639a8(0x2be)](_0x5f2af8(this[_0x1639a8(0x351)]))[_0x1639a8(0x3c2)](_0x17a02f=>{const _0x401e6=_0x1639a8;if((_0x17a02f==null?void 0x0:_0x17a02f['unitID'])!==this[_0x401e6(0x3cc)])return;const _0x5e842e={'eventID':_0x217d29['UPDATE_CURSOR'],'data':_0x17a02f};this[_0x401e6(0x2ce)](_0x5e842e);}),this[_0x1639a8(0x1f9)](this[_0x1639a8(0x367)]['onCommandExecuted'](_0x1ddd21=>{const _0x51dcf5=_0x1639a8;if(_0x1ddd21[_0x51dcf5(0x3fc)]==null)return;const _0x1b51a4=_0x1ddd21[_0x51dcf5(0x3fc)];if(_0x1ddd21['id']!==_0x398d0b['id']||_0x1b51a4[_0x51dcf5(0x3cd)]!==this[_0x51dcf5(0x3cc)])return;const _0x3cc999={'id':_0x51dcf5(0x1b2),'params':_0x1b51a4},_0x5de49c=this[_0x51dcf5(0x1b3)];for(const [_0x73a68a,_0x7a0a86]of _0x5de49c){const _0x5ce861={'id':_0x51dcf5(0x1b2),'params':{'unitId':this[_0x51dcf5(0x3cc)],'actions':null,'textRanges':_0x7a0a86[_0x51dcf5(0x442)]}},_0x41e8ef=this[_0x51dcf5(0x27b)]['transformMutation'](_0x3cc999,_0x5ce861,!0x1);if(_0xe12b02(_0x41e8ef))throw _0x41e8ef[_0x51dcf5(0x284)];_0x5de49c[_0x51dcf5(0x24c)](_0x73a68a,{..._0x7a0a86,'ranges':_0x41e8ef[_0x51dcf5(0x422)][_0x51dcf5(0x3fc)][_0x51dcf5(0x369)]});}queueMicrotask(()=>{const _0x46aae3=_0x51dcf5;this[_0x46aae3(0x406)]['next'](_0x5de49c);});})));}['_onCursorUpdate'](_0x40621b){const _0x50cd72=_0x369344;var _0x556bc2,_0x351a8c;const {memberID:_0x1ad03c,selection:_0x213f30}=_0x40621b[_0x50cd72(0x336)],_0x52a4af=ln(_0x213f30),_0x74dbe9=(_0x351a8c=(_0x556bc2=this[_0x50cd72(0x2c2)][_0x50cd72(0x3da)](this['unitID'],_0x1ad03c))==null?void 0x0:_0x556bc2['name'])!=null?_0x351a8c:_0x50cd72(0x42b),_0x3b0064={'color':this[_0x50cd72(0x2d0)][_0x50cd72(0x1e9)](_0x1ad03c),'name':_0x74dbe9,'ranges':_0x52a4af},_0x11b045=this[_0x50cd72(0x1b3)];_0x11b045[_0x50cd72(0x24c)](_0x1ad03c,_0x3b0064),this[_0x50cd72(0x406)][_0x50cd72(0x43d)](_0x11b045);}[_0x369344(0x287)](_0x79def7){const _0x10fe60=_0x369344,{memberID:_0x386bb7}=_0x79def7[_0x10fe60(0x336)],_0x4c1bad=this['cursorInfo'];_0x4c1bad[_0x10fe60(0x358)](_0x386bb7),this[_0x10fe60(0x406)][_0x10fe60(0x43d)](_0x4c1bad);}[_0x369344(0x238)](){const _0x157d8c=_0x369344;var _0x13371b;if(this[_0x157d8c(0x2b2)]=!0x0,((_0x13371b=this[_0x157d8c(0x2dd)][_0x157d8c(0x3a6)]())==null?void 0x0:_0x13371b['getUnitId']())!==this[_0x157d8c(0x3cc)])return;const _0x253da7=this['_injector']['get'](_0x1c9a21)['getSelections'](),_0x8333c5=_0x253da7==null?void 0x0:_0x253da7[_0x157d8c(0x1b8)](_0x38b333);Array[_0x157d8c(0x15c)](_0x8333c5)&&_0x8333c5[_0x157d8c(0x3b6)]>0x0&&this[_0x157d8c(0x397)](_0x8333c5);}['_toggleOffline'](){const _0x457685=_0x369344;this[_0x457685(0x2b2)]=!0x1;}};ft=En([q(0x2,_0x3bdb53(_0x29e329)),q(0x3,_0x3bdb53(At)),q(0x4,_0x3bdb53(ee)),q(0x5,_0x3bdb53(Mt)),q(0x6,_0x5cdc22),q(0x7,_0x1e6754),q(0x8,_0x2e73f7)],ft);var Rn=(_0x192eec,_0x26c11f,_0x31bf08,_0x39fd7c)=>{const _0x439f72=_0x369344;for(var _0x2c9e5d=_0x26c11f,_0x4d3bb8=_0x192eec[_0x439f72(0x3b6)]-0x1,_0x5519de;_0x4d3bb8>=0x0;_0x4d3bb8--)(_0x5519de=_0x192eec[_0x4d3bb8])&&(_0x2c9e5d=_0x5519de(_0x2c9e5d)||_0x2c9e5d);return _0x2c9e5d;},st=(_0x317c8a,_0x1dbce4)=>(_0x42e36e,_0x456130)=>_0x1dbce4(_0x42e36e,_0x456130,_0x317c8a);let ue=class extends _0x1f6cf4{constructor(_0x1b1674,_0x28e790,_0x2d1590){const _0x6b0b9f=_0x369344;super(),l(this,_0x6b0b9f(0x224),new Map()),l(this,_0x6b0b9f(0x344),new _0x36360c()),(this[_0x6b0b9f(0x2dd)]=_0x1b1674,this['_injector']=_0x28e790,this[_0x6b0b9f(0x313)]=_0x2d1590,this[_0x6b0b9f(0x3e0)]());}[_0x369344(0x42d)](){const _0x468dc0=_0x369344;super[_0x468dc0(0x42d)](),this[_0x468dc0(0x344)]['complete'](),this[_0x468dc0(0x224)][_0x468dc0(0x33d)](_0x22daf1=>_0x22daf1[_0x468dc0(0x42d)]());}[_0x369344(0x2ef)](_0x49c5a3){const _0x3cb69d=_0x369344;return this[_0x3cb69d(0x224)][_0x3cb69d(0x282)](_0x49c5a3)?this[_0x3cb69d(0x224)][_0x3cb69d(0x19d)](_0x49c5a3)[_0x3cb69d(0x3e7)]:this[_0x3cb69d(0x344)][_0x3cb69d(0x2be)](_0xb07331(_0x564a13=>_0x564a13[_0x3cb69d(0x3cc)]===_0x49c5a3),_0x1148ff(_0x33e68e=>_0x33e68e[_0x3cb69d(0x3e7)]));}[_0x369344(0x3e0)](){const _0x4251ae=_0x369344;this[_0x4251ae(0x2dd)]['getTypeOfUnitAdded$'](_0x195e2d['UNIVER_SHEET'])['pipe'](_0x5f2af8(this[_0x4251ae(0x351)]))['subscribe'](async _0x4b416c=>{const _0x52edaa=_0x4251ae,_0x204112=_0x4b416c[_0x52edaa(0x2c0)](),_0x2e46cc=await this['_startSheetCollabCursor'](_0x204112);this[_0x52edaa(0x344)][_0x52edaa(0x43d)](_0x2e46cc),this[_0x52edaa(0x224)][_0x52edaa(0x24c)](_0x204112,_0x2e46cc);}),this['_univerInstanceService'][_0x4251ae(0x28b)](_0x195e2d['UNIVER_DOC'])[_0x4251ae(0x2be)](_0x5f2af8(this[_0x4251ae(0x351)]))[_0x4251ae(0x2be)](_0xb07331(_0x3a2f49=>!_0x3a2f49[_0x4251ae(0x2c0)]()[_0x4251ae(0x38b)]('__')))[_0x4251ae(0x3c2)](async _0x3b5f1b=>{const _0x59f4d2=_0x4251ae,_0x4fc55d=_0x3b5f1b[_0x59f4d2(0x2c0)](),_0x21c22a=await this[_0x59f4d2(0x34f)](_0x4fc55d);this['_entityInit$']['next'](_0x21c22a),this[_0x59f4d2(0x224)][_0x59f4d2(0x24c)](_0x4fc55d,_0x21c22a);}),_0x4de0cc(this['_univerInstanceService'][_0x4251ae(0x3fb)](_0x195e2d[_0x4251ae(0x3c6)]),this[_0x4251ae(0x2dd)][_0x4251ae(0x3fb)](_0x195e2d['UNIVER_SHEET']))[_0x4251ae(0x2be)](_0x5f2af8(this[_0x4251ae(0x351)]))[_0x4251ae(0x3c2)](_0x5eff81=>{const _0x2738e3=_0x4251ae,_0x3903ad=_0x5eff81['getUnitId'](),_0x54bb28=this[_0x2738e3(0x224)][_0x2738e3(0x19d)](_0x3903ad);_0x54bb28&&(_0x54bb28[_0x2738e3(0x42d)](),this[_0x2738e3(0x224)][_0x2738e3(0x358)](_0x3903ad));});}async[_0x369344(0x40f)](_0x3d0a51){const _0x56cf63=_0x369344,_0x4f9b69=await this[_0x56cf63(0x313)][_0x56cf63(0x24d)](_0x3d0a51),_0xe610ba=this['_injector'][_0x56cf63(0x191)](St,_0x3d0a51,_0x4f9b69);return _0xe610ba[_0x56cf63(0x3ac)](),_0xe610ba;}async[_0x369344(0x34f)](_0x436205){const _0x4fa800=_0x369344,_0x219e86=await this['_collabSessionService'][_0x4fa800(0x24d)](_0x436205),_0x2dfad3=this[_0x4fa800(0x2e0)][_0x4fa800(0x191)](ft,_0x436205,_0x219e86);return _0x2dfad3[_0x4fa800(0x3ac)](),_0x2dfad3;}};ue=Rn([_0x3cfe98(_0x41440a[_0x369344(0x349)],ue),st(0x0,_0x1e6754),st(0x1,_0x3bdb53(_0x29e329)),st(0x2,_0x3bdb53(Oe))],ue);const ye=0x14,zt=0xc8,it=0x4,Tn=0x5;function On(_0x2f6903,_0x10ca30){const _0x42e845=_0x369344;let {radius:_0x173398,width:_0x47e054,height:_0x1fbc33}=_0x10ca30;_0x173398=_0x173398!=null?_0x173398:0x0,_0x47e054=_0x47e054!=null?_0x47e054:0x1e,_0x1fbc33=_0x1fbc33!=null?_0x1fbc33:0x1e;let _0x33b5fd=0x0,_0x6176cc=0x0,_0x3ae1ab=0x0;_0x33b5fd=_0x6176cc=_0x3ae1ab=Math[_0x42e845(0x3bf)](_0x173398,_0x47e054/0x2,_0x1fbc33/0x2),_0x2f6903[_0x42e845(0x169)](),_0x2f6903['moveTo'](_0x33b5fd,0x0),_0x2f6903[_0x42e845(0x1a7)](_0x47e054-_0x6176cc,0x0),_0x2f6903[_0x42e845(0x424)](_0x47e054-_0x6176cc,_0x6176cc,_0x6176cc,Math['PI']*0x3/0x2,0x0,!0x1),_0x2f6903[_0x42e845(0x1a7)](_0x47e054,_0x1fbc33-_0x3ae1ab),_0x2f6903[_0x42e845(0x424)](_0x47e054-_0x3ae1ab,_0x1fbc33-_0x3ae1ab,_0x3ae1ab,0x0,Math['PI']/0x2,!0x1),_0x2f6903[_0x42e845(0x1a7)](0x0,_0x1fbc33),_0x2f6903[_0x42e845(0x1a7)](0x0,_0x33b5fd),_0x2f6903[_0x42e845(0x424)](_0x33b5fd,_0x33b5fd,_0x33b5fd,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2f6903['closePath'](),_0x10ca30[_0x42e845(0x263)]&&(_0x2f6903[_0x42e845(0x370)](),_0x2f6903[_0x42e845(0x31f)]=_0x10ca30[_0x42e845(0x263)],_0x10ca30[_0x42e845(0x17f)]==='evenodd'?_0x2f6903[_0x42e845(0x263)]('evenodd'):_0x2f6903[_0x42e845(0x263)](),_0x2f6903[_0x42e845(0x23d)]());}class qe extends _0x1377ce{constructor(_0xe4cb0a,_0x2a79ec){const _0x453503=_0x369344;super(_0xe4cb0a,_0x2a79ec),l(this,_0x453503(0x39e)),l(this,_0x453503(0x259)),(this[_0x453503(0x39e)]=_0x2a79ec==null?void 0x0:_0x2a79ec[_0x453503(0x39e)],this[_0x453503(0x259)]=_0x2a79ec==null?void 0x0:_0x2a79ec[_0x453503(0x259)]);}static[_0x369344(0x22d)](_0x580082,_0x4ad5f7){const _0x450abe=_0x369344,{text:_0x593375,color:_0x2f5454}=_0x4ad5f7;_0x580082[_0x450abe(0x370)](),_0x580082[_0x450abe(0x1a9)]=_0x450abe(0x3c3);const _0xfe7df6=_0x580082[_0x450abe(0x255)](_0x593375)['width'],_0x40dc20=Math[_0x450abe(0x3bf)](_0xfe7df6+0x2*it,zt);On(_0x580082,{'height':ye,'radius':0x4,'width':_0x40dc20,'fill':_0x2f5454,'evented':!0x1}),_0x580082[_0x450abe(0x31f)]=_0x450abe(0x277);const _0x1a0c82=it,_0x31a2cb=ye-Tn,_0x5d6ad2=zt-0x2*it;if(_0xfe7df6>_0x5d6ad2){let _0x1187b1='',_0x28bc8d=0x0;for(const _0x209caf of _0x593375){const _0x15d3f8=_0x580082[_0x450abe(0x255)](_0x209caf)[_0x450abe(0x325)];if(_0x28bc8d+_0x15d3f8<=_0x5d6ad2-_0x580082['measureText']('...')['width'])_0x1187b1+=_0x209caf,_0x28bc8d+=_0x15d3f8;else{_0x1187b1+=_0x450abe(0x26a);break;}}_0x580082[_0x450abe(0x1d0)](_0x1187b1,_0x1a0c82,_0x31a2cb);}else _0x580082[_0x450abe(0x1d0)](_0x593375,_0x1a0c82,_0x31a2cb);_0x580082[_0x450abe(0x23d)]();}['_draw'](_0x2c0fc2){const _0x21aa60=_0x369344;qe[_0x21aa60(0x22d)](_0x2c0fc2,this);}}const Dn=0x1,yn=1.5;class Nn extends _0x1377ce{constructor(_0x5e3a87,_0x1608b4){const _0x272060=_0x369344;super(_0x5e3a87,_0x1608b4),l(this,_0x272060(0x3a7)),l(this,_0x272060(0x27d),!0x1),l(this,_0x272060(0x1ce)),l(this,_0x272060(0x324),''),l(this,_0x272060(0x405),_0x272060(0x1d2)),(_0x1608b4&&this['setShapeProps'](_0x1608b4),this[_0x272060(0x3dc)][_0x272060(0x1a0)](()=>this[_0x272060(0x163)]({'hovered':!0x0})),this[_0x272060(0x316)][_0x272060(0x1a0)](()=>this[_0x272060(0x163)]({'hovered':!0x1})));}[_0x369344(0x163)](_0x502299){const _0x3d3c92=_0x369344;var _0x133422,_0x6ba783,_0x2253f5,_0xc48eb6,_0x17ae72;this[_0x3d3c92(0x3a7)]=(_0x133422=_0x502299[_0x3d3c92(0x39e)])!=null?_0x133422:this[_0x3d3c92(0x3a7)],this[_0x3d3c92(0x27d)]=(_0x6ba783=_0x502299[_0x3d3c92(0x3f6)])!=null?_0x6ba783:this[_0x3d3c92(0x27d)],this[_0x3d3c92(0x1ce)]=(_0x2253f5=_0x502299['range'])!=null?_0x2253f5:this['_range'],this['_name']=(_0xc48eb6=_0x502299['name'])!=null?_0xc48eb6:this[_0x3d3c92(0x324)],this[_0x3d3c92(0x405)]=(_0x17ae72=_0x502299[_0x3d3c92(0x17d)])!=null?_0x17ae72:this[_0x3d3c92(0x405)],this[_0x3d3c92(0x3ca)]({'width':_0x502299['width'],'height':_0x502299[_0x3d3c92(0x211)]});}[_0x369344(0x186)](_0x4eca3a){const _0x1105f2=_0x369344,{row:_0x2564e1,column:_0x4ee300}=_0x4eca3a;if(_0x2564e1>=this[_0x1105f2(0x1ce)]['startRow']&&_0x2564e1<=this['_range'][_0x1105f2(0x1fc)]&&_0x4ee300>=this[_0x1105f2(0x1ce)][_0x1105f2(0x213)]&&_0x4ee300<=this[_0x1105f2(0x1ce)][_0x1105f2(0x27c)]){this[_0x1105f2(0x163)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x369344(0x1c0)](_0xf00480){return!0x1;}[_0x369344(0x168)](_0x2821ec){const _0x3bb695=_0x369344;_0x8391c2['drawWith'](_0x2821ec,{'width':this[_0x3bb695(0x325)],'height':this['height'],'strokeWidth':yn,'stroke':this[_0x3bb695(0x3a7)],'evented':!0x1}),this[_0x3bb695(0x27d)]&&(_0x2821ec[_0x3bb695(0x370)](),_0x2821ec[_0x3bb695(0x2c4)](0x1,0x0,0x0,0x1,this[_0x3bb695(0x325)],this[_0x3bb695(0x405)]===_0x3bb695(0x199)?0x0:-ye),qe[_0x3bb695(0x22d)](_0x2821ec,{'text':this[_0x3bb695(0x324)],'color':this[_0x3bb695(0x3a7)]}),_0x2821ec[_0x3bb695(0x23d)]());}}var wn=(_0x37a99a,_0x559044,_0x2a5cf5,_0x3375e5)=>{for(var _0x23e05c=_0x559044,_0x4056d6=_0x37a99a['length']-0x1,_0x47a015;_0x4056d6>=0x0;_0x4056d6--)(_0x47a015=_0x37a99a[_0x4056d6])&&(_0x23e05c=_0x47a015(_0x23e05c)||_0x23e05c);return _0x23e05c;},pe=(_0x35e415,_0x1d1e39)=>(_0x1e51db,_0x1099fa)=>_0x1d1e39(_0x1e51db,_0x1099fa,_0x35e415);let $e=class extends _0x1f6cf4{constructor(_0x5b09e0,_0x455db5,_0x2b31cf,_0x508c39,_0x230be0){const _0x38c4b3=_0x369344;super(),l(this,_0x38c4b3(0x2dc),new Set()),l(this,_0x38c4b3(0x196),null),(this[_0x38c4b3(0x315)]=_0x5b09e0,this[_0x38c4b3(0x2dd)]=_0x455db5,this[_0x38c4b3(0x2cb)]=_0x2b31cf,this[_0x38c4b3(0x3c7)]=_0x508c39,this[_0x38c4b3(0x3e8)]=_0x230be0,this[_0x38c4b3(0x3e0)]());}['_init'](){const _0x231a08=_0x369344;this[_0x231a08(0x3c7)][_0x231a08(0x200)][_0x231a08(0x2be)](_0x46656a(this[_0x231a08(0x351)]),_0x2b4de3(_0x514f17=>{const _0x39785f=_0x231a08;if(_0x514f17){const _0x5433ec=_0x514f17[_0x39785f(0x421)];return _0xf0253e(this[_0x39785f(0x315)][_0x39785f(0x2ef)](_0x514f17[_0x39785f(0x3cd)]),this[_0x39785f(0x3e8)][_0x39785f(0x1a6)])[_0x39785f(0x2be)](_0x19010f(([_0x5b65ff,_0x4d5849])=>{const _0x49d51a=_0x39785f,_0x3e2aac=new Map();return _0x5b65ff[_0x49d51a(0x33d)]((_0x977884,_0x1f9ba7)=>{const _0x36bbe0=_0x49d51a;if(_0x977884['sheetID']===_0x5433ec){const _0x579cc3={..._0x977884};_0x579cc3[_0x36bbe0(0x39e)]=_0x4d5849[_0x977884[_0x36bbe0(0x39e)]],_0x3e2aac[_0x36bbe0(0x24c)](_0x1f9ba7,_0x579cc3);}}),{'skeleton':_0x514f17,'cursors':_0x3e2aac};}));}return _0x169b33({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x49c3f8,cursors:_0x299eb0})=>{const _0x1092d6=_0x231a08;this[_0x1092d6(0x417)](),_0x49c3f8&&this[_0x1092d6(0x402)](_0x49c3f8,_0x299eb0);}),this[_0x231a08(0x3c7)][_0x231a08(0x200)][_0x231a08(0x3c2)](_0xaeb709=>{const _0x16eb70=_0x231a08;if(_0xaeb709==null)return;const {unitId:_0x9d87d4,skeleton:_0xe2881f}=_0xaeb709,_0x405a4e=this[_0x16eb70(0x2cb)][_0x16eb70(0x241)](_0x9d87d4);if(_0x405a4e==null)return;const {scene:_0x1dba74}=_0x405a4e;_0x1dba74[_0x16eb70(0x21f)][_0x16eb70(0x1a0)](_0x507660(_0x47f5cf=>{const _0x256559=_0x16eb70;var _0x34ddfd,_0xa14a93;const {offsetX:_0x6f0d77,offsetY:_0x2b911d}=_0x47f5cf,{x:_0x5e1d71,y:_0x35cdb6}=_0x1dba74[_0x256559(0x165)](_0x2ce8cf[_0x256559(0x223)]([_0x6f0d77,_0x2b911d])),{scaleX:_0x302e4f,scaleY:_0x5eb007}=_0x1dba74[_0x256559(0x21e)](),_0x2682af=_0x1dba74[_0x256559(0x45d)](_0x4b02ee[_0x256559(0x2f9)]),_0x44ee09=_0x1dba74[_0x256559(0x36a)](_0x2ce8cf['FromArray']([_0x5e1d71,_0x35cdb6]),_0x2682af),_0x3ae8e3=_0xe2881f['getCellPositionByOffset'](_0x6f0d77,_0x2b911d,_0x302e4f,_0x5eb007,_0x44ee09);((_0x34ddfd=this[_0x256559(0x196)])==null?void 0x0:_0x34ddfd['column'])===_0x3ae8e3['column']&&((_0xa14a93=this['_lastPointer'])==null?void 0x0:_0xa14a93[_0x256559(0x2ed)])===_0x3ae8e3[_0x256559(0x2ed)]||this[_0x256559(0x2dc)]['forEach'](_0xcfa16d=>{const _0x5840a7=_0x256559;_0xcfa16d[_0x5840a7(0x186)](_0x3ae8e3);});},0x64));});}['_updateCollabCursors'](_0x3e74fc,_0x3d9c79){const _0x57b5ca=_0x369344;var _0x2237d5;const _0x47404a=(_0x2237d5=this[_0x57b5ca(0x3c7)][_0x57b5ca(0x339)]())==null?void 0x0:_0x2237d5[_0x57b5ca(0x180)];if(!_0x47404a)return;const _0x51cee0=this[_0x57b5ca(0x412)]();if(!_0x51cee0)return;this[_0x57b5ca(0x2dc)][_0x57b5ca(0x33d)](_0x2e89d4=>{const _0x3578c0=_0x57b5ca;_0x2e89d4[_0x3578c0(0x16d)]();});const {scene:_0x4e6adf}=_0x51cee0,_0x9e16f4=Mn(Array[_0x57b5ca(0x201)](_0x3d9c79[_0x57b5ca(0x400)]()))[_0x57b5ca(0x1b8)](_0x364e69=>{const _0x55d652=_0x57b5ca,{color:_0x4d0f87,range:_0x3d509c,name:_0x240dce,selection:_0x41d47d,sheetID:_0x303d70}=_0x364e69,{startColumn:_0x21a9ee,startRow:_0x2c7d79,endColumn:_0x127ed9,endRow:_0x2025d1}=_0x3d509c,_0x474a84=_0x24e2be(_0x2c7d79,_0x21a9ee,_0x4e6adf,_0x47404a),_0x15642d=_0x24e2be(_0x2025d1,_0x127ed9,_0x4e6adf,_0x47404a),{columnHeaderHeightAndMarginTop:_0x5c7e0e}=_0x47404a,{startX:_0x159da2,startY:_0x45b2fa}=_0x474a84,{endX:_0x37d42b,endY:_0x1b9d60}=_0x15642d,_0x517293=_0x37d42b-_0x159da2,_0x291172=_0x1b9d60-_0x45b2fa,_0x2aafb9={'labelPosition':_0x45b2fa-_0x5c7e0e>=ye?_0x55d652(0x1d2):_0x55d652(0x199),'sheetID':_0x303d70,'range':_0x3d509c,'color':_0x4d0f87,'name':_0x240dce,'selection':_0x41d47d,'left':_0x159da2,'top':_0x45b2fa,'width':_0x517293,'height':_0x291172,'evented':!0x1};return new Nn(_0x240dce,_0x2aafb9);});_0x4e6adf[_0x57b5ca(0x3bc)](_0x9e16f4,Dn),this[_0x57b5ca(0x2dc)]=new Set(_0x9e16f4);}[_0x369344(0x417)](){const _0x2799fc=_0x369344;var _0x1b7be5;(_0x1b7be5=this[_0x2799fc(0x2dc)])==null||_0x1b7be5[_0x2799fc(0x33d)](_0x584a19=>_0x584a19[_0x2799fc(0x42d)]());}[_0x369344(0x412)](){const _0x3f26dd=_0x369344;return _0x1d153d(this[_0x3f26dd(0x2dd)],this[_0x3f26dd(0x2cb)]);}};$e=wn([_0x3cfe98(_0x41440a[_0x369344(0x3d8)],$e),pe(0x0,_0x3bdb53(ue)),pe(0x1,_0x1e6754),pe(0x2,_0x12e984),pe(0x3,_0x3bdb53(_0xbbb3e5)),pe(0x4,_0x3bdb53(_0x1851c3))],$e);function Mn(_0x38bd03){const _0x45d1d9=_0x369344,_0x123f7c=new Map();return _0x38bd03[_0x45d1d9(0x33d)](_0x3a1c01=>{const _0x19f8a2=_0x45d1d9;if(_0x123f7c[_0x19f8a2(0x282)](_0x3a1c01[_0x19f8a2(0x43f)])){const _0xb64899=_0x123f7c[_0x19f8a2(0x19d)](_0x3a1c01[_0x19f8a2(0x43f)]);_0xb64899[_0x19f8a2(0x458)]+=',\x20'+_0x3a1c01[_0x19f8a2(0x458)];}else _0x123f7c['set'](_0x3a1c01[_0x19f8a2(0x43f)],_0x3a1c01);}),Array[_0x45d1d9(0x201)](_0x123f7c[_0x45d1d9(0x400)]());}var A=function(){const _0x211386=_0x369344;return A=Object[_0x211386(0x2f8)]||function(_0x7ed76a){const _0xaadf6a=_0x211386;for(var _0x2cd1b3,_0x1e4568=0x1,_0x4a6996=arguments[_0xaadf6a(0x3b6)];_0x1e4568<_0x4a6996;_0x1e4568++){_0x2cd1b3=arguments[_0x1e4568];for(var _0x243a53 in _0x2cd1b3)Object[_0xaadf6a(0x195)][_0xaadf6a(0x2fe)][_0xaadf6a(0x311)](_0x2cd1b3,_0x243a53)&&(_0x7ed76a[_0x243a53]=_0x2cd1b3[_0x243a53]);}return _0x7ed76a;},A['apply'](this,arguments);},An=function(_0x3c2110,_0x2e372a){const _0x5c9846=_0x369344;var _0x4e37c1={};for(var _0x1fe0a9 in _0x3c2110)Object['prototype'][_0x5c9846(0x2fe)][_0x5c9846(0x311)](_0x3c2110,_0x1fe0a9)&&_0x2e372a[_0x5c9846(0x2de)](_0x1fe0a9)<0x0&&(_0x4e37c1[_0x1fe0a9]=_0x3c2110[_0x1fe0a9]);if(_0x3c2110!=null&&typeof Object[_0x5c9846(0x3a1)]==_0x5c9846(0x2fd)){for(var _0x1ef71a=0x0,_0x1fe0a9=Object['getOwnPropertySymbols'](_0x3c2110);_0x1ef71a<_0x1fe0a9[_0x5c9846(0x3b6)];_0x1ef71a++)_0x2e372a[_0x5c9846(0x2de)](_0x1fe0a9[_0x1ef71a])<0x0&&Object[_0x5c9846(0x195)][_0x5c9846(0x350)][_0x5c9846(0x311)](_0x3c2110,_0x1fe0a9[_0x1ef71a])&&(_0x4e37c1[_0x1fe0a9[_0x1ef71a]]=_0x3c2110[_0x1fe0a9[_0x1ef71a]]);}return _0x4e37c1;},Lt=_0x593069(function(_0x4703fa,_0x5dd841){const _0x7f834d=_0x369344;var _0x2eb4aa=_0x4703fa[_0x7f834d(0x162)],_0x4c48ce=_0x4703fa['id'],_0xf1c8e=_0x4703fa[_0x7f834d(0x376)],_0x56764d=_0x4703fa[_0x7f834d(0x39c)],_0x913148=An(_0x4703fa,[_0x7f834d(0x162),'id',_0x7f834d(0x376),_0x7f834d(0x39c)]),_0x49ba17=_0x7f834d(0x171)[_0x7f834d(0x444)](_0x4c48ce,'\x20')[_0x7f834d(0x444)](_0xf1c8e||'')['trim'](),_0x2cedb3=_0x49d57c('_'[_0x7f834d(0x444)](Pn()));return Ds(_0x2eb4aa,''['concat'](_0x4c48ce),{'defIds':_0x2eb4aa[_0x7f834d(0x205)],'idSuffix':_0x2cedb3[_0x7f834d(0x2eb)]},A({'ref':_0x5dd841,'className':_0x49ba17},_0x913148),_0x56764d);});function Ds(_0x45f009,_0x4149e6,_0x4bcc46,_0x2d96e4,_0x226906){const _0x721dd3=_0x369344;return _0x2a382f(_0x45f009[_0x721dd3(0x2a1)],A(A({'key':_0x4149e6},Ln(_0x45f009,_0x4bcc46,_0x226906)),_0x2d96e4),(Un(_0x45f009,_0x4bcc46)['children']||[])[_0x721dd3(0x1b8)](function(_0x5636bc,_0x1adda9){const _0x3152b9=_0x721dd3;return Ds(_0x5636bc,''[_0x3152b9(0x444)](_0x4149e6,'-')[_0x3152b9(0x444)](_0x45f009[_0x3152b9(0x2a1)],'-')[_0x3152b9(0x444)](_0x1adda9),_0x4bcc46,void 0x0,_0x226906);}));}function Ln(_0xd139b7,_0x35dd99,_0x5b3df0){const _0x5abfa5=_0x369344;var _0x3dd9d5=A({},_0xd139b7[_0x5abfa5(0x352)]);_0x5b3df0!=null&&_0x5b3df0[_0x5abfa5(0x413)]&&_0x3dd9d5[_0x5abfa5(0x263)]===_0x5abfa5(0x413)&&(_0x3dd9d5[_0x5abfa5(0x263)]=_0x5b3df0['colorChannel1']);var _0x369a6c=_0x35dd99[_0x5abfa5(0x205)];return!_0x369a6c||_0x369a6c[_0x5abfa5(0x3b6)]===0x0||(_0xd139b7[_0x5abfa5(0x2a1)]===_0x5abfa5(0x373)&&_0x3dd9d5[_0x5abfa5(0x1b5)]&&(_0x3dd9d5[_0x5abfa5(0x1b5)]=_0x3dd9d5['xlink:href']+_0x35dd99[_0x5abfa5(0x450)]),Object[_0x5abfa5(0x3b4)](_0x3dd9d5)[_0x5abfa5(0x33d)](function(_0x270040){const _0x370c14=_0x5abfa5;var _0x332b10=_0x270040[0x0],_0x504116=_0x270040[0x1];typeof _0x504116==_0x370c14(0x3ae)&&(_0x3dd9d5[_0x332b10]=_0x504116[_0x370c14(0x3a8)](/url\(#(.*)\)/,_0x370c14(0x18f)[_0x370c14(0x444)](_0x35dd99[_0x370c14(0x450)],')')));})),_0x3dd9d5;}function Un(_0x42f0cb,_0x38583a){const _0x36ad66=_0x369344;var _0x1abcfc,_0x1c6d78=_0x38583a[_0x36ad66(0x205)];return!_0x1c6d78||_0x1c6d78[_0x36ad66(0x3b6)]===0x0?_0x42f0cb:_0x42f0cb[_0x36ad66(0x2a1)]===_0x36ad66(0x3a4)&&(!((_0x1abcfc=_0x42f0cb['children'])===null||_0x1abcfc===void 0x0)&&_0x1abcfc[_0x36ad66(0x3b6)])?A(A({},_0x42f0cb),{'children':_0x42f0cb['children'][_0x36ad66(0x1b8)](function(_0x58f3eb){const _0x3bf194=_0x36ad66;return typeof _0x58f3eb['attrs']['id']==_0x3bf194(0x3ae)&&_0x1c6d78&&_0x1c6d78[_0x3bf194(0x2de)](_0x58f3eb[_0x3bf194(0x352)]['id'])>-0x1?A(A({},_0x58f3eb),{'attrs':A(A({},_0x58f3eb['attrs']),{'id':_0x58f3eb[_0x3bf194(0x352)]['id']+_0x38583a[_0x3bf194(0x450)]})}):_0x58f3eb;})}):_0x42f0cb;}function Pn(){const _0x258a04=_0x369344;return Math['random']()[_0x258a04(0x2fb)](0x24)[_0x258a04(0x262)](0x2,0x8);}Lt['displayName']=_0x369344(0x231);var kn={'tag':_0x369344(0x2e4),'attrs':{'fill':_0x369344(0x34c),'viewBox':_0x369344(0x1c2),'width':_0x369344(0x3d6),'height':_0x369344(0x3d6)},'children':[{'tag':'g','attrs':{'clipPath':_0x369344(0x294)},'children':[{'tag':_0x369344(0x236),'attrs':{'stroke':_0x369344(0x219),'d':_0x369344(0x42f),'strokeLinecap':_0x369344(0x208),'strokeLinejoin':_0x369344(0x208),'strokeWidth':1.2}}]},{'tag':_0x369344(0x3a4),'attrs':{},'children':[{'tag':_0x369344(0x319),'attrs':{'id':_0x369344(0x355)},'children':[{'tag':_0x369344(0x236),'attrs':{'fill':'#fff','d':_0x369344(0x26b)}}]}]}],'defIds':[_0x369344(0x355)]},ys=_0x593069(function(_0x34962b,_0x282fe5){const _0x3d0a1e=_0x369344;return _0x2a382f(Lt,Object[_0x3d0a1e(0x2f8)]({},_0x34962b,{'id':'off-line-single','ref':_0x282fe5,'icon':kn}));});ys[_0x369344(0x366)]=_0x369344(0x459);var $n={'tag':_0x369344(0x2e4),'attrs':{'fill':_0x369344(0x34c),'viewBox':_0x369344(0x37c),'width':_0x369344(0x3d6),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x369344(0x431)},'children':[{'tag':_0x369344(0x236),'attrs':{'stroke':_0x369344(0x219),'d':_0x369344(0x297),'strokeLinecap':_0x369344(0x208),'strokeLinejoin':_0x369344(0x208),'strokeWidth':1.2}}]},{'tag':_0x369344(0x3a4),'attrs':{},'children':[{'tag':_0x369344(0x319),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x369344(0x236),'attrs':{'fill':_0x369344(0x3ce),'d':'M0\x200H16V16H0z','transform':_0x369344(0x174)}}]}]}],'defIds':[_0x369344(0x374)]},Ns=_0x593069(function(_0x5c1220,_0x594d05){const _0x1c7cd8=_0x369344;return _0x2a382f(Lt,Object[_0x1c7cd8(0x2f8)]({},_0x5c1220,{'id':_0x1c7cd8(0x22a),'ref':_0x594d05,'icon':$n}));});Ns[_0x369344(0x366)]=_0x369344(0x194);const Hn='univer-online-status-icon',xn=_0x369344(0x1f2),jn=_0x369344(0x434),Fn=_0x369344(0x322),Vn=_0x369344(0x233),Ie={'onlineStatusIcon':Hn,'onlineStatusTitle':xn,'onlineStatus':jn,'online':Fn,'offline':Vn};function Bn(_0x44bd26){const _0x361688=_0x369344;switch(_0x44bd26){case y[_0x361688(0x37b)]:return _0x361688(0x464);case y['CONFLICT']:return _0x361688(0x2b5);case y[_0x361688(0x312)]:return _0x361688(0x2e5);case y[_0x361688(0x172)]:return _0x361688(0x46a);case y['PENDING']:case y[_0x361688(0x270)]:case y[_0x361688(0x3e3)]:return _0x361688(0x1af);case y[_0x361688(0x273)]:return _0x361688(0x2c9);}}function Wn(_0xa7afc6){const _0x1c0a54=_0x369344,{status$:_0x13ce16}=_0xa7afc6,_0x2f55e2=_0x39b1aa(_0x13ce16,y[_0x1c0a54(0x172)]),_0x401f9f=_0x2732fc(_0x122a5b),_0x4a404e=_0x2f55e2!==y['OFFLINE'],_0x18d2ff=_0x401f9f['t'](Bn(_0x2f55e2)),_0x436c0b=_0x65ec29(Ie[_0x1c0a54(0x42e)],{[Ie[_0x1c0a54(0x16e)]]:_0x4a404e,[Ie[_0x1c0a54(0x225)]]:!_0x4a404e}),_0x5d06ed=_0x4a404e?_0x11b04c['createElement'](Ns,null):_0x11b04c[_0x1c0a54(0x276)](ys,null);return _0x11b04c[_0x1c0a54(0x276)](_0x1c0a54(0x274),{'className':_0x436c0b},_0x11b04c[_0x1c0a54(0x276)](_0x1c0a54(0x274),{'className':Ie['onlineStatusIcon']},_0x5d06ed),_0x11b04c[_0x1c0a54(0x276)](_0x1c0a54(0x274),{'className':Ie['onlineStatusTitle']},_0x18d2ff));}var Gn=(_0x338b77,_0x3ea92a,_0x207875,_0x4fd8f2)=>{const _0x20ddf1=_0x369344;for(var _0x29e561=_0x3ea92a,_0x41af36=_0x338b77[_0x20ddf1(0x3b6)]-0x1,_0x14e499;_0x41af36>=0x0;_0x41af36--)(_0x14e499=_0x338b77[_0x41af36])&&(_0x29e561=_0x14e499(_0x29e561)||_0x29e561);return _0x29e561;},Le=(_0x584a6e,_0x501f3e)=>(_0x15b72a,_0x54c73a)=>_0x501f3e(_0x15b72a,_0x54c73a,_0x584a6e);let He=class extends _0x1bbf2c{constructor(_0x2fb394,_0x2f2321,_0x351eb4,_0x4a7268){const _0x35e8d4=_0x369344;super(),l(this,_0x35e8d4(0x2f3),new _0x2a5f89(y['NOT_COLLAB'])),(this['_univerInstanceService']=_0x2fb394,this[_0x35e8d4(0x3b0)]=_0x2f2321,this[_0x35e8d4(0x2e0)]=_0x351eb4,this['_collaborationController']=_0x4a7268,this[_0x35e8d4(0x2f2)](),this[_0x35e8d4(0x15a)]());}['_initStatusComponent'](){const _0x148576=_0x369344;this[_0x148576(0x1f9)](this[_0x148576(0x3b0)]['registerComponent'](_0x319785['HEADER_MENU'],()=>_0x3f045f(Yn({'status$':this[_0x148576(0x2f3)][_0x148576(0x36b)]()}),this[_0x148576(0x2e0)])));}['_initStatusListener'](){const _0x13c2cf=_0x369344;this['disposeWithMe'](_0xd3a753(this['_univerInstanceService']['focused$'][_0x13c2cf(0x2be)](_0x1148ff(()=>{const _0x3c7737=_0x13c2cf,_0x50c664=this[_0x3c7737(0x2dd)][_0x3c7737(0x3a6)]();return _0x50c664?this[_0x3c7737(0x29c)][_0x3c7737(0x3be)](_0x50c664[_0x3c7737(0x2c0)]()):_0x169b33(null);}),_0x1148ff(_0x1ab5d7=>_0x1ab5d7?_0x1ab5d7[_0x13c2cf(0x29e)]:_0x169b33(y[_0x13c2cf(0x172)])))['subscribe'](_0x20e576=>{const _0x1f731b=_0x13c2cf;this[_0x1f731b(0x2f3)][_0x1f731b(0x43d)](_0x20e576);})));}};He=Gn([_0x3cfe98(_0x41440a[_0x369344(0x349)],He),Le(0x0,_0x1e6754),Le(0x1,_0x482719),Le(0x2,_0x3bdb53(_0x29e329)),Le(0x3,_0x3bdb53(be))],He);function Yn(_0x32f350){const {status$:_0x42a260}=_0x32f350;return function(){const _0x54c351=_0xfefa;return _0x11b04c[_0x54c351(0x276)](Wn,{'status$':_0x42a260});};}const ws=_0x519219(_0x369344(0x2a7));var Kn=(_0x4529e5,_0x1b50d5,_0x301eef,_0x235202)=>{const _0x55112d=_0x369344;for(var _0x452111=_0x1b50d5,_0x4b7d06=_0x4529e5[_0x55112d(0x3b6)]-0x1,_0x536223;_0x4b7d06>=0x0;_0x4b7d06--)(_0x536223=_0x4529e5[_0x4b7d06])&&(_0x452111=_0x536223(_0x452111)||_0x452111);return _0x452111;},ce=(_0x4dd91b,_0x4a407e)=>(_0x39b6f3,_0x4e2e0b)=>_0x4a407e(_0x39b6f3,_0x4e2e0b,_0x4dd91b);let xe=class extends _0x1f6cf4{constructor(_0x3de08b,_0x5b7462,_0x260b29,_0x56b509,_0x156a75,_0xe0ef4c){const _0x5f4d75=_0x369344;super(),this[_0x5f4d75(0x3f2)]=_0x3de08b,this['_logService']=_0x5b7462,this[_0x5f4d75(0x367)]=_0x260b29,this[_0x5f4d75(0x2ca)]=_0x56b509,this[_0x5f4d75(0x18b)]=_0x156a75,_0xe0ef4c?_0xe0ef4c==null||_0xe0ef4c['whenReady']()[_0x5f4d75(0x267)](()=>this['_init']()):(this[_0x5f4d75(0x2d5)][_0x5f4d75(0x215)]('[DataLoaderController]',_0x5f4d75(0x435)),this['_init']());}async[_0x369344(0x3e0)](){const _0x535511=_0x369344,_0x5770bb=this[_0x535511(0x3f2)][_0x535511(0x164)]('unit'),_0x4274e5=this[_0x535511(0x3f2)][_0x535511(0x164)]('type');if(!_0x5770bb||!_0x4274e5){this[_0x535511(0x2d5)]['debug'](_0x535511(0x2b4),_0x535511(0x1b7));return;}switch(Number(_0x4274e5)){case H[_0x535511(0x38c)]:{const _0x1764c0=await this[_0x535511(0x310)](_0x5770bb);this[_0x535511(0x2c6)](_0x1764c0);break;}case H[_0x535511(0x3c6)]:{await this[_0x535511(0x218)](_0x5770bb);break;}default:{this[_0x535511(0x2d5)][_0x535511(0x284)](_0x535511(0x2b4),_0x535511(0x455));break;}}}async[_0x369344(0x2c6)](_0x2d11ea){const _0x1ae264=_0x369344;await this[_0x1ae264(0x1e0)](_0x2d11ea),_0x2d11ea[_0x1ae264(0x2d9)][_0x1ae264(0x2be)](_0x5f2af8(this[_0x1ae264(0x351)]))[_0x1ae264(0x3c2)](_0x1f20be=>{const _0x3b91c5=_0x1ae264;_0x1f20be&&this[_0x3b91c5(0x32c)](_0x1f20be);}),this[_0x1ae264(0x3f2)]['urlChange$'][_0x1ae264(0x2be)](_0x5f2af8(this['dispose$']))[_0x1ae264(0x3c2)](()=>this[_0x1ae264(0x1e0)](_0x2d11ea));}['_updateURLWithCurrentState'](_0x237bc4,_0x53234f=!0x1){const _0x1d4970=_0x369344,_0x3209ed=this[_0x1d4970(0x3f2)][_0x1d4970(0x164)](_0x1d4970(0x1b0));_0x237bc4['getSheetId']()!==_0x3209ed&&this['_urlService']['setParam'](_0x1d4970(0x1b0),_0x237bc4['getSheetId'](),_0x53234f);}async[_0x369344(0x1e0)](_0x20cc27){const _0x1e0416=_0x369344,_0x3c1111=this['_urlService'][_0x1e0416(0x164)](_0x1e0416(0x1b0));if(!_0x3c1111||!_0x20cc27['getSheetBySheetId'](_0x3c1111)){this[_0x1e0416(0x32c)](_0x20cc27[_0x1e0416(0x28c)](),!0x0);return;}_0x20cc27[_0x1e0416(0x28c)]()[_0x1e0416(0x30e)]()!==_0x3c1111&&await this['_commandService'][_0x1e0416(0x2bb)](_0x36e21d['id'],{'unitId':_0x20cc27[_0x1e0416(0x2c0)](),'subUnitId':_0x3c1111});}async[_0x369344(0x310)](_0x42829a){const _0x5092ce=_0x369344;let _0x520a89=0x0;const _0x4291f3=await this[_0x5092ce(0x2ca)][_0x5092ce(0x1dd)](_0x42829a);return _0x4291f3&&(_0x4291f3['awaitingChangeset']||_0x4291f3[_0x5092ce(0x2e9)][_0x5092ce(0x3b6)]!==0x0)&&(_0x520a89=_0x4291f3[_0x5092ce(0x362)]),_0x520a89===0x0&&this[_0x5092ce(0x2d5)][_0x5092ce(0x215)](_0x5092ce(0x2b4),_0x5092ce(0x46b)),this[_0x5092ce(0x18b)][_0x5092ce(0x448)](_0x42829a,_0x520a89);}async[_0x369344(0x218)](_0x37065c){const _0x3e9c27=_0x369344;let _0x487b3d=0x0;const _0x486a40=await this[_0x3e9c27(0x2ca)][_0x3e9c27(0x1dd)](_0x37065c);return _0x486a40&&(_0x486a40['awaitingChangeset']||_0x486a40[_0x3e9c27(0x2e9)]['length']!==0x0)&&(_0x487b3d=_0x486a40['rev']),_0x487b3d===0x0&&this[_0x3e9c27(0x2d5)][_0x3e9c27(0x215)](_0x3e9c27(0x2b4),_0x3e9c27(0x46b)),this[_0x3e9c27(0x18b)][_0x3e9c27(0x372)](_0x37065c,_0x487b3d);}};xe=Kn([_0x3cfe98(_0x41440a[_0x369344(0x349)],xe),ce(0x0,ws),ce(0x1,_0x5e199c),ce(0x2,_0x2e73f7),ce(0x3,_0x3bdb53(O)),ce(0x4,_0x3bdb53(_0x557428)),ce(0x5,_0x4447c0(_0x365c6e))],xe);var Xn=(_0x1379a2,_0x20787e,_0x347de9,_0x9a22e6)=>{const _0x64d37a=_0x369344;for(var _0x597b39=_0x20787e,_0x3a4ac0=_0x1379a2[_0x64d37a(0x3b6)]-0x1,_0xc866d5;_0x3a4ac0>=0x0;_0x3a4ac0--)(_0xc866d5=_0x1379a2[_0x3a4ac0])&&(_0x597b39=_0xc866d5(_0x597b39)||_0x597b39);return _0x597b39;},qt=(_0x11eaee,_0x5945a7)=>(_0x582790,_0x469ff2)=>_0x5945a7(_0x582790,_0x469ff2,_0x11eaee);const Jn=_0x369344(0x393),zn=_0x369344(0x1ea);let je=class extends _0x1bbf2c{constructor(_0x2dee64,_0x49dba5){const _0x4fd6fe=_0x369344;super(),this[_0x4fd6fe(0x2dd)]=_0x2dee64,this['_configService']=_0x49dba5,this['_init']();}[_0x369344(0x3e0)](){const _0x33f956=_0x369344;this[_0x33f956(0x1f9)](_0xd3a753(this['_univerInstanceService'][_0x33f956(0x1dc)][_0x33f956(0x3c2)](()=>{const _0xd6832d=_0x33f956;var _0x4ea106;const _0x460b4=this['_univerInstanceService'][_0xd6832d(0x3a6)]();let _0x515a57=(_0x4ea106=this[_0xd6832d(0x3f1)][_0xd6832d(0x306)](Jn))!=null?_0x4ea106:zn;_0x460b4 instanceof _0x261fbb&&(_0x515a57=_0x460b4['name']),document['title']=_0x515a57;})));}};je=Xn([_0x3cfe98(_0x41440a[_0x369344(0x29b)],je),qt(0x0,_0x1e6754),qt(0x1,_0xcb4dc7)],je);var qn=(_0x2447fe,_0x4a0dc1,_0x298cc4,_0x396a2a)=>{const _0x31c50e=_0x369344;for(var _0x247dfa=_0x4a0dc1,_0x1c3c33=_0x2447fe[_0x31c50e(0x3b6)]-0x1,_0x32ed77;_0x1c3c33>=0x0;_0x1c3c33--)(_0x32ed77=_0x2447fe[_0x1c3c33])&&(_0x247dfa=_0x32ed77(_0x247dfa)||_0x247dfa);return _0x247dfa;},Zt=(_0x32f7b0,_0x5449f9)=>(_0x324581,_0x3df20c)=>_0x5449f9(_0x324581,_0x3df20c,_0x32f7b0);const Zn=_0x369344(0x425),Qn=_0x369344(0x314);let vt=class{constructor(_0xdf1e52,_0x77ae4f){const _0x479ce4=_0x369344;this[_0x479ce4(0x3f1)]=_0xdf1e52,this[_0x479ce4(0x293)]=_0x77ae4f;}async['getUnitOnRev'](_0x29510b,_0x5c80ae){const _0xab904f=_0x369344;var _0x28ff9e;const {unitID:_0x38cc78,type:_0x679a28,revision:_0x320010=0x0}=_0x5c80ae,_0x22d487=this[_0xab904f(0x1cc)]()+'/'+_0x679a28+_0xab904f(0x3c1)+_0x38cc78+_0xab904f(0x20a)+(_0x320010===0x1?0x0:_0x320010),_0x2ec6e1=(await this[_0xab904f(0x293)][_0xab904f(0x19d)](_0x22d487))[_0xab904f(0x210)],_0x49c40a=(_0x28ff9e=_0x2ec6e1['snapshot'])==null?void 0x0:_0x28ff9e[_0xab904f(0x40c)];if(_0x49c40a){const _0x1ae774=_0x49c40a==null?void 0x0:_0x49c40a[_0xab904f(0x31a)],_0x2a23d5=_0x5a0fb1[_0xab904f(0x391)](_0x15cbc3(_0x1ae774));_0x49c40a[_0xab904f(0x31a)]=_0x2a23d5,Object[_0xab904f(0x3b4)](_0x49c40a['sheets'])[_0xab904f(0x33d)](([,_0x18b2ba])=>{const _0x36c66a=_0xab904f,_0x107a3a=_0x18b2ba[_0x36c66a(0x31a)],_0x598944=_0x5a0fb1[_0x36c66a(0x391)](_0x15cbc3(_0x107a3a));_0x18b2ba[_0x36c66a(0x31a)]=_0x598944;});}return _0x2ec6e1;}async[_0x369344(0x404)](_0x798110,_0xdb7a8b){const _0x20f156=_0x369344,{unitID:_0xdbca20,type:_0x5625a0,blockID:_0x49f3bf}=_0xdb7a8b,_0x107a27=this['_getAPIPrefixPath']()+'/'+_0x5625a0+_0x20f156(0x3c1)+_0xdbca20+_0x20f156(0x17b)+_0x49f3bf;return(await this[_0x20f156(0x293)][_0x20f156(0x19d)](_0x107a27))['body'];}async[_0x369344(0x452)](_0x4bdf9b,_0x3ce202){const _0x5884c1=_0x369344,{unitID:_0x3bcc76,type:_0x2900ae,from:_0x36860e,to:_0x4ff86e}=_0x3ce202,_0x4ef8c1=this[_0x5884c1(0x1cc)]()+'/'+_0x2900ae+_0x5884c1(0x3c1)+_0x3bcc76+_0x5884c1(0x31c)+_0x36860e+'&to='+_0x4ff86e;return(await this[_0x5884c1(0x293)][_0x5884c1(0x19d)](_0x4ef8c1))[_0x5884c1(0x210)];}[_0x369344(0x1cc)](){const _0x2c5d01=_0x369344;var _0x37706b;return(_0x37706b=this['_configService'][_0x2c5d01(0x306)](Zn))!=null?_0x37706b:Qn;}async[_0x369344(0x29a)](_0x8dd882,_0x12a53c){const _0x14e4fe=_0x369344,_0xa30b73='/universer-api/snapshot/'+_0x12a53c[_0x14e4fe(0x2f5)]+_0x14e4fe(0x3c1)+_0x12a53c[_0x14e4fe(0x3cc)]+_0x14e4fe(0x243);return(await this[_0x14e4fe(0x293)][_0x14e4fe(0x19d)](_0xa30b73,{'params':{'resourceId':JSON[_0x14e4fe(0x183)](_0x12a53c[_0x14e4fe(0x177)])}}))[_0x14e4fe(0x210)];}[_0x369344(0x1be)](){const _0x549dd5=_0x369344;throw new Error(_0x549dd5(0x403));}['saveSheetBlock'](){const _0x3fdd98=_0x369344;throw new Error(_0x3fdd98(0x403));}['saveChangeset'](){const _0x5f5b44=_0x369344;throw new Error(_0x5f5b44(0x403));}};vt=qn([Zt(0x0,_0xcb4dc7),Zt(0x1,_0x3bdb53(_0xe9c2a2))],vt);var er=(_0x10de0f,_0x163f43,_0x1b56ac,_0x29a852)=>{const _0x1060fe=_0x369344;for(var _0x2552f2=_0x163f43,_0x361da3=_0x10de0f[_0x1060fe(0x3b6)]-0x1,_0x1517aa;_0x361da3>=0x0;_0x361da3--)(_0x1517aa=_0x10de0f[_0x361da3])&&(_0x2552f2=_0x1517aa(_0x2552f2)||_0x2552f2);return _0x2552f2;},Ee=(_0x37af9d,_0x64890)=>(_0x221c69,_0x53ee76)=>_0x64890(_0x221c69,_0x53ee76,_0x37af9d);let pt=class extends _0x26b2de{constructor(_0x2c2310,_0x2000c4,_0x4c1fe7,_0x195109,_0x42ff9c){const _0x1ea004=_0x369344;super(_0x2c2310,_0x2000c4,_0x4c1fe7),this[_0x1ea004(0x27b)]=_0x195109,this[_0x1ea004(0x2d5)]=_0x42ff9c;}[_0x369344(0x394)](_0x62436a,_0x888855){const _0x3078f1=_0x369344,_0x5e5cf9=this['_getUndoStack'](_0x62436a);if(_0x5e5cf9)try{const _0x30d128=this['_transformStack'](_0x5e5cf9,_0x888855);this[_0x3078f1(0x19b)](_0x62436a,_0x30d128);}catch(_0x6db8e7){this[_0x3078f1(0x2d5)][_0x3078f1(0x284)](_0x3078f1(0x34d),_0x6db8e7),this['_clearUndo'](_0x62436a);}const _0x4f57ab=this[_0x3078f1(0x226)](_0x62436a);if(_0x4f57ab)try{const _0x467725=this['_transformStack'](_0x4f57ab,_0x888855);this['_substituteRedoStack'](_0x62436a,_0x467725);}catch(_0x5c0a68){this[_0x3078f1(0x2d5)][_0x3078f1(0x284)](_0x5c0a68),this[_0x3078f1(0x176)](_0x62436a);}}[_0x369344(0x18e)](_0xd547da){const _0x203151=_0x369344,_0x367e75=this[_0x203151(0x15d)](_0xd547da);_0x367e75&&(_0x367e75['length']=0x0,this[_0x203151(0x43e)]());}[_0x369344(0x176)](_0x5dbb88){const _0x2efe92=_0x369344,_0x176738=this['_getRedoStack'](_0x5dbb88);_0x176738&&(_0x176738[_0x2efe92(0x3b6)]=0x0,this[_0x2efe92(0x43e)]());}['_substituteUndoStack'](_0x280fbc,_0x4c495a){const _0x1c5802=_0x369344;this[_0x1c5802(0x377)][_0x1c5802(0x24c)](_0x280fbc,_0x4c495a),this[_0x1c5802(0x43e)]();}[_0x369344(0x3d1)](_0x1e72f8,_0x599921){const _0x41b32f=_0x369344;this[_0x41b32f(0x3c5)]['set'](_0x1e72f8,_0x599921),this[_0x41b32f(0x43e)]();}[_0x369344(0x230)](_0xcb02ca,_0x2a94f9){const _0x22772a=_0x369344,_0x3e6f15=[];let _0x403772=_0x2a94f9,_0x190653=_0x2a94f9;for(let _0x2471a3=_0xcb02ca['length']-0x1;_0x2471a3>=0x0;_0x2471a3--){const {unitID:_0x3eadbc,undoMutations:_0x596d87,redoMutations:_0x143266}=_0xcb02ca[_0x2471a3],_0x3cb12b=this[_0x22772a(0x27b)][_0x22772a(0x46d)](_0x403772,_0x596d87),_0xe02718=this['_transformService']['transformMutationsWithChangeset'](_0x190653,_0x143266);if(_0x5c914b(_0x3cb12b)||_0x5c914b(_0xe02718)){this[_0x22772a(0x2d5)][_0x22772a(0x284)](_0x22772a(0x34d),_0x22772a(0x2a4),_0x3cb12b,_0xe02718);break;}_0x403772=_0x3cb12b[_0x22772a(0x37e)],_0x190653=_0xe02718['c1Prime'],_0x3e6f15[_0x22772a(0x288)]({'unitID':_0x3eadbc,'undoMutations':_0x3cb12b[_0x22772a(0x422)],'redoMutations':_0xe02718[_0x22772a(0x422)]});}return _0x3e6f15['reverse']();}};pt=er([Ee(0x0,_0x1e6754),Ee(0x1,_0x2e73f7),Ee(0x2,_0x3daa7a),Ee(0x3,_0x5cdc22),Ee(0x4,_0x5e199c)],pt);class tr extends _0x1f6cf4{constructor(){const _0x320a26=_0x369344;super(),l(this,_0x320a26(0x281)),this['urlChange$']=_0x190c51(window,_0x320a26(0x253))[_0x320a26(0x2be)](_0x5f2af8(this['dispose$']),_0x2d5bca(0x1),_0x41fdc8(void 0x0));}[_0x369344(0x202)](_0x53bd8c,_0x1a557c,_0x2609d6=!0x1){const _0xc38a2d=_0x369344,_0x3d07e5=new URL(window[_0xc38a2d(0x419)][_0xc38a2d(0x45e)]);_0x3d07e5[_0xc38a2d(0x328)][_0xc38a2d(0x24c)](_0x53bd8c,_0x1a557c),_0x2609d6?window['history'][_0xc38a2d(0x3c8)]('','',_0x3d07e5['toString']()):window[_0xc38a2d(0x203)][_0xc38a2d(0x335)]('','',_0x3d07e5['toString']());}[_0x369344(0x3ec)](_0x21f603,_0xe02b3c=!0x1){const _0x1feccb=_0x369344,_0x7d99a7=new URL(window['location'][_0x1feccb(0x45e)]);_0x7d99a7[_0x1feccb(0x328)]['delete'](_0x21f603),_0xe02b3c?window[_0x1feccb(0x203)][_0x1feccb(0x3c8)]('','',_0x7d99a7[_0x1feccb(0x2fb)]()):window[_0x1feccb(0x203)][_0x1feccb(0x335)]('','',_0x7d99a7[_0x1feccb(0x2fb)]());}[_0x369344(0x164)](_0x48bf41){const _0x3bf5a1=_0x369344;var _0x13f994;return(_0x13f994=new URL(window[_0x3bf5a1(0x419)]['href'])[_0x3bf5a1(0x328)]['get'](_0x48bf41))!=null?_0x13f994:void 0x0;}}const nt='collab-text-anchor-',sr=_0x369344(0x17e),Ue=0x6,ir=1.5,rt=0x4,nr=1.5,rr=_0x369344(0x256);class or{constructor(_0x3b635f,_0x146534,_0x4caeb8,_0x6a03ce){const _0xa727d8=_0x369344;l(this,_0xa727d8(0x1a4),[]),l(this,_0xa727d8(0x2a0),null),l(this,_0xa727d8(0x3cb),null),l(this,_0xa727d8(0x3af),null),l(this,_0xa727d8(0x167),null),l(this,_0xa727d8(0x30c),null),(this['_cursor']=_0x3b635f,this[_0xa727d8(0x2a3)]=_0x146534,this['_docSkeleton']=_0x4caeb8,this[_0xa727d8(0x33a)]=_0x6a03ce,this[_0xa727d8(0x44f)]());}set[_0x369344(0x160)](_0x5422d7){const _0x4f53bf=_0x369344;_0x5422d7?(this[_0x4f53bf(0x3af)]&&this[_0x4f53bf(0x3af)][_0x4f53bf(0x365)](),this[_0x4f53bf(0x3cb)]&&this[_0x4f53bf(0x3cb)][_0x4f53bf(0x1d1)]()):(this[_0x4f53bf(0x3af)]&&this[_0x4f53bf(0x3af)]['show'](),this[_0x4f53bf(0x3cb)]&&this[_0x4f53bf(0x3cb)][_0x4f53bf(0x365)]());}[_0x369344(0x42d)](){const _0x396aee=_0x369344;for(const _0x5c9b67 of this['_shapes'])_0x5c9b67[_0x396aee(0x42d)]();this[_0x396aee(0x3cb)]&&this[_0x396aee(0x3cb)]['dispose'](),this[_0x396aee(0x3af)]&&this[_0x396aee(0x3af)]['dispose'](),this[_0x396aee(0x2a0)]&&this[_0x396aee(0x2a0)][_0x396aee(0x42d)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x369344(0x44f)](){const _0x59d459=_0x369344,{_docSkeleton:_0x2d6eb1,_document:_0x436bdd}=this,{color:_0xb3adbd,name:_0x1011b1,ranges:_0x378e7f}=this[_0x59d459(0x240)],_0x24f6d9=_0x436bdd[_0x59d459(0x20d)](),{docsLeft:_0x528eac,docsTop:_0x588964}=_0x24f6d9,_0x440824=new _0x2a5751(_0x24f6d9,_0x2d6eb1);for(const {startOffset:_0x4e433d,endOffset:_0x393a34,collapsed:_0x4e1800,isActive:_0x46af75}of _0x378e7f){const _0x36180c=_0x2d6eb1[_0x59d459(0x2c8)](_0x4e433d),_0x12faf4=_0x2d6eb1[_0x59d459(0x2c8)](_0x393a34);if(_0x46af75){const {contentBoxPointGroup:_0xf29db}=_0x440824[_0x59d459(0x445)](_0x12faf4,_0x12faf4);if(_0xf29db[_0x59d459(0x3b6)]===0x0)continue;this[_0x59d459(0x265)](_0xb3adbd,_0xf29db,_0x528eac,_0x588964,_0x1011b1),this['_eventUnsubscribe']=this[_0x59d459(0x384)]();}if(!_0x4e1800){const {contentBoxPointGroup:_0x511807}=_0x440824[_0x59d459(0x445)](_0x36180c,_0x12faf4);if(_0x511807[_0x59d459(0x3b6)]===0x0)continue;this[_0x59d459(0x436)](_0xb3adbd,_0x511807,_0x528eac,_0x588964);}}}[_0x369344(0x265)](_0xef6c8d,_0x527e83,_0x546fe4,_0x382000,_0x318817){const _0x5c033b=_0x369344,_0x5742dd=this['_getAnchorBounding'](_0x527e83),{left:_0x48b3d6,top:_0x2ab991,height:_0x47c236}=_0x5742dd,_0x26a233=this['_getScale'](),_0x185098=nr/_0x26a233,_0x45490e=new _0x8391c2(nt+_0x16b7ed[_0x5c033b(0x3d2)](Ue),{'left':_0x48b3d6+_0x546fe4-_0x185098,'top':_0x2ab991+_0x382000,'height':_0x47c236,'width':ir,'fill':_0xef6c8d||_0x4d3636(_0x2a1b5f[_0x5c033b(0x279)],0x0),'strokeWidth':_0x185098,'stroke':rr,'evented':!0x0});this[_0x5c033b(0x2a0)]=_0x45490e,this['_scene'][_0x5c033b(0x2b1)](_0x45490e,_0x451223);const _0x10c263=new _0x8391c2(nt+_0x16b7ed[_0x5c033b(0x3d2)](Ue),{'left':_0x48b3d6+_0x546fe4-_0x185098,'top':_0x2ab991+_0x382000-rt/0x2,'height':rt,'width':rt,'fill':_0xef6c8d||_0x4d3636(_0x2a1b5f[_0x5c033b(0x279)],0x0),'strokeWidth':0x0,'stroke':_0xef6c8d||_0x4d3636(_0x2a1b5f[_0x5c033b(0x279)],0x0),'evented':!0x1});this[_0x5c033b(0x3af)]=_0x10c263,this[_0x5c033b(0x2a3)][_0x5c033b(0x2b1)](_0x10c263,_0x451223);const _0x52c0b9=new qe(nt+_0x16b7ed['generateRandomId'](Ue),{'left':_0x48b3d6+_0x546fe4-_0x185098,'top':_0x2ab991+_0x382000-ye,'text':_0x318817,'color':_0xef6c8d});this['_textBubble']=_0x52c0b9,this[_0x5c033b(0x2a3)][_0x5c033b(0x2b1)](_0x52c0b9,_0x451223),this[_0x5c033b(0x160)]=!0x1;}[_0x369344(0x384)](){const _0x3610e2=_0x369344,_0x4f2bc4=this['_anchor'][_0x3610e2(0x3dc)][_0x3610e2(0x1a0)](()=>{const _0x319aba=_0x3610e2;this[_0x319aba(0x160)]=!0x0;}),_0x4be642=this[_0x3610e2(0x2a0)]['onPointerLeaveObserver'][_0x3610e2(0x1a0)](()=>{const _0x4340fa=_0x3610e2;this['_hideTimer']&&clearTimeout(this[_0x4340fa(0x167)]),this[_0x4340fa(0x167)]=setTimeout(()=>{const _0x5c4ec8=_0x4340fa;this[_0x5c4ec8(0x160)]=!0x1;},0x7d0);});return()=>{const _0x48cf53=_0x3610e2;var _0x2219d7,_0x137347;(_0x2219d7=this[_0x48cf53(0x2a0)])==null||_0x2219d7[_0x48cf53(0x3dc)][_0x48cf53(0x2ea)](_0x4f2bc4),(_0x137347=this[_0x48cf53(0x2a0)])==null||_0x137347[_0x48cf53(0x316)][_0x48cf53(0x2ea)](_0x4be642);};}['_drawRange'](_0x1ffc59,_0x2bbcf1,_0x16c280,_0x3e6808){const _0x5671fe=_0x369344,_0x26d11e=new _0x11cecc(_0x1ffc59)[_0x5671fe(0x359)](0.2)[_0x5671fe(0x3e1)](),_0x22970e=new _0x4d3b2d(sr+_0x16b7ed[_0x5671fe(0x3d2)](Ue),{'pointsGroup':_0x2bbcf1,'fill':_0x26d11e||_0x4d3636(_0x2a1b5f[_0x5671fe(0x279)],0.2),'left':_0x16c280,'top':_0x3e6808,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5671fe(0x1a4)][_0x5671fe(0x288)](_0x22970e),this['_scene'][_0x5671fe(0x2b1)](_0x22970e,_0x451223);}[_0x369344(0x1df)](_0x251221){const _0x144f14=_0x251221[0x0],_0x3a4ddb=_0x144f14[0x0],_0x2f54a8=_0x144f14[0x2],{x:_0x176149,y:_0x53faaf}=_0x3a4ddb,{x:_0x2d9cfc,y:_0x79946d}=_0x2f54a8;return{'left':_0x176149,'top':_0x53faaf,'width':_0x2d9cfc-_0x176149,'height':_0x79946d-_0x53faaf};}['_getScale'](){const _0x3f3bbb=_0x369344,{scaleX:_0x5b9c8e,scaleY:_0x163d02}=this[_0x3f3bbb(0x2a3)][_0x3f3bbb(0x21e)]();return Math[_0x3f3bbb(0x304)](_0x5b9c8e,_0x163d02);}}var ar=(_0x58ef2e,_0x380dc1,_0x160fbe,_0x42b0a7)=>{const _0xdb5b1f=_0x369344;for(var _0x21c9ec=_0x380dc1,_0x27236d=_0x58ef2e[_0xdb5b1f(0x3b6)]-0x1,_0x5dee45;_0x27236d>=0x0;_0x27236d--)(_0x5dee45=_0x58ef2e[_0x27236d])&&(_0x21c9ec=_0x5dee45(_0x21c9ec)||_0x21c9ec);return _0x21c9ec;},Ce=(_0x448e6e,_0xb82aa)=>(_0x174c8d,_0x2ce328)=>_0xb82aa(_0x174c8d,_0x2ce328,_0x448e6e);let Fe=class extends _0x1f6cf4{constructor(_0x5be615,_0x57dcb1,_0x39c0b4,_0x1c2498,_0x147bef){const _0x554332=_0x369344;super(),l(this,_0x554332(0x2dc),[]),(this['_collabCursorController']=_0x5be615,this[_0x554332(0x2dd)]=_0x57dcb1,this[_0x554332(0x2cb)]=_0x39c0b4,this[_0x554332(0x1ca)]=_0x1c2498,this[_0x554332(0x3e8)]=_0x147bef,this[_0x554332(0x3e0)]());}['_init'](){const _0x30bd8b=_0x369344;this[_0x30bd8b(0x1ca)]['currentSkeleton$']['pipe'](_0x46656a(this[_0x30bd8b(0x351)]),_0x2b4de3(_0x54575a=>{const _0x214b96=_0x30bd8b;if(_0x54575a){const {unitId:_0x49d2fd}=_0x54575a;return _0xf0253e(this['_collabCursorController'][_0x214b96(0x2ef)](_0x49d2fd),this[_0x214b96(0x3e8)][_0x214b96(0x1a6)])[_0x214b96(0x2be)](_0x19010f(([_0x471520,_0x242137])=>({'skeleton':_0x54575a,'cursors':[..._0x471520[_0x214b96(0x400)]()][_0x214b96(0x173)](_0x45fb85=>({..._0x45fb85,'color':_0x242137[_0x45fb85[_0x214b96(0x39e)]]}))})));}return _0x169b33({'skeleton':null,'cursors':[]});}))[_0x30bd8b(0x3c2)](({skeleton:_0x9f80d,cursors:_0x32810a})=>{const _0x5723ea=_0x30bd8b;this[_0x5723ea(0x417)](),_0x9f80d&&this[_0x5723ea(0x402)](_0x9f80d[_0x5723ea(0x180)],_0x32810a);});}['_updateCollabCursors'](_0x6aa8fa,_0x145060){const _0xa9e0ae=_0x369344,_0x59f0db=this[_0xa9e0ae(0x207)]();if(_0x59f0db==null)return;const {scene:_0x3075bb,document:_0x902e97}=_0x59f0db,_0x3486e4=_0x145060['map'](_0x6d40e4=>new or(_0x6d40e4,_0x3075bb,_0x6aa8fa,_0x902e97));this[_0xa9e0ae(0x2dc)]=_0x3486e4;}[_0x369344(0x417)](){const _0x463e06=_0x369344;this[_0x463e06(0x2dc)]['forEach'](_0x5e1f8b=>_0x5e1f8b[_0x463e06(0x42d)]()),this['_cursors']=[];}['_getDocObject'](){const _0x4985f9=_0x369344;return _0x35a139(this[_0x4985f9(0x2dd)],this[_0x4985f9(0x2cb)]);}};Fe=ar([_0x3cfe98(_0x41440a[_0x369344(0x3d8)],Fe),Ce(0x0,_0x3bdb53(ue)),Ce(0x1,_0x1e6754),Ce(0x2,_0x12e984),Ce(0x3,_0x3bdb53(_0x4ca2e9)),Ce(0x4,_0x3bdb53(_0x1851c3))],Fe);var cr=(_0x453940,_0x4ee8ad,_0x5707a6,_0x87176a)=>{const _0x1604e9=_0x369344;for(var _0x14a448=_0x4ee8ad,_0x3af883=_0x453940[_0x1604e9(0x3b6)]-0x1,_0x30298f;_0x3af883>=0x0;_0x3af883--)(_0x30298f=_0x453940[_0x3af883])&&(_0x14a448=_0x30298f(_0x14a448)||_0x14a448);return _0x14a448;},ot=(_0x12ba16,_0x5d38e9)=>(_0x34f408,_0xbf8738)=>_0x5d38e9(_0x34f408,_0xbf8738,_0x12ba16);const hr=_0x369344(0x1a1),lr=_0x369344(0x1bf);let Ye=class{constructor(_0x590d3b,_0x33952c,_0x31fb45){const _0x378cc8=_0x369344;this[_0x378cc8(0x3f1)]=_0x590d3b,this[_0x378cc8(0x293)]=_0x33952c,this[_0x378cc8(0x2a6)]=_0x31fb45,this[_0x378cc8(0x3ac)]();}[_0x369344(0x3ac)](){const _0x116505=_0x369344;this[_0x116505(0x293)][_0x116505(0x20b)]({'priority':0x1,'interceptor':(_0x49adb1,_0x59ac97)=>_0x59ac97(_0x49adb1)[_0x116505(0x2be)](_0x1b553f(async _0x5e5c7c=>{const _0x575b06=_0x116505;if(_0x5e5c7c['status']===0x191&&window[_0x575b06(0x43a)](this[_0x575b06(0x2a6)]['t'](_0x575b06(0x1f5)))){const _0x214c19=window[_0x575b06(0x1bc)](window[_0x575b06(0x419)]['href']);window[_0x575b06(0x419)][_0x575b06(0x45e)]=this[_0x575b06(0x3b5)]()+_0x575b06(0x1ff)+_0x214c19;}return _0x5e5c7c;}))});}[_0x369344(0x3b5)](){const _0x178a00=_0x369344;var _0x5a56bb;return(_0x5a56bb=this[_0x178a00(0x3f1)]['getConfig'](hr))!=null?_0x5a56bb:lr;}};Ye=cr([ot(0x0,_0xcb4dc7),ot(0x1,_0x3bdb53(_0xe9c2a2)),ot(0x2,_0x3bdb53(_0x122a5b))],Ye);var _r=(_0x4a98f2,_0x57faa2,_0x2dd717,_0x277d28)=>{const _0x19f5dd=_0x369344;for(var _0x1fb8b1=_0x57faa2,_0x4bac51=_0x4a98f2[_0x19f5dd(0x3b6)]-0x1,_0x5cc8b9;_0x4bac51>=0x0;_0x4bac51--)(_0x5cc8b9=_0x4a98f2[_0x4bac51])&&(_0x1fb8b1=_0x5cc8b9(_0x1fb8b1)||_0x1fb8b1);return _0x1fb8b1;},Qt=(_0x9758a8,_0xf22522)=>(_0x1b97c7,_0x51d41f)=>_0xf22522(_0x1b97c7,_0x51d41f,_0x9758a8);const ur=_0x369344(0x1e1),dr='/universer-api/authz';let It=class{constructor(_0x25c991,_0x17bd1b){const _0x38994b=_0x369344;this['_HTTPService']=_0x25c991,this[_0x38994b(0x3f1)]=_0x17bd1b;}['_getAPIPrefixPath'](){const _0x379dfd=_0x369344;var _0x531fe7;return(_0x531fe7=this['_configService'][_0x379dfd(0x306)](ur))!=null?_0x531fe7:dr;}async['create'](_0x2b8d97){const _0x3362b9=_0x369344,_0x3ae589=this[_0x3362b9(0x1cc)]()+'/'+_0x2b8d97[_0x3362b9(0x192)]+_0x3362b9(0x3bb);return(await this['_HTTPService'][_0x3362b9(0x371)](_0x3ae589,{'body':_0x2b8d97}))[_0x3362b9(0x210)][_0x3362b9(0x334)]||'';}async[_0x369344(0x396)](_0x4f2147){const _0x3ee56e=_0x369344,_0x1bd97d=this[_0x3ee56e(0x1cc)]()+'/-/object/list';return(await this['_HTTPService'][_0x3ee56e(0x371)](_0x1bd97d,{'body':_0x4f2147}))[_0x3ee56e(0x210)][_0x3ee56e(0x363)];}async[_0x369344(0x389)](_0xb0df9a){const _0x1dcbd1=_0x369344,_0x221785=this[_0x1dcbd1(0x1cc)]()+'/'+_0xb0df9a['objectType']+_0x1dcbd1(0x327)+_0xb0df9a[_0x1dcbd1(0x334)];await this[_0x1dcbd1(0x2e1)][_0x1dcbd1(0x2df)](_0x221785,{'body':_0xb0df9a});}async[_0x369344(0x307)](_0xec080a){const _0x5d236c=_0x369344,_0x2075a0=this[_0x5d236c(0x1cc)]()+'/'+_0xec080a[_0x5d236c(0x192)]+_0x5d236c(0x327)+_0xec080a[_0x5d236c(0x334)]+'/allowed';return(await this[_0x5d236c(0x2e1)][_0x5d236c(0x371)](_0x2075a0,{'body':_0xec080a}))['body'][_0x5d236c(0x289)];}async[_0x369344(0x1e3)](_0x144989){const _0x10ee3b=_0x369344,_0x805425=this[_0x10ee3b(0x1cc)]()+_0x10ee3b(0x2b3);return(await this[_0x10ee3b(0x2e1)][_0x10ee3b(0x371)](_0x805425,{'body':{'requests':_0x144989}}))[_0x10ee3b(0x210)][_0x10ee3b(0x3e4)];}async[_0x369344(0x189)](_0x21ab5c){const _0x2e37e1=_0x369344,_0x103ed4=this[_0x2e37e1(0x1cc)]()+'/'+_0x21ab5c['objectType']+_0x2e37e1(0x354),_0x222183=(await this['_HTTPService'][_0x2e37e1(0x371)](_0x103ed4,{'body':_0x21ab5c}))[_0x2e37e1(0x210)];return{'roles':_0x222183['roles'],'actions':_0x222183[_0x2e37e1(0x289)]};}async[_0x369344(0x46c)](_0xae759b){const _0x4422dd=_0x369344,_0xa27113=this[_0x4422dd(0x1cc)]()+_0x4422dd(0x193);await this[_0x4422dd(0x2e1)][_0x4422dd(0x358)](_0xa27113,{'params':{'collaboratorID':_0xae759b[_0x4422dd(0x1ac)],'objectID':_0xae759b['objectID'],'unitID':_0xae759b[_0x4422dd(0x3cc)]}});}async['updateCollaborator'](_0x3fd9be){const _0x5bcdce=_0x369344,_0x395012=this[_0x5bcdce(0x1cc)]()+_0x5bcdce(0x193);await this[_0x5bcdce(0x2e1)][_0x5bcdce(0x237)](_0x395012,{'body':_0x3fd9be});}async[_0x369344(0x44a)](_0x54019e){const _0x26597b=_0x369344,_0x5786d3=this['_getAPIPrefixPath']()+_0x26597b(0x193);await this['_HTTPService']['post'](_0x5786d3,{'body':_0x54019e});}async[_0x369344(0x320)](_0x533db9){const _0x409342=_0x369344,_0x28c22e=this[_0x409342(0x1cc)]()+_0x409342(0x193);return(await this['_HTTPService'][_0x409342(0x19d)](_0x28c22e,{'params':{'objectID':_0x533db9[_0x409342(0x334)],'unitID':_0x533db9['unitID']}}))[_0x409342(0x210)][_0x409342(0x1d7)];}async[_0x369344(0x2c7)](_0x321b04){const _0x9f373e=_0x369344,_0x264635=this[_0x9f373e(0x1cc)]()+'/collaborator';await this[_0x9f373e(0x2e1)][_0x9f373e(0x2df)](_0x264635,{'body':_0x321b04});}};It=_r([Qt(0x0,_0x3bdb53(_0xe9c2a2)),Qt(0x1,_0x3bdb53(_0xcb4dc7))],It);var gr=(_0x334b88,_0xea936d,_0x2a3f03,_0x28db29)=>{const _0x44e693=_0x369344;for(var _0x5714bc=_0xea936d,_0x1316be=_0x334b88[_0x44e693(0x3b6)]-0x1,_0xc6955f;_0x1316be>=0x0;_0x1316be--)(_0xc6955f=_0x334b88[_0x1316be])&&(_0x5714bc=_0xc6955f(_0x5714bc)||_0x5714bc);return _0x5714bc;},es=(_0x5d6b2e,_0x48a5ee)=>(_0xc2ce1e,_0xdf968d)=>_0x48a5ee(_0xc2ce1e,_0xdf968d,_0x5d6b2e);const mr=['image/png',_0x369344(0x420),'image/jpg','image/gif',_0x369344(0x280)],Sr=0x5*0x400*0x400,fr=_0x369344(0x2ab),vr=_0x369344(0x34a),pr=_0x369344(0x26e),Ir='/universer-api/file/{fileID}/sign-url';let Et=class{constructor(_0x3c4f93,_0x138500){const _0x85c31a=_0x369344;l(this,_0x85c31a(0x1c4),0x0),l(this,'_change$',new _0x36360c()),l(this,_0x85c31a(0x31e),this[_0x85c31a(0x3df)]),l(this,'_imageSourceCache',new Map()),(this[_0x85c31a(0x293)]=_0x3c4f93,this[_0x85c31a(0x3f1)]=_0x138500);}['setWaitCount'](_0x3e709b){const _0x498080=_0x369344;this[_0x498080(0x1c4)]=_0x3e709b,this[_0x498080(0x3df)][_0x498080(0x43d)](_0x3e709b);}[_0x369344(0x44c)](_0x3e893f,_0x5e5f98){const _0x37f4b4=_0x369344;if(_0x5e5f98===_0x51fc09[_0x37f4b4(0x15e)]){const _0xd12f05=new Image();return _0xd12f05[_0x37f4b4(0x33b)]=_0x3e893f,_0xd12f05;}return this[_0x37f4b4(0x3b8)][_0x37f4b4(0x19d)](_0x3e893f);}[_0x369344(0x24f)](_0x4d30ea,_0x17b79e,_0x12d3c2){const _0x432124=_0x369344;_0x17b79e===_0x51fc09[_0x432124(0x15e)]||_0x12d3c2==null||this['_imageSourceCache'][_0x432124(0x24c)](_0x4d30ea,_0x12d3c2);}async[_0x369344(0x3b3)](_0x30ac77){const _0x16e092=_0x369344;try{const _0x6365c0=this['_replaceFileID'](this[_0x16e092(0x1de)](),''+_0x30ac77),_0x410ec9=(await this['_httpService'][_0x16e092(0x19d)](_0x6365c0))['body'];return _0x410ec9[_0x16e092(0x284)]&&_0x410ec9[_0x16e092(0x284)][_0x16e092(0x22e)]===ps['OK']?Promise[_0x16e092(0x361)](_0x410ec9[_0x16e092(0x387)]):Promise[_0x16e092(0x1ef)](_0x410ec9['error']);}catch(_0x594b2d){return Promise[_0x16e092(0x1ef)](_0x594b2d);}}async['saveImage'](_0xfba53f){const _0x290e34=_0x369344;let _0x4b439c='';if(!mr[_0x290e34(0x36c)](_0xfba53f[_0x290e34(0x2f5)]))return this[_0x290e34(0x245)](),Promise['reject'](new Error(_0x4ac7c3[_0x290e34(0x32b)]));if(_0xfba53f['size']>Sr)return this[_0x290e34(0x245)](),Promise[_0x290e34(0x1ef)](new Error(_0x4ac7c3[_0x290e34(0x26f)]));try{const _0x25a7c0=new FormData();_0x25a7c0['append'](_0x290e34(0x457),_0xfba53f);const _0x2bdef1=this[_0x290e34(0x468)]()+_0x290e34(0x221)+_0xfba53f[_0x290e34(0x407)]['toString'](),_0x1230c2=await(await fetch(_0x2bdef1,{'method':'POST','body':_0x25a7c0}))[_0x290e34(0x3a3)]();if(typeof _0x1230c2[_0x290e34(0x341)]!=_0x290e34(0x3ae))return this['_decreaseWaiting'](),Promise[_0x290e34(0x1ef)](new Error(_0x4ac7c3[_0x290e34(0x45c)]));_0x4b439c=_0x1230c2[_0x290e34(0x341)];}catch{return this[_0x290e34(0x245)](),Promise[_0x290e34(0x1ef)](new Error(_0x4ac7c3['ERROR_IMAGE']));}return new Promise((_0x1316e2,_0x2965db)=>{const _0x480b55=_0x290e34,_0x4396a6=new FileReader();_0x4396a6[_0x480b55(0x37d)](_0xfba53f),_0x4396a6['onload']=_0x322344=>{const _0x14170d=_0x480b55;var _0x5661c4;const _0x27e895=(_0x5661c4=_0x322344['target'])==null?void 0x0:_0x5661c4[_0x14170d(0x1a2)];if(_0x27e895==null){this['_decreaseWaiting'](),_0x2965db(new Error(_0x4ac7c3[_0x14170d(0x45c)]));return;}const _0x3daf04=_0x16b7ed[_0x14170d(0x3d2)](0x6);_0x1316e2({'imageId':_0x3daf04,'imageSourceType':_0x51fc09[_0x14170d(0x2fa)],'source':_0x4b439c,'base64Cache':_0x27e895,'status':_0x4ac7c3[_0x14170d(0x318)]}),this[_0x14170d(0x245)]();};});}[_0x369344(0x468)](){const _0x5aca73=_0x369344;var _0xde6dc7;return(_0xde6dc7=this[_0x5aca73(0x3f1)][_0x5aca73(0x306)](fr))!=null?_0xde6dc7:vr;}[_0x369344(0x1de)](){const _0x4d038f=_0x369344;var _0x37c71e;return(_0x37c71e=this[_0x4d038f(0x3f1)][_0x4d038f(0x306)](pr))!=null?_0x37c71e:Ir;}['_replaceFileID'](_0x27f8aa,_0x54911d){const _0x4b8713=_0x369344;return _0x27f8aa[_0x4b8713(0x3a8)]('{fileID}',_0x54911d);}[_0x369344(0x245)](){const _0x5b1c48=_0x369344;this['_waitCount']-=0x1,this['_change$'][_0x5b1c48(0x43d)](this[_0x5b1c48(0x1c4)]);}};Et=gr([es(0x0,_0x3bdb53(_0xe9c2a2)),es(0x1,_0xcb4dc7)],Et);var Er=(_0x2d49c6,_0x5d59e2,_0x2c0788,_0x36e1df)=>{const _0x700e0e=_0x369344;for(var _0x30b349=_0x5d59e2,_0x11388f=_0x2d49c6[_0x700e0e(0x3b6)]-0x1,_0x184ad7;_0x11388f>=0x0;_0x11388f--)(_0x184ad7=_0x2d49c6[_0x11388f])&&(_0x30b349=_0x184ad7(_0x30b349)||_0x30b349);return _0x30b349;},ts=(_0x13a355,_0x3d9c01)=>(_0x288296,_0x72fdbe)=>_0x3d9c01(_0x288296,_0x72fdbe,_0x13a355);const Cr=_0x369344(0x2fc);var at;let ss=(at=class extends _0x1b07a0{constructor(_0x15e941,_0x4af0d2,_0x30d251){const _0x5ee422=_0x369344;super(),this[_0x5ee422(0x337)]=_0x15e941,this[_0x5ee422(0x2e0)]=_0x4af0d2,this[_0x5ee422(0x24a)]=_0x30d251;}['onStarting'](_0x1db049){const _0xf6a18f=_0x369344;var _0x571bdb,_0x539985,_0x4121c5,_0xe64afd,_0x3e2fcb;_0x1db049[_0xf6a18f(0x3a8)]([_0x34383f,{'useClass':pt}]);let _0x15f774=[[Oe],[At],[_0xe9c2a2],[ws,{'useClass':tr}],[ee],[O],[_0x42c558],[We],[Be],[Ve],[Mt],[Ye],[Is,{'useClass':(_0x539985=(_0x571bdb=this[_0xf6a18f(0x337)])==null?void 0x0:_0x571bdb[_0xf6a18f(0x25a)])!=null?_0x539985:ut}],[_0x1e7960,{'useClass':_0x5ca741}],[_0xb15e1d,{'useClass':vt}],[_0x3ee45a,{'useClass':It}],[_0x443a0e,{'useClass':Et}],[be],[xe],[He],[je],[ue]];(_0x4121c5=this[_0xf6a18f(0x337)])!=null&&_0x4121c5['enableSingleActiveInstanceLock']&&_0x15f774[_0xf6a18f(0x288)]([Je,{'useClass':an}]),((_0xe64afd=this[_0xf6a18f(0x337)])==null?void 0x0:_0xe64afd[_0xf6a18f(0x181)])==null||this[_0xf6a18f(0x337)][_0xf6a18f(0x181)][_0xf6a18f(0x36c)](_0x195e2d[_0xf6a18f(0x38c)])?_0x15f774['push']([$e]):this[_0xf6a18f(0x337)][_0xf6a18f(0x181)]['includes'](_0x195e2d[_0xf6a18f(0x3c6)])&&_0x15f774[_0xf6a18f(0x288)]([Fe]),_0x15f774=_0x31fff2(_0x15f774,(_0x3e2fcb=this[_0xf6a18f(0x337)])==null?void 0x0:_0x3e2fcb[_0xf6a18f(0x469)]),_0x15f774[_0xf6a18f(0x33d)](_0x1f8222=>_0x1db049['add'](_0x1f8222)),_0x1db049['get'](_0xe9c2a2)[_0xf6a18f(0x20b)]({'priority':0x14,'interceptor':_0x1db049[_0xf6a18f(0x3f0)](_0x437693,{'maxParallel':0x6})}),this[_0xf6a18f(0x301)]();}[_0x369344(0x301)](){const _0x309ecb=_0x369344;var _0x41ebe6,_0x3703cc;(_0x41ebe6=this['_config'])!=null&&_0x41ebe6[_0x309ecb(0x385)]||this['_injector']['get'](O)[_0x309ecb(0x2da)](),(_0x3703cc=this['_config'])!=null&&_0x3703cc['enableAuthServer']&&this[_0x309ecb(0x2e0)][_0x309ecb(0x19d)](Ye);}},l(at,_0x369344(0x44b),Cr),at);ss=Er([ts(0x1,_0x3bdb53(_0x29e329)),ts(0x2,_0x3bdb53(_0x122a5b))],ss);export{It as AuthzIoHttpService,Yi as COLLAB_SUBMIT_CHANGESET_URL_KEY,Ji as COLLAB_WEB_SOCKET_URL_KEY,ss as CollaborationClientPlugin,be as CollaborationController,dt as CollaborationSession,Oe as CollaborationSessionService,ut as CollaborationSocketService,y as CollaborationStatus,Wn as CollaborationStatusDisplay,xe as DataLoaderController,He as DesktopCollaborationStatusDisplayController,qi as HEARTBEAT_INTERVAL_KEY,Cs as HEARTBEAT_TIMEOUT_KEY,Is as ICollaborationSocketService,ws as IURLService,rn as LOCAL_CACHE_INTERVAL_KEY,hr as LOGIN_URL_KEY,O as LocalCacheService,mn as SEND_CHANGESET_TIMEOUT_KEY,Zn as SNAPSHOT_SERVER_URL_KEY,_e as SessionStatus,tr as WebURLService,Bi as deserializeToCombResponse,Wi as serializeCombRequest};
|
1
|
+
const _0x48c788=_0x1999;(function(_0x215475,_0x4f4e3f){const _0x4b2600=_0x1999,_0x1702c1=_0x215475();while(!![]){try{const _0x59281e=parseInt(_0x4b2600(0x48b))/0x1+parseInt(_0x4b2600(0x3fc))/0x2*(-parseInt(_0x4b2600(0x3c0))/0x3)+-parseInt(_0x4b2600(0x362))/0x4+-parseInt(_0x4b2600(0x499))/0x5*(-parseInt(_0x4b2600(0x447))/0x6)+-parseInt(_0x4b2600(0x474))/0x7+parseInt(_0x4b2600(0x460))/0x8+parseInt(_0x4b2600(0x2b6))/0x9;if(_0x59281e===_0x4f4e3f)break;else _0x1702c1['push'](_0x1702c1['shift']());}catch(_0x38d476){_0x1702c1['push'](_0x1702c1['shift']());}}}(_0x515a,0xb2ff4));var js=Object[_0x48c788(0x299)],Hs=(_0x1fdcf7,_0x4c62be,_0x3ad3c1)=>_0x4c62be in _0x1fdcf7?js(_0x1fdcf7,_0x4c62be,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ad3c1}):_0x1fdcf7[_0x4c62be]=_0x3ad3c1,l=(_0x216e22,_0xe40aca,_0x11d4b2)=>(Hs(_0x216e22,typeof _0xe40aca!=_0x48c788(0x288)?_0xe40aca+'':_0xe40aca,_0x11d4b2),_0x11d4b2);import{Disposable as _0x5de86a,toDisposable as _0x308092,UniverInstanceType as _0x5b42a8,UserManagerService as _0x58e661,IUniverInstanceService as _0x5db99b,DisposableCollection as _0x53ebaa,IConfigService as _0x475c15,ILogService as _0xcf8387,ISnapshotServerService as _0x32765d,RxDisposable as _0x4f9c78,LocaleService as _0x7ef8c9,ILocalStorageService as _0x2bd6b3,Tools as _0x41ebb1,ICommandService as _0x26b7b1,JSONX as _0x44383b,IPermissionService as _0x4a2caa,IUndoRedoService as _0x3b301b,sequenceExecute as _0x196e3d,OnLifecycle as _0x4bcad5,LifecycleStages as _0xba774d,CommandType as _0x2210bc,Rectangle as _0x294f92,ThemeService as _0x58f756,Workbook as _0x55773e,textEncoder as _0x3e85fc,b64DecodeUnicode as _0x2a2404,LocalUndoRedoService as _0x2d3c98,IContextService as _0x4c77f7,COLORS as _0x375ede,ColorKit as _0x4176ec,Plugin as _0x12f480,IAuthzIoService as _0x49a670,mergeOverrideWithDependencies as _0x166e22,DependentOn as _0x5c5115}from'@univerjs/core';import{SelectionManagerService as _0x241ac5,SetSelectionsOperation as _0x576668,InsertSheetMutation as _0x183395,WorkbookEditablePermission as _0x301a89,RefRangeService as _0xd07635,EffectRefRangId as _0x3445c6,handleIRemoveRow as _0x2b7f87,handleIRemoveCol as _0x2f6da3,handleMoveRange as _0x4784f5,handleInsertRow as _0x4e6c23,handleInsertRangeMoveRight as _0x257710,handleInsertRangeMoveDown as _0x174883,handleInsertCol as _0x4ac67f,handleDeleteRangeMoveUp as _0xac4d22,handleDeleteRangeMoveLeft as _0x31225a,runRefRangeMutations as _0x477418,SetWorksheetActivateCommand as _0x27110d}from'@univerjs/sheets';import{MessageType as _0x16b663}from'@univerjs/design';import{IBeforeCloseService as _0x547f18,IMessageService as _0xcc97bb,INotificationService as _0x57524d,useObservable as _0x36db5c,BuiltInUIPart as _0x2ba420,IUIPartsService as _0x2d3342}from'@univerjs/ui';import{CollaborationEvent as _0x64674d,parseChangesetToProtocol as _0x4444c6,RevisionService as _0x2426c9,isTransformMutationFailure as _0x1ce5e8,isTransformMutationsWithChangesetSuccess as _0x13e3eb,ITransformService as _0x56e350,mapDocumentTypeToUniverType as _0x501378,isTransformChangesetsSuccess as _0x4a3135,CompressMutationService as _0x50d638,parseProtocolChangeset as _0x3a5484,SnapshotService as _0x3ae0d3,isTransformMutationsWithChangesetFailure as _0x120eeb,UniverCollaborationPlugin as _0x149281}from'@univerjs-pro/collaboration';import{Inject as _0x1df0bc,createIdentifier as _0x4e2518,Injector as _0x1883e3,Optional as _0x9cd523}from'@wendellhu/redi';import{merge as _0x10f2b0,Subject as _0x255156,BehaviorSubject as _0xac9643,distinctUntilChanged as _0xbaf3d7,fromEvent as _0x3afa96,of as _0x5aa699,takeUntil as _0x219692,debounceTime as _0x5b9b01,filter as _0x2b78dc,switchMap as _0x52b39c,combineLatest as _0x222f4d,shareReplay as _0x5bbc32,mapTo as _0x58db52,concatMap as _0x54d374}from'rxjs';import{map as _0x1262f1,takeUntil as _0x258fee,take as _0x332c11,filter as _0x2cc73f,delay as _0x1c5ec9,shareReplay as _0x43cd64,switchMap as _0x367f49}from'rxjs/operators';import{IMEInputManagerService as _0x5c948d,TextSelectionManagerService as _0x3953fa,serializeTextRange as _0x478cbe,DocStateChangeManagerService as _0x18b292,SetTextSelectionsOperation as _0x1d44c4,RichTextEditingMutation as _0x436bb5,getDocObject as _0x394f78,DocSkeletonManagerService as _0x495a4e}from'@univerjs/docs';import{HTTPService as _0x49edd2,WebSocketService as _0x15b3f3,IHTTPImplementation as _0x18e4ed,XHRHTTPImplementation as _0x1c4b96,ThresholdInterceptorFactory as _0x398469}from'@univerjs/network';import{ImageSourceType as _0x55f8db,ImageUploadStatusType as _0x3caa53,IImageIoService as _0x5863cd}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x3f2fda,serializeRangeWithSheet as _0x14626b}from'@univerjs/engine-formula';import _0x12f611 from'lodash/debounce';import{Shape as _0x5760a1,Rect as _0x31e76b,Vector2 as _0x4c9069,IRenderManagerService as _0x205a7a,NodePositionConvertToCursor as _0x45e74b,getColor as _0x5139a9,TEXT_RANGE_LAYER_INDEX as _0x3507b6,RegularPolygon as _0x4b8859}from'@univerjs/engine-render';import{SheetSkeletonManagerService as _0x46d514,VIEWPORT_KEY as _0x53f94c,getCoordByCell as _0x51cfa7,getSheetObject as _0x1f2c89}from'@univerjs/sheets-ui';import{useDependency as _0x34cfdc,connectInjector as _0x5168f0}from'@wendellhu/redi/react-bindings';import _0x537ca1,{forwardRef as _0x1302f5,useRef as _0x4b43df,createElement as _0x732030}from'react';import _0x37250f from'clsx';import{IRemoteInstanceService as _0x356d7e}from'@univerjs/rpc';const Wi=_0x48c788(0x497),Gi=_0x48c788(0x4a7),Yi=_0x48c788(0x37b),Ki=_0x48c788(0x1c4),Xi=0x7d0,Ji=_0x48c788(0x43c),zi=_0x48c788(0x2da),qi=_0x48c788(0x450),Zi=0x7530,ps=_0x48c788(0x307),Is=0x2710,Qi='RETRY_CONNECTING_INTERVAL',en=0x4e20,tn=_0x48c788(0x404),sn=0x3,nn=_0x48c788(0x347),rn=0x3e8,on=_0x48c788(0x36b),an='/universer-api/comb',cn=_0x48c788(0x494),hn=_0x48c788(0x424);var Es=(_0x2150ae=>(_0x2150ae[_0x2150ae['UNDEFINED']=0x0]=_0x48c788(0x254),_0x2150ae[_0x2150ae['OK']=0x1]='OK',_0x2150ae[_0x2150ae[_0x48c788(0x206)]=0x2]=_0x48c788(0x206),_0x2150ae[_0x2150ae[_0x48c788(0x353)]=0x3]=_0x48c788(0x353),_0x2150ae[_0x2150ae[_0x48c788(0x34e)]=0x4]=_0x48c788(0x34e),_0x2150ae[_0x2150ae[_0x48c788(0x1bd)]=0x5]=_0x48c788(0x1bd),_0x2150ae[_0x2150ae['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x2150ae[_0x2150ae['INVALID_ARGUMENT']=0x7]=_0x48c788(0x3ca),_0x2150ae[_0x2150ae[_0x48c788(0x223)]=0x8]=_0x48c788(0x223),_0x2150ae[_0x2150ae[_0x48c788(0x31b)]=0x9]=_0x48c788(0x31b),_0x2150ae[_0x2150ae[_0x48c788(0x1c7)]=0x1389]=_0x48c788(0x1c7),_0x2150ae[_0x2150ae[_0x48c788(0x2bc)]=0x1771]=_0x48c788(0x2bc),_0x2150ae[_0x2150ae['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x2150ae[_0x2150ae[_0x48c788(0x3a6)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2150ae[_0x2150ae['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x48c788(0x21b),_0x2150ae[_0x2150ae[_0x48c788(0x441)]=0x1b5c]=_0x48c788(0x441),_0x2150ae[_0x2150ae[_0x48c788(0x207)]=0x1f41]=_0x48c788(0x207),_0x2150ae[_0x2150ae[_0x48c788(0x2c7)]=0x2329]=_0x48c788(0x2c7),_0x2150ae[_0x2150ae[_0x48c788(0x3f2)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x2150ae[_0x2150ae[_0x48c788(0x430)]=0x232b]=_0x48c788(0x430),_0x2150ae[_0x2150ae['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x48c788(0x208),_0x2150ae[_0x2150ae[_0x48c788(0x4c5)]=0x232d]=_0x48c788(0x4c5),_0x2150ae[_0x2150ae[_0x48c788(0x3c6)]=0x2711]=_0x48c788(0x3c6),_0x2150ae[_0x2150ae[_0x48c788(0x2db)]=0x2712]=_0x48c788(0x2db),_0x2150ae[_0x2150ae[_0x48c788(0x32b)]=-0x1]=_0x48c788(0x32b),_0x2150ae))(Es||{}),H=(_0x1a79d2=>(_0x1a79d2[_0x1a79d2[_0x48c788(0x3c2)]=0x0]=_0x48c788(0x3c2),_0x1a79d2[_0x1a79d2[_0x48c788(0x4d4)]=0x1]=_0x48c788(0x4d4),_0x1a79d2[_0x1a79d2['UNIVER_SHEET']=0x2]=_0x48c788(0x29e),_0x1a79d2[_0x1a79d2['UNIVER_SLIDE']=0x3]=_0x48c788(0x30f),_0x1a79d2[_0x1a79d2['UNRECOGNIZED']=-0x1]=_0x48c788(0x32b),_0x1a79d2))(H||{}),I=(_0x2a1e81=>(_0x2a1e81[_0x2a1e81['UNKNOWN_CMD']=0x0]=_0x48c788(0x46a),_0x2a1e81[_0x2a1e81['HELLO']=0x1]=_0x48c788(0x374),_0x2a1e81[_0x2a1e81['JOIN']=0x2]='JOIN',_0x2a1e81[_0x2a1e81[_0x48c788(0x3ad)]=0x3]=_0x48c788(0x3ad),_0x2a1e81[_0x2a1e81[_0x48c788(0x2a7)]=0x4]=_0x48c788(0x2a7),_0x2a1e81[_0x2a1e81[_0x48c788(0x412)]=0x5]='HEARTBEAT',_0x2a1e81[_0x2a1e81[_0x48c788(0x1f7)]=0x6]=_0x48c788(0x1f7),_0x2a1e81[_0x2a1e81[_0x48c788(0x32b)]=-0x1]=_0x48c788(0x32b),_0x2a1e81))(I||{}),Nt=(_0x433be2=>(_0x433be2[_0x433be2[_0x48c788(0x42d)]=0x0]=_0x48c788(0x42d),_0x433be2[_0x433be2['OK']=0x1]='OK',_0x433be2[_0x433be2[_0x48c788(0x1b5)]=0x2]='FAIL',_0x433be2[_0x433be2[_0x48c788(0x32b)]=-0x1]='UNRECOGNIZED',_0x433be2))(Nt||{}),ln=Object['defineProperty'],_n=Object[_0x48c788(0x2bd)],un=(_0x3892d3,_0x2f8bf1,_0x4da3ad,_0xfda2dd)=>{const _0xa1e0ff=_0x48c788;for(var _0x1bb37a=_0xfda2dd>0x1?void 0x0:_0xfda2dd?_n(_0x2f8bf1,_0x4da3ad):_0x2f8bf1,_0x1c8650=_0x3892d3[_0xa1e0ff(0x3c7)]-0x1,_0x3c56f2;_0x1c8650>=0x0;_0x1c8650--)(_0x3c56f2=_0x3892d3[_0x1c8650])&&(_0x1bb37a=(_0xfda2dd?_0x3c56f2(_0x2f8bf1,_0x4da3ad,_0x1bb37a):_0x3c56f2(_0x1bb37a))||_0x1bb37a);return _0xfda2dd&&_0x1bb37a&&ln(_0x2f8bf1,_0x4da3ad,_0x1bb37a),_0x1bb37a;},Vt=(_0x1fe1d7,_0x58578a)=>(_0x3fb384,_0x397d3c)=>_0x58578a(_0x3fb384,_0x397d3c,_0x1fe1d7);let ee=class extends _0x5de86a{constructor(_0x4fae7b,_0x27f9bb){const _0x2be683=_0x48c788;super(),l(this,'_roomMembers',new Map()),(this[_0x2be683(0x38c)]=_0x4fae7b,this['_userManagerService']=_0x27f9bb,this['disposeWithMe'](_0x308092(_0x10f2b0(this[_0x2be683(0x38c)][_0x2be683(0x2ea)](_0x5b42a8[_0x2be683(0x29e)])[_0x2be683(0x3bd)](_0x1262f1(_0x327ee2=>_0x327ee2[_0x2be683(0x451)]())),this[_0x2be683(0x38c)][_0x2be683(0x2ea)](_0x5b42a8[_0x2be683(0x4d4)])[_0x2be683(0x3bd)](_0x1262f1(_0x564d0a=>_0x564d0a[_0x2be683(0x451)]())),this[_0x2be683(0x38c)]['getTypeOfUnitDisposed$'](_0x5b42a8['UNIVER_SLIDE'])['pipe'](_0x1262f1(_0x2593e8=>_0x2593e8[_0x2be683(0x451)]())))['subscribe'](_0x35b0dc=>this[_0x2be683(0x350)](_0x35b0dc)))));}[_0x48c788(0x3d5)](_0x3259a0){const _0x157862=_0x48c788;this[_0x157862(0x4d3)][_0x157862(0x3d5)](_0x3259a0);}[_0x48c788(0x310)](){const _0xa33a9d=_0x48c788;return this[_0xa33a9d(0x4d3)][_0xa33a9d(0x310)]();}[_0x48c788(0x294)](_0x4e62c7,_0x11db6a){const _0x50e287=_0x48c788;let _0x1a6151=this['_roomMembers']['get'](_0x4e62c7);_0x1a6151||(_0x1a6151=new dn(),this['_roomMembers'][_0x50e287(0x25a)](_0x4e62c7,_0x1a6151)),_0x1a6151['updateMember'](_0x11db6a);}[_0x48c788(0x44a)](_0x55fb48,_0xc6170){const _0x8a1a78=_0x48c788,_0x8bf657=this['_roomMembers'][_0x8a1a78(0x4ce)](_0x55fb48);_0x8bf657&&_0x8bf657[_0x8a1a78(0x44a)](_0xc6170);}[_0x48c788(0x1c8)](_0x26bf8c){const _0x102e29=_0x48c788;return this['_roomMembers'][_0x102e29(0x4ce)](_0x26bf8c);}[_0x48c788(0x395)](_0xcec623,_0x49d8f3){const _0x29259e=_0x48c788,_0x3f2073=this[_0x29259e(0x38b)][_0x29259e(0x4ce)](_0xcec623);if(_0x3f2073)return _0x3f2073[_0x29259e(0x395)](_0x49d8f3);}['_removeRoom'](_0x524ac7){const _0x2cac2a=_0x48c788,_0x206038=this[_0x2cac2a(0x38b)][_0x2cac2a(0x4ce)](_0x524ac7);_0x206038&&(_0x206038['dispose'](),this[_0x2cac2a(0x38b)][_0x2cac2a(0x388)](_0x524ac7));}[_0x48c788(0x46e)](){const _0x2b0b63=_0x48c788;this[_0x2b0b63(0x38b)][_0x2b0b63(0x244)](_0x2b6f1f=>_0x2b6f1f[_0x2b0b63(0x46e)]()),this[_0x2b0b63(0x38b)][_0x2b0b63(0x338)]();}};ee=un([Vt(0x0,_0x5db99b),Vt(0x1,_0x1df0bc(_0x58e661))],ee);class dn extends _0x5de86a{constructor(){const _0x53d8fe=_0x48c788;super(...arguments),l(this,_0x53d8fe(0x2e9),new Map());}['dispose'](){const _0xfef5e7=_0x48c788;this[_0xfef5e7(0x2e9)][_0xfef5e7(0x338)]();}[_0x48c788(0x294)](_0x3e363a){const _0x1fc194=_0x48c788;this['_members'][_0x1fc194(0x25a)](_0x3e363a[_0x1fc194(0x260)],_0x3e363a);}[_0x48c788(0x44a)](_0x2e602e){const _0x7bfdf2=_0x48c788;this[_0x7bfdf2(0x2e9)][_0x7bfdf2(0x388)](_0x2e602e);}[_0x48c788(0x395)](_0x148321){const _0x27ddfa=_0x48c788;return this[_0x27ddfa(0x2e9)][_0x27ddfa(0x4ce)](_0x148321);}}function fn(_0x315ea8){const _0x3208e9=_0x48c788;var _0x3b6a25,_0x4745f4,_0x140c9c,_0x2ffb95;const _0x425ea5=_0x315ea8[_0x3208e9(0x43e)],_0x5eb557=JSON[_0x3208e9(0x1f6)](_0x425ea5);switch(_0x5eb557['cmd']){case I[_0x3208e9(0x412)]:case I[_0x3208e9(0x374)]:{const _0x4ea048=_0x5eb557[_0x3208e9(0x2d6)];return{..._0x5eb557,'data':_0x4ea048,'cmd':_0x5eb557['cmd']};}case I[_0x3208e9(0x3a4)]:{const _0x264cbe=_0x5eb557['joinRsp'];return{..._0x5eb557,'data':_0x264cbe,'cmd':_0x5eb557[_0x3208e9(0x476)]};}case I[_0x3208e9(0x1f7)]:{const _0x56194d=_0x5eb557[_0x3208e9(0x3ec)];switch(_0x56194d[_0x3208e9(0x420)]){case _0x64674d[_0x3208e9(0x468)]:return{..._0x5eb557,'data':{..._0x56194d,'data':(_0x3b6a25=_0x56194d[_0x3208e9(0x4d2)])==null?void 0x0:_0x3b6a25['cs']},'cmd':_0x5eb557['cmd']};case _0x64674d[_0x3208e9(0x30a)]:return{..._0x5eb557,'data':{..._0x56194d,'data':(_0x4745f4=_0x56194d[_0x3208e9(0x3e0)])==null?void 0x0:_0x4745f4['cs']},'cmd':_0x5eb557[_0x3208e9(0x476)]};case _0x64674d[_0x3208e9(0x222)]:return{..._0x5eb557,'data':{..._0x56194d,'data':(_0x140c9c=_0x56194d['newCsEvent'])==null?void 0x0:_0x140c9c['cs']},'cmd':_0x5eb557[_0x3208e9(0x476)]};case _0x64674d[_0x3208e9(0x440)]:return{..._0x5eb557,'data':{..._0x56194d,'data':(_0x2ffb95=_0x56194d['csRejEvent'])==null?void 0x0:_0x2ffb95['cs']},'cmd':_0x5eb557[_0x3208e9(0x476)]};case _0x64674d[_0x3208e9(0x1ed)]:return{..._0x5eb557,'data':{..._0x56194d,'data':_0x56194d[_0x3208e9(0x34d)]},'cmd':_0x5eb557[_0x3208e9(0x476)]};case _0x64674d['USERS_ENTER']:return{..._0x5eb557,'data':{..._0x56194d,'data':_0x56194d['joinEvent']},'cmd':_0x5eb557[_0x3208e9(0x476)]};case _0x64674d[_0x3208e9(0x22c)]:return{..._0x5eb557,'data':{..._0x56194d,'data':_0x56194d[_0x3208e9(0x438)]},'cmd':_0x5eb557[_0x3208e9(0x476)]};case _0x64674d[_0x3208e9(0x2ee)]:return{..._0x5eb557,'data':{..._0x56194d,'data':_0x56194d[_0x3208e9(0x40c)]},'cmd':_0x5eb557[_0x3208e9(0x476)]};case _0x64674d[_0x3208e9(0x1b8)]:case _0x64674d[_0x3208e9(0x3f5)]:return{..._0x5eb557,'data':{..._0x56194d,'data':_0x56194d['liveShareOperation']},'cmd':_0x5eb557[_0x3208e9(0x476)]};case _0x64674d[_0x3208e9(0x2d2)]:return{..._0x5eb557,'data':{..._0x56194d,'data':_0x56194d[_0x3208e9(0x40c)]},'cmd':_0x5eb557['cmd']};case _0x64674d[_0x3208e9(0x4a0)]:return{..._0x5eb557,'data':_0x56194d,'cmd':_0x5eb557[_0x3208e9(0x476)]};default:return _0x5eb557;}}default:return _0x5eb557;}}function gn(_0x46657f){const _0x397c09=_0x48c788;switch(_0x46657f[_0x397c09(0x476)]){case I['HEARTBEAT']:case I[_0x397c09(0x374)]:return JSON[_0x397c09(0x1ce)]({'cmd':_0x46657f['cmd'],'routeKey':_0x46657f[_0x397c09(0x423)]});case I[_0x397c09(0x2a7)]:{let _0x4233ae;switch(_0x46657f['data']['eventID']){case _0x64674d[_0x397c09(0x1ed)]:{_0x4233ae={'eventID':_0x64674d[_0x397c09(0x1ed)],'updateCursorEvent':_0x46657f[_0x397c09(0x43e)][_0x397c09(0x43e)]};break;}case _0x64674d[_0x397c09(0x22c)]:{_0x4233ae={'eventID':_0x64674d[_0x397c09(0x22c)],'leaveEvent':_0x46657f[_0x397c09(0x43e)][_0x397c09(0x43e)]};break;}case _0x64674d['USERS_ENTER']:{_0x4233ae={'eventID':_0x64674d[_0x397c09(0x4a1)],'joinEvent':_0x46657f[_0x397c09(0x43e)][_0x397c09(0x43e)]};break;}case _0x64674d['LIVESHARE_NEW_HOST']:{_0x4233ae={'eventID':_0x64674d[_0x397c09(0x2ee)],'liveShareNewHost':_0x46657f[_0x397c09(0x43e)][_0x397c09(0x43e)]};break;}case _0x64674d[_0x397c09(0x3f5)]:{_0x4233ae={'eventID':_0x64674d[_0x397c09(0x3f5)],'liveShareOperation':_0x46657f[_0x397c09(0x43e)]['data']};break;}case _0x64674d[_0x397c09(0x2d2)]:{_0x4233ae={'eventID':_0x64674d[_0x397c09(0x2d2)],'liveShareTerminate':_0x46657f[_0x397c09(0x43e)][_0x397c09(0x43e)]};break;}case _0x64674d[_0x397c09(0x3bb)]:{_0x4233ae={'eventID':_0x64674d[_0x397c09(0x3bb)],'liveShareRequestHost':_0x46657f['data'][_0x397c09(0x43e)]};break;}case _0x64674d[_0x397c09(0x1b8)]:{_0x4233ae={'eventID':_0x64674d[_0x397c09(0x1b8)]};break;}default:_0x4233ae={'eventID':_0x46657f[_0x397c09(0x43e)][_0x397c09(0x420)]};}return JSON['stringify']({'cmd':_0x46657f[_0x397c09(0x476)],'routeKey':_0x46657f['routeKey'],'collaMsg':_0x4233ae});}case I['JOIN']:return JSON[_0x397c09(0x1ce)]({'cmd':_0x46657f[_0x397c09(0x476)],'routeKey':_0x46657f[_0x397c09(0x423)],'joinReq':_0x46657f[_0x397c09(0x43e)]});case I[_0x397c09(0x3ad)]:return JSON['stringify']({'cmd':_0x46657f[_0x397c09(0x476)],'routeKey':_0x46657f[_0x397c09(0x423)],'leaveReq':_0x46657f[_0x397c09(0x43e)]});default:throw new Error(_0x397c09(0x1b4));}}var mn=Object['defineProperty'],Sn=Object[_0x48c788(0x2bd)],vn=(_0x4f8951,_0x3af5a1,_0xb0482a,_0x5f99fc)=>{for(var _0x4649d9=_0x5f99fc>0x1?void 0x0:_0x5f99fc?Sn(_0x3af5a1,_0xb0482a):_0x3af5a1,_0x3189b1=_0x4f8951['length']-0x1,_0x1f80c2;_0x3189b1>=0x0;_0x3189b1--)(_0x1f80c2=_0x4f8951[_0x3189b1])&&(_0x4649d9=(_0x5f99fc?_0x1f80c2(_0x3af5a1,_0xb0482a,_0x4649d9):_0x1f80c2(_0x4649d9))||_0x4649d9);return _0x5f99fc&&_0x4649d9&&mn(_0x3af5a1,_0xb0482a,_0x4649d9),_0x4649d9;},me=(_0x467d0c,_0x5f1764)=>(_0x33004a,_0x38b8fa)=>_0x5f1764(_0x33004a,_0x38b8fa,_0x467d0c);const Cs=_0x4e2518(_0x48c788(0x30b));function pn(_0x94027a,_0x34d377,_0x26d734){const _0x39561d=_0x48c788;return _0x94027a+'/'+_0x34d377+_0x39561d(0x327)+_0x26d734+_0x39561d(0x1fd);}let _t=class{constructor(_0x2af389,_0x2ae65c,_0x4b4e82,_0x2ca1cb,_0x1c36fa){const _0x224fa7=_0x48c788;this[_0x224fa7(0x4a9)]=_0x2af389,this[_0x224fa7(0x284)]=_0x2ae65c,this[_0x224fa7(0x35d)]=_0x4b4e82,this[_0x224fa7(0x2ad)]=_0x2ca1cb,this[_0x224fa7(0x220)]=_0x1c36fa;}[_0x48c788(0x242)](_0x3966b3){const _0x45c165=_0x48c788,_0x21d604=this[_0x45c165(0x284)][_0x45c165(0x242)](_0x3966b3);if(!_0x21d604)throw new Error(_0x45c165(0x357));const _0x306492=new _0x53ebaa(),_0x368957=new _0x255156();_0x306492['add'](_0x308092(_0x21d604[_0x45c165(0x4d7)][_0x45c165(0x237)](_0x5ef8a3=>_0x368957[_0x45c165(0x325)](_0x5ef8a3)))),_0x306492[_0x45c165(0x20d)](_0x308092(()=>_0x368957[_0x45c165(0x22e)]()));const _0x4b10f6=new _0x255156();_0x306492['add'](_0x308092(_0x21d604['error$'][_0x45c165(0x237)](_0x5b547f=>_0x4b10f6[_0x45c165(0x325)](_0x5b547f)))),_0x306492[_0x45c165(0x20d)](_0x308092(()=>_0x4b10f6[_0x45c165(0x22e)]()));const _0x4a8183=new _0x255156();_0x306492['add'](_0x308092(_0x21d604['message$']['subscribe'](_0x56c608=>{const _0x5393e1=_0x45c165,_0x4a143f=fn(_0x56c608);_0x4a8183[_0x5393e1(0x325)](_0x4a143f);}))),_0x306492[_0x45c165(0x20d)](_0x308092(()=>_0x4a8183[_0x45c165(0x22e)]()));const _0x4345b9=()=>{const _0x426e4b=_0x45c165;_0x4b10f6[_0x426e4b(0x325)](new Event(_0x426e4b(0x265))),_0x368957[_0x426e4b(0x325)](new CloseEvent(_0x426e4b(0x265))),_0x4f83e4[_0x426e4b(0x297)]();},_0x4f83e4={'memberID':'','close$':_0x368957[_0x45c165(0x1ec)](),'error$':_0x4b10f6[_0x45c165(0x1ec)](),'open$':_0x21d604[_0x45c165(0x34b)],'message$':_0x4a8183[_0x45c165(0x1ec)](),'send':_0x320b84=>{const _0x10220e=_0x45c165;if(_0x320b84[_0x10220e(0x476)]===I[_0x10220e(0x2a7)]){if(_0x320b84['data']['eventID']===_0x64674d[_0x10220e(0x250)]){this['_submitChangeset'](_0x4f83e4,_0x320b84[_0x10220e(0x43e)])['catch'](_0x40ca06=>{const _0x472ddf=_0x10220e;this[_0x472ddf(0x2ad)][_0x472ddf(0x1b3)](_0x40ca06),_0x4345b9();});return;}if(_0x320b84[_0x10220e(0x43e)][_0x10220e(0x420)]===_0x64674d[_0x10220e(0x251)]){const _0x10a549=_0x320b84['data'];this['_fetchMissChangesets'](_0x10a549)[_0x10220e(0x20e)](_0x1e4f0c=>{const _0x48c56e=_0x10220e;_0x4a8183['next']({'cmd':I[_0x48c56e(0x1f7)],'code':Nt['OK'],'routeKey':_0x10a549[_0x48c56e(0x43e)][_0x48c56e(0x2d3)],'routeType':'','data':{'eventID':_0x64674d[_0x48c56e(0x393)],'data':{'changesets':_0x1e4f0c}}});})[_0x10220e(0x2d7)](_0x560c7e=>{const _0x11d835=_0x10220e;this[_0x11d835(0x2ad)]['error'](_0x560c7e),_0x4345b9();});return;}}_0x21d604['send'](gn(_0x320b84));},'close':()=>{const _0x2f09a1=_0x45c165;_0x21d604[_0x2f09a1(0x297)](),_0x306492[_0x2f09a1(0x46e)]();}};return _0x4f83e4;}async[_0x48c788(0x221)](_0x1971e4,_0x20e0df){const _0x13eb8b=_0x48c788;var _0x2d0984;const {unitType:_0x39868f,unitID:_0x4dcfd8,changeset:_0x1ddcfb}=_0x20e0df[_0x13eb8b(0x43e)],_0x51095e={'unitID':_0x4dcfd8,'memberID':_0x1971e4[_0x13eb8b(0x260)],'type':_0x39868f,'changeset':_0x4444c6(_0x1ddcfb)},_0x25b9b4=pn((_0x2d0984=this[_0x13eb8b(0x35d)]['getConfig'](on))!=null?_0x2d0984:an,_0x39868f,_0x4dcfd8);try{await this[_0x13eb8b(0x4a9)][_0x13eb8b(0x4b4)](_0x25b9b4,{'body':_0x51095e});}catch(_0x2d8319){throw this[_0x13eb8b(0x2ad)]['error'](_0x13eb8b(0x402),'submit\x20changeset\x20error!'),_0x2d8319;}}async['_fetchMissChangesets'](_0x4ce042){const _0x592542=_0x48c788,{unitID:_0x1646ad,from:_0x364fcf,to:_0x4be44b,unitType:_0x21f0f7}=_0x4ce042[_0x592542(0x43e)];return(await this[_0x592542(0x220)][_0x592542(0x4bc)]({'metadata':void 0x0},{'unitID':_0x1646ad,'type':_0x21f0f7,'from':_0x364fcf,'to':_0x4be44b}))[_0x592542(0x49d)];}};_t=vn([me(0x0,_0x1df0bc(_0x49edd2)),me(0x1,_0x1df0bc(_0x15b3f3)),me(0x2,_0x475c15),me(0x3,_0xcf8387),me(0x4,_0x32765d)],_t);var In=Object[_0x48c788(0x299)],En=Object['getOwnPropertyDescriptor'],bs=(_0x159033,_0x32a3f2,_0x3524b4,_0x823a52)=>{const _0x5e20a3=_0x48c788;for(var _0x55e60c=_0x823a52>0x1?void 0x0:_0x823a52?En(_0x32a3f2,_0x3524b4):_0x32a3f2,_0x1fbd5d=_0x159033[_0x5e20a3(0x3c7)]-0x1,_0x44d992;_0x1fbd5d>=0x0;_0x1fbd5d--)(_0x44d992=_0x159033[_0x1fbd5d])&&(_0x55e60c=(_0x823a52?_0x44d992(_0x32a3f2,_0x3524b4,_0x55e60c):_0x44d992(_0x55e60c))||_0x55e60c);return _0x823a52&&_0x55e60c&&In(_0x32a3f2,_0x3524b4,_0x55e60c),_0x55e60c;},M=(_0x205c6f,_0x17e14e)=>(_0x232821,_0x5e1906)=>_0x17e14e(_0x232821,_0x5e1906,_0x205c6f),_e=(_0x18a672=>(_0x18a672[_0x18a672[_0x48c788(0x282)]=0x0]='IDLE',_0x18a672[_0x18a672[_0x48c788(0x377)]=0x1]=_0x48c788(0x377),_0x18a672[_0x18a672[_0x48c788(0x214)]=0x2]=_0x48c788(0x214),_0x18a672[_0x18a672['ONLINE']=0x3]=_0x48c788(0x431),_0x18a672))(_e||{});let ut=class extends _0x4f9c78{constructor(_0x499271,_0x3aee00,_0x2ec625,_0x10c206,_0x190329,_0x1cf9cd,_0x788ba3,_0x22df55){const _0x2e7fb5=_0x48c788;super(),l(this,'_sessionStatus$',new _0xac9643(0x0)),l(this,'sessionStatus$',this['_sessionStatus$'][_0x2e7fb5(0x1ec)]()),l(this,_0x2e7fb5(0x306),new _0x255156()),l(this,_0x2e7fb5(0x3d7),this[_0x2e7fb5(0x306)][_0x2e7fb5(0x1ec)]()),l(this,_0x2e7fb5(0x366)),l(this,_0x2e7fb5(0x4ab)),l(this,_0x2e7fb5(0x34a)),(this['_unitID']=_0x499271,this[_0x2e7fb5(0x2ad)]=_0x2ec625,this[_0x2e7fb5(0x3d2)]=_0x10c206,this[_0x2e7fb5(0x464)]=_0x190329,this['_configService']=_0x1cf9cd,this[_0x2e7fb5(0x314)]=_0x788ba3,this['_memberService']=_0x22df55,_0x3aee00[_0x2e7fb5(0x3bd)](_0x258fee(this[_0x2e7fb5(0x4c9)]))['subscribe'](_0x17cc5=>{const _0x19e1a1=_0x2e7fb5;var _0x5e595e;typeof _0x17cc5>'u'||(this[_0x19e1a1(0x366)]=_0x17cc5,_0x17cc5?(this['_joinRoom'](_0x17cc5),this[_0x19e1a1(0x4ab)]=this[_0x19e1a1(0x366)][_0x19e1a1(0x26c)]['subscribe'](_0x4d1e13=>{const _0x547918=_0x19e1a1;_0x4d1e13['routeKey']===this[_0x547918(0x318)]&&this[_0x547918(0x399)](_0x4d1e13);})):(this[_0x19e1a1(0x40d)][_0x19e1a1(0x325)](0x2),(_0x5e595e=this['_socketMessageSubscription'])==null||_0x5e595e[_0x19e1a1(0x1fa)](),this[_0x19e1a1(0x4ab)]=null));}),this[_0x2e7fb5(0x3e7)](this[_0x2e7fb5(0x3d2)][_0x2e7fb5(0x355)](()=>{const _0x1b0681=_0x2e7fb5;var _0x12bebb;(_0x12bebb=this['_socket'])==null||_0x12bebb[_0x1b0681(0x381)]({'cmd':I[_0x1b0681(0x3ad)],'data':{'roomID':this[_0x1b0681(0x318)]}});})));}get['sessionStatus'](){const _0x48becf=_0x48c788;return this[_0x48becf(0x40d)][_0x48becf(0x326)]();}[_0x48c788(0x329)](){const _0x45ff4b=_0x48c788;var _0x5e2203,_0x1019b1;return(_0x1019b1=(_0x5e2203=this['_socket'])==null?void 0x0:_0x5e2203[_0x45ff4b(0x260)])!=null?_0x1019b1:null;}[_0x48c788(0x46e)](){const _0x4a1ba6=_0x48c788;super[_0x4a1ba6(0x46e)](),this['dispose$'][_0x4a1ba6(0x325)](),this[_0x4a1ba6(0x4c9)][_0x4a1ba6(0x22e)]();}[_0x48c788(0x399)](_0x171629){const _0x16d1e5=_0x48c788;_0x171629['cmd']===I[_0x16d1e5(0x3a4)]?this[_0x16d1e5(0x389)](_0x171629):_0x171629[_0x16d1e5(0x476)]===I[_0x16d1e5(0x1f7)]&&this['_onRecvEvent'](_0x171629);}[_0x48c788(0x34c)](_0x70a1c3){const _0x4f2964=_0x48c788;this['_sessionStatus$'][_0x4f2964(0x325)](0x1),_0x70a1c3[_0x4f2964(0x381)]({'cmd':I[_0x4f2964(0x3a4)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}['_onJoinRoomEvent'](_0x549e0a){const _0x2e2160=_0x48c788;var _0x3a30dd;if(_0x549e0a['code']===Nt['FAIL']){this['_messageService'][_0x2e2160(0x4d1)]({'type':_0x16b663['Warning'],'content':this[_0x2e2160(0x314)]['t'](_0x2e2160(0x2a8))}),this[_0x2e2160(0x40d)][_0x2e2160(0x325)](0x2);return;}this[_0x2e2160(0x40d)]['next'](0x3);const _0xf9d5e4=(_0x3a30dd=_0x549e0a[_0x2e2160(0x43e)][_0x2e2160(0x37d)][this[_0x2e2160(0x318)]])==null?void 0x0:_0x3a30dd['members'];_0xf9d5e4&&_0xf9d5e4['forEach'](_0x457190=>this[_0x2e2160(0x28e)]['updateMember'](this[_0x2e2160(0x318)],_0x457190));}[_0x48c788(0x296)](_0x1913eb){const _0x3abd4c=_0x48c788;try{const _0xa40855=_0x1913eb['data'];switch(_0xa40855[_0x3abd4c(0x420)]){case _0x64674d[_0x3abd4c(0x4a1)]:this[_0x3abd4c(0x21c)](_0xa40855),this[_0x3abd4c(0x306)][_0x3abd4c(0x325)](_0xa40855);break;case _0x64674d['USERS_LEAVE']:this['_onUserLeave'](_0xa40855),this['_event$'][_0x3abd4c(0x325)](_0xa40855);break;case _0x64674d[_0x3abd4c(0x30a)]:this['_clearCollaborationTimeoutTimer'](),this[_0x3abd4c(0x306)][_0x3abd4c(0x325)](_0xa40855);break;case _0x64674d[_0x3abd4c(0x4a0)]:this[_0x3abd4c(0x2ad)][_0x3abd4c(0x1b3)](_0x3abd4c(0x4b9)+JSON[_0x3abd4c(0x1ce)](_0xa40855)),this[_0x3abd4c(0x306)]['next'](_0xa40855);break;default:this['_event$']['next'](_0xa40855);}}catch(_0x4fce6e){this[_0x3abd4c(0x2ad)][_0x3abd4c(0x1b3)](_0x4fce6e,_0x1913eb);}}[_0x48c788(0x21c)](_0x58e997){const _0x557188=_0x48c788;this[_0x557188(0x28e)][_0x557188(0x294)](this[_0x557188(0x318)],_0x58e997['data']);}[_0x48c788(0x37e)](_0x4e8e6b){const _0xcc2f12=_0x48c788;this[_0xcc2f12(0x28e)]['removeMember'](this['_unitID'],_0x4e8e6b[_0xcc2f12(0x43e)][_0xcc2f12(0x260)]);}async[_0x48c788(0x381)](_0x509ef8,_0x5a00af){const _0x20df17=_0x48c788;if(this[_0x20df17(0x3ea)]!==0x3||!this[_0x20df17(0x366)])throw new Error(_0x20df17(0x273));try{_0x509ef8[_0x20df17(0x420)]===_0x64674d[_0x20df17(0x222)]&&this[_0x20df17(0x48e)](),this[_0x20df17(0x366)][_0x20df17(0x381)]({'cmd':I[_0x20df17(0x2a7)],'routeKey':_0x5a00af,'routeType':'','data':_0x509ef8});}catch(_0x26698d){this['_logService']['error'](_0x26698d);}}[_0x48c788(0x48e)](){const _0x89f5b8=_0x48c788;var _0x33f8dd;this[_0x89f5b8(0x34a)]=window['setTimeout'](()=>{const _0x4f4760=_0x89f5b8;this[_0x4f4760(0x34a)]=null,this[_0x4f4760(0x464)][_0x4f4760(0x4d1)]({'type':_0x16b663[_0x4f4760(0x3f9)],'content':this[_0x4f4760(0x314)]['t']('session.collaboration-timeout')});},(_0x33f8dd=this['_configService']['getConfig'](ps))!=null?_0x33f8dd:Is);}[_0x48c788(0x442)](){const _0x16ced2=_0x48c788;this[_0x16ced2(0x34a)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}};ut=bs([M(0x2,_0xcf8387),M(0x3,_0x547f18),M(0x4,_0xcc97bb),M(0x5,_0x475c15),M(0x6,_0x1df0bc(_0x7ef8c9)),M(0x7,_0x1df0bc(ee))],ut);let Re=class extends _0x5de86a{constructor(_0x55035b,_0x279e58,_0x192c32,_0x2dfc60,_0xcfde59,_0x12d2fc){const _0x43b04a=_0x48c788;super(),l(this,'_socket$',new _0xac9643(void 0x0)),l(this,_0x43b04a(0x408),new Map()),l(this,_0x43b04a(0x1ca),new _0xac9643(0x0)),l(this,_0x43b04a(0x44b),this[_0x43b04a(0x1ca)][_0x43b04a(0x1ec)]()),l(this,_0x43b04a(0x246),!0x1),l(this,_0x43b04a(0x40e)),l(this,'_timeoutTimer'),l(this,'_retryConnectingTimer'),l(this,_0x43b04a(0x3de),0x0),(this['_injector']=_0x55035b,this[_0x43b04a(0x314)]=_0x279e58,this['_messageService']=_0x192c32,this[_0x43b04a(0x2ad)]=_0x2dfc60,this[_0x43b04a(0x35d)]=_0xcfde59,this['_socketService']=_0x12d2fc);}get['_socket'](){const _0x4eecd1=_0x48c788;return this[_0x4eecd1(0x429)][_0x4eecd1(0x326)]();}[_0x48c788(0x46e)](){const _0x4b72ee=_0x48c788;super[_0x4b72ee(0x46e)](),this['_sessions'][_0x4b72ee(0x244)](_0xf1364d=>_0xf1364d['dispose']()),this[_0x4b72ee(0x408)]['clear'](),this[_0x4b72ee(0x1ca)][_0x4b72ee(0x22e)]();}async[_0x48c788(0x44c)](_0x7ec7fd){const _0x11b63e=_0x48c788;if(this['_sessions'][_0x11b63e(0x3f4)](_0x7ec7fd))return this[_0x11b63e(0x408)][_0x11b63e(0x4ce)](_0x7ec7fd);this[_0x11b63e(0x1ea)]();const _0x14dea4=this[_0x11b63e(0x2e1)][_0x11b63e(0x3a1)](ut,_0x7ec7fd,this[_0x11b63e(0x429)][_0x11b63e(0x1ec)]());return this[_0x11b63e(0x408)][_0x11b63e(0x25a)](_0x7ec7fd,_0x14dea4),_0x14dea4;}[_0x48c788(0x216)](){const _0x42a983=_0x48c788;var _0x157055;const _0x54c656=(_0x157055=this[_0x42a983(0x35d)][_0x42a983(0x2d9)](Ji))!=null?_0x157055:zi;return this[_0x42a983(0x2fb)][_0x42a983(0x242)](_0x54c656);}[_0x48c788(0x1ea)](){const _0x692473=_0x48c788;try{const _0x1f57bd=this['_createSocket']();if(_0x1f57bd){const _0x3730c9=_0x1f57bd[_0x692473(0x381)];_0x1f57bd[_0x692473(0x381)]=_0xcad733=>(this[_0x692473(0x205)](),_0x3730c9[_0x692473(0x321)](_0x1f57bd,[_0xcad733])),_0x1f57bd['message$'][_0x692473(0x237)](_0x2ce5f4=>this[_0x692473(0x373)](_0x1f57bd,_0x2ce5f4)),_0x1f57bd[_0x692473(0x248)][_0x692473(0x3bd)](_0x332c11(0x1))[_0x692473(0x237)](_0x1e0c59=>this[_0x692473(0x2ad)][_0x692473(0x1b3)]('[CollaborationSessionService]:\x20socket\x20error',_0x1e0c59)),_0x1f57bd[_0x692473(0x34b)]['pipe'](_0x332c11(0x1))[_0x692473(0x237)](()=>{const _0x19673c=_0x692473;this[_0x19673c(0x3db)](_0x1f57bd);}),_0x1f57bd['close$']['pipe'](_0x332c11(0x1))[_0x692473(0x237)](_0x3ead90=>{const _0x525d5e=_0x692473;this[_0x525d5e(0x2ad)][_0x525d5e(0x1b0)]('[CollaborationSessionService]','socket\x20close',_0x3ead90),this[_0x525d5e(0x2b1)]();});}}catch(_0x2437ee){this[_0x692473(0x2ad)][_0x692473(0x1b3)](_0x2437ee),this[_0x692473(0x2b1)]();}}['_onConnectionOpen'](_0x26a4d4){const _0x2fc99a=_0x48c788;this[_0x2fc99a(0x2ad)][_0x2fc99a(0x1b0)]('[CollaborationSessionService]',_0x2fc99a(0x38a)),_0x26a4d4[_0x2fc99a(0x381)]({'cmd':I[_0x2fc99a(0x374)]}),this[_0x2fc99a(0x205)]();}[_0x48c788(0x2b1)](){const _0x435fd5=_0x48c788;var _0x360773;this[_0x435fd5(0x1ca)]['next'](0x2),this[_0x435fd5(0x429)][_0x435fd5(0x325)](null),this[_0x435fd5(0x1f0)](),this[_0x435fd5(0x496)](),this[_0x435fd5(0x246)]=!0x1,this[_0x435fd5(0x3de)]<((_0x360773=this[_0x435fd5(0x35d)]['getConfig'](tn))!=null?_0x360773:sn)?(this[_0x435fd5(0x356)](this[_0x435fd5(0x3de)]),this[_0x435fd5(0x3de)]+=0x1):this[_0x435fd5(0x464)][_0x435fd5(0x4d1)]({'type':_0x16b663[_0x435fd5(0x3f9)],'content':this[_0x435fd5(0x314)]['t'](_0x435fd5(0x341))});}['_scheduleReconnection'](_0xc3d16b){const _0x7b544f=_0x48c788;var _0x558fa7;const _0x49f366=((_0x558fa7=this[_0x7b544f(0x35d)][_0x7b544f(0x2d9)](Qi))!=null?_0x558fa7:en)*0x2**_0xc3d16b;this['_messageService'][_0x7b544f(0x4d1)]({'type':_0x16b663[_0x7b544f(0x39e)],'content':this[_0x7b544f(0x314)]['t'](_0x7b544f(0x2f7))}),this['_retryConnectingTimer']=setTimeout(()=>{const _0x36aa59=_0x7b544f;this[_0x36aa59(0x1ea)](),clearTimeout(this[_0x36aa59(0x38d)]),this[_0x36aa59(0x38d)]=null;},_0x49f366);}[_0x48c788(0x205)](){const _0x2c992f=_0x48c788;var _0x45cd07;this[_0x2c992f(0x496)](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x2c992f(0x217)](),(_0x45cd07=this['_configService'][_0x2c992f(0x2d9)](qi))!=null?_0x45cd07:Zi);}[_0x48c788(0x217)](){const _0x4ff502=_0x48c788;this['_socket'][_0x4ff502(0x381)]({'cmd':I[_0x4ff502(0x412)]}),this['_waitForHeartbeatResponse']();}[_0x48c788(0x3bc)](){const _0x362e3f=_0x48c788;var _0x6312ec;this[_0x362e3f(0x2ed)]=setTimeout(()=>this[_0x362e3f(0x2b1)](),(_0x6312ec=this[_0x362e3f(0x35d)][_0x362e3f(0x2d9)](ps))!=null?_0x6312ec:Is);}[_0x48c788(0x373)](_0x241b56,_0x3423d5){const _0x3347f2=_0x48c788,{cmd:_0x7d6fb5}=_0x3423d5;_0x7d6fb5===I[_0x3347f2(0x374)]&&!this[_0x3347f2(0x246)]&&(_0x241b56['memberID']=_0x3423d5[_0x3347f2(0x43e)][_0x3347f2(0x260)],this[_0x3347f2(0x429)][_0x3347f2(0x325)](_0x241b56),this['_status$'][_0x3347f2(0x325)](0x3),this[_0x3347f2(0x246)]=!0x0),_0x7d6fb5===I[_0x3347f2(0x412)]&&this['_clearTimeoutTimer'](),this[_0x3347f2(0x205)]();}[_0x48c788(0x496)](){const _0x3bc208=_0x48c788;this[_0x3bc208(0x40e)]!=null&&(clearTimeout(this[_0x3bc208(0x40e)]),this[_0x3bc208(0x40e)]=null);}[_0x48c788(0x1f0)](){const _0x43f55b=_0x48c788;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x43f55b(0x2ed)]),this[_0x43f55b(0x2ed)]=null);}};Re=bs([M(0x0,_0x1df0bc(_0x1883e3)),M(0x1,_0x1df0bc(_0x7ef8c9)),M(0x2,_0xcc97bb),M(0x3,_0xcf8387),M(0x4,_0x475c15),M(0x5,Cs)],Re);var Cn=Object[_0x48c788(0x299)],bn=Object[_0x48c788(0x2bd)],Rn=(_0x406580,_0x51016b,_0x12f31f,_0x118272)=>{const _0x4d735c=_0x48c788;for(var _0x3dd9c4=_0x118272>0x1?void 0x0:_0x118272?bn(_0x51016b,_0x12f31f):_0x51016b,_0x441c94=_0x406580[_0x4d735c(0x3c7)]-0x1,_0xb4953;_0x441c94>=0x0;_0x441c94--)(_0xb4953=_0x406580[_0x441c94])&&(_0x3dd9c4=(_0x118272?_0xb4953(_0x51016b,_0x12f31f,_0x3dd9c4):_0xb4953(_0x3dd9c4))||_0x3dd9c4);return _0x118272&&_0x3dd9c4&&Cn(_0x51016b,_0x12f31f,_0x3dd9c4),_0x3dd9c4;},Se=(_0x55639b,_0x9cf9f2)=>(_0x497a14,_0x5593df)=>_0x9cf9f2(_0x497a14,_0x5593df,_0x55639b);let D=class extends _0x5de86a{constructor(_0xdee53d,_0x25d618,_0x3bd6d6,_0x191bcc,_0x5a53f7){const _0x37d8d5=_0x48c788;super(),l(this,_0x37d8d5(0x24b),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x37d8d5(0x210),!0x1),(this['_configService']=_0xdee53d,this['_localStorageService']=_0x25d618,this['_beforeCloseService']=_0x3bd6d6,this[_0x37d8d5(0x314)]=_0x191bcc,this[_0x37d8d5(0x3f3)]=_0x5a53f7,this['_setupBeforeClosingHandler']());}[_0x48c788(0x2c2)](){const _0x1f8bfd=_0x48c788;this[_0x1f8bfd(0x210)]=!0x0;}[_0x48c788(0x385)](){this['_disabled']=!0x1;}[_0x48c788(0x46e)](){const _0x1b9442=_0x48c788;this[_0x1b9442(0x1b1)]()[_0x1b9442(0x20e)](()=>super['dispose']());}async[_0x48c788(0x256)](_0x2d55ef){const _0x5075b2=_0x48c788;return this[_0x5075b2(0x210)]?null:this[_0x5075b2(0x390)][_0x5075b2(0x434)](Wt(_0x2d55ef));}async[_0x48c788(0x4ad)](_0x71c877,_0x445578){const _0x5198f8=_0x48c788;return!!this[_0x5198f8(0x390)][_0x5198f8(0x4c3)](_0x71c877,_0x445578);}[_0x48c788(0x27d)](_0x143650,_0x314015,_0x32b444,_0x1cb048){const _0x17a358=_0x48c788,_0x2770d9=this[_0x17a358(0x3f3)][_0x17a358(0x4b1)](_0x143650);this['_cachedData'][_0x17a358(0x25a)](_0x143650,{'unitID':_0x143650,'type':_0x314015,'awaitingChangeset':_0x32b444,'mutations':_0x1cb048,'rev':_0x2770d9}),this[_0x17a358(0x3b2)][_0x17a358(0x3f4)](_0x143650)||this[_0x17a358(0x204)](_0x143650);}[_0x48c788(0x204)](_0x8c420d){const _0x16c240=_0x48c788,_0x708f04=this[_0x16c240(0x2fa)]();_0x708f04===0x0?this['_saveCache'](_0x8c420d):this['_saveTaskMap']['set'](_0x8c420d,setTimeout(()=>this[_0x16c240(0x309)](_0x8c420d),_0x708f04));}[_0x48c788(0x2fa)](){const _0x323f8e=_0x48c788;var _0x28db35;return(_0x28db35=this[_0x323f8e(0x35d)]['getConfig'](nn))!=null?_0x28db35:rn;}['_saveCache'](_0x166db3){const _0x2fe938=_0x48c788,_0x300782=this[_0x2fe938(0x3b2)]['get'](_0x166db3);return _0x300782!==void 0x0&&window[_0x2fe938(0x31e)](_0x300782),this[_0x2fe938(0x390)][_0x2fe938(0x4c3)](Wt(_0x166db3),this[_0x2fe938(0x24b)][_0x2fe938(0x4ce)](_0x166db3))['then'](()=>this['_saveTaskMap'][_0x2fe938(0x388)](_0x166db3));}async[_0x48c788(0x1b1)](){const _0x29c594=_0x48c788,_0x3303bf=[];this[_0x29c594(0x3b2)][_0x29c594(0x244)]((_0xff9a15,_0x2918e0)=>{const _0x4f421a=_0x29c594;window[_0x4f421a(0x31e)](_0xff9a15),_0x3303bf[_0x4f421a(0x3ae)](this[_0x4f421a(0x309)](_0x2918e0)[_0x4f421a(0x20e)](()=>{const _0x1eb245=_0x4f421a;this[_0x1eb245(0x3b2)]['delete'](_0x2918e0);}));}),await Promise[_0x29c594(0x42e)](_0x3303bf);}[_0x48c788(0x3ac)](){const _0x24ffe7=_0x48c788;this[_0x24ffe7(0x3e7)](this['_beforeCloseService'][_0x24ffe7(0x280)](()=>{const _0x21e1a1=_0x24ffe7;if(this[_0x21e1a1(0x3b2)][_0x21e1a1(0x457)])return this[_0x21e1a1(0x314)]['t']('collaboration-client.offline-data-not-saved');}));}};D=Rn([Se(0x0,_0x475c15),Se(0x1,_0x2bd6b3),Se(0x2,_0x547f18),Se(0x3,_0x1df0bc(_0x7ef8c9)),Se(0x4,_0x1df0bc(_0x2426c9))],D);function Wt(_0x40d4ca){const _0x214737=_0x48c788;return _0x214737(0x31c)+_0x40d4ca;}const Xe=_0x4e2518('univer-pro.collaboration-client.single-active-unit-service');var Rs=(_0x18c0d8=>(_0x18c0d8[_0x18c0d8[_0x48c788(0x32a)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x18c0d8[_0x18c0d8['OTHER_CLIENTS_EDITING']=0x1]=_0x48c788(0x2cd),_0x18c0d8))(Rs||{});const Gt=0x7530,Yt=_0x48c788(0x200);class Tn extends _0x5de86a{constructor(){const _0x2c7e3c=_0x48c788;super(),l(this,_0x2c7e3c(0x3dd),_0x41ebb1[_0x2c7e3c(0x2e7)]()),l(this,_0x2c7e3c(0x4cf),new Set()),l(this,_0x2c7e3c(0x277),new Map()),l(this,'_heartbeatTimer',null),l(this,_0x2c7e3c(0x211),new Map()),l(this,'_unitStatus',new Map()),this[_0x2c7e3c(0x340)]();}['dispose'](){const _0x110166=_0x48c788;super['dispose'](),this[_0x110166(0x211)][_0x110166(0x244)]((_0x294836,_0x4456c8)=>this[_0x110166(0x279)](_0x4456c8)),this['_heartbeatTimer']&&window[_0x110166(0x44f)](this[_0x110166(0x3b4)]);}[_0x48c788(0x36f)](_0x398cab){const _0x1bd2bf=_0x48c788;return this[_0x1bd2bf(0x482)](_0x398cab)[_0x1bd2bf(0x3bd)](_0xbaf3d7());}['editingUnit'](_0x43e838){const _0x417106=_0x48c788;this[_0x417106(0x4cf)]['size']===0x0&&this[_0x417106(0x3f0)](),this[_0x417106(0x4cf)][_0x417106(0x20d)](_0x43e838),this['_send']({'type':0x0,'memberID':this[_0x417106(0x3dd)],'unitIDs':[_0x43e838],'isForwarded':!0x1});}['disposeUnit'](_0x3dd344){const _0x4d0fe2=_0x48c788;this['_selfUnitIDs'][_0x4d0fe2(0x388)](_0x3dd344),this[_0x4d0fe2(0x4cf)]['size']===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x4d0fe2(0x3b4)]);}[_0x48c788(0x340)](){const _0xa8666d=_0x48c788;this['disposeWithMe'](_0x308092(_0x3afa96(window,_0xa8666d(0x227))[_0xa8666d(0x237)](_0x307168=>{const _0x1cac98=_0xa8666d;if(_0x307168['key']!==Yt||!_0x307168[_0x1cac98(0x289)])return;const _0x75f909=JSON['parse'](_0x307168[_0x1cac98(0x289)]);this[_0x1cac98(0x1dd)](_0x75f909);}))),window[_0xa8666d(0x3c1)]('unload',()=>this[_0xa8666d(0x463)]({'type':0x1,'memberID':this[_0xa8666d(0x3dd)],'unitIDs':Array[_0xa8666d(0x444)](this[_0xa8666d(0x4cf)])}));}[_0x48c788(0x1dd)](_0x5c845c){const _0x26d8cf=_0x48c788;switch(_0x5c845c[_0x26d8cf(0x45b)]){case 0x0:this['_handleJoinEvent'](_0x5c845c);break;case 0x1:this[_0x26d8cf(0x1f1)](_0x5c845c);break;case 0x2:this[_0x26d8cf(0x328)](_0x5c845c);break;}}[_0x48c788(0x465)](_0x14ac01){const _0x11eb4a=_0x48c788,{unitIDs:_0x5b1f0a,memberID:_0x42ef08,isForwarded:_0xcd3ddc}=_0x14ac01;_0x5b1f0a['forEach'](_0x2dc694=>{const _0x47d507=_0x1999;if(!_0xcd3ddc&&this[_0x47d507(0x277)][_0x47d507(0x3f4)](_0x2dc694)&&this[_0x47d507(0x482)](_0x2dc694)[_0x47d507(0x325)](0x1),!this[_0x47d507(0x277)][_0x47d507(0x3f4)](_0x2dc694)||!this[_0x47d507(0x277)]['get'](_0x2dc694)[_0x47d507(0x3f4)](_0x42ef08)){const _0x161e49=this[_0x47d507(0x277)][_0x47d507(0x4ce)](_0x2dc694)||new Set();_0x161e49[_0x47d507(0x20d)](_0x42ef08),this[_0x47d507(0x277)]['set'](_0x2dc694,_0x161e49),this[_0x47d507(0x2ae)](_0x42ef08);}}),_0xcd3ddc||this[_0x11eb4a(0x463)]({'type':0x0,'memberID':this[_0x11eb4a(0x3dd)],'unitIDs':[...this[_0x11eb4a(0x4cf)]],'isForwarded':!0x0});}[_0x48c788(0x2ae)](_0xee7848){const _0x2e44cb=_0x48c788;this[_0x2e44cb(0x279)](_0xee7848);const _0x496387=window[_0x2e44cb(0x41b)](()=>{const _0x404b8c=_0x2e44cb;this[_0x404b8c(0x277)]['forEach'](_0x3adb09=>{const _0x4747bd=_0x404b8c;_0x3adb09[_0x4747bd(0x388)](_0xee7848);});},Gt*0x2);this[_0x2e44cb(0x211)][_0x2e44cb(0x25a)](_0xee7848,_0x496387);}[_0x48c788(0x279)](_0x41f55b){const _0x5a374e=_0x48c788;if(this[_0x5a374e(0x211)][_0x5a374e(0x3f4)](_0x41f55b)){const _0x199c10=this[_0x5a374e(0x211)][_0x5a374e(0x4ce)](_0x41f55b);_0x199c10&&window[_0x5a374e(0x31e)](_0x199c10),this[_0x5a374e(0x211)][_0x5a374e(0x25a)](_0x41f55b,null);}}[_0x48c788(0x1f1)](_0x4aef8a){const _0x524af4=_0x48c788,{memberID:_0x33a009,unitIDs:_0x163d0a}=_0x4aef8a;_0x163d0a[_0x524af4(0x244)](_0x1b4a99=>{const _0x561b4b=_0x524af4;var _0xb9a698;const _0xf9085f=this[_0x561b4b(0x277)][_0x561b4b(0x4ce)](_0x1b4a99);_0xf9085f&&(_0xf9085f['delete'](_0x33a009),(_0xb9a698=this[_0x561b4b(0x482)](_0x1b4a99))==null||_0xb9a698[_0x561b4b(0x325)](_0xf9085f['size']===0x0?0x0:0x1));}),this[_0x524af4(0x279)](_0x33a009);}[_0x48c788(0x328)](_0x7195f9){const _0xd909d9=_0x48c788;this[_0xd909d9(0x2ae)](_0x7195f9[_0xd909d9(0x260)]);}[_0x48c788(0x463)](_0x17a80d){const _0x54f68c=_0x48c788;localStorage[_0x54f68c(0x4c3)](Yt,JSON['stringify'](_0x17a80d));}[_0x48c788(0x3f0)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x2b9f2b=_0x1999;this[_0x2b9f2b(0x463)]({'type':0x2,'memberID':this[_0x2b9f2b(0x3dd)]});},Gt);}['_ensureSubject'](_0x4374e3){const _0x237968=_0x48c788;return this[_0x237968(0x274)][_0x237968(0x3f4)](_0x4374e3)||this[_0x237968(0x274)][_0x237968(0x25a)](_0x4374e3,new _0xac9643(0x0)),this[_0x237968(0x274)][_0x237968(0x4ce)](_0x4374e3);}}var On=Object['defineProperty'],Dn=Object['getOwnPropertyDescriptor'],wn=(_0x16dc72,_0x14d0c7,_0x3fefcf,_0x522936)=>{const _0x4f631e=_0x48c788;for(var _0x1f63b7=_0x522936>0x1?void 0x0:_0x522936?Dn(_0x14d0c7,_0x3fefcf):_0x14d0c7,_0x5c221b=_0x16dc72[_0x4f631e(0x3c7)]-0x1,_0xe4a641;_0x5c221b>=0x0;_0x5c221b--)(_0xe4a641=_0x16dc72[_0x5c221b])&&(_0x1f63b7=(_0x522936?_0xe4a641(_0x14d0c7,_0x3fefcf,_0x1f63b7):_0xe4a641(_0x1f63b7))||_0x1f63b7);return _0x522936&&_0x1f63b7&&On(_0x14d0c7,_0x3fefcf,_0x1f63b7),_0x1f63b7;},Kt=(_0x2e688a,_0x363b1c)=>(_0x1efe6f,_0x16784e)=>_0x363b1c(_0x1efe6f,_0x16784e,_0x2e688a);let ke=class{constructor(_0x5c18c8,_0x25c59){const _0x2c174a=_0x48c788;this[_0x2c174a(0x2e1)]=_0x5c18c8,this[_0x2c174a(0x231)]=_0x25c59;}[_0x48c788(0x1c5)](_0x4f888a){const _0x43222f=_0x48c788;this['_transformUndoRedoStack'](_0x4f888a),this[_0x43222f(0x47f)](_0x4f888a);}[_0x48c788(0x1cf)](_0x89c505){const _0x2aaa71=_0x48c788,_0x3e7106=this[_0x2aaa71(0x2e1)]['get'](_0x5c948d),{redoCache:_0x5f40ae}=_0x3e7106['getUndoRedoMutationParamsCache']();if(_0x5f40ae[_0x2aaa71(0x3c7)]===0x0)return _0x89c505;let _0x42b54f=_0x41ebb1[_0x2aaa71(0x3ba)](_0x89c505[_0x2aaa71(0x3b5)][0x0]);for(let _0x518fc4=0x0;_0x518fc4<_0x5f40ae[_0x2aaa71(0x3c7)];_0x518fc4++){const _0x2e831d={'id':'doc.mutation.rich-text-editing','params':{..._0x5f40ae[_0x518fc4]}},_0x2be7bd=this[_0x2aaa71(0x231)]['transformMutation'](_0x42b54f,_0x2e831d,!0x1);if(_0x1ce5e8(_0x2be7bd))throw _0x2be7bd[_0x2aaa71(0x1b3)];_0x42b54f=_0x2be7bd['m1Prime'];}return{..._0x41ebb1[_0x2aaa71(0x3ba)](_0x89c505),'mutations':[_0x42b54f]};}['_transformUndoRedoStack'](_0x7e96f2){const _0x4666e8=_0x48c788,_0x3ccd7b=this[_0x4666e8(0x2e1)][_0x4666e8(0x4ce)](_0x5c948d),{undoCache:_0x223918,redoCache:_0x2c397e}=_0x3ccd7b[_0x4666e8(0x411)]();if(_0x223918['length']===0x0||_0x2c397e[_0x4666e8(0x3c7)]===0x0)return;const _0x3d2dac=[],_0x5c3d1e=[];let _0x23837d=_0x41ebb1[_0x4666e8(0x3ba)](_0x7e96f2['mutations'][0x0]),_0x9c904a=_0x41ebb1['deepClone'](_0x7e96f2[_0x4666e8(0x3b5)][0x0]);for(let _0x200261=_0x223918[_0x4666e8(0x3c7)]-0x1;_0x200261>=0x0;_0x200261--){const _0x2182a9={'id':_0x4666e8(0x4b6),'params':{..._0x223918[_0x200261]}},_0x54916a={'id':_0x4666e8(0x4b6),'params':{..._0x2c397e[_0x200261]}},_0x5220e5=this[_0x4666e8(0x231)][_0x4666e8(0x33b)](_0x23837d,_0x2182a9,!0x1),_0x8b09bb=this[_0x4666e8(0x231)][_0x4666e8(0x33b)](_0x9c904a,_0x54916a,!0x1);if(_0x1ce5e8(_0x5220e5))throw _0x5220e5[_0x4666e8(0x1b3)];if(_0x1ce5e8(_0x8b09bb))throw _0x8b09bb[_0x4666e8(0x1b3)];_0x3d2dac[_0x4666e8(0x384)](_0x5220e5[_0x4666e8(0x1bc)][_0x4666e8(0x23e)]),_0x5c3d1e[_0x4666e8(0x384)](_0x8b09bb[_0x4666e8(0x1bc)][_0x4666e8(0x23e)]),_0x23837d=_0x5220e5[_0x4666e8(0x415)],_0x9c904a=_0x8b09bb[_0x4666e8(0x415)];}_0x3ccd7b[_0x4666e8(0x232)]({'undoCache':_0x3d2dac,'redoCache':_0x5c3d1e});}[_0x48c788(0x47f)](_0x1445ed){const _0x30ca54=_0x48c788,_0x3e9a38=this['_injector'][_0x30ca54(0x4ce)](_0x5c948d),_0x1f93b5=_0x3e9a38[_0x30ca54(0x233)]();if(_0x1f93b5==null)return;const _0x27fdf7=[{'id':_0x30ca54(0x4b6),'params':{'unitId':_0x1445ed[_0x30ca54(0x2d3)],'actions':null,'textRanges':[_0x1f93b5]}}],_0x57f087=this[_0x30ca54(0x231)][_0x30ca54(0x313)](_0x1445ed,_0x27fdf7);if(!_0x13e3eb(_0x57f087))throw _0x57f087[_0x30ca54(0x1b3)];const _0x17ca70=_0x57f087[_0x30ca54(0x1bc)][0x0][_0x30ca54(0x23e)]['textRanges'];Array[_0x30ca54(0x1c9)](_0x17ca70)&&_0x17ca70[_0x30ca54(0x3c7)]&&_0x3e9a38[_0x30ca54(0x1e5)](_0x17ca70[0x0]);}};ke=wn([Kt(0x0,_0x1df0bc(_0x1883e3)),Kt(0x1,_0x56e350)],ke);var Pn=Object[_0x48c788(0x299)],Nn=Object['getOwnPropertyDescriptor'],Mn=(_0xfa8bdc,_0x248571,_0x1ddd9f,_0x9df5ab)=>{const _0x53c845=_0x48c788;for(var _0x5c2e43=_0x9df5ab>0x1?void 0x0:_0x9df5ab?Nn(_0x248571,_0x1ddd9f):_0x248571,_0x356c4b=_0xfa8bdc[_0x53c845(0x3c7)]-0x1,_0x4be695;_0x356c4b>=0x0;_0x356c4b--)(_0x4be695=_0xfa8bdc[_0x356c4b])&&(_0x5c2e43=(_0x9df5ab?_0x4be695(_0x248571,_0x1ddd9f,_0x5c2e43):_0x4be695(_0x5c2e43))||_0x5c2e43);return _0x9df5ab&&_0x5c2e43&&Pn(_0x248571,_0x1ddd9f,_0x5c2e43),_0x5c2e43;},Xt=(_0x728457,_0x4e1d08)=>(_0x25f325,_0x1eefd4)=>_0x4e1d08(_0x25f325,_0x1eefd4,_0x728457);let Be=class{constructor(_0x6e782e,_0x4bf51a){const _0x182ceb=_0x48c788;this[_0x182ceb(0x2e1)]=_0x6e782e,this[_0x182ceb(0x231)]=_0x4bf51a;}['transformSelections'](_0x21aae1){const _0xe169da=_0x48c788;var _0xa1b684;const _0x4d1f8c=this[_0xe169da(0x2e1)][_0xe169da(0x4ce)](_0x3953fa),_0x557efb=(_0xa1b684=_0x4d1f8c[_0xe169da(0x2cf)]())!=null?_0xa1b684:[],_0x52977e=_0x557efb==null?void 0x0:_0x557efb['map'](_0x478cbe);if(_0x52977e['length']===0x0)return;const _0x39d0a0=[{'id':_0xe169da(0x4b6),'params':{'unitId':_0x21aae1[_0xe169da(0x2d3)],'actions':null,'textRanges':_0x52977e}}],_0x5be83e=this[_0xe169da(0x231)][_0xe169da(0x313)](_0x21aae1,_0x39d0a0);if(!_0x13e3eb(_0x5be83e))throw _0x5be83e['error'];const _0x3a020d=_0x5be83e[_0xe169da(0x1bc)][0x0][_0xe169da(0x23e)][_0xe169da(0x410)];Array[_0xe169da(0x1c9)](_0x3a020d)&&_0x3a020d['length']&&_0x4d1f8c[_0xe169da(0x275)](_0x3a020d,!0x1);}};Be=Mn([Xt(0x0,_0x1df0bc(_0x1883e3)),Xt(0x1,_0x56e350)],Be);function Ts(_0x4d459b){let _0x577c1a='';for(const _0x4f397f of _0x4d459b){const {startOffset:_0x48edc5,endOffset:_0x210d4b,isActive:_0x540baa}=_0x4f397f;_0x577c1a['length']&&(_0x577c1a+=','),_0x577c1a+=_0x48edc5+':'+_0x210d4b+':'+(_0x540baa?'1':'0');}return _0x577c1a;}function An(_0x273223){const _0x10ca0a=_0x48c788,_0x5b350b=_0x273223[_0x10ca0a(0x2c4)](','),_0x12ed03=[];for(const _0x39014a of _0x5b350b){const [_0xe88d6e,_0x456b3c,_0x4ea418]=_0x39014a[_0x10ca0a(0x2c4)](':');_0x12ed03[_0x10ca0a(0x3ae)]({'startOffset':Number(_0xe88d6e),'endOffset':Number(_0x456b3c),'collapsed':_0xe88d6e===_0x456b3c,'isActive':_0x4ea418==='1'});}return _0x12ed03[_0x10ca0a(0x364)](_0x49ebb6=>_0x49ebb6[_0x10ca0a(0x271)])||(_0x12ed03[0x0][_0x10ca0a(0x271)]=!0x0),_0x12ed03;}class Mt extends _0x4f9c78{constructor(){const _0x5f5a6d=_0x48c788;super(...arguments),l(this,'_collabCursorState$',new _0xac9643(null)),l(this,_0x5f5a6d(0x343),this[_0x5f5a6d(0x22d)]['asObservable']());}[_0x48c788(0x4d5)](_0x3ebd27){const _0x12b469=_0x48c788,{unitID:_0x2cb147,memberID:_0x464c15,textRanges:_0x1e3ff9}=_0x3ebd27,_0x131c48=Ts(_0x1e3ff9),_0x57c800={'unitID':_0x2cb147,'memberID':_0x464c15,'selection':_0x131c48};this[_0x12b469(0x22d)][_0x12b469(0x325)](_0x57c800);}}var yn=Object[_0x48c788(0x299)],Un=Object[_0x48c788(0x2bd)],Ln=(_0xf0633c,_0x4847de,_0x5d477e,_0x28d8fe)=>{for(var _0x1c81e0=_0x28d8fe>0x1?void 0x0:_0x28d8fe?Un(_0x4847de,_0x5d477e):_0x4847de,_0x223eb9=_0xf0633c['length']-0x1,_0x4d3e33;_0x223eb9>=0x0;_0x223eb9--)(_0x4d3e33=_0xf0633c[_0x223eb9])&&(_0x1c81e0=(_0x28d8fe?_0x4d3e33(_0x4847de,_0x5d477e,_0x1c81e0):_0x4d3e33(_0x1c81e0))||_0x1c81e0);return _0x28d8fe&&_0x1c81e0&&yn(_0x4847de,_0x5d477e,_0x1c81e0),_0x1c81e0;},Jt=(_0x3dd968,_0x389f5b)=>(_0x4d4608,_0x46d9cd)=>_0x389f5b(_0x4d4608,_0x46d9cd,_0x3dd968);let Ve=class{constructor(_0x2a5363,_0x4ad852){const _0x470500=_0x48c788;this['_injector']=_0x2a5363,this[_0x470500(0x231)]=_0x4ad852;}[_0x48c788(0x4a4)](_0x3322f2){const _0x49f720=_0x48c788;var _0x252ac3,_0x251192,_0x174cb4,_0x5f2e40;const _0x540fda=this[_0x49f720(0x2e1)]['get'](_0x241ac5),{pluginName:_0x19fc63,unitId:_0x5451d4,sheetId:_0x557de4}=_0x540fda[_0x49f720(0x342)]()||{},_0x1752df=(_0x252ac3=_0x540fda[_0x49f720(0x2cf)]())!=null?_0x252ac3:[];if(_0x1752df[_0x49f720(0x3c7)]===0x0||!_0x19fc63||!_0x5451d4||!_0x557de4)return;const _0x3db177=[{'id':_0x576668['id'],'params':{'unitId':_0x5451d4,'subUnitId':_0x557de4,'pluginName':_0x19fc63,'selections':_0x41ebb1[_0x49f720(0x3ba)](_0x1752df)}}],_0x4cf851=this[_0x49f720(0x231)][_0x49f720(0x313)](_0x3322f2,_0x3db177);if(!_0x13e3eb(_0x4cf851))throw _0x4cf851[_0x49f720(0x1b3)];const _0x183f3b=(_0x5f2e40=(_0x174cb4=(_0x251192=_0x4cf851['m2Prime'][0x0])==null?void 0x0:_0x251192['params'])==null?void 0x0:_0x174cb4['selections'])!=null?_0x5f2e40:_0x1752df;Array[_0x49f720(0x1c9)](_0x183f3b)&&_0x183f3b['length']&&this[_0x49f720(0x2e1)]['get'](_0x26b7b1)[_0x49f720(0x2df)](_0x576668['id'],{'unitId':_0x5451d4,'subUnitId':_0x557de4,'pluginName':_0x19fc63,'selections':_0x183f3b});}};Ve=Ln([Jt(0x0,_0x1df0bc(_0x1883e3)),Jt(0x1,_0x56e350)],Ve);const $n=new Set([_0x183395['id']]);function jn(_0x35d324,_0x425b1a,_0xdd05d0,_0x229a15,_0xd5a8bb){const _0xdc3185=_0x48c788;var _0xb7504a,_0x5b208e,_0x4526bc,_0x13dec5;const _0x1c3075=[];for(const _0x3e2091 of _0x35d324)if($n['has'](_0x3e2091['id'])){if(_0x1c3075[_0xdc3185(0x3c7)]>0x0)break;_0x1c3075[_0xdc3185(0x3ae)](_0x3e2091);break;}else _0x1c3075['push'](_0x3e2091);const _0x4cba91=(_0x5b208e=(_0xb7504a=_0xd5a8bb['getCurrentUser']())==null?void 0x0:_0xb7504a[_0xdc3185(0x473)])!=null?_0x5b208e:_0xdc3185(0x228),_0x490655=(_0x13dec5=(_0x4526bc=_0xd5a8bb[_0xdc3185(0x310)]())==null?void 0x0:_0x4526bc[_0xdc3185(0x260)])!=null?_0x13dec5:_0xdc3185(0x228);return{'changeset':{'unitID':_0x425b1a,'type':_0x501378(_0xdd05d0['getUnitType'](_0x425b1a)),'baseRev':_0x229a15[_0xdc3185(0x4b1)](_0x425b1a),'revision':0x0,'userID':_0x4cba91,'memberID':_0x490655,'mutations':_0x1c3075},'pendingMutations':_0x35d324['slice'](_0x1c3075[_0xdc3185(0x3c7)])};}function Hn(_0x3c1e43,_0x1141d6,_0x374fdc,_0x319f93,_0x35b27e){const _0x2ff7c3=_0x48c788;var _0x33336f,_0x507873,_0x25ebb6,_0x22f6a3;const _0x1dbf57=[_0x3c1e43['reduce']((_0x2417f3,_0x2e1a46)=>{const _0x14a827=_0x1999;var _0x466e14;const {id:_0x193547}=_0x2417f3,{id:_0xa66063,type:_0x218504}=_0x2e1a46,_0x357a47=(_0x466e14=_0x2417f3['params'])!=null?_0x466e14:{'actions':null},_0x9a5dcf=_0x2e1a46[_0x14a827(0x23e)];if(_0x193547&&_0x193547!==_0xa66063)throw new Error(_0x14a827(0x361)+_0x193547+_0x14a827(0x1da)+_0xa66063+'.');return{..._0x2417f3,'id':_0xa66063,'type':_0x218504,'params':{'unitId':_0x9a5dcf['unitId'],'textRanges':_0x9a5dcf[_0x14a827(0x410)],'actions':_0x44383b['compose'](_0x357a47[_0x14a827(0x25e)],_0x9a5dcf['actions'])}};},{})],_0x182cea=(_0x507873=(_0x33336f=_0x35b27e[_0x2ff7c3(0x310)]())==null?void 0x0:_0x33336f[_0x2ff7c3(0x473)])!=null?_0x507873:'unknown',_0xdaecef=(_0x22f6a3=(_0x25ebb6=_0x35b27e['getCurrentUser']())==null?void 0x0:_0x25ebb6[_0x2ff7c3(0x260)])!=null?_0x22f6a3:_0x2ff7c3(0x228);return{'changeset':{'unitID':_0x1141d6,'type':_0x501378(_0x374fdc[_0x2ff7c3(0x304)](_0x1141d6)),'baseRev':_0x319f93['getCurrentRevForDocument'](_0x1141d6),'revision':0x0,'userID':_0x182cea,'memberID':_0xdaecef,'mutations':_0x1dbf57},'pendingMutations':[]};}var xn=Object['defineProperty'],Fn=Object[_0x48c788(0x2bd)],ne=(_0xcd5b4,_0x13fa91,_0x5230f9,_0x5f37bb)=>{const _0x420c5f=_0x48c788;for(var _0x39b2cf=_0x5f37bb>0x1?void 0x0:_0x5f37bb?Fn(_0x13fa91,_0x5230f9):_0x13fa91,_0x22cf68=_0xcd5b4[_0x420c5f(0x3c7)]-0x1,_0x18edbf;_0x22cf68>=0x0;_0x22cf68--)(_0x18edbf=_0xcd5b4[_0x22cf68])&&(_0x39b2cf=(_0x5f37bb?_0x18edbf(_0x13fa91,_0x5230f9,_0x39b2cf):_0x18edbf(_0x39b2cf))||_0x39b2cf);return _0x5f37bb&&_0x39b2cf&&xn(_0x13fa91,_0x5230f9,_0x39b2cf),_0x39b2cf;},g=(_0x1f2511,_0x1d1104)=>(_0x1802c5,_0x2fe8a5)=>_0x1d1104(_0x1802c5,_0x2fe8a5,_0x1f2511),P=(_0x273d1f=>(_0x273d1f[_0x48c788(0x43a)]=_0x48c788(0x319),_0x273d1f[_0x48c788(0x21f)]='synced',_0x273d1f[_0x48c788(0x345)]=_0x48c788(0x2f5),_0x273d1f[_0x48c788(0x27e)]=_0x48c788(0x2ef),_0x273d1f[_0x48c788(0x45a)]='awaiting_with_pending',_0x273d1f[_0x48c788(0x29a)]=_0x48c788(0x409),_0x273d1f[_0x48c788(0x2ec)]=_0x48c788(0x3a2),_0x273d1f[_0x48c788(0x214)]=_0x48c788(0x25d),_0x273d1f))(P||{});class re{constructor(_0x2a9fc3,_0x13fcd4,_0x4447ae,_0x2bc9b5,_0x16d80b,_0x2bf6d4,_0x114242,_0x588b42,_0x5a68a7){const _0x455822=_0x48c788;l(this,'_awaitingChangeset',null),l(this,_0x455822(0x2cb),[]),(this['unitID']=_0x2a9fc3,this['type']=_0x13fcd4,this[_0x455822(0x43f)]=_0x16d80b,this[_0x455822(0x1e9)]=_0x2bf6d4,this[_0x455822(0x3b7)]=_0x114242,this[_0x455822(0x3f3)]=_0x588b42,this['_localCacheService']=_0x5a68a7,this[_0x455822(0x4ca)]=_0x4447ae,this[_0x455822(0x2cb)]=_0x2bc9b5);}['_checkMissing'](_0x55c252){const _0x351a5a=_0x48c788,_0x5a037f=this[_0x351a5a(0x3f3)]['getCurrentRevForDocument'](this[_0x351a5a(0x2d3)]);return _0x55c252[_0x351a5a(0x480)]>_0x5a037f+0x1?(this['_handler'][_0x351a5a(0x466)]({'from':_0x5a037f,'to':_0x55c252[_0x351a5a(0x480)]-0x1}),!0x0):!0x1;}[_0x48c788(0x363)](_0x24c5e8){const _0x19373d=_0x48c788;this['_undoRedoService'][_0x19373d(0x1d6)](this[_0x19373d(0x2d3)],_0x24c5e8);}['_transformSelections'](_0x8b5b58){const _0x1132d4=_0x48c788;var _0x3ad08c,_0x113568;(_0x113568=(_0x3ad08c=this['_handler'])[_0x1132d4(0x320)])==null||_0x113568['call'](_0x3ad08c,_0x8b5b58);}[_0x48c788(0x35e)](_0x5028e4){var _0x17516c,_0x507edd;return(_0x507edd=(_0x17516c=this['_handler'])['onTransformIME'])==null?void 0x0:_0x507edd['call'](_0x17516c,_0x5028e4);}['_transformRemoteChangesetByIMECache'](_0x5a65c0){const _0x4feefd=_0x48c788;var _0x2e64e1,_0x26c978,_0x463c5a;return(_0x463c5a=(_0x26c978=(_0x2e64e1=this[_0x4feefd(0x43f)])[_0x4feefd(0x2b9)])==null?void 0x0:_0x26c978[_0x4feefd(0x413)](_0x2e64e1,_0x5a65c0))!=null?_0x463c5a:_0x5a65c0;}[_0x48c788(0x1e2)](_0x20b6b7){const _0x414d90=_0x48c788;var _0x28873d,_0x35c99f;if(this[_0x414d90(0x45b)]===H[_0x414d90(0x4d4)]){const {unitID:_0x1a7a8b,mutations:_0x2299e3,memberID:_0x2692f8}=_0x20b6b7,_0x2448ee=_0x2299e3[0x0]['params']['textRanges'];Array[_0x414d90(0x1c9)](_0x2448ee)&&_0x2448ee[_0x414d90(0x3c7)]>0x0&&((_0x35c99f=(_0x28873d=this[_0x414d90(0x43f)])[_0x414d90(0x1ba)])==null||_0x35c99f[_0x414d90(0x413)](_0x28873d,{'unitID':_0x1a7a8b,'memberID':_0x2692f8,'textRanges':_0x2448ee}));}}[_0x48c788(0x4b3)](){const _0x572a95=_0x48c788;this['_localCacheService']['updateOfflineData'](this[_0x572a95(0x2d3)],this['type'],this[_0x572a95(0x4ca)],this[_0x572a95(0x2cb)]);}[_0x48c788(0x2bf)](){const _0x450183=_0x48c788;return this[_0x450183(0x3f3)][_0x450183(0x4b1)](this[_0x450183(0x2d3)]);}[_0x48c788(0x42a)](){const _0xac35f9=_0x48c788;this[_0xac35f9(0x3f3)]['incrementRevForDocument'](this[_0xac35f9(0x2d3)]);}[_0x48c788(0x1d3)](_0x5cd203){const _0x5ba5f7=_0x48c788;var _0x14fb1a;const _0x1dd5f7=this[_0x5ba5f7(0x2d1)](_0x5cd203),_0x5625ad=_0x196e3d(_0x1dd5f7[_0x5ba5f7(0x3b5)],this['_commandService'],{'fromCollab':!0x0});if(!_0x5625ad[_0x5ba5f7(0x2eb)])throw _0x5625ad[_0x5ba5f7(0x1b3)]instanceof Error?_0x5625ad[_0x5ba5f7(0x1b3)]:new Error((_0x14fb1a=_0x5625ad[_0x5ba5f7(0x1b3)])!=null?_0x14fb1a:_0x5ba5f7(0x3b9));this[_0x5ba5f7(0x35e)](_0x1dd5f7),this[_0x5ba5f7(0x363)](_0x5cd203),this[_0x5ba5f7(0x40a)](_0x1dd5f7),this[_0x5ba5f7(0x1e2)](_0x1dd5f7),this[_0x5ba5f7(0x42a)]();}}let Te=class extends re{constructor(_0x4e87cf,_0x33e040,_0x306dc5,_0x59ef18,_0x38554d,_0x5aa3ba,_0x7a221d,_0x3b5c4d,_0x4d92ba){const _0x582fba=_0x48c788;super(_0x4e87cf,_0x33e040,null,[],_0x306dc5,_0x3b5c4d,_0x7a221d,_0x59ef18,_0x38554d),l(this,_0x582fba(0x4c6),_0x582fba(0x293)),(this['_injector']=_0x5aa3ba,this[_0x582fba(0x2ad)]=_0x4d92ba);}[_0x48c788(0x2d0)](_0x8e679c){const _0x5f4c4f=_0x48c788,_0x5a0acb=this['_injector']['createInstance'](B,this[_0x5f4c4f(0x2d3)],this[_0x5f4c4f(0x45b)],[_0x8e679c],this[_0x5f4c4f(0x43f)]);return _0x5a0acb[_0x5f4c4f(0x3af)](),_0x5a0acb[_0x5f4c4f(0x4b3)](),_0x5a0acb;}[_0x48c788(0x32e)](_0x1d1cdc){const _0x501227=_0x48c788;if(this[_0x501227(0x2e4)](_0x1d1cdc))return this[_0x501227(0x2e1)][_0x501227(0x3a1)](W,this[_0x501227(0x2d3)],this[_0x501227(0x45b)],null,[],null,[_0x1d1cdc],this[_0x501227(0x43f)]);try{return this[_0x501227(0x1d3)](_0x1d1cdc),this;}catch(_0x34697f){return this[_0x501227(0x2ad)][_0x501227(0x1b3)](_0x501227(0x349),_0x34697f),this;}}[_0x48c788(0x2ce)](){const _0x2afa00=_0x48c788;throw new Error(_0x2afa00(0x472));}[_0x48c788(0x21d)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x48c788(0x24d)](){const _0x292129=_0x48c788;return this[_0x292129(0x2e1)][_0x292129(0x3a1)](X,this[_0x292129(0x2d3)],this[_0x292129(0x45b)],null,[],this[_0x292129(0x43f)]);}[_0x48c788(0x3bf)](){return this;}[_0x48c788(0x20b)](){const _0x58ca36=_0x48c788;throw new Error(_0x58ca36(0x4c8));}};Te=ne([g(0x3,_0x1df0bc(_0x2426c9)),g(0x4,_0x1df0bc(D)),g(0x5,_0x1df0bc(_0x1883e3)),g(0x6,_0x3b301b),g(0x7,_0x26b7b1),g(0x8,_0xcf8387)],Te);let B=class extends re{constructor(_0x27c8bb,_0x2d2a28,_0x385aec,_0x5507c4,_0x24ed55,_0xd3d92b,_0x434ea8,_0x564b99,_0x31ceae,_0x4c5ae8,_0x11577a,_0x150f45,_0x564c4f,_0x29e129){const _0x1782f7=_0x48c788;super(_0x27c8bb,_0x2d2a28,null,_0x385aec,_0x5507c4,_0x4c5ae8,_0x29e129,_0xd3d92b,_0x434ea8),l(this,'status','pending'),l(this,_0x1782f7(0x2af),null),l(this,_0x1782f7(0x334),null),(this[_0x1782f7(0x2e1)]=_0x24ed55,this[_0x1782f7(0x28e)]=_0x564b99,this[_0x1782f7(0x2ad)]=_0x31ceae,this['_configService']=_0x11577a,this[_0x1782f7(0x231)]=_0x150f45,this[_0x1782f7(0x38c)]=_0x564c4f);}[_0x48c788(0x2d0)](_0x28ce2c){const _0x6d1723=_0x48c788;return this[_0x6d1723(0x2cb)][_0x6d1723(0x3ae)](_0x28ce2c),this[_0x6d1723(0x4b3)](),this;}['onRemoteChangeset'](_0x385151){const _0x231e13=_0x48c788;if(this[_0x231e13(0x2e4)](_0x385151))return this['_clearScheduledTask'](),this['_injector']['createInstance'](W,this['unitID'],this[_0x231e13(0x45b)],null,this[_0x231e13(0x2cb)],null,[_0x385151],this[_0x231e13(0x43f)]);try{const _0x30aa0d=this[_0x231e13(0x231)]['transformMutationsWithChangeset'](_0x385151,this['_pendingMutations']);if(_0x13e3eb(_0x30aa0d)){const {c1Prime:_0x2d1461,m2Prime:_0x364c9f}=_0x30aa0d;this[_0x231e13(0x1d3)](_0x2d1461);const _0x21e323=this['_injector'][_0x231e13(0x3a1)](B,this[_0x231e13(0x2d3)],this[_0x231e13(0x45b)],_0x364c9f,this['_handler']);return this[_0x231e13(0x2b8)](),_0x21e323[_0x231e13(0x3af)](this[_0x231e13(0x2af)]?Math[_0x231e13(0x249)](0x0,new Date()[_0x231e13(0x372)]()-this[_0x231e13(0x2af)]):this['_getSendChangesetTimeout']()),_0x21e323;}throw _0x30aa0d[_0x231e13(0x1b3)];}catch(_0x32608f){return this[_0x231e13(0x2ad)][_0x231e13(0x1b3)](_0x32608f),this['_onConflict'](!0x1);}}[_0x48c788(0x2ce)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x48c788(0x21d)](){const _0x98eab8=_0x48c788;throw new Error(_0x98eab8(0x42c));}[_0x48c788(0x24d)](){const _0x343171=_0x48c788;return this[_0x343171(0x2b8)](),this[_0x343171(0x2e1)][_0x343171(0x3a1)](X,this['unitID'],this[_0x343171(0x45b)],null,this['_pendingMutations'],this['_handler']);}[_0x48c788(0x3bf)](){return this;}[_0x48c788(0x3af)](_0x237eca){const _0x3a3710=_0x48c788;_0x237eca=_0x237eca!=null?_0x237eca:this['_getSendChangesetTimeout'](),this[_0x3a3710(0x2af)]=new Date()[_0x3a3710(0x372)](),this['_sendingTimer']=setTimeout(()=>{const _0x2ed838=_0x3a3710;this[_0x2ed838(0x2b8)]();let _0x38ae12=null;switch(this[_0x2ed838(0x45b)]){case H['UNIVER_SHEET']:{_0x38ae12=jn(this[_0x2ed838(0x2cb)],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this[_0x2ed838(0x28e)]);break;}case H[_0x2ed838(0x4d4)]:{_0x38ae12=Hn(this['_pendingMutations'],this[_0x2ed838(0x2d3)],this['_univerInstanceService'],this['_revisionService'],this[_0x2ed838(0x28e)]);break;}default:throw new Error(_0x2ed838(0x455)+this[_0x2ed838(0x45b)]+_0x2ed838(0x2c9));}const {changeset:_0x88a6b9,pendingMutations:_0x3f0798}=_0x38ae12;this[_0x2ed838(0x43f)][_0x2ed838(0x445)](_0x88a6b9);const _0x7cb593=_0x3f0798[_0x2ed838(0x3c7)]?this[_0x2ed838(0x2e1)][_0x2ed838(0x3a1)](V,this[_0x2ed838(0x2d3)],this['type'],_0x88a6b9,_0x3f0798,this[_0x2ed838(0x43f)]):this['_injector'][_0x2ed838(0x3a1)](K,this[_0x2ed838(0x2d3)],this['type'],_0x88a6b9,this['_handler']);_0x7cb593[_0x2ed838(0x4b3)](),this[_0x2ed838(0x43f)][_0x2ed838(0x4d6)](this,_0x7cb593);},_0x237eca);}['_getSendChangesetTimeout'](){const _0x27ef74=_0x48c788;var _0x8b3bae;return(_0x8b3bae=this[_0x27ef74(0x35d)][_0x27ef74(0x2d9)](Ki))!=null?_0x8b3bae:Xi;}[_0x48c788(0x20b)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x48c788(0x2b8)](){const _0x39bce8=_0x48c788;this[_0x39bce8(0x334)]!=null&&(clearTimeout(this[_0x39bce8(0x334)]),this[_0x39bce8(0x334)]=null);}[_0x48c788(0x487)](_0xeb304){const _0x2a2817=_0x48c788;return this[_0x2a2817(0x2b8)](),this[_0x2a2817(0x2e1)][_0x2a2817(0x3a1)](te,this['unitID'],this[_0x2a2817(0x45b)],null,this[_0x2a2817(0x2cb)],this[_0x2a2817(0x43f)],_0xeb304);}};B=ne([g(0x4,_0x1df0bc(_0x1883e3)),g(0x5,_0x1df0bc(_0x2426c9)),g(0x6,_0x1df0bc(D)),g(0x7,_0x1df0bc(ee)),g(0x8,_0xcf8387),g(0x9,_0x26b7b1),g(0xa,_0x475c15),g(0xb,_0x56e350),g(0xc,_0x5db99b),g(0xd,_0x3b301b)],B);let K=class extends re{constructor(_0x19b606,_0xf21c04,_0xb65cba,_0x5633b6,_0x3d9c0b,_0x49c8f0,_0x796222,_0x4f3d9d,_0x4bc664,_0x264546,_0x2ec5d5){const _0x5ded68=_0x48c788;super(_0x19b606,_0xf21c04,_0xb65cba,[],_0x5633b6,_0x4f3d9d,_0x2ec5d5,_0x49c8f0,_0x796222),l(this,'status',_0x5ded68(0x2ef)),(this[_0x5ded68(0x2e1)]=_0x3d9c0b,this['_logService']=_0x4bc664,this['_transformService']=_0x264546);}[_0x48c788(0x2d0)](_0x4df284){const _0x4b9da0=_0x48c788,_0x118160=this['_injector']['createInstance'](V,this['unitID'],this[_0x4b9da0(0x45b)],this[_0x4b9da0(0x4ca)],[_0x4df284],this['_handler']);return _0x118160[_0x4b9da0(0x4b3)](),_0x118160;}[_0x48c788(0x32e)](_0x38ccf6){const _0x24c288=_0x48c788;if(this[_0x24c288(0x2e4)](_0x38ccf6))return this['_injector'][_0x24c288(0x3a1)](W,this[_0x24c288(0x2d3)],this[_0x24c288(0x45b)],this[_0x24c288(0x4ca)],[],null,[_0x38ccf6],this['_handler']);try{const _0x19f154=this['_transformService'][_0x24c288(0x3e3)]([_0x38ccf6],[this['_awaitingChangeset']],!0x1);if(_0x4a3135(_0x19f154)){const {c1Prime:_0x5edf5b,c2Prime:_0x4e3833}=_0x19f154;this[_0x24c288(0x1d3)](_0x5edf5b[0x0]),_0x4e3833[0x0][_0x24c288(0x391)]=this[_0x24c288(0x2bf)]();const _0x1612cf=this[_0x24c288(0x2e1)][_0x24c288(0x3a1)](K,this['unitID'],this[_0x24c288(0x45b)],_0x4e3833[0x0],this[_0x24c288(0x43f)]);return _0x1612cf[_0x24c288(0x4b3)](),_0x1612cf;}return this[_0x24c288(0x487)](!0x1);}catch(_0x207f73){return this['_logService'][_0x24c288(0x1b3)](_0x207f73),this[_0x24c288(0x487)](!0x1);}}[_0x48c788(0x2ce)](_0x569ed8){const _0x1503c2=_0x48c788,_0x400534=this[_0x1503c2(0x3f3)][_0x1503c2(0x4b1)](this['unitID']);if(_0x569ed8[_0x1503c2(0x480)]<_0x400534-0x1)return this;if(this[_0x1503c2(0x2e4)](_0x569ed8))return this[_0x1503c2(0x2e1)]['createInstance'](W,this[_0x1503c2(0x2d3)],this['type'],null,[],this[_0x1503c2(0x4ca)],[],this[_0x1503c2(0x43f)]);this[_0x1503c2(0x42a)]();const _0x572dee=this[_0x1503c2(0x2e1)][_0x1503c2(0x3a1)](Te,this[_0x1503c2(0x2d3)],this[_0x1503c2(0x45b)],this[_0x1503c2(0x43f)]);return _0x572dee['_updateLocalCache'](),_0x572dee;}[_0x48c788(0x21d)](_0x89b72d){const _0x5721a4=_0x48c788;return this[_0x5721a4(0x487)](!!(_0x89b72d!=null&&_0x89b72d['isPermissionRej']));}[_0x48c788(0x24d)](){const _0x58b164=_0x48c788;return this['_injector'][_0x58b164(0x3a1)](X,this['unitID'],this[_0x58b164(0x45b)],this[_0x58b164(0x4ca)],[],this[_0x58b164(0x43f)]);}['toggleOnline'](){return this;}[_0x48c788(0x20b)](){const _0x4dc279=_0x48c788;this[_0x4dc279(0x43f)][_0x4dc279(0x445)](this[_0x4dc279(0x4ca)]);}[_0x48c788(0x487)](_0x110f8a){const _0x5ca5b9=_0x48c788;return this[_0x5ca5b9(0x2e1)]['createInstance'](te,this['unitID'],this[_0x5ca5b9(0x45b)],this['_awaitingChangeset'],[],this[_0x5ca5b9(0x43f)],_0x110f8a);}};K=ne([g(0x4,_0x1df0bc(_0x1883e3)),g(0x5,_0x1df0bc(_0x2426c9)),g(0x6,_0x1df0bc(D)),g(0x7,_0x26b7b1),g(0x8,_0xcf8387),g(0x9,_0x56e350),g(0xa,_0x3b301b)],K);let V=class extends re{constructor(_0x4d3fc6,_0x2bc631,_0xfe23aa,_0x91ef69,_0xe95aa1,_0x5cbde3,_0x4684b6,_0x43c72c,_0xadfa43,_0x5984a9,_0xe6b803,_0x389a30){const _0x45b964=_0x48c788;super(_0x4d3fc6,_0x2bc631,_0xfe23aa,_0x91ef69,_0xe95aa1,_0xadfa43,_0x389a30,_0x4684b6,_0x43c72c),l(this,_0x45b964(0x4c6),'awaiting_with_pending'),(this['_injector']=_0x5cbde3,this['_logService']=_0x5984a9,this[_0x45b964(0x231)]=_0xe6b803);}[_0x48c788(0x2d0)](_0x1f60ab){const _0x2381bf=_0x48c788;return this['_pendingMutations'][_0x2381bf(0x3ae)](_0x1f60ab),this;}[_0x48c788(0x32e)](_0x1a0a9b){const _0x4ec2ee=_0x48c788;if(this[_0x4ec2ee(0x2e4)](_0x1a0a9b))return this[_0x4ec2ee(0x2e1)][_0x4ec2ee(0x3a1)](W,this[_0x4ec2ee(0x2d3)],this[_0x4ec2ee(0x45b)],this[_0x4ec2ee(0x4ca)],this[_0x4ec2ee(0x2cb)],null,[_0x1a0a9b],this[_0x4ec2ee(0x43f)]);try{const _0x1b79b3=this[_0x4ec2ee(0x231)][_0x4ec2ee(0x3e3)]([_0x1a0a9b],[this[_0x4ec2ee(0x4ca)]],!0x1);if(_0x4a3135(_0x1b79b3)){const {c1Prime:_0x5b5233,c2Prime:_0x19540e}=_0x1b79b3,_0x559f1b=this['_transformService'][_0x4ec2ee(0x313)](_0x5b5233[0x0],this['_pendingMutations']);if(_0x13e3eb(_0x559f1b)){const {c1Prime:_0x3a7c9c,m2Prime:_0x57fcee}=_0x559f1b;return this['_executeRemoteChangeset'](_0x3a7c9c),_0x19540e[0x0][_0x4ec2ee(0x391)]=this[_0x4ec2ee(0x2bf)](),this[_0x4ec2ee(0x2e1)][_0x4ec2ee(0x3a1)](V,this[_0x4ec2ee(0x2d3)],this[_0x4ec2ee(0x45b)],_0x19540e[0x0],_0x57fcee,this['_handler']);}throw _0x559f1b[_0x4ec2ee(0x1b3)];}throw _0x1b79b3[_0x4ec2ee(0x1b3)];}catch(_0x32a9e2){return this['_logService']['error'](_0x32a9e2),this[_0x4ec2ee(0x487)](!0x1);}}[_0x48c788(0x2ce)](_0x54f33f){const _0x48bb7d=_0x48c788;if(this[_0x48bb7d(0x2e4)](_0x54f33f))return this['_injector'][_0x48bb7d(0x3a1)](W,this[_0x48bb7d(0x2d3)],this['type'],null,this[_0x48bb7d(0x2cb)],this[_0x48bb7d(0x4ca)],[],this[_0x48bb7d(0x43f)]);this[_0x48bb7d(0x42a)]();const _0x408532=this[_0x48bb7d(0x2e1)][_0x48bb7d(0x3a1)](B,this['unitID'],this['type'],this[_0x48bb7d(0x2cb)],this[_0x48bb7d(0x43f)]);return _0x408532[_0x48bb7d(0x3af)](),_0x408532[_0x48bb7d(0x4b3)](),_0x408532;}[_0x48c788(0x21d)](_0x681803){const _0x3df7ab=_0x48c788;return this[_0x3df7ab(0x487)](!!(_0x681803!=null&&_0x681803['isPermissionRej']));}[_0x48c788(0x24d)](){const _0x2bb618=_0x48c788;return this[_0x2bb618(0x2e1)][_0x2bb618(0x3a1)](X,this[_0x2bb618(0x2d3)],this[_0x2bb618(0x45b)],this[_0x2bb618(0x4ca)],this[_0x2bb618(0x2cb)],this['_handler']);}[_0x48c788(0x3bf)](){return this;}['resend'](){const _0x552173=_0x48c788;this['_handler'][_0x552173(0x445)](this[_0x552173(0x4ca)]);}[_0x48c788(0x487)](_0x28e95f){const _0x212d43=_0x48c788;return this[_0x212d43(0x2e1)][_0x212d43(0x3a1)](te,this['unitID'],this['type'],null,this[_0x212d43(0x2cb)],this[_0x212d43(0x43f)],_0x28e95f);}};V=ne([g(0x5,_0x1df0bc(_0x1883e3)),g(0x6,_0x1df0bc(_0x2426c9)),g(0x7,_0x1df0bc(D)),g(0x8,_0x26b7b1),g(0x9,_0xcf8387),g(0xa,_0x56e350),g(0xb,_0x3b301b)],V);let te=class extends re{constructor(_0x5e3481,_0x4ee307,_0x5b59b5,_0x2bb1c1,_0x21379e,_0x31b492=!0x1,_0x4bf28e,_0x41b2a6,_0x1d91e1,_0x305e9c,_0x1b75c4,_0x53a4b6,_0x11fbd6){const _0x59f349=_0x48c788;super(_0x5e3481,_0x4ee307,_0x5b59b5,_0x2bb1c1,_0x21379e,_0x41b2a6,_0x1d91e1,_0x1b75c4,_0x305e9c),l(this,_0x59f349(0x4c6),'conflict'),(this[_0x59f349(0x32c)]=_0x31b492,this[_0x59f349(0x20c)]=_0x4bf28e,this[_0x59f349(0x314)]=_0x53a4b6,this[_0x59f349(0x39f)]=_0x11fbd6,this[_0x59f349(0x380)](),this[_0x59f349(0x1ff)](),this[_0x59f349(0x1d4)]());}[_0x48c788(0x2d0)](){return this;}[_0x48c788(0x32e)](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}[_0x48c788(0x24d)](){return this;}['toggleOnline'](){return this;}[_0x48c788(0x20b)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x48c788(0x1ff)](){const _0x20ac0d=_0x48c788;this['_localCacheService'][_0x20ac0d(0x27d)](this[_0x20ac0d(0x2d3)],this[_0x20ac0d(0x45b)],null,[]);}[_0x48c788(0x380)](){const _0x146bb7=_0x48c788;this[_0x146bb7(0x32c)]?this['_notificationService'][_0x146bb7(0x4d1)]({'title':this['_localeService']['t'](_0x146bb7(0x498)),'content':this[_0x146bb7(0x314)]['t'](_0x146bb7(0x2a1)),'type':_0x146bb7(0x1b3),'duration':0x0}):this[_0x146bb7(0x39f)][_0x146bb7(0x4d1)]({'title':this['_localeService']['t'](_0x146bb7(0x383)),'content':this[_0x146bb7(0x314)]['t'](_0x146bb7(0x26b)),'type':_0x146bb7(0x1b3),'duration':0x0});}[_0x48c788(0x1d4)](){const _0x4262fa=_0x48c788;this[_0x4262fa(0x20c)][_0x4262fa(0x35b)](new _0x301a89(this[_0x4262fa(0x2d3)])['id'],!0x1);}};te=ne([g(0x6,_0x1df0bc(_0x4a2caa)),g(0x7,_0x26b7b1),g(0x8,_0x3b301b),g(0x9,_0x1df0bc(D)),g(0xa,_0x1df0bc(_0x2426c9)),g(0xb,_0x1df0bc(_0x7ef8c9)),g(0xc,_0x57524d)],te);let X=class extends re{constructor(_0x4d5341,_0x3b9ecb,_0x132442,_0x550d1e,_0x25078b,_0x52a5ef,_0x186e7a,_0x379a86,_0x2b0991,_0x4a603c){const _0x52e98a=_0x48c788;super(_0x4d5341,_0x3b9ecb,_0x132442,_0x550d1e,_0x25078b,_0x2b0991,_0x4a603c,_0x186e7a,_0x379a86),l(this,'status',_0x52e98a(0x25d)),this[_0x52e98a(0x2e1)]=_0x52a5ef;}['appendMutation'](_0x56b18f){const _0x31014f=_0x48c788;return this[_0x31014f(0x2cb)][_0x31014f(0x3ae)](_0x56b18f),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x251cb8){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x48c788(0x2ce)](){const _0x3b138a=_0x48c788;throw new Error(_0x3b138a(0x3d9));}[_0x48c788(0x21d)](){const _0x3c8af7=_0x48c788;throw new Error(_0x3c8af7(0x1e7));}[_0x48c788(0x24d)](){return this;}[_0x48c788(0x3bf)](){const _0x38af53=_0x48c788,{_injector:_0x1b8035,_pendingMutations:_0x111e9b,_awaitingChangeset:_0x29c046,unitID:_0x30b237,_handler:_0x10afc0,type:_0x43ac6e}=this,_0x15d722=Os(_0x1b8035,_0x30b237,_0x43ac6e,_0x29c046,_0x111e9b,_0x10afc0);return _0x15d722 instanceof B?_0x15d722[_0x38af53(0x3af)]():(_0x15d722 instanceof V||_0x15d722 instanceof K)&&_0x15d722[_0x38af53(0x20b)](),_0x15d722;}[_0x48c788(0x20b)](){const _0x700840=_0x48c788;throw new Error(_0x700840(0x290));}};X=ne([g(0x5,_0x1df0bc(_0x1883e3)),g(0x6,_0x1df0bc(_0x2426c9)),g(0x7,_0x1df0bc(D)),g(0x8,_0x26b7b1),g(0x9,_0x3b301b)],X);let W=class extends re{constructor(_0x2642ed,_0x27386b,_0x420c3f,_0x4d98ea,_0x33f261,_0x27b77e,_0x48305b,_0x4c3743,_0x527017,_0x47b696,_0x396c9e,_0x21bb53,_0x57e606,_0x5cc6d6){const _0x326ad7=_0x48c788;super(_0x2642ed,_0x27386b,_0x420c3f,_0x4d98ea,_0x48305b,_0x21bb53,_0x57e606,_0x527017,_0x47b696),l(this,_0x326ad7(0x4c6),_0x326ad7(0x409)),(this['_acknowledgedAwaitingChangeset']=_0x33f261,this[_0x326ad7(0x454)]=_0x27b77e,this['_injector']=_0x4c3743,this[_0x326ad7(0x2ad)]=_0x396c9e,this[_0x326ad7(0x231)]=_0x5cc6d6);}[_0x48c788(0x491)](_0x37ed7f){const _0x3985e5=_0x48c788;try{const _0x23c0e4=[..._0x37ed7f,...this[_0x3985e5(0x454)]],_0x1ab310=[this[_0x3985e5(0x4ca)]||this['_acknowledgedAwaitingChangeset']]['filter'](_0x38b076=>!!_0x38b076);let _0x24f03d,_0x35aa9c;if(_0x1ab310[_0x3985e5(0x3c7)]){const _0x26331a=this['_transformService'][_0x3985e5(0x3e3)](_0x23c0e4,_0x1ab310,!0x1);if(!_0x4a3135(_0x26331a))throw _0x26331a['error'];_0x24f03d=_0x26331a[_0x3985e5(0x3a9)],_0x35aa9c=_0x26331a[_0x3985e5(0x1f8)];}else _0x24f03d=_0x23c0e4,_0x35aa9c=[];let _0x1c48d2=this['_pendingMutations'];_0x24f03d['forEach'](_0x24ead7=>{const _0x50948f=_0x3985e5;let _0x5c82df;if(_0x1c48d2[_0x50948f(0x3c7)]){const _0x5ec44a=this[_0x50948f(0x231)]['transformMutationsWithChangeset'](_0x24ead7,_0x1c48d2);if(!_0x13e3eb(_0x5ec44a))throw _0x5ec44a[_0x50948f(0x1b3)];_0x5c82df=_0x5ec44a['c1Prime'],_0x1c48d2=_0x5ec44a[_0x50948f(0x1bc)];}else _0x5c82df=_0x24ead7;this['_executeRemoteChangeset'](_0x5c82df);}),this[_0x3985e5(0x378)]&&this['_incrementRevisionNumber'](),this[_0x3985e5(0x4ca)]&&_0x35aa9c[_0x3985e5(0x3c7)]&&(_0x35aa9c[0x0][_0x3985e5(0x391)]=this[_0x3985e5(0x2bf)]());let _0x162cef;if(this['_awaitingChangeset']&&_0x1c48d2['length']!==0x0)_0x162cef=this[_0x3985e5(0x2e1)][_0x3985e5(0x3a1)](V,this['unitID'],this['type'],_0x35aa9c[0x0],_0x1c48d2,this['_handler']);else{if(this[_0x3985e5(0x4ca)]&&_0x1c48d2['length']===0x0)_0x35aa9c[0x0][_0x3985e5(0x391)]=this['_getCurrentRevision'](),_0x162cef=this[_0x3985e5(0x2e1)][_0x3985e5(0x3a1)](K,this[_0x3985e5(0x2d3)],this[_0x3985e5(0x45b)],_0x35aa9c[0x0],this['_handler']);else{if(_0x1c48d2[_0x3985e5(0x3c7)]!==0x0){const _0x2d89e3=this[_0x3985e5(0x2e1)][_0x3985e5(0x3a1)](B,this[_0x3985e5(0x2d3)],this[_0x3985e5(0x45b)],_0x1c48d2,this[_0x3985e5(0x43f)]);_0x2d89e3['_schedule'](),_0x162cef=_0x2d89e3;}else _0x162cef=this[_0x3985e5(0x2e1)][_0x3985e5(0x3a1)](Te,this['unitID'],this['type'],this[_0x3985e5(0x43f)]);}}return _0x162cef[_0x3985e5(0x4b3)](),_0x162cef;}catch(_0x5827be){return this['_logService'][_0x3985e5(0x1b3)](_0x3985e5(0x29f),_0x3985e5(0x4a3),_0x5827be),this[_0x3985e5(0x2e1)][_0x3985e5(0x3a1)](te,this['unitID'],this[_0x3985e5(0x45b)],this['_awaitingChangeset'],this[_0x3985e5(0x2cb)],this[_0x3985e5(0x43f)],!0x1);}}[_0x48c788(0x20b)](){const _0x280a04=_0x48c788;throw new Error(_0x280a04(0x1b6));}['appendMutation'](_0x1ce611){const _0x110689=_0x48c788;return this[_0x110689(0x2cb)][_0x110689(0x3ae)](_0x1ce611),this;}[_0x48c788(0x32e)](_0x16f949){const _0x4a4706=_0x48c788;return this[_0x4a4706(0x454)]['push'](_0x16f949),this;}['onRemoteAck'](_0x3c8b50){const _0x574ff4=_0x48c788;if(this[_0x574ff4(0x4ca)])return this[_0x574ff4(0x378)]=this[_0x574ff4(0x4ca)],this[_0x574ff4(0x4ca)]=null,this;throw new Error(_0x574ff4(0x2f8));}['onRemoteRej'](_0x515435){const _0x3d31a6=_0x48c788;return this[_0x3d31a6(0x487)](!!(_0x515435!=null&&_0x515435['isPermissionRej']));}[_0x48c788(0x24d)](){const _0x515a8b=_0x48c788;return this[_0x515a8b(0x2e1)][_0x515a8b(0x3a1)](X,this[_0x515a8b(0x2d3)],this['type'],this['_awaitingChangeset'],this[_0x515a8b(0x2cb)],this[_0x515a8b(0x43f)]);}['toggleOnline'](){return this;}[_0x48c788(0x487)](_0x4b78f2){const _0x5c8eb8=_0x48c788;return this[_0x5c8eb8(0x2e1)][_0x5c8eb8(0x3a1)](te,this['unitID'],this[_0x5c8eb8(0x45b)],this[_0x5c8eb8(0x4ca)],this['_pendingMutations'],this[_0x5c8eb8(0x43f)],_0x4b78f2);}};W=ne([g(0x7,_0x1df0bc(_0x1883e3)),g(0x8,_0x1df0bc(_0x2426c9)),g(0x9,_0x1df0bc(D)),g(0xa,_0xcf8387),g(0xb,_0x26b7b1),g(0xc,_0x3b301b),g(0xd,_0x56e350)],W);function Os(_0xe1e9b8,_0x2f6505,_0x4d0814,_0x597f73,_0x283dd6,_0x4b0181){const _0x3d4f27=_0x48c788;return _0x597f73&&_0x283dd6['length']?_0xe1e9b8[_0x3d4f27(0x3a1)](V,_0x2f6505,_0x4d0814,_0x597f73,_0x283dd6,_0x4b0181):_0x597f73?_0xe1e9b8[_0x3d4f27(0x3a1)](K,_0x2f6505,_0x4d0814,_0x597f73,_0x4b0181):_0x283dd6[_0x3d4f27(0x3c7)]?_0xe1e9b8['createInstance'](B,_0x2f6505,_0x4d0814,_0x283dd6,_0x4b0181):_0xe1e9b8[_0x3d4f27(0x3a1)](Te,_0x2f6505,_0x4d0814,_0x4b0181);}var kn=Object[_0x48c788(0x299)],Bn=Object['getOwnPropertyDescriptor'],Je=(_0x399c07,_0x12591c,_0x4d7d49,_0x360ea4)=>{for(var _0xb5a3da=_0x360ea4>0x1?void 0x0:_0x360ea4?Bn(_0x12591c,_0x4d7d49):_0x12591c,_0x436454=_0x399c07['length']-0x1,_0x4d2bd0;_0x436454>=0x0;_0x436454--)(_0x4d2bd0=_0x399c07[_0x436454])&&(_0xb5a3da=(_0x360ea4?_0x4d2bd0(_0x12591c,_0x4d7d49,_0xb5a3da):_0x4d2bd0(_0xb5a3da))||_0xb5a3da);return _0x360ea4&&_0xb5a3da&&kn(_0x12591c,_0x4d7d49,_0xb5a3da),_0xb5a3da;},S=(_0x375713,_0x56f009)=>(_0x5388cd,_0x176829)=>_0x56f009(_0x5388cd,_0x176829,_0x375713);let Ee=class extends _0x4f9c78{constructor(_0x35b7e1,_0x5a00dd,_0x126804){const _0x272dd3=_0x48c788;super(),l(this,_0x272dd3(0x27f),new Map()),l(this,_0x272dd3(0x4c4),new _0x255156()),(this[_0x272dd3(0x2e1)]=_0x35b7e1,this[_0x272dd3(0x3b6)]=_0x5a00dd,this['_univerInstanceService']=_0x126804,this['_init']());}[_0x48c788(0x46e)](){const _0x12faa3=_0x48c788;super[_0x12faa3(0x46e)](),this[_0x12faa3(0x27f)][_0x12faa3(0x244)](_0x1d3bb3=>_0x1d3bb3[_0x12faa3(0x46e)]()),this['_entities']['clear']();}[_0x48c788(0x1cd)](_0x20b411){const _0x1f2232=_0x48c788;var _0x15961c;return(_0x15961c=this[_0x1f2232(0x27f)]['get'](_0x20b411))!=null?_0x15961c:null;}[_0x48c788(0x36d)](_0x2d7317){const _0x29889c=_0x48c788,_0x432ef6=this[_0x29889c(0x1cd)](_0x2d7317);return _0x432ef6?_0x5aa699(_0x432ef6):this[_0x29889c(0x4c4)]['pipe'](_0x2cc73f(_0x37af90=>_0x37af90[_0x29889c(0x2d3)]===_0x2d7317));}[_0x48c788(0x340)](){const _0x11bab0=_0x48c788;this[_0x11bab0(0x38c)][_0x11bab0(0x3ce)](_0x5b42a8[_0x11bab0(0x29e)])[_0x11bab0(0x3bd)](_0x219692(this['dispose$']),_0x1c5ec9(0x10))[_0x11bab0(0x237)](async _0x35cff3=>{const _0xfb0969=_0x11bab0,_0x5d0fce=_0x35cff3['getUnitId'](),_0x393fee=await this[_0xfb0969(0x495)](_0x5d0fce,H[_0xfb0969(0x29e)]);this[_0xfb0969(0x27f)]['set'](_0x5d0fce,_0x393fee);}),this[_0x11bab0(0x38c)]['getTypeOfUnitAdded$'](_0x5b42a8[_0x11bab0(0x4d4)])['pipe'](_0x219692(this['dispose$']),_0x1c5ec9(0x10))[_0x11bab0(0x3bd)](_0x2cc73f(_0x5cff95=>!_0x5cff95[_0x11bab0(0x451)]()[_0x11bab0(0x458)]('__')))[_0x11bab0(0x237)](async _0x4633f0=>{const _0x5629c9=_0x11bab0,_0x4edd7c=_0x4633f0[_0x5629c9(0x451)](),_0x19988b=await this[_0x5629c9(0x495)](_0x4edd7c,H['UNIVER_DOC']);this[_0x5629c9(0x27f)]['set'](_0x4edd7c,_0x19988b);}),_0x10f2b0(this[_0x11bab0(0x38c)]['getTypeOfUnitDisposed$'](_0x5b42a8[_0x11bab0(0x29e)]),this[_0x11bab0(0x38c)]['getTypeOfUnitDisposed$'](_0x5b42a8['UNIVER_DOC']))[_0x11bab0(0x3bd)](_0x219692(this[_0x11bab0(0x4c9)]))['subscribe'](_0x28aa7f=>{const _0x1d4725=_0x11bab0,_0x33b9ea=_0x28aa7f[_0x1d4725(0x451)](),_0x36bf59=this[_0x1d4725(0x27f)][_0x1d4725(0x4ce)](_0x33b9ea);_0x36bf59&&(_0x36bf59['dispose'](),this['_entities']['delete'](_0x33b9ea));});}async['_startCollaboration'](_0x31147c,_0x59c4d0){const _0x4bfecc=_0x48c788,_0x1f70cf=await this[_0x4bfecc(0x3b6)][_0x4bfecc(0x44c)](_0x31147c),_0x455957=this[_0x4bfecc(0x2e1)][_0x4bfecc(0x3a1)](this[_0x4bfecc(0x2ab)](_0x59c4d0),_0x31147c,_0x59c4d0,_0x1f70cf);return await _0x455957[_0x4bfecc(0x400)](),this[_0x4bfecc(0x4c4)][_0x4bfecc(0x325)](_0x455957),_0x455957;}[_0x48c788(0x2ab)](_0x2182a2){const _0x48ccdb=_0x48c788;switch(_0x2182a2){case H[_0x48ccdb(0x4d4)]:return dt;case H[_0x48ccdb(0x29e)]:return ft;default:throw new Error(_0x48ccdb(0x406)+_0x2182a2);}}};Ee=Je([_0x4bcad5(_0xba774d['Starting'],Ee),S(0x0,_0x1df0bc(_0x1883e3)),S(0x1,_0x1df0bc(Re)),S(0x2,_0x5db99b)],Ee);let We=class extends _0x4f9c78{constructor(_0x56d8e2,_0x42c539,_0x33e227,_0x209b39,_0x4e10f4,_0x41792b,_0x413725,_0x380547,_0x3a2de5,_0x339ec0,_0x13ee5f,_0x43b853,_0x4f5996){const _0x299564=_0x48c788;super(),l(this,_0x299564(0x302),new _0xac9643(null)),l(this,'state$',this[_0x299564(0x302)][_0x299564(0x1ec)]()),l(this,'_state'),l(this,_0x299564(0x3e9),!0x1),l(this,_0x299564(0x44b),this['state$']['pipe'](_0x1262f1(_0x2fc5af=>_0x2fc5af?_0x2fc5af[_0x299564(0x4c6)]:P['OFFLINE']),_0x43cd64(0x1))),l(this,_0x299564(0x367),!0x1),l(this,_0x299564(0x32d),[]),(this[_0x299564(0x2d3)]=_0x56d8e2,this[_0x299564(0x201)]=_0x42c539,this[_0x299564(0x2f6)]=_0x33e227,this[_0x299564(0x2e1)]=_0x209b39,this[_0x299564(0x1eb)]=_0x4e10f4,this[_0x299564(0x36a)]=_0x41792b,this[_0x299564(0x314)]=_0x413725,this[_0x299564(0x3f3)]=_0x380547,this[_0x299564(0x2ad)]=_0x3a2de5,this[_0x299564(0x1e9)]=_0x339ec0,this[_0x299564(0x464)]=_0x13ee5f,this['_permissionService']=_0x43b853,this[_0x299564(0x28c)]=_0x4f5996);}get[_0x48c788(0x2a5)](){const _0x397db0=_0x48c788;return this[_0x397db0(0x2c5)];}async[_0x48c788(0x400)](){const _0x284ea8=_0x48c788;if(this[_0x284ea8(0x2a5)])throw new Error(_0x284ea8(0x4ba));await this[_0x284ea8(0x340)]();}['pauseCollaboration'](){const _0x339f02=_0x48c788;return this[_0x339f02(0x3e9)]=!0x0,_0x308092(()=>{const _0x46d411=_0x339f02;this['_collaborationPaused']=!0x1,this[_0x46d411(0x2f1)]();});}[_0x48c788(0x41a)](_0x4be9ec){const _0x59fbe9=_0x48c788;this[_0x59fbe9(0x2c5)]=_0x4be9ec,this['_state$'][_0x59fbe9(0x325)](_0x4be9ec);}async[_0x48c788(0x340)](){const _0x15858f=_0x48c788;var _0x5ac141;return this['_updateState'](await this['_createInitialState']()),this[_0x15858f(0x28c)]&&((_0x5ac141=this['_singleActiveUnitService'])==null||_0x5ac141[_0x15858f(0x1b2)](this[_0x15858f(0x2d3)]),this['disposeWithMe'](_0x308092(this[_0x15858f(0x28c)][_0x15858f(0x36f)](this[_0x15858f(0x2d3)])[_0x15858f(0x237)](_0x545c74=>{const _0x34c780=_0x15858f;this[_0x34c780(0x2ad)][_0x34c780(0x1b0)](_0x34c780(0x3a0),_0x34c780(0x4b0),_0x545c74),_0x545c74===Rs[_0x34c780(0x2cd)]?(this[_0x34c780(0x464)]['show']({'content':this[_0x34c780(0x314)]['t'](_0x34c780(0x2ba)),'type':_0x16b663[_0x34c780(0x39e)]}),this['_permissionService'][_0x34c780(0x35b)](new _0x301a89(this[_0x34c780(0x2d3)])['id'],!0x1)):this[_0x34c780(0x20c)][_0x34c780(0x35b)](new _0x301a89(this['unitID'])['id'],!0x0);})))),this[_0x15858f(0x3e7)](_0x308092(this[_0x15858f(0x2f6)][_0x15858f(0x449)][_0x15858f(0x237)](_0x213591=>{const _0x1f9ac8=_0x15858f;_0x213591===_e['ONLINE']?this[_0x1f9ac8(0x1d1)]():_0x213591===_e[_0x1f9ac8(0x214)]&&this['_toggleOffline']();}))),this['disposeWithMe'](_0x308092(this[_0x15858f(0x2f6)][_0x15858f(0x3d7)][_0x15858f(0x237)](_0x409737=>{const _0xe4bf05=_0x15858f;try{switch(_0x409737[_0xe4bf05(0x420)]){case _0x64674d[_0xe4bf05(0x222)]:{this[_0xe4bf05(0x2a0)](_0x3a5484(_0x409737[_0xe4bf05(0x43e)]));break;}case _0x64674d['CHANGESET_ACK']:{this['_onRemoteACK'](_0x409737[_0xe4bf05(0x43e)]);break;}case _0x64674d[_0xe4bf05(0x440)]:{this[_0xe4bf05(0x26e)]();break;}case _0x64674d[_0xe4bf05(0x393)]:{this[_0xe4bf05(0x261)](_0x409737['data'][_0xe4bf05(0x49d)][_0xe4bf05(0x3e8)](_0x3ba043=>_0x3a5484(_0x3ba043)));break;}case _0x64674d[_0xe4bf05(0x468)]:this[_0xe4bf05(0x26e)]({'isPermissionRej':!0x0});}}catch(_0x2b5520){throw console[_0xe4bf05(0x1b3)]('Error\x20on\x20receiving\x20event',_0x2b5520),_0x2b5520;}}))),this['_state'];}[_0x48c788(0x4c1)](){this['_transitionLocked']=!0x1;}[_0x48c788(0x2e8)](){const _0x10bc7b=_0x48c788;if(this[_0x10bc7b(0x367)])throw new Error(_0x10bc7b(0x29c));this[_0x10bc7b(0x367)]=!0x0;}['_onLocalMutation'](_0x587271){const _0x4a6541=_0x48c788;this[_0x4a6541(0x2e8)](),this[_0x4a6541(0x41a)](this[_0x4a6541(0x2c5)][_0x4a6541(0x2d0)](_0x587271)),this[_0x4a6541(0x4c1)]();}['_onRemoteChangeset'](_0x277916){const _0xa12697=_0x48c788;if(!(_0x277916[_0xa12697(0x480)]<=this[_0xa12697(0x3f3)][_0xa12697(0x4b1)](this['unitID']))){if(this[_0xa12697(0x3e9)]){this[_0xa12697(0x32d)][_0xa12697(0x3ae)](_0x277916);return;}this[_0xa12697(0x2ca)](_0x277916);}}['_exhaustRemoteChangesetQueue'](){const _0x24eb39=_0x48c788;this[_0x24eb39(0x32d)][_0x24eb39(0x244)](_0x4a63ff=>this[_0x24eb39(0x2ca)](_0x4a63ff)),this['_remoteChangesetQueue']=[];}[_0x48c788(0x2ca)](_0x1e834a){const _0x439501=_0x48c788,_0x119558=this[_0x439501(0x36a)]['interceptor']['fetchThroughInterceptors'](this['_compressMutationService'][_0x439501(0x471)][_0x439501(0x238)]()[_0x439501(0x469)])(_0x1e834a[_0x439501(0x3b5)],null)||_0x1e834a[_0x439501(0x3b5)],_0x2be5b9={..._0x1e834a,'mutations':_0x119558};this[_0x439501(0x2e8)](),this[_0x439501(0x41a)](this[_0x439501(0x2c5)][_0x439501(0x32e)](_0x2be5b9)),this['_unlockTransition']();}[_0x48c788(0x33e)](_0x27b52a){const _0x4d5abb=_0x48c788;this[_0x4d5abb(0x2e8)](),this[_0x4d5abb(0x41a)](this[_0x4d5abb(0x2c5)][_0x4d5abb(0x2ce)](_0x27b52a)),this['_unlockTransition']();}[_0x48c788(0x26e)](_0x5d0438){const _0x461700=_0x48c788;this[_0x461700(0x2e8)](),this['_updateState'](this[_0x461700(0x2c5)]['onRemoteRej'](_0x5d0438)),this[_0x461700(0x4c1)]();}[_0x48c788(0x261)](_0x9bc30a){const _0x3307b6=_0x48c788;if(!(this['_state']instanceof W))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x4e0dc2=_0x9bc30a[_0x3307b6(0x3e8)](_0x56c346=>{const _0x20f87d=_0x3307b6,_0x27429f=this[_0x20f87d(0x36a)][_0x20f87d(0x471)][_0x20f87d(0x4bb)](this['_compressMutationService']['interceptor'][_0x20f87d(0x238)]()[_0x20f87d(0x469)])(_0x56c346['mutations'],null)||_0x56c346[_0x20f87d(0x3b5)];return{..._0x56c346,'mutations':_0x27429f};});this['_lockTransition'](),this[_0x3307b6(0x41a)](this[_0x3307b6(0x2c5)]['onMissedChangesetFetched'](_0x4e0dc2)),this['_unlockTransition']();}[_0x48c788(0x41e)](){const _0x286250=_0x48c788;this[_0x286250(0x2e8)](),this[_0x286250(0x41a)](this[_0x286250(0x2c5)][_0x286250(0x24d)]()),this[_0x286250(0x4c1)]();}[_0x48c788(0x1d1)](){const _0x346dfd=_0x48c788;this[_0x346dfd(0x2e8)](),this[_0x346dfd(0x41a)](this['_state']['toggleOnline']()),this[_0x346dfd(0x4c1)]();}async[_0x48c788(0x276)](){return new Promise(_0x100451=>{const _0x27af16=_0x1999;this[_0x27af16(0x2f6)][_0x27af16(0x449)]['pipe'](_0x332c11(0x1))[_0x27af16(0x237)](async _0x391327=>{const _0x26cea3=_0x27af16;_0x100451(await this[_0x26cea3(0x419)](_0x391327===_e[_0x26cea3(0x431)]));});});}[_0x48c788(0x2a6)](){const _0x4761df=this['unitID'];return{'onStateChange':(_0x61b3f3,_0x4b5acf)=>{const _0x4385ab=_0x1999;if(_0x61b3f3!==this[_0x4385ab(0x2c5)])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x61b3f3[_0x4385ab(0x4c6)]+'\x0aAfter:\x20'+_0x4b5acf[_0x4385ab(0x4c6)]+_0x4385ab(0x4cb)+this[_0x4385ab(0x2c5)]['status']);this[_0x4385ab(0x41a)](_0x4b5acf);},'onSendChangeset':_0x2af522=>{const _0x5656cf=_0x1999,_0x3be461={'eventID':_0x64674d[_0x5656cf(0x250)],'data':{'unitID':_0x2af522[_0x5656cf(0x2d3)],'unitType':this[_0x5656cf(0x201)],'changeset':_0x2af522,'memberID':this[_0x5656cf(0x2f6)][_0x5656cf(0x329)]()}};this['_session'][_0x5656cf(0x381)](_0x3be461,this['unitID']);},'onMissingChangesets':({from:_0x13154c,to:_0x380189})=>{const _0x18a1af=_0x1999;this[_0x18a1af(0x2ad)][_0x18a1af(0x1b0)]('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x13154c+'\x20to\x20'+_0x380189);const _0x1bae60={'eventID':_0x64674d[_0x18a1af(0x251)],'data':{'unitID':_0x4761df,'unitType':this[_0x18a1af(0x201)],'from':_0x13154c,'to':_0x380189}};this[_0x18a1af(0x2f6)][_0x18a1af(0x381)](_0x1bae60,this[_0x18a1af(0x2d3)]);}};}async['_createInitialStateImpl'](_0x41b9b3){const _0x1f9307=_0x48c788;var _0x5a3fd1,_0x54445e;const _0x8da2ce=await this['_localCacheService'][_0x1f9307(0x256)](this[_0x1f9307(0x2d3)]),_0x4e07ec=(_0x5a3fd1=_0x8da2ce==null?void 0x0:_0x8da2ce[_0x1f9307(0x3b5)])!=null?_0x5a3fd1:[],_0x1b2374=(_0x54445e=_0x8da2ce==null?void 0x0:_0x8da2ce[_0x1f9307(0x437)])!=null?_0x54445e:null,_0x1b5d3f=this[_0x1f9307(0x2d3)];try{this[_0x1f9307(0x448)](_0x1b2374,_0x4e07ec);}catch(_0x4b63d4){this[_0x1f9307(0x2ad)][_0x1f9307(0x1b3)](_0x4b63d4);}const _0x312d3c=this['_createHandler']();if(_0x41b9b3){const _0x4272d7=Os(this[_0x1f9307(0x2e1)],_0x1b5d3f,this[_0x1f9307(0x201)],_0x1b2374,_0x4e07ec,_0x312d3c);return _0x4272d7 instanceof B?_0x4272d7[_0x1f9307(0x3af)]():(_0x4272d7 instanceof V||_0x4272d7 instanceof K)&&_0x4272d7[_0x1f9307(0x20b)](),_0x4272d7;}return this[_0x1f9307(0x2e1)][_0x1f9307(0x3a1)](X,_0x1b5d3f,this[_0x1f9307(0x201)],_0x1b2374,_0x4e07ec,_0x312d3c);}[_0x48c788(0x448)](_0x4749a6,_0x3ce293){const _0x355458=_0x48c788;var _0x2813d6,_0x230ab9;const _0x4c8f9e=this['_compressMutationService']['interceptor'][_0x355458(0x4bb)](this[_0x355458(0x36a)][_0x355458(0x471)][_0x355458(0x238)]()[_0x355458(0x469)]);(_0x2813d6=_0x4c8f9e((_0x4749a6==null?void 0x0:_0x4749a6['mutations'])||[],null))==null||_0x2813d6[_0x355458(0x244)](_0x58a057=>this[_0x355458(0x1e9)][_0x355458(0x2df)](_0x58a057['id'],_0x58a057['params'])),(_0x230ab9=_0x4c8f9e(_0x3ce293||[],null))==null||_0x230ab9[_0x355458(0x244)](_0x3e2553=>this[_0x355458(0x1e9)][_0x355458(0x2df)](_0x3e2553['id'],_0x3e2553[_0x355458(0x23e)]));}};We=Je([S(0x3,_0x1df0bc(_0x1883e3)),S(0x4,_0x1df0bc(D)),S(0x5,_0x1df0bc(_0x50d638)),S(0x6,_0x1df0bc(_0x7ef8c9)),S(0x7,_0x1df0bc(_0x2426c9)),S(0x8,_0xcf8387),S(0x9,_0x26b7b1),S(0xa,_0xcc97bb),S(0xb,_0x4a2caa),S(0xc,_0x9cd523(Xe))],We);let dt=class extends We{constructor(_0x59d01e,_0x3bed7e,_0x1b9733,_0x51add4,_0x1db1b2,_0x162075,_0xe16ce9,_0x5613f9,_0x1de6af,_0x4f9ce5,_0x50171f,_0xcbe14e,_0x2c5239,_0x58dbab,_0x1a12dc,_0x277b4b,_0x29c847){const _0x456975=_0x48c788;super(_0x59d01e,_0x3bed7e,_0x1b9733,_0x51add4,_0x1db1b2,_0x162075,_0xe16ce9,_0x5613f9,_0x2c5239,_0x58dbab,_0x1a12dc,_0x277b4b,_0x29c847),this[_0x456975(0x2d3)]=_0x59d01e,this['type']=_0x3bed7e,this[_0x456975(0x2de)]=_0x1b9733,this[_0x456975(0x1f2)]=_0x1de6af,this[_0x456975(0x2dd)]=_0x4f9ce5,this[_0x456975(0x218)]=_0x50171f,this[_0x456975(0x2f3)]=_0xcbe14e;}[_0x48c788(0x2a6)](){const _0x5e183d=_0x48c788,_0x447f32=super[_0x5e183d(0x2a6)]();return _0x447f32['onTransformIME']=_0x129745=>this[_0x5e183d(0x2dd)][_0x5e183d(0x1c5)](_0x129745),_0x447f32[_0x5e183d(0x320)]=_0x1bc79c=>this[_0x5e183d(0x218)][_0x5e183d(0x4a4)](_0x1bc79c),_0x447f32[_0x5e183d(0x1ba)]=_0x42a108=>this[_0x5e183d(0x2f3)][_0x5e183d(0x4d5)](_0x42a108),_0x447f32[_0x5e183d(0x2b9)]=_0x25e177=>this[_0x5e183d(0x2dd)][_0x5e183d(0x1cf)](_0x25e177),_0x447f32;}async[_0x48c788(0x340)](){const _0x4e51d5=_0x48c788,_0x424676=await super[_0x4e51d5(0x340)]();return this[_0x4e51d5(0x1f2)][_0x4e51d5(0x1ee)]['pipe'](_0x219692(this[_0x4e51d5(0x4c9)]))[_0x4e51d5(0x237)](_0x3dd849=>{const _0x2bc24c=_0x4e51d5;if(_0x3dd849==null)return;const {unitId:_0x42a3f1,redoState:_0x14a792,commandId:_0x4aa04d}=_0x3dd849;if(_0x42a3f1!==this[_0x2bc24c(0x2d3)])return;const _0x52912b={'id':_0x4aa04d,'type':_0x2210bc['MUTATION'],'params':{'unitId':_0x42a3f1,'actions':_0x14a792['actions'],'textRanges':null}};this[_0x2bc24c(0x337)](_0x52912b);}),_0x424676;}};dt=Je([S(0x3,_0x1df0bc(_0x1883e3)),S(0x4,_0x1df0bc(D)),S(0x5,_0x1df0bc(_0x50d638)),S(0x6,_0x1df0bc(_0x7ef8c9)),S(0x7,_0x1df0bc(_0x2426c9)),S(0x8,_0x1df0bc(_0x18b292)),S(0x9,_0x1df0bc(ke)),S(0xa,_0x1df0bc(Be)),S(0xb,_0x1df0bc(Mt)),S(0xc,_0xcf8387),S(0xd,_0x26b7b1),S(0xe,_0xcc97bb),S(0xf,_0x4a2caa),S(0x10,_0x9cd523(Xe))],dt);let ft=class extends We{constructor(_0x2d8541,_0x12bd19,_0x5bc5b4,_0x5e2f03,_0x41f994,_0x39dc6e,_0x48d9a9,_0x316f61,_0x4069ff,_0x425d19,_0x474bca,_0x584fac,_0x3815a7,_0x892cde){const _0x7e46e7=_0x48c788;super(_0x2d8541,_0x12bd19,_0x5bc5b4,_0x5e2f03,_0x41f994,_0x39dc6e,_0x48d9a9,_0x316f61,_0x425d19,_0x474bca,_0x584fac,_0x3815a7,_0x892cde),this[_0x7e46e7(0x2d3)]=_0x2d8541,this[_0x7e46e7(0x45b)]=_0x12bd19,this[_0x7e46e7(0x2de)]=_0x5bc5b4,this[_0x7e46e7(0x4c0)]=_0x4069ff;}['_createHandler'](){const _0x114e86=_0x48c788,_0xbda31a=super['_createHandler']();return _0xbda31a[_0x114e86(0x320)]=_0x1d462c=>this[_0x114e86(0x4c0)][_0x114e86(0x4a4)](_0x1d462c),_0xbda31a;}async[_0x48c788(0x340)](){const _0xac461a=_0x48c788,_0x5de6cb=await super[_0xac461a(0x340)]();return this['disposeWithMe'](this[_0xac461a(0x1e9)]['onCommandExecuted']((_0x497816,_0x3effa9)=>{const _0x5bf770=_0xac461a;if(_0x497816[_0x5bf770(0x45b)]!==_0x2210bc['MUTATION']||_0x3effa9!=null&&_0x3effa9[_0x5bf770(0x1de)]||_0x3effa9!=null&&_0x3effa9['onlyLocal'])return;const _0x379318=_0x497816[_0x5bf770(0x23e)];if((_0x379318==null?void 0x0:_0x379318[_0x5bf770(0x1bf)])!==this[_0x5bf770(0x2d3)])return;const _0x46f20c=_0x497816,_0x49f3c0=this['_compressMutationService'][_0x5bf770(0x471)][_0x5bf770(0x4bb)](this['_compressMutationService'][_0x5bf770(0x471)]['getInterceptPoints']()[_0x5bf770(0x235)])([_0x46f20c],null)||[_0x46f20c];this[_0x5bf770(0x337)](_0x49f3c0[0x0]);})),_0x5de6cb;}};ft=Je([S(0x3,_0x1df0bc(_0x1883e3)),S(0x4,_0x1df0bc(D)),S(0x5,_0x1df0bc(_0x50d638)),S(0x6,_0x1df0bc(_0x7ef8c9)),S(0x7,_0x1df0bc(_0x2426c9)),S(0x8,_0x1df0bc(Ve)),S(0x9,_0xcf8387),S(0xa,_0x26b7b1),S(0xb,_0xcc97bb),S(0xc,_0x4a2caa),S(0xd,_0x9cd523(Xe))],ft);const zt=[_0x48c788(0x470),_0x48c788(0x213),_0x48c788(0x1cc),_0x48c788(0x22b),_0x48c788(0x3b0),_0x48c788(0x3d3)];class At extends _0x5de86a{constructor(){super(...arguments),l(this,'_assignedColors',new Map()),l(this,'_colorIndex',0x0);}[_0x48c788(0x33d)](_0x426d56){const _0x5be32f=_0x48c788;if(this['_assignedColors']['has'](_0x426d56))return this['_assignedColors'][_0x5be32f(0x4ce)](_0x426d56);const _0x2ea9b8=zt[this[_0x5be32f(0x31a)]];return this[_0x5be32f(0x31a)]=(this[_0x5be32f(0x31a)]+0x1)%zt[_0x5be32f(0x3c7)],this[_0x5be32f(0x42b)]['set'](_0x426d56,_0x2ea9b8),_0x2ea9b8;}}var Vn=Object[_0x48c788(0x299)],Wn=Object[_0x48c788(0x2bd)],Gn=(_0xbe5758,_0x372352,_0x4d6de4,_0x57bff1)=>{const _0x43312f=_0x48c788;for(var _0x1e06a8=_0x57bff1>0x1?void 0x0:_0x57bff1?Wn(_0x372352,_0x4d6de4):_0x372352,_0x21607b=_0xbe5758[_0x43312f(0x3c7)]-0x1,_0x35a111;_0x21607b>=0x0;_0x21607b--)(_0x35a111=_0xbe5758[_0x21607b])&&(_0x1e06a8=(_0x57bff1?_0x35a111(_0x372352,_0x4d6de4,_0x1e06a8):_0x35a111(_0x1e06a8))||_0x1e06a8);return _0x57bff1&&_0x1e06a8&&Vn(_0x372352,_0x4d6de4,_0x1e06a8),_0x1e06a8;},ae=(_0x4b6f0c,_0x51d61c)=>(_0x4f2368,_0x2405d3)=>_0x51d61c(_0x4f2368,_0x2405d3,_0x4b6f0c);const Yn=0x12c,Kn=0x64,Xn=()=>{let _0x55f95e=[],_0x2b47fc=!0x1;return _0x4dff51=>{const _0x434c97=_0x1999;_0x55f95e[_0x434c97(0x3ae)](_0x4dff51),_0x2b47fc||(_0x2b47fc=!0x0,setTimeout(()=>{const _0x360bea=_0x434c97;_0x55f95e[_0x360bea(0x244)](_0x20d6e6=>_0x20d6e6()),_0x55f95e=[],_0x2b47fc=!0x1;}));};};let gt=class extends _0x4f9c78{constructor(_0x3b2d6d,_0x3427d8,_0x53d653,_0x402a29,_0xa7be12,_0xa2b729,_0x5ea150,_0x469ca0){const _0x281bb1=_0x48c788;super(),l(this,_0x281bb1(0x26d),!0x1),l(this,_0x281bb1(0x340),!0x1),l(this,'_cursorInfo$',new _0xac9643(new Map())),l(this,_0x281bb1(0x268),this[_0x281bb1(0x322)][_0x281bb1(0x1ec)]()),l(this,_0x281bb1(0x396),new _0xac9643([])),l(this,_0x281bb1(0x360),this[_0x281bb1(0x396)]['pipe'](_0x5b9b01(Yn))),l(this,_0x281bb1(0x336),_0x12f611((_0x46c85e,_0x39c76b)=>{const _0x4481f4=_0x281bb1,_0x4659d8={'eventID':_0x64674d[_0x4481f4(0x1ed)],'data':{'unitID':this[_0x4481f4(0x2d3)],'memberID':this[_0x4481f4(0x2f6)][_0x4481f4(0x329)](),'selection':_0x14626b(_0x46c85e,_0x39c76b['range'])}};this[_0x4481f4(0x2f6)][_0x4481f4(0x381)](_0x4659d8,this[_0x4481f4(0x2d3)]);},Kn)),(this[_0x281bb1(0x2d3)]=_0x3b2d6d,this[_0x281bb1(0x2f6)]=_0x3427d8,this[_0x281bb1(0x2e1)]=_0x53d653,this[_0x281bb1(0x39d)]=_0x402a29,this['_memberService']=_0xa7be12,this[_0x281bb1(0x38c)]=_0xa2b729,this[_0x281bb1(0x1e9)]=_0x5ea150,this[_0x281bb1(0x30e)]=_0x469ca0);}get[_0x48c788(0x426)](){const _0x88bc65=_0x48c788;return this['_cursorInfo$'][_0x88bc65(0x326)]();}get['roomMembers'](){const _0x5ef64d=_0x48c788;return this[_0x5ef64d(0x396)][_0x5ef64d(0x326)]();}[_0x48c788(0x46e)](){const _0x3bc292=_0x48c788;super[_0x3bc292(0x46e)](),this[_0x3bc292(0x322)][_0x3bc292(0x325)](new Map()),this[_0x3bc292(0x322)][_0x3bc292(0x22e)](),this[_0x3bc292(0x396)][_0x3bc292(0x325)]([]),this['_roomMembers$'][_0x3bc292(0x22e)]();}[_0x48c788(0x400)](){const _0x3329be=_0x48c788;this[_0x3329be(0x340)]||(this['_init']=!0x0,this[_0x3329be(0x2f6)]['sessionStatus$'][_0x3329be(0x3bd)](_0x219692(this[_0x3329be(0x4c9)]))[_0x3329be(0x237)](_0x3aface=>{const _0x464693=_0x3329be;_0x3aface===_e[_0x464693(0x431)]?this[_0x464693(0x1d1)]():this[_0x464693(0x41e)]();}),this[_0x3329be(0x2f6)][_0x3329be(0x3d7)][_0x3329be(0x3bd)](_0x219692(this[_0x3329be(0x4c9)]))[_0x3329be(0x237)](_0x4e3854=>{const _0x42e1be=_0x3329be,_0xa13038=_0x4e3854[_0x42e1be(0x420)];_0xa13038===_0x64674d[_0x42e1be(0x1ed)]&&this[_0x42e1be(0x369)](_0x4e3854),_0xa13038===_0x64674d['USERS_LEAVE']&&this[_0x42e1be(0x202)](_0x4e3854);}),this[_0x3329be(0x28b)](),this[_0x3329be(0x3e7)](this[_0x3329be(0x1e9)][_0x3329be(0x24a)](_0x232f73=>{const _0x573526=_0x3329be;if(this[_0x573526(0x26d)]&&_0x232f73['id']===_0x576668['id']&&_0x232f73[_0x573526(0x23e)][_0x573526(0x1bf)]===this[_0x573526(0x2d3)]){const _0x1f9182=_0x232f73[_0x573526(0x23e)];this[_0x573526(0x336)](_0x1f9182[_0x573526(0x3eb)],_0x1f9182[_0x573526(0x2fc)][0x0]);}})));}[_0x48c788(0x369)](_0x46b6c0){const _0x20ee4f=_0x48c788;var _0x364ab4,_0x2c6970;const {memberID:_0x5abd02,selection:_0x1ea552}=_0x46b6c0[_0x20ee4f(0x43e)],{sheetName:_0x4fc6cf,range:_0x9cb8e}=_0x3f2fda(_0x1ea552),_0x229fd9={'name':(_0x2c6970=(_0x364ab4=this[_0x20ee4f(0x28e)][_0x20ee4f(0x395)](this[_0x20ee4f(0x2d3)],_0x5abd02))==null?void 0x0:_0x364ab4['name'])!=null?_0x2c6970:_0x20ee4f(0x2fd),'range':this[_0x20ee4f(0x308)](_0x4fc6cf,_0x9cb8e),'sheetID':_0x4fc6cf,'color':this[_0x20ee4f(0x39d)][_0x20ee4f(0x33d)](_0x5abd02),'selection':_0x1ea552},_0x2ce80=this['cursorInfo'];_0x2ce80[_0x20ee4f(0x25a)](_0x5abd02,_0x229fd9),this[_0x20ee4f(0x322)][_0x20ee4f(0x325)](_0x2ce80);}[_0x48c788(0x202)](_0x25ac35){const _0x1cabd6=_0x48c788,{memberID:_0x545636}=_0x25ac35[_0x1cabd6(0x43e)],_0x43f460=this[_0x1cabd6(0x426)];_0x43f460[_0x1cabd6(0x388)](_0x545636),this[_0x1cabd6(0x322)][_0x1cabd6(0x325)](_0x43f460);}[_0x48c788(0x308)](_0x92020,_0x168cf){const _0x12e443=_0x48c788;var _0x102388,_0x5247c4;const _0xdf84ca=(_0x5247c4=(_0x102388=this[_0x12e443(0x38c)]['getUniverSheetInstance'](this[_0x12e443(0x2d3)]))==null?void 0x0:_0x102388[_0x12e443(0x416)](_0x92020))==null?void 0x0:_0x5247c4[_0x12e443(0x283)]();return(_0xdf84ca==null?void 0x0:_0xdf84ca['find'](_0x229e15=>_0x294f92[_0x12e443(0x1c6)](_0x229e15,_0x168cf)))||_0x168cf;}[_0x48c788(0x28b)](){const _0x299b8e=_0x48c788,_0x45c380=new _0x53ebaa(),_0x4ab073=Xn(),_0x5b2520=()=>{const _0x391bce=_0x1999;_0x45c380[_0x391bce(0x46e)]();const _0x4436e5=(_0x20723d,_0x24a9fb,_0x5d3300,_0x5ca470)=>{const _0x1d31d7=_0x391bce;let _0x39b573=[];switch(_0x20723d['id']){case _0x3445c6['DeleteRangeMoveLeftCommandId']:{_0x39b573=_0x31225a(_0x20723d,_0x5ca470);break;}case _0x3445c6[_0x1d31d7(0x3b8)]:{_0x39b573=_0xac4d22(_0x20723d,_0x5ca470);break;}case _0x3445c6[_0x1d31d7(0x493)]:{_0x39b573=_0x4ac67f(_0x20723d,_0x5ca470);break;}case _0x3445c6[_0x1d31d7(0x3fe)]:{_0x39b573=_0x174883(_0x20723d,_0x5ca470);break;}case _0x3445c6[_0x1d31d7(0x39a)]:{_0x39b573=_0x257710(_0x20723d,_0x5ca470);break;}case _0x3445c6[_0x1d31d7(0x23d)]:{_0x39b573=_0x4e6c23(_0x20723d,_0x5ca470);break;}case _0x3445c6[_0x1d31d7(0x245)]:{_0x39b573=_0x4784f5(_0x20723d,_0x5ca470);break;}case _0x3445c6[_0x1d31d7(0x39c)]:{_0x39b573=_0x2f6da3(_0x20723d,_0x5ca470);break;}case _0x3445c6[_0x1d31d7(0x4d0)]:{_0x39b573=_0x2b7f87(_0x20723d,_0x5ca470);break;}}const _0x2e405b=_0x477418(_0x39b573,_0x5ca470),_0x389b11=this[_0x1d31d7(0x426)]['get'](_0x24a9fb);if(_0x389b11&&_0x2e405b){const _0x1fd40d={..._0x389b11,'range':_0x2e405b};this[_0x1d31d7(0x426)]['set'](_0x24a9fb,_0x1fd40d),_0x4ab073(()=>{const _0x50ddce=_0x1d31d7,_0x2a10fb=this[_0x50ddce(0x30e)][_0x50ddce(0x1f4)](_0x2e405b,_0x3677b2=>(_0x2a10fb[_0x50ddce(0x46e)](),_0x4436e5(_0x3677b2,_0x24a9fb,_0x5d3300,_0x2e405b)));_0x45c380[_0x50ddce(0x20d)](_0x2a10fb);});}return{'redos':[],'undos':[]};};this[_0x391bce(0x426)][_0x391bce(0x244)]((_0x20e836,_0x250284)=>{const _0xc31dcf=_0x391bce,{range:_0x5507b1,sheetID:_0x76ae45}=_0x20e836,_0x28e092=this[_0xc31dcf(0x30e)][_0xc31dcf(0x1f4)](_0x5507b1,_0x24056e=>(_0x28e092['dispose'](),_0x4436e5(_0x24056e,_0x250284,_0x76ae45,_0x5507b1)));_0x45c380[_0xc31dcf(0x20d)](_0x28e092);});};this[_0x299b8e(0x3e7)](_0x308092(this['_cursorInfo$'][_0x299b8e(0x237)](()=>{_0x5b2520();})));}[_0x48c788(0x1d1)](){const _0x764089=_0x48c788;var _0x1442a6,_0x1d7846;if(this[_0x764089(0x26d)]=!0x0,((_0x1442a6=this[_0x764089(0x38c)]['getFocusedUnit']())==null?void 0x0:_0x1442a6['getUnitId']())!==this['unitID'])return;const _0x1b1196=(_0x1d7846=this[_0x764089(0x2e1)][_0x764089(0x4ce)](_0x241ac5)[_0x764089(0x2cf)]())==null?void 0x0:_0x1d7846[0x0];_0x1b1196&&this['_updateLocalCursor'](this[_0x764089(0x38c)][_0x764089(0x287)](_0x5b42a8['UNIVER_SHEET'])['getActiveSheet']()[_0x764089(0x45f)](),_0x1b1196);}[_0x48c788(0x41e)](){this['_online']=!0x1;}};gt=Gn([ae(0x2,_0x1df0bc(_0x1883e3)),ae(0x3,_0x1df0bc(At)),ae(0x4,_0x1df0bc(ee)),ae(0x5,_0x5db99b),ae(0x6,_0x26b7b1),ae(0x7,_0x1df0bc(_0xd07635))],gt);var Jn=Object['defineProperty'],zn=Object[_0x48c788(0x2bd)],qn=(_0x2563c6,_0x4d823b,_0x1c52a0,_0x197f69)=>{const _0x3de05f=_0x48c788;for(var _0x5c5f7a=_0x197f69>0x1?void 0x0:_0x197f69?zn(_0x4d823b,_0x1c52a0):_0x4d823b,_0x3c66a7=_0x2563c6[_0x3de05f(0x3c7)]-0x1,_0x4b1984;_0x3c66a7>=0x0;_0x3c66a7--)(_0x4b1984=_0x2563c6[_0x3c66a7])&&(_0x5c5f7a=(_0x197f69?_0x4b1984(_0x4d823b,_0x1c52a0,_0x5c5f7a):_0x4b1984(_0x5c5f7a))||_0x5c5f7a);return _0x197f69&&_0x5c5f7a&&Jn(_0x4d823b,_0x1c52a0,_0x5c5f7a),_0x5c5f7a;},q=(_0x42630b,_0x1e0f73)=>(_0x4f74f7,_0x327704)=>_0x1e0f73(_0x4f74f7,_0x327704,_0x42630b);const Zn=0x12c,Qn=0x64;let mt=class extends _0x4f9c78{constructor(_0x27539a,_0x9f398a,_0x582dd4,_0x1bc537,_0x37ebe0,_0x42d176,_0x4d5f82,_0x4a752f,_0x51bd2b){const _0x52d4f4=_0x48c788;super(),l(this,_0x52d4f4(0x26d),!0x1),l(this,_0x52d4f4(0x340),!0x1),l(this,_0x52d4f4(0x322),new _0xac9643(new Map())),l(this,'cursorInfo$',this[_0x52d4f4(0x322)]['asObservable']()),l(this,_0x52d4f4(0x396),new _0xac9643([])),l(this,_0x52d4f4(0x360),this[_0x52d4f4(0x396)]['pipe'](_0x5b9b01(Zn))),l(this,_0x52d4f4(0x336),_0x12f611(_0x1cd1ac=>{const _0x4b756e=_0x52d4f4,_0x5ee5a9={'eventID':_0x64674d[_0x4b756e(0x1ed)],'data':{'unitID':this[_0x4b756e(0x2d3)],'memberID':this[_0x4b756e(0x2f6)][_0x4b756e(0x329)](),'selection':Ts(_0x1cd1ac)}};this[_0x4b756e(0x2f6)]['send'](_0x5ee5a9,this['unitID']);},Qn)),(this[_0x52d4f4(0x2d3)]=_0x27539a,this[_0x52d4f4(0x2f6)]=_0x9f398a,this[_0x52d4f4(0x2e1)]=_0x582dd4,this['_colorAssignService']=_0x1bc537,this[_0x52d4f4(0x28e)]=_0x37ebe0,this[_0x52d4f4(0x427)]=_0x42d176,this[_0x52d4f4(0x231)]=_0x4d5f82,this[_0x52d4f4(0x38c)]=_0x4a752f,this['_commandService']=_0x51bd2b);}get[_0x48c788(0x426)](){const _0x31e8ea=_0x48c788;return this['_cursorInfo$'][_0x31e8ea(0x326)]();}get['roomMembers'](){const _0x3756a4=_0x48c788;return this[_0x3756a4(0x396)]['getValue']();}['dispose'](){const _0x313c54=_0x48c788;super['dispose'](),this[_0x313c54(0x322)][_0x313c54(0x325)](new Map()),this[_0x313c54(0x322)][_0x313c54(0x22e)](),this['_roomMembers$'][_0x313c54(0x325)]([]),this[_0x313c54(0x396)][_0x313c54(0x22e)]();}[_0x48c788(0x400)](){const _0x4ef4c3=_0x48c788;this[_0x4ef4c3(0x340)]||(this[_0x4ef4c3(0x340)]=!0x0,this[_0x4ef4c3(0x2f6)][_0x4ef4c3(0x449)][_0x4ef4c3(0x3bd)](_0x219692(this[_0x4ef4c3(0x4c9)]))[_0x4ef4c3(0x237)](_0xb44fb7=>{const _0x57b90b=_0x4ef4c3;_0xb44fb7===_e[_0x57b90b(0x431)]?this[_0x57b90b(0x1d1)]():this[_0x57b90b(0x41e)]();}),this[_0x4ef4c3(0x2f6)][_0x4ef4c3(0x3d7)]['pipe'](_0x219692(this[_0x4ef4c3(0x4c9)]))[_0x4ef4c3(0x237)](_0x1930ef=>{const _0x126d40=_0x4ef4c3,_0x4fcd5d=_0x1930ef['eventID'];_0x4fcd5d===_0x64674d['UPDATE_CURSOR']&&this[_0x126d40(0x369)](_0x1930ef),_0x4fcd5d===_0x64674d[_0x126d40(0x22c)]&&this['_onCursorDelete'](_0x1930ef);}),this[_0x4ef4c3(0x3e7)](this[_0x4ef4c3(0x1e9)][_0x4ef4c3(0x24a)](_0x3a75cb=>{const _0x2844cf=_0x4ef4c3,_0x77782d=_0x3a75cb[_0x2844cf(0x23e)];_0x77782d!=null&&this[_0x2844cf(0x26d)]&&_0x3a75cb['id']===_0x1d44c4['id']&&_0x77782d[_0x2844cf(0x1bf)]===this[_0x2844cf(0x2d3)]&&_0x77782d[_0x2844cf(0x27c)]===!0x1&&this[_0x2844cf(0x336)](_0x77782d[_0x2844cf(0x1e1)]);})),this[_0x4ef4c3(0x427)]['collabCursorState$'][_0x4ef4c3(0x3bd)](_0x219692(this['dispose$']))[_0x4ef4c3(0x237)](_0x1e0f6c=>{const _0x55d6ff=_0x4ef4c3;if((_0x1e0f6c==null?void 0x0:_0x1e0f6c[_0x55d6ff(0x2d3)])!==this['unitID'])return;const _0xbd8998={'eventID':_0x64674d[_0x55d6ff(0x1ed)],'data':_0x1e0f6c};this[_0x55d6ff(0x369)](_0xbd8998);}),this[_0x4ef4c3(0x3e7)](this['_commandService'][_0x4ef4c3(0x24a)](_0x23bcf2=>{const _0x121076=_0x4ef4c3;if(_0x23bcf2[_0x121076(0x23e)]==null)return;const _0xe3547b=_0x23bcf2[_0x121076(0x23e)];if(_0x23bcf2['id']!==_0x436bb5['id']||_0xe3547b['unitId']!==this[_0x121076(0x2d3)])return;const _0x5d2fac={'id':_0x121076(0x4b6),'params':_0xe3547b},_0xdc0c40=this[_0x121076(0x426)];for(const [_0x380e95,_0x552fcd]of _0xdc0c40){const _0x5ce29f={'id':_0x121076(0x4b6),'params':{'unitId':this[_0x121076(0x2d3)],'actions':null,'textRanges':_0x552fcd[_0x121076(0x1e1)]}},_0x3734c3=this[_0x121076(0x231)][_0x121076(0x33b)](_0x5d2fac,_0x5ce29f,!0x1);if(_0x1ce5e8(_0x3734c3))throw _0x3734c3[_0x121076(0x1b3)];_0xdc0c40[_0x121076(0x25a)](_0x380e95,{..._0x552fcd,'ranges':_0x3734c3[_0x121076(0x1bc)]['params'][_0x121076(0x410)]});}queueMicrotask(()=>{const _0x3e6941=_0x121076;this[_0x3e6941(0x322)][_0x3e6941(0x325)](_0xdc0c40);});})));}[_0x48c788(0x369)](_0x139234){const _0x146f57=_0x48c788;var _0xa4f3e3,_0x52c636;const {memberID:_0x20a304,selection:_0x496487}=_0x139234['data'],_0xdec932=An(_0x496487),_0x2ef780=(_0x52c636=(_0xa4f3e3=this[_0x146f57(0x28e)][_0x146f57(0x395)](this[_0x146f57(0x2d3)],_0x20a304))==null?void 0x0:_0xa4f3e3[_0x146f57(0x2e3)])!=null?_0x52c636:'Unknown\x20user',_0x449330={'color':this['_colorAssignService'][_0x146f57(0x33d)](_0x20a304),'name':_0x2ef780,'ranges':_0xdec932},_0x4769d4=this[_0x146f57(0x426)];_0x4769d4[_0x146f57(0x25a)](_0x20a304,_0x449330),this[_0x146f57(0x322)][_0x146f57(0x325)](_0x4769d4);}[_0x48c788(0x202)](_0x4cc5c0){const _0x1389ac=_0x48c788,{memberID:_0x21c85b}=_0x4cc5c0[_0x1389ac(0x43e)],_0x15fdf1=this[_0x1389ac(0x426)];_0x15fdf1[_0x1389ac(0x388)](_0x21c85b),this['_cursorInfo$'][_0x1389ac(0x325)](_0x15fdf1);}['_toggleOnline'](){const _0x5b7df9=_0x48c788;var _0x4b8555;if(this[_0x5b7df9(0x26d)]=!0x0,((_0x4b8555=this['_univerInstanceService'][_0x5b7df9(0x1d2)]())==null?void 0x0:_0x4b8555['getUnitId']())!==this[_0x5b7df9(0x2d3)])return;const _0x1bd7e5=this['_injector'][_0x5b7df9(0x4ce)](_0x3953fa)[_0x5b7df9(0x2cf)](),_0x129612=_0x1bd7e5==null?void 0x0:_0x1bd7e5['map'](_0x478cbe);Array[_0x5b7df9(0x1c9)](_0x129612)&&_0x129612['length']>0x0&&this[_0x5b7df9(0x336)](_0x129612);}['_toggleOffline'](){const _0x11e117=_0x48c788;this[_0x11e117(0x26d)]=!0x1;}};mt=qn([q(0x2,_0x1df0bc(_0x1883e3)),q(0x3,_0x1df0bc(At)),q(0x4,_0x1df0bc(ee)),q(0x5,_0x1df0bc(Mt)),q(0x6,_0x56e350),q(0x7,_0x5db99b),q(0x8,_0x26b7b1)],mt);var er=Object[_0x48c788(0x299)],tr=Object[_0x48c788(0x2bd)],sr=(_0x4b9849,_0x28fe7a,_0x8e6422,_0x4062ac)=>{for(var _0x19e46e=_0x4062ac>0x1?void 0x0:_0x4062ac?tr(_0x28fe7a,_0x8e6422):_0x28fe7a,_0x6b90c5=_0x4b9849['length']-0x1,_0x23a17a;_0x6b90c5>=0x0;_0x6b90c5--)(_0x23a17a=_0x4b9849[_0x6b90c5])&&(_0x19e46e=(_0x4062ac?_0x23a17a(_0x28fe7a,_0x8e6422,_0x19e46e):_0x23a17a(_0x19e46e))||_0x19e46e);return _0x4062ac&&_0x19e46e&&er(_0x28fe7a,_0x8e6422,_0x19e46e),_0x19e46e;},st=(_0x127a08,_0x437065)=>(_0x4df320,_0x484af9)=>_0x437065(_0x4df320,_0x484af9,_0x127a08);let ue=class extends _0x4f9c78{constructor(_0x1b30eb,_0x55bfef,_0x3920b5){const _0x204fae=_0x48c788;super(),l(this,_0x204fae(0x27f),new Map()),l(this,'_entityInit$',new _0x255156()),(this['_univerInstanceService']=_0x1b30eb,this['_injector']=_0x55bfef,this['_collabSessionService']=_0x3920b5,this['_init']());}[_0x48c788(0x46e)](){const _0x5934af=_0x48c788;super[_0x5934af(0x46e)](),this[_0x5934af(0x4c4)][_0x5934af(0x22e)](),this[_0x5934af(0x27f)][_0x5934af(0x244)](_0x3b854c=>_0x3b854c[_0x5934af(0x46e)]());}[_0x48c788(0x4cd)](_0x6339fd){const _0xb595a4=_0x48c788;return this[_0xb595a4(0x27f)][_0xb595a4(0x3f4)](_0x6339fd)?this[_0xb595a4(0x27f)]['get'](_0x6339fd)[_0xb595a4(0x268)]:this[_0xb595a4(0x4c4)][_0xb595a4(0x3bd)](_0x2b78dc(_0x382d64=>_0x382d64[_0xb595a4(0x2d3)]===_0x6339fd),_0x52b39c(_0x176251=>_0x176251[_0xb595a4(0x268)]));}[_0x48c788(0x340)](){const _0x1a189b=_0x48c788;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5b42a8['UNIVER_SHEET'])[_0x1a189b(0x3bd)](_0x219692(this[_0x1a189b(0x4c9)]))[_0x1a189b(0x237)](async _0x2fcbd9=>{const _0xb83a46=_0x1a189b,_0x45877a=_0x2fcbd9['getUnitId'](),_0x3fdfd4=await this['_startSheetCollabCursor'](_0x45877a);this[_0xb83a46(0x4c4)]['next'](_0x3fdfd4),this[_0xb83a46(0x27f)][_0xb83a46(0x25a)](_0x45877a,_0x3fdfd4);}),this[_0x1a189b(0x38c)]['getTypeOfUnitAdded$'](_0x5b42a8['UNIVER_DOC'])[_0x1a189b(0x3bd)](_0x219692(this[_0x1a189b(0x4c9)]))[_0x1a189b(0x3bd)](_0x2b78dc(_0xdbb7eb=>!_0xdbb7eb[_0x1a189b(0x451)]()[_0x1a189b(0x458)]('__')))[_0x1a189b(0x237)](async _0x4dab01=>{const _0x39e6d4=_0x1a189b,_0x30ea47=_0x4dab01[_0x39e6d4(0x451)](),_0x3b4a62=await this[_0x39e6d4(0x439)](_0x30ea47);this[_0x39e6d4(0x4c4)][_0x39e6d4(0x325)](_0x3b4a62),this[_0x39e6d4(0x27f)]['set'](_0x30ea47,_0x3b4a62);}),_0x10f2b0(this[_0x1a189b(0x38c)]['getTypeOfUnitDisposed$'](_0x5b42a8[_0x1a189b(0x4d4)]),this[_0x1a189b(0x38c)]['getTypeOfUnitDisposed$'](_0x5b42a8[_0x1a189b(0x29e)]))['pipe'](_0x219692(this['dispose$']))[_0x1a189b(0x237)](_0x3740cd=>{const _0x2a8e28=_0x1a189b,_0x37a302=_0x3740cd[_0x2a8e28(0x451)](),_0x1d1d8f=this[_0x2a8e28(0x27f)]['get'](_0x37a302);_0x1d1d8f&&(_0x1d1d8f[_0x2a8e28(0x46e)](),this[_0x2a8e28(0x27f)][_0x2a8e28(0x388)](_0x37a302));});}async[_0x48c788(0x1d0)](_0x112b73){const _0x4927cb=_0x48c788,_0x3a3961=await this['_collabSessionService']['requireSession'](_0x112b73),_0x3fec6a=this['_injector'][_0x4927cb(0x3a1)](gt,_0x112b73,_0x3a3961);return _0x3fec6a[_0x4927cb(0x400)](),_0x3fec6a;}async[_0x48c788(0x439)](_0x412c90){const _0x10e5ea=_0x48c788,_0x50adf2=await this[_0x10e5ea(0x3b6)][_0x10e5ea(0x44c)](_0x412c90),_0x5434d9=this[_0x10e5ea(0x2e1)][_0x10e5ea(0x3a1)](mt,_0x412c90,_0x50adf2);return _0x5434d9[_0x10e5ea(0x400)](),_0x5434d9;}};ue=sr([_0x4bcad5(_0xba774d[_0x48c788(0x48c)],ue),st(0x0,_0x5db99b),st(0x1,_0x1df0bc(_0x1883e3)),st(0x2,_0x1df0bc(Re))],ue);const Oe=0x14,qt=0xc8,it=0x4,ir=0x5;function nr(_0x467bf6,_0x48e039){const _0x45f58b=_0x48c788;let {radius:_0x5bc7bc,width:_0x21e168,height:_0x472314}=_0x48e039;_0x5bc7bc=_0x5bc7bc!=null?_0x5bc7bc:0x0,_0x21e168=_0x21e168!=null?_0x21e168:0x1e,_0x472314=_0x472314!=null?_0x472314:0x1e;let _0x53877f=0x0,_0x249d46=0x0,_0x1ed93d=0x0;_0x53877f=_0x249d46=_0x1ed93d=Math[_0x45f58b(0x462)](_0x5bc7bc,_0x21e168/0x2,_0x472314/0x2),_0x467bf6[_0x45f58b(0x3a3)](),_0x467bf6[_0x45f58b(0x2bb)](_0x53877f,0x0),_0x467bf6[_0x45f58b(0x257)](_0x21e168-_0x249d46,0x0),_0x467bf6['arc'](_0x21e168-_0x249d46,_0x249d46,_0x249d46,Math['PI']*0x3/0x2,0x0,!0x1),_0x467bf6['lineTo'](_0x21e168,_0x472314-_0x1ed93d),_0x467bf6[_0x45f58b(0x266)](_0x21e168-_0x1ed93d,_0x472314-_0x1ed93d,_0x1ed93d,0x0,Math['PI']/0x2,!0x1),_0x467bf6[_0x45f58b(0x257)](0x0,_0x472314),_0x467bf6[_0x45f58b(0x257)](0x0,_0x53877f),_0x467bf6['arc'](_0x53877f,_0x53877f,_0x53877f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x467bf6[_0x45f58b(0x224)](),_0x48e039[_0x45f58b(0x403)]&&(_0x467bf6[_0x45f58b(0x2c6)](),_0x467bf6[_0x45f58b(0x1c1)]=_0x48e039[_0x45f58b(0x403)],_0x48e039[_0x45f58b(0x453)]==='evenodd'?_0x467bf6['fill'](_0x45f58b(0x376)):_0x467bf6[_0x45f58b(0x403)](),_0x467bf6[_0x45f58b(0x461)]());}class ze extends _0x5760a1{constructor(_0x5ea5be,_0x163f22){const _0x1b0361=_0x48c788;super(_0x5ea5be,_0x163f22),l(this,_0x1b0361(0x295)),l(this,_0x1b0361(0x4a5)),(this[_0x1b0361(0x295)]=_0x163f22==null?void 0x0:_0x163f22[_0x1b0361(0x295)],this[_0x1b0361(0x4a5)]=_0x163f22==null?void 0x0:_0x163f22['text']);}static[_0x48c788(0x300)](_0x4858dd,_0x2b67ee){const _0x328e07=_0x48c788,{text:_0x187501,color:_0x19d075}=_0x2b67ee;_0x4858dd[_0x328e07(0x2c6)](),_0x4858dd['font']=_0x328e07(0x26f);const _0x54faa9=_0x4858dd['measureText'](_0x187501)[_0x328e07(0x1c3)],_0x2c095f=Math[_0x328e07(0x462)](_0x54faa9+0x2*it,qt);nr(_0x4858dd,{'height':Oe,'radius':0x4,'width':_0x2c095f,'fill':_0x19d075,'evented':!0x1}),_0x4858dd[_0x328e07(0x1c1)]=_0x328e07(0x421);const _0x2cd059=it,_0x1461bf=Oe-ir,_0x33eca5=qt-0x2*it;if(_0x54faa9>_0x33eca5){let _0x57e321='',_0x364fbf=0x0;for(const _0x4cf1a2 of _0x187501){const _0x68137d=_0x4858dd[_0x328e07(0x34f)](_0x4cf1a2)[_0x328e07(0x1c3)];if(_0x364fbf+_0x68137d<=_0x33eca5-_0x4858dd[_0x328e07(0x34f)](_0x328e07(0x4ac))['width'])_0x57e321+=_0x4cf1a2,_0x364fbf+=_0x68137d;else{_0x57e321+=_0x328e07(0x4ac);break;}}_0x4858dd[_0x328e07(0x432)](_0x57e321,_0x2cd059,_0x1461bf);}else _0x4858dd[_0x328e07(0x432)](_0x187501,_0x2cd059,_0x1461bf);_0x4858dd[_0x328e07(0x461)]();}[_0x48c788(0x3cb)](_0x329e0b){const _0x19ec4e=_0x48c788;ze[_0x19ec4e(0x300)](_0x329e0b,this);}}const rr=0x1,or=1.5;class ar extends _0x5760a1{constructor(_0x2868d2,_0x4eb94c){const _0x16c8cd=_0x48c788;super(_0x2868d2,_0x4eb94c),l(this,_0x16c8cd(0x1fe)),l(this,_0x16c8cd(0x37a),!0x1),l(this,_0x16c8cd(0x3aa)),l(this,'_name',''),l(this,_0x16c8cd(0x4b5),'top'),(_0x4eb94c&&this[_0x16c8cd(0x3cf)](_0x4eb94c),this['onPointerEnterObserver'][_0x16c8cd(0x20d)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x16c8cd(0x3f1)][_0x16c8cd(0x20d)](()=>this[_0x16c8cd(0x3cf)]({'hovered':!0x1})));}['setShapeProps'](_0x106826){const _0x290c76=_0x48c788;var _0xa5594b,_0x4c0fe7,_0x144192,_0x5c7397,_0x424e58;this[_0x290c76(0x1fe)]=(_0xa5594b=_0x106826[_0x290c76(0x295)])!=null?_0xa5594b:this[_0x290c76(0x1fe)],this['_hovered']=(_0x4c0fe7=_0x106826[_0x290c76(0x1f3)])!=null?_0x4c0fe7:this[_0x290c76(0x37a)],this[_0x290c76(0x3aa)]=(_0x144192=_0x106826[_0x290c76(0x479)])!=null?_0x144192:this[_0x290c76(0x3aa)],this['_name']=(_0x5c7397=_0x106826[_0x290c76(0x2e3)])!=null?_0x5c7397:this[_0x290c76(0x28f)],this[_0x290c76(0x4b5)]=(_0x424e58=_0x106826[_0x290c76(0x35c)])!=null?_0x424e58:this[_0x290c76(0x4b5)],this[_0x290c76(0x3a8)]({'width':_0x106826[_0x290c76(0x1c3)],'height':_0x106826[_0x290c76(0x4cc)]});}[_0x48c788(0x3df)](_0x5a80de){const _0x4f807c=_0x48c788,{row:_0x124eb2,column:_0x4eeec9}=_0x5a80de;if(_0x124eb2>=this['_range'][_0x4f807c(0x4af)]&&_0x124eb2<=this[_0x4f807c(0x3aa)][_0x4f807c(0x414)]&&_0x4eeec9>=this[_0x4f807c(0x3aa)][_0x4f807c(0x41c)]&&_0x4eeec9<=this[_0x4f807c(0x3aa)][_0x4f807c(0x3ff)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x4f807c(0x3cf)]({'hovered':!0x1});}[_0x48c788(0x1fb)](_0x3b846c){return!0x1;}[_0x48c788(0x3cb)](_0x32ab72){const _0x77bd77=_0x48c788;_0x31e76b[_0x77bd77(0x300)](_0x32ab72,{'width':this[_0x77bd77(0x1c3)],'height':this[_0x77bd77(0x4cc)],'strokeWidth':or,'stroke':this[_0x77bd77(0x1fe)],'evented':!0x1}),this[_0x77bd77(0x37a)]&&(_0x32ab72[_0x77bd77(0x2c6)](),_0x32ab72[_0x77bd77(0x2b7)](0x1,0x0,0x0,0x1,this[_0x77bd77(0x1c3)],this['_labelPosition']===_0x77bd77(0x2f0)?0x0:-Oe),ze[_0x77bd77(0x300)](_0x32ab72,{'text':this[_0x77bd77(0x28f)],'color':this['_color']}),_0x32ab72[_0x77bd77(0x461)]());}}var cr=Object[_0x48c788(0x299)],hr=Object['getOwnPropertyDescriptor'],lr=(_0x528e65,_0x298afe,_0x42b7db,_0x21f2fc)=>{const _0x4210db=_0x48c788;for(var _0x1222dc=_0x21f2fc>0x1?void 0x0:_0x21f2fc?hr(_0x298afe,_0x42b7db):_0x298afe,_0x53aeb2=_0x528e65[_0x4210db(0x3c7)]-0x1,_0x2a1b98;_0x53aeb2>=0x0;_0x53aeb2--)(_0x2a1b98=_0x528e65[_0x53aeb2])&&(_0x1222dc=(_0x21f2fc?_0x2a1b98(_0x298afe,_0x42b7db,_0x1222dc):_0x2a1b98(_0x1222dc))||_0x1222dc);return _0x21f2fc&&_0x1222dc&&cr(_0x298afe,_0x42b7db,_0x1222dc),_0x1222dc;},Me=(_0x396e48,_0xa6036c)=>(_0x40d584,_0x150ed1)=>_0xa6036c(_0x40d584,_0x150ed1,_0x396e48);let $e=class extends _0x4f9c78{constructor(_0x4d945b,_0x1c49a9,_0x3ebe3f,_0x3fc779){const _0x2e034a=_0x48c788;super(),l(this,_0x2e034a(0x3da),new Set()),l(this,_0x2e034a(0x23f),null),(this[_0x2e034a(0x28a)]=_0x4d945b,this[_0x2e034a(0x38c)]=_0x1c49a9,this[_0x2e034a(0x3f8)]=_0x3ebe3f,this[_0x2e034a(0x4bd)]=_0x3fc779,this[_0x2e034a(0x340)]());}get[_0x48c788(0x417)](){const _0x40c69c=_0x48c788;return this[_0x40c69c(0x3f8)][_0x40c69c(0x436)](this[_0x40c69c(0x38c)][_0x40c69c(0x287)](_0x5b42a8['UNIVER_SHEET'])[_0x40c69c(0x451)]())['with'](_0x46d514);}get[_0x48c788(0x36e)](){const _0x35b7eb=_0x48c788;return this[_0x35b7eb(0x38c)][_0x35b7eb(0x287)](_0x5b42a8['UNIVER_SHEET'])[_0x35b7eb(0x451)]();}[_0x48c788(0x340)](){const _0x3838f4=_0x48c788;this[_0x3838f4(0x417)][_0x3838f4(0x312)][_0x3838f4(0x3bd)](_0x258fee(this['dispose$']),_0x367f49(_0x183330=>{const _0x53625d=_0x3838f4;if(_0x183330){const _0x3dafb2=_0x183330['sheetId'];return _0x222f4d(this[_0x53625d(0x28a)]['getCollabCursors$'](this[_0x53625d(0x36e)]),this['_themeService'][_0x53625d(0x45c)])[_0x53625d(0x3bd)](_0x1262f1(([_0x385cfc,_0x170fdf])=>{const _0x35a1ce=_0x53625d,_0x5f5df6=new Map();return _0x385cfc[_0x35a1ce(0x244)]((_0x210ac5,_0xbd22c)=>{const _0x1c212d=_0x35a1ce;if(_0x210ac5[_0x1c212d(0x1be)]===_0x3dafb2){const _0x466e0f={..._0x210ac5};_0x466e0f[_0x1c212d(0x295)]=_0x170fdf[_0x210ac5[_0x1c212d(0x295)]],_0x5f5df6[_0x1c212d(0x25a)](_0xbd22c,_0x466e0f);}}),{'skeleton':_0x183330,'cursors':_0x5f5df6};}));}return _0x5aa699({'skeleton':null,'cursors':new Map()});}))[_0x3838f4(0x237)](({skeleton:_0x4cdcb0,cursors:_0x29d864})=>{const _0x5592dc=_0x3838f4;this['_removeCollabCursors'](),_0x4cdcb0&&this[_0x5592dc(0x22f)](_0x4cdcb0,_0x29d864);}),this['_sheetSkeletonManagerService'][_0x3838f4(0x312)][_0x3838f4(0x237)](_0x408419=>{const _0x3b0453=_0x3838f4;if(_0x408419==null)return;const {skeleton:_0x37e7e7}=_0x408419,_0xd99d6=this[_0x3b0453(0x3f8)]['getRenderById'](this[_0x3b0453(0x36e)]),{scene:_0x1f6393}=_0xd99d6;_0x1f6393[_0x3b0453(0x2b5)][_0x3b0453(0x20d)](_0x12f611(_0x123e91=>{const _0x3f975c=_0x3b0453;var _0x3a481e,_0x2264d6;const {offsetX:_0x2c095b,offsetY:_0x2a36c4}=_0x123e91,{x:_0x4c4557,y:_0x4a5341}=_0x1f6393[_0x3f975c(0x485)](_0x4c9069[_0x3f975c(0x344)]([_0x2c095b,_0x2a36c4])),{scaleX:_0x3bea89,scaleY:_0x4e192f}=_0x1f6393['getAncestorScale'](),_0x2c1db3=_0x1f6393['getViewport'](_0x53f94c[_0x3f975c(0x2f4)]),_0x303b15=_0x1f6393[_0x3f975c(0x2b0)](_0x4c9069['FromArray']([_0x4c4557,_0x4a5341]),_0x2c1db3),_0x4efd6a=_0x37e7e7[_0x3f975c(0x358)](_0x2c095b,_0x2a36c4,_0x3bea89,_0x4e192f,_0x303b15);((_0x3a481e=this[_0x3f975c(0x23f)])==null?void 0x0:_0x3a481e[_0x3f975c(0x4be)])===_0x4efd6a['column']&&((_0x2264d6=this[_0x3f975c(0x23f)])==null?void 0x0:_0x2264d6[_0x3f975c(0x2fe)])===_0x4efd6a[_0x3f975c(0x2fe)]||this[_0x3f975c(0x3da)][_0x3f975c(0x244)](_0xb7ac82=>{const _0x3ea6ed=_0x3f975c;_0xb7ac82[_0x3ea6ed(0x3df)](_0x4efd6a);});},0x64));});}[_0x48c788(0x22f)](_0x2e905c,_0x3d42f4){const _0x2e8d02=_0x48c788;var _0x5ae661;const _0x24fea9=(_0x5ae661=this[_0x2e8d02(0x417)][_0x2e8d02(0x342)]())==null?void 0x0:_0x5ae661['skeleton'];if(!_0x24fea9)return;const _0x3a7b7a=this[_0x2e8d02(0x475)]();if(!_0x3a7b7a)return;this[_0x2e8d02(0x3da)][_0x2e8d02(0x244)](_0x457d4d=>{const _0x65148b=_0x2e8d02;_0x457d4d[_0x65148b(0x1f9)]();});const {scene:_0x431dd6}=_0x3a7b7a,_0x47473e=_r(Array[_0x2e8d02(0x444)](_0x3d42f4[_0x2e8d02(0x3ef)]()))[_0x2e8d02(0x3e8)](_0x2045ff=>{const _0x3a371b=_0x2e8d02,{color:_0x25b1ee,range:_0x49c3dd,name:_0x4d748c,selection:_0x20f2c6,sheetID:_0x169e74}=_0x2045ff,{startColumn:_0x36c47b,startRow:_0x2428df,endColumn:_0x35a1da,endRow:_0x1c93ed}=_0x49c3dd,_0x5a13eb=_0x51cfa7(_0x2428df,_0x36c47b,_0x431dd6,_0x24fea9),_0x36fe3f=_0x51cfa7(_0x1c93ed,_0x35a1da,_0x431dd6,_0x24fea9),{columnHeaderHeightAndMarginTop:_0x3a7000}=_0x24fea9,{startX:_0x3cf477,startY:_0x37d286}=_0x5a13eb,{endX:_0x10b576,endY:_0x2e3422}=_0x36fe3f,_0x1d88d6=_0x10b576-_0x3cf477,_0x3687fa=_0x2e3422-_0x37d286,_0x22948d={'labelPosition':_0x37d286-_0x3a7000>=Oe?'top':_0x3a371b(0x2f0),'sheetID':_0x169e74,'range':_0x49c3dd,'color':_0x25b1ee,'name':_0x4d748c,'selection':_0x20f2c6,'left':_0x3cf477,'top':_0x37d286,'width':_0x1d88d6,'height':_0x3687fa,'evented':!0x1};return new ar(_0x4d748c,_0x22948d);});_0x431dd6[_0x2e8d02(0x3a5)](_0x47473e,rr),this[_0x2e8d02(0x3da)]=new Set(_0x47473e);}[_0x48c788(0x4b7)](){const _0x180a38=_0x48c788;var _0x4bb56f;(_0x4bb56f=this[_0x180a38(0x3da)])==null||_0x4bb56f[_0x180a38(0x244)](_0x3a295f=>_0x3a295f[_0x180a38(0x46e)]());}[_0x48c788(0x475)](){const _0x378b12=_0x48c788;return _0x1f2c89(this[_0x378b12(0x38c)],this[_0x378b12(0x3f8)]);}};$e=lr([_0x4bcad5(_0xba774d[_0x48c788(0x44e)],$e),Me(0x0,_0x1df0bc(ue)),Me(0x1,_0x5db99b),Me(0x2,_0x205a7a),Me(0x3,_0x1df0bc(_0x58f756))],$e);function _r(_0x4c5402){const _0x568bce=_0x48c788,_0x381d94=new Map();return _0x4c5402['forEach'](_0x26d263=>{const _0x33e376=_0x1999;if(_0x381d94[_0x33e376(0x3f4)](_0x26d263[_0x33e376(0x42f)])){const _0x4a0fc1=_0x381d94[_0x33e376(0x4ce)](_0x26d263[_0x33e376(0x42f)]);_0x4a0fc1[_0x33e376(0x2e3)]+=',\x20'+_0x26d263['name'];}else _0x381d94['set'](_0x26d263['selection'],_0x26d263);}),Array[_0x568bce(0x444)](_0x381d94[_0x568bce(0x3ef)]());}function _0x1999(_0x2722fd,_0xdf3013){const _0x515a6b=_0x515a();return _0x1999=function(_0x199927,_0x11f5b6){_0x199927=_0x199927-0x1b0;let _0x372ef4=_0x515a6b[_0x199927];return _0x372ef4;},_0x1999(_0x2722fd,_0xdf3013);}var A=function(){const _0x1dc758=_0x48c788;return A=Object['assign']||function(_0x2367d4){const _0x1accec=_0x1999;for(var _0x493e45,_0x3c9ec6=0x1,_0x3c0819=arguments[_0x1accec(0x3c7)];_0x3c9ec6<_0x3c0819;_0x3c9ec6++){_0x493e45=arguments[_0x3c9ec6];for(var _0x350efe in _0x493e45)Object[_0x1accec(0x339)][_0x1accec(0x1fc)][_0x1accec(0x413)](_0x493e45,_0x350efe)&&(_0x2367d4[_0x350efe]=_0x493e45[_0x350efe]);}return _0x2367d4;},A[_0x1dc758(0x321)](this,arguments);},ur=function(_0x2b8287,_0x2f13a9){const _0x345e0c=_0x48c788;var _0x25578a={};for(var _0x5e1845 in _0x2b8287)Object[_0x345e0c(0x339)][_0x345e0c(0x1fc)][_0x345e0c(0x413)](_0x2b8287,_0x5e1845)&&_0x2f13a9[_0x345e0c(0x386)](_0x5e1845)<0x0&&(_0x25578a[_0x5e1845]=_0x2b8287[_0x5e1845]);if(_0x2b8287!=null&&typeof Object['getOwnPropertySymbols']==_0x345e0c(0x45e)){for(var _0x436623=0x0,_0x5e1845=Object[_0x345e0c(0x2c0)](_0x2b8287);_0x436623<_0x5e1845[_0x345e0c(0x3c7)];_0x436623++)_0x2f13a9[_0x345e0c(0x386)](_0x5e1845[_0x436623])<0x0&&Object[_0x345e0c(0x339)]['propertyIsEnumerable'][_0x345e0c(0x413)](_0x2b8287,_0x5e1845[_0x436623])&&(_0x25578a[_0x5e1845[_0x436623]]=_0x2b8287[_0x5e1845[_0x436623]]);}return _0x25578a;},yt=_0x1302f5(function(_0xae9627,_0x325e5b){const _0x20aedc=_0x48c788;var _0x1b3501=_0xae9627[_0x20aedc(0x330)],_0x1cd6ab=_0xae9627['id'],_0x631426=_0xae9627[_0x20aedc(0x1cb)],_0x7527c8=_0xae9627[_0x20aedc(0x3e2)],_0x1510cc=ur(_0xae9627,[_0x20aedc(0x330),'id',_0x20aedc(0x1cb),_0x20aedc(0x3e2)]),_0x176e70=_0x20aedc(0x3c5)[_0x20aedc(0x37f)](_0x1cd6ab,'\x20')[_0x20aedc(0x37f)](_0x631426||'')['trim'](),_0x175621=_0x4b43df('_'[_0x20aedc(0x37f)](gr()));return Ds(_0x1b3501,''[_0x20aedc(0x37f)](_0x1cd6ab),{'defIds':_0x1b3501['defIds'],'idSuffix':_0x175621['current']},A({'ref':_0x325e5b,'className':_0x176e70},_0x1510cc),_0x7527c8);});function Ds(_0x2f793e,_0x5c540e,_0xb00431,_0x4d31b2,_0x246da5){const _0x3617a2=_0x48c788;return _0x732030(_0x2f793e[_0x3617a2(0x203)],A(A({'key':_0x5c540e},dr(_0x2f793e,_0xb00431,_0x246da5)),_0x4d31b2),(fr(_0x2f793e,_0xb00431)['children']||[])[_0x3617a2(0x3e8)](function(_0x199e86,_0x37c8e7){const _0x3c1c38=_0x3617a2;return Ds(_0x199e86,''[_0x3c1c38(0x37f)](_0x5c540e,'-')[_0x3c1c38(0x37f)](_0x2f793e[_0x3c1c38(0x203)],'-')[_0x3c1c38(0x37f)](_0x37c8e7),_0xb00431,void 0x0,_0x246da5);}));}function dr(_0xc8ec44,_0x518b1c,_0x4df4e6){const _0x11711d=_0x48c788;var _0x595e40=A({},_0xc8ec44['attrs']);_0x4df4e6!=null&&_0x4df4e6['colorChannel1']&&_0x595e40[_0x11711d(0x403)]===_0x11711d(0x3d0)&&(_0x595e40[_0x11711d(0x403)]=_0x4df4e6['colorChannel1']);var _0x4a3336=_0x518b1c['defIds'];return!_0x4a3336||_0x4a3336[_0x11711d(0x3c7)]===0x0||(_0xc8ec44[_0x11711d(0x203)]===_0x11711d(0x278)&&_0x595e40[_0x11711d(0x2e5)]&&(_0x595e40['xlink:href']=_0x595e40[_0x11711d(0x2e5)]+_0x518b1c['idSuffix']),Object[_0x11711d(0x247)](_0x595e40)[_0x11711d(0x244)](function(_0x52033d){const _0x2bc626=_0x11711d;var _0xa66d97=_0x52033d[0x0],_0xfcfbb5=_0x52033d[0x1];typeof _0xfcfbb5==_0x2bc626(0x484)&&(_0x595e40[_0xa66d97]=_0xfcfbb5['replace'](/url\(#(.*)\)/,_0x2bc626(0x264)[_0x2bc626(0x37f)](_0x518b1c[_0x2bc626(0x25b)],')')));})),_0x595e40;}function fr(_0x8d3524,_0x431f36){const _0x49ccae=_0x48c788;var _0x10a3c5,_0x29cb8e=_0x431f36[_0x49ccae(0x21a)];return!_0x29cb8e||_0x29cb8e[_0x49ccae(0x3c7)]===0x0?_0x8d3524:_0x8d3524[_0x49ccae(0x203)]===_0x49ccae(0x3d4)&&(!((_0x10a3c5=_0x8d3524[_0x49ccae(0x4a6)])===null||_0x10a3c5===void 0x0)&&_0x10a3c5[_0x49ccae(0x3c7)])?A(A({},_0x8d3524),{'children':_0x8d3524[_0x49ccae(0x4a6)]['map'](function(_0x22806b){const _0x4310ea=_0x49ccae;return typeof _0x22806b[_0x4310ea(0x44d)]['id']=='string'&&_0x29cb8e&&_0x29cb8e[_0x4310ea(0x386)](_0x22806b['attrs']['id'])>-0x1?A(A({},_0x22806b),{'attrs':A(A({},_0x22806b[_0x4310ea(0x44d)]),{'id':_0x22806b['attrs']['id']+_0x431f36[_0x4310ea(0x25b)]})}):_0x22806b;})}):_0x8d3524;}function gr(){const _0x327e74=_0x48c788;return Math[_0x327e74(0x258)]()['toString'](0x24)[_0x327e74(0x394)](0x2,0x8);}yt[_0x48c788(0x2be)]=_0x48c788(0x30d);var mr={'tag':_0x48c788(0x20f),'attrs':{'fill':_0x48c788(0x49c),'viewBox':_0x48c788(0x49b),'width':_0x48c788(0x243),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x48c788(0x2e6)},'children':[{'tag':_0x48c788(0x1c0),'attrs':{'stroke':'currentColor','d':_0x48c788(0x1e8),'strokeLinecap':_0x48c788(0x46b),'strokeLinejoin':_0x48c788(0x46b),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x48c788(0x478),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x48c788(0x1c0),'attrs':{'fill':_0x48c788(0x48a),'d':_0x48c788(0x1b7)}}]}]}],'defIds':[_0x48c788(0x241)]},ws=_0x1302f5(function(_0xfce199,_0x1065c4){const _0x12e0f3=_0x48c788;return _0x732030(yt,Object[_0x12e0f3(0x38f)]({},_0xfce199,{'id':_0x12e0f3(0x459),'ref':_0x1065c4,'icon':mr}));});ws[_0x48c788(0x2be)]=_0x48c788(0x2a3);var Sr={'tag':_0x48c788(0x20f),'attrs':{'fill':_0x48c788(0x49c),'viewBox':_0x48c788(0x428),'width':_0x48c788(0x243),'height':_0x48c788(0x243)},'children':[{'tag':'g','attrs':{'clipPath':_0x48c788(0x1e4)},'children':[{'tag':_0x48c788(0x1c0),'attrs':{'stroke':_0x48c788(0x27a),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x48c788(0x46b),'strokeWidth':1.2}}]},{'tag':_0x48c788(0x3d4),'attrs':{},'children':[{'tag':_0x48c788(0x478),'attrs':{'id':_0x48c788(0x35f)},'children':[{'tag':_0x48c788(0x1c0),'attrs':{'fill':_0x48c788(0x48a),'d':_0x48c788(0x1b7),'transform':_0x48c788(0x3ab)}}]}]}],'defIds':['on-line-single_clip0_910_349']},Ps=_0x1302f5(function(_0x47ab56,_0x5a1ec6){const _0x12f230=_0x48c788;return _0x732030(yt,Object[_0x12f230(0x38f)]({},_0x47ab56,{'id':'on-line-single','ref':_0x5a1ec6,'icon':Sr}));});Ps[_0x48c788(0x2be)]=_0x48c788(0x239);const vr='univer-online-status-icon',pr=_0x48c788(0x1db),Ir='univer-online-status',Er=_0x48c788(0x3ed),Cr=_0x48c788(0x47b),ve={'onlineStatusIcon':vr,'onlineStatusTitle':pr,'onlineStatus':Ir,'online':Er,'offline':Cr};function br(_0x239998){const _0x285600=_0x48c788;switch(_0x239998){case P[_0x285600(0x214)]:return _0x285600(0x370);case P[_0x285600(0x2ec)]:return'collabStatus.conflict';case P[_0x285600(0x29a)]:return _0x285600(0x4d8);case P[_0x285600(0x43a)]:return _0x285600(0x3d8);case P['PENDING']:case P['AWAITING']:case P[_0x285600(0x45a)]:return'collabStatus.syncing';case P['SYNCED']:return _0x285600(0x43d);}}function Rr(_0xd09431){const _0x3cdd99=_0x48c788,{status$:_0x13dbcb}=_0xd09431,_0x30b1c5=_0x36db5c(_0x13dbcb,P[_0x3cdd99(0x43a)]),_0x413443=_0x34cfdc(_0x7ef8c9),_0x5b3e2a=_0x30b1c5!==P['OFFLINE'],_0x593578=_0x413443['t'](br(_0x30b1c5)),_0x2174a6=_0x37250f(ve[_0x3cdd99(0x317)],{[ve['online']]:_0x5b3e2a,[ve['offline']]:!_0x5b3e2a}),_0x4e0057=_0x5b3e2a?_0x537ca1['createElement'](Ps,null):_0x537ca1['createElement'](ws,null);return _0x537ca1[_0x3cdd99(0x230)]('div',{'className':_0x2174a6},_0x537ca1[_0x3cdd99(0x230)](_0x3cdd99(0x311),{'className':ve[_0x3cdd99(0x23a)]},_0x4e0057),_0x537ca1[_0x3cdd99(0x230)]('div',{'className':ve[_0x3cdd99(0x368)]},_0x593578));}var Tr=Object['defineProperty'],Or=Object['getOwnPropertyDescriptor'],Dr=(_0x46faa4,_0x348477,_0x14bf99,_0x3f2ffc)=>{const _0x28070c=_0x48c788;for(var _0x12b9fe=_0x3f2ffc>0x1?void 0x0:_0x3f2ffc?Or(_0x348477,_0x14bf99):_0x348477,_0x5a01a8=_0x46faa4[_0x28070c(0x3c7)]-0x1,_0x31a073;_0x5a01a8>=0x0;_0x5a01a8--)(_0x31a073=_0x46faa4[_0x5a01a8])&&(_0x12b9fe=(_0x3f2ffc?_0x31a073(_0x348477,_0x14bf99,_0x12b9fe):_0x31a073(_0x12b9fe))||_0x12b9fe);return _0x3f2ffc&&_0x12b9fe&&Tr(_0x348477,_0x14bf99,_0x12b9fe),_0x12b9fe;},Ae=(_0x4e4e48,_0x3c2d26)=>(_0x54e85f,_0xecaad0)=>_0x3c2d26(_0x54e85f,_0xecaad0,_0x4e4e48);let je=class extends _0x5de86a{constructor(_0x312687,_0x32b041,_0x304733,_0x5b794f){const _0x4dba21=_0x48c788;super(),l(this,_0x4dba21(0x1ca),new _0xac9643(P[_0x4dba21(0x43a)])),(this['_univerInstanceService']=_0x312687,this[_0x4dba21(0x375)]=_0x32b041,this[_0x4dba21(0x2e1)]=_0x304733,this[_0x4dba21(0x346)]=_0x5b794f,this[_0x4dba21(0x2a9)](),this[_0x4dba21(0x3e4)]());}['_initStatusComponent'](){const _0x27edc8=_0x48c788;this[_0x27edc8(0x3e7)](this['_uiPartsService'][_0x27edc8(0x2b3)](_0x2ba420[_0x27edc8(0x253)],()=>_0x5168f0(wr({'status$':this[_0x27edc8(0x1ca)][_0x27edc8(0x1ec)]()}),this[_0x27edc8(0x2e1)])));}[_0x48c788(0x3e4)](){const _0x137ec2=_0x48c788;this[_0x137ec2(0x3e7)](_0x308092(this['_univerInstanceService'][_0x137ec2(0x4ae)][_0x137ec2(0x3bd)](_0x52b39c(()=>{const _0x4f2fcd=_0x137ec2,_0x3de06b=this[_0x4f2fcd(0x38c)]['getFocusedUnit']();return _0x3de06b?this[_0x4f2fcd(0x346)][_0x4f2fcd(0x36d)](_0x3de06b[_0x4f2fcd(0x451)]()):_0x5aa699(null);}),_0x52b39c(_0x9e1ade=>_0x9e1ade?_0x9e1ade[_0x137ec2(0x44b)]:_0x5aa699(P[_0x137ec2(0x43a)])))['subscribe'](_0x155b96=>{const _0x11c7a1=_0x137ec2;this[_0x11c7a1(0x1ca)][_0x11c7a1(0x325)](_0x155b96);})));}};je=Dr([_0x4bcad5(_0xba774d['Starting'],je),Ae(0x0,_0x5db99b),Ae(0x1,_0x2d3342),Ae(0x2,_0x1df0bc(_0x1883e3)),Ae(0x3,_0x1df0bc(Ee))],je);function wr(_0x1fa64d){const {status$:_0x520483}=_0x1fa64d;return function(){const _0x5987b6=_0x1999;return _0x537ca1[_0x5987b6(0x230)](Rr,{'status$':_0x520483});};}const Ns=_0x4e2518(_0x48c788(0x49a));var Pr=Object[_0x48c788(0x299)],Nr=Object[_0x48c788(0x2bd)],Mr=(_0x1fdbf0,_0x1a9a33,_0x1b8bb7,_0x51c615)=>{const _0x309e4d=_0x48c788;for(var _0x5049e5=_0x51c615>0x1?void 0x0:_0x51c615?Nr(_0x1a9a33,_0x1b8bb7):_0x1a9a33,_0x29379c=_0x1fdbf0[_0x309e4d(0x3c7)]-0x1,_0x49764f;_0x29379c>=0x0;_0x29379c--)(_0x49764f=_0x1fdbf0[_0x29379c])&&(_0x5049e5=(_0x51c615?_0x49764f(_0x1a9a33,_0x1b8bb7,_0x5049e5):_0x49764f(_0x5049e5))||_0x5049e5);return _0x51c615&&_0x5049e5&&Pr(_0x1a9a33,_0x1b8bb7,_0x5049e5),_0x5049e5;},ce=(_0x455987,_0x32fc03)=>(_0x51e4ef,_0x410088)=>_0x32fc03(_0x51e4ef,_0x410088,_0x455987);let He=class extends _0x4f9c78{constructor(_0x2e8d60,_0x47f45b,_0x5524f8,_0x2ac9a5,_0x2aaf52,_0x42a868){const _0xc41387=_0x48c788;super(),this[_0xc41387(0x351)]=_0x2e8d60,this['_logService']=_0x47f45b,this['_commandService']=_0x5524f8,this[_0xc41387(0x1eb)]=_0x2ac9a5,this['_snapshotService']=_0x2aaf52,_0x42a868?_0x42a868==null||_0x42a868[_0xc41387(0x31d)]()['then'](()=>this[_0xc41387(0x340)]()):(this[_0xc41387(0x2ad)][_0xc41387(0x1b0)](_0xc41387(0x398),_0xc41387(0x281)),this[_0xc41387(0x340)]());}async[_0x48c788(0x340)](){const _0x136aa7=_0x48c788,_0x21b6c8=this[_0x136aa7(0x351)][_0x136aa7(0x240)](_0x136aa7(0x272)),_0x2430b5=this[_0x136aa7(0x351)]['getParam'](_0x136aa7(0x45b));if(!_0x21b6c8||!_0x2430b5){this['_logService'][_0x136aa7(0x1b0)](_0x136aa7(0x398),_0x136aa7(0x48d));return;}switch(Number(_0x2430b5)){case H['UNIVER_SHEET']:{const _0x4cc55d=await this['_loadSheet'](_0x21b6c8);this[_0x136aa7(0x32f)](_0x4cc55d);break;}case H['UNIVER_DOC']:{await this[_0x136aa7(0x2c8)](_0x21b6c8);break;}default:{this[_0x136aa7(0x2ad)][_0x136aa7(0x1b3)](_0x136aa7(0x398),_0x136aa7(0x2e2));break;}}}async[_0x48c788(0x32f)](_0x2e0544){const _0x253028=_0x48c788;await this['_updateSubUnitFromURLParams'](_0x2e0544),_0x2e0544[_0x253028(0x401)][_0x253028(0x3bd)](_0x219692(this['dispose$']))['subscribe'](_0x284df0=>{_0x284df0&&this['_updateURLWithCurrentState'](_0x284df0);}),this[_0x253028(0x351)][_0x253028(0x215)][_0x253028(0x3bd)](_0x219692(this[_0x253028(0x4c9)]))[_0x253028(0x237)](()=>this['_updateSubUnitFromURLParams'](_0x2e0544));}['_updateURLWithCurrentState'](_0x241066,_0x8831ba=!0x1){const _0x1bda8d=_0x48c788,_0x2ee356=this[_0x1bda8d(0x351)][_0x1bda8d(0x240)](_0x1bda8d(0x226));_0x241066[_0x1bda8d(0x45f)]()!==_0x2ee356&&this[_0x1bda8d(0x351)]['setParam'](_0x1bda8d(0x226),_0x241066[_0x1bda8d(0x45f)](),_0x8831ba);}async[_0x48c788(0x4c2)](_0xbd8b31){const _0x2a7c0c=_0x48c788,_0x9a5a8b=this[_0x2a7c0c(0x351)][_0x2a7c0c(0x240)]('subunit');if(!_0x9a5a8b||!_0xbd8b31[_0x2a7c0c(0x416)](_0x9a5a8b)){this[_0x2a7c0c(0x3a7)](_0xbd8b31['getActiveSheet'](),!0x0);return;}_0xbd8b31[_0x2a7c0c(0x354)]()[_0x2a7c0c(0x45f)]()!==_0x9a5a8b&&await this[_0x2a7c0c(0x1e9)][_0x2a7c0c(0x2df)](_0x27110d['id'],{'unitId':_0xbd8b31[_0x2a7c0c(0x451)](),'subUnitId':_0x9a5a8b});}async[_0x48c788(0x397)](_0x13d1ea){const _0x458978=_0x48c788;let _0x173568=0x0;const _0x547ec2=await this[_0x458978(0x1eb)][_0x458978(0x256)](_0x13d1ea);return _0x547ec2&&(_0x547ec2['awaitingChangeset']||_0x547ec2[_0x458978(0x3b5)][_0x458978(0x3c7)]!==0x0)&&(_0x173568=_0x547ec2['rev']),_0x173568===0x0&&this['_logService']['debug']('[DataLoaderController]',_0x458978(0x35a)),this['_snapshotService'][_0x458978(0x212)](_0x13d1ea,_0x173568);}async['_loadDoc'](_0x2cfd9a){const _0x2ce0b0=_0x48c788;let _0x1f2d52=0x0;const _0x52e693=await this[_0x2ce0b0(0x1eb)][_0x2ce0b0(0x256)](_0x2cfd9a);return _0x52e693&&(_0x52e693['awaitingChangeset']||_0x52e693[_0x2ce0b0(0x3b5)]['length']!==0x0)&&(_0x1f2d52=_0x52e693[_0x2ce0b0(0x4c7)]),_0x1f2d52===0x0&&this[_0x2ce0b0(0x2ad)][_0x2ce0b0(0x1b0)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService']['loadDoc'](_0x2cfd9a,_0x1f2d52);}};He=Mr([_0x4bcad5(_0xba774d[_0x48c788(0x48c)],He),ce(0x0,Ns),ce(0x1,_0xcf8387),ce(0x2,_0x26b7b1),ce(0x3,_0x1df0bc(D)),ce(0x4,_0x1df0bc(_0x3ae0d3)),ce(0x5,_0x9cd523(_0x356d7e))],He);var Ar=Object['defineProperty'],yr=Object[_0x48c788(0x2bd)],Ur=(_0xf42cb9,_0x3b225b,_0x40eb48,_0x5a39ab)=>{const _0x5bdef7=_0x48c788;for(var _0x2c118d=_0x5a39ab>0x1?void 0x0:_0x5a39ab?yr(_0x3b225b,_0x40eb48):_0x3b225b,_0x1e0cdc=_0xf42cb9[_0x5bdef7(0x3c7)]-0x1,_0x185e29;_0x1e0cdc>=0x0;_0x1e0cdc--)(_0x185e29=_0xf42cb9[_0x1e0cdc])&&(_0x2c118d=(_0x5a39ab?_0x185e29(_0x3b225b,_0x40eb48,_0x2c118d):_0x185e29(_0x2c118d))||_0x2c118d);return _0x5a39ab&&_0x2c118d&&Ar(_0x3b225b,_0x40eb48,_0x2c118d),_0x2c118d;},Zt=(_0x176351,_0x5dcc28)=>(_0x13601a,_0x46fbe4)=>_0x5dcc28(_0x13601a,_0x46fbe4,_0x176351);const Lr='DEFAULT_FILE_NAME',$r=_0x48c788(0x2dc);let xe=class extends _0x5de86a{constructor(_0x296329,_0x2da230){super(),this['_univerInstanceService']=_0x296329,this['_configService']=_0x2da230,this['_init']();}[_0x48c788(0x340)](){const _0x7bfd06=_0x48c788;this[_0x7bfd06(0x3e7)](_0x308092(this[_0x7bfd06(0x38c)][_0x7bfd06(0x4ae)][_0x7bfd06(0x237)](()=>{const _0x246a30=_0x7bfd06;var _0x291627;const _0x2b0c5b=this[_0x246a30(0x38c)][_0x246a30(0x1d2)]();let _0x4b88e0=(_0x291627=this[_0x246a30(0x35d)][_0x246a30(0x2d9)](Lr))!=null?_0x291627:$r;_0x2b0c5b instanceof _0x55773e&&(_0x4b88e0=_0x2b0c5b[_0x246a30(0x2e3)]),document[_0x246a30(0x255)]=_0x4b88e0;})));}};xe=Ur([_0x4bcad5(_0xba774d[_0x48c788(0x1f5)],xe),Zt(0x0,_0x5db99b),Zt(0x1,_0x475c15)],xe);var jr=Object['defineProperty'],Hr=Object[_0x48c788(0x2bd)],xr=(_0x5de854,_0x5295b2,_0x2550c1,_0x2ce56b)=>{const _0x5d2fef=_0x48c788;for(var _0x55475c=_0x2ce56b>0x1?void 0x0:_0x2ce56b?Hr(_0x5295b2,_0x2550c1):_0x5295b2,_0x52eb83=_0x5de854[_0x5d2fef(0x3c7)]-0x1,_0xe6292f;_0x52eb83>=0x0;_0x52eb83--)(_0xe6292f=_0x5de854[_0x52eb83])&&(_0x55475c=(_0x2ce56b?_0xe6292f(_0x5295b2,_0x2550c1,_0x55475c):_0xe6292f(_0x55475c))||_0x55475c);return _0x2ce56b&&_0x55475c&&jr(_0x5295b2,_0x2550c1,_0x55475c),_0x55475c;},Qt=(_0x5d5521,_0x4a65cd)=>(_0x48f11e,_0xfa40f8)=>_0x4a65cd(_0x48f11e,_0xfa40f8,_0x5d5521);let St=class{constructor(_0x573264,_0x8df043){const _0x47171b=_0x48c788;this[_0x47171b(0x35d)]=_0x573264,this[_0x47171b(0x33f)]=_0x8df043;}async[_0x48c788(0x47e)](_0x13ffdc,_0x5119f2){const _0x427ba8=_0x48c788;var _0x58eee4;const {unitID:_0x45c0bd,type:_0x3f5101,revision:_0x1b0ddd=0x0}=_0x5119f2,_0xe8df43=this[_0x427ba8(0x285)]()+'/'+_0x3f5101+_0x427ba8(0x327)+_0x45c0bd+_0x427ba8(0x2b2)+(_0x1b0ddd===0x1?0x0:_0x1b0ddd),_0x47e5eb=(await this[_0x427ba8(0x33f)]['get'](_0xe8df43))[_0x427ba8(0x1ef)],_0xfa88ad=(_0x58eee4=_0x47e5eb[_0x427ba8(0x477)])==null?void 0x0:_0x58eee4[_0x427ba8(0x2c1)];if(_0xfa88ad){const _0x3e5170=_0xfa88ad==null?void 0x0:_0xfa88ad['originalMeta'],_0x68b94d=_0x3e85fc[_0x427ba8(0x301)](_0x2a2404(_0x3e5170));_0xfa88ad[_0x427ba8(0x40f)]=_0x68b94d,Object[_0x427ba8(0x247)](_0xfa88ad[_0x427ba8(0x229)])[_0x427ba8(0x244)](([,_0x41a177])=>{const _0x5241d1=_0x427ba8,_0x2282f4=_0x41a177[_0x5241d1(0x40f)],_0x242583=_0x3e85fc[_0x5241d1(0x301)](_0x2a2404(_0x2282f4));_0x41a177[_0x5241d1(0x40f)]=_0x242583;});}return _0x47e5eb;}async[_0x48c788(0x4d9)](_0x1d5de1,_0x7a6dcd){const _0x5d2c37=_0x48c788,{unitID:_0x10ad4c,type:_0x28de84,blockID:_0x42dc23}=_0x7a6dcd,_0x50de77=this[_0x5d2c37(0x30c)]()+'/'+_0x28de84+_0x5d2c37(0x327)+_0x10ad4c+_0x5d2c37(0x4a8)+_0x42dc23;return(await this[_0x5d2c37(0x33f)][_0x5d2c37(0x4ce)](_0x50de77))[_0x5d2c37(0x1ef)];}async[_0x48c788(0x4bc)](_0x46c29c,_0x576009){const _0x36bf84=_0x48c788,{unitID:_0x4a8b9e,type:_0x37dc18,from:_0x1f60b8,to:_0x390c0b}=_0x576009,_0x3abaa1=this[_0x36bf84(0x30c)]()+'/'+_0x37dc18+'/unit/'+_0x4a8b9e+_0x36bf84(0x433)+_0x1f60b8+_0x36bf84(0x3e1)+_0x390c0b;return(await this['_httpService'][_0x36bf84(0x4ce)](_0x3abaa1))['body'];}[_0x48c788(0x285)](){const _0x452044=_0x48c788;var _0x593375;return(_0x593375=this[_0x452044(0x35d)][_0x452044(0x2d9)](Yi))!=null?_0x593375:this[_0x452044(0x30c)]();}['_getAPIPrefix'](){const _0x3d5b75=_0x48c788;var _0x2a1784;return(_0x2a1784=this[_0x3d5b75(0x35d)][_0x3d5b75(0x2d9)](Wi))!=null?_0x2a1784:Gi;}async['getResourcesRequest'](_0x2a0285,_0x31a5c4){const _0x22eaac=_0x48c788,_0x1b51f5=_0x22eaac(0x483)+_0x31a5c4[_0x22eaac(0x45b)]+_0x22eaac(0x327)+_0x31a5c4[_0x22eaac(0x2d3)]+_0x22eaac(0x33a);return(await this['_httpService']['get'](_0x1b51f5,{'params':{'resourceId':JSON[_0x22eaac(0x1ce)](_0x31a5c4[_0x22eaac(0x2d5)])}}))[_0x22eaac(0x1ef)];}[_0x48c788(0x46d)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x48c788(0x25f)](){const _0x5303b4=_0x48c788;throw new Error(_0x5303b4(0x49f));}['saveChangeset'](){const _0x3087d7=_0x48c788;throw new Error(_0x3087d7(0x49f));}};St=xr([Qt(0x0,_0x475c15),Qt(0x1,_0x1df0bc(_0x49edd2))],St);var Fr=Object[_0x48c788(0x299)],kr=Object[_0x48c788(0x2bd)],Br=(_0x3f2cf2,_0x432c6a,_0x25e1fc,_0x3778c1)=>{const _0x31eb20=_0x48c788;for(var _0x21406e=_0x3778c1>0x1?void 0x0:_0x3778c1?kr(_0x432c6a,_0x25e1fc):_0x432c6a,_0x2a0ec4=_0x3f2cf2[_0x31eb20(0x3c7)]-0x1,_0xe356e1;_0x2a0ec4>=0x0;_0x2a0ec4--)(_0xe356e1=_0x3f2cf2[_0x2a0ec4])&&(_0x21406e=(_0x3778c1?_0xe356e1(_0x432c6a,_0x25e1fc,_0x21406e):_0xe356e1(_0x21406e))||_0x21406e);return _0x3778c1&&_0x21406e&&Fr(_0x432c6a,_0x25e1fc,_0x21406e),_0x21406e;},pe=(_0x285064,_0xd941eb)=>(_0x36f4b0,_0x371319)=>_0xd941eb(_0x36f4b0,_0x371319,_0x285064);let vt=class extends _0x2d3c98{constructor(_0x3538f3,_0x43a9ed,_0x3e53af,_0x402835,_0x287f14){const _0x33e477=_0x48c788;super(_0x3538f3,_0x43a9ed,_0x3e53af),this[_0x33e477(0x231)]=_0x402835,this[_0x33e477(0x2ad)]=_0x287f14;}['transformUndoRedo'](_0x2986f6,_0x45c3e3){const _0x4dbc7a=_0x48c788,_0x307ace=this[_0x4dbc7a(0x1d7)](_0x2986f6);if(_0x307ace)try{const _0x44affb=this[_0x4dbc7a(0x38e)](_0x307ace,_0x45c3e3);this[_0x4dbc7a(0x3c9)](_0x2986f6,_0x44affb);}catch(_0x20d379){this['_logService'][_0x4dbc7a(0x1b3)](_0x4dbc7a(0x331),_0x20d379),this[_0x4dbc7a(0x387)](_0x2986f6);}const _0x2ce57f=this['_getRedoStack'](_0x2986f6);if(_0x2ce57f)try{const _0x262a3c=this[_0x4dbc7a(0x38e)](_0x2ce57f,_0x45c3e3);this['_substituteRedoStack'](_0x2986f6,_0x262a3c);}catch(_0x5a8c34){this['_logService'][_0x4dbc7a(0x1b3)](_0x5a8c34),this[_0x4dbc7a(0x33c)](_0x2986f6);}}[_0x48c788(0x387)](_0x1c0f80){const _0xae04ed=_0x48c788,_0x598abc=this[_0xae04ed(0x1d7)](_0x1c0f80);_0x598abc&&(_0x598abc['length']=0x0,this[_0xae04ed(0x3e6)]());}[_0x48c788(0x33c)](_0x323571){const _0x335908=_0x48c788,_0x342d40=this[_0x335908(0x23c)](_0x323571);_0x342d40&&(_0x342d40[_0x335908(0x3c7)]=0x0,this[_0x335908(0x3e6)]());}[_0x48c788(0x3c9)](_0x12ea17,_0xebd923){const _0x2ed85f=_0x48c788;this[_0x2ed85f(0x209)]['set'](_0x12ea17,_0xebd923),this[_0x2ed85f(0x3e6)]();}[_0x48c788(0x382)](_0x18a810,_0x1a6c4a){const _0x431d6d=_0x48c788;this[_0x431d6d(0x4b2)][_0x431d6d(0x25a)](_0x18a810,_0x1a6c4a),this[_0x431d6d(0x3e6)]();}[_0x48c788(0x38e)](_0x6f299d,_0x2a1bf2){const _0x2bf3e1=_0x48c788,_0x28167e=[];let _0x4fe984=_0x2a1bf2,_0x31a2ce=_0x2a1bf2;for(let _0xbcfb61=_0x6f299d[_0x2bf3e1(0x3c7)]-0x1;_0xbcfb61>=0x0;_0xbcfb61--){const {unitID:_0x538fb3,undoMutations:_0x5a192f,redoMutations:_0x89a157}=_0x6f299d[_0xbcfb61],_0x432a52=this[_0x2bf3e1(0x231)][_0x2bf3e1(0x313)](_0x4fe984,_0x5a192f),_0x55bdd7=this[_0x2bf3e1(0x231)][_0x2bf3e1(0x313)](_0x31a2ce,_0x89a157);if(_0x120eeb(_0x432a52)||_0x120eeb(_0x55bdd7)){this[_0x2bf3e1(0x2ad)][_0x2bf3e1(0x1b3)](_0x2bf3e1(0x331),_0x2bf3e1(0x3fb),_0x432a52,_0x55bdd7);break;}_0x4fe984=_0x432a52[_0x2bf3e1(0x3a9)],_0x31a2ce=_0x55bdd7[_0x2bf3e1(0x3a9)],_0x28167e[_0x2bf3e1(0x3ae)]({'unitID':_0x538fb3,'undoMutations':_0x432a52[_0x2bf3e1(0x1bc)],'redoMutations':_0x55bdd7['m2Prime']});}return _0x28167e[_0x2bf3e1(0x24c)]();}};vt=Br([pe(0x0,_0x5db99b),pe(0x1,_0x26b7b1),pe(0x2,_0x4c77f7),pe(0x3,_0x56e350),pe(0x4,_0xcf8387)],vt);class Vr extends _0x4f9c78{constructor(){const _0x4c9caf=_0x48c788;super(),l(this,'urlChange$'),this[_0x4c9caf(0x215)]=_0x3afa96(window,_0x4c9caf(0x2ff))[_0x4c9caf(0x3bd)](_0x219692(this[_0x4c9caf(0x4c9)]),_0x5bbc32(0x1),_0x58db52(void 0x0));}[_0x48c788(0x492)](_0x41ddb5,_0x1978a9,_0x2df3aa=!0x1){const _0x59e14a=_0x48c788,_0x147314=new URL(window[_0x59e14a(0x2a2)][_0x59e14a(0x29d)]);_0x147314[_0x59e14a(0x422)][_0x59e14a(0x25a)](_0x41ddb5,_0x1978a9),_0x2df3aa?window[_0x59e14a(0x47d)][_0x59e14a(0x303)]('','',_0x147314[_0x59e14a(0x1e6)]()):window[_0x59e14a(0x47d)][_0x59e14a(0x4bf)]('','',_0x147314['toString']());}[_0x48c788(0x48f)](_0x48295a,_0x393afe=!0x1){const _0x503848=_0x48c788,_0x28c732=new URL(window[_0x503848(0x2a2)][_0x503848(0x29d)]);_0x28c732[_0x503848(0x422)][_0x503848(0x388)](_0x48295a),_0x393afe?window[_0x503848(0x47d)]['replaceState']('','',_0x28c732[_0x503848(0x1e6)]()):window[_0x503848(0x47d)]['pushState']('','',_0x28c732[_0x503848(0x1e6)]());}['getParam'](_0x49d719){const _0x578a02=_0x48c788;var _0x29d009;return(_0x29d009=new URL(window[_0x578a02(0x2a2)][_0x578a02(0x29d)])[_0x578a02(0x422)][_0x578a02(0x4ce)](_0x49d719))!=null?_0x29d009:void 0x0;}}const nt=_0x48c788(0x1c2),Wr='collab-text-range-',ye=0x6,Gr=1.5,rt=0x4,Yr=1.5,Kr=_0x48c788(0x2cc);class Xr{constructor(_0xa1ed61,_0x561504,_0x1b3d89,_0x1401c5){const _0x10db7b=_0x48c788;l(this,_0x10db7b(0x4a2),[]),l(this,'_anchor',null),l(this,_0x10db7b(0x348),null),l(this,_0x10db7b(0x41d),null),l(this,_0x10db7b(0x29b),null),l(this,_0x10db7b(0x3c3),null),(this[_0x10db7b(0x3fa)]=_0xa1ed61,this[_0x10db7b(0x359)]=_0x561504,this[_0x10db7b(0x23b)]=_0x1b3d89,this[_0x10db7b(0x24e)]=_0x1401c5,this['_render']());}set[_0x48c788(0x1d8)](_0x40dd15){const _0xdd1bc8=_0x48c788;_0x40dd15?(this[_0xdd1bc8(0x41d)]&&this[_0xdd1bc8(0x41d)][_0xdd1bc8(0x1d5)](),this['_textBubble']&&this['_textBubble'][_0xdd1bc8(0x4d1)]()):(this['_anchorDot']&&this[_0xdd1bc8(0x41d)][_0xdd1bc8(0x4d1)](),this[_0xdd1bc8(0x348)]&&this[_0xdd1bc8(0x348)]['hide']());}[_0x48c788(0x46e)](){const _0x1efcaa=_0x48c788;for(const _0x233cbb of this[_0x1efcaa(0x4a2)])_0x233cbb[_0x1efcaa(0x46e)]();this['_textBubble']&&this[_0x1efcaa(0x348)]['dispose'](),this[_0x1efcaa(0x41d)]&&this[_0x1efcaa(0x41d)]['dispose'](),this['_anchor']&&this[_0x1efcaa(0x219)][_0x1efcaa(0x46e)](),this[_0x1efcaa(0x3c3)]&&this[_0x1efcaa(0x3c3)]();}[_0x48c788(0x3dc)](){const _0x456cea=_0x48c788,{_docSkeleton:_0x2f3e00,_document:_0xa35ddc}=this,{color:_0x50df77,name:_0x3b1c6a,ranges:_0x58e542}=this['_cursor'],_0x2607e2=_0xa35ddc['getOffsetConfig'](),{docsLeft:_0x584c35,docsTop:_0x10758e}=_0x2607e2,_0x58566e=new _0x45e74b(_0x2607e2,_0x2f3e00);for(const {startOffset:_0x45f5e7,endOffset:_0x4b0611,collapsed:_0x3ed7b9,isActive:_0x22241d}of _0x58e542){const _0x4a8872=_0x2f3e00['findNodePositionByCharIndex'](_0x45f5e7),_0x2fd192=_0x2f3e00[_0x456cea(0x315)](_0x4b0611);if(_0x22241d){const {contentBoxPointGroup:_0x5903f8}=_0x58566e[_0x456cea(0x25c)](_0x2fd192,_0x2fd192);if(_0x5903f8[_0x456cea(0x3c7)]===0x0)continue;this['_drawAnchor'](_0x50df77,_0x5903f8,_0x584c35,_0x10758e,_0x3b1c6a),this[_0x456cea(0x3c3)]=this['_handleHover']();}if(!_0x3ed7b9){const {contentBoxPointGroup:_0x4e6cf4}=_0x58566e['getRangePointData'](_0x4a8872,_0x2fd192);if(_0x4e6cf4['length']===0x0)continue;this[_0x456cea(0x443)](_0x50df77,_0x4e6cf4,_0x584c35,_0x10758e);}}}[_0x48c788(0x41f)](_0x23ae36,_0x4999a2,_0x3bc7ee,_0x48921c,_0x54214d){const _0x99d472=_0x48c788,_0x185e1d=this[_0x99d472(0x365)](_0x4999a2),{left:_0x4fcccb,top:_0x3930ed,height:_0x55d0f8}=_0x185e1d,_0x1479f3=this[_0x99d472(0x2b4)](),_0x51e39e=Yr/_0x1479f3,_0x2e57f5=new _0x31e76b(nt+_0x41ebb1[_0x99d472(0x2e7)](ye),{'left':_0x4fcccb+_0x3bc7ee-_0x51e39e,'top':_0x3930ed+_0x48921c,'height':_0x55d0f8,'width':Gr,'fill':_0x23ae36||_0x5139a9(_0x375ede[_0x99d472(0x3fd)],0x0),'strokeWidth':_0x51e39e,'stroke':Kr,'evented':!0x0});this[_0x99d472(0x219)]=_0x2e57f5,this[_0x99d472(0x359)]['addObject'](_0x2e57f5,_0x3507b6);const _0x272dc8=new _0x31e76b(nt+_0x41ebb1[_0x99d472(0x2e7)](ye),{'left':_0x4fcccb+_0x3bc7ee-_0x51e39e,'top':_0x3930ed+_0x48921c-rt/0x2,'height':rt,'width':rt,'fill':_0x23ae36||_0x5139a9(_0x375ede[_0x99d472(0x3fd)],0x0),'strokeWidth':0x0,'stroke':_0x23ae36||_0x5139a9(_0x375ede[_0x99d472(0x3fd)],0x0),'evented':!0x1});this[_0x99d472(0x41d)]=_0x272dc8,this[_0x99d472(0x359)][_0x99d472(0x286)](_0x272dc8,_0x3507b6);const _0x3ce4e0=new ze(nt+_0x41ebb1[_0x99d472(0x2e7)](ye),{'left':_0x4fcccb+_0x3bc7ee-_0x51e39e,'top':_0x3930ed+_0x48921c-Oe,'text':_0x54214d,'color':_0x23ae36});this[_0x99d472(0x348)]=_0x3ce4e0,this[_0x99d472(0x359)]['addObject'](_0x3ce4e0,_0x3507b6),this[_0x99d472(0x1d8)]=!0x1;}[_0x48c788(0x467)](){const _0x21420e=_0x48c788,_0x1ef738=this[_0x21420e(0x219)][_0x21420e(0x291)][_0x21420e(0x20d)](()=>{const _0x579f31=_0x21420e;this[_0x579f31(0x1d8)]=!0x0;}),_0x548c26=this['_anchor']['onPointerLeaveObserver'][_0x21420e(0x20d)](()=>{const _0x24bf53=_0x21420e;this[_0x24bf53(0x29b)]&&clearTimeout(this[_0x24bf53(0x29b)]),this[_0x24bf53(0x29b)]=setTimeout(()=>{const _0x41994d=_0x24bf53;this[_0x41994d(0x1d8)]=!0x1;},0x7d0);});return()=>{const _0x256721=_0x21420e;var _0x51681c,_0x5716d2;(_0x51681c=this['_anchor'])==null||_0x51681c['onPointerEnterObserver']['remove'](_0x1ef738),(_0x5716d2=this[_0x256721(0x219)])==null||_0x5716d2[_0x256721(0x3f1)]['remove'](_0x548c26);};}[_0x48c788(0x443)](_0x4c9a6a,_0x78349a,_0x4ad5f6,_0x2563bd){const _0x294729=_0x48c788,_0x2e29be=new _0x4176ec(_0x4c9a6a)[_0x294729(0x3b1)](0.2)[_0x294729(0x3f7)](),_0x1ad242=new _0x4b8859(Wr+_0x41ebb1[_0x294729(0x2e7)](ye),{'pointsGroup':_0x78349a,'fill':_0x2e29be||_0x5139a9(_0x375ede['black'],0.2),'left':_0x4ad5f6,'top':_0x2563bd,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x1ad242),this[_0x294729(0x359)][_0x294729(0x286)](_0x1ad242,_0x3507b6);}[_0x48c788(0x365)](_0x11b65c){const _0x229d2b=_0x11b65c[0x0],_0x4b3abe=_0x229d2b[0x0],_0x1c4f85=_0x229d2b[0x2],{x:_0x5da343,y:_0x416326}=_0x4b3abe,{x:_0x3474f5,y:_0x49ec15}=_0x1c4f85;return{'left':_0x5da343,'top':_0x416326,'width':_0x3474f5-_0x5da343,'height':_0x49ec15-_0x416326};}['_getScale'](){const _0x251169=_0x48c788,{scaleX:_0x2c6d8d,scaleY:_0x48bd61}=this[_0x251169(0x359)][_0x251169(0x324)]();return Math[_0x251169(0x249)](_0x2c6d8d,_0x48bd61);}}var Jr=Object[_0x48c788(0x299)],zr=Object[_0x48c788(0x2bd)],qr=(_0x94543c,_0x2021d8,_0x34dadc,_0x1a8a33)=>{const _0x2c81cc=_0x48c788;for(var _0x16dbf9=_0x1a8a33>0x1?void 0x0:_0x1a8a33?zr(_0x2021d8,_0x34dadc):_0x2021d8,_0x155d10=_0x94543c[_0x2c81cc(0x3c7)]-0x1,_0x577f1a;_0x155d10>=0x0;_0x155d10--)(_0x577f1a=_0x94543c[_0x155d10])&&(_0x16dbf9=(_0x1a8a33?_0x577f1a(_0x2021d8,_0x34dadc,_0x16dbf9):_0x577f1a(_0x16dbf9))||_0x16dbf9);return _0x1a8a33&&_0x16dbf9&&Jr(_0x2021d8,_0x34dadc,_0x16dbf9),_0x16dbf9;},Ie=(_0x51e2ef,_0x798979)=>(_0x1f6f8b,_0x30ffcc)=>_0x798979(_0x1f6f8b,_0x30ffcc,_0x51e2ef);let Fe=class extends _0x4f9c78{constructor(_0x16897c,_0x553e4e,_0x3c8b07,_0x3311b3,_0x25e1ca){const _0x173dbb=_0x48c788;super(),l(this,_0x173dbb(0x3da),[]),(this['_collabCursorController']=_0x16897c,this[_0x173dbb(0x38c)]=_0x553e4e,this[_0x173dbb(0x3f8)]=_0x3c8b07,this[_0x173dbb(0x1e3)]=_0x3311b3,this['_themeService']=_0x25e1ca,this[_0x173dbb(0x340)]());}[_0x48c788(0x340)](){const _0x432553=_0x48c788;this[_0x432553(0x1e3)]['currentSkeleton$'][_0x432553(0x3bd)](_0x258fee(this[_0x432553(0x4c9)]),_0x367f49(_0x54c944=>{const _0x21c9ba=_0x432553;if(_0x54c944){const {unitId:_0x8c9e3d}=_0x54c944;return _0x222f4d(this['_collabCursorController'][_0x21c9ba(0x4cd)](_0x8c9e3d),this['_themeService'][_0x21c9ba(0x45c)])[_0x21c9ba(0x3bd)](_0x1262f1(([_0x4fecb2,_0xab00e4])=>({'skeleton':_0x54c944,'cursors':[..._0x4fecb2['values']()]['flatMap'](_0x247b85=>({..._0x247b85,'color':_0xab00e4[_0x247b85[_0x21c9ba(0x295)]]}))})));}return _0x5aa699({'skeleton':null,'cursors':[]});}))['subscribe'](({skeleton:_0xf09cac,cursors:_0x398019})=>{const _0x45618d=_0x432553;this[_0x45618d(0x4b7)](),_0xf09cac&&this['_updateCollabCursors'](_0xf09cac[_0x45618d(0x407)],_0x398019);});}[_0x48c788(0x22f)](_0x3e0350,_0x229265){const _0x2425dc=_0x48c788,_0x468695=this[_0x2425dc(0x4aa)]();if(_0x468695==null)return;const {scene:_0x54da54,document:_0x3f941d}=_0x468695,_0x535d64=_0x229265[_0x2425dc(0x3e8)](_0x10ffa6=>new Xr(_0x10ffa6,_0x54da54,_0x3e0350,_0x3f941d));this[_0x2425dc(0x3da)]=_0x535d64;}['_removeCollabCursors'](){const _0x2bcd9f=_0x48c788;this[_0x2bcd9f(0x3da)]['forEach'](_0x729f2e=>_0x729f2e[_0x2bcd9f(0x46e)]()),this[_0x2bcd9f(0x3da)]=[];}['_getDocObject'](){return _0x394f78(this['_univerInstanceService'],this['_renderManagerService']);}};Fe=qr([_0x4bcad5(_0xba774d['Steady'],Fe),Ie(0x0,_0x1df0bc(ue)),Ie(0x1,_0x5db99b),Ie(0x2,_0x205a7a),Ie(0x3,_0x1df0bc(_0x495a4e)),Ie(0x4,_0x1df0bc(_0x58f756))],Fe);var Zr=Object[_0x48c788(0x299)],Qr=Object['getOwnPropertyDescriptor'],eo=(_0x23a13a,_0x31c6a9,_0x164c01,_0xe36094)=>{const _0x435066=_0x48c788;for(var _0xd62053=_0xe36094>0x1?void 0x0:_0xe36094?Qr(_0x31c6a9,_0x164c01):_0x31c6a9,_0x4f1983=_0x23a13a[_0x435066(0x3c7)]-0x1,_0x21d5ee;_0x4f1983>=0x0;_0x4f1983--)(_0x21d5ee=_0x23a13a[_0x4f1983])&&(_0xd62053=(_0xe36094?_0x21d5ee(_0x31c6a9,_0x164c01,_0xd62053):_0x21d5ee(_0xd62053))||_0xd62053);return _0xe36094&&_0xd62053&&Zr(_0x31c6a9,_0x164c01,_0xd62053),_0xd62053;},ot=(_0x339d66,_0x2193f2)=>(_0x3a5d9d,_0x44f1d4)=>_0x2193f2(_0x3a5d9d,_0x44f1d4,_0x339d66);let Ge=class{constructor(_0x10d0c1,_0x2eb89a,_0x297063){const _0x18b27e=_0x48c788;this['_configService']=_0x10d0c1,this[_0x18b27e(0x33f)]=_0x2eb89a,this[_0x18b27e(0x2d8)]=_0x297063,this[_0x18b27e(0x400)]();}[_0x48c788(0x400)](){const _0x4a0a96=_0x48c788;this[_0x4a0a96(0x33f)][_0x4a0a96(0x3f6)]({'priority':0x1,'interceptor':(_0x2fb61e,_0x223cad)=>_0x223cad(_0x2fb61e)[_0x4a0a96(0x3bd)](_0x54d374(async _0x2180ae=>{const _0xec8fb3=_0x4a0a96,_0x5efc32=_0x2180ae;if(_0x5efc32[_0xec8fb3(0x4c6)]===0x191&&window[_0xec8fb3(0x31f)](this['localeService']['t'](_0xec8fb3(0x2f2)))){const _0x466a6f=window['encodeURIComponent'](window[_0xec8fb3(0x2a2)][_0xec8fb3(0x29d)]);window[_0xec8fb3(0x2a2)][_0xec8fb3(0x29d)]=this[_0xec8fb3(0x4b8)]()+_0xec8fb3(0x3b3)+_0x466a6f;}return _0x5efc32;}))});}['_getLoginPath'](){const _0x582cc3=_0x48c788;var _0x250914;return(_0x250914=this[_0x582cc3(0x35d)][_0x582cc3(0x2d9)](cn))!=null?_0x250914:hn;}};Ge=eo([ot(0x0,_0x475c15),ot(0x1,_0x1df0bc(_0x49edd2)),ot(0x2,_0x1df0bc(_0x7ef8c9))],Ge);var to=Object[_0x48c788(0x299)],so=Object[_0x48c788(0x2bd)],io=(_0x1c209b,_0x4ad525,_0xf3806e,_0x187506)=>{for(var _0x4d25c5=_0x187506>0x1?void 0x0:_0x187506?so(_0x4ad525,_0xf3806e):_0x4ad525,_0x3ec73a=_0x1c209b['length']-0x1,_0x577373;_0x3ec73a>=0x0;_0x3ec73a--)(_0x577373=_0x1c209b[_0x3ec73a])&&(_0x4d25c5=(_0x187506?_0x577373(_0x4ad525,_0xf3806e,_0x4d25c5):_0x577373(_0x4d25c5))||_0x4d25c5);return _0x187506&&_0x4d25c5&&to(_0x4ad525,_0xf3806e,_0x4d25c5),_0x4d25c5;},es=(_0x335c4a,_0x2db89c)=>(_0x1cdf6e,_0x5eb20e)=>_0x2db89c(_0x1cdf6e,_0x5eb20e,_0x335c4a);const no='AUTHZ_URL_KEY',ro=_0x48c788(0x1b9);let pt=class{constructor(_0x4040a4,_0x7b6954){this['_HTTPService']=_0x4040a4,this['_configService']=_0x7b6954;}[_0x48c788(0x392)](){const _0xd0dbd5=_0x48c788;var _0x3ad1b2;return(_0x3ad1b2=this[_0xd0dbd5(0x35d)][_0xd0dbd5(0x2d9)](no))!=null?_0x3ad1b2:ro;}async['create'](_0x1db738){const _0x4394a4=_0x48c788,_0x2c8ad2=this[_0x4394a4(0x392)]()+'/'+_0x1db738[_0x4394a4(0x456)]+_0x4394a4(0x3cd);return(await this[_0x4394a4(0x270)][_0x4394a4(0x4b4)](_0x2c8ad2,{'body':_0x1db738}))[_0x4394a4(0x1ef)][_0x4394a4(0x3d1)]||'';}async[_0x48c788(0x20a)](_0x16e440){const _0x1b03fc=_0x48c788,_0x1344f9=this[_0x1b03fc(0x392)]()+'/-/object/list';return(await this['_HTTPService']['post'](_0x1344f9,{'body':_0x16e440}))['body'][_0x1b03fc(0x28d)];}async[_0x48c788(0x47c)](_0x5267d1){const _0x495b4f=_0x48c788,_0x132d43=this[_0x495b4f(0x392)]()+'/'+_0x5267d1[_0x495b4f(0x456)]+'/object/'+_0x5267d1['objectID'];await this[_0x495b4f(0x270)][_0x495b4f(0x24f)](_0x132d43,{'body':_0x5267d1});}async[_0x48c788(0x2ac)](_0x141d15){const _0x96c15c=_0x48c788,_0x595e14=this[_0x96c15c(0x392)]()+'/'+_0x141d15[_0x96c15c(0x456)]+_0x96c15c(0x45d)+_0x141d15[_0x96c15c(0x3d1)]+_0x96c15c(0x3be);return(await this[_0x96c15c(0x270)][_0x96c15c(0x4b4)](_0x595e14,{'body':_0x141d15}))[_0x96c15c(0x1ef)]['actions'];}async['batchAllowed'](_0x433588){const _0x3b5388=_0x48c788,_0x3013f5=this[_0x3b5388(0x392)]()+_0x3b5388(0x3cc);return(await this['_HTTPService']['post'](_0x3013f5,{'body':{'requests':_0x433588}}))['body'][_0x3b5388(0x262)];}async[_0x48c788(0x316)](_0x54880b){const _0x34824d=_0x48c788,_0x35f98e=this[_0x34824d(0x392)]()+'/'+_0x54880b[_0x34824d(0x456)]+_0x34824d(0x2e0),_0x12aef8=await this[_0x34824d(0x270)][_0x34824d(0x4b4)](_0x35f98e,{'body':_0x54880b});return{'roles':_0x12aef8['body'][_0x34824d(0x486)],'actions':_0x12aef8[_0x34824d(0x1ef)][_0x34824d(0x25e)]};}async[_0x48c788(0x3e5)](_0x407563){const _0x5cfb59=_0x48c788,_0x5ea835=this[_0x5cfb59(0x392)]()+'/collaborator';await this[_0x5cfb59(0x270)][_0x5cfb59(0x388)](_0x5ea835,{'params':{'collaboratorID':_0x407563[_0x5cfb59(0x1df)],'objectID':_0x407563[_0x5cfb59(0x3d1)],'unitID':_0x407563[_0x5cfb59(0x2d3)]}});}async['updateCollaborator'](_0x1a48c4){const _0x4bddd0=_0x48c788,_0x4db9fd=this[_0x4bddd0(0x392)]()+'/collaborator';await this[_0x4bddd0(0x270)][_0x4bddd0(0x1e0)](_0x4db9fd,{'body':_0x1a48c4});}async['createCollaborator'](_0x8cb4c8){const _0x12cc45=_0x48c788,_0xbf14b2=this[_0x12cc45(0x392)]()+_0x12cc45(0x446);await this[_0x12cc45(0x270)][_0x12cc45(0x4b4)](_0xbf14b2,{'body':_0x8cb4c8});}async[_0x48c788(0x46f)](_0x2c1468){const _0x4e7db5=_0x48c788,_0x1705f7=this[_0x4e7db5(0x392)]()+_0x4e7db5(0x446);return(await this[_0x4e7db5(0x270)]['get'](_0x1705f7,{'params':{'objectID':_0x2c1468[_0x4e7db5(0x3d1)],'unitID':_0x2c1468['unitID']}}))[_0x4e7db5(0x1ef)][_0x4e7db5(0x269)];}async[_0x48c788(0x259)](_0x513486){const _0x21a1e7=_0x48c788,_0xdec4b9=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x21a1e7(0x270)]['put'](_0xdec4b9,{'body':_0x513486});}};pt=io([es(0x0,_0x1df0bc(_0x49edd2)),es(0x1,_0x1df0bc(_0x475c15))],pt);var oo=Object[_0x48c788(0x299)],ao=Object['getOwnPropertyDescriptor'],co=(_0x52465c,_0x41107c,_0x590fd2,_0x5488dc)=>{const _0x13343f=_0x48c788;for(var _0x5259da=_0x5488dc>0x1?void 0x0:_0x5488dc?ao(_0x41107c,_0x590fd2):_0x41107c,_0x39d29d=_0x52465c[_0x13343f(0x3c7)]-0x1,_0x23b274;_0x39d29d>=0x0;_0x39d29d--)(_0x23b274=_0x52465c[_0x39d29d])&&(_0x5259da=(_0x5488dc?_0x23b274(_0x41107c,_0x590fd2,_0x5259da):_0x23b274(_0x5259da))||_0x5259da);return _0x5488dc&&_0x5259da&&oo(_0x41107c,_0x590fd2,_0x5259da),_0x5259da;},ts=(_0x5833d3,_0x940302)=>(_0x375fa4,_0x3ae9e0)=>_0x940302(_0x375fa4,_0x3ae9e0,_0x5833d3);const ho=['image/png','image/jpeg',_0x48c788(0x27b),_0x48c788(0x2a4),_0x48c788(0x3c8)],lo=0x5*0x400*0x400,_o=_0x48c788(0x21e),uo=_0x48c788(0x1dc),fo=_0x48c788(0x2c3),go=_0x48c788(0x2aa);let It=class{constructor(_0x582c7b,_0x151399){const _0x31a9a7=_0x48c788;l(this,'_waitCount',0x0),l(this,_0x31a9a7(0x225),new _0x255156()),l(this,_0x31a9a7(0x335),this[_0x31a9a7(0x225)]),l(this,_0x31a9a7(0x47a),new Map()),(this['_httpService']=_0x582c7b,this['_configService']=_0x151399);}[_0x48c788(0x36c)](_0x45c10c){const _0x3b4dd6=_0x48c788;this[_0x3b4dd6(0x435)]=_0x45c10c,this[_0x3b4dd6(0x225)][_0x3b4dd6(0x325)](_0x45c10c);}[_0x48c788(0x2d4)](_0x340fda,_0x38b7c5){const _0x7993f0=_0x48c788;if(_0x38b7c5===_0x55f8db['BASE64']){const _0x203b93=new Image();return _0x203b93[_0x7993f0(0x488)]=_0x340fda,_0x203b93;}return this['_imageSourceCache'][_0x7993f0(0x4ce)](_0x340fda);}['addImageSourceCache'](_0xbfd90,_0x40cc70,_0x58e93d){const _0x3b7589=_0x48c788;_0x40cc70===_0x55f8db[_0x3b7589(0x332)]||_0x58e93d==null||this['_imageSourceCache'][_0x3b7589(0x25a)](_0xbfd90,_0x58e93d);}async[_0x48c788(0x39b)](_0x3f6a4c){const _0x4769e4=_0x48c788;try{const _0x3c4453=this[_0x4769e4(0x292)](this[_0x4769e4(0x379)](),''+_0x3f6a4c),_0xa3a576=(await this['_httpService'][_0x4769e4(0x4ce)](_0x3c4453))[_0x4769e4(0x1ef)];return _0xa3a576[_0x4769e4(0x1b3)]&&_0xa3a576['error']['code']===Es['OK']?Promise[_0x4769e4(0x49e)](_0xa3a576['url']):Promise['reject'](_0xa3a576[_0x4769e4(0x1b3)]);}catch(_0x460b79){return Promise[_0x4769e4(0x333)](_0x460b79);}}async[_0x48c788(0x352)](_0x275e51){const _0x598388=_0x48c788;let _0x1711e4='';if(!ho[_0x598388(0x418)](_0x275e51['type']))return this[_0x598388(0x267)](),Promise[_0x598388(0x333)](new Error(_0x3caa53[_0x598388(0x22a)]));if(_0x275e51[_0x598388(0x457)]>lo)return this[_0x598388(0x267)](),Promise['reject'](new Error(_0x3caa53[_0x598388(0x236)]));try{const _0x5e5bf5=new FormData();_0x5e5bf5['append']('file',_0x275e51);const _0x355e1f=this[_0x598388(0x37c)]()+_0x598388(0x43b)+_0x275e51[_0x598388(0x457)][_0x598388(0x1e6)](),_0x2dd881=await(await fetch(_0x355e1f,{'method':_0x598388(0x2f9),'body':_0x5e5bf5}))[_0x598388(0x234)]();if(typeof _0x2dd881[_0x598388(0x298)]!=_0x598388(0x484))return this[_0x598388(0x267)](),Promise['reject'](new Error(_0x3caa53[_0x598388(0x1bb)]));_0x1711e4=_0x2dd881[_0x598388(0x298)];}catch{return this[_0x598388(0x267)](),Promise[_0x598388(0x333)](new Error(_0x3caa53[_0x598388(0x1bb)]));}return new Promise((_0x53bbe9,_0x3d4063)=>{const _0x595a10=_0x598388,_0x105f19=new FileReader();_0x105f19[_0x595a10(0x3d6)](_0x275e51),_0x105f19[_0x595a10(0x490)]=_0x139582=>{const _0x3590f0=_0x595a10;var _0x161cfa;const _0xf8589e=(_0x161cfa=_0x139582['target'])==null?void 0x0:_0x161cfa['result'];if(_0xf8589e==null){this[_0x3590f0(0x267)](),_0x3d4063(new Error(_0x3caa53[_0x3590f0(0x1bb)]));return;}const _0x287a0d=_0x41ebb1[_0x3590f0(0x2e7)](0x6);_0x53bbe9({'imageId':_0x287a0d,'imageSourceType':_0x55f8db[_0x3590f0(0x405)],'source':_0x1711e4,'base64Cache':_0xf8589e,'status':_0x3caa53[_0x3590f0(0x40b)]}),this[_0x3590f0(0x267)]();};});}['_getUploadFileURL'](){const _0x42950b=_0x48c788;var _0x60ac54;return(_0x60ac54=this[_0x42950b(0x35d)][_0x42950b(0x2d9)](_o))!=null?_0x60ac54:uo;}[_0x48c788(0x379)](){const _0x4ef9f1=_0x48c788;var _0x15bd32;return(_0x15bd32=this['_configService'][_0x4ef9f1(0x2d9)](fo))!=null?_0x15bd32:go;}['_replaceFileID'](_0x2cf260,_0x442635){const _0x180224=_0x48c788;return _0x2cf260[_0x180224(0x263)](_0x180224(0x252),_0x442635);}['_decreaseWaiting'](){const _0x506eec=_0x48c788;this[_0x506eec(0x435)]-=0x1,this[_0x506eec(0x225)][_0x506eec(0x325)](this[_0x506eec(0x435)]);}};It=co([ts(0x0,_0x1df0bc(_0x49edd2)),ts(0x1,_0x475c15)],It);function _0x515a(){const _0x2cbaaf=['interceptor','[SyncedState]:\x20received\x20acknowledgement.','userID','6106485hTZRTN','_getSheetObject','cmd','snapshot','clipPath','range','_imageSourceCache','univer-offline','update','history','getUnitOnRev','_transformPreviousActiveRange','revision','pluginName','_ensureSubject','/universer-api/snapshot/','string','getRelativeCoord','roles','_onConflict','src','UNIVER_COLLABORATION_CLIENT_PLUGIN','#fff','212238uMBKzX','Starting','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_scheduleCollaborationTimeoutTimer','removeParam','onload','onMissedChangesetFetched','setParam','InsertColCommandId','LOGIN_URL_KEY','_startCollaboration','_clearHeartbeatTimer','SNAPSHOT_SERVER_URL_KEY','permission.title','1014655poAXjc','uni.network.url-service','0\x200\x2016\x2016','none','changesets','resolve','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','MSG_FOR_ERROR','USERS_ENTER','_shapes','failed\x20to\x20apply\x20missed\x20changesets!','transformSelections','text','children','/universer-api/snapshot','/block/','_http','_getDocObject','_socketMessageSubscription','...','saveOfflineData','focused$','startRow','editing\x20status\x20changed\x20to','getCurrentRevForDocument','_redoStacks','_updateLocalCache','post','_labelPosition','doc.mutation.rich-text-editing','_removeCollabCursors','_getLoginPath','save\x20fail\x20reason\x20is\x20','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','fetchThroughInterceptors','fetchMissingChangesets','_themeService','column','pushState','_sheetTransformSelectionsService','_unlockTransition','_updateSubUnitFromURLParams','setItem','_entityInit$','LICENSE_DISTRO_REJECTED','status','rev','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','dispose$','_awaitingChangeset','\x0aCurrent:\x20','height','getCollabCursors$','get','_selfUnitIDs','RemoveRowCommandId','show','permissionRejEvent','_userManagerService','UNIVER_DOC','syncEditingCollabCursor','onStateChange','close$','collabStatus.fetchMiss','getSheetBlock','debug','_exhaustSavingTask','editingUnit','error','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','FAIL','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','M0\x200H16V16H0z','LIVESHARE_FETCH_OPERATIONS','/universer-api/authz','onSyncEditingCollabCursor','ERROR_IMAGE','m2Prime','UNAUTHENTICATED','sheetID','unitId','path','fillStyle','collab-text-anchor-','width','SEND_CHANGESET_TIMEOUT','transformIMECache','contains','CHANGESET_REVISION_CONFILICT','getRoom','isArray','_status$','className','verdancy600','getCollabEntity','stringify','transformRemoteChangeset','_startSheetCollabCursor','_toggleOnline','getFocusedUnit','_executeRemoteChangeset','_disableEditing','hide','transformUndoRedo','_getUndoStack','_hover','_initModules','\x20-\x20','univer-online-status-title','/universer-api/stream/file/upload','_handleEvent','fromCollab','collaboratorID','patch','ranges','_syncEditingCollabCursor','_docSkeletonManagerService','url(#on-line-single_clip0_910_349)','setActiveRange','toString','[OfflineState]:\x20received\x20rejection.','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','_commandService','_tryEnsureSocket','_localCacheService','asObservable','UPDATE_CURSOR','docStateChange$','body','_clearTimeoutTimer','_handleLeaveEvent','_docStateChangeManagerService','hovered','registerRefRange','Ready','parse','RECV','c2Prime','makeDirty','unsubscribe','triggerDblclick','hasOwnProperty','/new_changes','_color','_clearLocalCache','ACTIVE_UNIT_EVENT_CHANNEL','_type','_onCursorDelete','tag','_scheduleSaving','_rescheduleHeartbeatEvent','INTERNAL_ERROR','CONNECTOR_DATA_TOO_LARGE','LICENSE_EXPORT_SIZE_EXCEEDED','_undoStacks','list','resend','_permissionService','add','then','svg','_disabled','_clearOtherTimers','loadSheet','jiqing500','OFFLINE','urlChange$','_createSocket','_sendHeartbeat','_docTransformSelectionsService','_anchor','defIds','APPLY_REVISION_CONFILICT','_onUserJoin','onRemoteRej','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','SYNCED','_snapshotServerService','_submitChangeset','NEW_CHANGESETS','TOO_MANY_REQUESTS','closePath','_change$','subunit','storage','unknown','sheets','ERROR_IMAGE_TYPE','red300','USERS_LEAVE','_collabCursorState$','complete','_updateCollabCursors','createElement','_transformService','setUndoRedoMutationParamsCache','getActiveRange','json','COMPRESS_MUTATION_SEND','ERROR_EXCEED_SIZE','subscribe','getInterceptPoints','OnLineSingle','onlineStatusIcon','_docSkeleton','_getRedoStack','InsertRowCommandId','params','_lastPointer','getParam','off-line-single_clip0_910_343','createSocket','1em','forEach','MoveRangeCommandId','_socketReady','entries','error$','max','onCommandExecuted','_cachedData','reverse','toggleOffline','_document','put','SUBMIT_CHANGESET','FETCH_MISSING','{fileID}','HEADER_MENU','UNDEFINED','title','loadOfflineData','lineTo','random','putCollaborators','set','idSuffix','getRangePointData','offline','actions','saveSheetBlock','memberID','_onFetchMissResult','objectActions','replace','url(#$1','connection\x20error','arc','_decreaseWaiting','cursorInfo$','collaborators','socketService','conflict.content','message$','_online','_onRemoteRejected','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_HTTPService','isActive','unit','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_unitStatus','replaceTextRanges','_createInitialState','_unitOnClients','use','_removeClearOtherTimer','currentColor','image/jpg','isEditing','updateOfflineData','AWAITING','_entities','registerBeforeClose','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','IDLE','getMergeData','_ws','_getSnapshotAPIPrefix','addObject','getCurrentUnitForType','symbol','newValue','_collabCursorController','_onRefRangeChange','_singleActiveUnitService','objects','_memberService','_name','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','onPointerEnterObserver','_replaceFileID','synced','updateMember','color','_onRecvEvent','close','FileId','defineProperty','FETCH_MISS','_hideTimer','[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.','href','UNIVER_SHEET','[FetchMissState]','_onRemoteChangeset','permission.content','location','OffLineSingle','image/gif','state','_createHandler','INGEST','session.room-full','_initStatusComponent','/universer-api/file/{fileID}/sign-url','_getCtorByUniverType','allowed','_logService','_scheduleClearOtherTimer','_scheduleTimestamp','getScrollXYByRelativeCoords','_onConnectionFailed','/rev/','registerComponent','_getScale','onPointerMoveObserver','18434862Vppmdq','transform','_clearScheduledTask','onTransformRemoteChangesetByIMECache','collaboration.single-unit.warning','moveTo','SNAPSHOT_INVALID_SNAPSHOT','getOwnPropertyDescriptor','displayName','_getCurrentRevision','getOwnPropertySymbols','workbook','disableLocalCache','EXCHANGE_SIGN_URL_SERVER_URL_KEY','split','_state','save','LICENSE_MAX_UNITS_EXCEEDED','_loadDoc','\x20in\x20_schedule.','_applyRemoteChangeset','_pendingMutations','rgba(255,\x20255,\x20255,\x200.01)','OTHER_CLIENTS_EDITING','onRemoteAck','getSelections','appendMutation','_transformRemoteChangesetByIMECache','LIVESHARE_TERMINATE','unitID','getImageSourceCache','resourceIDs','infoRsp','catch','localeService','getConfig','ws://127.0.0.1:8000/universer-api/comb/connect','YUUMI_URL_COL_OUT_OF_RANGE','Univer','_docTransformIMECacheService','session','executeCommand','/role','_injector','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','name','_checkMissing','xlink:href','url(#off-line-single_clip0_910_343)','generateRandomId','_lockTransition','_members','getTypeOfUnitDisposed$','result','CONFLICT','_timeoutTimer','LIVESHARE_NEW_HOST','awaiting','bottom','_exhaustRemoteChangesetQueue','auth.needGotoLoginAlert','_docSyncEditingCollabCursorService','VIEW_MAIN','pending','_session','session.will-retry','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','POST','_getSaveTimeout','_socketService','selections','Unknown\x20user','row','popstate','drawWith','encode','_state$','replaceState','getUnitType','[UniverCollaborationClientPlugin]','_event$','HEARTBEAT_TIMEOUT','_getMergeRange','_saveCache','CHANGESET_ACK','univer-pro.collaboration-client-socket-service','_getAPIPrefix','UniverIcon','_refRangeService','UNIVER_SLIDE','getCurrentUser','div','currentSkeleton$','transformMutationsWithChangeset','_localeService','findNodePositionByCharIndex','listRoles','onlineStatus','_unitID','not_collab','_colorIndex','COMPLETION_FINISHED','unit-cache-','whenReady','clearTimeout','confirm','onTransformSelections','apply','_cursorInfo$','enableAuthServer','getAncestorScale','next','getValue','/unit/','_handleHeartbeatEvent','getMemberID','NO_OTHER_CLIENTS_EDITING','UNRECOGNIZED','_isPermissionRej','_remoteChangesetQueue','onRemoteChangeset','_setupSubUnitSync','icon','[CollaborationUndoRedoService]','BASE64','reject','_sendingTimer','change$','_updateLocalCursor','_onLocalMutation','clear','prototype','/resources','transformMutation','_clearRedo','assignAColorForMemberID','_onRemoteACK','_httpService','_init','session.connection-failed','getCurrent','collabCursorState$','FromArray','PENDING','_collaborationController','LOCAL_CACHE_INTERVAL','_textBubble','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','_collaborationTimeoutTimer','open$','_joinRoom','updateCursorEvent','NOT_FOUND','measureText','_removeRoom','_urlService','saveImage','PERMISSION_DENIED','getActiveSheet','registerOnClose','_scheduleReconnection','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','getCellPositionByOffset','_scene','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','updatePermissionPoint','labelPosition','_configService','_transformIMECache','on-line-single_clip0_910_349','roomMembers$','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','5667528PCUapZ','_transformUndoredo','some','_getAnchorBounding','_socket','_transitionLocked','onlineStatusTitle','_onCursorUpdate','_compressMutationService','COLLAB_SUBMIT_CHANGESET_URL','setWaitCount','getCollabEntity$','_unitId','getUnitStatus$','collabStatus.offline','collaborationUniverTypes','getTime','_onMessage','HELLO','_uiPartsService','evenodd','JOINING','_acknowledgedAwaitingChangeset','_getSignURL','_hovered','SNAPSHOT_URL_KEY','_getUploadFileURL','roomInfos','_onUserLeave','concat','_showConflictNotification','send','_substituteRedoStack','conflict.title','unshift','enableLocalCache','indexOf','_clearUndo','delete','_onJoinRoomEvent','socket\x20open.','_roomMembers','_univerInstanceService','_retryConnectingTimer','_transformStack','assign','_localStorageService','baseRev','_getAPIPrefixPath','PSEUDO_FETCH_MISSING_RESULT','substring','getMember','_roomMembers$','_loadSheet','[DataLoaderController]','_onCombEvent','InsertRangeMoveRightCommandId','getImage','RemoveColCommandId','_colorAssignService','Warning','_notificationService','[CollaborationEntity]','createInstance','conflict','beginPath','JOIN','addObjects','APPLY_NON_SEQUENTIAL_REVISION','_updateURLWithCurrentState','transformByState','c1Prime','_range','translate(.97)','_setupBeforeClosingHandler','LEAVE','push','_schedule','blue400','setAlpha','_saveTaskMap','?url=','_heartbeatTimer','mutations','_collabSessionService','_undoRedoService','DeleteRangeMoveUpCommandId','[CollaborationState]:\x20apply\x20error!','deepClone','LIVESHARE_REQUEST_HOST','_waitForHeartbeatResponse','pipe','/allowed','toggleOnline','33282rFpMpr','addEventListener','UNIVER_UNKNOWN','_eventUnsubscribe','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','univerjs-icon\x20univerjs-icon-','YUUMI_UNABLE_LOAD_URL','length','image/bmp','_substituteUndoStack','INVALID_ARGUMENT','_draw','/-/object/-/batch_allowed','/object','getTypeOfUnitAdded$','setShapeProps','colorChannel1','objectID','_beforeCloseService','gold400','defs','setCurrentUser','readAsDataURL','event$','collabStatus.notCollab','[OfflineState]:\x20received\x20acknowledgement.','_cursors','_onConnectionOpen','_render','_id','_retryCount','onMouseMove','csAckEvent','&to=','extend','transformChangesets','_initStatusListener','deleteCollaborator','_updateStatus','disposeWithMe','map','_collaborationPaused','sessionStatus','subUnitId','collaMsg','univer-online','enableOfflineEditing','values','_scheduleHeartbeat','onPointerLeaveObserver','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_revisionService','has','LIVESHARE_OPERATION','registerHTTPInterceptor','toRgbString','_renderManagerService','Error','_cursor','transformStack\x20failed!','178KVvZQM','black','InsertRangeMoveDownCommandId','endColumn','init','activeSheet$','[CollaborationSession]','fill','RETRY_CONNECTING_MAX_COUNT','UUID','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','skeleton','_sessions','fetch_missing','_transformSelections','SUCCUSS','liveShareNewHost','_sessionStatus$','_sendHeartbeatTimer','originalMeta','textRanges','getUndoRedoMutationParamsCache','HEARTBEAT','call','endRow','m1Prime','getSheetBySheetId','_sheetSkeletonManagerService','includes','_createInitialStateImpl','_updateState','setTimeout','startColumn','_anchorDot','_toggleOffline','_drawAnchor','eventID','#FFF','searchParams','routeKey','/universer-api/oidc/authpage','override','cursorInfo','_syncEditingCollabCursorService','0\x200\x2017\x2016','_socket$','_incrementRevisionNumber','_assignedColors','[PendingState]:\x20received\x20rejection.','UNKNOWN_CODE','all','selection','LICENSE_IMPORT_SIZE_EXCEEDED','ONLINE','fillText','/fetchmissing?from=','getItem','_waitCount','getRenderById','awaitingChangeset','leaveEvent','_startDocCollabCursor','NOT_COLLAB','?size=','COLLAB_WEB_SOCKET_URL','collabStatus.synced','data','_handler','CHANGESET_REJ','APPLY_PERMISSION_DENIED','_clearCollaborationTimeoutTimer','_drawRange','from','onSendChangeset','/collaborator','12mPJSdZ','_replayCachedMutations','sessionStatus$','removeMember','status$','requireSession','attrs','Steady','clearInterval','HEARTBEAT_INTERVAL','getUnitId','_config','fillRule','_queuedRemoteChangesets','[PendingState]:\x20unhandled\x20univer\x20type:\x20','objectType','size','startsWith','off-line-single','AWAITING_WITH_PENDING','type','currentTheme$','/object/','function','getSheetId','10746856nUjyhq','restore','min','_send','_messageService','_handleJoinEvent','onMissingChangesets','_handleHover','PERMISSION_REJ','COMPRESS_MUTATION_APPLY','UNKNOWN_CMD','round','onStarting','saveSnapshot','dispose','listCollaborators','purple300'];_0x515a=function(){return _0x2cbaaf;};return _0x515a();}var Ms=Object['defineProperty'],mo=Object[_0x48c788(0x2bd)],So=(_0x275e94,_0x531c6e,_0x1cd5f7)=>_0x531c6e in _0x275e94?Ms(_0x275e94,_0x531c6e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1cd5f7}):_0x275e94[_0x531c6e]=_0x1cd5f7,vo=(_0x2889ba,_0x254b7d,_0x20260c,_0x50f7ac)=>{const _0x14d88e=_0x48c788;for(var _0x2b3a7f=_0x50f7ac>0x1?void 0x0:_0x50f7ac?mo(_0x254b7d,_0x20260c):_0x254b7d,_0x4561d8=_0x2889ba[_0x14d88e(0x3c7)]-0x1,_0xeed04d;_0x4561d8>=0x0;_0x4561d8--)(_0xeed04d=_0x2889ba[_0x4561d8])&&(_0x2b3a7f=(_0x50f7ac?_0xeed04d(_0x254b7d,_0x20260c,_0x2b3a7f):_0xeed04d(_0x2b3a7f))||_0x2b3a7f);return _0x50f7ac&&_0x2b3a7f&&Ms(_0x254b7d,_0x20260c,_0x2b3a7f),_0x2b3a7f;},ss=(_0x549925,_0x41890c)=>(_0x1fe467,_0x2f96c4)=>_0x41890c(_0x1fe467,_0x2f96c4,_0x549925),po=(_0x41e830,_0x4a3ab0,_0x3170c6)=>(So(_0x41e830,_0x4a3ab0+'',_0x3170c6),_0x3170c6);const Io=_0x48c788(0x489);let Et=class extends _0x12f480{constructor(_0x4afdb6,_0xf03803,_0x2f53be){const _0x403b9b=_0x48c788;super(),this[_0x403b9b(0x452)]=_0x4afdb6,this[_0x403b9b(0x2ad)]=_0xf03803,this[_0x403b9b(0x2e1)]=_0x2f53be;}[_0x48c788(0x46c)](_0x5edeb7){const _0xe0250b=_0x48c788;var _0x3be023,_0x3de2d6,_0x538ac9,_0x2ddb57,_0x41d844;_0x5edeb7[_0xe0250b(0x3f4)](_0x3b301b)&&this[_0xe0250b(0x2ad)][_0xe0250b(0x1b3)](_0xe0250b(0x305),_0xe0250b(0x3c4));let _0x1a6bd1=[[_0x3b301b,{'useClass':vt}],[Re],[At],[_0x49edd2],[Ns,{'useClass':Vr}],[ee],[D],[_0x15b3f3],[Ve],[Be],[ke],[Mt],[Ge],[Cs,{'useClass':(_0x3de2d6=(_0x3be023=this[_0xe0250b(0x452)])==null?void 0x0:_0x3be023[_0xe0250b(0x26a)])!=null?_0x3de2d6:_t}],[_0x18e4ed,{'useClass':_0x1c4b96}],[_0x32765d,{'useClass':St}],[_0x49a670,{'useClass':pt}],[_0x5863cd,{'useClass':It}],[Ee],[He],[je],[xe],[ue]];(_0x538ac9=this[_0xe0250b(0x452)])!=null&&_0x538ac9['enableSingleActiveInstanceLock']&&_0x1a6bd1[_0xe0250b(0x3ae)]([Xe,{'useClass':Tn}]),((_0x2ddb57=this[_0xe0250b(0x452)])==null?void 0x0:_0x2ddb57[_0xe0250b(0x371)])==null||this['_config'][_0xe0250b(0x371)]['includes'](_0x5b42a8[_0xe0250b(0x29e)])?_0x1a6bd1['push']([$e]):this[_0xe0250b(0x452)]['collaborationUniverTypes'][_0xe0250b(0x418)](_0x5b42a8[_0xe0250b(0x4d4)])&&_0x1a6bd1['push']([Fe]),_0x1a6bd1=_0x166e22(_0x1a6bd1,(_0x41d844=this[_0xe0250b(0x452)])==null?void 0x0:_0x41d844[_0xe0250b(0x425)]),_0x1a6bd1[_0xe0250b(0x244)](_0x27975a=>_0x5edeb7[_0xe0250b(0x20d)](_0x27975a)),_0x5edeb7[_0xe0250b(0x4ce)](_0x49edd2)[_0xe0250b(0x3f6)]({'priority':0x14,'interceptor':_0x398469({'maxParallel':0x6})}),this[_0xe0250b(0x1d9)]();}['_initModules'](){const _0x36c369=_0x48c788;var _0x5d6634,_0x5890a1;(_0x5d6634=this[_0x36c369(0x452)])!=null&&_0x5d6634[_0x36c369(0x3ee)]||this[_0x36c369(0x2e1)][_0x36c369(0x4ce)](D)[_0x36c369(0x2c2)](),(_0x5890a1=this[_0x36c369(0x452)])!=null&&_0x5890a1[_0x36c369(0x323)]&&this[_0x36c369(0x2e1)]['get'](Ge);}};po(Et,_0x48c788(0x481),Io),Et=vo([_0x5c5115(_0x149281),ss(0x1,_0xcf8387),ss(0x2,_0x1df0bc(_0x1883e3))],Et);export{no as AUTHZ_URL_KEY,pt as AuthzIoHttpService,on as COLLAB_SUBMIT_CHANGESET_URL_KEY,Ji as COLLAB_WEB_SOCKET_URL_KEY,Ee as CollaborationController,ut as CollaborationSession,Re as CollaborationSessionService,_t as CollaborationSocketService,P as CollaborationStatus,Rr as CollaborationStatusDisplay,He as DataLoaderController,je as DesktopCollaborationStatusDisplayController,qi as HEARTBEAT_INTERVAL_KEY,ps as HEARTBEAT_TIMEOUT_KEY,Cs as ICollaborationSocketService,Ns as IURLService,nn as LOCAL_CACHE_INTERVAL_KEY,cn as LOGIN_URL_KEY,D as LocalCacheService,Ki as SEND_CHANGESET_TIMEOUT_KEY,Wi as SNAPSHOT_SERVER_URL_KEY,Yi as SNAPSHOT_URL_KEY,_e as SessionStatus,Et as UniverCollaborationClientPlugin,Vr as WebURLService,fn as deserializeToCombResponse,gn as serializeCombRequest};
|