@univerjs-pro/collaboration-client 0.18.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +12 -12
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3d5482=_0x157c;(function(_0x45d761,_0x5c65f3){const _0x2e1458=_0x157c,_0x31b09d=_0x45d761();while(!![]){try{const _0x4e7c78=parseInt(_0x2e1458(0xfd))/0x1*(parseInt(_0x2e1458(0x168))/0x2)+-parseInt(_0x2e1458(0x221))/0x3*(-parseInt(_0x2e1458(0x2f1))/0x4)+parseInt(_0x2e1458(0x26d))/0x5+-parseInt(_0x2e1458(0x1bf))/0x6+parseInt(_0x2e1458(0x259))/0x7*(-parseInt(_0x2e1458(0x13a))/0x8)+-parseInt(_0x2e1458(0x291))/0x9*(-parseInt(_0x2e1458(0xec))/0xa)+-parseInt(_0x2e1458(0x299))/0xb;if(_0x4e7c78===_0x5c65f3)break;else _0x31b09d['push'](_0x31b09d['shift']());}catch(_0x4a0d84){_0x31b09d['push'](_0x31b09d['shift']());}}}(_0x1996,0x75851));import{CollaborationEvent as _0x50665f,CompressMutationService as _0x33b352,EmptyMutationInfo as _0x335eec,ISnapshotServerService as _0x244f88,ITransformService as _0x3a3a3e,RevisionService as _0x2f0200,SnapshotService as _0x225a81,UniverCollaborationPlugin as _0x3181fb,b64DecodeUnicode as _0x483f9d,isTransformChangesetsSuccess as _0x250ae2,isTransformMutationsWithChangesetFailure as _0xabf13e,isTransformMutationsWithChangesetSuccess as _0x2ae31c,mapDocumentTypeToUniverType as _0x49e240,parseChangesetToProtocol as _0x293710,parseProtocolChangeset as _0x502be6,textEncoder as _0xa5550d,uuidv4 as _0x1684b1}from'@univerjs-pro/collaboration';import{CommandType as _0x51a16c,DependentOn as _0x469f86,Disposable as _0x9e7512,DisposableCollection as _0x54965b,IAuthzIoService as _0x9712e3,ICommandService as _0x2169d2,IConfigService as _0x34eea4,IContextService as _0x1f346b,ILogService as _0x2fc9db,IMentionIOService as _0x46a626,IPermissionService as _0x10ad10,IUndoRedoService as _0x32e478,IUniverInstanceService as _0x5c02d5,Inject as _0x528933,Injector as _0x2f9ec4,JSONX as _0x559840,LocalUndoRedoService as _0xbfcf86,LocaleService as _0x3d6ea1,MentionType as _0x951061,Optional as _0x5e5f16,Plugin as _0x30a3cc,Quantity as _0x52ca89,Rectangle as _0x4b1329,RxDisposable as _0x114242,Tools as _0x47c564,UniverInstanceType as _0x40b723,UserManagerService as _0x2ae2ec,Workbook as _0x34f926,createIdentifier as _0x12bcfd,generateRandomId as _0x4393e0,isInternalEditorID as _0x258627,merge as _0x1f7958,mergeOverrideWithDependencies as _0x2a8c1e,registerDependencies as _0xb73fe2,resolveWithBasePath as _0x18f79c,sequenceExecute as _0x5657a4,toDisposable as _0x25b528,touchDependencies as _0x46096c}from'@univerjs/core';import{RichTextEditingMutation as _0x2d0c57}from'@univerjs/docs';import{InsertSheetMutation as _0x8555bd,SetSelectionsOperation as _0x5416ac,SheetPermissionInitController as _0x10a4f1,SheetsSelectionsService as _0x9f4d81,WorkbookEditablePermission as _0x627a18}from'@univerjs/sheets';import{BehaviorSubject as _0x3a2e8a,ReplaySubject as _0x4197ab,Subject as _0x46c32c,concatMap as _0x184f99,firstValueFrom as _0x4d27db,map as _0x3378fe,merge as _0x27f243,of as _0xa4798f,shareReplay as _0x3424e8,take as _0xa3e082,takeUntil as _0x23c7ab}from'rxjs';import{CmdRspCode as _0x29a5db,CombCmd as _0x1c9905,ErrorCode as _0x3dca78,FileSource as _0x4fd19e,UniverType as _0x311bf4}from'@univerjs/protocol';import{ITelemetryService as _0x2d4a2}from'@univerjs/telemetry';import{delay as _0xd07c40,filter as _0x842d2d,map as _0x455a01,take as _0xbe5d61,takeUntil as _0x535927}from'rxjs/operators';import{HTTPRequest as _0x1fc1d9,HTTPService as _0x2641c7,ISocketService as _0xa6b08c,MergeInterceptorFactory as _0x2cba25,ThresholdInterceptorFactory as _0x3e8a7e,UniverNetworkPlugin as _0x5d3154}from'@univerjs/network';import{UniverLicensePlugin as _0x52c865,getGlobalObject as _0x38672f}from'@univerjs-pro/license';import{IImageIoService as _0x1ca7f,ImageSourceType as _0x1be6fe,ImageUploadStatusType as _0x4864d9}from'@univerjs/drawing';import _0xabafe1 from'crypto-js/aes';import _0x54034b from'crypto-js/enc-base64';import _0x221211 from'crypto-js/enc-utf8';import _0x1a3442 from'crypto-js/lib-typedarrays';import _0x1a5c32 from'crypto-js/pad-nopadding';const ft=_0x3d5482(0xc6),pt=_0x3d5482(0xb3),mt=_0x3d5482(0x1ac),ht=_0x3d5482(0x21c),gt=0x4e20,_t=_0x3d5482(0x23d),vt=_0x3d5482(0x272),yt=0x3e8,bt=_0x3d5482(0x2fc),xt='/universer-api/uniscript';function St(_0x24ab9f){return JSON['stringify'](_0x24ab9f)['length'];}function Ct(_0x2136cb){'@babel/helpers - typeof';const _0x6a1276=_0x3d5482;return Ct=typeof Symbol=='function'&&typeof Symbol[_0x6a1276(0x104)]==_0x6a1276(0x179)?function(_0x459d7d){return typeof _0x459d7d;}:function(_0x367bad){const _0x350e17=_0x6a1276;return _0x367bad&&typeof Symbol==_0x350e17(0x2b8)&&_0x367bad['constructor']===Symbol&&_0x367bad!==Symbol[_0x350e17(0x12b)]?_0x350e17(0x179):typeof _0x367bad;},Ct(_0x2136cb);}function wt(_0x404b38,_0x25b4bd){const _0x42eced=_0x3d5482;if(Ct(_0x404b38)!=_0x42eced(0x1c0)||!_0x404b38)return _0x404b38;var _0x5ca4d1=_0x404b38[Symbol[_0x42eced(0x169)]];if(_0x5ca4d1!==void 0x0){var _0x2df8d6=_0x5ca4d1[_0x42eced(0x124)](_0x404b38,_0x25b4bd||_0x42eced(0x1f5));if(Ct(_0x2df8d6)!='object')return _0x2df8d6;throw TypeError(_0x42eced(0x119));}return(_0x25b4bd==='string'?String:Number)(_0x404b38);}function Tt(_0x46a0e0){const _0x20966b=_0x3d5482;var _0x37ac89=wt(_0x46a0e0,_0x20966b(0x28c));return Ct(_0x37ac89)=='symbol'?_0x37ac89:_0x37ac89+'';}function N(_0xd351c,_0x2c173e,_0x4d801e){return(_0x2c173e=Tt(_0x2c173e))in _0xd351c?Object['defineProperty'](_0xd351c,_0x2c173e,{'value':_0x4d801e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xd351c[_0x2c173e]=_0x4d801e,_0xd351c;}let P=function(_0xf827f8){const _0x260dfe=_0x3d5482;return _0xf827f8['OTHER_CLIENT_EDITING']=_0x260dfe(0x115),_0xf827f8['PERMISSION_DENIED']='PERMISSION_DENIED',_0xf827f8[_0x260dfe(0x20c)]=_0x260dfe(0x20c),_0xf827f8['CLOSE_ROOM']=_0x260dfe(0x1de),_0xf827f8[_0x260dfe(0x29e)]=_0x260dfe(0x29e),_0xf827f8[_0x260dfe(0x16e)]='SOCKET_FAILED_RETRY',_0xf827f8[_0x260dfe(0x29b)]=_0x260dfe(0x29b),_0xf827f8[_0x260dfe(0x13d)]=_0x260dfe(0x13d),_0xf827f8;}({});var F=class{constructor(){const _0x20b702=_0x3d5482;N(this,_0x20b702(0x192),new _0x46c32c()),N(this,_0x20b702(0x128),this[_0x20b702(0x192)]['asObservable']());}['emitEvent'](_0x502de5){const _0xa36ac3=_0x3d5482;this[_0xa36ac3(0x192)][_0xa36ac3(0x2a2)](_0x502de5);}},Et=class{constructor(){const _0x4750db=_0x3d5482;N(this,_0x4750db(0x13f),new _0x46c32c()),N(this,_0x4750db(0x15e),this[_0x4750db(0x13f)][_0x4750db(0xfe)]());}[_0x3d5482(0x2db)](_0x48e469){const _0x27b94b=_0x3d5482;this[_0x27b94b(0x13f)][_0x27b94b(0x2a2)](_0x48e469);}};function I(_0xf7a30b,_0x55b003){return function(_0x5878e0,_0x5c2c7d){_0x55b003(_0x5878e0,_0x5c2c7d,_0xf7a30b);};}function L(_0x721014,_0x1f1f6d,_0xea49f3,_0x667816){const _0x4bb94f=_0x3d5482;var _0x594615=arguments[_0x4bb94f(0x2cd)],_0x29bc43=_0x594615<0x3?_0x1f1f6d:_0x667816===null?_0x667816=Object[_0x4bb94f(0x19b)](_0x1f1f6d,_0xea49f3):_0x667816,_0x468328;if(typeof Reflect=='object'&&typeof Reflect[_0x4bb94f(0x2c1)]=='function')_0x29bc43=Reflect[_0x4bb94f(0x2c1)](_0x721014,_0x1f1f6d,_0xea49f3,_0x667816);else{for(var _0x589d75=_0x721014[_0x4bb94f(0x2cd)]-0x1;_0x589d75>=0x0;_0x589d75--)(_0x468328=_0x721014[_0x589d75])&&(_0x29bc43=(_0x594615<0x3?_0x468328(_0x29bc43):_0x594615>0x3?_0x468328(_0x1f1f6d,_0xea49f3,_0x29bc43):_0x468328(_0x1f1f6d,_0xea49f3))||_0x29bc43);}return _0x594615>0x3&&_0x29bc43&&Object['defineProperty'](_0x1f1f6d,_0xea49f3,_0x29bc43),_0x29bc43;}let R=class extends _0x9e7512{constructor(_0x29e7a3,_0x43f483){const _0x31c854=_0x3d5482;super(),this[_0x31c854(0x2d0)]=_0x29e7a3,this[_0x31c854(0xe3)]=_0x43f483,N(this,_0x31c854(0x1be),new Map()),N(this,_0x31c854(0x28f),new _0x46c32c()),this[_0x31c854(0x25a)](_0x27f243(this[_0x31c854(0x2d0)][_0x31c854(0x2f4)](_0x40b723[_0x31c854(0x155)])[_0x31c854(0xf5)](_0x455a01(_0x13d1c6=>_0x13d1c6[_0x31c854(0x2f3)]())),this[_0x31c854(0x2d0)][_0x31c854(0x2f4)](_0x40b723[_0x31c854(0x28d)])['pipe'](_0x455a01(_0x43b8e2=>_0x43b8e2[_0x31c854(0x2f3)]())),this[_0x31c854(0x2d0)][_0x31c854(0x2f4)](_0x40b723[_0x31c854(0x1bb)])[_0x31c854(0xf5)](_0x455a01(_0x28bfeb=>_0x28bfeb['getUnitId']())))[_0x31c854(0x20b)](_0x38271b=>this[_0x31c854(0x1f0)](_0x38271b)));}['waitForRoom$'](_0x2bf276){const _0x5439f7=_0x3d5482;return this[_0x5439f7(0x1be)][_0x5439f7(0xbb)](_0x2bf276)?_0xa4798f(this['_roomMembers']['get'](_0x2bf276)):this[_0x5439f7(0x28f)][_0x5439f7(0xf5)](_0x455a01(_0x2f1e55=>{const _0x6e7c15=_0x5439f7;if(_0x2f1e55===_0x2bf276)return this['_roomMembers'][_0x6e7c15(0x1c1)](_0x2f1e55);}));}[_0x3d5482(0xe8)](_0x1caad2){const _0x3bd74c=_0x3d5482;this[_0x3bd74c(0xe3)][_0x3bd74c(0xe8)](_0x1caad2);}['getCurrentUser'](){const _0x8f953c=_0x3d5482;return this[_0x8f953c(0xe3)][_0x8f953c(0x243)]();}['updateMember'](_0x42723e,_0x3ba068){const _0x3a0a56=_0x3d5482;let _0x46b795=this[_0x3a0a56(0x1be)][_0x3a0a56(0x1c1)](_0x42723e);_0x46b795||(_0x46b795=new Dt(),this[_0x3a0a56(0x1be)][_0x3a0a56(0x1d4)](_0x42723e,_0x46b795),this[_0x3a0a56(0x28f)][_0x3a0a56(0x2a2)](_0x42723e)),_0x46b795[_0x3a0a56(0x265)](_0x3ba068);}[_0x3d5482(0xde)](_0xc6d0c3,_0x2b837b){const _0x487c03=_0x3d5482;let _0x4f302a=this[_0x487c03(0x1be)]['get'](_0xc6d0c3);_0x4f302a&&_0x4f302a[_0x487c03(0xde)](_0x2b837b);}[_0x3d5482(0x231)](_0x1bc52b){const _0x54fa59=_0x3d5482;return this[_0x54fa59(0x1be)][_0x54fa59(0x1c1)](_0x1bc52b);}[_0x3d5482(0x15d)](_0xe646f5,_0xc1daf2){const _0xcb3128=_0x3d5482;let _0x5d641c=this[_0xcb3128(0x1be)][_0xcb3128(0x1c1)](_0xe646f5);if(_0x5d641c)return _0x5d641c['getMember'](_0xc1daf2);}['_removeRoom'](_0x256ac5){const _0x45b68b=_0x3d5482;let _0x1e2be0=this[_0x45b68b(0x1be)][_0x45b68b(0x1c1)](_0x256ac5);_0x1e2be0&&(_0x1e2be0[_0x45b68b(0x2b4)](),this[_0x45b68b(0x1be)]['delete'](_0x256ac5));}['dispose'](){const _0x11b6b7=_0x3d5482;this['_roomMembers']['forEach'](_0x23196e=>_0x23196e[_0x11b6b7(0x2b4)]()),this['_roomMembers'][_0x11b6b7(0x28a)](),this[_0x11b6b7(0x28f)][_0x11b6b7(0xd7)]();}};R=L([I(0x0,_0x5c02d5),I(0x1,_0x528933(_0x2ae2ec))],R);var Dt=class extends _0x9e7512{constructor(..._0x1a21da){const _0x661c6a=_0x3d5482;super(..._0x1a21da),N(this,_0x661c6a(0x1d9),new Map()),N(this,_0x661c6a(0xd1),new _0x3a2e8a(this[_0x661c6a(0x1d9)])),N(this,_0x661c6a(0x2ae),this[_0x661c6a(0xd1)][_0x661c6a(0xfe)]());}[_0x3d5482(0x2b4)](){const _0x3a532e=_0x3d5482;this[_0x3a532e(0x1d9)][_0x3a532e(0x28a)]();}[_0x3d5482(0x265)](_0x351ba9){const _0x456570=_0x3d5482;this[_0x456570(0x1d9)][_0x456570(0x1d4)](_0x351ba9[_0x456570(0x1f7)],_0x351ba9),this['_emitMembers']();}['removeMember'](_0x4e91e0){this['_members']['delete'](_0x4e91e0);}[_0x3d5482(0x15d)](_0x392f5d){const _0x3b67ed=_0x3d5482;return this[_0x3b67ed(0x1d9)][_0x3b67ed(0x1c1)](_0x392f5d);}[_0x3d5482(0x253)](){const _0x8d5c60=_0x3d5482;return Array[_0x8d5c60(0x14a)](this['_members'][_0x8d5c60(0x233)]());}[_0x3d5482(0x14b)](){const _0x349d72=_0x3d5482;this[_0x349d72(0xd1)][_0x349d72(0x2a2)](this['_members']);}};function _0x157c(_0x5369aa,_0x2b8f6a){_0x5369aa=_0x5369aa-0xa5;const _0x199684=_0x1996();let _0x157c5d=_0x199684[_0x5369aa];return _0x157c5d;}let z=function(_0x463dce){const _0x5d03a7=_0x3d5482;return _0x463dce[_0x463dce[_0x5d03a7(0x1c6)]=0x0]='IDLE',_0x463dce[_0x463dce[_0x5d03a7(0xbd)]=0x1]=_0x5d03a7(0xbd),_0x463dce[_0x463dce[_0x5d03a7(0x275)]=0x2]=_0x5d03a7(0x275),_0x463dce[_0x463dce['ONLINE']=0x3]=_0x5d03a7(0x1e3),_0x463dce;}({});const Ot={[_0x29a5db[_0x3d5482(0xdf)]]:_0x3d5482(0x144),[_0x29a5db['JOIN_ROOM_FULL']]:_0x3d5482(0x235),[_0x29a5db[_0x3d5482(0x290)]]:_0x3d5482(0xc5),[_0x29a5db['JOIN_ROOM_PERMISSION_DENIED']]:'session.room-permission-denied',[_0x29a5db[_0x3d5482(0x2d9)]]:_0x3d5482(0xe4)};let kt=class extends _0x114242{get[_0x3d5482(0x20e)](){const _0x57113f=_0x3d5482;return this[_0x57113f(0x19d)][_0x57113f(0x2d3)]();}constructor(_0x4be3b7,_0x506062,_0x4d6bc8,_0x57ee3d,_0x5d9ea8,_0x5dcf3f,_0x5adbc1,_0xaa6de5){const _0x3b4cda=_0x3d5482;super(),this[_0x3b4cda(0x182)]=_0x4be3b7,this[_0x3b4cda(0x1b2)]=_0x4d6bc8,this[_0x3b4cda(0x1fe)]=_0x57ee3d,this[_0x3b4cda(0x1e4)]=_0x5d9ea8,this[_0x3b4cda(0x10f)]=_0x5dcf3f,this[_0x3b4cda(0x311)]=_0x5adbc1,this[_0x3b4cda(0x277)]=_0xaa6de5,N(this,'_sessionStatus$',new _0x3a2e8a(z['IDLE'])),N(this,_0x3b4cda(0x190),this[_0x3b4cda(0x19d)][_0x3b4cda(0xfe)]()),N(this,'_event$',new _0x46c32c()),N(this,'event$',this[_0x3b4cda(0x192)][_0x3b4cda(0xfe)]()),N(this,_0x3b4cda(0x1a1),void 0x0),N(this,_0x3b4cda(0x14e),void 0x0),N(this,_0x3b4cda(0x23f),void 0x0),N(this,'_shouldReportTelemetry',!0x1),N(this,_0x3b4cda(0x239),null),this[_0x3b4cda(0x22d)]=!!this['_telemetryService'],_0x506062['pipe'](_0x23c7ab(this[_0x3b4cda(0x1a8)]))[_0x3b4cda(0x20b)](_0x2e7c8d=>{const _0x23d7d6=_0x3b4cda;if(_0x2e7c8d!==void 0x0){if(this[_0x23d7d6(0x1a1)]=_0x2e7c8d,_0x2e7c8d)this[_0x23d7d6(0x18b)](_0x2e7c8d),this[_0x23d7d6(0x14e)]=_0x2e7c8d[_0x23d7d6(0x199)][_0x23d7d6(0x20b)](_0x19ba5a=>{const _0x3c7a58=_0x23d7d6;_0x19ba5a[_0x3c7a58(0xd5)]===this[_0x3c7a58(0x182)]&&this[_0x3c7a58(0xfa)](_0x19ba5a);});else{var _0x507e44;this[_0x23d7d6(0x11f)](),this[_0x23d7d6(0x19d)][_0x23d7d6(0x2a2)](z['OFFLINE']),(_0x507e44=this[_0x23d7d6(0x14e)])==null||_0x507e44[_0x23d7d6(0x228)](),this[_0x23d7d6(0x14e)]=null;}}});}[_0x3d5482(0x214)](){const _0x1a6108=_0x3d5482;var _0x59e602,_0x1583ce;return(_0x59e602=(_0x1583ce=this[_0x1a6108(0x1a1)])==null?void 0x0:_0x1583ce[_0x1a6108(0x1f7)])==null?null:_0x59e602;}[_0x3d5482(0x2b4)](){const _0x5d4395=_0x3d5482;super['dispose'](),this[_0x5d4395(0x2bf)](),this[_0x5d4395(0x1a8)][_0x5d4395(0x2a2)](),this[_0x5d4395(0x1a8)][_0x5d4395(0xd7)]();}['close'](){const _0x5f501f=_0x3d5482;var _0x3dcbef,_0x2f5f40;this[_0x5f501f(0x11f)](),(_0x3dcbef=this[_0x5f501f(0x1a1)])==null||_0x3dcbef[_0x5f501f(0x280)]({'cmd':_0x1c9905[_0x5f501f(0x1e5)],'data':{'roomID':this[_0x5f501f(0x182)]}}),(_0x2f5f40=this[_0x5f501f(0x1a1)])==null||_0x2f5f40[_0x5f501f(0x2bf)](),this['_event$'][_0x5f501f(0xd7)](),this[_0x5f501f(0x19d)][_0x5f501f(0xd7)]();}[_0x3d5482(0xfa)](_0x2f9cdd){const _0x3ad9cc=_0x3d5482;_0x2f9cdd[_0x3ad9cc(0x218)]===_0x1c9905['JOIN']?this[_0x3ad9cc(0x222)](_0x2f9cdd):_0x2f9cdd[_0x3ad9cc(0x218)]===_0x1c9905['RECV']&&this[_0x3ad9cc(0x2f0)](_0x2f9cdd);}[_0x3d5482(0x18b)](_0xc0f0c2){const _0x349b8d=_0x3d5482;this['_sessionStatus$'][_0x349b8d(0x2a2)](z[_0x349b8d(0xbd)]),_0xc0f0c2[_0x349b8d(0x280)]({'cmd':_0x1c9905[_0x349b8d(0x1b0)],'routeKey':this[_0x349b8d(0x182)],'routeType':'','data':{'rooms':[{'roomID':this[_0x349b8d(0x182)]}]}});}[_0x3d5482(0x222)](_0x3e70cc){const _0xde06a5=_0x3d5482;var _0x390262;if(_0x3e70cc['code']in Ot){this['_collaborationUIEventService']['emitEvent']({'id':P[_0xde06a5(0x29e)],'data':Ot[_0x3e70cc[_0xde06a5(0x15b)]]}),this[_0xde06a5(0x19d)]['next'](z[_0xde06a5(0x275)]);return;}this[_0xde06a5(0x19d)]['next'](z[_0xde06a5(0x1e3)]);let _0x2aa5c0=(_0x390262=_0x3e70cc[_0xde06a5(0x210)]['roomInfos'][this[_0xde06a5(0x182)]])==null?void 0x0:_0x390262['members'];_0x2aa5c0&&_0x2aa5c0[_0xde06a5(0x1cc)](_0x7a3c8a=>this[_0xde06a5(0x1e4)][_0xde06a5(0x265)](this[_0xde06a5(0x182)],_0x7a3c8a));}[_0x3d5482(0x2f0)](_0x3f2616){const _0x4b8416=_0x3d5482;try{let _0x39fbd4=_0x3f2616['data'];switch(_0x39fbd4[_0x4b8416(0x29d)]){case _0x50665f[_0x4b8416(0x25d)]:this[_0x4b8416(0xf0)](_0x39fbd4),this['_event$'][_0x4b8416(0x2a2)](_0x39fbd4);break;case _0x50665f[_0x4b8416(0x287)]:this[_0x4b8416(0x281)](_0x39fbd4),this[_0x4b8416(0x192)][_0x4b8416(0x2a2)](_0x39fbd4);break;case _0x50665f[_0x4b8416(0x245)]:case _0x50665f[_0x4b8416(0x12d)]:this[_0x4b8416(0x27f)](),this[_0x4b8416(0x2c7)](),this[_0x4b8416(0x192)]['next'](_0x39fbd4);break;case _0x50665f['MSG_FOR_ERROR']:this[_0x4b8416(0x1b2)][_0x4b8416(0x167)](_0x4b8416(0x2e2)+JSON['stringify'](_0x39fbd4)),this['_event$'][_0x4b8416(0x2a2)](_0x39fbd4);break;case _0x50665f[_0x4b8416(0xce)]:this[_0x4b8416(0x10f)][_0x4b8416(0x2db)](_0x39fbd4['data']),this[_0x4b8416(0x192)][_0x4b8416(0x2a2)](_0x39fbd4);break;default:this[_0x4b8416(0x192)][_0x4b8416(0x2a2)](_0x39fbd4);}}catch(_0x2bca4d){this[_0x4b8416(0x1b2)][_0x4b8416(0x167)](_0x2bca4d,_0x3f2616);}}[_0x3d5482(0xf0)](_0xff68de){const _0x37f4eb=_0x3d5482;this[_0x37f4eb(0x1e4)][_0x37f4eb(0x265)](this['_unitID'],_0xff68de['data']);}[_0x3d5482(0x281)](_0x3f8c44){const _0x1bf452=_0x3d5482;this['_memberService'][_0x1bf452(0xde)](this[_0x1bf452(0x182)],_0x3f8c44[_0x1bf452(0x210)][_0x1bf452(0x1f7)]);}async[_0x3d5482(0x280)](_0x17c495,_0x30e29a){const _0x54c39b=_0x3d5482;if(this[_0x54c39b(0x20e)]!==z[_0x54c39b(0x1e3)]||!this[_0x54c39b(0x1a1)])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x17c495[_0x54c39b(0x29d)]===_0x50665f[_0x54c39b(0x276)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x54c39b(0x2a5)](_0x17c495)),this[_0x54c39b(0x1a1)][_0x54c39b(0x280)]({'cmd':_0x1c9905[_0x54c39b(0x2b1)],'routeKey':_0x30e29a,'routeType':'','data':_0x17c495});}catch(_0x356c43){this[_0x54c39b(0x1b2)]['error'](_0x356c43);}}[_0x3d5482(0xf4)](){const _0x2b43e5=_0x3d5482;var _0x537eac;this[_0x2b43e5(0x23f)]=setTimeout(()=>{const _0x33904d=_0x2b43e5;this[_0x33904d(0x23f)]=null,this[_0x33904d(0x311)][_0x33904d(0x20f)]({'id':P[_0x33904d(0x13d)]});},(_0x537eac=this['_configService'][_0x2b43e5(0x13b)](_0x2b43e5(0x21c)))==null?gt:_0x537eac);}[_0x3d5482(0x2c7)](){const _0x22917e=_0x3d5482;this[_0x22917e(0x23f)]&&(clearTimeout(this[_0x22917e(0x23f)]),this[_0x22917e(0x23f)]=null);}[_0x3d5482(0x2a5)](_0x5aec21){const _0x14e8d8=_0x3d5482;if(!this[_0x14e8d8(0x22d)])return;let {data:_0x46758e}=_0x5aec21,{unitID:_0x2febc6,changeset:_0x1b9ad5}=_0x46758e,{mutations:_0x7cb761,type:_0x2aa99c}=_0x1b9ad5;this['_telemetryInfo']={'unitId':_0x2febc6,'type':_0x2aa99c,'startTime':performance[_0x14e8d8(0xb0)](),'stopTime':0x0,'duration':0x0,'size':St(_0x7cb761)};}[_0x3d5482(0x27f)](){const _0x119c33=_0x3d5482;if(this[_0x119c33(0x22d)]){if(!this[_0x119c33(0x239)]){this['_logService'][_0x119c33(0x167)](_0x119c33(0xca),_0x119c33(0x1e9));return;}this[_0x119c33(0x239)][_0x119c33(0x26b)]=performance['now'](),this[_0x119c33(0x239)][_0x119c33(0x1a7)]=this[_0x119c33(0x239)][_0x119c33(0x26b)]-this[_0x119c33(0x239)][_0x119c33(0x1c7)],this[_0x119c33(0x277)][_0x119c33(0x106)](_0x119c33(0x2df),this[_0x119c33(0x239)]),this[_0x119c33(0x239)]=null;}}[_0x3d5482(0x11f)](){const _0x2f799b=_0x3d5482;this[_0x2f799b(0x239)]=null;}};kt=L([I(0x2,_0x2fc9db),I(0x3,_0x34eea4),I(0x4,_0x528933(R)),I(0x5,_0x528933(Et)),I(0x6,_0x528933(F)),I(0x7,_0x5e5f16(_0x2d4a2))],kt);const B=_0x12bcfd('collaboration-client.local-cache-service');function At(_0xe072da){const _0x4cf8c5=_0x3d5482;return _0x4cf8c5(0x201)+_0xe072da;}function jt(_0x1df5a7){const _0x14b2c8=_0x3d5482;let {unitID:_0x59b712,mutations:_0x30e2a0}=_0x1df5a7;return{'unitId':_0x59b712,'subUnitId':_0x30e2a0[_0x14b2c8(0x2cd)]>0x0?_0x30e2a0[0x0][_0x14b2c8(0x1e6)][_0x14b2c8(0xeb)]:null};}let V=class{constructor(_0x5345ff,_0x3b6bea,_0x585cc4){const _0x41f1d7=_0x3d5482;this[_0x41f1d7(0xee)]=_0x5345ff,this[_0x41f1d7(0x14f)]=_0x3b6bea,this[_0x41f1d7(0x185)]=_0x585cc4;}[_0x3d5482(0x2a4)](_0x5737d5){const _0x1e91d0=_0x3d5482;var _0x2edc6e,_0x5d9ec6;let _0x473ec1=this[_0x1e91d0(0xee)][_0x1e91d0(0x1c1)](_0x9f4d81),{unitId:_0x2c75c7,subUnitId:_0x166079}=jt(_0x5737d5),_0x125205=_0x473ec1==null?void 0x0:_0x473ec1['getWorkbookSelections'](_0x2c75c7)[_0x1e91d0(0x27b)](),_0x3f5827=(_0x2edc6e=this[_0x1e91d0(0x185)]['getUnit'](_0x2c75c7))==null||(_0x2edc6e=_0x2edc6e[_0x1e91d0(0x22a)]())==null?void 0x0:_0x2edc6e[_0x1e91d0(0x196)]();if(_0x125205[_0x1e91d0(0x2cd)]===0x0||!_0x2c75c7||!_0x166079)return;let _0x5ce0ad=[{'id':_0x5416ac['id'],'params':{'unitId':_0x2c75c7,'subUnitId':_0x3f5827,'selections':_0x47c564[_0x1e91d0(0xb1)](_0x125205)}}],_0x1fdc0f=this[_0x1e91d0(0x14f)]['transformMutationsWithChangeset'](_0x5737d5,_0x5ce0ad);if(!_0x2ae31c(_0x1fdc0f))throw _0x1fdc0f[_0x1e91d0(0x167)];let _0x17d66b=(_0x5d9ec6=_0x1fdc0f[_0x1e91d0(0x143)][0x0])==null||(_0x5d9ec6=_0x5d9ec6['params'])==null?void 0x0:_0x5d9ec6[_0x1e91d0(0x1f8)];if(Array[_0x1e91d0(0x1db)](_0x17d66b)&&_0x17d66b[_0x1e91d0(0x2cd)]){if(_0x17d66b[_0x1e91d0(0x2cd)]===_0x5ce0ad[0x0]['params'][_0x1e91d0(0x1f8)][_0x1e91d0(0x2cd)]&&_0x17d66b['every']((_0x537e75,_0x343d18)=>_0x4b1329['equals'](_0x537e75[_0x1e91d0(0x30e)],_0x5ce0ad[0x0][_0x1e91d0(0x1e6)][_0x1e91d0(0x1f8)][_0x343d18]['range'])))return;this[_0x1e91d0(0xee)][_0x1e91d0(0x1c1)](_0x2169d2)[_0x1e91d0(0x2cf)](_0x5416ac['id'],{'unitId':_0x2c75c7,'subUnitId':_0x3f5827,'selections':_0x17d66b});}}};V=L([I(0x0,_0x528933(_0x2f9ec4)),I(0x1,_0x3a3a3e),I(0x2,_0x5c02d5)],V);const Mt=_0x12bcfd(_0x3d5482(0x312));let Nt=function(_0x592d20){const _0x4e42bf=_0x3d5482;return _0x592d20[_0x592d20['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x4e42bf(0xef),_0x592d20[_0x592d20[_0x4e42bf(0x313)]=0x1]=_0x4e42bf(0x313),_0x592d20;}({});const H='collaboration-client.config';Symbol(H);const Pt={};function Ft(_0x25b224){const _0x2a4875=_0x3d5482;var _0x3a71dc;return!!((_0x3a71dc=_0x25b224[_0x2a4875(0x1e6)])!=null&&_0x3a71dc[_0x2a4875(0x11d)]);}const It=new Set([_0x8555bd['id']]);function Lt(_0x4064e7,_0x4aef23,_0x4e5cf4,_0x1b04d1,_0x10c5ce){const _0x27e1fe=_0x3d5482;var _0x4e6c84,_0x5e4b09,_0x72d2d3,_0x57dd8f;let _0x146c20=[];for(let _0x56a236 of _0x4064e7){if(It[_0x27e1fe(0xbb)](_0x56a236['id'])){if(_0x146c20['length']>0x0)break;_0x146c20[_0x27e1fe(0x2e8)](_0x56a236);break;}if(Ft(_0x56a236)){if(_0x146c20[_0x27e1fe(0x2cd)]>0x0)break;_0x146c20['push'](_0x56a236);break;}_0x146c20[_0x27e1fe(0x2e8)](_0x56a236);}let _0xd92bd0=(_0x4e6c84=(_0x5e4b09=_0x10c5ce[_0x27e1fe(0x243)]())==null?void 0x0:_0x5e4b09[_0x27e1fe(0x20d)])==null?_0x27e1fe(0x123):_0x4e6c84,_0x185b6e=(_0x72d2d3=(_0x57dd8f=_0x10c5ce[_0x27e1fe(0x243)]())==null?void 0x0:_0x57dd8f[_0x27e1fe(0x1f7)])==null?_0x27e1fe(0x123):_0x72d2d3;return{'changeset':{'unitID':_0x4aef23,'type':_0x49e240(_0x4e5cf4[_0x27e1fe(0x122)](_0x4aef23)),'baseRev':_0x1b04d1['getCurrentRevOfUnit'](_0x4aef23),'revision':0x0,'userID':_0xd92bd0,'memberID':_0x185b6e,'mutations':_0x146c20},'pendingMutations':_0x4064e7[_0x27e1fe(0x223)](_0x146c20['length'])};}function Rt(_0x299d47,_0x515774,_0x1480ff,_0x1da319,_0x2e1fa8){const _0x5888fd=_0x3d5482;var _0x202e4b,_0x4ecfd7,_0x1297ee,_0x57b0db;let _0x7b65e4=[_0x299d47['reduce']((_0x292a3c,_0x5d3e7c)=>{const _0x4bd0f4=_0x157c;var _0x131c54;let {id:_0x5c8532}=_0x292a3c,{id:_0xdffe5a,type:_0x47d7e3}=_0x5d3e7c,_0x1eace7=(_0x131c54=_0x292a3c['params'])==null?{'actions':null}:_0x131c54,_0x2d919f=_0x5d3e7c['params'];if(_0x5c8532&&_0x5c8532!==_0xdffe5a)throw Error(_0x4bd0f4(0x165)+_0x5c8532+'\x20-\x20'+_0xdffe5a+'.');return{..._0x292a3c,'id':_0xdffe5a,'type':_0x47d7e3,'params':{'unitId':_0x2d919f[_0x4bd0f4(0x1b1)],'textRanges':_0x2d919f['textRanges'],'actions':_0x559840[_0x4bd0f4(0x2c8)](_0x1eace7[_0x4bd0f4(0x307)],_0x2d919f[_0x4bd0f4(0x307)])}};},{})],_0x2649cd=(_0x202e4b=(_0x4ecfd7=_0x2e1fa8[_0x5888fd(0x243)]())==null?void 0x0:_0x4ecfd7['userID'])==null?_0x5888fd(0x123):_0x202e4b,_0x99f181=(_0x1297ee=(_0x57b0db=_0x2e1fa8['getCurrentUser']())==null?void 0x0:_0x57b0db[_0x5888fd(0x1f7)])==null?_0x5888fd(0x123):_0x1297ee;return{'changeset':{'unitID':_0x515774,'type':_0x49e240(_0x1480ff[_0x5888fd(0x122)](_0x515774)),'baseRev':_0x1da319['getCurrentRevOfUnit'](_0x515774),'revision':0x0,'userID':_0x2649cd,'memberID':_0x99f181,'mutations':_0x7b65e4},'pendingMutations':[]};}function zt(_0x5735b8,_0x58f83f){const _0x560d10=_0x3d5482;let _0x39d478=new _0x4197ab(0x1);return setTimeout(()=>_0x39d478[_0x560d10(0x2a2)](_0x58f83f),_0x5735b8),_0x39d478[_0x560d10(0xfe)]()[_0x560d10(0xf5)](_0xa3e082(0x1));}var Bt,Vt,Ht;let U=function(_0x290591){const _0x391235=_0x3d5482;return _0x290591[_0x391235(0x252)]='not_collab',_0x290591['SYNCED']='synced',_0x290591[_0x391235(0x30a)]=_0x391235(0x1ba),_0x290591[_0x391235(0x191)]=_0x391235(0x240),_0x290591[_0x391235(0xb6)]=_0x391235(0x10a),_0x290591[_0x391235(0x205)]=_0x391235(0x10e),_0x290591[_0x391235(0x20c)]='conflict',_0x290591['OFFLINE']=_0x391235(0x156),_0x290591;}({});const Ut=0x4e20,Wt=0x2bf20;var W=class{constructor(_0x2bd1ad,_0x5af4e2,_0x53f8a8,_0x56958c,_0x2316c8,_0x14a860,_0x4d4bc4,_0x2cbdda,_0x40bdfc){const _0x530ba1=_0x3d5482;this['unitID']=_0x2bd1ad,this[_0x530ba1(0x1cf)]=_0x5af4e2,this[_0x530ba1(0x2ec)]=_0x2316c8,this[_0x530ba1(0x1a6)]=_0x14a860,this['_undoRedoService']=_0x4d4bc4,this[_0x530ba1(0x1b6)]=_0x2cbdda,this[_0x530ba1(0xd0)]=_0x40bdfc,N(this,_0x530ba1(0x178),null),N(this,_0x530ba1(0x1f9),[]),this[_0x530ba1(0x178)]=_0x53f8a8,this['_pendingMutations']=_0x56958c;}['_checkMissing'](_0x4fc493){const _0x43a189=_0x3d5482;let _0x5553c1=this['_revisionService'][_0x43a189(0x2fd)](this[_0x43a189(0x11e)]);return _0x4fc493[_0x43a189(0x242)]>_0x5553c1+0x1?(this[_0x43a189(0x2ec)][_0x43a189(0x121)]({'from':_0x5553c1,'to':_0x4fc493['revision']-0x1}),!0x0):!0x1;}[_0x3d5482(0x180)](_0xf4bcf7){const _0x3b01ba=_0x3d5482;this['_undoRedoService']['transformUndoRedo'](this[_0x3b01ba(0x11e)],_0xf4bcf7);}[_0x3d5482(0xd8)](_0x3e9bde){const _0x2ea9bb=_0x3d5482;var _0x2f016e,_0x147371;(_0x2f016e=(_0x147371=this['_handler'])[_0x2ea9bb(0x16c)])==null||_0x2f016e[_0x2ea9bb(0x124)](_0x147371,_0x3e9bde);}['_transformIMECache'](_0x363131){const _0x42e820=_0x3d5482;var _0x42049a,_0x52ccc5;return(_0x42049a=(_0x52ccc5=this['_handler'])[_0x42e820(0x133)])==null?void 0x0:_0x42049a[_0x42e820(0x124)](_0x52ccc5,_0x363131);}['_transformStateCache'](_0x7d79e3){const _0x3501b7=_0x3d5482;var _0x1d2195,_0x458e4b;return(_0x1d2195=(_0x458e4b=this[_0x3501b7(0x2ec)])[_0x3501b7(0xa9)])==null?void 0x0:_0x1d2195[_0x3501b7(0x124)](_0x458e4b,_0x7d79e3);}['_transformRemoteChangesetByIMECache'](_0x529897){const _0x80fa5c=_0x3d5482;var _0x5581a8,_0x28c281,_0x2f131c;return(_0x5581a8=(_0x28c281=(_0x2f131c=this[_0x80fa5c(0x2ec)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x28c281[_0x80fa5c(0x124)](_0x2f131c,_0x529897))==null?_0x529897:_0x5581a8;}['_transformRemoteChangesetByStateCache'](_0x406300){const _0x463b97=_0x3d5482;var _0x594538,_0x52f50d,_0x2bed1e;return(_0x594538=(_0x52f50d=(_0x2bed1e=this[_0x463b97(0x2ec)])[_0x463b97(0x30d)])==null?void 0x0:_0x52f50d['call'](_0x2bed1e,_0x406300))==null?_0x406300:_0x594538;}['_syncEditingCollabCursor'](_0xcabc8e){const _0x32e27f=_0x3d5482;if(this[_0x32e27f(0x1cf)]===_0x311bf4[_0x32e27f(0x28d)]){let {unitID:_0x53d557,mutations:_0x2bc820,memberID:_0x39d95a}=_0xcabc8e,_0x322e=_0x2bc820[_0x32e27f(0x2cd)]>0x0?_0x2bc820[0x0][_0x32e27f(0x1e6)]['textRanges']:[];if(Array['isArray'](_0x322e)&&_0x322e[_0x32e27f(0x2cd)]>0x0){var _0x5aa0bd,_0x7475f5;(_0x5aa0bd=(_0x7475f5=this[_0x32e27f(0x2ec)])[_0x32e27f(0x1fb)])==null||_0x5aa0bd[_0x32e27f(0x124)](_0x7475f5,{'unitID':_0x53d557,'memberID':_0x39d95a,'textRanges':_0x322e});}}}[_0x3d5482(0xf9)](){const _0xbcc885=_0x3d5482;var _0x50e15e;(_0x50e15e=this['_localCacheService'])==null||_0x50e15e[_0xbcc885(0x1ee)](this[_0xbcc885(0x11e)],this[_0xbcc885(0x1cf)],this['_awaitingChangeset'],this[_0xbcc885(0x1f9)]);}[_0x3d5482(0x248)](){const _0x199904=_0x3d5482;return this[_0x199904(0x1b6)]['getCurrentRevOfUnit'](this['unitID']);}[_0x3d5482(0x11c)](){const _0x44e655=_0x3d5482;this[_0x44e655(0x1b6)][_0x44e655(0x150)](this[_0x44e655(0x11e)]);}[_0x3d5482(0x262)](_0x40c7f4){const _0x557468=_0x3d5482;let _0x16a5b9=this['_transformRemoteChangesetByIMECache'](_0x40c7f4);_0x16a5b9=this[_0x557468(0xb5)](_0x16a5b9);let _0x5183c4=_0x5657a4(_0x16a5b9[_0x557468(0xad)],this['_commandService'],{'fromCollab':!0x0});if(!_0x5183c4[_0x557468(0x19f)]){var _0x37a0ce;throw _0x5183c4[_0x557468(0x167)]instanceof Error?_0x5183c4[_0x557468(0x167)]:Error((_0x37a0ce=_0x5183c4[_0x557468(0x167)])==null?'[CollaborationState]:\x20apply\x20error!':_0x37a0ce);}this[_0x557468(0x148)](_0x16a5b9),this[_0x557468(0x21f)](_0x16a5b9),this['_transformUndoredo'](_0x40c7f4),this[_0x557468(0xd8)](_0x16a5b9),this['_syncEditingCollabCursor'](_0x16a5b9),this[_0x557468(0x11c)]();}};let G=class extends W{constructor(_0x4e4ce5,_0x18209f,_0x463973,_0x2399c9,_0x20b0ec,_0x2cc2be,_0x2c249f,_0x36fd26,_0x3190bc,_0xe6f167){const _0x53c27a=_0x3d5482;super(_0x4e4ce5,_0x18209f,null,[],_0x463973,_0x2c249f,_0x2cc2be,_0x2399c9,_0xe6f167),this[_0x53c27a(0xee)]=_0x20b0ec,this[_0x53c27a(0x1b2)]=_0x36fd26,this[_0x53c27a(0x14f)]=_0x3190bc,this['localCacheService']=_0xe6f167,N(this,_0x53c27a(0xdb),U[_0x53c27a(0x2cc)]);}[_0x3d5482(0xc3)](_0x456a41){const _0x2dd5a1=_0x3d5482;let _0x58b1ff=this[_0x2dd5a1(0xee)]['createInstance'](K,this['unitID'],this[_0x2dd5a1(0x1cf)],[_0x456a41],this[_0x2dd5a1(0x2ec)]);return _0x58b1ff[_0x2dd5a1(0x219)](),_0x58b1ff[_0x2dd5a1(0xf9)](),_0x58b1ff;}[_0x3d5482(0x137)](_0x5d0f1f){const _0x2933ae=_0x3d5482;if(this[_0x2933ae(0x16a)](_0x5d0f1f))return this[_0x2933ae(0xee)][_0x2933ae(0x1ff)](Z,this['unitID'],this['type'],null,[],null,[_0x5d0f1f],this['_handler']);try{let _0x3e560b=this[_0x2933ae(0x14f)][_0x2933ae(0xb7)](_0x5d0f1f,[_0x335eec]);if(_0x2ae31c(_0x3e560b)){let {c1Prime:_0x36606b}=_0x3e560b;return this[_0x2933ae(0x262)](_0x36606b),this;}throw _0x3e560b['error'];}catch(_0x1ce952){return this[_0x2933ae(0x1b2)][_0x2933ae(0x167)](_0x1ce952),this[_0x2933ae(0x2b9)](!0x1);}}[_0x3d5482(0x2b9)](_0x566a08){const _0x4b964b=_0x3d5482;return this['_injector'][_0x4b964b(0x1ff)](Y,this[_0x4b964b(0x11e)],this['type'],null,[],this[_0x4b964b(0x2ec)],_0x566a08);}[_0x3d5482(0x292)](){const _0x15166a=_0x3d5482;throw Error(_0x15166a(0x24f));}[_0x3d5482(0xc9)](){const _0x1fddc3=_0x3d5482;throw Error(_0x1fddc3(0x305));}[_0x3d5482(0x139)](){return this;}[_0x3d5482(0x1ed)](){const _0x35a6bc=_0x3d5482;return this['_injector'][_0x35a6bc(0x1ff)](X,this['unitID'],this[_0x35a6bc(0x1cf)],null,[],this[_0x35a6bc(0x2ec)]);}[_0x3d5482(0x1df)](){return this;}[_0x3d5482(0x211)](){const _0x5f11cc=_0x3d5482;throw Error(_0x5f11cc(0x2ef));}[_0x3d5482(0x30f)](){const _0x39fb11=_0x3d5482;let _0x26c80f=this[_0x39fb11(0x1b6)][_0x39fb11(0x2fd)](this[_0x39fb11(0x11e)]);return this['_handler'][_0x39fb11(0x121)]({'from':_0x26c80f,'to':0x0}),this[_0x39fb11(0xee)][_0x39fb11(0x1ff)](Z,this['unitID'],this['type'],null,[],null,[],this['_handler']);}};G=L([I(0x3,_0x528933(_0x2f0200)),I(0x4,_0x528933(_0x2f9ec4)),I(0x5,_0x32e478),I(0x6,_0x2169d2),I(0x7,_0x2fc9db),I(0x8,_0x3a3a3e),I(0x9,_0x5e5f16(B))],G);let K=Bt=class extends W{constructor(_0x12a0cd,_0x396740,_0x101749,_0x27218d,_0x2ec152,_0x3b3174,_0x408976,_0x18849c,_0x38e208,_0x286a2c,_0x1234c4,_0x39f7dc,_0x5c1351,_0x4670da){const _0x530947=_0x3d5482;super(_0x12a0cd,_0x396740,null,_0x101749,_0x27218d,_0x38e208,_0x5c1351,_0x3b3174,_0x4670da),this[_0x530947(0xee)]=_0x2ec152,this[_0x530947(0x1e4)]=_0x408976,this['_logService']=_0x18849c,this['_configService']=_0x286a2c,this[_0x530947(0x14f)]=_0x1234c4,this[_0x530947(0x2d0)]=_0x39f7dc,N(this,'status',U[_0x530947(0x30a)]),N(this,'_scheduleCompleteTimestamp',null),N(this,'_sendingTimer',null);}['appendMutation'](_0x68b946){const _0x133c27=_0x3d5482;return this[_0x133c27(0x1f9)]['push'](_0x68b946),this[_0x133c27(0xf9)](),this;}['onRemoteChangeset'](_0x389c5a){const _0x1bde64=_0x3d5482;if(this[_0x1bde64(0x16a)](_0x389c5a))return this[_0x1bde64(0x14d)](),this[_0x1bde64(0xee)]['createInstance'](Z,this[_0x1bde64(0x11e)],this[_0x1bde64(0x1cf)],null,this[_0x1bde64(0x1f9)],null,[_0x389c5a],this[_0x1bde64(0x2ec)]);try{let _0x47954f=this['_transformService']['transformMutationsWithChangeset'](_0x389c5a,this[_0x1bde64(0x1f9)]);if(_0x2ae31c(_0x47954f)){let {c1Prime:_0x5a2d19,m2Prime:_0x106434}=_0x47954f;this[_0x1bde64(0x262)](_0x5a2d19);let _0x3dd4d4=this[_0x1bde64(0xee)][_0x1bde64(0x1ff)](Bt,this[_0x1bde64(0x11e)],this[_0x1bde64(0x1cf)],_0x106434,this[_0x1bde64(0x2ec)]);this[_0x1bde64(0x14d)]();let _0x3502d1=new Date()[_0x1bde64(0xa5)](),_0x468203=this[_0x1bde64(0x24c)]?Math[_0x1bde64(0x1dc)](this[_0x1bde64(0x24c)]-_0x3502d1,0x0):this[_0x1bde64(0x13e)]();return _0x3dd4d4[_0x1bde64(0x219)](_0x468203),_0x3dd4d4;}throw _0x47954f['error'];}catch(_0x12ed83){return this[_0x1bde64(0x1b2)][_0x1bde64(0x167)](_0x12ed83),this['_onConflict'](!0x1);}}[_0x3d5482(0x292)](){const _0xd74803=_0x3d5482;throw Error(_0xd74803(0x135));}[_0x3d5482(0xc9)](){const _0x2ded38=_0x3d5482;throw Error(_0x2ded38(0xe7));}[_0x3d5482(0x139)](){return this;}[_0x3d5482(0x1ed)](){const _0x5d2da7=_0x3d5482;return this[_0x5d2da7(0x14d)](),this[_0x5d2da7(0xee)][_0x5d2da7(0x1ff)](X,this[_0x5d2da7(0x11e)],this[_0x5d2da7(0x1cf)],null,this[_0x5d2da7(0x1f9)],this['_handler']);}[_0x3d5482(0x1df)](){return this;}[_0x3d5482(0x219)](_0x12f827){const _0x1b4488=_0x3d5482;let _0x527ea9=_0x12f827==null?this[_0x1b4488(0x13e)]():_0x12f827;this[_0x1b4488(0x24c)]=new Date()[_0x1b4488(0xa5)]()+_0x527ea9,this[_0x1b4488(0x26f)]=setTimeout(()=>{const _0x5a73ff=_0x1b4488;this[_0x5a73ff(0x14d)]();let _0xcf0e43=null;switch(this['type']){case _0x311bf4[_0x5a73ff(0x155)]:_0xcf0e43=Lt(this['_pendingMutations'],this['unitID'],this[_0x5a73ff(0x2d0)],this[_0x5a73ff(0x1b6)],this['_memberService']);break;case _0x311bf4['UNIVER_DOC']:_0xcf0e43=this['_pendingMutations'][_0x5a73ff(0x1a9)](_0x2b9293=>_0x2b9293['id']===_0x2d0c57['id'])?Rt(this[_0x5a73ff(0x1f9)],this['unitID'],this[_0x5a73ff(0x2d0)],this[_0x5a73ff(0x1b6)],this[_0x5a73ff(0x1e4)]):Lt(this[_0x5a73ff(0x1f9)],this[_0x5a73ff(0x11e)],this[_0x5a73ff(0x2d0)],this[_0x5a73ff(0x1b6)],this[_0x5a73ff(0x1e4)]);break;default:throw Error(_0x5a73ff(0xf8)+this[_0x5a73ff(0x1cf)]+_0x5a73ff(0x2ba));}let {changeset:_0x5b52aa,pendingMutations:_0x3030a1}=_0xcf0e43;this[_0x5a73ff(0x2ec)][_0x5a73ff(0x26e)](_0x5b52aa);let _0x4e2373=_0x3030a1[_0x5a73ff(0x2cd)]?this[_0x5a73ff(0xee)][_0x5a73ff(0x1ff)](J,this[_0x5a73ff(0x11e)],this[_0x5a73ff(0x1cf)],_0x5b52aa,_0x3030a1,this['_handler'],void 0x0):this[_0x5a73ff(0xee)][_0x5a73ff(0x1ff)](q,this[_0x5a73ff(0x11e)],this[_0x5a73ff(0x1cf)],_0x5b52aa,this['_handler']);_0x4e2373['_updateLocalCache'](),this[_0x5a73ff(0x2ec)][_0x5a73ff(0x278)](this,_0x4e2373);},_0x527ea9);}[_0x3d5482(0x13e)](){const _0x30fcd9=_0x3d5482;var _0x3b47b3;let _0x10c9b7=this[_0x30fcd9(0x1fe)][_0x30fcd9(0x13b)](H);return(_0x3b47b3=_0x10c9b7==null?void 0x0:_0x10c9b7[_0x30fcd9(0x226)])==null?0x7d0:_0x3b47b3;}[_0x3d5482(0x211)](){const _0x2312b9=_0x3d5482;throw Error(_0x2312b9(0xf3));}[_0x3d5482(0x14d)](){const _0x2cb3e2=_0x3d5482;this[_0x2cb3e2(0x26f)]!=null&&(clearTimeout(this[_0x2cb3e2(0x26f)]),this[_0x2cb3e2(0x26f)]=null);}['_onConflict'](_0xb47e2e){const _0x599b1b=_0x3d5482;return this[_0x599b1b(0x14d)](),this['_injector'][_0x599b1b(0x1ff)](Y,this[_0x599b1b(0x11e)],this[_0x599b1b(0x1cf)],null,this[_0x599b1b(0x1f9)],this[_0x599b1b(0x2ec)],_0xb47e2e);}};K=Bt=L([I(0x4,_0x528933(_0x2f9ec4)),I(0x5,_0x528933(_0x2f0200)),I(0x6,_0x528933(R)),I(0x7,_0x2fc9db),I(0x8,_0x2169d2),I(0x9,_0x34eea4),I(0xa,_0x3a3a3e),I(0xb,_0x5c02d5),I(0xc,_0x32e478),I(0xd,_0x5e5f16(B))],K);let q=Vt=class extends W{constructor(_0x4f30fc,_0x1f5cb7,_0xc1eda,_0x359b5a,_0x195a7a,_0x3d1a7b,_0x27e73b,_0x498475,_0x5111a5,_0x54f3bc,_0x4961cf){const _0x7fa726=_0x3d5482;super(_0x4f30fc,_0x1f5cb7,_0xc1eda,[],_0x359b5a,_0x27e73b,_0x54f3bc,_0x3d1a7b,_0x4961cf),this['_injector']=_0x195a7a,this[_0x7fa726(0x1b2)]=_0x498475,this[_0x7fa726(0x14f)]=_0x5111a5,N(this,'status',U[_0x7fa726(0x191)]),N(this,_0x7fa726(0x27e),0x0),N(this,'_maxTotalRetryTimeout',0x0),N(this,_0x7fa726(0x273),void 0x0),N(this,_0x7fa726(0x11b),void 0x0);}['appendMutation'](_0x536769){const _0x2bac75=_0x3d5482;this['_clearScheduledTask']();let _0x2a2552=this['_injector'][_0x2bac75(0x1ff)](J,this[_0x2bac75(0x11e)],this[_0x2bac75(0x1cf)],this[_0x2bac75(0x178)],[_0x536769],this[_0x2bac75(0x2ec)],this[_0x2bac75(0x273)]);return _0x2a2552[_0x2bac75(0xf9)](),_0x2a2552;}['onRemoteChangeset'](_0x3cb47f){const _0xe17e79=_0x3d5482;if(this['_checkMissing'](_0x3cb47f))return this['_clearScheduledTask'](),this['_injector'][_0xe17e79(0x1ff)](Z,this[_0xe17e79(0x11e)],this['type'],this[_0xe17e79(0x178)],[],null,[_0x3cb47f],this['_handler']);try{let _0x4d58ed=this[_0xe17e79(0x14f)][_0xe17e79(0x157)]([_0x3cb47f],[this['_awaitingChangeset']],!0x1);if(_0x250ae2(_0x4d58ed)){let {c1Prime:_0x6a5fbf,c2Prime:_0x55fea4}=_0x4d58ed;this[_0xe17e79(0x262)](_0x6a5fbf[0x0]),_0x55fea4[0x0][_0xe17e79(0x27c)]=this['_getCurrentRevision'](),this[_0xe17e79(0x14d)]();let _0x4a80dd=this[_0xe17e79(0xee)][_0xe17e79(0x1ff)](Vt,this['unitID'],this[_0xe17e79(0x1cf)],_0x55fea4[0x0],this[_0xe17e79(0x2ec)]);return _0x4a80dd['_updateLocalCache'](),_0x4a80dd;}return this[_0xe17e79(0x2b9)](!0x1);}catch(_0x52b60c){return this[_0xe17e79(0x1b2)]['error'](_0x52b60c),this[_0xe17e79(0x2b9)](!0x1);}}[_0x3d5482(0x292)](_0x261325){const _0x2c6a00=_0x3d5482;this[_0x2c6a00(0x14d)]();let _0x22e57c=this[_0x2c6a00(0x1b6)]['getCurrentRevOfUnit'](this[_0x2c6a00(0x11e)]);if(_0x261325[_0x2c6a00(0x242)]<_0x22e57c-0x1)return this;if(this[_0x2c6a00(0x16a)](_0x261325))return this['_injector']['createInstance'](Z,this[_0x2c6a00(0x11e)],this['type'],null,[],this[_0x2c6a00(0x178)],[],this[_0x2c6a00(0x2ec)]);this[_0x2c6a00(0x11c)]();let _0x2b87e5=this['_injector'][_0x2c6a00(0x1ff)](G,this[_0x2c6a00(0x11e)],this[_0x2c6a00(0x1cf)],this[_0x2c6a00(0x2ec)]);return _0x2b87e5[_0x2c6a00(0xf9)](),_0x2b87e5;}[_0x3d5482(0xc9)](_0x1faa8f){return this['_onConflict'](!!(_0x1faa8f!=null&&_0x1faa8f['isPermissionRej']));}[_0x3d5482(0x139)](_0x27790c){const _0x4ded1f=_0x3d5482;return this[_0x4ded1f(0x202)]>Wt?this['toggleOffline']():(this[_0x4ded1f(0x273)]=zt(this['_resendTimeout'],{'timeout':this[_0x4ded1f(0x27e)],'reqId':_0x27790c[_0x4ded1f(0x2d4)]}),this[_0x4ded1f(0x11b)]=this[_0x4ded1f(0x273)][_0x4ded1f(0x20b)](({reqId:_0x6a1f12,timeout:_0x24cc0d})=>{const _0x3ef0df=_0x4ded1f;this[_0x3ef0df(0x1a5)](_0x6a1f12,_0x24cc0d);}),this);}[_0x3d5482(0x1ed)](){const _0x468f22=_0x3d5482;return this[_0x468f22(0x14d)](),this['_injector']['createInstance'](X,this['unitID'],this[_0x468f22(0x1cf)],this[_0x468f22(0x178)],[],this[_0x468f22(0x2ec)]);}[_0x3d5482(0x1df)](){return this;}[_0x3d5482(0x211)](){const _0x17ac0a=_0x3d5482;this['_handler']['onSendChangeset'](this[_0x17ac0a(0x178)]);}[_0x3d5482(0x2b9)](_0x1a4d22){const _0x2eaf56=_0x3d5482;return this[_0x2eaf56(0x14d)](),this[_0x2eaf56(0xee)][_0x2eaf56(0x1ff)](Y,this[_0x2eaf56(0x11e)],this[_0x2eaf56(0x1cf)],this['_awaitingChangeset'],[],this['_handler'],_0x1a4d22);}[_0x3d5482(0x1a5)](_0x191375,_0x4b89a0){const _0x1e309b=_0x3d5482;var _0x13bfa4;_0x191375===((_0x13bfa4=this[_0x1e309b(0x178)])==null?void 0x0:_0x13bfa4['reqId'])&&(this[_0x1e309b(0x211)](),this['_resendTimeout']=_0x4b89a0===0x0?0x3e8:Math['min'](_0x4b89a0*0x2,Ut),this[_0x1e309b(0x202)]+=this[_0x1e309b(0x27e)]);}[_0x3d5482(0x14d)](){const _0x51ac3e=_0x3d5482;var _0x5bd526;(_0x5bd526=this['_sender'])==null||_0x5bd526[_0x51ac3e(0x228)](),this[_0x51ac3e(0x27e)]=0x0,this[_0x51ac3e(0x202)]=0x0;}};q=Vt=L([I(0x4,_0x528933(_0x2f9ec4)),I(0x5,_0x528933(_0x2f0200)),I(0x6,_0x2169d2),I(0x7,_0x2fc9db),I(0x8,_0x3a3a3e),I(0x9,_0x32e478),I(0xa,_0x5e5f16(B))],q);let J=Ht=class extends W{constructor(_0x29d8fb,_0x748d2d,_0x8a24e0,_0x8b424b,_0x5e1764,_0x52ee23,_0x46db16,_0x4fee03,_0x413307,_0x3abd16,_0x2f1b57,_0x2af7a0,_0x194c50){const _0xa1cd2e=_0x3d5482;super(_0x29d8fb,_0x748d2d,_0x8a24e0,_0x8b424b,_0x5e1764,_0x413307,_0x2af7a0,_0x4fee03,_0x194c50),this[_0xa1cd2e(0xee)]=_0x46db16,this[_0xa1cd2e(0x1b2)]=_0x3abd16,this[_0xa1cd2e(0x14f)]=_0x2f1b57,this['localCacheService']=_0x194c50,N(this,_0xa1cd2e(0xdb),U[_0xa1cd2e(0xb6)]),N(this,_0xa1cd2e(0x27e),0x0),N(this,_0xa1cd2e(0x202),0x0),N(this,_0xa1cd2e(0x273),void 0x0),N(this,_0xa1cd2e(0x11b),void 0x0),_0x52ee23&&(this[_0xa1cd2e(0x273)]=_0x52ee23,this[_0xa1cd2e(0x11b)]=this[_0xa1cd2e(0x273)][_0xa1cd2e(0x20b)](({reqId:_0x441d96,timeout:_0x2cd652})=>{this['_resendWithTimeout'](_0x441d96,_0x2cd652);}));}[_0x3d5482(0xc3)](_0x4abe96){const _0x3923e5=_0x3d5482;return this[_0x3923e5(0x1f9)][_0x3923e5(0x2e8)](_0x4abe96),this;}[_0x3d5482(0x137)](_0x1a7146){const _0x5dae12=_0x3d5482;if(this[_0x5dae12(0x16a)](_0x1a7146))return this[_0x5dae12(0x14d)](),this[_0x5dae12(0xee)][_0x5dae12(0x1ff)](Z,this[_0x5dae12(0x11e)],this[_0x5dae12(0x1cf)],this[_0x5dae12(0x178)],this[_0x5dae12(0x1f9)],null,[_0x1a7146],this[_0x5dae12(0x2ec)]);try{let _0x3227fd=this[_0x5dae12(0x14f)][_0x5dae12(0x157)]([_0x1a7146],[this[_0x5dae12(0x178)]],!0x1);if(_0x250ae2(_0x3227fd)){let {c1Prime:_0x163064,c2Prime:_0x48d355}=_0x3227fd,_0x359ad1=this['_transformService']['transformMutationsWithChangeset'](_0x163064[0x0],this[_0x5dae12(0x1f9)]);if(_0x2ae31c(_0x359ad1)){let {c1Prime:_0x43229b,m2Prime:_0x53c8ac}=_0x359ad1;return this[_0x5dae12(0x262)](_0x43229b),_0x48d355[0x0][_0x5dae12(0x27c)]=this[_0x5dae12(0x248)](),this[_0x5dae12(0x14d)](),this[_0x5dae12(0xee)][_0x5dae12(0x1ff)](Ht,this['unitID'],this[_0x5dae12(0x1cf)],_0x48d355[0x0],_0x53c8ac,this[_0x5dae12(0x2ec)],void 0x0);}throw _0x359ad1['error'];}throw _0x3227fd[_0x5dae12(0x167)];}catch(_0x2c4b04){return this[_0x5dae12(0x1b2)]['error'](_0x2c4b04),this[_0x5dae12(0x2b9)](!0x1);}}[_0x3d5482(0x292)](_0x42bd80){const _0x157531=_0x3d5482;if(this['_clearScheduledTask'](),this['_checkMissing'](_0x42bd80))return this[_0x157531(0xee)][_0x157531(0x1ff)](Z,this['unitID'],this[_0x157531(0x1cf)],null,this[_0x157531(0x1f9)],this[_0x157531(0x178)],[],this[_0x157531(0x2ec)]);this[_0x157531(0x11c)]();let _0x404377=this[_0x157531(0xee)][_0x157531(0x1ff)](K,this[_0x157531(0x11e)],this[_0x157531(0x1cf)],this['_pendingMutations'],this[_0x157531(0x2ec)]);return _0x404377[_0x157531(0x219)](),_0x404377[_0x157531(0xf9)](),_0x404377;}['onRemoteRej'](_0x5557a5){const _0x4a2e56=_0x3d5482;return this[_0x4a2e56(0x2b9)](!!(_0x5557a5!=null&&_0x5557a5[_0x4a2e56(0x1f6)]));}[_0x3d5482(0x139)](_0x2e8f39){const _0x5b6a7d=_0x3d5482;return this['_maxTotalRetryTimeout']>Wt?this[_0x5b6a7d(0x1ed)]():(this[_0x5b6a7d(0x273)]=zt(this[_0x5b6a7d(0x27e)],{'timeout':this[_0x5b6a7d(0x27e)],'reqId':_0x2e8f39[_0x5b6a7d(0x2d4)]}),this['_sender']=this['_resendTimer'][_0x5b6a7d(0x20b)](({reqId:_0x567592,timeout:_0x2a89da})=>{const _0x53ff21=_0x5b6a7d;this[_0x53ff21(0x1a5)](_0x567592,_0x2a89da);}),this);}[_0x3d5482(0x1ed)](){const _0x2c0235=_0x3d5482;return this[_0x2c0235(0x14d)](),this['_injector'][_0x2c0235(0x1ff)](X,this[_0x2c0235(0x11e)],this[_0x2c0235(0x1cf)],this[_0x2c0235(0x178)],this[_0x2c0235(0x1f9)],this[_0x2c0235(0x2ec)]);}['toggleOnline'](){return this;}['resend'](){const _0x54e9a8=_0x3d5482;this[_0x54e9a8(0x2ec)][_0x54e9a8(0x26e)](this['_awaitingChangeset']);}['_onConflict'](_0x45856f){const _0x544be9=_0x3d5482;return this['_clearScheduledTask'](),this[_0x544be9(0xee)]['createInstance'](Y,this[_0x544be9(0x11e)],this[_0x544be9(0x1cf)],null,this[_0x544be9(0x1f9)],this[_0x544be9(0x2ec)],_0x45856f);}[_0x3d5482(0x1a5)](_0x37b91b,_0x2490dd){const _0x2b4099=_0x3d5482;var _0x5e51fc;_0x37b91b===((_0x5e51fc=this[_0x2b4099(0x178)])==null?void 0x0:_0x5e51fc['reqId'])&&(this[_0x2b4099(0x211)](),this[_0x2b4099(0x27e)]=_0x2490dd===0x0?0x3e8:Math[_0x2b4099(0x2eb)](_0x2490dd*0x2,Ut),this[_0x2b4099(0x202)]+=this['_resendTimeout']);}[_0x3d5482(0x14d)](){const _0x4af9d0=_0x3d5482;var _0x4dd641;(_0x4dd641=this['_sender'])==null||_0x4dd641[_0x4af9d0(0x228)](),this['_resendTimeout']=0x0,this[_0x4af9d0(0x202)]=0x0;}};J=Ht=L([I(0x6,_0x528933(_0x2f9ec4)),I(0x7,_0x528933(_0x2f0200)),I(0x8,_0x2169d2),I(0x9,_0x2fc9db),I(0xa,_0x3a3a3e),I(0xb,_0x32e478),I(0xc,_0x5e5f16(B))],J);let Y=class extends W{constructor(_0x256259,_0x1896c1,_0x34ce99,_0x3f7d3b,_0x390e1d,_0x1859a0=!0x1,_0x4c360b,_0x4e0a58,_0x1e939f,_0x4b2161,_0x4f8579,_0x493a23,_0x49ec72){const _0x599a8f=_0x3d5482;super(_0x256259,_0x1896c1,_0x34ce99,_0x3f7d3b,_0x390e1d,_0x4e0a58,_0x1e939f,_0x4b2161,_0x49ec72),this['_isPermissionRej']=_0x1859a0,this[_0x599a8f(0x153)]=_0x4c360b,this[_0x599a8f(0xfc)]=_0x4f8579,this[_0x599a8f(0x311)]=_0x493a23,this[_0x599a8f(0x130)]=_0x49ec72,N(this,_0x599a8f(0xdb),U['CONFLICT']),this[_0x599a8f(0xc2)](),this['_clearLocalCache'](),this[_0x599a8f(0x29a)]();}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x3d5482(0x292)](){return this;}[_0x3d5482(0xc9)](){return this;}['onRemoteRetry'](){return this;}[_0x3d5482(0x1ed)](){return this;}[_0x3d5482(0x1df)](){return this;}[_0x3d5482(0x211)](){const _0x4d4963=_0x3d5482;throw Error(_0x4d4963(0x220));}[_0x3d5482(0x2e9)](){const _0x1a2fc2=_0x3d5482;var _0x4db456;(_0x4db456=this[_0x1a2fc2(0xd0)])==null||_0x4db456[_0x1a2fc2(0x1ee)](this[_0x1a2fc2(0x11e)],this['type'],null,[]);}['_showConflictNotification'](){const _0x3dd681=_0x3d5482;this[_0x3dd681(0x213)]?this[_0x3dd681(0x311)][_0x3dd681(0x20f)]({'id':P[_0x3dd681(0xaf)]}):this[_0x3dd681(0x311)]['emitEvent']({'id':P[_0x3dd681(0x20c)]});}[_0x3d5482(0x29a)](){const _0x2c3ba9=_0x3d5482;this[_0x2c3ba9(0x153)][_0x2c3ba9(0x102)](new _0x627a18(this[_0x2c3ba9(0x11e)])['id'],!0x1);}};Y=L([I(0x6,_0x528933(_0x10ad10)),I(0x7,_0x2169d2),I(0x8,_0x32e478),I(0x9,_0x528933(_0x2f0200)),I(0xa,_0x528933(_0x3d6ea1)),I(0xb,_0x528933(F)),I(0xc,_0x5e5f16(B))],Y);let X=class extends W{constructor(_0x112f97,_0x78e739,_0x3d681c,_0x363c84,_0x960e2c,_0x55a579,_0x5e06,_0x554fa5,_0x49d124,_0x5b08a4){const _0x4a8600=_0x3d5482;super(_0x112f97,_0x78e739,_0x3d681c,_0x363c84,_0x960e2c,_0x554fa5,_0x49d124,_0x5e06,_0x5b08a4),this[_0x4a8600(0xee)]=_0x55a579,N(this,_0x4a8600(0xdb),U[_0x4a8600(0x275)]);}[_0x3d5482(0xc3)](_0x8eb260){const _0x5f35d5=_0x3d5482;return this[_0x5f35d5(0x1f9)][_0x5f35d5(0x2e8)](_0x8eb260),this[_0x5f35d5(0xf9)](),this;}[_0x3d5482(0x137)](_0x515891){const _0x1a2f0d=_0x3d5482;throw Error(_0x1a2f0d(0xcf));}[_0x3d5482(0x292)](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x3d5482(0xc9)](){const _0x2f3bdd=_0x3d5482;throw Error(_0x2f3bdd(0x100));}[_0x3d5482(0x139)](){return this;}['toggleOffline'](){return this;}[_0x3d5482(0x1df)](){const _0x419151=_0x3d5482;let {_injector:_0x3c0ef8,_pendingMutations:_0x548859,_awaitingChangeset:_0x5bb6f,unitID:_0x34f508,_handler:_0x3f5b8f,type:_0x53c9a6}=this,_0x38f6dd=Gt(_0x3c0ef8,_0x34f508,_0x53c9a6,_0x5bb6f,_0x548859,_0x3f5b8f);return _0x38f6dd instanceof K?_0x38f6dd[_0x419151(0x219)]():(_0x38f6dd instanceof J||_0x38f6dd instanceof q)&&_0x38f6dd[_0x419151(0x211)](),_0x38f6dd;}['resend'](){const _0xf03de7=_0x3d5482;throw Error(_0xf03de7(0x173));}};X=L([I(0x5,_0x528933(_0x2f9ec4)),I(0x6,_0x528933(_0x2f0200)),I(0x7,_0x2169d2),I(0x8,_0x32e478),I(0x9,_0x5e5f16(B))],X);let Z=class extends W{constructor(_0x2e28db,_0x4e53c8,_0x94c132,_0x26998d,_0x48390c,_0x39d693,_0x12619a,_0x259c30,_0x29ab6d,_0x81e103,_0x541137,_0x5c1b9d,_0x3e61b5,_0x1b6629){const _0x48cada=_0x3d5482;super(_0x2e28db,_0x4e53c8,_0x94c132,_0x26998d,_0x12619a,_0x541137,_0x5c1b9d,_0x29ab6d,_0x1b6629),this['_acknowledgedAwaitingChangeset']=_0x48390c,this[_0x48cada(0x15a)]=_0x39d693,this['_injector']=_0x259c30,this[_0x48cada(0x1b2)]=_0x81e103,this[_0x48cada(0x14f)]=_0x3e61b5,this[_0x48cada(0x130)]=_0x1b6629,N(this,_0x48cada(0xdb),U[_0x48cada(0x205)]);}[_0x3d5482(0x1ad)](_0x2c0060){const _0x32d66d=_0x3d5482;try{let _0x52fd4f=[..._0x2c0060,...this[_0x32d66d(0x15a)]],_0x10998f=[this['_awaitingChangeset']||this[_0x32d66d(0x112)]]['filter'](_0x5431f4=>!!_0x5431f4),_0xa61711,_0x141e7f;if(_0x10998f[_0x32d66d(0x2cd)]){let _0x58d2a9=this[_0x32d66d(0x14f)]['transformChangesets'](_0x52fd4f,_0x10998f,!0x1);if(!_0x250ae2(_0x58d2a9))throw _0x58d2a9[_0x32d66d(0x167)];_0xa61711=_0x58d2a9['c1Prime'],_0x141e7f=_0x58d2a9['c2Prime'];}else _0xa61711=_0x52fd4f,_0x141e7f=[];let _0x265565=this[_0x32d66d(0x1f9)];_0xa61711['forEach'](_0x533a5e=>{const _0x517d04=_0x32d66d;let _0xed13a3;if(_0x265565[_0x517d04(0x2cd)]){let _0x388bb8=this[_0x517d04(0x14f)]['transformMutationsWithChangeset'](_0x533a5e,_0x265565);if(!_0x2ae31c(_0x388bb8))throw _0x388bb8[_0x517d04(0x167)];_0xed13a3=_0x388bb8[_0x517d04(0x2d5)],_0x265565=_0x388bb8['m2Prime'];}else _0xed13a3=_0x533a5e;this[_0x517d04(0x262)](_0xed13a3);}),this[_0x32d66d(0x112)]&&this[_0x32d66d(0x11c)](),this[_0x32d66d(0x178)]&&_0x141e7f[_0x32d66d(0x2cd)]&&(_0x141e7f[0x0]['baseRev']=this[_0x32d66d(0x248)]());let _0x2ed583;if(this[_0x32d66d(0x178)]&&_0x265565[_0x32d66d(0x2cd)]!==0x0)_0x2ed583=this['_injector'][_0x32d66d(0x1ff)](J,this[_0x32d66d(0x11e)],this[_0x32d66d(0x1cf)],_0x141e7f[0x0],_0x265565,this[_0x32d66d(0x2ec)],void 0x0);else{if(this[_0x32d66d(0x178)]&&_0x265565[_0x32d66d(0x2cd)]===0x0)_0x141e7f[0x0][_0x32d66d(0x27c)]=this['_getCurrentRevision'](),_0x2ed583=this[_0x32d66d(0xee)][_0x32d66d(0x1ff)](q,this[_0x32d66d(0x11e)],this[_0x32d66d(0x1cf)],_0x141e7f[0x0],this[_0x32d66d(0x2ec)]);else{if(_0x265565[_0x32d66d(0x2cd)]!==0x0){let _0x32ed22=this[_0x32d66d(0xee)][_0x32d66d(0x1ff)](K,this['unitID'],this[_0x32d66d(0x1cf)],_0x265565,this[_0x32d66d(0x2ec)]);_0x32ed22[_0x32d66d(0x219)](),_0x2ed583=_0x32ed22;}else _0x2ed583=this['_injector']['createInstance'](G,this[_0x32d66d(0x11e)],this[_0x32d66d(0x1cf)],this['_handler']);}}return _0x2ed583[_0x32d66d(0xf9)](),_0x2ed583;}catch(_0x481062){return this[_0x32d66d(0x1b2)][_0x32d66d(0x167)](_0x32d66d(0xbf),'failed\x20to\x20apply\x20missed\x20changesets!',_0x481062),this['_injector'][_0x32d66d(0x1ff)](Y,this['unitID'],this[_0x32d66d(0x1cf)],this[_0x32d66d(0x178)],this[_0x32d66d(0x1f9)],this[_0x32d66d(0x2ec)],!0x1);}}[_0x3d5482(0x211)](){const _0x5ed403=_0x3d5482;throw Error(_0x5ed403(0x2c9));}[_0x3d5482(0xc3)](_0x42d4ac){const _0x12ad09=_0x3d5482;return this['_pendingMutations'][_0x12ad09(0x2e8)](_0x42d4ac),this;}[_0x3d5482(0x137)](_0x43469){const _0x5e19e9=_0x3d5482;return this[_0x5e19e9(0x15a)][_0x5e19e9(0x2e8)](_0x43469),this;}['onRemoteAck'](_0x2ecd7b){const _0x44dc35=_0x3d5482;if(this[_0x44dc35(0x178)])return this[_0x44dc35(0x112)]=this['_awaitingChangeset'],this['_awaitingChangeset']=null,this;throw Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x3d5482(0xc9)](_0x126e2b){const _0x348832=_0x3d5482;return this[_0x348832(0x2b9)](!!(_0x126e2b!=null&&_0x126e2b[_0x348832(0x1f6)]));}[_0x3d5482(0x139)](){return this;}[_0x3d5482(0x1ed)](){const _0xba06f5=_0x3d5482;return this[_0xba06f5(0xee)][_0xba06f5(0x1ff)](X,this[_0xba06f5(0x11e)],this[_0xba06f5(0x1cf)],this['_awaitingChangeset'],this[_0xba06f5(0x1f9)],this[_0xba06f5(0x2ec)]);}[_0x3d5482(0x1df)](){return this;}[_0x3d5482(0x2b9)](_0x2d7006){const _0xa515d7=_0x3d5482;return this['_injector'][_0xa515d7(0x1ff)](Y,this[_0xa515d7(0x11e)],this[_0xa515d7(0x1cf)],this[_0xa515d7(0x178)],this[_0xa515d7(0x1f9)],this[_0xa515d7(0x2ec)],_0x2d7006);}};Z=L([I(0x7,_0x528933(_0x2f9ec4)),I(0x8,_0x528933(_0x2f0200)),I(0x9,_0x2fc9db),I(0xa,_0x2169d2),I(0xb,_0x32e478),I(0xc,_0x3a3a3e),I(0xd,_0x5e5f16(B))],Z);function Gt(_0x255cc2,_0x3c165b,_0x118312,_0x255d4,_0x39433d,_0xe3ef23){const _0x2468ef=_0x3d5482;return _0x255d4&&_0x39433d['length']?_0x255cc2[_0x2468ef(0x1ff)](J,_0x3c165b,_0x118312,_0x255d4,_0x39433d,_0xe3ef23,void 0x0):_0x255d4?_0x255cc2['createInstance'](q,_0x3c165b,_0x118312,_0x255d4,_0xe3ef23):_0x39433d['length']?_0x255cc2[_0x2468ef(0x1ff)](K,_0x3c165b,_0x118312,_0x39433d,_0xe3ef23):_0x255cc2[_0x2468ef(0x1ff)](G,_0x3c165b,_0x118312,_0xe3ef23);}let Kt=class extends _0x114242{get[_0x3d5482(0xb9)](){const _0x4bd4a9=_0x3d5482;return this[_0x4bd4a9(0x2f9)];}constructor(_0x411049,_0x5f515c,_0x21055d,_0x5e8f70,_0xb6f4b2,_0x95bcf6,_0x3eeb96,_0x3ba7a5,_0x5b4e59,_0x308566,_0x4f5c9f,_0x39c416,_0x27a53f,_0x4c0761){const _0x4a6c6d=_0x3d5482;super(),this[_0x4a6c6d(0x11e)]=_0x411049,this['session']=_0x5f515c,this[_0x4a6c6d(0x194)]=_0x21055d,this[_0x4a6c6d(0xee)]=_0x5e8f70,this[_0x4a6c6d(0x22e)]=_0xb6f4b2,this[_0x4a6c6d(0xfc)]=_0x95bcf6,this[_0x4a6c6d(0x1b6)]=_0x3eeb96,this[_0x4a6c6d(0x282)]=_0x3ba7a5,this[_0x4a6c6d(0x2d0)]=_0x5b4e59,this[_0x4a6c6d(0x1b2)]=_0x308566,this[_0x4a6c6d(0x1a6)]=_0x4f5c9f,this[_0x4a6c6d(0x153)]=_0x39c416,this[_0x4a6c6d(0x29f)]=_0x27a53f,this[_0x4a6c6d(0xd0)]=_0x4c0761,N(this,_0x4a6c6d(0x308),new _0x3a2e8a(null)),N(this,'state$',this[_0x4a6c6d(0x308)][_0x4a6c6d(0xfe)]()),N(this,_0x4a6c6d(0x2f9),void 0x0),N(this,'_collaborationPaused',!0x1),N(this,'_changesetSessionId',''),N(this,_0x4a6c6d(0x200),0x0),N(this,'status$',this[_0x4a6c6d(0x2d6)][_0x4a6c6d(0xf5)](_0x3378fe(_0x5ab9e9=>_0x5ab9e9?_0x5ab9e9[_0x4a6c6d(0xdb)]:U[_0x4a6c6d(0x275)]),_0x3424e8(0x1))),N(this,_0x4a6c6d(0x250),!0x1),N(this,_0x4a6c6d(0x2dd),[]);}async[_0x3d5482(0xda)](){const _0x2c997e=_0x3d5482;if(this[_0x2c997e(0xb9)])throw Error(_0x2c997e(0x138));await this[_0x2c997e(0x1d7)]();}[_0x3d5482(0x197)](){const _0x555707=_0x3d5482;return this[_0x555707(0x183)]=!0x0,_0x25b528(()=>{const _0x3ba9cb=_0x555707;this[_0x3ba9cb(0x183)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x3d5482(0xe2)](_0x1d4cd3){this['_onLocalMutation'](_0x1d4cd3);}['_updateState'](_0x3aca73){const _0x5c4f31=_0x3d5482;this['_state']=_0x3aca73,this[_0x5c4f31(0x308)][_0x5c4f31(0x2a2)](_0x3aca73);}async[_0x3d5482(0x1d7)](){const _0xcf93a0=_0x3d5482;if(this[_0xcf93a0(0x22f)](await this[_0xcf93a0(0x289)]()),this[_0xcf93a0(0x29f)]){var _0x449300;(_0x449300=this[_0xcf93a0(0x29f)])==null||_0x449300[_0xcf93a0(0xcd)](this[_0xcf93a0(0x11e)]),this[_0xcf93a0(0x25a)](this[_0xcf93a0(0x29f)][_0xcf93a0(0xf7)](this[_0xcf93a0(0x11e)])[_0xcf93a0(0x20b)](_0x597a36=>{const _0x3ed8da=_0xcf93a0;this[_0x3ed8da(0x1b2)][_0x3ed8da(0x254)]('[CollaborationEntity]',_0x3ed8da(0x125),_0x597a36),_0x597a36===Nt[_0x3ed8da(0x313)]?(this[_0x3ed8da(0x282)][_0x3ed8da(0x20f)]({'id':P['OTHER_CLIENT_EDITING']}),this['_permissionService'][_0x3ed8da(0x102)](new _0x627a18(this[_0x3ed8da(0x11e)])['id'],!0x1),this['_permissionService'][_0x3ed8da(0x2b5)](!0x1)):(this[_0x3ed8da(0x153)][_0x3ed8da(0x102)](new _0x627a18(this['unitID'])['id'],!0x0),this['_permissionService']['setShowComponents'](!0x0));}));}let _0x15586c=!0x1;return this[_0xcf93a0(0x25a)](this[_0xcf93a0(0x22c)][_0xcf93a0(0x190)][_0xcf93a0(0x20b)](_0x119cf6=>{const _0x1b5bcf=_0xcf93a0;_0x119cf6===z[_0x1b5bcf(0x1e3)]?this[_0x1b5bcf(0x17e)](_0x15586c):_0x119cf6===z['OFFLINE']&&(_0x15586c=!0x0,this[_0x1b5bcf(0x29c)]());})),this[_0xcf93a0(0x25a)](this[_0xcf93a0(0x22c)][_0xcf93a0(0x128)][_0xcf93a0(0x20b)](_0x11fe9c=>{const _0x50a9df=_0xcf93a0;try{switch(_0x11fe9c['eventID']){case _0x50665f[_0x50a9df(0x267)]:this['_onRemoteChangeset'](_0x502be6(_0x11fe9c[_0x50a9df(0x210)]));break;case _0x50665f[_0x50a9df(0x245)]:this[_0x50a9df(0x140)](_0x11fe9c[_0x50a9df(0x210)]);break;case _0x50665f[_0x50a9df(0x16b)]:this[_0x50a9df(0x2d7)]();break;case _0x50665f[_0x50a9df(0x12d)]:this['_onRemoteRetry'](_0x11fe9c[_0x50a9df(0x210)]);break;case _0x50665f[_0x50a9df(0x2b7)]:this[_0x50a9df(0x109)](_0x11fe9c[_0x50a9df(0x210)][_0x50a9df(0x1a2)][_0x50a9df(0x1ce)](_0x4c9f55=>_0x502be6(_0x4c9f55)));break;case _0x50665f['PERMISSION_REJ']:this[_0x50a9df(0x2d7)]({'isPermissionRej':!0x0});break;case _0x50665f[_0x50a9df(0x159)]:break;}}catch(_0x47877e){throw console[_0x50a9df(0x167)]('Error\x20on\x20receiving\x20event',_0x47877e),_0x47877e;}})),this[_0xcf93a0(0x2f9)];}[_0x3d5482(0x26a)](){const _0x2f088c=_0x3d5482;this[_0x2f088c(0x250)]=!0x1;}[_0x3d5482(0x2c3)](){const _0x4380e6=_0x3d5482;if(this[_0x4380e6(0x250)])throw Error(_0x4380e6(0x249));this[_0x4380e6(0x250)]=!0x0;}[_0x3d5482(0x229)](_0x9074a4){const _0x1b1bc1=_0x3d5482;this[_0x1b1bc1(0x2c3)](),this[_0x1b1bc1(0x22f)](this[_0x1b1bc1(0x2f9)][_0x1b1bc1(0xc3)](_0x9074a4)),this[_0x1b1bc1(0x26a)]();}[_0x3d5482(0x236)](_0xc557b3){const _0x2e2410=_0x3d5482;if(!(_0xc557b3[_0x2e2410(0x242)]<=this[_0x2e2410(0x1b6)][_0x2e2410(0x2fd)](this['unitID']))){if(this[_0x2e2410(0x183)]){this[_0x2e2410(0x2dd)][_0x2e2410(0x2e8)](_0xc557b3);return;}this[_0x2e2410(0x27a)](_0xc557b3);}}[_0x3d5482(0x175)](){const _0x10c2bc=_0x3d5482;this[_0x10c2bc(0x2dd)][_0x10c2bc(0x1cc)](_0x1deafb=>this[_0x10c2bc(0x27a)](_0x1deafb)),this[_0x10c2bc(0x2dd)]=[];}['_applyRemoteChangeset'](_0x1bb120){const _0x471548=_0x3d5482;let _0x31d291=this[_0x471548(0x22e)]['interceptor'][_0x471548(0x136)](this[_0x471548(0x22e)][_0x471548(0xba)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x1bb120[_0x471548(0xad)],null)||_0x1bb120[_0x471548(0xad)],_0x7aeaf2={..._0x1bb120,'mutations':_0x31d291};this['_lockTransition'](),this['_updateState'](this[_0x471548(0x2f9)][_0x471548(0x137)](_0x7aeaf2)),this[_0x471548(0x26a)]();}[_0x3d5482(0x140)](_0x38d885){const _0x460597=_0x3d5482;this[_0x460597(0x2c3)](),this[_0x460597(0x22f)](this[_0x460597(0x2f9)][_0x460597(0x292)](_0x38d885)),this[_0x460597(0x26a)]();}['_onRemoteRejected'](_0x1c362e){const _0x16a1ff=_0x3d5482;this[_0x16a1ff(0x2c3)](),this[_0x16a1ff(0x22f)](this[_0x16a1ff(0x2f9)][_0x16a1ff(0xc9)](_0x1c362e)),this[_0x16a1ff(0x26a)]();}[_0x3d5482(0xdc)](_0x3fc909){const _0x1827b2=_0x3d5482;this['_lockTransition'](),this[_0x1827b2(0x22f)](this['_state']['onRemoteRetry'](_0x3fc909)),this['_unlockTransition']();}[_0x3d5482(0x109)](_0x3d20c2){const _0x2432b5=_0x3d5482;if(!(this[_0x2432b5(0x2f9)]instanceof Z))throw TypeError(_0x2432b5(0x146));let _0x48f4da=_0x3d20c2['map'](_0x4e0701=>{const _0x560e82=_0x2432b5;let _0x298337=this['_compressMutationService'][_0x560e82(0xba)][_0x560e82(0x136)](this['_compressMutationService'][_0x560e82(0xba)][_0x560e82(0x17f)]()[_0x560e82(0x113)])(_0x4e0701[_0x560e82(0xad)],null)||_0x4e0701[_0x560e82(0xad)];return{..._0x4e0701,'mutations':_0x298337};});this['_lockTransition'](),this['_updateState'](this[_0x2432b5(0x2f9)][_0x2432b5(0x1ad)](_0x48f4da)),this['_unlockTransition']();}[_0x3d5482(0x29c)](){const _0x32800d=_0x3d5482;this[_0x32800d(0x2c3)](),this['_updateState'](this[_0x32800d(0x2f9)]['toggleOffline']()),this[_0x32800d(0x26a)]();}[_0x3d5482(0x17e)](_0x2bd622=!0x1){const _0x4cbae1=_0x3d5482;this[_0x4cbae1(0x2c3)](),this[_0x4cbae1(0x22f)](this['_state'][_0x4cbae1(0x1df)]()),this[_0x4cbae1(0x26a)]();let _0x170b4f=this[_0x4cbae1(0x2f9)];_0x2bd622&&_0x170b4f instanceof G&&(this[_0x4cbae1(0x2c3)](),this[_0x4cbae1(0x22f)](_0x170b4f['fetchMiss']()),this[_0x4cbae1(0x26a)]());}async[_0x3d5482(0x289)](){return new Promise(_0x3bae0d=>{const _0x5b015f=_0x157c;this['session'][_0x5b015f(0x190)][_0x5b015f(0xf5)](_0xa3e082(0x1))[_0x5b015f(0x20b)](async _0x33d69c=>{const _0x182f44=_0x5b015f;_0x3bae0d(await this[_0x182f44(0x1ae)](_0x33d69c===z['ONLINE']));});});}['_createHandler'](){let _0x4f15c7=this['unitID'];return{'onStateChange':(_0x2997fb,_0x3c23d7)=>{const _0x4cb1b1=_0x157c;if(_0x2997fb!==this[_0x4cb1b1(0x2f9)])throw Error(_0x4cb1b1(0x257)+_0x2997fb[_0x4cb1b1(0xdb)]+_0x4cb1b1(0x117)+_0x3c23d7[_0x4cb1b1(0xdb)]+_0x4cb1b1(0x238)+this[_0x4cb1b1(0x2f9)][_0x4cb1b1(0xdb)]);this[_0x4cb1b1(0x22f)](_0x3c23d7);},'onSendChangeset':_0x5b4332=>{const _0x466dbf=_0x157c;_0x5b4332[_0x466dbf(0xb4)]||(_0x5b4332[_0x466dbf(0xb4)]=this['_changesetSessionId'],_0x5b4332['reqId']=++this[_0x466dbf(0x200)]);let _0x16b6d1={'eventID':_0x50665f[_0x466dbf(0x276)],'data':{'unitID':_0x5b4332[_0x466dbf(0x11e)],'unitType':this[_0x466dbf(0x194)],'changeset':_0x5b4332,'memberID':this['session'][_0x466dbf(0x214)]()}};this['session'][_0x466dbf(0x280)](_0x16b6d1,this['unitID']);},'onMissingChangesets':({from:_0x33d188,to:_0x3b4a33})=>{const _0x40a27c=_0x157c;this[_0x40a27c(0x1b2)][_0x40a27c(0x254)](_0x40a27c(0x2c2),'fetching\x20missing\x20changesets\x20from\x20'+_0x33d188+'\x20to\x20'+_0x3b4a33);let _0x2011b0={'eventID':_0x50665f[_0x40a27c(0x2af)],'data':{'unitID':_0x4f15c7,'unitType':this[_0x40a27c(0x194)],'from':_0x33d188,'to':_0x3b4a33}};this[_0x40a27c(0x22c)][_0x40a27c(0x280)](_0x2011b0,this[_0x40a27c(0x11e)]);}};}async[_0x3d5482(0x1ae)](_0x123e2f){const _0x1bff06=_0x3d5482;var _0x2a0a5b,_0x5c3eb4,_0x153d46;let _0x2cce43=await((_0x2a0a5b=this['_localCacheService'])==null?void 0x0:_0x2a0a5b[_0x1bff06(0x10c)](this[_0x1bff06(0x11e)])),_0x44a036=(_0x5c3eb4=_0x2cce43==null?void 0x0:_0x2cce43[_0x1bff06(0xad)])==null?[]:_0x5c3eb4,_0x40bb69=(_0x153d46=_0x2cce43==null?void 0x0:_0x2cce43[_0x1bff06(0x2ea)])==null?null:_0x153d46,_0x312cb3=!!(_0x40bb69!=null&&_0x40bb69[_0x1bff06(0xb4)])&&!!(_0x40bb69!=null&&_0x40bb69['reqId']);this[_0x1bff06(0x163)]=_0x312cb3?_0x40bb69[_0x1bff06(0xb4)]:_0x1684b1(),this[_0x1bff06(0x200)]=_0x312cb3?_0x40bb69[_0x1bff06(0x2d4)]:0x0;let _0x5764a3=this[_0x1bff06(0x11e)];try{this[_0x1bff06(0x132)](_0x40bb69,_0x44a036);}catch(_0x462884){this[_0x1bff06(0x1b2)][_0x1bff06(0x167)](_0x462884);}let _0x52a3f3=this[_0x1bff06(0xa7)]();if(_0x123e2f){let _0x431313=Gt(this[_0x1bff06(0xee)],_0x5764a3,this[_0x1bff06(0x194)],_0x40bb69,_0x44a036,_0x52a3f3);return _0x431313 instanceof K?_0x431313[_0x1bff06(0x219)]():(_0x431313 instanceof J||_0x431313 instanceof q)&&_0x431313[_0x1bff06(0x211)](),_0x431313;}return this[_0x1bff06(0xee)][_0x1bff06(0x1ff)](X,_0x5764a3,this[_0x1bff06(0x194)],_0x40bb69,_0x44a036,_0x52a3f3);}['_replayCachedMutations'](_0x2e98ef,_0x31f8d4){const _0x123c9a=_0x3d5482;var _0xad5fbf,_0x22ccb8;let _0x25c622=this[_0x123c9a(0x22e)][_0x123c9a(0xba)][_0x123c9a(0x136)](this[_0x123c9a(0x22e)][_0x123c9a(0xba)]['getInterceptPoints']()[_0x123c9a(0x113)]);(_0xad5fbf=_0x25c622((_0x2e98ef==null?void 0x0:_0x2e98ef[_0x123c9a(0xad)])||[],null))==null||_0xad5fbf[_0x123c9a(0x1cc)](_0x5d6b38=>this[_0x123c9a(0x1a6)][_0x123c9a(0x2cf)](_0x5d6b38['id'],_0x5d6b38[_0x123c9a(0x1e6)])),(_0x22ccb8=_0x25c622(_0x31f8d4||[],null))==null||_0x22ccb8[_0x123c9a(0x1cc)](_0x443314=>this[_0x123c9a(0x1a6)]['executeCommand'](_0x443314['id'],_0x443314[_0x123c9a(0x1e6)]));}};Kt=L([I(0x3,_0x528933(_0x2f9ec4)),I(0x4,_0x528933(_0x33b352)),I(0x5,_0x528933(_0x3d6ea1)),I(0x6,_0x528933(_0x2f0200)),I(0x7,_0x528933(F)),I(0x8,_0x5c02d5),I(0x9,_0x2fc9db),I(0xa,_0x2169d2),I(0xb,_0x10ad10),I(0xc,_0x5e5f16(Mt)),I(0xd,_0x5e5f16(B))],Kt);let qt=class extends Kt{constructor(_0x1c3611,_0x10c928,_0x9fb711,_0xbf62d,_0x537b60,_0x47ccd0,_0x130209,_0x58ea47,_0x273607,_0x19316e,_0x38bb74,_0xa059f8,_0x127e8a,_0x1d1df3){const _0x428d96=_0x3d5482;super(_0x1c3611,_0x9fb711,_0x10c928,_0xbf62d,_0x537b60,_0x47ccd0,_0x130209,_0x58ea47,_0x273607,_0x19316e,_0x38bb74,_0xa059f8,_0x127e8a,_0x1d1df3),this[_0x428d96(0x11e)]=_0x1c3611,this[_0x428d96(0x1cf)]=_0x10c928,N(this,_0x428d96(0xe1),null);}[_0x3d5482(0x108)](_0x5ed7fc){this['_handlerCallback']=_0x5ed7fc;}[_0x3d5482(0x2b4)](){const _0x18044d=_0x3d5482;this[_0x18044d(0xe1)]=null,super[_0x18044d(0x2b4)]();}[_0x3d5482(0xa7)](){const _0x4eb3c2=_0x3d5482;let _0x403282=super[_0x4eb3c2(0xa7)]();return _0x403282['onTransformIME']=_0x230e7c=>{const _0x54f06b=_0x4eb3c2;var _0x1f63e0,_0xdf35c5;return(_0x1f63e0=this[_0x54f06b(0xe1)])==null||(_0xdf35c5=_0x1f63e0[_0x54f06b(0x133)])==null?void 0x0:_0xdf35c5[_0x54f06b(0x124)](_0x1f63e0,_0x230e7c);},_0x403282['onTransformState']=_0x3a9c68=>{const _0x3a0781=_0x4eb3c2;var _0x316860,_0x5c15df;return(_0x316860=this[_0x3a0781(0xe1)])==null||(_0x5c15df=_0x316860[_0x3a0781(0xa9)])==null?void 0x0:_0x5c15df['call'](_0x316860,_0x3a9c68);},_0x403282[_0x4eb3c2(0x16c)]=_0x28cc50=>{const _0x4cd857=_0x4eb3c2;var _0x327c57,_0x51e9b8;return(_0x327c57=this['_handlerCallback'])==null||(_0x51e9b8=_0x327c57['onTransformSelections'])==null?void 0x0:_0x51e9b8[_0x4cd857(0x124)](_0x327c57,_0x28cc50);},_0x403282[_0x4eb3c2(0x1fb)]=_0xbc1c99=>{const _0x399cc1=_0x4eb3c2;var _0x82c8a1,_0x24a86c;return(_0x82c8a1=this[_0x399cc1(0xe1)])==null||(_0x24a86c=_0x82c8a1[_0x399cc1(0x1fb)])==null?void 0x0:_0x24a86c[_0x399cc1(0x124)](_0x82c8a1,_0xbc1c99);},_0x403282[_0x4eb3c2(0x1b8)]=_0x386209=>{const _0x2aeb1b=_0x4eb3c2;var _0x56d56e,_0x47738d,_0x5c1f64;if(!((_0x56d56e=this[_0x2aeb1b(0xe1)])!=null&&_0x56d56e[_0x2aeb1b(0x1b8)]))throw Error(_0x2aeb1b(0x2a8));return(_0x47738d=this[_0x2aeb1b(0xe1)])==null||(_0x5c1f64=_0x47738d[_0x2aeb1b(0x1b8)])==null?void 0x0:_0x5c1f64[_0x2aeb1b(0x124)](_0x47738d,_0x386209);},_0x403282[_0x4eb3c2(0x30d)]=_0x51a199=>{const _0x19b897=_0x4eb3c2;var _0x21728e,_0x220e7f,_0x537783;if(!((_0x21728e=this[_0x19b897(0xe1)])!=null&&_0x21728e[_0x19b897(0x30d)]))throw Error('onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.');return(_0x220e7f=this['_handlerCallback'])==null||(_0x537783=_0x220e7f[_0x19b897(0x30d)])==null?void 0x0:_0x537783[_0x19b897(0x124)](_0x220e7f,_0x51a199);},_0x403282;}async[_0x3d5482(0x1d7)](){const _0x22bcd1=_0x3d5482;let _0x49d7e8=await super[_0x22bcd1(0x1d7)]();return this['disposeWithMe'](this[_0x22bcd1(0x1a6)][_0x22bcd1(0x184)]((_0x148635,_0x5ebf0b)=>{const _0x3df3ab=_0x22bcd1;if(_0x148635['type']!==_0x51a16c[_0x3df3ab(0x1a3)]||_0x5ebf0b!=null&&_0x5ebf0b['fromCollab']||_0x5ebf0b!=null&&_0x5ebf0b['onlyLocal']||_0x148635['id']===_0x2d0c57['id'])return;let _0x2fff4b=_0x148635[_0x3df3ab(0x1e6)];if((_0x2fff4b==null?void 0x0:_0x2fff4b[_0x3df3ab(0x1b1)])!==this[_0x3df3ab(0x11e)])return;let _0x3a28e6=_0x148635,_0x46302f=this[_0x3df3ab(0x22e)]['interceptor'][_0x3df3ab(0x136)](this[_0x3df3ab(0x22e)]['interceptor'][_0x3df3ab(0x17f)]()[_0x3df3ab(0xab)])([_0x3a28e6],this[_0x3df3ab(0x2d0)])||[_0x3a28e6];this[_0x3df3ab(0x229)](_0x46302f[0x0]);})),_0x49d7e8;}};qt=L([I(0x3,_0x528933(_0x2f9ec4)),I(0x4,_0x528933(_0x33b352)),I(0x5,_0x528933(_0x3d6ea1)),I(0x6,_0x528933(_0x2f0200)),I(0x7,_0x528933(F)),I(0x8,_0x5c02d5),I(0x9,_0x2fc9db),I(0xa,_0x2169d2),I(0xb,_0x10ad10),I(0xc,_0x5e5f16(Mt)),I(0xd,_0x5e5f16(B))],qt);let Jt=class extends Kt{constructor(_0x5d0ab3,_0x111f6a,_0x4b1d9e,_0x1245cb,_0x2cd8f0,_0x5df0e9,_0xf249d8,_0x27162e,_0x552f70,_0xcada89,_0x318fe3,_0x3a636e,_0x24ff09,_0x4ae2b9,_0xbeca95){const _0x3fb7fe=_0x3d5482;super(_0x5d0ab3,_0x4b1d9e,_0x111f6a,_0x1245cb,_0x2cd8f0,_0x5df0e9,_0xf249d8,_0x552f70,_0xcada89,_0x318fe3,_0x3a636e,_0x24ff09,_0x4ae2b9,_0xbeca95),this['unitID']=_0x5d0ab3,this[_0x3fb7fe(0x1cf)]=_0x111f6a,this['_sheetTransformSelectionsService']=_0x27162e;}[_0x3d5482(0xa7)](){const _0x1d325b=_0x3d5482;let _0x5354c7=super[_0x1d325b(0xa7)]();return _0x5354c7['onTransformSelections']=_0x5a8339=>this[_0x1d325b(0x1c4)][_0x1d325b(0x2a4)](_0x5a8339),_0x5354c7;}async[_0x3d5482(0x1d7)](){const _0x15770c=_0x3d5482;let _0x3ec3ae=await super[_0x15770c(0x1d7)]();return this[_0x15770c(0x25a)](this[_0x15770c(0x1a6)][_0x15770c(0x184)]((_0x371825,_0x2dfa2b)=>{const _0x375224=_0x15770c;if(_0x371825[_0x375224(0x1cf)]!==_0x51a16c[_0x375224(0x1a3)]||_0x2dfa2b!=null&&_0x2dfa2b['fromCollab']||_0x2dfa2b!=null&&_0x2dfa2b[_0x375224(0x20a)])return;let _0xe614da=_0x371825['params'];if((_0xe614da==null?void 0x0:_0xe614da['unitId'])!==this[_0x375224(0x11e)])return;let _0x36bd01=_0x371825,_0xd9996f=this[_0x375224(0x22e)]['interceptor'][_0x375224(0x136)](this[_0x375224(0x22e)]['interceptor'][_0x375224(0x17f)]()['COMPRESS_MUTATION_SEND'])([_0x36bd01],this[_0x375224(0x2d0)])||[_0x36bd01];this['_onLocalMutation'](_0xd9996f[0x0]);})),_0x3ec3ae;}};Jt=L([I(0x3,_0x528933(_0x2f9ec4)),I(0x4,_0x528933(_0x33b352)),I(0x5,_0x528933(_0x3d6ea1)),I(0x6,_0x528933(_0x2f0200)),I(0x7,_0x528933(V)),I(0x8,_0x528933(F)),I(0x9,_0x5c02d5),I(0xa,_0x2fc9db),I(0xb,_0x2169d2),I(0xc,_0x10ad10),I(0xd,_0x5e5f16(Mt)),I(0xe,_0x5e5f16(B))],Jt);const Yt=_0x12bcfd(_0x3d5482(0x162));function Xt(_0x9c55e8){const _0xc7baf6=_0x3d5482;let _0x581ab4=_0x9c55e8[_0xc7baf6(0x210)],_0x29211a=JSON[_0xc7baf6(0xbc)](_0x581ab4);switch(_0x29211a['cmd']){case _0x1c9905[_0xc7baf6(0x2a6)]:case _0x1c9905[_0xc7baf6(0xb2)]:{let _0x327d0e=_0x29211a[_0xc7baf6(0x17a)];return{..._0x29211a,'data':_0x327d0e,'cmd':_0x29211a[_0xc7baf6(0x218)]};}case _0x1c9905[_0xc7baf6(0x1b0)]:{let _0x331d44=_0x29211a[_0xc7baf6(0x15f)];return{..._0x29211a,'data':_0x331d44,'cmd':_0x29211a['cmd']};}case _0x1c9905[_0xc7baf6(0xc0)]:{let _0x50ba85=_0x29211a[_0xc7baf6(0x187)];switch(_0x50ba85[_0xc7baf6(0x29d)]){case _0x50665f[_0xc7baf6(0x1b3)]:var _0x56bcc6;return{..._0x29211a,'data':{..._0x50ba85,'data':(_0x56bcc6=_0x50ba85['permissionRejEvent'])==null?void 0x0:_0x56bcc6['cs']},'cmd':_0x29211a[_0xc7baf6(0x218)]};case _0x50665f['CHANGESET_ACK']:var _0x329ae0;return{..._0x29211a,'data':{..._0x50ba85,'data':(_0x329ae0=_0x50ba85[_0xc7baf6(0x1bc)])==null?void 0x0:_0x329ae0['cs']},'cmd':_0x29211a[_0xc7baf6(0x218)]};case _0x50665f[_0xc7baf6(0x267)]:var _0x550e58;return{..._0x29211a,'data':{..._0x50ba85,'data':(_0x550e58=_0x50ba85[_0xc7baf6(0x1f4)])==null?void 0x0:_0x550e58['cs']},'cmd':_0x29211a[_0xc7baf6(0x218)]};case _0x50665f[_0xc7baf6(0x16b)]:var _0x46be86;return{..._0x29211a,'data':{..._0x50ba85,'data':(_0x46be86=_0x50ba85['csRejEvent'])==null?void 0x0:_0x46be86['cs']},'cmd':_0x29211a[_0xc7baf6(0x218)]};case _0x50665f[_0xc7baf6(0x12d)]:var _0x27ccc4;return{..._0x29211a,'data':{..._0x50ba85,'data':(_0x27ccc4=_0x50ba85['csShouldRetryEvent'])==null?void 0x0:_0x27ccc4['cs']},'cmd':_0x29211a[_0xc7baf6(0x218)]};case _0x50665f[_0xc7baf6(0xdd)]:return{..._0x29211a,'data':{..._0x50ba85,'data':_0x50ba85[_0xc7baf6(0x1bd)]},'cmd':_0x29211a['cmd']};case _0x50665f[_0xc7baf6(0x25d)]:return{..._0x29211a,'data':{..._0x50ba85,'data':_0x50ba85[_0xc7baf6(0x2f7)]},'cmd':_0x29211a[_0xc7baf6(0x218)]};case _0x50665f[_0xc7baf6(0x287)]:return{..._0x29211a,'data':{..._0x50ba85,'data':_0x50ba85[_0xc7baf6(0x2c5)]},'cmd':_0x29211a[_0xc7baf6(0x218)]};case _0x50665f['LIVESHARE_NEW_HOST']:return{..._0x29211a,'data':{..._0x50ba85,'data':_0x50ba85[_0xc7baf6(0x1ef)]},'cmd':_0x29211a[_0xc7baf6(0x218)]};case _0x50665f[_0xc7baf6(0xae)]:case _0x50665f[_0xc7baf6(0xb8)]:return{..._0x29211a,'data':{..._0x50ba85,'data':_0x50ba85[_0xc7baf6(0x296)]},'cmd':_0x29211a[_0xc7baf6(0x218)]};case _0x50665f['LIVESHARE_TERMINATE']:return{..._0x29211a,'data':{..._0x50ba85,'data':_0x50ba85['liveShareNewHost']},'cmd':_0x29211a[_0xc7baf6(0x218)]};case _0x50665f[_0xc7baf6(0x101)]:return{..._0x29211a,'data':_0x50ba85,'cmd':_0x29211a[_0xc7baf6(0x218)]};case _0x50665f[_0xc7baf6(0xce)]:return{..._0x29211a,'data':{..._0x50ba85,'data':_0x50ba85[_0xc7baf6(0x28b)]},'cmd':_0x29211a[_0xc7baf6(0x218)]};case _0x50665f[_0xc7baf6(0x284)]:return{..._0x29211a,'data':{..._0x50ba85,'data':_0x50ba85['updatePermissionObjEvent']},'cmd':_0x29211a[_0xc7baf6(0x218)]};case _0x50665f[_0xc7baf6(0x24b)]:return{..._0x29211a,'data':{..._0x50ba85,'data':_0x50ba85[_0xc7baf6(0x2a3)]},'cmd':_0x29211a[_0xc7baf6(0x218)]};case _0x50665f[_0xc7baf6(0x159)]:return{..._0x29211a,'data':{..._0x50ba85,'data':_0x50ba85[_0xc7baf6(0xf1)]},'cmd':_0x29211a[_0xc7baf6(0x218)]};default:return _0x29211a;}}default:return _0x29211a;}}function Zt(_0xdba2d8){const _0x5cbb5f=_0x3d5482;switch(_0xdba2d8['cmd']){case _0x1c9905[_0x5cbb5f(0x2a6)]:case _0x1c9905[_0x5cbb5f(0xb2)]:return JSON['stringify']({'cmd':_0xdba2d8[_0x5cbb5f(0x218)],'routeKey':_0xdba2d8[_0x5cbb5f(0xd5)]});case _0x1c9905[_0x5cbb5f(0x2b1)]:{let _0x406f23;switch(_0xdba2d8[_0x5cbb5f(0x210)][_0x5cbb5f(0x29d)]){case _0x50665f[_0x5cbb5f(0xdd)]:_0x406f23={'eventID':_0x50665f['UPDATE_CURSOR'],'updateCursorEvent':_0xdba2d8[_0x5cbb5f(0x210)][_0x5cbb5f(0x210)]};break;case _0x50665f['USERS_LEAVE']:_0x406f23={'eventID':_0x50665f[_0x5cbb5f(0x287)],'leaveEvent':_0xdba2d8[_0x5cbb5f(0x210)]['data']};break;case _0x50665f[_0x5cbb5f(0x25d)]:_0x406f23={'eventID':_0x50665f[_0x5cbb5f(0x25d)],'joinEvent':_0xdba2d8[_0x5cbb5f(0x210)][_0x5cbb5f(0x210)]};break;case _0x50665f[_0x5cbb5f(0xc1)]:_0x406f23={'eventID':_0x50665f[_0x5cbb5f(0xc1)],'liveShareNewHost':_0xdba2d8[_0x5cbb5f(0x210)][_0x5cbb5f(0x210)]};break;case _0x50665f['LIVESHARE_OPERATION']:_0x406f23={'eventID':_0x50665f['LIVESHARE_OPERATION'],'liveShareOperation':_0xdba2d8['data'][_0x5cbb5f(0x210)]};break;case _0x50665f['LIVESHARE_TERMINATE']:_0x406f23={'eventID':_0x50665f[_0x5cbb5f(0x23e)],'liveShareTerminate':_0xdba2d8['data'][_0x5cbb5f(0x210)]};break;case _0x50665f['LIVESHARE_REQUEST_HOST']:_0x406f23={'eventID':_0x50665f[_0x5cbb5f(0xa8)],'liveShareRequestHost':_0xdba2d8['data'][_0x5cbb5f(0x210)]};break;case _0x50665f[_0x5cbb5f(0xae)]:_0x406f23={'eventID':_0x50665f[_0x5cbb5f(0xae)]};break;default:_0x406f23={'eventID':_0xdba2d8['data'][_0x5cbb5f(0x29d)]};}return JSON[_0x5cbb5f(0x2d1)]({'cmd':_0xdba2d8['cmd'],'routeKey':_0xdba2d8['routeKey'],'collaMsg':_0x406f23});}case _0x1c9905[_0x5cbb5f(0x1b0)]:return JSON['stringify']({'cmd':_0xdba2d8[_0x5cbb5f(0x218)],'routeKey':_0xdba2d8[_0x5cbb5f(0xd5)],'joinReq':_0xdba2d8[_0x5cbb5f(0x210)]});case _0x1c9905['LEAVE']:return JSON[_0x5cbb5f(0x2d1)]({'cmd':_0xdba2d8[_0x5cbb5f(0x218)],'routeKey':_0xdba2d8[_0x5cbb5f(0xd5)],'leaveReq':_0xdba2d8['data']});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}const Qt=_0x12bcfd('univer-pro.collaboration-client-socket-service');function $t(_0x548c96,_0x5f310d,_0x46050d){const _0x4b1255=_0x3d5482;return _0x548c96+'/'+_0x5f310d+_0x4b1255(0x24a)+_0x46050d+'/new_changes';}let en=class extends _0x9e7512{constructor(_0x534e92,_0x32506f,_0x157641,_0x5c8529,_0x60000c){const _0x337e9f=_0x3d5482;super(),this[_0x337e9f(0xee)]=_0x534e92,this[_0x337e9f(0x293)]=_0x32506f,this[_0x337e9f(0x1fe)]=_0x157641,this[_0x337e9f(0x1b2)]=_0x5c8529,this[_0x337e9f(0x270)]=_0x60000c;}[_0x3d5482(0x241)](_0x50ef8e){const _0x1416c5=_0x3d5482;let _0x3e5fea=this[_0x1416c5(0xee)]['get'](_0xa6b08c);if(!_0x3e5fea)throw Error(_0x1416c5(0x2c4));let _0x275ffe=_0x3e5fea[_0x1416c5(0x145)](_0x50ef8e);if(!_0x275ffe)throw Error(_0x1416c5(0x16f));let _0x22bb08=new _0x54965b(),_0x263103=new _0x46c32c();_0x22bb08[_0x1416c5(0xd4)](_0x275ffe['close$'][_0x1416c5(0x20b)](_0x35286b=>_0x263103[_0x1416c5(0x2a2)](_0x35286b))),_0x22bb08['add'](_0x25b528(()=>_0x263103[_0x1416c5(0xd7)]()));let _0x16ead4=new _0x46c32c();_0x22bb08['add'](_0x275ffe['error$'][_0x1416c5(0x20b)](_0x56dca3=>_0x16ead4['next'](_0x56dca3))),_0x22bb08[_0x1416c5(0xd4)](_0x25b528(()=>_0x16ead4['complete']()));let _0x22d4c7=new _0x46c32c();_0x22bb08[_0x1416c5(0xd4)](_0x275ffe[_0x1416c5(0x199)][_0x1416c5(0x20b)](_0x583bd2=>{const _0x46db31=_0x1416c5;let _0x40cb3c=Xt(_0x583bd2);_0x22d4c7[_0x46db31(0x2a2)](_0x40cb3c);})),_0x22bb08[_0x1416c5(0xd4)](_0x25b528(()=>_0x22d4c7[_0x1416c5(0xd7)]()));let _0x542690,_0xf0db3=()=>{const _0x10630c=_0x1416c5;_0x16ead4[_0x10630c(0x2a2)](new Event('connection\x20error')),_0x263103[_0x10630c(0x2a2)](new Event('connection\x20error')),_0x542690[_0x10630c(0x2bf)]();};return _0x542690={'memberID':'','close$':_0x263103['asObservable'](),'error$':_0x16ead4['asObservable'](),'open$':_0x275ffe[_0x1416c5(0x263)],'message$':_0x22d4c7[_0x1416c5(0xfe)](),'send':_0x4ae4f1=>{const _0x3a9b35=_0x1416c5;if(_0x4ae4f1['cmd']===_0x1c9905[_0x3a9b35(0x2b1)]){if(_0x4ae4f1[_0x3a9b35(0x210)][_0x3a9b35(0x29d)]===_0x50665f[_0x3a9b35(0x276)]){this[_0x3a9b35(0x114)](_0x542690,_0x4ae4f1[_0x3a9b35(0x210)])['catch'](_0x2b3545=>{const _0x586267=_0x3a9b35;this['_logService'][_0x586267(0x167)](_0x2b3545),_0xf0db3();});return;}if(_0x4ae4f1[_0x3a9b35(0x210)][_0x3a9b35(0x29d)]===_0x50665f['FETCH_MISSING']){let _0x379b61=_0x4ae4f1[_0x3a9b35(0x210)];this[_0x3a9b35(0x309)](_0x379b61)[_0x3a9b35(0x1f3)](_0x353fe3=>{const _0x49e512=_0x3a9b35;_0x22d4c7[_0x49e512(0x2a2)]({'cmd':_0x1c9905[_0x49e512(0xc0)],'code':_0x29a5db['OK'],'routeKey':_0x379b61[_0x49e512(0x210)][_0x49e512(0x11e)],'routeType':'','data':{'eventID':_0x50665f[_0x49e512(0x2b7)],'data':{'changesets':_0x353fe3}}});})[_0x3a9b35(0x23b)](_0x3887a9=>{const _0x39a78e=_0x3a9b35;this['_logService'][_0x39a78e(0x167)](_0x3887a9),_0xf0db3();});return;}}_0x275ffe[_0x3a9b35(0x280)](Zt(_0x4ae4f1));},'close':()=>{const _0x5b0e92=_0x1416c5;_0x275ffe[_0x5b0e92(0x2bf)](),_0x22bb08[_0x5b0e92(0x2b4)]();}},_0x542690;}async[_0x3d5482(0x114)](_0x5024a7,_0x2778e3){const _0x17498c=_0x3d5482;var _0x79bfa0;let {unitType:_0x15f236,unitID:_0x2b9816,changeset:_0x5ccbc1}=_0x2778e3[_0x17498c(0x210)],_0x2f3a92={'unitID':_0x2b9816,'memberID':_0x5024a7[_0x17498c(0x1f7)],'type':_0x15f236,'changeset':_0x293710(_0x5ccbc1)},_0x1ead00=this[_0x17498c(0x1fe)][_0x17498c(0x13b)](H),_0x276a84=$t((_0x79bfa0=_0x1ead00==null?void 0x0:_0x1ead00[_0x17498c(0x27d)])==null?_0x17498c(0x12a):_0x79bfa0,_0x15f236,_0x2b9816);try{await this[_0x17498c(0x293)][_0x17498c(0x152)](_0x276a84,{'body':_0x2f3a92});}catch(_0x175a51){throw this[_0x17498c(0x1b2)][_0x17498c(0x167)](_0x17498c(0xca),_0x17498c(0x25b)),_0x175a51;}}async['_fetchMissChangesets'](_0x100974){const _0x454eb1=_0x3d5482;let {unitID:_0x509bce,from:_0x4bf7bc,to:_0x1e533d,unitType:_0x31e57b}=_0x100974['data'];return(await this[_0x454eb1(0x270)][_0x454eb1(0x225)]({'metadata':void 0x0},{'unitID':_0x509bce,'type':_0x31e57b,'from':_0x4bf7bc,'to':_0x1e533d}))[_0x454eb1(0x1a2)]['map'](_0x1d8695=>((_0x1d8695[_0x454eb1(0xad)]===null||_0x1d8695[_0x454eb1(0xad)]===void 0x0)&&(_0x1d8695[_0x454eb1(0xad)]=[]),_0x1d8695));}};en=L([I(0x0,_0x528933(_0x2f9ec4)),I(0x1,_0x528933(_0x2641c7)),I(0x2,_0x34eea4),I(0x3,_0x2fc9db),I(0x4,_0x244f88)],en);let Q=class extends _0x9e7512{get[_0x3d5482(0x1a1)](){const _0x7c3363=_0x3d5482;return this[_0x7c3363(0x126)]['getValue']();}constructor(_0x250326,_0x4acfa9,_0x259b75,_0x50a11b,_0x50f3a5,_0x199f47){const _0x52255b=_0x3d5482;super(),this[_0x52255b(0xee)]=_0x250326,this[_0x52255b(0x1b2)]=_0x4acfa9,this[_0x52255b(0x1fe)]=_0x259b75,this[_0x52255b(0x17d)]=_0x50a11b,this[_0x52255b(0x311)]=_0x50f3a5,this['_networkConditionService']=_0x199f47,N(this,_0x52255b(0x126),new _0x3a2e8a(void 0x0)),N(this,_0x52255b(0x2c6),this[_0x52255b(0x126)][_0x52255b(0xfe)]()),N(this,'_candidateSocket',null),N(this,_0x52255b(0x18a),new Map()),N(this,_0x52255b(0x12f),new _0x3a2e8a(z[_0x52255b(0x1c6)])),N(this,_0x52255b(0x147),this[_0x52255b(0x12f)]['asObservable']()),N(this,_0x52255b(0x258),!0x1),N(this,_0x52255b(0x260),void 0x0),N(this,_0x52255b(0xe0),0x0),N(this,'_sendHeartbeatTimer',void 0x0),N(this,_0x52255b(0x2ab),void 0x0),this[_0x52255b(0x172)]();}[_0x3d5482(0x172)](){const _0x2aa4d2=_0x3d5482;this[_0x2aa4d2(0x1d3)]&&this[_0x2aa4d2(0x25a)](this[_0x2aa4d2(0x1d3)][_0x2aa4d2(0x2de)]['subscribe'](_0x45474c=>{const _0x1c4f6d=_0x2aa4d2;_0x45474c&&!this[_0x1c4f6d(0x1a1)]&&this[_0x1c4f6d(0x2c0)](),_0x45474c||this['_onOffline']();}));}[_0x3d5482(0x2b4)](){const _0x8431b5=_0x3d5482;super[_0x8431b5(0x2b4)](),this[_0x8431b5(0x1d2)](),this[_0x8431b5(0x18c)](),this[_0x8431b5(0x279)](),this[_0x8431b5(0x18a)][_0x8431b5(0x1cc)](_0x2c9308=>_0x2c9308['dispose']()),this[_0x8431b5(0x18a)][_0x8431b5(0x28a)](),this[_0x8431b5(0x12f)][_0x8431b5(0xd7)]();}async[_0x3d5482(0xe6)](_0x179c1e){const _0x19dd91=_0x3d5482;if(this[_0x19dd91(0x18a)][_0x19dd91(0xbb)](_0x179c1e))return this[_0x19dd91(0x18a)][_0x19dd91(0x1c1)](_0x179c1e);this[_0x19dd91(0xcc)]();let _0x28eea1=this[_0x19dd91(0xee)][_0x19dd91(0x1ff)](kt,_0x179c1e,this[_0x19dd91(0x126)][_0x19dd91(0xfe)]());return this['_sessions'][_0x19dd91(0x1d4)](_0x179c1e,_0x28eea1),_0x28eea1;}[_0x3d5482(0x1a4)](_0x12f15d){const _0x3da97f=_0x3d5482;let _0x7b1bc8=this['_sessions'][_0x3da97f(0x1c1)](_0x12f15d);if(_0x7b1bc8&&(this['_sessions'][_0x3da97f(0x294)](_0x12f15d),_0x7b1bc8[_0x3da97f(0x2bf)]()),!this[_0x3da97f(0x18a)][_0x3da97f(0x1d1)]){var _0x144910;(_0x144910=this[_0x3da97f(0x1a1)])==null||_0x144910['close']();}}[_0x3d5482(0x2c0)](){const _0x44d108=_0x3d5482;this[_0x44d108(0xe0)]=0x0,this[_0x44d108(0x1d2)](),this[_0x44d108(0xe9)]();}['_clearRetryConnectingTimer'](){const _0x4a750c=_0x3d5482;this[_0x4a750c(0x260)]!=null&&(clearTimeout(this[_0x4a750c(0x260)]),this[_0x4a750c(0x260)]=null);}async['_createSocket'](){const _0x36bd60=_0x3d5482;var _0x3b3895;let _0x4e9e7b=this[_0x36bd60(0x1fe)]['getConfig'](H),_0x51c7c0=(_0x3b3895=_0x4e9e7b==null?void 0x0:_0x4e9e7b[_0x36bd60(0x2aa)])==null?ft:_0x3b3895,_0x38f612=await this[_0x36bd60(0x17d)][_0x36bd60(0x145)](_0x51c7c0);return this['_candidateSocket']=_0x38f612,_0x38f612;}async['_tryEnsureSocket'](){const _0x4af3ec=_0x3d5482;try{var _0x1f1f5e,_0x234603;let _0xb6dbfa=(_0x1f1f5e=(_0x234603=this[_0x4af3ec(0x1a1)])==null?this[_0x4af3ec(0x21e)]:_0x234603)==null?await this[_0x4af3ec(0x177)]():_0x1f1f5e;if(_0xb6dbfa){let _0x26d828=_0xb6dbfa[_0x4af3ec(0x280)];_0xb6dbfa[_0x4af3ec(0x280)]=_0x167e7b=>(_0x167e7b[_0x4af3ec(0x218)]!==_0x1c9905[_0x4af3ec(0x1e5)]&&this[_0x4af3ec(0x2dc)](),_0x26d828[_0x4af3ec(0x310)](_0xb6dbfa,[_0x167e7b])),_0xb6dbfa[_0x4af3ec(0x199)][_0x4af3ec(0x20b)](_0x9c5b2f=>this[_0x4af3ec(0xa6)](_0xb6dbfa,_0x9c5b2f)),_0xb6dbfa[_0x4af3ec(0x2a1)][_0x4af3ec(0xf5)](_0xbe5d61(0x1))[_0x4af3ec(0x20b)](_0x272f5c=>this[_0x4af3ec(0x1b2)][_0x4af3ec(0x167)]('[CollaborationSessionService]:\x20socket\x20error',_0x272f5c)),_0xb6dbfa['open$'][_0x4af3ec(0xf5)](_0xbe5d61(0x1))[_0x4af3ec(0x20b)](()=>{const _0x5423c7=_0x4af3ec;this[_0x5423c7(0x110)](_0xb6dbfa);}),_0xb6dbfa[_0x4af3ec(0x2e6)][_0x4af3ec(0xf5)](_0xbe5d61(0x1))[_0x4af3ec(0x20b)](_0x3969a2=>{const _0x4821c9=_0x4af3ec;this[_0x4821c9(0x1b2)][_0x4821c9(0x254)](_0x4821c9(0xff),_0x4821c9(0x1ec),_0x3969a2),this['_onConnectionFailed']();});}}catch(_0x4ce07a){this[_0x4af3ec(0x1b2)][_0x4af3ec(0x167)](_0x4ce07a),this[_0x4af3ec(0x18d)]();}}[_0x3d5482(0x110)](_0x48d8b5){const _0x211cec=_0x3d5482;this['_logService'][_0x211cec(0x254)](_0x211cec(0xff),_0x211cec(0x234)),_0x48d8b5[_0x211cec(0x280)]({'cmd':_0x1c9905['HELLO']}),this[_0x211cec(0x2dc)]();}[_0x3d5482(0x131)](){const _0x4fc871=_0x3d5482;this[_0x4fc871(0x258)]=!0x1,this[_0x4fc871(0x21e)]=null,this[_0x4fc871(0x12f)]['next'](z['OFFLINE']),this[_0x4fc871(0x126)][_0x4fc871(0x2a2)](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer']();}[_0x3d5482(0x18d)](){const _0x2f2e29=_0x3d5482;var _0x352d10;this[_0x2f2e29(0x131)](),this['_retryCount']<((_0x352d10=this[_0x2f2e29(0x1fe)][_0x2f2e29(0x13b)](_0x2f2e29(0x23d)))==null?0x3:_0x352d10)?(this[_0x2f2e29(0x311)]['emitEvent']({'id':P[_0x2f2e29(0x16e)]}),this[_0x2f2e29(0xe9)]()):this[_0x2f2e29(0x311)][_0x2f2e29(0x20f)]({'id':P['SOCKET_FAILED']});}[_0x3d5482(0xe9)](){const _0x466c88=_0x3d5482;var _0x3c0575;let _0x17f66f=this[_0x466c88(0xe0)],_0x3cc812=this[_0x466c88(0x1fe)][_0x466c88(0x13b)](H),_0x2f2ba3=_0x17f66f===0x0?0x0:((_0x3c0575=_0x3cc812==null?void 0x0:_0x3cc812[_0x466c88(0x1d0)])==null?0x4e20:_0x3c0575)*0x2**_0x17f66f;this[_0x466c88(0x260)]=setTimeout(()=>{const _0x544b28=_0x466c88;clearTimeout(this['_retryConnectingTimer']),this[_0x544b28(0x260)]=null,this['_tryEnsureSocket']();},_0x2f2ba3),this[_0x466c88(0xe0)]+=0x1;}[_0x3d5482(0xa6)](_0x4eaf05,_0x5d2e5a){const _0x569e9b=_0x3d5482;let {cmd:_0xd55c1c}=_0x5d2e5a;_0xd55c1c===_0x1c9905[_0x569e9b(0xb2)]&&!this[_0x569e9b(0x258)]&&(_0x4eaf05[_0x569e9b(0x1f7)]=_0x5d2e5a[_0x569e9b(0x210)][_0x569e9b(0x1f7)],this['_socket$'][_0x569e9b(0x2a2)](_0x4eaf05),this[_0x569e9b(0x12f)][_0x569e9b(0x2a2)](z[_0x569e9b(0x1e3)]),this[_0x569e9b(0x258)]=!0x0,this[_0x569e9b(0x21e)]=null),_0xd55c1c===_0x1c9905[_0x569e9b(0x2a6)]&&this[_0x569e9b(0x18c)](),this['_rescheduleHeartbeat']();}[_0x3d5482(0x2dc)](){const _0x403381=_0x3d5482;var _0x640a00;this[_0x403381(0x279)](),this[_0x403381(0x134)]=setTimeout(()=>this[_0x403381(0x2fa)](),(_0x640a00=this[_0x403381(0x1fe)][_0x403381(0x13b)](_0x403381(0x1ac)))==null?0x7530:_0x640a00);}[_0x3d5482(0x2fa)](){const _0x5be037=_0x3d5482;this[_0x5be037(0x1a1)]['send']({'cmd':_0x1c9905[_0x5be037(0x2a6)]}),this[_0x5be037(0x13c)]();}[_0x3d5482(0x13c)](){const _0x2c521b=_0x3d5482;var _0x495591;this[_0x2c521b(0x2ab)]=setTimeout(()=>this[_0x2c521b(0x18d)](),(_0x495591=this[_0x2c521b(0x1fe)][_0x2c521b(0x13b)](_0x2c521b(0x21c)))==null?gt:_0x495591);}[_0x3d5482(0x279)](){const _0x4fadb2=_0x3d5482;this[_0x4fadb2(0x134)]!=null&&(clearTimeout(this[_0x4fadb2(0x134)]),this[_0x4fadb2(0x134)]=null);}['_clearTimeoutTimer'](){const _0x564a92=_0x3d5482;this[_0x564a92(0x2ab)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x564a92(0x2ab)]=null);}};Q=L([I(0x0,_0x528933(_0x2f9ec4)),I(0x1,_0x2fc9db),I(0x2,_0x34eea4),I(0x3,Qt),I(0x4,_0x528933(F)),I(0x5,_0x5e5f16(Yt))],Q);let tn=class extends _0x114242{constructor(_0x3e400b,_0x20c1d5,_0x482d40,_0x12da25){const _0x4bef69=_0x3d5482;var _0x173bee;super(),this[_0x4bef69(0xee)]=_0x3e400b,this[_0x4bef69(0x300)]=_0x20c1d5,this['_configService']=_0x482d40,this[_0x4bef69(0x2d0)]=_0x12da25,N(this,_0x4bef69(0x25f),new Map()),N(this,_0x4bef69(0xd3),new _0x46c32c()),N(this,_0x4bef69(0x268),this['_entityInit$'][_0x4bef69(0xfe)]()),((_0x173bee=this[_0x4bef69(0x1fe)]['getConfig'](_0x4bef69(0x2a9)))==null?void 0x0:_0x173bee[_0x4bef69(0xd2)])!==!0x1&&this[_0x4bef69(0x1d7)]();}['dispose'](){const _0x39cecb=_0x3d5482;super[_0x39cecb(0x2b4)](),this['_entities'][_0x39cecb(0x1cc)](_0xd4f450=>_0xd4f450[_0x39cecb(0x2b4)]()),this[_0x39cecb(0x25f)][_0x39cecb(0x28a)]();}['getCollabEntity'](_0x473131){const _0x5e5e48=_0x3d5482;var _0x14f316;return(_0x14f316=this[_0x5e5e48(0x25f)]['get'](_0x473131))==null?null:_0x14f316;}[_0x3d5482(0x25c)](_0x5d2133){const _0x2b7776=_0x3d5482;let _0x21a423=this['getCollabEntity'](_0x5d2133);return _0x21a423?_0xa4798f(_0x21a423):this[_0x2b7776(0xd3)][_0x2b7776(0xf5)](_0x842d2d(_0x1aba60=>_0x1aba60[_0x2b7776(0x11e)]===_0x5d2133));}[_0x3d5482(0x255)](_0x22d219){const _0xfd5684=_0x3d5482;return _0x4d27db(this[_0xfd5684(0x25c)](_0x22d219)['pipe'](_0x455a01(()=>void 0x0)));}[_0x3d5482(0x1d7)](){const _0xfcab64=_0x3d5482;this['_univerInstanceService'][_0xfcab64(0x158)](_0x40b723['UNIVER_SHEET'])['pipe'](_0x23c7ab(this[_0xfcab64(0x1a8)]),_0xd07c40(0x10))['subscribe'](async _0x2990d3=>{const _0x321168=_0xfcab64;let _0xe4b507=_0x2990d3[_0x321168(0x2f3)](),_0x5c892b=await this[_0x321168(0x215)](_0xe4b507,_0x311bf4[_0x321168(0x155)]);this[_0x321168(0x25f)][_0x321168(0x1d4)](_0xe4b507,_0x5c892b);}),this[_0xfcab64(0x2d0)][_0xfcab64(0x158)](_0x40b723[_0xfcab64(0x28d)])[_0xfcab64(0xf5)](_0x23c7ab(this[_0xfcab64(0x1a8)]),_0xd07c40(0x10))[_0xfcab64(0xf5)](_0x842d2d(_0x59b689=>!_0x59b689[_0xfcab64(0x2f3)]()[_0xfcab64(0x103)]('__')))[_0xfcab64(0x20b)](async _0x547863=>{const _0x32ffcb=_0xfcab64;let _0x48b4b7=_0x547863[_0x32ffcb(0x2f3)](),_0x24b541=await this[_0x32ffcb(0x215)](_0x48b4b7,_0x311bf4[_0x32ffcb(0x28d)]);this[_0x32ffcb(0x25f)][_0x32ffcb(0x1d4)](_0x48b4b7,_0x24b541);}),_0x27f243(this[_0xfcab64(0x2d0)][_0xfcab64(0x2f4)](_0x40b723['UNIVER_SHEET']),this['_univerInstanceService'][_0xfcab64(0x2f4)](_0x40b723[_0xfcab64(0x28d)]))[_0xfcab64(0xf5)](_0x23c7ab(this['dispose$']))['subscribe'](_0x335c3a=>{const _0x17f659=_0xfcab64;let _0x42ff3e=_0x335c3a['getUnitId'](),_0x379bee=this['_entities'][_0x17f659(0x1c1)](_0x42ff3e);_0x379bee&&(_0x379bee[_0x17f659(0x2b4)](),this[_0x17f659(0x25f)]['delete'](_0x42ff3e));});}async[_0x3d5482(0x215)](_0x416f98,_0x2a53d6){const _0x2243d2=_0x3d5482;let _0x3257c6=await this[_0x2243d2(0x300)][_0x2243d2(0xe6)](_0x416f98),_0x20f416=this[_0x2243d2(0xee)]['createInstance'](this['_getCtorByUniverType'](_0x2a53d6),_0x416f98,_0x2a53d6,_0x3257c6);return await _0x20f416[_0x2243d2(0xda)](),this[_0x2243d2(0xd3)][_0x2243d2(0x2a2)](_0x20f416),_0x20f416;}[_0x3d5482(0x16d)](_0x3c24fb){const _0x131266=_0x3d5482;switch(_0x3c24fb){case _0x311bf4[_0x131266(0x28d)]:return qt;case _0x311bf4[_0x131266(0x155)]:return Jt;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x3c24fb);}}};tn=L([I(0x0,_0x528933(_0x2f9ec4)),I(0x1,_0x528933(Q)),I(0x2,_0x34eea4),I(0x3,_0x5c02d5)],tn);var nn='@univerjs-pro/collaboration-client',rn=_0x3d5482(0x1e7);let an=class extends _0x9e7512{constructor(_0x5188ab,_0x1841e9){const _0x2d3ea6=_0x3d5482;super(),this[_0x2d3ea6(0x2d0)]=_0x5188ab,this[_0x2d3ea6(0x1fe)]=_0x1841e9,this[_0x2d3ea6(0x1d7)]();}[_0x3d5482(0x1d7)](){const _0x302320=_0x3d5482;this[_0x302320(0x25a)](this[_0x302320(0x2d0)]['focused$'][_0x302320(0x20b)](()=>{const _0x6654df=_0x302320;var _0x317df6;let _0x195031=this[_0x6654df(0x2d0)][_0x6654df(0x1c9)](),_0x26de78=(_0x317df6=this[_0x6654df(0x1fe)][_0x6654df(0x13b)](_0x6654df(0x288)))==null?_0x6654df(0x2f8):_0x317df6;_0x195031 instanceof _0x34f926&&(_0x26de78=_0x195031['name']),document[_0x6654df(0xaa)]=_0x26de78;}));}};an=L([I(0x0,_0x5c02d5),I(0x1,_0x34eea4)],an);let on=class{constructor(_0x159ce9,_0x370ea4,_0x4cc896){const _0x4632d0=_0x3d5482;this['_configService']=_0x159ce9,this[_0x4632d0(0x293)]=_0x370ea4,this[_0x4632d0(0x1da)]=_0x4cc896,this[_0x4632d0(0xda)]();}['init'](){const _0x29e344=_0x3d5482;this[_0x29e344(0x293)][_0x29e344(0x1b5)]({'priority':0x1,'interceptor':(_0x995f6c,_0x4cf6f9)=>_0x4cf6f9(_0x995f6c)[_0x29e344(0xf5)](_0x184f99(async _0x349970=>{const _0x635731=_0x29e344;let _0x275044=_0x349970;if(_0x275044['status']===0x191){if(typeof window>'u')throw Error(_0x635731(0x2e0));if(window['confirm'](this[_0x635731(0x1da)]['t'](_0x635731(0x297)))){let _0x6966a8=window['encodeURIComponent'](window['location'][_0x635731(0x256)]);window['location']['href']=this['_getLoginPath']()+_0x635731(0x203)+_0x6966a8;}}return _0x275044;}))});}[_0x3d5482(0x1e2)](){const _0x3f6467=_0x3d5482;var _0x369060;let _0x16fb0f=this[_0x3f6467(0x1fe)][_0x3f6467(0x13b)](H);return(_0x369060=_0x16fb0f==null?void 0x0:_0x16fb0f[_0x3f6467(0x1b9)])==null?_0x3f6467(0x142):_0x369060;}};on=L([I(0x0,_0x34eea4),I(0x1,_0x528933(_0x2641c7)),I(0x2,_0x528933(_0x3d6ea1))],on);let sn=class extends _0x9e7512{constructor(_0x5184ff,_0x359363){const _0x5772b0=_0x3d5482;super(),this[_0x5772b0(0x1cd)]=_0x5184ff,this['_configService']=_0x359363,this[_0x5772b0(0x295)]();}['_initMergeInterceptor'](){const _0x4e0fa3=_0x3d5482;let _0x4cfa18=this;this['disposeWithMe'](this['_HTTPService'][_0x4e0fa3(0x1b5)]({'priority':0x3e7,'interceptor':_0x2cba25({'isMatch'(_0x54fc71){const _0x2cbdf9=_0x4e0fa3;var _0x47adad;if(_0x54fc71[_0x2cbdf9(0x1c2)]===_0x2cbdf9(0x261)&&(_0x47adad=_0x54fc71[_0x2cbdf9(0xcb)])!=null&&_0x47adad[_0x2cbdf9(0x283)]){let {objectID:_0xa29366,objectType:_0x171d13}=_0x54fc71[_0x2cbdf9(0xcb)][_0x2cbdf9(0x283)]||{};if(!_0xa29366||_0x171d13===void 0x0)return!0x1;let _0x32608a=_0x4cfa18[_0x2cbdf9(0x2ff)]()+'/'+_0x171d13+'/object/'+_0xa29366+'/allowed';if(_0x54fc71[_0x2cbdf9(0x227)]===_0x32608a)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5211d8){const _0x35da10=_0x4e0fa3;var _0x411369;return(_0x411369=_0x5211d8['requestParams'])==null?void 0x0:_0x411369[_0x35da10(0x283)];},'mergeParamsToRequest'(_0x1550a8,_0x214949){const _0x491a98=_0x4e0fa3;let _0x2afeca=_0x4cfa18[_0x491a98(0x2ff)]()+_0x491a98(0x2e1),_0x36c5e3=_0x1550a8[_0x491a98(0x2b3)]((_0x142e93,_0x3b04a7)=>{const _0x49862a=_0x491a98;let {unitID:_0x1d565e,objectID:_0x186d0c,objectType:_0x5c3081,actions:_0x44aafa}=_0x3b04a7;return _0x142e93[_0x1d565e]||(_0x142e93[_0x1d565e]={}),_0x142e93[_0x1d565e][_0x186d0c]||(_0x142e93[_0x1d565e][_0x186d0c]={'objectID':_0x186d0c,'objectType':_0x5c3081,'actions':[]}),_0x142e93[_0x1d565e][_0x186d0c]['actions'][_0x49862a(0x2e8)](..._0x44aafa),_0x142e93;},{}),_0x3dd9c2=[];for(let _0x40c490 in _0x36c5e3)for(let _0x3bf01a in _0x36c5e3[_0x40c490]){let {actions:_0x3a9e8b,objectType:_0x36baf3}=_0x36c5e3[_0x40c490][_0x3bf01a],_0x25ee73=[...new Set(_0x3a9e8b)];_0x3dd9c2[_0x491a98(0x2e8)]({'unitID':_0x40c490,'objectID':_0x3bf01a,'objectType':_0x36baf3,'actions':_0x25ee73});}return new _0x1fc1d9('POST',_0x2afeca,{'headers':_0x214949['headers'],'withCredentials':_0x214949[_0x491a98(0x1d5)],'responseType':_0x214949[_0x491a98(0x164)],'body':{'requests':_0x3dd9c2}});}},{'distributeResult'(_0x5881a4,_0xa74452){const _0x4fe3ce=_0x4e0fa3;let {objectActions:_0x58f5e4}=_0x5881a4;return _0xa74452[_0x4fe3ce(0x1ce)](_0x2ea2e0=>{const _0x12ae9c=_0x4fe3ce;let {unitID:_0x164984,objectID:_0x3ba771,actions:_0x3f9282}=_0x2ea2e0,_0x15a60c=_0x58f5e4[_0x12ae9c(0x17b)](_0x465b08=>_0x465b08[_0x12ae9c(0x11e)]===_0x164984&&_0x465b08[_0x12ae9c(0xfb)]===_0x3ba771);return{'config':_0x2ea2e0,'result':{'actions':_0x3f9282[_0x12ae9c(0x1ce)](_0x1f6b37=>_0x15a60c==null?void 0x0:_0x15a60c['actions']['find'](_0x184add=>_0x184add['action']===_0x1f6b37))['filter'](_0x18b075=>!!_0x18b075),'error':_0x5881a4['error']}};});}})}));}[_0x3d5482(0x2ff)](){const _0x180461=_0x3d5482;var _0xcf30cd;let _0x504ba6=this[_0x180461(0x1fe)][_0x180461(0x13b)](H);return(_0xcf30cd=_0x504ba6==null?void 0x0:_0x504ba6[_0x180461(0x2da)])==null?'/universer-api/authz':_0xcf30cd;}async[_0x3d5482(0x1f2)](_0x1fc5eb){const _0x2530c5=_0x3d5482;let _0x2d4378=this['_getAPIPrefixPath']()+'/'+_0x1fc5eb[_0x2530c5(0x22b)]+_0x2530c5(0x2ed);return(await this[_0x2530c5(0x1cd)][_0x2530c5(0x152)](_0x2d4378,{'body':_0x1fc5eb}))[_0x2530c5(0x283)][_0x2530c5(0xfb)]||'';}async[_0x3d5482(0x2a0)](_0x5a86f1){const _0x1e790f=_0x3d5482;let _0x3bf21d=this[_0x1e790f(0x2ff)]()+_0x1e790f(0x2cb);return(await this[_0x1e790f(0x1cd)][_0x1e790f(0x152)](_0x3bf21d,{'body':_0x5a86f1}))['body'][_0x1e790f(0x2b6)];}async[_0x3d5482(0x1eb)](_0x3ae1b3){const _0x5d898a=_0x3d5482;var _0x426b83;let _0x2ec6bb=this[_0x5d898a(0x2ff)]()+'/'+_0x3ae1b3['objectType']+_0x5d898a(0xea)+_0x3ae1b3[_0x5d898a(0xfb)],_0x59437d=await this[_0x5d898a(0x1cd)][_0x5d898a(0x1dd)](_0x2ec6bb,{'body':_0x3ae1b3});if((_0x59437d==null||(_0x426b83=_0x59437d['body'])==null||(_0x426b83=_0x426b83[_0x5d898a(0x167)])==null?void 0x0:_0x426b83[_0x5d898a(0x15b)])!==0x1)throw Error(_0x5d898a(0x127));}async['allowed'](_0x4f3170){const _0x5d7a18=_0x3d5482;let _0x732b1f=this[_0x5d7a18(0x2ff)]()+'/'+_0x4f3170[_0x5d7a18(0x22b)]+_0x5d7a18(0xea)+_0x4f3170[_0x5d7a18(0xfb)]+_0x5d7a18(0x1c5);return(await this['_HTTPService'][_0x5d7a18(0x152)](_0x732b1f,{'body':_0x4f3170}))[_0x5d7a18(0x283)][_0x5d7a18(0x307)];}async[_0x3d5482(0xf2)](_0x162b7c){const _0x528398=_0x3d5482;let _0x47ede6=this[_0x528398(0x2ff)]()+'/-/object/-/batch_allowed';return(await this[_0x528398(0x1cd)][_0x528398(0x152)](_0x47ede6,{'body':{'requests':_0x162b7c}}))[_0x528398(0x283)][_0x528398(0x116)];}async['listRoles'](_0x10c710){const _0x274b30=_0x3d5482;let _0x5d69ed=this['_getAPIPrefixPath']()+'/'+_0x10c710[_0x274b30(0x22b)]+_0x274b30(0x206),_0x2320b9=await this['_HTTPService']['post'](_0x5d69ed,{'body':_0x10c710});return{'roles':_0x2320b9['body'][_0x274b30(0x21d)],'actions':_0x2320b9[_0x274b30(0x283)][_0x274b30(0x307)]};}async['deleteCollaborator'](_0x8df1e9){const _0x36c144=_0x3d5482;let _0x49a008=this[_0x36c144(0x2ff)]()+_0x36c144(0x247);await this['_HTTPService'][_0x36c144(0x294)](_0x49a008,{'params':{'collaboratorID':_0x8df1e9[_0x36c144(0xc4)],'objectID':_0x8df1e9[_0x36c144(0xfb)],'unitID':_0x8df1e9[_0x36c144(0x11e)]}});}async[_0x3d5482(0x209)](_0x1990d7){const _0x4e948a=_0x3d5482;let _0x77f85b=this['_getAPIPrefixPath']()+_0x4e948a(0x247);await this[_0x4e948a(0x1cd)]['patch'](_0x77f85b,{'body':_0x1990d7});}async[_0x3d5482(0x2b0)](_0x1923ae){const _0x3c0bce=_0x3d5482;let _0x5f0b0d=this[_0x3c0bce(0x2ff)]()+_0x3c0bce(0x247);await this['_HTTPService'][_0x3c0bce(0x152)](_0x5f0b0d,{'body':_0x1923ae});}async['listCollaborators'](_0x5ca15b){const _0x34b06f=_0x3d5482;let _0x2a7961=this['_getAPIPrefixPath']()+_0x34b06f(0x247);return(await this[_0x34b06f(0x1cd)][_0x34b06f(0x1c1)](_0x2a7961,{'params':{'objectID':_0x5ca15b[_0x34b06f(0xfb)],'unitID':_0x5ca15b[_0x34b06f(0x11e)]}}))['body']['collaborators'];}async['putCollaborators'](_0x2ab317){const _0x2f0f87=_0x3d5482;let _0x489669=this[_0x2f0f87(0x2ff)]()+_0x2f0f87(0x247);await this['_HTTPService'][_0x2f0f87(0x1dd)](_0x489669,{'body':_0x2ab317});}};sn=L([I(0x0,_0x528933(_0x2641c7)),I(0x1,_0x528933(_0x34eea4))],sn);function cn(_0x1727e8,_0x23a634){const _0x8f8b51=_0x3d5482;let _0x1aaae5=_0x23a634-_0x1727e8['length']%_0x23a634;return _0x1727e8+String[_0x8f8b51(0xf6)](_0x1aaae5)[_0x8f8b51(0x26c)](_0x1aaae5);}function ln(_0x2076db,_0x375189){const _0x328a24=_0x3d5482;let _0x1dc032=_0x1a3442[_0x328a24(0x11a)](0x10),_0x339595=cn(_0x2076db,0x10),_0x45ecf5=_0xabafe1[_0x328a24(0x154)](_0x221211['parse'](_0x339595),_0x54034b[_0x328a24(0xbc)](_0x375189),{'iv':_0x1dc032,'padding':_0x1a5c32});return _0x1dc032['concat'](_0x45ecf5['ciphertext'])[_0x328a24(0x232)](_0x54034b);}function un(){const _0x513efa=_0x3d5482;let _0x2a4a09=_0x38672f()[_0x513efa(0x274)];if(typeof window<'u'&&window[_0x513efa(0x264)]!==void 0x0&&_0x2a4a09){let _0x19659c={'time':Math[_0x513efa(0x189)](Date['now']()/0x3e8),'domain':location['hostname']};return ln(JSON[_0x513efa(0x2d1)](_0x19659c),_0x2a4a09);}}function _0x1996(){const _0x3e99be=['AWAITING','_event$','BASE64','_type','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getSheetId','pauseCollaboration','disableLocalCache','message$','subject','getOwnPropertyDescriptor','reverse','_sessionStatus$','transformUndoRedo','result','_clearUndo','_socket','changesets','MUTATION','closeSession','_resendWithTimeout','_commandService','duration','dispose$','every','snapshotServerUrl','transformStack\x20failed!','HEARTBEAT_INTERVAL','onMissedChangesetFetched','_createInitialStateImpl','headers','JOIN','unitId','_logService','PERMISSION_REJ','PERSON','registerHTTPInterceptor','_revisionService','_transformStack','onTransformRemoteChangesetByIMECache','loginUrlKey','pending','UNIVER_SLIDE','csAckEvent','updateCursorEvent','_roomMembers','4101822oFIVBu','object','get','method','_redoStacks','_sheetTransformSelectionsService','/allowed','IDLE','startTime','getSheetBlock','getFocusedUnit','getResourcesRequest','_getSignURL','forEach','_HTTPService','map','type','retryConnectingInterval','size','_clearRetryConnectingTimer','_networkConditionService','set','withCredentials','_getDownloadEndpointURL','_init','setWaitCount','_members','localeService','isArray','max','put','CLOSE_ROOM','toggleOnline','avatar','_initUnitPermissionChange','_getLoginPath','ONLINE','_memberService','LEAVE','params','0.18.0','signUrlServerUrl','telemetry\x20info\x20is\x20not\x20initialized','_replaceFileID','update','socket\x20close','toggleOffline','updateOfflineData','liveShareNewHost','_removeRoom','version','create','then','newCsEvent','default','isPermissionRej','memberID','selections','_pendingMutations','OPTIONAL','onSyncEditingCollabCursor','_waitCount','name','_configService','createInstance','_changesetReqId','unit-cache-','_maxTotalRetryTimeout','?url=','loadSheet','FETCH_MISS','/role','resolve','packageName','updateCollaborator','onlyLocal','subscribe','CONFLICT','userID','sessionStatus','emitEvent','data','resend','ERROR_IMAGE_TYPE','_isPermissionRej','getMemberID','_startCollaboration','_initRequestHeader','getUnitOnRev','cmd','_schedule','unitInfo$','_clearRedo','HEARTBEAT_TIMEOUT','roles','_candidateSocket','_transformStateCache','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','309GyGhqI','_onJoinRoomEvent','slice','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','fetchMissingChangesets','sendChangesetTimeout','url','unsubscribe','_onLocalMutation','getActiveSheet','objectType','session','_shouldReportTelemetry','_compressMutationService','_updateState','image/bmp','getRoom','toString','values','socket\x20open.','session.room-full','_onRemoteChangeset','/block/','\x0aCurrent:\x20','_telemetryInfo','_initDependencies','catch','saveChangeset','RETRY_CONNECTING_MAX_COUNT','LIVESHARE_TERMINATE','_collaborationTimeoutTimer','awaiting','_doCreateSocket','revision','getCurrentUser','getImageSourceCache','CHANGESET_ACK','getSnapshotAPIPath','/collaborator','_getCurrentRevision','[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.','/unit/','SHOULD_CLOSE_CONN','_scheduleCompleteTimestamp','[UniverCollaborationClientPlugin]','[DataLoaderService]','[SyncedState]:\x20received\x20acknowledgement.','_transitionLocked','_change$','NOT_COLLAB','getAllMembers','debug','readyForCollab','href','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_socketReady','28651HbRFKz','disposeWithMe','submit\x20changeset\x20error!','getCollabEntity$','USERS_ENTER','FileId','_entities','_retryConnectingTimer','POST','_executeRemoteChangeset','open$','location','updateMember','addImageSourceCache','NEW_CHANGESETS','entityInit$','_decreaseWaiting','_unlockTransition','stopTime','repeat','3514990ilCTyI','onSendChangeset','_sendingTimer','_snapshotServerService','/rev/','LOCAL_CACHE_INTERVAL','_resendTimer','__Key__','OFFLINE','SUBMIT_CHANGESET','_telemetryService','onStateChange','_clearHeartbeatTimer','_applyRemoteChangeset','getCurrentSelections','baseRev','collabSubmitChangesetUrl','_resendTimeout','_stopTelemetryCollaborationNewChangeset','send','_onUserLeave','_eventService','body','UPDATE_PERMISSION_OBJ','ERROR_IMAGE','updateSnapshot','USERS_LEAVE','DEFAULT_FILE_NAME','_createInitialState','clear','commentUpdateEvent','string','UNIVER_DOC','_unitInfo$','_roomCreated$','JOIN_ROOM_NOT_EXISTS','117ZYurZB','onRemoteAck','_httpService','delete','_initMergeInterceptor','liveShareOperation','auth.needGotoLoginAlert','{fileID}','1445939pLCLrd','_disableEditing','SOCKET_FAILED','_toggleOffline','eventID','JOIN_ROOM_FAILED','_singleActiveUnitService','list','error$','next','shouldCloseConn','transformSelections','_startTelemetryCollaborationNewChangeset','HEARTBEAT','getLatestCsReqIdBySid','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','collaboration-client.config','collabWebSocketUrl','_timeoutTimer','originalMeta','image/gif','members$','FETCH_MISSING','createCollaborator','INGEST','_imageSourceCache','reduce','dispose','setShowComponents','objects','PSEUDO_FETCH_MISSING_RESULT','function','_onConflict','\x20in\x20_schedule.','file','downloadEndpointUrl','rev','/fetchmissing?from=','close','reconnect','decorate','[CollaborationEntity]','_lockTransition','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','leaveEvent','socket$','_clearCollaborationTimeoutTimer','compose','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','x-univer-host','/-/object/list','SYNCED','length','uploadFileServerUrl','executeCommand','_univerInstanceService','stringify','saveSnapshot','getValue','reqId','c1Prime','state$','_onRemoteRejected','_getUploadFileURL','GLOBAL_ROOMS_CNT_EXCEEDS','authzUrl','onCommentUpdate','_rescheduleHeartbeat','_remoteChangesetQueue','online$','collaboration_new_changeset','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','/-/object/-/batch_allowed','save\x20fail\x20reason\x20is\x20','_updateStatus','override','_snapshotService','close$','enableAuthServer','push','_clearLocalCache','awaitingChangeset','min','_handler','/object','onload','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_onRecvEvent','18572qguKwL','encode','getUnitId','getTypeOfUnitDisposed$','[CollaborationUndoRedoService]','/universer-api/snapshot','joinEvent','Univer','_state','_sendHeartbeat','collaborators','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','getCurrentRevOfUnit','snapshot','_getAPIPrefixPath','_collabSessionService','splice','UnitEmbedded','SNAPSHOT_URL_KEY','_substituteUndoStack','[SyncedState]:\x20received\x20rejection.','_initCloseConn','actions','_state$','_fetchMissChangesets','PENDING','readAsDataURL','origin','onTransformRemoteChangesetByStateCache','range','fetchMiss','apply','_collaborationUIEventService','univer-pro.collaboration-client.single-active-unit-service','OTHER_CLIENTS_EDITING','getTime','_onMessage','_createHandler','LIVESHARE_REQUEST_HOST','onTransformState','title','COMPRESS_MUTATION_SEND','reject','mutations','LIVESHARE_FETCH_OPERATIONS','PERMISSION_DENIED','now','deepClone','HELLO','/universer-api/user/session-ticket','sid','_transformRemoteChangesetByStateCache','AWAITING_WITH_PENDING','transformMutationsWithChangeset','LIVESHARE_OPERATION','state','interceptor','has','parse','JOINING','entries','[FetchMissState]','RECV','LIVESHARE_NEW_HOST','_showConflictNotification','appendMutation','collaboratorID','session.room-not-exists','ws://127.0.0.1:8000/universer-api/comb/connect','enableOfflineEditing','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','onRemoteRej','[CollaborationSession]','requestParams','_tryEnsureSocket','editingUnit','COMMENT_UPDATE','[OfflineState]:\x20received\x20changeset.','_localCacheService','_members$','enableCollaboration','_entityInit$','add','routeKey','?size=','complete','_transformSelections','saveImage','init','status','_onRemoteRetry','UPDATE_CURSOR','removeMember','FAIL','_retryCount','_handlerCallback','onLocalMutation','_userManagerService','session.room-cnt-exceeds','UNIVER_COLLABORATION_CLIENT_PLUGIN','requireSession','[PendingState]:\x20received\x20rejection.','setCurrentUser','_tryReconnect','/object/','subUnitId','438670KVGcog','_getAPIPrefix','_injector','NO_OTHER_CLIENTS_EDITING','_onUserJoin','uniscriptRunEvent','batchAllowed','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_scheduleCollaborationTimeoutTimer','pipe','fromCharCode','getUnitStatus$','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_updateLocalCache','_onCombEvent','objectID','_localeService','1BWlIFU','asObservable','[CollaborationSessionService]','[OfflineState]:\x20received\x20rejection.','MSG_FOR_ERROR','updatePermissionPoint','startsWith','iterator','change$','capture','onStarting','addHandlerCallback','_onFetchMissResult','awaiting_with_pending','ERROR_EXCEED_SIZE','loadOfflineData','sheets','fetch_missing','_commentService','_onConnectionOpen','image/jpeg','_acknowledgedAwaitingChangeset','COMPRESS_MUTATION_APPLY','_submitChangeset','OTHER_CLIENT_EDITING','objectActions','\x0aAfter:\x20','unitId\x20is\x20not\x20found','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','random','_sender','_incrementRevisionNumber','__splitChunk__','unitID','_throwTelemetryCollaborationNewChangeset','/resources','onMissingChangesets','getUnitType','unknown','call','editing\x20status\x20changed\x20to','_socket$','Failed\x20to\x20update\x20permission\x20point','event$','_getRedoStack','/universer-api/comb','prototype','_getUndoStack','CHANGESET_SHOULD_RETRY','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_status$','localCacheService','_onOffline','_replayCachedMutations','onTransformIME','_sendHeartbeatTimer','[PendingState]:\x20received\x20acknowledgement.','fetchThroughInterceptors','onRemoteChangeset','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','onRemoteRetry','1160laDuQq','getConfig','_waitForHeartbeatResponse','SUBMIT_CHANGESET_TIMEOUT','_getSendChangesetTimeout','_commentUpdate$','_onRemoteACK','append','/universer-api/oidc/authpage','m2Prime','session.join-failed','createSocket','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','status$','_transformIMECache','/universer-api/file/{fileID}/sign-url','from','_emitMembers','UUID','_clearScheduledTask','_socketMessageSubscription','_transformService','incrementRevOfUnit','image/jpg','post','_permissionService','encrypt','UNIVER_SHEET','offline','transformChangesets','getTypeOfUnitAdded$','UNISCRIPT_RUN','_queuedRemoteChangesets','code','_substituteRedoStack','getMember','commentUpdate$','joinRsp','_collaborationSessionService','copyFileMeta','univer-pro.collaboration-client.network-condition.service','_changesetSessionId','responseType','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','image/png','error','276868qpaudv','toPrimitive','_checkMissing','CHANGESET_REJ','onTransformSelections','_getCtorByUniverType','SOCKET_FAILED_RETRY','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','pluginName','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_listenToNetworkCondition','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','resourceIDs','_exhaustRemoteChangesetQueue','/universer-api/stream/file/upload','_createSocket','_awaitingChangeset','symbol','infoRsp','find','_config','_socketService','_toggleOnline','getInterceptPoints','_transformUndoredo','getImage','_unitID','_collaborationPaused','onMutationExecutedForCollab','_instanceService','loadDoc','collaMsg','_registerDependencies','floor','_sessions','_joinRoom','_clearTimeoutTimer','_onConnectionFailed','loadUnitOfRevision','findIndex','sessionStatus$'];_0x1996=function(){return _0x3e99be;};return _0x1996();}let dn=class{constructor(_0x2dc9bc){const _0x589e38=_0x3d5482;this[_0x589e38(0x293)]=_0x2dc9bc,this['_initRequestHeader']();}[_0x3d5482(0x216)](){const _0x5b6970=_0x3d5482;this['_httpService'][_0x5b6970(0x1b5)]({'interceptor':(_0x1d4583,_0x1ec3a6)=>{const _0x2a3432=_0x5b6970;let _0x405d0e=_0x1d4583[_0x2a3432(0x1af)],_0xefd69e=un();return _0xefd69e&&_0x405d0e[_0x2a3432(0x1d4)](_0x2a3432(0x2ca),_0xefd69e),_0x1ec3a6(_0x1d4583);}});}};dn=L([I(0x0,_0x528933(_0x2641c7))],dn);let fn=class extends _0x114242{constructor(_0x1873b9,_0x1c5f98,_0x1bf1fb){const _0x382713=_0x3d5482;super(),this['_logService']=_0x1873b9,this['_snapshotService']=_0x1c5f98,this[_0x382713(0xd0)]=_0x1bf1fb,N(this,'_unitInfo$',new _0x3a2e8a(null)),N(this,_0x382713(0x21a),this[_0x382713(0x28e)]['asObservable']());}async[_0x3d5482(0x18e)](_0x10e90d,_0x29bed5,_0x5ecfa2){const _0x1fc026=_0x3d5482;this[_0x1fc026(0x28e)][_0x1fc026(0x2a2)]({'unitId':_0x10e90d,'type':_0x29bed5});let _0x583870=null;switch(_0x29bed5){case _0x311bf4['UNIVER_SHEET']:_0x583870=await this[_0x1fc026(0x2e5)][_0x1fc026(0x204)](_0x10e90d,_0x5ecfa2);break;case _0x311bf4['UNIVER_DOC']:_0x583870=await this[_0x1fc026(0x2e5)][_0x1fc026(0x186)](_0x10e90d,_0x5ecfa2);break;default:this[_0x1fc026(0x1b2)][_0x1fc026(0x167)](_0x1fc026(0x24e),_0x1fc026(0x195));break;}return _0x583870;}async['loadUnit'](_0x43370c,_0x5888ed,_0x53f5d8){const _0x464ecf=_0x3d5482;var _0x5ac13d;this[_0x464ecf(0x28e)]['next']({'unitId':_0x43370c,'type':_0x5888ed,'subUnitId':_0x53f5d8});let _0x24887d=0x0,_0x26d5e2=await((_0x5ac13d=this[_0x464ecf(0xd0)])==null?void 0x0:_0x5ac13d[_0x464ecf(0x10c)](_0x43370c));return _0x26d5e2&&(_0x26d5e2[_0x464ecf(0x2ea)]||_0x26d5e2[_0x464ecf(0xad)][_0x464ecf(0x2cd)]!==0x0)&&(_0x24887d=_0x26d5e2[_0x464ecf(0x2bd)]),_0x24887d===0x0&&this[_0x464ecf(0x1b2)][_0x464ecf(0x254)](_0x464ecf(0x24e),_0x464ecf(0x12e)),this[_0x464ecf(0x18e)](_0x43370c,_0x5888ed,_0x24887d);}};fn=L([I(0x0,_0x2fc9db),I(0x1,_0x528933(_0x225a81)),I(0x2,_0x5e5f16(B))],fn);const pn=[_0x3d5482(0x166),_0x3d5482(0x111),_0x3d5482(0x151),_0x3d5482(0x2ad),_0x3d5482(0x230)];let mn=class{constructor(_0x2f5277,_0x4ced13,_0x4a0180){const _0x2b4db5=_0x3d5482;this[_0x2b4db5(0x293)]=_0x2f5277,this[_0x2b4db5(0x1fe)]=_0x4ced13,this[_0x2b4db5(0x2d0)]=_0x4a0180,N(this,_0x2b4db5(0x1fc),0x0),N(this,_0x2b4db5(0x251),new _0x46c32c()),N(this,_0x2b4db5(0x105),this[_0x2b4db5(0x251)]),N(this,'_imageSourceCache',new Map());}[_0x3d5482(0x1d8)](_0x10185a){const _0x25dc8a=_0x3d5482;this[_0x25dc8a(0x1fc)]=_0x10185a,this[_0x25dc8a(0x251)][_0x25dc8a(0x2a2)](_0x10185a);}[_0x3d5482(0x244)](_0x19eae0,_0x22501a){const _0xbe8776=_0x3d5482;if(_0x22501a===_0x1be6fe[_0xbe8776(0x193)]){let _0x104d6c=new Image();return _0x104d6c['src']=_0x19eae0,_0x104d6c;}return this[_0xbe8776(0x2b2)][_0xbe8776(0x1c1)](_0x19eae0);}[_0x3d5482(0x266)](_0x22389b,_0x2b5052,_0x496250){const _0x540f0c=_0x3d5482;_0x2b5052===_0x1be6fe[_0x540f0c(0x193)]||_0x496250==null||this[_0x540f0c(0x2b2)][_0x540f0c(0x1d4)](_0x22389b,_0x496250);}async[_0x3d5482(0x181)](_0x599121){const _0x181596=_0x3d5482;try{let _0x5de4ca=this['_replaceFileID'](this[_0x181596(0x1cb)](),''+_0x599121),_0x3977e0=(await this[_0x181596(0x293)][_0x181596(0x1c1)](_0x5de4ca))[_0x181596(0x283)];if(_0x3977e0['error']&&_0x3977e0[_0x181596(0x167)][_0x181596(0x15b)]===_0x3dca78['OK']){let _0x50194e=_0x18f79c(_0x3977e0[_0x181596(0x227)],this['_getDownloadEndpointURL']());return Promise[_0x181596(0x207)](_0x50194e);}return Promise[_0x181596(0xac)](_0x3977e0[_0x181596(0x167)]);}catch(_0x596c94){return Promise[_0x181596(0xac)](_0x596c94);}}async[_0x3d5482(0xd9)](_0x2e6a1d){const _0x4609a9=_0x3d5482;let _0x3029bd='';if(!pn['includes'](_0x2e6a1d[_0x4609a9(0x1cf)]))return this[_0x4609a9(0x269)](),Promise[_0x4609a9(0xac)](Error(_0x4864d9[_0x4609a9(0x212)]));if(_0x2e6a1d[_0x4609a9(0x1d1)]>0x500000)return this[_0x4609a9(0x269)](),Promise[_0x4609a9(0xac)](Error(_0x4864d9[_0x4609a9(0x10b)]));try{let _0x4f8265=new FormData();_0x4f8265[_0x4609a9(0x141)](_0x4609a9(0x2bb),_0x2e6a1d);let _0x398d77=this[_0x4609a9(0x2d0)][_0x4609a9(0x1c9)](),_0x471562=_0x398d77==null?void 0x0:_0x398d77[_0x4609a9(0x2f3)]();if(!_0x471562)throw Error(_0x4609a9(0x118));let _0x4cfd11=this[_0x4609a9(0x2d8)]()+_0x4609a9(0xd6)+_0x2e6a1d[_0x4609a9(0x1d1)][_0x4609a9(0x232)]()+'&source='+_0x4fd19e[_0x4609a9(0x302)]+'&assign='+encodeURIComponent(_0x471562),_0x50f823={'body':_0x4f8265},_0x1cbd5f=(await this[_0x4609a9(0x293)][_0x4609a9(0x152)](_0x4cfd11,_0x50f823))['body'];if(typeof _0x1cbd5f[_0x4609a9(0x25e)]!=_0x4609a9(0x28c))return this[_0x4609a9(0x269)](),Promise[_0x4609a9(0xac)](Error(_0x4864d9[_0x4609a9(0x285)]));_0x3029bd=_0x1cbd5f[_0x4609a9(0x25e)];}catch{return this[_0x4609a9(0x269)](),Promise[_0x4609a9(0xac)](Error(_0x4864d9[_0x4609a9(0x285)]));}return new Promise((_0x5567ab,_0x43876f)=>{const _0x18e4c5=_0x4609a9;let _0x1cb78d=new FileReader();_0x1cb78d[_0x18e4c5(0x30b)](_0x2e6a1d),_0x1cb78d[_0x18e4c5(0x2ee)]=_0x574025=>{const _0x5f44be=_0x18e4c5;var _0x264305;let _0x2b45c4=(_0x264305=_0x574025['target'])==null?void 0x0:_0x264305['result'];if(_0x2b45c4==null){this[_0x5f44be(0x269)](),_0x43876f(Error(_0x4864d9[_0x5f44be(0x285)]));return;}_0x5567ab({'imageId':_0x4393e0(0x6),'imageSourceType':_0x1be6fe[_0x5f44be(0x14c)],'source':_0x3029bd,'base64Cache':_0x2b45c4,'status':_0x4864d9['SUCCUSS']}),this[_0x5f44be(0x269)]();};});}[_0x3d5482(0x2d8)](){const _0x42cac4=_0x3d5482;var _0x4180fa;let _0x4d5d12=this[_0x42cac4(0x1fe)][_0x42cac4(0x13b)](H);return(_0x4180fa=_0x4d5d12==null?void 0x0:_0x4d5d12[_0x42cac4(0x2ce)])==null?_0x42cac4(0x176):_0x4180fa;}['_getSignURL'](){const _0x30cd47=_0x3d5482;var _0x55f26c;let _0xc7f1d8=this[_0x30cd47(0x1fe)][_0x30cd47(0x13b)](H);return(_0x55f26c=_0xc7f1d8==null?void 0x0:_0xc7f1d8[_0x30cd47(0x1e8)])==null?_0x30cd47(0x149):_0x55f26c;}[_0x3d5482(0x1d6)](){const _0x2c6e47=_0x3d5482;var _0xf7bb14;let _0x576b3f=this[_0x2c6e47(0x1fe)][_0x2c6e47(0x13b)](H);return(_0xf7bb14=_0x576b3f==null?void 0x0:_0x576b3f[_0x2c6e47(0x2bc)])==null?location[_0x2c6e47(0x30c)]:_0xf7bb14;}[_0x3d5482(0x1ea)](_0x2e58d0,_0x40efc7){const _0x184537=_0x3d5482;return _0x2e58d0['replace'](_0x184537(0x298),_0x40efc7);}[_0x3d5482(0x269)](){const _0x1b30e4=_0x3d5482;--this[_0x1b30e4(0x1fc)],this[_0x1b30e4(0x251)][_0x1b30e4(0x2a2)](this[_0x1b30e4(0x1fc)]);}};mn=L([I(0x0,_0x528933(_0x2641c7)),I(0x1,_0x34eea4),I(0x2,_0x528933(_0x5c02d5))],mn);let hn=class{constructor(_0xbb4486,_0x56252b){this['_configService']=_0xbb4486,this['_HTTPService']=_0x56252b;}[_0x3d5482(0x2ff)](){const _0x410573=_0x3d5482;var _0xe72abe;let _0x2b9e1d=this[_0x410573(0x1fe)][_0x410573(0x13b)](H);return(_0xe72abe=_0x2b9e1d==null?void 0x0:_0x2b9e1d[_0x410573(0x2da)])==null?'/universer-api/authz':_0xe72abe;}async[_0x3d5482(0x2a0)](_0x1652bb){const _0x1e4198=_0x3d5482;let _0x3d0257=this[_0x1e4198(0x2ff)]()+_0x1e4198(0x247);return{'list':[{'title':'People','mentions':(await this[_0x1e4198(0x1cd)][_0x1e4198(0x1c1)](_0x3d0257,{'params':{'objectID':_0x1652bb['unitId'],'unitID':_0x1652bb[_0x1e4198(0x1b1)]}}))['body'][_0x1e4198(0x2fb)][_0x1e4198(0x1ce)](_0x576dfa=>({'objectId':_0x576dfa['id'],'name':_0x576dfa[_0x1e4198(0x19a)][_0x1e4198(0x1fd)],'metadata':{'icon':_0x576dfa[_0x1e4198(0x19a)][_0x1e4198(0x1e0)]},'label':_0x576dfa[_0x1e4198(0x19a)][_0x1e4198(0x1fd)],'objectType':_0x951061['PERSON']})),'metadata':{},'type':_0x951061[_0x1e4198(0x1b4)]}]};}};hn=L([I(0x0,_0x528933(_0x34eea4)),I(0x1,_0x528933(_0x2641c7))],hn);let gn=class extends _0x114242{constructor(_0x5baa07,_0xdcbd4b,_0x6a1900,_0x3eadd2,_0x2b7cb0){const _0x56da33=_0x3d5482;super(),this[_0x56da33(0xee)]=_0x5baa07,this[_0x56da33(0x2d0)]=_0xdcbd4b,this['_permissionService']=_0x6a1900,this[_0x56da33(0x160)]=_0x3eadd2,this[_0x56da33(0x311)]=_0x2b7cb0,this[_0x56da33(0x1e1)](),this[_0x56da33(0x306)]();}[_0x3d5482(0x306)](){const _0x4223ee=_0x3d5482;let _0x287b2a=async _0x8c169b=>{const _0x131fdf=_0x157c;(await this[_0x131fdf(0x160)][_0x131fdf(0xe6)](_0x8c169b))[_0x131fdf(0x128)][_0x131fdf(0xf5)](_0x842d2d(_0x320707=>_0x320707['eventID']===_0x50665f[_0x131fdf(0x24b)]),_0x535927(this[_0x131fdf(0x1a8)]))[_0x131fdf(0x20b)](_0x260232=>{const _0x1f1155=_0x131fdf;let {reason:_0x2c3fd6}=_0x260232['data'];this[_0x1f1155(0x311)][_0x1f1155(0x20f)]({'id':P[_0x1f1155(0x1de)],'data':_0x2c3fd6}),this['_permissionService']['updatePermissionPoint'](new _0x627a18(_0x8c169b)['id'],!0x1),this['_collaborationSessionService'][_0x1f1155(0x1a4)](_0x8c169b);});};_0x27f243(this[_0x4223ee(0x2d0)][_0x4223ee(0x158)](_0x40b723[_0x4223ee(0x155)]),this[_0x4223ee(0x2d0)][_0x4223ee(0x158)](_0x40b723[_0x4223ee(0x28d)]))[_0x4223ee(0xf5)](_0x455a01(_0x18318b=>_0x18318b[_0x4223ee(0x2f3)]()),_0x842d2d(_0x3e231e=>!_0x258627(_0x3e231e)),_0x535927(this['dispose$']))[_0x4223ee(0x20b)](_0x3bbbb7=>{_0x287b2a(_0x3bbbb7);});}[_0x3d5482(0x1e1)](){const _0x4a4e9f=_0x3d5482;let _0x3e9b64=async _0x48df2e=>{const _0x244ad4=_0x157c;let _0x50c9f6=await this['_collaborationSessionService']['requireSession'](_0x48df2e),_0x2b2b0b=this[_0x244ad4(0xee)][_0x244ad4(0x1c1)](_0x10a4f1);_0x50c9f6[_0x244ad4(0x128)][_0x244ad4(0xf5)](_0x842d2d(_0xff0aac=>_0xff0aac[_0x244ad4(0x29d)]===_0x50665f[_0x244ad4(0x284)]),_0x535927(this['dispose$']))[_0x244ad4(0x20b)](_0x4bf19c=>{let {objectId:_0x3c971a}=_0x4bf19c['data'];_0x3c971a===_0x48df2e?_0x2b2b0b['initWorkbookPermissionChange'](_0x48df2e):_0x2b2b0b['refreshPermission'](_0x48df2e,_0x3c971a);});};_0x27f243(this[_0x4a4e9f(0x2d0)]['getTypeOfUnitAdded$'](_0x40b723[_0x4a4e9f(0x155)]))[_0x4a4e9f(0xf5)](_0x455a01(_0x3c0990=>_0x3c0990[_0x4a4e9f(0x2f3)]()),_0x842d2d(_0x320a67=>!_0x258627(_0x320a67)),_0x535927(this[_0x4a4e9f(0x1a8)]))[_0x4a4e9f(0x20b)](_0x58ff34=>{_0x3e9b64(_0x58ff34);});}};gn=L([I(0x0,_0x528933(_0x2f9ec4)),I(0x1,_0x5c02d5),I(0x2,_0x10ad10),I(0x3,_0x528933(Q)),I(0x4,_0x528933(F))],gn);let _n=class{constructor(_0x3634f0,_0x5dc53f){const _0x47b0d3=_0x3d5482;this[_0x47b0d3(0x1fe)]=_0x3634f0,this['_httpService']=_0x5dc53f;}async[_0x3d5482(0x217)](_0xae5c51,_0x4a914b){const _0x2cb57d=_0x3d5482;var _0x1b7f4e;let {unitID:_0x23a1c4,type:_0x130d78,revision:_0x51f425=0x0}=_0x4a914b,_0x17a98f=this[_0x2cb57d(0x246)]()+'/'+_0x130d78+'/unit/'+_0x23a1c4+_0x2cb57d(0x271)+_0x51f425,_0x340d63=(await this[_0x2cb57d(0x293)][_0x2cb57d(0x1c1)](_0x17a98f))['body'],_0x168263=(_0x1b7f4e=_0x340d63[_0x2cb57d(0x2fe)])==null?void 0x0:_0x1b7f4e['workbook'];if(_0x168263){let _0x10a8ac=_0x168263==null?void 0x0:_0x168263[_0x2cb57d(0x2ac)];_0x168263[_0x2cb57d(0x2ac)]=_0xa5550d[_0x2cb57d(0x2f2)](_0x483f9d(_0x10a8ac)),Object[_0x2cb57d(0xbe)](_0x168263[_0x2cb57d(0x10d)])[_0x2cb57d(0x1cc)](([,_0x43c8b5])=>{const _0x21d0d7=_0x2cb57d;let _0x33fb0a=_0x43c8b5[_0x21d0d7(0x2ac)];_0x43c8b5[_0x21d0d7(0x2ac)]=_0xa5550d[_0x21d0d7(0x2f2)](_0x483f9d(_0x33fb0a));});}return _0x340d63;}async[_0x3d5482(0x1c8)](_0x37e263,_0x3ccde2){const _0x182a46=_0x3d5482;let {unitID:_0x1af2d1,type:_0x59f416,blockID:_0x3d17a9}=_0x3ccde2,_0xe4de9d=this[_0x182a46(0xed)]()+'/'+_0x59f416+_0x182a46(0x24a)+_0x1af2d1+_0x182a46(0x237)+_0x3d17a9;return(await this[_0x182a46(0x293)]['get'](_0xe4de9d))[_0x182a46(0x283)];}async['getDeserializedSheetBlock'](_0x33a1c7,_0x2d46bb){const _0x5e4098=_0x3d5482;let {unitID:_0x1e8271,type:_0x1f09de,blockID:_0x4638b6}=_0x2d46bb,_0x529c15=this[_0x5e4098(0xed)]()+_0x5e4098(0x237)+_0x1f09de+_0x5e4098(0x24a)+_0x1e8271+_0x5e4098(0x237)+_0x4638b6;return(await this[_0x5e4098(0x293)][_0x5e4098(0x1c1)](_0x529c15))[_0x5e4098(0x283)];}async[_0x3d5482(0x225)](_0x3b8c95,_0x209d60){const _0x52fbad=_0x3d5482;let {unitID:_0x260e75,type:_0x505859,from:_0x375d4,to:_0x4b1b46}=_0x209d60,_0x33d204=this['_getAPIPrefix']()+'/'+_0x505859+_0x52fbad(0x24a)+_0x260e75+_0x52fbad(0x2be)+_0x375d4+'&to='+_0x4b1b46;return(await this[_0x52fbad(0x293)][_0x52fbad(0x1c1)](_0x33d204))[_0x52fbad(0x283)];}[_0x3d5482(0x246)](){const _0x4fe158=_0x3d5482;var _0x4e49af;return(_0x4e49af=this[_0x4fe158(0x1fe)][_0x4fe158(0x13b)](_0x4fe158(0x303)))==null?this['_getAPIPrefix']():_0x4e49af;}['_getAPIPrefix'](){const _0xc9f45a=_0x3d5482;var _0x48c734;let _0x2268d2=this[_0xc9f45a(0x1fe)][_0xc9f45a(0x13b)](H);return(_0x48c734=_0x2268d2==null?void 0x0:_0x2268d2[_0xc9f45a(0x1aa)])==null?_0xc9f45a(0x2f6):_0x48c734;}async[_0x3d5482(0x1ca)](_0x4527c9,_0x402c15){const _0x97bced=_0x3d5482;let _0x2777be='/universer-api/snapshot/'+_0x402c15[_0x97bced(0x1cf)]+'/unit/'+_0x402c15[_0x97bced(0x11e)]+_0x97bced(0x120);return(await this['_httpService'][_0x97bced(0x1c1)](_0x2777be,{'params':{'resourceId':JSON[_0x97bced(0x2d1)](_0x402c15[_0x97bced(0x174)])}}))[_0x97bced(0x283)];}[_0x3d5482(0x2d2)](){const _0x34ec90=_0x3d5482;throw Error(_0x34ec90(0xc8));}[_0x3d5482(0x286)](){const _0x30beae=_0x3d5482;throw Error(_0x30beae(0xc8));}['saveSheetBlock'](){const _0x36f597=_0x3d5482;throw Error(_0x36f597(0xc8));}[_0x3d5482(0x23c)](){const _0x59ab00=_0x3d5482;throw Error(_0x59ab00(0xc8));}[_0x3d5482(0x161)](){const _0x1e673c=_0x3d5482;throw Error(_0x1e673c(0xc8));}[_0x3d5482(0x2a7)](){const _0x4056e8=_0x3d5482;throw Error(_0x4056e8(0xc8));}};_n=L([I(0x0,_0x34eea4),I(0x1,_0x528933(_0x2641c7))],_n);let vn=class extends _0xbfcf86{constructor(_0x383c3e,_0x17c941,_0x18f0c6,_0x3c5f1b,_0x41f1b8){const _0x3d1a1e=_0x3d5482;super(_0x383c3e,_0x17c941,_0x18f0c6),this[_0x3d1a1e(0x14f)]=_0x3c5f1b,this[_0x3d1a1e(0x1b2)]=_0x41f1b8;}[_0x3d5482(0x19e)](_0xb4118f,_0x5003d1){const _0x1d0e65=_0x3d5482;let _0x1e9f40=this[_0x1d0e65(0x12c)](_0xb4118f);if(_0x1e9f40)try{let _0x581775=this[_0x1d0e65(0x1b7)](_0x1e9f40,_0x5003d1);this[_0x1d0e65(0x304)](_0xb4118f,_0x581775);}catch(_0x427a69){this[_0x1d0e65(0x1b2)]['error'](_0x1d0e65(0x2f5),_0x427a69),this['_clearUndo'](_0xb4118f);}let _0x4a1221=this['_getRedoStack'](_0xb4118f);if(_0x4a1221)try{let _0xc3fc1e=this[_0x1d0e65(0x1b7)](_0x4a1221,_0x5003d1);this[_0x1d0e65(0x15c)](_0xb4118f,_0xc3fc1e);}catch(_0x44640f){this[_0x1d0e65(0x1b2)][_0x1d0e65(0x167)](_0x44640f),this[_0x1d0e65(0x21b)](_0xb4118f);}}[_0x3d5482(0x1a0)](_0x38b1e7){const _0x25c31d=_0x3d5482;let _0x13ef00=this['_getUndoStack'](_0x38b1e7);_0x13ef00&&(_0x13ef00[_0x25c31d(0x2cd)]=0x0,this[_0x25c31d(0x2e3)]());}[_0x3d5482(0x21b)](_0x3f5bac){const _0x353c4d=_0x3d5482;let _0x114347=this[_0x353c4d(0x129)](_0x3f5bac);_0x114347&&(_0x114347[_0x353c4d(0x2cd)]=0x0,this[_0x353c4d(0x2e3)]());}['_substituteUndoStack'](_0x5d76af,_0xedb943){const _0x451d61=_0x3d5482;this['_undoStacks'][_0x451d61(0x1d4)](_0x5d76af,_0xedb943),this[_0x451d61(0x2e3)]();}[_0x3d5482(0x15c)](_0x14c390,_0x399501){const _0x39080f=_0x3d5482;this[_0x39080f(0x1c3)]['set'](_0x14c390,_0x399501),this[_0x39080f(0x2e3)]();}[_0x3d5482(0x1b7)](_0x34f229,_0x28231e){const _0x1aa960=_0x3d5482;let _0x34f369=[],_0x318669=_0x28231e,_0x25e430=_0x28231e;for(let _0x3046c9=_0x34f229[_0x1aa960(0x2cd)]-0x1;_0x3046c9>=0x0;_0x3046c9--){let {unitID:_0x2e620f,undoMutations:_0x27ad10,redoMutations:_0x89a894}=_0x34f229[_0x3046c9],_0x3eb3f8=this[_0x1aa960(0x14f)]['transformMutationsWithChangeset'](_0x318669,_0x27ad10),_0x3b1fe4=this[_0x1aa960(0x14f)][_0x1aa960(0xb7)](_0x25e430,_0x89a894);if(_0xabf13e(_0x3eb3f8)||_0xabf13e(_0x3b1fe4)){this[_0x1aa960(0x1b2)][_0x1aa960(0x167)](_0x1aa960(0x2f5),_0x1aa960(0x1ab),_0x3eb3f8,_0x3b1fe4);break;}_0x318669=_0x3eb3f8[_0x1aa960(0x2d5)],_0x25e430=_0x3b1fe4[_0x1aa960(0x2d5)],_0x34f369[_0x1aa960(0x2e8)]({'unitID':_0x2e620f,'undoMutations':_0x3eb3f8[_0x1aa960(0x143)],'redoMutations':_0x3b1fe4['m2Prime']});}return _0x34f369[_0x1aa960(0x19c)]();}};vn=L([I(0x0,_0x5c02d5),I(0x1,_0x2169d2),I(0x2,_0x1f346b),I(0x3,_0x3a3a3e),I(0x4,_0x2fc9db)],vn);let $=class extends _0x30a3cc{constructor(_0x1ab311={},_0xb9a2d,_0x554b16,_0x266078){const _0x109044=_0x3d5482;super(),this[_0x109044(0x17c)]=_0x1ab311,this[_0x109044(0x1b2)]=_0xb9a2d,this[_0x109044(0xee)]=_0x554b16,this[_0x109044(0x1fe)]=_0x266078;let {..._0x768245}=_0x1f7958({},Pt,_0x1ab311);if(!_0x768245['socketService'])throw Error(_0x109044(0x171));this[_0x109044(0x17c)]=_0x768245,this[_0x109044(0x1fe)]['setConfig'](H,_0x768245);}[_0x3d5482(0x107)](){const _0x3a49f6=_0x3d5482;this[_0x3a49f6(0x188)](),this[_0x3a49f6(0x23a)]();}['_registerDependencies'](){const _0x58db8c=_0x3d5482;var _0x11f380,_0x3dc60e;this[_0x58db8c(0xee)][_0x58db8c(0xbb)](_0x32e478)&&this[_0x58db8c(0x1b2)]['error'](_0x58db8c(0x24d),_0x58db8c(0x224));let _0x2f4a8d=_0x2a8c1e([[_0x32e478,{'useClass':vn}],[Q],[R],[V],[on],[dn],[Et],[gn],[F],[fn],[Qt,{'useClass':this[_0x58db8c(0x17c)]['socketService']}],[_0x244f88,{'useClass':_n}],[_0x9712e3,{'useClass':sn}],[_0x1ca7f,{'useClass':mn}],[_0x46a626,{'useClass':hn}],[tn],[an]],(_0x11f380=this[_0x58db8c(0x17c)])==null?void 0x0:_0x11f380[_0x58db8c(0x2e4)]);if(!((_0x3dc60e=this[_0x58db8c(0x17c)])!=null&&_0x3dc60e['enableSingleActiveInstanceLock'])){let _0x4ede50=_0x2f4a8d[_0x58db8c(0x18f)](([_0x52dc13])=>_0x52dc13===Mt);_0x4ede50!==-0x1&&_0x2f4a8d[_0x58db8c(0x301)](_0x4ede50,0x1);}_0xb73fe2(this[_0x58db8c(0xee)],_0x2f4a8d);}[_0x3d5482(0x23a)](){const _0x13d2db=_0x3d5482;var _0x1d8333,_0x1805fd;if(this[_0x13d2db(0xee)]['get'](_0x2641c7)[_0x13d2db(0x1b5)]({'priority':0x14,'interceptor':_0x3e8a7e({'maxParallel':0x6})}),!((_0x1d8333=this[_0x13d2db(0x17c)])!=null&&_0x1d8333[_0x13d2db(0xc7)])){var _0x179b5c;(_0x179b5c=this['_injector'][_0x13d2db(0x1c1)](B,_0x52ca89[_0x13d2db(0x1fa)]))==null||_0x179b5c[_0x13d2db(0x198)]();}(_0x1805fd=this['_config'])!=null&&_0x1805fd[_0x13d2db(0x2e7)]&&_0x46096c(this[_0x13d2db(0xee)],[[on]]),_0x46096c(this[_0x13d2db(0xee)],[[dn],[tn],[gn]]);}};N($,_0x3d5482(0x170),_0x3d5482(0xe5)),N($,_0x3d5482(0x208),nn),N($,_0x3d5482(0x1f1),rn),$=L([_0x469f86(_0x52c865,_0x3181fb,_0x5d3154),I(0x1,_0x2fc9db),I(0x2,_0x528933(_0x2f9ec4)),I(0x3,_0x34eea4)],$);export{sn as AuthzIoHttpService,q as AwaitingState,J as AwaitingWithPendingState,H as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,tn as CollaborationController,Kt as CollaborationEntity,mn as CollaborationImageIoService,kt as CollaborationSession,Q as CollaborationSessionService,en as CollaborationSocketService,U as CollaborationStatus,P as CollaborationUIEventId,F as CollaborationUIEventService,vn as CollaborativeUndoRedoService,Et as CommentService,Y as ConflictState,ft as DEFAULT_COLLAB_WEB_SOCKET_URL,xt as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,pt as DEFAULT_WS_SESSION_TICKET_URL,fn as DataLoaderService,qt as DocCollaborationEntity,Z as FetchingMissState,mt as HEARTBEAT_INTERVAL_KEY,ht as HEARTBEAT_TIMEOUT_KEY,Qt as ICollaborationSocketService,B as ILocalCacheService,Yt as INetworkConditionService,Mt as ISingleActiveUnitService,yt as LOCAL_CACHE_INTERVAL,vt as LOCAL_CACHE_INTERVAL_KEY,R as MemberService,hn as MentionIoHttpService,X as OfflineState,K as PendingState,bt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,_t as RETRY_CONNECTING_MAX_COUNT_KEY,z as SessionStatus,Jt as SheetCollaborationEntity,V as SheetTransformSelectionsService,_n as SnapshotServerOverHTTPService,G as SyncedState,Nt as UnitStatus,$ as UniverCollaborationClientPlugin,Xt as deserializeToCombResponse,At as getLocalCacheKey,Zt as serializeCombRequest};
|
|
1
|
+
const _0x1b551c=_0x4b15;(function(_0xec98e0,_0x5d0c3e){const _0x4178a2=_0x4b15,_0x50db6a=_0xec98e0();while(!![]){try{const _0x1ce1c7=parseInt(_0x4178a2(0x291))/0x1*(-parseInt(_0x4178a2(0x1e8))/0x2)+-parseInt(_0x4178a2(0x184))/0x3+parseInt(_0x4178a2(0x13c))/0x4+-parseInt(_0x4178a2(0x279))/0x5*(-parseInt(_0x4178a2(0x18d))/0x6)+parseInt(_0x4178a2(0x301))/0x7*(-parseInt(_0x4178a2(0x2d8))/0x8)+-parseInt(_0x4178a2(0x1df))/0x9+parseInt(_0x4178a2(0x2a9))/0xa;if(_0x1ce1c7===_0x5d0c3e)break;else _0x50db6a['push'](_0x50db6a['shift']());}catch(_0x12b919){_0x50db6a['push'](_0x50db6a['shift']());}}}(_0x573a,0x96d74));import{CollaborationEvent as _0x862348,CompressMutationService as _0x403316,EmptyMutationInfo as _0x195c0b,ISnapshotServerService as _0x276c62,ITransformService as _0x1ea2a6,RevisionService as _0x259edb,SnapshotService as _0x57ba06,UniverCollaborationPlugin as _0xecaf9d,b64DecodeUnicode as _0x35cc08,isTransformChangesetsSuccess as _0x4668cd,isTransformMutationsWithChangesetFailure as _0x4fb42c,isTransformMutationsWithChangesetSuccess as _0x30a062,mapDocumentTypeToUniverType as _0x35cd5f,parseChangesetToProtocol as _0x5cf58b,parseProtocolChangeset as _0x22db94,textEncoder as _0x4b08c4,uuidv4 as _0x44ad44}from'@univerjs-pro/collaboration';import{CommandType as _0x3c8a50,DependentOn as _0x3c391f,Disposable as _0x507a94,DisposableCollection as _0xe1b115,IAuthzIoService as _0x5199cb,ICommandService as _0x158d1a,IConfigService as _0x18a450,IContextService as _0x1a5fd3,ILogService as _0x391759,IMentionIOService as _0x4162b5,IPermissionService as _0x16e820,IUndoRedoService as _0x126452,IUniverInstanceService as _0x2277bb,Inject as _0x525df4,Injector as _0x4fe526,JSONX as _0x123940,LocalUndoRedoService as _0x218ca5,LocaleService as _0x3dcdf2,MentionType as _0x44f260,Optional as _0x244262,Plugin as _0x2f27c9,Quantity as _0x61c64a,Rectangle as _0x34a077,RxDisposable as _0x2c31d0,Tools as _0x2c9b93,UniverInstanceType as _0x1e7823,UserManagerService as _0x565b67,Workbook as _0x2fb769,createIdentifier as _0x304c6c,generateRandomId as _0x2f80c1,isInternalEditorID as _0x1e0a4f,merge as _0x1e8f3b,mergeOverrideWithDependencies as _0x2c8b38,registerDependencies as _0x418870,resolveWithBasePath as _0x33bb5f,sequenceExecute as _0x2b4f4b,toDisposable as _0x563a45,touchDependencies as _0x59f476}from'@univerjs/core';import{RichTextEditingMutation as _0x15b31c}from'@univerjs/docs';import{InsertSheetMutation as _0x4f7715,SetSelectionsOperation as _0x2321f2,SheetPermissionInitController as _0x73e21f,SheetsSelectionsService as _0xb505e3,WorkbookEditablePermission as _0x1d3cb6}from'@univerjs/sheets';import{BehaviorSubject as _0x3670a7,ReplaySubject as _0x5cca94,Subject as _0x31bd3c,concatMap as _0x518ce1,firstValueFrom as _0x3fe34a,map as _0x2d4cfb,merge as _0x3db10,of as _0x1298a7,shareReplay as _0x2bb13e,take as _0x3236cf,takeUntil as _0x1bb453}from'rxjs';import{CmdRspCode as _0x2bede7,CombCmd as _0x5cec66,ErrorCode as _0x54483b,FileSource as _0x33b391,UniverType as _0x5c2ea6}from'@univerjs/protocol';import{ITelemetryService as _0x52b3d6}from'@univerjs/telemetry';import{delay as _0x3bff6b,filter as _0x26f9fe,map as _0x1c83bc,take as _0x3ae717,takeUntil as _0x5873ff}from'rxjs/operators';import{HTTPRequest as _0x293f91,HTTPService as _0x3b6234,ISocketService as _0x13ca03,MergeInterceptorFactory as _0x35a1c1,ThresholdInterceptorFactory as _0x5380a1,UniverNetworkPlugin as _0x35f78b}from'@univerjs/network';import{UniverLicensePlugin as _0x59a3ab,getGlobalObject as _0x2ae351}from'@univerjs-pro/license';import{IImageIoService as _0x52f9e,ImageSourceType as _0x147381,ImageUploadStatusType as _0x360110}from'@univerjs/drawing';import _0x8e52dd from'crypto-js/aes';import _0x40465d from'crypto-js/enc-base64';import _0x4b7a64 from'crypto-js/enc-utf8';import _0x108a26 from'crypto-js/lib-typedarrays';import _0x239262 from'crypto-js/pad-nopadding';const ft=_0x1b551c(0x1b5),pt='/universer-api/user/session-ticket',mt=_0x1b551c(0x305),ht=_0x1b551c(0x140),gt=0x4e20,_t=_0x1b551c(0x1db),vt=_0x1b551c(0x287),yt=0x3e8,bt='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',xt=_0x1b551c(0x1eb);function St(_0x363922){const _0x2f840a=_0x1b551c;return JSON['stringify'](_0x363922)[_0x2f840a(0x1b7)];}function Ct(_0x4b77e3){'@babel/helpers - typeof';const _0x3e9e63=_0x1b551c;return Ct=typeof Symbol=='function'&&typeof Symbol[_0x3e9e63(0x11d)]=='symbol'?function(_0x2b3e9d){return typeof _0x2b3e9d;}:function(_0x3c3888){const _0x36f51e=_0x3e9e63;return _0x3c3888&&typeof Symbol==_0x36f51e(0x185)&&_0x3c3888['constructor']===Symbol&&_0x3c3888!==Symbol[_0x36f51e(0x1f1)]?_0x36f51e(0x1b1):typeof _0x3c3888;},Ct(_0x4b77e3);}function wt(_0x386889,_0x1ce72a){const _0x3e5279=_0x1b551c;if(Ct(_0x386889)!=_0x3e5279(0x139)||!_0x386889)return _0x386889;var _0x5aa3f9=_0x386889[Symbol[_0x3e5279(0x329)]];if(_0x5aa3f9!==void 0x0){var _0x7a2a6=_0x5aa3f9[_0x3e5279(0x2ba)](_0x386889,_0x1ce72a||'default');if(Ct(_0x7a2a6)!='object')return _0x7a2a6;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1ce72a===_0x3e5279(0x30e)?String:Number)(_0x386889);}function Tt(_0x43da4d){const _0xb71e31=_0x1b551c;var _0x2f0d88=wt(_0x43da4d,'string');return Ct(_0x2f0d88)==_0xb71e31(0x1b1)?_0x2f0d88:_0x2f0d88+'';}function N(_0x51259e,_0x374c63,_0x393417){const _0x2d0cd4=_0x1b551c;return(_0x374c63=Tt(_0x374c63))in _0x51259e?Object[_0x2d0cd4(0x20d)](_0x51259e,_0x374c63,{'value':_0x393417,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x51259e[_0x374c63]=_0x393417,_0x51259e;}let P=function(_0x526938){const _0x2d47e3=_0x1b551c;return _0x526938[_0x2d47e3(0x12b)]='OTHER_CLIENT_EDITING',_0x526938[_0x2d47e3(0x288)]=_0x2d47e3(0x288),_0x526938[_0x2d47e3(0x1a3)]=_0x2d47e3(0x1a3),_0x526938[_0x2d47e3(0xea)]='CLOSE_ROOM',_0x526938['JOIN_ROOM_FAILED']=_0x2d47e3(0x2e3),_0x526938['SOCKET_FAILED_RETRY']=_0x2d47e3(0x131),_0x526938[_0x2d47e3(0x168)]=_0x2d47e3(0x168),_0x526938['SUBMIT_CHANGESET_TIMEOUT']=_0x2d47e3(0x2b8),_0x526938;}({});var F=class{constructor(){const _0x525724=_0x1b551c;N(this,_0x525724(0x26f),new _0x31bd3c()),N(this,_0x525724(0x27c),this[_0x525724(0x26f)][_0x525724(0x15b)]());}[_0x1b551c(0xe5)](_0x3a8250){const _0x210089=_0x1b551c;this[_0x210089(0x26f)][_0x210089(0x2bf)](_0x3a8250);}},Et=class{constructor(){const _0x4f89ee=_0x1b551c;N(this,_0x4f89ee(0x129),new _0x31bd3c()),N(this,'commentUpdate$',this['_commentUpdate$'][_0x4f89ee(0x15b)]());}[_0x1b551c(0x235)](_0x59bf72){const _0xee1a24=_0x1b551c;this[_0xee1a24(0x129)][_0xee1a24(0x2bf)](_0x59bf72);}};function I(_0x30ae9b,_0x223c78){return function(_0xed9569,_0x4081f6){_0x223c78(_0xed9569,_0x4081f6,_0x30ae9b);};}function L(_0x2a9c4c,_0x18fa6f,_0x18cbff,_0x4ee5d6){const _0x107613=_0x1b551c;var _0x4a5320=arguments[_0x107613(0x1b7)],_0x26ebd9=_0x4a5320<0x3?_0x18fa6f:_0x4ee5d6===null?_0x4ee5d6=Object[_0x107613(0x137)](_0x18fa6f,_0x18cbff):_0x4ee5d6,_0x564ce4;if(typeof Reflect==_0x107613(0x139)&&typeof Reflect[_0x107613(0x31d)]==_0x107613(0x185))_0x26ebd9=Reflect[_0x107613(0x31d)](_0x2a9c4c,_0x18fa6f,_0x18cbff,_0x4ee5d6);else{for(var _0x320fae=_0x2a9c4c['length']-0x1;_0x320fae>=0x0;_0x320fae--)(_0x564ce4=_0x2a9c4c[_0x320fae])&&(_0x26ebd9=(_0x4a5320<0x3?_0x564ce4(_0x26ebd9):_0x4a5320>0x3?_0x564ce4(_0x18fa6f,_0x18cbff,_0x26ebd9):_0x564ce4(_0x18fa6f,_0x18cbff))||_0x26ebd9);}return _0x4a5320>0x3&&_0x26ebd9&&Object[_0x107613(0x20d)](_0x18fa6f,_0x18cbff,_0x26ebd9),_0x26ebd9;}let R=class extends _0x507a94{constructor(_0x3227fc,_0x35153c){const _0x5c2e56=_0x1b551c;super(),this[_0x5c2e56(0x2a8)]=_0x3227fc,this['_userManagerService']=_0x35153c,N(this,_0x5c2e56(0x223),new Map()),N(this,_0x5c2e56(0x1fc),new _0x31bd3c()),this[_0x5c2e56(0x183)](_0x3db10(this[_0x5c2e56(0x2a8)][_0x5c2e56(0x170)](_0x1e7823[_0x5c2e56(0x250)])[_0x5c2e56(0x19b)](_0x1c83bc(_0x1cac64=>_0x1cac64[_0x5c2e56(0x1ca)]())),this['_univerInstanceService'][_0x5c2e56(0x170)](_0x1e7823[_0x5c2e56(0x334)])[_0x5c2e56(0x19b)](_0x1c83bc(_0x2e035d=>_0x2e035d[_0x5c2e56(0x1ca)]())),this[_0x5c2e56(0x2a8)][_0x5c2e56(0x170)](_0x1e7823[_0x5c2e56(0x304)])[_0x5c2e56(0x19b)](_0x1c83bc(_0x43fc2e=>_0x43fc2e[_0x5c2e56(0x1ca)]())))[_0x5c2e56(0x247)](_0x1a8674=>this[_0x5c2e56(0x2a7)](_0x1a8674)));}['waitForRoom$'](_0x518b64){const _0x3c6ad3=_0x1b551c;return this[_0x3c6ad3(0x223)][_0x3c6ad3(0x2bd)](_0x518b64)?_0x1298a7(this['_roomMembers'][_0x3c6ad3(0x1ee)](_0x518b64)):this['_roomCreated$'][_0x3c6ad3(0x19b)](_0x1c83bc(_0x18c49b=>{const _0xc36778=_0x3c6ad3;if(_0x18c49b===_0x518b64)return this[_0xc36778(0x223)][_0xc36778(0x1ee)](_0x18c49b);}));}[_0x1b551c(0x2dd)](_0x2bf1ed){const _0xd9e982=_0x1b551c;this['_userManagerService'][_0xd9e982(0x2dd)](_0x2bf1ed);}[_0x1b551c(0x214)](){return this['_userManagerService']['getCurrentUser']();}[_0x1b551c(0x101)](_0x3d51aa,_0x2f4632){const _0x2d2761=_0x1b551c;let _0xc67b44=this[_0x2d2761(0x223)][_0x2d2761(0x1ee)](_0x3d51aa);_0xc67b44||(_0xc67b44=new Dt(),this[_0x2d2761(0x223)][_0x2d2761(0x241)](_0x3d51aa,_0xc67b44),this['_roomCreated$'][_0x2d2761(0x2bf)](_0x3d51aa)),_0xc67b44[_0x2d2761(0x101)](_0x2f4632);}['removeMember'](_0x5d1f66,_0x5903b2){const _0x35f22c=_0x1b551c;let _0xd84882=this[_0x35f22c(0x223)][_0x35f22c(0x1ee)](_0x5d1f66);_0xd84882&&_0xd84882[_0x35f22c(0x31f)](_0x5903b2);}[_0x1b551c(0xe8)](_0x4c29d7){const _0xfbc9f9=_0x1b551c;return this[_0xfbc9f9(0x223)][_0xfbc9f9(0x1ee)](_0x4c29d7);}['getMember'](_0x56d5c0,_0x5769cb){const _0x41f5b5=_0x1b551c;let _0x17ada5=this[_0x41f5b5(0x223)][_0x41f5b5(0x1ee)](_0x56d5c0);if(_0x17ada5)return _0x17ada5[_0x41f5b5(0xde)](_0x5769cb);}[_0x1b551c(0x2a7)](_0x2a9888){const _0x45e437=_0x1b551c;let _0x35c632=this[_0x45e437(0x223)][_0x45e437(0x1ee)](_0x2a9888);_0x35c632&&(_0x35c632[_0x45e437(0x1f8)](),this[_0x45e437(0x223)]['delete'](_0x2a9888));}[_0x1b551c(0x1f8)](){const _0x22402d=_0x1b551c;this['_roomMembers'][_0x22402d(0x165)](_0x2ae463=>_0x2ae463[_0x22402d(0x1f8)]()),this[_0x22402d(0x223)]['clear'](),this[_0x22402d(0x1fc)][_0x22402d(0x2dc)]();}};R=L([I(0x0,_0x2277bb),I(0x1,_0x525df4(_0x565b67))],R);var Dt=class extends _0x507a94{constructor(..._0x3430dc){const _0x371994=_0x1b551c;super(..._0x3430dc),N(this,_0x371994(0x12e),new Map()),N(this,_0x371994(0x125),new _0x3670a7(this[_0x371994(0x12e)])),N(this,_0x371994(0x2eb),this[_0x371994(0x125)][_0x371994(0x15b)]());}[_0x1b551c(0x1f8)](){const _0x2b6f41=_0x1b551c;this[_0x2b6f41(0x12e)]['clear']();}['updateMember'](_0x20b2f4){const _0x3f6b6c=_0x1b551c;this[_0x3f6b6c(0x12e)][_0x3f6b6c(0x241)](_0x20b2f4[_0x3f6b6c(0x14f)],_0x20b2f4),this[_0x3f6b6c(0x23f)]();}[_0x1b551c(0x31f)](_0x150bbc){const _0xd6266a=_0x1b551c;this[_0xd6266a(0x12e)][_0xd6266a(0x1b3)](_0x150bbc);}[_0x1b551c(0xde)](_0x11561a){const _0x7a54ea=_0x1b551c;return this[_0x7a54ea(0x12e)][_0x7a54ea(0x1ee)](_0x11561a);}[_0x1b551c(0x21c)](){const _0x30e600=_0x1b551c;return Array[_0x30e600(0x294)](this[_0x30e600(0x12e)][_0x30e600(0x1c6)]());}[_0x1b551c(0x23f)](){const _0x2049ea=_0x1b551c;this[_0x2049ea(0x125)][_0x2049ea(0x2bf)](this[_0x2049ea(0x12e)]);}};let z=function(_0x41a9b1){const _0x4a458a=_0x1b551c;return _0x41a9b1[_0x41a9b1[_0x4a458a(0x191)]=0x0]=_0x4a458a(0x191),_0x41a9b1[_0x41a9b1[_0x4a458a(0x298)]=0x1]='JOINING',_0x41a9b1[_0x41a9b1['OFFLINE']=0x2]=_0x4a458a(0x252),_0x41a9b1[_0x41a9b1[_0x4a458a(0x230)]=0x3]=_0x4a458a(0x230),_0x41a9b1;}({});const Ot={[_0x2bede7[_0x1b551c(0x231)]]:_0x1b551c(0x1b6),[_0x2bede7[_0x1b551c(0x198)]]:'session.room-full',[_0x2bede7[_0x1b551c(0x25e)]]:_0x1b551c(0xe2),[_0x2bede7[_0x1b551c(0x256)]]:_0x1b551c(0x1de),[_0x2bede7[_0x1b551c(0x164)]]:_0x1b551c(0x2c0)};let kt=class extends _0x2c31d0{get['sessionStatus'](){const _0x531244=_0x1b551c;return this[_0x531244(0x1cd)][_0x531244(0x22a)]();}constructor(_0x1cef84,_0x2e2663,_0x408371,_0x5de370,_0x542b8f,_0x27a1b2,_0x25e988,_0x2bcb17){const _0x400527=_0x1b551c;super(),this[_0x400527(0x20e)]=_0x1cef84,this['_logService']=_0x408371,this[_0x400527(0x194)]=_0x5de370,this[_0x400527(0x1d7)]=_0x542b8f,this['_commentService']=_0x27a1b2,this[_0x400527(0x2db)]=_0x25e988,this[_0x400527(0x1b9)]=_0x2bcb17,N(this,'_sessionStatus$',new _0x3670a7(z[_0x400527(0x191)])),N(this,'sessionStatus$',this['_sessionStatus$'][_0x400527(0x15b)]()),N(this,_0x400527(0x26f),new _0x31bd3c()),N(this,'event$',this['_event$'][_0x400527(0x15b)]()),N(this,'_socket',void 0x0),N(this,_0x400527(0x10e),void 0x0),N(this,_0x400527(0x271),void 0x0),N(this,'_shouldReportTelemetry',!0x1),N(this,_0x400527(0x160),null),this[_0x400527(0x273)]=!!this['_telemetryService'],_0x2e2663[_0x400527(0x19b)](_0x1bb453(this[_0x400527(0x1da)]))[_0x400527(0x247)](_0x2e6031=>{const _0x2c0521=_0x400527;if(_0x2e6031!==void 0x0){if(this['_socket']=_0x2e6031,_0x2e6031)this[_0x2c0521(0xef)](_0x2e6031),this[_0x2c0521(0x10e)]=_0x2e6031[_0x2c0521(0x1d8)][_0x2c0521(0x247)](_0x422a99=>{const _0x11c45f=_0x2c0521;_0x422a99[_0x11c45f(0x18a)]===this[_0x11c45f(0x20e)]&&this[_0x11c45f(0x262)](_0x422a99);});else{var _0x3fe035;this[_0x2c0521(0x222)](),this['_sessionStatus$'][_0x2c0521(0x2bf)](z[_0x2c0521(0x252)]),(_0x3fe035=this['_socketMessageSubscription'])==null||_0x3fe035[_0x2c0521(0x2d5)](),this[_0x2c0521(0x10e)]=null;}}});}[_0x1b551c(0x2be)](){const _0x31c27f=_0x1b551c;var _0x5bed8e,_0x26ca3b;return(_0x5bed8e=(_0x26ca3b=this[_0x31c27f(0x16b)])==null?void 0x0:_0x26ca3b[_0x31c27f(0x14f)])==null?null:_0x5bed8e;}[_0x1b551c(0x1f8)](){const _0x596016=_0x1b551c;super[_0x596016(0x1f8)](),this['close'](),this['dispose$'][_0x596016(0x2bf)](),this[_0x596016(0x1da)][_0x596016(0x2dc)]();}[_0x1b551c(0x2fd)](){const _0xc61235=_0x1b551c;var _0x571d6d,_0x162a0d;this[_0xc61235(0x222)](),(_0x571d6d=this[_0xc61235(0x16b)])==null||_0x571d6d['send']({'cmd':_0x5cec66[_0xc61235(0x12a)],'data':{'roomID':this[_0xc61235(0x20e)]}}),(_0x162a0d=this[_0xc61235(0x16b)])==null||_0x162a0d[_0xc61235(0x2fd)](),this[_0xc61235(0x26f)][_0xc61235(0x2dc)](),this[_0xc61235(0x1cd)][_0xc61235(0x2dc)]();}[_0x1b551c(0x262)](_0x582d4b){const _0x149c71=_0x1b551c;_0x582d4b[_0x149c71(0x1bc)]===_0x5cec66[_0x149c71(0x100)]?this['_onJoinRoomEvent'](_0x582d4b):_0x582d4b['cmd']===_0x5cec66[_0x149c71(0x24c)]&&this[_0x149c71(0x18c)](_0x582d4b);}['_joinRoom'](_0x2ef8d6){const _0x346fd7=_0x1b551c;this[_0x346fd7(0x1cd)][_0x346fd7(0x2bf)](z[_0x346fd7(0x298)]),_0x2ef8d6[_0x346fd7(0x321)]({'cmd':_0x5cec66[_0x346fd7(0x100)],'routeKey':this[_0x346fd7(0x20e)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x1b551c(0x113)](_0x2fe25c){const _0x5afe25=_0x1b551c;var _0x2596ba;if(_0x2fe25c[_0x5afe25(0x24f)]in Ot){this[_0x5afe25(0x2db)][_0x5afe25(0xe5)]({'id':P[_0x5afe25(0x2e3)],'data':Ot[_0x2fe25c[_0x5afe25(0x24f)]]}),this[_0x5afe25(0x1cd)]['next'](z['OFFLINE']);return;}this[_0x5afe25(0x1cd)][_0x5afe25(0x2bf)](z[_0x5afe25(0x230)]);let _0x253764=(_0x2596ba=_0x2fe25c[_0x5afe25(0x16d)][_0x5afe25(0x2ac)][this['_unitID']])==null?void 0x0:_0x2596ba['members'];_0x253764&&_0x253764['forEach'](_0x2956b1=>this[_0x5afe25(0x1d7)][_0x5afe25(0x101)](this[_0x5afe25(0x20e)],_0x2956b1));}[_0x1b551c(0x18c)](_0x39e2a9){const _0x5211ce=_0x1b551c;try{let _0x5bebdb=_0x39e2a9[_0x5211ce(0x16d)];switch(_0x5bebdb[_0x5211ce(0x2f2)]){case _0x862348[_0x5211ce(0x320)]:this['_onUserJoin'](_0x5bebdb),this[_0x5211ce(0x26f)][_0x5211ce(0x2bf)](_0x5bebdb);break;case _0x862348['USERS_LEAVE']:this[_0x5211ce(0x335)](_0x5bebdb),this['_event$'][_0x5211ce(0x2bf)](_0x5bebdb);break;case _0x862348[_0x5211ce(0x1c4)]:case _0x862348[_0x5211ce(0x1a2)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x5211ce(0x18e)](),this[_0x5211ce(0x26f)][_0x5211ce(0x2bf)](_0x5bebdb);break;case _0x862348[_0x5211ce(0xe1)]:this[_0x5211ce(0x14d)][_0x5211ce(0x1dd)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x5bebdb)),this['_event$']['next'](_0x5bebdb);break;case _0x862348['COMMENT_UPDATE']:this[_0x5211ce(0xf5)]['onCommentUpdate'](_0x5bebdb[_0x5211ce(0x16d)]),this[_0x5211ce(0x26f)][_0x5211ce(0x2bf)](_0x5bebdb);break;default:this[_0x5211ce(0x26f)][_0x5211ce(0x2bf)](_0x5bebdb);}}catch(_0x3523ae){this[_0x5211ce(0x14d)][_0x5211ce(0x1dd)](_0x3523ae,_0x39e2a9);}}['_onUserJoin'](_0xd99152){const _0x329cd1=_0x1b551c;this['_memberService'][_0x329cd1(0x101)](this[_0x329cd1(0x20e)],_0xd99152[_0x329cd1(0x16d)]);}[_0x1b551c(0x335)](_0x8657fd){const _0x14da4b=_0x1b551c;this[_0x14da4b(0x1d7)]['removeMember'](this['_unitID'],_0x8657fd[_0x14da4b(0x16d)][_0x14da4b(0x14f)]);}async[_0x1b551c(0x321)](_0x204b4a,_0x352f11){const _0x2e2aff=_0x1b551c;if(this[_0x2e2aff(0x21f)]!==z[_0x2e2aff(0x230)]||!this[_0x2e2aff(0x16b)])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x204b4a['eventID']===_0x862348['SUBMIT_CHANGESET']&&(this[_0x2e2aff(0x229)](),this[_0x2e2aff(0x177)](_0x204b4a)),this[_0x2e2aff(0x16b)][_0x2e2aff(0x321)]({'cmd':_0x5cec66[_0x2e2aff(0x1ad)],'routeKey':_0x352f11,'routeType':'','data':_0x204b4a});}catch(_0x3d9e30){this[_0x2e2aff(0x14d)][_0x2e2aff(0x1dd)](_0x3d9e30);}}[_0x1b551c(0x229)](){const _0x4a4b12=_0x1b551c;var _0x25106e;this[_0x4a4b12(0x271)]=setTimeout(()=>{const _0x532beb=_0x4a4b12;this[_0x532beb(0x271)]=null,this[_0x532beb(0x2db)][_0x532beb(0xe5)]({'id':P[_0x532beb(0x2b8)]});},(_0x25106e=this['_configService'][_0x4a4b12(0x29b)](_0x4a4b12(0x140)))==null?gt:_0x25106e);}['_clearCollaborationTimeoutTimer'](){const _0x489a45=_0x1b551c;this[_0x489a45(0x271)]&&(clearTimeout(this[_0x489a45(0x271)]),this[_0x489a45(0x271)]=null);}[_0x1b551c(0x177)](_0x29ac2c){const _0xe88e86=_0x1b551c;if(!this[_0xe88e86(0x273)])return;let {data:_0x2a76f7}=_0x29ac2c,{unitID:_0x482cb4,changeset:_0x24a4e8}=_0x2a76f7,{mutations:_0x1046c2,type:_0x947bff}=_0x24a4e8;this[_0xe88e86(0x160)]={'unitId':_0x482cb4,'type':_0x947bff,'startTime':performance[_0xe88e86(0x105)](),'stopTime':0x0,'duration':0x0,'size':St(_0x1046c2)};}[_0x1b551c(0x2e1)](){const _0x41b349=_0x1b551c;if(this['_shouldReportTelemetry']){if(!this[_0x41b349(0x160)]){this[_0x41b349(0x14d)][_0x41b349(0x1dd)](_0x41b349(0x2f6),_0x41b349(0x186));return;}this[_0x41b349(0x160)][_0x41b349(0x150)]=performance['now'](),this['_telemetryInfo'][_0x41b349(0x257)]=this[_0x41b349(0x160)][_0x41b349(0x150)]-this['_telemetryInfo'][_0x41b349(0x1e1)],this[_0x41b349(0x1b9)][_0x41b349(0x11e)]('collaboration_new_changeset',this[_0x41b349(0x160)]),this[_0x41b349(0x160)]=null;}}[_0x1b551c(0x222)](){const _0x58b4dd=_0x1b551c;this[_0x58b4dd(0x160)]=null;}};kt=L([I(0x2,_0x391759),I(0x3,_0x18a450),I(0x4,_0x525df4(R)),I(0x5,_0x525df4(Et)),I(0x6,_0x525df4(F)),I(0x7,_0x244262(_0x52b3d6))],kt);const B=_0x304c6c(_0x1b551c(0x22f));function At(_0x256061){const _0xb9f986=_0x1b551c;return _0xb9f986(0x1fa)+_0x256061;}function jt(_0x293ca8){const _0x1371a7=_0x1b551c;let {unitID:_0x55be8b,mutations:_0x5b61a0}=_0x293ca8;return{'unitId':_0x55be8b,'subUnitId':_0x5b61a0[_0x1371a7(0x1b7)]>0x0?_0x5b61a0[0x0][_0x1371a7(0x19e)]['subUnitId']:null};}let V=class{constructor(_0x334d5a,_0x2f7a03,_0x457426){const _0x50704a=_0x1b551c;this[_0x50704a(0x2cb)]=_0x334d5a,this[_0x50704a(0x29c)]=_0x2f7a03,this[_0x50704a(0x1b0)]=_0x457426;}[_0x1b551c(0x142)](_0x612b0c){const _0x3d920b=_0x1b551c;var _0x4ef9f6,_0x4a1bd7;let _0xb40049=this[_0x3d920b(0x2cb)]['get'](_0xb505e3),{unitId:_0x53d3ce,subUnitId:_0x4d0a91}=jt(_0x612b0c),_0x1e0bad=_0xb40049==null?void 0x0:_0xb40049[_0x3d920b(0x14e)](_0x53d3ce)[_0x3d920b(0x153)](),_0x5b943a=(_0x4ef9f6=this[_0x3d920b(0x1b0)]['getUnit'](_0x53d3ce))==null||(_0x4ef9f6=_0x4ef9f6['getActiveSheet']())==null?void 0x0:_0x4ef9f6[_0x3d920b(0x1ba)]();if(_0x1e0bad[_0x3d920b(0x1b7)]===0x0||!_0x53d3ce||!_0x4d0a91)return;let _0x328c0e=[{'id':_0x2321f2['id'],'params':{'unitId':_0x53d3ce,'subUnitId':_0x5b943a,'selections':_0x2c9b93['deepClone'](_0x1e0bad)}}],_0x3f8711=this[_0x3d920b(0x29c)][_0x3d920b(0x275)](_0x612b0c,_0x328c0e);if(!_0x30a062(_0x3f8711))throw _0x3f8711[_0x3d920b(0x1dd)];let _0x2079b0=(_0x4a1bd7=_0x3f8711[_0x3d920b(0x232)][0x0])==null||(_0x4a1bd7=_0x4a1bd7[_0x3d920b(0x19e)])==null?void 0x0:_0x4a1bd7[_0x3d920b(0x175)];if(Array[_0x3d920b(0x127)](_0x2079b0)&&_0x2079b0['length']){if(_0x2079b0[_0x3d920b(0x1b7)]===_0x328c0e[0x0][_0x3d920b(0x19e)][_0x3d920b(0x175)][_0x3d920b(0x1b7)]&&_0x2079b0['every']((_0x492eef,_0x3536e9)=>_0x34a077['equals'](_0x492eef['range'],_0x328c0e[0x0]['params'][_0x3d920b(0x175)][_0x3536e9][_0x3d920b(0x1cc)])))return;this[_0x3d920b(0x2cb)][_0x3d920b(0x1ee)](_0x158d1a)['executeCommand'](_0x2321f2['id'],{'unitId':_0x53d3ce,'subUnitId':_0x5b943a,'selections':_0x2079b0});}}};V=L([I(0x0,_0x525df4(_0x4fe526)),I(0x1,_0x1ea2a6),I(0x2,_0x2277bb)],V);const Mt=_0x304c6c(_0x1b551c(0x1f5));let Nt=function(_0x1845f7){const _0x43776c=_0x1b551c;return _0x1845f7[_0x1845f7[_0x43776c(0x205)]=0x0]=_0x43776c(0x205),_0x1845f7[_0x1845f7['OTHER_CLIENTS_EDITING']=0x1]=_0x43776c(0x17d),_0x1845f7;}({});const H=_0x1b551c(0x32a);Symbol(H);const Pt={};function Ft(_0x4dc10b){const _0x472dc4=_0x1b551c;var _0x59a4a9;return!!((_0x59a4a9=_0x4dc10b[_0x472dc4(0x19e)])!=null&&_0x59a4a9[_0x472dc4(0x245)]);}const It=new Set([_0x4f7715['id']]);function Lt(_0x234b65,_0x1f6cbd,_0x352763,_0x8b7125,_0x562ea0){const _0x504910=_0x1b551c;var _0x186507,_0x17d539,_0x5a42c7,_0x196198;let _0x28d691=[];for(let _0x5b95db of _0x234b65){if(It[_0x504910(0x2bd)](_0x5b95db['id'])){if(_0x28d691[_0x504910(0x1b7)]>0x0)break;_0x28d691[_0x504910(0x23b)](_0x5b95db);break;}if(Ft(_0x5b95db)){if(_0x28d691['length']>0x0)break;_0x28d691[_0x504910(0x23b)](_0x5b95db);break;}_0x28d691[_0x504910(0x23b)](_0x5b95db);}let _0x26a9fa=(_0x186507=(_0x17d539=_0x562ea0[_0x504910(0x214)]())==null?void 0x0:_0x17d539[_0x504910(0x32e)])==null?_0x504910(0x10a):_0x186507,_0x1a5c11=(_0x5a42c7=(_0x196198=_0x562ea0[_0x504910(0x214)]())==null?void 0x0:_0x196198[_0x504910(0x14f)])==null?'unknown':_0x5a42c7;return{'changeset':{'unitID':_0x1f6cbd,'type':_0x35cd5f(_0x352763[_0x504910(0x2ef)](_0x1f6cbd)),'baseRev':_0x8b7125[_0x504910(0x2c9)](_0x1f6cbd),'revision':0x0,'userID':_0x26a9fa,'memberID':_0x1a5c11,'mutations':_0x28d691},'pendingMutations':_0x234b65[_0x504910(0x322)](_0x28d691[_0x504910(0x1b7)])};}function Rt(_0x4fe934,_0x3bd451,_0x1eafd9,_0x57352f,_0x415ad3){const _0x40ab47=_0x1b551c;var _0x720a16,_0x5835c6,_0x4235a7,_0x27a3e9;let _0x42a1a6=[_0x4fe934[_0x40ab47(0x133)]((_0x2a15d2,_0x53363a)=>{const _0xcaeaf8=_0x40ab47;var _0x26109a;let {id:_0x30b40f}=_0x2a15d2,{id:_0x57d4af,type:_0x3a2262}=_0x53363a,_0x9a22ff=(_0x26109a=_0x2a15d2[_0xcaeaf8(0x19e)])==null?{'actions':null}:_0x26109a,_0x5b15a6=_0x53363a[_0xcaeaf8(0x19e)];if(_0x30b40f&&_0x30b40f!==_0x57d4af)throw Error(_0xcaeaf8(0x166)+_0x30b40f+_0xcaeaf8(0xf4)+_0x57d4af+'.');return{..._0x2a15d2,'id':_0x57d4af,'type':_0x3a2262,'params':{'unitId':_0x5b15a6[_0xcaeaf8(0x303)],'textRanges':_0x5b15a6[_0xcaeaf8(0x323)],'actions':_0x123940[_0xcaeaf8(0x310)](_0x9a22ff['actions'],_0x5b15a6[_0xcaeaf8(0xdd)])}};},{})],_0x4675a1=(_0x720a16=(_0x5835c6=_0x415ad3['getCurrentUser']())==null?void 0x0:_0x5835c6[_0x40ab47(0x32e)])==null?_0x40ab47(0x10a):_0x720a16,_0x2e1a6c=(_0x4235a7=(_0x27a3e9=_0x415ad3[_0x40ab47(0x214)]())==null?void 0x0:_0x27a3e9['memberID'])==null?_0x40ab47(0x10a):_0x4235a7;return{'changeset':{'unitID':_0x3bd451,'type':_0x35cd5f(_0x1eafd9[_0x40ab47(0x2ef)](_0x3bd451)),'baseRev':_0x57352f['getCurrentRevOfUnit'](_0x3bd451),'revision':0x0,'userID':_0x4675a1,'memberID':_0x2e1a6c,'mutations':_0x42a1a6},'pendingMutations':[]};}function zt(_0x162b40,_0x18e77d){const _0x5bce6e=_0x1b551c;let _0x47a0fb=new _0x5cca94(0x1);return setTimeout(()=>_0x47a0fb[_0x5bce6e(0x2bf)](_0x18e77d),_0x162b40),_0x47a0fb[_0x5bce6e(0x15b)]()['pipe'](_0x3236cf(0x1));}var Bt,Vt,Ht;let U=function(_0x464571){const _0x4b4098=_0x1b551c;return _0x464571[_0x4b4098(0x1ef)]=_0x4b4098(0x2d6),_0x464571[_0x4b4098(0x278)]='synced',_0x464571[_0x4b4098(0x16f)]=_0x4b4098(0x20a),_0x464571[_0x4b4098(0x290)]='awaiting',_0x464571[_0x4b4098(0x27a)]=_0x4b4098(0x22d),_0x464571[_0x4b4098(0x2ec)]=_0x4b4098(0x302),_0x464571[_0x4b4098(0x1a3)]='conflict',_0x464571[_0x4b4098(0x252)]=_0x4b4098(0x18b),_0x464571;}({});const Ut=0x4e20,Wt=0x2bf20;var W=class{constructor(_0x18fa9f,_0x349bdb,_0x589793,_0x3f1825,_0x51dc4a,_0xe376ed,_0x1d4501,_0x267163,_0x38bcb9){const _0x532f34=_0x1b551c;this[_0x532f34(0x213)]=_0x18fa9f,this[_0x532f34(0x107)]=_0x349bdb,this['_handler']=_0x51dc4a,this[_0x532f34(0x19a)]=_0xe376ed,this['_undoRedoService']=_0x1d4501,this['_revisionService']=_0x267163,this[_0x532f34(0x19c)]=_0x38bcb9,N(this,_0x532f34(0x221),null),N(this,_0x532f34(0x21b),[]),this[_0x532f34(0x221)]=_0x589793,this[_0x532f34(0x21b)]=_0x3f1825;}[_0x1b551c(0x1a7)](_0x34b57d){const _0x583227=_0x1b551c;let _0xb8ba12=this[_0x583227(0xdc)][_0x583227(0x2c9)](this[_0x583227(0x213)]);return _0x34b57d[_0x583227(0x1ff)]>_0xb8ba12+0x1?(this[_0x583227(0x327)][_0x583227(0x297)]({'from':_0xb8ba12,'to':_0x34b57d[_0x583227(0x1ff)]-0x1}),!0x0):!0x1;}[_0x1b551c(0x2a1)](_0x5395b2){const _0x2847a1=_0x1b551c;this['_undoRedoService'][_0x2847a1(0x1c3)](this[_0x2847a1(0x213)],_0x5395b2);}[_0x1b551c(0x11f)](_0x2f7f3d){const _0x2949e7=_0x1b551c;var _0x4f41f8,_0x27a2f8;(_0x4f41f8=(_0x27a2f8=this[_0x2949e7(0x327)])[_0x2949e7(0x1ce)])==null||_0x4f41f8['call'](_0x27a2f8,_0x2f7f3d);}[_0x1b551c(0x264)](_0x458c3b){const _0x2ba94f=_0x1b551c;var _0x505402,_0xce2c36;return(_0x505402=(_0xce2c36=this[_0x2ba94f(0x327)])[_0x2ba94f(0x283)])==null?void 0x0:_0x505402[_0x2ba94f(0x2ba)](_0xce2c36,_0x458c3b);}[_0x1b551c(0x1bb)](_0x438f24){const _0x5a2949=_0x1b551c;var _0x3ec6fe,_0x234b86;return(_0x3ec6fe=(_0x234b86=this[_0x5a2949(0x327)])[_0x5a2949(0x116)])==null?void 0x0:_0x3ec6fe['call'](_0x234b86,_0x438f24);}[_0x1b551c(0x2af)](_0x400400){const _0x1b9597=_0x1b551c;var _0x379d35,_0x31918d,_0x588bb7;return(_0x379d35=(_0x31918d=(_0x588bb7=this[_0x1b9597(0x327)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x31918d[_0x1b9597(0x2ba)](_0x588bb7,_0x400400))==null?_0x400400:_0x379d35;}['_transformRemoteChangesetByStateCache'](_0x1a67d3){const _0x1b919c=_0x1b551c;var _0x2de80a,_0x3b4199,_0xe6dea8;return(_0x2de80a=(_0x3b4199=(_0xe6dea8=this[_0x1b919c(0x327)])[_0x1b919c(0x1a1)])==null?void 0x0:_0x3b4199[_0x1b919c(0x2ba)](_0xe6dea8,_0x1a67d3))==null?_0x1a67d3:_0x2de80a;}[_0x1b551c(0x19d)](_0x36b2d9){const _0x358888=_0x1b551c;if(this[_0x358888(0x107)]===_0x5c2ea6[_0x358888(0x334)]){let {unitID:_0x5ee5a2,mutations:_0x2d677b,memberID:_0x4311c3}=_0x36b2d9,_0x187e55=_0x2d677b['length']>0x0?_0x2d677b[0x0][_0x358888(0x19e)][_0x358888(0x323)]:[];if(Array[_0x358888(0x127)](_0x187e55)&&_0x187e55[_0x358888(0x1b7)]>0x0){var _0x2fec13,_0x336f3e;(_0x2fec13=(_0x336f3e=this[_0x358888(0x327)])[_0x358888(0x124)])==null||_0x2fec13['call'](_0x336f3e,{'unitID':_0x5ee5a2,'memberID':_0x4311c3,'textRanges':_0x187e55});}}}[_0x1b551c(0x2ff)](){const _0x54999c=_0x1b551c;var _0x41e30f;(_0x41e30f=this[_0x54999c(0x19c)])==null||_0x41e30f['updateOfflineData'](this[_0x54999c(0x213)],this[_0x54999c(0x107)],this[_0x54999c(0x221)],this['_pendingMutations']);}[_0x1b551c(0x265)](){const _0x51467f=_0x1b551c;return this[_0x51467f(0xdc)][_0x51467f(0x2c9)](this[_0x51467f(0x213)]);}['_incrementRevisionNumber'](){const _0x63bdd2=_0x1b551c;this[_0x63bdd2(0xdc)][_0x63bdd2(0x19f)](this[_0x63bdd2(0x213)]);}[_0x1b551c(0xe6)](_0x3ba8b3){const _0x33fdd6=_0x1b551c;let _0x3959fb=this[_0x33fdd6(0x2af)](_0x3ba8b3);_0x3959fb=this[_0x33fdd6(0x1e6)](_0x3959fb);let _0x4dd075=_0x2b4f4b(_0x3959fb[_0x33fdd6(0x102)],this[_0x33fdd6(0x19a)],{'fromCollab':!0x0});if(!_0x4dd075[_0x33fdd6(0x2d2)]){var _0x4f1f04;throw _0x4dd075[_0x33fdd6(0x1dd)]instanceof Error?_0x4dd075[_0x33fdd6(0x1dd)]:Error((_0x4f1f04=_0x4dd075['error'])==null?'[CollaborationState]:\x20apply\x20error!':_0x4f1f04);}this[_0x33fdd6(0x264)](_0x3959fb),this['_transformStateCache'](_0x3959fb),this[_0x33fdd6(0x2a1)](_0x3ba8b3),this[_0x33fdd6(0x11f)](_0x3959fb),this[_0x33fdd6(0x19d)](_0x3959fb),this[_0x33fdd6(0x308)]();}};let G=class extends W{constructor(_0x127eb4,_0x5835a7,_0x369c6e,_0x31c11d,_0x125435,_0x4e2e98,_0x4509b1,_0x1c26f4,_0x574497,_0x1e4ecb){const _0x51676b=_0x1b551c;super(_0x127eb4,_0x5835a7,null,[],_0x369c6e,_0x4509b1,_0x4e2e98,_0x31c11d,_0x1e4ecb),this[_0x51676b(0x2cb)]=_0x125435,this[_0x51676b(0x14d)]=_0x1c26f4,this[_0x51676b(0x29c)]=_0x574497,this[_0x51676b(0x2fa)]=_0x1e4ecb,N(this,_0x51676b(0x123),U[_0x51676b(0x278)]);}[_0x1b551c(0x2ed)](_0xbc29b2){const _0x9483fa=_0x1b551c;let _0x3b4818=this['_injector'][_0x9483fa(0x176)](K,this[_0x9483fa(0x213)],this[_0x9483fa(0x107)],[_0xbc29b2],this[_0x9483fa(0x327)]);return _0x3b4818[_0x9483fa(0x2b5)](),_0x3b4818['_updateLocalCache'](),_0x3b4818;}[_0x1b551c(0x25b)](_0x13e7be){const _0x1a3987=_0x1b551c;if(this[_0x1a3987(0x1a7)](_0x13e7be))return this['_injector']['createInstance'](Z,this['unitID'],this[_0x1a3987(0x107)],null,[],null,[_0x13e7be],this[_0x1a3987(0x327)]);try{let _0x5a6eb9=this[_0x1a3987(0x29c)]['transformMutationsWithChangeset'](_0x13e7be,[_0x195c0b]);if(_0x30a062(_0x5a6eb9)){let {c1Prime:_0xb2fece}=_0x5a6eb9;return this[_0x1a3987(0xe6)](_0xb2fece),this;}throw _0x5a6eb9['error'];}catch(_0x2843c8){return this[_0x1a3987(0x14d)][_0x1a3987(0x1dd)](_0x2843c8),this[_0x1a3987(0x2df)](!0x1);}}[_0x1b551c(0x2df)](_0x18d3cb){const _0xb040e8=_0x1b551c;return this['_injector'][_0xb040e8(0x176)](Y,this[_0xb040e8(0x213)],this[_0xb040e8(0x107)],null,[],this[_0xb040e8(0x327)],_0x18d3cb);}['onRemoteAck'](){const _0x1c9710=_0x1b551c;throw Error(_0x1c9710(0x196));}[_0x1b551c(0x2c5)](){const _0x56999c=_0x1b551c;throw Error(_0x56999c(0x270));}[_0x1b551c(0x27b)](){return this;}[_0x1b551c(0x1a0)](){const _0x137a99=_0x1b551c;return this[_0x137a99(0x2cb)][_0x137a99(0x176)](X,this[_0x137a99(0x213)],this[_0x137a99(0x107)],null,[],this[_0x137a99(0x327)]);}[_0x1b551c(0x15e)](){return this;}[_0x1b551c(0x2b3)](){const _0x3ffe9e=_0x1b551c;throw Error(_0x3ffe9e(0x28e));}[_0x1b551c(0x134)](){const _0xd734a0=_0x1b551c;let _0x329ccd=this[_0xd734a0(0xdc)][_0xd734a0(0x2c9)](this['unitID']);return this[_0xd734a0(0x327)][_0xd734a0(0x297)]({'from':_0x329ccd,'to':0x0}),this[_0xd734a0(0x2cb)]['createInstance'](Z,this[_0xd734a0(0x213)],this[_0xd734a0(0x107)],null,[],null,[],this[_0xd734a0(0x327)]);}};G=L([I(0x3,_0x525df4(_0x259edb)),I(0x4,_0x525df4(_0x4fe526)),I(0x5,_0x126452),I(0x6,_0x158d1a),I(0x7,_0x391759),I(0x8,_0x1ea2a6),I(0x9,_0x244262(B))],G);let K=Bt=class extends W{constructor(_0x3af61d,_0x1f4e4e,_0x318dcd,_0x2935e2,_0x54b3f0,_0xe438f1,_0x43e776,_0xfd19b2,_0x541dd4,_0x165563,_0x2f7a11,_0x3204be,_0x3507c0,_0xeb4f3f){const _0x1d9696=_0x1b551c;super(_0x3af61d,_0x1f4e4e,null,_0x318dcd,_0x2935e2,_0x541dd4,_0x3507c0,_0xe438f1,_0xeb4f3f),this[_0x1d9696(0x2cb)]=_0x54b3f0,this[_0x1d9696(0x1d7)]=_0x43e776,this['_logService']=_0xfd19b2,this[_0x1d9696(0x194)]=_0x165563,this[_0x1d9696(0x29c)]=_0x2f7a11,this[_0x1d9696(0x2a8)]=_0x3204be,N(this,_0x1d9696(0x123),U[_0x1d9696(0x16f)]),N(this,_0x1d9696(0x253),null),N(this,_0x1d9696(0x2cf),null);}[_0x1b551c(0x2ed)](_0x1eeef3){const _0xe7d2b7=_0x1b551c;return this[_0xe7d2b7(0x21b)][_0xe7d2b7(0x23b)](_0x1eeef3),this['_updateLocalCache'](),this;}[_0x1b551c(0x25b)](_0x19794a){const _0x320a38=_0x1b551c;if(this[_0x320a38(0x1a7)](_0x19794a))return this[_0x320a38(0x1b4)](),this['_injector'][_0x320a38(0x176)](Z,this[_0x320a38(0x213)],this[_0x320a38(0x107)],null,this['_pendingMutations'],null,[_0x19794a],this[_0x320a38(0x327)]);try{let _0x1dedf6=this[_0x320a38(0x29c)][_0x320a38(0x275)](_0x19794a,this[_0x320a38(0x21b)]);if(_0x30a062(_0x1dedf6)){let {c1Prime:_0x3902f5,m2Prime:_0x218c30}=_0x1dedf6;this[_0x320a38(0xe6)](_0x3902f5);let _0x5ea34a=this[_0x320a38(0x2cb)][_0x320a38(0x176)](Bt,this[_0x320a38(0x213)],this[_0x320a38(0x107)],_0x218c30,this[_0x320a38(0x327)]);this['_clearScheduledTask']();let _0x3a5095=new Date()[_0x320a38(0x147)](),_0x152758=this[_0x320a38(0x253)]?Math[_0x320a38(0x324)](this[_0x320a38(0x253)]-_0x3a5095,0x0):this['_getSendChangesetTimeout']();return _0x5ea34a[_0x320a38(0x2b5)](_0x152758),_0x5ea34a;}throw _0x1dedf6[_0x320a38(0x1dd)];}catch(_0x2a02ca){return this[_0x320a38(0x14d)][_0x320a38(0x1dd)](_0x2a02ca),this[_0x320a38(0x2df)](!0x1);}}[_0x1b551c(0x1dc)](){throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x1b551c(0x2c5)](){throw Error('[PendingState]:\x20received\x20rejection.');}[_0x1b551c(0x27b)](){return this;}[_0x1b551c(0x1a0)](){const _0x13e72c=_0x1b551c;return this[_0x13e72c(0x1b4)](),this['_injector'][_0x13e72c(0x176)](X,this[_0x13e72c(0x213)],this['type'],null,this[_0x13e72c(0x21b)],this[_0x13e72c(0x327)]);}[_0x1b551c(0x15e)](){return this;}[_0x1b551c(0x2b5)](_0x1dcd77){const _0x2e447c=_0x1b551c;let _0x268338=_0x1dcd77==null?this[_0x2e447c(0x193)]():_0x1dcd77;this[_0x2e447c(0x253)]=new Date()[_0x2e447c(0x147)]()+_0x268338,this['_sendingTimer']=setTimeout(()=>{const _0x3ed86e=_0x2e447c;this[_0x3ed86e(0x1b4)]();let _0x5254e7=null;switch(this[_0x3ed86e(0x107)]){case _0x5c2ea6['UNIVER_SHEET']:_0x5254e7=Lt(this[_0x3ed86e(0x21b)],this[_0x3ed86e(0x213)],this[_0x3ed86e(0x2a8)],this[_0x3ed86e(0xdc)],this[_0x3ed86e(0x1d7)]);break;case _0x5c2ea6[_0x3ed86e(0x334)]:_0x5254e7=this[_0x3ed86e(0x21b)][_0x3ed86e(0x189)](_0x2bb064=>_0x2bb064['id']===_0x15b31c['id'])?Rt(this[_0x3ed86e(0x21b)],this[_0x3ed86e(0x213)],this[_0x3ed86e(0x2a8)],this[_0x3ed86e(0xdc)],this[_0x3ed86e(0x1d7)]):Lt(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this[_0x3ed86e(0xdc)],this[_0x3ed86e(0x1d7)]);break;default:throw Error(_0x3ed86e(0x1be)+this[_0x3ed86e(0x107)]+_0x3ed86e(0x1d6));}let {changeset:_0x3c1a41,pendingMutations:_0x4b3c61}=_0x5254e7;this[_0x3ed86e(0x327)]['onSendChangeset'](_0x3c1a41);let _0x5a7d8d=_0x4b3c61[_0x3ed86e(0x1b7)]?this['_injector']['createInstance'](J,this[_0x3ed86e(0x213)],this[_0x3ed86e(0x107)],_0x3c1a41,_0x4b3c61,this['_handler'],void 0x0):this[_0x3ed86e(0x2cb)][_0x3ed86e(0x176)](q,this[_0x3ed86e(0x213)],this['type'],_0x3c1a41,this['_handler']);_0x5a7d8d[_0x3ed86e(0x2ff)](),this[_0x3ed86e(0x327)][_0x3ed86e(0x1f9)](this,_0x5a7d8d);},_0x268338);}['_getSendChangesetTimeout'](){const _0x4ba2b5=_0x1b551c;var _0x265e5c;let _0x534fa3=this[_0x4ba2b5(0x194)][_0x4ba2b5(0x29b)](H);return(_0x265e5c=_0x534fa3==null?void 0x0:_0x534fa3[_0x4ba2b5(0x13e)])==null?0x7d0:_0x265e5c;}[_0x1b551c(0x2b3)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1b551c(0x1b4)](){const _0x41427c=_0x1b551c;this['_sendingTimer']!=null&&(clearTimeout(this[_0x41427c(0x2cf)]),this[_0x41427c(0x2cf)]=null);}[_0x1b551c(0x2df)](_0x45fc92){const _0x139e5a=_0x1b551c;return this[_0x139e5a(0x1b4)](),this[_0x139e5a(0x2cb)]['createInstance'](Y,this[_0x139e5a(0x213)],this[_0x139e5a(0x107)],null,this[_0x139e5a(0x21b)],this[_0x139e5a(0x327)],_0x45fc92);}};K=Bt=L([I(0x4,_0x525df4(_0x4fe526)),I(0x5,_0x525df4(_0x259edb)),I(0x6,_0x525df4(R)),I(0x7,_0x391759),I(0x8,_0x158d1a),I(0x9,_0x18a450),I(0xa,_0x1ea2a6),I(0xb,_0x2277bb),I(0xc,_0x126452),I(0xd,_0x244262(B))],K);let q=Vt=class extends W{constructor(_0x4fbea9,_0x41c5c7,_0x383ae3,_0xd00b26,_0x1098b7,_0x2e874c,_0x5bd2d1,_0x3f6b27,_0x2730a9,_0x455be7,_0x432a3e){const _0x3837fa=_0x1b551c;super(_0x4fbea9,_0x41c5c7,_0x383ae3,[],_0xd00b26,_0x5bd2d1,_0x455be7,_0x2e874c,_0x432a3e),this['_injector']=_0x1098b7,this[_0x3837fa(0x14d)]=_0x3f6b27,this['_transformService']=_0x2730a9,N(this,_0x3837fa(0x123),U['AWAITING']),N(this,_0x3837fa(0x2ad),0x0),N(this,_0x3837fa(0x1ae),0x0),N(this,_0x3837fa(0xed),void 0x0),N(this,_0x3837fa(0xfc),void 0x0);}[_0x1b551c(0x2ed)](_0x3cfd52){const _0x245356=_0x1b551c;this['_clearScheduledTask']();let _0x27b4dc=this[_0x245356(0x2cb)]['createInstance'](J,this[_0x245356(0x213)],this[_0x245356(0x107)],this[_0x245356(0x221)],[_0x3cfd52],this[_0x245356(0x327)],this['_resendTimer']);return _0x27b4dc[_0x245356(0x2ff)](),_0x27b4dc;}[_0x1b551c(0x25b)](_0x2ce94e){const _0x137a3b=_0x1b551c;if(this[_0x137a3b(0x1a7)](_0x2ce94e))return this[_0x137a3b(0x1b4)](),this['_injector'][_0x137a3b(0x176)](Z,this[_0x137a3b(0x213)],this[_0x137a3b(0x107)],this[_0x137a3b(0x221)],[],null,[_0x2ce94e],this[_0x137a3b(0x327)]);try{let _0xeb185d=this[_0x137a3b(0x29c)][_0x137a3b(0x1b2)]([_0x2ce94e],[this[_0x137a3b(0x221)]],!0x1);if(_0x4668cd(_0xeb185d)){let {c1Prime:_0x5dd667,c2Prime:_0x59a434}=_0xeb185d;this['_executeRemoteChangeset'](_0x5dd667[0x0]),_0x59a434[0x0][_0x137a3b(0x118)]=this['_getCurrentRevision'](),this[_0x137a3b(0x1b4)]();let _0x361e39=this[_0x137a3b(0x2cb)][_0x137a3b(0x176)](Vt,this['unitID'],this['type'],_0x59a434[0x0],this['_handler']);return _0x361e39[_0x137a3b(0x2ff)](),_0x361e39;}return this[_0x137a3b(0x2df)](!0x1);}catch(_0x42d0bf){return this[_0x137a3b(0x14d)][_0x137a3b(0x1dd)](_0x42d0bf),this['_onConflict'](!0x1);}}[_0x1b551c(0x1dc)](_0x533441){const _0x17abd1=_0x1b551c;this[_0x17abd1(0x1b4)]();let _0xe93cc6=this['_revisionService'][_0x17abd1(0x2c9)](this[_0x17abd1(0x213)]);if(_0x533441[_0x17abd1(0x1ff)]<_0xe93cc6-0x1)return this;if(this[_0x17abd1(0x1a7)](_0x533441))return this[_0x17abd1(0x2cb)][_0x17abd1(0x176)](Z,this['unitID'],this['type'],null,[],this[_0x17abd1(0x221)],[],this['_handler']);this[_0x17abd1(0x308)]();let _0x33b5d4=this[_0x17abd1(0x2cb)][_0x17abd1(0x176)](G,this['unitID'],this['type'],this['_handler']);return _0x33b5d4[_0x17abd1(0x2ff)](),_0x33b5d4;}['onRemoteRej'](_0x45a991){const _0x3f76b5=_0x1b551c;return this[_0x3f76b5(0x2df)](!!(_0x45a991!=null&&_0x45a991[_0x3f76b5(0x2d7)]));}[_0x1b551c(0x27b)](_0x13f164){const _0x1e55ef=_0x1b551c;return this[_0x1e55ef(0x1ae)]>Wt?this[_0x1e55ef(0x1a0)]():(this[_0x1e55ef(0xed)]=zt(this[_0x1e55ef(0x2ad)],{'timeout':this[_0x1e55ef(0x2ad)],'reqId':_0x13f164['reqId']}),this[_0x1e55ef(0xfc)]=this['_resendTimer'][_0x1e55ef(0x247)](({reqId:_0x2155a4,timeout:_0x2b05e5})=>{const _0x2f9c54=_0x1e55ef;this[_0x2f9c54(0x2e0)](_0x2155a4,_0x2b05e5);}),this);}['toggleOffline'](){const _0x5e15ba=_0x1b551c;return this[_0x5e15ba(0x1b4)](),this['_injector'][_0x5e15ba(0x176)](X,this['unitID'],this[_0x5e15ba(0x107)],this[_0x5e15ba(0x221)],[],this[_0x5e15ba(0x327)]);}[_0x1b551c(0x15e)](){return this;}[_0x1b551c(0x2b3)](){const _0xab6055=_0x1b551c;this[_0xab6055(0x327)]['onSendChangeset'](this[_0xab6055(0x221)]);}[_0x1b551c(0x2df)](_0x4b5b7d){const _0x396b22=_0x1b551c;return this[_0x396b22(0x1b4)](),this[_0x396b22(0x2cb)]['createInstance'](Y,this[_0x396b22(0x213)],this[_0x396b22(0x107)],this[_0x396b22(0x221)],[],this[_0x396b22(0x327)],_0x4b5b7d);}[_0x1b551c(0x2e0)](_0x2eda11,_0x2eb911){const _0xfa216f=_0x1b551c;var _0x44b671;_0x2eda11===((_0x44b671=this[_0xfa216f(0x221)])==null?void 0x0:_0x44b671[_0xfa216f(0x259)])&&(this[_0xfa216f(0x2b3)](),this[_0xfa216f(0x2ad)]=_0x2eb911===0x0?0x3e8:Math['min'](_0x2eb911*0x2,Ut),this[_0xfa216f(0x1ae)]+=this[_0xfa216f(0x2ad)]);}[_0x1b551c(0x1b4)](){const _0x7dda68=_0x1b551c;var _0x5549e1;(_0x5549e1=this[_0x7dda68(0xfc)])==null||_0x5549e1['unsubscribe'](),this[_0x7dda68(0x2ad)]=0x0,this[_0x7dda68(0x1ae)]=0x0;}};function _0x4b15(_0x26efb7,_0x206204){_0x26efb7=_0x26efb7-0xdb;const _0x573a70=_0x573a();let _0x4b1558=_0x573a70[_0x26efb7];return _0x4b1558;}q=Vt=L([I(0x4,_0x525df4(_0x4fe526)),I(0x5,_0x525df4(_0x259edb)),I(0x6,_0x158d1a),I(0x7,_0x391759),I(0x8,_0x1ea2a6),I(0x9,_0x126452),I(0xa,_0x244262(B))],q);let J=Ht=class extends W{constructor(_0x397f89,_0x7487fe,_0x5a37bf,_0x7349b,_0x51ad10,_0xcc0d32,_0x317f8f,_0xad3487,_0xd9eea0,_0x1a6b4a,_0x407995,_0x1baa44,_0x16a8e6){const _0x48956e=_0x1b551c;super(_0x397f89,_0x7487fe,_0x5a37bf,_0x7349b,_0x51ad10,_0xd9eea0,_0x1baa44,_0xad3487,_0x16a8e6),this['_injector']=_0x317f8f,this['_logService']=_0x1a6b4a,this[_0x48956e(0x29c)]=_0x407995,this[_0x48956e(0x2fa)]=_0x16a8e6,N(this,_0x48956e(0x123),U[_0x48956e(0x27a)]),N(this,_0x48956e(0x2ad),0x0),N(this,_0x48956e(0x1ae),0x0),N(this,_0x48956e(0xed),void 0x0),N(this,_0x48956e(0xfc),void 0x0),_0xcc0d32&&(this['_resendTimer']=_0xcc0d32,this[_0x48956e(0xfc)]=this[_0x48956e(0xed)][_0x48956e(0x247)](({reqId:_0x450ae0,timeout:_0x230f40})=>{this['_resendWithTimeout'](_0x450ae0,_0x230f40);}));}['appendMutation'](_0x1440dd){const _0x160a1c=_0x1b551c;return this[_0x160a1c(0x21b)][_0x160a1c(0x23b)](_0x1440dd),this;}[_0x1b551c(0x25b)](_0x26efe9){const _0x251bd4=_0x1b551c;if(this['_checkMissing'](_0x26efe9))return this['_clearScheduledTask'](),this[_0x251bd4(0x2cb)][_0x251bd4(0x176)](Z,this['unitID'],this['type'],this[_0x251bd4(0x221)],this[_0x251bd4(0x21b)],null,[_0x26efe9],this[_0x251bd4(0x327)]);try{let _0x3ca935=this[_0x251bd4(0x29c)][_0x251bd4(0x1b2)]([_0x26efe9],[this[_0x251bd4(0x221)]],!0x1);if(_0x4668cd(_0x3ca935)){let {c1Prime:_0x20ce05,c2Prime:_0x332c14}=_0x3ca935,_0x2b84a4=this[_0x251bd4(0x29c)][_0x251bd4(0x275)](_0x20ce05[0x0],this[_0x251bd4(0x21b)]);if(_0x30a062(_0x2b84a4)){let {c1Prime:_0x3d7158,m2Prime:_0x1fd991}=_0x2b84a4;return this[_0x251bd4(0xe6)](_0x3d7158),_0x332c14[0x0][_0x251bd4(0x118)]=this['_getCurrentRevision'](),this[_0x251bd4(0x1b4)](),this[_0x251bd4(0x2cb)][_0x251bd4(0x176)](Ht,this[_0x251bd4(0x213)],this[_0x251bd4(0x107)],_0x332c14[0x0],_0x1fd991,this[_0x251bd4(0x327)],void 0x0);}throw _0x2b84a4[_0x251bd4(0x1dd)];}throw _0x3ca935[_0x251bd4(0x1dd)];}catch(_0x5491b3){return this[_0x251bd4(0x14d)][_0x251bd4(0x1dd)](_0x5491b3),this[_0x251bd4(0x2df)](!0x1);}}['onRemoteAck'](_0x44e3d5){const _0x273a65=_0x1b551c;if(this[_0x273a65(0x1b4)](),this[_0x273a65(0x1a7)](_0x44e3d5))return this[_0x273a65(0x2cb)][_0x273a65(0x176)](Z,this[_0x273a65(0x213)],this[_0x273a65(0x107)],null,this[_0x273a65(0x21b)],this['_awaitingChangeset'],[],this[_0x273a65(0x327)]);this[_0x273a65(0x308)]();let _0x5b8a1b=this[_0x273a65(0x2cb)][_0x273a65(0x176)](K,this['unitID'],this[_0x273a65(0x107)],this[_0x273a65(0x21b)],this[_0x273a65(0x327)]);return _0x5b8a1b['_schedule'](),_0x5b8a1b[_0x273a65(0x2ff)](),_0x5b8a1b;}[_0x1b551c(0x2c5)](_0x576a40){const _0x5c99e5=_0x1b551c;return this[_0x5c99e5(0x2df)](!!(_0x576a40!=null&&_0x576a40[_0x5c99e5(0x2d7)]));}[_0x1b551c(0x27b)](_0xf508c9){const _0x48c671=_0x1b551c;return this[_0x48c671(0x1ae)]>Wt?this[_0x48c671(0x1a0)]():(this['_resendTimer']=zt(this['_resendTimeout'],{'timeout':this[_0x48c671(0x2ad)],'reqId':_0xf508c9['reqId']}),this['_sender']=this['_resendTimer'][_0x48c671(0x247)](({reqId:_0x32af79,timeout:_0x280dcd})=>{const _0x556e46=_0x48c671;this[_0x556e46(0x2e0)](_0x32af79,_0x280dcd);}),this);}[_0x1b551c(0x1a0)](){const _0xdc988c=_0x1b551c;return this[_0xdc988c(0x1b4)](),this[_0xdc988c(0x2cb)][_0xdc988c(0x176)](X,this[_0xdc988c(0x213)],this['type'],this[_0xdc988c(0x221)],this[_0xdc988c(0x21b)],this[_0xdc988c(0x327)]);}[_0x1b551c(0x15e)](){return this;}[_0x1b551c(0x2b3)](){const _0x792927=_0x1b551c;this['_handler']['onSendChangeset'](this[_0x792927(0x221)]);}[_0x1b551c(0x2df)](_0x568a7f){const _0x32a019=_0x1b551c;return this[_0x32a019(0x1b4)](),this[_0x32a019(0x2cb)][_0x32a019(0x176)](Y,this[_0x32a019(0x213)],this[_0x32a019(0x107)],null,this[_0x32a019(0x21b)],this['_handler'],_0x568a7f);}[_0x1b551c(0x2e0)](_0x231bc0,_0x4c4b2f){const _0x5c0e10=_0x1b551c;var _0x54c07e;_0x231bc0===((_0x54c07e=this[_0x5c0e10(0x221)])==null?void 0x0:_0x54c07e['reqId'])&&(this[_0x5c0e10(0x2b3)](),this[_0x5c0e10(0x2ad)]=_0x4c4b2f===0x0?0x3e8:Math[_0x5c0e10(0x248)](_0x4c4b2f*0x2,Ut),this[_0x5c0e10(0x1ae)]+=this[_0x5c0e10(0x2ad)]);}[_0x1b551c(0x1b4)](){const _0x1f4e4f=_0x1b551c;var _0x404085;(_0x404085=this[_0x1f4e4f(0xfc)])==null||_0x404085[_0x1f4e4f(0x2d5)](),this[_0x1f4e4f(0x2ad)]=0x0,this[_0x1f4e4f(0x1ae)]=0x0;}};J=Ht=L([I(0x6,_0x525df4(_0x4fe526)),I(0x7,_0x525df4(_0x259edb)),I(0x8,_0x158d1a),I(0x9,_0x391759),I(0xa,_0x1ea2a6),I(0xb,_0x126452),I(0xc,_0x244262(B))],J);let Y=class extends W{constructor(_0x21e125,_0x1b3287,_0x49ec3e,_0x36f90c,_0x2b114c,_0xe73585=!0x1,_0x3c7bed,_0x17b532,_0x1cc161,_0x5be26d,_0x380d23,_0x4df25e,_0x1cf040){const _0x1f5923=_0x1b551c;super(_0x21e125,_0x1b3287,_0x49ec3e,_0x36f90c,_0x2b114c,_0x17b532,_0x1cc161,_0x5be26d,_0x1cf040),this[_0x1f5923(0x1f6)]=_0xe73585,this[_0x1f5923(0x2de)]=_0x3c7bed,this[_0x1f5923(0x10b)]=_0x380d23,this[_0x1f5923(0x2db)]=_0x4df25e,this[_0x1f5923(0x2fa)]=_0x1cf040,N(this,'status',U[_0x1f5923(0x1a3)]),this[_0x1f5923(0x208)](),this[_0x1f5923(0x2f7)](),this[_0x1f5923(0x29e)]();}[_0x1b551c(0x2ed)](){return this;}[_0x1b551c(0x25b)](){return this;}[_0x1b551c(0x1dc)](){return this;}['onRemoteRej'](){return this;}[_0x1b551c(0x27b)](){return this;}[_0x1b551c(0x1a0)](){return this;}[_0x1b551c(0x15e)](){return this;}[_0x1b551c(0x2b3)](){const _0x1f01ff=_0x1b551c;throw Error(_0x1f01ff(0x2b7));}['_clearLocalCache'](){const _0x2deaf9=_0x1b551c;var _0x2b687a;(_0x2b687a=this['_localCacheService'])==null||_0x2b687a[_0x2deaf9(0x1f3)](this['unitID'],this[_0x2deaf9(0x107)],null,[]);}[_0x1b551c(0x208)](){const _0x53df0c=_0x1b551c;this['_isPermissionRej']?this['_collaborationUIEventService'][_0x53df0c(0xe5)]({'id':P['PERMISSION_DENIED']}):this[_0x53df0c(0x2db)][_0x53df0c(0xe5)]({'id':P['CONFLICT']});}['_disableEditing'](){const _0xd3afc3=_0x1b551c;this[_0xd3afc3(0x2de)][_0xd3afc3(0x13b)](new _0x1d3cb6(this[_0xd3afc3(0x213)])['id'],!0x1);}};Y=L([I(0x6,_0x525df4(_0x16e820)),I(0x7,_0x158d1a),I(0x8,_0x126452),I(0x9,_0x525df4(_0x259edb)),I(0xa,_0x525df4(_0x3dcdf2)),I(0xb,_0x525df4(F)),I(0xc,_0x244262(B))],Y);let X=class extends W{constructor(_0x31aba3,_0x2e73f5,_0x3054e5,_0x2f40b3,_0x2c32d8,_0x1c79e3,_0x3804ae,_0x25e5a3,_0x136944,_0x540dd4){const _0x44865e=_0x1b551c;super(_0x31aba3,_0x2e73f5,_0x3054e5,_0x2f40b3,_0x2c32d8,_0x25e5a3,_0x136944,_0x3804ae,_0x540dd4),this[_0x44865e(0x2cb)]=_0x1c79e3,N(this,_0x44865e(0x123),U[_0x44865e(0x252)]);}[_0x1b551c(0x2ed)](_0x31dbb5){const _0x236e12=_0x1b551c;return this[_0x236e12(0x21b)][_0x236e12(0x23b)](_0x31dbb5),this[_0x236e12(0x2ff)](),this;}[_0x1b551c(0x25b)](_0x43976b){const _0x1ee161=_0x1b551c;throw Error(_0x1ee161(0x249));}['onRemoteAck'](){const _0x556b56=_0x1b551c;throw Error(_0x556b56(0x104));}['onRemoteRej'](){const _0x1dd957=_0x1b551c;throw Error(_0x1dd957(0x17a));}['onRemoteRetry'](){return this;}[_0x1b551c(0x1a0)](){return this;}['toggleOnline'](){const _0xfdfd91=_0x1b551c;let {_injector:_0x50e0d1,_pendingMutations:_0x80a86b,_awaitingChangeset:_0x148f3a,unitID:_0x15259c,_handler:_0x40f0ef,type:_0x4581ae}=this,_0x18690d=Gt(_0x50e0d1,_0x15259c,_0x4581ae,_0x148f3a,_0x80a86b,_0x40f0ef);return _0x18690d instanceof K?_0x18690d[_0xfdfd91(0x2b5)]():(_0x18690d instanceof J||_0x18690d instanceof q)&&_0x18690d['resend'](),_0x18690d;}[_0x1b551c(0x2b3)](){const _0x18116e=_0x1b551c;throw Error(_0x18116e(0x224));}};X=L([I(0x5,_0x525df4(_0x4fe526)),I(0x6,_0x525df4(_0x259edb)),I(0x7,_0x158d1a),I(0x8,_0x126452),I(0x9,_0x244262(B))],X);let Z=class extends W{constructor(_0x47567b,_0x22bfb5,_0x346df3,_0x4a2a37,_0x269e98,_0x4edc70,_0x5144d1,_0x36017,_0x1bfabc,_0x57a813,_0x55290b,_0x538b34,_0x36c16a,_0x3d6bb6){const _0x27c02=_0x1b551c;super(_0x47567b,_0x22bfb5,_0x346df3,_0x4a2a37,_0x5144d1,_0x55290b,_0x538b34,_0x1bfabc,_0x3d6bb6),this[_0x27c02(0x274)]=_0x269e98,this['_queuedRemoteChangesets']=_0x4edc70,this[_0x27c02(0x2cb)]=_0x36017,this['_logService']=_0x57a813,this['_transformService']=_0x36c16a,this['localCacheService']=_0x3d6bb6,N(this,_0x27c02(0x123),U[_0x27c02(0x2ec)]);}[_0x1b551c(0x154)](_0x13e52c){const _0x205efe=_0x1b551c;try{let _0x305542=[..._0x13e52c,...this[_0x205efe(0x1d5)]],_0x1d158d=[this[_0x205efe(0x221)]||this[_0x205efe(0x274)]][_0x205efe(0x1e0)](_0x1814ff=>!!_0x1814ff),_0x37e2af,_0x4e2829;if(_0x1d158d[_0x205efe(0x1b7)]){let _0x2e28a4=this[_0x205efe(0x29c)][_0x205efe(0x1b2)](_0x305542,_0x1d158d,!0x1);if(!_0x4668cd(_0x2e28a4))throw _0x2e28a4['error'];_0x37e2af=_0x2e28a4[_0x205efe(0x138)],_0x4e2829=_0x2e28a4[_0x205efe(0x251)];}else _0x37e2af=_0x305542,_0x4e2829=[];let _0xa62893=this[_0x205efe(0x21b)];_0x37e2af[_0x205efe(0x165)](_0x3517c5=>{const _0x1359b7=_0x205efe;let _0x5e4873;if(_0xa62893[_0x1359b7(0x1b7)]){let _0x3106ee=this['_transformService'][_0x1359b7(0x275)](_0x3517c5,_0xa62893);if(!_0x30a062(_0x3106ee))throw _0x3106ee[_0x1359b7(0x1dd)];_0x5e4873=_0x3106ee[_0x1359b7(0x138)],_0xa62893=_0x3106ee['m2Prime'];}else _0x5e4873=_0x3517c5;this[_0x1359b7(0xe6)](_0x5e4873);}),this[_0x205efe(0x274)]&&this[_0x205efe(0x308)](),this[_0x205efe(0x221)]&&_0x4e2829[_0x205efe(0x1b7)]&&(_0x4e2829[0x0][_0x205efe(0x118)]=this[_0x205efe(0x265)]());let _0x3530a7;if(this['_awaitingChangeset']&&_0xa62893[_0x205efe(0x1b7)]!==0x0)_0x3530a7=this['_injector']['createInstance'](J,this[_0x205efe(0x213)],this[_0x205efe(0x107)],_0x4e2829[0x0],_0xa62893,this[_0x205efe(0x327)],void 0x0);else{if(this['_awaitingChangeset']&&_0xa62893[_0x205efe(0x1b7)]===0x0)_0x4e2829[0x0]['baseRev']=this[_0x205efe(0x265)](),_0x3530a7=this[_0x205efe(0x2cb)][_0x205efe(0x176)](q,this['unitID'],this[_0x205efe(0x107)],_0x4e2829[0x0],this[_0x205efe(0x327)]);else{if(_0xa62893[_0x205efe(0x1b7)]!==0x0){let _0x35d277=this[_0x205efe(0x2cb)][_0x205efe(0x176)](K,this[_0x205efe(0x213)],this[_0x205efe(0x107)],_0xa62893,this[_0x205efe(0x327)]);_0x35d277[_0x205efe(0x2b5)](),_0x3530a7=_0x35d277;}else _0x3530a7=this[_0x205efe(0x2cb)][_0x205efe(0x176)](G,this[_0x205efe(0x213)],this[_0x205efe(0x107)],this[_0x205efe(0x327)]);}}return _0x3530a7['_updateLocalCache'](),_0x3530a7;}catch(_0x1c80d8){return this['_logService'][_0x205efe(0x1dd)](_0x205efe(0x11c),_0x205efe(0x206),_0x1c80d8),this[_0x205efe(0x2cb)][_0x205efe(0x176)](Y,this['unitID'],this[_0x205efe(0x107)],this[_0x205efe(0x221)],this[_0x205efe(0x21b)],this['_handler'],!0x1);}}['resend'](){const _0x2b511d=_0x1b551c;throw Error(_0x2b511d(0x2cc));}[_0x1b551c(0x2ed)](_0x4b9062){const _0x23d5e5=_0x1b551c;return this[_0x23d5e5(0x21b)]['push'](_0x4b9062),this;}[_0x1b551c(0x25b)](_0xac676a){const _0x4937d7=_0x1b551c;return this[_0x4937d7(0x1d5)][_0x4937d7(0x23b)](_0xac676a),this;}[_0x1b551c(0x1dc)](_0x47e4f4){const _0x18a600=_0x1b551c;if(this[_0x18a600(0x221)])return this[_0x18a600(0x274)]=this[_0x18a600(0x221)],this[_0x18a600(0x221)]=null,this;throw Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x1b551c(0x2c5)](_0xebf593){const _0x408673=_0x1b551c;return this[_0x408673(0x2df)](!!(_0xebf593!=null&&_0xebf593[_0x408673(0x2d7)]));}[_0x1b551c(0x27b)](){return this;}['toggleOffline'](){const _0x261b81=_0x1b551c;return this['_injector'][_0x261b81(0x176)](X,this['unitID'],this[_0x261b81(0x107)],this[_0x261b81(0x221)],this[_0x261b81(0x21b)],this[_0x261b81(0x327)]);}[_0x1b551c(0x15e)](){return this;}[_0x1b551c(0x2df)](_0x18322c){const _0x569ea5=_0x1b551c;return this['_injector']['createInstance'](Y,this[_0x569ea5(0x213)],this[_0x569ea5(0x107)],this[_0x569ea5(0x221)],this['_pendingMutations'],this[_0x569ea5(0x327)],_0x18322c);}};Z=L([I(0x7,_0x525df4(_0x4fe526)),I(0x8,_0x525df4(_0x259edb)),I(0x9,_0x391759),I(0xa,_0x158d1a),I(0xb,_0x126452),I(0xc,_0x1ea2a6),I(0xd,_0x244262(B))],Z);function Gt(_0x5f53a8,_0x538c7b,_0x46bcfc,_0x5a6496,_0x587b43,_0x31277e){const _0x1bde20=_0x1b551c;return _0x5a6496&&_0x587b43['length']?_0x5f53a8[_0x1bde20(0x176)](J,_0x538c7b,_0x46bcfc,_0x5a6496,_0x587b43,_0x31277e,void 0x0):_0x5a6496?_0x5f53a8[_0x1bde20(0x176)](q,_0x538c7b,_0x46bcfc,_0x5a6496,_0x31277e):_0x587b43[_0x1bde20(0x1b7)]?_0x5f53a8[_0x1bde20(0x176)](K,_0x538c7b,_0x46bcfc,_0x587b43,_0x31277e):_0x5f53a8['createInstance'](G,_0x538c7b,_0x46bcfc,_0x31277e);}let Kt=class extends _0x2c31d0{get[_0x1b551c(0x309)](){const _0x2bf68c=_0x1b551c;return this[_0x2bf68c(0x25a)];}constructor(_0x3efc4a,_0x20d020,_0x5b7c56,_0x2fea2a,_0x4a918f,_0x4b5edd,_0xfcd190,_0x21e1e7,_0x30ed20,_0x17ce75,_0xb13737,_0xf5dbc0,_0x275d63,_0x118f94){const _0x396bb7=_0x1b551c;super(),this[_0x396bb7(0x213)]=_0x3efc4a,this[_0x396bb7(0x26d)]=_0x20d020,this[_0x396bb7(0x1d4)]=_0x5b7c56,this[_0x396bb7(0x2cb)]=_0x2fea2a,this[_0x396bb7(0x17b)]=_0x4a918f,this[_0x396bb7(0x10b)]=_0x4b5edd,this[_0x396bb7(0xdc)]=_0xfcd190,this[_0x396bb7(0x128)]=_0x21e1e7,this[_0x396bb7(0x2a8)]=_0x30ed20,this[_0x396bb7(0x14d)]=_0x17ce75,this[_0x396bb7(0x19a)]=_0xb13737,this[_0x396bb7(0x2de)]=_0xf5dbc0,this[_0x396bb7(0x307)]=_0x275d63,this[_0x396bb7(0x19c)]=_0x118f94,N(this,'_state$',new _0x3670a7(null)),N(this,'state$',this[_0x396bb7(0x2bb)][_0x396bb7(0x15b)]()),N(this,'_state',void 0x0),N(this,'_collaborationPaused',!0x1),N(this,_0x396bb7(0x1a6),''),N(this,_0x396bb7(0x2f4),0x0),N(this,'status$',this[_0x396bb7(0x2a2)][_0x396bb7(0x19b)](_0x2d4cfb(_0x4b6151=>_0x4b6151?_0x4b6151['status']:U[_0x396bb7(0x252)]),_0x2bb13e(0x1))),N(this,_0x396bb7(0x174),!0x1),N(this,_0x396bb7(0x14b),[]);}async[_0x1b551c(0x11b)](){const _0x37f309=_0x1b551c;if(this[_0x37f309(0x309)])throw Error(_0x37f309(0x1a5));await this[_0x37f309(0x23a)]();}['pauseCollaboration'](){const _0x21dcd6=_0x1b551c;return this[_0x21dcd6(0x2d1)]=!0x0,_0x563a45(()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x1b551c(0x293)](_0x407d39){this['_onLocalMutation'](_0x407d39);}[_0x1b551c(0xf7)](_0x50845c){const _0x4a770a=_0x1b551c;this[_0x4a770a(0x25a)]=_0x50845c,this[_0x4a770a(0x2bb)]['next'](_0x50845c);}async['_init'](){const _0x35d873=_0x1b551c;if(this[_0x35d873(0xf7)](await this[_0x35d873(0x1e9)]()),this['_singleActiveUnitService']){var _0x426518;(_0x426518=this[_0x35d873(0x307)])==null||_0x426518['editingUnit'](this[_0x35d873(0x213)]),this[_0x35d873(0x183)](this['_singleActiveUnitService']['getUnitStatus$'](this[_0x35d873(0x213)])[_0x35d873(0x247)](_0x39bea0=>{const _0x55b890=_0x35d873;this['_logService']['debug'](_0x55b890(0x32f),'editing\x20status\x20changed\x20to',_0x39bea0),_0x39bea0===Nt[_0x55b890(0x17d)]?(this[_0x55b890(0x128)]['emitEvent']({'id':P[_0x55b890(0x12b)]}),this[_0x55b890(0x2de)][_0x55b890(0x13b)](new _0x1d3cb6(this[_0x55b890(0x213)])['id'],!0x1),this[_0x55b890(0x2de)][_0x55b890(0x215)](!0x1)):(this[_0x55b890(0x2de)][_0x55b890(0x13b)](new _0x1d3cb6(this[_0x55b890(0x213)])['id'],!0x0),this[_0x55b890(0x2de)][_0x55b890(0x215)](!0x0));}));}let _0x47620d=!0x1;return this[_0x35d873(0x183)](this[_0x35d873(0x26d)][_0x35d873(0x1c0)][_0x35d873(0x247)](_0x34bfa2=>{const _0x597e24=_0x35d873;_0x34bfa2===z[_0x597e24(0x230)]?this[_0x597e24(0x313)](_0x47620d):_0x34bfa2===z[_0x597e24(0x252)]&&(_0x47620d=!0x0,this[_0x597e24(0x238)]());})),this[_0x35d873(0x183)](this[_0x35d873(0x26d)][_0x35d873(0x27c)][_0x35d873(0x247)](_0x4a113e=>{const _0x140a36=_0x35d873;try{switch(_0x4a113e[_0x140a36(0x2f2)]){case _0x862348[_0x140a36(0x296)]:this[_0x140a36(0xec)](_0x22db94(_0x4a113e['data']));break;case _0x862348['CHANGESET_ACK']:this[_0x140a36(0x1ea)](_0x4a113e[_0x140a36(0x16d)]);break;case _0x862348['CHANGESET_REJ']:this['_onRemoteRejected']();break;case _0x862348[_0x140a36(0x1a2)]:this['_onRemoteRetry'](_0x4a113e[_0x140a36(0x16d)]);break;case _0x862348[_0x140a36(0x143)]:this['_onFetchMissResult'](_0x4a113e[_0x140a36(0x16d)][_0x140a36(0x276)]['map'](_0x27fbf5=>_0x22db94(_0x27fbf5)));break;case _0x862348['PERMISSION_REJ']:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case _0x862348[_0x140a36(0x1e5)]:break;}}catch(_0x55a7b5){throw console['error']('Error\x20on\x20receiving\x20event',_0x55a7b5),_0x55a7b5;}})),this['_state'];}[_0x1b551c(0x2e8)](){const _0x1f11ab=_0x1b551c;this[_0x1f11ab(0x174)]=!0x1;}[_0x1b551c(0x136)](){const _0x14efb3=_0x1b551c;if(this[_0x14efb3(0x174)])throw Error(_0x14efb3(0x1e4));this[_0x14efb3(0x174)]=!0x0;}['_onLocalMutation'](_0x1250f3){const _0xd5139a=_0x1b551c;this[_0xd5139a(0x136)](),this[_0xd5139a(0xf7)](this[_0xd5139a(0x25a)][_0xd5139a(0x2ed)](_0x1250f3)),this[_0xd5139a(0x2e8)]();}[_0x1b551c(0xec)](_0x1be0c2){const _0x1159af=_0x1b551c;if(!(_0x1be0c2[_0x1159af(0x1ff)]<=this[_0x1159af(0xdc)][_0x1159af(0x2c9)](this[_0x1159af(0x213)]))){if(this[_0x1159af(0x2d1)]){this[_0x1159af(0x14b)][_0x1159af(0x23b)](_0x1be0c2);return;}this[_0x1159af(0x146)](_0x1be0c2);}}[_0x1b551c(0x31e)](){const _0x3f5c5c=_0x1b551c;this[_0x3f5c5c(0x14b)][_0x3f5c5c(0x165)](_0x47072a=>this[_0x3f5c5c(0x146)](_0x47072a)),this[_0x3f5c5c(0x14b)]=[];}['_applyRemoteChangeset'](_0x442270){const _0x1d33ae=_0x1b551c;let _0x1c2fd2=this[_0x1d33ae(0x17b)][_0x1d33ae(0x2e4)][_0x1d33ae(0xee)](this['_compressMutationService'][_0x1d33ae(0x2e4)][_0x1d33ae(0x244)]()[_0x1d33ae(0x24b)])(_0x442270[_0x1d33ae(0x102)],null)||_0x442270['mutations'],_0x3b8ba3={..._0x442270,'mutations':_0x1c2fd2};this[_0x1d33ae(0x136)](),this[_0x1d33ae(0xf7)](this[_0x1d33ae(0x25a)][_0x1d33ae(0x25b)](_0x3b8ba3)),this[_0x1d33ae(0x2e8)]();}[_0x1b551c(0x1ea)](_0x46bcaf){const _0x2c81a7=_0x1b551c;this[_0x2c81a7(0x136)](),this['_updateState'](this[_0x2c81a7(0x25a)][_0x2c81a7(0x1dc)](_0x46bcaf)),this[_0x2c81a7(0x2e8)]();}['_onRemoteRejected'](_0x1e5abc){const _0x52c306=_0x1b551c;this['_lockTransition'](),this[_0x52c306(0xf7)](this[_0x52c306(0x25a)][_0x52c306(0x2c5)](_0x1e5abc)),this[_0x52c306(0x2e8)]();}['_onRemoteRetry'](_0x3f76c8){const _0x375267=_0x1b551c;this[_0x375267(0x136)](),this['_updateState'](this['_state']['onRemoteRetry'](_0x3f76c8)),this[_0x375267(0x2e8)]();}[_0x1b551c(0x1ec)](_0xb1eb02){const _0x19725e=_0x1b551c;if(!(this[_0x19725e(0x25a)]instanceof Z))throw TypeError(_0x19725e(0x182));let _0x3cfb39=_0xb1eb02[_0x19725e(0x2f9)](_0x3bf94b=>{const _0xfdf02d=_0x19725e;let _0x25667a=this[_0xfdf02d(0x17b)][_0xfdf02d(0x2e4)][_0xfdf02d(0xee)](this[_0xfdf02d(0x17b)]['interceptor'][_0xfdf02d(0x244)]()['COMPRESS_MUTATION_APPLY'])(_0x3bf94b[_0xfdf02d(0x102)],null)||_0x3bf94b[_0xfdf02d(0x102)];return{..._0x3bf94b,'mutations':_0x25667a};});this[_0x19725e(0x136)](),this[_0x19725e(0xf7)](this[_0x19725e(0x25a)][_0x19725e(0x154)](_0x3cfb39)),this[_0x19725e(0x2e8)]();}[_0x1b551c(0x238)](){const _0x25284e=_0x1b551c;this[_0x25284e(0x136)](),this['_updateState'](this['_state']['toggleOffline']()),this[_0x25284e(0x2e8)]();}[_0x1b551c(0x313)](_0x52e354=!0x1){const _0x788bdb=_0x1b551c;this['_lockTransition'](),this['_updateState'](this[_0x788bdb(0x25a)][_0x788bdb(0x15e)]()),this[_0x788bdb(0x2e8)]();let _0xaf3836=this[_0x788bdb(0x25a)];_0x52e354&&_0xaf3836 instanceof G&&(this['_lockTransition'](),this[_0x788bdb(0xf7)](_0xaf3836[_0x788bdb(0x134)]()),this['_unlockTransition']());}async[_0x1b551c(0x1e9)](){return new Promise(_0x5ee9d7=>{const _0x5d2d03=_0x4b15;this['session'][_0x5d2d03(0x1c0)]['pipe'](_0x3236cf(0x1))[_0x5d2d03(0x247)](async _0xb11c79=>{const _0x16dbfc=_0x5d2d03;_0x5ee9d7(await this[_0x16dbfc(0x1fd)](_0xb11c79===z['ONLINE']));});});}[_0x1b551c(0x155)](){let _0x2c6cb6=this['unitID'];return{'onStateChange':(_0x146664,_0x8671f8)=>{const _0x57f1af=_0x4b15;if(_0x146664!==this['_state'])throw Error(_0x57f1af(0x141)+_0x146664[_0x57f1af(0x123)]+_0x57f1af(0x192)+_0x8671f8[_0x57f1af(0x123)]+_0x57f1af(0x218)+this[_0x57f1af(0x25a)]['status']);this[_0x57f1af(0xf7)](_0x8671f8);},'onSendChangeset':_0x3a42db=>{const _0x419bab=_0x4b15;_0x3a42db[_0x419bab(0xe3)]||(_0x3a42db[_0x419bab(0xe3)]=this[_0x419bab(0x1a6)],_0x3a42db[_0x419bab(0x259)]=++this[_0x419bab(0x2f4)]);let _0x58e884={'eventID':_0x862348[_0x419bab(0x2e9)],'data':{'unitID':_0x3a42db[_0x419bab(0x213)],'unitType':this[_0x419bab(0x1d4)],'changeset':_0x3a42db,'memberID':this[_0x419bab(0x26d)][_0x419bab(0x2be)]()}};this['session']['send'](_0x58e884,this[_0x419bab(0x213)]);},'onMissingChangesets':({from:_0x23e73b,to:_0x2082ca})=>{const _0x3ebc24=_0x4b15;this['_logService'][_0x3ebc24(0x2fb)]('[CollaborationEntity]',_0x3ebc24(0x18f)+_0x23e73b+'\x20to\x20'+_0x2082ca);let _0x149c5e={'eventID':_0x862348[_0x3ebc24(0x316)],'data':{'unitID':_0x2c6cb6,'unitType':this[_0x3ebc24(0x1d4)],'from':_0x23e73b,'to':_0x2082ca}};this[_0x3ebc24(0x26d)][_0x3ebc24(0x321)](_0x149c5e,this[_0x3ebc24(0x213)]);}};}async['_createInitialStateImpl'](_0x2be73b){const _0x20cfd1=_0x1b551c;var _0x33ebc2,_0x6eacb2,_0x404505;let _0x562186=await((_0x33ebc2=this[_0x20cfd1(0x19c)])==null?void 0x0:_0x33ebc2['loadOfflineData'](this[_0x20cfd1(0x213)])),_0x3b49e9=(_0x6eacb2=_0x562186==null?void 0x0:_0x562186['mutations'])==null?[]:_0x6eacb2,_0x1235ac=(_0x404505=_0x562186==null?void 0x0:_0x562186[_0x20cfd1(0x2b6)])==null?null:_0x404505,_0x4db984=!!(_0x1235ac!=null&&_0x1235ac['sid'])&&!!(_0x1235ac!=null&&_0x1235ac[_0x20cfd1(0x259)]);this[_0x20cfd1(0x1a6)]=_0x4db984?_0x1235ac[_0x20cfd1(0xe3)]:_0x44ad44(),this['_changesetReqId']=_0x4db984?_0x1235ac['reqId']:0x0;let _0x55c4c1=this[_0x20cfd1(0x213)];try{this[_0x20cfd1(0x30f)](_0x1235ac,_0x3b49e9);}catch(_0x4d1fcb){this['_logService']['error'](_0x4d1fcb);}let _0x56fc10=this['_createHandler']();if(_0x2be73b){let _0x3add28=Gt(this['_injector'],_0x55c4c1,this[_0x20cfd1(0x1d4)],_0x1235ac,_0x3b49e9,_0x56fc10);return _0x3add28 instanceof K?_0x3add28['_schedule']():(_0x3add28 instanceof J||_0x3add28 instanceof q)&&_0x3add28[_0x20cfd1(0x2b3)](),_0x3add28;}return this[_0x20cfd1(0x2cb)]['createInstance'](X,_0x55c4c1,this['_type'],_0x1235ac,_0x3b49e9,_0x56fc10);}['_replayCachedMutations'](_0x49d7c5,_0x72027c){const _0x581b28=_0x1b551c;var _0x3a19a5,_0x1d86bd;let _0x5ebbdb=this[_0x581b28(0x17b)][_0x581b28(0x2e4)][_0x581b28(0xee)](this[_0x581b28(0x17b)][_0x581b28(0x2e4)]['getInterceptPoints']()[_0x581b28(0x24b)]);(_0x3a19a5=_0x5ebbdb((_0x49d7c5==null?void 0x0:_0x49d7c5[_0x581b28(0x102)])||[],null))==null||_0x3a19a5[_0x581b28(0x165)](_0x2a9ed3=>this[_0x581b28(0x19a)]['executeCommand'](_0x2a9ed3['id'],_0x2a9ed3[_0x581b28(0x19e)])),(_0x1d86bd=_0x5ebbdb(_0x72027c||[],null))==null||_0x1d86bd[_0x581b28(0x165)](_0x4023da=>this['_commandService'][_0x581b28(0x2fc)](_0x4023da['id'],_0x4023da[_0x581b28(0x19e)]));}};Kt=L([I(0x3,_0x525df4(_0x4fe526)),I(0x4,_0x525df4(_0x403316)),I(0x5,_0x525df4(_0x3dcdf2)),I(0x6,_0x525df4(_0x259edb)),I(0x7,_0x525df4(F)),I(0x8,_0x2277bb),I(0x9,_0x391759),I(0xa,_0x158d1a),I(0xb,_0x16e820),I(0xc,_0x244262(Mt)),I(0xd,_0x244262(B))],Kt);let qt=class extends Kt{constructor(_0x23584,_0x560c60,_0x556901,_0xf5ee64,_0x3b7ec5,_0x3a9623,_0x2a75bb,_0x2e88b1,_0x103134,_0x300857,_0x2e4b1b,_0x5e6481,_0x16311d,_0x2fa905){const _0x18c403=_0x1b551c;super(_0x23584,_0x556901,_0x560c60,_0xf5ee64,_0x3b7ec5,_0x3a9623,_0x2a75bb,_0x2e88b1,_0x103134,_0x300857,_0x2e4b1b,_0x5e6481,_0x16311d,_0x2fa905),this[_0x18c403(0x213)]=_0x23584,this[_0x18c403(0x107)]=_0x560c60,N(this,_0x18c403(0x10d),null);}[_0x1b551c(0x32c)](_0x34ec2e){const _0x559b33=_0x1b551c;this[_0x559b33(0x10d)]=_0x34ec2e;}[_0x1b551c(0x1f8)](){const _0x1b0d09=_0x1b551c;this['_handlerCallback']=null,super[_0x1b0d09(0x1f8)]();}[_0x1b551c(0x155)](){const _0x1758bd=_0x1b551c;let _0x3bda99=super['_createHandler']();return _0x3bda99[_0x1758bd(0x283)]=_0xb33d9a=>{const _0x950e1d=_0x1758bd;var _0x4332ae,_0x1e8ea9;return(_0x4332ae=this[_0x950e1d(0x10d)])==null||(_0x1e8ea9=_0x4332ae['onTransformIME'])==null?void 0x0:_0x1e8ea9['call'](_0x4332ae,_0xb33d9a);},_0x3bda99['onTransformState']=_0x2e0272=>{const _0x3615c1=_0x1758bd;var _0x283bf7,_0x58e2c1;return(_0x283bf7=this[_0x3615c1(0x10d)])==null||(_0x58e2c1=_0x283bf7[_0x3615c1(0x116)])==null?void 0x0:_0x58e2c1[_0x3615c1(0x2ba)](_0x283bf7,_0x2e0272);},_0x3bda99[_0x1758bd(0x1ce)]=_0xdebdad=>{const _0x363614=_0x1758bd;var _0x4b6738,_0x24cb6b;return(_0x4b6738=this[_0x363614(0x10d)])==null||(_0x24cb6b=_0x4b6738[_0x363614(0x1ce)])==null?void 0x0:_0x24cb6b['call'](_0x4b6738,_0xdebdad);},_0x3bda99[_0x1758bd(0x124)]=_0x24fde9=>{const _0x5f7575=_0x1758bd;var _0xf4967,_0x5d38d4;return(_0xf4967=this[_0x5f7575(0x10d)])==null||(_0x5d38d4=_0xf4967['onSyncEditingCollabCursor'])==null?void 0x0:_0x5d38d4[_0x5f7575(0x2ba)](_0xf4967,_0x24fde9);},_0x3bda99[_0x1758bd(0x2f3)]=_0x5a678c=>{const _0x61accf=_0x1758bd;var _0x46f5fc,_0x66729b,_0x46409b;if(!((_0x46f5fc=this[_0x61accf(0x10d)])!=null&&_0x46f5fc[_0x61accf(0x2f3)]))throw Error(_0x61accf(0x17e));return(_0x66729b=this[_0x61accf(0x10d)])==null||(_0x46409b=_0x66729b[_0x61accf(0x2f3)])==null?void 0x0:_0x46409b[_0x61accf(0x2ba)](_0x66729b,_0x5a678c);},_0x3bda99[_0x1758bd(0x1a1)]=_0x1f15c1=>{const _0x61b826=_0x1758bd;var _0x46d042,_0xc9414f,_0x507aff;if(!((_0x46d042=this[_0x61b826(0x10d)])!=null&&_0x46d042[_0x61b826(0x1a1)]))throw Error(_0x61b826(0x10c));return(_0xc9414f=this[_0x61b826(0x10d)])==null||(_0x507aff=_0xc9414f[_0x61b826(0x1a1)])==null?void 0x0:_0x507aff[_0x61b826(0x2ba)](_0xc9414f,_0x1f15c1);},_0x3bda99;}async[_0x1b551c(0x23a)](){const _0x5ac4e7=_0x1b551c;let _0x40d4f8=await super[_0x5ac4e7(0x23a)]();return this['disposeWithMe'](this['_commandService'][_0x5ac4e7(0xf2)]((_0xa01914,_0x2768f7)=>{const _0x5b0e55=_0x5ac4e7;if(_0xa01914[_0x5b0e55(0x107)]!==_0x3c8a50[_0x5b0e55(0x2a4)]||_0x2768f7!=null&&_0x2768f7[_0x5b0e55(0x2a0)]||_0x2768f7!=null&&_0x2768f7['onlyLocal']||_0xa01914['id']===_0x15b31c['id'])return;let _0x387a6c=_0xa01914[_0x5b0e55(0x19e)];if((_0x387a6c==null?void 0x0:_0x387a6c[_0x5b0e55(0x303)])!==this['unitID'])return;let _0x507693=_0xa01914,_0x232085=this[_0x5b0e55(0x17b)][_0x5b0e55(0x2e4)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x5b0e55(0x2e4)][_0x5b0e55(0x244)]()[_0x5b0e55(0x2b4)])([_0x507693],this[_0x5b0e55(0x2a8)])||[_0x507693];this[_0x5b0e55(0x15c)](_0x232085[0x0]);})),_0x40d4f8;}};qt=L([I(0x3,_0x525df4(_0x4fe526)),I(0x4,_0x525df4(_0x403316)),I(0x5,_0x525df4(_0x3dcdf2)),I(0x6,_0x525df4(_0x259edb)),I(0x7,_0x525df4(F)),I(0x8,_0x2277bb),I(0x9,_0x391759),I(0xa,_0x158d1a),I(0xb,_0x16e820),I(0xc,_0x244262(Mt)),I(0xd,_0x244262(B))],qt);let Jt=class extends Kt{constructor(_0x5b093a,_0x8bb283,_0x50d2f4,_0x31f433,_0x278099,_0x776d1e,_0x2e85bc,_0x4d392f,_0x24d54d,_0x20d0e5,_0x5dc5ba,_0x4c2939,_0x48784d,_0x392795,_0xe4f1d6){const _0x3b7a2b=_0x1b551c;super(_0x5b093a,_0x50d2f4,_0x8bb283,_0x31f433,_0x278099,_0x776d1e,_0x2e85bc,_0x24d54d,_0x20d0e5,_0x5dc5ba,_0x4c2939,_0x48784d,_0x392795,_0xe4f1d6),this[_0x3b7a2b(0x213)]=_0x5b093a,this[_0x3b7a2b(0x107)]=_0x8bb283,this[_0x3b7a2b(0x28d)]=_0x4d392f;}[_0x1b551c(0x155)](){const _0x52cb9d=_0x1b551c;let _0x393489=super[_0x52cb9d(0x155)]();return _0x393489['onTransformSelections']=_0x1cee90=>this[_0x52cb9d(0x28d)][_0x52cb9d(0x142)](_0x1cee90),_0x393489;}async[_0x1b551c(0x23a)](){const _0x2e666b=_0x1b551c;let _0x4484e5=await super['_init']();return this['disposeWithMe'](this[_0x2e666b(0x19a)][_0x2e666b(0xf2)]((_0x5086d8,_0x31fd8b)=>{const _0x2c6371=_0x2e666b;if(_0x5086d8[_0x2c6371(0x107)]!==_0x3c8a50[_0x2c6371(0x2a4)]||_0x31fd8b!=null&&_0x31fd8b[_0x2c6371(0x2a0)]||_0x31fd8b!=null&&_0x31fd8b[_0x2c6371(0x1c7)])return;let _0x4440c4=_0x5086d8['params'];if((_0x4440c4==null?void 0x0:_0x4440c4['unitId'])!==this[_0x2c6371(0x213)])return;let _0x15c4b5=_0x5086d8,_0x208acb=this['_compressMutationService'][_0x2c6371(0x2e4)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x2c6371(0x2e4)][_0x2c6371(0x244)]()[_0x2c6371(0x2b4)])([_0x15c4b5],this['_univerInstanceService'])||[_0x15c4b5];this['_onLocalMutation'](_0x208acb[0x0]);})),_0x4484e5;}};Jt=L([I(0x3,_0x525df4(_0x4fe526)),I(0x4,_0x525df4(_0x403316)),I(0x5,_0x525df4(_0x3dcdf2)),I(0x6,_0x525df4(_0x259edb)),I(0x7,_0x525df4(V)),I(0x8,_0x525df4(F)),I(0x9,_0x2277bb),I(0xa,_0x391759),I(0xb,_0x158d1a),I(0xc,_0x16e820),I(0xd,_0x244262(Mt)),I(0xe,_0x244262(B))],Jt);const Yt=_0x304c6c(_0x1b551c(0x1b8));function Xt(_0xa58eb){const _0x29ec03=_0x1b551c;let _0x26fad7=_0xa58eb[_0x29ec03(0x16d)],_0x8c409b=JSON['parse'](_0x26fad7);switch(_0x8c409b[_0x29ec03(0x1bc)]){case _0x5cec66[_0x29ec03(0x267)]:case _0x5cec66[_0x29ec03(0xf6)]:{let _0x1b2c65=_0x8c409b[_0x29ec03(0x337)];return{..._0x8c409b,'data':_0x1b2c65,'cmd':_0x8c409b[_0x29ec03(0x1bc)]};}case _0x5cec66[_0x29ec03(0x100)]:{let _0x4675ed=_0x8c409b[_0x29ec03(0x285)];return{..._0x8c409b,'data':_0x4675ed,'cmd':_0x8c409b[_0x29ec03(0x1bc)]};}case _0x5cec66[_0x29ec03(0x24c)]:{let _0x4e3380=_0x8c409b[_0x29ec03(0x25d)];switch(_0x4e3380[_0x29ec03(0x2f2)]){case _0x862348['PERMISSION_REJ']:var _0x3a52f5;return{..._0x8c409b,'data':{..._0x4e3380,'data':(_0x3a52f5=_0x4e3380[_0x29ec03(0x286)])==null?void 0x0:_0x3a52f5['cs']},'cmd':_0x8c409b[_0x29ec03(0x1bc)]};case _0x862348[_0x29ec03(0x1c4)]:var _0x29dbc5;return{..._0x8c409b,'data':{..._0x4e3380,'data':(_0x29dbc5=_0x4e3380['csAckEvent'])==null?void 0x0:_0x29dbc5['cs']},'cmd':_0x8c409b[_0x29ec03(0x1bc)]};case _0x862348['NEW_CHANGESETS']:var _0x200d4a;return{..._0x8c409b,'data':{..._0x4e3380,'data':(_0x200d4a=_0x4e3380[_0x29ec03(0x162)])==null?void 0x0:_0x200d4a['cs']},'cmd':_0x8c409b['cmd']};case _0x862348[_0x29ec03(0x188)]:var _0x17a2d0;return{..._0x8c409b,'data':{..._0x4e3380,'data':(_0x17a2d0=_0x4e3380[_0x29ec03(0x312)])==null?void 0x0:_0x17a2d0['cs']},'cmd':_0x8c409b[_0x29ec03(0x1bc)]};case _0x862348[_0x29ec03(0x1a2)]:var _0x4d4d64;return{..._0x8c409b,'data':{..._0x4e3380,'data':(_0x4d4d64=_0x4e3380['csShouldRetryEvent'])==null?void 0x0:_0x4d4d64['cs']},'cmd':_0x8c409b[_0x29ec03(0x1bc)]};case _0x862348['UPDATE_CURSOR']:return{..._0x8c409b,'data':{..._0x4e3380,'data':_0x4e3380[_0x29ec03(0x1af)]},'cmd':_0x8c409b[_0x29ec03(0x1bc)]};case _0x862348[_0x29ec03(0x320)]:return{..._0x8c409b,'data':{..._0x4e3380,'data':_0x4e3380[_0x29ec03(0x325)]},'cmd':_0x8c409b[_0x29ec03(0x1bc)]};case _0x862348['USERS_LEAVE']:return{..._0x8c409b,'data':{..._0x4e3380,'data':_0x4e3380['leaveEvent']},'cmd':_0x8c409b[_0x29ec03(0x1bc)]};case _0x862348[_0x29ec03(0x29d)]:return{..._0x8c409b,'data':{..._0x4e3380,'data':_0x4e3380[_0x29ec03(0x159)]},'cmd':_0x8c409b[_0x29ec03(0x1bc)]};case _0x862348[_0x29ec03(0x2bc)]:case _0x862348[_0x29ec03(0x1d3)]:return{..._0x8c409b,'data':{..._0x4e3380,'data':_0x4e3380[_0x29ec03(0x15a)]},'cmd':_0x8c409b[_0x29ec03(0x1bc)]};case _0x862348[_0x29ec03(0x16c)]:return{..._0x8c409b,'data':{..._0x4e3380,'data':_0x4e3380[_0x29ec03(0x159)]},'cmd':_0x8c409b[_0x29ec03(0x1bc)]};case _0x862348[_0x29ec03(0xe1)]:return{..._0x8c409b,'data':_0x4e3380,'cmd':_0x8c409b['cmd']};case _0x862348['COMMENT_UPDATE']:return{..._0x8c409b,'data':{..._0x4e3380,'data':_0x4e3380[_0x29ec03(0x197)]},'cmd':_0x8c409b[_0x29ec03(0x1bc)]};case _0x862348['UPDATE_PERMISSION_OBJ']:return{..._0x8c409b,'data':{..._0x4e3380,'data':_0x4e3380['updatePermissionObjEvent']},'cmd':_0x8c409b[_0x29ec03(0x1bc)]};case _0x862348[_0x29ec03(0x246)]:return{..._0x8c409b,'data':{..._0x4e3380,'data':_0x4e3380[_0x29ec03(0x161)]},'cmd':_0x8c409b[_0x29ec03(0x1bc)]};case _0x862348[_0x29ec03(0x1e5)]:return{..._0x8c409b,'data':{..._0x4e3380,'data':_0x4e3380['uniscriptRunEvent']},'cmd':_0x8c409b['cmd']};default:return _0x8c409b;}}default:return _0x8c409b;}}function Zt(_0x394e85){const _0x496aab=_0x1b551c;switch(_0x394e85[_0x496aab(0x1bc)]){case _0x5cec66[_0x496aab(0x267)]:case _0x5cec66[_0x496aab(0xf6)]:return JSON['stringify']({'cmd':_0x394e85[_0x496aab(0x1bc)],'routeKey':_0x394e85[_0x496aab(0x18a)]});case _0x5cec66[_0x496aab(0x1ad)]:{let _0x17b476;switch(_0x394e85[_0x496aab(0x16d)]['eventID']){case _0x862348['UPDATE_CURSOR']:_0x17b476={'eventID':_0x862348[_0x496aab(0x2e5)],'updateCursorEvent':_0x394e85['data']['data']};break;case _0x862348[_0x496aab(0x2aa)]:_0x17b476={'eventID':_0x862348[_0x496aab(0x2aa)],'leaveEvent':_0x394e85[_0x496aab(0x16d)][_0x496aab(0x16d)]};break;case _0x862348[_0x496aab(0x320)]:_0x17b476={'eventID':_0x862348[_0x496aab(0x320)],'joinEvent':_0x394e85['data'][_0x496aab(0x16d)]};break;case _0x862348[_0x496aab(0x29d)]:_0x17b476={'eventID':_0x862348[_0x496aab(0x29d)],'liveShareNewHost':_0x394e85[_0x496aab(0x16d)][_0x496aab(0x16d)]};break;case _0x862348[_0x496aab(0x1d3)]:_0x17b476={'eventID':_0x862348[_0x496aab(0x1d3)],'liveShareOperation':_0x394e85[_0x496aab(0x16d)][_0x496aab(0x16d)]};break;case _0x862348[_0x496aab(0x16c)]:_0x17b476={'eventID':_0x862348[_0x496aab(0x16c)],'liveShareTerminate':_0x394e85['data'][_0x496aab(0x16d)]};break;case _0x862348[_0x496aab(0x317)]:_0x17b476={'eventID':_0x862348['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x394e85[_0x496aab(0x16d)][_0x496aab(0x16d)]};break;case _0x862348[_0x496aab(0x2bc)]:_0x17b476={'eventID':_0x862348[_0x496aab(0x2bc)]};break;default:_0x17b476={'eventID':_0x394e85['data']['eventID']};}return JSON[_0x496aab(0x181)]({'cmd':_0x394e85[_0x496aab(0x1bc)],'routeKey':_0x394e85[_0x496aab(0x18a)],'collaMsg':_0x17b476});}case _0x5cec66['JOIN']:return JSON['stringify']({'cmd':_0x394e85[_0x496aab(0x1bc)],'routeKey':_0x394e85[_0x496aab(0x18a)],'joinReq':_0x394e85['data']});case _0x5cec66[_0x496aab(0x12a)]:return JSON[_0x496aab(0x181)]({'cmd':_0x394e85[_0x496aab(0x1bc)],'routeKey':_0x394e85[_0x496aab(0x18a)],'leaveReq':_0x394e85['data']});default:throw Error(_0x496aab(0x172));}}const Qt=_0x304c6c(_0x1b551c(0x2f1));function $t(_0x59fc97,_0x1af3cf,_0x154dd6){const _0x3de39f=_0x1b551c;return _0x59fc97+'/'+_0x1af3cf+_0x3de39f(0x24e)+_0x154dd6+_0x3de39f(0x22b);}let en=class extends _0x507a94{constructor(_0x8ecfe5,_0x3588d3,_0x9a9f95,_0x2ef1c1,_0x435502){const _0x3f3bc1=_0x1b551c;super(),this['_injector']=_0x8ecfe5,this[_0x3f3bc1(0x260)]=_0x3588d3,this[_0x3f3bc1(0x194)]=_0x9a9f95,this[_0x3f3bc1(0x14d)]=_0x2ef1c1,this[_0x3f3bc1(0x22e)]=_0x435502;}['_doCreateSocket'](_0x4da61d){const _0x51644c=_0x1b551c;let _0x20ea50=this[_0x51644c(0x2cb)][_0x51644c(0x1ee)](_0x13ca03);if(!_0x20ea50)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x5afbde=_0x20ea50['createSocket'](_0x4da61d);if(!_0x5afbde)throw Error(_0x51644c(0x1d9));let _0x5512f2=new _0xe1b115(),_0x33b161=new _0x31bd3c();_0x5512f2[_0x51644c(0x27d)](_0x5afbde[_0x51644c(0x195)]['subscribe'](_0x608a39=>_0x33b161[_0x51644c(0x2bf)](_0x608a39))),_0x5512f2[_0x51644c(0x27d)](_0x563a45(()=>_0x33b161[_0x51644c(0x2dc)]()));let _0x15eb94=new _0x31bd3c();_0x5512f2[_0x51644c(0x27d)](_0x5afbde[_0x51644c(0x1a4)]['subscribe'](_0x3307ef=>_0x15eb94[_0x51644c(0x2bf)](_0x3307ef))),_0x5512f2[_0x51644c(0x27d)](_0x563a45(()=>_0x15eb94['complete']()));let _0x3c34ff=new _0x31bd3c();_0x5512f2['add'](_0x5afbde['message$'][_0x51644c(0x247)](_0x98cea3=>{const _0x26868e=_0x51644c;let _0x30565d=Xt(_0x98cea3);_0x3c34ff[_0x26868e(0x2bf)](_0x30565d);})),_0x5512f2['add'](_0x563a45(()=>_0x3c34ff[_0x51644c(0x2dc)]()));let _0x2ede3f,_0x2da8fb=()=>{const _0x23c70b=_0x51644c;_0x15eb94[_0x23c70b(0x2bf)](new Event(_0x23c70b(0x280))),_0x33b161[_0x23c70b(0x2bf)](new Event(_0x23c70b(0x280))),_0x2ede3f[_0x23c70b(0x2fd)]();};return _0x2ede3f={'memberID':'','close$':_0x33b161[_0x51644c(0x15b)](),'error$':_0x15eb94[_0x51644c(0x15b)](),'open$':_0x5afbde[_0x51644c(0x13d)],'message$':_0x3c34ff[_0x51644c(0x15b)](),'send':_0x3e2f34=>{const _0x485b25=_0x51644c;if(_0x3e2f34['cmd']===_0x5cec66[_0x485b25(0x1ad)]){if(_0x3e2f34[_0x485b25(0x16d)]['eventID']===_0x862348['SUBMIT_CHANGESET']){this[_0x485b25(0x311)](_0x2ede3f,_0x3e2f34[_0x485b25(0x16d)])[_0x485b25(0x2ce)](_0x5c3374=>{this['_logService']['error'](_0x5c3374),_0x2da8fb();});return;}if(_0x3e2f34['data'][_0x485b25(0x2f2)]===_0x862348[_0x485b25(0x316)]){let _0x2a9d17=_0x3e2f34[_0x485b25(0x16d)];this['_fetchMissChangesets'](_0x2a9d17)[_0x485b25(0x204)](_0x2b631e=>{const _0x14bf2b=_0x485b25;_0x3c34ff['next']({'cmd':_0x5cec66[_0x14bf2b(0x24c)],'code':_0x2bede7['OK'],'routeKey':_0x2a9d17[_0x14bf2b(0x16d)][_0x14bf2b(0x213)],'routeType':'','data':{'eventID':_0x862348[_0x14bf2b(0x143)],'data':{'changesets':_0x2b631e}}});})[_0x485b25(0x2ce)](_0x5d644c=>{const _0x150a87=_0x485b25;this[_0x150a87(0x14d)][_0x150a87(0x1dd)](_0x5d644c),_0x2da8fb();});return;}}_0x5afbde[_0x485b25(0x321)](Zt(_0x3e2f34));},'close':()=>{const _0x5cc80a=_0x51644c;_0x5afbde[_0x5cc80a(0x2fd)](),_0x5512f2[_0x5cc80a(0x1f8)]();}},_0x2ede3f;}async[_0x1b551c(0x311)](_0x470224,_0x2e8814){const _0x37bb90=_0x1b551c;var _0xc26cbe;let {unitType:_0x42ff88,unitID:_0x15e58e,changeset:_0x175326}=_0x2e8814[_0x37bb90(0x16d)],_0x5c6875={'unitID':_0x15e58e,'memberID':_0x470224['memberID'],'type':_0x42ff88,'changeset':_0x5cf58b(_0x175326)},_0x45ecac=this[_0x37bb90(0x194)]['getConfig'](H),_0xd4820e=$t((_0xc26cbe=_0x45ecac==null?void 0x0:_0x45ecac[_0x37bb90(0x122)])==null?_0x37bb90(0x187):_0xc26cbe,_0x42ff88,_0x15e58e);try{await this[_0x37bb90(0x260)][_0x37bb90(0x26c)](_0xd4820e,{'body':_0x5c6875});}catch(_0x241cd3){throw this['_logService'][_0x37bb90(0x1dd)](_0x37bb90(0x2f6),_0x37bb90(0x1ed)),_0x241cd3;}}async['_fetchMissChangesets'](_0x4eb51f){const _0x40badd=_0x1b551c;let {unitID:_0x3d8a2c,from:_0x4fd760,to:_0x3f8384,unitType:_0x5777e3}=_0x4eb51f[_0x40badd(0x16d)];return(await this['_snapshotServerService']['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x3d8a2c,'type':_0x5777e3,'from':_0x4fd760,'to':_0x3f8384}))[_0x40badd(0x276)][_0x40badd(0x2f9)](_0x14ae80=>((_0x14ae80[_0x40badd(0x102)]===null||_0x14ae80[_0x40badd(0x102)]===void 0x0)&&(_0x14ae80[_0x40badd(0x102)]=[]),_0x14ae80));}};en=L([I(0x0,_0x525df4(_0x4fe526)),I(0x1,_0x525df4(_0x3b6234)),I(0x2,_0x18a450),I(0x3,_0x391759),I(0x4,_0x276c62)],en);let Q=class extends _0x507a94{get[_0x1b551c(0x16b)](){const _0x46a615=_0x1b551c;return this['_socket$'][_0x46a615(0x22a)]();}constructor(_0x346253,_0x2ca8ea,_0x311ab8,_0x141b9,_0x190c40,_0x4a6795){const _0x18719e=_0x1b551c;super(),this[_0x18719e(0x2cb)]=_0x346253,this[_0x18719e(0x14d)]=_0x2ca8ea,this[_0x18719e(0x194)]=_0x311ab8,this[_0x18719e(0x2ea)]=_0x141b9,this['_collaborationUIEventService']=_0x190c40,this[_0x18719e(0x15f)]=_0x4a6795,N(this,_0x18719e(0x299),new _0x3670a7(void 0x0)),N(this,_0x18719e(0x2a5),this[_0x18719e(0x299)][_0x18719e(0x15b)]()),N(this,'_candidateSocket',null),N(this,_0x18719e(0x167),new Map()),N(this,_0x18719e(0x21a),new _0x3670a7(z[_0x18719e(0x191)])),N(this,_0x18719e(0x2f5),this[_0x18719e(0x21a)]['asObservable']()),N(this,'_socketReady',!0x1),N(this,_0x18719e(0x1ab),void 0x0),N(this,'_retryCount',0x0),N(this,_0x18719e(0x2b2),void 0x0),N(this,_0x18719e(0x330),void 0x0),this['_listenToNetworkCondition']();}[_0x1b551c(0x121)](){const _0x95c4a5=_0x1b551c;this[_0x95c4a5(0x15f)]&&this[_0x95c4a5(0x183)](this[_0x95c4a5(0x15f)]['online$']['subscribe'](_0x6e051c=>{const _0x3103a9=_0x95c4a5;_0x6e051c&&!this['_socket']&&this['reconnect'](),_0x6e051c||this[_0x3103a9(0x17f)]();}));}[_0x1b551c(0x1f8)](){const _0x4d16b1=_0x1b551c;super[_0x4d16b1(0x1f8)](),this[_0x4d16b1(0x163)](),this[_0x4d16b1(0x212)](),this[_0x4d16b1(0x126)](),this[_0x4d16b1(0x167)]['forEach'](_0xe0f114=>_0xe0f114['dispose']()),this[_0x4d16b1(0x167)]['clear'](),this['_status$']['complete']();}async[_0x1b551c(0x12f)](_0x387ae0){const _0x161319=_0x1b551c;if(this[_0x161319(0x167)]['has'](_0x387ae0))return this[_0x161319(0x167)][_0x161319(0x1ee)](_0x387ae0);this['_tryEnsureSocket']();let _0x3f4b38=this[_0x161319(0x2cb)][_0x161319(0x176)](kt,_0x387ae0,this[_0x161319(0x299)]['asObservable']());return this['_sessions'][_0x161319(0x241)](_0x387ae0,_0x3f4b38),_0x3f4b38;}[_0x1b551c(0x16a)](_0x186d15){const _0x32bf1b=_0x1b551c;let _0x87d3b7=this['_sessions']['get'](_0x186d15);if(_0x87d3b7&&(this[_0x32bf1b(0x167)][_0x32bf1b(0x1b3)](_0x186d15),_0x87d3b7[_0x32bf1b(0x2fd)]()),!this[_0x32bf1b(0x167)][_0x32bf1b(0x25f)]){var _0xcc5792;(_0xcc5792=this[_0x32bf1b(0x16b)])==null||_0xcc5792['close']();}}[_0x1b551c(0x1e7)](){const _0x1be9ff=_0x1b551c;this[_0x1be9ff(0x1f4)]=0x0,this[_0x1be9ff(0x163)](),this[_0x1be9ff(0x266)]();}[_0x1b551c(0x163)](){const _0x1c2afe=_0x1b551c;this[_0x1c2afe(0x1ab)]!=null&&(clearTimeout(this[_0x1c2afe(0x1ab)]),this[_0x1c2afe(0x1ab)]=null);}async['_createSocket'](){const _0x41b487=_0x1b551c;var _0x25cc9e;let _0x5677e7=this[_0x41b487(0x194)][_0x41b487(0x29b)](H),_0x214c06=(_0x25cc9e=_0x5677e7==null?void 0x0:_0x5677e7[_0x41b487(0x1cb)])==null?ft:_0x25cc9e,_0x3d7e6b=await this[_0x41b487(0x2ea)][_0x41b487(0x32d)](_0x214c06);return this['_candidateSocket']=_0x3d7e6b,_0x3d7e6b;}async[_0x1b551c(0x1d2)](){const _0x597b96=_0x1b551c;try{var _0x5e2a9e,_0x11437e;let _0x38b7b9=(_0x5e2a9e=(_0x11437e=this['_socket'])==null?this[_0x597b96(0x28b)]:_0x11437e)==null?await this[_0x597b96(0x10f)]():_0x5e2a9e;if(_0x38b7b9){let _0x561ff4=_0x38b7b9[_0x597b96(0x321)];_0x38b7b9['send']=_0x1ee5c4=>(_0x1ee5c4[_0x597b96(0x1bc)]!==_0x5cec66[_0x597b96(0x12a)]&&this[_0x597b96(0x2d0)](),_0x561ff4[_0x597b96(0x282)](_0x38b7b9,[_0x1ee5c4])),_0x38b7b9[_0x597b96(0x1d8)][_0x597b96(0x247)](_0x359dc5=>this['_onMessage'](_0x38b7b9,_0x359dc5)),_0x38b7b9[_0x597b96(0x1a4)][_0x597b96(0x19b)](_0x3ae717(0x1))['subscribe'](_0x3a488d=>this[_0x597b96(0x14d)][_0x597b96(0x1dd)]('[CollaborationSessionService]:\x20socket\x20error',_0x3a488d)),_0x38b7b9[_0x597b96(0x13d)]['pipe'](_0x3ae717(0x1))['subscribe'](()=>{const _0x109183=_0x597b96;this[_0x109183(0xf0)](_0x38b7b9);}),_0x38b7b9[_0x597b96(0x195)][_0x597b96(0x19b)](_0x3ae717(0x1))['subscribe'](_0x112a54=>{const _0x102ca2=_0x597b96;this[_0x102ca2(0x14d)][_0x102ca2(0x2fb)](_0x102ca2(0x151),_0x102ca2(0x119),_0x112a54),this[_0x102ca2(0x29a)]();});}}catch(_0x574d83){this['_logService']['error'](_0x574d83),this[_0x597b96(0x29a)]();}}[_0x1b551c(0xf0)](_0x493324){const _0x39ec60=_0x1b551c;this[_0x39ec60(0x14d)][_0x39ec60(0x2fb)](_0x39ec60(0x151),'socket\x20open.'),_0x493324[_0x39ec60(0x321)]({'cmd':_0x5cec66[_0x39ec60(0xf6)]}),this['_rescheduleHeartbeat']();}['_onOffline'](){const _0x5ac152=_0x1b551c;this[_0x5ac152(0x2c2)]=!0x1,this[_0x5ac152(0x28b)]=null,this[_0x5ac152(0x21a)]['next'](z['OFFLINE']),this[_0x5ac152(0x299)][_0x5ac152(0x2bf)](null),this[_0x5ac152(0x212)](),this['_clearHeartbeatTimer']();}[_0x1b551c(0x29a)](){const _0x11c878=_0x1b551c;var _0x2da01d;this['_onOffline'](),this[_0x11c878(0x1f4)]<((_0x2da01d=this[_0x11c878(0x194)][_0x11c878(0x29b)](_0x11c878(0x1db)))==null?0x3:_0x2da01d)?(this[_0x11c878(0x2db)][_0x11c878(0xe5)]({'id':P['SOCKET_FAILED_RETRY']}),this[_0x11c878(0x266)]()):this[_0x11c878(0x2db)][_0x11c878(0xe5)]({'id':P[_0x11c878(0x168)]});}[_0x1b551c(0x266)](){const _0x1b7038=_0x1b551c;var _0x31f535;let _0x230716=this[_0x1b7038(0x1f4)],_0x170d61=this['_configService'][_0x1b7038(0x29b)](H),_0x201854=_0x230716===0x0?0x0:((_0x31f535=_0x170d61==null?void 0x0:_0x170d61[_0x1b7038(0xf1)])==null?0x4e20:_0x31f535)*0x2**_0x230716;this[_0x1b7038(0x1ab)]=setTimeout(()=>{const _0x5b5d9a=_0x1b7038;clearTimeout(this[_0x5b5d9a(0x1ab)]),this[_0x5b5d9a(0x1ab)]=null,this['_tryEnsureSocket']();},_0x201854),this['_retryCount']+=0x1;}[_0x1b551c(0x32b)](_0x5b8f22,_0x35090e){const _0x3433ef=_0x1b551c;let {cmd:_0xb9e37f}=_0x35090e;_0xb9e37f===_0x5cec66['HELLO']&&!this[_0x3433ef(0x2c2)]&&(_0x5b8f22[_0x3433ef(0x14f)]=_0x35090e[_0x3433ef(0x16d)][_0x3433ef(0x14f)],this[_0x3433ef(0x299)][_0x3433ef(0x2bf)](_0x5b8f22),this['_status$'][_0x3433ef(0x2bf)](z[_0x3433ef(0x230)]),this[_0x3433ef(0x2c2)]=!0x0,this[_0x3433ef(0x28b)]=null),_0xb9e37f===_0x5cec66[_0x3433ef(0x267)]&&this[_0x3433ef(0x212)](),this[_0x3433ef(0x2d0)]();}[_0x1b551c(0x2d0)](){const _0x470d12=_0x1b551c;var _0x30a410;this[_0x470d12(0x126)](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x470d12(0x115)](),(_0x30a410=this['_configService']['getConfig'](_0x470d12(0x305)))==null?0x7530:_0x30a410);}['_sendHeartbeat'](){const _0x4aaf39=_0x1b551c;this['_socket']['send']({'cmd':_0x5cec66['HEARTBEAT']}),this[_0x4aaf39(0x295)]();}[_0x1b551c(0x295)](){const _0x4bf97d=_0x1b551c;var _0x195710;this[_0x4bf97d(0x330)]=setTimeout(()=>this[_0x4bf97d(0x29a)](),(_0x195710=this['_configService'][_0x4bf97d(0x29b)](_0x4bf97d(0x140)))==null?gt:_0x195710);}[_0x1b551c(0x126)](){const _0x1aab14=_0x1b551c;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x1aab14(0x2b2)]),this[_0x1aab14(0x2b2)]=null);}['_clearTimeoutTimer'](){const _0x2c1f97=_0x1b551c;this[_0x2c1f97(0x330)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x2c1f97(0x330)]=null);}};Q=L([I(0x0,_0x525df4(_0x4fe526)),I(0x1,_0x391759),I(0x2,_0x18a450),I(0x3,Qt),I(0x4,_0x525df4(F)),I(0x5,_0x244262(Yt))],Q);let tn=class extends _0x2c31d0{constructor(_0x304249,_0x2e5526,_0x4922c4,_0x291ad){const _0x4ea5d5=_0x1b551c;var _0x3183ed;super(),this[_0x4ea5d5(0x2cb)]=_0x304249,this[_0x4ea5d5(0x315)]=_0x2e5526,this[_0x4ea5d5(0x194)]=_0x4922c4,this[_0x4ea5d5(0x2a8)]=_0x291ad,N(this,'_entities',new Map()),N(this,'_entityInit$',new _0x31bd3c()),N(this,'entityInit$',this['_entityInit$'][_0x4ea5d5(0x15b)]()),((_0x3183ed=this[_0x4ea5d5(0x194)][_0x4ea5d5(0x29b)](_0x4ea5d5(0x32a)))==null?void 0x0:_0x3183ed['enableCollaboration'])!==!0x1&&this[_0x4ea5d5(0x23a)]();}[_0x1b551c(0x1f8)](){const _0x1e1e6d=_0x1b551c;super[_0x1e1e6d(0x1f8)](),this[_0x1e1e6d(0x2c4)]['forEach'](_0x190e40=>_0x190e40[_0x1e1e6d(0x1f8)]()),this[_0x1e1e6d(0x2c4)][_0x1e1e6d(0x289)]();}[_0x1b551c(0x263)](_0x5089c9){const _0x54e71c=_0x1b551c;var _0x29a39d;return(_0x29a39d=this[_0x54e71c(0x2c4)][_0x54e71c(0x1ee)](_0x5089c9))==null?null:_0x29a39d;}[_0x1b551c(0x228)](_0x3960fb){const _0x4b21fa=_0x1b551c;let _0x3fc70c=this[_0x4b21fa(0x263)](_0x3960fb);return _0x3fc70c?_0x1298a7(_0x3fc70c):this[_0x4b21fa(0x109)]['pipe'](_0x26f9fe(_0x1cbf75=>_0x1cbf75[_0x4b21fa(0x213)]===_0x3960fb));}[_0x1b551c(0x1ac)](_0x4dc516){const _0x3f72ac=_0x1b551c;return _0x3fe34a(this[_0x3f72ac(0x228)](_0x4dc516)['pipe'](_0x1c83bc(()=>void 0x0)));}[_0x1b551c(0x23a)](){const _0x35d363=_0x1b551c;this[_0x35d363(0x2a8)][_0x35d363(0x145)](_0x1e7823[_0x35d363(0x250)])[_0x35d363(0x19b)](_0x1bb453(this['dispose$']),_0x3bff6b(0x10))[_0x35d363(0x247)](async _0x35c920=>{const _0x166727=_0x35d363;let _0x4af075=_0x35c920[_0x166727(0x1ca)](),_0x2f32ab=await this['_startCollaboration'](_0x4af075,_0x5c2ea6[_0x166727(0x250)]);this['_entities'][_0x166727(0x241)](_0x4af075,_0x2f32ab);}),this[_0x35d363(0x2a8)][_0x35d363(0x145)](_0x1e7823['UNIVER_DOC'])[_0x35d363(0x19b)](_0x1bb453(this[_0x35d363(0x1da)]),_0x3bff6b(0x10))[_0x35d363(0x19b)](_0x26f9fe(_0x121296=>!_0x121296[_0x35d363(0x1ca)]()[_0x35d363(0x2c8)]('__')))['subscribe'](async _0x1ff7f8=>{const _0x22f952=_0x35d363;let _0x4935=_0x1ff7f8[_0x22f952(0x1ca)](),_0x3f974b=await this[_0x22f952(0x2fe)](_0x4935,_0x5c2ea6[_0x22f952(0x334)]);this[_0x22f952(0x2c4)][_0x22f952(0x241)](_0x4935,_0x3f974b);}),_0x3db10(this[_0x35d363(0x2a8)][_0x35d363(0x170)](_0x1e7823[_0x35d363(0x250)]),this[_0x35d363(0x2a8)][_0x35d363(0x170)](_0x1e7823[_0x35d363(0x334)]))['pipe'](_0x1bb453(this[_0x35d363(0x1da)]))[_0x35d363(0x247)](_0x59eb58=>{const _0x14c8a7=_0x35d363;let _0x164c5e=_0x59eb58[_0x14c8a7(0x1ca)](),_0xf6a70a=this[_0x14c8a7(0x2c4)]['get'](_0x164c5e);_0xf6a70a&&(_0xf6a70a[_0x14c8a7(0x1f8)](),this[_0x14c8a7(0x2c4)][_0x14c8a7(0x1b3)](_0x164c5e));});}async[_0x1b551c(0x2fe)](_0x2fc658,_0x244e4f){const _0x4d1e3b=_0x1b551c;let _0x299c8d=await this['_collabSessionService'][_0x4d1e3b(0x12f)](_0x2fc658),_0x4d79e6=this[_0x4d1e3b(0x2cb)][_0x4d1e3b(0x176)](this[_0x4d1e3b(0x16e)](_0x244e4f),_0x2fc658,_0x244e4f,_0x299c8d);return await _0x4d79e6[_0x4d1e3b(0x11b)](),this[_0x4d1e3b(0x109)][_0x4d1e3b(0x2bf)](_0x4d79e6),_0x4d79e6;}['_getCtorByUniverType'](_0x439c03){const _0x62df8=_0x1b551c;switch(_0x439c03){case _0x5c2ea6[_0x62df8(0x334)]:return qt;case _0x5c2ea6[_0x62df8(0x250)]:return Jt;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x439c03);}}};tn=L([I(0x0,_0x525df4(_0x4fe526)),I(0x1,_0x525df4(Q)),I(0x2,_0x18a450),I(0x3,_0x2277bb)],tn);function _0x573a(){const _0x3e50b0=['_updateStatus','[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.','UNISCRIPT_RUN','_transformRemoteChangesetByStateCache','reconnect','2382158ZmCZkP','_createInitialState','_onRemoteACK','/universer-api/uniscript','_onFetchMissResult','submit\x20changeset\x20error!','get','NOT_COLLAB','/object/','prototype','resolve','updateOfflineData','_retryCount','univer-pro.collaboration-client.single-active-unit-service','_isPermissionRej','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','dispose','onStateChange','unit-cache-','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_roomCreated$','_createInitialStateImpl','url','revision','parse','_initCloseConn','splice','x-univer-host','then','NO_OTHER_CLIENTS_EDITING','failed\x20to\x20apply\x20missed\x20changesets!','includes','_showConflictNotification','getLatestCsReqIdBySid','pending','find','_getDownloadEndpointURL','defineProperty','_unitID','updateCollaborator','signUrlServerUrl','getDeserializedSheetBlock','_clearTimeoutTimer','unitID','getCurrentUser','setShowComponents','_HTTPService','_getSignURL','\x0aCurrent:\x20','_initUnitPermissionChange','_status$','_pendingMutations','getAllMembers','registerHTTPInterceptor','roles','sessionStatus','setWaitCount','_awaitingChangeset','_throwTelemetryCollaborationNewChangeset','_roomMembers','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','authzUrl','_collaborationSessionService','image/gif','getCollabEntity$','_scheduleCollaborationTimeoutTimer','getValue','/new_changes','findIndex','awaiting_with_pending','_snapshotServerService','collaboration-client.local-cache-service','ONLINE','FAIL','m2Prime','/allowed','originalMeta','onCommentUpdate','append','_initDependencies','_toggleOffline','packageName','_init','push','collaborators','/role','reverse','_emitMembers','rev','set','Univer','saveSheetBlock','getInterceptPoints','__splitChunk__','SHOULD_CLOSE_CONN','subscribe','min','[OfflineState]:\x20received\x20changeset.','copyFileMeta','COMPRESS_MUTATION_APPLY','RECV','@univerjs-pro/collaboration-client','/unit/','code','UNIVER_SHEET','c2Prime','OFFLINE','_scheduleCompleteTimestamp','_initMergeInterceptor','_getLoginPath','JOIN_ROOM_PERMISSION_DENIED','duration','UUID','reqId','_state','onRemoteChangeset','fetchMissingChangesets','collaMsg','JOIN_ROOM_NOT_EXISTS','size','_httpService','_initRequestHeader','_onCombEvent','getCollabEntity','_transformIMECache','_getCurrentRevision','_tryReconnect','HEARTBEAT','snapshot','/universer-api/file/{fileID}/sign-url','updateSnapshot','workbook','post','session','0.19.0','_event$','[SyncedState]:\x20received\x20rejection.','_collaborationTimeoutTimer','_waitCount','_shouldReportTelemetry','_acknowledgedAwaitingChangeset','transformMutationsWithChangeset','changesets','_unitInfo$','SYNCED','2997815nRVkRf','AWAITING_WITH_PENDING','onRemoteRetry','event$','add','withCredentials','src','connection\x20error','sheets','apply','onTransformIME','encodeURIComponent','joinRsp','permissionRejEvent','LOCAL_CACHE_INTERVAL','PERMISSION_DENIED','clear','image/png','_candidateSocket','_imageSourceCache','_sheetTransformSelectionsService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','addImageSourceCache','AWAITING','1BIOrUP','target','onLocalMutation','from','_waitForHeartbeatResponse','NEW_CHANGESETS','onMissingChangesets','JOINING','_socket$','_onConnectionFailed','getConfig','_transformService','LIVESHARE_NEW_HOST','_disableEditing','saveChangeset','fromCollab','_transformUndoredo','state$','encode','MUTATION','socket$','_decreaseWaiting','_removeRoom','_univerInstanceService','28753650zEVorE','USERS_LEAVE','loadUnitOfRevision','roomInfos','_resendTimeout','getFocusedUnit','_transformRemoteChangesetByIMECache','objectType','_getUndoStack','_sendHeartbeatTimer','resend','COMPRESS_MUTATION_SEND','_schedule','awaitingChangeset','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','SUBMIT_CHANGESET_TIMEOUT','_substituteUndoStack','call','_state$','LIVESHARE_FETCH_OPERATIONS','has','getMemberID','next','session.room-cnt-exceeds','fromCharCode','_socketReady','update','_entities','onRemoteRej','avatar','UPDATE_PERMISSION_OBJ','startsWith','getCurrentRevOfUnit','objectID','_injector','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','People','catch','_sendingTimer','_rescheduleHeartbeat','_collaborationPaused','result','&source=','_replaceFileID','unsubscribe','not_collab','isPermissionRej','376cANGTm','onStarting','enableAuthServer','_collaborationUIEventService','complete','setCurrentUser','_permissionService','_onConflict','_resendWithTimeout','_stopTelemetryCollaborationNewChangeset','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','JOIN_ROOM_FAILED','interceptor','UPDATE_CURSOR','override','toString','_unlockTransition','SUBMIT_CHANGESET','_socketService','members$','FETCH_MISS','appendMutation','loadSheet','getUnitType','enableSingleActiveInstanceLock','univer-pro.collaboration-client-socket-service','eventID','onTransformRemoteChangesetByIMECache','_changesetReqId','status$','[CollaborationSession]','_clearLocalCache','ciphertext','map','localCacheService','debug','executeCommand','close','_startCollaboration','_updateLocalCache','replace','114471VcBwiI','fetch_missing','unitId','UNIVER_SLIDE','HEARTBEAT_INTERVAL','SNAPSHOT_URL_KEY','_singleActiveUnitService','_incrementRevisionNumber','state','_substituteRedoStack','_config','ERROR_IMAGE','getResourcesRequest','string','_replayCachedMutations','compose','_submitChangeset','csRejEvent','_toggleOnline','readAsDataURL','_collabSessionService','FETCH_MISSING','LIVESHARE_REQUEST_HOST','name','getSnapshotAPIPath','SUCCUSS','allowed','initWorkbookPermissionChange','decorate','_exhaustRemoteChangesetQueue','removeMember','USERS_ENTER','send','slice','textRanges','max','joinEvent','list','_handler','socketService','toPrimitive','collaboration-client.config','_onMessage','addHandlerCallback','createSocket','userID','[CollaborationEntity]','_timeoutTimer','put','headers','entries','UNIVER_DOC','_onUserLeave','?size=','infoRsp','uploadFileServerUrl','_revisionService','actions','getMember','/-/object/-/batch_allowed','image/jpeg','MSG_FOR_ERROR','session.room-not-exists','sid','requestParams','emitEvent','_executeRemoteChangeset','href','getRoom','/universer-api/authz','CLOSE_ROOM','reject','_onRemoteChangeset','_resendTimer','fetchThroughInterceptors','_joinRoom','_onConnectionOpen','retryConnectingInterval','onMutationExecutedForCollab','FileId','\x20-\x20','_commentService','HELLO','_updateState','/resources','/block/','encrypt','PERSON','_sender','Failed\x20to\x20update\x20permission\x20point','file','&to=','JOIN','updateMember','mutations','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','[OfflineState]:\x20received\x20acknowledgement.','now','batchAllowed','type','refreshPermission','_entityInit$','unknown','_localeService','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','_handlerCallback','_socketMessageSubscription','_createSocket','putCollaborators','UnitEmbedded','[DataLoaderService]','_onJoinRoomEvent','/rev/','_sendHeartbeat','onTransformState','/collaborator','baseRev','socket\x20close','?url=','init','[FetchMissState]','iterator','capture','_transformSelections','action','_listenToNetworkCondition','collabSubmitChangesetUrl','status','onSyncEditingCollabCursor','_members$','_clearHeartbeatTimer','isArray','_eventService','_commentUpdate$','LEAVE','OTHER_CLIENT_EDITING','POST','BASE64','_members','requireSession','focused$','SOCKET_FAILED_RETRY','responseType','reduce','fetchMiss','_getRedoStack','_lockTransition','getOwnPropertyDescriptor','c1Prime','object','[CollaborationUndoRedoService]','updatePermissionPoint','346280UOIrAL','open$','sendChangesetTimeout','repeat','HEARTBEAT_TIMEOUT','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','transformSelections','PSEUDO_FETCH_MISSING_RESULT','saveImage','getTypeOfUnitAdded$','_applyRemoteChangeset','getTime','&assign=','body','localeService','_remoteChangesetQueue','_getAPIPrefix','_logService','getWorkbookSelections','memberID','stopTime','[CollaborationSessionService]','_clearUndo','getCurrentSelections','onMissedChangesetFetched','_createHandler','getImage','image/jpg','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','liveShareNewHost','liveShareOperation','asObservable','_onLocalMutation','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','toggleOnline','_networkConditionService','_telemetryInfo','shouldCloseConn','newCsEvent','_clearRetryConnectingTimer','GLOBAL_ROOMS_CNT_EXCEEDS','forEach','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_sessions','SOCKET_FAILED','getUnitOnRev','closeSession','_socket','LIVESHARE_TERMINATE','data','_getCtorByUniverType','PENDING','getTypeOfUnitDisposed$','{fileID}','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','getSheetBlock','_transitionLocked','selections','createInstance','_startTelemetryCollaborationNewChangeset','deleteCollaborator','_getAPIPrefixPath','[OfflineState]:\x20received\x20rejection.','_compressMutationService','_transformStack','OTHER_CLIENTS_EDITING','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','_onOffline','/-/object/list','stringify','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','disposeWithMe','245541DkKZHY','function','telemetry\x20info\x20is\x20not\x20initialized','/universer-api/comb','CHANGESET_REJ','every','routeKey','offline','_onRecvEvent','6HpNBmz','_clearCollaborationTimeoutTimer','fetching\x20missing\x20changesets\x20from\x20','method','IDLE','\x0aAfter:\x20','_getSendChangesetTimeout','_configService','close$','[SyncedState]:\x20received\x20acknowledgement.','commentUpdateEvent','JOIN_ROOM_FULL','_clearRedo','_commandService','pipe','_localCacheService','_syncEditingCollabCursor','params','incrementRevOfUnit','toggleOffline','onTransformRemoteChangesetByStateCache','CHANGESET_SHOULD_RETRY','CONFLICT','error$','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_changesetSessionId','_checkMissing','patch','/universer-api/snapshot/','DEFAULT_FILE_NAME','_retryConnectingTimer','readyForCollab','INGEST','_maxTotalRetryTimeout','updateCursorEvent','_instanceService','symbol','transformChangesets','delete','_clearScheduledTask','ws://127.0.0.1:8000/universer-api/comb/connect','session.join-failed','length','univer-pro.collaboration-client.network-condition.service','_telemetryService','getSheetId','_transformStateCache','cmd','_getUploadFileURL','[PendingState]:\x20unhandled\x20univer\x20type:\x20','random','sessionStatus$','enableOfflineEditing','subject','transformUndoRedo','CHANGESET_ACK','image/bmp','values','onlyLocal','saveSnapshot','unitInfo$','getUnitId','collabWebSocketUrl','range','_sessionStatus$','onTransformSelections','_change$','_snapshotService','_registerDependencies','_tryEnsureSocket','LIVESHARE_OPERATION','_type','_queuedRemoteChangesets','\x20in\x20_schedule.','_memberService','message$','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','dispose$','RETRY_CONNECTING_MAX_COUNT','onRemoteAck','error','session.room-permission-denied','8119233DjCTBa','filter','startTime','auth.needGotoLoginAlert'];_0x573a=function(){return _0x3e50b0;};return _0x573a();}var nn=_0x1b551c(0x24d),rn=_0x1b551c(0x26e);let an=class extends _0x507a94{constructor(_0x547e52,_0x42e2e2){const _0x3950bd=_0x1b551c;super(),this['_univerInstanceService']=_0x547e52,this['_configService']=_0x42e2e2,this[_0x3950bd(0x23a)]();}[_0x1b551c(0x23a)](){const _0x5d3953=_0x1b551c;this[_0x5d3953(0x183)](this[_0x5d3953(0x2a8)][_0x5d3953(0x130)][_0x5d3953(0x247)](()=>{const _0x4487eb=_0x5d3953;var _0x427d21;let _0x3c333c=this[_0x4487eb(0x2a8)][_0x4487eb(0x2ae)](),_0xfad84d=(_0x427d21=this['_configService'][_0x4487eb(0x29b)](_0x4487eb(0x1aa)))==null?_0x4487eb(0x242):_0x427d21;_0x3c333c instanceof _0x2fb769&&(_0xfad84d=_0x3c333c[_0x4487eb(0x318)]),document['title']=_0xfad84d;}));}};an=L([I(0x0,_0x2277bb),I(0x1,_0x18a450)],an);let on=class{constructor(_0x4f889c,_0x2146b9,_0x315d65){const _0x2c09a1=_0x1b551c;this['_configService']=_0x4f889c,this[_0x2c09a1(0x260)]=_0x2146b9,this[_0x2c09a1(0x14a)]=_0x315d65,this[_0x2c09a1(0x11b)]();}[_0x1b551c(0x11b)](){const _0x1004f1=_0x1b551c;this[_0x1004f1(0x260)][_0x1004f1(0x21d)]({'priority':0x1,'interceptor':(_0x194e28,_0x321cf3)=>_0x321cf3(_0x194e28)[_0x1004f1(0x19b)](_0x518ce1(async _0x19b340=>{const _0x4741cd=_0x1004f1;let _0x17ad0e=_0x19b340;if(_0x17ad0e['status']===0x191){if(typeof window>'u')throw Error(_0x4741cd(0x158));if(window['confirm'](this[_0x4741cd(0x14a)]['t'](_0x4741cd(0x1e2)))){let _0x5d3519=window[_0x4741cd(0x284)](window['location'][_0x4741cd(0xe7)]);window['location']['href']=this[_0x4741cd(0x255)]()+_0x4741cd(0x11a)+_0x5d3519;}}return _0x17ad0e;}))});}[_0x1b551c(0x255)](){const _0x4c46cb=_0x1b551c;var _0x4d5bc5;let _0x3f755f=this[_0x4c46cb(0x194)][_0x4c46cb(0x29b)](H);return(_0x4d5bc5=_0x3f755f==null?void 0x0:_0x3f755f['loginUrlKey'])==null?'/universer-api/oidc/authpage':_0x4d5bc5;}};on=L([I(0x0,_0x18a450),I(0x1,_0x525df4(_0x3b6234)),I(0x2,_0x525df4(_0x3dcdf2))],on);let sn=class extends _0x507a94{constructor(_0x341f15,_0x2d372f){const _0x148888=_0x1b551c;super(),this[_0x148888(0x216)]=_0x341f15,this[_0x148888(0x194)]=_0x2d372f,this[_0x148888(0x254)]();}[_0x1b551c(0x254)](){const _0x42ec0c=_0x1b551c;let _0x2d0f4c=this;this[_0x42ec0c(0x183)](this[_0x42ec0c(0x216)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x35a1c1({'isMatch'(_0x2af426){const _0x4caa1d=_0x42ec0c;var _0x11035c;if(_0x2af426[_0x4caa1d(0x190)]==='POST'&&(_0x11035c=_0x2af426[_0x4caa1d(0xe4)])!=null&&_0x11035c['body']){let {objectID:_0x2404d5,objectType:_0x853158}=_0x2af426['requestParams'][_0x4caa1d(0x149)]||{};if(!_0x2404d5||_0x853158===void 0x0)return!0x1;let _0x22b501=_0x2d0f4c['_getAPIPrefixPath']()+'/'+_0x853158+_0x4caa1d(0x1f0)+_0x2404d5+_0x4caa1d(0x233);if(_0x2af426[_0x4caa1d(0x1fe)]===_0x22b501)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1d6819){var _0x28bc9a;return(_0x28bc9a=_0x1d6819['requestParams'])==null?void 0x0:_0x28bc9a['body'];},'mergeParamsToRequest'(_0x2b55c6,_0x2737b3){const _0x47f537=_0x42ec0c;let _0x501014=_0x2d0f4c[_0x47f537(0x179)]()+'/-/object/-/batch_allowed',_0x2ae5be=_0x2b55c6[_0x47f537(0x133)]((_0x305572,_0x2a4991)=>{const _0x296611=_0x47f537;let {unitID:_0x257ee0,objectID:_0x45b328,objectType:_0x165371,actions:_0x21cb61}=_0x2a4991;return _0x305572[_0x257ee0]||(_0x305572[_0x257ee0]={}),_0x305572[_0x257ee0][_0x45b328]||(_0x305572[_0x257ee0][_0x45b328]={'objectID':_0x45b328,'objectType':_0x165371,'actions':[]}),_0x305572[_0x257ee0][_0x45b328]['actions'][_0x296611(0x23b)](..._0x21cb61),_0x305572;},{}),_0x5be535=[];for(let _0x1b1921 in _0x2ae5be)for(let _0x110731 in _0x2ae5be[_0x1b1921]){let {actions:_0x197ff2,objectType:_0x3c8e77}=_0x2ae5be[_0x1b1921][_0x110731],_0x35982c=[...new Set(_0x197ff2)];_0x5be535[_0x47f537(0x23b)]({'unitID':_0x1b1921,'objectID':_0x110731,'objectType':_0x3c8e77,'actions':_0x35982c});}return new _0x293f91(_0x47f537(0x12c),_0x501014,{'headers':_0x2737b3[_0x47f537(0x332)],'withCredentials':_0x2737b3[_0x47f537(0x27e)],'responseType':_0x2737b3[_0x47f537(0x132)],'body':{'requests':_0x5be535}});}},{'distributeResult'(_0x150214,_0x11d54e){const _0x59abb7=_0x42ec0c;let {objectActions:_0x5be2ed}=_0x150214;return _0x11d54e[_0x59abb7(0x2f9)](_0x1b67a3=>{const _0x179057=_0x59abb7;let {unitID:_0x3e8cc3,objectID:_0x5972cf,actions:_0x54fc38}=_0x1b67a3,_0x148b9b=_0x5be2ed[_0x179057(0x20b)](_0x5e1586=>_0x5e1586['unitID']===_0x3e8cc3&&_0x5e1586[_0x179057(0x2ca)]===_0x5972cf);return{'config':_0x1b67a3,'result':{'actions':_0x54fc38[_0x179057(0x2f9)](_0x4b1c90=>_0x148b9b==null?void 0x0:_0x148b9b[_0x179057(0xdd)][_0x179057(0x20b)](_0x2916a4=>_0x2916a4[_0x179057(0x120)]===_0x4b1c90))[_0x179057(0x1e0)](_0x39478e=>!!_0x39478e),'error':_0x150214['error']}};});}})}));}[_0x1b551c(0x179)](){const _0x5967d1=_0x1b551c;var _0xd67fd7;let _0x437ee4=this[_0x5967d1(0x194)]['getConfig'](H);return(_0xd67fd7=_0x437ee4==null?void 0x0:_0x437ee4[_0x5967d1(0x225)])==null?_0x5967d1(0xe9):_0xd67fd7;}async['create'](_0x35b096){const _0x55fa14=_0x1b551c;let _0x8e224d=this[_0x55fa14(0x179)]()+'/'+_0x35b096['objectType']+'/object';return(await this[_0x55fa14(0x216)][_0x55fa14(0x26c)](_0x8e224d,{'body':_0x35b096}))[_0x55fa14(0x149)][_0x55fa14(0x2ca)]||'';}async[_0x1b551c(0x326)](_0x2e631b){const _0x4782a9=_0x1b551c;let _0x44ca8e=this['_getAPIPrefixPath']()+_0x4782a9(0x180);return(await this[_0x4782a9(0x216)][_0x4782a9(0x26c)](_0x44ca8e,{'body':_0x2e631b}))[_0x4782a9(0x149)]['objects'];}async[_0x1b551c(0x2c3)](_0x5a5eac){const _0x330f4c=_0x1b551c;var _0x326c5d;let _0x3245ca=this['_getAPIPrefixPath']()+'/'+_0x5a5eac[_0x330f4c(0x2b0)]+_0x330f4c(0x1f0)+_0x5a5eac[_0x330f4c(0x2ca)],_0x1673b2=await this[_0x330f4c(0x216)][_0x330f4c(0x331)](_0x3245ca,{'body':_0x5a5eac});if((_0x1673b2==null||(_0x326c5d=_0x1673b2['body'])==null||(_0x326c5d=_0x326c5d[_0x330f4c(0x1dd)])==null?void 0x0:_0x326c5d[_0x330f4c(0x24f)])!==0x1)throw Error(_0x330f4c(0xfd));}async[_0x1b551c(0x31b)](_0x225295){const _0x270856=_0x1b551c;let _0x53794f=this[_0x270856(0x179)]()+'/'+_0x225295['objectType']+_0x270856(0x1f0)+_0x225295[_0x270856(0x2ca)]+_0x270856(0x233);return(await this[_0x270856(0x216)]['post'](_0x53794f,{'body':_0x225295}))[_0x270856(0x149)]['actions'];}async[_0x1b551c(0x106)](_0x56cf14){const _0xcd8d71=_0x1b551c;let _0x3844ab=this[_0xcd8d71(0x179)]()+_0xcd8d71(0xdf);return(await this[_0xcd8d71(0x216)][_0xcd8d71(0x26c)](_0x3844ab,{'body':{'requests':_0x56cf14}}))[_0xcd8d71(0x149)]['objectActions'];}async['listRoles'](_0x5ed817){const _0x157870=_0x1b551c;let _0xaca2dc=this['_getAPIPrefixPath']()+'/'+_0x5ed817['objectType']+_0x157870(0x23d),_0x595180=await this[_0x157870(0x216)][_0x157870(0x26c)](_0xaca2dc,{'body':_0x5ed817});return{'roles':_0x595180[_0x157870(0x149)][_0x157870(0x21e)],'actions':_0x595180[_0x157870(0x149)][_0x157870(0xdd)]};}async[_0x1b551c(0x178)](_0x1162ce){const _0xdf25d0=_0x1b551c;let _0x395c4a=this['_getAPIPrefixPath']()+_0xdf25d0(0x117);await this[_0xdf25d0(0x216)]['delete'](_0x395c4a,{'params':{'collaboratorID':_0x1162ce['collaboratorID'],'objectID':_0x1162ce['objectID'],'unitID':_0x1162ce[_0xdf25d0(0x213)]}});}async[_0x1b551c(0x20f)](_0x22581f){const _0x188fd0=_0x1b551c;let _0xb7ea91=this['_getAPIPrefixPath']()+_0x188fd0(0x117);await this[_0x188fd0(0x216)][_0x188fd0(0x1a8)](_0xb7ea91,{'body':_0x22581f});}async['createCollaborator'](_0x5262a6){const _0x18b893=_0x1b551c;let _0x1a46f5=this[_0x18b893(0x179)]()+_0x18b893(0x117);await this[_0x18b893(0x216)]['post'](_0x1a46f5,{'body':_0x5262a6});}async['listCollaborators'](_0x45ccfb){const _0x5be5b4=_0x1b551c;let _0x1f1517=this[_0x5be5b4(0x179)]()+_0x5be5b4(0x117);return(await this[_0x5be5b4(0x216)][_0x5be5b4(0x1ee)](_0x1f1517,{'params':{'objectID':_0x45ccfb[_0x5be5b4(0x2ca)],'unitID':_0x45ccfb['unitID']}}))[_0x5be5b4(0x149)][_0x5be5b4(0x23c)];}async[_0x1b551c(0x110)](_0x1149e5){const _0x362018=_0x1b551c;let _0x2d6730=this[_0x362018(0x179)]()+'/collaborator';await this[_0x362018(0x216)][_0x362018(0x331)](_0x2d6730,{'body':_0x1149e5});}};sn=L([I(0x0,_0x525df4(_0x3b6234)),I(0x1,_0x525df4(_0x18a450))],sn);function cn(_0x3f318d,_0x12d9b2){const _0x9ed292=_0x1b551c;let _0x34e50b=_0x12d9b2-_0x3f318d['length']%_0x12d9b2;return _0x3f318d+String[_0x9ed292(0x2c1)](_0x34e50b)[_0x9ed292(0x13f)](_0x34e50b);}function ln(_0xdcd3ee,_0xe25617){const _0x4fad48=_0x1b551c;let _0x3c02a4=_0x108a26[_0x4fad48(0x1bf)](0x10),_0xcc9bfb=cn(_0xdcd3ee,0x10),_0x11a427=_0x8e52dd[_0x4fad48(0xfa)](_0x4b7a64['parse'](_0xcc9bfb),_0x40465d[_0x4fad48(0x200)](_0xe25617),{'iv':_0x3c02a4,'padding':_0x239262});return _0x3c02a4['concat'](_0x11a427[_0x4fad48(0x2f8)])['toString'](_0x40465d);}function un(){const _0x3de35e=_0x1b551c;let _0x5751b0=_0x2ae351()['__Key__'];if(typeof window<'u'&&window['location']!==void 0x0&&_0x5751b0){let _0x5535f4={'time':Math['floor'](Date[_0x3de35e(0x105)]()/0x3e8),'domain':location['hostname']};return ln(JSON[_0x3de35e(0x181)](_0x5535f4),_0x5751b0);}}let dn=class{constructor(_0x5a57ef){const _0x355bed=_0x1b551c;this['_httpService']=_0x5a57ef,this[_0x355bed(0x261)]();}['_initRequestHeader'](){const _0x3ad92f=_0x1b551c;this[_0x3ad92f(0x260)][_0x3ad92f(0x21d)]({'interceptor':(_0x79dc94,_0x19f94e)=>{const _0x44ed66=_0x3ad92f;let _0x299384=_0x79dc94[_0x44ed66(0x332)],_0x41e942=un();return _0x41e942&&_0x299384[_0x44ed66(0x241)](_0x44ed66(0x203),_0x41e942),_0x19f94e(_0x79dc94);}});}};dn=L([I(0x0,_0x525df4(_0x3b6234))],dn);let fn=class extends _0x2c31d0{constructor(_0x416afc,_0x50b969,_0x48d99e){const _0x2bd398=_0x1b551c;super(),this[_0x2bd398(0x14d)]=_0x416afc,this[_0x2bd398(0x1d0)]=_0x50b969,this[_0x2bd398(0x19c)]=_0x48d99e,N(this,_0x2bd398(0x277),new _0x3670a7(null)),N(this,_0x2bd398(0x1c9),this[_0x2bd398(0x277)][_0x2bd398(0x15b)]());}async[_0x1b551c(0x2ab)](_0x262122,_0x166a88,_0x42d6e1){const _0x26105d=_0x1b551c;this[_0x26105d(0x277)][_0x26105d(0x2bf)]({'unitId':_0x262122,'type':_0x166a88});let _0x5397f1=null;switch(_0x166a88){case _0x5c2ea6[_0x26105d(0x250)]:_0x5397f1=await this[_0x26105d(0x1d0)][_0x26105d(0x2ee)](_0x262122,_0x42d6e1);break;case _0x5c2ea6[_0x26105d(0x334)]:_0x5397f1=await this[_0x26105d(0x1d0)]['loadDoc'](_0x262122,_0x42d6e1);break;default:this['_logService'][_0x26105d(0x1dd)](_0x26105d(0x112),_0x26105d(0x103));break;}return _0x5397f1;}async['loadUnit'](_0x3e80fa,_0x3a636f,_0x248038){const _0x50aa51=_0x1b551c;var _0x320e34;this[_0x50aa51(0x277)][_0x50aa51(0x2bf)]({'unitId':_0x3e80fa,'type':_0x3a636f,'subUnitId':_0x248038});let _0xeda8e8=0x0,_0x32e145=await((_0x320e34=this['_localCacheService'])==null?void 0x0:_0x320e34['loadOfflineData'](_0x3e80fa));return _0x32e145&&(_0x32e145[_0x50aa51(0x2b6)]||_0x32e145[_0x50aa51(0x102)][_0x50aa51(0x1b7)]!==0x0)&&(_0xeda8e8=_0x32e145[_0x50aa51(0x240)]),_0xeda8e8===0x0&&this['_logService'][_0x50aa51(0x2fb)](_0x50aa51(0x112),_0x50aa51(0x1fb)),this[_0x50aa51(0x2ab)](_0x3e80fa,_0x3a636f,_0xeda8e8);}};fn=L([I(0x0,_0x391759),I(0x1,_0x525df4(_0x57ba06)),I(0x2,_0x244262(B))],fn);const pn=[_0x1b551c(0x28a),_0x1b551c(0xe0),_0x1b551c(0x157),_0x1b551c(0x227),_0x1b551c(0x1c5)];let mn=class{constructor(_0x1611ba,_0x5c6c4d,_0x1a20e3){const _0xde3825=_0x1b551c;this['_httpService']=_0x1611ba,this['_configService']=_0x5c6c4d,this[_0xde3825(0x2a8)]=_0x1a20e3,N(this,_0xde3825(0x272),0x0),N(this,_0xde3825(0x1cf),new _0x31bd3c()),N(this,'change$',this[_0xde3825(0x1cf)]),N(this,_0xde3825(0x28c),new Map());}[_0x1b551c(0x220)](_0x3fdf96){const _0x50f86f=_0x1b551c;this['_waitCount']=_0x3fdf96,this['_change$'][_0x50f86f(0x2bf)](_0x3fdf96);}['getImageSourceCache'](_0x116f0b,_0x5d89ee){const _0x74c880=_0x1b551c;if(_0x5d89ee===_0x147381[_0x74c880(0x12d)]){let _0x5b2827=new Image();return _0x5b2827[_0x74c880(0x27f)]=_0x116f0b,_0x5b2827;}return this[_0x74c880(0x28c)]['get'](_0x116f0b);}[_0x1b551c(0x28f)](_0xbb77f1,_0x51b74b,_0x277160){const _0x4eba29=_0x1b551c;_0x51b74b===_0x147381['BASE64']||_0x277160==null||this['_imageSourceCache'][_0x4eba29(0x241)](_0xbb77f1,_0x277160);}async[_0x1b551c(0x156)](_0x4b0d3a){const _0x159f6d=_0x1b551c;try{let _0x380529=this[_0x159f6d(0x2d4)](this[_0x159f6d(0x217)](),''+_0x4b0d3a),_0x34e1f1=(await this[_0x159f6d(0x260)][_0x159f6d(0x1ee)](_0x380529))[_0x159f6d(0x149)];if(_0x34e1f1[_0x159f6d(0x1dd)]&&_0x34e1f1[_0x159f6d(0x1dd)]['code']===_0x54483b['OK']){let _0x542399=_0x33bb5f(_0x34e1f1[_0x159f6d(0x1fe)],this[_0x159f6d(0x20c)]());return Promise[_0x159f6d(0x1f2)](_0x542399);}return Promise[_0x159f6d(0xeb)](_0x34e1f1[_0x159f6d(0x1dd)]);}catch(_0x30e62c){return Promise[_0x159f6d(0xeb)](_0x30e62c);}}async[_0x1b551c(0x144)](_0x40480d){const _0x5bd37e=_0x1b551c;let _0x515960='';if(!pn[_0x5bd37e(0x207)](_0x40480d[_0x5bd37e(0x107)]))return this['_decreaseWaiting'](),Promise[_0x5bd37e(0xeb)](Error(_0x360110['ERROR_IMAGE_TYPE']));if(_0x40480d[_0x5bd37e(0x25f)]>0x500000)return this[_0x5bd37e(0x2a6)](),Promise[_0x5bd37e(0xeb)](Error(_0x360110['ERROR_EXCEED_SIZE']));try{let _0x37c780=new FormData();_0x37c780[_0x5bd37e(0x236)](_0x5bd37e(0xfe),_0x40480d);let _0x49d1f4=this[_0x5bd37e(0x2a8)][_0x5bd37e(0x2ae)](),_0x5defdb=_0x49d1f4==null?void 0x0:_0x49d1f4['getUnitId']();if(!_0x5defdb)throw Error('unitId\x20is\x20not\x20found');let _0x182738=this[_0x5bd37e(0x1bd)]()+_0x5bd37e(0x336)+_0x40480d[_0x5bd37e(0x25f)][_0x5bd37e(0x2e7)]()+_0x5bd37e(0x2d3)+_0x33b391[_0x5bd37e(0x111)]+_0x5bd37e(0x148)+encodeURIComponent(_0x5defdb),_0x2b380a={'body':_0x37c780},_0x49c5f4=(await this[_0x5bd37e(0x260)][_0x5bd37e(0x26c)](_0x182738,_0x2b380a))['body'];if(typeof _0x49c5f4['FileId']!=_0x5bd37e(0x30e))return this[_0x5bd37e(0x2a6)](),Promise['reject'](Error(_0x360110['ERROR_IMAGE']));_0x515960=_0x49c5f4[_0x5bd37e(0xf3)];}catch{return this['_decreaseWaiting'](),Promise[_0x5bd37e(0xeb)](Error(_0x360110[_0x5bd37e(0x30c)]));}return new Promise((_0x433e5b,_0x385c13)=>{const _0x328571=_0x5bd37e;let _0x516859=new FileReader();_0x516859[_0x328571(0x314)](_0x40480d),_0x516859['onload']=_0x32b74c=>{const _0x2b0368=_0x328571;var _0x3ed022;let _0x59b040=(_0x3ed022=_0x32b74c[_0x2b0368(0x292)])==null?void 0x0:_0x3ed022['result'];if(_0x59b040==null){this[_0x2b0368(0x2a6)](),_0x385c13(Error(_0x360110[_0x2b0368(0x30c)]));return;}_0x433e5b({'imageId':_0x2f80c1(0x6),'imageSourceType':_0x147381[_0x2b0368(0x258)],'source':_0x515960,'base64Cache':_0x59b040,'status':_0x360110[_0x2b0368(0x31a)]}),this[_0x2b0368(0x2a6)]();};});}[_0x1b551c(0x1bd)](){const _0x3910fd=_0x1b551c;var _0x5be7e1;let _0x243c9e=this[_0x3910fd(0x194)][_0x3910fd(0x29b)](H);return(_0x5be7e1=_0x243c9e==null?void 0x0:_0x243c9e[_0x3910fd(0xdb)])==null?'/universer-api/stream/file/upload':_0x5be7e1;}[_0x1b551c(0x217)](){const _0x29af70=_0x1b551c;var _0x4427f5;let _0x726e6e=this[_0x29af70(0x194)][_0x29af70(0x29b)](H);return(_0x4427f5=_0x726e6e==null?void 0x0:_0x726e6e[_0x29af70(0x210)])==null?_0x29af70(0x269):_0x4427f5;}['_getDownloadEndpointURL'](){const _0x116e27=_0x1b551c;var _0x16e35c;let _0x1d2e93=this[_0x116e27(0x194)][_0x116e27(0x29b)](H);return(_0x16e35c=_0x1d2e93==null?void 0x0:_0x1d2e93['downloadEndpointUrl'])==null?location['origin']:_0x16e35c;}[_0x1b551c(0x2d4)](_0x44609f,_0x1361c1){const _0x3a0b91=_0x1b551c;return _0x44609f[_0x3a0b91(0x300)](_0x3a0b91(0x171),_0x1361c1);}['_decreaseWaiting'](){const _0x3910f3=_0x1b551c;--this['_waitCount'],this[_0x3910f3(0x1cf)][_0x3910f3(0x2bf)](this[_0x3910f3(0x272)]);}};mn=L([I(0x0,_0x525df4(_0x3b6234)),I(0x1,_0x18a450),I(0x2,_0x525df4(_0x2277bb))],mn);let hn=class{constructor(_0x2f5245,_0x5a8a19){const _0x1b0d79=_0x1b551c;this[_0x1b0d79(0x194)]=_0x2f5245,this['_HTTPService']=_0x5a8a19;}[_0x1b551c(0x179)](){const _0x3049fd=_0x1b551c;var _0x4c852c;let _0x3f627f=this[_0x3049fd(0x194)][_0x3049fd(0x29b)](H);return(_0x4c852c=_0x3f627f==null?void 0x0:_0x3f627f[_0x3049fd(0x225)])==null?_0x3049fd(0xe9):_0x4c852c;}async[_0x1b551c(0x326)](_0xbeee65){const _0x210c3c=_0x1b551c;let _0x38f834=this[_0x210c3c(0x179)]()+_0x210c3c(0x117);return{'list':[{'title':_0x210c3c(0x2cd),'mentions':(await this[_0x210c3c(0x216)][_0x210c3c(0x1ee)](_0x38f834,{'params':{'objectID':_0xbeee65[_0x210c3c(0x303)],'unitID':_0xbeee65['unitId']}}))[_0x210c3c(0x149)][_0x210c3c(0x23c)][_0x210c3c(0x2f9)](_0x273a1d=>({'objectId':_0x273a1d['id'],'name':_0x273a1d['subject'][_0x210c3c(0x318)],'metadata':{'icon':_0x273a1d[_0x210c3c(0x1c2)][_0x210c3c(0x2c6)]},'label':_0x273a1d[_0x210c3c(0x1c2)][_0x210c3c(0x318)],'objectType':_0x44f260[_0x210c3c(0xfb)]})),'metadata':{},'type':_0x44f260[_0x210c3c(0xfb)]}]};}};hn=L([I(0x0,_0x525df4(_0x18a450)),I(0x1,_0x525df4(_0x3b6234))],hn);let gn=class extends _0x2c31d0{constructor(_0x4c212a,_0x116881,_0x164b42,_0xb32909,_0x1ab678){const _0x607f16=_0x1b551c;super(),this['_injector']=_0x4c212a,this[_0x607f16(0x2a8)]=_0x116881,this[_0x607f16(0x2de)]=_0x164b42,this[_0x607f16(0x226)]=_0xb32909,this[_0x607f16(0x2db)]=_0x1ab678,this[_0x607f16(0x219)](),this['_initCloseConn']();}[_0x1b551c(0x201)](){const _0x4390fc=_0x1b551c;let _0x5e8c60=async _0x24e881=>{const _0x10ba56=_0x4b15;(await this[_0x10ba56(0x226)][_0x10ba56(0x12f)](_0x24e881))[_0x10ba56(0x27c)][_0x10ba56(0x19b)](_0x26f9fe(_0x419f19=>_0x419f19[_0x10ba56(0x2f2)]===_0x862348['SHOULD_CLOSE_CONN']),_0x5873ff(this['dispose$']))['subscribe'](_0x44a45b=>{const _0x4c9f0b=_0x10ba56;let {reason:_0x3a9be2}=_0x44a45b[_0x4c9f0b(0x16d)];this['_collaborationUIEventService']['emitEvent']({'id':P['CLOSE_ROOM'],'data':_0x3a9be2}),this['_permissionService']['updatePermissionPoint'](new _0x1d3cb6(_0x24e881)['id'],!0x1),this[_0x4c9f0b(0x226)][_0x4c9f0b(0x16a)](_0x24e881);});};_0x3db10(this[_0x4390fc(0x2a8)][_0x4390fc(0x145)](_0x1e7823[_0x4390fc(0x250)]),this[_0x4390fc(0x2a8)]['getTypeOfUnitAdded$'](_0x1e7823[_0x4390fc(0x334)]))[_0x4390fc(0x19b)](_0x1c83bc(_0x30d22c=>_0x30d22c[_0x4390fc(0x1ca)]()),_0x26f9fe(_0x129735=>!_0x1e0a4f(_0x129735)),_0x5873ff(this[_0x4390fc(0x1da)]))['subscribe'](_0x1c2573=>{_0x5e8c60(_0x1c2573);});}[_0x1b551c(0x219)](){const _0x355214=_0x1b551c;let _0x41f749=async _0x5add61=>{const _0x364400=_0x4b15;let _0x306f57=await this[_0x364400(0x226)][_0x364400(0x12f)](_0x5add61),_0x504a04=this[_0x364400(0x2cb)][_0x364400(0x1ee)](_0x73e21f);_0x306f57['event$']['pipe'](_0x26f9fe(_0x2c6722=>_0x2c6722[_0x364400(0x2f2)]===_0x862348[_0x364400(0x2c7)]),_0x5873ff(this[_0x364400(0x1da)]))[_0x364400(0x247)](_0x17a8e9=>{const _0x3dc974=_0x364400;let {objectId:_0x2813c8}=_0x17a8e9[_0x3dc974(0x16d)];_0x2813c8===_0x5add61?_0x504a04[_0x3dc974(0x31c)](_0x5add61):_0x504a04[_0x3dc974(0x108)](_0x5add61,_0x2813c8);});};_0x3db10(this['_univerInstanceService'][_0x355214(0x145)](_0x1e7823[_0x355214(0x250)]))[_0x355214(0x19b)](_0x1c83bc(_0x39afd3=>_0x39afd3[_0x355214(0x1ca)]()),_0x26f9fe(_0x1da2a2=>!_0x1e0a4f(_0x1da2a2)),_0x5873ff(this['dispose$']))[_0x355214(0x247)](_0x5a2160=>{_0x41f749(_0x5a2160);});}};gn=L([I(0x0,_0x525df4(_0x4fe526)),I(0x1,_0x2277bb),I(0x2,_0x16e820),I(0x3,_0x525df4(Q)),I(0x4,_0x525df4(F))],gn);let _n=class{constructor(_0x102916,_0x23d0e9){const _0x3a7b72=_0x1b551c;this[_0x3a7b72(0x194)]=_0x102916,this[_0x3a7b72(0x260)]=_0x23d0e9;}async[_0x1b551c(0x169)](_0x27e4c6,_0x206403){const _0x795b81=_0x1b551c;var _0x553d28;let {unitID:_0x52acad,type:_0xa04973,revision:_0x197dde=0x0}=_0x206403,_0x5ced6d=this[_0x795b81(0x319)]()+'/'+_0xa04973+_0x795b81(0x24e)+_0x52acad+_0x795b81(0x114)+_0x197dde,_0x319211=(await this[_0x795b81(0x260)][_0x795b81(0x1ee)](_0x5ced6d))[_0x795b81(0x149)],_0x2776a6=(_0x553d28=_0x319211[_0x795b81(0x268)])==null?void 0x0:_0x553d28[_0x795b81(0x26b)];if(_0x2776a6){let _0x406b58=_0x2776a6==null?void 0x0:_0x2776a6[_0x795b81(0x234)];_0x2776a6['originalMeta']=_0x4b08c4['encode'](_0x35cc08(_0x406b58)),Object[_0x795b81(0x333)](_0x2776a6[_0x795b81(0x281)])[_0x795b81(0x165)](([,_0x52afd2])=>{const _0x18b198=_0x795b81;let _0x1e37ba=_0x52afd2['originalMeta'];_0x52afd2['originalMeta']=_0x4b08c4[_0x18b198(0x2a3)](_0x35cc08(_0x1e37ba));});}return _0x319211;}async[_0x1b551c(0x173)](_0x46a70a,_0x5c3a50){const _0x1e80d3=_0x1b551c;let {unitID:_0x4c1f03,type:_0x44e29a,blockID:_0x4af2fd}=_0x5c3a50,_0x1ecbe7=this['_getAPIPrefix']()+'/'+_0x44e29a+_0x1e80d3(0x24e)+_0x4c1f03+_0x1e80d3(0xf9)+_0x4af2fd;return(await this[_0x1e80d3(0x260)][_0x1e80d3(0x1ee)](_0x1ecbe7))[_0x1e80d3(0x149)];}async[_0x1b551c(0x211)](_0x5b6bfb,_0x3196f6){const _0x1ce9cb=_0x1b551c;let {unitID:_0x6513e8,type:_0x4c07cb,blockID:_0x19f820}=_0x3196f6,_0x1b7d5c=this[_0x1ce9cb(0x14c)]()+'/block/'+_0x4c07cb+_0x1ce9cb(0x24e)+_0x6513e8+_0x1ce9cb(0xf9)+_0x19f820;return(await this[_0x1ce9cb(0x260)][_0x1ce9cb(0x1ee)](_0x1b7d5c))[_0x1ce9cb(0x149)];}async[_0x1b551c(0x25c)](_0x25c797,_0xbf043b){const _0x2ca343=_0x1b551c;let {unitID:_0xe9cf75,type:_0x52c1bb,from:_0xa31e6c,to:_0x6474ff}=_0xbf043b,_0x5724b9=this[_0x2ca343(0x14c)]()+'/'+_0x52c1bb+'/unit/'+_0xe9cf75+'/fetchmissing?from='+_0xa31e6c+_0x2ca343(0xff)+_0x6474ff;return(await this[_0x2ca343(0x260)][_0x2ca343(0x1ee)](_0x5724b9))[_0x2ca343(0x149)];}[_0x1b551c(0x319)](){const _0x279785=_0x1b551c;var _0x25309e;return(_0x25309e=this[_0x279785(0x194)][_0x279785(0x29b)](_0x279785(0x306)))==null?this[_0x279785(0x14c)]():_0x25309e;}[_0x1b551c(0x14c)](){const _0x1d17ee=_0x1b551c;var _0x4e9da8;let _0x1b4153=this[_0x1d17ee(0x194)]['getConfig'](H);return(_0x4e9da8=_0x1b4153==null?void 0x0:_0x1b4153['snapshotServerUrl'])==null?'/universer-api/snapshot':_0x4e9da8;}async[_0x1b551c(0x30d)](_0x256f91,_0x31f5e0){const _0x2e4aed=_0x1b551c;let _0x42ad6f=_0x2e4aed(0x1a9)+_0x31f5e0[_0x2e4aed(0x107)]+_0x2e4aed(0x24e)+_0x31f5e0[_0x2e4aed(0x213)]+_0x2e4aed(0xf8);return(await this['_httpService']['get'](_0x42ad6f,{'params':{'resourceId':JSON[_0x2e4aed(0x181)](_0x31f5e0['resourceIDs'])}}))['body'];}[_0x1b551c(0x1c8)](){const _0x5a2c49=_0x1b551c;throw Error(_0x5a2c49(0x1f7));}[_0x1b551c(0x26a)](){const _0x157f68=_0x1b551c;throw Error(_0x157f68(0x1f7));}[_0x1b551c(0x243)](){const _0xdc5111=_0x1b551c;throw Error(_0xdc5111(0x1f7));}[_0x1b551c(0x29f)](){const _0x331679=_0x1b551c;throw Error(_0x331679(0x1f7));}[_0x1b551c(0x24a)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x1b551c(0x209)](){const _0x379016=_0x1b551c;throw Error(_0x379016(0x1f7));}};_n=L([I(0x0,_0x18a450),I(0x1,_0x525df4(_0x3b6234))],_n);let vn=class extends _0x218ca5{constructor(_0x5917ab,_0x450f1e,_0x26b0f8,_0x4935a4,_0x4de6b0){const _0x52af13=_0x1b551c;super(_0x5917ab,_0x450f1e,_0x26b0f8),this[_0x52af13(0x29c)]=_0x4935a4,this['_logService']=_0x4de6b0;}[_0x1b551c(0x1c3)](_0x5bc90d,_0x73618e){const _0x59e4ef=_0x1b551c;let _0xd905bc=this[_0x59e4ef(0x2b1)](_0x5bc90d);if(_0xd905bc)try{let _0x16e064=this[_0x59e4ef(0x17c)](_0xd905bc,_0x73618e);this['_substituteUndoStack'](_0x5bc90d,_0x16e064);}catch(_0x432489){this['_logService'][_0x59e4ef(0x1dd)]('[CollaborationUndoRedoService]',_0x432489),this[_0x59e4ef(0x152)](_0x5bc90d);}let _0x392078=this[_0x59e4ef(0x135)](_0x5bc90d);if(_0x392078)try{let _0x250ccf=this[_0x59e4ef(0x17c)](_0x392078,_0x73618e);this[_0x59e4ef(0x30a)](_0x5bc90d,_0x250ccf);}catch(_0x491f22){this[_0x59e4ef(0x14d)][_0x59e4ef(0x1dd)](_0x491f22),this[_0x59e4ef(0x199)](_0x5bc90d);}}[_0x1b551c(0x152)](_0x34bb06){const _0x14c7e0=_0x1b551c;let _0x3dc218=this[_0x14c7e0(0x2b1)](_0x34bb06);_0x3dc218&&(_0x3dc218[_0x14c7e0(0x1b7)]=0x0,this['_updateStatus']());}[_0x1b551c(0x199)](_0x3aa720){const _0x43ea8e=_0x1b551c;let _0x1b5dd9=this[_0x43ea8e(0x135)](_0x3aa720);_0x1b5dd9&&(_0x1b5dd9[_0x43ea8e(0x1b7)]=0x0,this[_0x43ea8e(0x1e3)]());}[_0x1b551c(0x2b9)](_0x49c203,_0x24b33d){const _0x57b397=_0x1b551c;this['_undoStacks'][_0x57b397(0x241)](_0x49c203,_0x24b33d),this[_0x57b397(0x1e3)]();}[_0x1b551c(0x30a)](_0x207e0a,_0x5cc4a8){const _0x42c5dc=_0x1b551c;this['_redoStacks'][_0x42c5dc(0x241)](_0x207e0a,_0x5cc4a8),this[_0x42c5dc(0x1e3)]();}[_0x1b551c(0x17c)](_0x390cc8,_0x3a5c5a){const _0x4ea315=_0x1b551c;let _0x2c3a0f=[],_0x55aa1e=_0x3a5c5a,_0x3e9d4f=_0x3a5c5a;for(let _0x695b7b=_0x390cc8[_0x4ea315(0x1b7)]-0x1;_0x695b7b>=0x0;_0x695b7b--){let {unitID:_0x204617,undoMutations:_0x100b42,redoMutations:_0x46d3d3}=_0x390cc8[_0x695b7b],_0x4d1c04=this[_0x4ea315(0x29c)][_0x4ea315(0x275)](_0x55aa1e,_0x100b42),_0x14c921=this['_transformService'][_0x4ea315(0x275)](_0x3e9d4f,_0x46d3d3);if(_0x4fb42c(_0x4d1c04)||_0x4fb42c(_0x14c921)){this['_logService'][_0x4ea315(0x1dd)](_0x4ea315(0x13a),'transformStack\x20failed!',_0x4d1c04,_0x14c921);break;}_0x55aa1e=_0x4d1c04[_0x4ea315(0x138)],_0x3e9d4f=_0x14c921['c1Prime'],_0x2c3a0f['push']({'unitID':_0x204617,'undoMutations':_0x4d1c04[_0x4ea315(0x232)],'redoMutations':_0x14c921['m2Prime']});}return _0x2c3a0f[_0x4ea315(0x23e)]();}};vn=L([I(0x0,_0x2277bb),I(0x1,_0x158d1a),I(0x2,_0x1a5fd3),I(0x3,_0x1ea2a6),I(0x4,_0x391759)],vn);let $=class extends _0x2f27c9{constructor(_0xe39c41={},_0x2f9ed5,_0x5f37fa,_0x54d6ed){const _0x369448=_0x1b551c;super(),this['_config']=_0xe39c41,this[_0x369448(0x14d)]=_0x2f9ed5,this[_0x369448(0x2cb)]=_0x5f37fa,this[_0x369448(0x194)]=_0x54d6ed;let {..._0x59fd8a}=_0x1e8f3b({},Pt,_0xe39c41);if(!_0x59fd8a[_0x369448(0x328)])throw Error(_0x369448(0x15d));this[_0x369448(0x30b)]=_0x59fd8a,this[_0x369448(0x194)]['setConfig'](H,_0x59fd8a);}[_0x1b551c(0x2d9)](){const _0x1ae5a7=_0x1b551c;this[_0x1ae5a7(0x1d1)](),this[_0x1ae5a7(0x237)]();}[_0x1b551c(0x1d1)](){const _0x140a44=_0x1b551c;var _0x1fd478,_0x51d8a5;this[_0x140a44(0x2cb)]['has'](_0x126452)&&this[_0x140a44(0x14d)][_0x140a44(0x1dd)]('[UniverCollaborationClientPlugin]',_0x140a44(0x2e2));let _0x14e751=_0x2c8b38([[_0x126452,{'useClass':vn}],[Q],[R],[V],[on],[dn],[Et],[gn],[F],[fn],[Qt,{'useClass':this['_config'][_0x140a44(0x328)]}],[_0x276c62,{'useClass':_n}],[_0x5199cb,{'useClass':sn}],[_0x52f9e,{'useClass':mn}],[_0x4162b5,{'useClass':hn}],[tn],[an]],(_0x1fd478=this[_0x140a44(0x30b)])==null?void 0x0:_0x1fd478[_0x140a44(0x2e6)]);if(!((_0x51d8a5=this[_0x140a44(0x30b)])!=null&&_0x51d8a5[_0x140a44(0x2f0)])){let _0x2506e6=_0x14e751[_0x140a44(0x22c)](([_0x2ba257])=>_0x2ba257===Mt);_0x2506e6!==-0x1&&_0x14e751[_0x140a44(0x202)](_0x2506e6,0x1);}_0x418870(this[_0x140a44(0x2cb)],_0x14e751);}[_0x1b551c(0x237)](){const _0x2c1b7c=_0x1b551c;var _0x1419ec,_0x3eb1e1;if(this['_injector'][_0x2c1b7c(0x1ee)](_0x3b6234)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x5380a1({'maxParallel':0x6})}),!((_0x1419ec=this[_0x2c1b7c(0x30b)])!=null&&_0x1419ec[_0x2c1b7c(0x1c1)])){var _0x38d37f;(_0x38d37f=this[_0x2c1b7c(0x2cb)][_0x2c1b7c(0x1ee)](B,_0x61c64a['OPTIONAL']))==null||_0x38d37f['disableLocalCache']();}(_0x3eb1e1=this['_config'])!=null&&_0x3eb1e1[_0x2c1b7c(0x2da)]&&_0x59f476(this[_0x2c1b7c(0x2cb)],[[on]]),_0x59f476(this[_0x2c1b7c(0x2cb)],[[dn],[tn],[gn]]);}};N($,'pluginName','UNIVER_COLLABORATION_CLIENT_PLUGIN'),N($,_0x1b551c(0x239),nn),N($,'version',rn),$=L([_0x3c391f(_0x59a3ab,_0xecaf9d,_0x35f78b),I(0x1,_0x391759),I(0x2,_0x525df4(_0x4fe526)),I(0x3,_0x18a450)],$);export{sn as AuthzIoHttpService,q as AwaitingState,J as AwaitingWithPendingState,H as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,tn as CollaborationController,Kt as CollaborationEntity,mn as CollaborationImageIoService,kt as CollaborationSession,Q as CollaborationSessionService,en as CollaborationSocketService,U as CollaborationStatus,P as CollaborationUIEventId,F as CollaborationUIEventService,vn as CollaborativeUndoRedoService,Et as CommentService,Y as ConflictState,ft as DEFAULT_COLLAB_WEB_SOCKET_URL,xt as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,pt as DEFAULT_WS_SESSION_TICKET_URL,fn as DataLoaderService,qt as DocCollaborationEntity,Z as FetchingMissState,mt as HEARTBEAT_INTERVAL_KEY,ht as HEARTBEAT_TIMEOUT_KEY,Qt as ICollaborationSocketService,B as ILocalCacheService,Yt as INetworkConditionService,Mt as ISingleActiveUnitService,yt as LOCAL_CACHE_INTERVAL,vt as LOCAL_CACHE_INTERVAL_KEY,R as MemberService,hn as MentionIoHttpService,X as OfflineState,K as PendingState,bt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,_t as RETRY_CONNECTING_MAX_COUNT_KEY,z as SessionStatus,Jt as SheetCollaborationEntity,V as SheetTransformSelectionsService,_n as SnapshotServerOverHTTPService,G as SyncedState,Nt as UnitStatus,$ as UniverCollaborationClientPlugin,Xt as deserializeToCombResponse,At as getLocalCacheKey,Zt as serializeCombRequest};
|