@univerjs-pro/collaboration-client 0.1.17 → 0.2.1
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/index.d.ts +1 -0
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +3 -1
- package/lib/types/services/comment/comment.service.d.ts +7 -0
- package/lib/umd/index.js +1 -1
- package/package.json +33 -33
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0x35fe9a=_0x2564;(function(_0x173702,_0x53903f){const _0x44851f=_0x2564,_0xb1b556=_0x173702();while(!![]){try{const _0x8018f3=parseInt(_0x44851f(0x2ce))/0x1*(-parseInt(_0x44851f(0x419))/0x2)+-parseInt(_0x44851f(0x202))/0x3*(parseInt(_0x44851f(0x2a9))/0x4)+-parseInt(_0x44851f(0x276))/0x5+-parseInt(_0x44851f(0x453))/0x6*(parseInt(_0x44851f(0x258))/0x7)+-parseInt(_0x44851f(0x21a))/0x8*(parseInt(_0x44851f(0x475))/0x9)+parseInt(_0x44851f(0x1df))/0xa+parseInt(_0x44851f(0x3fa))/0xb;if(_0x8018f3===_0x53903f)break;else _0xb1b556['push'](_0xb1b556['shift']());}catch(_0x3ece13){_0xb1b556['push'](_0xb1b556['shift']());}}}(_0x4643,0x9b32b));var Hs=Object[_0x35fe9a(0x448)],xs=(_0x33801f,_0x116e74,_0x5e0baa)=>_0x116e74 in _0x33801f?Hs(_0x33801f,_0x116e74,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e0baa}):_0x33801f[_0x116e74]=_0x5e0baa,l=(_0x4586f6,_0x49a051,_0x23d19b)=>xs(_0x4586f6,typeof _0x49a051!=_0x35fe9a(0x441)?_0x49a051+'':_0x49a051,_0x23d19b);import{Disposable as _0x2b2023,toDisposable as _0x5b60bf,UniverInstanceType as _0x9a39b6,UserManagerService as _0x570ca3,IUniverInstanceService as _0x1ffae8,DisposableCollection as _0x282665,IConfigService as _0x4e019d,ILogService as _0x294e85,ISnapshotServerService as _0x1f3aa6,RxDisposable as _0x2f203c,LocaleService as _0x210cec,ILocalStorageService as _0x42b234,Tools as _0x295a4b,ICommandService as _0x373f07,JSONX as _0x260909,IPermissionService as _0x58ae2b,IUndoRedoService as _0x4b7ddb,sequenceExecute as _0x299d45,OnLifecycle as _0x47af0a,LifecycleStages as _0x550976,CommandType as _0x4c88fc,Rectangle as _0x22f9e9,ThemeService as _0x166891,Workbook as _0x23594e,textEncoder as _0x3071b6,b64DecodeUnicode as _0x42e26e,LocalUndoRedoService as _0x3e7dac,IContextService as _0x559f35,COLORS as _0x1e8e1f,ColorKit as _0x2de130,Plugin as _0x3c1164,IAuthzIoService as _0x5c7307,mergeOverrideWithDependencies as _0x3e3d43,DependentOn as _0x19f942}from'@univerjs/core';import{SelectionManagerService as _0x5927f3,SetSelectionsOperation as _0x49c1dc,InsertSheetMutation as _0x3307b6,WorkbookEditablePermission as _0x1a9d94,RefRangeService as _0x3cc16f,EffectRefRangId as _0x4d5b56,handleIRemoveRow as _0x16f5d1,handleIRemoveCol as _0x22f603,handleMoveRange as _0x3fb244,handleInsertRow as _0x448db0,handleInsertRangeMoveRight as _0x5b1c01,handleInsertRangeMoveDown as _0x153b04,handleInsertCol as _0x35ab5a,handleDeleteRangeMoveUp as _0x1e2cc5,handleDeleteRangeMoveLeft as _0x6ca0a5,runRefRangeMutations as _0x577367,SetWorksheetActivateCommand as _0x34d4ad}from'@univerjs/sheets';import{MessageType as _0x1b5516}from'@univerjs/design';import{IBeforeCloseService as _0x551edb,IMessageService as _0x22dc6a,INotificationService as _0x463aaa,useObservable as _0x2fb9fb,BuiltInUIPart as _0x851c42,IUIPartsService as _0x1edecf}from'@univerjs/ui';import{CollaborationEvent as _0x20b5fc,parseChangesetToProtocol as _0x45ae1b,RevisionService as _0x53eb10,isTransformMutationFailure as _0x560f2f,isTransformMutationsWithChangesetSuccess as _0x44a64c,ITransformService as _0x56176b,mapDocumentTypeToUniverType as _0xa9e329,isTransformChangesetsSuccess as _0x54bce7,CompressMutationService as _0x3c2828,parseProtocolChangeset as _0x41e0db,SnapshotService as _0x4b1ee5,isTransformMutationsWithChangesetFailure as _0x4f854d,UniverCollaborationPlugin as _0xc5e94c}from'@univerjs-pro/collaboration';import{Inject as _0x5b3e40,createIdentifier as _0x83cf67,Injector as _0x331eca,Optional as _0xb29030}from'@wendellhu/redi';import{merge as _0x17d598,Subject as _0x3da7e9,BehaviorSubject as _0x316dfa,distinctUntilChanged as _0x199d88,fromEvent as _0x4ba866,of as _0x214b8f,takeUntil as _0x2c14e9,debounceTime as _0x4831d6,filter as _0x37e932,switchMap as _0x13231a,combineLatest as _0x409cac,shareReplay as _0x436a17,mapTo as _0x49a35c,concatMap as _0x36cfb9}from'rxjs';import{map as _0x134cb9,takeUntil as _0x479f07,take as _0x403f5b,filter as _0xa67359,delay as _0x4d03e2,shareReplay as _0x25b33b,switchMap as _0x443800}from'rxjs/operators';import{IMEInputManagerService as _0x3524fa,TextSelectionManagerService as _0x200457,serializeTextRange as _0x3dee4a,DocStateChangeManagerService as _0xa21473,SetTextSelectionsOperation as _0x30703b,RichTextEditingMutation as _0x250ba2,getDocObject as _0x1fda07,DocSkeletonManagerService as _0x59817c}from'@univerjs/docs';import{HTTPService as _0x588bfd,WebSocketService as _0x5509e6,IHTTPImplementation as _0x26f8d2,XHRHTTPImplementation as _0x199929,ThresholdInterceptorFactory as _0x3318df}from'@univerjs/network';import{ImageSourceType as _0x356a4c,ImageUploadStatusType as _0x2be5ef,IImageIoService as _0x1f3428}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x3fe7cb,serializeRangeWithSheet as _0x1c04be}from'@univerjs/engine-formula';import _0x20a066 from'lodash/debounce';import{Shape as _0x1205b1,Rect as _0x2d9440,Vector2 as _0x4b9227,IRenderManagerService as _0x458795,NodePositionConvertToCursor as _0x7277fa,getColor as _0x57b7c5,TEXT_RANGE_LAYER_INDEX as _0x5e3717,RegularPolygon as _0x530d78}from'@univerjs/engine-render';import{SheetSkeletonManagerService as _0x21497f,VIEWPORT_KEY as _0x247610,getCoordByCell as _0x4b86c2,getSheetObject as _0xd1a85}from'@univerjs/sheets-ui';import{useDependency as _0x2e2170,connectInjector as _0x4cf379}from'@wendellhu/redi/react-bindings';import _0x43d382,{forwardRef as _0x4c1e67,useRef as _0x2a4631,createElement as _0xc09f89}from'react';import _0x1e7826 from'clsx';import{IRemoteInstanceService as _0x32c3f9}from'@univerjs/rpc';const Wi=_0x35fe9a(0x30e),Gi=_0x35fe9a(0x2e2),Yi=_0x35fe9a(0x3dd),Ki=_0x35fe9a(0x3c9),Xi=0x7d0,Ji=_0x35fe9a(0x294),zi=_0x35fe9a(0x17d),Zi=_0x35fe9a(0x43d),qi=0x7530,Is=_0x35fe9a(0x194),Es=0x2710,Qi=_0x35fe9a(0x2f2),en=0x4e20,tn=_0x35fe9a(0x3d2),sn=0x3,nn='LOCAL_CACHE_INTERVAL',rn=0x3e8,on='COLLAB_SUBMIT_CHANGESET_URL',an=_0x35fe9a(0x424),cn='LOGIN_URL_KEY',hn=_0x35fe9a(0x288);var Cs=(_0x389e05=>(_0x389e05[_0x389e05[_0x35fe9a(0x2d6)]=0x0]=_0x35fe9a(0x2d6),_0x389e05[_0x389e05['OK']=0x1]='OK',_0x389e05[_0x389e05[_0x35fe9a(0x2f4)]=0x2]='INTERNAL_ERROR',_0x389e05[_0x389e05[_0x35fe9a(0x39c)]=0x3]=_0x35fe9a(0x39c),_0x389e05[_0x389e05[_0x35fe9a(0x192)]=0x4]=_0x35fe9a(0x192),_0x389e05[_0x389e05[_0x35fe9a(0x342)]=0x5]=_0x35fe9a(0x342),_0x389e05[_0x389e05['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x389e05[_0x389e05['INVALID_ARGUMENT']=0x7]=_0x35fe9a(0x2a2),_0x389e05[_0x389e05[_0x35fe9a(0x389)]=0x8]=_0x35fe9a(0x389),_0x389e05[_0x389e05[_0x35fe9a(0x3b7)]=0x9]='COMPLETION_FINISHED',_0x389e05[_0x389e05['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x35fe9a(0x3f4),_0x389e05[_0x389e05['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x35fe9a(0x281),_0x389e05[_0x389e05[_0x35fe9a(0x35d)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x389e05[_0x389e05[_0x35fe9a(0x3b6)]=0x1b59]=_0x35fe9a(0x3b6),_0x389e05[_0x389e05[_0x35fe9a(0x31a)]=0x1b5a]=_0x35fe9a(0x31a),_0x389e05[_0x389e05[_0x35fe9a(0x1ba)]=0x1b5b]=_0x35fe9a(0x1ba),_0x389e05[_0x389e05[_0x35fe9a(0x1ad)]=0x1b5c]=_0x35fe9a(0x1ad),_0x389e05[_0x389e05[_0x35fe9a(0x1a8)]=0x1f41]=_0x35fe9a(0x1a8),_0x389e05[_0x389e05[_0x35fe9a(0x374)]=0x2329]=_0x35fe9a(0x374),_0x389e05[_0x389e05['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x35fe9a(0x42c),_0x389e05[_0x389e05[_0x35fe9a(0x1c9)]=0x232b]=_0x35fe9a(0x1c9),_0x389e05[_0x389e05['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x35fe9a(0x1f0),_0x389e05[_0x389e05[_0x35fe9a(0x297)]=0x232d]=_0x35fe9a(0x297),_0x389e05[_0x389e05['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x389e05[_0x389e05[_0x35fe9a(0x1d0)]=0x2712]=_0x35fe9a(0x1d0),_0x389e05[_0x389e05[_0x35fe9a(0x1d1)]=-0x1]=_0x35fe9a(0x1d1),_0x389e05))(Cs||{}),H=(_0x3541c4=>(_0x3541c4[_0x3541c4[_0x35fe9a(0x1d9)]=0x0]=_0x35fe9a(0x1d9),_0x3541c4[_0x3541c4[_0x35fe9a(0x1f2)]=0x1]=_0x35fe9a(0x1f2),_0x3541c4[_0x3541c4[_0x35fe9a(0x339)]=0x2]='UNIVER_SHEET',_0x3541c4[_0x3541c4[_0x35fe9a(0x409)]=0x3]='UNIVER_SLIDE',_0x3541c4[_0x3541c4[_0x35fe9a(0x1d1)]=-0x1]='UNRECOGNIZED',_0x3541c4))(H||{}),I=(_0x5d257c=>(_0x5d257c[_0x5d257c[_0x35fe9a(0x3af)]=0x0]=_0x35fe9a(0x3af),_0x5d257c[_0x5d257c[_0x35fe9a(0x3e0)]=0x1]=_0x35fe9a(0x3e0),_0x5d257c[_0x5d257c[_0x35fe9a(0x308)]=0x2]=_0x35fe9a(0x308),_0x5d257c[_0x5d257c['LEAVE']=0x3]=_0x35fe9a(0x466),_0x5d257c[_0x5d257c[_0x35fe9a(0x2a0)]=0x4]=_0x35fe9a(0x2a0),_0x5d257c[_0x5d257c[_0x35fe9a(0x43e)]=0x5]='HEARTBEAT',_0x5d257c[_0x5d257c[_0x35fe9a(0x429)]=0x6]=_0x35fe9a(0x429),_0x5d257c[_0x5d257c[_0x35fe9a(0x1d1)]=-0x1]=_0x35fe9a(0x1d1),_0x5d257c))(I||{}),Nt=(_0x4fbfb7=>(_0x4fbfb7[_0x4fbfb7[_0x35fe9a(0x408)]=0x0]=_0x35fe9a(0x408),_0x4fbfb7[_0x4fbfb7['OK']=0x1]='OK',_0x4fbfb7[_0x4fbfb7[_0x35fe9a(0x27b)]=0x2]=_0x35fe9a(0x27b),_0x4fbfb7[_0x4fbfb7[_0x35fe9a(0x1d1)]=-0x1]=_0x35fe9a(0x1d1),_0x4fbfb7))(Nt||{}),ln=Object['defineProperty'],_n=Object['getOwnPropertyDescriptor'],un=(_0x46ac4b,_0x2d2cb9,_0x1ae8b0,_0x2d0819)=>{const _0x37e049=_0x35fe9a;for(var _0xe10675=_0x2d0819>0x1?void 0x0:_0x2d0819?_n(_0x2d2cb9,_0x1ae8b0):_0x2d2cb9,_0x25a989=_0x46ac4b[_0x37e049(0x443)]-0x1,_0x419160;_0x25a989>=0x0;_0x25a989--)(_0x419160=_0x46ac4b[_0x25a989])&&(_0xe10675=(_0x2d0819?_0x419160(_0x2d2cb9,_0x1ae8b0,_0xe10675):_0x419160(_0xe10675))||_0xe10675);return _0x2d0819&&_0xe10675&&ln(_0x2d2cb9,_0x1ae8b0,_0xe10675),_0xe10675;},Wt=(_0x50b654,_0x102bd8)=>(_0x38e2f1,_0x3bb15f)=>_0x102bd8(_0x38e2f1,_0x3bb15f,_0x50b654);let ee=class extends _0x2b2023{constructor(_0x489be9,_0x2d1901){const _0x459e6f=_0x35fe9a;super(),l(this,_0x459e6f(0x2dd),new Map()),(this[_0x459e6f(0x262)]=_0x489be9,this['_userManagerService']=_0x2d1901,this['disposeWithMe'](_0x5b60bf(_0x17d598(this[_0x459e6f(0x262)]['getTypeOfUnitDisposed$'](_0x9a39b6[_0x459e6f(0x339)])[_0x459e6f(0x332)](_0x134cb9(_0x30e9df=>_0x30e9df[_0x459e6f(0x22b)]())),this[_0x459e6f(0x262)]['getTypeOfUnitDisposed$'](_0x9a39b6['UNIVER_DOC'])[_0x459e6f(0x332)](_0x134cb9(_0x482809=>_0x482809[_0x459e6f(0x22b)]())),this[_0x459e6f(0x262)][_0x459e6f(0x3d9)](_0x9a39b6[_0x459e6f(0x409)])[_0x459e6f(0x332)](_0x134cb9(_0x46e983=>_0x46e983[_0x459e6f(0x22b)]())))[_0x459e6f(0x40e)](_0x52da91=>this['_removeRoom'](_0x52da91)))));}['setCurrentUser'](_0x1b957e){const _0x3b116c=_0x35fe9a;this[_0x3b116c(0x1ca)]['setCurrentUser'](_0x1b957e);}[_0x35fe9a(0x2d2)](){const _0x29945f=_0x35fe9a;return this[_0x29945f(0x1ca)][_0x29945f(0x2d2)]();}['updateMember'](_0x1308f2,_0x5db50b){const _0x130c36=_0x35fe9a;let _0x49b357=this[_0x130c36(0x2dd)][_0x130c36(0x3e8)](_0x1308f2);_0x49b357||(_0x49b357=new dn(),this[_0x130c36(0x2dd)][_0x130c36(0x445)](_0x1308f2,_0x49b357)),_0x49b357[_0x130c36(0x37c)](_0x5db50b);}[_0x35fe9a(0x387)](_0x4773b9,_0x16b486){const _0x201ec2=_0x35fe9a,_0x5642d3=this[_0x201ec2(0x2dd)][_0x201ec2(0x3e8)](_0x4773b9);_0x5642d3&&_0x5642d3[_0x201ec2(0x387)](_0x16b486);}['getRoom'](_0x10b0df){const _0xe0c1e0=_0x35fe9a;return this[_0xe0c1e0(0x2dd)][_0xe0c1e0(0x3e8)](_0x10b0df);}[_0x35fe9a(0x286)](_0x1e7a3b,_0x3b449c){const _0x4bbe15=_0x35fe9a,_0x2db9b2=this[_0x4bbe15(0x2dd)][_0x4bbe15(0x3e8)](_0x1e7a3b);if(_0x2db9b2)return _0x2db9b2[_0x4bbe15(0x286)](_0x3b449c);}[_0x35fe9a(0x1a1)](_0x5eae4d){const _0x2fe374=_0x35fe9a,_0x3b0270=this[_0x2fe374(0x2dd)]['get'](_0x5eae4d);_0x3b0270&&(_0x3b0270[_0x2fe374(0x264)](),this['_roomMembers'][_0x2fe374(0x46f)](_0x5eae4d));}['dispose'](){const _0x28a8da=_0x35fe9a;this['_roomMembers'][_0x28a8da(0x2b2)](_0x20d849=>_0x20d849[_0x28a8da(0x264)]()),this[_0x28a8da(0x2dd)][_0x28a8da(0x3e9)]();}};ee=un([Wt(0x0,_0x1ffae8),Wt(0x1,_0x5b3e40(_0x570ca3))],ee);class dn extends _0x2b2023{constructor(){super(...arguments),l(this,'_members',new Map());}['dispose'](){const _0x5de29f=_0x35fe9a;this['_members'][_0x5de29f(0x3e9)]();}['updateMember'](_0x54740d){const _0x3c537a=_0x35fe9a;this[_0x3c537a(0x191)]['set'](_0x54740d['memberID'],_0x54740d);}[_0x35fe9a(0x387)](_0x5d1a8b){const _0x3c7b15=_0x35fe9a;this[_0x3c7b15(0x191)][_0x3c7b15(0x46f)](_0x5d1a8b);}[_0x35fe9a(0x286)](_0x1f65dc){const _0x1bd5b3=_0x35fe9a;return this['_members'][_0x1bd5b3(0x3e8)](_0x1f65dc);}}function fn(_0x159537){const _0x2d5568=_0x35fe9a;var _0x2b30b4,_0x23b684,_0x2f8215,_0x3b5491;const _0x2dc638=_0x159537[_0x2d5568(0x2c5)],_0x86188a=JSON[_0x2d5568(0x24c)](_0x2dc638);switch(_0x86188a[_0x2d5568(0x34f)]){case I[_0x2d5568(0x43e)]:case I[_0x2d5568(0x3e0)]:{const _0x2ebcbe=_0x86188a[_0x2d5568(0x2c2)];return{..._0x86188a,'data':_0x2ebcbe,'cmd':_0x86188a[_0x2d5568(0x34f)]};}case I[_0x2d5568(0x308)]:{const _0x12d16e=_0x86188a[_0x2d5568(0x1c0)];return{..._0x86188a,'data':_0x12d16e,'cmd':_0x86188a[_0x2d5568(0x34f)]};}case I[_0x2d5568(0x429)]:{const _0x5935b4=_0x86188a['collaMsg'];switch(_0x5935b4['eventID']){case _0x20b5fc['PERMISSION_REJ']:return{..._0x86188a,'data':{..._0x5935b4,'data':(_0x2b30b4=_0x5935b4[_0x2d5568(0x3f1)])==null?void 0x0:_0x2b30b4['cs']},'cmd':_0x86188a[_0x2d5568(0x34f)]};case _0x20b5fc['CHANGESET_ACK']:return{..._0x86188a,'data':{..._0x5935b4,'data':(_0x23b684=_0x5935b4[_0x2d5568(0x37f)])==null?void 0x0:_0x23b684['cs']},'cmd':_0x86188a['cmd']};case _0x20b5fc[_0x2d5568(0x178)]:return{..._0x86188a,'data':{..._0x5935b4,'data':(_0x2f8215=_0x5935b4[_0x2d5568(0x280)])==null?void 0x0:_0x2f8215['cs']},'cmd':_0x86188a['cmd']};case _0x20b5fc[_0x2d5568(0x205)]:return{..._0x86188a,'data':{..._0x5935b4,'data':(_0x3b5491=_0x5935b4[_0x2d5568(0x3a3)])==null?void 0x0:_0x3b5491['cs']},'cmd':_0x86188a[_0x2d5568(0x34f)]};case _0x20b5fc[_0x2d5568(0x41f)]:return{..._0x86188a,'data':{..._0x5935b4,'data':_0x5935b4[_0x2d5568(0x239)]},'cmd':_0x86188a[_0x2d5568(0x34f)]};case _0x20b5fc['USERS_ENTER']:return{..._0x86188a,'data':{..._0x5935b4,'data':_0x5935b4[_0x2d5568(0x43a)]},'cmd':_0x86188a[_0x2d5568(0x34f)]};case _0x20b5fc[_0x2d5568(0x42e)]:return{..._0x86188a,'data':{..._0x5935b4,'data':_0x5935b4[_0x2d5568(0x3f7)]},'cmd':_0x86188a[_0x2d5568(0x34f)]};case _0x20b5fc[_0x2d5568(0x1f5)]:return{..._0x86188a,'data':{..._0x5935b4,'data':_0x5935b4[_0x2d5568(0x230)]},'cmd':_0x86188a['cmd']};case _0x20b5fc['LIVESHARE_FETCH_OPERATIONS']:case _0x20b5fc[_0x2d5568(0x47b)]:return{..._0x86188a,'data':{..._0x5935b4,'data':_0x5935b4[_0x2d5568(0x304)]},'cmd':_0x86188a['cmd']};case _0x20b5fc['LIVESHARE_TERMINATE']:return{..._0x86188a,'data':{..._0x5935b4,'data':_0x5935b4[_0x2d5568(0x230)]},'cmd':_0x86188a[_0x2d5568(0x34f)]};case _0x20b5fc['MSG_FOR_ERROR']:return{..._0x86188a,'data':_0x5935b4,'cmd':_0x86188a[_0x2d5568(0x34f)]};default:return _0x86188a;}}default:return _0x86188a;}}function gn(_0x4dc980){const _0x35baa0=_0x35fe9a;switch(_0x4dc980[_0x35baa0(0x34f)]){case I['HEARTBEAT']:case I['HELLO']:return JSON[_0x35baa0(0x2ea)]({'cmd':_0x4dc980[_0x35baa0(0x34f)],'routeKey':_0x4dc980[_0x35baa0(0x3f3)]});case I[_0x35baa0(0x2a0)]:{let _0x154394;switch(_0x4dc980[_0x35baa0(0x2c5)]['eventID']){case _0x20b5fc[_0x35baa0(0x41f)]:{_0x154394={'eventID':_0x20b5fc[_0x35baa0(0x41f)],'updateCursorEvent':_0x4dc980[_0x35baa0(0x2c5)][_0x35baa0(0x2c5)]};break;}case _0x20b5fc['USERS_LEAVE']:{_0x154394={'eventID':_0x20b5fc['USERS_LEAVE'],'leaveEvent':_0x4dc980[_0x35baa0(0x2c5)][_0x35baa0(0x2c5)]};break;}case _0x20b5fc['USERS_ENTER']:{_0x154394={'eventID':_0x20b5fc['USERS_ENTER'],'joinEvent':_0x4dc980['data']['data']};break;}case _0x20b5fc[_0x35baa0(0x1f5)]:{_0x154394={'eventID':_0x20b5fc[_0x35baa0(0x1f5)],'liveShareNewHost':_0x4dc980['data'][_0x35baa0(0x2c5)]};break;}case _0x20b5fc[_0x35baa0(0x47b)]:{_0x154394={'eventID':_0x20b5fc[_0x35baa0(0x47b)],'liveShareOperation':_0x4dc980['data'][_0x35baa0(0x2c5)]};break;}case _0x20b5fc[_0x35baa0(0x1ed)]:{_0x154394={'eventID':_0x20b5fc['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x4dc980[_0x35baa0(0x2c5)][_0x35baa0(0x2c5)]};break;}case _0x20b5fc[_0x35baa0(0x3ec)]:{_0x154394={'eventID':_0x20b5fc['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x4dc980[_0x35baa0(0x2c5)]['data']};break;}case _0x20b5fc['LIVESHARE_FETCH_OPERATIONS']:{_0x154394={'eventID':_0x20b5fc['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x154394={'eventID':_0x4dc980['data'][_0x35baa0(0x1b6)]};}return JSON[_0x35baa0(0x2ea)]({'cmd':_0x4dc980[_0x35baa0(0x34f)],'routeKey':_0x4dc980[_0x35baa0(0x3f3)],'collaMsg':_0x154394});}case I[_0x35baa0(0x308)]:return JSON['stringify']({'cmd':_0x4dc980[_0x35baa0(0x34f)],'routeKey':_0x4dc980[_0x35baa0(0x3f3)],'joinReq':_0x4dc980[_0x35baa0(0x2c5)]});case I['LEAVE']:return JSON[_0x35baa0(0x2ea)]({'cmd':_0x4dc980[_0x35baa0(0x34f)],'routeKey':_0x4dc980[_0x35baa0(0x3f3)],'leaveReq':_0x4dc980[_0x35baa0(0x2c5)]});default:throw new Error(_0x35baa0(0x267));}}var mn=Object[_0x35fe9a(0x448)],Sn=Object[_0x35fe9a(0x1db)],vn=(_0x5c5774,_0xd9c7b7,_0x2acca8,_0x428e70)=>{const _0x55ca91=_0x35fe9a;for(var _0x52ad0c=_0x428e70>0x1?void 0x0:_0x428e70?Sn(_0xd9c7b7,_0x2acca8):_0xd9c7b7,_0x55e912=_0x5c5774[_0x55ca91(0x443)]-0x1,_0x51de58;_0x55e912>=0x0;_0x55e912--)(_0x51de58=_0x5c5774[_0x55e912])&&(_0x52ad0c=(_0x428e70?_0x51de58(_0xd9c7b7,_0x2acca8,_0x52ad0c):_0x51de58(_0x52ad0c))||_0x52ad0c);return _0x428e70&&_0x52ad0c&&mn(_0xd9c7b7,_0x2acca8,_0x52ad0c),_0x52ad0c;},me=(_0x57ce81,_0x55ad1a)=>(_0x1c6daa,_0x6bd26e)=>_0x55ad1a(_0x1c6daa,_0x6bd26e,_0x57ce81);const bs=_0x83cf67(_0x35fe9a(0x20d));function pn(_0x1a744e,_0x300928,_0x719179){const _0x2ce366=_0x35fe9a;return _0x1a744e+'/'+_0x300928+_0x2ce366(0x220)+_0x719179+_0x2ce366(0x3c1);}let _t=class{constructor(_0x5e872f,_0x5ad8ea,_0x417e2d,_0x4c3410,_0x2f4c0a){const _0x3f9404=_0x35fe9a;this[_0x3f9404(0x32c)]=_0x5e872f,this[_0x3f9404(0x20b)]=_0x5ad8ea,this[_0x3f9404(0x449)]=_0x417e2d,this[_0x3f9404(0x248)]=_0x4c3410,this[_0x3f9404(0x37e)]=_0x2f4c0a;}[_0x35fe9a(0x46a)](_0xeb53d9){const _0x4475cf=_0x35fe9a,_0x137f79=this[_0x4475cf(0x20b)][_0x4475cf(0x46a)](_0xeb53d9);if(!_0x137f79)throw new Error(_0x4475cf(0x2eb));const _0x4f409f=new _0x282665(),_0x5ae02c=new _0x3da7e9();_0x4f409f[_0x4475cf(0x1f1)](_0x5b60bf(_0x137f79['close$'][_0x4475cf(0x40e)](_0x50646e=>_0x5ae02c['next'](_0x50646e)))),_0x4f409f['add'](_0x5b60bf(()=>_0x5ae02c[_0x4475cf(0x2e1)]()));const _0x3ef823=new _0x3da7e9();_0x4f409f['add'](_0x5b60bf(_0x137f79['error$']['subscribe'](_0x569e5b=>_0x3ef823[_0x4475cf(0x3be)](_0x569e5b)))),_0x4f409f[_0x4475cf(0x1f1)](_0x5b60bf(()=>_0x3ef823[_0x4475cf(0x2e1)]()));const _0x24381c=new _0x3da7e9();_0x4f409f['add'](_0x5b60bf(_0x137f79['message$'][_0x4475cf(0x40e)](_0x85cea3=>{const _0x43bbd3=fn(_0x85cea3);_0x24381c['next'](_0x43bbd3);}))),_0x4f409f[_0x4475cf(0x1f1)](_0x5b60bf(()=>_0x24381c[_0x4475cf(0x2e1)]()));const _0x286cd4=()=>{const _0x46edaa=_0x4475cf;_0x3ef823[_0x46edaa(0x3be)](new Event('connection\x20error')),_0x5ae02c[_0x46edaa(0x3be)](new CloseEvent(_0x46edaa(0x36d))),_0xf72b0d['close']();},_0xf72b0d={'memberID':'','close$':_0x5ae02c[_0x4475cf(0x36f)](),'error$':_0x3ef823[_0x4475cf(0x36f)](),'open$':_0x137f79[_0x4475cf(0x40a)],'message$':_0x24381c['asObservable'](),'send':_0x46f75b=>{const _0x476ba8=_0x4475cf;if(_0x46f75b[_0x476ba8(0x34f)]===I[_0x476ba8(0x2a0)]){if(_0x46f75b[_0x476ba8(0x2c5)][_0x476ba8(0x1b6)]===_0x20b5fc[_0x476ba8(0x1b1)]){this['_submitChangeset'](_0xf72b0d,_0x46f75b[_0x476ba8(0x2c5)])[_0x476ba8(0x18f)](_0x1ecf90=>{const _0x1ac14c=_0x476ba8;this[_0x1ac14c(0x248)][_0x1ac14c(0x185)](_0x1ecf90),_0x286cd4();});return;}if(_0x46f75b['data']['eventID']===_0x20b5fc[_0x476ba8(0x20a)]){const _0x5a870a=_0x46f75b[_0x476ba8(0x2c5)];this[_0x476ba8(0x257)](_0x5a870a)['then'](_0x13446a=>{const _0x4295d0=_0x476ba8;_0x24381c[_0x4295d0(0x3be)]({'cmd':I[_0x4295d0(0x429)],'code':Nt['OK'],'routeKey':_0x5a870a['data'][_0x4295d0(0x19e)],'routeType':'','data':{'eventID':_0x20b5fc['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x13446a}}});})[_0x476ba8(0x18f)](_0x5dbc1c=>{const _0x29ea6e=_0x476ba8;this[_0x29ea6e(0x248)]['error'](_0x5dbc1c),_0x286cd4();});return;}}_0x137f79['send'](gn(_0x46f75b));},'close':()=>{_0x137f79['close'](),_0x4f409f['dispose']();}};return _0xf72b0d;}async[_0x35fe9a(0x2f8)](_0x26a89d,_0x257ecf){const _0x41ac2c=_0x35fe9a;var _0x1800e1;const {unitType:_0x33266d,unitID:_0xa3e3c4,changeset:_0x45c28d}=_0x257ecf[_0x41ac2c(0x2c5)],_0x184ded={'unitID':_0xa3e3c4,'memberID':_0x26a89d[_0x41ac2c(0x311)],'type':_0x33266d,'changeset':_0x45ae1b(_0x45c28d)},_0x3bf383=pn((_0x1800e1=this[_0x41ac2c(0x449)][_0x41ac2c(0x358)](on))!=null?_0x1800e1:an,_0x33266d,_0xa3e3c4);try{await this[_0x41ac2c(0x32c)]['post'](_0x3bf383,{'body':_0x184ded});}catch(_0x10e9e7){throw this[_0x41ac2c(0x248)][_0x41ac2c(0x185)](_0x41ac2c(0x38d),_0x41ac2c(0x1a5)),_0x10e9e7;}}async[_0x35fe9a(0x257)](_0x15cc80){const _0x4aa42f=_0x35fe9a,{unitID:_0x43f2d8,from:_0x3b50fb,to:_0x5da3d6,unitType:_0x41405c}=_0x15cc80[_0x4aa42f(0x2c5)];return(await this[_0x4aa42f(0x37e)][_0x4aa42f(0x3c5)]({'metadata':void 0x0},{'unitID':_0x43f2d8,'type':_0x41405c,'from':_0x3b50fb,'to':_0x5da3d6}))['changesets'];}};_t=vn([me(0x0,_0x5b3e40(_0x588bfd)),me(0x1,_0x5b3e40(_0x5509e6)),me(0x2,_0x4e019d),me(0x3,_0x294e85),me(0x4,_0x1f3aa6)],_t);var In=Object[_0x35fe9a(0x448)],En=Object[_0x35fe9a(0x1db)],Rs=(_0x38c7f9,_0x514e07,_0xf4039a,_0x41ec8a)=>{const _0x27fa50=_0x35fe9a;for(var _0x190325=_0x41ec8a>0x1?void 0x0:_0x41ec8a?En(_0x514e07,_0xf4039a):_0x514e07,_0x474f5a=_0x38c7f9[_0x27fa50(0x443)]-0x1,_0x158df0;_0x474f5a>=0x0;_0x474f5a--)(_0x158df0=_0x38c7f9[_0x474f5a])&&(_0x190325=(_0x41ec8a?_0x158df0(_0x514e07,_0xf4039a,_0x190325):_0x158df0(_0x190325))||_0x190325);return _0x41ec8a&&_0x190325&&In(_0x514e07,_0xf4039a,_0x190325),_0x190325;},M=(_0x5cd5b9,_0x2dacfb)=>(_0x53ddd9,_0x41fa3d)=>_0x2dacfb(_0x53ddd9,_0x41fa3d,_0x5cd5b9),_e=(_0x1f46c5=>(_0x1f46c5[_0x1f46c5[_0x35fe9a(0x3ab)]=0x0]=_0x35fe9a(0x3ab),_0x1f46c5[_0x1f46c5[_0x35fe9a(0x439)]=0x1]=_0x35fe9a(0x439),_0x1f46c5[_0x1f46c5[_0x35fe9a(0x2e8)]=0x2]=_0x35fe9a(0x2e8),_0x1f46c5[_0x1f46c5[_0x35fe9a(0x3fc)]=0x3]=_0x35fe9a(0x3fc),_0x1f46c5))(_e||{});let ut=class extends _0x2f203c{constructor(_0x130c5d,_0x5d6a15,_0x5d09f6,_0x14f973,_0x588560,_0x14e065,_0x22e032,_0x5e1111){const _0x502b5d=_0x35fe9a;super(),l(this,_0x502b5d(0x16c),new _0x316dfa(0x0)),l(this,'sessionStatus$',this[_0x502b5d(0x16c)][_0x502b5d(0x36f)]()),l(this,_0x502b5d(0x451),new _0x3da7e9()),l(this,_0x502b5d(0x3c4),this[_0x502b5d(0x451)][_0x502b5d(0x36f)]()),l(this,_0x502b5d(0x370)),l(this,'_socketMessageSubscription'),l(this,_0x502b5d(0x22e)),(this['_unitID']=_0x130c5d,this['_logService']=_0x5d09f6,this['_beforeCloseService']=_0x14f973,this[_0x502b5d(0x3a2)]=_0x588560,this['_configService']=_0x14e065,this[_0x502b5d(0x480)]=_0x22e032,this[_0x502b5d(0x367)]=_0x5e1111,_0x5d6a15[_0x502b5d(0x332)](_0x479f07(this[_0x502b5d(0x3b0)]))['subscribe'](_0x38a00f=>{const _0x1fd1f7=_0x502b5d;var _0x29e819;typeof _0x38a00f>'u'||(this[_0x1fd1f7(0x370)]=_0x38a00f,_0x38a00f?(this[_0x1fd1f7(0x307)](_0x38a00f),this[_0x1fd1f7(0x251)]=this[_0x1fd1f7(0x370)]['message$'][_0x1fd1f7(0x40e)](_0x316d4f=>{const _0x36bd35=_0x1fd1f7;_0x316d4f['routeKey']===this[_0x36bd35(0x397)]&&this[_0x36bd35(0x2ca)](_0x316d4f);})):(this[_0x1fd1f7(0x16c)][_0x1fd1f7(0x3be)](0x2),(_0x29e819=this[_0x1fd1f7(0x251)])==null||_0x29e819[_0x1fd1f7(0x3e6)](),this[_0x1fd1f7(0x251)]=null));}),this['disposeWithMe'](this[_0x502b5d(0x30f)][_0x502b5d(0x3a0)](()=>{const _0x391006=_0x502b5d;var _0x20cae7;(_0x20cae7=this['_socket'])==null||_0x20cae7[_0x391006(0x36c)]({'cmd':I[_0x391006(0x466)],'data':{'roomID':this[_0x391006(0x397)]}});})));}get['sessionStatus'](){const _0x12be27=_0x35fe9a;return this['_sessionStatus$'][_0x12be27(0x293)]();}[_0x35fe9a(0x3e4)](){var _0x499792,_0xa5c9a8;return(_0xa5c9a8=(_0x499792=this['_socket'])==null?void 0x0:_0x499792['memberID'])!=null?_0xa5c9a8:null;}['dispose'](){const _0x121571=_0x35fe9a;super['dispose'](),this[_0x121571(0x3b0)]['next'](),this['dispose$'][_0x121571(0x2e1)]();}[_0x35fe9a(0x2ca)](_0x28dc7b){const _0x5a7de7=_0x35fe9a;_0x28dc7b[_0x5a7de7(0x34f)]===I[_0x5a7de7(0x308)]?this[_0x5a7de7(0x1e3)](_0x28dc7b):_0x28dc7b[_0x5a7de7(0x34f)]===I[_0x5a7de7(0x429)]&&this[_0x5a7de7(0x2ed)](_0x28dc7b);}[_0x35fe9a(0x307)](_0x5da316){const _0x1feaad=_0x35fe9a;this[_0x1feaad(0x16c)][_0x1feaad(0x3be)](0x1),_0x5da316[_0x1feaad(0x36c)]({'cmd':I[_0x1feaad(0x308)],'routeKey':this[_0x1feaad(0x397)],'routeType':'','data':{'rooms':[{'roomID':this[_0x1feaad(0x397)]}]}});}[_0x35fe9a(0x1e3)](_0x52ff3e){const _0xa162b0=_0x35fe9a;var _0x3e4b70;if(_0x52ff3e[_0xa162b0(0x19d)]===Nt[_0xa162b0(0x27b)]){this[_0xa162b0(0x3a2)][_0xa162b0(0x18c)]({'type':_0x1b5516[_0xa162b0(0x353)],'content':this['_localeService']['t']('session.room-full')}),this['_sessionStatus$'][_0xa162b0(0x3be)](0x2);return;}this[_0xa162b0(0x16c)][_0xa162b0(0x3be)](0x3);const _0xe204a2=(_0x3e4b70=_0x52ff3e[_0xa162b0(0x2c5)][_0xa162b0(0x275)][this['_unitID']])==null?void 0x0:_0x3e4b70['members'];_0xe204a2&&_0xe204a2['forEach'](_0x3f8344=>this[_0xa162b0(0x367)][_0xa162b0(0x37c)](this[_0xa162b0(0x397)],_0x3f8344));}[_0x35fe9a(0x2ed)](_0x13e344){const _0x286d70=_0x35fe9a;try{const _0xd2c3e2=_0x13e344[_0x286d70(0x2c5)];switch(_0xd2c3e2['eventID']){case _0x20b5fc[_0x286d70(0x16e)]:this[_0x286d70(0x3e3)](_0xd2c3e2),this[_0x286d70(0x451)][_0x286d70(0x3be)](_0xd2c3e2);break;case _0x20b5fc[_0x286d70(0x42e)]:this[_0x286d70(0x436)](_0xd2c3e2),this[_0x286d70(0x451)][_0x286d70(0x3be)](_0xd2c3e2);break;case _0x20b5fc[_0x286d70(0x315)]:this[_0x286d70(0x2d4)](),this[_0x286d70(0x451)][_0x286d70(0x3be)](_0xd2c3e2);break;case _0x20b5fc[_0x286d70(0x3d8)]:this[_0x286d70(0x248)][_0x286d70(0x185)](_0x286d70(0x29e)+JSON[_0x286d70(0x2ea)](_0xd2c3e2)),this[_0x286d70(0x451)][_0x286d70(0x3be)](_0xd2c3e2);break;default:this[_0x286d70(0x451)][_0x286d70(0x3be)](_0xd2c3e2);}}catch(_0x32295b){this[_0x286d70(0x248)][_0x286d70(0x185)](_0x32295b,_0x13e344);}}['_onUserJoin'](_0x363e0a){const _0x304ba5=_0x35fe9a;this[_0x304ba5(0x367)][_0x304ba5(0x37c)](this[_0x304ba5(0x397)],_0x363e0a[_0x304ba5(0x2c5)]);}[_0x35fe9a(0x436)](_0x4450cd){const _0x191573=_0x35fe9a;this[_0x191573(0x367)]['removeMember'](this[_0x191573(0x397)],_0x4450cd[_0x191573(0x2c5)]['memberID']);}async[_0x35fe9a(0x36c)](_0x277557,_0x326a82){const _0x437fc4=_0x35fe9a;if(this[_0x437fc4(0x1d5)]!==0x3||!this['_socket'])throw new Error(_0x437fc4(0x2c9));try{_0x277557[_0x437fc4(0x1b6)]===_0x20b5fc['NEW_CHANGESETS']&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x437fc4(0x370)][_0x437fc4(0x36c)]({'cmd':I['INGEST'],'routeKey':_0x326a82,'routeType':'','data':_0x277557});}catch(_0x23affc){this['_logService']['error'](_0x23affc);}}[_0x35fe9a(0x18b)](){const _0x56f5d5=_0x35fe9a;var _0x5f6497;this[_0x56f5d5(0x22e)]=window[_0x56f5d5(0x1d7)](()=>{const _0xc4c26a=_0x56f5d5;this[_0xc4c26a(0x22e)]=null,this[_0xc4c26a(0x3a2)][_0xc4c26a(0x18c)]({'type':_0x1b5516[_0xc4c26a(0x33d)],'content':this[_0xc4c26a(0x480)]['t']('session.collaboration-timeout')});},(_0x5f6497=this['_configService']['getConfig'](Is))!=null?_0x5f6497:Es);}[_0x35fe9a(0x2d4)](){const _0x3380a8=_0x35fe9a;this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x3380a8(0x22e)]=null);}};ut=Rs([M(0x2,_0x294e85),M(0x3,_0x551edb),M(0x4,_0x22dc6a),M(0x5,_0x4e019d),M(0x6,_0x5b3e40(_0x210cec)),M(0x7,_0x5b3e40(ee))],ut);function _0x2564(_0xcc8570,_0xc7ce21){const _0x4643dc=_0x4643();return _0x2564=function(_0x25644e,_0x252828){_0x25644e=_0x25644e-0x16c;let _0x26c994=_0x4643dc[_0x25644e];return _0x26c994;},_0x2564(_0xcc8570,_0xc7ce21);}let Re=class extends _0x2b2023{constructor(_0xb71562,_0x513028,_0x2ca4d7,_0x220048,_0xcc5aaf,_0x5d9b09){const _0x587d2b=_0x35fe9a;super(),l(this,_0x587d2b(0x3a5),new _0x316dfa(void 0x0)),l(this,_0x587d2b(0x21e),new Map()),l(this,_0x587d2b(0x186),new _0x316dfa(0x0)),l(this,'status$',this[_0x587d2b(0x186)]['asObservable']()),l(this,'_socketReady',!0x1),l(this,_0x587d2b(0x38a)),l(this,'_timeoutTimer'),l(this,_0x587d2b(0x37b)),l(this,'_retryCount',0x0),(this[_0x587d2b(0x325)]=_0xb71562,this[_0x587d2b(0x480)]=_0x513028,this[_0x587d2b(0x3a2)]=_0x2ca4d7,this[_0x587d2b(0x248)]=_0x220048,this[_0x587d2b(0x449)]=_0xcc5aaf,this[_0x587d2b(0x20c)]=_0x5d9b09);}get[_0x35fe9a(0x370)](){const _0x46f133=_0x35fe9a;return this[_0x46f133(0x3a5)][_0x46f133(0x293)]();}[_0x35fe9a(0x264)](){const _0x24463d=_0x35fe9a;super['dispose'](),this[_0x24463d(0x21e)][_0x24463d(0x2b2)](_0x5add0d=>_0x5add0d[_0x24463d(0x264)]()),this[_0x24463d(0x21e)]['clear'](),this[_0x24463d(0x186)][_0x24463d(0x2e1)]();}async[_0x35fe9a(0x2ef)](_0x476c8e){const _0x3974a6=_0x35fe9a;if(this['_sessions'][_0x3974a6(0x189)](_0x476c8e))return this[_0x3974a6(0x21e)][_0x3974a6(0x3e8)](_0x476c8e);this[_0x3974a6(0x43c)]();const _0x44fb1f=this['_injector'][_0x3974a6(0x26b)](ut,_0x476c8e,this[_0x3974a6(0x3a5)][_0x3974a6(0x36f)]());return this[_0x3974a6(0x21e)]['set'](_0x476c8e,_0x44fb1f),_0x44fb1f;}[_0x35fe9a(0x30d)](){var _0x266e5a;const _0x28d13c=(_0x266e5a=this['_configService']['getConfig'](Ji))!=null?_0x266e5a:zi;return this['_socketService']['createSocket'](_0x28d13c);}['_tryEnsureSocket'](){const _0x3a31a3=_0x35fe9a;try{const _0x5477c3=this[_0x3a31a3(0x30d)]();if(_0x5477c3){const _0x3b9881=_0x5477c3[_0x3a31a3(0x36c)];_0x5477c3['send']=_0x549609=>(this[_0x3a31a3(0x331)](),_0x3b9881[_0x3a31a3(0x22d)](_0x5477c3,[_0x549609])),_0x5477c3[_0x3a31a3(0x43b)][_0x3a31a3(0x40e)](_0x176f56=>this['_onMessage'](_0x5477c3,_0x176f56)),_0x5477c3['error$'][_0x3a31a3(0x332)](_0x403f5b(0x1))[_0x3a31a3(0x40e)](_0x53dbce=>this[_0x3a31a3(0x248)]['error'](_0x3a31a3(0x34a),_0x53dbce)),_0x5477c3[_0x3a31a3(0x40a)][_0x3a31a3(0x332)](_0x403f5b(0x1))['subscribe'](()=>{const _0x25fa9f=_0x3a31a3;this[_0x25fa9f(0x1e7)](_0x5477c3);}),_0x5477c3[_0x3a31a3(0x2ba)][_0x3a31a3(0x332)](_0x403f5b(0x1))['subscribe'](_0x4f4655=>{const _0x22a2e2=_0x3a31a3;this[_0x22a2e2(0x248)]['debug']('[CollaborationSessionService]',_0x22a2e2(0x2f0),_0x4f4655),this[_0x22a2e2(0x1aa)]();});}}catch(_0x2532d0){this[_0x3a31a3(0x248)][_0x3a31a3(0x185)](_0x2532d0),this[_0x3a31a3(0x1aa)]();}}['_onConnectionOpen'](_0x39ae89){const _0x37af0b=_0x35fe9a;this['_logService'][_0x37af0b(0x28f)]('[CollaborationSessionService]',_0x37af0b(0x469)),_0x39ae89[_0x37af0b(0x36c)]({'cmd':I[_0x37af0b(0x3e0)]}),this['_rescheduleHeartbeatEvent']();}[_0x35fe9a(0x1aa)](){const _0x32d039=_0x35fe9a;var _0x37891f;this[_0x32d039(0x186)][_0x32d039(0x3be)](0x2),this[_0x32d039(0x3a5)]['next'](null),this[_0x32d039(0x3f9)](),this[_0x32d039(0x274)](),this[_0x32d039(0x23f)]=!0x1,this[_0x32d039(0x2a3)]<((_0x37891f=this['_configService'][_0x32d039(0x358)](tn))!=null?_0x37891f:sn)?(this[_0x32d039(0x1fb)](this[_0x32d039(0x2a3)]),this['_retryCount']+=0x1):this['_messageService'][_0x32d039(0x18c)]({'type':_0x1b5516[_0x32d039(0x33d)],'content':this['_localeService']['t'](_0x32d039(0x3a8))});}[_0x35fe9a(0x1fb)](_0x1a5f10){const _0x1ce5d1=_0x35fe9a;var _0x3f76fe;const _0x11e44b=((_0x3f76fe=this[_0x1ce5d1(0x449)][_0x1ce5d1(0x358)](Qi))!=null?_0x3f76fe:en)*0x2**_0x1a5f10;this[_0x1ce5d1(0x3a2)][_0x1ce5d1(0x18c)]({'type':_0x1b5516['Warning'],'content':this['_localeService']['t'](_0x1ce5d1(0x412))}),this[_0x1ce5d1(0x37b)]=setTimeout(()=>{const _0x26650c=_0x1ce5d1;this[_0x26650c(0x43c)](),clearTimeout(this['_retryConnectingTimer']),this[_0x26650c(0x37b)]=null;},_0x11e44b);}[_0x35fe9a(0x331)](){const _0x368d49=_0x35fe9a;var _0x1b98c4;this[_0x368d49(0x274)](),this[_0x368d49(0x38a)]=setTimeout(()=>this[_0x368d49(0x476)](),(_0x1b98c4=this['_configService'][_0x368d49(0x358)](Zi))!=null?_0x1b98c4:qi);}[_0x35fe9a(0x476)](){const _0x58103b=_0x35fe9a;this['_socket'][_0x58103b(0x36c)]({'cmd':I[_0x58103b(0x43e)]}),this[_0x58103b(0x379)]();}[_0x35fe9a(0x379)](){const _0x514f5a=_0x35fe9a;var _0x22448e;this[_0x514f5a(0x223)]=setTimeout(()=>this[_0x514f5a(0x1aa)](),(_0x22448e=this[_0x514f5a(0x449)][_0x514f5a(0x358)](Is))!=null?_0x22448e:Es);}['_onMessage'](_0x21ae3f,_0x2d34bd){const _0x395d58=_0x35fe9a,{cmd:_0x480dd3}=_0x2d34bd;_0x480dd3===I['HELLO']&&!this[_0x395d58(0x23f)]&&(_0x21ae3f[_0x395d58(0x311)]=_0x2d34bd['data'][_0x395d58(0x311)],this[_0x395d58(0x3a5)][_0x395d58(0x3be)](_0x21ae3f),this[_0x395d58(0x186)]['next'](0x3),this[_0x395d58(0x23f)]=!0x0),_0x480dd3===I[_0x395d58(0x43e)]&&this[_0x395d58(0x3f9)](),this[_0x395d58(0x331)]();}[_0x35fe9a(0x274)](){const _0x3bd114=_0x35fe9a;this[_0x3bd114(0x38a)]!=null&&(clearTimeout(this[_0x3bd114(0x38a)]),this[_0x3bd114(0x38a)]=null);}[_0x35fe9a(0x3f9)](){const _0x236046=_0x35fe9a;this[_0x236046(0x223)]!=null&&(clearTimeout(this[_0x236046(0x223)]),this[_0x236046(0x223)]=null);}};Re=Rs([M(0x0,_0x5b3e40(_0x331eca)),M(0x1,_0x5b3e40(_0x210cec)),M(0x2,_0x22dc6a),M(0x3,_0x294e85),M(0x4,_0x4e019d),M(0x5,bs)],Re);var Cn=Object[_0x35fe9a(0x448)],bn=Object[_0x35fe9a(0x1db)],Rn=(_0x59aeef,_0x47042d,_0x5eb851,_0x198d0e)=>{const _0x2f8cec=_0x35fe9a;for(var _0x1a9087=_0x198d0e>0x1?void 0x0:_0x198d0e?bn(_0x47042d,_0x5eb851):_0x47042d,_0x25b95f=_0x59aeef[_0x2f8cec(0x443)]-0x1,_0x402bfc;_0x25b95f>=0x0;_0x25b95f--)(_0x402bfc=_0x59aeef[_0x25b95f])&&(_0x1a9087=(_0x198d0e?_0x402bfc(_0x47042d,_0x5eb851,_0x1a9087):_0x402bfc(_0x1a9087))||_0x1a9087);return _0x198d0e&&_0x1a9087&&Cn(_0x47042d,_0x5eb851,_0x1a9087),_0x1a9087;},Se=(_0x47fb72,_0x124b5d)=>(_0x2c9f0c,_0x47825d)=>_0x124b5d(_0x2c9f0c,_0x47825d,_0x47fb72);let D=class extends _0x2b2023{constructor(_0x189e88,_0x150fb3,_0x36c0cb,_0x2f2137,_0x40c6dd){const _0x20d432=_0x35fe9a;super(),l(this,'_cachedData',new Map()),l(this,_0x20d432(0x1b4),new Map()),l(this,_0x20d432(0x2d7),!0x1),(this[_0x20d432(0x449)]=_0x189e88,this[_0x20d432(0x1f9)]=_0x150fb3,this['_beforeCloseService']=_0x36c0cb,this['_localeService']=_0x2f2137,this['_revisionService']=_0x40c6dd,this['_setupBeforeClosingHandler']());}[_0x35fe9a(0x3a1)](){const _0x40cf79=_0x35fe9a;this[_0x40cf79(0x2d7)]=!0x0;}[_0x35fe9a(0x1c4)](){this['_disabled']=!0x1;}[_0x35fe9a(0x264)](){const _0x4b5f6b=_0x35fe9a;this[_0x4b5f6b(0x259)]()[_0x4b5f6b(0x375)](()=>super[_0x4b5f6b(0x264)]());}async[_0x35fe9a(0x299)](_0x1358dd){const _0x516859=_0x35fe9a;return this['_disabled']?null:this[_0x516859(0x1f9)]['getItem'](Gt(_0x1358dd));}async[_0x35fe9a(0x1f8)](_0x70b31f,_0xdc6612){const _0x52df53=_0x35fe9a;return!!this[_0x52df53(0x1f9)][_0x52df53(0x444)](_0x70b31f,_0xdc6612);}['updateOfflineData'](_0x1fe20c,_0x2b709e,_0x4f9f76,_0x719d6b){const _0x237906=_0x35fe9a,_0x1e7121=this[_0x237906(0x398)][_0x237906(0x1ae)](_0x1fe20c);this[_0x237906(0x22c)][_0x237906(0x445)](_0x1fe20c,{'unitID':_0x1fe20c,'type':_0x2b709e,'awaitingChangeset':_0x4f9f76,'mutations':_0x719d6b,'rev':_0x1e7121}),this['_saveTaskMap'][_0x237906(0x189)](_0x1fe20c)||this[_0x237906(0x3bb)](_0x1fe20c);}[_0x35fe9a(0x3bb)](_0x41f399){const _0x6b78ae=_0x35fe9a,_0x11c688=this[_0x6b78ae(0x19f)]();_0x11c688===0x0?this[_0x6b78ae(0x3ea)](_0x41f399):this[_0x6b78ae(0x1b4)]['set'](_0x41f399,setTimeout(()=>this[_0x6b78ae(0x3ea)](_0x41f399),_0x11c688));}[_0x35fe9a(0x19f)](){const _0xbceae7=_0x35fe9a;var _0x3e72d0;return(_0x3e72d0=this[_0xbceae7(0x449)]['getConfig'](nn))!=null?_0x3e72d0:rn;}['_saveCache'](_0x6474c){const _0x2cd054=_0x35fe9a,_0x5e3bac=this[_0x2cd054(0x1b4)][_0x2cd054(0x3e8)](_0x6474c);return _0x5e3bac!==void 0x0&&window[_0x2cd054(0x197)](_0x5e3bac),this[_0x2cd054(0x1f9)][_0x2cd054(0x444)](Gt(_0x6474c),this[_0x2cd054(0x22c)][_0x2cd054(0x3e8)](_0x6474c))[_0x2cd054(0x375)](()=>this['_saveTaskMap'][_0x2cd054(0x46f)](_0x6474c));}async[_0x35fe9a(0x259)](){const _0xd02bc=_0x35fe9a,_0x394601=[];this['_saveTaskMap'][_0xd02bc(0x2b2)]((_0x294234,_0x56b3cf)=>{const _0x2cc3e6=_0xd02bc;window[_0x2cc3e6(0x197)](_0x294234),_0x394601['push'](this['_saveCache'](_0x56b3cf)['then'](()=>{const _0x157c01=_0x2cc3e6;this[_0x157c01(0x1b4)][_0x157c01(0x46f)](_0x56b3cf);}));}),await Promise['all'](_0x394601);}['_setupBeforeClosingHandler'](){const _0x113cb5=_0x35fe9a;this['disposeWithMe'](this['_beforeCloseService'][_0x113cb5(0x16d)](()=>{const _0x25dc41=_0x113cb5;if(this[_0x25dc41(0x1b4)][_0x25dc41(0x2a8)])return this['_localeService']['t'](_0x25dc41(0x2b7));}));}};D=Rn([Se(0x0,_0x4e019d),Se(0x1,_0x42b234),Se(0x2,_0x551edb),Se(0x3,_0x5b3e40(_0x210cec)),Se(0x4,_0x5b3e40(_0x53eb10))],D);function Gt(_0x32cc6e){const _0x54ff89=_0x35fe9a;return _0x54ff89(0x1b7)+_0x32cc6e;}const Xe=_0x83cf67(_0x35fe9a(0x3d4));var Ts=(_0x14a2e6=>(_0x14a2e6[_0x14a2e6['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x35fe9a(0x47c),_0x14a2e6[_0x14a2e6[_0x35fe9a(0x416)]=0x1]=_0x35fe9a(0x416),_0x14a2e6))(Ts||{});const Yt=0x7530,Kt=_0x35fe9a(0x20e);class Tn extends _0x2b2023{constructor(){const _0x3bafa3=_0x35fe9a;super(),l(this,_0x3bafa3(0x23d),_0x295a4b['generateRandomId']()),l(this,'_selfUnitIDs',new Set()),l(this,_0x3bafa3(0x1c5),new Map()),l(this,_0x3bafa3(0x3cf),null),l(this,_0x3bafa3(0x41a),new Map()),l(this,_0x3bafa3(0x39f),new Map()),this[_0x3bafa3(0x31f)]();}[_0x35fe9a(0x264)](){const _0x581520=_0x35fe9a;super[_0x581520(0x264)](),this[_0x581520(0x41a)][_0x581520(0x2b2)]((_0x5c8919,_0x4db45b)=>this[_0x581520(0x418)](_0x4db45b)),this[_0x581520(0x3cf)]&&window[_0x581520(0x47f)](this[_0x581520(0x3cf)]);}[_0x35fe9a(0x1b0)](_0x5f1bea){const _0x58d48b=_0x35fe9a;return this[_0x58d48b(0x2ee)](_0x5f1bea)[_0x58d48b(0x332)](_0x199d88());}['editingUnit'](_0x83695c){const _0x2b1d34=_0x35fe9a;this[_0x2b1d34(0x390)]['size']===0x0&&this[_0x2b1d34(0x3c8)](),this[_0x2b1d34(0x390)][_0x2b1d34(0x1f1)](_0x83695c),this[_0x2b1d34(0x43f)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x83695c],'isForwarded':!0x1});}['disposeUnit'](_0x28435a){const _0x7f01f0=_0x35fe9a;this[_0x7f01f0(0x390)][_0x7f01f0(0x46f)](_0x28435a),this[_0x7f01f0(0x390)][_0x7f01f0(0x2a8)]===0x0&&this[_0x7f01f0(0x3cf)]&&window[_0x7f01f0(0x47f)](this[_0x7f01f0(0x3cf)]);}[_0x35fe9a(0x31f)](){const _0x467ec7=_0x35fe9a;this[_0x467ec7(0x382)](_0x5b60bf(_0x4ba866(window,_0x467ec7(0x327))[_0x467ec7(0x40e)](_0x10d158=>{const _0x33b02b=_0x467ec7;if(_0x10d158[_0x33b02b(0x263)]!==Kt||!_0x10d158[_0x33b02b(0x357)])return;const _0x5558fe=JSON['parse'](_0x10d158[_0x33b02b(0x357)]);this['_handleEvent'](_0x5558fe);}))),window['addEventListener']('unload',()=>this[_0x467ec7(0x43f)]({'type':0x1,'memberID':this[_0x467ec7(0x23d)],'unitIDs':Array['from'](this[_0x467ec7(0x390)])}));}[_0x35fe9a(0x38b)](_0x11e5c4){const _0xf7d5fb=_0x35fe9a;switch(_0x11e5c4['type']){case 0x0:this[_0xf7d5fb(0x333)](_0x11e5c4);break;case 0x1:this[_0xf7d5fb(0x182)](_0x11e5c4);break;case 0x2:this['_handleHeartbeatEvent'](_0x11e5c4);break;}}[_0x35fe9a(0x333)](_0x1a65a7){const _0x4aae0c=_0x35fe9a,{unitIDs:_0x1d1b74,memberID:_0xc8f1bf,isForwarded:_0x2bd8b5}=_0x1a65a7;_0x1d1b74[_0x4aae0c(0x2b2)](_0x2bd9fc=>{const _0x5a44cb=_0x4aae0c;if(!_0x2bd8b5&&this['_unitOnClients'][_0x5a44cb(0x189)](_0x2bd9fc)&&this['_ensureSubject'](_0x2bd9fc)[_0x5a44cb(0x3be)](0x1),!this[_0x5a44cb(0x1c5)][_0x5a44cb(0x189)](_0x2bd9fc)||!this[_0x5a44cb(0x1c5)][_0x5a44cb(0x3e8)](_0x2bd9fc)[_0x5a44cb(0x189)](_0xc8f1bf)){const _0x166960=this['_unitOnClients']['get'](_0x2bd9fc)||new Set();_0x166960[_0x5a44cb(0x1f1)](_0xc8f1bf),this[_0x5a44cb(0x1c5)][_0x5a44cb(0x445)](_0x2bd9fc,_0x166960),this[_0x5a44cb(0x3e7)](_0xc8f1bf);}}),_0x2bd8b5||this['_send']({'type':0x0,'memberID':this[_0x4aae0c(0x23d)],'unitIDs':[...this[_0x4aae0c(0x390)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x585ed3){const _0x1af648=_0x35fe9a;this[_0x1af648(0x418)](_0x585ed3);const _0x4d3933=window['setTimeout'](()=>{const _0x45fe77=_0x1af648;this[_0x45fe77(0x1c5)][_0x45fe77(0x2b2)](_0x556a70=>{_0x556a70['delete'](_0x585ed3);});},Yt*0x2);this[_0x1af648(0x41a)]['set'](_0x585ed3,_0x4d3933);}[_0x35fe9a(0x418)](_0x21428c){const _0x5108ae=_0x35fe9a;if(this[_0x5108ae(0x41a)][_0x5108ae(0x189)](_0x21428c)){const _0x1ffda=this[_0x5108ae(0x41a)][_0x5108ae(0x3e8)](_0x21428c);_0x1ffda&&window[_0x5108ae(0x197)](_0x1ffda),this[_0x5108ae(0x41a)][_0x5108ae(0x445)](_0x21428c,null);}}['_handleLeaveEvent'](_0x28a97f){const _0x5ae6f9=_0x35fe9a,{memberID:_0x37aef0,unitIDs:_0x421f3b}=_0x28a97f;_0x421f3b[_0x5ae6f9(0x2b2)](_0x2ea7e8=>{const _0x295acb=_0x5ae6f9;var _0x3f5b51;const _0x32dfad=this[_0x295acb(0x1c5)][_0x295acb(0x3e8)](_0x2ea7e8);_0x32dfad&&(_0x32dfad[_0x295acb(0x46f)](_0x37aef0),(_0x3f5b51=this[_0x295acb(0x2ee)](_0x2ea7e8))==null||_0x3f5b51[_0x295acb(0x3be)](_0x32dfad[_0x295acb(0x2a8)]===0x0?0x0:0x1));}),this[_0x5ae6f9(0x418)](_0x37aef0);}[_0x35fe9a(0x241)](_0x3b7b11){const _0xda9e9d=_0x35fe9a;this[_0xda9e9d(0x3e7)](_0x3b7b11[_0xda9e9d(0x311)]);}[_0x35fe9a(0x43f)](_0x263ffb){const _0x2129e1=_0x35fe9a;localStorage['setItem'](Kt,JSON[_0x2129e1(0x2ea)](_0x263ffb));}['_scheduleHeartbeat'](){const _0x3d7488=_0x35fe9a;this[_0x3d7488(0x3cf)]=window[_0x3d7488(0x3db)](()=>{const _0x15c7d4=_0x3d7488;this[_0x15c7d4(0x43f)]({'type':0x2,'memberID':this[_0x15c7d4(0x23d)]});},Yt);}['_ensureSubject'](_0x3bef64){const _0x9502c=_0x35fe9a;return this['_unitStatus']['has'](_0x3bef64)||this[_0x9502c(0x39f)][_0x9502c(0x445)](_0x3bef64,new _0x316dfa(0x0)),this[_0x9502c(0x39f)][_0x9502c(0x3e8)](_0x3bef64);}}var On=Object[_0x35fe9a(0x448)],Dn=Object[_0x35fe9a(0x1db)],wn=(_0x22c8e6,_0x42f2d3,_0x5af258,_0x1251c1)=>{const _0x6938cb=_0x35fe9a;for(var _0x49e923=_0x1251c1>0x1?void 0x0:_0x1251c1?Dn(_0x42f2d3,_0x5af258):_0x42f2d3,_0x15691c=_0x22c8e6[_0x6938cb(0x443)]-0x1,_0x5a9bd4;_0x15691c>=0x0;_0x15691c--)(_0x5a9bd4=_0x22c8e6[_0x15691c])&&(_0x49e923=(_0x1251c1?_0x5a9bd4(_0x42f2d3,_0x5af258,_0x49e923):_0x5a9bd4(_0x49e923))||_0x49e923);return _0x1251c1&&_0x49e923&&On(_0x42f2d3,_0x5af258,_0x49e923),_0x49e923;},Xt=(_0x109240,_0x2f32dd)=>(_0x8baad8,_0x3bbda8)=>_0x2f32dd(_0x8baad8,_0x3bbda8,_0x109240);let Be=class{constructor(_0x19ba89,_0x321a15){const _0x17f14b=_0x35fe9a;this[_0x17f14b(0x325)]=_0x19ba89,this[_0x17f14b(0x348)]=_0x321a15;}[_0x35fe9a(0x42f)](_0x2e5d33){const _0x708cd4=_0x35fe9a;this[_0x708cd4(0x292)](_0x2e5d33),this[_0x708cd4(0x2b9)](_0x2e5d33);}['transformRemoteChangeset'](_0x1e2ada){const _0x28baa6=_0x35fe9a,_0x1d9f0d=this['_injector']['get'](_0x3524fa),{redoCache:_0x3403b}=_0x1d9f0d[_0x28baa6(0x34d)]();if(_0x3403b[_0x28baa6(0x443)]===0x0)return _0x1e2ada;let _0x58a416=_0x295a4b[_0x28baa6(0x1c1)](_0x1e2ada[_0x28baa6(0x3e5)][0x0]);for(let _0x4ee20d=0x0;_0x4ee20d<_0x3403b[_0x28baa6(0x443)];_0x4ee20d++){const _0xf5e860={'id':_0x28baa6(0x212),'params':{..._0x3403b[_0x4ee20d]}},_0x245f49=this['_transformService'][_0x28baa6(0x1ac)](_0x58a416,_0xf5e860,!0x1);if(_0x560f2f(_0x245f49))throw _0x245f49[_0x28baa6(0x185)];_0x58a416=_0x245f49[_0x28baa6(0x226)];}return{..._0x295a4b[_0x28baa6(0x1c1)](_0x1e2ada),'mutations':[_0x58a416]};}[_0x35fe9a(0x292)](_0x1fbead){const _0x4a1ff7=_0x35fe9a,_0x262e8e=this[_0x4a1ff7(0x325)][_0x4a1ff7(0x3e8)](_0x3524fa),{undoCache:_0x21fbde,redoCache:_0x3f16ac}=_0x262e8e[_0x4a1ff7(0x34d)]();if(_0x21fbde['length']===0x0||_0x3f16ac['length']===0x0)return;const _0x438762=[],_0x27e0fb=[];let _0x38494f=_0x295a4b['deepClone'](_0x1fbead['mutations'][0x0]),_0x24a093=_0x295a4b[_0x4a1ff7(0x1c1)](_0x1fbead['mutations'][0x0]);for(let _0x5105c1=_0x21fbde[_0x4a1ff7(0x443)]-0x1;_0x5105c1>=0x0;_0x5105c1--){const _0x5a6e39={'id':_0x4a1ff7(0x212),'params':{..._0x21fbde[_0x5105c1]}},_0x5d8120={'id':_0x4a1ff7(0x212),'params':{..._0x3f16ac[_0x5105c1]}},_0x2fb313=this[_0x4a1ff7(0x348)][_0x4a1ff7(0x1ac)](_0x38494f,_0x5a6e39,!0x1),_0x3cfd39=this['_transformService']['transformMutation'](_0x24a093,_0x5d8120,!0x1);if(_0x560f2f(_0x2fb313))throw _0x2fb313['error'];if(_0x560f2f(_0x3cfd39))throw _0x3cfd39['error'];_0x438762[_0x4a1ff7(0x484)](_0x2fb313[_0x4a1ff7(0x3b5)]['params']),_0x27e0fb[_0x4a1ff7(0x484)](_0x3cfd39['m2Prime'][_0x4a1ff7(0x3b4)]),_0x38494f=_0x2fb313[_0x4a1ff7(0x226)],_0x24a093=_0x3cfd39['m1Prime'];}_0x262e8e[_0x4a1ff7(0x3ef)]({'undoCache':_0x438762,'redoCache':_0x27e0fb});}['_transformPreviousActiveRange'](_0xeece1){const _0x281af4=_0x35fe9a,_0x520874=this[_0x281af4(0x325)][_0x281af4(0x3e8)](_0x3524fa),_0x21f5b4=_0x520874[_0x281af4(0x233)]();if(_0x21f5b4==null)return;const _0x31896e=[{'id':_0x281af4(0x212),'params':{'unitId':_0xeece1[_0x281af4(0x19e)],'actions':null,'textRanges':[_0x21f5b4]}}],_0x144014=this[_0x281af4(0x348)][_0x281af4(0x1ff)](_0xeece1,_0x31896e);if(!_0x44a64c(_0x144014))throw _0x144014[_0x281af4(0x185)];const _0x2b3dd5=_0x144014[_0x281af4(0x3b5)][0x0][_0x281af4(0x3b4)][_0x281af4(0x1ee)];Array[_0x281af4(0x3ff)](_0x2b3dd5)&&_0x2b3dd5[_0x281af4(0x443)]&&_0x520874[_0x281af4(0x26e)](_0x2b3dd5[0x0]);}};Be=wn([Xt(0x0,_0x5b3e40(_0x331eca)),Xt(0x1,_0x56176b)],Be);var Pn=Object[_0x35fe9a(0x448)],Nn=Object['getOwnPropertyDescriptor'],Mn=(_0x39bfa8,_0x4023a5,_0x187b5b,_0x2df810)=>{const _0x9b5f45=_0x35fe9a;for(var _0x4cca8a=_0x2df810>0x1?void 0x0:_0x2df810?Nn(_0x4023a5,_0x187b5b):_0x4023a5,_0xb74583=_0x39bfa8[_0x9b5f45(0x443)]-0x1,_0x7de6f9;_0xb74583>=0x0;_0xb74583--)(_0x7de6f9=_0x39bfa8[_0xb74583])&&(_0x4cca8a=(_0x2df810?_0x7de6f9(_0x4023a5,_0x187b5b,_0x4cca8a):_0x7de6f9(_0x4cca8a))||_0x4cca8a);return _0x2df810&&_0x4cca8a&&Pn(_0x4023a5,_0x187b5b,_0x4cca8a),_0x4cca8a;},Jt=(_0x365909,_0x1ec220)=>(_0x286ed0,_0x277d9b)=>_0x1ec220(_0x286ed0,_0x277d9b,_0x365909);let Ve=class{constructor(_0x485b43,_0x2e15e6){const _0x54a9a1=_0x35fe9a;this['_injector']=_0x485b43,this[_0x54a9a1(0x348)]=_0x2e15e6;}['transformSelections'](_0x373d6f){const _0x5a82dd=_0x35fe9a;var _0x4d148f;const _0x320421=this[_0x5a82dd(0x325)][_0x5a82dd(0x3e8)](_0x200457),_0xcc3be9=(_0x4d148f=_0x320421['getSelections']())!=null?_0x4d148f:[],_0x238c3c=_0xcc3be9==null?void 0x0:_0xcc3be9[_0x5a82dd(0x240)](_0x3dee4a);if(_0x238c3c[_0x5a82dd(0x443)]===0x0)return;const _0x229e0e=[{'id':_0x5a82dd(0x212),'params':{'unitId':_0x373d6f[_0x5a82dd(0x19e)],'actions':null,'textRanges':_0x238c3c}}],_0x15a812=this[_0x5a82dd(0x348)][_0x5a82dd(0x1ff)](_0x373d6f,_0x229e0e);if(!_0x44a64c(_0x15a812))throw _0x15a812[_0x5a82dd(0x185)];const _0x5312eb=_0x15a812[_0x5a82dd(0x3b5)][0x0][_0x5a82dd(0x3b4)][_0x5a82dd(0x1ee)];Array['isArray'](_0x5312eb)&&_0x5312eb[_0x5a82dd(0x443)]&&_0x320421['replaceTextRanges'](_0x5312eb,!0x1);}};Ve=Mn([Jt(0x0,_0x5b3e40(_0x331eca)),Jt(0x1,_0x56176b)],Ve);function Os(_0x2a89eb){let _0x3d0e22='';for(const _0x54e3e8 of _0x2a89eb){const {startOffset:_0x2a61d3,endOffset:_0x568553,isActive:_0x2fce0d}=_0x54e3e8;_0x3d0e22['length']&&(_0x3d0e22+=','),_0x3d0e22+=_0x2a61d3+':'+_0x568553+':'+(_0x2fce0d?'1':'0');}return _0x3d0e22;}function An(_0x2555c3){const _0x385d14=_0x35fe9a,_0x5002c3=_0x2555c3[_0x385d14(0x290)](','),_0x3ac0c1=[];for(const _0x2d7c30 of _0x5002c3){const [_0x113306,_0x127017,_0x4e7f61]=_0x2d7c30['split'](':');_0x3ac0c1[_0x385d14(0x472)]({'startOffset':Number(_0x113306),'endOffset':Number(_0x127017),'collapsed':_0x113306===_0x127017,'isActive':_0x4e7f61==='1'});}return _0x3ac0c1['some'](_0x207351=>_0x207351[_0x385d14(0x2e9)])||(_0x3ac0c1[0x0]['isActive']=!0x0),_0x3ac0c1;}class Mt extends _0x2f203c{constructor(){const _0x37d5ce=_0x35fe9a;super(...arguments),l(this,_0x37d5ce(0x266),new _0x316dfa(null)),l(this,_0x37d5ce(0x2b8),this['_collabCursorState$'][_0x37d5ce(0x36f)]());}['syncEditingCollabCursor'](_0x56f5da){const _0x90349c=_0x35fe9a,{unitID:_0x5a7273,memberID:_0x446f56,textRanges:_0x10564d}=_0x56f5da,_0x476a5d=Os(_0x10564d),_0x251079={'unitID':_0x5a7273,'memberID':_0x446f56,'selection':_0x476a5d};this[_0x90349c(0x266)][_0x90349c(0x3be)](_0x251079);}}var yn=Object[_0x35fe9a(0x448)],Un=Object[_0x35fe9a(0x1db)],Ln=(_0x25fad9,_0xb46a5e,_0x1e8895,_0x5296fd)=>{for(var _0xa96006=_0x5296fd>0x1?void 0x0:_0x5296fd?Un(_0xb46a5e,_0x1e8895):_0xb46a5e,_0x451e44=_0x25fad9['length']-0x1,_0x1f43f4;_0x451e44>=0x0;_0x451e44--)(_0x1f43f4=_0x25fad9[_0x451e44])&&(_0xa96006=(_0x5296fd?_0x1f43f4(_0xb46a5e,_0x1e8895,_0xa96006):_0x1f43f4(_0xa96006))||_0xa96006);return _0x5296fd&&_0xa96006&&yn(_0xb46a5e,_0x1e8895,_0xa96006),_0xa96006;},zt=(_0x355ed3,_0x5dd510)=>(_0x5c4e95,_0x40387a)=>_0x5dd510(_0x5c4e95,_0x40387a,_0x355ed3);let ke=class{constructor(_0x10a266,_0x1d9503){const _0x3e16d8=_0x35fe9a;this[_0x3e16d8(0x325)]=_0x10a266,this[_0x3e16d8(0x348)]=_0x1d9503;}[_0x35fe9a(0x273)](_0x5b488f){const _0x374f50=_0x35fe9a;var _0x3fef8e,_0x1d7f90,_0x44b42c,_0xa95d3c;const _0x56dd6e=this[_0x374f50(0x325)][_0x374f50(0x3e8)](_0x5927f3),{pluginName:_0x5b2ecd,unitId:_0x2a18f1,sheetId:_0xa7b2c5}=_0x56dd6e[_0x374f50(0x2cc)]()||{},_0x5b54e4=(_0x3fef8e=_0x56dd6e['getSelections']())!=null?_0x3fef8e:[];if(_0x5b54e4['length']===0x0||!_0x5b2ecd||!_0x2a18f1||!_0xa7b2c5)return;const _0x33c943=[{'id':_0x49c1dc['id'],'params':{'unitId':_0x2a18f1,'subUnitId':_0xa7b2c5,'pluginName':_0x5b2ecd,'selections':_0x295a4b[_0x374f50(0x1c1)](_0x5b54e4)}}],_0x2b40f6=this['_transformService'][_0x374f50(0x1ff)](_0x5b488f,_0x33c943);if(!_0x44a64c(_0x2b40f6))throw _0x2b40f6['error'];const _0x644814=(_0xa95d3c=(_0x44b42c=(_0x1d7f90=_0x2b40f6[_0x374f50(0x3b5)][0x0])==null?void 0x0:_0x1d7f90[_0x374f50(0x3b4)])==null?void 0x0:_0x44b42c[_0x374f50(0x289)])!=null?_0xa95d3c:_0x5b54e4;Array[_0x374f50(0x3ff)](_0x644814)&&_0x644814[_0x374f50(0x443)]&&this['_injector']['get'](_0x373f07)[_0x374f50(0x356)](_0x49c1dc['id'],{'unitId':_0x2a18f1,'subUnitId':_0xa7b2c5,'pluginName':_0x5b2ecd,'selections':_0x644814});}};ke=Ln([zt(0x0,_0x5b3e40(_0x331eca)),zt(0x1,_0x56176b)],ke);const $n=new Set([_0x3307b6['id']]);function jn(_0x4818c7,_0x325b3b,_0x501dfd,_0x444f1e,_0x194334){const _0x2c1c2d=_0x35fe9a;var _0x38ac39,_0x27ffbf,_0x4c3f26,_0x521b0d;const _0x181f45=[];for(const _0xbf3054 of _0x4818c7)if($n[_0x2c1c2d(0x189)](_0xbf3054['id'])){if(_0x181f45[_0x2c1c2d(0x443)]>0x0)break;_0x181f45[_0x2c1c2d(0x472)](_0xbf3054);break;}else _0x181f45['push'](_0xbf3054);const _0x205f65=(_0x27ffbf=(_0x38ac39=_0x194334[_0x2c1c2d(0x2d2)]())==null?void 0x0:_0x38ac39[_0x2c1c2d(0x427)])!=null?_0x27ffbf:_0x2c1c2d(0x2ab),_0x92f0e1=(_0x521b0d=(_0x4c3f26=_0x194334[_0x2c1c2d(0x2d2)]())==null?void 0x0:_0x4c3f26['memberID'])!=null?_0x521b0d:'unknown';return{'changeset':{'unitID':_0x325b3b,'type':_0xa9e329(_0x501dfd['getUnitType'](_0x325b3b)),'baseRev':_0x444f1e['getCurrentRevForDocument'](_0x325b3b),'revision':0x0,'userID':_0x205f65,'memberID':_0x92f0e1,'mutations':_0x181f45},'pendingMutations':_0x4818c7['slice'](_0x181f45[_0x2c1c2d(0x443)])};}function Hn(_0x3102fd,_0x5dde1c,_0xd564cb,_0x5bd6c8,_0x96c16){const _0x4af627=_0x35fe9a;var _0x484954,_0x192103,_0x3c5153,_0x4cc10e;const _0x4c4341=[_0x3102fd[_0x4af627(0x25c)]((_0x540271,_0x2395e0)=>{const _0x2fa58e=_0x4af627;var _0x32de99;const {id:_0x57975d}=_0x540271,{id:_0xdc33a6,type:_0x20df93}=_0x2395e0,_0x3b51fe=(_0x32de99=_0x540271[_0x2fa58e(0x3b4)])!=null?_0x32de99:{'actions':null},_0x4cd8e7=_0x2395e0['params'];if(_0x57975d&&_0x57975d!==_0xdc33a6)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x57975d+'\x20-\x20'+_0xdc33a6+'.');return{..._0x540271,'id':_0xdc33a6,'type':_0x20df93,'params':{'unitId':_0x4cd8e7[_0x2fa58e(0x45b)],'textRanges':_0x4cd8e7[_0x2fa58e(0x1ee)],'actions':_0x260909['compose'](_0x3b51fe[_0x2fa58e(0x33e)],_0x4cd8e7[_0x2fa58e(0x33e)])}};},{})],_0x4f70cf=(_0x192103=(_0x484954=_0x96c16['getCurrentUser']())==null?void 0x0:_0x484954[_0x4af627(0x427)])!=null?_0x192103:'unknown',_0x554a52=(_0x4cc10e=(_0x3c5153=_0x96c16['getCurrentUser']())==null?void 0x0:_0x3c5153[_0x4af627(0x311)])!=null?_0x4cc10e:'unknown';return{'changeset':{'unitID':_0x5dde1c,'type':_0xa9e329(_0xd564cb[_0x4af627(0x2d5)](_0x5dde1c)),'baseRev':_0x5bd6c8[_0x4af627(0x1ae)](_0x5dde1c),'revision':0x0,'userID':_0x4f70cf,'memberID':_0x554a52,'mutations':_0x4c4341},'pendingMutations':[]};}var xn=Object[_0x35fe9a(0x448)],Fn=Object[_0x35fe9a(0x1db)],ne=(_0x3ff436,_0x33b105,_0x394efd,_0x1d7c89)=>{for(var _0x3b3c07=_0x1d7c89>0x1?void 0x0:_0x1d7c89?Fn(_0x33b105,_0x394efd):_0x33b105,_0x5e782c=_0x3ff436['length']-0x1,_0x38e62a;_0x5e782c>=0x0;_0x5e782c--)(_0x38e62a=_0x3ff436[_0x5e782c])&&(_0x3b3c07=(_0x1d7c89?_0x38e62a(_0x33b105,_0x394efd,_0x3b3c07):_0x38e62a(_0x3b3c07))||_0x3b3c07);return _0x1d7c89&&_0x3b3c07&&xn(_0x33b105,_0x394efd,_0x3b3c07),_0x3b3c07;},g=(_0x2adf8a,_0x3053ed)=>(_0x318ba4,_0x431906)=>_0x3053ed(_0x318ba4,_0x431906,_0x2adf8a),P=(_0x1be373=>(_0x1be373['NOT_COLLAB']='not_collab',_0x1be373[_0x35fe9a(0x242)]=_0x35fe9a(0x465),_0x1be373['PENDING']=_0x35fe9a(0x45f),_0x1be373[_0x35fe9a(0x1e1)]=_0x35fe9a(0x1dd),_0x1be373[_0x35fe9a(0x24d)]=_0x35fe9a(0x25e),_0x1be373['FETCH_MISS']=_0x35fe9a(0x3a9),_0x1be373[_0x35fe9a(0x24f)]='conflict',_0x1be373[_0x35fe9a(0x2e8)]='offline',_0x1be373))(P||{});class re{constructor(_0x4c6622,_0x467e13,_0x5ee1e8,_0x2f053c,_0x55da8e,_0x41ffcd,_0x59be42,_0x33b9d2,_0x5079d1){const _0x2a4dc8=_0x35fe9a;l(this,_0x2a4dc8(0x40b),null),l(this,_0x2a4dc8(0x41d),[]),(this[_0x2a4dc8(0x19e)]=_0x4c6622,this[_0x2a4dc8(0x279)]=_0x467e13,this[_0x2a4dc8(0x28a)]=_0x55da8e,this[_0x2a4dc8(0x3d3)]=_0x41ffcd,this[_0x2a4dc8(0x40c)]=_0x59be42,this[_0x2a4dc8(0x398)]=_0x33b9d2,this[_0x2a4dc8(0x3d7)]=_0x5079d1,this[_0x2a4dc8(0x40b)]=_0x5ee1e8,this[_0x2a4dc8(0x41d)]=_0x2f053c);}['_checkMissing'](_0x5247c7){const _0x212ac6=_0x35fe9a,_0x33ab47=this['_revisionService'][_0x212ac6(0x1ae)](this[_0x212ac6(0x19e)]);return _0x5247c7[_0x212ac6(0x232)]>_0x33ab47+0x1?(this[_0x212ac6(0x28a)]['onMissingChangesets']({'from':_0x33ab47,'to':_0x5247c7[_0x212ac6(0x232)]-0x1}),!0x0):!0x1;}[_0x35fe9a(0x364)](_0x253bdd){const _0x3c46ee=_0x35fe9a;this['_undoRedoService'][_0x3c46ee(0x28e)](this[_0x3c46ee(0x19e)],_0x253bdd);}[_0x35fe9a(0x30c)](_0x1ce1ec){const _0x57efb1=_0x35fe9a;var _0x16be2c,_0x2f03a2;(_0x2f03a2=(_0x16be2c=this['_handler'])[_0x57efb1(0x1d4)])==null||_0x2f03a2['call'](_0x16be2c,_0x1ce1ec);}[_0x35fe9a(0x340)](_0x3a3c87){const _0x51036e=_0x35fe9a;var _0x330e86,_0x57b057;return(_0x57b057=(_0x330e86=this[_0x51036e(0x28a)])['onTransformIME'])==null?void 0x0:_0x57b057['call'](_0x330e86,_0x3a3c87);}[_0x35fe9a(0x450)](_0x4c56a2){const _0x10f6c7=_0x35fe9a;var _0xe28fc9,_0x2cd88a,_0x30e154;return(_0x30e154=(_0x2cd88a=(_0xe28fc9=this[_0x10f6c7(0x28a)])[_0x10f6c7(0x371)])==null?void 0x0:_0x2cd88a[_0x10f6c7(0x341)](_0xe28fc9,_0x4c56a2))!=null?_0x30e154:_0x4c56a2;}['_syncEditingCollabCursor'](_0x7f9030){const _0x78db3d=_0x35fe9a;var _0x55ab2b,_0x14404;if(this[_0x78db3d(0x279)]===H[_0x78db3d(0x1f2)]){const {unitID:_0x518aa4,mutations:_0x12563e,memberID:_0x93f9de}=_0x7f9030,_0x229132=_0x12563e[0x0][_0x78db3d(0x3b4)][_0x78db3d(0x1ee)];Array['isArray'](_0x229132)&&_0x229132[_0x78db3d(0x443)]>0x0&&((_0x14404=(_0x55ab2b=this[_0x78db3d(0x28a)])[_0x78db3d(0x176)])==null||_0x14404[_0x78db3d(0x341)](_0x55ab2b,{'unitID':_0x518aa4,'memberID':_0x93f9de,'textRanges':_0x229132}));}}[_0x35fe9a(0x271)](){const _0x41df8c=_0x35fe9a;this[_0x41df8c(0x3d7)][_0x41df8c(0x329)](this[_0x41df8c(0x19e)],this[_0x41df8c(0x279)],this[_0x41df8c(0x40b)],this[_0x41df8c(0x41d)]);}[_0x35fe9a(0x1f4)](){const _0x185e04=_0x35fe9a;return this['_revisionService'][_0x185e04(0x1ae)](this[_0x185e04(0x19e)]);}['_incrementRevisionNumber'](){const _0x433616=_0x35fe9a;this[_0x433616(0x398)][_0x433616(0x479)](this[_0x433616(0x19e)]);}[_0x35fe9a(0x3a4)](_0x45e3d5){const _0x149d71=_0x35fe9a;var _0x2a0485;const _0x5d35ca=this[_0x149d71(0x450)](_0x45e3d5),_0x71666a=_0x299d45(_0x5d35ca['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x71666a[_0x149d71(0x39a)])throw _0x71666a[_0x149d71(0x185)]instanceof Error?_0x71666a[_0x149d71(0x185)]:new Error((_0x2a0485=_0x71666a['error'])!=null?_0x2a0485:_0x149d71(0x440));this[_0x149d71(0x340)](_0x5d35ca),this[_0x149d71(0x364)](_0x45e3d5),this['_transformSelections'](_0x5d35ca),this[_0x149d71(0x33c)](_0x5d35ca),this[_0x149d71(0x338)]();}}let Te=class extends re{constructor(_0x5def5c,_0x29cb24,_0x72b4bd,_0x4d3f4a,_0x281850,_0x341084,_0x3710ea,_0x2a9704,_0x27c5c2){const _0x4956de=_0x35fe9a;super(_0x5def5c,_0x29cb24,null,[],_0x72b4bd,_0x2a9704,_0x3710ea,_0x4d3f4a,_0x281850),l(this,'status',_0x4956de(0x465)),(this[_0x4956de(0x325)]=_0x341084,this['_logService']=_0x27c5c2);}[_0x35fe9a(0x483)](_0x3968dc){const _0x2f9452=_0x35fe9a,_0x3cb9c1=this['_injector'][_0x2f9452(0x26b)](V,this[_0x2f9452(0x19e)],this['type'],[_0x3968dc],this[_0x2f9452(0x28a)]);return _0x3cb9c1['_schedule'](),_0x3cb9c1[_0x2f9452(0x271)](),_0x3cb9c1;}['onRemoteChangeset'](_0xf55b08){const _0x46253a=_0x35fe9a;if(this[_0x46253a(0x195)](_0xf55b08))return this[_0x46253a(0x325)][_0x46253a(0x26b)](W,this[_0x46253a(0x19e)],this[_0x46253a(0x279)],null,[],null,[_0xf55b08],this[_0x46253a(0x28a)]);try{return this[_0x46253a(0x3a4)](_0xf55b08),this;}catch(_0x31de40){return this[_0x46253a(0x248)][_0x46253a(0x185)](_0x46253a(0x25a),_0x31de40),this;}}[_0x35fe9a(0x3ca)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0xa3d55f=_0x35fe9a;throw new Error(_0xa3d55f(0x373));}['toggleOffline'](){const _0x2956c7=_0x35fe9a;return this[_0x2956c7(0x325)]['createInstance'](X,this['unitID'],this[_0x2956c7(0x279)],null,[],this[_0x2956c7(0x28a)]);}[_0x35fe9a(0x1fc)](){return this;}[_0x35fe9a(0x261)](){const _0x4d3daa=_0x35fe9a;throw new Error(_0x4d3daa(0x183));}};Te=ne([g(0x3,_0x5b3e40(_0x53eb10)),g(0x4,_0x5b3e40(D)),g(0x5,_0x5b3e40(_0x331eca)),g(0x6,_0x4b7ddb),g(0x7,_0x373f07),g(0x8,_0x294e85)],Te);let V=class extends re{constructor(_0x590673,_0x28cdd5,_0x1649ce,_0x1aa643,_0x57f578,_0x476e44,_0x2b918a,_0x274a75,_0x24eccd,_0x343f63,_0x4b7ccb,_0x37c506,_0x261ce9,_0x31cdea){const _0x122469=_0x35fe9a;super(_0x590673,_0x28cdd5,null,_0x1649ce,_0x1aa643,_0x343f63,_0x31cdea,_0x476e44,_0x2b918a),l(this,_0x122469(0x30b),_0x122469(0x45f)),l(this,'_scheduleTimestamp',null),l(this,'_sendingTimer',null),(this[_0x122469(0x325)]=_0x57f578,this[_0x122469(0x367)]=_0x274a75,this[_0x122469(0x248)]=_0x24eccd,this['_configService']=_0x4b7ccb,this[_0x122469(0x348)]=_0x37c506,this[_0x122469(0x262)]=_0x261ce9);}['appendMutation'](_0x44325c){const _0x5ac266=_0x35fe9a;return this['_pendingMutations'][_0x5ac266(0x472)](_0x44325c),this[_0x5ac266(0x271)](),this;}[_0x35fe9a(0x399)](_0x193824){const _0x2b8d21=_0x35fe9a;if(this['_checkMissing'](_0x193824))return this['_clearScheduledTask'](),this['_injector'][_0x2b8d21(0x26b)](W,this[_0x2b8d21(0x19e)],this[_0x2b8d21(0x279)],null,this[_0x2b8d21(0x41d)],null,[_0x193824],this[_0x2b8d21(0x28a)]);try{const _0x3c2cbd=this[_0x2b8d21(0x348)]['transformMutationsWithChangeset'](_0x193824,this[_0x2b8d21(0x41d)]);if(_0x44a64c(_0x3c2cbd)){const {c1Prime:_0x36cd3b,m2Prime:_0x5ac34a}=_0x3c2cbd;this[_0x2b8d21(0x3a4)](_0x36cd3b);const _0x5cb954=this[_0x2b8d21(0x325)][_0x2b8d21(0x26b)](V,this['unitID'],this[_0x2b8d21(0x279)],_0x5ac34a,this[_0x2b8d21(0x28a)]);return this[_0x2b8d21(0x27f)](),_0x5cb954[_0x2b8d21(0x1ec)](this['_scheduleTimestamp']?Math['max'](0x0,new Date()[_0x2b8d21(0x1af)]()-this[_0x2b8d21(0x1c6)]):this[_0x2b8d21(0x343)]()),_0x5cb954;}throw _0x3c2cbd[_0x2b8d21(0x185)];}catch(_0x37c7c6){return this[_0x2b8d21(0x248)]['error'](_0x37c7c6),this[_0x2b8d21(0x207)](!0x1);}}[_0x35fe9a(0x3ca)](){const _0x405ecb=_0x35fe9a;throw new Error(_0x405ecb(0x16f));}['onRemoteRej'](){const _0x518beb=_0x35fe9a;throw new Error(_0x518beb(0x238));}[_0x35fe9a(0x23b)](){const _0x38517d=_0x35fe9a;return this[_0x38517d(0x27f)](),this[_0x38517d(0x325)][_0x38517d(0x26b)](X,this[_0x38517d(0x19e)],this[_0x38517d(0x279)],null,this[_0x38517d(0x41d)],this['_handler']);}[_0x35fe9a(0x1fc)](){return this;}[_0x35fe9a(0x1ec)](_0x25677c){const _0x1b0204=_0x35fe9a;_0x25677c=_0x25677c!=null?_0x25677c:this[_0x1b0204(0x343)](),this['_scheduleTimestamp']=new Date()[_0x1b0204(0x1af)](),this[_0x1b0204(0x236)]=setTimeout(()=>{const _0x3063e4=_0x1b0204;this[_0x3063e4(0x27f)]();let _0x1a8e96=null;switch(this[_0x3063e4(0x279)]){case H[_0x3063e4(0x339)]:{_0x1a8e96=jn(this[_0x3063e4(0x41d)],this[_0x3063e4(0x19e)],this['_univerInstanceService'],this[_0x3063e4(0x398)],this[_0x3063e4(0x367)]);break;}case H[_0x3063e4(0x1f2)]:{_0x1a8e96=Hn(this[_0x3063e4(0x41d)],this[_0x3063e4(0x19e)],this['_univerInstanceService'],this[_0x3063e4(0x398)],this[_0x3063e4(0x367)]);break;}default:throw new Error(_0x3063e4(0x406)+this[_0x3063e4(0x279)]+_0x3063e4(0x22f));}const {changeset:_0x511277,pendingMutations:_0x1387ee}=_0x1a8e96;this[_0x3063e4(0x28a)][_0x3063e4(0x3f8)](_0x511277);const _0x44e3d6=_0x1387ee[_0x3063e4(0x443)]?this[_0x3063e4(0x325)]['createInstance'](k,this['unitID'],this[_0x3063e4(0x279)],_0x511277,_0x1387ee,this[_0x3063e4(0x28a)]):this[_0x3063e4(0x325)]['createInstance'](K,this[_0x3063e4(0x19e)],this[_0x3063e4(0x279)],_0x511277,this[_0x3063e4(0x28a)]);_0x44e3d6[_0x3063e4(0x271)](),this[_0x3063e4(0x28a)]['onStateChange'](this,_0x44e3d6);},_0x25677c);}[_0x35fe9a(0x343)](){const _0x5555a6=_0x35fe9a;var _0x259283;return(_0x259283=this[_0x5555a6(0x449)][_0x5555a6(0x358)](Ki))!=null?_0x259283:Xi;}['resend'](){const _0x459a2f=_0x35fe9a;throw new Error(_0x459a2f(0x405));}[_0x35fe9a(0x27f)](){const _0x2eb21f=_0x35fe9a;this[_0x2eb21f(0x236)]!=null&&(clearTimeout(this[_0x2eb21f(0x236)]),this[_0x2eb21f(0x236)]=null);}[_0x35fe9a(0x207)](_0xd46dd){const _0x3948a7=_0x35fe9a;return this[_0x3948a7(0x27f)](),this[_0x3948a7(0x325)][_0x3948a7(0x26b)](te,this[_0x3948a7(0x19e)],this[_0x3948a7(0x279)],null,this[_0x3948a7(0x41d)],this['_handler'],_0xd46dd);}};V=ne([g(0x4,_0x5b3e40(_0x331eca)),g(0x5,_0x5b3e40(_0x53eb10)),g(0x6,_0x5b3e40(D)),g(0x7,_0x5b3e40(ee)),g(0x8,_0x294e85),g(0x9,_0x373f07),g(0xa,_0x4e019d),g(0xb,_0x56176b),g(0xc,_0x1ffae8),g(0xd,_0x4b7ddb)],V);let K=class extends re{constructor(_0xeda805,_0x35cbdf,_0xa9bc05,_0x45038f,_0x456af1,_0x2178ad,_0x528148,_0xe0ebe5,_0x5a7afa,_0x137a8a,_0x18d535){const _0x2d27aa=_0x35fe9a;super(_0xeda805,_0x35cbdf,_0xa9bc05,[],_0x45038f,_0xe0ebe5,_0x18d535,_0x2178ad,_0x528148),l(this,'status',_0x2d27aa(0x1dd)),(this[_0x2d27aa(0x325)]=_0x456af1,this[_0x2d27aa(0x248)]=_0x5a7afa,this[_0x2d27aa(0x348)]=_0x137a8a);}[_0x35fe9a(0x483)](_0x3ba77e){const _0x38b512=_0x35fe9a,_0x3ae36b=this[_0x38b512(0x325)][_0x38b512(0x26b)](k,this[_0x38b512(0x19e)],this[_0x38b512(0x279)],this[_0x38b512(0x40b)],[_0x3ba77e],this[_0x38b512(0x28a)]);return _0x3ae36b[_0x38b512(0x271)](),_0x3ae36b;}[_0x35fe9a(0x399)](_0x261b23){const _0x1d11ca=_0x35fe9a;if(this[_0x1d11ca(0x195)](_0x261b23))return this[_0x1d11ca(0x325)]['createInstance'](W,this[_0x1d11ca(0x19e)],this[_0x1d11ca(0x279)],this['_awaitingChangeset'],[],null,[_0x261b23],this[_0x1d11ca(0x28a)]);try{const _0x1db8eb=this[_0x1d11ca(0x348)][_0x1d11ca(0x3df)]([_0x261b23],[this[_0x1d11ca(0x40b)]],!0x1);if(_0x54bce7(_0x1db8eb)){const {c1Prime:_0x3b84e5,c2Prime:_0x4cf114}=_0x1db8eb;this['_executeRemoteChangeset'](_0x3b84e5[0x0]),_0x4cf114[0x0][_0x1d11ca(0x35c)]=this['_getCurrentRevision']();const _0x22800a=this[_0x1d11ca(0x325)]['createInstance'](K,this[_0x1d11ca(0x19e)],this[_0x1d11ca(0x279)],_0x4cf114[0x0],this[_0x1d11ca(0x28a)]);return _0x22800a[_0x1d11ca(0x271)](),_0x22800a;}return this[_0x1d11ca(0x207)](!0x1);}catch(_0x34b3c3){return this[_0x1d11ca(0x248)][_0x1d11ca(0x185)](_0x34b3c3),this['_onConflict'](!0x1);}}[_0x35fe9a(0x3ca)](_0x5b76f7){const _0x42eee0=_0x35fe9a,_0x597dae=this[_0x42eee0(0x398)][_0x42eee0(0x1ae)](this[_0x42eee0(0x19e)]);if(_0x5b76f7[_0x42eee0(0x232)]<_0x597dae-0x1)return this;if(this[_0x42eee0(0x195)](_0x5b76f7))return this['_injector'][_0x42eee0(0x26b)](W,this[_0x42eee0(0x19e)],this[_0x42eee0(0x279)],null,[],this[_0x42eee0(0x40b)],[],this[_0x42eee0(0x28a)]);this[_0x42eee0(0x338)]();const _0x3f05d8=this[_0x42eee0(0x325)][_0x42eee0(0x26b)](Te,this['unitID'],this[_0x42eee0(0x279)],this[_0x42eee0(0x28a)]);return _0x3f05d8[_0x42eee0(0x271)](),_0x3f05d8;}['onRemoteRej'](_0x240be7){return this['_onConflict'](!!(_0x240be7!=null&&_0x240be7['isPermissionRej']));}[_0x35fe9a(0x23b)](){const _0x48aeaa=_0x35fe9a;return this[_0x48aeaa(0x325)][_0x48aeaa(0x26b)](X,this[_0x48aeaa(0x19e)],this[_0x48aeaa(0x279)],this[_0x48aeaa(0x40b)],[],this[_0x48aeaa(0x28a)]);}[_0x35fe9a(0x1fc)](){return this;}['resend'](){const _0xca2dab=_0x35fe9a;this[_0xca2dab(0x28a)][_0xca2dab(0x3f8)](this[_0xca2dab(0x40b)]);}['_onConflict'](_0x393979){const _0x54d4c3=_0x35fe9a;return this[_0x54d4c3(0x325)][_0x54d4c3(0x26b)](te,this[_0x54d4c3(0x19e)],this[_0x54d4c3(0x279)],this[_0x54d4c3(0x40b)],[],this[_0x54d4c3(0x28a)],_0x393979);}};K=ne([g(0x4,_0x5b3e40(_0x331eca)),g(0x5,_0x5b3e40(_0x53eb10)),g(0x6,_0x5b3e40(D)),g(0x7,_0x373f07),g(0x8,_0x294e85),g(0x9,_0x56176b),g(0xa,_0x4b7ddb)],K);let k=class extends re{constructor(_0x3c9d43,_0x1d732b,_0x26e1df,_0x354382,_0x4b195c,_0x24355d,_0x14babd,_0x344fab,_0xc22f86,_0xf74e2d,_0xfa0044,_0x328e79){const _0x1ac6ee=_0x35fe9a;super(_0x3c9d43,_0x1d732b,_0x26e1df,_0x354382,_0x4b195c,_0xc22f86,_0x328e79,_0x14babd,_0x344fab),l(this,_0x1ac6ee(0x30b),_0x1ac6ee(0x25e)),(this[_0x1ac6ee(0x325)]=_0x24355d,this['_logService']=_0xf74e2d,this[_0x1ac6ee(0x348)]=_0xfa0044);}[_0x35fe9a(0x483)](_0x53fbd9){const _0x1a0f9c=_0x35fe9a;return this[_0x1a0f9c(0x41d)][_0x1a0f9c(0x472)](_0x53fbd9),this;}[_0x35fe9a(0x399)](_0x51c52d){const _0x2166fa=_0x35fe9a;if(this[_0x2166fa(0x195)](_0x51c52d))return this[_0x2166fa(0x325)][_0x2166fa(0x26b)](W,this[_0x2166fa(0x19e)],this['type'],this[_0x2166fa(0x40b)],this[_0x2166fa(0x41d)],null,[_0x51c52d],this[_0x2166fa(0x28a)]);try{const _0x2a3459=this[_0x2166fa(0x348)][_0x2166fa(0x3df)]([_0x51c52d],[this[_0x2166fa(0x40b)]],!0x1);if(_0x54bce7(_0x2a3459)){const {c1Prime:_0x6babba,c2Prime:_0x3b2a9c}=_0x2a3459,_0x3b7e51=this[_0x2166fa(0x348)]['transformMutationsWithChangeset'](_0x6babba[0x0],this['_pendingMutations']);if(_0x44a64c(_0x3b7e51)){const {c1Prime:_0x48a0f3,m2Prime:_0x296e2a}=_0x3b7e51;return this['_executeRemoteChangeset'](_0x48a0f3),_0x3b2a9c[0x0][_0x2166fa(0x35c)]=this[_0x2166fa(0x1f4)](),this[_0x2166fa(0x325)][_0x2166fa(0x26b)](k,this['unitID'],this[_0x2166fa(0x279)],_0x3b2a9c[0x0],_0x296e2a,this[_0x2166fa(0x28a)]);}throw _0x3b7e51[_0x2166fa(0x185)];}throw _0x2a3459[_0x2166fa(0x185)];}catch(_0x591489){return this['_logService'][_0x2166fa(0x185)](_0x591489),this[_0x2166fa(0x207)](!0x1);}}['onRemoteAck'](_0x3ba155){const _0xbb4a34=_0x35fe9a;if(this[_0xbb4a34(0x195)](_0x3ba155))return this[_0xbb4a34(0x325)][_0xbb4a34(0x26b)](W,this[_0xbb4a34(0x19e)],this[_0xbb4a34(0x279)],null,this[_0xbb4a34(0x41d)],this[_0xbb4a34(0x40b)],[],this[_0xbb4a34(0x28a)]);this[_0xbb4a34(0x338)]();const _0xa27c6a=this['_injector'][_0xbb4a34(0x26b)](V,this[_0xbb4a34(0x19e)],this[_0xbb4a34(0x279)],this[_0xbb4a34(0x41d)],this['_handler']);return _0xa27c6a['_schedule'](),_0xa27c6a['_updateLocalCache'](),_0xa27c6a;}[_0x35fe9a(0x170)](_0x162814){const _0x3e8764=_0x35fe9a;return this[_0x3e8764(0x207)](!!(_0x162814!=null&&_0x162814[_0x3e8764(0x2a1)]));}[_0x35fe9a(0x23b)](){const _0x24a57c=_0x35fe9a;return this[_0x24a57c(0x325)][_0x24a57c(0x26b)](X,this[_0x24a57c(0x19e)],this['type'],this[_0x24a57c(0x40b)],this[_0x24a57c(0x41d)],this['_handler']);}['toggleOnline'](){return this;}['resend'](){const _0x478107=_0x35fe9a;this[_0x478107(0x28a)]['onSendChangeset'](this['_awaitingChangeset']);}[_0x35fe9a(0x207)](_0x2b1c9a){const _0x1d037f=_0x35fe9a;return this['_injector'][_0x1d037f(0x26b)](te,this[_0x1d037f(0x19e)],this[_0x1d037f(0x279)],null,this[_0x1d037f(0x41d)],this[_0x1d037f(0x28a)],_0x2b1c9a);}};k=ne([g(0x5,_0x5b3e40(_0x331eca)),g(0x6,_0x5b3e40(_0x53eb10)),g(0x7,_0x5b3e40(D)),g(0x8,_0x373f07),g(0x9,_0x294e85),g(0xa,_0x56176b),g(0xb,_0x4b7ddb)],k);let te=class extends re{constructor(_0x32ffdd,_0x527e6a,_0x19e900,_0x1cd654,_0x526f9b,_0x587b50=!0x1,_0x2245e4,_0x373750,_0x4813e2,_0x48cfaf,_0x17c24e,_0x133488,_0xa87837){const _0x18d53c=_0x35fe9a;super(_0x32ffdd,_0x527e6a,_0x19e900,_0x1cd654,_0x526f9b,_0x373750,_0x4813e2,_0x17c24e,_0x48cfaf),l(this,_0x18d53c(0x30b),_0x18d53c(0x41b)),(this[_0x18d53c(0x355)]=_0x587b50,this['_permissionService']=_0x2245e4,this[_0x18d53c(0x480)]=_0x133488,this[_0x18d53c(0x2c8)]=_0xa87837,this[_0x18d53c(0x365)](),this[_0x18d53c(0x32d)](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x35fe9a(0x399)](){return this;}['onRemoteAck'](){return this;}[_0x35fe9a(0x170)](){return this;}[_0x35fe9a(0x23b)](){return this;}[_0x35fe9a(0x1fc)](){return this;}['resend'](){const _0xc2a756=_0x35fe9a;throw new Error(_0xc2a756(0x321));}[_0x35fe9a(0x32d)](){const _0x51cb3a=_0x35fe9a;this[_0x51cb3a(0x3d7)][_0x51cb3a(0x329)](this[_0x51cb3a(0x19e)],this[_0x51cb3a(0x279)],null,[]);}['_showConflictNotification'](){const _0x496149=_0x35fe9a;this['_isPermissionRej']?this[_0x496149(0x2c8)][_0x496149(0x18c)]({'title':this[_0x496149(0x480)]['t'](_0x496149(0x175)),'content':this[_0x496149(0x480)]['t'](_0x496149(0x1a9)),'type':_0x496149(0x185),'duration':0x0}):this[_0x496149(0x2c8)][_0x496149(0x18c)]({'title':this[_0x496149(0x480)]['t'](_0x496149(0x32b)),'content':this[_0x496149(0x480)]['t']('conflict.content'),'type':_0x496149(0x185),'duration':0x0});}['_disableEditing'](){const _0x48d743=_0x35fe9a;this['_permissionService']['updatePermissionPoint'](new _0x1a9d94(this[_0x48d743(0x19e)])['id'],!0x1);}};te=ne([g(0x6,_0x5b3e40(_0x58ae2b)),g(0x7,_0x373f07),g(0x8,_0x4b7ddb),g(0x9,_0x5b3e40(D)),g(0xa,_0x5b3e40(_0x53eb10)),g(0xb,_0x5b3e40(_0x210cec)),g(0xc,_0x463aaa)],te);let X=class extends re{constructor(_0x45e428,_0x367cb4,_0x12b97a,_0x6217b6,_0x1464b8,_0x392563,_0x5df82d,_0x57ca36,_0x486c71,_0x2a148f){const _0x2205c4=_0x35fe9a;super(_0x45e428,_0x367cb4,_0x12b97a,_0x6217b6,_0x1464b8,_0x486c71,_0x2a148f,_0x5df82d,_0x57ca36),l(this,_0x2205c4(0x30b),_0x2205c4(0x209)),this[_0x2205c4(0x325)]=_0x392563;}['appendMutation'](_0x16c485){const _0x25e4bd=_0x35fe9a;return this['_pendingMutations'][_0x25e4bd(0x472)](_0x16c485),this[_0x25e4bd(0x271)](),this;}[_0x35fe9a(0x399)](_0x4b95a3){const _0x27a625=_0x35fe9a;throw new Error(_0x27a625(0x401));}['onRemoteAck'](){const _0x24206f=_0x35fe9a;throw new Error(_0x24206f(0x24e));}['onRemoteRej'](){const _0x1fd7d8=_0x35fe9a;throw new Error(_0x1fd7d8(0x23a));}[_0x35fe9a(0x23b)](){return this;}[_0x35fe9a(0x1fc)](){const _0xc6bea9=_0x35fe9a,{_injector:_0x370b11,_pendingMutations:_0x1ca2c5,_awaitingChangeset:_0x53ce15,unitID:_0x55cc57,_handler:_0x5e0ffb,type:_0x59106a}=this,_0x287c6f=Ds(_0x370b11,_0x55cc57,_0x59106a,_0x53ce15,_0x1ca2c5,_0x5e0ffb);return _0x287c6f instanceof V?_0x287c6f['_schedule']():(_0x287c6f instanceof k||_0x287c6f instanceof K)&&_0x287c6f[_0xc6bea9(0x261)](),_0x287c6f;}[_0x35fe9a(0x261)](){const _0x5efb2d=_0x35fe9a;throw new Error(_0x5efb2d(0x35f));}};X=ne([g(0x5,_0x5b3e40(_0x331eca)),g(0x6,_0x5b3e40(_0x53eb10)),g(0x7,_0x5b3e40(D)),g(0x8,_0x373f07),g(0x9,_0x4b7ddb)],X);let W=class extends re{constructor(_0x511f3b,_0x40ae49,_0x1fb48e,_0x508d2b,_0x55debf,_0x19659a,_0x2cb663,_0x3fa439,_0x515041,_0x4d31ac,_0x17a94e,_0x116725,_0x12054e,_0x24e350){const _0x287532=_0x35fe9a;super(_0x511f3b,_0x40ae49,_0x1fb48e,_0x508d2b,_0x2cb663,_0x116725,_0x12054e,_0x515041,_0x4d31ac),l(this,_0x287532(0x30b),'fetch_missing'),(this[_0x287532(0x377)]=_0x55debf,this[_0x287532(0x1fa)]=_0x19659a,this[_0x287532(0x325)]=_0x3fa439,this['_logService']=_0x17a94e,this['_transformService']=_0x24e350);}[_0x35fe9a(0x460)](_0x3b5439){const _0x5197a3=_0x35fe9a;try{const _0x311eb5=[..._0x3b5439,...this['_queuedRemoteChangesets']],_0x5433d8=[this[_0x5197a3(0x40b)]||this[_0x5197a3(0x377)]]['filter'](_0x324dea=>!!_0x324dea);let _0x241611,_0x4b7af5;if(_0x5433d8[_0x5197a3(0x443)]){const _0x4af420=this[_0x5197a3(0x348)]['transformChangesets'](_0x311eb5,_0x5433d8,!0x1);if(!_0x54bce7(_0x4af420))throw _0x4af420[_0x5197a3(0x185)];_0x241611=_0x4af420[_0x5197a3(0x2fa)],_0x4b7af5=_0x4af420[_0x5197a3(0x224)];}else _0x241611=_0x311eb5,_0x4b7af5=[];let _0x5a0a7b=this[_0x5197a3(0x41d)];_0x241611[_0x5197a3(0x2b2)](_0x2d53e2=>{const _0x404650=_0x5197a3;let _0x4c4118;if(_0x5a0a7b['length']){const _0x1a5dfe=this[_0x404650(0x348)][_0x404650(0x1ff)](_0x2d53e2,_0x5a0a7b);if(!_0x44a64c(_0x1a5dfe))throw _0x1a5dfe['error'];_0x4c4118=_0x1a5dfe[_0x404650(0x2fa)],_0x5a0a7b=_0x1a5dfe[_0x404650(0x3b5)];}else _0x4c4118=_0x2d53e2;this[_0x404650(0x3a4)](_0x4c4118);}),this[_0x5197a3(0x377)]&&this['_incrementRevisionNumber'](),this['_awaitingChangeset']&&_0x4b7af5['length']&&(_0x4b7af5[0x0][_0x5197a3(0x35c)]=this[_0x5197a3(0x1f4)]());let _0x42e616;if(this[_0x5197a3(0x40b)]&&_0x5a0a7b[_0x5197a3(0x443)]!==0x0)_0x42e616=this['_injector'][_0x5197a3(0x26b)](k,this[_0x5197a3(0x19e)],this[_0x5197a3(0x279)],_0x4b7af5[0x0],_0x5a0a7b,this[_0x5197a3(0x28a)]);else{if(this[_0x5197a3(0x40b)]&&_0x5a0a7b[_0x5197a3(0x443)]===0x0)_0x4b7af5[0x0][_0x5197a3(0x35c)]=this[_0x5197a3(0x1f4)](),_0x42e616=this['_injector'][_0x5197a3(0x26b)](K,this['unitID'],this[_0x5197a3(0x279)],_0x4b7af5[0x0],this['_handler']);else{if(_0x5a0a7b['length']!==0x0){const _0x1b9a10=this[_0x5197a3(0x325)][_0x5197a3(0x26b)](V,this[_0x5197a3(0x19e)],this[_0x5197a3(0x279)],_0x5a0a7b,this['_handler']);_0x1b9a10[_0x5197a3(0x1ec)](),_0x42e616=_0x1b9a10;}else _0x42e616=this['_injector'][_0x5197a3(0x26b)](Te,this[_0x5197a3(0x19e)],this[_0x5197a3(0x279)],this[_0x5197a3(0x28a)]);}}return _0x42e616['_updateLocalCache'](),_0x42e616;}catch(_0x3cd3d8){return this[_0x5197a3(0x248)]['error'](_0x5197a3(0x457),_0x5197a3(0x432),_0x3cd3d8),this[_0x5197a3(0x325)]['createInstance'](te,this['unitID'],this[_0x5197a3(0x279)],this['_awaitingChangeset'],this[_0x5197a3(0x41d)],this[_0x5197a3(0x28a)],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x35fe9a(0x483)](_0x408bd1){const _0x280485=_0x35fe9a;return this['_pendingMutations'][_0x280485(0x472)](_0x408bd1),this;}['onRemoteChangeset'](_0x3dde37){const _0x834b29=_0x35fe9a;return this[_0x834b29(0x1fa)][_0x834b29(0x472)](_0x3dde37),this;}[_0x35fe9a(0x3ca)](_0x2aad08){const _0x4f7432=_0x35fe9a;if(this['_awaitingChangeset'])return this[_0x4f7432(0x377)]=this[_0x4f7432(0x40b)],this[_0x4f7432(0x40b)]=null,this;throw new Error(_0x4f7432(0x3b3));}['onRemoteRej'](_0x1b5cc9){const _0x11ed18=_0x35fe9a;return this[_0x11ed18(0x207)](!!(_0x1b5cc9!=null&&_0x1b5cc9['isPermissionRej']));}['toggleOffline'](){const _0x44f488=_0x35fe9a;return this[_0x44f488(0x325)][_0x44f488(0x26b)](X,this['unitID'],this['type'],this[_0x44f488(0x40b)],this[_0x44f488(0x41d)],this['_handler']);}[_0x35fe9a(0x1fc)](){return this;}[_0x35fe9a(0x207)](_0x167fcf){const _0x3a1882=_0x35fe9a;return this[_0x3a1882(0x325)][_0x3a1882(0x26b)](te,this[_0x3a1882(0x19e)],this[_0x3a1882(0x279)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x3a1882(0x28a)],_0x167fcf);}};W=ne([g(0x7,_0x5b3e40(_0x331eca)),g(0x8,_0x5b3e40(_0x53eb10)),g(0x9,_0x5b3e40(D)),g(0xa,_0x294e85),g(0xb,_0x373f07),g(0xc,_0x4b7ddb),g(0xd,_0x56176b)],W);function Ds(_0x3f47d4,_0x3f6af1,_0x4ea4ae,_0x512261,_0x3674c3,_0x512f01){const _0x76b8c1=_0x35fe9a;return _0x512261&&_0x3674c3[_0x76b8c1(0x443)]?_0x3f47d4['createInstance'](k,_0x3f6af1,_0x4ea4ae,_0x512261,_0x3674c3,_0x512f01):_0x512261?_0x3f47d4[_0x76b8c1(0x26b)](K,_0x3f6af1,_0x4ea4ae,_0x512261,_0x512f01):_0x3674c3[_0x76b8c1(0x443)]?_0x3f47d4[_0x76b8c1(0x26b)](V,_0x3f6af1,_0x4ea4ae,_0x3674c3,_0x512f01):_0x3f47d4[_0x76b8c1(0x26b)](Te,_0x3f6af1,_0x4ea4ae,_0x512f01);}var Bn=Object[_0x35fe9a(0x448)],Vn=Object[_0x35fe9a(0x1db)],Je=(_0x53e9af,_0x5e8ca5,_0x1aa74e,_0x41c062)=>{for(var _0x1c4490=_0x41c062>0x1?void 0x0:_0x41c062?Vn(_0x5e8ca5,_0x1aa74e):_0x5e8ca5,_0x5ff0fa=_0x53e9af['length']-0x1,_0x34d830;_0x5ff0fa>=0x0;_0x5ff0fa--)(_0x34d830=_0x53e9af[_0x5ff0fa])&&(_0x1c4490=(_0x41c062?_0x34d830(_0x5e8ca5,_0x1aa74e,_0x1c4490):_0x34d830(_0x1c4490))||_0x1c4490);return _0x41c062&&_0x1c4490&&Bn(_0x5e8ca5,_0x1aa74e,_0x1c4490),_0x1c4490;},S=(_0x384d08,_0x532e8d)=>(_0x222bac,_0x4ac440)=>_0x532e8d(_0x222bac,_0x4ac440,_0x384d08);let Ee=class extends _0x2f203c{constructor(_0x3c9cc7,_0x50f02b,_0x11f4b3){const _0x14d83f=_0x35fe9a;super(),l(this,_0x14d83f(0x3b1),new Map()),l(this,_0x14d83f(0x24b),new _0x3da7e9()),(this['_injector']=_0x3c9cc7,this[_0x14d83f(0x2bf)]=_0x50f02b,this['_univerInstanceService']=_0x11f4b3,this[_0x14d83f(0x31f)]());}[_0x35fe9a(0x264)](){const _0x2e3485=_0x35fe9a;super[_0x2e3485(0x264)](),this['_entities'][_0x2e3485(0x2b2)](_0x5cfd99=>_0x5cfd99['dispose']()),this[_0x2e3485(0x3b1)][_0x2e3485(0x3e9)]();}[_0x35fe9a(0x3ac)](_0x19f207){const _0x4d35d9=_0x35fe9a;var _0x9a9b8d;return(_0x9a9b8d=this[_0x4d35d9(0x3b1)][_0x4d35d9(0x3e8)](_0x19f207))!=null?_0x9a9b8d:null;}['getCollabEntity$'](_0x5d2685){const _0x39edc7=_0x35fe9a,_0x439f14=this[_0x39edc7(0x3ac)](_0x5d2685);return _0x439f14?_0x214b8f(_0x439f14):this['_entityInit$'][_0x39edc7(0x332)](_0xa67359(_0x21bff6=>_0x21bff6['unitID']===_0x5d2685));}[_0x35fe9a(0x31f)](){const _0x409c94=_0x35fe9a;this[_0x409c94(0x262)]['getTypeOfUnitAdded$'](_0x9a39b6[_0x409c94(0x339)])[_0x409c94(0x332)](_0x2c14e9(this[_0x409c94(0x3b0)]),_0x4d03e2(0x10))[_0x409c94(0x40e)](async _0xcf84e7=>{const _0x20dc19=_0x409c94,_0x539a12=_0xcf84e7['getUnitId'](),_0x435dc3=await this[_0x20dc19(0x254)](_0x539a12,H[_0x20dc19(0x339)]);this[_0x20dc19(0x3b1)][_0x20dc19(0x445)](_0x539a12,_0x435dc3);}),this['_univerInstanceService'][_0x409c94(0x246)](_0x9a39b6[_0x409c94(0x1f2)])[_0x409c94(0x332)](_0x2c14e9(this['dispose$']),_0x4d03e2(0x10))[_0x409c94(0x332)](_0xa67359(_0x7033d7=>!_0x7033d7[_0x409c94(0x22b)]()[_0x409c94(0x421)]('__')))['subscribe'](async _0x312dd9=>{const _0x1dadb3=_0x409c94,_0x1f271f=_0x312dd9[_0x1dadb3(0x22b)](),_0x400322=await this[_0x1dadb3(0x254)](_0x1f271f,H[_0x1dadb3(0x1f2)]);this['_entities'][_0x1dadb3(0x445)](_0x1f271f,_0x400322);}),_0x17d598(this[_0x409c94(0x262)]['getTypeOfUnitDisposed$'](_0x9a39b6[_0x409c94(0x339)]),this[_0x409c94(0x262)][_0x409c94(0x3d9)](_0x9a39b6[_0x409c94(0x1f2)]))[_0x409c94(0x332)](_0x2c14e9(this[_0x409c94(0x3b0)]))[_0x409c94(0x40e)](_0x1fdb82=>{const _0x5fd36b=_0x409c94,_0xafcc6e=_0x1fdb82[_0x5fd36b(0x22b)](),_0x17363c=this[_0x5fd36b(0x3b1)][_0x5fd36b(0x3e8)](_0xafcc6e);_0x17363c&&(_0x17363c[_0x5fd36b(0x264)](),this['_entities']['delete'](_0xafcc6e));});}async[_0x35fe9a(0x254)](_0x59551a,_0x1bd32e){const _0x3e1c4a=_0x35fe9a,_0x67cb75=await this[_0x3e1c4a(0x2bf)][_0x3e1c4a(0x2ef)](_0x59551a),_0x1773bd=this[_0x3e1c4a(0x325)][_0x3e1c4a(0x26b)](this['_getCtorByUniverType'](_0x1bd32e),_0x59551a,_0x1bd32e,_0x67cb75);return await _0x1773bd[_0x3e1c4a(0x2fb)](),this[_0x3e1c4a(0x24b)][_0x3e1c4a(0x3be)](_0x1773bd),_0x1773bd;}[_0x35fe9a(0x199)](_0x293c21){const _0x534403=_0x35fe9a;switch(_0x293c21){case H[_0x534403(0x1f2)]:return dt;case H[_0x534403(0x339)]:return ft;default:throw new Error(_0x534403(0x2a5)+_0x293c21);}}};Ee=Je([_0x47af0a(_0x550976['Starting'],Ee),S(0x0,_0x5b3e40(_0x331eca)),S(0x1,_0x5b3e40(Re)),S(0x2,_0x1ffae8)],Ee);let We=class extends _0x2f203c{constructor(_0x3dd122,_0x2d3634,_0x2a02d1,_0x54c5e0,_0xb92134,_0x34e13d,_0x509720,_0x35c86c,_0x58a33f,_0x44a315,_0x28831b,_0x2d6cfb,_0x208a43){const _0x8d1c13=_0x35fe9a;super(),l(this,'_state$',new _0x316dfa(null)),l(this,_0x8d1c13(0x36b),this['_state$']['asObservable']()),l(this,_0x8d1c13(0x17e)),l(this,_0x8d1c13(0x256),!0x1),l(this,_0x8d1c13(0x287),this[_0x8d1c13(0x36b)][_0x8d1c13(0x332)](_0x134cb9(_0x51b31b=>_0x51b31b?_0x51b31b[_0x8d1c13(0x30b)]:P[_0x8d1c13(0x2e8)]),_0x25b33b(0x1))),l(this,_0x8d1c13(0x269),!0x1),l(this,'_remoteChangesetQueue',[]),(this[_0x8d1c13(0x19e)]=_0x3dd122,this[_0x8d1c13(0x2c4)]=_0x2d3634,this['_session']=_0x2a02d1,this[_0x8d1c13(0x325)]=_0x54c5e0,this['_localCacheService']=_0xb92134,this[_0x8d1c13(0x330)]=_0x34e13d,this[_0x8d1c13(0x480)]=_0x509720,this[_0x8d1c13(0x398)]=_0x35c86c,this['_logService']=_0x58a33f,this[_0x8d1c13(0x3d3)]=_0x44a315,this[_0x8d1c13(0x3a2)]=_0x28831b,this[_0x8d1c13(0x31b)]=_0x2d6cfb,this[_0x8d1c13(0x477)]=_0x208a43);}get[_0x35fe9a(0x19c)](){const _0x33c4a3=_0x35fe9a;return this[_0x33c4a3(0x17e)];}async['init'](){const _0x1188cb=_0x35fe9a;if(this['state'])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x1188cb(0x31f)]();}[_0x35fe9a(0x285)](){const _0x23df02=_0x35fe9a;return this[_0x23df02(0x256)]=!0x0,_0x5b60bf(()=>{const _0x5e051c=_0x23df02;this[_0x5e051c(0x256)]=!0x1,this[_0x5e051c(0x3a6)]();});}['_updateState'](_0x1c5145){const _0x1e539b=_0x35fe9a;this[_0x1e539b(0x17e)]=_0x1c5145,this['_state$'][_0x1e539b(0x3be)](_0x1c5145);}async[_0x35fe9a(0x31f)](){const _0x4b1004=_0x35fe9a;var _0x2844aa;return this[_0x4b1004(0x3c2)](await this[_0x4b1004(0x28b)]()),this[_0x4b1004(0x477)]&&((_0x2844aa=this[_0x4b1004(0x477)])==null||_0x2844aa['editingUnit'](this[_0x4b1004(0x19e)]),this[_0x4b1004(0x382)](_0x5b60bf(this[_0x4b1004(0x477)][_0x4b1004(0x1b0)](this[_0x4b1004(0x19e)])[_0x4b1004(0x40e)](_0x2eafb2=>{const _0x4fd91e=_0x4b1004;this[_0x4fd91e(0x248)][_0x4fd91e(0x28f)](_0x4fd91e(0x313),'editing\x20status\x20changed\x20to',_0x2eafb2),_0x2eafb2===Ts[_0x4fd91e(0x416)]?(this[_0x4fd91e(0x3a2)][_0x4fd91e(0x18c)]({'content':this[_0x4fd91e(0x480)]['t']('collaboration.single-unit.warning'),'type':_0x1b5516['Warning']}),this[_0x4fd91e(0x31b)][_0x4fd91e(0x265)](new _0x1a9d94(this[_0x4fd91e(0x19e)])['id'],!0x1)):this[_0x4fd91e(0x31b)][_0x4fd91e(0x265)](new _0x1a9d94(this[_0x4fd91e(0x19e)])['id'],!0x0);})))),this[_0x4b1004(0x382)](_0x5b60bf(this['_session'][_0x4b1004(0x227)]['subscribe'](_0x4892f9=>{const _0x57908e=_0x4b1004;_0x4892f9===_e[_0x57908e(0x3fc)]?this[_0x57908e(0x25d)]():_0x4892f9===_e[_0x57908e(0x2e8)]&&this['_toggleOffline']();}))),this['disposeWithMe'](_0x5b60bf(this['_session'][_0x4b1004(0x3c4)][_0x4b1004(0x40e)](_0x5f3c2b=>{const _0x215dac=_0x4b1004;try{switch(_0x5f3c2b[_0x215dac(0x1b6)]){case _0x20b5fc[_0x215dac(0x178)]:{this[_0x215dac(0x40f)](_0x41e0db(_0x5f3c2b[_0x215dac(0x2c5)]));break;}case _0x20b5fc[_0x215dac(0x315)]:{this['_onRemoteACK'](_0x5f3c2b[_0x215dac(0x2c5)]);break;}case _0x20b5fc[_0x215dac(0x205)]:{this[_0x215dac(0x19a)]();break;}case _0x20b5fc[_0x215dac(0x29c)]:{this[_0x215dac(0x252)](_0x5f3c2b[_0x215dac(0x2c5)]['changesets'][_0x215dac(0x240)](_0x29dfc5=>_0x41e0db(_0x29dfc5)));break;}case _0x20b5fc[_0x215dac(0x380)]:this[_0x215dac(0x19a)]({'isPermissionRej':!0x0});}}catch(_0x2b3102){throw console[_0x215dac(0x185)]('Error\x20on\x20receiving\x20event',_0x2b3102),_0x2b3102;}}))),this[_0x4b1004(0x17e)];}[_0x35fe9a(0x44d)](){this['_transitionLocked']=!0x1;}[_0x35fe9a(0x225)](){const _0x3f51a9=_0x35fe9a;if(this[_0x3f51a9(0x269)])throw new Error(_0x3f51a9(0x2b1));this[_0x3f51a9(0x269)]=!0x0;}['_onLocalMutation'](_0x550026){const _0x8f90f9=_0x35fe9a;this['_lockTransition'](),this[_0x8f90f9(0x3c2)](this[_0x8f90f9(0x17e)]['appendMutation'](_0x550026)),this['_unlockTransition']();}[_0x35fe9a(0x40f)](_0x2b5ba2){const _0x398119=_0x35fe9a;if(!(_0x2b5ba2[_0x398119(0x232)]<=this[_0x398119(0x398)][_0x398119(0x1ae)](this['unitID']))){if(this['_collaborationPaused']){this['_remoteChangesetQueue']['push'](_0x2b5ba2);return;}this[_0x398119(0x2e3)](_0x2b5ba2);}}[_0x35fe9a(0x3a6)](){const _0x32361a=_0x35fe9a;this[_0x32361a(0x3cc)][_0x32361a(0x2b2)](_0x3c3422=>this[_0x32361a(0x2e3)](_0x3c3422)),this[_0x32361a(0x3cc)]=[];}[_0x35fe9a(0x2e3)](_0x432f74){const _0x276766=_0x35fe9a,_0x3b773b=this[_0x276766(0x330)][_0x276766(0x385)][_0x276766(0x2f3)](this[_0x276766(0x330)]['interceptor']['getInterceptPoints']()[_0x276766(0x46b)])(_0x432f74[_0x276766(0x3e5)],null)||_0x432f74[_0x276766(0x3e5)],_0x5397a0={..._0x432f74,'mutations':_0x3b773b};this['_lockTransition'](),this[_0x276766(0x3c2)](this[_0x276766(0x17e)][_0x276766(0x399)](_0x5397a0)),this['_unlockTransition']();}['_onRemoteACK'](_0x15620f){const _0x4c5047=_0x35fe9a;this['_lockTransition'](),this[_0x4c5047(0x3c2)](this[_0x4c5047(0x17e)]['onRemoteAck'](_0x15620f)),this[_0x4c5047(0x44d)]();}[_0x35fe9a(0x19a)](_0x161845){const _0xea1af=_0x35fe9a;this[_0xea1af(0x225)](),this['_updateState'](this[_0xea1af(0x17e)]['onRemoteRej'](_0x161845)),this[_0xea1af(0x44d)]();}['_onFetchMissResult'](_0x330901){const _0x2c711e=_0x35fe9a;if(!(this[_0x2c711e(0x17e)]instanceof W))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x1879b5=_0x330901['map'](_0x30fc23=>{const _0x22f02b=_0x2c711e,_0x1df176=this[_0x22f02b(0x330)][_0x22f02b(0x385)][_0x22f02b(0x2f3)](this[_0x22f02b(0x330)]['interceptor'][_0x22f02b(0x404)]()[_0x22f02b(0x46b)])(_0x30fc23[_0x22f02b(0x3e5)],null)||_0x30fc23['mutations'];return{..._0x30fc23,'mutations':_0x1df176};});this['_lockTransition'](),this[_0x2c711e(0x3c2)](this[_0x2c711e(0x17e)]['onMissedChangesetFetched'](_0x1879b5)),this[_0x2c711e(0x44d)]();}[_0x35fe9a(0x425)](){const _0xd24235=_0x35fe9a;this[_0xd24235(0x225)](),this['_updateState'](this[_0xd24235(0x17e)][_0xd24235(0x23b)]()),this[_0xd24235(0x44d)]();}[_0x35fe9a(0x25d)](){const _0x3ec1d7=_0x35fe9a;this['_lockTransition'](),this[_0x3ec1d7(0x3c2)](this['_state'][_0x3ec1d7(0x1fc)]()),this[_0x3ec1d7(0x44d)]();}async['_createInitialState'](){return new Promise(_0x2f07a4=>{const _0xd5855a=_0x2564;this[_0xd5855a(0x222)][_0xd5855a(0x227)][_0xd5855a(0x332)](_0x403f5b(0x1))[_0xd5855a(0x40e)](async _0x3d0a25=>{const _0x1735ba=_0xd5855a;_0x2f07a4(await this[_0x1735ba(0x464)](_0x3d0a25===_e[_0x1735ba(0x3fc)]));});});}[_0x35fe9a(0x1cc)](){const _0x5e4d6b=_0x35fe9a,_0x1bb934=this[_0x5e4d6b(0x19e)];return{'onStateChange':(_0x45e641,_0x53cdd9)=>{const _0x1e0707=_0x5e4d6b;if(_0x45e641!==this[_0x1e0707(0x17e)])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x45e641['status']+_0x1e0707(0x201)+_0x53cdd9[_0x1e0707(0x30b)]+_0x1e0707(0x35e)+this[_0x1e0707(0x17e)][_0x1e0707(0x30b)]);this[_0x1e0707(0x3c2)](_0x53cdd9);},'onSendChangeset':_0x57ae7d=>{const _0x490b4f=_0x5e4d6b,_0x185b1b={'eventID':_0x20b5fc[_0x490b4f(0x1b1)],'data':{'unitID':_0x57ae7d[_0x490b4f(0x19e)],'unitType':this[_0x490b4f(0x2c4)],'changeset':_0x57ae7d,'memberID':this['_session']['getMemberID']()}};this[_0x490b4f(0x222)][_0x490b4f(0x36c)](_0x185b1b,this['unitID']);},'onMissingChangesets':({from:_0x1a8f59,to:_0x5b513a})=>{const _0x42b962=_0x5e4d6b;this[_0x42b962(0x248)]['debug']('[CollaborationEntity]',_0x42b962(0x1fe)+_0x1a8f59+_0x42b962(0x1c3)+_0x5b513a);const _0x25b59d={'eventID':_0x20b5fc[_0x42b962(0x20a)],'data':{'unitID':_0x1bb934,'unitType':this[_0x42b962(0x2c4)],'from':_0x1a8f59,'to':_0x5b513a}};this[_0x42b962(0x222)]['send'](_0x25b59d,this[_0x42b962(0x19e)]);}};}async[_0x35fe9a(0x464)](_0x5bf3e1){const _0x298000=_0x35fe9a;var _0x25eabc,_0x545f68;const _0x22da4e=await this[_0x298000(0x3d7)][_0x298000(0x299)](this['unitID']),_0x317c6c=(_0x25eabc=_0x22da4e==null?void 0x0:_0x22da4e[_0x298000(0x3e5)])!=null?_0x25eabc:[],_0x398fee=(_0x545f68=_0x22da4e==null?void 0x0:_0x22da4e[_0x298000(0x2be)])!=null?_0x545f68:null,_0x12bf5d=this[_0x298000(0x19e)];try{this[_0x298000(0x305)](_0x398fee,_0x317c6c);}catch(_0x2af1c5){this[_0x298000(0x248)]['error'](_0x2af1c5);}const _0x35bd88=this[_0x298000(0x1cc)]();if(_0x5bf3e1){const _0x1f9a9e=Ds(this[_0x298000(0x325)],_0x12bf5d,this[_0x298000(0x2c4)],_0x398fee,_0x317c6c,_0x35bd88);return _0x1f9a9e instanceof V?_0x1f9a9e[_0x298000(0x1ec)]():(_0x1f9a9e instanceof k||_0x1f9a9e instanceof K)&&_0x1f9a9e['resend'](),_0x1f9a9e;}return this['_injector'][_0x298000(0x26b)](X,_0x12bf5d,this[_0x298000(0x2c4)],_0x398fee,_0x317c6c,_0x35bd88);}['_replayCachedMutations'](_0x239471,_0x23b787){const _0x4ee0c7=_0x35fe9a;var _0x5ec58d,_0x3eb002;const _0xa55229=this[_0x4ee0c7(0x330)][_0x4ee0c7(0x385)][_0x4ee0c7(0x2f3)](this[_0x4ee0c7(0x330)][_0x4ee0c7(0x385)][_0x4ee0c7(0x404)]()[_0x4ee0c7(0x46b)]);(_0x5ec58d=_0xa55229((_0x239471==null?void 0x0:_0x239471[_0x4ee0c7(0x3e5)])||[],null))==null||_0x5ec58d['forEach'](_0x513d36=>this[_0x4ee0c7(0x3d3)][_0x4ee0c7(0x356)](_0x513d36['id'],_0x513d36[_0x4ee0c7(0x3b4)])),(_0x3eb002=_0xa55229(_0x23b787||[],null))==null||_0x3eb002[_0x4ee0c7(0x2b2)](_0x30e3e6=>this[_0x4ee0c7(0x3d3)]['executeCommand'](_0x30e3e6['id'],_0x30e3e6['params']));}};We=Je([S(0x3,_0x5b3e40(_0x331eca)),S(0x4,_0x5b3e40(D)),S(0x5,_0x5b3e40(_0x3c2828)),S(0x6,_0x5b3e40(_0x210cec)),S(0x7,_0x5b3e40(_0x53eb10)),S(0x8,_0x294e85),S(0x9,_0x373f07),S(0xa,_0x22dc6a),S(0xb,_0x58ae2b),S(0xc,_0xb29030(Xe))],We);let dt=class extends We{constructor(_0xe0633e,_0x307876,_0x64fdd0,_0x31de07,_0x4a3265,_0x141a00,_0x53b2fe,_0x450416,_0x455383,_0x1944ce,_0x13ea40,_0x12f754,_0x23f6b9,_0x36b6fe,_0xdddf1e,_0x4e62ee,_0x41512d){const _0x141dcd=_0x35fe9a;super(_0xe0633e,_0x307876,_0x64fdd0,_0x31de07,_0x4a3265,_0x141a00,_0x53b2fe,_0x450416,_0x23f6b9,_0x36b6fe,_0xdddf1e,_0x4e62ee,_0x41512d),this[_0x141dcd(0x19e)]=_0xe0633e,this[_0x141dcd(0x279)]=_0x307876,this[_0x141dcd(0x1d6)]=_0x64fdd0,this['_docStateChangeManagerService']=_0x455383,this[_0x141dcd(0x422)]=_0x1944ce,this[_0x141dcd(0x3aa)]=_0x13ea40,this['_docSyncEditingCollabCursorService']=_0x12f754;}['_createHandler'](){const _0x16e1f5=_0x35fe9a,_0x21aa94=super[_0x16e1f5(0x1cc)]();return _0x21aa94['onTransformIME']=_0x2b0914=>this[_0x16e1f5(0x422)][_0x16e1f5(0x42f)](_0x2b0914),_0x21aa94[_0x16e1f5(0x1d4)]=_0x422264=>this[_0x16e1f5(0x3aa)][_0x16e1f5(0x273)](_0x422264),_0x21aa94[_0x16e1f5(0x176)]=_0x1e5a5c=>this[_0x16e1f5(0x1ef)][_0x16e1f5(0x324)](_0x1e5a5c),_0x21aa94[_0x16e1f5(0x371)]=_0xe3e015=>this['_docTransformIMECacheService'][_0x16e1f5(0x1e8)](_0xe3e015),_0x21aa94;}async[_0x35fe9a(0x31f)](){const _0x9bd343=_0x35fe9a,_0x50f1bc=await super[_0x9bd343(0x31f)]();return this[_0x9bd343(0x3e1)][_0x9bd343(0x316)]['pipe'](_0x2c14e9(this[_0x9bd343(0x3b0)]))['subscribe'](_0x28ae1e=>{const _0x560958=_0x9bd343;if(_0x28ae1e==null)return;const {unitId:_0x3a893b,redoState:_0x4d0b7a,commandId:_0x21b458}=_0x28ae1e;if(_0x3a893b!==this[_0x560958(0x19e)])return;const _0x35dd0d={'id':_0x21b458,'type':_0x4c88fc[_0x560958(0x18e)],'params':{'unitId':_0x3a893b,'actions':_0x4d0b7a[_0x560958(0x33e)],'textRanges':null}};this['_onLocalMutation'](_0x35dd0d);}),_0x50f1bc;}};dt=Je([S(0x3,_0x5b3e40(_0x331eca)),S(0x4,_0x5b3e40(D)),S(0x5,_0x5b3e40(_0x3c2828)),S(0x6,_0x5b3e40(_0x210cec)),S(0x7,_0x5b3e40(_0x53eb10)),S(0x8,_0x5b3e40(_0xa21473)),S(0x9,_0x5b3e40(Be)),S(0xa,_0x5b3e40(Ve)),S(0xb,_0x5b3e40(Mt)),S(0xc,_0x294e85),S(0xd,_0x373f07),S(0xe,_0x22dc6a),S(0xf,_0x58ae2b),S(0x10,_0xb29030(Xe))],dt);let ft=class extends We{constructor(_0x4f1ca8,_0x439825,_0x53fd62,_0x11d05d,_0x4aaf77,_0x1143a4,_0x16bce2,_0x54223f,_0x5d1025,_0x579f05,_0x1fb2f2,_0x1d7f0c,_0xf99392,_0x1b9cbf){const _0x3d8f0a=_0x35fe9a;super(_0x4f1ca8,_0x439825,_0x53fd62,_0x11d05d,_0x4aaf77,_0x1143a4,_0x16bce2,_0x54223f,_0x579f05,_0x1fb2f2,_0x1d7f0c,_0xf99392,_0x1b9cbf),this[_0x3d8f0a(0x19e)]=_0x4f1ca8,this[_0x3d8f0a(0x279)]=_0x439825,this['session']=_0x53fd62,this[_0x3d8f0a(0x200)]=_0x5d1025;}[_0x35fe9a(0x1cc)](){const _0x2582c9=_0x35fe9a,_0x59881e=super[_0x2582c9(0x1cc)]();return _0x59881e[_0x2582c9(0x1d4)]=_0xb21171=>this[_0x2582c9(0x200)][_0x2582c9(0x273)](_0xb21171),_0x59881e;}async[_0x35fe9a(0x31f)](){const _0x32e346=_0x35fe9a,_0x17c667=await super['_init']();return this[_0x32e346(0x382)](this[_0x32e346(0x3d3)][_0x32e346(0x384)]((_0x33d4c3,_0x3f7820)=>{const _0x4ddb23=_0x32e346;if(_0x33d4c3[_0x4ddb23(0x279)]!==_0x4c88fc['MUTATION']||_0x3f7820!=null&&_0x3f7820[_0x4ddb23(0x217)]||_0x3f7820!=null&&_0x3f7820[_0x4ddb23(0x21f)])return;const _0x2d36f9=_0x33d4c3[_0x4ddb23(0x3b4)];if((_0x2d36f9==null?void 0x0:_0x2d36f9[_0x4ddb23(0x45b)])!==this[_0x4ddb23(0x19e)])return;const _0x44b8e7=_0x33d4c3,_0x4df3ea=this[_0x4ddb23(0x330)][_0x4ddb23(0x385)][_0x4ddb23(0x2f3)](this[_0x4ddb23(0x330)][_0x4ddb23(0x385)][_0x4ddb23(0x404)]()[_0x4ddb23(0x173)])([_0x44b8e7],null)||[_0x44b8e7];this[_0x4ddb23(0x44b)](_0x4df3ea[0x0]);})),_0x17c667;}};ft=Je([S(0x3,_0x5b3e40(_0x331eca)),S(0x4,_0x5b3e40(D)),S(0x5,_0x5b3e40(_0x3c2828)),S(0x6,_0x5b3e40(_0x210cec)),S(0x7,_0x5b3e40(_0x53eb10)),S(0x8,_0x5b3e40(ke)),S(0x9,_0x294e85),S(0xa,_0x373f07),S(0xb,_0x22dc6a),S(0xc,_0x58ae2b),S(0xd,_0xb29030(Xe))],ft);const Zt=[_0x35fe9a(0x336),'jiqing500',_0x35fe9a(0x326),_0x35fe9a(0x1e2),_0x35fe9a(0x1d2),_0x35fe9a(0x17f)];class At extends _0x2b2023{constructor(){const _0x245e8e=_0x35fe9a;super(...arguments),l(this,_0x245e8e(0x46d),new Map()),l(this,_0x245e8e(0x2c6),0x0);}[_0x35fe9a(0x38f)](_0x513080){const _0x19c61a=_0x35fe9a;if(this[_0x19c61a(0x46d)][_0x19c61a(0x189)](_0x513080))return this[_0x19c61a(0x46d)]['get'](_0x513080);const _0x45cbcc=Zt[this[_0x19c61a(0x2c6)]];return this[_0x19c61a(0x2c6)]=(this[_0x19c61a(0x2c6)]+0x1)%Zt['length'],this[_0x19c61a(0x46d)][_0x19c61a(0x445)](_0x513080,_0x45cbcc),_0x45cbcc;}}var kn=Object['defineProperty'],Wn=Object['getOwnPropertyDescriptor'],Gn=(_0x3f9bdb,_0x323d86,_0x43ad53,_0x8be58b)=>{for(var _0x2d2fa7=_0x8be58b>0x1?void 0x0:_0x8be58b?Wn(_0x323d86,_0x43ad53):_0x323d86,_0x5a2544=_0x3f9bdb['length']-0x1,_0x560753;_0x5a2544>=0x0;_0x5a2544--)(_0x560753=_0x3f9bdb[_0x5a2544])&&(_0x2d2fa7=(_0x8be58b?_0x560753(_0x323d86,_0x43ad53,_0x2d2fa7):_0x560753(_0x2d2fa7))||_0x2d2fa7);return _0x8be58b&&_0x2d2fa7&&kn(_0x323d86,_0x43ad53,_0x2d2fa7),_0x2d2fa7;},ae=(_0x4884e1,_0xba41ff)=>(_0x360f72,_0x4b9812)=>_0xba41ff(_0x360f72,_0x4b9812,_0x4884e1);const Yn=0x12c,Kn=0x64,Xn=()=>{let _0x1f79f0=[],_0x3709fe=!0x1;return _0x8a1ac=>{_0x1f79f0['push'](_0x8a1ac),_0x3709fe||(_0x3709fe=!0x0,setTimeout(()=>{_0x1f79f0['forEach'](_0x7b7820=>_0x7b7820()),_0x1f79f0=[],_0x3709fe=!0x1;}));};};let gt=class extends _0x2f203c{constructor(_0x2164f2,_0x424688,_0x20a0a0,_0x39bdac,_0x294bfd,_0x583c58,_0x1ed166,_0x273a46){const _0x21fbdc=_0x35fe9a;super(),l(this,_0x21fbdc(0x411),!0x1),l(this,'_init',!0x1),l(this,_0x21fbdc(0x42b),new _0x316dfa(new Map())),l(this,_0x21fbdc(0x403),this[_0x21fbdc(0x42b)][_0x21fbdc(0x36f)]()),l(this,'_roomMembers$',new _0x316dfa([])),l(this,'roomMembers$',this[_0x21fbdc(0x417)][_0x21fbdc(0x332)](_0x4831d6(Yn))),l(this,_0x21fbdc(0x172),_0x20a066((_0x3f23f,_0x13207d)=>{const _0x3b1641=_0x21fbdc,_0x317c3f={'eventID':_0x20b5fc['UPDATE_CURSOR'],'data':{'unitID':this[_0x3b1641(0x19e)],'memberID':this['_session'][_0x3b1641(0x3e4)](),'selection':_0x1c04be(_0x3f23f,_0x13207d[_0x3b1641(0x1b8)])}};this[_0x3b1641(0x222)][_0x3b1641(0x36c)](_0x317c3f,this['unitID']);},Kn)),(this[_0x21fbdc(0x19e)]=_0x2164f2,this['_session']=_0x424688,this[_0x21fbdc(0x325)]=_0x20a0a0,this[_0x21fbdc(0x45a)]=_0x39bdac,this[_0x21fbdc(0x367)]=_0x294bfd,this['_univerInstanceService']=_0x583c58,this[_0x21fbdc(0x3d3)]=_0x1ed166,this[_0x21fbdc(0x430)]=_0x273a46);}get['cursorInfo'](){const _0x3c551a=_0x35fe9a;return this[_0x3c551a(0x42b)][_0x3c551a(0x293)]();}get[_0x35fe9a(0x25b)](){const _0x4243e2=_0x35fe9a;return this[_0x4243e2(0x417)][_0x4243e2(0x293)]();}[_0x35fe9a(0x264)](){const _0x4bc937=_0x35fe9a;super[_0x4bc937(0x264)](),this[_0x4bc937(0x42b)][_0x4bc937(0x3be)](new Map()),this['_cursorInfo$'][_0x4bc937(0x2e1)](),this[_0x4bc937(0x417)][_0x4bc937(0x3be)]([]),this['_roomMembers$'][_0x4bc937(0x2e1)]();}[_0x35fe9a(0x2fb)](){const _0x158436=_0x35fe9a;this[_0x158436(0x31f)]||(this[_0x158436(0x31f)]=!0x0,this[_0x158436(0x222)][_0x158436(0x227)]['pipe'](_0x2c14e9(this['dispose$']))[_0x158436(0x40e)](_0x2ea144=>{const _0x5ec6f9=_0x158436;_0x2ea144===_e[_0x5ec6f9(0x3fc)]?this[_0x5ec6f9(0x25d)]():this['_toggleOffline']();}),this[_0x158436(0x222)][_0x158436(0x3c4)][_0x158436(0x332)](_0x2c14e9(this[_0x158436(0x3b0)]))[_0x158436(0x40e)](_0x59f59c=>{const _0x5c0cf2=_0x158436,_0x462715=_0x59f59c[_0x5c0cf2(0x1b6)];_0x462715===_0x20b5fc['UPDATE_CURSOR']&&this[_0x5c0cf2(0x181)](_0x59f59c),_0x462715===_0x20b5fc[_0x5c0cf2(0x42e)]&&this[_0x5c0cf2(0x3da)](_0x59f59c);}),this[_0x158436(0x3fe)](),this[_0x158436(0x382)](this['_commandService'][_0x158436(0x384)](_0x3fcfc0=>{const _0x2683bd=_0x158436;if(this[_0x2683bd(0x411)]&&_0x3fcfc0['id']===_0x49c1dc['id']&&_0x3fcfc0[_0x2683bd(0x3b4)]['unitId']===this[_0x2683bd(0x19e)]){const _0x3b317e=_0x3fcfc0[_0x2683bd(0x3b4)];this[_0x2683bd(0x172)](_0x3b317e[_0x2683bd(0x362)],_0x3b317e[_0x2683bd(0x289)][0x0]);}})));}['_onCursorUpdate'](_0x498078){const _0x8f1860=_0x35fe9a;var _0x245d98,_0xe9037b;const {memberID:_0x456f6c,selection:_0x521c45}=_0x498078[_0x8f1860(0x2c5)],{sheetName:_0x37388c,range:_0x55dfc0}=_0x3fe7cb(_0x521c45),_0x24b88c={'name':(_0xe9037b=(_0x245d98=this[_0x8f1860(0x367)][_0x8f1860(0x286)](this[_0x8f1860(0x19e)],_0x456f6c))==null?void 0x0:_0x245d98[_0x8f1860(0x2f9)])!=null?_0xe9037b:_0x8f1860(0x1b3),'range':this['_getMergeRange'](_0x37388c,_0x55dfc0),'sheetID':_0x37388c,'color':this[_0x8f1860(0x45a)][_0x8f1860(0x38f)](_0x456f6c),'selection':_0x521c45},_0x12c76d=this[_0x8f1860(0x1dc)];_0x12c76d[_0x8f1860(0x445)](_0x456f6c,_0x24b88c),this[_0x8f1860(0x42b)]['next'](_0x12c76d);}['_onCursorDelete'](_0xfb914a){const _0x4ab518=_0x35fe9a,{memberID:_0x4ba074}=_0xfb914a[_0x4ab518(0x2c5)],_0x24afe3=this[_0x4ab518(0x1dc)];_0x24afe3[_0x4ab518(0x46f)](_0x4ba074),this[_0x4ab518(0x42b)][_0x4ab518(0x3be)](_0x24afe3);}['_getMergeRange'](_0xfc807c,_0x4f15b9){const _0x18c05c=_0x35fe9a;var _0x27b921,_0x334a1b;const _0x5d3030=(_0x334a1b=(_0x27b921=this[_0x18c05c(0x262)][_0x18c05c(0x3d0)](this[_0x18c05c(0x19e)]))==null?void 0x0:_0x27b921[_0x18c05c(0x3cd)](_0xfc807c))==null?void 0x0:_0x334a1b[_0x18c05c(0x18d)]();return(_0x5d3030==null?void 0x0:_0x5d3030[_0x18c05c(0x394)](_0x27d56a=>_0x22f9e9[_0x18c05c(0x45c)](_0x27d56a,_0x4f15b9)))||_0x4f15b9;}[_0x35fe9a(0x3fe)](){const _0x2ac2d1=_0x35fe9a,_0x13ef24=new _0x282665(),_0x28f44b=Xn(),_0x530b77=()=>{const _0x3aa362=_0x2564;_0x13ef24[_0x3aa362(0x264)]();const _0x1ddacf=(_0x4c8ae2,_0x58793f,_0x5cbf05,_0x2f5469)=>{const _0x1d5851=_0x3aa362;let _0x5418da=[];switch(_0x4c8ae2['id']){case _0x4d5b56['DeleteRangeMoveLeftCommandId']:{_0x5418da=_0x6ca0a5(_0x4c8ae2,_0x2f5469);break;}case _0x4d5b56[_0x1d5851(0x34b)]:{_0x5418da=_0x1e2cc5(_0x4c8ae2,_0x2f5469);break;}case _0x4d5b56['InsertColCommandId']:{_0x5418da=_0x35ab5a(_0x4c8ae2,_0x2f5469);break;}case _0x4d5b56['InsertRangeMoveDownCommandId']:{_0x5418da=_0x153b04(_0x4c8ae2,_0x2f5469);break;}case _0x4d5b56[_0x1d5851(0x208)]:{_0x5418da=_0x5b1c01(_0x4c8ae2,_0x2f5469);break;}case _0x4d5b56[_0x1d5851(0x20f)]:{_0x5418da=_0x448db0(_0x4c8ae2,_0x2f5469);break;}case _0x4d5b56['MoveRangeCommandId']:{_0x5418da=_0x3fb244(_0x4c8ae2,_0x2f5469);break;}case _0x4d5b56[_0x1d5851(0x41e)]:{_0x5418da=_0x22f603(_0x4c8ae2,_0x2f5469);break;}case _0x4d5b56[_0x1d5851(0x2dc)]:{_0x5418da=_0x16f5d1(_0x4c8ae2,_0x2f5469);break;}}const _0x470f9f=_0x577367(_0x5418da,_0x2f5469),_0x4ae27a=this[_0x1d5851(0x1dc)][_0x1d5851(0x3e8)](_0x58793f);if(_0x4ae27a&&_0x470f9f){const _0x86af69={..._0x4ae27a,'range':_0x470f9f};this[_0x1d5851(0x1dc)][_0x1d5851(0x445)](_0x58793f,_0x86af69),_0x28f44b(()=>{const _0x28b673=_0x1d5851,_0x4ce874=this[_0x28b673(0x430)]['registerRefRange'](_0x470f9f,_0x54037a=>(_0x4ce874[_0x28b673(0x264)](),_0x1ddacf(_0x54037a,_0x58793f,_0x5cbf05,_0x470f9f)));_0x13ef24[_0x28b673(0x1f1)](_0x4ce874);});}return{'redos':[],'undos':[]};};this[_0x3aa362(0x1dc)][_0x3aa362(0x2b2)]((_0x46e048,_0x10a133)=>{const _0x223a33=_0x3aa362,{range:_0x30f1f5,sheetID:_0x3a05bc}=_0x46e048,_0x1a1b1c=this[_0x223a33(0x430)]['registerRefRange'](_0x30f1f5,_0x24e309=>(_0x1a1b1c[_0x223a33(0x264)](),_0x1ddacf(_0x24e309,_0x10a133,_0x3a05bc,_0x30f1f5)));_0x13ef24[_0x223a33(0x1f1)](_0x1a1b1c);});};this[_0x2ac2d1(0x382)](_0x5b60bf(this[_0x2ac2d1(0x42b)][_0x2ac2d1(0x40e)](()=>{_0x530b77();})));}[_0x35fe9a(0x25d)](){const _0x5329ef=_0x35fe9a;var _0x1986e8,_0x52f3c1;if(this[_0x5329ef(0x411)]=!0x0,((_0x1986e8=this[_0x5329ef(0x262)]['getFocusedUnit']())==null?void 0x0:_0x1986e8[_0x5329ef(0x22b)]())!==this[_0x5329ef(0x19e)])return;const _0x34d559=(_0x52f3c1=this[_0x5329ef(0x325)][_0x5329ef(0x3e8)](_0x5927f3)[_0x5329ef(0x347)]())==null?void 0x0:_0x52f3c1[0x0],_0x52363c=this[_0x5329ef(0x262)][_0x5329ef(0x395)](_0x9a39b6[_0x5329ef(0x339)])[_0x5329ef(0x255)]();_0x34d559&&_0x52363c&&this[_0x5329ef(0x172)](_0x52363c[_0x5329ef(0x1b2)](),_0x34d559);}[_0x35fe9a(0x425)](){this['_online']=!0x1;}};function _0x4643(){const _0x18fe6e=['_init','svg','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','className','url(#$1','syncEditingCollabCursor','_injector','verdancy600','storage','extend','updateOfflineData','round','conflict.title','_http','_clearLocalCache','pushState','_scene','_compressMutationService','_rescheduleHeartbeatEvent','pipe','_handleJoinEvent','ERROR_IMAGE_TYPE','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','purple300','indexOf','_incrementRevisionNumber','UNIVER_SHEET','univer-online','startColumn','_syncEditingCollabCursor','Error','actions','collaborators','_transformIMECache','call','UNAUTHENTICATED','_getSendChangesetTimeout','target','restore','/object/','getSelections','_transformService','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','[CollaborationSessionService]:\x20socket\x20error','DeleteRangeMoveUpCommandId','collab-text-range-','getUndoRedoMutationParamsCache','_lastPointer','cmd','rgba(255,\x20255,\x20255,\x200.01)','getUnhiddenWorksheets','generateRandomId','Warning','onMouseMove','_isPermissionRej','executeCommand','newValue','getConfig','workbook','currentColor','_hover','baseRev','SNAPSHOT_HAS_BEEN_REMOVED','\x0aCurrent:\x20','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','univer-online-status','_docSkeletonManagerService','subUnitId','_drawAnchor','_transformUndoredo','_showConflictNotification','arc','_memberService','localeService','_updateURLWithCurrentState','?size=','state$','send','connection\x20error','_decreaseWaiting','asObservable','_socket','onTransformRemoteChangesetByIMECache','bottom','[SyncedState]:\x20received\x20rejection.','LICENSE_MAX_UNITS_EXCEEDED','then','/universer-api/stream/file/upload','_acknowledgedAwaitingChangeset','collaborationUniverTypes','_waitForHeartbeatResponse','getOwnPropertySymbols','_retryConnectingTimer','updateMember','propertyIsEnumerable','_snapshotServerService','csAckEvent','PERMISSION_REJ','registerHTTPInterceptor','disposeWithMe','values','onCommandExecuted','interceptor','_loadDoc','removeMember','getResourcesRequest','TOO_MANY_REQUESTS','_sendHeartbeatTimer','_handleEvent','row','[CollaborationSession]','change$','assignAColorForMemberID','_selfUnitIDs','_httpService','/-/object/-/batch_allowed','/object','find','getCurrentUnitForType','defIds','_unitID','_revisionService','onRemoteChangeset','result','_getAPIPrefixPath','PERMISSION_DENIED','_getAPIPrefix','makeDirty','_unitStatus','registerOnClose','disableLocalCache','_messageService','csRejEvent','_executeRemoteChangeset','_socket$','_exhaustRemoteChangesetQueue','url','session.connection-failed','fetch_missing','_docTransformSelectionsService','IDLE','getCollabEntity','_removeCollabCursors','collabStatus.offline','UNKNOWN_CMD','dispose$','_entities','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','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','params','m2Prime','APPLY_REJECT','COMPLETION_FINISHED','post','getCollabEntity$','resourceIDs','_scheduleSaving','readAsDataURL','_substituteRedoStack','next','_replaceFileID','on-line-single','/new_changes','_updateState','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','event$','fetchMissingChangesets','registerComponent','getDataModel','_scheduleHeartbeat','SEND_CHANGESET_TIMEOUT','onRemoteAck','addImageSourceCache','_remoteChangesetQueue','getSheetBySheetId','entries','_heartbeatTimer','getUniverSheetInstance','update','RETRY_CONNECTING_MAX_COUNT','_commandService','univer-pro.collaboration-client.single-active-unit-service','column','urlChange$','_localCacheService','MSG_FOR_ERROR','getTypeOfUnitDisposed$','_onCursorDelete','setInterval','objectID','SNAPSHOT_URL_KEY','_getUploadFileURL','transformChangesets','HELLO','_docStateChangeManagerService','enableOfflineEditing','_onUserJoin','getMemberID','mutations','unsubscribe','_scheduleClearOtherTimer','get','clear','_saveCache','ranges','LIVESHARE_REQUEST_HOST','addObject','currentSkeleton$','setUndoRedoMutationParamsCache','collaboratorID','permissionRejEvent','putCollaborators','routeKey','CHANGESET_REVISION_CONFILICT','objectActions','_getSnapshotAPIPrefix','leaveEvent','onSendChangeset','_clearTimeoutTimer','48107774fUtykI','_getUndoStack','ONLINE','ERROR_IMAGE','_onRefRangeChange','isArray','confirm','[OfflineState]:\x20received\x20changeset.','uni.network.url-service','cursorInfo$','getInterceptPoints','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','[PendingState]:\x20unhandled\x20univer\x20type:\x20','FileId','UNKNOWN_CODE','UNIVER_SLIDE','open$','_awaitingChangeset','_undoRedoService','hovered','subscribe','_onRemoteChangeset','_drawRange','_online','session.will-retry','resolve','triggerDblclick','getRenderById','OTHER_CLIENTS_EDITING','_roomMembers$','_removeClearOtherTimer','46AnjcPP','_clearOtherTimers','conflict','originalMeta','_pendingMutations','RemoveColCommandId','UPDATE_CURSOR','prototype','startsWith','_docTransformIMECacheService','getImageSourceCache','/universer-api/comb','_toggleOffline','_document','userID','none','RECV','fillText','_cursorInfo$','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','[DataLoaderController]','USERS_LEAVE','transformIMECache','_refRangeService','/universer-api/authz','failed\x20to\x20apply\x20missed\x20changesets!','_syncEditingCollabCursorService','addObjects','image/png','_onUserLeave','location','_hovered','JOINING','joinEvent','message$','_tryEnsureSocket','HEARTBEAT_INTERVAL','HEARTBEAT','_send','[CollaborationState]:\x20apply\x20error!','symbol','_urlService','length','setItem','set','FromArray','href','defineProperty','_configService','Starting','_onLocalMutation','objectType','_unlockTransition','startRow','subscribeEvent','_transformRemoteChangesetByIMECache','_event$','socketService','438pztSEY','file','list','M0\x200H16V16H0z','[FetchMissState]','_anchor','_render','_colorAssignService','unitId','contains','_shapes','assign','pending','onMissedChangesetFetched','/universer-api/file/{fileID}/sign-url','getImage','fillRule','_createInitialStateImpl','synced','LEAVE','xlink:href','_range','socket\x20open.','createSocket','COMPRESS_MUTATION_APPLY','encodeURIComponent','_assignedColors','popstate','delete','OffLineSingle','collabStatus.syncing','push','DEFAULT_FILE_NAME','/resources','40518IsuvYa','_sendHeartbeat','_singleActiveUnitService','_name','incrementRevForDocument','getRangePointData','LIVESHARE_OPERATION','NO_OTHER_CLIENTS_EDITING','loadDoc','put','clearInterval','_localeService','subunit','patch','appendMutation','unshift','_sessionStatus$','registerBeforeClose','USERS_ENTER','[PendingState]:\x20received\x20acknowledgement.','onRemoteRej','save','_updateLocalCursor','COMPRESS_MUTATION_SEND','_anchorDot','permission.title','onSyncEditingCollabCursor','children','NEW_CHANGESETS','div','allowed','on-line-single_clip0_910_349','findNodePositionByCharIndex','ws://127.0.0.1:8000/universer-api/comb/connect','_state','gold400','_getRedoStack','_onCursorUpdate','_handleLeaveEvent','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','getScrollXYByRelativeCoords','error','_status$','_unitId','getViewModel','has','json','_scheduleCollaborationTimeoutTimer','show','getMergeData','MUTATION','catch','_setupSubUnitSync','_members','NOT_FOUND','_loadSheet','HEARTBEAT_TIMEOUT','_checkMissing','lineTo','clearTimeout','_collaborationController','_getCtorByUniverType','_onRemoteRejected','text','state','code','unitID','_getSaveTimeout','Ready','_removeRoom','isEditing','loadSheet','whenReady','submit\x20changeset\x20error!','listCollaborators','_hideTimer','CONNECTOR_DATA_TOO_LARGE','permission.content','_onConnectionFailed','_getScale','transformMutation','APPLY_PERMISSION_DENIED','getCurrentRevForDocument','getTime','getUnitStatus$','SUBMIT_CHANGESET','getSheetId','Unknown\x20user','_saveTaskMap','univer-online-status-title','eventID','unit-cache-','range','HEADER_MENU','APPLY_REVISION_CONFILICT','activeSheet$','path','univerjs-icon\x20univerjs-icon-','setAlpha','clipPath','joinRsp','deepClone','pluginName','\x20to\x20','enableLocalCache','_unitOnClients','_scheduleTimestamp','getOffsetConfig','collabStatus.fetchMiss','LICENSE_IMPORT_SIZE_EXCEEDED','_userManagerService','_themeService','_createHandler','_waitCount','saveSheetBlock','deleteCollaborator','YUUMI_URL_COL_OUT_OF_RANGE','UNRECOGNIZED','blue400','random','onTransformSelections','sessionStatus','session','setTimeout','displayName','UNIVER_UNKNOWN','online','getOwnPropertyDescriptor','cursorInfo','awaiting','_getSignURL','8020880owyrQp','_getAnchorBounding','AWAITING','red300','_onJoinRoomEvent','[CollaborationUndoRedoService]','_draw','removeParam','_onConnectionOpen','transformRemoteChangeset','transformByState','includes','_imageSourceCache','_schedule','LIVESHARE_TERMINATE','textRanges','_docSyncEditingCollabCursorService','LICENSE_EXPORT_SIZE_EXCEEDED','add','UNIVER_DOC','listRoles','_getCurrentRevision','LIVESHARE_NEW_HOST','UniverIcon','_initStatusComponent','saveOfflineData','_localStorageService','_queuedRemoteChangesets','_scheduleReconnection','toggleOnline','top','fetching\x20missing\x20changesets\x20from\x20','transformMutationsWithChangeset','_sheetTransformSelectionsService','\x0aAfter:\x20','123lvVwNt','_getSheetObject','history','CHANGESET_REJ','defs','_onConflict','InsertRangeMoveRightCommandId','offline','FETCH_MISSING','_ws','_socketService','univer-pro.collaboration-client-socket-service','ACTIVE_UNIT_EVENT_CHANNEL','InsertRowCommandId','#FFF','replace','doc.mutation.rich-text-editing','currentTheme$','_collabCursorController','_redoStacks','[UniverCollaborationClientPlugin]','fromCollab','OnLineSingle','replaceState','1840kYwwQB','attrs','reject','_textBubble','_sessions','onlyLocal','/unit/','_updateStatus','_session','_timeoutTimer','c2Prime','_lockTransition','m1Prime','sessionStatus$','height','/rev/','measureText','getUnitId','_cachedData','apply','_collaborationTimeoutTimer','\x20in\x20_schedule.','liveShareNewHost','NOT_COLLAB','revision','getActiveRange','setWaitCount','endColumn','_sendingTimer','endRow','[PendingState]:\x20received\x20rejection.','updateCursorEvent','[OfflineState]:\x20received\x20rejection.','toggleOffline','colorChannel1','_id','/allowed','_socketReady','map','_handleHeartbeatEvent','SYNCED','evenodd','image/bmp','toString','getTypeOfUnitAdded$','_labelPosition','_logService','sheets','/collaborator','_entityInit$','parse','AWAITING_WITH_PENDING','[OfflineState]:\x20received\x20acknowledgement.','CONFLICT','_transformStack','_socketMessageSubscription','_onFetchMissResult','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_startCollaboration','getActiveSheet','_collaborationPaused','_fetchMissChangesets','42840hfVWas','_exhaustSavingTask','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','roomMembers','reduce','_toggleOnline','awaiting_with_pending','min','url(#off-line-single_clip0_910_343)','resend','_univerInstanceService','key','dispose','updatePermissionPoint','_collabCursorState$','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','getCellPositionByOffset','_transitionLocked','create','createInstance','_substituteUndoStack','setShapeProps','setActiveRange','translate(.97)','1em','_updateLocalCache','?url=','transformSelections','_clearHeartbeatTimer','roomInfos','5448190HEBbxN','_cursors','width','type','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','FAIL','string','transform','hide','_clearScheduledTask','newCsEvent','SNAPSHOT_INVALID_SNAPSHOT','use','setParam','concat','pauseCollaboration','getMember','status$','/universer-api/oidc/authpage','selections','_handler','_createInitialState','_HTTPService','fillStyle','transformUndoRedo','debug','split','_config','_transformUndoRedoStack','getValue','COLLAB_WEB_SOCKET_URL','createCollaborator','saveChangeset','LICENSE_DISTRO_REJECTED','PENDING','loadOfflineData','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','PSEUDO_FETCH_MISSING_RESULT','_snapshotService','save\x20fail\x20reason\x20is\x20','_color','INGEST','isPermissionRej','INVALID_ARGUMENT','_retryCount','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_updateCollabCursors','getUnitOnRev','size','123040mtduWA','fill','unknown','off-line-single_clip0_910_343','getCollabCursors$','encode','univer-offline','collab-text-anchor-','[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.','forEach','closePath','collabStatus.synced','VIEW_MAIN','UNIVER_COLLABORATION_CLIENT_PLUGIN','collaboration-client.offline-data-not-saved','collabCursorState$','_transformPreviousActiveRange','close$','max','_change$','black','awaitingChangeset','_collabSessionService','{fileID}','/fetchmissing?from=','infoRsp','_renderManagerService','_type','data','_colorIndex','collabStatus.notCollab','_notificationService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_onCombEvent','_getDocObject','getCurrent','_clearRedo','30731BOCFwT','onload','with','_startSheetCollabCursor','getCurrentUser','createElement','_clearCollaborationTimeoutTimer','getUnitType','UNDEFINED','_disabled','roles','...','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_cursor','RemoveRowCommandId','_roomMembers','UUID','enableAuthServer','image/jpeg','complete','/universer-api/snapshot','_applyRemoteChangeset','body','onPointerLeave$','onPointerEnter$','drawWith','OFFLINE','isActive','stringify','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','0\x200\x2017\x2016','_onRecvEvent','_ensureSubject','requireSession','socket\x20close','/-/object/list','RETRY_CONNECTING_INTERVAL','fetchThroughInterceptors','INTERNAL_ERROR','tag','url(#on-line-single_clip0_910_349)','searchParams','_submitChangeset','name','c1Prime','init','from','focused$','_initStatusListener','ERROR_EXCEED_SIZE','rev','snapshot','getAncestorScale','selection','liveShareOperation','_replayCachedMutations','_initModules','_joinRoom','JOIN','color','idSuffix','status','_transformSelections','_createSocket','SNAPSHOT_SERVER_URL_KEY','_beforeCloseService','collabStatus.conflict','memberID','_sheetSkeletonManagerService','[CollaborationEntity]','univer-online-status-icon','CHANGESET_ACK','docStateChange$','_handleHover','off-line-single','_clearUndo','APPLY_NON_SEQUENTIAL_REVISION','_permissionService','_updateSubUnitFromURLParams','_uiPartsService','getParam'];_0x4643=function(){return _0x18fe6e;};return _0x4643();}gt=Gn([ae(0x2,_0x5b3e40(_0x331eca)),ae(0x3,_0x5b3e40(At)),ae(0x4,_0x5b3e40(ee)),ae(0x5,_0x1ffae8),ae(0x6,_0x373f07),ae(0x7,_0x5b3e40(_0x3cc16f))],gt);var Jn=Object['defineProperty'],zn=Object[_0x35fe9a(0x1db)],Zn=(_0x3a9b46,_0x2a6f85,_0x370c68,_0x52d004)=>{const _0x2bf41b=_0x35fe9a;for(var _0x240517=_0x52d004>0x1?void 0x0:_0x52d004?zn(_0x2a6f85,_0x370c68):_0x2a6f85,_0x853d11=_0x3a9b46[_0x2bf41b(0x443)]-0x1,_0x257f6f;_0x853d11>=0x0;_0x853d11--)(_0x257f6f=_0x3a9b46[_0x853d11])&&(_0x240517=(_0x52d004?_0x257f6f(_0x2a6f85,_0x370c68,_0x240517):_0x257f6f(_0x240517))||_0x240517);return _0x52d004&&_0x240517&&Jn(_0x2a6f85,_0x370c68,_0x240517),_0x240517;},Z=(_0xd104fd,_0x373ae7)=>(_0x3cc542,_0x342f30)=>_0x373ae7(_0x3cc542,_0x342f30,_0xd104fd);const qn=0x12c,Qn=0x64;let mt=class extends _0x2f203c{constructor(_0x419d71,_0x474b56,_0x5c0d44,_0x21eb2a,_0x53b424,_0x578ec8,_0x209210,_0x4713db,_0x2827fb){const _0x492e08=_0x35fe9a;super(),l(this,_0x492e08(0x411),!0x1),l(this,_0x492e08(0x31f),!0x1),l(this,_0x492e08(0x42b),new _0x316dfa(new Map())),l(this,_0x492e08(0x403),this[_0x492e08(0x42b)][_0x492e08(0x36f)]()),l(this,_0x492e08(0x417),new _0x316dfa([])),l(this,'roomMembers$',this['_roomMembers$'][_0x492e08(0x332)](_0x4831d6(qn))),l(this,_0x492e08(0x172),_0x20a066(_0x562a49=>{const _0x24ac59=_0x492e08,_0x25cac6={'eventID':_0x20b5fc[_0x24ac59(0x41f)],'data':{'unitID':this[_0x24ac59(0x19e)],'memberID':this[_0x24ac59(0x222)][_0x24ac59(0x3e4)](),'selection':Os(_0x562a49)}};this[_0x24ac59(0x222)][_0x24ac59(0x36c)](_0x25cac6,this[_0x24ac59(0x19e)]);},Qn)),(this[_0x492e08(0x19e)]=_0x419d71,this[_0x492e08(0x222)]=_0x474b56,this['_injector']=_0x5c0d44,this[_0x492e08(0x45a)]=_0x21eb2a,this[_0x492e08(0x367)]=_0x53b424,this['_syncEditingCollabCursorService']=_0x578ec8,this['_transformService']=_0x209210,this[_0x492e08(0x262)]=_0x4713db,this[_0x492e08(0x3d3)]=_0x2827fb);}get[_0x35fe9a(0x1dc)](){const _0x1d832c=_0x35fe9a;return this['_cursorInfo$'][_0x1d832c(0x293)]();}get['roomMembers'](){const _0x27c95d=_0x35fe9a;return this[_0x27c95d(0x417)][_0x27c95d(0x293)]();}[_0x35fe9a(0x264)](){const _0x170c26=_0x35fe9a;super[_0x170c26(0x264)](),this[_0x170c26(0x42b)]['next'](new Map()),this[_0x170c26(0x42b)][_0x170c26(0x2e1)](),this['_roomMembers$'][_0x170c26(0x3be)]([]),this['_roomMembers$'][_0x170c26(0x2e1)]();}[_0x35fe9a(0x2fb)](){const _0x4d19ee=_0x35fe9a;this[_0x4d19ee(0x31f)]||(this[_0x4d19ee(0x31f)]=!0x0,this[_0x4d19ee(0x222)][_0x4d19ee(0x227)][_0x4d19ee(0x332)](_0x2c14e9(this[_0x4d19ee(0x3b0)]))[_0x4d19ee(0x40e)](_0x5cb063=>{const _0x3973a9=_0x4d19ee;_0x5cb063===_e[_0x3973a9(0x3fc)]?this[_0x3973a9(0x25d)]():this[_0x3973a9(0x425)]();}),this['_session'][_0x4d19ee(0x3c4)][_0x4d19ee(0x332)](_0x2c14e9(this[_0x4d19ee(0x3b0)]))['subscribe'](_0x3d0b70=>{const _0x1021d1=_0x4d19ee,_0x2b673f=_0x3d0b70[_0x1021d1(0x1b6)];_0x2b673f===_0x20b5fc['UPDATE_CURSOR']&&this[_0x1021d1(0x181)](_0x3d0b70),_0x2b673f===_0x20b5fc['USERS_LEAVE']&&this[_0x1021d1(0x3da)](_0x3d0b70);}),this[_0x4d19ee(0x382)](this[_0x4d19ee(0x3d3)]['onCommandExecuted'](_0x2dd00b=>{const _0x9d9f8c=_0x4d19ee,_0x2871b2=_0x2dd00b[_0x9d9f8c(0x3b4)];_0x2871b2!=null&&this[_0x9d9f8c(0x411)]&&_0x2dd00b['id']===_0x30703b['id']&&_0x2871b2['unitId']===this[_0x9d9f8c(0x19e)]&&_0x2871b2[_0x9d9f8c(0x1a2)]===!0x1&&this['_updateLocalCursor'](_0x2871b2[_0x9d9f8c(0x3eb)]);})),this[_0x4d19ee(0x433)][_0x4d19ee(0x2b8)][_0x4d19ee(0x332)](_0x2c14e9(this[_0x4d19ee(0x3b0)]))[_0x4d19ee(0x40e)](_0x2900b2=>{const _0x31b5dd=_0x4d19ee;if((_0x2900b2==null?void 0x0:_0x2900b2[_0x31b5dd(0x19e)])!==this[_0x31b5dd(0x19e)])return;const _0x39c48d={'eventID':_0x20b5fc[_0x31b5dd(0x41f)],'data':_0x2900b2};this[_0x31b5dd(0x181)](_0x39c48d);}),this[_0x4d19ee(0x382)](this[_0x4d19ee(0x3d3)]['onCommandExecuted'](_0x5d82b7=>{const _0x3b361e=_0x4d19ee;if(_0x5d82b7['params']==null)return;const _0x3264db=_0x5d82b7['params'];if(_0x5d82b7['id']!==_0x250ba2['id']||_0x3264db['unitId']!==this['unitID'])return;const _0x13ad63={'id':_0x3b361e(0x212),'params':_0x3264db},_0x19d15d=this[_0x3b361e(0x1dc)];for(const [_0x2402e5,_0x5ad852]of _0x19d15d){const _0x2e0cfa={'id':_0x3b361e(0x212),'params':{'unitId':this[_0x3b361e(0x19e)],'actions':null,'textRanges':_0x5ad852[_0x3b361e(0x3eb)]}},_0x17c680=this[_0x3b361e(0x348)][_0x3b361e(0x1ac)](_0x13ad63,_0x2e0cfa,!0x1);if(_0x560f2f(_0x17c680))throw _0x17c680[_0x3b361e(0x185)];_0x19d15d['set'](_0x2402e5,{..._0x5ad852,'ranges':_0x17c680['m2Prime'][_0x3b361e(0x3b4)]['textRanges']});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x19d15d);});})));}['_onCursorUpdate'](_0x5b3d65){const _0x446502=_0x35fe9a;var _0x42f72d,_0x1d8798;const {memberID:_0xe03f08,selection:_0x3b3242}=_0x5b3d65[_0x446502(0x2c5)],_0x501ab2=An(_0x3b3242),_0x59ba2a=(_0x1d8798=(_0x42f72d=this[_0x446502(0x367)][_0x446502(0x286)](this[_0x446502(0x19e)],_0xe03f08))==null?void 0x0:_0x42f72d[_0x446502(0x2f9)])!=null?_0x1d8798:_0x446502(0x1b3),_0x557eb0={'color':this[_0x446502(0x45a)]['assignAColorForMemberID'](_0xe03f08),'name':_0x59ba2a,'ranges':_0x501ab2},_0x29ef86=this[_0x446502(0x1dc)];_0x29ef86[_0x446502(0x445)](_0xe03f08,_0x557eb0),this['_cursorInfo$'][_0x446502(0x3be)](_0x29ef86);}[_0x35fe9a(0x3da)](_0x2ffdfa){const _0x33d72d=_0x35fe9a,{memberID:_0x2fb05e}=_0x2ffdfa[_0x33d72d(0x2c5)],_0x413dd0=this[_0x33d72d(0x1dc)];_0x413dd0[_0x33d72d(0x46f)](_0x2fb05e),this[_0x33d72d(0x42b)][_0x33d72d(0x3be)](_0x413dd0);}[_0x35fe9a(0x25d)](){const _0x118a85=_0x35fe9a;var _0x32312b;if(this[_0x118a85(0x411)]=!0x0,((_0x32312b=this[_0x118a85(0x262)]['getFocusedUnit']())==null?void 0x0:_0x32312b[_0x118a85(0x22b)]())!==this[_0x118a85(0x19e)])return;const _0x648a16=this['_injector'][_0x118a85(0x3e8)](_0x200457)[_0x118a85(0x347)](),_0x517ef4=_0x648a16==null?void 0x0:_0x648a16[_0x118a85(0x240)](_0x3dee4a);Array['isArray'](_0x517ef4)&&_0x517ef4['length']>0x0&&this[_0x118a85(0x172)](_0x517ef4);}[_0x35fe9a(0x425)](){const _0x256dce=_0x35fe9a;this[_0x256dce(0x411)]=!0x1;}};mt=Zn([Z(0x2,_0x5b3e40(_0x331eca)),Z(0x3,_0x5b3e40(At)),Z(0x4,_0x5b3e40(ee)),Z(0x5,_0x5b3e40(Mt)),Z(0x6,_0x56176b),Z(0x7,_0x1ffae8),Z(0x8,_0x373f07)],mt);var er=Object[_0x35fe9a(0x448)],tr=Object[_0x35fe9a(0x1db)],sr=(_0x2743b0,_0xd979dc,_0x1f6d21,_0x4d3f8e)=>{const _0x1fcf64=_0x35fe9a;for(var _0x20de6c=_0x4d3f8e>0x1?void 0x0:_0x4d3f8e?tr(_0xd979dc,_0x1f6d21):_0xd979dc,_0x16e0bb=_0x2743b0[_0x1fcf64(0x443)]-0x1,_0x3d5fa4;_0x16e0bb>=0x0;_0x16e0bb--)(_0x3d5fa4=_0x2743b0[_0x16e0bb])&&(_0x20de6c=(_0x4d3f8e?_0x3d5fa4(_0xd979dc,_0x1f6d21,_0x20de6c):_0x3d5fa4(_0x20de6c))||_0x20de6c);return _0x4d3f8e&&_0x20de6c&&er(_0xd979dc,_0x1f6d21,_0x20de6c),_0x20de6c;},st=(_0x50467f,_0x2876cf)=>(_0x2509be,_0x21ffb7)=>_0x2876cf(_0x2509be,_0x21ffb7,_0x50467f);let ue=class extends _0x2f203c{constructor(_0x322a2a,_0x1cc7c3,_0x5142fe){const _0x4153b2=_0x35fe9a;super(),l(this,_0x4153b2(0x3b1),new Map()),l(this,_0x4153b2(0x24b),new _0x3da7e9()),(this[_0x4153b2(0x262)]=_0x322a2a,this[_0x4153b2(0x325)]=_0x1cc7c3,this['_collabSessionService']=_0x5142fe,this['_init']());}[_0x35fe9a(0x264)](){const _0xd2225b=_0x35fe9a;super['dispose'](),this[_0xd2225b(0x24b)][_0xd2225b(0x2e1)](),this[_0xd2225b(0x3b1)][_0xd2225b(0x2b2)](_0x4bb718=>_0x4bb718[_0xd2225b(0x264)]());}[_0x35fe9a(0x2ad)](_0x195496){const _0x3477bf=_0x35fe9a;return this[_0x3477bf(0x3b1)][_0x3477bf(0x189)](_0x195496)?this[_0x3477bf(0x3b1)][_0x3477bf(0x3e8)](_0x195496)[_0x3477bf(0x403)]:this['_entityInit$'][_0x3477bf(0x332)](_0x37e932(_0x14a0ff=>_0x14a0ff[_0x3477bf(0x19e)]===_0x195496),_0x13231a(_0x314aee=>_0x314aee['cursorInfo$']));}[_0x35fe9a(0x31f)](){const _0x59a8d8=_0x35fe9a;this['_univerInstanceService'][_0x59a8d8(0x246)](_0x9a39b6['UNIVER_SHEET'])[_0x59a8d8(0x332)](_0x2c14e9(this[_0x59a8d8(0x3b0)]))['subscribe'](async _0x3d1cd2=>{const _0x4cae7d=_0x59a8d8,_0x24c2ad=_0x3d1cd2[_0x4cae7d(0x22b)](),_0x865a5f=await this[_0x4cae7d(0x2d1)](_0x24c2ad);this[_0x4cae7d(0x24b)][_0x4cae7d(0x3be)](_0x865a5f),this[_0x4cae7d(0x3b1)]['set'](_0x24c2ad,_0x865a5f);}),this[_0x59a8d8(0x262)][_0x59a8d8(0x246)](_0x9a39b6[_0x59a8d8(0x1f2)])[_0x59a8d8(0x332)](_0x2c14e9(this[_0x59a8d8(0x3b0)]))['pipe'](_0x37e932(_0x5e4ade=>!_0x5e4ade['getUnitId']()[_0x59a8d8(0x421)]('__')))['subscribe'](async _0x8135f2=>{const _0x5b4cac=_0x59a8d8,_0x3b2517=_0x8135f2['getUnitId'](),_0xb70078=await this['_startDocCollabCursor'](_0x3b2517);this[_0x5b4cac(0x24b)][_0x5b4cac(0x3be)](_0xb70078),this[_0x5b4cac(0x3b1)][_0x5b4cac(0x445)](_0x3b2517,_0xb70078);}),_0x17d598(this[_0x59a8d8(0x262)]['getTypeOfUnitDisposed$'](_0x9a39b6[_0x59a8d8(0x1f2)]),this[_0x59a8d8(0x262)][_0x59a8d8(0x3d9)](_0x9a39b6[_0x59a8d8(0x339)]))[_0x59a8d8(0x332)](_0x2c14e9(this[_0x59a8d8(0x3b0)]))['subscribe'](_0x5d724d=>{const _0x193fcd=_0x59a8d8,_0x29041b=_0x5d724d[_0x193fcd(0x22b)](),_0x493ac8=this[_0x193fcd(0x3b1)][_0x193fcd(0x3e8)](_0x29041b);_0x493ac8&&(_0x493ac8[_0x193fcd(0x264)](),this[_0x193fcd(0x3b1)]['delete'](_0x29041b));});}async[_0x35fe9a(0x2d1)](_0x4d027d){const _0x2d2cce=_0x35fe9a,_0xbd32ae=await this[_0x2d2cce(0x2bf)][_0x2d2cce(0x2ef)](_0x4d027d),_0x5ed976=this[_0x2d2cce(0x325)][_0x2d2cce(0x26b)](gt,_0x4d027d,_0xbd32ae);return _0x5ed976[_0x2d2cce(0x2fb)](),_0x5ed976;}async['_startDocCollabCursor'](_0x3a3f50){const _0x1a2187=_0x35fe9a,_0x2bace5=await this[_0x1a2187(0x2bf)]['requireSession'](_0x3a3f50),_0x51807b=this['_injector'][_0x1a2187(0x26b)](mt,_0x3a3f50,_0x2bace5);return _0x51807b['init'](),_0x51807b;}};ue=sr([_0x47af0a(_0x550976[_0x35fe9a(0x44a)],ue),st(0x0,_0x1ffae8),st(0x1,_0x5b3e40(_0x331eca)),st(0x2,_0x5b3e40(Re))],ue);const Oe=0x14,qt=0xc8,it=0x4,ir=0x5;function nr(_0x330738,_0x3d09fe){const _0x22e13c=_0x35fe9a;let {radius:_0x3057fa,width:_0x1fceb9,height:_0x33bdf8}=_0x3d09fe;_0x3057fa=_0x3057fa!=null?_0x3057fa:0x0,_0x1fceb9=_0x1fceb9!=null?_0x1fceb9:0x1e,_0x33bdf8=_0x33bdf8!=null?_0x33bdf8:0x1e;let _0x12268a=0x0,_0x4239e7=0x0,_0x3252ee=0x0;_0x12268a=_0x4239e7=_0x3252ee=Math[_0x22e13c(0x25f)](_0x3057fa,_0x1fceb9/0x2,_0x33bdf8/0x2),_0x330738['beginPath'](),_0x330738['moveTo'](_0x12268a,0x0),_0x330738[_0x22e13c(0x196)](_0x1fceb9-_0x4239e7,0x0),_0x330738[_0x22e13c(0x366)](_0x1fceb9-_0x4239e7,_0x4239e7,_0x4239e7,Math['PI']*0x3/0x2,0x0,!0x1),_0x330738[_0x22e13c(0x196)](_0x1fceb9,_0x33bdf8-_0x3252ee),_0x330738[_0x22e13c(0x366)](_0x1fceb9-_0x3252ee,_0x33bdf8-_0x3252ee,_0x3252ee,0x0,Math['PI']/0x2,!0x1),_0x330738[_0x22e13c(0x196)](0x0,_0x33bdf8),_0x330738[_0x22e13c(0x196)](0x0,_0x12268a),_0x330738[_0x22e13c(0x366)](_0x12268a,_0x12268a,_0x12268a,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x330738[_0x22e13c(0x2b3)](),_0x3d09fe[_0x22e13c(0x2aa)]&&(_0x330738[_0x22e13c(0x171)](),_0x330738[_0x22e13c(0x28d)]=_0x3d09fe[_0x22e13c(0x2aa)],_0x3d09fe[_0x22e13c(0x463)]===_0x22e13c(0x243)?_0x330738[_0x22e13c(0x2aa)]('evenodd'):_0x330738[_0x22e13c(0x2aa)](),_0x330738[_0x22e13c(0x345)]());}class ze extends _0x1205b1{constructor(_0x326a2c,_0x328012){const _0x456c41=_0x35fe9a;super(_0x326a2c,_0x328012),l(this,'color'),l(this,_0x456c41(0x19b)),(this[_0x456c41(0x309)]=_0x328012==null?void 0x0:_0x328012['color'],this['text']=_0x328012==null?void 0x0:_0x328012['text']);}static[_0x35fe9a(0x2e7)](_0x52e2c5,_0x1b056e){const _0x319e6a=_0x35fe9a,{text:_0x3012cc,color:_0x452cff}=_0x1b056e;_0x52e2c5[_0x319e6a(0x171)](),_0x52e2c5['font']=_0x319e6a(0x253);const _0x4f9f43=_0x52e2c5[_0x319e6a(0x22a)](_0x3012cc)[_0x319e6a(0x278)],_0x1f5526=Math[_0x319e6a(0x25f)](_0x4f9f43+0x2*it,qt);nr(_0x52e2c5,{'height':Oe,'radius':0x4,'width':_0x1f5526,'fill':_0x452cff,'evented':!0x1}),_0x52e2c5[_0x319e6a(0x28d)]=_0x319e6a(0x210);const _0x3d7766=it,_0x1aeec1=Oe-ir,_0x541cc0=qt-0x2*it;if(_0x4f9f43>_0x541cc0){let _0x24a309='',_0x34ab3b=0x0;for(const _0x2b0991 of _0x3012cc){const _0x1cc38c=_0x52e2c5['measureText'](_0x2b0991)[_0x319e6a(0x278)];if(_0x34ab3b+_0x1cc38c<=_0x541cc0-_0x52e2c5[_0x319e6a(0x22a)](_0x319e6a(0x2d9))[_0x319e6a(0x278)])_0x24a309+=_0x2b0991,_0x34ab3b+=_0x1cc38c;else{_0x24a309+=_0x319e6a(0x2d9);break;}}_0x52e2c5[_0x319e6a(0x42a)](_0x24a309,_0x3d7766,_0x1aeec1);}else _0x52e2c5['fillText'](_0x3012cc,_0x3d7766,_0x1aeec1);_0x52e2c5[_0x319e6a(0x345)]();}[_0x35fe9a(0x1e5)](_0x466ae8){const _0x36476d=_0x35fe9a;ze[_0x36476d(0x2e7)](_0x466ae8,this);}}const rr=0x1,or=1.5;class ar extends _0x1205b1{constructor(_0x548135,_0x40d7f0){const _0x50ad88=_0x35fe9a;super(_0x548135,_0x40d7f0),l(this,_0x50ad88(0x29f)),l(this,_0x50ad88(0x438),!0x1),l(this,_0x50ad88(0x468)),l(this,'_name',''),l(this,_0x50ad88(0x247),'top'),(_0x40d7f0&&this[_0x50ad88(0x26d)](_0x40d7f0),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x50ad88(0x26d)]({'hovered':!0x0})),this[_0x50ad88(0x2e5)][_0x50ad88(0x44f)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x35fe9a(0x26d)](_0x44529a){const _0x33a8ea=_0x35fe9a;var _0x19cace,_0x3ff214,_0xf559d0,_0x391296,_0x21285a;this[_0x33a8ea(0x29f)]=(_0x19cace=_0x44529a[_0x33a8ea(0x309)])!=null?_0x19cace:this['_color'],this[_0x33a8ea(0x438)]=(_0x3ff214=_0x44529a[_0x33a8ea(0x40d)])!=null?_0x3ff214:this[_0x33a8ea(0x438)],this[_0x33a8ea(0x468)]=(_0xf559d0=_0x44529a[_0x33a8ea(0x1b8)])!=null?_0xf559d0:this[_0x33a8ea(0x468)],this[_0x33a8ea(0x478)]=(_0x391296=_0x44529a[_0x33a8ea(0x2f9)])!=null?_0x391296:this[_0x33a8ea(0x478)],this[_0x33a8ea(0x247)]=(_0x21285a=_0x44529a['labelPosition'])!=null?_0x21285a:this[_0x33a8ea(0x247)],this[_0x33a8ea(0x1e9)]({'width':_0x44529a[_0x33a8ea(0x278)],'height':_0x44529a['height']});}[_0x35fe9a(0x354)](_0x3f868a){const _0x48e6eb=_0x35fe9a,{row:_0x280f42,column:_0x255de8}=_0x3f868a;if(_0x280f42>=this['_range'][_0x48e6eb(0x44e)]&&_0x280f42<=this[_0x48e6eb(0x468)][_0x48e6eb(0x237)]&&_0x255de8>=this[_0x48e6eb(0x468)][_0x48e6eb(0x33b)]&&_0x255de8<=this['_range'][_0x48e6eb(0x235)]){this[_0x48e6eb(0x26d)]({'hovered':!0x0});return;}this[_0x48e6eb(0x26d)]({'hovered':!0x1});}[_0x35fe9a(0x414)](_0x1cb258){return!0x1;}[_0x35fe9a(0x1e5)](_0x1f463a){const _0x45bbcc=_0x35fe9a;_0x2d9440['drawWith'](_0x1f463a,{'width':this[_0x45bbcc(0x278)],'height':this[_0x45bbcc(0x228)],'strokeWidth':or,'stroke':this['_color'],'evented':!0x1}),this[_0x45bbcc(0x438)]&&(_0x1f463a[_0x45bbcc(0x171)](),_0x1f463a[_0x45bbcc(0x27d)](0x1,0x0,0x0,0x1,this[_0x45bbcc(0x278)],this['_labelPosition']===_0x45bbcc(0x372)?0x0:-Oe),ze[_0x45bbcc(0x2e7)](_0x1f463a,{'text':this[_0x45bbcc(0x478)],'color':this[_0x45bbcc(0x29f)]}),_0x1f463a[_0x45bbcc(0x345)]());}}var cr=Object['defineProperty'],hr=Object[_0x35fe9a(0x1db)],lr=(_0x4421d5,_0x553dfc,_0x298423,_0x5108b6)=>{for(var _0x187094=_0x5108b6>0x1?void 0x0:_0x5108b6?hr(_0x553dfc,_0x298423):_0x553dfc,_0x58da24=_0x4421d5['length']-0x1,_0xfc9084;_0x58da24>=0x0;_0x58da24--)(_0xfc9084=_0x4421d5[_0x58da24])&&(_0x187094=(_0x5108b6?_0xfc9084(_0x553dfc,_0x298423,_0x187094):_0xfc9084(_0x187094))||_0x187094);return _0x5108b6&&_0x187094&&cr(_0x553dfc,_0x298423,_0x187094),_0x187094;},Me=(_0x1eae12,_0xe4eace)=>(_0x9010d0,_0x4b4559)=>_0xe4eace(_0x9010d0,_0x4b4559,_0x1eae12);const _r=0x1389;let $e=class extends _0x2f203c{constructor(_0x1e862a,_0x1582c3,_0x45295d,_0x33d52d){const _0x1708a9=_0x35fe9a;super(),l(this,'_cursors',new Set()),l(this,_0x1708a9(0x34e),null),(this[_0x1708a9(0x214)]=_0x1e862a,this[_0x1708a9(0x262)]=_0x1582c3,this[_0x1708a9(0x2c3)]=_0x45295d,this[_0x1708a9(0x1cb)]=_0x33d52d,this['_init']());}get[_0x35fe9a(0x312)](){const _0x5be68e=_0x35fe9a;return this[_0x5be68e(0x2c3)][_0x5be68e(0x415)](this[_0x5be68e(0x262)][_0x5be68e(0x395)](_0x9a39b6[_0x5be68e(0x339)])['getUnitId']())[_0x5be68e(0x2d0)](_0x21497f);}get[_0x35fe9a(0x187)](){const _0x8fa49d=_0x35fe9a;return this[_0x8fa49d(0x262)][_0x8fa49d(0x395)](_0x9a39b6[_0x8fa49d(0x339)])[_0x8fa49d(0x22b)]();}[_0x35fe9a(0x31f)](){const _0x227b60=_0x35fe9a;this['_sheetSkeletonManagerService'][_0x227b60(0x3ee)][_0x227b60(0x332)](_0x479f07(this[_0x227b60(0x3b0)]),_0x443800(_0x5b0bf0=>{const _0x555bd1=_0x227b60;if(_0x5b0bf0){const _0x1ebed3=_0x5b0bf0['sheetId'];return _0x409cac(this['_collabCursorController'][_0x555bd1(0x2ad)](this[_0x555bd1(0x187)]),this[_0x555bd1(0x1cb)][_0x555bd1(0x213)])[_0x555bd1(0x332)](_0x134cb9(([_0x109de9,_0x38ae64])=>{const _0x38d655=_0x555bd1,_0x58201d=new Map();return _0x109de9[_0x38d655(0x2b2)]((_0x55077f,_0x2ceae9)=>{const _0x22b0bf=_0x38d655;if(_0x55077f['sheetID']===_0x1ebed3){const _0x4e91ee={..._0x55077f};_0x4e91ee[_0x22b0bf(0x309)]=_0x38ae64[_0x55077f['color']],_0x58201d[_0x22b0bf(0x445)](_0x2ceae9,_0x4e91ee);}}),{'skeleton':_0x5b0bf0,'cursors':_0x58201d};}));}return _0x214b8f({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x3517ad,cursors:_0x20d5b1})=>{const _0x597726=_0x227b60;this[_0x597726(0x3ad)](),_0x3517ad&&this['_updateCollabCursors'](_0x3517ad,_0x20d5b1);}),this['_sheetSkeletonManagerService'][_0x227b60(0x3ee)][_0x227b60(0x40e)](_0x1416c7=>{const _0x2c221b=_0x227b60;if(_0x1416c7==null)return;const {skeleton:_0xe63a44}=_0x1416c7,_0x1c086d=this[_0x2c221b(0x2c3)][_0x2c221b(0x415)](this[_0x2c221b(0x187)]),{scene:_0x158e03}=_0x1c086d;_0x158e03['onPointerMove$'][_0x2c221b(0x44f)](_0x20a066(_0x255b3f=>{const _0x451f20=_0x2c221b;var _0x447ef1,_0x54d4fd;const {offsetX:_0x223a47,offsetY:_0x1944b1}=_0x255b3f,{x:_0x3046db,y:_0x2e1878}=_0x158e03['getRelativeCoord'](_0x4b9227[_0x451f20(0x446)]([_0x223a47,_0x1944b1])),{scaleX:_0x2810f1,scaleY:_0x453eed}=_0x158e03[_0x451f20(0x302)](),_0x17ea1d=_0x158e03['getViewport'](_0x247610[_0x451f20(0x2b5)]),_0x4a5d90=_0x158e03[_0x451f20(0x184)](_0x4b9227[_0x451f20(0x446)]([_0x3046db,_0x2e1878]),_0x17ea1d),_0x4e31e1=_0xe63a44[_0x451f20(0x268)](_0x223a47,_0x1944b1,_0x2810f1,_0x453eed,_0x4a5d90);((_0x447ef1=this[_0x451f20(0x34e)])==null?void 0x0:_0x447ef1['column'])===_0x4e31e1[_0x451f20(0x3d5)]&&((_0x54d4fd=this[_0x451f20(0x34e)])==null?void 0x0:_0x54d4fd[_0x451f20(0x38c)])===_0x4e31e1[_0x451f20(0x38c)]||this[_0x451f20(0x277)][_0x451f20(0x2b2)](_0x745ded=>{const _0x5c9ec8=_0x451f20;_0x745ded[_0x5c9ec8(0x354)](_0x4e31e1);});},0x64));});}[_0x35fe9a(0x2a6)](_0x3e79a9,_0x159413){const _0x9291cf=_0x35fe9a;var _0x8bfe97;const _0x166ed6=(_0x8bfe97=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x8bfe97['skeleton'];if(!_0x166ed6)return;const _0x3ded28=this[_0x9291cf(0x203)]();if(!_0x3ded28)return;this[_0x9291cf(0x277)][_0x9291cf(0x2b2)](_0x41736a=>{const _0x11b034=_0x9291cf;_0x41736a[_0x11b034(0x39e)]();});const {scene:_0x301d0e}=_0x3ded28,_0x31059d=ur(Array['from'](_0x159413[_0x9291cf(0x383)]()))[_0x9291cf(0x240)](_0x42c8ce=>{const _0x20a57d=_0x9291cf,{color:_0x2674fe,range:_0x399cb9,name:_0x47f5a2,selection:_0x47560c,sheetID:_0x2873f9}=_0x42c8ce,{startColumn:_0x411d58,startRow:_0x4a829c,endColumn:_0x641701,endRow:_0x38055f}=_0x399cb9,_0x33de70=_0x4b86c2(_0x4a829c,_0x411d58,_0x301d0e,_0x166ed6),_0x554e27=_0x4b86c2(_0x38055f,_0x641701,_0x301d0e,_0x166ed6),{columnHeaderHeightAndMarginTop:_0x4d6da8}=_0x166ed6,{startX:_0xc6be6d,startY:_0x482d41}=_0x33de70,{endX:_0x5179d5,endY:_0x3d48c1}=_0x554e27,_0xbdcc3a=_0x5179d5-_0xc6be6d,_0x29197e=_0x3d48c1-_0x482d41,_0x4ca691={'labelPosition':_0x482d41-_0x4d6da8>=Oe?_0x20a57d(0x1fd):_0x20a57d(0x372),'sheetID':_0x2873f9,'range':_0x399cb9,'color':_0x2674fe,'name':_0x47f5a2,'selection':_0x47560c,'left':_0xc6be6d,'top':_0x482d41,'width':_0xbdcc3a,'height':_0x29197e,'evented':!0x1,'zIndex':_r};return new ar(_0x47f5a2,_0x4ca691);});_0x301d0e[_0x9291cf(0x434)](_0x31059d,rr),this[_0x9291cf(0x277)]=new Set(_0x31059d);}['_removeCollabCursors'](){const _0x349d08=_0x35fe9a;var _0xbbfa3;(_0xbbfa3=this[_0x349d08(0x277)])==null||_0xbbfa3[_0x349d08(0x2b2)](_0x4ba7d6=>_0x4ba7d6[_0x349d08(0x264)]());}['_getSheetObject'](){return _0xd1a85(this['_univerInstanceService'],this['_renderManagerService']);}};$e=lr([_0x47af0a(_0x550976['Steady'],$e),Me(0x0,_0x5b3e40(ue)),Me(0x1,_0x1ffae8),Me(0x2,_0x458795),Me(0x3,_0x5b3e40(_0x166891))],$e);function ur(_0x2373e5){const _0x526365=_0x35fe9a,_0x3eb6a6=new Map();return _0x2373e5[_0x526365(0x2b2)](_0x38c8cf=>{const _0x4b4b3e=_0x526365;if(_0x3eb6a6['has'](_0x38c8cf['selection'])){const _0x2fb310=_0x3eb6a6[_0x4b4b3e(0x3e8)](_0x38c8cf[_0x4b4b3e(0x303)]);_0x2fb310['name']+=',\x20'+_0x38c8cf[_0x4b4b3e(0x2f9)];}else _0x3eb6a6['set'](_0x38c8cf[_0x4b4b3e(0x303)],_0x38c8cf);}),Array[_0x526365(0x2fc)](_0x3eb6a6[_0x526365(0x383)]());}var A=function(){const _0xe47c99=_0x35fe9a;return A=Object[_0xe47c99(0x45e)]||function(_0x5b03d0){const _0x525b31=_0xe47c99;for(var _0x10a10a,_0x3f0319=0x1,_0x5353a1=arguments[_0x525b31(0x443)];_0x3f0319<_0x5353a1;_0x3f0319++){_0x10a10a=arguments[_0x3f0319];for(var _0x395c4b in _0x10a10a)Object[_0x525b31(0x420)]['hasOwnProperty'][_0x525b31(0x341)](_0x10a10a,_0x395c4b)&&(_0x5b03d0[_0x395c4b]=_0x10a10a[_0x395c4b]);}return _0x5b03d0;},A[_0xe47c99(0x22d)](this,arguments);},dr=function(_0x2c0e44,_0x38512a){const _0x87c597=_0x35fe9a;var _0x1d1eba={};for(var _0x5c102a in _0x2c0e44)Object[_0x87c597(0x420)]['hasOwnProperty'][_0x87c597(0x341)](_0x2c0e44,_0x5c102a)&&_0x38512a[_0x87c597(0x337)](_0x5c102a)<0x0&&(_0x1d1eba[_0x5c102a]=_0x2c0e44[_0x5c102a]);if(_0x2c0e44!=null&&typeof Object[_0x87c597(0x37a)]=='function'){for(var _0x298856=0x0,_0x5c102a=Object[_0x87c597(0x37a)](_0x2c0e44);_0x298856<_0x5c102a[_0x87c597(0x443)];_0x298856++)_0x38512a[_0x87c597(0x337)](_0x5c102a[_0x298856])<0x0&&Object['prototype'][_0x87c597(0x37d)]['call'](_0x2c0e44,_0x5c102a[_0x298856])&&(_0x1d1eba[_0x5c102a[_0x298856]]=_0x2c0e44[_0x5c102a[_0x298856]]);}return _0x1d1eba;},yt=_0x4c1e67(function(_0x34dff9,_0x1f95e9){const _0x55b833=_0x35fe9a;var _0xefc9eb=_0x34dff9['icon'],_0x42d6e2=_0x34dff9['id'],_0x1a3603=_0x34dff9['className'],_0x186660=_0x34dff9['extend'],_0x57ac75=dr(_0x34dff9,['icon','id',_0x55b833(0x322),_0x55b833(0x328)]),_0x586fc9=_0x55b833(0x1bd)[_0x55b833(0x284)](_0x42d6e2,'\x20')['concat'](_0x1a3603||'')['trim'](),_0x3d7f4a=_0x2a4631('_'[_0x55b833(0x284)](mr()));return ws(_0xefc9eb,''['concat'](_0x42d6e2),{'defIds':_0xefc9eb[_0x55b833(0x396)],'idSuffix':_0x3d7f4a['current']},A({'ref':_0x1f95e9,'className':_0x586fc9},_0x57ac75),_0x186660);});function ws(_0x49ef54,_0x5a6ea8,_0x281975,_0xe135f9,_0x5c5d43){const _0x46e63d=_0x35fe9a;return _0xc09f89(_0x49ef54['tag'],A(A({'key':_0x5a6ea8},fr(_0x49ef54,_0x281975,_0x5c5d43)),_0xe135f9),(gr(_0x49ef54,_0x281975)[_0x46e63d(0x177)]||[])[_0x46e63d(0x240)](function(_0x19aa5b,_0x17f34d){const _0x1922a4=_0x46e63d;return ws(_0x19aa5b,''[_0x1922a4(0x284)](_0x5a6ea8,'-')[_0x1922a4(0x284)](_0x49ef54[_0x1922a4(0x2f5)],'-')[_0x1922a4(0x284)](_0x17f34d),_0x281975,void 0x0,_0x5c5d43);}));}function fr(_0x39a56b,_0x3a4cde,_0x5170db){const _0x195193=_0x35fe9a;var _0x4cab03=A({},_0x39a56b[_0x195193(0x21b)]);_0x5170db!=null&&_0x5170db[_0x195193(0x23c)]&&_0x4cab03[_0x195193(0x2aa)]===_0x195193(0x23c)&&(_0x4cab03['fill']=_0x5170db[_0x195193(0x23c)]);var _0x48c92c=_0x3a4cde['defIds'];return!_0x48c92c||_0x48c92c[_0x195193(0x443)]===0x0||(_0x39a56b[_0x195193(0x2f5)]===_0x195193(0x282)&&_0x4cab03[_0x195193(0x467)]&&(_0x4cab03[_0x195193(0x467)]=_0x4cab03[_0x195193(0x467)]+_0x3a4cde[_0x195193(0x30a)]),Object['entries'](_0x4cab03)['forEach'](function(_0x50be47){const _0x32ca9f=_0x195193;var _0x399cb1=_0x50be47[0x0],_0x21a4e6=_0x50be47[0x1];typeof _0x21a4e6==_0x32ca9f(0x27c)&&(_0x4cab03[_0x399cb1]=_0x21a4e6[_0x32ca9f(0x211)](/url\(#(.*)\)/,_0x32ca9f(0x323)['concat'](_0x3a4cde[_0x32ca9f(0x30a)],')')));})),_0x4cab03;}function gr(_0x32d52d,_0x4538f6){const _0x113e96=_0x35fe9a;var _0x3ac9c9,_0x395a55=_0x4538f6[_0x113e96(0x396)];return!_0x395a55||_0x395a55[_0x113e96(0x443)]===0x0?_0x32d52d:_0x32d52d[_0x113e96(0x2f5)]==='defs'&&(!((_0x3ac9c9=_0x32d52d['children'])===null||_0x3ac9c9===void 0x0)&&_0x3ac9c9[_0x113e96(0x443)])?A(A({},_0x32d52d),{'children':_0x32d52d[_0x113e96(0x177)][_0x113e96(0x240)](function(_0x1d4100){const _0x242cd2=_0x113e96;return typeof _0x1d4100[_0x242cd2(0x21b)]['id']==_0x242cd2(0x27c)&&_0x395a55&&_0x395a55[_0x242cd2(0x337)](_0x1d4100[_0x242cd2(0x21b)]['id'])>-0x1?A(A({},_0x1d4100),{'attrs':A(A({},_0x1d4100['attrs']),{'id':_0x1d4100[_0x242cd2(0x21b)]['id']+_0x4538f6[_0x242cd2(0x30a)]})}):_0x1d4100;})}):_0x32d52d;}function mr(){const _0x3548b7=_0x35fe9a;return Math[_0x3548b7(0x1d3)]()['toString'](0x24)['substring'](0x2,0x8);}yt[_0x35fe9a(0x1d8)]=_0x35fe9a(0x1f6);var Sr={'tag':_0x35fe9a(0x320),'attrs':{'fill':_0x35fe9a(0x428),'viewBox':'0\x200\x2016\x2016','width':_0x35fe9a(0x270),'height':_0x35fe9a(0x270)},'children':[{'tag':'g','attrs':{'clipPath':_0x35fe9a(0x260)},'children':[{'tag':_0x35fe9a(0x1bc),'attrs':{'stroke':_0x35fe9a(0x35a),'d':_0x35fe9a(0x349),'strokeLinecap':_0x35fe9a(0x32a),'strokeLinejoin':_0x35fe9a(0x32a),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x35fe9a(0x1bc),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x35fe9a(0x2ac)]},Ps=_0x4c1e67(function(_0x29eeef,_0x315086){const _0x452a28=_0x35fe9a;return _0xc09f89(yt,Object[_0x452a28(0x45e)]({},_0x29eeef,{'id':_0x452a28(0x318),'ref':_0x315086,'icon':Sr}));});Ps['displayName']=_0x35fe9a(0x470);var vr={'tag':_0x35fe9a(0x320),'attrs':{'fill':_0x35fe9a(0x428),'viewBox':_0x35fe9a(0x2ec),'width':_0x35fe9a(0x270),'height':_0x35fe9a(0x270)},'children':[{'tag':'g','attrs':{'clipPath':_0x35fe9a(0x2f6)},'children':[{'tag':_0x35fe9a(0x1bc),'attrs':{'stroke':_0x35fe9a(0x35a),'d':_0x35fe9a(0x3b2),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x35fe9a(0x206),'attrs':{},'children':[{'tag':_0x35fe9a(0x1bf),'attrs':{'id':_0x35fe9a(0x17b)},'children':[{'tag':_0x35fe9a(0x1bc),'attrs':{'fill':'#fff','d':_0x35fe9a(0x456),'transform':_0x35fe9a(0x26f)}}]}]}],'defIds':[_0x35fe9a(0x17b)]},Ns=_0x4c1e67(function(_0x5c5ec2,_0x52b8b5){const _0x113092=_0x35fe9a;return _0xc09f89(yt,Object[_0x113092(0x45e)]({},_0x5c5ec2,{'id':_0x113092(0x3c0),'ref':_0x52b8b5,'icon':vr}));});Ns[_0x35fe9a(0x1d8)]=_0x35fe9a(0x218);const pr=_0x35fe9a(0x314),Ir=_0x35fe9a(0x1b5),Er=_0x35fe9a(0x360),Cr=_0x35fe9a(0x33a),br=_0x35fe9a(0x2af),ve={'onlineStatusIcon':pr,'onlineStatusTitle':Ir,'onlineStatus':Er,'online':Cr,'offline':br};function Rr(_0x1543f0){const _0x14f9ab=_0x35fe9a;switch(_0x1543f0){case P[_0x14f9ab(0x2e8)]:return _0x14f9ab(0x3ae);case P[_0x14f9ab(0x24f)]:return _0x14f9ab(0x310);case P['FETCH_MISS']:return _0x14f9ab(0x1c8);case P[_0x14f9ab(0x231)]:return _0x14f9ab(0x2c7);case P[_0x14f9ab(0x298)]:case P['AWAITING']:case P[_0x14f9ab(0x24d)]:return _0x14f9ab(0x471);case P[_0x14f9ab(0x242)]:return _0x14f9ab(0x2b4);}}function Tr(_0x23cbbb){const _0x9046d=_0x35fe9a,{status$:_0x2ccadc}=_0x23cbbb,_0x105b96=_0x2fb9fb(_0x2ccadc,P['NOT_COLLAB']),_0x3d36d5=_0x2e2170(_0x210cec),_0x1725d1=_0x105b96!==P[_0x9046d(0x2e8)],_0x141278=_0x3d36d5['t'](Rr(_0x105b96)),_0x2f1a54=_0x1e7826(ve['onlineStatus'],{[ve[_0x9046d(0x1da)]]:_0x1725d1,[ve['offline']]:!_0x1725d1}),_0x2c4981=_0x1725d1?_0x43d382['createElement'](Ns,null):_0x43d382['createElement'](Ps,null);return _0x43d382[_0x9046d(0x2d3)](_0x9046d(0x179),{'className':_0x2f1a54},_0x43d382[_0x9046d(0x2d3)](_0x9046d(0x179),{'className':ve['onlineStatusIcon']},_0x2c4981),_0x43d382[_0x9046d(0x2d3)](_0x9046d(0x179),{'className':ve['onlineStatusTitle']},_0x141278));}var Or=Object[_0x35fe9a(0x448)],Dr=Object[_0x35fe9a(0x1db)],wr=(_0x307719,_0x26d738,_0x354cac,_0x299db4)=>{for(var _0x5cece9=_0x299db4>0x1?void 0x0:_0x299db4?Dr(_0x26d738,_0x354cac):_0x26d738,_0x467e6d=_0x307719['length']-0x1,_0x407c21;_0x467e6d>=0x0;_0x467e6d--)(_0x407c21=_0x307719[_0x467e6d])&&(_0x5cece9=(_0x299db4?_0x407c21(_0x26d738,_0x354cac,_0x5cece9):_0x407c21(_0x5cece9))||_0x5cece9);return _0x299db4&&_0x5cece9&&Or(_0x26d738,_0x354cac,_0x5cece9),_0x5cece9;},Ae=(_0x182fcb,_0x560a49)=>(_0x2a0ad0,_0x359e86)=>_0x560a49(_0x2a0ad0,_0x359e86,_0x182fcb);let je=class extends _0x2b2023{constructor(_0x2c80b8,_0x58a2ae,_0x223436,_0x53d565){const _0x3fd854=_0x35fe9a;super(),l(this,_0x3fd854(0x186),new _0x316dfa(P[_0x3fd854(0x231)])),(this['_univerInstanceService']=_0x2c80b8,this[_0x3fd854(0x31d)]=_0x58a2ae,this['_injector']=_0x223436,this[_0x3fd854(0x198)]=_0x53d565,this[_0x3fd854(0x1f7)](),this[_0x3fd854(0x2fe)]());}[_0x35fe9a(0x1f7)](){const _0x4eef31=_0x35fe9a;this[_0x4eef31(0x382)](this[_0x4eef31(0x31d)][_0x4eef31(0x3c6)](_0x851c42[_0x4eef31(0x1b9)],()=>_0x4cf379(Pr({'status$':this['_status$'][_0x4eef31(0x36f)]()}),this[_0x4eef31(0x325)])));}['_initStatusListener'](){const _0x22df4c=_0x35fe9a;this[_0x22df4c(0x382)](_0x5b60bf(this[_0x22df4c(0x262)][_0x22df4c(0x2fd)]['pipe'](_0x13231a(()=>{const _0xea05b5=_0x22df4c,_0x28a97d=this[_0xea05b5(0x262)]['getFocusedUnit']();return _0x28a97d?this['_collaborationController'][_0xea05b5(0x3b9)](_0x28a97d[_0xea05b5(0x22b)]()):_0x214b8f(null);}),_0x13231a(_0xe9f8bf=>_0xe9f8bf?_0xe9f8bf['status$']:_0x214b8f(P['NOT_COLLAB'])))['subscribe'](_0x19a080=>{const _0x64d07=_0x22df4c;this[_0x64d07(0x186)]['next'](_0x19a080);})));}};je=wr([_0x47af0a(_0x550976[_0x35fe9a(0x44a)],je),Ae(0x0,_0x1ffae8),Ae(0x1,_0x1edecf),Ae(0x2,_0x5b3e40(_0x331eca)),Ae(0x3,_0x5b3e40(Ee))],je);function Pr(_0x42d173){const {status$:_0x513494}=_0x42d173;return function(){const _0x4b8eea=_0x2564;return _0x43d382[_0x4b8eea(0x2d3)](Tr,{'status$':_0x513494});};}const Ms=_0x83cf67(_0x35fe9a(0x402));var Nr=Object[_0x35fe9a(0x448)],Mr=Object[_0x35fe9a(0x1db)],Ar=(_0x111929,_0x127343,_0x395fd7,_0x4b9a08)=>{const _0x35757c=_0x35fe9a;for(var _0x17ca1e=_0x4b9a08>0x1?void 0x0:_0x4b9a08?Mr(_0x127343,_0x395fd7):_0x127343,_0xdff059=_0x111929[_0x35757c(0x443)]-0x1,_0x18a694;_0xdff059>=0x0;_0xdff059--)(_0x18a694=_0x111929[_0xdff059])&&(_0x17ca1e=(_0x4b9a08?_0x18a694(_0x127343,_0x395fd7,_0x17ca1e):_0x18a694(_0x17ca1e))||_0x17ca1e);return _0x4b9a08&&_0x17ca1e&&Nr(_0x127343,_0x395fd7,_0x17ca1e),_0x17ca1e;},ce=(_0x54c2a3,_0x356a76)=>(_0x3f7a7d,_0x34f249)=>_0x356a76(_0x3f7a7d,_0x34f249,_0x54c2a3);let He=class extends _0x2f203c{constructor(_0x1258c2,_0x258f39,_0x7873a8,_0x1b32dc,_0x592692,_0x2c4d23){const _0x5c50df=_0x35fe9a;super(),this[_0x5c50df(0x442)]=_0x1258c2,this[_0x5c50df(0x248)]=_0x258f39,this[_0x5c50df(0x3d3)]=_0x7873a8,this[_0x5c50df(0x3d7)]=_0x1b32dc,this[_0x5c50df(0x29d)]=_0x592692,_0x2c4d23?_0x2c4d23==null||_0x2c4d23[_0x5c50df(0x1a4)]()['then'](()=>this[_0x5c50df(0x31f)]()):(this[_0x5c50df(0x248)][_0x5c50df(0x28f)](_0x5c50df(0x42d),_0x5c50df(0x2da)),this[_0x5c50df(0x31f)]());}async[_0x35fe9a(0x31f)](){const _0x2ddae3=_0x35fe9a,_0x2dfc83=this[_0x2ddae3(0x442)][_0x2ddae3(0x31e)]('unit'),_0x4b4f11=this[_0x2ddae3(0x442)][_0x2ddae3(0x31e)](_0x2ddae3(0x279));if(!_0x2dfc83||!_0x4b4f11){this[_0x2ddae3(0x248)][_0x2ddae3(0x28f)]('[DataLoaderController]',_0x2ddae3(0x29b));return;}switch(Number(_0x4b4f11)){case H[_0x2ddae3(0x339)]:{const _0x574663=await this[_0x2ddae3(0x193)](_0x2dfc83);this['_setupSubUnitSync'](_0x574663);break;}case H[_0x2ddae3(0x1f2)]:{await this[_0x2ddae3(0x386)](_0x2dfc83);break;}default:{this[_0x2ddae3(0x248)][_0x2ddae3(0x185)](_0x2ddae3(0x42d),_0x2ddae3(0x27a));break;}}}async[_0x35fe9a(0x190)](_0x2bd6b9){const _0x16edb1=_0x35fe9a;await this['_updateSubUnitFromURLParams'](_0x2bd6b9),_0x2bd6b9[_0x16edb1(0x1bb)][_0x16edb1(0x332)](_0x2c14e9(this[_0x16edb1(0x3b0)]))['subscribe'](_0x4019eb=>{_0x4019eb&&this['_updateURLWithCurrentState'](_0x4019eb);}),this['_urlService'][_0x16edb1(0x3d6)][_0x16edb1(0x332)](_0x2c14e9(this[_0x16edb1(0x3b0)]))['subscribe'](()=>this[_0x16edb1(0x31c)](_0x2bd6b9));}['_updateURLWithCurrentState'](_0x40e17b,_0x51f634=!0x1){const _0x4de8c5=_0x35fe9a,_0x2da77a=this[_0x4de8c5(0x442)][_0x4de8c5(0x31e)]('subunit');_0x40e17b[_0x4de8c5(0x1b2)]()!==_0x2da77a&&this[_0x4de8c5(0x442)]['setParam'](_0x4de8c5(0x481),_0x40e17b[_0x4de8c5(0x1b2)](),_0x51f634);}async['_updateSubUnitFromURLParams'](_0x483578){const _0x3b4521=_0x35fe9a;var _0x3e9382;const _0x20eee6=this['_urlService'][_0x3b4521(0x31e)]('subunit');if(!_0x20eee6||!_0x483578['getSheetBySheetId'](_0x20eee6)){const _0x4a2d34=_0x483578[_0x3b4521(0x351)]()[0x0],_0xb352bc=_0x483578[_0x3b4521(0x3cd)](_0x4a2d34);if(!_0xb352bc)return;this[_0x3b4521(0x369)](_0xb352bc,!0x0),await this[_0x3b4521(0x3d3)]['executeCommand'](_0x34d4ad['id'],{'unitId':_0x483578['getUnitId'](),'subUnitId':_0x4a2d34});return;}((_0x3e9382=_0x483578[_0x3b4521(0x255)]())==null?void 0x0:_0x3e9382[_0x3b4521(0x1b2)]())!==_0x20eee6&&await this[_0x3b4521(0x3d3)][_0x3b4521(0x356)](_0x34d4ad['id'],{'unitId':_0x483578[_0x3b4521(0x22b)](),'subUnitId':_0x20eee6});}async[_0x35fe9a(0x193)](_0x298a1c){const _0x2b6bf4=_0x35fe9a;let _0x11ac24=0x0;const _0xe2d1dc=await this[_0x2b6bf4(0x3d7)][_0x2b6bf4(0x299)](_0x298a1c);return _0xe2d1dc&&(_0xe2d1dc[_0x2b6bf4(0x2be)]||_0xe2d1dc['mutations'][_0x2b6bf4(0x443)]!==0x0)&&(_0x11ac24=_0xe2d1dc[_0x2b6bf4(0x300)]),_0x11ac24===0x0&&this[_0x2b6bf4(0x248)][_0x2b6bf4(0x28f)]('[DataLoaderController]',_0x2b6bf4(0x3c3)),this[_0x2b6bf4(0x29d)][_0x2b6bf4(0x1a3)](_0x298a1c,_0x11ac24);}async[_0x35fe9a(0x386)](_0x492479){const _0x5f8ff6=_0x35fe9a;let _0x101f09=0x0;const _0x535d16=await this[_0x5f8ff6(0x3d7)][_0x5f8ff6(0x299)](_0x492479);return _0x535d16&&(_0x535d16[_0x5f8ff6(0x2be)]||_0x535d16[_0x5f8ff6(0x3e5)][_0x5f8ff6(0x443)]!==0x0)&&(_0x101f09=_0x535d16[_0x5f8ff6(0x300)]),_0x101f09===0x0&&this[_0x5f8ff6(0x248)]['debug'](_0x5f8ff6(0x42d),_0x5f8ff6(0x3c3)),this[_0x5f8ff6(0x29d)][_0x5f8ff6(0x47d)](_0x492479,_0x101f09);}};He=Ar([_0x47af0a(_0x550976[_0x35fe9a(0x44a)],He),ce(0x0,Ms),ce(0x1,_0x294e85),ce(0x2,_0x373f07),ce(0x3,_0x5b3e40(D)),ce(0x4,_0x5b3e40(_0x4b1ee5)),ce(0x5,_0xb29030(_0x32c3f9))],He);var yr=Object[_0x35fe9a(0x448)],Ur=Object[_0x35fe9a(0x1db)],Lr=(_0x6b78b2,_0x3c69f2,_0x5d78fe,_0x5bb0f0)=>{const _0x1804cf=_0x35fe9a;for(var _0x58e18c=_0x5bb0f0>0x1?void 0x0:_0x5bb0f0?Ur(_0x3c69f2,_0x5d78fe):_0x3c69f2,_0x36d887=_0x6b78b2[_0x1804cf(0x443)]-0x1,_0x553669;_0x36d887>=0x0;_0x36d887--)(_0x553669=_0x6b78b2[_0x36d887])&&(_0x58e18c=(_0x5bb0f0?_0x553669(_0x3c69f2,_0x5d78fe,_0x58e18c):_0x553669(_0x58e18c))||_0x58e18c);return _0x5bb0f0&&_0x58e18c&&yr(_0x3c69f2,_0x5d78fe,_0x58e18c),_0x58e18c;},Qt=(_0x10d3cf,_0xb22dec)=>(_0x477f52,_0x10fdf6)=>_0xb22dec(_0x477f52,_0x10fdf6,_0x10d3cf);const $r=_0x35fe9a(0x473),jr='Univer';let xe=class extends _0x2b2023{constructor(_0x52f599,_0x580120){const _0x2e4255=_0x35fe9a;super(),this['_univerInstanceService']=_0x52f599,this['_configService']=_0x580120,this[_0x2e4255(0x31f)]();}['_init'](){const _0x357336=_0x35fe9a;this['disposeWithMe'](_0x5b60bf(this[_0x357336(0x262)][_0x357336(0x2fd)]['subscribe'](()=>{const _0x4b57bf=_0x357336;var _0x3e7e79;const _0x1c62f0=this[_0x4b57bf(0x262)]['getFocusedUnit']();let _0x2f0ecd=(_0x3e7e79=this[_0x4b57bf(0x449)][_0x4b57bf(0x358)]($r))!=null?_0x3e7e79:jr;_0x1c62f0 instanceof _0x23594e&&(_0x2f0ecd=_0x1c62f0['name']),document['title']=_0x2f0ecd;})));}};xe=Lr([_0x47af0a(_0x550976[_0x35fe9a(0x1a0)],xe),Qt(0x0,_0x1ffae8),Qt(0x1,_0x4e019d)],xe);var Hr=Object[_0x35fe9a(0x448)],xr=Object[_0x35fe9a(0x1db)],Fr=(_0x7805df,_0x1be6d2,_0x53a440,_0x44614e)=>{for(var _0x5d48f3=_0x44614e>0x1?void 0x0:_0x44614e?xr(_0x1be6d2,_0x53a440):_0x1be6d2,_0x18ab8f=_0x7805df['length']-0x1,_0x47081e;_0x18ab8f>=0x0;_0x18ab8f--)(_0x47081e=_0x7805df[_0x18ab8f])&&(_0x5d48f3=(_0x44614e?_0x47081e(_0x1be6d2,_0x53a440,_0x5d48f3):_0x47081e(_0x5d48f3))||_0x5d48f3);return _0x44614e&&_0x5d48f3&&Hr(_0x1be6d2,_0x53a440,_0x5d48f3),_0x5d48f3;},es=(_0x2ac4a3,_0xc75419)=>(_0x547484,_0x1632da)=>_0xc75419(_0x547484,_0x1632da,_0x2ac4a3);let St=class{constructor(_0x534060,_0x1c3e96){const _0x2ccb12=_0x35fe9a;this[_0x2ccb12(0x449)]=_0x534060,this[_0x2ccb12(0x391)]=_0x1c3e96;}async[_0x35fe9a(0x2a7)](_0xf928e4,_0x214231){const _0x5885bf=_0x35fe9a;var _0x41ed2b;const {unitID:_0x33bb92,type:_0x24a51d,revision:_0x54c295=0x0}=_0x214231,_0x564b73=this[_0x5885bf(0x3f6)]()+'/'+_0x24a51d+_0x5885bf(0x220)+_0x33bb92+_0x5885bf(0x229)+(_0x54c295===0x1?0x0:_0x54c295),_0x343a55=(await this['_httpService'][_0x5885bf(0x3e8)](_0x564b73))[_0x5885bf(0x2e4)],_0x29a9b0=(_0x41ed2b=_0x343a55[_0x5885bf(0x301)])==null?void 0x0:_0x41ed2b[_0x5885bf(0x359)];if(_0x29a9b0){const _0x2e82ca=_0x29a9b0==null?void 0x0:_0x29a9b0[_0x5885bf(0x41c)],_0x3f95a9=_0x3071b6[_0x5885bf(0x2ae)](_0x42e26e(_0x2e82ca));_0x29a9b0[_0x5885bf(0x41c)]=_0x3f95a9,Object[_0x5885bf(0x3ce)](_0x29a9b0[_0x5885bf(0x249)])[_0x5885bf(0x2b2)](([,_0x56902f])=>{const _0x54e0c8=_0x5885bf,_0x34f538=_0x56902f[_0x54e0c8(0x41c)],_0x138b3e=_0x3071b6['encode'](_0x42e26e(_0x34f538));_0x56902f[_0x54e0c8(0x41c)]=_0x138b3e;});}return _0x343a55;}async['getSheetBlock'](_0x2989e2,_0x17bde2){const _0x42cef1=_0x35fe9a,{unitID:_0x34b462,type:_0x4f24ab,blockID:_0x2cce1f}=_0x17bde2,_0x4e3ead=this['_getAPIPrefix']()+'/'+_0x4f24ab+'/unit/'+_0x34b462+'/block/'+_0x2cce1f;return(await this[_0x42cef1(0x391)][_0x42cef1(0x3e8)](_0x4e3ead))['body'];}async[_0x35fe9a(0x3c5)](_0x49f9a0,_0x54ce97){const _0x3f3e0d=_0x35fe9a,{unitID:_0x4fc3a6,type:_0x324b48,from:_0x6b86ec,to:_0x3c7e2e}=_0x54ce97,_0x4cd8ca=this['_getAPIPrefix']()+'/'+_0x324b48+_0x3f3e0d(0x220)+_0x4fc3a6+_0x3f3e0d(0x2c1)+_0x6b86ec+'&to='+_0x3c7e2e;return(await this[_0x3f3e0d(0x391)][_0x3f3e0d(0x3e8)](_0x4cd8ca))[_0x3f3e0d(0x2e4)];}[_0x35fe9a(0x3f6)](){const _0x455f46=_0x35fe9a;var _0x2b400f;return(_0x2b400f=this['_configService']['getConfig'](Yi))!=null?_0x2b400f:this[_0x455f46(0x39d)]();}[_0x35fe9a(0x39d)](){const _0x560f6a=_0x35fe9a;var _0x3284f4;return(_0x3284f4=this[_0x560f6a(0x449)][_0x560f6a(0x358)](Wi))!=null?_0x3284f4:Gi;}async[_0x35fe9a(0x388)](_0x3b20ab,_0x506caa){const _0x94660c=_0x35fe9a,_0x4dad14='/universer-api/snapshot/'+_0x506caa['type']+_0x94660c(0x220)+_0x506caa[_0x94660c(0x19e)]+_0x94660c(0x474);return(await this['_httpService'][_0x94660c(0x3e8)](_0x4dad14,{'params':{'resourceId':JSON['stringify'](_0x506caa[_0x94660c(0x3ba)])}}))['body'];}['saveSnapshot'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x35fe9a(0x1ce)](){const _0x39be73=_0x35fe9a;throw new Error(_0x39be73(0x2a4));}[_0x35fe9a(0x296)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};St=Fr([es(0x0,_0x4e019d),es(0x1,_0x5b3e40(_0x588bfd))],St);var Br=Object[_0x35fe9a(0x448)],Vr=Object[_0x35fe9a(0x1db)],kr=(_0x19ffda,_0x3e3676,_0x2c8340,_0x1e024c)=>{const _0x158199=_0x35fe9a;for(var _0x3726a1=_0x1e024c>0x1?void 0x0:_0x1e024c?Vr(_0x3e3676,_0x2c8340):_0x3e3676,_0x26c914=_0x19ffda[_0x158199(0x443)]-0x1,_0x5c18d1;_0x26c914>=0x0;_0x26c914--)(_0x5c18d1=_0x19ffda[_0x26c914])&&(_0x3726a1=(_0x1e024c?_0x5c18d1(_0x3e3676,_0x2c8340,_0x3726a1):_0x5c18d1(_0x3726a1))||_0x3726a1);return _0x1e024c&&_0x3726a1&&Br(_0x3e3676,_0x2c8340,_0x3726a1),_0x3726a1;},pe=(_0x3d3c5e,_0x1acc8a)=>(_0xf3c2b2,_0x33a38a)=>_0x1acc8a(_0xf3c2b2,_0x33a38a,_0x3d3c5e);let vt=class extends _0x3e7dac{constructor(_0x41ff57,_0x43b28b,_0x3dcdb3,_0x43d93f,_0x5e1a58){const _0x57ee2b=_0x35fe9a;super(_0x41ff57,_0x43b28b,_0x3dcdb3),this['_transformService']=_0x43d93f,this[_0x57ee2b(0x248)]=_0x5e1a58;}['transformUndoRedo'](_0x14ea5a,_0x6865ed){const _0x4dafa8=_0x35fe9a,_0x580712=this[_0x4dafa8(0x3fb)](_0x14ea5a);if(_0x580712)try{const _0x2c47c8=this[_0x4dafa8(0x250)](_0x580712,_0x6865ed);this['_substituteUndoStack'](_0x14ea5a,_0x2c47c8);}catch(_0x55991f){this[_0x4dafa8(0x248)][_0x4dafa8(0x185)](_0x4dafa8(0x1e4),_0x55991f),this[_0x4dafa8(0x319)](_0x14ea5a);}const _0x583dd1=this[_0x4dafa8(0x180)](_0x14ea5a);if(_0x583dd1)try{const _0x37ba2c=this[_0x4dafa8(0x250)](_0x583dd1,_0x6865ed);this[_0x4dafa8(0x3bd)](_0x14ea5a,_0x37ba2c);}catch(_0x242d11){this[_0x4dafa8(0x248)][_0x4dafa8(0x185)](_0x242d11),this[_0x4dafa8(0x2cd)](_0x14ea5a);}}['_clearUndo'](_0x12818f){const _0xc51479=_0x35fe9a,_0x12330c=this['_getUndoStack'](_0x12818f);_0x12330c&&(_0x12330c[_0xc51479(0x443)]=0x0,this[_0xc51479(0x221)]());}[_0x35fe9a(0x2cd)](_0x88292f){const _0x228fe0=_0x35fe9a,_0x452935=this['_getRedoStack'](_0x88292f);_0x452935&&(_0x452935[_0x228fe0(0x443)]=0x0,this[_0x228fe0(0x221)]());}[_0x35fe9a(0x26c)](_0x2d6c26,_0x4fcd7b){const _0x4de874=_0x35fe9a;this['_undoStacks'][_0x4de874(0x445)](_0x2d6c26,_0x4fcd7b),this[_0x4de874(0x221)]();}['_substituteRedoStack'](_0x1b62d1,_0x20f62f){const _0x5d08ea=_0x35fe9a;this[_0x5d08ea(0x215)][_0x5d08ea(0x445)](_0x1b62d1,_0x20f62f),this[_0x5d08ea(0x221)]();}[_0x35fe9a(0x250)](_0x117267,_0x30c34d){const _0x22cf54=_0x35fe9a,_0x3154e0=[];let _0x15848c=_0x30c34d,_0x5f35b5=_0x30c34d;for(let _0x4a8769=_0x117267['length']-0x1;_0x4a8769>=0x0;_0x4a8769--){const {unitID:_0x12a395,undoMutations:_0x278ee7,redoMutations:_0x40ef3e}=_0x117267[_0x4a8769],_0x3e9260=this[_0x22cf54(0x348)]['transformMutationsWithChangeset'](_0x15848c,_0x278ee7),_0x4a58bf=this[_0x22cf54(0x348)][_0x22cf54(0x1ff)](_0x5f35b5,_0x40ef3e);if(_0x4f854d(_0x3e9260)||_0x4f854d(_0x4a58bf)){this[_0x22cf54(0x248)][_0x22cf54(0x185)](_0x22cf54(0x1e4),'transformStack\x20failed!',_0x3e9260,_0x4a58bf);break;}_0x15848c=_0x3e9260['c1Prime'],_0x5f35b5=_0x4a58bf[_0x22cf54(0x2fa)],_0x3154e0['push']({'unitID':_0x12a395,'undoMutations':_0x3e9260['m2Prime'],'redoMutations':_0x4a58bf[_0x22cf54(0x3b5)]});}return _0x3154e0['reverse']();}};vt=kr([pe(0x0,_0x1ffae8),pe(0x1,_0x373f07),pe(0x2,_0x559f35),pe(0x3,_0x56176b),pe(0x4,_0x294e85)],vt);class Wr extends _0x2f203c{constructor(){const _0x44c162=_0x35fe9a;super(),l(this,_0x44c162(0x3d6)),this[_0x44c162(0x3d6)]=_0x4ba866(window,_0x44c162(0x46e))[_0x44c162(0x332)](_0x2c14e9(this[_0x44c162(0x3b0)]),_0x436a17(0x1),_0x49a35c(void 0x0));}[_0x35fe9a(0x283)](_0x2fcbd3,_0x5aed24,_0x2ca1d0=!0x1){const _0x31b15a=_0x35fe9a,_0xa4854e=new URL(window[_0x31b15a(0x437)]['href']);_0xa4854e[_0x31b15a(0x2f7)]['set'](_0x2fcbd3,_0x5aed24),_0x2ca1d0?window['history']['replaceState']('','',_0xa4854e['toString']()):window[_0x31b15a(0x204)][_0x31b15a(0x32e)]('','',_0xa4854e['toString']());}[_0x35fe9a(0x1e6)](_0x5909a5,_0x24806b=!0x1){const _0x3c8159=_0x35fe9a,_0x22cb0e=new URL(window[_0x3c8159(0x437)][_0x3c8159(0x447)]);_0x22cb0e['searchParams'][_0x3c8159(0x46f)](_0x5909a5),_0x24806b?window[_0x3c8159(0x204)][_0x3c8159(0x219)]('','',_0x22cb0e[_0x3c8159(0x245)]()):window[_0x3c8159(0x204)]['pushState']('','',_0x22cb0e[_0x3c8159(0x245)]());}[_0x35fe9a(0x31e)](_0x5a214d){const _0xc28006=_0x35fe9a;var _0x231aa4;return(_0x231aa4=new URL(window['location']['href'])[_0xc28006(0x2f7)][_0xc28006(0x3e8)](_0x5a214d))!=null?_0x231aa4:void 0x0;}}const nt=_0x35fe9a(0x2b0),Gr=_0x35fe9a(0x34c),ye=0x6,Yr=1.5,rt=0x4,Kr=1.5,Xr=_0x35fe9a(0x350);class Jr{constructor(_0x2f1998,_0x2b648d,_0x2828be,_0x2ce04f){const _0x29def1=_0x35fe9a;l(this,'_shapes',[]),l(this,_0x29def1(0x458),null),l(this,'_textBubble',null),l(this,_0x29def1(0x174),null),l(this,_0x29def1(0x1a7),null),l(this,'_eventUnsubscribe',null),(this[_0x29def1(0x2db)]=_0x2f1998,this[_0x29def1(0x32f)]=_0x2b648d,this['_docSkeleton']=_0x2828be,this[_0x29def1(0x426)]=_0x2ce04f,this[_0x29def1(0x459)]());}set[_0x35fe9a(0x35b)](_0x92f87e){const _0x49016f=_0x35fe9a;_0x92f87e?(this['_anchorDot']&&this[_0x49016f(0x174)]['hide'](),this[_0x49016f(0x21d)]&&this['_textBubble'][_0x49016f(0x18c)]()):(this['_anchorDot']&&this[_0x49016f(0x174)][_0x49016f(0x18c)](),this['_textBubble']&&this[_0x49016f(0x21d)][_0x49016f(0x27e)]());}[_0x35fe9a(0x264)](){const _0x5c8082=_0x35fe9a;for(const _0x2a668e of this[_0x5c8082(0x45d)])_0x2a668e[_0x5c8082(0x264)]();this[_0x5c8082(0x21d)]&&this[_0x5c8082(0x21d)][_0x5c8082(0x264)](),this[_0x5c8082(0x174)]&&this[_0x5c8082(0x174)]['dispose'](),this['_anchor']&&this[_0x5c8082(0x458)][_0x5c8082(0x264)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x35fe9a(0x459)](){const _0x382883=_0x35fe9a,{_docSkeleton:_0x1532cc,_document:_0x174427}=this,{color:_0x2238ef,name:_0x1c1fd0,ranges:_0x5a0bc8}=this[_0x382883(0x2db)],_0x3617f1=_0x174427[_0x382883(0x1c7)](),{docsLeft:_0x1d6efe,docsTop:_0x4ba5d0}=_0x3617f1,_0x178123=new _0x7277fa(_0x3617f1,_0x1532cc);for(const {startOffset:_0x526e3c,endOffset:_0x5c2a08,collapsed:_0x506b29,isActive:_0x11a87a}of _0x5a0bc8){const _0x3018e5=_0x1532cc[_0x382883(0x17c)](_0x526e3c),_0x34e164=_0x1532cc['findNodePositionByCharIndex'](_0x5c2a08);if(_0x11a87a){const {contentBoxPointGroup:_0x572187}=_0x178123[_0x382883(0x47a)](_0x34e164,_0x34e164);if(_0x572187[_0x382883(0x443)]===0x0)continue;this[_0x382883(0x363)](_0x2238ef,_0x572187,_0x1d6efe,_0x4ba5d0,_0x1c1fd0),this['_eventUnsubscribe']=this[_0x382883(0x317)]();}if(!_0x506b29){const {contentBoxPointGroup:_0x407a25}=_0x178123[_0x382883(0x47a)](_0x3018e5,_0x34e164);if(_0x407a25[_0x382883(0x443)]===0x0)continue;this['_drawRange'](_0x2238ef,_0x407a25,_0x1d6efe,_0x4ba5d0);}}}['_drawAnchor'](_0x2dd256,_0x319159,_0x2edb7f,_0x288109,_0x234a10){const _0x291f81=_0x35fe9a,_0x3e1324=this[_0x291f81(0x1e0)](_0x319159),{left:_0x5d056d,top:_0x55251d,height:_0x4974f0}=_0x3e1324,_0x1bc5bf=this[_0x291f81(0x1ab)](),_0x16aed2=Kr/_0x1bc5bf,_0x1de903=new _0x2d9440(nt+_0x295a4b[_0x291f81(0x352)](ye),{'left':_0x5d056d+_0x2edb7f-_0x16aed2,'top':_0x55251d+_0x288109,'height':_0x4974f0,'width':Yr,'fill':_0x2dd256||_0x57b7c5(_0x1e8e1f[_0x291f81(0x2bd)],0x0),'strokeWidth':_0x16aed2,'stroke':Xr,'evented':!0x0});this[_0x291f81(0x458)]=_0x1de903,this[_0x291f81(0x32f)]['addObject'](_0x1de903,_0x5e3717);const _0x5d97f9=new _0x2d9440(nt+_0x295a4b[_0x291f81(0x352)](ye),{'left':_0x5d056d+_0x2edb7f-_0x16aed2,'top':_0x55251d+_0x288109-rt/0x2,'height':rt,'width':rt,'fill':_0x2dd256||_0x57b7c5(_0x1e8e1f[_0x291f81(0x2bd)],0x0),'strokeWidth':0x0,'stroke':_0x2dd256||_0x57b7c5(_0x1e8e1f[_0x291f81(0x2bd)],0x0),'evented':!0x1});this[_0x291f81(0x174)]=_0x5d97f9,this[_0x291f81(0x32f)][_0x291f81(0x3ed)](_0x5d97f9,_0x5e3717);const _0x51f8fe=new ze(nt+_0x295a4b[_0x291f81(0x352)](ye),{'left':_0x5d056d+_0x2edb7f-_0x16aed2,'top':_0x55251d+_0x288109-Oe,'text':_0x234a10,'color':_0x2dd256});this[_0x291f81(0x21d)]=_0x51f8fe,this['_scene'][_0x291f81(0x3ed)](_0x51f8fe,_0x5e3717),this['_hover']=!0x1;}['_handleHover'](){const _0x591f68=_0x35fe9a,_0x1e0b8b=this['_anchor'][_0x591f68(0x2e6)]['subscribeEvent'](()=>{const _0x18388f=_0x591f68;this[_0x18388f(0x35b)]=!0x0;}),_0x254c84=this[_0x591f68(0x458)][_0x591f68(0x2e5)]['subscribeEvent'](()=>{const _0x2c4cb3=_0x591f68;this[_0x2c4cb3(0x1a7)]&&clearTimeout(this[_0x2c4cb3(0x1a7)]),this[_0x2c4cb3(0x1a7)]=setTimeout(()=>{const _0x69f1a1=_0x2c4cb3;this[_0x69f1a1(0x35b)]=!0x1;},0x7d0);});return()=>{_0x1e0b8b['unsubscribe'](),_0x254c84['unsubscribe']();};}[_0x35fe9a(0x410)](_0x16dc65,_0x1faec8,_0x2973d6,_0x1da079){const _0x5c066c=_0x35fe9a,_0x5095ab=new _0x2de130(_0x16dc65)[_0x5c066c(0x1be)](0.2)['toRgbString'](),_0x5662ea=new _0x530d78(Gr+_0x295a4b[_0x5c066c(0x352)](ye),{'pointsGroup':_0x1faec8,'fill':_0x5095ab||_0x57b7c5(_0x1e8e1f[_0x5c066c(0x2bd)],0.2),'left':_0x2973d6,'top':_0x1da079,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5c066c(0x45d)][_0x5c066c(0x472)](_0x5662ea),this[_0x5c066c(0x32f)]['addObject'](_0x5662ea,_0x5e3717);}[_0x35fe9a(0x1e0)](_0x3a89b3){const _0x1934ee=_0x3a89b3[0x0],_0x171d14=_0x1934ee[0x0],_0x26c86f=_0x1934ee[0x2],{x:_0x2f149c,y:_0x1aabab}=_0x171d14,{x:_0x14d903,y:_0x576314}=_0x26c86f;return{'left':_0x2f149c,'top':_0x1aabab,'width':_0x14d903-_0x2f149c,'height':_0x576314-_0x1aabab};}[_0x35fe9a(0x1ab)](){const _0x91c450=_0x35fe9a,{scaleX:_0x4d66b3,scaleY:_0x114ba2}=this['_scene'][_0x91c450(0x302)]();return Math[_0x91c450(0x2bb)](_0x4d66b3,_0x114ba2);}}var zr=Object[_0x35fe9a(0x448)],Zr=Object[_0x35fe9a(0x1db)],qr=(_0x519338,_0x340848,_0x150658,_0x3b24b2)=>{const _0x6a4eb2=_0x35fe9a;for(var _0x5957dd=_0x3b24b2>0x1?void 0x0:_0x3b24b2?Zr(_0x340848,_0x150658):_0x340848,_0x30ea13=_0x519338[_0x6a4eb2(0x443)]-0x1,_0x341bf6;_0x30ea13>=0x0;_0x30ea13--)(_0x341bf6=_0x519338[_0x30ea13])&&(_0x5957dd=(_0x3b24b2?_0x341bf6(_0x340848,_0x150658,_0x5957dd):_0x341bf6(_0x5957dd))||_0x5957dd);return _0x3b24b2&&_0x5957dd&&zr(_0x340848,_0x150658,_0x5957dd),_0x5957dd;},Ie=(_0x385f53,_0x108d09)=>(_0x30a864,_0x176789)=>_0x108d09(_0x30a864,_0x176789,_0x385f53);let Fe=class extends _0x2f203c{constructor(_0xa495ad,_0x49b35d,_0x250be8,_0x337fab,_0x1bbd73){const _0x4f10f4=_0x35fe9a;super(),l(this,_0x4f10f4(0x277),[]),(this[_0x4f10f4(0x214)]=_0xa495ad,this[_0x4f10f4(0x262)]=_0x49b35d,this[_0x4f10f4(0x2c3)]=_0x250be8,this['_docSkeletonManagerService']=_0x337fab,this[_0x4f10f4(0x1cb)]=_0x1bbd73,this['_init']());}[_0x35fe9a(0x31f)](){const _0x3c4607=_0x35fe9a;this[_0x3c4607(0x361)][_0x3c4607(0x3ee)][_0x3c4607(0x332)](_0x479f07(this[_0x3c4607(0x3b0)]),_0x443800(_0x10624f=>{const _0x3f4bcf=_0x3c4607;if(_0x10624f){const _0x5cf7ff=_0x10624f[_0x3f4bcf(0x188)]()[_0x3f4bcf(0x3c7)]()[_0x3f4bcf(0x22b)]();return _0x409cac(this[_0x3f4bcf(0x214)]['getCollabCursors$'](_0x5cf7ff),this[_0x3f4bcf(0x1cb)][_0x3f4bcf(0x213)])[_0x3f4bcf(0x332)](_0x134cb9(([_0x5a6077,_0x408a2c])=>({'skeleton':_0x10624f,'cursors':[..._0x5a6077[_0x3f4bcf(0x383)]()]['flatMap'](_0x2e00a2=>({..._0x2e00a2,'color':_0x408a2c[_0x2e00a2[_0x3f4bcf(0x309)]]}))})));}return _0x214b8f({'skeleton':null,'cursors':[]});}))[_0x3c4607(0x40e)](({skeleton:_0x50fbdf,cursors:_0x3533a0})=>{const _0x3cee2c=_0x3c4607;this[_0x3cee2c(0x3ad)](),_0x50fbdf&&this[_0x3cee2c(0x2a6)](_0x50fbdf,_0x3533a0);});}[_0x35fe9a(0x2a6)](_0xfde157,_0x16bbdb){const _0x1b9513=_0x35fe9a,_0x53f8ec=this[_0x1b9513(0x2cb)]();if(_0x53f8ec==null)return;const {scene:_0x121ec8,document:_0x32e4fd}=_0x53f8ec,_0x1f3c2d=_0x16bbdb[_0x1b9513(0x240)](_0xc2ec5b=>new Jr(_0xc2ec5b,_0x121ec8,_0xfde157,_0x32e4fd));this[_0x1b9513(0x277)]=_0x1f3c2d;}[_0x35fe9a(0x3ad)](){const _0x2f874d=_0x35fe9a;this[_0x2f874d(0x277)][_0x2f874d(0x2b2)](_0x66d594=>_0x66d594[_0x2f874d(0x264)]()),this[_0x2f874d(0x277)]=[];}[_0x35fe9a(0x2cb)](){const _0xc4912c=_0x35fe9a;return _0x1fda07(this[_0xc4912c(0x262)],this['_renderManagerService']);}};Fe=qr([_0x47af0a(_0x550976['Steady'],Fe),Ie(0x0,_0x5b3e40(ue)),Ie(0x1,_0x1ffae8),Ie(0x2,_0x458795),Ie(0x3,_0x5b3e40(_0x59817c)),Ie(0x4,_0x5b3e40(_0x166891))],Fe);var Qr=Object[_0x35fe9a(0x448)],eo=Object['getOwnPropertyDescriptor'],to=(_0xc1dfd9,_0x555e75,_0x55867f,_0x4cd490)=>{const _0x5d9582=_0x35fe9a;for(var _0x9adbc0=_0x4cd490>0x1?void 0x0:_0x4cd490?eo(_0x555e75,_0x55867f):_0x555e75,_0x20d7ba=_0xc1dfd9[_0x5d9582(0x443)]-0x1,_0x42c6ac;_0x20d7ba>=0x0;_0x20d7ba--)(_0x42c6ac=_0xc1dfd9[_0x20d7ba])&&(_0x9adbc0=(_0x4cd490?_0x42c6ac(_0x555e75,_0x55867f,_0x9adbc0):_0x42c6ac(_0x9adbc0))||_0x9adbc0);return _0x4cd490&&_0x9adbc0&&Qr(_0x555e75,_0x55867f,_0x9adbc0),_0x9adbc0;},ot=(_0x4303b7,_0x2f495a)=>(_0x1a4df8,_0x473ea3)=>_0x2f495a(_0x1a4df8,_0x473ea3,_0x4303b7);let Ge=class{constructor(_0x45cf6e,_0x418a5e,_0x5f4ea1){const _0xbc706=_0x35fe9a;this[_0xbc706(0x449)]=_0x45cf6e,this['_httpService']=_0x418a5e,this[_0xbc706(0x368)]=_0x5f4ea1,this[_0xbc706(0x2fb)]();}[_0x35fe9a(0x2fb)](){const _0x1fb032=_0x35fe9a;this[_0x1fb032(0x391)][_0x1fb032(0x381)]({'priority':0x1,'interceptor':(_0xafb920,_0x22e64c)=>_0x22e64c(_0xafb920)[_0x1fb032(0x332)](_0x36cfb9(async _0x4d890a=>{const _0x4f1dde=_0x1fb032,_0xcda12e=_0x4d890a;if(_0xcda12e[_0x4f1dde(0x30b)]===0x191&&window[_0x4f1dde(0x400)](this[_0x4f1dde(0x368)]['t']('auth.needGotoLoginAlert'))){const _0x19491b=window[_0x4f1dde(0x46c)](window[_0x4f1dde(0x437)]['href']);window[_0x4f1dde(0x437)][_0x4f1dde(0x447)]=this['_getLoginPath']()+_0x4f1dde(0x272)+_0x19491b;}return _0xcda12e;}))});}['_getLoginPath'](){const _0x2e05e7=_0x35fe9a;var _0x1d2199;return(_0x1d2199=this['_configService'][_0x2e05e7(0x358)](cn))!=null?_0x1d2199:hn;}};Ge=to([ot(0x0,_0x4e019d),ot(0x1,_0x5b3e40(_0x588bfd)),ot(0x2,_0x5b3e40(_0x210cec))],Ge);var so=Object[_0x35fe9a(0x448)],io=Object['getOwnPropertyDescriptor'],no=(_0x1ff3a3,_0x3c06df,_0x5e91f3,_0x1bca1e)=>{const _0x1b0a16=_0x35fe9a;for(var _0x3dc067=_0x1bca1e>0x1?void 0x0:_0x1bca1e?io(_0x3c06df,_0x5e91f3):_0x3c06df,_0x134440=_0x1ff3a3[_0x1b0a16(0x443)]-0x1,_0x10afe5;_0x134440>=0x0;_0x134440--)(_0x10afe5=_0x1ff3a3[_0x134440])&&(_0x3dc067=(_0x1bca1e?_0x10afe5(_0x3c06df,_0x5e91f3,_0x3dc067):_0x10afe5(_0x3dc067))||_0x3dc067);return _0x1bca1e&&_0x3dc067&&so(_0x3c06df,_0x5e91f3,_0x3dc067),_0x3dc067;},ts=(_0x99f512,_0x3624e5)=>(_0x162f32,_0x21f4b6)=>_0x3624e5(_0x162f32,_0x21f4b6,_0x99f512);const ro='AUTHZ_URL_KEY',oo=_0x35fe9a(0x431);let pt=class{constructor(_0x3ce20e,_0x2ea3a8){const _0x25214b=_0x35fe9a;this[_0x25214b(0x28c)]=_0x3ce20e,this[_0x25214b(0x449)]=_0x2ea3a8;}[_0x35fe9a(0x39b)](){const _0x38fa70=_0x35fe9a;var _0x345c01;return(_0x345c01=this[_0x38fa70(0x449)][_0x38fa70(0x358)](ro))!=null?_0x345c01:oo;}async[_0x35fe9a(0x26a)](_0x4077b7){const _0x5cf8d9=_0x35fe9a,_0x58cde6=this['_getAPIPrefixPath']()+'/'+_0x4077b7[_0x5cf8d9(0x44c)]+_0x5cf8d9(0x393);return(await this['_HTTPService'][_0x5cf8d9(0x3b8)](_0x58cde6,{'body':_0x4077b7}))[_0x5cf8d9(0x2e4)][_0x5cf8d9(0x3dc)]||'';}async[_0x35fe9a(0x455)](_0x4db5d5){const _0x4565de=_0x35fe9a,_0x7f121e=this[_0x4565de(0x39b)]()+_0x4565de(0x2f1);return(await this[_0x4565de(0x28c)]['post'](_0x7f121e,{'body':_0x4db5d5}))[_0x4565de(0x2e4)]['objects'];}async[_0x35fe9a(0x3d1)](_0x5b2202){const _0x42bf7b=_0x35fe9a,_0x363ae7=this[_0x42bf7b(0x39b)]()+'/'+_0x5b2202['objectType']+'/object/'+_0x5b2202[_0x42bf7b(0x3dc)];await this[_0x42bf7b(0x28c)][_0x42bf7b(0x47e)](_0x363ae7,{'body':_0x5b2202});}async[_0x35fe9a(0x17a)](_0x33dccf){const _0x4a27ce=_0x35fe9a,_0x2d1151=this[_0x4a27ce(0x39b)]()+'/'+_0x33dccf[_0x4a27ce(0x44c)]+_0x4a27ce(0x346)+_0x33dccf[_0x4a27ce(0x3dc)]+_0x4a27ce(0x23e);return(await this[_0x4a27ce(0x28c)][_0x4a27ce(0x3b8)](_0x2d1151,{'body':_0x33dccf}))['body'][_0x4a27ce(0x33e)];}async['batchAllowed'](_0x54fed7){const _0x34678b=_0x35fe9a,_0x644c17=this[_0x34678b(0x39b)]()+_0x34678b(0x392);return(await this['_HTTPService'][_0x34678b(0x3b8)](_0x644c17,{'body':{'requests':_0x54fed7}}))[_0x34678b(0x2e4)][_0x34678b(0x3f5)];}async[_0x35fe9a(0x1f3)](_0x43cdf6){const _0x53bb03=_0x35fe9a,_0x570fc4=this['_getAPIPrefixPath']()+'/'+_0x43cdf6['objectType']+'/role',_0x5f3f23=await this[_0x53bb03(0x28c)][_0x53bb03(0x3b8)](_0x570fc4,{'body':_0x43cdf6});return{'roles':_0x5f3f23[_0x53bb03(0x2e4)][_0x53bb03(0x2d8)],'actions':_0x5f3f23[_0x53bb03(0x2e4)][_0x53bb03(0x33e)]};}async[_0x35fe9a(0x1cf)](_0x4f00bb){const _0x4b9f0d=_0x35fe9a,_0x15b043=this[_0x4b9f0d(0x39b)]()+_0x4b9f0d(0x24a);await this[_0x4b9f0d(0x28c)][_0x4b9f0d(0x46f)](_0x15b043,{'params':{'collaboratorID':_0x4f00bb[_0x4b9f0d(0x3f0)],'objectID':_0x4f00bb[_0x4b9f0d(0x3dc)],'unitID':_0x4f00bb[_0x4b9f0d(0x19e)]}});}async['updateCollaborator'](_0x1a5125){const _0x5d4f7e=_0x35fe9a,_0x382a64=this['_getAPIPrefixPath']()+_0x5d4f7e(0x24a);await this[_0x5d4f7e(0x28c)][_0x5d4f7e(0x482)](_0x382a64,{'body':_0x1a5125});}async[_0x35fe9a(0x295)](_0x288425){const _0x83042d=_0x35fe9a,_0xf9c804=this[_0x83042d(0x39b)]()+_0x83042d(0x24a);await this[_0x83042d(0x28c)][_0x83042d(0x3b8)](_0xf9c804,{'body':_0x288425});}async[_0x35fe9a(0x1a6)](_0x5d96fc){const _0x4b061f=_0x35fe9a,_0x3cbb8c=this[_0x4b061f(0x39b)]()+_0x4b061f(0x24a);return(await this[_0x4b061f(0x28c)][_0x4b061f(0x3e8)](_0x3cbb8c,{'params':{'objectID':_0x5d96fc[_0x4b061f(0x3dc)],'unitID':_0x5d96fc[_0x4b061f(0x19e)]}}))[_0x4b061f(0x2e4)][_0x4b061f(0x33f)];}async[_0x35fe9a(0x3f2)](_0x5bdbc4){const _0x1bc1b7=_0x35fe9a,_0x3fcc83=this[_0x1bc1b7(0x39b)]()+_0x1bc1b7(0x24a);await this[_0x1bc1b7(0x28c)][_0x1bc1b7(0x47e)](_0x3fcc83,{'body':_0x5bdbc4});}};pt=no([ts(0x0,_0x5b3e40(_0x588bfd)),ts(0x1,_0x5b3e40(_0x4e019d))],pt);var ao=Object['defineProperty'],co=Object[_0x35fe9a(0x1db)],ho=(_0x126a0d,_0x1686ca,_0x2a64f2,_0x22b4de)=>{const _0x5bfcbd=_0x35fe9a;for(var _0x5031ec=_0x22b4de>0x1?void 0x0:_0x22b4de?co(_0x1686ca,_0x2a64f2):_0x1686ca,_0x1c4ef8=_0x126a0d[_0x5bfcbd(0x443)]-0x1,_0x50006c;_0x1c4ef8>=0x0;_0x1c4ef8--)(_0x50006c=_0x126a0d[_0x1c4ef8])&&(_0x5031ec=(_0x22b4de?_0x50006c(_0x1686ca,_0x2a64f2,_0x5031ec):_0x50006c(_0x5031ec))||_0x5031ec);return _0x22b4de&&_0x5031ec&&ao(_0x1686ca,_0x2a64f2,_0x5031ec),_0x5031ec;},ss=(_0x168bd6,_0x6448ee)=>(_0x27bc34,_0x5f18a4)=>_0x6448ee(_0x27bc34,_0x5f18a4,_0x168bd6);const lo=[_0x35fe9a(0x435),_0x35fe9a(0x2e0),'image/jpg','image/gif',_0x35fe9a(0x244)],_o=0x5*0x400*0x400,uo=_0x35fe9a(0x29a),fo=_0x35fe9a(0x376),go='EXCHANGE_SIGN_URL_SERVER_URL_KEY',mo=_0x35fe9a(0x461);let It=class{constructor(_0x314707,_0x40731c){const _0x1fef7d=_0x35fe9a;l(this,_0x1fef7d(0x1cd),0x0),l(this,'_change$',new _0x3da7e9()),l(this,_0x1fef7d(0x38e),this[_0x1fef7d(0x2bc)]),l(this,_0x1fef7d(0x1eb),new Map()),(this[_0x1fef7d(0x391)]=_0x314707,this[_0x1fef7d(0x449)]=_0x40731c);}[_0x35fe9a(0x234)](_0x2c1642){const _0x30ce77=_0x35fe9a;this[_0x30ce77(0x1cd)]=_0x2c1642,this[_0x30ce77(0x2bc)][_0x30ce77(0x3be)](_0x2c1642);}[_0x35fe9a(0x423)](_0xb515f2,_0x129911){const _0x35a7fc=_0x35fe9a;if(_0x129911===_0x356a4c['BASE64']){const _0x3080bc=new Image();return _0x3080bc['src']=_0xb515f2,_0x3080bc;}return this[_0x35a7fc(0x1eb)][_0x35a7fc(0x3e8)](_0xb515f2);}[_0x35fe9a(0x3cb)](_0x365e9b,_0x378a08,_0x1087ce){const _0x2d771e=_0x35fe9a;_0x378a08===_0x356a4c['BASE64']||_0x1087ce==null||this[_0x2d771e(0x1eb)][_0x2d771e(0x445)](_0x365e9b,_0x1087ce);}async[_0x35fe9a(0x462)](_0x47f6a8){const _0x45f3f4=_0x35fe9a;try{const _0x577582=this[_0x45f3f4(0x3bf)](this[_0x45f3f4(0x1de)](),''+_0x47f6a8),_0x159520=(await this['_httpService']['get'](_0x577582))[_0x45f3f4(0x2e4)];return _0x159520[_0x45f3f4(0x185)]&&_0x159520['error'][_0x45f3f4(0x19d)]===Cs['OK']?Promise[_0x45f3f4(0x413)](_0x159520[_0x45f3f4(0x3a7)]):Promise[_0x45f3f4(0x21c)](_0x159520[_0x45f3f4(0x185)]);}catch(_0x237be2){return Promise[_0x45f3f4(0x21c)](_0x237be2);}}async['saveImage'](_0x2f3b42){const _0x56c6f7=_0x35fe9a;let _0x4d7935='';if(!lo['includes'](_0x2f3b42[_0x56c6f7(0x279)]))return this[_0x56c6f7(0x36e)](),Promise[_0x56c6f7(0x21c)](new Error(_0x2be5ef[_0x56c6f7(0x334)]));if(_0x2f3b42[_0x56c6f7(0x2a8)]>_o)return this['_decreaseWaiting'](),Promise[_0x56c6f7(0x21c)](new Error(_0x2be5ef[_0x56c6f7(0x2ff)]));try{const _0x468820=new FormData();_0x468820['append'](_0x56c6f7(0x454),_0x2f3b42);const _0x45d223=this[_0x56c6f7(0x3de)]()+_0x56c6f7(0x36a)+_0x2f3b42[_0x56c6f7(0x2a8)][_0x56c6f7(0x245)](),_0x5a5cdd=await(await fetch(_0x45d223,{'method':'POST','body':_0x468820}))[_0x56c6f7(0x18a)]();if(typeof _0x5a5cdd[_0x56c6f7(0x407)]!='string')return this[_0x56c6f7(0x36e)](),Promise['reject'](new Error(_0x2be5ef[_0x56c6f7(0x3fd)]));_0x4d7935=_0x5a5cdd[_0x56c6f7(0x407)];}catch{return this[_0x56c6f7(0x36e)](),Promise[_0x56c6f7(0x21c)](new Error(_0x2be5ef['ERROR_IMAGE']));}return new Promise((_0x29a706,_0x374a6e)=>{const _0x35e019=_0x56c6f7,_0xe3fa98=new FileReader();_0xe3fa98[_0x35e019(0x3bc)](_0x2f3b42),_0xe3fa98[_0x35e019(0x2cf)]=_0xd1b142=>{const _0x54e478=_0x35e019;var _0x5678b8;const _0x16890e=(_0x5678b8=_0xd1b142[_0x54e478(0x344)])==null?void 0x0:_0x5678b8['result'];if(_0x16890e==null){this[_0x54e478(0x36e)](),_0x374a6e(new Error(_0x2be5ef[_0x54e478(0x3fd)]));return;}const _0x14a6e9=_0x295a4b[_0x54e478(0x352)](0x6);_0x29a706({'imageId':_0x14a6e9,'imageSourceType':_0x356a4c[_0x54e478(0x2de)],'source':_0x4d7935,'base64Cache':_0x16890e,'status':_0x2be5ef['SUCCUSS']}),this['_decreaseWaiting']();};});}[_0x35fe9a(0x3de)](){const _0x3ac007=_0x35fe9a;var _0x3fb5ba;return(_0x3fb5ba=this[_0x3ac007(0x449)][_0x3ac007(0x358)](uo))!=null?_0x3fb5ba:fo;}[_0x35fe9a(0x1de)](){const _0x2cdd73=_0x35fe9a;var _0x165971;return(_0x165971=this[_0x2cdd73(0x449)]['getConfig'](go))!=null?_0x165971:mo;}[_0x35fe9a(0x3bf)](_0x8f4fe9,_0x4c67b7){const _0x40c294=_0x35fe9a;return _0x8f4fe9[_0x40c294(0x211)](_0x40c294(0x2c0),_0x4c67b7);}[_0x35fe9a(0x36e)](){const _0x2183b5=_0x35fe9a;this['_waitCount']-=0x1,this['_change$'][_0x2183b5(0x3be)](this[_0x2183b5(0x1cd)]);}};It=ho([ss(0x0,_0x5b3e40(_0x588bfd)),ss(0x1,_0x4e019d)],It);var As=Object[_0x35fe9a(0x448)],So=Object[_0x35fe9a(0x1db)],vo=(_0x4c8a66,_0xf9cea6,_0x5f31bf)=>_0xf9cea6 in _0x4c8a66?As(_0x4c8a66,_0xf9cea6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5f31bf}):_0x4c8a66[_0xf9cea6]=_0x5f31bf,po=(_0x5c5c6d,_0x407f07,_0xc0fcf5,_0x325b7b)=>{const _0x4843ac=_0x35fe9a;for(var _0x29f7b2=_0x325b7b>0x1?void 0x0:_0x325b7b?So(_0x407f07,_0xc0fcf5):_0x407f07,_0x330941=_0x5c5c6d[_0x4843ac(0x443)]-0x1,_0x418975;_0x330941>=0x0;_0x330941--)(_0x418975=_0x5c5c6d[_0x330941])&&(_0x29f7b2=(_0x325b7b?_0x418975(_0x407f07,_0xc0fcf5,_0x29f7b2):_0x418975(_0x29f7b2))||_0x29f7b2);return _0x325b7b&&_0x29f7b2&&As(_0x407f07,_0xc0fcf5,_0x29f7b2),_0x29f7b2;},is=(_0x151adc,_0x82060f)=>(_0x1a9226,_0x53c18e)=>_0x82060f(_0x1a9226,_0x53c18e,_0x151adc),Io=(_0x529965,_0x1c2b40,_0x402909)=>vo(_0x529965,_0x1c2b40+'',_0x402909);const Eo=_0x35fe9a(0x2b6);let Et=class extends _0x3c1164{constructor(_0x1bfae0,_0x335f54,_0x44d18e){const _0x26d811=_0x35fe9a;super(),this[_0x26d811(0x291)]=_0x1bfae0,this[_0x26d811(0x248)]=_0x335f54,this[_0x26d811(0x325)]=_0x44d18e;}['onStarting'](_0x28a4ff){const _0xd9b4c2=_0x35fe9a;var _0x3110bc,_0x2653d4,_0xec8871,_0x5cff5a,_0xf5ce63;_0x28a4ff[_0xd9b4c2(0x189)](_0x4b7ddb)&&this[_0xd9b4c2(0x248)][_0xd9b4c2(0x185)](_0xd9b4c2(0x216),_0xd9b4c2(0x335));let _0x4b2abd=[[_0x4b7ddb,{'useClass':vt}],[Re],[At],[_0x588bfd],[Ms,{'useClass':Wr}],[ee],[D],[_0x5509e6],[ke],[Ve],[Be],[Mt],[Ge],[bs,{'useClass':(_0x2653d4=(_0x3110bc=this[_0xd9b4c2(0x291)])==null?void 0x0:_0x3110bc[_0xd9b4c2(0x452)])!=null?_0x2653d4:_t}],[_0x26f8d2,{'useClass':_0x199929}],[_0x1f3aa6,{'useClass':St}],[_0x5c7307,{'useClass':pt}],[_0x1f3428,{'useClass':It}],[Ee],[He],[je],[xe],[ue]];(_0xec8871=this[_0xd9b4c2(0x291)])!=null&&_0xec8871['enableSingleActiveInstanceLock']&&_0x4b2abd['push']([Xe,{'useClass':Tn}]),((_0x5cff5a=this[_0xd9b4c2(0x291)])==null?void 0x0:_0x5cff5a['collaborationUniverTypes'])==null||this[_0xd9b4c2(0x291)][_0xd9b4c2(0x378)][_0xd9b4c2(0x1ea)](_0x9a39b6['UNIVER_SHEET'])?_0x4b2abd[_0xd9b4c2(0x472)]([$e]):this[_0xd9b4c2(0x291)][_0xd9b4c2(0x378)][_0xd9b4c2(0x1ea)](_0x9a39b6[_0xd9b4c2(0x1f2)])&&_0x4b2abd[_0xd9b4c2(0x472)]([Fe]),_0x4b2abd=_0x3e3d43(_0x4b2abd,(_0xf5ce63=this['_config'])==null?void 0x0:_0xf5ce63['override']),_0x4b2abd[_0xd9b4c2(0x2b2)](_0x2a8330=>_0x28a4ff['add'](_0x2a8330)),_0x28a4ff[_0xd9b4c2(0x3e8)](_0x588bfd)[_0xd9b4c2(0x381)]({'priority':0x14,'interceptor':_0x3318df({'maxParallel':0x6})}),this[_0xd9b4c2(0x306)]();}['_initModules'](){const _0x14d5d5=_0x35fe9a;var _0x43879e,_0x28c117;(_0x43879e=this['_config'])!=null&&_0x43879e[_0x14d5d5(0x3e2)]||this[_0x14d5d5(0x325)][_0x14d5d5(0x3e8)](D)[_0x14d5d5(0x3a1)](),(_0x28c117=this['_config'])!=null&&_0x28c117[_0x14d5d5(0x2df)]&&this[_0x14d5d5(0x325)][_0x14d5d5(0x3e8)](Ge);}};Io(Et,_0x35fe9a(0x1c2),Eo),Et=po([_0x19f942(_0xc5e94c),is(0x1,_0x294e85),is(0x2,_0x5b3e40(_0x331eca))],Et);export{ro 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,Tr as CollaborationStatusDisplay,He as DataLoaderController,je as DesktopCollaborationStatusDisplayController,Zi as HEARTBEAT_INTERVAL_KEY,Is as HEARTBEAT_TIMEOUT_KEY,bs as ICollaborationSocketService,Ms 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,Wr as WebURLService,fn as deserializeToCombResponse,gn as serializeCombRequest};
|
1
|
+
const _0x51fc53=_0x5e69;(function(_0x30ab14,_0x2eb2b9){const _0x1f6736=_0x5e69,_0x1dbc37=_0x30ab14();while(!![]){try{const _0xfa9a67=parseInt(_0x1f6736(0x2df))/0x1+parseInt(_0x1f6736(0x88))/0x2*(-parseInt(_0x1f6736(0x12f))/0x3)+-parseInt(_0x1f6736(0xe8))/0x4+-parseInt(_0x1f6736(0x1f1))/0x5*(-parseInt(_0x1f6736(0x363))/0x6)+-parseInt(_0x1f6736(0x15b))/0x7*(parseInt(_0x1f6736(0x2d6))/0x8)+-parseInt(_0x1f6736(0x26d))/0x9*(parseInt(_0x1f6736(0xe1))/0xa)+-parseInt(_0x1f6736(0x389))/0xb*(-parseInt(_0x1f6736(0x1c2))/0xc);if(_0xfa9a67===_0x2eb2b9)break;else _0x1dbc37['push'](_0x1dbc37['shift']());}catch(_0x5020ab){_0x1dbc37['push'](_0x1dbc37['shift']());}}}(_0x18ca,0x42df1));var xs=Object[_0x51fc53(0x18f)],Fs=(_0xa1e703,_0x30b155,_0x469b1c)=>_0x30b155 in _0xa1e703?xs(_0xa1e703,_0x30b155,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x469b1c}):_0xa1e703[_0x30b155]=_0x469b1c,l=(_0x507786,_0x45adc2,_0x38a3fa)=>Fs(_0x507786,typeof _0x45adc2!='symbol'?_0x45adc2+'':_0x45adc2,_0x38a3fa);import{Disposable as _0x10a29c,toDisposable as _0x2f2f24,UniverInstanceType as _0x3504ec,UserManagerService as _0x1b79c3,IUniverInstanceService as _0x373907,DisposableCollection as _0x3ab8a8,IConfigService as _0x5977ca,ILogService as _0x3cb271,ISnapshotServerService as _0x3ad936,RxDisposable as _0x521c86,LocaleService as _0x201091,ILocalStorageService as _0x2cad44,Tools as _0x4cfbd7,ICommandService as _0x568418,JSONX as _0xe185f6,IPermissionService as _0x57bd86,IUndoRedoService as _0x5815e0,sequenceExecute as _0x4bf5fd,OnLifecycle as _0x47ad3a,LifecycleStages as _0x34068b,CommandType as _0x1b1270,Rectangle as _0x1fb77c,ThemeService as _0x522711,Workbook as _0x3b5c47,textEncoder as _0x56aec7,b64DecodeUnicode as _0x5ad4b1,LocalUndoRedoService as _0x31c064,IContextService as _0x187fc2,COLORS as _0x131343,ColorKit as _0x3dc381,Plugin as _0x5ab657,IAuthzIoService as _0x5c087b,mergeOverrideWithDependencies as _0xd86ae6,DependentOn as _0x2e4016}from'@univerjs/core';import{SelectionManagerService as _0x5c112f,SetSelectionsOperation as _0x2708b7,InsertSheetMutation as _0x75b52d,WorkbookEditablePermission as _0x4b6c4e,RefRangeService as _0x4cc8b2,EffectRefRangId as _0x4d5ced,handleIRemoveRow as _0x1d7ce0,handleIRemoveCol as _0x122c4c,handleMoveRange as _0x511a99,handleInsertRow as _0x254106,handleInsertRangeMoveRight as _0x4c1408,handleInsertRangeMoveDown as _0x268953,handleInsertCol as _0x3b1ac8,handleDeleteRangeMoveUp as _0x5c5378,handleDeleteRangeMoveLeft as _0x3ca06c,runRefRangeMutations as _0x3711ba,SetWorksheetActivateCommand as _0x1c5f90}from'@univerjs/sheets';import{MessageType as _0x1587ba}from'@univerjs/design';import{IBeforeCloseService as _0x5e3e8f,IMessageService as _0xf8e37a,INotificationService as _0x3c139b,useObservable as _0x282297,BuiltInUIPart as _0x4e424f,IUIPartsService as _0x117aca}from'@univerjs/ui';import{CollaborationEvent as _0x1b5c65,parseChangesetToProtocol as _0x57e4b9,RevisionService as _0x4d36b1,isTransformMutationFailure as _0xcc662a,isTransformMutationsWithChangesetSuccess as _0x5a8972,ITransformService as _0x425e9b,mapDocumentTypeToUniverType as _0x23bb45,isTransformChangesetsSuccess as _0x4b3216,CompressMutationService as _0x2c81ea,parseProtocolChangeset as _0x8dccd4,SnapshotService as _0x3cc45f,isTransformMutationsWithChangesetFailure as _0x4c2f5b,UniverCollaborationPlugin as _0x114daf}from'@univerjs-pro/collaboration';import{Inject as _0x4a7404,createIdentifier as _0xf73999,Injector as _0x44b6b8,Optional as _0x19d484}from'@wendellhu/redi';import{merge as _0x124107,Subject as _0x5da41e,BehaviorSubject as _0x5d7d96,distinctUntilChanged as _0xe50b30,fromEvent as _0x1860dc,of as _0xdadc8c,takeUntil as _0x1603a2,debounceTime as _0x4c0f1b,filter as _0x5f5348,switchMap as _0x8b3a32,combineLatest as _0x73b353,shareReplay as _0xcf2b53,mapTo as _0x154121,concatMap as _0x22cd34}from'rxjs';import{map as _0x1db2aa,takeUntil as _0x430c3c,take as _0x51a597,filter as _0x1b26e7,delay as _0x54f844,shareReplay as _0x4b3c1f,switchMap as _0xb49a6c}from'rxjs/operators';import{IMEInputManagerService as _0x57e020,TextSelectionManagerService as _0x58dacd,serializeTextRange as _0x2646e0,DocStateChangeManagerService as _0x47f8d9,SetTextSelectionsOperation as _0xf9fdf8,RichTextEditingMutation as _0x47707c,getDocObject as _0x3248cd,DocSkeletonManagerService as _0x46f5a8}from'@univerjs/docs';import{HTTPService as _0x142257,WebSocketService as _0x1e9f90,IHTTPImplementation as _0x38690b,XHRHTTPImplementation as _0x443f73,ThresholdInterceptorFactory as _0x5bab19}from'@univerjs/network';import{ImageSourceType as _0x3a239e,ImageUploadStatusType as _0x59dd1c,IImageIoService as _0x18bd4e}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x285859,serializeRangeWithSheet as _0x273a62}from'@univerjs/engine-formula';import _0x507539 from'lodash/debounce';import{Shape as _0xe13222,Rect as _0xbeb8e4,Vector2 as _0x44f5c0,IRenderManagerService as _0x39c4de,NodePositionConvertToCursor as _0x1dca35,getColor as _0x43e11f,TEXT_RANGE_LAYER_INDEX as _0x337814,RegularPolygon as _0x3c2aad}from'@univerjs/engine-render';import{SheetSkeletonManagerService as _0x358cc7,VIEWPORT_KEY as _0x1940ad,getCoordByCell as _0x35114e,getSheetObject as _0x23f9f7}from'@univerjs/sheets-ui';import{useDependency as _0x1d48ce,connectInjector as _0x50255b}from'@wendellhu/redi/react-bindings';import _0x1c416c,{forwardRef as _0x4ddef2,useRef as _0x4ff318,createElement as _0x153699}from'react';import _0x1a2218 from'clsx';import{IRemoteInstanceService as _0x34d98a}from'@univerjs/rpc';const Gi=_0x51fc53(0x136),Yi=_0x51fc53(0x22a),Ki=_0x51fc53(0x110),Xi=_0x51fc53(0x339),Ji=0x7d0,zi=_0x51fc53(0xdf),Zi=_0x51fc53(0x3a0),qi=_0x51fc53(0x162),Qi=0x7530,Is='HEARTBEAT_TIMEOUT',Es=0x2710,en=_0x51fc53(0x93),tn=0x4e20,sn='RETRY_CONNECTING_MAX_COUNT',nn=0x3,rn=_0x51fc53(0xff),on=0x3e8,an='COLLAB_SUBMIT_CHANGESET_URL',cn=_0x51fc53(0x26a),hn=_0x51fc53(0x384),ln=_0x51fc53(0x258);var Cs=(_0x2bbe97=>(_0x2bbe97[_0x2bbe97['UNDEFINED']=0x0]=_0x51fc53(0x396),_0x2bbe97[_0x2bbe97['OK']=0x1]='OK',_0x2bbe97[_0x2bbe97[_0x51fc53(0x1df)]=0x2]=_0x51fc53(0x1df),_0x2bbe97[_0x2bbe97[_0x51fc53(0x14c)]=0x3]=_0x51fc53(0x14c),_0x2bbe97[_0x2bbe97[_0x51fc53(0x2f9)]=0x4]='NOT_FOUND',_0x2bbe97[_0x2bbe97[_0x51fc53(0x86)]=0x5]=_0x51fc53(0x86),_0x2bbe97[_0x2bbe97[_0x51fc53(0x2fc)]=0x6]=_0x51fc53(0x2fc),_0x2bbe97[_0x2bbe97[_0x51fc53(0x366)]=0x7]=_0x51fc53(0x366),_0x2bbe97[_0x2bbe97['TOO_MANY_REQUESTS']=0x8]=_0x51fc53(0x2a2),_0x2bbe97[_0x2bbe97[_0x51fc53(0x1fa)]=0x9]=_0x51fc53(0x1fa),_0x2bbe97[_0x2bbe97['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x51fc53(0x311),_0x2bbe97[_0x2bbe97['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x51fc53(0x208),_0x2bbe97[_0x2bbe97[_0x51fc53(0x1cb)]=0x1772]=_0x51fc53(0x1cb),_0x2bbe97[_0x2bbe97[_0x51fc53(0x101)]=0x1b59]=_0x51fc53(0x101),_0x2bbe97[_0x2bbe97[_0x51fc53(0x163)]=0x1b5a]=_0x51fc53(0x163),_0x2bbe97[_0x2bbe97[_0x51fc53(0x30b)]=0x1b5b]=_0x51fc53(0x30b),_0x2bbe97[_0x2bbe97[_0x51fc53(0x1dc)]=0x1b5c]=_0x51fc53(0x1dc),_0x2bbe97[_0x2bbe97[_0x51fc53(0x2e2)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2bbe97[_0x2bbe97[_0x51fc53(0x2c8)]=0x2329]=_0x51fc53(0x2c8),_0x2bbe97[_0x2bbe97[_0x51fc53(0xbc)]=0x232a]=_0x51fc53(0xbc),_0x2bbe97[_0x2bbe97[_0x51fc53(0x31b)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x2bbe97[_0x2bbe97[_0x51fc53(0xfb)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x2bbe97[_0x2bbe97[_0x51fc53(0x156)]=0x232d]=_0x51fc53(0x156),_0x2bbe97[_0x2bbe97[_0x51fc53(0x305)]=0x2711]=_0x51fc53(0x305),_0x2bbe97[_0x2bbe97[_0x51fc53(0x215)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x2bbe97[_0x2bbe97['UNRECOGNIZED']=-0x1]=_0x51fc53(0x1cc),_0x2bbe97))(Cs||{}),H=(_0x5551e4=>(_0x5551e4[_0x5551e4[_0x51fc53(0xb7)]=0x0]=_0x51fc53(0xb7),_0x5551e4[_0x5551e4[_0x51fc53(0x32c)]=0x1]=_0x51fc53(0x32c),_0x5551e4[_0x5551e4['UNIVER_SHEET']=0x2]='UNIVER_SHEET',_0x5551e4[_0x5551e4[_0x51fc53(0x28c)]=0x3]=_0x51fc53(0x28c),_0x5551e4[_0x5551e4[_0x51fc53(0x1cc)]=-0x1]=_0x51fc53(0x1cc),_0x5551e4))(H||{}),I=(_0x31342f=>(_0x31342f[_0x31342f[_0x51fc53(0x13d)]=0x0]=_0x51fc53(0x13d),_0x31342f[_0x31342f[_0x51fc53(0x2bd)]=0x1]=_0x51fc53(0x2bd),_0x31342f[_0x31342f[_0x51fc53(0x8f)]=0x2]=_0x51fc53(0x8f),_0x31342f[_0x31342f[_0x51fc53(0xd8)]=0x3]=_0x51fc53(0xd8),_0x31342f[_0x31342f[_0x51fc53(0x91)]=0x4]=_0x51fc53(0x91),_0x31342f[_0x31342f['HEARTBEAT']=0x5]=_0x51fc53(0x199),_0x31342f[_0x31342f[_0x51fc53(0x326)]=0x6]='RECV',_0x31342f[_0x31342f[_0x51fc53(0x1cc)]=-0x1]=_0x51fc53(0x1cc),_0x31342f))(I||{}),Nt=(_0x119e9e=>(_0x119e9e[_0x119e9e[_0x51fc53(0x29e)]=0x0]='UNKNOWN_CODE',_0x119e9e[_0x119e9e['OK']=0x1]='OK',_0x119e9e[_0x119e9e[_0x51fc53(0xe9)]=0x2]='FAIL',_0x119e9e[_0x119e9e['UNRECOGNIZED']=-0x1]=_0x51fc53(0x1cc),_0x119e9e))(Nt||{}),_n=Object[_0x51fc53(0x18f)],un=Object[_0x51fc53(0x340)],dn=(_0x12cfea,_0x4177df,_0x19c5b6,_0x2cbe38)=>{const _0x4c38bf=_0x51fc53;for(var _0x28a436=_0x2cbe38>0x1?void 0x0:_0x2cbe38?un(_0x4177df,_0x19c5b6):_0x4177df,_0x21ebc0=_0x12cfea[_0x4c38bf(0x2c6)]-0x1,_0x2ec73c;_0x21ebc0>=0x0;_0x21ebc0--)(_0x2ec73c=_0x12cfea[_0x21ebc0])&&(_0x28a436=(_0x2cbe38?_0x2ec73c(_0x4177df,_0x19c5b6,_0x28a436):_0x2ec73c(_0x28a436))||_0x28a436);return _0x2cbe38&&_0x28a436&&_n(_0x4177df,_0x19c5b6,_0x28a436),_0x28a436;},Wt=(_0x31bccb,_0x251bae)=>(_0x7c12c0,_0x564b5a)=>_0x251bae(_0x7c12c0,_0x564b5a,_0x31bccb);let ee=class extends _0x10a29c{constructor(_0x280fbf,_0x4c0b4a){const _0xa9a552=_0x51fc53;super(),l(this,_0xa9a552(0x18b),new Map()),(this[_0xa9a552(0xa0)]=_0x280fbf,this[_0xa9a552(0x2a7)]=_0x4c0b4a,this[_0xa9a552(0x294)](_0x2f2f24(_0x124107(this[_0xa9a552(0xa0)]['getTypeOfUnitDisposed$'](_0x3504ec['UNIVER_SHEET'])['pipe'](_0x1db2aa(_0x139b88=>_0x139b88[_0xa9a552(0x244)]())),this[_0xa9a552(0xa0)][_0xa9a552(0x280)](_0x3504ec['UNIVER_DOC'])['pipe'](_0x1db2aa(_0x53dbe2=>_0x53dbe2[_0xa9a552(0x244)]())),this[_0xa9a552(0xa0)]['getTypeOfUnitDisposed$'](_0x3504ec[_0xa9a552(0x28c)])[_0xa9a552(0x2c3)](_0x1db2aa(_0x116d1f=>_0x116d1f[_0xa9a552(0x244)]())))['subscribe'](_0x1c61ee=>this['_removeRoom'](_0x1c61ee)))));}['setCurrentUser'](_0x466bdc){const _0x20f8de=_0x51fc53;this['_userManagerService'][_0x20f8de(0x20b)](_0x466bdc);}[_0x51fc53(0x328)](){const _0x32aaa7=_0x51fc53;return this[_0x32aaa7(0x2a7)]['getCurrentUser']();}[_0x51fc53(0x2e9)](_0x36920c,_0xc51979){const _0x1c9fa4=_0x51fc53;let _0x28bbcd=this[_0x1c9fa4(0x18b)][_0x1c9fa4(0x151)](_0x36920c);_0x28bbcd||(_0x28bbcd=new fn(),this[_0x1c9fa4(0x18b)][_0x1c9fa4(0x38f)](_0x36920c,_0x28bbcd)),_0x28bbcd[_0x1c9fa4(0x2e9)](_0xc51979);}[_0x51fc53(0x3be)](_0x5b3f5a,_0x495601){const _0x5bc1e7=_0x51fc53,_0x252296=this[_0x5bc1e7(0x18b)]['get'](_0x5b3f5a);_0x252296&&_0x252296['removeMember'](_0x495601);}[_0x51fc53(0x9c)](_0x4dbc98){return this['_roomMembers']['get'](_0x4dbc98);}[_0x51fc53(0xb6)](_0x3740fd,_0x21d6cb){const _0x55f914=_0x51fc53,_0x330cd8=this['_roomMembers'][_0x55f914(0x151)](_0x3740fd);if(_0x330cd8)return _0x330cd8[_0x55f914(0xb6)](_0x21d6cb);}[_0x51fc53(0x1ce)](_0x63522c){const _0x158a03=_0x51fc53,_0x13770e=this[_0x158a03(0x18b)][_0x158a03(0x151)](_0x63522c);_0x13770e&&(_0x13770e[_0x158a03(0x232)](),this[_0x158a03(0x18b)][_0x158a03(0x209)](_0x63522c));}[_0x51fc53(0x232)](){const _0x4ad3c1=_0x51fc53;this['_roomMembers'][_0x4ad3c1(0x124)](_0x42205e=>_0x42205e[_0x4ad3c1(0x232)]()),this[_0x4ad3c1(0x18b)][_0x4ad3c1(0x362)]();}};ee=dn([Wt(0x0,_0x373907),Wt(0x1,_0x4a7404(_0x1b79c3))],ee);class fn extends _0x10a29c{constructor(){const _0x51f169=_0x51fc53;super(...arguments),l(this,_0x51f169(0x236),new Map());}[_0x51fc53(0x232)](){const _0x157fbb=_0x51fc53;this[_0x157fbb(0x236)][_0x157fbb(0x362)]();}[_0x51fc53(0x2e9)](_0x5c0d1c){const _0x2d9539=_0x51fc53;this[_0x2d9539(0x236)]['set'](_0x5c0d1c[_0x2d9539(0x2ae)],_0x5c0d1c);}['removeMember'](_0x58467e){const _0x20bd8d=_0x51fc53;this[_0x20bd8d(0x236)][_0x20bd8d(0x209)](_0x58467e);}['getMember'](_0x4d6c55){const _0x168702=_0x51fc53;return this[_0x168702(0x236)]['get'](_0x4d6c55);}}function gn(_0x625b64){const _0x36f53e=_0x51fc53;var _0x2ba538,_0x1ef87e,_0x56e9dc,_0x715033;const _0x21e83a=_0x625b64[_0x36f53e(0x94)],_0x33dad9=JSON[_0x36f53e(0x2dd)](_0x21e83a);switch(_0x33dad9['cmd']){case I[_0x36f53e(0x199)]:case I['HELLO']:{const _0x31b8b5=_0x33dad9[_0x36f53e(0x1fc)];return{..._0x33dad9,'data':_0x31b8b5,'cmd':_0x33dad9[_0x36f53e(0x39c)]};}case I[_0x36f53e(0x8f)]:{const _0x28ab81=_0x33dad9['joinRsp'];return{..._0x33dad9,'data':_0x28ab81,'cmd':_0x33dad9[_0x36f53e(0x39c)]};}case I[_0x36f53e(0x326)]:{const _0x46e464=_0x33dad9[_0x36f53e(0xc3)];switch(_0x46e464[_0x36f53e(0x1ec)]){case _0x1b5c65[_0x36f53e(0x274)]:return{..._0x33dad9,'data':{..._0x46e464,'data':(_0x2ba538=_0x46e464[_0x36f53e(0x2c2)])==null?void 0x0:_0x2ba538['cs']},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65['CHANGESET_ACK']:return{..._0x33dad9,'data':{..._0x46e464,'data':(_0x1ef87e=_0x46e464['csAckEvent'])==null?void 0x0:_0x1ef87e['cs']},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x250)]:return{..._0x33dad9,'data':{..._0x46e464,'data':(_0x56e9dc=_0x46e464[_0x36f53e(0x276)])==null?void 0x0:_0x56e9dc['cs']},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x34a)]:return{..._0x33dad9,'data':{..._0x46e464,'data':(_0x715033=_0x46e464[_0x36f53e(0x1d2)])==null?void 0x0:_0x715033['cs']},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x235)]:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464[_0x36f53e(0x128)]},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x2cf)]:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464[_0x36f53e(0x81)]},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x312)]:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464['leaveEvent']},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x213)]:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464[_0x36f53e(0x201)]},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x18e)]:case _0x1b5c65[_0x36f53e(0x2ff)]:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464[_0x36f53e(0x98)]},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x2e6)]:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464[_0x36f53e(0x201)]},'cmd':_0x33dad9['cmd']};case _0x1b5c65[_0x36f53e(0x278)]:return{..._0x33dad9,'data':_0x46e464,'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65['COMMENT_UPDATE']:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464[_0x36f53e(0x1d6)]},'cmd':_0x33dad9[_0x36f53e(0x39c)]};default:return _0x33dad9;}}default:return _0x33dad9;}}function mn(_0x3d01d3){const _0xad44c4=_0x51fc53;switch(_0x3d01d3[_0xad44c4(0x39c)]){case I[_0xad44c4(0x199)]:case I[_0xad44c4(0x2bd)]:return JSON['stringify']({'cmd':_0x3d01d3[_0xad44c4(0x39c)],'routeKey':_0x3d01d3['routeKey']});case I[_0xad44c4(0x91)]:{let _0x1ba6ef;switch(_0x3d01d3[_0xad44c4(0x94)]['eventID']){case _0x1b5c65[_0xad44c4(0x235)]:{_0x1ba6ef={'eventID':_0x1b5c65['UPDATE_CURSOR'],'updateCursorEvent':_0x3d01d3[_0xad44c4(0x94)][_0xad44c4(0x94)]};break;}case _0x1b5c65[_0xad44c4(0x312)]:{_0x1ba6ef={'eventID':_0x1b5c65[_0xad44c4(0x312)],'leaveEvent':_0x3d01d3['data'][_0xad44c4(0x94)]};break;}case _0x1b5c65['USERS_ENTER']:{_0x1ba6ef={'eventID':_0x1b5c65['USERS_ENTER'],'joinEvent':_0x3d01d3[_0xad44c4(0x94)][_0xad44c4(0x94)]};break;}case _0x1b5c65[_0xad44c4(0x213)]:{_0x1ba6ef={'eventID':_0x1b5c65[_0xad44c4(0x213)],'liveShareNewHost':_0x3d01d3[_0xad44c4(0x94)][_0xad44c4(0x94)]};break;}case _0x1b5c65[_0xad44c4(0x2ff)]:{_0x1ba6ef={'eventID':_0x1b5c65[_0xad44c4(0x2ff)],'liveShareOperation':_0x3d01d3[_0xad44c4(0x94)][_0xad44c4(0x94)]};break;}case _0x1b5c65['LIVESHARE_TERMINATE']:{_0x1ba6ef={'eventID':_0x1b5c65[_0xad44c4(0x2e6)],'liveShareTerminate':_0x3d01d3['data'][_0xad44c4(0x94)]};break;}case _0x1b5c65[_0xad44c4(0xdc)]:{_0x1ba6ef={'eventID':_0x1b5c65[_0xad44c4(0xdc)],'liveShareRequestHost':_0x3d01d3[_0xad44c4(0x94)]['data']};break;}case _0x1b5c65[_0xad44c4(0x18e)]:{_0x1ba6ef={'eventID':_0x1b5c65[_0xad44c4(0x18e)]};break;}default:_0x1ba6ef={'eventID':_0x3d01d3[_0xad44c4(0x94)]['eventID']};}return JSON[_0xad44c4(0x2ea)]({'cmd':_0x3d01d3[_0xad44c4(0x39c)],'routeKey':_0x3d01d3[_0xad44c4(0x16e)],'collaMsg':_0x1ba6ef});}case I[_0xad44c4(0x8f)]:return JSON[_0xad44c4(0x2ea)]({'cmd':_0x3d01d3[_0xad44c4(0x39c)],'routeKey':_0x3d01d3['routeKey'],'joinReq':_0x3d01d3[_0xad44c4(0x94)]});case I['LEAVE']:return JSON[_0xad44c4(0x2ea)]({'cmd':_0x3d01d3['cmd'],'routeKey':_0x3d01d3[_0xad44c4(0x16e)],'leaveReq':_0x3d01d3[_0xad44c4(0x94)]});default:throw new Error(_0xad44c4(0x1b8));}}var Sn=Object[_0x51fc53(0x18f)],vn=Object[_0x51fc53(0x340)],pn=(_0x307a4b,_0x2a2ec9,_0x144e69,_0x1290e5)=>{const _0x363349=_0x51fc53;for(var _0x52b4a7=_0x1290e5>0x1?void 0x0:_0x1290e5?vn(_0x2a2ec9,_0x144e69):_0x2a2ec9,_0x32295a=_0x307a4b[_0x363349(0x2c6)]-0x1,_0x385801;_0x32295a>=0x0;_0x32295a--)(_0x385801=_0x307a4b[_0x32295a])&&(_0x52b4a7=(_0x1290e5?_0x385801(_0x2a2ec9,_0x144e69,_0x52b4a7):_0x385801(_0x52b4a7))||_0x52b4a7);return _0x1290e5&&_0x52b4a7&&Sn(_0x2a2ec9,_0x144e69,_0x52b4a7),_0x52b4a7;},me=(_0xb5b8e4,_0x27fdc1)=>(_0x33dea8,_0x2aa7ae)=>_0x27fdc1(_0x33dea8,_0x2aa7ae,_0xb5b8e4);const bs=_0xf73999(_0x51fc53(0x1ab));function In(_0x2c27d4,_0x103280,_0x517779){const _0x57aa84=_0x51fc53;return _0x2c27d4+'/'+_0x103280+_0x57aa84(0xea)+_0x517779+_0x57aa84(0x34f);}let _t=class{constructor(_0x2dc970,_0x3c3530,_0x3d8209,_0x561a0c,_0x2d0e74){const _0x18e5d4=_0x51fc53;this[_0x18e5d4(0x36a)]=_0x2dc970,this[_0x18e5d4(0x3a1)]=_0x3c3530,this[_0x18e5d4(0x2c4)]=_0x3d8209,this[_0x18e5d4(0x37c)]=_0x561a0c,this[_0x18e5d4(0x240)]=_0x2d0e74;}[_0x51fc53(0xec)](_0x4b7237){const _0x332eb8=_0x51fc53,_0x359e4c=this[_0x332eb8(0x3a1)][_0x332eb8(0xec)](_0x4b7237);if(!_0x359e4c)throw new Error(_0x332eb8(0x2e7));const _0x213e23=new _0x3ab8a8(),_0x173e06=new _0x5da41e();_0x213e23[_0x332eb8(0xe7)](_0x2f2f24(_0x359e4c[_0x332eb8(0xa2)][_0x332eb8(0x202)](_0x447a51=>_0x173e06[_0x332eb8(0x275)](_0x447a51)))),_0x213e23[_0x332eb8(0xe7)](_0x2f2f24(()=>_0x173e06[_0x332eb8(0x349)]()));const _0x2bf0f5=new _0x5da41e();_0x213e23[_0x332eb8(0xe7)](_0x2f2f24(_0x359e4c[_0x332eb8(0xed)][_0x332eb8(0x202)](_0x455877=>_0x2bf0f5[_0x332eb8(0x275)](_0x455877)))),_0x213e23['add'](_0x2f2f24(()=>_0x2bf0f5[_0x332eb8(0x349)]()));const _0xb502bd=new _0x5da41e();_0x213e23[_0x332eb8(0xe7)](_0x2f2f24(_0x359e4c[_0x332eb8(0xbe)][_0x332eb8(0x202)](_0x599af1=>{const _0x4054c7=_0x332eb8,_0x1fa8eb=gn(_0x599af1);_0xb502bd[_0x4054c7(0x275)](_0x1fa8eb);}))),_0x213e23['add'](_0x2f2f24(()=>_0xb502bd[_0x332eb8(0x349)]()));const _0x4caf5d=()=>{const _0x3aa63e=_0x332eb8;_0x2bf0f5[_0x3aa63e(0x275)](new Event(_0x3aa63e(0x217))),_0x173e06['next'](new CloseEvent('connection\x20error')),_0x3b6fb6[_0x3aa63e(0x3b2)]();},_0x3b6fb6={'memberID':'','close$':_0x173e06['asObservable'](),'error$':_0x2bf0f5['asObservable'](),'open$':_0x359e4c[_0x332eb8(0x34c)],'message$':_0xb502bd[_0x332eb8(0xc8)](),'send':_0x1ad2ff=>{const _0x21a41a=_0x332eb8;if(_0x1ad2ff[_0x21a41a(0x39c)]===I[_0x21a41a(0x91)]){if(_0x1ad2ff[_0x21a41a(0x94)][_0x21a41a(0x1ec)]===_0x1b5c65[_0x21a41a(0x255)]){this['_submitChangeset'](_0x3b6fb6,_0x1ad2ff['data'])['catch'](_0x386c5e=>{const _0x16f7dc=_0x21a41a;this[_0x16f7dc(0x37c)][_0x16f7dc(0x24d)](_0x386c5e),_0x4caf5d();});return;}if(_0x1ad2ff[_0x21a41a(0x94)][_0x21a41a(0x1ec)]===_0x1b5c65[_0x21a41a(0x282)]){const _0xabc340=_0x1ad2ff[_0x21a41a(0x94)];this[_0x21a41a(0xe6)](_0xabc340)[_0x21a41a(0xf4)](_0x10d7ed=>{const _0x8b1cf=_0x21a41a;_0xb502bd['next']({'cmd':I['RECV'],'code':Nt['OK'],'routeKey':_0xabc340[_0x8b1cf(0x94)][_0x8b1cf(0x1b1)],'routeType':'','data':{'eventID':_0x1b5c65['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x10d7ed}}});})[_0x21a41a(0x12e)](_0x15c6df=>{this['_logService']['error'](_0x15c6df),_0x4caf5d();});return;}}_0x359e4c['send'](mn(_0x1ad2ff));},'close':()=>{const _0x4baab3=_0x332eb8;_0x359e4c[_0x4baab3(0x3b2)](),_0x213e23['dispose']();}};return _0x3b6fb6;}async[_0x51fc53(0x21d)](_0x9c9a33,_0x2e326b){const _0x1d325b=_0x51fc53;var _0x5b3d90;const {unitType:_0x7667f1,unitID:_0x55d40a,changeset:_0x5de31a}=_0x2e326b[_0x1d325b(0x94)],_0x1218e8={'unitID':_0x55d40a,'memberID':_0x9c9a33[_0x1d325b(0x2ae)],'type':_0x7667f1,'changeset':_0x57e4b9(_0x5de31a)},_0xc79cd2=In((_0x5b3d90=this[_0x1d325b(0x2c4)]['getConfig'](an))!=null?_0x5b3d90:cn,_0x7667f1,_0x55d40a);try{await this[_0x1d325b(0x36a)][_0x1d325b(0x13a)](_0xc79cd2,{'body':_0x1218e8});}catch(_0x13b27d){throw this[_0x1d325b(0x37c)][_0x1d325b(0x24d)](_0x1d325b(0x13c),'submit\x20changeset\x20error!'),_0x13b27d;}}async[_0x51fc53(0xe6)](_0x957d4){const _0x2d7a0f=_0x51fc53,{unitID:_0x5a5310,from:_0x3f240c,to:_0x2f5434,unitType:_0x465e43}=_0x957d4[_0x2d7a0f(0x94)];return(await this[_0x2d7a0f(0x240)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x5a5310,'type':_0x465e43,'from':_0x3f240c,'to':_0x2f5434}))[_0x2d7a0f(0xa3)];}};_t=pn([me(0x0,_0x4a7404(_0x142257)),me(0x1,_0x4a7404(_0x1e9f90)),me(0x2,_0x5977ca),me(0x3,_0x3cb271),me(0x4,_0x3ad936)],_t);class Rs{constructor(){const _0x6d3833=_0x51fc53;l(this,_0x6d3833(0x17b),new _0x5da41e()),l(this,_0x6d3833(0x368),this[_0x6d3833(0x17b)][_0x6d3833(0xc8)]());}[_0x51fc53(0x2b7)](_0x3899c8){const _0x19c6fa=_0x51fc53;this[_0x19c6fa(0x17b)][_0x19c6fa(0x275)](_0x3899c8);}}var En=Object[_0x51fc53(0x18f)],Cn=Object[_0x51fc53(0x340)],Ts=(_0x142f6a,_0x5a5578,_0x2706e3,_0x5b1465)=>{const _0x32dbe9=_0x51fc53;for(var _0x4cd2bc=_0x5b1465>0x1?void 0x0:_0x5b1465?Cn(_0x5a5578,_0x2706e3):_0x5a5578,_0x95d271=_0x142f6a[_0x32dbe9(0x2c6)]-0x1,_0x2e83b6;_0x95d271>=0x0;_0x95d271--)(_0x2e83b6=_0x142f6a[_0x95d271])&&(_0x4cd2bc=(_0x5b1465?_0x2e83b6(_0x5a5578,_0x2706e3,_0x4cd2bc):_0x2e83b6(_0x4cd2bc))||_0x4cd2bc);return _0x5b1465&&_0x4cd2bc&&En(_0x5a5578,_0x2706e3,_0x4cd2bc),_0x4cd2bc;},M=(_0x2bafae,_0x495728)=>(_0x1e5ebf,_0x36922b)=>_0x495728(_0x1e5ebf,_0x36922b,_0x2bafae),_e=(_0x22e537=>(_0x22e537[_0x22e537[_0x51fc53(0x19e)]=0x0]=_0x51fc53(0x19e),_0x22e537[_0x22e537[_0x51fc53(0x1f0)]=0x1]=_0x51fc53(0x1f0),_0x22e537[_0x22e537['OFFLINE']=0x2]=_0x51fc53(0x319),_0x22e537[_0x22e537[_0x51fc53(0x31f)]=0x3]=_0x51fc53(0x31f),_0x22e537))(_e||{});let ut=class extends _0x521c86{constructor(_0x413e95,_0x3d2b71,_0x391204,_0x48e34e,_0x211f28,_0x48575c,_0x481ca0,_0x40760b,_0x7126c9){const _0x4f3a4b=_0x51fc53;super(),l(this,_0x4f3a4b(0x80),new _0x5d7d96(0x0)),l(this,_0x4f3a4b(0x334),this[_0x4f3a4b(0x80)][_0x4f3a4b(0xc8)]()),l(this,'_event$',new _0x5da41e()),l(this,_0x4f3a4b(0x374),this[_0x4f3a4b(0x108)][_0x4f3a4b(0xc8)]()),l(this,_0x4f3a4b(0x2d4)),l(this,_0x4f3a4b(0x3b5)),l(this,_0x4f3a4b(0xa8)),(this[_0x4f3a4b(0x247)]=_0x413e95,this[_0x4f3a4b(0x37c)]=_0x391204,this[_0x4f3a4b(0x32b)]=_0x48e34e,this['_messageService']=_0x211f28,this[_0x4f3a4b(0x2c4)]=_0x48575c,this[_0x4f3a4b(0x344)]=_0x481ca0,this['_memberService']=_0x40760b,this['_commentService']=_0x7126c9,_0x3d2b71['pipe'](_0x430c3c(this[_0x4f3a4b(0x200)]))[_0x4f3a4b(0x202)](_0x40d585=>{const _0x225d5e=_0x4f3a4b;var _0x2b562e;typeof _0x40d585>'u'||(this[_0x225d5e(0x2d4)]=_0x40d585,_0x40d585?(this['_joinRoom'](_0x40d585),this[_0x225d5e(0x3b5)]=this['_socket']['message$'][_0x225d5e(0x202)](_0x51ec99=>{const _0x53500f=_0x225d5e;_0x51ec99[_0x53500f(0x16e)]===this[_0x53500f(0x247)]&&this[_0x53500f(0x132)](_0x51ec99);})):(this['_sessionStatus$'][_0x225d5e(0x275)](0x2),(_0x2b562e=this[_0x225d5e(0x3b5)])==null||_0x2b562e[_0x225d5e(0x11a)](),this[_0x225d5e(0x3b5)]=null));}),this[_0x4f3a4b(0x294)](this[_0x4f3a4b(0x32b)]['registerOnClose'](()=>{const _0x1348b0=_0x4f3a4b;var _0x5ffc29;(_0x5ffc29=this['_socket'])==null||_0x5ffc29[_0x1348b0(0x39e)]({'cmd':I[_0x1348b0(0xd8)],'data':{'roomID':this['_unitID']}});})));}get[_0x51fc53(0x193)](){const _0x48ae59=_0x51fc53;return this[_0x48ae59(0x80)]['getValue']();}[_0x51fc53(0x2be)](){const _0x18d724=_0x51fc53;var _0x1e6566,_0x2649b6;return(_0x2649b6=(_0x1e6566=this[_0x18d724(0x2d4)])==null?void 0x0:_0x1e6566[_0x18d724(0x2ae)])!=null?_0x2649b6:null;}[_0x51fc53(0x232)](){const _0x23f27c=_0x51fc53;super[_0x23f27c(0x232)](),this[_0x23f27c(0x200)][_0x23f27c(0x275)](),this[_0x23f27c(0x200)][_0x23f27c(0x349)]();}[_0x51fc53(0x132)](_0x2d8a37){const _0x10b636=_0x51fc53;_0x2d8a37['cmd']===I[_0x10b636(0x8f)]?this['_onJoinRoomEvent'](_0x2d8a37):_0x2d8a37[_0x10b636(0x39c)]===I[_0x10b636(0x326)]&&this[_0x10b636(0x147)](_0x2d8a37);}[_0x51fc53(0x225)](_0x5e6d12){const _0x1d6044=_0x51fc53;this[_0x1d6044(0x80)][_0x1d6044(0x275)](0x1),_0x5e6d12[_0x1d6044(0x39e)]({'cmd':I[_0x1d6044(0x8f)],'routeKey':this[_0x1d6044(0x247)],'routeType':'','data':{'rooms':[{'roomID':this[_0x1d6044(0x247)]}]}});}[_0x51fc53(0x167)](_0x3c97fa){const _0x35c135=_0x51fc53;var _0x5374c9;if(_0x3c97fa[_0x35c135(0x141)]===Nt[_0x35c135(0xe9)]){this[_0x35c135(0x383)][_0x35c135(0x25c)]({'type':_0x1587ba[_0x35c135(0x10e)],'content':this[_0x35c135(0x344)]['t'](_0x35c135(0x246))}),this[_0x35c135(0x80)][_0x35c135(0x275)](0x2);return;}this[_0x35c135(0x80)][_0x35c135(0x275)](0x3);const _0x10b106=(_0x5374c9=_0x3c97fa[_0x35c135(0x94)][_0x35c135(0x1ba)][this[_0x35c135(0x247)]])==null?void 0x0:_0x5374c9[_0x35c135(0x327)];_0x10b106&&_0x10b106[_0x35c135(0x124)](_0x4ee42a=>this[_0x35c135(0x12b)][_0x35c135(0x2e9)](this[_0x35c135(0x247)],_0x4ee42a));}[_0x51fc53(0x147)](_0x129f53){const _0xaba17d=_0x51fc53;try{const _0x332959=_0x129f53[_0xaba17d(0x94)];switch(_0x332959['eventID']){case _0x1b5c65[_0xaba17d(0x2cf)]:this[_0xaba17d(0x335)](_0x332959),this[_0xaba17d(0x108)][_0xaba17d(0x275)](_0x332959);break;case _0x1b5c65[_0xaba17d(0x312)]:this[_0xaba17d(0x2ba)](_0x332959),this['_event$'][_0xaba17d(0x275)](_0x332959);break;case _0x1b5c65[_0xaba17d(0xf1)]:this[_0xaba17d(0x39b)](),this[_0xaba17d(0x108)]['next'](_0x332959);break;case _0x1b5c65[_0xaba17d(0x278)]:this[_0xaba17d(0x37c)][_0xaba17d(0x24d)](_0xaba17d(0x286)+JSON[_0xaba17d(0x2ea)](_0x332959)),this['_event$'][_0xaba17d(0x275)](_0x332959);break;case _0x1b5c65[_0xaba17d(0x33c)]:this[_0xaba17d(0x27e)]['onCommentUpdate'](_0x332959[_0xaba17d(0x94)]),this[_0xaba17d(0x108)][_0xaba17d(0x275)](_0x332959);break;default:this[_0xaba17d(0x108)]['next'](_0x332959);}}catch(_0x14ae88){this[_0xaba17d(0x37c)][_0xaba17d(0x24d)](_0x14ae88,_0x129f53);}}[_0x51fc53(0x335)](_0x3bf62d){const _0x117a0c=_0x51fc53;this['_memberService']['updateMember'](this[_0x117a0c(0x247)],_0x3bf62d['data']);}['_onUserLeave'](_0x3c541f){const _0x1bbce7=_0x51fc53;this['_memberService'][_0x1bbce7(0x3be)](this[_0x1bbce7(0x247)],_0x3c541f[_0x1bbce7(0x94)]['memberID']);}async[_0x51fc53(0x39e)](_0x34c323,_0x505b51){const _0x26e5ea=_0x51fc53;if(this['sessionStatus']!==0x3||!this[_0x26e5ea(0x2d4)])throw new Error(_0x26e5ea(0xd0));try{_0x34c323[_0x26e5ea(0x1ec)]===_0x1b5c65[_0x26e5ea(0x250)]&&this['_scheduleCollaborationTimeoutTimer'](),this['_socket'][_0x26e5ea(0x39e)]({'cmd':I['INGEST'],'routeKey':_0x505b51,'routeType':'','data':_0x34c323});}catch(_0x154e0e){this[_0x26e5ea(0x37c)][_0x26e5ea(0x24d)](_0x154e0e);}}[_0x51fc53(0x376)](){const _0x44066f=_0x51fc53;var _0x363057;this[_0x44066f(0xa8)]=window[_0x44066f(0x3a6)](()=>{const _0x4dcbfb=_0x44066f;this[_0x4dcbfb(0xa8)]=null,this[_0x4dcbfb(0x383)]['show']({'type':_0x1587ba[_0x4dcbfb(0x228)],'content':this[_0x4dcbfb(0x344)]['t'](_0x4dcbfb(0x2f7))});},(_0x363057=this['_configService'][_0x44066f(0xf0)](Is))!=null?_0x363057:Es);}['_clearCollaborationTimeoutTimer'](){const _0x3b3e29=_0x51fc53;this[_0x3b3e29(0xa8)]&&(clearTimeout(this[_0x3b3e29(0xa8)]),this[_0x3b3e29(0xa8)]=null);}};ut=Ts([M(0x2,_0x3cb271),M(0x3,_0x5e3e8f),M(0x4,_0xf8e37a),M(0x5,_0x5977ca),M(0x6,_0x4a7404(_0x201091)),M(0x7,_0x4a7404(ee)),M(0x8,_0x4a7404(Rs))],ut);let Re=class extends _0x10a29c{constructor(_0x19f937,_0x3c19bd,_0x24444a,_0x2534e9,_0x1e794f,_0x47e360){const _0xe3e856=_0x51fc53;super(),l(this,_0xe3e856(0x175),new _0x5d7d96(void 0x0)),l(this,_0xe3e856(0x154),new Map()),l(this,_0xe3e856(0x22f),new _0x5d7d96(0x0)),l(this,_0xe3e856(0x214),this[_0xe3e856(0x22f)][_0xe3e856(0xc8)]()),l(this,_0xe3e856(0x2a0),!0x1),l(this,_0xe3e856(0x1ac)),l(this,'_timeoutTimer'),l(this,_0xe3e856(0xfc)),l(this,_0xe3e856(0x10c),0x0),(this[_0xe3e856(0x342)]=_0x19f937,this[_0xe3e856(0x344)]=_0x3c19bd,this['_messageService']=_0x24444a,this[_0xe3e856(0x37c)]=_0x2534e9,this[_0xe3e856(0x2c4)]=_0x1e794f,this[_0xe3e856(0x137)]=_0x47e360);}get[_0x51fc53(0x2d4)](){const _0x1a8270=_0x51fc53;return this[_0x1a8270(0x175)]['getValue']();}['dispose'](){const _0x4cef4a=_0x51fc53;super[_0x4cef4a(0x232)](),this[_0x4cef4a(0x154)]['forEach'](_0x2531a4=>_0x2531a4['dispose']()),this[_0x4cef4a(0x154)]['clear'](),this[_0x4cef4a(0x22f)]['complete']();}async[_0x51fc53(0x1ad)](_0x347b88){const _0x18f65a=_0x51fc53;if(this['_sessions'][_0x18f65a(0x16c)](_0x347b88))return this[_0x18f65a(0x154)][_0x18f65a(0x151)](_0x347b88);this['_tryEnsureSocket']();const _0x5ba317=this[_0x18f65a(0x342)][_0x18f65a(0x3ba)](ut,_0x347b88,this[_0x18f65a(0x175)]['asObservable']());return this[_0x18f65a(0x154)][_0x18f65a(0x38f)](_0x347b88,_0x5ba317),_0x5ba317;}[_0x51fc53(0x35a)](){const _0x1b76fb=_0x51fc53;var _0x5859c4;const _0xee86b7=(_0x5859c4=this[_0x1b76fb(0x2c4)]['getConfig'](zi))!=null?_0x5859c4:Zi;return this[_0x1b76fb(0x137)]['createSocket'](_0xee86b7);}[_0x51fc53(0x2b1)](){const _0x7be8a7=_0x51fc53;try{const _0x1a8eb4=this[_0x7be8a7(0x35a)]();if(_0x1a8eb4){const _0x2a80ee=_0x1a8eb4[_0x7be8a7(0x39e)];_0x1a8eb4[_0x7be8a7(0x39e)]=_0x138009=>(this[_0x7be8a7(0x13b)](),_0x2a80ee[_0x7be8a7(0x89)](_0x1a8eb4,[_0x138009])),_0x1a8eb4[_0x7be8a7(0xbe)]['subscribe'](_0x34cc2f=>this[_0x7be8a7(0x135)](_0x1a8eb4,_0x34cc2f)),_0x1a8eb4[_0x7be8a7(0xed)][_0x7be8a7(0x2c3)](_0x51a597(0x1))[_0x7be8a7(0x202)](_0x282a10=>this[_0x7be8a7(0x37c)]['error'](_0x7be8a7(0x1b0),_0x282a10)),_0x1a8eb4[_0x7be8a7(0x34c)][_0x7be8a7(0x2c3)](_0x51a597(0x1))[_0x7be8a7(0x202)](()=>{const _0x4f62fd=_0x7be8a7;this[_0x4f62fd(0x1e9)](_0x1a8eb4);}),_0x1a8eb4['close$']['pipe'](_0x51a597(0x1))['subscribe'](_0x2594a1=>{const _0x52249b=_0x7be8a7;this[_0x52249b(0x37c)][_0x52249b(0x35e)](_0x52249b(0x365),_0x52249b(0x35c),_0x2594a1),this[_0x52249b(0x386)]();});}}catch(_0x3375aa){this[_0x7be8a7(0x37c)][_0x7be8a7(0x24d)](_0x3375aa),this[_0x7be8a7(0x386)]();}}['_onConnectionOpen'](_0xfc0b9){const _0x32ce5e=_0x51fc53;this['_logService'][_0x32ce5e(0x35e)](_0x32ce5e(0x365),_0x32ce5e(0xd7)),_0xfc0b9[_0x32ce5e(0x39e)]({'cmd':I['HELLO']}),this['_rescheduleHeartbeatEvent']();}[_0x51fc53(0x386)](){const _0x1c6a80=_0x51fc53;var _0x4bdcb4;this['_status$'][_0x1c6a80(0x275)](0x2),this['_socket$'][_0x1c6a80(0x275)](null),this[_0x1c6a80(0x2f6)](),this['_clearHeartbeatTimer'](),this[_0x1c6a80(0x2a0)]=!0x1,this[_0x1c6a80(0x10c)]<((_0x4bdcb4=this['_configService']['getConfig'](sn))!=null?_0x4bdcb4:nn)?(this[_0x1c6a80(0x164)](this[_0x1c6a80(0x10c)]),this['_retryCount']+=0x1):this[_0x1c6a80(0x383)][_0x1c6a80(0x25c)]({'type':_0x1587ba[_0x1c6a80(0x228)],'content':this[_0x1c6a80(0x344)]['t'](_0x1c6a80(0x273))});}[_0x51fc53(0x164)](_0x128694){const _0x353d51=_0x51fc53;var _0x1301ac;const _0x12e307=((_0x1301ac=this['_configService'][_0x353d51(0xf0)](en))!=null?_0x1301ac:tn)*0x2**_0x128694;this['_messageService']['show']({'type':_0x1587ba[_0x353d51(0x10e)],'content':this[_0x353d51(0x344)]['t']('session.will-retry')}),this[_0x353d51(0xfc)]=setTimeout(()=>{const _0x547c2f=_0x353d51;this[_0x547c2f(0x2b1)](),clearTimeout(this[_0x547c2f(0xfc)]),this[_0x547c2f(0xfc)]=null;},_0x12e307);}[_0x51fc53(0x13b)](){const _0x13ad1d=_0x51fc53;var _0x1e61df;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x13ad1d(0x144)](),(_0x1e61df=this['_configService']['getConfig'](qi))!=null?_0x1e61df:Qi);}[_0x51fc53(0x144)](){const _0x4329e4=_0x51fc53;this[_0x4329e4(0x2d4)][_0x4329e4(0x39e)]({'cmd':I['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x51fc53(0x116)](){const _0x18a740=_0x51fc53;var _0x165bd6;this['_timeoutTimer']=setTimeout(()=>this[_0x18a740(0x386)](),(_0x165bd6=this[_0x18a740(0x2c4)][_0x18a740(0xf0)](Is))!=null?_0x165bd6:Es);}[_0x51fc53(0x135)](_0x4df3d9,_0x7e37ff){const _0x1c1b98=_0x51fc53,{cmd:_0x560cc9}=_0x7e37ff;_0x560cc9===I['HELLO']&&!this[_0x1c1b98(0x2a0)]&&(_0x4df3d9['memberID']=_0x7e37ff[_0x1c1b98(0x94)][_0x1c1b98(0x2ae)],this[_0x1c1b98(0x175)][_0x1c1b98(0x275)](_0x4df3d9),this[_0x1c1b98(0x22f)][_0x1c1b98(0x275)](0x3),this[_0x1c1b98(0x2a0)]=!0x0),_0x560cc9===I[_0x1c1b98(0x199)]&&this[_0x1c1b98(0x2f6)](),this[_0x1c1b98(0x13b)]();}[_0x51fc53(0x263)](){const _0x2fb33f=_0x51fc53;this[_0x2fb33f(0x1ac)]!=null&&(clearTimeout(this[_0x2fb33f(0x1ac)]),this[_0x2fb33f(0x1ac)]=null);}['_clearTimeoutTimer'](){const _0x4005a2=_0x51fc53;this[_0x4005a2(0x249)]!=null&&(clearTimeout(this[_0x4005a2(0x249)]),this[_0x4005a2(0x249)]=null);}};Re=Ts([M(0x0,_0x4a7404(_0x44b6b8)),M(0x1,_0x4a7404(_0x201091)),M(0x2,_0xf8e37a),M(0x3,_0x3cb271),M(0x4,_0x5977ca),M(0x5,bs)],Re);var bn=Object[_0x51fc53(0x18f)],Rn=Object[_0x51fc53(0x340)],Tn=(_0x567d13,_0x51e00e,_0x3ae3b7,_0x2c22f9)=>{const _0x336913=_0x51fc53;for(var _0x4b5261=_0x2c22f9>0x1?void 0x0:_0x2c22f9?Rn(_0x51e00e,_0x3ae3b7):_0x51e00e,_0x30ad2c=_0x567d13[_0x336913(0x2c6)]-0x1,_0x1d3cd9;_0x30ad2c>=0x0;_0x30ad2c--)(_0x1d3cd9=_0x567d13[_0x30ad2c])&&(_0x4b5261=(_0x2c22f9?_0x1d3cd9(_0x51e00e,_0x3ae3b7,_0x4b5261):_0x1d3cd9(_0x4b5261))||_0x4b5261);return _0x2c22f9&&_0x4b5261&&bn(_0x51e00e,_0x3ae3b7,_0x4b5261),_0x4b5261;},Se=(_0x1f0453,_0x2c89cc)=>(_0x15837b,_0x1fbf3a)=>_0x2c89cc(_0x15837b,_0x1fbf3a,_0x1f0453);let D=class extends _0x10a29c{constructor(_0x3bc7c1,_0x33a536,_0x439f48,_0x5dc724,_0x1cd876){const _0x1ee388=_0x51fc53;super(),l(this,_0x1ee388(0x271),new Map()),l(this,_0x1ee388(0x171),new Map()),l(this,_0x1ee388(0x231),!0x1),(this[_0x1ee388(0x2c4)]=_0x3bc7c1,this[_0x1ee388(0x1a6)]=_0x33a536,this['_beforeCloseService']=_0x439f48,this['_localeService']=_0x5dc724,this[_0x1ee388(0x2f2)]=_0x1cd876,this['_setupBeforeClosingHandler']());}[_0x51fc53(0x329)](){const _0x588f9a=_0x51fc53;this[_0x588f9a(0x231)]=!0x0;}[_0x51fc53(0x1a8)](){const _0x160a0d=_0x51fc53;this[_0x160a0d(0x231)]=!0x1;}['dispose'](){const _0x299d9e=_0x51fc53;this[_0x299d9e(0xc2)]()[_0x299d9e(0xf4)](()=>super[_0x299d9e(0x232)]());}async[_0x51fc53(0x2e5)](_0x18cbd0){const _0x4fc89c=_0x51fc53;return this[_0x4fc89c(0x231)]?null:this[_0x4fc89c(0x1a6)][_0x4fc89c(0xde)](Gt(_0x18cbd0));}async[_0x51fc53(0x16a)](_0x48dc6a,_0x507d95){const _0x479067=_0x51fc53;return!!this[_0x479067(0x1a6)]['setItem'](_0x48dc6a,_0x507d95);}[_0x51fc53(0x256)](_0x249895,_0x147b95,_0x349cc0,_0x383e79){const _0x419f21=_0x51fc53,_0x17cdd5=this[_0x419f21(0x2f2)]['getCurrentRevForDocument'](_0x249895);this[_0x419f21(0x271)][_0x419f21(0x38f)](_0x249895,{'unitID':_0x249895,'type':_0x147b95,'awaitingChangeset':_0x349cc0,'mutations':_0x383e79,'rev':_0x17cdd5}),this[_0x419f21(0x171)][_0x419f21(0x16c)](_0x249895)||this['_scheduleSaving'](_0x249895);}[_0x51fc53(0x1a9)](_0x58f04b){const _0x4de993=_0x51fc53,_0x6ef425=this[_0x4de993(0x226)]();_0x6ef425===0x0?this[_0x4de993(0x2d0)](_0x58f04b):this['_saveTaskMap'][_0x4de993(0x38f)](_0x58f04b,setTimeout(()=>this[_0x4de993(0x2d0)](_0x58f04b),_0x6ef425));}[_0x51fc53(0x226)](){const _0x277e5c=_0x51fc53;var _0x1cc550;return(_0x1cc550=this['_configService'][_0x277e5c(0xf0)](rn))!=null?_0x1cc550:on;}[_0x51fc53(0x2d0)](_0x3fbb24){const _0x2f3dd5=_0x51fc53,_0x364435=this['_saveTaskMap'][_0x2f3dd5(0x151)](_0x3fbb24);return _0x364435!==void 0x0&&window[_0x2f3dd5(0x20c)](_0x364435),this['_localStorageService'][_0x2f3dd5(0x2f0)](Gt(_0x3fbb24),this['_cachedData']['get'](_0x3fbb24))[_0x2f3dd5(0xf4)](()=>this[_0x2f3dd5(0x171)][_0x2f3dd5(0x209)](_0x3fbb24));}async[_0x51fc53(0xc2)](){const _0x1d72f8=_0x51fc53,_0x5645e8=[];this[_0x1d72f8(0x171)]['forEach']((_0x2f3708,_0xe0c2b3)=>{const _0x57dfb6=_0x1d72f8;window[_0x57dfb6(0x20c)](_0x2f3708),_0x5645e8[_0x57dfb6(0x19d)](this['_saveCache'](_0xe0c2b3)[_0x57dfb6(0xf4)](()=>{const _0x1c8d49=_0x57dfb6;this['_saveTaskMap'][_0x1c8d49(0x209)](_0xe0c2b3);}));}),await Promise[_0x1d72f8(0x97)](_0x5645e8);}[_0x51fc53(0x17a)](){const _0x37d21d=_0x51fc53;this[_0x37d21d(0x294)](this[_0x37d21d(0x32b)][_0x37d21d(0x125)](()=>{const _0x2c3598=_0x37d21d;if(this[_0x2c3598(0x171)][_0x2c3598(0x23a)])return this[_0x2c3598(0x344)]['t']('collaboration-client.offline-data-not-saved');}));}};D=Tn([Se(0x0,_0x5977ca),Se(0x1,_0x2cad44),Se(0x2,_0x5e3e8f),Se(0x3,_0x4a7404(_0x201091)),Se(0x4,_0x4a7404(_0x4d36b1))],D);function _0x18ca(){const _0x5199ce=['/universer-api/comb','_syncEditingCollabCursorService','round','9RGpKre','getTypeOfUnitAdded$','getInterceptPoints','/collaborator','_cachedData','permission.content','session.connection-failed','PERMISSION_REJ','next','newCsEvent','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','MSG_FOR_ERROR','_urlService','_unitOnClients','_name','onStarting','_renderManagerService','_commentService','_anchorDot','getTypeOfUnitDisposed$','_createInitialStateImpl','FETCH_MISSING','href','_localCacheService','fillText','save\x20fail\x20reason\x20is\x20','getSelections','string','labelPosition','fetchMissingChangesets','collaboratorID','UNIVER_SLIDE','_clearRedo','height','setParam','createElement','_onCursorUpdate','_updateState','_isPermissionRej','disposeWithMe','unshift','[CollaborationState]:\x20apply\x20error!','image/bmp','_getUploadFileURL','Error\x20on\x20receiving\x20event','Univer','_clearOtherTimers','_session','_loadSheet','UNKNOWN_CODE','fill','_socketReady','svg','TOO_MANY_REQUESTS','_entities','unload','_handleHeartbeatEvent','onRemoteAck','_userManagerService','tag','_docStateChangeManagerService','listCollaborators','_getUndoStack','_waitCount','random','memberID','unitId','originalMeta','_tryEnsureSocket','getImage','\x20-\x20','black','univer-online-status','attrs','onCommentUpdate','_createInitialState','idSuffix','_onUserLeave','removeParam','getCollabCursors$','HELLO','getMemberID','univer-offline','_getSendChangesetTimeout','[SyncedState]:\x20received\x20rejection.','permissionRejEvent','pipe','_configService','ERROR_IMAGE','length','localeService','LICENSE_MAX_UNITS_EXCEEDED','_scene','getUndoRedoMutationParamsCache','_selfUnitIDs','encode','type','[UniverCollaborationClientPlugin]','USERS_ENTER','_saveCache','Ready','addObjects','resourceIDs','_socket','isPermissionRej','8544XNwcKf','subscribeEvent','setShapeProps','roles','readAsDataURL','drawWith','_startSheetCollabCursor','parse','_getLoginPath','97296krqYso','objectActions','_notificationService','CONNECTOR_DATA_TOO_LARGE','_draw','conflict.title','loadOfflineData','LIVESHARE_TERMINATE','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_substituteUndoStack','updateMember','stringify','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','propertyIsEnumerable','getFocusedUnit','collaborators','onTransformSelections','setItem','getCurrentRevForDocument','_revisionService','/resources','_startDocCollabCursor','range','_clearTimeoutTimer','session.collaboration-timeout','_transformSelections','NOT_FOUND','selection','offline','ALREADY_EXISTS','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_onRemoteChangeset','LIVESHARE_OPERATION','generateRandomId','uni.network.url-service','textRanges','_updateLocalCache','[CollaborationEntity]','YUUMI_UNABLE_LOAD_URL','baseRev','_getDocObject','getRenderById','_disableEditing','_send','APPLY_REVISION_CONFILICT','_onRefRangeChange','hasOwnProperty','startsWith','m2Prime','_handler','CHANGESET_REVISION_CONFILICT','USERS_LEAVE','toRgbString','onTransformRemoteChangesetByIMECache','_undoStacks','subunit','hide','collabCursorState$','OFFLINE','_decreaseWaiting','LICENSE_IMPORT_SIZE_EXCEEDED','_onConflict','/fetchmissing?from=','deleteCollaborator','ONLINE','getCurrent','MUTATION','_httpService','_document','setWaitCount','univer-online-status-title','RECV','members','getCurrentUser','disableLocalCache','pauseCollaboration','_beforeCloseService','UNIVER_DOC','flatMap','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','image/jpg','_HTTPService','_state$','objectID','loadDoc','sessionStatus$','_onUserJoin','fillStyle','failed\x20to\x20apply\x20missed\x20changesets!','toggleOnline','SEND_CHANGESET_TIMEOUT','univerjs-icon\x20univerjs-icon-','_getAPIPrefix','COMMENT_UPDATE','_docSkeletonManagerService','assignAColorForMemberID','_anchor','getOwnPropertyDescriptor','div','_injector','_toggleOnline','_localeService','_setupSubUnitSync','OTHER_CLIENTS_EDITING','appendMutation','_onRemoteRejected','complete','CHANGESET_REJ','off-line-single_clip0_910_343','open$','collabStatus.syncing','isArray','/new_changes','&to=','UNIVER_SHEET','_transformRemoteChangesetByIMECache','_createHandler','activeSheet$','_transformPreviousActiveRange','onStateChange','RemoveColCommandId','incrementRevForDocument','_refRangeService','_createSocket','_updateLocalCursor','socket\x20close','color','debug','_shapes','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','awaiting','clear','2651088ywRbwD','_scheduleHeartbeat','[CollaborationSessionService]','INVALID_ARGUMENT','findNodePositionByCharIndex','commentUpdate$','saveChangeset','_http','_entityInit$','onSendChangeset','_onCursorDelete','editing\x20status\x20changed\x20to','_roomMembers$','onTransformIME','_redoStacks','startColumn','_acknowledgedAwaitingChangeset','event$','setAlpha','_scheduleCollaborationTimeoutTimer','DeleteRangeMoveUpCommandId','displayName','onRemoteChangeset','path','_transitionLocked','_logService','getActiveRange','?url=','InsertRangeMoveDownCommandId','_init','_onFetchMissResult','[PendingState]:\x20received\x20acknowledgement.','_messageService','LOGIN_URL_KEY','min','_onConnectionFailed','unit','synced','6758257YqGhFL','/universer-api/snapshot/','getViewModel','_unitStatus','[FetchMissState]','_queuedRemoteChangesets','set','_cursorInfo$','currentSkeleton$','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_awaitingChangeset','PENDING','_sheetSkeletonManagerService','UNDEFINED','ranges','red300','children','\x20to\x20','_clearCollaborationTimeoutTimer','cmd','slice','send','_docTransformSelectionsService','ws://127.0.0.1:8000/universer-api/comb/connect','_ws','/universer-api/stream/file/upload','indexOf','name','_incrementRevisionNumber','setTimeout','_labelPosition','defIds','getSheetBySheetId','Unknown\x20user','c1Prime','[DataLoaderController]','newValue','_docSkeleton','xlink:href','getCollabEntity$','onPointerLeave$','close','registerComponent','_ensureSubject','_socketMessageSubscription','getUnitType','isEditing','url(#off-line-single_clip0_910_343)','replace','createInstance','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','collabStatus.notCollab','transformMutationsWithChangeset','removeMember','collab-text-anchor-','_sessionStatus$','joinEvent','_id','_executeRemoteChangeset','_collabCursorController','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','UNAUTHENTICATED','makeDirty','9326xNooEb','apply','_unitId','image/png','Steady','/block/','onMouseMove','JOIN','_sendingTimer','INGEST','substring','RETRY_CONNECTING_INTERVAL','data','_clearLocalCache','OffLineSingle','all','liveShareOperation','snapshot','[SyncedState]:\x20received\x20acknowledgement.','_substituteRedoStack','getRoom','COMPRESS_MUTATION_SEND','_collaborationController','_replaceFileID','_univerInstanceService','_textBubble','close$','changesets','function','_permissionService','collabStatus.conflict','_color','_collaborationTimeoutTimer','_replayCachedMutations','executeCommand','map','json','_type','use','revision','getViewport','/object','interceptor','_eventUnsubscribe','onCommandExecuted','awaiting_with_pending','getMember','UNIVER_UNKNOWN','/allowed','_removeCollabCursors','urlChange$','_getSnapshotAPIPrefix','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','[CollaborationUndoRedoService]','message$','endRow','onload','off-line-single','_exhaustSavingTask','collaMsg','_updateCollabCursors','transformSelections','\x0aCurrent:\x20','mutations','asObservable','src','_scheduleTimestamp','conflict','_hover','getOwnPropertySymbols','getCellPositionByOffset','_config','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','fetchThroughInterceptors','fromCollab','_cursors','_uiPartsService','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_hovered','socket\x20open.','LEAVE','with','_getSheetObject','_toggleOffline','LIVESHARE_REQUEST_HOST','pending','getItem','COLLAB_WEB_SOCKET_URL','objectType','5342630naCUdn','replaceState','[PendingState]:\x20received\x20rejection.','SYNCED','icon','_fetchMissChangesets','add','2084656ThyvmU','FAIL','/unit/','NOT_COLLAB','createSocket','error$','jiqing500','setActiveRange','getConfig','CHANGESET_ACK','session','selections','then','translate(.97)','NO_OTHER_CLIENTS_EDITING','[OfflineState]:\x20received\x20changeset.','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','blue400','entries','LICENSE_EXPORT_SIZE_EXCEEDED','_retryConnectingTimer','_removeClearOtherTimer','moveTo','LOCAL_CACHE_INTERVAL','pushState','APPLY_REJECT','_transformService','split','addObject','FileId','setUndoRedoMutationParamsCache','collabStatus.synced','_event$','_singleActiveUnitService','confirm','sheetId','_retryCount','_updateStatus','Warning','_handleLeaveEvent','SNAPSHOT_URL_KEY','focused$','storage','_commandService','_applyRemoteChangeset','_clearUndo','_waitForHeartbeatResponse','file','_getMergeRange','_sheetTransformSelectionsService','unsubscribe','_handleEvent','_getSignURL','Starting','includes','clearInterval','/universer-api/authz','values','row','cursorInfo$','forEach','registerBeforeClose','onSyncEditingCollabCursor','font','updateCursorEvent','cursorInfo','current','_memberService','_updateSubUnitFromURLParams','onMissingChangesets','catch','30KvsGIM','ERROR_EXCEED_SIZE','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_onCombEvent','_exhaustRemoteChangesetQueue','[OfflineState]:\x20received\x20acknowledgement.','_onMessage','SNAPSHOT_SERVER_URL_KEY','_socketService','InsertRangeMoveRightCommandId','replaceTextRanges','post','_rescheduleHeartbeatEvent','[CollaborationSession]','UNKNOWN_CMD','_transformStack','_compressMutationService','url(#on-line-single_clip0_910_349)','code','some','fetch_missing','_sendHeartbeat','colorChannel1','1em','_onRecvEvent','_getCtorByUniverType','updateCollaborator','_handleHover','concat','PERMISSION_DENIED','ACTIVE_UNIT_EVENT_CHANNEL','_onRemoteACK','image/gif','hovered','get','doc.mutation.rich-text-editing','closePath','_sessions','addImageSourceCache','LICENSE_DISTRO_REJECTED','gold400','_schedule','arc','onlineStatusTitle','2569DFSqzp','_getScale','getTime','getValue','bottom','batchAllowed','_getCurrentRevision','HEARTBEAT_INTERVAL','APPLY_NON_SEQUENTIAL_REVISION','_scheduleReconnection','measureText','getMergeData','_onJoinRoomEvent','append','onPointerEnter$','saveOfflineData','_themeService','has','_syncEditingCollabCursor','routeKey','_clearScheduledTask','change$','_saveTaskMap','startRow','_state','_initStatusListener','_socket$','COMPRESS_MUTATION_APPLY','transformByState','toggleOffline','getCollabEntity','_setupBeforeClosingHandler','_commentUpdate$','from','width','FromArray','enableAuthServer','AWAITING','state','lineTo','deepClone','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','call','triggerDblclick','editingUnit','awaitingChangeset','_cursor','_render','_roomMembers','_transformUndoRedoStack','fillRule','LIVESHARE_FETCH_OPERATIONS','defineProperty','_imageSourceCache','init','url','sessionStatus','registerHTTPInterceptor','onlineStatusIcon','_handleJoinEvent','resend','_initModules','HEARTBEAT','put','encodeURIComponent','actions','push','IDLE','currentColor','univer-online','trim','AWAITING_WITH_PENDING','unit-cache-','_lastPointer','result','_localStorageService','currentTheme$','enableLocalCache','_scheduleSaving','[OfflineState]:\x20received\x20rejection.','univer-pro.collaboration-client-socket-service','_sendHeartbeatTimer','requireSession','saveImage','/object/','[CollaborationSessionService]:\x20socket\x20error','unitID','_collabSessionService','whenReady','purple300','_getAnchorBounding','sheets','syncEditingCollabCursor','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','popstate','roomInfos','reject','_undoRedoService','toString','_transformIMECache','_docSyncEditingCollabCursorService','OnLineSingle','roomMembers$','24vlsADW','_hideTimer','getCurrentUnitForType','rgba(255,\x20255,\x20255,\x200.01)','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_onLocalMutation','params','socketService','onRemoteRej','SNAPSHOT_HAS_BEEN_REMOVED','UNRECOGNIZED','getRangePointData','_removeRoom','title','collab-text-range-','on-line-single_clip0_910_349','csRejEvent','update','column','extend','commentUpdateEvent','saveSnapshot','getDataModel','online','resolve','EXCHANGE_SIGN_URL_SERVER_URL_KEY','APPLY_PERMISSION_DENIED','_docTransformIMECacheService','_remoteChangesetQueue','INTERNAL_ERROR','_lockTransition','find','UUID','getActiveSheet','_pendingMutations','_snapshotService','ERROR_IMAGE_TYPE','_colorAssignService','_checkMissing','_onConnectionOpen','userID','rev','eventID','unknown','getUnitStatus$','getSheetId','JOINING','5kwoUmp','save','_range','onlyLocal','prototype','updatePermissionPoint','verdancy600','_unlockTransition','patch','COMPLETION_FINISHED','_getAPIPrefixPath','infoRsp','_colorIndex','createCollaborator','image/jpeg','dispose$','liveShareNewHost','subscribe','_loadDoc','reverse','filter','onPointerMove$','top','SNAPSHOT_INVALID_SNAPSHOT','delete','not_collab','setCurrentUser','clearTimeout','MoveRangeCommandId','/rev/','CONFLICT','collaboration.single-unit.warning','body','_getRedoStack','LIVESHARE_NEW_HOST','status$','YUUMI_URL_COL_OUT_OF_RANGE','max','connection\x20error','_collaborationPaused','assign','roomMembers','enableOfflineEditing','transformChangesets','_submitChangeset','location','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','history','className','onlineStatus','_startCollaboration','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_joinRoom','_getSaveTimeout','_change$','Error','...','/universer-api/snapshot','univer-pro.collaboration-client.single-active-unit-service','transformIMECache','M0\x200H16V16H0z','getParam','_status$','saveSheetBlock','_disabled','dispose','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','#fff','UPDATE_CURSOR','_members','UNIVER_COLLABORATION_CLIENT_PLUGIN','univer-online-status-icon','_heartbeatTimer','size','workbook','_assignedColors','collaborationUniverTypes','collabStatus.offline','HEADER_MENU','_snapshotServerService','{fileID}','getAncestorScale','_transformUndoredo','getUnitId','state$','session.room-full','_unitID','text','_timeoutTimer','addEventListener','getUnhiddenWorksheets','auth.needGotoLoginAlert','error','target','searchParams','NEW_CHANGESETS','clipPath','FETCH_MISS','status','getResourcesRequest','SUBMIT_CHANGESET','updateOfflineData','conflict.content','/universer-api/oidc/authpage','transformMutation','evenodd','_updateURLWithCurrentState','show','m1Prime','_drawAnchor','beginPath','_scheduleClearOtherTimer','restore','_drawRange','_clearHeartbeatTimer','defs','_online','none','fetching\x20missing\x20changesets\x20from\x20','sheetID','PSEUDO_FETCH_MISSING_RESULT'];_0x18ca=function(){return _0x5199ce;};return _0x18ca();}function Gt(_0x3c0871){const _0x24e7d0=_0x51fc53;return _0x24e7d0(0x1a3)+_0x3c0871;}const Xe=_0xf73999(_0x51fc53(0x22b));var Os=(_0x14b6ec=>(_0x14b6ec[_0x14b6ec[_0x51fc53(0xf6)]=0x0]=_0x51fc53(0xf6),_0x14b6ec[_0x14b6ec['OTHER_CLIENTS_EDITING']=0x1]=_0x51fc53(0x346),_0x14b6ec))(Os||{});const Yt=0x7530,Kt=_0x51fc53(0x14d);class On extends _0x10a29c{constructor(){const _0x49237e=_0x51fc53;super(),l(this,_0x49237e(0x82),_0x4cfbd7['generateRandomId']()),l(this,'_selfUnitIDs',new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x49237e(0x239),null),l(this,_0x49237e(0x29b),new Map()),l(this,_0x49237e(0x38c),new Map()),this['_init']();}[_0x51fc53(0x232)](){const _0x3859b4=_0x51fc53;super[_0x3859b4(0x232)](),this['_clearOtherTimers']['forEach']((_0x27c810,_0x439676)=>this[_0x3859b4(0xfd)](_0x439676)),this[_0x3859b4(0x239)]&&window[_0x3859b4(0x11f)](this[_0x3859b4(0x239)]);}['getUnitStatus$'](_0x4dfe60){const _0x4dedd9=_0x51fc53;return this[_0x4dedd9(0x3b4)](_0x4dfe60)['pipe'](_0xe50b30());}[_0x51fc53(0x187)](_0x5a27a2){const _0x256a06=_0x51fc53;this['_selfUnitIDs'][_0x256a06(0x23a)]===0x0&&this[_0x256a06(0x364)](),this[_0x256a06(0x2cb)][_0x256a06(0xe7)](_0x5a27a2),this[_0x256a06(0x30a)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x5a27a2],'isForwarded':!0x1});}['disposeUnit'](_0x3c14fc){const _0x4e764c=_0x51fc53;this[_0x4e764c(0x2cb)][_0x4e764c(0x209)](_0x3c14fc),this['_selfUnitIDs'][_0x4e764c(0x23a)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x4e764c(0x239)]);}['_init'](){const _0x1c3f3d=_0x51fc53;this['disposeWithMe'](_0x2f2f24(_0x1860dc(window,_0x1c3f3d(0x112))['subscribe'](_0x7d2cc7=>{const _0x1a3858=_0x1c3f3d;if(_0x7d2cc7['key']!==Kt||!_0x7d2cc7[_0x1a3858(0x3ad)])return;const _0x3e9850=JSON[_0x1a3858(0x2dd)](_0x7d2cc7[_0x1a3858(0x3ad)]);this['_handleEvent'](_0x3e9850);}))),window[_0x1c3f3d(0x24a)](_0x1c3f3d(0x2a4),()=>this[_0x1c3f3d(0x30a)]({'type':0x1,'memberID':this[_0x1c3f3d(0x82)],'unitIDs':Array[_0x1c3f3d(0x17c)](this[_0x1c3f3d(0x2cb)])}));}[_0x51fc53(0x11b)](_0x5b6daf){const _0x461a1f=_0x51fc53;switch(_0x5b6daf[_0x461a1f(0x2cd)]){case 0x0:this['_handleJoinEvent'](_0x5b6daf);break;case 0x1:this[_0x461a1f(0x10f)](_0x5b6daf);break;case 0x2:this[_0x461a1f(0x2a5)](_0x5b6daf);break;}}[_0x51fc53(0x196)](_0x40c84b){const _0x43ecce=_0x51fc53,{unitIDs:_0x34bfed,memberID:_0x4b8c4f,isForwarded:_0x1dd111}=_0x40c84b;_0x34bfed[_0x43ecce(0x124)](_0x2432f6=>{const _0x51f5fe=_0x43ecce;if(!_0x1dd111&&this[_0x51f5fe(0x27a)][_0x51f5fe(0x16c)](_0x2432f6)&&this[_0x51f5fe(0x3b4)](_0x2432f6)[_0x51f5fe(0x275)](0x1),!this['_unitOnClients'][_0x51f5fe(0x16c)](_0x2432f6)||!this[_0x51f5fe(0x27a)][_0x51f5fe(0x151)](_0x2432f6)[_0x51f5fe(0x16c)](_0x4b8c4f)){const _0x787785=this[_0x51f5fe(0x27a)][_0x51f5fe(0x151)](_0x2432f6)||new Set();_0x787785[_0x51f5fe(0xe7)](_0x4b8c4f),this[_0x51f5fe(0x27a)][_0x51f5fe(0x38f)](_0x2432f6,_0x787785),this[_0x51f5fe(0x260)](_0x4b8c4f);}}),_0x1dd111||this[_0x43ecce(0x30a)]({'type':0x0,'memberID':this[_0x43ecce(0x82)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x291848){const _0x5977ce=_0x51fc53;this[_0x5977ce(0xfd)](_0x291848);const _0x19d883=window[_0x5977ce(0x3a6)](()=>{this['_unitOnClients']['forEach'](_0x78235e=>{_0x78235e['delete'](_0x291848);});},Yt*0x2);this[_0x5977ce(0x29b)][_0x5977ce(0x38f)](_0x291848,_0x19d883);}[_0x51fc53(0xfd)](_0x3c7be8){const _0x2b7579=_0x51fc53;if(this[_0x2b7579(0x29b)]['has'](_0x3c7be8)){const _0x1d4b8c=this[_0x2b7579(0x29b)]['get'](_0x3c7be8);_0x1d4b8c&&window[_0x2b7579(0x20c)](_0x1d4b8c),this['_clearOtherTimers']['set'](_0x3c7be8,null);}}[_0x51fc53(0x10f)](_0x3c1122){const _0x1cc5cd=_0x51fc53,{memberID:_0x593a24,unitIDs:_0x2b8915}=_0x3c1122;_0x2b8915[_0x1cc5cd(0x124)](_0x5f090d=>{const _0x5b2608=_0x1cc5cd;var _0x38c161;const _0x2fdd01=this[_0x5b2608(0x27a)][_0x5b2608(0x151)](_0x5f090d);_0x2fdd01&&(_0x2fdd01[_0x5b2608(0x209)](_0x593a24),(_0x38c161=this[_0x5b2608(0x3b4)](_0x5f090d))==null||_0x38c161[_0x5b2608(0x275)](_0x2fdd01[_0x5b2608(0x23a)]===0x0?0x0:0x1));}),this[_0x1cc5cd(0xfd)](_0x593a24);}[_0x51fc53(0x2a5)](_0x3b0b2d){const _0x4796f8=_0x51fc53;this[_0x4796f8(0x260)](_0x3b0b2d['memberID']);}['_send'](_0x8e176){const _0x5dd6d1=_0x51fc53;localStorage[_0x5dd6d1(0x2f0)](Kt,JSON[_0x5dd6d1(0x2ea)](_0x8e176));}[_0x51fc53(0x364)](){const _0x19b02e=_0x51fc53;this[_0x19b02e(0x239)]=window['setInterval'](()=>{const _0x34e71b=_0x19b02e;this[_0x34e71b(0x30a)]({'type':0x2,'memberID':this['_id']});},Yt);}[_0x51fc53(0x3b4)](_0x3cc3df){const _0xcfe4fd=_0x51fc53;return this[_0xcfe4fd(0x38c)]['has'](_0x3cc3df)||this[_0xcfe4fd(0x38c)][_0xcfe4fd(0x38f)](_0x3cc3df,new _0x5d7d96(0x0)),this['_unitStatus']['get'](_0x3cc3df);}}var Dn=Object[_0x51fc53(0x18f)],wn=Object[_0x51fc53(0x340)],Pn=(_0x4e5240,_0x28b81d,_0xb8902e,_0x3612cf)=>{const _0x51711a=_0x51fc53;for(var _0x41a75a=_0x3612cf>0x1?void 0x0:_0x3612cf?wn(_0x28b81d,_0xb8902e):_0x28b81d,_0x1d8464=_0x4e5240[_0x51711a(0x2c6)]-0x1,_0x5637e6;_0x1d8464>=0x0;_0x1d8464--)(_0x5637e6=_0x4e5240[_0x1d8464])&&(_0x41a75a=(_0x3612cf?_0x5637e6(_0x28b81d,_0xb8902e,_0x41a75a):_0x5637e6(_0x41a75a))||_0x41a75a);return _0x3612cf&&_0x41a75a&&Dn(_0x28b81d,_0xb8902e,_0x41a75a),_0x41a75a;},Xt=(_0x58e8a0,_0x5a4309)=>(_0x3d8b53,_0x3e0243)=>_0x5a4309(_0x3d8b53,_0x3e0243,_0x58e8a0);let Be=class{constructor(_0xa87404,_0x16bc1b){const _0x3b4e86=_0x51fc53;this[_0x3b4e86(0x342)]=_0xa87404,this[_0x3b4e86(0x102)]=_0x16bc1b;}[_0x51fc53(0x22c)](_0x4dc2c3){const _0x9d7dba=_0x51fc53;this[_0x9d7dba(0x18c)](_0x4dc2c3),this[_0x9d7dba(0x355)](_0x4dc2c3);}['transformRemoteChangeset'](_0x434645){const _0x368178=_0x51fc53,_0x5d26a2=this[_0x368178(0x342)][_0x368178(0x151)](_0x57e020),{redoCache:_0x3a1135}=_0x5d26a2[_0x368178(0x2ca)]();if(_0x3a1135[_0x368178(0x2c6)]===0x0)return _0x434645;let _0x1647c0=_0x4cfbd7[_0x368178(0x183)](_0x434645['mutations'][0x0]);for(let _0x3f0c09=0x0;_0x3f0c09<_0x3a1135[_0x368178(0x2c6)];_0x3f0c09++){const _0x36e7d1={'id':_0x368178(0x152),'params':{..._0x3a1135[_0x3f0c09]}},_0x4623e8=this[_0x368178(0x102)][_0x368178(0x259)](_0x1647c0,_0x36e7d1,!0x1);if(_0xcc662a(_0x4623e8))throw _0x4623e8['error'];_0x1647c0=_0x4623e8[_0x368178(0x25d)];}return{..._0x4cfbd7[_0x368178(0x183)](_0x434645),'mutations':[_0x1647c0]};}[_0x51fc53(0x18c)](_0x5b0e0d){const _0x3ade08=_0x51fc53,_0x442ab2=this['_injector'][_0x3ade08(0x151)](_0x57e020),{undoCache:_0x2ec6cb,redoCache:_0x2a8beb}=_0x442ab2[_0x3ade08(0x2ca)]();if(_0x2ec6cb[_0x3ade08(0x2c6)]===0x0||_0x2a8beb[_0x3ade08(0x2c6)]===0x0)return;const _0x204a77=[],_0x2e4a7f=[];let _0x2d1d6c=_0x4cfbd7['deepClone'](_0x5b0e0d[_0x3ade08(0xc7)][0x0]),_0x24e2ef=_0x4cfbd7[_0x3ade08(0x183)](_0x5b0e0d[_0x3ade08(0xc7)][0x0]);for(let _0x357fc8=_0x2ec6cb[_0x3ade08(0x2c6)]-0x1;_0x357fc8>=0x0;_0x357fc8--){const _0x21c12b={'id':_0x3ade08(0x152),'params':{..._0x2ec6cb[_0x357fc8]}},_0x352d1c={'id':_0x3ade08(0x152),'params':{..._0x2a8beb[_0x357fc8]}},_0x275625=this['_transformService'][_0x3ade08(0x259)](_0x2d1d6c,_0x21c12b,!0x1),_0x4a3cb9=this[_0x3ade08(0x102)]['transformMutation'](_0x24e2ef,_0x352d1c,!0x1);if(_0xcc662a(_0x275625))throw _0x275625['error'];if(_0xcc662a(_0x4a3cb9))throw _0x4a3cb9[_0x3ade08(0x24d)];_0x204a77[_0x3ade08(0x295)](_0x275625[_0x3ade08(0x30f)][_0x3ade08(0x1c8)]),_0x2e4a7f[_0x3ade08(0x295)](_0x4a3cb9[_0x3ade08(0x30f)][_0x3ade08(0x1c8)]),_0x2d1d6c=_0x275625['m1Prime'],_0x24e2ef=_0x4a3cb9['m1Prime'];}_0x442ab2[_0x3ade08(0x106)]({'undoCache':_0x204a77,'redoCache':_0x2e4a7f});}[_0x51fc53(0x355)](_0x1d909d){const _0x29acee=_0x51fc53,_0x203f23=this['_injector']['get'](_0x57e020),_0x1b8b0f=_0x203f23[_0x29acee(0x37d)]();if(_0x1b8b0f==null)return;const _0xdaf90d=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1d909d['unitID'],'actions':null,'textRanges':[_0x1b8b0f]}}],_0x4d21e4=this[_0x29acee(0x102)][_0x29acee(0x3bd)](_0x1d909d,_0xdaf90d);if(!_0x5a8972(_0x4d21e4))throw _0x4d21e4[_0x29acee(0x24d)];const _0x3d0133=_0x4d21e4['m2Prime'][0x0][_0x29acee(0x1c8)]['textRanges'];Array[_0x29acee(0x34e)](_0x3d0133)&&_0x3d0133[_0x29acee(0x2c6)]&&_0x203f23[_0x29acee(0xef)](_0x3d0133[0x0]);}};Be=Pn([Xt(0x0,_0x4a7404(_0x44b6b8)),Xt(0x1,_0x425e9b)],Be);var Nn=Object[_0x51fc53(0x18f)],Mn=Object[_0x51fc53(0x340)],An=(_0x3033e3,_0x9fb173,_0x595868,_0x19eb0a)=>{const _0x5c4466=_0x51fc53;for(var _0x3aaf3f=_0x19eb0a>0x1?void 0x0:_0x19eb0a?Mn(_0x9fb173,_0x595868):_0x9fb173,_0x1c1261=_0x3033e3[_0x5c4466(0x2c6)]-0x1,_0x208511;_0x1c1261>=0x0;_0x1c1261--)(_0x208511=_0x3033e3[_0x1c1261])&&(_0x3aaf3f=(_0x19eb0a?_0x208511(_0x9fb173,_0x595868,_0x3aaf3f):_0x208511(_0x3aaf3f))||_0x3aaf3f);return _0x19eb0a&&_0x3aaf3f&&Nn(_0x9fb173,_0x595868,_0x3aaf3f),_0x3aaf3f;},Jt=(_0x2a144a,_0x51e388)=>(_0x48f78a,_0x2e66b7)=>_0x51e388(_0x48f78a,_0x2e66b7,_0x2a144a);let ke=class{constructor(_0x46c0b1,_0x26f919){const _0x563856=_0x51fc53;this[_0x563856(0x342)]=_0x46c0b1,this[_0x563856(0x102)]=_0x26f919;}[_0x51fc53(0xc5)](_0x3cd0a2){const _0x33ed89=_0x51fc53;var _0x5c1e20;const _0x342702=this['_injector'][_0x33ed89(0x151)](_0x58dacd),_0x49f6d4=(_0x5c1e20=_0x342702[_0x33ed89(0x287)]())!=null?_0x5c1e20:[],_0xaeb166=_0x49f6d4==null?void 0x0:_0x49f6d4['map'](_0x2646e0);if(_0xaeb166[_0x33ed89(0x2c6)]===0x0)return;const _0x37e9e6=[{'id':_0x33ed89(0x152),'params':{'unitId':_0x3cd0a2['unitID'],'actions':null,'textRanges':_0xaeb166}}],_0x12f21a=this['_transformService'][_0x33ed89(0x3bd)](_0x3cd0a2,_0x37e9e6);if(!_0x5a8972(_0x12f21a))throw _0x12f21a[_0x33ed89(0x24d)];const _0x1a4ca7=_0x12f21a['m2Prime'][0x0]['params'][_0x33ed89(0x302)];Array['isArray'](_0x1a4ca7)&&_0x1a4ca7[_0x33ed89(0x2c6)]&&_0x342702[_0x33ed89(0x139)](_0x1a4ca7,!0x1);}};ke=An([Jt(0x0,_0x4a7404(_0x44b6b8)),Jt(0x1,_0x425e9b)],ke);function Ds(_0x17017c){const _0x3ee394=_0x51fc53;let _0x229727='';for(const _0x36b906 of _0x17017c){const {startOffset:_0x3519d1,endOffset:_0x605cf3,isActive:_0x2d623d}=_0x36b906;_0x229727[_0x3ee394(0x2c6)]&&(_0x229727+=','),_0x229727+=_0x3519d1+':'+_0x605cf3+':'+(_0x2d623d?'1':'0');}return _0x229727;}function yn(_0x326d52){const _0xe03a6a=_0x51fc53,_0x58a7f9=_0x326d52['split'](','),_0x370780=[];for(const _0x1decca of _0x58a7f9){const [_0x1a3ad3,_0x3a33e0,_0x1fceec]=_0x1decca[_0xe03a6a(0x103)](':');_0x370780[_0xe03a6a(0x19d)]({'startOffset':Number(_0x1a3ad3),'endOffset':Number(_0x3a33e0),'collapsed':_0x1a3ad3===_0x3a33e0,'isActive':_0x1fceec==='1'});}return _0x370780[_0xe03a6a(0x142)](_0x1ad813=>_0x1ad813['isActive'])||(_0x370780[0x0]['isActive']=!0x0),_0x370780;}class Mt extends _0x521c86{constructor(){const _0x37c41e=_0x51fc53;super(...arguments),l(this,'_collabCursorState$',new _0x5d7d96(null)),l(this,_0x37c41e(0x318),this['_collabCursorState$']['asObservable']());}[_0x51fc53(0x1b7)](_0xc92d27){const _0x4cb7c2=_0x51fc53,{unitID:_0x4c5bbd,memberID:_0x5c0e5d,textRanges:_0x3f6bea}=_0xc92d27,_0x48a16e=Ds(_0x3f6bea),_0x33a97f={'unitID':_0x4c5bbd,'memberID':_0x5c0e5d,'selection':_0x48a16e};this['_collabCursorState$'][_0x4cb7c2(0x275)](_0x33a97f);}}var Un=Object['defineProperty'],Ln=Object[_0x51fc53(0x340)],$n=(_0x7a8adb,_0xcb8aae,_0x1d44f9,_0x5ad8b0)=>{for(var _0x4ef787=_0x5ad8b0>0x1?void 0x0:_0x5ad8b0?Ln(_0xcb8aae,_0x1d44f9):_0xcb8aae,_0xa23060=_0x7a8adb['length']-0x1,_0x2a1bf3;_0xa23060>=0x0;_0xa23060--)(_0x2a1bf3=_0x7a8adb[_0xa23060])&&(_0x4ef787=(_0x5ad8b0?_0x2a1bf3(_0xcb8aae,_0x1d44f9,_0x4ef787):_0x2a1bf3(_0x4ef787))||_0x4ef787);return _0x5ad8b0&&_0x4ef787&&Un(_0xcb8aae,_0x1d44f9,_0x4ef787),_0x4ef787;},zt=(_0x1a2c06,_0x40049e)=>(_0x21259b,_0x5715c6)=>_0x40049e(_0x21259b,_0x5715c6,_0x1a2c06);let Ve=class{constructor(_0x6f73d7,_0x31a3ec){const _0x393549=_0x51fc53;this[_0x393549(0x342)]=_0x6f73d7,this[_0x393549(0x102)]=_0x31a3ec;}['transformSelections'](_0x172c0a){const _0x5c4a95=_0x51fc53;var _0x1a8411,_0x4ce5e8,_0xaf891c,_0x226827;const _0x34f67d=this['_injector'][_0x5c4a95(0x151)](_0x5c112f),{pluginName:_0x1dd79c,unitId:_0x49526d,sheetId:_0x3c9017}=_0x34f67d[_0x5c4a95(0x320)]()||{},_0x21db35=(_0x1a8411=_0x34f67d[_0x5c4a95(0x287)]())!=null?_0x1a8411:[];if(_0x21db35[_0x5c4a95(0x2c6)]===0x0||!_0x1dd79c||!_0x49526d||!_0x3c9017)return;const _0x5d0210=[{'id':_0x2708b7['id'],'params':{'unitId':_0x49526d,'subUnitId':_0x3c9017,'pluginName':_0x1dd79c,'selections':_0x4cfbd7[_0x5c4a95(0x183)](_0x21db35)}}],_0x58759b=this[_0x5c4a95(0x102)][_0x5c4a95(0x3bd)](_0x172c0a,_0x5d0210);if(!_0x5a8972(_0x58759b))throw _0x58759b['error'];const _0x29ce31=(_0x226827=(_0xaf891c=(_0x4ce5e8=_0x58759b['m2Prime'][0x0])==null?void 0x0:_0x4ce5e8[_0x5c4a95(0x1c8)])==null?void 0x0:_0xaf891c[_0x5c4a95(0xf3)])!=null?_0x226827:_0x21db35;Array[_0x5c4a95(0x34e)](_0x29ce31)&&_0x29ce31['length']&&this[_0x5c4a95(0x342)][_0x5c4a95(0x151)](_0x568418)[_0x5c4a95(0xaa)](_0x2708b7['id'],{'unitId':_0x49526d,'subUnitId':_0x3c9017,'pluginName':_0x1dd79c,'selections':_0x29ce31});}};Ve=$n([zt(0x0,_0x4a7404(_0x44b6b8)),zt(0x1,_0x425e9b)],Ve);const jn=new Set([_0x75b52d['id']]);function Hn(_0xee69da,_0x609f36,_0x276c32,_0x1ae9bb,_0x386944){const _0x48fff9=_0x51fc53;var _0xa2c052,_0x1491c0,_0x813fa1,_0x25d687;const _0x2f6267=[];for(const _0x27d4bb of _0xee69da)if(jn[_0x48fff9(0x16c)](_0x27d4bb['id'])){if(_0x2f6267[_0x48fff9(0x2c6)]>0x0)break;_0x2f6267['push'](_0x27d4bb);break;}else _0x2f6267[_0x48fff9(0x19d)](_0x27d4bb);const _0x265215=(_0x1491c0=(_0xa2c052=_0x386944[_0x48fff9(0x328)]())==null?void 0x0:_0xa2c052[_0x48fff9(0x1ea)])!=null?_0x1491c0:_0x48fff9(0x1ed),_0x4ff4f4=(_0x25d687=(_0x813fa1=_0x386944[_0x48fff9(0x328)]())==null?void 0x0:_0x813fa1[_0x48fff9(0x2ae)])!=null?_0x25d687:_0x48fff9(0x1ed);return{'changeset':{'unitID':_0x609f36,'type':_0x23bb45(_0x276c32['getUnitType'](_0x609f36)),'baseRev':_0x1ae9bb[_0x48fff9(0x2f1)](_0x609f36),'revision':0x0,'userID':_0x265215,'memberID':_0x4ff4f4,'mutations':_0x2f6267},'pendingMutations':_0xee69da[_0x48fff9(0x39d)](_0x2f6267[_0x48fff9(0x2c6)])};}function xn(_0x16afcb,_0x2058c8,_0x2b750a,_0x537a1a,_0x59ba1d){const _0x230af8=_0x51fc53;var _0x266713,_0x2f2171,_0x464a27,_0x1a8523;const _0x28b895=[_0x16afcb['reduce']((_0x34db57,_0x3d6063)=>{const _0x6849f6=_0x5e69;var _0x1d84cc;const {id:_0xe47810}=_0x34db57,{id:_0x43bb00,type:_0x1437bf}=_0x3d6063,_0x56de3b=(_0x1d84cc=_0x34db57[_0x6849f6(0x1c8)])!=null?_0x1d84cc:{'actions':null},_0x6cb9b9=_0x3d6063[_0x6849f6(0x1c8)];if(_0xe47810&&_0xe47810!==_0x43bb00)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0xe47810+_0x6849f6(0x2b3)+_0x43bb00+'.');return{..._0x34db57,'id':_0x43bb00,'type':_0x1437bf,'params':{'unitId':_0x6cb9b9['unitId'],'textRanges':_0x6cb9b9[_0x6849f6(0x302)],'actions':_0xe185f6['compose'](_0x56de3b[_0x6849f6(0x19c)],_0x6cb9b9[_0x6849f6(0x19c)])}};},{})],_0x4fefa4=(_0x2f2171=(_0x266713=_0x59ba1d[_0x230af8(0x328)]())==null?void 0x0:_0x266713[_0x230af8(0x1ea)])!=null?_0x2f2171:_0x230af8(0x1ed),_0x5af5b4=(_0x1a8523=(_0x464a27=_0x59ba1d[_0x230af8(0x328)]())==null?void 0x0:_0x464a27[_0x230af8(0x2ae)])!=null?_0x1a8523:'unknown';return{'changeset':{'unitID':_0x2058c8,'type':_0x23bb45(_0x2b750a[_0x230af8(0x3b6)](_0x2058c8)),'baseRev':_0x537a1a[_0x230af8(0x2f1)](_0x2058c8),'revision':0x0,'userID':_0x4fefa4,'memberID':_0x5af5b4,'mutations':_0x28b895},'pendingMutations':[]};}var Fn=Object[_0x51fc53(0x18f)],Bn=Object[_0x51fc53(0x340)],ne=(_0x409c80,_0x4ba946,_0x46bbc2,_0x393195)=>{for(var _0x13b711=_0x393195>0x1?void 0x0:_0x393195?Bn(_0x4ba946,_0x46bbc2):_0x4ba946,_0xdf54a3=_0x409c80['length']-0x1,_0x456d6f;_0xdf54a3>=0x0;_0xdf54a3--)(_0x456d6f=_0x409c80[_0xdf54a3])&&(_0x13b711=(_0x393195?_0x456d6f(_0x4ba946,_0x46bbc2,_0x13b711):_0x456d6f(_0x13b711))||_0x13b711);return _0x393195&&_0x13b711&&Fn(_0x4ba946,_0x46bbc2,_0x13b711),_0x13b711;},g=(_0x4c5a63,_0x260f70)=>(_0x4485f3,_0x382513)=>_0x260f70(_0x4485f3,_0x382513,_0x4c5a63),P=(_0x18d067=>(_0x18d067[_0x51fc53(0xeb)]=_0x51fc53(0x20a),_0x18d067[_0x51fc53(0xe4)]=_0x51fc53(0x388),_0x18d067['PENDING']=_0x51fc53(0xdd),_0x18d067[_0x51fc53(0x180)]=_0x51fc53(0x361),_0x18d067[_0x51fc53(0x1a2)]='awaiting_with_pending',_0x18d067['FETCH_MISS']=_0x51fc53(0x143),_0x18d067[_0x51fc53(0x20f)]=_0x51fc53(0xcb),_0x18d067[_0x51fc53(0x319)]='offline',_0x18d067))(P||{});class re{constructor(_0x766915,_0x1b62cd,_0x583917,_0x2b9efc,_0x29b4b6,_0x147355,_0x3e3169,_0x4b6189,_0x6fb4ab){const _0x3ad224=_0x51fc53;l(this,_0x3ad224(0x393),null),l(this,_0x3ad224(0x1e4),[]),(this[_0x3ad224(0x1b1)]=_0x766915,this[_0x3ad224(0x2cd)]=_0x1b62cd,this[_0x3ad224(0x310)]=_0x29b4b6,this[_0x3ad224(0x113)]=_0x147355,this[_0x3ad224(0x1bc)]=_0x3e3169,this[_0x3ad224(0x2f2)]=_0x4b6189,this[_0x3ad224(0x284)]=_0x6fb4ab,this[_0x3ad224(0x393)]=_0x583917,this[_0x3ad224(0x1e4)]=_0x2b9efc);}[_0x51fc53(0x1e8)](_0x53440a){const _0x254257=_0x51fc53,_0x204f8c=this[_0x254257(0x2f2)][_0x254257(0x2f1)](this['unitID']);return _0x53440a[_0x254257(0xaf)]>_0x204f8c+0x1?(this[_0x254257(0x310)][_0x254257(0x12d)]({'from':_0x204f8c,'to':_0x53440a[_0x254257(0xaf)]-0x1}),!0x0):!0x1;}[_0x51fc53(0x243)](_0x16ef5b){const _0x121481=_0x51fc53;this[_0x121481(0x1bc)]['transformUndoRedo'](this['unitID'],_0x16ef5b);}[_0x51fc53(0x2f8)](_0x785818){const _0x36107a=_0x51fc53;var _0x2ea8b8,_0x2b62e0;(_0x2b62e0=(_0x2ea8b8=this['_handler'])[_0x36107a(0x2ef)])==null||_0x2b62e0[_0x36107a(0x185)](_0x2ea8b8,_0x785818);}[_0x51fc53(0x1be)](_0xe0237b){const _0x1d1269=_0x51fc53;var _0xd9f6a3,_0x265bdc;return(_0x265bdc=(_0xd9f6a3=this[_0x1d1269(0x310)])[_0x1d1269(0x370)])==null?void 0x0:_0x265bdc[_0x1d1269(0x185)](_0xd9f6a3,_0xe0237b);}['_transformRemoteChangesetByIMECache'](_0xfe9400){const _0x12a99b=_0x51fc53;var _0x36a775,_0x2b5588,_0x39c9dd;return(_0x39c9dd=(_0x2b5588=(_0x36a775=this[_0x12a99b(0x310)])[_0x12a99b(0x314)])==null?void 0x0:_0x2b5588[_0x12a99b(0x185)](_0x36a775,_0xfe9400))!=null?_0x39c9dd:_0xfe9400;}[_0x51fc53(0x16d)](_0x54c5c4){const _0xb3eeee=_0x51fc53;var _0x1bdc49,_0xba77b0;if(this[_0xb3eeee(0x2cd)]===H[_0xb3eeee(0x32c)]){const {unitID:_0x3b9d97,mutations:_0x54aa5e,memberID:_0x30db9b}=_0x54c5c4,_0x26dffc=_0x54aa5e[0x0][_0xb3eeee(0x1c8)][_0xb3eeee(0x302)];Array['isArray'](_0x26dffc)&&_0x26dffc[_0xb3eeee(0x2c6)]>0x0&&((_0xba77b0=(_0x1bdc49=this['_handler'])[_0xb3eeee(0x126)])==null||_0xba77b0[_0xb3eeee(0x185)](_0x1bdc49,{'unitID':_0x3b9d97,'memberID':_0x30db9b,'textRanges':_0x26dffc}));}}[_0x51fc53(0x303)](){const _0x4716e2=_0x51fc53;this[_0x4716e2(0x284)][_0x4716e2(0x256)](this['unitID'],this[_0x4716e2(0x2cd)],this['_awaitingChangeset'],this['_pendingMutations']);}[_0x51fc53(0x161)](){const _0xf35fa8=_0x51fc53;return this[_0xf35fa8(0x2f2)]['getCurrentRevForDocument'](this[_0xf35fa8(0x1b1)]);}[_0x51fc53(0x3a5)](){const _0x154262=_0x51fc53;this[_0x154262(0x2f2)][_0x154262(0x358)](this[_0x154262(0x1b1)]);}['_executeRemoteChangeset'](_0x365ec3){const _0x14c38=_0x51fc53;var _0x446ce8;const _0xbb0777=this[_0x14c38(0x352)](_0x365ec3),_0x213e31=_0x4bf5fd(_0xbb0777[_0x14c38(0xc7)],this[_0x14c38(0x113)],{'fromCollab':!0x0});if(!_0x213e31['result'])throw _0x213e31[_0x14c38(0x24d)]instanceof Error?_0x213e31[_0x14c38(0x24d)]:new Error((_0x446ce8=_0x213e31[_0x14c38(0x24d)])!=null?_0x446ce8:_0x14c38(0x296));this[_0x14c38(0x1be)](_0xbb0777),this['_transformUndoredo'](_0x365ec3),this[_0x14c38(0x2f8)](_0xbb0777),this[_0x14c38(0x16d)](_0xbb0777),this[_0x14c38(0x3a5)]();}}let Te=class extends re{constructor(_0x42391d,_0x1cb562,_0x2abd49,_0x203f07,_0x4b67f0,_0x38b59b,_0x593d29,_0x12b8a5,_0x11bb7d){const _0x2c2323=_0x51fc53;super(_0x42391d,_0x1cb562,null,[],_0x2abd49,_0x12b8a5,_0x593d29,_0x203f07,_0x4b67f0),l(this,_0x2c2323(0x253),_0x2c2323(0x388)),(this[_0x2c2323(0x342)]=_0x38b59b,this[_0x2c2323(0x37c)]=_0x11bb7d);}['appendMutation'](_0x48c299){const _0x36d2c7=_0x51fc53,_0x39fdea=this[_0x36d2c7(0x342)][_0x36d2c7(0x3ba)](k,this['unitID'],this[_0x36d2c7(0x2cd)],[_0x48c299],this['_handler']);return _0x39fdea[_0x36d2c7(0x158)](),_0x39fdea[_0x36d2c7(0x303)](),_0x39fdea;}[_0x51fc53(0x379)](_0x5d0ebc){const _0x196053=_0x51fc53;if(this['_checkMissing'](_0x5d0ebc))return this[_0x196053(0x342)][_0x196053(0x3ba)](W,this[_0x196053(0x1b1)],this[_0x196053(0x2cd)],null,[],null,[_0x5d0ebc],this[_0x196053(0x310)]);try{return this['_executeRemoteChangeset'](_0x5d0ebc),this;}catch(_0x4db34e){return this[_0x196053(0x37c)]['error'](_0x196053(0x32e),_0x4db34e),this;}}[_0x51fc53(0x2a6)](){const _0x104c09=_0x51fc53;throw new Error(_0x104c09(0x9a));}[_0x51fc53(0x1ca)](){const _0x12f907=_0x51fc53;throw new Error(_0x12f907(0x2c1));}['toggleOffline'](){const _0xcb96b0=_0x51fc53;return this['_injector'][_0xcb96b0(0x3ba)](J,this[_0xcb96b0(0x1b1)],this[_0xcb96b0(0x2cd)],null,[],this['_handler']);}[_0x51fc53(0x338)](){return this;}[_0x51fc53(0x197)](){const _0x48711b=_0x51fc53;throw new Error(_0x48711b(0x3bb));}};Te=ne([g(0x3,_0x4a7404(_0x4d36b1)),g(0x4,_0x4a7404(D)),g(0x5,_0x4a7404(_0x44b6b8)),g(0x6,_0x5815e0),g(0x7,_0x568418),g(0x8,_0x3cb271)],Te);let k=class extends re{constructor(_0x17461f,_0x4eb8d0,_0x268498,_0x4baa6c,_0x5ecb8d,_0x3930bc,_0x4c3dfa,_0x215338,_0x4d1a2b,_0x3e5f2a,_0x10b2af,_0x347cd7,_0x37f11c,_0x1e36ea){const _0x1f76dc=_0x51fc53;super(_0x17461f,_0x4eb8d0,null,_0x268498,_0x4baa6c,_0x3e5f2a,_0x1e36ea,_0x3930bc,_0x4c3dfa),l(this,'status',_0x1f76dc(0xdd)),l(this,_0x1f76dc(0xca),null),l(this,_0x1f76dc(0x90),null),(this[_0x1f76dc(0x342)]=_0x5ecb8d,this['_memberService']=_0x215338,this['_logService']=_0x4d1a2b,this['_configService']=_0x10b2af,this[_0x1f76dc(0x102)]=_0x347cd7,this[_0x1f76dc(0xa0)]=_0x37f11c);}[_0x51fc53(0x347)](_0x392744){const _0x56620a=_0x51fc53;return this[_0x56620a(0x1e4)]['push'](_0x392744),this[_0x56620a(0x303)](),this;}[_0x51fc53(0x379)](_0x1aa55d){const _0x2cd8bb=_0x51fc53;if(this['_checkMissing'](_0x1aa55d))return this[_0x2cd8bb(0x16f)](),this[_0x2cd8bb(0x342)][_0x2cd8bb(0x3ba)](W,this[_0x2cd8bb(0x1b1)],this[_0x2cd8bb(0x2cd)],null,this['_pendingMutations'],null,[_0x1aa55d],this[_0x2cd8bb(0x310)]);try{const _0x2fb56d=this['_transformService'][_0x2cd8bb(0x3bd)](_0x1aa55d,this['_pendingMutations']);if(_0x5a8972(_0x2fb56d)){const {c1Prime:_0x2c0285,m2Prime:_0xbc9b44}=_0x2fb56d;this[_0x2cd8bb(0x83)](_0x2c0285);const _0x19731f=this[_0x2cd8bb(0x342)][_0x2cd8bb(0x3ba)](k,this['unitID'],this[_0x2cd8bb(0x2cd)],_0xbc9b44,this['_handler']);return this[_0x2cd8bb(0x16f)](),_0x19731f[_0x2cd8bb(0x158)](this[_0x2cd8bb(0xca)]?Math[_0x2cd8bb(0x216)](0x0,new Date()[_0x2cd8bb(0x15d)]()-this[_0x2cd8bb(0xca)]):this[_0x2cd8bb(0x2c0)]()),_0x19731f;}throw _0x2fb56d[_0x2cd8bb(0x24d)];}catch(_0x458c51){return this[_0x2cd8bb(0x37c)][_0x2cd8bb(0x24d)](_0x458c51),this[_0x2cd8bb(0x31c)](!0x1);}}['onRemoteAck'](){const _0x333574=_0x51fc53;throw new Error(_0x333574(0x382));}['onRemoteRej'](){const _0x3058e1=_0x51fc53;throw new Error(_0x3058e1(0xe3));}[_0x51fc53(0x178)](){const _0x2b9f7a=_0x51fc53;return this[_0x2b9f7a(0x16f)](),this[_0x2b9f7a(0x342)][_0x2b9f7a(0x3ba)](J,this[_0x2b9f7a(0x1b1)],this[_0x2b9f7a(0x2cd)],null,this[_0x2b9f7a(0x1e4)],this['_handler']);}[_0x51fc53(0x338)](){return this;}[_0x51fc53(0x158)](_0x3b95f9){const _0x58ae07=_0x51fc53;_0x3b95f9=_0x3b95f9!=null?_0x3b95f9:this['_getSendChangesetTimeout'](),this[_0x58ae07(0xca)]=new Date()[_0x58ae07(0x15d)](),this[_0x58ae07(0x90)]=setTimeout(()=>{const _0x15fc1b=_0x58ae07;this['_clearScheduledTask']();let _0x3d5bac=null;switch(this['type']){case H[_0x15fc1b(0x351)]:{_0x3d5bac=Hn(this[_0x15fc1b(0x1e4)],this['unitID'],this[_0x15fc1b(0xa0)],this[_0x15fc1b(0x2f2)],this[_0x15fc1b(0x12b)]);break;}case H[_0x15fc1b(0x32c)]:{_0x3d5bac=xn(this[_0x15fc1b(0x1e4)],this[_0x15fc1b(0x1b1)],this[_0x15fc1b(0xa0)],this[_0x15fc1b(0x2f2)],this['_memberService']);break;}default:throw new Error(_0x15fc1b(0x131)+this[_0x15fc1b(0x2cd)]+'\x20in\x20_schedule.');}const {changeset:_0x50ffe0,pendingMutations:_0x25c013}=_0x3d5bac;this[_0x15fc1b(0x310)][_0x15fc1b(0x36c)](_0x50ffe0);const _0x55a26d=_0x25c013[_0x15fc1b(0x2c6)]?this['_injector'][_0x15fc1b(0x3ba)](V,this[_0x15fc1b(0x1b1)],this['type'],_0x50ffe0,_0x25c013,this['_handler']):this['_injector'][_0x15fc1b(0x3ba)](X,this[_0x15fc1b(0x1b1)],this['type'],_0x50ffe0,this[_0x15fc1b(0x310)]);_0x55a26d[_0x15fc1b(0x303)](),this[_0x15fc1b(0x310)][_0x15fc1b(0x356)](this,_0x55a26d);},_0x3b95f9);}[_0x51fc53(0x2c0)](){const _0x5f4ff9=_0x51fc53;var _0x42de14;return(_0x42de14=this[_0x5f4ff9(0x2c4)][_0x5f4ff9(0xf0)](Xi))!=null?_0x42de14:Ji;}['resend'](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x51fc53(0x16f)](){const _0x3d9928=_0x51fc53;this[_0x3d9928(0x90)]!=null&&(clearTimeout(this['_sendingTimer']),this['_sendingTimer']=null);}[_0x51fc53(0x31c)](_0x3bce27){const _0x5281db=_0x51fc53;return this[_0x5281db(0x16f)](),this[_0x5281db(0x342)]['createInstance'](te,this[_0x5281db(0x1b1)],this[_0x5281db(0x2cd)],null,this[_0x5281db(0x1e4)],this['_handler'],_0x3bce27);}};k=ne([g(0x4,_0x4a7404(_0x44b6b8)),g(0x5,_0x4a7404(_0x4d36b1)),g(0x6,_0x4a7404(D)),g(0x7,_0x4a7404(ee)),g(0x8,_0x3cb271),g(0x9,_0x568418),g(0xa,_0x5977ca),g(0xb,_0x425e9b),g(0xc,_0x373907),g(0xd,_0x5815e0)],k);let X=class extends re{constructor(_0x43166f,_0x4e937d,_0x4a67cd,_0x38aaac,_0x45dd49,_0xaf4e62,_0x2cdb63,_0x126f63,_0x2df3db,_0x215e17,_0x25805b){const _0x4853c8=_0x51fc53;super(_0x43166f,_0x4e937d,_0x4a67cd,[],_0x38aaac,_0x126f63,_0x25805b,_0xaf4e62,_0x2cdb63),l(this,'status',_0x4853c8(0x361)),(this['_injector']=_0x45dd49,this[_0x4853c8(0x37c)]=_0x2df3db,this['_transformService']=_0x215e17);}['appendMutation'](_0x65515c){const _0x452c1c=_0x51fc53,_0x2b1ab7=this[_0x452c1c(0x342)][_0x452c1c(0x3ba)](V,this['unitID'],this['type'],this[_0x452c1c(0x393)],[_0x65515c],this[_0x452c1c(0x310)]);return _0x2b1ab7[_0x452c1c(0x303)](),_0x2b1ab7;}['onRemoteChangeset'](_0x1dfbf0){const _0x48355b=_0x51fc53;if(this[_0x48355b(0x1e8)](_0x1dfbf0))return this[_0x48355b(0x342)][_0x48355b(0x3ba)](W,this['unitID'],this[_0x48355b(0x2cd)],this[_0x48355b(0x393)],[],null,[_0x1dfbf0],this[_0x48355b(0x310)]);try{const _0x5c6b68=this[_0x48355b(0x102)]['transformChangesets']([_0x1dfbf0],[this['_awaitingChangeset']],!0x1);if(_0x4b3216(_0x5c6b68)){const {c1Prime:_0x427238,c2Prime:_0x3f66ef}=_0x5c6b68;this[_0x48355b(0x83)](_0x427238[0x0]),_0x3f66ef[0x0][_0x48355b(0x306)]=this[_0x48355b(0x161)]();const _0x184ed8=this[_0x48355b(0x342)][_0x48355b(0x3ba)](X,this['unitID'],this[_0x48355b(0x2cd)],_0x3f66ef[0x0],this[_0x48355b(0x310)]);return _0x184ed8[_0x48355b(0x303)](),_0x184ed8;}return this[_0x48355b(0x31c)](!0x1);}catch(_0x5645b7){return this[_0x48355b(0x37c)][_0x48355b(0x24d)](_0x5645b7),this[_0x48355b(0x31c)](!0x1);}}[_0x51fc53(0x2a6)](_0x180d91){const _0x152522=_0x51fc53,_0x25b94e=this[_0x152522(0x2f2)]['getCurrentRevForDocument'](this[_0x152522(0x1b1)]);if(_0x180d91[_0x152522(0xaf)]<_0x25b94e-0x1)return this;if(this[_0x152522(0x1e8)](_0x180d91))return this[_0x152522(0x342)][_0x152522(0x3ba)](W,this['unitID'],this[_0x152522(0x2cd)],null,[],this[_0x152522(0x393)],[],this[_0x152522(0x310)]);this[_0x152522(0x3a5)]();const _0x5ace1e=this['_injector'][_0x152522(0x3ba)](Te,this[_0x152522(0x1b1)],this['type'],this[_0x152522(0x310)]);return _0x5ace1e[_0x152522(0x303)](),_0x5ace1e;}[_0x51fc53(0x1ca)](_0x5aa84f){const _0xf9b54f=_0x51fc53;return this['_onConflict'](!!(_0x5aa84f!=null&&_0x5aa84f[_0xf9b54f(0x2d5)]));}[_0x51fc53(0x178)](){const _0x3de89e=_0x51fc53;return this[_0x3de89e(0x342)][_0x3de89e(0x3ba)](J,this[_0x3de89e(0x1b1)],this['type'],this[_0x3de89e(0x393)],[],this[_0x3de89e(0x310)]);}[_0x51fc53(0x338)](){return this;}['resend'](){const _0x3cd03a=_0x51fc53;this[_0x3cd03a(0x310)][_0x3cd03a(0x36c)](this[_0x3cd03a(0x393)]);}['_onConflict'](_0x261c93){const _0x411518=_0x51fc53;return this[_0x411518(0x342)]['createInstance'](te,this['unitID'],this[_0x411518(0x2cd)],this['_awaitingChangeset'],[],this[_0x411518(0x310)],_0x261c93);}};X=ne([g(0x4,_0x4a7404(_0x44b6b8)),g(0x5,_0x4a7404(_0x4d36b1)),g(0x6,_0x4a7404(D)),g(0x7,_0x568418),g(0x8,_0x3cb271),g(0x9,_0x425e9b),g(0xa,_0x5815e0)],X);let V=class extends re{constructor(_0x33b412,_0x5771d4,_0x579b7f,_0x1ed133,_0x2dc007,_0x2ebab4,_0x498cdc,_0x395e61,_0x254117,_0xa54aa2,_0x4f6574,_0x3ebfc8){const _0x3eec32=_0x51fc53;super(_0x33b412,_0x5771d4,_0x579b7f,_0x1ed133,_0x2dc007,_0x254117,_0x3ebfc8,_0x498cdc,_0x395e61),l(this,_0x3eec32(0x253),_0x3eec32(0xb5)),(this[_0x3eec32(0x342)]=_0x2ebab4,this['_logService']=_0xa54aa2,this['_transformService']=_0x4f6574);}[_0x51fc53(0x347)](_0x2de94b){const _0x4603aa=_0x51fc53;return this[_0x4603aa(0x1e4)]['push'](_0x2de94b),this;}['onRemoteChangeset'](_0x491296){const _0x3da192=_0x51fc53;if(this[_0x3da192(0x1e8)](_0x491296))return this[_0x3da192(0x342)][_0x3da192(0x3ba)](W,this[_0x3da192(0x1b1)],this[_0x3da192(0x2cd)],this['_awaitingChangeset'],this[_0x3da192(0x1e4)],null,[_0x491296],this[_0x3da192(0x310)]);try{const _0x569b49=this[_0x3da192(0x102)][_0x3da192(0x21c)]([_0x491296],[this['_awaitingChangeset']],!0x1);if(_0x4b3216(_0x569b49)){const {c1Prime:_0x2d71ba,c2Prime:_0x20c268}=_0x569b49,_0x1772d9=this[_0x3da192(0x102)][_0x3da192(0x3bd)](_0x2d71ba[0x0],this[_0x3da192(0x1e4)]);if(_0x5a8972(_0x1772d9)){const {c1Prime:_0x494a5c,m2Prime:_0xd8e518}=_0x1772d9;return this[_0x3da192(0x83)](_0x494a5c),_0x20c268[0x0][_0x3da192(0x306)]=this[_0x3da192(0x161)](),this[_0x3da192(0x342)][_0x3da192(0x3ba)](V,this[_0x3da192(0x1b1)],this[_0x3da192(0x2cd)],_0x20c268[0x0],_0xd8e518,this[_0x3da192(0x310)]);}throw _0x1772d9[_0x3da192(0x24d)];}throw _0x569b49['error'];}catch(_0x3035b5){return this[_0x3da192(0x37c)][_0x3da192(0x24d)](_0x3035b5),this[_0x3da192(0x31c)](!0x1);}}[_0x51fc53(0x2a6)](_0x2ca0d1){const _0x1e878f=_0x51fc53;if(this[_0x1e878f(0x1e8)](_0x2ca0d1))return this[_0x1e878f(0x342)][_0x1e878f(0x3ba)](W,this[_0x1e878f(0x1b1)],this[_0x1e878f(0x2cd)],null,this[_0x1e878f(0x1e4)],this[_0x1e878f(0x393)],[],this['_handler']);this[_0x1e878f(0x3a5)]();const _0x39845d=this[_0x1e878f(0x342)][_0x1e878f(0x3ba)](k,this[_0x1e878f(0x1b1)],this['type'],this[_0x1e878f(0x1e4)],this['_handler']);return _0x39845d[_0x1e878f(0x158)](),_0x39845d[_0x1e878f(0x303)](),_0x39845d;}[_0x51fc53(0x1ca)](_0x3a499c){const _0x22fa60=_0x51fc53;return this['_onConflict'](!!(_0x3a499c!=null&&_0x3a499c[_0x22fa60(0x2d5)]));}[_0x51fc53(0x178)](){const _0x425e3c=_0x51fc53;return this['_injector'][_0x425e3c(0x3ba)](J,this[_0x425e3c(0x1b1)],this[_0x425e3c(0x2cd)],this[_0x425e3c(0x393)],this[_0x425e3c(0x1e4)],this['_handler']);}[_0x51fc53(0x338)](){return this;}[_0x51fc53(0x197)](){const _0x3075f3=_0x51fc53;this[_0x3075f3(0x310)][_0x3075f3(0x36c)](this[_0x3075f3(0x393)]);}[_0x51fc53(0x31c)](_0x3cd73e){const _0xe7b5a4=_0x51fc53;return this[_0xe7b5a4(0x342)][_0xe7b5a4(0x3ba)](te,this[_0xe7b5a4(0x1b1)],this[_0xe7b5a4(0x2cd)],null,this['_pendingMutations'],this[_0xe7b5a4(0x310)],_0x3cd73e);}};V=ne([g(0x5,_0x4a7404(_0x44b6b8)),g(0x6,_0x4a7404(_0x4d36b1)),g(0x7,_0x4a7404(D)),g(0x8,_0x568418),g(0x9,_0x3cb271),g(0xa,_0x425e9b),g(0xb,_0x5815e0)],V);let te=class extends re{constructor(_0x5b9f1e,_0x1b45eb,_0x37e8d7,_0x4c5b9d,_0x1c68f8,_0x1a9594=!0x1,_0x3e27c5,_0x2eadc2,_0xd06a45,_0x422384,_0x40aaf2,_0x4e73a7,_0x40ecac){const _0x7fe423=_0x51fc53;super(_0x5b9f1e,_0x1b45eb,_0x37e8d7,_0x4c5b9d,_0x1c68f8,_0x2eadc2,_0xd06a45,_0x40aaf2,_0x422384),l(this,'status',_0x7fe423(0xcb)),(this[_0x7fe423(0x293)]=_0x1a9594,this[_0x7fe423(0xa5)]=_0x3e27c5,this[_0x7fe423(0x344)]=_0x4e73a7,this[_0x7fe423(0x2e1)]=_0x40ecac,this['_showConflictNotification'](),this[_0x7fe423(0x95)](),this[_0x7fe423(0x309)]());}[_0x51fc53(0x347)](){return this;}[_0x51fc53(0x379)](){return this;}[_0x51fc53(0x2a6)](){return this;}[_0x51fc53(0x1ca)](){return this;}[_0x51fc53(0x178)](){return this;}[_0x51fc53(0x338)](){return this;}['resend'](){const _0x545401=_0x51fc53;throw new Error(_0x545401(0xf8));}[_0x51fc53(0x95)](){const _0x5e14ef=_0x51fc53;this[_0x5e14ef(0x284)][_0x5e14ef(0x256)](this[_0x5e14ef(0x1b1)],this[_0x5e14ef(0x2cd)],null,[]);}['_showConflictNotification'](){const _0x35e70a=_0x51fc53;this[_0x35e70a(0x293)]?this[_0x35e70a(0x2e1)][_0x35e70a(0x25c)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x35e70a(0x344)]['t'](_0x35e70a(0x272)),'type':_0x35e70a(0x24d),'duration':0x0}):this['_notificationService'][_0x35e70a(0x25c)]({'title':this[_0x35e70a(0x344)]['t'](_0x35e70a(0x2e4)),'content':this['_localeService']['t'](_0x35e70a(0x257)),'type':_0x35e70a(0x24d),'duration':0x0});}[_0x51fc53(0x309)](){const _0x248c15=_0x51fc53;this[_0x248c15(0xa5)][_0x248c15(0x1f6)](new _0x4b6c4e(this['unitID'])['id'],!0x1);}};te=ne([g(0x6,_0x4a7404(_0x57bd86)),g(0x7,_0x568418),g(0x8,_0x5815e0),g(0x9,_0x4a7404(D)),g(0xa,_0x4a7404(_0x4d36b1)),g(0xb,_0x4a7404(_0x201091)),g(0xc,_0x3c139b)],te);let J=class extends re{constructor(_0xac715,_0x47b453,_0xd77c4,_0x1c581c,_0x221ccb,_0x1518bb,_0x4fb248,_0x554b18,_0x5a8840,_0x3759b0){const _0x29739c=_0x51fc53;super(_0xac715,_0x47b453,_0xd77c4,_0x1c581c,_0x221ccb,_0x5a8840,_0x3759b0,_0x4fb248,_0x554b18),l(this,'status',_0x29739c(0x2fb)),this[_0x29739c(0x342)]=_0x1518bb;}['appendMutation'](_0x244ca9){const _0x162fd1=_0x51fc53;return this[_0x162fd1(0x1e4)][_0x162fd1(0x19d)](_0x244ca9),this[_0x162fd1(0x303)](),this;}[_0x51fc53(0x379)](_0x47beee){const _0x1814be=_0x51fc53;throw new Error(_0x1814be(0xf7));}[_0x51fc53(0x2a6)](){const _0x1d3ac0=_0x51fc53;throw new Error(_0x1d3ac0(0x134));}[_0x51fc53(0x1ca)](){const _0x46fe7c=_0x51fc53;throw new Error(_0x46fe7c(0x1aa));}['toggleOffline'](){return this;}[_0x51fc53(0x338)](){const _0x390e97=_0x51fc53,{_injector:_0x52b0c4,_pendingMutations:_0x25072b,_awaitingChangeset:_0x20455e,unitID:_0x5e8d03,_handler:_0xbd0199,type:_0x5ad599}=this,_0x44c8cb=ws(_0x52b0c4,_0x5e8d03,_0x5ad599,_0x20455e,_0x25072b,_0xbd0199);return _0x44c8cb instanceof k?_0x44c8cb[_0x390e97(0x158)]():(_0x44c8cb instanceof V||_0x44c8cb instanceof X)&&_0x44c8cb[_0x390e97(0x197)](),_0x44c8cb;}[_0x51fc53(0x197)](){const _0x242e90=_0x51fc53;throw new Error(_0x242e90(0x224));}};J=ne([g(0x5,_0x4a7404(_0x44b6b8)),g(0x6,_0x4a7404(_0x4d36b1)),g(0x7,_0x4a7404(D)),g(0x8,_0x568418),g(0x9,_0x5815e0)],J);let W=class extends re{constructor(_0x1712b8,_0x1b284e,_0x51cc49,_0x329fe8,_0xd04850,_0x8299f6,_0x408a19,_0x31b5c3,_0x4b53de,_0x31531,_0x57d064,_0x26e2d8,_0x2d1b51,_0x2782a1){const _0x1561fe=_0x51fc53;super(_0x1712b8,_0x1b284e,_0x51cc49,_0x329fe8,_0x408a19,_0x26e2d8,_0x2d1b51,_0x4b53de,_0x31531),l(this,'status',_0x1561fe(0x143)),(this[_0x1561fe(0x373)]=_0xd04850,this[_0x1561fe(0x38e)]=_0x8299f6,this[_0x1561fe(0x342)]=_0x31b5c3,this['_logService']=_0x57d064,this[_0x1561fe(0x102)]=_0x2782a1);}['onMissedChangesetFetched'](_0x5bbeb1){const _0x22323b=_0x51fc53;try{const _0x3d10ec=[..._0x5bbeb1,...this[_0x22323b(0x38e)]],_0x1b4607=[this[_0x22323b(0x393)]||this['_acknowledgedAwaitingChangeset']][_0x22323b(0x205)](_0x527786=>!!_0x527786);let _0x3b29cf,_0x144527;if(_0x1b4607[_0x22323b(0x2c6)]){const _0x5089ce=this[_0x22323b(0x102)][_0x22323b(0x21c)](_0x3d10ec,_0x1b4607,!0x1);if(!_0x4b3216(_0x5089ce))throw _0x5089ce['error'];_0x3b29cf=_0x5089ce[_0x22323b(0x3ab)],_0x144527=_0x5089ce['c2Prime'];}else _0x3b29cf=_0x3d10ec,_0x144527=[];let _0x19631a=this['_pendingMutations'];_0x3b29cf[_0x22323b(0x124)](_0x434f8f=>{const _0x420857=_0x22323b;let _0x5a7696;if(_0x19631a[_0x420857(0x2c6)]){const _0x5d312c=this[_0x420857(0x102)][_0x420857(0x3bd)](_0x434f8f,_0x19631a);if(!_0x5a8972(_0x5d312c))throw _0x5d312c[_0x420857(0x24d)];_0x5a7696=_0x5d312c[_0x420857(0x3ab)],_0x19631a=_0x5d312c[_0x420857(0x30f)];}else _0x5a7696=_0x434f8f;this[_0x420857(0x83)](_0x5a7696);}),this[_0x22323b(0x373)]&&this[_0x22323b(0x3a5)](),this[_0x22323b(0x393)]&&_0x144527[_0x22323b(0x2c6)]&&(_0x144527[0x0][_0x22323b(0x306)]=this['_getCurrentRevision']());let _0x34f724;if(this[_0x22323b(0x393)]&&_0x19631a['length']!==0x0)_0x34f724=this[_0x22323b(0x342)][_0x22323b(0x3ba)](V,this[_0x22323b(0x1b1)],this[_0x22323b(0x2cd)],_0x144527[0x0],_0x19631a,this[_0x22323b(0x310)]);else{if(this['_awaitingChangeset']&&_0x19631a[_0x22323b(0x2c6)]===0x0)_0x144527[0x0][_0x22323b(0x306)]=this['_getCurrentRevision'](),_0x34f724=this[_0x22323b(0x342)][_0x22323b(0x3ba)](X,this[_0x22323b(0x1b1)],this[_0x22323b(0x2cd)],_0x144527[0x0],this[_0x22323b(0x310)]);else{if(_0x19631a[_0x22323b(0x2c6)]!==0x0){const _0xe94e8=this[_0x22323b(0x342)][_0x22323b(0x3ba)](k,this[_0x22323b(0x1b1)],this['type'],_0x19631a,this['_handler']);_0xe94e8[_0x22323b(0x158)](),_0x34f724=_0xe94e8;}else _0x34f724=this[_0x22323b(0x342)]['createInstance'](Te,this[_0x22323b(0x1b1)],this[_0x22323b(0x2cd)],this[_0x22323b(0x310)]);}}return _0x34f724[_0x22323b(0x303)](),_0x34f724;}catch(_0x5626cd){return this[_0x22323b(0x37c)][_0x22323b(0x24d)](_0x22323b(0x38d),_0x22323b(0x337),_0x5626cd),this[_0x22323b(0x342)][_0x22323b(0x3ba)](te,this['unitID'],this[_0x22323b(0x2cd)],this[_0x22323b(0x393)],this[_0x22323b(0x1e4)],this[_0x22323b(0x310)],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x395d60){const _0x460094=_0x51fc53;return this[_0x460094(0x1e4)][_0x460094(0x19d)](_0x395d60),this;}[_0x51fc53(0x379)](_0x51730d){const _0x1d5ace=_0x51fc53;return this['_queuedRemoteChangesets'][_0x1d5ace(0x19d)](_0x51730d),this;}[_0x51fc53(0x2a6)](_0x386fb5){const _0x11de99=_0x51fc53;if(this[_0x11de99(0x393)])return this[_0x11de99(0x373)]=this['_awaitingChangeset'],this[_0x11de99(0x393)]=null,this;throw new Error(_0x11de99(0x2eb));}[_0x51fc53(0x1ca)](_0x3e24c6){const _0x51d9f6=_0x51fc53;return this[_0x51d9f6(0x31c)](!!(_0x3e24c6!=null&&_0x3e24c6['isPermissionRej']));}[_0x51fc53(0x178)](){const _0x3064d5=_0x51fc53;return this[_0x3064d5(0x342)][_0x3064d5(0x3ba)](J,this[_0x3064d5(0x1b1)],this['type'],this[_0x3064d5(0x393)],this[_0x3064d5(0x1e4)],this['_handler']);}[_0x51fc53(0x338)](){return this;}[_0x51fc53(0x31c)](_0x3bc574){const _0x4e9827=_0x51fc53;return this[_0x4e9827(0x342)]['createInstance'](te,this[_0x4e9827(0x1b1)],this[_0x4e9827(0x2cd)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler'],_0x3bc574);}};W=ne([g(0x7,_0x4a7404(_0x44b6b8)),g(0x8,_0x4a7404(_0x4d36b1)),g(0x9,_0x4a7404(D)),g(0xa,_0x3cb271),g(0xb,_0x568418),g(0xc,_0x5815e0),g(0xd,_0x425e9b)],W);function ws(_0x588fc4,_0x1b8dae,_0x538561,_0x1a292d,_0x552759,_0x54d676){const _0x1d0814=_0x51fc53;return _0x1a292d&&_0x552759[_0x1d0814(0x2c6)]?_0x588fc4[_0x1d0814(0x3ba)](V,_0x1b8dae,_0x538561,_0x1a292d,_0x552759,_0x54d676):_0x1a292d?_0x588fc4[_0x1d0814(0x3ba)](X,_0x1b8dae,_0x538561,_0x1a292d,_0x54d676):_0x552759[_0x1d0814(0x2c6)]?_0x588fc4['createInstance'](k,_0x1b8dae,_0x538561,_0x552759,_0x54d676):_0x588fc4[_0x1d0814(0x3ba)](Te,_0x1b8dae,_0x538561,_0x54d676);}var kn=Object[_0x51fc53(0x18f)],Vn=Object[_0x51fc53(0x340)],Je=(_0xcf5d72,_0x5f10c7,_0x2a3600,_0xd59185)=>{const _0x362a0f=_0x51fc53;for(var _0x418415=_0xd59185>0x1?void 0x0:_0xd59185?Vn(_0x5f10c7,_0x2a3600):_0x5f10c7,_0x1e804e=_0xcf5d72[_0x362a0f(0x2c6)]-0x1,_0x3c60fe;_0x1e804e>=0x0;_0x1e804e--)(_0x3c60fe=_0xcf5d72[_0x1e804e])&&(_0x418415=(_0xd59185?_0x3c60fe(_0x5f10c7,_0x2a3600,_0x418415):_0x3c60fe(_0x418415))||_0x418415);return _0xd59185&&_0x418415&&kn(_0x5f10c7,_0x2a3600,_0x418415),_0x418415;},S=(_0x54158f,_0x1ea78c)=>(_0x3a5bbe,_0x1b06f0)=>_0x1ea78c(_0x3a5bbe,_0x1b06f0,_0x54158f);let Ee=class extends _0x521c86{constructor(_0x4858bb,_0x136d11,_0x2d2c03){const _0x1515b7=_0x51fc53;super(),l(this,'_entities',new Map()),l(this,_0x1515b7(0x36b),new _0x5da41e()),(this[_0x1515b7(0x342)]=_0x4858bb,this[_0x1515b7(0x1b2)]=_0x136d11,this[_0x1515b7(0xa0)]=_0x2d2c03,this[_0x1515b7(0x380)]());}[_0x51fc53(0x232)](){const _0x625a8c=_0x51fc53;super[_0x625a8c(0x232)](),this[_0x625a8c(0x2a3)]['forEach'](_0xc7c1cc=>_0xc7c1cc['dispose']()),this['_entities'][_0x625a8c(0x362)]();}[_0x51fc53(0x179)](_0x1f1f5b){const _0x1cb938=_0x51fc53;var _0x276cde;return(_0x276cde=this[_0x1cb938(0x2a3)][_0x1cb938(0x151)](_0x1f1f5b))!=null?_0x276cde:null;}[_0x51fc53(0x3b0)](_0x317eec){const _0x2d9566=_0x51fc53,_0x5093cc=this[_0x2d9566(0x179)](_0x317eec);return _0x5093cc?_0xdadc8c(_0x5093cc):this['_entityInit$'][_0x2d9566(0x2c3)](_0x1b26e7(_0x20e91a=>_0x20e91a['unitID']===_0x317eec));}['_init'](){const _0x550356=_0x51fc53;this[_0x550356(0xa0)][_0x550356(0x26e)](_0x3504ec[_0x550356(0x351)])[_0x550356(0x2c3)](_0x1603a2(this['dispose$']),_0x54f844(0x10))[_0x550356(0x202)](async _0x5ca819=>{const _0x2d0389=_0x550356,_0x3fe74e=_0x5ca819['getUnitId'](),_0x3e7586=await this[_0x2d0389(0x223)](_0x3fe74e,H[_0x2d0389(0x351)]);this[_0x2d0389(0x2a3)][_0x2d0389(0x38f)](_0x3fe74e,_0x3e7586);}),this[_0x550356(0xa0)][_0x550356(0x26e)](_0x3504ec['UNIVER_DOC'])[_0x550356(0x2c3)](_0x1603a2(this[_0x550356(0x200)]),_0x54f844(0x10))[_0x550356(0x2c3)](_0x1b26e7(_0x1c26ff=>!_0x1c26ff[_0x550356(0x244)]()[_0x550356(0x30e)]('__')))[_0x550356(0x202)](async _0x4f0c16=>{const _0x3ea925=_0x550356,_0x3289bf=_0x4f0c16[_0x3ea925(0x244)](),_0x27b24c=await this[_0x3ea925(0x223)](_0x3289bf,H[_0x3ea925(0x32c)]);this[_0x3ea925(0x2a3)][_0x3ea925(0x38f)](_0x3289bf,_0x27b24c);}),_0x124107(this[_0x550356(0xa0)][_0x550356(0x280)](_0x3504ec[_0x550356(0x351)]),this[_0x550356(0xa0)][_0x550356(0x280)](_0x3504ec[_0x550356(0x32c)]))[_0x550356(0x2c3)](_0x1603a2(this['dispose$']))[_0x550356(0x202)](_0x436d46=>{const _0x29c6ea=_0x550356,_0x16eafd=_0x436d46[_0x29c6ea(0x244)](),_0x53d8f6=this[_0x29c6ea(0x2a3)]['get'](_0x16eafd);_0x53d8f6&&(_0x53d8f6[_0x29c6ea(0x232)](),this[_0x29c6ea(0x2a3)][_0x29c6ea(0x209)](_0x16eafd));});}async[_0x51fc53(0x223)](_0x4591bf,_0x2f97fe){const _0x44a542=_0x51fc53,_0x1a50f4=await this[_0x44a542(0x1b2)][_0x44a542(0x1ad)](_0x4591bf),_0x8aff8f=this[_0x44a542(0x342)][_0x44a542(0x3ba)](this[_0x44a542(0x148)](_0x2f97fe),_0x4591bf,_0x2f97fe,_0x1a50f4);return await _0x8aff8f['init'](),this[_0x44a542(0x36b)][_0x44a542(0x275)](_0x8aff8f),_0x8aff8f;}['_getCtorByUniverType'](_0x2723b6){const _0x43551e=_0x51fc53;switch(_0x2723b6){case H[_0x43551e(0x32c)]:return dt;case H['UNIVER_SHEET']:return ft;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x2723b6);}}};Ee=Je([_0x47ad3a(_0x34068b[_0x51fc53(0x11d)],Ee),S(0x0,_0x4a7404(_0x44b6b8)),S(0x1,_0x4a7404(Re)),S(0x2,_0x373907)],Ee);let We=class extends _0x521c86{constructor(_0x532bf4,_0x1c7be0,_0xea7505,_0x1b6bba,_0x46d0c1,_0x2dbdd7,_0x27152b,_0x529f52,_0x1089c5,_0x3f06b0,_0x5608a4,_0xf93f36,_0x166aa7){const _0xe23846=_0x51fc53;super(),l(this,'_state$',new _0x5d7d96(null)),l(this,_0xe23846(0x245),this[_0xe23846(0x331)]['asObservable']()),l(this,_0xe23846(0x173)),l(this,'_collaborationPaused',!0x1),l(this,_0xe23846(0x214),this[_0xe23846(0x245)][_0xe23846(0x2c3)](_0x1db2aa(_0x1b7339=>_0x1b7339?_0x1b7339[_0xe23846(0x253)]:P['OFFLINE']),_0x4b3c1f(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0xe23846(0x1de),[]),(this['unitID']=_0x532bf4,this['_type']=_0x1c7be0,this[_0xe23846(0x29c)]=_0xea7505,this[_0xe23846(0x342)]=_0x1b6bba,this[_0xe23846(0x284)]=_0x46d0c1,this[_0xe23846(0x13f)]=_0x2dbdd7,this[_0xe23846(0x344)]=_0x27152b,this[_0xe23846(0x2f2)]=_0x529f52,this[_0xe23846(0x37c)]=_0x1089c5,this[_0xe23846(0x113)]=_0x3f06b0,this[_0xe23846(0x383)]=_0x5608a4,this['_permissionService']=_0xf93f36,this[_0xe23846(0x109)]=_0x166aa7);}get[_0x51fc53(0x181)](){const _0x4b3df6=_0x51fc53;return this[_0x4b3df6(0x173)];}async[_0x51fc53(0x191)](){const _0x46ab6c=_0x51fc53;if(this['state'])throw new Error(_0x46ab6c(0x360));await this[_0x46ab6c(0x380)]();}[_0x51fc53(0x32a)](){return this['_collaborationPaused']=!0x0,_0x2f2f24(()=>{const _0x2b6eb2=_0x5e69;this[_0x2b6eb2(0x218)]=!0x1,this[_0x2b6eb2(0x133)]();});}[_0x51fc53(0x292)](_0x1bc89b){const _0x1ea275=_0x51fc53;this[_0x1ea275(0x173)]=_0x1bc89b,this['_state$'][_0x1ea275(0x275)](_0x1bc89b);}async['_init'](){const _0x3b9cb2=_0x51fc53;var _0x4dd910;return this[_0x3b9cb2(0x292)](await this[_0x3b9cb2(0x2b8)]()),this[_0x3b9cb2(0x109)]&&((_0x4dd910=this['_singleActiveUnitService'])==null||_0x4dd910[_0x3b9cb2(0x187)](this[_0x3b9cb2(0x1b1)]),this['disposeWithMe'](_0x2f2f24(this['_singleActiveUnitService'][_0x3b9cb2(0x1ee)](this['unitID'])['subscribe'](_0x5b00fa=>{const _0x39fb22=_0x3b9cb2;this[_0x39fb22(0x37c)][_0x39fb22(0x35e)](_0x39fb22(0x304),_0x39fb22(0x36e),_0x5b00fa),_0x5b00fa===Os[_0x39fb22(0x346)]?(this[_0x39fb22(0x383)][_0x39fb22(0x25c)]({'content':this['_localeService']['t'](_0x39fb22(0x210)),'type':_0x1587ba[_0x39fb22(0x10e)]}),this['_permissionService'][_0x39fb22(0x1f6)](new _0x4b6c4e(this[_0x39fb22(0x1b1)])['id'],!0x1)):this[_0x39fb22(0xa5)][_0x39fb22(0x1f6)](new _0x4b6c4e(this[_0x39fb22(0x1b1)])['id'],!0x0);})))),this[_0x3b9cb2(0x294)](_0x2f2f24(this[_0x3b9cb2(0x29c)][_0x3b9cb2(0x334)][_0x3b9cb2(0x202)](_0x2ed8f9=>{const _0x3b7be7=_0x3b9cb2;_0x2ed8f9===_e[_0x3b7be7(0x31f)]?this[_0x3b7be7(0x343)]():_0x2ed8f9===_e[_0x3b7be7(0x319)]&&this[_0x3b7be7(0xdb)]();}))),this[_0x3b9cb2(0x294)](_0x2f2f24(this[_0x3b9cb2(0x29c)]['event$'][_0x3b9cb2(0x202)](_0x10b7aa=>{const _0x1bd9e0=_0x3b9cb2;try{switch(_0x10b7aa[_0x1bd9e0(0x1ec)]){case _0x1b5c65[_0x1bd9e0(0x250)]:{this['_onRemoteChangeset'](_0x8dccd4(_0x10b7aa['data']));break;}case _0x1b5c65[_0x1bd9e0(0xf1)]:{this[_0x1bd9e0(0x14e)](_0x10b7aa[_0x1bd9e0(0x94)]);break;}case _0x1b5c65['CHANGESET_REJ']:{this['_onRemoteRejected']();break;}case _0x1b5c65[_0x1bd9e0(0x269)]:{this[_0x1bd9e0(0x381)](_0x10b7aa[_0x1bd9e0(0x94)][_0x1bd9e0(0xa3)][_0x1bd9e0(0xab)](_0x3b46dd=>_0x8dccd4(_0x3b46dd)));break;}case _0x1b5c65[_0x1bd9e0(0x274)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x5d532c){throw console[_0x1bd9e0(0x24d)](_0x1bd9e0(0x299),_0x5d532c),_0x5d532c;}}))),this[_0x3b9cb2(0x173)];}['_unlockTransition'](){const _0x480a08=_0x51fc53;this[_0x480a08(0x37b)]=!0x1;}['_lockTransition'](){const _0x59d763=_0x51fc53;if(this[_0x59d763(0x37b)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x59d763(0x37b)]=!0x0;}[_0x51fc53(0x1c7)](_0x213c99){const _0x3d1d7d=_0x51fc53;this['_lockTransition'](),this[_0x3d1d7d(0x292)](this[_0x3d1d7d(0x173)]['appendMutation'](_0x213c99)),this[_0x3d1d7d(0x1f8)]();}[_0x51fc53(0x2fe)](_0x59b55b){const _0x312a42=_0x51fc53;if(!(_0x59b55b['revision']<=this['_revisionService'][_0x312a42(0x2f1)](this[_0x312a42(0x1b1)]))){if(this['_collaborationPaused']){this[_0x312a42(0x1de)]['push'](_0x59b55b);return;}this[_0x312a42(0x114)](_0x59b55b);}}[_0x51fc53(0x133)](){const _0x3fd6f8=_0x51fc53;this[_0x3fd6f8(0x1de)]['forEach'](_0x1a03ad=>this['_applyRemoteChangeset'](_0x1a03ad)),this['_remoteChangesetQueue']=[];}[_0x51fc53(0x114)](_0x5c3628){const _0x3c3cf9=_0x51fc53,_0x2dec41=this[_0x3c3cf9(0x13f)][_0x3c3cf9(0xb2)]['fetchThroughInterceptors'](this[_0x3c3cf9(0x13f)][_0x3c3cf9(0xb2)]['getInterceptPoints']()[_0x3c3cf9(0x176)])(_0x5c3628[_0x3c3cf9(0xc7)],null)||_0x5c3628[_0x3c3cf9(0xc7)],_0x65bb5e={..._0x5c3628,'mutations':_0x2dec41};this['_lockTransition'](),this['_updateState'](this[_0x3c3cf9(0x173)]['onRemoteChangeset'](_0x65bb5e)),this[_0x3c3cf9(0x1f8)]();}['_onRemoteACK'](_0x2643b4){const _0x1ecaf7=_0x51fc53;this['_lockTransition'](),this[_0x1ecaf7(0x292)](this['_state']['onRemoteAck'](_0x2643b4)),this[_0x1ecaf7(0x1f8)]();}[_0x51fc53(0x348)](_0xb08dc9){const _0x232985=_0x51fc53;this['_lockTransition'](),this['_updateState'](this[_0x232985(0x173)][_0x232985(0x1ca)](_0xb08dc9)),this[_0x232985(0x1f8)]();}[_0x51fc53(0x381)](_0x26fa7a){const _0x10eb42=_0x51fc53;if(!(this['_state']instanceof W))throw new TypeError(_0x10eb42(0x21f));const _0xd0b61c=_0x26fa7a[_0x10eb42(0xab)](_0x3b2b77=>{const _0x334297=_0x10eb42,_0x476365=this[_0x334297(0x13f)][_0x334297(0xb2)][_0x334297(0xd1)](this[_0x334297(0x13f)]['interceptor'][_0x334297(0x26f)]()[_0x334297(0x176)])(_0x3b2b77[_0x334297(0xc7)],null)||_0x3b2b77[_0x334297(0xc7)];return{..._0x3b2b77,'mutations':_0x476365};});this[_0x10eb42(0x1e0)](),this[_0x10eb42(0x292)](this[_0x10eb42(0x173)]['onMissedChangesetFetched'](_0xd0b61c)),this[_0x10eb42(0x1f8)]();}[_0x51fc53(0xdb)](){const _0x27f2bf=_0x51fc53;this[_0x27f2bf(0x1e0)](),this[_0x27f2bf(0x292)](this[_0x27f2bf(0x173)][_0x27f2bf(0x178)]()),this[_0x27f2bf(0x1f8)]();}['_toggleOnline'](){const _0x33ddb9=_0x51fc53;this[_0x33ddb9(0x1e0)](),this[_0x33ddb9(0x292)](this[_0x33ddb9(0x173)][_0x33ddb9(0x338)]()),this[_0x33ddb9(0x1f8)]();}async[_0x51fc53(0x2b8)](){return new Promise(_0x351c8b=>{const _0xccf4f8=_0x5e69;this[_0xccf4f8(0x29c)][_0xccf4f8(0x334)][_0xccf4f8(0x2c3)](_0x51a597(0x1))[_0xccf4f8(0x202)](async _0x80a9f9=>{const _0x1c8939=_0xccf4f8;_0x351c8b(await this[_0x1c8939(0x281)](_0x80a9f9===_e[_0x1c8939(0x31f)]));});});}[_0x51fc53(0x353)](){const _0x3335e9=_0x51fc53,_0x55a1d5=this[_0x3335e9(0x1b1)];return{'onStateChange':(_0x4bc620,_0x5abb10)=>{const _0xdc3f7d=_0x3335e9;if(_0x4bc620!==this['_state'])throw new Error(_0xdc3f7d(0xd5)+_0x4bc620[_0xdc3f7d(0x253)]+'\x0aAfter:\x20'+_0x5abb10['status']+_0xdc3f7d(0xc6)+this[_0xdc3f7d(0x173)][_0xdc3f7d(0x253)]);this['_updateState'](_0x5abb10);},'onSendChangeset':_0x2ff008=>{const _0x19e233=_0x3335e9,_0x4ce3da={'eventID':_0x1b5c65[_0x19e233(0x255)],'data':{'unitID':_0x2ff008[_0x19e233(0x1b1)],'unitType':this[_0x19e233(0xad)],'changeset':_0x2ff008,'memberID':this[_0x19e233(0x29c)]['getMemberID']()}};this[_0x19e233(0x29c)][_0x19e233(0x39e)](_0x4ce3da,this[_0x19e233(0x1b1)]);},'onMissingChangesets':({from:_0x26cc95,to:_0x5f0301})=>{const _0x5303c9=_0x3335e9;this[_0x5303c9(0x37c)]['debug'](_0x5303c9(0x304),_0x5303c9(0x267)+_0x26cc95+_0x5303c9(0x39a)+_0x5f0301);const _0x4c1895={'eventID':_0x1b5c65[_0x5303c9(0x282)],'data':{'unitID':_0x55a1d5,'unitType':this[_0x5303c9(0xad)],'from':_0x26cc95,'to':_0x5f0301}};this[_0x5303c9(0x29c)][_0x5303c9(0x39e)](_0x4c1895,this[_0x5303c9(0x1b1)]);}};}async[_0x51fc53(0x281)](_0x1eaf27){const _0x3a5b9a=_0x51fc53;var _0x46ddcc,_0x231b95;const _0xbc676a=await this[_0x3a5b9a(0x284)]['loadOfflineData'](this['unitID']),_0xb7926f=(_0x46ddcc=_0xbc676a==null?void 0x0:_0xbc676a[_0x3a5b9a(0xc7)])!=null?_0x46ddcc:[],_0x4beb68=(_0x231b95=_0xbc676a==null?void 0x0:_0xbc676a[_0x3a5b9a(0x188)])!=null?_0x231b95:null,_0x2eb10d=this['unitID'];try{this[_0x3a5b9a(0xa9)](_0x4beb68,_0xb7926f);}catch(_0x274cb9){this[_0x3a5b9a(0x37c)][_0x3a5b9a(0x24d)](_0x274cb9);}const _0x451806=this['_createHandler']();if(_0x1eaf27){const _0x578a6f=ws(this['_injector'],_0x2eb10d,this['_type'],_0x4beb68,_0xb7926f,_0x451806);return _0x578a6f instanceof k?_0x578a6f[_0x3a5b9a(0x158)]():(_0x578a6f instanceof V||_0x578a6f instanceof X)&&_0x578a6f[_0x3a5b9a(0x197)](),_0x578a6f;}return this[_0x3a5b9a(0x342)][_0x3a5b9a(0x3ba)](J,_0x2eb10d,this['_type'],_0x4beb68,_0xb7926f,_0x451806);}[_0x51fc53(0xa9)](_0x238e13,_0x294021){const _0x29bf08=_0x51fc53;var _0x3da9f9,_0x46dcb9;const _0xc4b6c4=this[_0x29bf08(0x13f)]['interceptor'][_0x29bf08(0xd1)](this['_compressMutationService'][_0x29bf08(0xb2)][_0x29bf08(0x26f)]()['COMPRESS_MUTATION_APPLY']);(_0x3da9f9=_0xc4b6c4((_0x238e13==null?void 0x0:_0x238e13[_0x29bf08(0xc7)])||[],null))==null||_0x3da9f9['forEach'](_0x3df3df=>this['_commandService'][_0x29bf08(0xaa)](_0x3df3df['id'],_0x3df3df[_0x29bf08(0x1c8)])),(_0x46dcb9=_0xc4b6c4(_0x294021||[],null))==null||_0x46dcb9[_0x29bf08(0x124)](_0x3fddbf=>this[_0x29bf08(0x113)][_0x29bf08(0xaa)](_0x3fddbf['id'],_0x3fddbf[_0x29bf08(0x1c8)]));}};We=Je([S(0x3,_0x4a7404(_0x44b6b8)),S(0x4,_0x4a7404(D)),S(0x5,_0x4a7404(_0x2c81ea)),S(0x6,_0x4a7404(_0x201091)),S(0x7,_0x4a7404(_0x4d36b1)),S(0x8,_0x3cb271),S(0x9,_0x568418),S(0xa,_0xf8e37a),S(0xb,_0x57bd86),S(0xc,_0x19d484(Xe))],We);let dt=class extends We{constructor(_0x239e45,_0x31f25c,_0x4958bd,_0x1be5c9,_0x4144e9,_0x9729df,_0x22eb3a,_0x576e58,_0x183a2e,_0xc3c177,_0x2d4624,_0x15373c,_0x13c950,_0x44d744,_0x11c0d5,_0x363f57,_0xe2344d){const _0x23e2b0=_0x51fc53;super(_0x239e45,_0x31f25c,_0x4958bd,_0x1be5c9,_0x4144e9,_0x9729df,_0x22eb3a,_0x576e58,_0x13c950,_0x44d744,_0x11c0d5,_0x363f57,_0xe2344d),this[_0x23e2b0(0x1b1)]=_0x239e45,this['type']=_0x31f25c,this[_0x23e2b0(0xf2)]=_0x4958bd,this[_0x23e2b0(0x2a9)]=_0x183a2e,this[_0x23e2b0(0x1dd)]=_0xc3c177,this[_0x23e2b0(0x39f)]=_0x2d4624,this[_0x23e2b0(0x1bf)]=_0x15373c;}[_0x51fc53(0x353)](){const _0x48c16a=_0x51fc53,_0x258bcd=super[_0x48c16a(0x353)]();return _0x258bcd['onTransformIME']=_0x5789eb=>this[_0x48c16a(0x1dd)][_0x48c16a(0x22c)](_0x5789eb),_0x258bcd[_0x48c16a(0x2ef)]=_0x4e928c=>this[_0x48c16a(0x39f)][_0x48c16a(0xc5)](_0x4e928c),_0x258bcd['onSyncEditingCollabCursor']=_0x36ceeb=>this[_0x48c16a(0x1bf)]['syncEditingCollabCursor'](_0x36ceeb),_0x258bcd[_0x48c16a(0x314)]=_0x590aef=>this[_0x48c16a(0x1dd)]['transformRemoteChangeset'](_0x590aef),_0x258bcd;}async['_init'](){const _0x10924b=_0x51fc53,_0x4b142b=await super[_0x10924b(0x380)]();return this[_0x10924b(0x2a9)]['docStateChange$'][_0x10924b(0x2c3)](_0x1603a2(this[_0x10924b(0x200)]))[_0x10924b(0x202)](_0x520386=>{const _0x329d56=_0x10924b;if(_0x520386==null)return;const {unitId:_0x69d44f,redoState:_0x488da1,commandId:_0x5a0485}=_0x520386;if(_0x69d44f!==this['unitID'])return;const _0x57cf4e={'id':_0x5a0485,'type':_0x1b1270['MUTATION'],'params':{'unitId':_0x69d44f,'actions':_0x488da1['actions'],'textRanges':null}};this[_0x329d56(0x1c7)](_0x57cf4e);}),_0x4b142b;}};dt=Je([S(0x3,_0x4a7404(_0x44b6b8)),S(0x4,_0x4a7404(D)),S(0x5,_0x4a7404(_0x2c81ea)),S(0x6,_0x4a7404(_0x201091)),S(0x7,_0x4a7404(_0x4d36b1)),S(0x8,_0x4a7404(_0x47f8d9)),S(0x9,_0x4a7404(Be)),S(0xa,_0x4a7404(ke)),S(0xb,_0x4a7404(Mt)),S(0xc,_0x3cb271),S(0xd,_0x568418),S(0xe,_0xf8e37a),S(0xf,_0x57bd86),S(0x10,_0x19d484(Xe))],dt);let ft=class extends We{constructor(_0x5038e2,_0x44ef1a,_0x262956,_0x2b1775,_0x1242a8,_0x108ecd,_0x476ad3,_0x1bb191,_0x23ceb4,_0x276e50,_0x236953,_0x75f7de,_0x429535,_0x44bebb){const _0x2f954c=_0x51fc53;super(_0x5038e2,_0x44ef1a,_0x262956,_0x2b1775,_0x1242a8,_0x108ecd,_0x476ad3,_0x1bb191,_0x276e50,_0x236953,_0x75f7de,_0x429535,_0x44bebb),this[_0x2f954c(0x1b1)]=_0x5038e2,this[_0x2f954c(0x2cd)]=_0x44ef1a,this[_0x2f954c(0xf2)]=_0x262956,this[_0x2f954c(0x119)]=_0x23ceb4;}[_0x51fc53(0x353)](){const _0x9b3ba3=_0x51fc53,_0x6f5b46=super[_0x9b3ba3(0x353)]();return _0x6f5b46[_0x9b3ba3(0x2ef)]=_0x2605e8=>this['_sheetTransformSelectionsService'][_0x9b3ba3(0xc5)](_0x2605e8),_0x6f5b46;}async[_0x51fc53(0x380)](){const _0xb121fa=_0x51fc53,_0x31fa82=await super['_init']();return this[_0xb121fa(0x294)](this['_commandService'][_0xb121fa(0xb4)]((_0x5f0589,_0x22380a)=>{const _0x26f5c5=_0xb121fa;if(_0x5f0589[_0x26f5c5(0x2cd)]!==_0x1b1270[_0x26f5c5(0x321)]||_0x22380a!=null&&_0x22380a[_0x26f5c5(0xd2)]||_0x22380a!=null&&_0x22380a[_0x26f5c5(0x1f4)])return;const _0x5cfec5=_0x5f0589['params'];if((_0x5cfec5==null?void 0x0:_0x5cfec5[_0x26f5c5(0x2af)])!==this[_0x26f5c5(0x1b1)])return;const _0x285eba=_0x5f0589,_0x499d8d=this[_0x26f5c5(0x13f)]['interceptor'][_0x26f5c5(0xd1)](this[_0x26f5c5(0x13f)]['interceptor']['getInterceptPoints']()[_0x26f5c5(0x9d)])([_0x285eba],null)||[_0x285eba];this['_onLocalMutation'](_0x499d8d[0x0]);})),_0x31fa82;}};ft=Je([S(0x3,_0x4a7404(_0x44b6b8)),S(0x4,_0x4a7404(D)),S(0x5,_0x4a7404(_0x2c81ea)),S(0x6,_0x4a7404(_0x201091)),S(0x7,_0x4a7404(_0x4d36b1)),S(0x8,_0x4a7404(Ve)),S(0x9,_0x3cb271),S(0xa,_0x568418),S(0xb,_0xf8e37a),S(0xc,_0x57bd86),S(0xd,_0x19d484(Xe))],ft);const Zt=[_0x51fc53(0x1b4),_0x51fc53(0xee),_0x51fc53(0x1f7),_0x51fc53(0x398),_0x51fc53(0xf9),_0x51fc53(0x157)];class At extends _0x10a29c{constructor(){const _0x2f803a=_0x51fc53;super(...arguments),l(this,'_assignedColors',new Map()),l(this,_0x2f803a(0x1fd),0x0);}[_0x51fc53(0x33e)](_0x349a9e){const _0x42d247=_0x51fc53;if(this[_0x42d247(0x23c)][_0x42d247(0x16c)](_0x349a9e))return this[_0x42d247(0x23c)]['get'](_0x349a9e);const _0x81c09f=Zt[this[_0x42d247(0x1fd)]];return this[_0x42d247(0x1fd)]=(this[_0x42d247(0x1fd)]+0x1)%Zt['length'],this['_assignedColors'][_0x42d247(0x38f)](_0x349a9e,_0x81c09f),_0x81c09f;}}var Wn=Object[_0x51fc53(0x18f)],Gn=Object['getOwnPropertyDescriptor'],Yn=(_0x42a44f,_0x344411,_0x35fce5,_0x1b1d21)=>{const _0x2ed7d9=_0x51fc53;for(var _0xb21d67=_0x1b1d21>0x1?void 0x0:_0x1b1d21?Gn(_0x344411,_0x35fce5):_0x344411,_0x151a36=_0x42a44f[_0x2ed7d9(0x2c6)]-0x1,_0x2fd955;_0x151a36>=0x0;_0x151a36--)(_0x2fd955=_0x42a44f[_0x151a36])&&(_0xb21d67=(_0x1b1d21?_0x2fd955(_0x344411,_0x35fce5,_0xb21d67):_0x2fd955(_0xb21d67))||_0xb21d67);return _0x1b1d21&&_0xb21d67&&Wn(_0x344411,_0x35fce5,_0xb21d67),_0xb21d67;},ae=(_0x17c992,_0x465f79)=>(_0xc61445,_0x4d00a9)=>_0x465f79(_0xc61445,_0x4d00a9,_0x17c992);const Kn=0x12c,Xn=0x64,Jn=()=>{let _0x2a308a=[],_0x58cd30=!0x1;return _0x2744b5=>{const _0x351a13=_0x5e69;_0x2a308a[_0x351a13(0x19d)](_0x2744b5),_0x58cd30||(_0x58cd30=!0x0,setTimeout(()=>{_0x2a308a['forEach'](_0x1b79b6=>_0x1b79b6()),_0x2a308a=[],_0x58cd30=!0x1;}));};};let gt=class extends _0x521c86{constructor(_0x16267d,_0x5e4917,_0x2c91a4,_0x1899bd,_0x57e804,_0x13c74a,_0x5be64b,_0x7e9100){const _0x41e6dd=_0x51fc53;super(),l(this,_0x41e6dd(0x265),!0x1),l(this,'_init',!0x1),l(this,_0x41e6dd(0x390),new _0x5d7d96(new Map())),l(this,_0x41e6dd(0x123),this[_0x41e6dd(0x390)][_0x41e6dd(0xc8)]()),l(this,_0x41e6dd(0x36f),new _0x5d7d96([])),l(this,_0x41e6dd(0x1c1),this[_0x41e6dd(0x36f)][_0x41e6dd(0x2c3)](_0x4c0f1b(Kn))),l(this,'_updateLocalCursor',_0x507539((_0x5b7588,_0x1a5957)=>{const _0x377ff5=_0x41e6dd,_0x283005={'eventID':_0x1b5c65[_0x377ff5(0x235)],'data':{'unitID':this[_0x377ff5(0x1b1)],'memberID':this[_0x377ff5(0x29c)][_0x377ff5(0x2be)](),'selection':_0x273a62(_0x5b7588,_0x1a5957[_0x377ff5(0x2f5)])}};this[_0x377ff5(0x29c)]['send'](_0x283005,this['unitID']);},Xn)),(this[_0x41e6dd(0x1b1)]=_0x16267d,this['_session']=_0x5e4917,this[_0x41e6dd(0x342)]=_0x2c91a4,this[_0x41e6dd(0x1e7)]=_0x1899bd,this[_0x41e6dd(0x12b)]=_0x57e804,this['_univerInstanceService']=_0x13c74a,this[_0x41e6dd(0x113)]=_0x5be64b,this[_0x41e6dd(0x359)]=_0x7e9100);}get[_0x51fc53(0x129)](){const _0x13eef4=_0x51fc53;return this['_cursorInfo$'][_0x13eef4(0x15e)]();}get[_0x51fc53(0x21a)](){return this['_roomMembers$']['getValue']();}[_0x51fc53(0x232)](){const _0x764b94=_0x51fc53;super['dispose'](),this[_0x764b94(0x390)][_0x764b94(0x275)](new Map()),this['_cursorInfo$'][_0x764b94(0x349)](),this[_0x764b94(0x36f)][_0x764b94(0x275)]([]),this['_roomMembers$'][_0x764b94(0x349)]();}[_0x51fc53(0x191)](){const _0x190c6d=_0x51fc53;this[_0x190c6d(0x380)]||(this[_0x190c6d(0x380)]=!0x0,this['_session'][_0x190c6d(0x334)]['pipe'](_0x1603a2(this[_0x190c6d(0x200)]))[_0x190c6d(0x202)](_0xa5815=>{const _0x2f2f60=_0x190c6d;_0xa5815===_e[_0x2f2f60(0x31f)]?this[_0x2f2f60(0x343)]():this[_0x2f2f60(0xdb)]();}),this[_0x190c6d(0x29c)][_0x190c6d(0x374)][_0x190c6d(0x2c3)](_0x1603a2(this[_0x190c6d(0x200)]))[_0x190c6d(0x202)](_0x523cf3=>{const _0x16d229=_0x190c6d,_0x133b26=_0x523cf3[_0x16d229(0x1ec)];_0x133b26===_0x1b5c65[_0x16d229(0x235)]&&this[_0x16d229(0x291)](_0x523cf3),_0x133b26===_0x1b5c65[_0x16d229(0x312)]&&this[_0x16d229(0x36d)](_0x523cf3);}),this['_onRefRangeChange'](),this[_0x190c6d(0x294)](this[_0x190c6d(0x113)][_0x190c6d(0xb4)](_0x330dd9=>{const _0x50bbe3=_0x190c6d;if(this['_online']&&_0x330dd9['id']===_0x2708b7['id']&&_0x330dd9[_0x50bbe3(0x1c8)][_0x50bbe3(0x2af)]===this['unitID']){const _0x53f812=_0x330dd9[_0x50bbe3(0x1c8)];this[_0x50bbe3(0x35b)](_0x53f812['subUnitId'],_0x53f812[_0x50bbe3(0xf3)][0x0]);}})));}[_0x51fc53(0x291)](_0x493591){const _0x44d83d=_0x51fc53;var _0x40a451,_0x109c58;const {memberID:_0x4d5469,selection:_0x5aeb02}=_0x493591[_0x44d83d(0x94)],{sheetName:_0x4183db,range:_0x44a707}=_0x285859(_0x5aeb02),_0x50dc69={'name':(_0x109c58=(_0x40a451=this[_0x44d83d(0x12b)][_0x44d83d(0xb6)](this[_0x44d83d(0x1b1)],_0x4d5469))==null?void 0x0:_0x40a451[_0x44d83d(0x3a4)])!=null?_0x109c58:_0x44d83d(0x3aa),'range':this['_getMergeRange'](_0x4183db,_0x44a707),'sheetID':_0x4183db,'color':this['_colorAssignService'][_0x44d83d(0x33e)](_0x4d5469),'selection':_0x5aeb02},_0x48b6b4=this[_0x44d83d(0x129)];_0x48b6b4['set'](_0x4d5469,_0x50dc69),this[_0x44d83d(0x390)]['next'](_0x48b6b4);}[_0x51fc53(0x36d)](_0x47bb2e){const _0xaedcd7=_0x51fc53,{memberID:_0x2ddfe4}=_0x47bb2e[_0xaedcd7(0x94)],_0x2b0809=this[_0xaedcd7(0x129)];_0x2b0809['delete'](_0x2ddfe4),this['_cursorInfo$'][_0xaedcd7(0x275)](_0x2b0809);}[_0x51fc53(0x118)](_0x5f42f7,_0x5e0365){const _0x2129a6=_0x51fc53;var _0x386826,_0x5f3d3e;const _0x5435b4=(_0x5f3d3e=(_0x386826=this[_0x2129a6(0xa0)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x386826[_0x2129a6(0x3a9)](_0x5f42f7))==null?void 0x0:_0x5f3d3e[_0x2129a6(0x166)]();return(_0x5435b4==null?void 0x0:_0x5435b4[_0x2129a6(0x1e1)](_0x1bb7b1=>_0x1fb77c['contains'](_0x1bb7b1,_0x5e0365)))||_0x5e0365;}[_0x51fc53(0x30c)](){const _0x4b2589=_0x51fc53,_0x449b3f=new _0x3ab8a8(),_0x1ad303=Jn(),_0x4e123a=()=>{const _0x5f3655=_0x5e69;_0x449b3f['dispose']();const _0x6a4240=(_0x525892,_0x46c308,_0x55faac,_0xb0be62)=>{const _0x13c14c=_0x5e69;let _0x532400=[];switch(_0x525892['id']){case _0x4d5ced['DeleteRangeMoveLeftCommandId']:{_0x532400=_0x3ca06c(_0x525892,_0xb0be62);break;}case _0x4d5ced[_0x13c14c(0x377)]:{_0x532400=_0x5c5378(_0x525892,_0xb0be62);break;}case _0x4d5ced['InsertColCommandId']:{_0x532400=_0x3b1ac8(_0x525892,_0xb0be62);break;}case _0x4d5ced[_0x13c14c(0x37f)]:{_0x532400=_0x268953(_0x525892,_0xb0be62);break;}case _0x4d5ced[_0x13c14c(0x138)]:{_0x532400=_0x4c1408(_0x525892,_0xb0be62);break;}case _0x4d5ced['InsertRowCommandId']:{_0x532400=_0x254106(_0x525892,_0xb0be62);break;}case _0x4d5ced[_0x13c14c(0x20d)]:{_0x532400=_0x511a99(_0x525892,_0xb0be62);break;}case _0x4d5ced[_0x13c14c(0x357)]:{_0x532400=_0x122c4c(_0x525892,_0xb0be62);break;}case _0x4d5ced['RemoveRowCommandId']:{_0x532400=_0x1d7ce0(_0x525892,_0xb0be62);break;}}const _0x2f0e50=_0x3711ba(_0x532400,_0xb0be62),_0x1e8bc9=this['cursorInfo'][_0x13c14c(0x151)](_0x46c308);if(_0x1e8bc9&&_0x2f0e50){const _0x2522e8={..._0x1e8bc9,'range':_0x2f0e50};this[_0x13c14c(0x129)][_0x13c14c(0x38f)](_0x46c308,_0x2522e8),_0x1ad303(()=>{const _0x2aa25a=_0x13c14c,_0x5293f9=this[_0x2aa25a(0x359)]['registerRefRange'](_0x2f0e50,_0x56b6cb=>(_0x5293f9[_0x2aa25a(0x232)](),_0x6a4240(_0x56b6cb,_0x46c308,_0x55faac,_0x2f0e50)));_0x449b3f[_0x2aa25a(0xe7)](_0x5293f9);});}return{'redos':[],'undos':[]};};this[_0x5f3655(0x129)]['forEach']((_0x12ea26,_0x3738d5)=>{const _0x554688=_0x5f3655,{range:_0x32b9e6,sheetID:_0x43ba2a}=_0x12ea26,_0x5720fa=this[_0x554688(0x359)]['registerRefRange'](_0x32b9e6,_0x1a27ff=>(_0x5720fa[_0x554688(0x232)](),_0x6a4240(_0x1a27ff,_0x3738d5,_0x43ba2a,_0x32b9e6)));_0x449b3f['add'](_0x5720fa);});};this['disposeWithMe'](_0x2f2f24(this['_cursorInfo$'][_0x4b2589(0x202)](()=>{_0x4e123a();})));}['_toggleOnline'](){const _0x12b419=_0x51fc53;var _0x41d9e4,_0x50020e;if(this['_online']=!0x0,((_0x41d9e4=this['_univerInstanceService'][_0x12b419(0x2ed)]())==null?void 0x0:_0x41d9e4[_0x12b419(0x244)]())!==this[_0x12b419(0x1b1)])return;const _0x420067=(_0x50020e=this[_0x12b419(0x342)][_0x12b419(0x151)](_0x5c112f)['getSelections']())==null?void 0x0:_0x50020e[0x0],_0x4d0d62=this[_0x12b419(0xa0)][_0x12b419(0x1c4)](_0x3504ec[_0x12b419(0x351)])[_0x12b419(0x1e3)]();_0x420067&&_0x4d0d62&&this[_0x12b419(0x35b)](_0x4d0d62[_0x12b419(0x1ef)](),_0x420067);}['_toggleOffline'](){this['_online']=!0x1;}};gt=Yn([ae(0x2,_0x4a7404(_0x44b6b8)),ae(0x3,_0x4a7404(At)),ae(0x4,_0x4a7404(ee)),ae(0x5,_0x373907),ae(0x6,_0x568418),ae(0x7,_0x4a7404(_0x4cc8b2))],gt);var zn=Object[_0x51fc53(0x18f)],Zn=Object[_0x51fc53(0x340)],qn=(_0x2eda3c,_0x5beead,_0x42fed4,_0x904a0f)=>{for(var _0x1dc33b=_0x904a0f>0x1?void 0x0:_0x904a0f?Zn(_0x5beead,_0x42fed4):_0x5beead,_0x438064=_0x2eda3c['length']-0x1,_0x4553c0;_0x438064>=0x0;_0x438064--)(_0x4553c0=_0x2eda3c[_0x438064])&&(_0x1dc33b=(_0x904a0f?_0x4553c0(_0x5beead,_0x42fed4,_0x1dc33b):_0x4553c0(_0x1dc33b))||_0x1dc33b);return _0x904a0f&&_0x1dc33b&&zn(_0x5beead,_0x42fed4,_0x1dc33b),_0x1dc33b;},q=(_0x3718ed,_0x3ac559)=>(_0x19d97a,_0x46bb13)=>_0x3ac559(_0x19d97a,_0x46bb13,_0x3718ed);const Qn=0x12c,er=0x64;let mt=class extends _0x521c86{constructor(_0x4d4d77,_0x504630,_0x1bf532,_0x5e5237,_0x85fb5f,_0x25d8f4,_0xa3212,_0x12fe7f,_0x7c7fba){const _0x11856e=_0x51fc53;super(),l(this,_0x11856e(0x265),!0x1),l(this,'_init',!0x1),l(this,_0x11856e(0x390),new _0x5d7d96(new Map())),l(this,_0x11856e(0x123),this['_cursorInfo$'][_0x11856e(0xc8)]()),l(this,_0x11856e(0x36f),new _0x5d7d96([])),l(this,'roomMembers$',this[_0x11856e(0x36f)][_0x11856e(0x2c3)](_0x4c0f1b(Qn))),l(this,_0x11856e(0x35b),_0x507539(_0x116c0b=>{const _0x13f293=_0x11856e,_0x4d2825={'eventID':_0x1b5c65[_0x13f293(0x235)],'data':{'unitID':this[_0x13f293(0x1b1)],'memberID':this[_0x13f293(0x29c)][_0x13f293(0x2be)](),'selection':Ds(_0x116c0b)}};this[_0x13f293(0x29c)][_0x13f293(0x39e)](_0x4d2825,this[_0x13f293(0x1b1)]);},er)),(this['unitID']=_0x4d4d77,this[_0x11856e(0x29c)]=_0x504630,this[_0x11856e(0x342)]=_0x1bf532,this[_0x11856e(0x1e7)]=_0x5e5237,this['_memberService']=_0x85fb5f,this[_0x11856e(0x26b)]=_0x25d8f4,this[_0x11856e(0x102)]=_0xa3212,this[_0x11856e(0xa0)]=_0x12fe7f,this[_0x11856e(0x113)]=_0x7c7fba);}get[_0x51fc53(0x129)](){return this['_cursorInfo$']['getValue']();}get[_0x51fc53(0x21a)](){const _0x252811=_0x51fc53;return this['_roomMembers$'][_0x252811(0x15e)]();}[_0x51fc53(0x232)](){const _0x470fab=_0x51fc53;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0x470fab(0x390)][_0x470fab(0x349)](),this[_0x470fab(0x36f)][_0x470fab(0x275)]([]),this[_0x470fab(0x36f)][_0x470fab(0x349)]();}[_0x51fc53(0x191)](){const _0x4ac27a=_0x51fc53;this['_init']||(this[_0x4ac27a(0x380)]=!0x0,this[_0x4ac27a(0x29c)][_0x4ac27a(0x334)]['pipe'](_0x1603a2(this['dispose$']))[_0x4ac27a(0x202)](_0x20bf77=>{const _0x59397e=_0x4ac27a;_0x20bf77===_e[_0x59397e(0x31f)]?this[_0x59397e(0x343)]():this[_0x59397e(0xdb)]();}),this[_0x4ac27a(0x29c)][_0x4ac27a(0x374)]['pipe'](_0x1603a2(this[_0x4ac27a(0x200)]))[_0x4ac27a(0x202)](_0x102487=>{const _0xae4603=_0x4ac27a,_0xef96f4=_0x102487[_0xae4603(0x1ec)];_0xef96f4===_0x1b5c65[_0xae4603(0x235)]&&this[_0xae4603(0x291)](_0x102487),_0xef96f4===_0x1b5c65[_0xae4603(0x312)]&&this['_onCursorDelete'](_0x102487);}),this[_0x4ac27a(0x294)](this['_commandService'][_0x4ac27a(0xb4)](_0x9fad96=>{const _0x10f041=_0x4ac27a,_0x15eea9=_0x9fad96[_0x10f041(0x1c8)];_0x15eea9!=null&&this[_0x10f041(0x265)]&&_0x9fad96['id']===_0xf9fdf8['id']&&_0x15eea9[_0x10f041(0x2af)]===this[_0x10f041(0x1b1)]&&_0x15eea9[_0x10f041(0x3b7)]===!0x1&&this[_0x10f041(0x35b)](_0x15eea9[_0x10f041(0x397)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x4ac27a(0x2c3)](_0x1603a2(this['dispose$']))['subscribe'](_0x38f165=>{const _0xa92e70=_0x4ac27a;if((_0x38f165==null?void 0x0:_0x38f165[_0xa92e70(0x1b1)])!==this['unitID'])return;const _0x48bb18={'eventID':_0x1b5c65[_0xa92e70(0x235)],'data':_0x38f165};this['_onCursorUpdate'](_0x48bb18);}),this[_0x4ac27a(0x294)](this[_0x4ac27a(0x113)]['onCommandExecuted'](_0x2c17ff=>{const _0x10a3ce=_0x4ac27a;if(_0x2c17ff[_0x10a3ce(0x1c8)]==null)return;const _0x28666f=_0x2c17ff[_0x10a3ce(0x1c8)];if(_0x2c17ff['id']!==_0x47707c['id']||_0x28666f[_0x10a3ce(0x2af)]!==this[_0x10a3ce(0x1b1)])return;const _0x5ccb40={'id':'doc.mutation.rich-text-editing','params':_0x28666f},_0x975ae6=this[_0x10a3ce(0x129)];for(const [_0xb58826,_0x502c2a]of _0x975ae6){const _0xd06274={'id':_0x10a3ce(0x152),'params':{'unitId':this[_0x10a3ce(0x1b1)],'actions':null,'textRanges':_0x502c2a['ranges']}},_0x4d3d95=this[_0x10a3ce(0x102)][_0x10a3ce(0x259)](_0x5ccb40,_0xd06274,!0x1);if(_0xcc662a(_0x4d3d95))throw _0x4d3d95[_0x10a3ce(0x24d)];_0x975ae6[_0x10a3ce(0x38f)](_0xb58826,{..._0x502c2a,'ranges':_0x4d3d95[_0x10a3ce(0x30f)][_0x10a3ce(0x1c8)]['textRanges']});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x975ae6);});})));}[_0x51fc53(0x291)](_0x449117){const _0x1ce48e=_0x51fc53;var _0x445fed,_0x1e45c5;const {memberID:_0xa5bd47,selection:_0x5e2fd4}=_0x449117[_0x1ce48e(0x94)],_0x2965b5=yn(_0x5e2fd4),_0x3dff43=(_0x1e45c5=(_0x445fed=this[_0x1ce48e(0x12b)][_0x1ce48e(0xb6)](this[_0x1ce48e(0x1b1)],_0xa5bd47))==null?void 0x0:_0x445fed[_0x1ce48e(0x3a4)])!=null?_0x1e45c5:_0x1ce48e(0x3aa),_0x408f91={'color':this[_0x1ce48e(0x1e7)][_0x1ce48e(0x33e)](_0xa5bd47),'name':_0x3dff43,'ranges':_0x2965b5},_0x3fc317=this[_0x1ce48e(0x129)];_0x3fc317[_0x1ce48e(0x38f)](_0xa5bd47,_0x408f91),this[_0x1ce48e(0x390)][_0x1ce48e(0x275)](_0x3fc317);}[_0x51fc53(0x36d)](_0x8ffa4a){const _0x1d09ec=_0x51fc53,{memberID:_0x17612f}=_0x8ffa4a[_0x1d09ec(0x94)],_0x5651fd=this[_0x1d09ec(0x129)];_0x5651fd[_0x1d09ec(0x209)](_0x17612f),this[_0x1d09ec(0x390)][_0x1d09ec(0x275)](_0x5651fd);}[_0x51fc53(0x343)](){const _0x257fc0=_0x51fc53;var _0x396b0c;if(this[_0x257fc0(0x265)]=!0x0,((_0x396b0c=this[_0x257fc0(0xa0)][_0x257fc0(0x2ed)]())==null?void 0x0:_0x396b0c[_0x257fc0(0x244)]())!==this[_0x257fc0(0x1b1)])return;const _0x7489c=this[_0x257fc0(0x342)][_0x257fc0(0x151)](_0x58dacd)[_0x257fc0(0x287)](),_0x19fa19=_0x7489c==null?void 0x0:_0x7489c[_0x257fc0(0xab)](_0x2646e0);Array[_0x257fc0(0x34e)](_0x19fa19)&&_0x19fa19[_0x257fc0(0x2c6)]>0x0&&this[_0x257fc0(0x35b)](_0x19fa19);}[_0x51fc53(0xdb)](){this['_online']=!0x1;}};mt=qn([q(0x2,_0x4a7404(_0x44b6b8)),q(0x3,_0x4a7404(At)),q(0x4,_0x4a7404(ee)),q(0x5,_0x4a7404(Mt)),q(0x6,_0x425e9b),q(0x7,_0x373907),q(0x8,_0x568418)],mt);var tr=Object[_0x51fc53(0x18f)],sr=Object[_0x51fc53(0x340)],ir=(_0x2174f9,_0x114a2f,_0x2cca36,_0x328a34)=>{const _0x22bae8=_0x51fc53;for(var _0x24ea18=_0x328a34>0x1?void 0x0:_0x328a34?sr(_0x114a2f,_0x2cca36):_0x114a2f,_0x41aaf8=_0x2174f9[_0x22bae8(0x2c6)]-0x1,_0x38e70e;_0x41aaf8>=0x0;_0x41aaf8--)(_0x38e70e=_0x2174f9[_0x41aaf8])&&(_0x24ea18=(_0x328a34?_0x38e70e(_0x114a2f,_0x2cca36,_0x24ea18):_0x38e70e(_0x24ea18))||_0x24ea18);return _0x328a34&&_0x24ea18&&tr(_0x114a2f,_0x2cca36,_0x24ea18),_0x24ea18;},st=(_0x49ac3c,_0xdd4983)=>(_0x1336a4,_0x20ad2a)=>_0xdd4983(_0x1336a4,_0x20ad2a,_0x49ac3c);let ue=class extends _0x521c86{constructor(_0x48ff91,_0xbffab7,_0x3769f3){const _0x396468=_0x51fc53;super(),l(this,_0x396468(0x2a3),new Map()),l(this,_0x396468(0x36b),new _0x5da41e()),(this[_0x396468(0xa0)]=_0x48ff91,this[_0x396468(0x342)]=_0xbffab7,this['_collabSessionService']=_0x3769f3,this[_0x396468(0x380)]());}[_0x51fc53(0x232)](){const _0x3399af=_0x51fc53;super[_0x3399af(0x232)](),this['_entityInit$'][_0x3399af(0x349)](),this[_0x3399af(0x2a3)][_0x3399af(0x124)](_0x29f176=>_0x29f176['dispose']());}[_0x51fc53(0x2bc)](_0x3456da){const _0x5e39eb=_0x51fc53;return this[_0x5e39eb(0x2a3)]['has'](_0x3456da)?this[_0x5e39eb(0x2a3)][_0x5e39eb(0x151)](_0x3456da)['cursorInfo$']:this['_entityInit$'][_0x5e39eb(0x2c3)](_0x5f5348(_0x4a906d=>_0x4a906d[_0x5e39eb(0x1b1)]===_0x3456da),_0x8b3a32(_0x35996a=>_0x35996a[_0x5e39eb(0x123)]));}['_init'](){const _0x3662cf=_0x51fc53;this[_0x3662cf(0xa0)][_0x3662cf(0x26e)](_0x3504ec[_0x3662cf(0x351)])[_0x3662cf(0x2c3)](_0x1603a2(this[_0x3662cf(0x200)]))['subscribe'](async _0x522fad=>{const _0x81872f=_0x3662cf,_0xffac7e=_0x522fad[_0x81872f(0x244)](),_0x3a10df=await this[_0x81872f(0x2dc)](_0xffac7e);this[_0x81872f(0x36b)][_0x81872f(0x275)](_0x3a10df),this['_entities'][_0x81872f(0x38f)](_0xffac7e,_0x3a10df);}),this[_0x3662cf(0xa0)][_0x3662cf(0x26e)](_0x3504ec['UNIVER_DOC'])[_0x3662cf(0x2c3)](_0x1603a2(this['dispose$']))[_0x3662cf(0x2c3)](_0x5f5348(_0x36230e=>!_0x36230e['getUnitId']()[_0x3662cf(0x30e)]('__')))[_0x3662cf(0x202)](async _0x23d05a=>{const _0x5f3def=_0x3662cf,_0x1a4177=_0x23d05a['getUnitId'](),_0x2f73b1=await this[_0x5f3def(0x2f4)](_0x1a4177);this[_0x5f3def(0x36b)]['next'](_0x2f73b1),this[_0x5f3def(0x2a3)][_0x5f3def(0x38f)](_0x1a4177,_0x2f73b1);}),_0x124107(this[_0x3662cf(0xa0)][_0x3662cf(0x280)](_0x3504ec[_0x3662cf(0x32c)]),this['_univerInstanceService'][_0x3662cf(0x280)](_0x3504ec[_0x3662cf(0x351)]))['pipe'](_0x1603a2(this[_0x3662cf(0x200)]))['subscribe'](_0x19fcc4=>{const _0x424b2b=_0x3662cf,_0x1de6b9=_0x19fcc4[_0x424b2b(0x244)](),_0xd23773=this[_0x424b2b(0x2a3)]['get'](_0x1de6b9);_0xd23773&&(_0xd23773['dispose'](),this['_entities']['delete'](_0x1de6b9));});}async[_0x51fc53(0x2dc)](_0x2d916f){const _0x1d3b00=_0x51fc53,_0x5d6148=await this[_0x1d3b00(0x1b2)][_0x1d3b00(0x1ad)](_0x2d916f),_0x230c34=this[_0x1d3b00(0x342)][_0x1d3b00(0x3ba)](gt,_0x2d916f,_0x5d6148);return _0x230c34[_0x1d3b00(0x191)](),_0x230c34;}async[_0x51fc53(0x2f4)](_0x132616){const _0x1c6fb5=_0x51fc53,_0x580c56=await this['_collabSessionService'][_0x1c6fb5(0x1ad)](_0x132616),_0x4bff1f=this['_injector'][_0x1c6fb5(0x3ba)](mt,_0x132616,_0x580c56);return _0x4bff1f[_0x1c6fb5(0x191)](),_0x4bff1f;}};ue=ir([_0x47ad3a(_0x34068b[_0x51fc53(0x11d)],ue),st(0x0,_0x373907),st(0x1,_0x4a7404(_0x44b6b8)),st(0x2,_0x4a7404(Re))],ue);const Oe=0x14,qt=0xc8,it=0x4,nr=0x5;function rr(_0x535e5c,_0x7f9b40){const _0xbb9818=_0x51fc53;let {radius:_0x59ee42,width:_0x182805,height:_0x5840b4}=_0x7f9b40;_0x59ee42=_0x59ee42!=null?_0x59ee42:0x0,_0x182805=_0x182805!=null?_0x182805:0x1e,_0x5840b4=_0x5840b4!=null?_0x5840b4:0x1e;let _0xc9c179=0x0,_0x27d5e3=0x0,_0x1b4264=0x0;_0xc9c179=_0x27d5e3=_0x1b4264=Math[_0xbb9818(0x385)](_0x59ee42,_0x182805/0x2,_0x5840b4/0x2),_0x535e5c[_0xbb9818(0x25f)](),_0x535e5c[_0xbb9818(0xfe)](_0xc9c179,0x0),_0x535e5c[_0xbb9818(0x182)](_0x182805-_0x27d5e3,0x0),_0x535e5c[_0xbb9818(0x159)](_0x182805-_0x27d5e3,_0x27d5e3,_0x27d5e3,Math['PI']*0x3/0x2,0x0,!0x1),_0x535e5c[_0xbb9818(0x182)](_0x182805,_0x5840b4-_0x1b4264),_0x535e5c['arc'](_0x182805-_0x1b4264,_0x5840b4-_0x1b4264,_0x1b4264,0x0,Math['PI']/0x2,!0x1),_0x535e5c[_0xbb9818(0x182)](0x0,_0x5840b4),_0x535e5c[_0xbb9818(0x182)](0x0,_0xc9c179),_0x535e5c['arc'](_0xc9c179,_0xc9c179,_0xc9c179,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x535e5c[_0xbb9818(0x153)](),_0x7f9b40[_0xbb9818(0x29f)]&&(_0x535e5c[_0xbb9818(0x1f2)](),_0x535e5c[_0xbb9818(0x336)]=_0x7f9b40[_0xbb9818(0x29f)],_0x7f9b40[_0xbb9818(0x18d)]===_0xbb9818(0x25a)?_0x535e5c[_0xbb9818(0x29f)](_0xbb9818(0x25a)):_0x535e5c[_0xbb9818(0x29f)](),_0x535e5c[_0xbb9818(0x261)]());}class ze extends _0xe13222{constructor(_0x340efa,_0x4920dd){const _0x414ca2=_0x51fc53;super(_0x340efa,_0x4920dd),l(this,_0x414ca2(0x35d)),l(this,_0x414ca2(0x248)),(this[_0x414ca2(0x35d)]=_0x4920dd==null?void 0x0:_0x4920dd[_0x414ca2(0x35d)],this['text']=_0x4920dd==null?void 0x0:_0x4920dd[_0x414ca2(0x248)]);}static['drawWith'](_0x535c8b,_0x3f9887){const _0x3b3063=_0x51fc53,{text:_0x2d2828,color:_0x93ea6e}=_0x3f9887;_0x535c8b['save'](),_0x535c8b[_0x3b3063(0x127)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x354148=_0x535c8b[_0x3b3063(0x165)](_0x2d2828)[_0x3b3063(0x17d)],_0x12cbce=Math[_0x3b3063(0x385)](_0x354148+0x2*it,qt);rr(_0x535c8b,{'height':Oe,'radius':0x4,'width':_0x12cbce,'fill':_0x93ea6e,'evented':!0x1}),_0x535c8b[_0x3b3063(0x336)]='#FFF';const _0x30e33a=it,_0x168a59=Oe-nr,_0x43f098=qt-0x2*it;if(_0x354148>_0x43f098){let _0x35c391='',_0xfee248=0x0;for(const _0x125aaf of _0x2d2828){const _0xbeede7=_0x535c8b[_0x3b3063(0x165)](_0x125aaf)['width'];if(_0xfee248+_0xbeede7<=_0x43f098-_0x535c8b[_0x3b3063(0x165)]('...')[_0x3b3063(0x17d)])_0x35c391+=_0x125aaf,_0xfee248+=_0xbeede7;else{_0x35c391+=_0x3b3063(0x229);break;}}_0x535c8b['fillText'](_0x35c391,_0x30e33a,_0x168a59);}else _0x535c8b[_0x3b3063(0x285)](_0x2d2828,_0x30e33a,_0x168a59);_0x535c8b[_0x3b3063(0x261)]();}[_0x51fc53(0x2e3)](_0x1d08fc){ze['drawWith'](_0x1d08fc,this);}}const or=0x1,ar=1.5;class cr extends _0xe13222{constructor(_0x3353aa,_0x256d29){const _0x672f77=_0x51fc53;super(_0x3353aa,_0x256d29),l(this,_0x672f77(0xa7)),l(this,'_hovered',!0x1),l(this,_0x672f77(0x1f3)),l(this,_0x672f77(0x27b),''),l(this,_0x672f77(0x3a7),_0x672f77(0x207)),(_0x256d29&&this['setShapeProps'](_0x256d29),this['onPointerEnter$'][_0x672f77(0x2d7)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x672f77(0x2d8)]({'hovered':!0x1})));}[_0x51fc53(0x2d8)](_0x5c52f4){const _0xd40927=_0x51fc53;var _0x438ea9,_0x324dd8,_0xa989fc,_0x1e5d03,_0xdb1914;this[_0xd40927(0xa7)]=(_0x438ea9=_0x5c52f4['color'])!=null?_0x438ea9:this[_0xd40927(0xa7)],this[_0xd40927(0xd6)]=(_0x324dd8=_0x5c52f4[_0xd40927(0x150)])!=null?_0x324dd8:this['_hovered'],this[_0xd40927(0x1f3)]=(_0xa989fc=_0x5c52f4[_0xd40927(0x2f5)])!=null?_0xa989fc:this[_0xd40927(0x1f3)],this['_name']=(_0x1e5d03=_0x5c52f4[_0xd40927(0x3a4)])!=null?_0x1e5d03:this['_name'],this[_0xd40927(0x3a7)]=(_0xdb1914=_0x5c52f4[_0xd40927(0x289)])!=null?_0xdb1914:this[_0xd40927(0x3a7)],this[_0xd40927(0x177)]({'width':_0x5c52f4[_0xd40927(0x17d)],'height':_0x5c52f4[_0xd40927(0x28e)]});}[_0x51fc53(0x8e)](_0x31028a){const _0x55721=_0x51fc53,{row:_0x522b40,column:_0x57e37f}=_0x31028a;if(_0x522b40>=this[_0x55721(0x1f3)][_0x55721(0x172)]&&_0x522b40<=this[_0x55721(0x1f3)][_0x55721(0xbf)]&&_0x57e37f>=this[_0x55721(0x1f3)][_0x55721(0x372)]&&_0x57e37f<=this[_0x55721(0x1f3)]['endColumn']){this[_0x55721(0x2d8)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x51fc53(0x186)](_0x291167){return!0x1;}[_0x51fc53(0x2e3)](_0x8cd591){const _0x2f7fe1=_0x51fc53;_0xbeb8e4[_0x2f7fe1(0x2db)](_0x8cd591,{'width':this['width'],'height':this[_0x2f7fe1(0x28e)],'strokeWidth':ar,'stroke':this[_0x2f7fe1(0xa7)],'evented':!0x1}),this[_0x2f7fe1(0xd6)]&&(_0x8cd591[_0x2f7fe1(0x1f2)](),_0x8cd591['transform'](0x1,0x0,0x0,0x1,this[_0x2f7fe1(0x17d)],this[_0x2f7fe1(0x3a7)]==='bottom'?0x0:-Oe),ze[_0x2f7fe1(0x2db)](_0x8cd591,{'text':this[_0x2f7fe1(0x27b)],'color':this['_color']}),_0x8cd591[_0x2f7fe1(0x261)]());}}var hr=Object[_0x51fc53(0x18f)],lr=Object['getOwnPropertyDescriptor'],_r=(_0x1fbf33,_0x5116ed,_0x223ae4,_0xc060fd)=>{for(var _0x4f2877=_0xc060fd>0x1?void 0x0:_0xc060fd?lr(_0x5116ed,_0x223ae4):_0x5116ed,_0x1139ae=_0x1fbf33['length']-0x1,_0x3068d1;_0x1139ae>=0x0;_0x1139ae--)(_0x3068d1=_0x1fbf33[_0x1139ae])&&(_0x4f2877=(_0xc060fd?_0x3068d1(_0x5116ed,_0x223ae4,_0x4f2877):_0x3068d1(_0x4f2877))||_0x4f2877);return _0xc060fd&&_0x4f2877&&hr(_0x5116ed,_0x223ae4,_0x4f2877),_0x4f2877;},Me=(_0x8da0eb,_0x1c16b9)=>(_0x3312c8,_0x2ea4ec)=>_0x1c16b9(_0x3312c8,_0x2ea4ec,_0x8da0eb);const ur=0x1389;let $e=class extends _0x521c86{constructor(_0x43d546,_0x57d2ff,_0x55fefa,_0x1e6a10){const _0xf4fce9=_0x51fc53;super(),l(this,'_cursors',new Set()),l(this,'_lastPointer',null),(this['_collabCursorController']=_0x43d546,this['_univerInstanceService']=_0x57d2ff,this[_0xf4fce9(0x27d)]=_0x55fefa,this[_0xf4fce9(0x16b)]=_0x1e6a10,this['_init']());}get['_sheetSkeletonManagerService'](){const _0x299fa8=_0x51fc53;return this[_0x299fa8(0x27d)][_0x299fa8(0x308)](this[_0x299fa8(0xa0)][_0x299fa8(0x1c4)](_0x3504ec[_0x299fa8(0x351)])['getUnitId']())[_0x299fa8(0xd9)](_0x358cc7);}get[_0x51fc53(0x8a)](){const _0x697036=_0x51fc53;return this['_univerInstanceService'][_0x697036(0x1c4)](_0x3504ec[_0x697036(0x351)])[_0x697036(0x244)]();}[_0x51fc53(0x380)](){const _0x339dc1=_0x51fc53;this[_0x339dc1(0x395)]['currentSkeleton$'][_0x339dc1(0x2c3)](_0x430c3c(this[_0x339dc1(0x200)]),_0xb49a6c(_0x26becb=>{const _0x28a310=_0x339dc1;if(_0x26becb){const _0x519ce9=_0x26becb[_0x28a310(0x10b)];return _0x73b353(this[_0x28a310(0x84)][_0x28a310(0x2bc)](this[_0x28a310(0x8a)]),this['_themeService'][_0x28a310(0x1a7)])[_0x28a310(0x2c3)](_0x1db2aa(([_0x15e3ad,_0x5c2de4])=>{const _0x1cf9f2=_0x28a310,_0x16c63b=new Map();return _0x15e3ad[_0x1cf9f2(0x124)]((_0x43ce0e,_0x342e24)=>{const _0x53c782=_0x1cf9f2;if(_0x43ce0e[_0x53c782(0x268)]===_0x519ce9){const _0x569709={..._0x43ce0e};_0x569709['color']=_0x5c2de4[_0x43ce0e[_0x53c782(0x35d)]],_0x16c63b[_0x53c782(0x38f)](_0x342e24,_0x569709);}}),{'skeleton':_0x26becb,'cursors':_0x16c63b};}));}return _0xdadc8c({'skeleton':null,'cursors':new Map()});}))[_0x339dc1(0x202)](({skeleton:_0x37d754,cursors:_0x5286eb})=>{const _0x401e8f=_0x339dc1;this[_0x401e8f(0xb9)](),_0x37d754&&this['_updateCollabCursors'](_0x37d754,_0x5286eb);}),this[_0x339dc1(0x395)][_0x339dc1(0x391)]['subscribe'](_0x308078=>{const _0x42689b=_0x339dc1;if(_0x308078==null)return;const {skeleton:_0x41ea67}=_0x308078,_0xe670e6=this[_0x42689b(0x27d)][_0x42689b(0x308)](this['_unitId']),{scene:_0x573c37}=_0xe670e6;_0x573c37[_0x42689b(0x206)][_0x42689b(0x2d7)](_0x507539(_0x4533b8=>{const _0x4a6fd7=_0x42689b;var _0x5d0432,_0x4d553b;const {offsetX:_0x5478a3,offsetY:_0x2db033}=_0x4533b8,{x:_0x17f3b7,y:_0x1f7907}=_0x573c37['getRelativeCoord'](_0x44f5c0['FromArray']([_0x5478a3,_0x2db033])),{scaleX:_0x17cc86,scaleY:_0x12b64d}=_0x573c37[_0x4a6fd7(0x242)](),_0x36fce9=_0x573c37[_0x4a6fd7(0xb0)](_0x1940ad['VIEW_MAIN']),_0x21fb64=_0x573c37['getScrollXYByRelativeCoords'](_0x44f5c0[_0x4a6fd7(0x17e)]([_0x17f3b7,_0x1f7907]),_0x36fce9),_0x53dbea=_0x41ea67[_0x4a6fd7(0xce)](_0x5478a3,_0x2db033,_0x17cc86,_0x12b64d,_0x21fb64);((_0x5d0432=this[_0x4a6fd7(0x1a4)])==null?void 0x0:_0x5d0432['column'])===_0x53dbea[_0x4a6fd7(0x1d4)]&&((_0x4d553b=this[_0x4a6fd7(0x1a4)])==null?void 0x0:_0x4d553b[_0x4a6fd7(0x122)])===_0x53dbea[_0x4a6fd7(0x122)]||this[_0x4a6fd7(0xd3)]['forEach'](_0x4057c7=>{_0x4057c7['onMouseMove'](_0x53dbea);});},0x64));});}[_0x51fc53(0xc4)](_0x2fbfa7,_0xb11876){const _0x58da8e=_0x51fc53;var _0x3059d4;const _0x5349a6=(_0x3059d4=this[_0x58da8e(0x395)]['getCurrent']())==null?void 0x0:_0x3059d4['skeleton'];if(!_0x5349a6)return;const _0x40b704=this['_getSheetObject']();if(!_0x40b704)return;this[_0x58da8e(0xd3)][_0x58da8e(0x124)](_0x317dee=>{const _0x203073=_0x58da8e;_0x317dee[_0x203073(0x87)]();});const {scene:_0x219eb3}=_0x40b704,_0x27bc5f=dr(Array[_0x58da8e(0x17c)](_0xb11876[_0x58da8e(0x121)]()))['map'](_0x32bdd9=>{const _0x3b1a7d=_0x58da8e,{color:_0x231419,range:_0x4df615,name:_0x4a67bb,selection:_0x18dfde,sheetID:_0x30322f}=_0x32bdd9,{startColumn:_0x19e03b,startRow:_0x143db8,endColumn:_0x1fcb35,endRow:_0x263bf5}=_0x4df615,_0x1853f5=_0x35114e(_0x143db8,_0x19e03b,_0x219eb3,_0x5349a6),_0x5e7572=_0x35114e(_0x263bf5,_0x1fcb35,_0x219eb3,_0x5349a6),{columnHeaderHeightAndMarginTop:_0x27de2b}=_0x5349a6,{startX:_0x4c30df,startY:_0x3497a0}=_0x1853f5,{endX:_0x1ed194,endY:_0x343bd0}=_0x5e7572,_0x2e394a=_0x1ed194-_0x4c30df,_0x405997=_0x343bd0-_0x3497a0,_0x5e244a={'labelPosition':_0x3497a0-_0x27de2b>=Oe?_0x3b1a7d(0x207):_0x3b1a7d(0x15f),'sheetID':_0x30322f,'range':_0x4df615,'color':_0x231419,'name':_0x4a67bb,'selection':_0x18dfde,'left':_0x4c30df,'top':_0x3497a0,'width':_0x2e394a,'height':_0x405997,'evented':!0x1,'zIndex':ur};return new cr(_0x4a67bb,_0x5e244a);});_0x219eb3[_0x58da8e(0x2d2)](_0x27bc5f,or),this[_0x58da8e(0xd3)]=new Set(_0x27bc5f);}['_removeCollabCursors'](){const _0xfe6433=_0x51fc53;var _0x3f34eb;(_0x3f34eb=this[_0xfe6433(0xd3)])==null||_0x3f34eb[_0xfe6433(0x124)](_0x23c211=>_0x23c211[_0xfe6433(0x232)]());}[_0x51fc53(0xda)](){const _0x10e864=_0x51fc53;return _0x23f9f7(this[_0x10e864(0xa0)],this[_0x10e864(0x27d)]);}};$e=_r([_0x47ad3a(_0x34068b['Steady'],$e),Me(0x0,_0x4a7404(ue)),Me(0x1,_0x373907),Me(0x2,_0x39c4de),Me(0x3,_0x4a7404(_0x522711))],$e);function dr(_0x2c89bc){const _0x1d7afe=_0x51fc53,_0x4592c5=new Map();return _0x2c89bc[_0x1d7afe(0x124)](_0x43e3d2=>{const _0x34d619=_0x1d7afe;if(_0x4592c5['has'](_0x43e3d2[_0x34d619(0x2fa)])){const _0x29fc3d=_0x4592c5['get'](_0x43e3d2[_0x34d619(0x2fa)]);_0x29fc3d[_0x34d619(0x3a4)]+=',\x20'+_0x43e3d2[_0x34d619(0x3a4)];}else _0x4592c5[_0x34d619(0x38f)](_0x43e3d2[_0x34d619(0x2fa)],_0x43e3d2);}),Array[_0x1d7afe(0x17c)](_0x4592c5['values']());}var A=function(){const _0x79621e=_0x51fc53;return A=Object['assign']||function(_0x549077){const _0x3e2223=_0x5e69;for(var _0x26d046,_0x3a3589=0x1,_0x4adb0d=arguments[_0x3e2223(0x2c6)];_0x3a3589<_0x4adb0d;_0x3a3589++){_0x26d046=arguments[_0x3a3589];for(var _0x4941fc in _0x26d046)Object[_0x3e2223(0x1f5)][_0x3e2223(0x30d)][_0x3e2223(0x185)](_0x26d046,_0x4941fc)&&(_0x549077[_0x4941fc]=_0x26d046[_0x4941fc]);}return _0x549077;},A[_0x79621e(0x89)](this,arguments);},fr=function(_0x4b4096,_0xea3534){const _0x3e3353=_0x51fc53;var _0x13001b={};for(var _0x51f7fa in _0x4b4096)Object[_0x3e3353(0x1f5)][_0x3e3353(0x30d)][_0x3e3353(0x185)](_0x4b4096,_0x51f7fa)&&_0xea3534[_0x3e3353(0x3a3)](_0x51f7fa)<0x0&&(_0x13001b[_0x51f7fa]=_0x4b4096[_0x51f7fa]);if(_0x4b4096!=null&&typeof Object[_0x3e3353(0xcd)]==_0x3e3353(0xa4)){for(var _0x4f7290=0x0,_0x51f7fa=Object['getOwnPropertySymbols'](_0x4b4096);_0x4f7290<_0x51f7fa[_0x3e3353(0x2c6)];_0x4f7290++)_0xea3534[_0x3e3353(0x3a3)](_0x51f7fa[_0x4f7290])<0x0&&Object['prototype'][_0x3e3353(0x2ec)][_0x3e3353(0x185)](_0x4b4096,_0x51f7fa[_0x4f7290])&&(_0x13001b[_0x51f7fa[_0x4f7290]]=_0x4b4096[_0x51f7fa[_0x4f7290]]);}return _0x13001b;},yt=_0x4ddef2(function(_0x4152db,_0x5b62cd){const _0x1c90e3=_0x51fc53;var _0x795ccf=_0x4152db[_0x1c90e3(0xe5)],_0x58eafc=_0x4152db['id'],_0x276460=_0x4152db['className'],_0x32335e=_0x4152db[_0x1c90e3(0x1d5)],_0x4c297f=fr(_0x4152db,[_0x1c90e3(0xe5),'id',_0x1c90e3(0x221),_0x1c90e3(0x1d5)]),_0x4367ba=_0x1c90e3(0x33a)['concat'](_0x58eafc,'\x20')[_0x1c90e3(0x14b)](_0x276460||'')[_0x1c90e3(0x1a1)](),_0x535ae3=_0x4ff318('_'[_0x1c90e3(0x14b)](Sr()));return Ps(_0x795ccf,''['concat'](_0x58eafc),{'defIds':_0x795ccf[_0x1c90e3(0x3a8)],'idSuffix':_0x535ae3[_0x1c90e3(0x12a)]},A({'ref':_0x5b62cd,'className':_0x4367ba},_0x4c297f),_0x32335e);});function Ps(_0x161100,_0x524be1,_0x61179f,_0x354ec7,_0x344b96){const _0x1202f7=_0x51fc53;return _0x153699(_0x161100['tag'],A(A({'key':_0x524be1},gr(_0x161100,_0x61179f,_0x344b96)),_0x354ec7),(mr(_0x161100,_0x61179f)[_0x1202f7(0x399)]||[])['map'](function(_0x5919b7,_0x5ec9cb){const _0x1cddc1=_0x1202f7;return Ps(_0x5919b7,''[_0x1cddc1(0x14b)](_0x524be1,'-')[_0x1cddc1(0x14b)](_0x161100[_0x1cddc1(0x2a8)],'-')[_0x1cddc1(0x14b)](_0x5ec9cb),_0x61179f,void 0x0,_0x344b96);}));}function gr(_0x2c4255,_0x41dc9a,_0x434256){const _0x3b4b96=_0x51fc53;var _0x3a661b=A({},_0x2c4255[_0x3b4b96(0x2b6)]);_0x434256!=null&&_0x434256[_0x3b4b96(0x145)]&&_0x3a661b[_0x3b4b96(0x29f)]===_0x3b4b96(0x145)&&(_0x3a661b['fill']=_0x434256[_0x3b4b96(0x145)]);var _0x3836a5=_0x41dc9a[_0x3b4b96(0x3a8)];return!_0x3836a5||_0x3836a5[_0x3b4b96(0x2c6)]===0x0||(_0x2c4255[_0x3b4b96(0x2a8)]===_0x3b4b96(0xae)&&_0x3a661b['xlink:href']&&(_0x3a661b['xlink:href']=_0x3a661b[_0x3b4b96(0x3af)]+_0x41dc9a['idSuffix']),Object[_0x3b4b96(0xfa)](_0x3a661b)[_0x3b4b96(0x124)](function(_0x16546e){const _0x1262e4=_0x3b4b96;var _0x542b83=_0x16546e[0x0],_0x2849e1=_0x16546e[0x1];typeof _0x2849e1=='string'&&(_0x3a661b[_0x542b83]=_0x2849e1['replace'](/url\(#(.*)\)/,'url(#$1'[_0x1262e4(0x14b)](_0x41dc9a[_0x1262e4(0x2b9)],')')));})),_0x3a661b;}function mr(_0x758884,_0x189473){const _0x2127ae=_0x51fc53;var _0x35dc68,_0x229f61=_0x189473[_0x2127ae(0x3a8)];return!_0x229f61||_0x229f61[_0x2127ae(0x2c6)]===0x0?_0x758884:_0x758884['tag']===_0x2127ae(0x264)&&(!((_0x35dc68=_0x758884[_0x2127ae(0x399)])===null||_0x35dc68===void 0x0)&&_0x35dc68[_0x2127ae(0x2c6)])?A(A({},_0x758884),{'children':_0x758884['children'][_0x2127ae(0xab)](function(_0x2e403f){const _0x289a73=_0x2127ae;return typeof _0x2e403f['attrs']['id']==_0x289a73(0x288)&&_0x229f61&&_0x229f61[_0x289a73(0x3a3)](_0x2e403f[_0x289a73(0x2b6)]['id'])>-0x1?A(A({},_0x2e403f),{'attrs':A(A({},_0x2e403f['attrs']),{'id':_0x2e403f['attrs']['id']+_0x189473[_0x289a73(0x2b9)]})}):_0x2e403f;})}):_0x758884;}function Sr(){const _0x3ae5ab=_0x51fc53;return Math[_0x3ae5ab(0x2ad)]()[_0x3ae5ab(0x1bd)](0x24)[_0x3ae5ab(0x92)](0x2,0x8);}yt[_0x51fc53(0x378)]='UniverIcon';function _0x5e69(_0x30d931,_0xefada2){const _0x18ca5f=_0x18ca();return _0x5e69=function(_0x5e69b9,_0x441c8c){_0x5e69b9=_0x5e69b9-0x80;let _0x458a81=_0x18ca5f[_0x5e69b9];return _0x458a81;},_0x5e69(_0x30d931,_0xefada2);}var vr={'tag':_0x51fc53(0x2a1),'attrs':{'fill':_0x51fc53(0x266),'viewBox':'0\x200\x2016\x2016','width':_0x51fc53(0x146),'height':_0x51fc53(0x146)},'children':[{'tag':'g','attrs':{'clipPath':_0x51fc53(0x3b8)},'children':[{'tag':_0x51fc53(0x37a),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x51fc53(0x26c),'strokeLinejoin':_0x51fc53(0x26c),'strokeWidth':1.2}}]},{'tag':_0x51fc53(0x264),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x51fc53(0x34b)},'children':[{'tag':_0x51fc53(0x37a),'attrs':{'fill':_0x51fc53(0x234),'d':_0x51fc53(0x22d)}}]}]}],'defIds':[_0x51fc53(0x34b)]},Ns=_0x4ddef2(function(_0x109bf0,_0x4d8066){const _0xb6655c=_0x51fc53;return _0x153699(yt,Object[_0xb6655c(0x219)]({},_0x109bf0,{'id':_0xb6655c(0xc1),'ref':_0x4d8066,'icon':vr}));});Ns[_0x51fc53(0x378)]=_0x51fc53(0x96);var pr={'tag':'svg','attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x51fc53(0x146)},'children':[{'tag':'g','attrs':{'clipPath':_0x51fc53(0x140)},'children':[{'tag':_0x51fc53(0x37a),'attrs':{'stroke':_0x51fc53(0x19f),'d':_0x51fc53(0x233),'strokeLinecap':_0x51fc53(0x26c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x51fc53(0x264),'attrs':{},'children':[{'tag':_0x51fc53(0x251),'attrs':{'id':_0x51fc53(0x1d1)},'children':[{'tag':_0x51fc53(0x37a),'attrs':{'fill':_0x51fc53(0x234),'d':_0x51fc53(0x22d),'transform':_0x51fc53(0xf5)}}]}]}],'defIds':[_0x51fc53(0x1d1)]},Ms=_0x4ddef2(function(_0x4c081f,_0x288b96){const _0xca04e9=_0x51fc53;return _0x153699(yt,Object[_0xca04e9(0x219)]({},_0x4c081f,{'id':'on-line-single','ref':_0x288b96,'icon':pr}));});Ms[_0x51fc53(0x378)]=_0x51fc53(0x1c0);const Ir=_0x51fc53(0x238),Er=_0x51fc53(0x325),Cr=_0x51fc53(0x2b5),br=_0x51fc53(0x1a0),Rr=_0x51fc53(0x2bf),ve={'onlineStatusIcon':Ir,'onlineStatusTitle':Er,'onlineStatus':Cr,'online':br,'offline':Rr};function Tr(_0xc36a94){const _0x573b10=_0x51fc53;switch(_0xc36a94){case P[_0x573b10(0x319)]:return _0x573b10(0x23e);case P[_0x573b10(0x20f)]:return _0x573b10(0xa6);case P[_0x573b10(0x252)]:return'collabStatus.fetchMiss';case P[_0x573b10(0xeb)]:return _0x573b10(0x3bc);case P[_0x573b10(0x394)]:case P[_0x573b10(0x180)]:case P['AWAITING_WITH_PENDING']:return _0x573b10(0x34d);case P['SYNCED']:return _0x573b10(0x107);}}function Or(_0x4f956d){const _0x5f5983=_0x51fc53,{status$:_0x230f30}=_0x4f956d,_0x331352=_0x282297(_0x230f30,P['NOT_COLLAB']),_0x33bfd0=_0x1d48ce(_0x201091),_0x38a066=_0x331352!==P[_0x5f5983(0x319)],_0x112ae7=_0x33bfd0['t'](Tr(_0x331352)),_0x4b19dd=_0x1a2218(ve[_0x5f5983(0x222)],{[ve[_0x5f5983(0x1d9)]]:_0x38a066,[ve[_0x5f5983(0x2fb)]]:!_0x38a066}),_0x4bac27=_0x38a066?_0x1c416c['createElement'](Ms,null):_0x1c416c[_0x5f5983(0x290)](Ns,null);return _0x1c416c[_0x5f5983(0x290)](_0x5f5983(0x341),{'className':_0x4b19dd},_0x1c416c[_0x5f5983(0x290)](_0x5f5983(0x341),{'className':ve[_0x5f5983(0x195)]},_0x4bac27),_0x1c416c[_0x5f5983(0x290)](_0x5f5983(0x341),{'className':ve[_0x5f5983(0x15a)]},_0x112ae7));}var Dr=Object[_0x51fc53(0x18f)],wr=Object[_0x51fc53(0x340)],Pr=(_0x2a247,_0x6d9707,_0x222b8e,_0x2b8ebe)=>{for(var _0x434790=_0x2b8ebe>0x1?void 0x0:_0x2b8ebe?wr(_0x6d9707,_0x222b8e):_0x6d9707,_0x146a4c=_0x2a247['length']-0x1,_0x4d9272;_0x146a4c>=0x0;_0x146a4c--)(_0x4d9272=_0x2a247[_0x146a4c])&&(_0x434790=(_0x2b8ebe?_0x4d9272(_0x6d9707,_0x222b8e,_0x434790):_0x4d9272(_0x434790))||_0x434790);return _0x2b8ebe&&_0x434790&&Dr(_0x6d9707,_0x222b8e,_0x434790),_0x434790;},Ae=(_0x18fc78,_0x83c89)=>(_0x39da67,_0x4f4f79)=>_0x83c89(_0x39da67,_0x4f4f79,_0x18fc78);let je=class extends _0x10a29c{constructor(_0x455b1f,_0x4c2f54,_0x25fb6c,_0x3ef996){const _0x5b5f8f=_0x51fc53;super(),l(this,_0x5b5f8f(0x22f),new _0x5d7d96(P['NOT_COLLAB'])),(this['_univerInstanceService']=_0x455b1f,this['_uiPartsService']=_0x4c2f54,this[_0x5b5f8f(0x342)]=_0x25fb6c,this[_0x5b5f8f(0x9e)]=_0x3ef996,this['_initStatusComponent'](),this[_0x5b5f8f(0x174)]());}['_initStatusComponent'](){const _0x490279=_0x51fc53;this[_0x490279(0x294)](this[_0x490279(0xd4)][_0x490279(0x3b3)](_0x4e424f[_0x490279(0x23f)],()=>_0x50255b(Nr({'status$':this[_0x490279(0x22f)][_0x490279(0xc8)]()}),this[_0x490279(0x342)])));}['_initStatusListener'](){const _0x12adb9=_0x51fc53;this[_0x12adb9(0x294)](_0x2f2f24(this['_univerInstanceService']['focused$']['pipe'](_0x8b3a32(()=>{const _0x3be649=_0x12adb9,_0x3d22f2=this[_0x3be649(0xa0)]['getFocusedUnit']();return _0x3d22f2?this[_0x3be649(0x9e)]['getCollabEntity$'](_0x3d22f2['getUnitId']()):_0xdadc8c(null);}),_0x8b3a32(_0x3670b1=>_0x3670b1?_0x3670b1[_0x12adb9(0x214)]:_0xdadc8c(P['NOT_COLLAB'])))[_0x12adb9(0x202)](_0x181662=>{const _0x5e5c1f=_0x12adb9;this[_0x5e5c1f(0x22f)][_0x5e5c1f(0x275)](_0x181662);})));}};je=Pr([_0x47ad3a(_0x34068b[_0x51fc53(0x11d)],je),Ae(0x0,_0x373907),Ae(0x1,_0x117aca),Ae(0x2,_0x4a7404(_0x44b6b8)),Ae(0x3,_0x4a7404(Ee))],je);function Nr(_0x5a4154){const {status$:_0x2f96fb}=_0x5a4154;return function(){return _0x1c416c['createElement'](Or,{'status$':_0x2f96fb});};}const As=_0xf73999(_0x51fc53(0x301));var Mr=Object[_0x51fc53(0x18f)],Ar=Object[_0x51fc53(0x340)],yr=(_0x51e44c,_0x2b1ebf,_0x483dae,_0x5f03c3)=>{const _0x38020f=_0x51fc53;for(var _0x71929f=_0x5f03c3>0x1?void 0x0:_0x5f03c3?Ar(_0x2b1ebf,_0x483dae):_0x2b1ebf,_0x1bc5dc=_0x51e44c[_0x38020f(0x2c6)]-0x1,_0x1a6a17;_0x1bc5dc>=0x0;_0x1bc5dc--)(_0x1a6a17=_0x51e44c[_0x1bc5dc])&&(_0x71929f=(_0x5f03c3?_0x1a6a17(_0x2b1ebf,_0x483dae,_0x71929f):_0x1a6a17(_0x71929f))||_0x71929f);return _0x5f03c3&&_0x71929f&&Mr(_0x2b1ebf,_0x483dae,_0x71929f),_0x71929f;},ce=(_0x2ff182,_0x23b1cd)=>(_0x1bb43b,_0x2a54be)=>_0x23b1cd(_0x1bb43b,_0x2a54be,_0x2ff182);let He=class extends _0x521c86{constructor(_0x1f4552,_0x25ad50,_0x3b73f9,_0x415fa9,_0x35c61a,_0xddd937){const _0x34c295=_0x51fc53;super(),this[_0x34c295(0x279)]=_0x1f4552,this[_0x34c295(0x37c)]=_0x25ad50,this[_0x34c295(0x113)]=_0x3b73f9,this[_0x34c295(0x284)]=_0x415fa9,this[_0x34c295(0x1e5)]=_0x35c61a,_0xddd937?_0xddd937==null||_0xddd937[_0x34c295(0x1b3)]()[_0x34c295(0xf4)](()=>this[_0x34c295(0x380)]()):(this[_0x34c295(0x37c)][_0x34c295(0x35e)]('[DataLoaderController]',_0x34c295(0x85)),this[_0x34c295(0x380)]());}async[_0x51fc53(0x380)](){const _0x2ded31=_0x51fc53,_0x24f778=this[_0x2ded31(0x279)][_0x2ded31(0x22e)](_0x2ded31(0x387)),_0x19c660=this[_0x2ded31(0x279)][_0x2ded31(0x22e)](_0x2ded31(0x2cd));if(!_0x24f778||!_0x19c660){this[_0x2ded31(0x37c)][_0x2ded31(0x35e)](_0x2ded31(0x3ac),_0x2ded31(0x184));return;}switch(Number(_0x19c660)){case H[_0x2ded31(0x351)]:{const _0x2064a4=await this['_loadSheet'](_0x24f778);this[_0x2ded31(0x345)](_0x2064a4);break;}case H[_0x2ded31(0x32c)]:{await this[_0x2ded31(0x203)](_0x24f778);break;}default:{this['_logService'][_0x2ded31(0x24d)]('[DataLoaderController]',_0x2ded31(0x277));break;}}}async[_0x51fc53(0x345)](_0x50a5e9){const _0x3e06ab=_0x51fc53;await this[_0x3e06ab(0x12c)](_0x50a5e9),_0x50a5e9[_0x3e06ab(0x354)][_0x3e06ab(0x2c3)](_0x1603a2(this[_0x3e06ab(0x200)]))[_0x3e06ab(0x202)](_0x553bb4=>{const _0x574176=_0x3e06ab;_0x553bb4&&this[_0x574176(0x25b)](_0x553bb4);}),this[_0x3e06ab(0x279)][_0x3e06ab(0xba)][_0x3e06ab(0x2c3)](_0x1603a2(this[_0x3e06ab(0x200)]))[_0x3e06ab(0x202)](()=>this['_updateSubUnitFromURLParams'](_0x50a5e9));}[_0x51fc53(0x25b)](_0x506a2b,_0x3bdb78=!0x1){const _0x1b4205=_0x51fc53,_0x185655=this[_0x1b4205(0x279)][_0x1b4205(0x22e)]('subunit');_0x506a2b[_0x1b4205(0x1ef)]()!==_0x185655&&this[_0x1b4205(0x279)][_0x1b4205(0x28f)](_0x1b4205(0x316),_0x506a2b['getSheetId'](),_0x3bdb78);}async['_updateSubUnitFromURLParams'](_0x3f4eb2){const _0xb156e0=_0x51fc53;var _0x300e7b;const _0x5e6a73=this[_0xb156e0(0x279)][_0xb156e0(0x22e)](_0xb156e0(0x316));if(!_0x5e6a73||!_0x3f4eb2[_0xb156e0(0x3a9)](_0x5e6a73)){const _0x5aa068=_0x3f4eb2[_0xb156e0(0x24b)]()[0x0],_0x14efbf=_0x3f4eb2[_0xb156e0(0x3a9)](_0x5aa068);if(!_0x14efbf)return;this['_updateURLWithCurrentState'](_0x14efbf,!0x0),await this[_0xb156e0(0x113)][_0xb156e0(0xaa)](_0x1c5f90['id'],{'unitId':_0x3f4eb2['getUnitId'](),'subUnitId':_0x5aa068});return;}((_0x300e7b=_0x3f4eb2['getActiveSheet']())==null?void 0x0:_0x300e7b[_0xb156e0(0x1ef)]())!==_0x5e6a73&&await this[_0xb156e0(0x113)]['executeCommand'](_0x1c5f90['id'],{'unitId':_0x3f4eb2['getUnitId'](),'subUnitId':_0x5e6a73});}async[_0x51fc53(0x29d)](_0x1ff1b8){const _0x48b6ce=_0x51fc53;let _0x50a719=0x0;const _0x40fc5f=await this[_0x48b6ce(0x284)]['loadOfflineData'](_0x1ff1b8);return _0x40fc5f&&(_0x40fc5f[_0x48b6ce(0x188)]||_0x40fc5f[_0x48b6ce(0xc7)][_0x48b6ce(0x2c6)]!==0x0)&&(_0x50a719=_0x40fc5f[_0x48b6ce(0x1eb)]),_0x50a719===0x0&&this[_0x48b6ce(0x37c)][_0x48b6ce(0x35e)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService']['loadSheet'](_0x1ff1b8,_0x50a719);}async[_0x51fc53(0x203)](_0x430c00){const _0x48f4fc=_0x51fc53;let _0x198595=0x0;const _0x44481b=await this['_localCacheService'][_0x48f4fc(0x2e5)](_0x430c00);return _0x44481b&&(_0x44481b[_0x48f4fc(0x188)]||_0x44481b['mutations'][_0x48f4fc(0x2c6)]!==0x0)&&(_0x198595=_0x44481b['rev']),_0x198595===0x0&&this[_0x48f4fc(0x37c)][_0x48f4fc(0x35e)](_0x48f4fc(0x3ac),_0x48f4fc(0x2fd)),this[_0x48f4fc(0x1e5)][_0x48f4fc(0x333)](_0x430c00,_0x198595);}};He=yr([_0x47ad3a(_0x34068b[_0x51fc53(0x11d)],He),ce(0x0,As),ce(0x1,_0x3cb271),ce(0x2,_0x568418),ce(0x3,_0x4a7404(D)),ce(0x4,_0x4a7404(_0x3cc45f)),ce(0x5,_0x19d484(_0x34d98a))],He);var Ur=Object['defineProperty'],Lr=Object[_0x51fc53(0x340)],$r=(_0x1ce377,_0x5d8daf,_0x4de595,_0x5ab057)=>{const _0x36d585=_0x51fc53;for(var _0x275d5c=_0x5ab057>0x1?void 0x0:_0x5ab057?Lr(_0x5d8daf,_0x4de595):_0x5d8daf,_0x496754=_0x1ce377[_0x36d585(0x2c6)]-0x1,_0x493bf2;_0x496754>=0x0;_0x496754--)(_0x493bf2=_0x1ce377[_0x496754])&&(_0x275d5c=(_0x5ab057?_0x493bf2(_0x5d8daf,_0x4de595,_0x275d5c):_0x493bf2(_0x275d5c))||_0x275d5c);return _0x5ab057&&_0x275d5c&&Ur(_0x5d8daf,_0x4de595,_0x275d5c),_0x275d5c;},Qt=(_0x37c3f1,_0x2b9945)=>(_0x3356e6,_0x384723)=>_0x2b9945(_0x3356e6,_0x384723,_0x37c3f1);const jr='DEFAULT_FILE_NAME',Hr=_0x51fc53(0x29a);let xe=class extends _0x10a29c{constructor(_0x37cdb1,_0x240c4a){const _0x1dd3f7=_0x51fc53;super(),this[_0x1dd3f7(0xa0)]=_0x37cdb1,this['_configService']=_0x240c4a,this['_init']();}[_0x51fc53(0x380)](){const _0xfe6601=_0x51fc53;this[_0xfe6601(0x294)](_0x2f2f24(this['_univerInstanceService'][_0xfe6601(0x111)][_0xfe6601(0x202)](()=>{const _0x31a84b=_0xfe6601;var _0x1292e7;const _0x533c53=this['_univerInstanceService'][_0x31a84b(0x2ed)]();let _0x3ed0c4=(_0x1292e7=this[_0x31a84b(0x2c4)][_0x31a84b(0xf0)](jr))!=null?_0x1292e7:Hr;_0x533c53 instanceof _0x3b5c47&&(_0x3ed0c4=_0x533c53[_0x31a84b(0x3a4)]),document[_0x31a84b(0x1cf)]=_0x3ed0c4;})));}};xe=$r([_0x47ad3a(_0x34068b[_0x51fc53(0x2d1)],xe),Qt(0x0,_0x373907),Qt(0x1,_0x5977ca)],xe);var xr=Object[_0x51fc53(0x18f)],Fr=Object[_0x51fc53(0x340)],Br=(_0x43b690,_0x2eb3d8,_0x33a336,_0x426f83)=>{const _0x534fd5=_0x51fc53;for(var _0x24b915=_0x426f83>0x1?void 0x0:_0x426f83?Fr(_0x2eb3d8,_0x33a336):_0x2eb3d8,_0x1255e5=_0x43b690[_0x534fd5(0x2c6)]-0x1,_0x16118e;_0x1255e5>=0x0;_0x1255e5--)(_0x16118e=_0x43b690[_0x1255e5])&&(_0x24b915=(_0x426f83?_0x16118e(_0x2eb3d8,_0x33a336,_0x24b915):_0x16118e(_0x24b915))||_0x24b915);return _0x426f83&&_0x24b915&&xr(_0x2eb3d8,_0x33a336,_0x24b915),_0x24b915;},es=(_0x244d66,_0x392929)=>(_0x3748d4,_0x44fe15)=>_0x392929(_0x3748d4,_0x44fe15,_0x244d66);let St=class{constructor(_0x795034,_0x2352e6){const _0x4e8660=_0x51fc53;this[_0x4e8660(0x2c4)]=_0x795034,this[_0x4e8660(0x322)]=_0x2352e6;}async['getUnitOnRev'](_0x3ab2de,_0xc9e530){const _0x4d3fa0=_0x51fc53;var _0x3e2fcd;const {unitID:_0x4e90a4,type:_0x1e485f,revision:_0x125bea=0x0}=_0xc9e530,_0x51bafb=this['_getSnapshotAPIPrefix']()+'/'+_0x1e485f+_0x4d3fa0(0xea)+_0x4e90a4+_0x4d3fa0(0x20e)+(_0x125bea===0x1?0x0:_0x125bea),_0x5b1371=(await this[_0x4d3fa0(0x322)][_0x4d3fa0(0x151)](_0x51bafb))['body'],_0x2be83f=(_0x3e2fcd=_0x5b1371[_0x4d3fa0(0x99)])==null?void 0x0:_0x3e2fcd[_0x4d3fa0(0x23b)];if(_0x2be83f){const _0x13647f=_0x2be83f==null?void 0x0:_0x2be83f[_0x4d3fa0(0x2b0)],_0x241104=_0x56aec7[_0x4d3fa0(0x2cc)](_0x5ad4b1(_0x13647f));_0x2be83f['originalMeta']=_0x241104,Object[_0x4d3fa0(0xfa)](_0x2be83f[_0x4d3fa0(0x1b6)])[_0x4d3fa0(0x124)](([,_0x488581])=>{const _0x571898=_0x4d3fa0,_0x989d14=_0x488581[_0x571898(0x2b0)],_0x2cec61=_0x56aec7[_0x571898(0x2cc)](_0x5ad4b1(_0x989d14));_0x488581[_0x571898(0x2b0)]=_0x2cec61;});}return _0x5b1371;}async['getSheetBlock'](_0x221d6e,_0x5c783e){const _0x34c514=_0x51fc53,{unitID:_0x20350f,type:_0x43208e,blockID:_0x38a3dc}=_0x5c783e,_0xb5c9f7=this[_0x34c514(0x33b)]()+'/'+_0x43208e+_0x34c514(0xea)+_0x20350f+_0x34c514(0x8d)+_0x38a3dc;return(await this['_httpService']['get'](_0xb5c9f7))[_0x34c514(0x211)];}async[_0x51fc53(0x28a)](_0x1d821a,_0x2bc082){const _0x7b4403=_0x51fc53,{unitID:_0x56673c,type:_0x4051c9,from:_0x128600,to:_0x12a5f8}=_0x2bc082,_0x290ee7=this[_0x7b4403(0x33b)]()+'/'+_0x4051c9+_0x7b4403(0xea)+_0x56673c+_0x7b4403(0x31d)+_0x128600+_0x7b4403(0x350)+_0x12a5f8;return(await this[_0x7b4403(0x322)]['get'](_0x290ee7))['body'];}[_0x51fc53(0xbb)](){const _0x4e9cbe=_0x51fc53;var _0x3d17f8;return(_0x3d17f8=this[_0x4e9cbe(0x2c4)][_0x4e9cbe(0xf0)](Ki))!=null?_0x3d17f8:this[_0x4e9cbe(0x33b)]();}[_0x51fc53(0x33b)](){const _0x4d2c34=_0x51fc53;var _0x6a4d0e;return(_0x6a4d0e=this['_configService'][_0x4d2c34(0xf0)](Gi))!=null?_0x6a4d0e:Yi;}async[_0x51fc53(0x254)](_0x5aab87,_0xffd7){const _0x508352=_0x51fc53,_0x19770a=_0x508352(0x38a)+_0xffd7[_0x508352(0x2cd)]+_0x508352(0xea)+_0xffd7[_0x508352(0x1b1)]+_0x508352(0x2f3);return(await this[_0x508352(0x322)][_0x508352(0x151)](_0x19770a,{'params':{'resourceId':JSON[_0x508352(0x2ea)](_0xffd7[_0x508352(0x2d3)])}}))['body'];}[_0x51fc53(0x1d7)](){const _0x1a18ca=_0x51fc53;throw new Error(_0x1a18ca(0x392));}[_0x51fc53(0x230)](){const _0x184597=_0x51fc53;throw new Error(_0x184597(0x392));}[_0x51fc53(0x369)](){const _0x1f601b=_0x51fc53;throw new Error(_0x1f601b(0x392));}};St=Br([es(0x0,_0x5977ca),es(0x1,_0x4a7404(_0x142257))],St);var kr=Object[_0x51fc53(0x18f)],Vr=Object[_0x51fc53(0x340)],Wr=(_0x2cf364,_0x1b30a4,_0x17ed22,_0x28bf95)=>{const _0x56421c=_0x51fc53;for(var _0x5158a1=_0x28bf95>0x1?void 0x0:_0x28bf95?Vr(_0x1b30a4,_0x17ed22):_0x1b30a4,_0x5a074b=_0x2cf364[_0x56421c(0x2c6)]-0x1,_0x2bc17b;_0x5a074b>=0x0;_0x5a074b--)(_0x2bc17b=_0x2cf364[_0x5a074b])&&(_0x5158a1=(_0x28bf95?_0x2bc17b(_0x1b30a4,_0x17ed22,_0x5158a1):_0x2bc17b(_0x5158a1))||_0x5158a1);return _0x28bf95&&_0x5158a1&&kr(_0x1b30a4,_0x17ed22,_0x5158a1),_0x5158a1;},pe=(_0x3b77c7,_0x5d4d44)=>(_0x529849,_0x2f263b)=>_0x5d4d44(_0x529849,_0x2f263b,_0x3b77c7);let vt=class extends _0x31c064{constructor(_0x3aa2d0,_0x45875b,_0x1a7b6f,_0x13716e,_0x169bd9){const _0x2d4c9a=_0x51fc53;super(_0x3aa2d0,_0x45875b,_0x1a7b6f),this[_0x2d4c9a(0x102)]=_0x13716e,this[_0x2d4c9a(0x37c)]=_0x169bd9;}['transformUndoRedo'](_0x5d4d3d,_0x420bf3){const _0x63f982=_0x51fc53,_0xb30bad=this['_getUndoStack'](_0x5d4d3d);if(_0xb30bad)try{const _0xb4686b=this[_0x63f982(0x13e)](_0xb30bad,_0x420bf3);this[_0x63f982(0x2e8)](_0x5d4d3d,_0xb4686b);}catch(_0x212bec){this[_0x63f982(0x37c)][_0x63f982(0x24d)]('[CollaborationUndoRedoService]',_0x212bec),this[_0x63f982(0x115)](_0x5d4d3d);}const _0x2c305c=this[_0x63f982(0x212)](_0x5d4d3d);if(_0x2c305c)try{const _0x25b781=this[_0x63f982(0x13e)](_0x2c305c,_0x420bf3);this[_0x63f982(0x9b)](_0x5d4d3d,_0x25b781);}catch(_0x6ff79f){this[_0x63f982(0x37c)][_0x63f982(0x24d)](_0x6ff79f),this['_clearRedo'](_0x5d4d3d);}}['_clearUndo'](_0x5dd228){const _0x8b4927=_0x51fc53,_0x5b413f=this[_0x8b4927(0x2ab)](_0x5dd228);_0x5b413f&&(_0x5b413f[_0x8b4927(0x2c6)]=0x0,this['_updateStatus']());}[_0x51fc53(0x28d)](_0x37adb9){const _0x30b986=_0x51fc53,_0x4c8b3a=this[_0x30b986(0x212)](_0x37adb9);_0x4c8b3a&&(_0x4c8b3a[_0x30b986(0x2c6)]=0x0,this[_0x30b986(0x10d)]());}[_0x51fc53(0x2e8)](_0x2ab625,_0x2adda5){const _0x2e7c85=_0x51fc53;this[_0x2e7c85(0x315)][_0x2e7c85(0x38f)](_0x2ab625,_0x2adda5),this[_0x2e7c85(0x10d)]();}['_substituteRedoStack'](_0x6f5f2d,_0x231683){const _0x318bfd=_0x51fc53;this[_0x318bfd(0x371)][_0x318bfd(0x38f)](_0x6f5f2d,_0x231683),this[_0x318bfd(0x10d)]();}['_transformStack'](_0x448282,_0x3c920d){const _0x45310d=_0x51fc53,_0x9391aa=[];let _0x489b8b=_0x3c920d,_0x275dfb=_0x3c920d;for(let _0xcda683=_0x448282['length']-0x1;_0xcda683>=0x0;_0xcda683--){const {unitID:_0x5db419,undoMutations:_0x2a10b0,redoMutations:_0x173387}=_0x448282[_0xcda683],_0x30349c=this[_0x45310d(0x102)][_0x45310d(0x3bd)](_0x489b8b,_0x2a10b0),_0x4749c2=this['_transformService'][_0x45310d(0x3bd)](_0x275dfb,_0x173387);if(_0x4c2f5b(_0x30349c)||_0x4c2f5b(_0x4749c2)){this['_logService'][_0x45310d(0x24d)](_0x45310d(0xbd),'transformStack\x20failed!',_0x30349c,_0x4749c2);break;}_0x489b8b=_0x30349c[_0x45310d(0x3ab)],_0x275dfb=_0x4749c2[_0x45310d(0x3ab)],_0x9391aa[_0x45310d(0x19d)]({'unitID':_0x5db419,'undoMutations':_0x30349c['m2Prime'],'redoMutations':_0x4749c2[_0x45310d(0x30f)]});}return _0x9391aa[_0x45310d(0x204)]();}};vt=Wr([pe(0x0,_0x373907),pe(0x1,_0x568418),pe(0x2,_0x187fc2),pe(0x3,_0x425e9b),pe(0x4,_0x3cb271)],vt);class Gr extends _0x521c86{constructor(){const _0xee9426=_0x51fc53;super(),l(this,_0xee9426(0xba)),this[_0xee9426(0xba)]=_0x1860dc(window,_0xee9426(0x1b9))[_0xee9426(0x2c3)](_0x1603a2(this[_0xee9426(0x200)]),_0xcf2b53(0x1),_0x154121(void 0x0));}[_0x51fc53(0x28f)](_0x4906b2,_0x11a59f,_0x596a9a=!0x1){const _0xbbedff=_0x51fc53,_0x328294=new URL(window[_0xbbedff(0x21e)][_0xbbedff(0x283)]);_0x328294[_0xbbedff(0x24f)]['set'](_0x4906b2,_0x11a59f),_0x596a9a?window[_0xbbedff(0x220)][_0xbbedff(0xe2)]('','',_0x328294[_0xbbedff(0x1bd)]()):window[_0xbbedff(0x220)][_0xbbedff(0x100)]('','',_0x328294[_0xbbedff(0x1bd)]());}[_0x51fc53(0x2bb)](_0x564215,_0x452a9c=!0x1){const _0x4b1fa5=_0x51fc53,_0x383b71=new URL(window[_0x4b1fa5(0x21e)][_0x4b1fa5(0x283)]);_0x383b71[_0x4b1fa5(0x24f)][_0x4b1fa5(0x209)](_0x564215),_0x452a9c?window[_0x4b1fa5(0x220)]['replaceState']('','',_0x383b71[_0x4b1fa5(0x1bd)]()):window[_0x4b1fa5(0x220)][_0x4b1fa5(0x100)]('','',_0x383b71[_0x4b1fa5(0x1bd)]());}[_0x51fc53(0x22e)](_0x4df53e){const _0x25b318=_0x51fc53;var _0x34bfe9;return(_0x34bfe9=new URL(window['location']['href'])[_0x25b318(0x24f)][_0x25b318(0x151)](_0x4df53e))!=null?_0x34bfe9:void 0x0;}}const nt=_0x51fc53(0x3bf),Yr=_0x51fc53(0x1d0),ye=0x6,Kr=1.5,rt=0x4,Xr=1.5,Jr=_0x51fc53(0x1c5);class zr{constructor(_0x5b3b58,_0x44b679,_0x15d0f7,_0x3034a3){const _0x76bfed=_0x51fc53;l(this,_0x76bfed(0x35f),[]),l(this,_0x76bfed(0x33f),null),l(this,_0x76bfed(0xa1),null),l(this,_0x76bfed(0x27f),null),l(this,_0x76bfed(0x1c3),null),l(this,'_eventUnsubscribe',null),(this[_0x76bfed(0x189)]=_0x5b3b58,this[_0x76bfed(0x2c9)]=_0x44b679,this[_0x76bfed(0x3ae)]=_0x15d0f7,this[_0x76bfed(0x323)]=_0x3034a3,this[_0x76bfed(0x18a)]());}set['_hover'](_0x36f882){const _0x5a86ef=_0x51fc53;_0x36f882?(this[_0x5a86ef(0x27f)]&&this[_0x5a86ef(0x27f)][_0x5a86ef(0x317)](),this['_textBubble']&&this[_0x5a86ef(0xa1)]['show']()):(this['_anchorDot']&&this[_0x5a86ef(0x27f)][_0x5a86ef(0x25c)](),this[_0x5a86ef(0xa1)]&&this[_0x5a86ef(0xa1)][_0x5a86ef(0x317)]());}[_0x51fc53(0x232)](){const _0x582a7f=_0x51fc53;for(const _0x22a518 of this[_0x582a7f(0x35f)])_0x22a518['dispose']();this[_0x582a7f(0xa1)]&&this[_0x582a7f(0xa1)]['dispose'](),this[_0x582a7f(0x27f)]&&this[_0x582a7f(0x27f)][_0x582a7f(0x232)](),this[_0x582a7f(0x33f)]&&this['_anchor'][_0x582a7f(0x232)](),this[_0x582a7f(0xb3)]&&this[_0x582a7f(0xb3)]();}['_render'](){const _0x2b3224=_0x51fc53,{_docSkeleton:_0x344251,_document:_0x5b9fbb}=this,{color:_0x16170b,name:_0x273f87,ranges:_0x2e431b}=this[_0x2b3224(0x189)],_0x4a42eb=_0x5b9fbb['getOffsetConfig'](),{docsLeft:_0x48cb86,docsTop:_0x5a33b6}=_0x4a42eb,_0x2a5417=new _0x1dca35(_0x4a42eb,_0x344251);for(const {startOffset:_0x1a81d3,endOffset:_0x2de3c7,collapsed:_0x5f0ec4,isActive:_0x22765c}of _0x2e431b){const _0x194e97=_0x344251[_0x2b3224(0x367)](_0x1a81d3),_0xe9f137=_0x344251[_0x2b3224(0x367)](_0x2de3c7);if(_0x22765c){const {contentBoxPointGroup:_0x3bf2d5}=_0x2a5417['getRangePointData'](_0xe9f137,_0xe9f137);if(_0x3bf2d5[_0x2b3224(0x2c6)]===0x0)continue;this[_0x2b3224(0x25e)](_0x16170b,_0x3bf2d5,_0x48cb86,_0x5a33b6,_0x273f87),this['_eventUnsubscribe']=this[_0x2b3224(0x14a)]();}if(!_0x5f0ec4){const {contentBoxPointGroup:_0x26098f}=_0x2a5417[_0x2b3224(0x1cd)](_0x194e97,_0xe9f137);if(_0x26098f[_0x2b3224(0x2c6)]===0x0)continue;this[_0x2b3224(0x262)](_0x16170b,_0x26098f,_0x48cb86,_0x5a33b6);}}}[_0x51fc53(0x25e)](_0x285c9d,_0x58b1a8,_0x4bf05e,_0x16ef25,_0x351c4c){const _0x53dfc4=_0x51fc53,_0x4a180c=this[_0x53dfc4(0x1b5)](_0x58b1a8),{left:_0x3df936,top:_0x4f504d,height:_0x5af7f0}=_0x4a180c,_0x24ed40=this['_getScale'](),_0x14488d=Xr/_0x24ed40,_0x3b46d9=new _0xbeb8e4(nt+_0x4cfbd7['generateRandomId'](ye),{'left':_0x3df936+_0x4bf05e-_0x14488d,'top':_0x4f504d+_0x16ef25,'height':_0x5af7f0,'width':Kr,'fill':_0x285c9d||_0x43e11f(_0x131343[_0x53dfc4(0x2b4)],0x0),'strokeWidth':_0x14488d,'stroke':Jr,'evented':!0x0});this['_anchor']=_0x3b46d9,this['_scene'][_0x53dfc4(0x104)](_0x3b46d9,_0x337814);const _0x29f7e5=new _0xbeb8e4(nt+_0x4cfbd7['generateRandomId'](ye),{'left':_0x3df936+_0x4bf05e-_0x14488d,'top':_0x4f504d+_0x16ef25-rt/0x2,'height':rt,'width':rt,'fill':_0x285c9d||_0x43e11f(_0x131343[_0x53dfc4(0x2b4)],0x0),'strokeWidth':0x0,'stroke':_0x285c9d||_0x43e11f(_0x131343[_0x53dfc4(0x2b4)],0x0),'evented':!0x1});this[_0x53dfc4(0x27f)]=_0x29f7e5,this[_0x53dfc4(0x2c9)][_0x53dfc4(0x104)](_0x29f7e5,_0x337814);const _0xcab3c4=new ze(nt+_0x4cfbd7[_0x53dfc4(0x300)](ye),{'left':_0x3df936+_0x4bf05e-_0x14488d,'top':_0x4f504d+_0x16ef25-Oe,'text':_0x351c4c,'color':_0x285c9d});this[_0x53dfc4(0xa1)]=_0xcab3c4,this[_0x53dfc4(0x2c9)][_0x53dfc4(0x104)](_0xcab3c4,_0x337814),this[_0x53dfc4(0xcc)]=!0x1;}[_0x51fc53(0x14a)](){const _0x463eea=_0x51fc53,_0xe36abd=this[_0x463eea(0x33f)][_0x463eea(0x169)][_0x463eea(0x2d7)](()=>{this['_hover']=!0x0;}),_0x35ac9a=this['_anchor'][_0x463eea(0x3b1)]['subscribeEvent'](()=>{const _0x8d9d23=_0x463eea;this[_0x8d9d23(0x1c3)]&&clearTimeout(this[_0x8d9d23(0x1c3)]),this['_hideTimer']=setTimeout(()=>{const _0x2a6c33=_0x8d9d23;this[_0x2a6c33(0xcc)]=!0x1;},0x7d0);});return()=>{const _0x355fdd=_0x463eea;_0xe36abd[_0x355fdd(0x11a)](),_0x35ac9a[_0x355fdd(0x11a)]();};}[_0x51fc53(0x262)](_0x45c19e,_0x31005a,_0xe1c3f0,_0x208414){const _0x3a0318=_0x51fc53,_0xf823d=new _0x3dc381(_0x45c19e)[_0x3a0318(0x375)](0.2)[_0x3a0318(0x313)](),_0x5a3d3b=new _0x3c2aad(Yr+_0x4cfbd7[_0x3a0318(0x300)](ye),{'pointsGroup':_0x31005a,'fill':_0xf823d||_0x43e11f(_0x131343[_0x3a0318(0x2b4)],0.2),'left':_0xe1c3f0,'top':_0x208414,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3a0318(0x35f)][_0x3a0318(0x19d)](_0x5a3d3b),this[_0x3a0318(0x2c9)][_0x3a0318(0x104)](_0x5a3d3b,_0x337814);}[_0x51fc53(0x1b5)](_0x4098da){const _0x31ae0b=_0x4098da[0x0],_0x491a82=_0x31ae0b[0x0],_0x40c974=_0x31ae0b[0x2],{x:_0x2d6929,y:_0x11a22e}=_0x491a82,{x:_0x2f0026,y:_0x1c04a6}=_0x40c974;return{'left':_0x2d6929,'top':_0x11a22e,'width':_0x2f0026-_0x2d6929,'height':_0x1c04a6-_0x11a22e};}[_0x51fc53(0x15c)](){const _0x60938d=_0x51fc53,{scaleX:_0x5e995c,scaleY:_0x333b77}=this['_scene'][_0x60938d(0x242)]();return Math[_0x60938d(0x216)](_0x5e995c,_0x333b77);}}var Zr=Object[_0x51fc53(0x18f)],qr=Object[_0x51fc53(0x340)],Qr=(_0x4dd2bf,_0x2d4317,_0x41fbed,_0x1f3d6d)=>{const _0x4d8756=_0x51fc53;for(var _0x2b95b1=_0x1f3d6d>0x1?void 0x0:_0x1f3d6d?qr(_0x2d4317,_0x41fbed):_0x2d4317,_0x45ace2=_0x4dd2bf[_0x4d8756(0x2c6)]-0x1,_0x5cfa7;_0x45ace2>=0x0;_0x45ace2--)(_0x5cfa7=_0x4dd2bf[_0x45ace2])&&(_0x2b95b1=(_0x1f3d6d?_0x5cfa7(_0x2d4317,_0x41fbed,_0x2b95b1):_0x5cfa7(_0x2b95b1))||_0x2b95b1);return _0x1f3d6d&&_0x2b95b1&&Zr(_0x2d4317,_0x41fbed,_0x2b95b1),_0x2b95b1;},Ie=(_0x17d987,_0x3d87d0)=>(_0x2c24b7,_0x22380c)=>_0x3d87d0(_0x2c24b7,_0x22380c,_0x17d987);let Fe=class extends _0x521c86{constructor(_0x34c42b,_0x2527df,_0x58cbde,_0x566d10,_0x1ebbea){const _0x2ecbb8=_0x51fc53;super(),l(this,_0x2ecbb8(0xd3),[]),(this[_0x2ecbb8(0x84)]=_0x34c42b,this[_0x2ecbb8(0xa0)]=_0x2527df,this[_0x2ecbb8(0x27d)]=_0x58cbde,this[_0x2ecbb8(0x33d)]=_0x566d10,this[_0x2ecbb8(0x16b)]=_0x1ebbea,this[_0x2ecbb8(0x380)]());}[_0x51fc53(0x380)](){const _0x17cf66=_0x51fc53;this['_docSkeletonManagerService'][_0x17cf66(0x391)][_0x17cf66(0x2c3)](_0x430c3c(this[_0x17cf66(0x200)]),_0xb49a6c(_0x479d67=>{const _0x540c3d=_0x17cf66;if(_0x479d67){const _0x4e9172=_0x479d67[_0x540c3d(0x38b)]()[_0x540c3d(0x1d8)]()['getUnitId']();return _0x73b353(this[_0x540c3d(0x84)]['getCollabCursors$'](_0x4e9172),this['_themeService'][_0x540c3d(0x1a7)])['pipe'](_0x1db2aa(([_0x5849ec,_0x3fa34e])=>({'skeleton':_0x479d67,'cursors':[..._0x5849ec['values']()][_0x540c3d(0x32d)](_0x3e94e9=>({..._0x3e94e9,'color':_0x3fa34e[_0x3e94e9['color']]}))})));}return _0xdadc8c({'skeleton':null,'cursors':[]});}))['subscribe'](({skeleton:_0x23c430,cursors:_0x18e555})=>{const _0x3769c0=_0x17cf66;this['_removeCollabCursors'](),_0x23c430&&this[_0x3769c0(0xc4)](_0x23c430,_0x18e555);});}['_updateCollabCursors'](_0xafc56f,_0x410077){const _0x310c98=_0x51fc53,_0x3db473=this['_getDocObject']();if(_0x3db473==null)return;const {scene:_0xebc0b4,document:_0x5bfcdd}=_0x3db473,_0x1c103e=_0x410077[_0x310c98(0xab)](_0x3b6563=>new zr(_0x3b6563,_0xebc0b4,_0xafc56f,_0x5bfcdd));this[_0x310c98(0xd3)]=_0x1c103e;}[_0x51fc53(0xb9)](){const _0x5ce5a1=_0x51fc53;this[_0x5ce5a1(0xd3)][_0x5ce5a1(0x124)](_0x2dc77b=>_0x2dc77b[_0x5ce5a1(0x232)]()),this[_0x5ce5a1(0xd3)]=[];}[_0x51fc53(0x307)](){return _0x3248cd(this['_univerInstanceService'],this['_renderManagerService']);}};Fe=Qr([_0x47ad3a(_0x34068b[_0x51fc53(0x8c)],Fe),Ie(0x0,_0x4a7404(ue)),Ie(0x1,_0x373907),Ie(0x2,_0x39c4de),Ie(0x3,_0x4a7404(_0x46f5a8)),Ie(0x4,_0x4a7404(_0x522711))],Fe);var eo=Object[_0x51fc53(0x18f)],to=Object[_0x51fc53(0x340)],so=(_0x5379dd,_0x8f940d,_0x676140,_0x10c8d3)=>{const _0x171903=_0x51fc53;for(var _0xcfa7d5=_0x10c8d3>0x1?void 0x0:_0x10c8d3?to(_0x8f940d,_0x676140):_0x8f940d,_0x494386=_0x5379dd[_0x171903(0x2c6)]-0x1,_0x5baf05;_0x494386>=0x0;_0x494386--)(_0x5baf05=_0x5379dd[_0x494386])&&(_0xcfa7d5=(_0x10c8d3?_0x5baf05(_0x8f940d,_0x676140,_0xcfa7d5):_0x5baf05(_0xcfa7d5))||_0xcfa7d5);return _0x10c8d3&&_0xcfa7d5&&eo(_0x8f940d,_0x676140,_0xcfa7d5),_0xcfa7d5;},ot=(_0xfa0cab,_0x275708)=>(_0x14fdaf,_0x4fe415)=>_0x275708(_0x14fdaf,_0x4fe415,_0xfa0cab);let Ge=class{constructor(_0x375a7c,_0x5a2bc1,_0x201ceb){const _0x2c7bee=_0x51fc53;this[_0x2c7bee(0x2c4)]=_0x375a7c,this[_0x2c7bee(0x322)]=_0x5a2bc1,this[_0x2c7bee(0x2c7)]=_0x201ceb,this[_0x2c7bee(0x191)]();}[_0x51fc53(0x191)](){const _0x553ec9=_0x51fc53;this[_0x553ec9(0x322)][_0x553ec9(0x194)]({'priority':0x1,'interceptor':(_0x4cbe47,_0x178f40)=>_0x178f40(_0x4cbe47)[_0x553ec9(0x2c3)](_0x22cd34(async _0x152be6=>{const _0x47dea4=_0x553ec9,_0x28d351=_0x152be6;if(_0x28d351['status']===0x191&&window[_0x47dea4(0x10a)](this[_0x47dea4(0x2c7)]['t'](_0x47dea4(0x24c)))){const _0xc573d2=window[_0x47dea4(0x19b)](window['location'][_0x47dea4(0x283)]);window[_0x47dea4(0x21e)][_0x47dea4(0x283)]=this[_0x47dea4(0x2de)]()+_0x47dea4(0x37e)+_0xc573d2;}return _0x28d351;}))});}[_0x51fc53(0x2de)](){const _0x2d1116=_0x51fc53;var _0x5d0f7e;return(_0x5d0f7e=this[_0x2d1116(0x2c4)][_0x2d1116(0xf0)](hn))!=null?_0x5d0f7e:ln;}};Ge=so([ot(0x0,_0x5977ca),ot(0x1,_0x4a7404(_0x142257)),ot(0x2,_0x4a7404(_0x201091))],Ge);var io=Object['defineProperty'],no=Object['getOwnPropertyDescriptor'],ro=(_0xf92792,_0x20849d,_0x50789d,_0x9f8557)=>{const _0x3744d4=_0x51fc53;for(var _0x1b8657=_0x9f8557>0x1?void 0x0:_0x9f8557?no(_0x20849d,_0x50789d):_0x20849d,_0x22207a=_0xf92792[_0x3744d4(0x2c6)]-0x1,_0x806c88;_0x22207a>=0x0;_0x22207a--)(_0x806c88=_0xf92792[_0x22207a])&&(_0x1b8657=(_0x9f8557?_0x806c88(_0x20849d,_0x50789d,_0x1b8657):_0x806c88(_0x1b8657))||_0x1b8657);return _0x9f8557&&_0x1b8657&&io(_0x20849d,_0x50789d,_0x1b8657),_0x1b8657;},ts=(_0x1da48b,_0x2596fc)=>(_0x3486db,_0x2c4f4b)=>_0x2596fc(_0x3486db,_0x2c4f4b,_0x1da48b);const oo='AUTHZ_URL_KEY',ao=_0x51fc53(0x120);let pt=class{constructor(_0x492a0d,_0xaf874f){const _0x3b94c5=_0x51fc53;this[_0x3b94c5(0x330)]=_0x492a0d,this[_0x3b94c5(0x2c4)]=_0xaf874f;}[_0x51fc53(0x1fb)](){const _0x1bd5d3=_0x51fc53;var _0xd7f3bf;return(_0xd7f3bf=this[_0x1bd5d3(0x2c4)][_0x1bd5d3(0xf0)](oo))!=null?_0xd7f3bf:ao;}async['create'](_0x18ebd9){const _0x4c2d47=_0x51fc53,_0x1d05f6=this[_0x4c2d47(0x1fb)]()+'/'+_0x18ebd9[_0x4c2d47(0xe0)]+_0x4c2d47(0xb1);return(await this[_0x4c2d47(0x330)][_0x4c2d47(0x13a)](_0x1d05f6,{'body':_0x18ebd9}))['body'][_0x4c2d47(0x332)]||'';}async['list'](_0xeb91d6){const _0x843e70=_0x51fc53,_0x4b1bf6=this[_0x843e70(0x1fb)]()+'/-/object/list';return(await this[_0x843e70(0x330)]['post'](_0x4b1bf6,{'body':_0xeb91d6}))[_0x843e70(0x211)]['objects'];}async[_0x51fc53(0x1d3)](_0x3f4715){const _0xc9fbc1=_0x51fc53,_0x383900=this[_0xc9fbc1(0x1fb)]()+'/'+_0x3f4715['objectType']+_0xc9fbc1(0x1af)+_0x3f4715['objectID'];await this['_HTTPService'][_0xc9fbc1(0x19a)](_0x383900,{'body':_0x3f4715});}async['allowed'](_0x341733){const _0x75c6ca=_0x51fc53,_0x8dec2f=this[_0x75c6ca(0x1fb)]()+'/'+_0x341733['objectType']+_0x75c6ca(0x1af)+_0x341733[_0x75c6ca(0x332)]+_0x75c6ca(0xb8);return(await this[_0x75c6ca(0x330)][_0x75c6ca(0x13a)](_0x8dec2f,{'body':_0x341733}))[_0x75c6ca(0x211)]['actions'];}async[_0x51fc53(0x160)](_0x469e93){const _0x30b7b9=_0x51fc53,_0x24be86=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this[_0x30b7b9(0x330)][_0x30b7b9(0x13a)](_0x24be86,{'body':{'requests':_0x469e93}}))['body'][_0x30b7b9(0x2e0)];}async['listRoles'](_0x489096){const _0x50c006=_0x51fc53,_0x20897e=this['_getAPIPrefixPath']()+'/'+_0x489096[_0x50c006(0xe0)]+'/role',_0x1c3586=await this['_HTTPService'][_0x50c006(0x13a)](_0x20897e,{'body':_0x489096});return{'roles':_0x1c3586[_0x50c006(0x211)][_0x50c006(0x2d9)],'actions':_0x1c3586[_0x50c006(0x211)]['actions']};}async[_0x51fc53(0x31e)](_0x60e51d){const _0x1c7dd6=_0x51fc53,_0x40ed25=this[_0x1c7dd6(0x1fb)]()+_0x1c7dd6(0x270);await this['_HTTPService']['delete'](_0x40ed25,{'params':{'collaboratorID':_0x60e51d[_0x1c7dd6(0x28b)],'objectID':_0x60e51d['objectID'],'unitID':_0x60e51d['unitID']}});}async[_0x51fc53(0x149)](_0x3b843b){const _0x1221fb=_0x51fc53,_0x57ec72=this[_0x1221fb(0x1fb)]()+_0x1221fb(0x270);await this[_0x1221fb(0x330)][_0x1221fb(0x1f9)](_0x57ec72,{'body':_0x3b843b});}async[_0x51fc53(0x1fe)](_0x368d2e){const _0x552394=_0x51fc53,_0xd14a09=this['_getAPIPrefixPath']()+_0x552394(0x270);await this[_0x552394(0x330)][_0x552394(0x13a)](_0xd14a09,{'body':_0x368d2e});}async[_0x51fc53(0x2aa)](_0x34f926){const _0x36bfb0=_0x51fc53,_0x985755=this[_0x36bfb0(0x1fb)]()+_0x36bfb0(0x270);return(await this[_0x36bfb0(0x330)]['get'](_0x985755,{'params':{'objectID':_0x34f926[_0x36bfb0(0x332)],'unitID':_0x34f926[_0x36bfb0(0x1b1)]}}))['body'][_0x36bfb0(0x2ee)];}async['putCollaborators'](_0x12f01f){const _0xc530bf=_0x51fc53,_0x36e10b=this[_0xc530bf(0x1fb)]()+_0xc530bf(0x270);await this['_HTTPService']['put'](_0x36e10b,{'body':_0x12f01f});}};pt=ro([ts(0x0,_0x4a7404(_0x142257)),ts(0x1,_0x4a7404(_0x5977ca))],pt);var co=Object[_0x51fc53(0x18f)],ho=Object[_0x51fc53(0x340)],lo=(_0x2f849a,_0x499b1c,_0x12042c,_0x2a2c3b)=>{const _0x593acc=_0x51fc53;for(var _0x39bdbc=_0x2a2c3b>0x1?void 0x0:_0x2a2c3b?ho(_0x499b1c,_0x12042c):_0x499b1c,_0x4fedfe=_0x2f849a[_0x593acc(0x2c6)]-0x1,_0x1e91f4;_0x4fedfe>=0x0;_0x4fedfe--)(_0x1e91f4=_0x2f849a[_0x4fedfe])&&(_0x39bdbc=(_0x2a2c3b?_0x1e91f4(_0x499b1c,_0x12042c,_0x39bdbc):_0x1e91f4(_0x39bdbc))||_0x39bdbc);return _0x2a2c3b&&_0x39bdbc&&co(_0x499b1c,_0x12042c,_0x39bdbc),_0x39bdbc;},ss=(_0x243cee,_0x20db51)=>(_0x5cb5c7,_0x3b0a79)=>_0x20db51(_0x5cb5c7,_0x3b0a79,_0x243cee);const _o=[_0x51fc53(0x8b),_0x51fc53(0x1ff),_0x51fc53(0x32f),_0x51fc53(0x14f),_0x51fc53(0x297)],uo=0x5*0x400*0x400,fo=_0x51fc53(0x1c6),go=_0x51fc53(0x3a2),mo=_0x51fc53(0x1db),So='/universer-api/file/{fileID}/sign-url';let It=class{constructor(_0x1cbb99,_0x285535){const _0x11a1d7=_0x51fc53;l(this,_0x11a1d7(0x2ac),0x0),l(this,_0x11a1d7(0x227),new _0x5da41e()),l(this,_0x11a1d7(0x170),this['_change$']),l(this,_0x11a1d7(0x190),new Map()),(this[_0x11a1d7(0x322)]=_0x1cbb99,this[_0x11a1d7(0x2c4)]=_0x285535);}[_0x51fc53(0x324)](_0x50f673){const _0x187174=_0x51fc53;this['_waitCount']=_0x50f673,this['_change$'][_0x187174(0x275)](_0x50f673);}['getImageSourceCache'](_0x18c9be,_0x27d119){const _0x3b8f57=_0x51fc53;if(_0x27d119===_0x3a239e['BASE64']){const _0x4abb59=new Image();return _0x4abb59[_0x3b8f57(0xc9)]=_0x18c9be,_0x4abb59;}return this[_0x3b8f57(0x190)][_0x3b8f57(0x151)](_0x18c9be);}[_0x51fc53(0x155)](_0x58b183,_0x36a4b1,_0x1db395){const _0x18e811=_0x51fc53;_0x36a4b1===_0x3a239e['BASE64']||_0x1db395==null||this[_0x18e811(0x190)][_0x18e811(0x38f)](_0x58b183,_0x1db395);}async[_0x51fc53(0x2b2)](_0x1962b1){const _0x37cf0e=_0x51fc53;try{const _0x4e3bae=this[_0x37cf0e(0x9f)](this[_0x37cf0e(0x11c)](),''+_0x1962b1),_0x3c3fcf=(await this[_0x37cf0e(0x322)]['get'](_0x4e3bae))[_0x37cf0e(0x211)];return _0x3c3fcf['error']&&_0x3c3fcf['error']['code']===Cs['OK']?Promise[_0x37cf0e(0x1da)](_0x3c3fcf[_0x37cf0e(0x192)]):Promise['reject'](_0x3c3fcf[_0x37cf0e(0x24d)]);}catch(_0x1fdd62){return Promise[_0x37cf0e(0x1bb)](_0x1fdd62);}}async[_0x51fc53(0x1ae)](_0xf607e){const _0x161f06=_0x51fc53;let _0x246a31='';if(!_o[_0x161f06(0x11e)](_0xf607e[_0x161f06(0x2cd)]))return this['_decreaseWaiting'](),Promise[_0x161f06(0x1bb)](new Error(_0x59dd1c[_0x161f06(0x1e6)]));if(_0xf607e[_0x161f06(0x23a)]>uo)return this[_0x161f06(0x31a)](),Promise[_0x161f06(0x1bb)](new Error(_0x59dd1c[_0x161f06(0x130)]));try{const _0x8b046=new FormData();_0x8b046[_0x161f06(0x168)](_0x161f06(0x117),_0xf607e);const _0x2d4825=this[_0x161f06(0x298)]()+'?size='+_0xf607e[_0x161f06(0x23a)]['toString'](),_0x367de6=await(await fetch(_0x2d4825,{'method':'POST','body':_0x8b046}))[_0x161f06(0xac)]();if(typeof _0x367de6[_0x161f06(0x105)]!=_0x161f06(0x288))return this[_0x161f06(0x31a)](),Promise[_0x161f06(0x1bb)](new Error(_0x59dd1c[_0x161f06(0x2c5)]));_0x246a31=_0x367de6['FileId'];}catch{return this[_0x161f06(0x31a)](),Promise[_0x161f06(0x1bb)](new Error(_0x59dd1c[_0x161f06(0x2c5)]));}return new Promise((_0x583255,_0xd3083c)=>{const _0x49243f=_0x161f06,_0x2a9f48=new FileReader();_0x2a9f48[_0x49243f(0x2da)](_0xf607e),_0x2a9f48[_0x49243f(0xc0)]=_0x36d983=>{const _0x306cc7=_0x49243f;var _0x1c9cc8;const _0x22e939=(_0x1c9cc8=_0x36d983[_0x306cc7(0x24e)])==null?void 0x0:_0x1c9cc8[_0x306cc7(0x1a5)];if(_0x22e939==null){this[_0x306cc7(0x31a)](),_0xd3083c(new Error(_0x59dd1c[_0x306cc7(0x2c5)]));return;}const _0x42e3f6=_0x4cfbd7[_0x306cc7(0x300)](0x6);_0x583255({'imageId':_0x42e3f6,'imageSourceType':_0x3a239e[_0x306cc7(0x1e2)],'source':_0x246a31,'base64Cache':_0x22e939,'status':_0x59dd1c['SUCCUSS']}),this[_0x306cc7(0x31a)]();};});}['_getUploadFileURL'](){const _0x3cc03f=_0x51fc53;var _0x1768f9;return(_0x1768f9=this[_0x3cc03f(0x2c4)][_0x3cc03f(0xf0)](fo))!=null?_0x1768f9:go;}[_0x51fc53(0x11c)](){const _0x496d29=_0x51fc53;var _0x1622ce;return(_0x1622ce=this[_0x496d29(0x2c4)][_0x496d29(0xf0)](mo))!=null?_0x1622ce:So;}[_0x51fc53(0x9f)](_0x13c020,_0x374e5a){const _0x2eed41=_0x51fc53;return _0x13c020[_0x2eed41(0x3b9)](_0x2eed41(0x241),_0x374e5a);}[_0x51fc53(0x31a)](){const _0x71cd14=_0x51fc53;this['_waitCount']-=0x1,this['_change$'][_0x71cd14(0x275)](this[_0x71cd14(0x2ac)]);}};It=lo([ss(0x0,_0x4a7404(_0x142257)),ss(0x1,_0x5977ca)],It);var ys=Object['defineProperty'],vo=Object[_0x51fc53(0x340)],po=(_0x1787ee,_0x362944,_0xc67bd9)=>_0x362944 in _0x1787ee?ys(_0x1787ee,_0x362944,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc67bd9}):_0x1787ee[_0x362944]=_0xc67bd9,Io=(_0x40951d,_0x81f0a1,_0x146d1b,_0x2766b0)=>{for(var _0x13aad7=_0x2766b0>0x1?void 0x0:_0x2766b0?vo(_0x81f0a1,_0x146d1b):_0x81f0a1,_0xaebeda=_0x40951d['length']-0x1,_0x5796a6;_0xaebeda>=0x0;_0xaebeda--)(_0x5796a6=_0x40951d[_0xaebeda])&&(_0x13aad7=(_0x2766b0?_0x5796a6(_0x81f0a1,_0x146d1b,_0x13aad7):_0x5796a6(_0x13aad7))||_0x13aad7);return _0x2766b0&&_0x13aad7&&ys(_0x81f0a1,_0x146d1b,_0x13aad7),_0x13aad7;},is=(_0x263d84,_0x1ea656)=>(_0x5e0a41,_0x464093)=>_0x1ea656(_0x5e0a41,_0x464093,_0x263d84),Eo=(_0x499c99,_0x5e5aa0,_0x4083d8)=>po(_0x499c99,_0x5e5aa0+'',_0x4083d8);const Co=_0x51fc53(0x237);let Et=class extends _0x5ab657{constructor(_0x2e15c3,_0x446586,_0x3a3284){const _0x38ccae=_0x51fc53;super(),this[_0x38ccae(0xcf)]=_0x2e15c3,this[_0x38ccae(0x37c)]=_0x446586,this[_0x38ccae(0x342)]=_0x3a3284;}[_0x51fc53(0x27c)](_0xf66743){const _0x59234b=_0x51fc53;var _0x14a502,_0x523c99,_0x1fff93,_0x93e493,_0xec068e;_0xf66743[_0x59234b(0x16c)](_0x5815e0)&&this[_0x59234b(0x37c)][_0x59234b(0x24d)](_0x59234b(0x2ce),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x32c73e=[[_0x5815e0,{'useClass':vt}],[Re],[At],[_0x142257],[As,{'useClass':Gr}],[ee],[D],[_0x1e9f90],[Ve],[ke],[Be],[Mt],[Ge],[Rs],[bs,{'useClass':(_0x523c99=(_0x14a502=this[_0x59234b(0xcf)])==null?void 0x0:_0x14a502[_0x59234b(0x1c9)])!=null?_0x523c99:_t}],[_0x38690b,{'useClass':_0x443f73}],[_0x3ad936,{'useClass':St}],[_0x5c087b,{'useClass':pt}],[_0x18bd4e,{'useClass':It}],[Ee],[He],[je],[xe],[ue]];(_0x1fff93=this[_0x59234b(0xcf)])!=null&&_0x1fff93['enableSingleActiveInstanceLock']&&_0x32c73e['push']([Xe,{'useClass':On}]),((_0x93e493=this[_0x59234b(0xcf)])==null?void 0x0:_0x93e493[_0x59234b(0x23d)])==null||this[_0x59234b(0xcf)]['collaborationUniverTypes'][_0x59234b(0x11e)](_0x3504ec[_0x59234b(0x351)])?_0x32c73e[_0x59234b(0x19d)]([$e]):this[_0x59234b(0xcf)][_0x59234b(0x23d)][_0x59234b(0x11e)](_0x3504ec[_0x59234b(0x32c)])&&_0x32c73e[_0x59234b(0x19d)]([Fe]),_0x32c73e=_0xd86ae6(_0x32c73e,(_0xec068e=this[_0x59234b(0xcf)])==null?void 0x0:_0xec068e['override']),_0x32c73e[_0x59234b(0x124)](_0x47740e=>_0xf66743[_0x59234b(0xe7)](_0x47740e)),_0xf66743[_0x59234b(0x151)](_0x142257)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x5bab19({'maxParallel':0x6})}),this['_initModules']();}[_0x51fc53(0x198)](){const _0x126642=_0x51fc53;var _0x3ff55d,_0x3c95d0;(_0x3ff55d=this['_config'])!=null&&_0x3ff55d[_0x126642(0x21b)]||this[_0x126642(0x342)][_0x126642(0x151)](D)[_0x126642(0x329)](),(_0x3c95d0=this['_config'])!=null&&_0x3c95d0[_0x126642(0x17f)]&&this[_0x126642(0x342)][_0x126642(0x151)](Ge);}};Eo(Et,'pluginName',Co),Et=Io([_0x2e4016(_0x114daf),is(0x1,_0x3cb271),is(0x2,_0x4a7404(_0x44b6b8))],Et);export{oo as AUTHZ_URL_KEY,pt as AuthzIoHttpService,an as COLLAB_SUBMIT_CHANGESET_URL_KEY,zi as COLLAB_WEB_SOCKET_URL_KEY,Ee as CollaborationController,ut as CollaborationSession,Re as CollaborationSessionService,_t as CollaborationSocketService,P as CollaborationStatus,Or as CollaborationStatusDisplay,Rs as CommentService,He as DataLoaderController,je as DesktopCollaborationStatusDisplayController,qi as HEARTBEAT_INTERVAL_KEY,Is as HEARTBEAT_TIMEOUT_KEY,bs as ICollaborationSocketService,As as IURLService,rn as LOCAL_CACHE_INTERVAL_KEY,hn as LOGIN_URL_KEY,D as LocalCacheService,Xi as SEND_CHANGESET_TIMEOUT_KEY,Gi as SNAPSHOT_SERVER_URL_KEY,Ki as SNAPSHOT_URL_KEY,_e as SessionStatus,Et as UniverCollaborationClientPlugin,Gr as WebURLService,gn as deserializeToCombResponse,mn as serializeCombRequest};
|