@univerjs-pro/collaboration-client-ui 0.15.0-insiders.20260107-3441c7a → 0.15.0-insiders.20260108-47c73e3
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/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/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/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/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 +17 -17
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1f2a65=_0x34af;(function(_0x584ab5,_0x1d00f0){const _0x1fa891=_0x34af,_0x309a8c=_0x584ab5();while(!![]){try{const _0x178016=-parseInt(_0x1fa891(0x296))/0x1+parseInt(_0x1fa891(0x1f9))/0x2*(parseInt(_0x1fa891(0xe9))/0x3)+parseInt(_0x1fa891(0x1ea))/0x4*(parseInt(_0x1fa891(0x1c8))/0x5)+-parseInt(_0x1fa891(0x2aa))/0x6*(-parseInt(_0x1fa891(0xf0))/0x7)+parseInt(_0x1fa891(0x1b7))/0x8+-parseInt(_0x1fa891(0x2ef))/0x9*(-parseInt(_0x1fa891(0x19e))/0xa)+parseInt(_0x1fa891(0x2a3))/0xb*(-parseInt(_0x1fa891(0x2b6))/0xc);if(_0x178016===_0x1d00f0)break;else _0x309a8c['push'](_0x309a8c['shift']());}catch(_0x336a27){_0x309a8c['push'](_0x309a8c['shift']());}}}(_0x4327,0x9865a));var Yt=Object['defineProperty'],Wt=(_0x34c308,_0x56ab71,_0xc1e960)=>_0x56ab71 in _0x34c308?Yt(_0x34c308,_0x56ab71,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc1e960}):_0x34c308[_0x56ab71]=_0xc1e960,_=(_0x5d50e6,_0x20a085,_0x26fff0)=>Wt(_0x5d50e6,typeof _0x20a085!=_0x1f2a65(0x1a2)?_0x20a085+'':_0x20a085,_0x26fff0);import{jsx as _0x3e97d6,jsxs as _0x257f48}from'react/jsx-runtime';import{CollaborationStatus as _0x538de5,CollaborationSessionService as _0x5bd77a,CollaborationController as _0x1136bf,DataLoaderService as _0x4c731b,MemberService as _0xd59c49,SessionStatus as _0x269c85,ILocalCacheService as _0x515268,CollaborationUIEventService as _0x2bd23a,CollaborationUIEventId as _0x4915e7,DocCollaborationEntity as _0x5ec905,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x32826f,getLocalCacheKey as _0x201e56,LOCAL_CACHE_INTERVAL as _0x5669cd,LOCAL_CACHE_INTERVAL_KEY as _0x5ee5e7,UniverCollaborationClientPlugin as _0x49dedb,CollaborationSocketService as _0x81350d,DEFAULT_WS_SESSION_TICKET_URL as _0x21dd8f,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x4252f5,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x14ff67,UnitStatus as _0x4690ae}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x32361f,IUniverInstanceService as _0x1438f4,Inject as _0x4dfc34,Injector as _0x324ea2,Disposable as _0x2d5c83,createIdentifier as _0x2fdd8b,ILogService as _0x4e954a,ICommandService as _0x2e573b,Optional as _0x2ddddf,RxDisposable as _0x404ecb,Workbook as _0x775926,DOC_RANGE_TYPE as _0x45ddb7,debounce as _0x13094e,Rectangle as _0x2a3b73,DisposableCollection as _0x1fe0d5,toDisposable as _0x54c1a7,UniverInstanceType as _0x110b5f,generateRandomId as _0x1bf832,COLORS as _0x552757,ColorKit as _0x5bd3ec,ThemeService as _0x3ef6a8,fromEventSubject as _0xd8b3cd,Tools as _0x28c8dd,CommandType as _0x17198f,IConfigService as _0x20c284,CanceledError as _0x499235,isFormulaString as _0x3b35fd,isFormulaId as _0x5a1244,ILocalStorageService as _0x3f363f,DependentOn as _0x374fe1,Plugin as _0x94153c,merge as _0x4e8836,registerDependencies as _0x1e30e7,mergeOverrideWithDependencies as _0x145280,touchDependencies as _0x88331f}from'@univerjs/core';import{useObservable as _0x28ade7,useDependency as _0x17b1c8,IUIPartsService as _0x3266db,BuiltInUIPart as _0x2f150,connectInjector as _0x18493a,IBeforeCloseService as _0x4c9c43,IMessageService as _0x1bbc3e,INotificationService as _0x3381eb}from'@univerjs/ui';import{BehaviorSubject as _0x76d03b,switchMap as _0x2ac7d0,of as _0x17f74e,takeUntil as _0x486cac,debounceTime as _0x3b870a,Subject as _0x19f322,filter as _0xa375f3,merge as _0x3d4f1b,combineLatest as _0x59760b,fromEvent as _0x4b7460,shareReplay as _0x4a38ca,mapTo as _0x252ab2,distinctUntilChanged as _0x272c00}from'rxjs';import{Tooltip as _0x2de159,clsx as _0x20c58d,MessageType as _0xf2d719}from'@univerjs/design';function _0x34af(_0x2eff1b,_0x5bdb74){_0x2eff1b=_0x2eff1b-0xba;const _0x43273c=_0x4327();let _0x34af6a=_0x43273c[_0x2eff1b];return _0x34af6a;}import{useRef as _0x55c991,createElement as _0x353f30,forwardRef as _0x33633a,useCallback as _0x57faaf}from'react';import{IRemoteInstanceService as _0x1587b9}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x572630,RefRangeService as _0x3ff7ba,SetSelectionsOperation as _0x5a0154,SheetsSelectionsService as _0xaa68d1,EffectRefRangId as _0x18b899,handleIRemoveRow as _0x5bbebc,handleIRemoveCol as _0x3fe866,handleMoveRange as _0x39ffd7,handleInsertRow as _0x9247cd,handleInsertRangeMoveRight as _0x128076,handleInsertRangeMoveDown as _0x54b36c,handleInsertCol as _0x38dd2b,handleDeleteRangeMoveUp as _0xd09c6e,handleDeleteRangeMoveLeft as _0x5c9fda,runRefRangeMutations as _0x24f7f9}from'@univerjs/sheets';import{Shape as _0x62bdab,Rect as _0x3cc5e5,getColor as _0x2c832a,RegularPolygon as _0x375636,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x1ffc9a,Vector2 as _0x2898be,SHEET_VIEWPORT_KEY as _0x3e90f3,IRenderManagerService as _0x250d44}from'@univerjs/engine-render';import{HTTPService as _0x4b02b7,ISocketService as _0x3fac03,WebSocketService as _0x6dd204}from'@univerjs/network';import{IDocClipboardService as _0x3c7bd5,NodePositionConvertToCursor as _0x119e77,NodePositionConvertToRectRange as _0x2c4532,TEXT_RANGE_LAYER_INDEX as _0x416d53,SetDocZoomRatioOperation as _0x22f044,DocIMEInputManagerService as _0xdcb31b,DocStateChangeManagerService as _0x1ec010}from'@univerjs/docs-ui';import{IImageIoService as _0x432bea}from'@univerjs/drawing';import{ITransformService as _0xb7565c,CollaborationEvent as _0x54c8bc,isTransformMutationFailure as _0x209d8a,isTransformMutationsWithChangesetSuccess as _0x512b64,RevisionService as _0xd60933,ISnapshotServerService as _0x386a0c}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x430308,RichTextEditingMutation as _0x198519,DocSelectionManagerService as _0x2778d3,DocSkeletonManagerService as _0x24c5db}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x1c050f,serializeRangeWithSheet as _0x6a1c9b,FormulaExecuteStageType as _0x759aff,FormulaExecutedStateType as _0x11b7b1,SetFormulaCalculationStartMutation as _0x294b09,SetFormulaCalculationNotificationMutation as _0x1ce548}from'@univerjs/engine-formula';import{map as _0x136019,filter as _0x137e6f,throttleTime as _0x1fd809,takeUntil as _0x149faa,switchMap as _0x579843}from'rxjs/operators';import{SheetSkeletonManagerService as _0x2a0cf7,getCoordByCell as _0x4a86f6,getSheetObject as _0xbde05f}from'@univerjs/sheets-ui';function Ge({ref:_0x4b2680,..._0x246a6d}){const _0x7ad60f=_0x1f2a65,{icon:_0x1c74a8,id:_0x2b93f6,className:_0x32d69f,extend:_0x1b6721,..._0x2f2be1}=_0x246a6d,_0x21906d=(_0x7ad60f(0x26e)+_0x2b93f6+'\x20'+(_0x32d69f||''))[_0x7ad60f(0x2ce)](),_0x914b5f=_0x55c991('_'+vi());return At(_0x1c74a8,''+_0x2b93f6,{'defIds':_0x1c74a8['defIds'],'idSuffix':_0x914b5f['current']},{'ref':_0x4b2680,'className':_0x21906d,..._0x2f2be1},_0x1b6721);}function At(_0x3c3139,_0x1866bc,_0x296fcd,_0x5246de,_0x5c340c){const _0x3c859c=_0x1f2a65;return _0x353f30(_0x3c3139[_0x3c859c(0x27e)],{'key':_0x1866bc,...gi(_0x3c3139,_0x296fcd,_0x5c340c),..._0x5246de},(Ei(_0x3c3139,_0x296fcd)['children']||[])[_0x3c859c(0x29f)]((_0x172aa6,_0x37af3c)=>At(_0x172aa6,_0x1866bc+'-'+_0x3c3139[_0x3c859c(0x27e)]+'-'+_0x37af3c,_0x296fcd,void 0x0,_0x5c340c)));}function gi(_0x31b01d,_0x47a175,_0x1f4381){const _0x380150=_0x1f2a65,_0x179d8b={..._0x31b01d[_0x380150(0x2d5)]};_0x1f4381!=null&&_0x1f4381[_0x380150(0xba)]&&_0x179d8b[_0x380150(0x15b)]===_0x380150(0xba)&&(_0x179d8b[_0x380150(0x15b)]=_0x1f4381['colorChannel1']),_0x31b01d[_0x380150(0x27e)]===_0x380150(0x11e)&&_0x179d8b['id']&&(_0x179d8b['id']=_0x179d8b['id']+_0x47a175[_0x380150(0x1eb)]),Object['entries'](_0x179d8b)['forEach'](([_0xdf1e07,_0xe831f7])=>{const _0x3bfefc=_0x380150;_0xdf1e07==='mask'&&typeof _0xe831f7==_0x3bfefc(0x2f1)&&(_0x179d8b[_0xdf1e07]=_0xe831f7[_0x3bfefc(0x2da)](/url\(#(.*)\)/,'url(#$1'+_0x47a175[_0x3bfefc(0x1eb)]+')'));});const {defIds:_0x52c69a}=_0x47a175;return!_0x52c69a||_0x52c69a[_0x380150(0x2c9)]===0x0||(_0x31b01d['tag']===_0x380150(0x202)&&_0x179d8b[_0x380150(0x17d)]&&(_0x179d8b[_0x380150(0x17d)]=_0x179d8b['xlink:href']+_0x47a175[_0x380150(0x1eb)]),Object[_0x380150(0x20c)](_0x179d8b)[_0x380150(0x109)](([_0x21ada4,_0x34530a])=>{const _0x257408=_0x380150;typeof _0x34530a==_0x257408(0x2f1)&&(_0x179d8b[_0x21ada4]=_0x34530a[_0x257408(0x2da)](/url\(#(.*)\)/,_0x257408(0x1df)+_0x47a175[_0x257408(0x1eb)]+')'));})),_0x179d8b;}function Ei(_0x1e34e6,_0x230bb7){const _0x1213fd=_0x1f2a65;var _0x5c5634;const {defIds:_0x18c6e5}=_0x230bb7;return!_0x18c6e5||_0x18c6e5['length']===0x0?_0x1e34e6:_0x1e34e6['tag']===_0x1213fd(0x219)&&((_0x5c5634=_0x1e34e6[_0x1213fd(0x115)])!=null&&_0x5c5634['length'])?{..._0x1e34e6,'children':_0x1e34e6[_0x1213fd(0x115)][_0x1213fd(0x29f)](_0x3009ba=>typeof _0x3009ba['attrs']['id']=='string'&&_0x18c6e5&&_0x18c6e5[_0x1213fd(0x206)](_0x3009ba[_0x1213fd(0x2d5)]['id'])?{..._0x3009ba,'attrs':{..._0x3009ba['attrs'],'id':_0x3009ba[_0x1213fd(0x2d5)]['id']+_0x230bb7[_0x1213fd(0x1eb)]}}:_0x3009ba)}:_0x1e34e6;}function vi(){const _0x24585e=_0x1f2a65;return Math['random']()[_0x24585e(0x243)](0x24)[_0x24585e(0x220)](0x2,0x8);}Ge[_0x1f2a65(0xd8)]=_0x1f2a65(0x188);const pi={'tag':'svg','attrs':{'xmlns':_0x1f2a65(0x1b4),'fill':_0x1f2a65(0x1d8),'viewBox':_0x1f2a65(0x2f5),'width':_0x1f2a65(0x2e3),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x1f2a65(0x27d)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x1f2a65(0x1e3),'strokeLinejoin':_0x1f2a65(0x1e3),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x1f2a65(0x2eb),'attrs':{'id':_0x1f2a65(0x24b)},'children':[{'tag':'path','attrs':{'fill':_0x1f2a65(0x222),'d':_0x1f2a65(0xc4)}}]}]}],'defIds':[_0x1f2a65(0x24b)]},Pt=_0x33633a(function(_0x1169b3,_0x133940){const _0xcd232c=_0x1f2a65;return _0x353f30(Ge,Object[_0xcd232c(0x248)]({},_0x1169b3,{'id':_0xcd232c(0x204),'ref':_0x133940,'icon':pi}));});Pt[_0x1f2a65(0xd8)]=_0x1f2a65(0x127);const Oi={'tag':'svg','attrs':{'xmlns':_0x1f2a65(0x1b4),'fill':_0x1f2a65(0x1d8),'viewBox':_0x1f2a65(0x2ec),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x1f2a65(0x18d)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x1f2a65(0x218),'strokeLinecap':_0x1f2a65(0x1e3),'strokeLinejoin':_0x1f2a65(0x1e3),'strokeWidth':1.2}}]},{'tag':_0x1f2a65(0x219),'attrs':{},'children':[{'tag':_0x1f2a65(0x2eb),'attrs':{'id':_0x1f2a65(0xe0)},'children':[{'tag':_0x1f2a65(0x1c4),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':_0x1f2a65(0x22e)}}]}]}],'defIds':[_0x1f2a65(0xe0)]},wt=_0x33633a(function(_0x49255c,_0x131972){const _0x3de7ce=_0x1f2a65;return _0x353f30(Ge,Object[_0x3de7ce(0x248)]({},_0x49255c,{'id':'on-line-icon','ref':_0x131972,'icon':Oi}));});wt[_0x1f2a65(0xd8)]=_0x1f2a65(0x1ff);function Ti(_0x12df48){const _0x4149a6=_0x1f2a65;switch(_0x12df48){case _0x538de5[_0x4149a6(0x2f9)]:return _0x4149a6(0x1e0);case _0x538de5[_0x4149a6(0x263)]:return _0x4149a6(0x167);case _0x538de5[_0x4149a6(0x21b)]:return'collabStatus.fetchMiss';case _0x538de5[_0x4149a6(0x1f1)]:return _0x4149a6(0x1f2);case _0x538de5['AWAITING']:case _0x538de5[_0x4149a6(0x2d3)]:return'collabStatus.syncing';case _0x538de5[_0x4149a6(0x130)]:case _0x538de5[_0x4149a6(0x2b0)]:return'collabStatus.synced';}}function Ci(_0x54f868){const _0xd6a77d=_0x1f2a65,{status$:_0x44dd65}=_0x54f868,_0x17485f=_0x28ade7(_0x44dd65,_0x538de5[_0xd6a77d(0x1f1)]),_0x113c78=_0x17b1c8(_0x32361f),_0x5ba298=_0x17b1c8(_0x5bd77a),_0x3545b0=_0x17485f!==_0x538de5[_0xd6a77d(0x2f9)],_0x5af439=_0x113c78['t'](Ti(_0x17485f)),_0x1c3055=_0x3545b0?_0x3e97d6(wt,{}):_0x3e97d6(Pt,{}),_0x30c434=_0x57faaf(()=>{const _0x383e55=_0xd6a77d;_0x3545b0||_0x5ba298[_0x383e55(0x1c9)]();},[_0x3545b0,_0x5ba298]);function _0x513395(){const _0x4d6e9b=_0xd6a77d;return _0x257f48(_0x4d6e9b(0x2b3),{'className':_0x4d6e9b(0x259),'onClick':_0x30c434,'children':[_0x3e97d6(_0x4d6e9b(0x2b3),{'className':_0x20c58d('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x3545b0,'univer-text-red-500':!_0x3545b0}),'children':_0x1c3055}),_0x3e97d6(_0x4d6e9b(0x2b3),{'className':_0x4d6e9b(0x146),'children':_0x5af439})]});}return _0x3545b0?_0x513395():_0x3e97d6(_0x2de159,{'title':_0x113c78['t'](_0xd6a77d(0x242)),'children':_0x513395()});}var Ri=Object[_0x1f2a65(0x23a)],Di=(_0x16ab5a,_0x4389,_0xde7b14,_0x34bff6)=>{const _0x203fb0=_0x1f2a65;for(var _0x12f0ce=_0x34bff6>0x1?void 0x0:_0x34bff6?Ri(_0x4389,_0xde7b14):_0x4389,_0xe9141b=_0x16ab5a[_0x203fb0(0x2c9)]-0x1,_0xd47918;_0xe9141b>=0x0;_0xe9141b--)(_0xd47918=_0x16ab5a[_0xe9141b])&&(_0x12f0ce=_0xd47918(_0x12f0ce)||_0x12f0ce);return _0x12f0ce;},se=(_0x3ba531,_0x5c3ce7)=>(_0x64e688,_0xeed26e)=>_0x5c3ce7(_0x64e688,_0xeed26e,_0x3ba531);let ae=class extends _0x2d5c83{constructor(_0x3a9551,_0xf873da,_0x3aedb9,_0x56437b){const _0x1c6c41=_0x1f2a65;super(),_(this,_0x1c6c41(0x302),new _0x76d03b(_0x538de5[_0x1c6c41(0x1f1)])),(this[_0x1c6c41(0x2a4)]=_0x3a9551,this[_0x1c6c41(0x149)]=_0xf873da,this[_0x1c6c41(0x1b6)]=_0x3aedb9,this[_0x1c6c41(0xf2)]=_0x56437b,this[_0x1c6c41(0x1a7)](),this['_initStatusListener']());}[_0x1f2a65(0x2ff)](){const _0x4d79fe=_0x1f2a65;this[_0x4d79fe(0x136)](this[_0x4d79fe(0x2a4)][_0x4d79fe(0xe8)][_0x4d79fe(0x1f0)](_0x2ac7d0(()=>{const _0x1aad66=_0x4d79fe,_0x5ce22d=this[_0x1aad66(0x2a4)][_0x1aad66(0x203)]();return _0x5ce22d?this[_0x1aad66(0x1b6)][_0x1aad66(0x297)](_0x5ce22d[_0x1aad66(0xf1)]()):_0x17f74e(null);}),_0x2ac7d0(_0x592578=>_0x592578?_0x592578[_0x4d79fe(0x12b)]:_0x17f74e(_0x538de5['NOT_COLLAB'])))['subscribe'](_0x4234fe=>{const _0x536d82=_0x4d79fe;this[_0x536d82(0x302)][_0x536d82(0xf6)](_0x4234fe);}));}[_0x1f2a65(0x1a7)](){const _0x162cd9=_0x1f2a65;this['disposeWithMe'](this['_uiPartsService'][_0x162cd9(0x298)](_0x2f150[_0x162cd9(0x209)],()=>_0x18493a(Ni({'status$':this[_0x162cd9(0x302)][_0x162cd9(0x178)]()}),this['_injector'])));}};ae=Di([se(0x0,_0x1438f4),se(0x1,_0x4dfc34(_0x324ea2)),se(0x2,_0x4dfc34(_0x1136bf)),se(0x3,_0x3266db)],ae);function Ni(_0x563762){const {status$:_0x1acb95}=_0x563762;return function(){return _0x3e97d6(Ci,{'status$':_0x1acb95});};}const yt=_0x2fdd8b(_0x1f2a65(0x166));var bi=Object[_0x1f2a65(0x23a)],Li=(_0x4b3c89,_0x55f87d,_0xddd42f,_0x46abee)=>{const _0x4b2b4e=_0x1f2a65;for(var _0x2270d2=_0x46abee>0x1?void 0x0:_0x46abee?bi(_0x55f87d,_0xddd42f):_0x55f87d,_0x413ec7=_0x4b3c89[_0x4b2b4e(0x2c9)]-0x1,_0x412dcd;_0x413ec7>=0x0;_0x413ec7--)(_0x412dcd=_0x4b3c89[_0x413ec7])&&(_0x2270d2=_0x412dcd(_0x2270d2)||_0x2270d2);return _0x2270d2;},K=(_0x55e330,_0x1223bd)=>(_0x2ebbad,_0x325e98)=>_0x1223bd(_0x2ebbad,_0x325e98,_0x55e330);let ce=class extends _0x404ecb{constructor(_0x5b7a0b,_0x535759,_0x2d337e,_0x16c9f3,_0x4c7af3){const _0x539deb=_0x1f2a65;super(),this[_0x539deb(0x28c)]=_0x5b7a0b,this[_0x539deb(0xda)]=_0x535759,this[_0x539deb(0x2e9)]=_0x2d337e,this['_dataLoaderService']=_0x16c9f3,_0x4c7af3?_0x4c7af3==null||_0x4c7af3[_0x539deb(0x22f)]()[_0x539deb(0xe7)](()=>this[_0x539deb(0x2e1)]()):(this[_0x539deb(0xda)]['debug'](_0x539deb(0x240),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async['_init'](){const _0x283f96=_0x1f2a65,_0x281970=this[_0x283f96(0x28c)][_0x283f96(0x2f2)](_0x283f96(0x182)),_0x2495f1=this['_urlService'][_0x283f96(0x2f2)](_0x283f96(0x2c1)),_0x1fad58=this[_0x283f96(0x28c)][_0x283f96(0x2f2)]('subunit');if(!_0x281970||!_0x2495f1){this[_0x283f96(0xda)][_0x283f96(0x18b)]('[CollaborationDataLoaderController]',_0x283f96(0x1d4));return;}const _0x3c1b4b=await this[_0x283f96(0x2a2)][_0x283f96(0x2fd)](_0x281970,Number(_0x2495f1),_0x1fad58);_0x3c1b4b&&_0x3c1b4b instanceof _0x775926&&this[_0x283f96(0x1c1)](_0x3c1b4b);}async[_0x1f2a65(0x1c1)](_0x3ce377){const _0xbac6e5=_0x1f2a65;await this[_0xbac6e5(0x184)](_0x3ce377),_0x3ce377['activeSheet$'][_0xbac6e5(0x1f0)](_0x486cac(this[_0xbac6e5(0x175)]))[_0xbac6e5(0x2c2)](_0x10d8d5=>{_0x10d8d5&&this['_updateURLWithCurrentState'](_0x10d8d5);}),this[_0xbac6e5(0x28c)][_0xbac6e5(0x1f8)]['pipe'](_0x486cac(this['dispose$']))[_0xbac6e5(0x2c2)](()=>this['_updateSubUnitFromURLParams'](_0x3ce377));}[_0x1f2a65(0x1b0)](_0xc90c82,_0x357342=!0x1){const _0x129778=_0x1f2a65,_0x4162ef=this[_0x129778(0x28c)]['getParam'](_0x129778(0x25a));_0xc90c82['getSheetId']()!==_0x4162ef&&this['_urlService'][_0x129778(0x276)](_0x129778(0x25a),_0xc90c82['getSheetId'](),_0x357342);}async['_updateSubUnitFromURLParams'](_0x1095cb){const _0x2b94b1=_0x1f2a65;var _0x490ddf;const _0x269903=this[_0x2b94b1(0x28c)][_0x2b94b1(0x2f2)](_0x2b94b1(0x25a));if(!_0x269903||!_0x1095cb[_0x2b94b1(0x179)](_0x269903)){const _0x1abe28=_0x1095cb[_0x2b94b1(0x228)]()[0x0],_0x296e6b=_0x1095cb['getSheetBySheetId'](_0x1abe28);if(!_0x296e6b)return;this[_0x2b94b1(0x1b0)](_0x296e6b,!0x0),await this[_0x2b94b1(0x2e9)][_0x2b94b1(0x280)](_0x572630['id'],{'unitId':_0x1095cb[_0x2b94b1(0xf1)](),'subUnitId':_0x1abe28});return;}((_0x490ddf=_0x1095cb[_0x2b94b1(0x194)]())==null?void 0x0:_0x490ddf[_0x2b94b1(0x1fd)]())!==_0x269903&&await this[_0x2b94b1(0x2e9)][_0x2b94b1(0x280)](_0x572630['id'],{'unitId':_0x1095cb['getUnitId'](),'subUnitId':_0x269903});}};ce=Li([K(0x0,yt),K(0x1,_0x4e954a),K(0x2,_0x2e573b),K(0x3,_0x4dfc34(_0x4c731b)),K(0x4,_0x2ddddf(_0x1587b9))],ce);var Ui=Object[_0x1f2a65(0x23a)],Mi=(_0x4b51a4,_0x2d186e,_0x47e253,_0xdbb1ce)=>{const _0x273384=_0x1f2a65;for(var _0xc583c=_0xdbb1ce>0x1?void 0x0:_0xdbb1ce?Ui(_0x2d186e,_0x47e253):_0x2d186e,_0x55e526=_0x4b51a4[_0x273384(0x2c9)]-0x1,_0x1cd796;_0x55e526>=0x0;_0x55e526--)(_0x1cd796=_0x4b51a4[_0x55e526])&&(_0xc583c=_0x1cd796(_0xc583c)||_0xc583c);return _0xc583c;},rt=(_0x38a81c,_0x5e643f)=>(_0x3cc40f,_0x15bb0d)=>_0x5e643f(_0x3cc40f,_0x15bb0d,_0x38a81c);let $e=class extends _0x404ecb{constructor(_0x5adfe8,_0x25ec69){const _0x43df8c=_0x1f2a65;super(),this[_0x43df8c(0x171)]=_0x5adfe8,this['_imageIoService']=_0x25ec69,this[_0x43df8c(0x2e1)]();}[_0x1f2a65(0x2e1)](){const _0x336b6f=_0x1f2a65,_0x172dd1=this;this['disposeWithMe'](this[_0x336b6f(0x171)][_0x336b6f(0xee)]({'onBeforePasteImage':async _0xf106c7=>{const _0x81adc8=_0x336b6f,_0x3493b9=await _0x172dd1['_imageIoService'][_0x81adc8(0x17a)](_0xf106c7);return _0x3493b9?{'source':_0x3493b9[_0x81adc8(0xd9)],'imageSourceType':_0x3493b9[_0x81adc8(0x284)]}:null;}}));}};$e=Mi([rt(0x0,_0x3c7bd5),rt(0x1,_0x432bea)],$e);const ot=[_0x1f2a65(0x107),'jiqing.500',_0x1f2a65(0xed),_0x1f2a65(0x1af),'blue.400','yellow.400'];class Ke extends _0x2d5c83{constructor(){const _0x10b97c=_0x1f2a65;super(...arguments),_(this,_0x10b97c(0x210),new Map()),_(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x2318d3){const _0xdc2322=_0x1f2a65;if(this[_0xdc2322(0x210)][_0xdc2322(0x26a)](_0x2318d3))return this[_0xdc2322(0x210)][_0xdc2322(0x23b)](_0x2318d3);const _0x2c1816=ot[this[_0xdc2322(0x1db)]];return this[_0xdc2322(0x1db)]=(this[_0xdc2322(0x1db)]+0x1)%ot[_0xdc2322(0x2c9)],this['_assignedColors'][_0xdc2322(0x2e5)](_0x2318d3,_0x2c1816),_0x2c1816;}}function $t(_0xd91341){const _0x326ba6=_0x1f2a65;let _0x13dab3='';for(const _0x4c05f2 of _0xd91341){const {startOffset:_0xb2a5a3,endOffset:_0x12e5f4,isActive:_0x2483a8,rangeType:_0x1d5199,segmentId:_0x4e90fb,segmentPage:_0x5dec3f}=_0x4c05f2;_0x13dab3[_0x326ba6(0x2c9)]&&(_0x13dab3+=','),_0x13dab3+=_0xb2a5a3+':'+_0x12e5f4+':'+(_0x2483a8?'1':'0')+':'+_0x1d5199+':'+_0x4e90fb+':'+_0x5dec3f;}return _0x13dab3;}function Ai(_0x36bd43){const _0x557431=_0x1f2a65,_0x56521d=_0x36bd43[_0x557431(0x124)](','),_0x3c6a2f=[];for(const _0x13b36b of _0x56521d){const [_0x137726,_0x3431c3,_0x5b2eb9,_0x456460,_0x5d3fb2,_0xd2fc7]=_0x13b36b[_0x557431(0x124)](':');_0x3c6a2f[_0x557431(0x2fb)]({'startOffset':Number(_0x137726),'endOffset':Number(_0x3431c3),'collapsed':_0x137726===_0x3431c3,'isActive':_0x5b2eb9==='1','rangeType':_0x456460===_0x45ddb7[_0x557431(0x1c6)]?_0x45ddb7['TEXT']:_0x45ddb7[_0x557431(0x1e5)],'segmentId':typeof _0x5d3fb2==_0x557431(0x2f1)?String(_0x5d3fb2):'','segmentPage':Number(_0xd2fc7!=null?_0xd2fc7:-0x1)});}return _0x3c6a2f['some'](_0x19404b=>_0x19404b[_0x557431(0x1be)])||(_0x3c6a2f[0x0][_0x557431(0x1be)]=!0x0),_0x3c6a2f;}class ze extends _0x404ecb{constructor(){const _0x3bba66=_0x1f2a65;super(...arguments),_(this,_0x3bba66(0x24e),new _0x76d03b(null)),_(this,_0x3bba66(0x111),this[_0x3bba66(0x24e)][_0x3bba66(0x178)]());}['syncEditingCollabCursor'](_0x756cbc){const _0x1c1ee1=_0x1f2a65,{unitID:_0x4eb510,memberID:_0x3014fc,textRanges:_0x2fcd2c}=_0x756cbc,_0x31e6c5=$t(_0x2fcd2c);if(_0x31e6c5==='')return;const _0x6fc4b6={'unitID':_0x4eb510,'memberID':_0x3014fc,'selection':_0x31e6c5};this[_0x1c1ee1(0x24e)]['next'](_0x6fc4b6);}}var Pi=Object[_0x1f2a65(0x23a)],wi=(_0x4350af,_0x47ab31,_0x14a35a,_0x5267f1)=>{const _0x29cf44=_0x1f2a65;for(var _0x1f4b9d=_0x5267f1>0x1?void 0x0:_0x5267f1?Pi(_0x47ab31,_0x14a35a):_0x47ab31,_0xc4e8b8=_0x4350af[_0x29cf44(0x2c9)]-0x1,_0x2d08b5;_0xc4e8b8>=0x0;_0xc4e8b8--)(_0x2d08b5=_0x4350af[_0xc4e8b8])&&(_0x1f4b9d=_0x2d08b5(_0x1f4b9d)||_0x1f4b9d);return _0x1f4b9d;},A=(_0x420e26,_0x2e69e3)=>(_0x20f6ea,_0x5b3b23)=>_0x2e69e3(_0x20f6ea,_0x5b3b23,_0x420e26);const yi=0x12c,$i=0x64;let xe=class extends _0x404ecb{constructor(_0x105ead,_0xc6b488,_0x319656,_0x3b3878,_0x5ce8d9,_0x23c260,_0x40797f,_0x455202,_0x10a62e){const _0x25a17a=_0x1f2a65;super(),_(this,_0x25a17a(0xe6),!0x1),_(this,_0x25a17a(0x2e1),!0x1),_(this,_0x25a17a(0x2f8),new _0x76d03b(new Map())),_(this,_0x25a17a(0x301),this[_0x25a17a(0x2f8)]['asObservable']()),_(this,_0x25a17a(0xf4),new _0x76d03b([])),_(this,'roomMembers$',this[_0x25a17a(0xf4)][_0x25a17a(0x1f0)](_0x3b870a(yi))),_(this,'_updateLocalCursor',_0x13094e(_0x26012c=>{const _0x561984=_0x25a17a,_0x1935d4={'eventID':_0x54c8bc['UPDATE_CURSOR'],'data':{'unitID':this[_0x561984(0x193)],'memberID':this[_0x561984(0x2ee)]['getMemberID'](),'selection':$t(_0x26012c)}};this[_0x561984(0x2ee)]['send'](_0x1935d4,this['unitID']);},$i)),(this['unitID']=_0x105ead,this[_0x25a17a(0x2ee)]=_0xc6b488,this[_0x25a17a(0x149)]=_0x319656,this[_0x25a17a(0x25f)]=_0x3b3878,this['_memberService']=_0x5ce8d9,this[_0x25a17a(0x1b3)]=_0x23c260,this[_0x25a17a(0xea)]=_0x40797f,this[_0x25a17a(0x2a4)]=_0x455202,this[_0x25a17a(0x2e9)]=_0x10a62e);}get[_0x1f2a65(0x23f)](){const _0x486862=_0x1f2a65;return this['_cursorInfo$'][_0x486862(0x15f)]();}get[_0x1f2a65(0xde)](){const _0x35f049=_0x1f2a65;return this['_roomMembers$'][_0x35f049(0x15f)]();}[_0x1f2a65(0x268)](){const _0x29ec60=_0x1f2a65;super[_0x29ec60(0x268)](),this[_0x29ec60(0x2f8)][_0x29ec60(0xf6)](new Map()),this[_0x29ec60(0x2f8)][_0x29ec60(0x164)](),this[_0x29ec60(0xf4)]['next']([]),this['_roomMembers$'][_0x29ec60(0x164)]();}['init'](){const _0x1bb739=_0x1f2a65;this[_0x1bb739(0x2e1)]||(this[_0x1bb739(0x2e1)]=!0x0,this['_session']['sessionStatus$'][_0x1bb739(0x1f0)](_0x486cac(this[_0x1bb739(0x175)]))[_0x1bb739(0x2c2)](_0x5496c0=>{const _0x346a89=_0x1bb739;_0x5496c0===_0x269c85[_0x346a89(0x237)]?this['_toggleOnline']():this[_0x346a89(0x153)]();}),this[_0x1bb739(0x2ee)][_0x1bb739(0x1d7)]['pipe'](_0x486cac(this[_0x1bb739(0x175)]))[_0x1bb739(0x2c2)](_0x365e00=>{const _0x5225bf=_0x1bb739,_0xa2def8=_0x365e00[_0x5225bf(0x1a5)];_0xa2def8===_0x54c8bc['UPDATE_CURSOR']&&this[_0x5225bf(0x2e8)](_0x365e00),_0xa2def8===_0x54c8bc[_0x5225bf(0x16e)]&&this[_0x5225bf(0xc3)](_0x365e00);}),this[_0x1bb739(0x136)](this['_commandService'][_0x1bb739(0x11d)](_0x15df29=>{const _0x5c11e5=_0x1bb739,_0x1f5ebc=_0x15df29[_0x5c11e5(0x105)];_0x1f5ebc!=null&&this[_0x5c11e5(0xe6)]&&_0x15df29['id']===_0x430308['id']&&_0x1f5ebc[_0x5c11e5(0x1ed)]===this[_0x5c11e5(0x193)]&&_0x1f5ebc[_0x5c11e5(0x190)]===!0x1&&_0x1f5ebc['ranges'][_0x5c11e5(0x2c9)]>0x0&&this[_0x5c11e5(0x169)](_0x1f5ebc[_0x5c11e5(0x215)]);})),this[_0x1bb739(0x1b3)][_0x1bb739(0x111)][_0x1bb739(0x1f0)](_0x486cac(this[_0x1bb739(0x175)]))[_0x1bb739(0x2c2)](_0x5d0fb7=>{const _0x51b7c0=_0x1bb739;if((_0x5d0fb7==null?void 0x0:_0x5d0fb7[_0x51b7c0(0x193)])!==this['unitID'])return;const _0x50ed1b={'eventID':_0x54c8bc['UPDATE_CURSOR'],'data':_0x5d0fb7};this[_0x51b7c0(0x2e8)](_0x50ed1b);}),this[_0x1bb739(0x136)](this['_commandService'][_0x1bb739(0x11d)](_0x5044f9=>{const _0x2515e1=_0x1bb739;if(_0x5044f9['params']==null)return;const _0x2b16e2=_0x5044f9[_0x2515e1(0x105)];if(_0x5044f9['id']!==_0x198519['id']||_0x2b16e2['unitId']!==this[_0x2515e1(0x193)])return;const _0x511c05={'id':_0x2515e1(0x120),'params':_0x2b16e2},_0x444af4=this[_0x2515e1(0x23f)];for(const [_0x1b8974,_0x5c7eb9]of _0x444af4){const _0x5609a6={'id':_0x2515e1(0x120),'params':{'unitId':this[_0x2515e1(0x193)],'actions':null,'textRanges':_0x5c7eb9[_0x2515e1(0x215)]}},_0x34460b=this['_transformService'][_0x2515e1(0x232)](_0x511c05,_0x5609a6,!0x1);if(_0x209d8a(_0x34460b))throw _0x34460b[_0x2515e1(0x17f)];_0x444af4['set'](_0x1b8974,{..._0x5c7eb9,'ranges':_0x34460b['m2Prime']['params']['textRanges']});}queueMicrotask(()=>{const _0x1fbecb=_0x2515e1;this['_cursorInfo$'][_0x1fbecb(0xf6)](_0x444af4);});})));}[_0x1f2a65(0x2e8)](_0x29d55a){const _0x17dbb0=_0x1f2a65;var _0x594b87,_0x448414;const {memberID:_0x104d46,selection:_0x6ce617}=_0x29d55a[_0x17dbb0(0x131)],_0x1a7026=Ai(_0x6ce617),_0x16b44e=(_0x448414=(_0x594b87=this[_0x17dbb0(0x216)][_0x17dbb0(0x12d)](this[_0x17dbb0(0x193)],_0x104d46))==null?void 0x0:_0x594b87[_0x17dbb0(0x1c3)])!=null?_0x448414:_0x17dbb0(0x12e),_0x5d3e77={'color':this[_0x17dbb0(0x25f)][_0x17dbb0(0x2a9)](_0x104d46),'name':_0x16b44e,'ranges':_0x1a7026},_0x2b76ff=this[_0x17dbb0(0x23f)];_0x2b76ff[_0x17dbb0(0x2e5)](_0x104d46,_0x5d3e77),this['_cursorInfo$'][_0x17dbb0(0xf6)](_0x2b76ff);}['_onCursorDelete'](_0x51904c){const _0x356ac1=_0x1f2a65,{memberID:_0xdcc592}=_0x51904c[_0x356ac1(0x131)],_0x3c336c=this['cursorInfo'];_0x3c336c[_0x356ac1(0x163)](_0xdcc592),this['_cursorInfo$'][_0x356ac1(0xf6)](_0x3c336c);}[_0x1f2a65(0x1a0)](){const _0x16dc9a=_0x1f2a65;var _0x34b1d5;if(this[_0x16dc9a(0xe6)]=!0x0,((_0x34b1d5=this[_0x16dc9a(0x2a4)][_0x16dc9a(0x203)]())==null?void 0x0:_0x34b1d5[_0x16dc9a(0xf1)]())!==this['unitID'])return;const _0x196a3b=this[_0x16dc9a(0x149)][_0x16dc9a(0x23b)](_0x2778d3)[_0x16dc9a(0x308)]();Array[_0x16dc9a(0x199)](_0x196a3b)&&_0x196a3b[_0x16dc9a(0x2c9)]>0x0&&this[_0x16dc9a(0x169)](_0x196a3b);}['_toggleOffline'](){const _0x3b9318=_0x1f2a65;this[_0x3b9318(0xe6)]=!0x1;}};xe=wi([A(0x2,_0x4dfc34(_0x324ea2)),A(0x3,_0x4dfc34(Ke)),A(0x4,_0x4dfc34(_0xd59c49)),A(0x5,_0x4dfc34(ze)),A(0x6,_0xb7565c),A(0x7,_0x1438f4),A(0x8,_0x2e573b)],xe);var xi=Object[_0x1f2a65(0x23a)],Bi=(_0x222641,_0x5b855c,_0x44110a,_0x2a2cc8)=>{const _0x1e27a2=_0x1f2a65;for(var _0x6d9fdc=_0x2a2cc8>0x1?void 0x0:_0x2a2cc8?xi(_0x5b855c,_0x44110a):_0x5b855c,_0x640673=_0x222641[_0x1e27a2(0x2c9)]-0x1,_0x430c5b;_0x640673>=0x0;_0x640673--)(_0x430c5b=_0x222641[_0x640673])&&(_0x6d9fdc=_0x430c5b(_0x6d9fdc)||_0x6d9fdc);return _0x6d9fdc;},B=(_0x209ffd,_0x32a68a)=>(_0x22f441,_0xb3c5ca)=>_0x32a68a(_0x22f441,_0xb3c5ca,_0x209ffd);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x225417=[],_0x18e4f0=!0x1;return _0x5514af=>{const _0x3bc8a2=_0x34af;_0x225417[_0x3bc8a2(0x2fb)](_0x5514af),_0x18e4f0||(_0x18e4f0=!0x0,setTimeout(()=>{const _0x7cfe7f=_0x3bc8a2;_0x225417[_0x7cfe7f(0x109)](_0x58ccca=>_0x58ccca()),_0x225417=[],_0x18e4f0=!0x1;}));};};let Be=class extends _0x404ecb{constructor(_0x4692fe,_0x2e46c4,_0x634101,_0x56c04d,_0x40eba6,_0xf57bb4,_0x462fea,_0x177d56){const _0x288c95=_0x1f2a65;super(),_(this,_0x288c95(0xe6),!0x1),_(this,_0x288c95(0x2e1),!0x1),_(this,_0x288c95(0x2f8),new _0x76d03b(new Map())),_(this,_0x288c95(0x301),this[_0x288c95(0x2f8)][_0x288c95(0x178)]()),_(this,'_roomMembers$',new _0x76d03b([])),_(this,'roomMembers$',this[_0x288c95(0xf4)][_0x288c95(0x1f0)](_0x3b870a(Fi))),_(this,_0x288c95(0x169),_0x13094e((_0x7a4f00,_0x3ace80)=>{const _0x2f036e=_0x288c95,_0x5b41a4={'eventID':_0x54c8bc[_0x2f036e(0x1bc)],'data':{'unitID':this[_0x2f036e(0x193)],'memberID':this['_session'][_0x2f036e(0x2b5)](),'selection':_0x6a1c9b(_0x7a4f00,_0x3ace80[_0x2f036e(0x1ab)])}};this[_0x2f036e(0x2ee)][_0x2f036e(0x256)](_0x5b41a4,this[_0x2f036e(0x193)]);},ki)),(this[_0x288c95(0x193)]=_0x4692fe,this['_session']=_0x2e46c4,this[_0x288c95(0x149)]=_0x634101,this['_colorAssignService']=_0x56c04d,this['_memberService']=_0x40eba6,this[_0x288c95(0x2a4)]=_0xf57bb4,this[_0x288c95(0x2e9)]=_0x462fea,this['_refRangeService']=_0x177d56);}get[_0x1f2a65(0x23f)](){const _0x229d9b=_0x1f2a65;return this[_0x229d9b(0x2f8)]['getValue']();}get[_0x1f2a65(0xde)](){const _0x12794e=_0x1f2a65;return this[_0x12794e(0xf4)][_0x12794e(0x15f)]();}[_0x1f2a65(0x268)](){const _0x5307b5=_0x1f2a65;super[_0x5307b5(0x268)](),this[_0x5307b5(0x2f8)][_0x5307b5(0xf6)](new Map()),this['_cursorInfo$'][_0x5307b5(0x164)](),this['_roomMembers$'][_0x5307b5(0xf6)]([]),this['_roomMembers$'][_0x5307b5(0x164)]();}[_0x1f2a65(0x29c)](){const _0xa4467e=_0x1f2a65;this[_0xa4467e(0x2e1)]||(this[_0xa4467e(0x2e1)]=!0x0,this[_0xa4467e(0x2ee)][_0xa4467e(0x1b8)][_0xa4467e(0x1f0)](_0x486cac(this[_0xa4467e(0x175)]))['subscribe'](_0x46ddeb=>{const _0x360f60=_0xa4467e;_0x46ddeb===_0x269c85[_0x360f60(0x237)]?this[_0x360f60(0x1a0)]():this[_0x360f60(0x153)]();}),this[_0xa4467e(0x2ee)][_0xa4467e(0x1d7)]['pipe'](_0x486cac(this['dispose$']))[_0xa4467e(0x2c2)](_0xdf204b=>{const _0x19311e=_0xa4467e,_0xb3e081=_0xdf204b['eventID'];_0xb3e081===_0x54c8bc[_0x19311e(0x1bc)]&&this[_0x19311e(0x2e8)](_0xdf204b),_0xb3e081===_0x54c8bc[_0x19311e(0x16e)]&&this['_onCursorDelete'](_0xdf204b);}),this[_0xa4467e(0x282)](),this[_0xa4467e(0x136)](this[_0xa4467e(0x2e9)]['onCommandExecuted'](_0x2c25a1=>{const _0x44426e=_0xa4467e;if(this['_online']&&_0x2c25a1['id']===_0x5a0154['id']&&_0x2c25a1[_0x44426e(0x105)]['unitId']===this[_0x44426e(0x193)]){const _0x51c10d=_0x2c25a1[_0x44426e(0x105)];this[_0x44426e(0x169)](_0x51c10d[_0x44426e(0x13b)],_0x51c10d['selections'][0x0]);}})));}[_0x1f2a65(0x2e8)](_0x46297a){const _0x5d7a8e=_0x1f2a65;var _0x276f12,_0x6583a4;const {memberID:_0x1eef76,selection:_0x159bd7}=_0x46297a[_0x5d7a8e(0x131)],{sheetName:_0x1cc5f8,range:_0x21d3bd}=_0x1c050f(_0x159bd7),_0x2d7cdf={'name':(_0x6583a4=(_0x276f12=this[_0x5d7a8e(0x216)][_0x5d7a8e(0x12d)](this[_0x5d7a8e(0x193)],_0x1eef76))==null?void 0x0:_0x276f12[_0x5d7a8e(0x1c3)])!=null?_0x6583a4:_0x5d7a8e(0x12e),'range':this[_0x5d7a8e(0x2a8)](_0x1cc5f8,_0x21d3bd),'sheetID':_0x1cc5f8,'color':this[_0x5d7a8e(0x25f)][_0x5d7a8e(0x2a9)](_0x1eef76),'selection':_0x159bd7},_0x5b4e43=this['cursorInfo'];_0x5b4e43[_0x5d7a8e(0x2e5)](_0x1eef76,_0x2d7cdf),this[_0x5d7a8e(0x2f8)][_0x5d7a8e(0xf6)](_0x5b4e43);}['_onCursorDelete'](_0xf1754f){const _0x59e8ed=_0x1f2a65,{memberID:_0x535d7e}=_0xf1754f[_0x59e8ed(0x131)],_0xbe4541=this[_0x59e8ed(0x23f)];_0xbe4541['delete'](_0x535d7e),this[_0x59e8ed(0x2f8)][_0x59e8ed(0xf6)](_0xbe4541);}[_0x1f2a65(0x2a8)](_0x2692ab,_0x4260ed){const _0x875d05=_0x1f2a65;var _0x44fe1d,_0x16af4e;const _0x351318=(_0x16af4e=(_0x44fe1d=this[_0x875d05(0x2a4)]['getUniverSheetInstance'](this[_0x875d05(0x193)]))==null?void 0x0:_0x44fe1d[_0x875d05(0x179)](_0x2692ab))==null?void 0x0:_0x16af4e[_0x875d05(0x2c7)]();return(_0x351318==null?void 0x0:_0x351318[_0x875d05(0x191)](_0x305eb6=>_0x2a3b73[_0x875d05(0x2b8)](_0x305eb6,_0x4260ed)))||_0x4260ed;}['_onRefRangeChange'](){const _0x32564c=_0x1f2a65,_0x110d05=new _0x1fe0d5(),_0x565dee=Hi(),_0x2b2639=()=>{const _0xf9751a=_0x34af;_0x110d05['dispose']();const _0x5bb73c=(_0x57a9ae,_0x450dcc,_0x530bcf,_0x348d9b)=>{const _0x57596c=_0x34af;let _0x2330fd=[];switch(_0x57a9ae['id']){case _0x18b899['DeleteRangeMoveLeftCommandId']:{_0x2330fd=_0x5c9fda(_0x57a9ae,_0x348d9b);break;}case _0x18b899[_0x57596c(0x1fa)]:{_0x2330fd=_0xd09c6e(_0x57a9ae,_0x348d9b);break;}case _0x18b899[_0x57596c(0x100)]:{_0x2330fd=_0x38dd2b(_0x57a9ae,_0x348d9b);break;}case _0x18b899[_0x57596c(0x16c)]:{_0x2330fd=_0x54b36c(_0x57a9ae,_0x348d9b);break;}case _0x18b899[_0x57596c(0x1c0)]:{_0x2330fd=_0x128076(_0x57a9ae,_0x348d9b);break;}case _0x18b899[_0x57596c(0x140)]:{_0x2330fd=_0x9247cd(_0x57a9ae,_0x348d9b);break;}case _0x18b899[_0x57596c(0xc8)]:{_0x2330fd=_0x39ffd7(_0x57a9ae,_0x348d9b);break;}case _0x18b899[_0x57596c(0xd1)]:{_0x2330fd=_0x3fe866(_0x57a9ae,_0x348d9b);break;}case _0x18b899['RemoveRowCommandId']:{_0x2330fd=_0x5bbebc(_0x57a9ae,_0x348d9b);break;}}const _0x182a28=_0x24f7f9(_0x2330fd,_0x348d9b),_0x51c2ca=this[_0x57596c(0x23f)][_0x57596c(0x23b)](_0x450dcc);if(_0x51c2ca&&_0x182a28){const _0x2c12fd={..._0x51c2ca,'range':_0x182a28};this['cursorInfo']['set'](_0x450dcc,_0x2c12fd),_0x565dee(()=>{const _0x317923=_0x57596c,_0x17a88f=this[_0x317923(0xd7)][_0x317923(0x162)](_0x182a28,_0x1ac984=>(_0x17a88f['dispose'](),_0x5bb73c(_0x1ac984,_0x450dcc,_0x530bcf,_0x182a28)));_0x110d05[_0x317923(0x213)](_0x17a88f);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0xf9751a(0x109)]((_0x559cc4,_0x1c2840)=>{const _0x58d785=_0xf9751a,{range:_0x11d19f,sheetID:_0xff8d3b}=_0x559cc4,_0x328be7=this[_0x58d785(0xd7)][_0x58d785(0x162)](_0x11d19f,_0x2b0dc3=>(_0x328be7[_0x58d785(0x268)](),_0x5bb73c(_0x2b0dc3,_0x1c2840,_0xff8d3b,_0x11d19f)));_0x110d05[_0x58d785(0x213)](_0x328be7);});};this['disposeWithMe'](_0x54c1a7(this[_0x32564c(0x2f8)]['subscribe'](()=>{_0x2b2639();})));}[_0x1f2a65(0x1a0)](){const _0x2bca90=_0x1f2a65;var _0x14fb64,_0xb535f2;if(this['_online']=!0x0,((_0x14fb64=this[_0x2bca90(0x2a4)][_0x2bca90(0x203)]())==null?void 0x0:_0x14fb64['getUnitId']())!==this[_0x2bca90(0x193)])return;const _0x5842d2=(_0xb535f2=this[_0x2bca90(0x149)]['get'](_0xaa68d1)[_0x2bca90(0x1ce)]())==null?void 0x0:_0xb535f2[0x0],_0x354f76=this[_0x2bca90(0x2a4)]['getCurrentUnitForType'](_0x110b5f[_0x2bca90(0x277)])[_0x2bca90(0x194)]();_0x5842d2&&_0x354f76&&this['_updateLocalCursor'](_0x354f76['getSheetId'](),_0x5842d2);}[_0x1f2a65(0x153)](){const _0x32f144=_0x1f2a65;this[_0x32f144(0xe6)]=!0x1;}};Be=Bi([B(0x2,_0x4dfc34(_0x324ea2)),B(0x3,_0x4dfc34(Ke)),B(0x4,_0x4dfc34(_0xd59c49)),B(0x5,_0x1438f4),B(0x6,_0x2e573b),B(0x7,_0x4dfc34(_0x3ff7ba))],Be);var Yi=Object[_0x1f2a65(0x23a)],Wi=(_0x5bfffc,_0x175e16,_0x11b7a6,_0xae209c)=>{for(var _0x5305df=_0xae209c>0x1?void 0x0:_0xae209c?Yi(_0x175e16,_0x11b7a6):_0x175e16,_0x4f2518=_0x5bfffc['length']-0x1,_0x27a7e1;_0x4f2518>=0x0;_0x4f2518--)(_0x27a7e1=_0x5bfffc[_0x4f2518])&&(_0x5305df=_0x27a7e1(_0x5305df)||_0x5305df);return _0x5305df;},Ce=(_0x56f83a,_0x5aef41)=>(_0x49687b,_0x485684)=>_0x5aef41(_0x49687b,_0x485684,_0x56f83a);let H=class extends _0x404ecb{constructor(_0x2f5a2e,_0x237ef9,_0x694ab7){const _0x567aec=_0x1f2a65;super(),_(this,'_entities',new Map()),_(this,_0x567aec(0x29d),new _0x19f322()),(this[_0x567aec(0x2a4)]=_0x2f5a2e,this[_0x567aec(0x149)]=_0x237ef9,this[_0x567aec(0x2ae)]=_0x694ab7,this[_0x567aec(0x2e1)]());}[_0x1f2a65(0x268)](){const _0x16b849=_0x1f2a65;super['dispose'](),this[_0x16b849(0x29d)][_0x16b849(0x164)](),this[_0x16b849(0x2e0)][_0x16b849(0x109)](_0x4c9726=>_0x4c9726[_0x16b849(0x268)]());}[_0x1f2a65(0x123)](_0x432b52){const _0x4e6b2a=_0x1f2a65;return this[_0x4e6b2a(0x2e0)][_0x4e6b2a(0x26a)](_0x432b52)?this[_0x4e6b2a(0x2e0)][_0x4e6b2a(0x23b)](_0x432b52)[_0x4e6b2a(0x301)]:this[_0x4e6b2a(0x29d)]['pipe'](_0xa375f3(_0x58c346=>_0x58c346[_0x4e6b2a(0x193)]===_0x432b52),_0x2ac7d0(_0x29dddf=>_0x29dddf['cursorInfo$']));}[_0x1f2a65(0x2e1)](){const _0x32f065=_0x1f2a65;this[_0x32f065(0x2a4)]['getTypeOfUnitAdded$'](_0x110b5f[_0x32f065(0x277)])[_0x32f065(0x1f0)](_0x486cac(this['dispose$']))[_0x32f065(0x2c2)](async _0x376804=>{const _0x5f4535=_0x32f065,_0x1a4cb2=_0x376804['getUnitId'](),_0x416856=await this[_0x5f4535(0x152)](_0x1a4cb2);this[_0x5f4535(0x29d)]['next'](_0x416856),this['_entities'][_0x5f4535(0x2e5)](_0x1a4cb2,_0x416856);}),this[_0x32f065(0x2a4)][_0x32f065(0x11f)](_0x110b5f['UNIVER_DOC'])[_0x32f065(0x1f0)](_0x486cac(this['dispose$']))[_0x32f065(0x1f0)](_0xa375f3(_0x1bf8fa=>!_0x1bf8fa[_0x32f065(0xf1)]()['startsWith']('__')))[_0x32f065(0x2c2)](async _0x29a210=>{const _0x9649de=_0x32f065,_0x180f0e=_0x29a210['getUnitId'](),_0x136569=await this[_0x9649de(0x1ee)](_0x180f0e);this[_0x9649de(0x29d)][_0x9649de(0xf6)](_0x136569),this[_0x9649de(0x2e0)][_0x9649de(0x2e5)](_0x180f0e,_0x136569);}),_0x3d4f1b(this['_univerInstanceService'][_0x32f065(0x251)](_0x110b5f[_0x32f065(0x148)]),this[_0x32f065(0x2a4)][_0x32f065(0x251)](_0x110b5f[_0x32f065(0x277)]))[_0x32f065(0x1f0)](_0x486cac(this[_0x32f065(0x175)]))['subscribe'](_0x53807e=>{const _0x468d01=_0x32f065,_0x29849c=_0x53807e[_0x468d01(0xf1)](),_0x2fc893=this[_0x468d01(0x2e0)]['get'](_0x29849c);_0x2fc893&&(_0x2fc893[_0x468d01(0x268)](),this['_entities'][_0x468d01(0x163)](_0x29849c));});}async[_0x1f2a65(0x152)](_0x3f7199){const _0x319ac3=_0x1f2a65,_0x524dd0=await this['_collabSessionService'][_0x319ac3(0x16f)](_0x3f7199),_0x5f13c0=this[_0x319ac3(0x149)][_0x319ac3(0x262)](Be,_0x3f7199,_0x524dd0);return _0x5f13c0['init'](),_0x5f13c0;}async[_0x1f2a65(0x1ee)](_0x290f24){const _0x52f188=_0x1f2a65,_0x15883c=await this[_0x52f188(0x2ae)]['requireSession'](_0x290f24),_0x99c84d=this[_0x52f188(0x149)]['createInstance'](xe,_0x290f24,_0x15883c);return _0x99c84d[_0x52f188(0x29c)](),_0x99c84d;}};H=Wi([Ce(0x0,_0x1438f4),Ce(0x1,_0x4dfc34(_0x324ea2)),Ce(0x2,_0x4dfc34(_0x5bd77a))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x54faa7,_0x1037fe){const _0x2a2c5d=_0x1f2a65;let {radius:_0x6254f8,width:_0x220f91,height:_0x2f1cf3}=_0x1037fe;_0x6254f8=_0x6254f8!=null?_0x6254f8:0x0,_0x220f91=_0x220f91!=null?_0x220f91:0x1e,_0x2f1cf3=_0x2f1cf3!=null?_0x2f1cf3:0x1e;let _0x3c78b5=0x0,_0x16dbbb=0x0,_0x196258=0x0;_0x3c78b5=_0x16dbbb=_0x196258=Math[_0x2a2c5d(0x18c)](_0x6254f8,_0x220f91/0x2,_0x2f1cf3/0x2),_0x54faa7[_0x2a2c5d(0x2ea)](),_0x54faa7[_0x2a2c5d(0x2a0)](_0x3c78b5,0x0),_0x54faa7['lineTo'](_0x220f91-_0x16dbbb,0x0),_0x54faa7[_0x2a2c5d(0x158)](_0x220f91-_0x16dbbb,_0x16dbbb,_0x16dbbb,Math['PI']*0x3/0x2,0x0,!0x1),_0x54faa7[_0x2a2c5d(0x2a5)](_0x220f91,_0x2f1cf3-_0x196258),_0x54faa7['arc'](_0x220f91-_0x196258,_0x2f1cf3-_0x196258,_0x196258,0x0,Math['PI']/0x2,!0x1),_0x54faa7[_0x2a2c5d(0x2a5)](0x0,_0x2f1cf3),_0x54faa7[_0x2a2c5d(0x2a5)](0x0,_0x3c78b5),_0x54faa7['arc'](_0x3c78b5,_0x3c78b5,_0x3c78b5,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x54faa7[_0x2a2c5d(0x294)](),_0x1037fe[_0x2a2c5d(0x15b)]&&(_0x54faa7[_0x2a2c5d(0x2e7)](),_0x54faa7[_0x2a2c5d(0x21a)]=_0x1037fe[_0x2a2c5d(0x15b)],_0x1037fe[_0x2a2c5d(0x174)]===_0x2a2c5d(0x132)?_0x54faa7[_0x2a2c5d(0x15b)]('evenodd'):_0x54faa7[_0x2a2c5d(0x15b)](),_0x54faa7[_0x2a2c5d(0xef)]());}class ve extends _0x62bdab{constructor(_0x461996,_0x187c62){const _0x48d937=_0x1f2a65;super(_0x461996,_0x187c62),_(this,_0x48d937(0x1b9)),_(this,_0x48d937(0x244)),(this[_0x48d937(0x1b9)]=_0x187c62==null?void 0x0:_0x187c62[_0x48d937(0x1b9)],this[_0x48d937(0x244)]=_0x187c62==null?void 0x0:_0x187c62[_0x48d937(0x244)]);}static[_0x1f2a65(0x241)](_0x36c9a1,_0x5e1516){const _0x5f039c=_0x1f2a65,{text:_0x2e2b50,color:_0x1ea1e6}=_0x5e1516;_0x36c9a1[_0x5f039c(0x2e7)](),_0x36c9a1[_0x5f039c(0x134)]=_0x5f039c(0x2bc);const _0x216e4f=_0x36c9a1[_0x5f039c(0x2cd)](_0x2e2b50)[_0x5f039c(0x1d6)],_0x1adeff=Math[_0x5f039c(0x18c)](_0x216e4f+0x2*Re,at);ji(_0x36c9a1,{'height':Q,'radius':0x4,'width':_0x1adeff,'fill':_0x1ea1e6}),_0x36c9a1[_0x5f039c(0x21a)]=_0x5f039c(0x261);const _0x28d706=Re,_0x7cd335=Q-Vi,_0x269fc6=at-0x2*Re;if(_0x216e4f>_0x269fc6){let _0x217daf='',_0x429728=0x0;for(const _0x2e64f7 of _0x2e2b50){const _0x1bce2f=_0x36c9a1['measureText'](_0x2e64f7)[_0x5f039c(0x1d6)];if(_0x429728+_0x1bce2f<=_0x269fc6-_0x36c9a1[_0x5f039c(0x2cd)](_0x5f039c(0x28b))['width'])_0x217daf+=_0x2e64f7,_0x429728+=_0x1bce2f;else{_0x217daf+=_0x5f039c(0x28b);break;}}_0x36c9a1[_0x5f039c(0x1a4)](_0x217daf,_0x28d706,_0x7cd335);}else _0x36c9a1['fillText'](_0x2e2b50,_0x28d706,_0x7cd335);_0x36c9a1[_0x5f039c(0xef)]();}[_0x1f2a65(0x110)](_0x2b6316){const _0x2946ae=_0x1f2a65;ve[_0x2946ae(0x241)](_0x2b6316,this);}}const De='collab-text-anchor-',Xi=_0x1f2a65(0x126),Gi=_0x1f2a65(0x1dd),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x1f2a65(0x10a);class ct{constructor(_0x4b5513,_0x5c1952,_0x1eaaca,_0xc4dfe7){const _0x1b5ba7=_0x1f2a65;_(this,_0x1b5ba7(0x22d),[]),_(this,'_anchor',null),_(this,_0x1b5ba7(0x265),null),_(this,_0x1b5ba7(0x2f4),null),_(this,_0x1b5ba7(0x2f6),null),_(this,'_eventUnsubscribe',null),(this[_0x1b5ba7(0x260)]=_0x4b5513,this[_0x1b5ba7(0x264)]=_0x5c1952,this['_docSkeleton']=_0x1eaaca,this[_0x1b5ba7(0x2ad)]=_0xc4dfe7,this['_render']());}set[_0x1f2a65(0x15e)](_0x26c9e7){const _0x1c93df=_0x1f2a65;_0x26c9e7?(this[_0x1c93df(0x2f4)]&&this[_0x1c93df(0x2f4)][_0x1c93df(0x307)](),this[_0x1c93df(0x265)]&&this['_textBubble'][_0x1c93df(0x113)]()):(this[_0x1c93df(0x2f4)]&&this['_anchorDot'][_0x1c93df(0x113)](),this[_0x1c93df(0x265)]&&this[_0x1c93df(0x265)][_0x1c93df(0x307)]());}[_0x1f2a65(0x268)](){const _0x2e8679=_0x1f2a65;for(const _0x447a4a of this[_0x2e8679(0x22d)])_0x447a4a[_0x2e8679(0x268)]();this[_0x2e8679(0x265)]&&this[_0x2e8679(0x265)][_0x2e8679(0x268)](),this['_anchorDot']&&this['_anchorDot'][_0x2e8679(0x268)](),this[_0x2e8679(0xd3)]&&this[_0x2e8679(0xd3)]['dispose'](),this['_eventUnsubscribe']&&this[_0x2e8679(0xfd)]();}[_0x1f2a65(0x1f3)](){const _0x2a45bf=_0x1f2a65;var _0x124fe4;const {_docSkeleton:_0x34606b,_document:_0x3c41a7}=this,{color:_0x2171ec,name:_0x36176f,ranges:_0x59e85b}=this['_cursor'],_0x333611=_0x3c41a7[_0x2a45bf(0xf5)](),{docsLeft:_0x2ee602,docsTop:_0x56394f}=_0x333611,_0x4fa4ff=new _0x119e77(_0x333611,_0x34606b);for(const {startOffset:_0x56a6a5,endOffset:_0x2c007c,rangeType:_0x477292,segmentId:_0x21472d,segmentPage:_0x123846,collapsed:_0x236e36,isActive:_0x19dd96}of _0x59e85b){const _0x418753=_0x34606b[_0x2a45bf(0x1dc)](_0x56a6a5,!0x0,_0x21472d,_0x123846);let _0x3807ba=_0x34606b[_0x2a45bf(0x1dc)](_0x2c007c,!0x0,_0x21472d,_0x123846);if(_0x3807ba==null&&(_0x3807ba=_0x34606b[_0x2a45bf(0x1dc)](_0x2c007c-0x1,!0x1,_0x21472d,_0x123846)),_0x19dd96){const {contentBoxPointGroup:_0x1575dd}=_0x4fa4ff[_0x2a45bf(0x183)](_0x3807ba,_0x3807ba);if(_0x1575dd['length']===0x0)continue;this['_drawAnchor'](_0x2171ec,_0x1575dd,_0x2ee602,_0x56394f,_0x36176f),this[_0x2a45bf(0xfd)]=this['_handleHover']();}if(_0x418753&&_0x3807ba){if(_0x477292===_0x45ddb7['RECT']){const _0x5a1874=new _0x2c4532(_0x333611,_0x34606b),{pointGroup:_0x523192}=(_0x124fe4=_0x5a1874[_0x2a45bf(0x183)](_0x418753,_0x3807ba))!=null?_0x124fe4:{};if(_0x523192==null||_0x523192[_0x2a45bf(0x2c9)]===0x0)continue;this[_0x2a45bf(0x250)](_0x2171ec,_0x523192,_0x2ee602,_0x56394f);}else{if(!_0x236e36){const {borderBoxPointGroup:_0x4a5c40}=_0x4fa4ff[_0x2a45bf(0x183)](_0x418753,_0x3807ba);if(_0x4a5c40[_0x2a45bf(0x2c9)]===0x0)continue;this[_0x2a45bf(0x205)](_0x2171ec,_0x4a5c40,_0x2ee602,_0x56394f);}}}}}[_0x1f2a65(0x165)](_0x2d9878,_0x54ae75,_0xea9ae4,_0x325c37,_0x2dd45b){const _0x5cedf2=_0x1f2a65,_0x5951f3=this[_0x5cedf2(0x25c)](_0x54ae75),{left:_0x4fa89a,top:_0x5c8ad4,height:_0x286930}=_0x5951f3,_0x23a311=this[_0x5cedf2(0x1a1)](),_0x356bbe=zi/_0x23a311,_0x5aeb22=new _0x3cc5e5(De+_0x1bf832(z),{'left':_0x4fa89a+_0xea9ae4-_0x356bbe,'top':_0x5c8ad4+_0x325c37,'height':_0x286930,'width':Ki,'fill':_0x2d9878||_0x2c832a(_0x552757['black'],0x0),'strokeWidth':_0x356bbe,'stroke':Ji,'evented':!0x0});this[_0x5cedf2(0xd3)]=_0x5aeb22,this['_scene'][_0x5cedf2(0x172)](_0x5aeb22,_0x416d53);const _0x46c462=new _0x3cc5e5(De+_0x1bf832(z),{'left':_0x4fa89a+_0xea9ae4-_0x356bbe,'top':_0x5c8ad4+_0x325c37-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x2d9878||_0x2c832a(_0x552757[_0x5cedf2(0x2cb)],0x0),'strokeWidth':0x0,'stroke':_0x2d9878||_0x2c832a(_0x552757[_0x5cedf2(0x2cb)],0x0),'evented':!0x1});this[_0x5cedf2(0x2f4)]=_0x46c462,this['_scene'][_0x5cedf2(0x172)](_0x46c462,_0x416d53);const _0xd2a297=new ve(De+_0x1bf832(z),{'left':_0x4fa89a+_0xea9ae4-_0x356bbe,'top':_0x5c8ad4+_0x325c37-Q,'text':_0x2dd45b,'color':_0x2d9878});this['_textBubble']=_0xd2a297,this[_0x5cedf2(0x264)][_0x5cedf2(0x172)](_0xd2a297,_0x416d53),this[_0x5cedf2(0x15e)]=!0x1;}[_0x1f2a65(0x303)](){const _0x26e9ef=_0x1f2a65,_0x5b9c89=this['_anchor'][_0x26e9ef(0x19d)][_0x26e9ef(0x299)](()=>{this['_hover']=!0x0;}),_0xb3b85b=this[_0x26e9ef(0xd3)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x1de9c1=_0x26e9ef;this[_0x1de9c1(0x2f6)]&&clearTimeout(this[_0x1de9c1(0x2f6)]),this[_0x1de9c1(0x2f6)]=setTimeout(()=>{const _0x1da67f=_0x1de9c1;this[_0x1da67f(0x15e)]=!0x1;},0x7d0);});return()=>{const _0x1fb368=_0x26e9ef;_0x5b9c89[_0x1fb368(0xbf)](),_0xb3b85b['unsubscribe']();};}[_0x1f2a65(0x205)](_0x509112,_0x363149,_0x4508a2,_0x1b5a03){const _0x3fca20=_0x1f2a65,_0x4a8077=new _0x5bd3ec(_0x509112)[_0x3fca20(0xf8)](0.2)['toRgbString'](),_0xfa1e29=new _0x375636(Xi+_0x1bf832(z),{'pointsGroup':_0x363149,'fill':_0x4a8077||_0x2c832a(_0x552757[_0x3fca20(0x2cb)],0.2),'left':_0x4508a2,'top':_0x1b5a03,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3fca20(0x22d)][_0x3fca20(0x2fb)](_0xfa1e29),this[_0x3fca20(0x264)][_0x3fca20(0x172)](_0xfa1e29,_0x416d53);}[_0x1f2a65(0x250)](_0x37f5cb,_0x2c7988,_0x3d1551,_0x90d153){const _0x2c0942=_0x1f2a65,_0x3d1a0a=new _0x5bd3ec(_0x37f5cb)[_0x2c0942(0xf8)](0.2)[_0x2c0942(0x1c2)](),_0x2f1b02=new _0x375636(Gi+_0x1bf832(z),{'pointsGroup':_0x2c7988,'fill':_0x3d1a0a||_0x2c832a(_0x552757[_0x2c0942(0x2cb)],0.2),'left':_0x3d1551,'top':_0x90d153,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2c0942(0x22d)][_0x2c0942(0x2fb)](_0x2f1b02),this[_0x2c0942(0x264)][_0x2c0942(0x172)](_0x2f1b02,_0x416d53);}[_0x1f2a65(0x25c)](_0x2611e2){const _0x41b1d3=_0x2611e2[0x0],_0x252df0=_0x41b1d3[0x0],_0x57a3aa=_0x41b1d3[0x2],{x:_0x14c4a1,y:_0x27ed97}=_0x252df0,{x:_0x1453b4,y:_0x426ba4}=_0x57a3aa;return{'left':_0x14c4a1,'top':_0x27ed97,'width':_0x1453b4-_0x14c4a1,'height':_0x426ba4-_0x27ed97};}[_0x1f2a65(0x1a1)](){const _0x5ae5a3=_0x1f2a65,{scaleX:_0x5a92ad,scaleY:_0x182bea}=this[_0x5ae5a3(0x264)]['getAncestorScale']();return Math[_0x5ae5a3(0x2db)](_0x5a92ad,_0x182bea);}}var Zi=Object['getOwnPropertyDescriptor'],Qi=(_0x36c23,_0x4d363b,_0x2ee889,_0x51aecb)=>{const _0x12fe06=_0x1f2a65;for(var _0x4c1fcf=_0x51aecb>0x1?void 0x0:_0x51aecb?Zi(_0x4d363b,_0x2ee889):_0x4d363b,_0x1f69fb=_0x36c23[_0x12fe06(0x2c9)]-0x1,_0x3f09bd;_0x1f69fb>=0x0;_0x1f69fb--)(_0x3f09bd=_0x36c23[_0x1f69fb])&&(_0x4c1fcf=_0x3f09bd(_0x4c1fcf)||_0x4c1fcf);return _0x4c1fcf;},ie=(_0x446627,_0x45d2b3)=>(_0x2d545d,_0x24b6ae)=>_0x45d2b3(_0x2d545d,_0x24b6ae,_0x446627);function _0x4327(){const _0x50595c=['isActive','origin','InsertRangeMoveRightCommandId','_setupSubUnitSync','toRgbString','name','path','transformSelections','TEXT','hovered','458365aCoDiZ','reconnect','setUndoRedoMutationParamsCache','_id','_initDependencies','m1Prime','getCurrentSelections','INTERNAL_ERROR','_handleHeartbeatEvent','MOBILE_HAS_BEEN_BOUND','registerBeforeClose','_setFormulaLimitStatus','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','onPointerMove$','width','event$','none','sheetID','_clearOtherTimers','_colorIndex','findNodePositionByCharIndex','collab-rect-range-','dirtyRanges','url(#$1','collabStatus.offline','OTHER_CLIENT_EDITING','textRanges','round','location','RECT','invokeId','REDEMPTION_CODE_HAS_BEEN_CREATED','_applyCommand','newValue','4toMViM','idSuffix','ERROR_AGAIN','unitId','_startDocCollabCursor','onLocalMutation','pipe','NOT_COLLAB','collabStatus.notCollab','_render','_showGuardMessage','transformStateCache','YUUMI_AI_RUN_FAILED','stack','urlChange$','2UNFOQk','DeleteRangeMoveUpCommandId','FromArray','popstate','getSheetId','transformByState','OnLineIcon','_initWindowErrorListener','_configService','use','getFocusedUnit','off-line-icon','_drawTextRange','includes','YUUMI_URL_COL_OUT_OF_RANGE','COMPLETION_FINISHED','HEADER_MENU','_unitStatus','_sheetSkeletonManagerService','entries','code','ENTITLE_DUP_SUBSCRIPTION','_updateCollabCursors','_assignedColors','collaboration.single-unit.warning','_checkCalculationAvailable','add','ACTIVE_UNIT_EVENT_CHANNEL','ranges','_memberService','ENTITLE_USE_COUPON_NOT_1ST_TRADE','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','defs','fillStyle','FETCH_MISS','_renderManagerService','_saveCache','_cursorShapes','_transformPreviousActiveRange','substring','join','white','_removeClearOtherTimer','undoState','ENTITLE_COUPON_EXPIRED','_registerRenderDependencies','flatMap','getUnhiddenWorksheets','REDEMPTION_CODE_INACTIVE','_initCommandExecutedListener','_messageService','getCurrentRevOfUnit','_shapes','translate(.97)','whenReady','bottom','ENTITLE_NEED_BILLING_ADDRESS','transformMutation','UNAUTHENTICATED','INVALID_ARGUMENT','_instanceService','disposeUnit','ONLINE','YUUMI_CONNECTOR_URL_NOT_FOUND','ALREADY_EXISTS','getOwnPropertyDescriptor','get','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','LOGIN_TOKEN_PROCESSING_FAILED','setShapeProps','cursorInfo','[CollaborationDataLoaderController]','drawWith','collab-client.tooltip.reconnect','toString','text','endRow','PAYMENT_CHANNEL_NOT_SUPPORT','with','assign','_initEvent','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','off-line-icon_clip0_910_343','catch','runOnServer','_collabCursorState$','editingUnit','_drawRectRange','getTypeOfUnitDisposed$','NOT_FOUND','getConfig','YUUMI_UNABLE_LOAD_URL','addHandlerCallback','send','_currentUsage','_scheduleClearOtherTimer','univer-flex\x20univer-items-center','subunit','sessionTicket','_getAnchorBounding','message','functionsExecutedState','_colorAssignService','_cursor','#FFF','createInstance','CONFLICT','_scene','_textBubble','onTransformChange$','_taskIds','dispose','socket$','has','docStateChange$','column','_docSyncEditingCollabCursorService','univerjs-icon\x20univerjs-icon-','getItem','_collaborationUIEventService','transformMutationsWithChangeset','startColumn','_collaborationSessionService','labelPosition','entityInit$','setParam','UNIVER_SHEET','INVITE_CODE_ALREADY_BOUND','_transformHistoryAndStateStack','transformIMECache','ENTITLE_COUPON_USED_UP','unshift','url(#off-line-icon_clip0_910_343)','tag','REDEMPTION_CODE_NOT_STARTED','executeCommand','filename','_onRefRangeChange','setTimeout','imageSourceType','currentSkeleton$','limitInfo','YUUMI_NO_CUBOID_FOR_QUESTION','transformRemoteChangeset','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getVpScrollXYInfoByPosToVp','...','_urlService','getAncestorScale','selection','ENTITLE_INVALID_COUPON_CODE','pushState','storage','_registerDependencies','_docStateChangeManagerService','closePath','getRenderById','663930rEcQZT','getCollabEntity$','registerComponent','subscribeEvent','_getSheetObject','clearInterval','init','_entityInit$','formula.calculation.waiting','map','moveTo','saveTaskMap','_dataLoaderService','27423MpVcOX','_univerInstanceService','lineTo','setItem','_scheduleSaving','_getMergeRange','assignAColorForMemberID','366YtKLYt','MOBILE_VERIFY_CODE_MISMATCH','getUnitStatus$','_document','_collabSessionService','Warning','PENDING','pluginName','all','div','skeleton','getMemberID','5664zqTqId','shift','contains','SUBMIT_CHANGESET_TIMEOUT','getStateCache','LICENSE_MAX_UNITS_EXCEEDED','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','updateOfflineData','unload','setActiveRange','stage','type','subscribe','LICENSE_IMPORT_SIZE_EXCEEDED','ENTITLE_CAN_NOT_BUY_LOWER_OTP','?taskId=','Loading','getMergeData','runId','length','CHANGESET_REVISION_CONFILICT','black','_httpService','measureText','trim','beforeCommandExecuted','_themeService','post','TOO_MANY_REQUESTS','AWAITING_WITH_PENDING','_initResize','attrs','_color','WECHAT_HAS_BEEN_BOUND','APPLY_PERMISSION_DENIED','/universer-api/license/formula/limit/status','replace','max','EMAIL_HAS_BEEN_BOUND','_getFormulaLimitStatus','APPLY_NON_SEQUENTIAL_REVISION','getRelativeToViewportCoord','_entities','_init','_heartbeatTimer','1em','_localStorageService','set','YUUMI_ASYNCIO_CANCELLED','save','_onCursorUpdate','_commandService','beginPath','clipPath','0\x200\x2017\x2016','\x20at\x20','_session','5356485JBLUjR','USER_NOT_INVITED_CODE','string','getParam','_name','_anchorDot','0\x200\x2016\x2016','_hideTimer','_collabCursorController','_cursorInfo$','OFFLINE','key','push','deepClone','loadUnit','_handleEvent','_initStatusListener','LOGIN_FAILED','cursorInfo$','_status$','_handleHover','_localCacheService','REDEMPTION_USER_REDEEM_TIMES_EXCEED','APPLY_DUPLICATED','hide','getDocRanges','_getSessionTicket','colorChannel1','YUUMI_ALL_TABLES_IS_INVALID','getColorFromTheme','/universer-api/license/formula/limit/start','makeDirty','unsubscribe','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','UNDEFINED','getCellPositionByOffset','_onCursorDelete','M0\x200H16V16H0z','currentTheme$','getUndoRedoMutationParamsCache','addEventListener','MoveRangeCommandId','VIEW_MAIN','replaceDocRanges','override','enableFrontendLog','/universer-api/frontend/logs','history','/universer-api/license/formula/limit/done','_removeCollabCursors','RemoveColCommandId','redoState','_anchor','_memberID','_cursors','ticket','_refRangeService','displayName','source','_logService','_scheduleHeartbeat','_unitOnClients','_transformUndoRedoStack','roomMembers','PY_RUNTIME_SCRIPT_ERROR','on-line-icon_clip0_910_349','_lastPointer','_maxFormulaLimit','collaboration.offline-data-not-saved','onRendered','APPLY_REJECT','_online','then','focused$','1405923CxerPY','_transformService','_uploadLog','_localeService','green.600','addClipboardHook','restore','59514iQDnRw','getUnitId','_uiPartsService','unhandledrejection','_roomMembers$','getOffsetConfig','next','_docTransformSelectionsService','setAlpha','formula.calculation.unable','SUCCESS','_checkAndWaitForCalculationPermission','_backgroundColor','_eventUnsubscribe','MUTATION','[Unhandled\x20Rejection]:\x20','InsertColCommandId','startFormulaLimitUrl','SNAPSHOT_HAS_BEEN_REMOVED','LICENSE_EXPORT_SIZE_EXCEEDED','PERMISSION_DENIED','params','Failed','purple.300','YUUMI_TABLE_NOT_FOUND_IN_UNIT','forEach','rgba(255,\x20255,\x20255,\x200.01)','_ensureSubject','CURRENT_STATUS_CANNOT_OPERATE','ENTITLE_INSUFFICIENT_QUOTA','_releaseCalculationLimit','_notificationService','_draw','collabCursorState$','_beforeCloseService','show','currentUsage','children','_pollingInterval','size','_config','startRow','_selfUnitIDs','body','search','onCommandExecuted','mask','getTypeOfUnitAdded$','doc.mutation.rich-text-editing','NO_OTHER_CLIENTS_EDITING','_cachedData','getCollabCursors$','split','ENSURE_SNAPSHOT_EXECUTION','collab-text-range-','OffLineIcon','_handleJoinEvent','Error','_send','status$','_docTransformStateCacheService','getMember','Unknown\x20user','endColumn','SYNCED','data','evenodd','OTHER_CLIENTS_EDITING','font','values','disposeWithMe','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','SNAPSHOT_INVALID_SNAPSHOT','CLOSE_ROOM','INVITE_CODE_HAS_BEEN_UES','subUnitId','_context','_monkeyPatchLogService','[Window\x20Error]:\x20','YUUMI_SUBSCRIPTION_NOT_FOUND','InsertRowCommandId','EMAIL_VERIFY_CODE_MISMATCH','stageInfo','_saveTaskMap','parseInt','top','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','AUTHORIZE_CODE_ILLEGAL','UNIVER_DOC','_injector','clearTimeout','getViewport','exhaustSavingTask','resize','href','_hasFormulaInDirtyRanges','from','_refreshCollabCursors','_startSheetCollabCursor','_toggleOffline','ENTITLE_CHAT_LIMIT_EXCEED','[RemoteUniscriptService]:\x20no\x20focused\x20unit','reason','executionId','arc','_handleLeaveEvent','releaseFormulaLimitUrl','fill','ENTITLE_REPORT_LIMIT_EXCEED','_range','_hover','getValue','registerRenderModule','collaboration.closeRoom','registerRefRange','delete','complete','_drawAnchor','uni.network.url-service','collabStatus.conflict','DATA_SOURCE_TOO_LARGE','_updateLocalCursor','permission.content','getCellMatrix','InsertRangeMoveDownCommandId','_lastResponseTimestamp','USERS_LEAVE','requireSession','m2Prime','_docClipboardService','addObject','_docSkeletonManagerService','fillRule','dispose$','_initUnhandledRejectionListener','replaceState','asObservable','getSheetBySheetId','saveImage','_docTransformIMECacheService','_hovered','xlink:href','onPointerLeave$','error','mutations','setConfig','unit','getRangePointData','_updateSubUnitFromURLParams','row','getSkeleton','searchParams','UniverIcon','actions','CONNECTOR_DATA_TOO_LARGE','debug','min','url(#on-line-icon_clip0_910_349)','application/json','_initCommandInterceptor','isEditing','find','REDEMPTION_CODE_FULLY_REDEEMED','unitID','getActiveSheet','_disabled','USER_IS_ANONYMOUS','backgroundColor','_labelPosition','isArray','createSocket','YUUMI_RATE_OVER_LIMIT','Success','onPointerEnter$','10bWbdrh','height','_toggleOnline','_getScale','symbol','stringify','fillText','eventID','result','_initStatusComponent','LICENSE_DISTRO_REJECTED','onMouseMove','session.connection-failed','range','REDEMPTION_USER_NOT_ELIGIBLE','collaboration-client-ui.config','APPLY_REVISION_CONFILICT','red.300','_updateURLWithCurrentState','_createSocketURL','_startCalculationLimit','_syncEditingCollabCursorService','http://www.w3.org/2000/svg','USER_NOT_FOUND','_collaborationController','6325944bWeVZS','sessionStatus$','color','_getSaveTimeout','[LogService\x20Error]:\x20','UPDATE_CURSOR','now'];_0x4327=function(){return _0x50595c;};return _0x4327();}let Fe=class extends _0x404ecb{constructor(_0x543287,_0x51066e,_0x1d1f49,_0x1f75e6,_0x1dc155){const _0x3b9ecd=_0x1f2a65;super(),_(this,'_cursorShapes',[]),_(this,'_cursors',[]),(this[_0x3b9ecd(0x13c)]=_0x543287,this[_0x3b9ecd(0x173)]=_0x51066e,this[_0x3b9ecd(0x2f7)]=_0x1d1f49,this[_0x3b9ecd(0x2e9)]=_0x1f75e6,this['_themeService']=_0x1dc155,this['_init']());}[_0x1f2a65(0x2e1)](){const _0x11cfd2=_0x1f2a65,_0x1e246f=this['_context']['unitId'],_0x9d7529=this[_0x11cfd2(0x173)];this['disposeWithMe'](_0x59760b([this[_0x11cfd2(0x2f7)]['getCollabCursors$'](_0x1e246f),this[_0x11cfd2(0x2d0)][_0x11cfd2(0xc5)]])[_0x11cfd2(0x1f0)](_0x136019(([_0x1161db,_0x5cd535])=>({'skeleton':_0x9d7529['getSkeleton'](),'cursors':[..._0x1161db[_0x11cfd2(0x135)]()][_0x11cfd2(0x227)](_0x5ea533=>({..._0x5ea533,'color':this[_0x11cfd2(0x2d0)]['getColorFromTheme'](_0x5ea533['color'])}))})))['subscribe'](_0x506585=>{const _0xd53e21=_0x11cfd2;if(this[_0xd53e21(0xd0)](),_0x506585){const {skeleton:_0x510c9e,cursors:_0x413a23}=_0x506585;this[_0xd53e21(0x20f)](_0x510c9e,_0x413a23);}})),this['_initResize'](),this[_0x11cfd2(0x22a)]();}[_0x1f2a65(0x20f)](_0x513b38,_0x1a807d){const _0x38e021=_0x1f2a65,{scene:_0x245c72,mainComponent:_0xffd85}=this['_context'],_0x3e3a69=_0x1a807d[_0x38e021(0x29f)](_0x2c32b8=>new ct(_0x2c32b8,_0x245c72,_0x513b38,_0xffd85));this[_0x38e021(0x21e)]=_0x3e3a69,this[_0x38e021(0xd5)]=_0x1a807d;}[_0x1f2a65(0x151)](){const _0x40cf50=_0x1f2a65;this['_removeCollabCursors']();const {scene:_0x165494,mainComponent:_0x13e72a}=this[_0x40cf50(0x13c)],_0x455fc5=this[_0x40cf50(0x173)][_0x40cf50(0x186)](),_0x5ac80e=this[_0x40cf50(0xd5)]['map'](_0x4ac5e2=>new ct(_0x4ac5e2,_0x165494,_0x455fc5,_0x13e72a));this[_0x40cf50(0x21e)]=_0x5ac80e;}['_removeCollabCursors'](){const _0x3671e9=_0x1f2a65;this[_0x3671e9(0x21e)][_0x3671e9(0x109)](_0x4153d1=>_0x4153d1[_0x3671e9(0x268)]()),this[_0x3671e9(0x21e)]=[];}[_0x1f2a65(0x22a)](){const _0x6f477d=_0x1f2a65,_0x19b5d8=[_0x22f044['id']];this['disposeWithMe'](this[_0x6f477d(0x2e9)][_0x6f477d(0x11d)](_0x3c3fc5=>{const _0x2323c4=_0x6f477d;_0x19b5d8[_0x2323c4(0x206)](_0x3c3fc5['id'])&&_0x3c3fc5[_0x2323c4(0x105)]['unitId']===this[_0x2323c4(0x13c)][_0x2323c4(0x1ed)]&&this['_refreshCollabCursors']();}));}[_0x1f2a65(0x2d4)](){const _0x4a97c4=_0x1f2a65;this[_0x4a97c4(0x136)](_0xd8b3cd(this['_context']['engine'][_0x4a97c4(0x266)])[_0x4a97c4(0x1f0)](_0x137e6f(_0x40de04=>_0x40de04['type']===_0x1ffc9a[_0x4a97c4(0x14d)]),_0x1fd809(0x10))[_0x4a97c4(0x2c2)](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0x4dfc34(_0x24c5db)),ie(0x2,_0x4dfc34(H)),ie(0x3,_0x2e573b),ie(0x4,_0x4dfc34(_0x3ef6a8))],Fe);const qi=0x1,en=1.5;class tn extends _0x62bdab{constructor(_0x2cdb10,_0x434915){const _0x4c0bfd=_0x1f2a65;super(_0x2cdb10,_0x434915),_(this,'_color'),_(this,_0x4c0bfd(0x17c),!0x1),_(this,_0x4c0bfd(0x15d)),_(this,_0x4c0bfd(0x2f3),''),_(this,_0x4c0bfd(0x198),_0x4c0bfd(0x145)),_(this,_0x4c0bfd(0xfc)),(_0x434915&&this['setShapeProps'](_0x434915),this[_0x4c0bfd(0x19d)][_0x4c0bfd(0x299)](()=>this[_0x4c0bfd(0x23e)]({'hovered':!0x0})),this[_0x4c0bfd(0x17e)]['subscribeEvent'](()=>this[_0x4c0bfd(0x23e)]({'hovered':!0x1})));}[_0x1f2a65(0x23e)](_0x3b543a){const _0x59c6c0=_0x1f2a65;var _0x54a7ed,_0x232a45,_0x577b33,_0x2d0a2d,_0x5c9838,_0x50b03c;this['_color']=(_0x54a7ed=_0x3b543a[_0x59c6c0(0x1b9)])!=null?_0x54a7ed:this[_0x59c6c0(0x2d6)],this[_0x59c6c0(0x17c)]=(_0x232a45=_0x3b543a[_0x59c6c0(0x1c7)])!=null?_0x232a45:this['_hovered'],this[_0x59c6c0(0x15d)]=(_0x577b33=_0x3b543a[_0x59c6c0(0x1ab)])!=null?_0x577b33:this[_0x59c6c0(0x15d)],this[_0x59c6c0(0x2f3)]=(_0x2d0a2d=_0x3b543a[_0x59c6c0(0x1c3)])!=null?_0x2d0a2d:this[_0x59c6c0(0x2f3)],this[_0x59c6c0(0x198)]=(_0x5c9838=_0x3b543a[_0x59c6c0(0x274)])!=null?_0x5c9838:this[_0x59c6c0(0x198)],this['_backgroundColor']=(_0x50b03c=_0x3b543a[_0x59c6c0(0x197)])!=null?_0x50b03c:this[_0x59c6c0(0xfc)],this[_0x59c6c0(0x1fe)]({'width':_0x3b543a[_0x59c6c0(0x1d6)],'height':_0x3b543a[_0x59c6c0(0x19f)]});}[_0x1f2a65(0x1a9)](_0x55be3a){const _0x57200c=_0x1f2a65,{row:_0x26f27f,column:_0x43490c}=_0x55be3a;if(_0x26f27f>=this[_0x57200c(0x15d)]['startRow']&&_0x26f27f<=this[_0x57200c(0x15d)][_0x57200c(0x245)]&&_0x43490c>=this[_0x57200c(0x15d)][_0x57200c(0x272)]&&_0x43490c<=this[_0x57200c(0x15d)][_0x57200c(0x12f)]){this[_0x57200c(0x23e)]({'hovered':!0x0});return;}this[_0x57200c(0x23e)]({'hovered':!0x1});}['triggerDblclick'](_0x2bda85){return!0x1;}[_0x1f2a65(0x110)](_0x3f6a84){const _0x2d9168=_0x1f2a65;_0x3cc5e5[_0x2d9168(0x241)](_0x3f6a84,{'width':this[_0x2d9168(0x1d6)],'height':this['height'],'strokeWidth':en,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x2d9168(0xfc)]}),this[_0x2d9168(0x17c)]&&(_0x3f6a84[_0x2d9168(0x2e7)](),_0x3f6a84['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0x2d9168(0x198)]==='bottom'?0x0:-Q),ve[_0x2d9168(0x241)](_0x3f6a84,{'text':this['_name'],'color':this[_0x2d9168(0x2d6)]}),_0x3f6a84[_0x2d9168(0xef)]());}}var sn=Object[_0x1f2a65(0x23a)],nn=(_0x3246b0,_0x23ce86,_0x7977ca,_0x11bbe5)=>{const _0x5e0b67=_0x1f2a65;for(var _0x86987f=_0x11bbe5>0x1?void 0x0:_0x11bbe5?sn(_0x23ce86,_0x7977ca):_0x23ce86,_0x5b2113=_0x3246b0[_0x5e0b67(0x2c9)]-0x1,_0x3a7907;_0x5b2113>=0x0;_0x5b2113--)(_0x3a7907=_0x3246b0[_0x5b2113])&&(_0x86987f=_0x3a7907(_0x86987f)||_0x86987f);return _0x86987f;},be=(_0x214c72,_0xde6faf)=>(_0x23e61d,_0x2985de)=>_0xde6faf(_0x23e61d,_0x2985de,_0x214c72);const rn=0x1389;let ke=class extends _0x404ecb{constructor(_0x548000,_0x494d55,_0x15d4f2,_0xc6e49e){const _0x1918dc=_0x1f2a65;super(),_(this,_0x1918dc(0xd5),new Set()),_(this,_0x1918dc(0xe1),null),(this[_0x1918dc(0x13c)]=_0x548000,this['_sheetSkeletonManagerService']=_0x494d55,this[_0x1918dc(0x2f7)]=_0x15d4f2,this['_themeService']=_0xc6e49e,this['_init']());}['_init'](){const _0x369f90=_0x1f2a65;this['_sheetSkeletonManagerService'][_0x369f90(0x285)][_0x369f90(0x1f0)](_0x149faa(this[_0x369f90(0x175)]),_0x579843(_0x54817c=>{const _0x181df9=_0x369f90;if(_0x54817c){const _0x414e41=_0x54817c['sheetId'];return _0x59760b(this[_0x181df9(0x2f7)]['getCollabCursors$'](this[_0x181df9(0x13c)][_0x181df9(0x1ed)]),this[_0x181df9(0x2d0)]['currentTheme$'])['pipe'](_0x136019(([_0x5b50a6,_0x277c12])=>{const _0x4b2355=_0x181df9,_0x29e003=new Map();return _0x5b50a6[_0x4b2355(0x109)]((_0x5b6f9a,_0x21192f)=>{const _0x2f0462=_0x4b2355;if(_0x5b6f9a[_0x2f0462(0x1d9)]===_0x414e41){const _0x37cc8a={..._0x5b6f9a};_0x37cc8a[_0x2f0462(0x1b9)]=this[_0x2f0462(0x2d0)][_0x2f0462(0xbc)](_0x5b6f9a[_0x2f0462(0x1b9)]),_0x29e003[_0x2f0462(0x2e5)](_0x21192f,_0x37cc8a);}}),{'skeleton':_0x54817c,'cursors':_0x29e003};}));}return _0x17f74e({'skeleton':null,'cursors':new Map()});}))[_0x369f90(0x2c2)](({skeleton:_0x191cd9,cursors:_0x248076})=>{const _0x578f32=_0x369f90;this[_0x578f32(0xd0)](),_0x191cd9&&this[_0x578f32(0x20f)](_0x191cd9,_0x248076);}),this[_0x369f90(0x20b)][_0x369f90(0x285)]['subscribe'](_0x4dd565=>{const _0x2fc7a8=_0x369f90;if(_0x4dd565==null)return;const {skeleton:_0x381771}=_0x4dd565,{scene:_0x25be79}=this[_0x2fc7a8(0x13c)];_0x25be79[_0x2fc7a8(0x1d5)][_0x2fc7a8(0x299)](_0x13094e(_0x213684=>{const _0x2bb724=_0x2fc7a8;var _0x423d12,_0x159441;const {offsetX:_0x2c3da5,offsetY:_0x254610}=_0x213684,{x:_0x440d6c,y:_0x4ad15d}=_0x25be79[_0x2bb724(0x2df)](_0x2898be[_0x2bb724(0x1fb)]([_0x2c3da5,_0x254610])),{scaleX:_0x42af1d,scaleY:_0x45a2d5}=_0x25be79[_0x2bb724(0x28d)](),_0x398f71=_0x25be79[_0x2bb724(0x14b)](_0x3e90f3[_0x2bb724(0xc9)]),_0x27e7cf=_0x25be79[_0x2bb724(0x28a)](_0x2898be[_0x2bb724(0x1fb)]([_0x440d6c,_0x4ad15d]),_0x398f71),_0x2c88a7=_0x381771[_0x2bb724(0xc2)](_0x2c3da5,_0x254610,_0x42af1d,_0x45a2d5,_0x27e7cf);((_0x423d12=this[_0x2bb724(0xe1)])==null?void 0x0:_0x423d12['column'])===_0x2c88a7[_0x2bb724(0x26c)]&&((_0x159441=this['_lastPointer'])==null?void 0x0:_0x159441[_0x2bb724(0x185)])===_0x2c88a7[_0x2bb724(0x185)]||this[_0x2bb724(0xd5)][_0x2bb724(0x109)](_0x257fae=>{_0x257fae['onMouseMove'](_0x2c88a7);});},0x64));});}[_0x1f2a65(0x20f)](_0x4020ab,_0x361471){const _0x5bc24c=_0x1f2a65;var _0x3bdc11;const _0xbcf06a=(_0x3bdc11=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x3bdc11[_0x5bc24c(0x2b4)];if(!_0xbcf06a)return;const _0x493e4b=this[_0x5bc24c(0x29a)]();if(!_0x493e4b)return;this['_cursors'][_0x5bc24c(0x109)](_0x10e1c1=>{const _0x46fc49=_0x5bc24c;_0x10e1c1[_0x46fc49(0xbe)]();});const {scene:_0x4f806d}=_0x493e4b,_0x1bec93=on(Array[_0x5bc24c(0x150)](_0x361471[_0x5bc24c(0x135)]()))[_0x5bc24c(0x29f)](_0x326571=>{const _0x311df3=_0x5bc24c,{color:_0x35efbb,range:_0x3b65b1,name:_0x57eef7,selection:_0x4e26f4,sheetID:_0x2bbe98}=_0x326571,{startColumn:_0x4c1a9b,startRow:_0xc8cf32,endColumn:_0x38faa5,endRow:_0x3b84a0}=_0x3b65b1,_0x345e93=_0x4a86f6(_0xc8cf32,_0x4c1a9b,_0x4f806d,_0xbcf06a),_0x5691bc=_0x4a86f6(_0x3b84a0,_0x38faa5,_0x4f806d,_0xbcf06a),{columnHeaderHeightAndMarginTop:_0x23b274}=_0xbcf06a,{startX:_0x5b2e07,startY:_0x322e4a}=_0x345e93,{endX:_0x44c203,endY:_0x19761c}=_0x5691bc,_0x39a43e=_0x44c203-_0x5b2e07,_0x1aae5b=_0x19761c-_0x322e4a,_0x1cfbf6={'labelPosition':_0x322e4a-_0x23b274>=Q?_0x311df3(0x145):_0x311df3(0x230),'sheetID':_0x2bbe98,'range':_0x3b65b1,'color':_0x35efbb,'name':_0x57eef7,'selection':_0x4e26f4,'left':_0x5b2e07,'top':_0x322e4a,'width':_0x39a43e,'height':_0x1aae5b,'evented':!0x1,'zIndex':rn};return new tn(_0x57eef7,_0x1cfbf6);});_0x4f806d['addObjects'](_0x1bec93,qi),this['_cursors']=new Set(_0x1bec93);}['_removeCollabCursors'](){const _0x5c42b8=_0x1f2a65;var _0x3aae07;(_0x3aae07=this[_0x5c42b8(0xd5)])==null||_0x3aae07['forEach'](_0x1267fa=>_0x1267fa[_0x5c42b8(0x268)]());}[_0x1f2a65(0x29a)](){const _0x24404a=_0x1f2a65;return _0xbde05f(this['_context'][_0x24404a(0x182)],this[_0x24404a(0x13c)]);}};ke=nn([be(0x1,_0x4dfc34(_0x2a0cf7)),be(0x2,_0x4dfc34(H)),be(0x3,_0x4dfc34(_0x3ef6a8))],ke);function on(_0x2793d4){const _0x4eb560=_0x1f2a65,_0xd69fcb=new Map();return _0x2793d4[_0x4eb560(0x109)](_0x19b86=>{const _0x293f86=_0x4eb560;if(_0xd69fcb['has'](_0x19b86[_0x293f86(0x28e)])){const _0x30e0df=_0xd69fcb[_0x293f86(0x23b)](_0x19b86[_0x293f86(0x28e)]);_0x30e0df[_0x293f86(0x1c3)]+=',\x20'+_0x19b86[_0x293f86(0x1c3)];}else _0xd69fcb[_0x293f86(0x2e5)](_0x19b86[_0x293f86(0x28e)],_0x19b86);}),Array[_0x4eb560(0x150)](_0xd69fcb[_0x4eb560(0x135)]());}var an=Object[_0x1f2a65(0x23a)],cn=(_0x4c2f83,_0x38911a,_0x4bb381,_0x456a6a)=>{const _0x51a4c5=_0x1f2a65;for(var _0xf4db91=_0x456a6a>0x1?void 0x0:_0x456a6a?an(_0x38911a,_0x4bb381):_0x38911a,_0x41428c=_0x4c2f83[_0x51a4c5(0x2c9)]-0x1,_0xeae00;_0x41428c>=0x0;_0x41428c--)(_0xeae00=_0x4c2f83[_0x41428c])&&(_0xf4db91=_0xeae00(_0xf4db91)||_0xf4db91);return _0xf4db91;},F=(_0x300633,_0x38baf4)=>(_0x115e65,_0x1174b0)=>_0x38baf4(_0x115e65,_0x1174b0,_0x300633);let _e=class extends _0x2d5c83{constructor(_0x5a7f04,_0x1c7db1,_0x4f9db2,_0x168f36,_0x143936,_0x5cdd05){const _0x477778=_0x1f2a65;super(),this[_0x477778(0x112)]=_0x5a7f04,this[_0x477778(0x304)]=_0x1c7db1,this[_0x477778(0x270)]=_0x4f9db2,this[_0x477778(0x22b)]=_0x168f36,this[_0x477778(0x10f)]=_0x143936,this['_localeService']=_0x5cdd05,this['_setupBeforeClosingHandler'](),this[_0x477778(0x249)]();}['_setupBeforeClosingHandler'](){const _0x59ec55=_0x1f2a65;this[_0x59ec55(0x136)](this[_0x59ec55(0x112)][_0x59ec55(0x1d2)](()=>{const _0x5437b1=_0x59ec55;if(this[_0x5437b1(0x304)][_0x5437b1(0x2a1)]['size'])return this[_0x5437b1(0xec)]['t'](_0x5437b1(0xe3));}));}[_0x1f2a65(0x249)](){const _0x529c4c=_0x1f2a65;this[_0x529c4c(0x136)](this[_0x529c4c(0x270)][_0x529c4c(0x1d7)][_0x529c4c(0x2c2)](_0x322665=>{const _0x32f2ea=_0x529c4c;_0x322665['id']===_0x4915e7[_0x32f2ea(0x1e1)]&&this['_messageService']['show']({'type':_0xf2d719[_0x32f2ea(0x2af)],'content':this[_0x32f2ea(0xec)]['t'](_0x32f2ea(0x211))}),_0x322665['id']===_0x4915e7[_0x32f2ea(0x139)]&&this[_0x32f2ea(0x22b)][_0x32f2ea(0x113)]({'type':_0xf2d719[_0x32f2ea(0x2af)],'content':this['_localeService']['t'](_0x32f2ea(0x161))}),_0x322665['id']===_0x4915e7['PERMISSION_DENIED']&&this[_0x32f2ea(0x10f)][_0x32f2ea(0x113)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x32f2ea(0xec)]['t'](_0x32f2ea(0x16a)),'type':_0x32f2ea(0x17f),'duration':0x0}),_0x322665['id']===_0x4915e7[_0x32f2ea(0x263)]&&this[_0x32f2ea(0x22b)][_0x32f2ea(0x113)]({'type':_0xf2d719[_0x32f2ea(0x129)],'content':this[_0x32f2ea(0xec)]['t'](_0x32f2ea(0x161))+'('+_0x322665[_0x32f2ea(0x131)]+')'}),_0x322665['id']===_0x4915e7['JOIN_ROOM_FAILED']&&this['_messageService'][_0x32f2ea(0x113)]({'type':_0xf2d719[_0x32f2ea(0x2af)],'content':this['_localeService']['t'](_0x322665[_0x32f2ea(0x131)]||'')}),_0x322665['id']===_0x4915e7['SOCKET_FAILED_RETRY']&&this[_0x32f2ea(0x22b)]['show']({'type':_0xf2d719['Warning'],'content':this[_0x32f2ea(0xec)]['t']('session.will-retry')}),_0x322665['id']===_0x4915e7['SOCKET_FAILED']&&this[_0x32f2ea(0x22b)][_0x32f2ea(0x113)]({'type':_0xf2d719[_0x32f2ea(0x129)],'content':this[_0x32f2ea(0xec)]['t'](_0x32f2ea(0x1aa))}),_0x322665['id']===_0x4915e7[_0x32f2ea(0x2b9)]&&this[_0x32f2ea(0x22b)][_0x32f2ea(0x113)]({'type':_0xf2d719[_0x32f2ea(0x129)],'content':this[_0x32f2ea(0xec)]['t']('session.collaboration-timeout')});}));}};_e=cn([F(0x0,_0x4c9c43),F(0x1,_0x515268),F(0x2,_0x4dfc34(_0x2bd23a)),F(0x3,_0x1bbc3e),F(0x4,_0x3381eb),F(0x5,_0x4dfc34(_0x32361f))],_e);var _n=Object['getOwnPropertyDescriptor'],ln=(_0x3d52ab,_0x21e2d6,_0x4cd455,_0x489d3e)=>{const _0x262669=_0x1f2a65;for(var _0x31a9d1=_0x489d3e>0x1?void 0x0:_0x489d3e?_n(_0x21e2d6,_0x4cd455):_0x21e2d6,_0x2aab42=_0x3d52ab[_0x262669(0x2c9)]-0x1,_0x1ce6ca;_0x2aab42>=0x0;_0x2aab42--)(_0x1ce6ca=_0x3d52ab[_0x2aab42])&&(_0x31a9d1=_0x1ce6ca(_0x31a9d1)||_0x31a9d1);return _0x31a9d1;},ne=(_0x38f1a0,_0x55dfab)=>(_0x181ab8,_0x5f3aa9)=>_0x55dfab(_0x181ab8,_0x5f3aa9,_0x38f1a0);let le=class extends _0x2d5c83{constructor(_0x8dafa2,_0xf01d9,_0x4bd22e,_0x9cedd5){const _0x900c5f=_0x1f2a65;super(),_(this,'_memberID'),(this[_0x900c5f(0x149)]=_0x8dafa2,this[_0x900c5f(0x2cc)]=_0xf01d9,this['_logService']=_0x4bd22e,this[_0x900c5f(0x273)]=_0x9cedd5,this['_init']());}['_init'](){const _0x150d92=_0x1f2a65;this[_0x150d92(0x200)](),this[_0x150d92(0x176)](),this[_0x150d92(0x13d)](),this['_initUserListener']();}['_initUserListener'](){const _0x3cf1dd=_0x1f2a65;this['disposeWithMe'](this[_0x3cf1dd(0x273)][_0x3cf1dd(0x269)][_0x3cf1dd(0x2c2)](_0x3623d4=>{const _0x148456=_0x3cf1dd;this[_0x148456(0xd4)]=_0x3623d4==null?void 0x0:_0x3623d4['memberID'];}));}[_0x1f2a65(0x200)](){const _0x354898=_0x1f2a65,_0x44517d=_0x20ed0b=>{const _0x1e4eb8=_0x34af;var _0xa95c6a;this[_0x1e4eb8(0xeb)](_0x1e4eb8(0x17f),_0x1e4eb8(0x13e)+_0x20ed0b['message']+_0x1e4eb8(0x2ed)+_0x20ed0b[_0x1e4eb8(0x281)]+':'+_0x20ed0b['lineno']+':'+_0x20ed0b['colno']+'\x0a'+(((_0xa95c6a=_0x20ed0b[_0x1e4eb8(0x17f)])==null?void 0x0:_0xa95c6a[_0x1e4eb8(0x1f7)])||''));};window[_0x354898(0xc7)](_0x354898(0x17f),_0x44517d),this[_0x354898(0x136)](()=>{const _0x16ffaa=_0x354898;window['removeEventListener'](_0x16ffaa(0x17f),_0x44517d);});}[_0x1f2a65(0x176)](){const _0x5cec94=_0x1f2a65,_0x174bb3=_0xbe0fdb=>{const _0x35afee=_0x34af;this['_uploadLog'](_0x35afee(0x17f),_0x35afee(0xff)+_0xbe0fdb[_0x35afee(0x156)]);};window[_0x5cec94(0xc7)](_0x5cec94(0xf3),_0x174bb3),this['disposeWithMe'](()=>{const _0x3b96e8=_0x5cec94;window['removeEventListener'](_0x3b96e8(0xf3),_0x174bb3);});}[_0x1f2a65(0x13d)](){const _0x1bf888=_0x1f2a65,_0x51e167=this['_logService'][_0x1bf888(0x17f)]['bind'](this[_0x1bf888(0xda)]);this[_0x1bf888(0xda)][_0x1bf888(0x17f)]=(..._0x2d7f31)=>{const _0xef5e92=_0x1bf888,_0x587980=_0x2d7f31['map'](_0x564821=>_0x564821 instanceof Error?_0x564821[_0xef5e92(0x25d)]+'\x0a'+_0x564821[_0xef5e92(0x1f7)]:String(_0x564821))[_0xef5e92(0x221)]('\x20');this[_0xef5e92(0xeb)](_0xef5e92(0x17f),_0xef5e92(0x1bb)+_0x587980),_0x51e167(..._0x2d7f31);},this['disposeWithMe'](()=>{const _0x1ad15b=_0x1bf888;this[_0x1ad15b(0xda)][_0x1ad15b(0x17f)]=_0x51e167;});}[_0x1f2a65(0xeb)](_0x1ca3e2,_0x1663e7){const _0x291fdc=_0x1f2a65;try{const _0x2ee92f={'userId':this[_0x291fdc(0xd4)],'logLabel':_0x1ca3e2,'content':_0x1663e7};this[_0x291fdc(0x2cc)][_0x291fdc(0x2d1)](_0x291fdc(0xcd),{'body':_0x2ee92f})[_0x291fdc(0x24c)](()=>{});}catch{}}};le=ln([ne(0x0,_0x4dfc34(_0x324ea2)),ne(0x1,_0x4dfc34(_0x4b02b7)),ne(0x2,_0x4e954a),ne(0x3,_0x4dfc34(_0x5bd77a))],le);const hn=_0x1f2a65(0x1ad),_t={};var un=Object[_0x1f2a65(0x23a)],dn=(_0xff02e1,_0x18cab1,_0x1e6843,_0x5bb2c9)=>{for(var _0x39af78=_0x5bb2c9>0x1?void 0x0:_0x5bb2c9?un(_0x18cab1,_0x1e6843):_0x18cab1,_0x55a1b7=_0xff02e1['length']-0x1,_0x184320;_0x55a1b7>=0x0;_0x55a1b7--)(_0x184320=_0xff02e1[_0x55a1b7])&&(_0x39af78=_0x184320(_0x39af78)||_0x39af78);return _0x39af78;},lt=(_0x5b513a,_0x21dfbf)=>(_0x3d71be,_0x26cd7a)=>_0x21dfbf(_0x3d71be,_0x26cd7a,_0x5b513a);let he=class{constructor(_0x1f8bd0,_0x1c9a05){const _0xb27351=_0x1f2a65;this['_transformService']=_0x1f8bd0,this[_0xb27351(0x21c)]=_0x1c9a05;}['transformIMECache'](_0xeb91d9){const _0x1d75ed=_0x1f2a65;this[_0x1d75ed(0xdd)](_0xeb91d9),this[_0x1d75ed(0x21f)](_0xeb91d9);}['transformRemoteChangeset'](_0x17c2ea){const _0x390220=_0x1f2a65,{unitID:_0x1f25e3}=_0x17c2ea,_0x23ca09=this[_0x390220(0x21c)][_0x390220(0x295)](_0x1f25e3)['with'](_0xdcb31b),{redoCache:_0x1fd184}=_0x23ca09['getUndoRedoMutationParamsCache']();if(_0x1fd184[_0x390220(0x2c9)]===0x0)return _0x17c2ea;let _0x2b5707=_0x28c8dd[_0x390220(0x2fc)](_0x17c2ea[_0x390220(0x180)][0x0]);for(let _0x45d9fc=0x0;_0x45d9fc<_0x1fd184[_0x390220(0x2c9)];_0x45d9fc++){const _0x27e177={'id':_0x390220(0x120),'params':{..._0x1fd184[_0x45d9fc]}},_0x5cf433=this[_0x390220(0xea)]['transformMutation'](_0x2b5707,_0x27e177,!0x1);if(_0x209d8a(_0x5cf433))throw _0x5cf433[_0x390220(0x17f)];_0x2b5707=_0x5cf433[_0x390220(0x1cd)];}return{..._0x28c8dd[_0x390220(0x2fc)](_0x17c2ea),'mutations':[_0x2b5707]};}[_0x1f2a65(0xdd)](_0x2520c9){const _0x4b8c12=_0x1f2a65,{unitID:_0x501fe2}=_0x2520c9,_0xdb3c75=this[_0x4b8c12(0x21c)][_0x4b8c12(0x295)](_0x501fe2)[_0x4b8c12(0x247)](_0xdcb31b),{undoCache:_0x5ed55a,redoCache:_0x1a0990}=_0xdb3c75[_0x4b8c12(0xc6)]();if(_0x5ed55a['length']===0x0||_0x1a0990[_0x4b8c12(0x2c9)]===0x0)return;const _0x13a9bf=[],_0x236e5f=[];let _0x5a59e5=_0x28c8dd[_0x4b8c12(0x2fc)](_0x2520c9[_0x4b8c12(0x180)][0x0]),_0x1346cc=_0x28c8dd[_0x4b8c12(0x2fc)](_0x2520c9[_0x4b8c12(0x180)][0x0]);for(let _0xd22ac7=_0x5ed55a[_0x4b8c12(0x2c9)]-0x1;_0xd22ac7>=0x0;_0xd22ac7--){const _0xd77fee={'id':_0x4b8c12(0x120),'params':{..._0x5ed55a[_0xd22ac7]}},_0xc8dc32={'id':'doc.mutation.rich-text-editing','params':{..._0x1a0990[_0xd22ac7]}},_0x4e8ebb=this[_0x4b8c12(0xea)]['transformMutation'](_0x5a59e5,_0xd77fee,!0x1),_0x2684c5=this[_0x4b8c12(0xea)][_0x4b8c12(0x232)](_0x1346cc,_0xc8dc32,!0x1);if(_0x209d8a(_0x4e8ebb))throw _0x4e8ebb[_0x4b8c12(0x17f)];if(_0x209d8a(_0x2684c5))throw _0x2684c5[_0x4b8c12(0x17f)];_0x13a9bf[_0x4b8c12(0x27c)](_0x4e8ebb['m2Prime'][_0x4b8c12(0x105)]),_0x236e5f[_0x4b8c12(0x27c)](_0x2684c5[_0x4b8c12(0x170)][_0x4b8c12(0x105)]),_0x5a59e5=_0x4e8ebb[_0x4b8c12(0x1cd)],_0x1346cc=_0x2684c5[_0x4b8c12(0x1cd)];}_0xdb3c75[_0x4b8c12(0x1ca)]({'undoCache':_0x13a9bf,'redoCache':_0x236e5f});}[_0x1f2a65(0x21f)](_0x5791dd){const _0x8e5c7=_0x1f2a65,{unitID:_0x3bd233}=_0x5791dd,_0x40a524=this['_renderManagerService']['getRenderById'](_0x3bd233)[_0x8e5c7(0x247)](_0xdcb31b),_0x39e777=_0x40a524['getActiveRange']();if(_0x39e777==null)return;const _0x5052f6=[{'id':_0x8e5c7(0x120),'params':{'unitId':_0x5791dd[_0x8e5c7(0x193)],'actions':null,'textRanges':[_0x39e777]}}],_0x565d3e=this[_0x8e5c7(0xea)][_0x8e5c7(0x271)](_0x5791dd,_0x5052f6);if(!_0x512b64(_0x565d3e))throw _0x565d3e['error'];const _0x4c4ea7=_0x565d3e['m2Prime'][0x0]['params'][_0x8e5c7(0x1e2)];Array[_0x8e5c7(0x199)](_0x4c4ea7)&&_0x4c4ea7[_0x8e5c7(0x2c9)]&&_0x40a524[_0x8e5c7(0x2bf)](_0x4c4ea7[0x0]);}};he=dn([lt(0x0,_0xb7565c),lt(0x1,_0x250d44)],he);var Sn=Object[_0x1f2a65(0x23a)],In=(_0x138b9c,_0x2dcf2d,_0x249789,_0x16fb3e)=>{const _0x21c958=_0x1f2a65;for(var _0x40e12e=_0x16fb3e>0x1?void 0x0:_0x16fb3e?Sn(_0x2dcf2d,_0x249789):_0x2dcf2d,_0xf281b9=_0x138b9c[_0x21c958(0x2c9)]-0x1,_0x29177e;_0xf281b9>=0x0;_0xf281b9--)(_0x29177e=_0x138b9c[_0xf281b9])&&(_0x40e12e=_0x29177e(_0x40e12e)||_0x40e12e);return _0x40e12e;},Le=(_0x1d4b77,_0x33d0c5)=>(_0x34ec64,_0x286533)=>_0x33d0c5(_0x34ec64,_0x286533,_0x1d4b77);let ue=class{constructor(_0x256e4a,_0x39ec85,_0x4f5aee){const _0x1b6083=_0x1f2a65;this[_0x1b6083(0x149)]=_0x256e4a,this[_0x1b6083(0xea)]=_0x39ec85,this[_0x1b6083(0x293)]=_0x4f5aee;}[_0x1f2a65(0x1f5)](_0x2b475d){const _0x5417e4=_0x1f2a65;this[_0x5417e4(0x279)](_0x2b475d);}[_0x1f2a65(0x288)](_0x1d1b64){const _0x42e4fb=_0x1f2a65,{unitID:_0x3fddb4}=_0x1d1b64,{collaboration:_0x344259}=this[_0x42e4fb(0x293)][_0x42e4fb(0x2ba)](_0x3fddb4);if(_0x344259[_0x42e4fb(0x2c9)]===0x0)return _0x1d1b64;let _0x200db0=_0x28c8dd['deepClone'](_0x1d1b64[_0x42e4fb(0x180)][0x0]);for(let _0x4ca320=0x0;_0x4ca320<_0x344259[_0x42e4fb(0x2c9)];_0x4ca320++){const _0x364c9d={'id':_0x42e4fb(0x120),'params':{'unitId':_0x344259[_0x4ca320][_0x42e4fb(0x1ed)],..._0x344259[_0x4ca320]['redoState']}},_0x2dfb79=this[_0x42e4fb(0xea)][_0x42e4fb(0x232)](_0x200db0,_0x364c9d,!0x1);if(_0x209d8a(_0x2dfb79))throw _0x2dfb79[_0x42e4fb(0x17f)];_0x200db0=_0x2dfb79[_0x42e4fb(0x1cd)];}return{..._0x28c8dd[_0x42e4fb(0x2fc)](_0x1d1b64),'mutations':[_0x200db0]};}[_0x1f2a65(0x279)](_0x187440){const _0x13e180=_0x1f2a65,{unitID:_0x10a159}=_0x187440,{history:_0x2c43d3,collaboration:_0x4fd5be}=this[_0x13e180(0x293)]['getStateCache'](_0x10a159);if(_0x2c43d3['length']===0x0&&_0x4fd5be[_0x13e180(0x2c9)]===0x0)return;const _0x5ed75a=[],_0x10ee27=[];let _0x42ea7c=_0x28c8dd['deepClone'](_0x187440[_0x13e180(0x180)][0x0]),_0x1a16b3=_0x28c8dd['deepClone'](_0x187440[_0x13e180(0x180)][0x0]);for(let _0x3edd79=_0x2c43d3[_0x13e180(0x2c9)]-0x1;_0x3edd79>=0x0;_0x3edd79--){const _0x2cc3f6={'id':_0x13e180(0x120),'params':{'unitId':_0x2c43d3[_0x3edd79]['unitId'],..._0x2c43d3[_0x3edd79]['undoState']}},_0x1eacf1={'id':_0x13e180(0x120),'params':{'unitId':_0x2c43d3[_0x3edd79][_0x13e180(0x1ed)],..._0x2c43d3[_0x3edd79]['redoState']}},_0x5e901a=this[_0x13e180(0xea)]['transformMutation'](_0x42ea7c,_0x2cc3f6,!0x1),_0x249510=this[_0x13e180(0xea)]['transformMutation'](_0x1a16b3,_0x1eacf1,!0x1);if(_0x209d8a(_0x5e901a))throw _0x5e901a[_0x13e180(0x17f)];if(_0x209d8a(_0x249510))throw _0x249510[_0x13e180(0x17f)];_0x5ed75a['unshift']({..._0x2c43d3[_0x3edd79],'undoState':_0x5e901a[_0x13e180(0x170)]['params'],'redoState':_0x249510[_0x13e180(0x170)]['params']}),_0x42ea7c=_0x5e901a[_0x13e180(0x1cd)],_0x1a16b3=_0x249510[_0x13e180(0x1cd)];}_0x42ea7c=_0x28c8dd[_0x13e180(0x2fc)](_0x187440[_0x13e180(0x180)][0x0]),_0x1a16b3=_0x28c8dd[_0x13e180(0x2fc)](_0x187440[_0x13e180(0x180)][0x0]);for(let _0x40f19b=_0x4fd5be['length']-0x1;_0x40f19b>=0x0;_0x40f19b--){const _0x55f735={'id':_0x13e180(0x120),'params':{'unitId':_0x4fd5be[_0x40f19b][_0x13e180(0x1ed)],..._0x4fd5be[_0x40f19b][_0x13e180(0x224)]}},_0x50b73f={'id':_0x13e180(0x120),'params':{'unitId':_0x4fd5be[_0x40f19b]['unitId'],..._0x4fd5be[_0x40f19b][_0x13e180(0xd2)]}},_0x3067b1=this[_0x13e180(0xea)][_0x13e180(0x232)](_0x42ea7c,_0x55f735,!0x1),_0x5dc81a=this['_transformService'][_0x13e180(0x232)](_0x1a16b3,_0x50b73f,!0x1);if(_0x209d8a(_0x3067b1))throw _0x3067b1[_0x13e180(0x17f)];if(_0x209d8a(_0x5dc81a))throw _0x5dc81a[_0x13e180(0x17f)];_0x10ee27[_0x13e180(0x27c)]({..._0x4fd5be[_0x40f19b],'undoState':_0x3067b1[_0x13e180(0x170)][_0x13e180(0x105)],'redoState':_0x5dc81a[_0x13e180(0x170)][_0x13e180(0x105)]}),_0x42ea7c=_0x3067b1[_0x13e180(0x1cd)],_0x1a16b3=_0x5dc81a[_0x13e180(0x1cd)];}this[_0x13e180(0x293)]['setStateCache'](_0x10a159,{'history':_0x5ed75a,'collaboration':_0x10ee27});}};ue=In([Le(0x0,_0x4dfc34(_0x324ea2)),Le(0x1,_0xb7565c),Le(0x2,_0x4dfc34(_0x1ec010))],ue);var mn=Object[_0x1f2a65(0x23a)],fn=(_0x1c1bf6,_0x15f0b8,_0x38330c,_0x5b6e04)=>{const _0x3d9ec7=_0x1f2a65;for(var _0x30711e=_0x5b6e04>0x1?void 0x0:_0x5b6e04?mn(_0x15f0b8,_0x38330c):_0x15f0b8,_0x1f0750=_0x1c1bf6[_0x3d9ec7(0x2c9)]-0x1,_0x536366;_0x1f0750>=0x0;_0x1f0750--)(_0x536366=_0x1c1bf6[_0x1f0750])&&(_0x30711e=_0x536366(_0x30711e)||_0x30711e);return _0x30711e;},ht=(_0x1069f8,_0x3df1b1)=>(_0x5c5f5c,_0x20be58)=>_0x3df1b1(_0x5c5f5c,_0x20be58,_0x1069f8);let de=class{constructor(_0xf0bc79,_0x4b928b){const _0x27d135=_0x1f2a65;this[_0x27d135(0x149)]=_0xf0bc79,this[_0x27d135(0xea)]=_0x4b928b;}[_0x1f2a65(0x1c5)](_0x4e05a8){const _0xa12c57=_0x1f2a65;var _0x2f91ff;const _0x165678=this[_0xa12c57(0x149)]['get'](_0x2778d3),_0x46c35b=(_0x2f91ff=_0x165678[_0xa12c57(0x308)]())!=null?_0x2f91ff:[];if(_0x46c35b[_0xa12c57(0x2c9)]===0x0)return;const _0x44f6cf=_0x4e05a8['unitID'],_0x1e51f5=[{'id':_0xa12c57(0x120),'params':{'unitId':_0x44f6cf,'actions':null,'textRanges':_0x46c35b}}],_0x164e94=this[_0xa12c57(0xea)][_0xa12c57(0x271)](_0x4e05a8,_0x1e51f5);if(!_0x512b64(_0x164e94))throw _0x164e94['error'];const _0x2aae9e=_0x164e94['m2Prime'][0x0][_0xa12c57(0x105)][_0xa12c57(0x1e2)];Array[_0xa12c57(0x199)](_0x2aae9e)&&_0x2aae9e['length']&&_0x165678[_0xa12c57(0xca)](_0x2aae9e,{'unitId':_0x44f6cf,'subUnitId':_0x44f6cf},!0x1);}};de=fn([ht(0x0,_0x4dfc34(_0x324ea2)),ht(0x1,_0xb7565c)],de);var gn=Object[_0x1f2a65(0x23a)],En=(_0x15f611,_0x1f8c61,_0x122fc5,_0x43f653)=>{const _0x23fc49=_0x1f2a65;for(var _0x1f829e=_0x43f653>0x1?void 0x0:_0x43f653?gn(_0x1f8c61,_0x122fc5):_0x1f8c61,_0x23ae64=_0x15f611[_0x23fc49(0x2c9)]-0x1,_0x30c673;_0x23ae64>=0x0;_0x23ae64--)(_0x30c673=_0x15f611[_0x23ae64])&&(_0x1f829e=_0x30c673(_0x1f829e)||_0x1f829e);return _0x1f829e;},U=(_0x35d149,_0x14ea26)=>(_0x381a78,_0x5e29b4)=>_0x14ea26(_0x381a78,_0x5e29b4,_0x35d149);let Se=class extends _0x2d5c83{constructor(_0x287be6,_0x15defe,_0x3a0cf2,_0x2c3c80,_0x3cffee,_0x34296d,_0xca1e5,_0x5a8dee){const _0x4bfca4=_0x1f2a65;super(),_(this,_0x4bfca4(0x302),new _0x76d03b(_0x538de5[_0x4bfca4(0x1f1)])),(this[_0x4bfca4(0x293)]=_0x287be6,this[_0x4bfca4(0x1b6)]=_0x15defe,this['_docTransformIMECacheService']=_0x3a0cf2,this[_0x4bfca4(0x12c)]=_0x2c3c80,this[_0x4bfca4(0xf7)]=_0x3cffee,this[_0x4bfca4(0x26d)]=_0x34296d,this[_0x4bfca4(0x22b)]=_0xca1e5,this[_0x4bfca4(0xec)]=_0x5a8dee,this['_initEntityListener']());}['_initEntityListener'](){const _0x25c3da=_0x1f2a65;this[_0x25c3da(0x136)](this['_collaborationController'][_0x25c3da(0x275)][_0x25c3da(0x2c2)](_0x447d88=>{const _0x36f77a=_0x25c3da,_0x5aeea8=this[_0x36f77a(0x293)][_0x36f77a(0x26b)][_0x36f77a(0x2c2)](_0x214085=>{const _0x47072c=_0x36f77a;if(_0x214085==null)return;const {unitId:_0x24f138,redoState:_0x232e98,commandId:_0x486477}=_0x214085;if(_0x24f138!==_0x447d88[_0x47072c(0x193)])return;const _0x35e4d0={'id':_0x486477,'type':_0x17198f[_0x47072c(0xfe)],'params':{'unitId':_0x24f138,'actions':_0x232e98[_0x47072c(0x189)],'textRanges':null}};_0x447d88[_0x47072c(0x1ef)](_0x35e4d0);});if(_0x447d88[_0x36f77a(0x136)](_0x5aeea8),_0x447d88 instanceof _0x5ec905){const _0x14bf21={'onTransformIME':_0x47050d=>this[_0x36f77a(0x17b)][_0x36f77a(0x27a)](_0x47050d),'onTransformState':_0x135ad2=>this['_docTransformStateCacheService'][_0x36f77a(0x1f5)](_0x135ad2),'onTransformSelections':_0x252b2d=>this['_docTransformSelectionsService'][_0x36f77a(0x1c5)](_0x252b2d),'onSyncEditingCollabCursor':_0x37c44a=>this[_0x36f77a(0x26d)]['syncEditingCollabCursor'](_0x37c44a),'onTransformRemoteChangesetByIMECache':_0x1722dc=>this[_0x36f77a(0x17b)][_0x36f77a(0x288)](_0x1722dc),'onTransformRemoteChangesetByStateCache':_0x2de743=>this[_0x36f77a(0x12c)]['transformRemoteChangeset'](_0x2de743)};_0x447d88[_0x36f77a(0x255)](_0x14bf21);}}));}};Se=En([U(0x0,_0x4dfc34(_0x1ec010)),U(0x1,_0x4dfc34(_0x1136bf)),U(0x2,_0x4dfc34(he)),U(0x3,_0x4dfc34(ue)),U(0x4,_0x4dfc34(de)),U(0x5,_0x4dfc34(ze)),U(0x6,_0x1bbc3e),U(0x7,_0x4dfc34(_0x32361f))],Se);var Z=(_0x400432=>(_0x400432[_0x400432[_0x1f2a65(0xc1)]=0x0]='UNDEFINED',_0x400432[_0x400432['OK']=0x1]='OK',_0x400432[_0x400432[_0x1f2a65(0x1cf)]=0x2]='INTERNAL_ERROR',_0x400432[_0x400432[_0x1f2a65(0x104)]=0x3]=_0x1f2a65(0x104),_0x400432[_0x400432[_0x1f2a65(0x252)]=0x4]=_0x1f2a65(0x252),_0x400432[_0x400432['UNAUTHENTICATED']=0x5]=_0x1f2a65(0x233),_0x400432[_0x400432[_0x1f2a65(0x239)]=0x6]=_0x1f2a65(0x239),_0x400432[_0x400432[_0x1f2a65(0x234)]=0x7]='INVALID_ARGUMENT',_0x400432[_0x400432[_0x1f2a65(0x2d2)]=0x8]='TOO_MANY_REQUESTS',_0x400432[_0x400432['COMPLETION_FINISHED']=0x9]=_0x1f2a65(0x208),_0x400432[_0x400432[_0x1f2a65(0x300)]=0xa]='LOGIN_FAILED',_0x400432[_0x400432[_0x1f2a65(0x2ab)]=0xb]=_0x1f2a65(0x2ab),_0x400432[_0x400432[_0x1f2a65(0x289)]=0xc]=_0x1f2a65(0x289),_0x400432[_0x400432[_0x1f2a65(0x141)]=0xd]=_0x1f2a65(0x141),_0x400432[_0x400432[_0x1f2a65(0x24a)]=0xe]=_0x1f2a65(0x24a),_0x400432[_0x400432[_0x1f2a65(0x147)]=0xf]=_0x1f2a65(0x147),_0x400432[_0x400432['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x1f2a65(0x23d),_0x400432[_0x400432[_0x1f2a65(0x10c)]=0x64]=_0x1f2a65(0x10c),_0x400432[_0x400432[_0x1f2a65(0x1ec)]=0x65]='ERROR_AGAIN',_0x400432[_0x400432[_0x1f2a65(0x1b5)]=0xc9]=_0x1f2a65(0x1b5),_0x400432[_0x400432[_0x1f2a65(0x196)]=0xca]=_0x1f2a65(0x196),_0x400432[_0x400432[_0x1f2a65(0x2ca)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x400432[_0x400432[_0x1f2a65(0x138)]=0x1771]=_0x1f2a65(0x138),_0x400432[_0x400432[_0x1f2a65(0x102)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x400432[_0x400432['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x1f2a65(0x125),_0x400432[_0x400432[_0x1f2a65(0xe5)]=0x1b59]=_0x1f2a65(0xe5),_0x400432[_0x400432['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x1f2a65(0x2de),_0x400432[_0x400432[_0x1f2a65(0x1ae)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x400432[_0x400432[_0x1f2a65(0x2d8)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x400432[_0x400432[_0x1f2a65(0x306)]=0x1b5d]=_0x1f2a65(0x306),_0x400432[_0x400432[_0x1f2a65(0x18a)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x400432[_0x400432['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x1f2a65(0x2bb),_0x400432[_0x400432[_0x1f2a65(0xc0)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x400432[_0x400432[_0x1f2a65(0x2c3)]=0x232b]=_0x1f2a65(0x2c3),_0x400432[_0x400432[_0x1f2a65(0x103)]=0x232c]=_0x1f2a65(0x103),_0x400432[_0x400432[_0x1f2a65(0x1a8)]=0x232d]=_0x1f2a65(0x1a8),_0x400432[_0x400432[_0x1f2a65(0x254)]=0x2711]=_0x1f2a65(0x254),_0x400432[_0x400432['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x1f2a65(0x207),_0x400432[_0x400432[_0x1f2a65(0x19b)]=0x2713]=_0x1f2a65(0x19b),_0x400432[_0x400432['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x1f2a65(0x13f),_0x400432[_0x400432[_0x1f2a65(0x287)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x400432[_0x400432[_0x1f2a65(0x2e6)]=0x271b]=_0x1f2a65(0x2e6),_0x400432[_0x400432['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x1f2a65(0x108),_0x400432[_0x400432[_0x1f2a65(0xbb)]=0x271d]=_0x1f2a65(0xbb),_0x400432[_0x400432['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x400432[_0x400432[_0x1f2a65(0x1f6)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x400432[_0x400432[_0x1f2a65(0x238)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x400432[_0x400432['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x1f2a65(0xdf),_0x400432[_0x400432[_0x1f2a65(0x13a)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x400432[_0x400432['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0x400432[_0x400432['INVITE_CODE_REQUIRED']=0x2ee3]='INVITE_CODE_REQUIRED',_0x400432[_0x400432[_0x1f2a65(0x2f0)]=0x2ee4]=_0x1f2a65(0x2f0),_0x400432[_0x400432[_0x1f2a65(0x278)]=0x2ee5]=_0x1f2a65(0x278),_0x400432[_0x400432[_0x1f2a65(0x2d7)]=0x32c9]=_0x1f2a65(0x2d7),_0x400432[_0x400432[_0x1f2a65(0x1d1)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x400432[_0x400432['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x1f2a65(0x2dc),_0x400432[_0x400432[_0x1f2a65(0x2c4)]=0x36b1]=_0x1f2a65(0x2c4),_0x400432[_0x400432[_0x1f2a65(0x137)]=0x36b2]=_0x1f2a65(0x137),_0x400432[_0x400432[_0x1f2a65(0x20e)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x400432[_0x400432['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x1f2a65(0x246),_0x400432[_0x400432['ENTITLE_INVALID_COUPON_CODE']=0x36b5]=_0x1f2a65(0x28f),_0x400432[_0x400432[_0x1f2a65(0x225)]=0x36b6]=_0x1f2a65(0x225),_0x400432[_0x400432[_0x1f2a65(0x27b)]=0x36b7]=_0x1f2a65(0x27b),_0x400432[_0x400432[_0x1f2a65(0x217)]=0x36b8]=_0x1f2a65(0x217),_0x400432[_0x400432[_0x1f2a65(0x154)]=0x3715]=_0x1f2a65(0x154),_0x400432[_0x400432['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x1f2a65(0x15c),_0x400432[_0x400432[_0x1f2a65(0x10d)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x400432[_0x400432[_0x1f2a65(0x231)]=0x37dd]=_0x1f2a65(0x231),_0x400432[_0x400432['REDEMPTION_INVALID_CODE']=0x3a99]='REDEMPTION_INVALID_CODE',_0x400432[_0x400432[_0x1f2a65(0x229)]=0x3a9a]=_0x1f2a65(0x229),_0x400432[_0x400432[_0x1f2a65(0x192)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x400432[_0x400432[_0x1f2a65(0x27f)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x400432[_0x400432[_0x1f2a65(0x1ac)]=0x3a9d]=_0x1f2a65(0x1ac),_0x400432[_0x400432['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x1f2a65(0x305),_0x400432[_0x400432[_0x1f2a65(0x1e7)]=0x3a9f]=_0x1f2a65(0x1e7),_0x400432[_0x400432['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x1f2a65(0x168),_0x400432[_0x400432['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x400432))(Z||{});function vn(_0x2c232d){const _0x423f94=_0x1f2a65;var _0x5b421e,_0x15f0a2;const _0x474d48=(_0x5b421e=_0x2c232d[_0x423f94(0x142)])==null?void 0x0:_0x5b421e[_0x423f94(0x2c0)],_0x5cc442=((_0x15f0a2=_0x2c232d['stageInfo'])==null?void 0x0:_0x15f0a2['totalFormulasToCalculate'])||0x0;return _0x474d48===_0x759aff['START_CALCULATION']&&_0x5cc442>0x0;}function pn(_0x5e755e){const _0x248c8d=_0x1f2a65;return _0x5e755e[_0x248c8d(0x25e)]===_0x11b7b1[_0x248c8d(0xfa)];}var On=Object[_0x1f2a65(0x23a)],Tn=(_0x689ffc,_0x483774,_0x1c6728,_0x2d6155)=>{for(var _0x24fdb9=_0x2d6155>0x1?void 0x0:_0x2d6155?On(_0x483774,_0x1c6728):_0x483774,_0x1940e0=_0x689ffc['length']-0x1,_0x1d21fd;_0x1940e0>=0x0;_0x1940e0--)(_0x1d21fd=_0x689ffc[_0x1940e0])&&(_0x24fdb9=_0x1d21fd(_0x24fdb9)||_0x24fdb9);return _0x24fdb9;},P=(_0xdb9668,_0x18566e)=>(_0x356dfd,_0x5804ab)=>_0x18566e(_0x356dfd,_0x5804ab,_0xdb9668);const Cn=_0x1f2a65(0x2d9),Rn=_0x1f2a65(0xbd),Dn=_0x1f2a65(0xcf);let Ie=class extends _0x2d5c83{constructor(_0x536b6c,_0x1d3a56,_0xd51b0b,_0x55675e,_0x54e6ff,_0x31ccd0,_0x19db7d){const _0x52354a=_0x1f2a65;super(),_(this,_0x52354a(0x116),null),_(this,_0x52354a(0xe2),0x0),_(this,_0x52354a(0x257),0x0),_(this,_0x52354a(0x267),[]),_(this,_0x52354a(0x16d),0x0),(this[_0x52354a(0x22b)]=_0x536b6c,this[_0x52354a(0x2e9)]=_0x1d3a56,this['_configService']=_0xd51b0b,this['_httpService']=_0x55675e,this[_0x52354a(0x2a4)]=_0x54e6ff,this[_0x52354a(0xda)]=_0x31ccd0,this[_0x52354a(0xec)]=_0x19db7d,this[_0x52354a(0x18f)]());}['_initCommandInterceptor'](){const _0x21dcbb=_0x1f2a65;this[_0x21dcbb(0x136)](this[_0x21dcbb(0x2e9)][_0x21dcbb(0x2cf)]((_0x5ec8ac,_0x9d486d)=>{const _0x3c04d2=_0x21dcbb;var _0x332b28;if(_0x5ec8ac['id']!==_0x294b09['id'])return;const _0x3ff88f=_0x5ec8ac['params'];if(!this[_0x3c04d2(0x14f)]((_0x332b28=_0x3ff88f[_0x3c04d2(0x1de)])!=null?_0x332b28:[]))return;if(!this[_0x3c04d2(0x212)]())throw this['_checkAndWaitForCalculationPermission'](_0x5ec8ac,_0x9d486d),this[_0x3c04d2(0x1f4)](),new _0x499235();})),this['disposeWithMe'](this[_0x21dcbb(0x2e9)]['onCommandExecuted']((_0x2dbcbe,_0x56895a)=>{const _0x1eb952=_0x21dcbb;if(_0x2dbcbe['id']!==_0x1ce548['id'])return;const _0x1a46f4=_0x2dbcbe['params'];if(vn(_0x1a46f4)){const _0x12c2f9=_0x1bf832();this[_0x1eb952(0x267)]['push'](_0x12c2f9),this[_0x1eb952(0x1b2)](_0x12c2f9);}else{if(pn(_0x1a46f4)&&this['_taskIds']['length']>0x0){const _0x5f18ec=this['_taskIds'][_0x1eb952(0x2b7)]();this[_0x1eb952(0x10e)](_0x5f18ec);}}}));}[_0x1f2a65(0x268)](){const _0x317fb5=_0x1f2a65;super[_0x317fb5(0x268)](),this['_clearPolling'](),this[_0x317fb5(0x267)]=[],this[_0x317fb5(0x257)]=0x0,this[_0x317fb5(0xe2)]=0x0,this[_0x317fb5(0x16d)]=0x0;}async[_0x1f2a65(0xfb)](_0x1c4bd9,_0x54f081){const _0x214566=_0x1f2a65;for(let _0x366526=0x0;_0x366526<0x1e;_0x366526++)try{if(await this[_0x214566(0x2dd)](),this['_checkCalculationAvailable']()){this[_0x214566(0x1e8)](_0x1c4bd9,_0x54f081),this[_0x214566(0x22b)][_0x214566(0x113)]({'content':this[_0x214566(0xec)]['t']('formula.calculation.started'),'type':_0xf2d719[_0x214566(0x19c)]});return;}await new Promise(_0x290a2b=>{const _0x1af06f=_0x214566;this[_0x1af06f(0x116)]=window['setTimeout'](_0x290a2b,0x3e8);});}catch(_0xe9dd5e){this[_0x214566(0xda)]['error'](_0xe9dd5e);}this[_0x214566(0x22b)][_0x214566(0x113)]({'content':this[_0x214566(0xec)]['t'](_0x214566(0xf9)),'type':_0xf2d719[_0x214566(0x129)]});}['_applyCommand'](_0x4f4beb,_0x21f1c1){const _0x150b4f=_0x1f2a65;try{this[_0x150b4f(0x2e9)][_0x150b4f(0x280)](_0x4f4beb['id'],_0x4f4beb[_0x150b4f(0x105)],_0x21f1c1);}catch(_0x38513a){this[_0x150b4f(0xda)][_0x150b4f(0x17f)](_0x38513a);}}[_0x1f2a65(0x1d3)](_0x24d8c4,_0xc3679f){const _0x2b6af4=_0x1f2a65;_0xc3679f<this['_lastResponseTimestamp']||(this[_0x2b6af4(0x16d)]=_0xc3679f,this[_0x2b6af4(0xe2)]=Number[_0x2b6af4(0x144)](_0x24d8c4['maxFormulaLimit']),this[_0x2b6af4(0x257)]=Number['parseInt'](_0x24d8c4[_0x2b6af4(0x114)]));}async[_0x1f2a65(0x1b2)](_0x4b3135){const _0x35287b=_0x1f2a65;var _0x21f00f,_0x40dd75;const _0x41b8e0=Date[_0x35287b(0x1bd)]();try{const _0x96cc79=((_0x21f00f=this[_0x35287b(0x201)]['getConfig'](_0x32826f))==null?void 0x0:_0x21f00f[_0x35287b(0x101)])||Rn,_0x5a6285=(await this[_0x35287b(0x2cc)][_0x35287b(0x2d1)](_0x96cc79,{'body':JSON[_0x35287b(0x1a3)]({'taskId':_0x4b3135})}))['body'];if(((_0x40dd75=_0x5a6285[_0x35287b(0x17f)])==null?void 0x0:_0x40dd75[_0x35287b(0x20d)])!==Z['OK'])return;this[_0x35287b(0x1d3)](_0x5a6285[_0x35287b(0x286)],_0x41b8e0);}catch(_0x1af3bb){this[_0x35287b(0xda)][_0x35287b(0x17f)](_0x1af3bb);}}async[_0x1f2a65(0x2dd)](_0x3029bd){const _0x17b543=_0x1f2a65;var _0x57043f,_0xfb5f7a;const _0x429ca7=Date[_0x17b543(0x1bd)]();try{const _0x4382c9=((_0x57043f=this[_0x17b543(0x201)][_0x17b543(0x253)](_0x32826f))==null?void 0x0:_0x57043f['getformulaLimitStatusUrl'])||Cn,_0x2b765d=_0x3029bd?_0x4382c9+_0x17b543(0x2c5)+encodeURIComponent(_0x3029bd):_0x4382c9,_0x26c20e=(await this[_0x17b543(0x2cc)][_0x17b543(0x23b)](_0x2b765d))['body'];if(((_0xfb5f7a=_0x26c20e['error'])==null?void 0x0:_0xfb5f7a[_0x17b543(0x20d)])!==Z['OK'])return;this[_0x17b543(0x1d3)](_0x26c20e['limitInfo'],_0x429ca7);}catch(_0x3a1487){this[_0x17b543(0xda)][_0x17b543(0x17f)](_0x3a1487);}}async[_0x1f2a65(0x10e)](_0x56089a){const _0x21117a=_0x1f2a65;var _0x24ba45,_0x5c6d2a;const _0x52baf0=Date[_0x21117a(0x1bd)]();try{const _0x47393c=((_0x24ba45=this[_0x21117a(0x201)]['getConfig'](_0x32826f))==null?void 0x0:_0x24ba45[_0x21117a(0x15a)])||Dn,_0x1f851f=(await this[_0x21117a(0x2cc)][_0x21117a(0x2d1)](_0x47393c,{'body':JSON[_0x21117a(0x1a3)]({'taskId':_0x56089a})}))[_0x21117a(0x11b)];if(((_0x5c6d2a=_0x1f851f[_0x21117a(0x17f)])==null?void 0x0:_0x5c6d2a[_0x21117a(0x20d)])!==Z['OK'])return;this[_0x21117a(0x1d3)](_0x1f851f[_0x21117a(0x286)],_0x52baf0);}catch(_0x65d056){this[_0x21117a(0xda)][_0x21117a(0x17f)](_0x65d056);}}[_0x1f2a65(0x212)](){const _0x1f543c=_0x1f2a65;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x1f543c(0xe2)]-this['_currentUsage']>0x0;}['_clearPolling'](){const _0x1bf2a6=_0x1f2a65;this[_0x1bf2a6(0x116)]&&(clearTimeout(this[_0x1bf2a6(0x116)]),this[_0x1bf2a6(0x116)]=null);}[_0x1f2a65(0x1f4)](){const _0x2e8781=_0x1f2a65;this[_0x2e8781(0x22b)][_0x2e8781(0x113)]({'content':this[_0x2e8781(0xec)]['t'](_0x2e8781(0x29e)),'type':_0xf2d719[_0x2e8781(0x2c6)]});}[_0x1f2a65(0x14f)](_0x10ab56){const _0x2f1f32=_0x1f2a65;for(const _0xed0870 of _0x10ab56){const {unitId:_0x41b812,sheetId:_0x38302b,range:_0x165255}=_0xed0870,_0x6cbcca=this[_0x2f1f32(0x2a4)]['getUnit'](_0x41b812);if(!_0x6cbcca)continue;const _0x5db759=_0x6cbcca[_0x2f1f32(0x179)](_0x38302b);if(!_0x5db759)continue;const _0x35f82b=_0x5db759[_0x2f1f32(0x16b)]();for(let _0x269e93=_0x165255[_0x2f1f32(0x119)];_0x269e93<=_0x165255[_0x2f1f32(0x245)];_0x269e93++)for(let _0x5c5209=_0x165255[_0x2f1f32(0x272)];_0x5c5209<=_0x165255['endColumn'];_0x5c5209++){const _0x22d306=_0x35f82b['getValue'](_0x269e93,_0x5c5209);if(_0x22d306&&(_0x3b35fd(_0x22d306['f'])||_0x5a1244(_0x22d306['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x4dfc34(_0x1bbc3e)),P(0x1,_0x2e573b),P(0x2,_0x20c284),P(0x3,_0x4dfc34(_0x4b02b7)),P(0x4,_0x1438f4),P(0x5,_0x4e954a),P(0x6,_0x4dfc34(_0x32361f))],Ie);var Nn=Object[_0x1f2a65(0x23a)],bn=(_0x25beea,_0x475ce2,_0x465381,_0x51e84a)=>{const _0x168adf=_0x1f2a65;for(var _0x14697f=_0x51e84a>0x1?void 0x0:_0x51e84a?Nn(_0x475ce2,_0x465381):_0x475ce2,_0x1064bc=_0x25beea[_0x168adf(0x2c9)]-0x1,_0x34bd4e;_0x1064bc>=0x0;_0x1064bc--)(_0x34bd4e=_0x25beea[_0x1064bc])&&(_0x14697f=_0x34bd4e(_0x14697f)||_0x14697f);return _0x14697f;},Ue=(_0x3f5af1,_0x41d551)=>(_0x402a78,_0x3c60a4)=>_0x41d551(_0x402a78,_0x3c60a4,_0x3f5af1);let He=class extends _0x2d5c83{constructor(_0x69a1b1,_0x132b5e,_0x4f600d){const _0x584278=_0x1f2a65;super(),_(this,'_cachedData',new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x584278(0x195),!0x1),(this[_0x584278(0x201)]=_0x69a1b1,this[_0x584278(0x2e4)]=_0x132b5e,this['_revisionService']=_0x4f600d);}['disableLocalCache'](){const _0x454677=_0x1f2a65;this[_0x454677(0x195)]=!0x0;}['enableLocalCache'](){const _0x42f956=_0x1f2a65;this[_0x42f956(0x195)]=!0x1;}get['saveTaskMap'](){const _0x577cd3=_0x1f2a65;return this[_0x577cd3(0x143)];}['dispose'](){const _0x39bc23=_0x1f2a65;this[_0x39bc23(0x14c)]()[_0x39bc23(0xe7)](()=>super[_0x39bc23(0x268)]());}async['loadOfflineData'](_0x3aa272){const _0x22dd20=_0x1f2a65;return this[_0x22dd20(0x195)]?null:this['_localStorageService'][_0x22dd20(0x26f)](_0x201e56(_0x3aa272));}async['saveOfflineData'](_0x8d63b4,_0x364975){const _0x1d4db9=_0x1f2a65;return!!this[_0x1d4db9(0x2e4)][_0x1d4db9(0x2a6)](_0x8d63b4,_0x364975);}[_0x1f2a65(0x2bd)](_0x3e5bf2,_0x30d8d2,_0x1febe8,_0x1a40d5){const _0x27de45=_0x1f2a65,_0xcb3c33=this['_revisionService'][_0x27de45(0x22c)](_0x3e5bf2);this[_0x27de45(0x122)][_0x27de45(0x2e5)](_0x3e5bf2,{'unitID':_0x3e5bf2,'type':_0x30d8d2,'awaitingChangeset':_0x1febe8,'mutations':_0x1a40d5,'rev':_0xcb3c33}),this['_saveTaskMap']['has'](_0x3e5bf2)||this['_scheduleSaving'](_0x3e5bf2);}[_0x1f2a65(0x2a7)](_0x188142){const _0x49ed10=_0x1f2a65,_0x42f3e1=this[_0x49ed10(0x1ba)]();_0x42f3e1===0x0?this['_saveCache'](_0x188142):this['_saveTaskMap'][_0x49ed10(0x2e5)](_0x188142,setTimeout(()=>this[_0x49ed10(0x21d)](_0x188142),_0x42f3e1));}['_getSaveTimeout'](){const _0x5171e1=_0x1f2a65;var _0xf5f45;return(_0xf5f45=this[_0x5171e1(0x201)][_0x5171e1(0x253)](_0x5ee5e7))!=null?_0xf5f45:_0x5669cd;}[_0x1f2a65(0x21d)](_0x57b75e){const _0x253f22=_0x1f2a65,_0x54519e=this[_0x253f22(0x143)][_0x253f22(0x23b)](_0x57b75e);return _0x54519e!==void 0x0&&window['clearTimeout'](_0x54519e),this[_0x253f22(0x2e4)][_0x253f22(0x2a6)](_0x201e56(_0x57b75e),this[_0x253f22(0x122)][_0x253f22(0x23b)](_0x57b75e))['then'](()=>this['_saveTaskMap'][_0x253f22(0x163)](_0x57b75e));}async['exhaustSavingTask'](){const _0x13964c=_0x1f2a65,_0x19f807=[];this[_0x13964c(0x143)][_0x13964c(0x109)]((_0x516a9b,_0x19af6b)=>{const _0x155ce4=_0x13964c;window[_0x155ce4(0x14a)](_0x516a9b),_0x19f807['push'](this['_saveCache'](_0x19af6b)[_0x155ce4(0xe7)](()=>{const _0x3b65c8=_0x155ce4;this[_0x3b65c8(0x143)][_0x3b65c8(0x163)](_0x19af6b);}));}),await Promise[_0x13964c(0x2b2)](_0x19f807);}};He=bn([Ue(0x0,_0x20c284),Ue(0x1,_0x3f363f),Ue(0x2,_0x4dfc34(_0xd60933))],He);class Ln extends _0x404ecb{constructor(){const _0x3f8aa5=_0x1f2a65;super(),_(this,'urlChange$'),this['urlChange$']=_0x4b7460(window,_0x3f8aa5(0x1fc))[_0x3f8aa5(0x1f0)](_0x486cac(this[_0x3f8aa5(0x175)]),_0x4a38ca(0x1),_0x252ab2(void 0x0));}['setParam'](_0x1cc689,_0x4e9d20,_0x2610c2=!0x1){const _0x475d68=_0x1f2a65,_0x4d938e=new URL(window[_0x475d68(0x1e4)]['href']);_0x4d938e[_0x475d68(0x187)]['set'](_0x1cc689,_0x4e9d20),_0x2610c2?window[_0x475d68(0xce)]['replaceState']('','',_0x4d938e['toString']()):window[_0x475d68(0xce)][_0x475d68(0x290)]('','',_0x4d938e['toString']());}['removeParam'](_0x4cfd7f,_0x1ddfbd=!0x1){const _0x4921f8=_0x1f2a65,_0x35114f=new URL(window[_0x4921f8(0x1e4)][_0x4921f8(0x14e)]);_0x35114f[_0x4921f8(0x187)]['delete'](_0x4cfd7f),_0x1ddfbd?window[_0x4921f8(0xce)][_0x4921f8(0x177)]('','',_0x35114f[_0x4921f8(0x243)]()):window[_0x4921f8(0xce)]['pushState']('','',_0x35114f[_0x4921f8(0x243)]());}[_0x1f2a65(0x2f2)](_0x58310e){const _0x4040b8=_0x1f2a65;var _0x3ccad6;return(_0x3ccad6=new URL(window['location'][_0x4040b8(0x14e)])['searchParams']['get'](_0x58310e))!=null?_0x3ccad6:void 0x0;}}var Un=Object['defineProperty'],Mn=Object['getOwnPropertyDescriptor'],An=(_0x47400f,_0x23c53b,_0x2a59ee)=>_0x23c53b in _0x47400f?Un(_0x47400f,_0x23c53b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a59ee}):_0x47400f[_0x23c53b]=_0x2a59ee,Pn=(_0x12ef2d,_0x59d3f1,_0x21d0dc,_0x4b9c66)=>{const _0x3ca779=_0x1f2a65;for(var _0x299c12=_0x4b9c66>0x1?void 0x0:_0x4b9c66?Mn(_0x59d3f1,_0x21d0dc):_0x59d3f1,_0x809cd0=_0x12ef2d[_0x3ca779(0x2c9)]-0x1,_0x270ca8;_0x809cd0>=0x0;_0x809cd0--)(_0x270ca8=_0x12ef2d[_0x809cd0])&&(_0x299c12=_0x270ca8(_0x299c12)||_0x299c12);return _0x299c12;},Me=(_0x1f8cdd,_0x303717)=>(_0x1b5724,_0x1a378c)=>_0x303717(_0x1b5724,_0x1a378c,_0x1f8cdd),wn=(_0x451c21,_0x2f6808,_0x216978)=>An(_0x451c21,_0x2f6808+'',_0x216978);const yn=_0x1f2a65(0x23c);let Ye=class extends _0x94153c{constructor(_0x25a17e=_t,_0x5627d9,_0x1cbdc3,_0x2de441){const _0x1e8f98=_0x1f2a65;super(),this[_0x1e8f98(0x118)]=_0x25a17e,this[_0x1e8f98(0x21c)]=_0x5627d9,this[_0x1e8f98(0x149)]=_0x1cbdc3,this['_configService']=_0x2de441;const {..._0x3c997d}=_0x4e8836({},_t,this['_config']);this[_0x1e8f98(0x201)][_0x1e8f98(0x181)](hn,_0x3c997d);}['onStarting'](){const _0x5aeba5=_0x1f2a65;this[_0x5aeba5(0x292)](),this[_0x5aeba5(0x1cc)]();}[_0x1f2a65(0xe4)](){const _0x353be8=_0x1f2a65;this[_0x353be8(0x226)]();}[_0x1f2a65(0x292)](){const _0x16e937=_0x1f2a65;var _0x33df54;const _0x16961c=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x3fac03,{'useClass':_0x6dd204}],[_0x515268,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x16e937(0x118)]['enableFrontendLog']&&_0x16961c['push']([le]),_0x1e30e7(this[_0x16e937(0x149)],_0x145280(_0x16961c,(_0x33df54=this[_0x16e937(0x118)])==null?void 0x0:_0x33df54[_0x16e937(0xcb)]));}[_0x1f2a65(0x226)](){const _0x5a5463=_0x1f2a65;this[_0x5a5463(0x136)](this[_0x5a5463(0x21c)][_0x5a5463(0x160)](_0x110b5f[_0x5a5463(0x148)],[Fe])),this[_0x5a5463(0x136)](this[_0x5a5463(0x21c)][_0x5a5463(0x160)](_0x110b5f[_0x5a5463(0x277)],[ke]));}[_0x1f2a65(0x1cc)](){const _0x3901b6=_0x1f2a65;_0x88331f(this['_injector'],[[H],[ae],[Se],[_e],[ce],[Ie]]),this['_config'][_0x3901b6(0xcc)]&&_0x88331f(this[_0x3901b6(0x149)],[[le]]);}};wn(Ye,_0x1f2a65(0x2b1),yn),Ye=Pn([_0x374fe1(_0x49dedb),Me(0x1,_0x250d44),Me(0x2,_0x4dfc34(_0x324ea2)),Me(0x3,_0x20c284)],Ye);var $n=Object[_0x1f2a65(0x23a)],xn=(_0x344921,_0x513f72,_0x1cacc5,_0x2a9fc4)=>{const _0x315989=_0x1f2a65;for(var _0x4dc897=_0x2a9fc4>0x1?void 0x0:_0x2a9fc4?$n(_0x513f72,_0x1cacc5):_0x513f72,_0x2a358e=_0x344921[_0x315989(0x2c9)]-0x1,_0x46203e;_0x2a358e>=0x0;_0x2a358e--)(_0x46203e=_0x344921[_0x2a358e])&&(_0x4dc897=_0x46203e(_0x4dc897)||_0x4dc897);return _0x4dc897;},J=(_0x350827,_0x114d3f)=>(_0x558594,_0x1f4955)=>_0x114d3f(_0x558594,_0x1f4955,_0x350827);let ut=class extends _0x81350d{constructor(_0x314b5d,_0x228406,_0x4c7dd9,_0x180894,_0x142ce3){super(_0x314b5d,_0x228406,_0x4c7dd9,_0x180894,_0x142ce3);}async[_0x1f2a65(0x19a)](_0x27df6b){const _0x1ad9aa=_0x1f2a65,_0x26474f=await this[_0x1ad9aa(0x309)](),_0x2773cc=this[_0x1ad9aa(0x1b1)](_0x27df6b,_0x26474f);return this['_doCreateSocket'](_0x2773cc);}[_0x1f2a65(0x1b1)](_0x564a1f,_0x15ebf4){const _0x103d34=_0x1f2a65,_0x7e4a4b=typeof window>'u'?new URL(_0x564a1f):new URL(_0x564a1f,window['location'][_0x103d34(0x1bf)]);_0x7e4a4b['searchParams'][_0x103d34(0x2e5)](_0x103d34(0x25b),_0x15ebf4);const _0x3ea324=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x103d34(0x11c)]);return _0x3ea324[_0x103d34(0x23b)](_0x103d34(0x2c8))&&_0x7e4a4b[_0x103d34(0x187)][_0x103d34(0x2e5)](_0x103d34(0x2c8),_0x3ea324[_0x103d34(0x23b)]('runId')),_0x7e4a4b[_0x103d34(0x243)]();}async[_0x1f2a65(0x309)](){const _0x16922e=_0x1f2a65;var _0x5e8b4b,_0x2a2269,_0xd682e7;const _0x320644=this[_0x16922e(0x201)]['getConfig'](_0x32826f),_0x4a571c=(_0x5e8b4b=_0x320644==null?void 0x0:_0x320644['wsSessionTicketUrl'])!=null?_0x5e8b4b:_0x21dd8f;return(_0xd682e7=(_0x2a2269=(await this[_0x16922e(0x2cc)][_0x16922e(0x23b)](_0x4a571c,{'headers':{'Content-Type':_0x16922e(0x18e)}}))['body'])==null?void 0x0:_0x2a2269[_0x16922e(0xd6)])!=null?_0xd682e7:'';}};ut=xn([J(0x0,_0x4dfc34(_0x324ea2)),J(0x1,_0x4dfc34(_0x4b02b7)),J(0x2,_0x20c284),J(0x3,_0x4e954a),J(0x4,_0x386a0c)],ut);var Bn=Object[_0x1f2a65(0x23a)],Fn=(_0x19d237,_0xa95fe6,_0x1df300,_0x328787)=>{const _0x5107fe=_0x1f2a65;for(var _0xd1cc22=_0x328787>0x1?void 0x0:_0x328787?Bn(_0xa95fe6,_0x1df300):_0xa95fe6,_0x5b6ec4=_0x19d237[_0x5107fe(0x2c9)]-0x1,_0x21f030;_0x5b6ec4>=0x0;_0x5b6ec4--)(_0x21f030=_0x19d237[_0x5b6ec4])&&(_0xd1cc22=_0x21f030(_0xd1cc22)||_0xd1cc22);return _0xd1cc22;},Ae=(_0x1afe6f,_0x421927)=>(_0x63a63b,_0x1fefd5)=>_0x421927(_0x63a63b,_0x1fefd5,_0x1afe6f);let dt=class extends _0x2d5c83{constructor(_0x210977,_0x235d8e,_0x483d91){const _0x426a76=_0x1f2a65;super(),this[_0x426a76(0x235)]=_0x210977,this[_0x426a76(0x2cc)]=_0x235d8e,this[_0x426a76(0x201)]=_0x483d91;}async[_0x1f2a65(0x24d)](_0x3cea56,_0x152258,_0x3c2c8d,..._0x4e875d){const _0x48df1d=_0x1f2a65;var _0x2440df,_0x4e08c6,_0x599349,_0x59995f;const _0x30f503=this['_instanceService'][_0x48df1d(0x203)]();if(!_0x30f503)throw new Error(_0x48df1d(0x155));const _0x3acb98=((_0x2440df=this[_0x48df1d(0x201)][_0x48df1d(0x253)](_0x4252f5))!=null?_0x2440df:_0x14ff67)+'/'+_0x3cea56+'/run/'+_0x152258,_0x521150=new URL(window[_0x48df1d(0x1e4)][_0x48df1d(0x14e)]),_0x2c5540={'scriptId':_0x3cea56,'runId':(_0x4e08c6=_0x521150[_0x48df1d(0x187)]['get'](_0x48df1d(0x2c8)))!=null?_0x4e08c6:'','function':_0x152258,'unitId':_0x30f503[_0x48df1d(0xf1)](),'argsOfFunction':JSON[_0x48df1d(0x1a3)](_0x4e875d),'invokeId':(_0x599349=_0x3c2c8d[_0x48df1d(0x1e6)])!=null?_0x599349:'','executionId':(_0x59995f=_0x3c2c8d[_0x48df1d(0x157)])!=null?_0x59995f:''};try{const _0x105592=await this[_0x48df1d(0x2cc)][_0x48df1d(0x2d1)](_0x3acb98,{'body':_0x2c5540});return _0x105592[_0x48df1d(0x11b)][_0x48df1d(0x17f)]&&_0x105592[_0x48df1d(0x11b)]['error'][_0x48df1d(0x20d)]!==Z['OK']?_0x48df1d(0x106):_0x105592[_0x48df1d(0x11b)][_0x48df1d(0x1a6)];}catch{return _0x48df1d(0x106);}}};dt=Fn([Ae(0x0,_0x1438f4),Ae(0x1,_0x4dfc34(_0x4b02b7)),Ae(0x2,_0x20c284)],dt);const St=0x7530,It=_0x1f2a65(0x214);class rr extends _0x2d5c83{constructor(){const _0x12ad48=_0x1f2a65;super(),_(this,_0x12ad48(0x1cb),_0x1bf832()),_(this,'_selfUnitIDs',new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x12ad48(0x2e2),null),_(this,_0x12ad48(0x1da),new Map()),_(this,'_unitStatus',new Map()),this['_init']();}['dispose'](){const _0x3a40f1=_0x1f2a65;super['dispose'](),this['_clearOtherTimers']['forEach']((_0x28e2cf,_0x1be313)=>this[_0x3a40f1(0x223)](_0x1be313)),this[_0x3a40f1(0x2e2)]&&window['clearInterval'](this[_0x3a40f1(0x2e2)]);}[_0x1f2a65(0x2ac)](_0xa472f1){const _0x30288b=_0x1f2a65;return this[_0x30288b(0x10b)](_0xa472f1)[_0x30288b(0x1f0)](_0x272c00());}[_0x1f2a65(0x24f)](_0x2ee57f){const _0x37193f=_0x1f2a65;this[_0x37193f(0x11a)][_0x37193f(0x117)]===0x0&&this[_0x37193f(0xdb)](),this[_0x37193f(0x11a)][_0x37193f(0x213)](_0x2ee57f),this[_0x37193f(0x12a)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x2ee57f],'isForwarded':!0x1});}[_0x1f2a65(0x236)](_0x207435){const _0x4eaf58=_0x1f2a65;this[_0x4eaf58(0x11a)][_0x4eaf58(0x163)](_0x207435),this[_0x4eaf58(0x11a)][_0x4eaf58(0x117)]===0x0&&this[_0x4eaf58(0x2e2)]&&window[_0x4eaf58(0x29b)](this[_0x4eaf58(0x2e2)]);}[_0x1f2a65(0x2e1)](){const _0x25170=_0x1f2a65;this[_0x25170(0x136)](_0x54c1a7(_0x4b7460(window,_0x25170(0x291))['subscribe'](_0x21ca9c=>{const _0x5923be=_0x25170;if(_0x21ca9c[_0x5923be(0x2fa)]!==It||!_0x21ca9c[_0x5923be(0x1e9)])return;const _0x47eb23=JSON['parse'](_0x21ca9c['newValue']);this[_0x5923be(0x2fe)](_0x47eb23);}))),window[_0x25170(0xc7)](_0x25170(0x2be),()=>this['_send']({'type':0x1,'memberID':this[_0x25170(0x1cb)],'unitIDs':Array['from'](this[_0x25170(0x11a)])}));}['_handleEvent'](_0x31aae6){const _0x33744d=_0x1f2a65;switch(_0x31aae6[_0x33744d(0x2c1)]){case 0x0:this['_handleJoinEvent'](_0x31aae6);break;case 0x1:this[_0x33744d(0x159)](_0x31aae6);break;case 0x2:this[_0x33744d(0x1d0)](_0x31aae6);break;}}[_0x1f2a65(0x128)](_0x40d3e3){const _0x309e0f=_0x1f2a65,{unitIDs:_0x13d164,memberID:_0x12c9a1,isForwarded:_0x152ff8}=_0x40d3e3;_0x13d164[_0x309e0f(0x109)](_0x15f70a=>{const _0x348508=_0x309e0f;if(!_0x152ff8&&this[_0x348508(0xdc)][_0x348508(0x26a)](_0x15f70a)&&this['_ensureSubject'](_0x15f70a)[_0x348508(0xf6)](_0x4690ae[_0x348508(0x133)]),!this[_0x348508(0xdc)][_0x348508(0x26a)](_0x15f70a)||!this['_unitOnClients'][_0x348508(0x23b)](_0x15f70a)[_0x348508(0x26a)](_0x12c9a1)){const _0x3cc652=this[_0x348508(0xdc)][_0x348508(0x23b)](_0x15f70a)||new Set();_0x3cc652[_0x348508(0x213)](_0x12c9a1),this['_unitOnClients'][_0x348508(0x2e5)](_0x15f70a,_0x3cc652),this[_0x348508(0x258)](_0x12c9a1);}}),_0x152ff8||this[_0x309e0f(0x12a)]({'type':0x0,'memberID':this[_0x309e0f(0x1cb)],'unitIDs':[...this[_0x309e0f(0x11a)]],'isForwarded':!0x0});}[_0x1f2a65(0x258)](_0x1a782b){const _0x2ab7ab=_0x1f2a65;this[_0x2ab7ab(0x223)](_0x1a782b);const _0x42d2a8=window[_0x2ab7ab(0x283)](()=>{const _0x292d62=_0x2ab7ab;this['_unitOnClients'][_0x292d62(0x109)](_0x2d3916=>{_0x2d3916['delete'](_0x1a782b);});},St*0x2);this['_clearOtherTimers']['set'](_0x1a782b,_0x42d2a8);}[_0x1f2a65(0x223)](_0x57c56d){const _0x3ac169=_0x1f2a65;if(this['_clearOtherTimers'][_0x3ac169(0x26a)](_0x57c56d)){const _0x31d76c=this[_0x3ac169(0x1da)][_0x3ac169(0x23b)](_0x57c56d);_0x31d76c&&window[_0x3ac169(0x14a)](_0x31d76c),this[_0x3ac169(0x1da)][_0x3ac169(0x2e5)](_0x57c56d,null);}}[_0x1f2a65(0x159)](_0xc113fe){const _0x20d7c8=_0x1f2a65,{memberID:_0x49c408,unitIDs:_0x2d47a8}=_0xc113fe;_0x2d47a8[_0x20d7c8(0x109)](_0x4dcdfd=>{const _0x15c4f7=_0x20d7c8;var _0x5f48e1;const _0x9ac9ac=this[_0x15c4f7(0xdc)][_0x15c4f7(0x23b)](_0x4dcdfd);_0x9ac9ac&&(_0x9ac9ac[_0x15c4f7(0x163)](_0x49c408),(_0x5f48e1=this['_ensureSubject'](_0x4dcdfd))==null||_0x5f48e1[_0x15c4f7(0xf6)](_0x9ac9ac[_0x15c4f7(0x117)]===0x0?_0x4690ae[_0x15c4f7(0x121)]:_0x4690ae[_0x15c4f7(0x133)]));}),this[_0x20d7c8(0x223)](_0x49c408);}[_0x1f2a65(0x1d0)](_0x45a4fb){const _0x1cf7c5=_0x1f2a65;this[_0x1cf7c5(0x258)](_0x45a4fb['memberID']);}[_0x1f2a65(0x12a)](_0x42d6d2){const _0x583dd4=_0x1f2a65;localStorage[_0x583dd4(0x2a6)](It,JSON[_0x583dd4(0x1a3)](_0x42d6d2));}[_0x1f2a65(0xdb)](){const _0x2d2f71=_0x1f2a65;this[_0x2d2f71(0x2e2)]=window['setInterval'](()=>{const _0x572a99=_0x2d2f71;this[_0x572a99(0x12a)]({'type':0x2,'memberID':this[_0x572a99(0x1cb)]});},St);}[_0x1f2a65(0x10b)](_0x494ee8){const _0x3d51a6=_0x1f2a65;return this[_0x3d51a6(0x20a)][_0x3d51a6(0x26a)](_0x494ee8)||this['_unitStatus'][_0x3d51a6(0x2e5)](_0x494ee8,new _0x76d03b(_0x4690ae[_0x3d51a6(0x121)])),this[_0x3d51a6(0x20a)]['get'](_0x494ee8);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
|
|
1
|
+
const _0xe70193=_0x5de0;(function(_0x52b32b,_0x960076){const _0x4c911e=_0x5de0,_0x5ea034=_0x52b32b();while(!![]){try{const _0x4e9f2f=parseInt(_0x4c911e(0x3bb))/0x1*(parseInt(_0x4c911e(0x203))/0x2)+parseInt(_0x4c911e(0x1fd))/0x3*(parseInt(_0x4c911e(0x2bc))/0x4)+parseInt(_0x4c911e(0x22d))/0x5*(parseInt(_0x4c911e(0x234))/0x6)+-parseInt(_0x4c911e(0x28e))/0x7+-parseInt(_0x4c911e(0x299))/0x8+-parseInt(_0x4c911e(0x3b4))/0x9+parseInt(_0x4c911e(0x211))/0xa;if(_0x4e9f2f===_0x960076)break;else _0x5ea034['push'](_0x5ea034['shift']());}catch(_0x308340){_0x5ea034['push'](_0x5ea034['shift']());}}}(_0x5910,0x6ef3a));var Yt=Object[_0xe70193(0x2f4)],Wt=(_0x1645c1,_0x1e3427,_0x11b885)=>_0x1e3427 in _0x1645c1?Yt(_0x1645c1,_0x1e3427,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x11b885}):_0x1645c1[_0x1e3427]=_0x11b885,_=(_0x38ee24,_0x5024ea,_0x191cca)=>Wt(_0x38ee24,typeof _0x5024ea!='symbol'?_0x5024ea+'':_0x5024ea,_0x191cca);import{jsx as _0x53f743,jsxs as _0x3182fe}from'react/jsx-runtime';import{CollaborationStatus as _0x2acb1b,CollaborationSessionService as _0x512455,CollaborationController as _0x2a7659,DataLoaderService as _0x488175,MemberService as _0x3fd052,SessionStatus as _0x512a26,ILocalCacheService as _0x6fb411,CollaborationUIEventService as _0x258fad,CollaborationUIEventId as _0x4d020b,DocCollaborationEntity as _0x486bbd,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x42efa1,getLocalCacheKey as _0x3e152c,LOCAL_CACHE_INTERVAL as _0x53dbda,LOCAL_CACHE_INTERVAL_KEY as _0x5a2cbf,UniverCollaborationClientPlugin as _0x1653ef,CollaborationSocketService as _0xb1e4a9,DEFAULT_WS_SESSION_TICKET_URL as _0x49bb1a,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x3ddd9b,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x128294,UnitStatus as _0x13b105}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x3290d2,IUniverInstanceService as _0x1b26af,Inject as _0x2cd7f4,Injector as _0x5b2c4d,Disposable as _0x3f5bb1,createIdentifier as _0x2cd314,ILogService as _0x2eba95,ICommandService as _0x4a2cbd,Optional as _0x4b7979,RxDisposable as _0x5d64e7,Workbook as _0x2ac049,DOC_RANGE_TYPE as _0x5826e5,debounce as _0x1e9268,Rectangle as _0x1c5318,DisposableCollection as _0x539da2,toDisposable as _0x3012f7,UniverInstanceType as _0x432dc0,generateRandomId as _0x156fa6,COLORS as _0x361ff9,ColorKit as _0x43a92d,ThemeService as _0x18e6ab,fromEventSubject as _0x2f567e,Tools as _0x3e7095,CommandType as _0x8d416d,IConfigService as _0x390ec1,CanceledError as _0xb3392a,isFormulaString as _0x5d3df1,isFormulaId as _0x1fba3b,ILocalStorageService as _0x291550,DependentOn as _0x5920d3,Plugin as _0x3a03b5,merge as _0x2df7fc,registerDependencies as _0x21accd,mergeOverrideWithDependencies as _0x59d70b,touchDependencies as _0x43802b}from'@univerjs/core';import{useObservable as _0x447891,useDependency as _0x4dd923,IUIPartsService as _0x5114c8,BuiltInUIPart as _0x33e59a,connectInjector as _0x43e900,IBeforeCloseService as _0x786123,IMessageService as _0x3f7f0c,INotificationService as _0x3e29b5}from'@univerjs/ui';import{BehaviorSubject as _0x2ce55f,switchMap as _0x254873,of as _0x3f176a,takeUntil as _0x30d24b,debounceTime as _0x3b5d0d,Subject as _0x4fac2d,filter as _0xa81c50,merge as _0x5e2d1a,combineLatest as _0xeab67a,fromEvent as _0x48edfd,shareReplay as _0x16a22e,mapTo as _0x2a0a6b,distinctUntilChanged as _0x639a16}from'rxjs';import{Tooltip as _0x37a611,clsx as _0x8da1dc,MessageType as _0x4f4e28}from'@univerjs/design';import{useRef as _0x1dfa61,createElement as _0x3df2d2,forwardRef as _0x3734cd,useCallback as _0x4d5977}from'react';import{IRemoteInstanceService as _0x136d4f}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x316671,RefRangeService as _0x23d669,SetSelectionsOperation as _0x1e6088,SheetsSelectionsService as _0x557488,EffectRefRangId as _0x569e6c,handleIRemoveRow as _0x1a062c,handleIRemoveCol as _0x74bcda,handleMoveRange as _0x25d044,handleInsertRow as _0x41b022,handleInsertRangeMoveRight as _0x163647,handleInsertRangeMoveDown as _0x4a2483,handleInsertCol as _0x7712ad,handleDeleteRangeMoveUp as _0x13c05d,handleDeleteRangeMoveLeft as _0x17dd53,runRefRangeMutations as _0x12324b}from'@univerjs/sheets';import{Shape as _0x31b784,Rect as _0x3b2708,getColor as _0x1ec52b,RegularPolygon as _0x357128,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x556533,Vector2 as _0x4c3c4e,SHEET_VIEWPORT_KEY as _0x3613c7,IRenderManagerService as _0x4ef960}from'@univerjs/engine-render';import{HTTPService as _0x84287d,ISocketService as _0x3872c5,WebSocketService as _0x70c8ec}from'@univerjs/network';import{IDocClipboardService as _0x1f9a85,NodePositionConvertToCursor as _0x166919,NodePositionConvertToRectRange as _0x2f90aa,TEXT_RANGE_LAYER_INDEX as _0x479ab8,SetDocZoomRatioOperation as _0x53a0de,DocIMEInputManagerService as _0x389d8f,DocStateChangeManagerService as _0x5dd92e}from'@univerjs/docs-ui';import{IImageIoService as _0x437f33}from'@univerjs/drawing';import{ITransformService as _0x2f8a5c,CollaborationEvent as _0x2221e4,isTransformMutationFailure as _0x38dbad,isTransformMutationsWithChangesetSuccess as _0x3092db,RevisionService as _0x27cb36,ISnapshotServerService as _0x2d14da}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x58b769,RichTextEditingMutation as _0x51e402,DocSelectionManagerService as _0x32ba9d,DocSkeletonManagerService as _0x2edbca}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x41a8e0,serializeRangeWithSheet as _0x32b54a,FormulaExecuteStageType as _0x3b615c,FormulaExecutedStateType as _0x410d96,SetFormulaCalculationStartMutation as _0x381baa,SetFormulaCalculationNotificationMutation as _0x2142f0}from'@univerjs/engine-formula';import{map as _0x1932c8,filter as _0x4868f1,throttleTime as _0x1ac8f8,takeUntil as _0x199d79,switchMap as _0x4c7a2f}from'rxjs/operators';import{SheetSkeletonManagerService as _0x4d888a,getCoordByCell as _0x7d1d54,getSheetObject as _0x2da6e4}from'@univerjs/sheets-ui';function Ge({ref:_0x2faa4a,..._0xfc8165}){const _0x49fce4=_0xe70193,{icon:_0x25c309,id:_0x10a659,className:_0x280f5f,extend:_0xe38bd2,..._0x56af0d}=_0xfc8165,_0x5857f5=(_0x49fce4(0x296)+_0x10a659+'\x20'+(_0x280f5f||''))[_0x49fce4(0x1f0)](),_0x22d0a8=_0x1dfa61('_'+vi());return At(_0x25c309,''+_0x10a659,{'defIds':_0x25c309[_0x49fce4(0x2ac)],'idSuffix':_0x22d0a8[_0x49fce4(0x27e)]},{'ref':_0x2faa4a,'className':_0x5857f5,..._0x56af0d},_0xe38bd2);}function At(_0x5bde11,_0x22f007,_0x3daf96,_0x310be8,_0x591798){const _0x29e5f5=_0xe70193;return _0x3df2d2(_0x5bde11['tag'],{'key':_0x22f007,...gi(_0x5bde11,_0x3daf96,_0x591798),..._0x310be8},(Ei(_0x5bde11,_0x3daf96)[_0x29e5f5(0x32d)]||[])[_0x29e5f5(0x3e4)]((_0x2d2496,_0x40f119)=>At(_0x2d2496,_0x22f007+'-'+_0x5bde11[_0x29e5f5(0x1f8)]+'-'+_0x40f119,_0x3daf96,void 0x0,_0x591798)));}function gi(_0x3dbe15,_0x2b350d,_0x21ad32){const _0x422f5e=_0xe70193,_0x171ef4={..._0x3dbe15[_0x422f5e(0x24e)]};_0x21ad32!=null&&_0x21ad32[_0x422f5e(0x395)]&&_0x171ef4['fill']===_0x422f5e(0x395)&&(_0x171ef4[_0x422f5e(0x3d1)]=_0x21ad32[_0x422f5e(0x395)]),_0x3dbe15[_0x422f5e(0x1f8)]===_0x422f5e(0x355)&&_0x171ef4['id']&&(_0x171ef4['id']=_0x171ef4['id']+_0x2b350d['idSuffix']),Object[_0x422f5e(0x204)](_0x171ef4)['forEach'](([_0x2524a6,_0x33aed7])=>{const _0x9ae9ee=_0x422f5e;_0x2524a6===_0x9ae9ee(0x355)&&typeof _0x33aed7==_0x9ae9ee(0x342)&&(_0x171ef4[_0x2524a6]=_0x33aed7[_0x9ae9ee(0x27c)](/url\(#(.*)\)/,_0x9ae9ee(0x21d)+_0x2b350d[_0x9ae9ee(0x2d6)]+')'));});const {defIds:_0x1bb475}=_0x2b350d;return!_0x1bb475||_0x1bb475[_0x422f5e(0x2c7)]===0x0||(_0x3dbe15[_0x422f5e(0x1f8)]===_0x422f5e(0x235)&&_0x171ef4[_0x422f5e(0x37f)]&&(_0x171ef4['xlink:href']=_0x171ef4[_0x422f5e(0x37f)]+_0x2b350d[_0x422f5e(0x2d6)]),Object[_0x422f5e(0x204)](_0x171ef4)[_0x422f5e(0x3b7)](([_0xc7620,_0x2707cf])=>{const _0x3bf7e1=_0x422f5e;typeof _0x2707cf==_0x3bf7e1(0x342)&&(_0x171ef4[_0xc7620]=_0x2707cf[_0x3bf7e1(0x27c)](/url\(#(.*)\)/,'url(#$1'+_0x2b350d[_0x3bf7e1(0x2d6)]+')'));})),_0x171ef4;}function Ei(_0x4912fd,_0x276c2e){const _0x7698bf=_0xe70193;var _0x4ec414;const {defIds:_0x35cfd9}=_0x276c2e;return!_0x35cfd9||_0x35cfd9['length']===0x0?_0x4912fd:_0x4912fd[_0x7698bf(0x1f8)]==='defs'&&((_0x4ec414=_0x4912fd[_0x7698bf(0x32d)])!=null&&_0x4ec414[_0x7698bf(0x2c7)])?{..._0x4912fd,'children':_0x4912fd[_0x7698bf(0x32d)][_0x7698bf(0x3e4)](_0x419397=>typeof _0x419397[_0x7698bf(0x24e)]['id']==_0x7698bf(0x342)&&_0x35cfd9&&_0x35cfd9[_0x7698bf(0x27b)](_0x419397[_0x7698bf(0x24e)]['id'])?{..._0x419397,'attrs':{..._0x419397[_0x7698bf(0x24e)],'id':_0x419397[_0x7698bf(0x24e)]['id']+_0x276c2e['idSuffix']}}:_0x419397)}:_0x4912fd;}function vi(){const _0x18bd2c=_0xe70193;return Math[_0x18bd2c(0x307)]()['toString'](0x24)['substring'](0x2,0x8);}Ge[_0xe70193(0x2c5)]=_0xe70193(0x3ff);const pi={'tag':_0xe70193(0x331),'attrs':{'xmlns':_0xe70193(0x1ed),'fill':_0xe70193(0x3e1),'viewBox':'0\x200\x2016\x2016','width':_0xe70193(0x316),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0xe70193(0x3eb)},'children':[{'tag':_0xe70193(0x3a3),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':_0xe70193(0x208),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0xe70193(0x3a3),'attrs':{'fill':_0xe70193(0x2f7),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0xe70193(0x324)]},Pt=_0x3734cd(function(_0x33ce9a,_0x2e7354){return _0x3df2d2(Ge,Object['assign']({},_0x33ce9a,{'id':'off-line-icon','ref':_0x2e7354,'icon':pi}));});Pt[_0xe70193(0x2c5)]=_0xe70193(0x2a8);const Oi={'tag':_0xe70193(0x331),'attrs':{'xmlns':_0xe70193(0x1ed),'fill':_0xe70193(0x3e1),'viewBox':_0xe70193(0x30c),'width':_0xe70193(0x316),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0xe70193(0x359)},'children':[{'tag':_0xe70193(0x3a3),'attrs':{'stroke':_0xe70193(0x381),'d':_0xe70193(0x360),'strokeLinecap':_0xe70193(0x208),'strokeLinejoin':_0xe70193(0x208),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0xe70193(0x257),'attrs':{'id':_0xe70193(0x36e)},'children':[{'tag':_0xe70193(0x3a3),'attrs':{'fill':_0xe70193(0x2f7),'d':_0xe70193(0x1ff),'transform':_0xe70193(0x37d)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},wt=_0x3734cd(function(_0x54cf99,_0x54931c){const _0x1cfe4f=_0xe70193;return _0x3df2d2(Ge,Object[_0x1cfe4f(0x1cc)]({},_0x54cf99,{'id':_0x1cfe4f(0x2b1),'ref':_0x54931c,'icon':Oi}));});wt['displayName']=_0xe70193(0x36c);function Ti(_0x2851cb){const _0x59423f=_0xe70193;switch(_0x2851cb){case _0x2acb1b[_0x59423f(0x279)]:return'collabStatus.offline';case _0x2acb1b[_0x59423f(0x39d)]:return'collabStatus.conflict';case _0x2acb1b['FETCH_MISS']:return _0x59423f(0x1ee);case _0x2acb1b[_0x59423f(0x2c0)]:return _0x59423f(0x270);case _0x2acb1b[_0x59423f(0x317)]:case _0x2acb1b[_0x59423f(0x251)]:return'collabStatus.syncing';case _0x2acb1b[_0x59423f(0x38c)]:case _0x2acb1b['PENDING']:return _0x59423f(0x3d2);}}function Ci(_0x33f9b8){const _0x378c64=_0xe70193,{status$:_0x1aebbd}=_0x33f9b8,_0x52742f=_0x447891(_0x1aebbd,_0x2acb1b['NOT_COLLAB']),_0x11b0f4=_0x4dd923(_0x3290d2),_0x4487d6=_0x4dd923(_0x512455),_0x5ae03e=_0x52742f!==_0x2acb1b[_0x378c64(0x279)],_0xcfbbd7=_0x11b0f4['t'](Ti(_0x52742f)),_0x1c680e=_0x5ae03e?_0x53f743(wt,{}):_0x53f743(Pt,{}),_0xe632c8=_0x4d5977(()=>{const _0x113989=_0x378c64;_0x5ae03e||_0x4487d6[_0x113989(0x314)]();},[_0x5ae03e,_0x4487d6]);function _0x3b2642(){const _0x2525b5=_0x378c64;return _0x3182fe('div',{'className':_0x2525b5(0x36d),'onClick':_0xe632c8,'children':[_0x53f743(_0x2525b5(0x399),{'className':_0x8da1dc(_0x2525b5(0x282),{'univer-text-green-500':_0x5ae03e,'univer-text-red-500':!_0x5ae03e}),'children':_0x1c680e}),_0x53f743(_0x2525b5(0x399),{'className':_0x2525b5(0x328),'children':_0xcfbbd7})]});}return _0x5ae03e?_0x3b2642():_0x53f743(_0x37a611,{'title':_0x11b0f4['t'](_0x378c64(0x26a)),'children':_0x3b2642()});}var Ri=Object[_0xe70193(0x222)],Di=(_0x3b7872,_0x39b923,_0x3a6d4f,_0x4a9398)=>{const _0x4b0a4f=_0xe70193;for(var _0x364641=_0x4a9398>0x1?void 0x0:_0x4a9398?Ri(_0x39b923,_0x3a6d4f):_0x39b923,_0x2c898b=_0x3b7872[_0x4b0a4f(0x2c7)]-0x1,_0x3a1941;_0x2c898b>=0x0;_0x2c898b--)(_0x3a1941=_0x3b7872[_0x2c898b])&&(_0x364641=_0x3a1941(_0x364641)||_0x364641);return _0x364641;},se=(_0x2c3d78,_0x2904c4)=>(_0xc22b2f,_0x125d05)=>_0x2904c4(_0xc22b2f,_0x125d05,_0x2c3d78);let ae=class extends _0x3f5bb1{constructor(_0x4bf7ee,_0x4fb1ae,_0x110397,_0x16b13d){const _0x34a02b=_0xe70193;super(),_(this,_0x34a02b(0x2f0),new _0x2ce55f(_0x2acb1b[_0x34a02b(0x2c0)])),(this[_0x34a02b(0x39a)]=_0x4bf7ee,this[_0x34a02b(0x1e0)]=_0x4fb1ae,this['_collaborationController']=_0x110397,this[_0x34a02b(0x2fc)]=_0x16b13d,this[_0x34a02b(0x1e8)](),this['_initStatusListener']());}[_0xe70193(0x20d)](){const _0x5e56ac=_0xe70193;this[_0x5e56ac(0x205)](this[_0x5e56ac(0x39a)][_0x5e56ac(0x3c5)][_0x5e56ac(0x3b5)](_0x254873(()=>{const _0x20d1f7=_0x5e56ac,_0xc253f=this[_0x20d1f7(0x39a)][_0x20d1f7(0x28c)]();return _0xc253f?this[_0x20d1f7(0x1c9)][_0x20d1f7(0x260)](_0xc253f[_0x20d1f7(0x255)]()):_0x3f176a(null);}),_0x254873(_0x34af4d=>_0x34af4d?_0x34af4d[_0x5e56ac(0x2e8)]:_0x3f176a(_0x2acb1b[_0x5e56ac(0x2c0)])))[_0x5e56ac(0x407)](_0x408442=>{const _0x383840=_0x5e56ac;this[_0x383840(0x2f0)]['next'](_0x408442);}));}[_0xe70193(0x1e8)](){const _0x1af99f=_0xe70193;this[_0x1af99f(0x205)](this[_0x1af99f(0x2fc)][_0x1af99f(0x35e)](_0x33e59a[_0x1af99f(0x38d)],()=>_0x43e900(Ni({'status$':this['_status$'][_0x1af99f(0x3c1)]()}),this['_injector'])));}};ae=Di([se(0x0,_0x1b26af),se(0x1,_0x2cd7f4(_0x5b2c4d)),se(0x2,_0x2cd7f4(_0x2a7659)),se(0x3,_0x5114c8)],ae);function Ni(_0x20e6a6){const {status$:_0xb5360f}=_0x20e6a6;return function(){return _0x53f743(Ci,{'status$':_0xb5360f});};}const yt=_0x2cd314(_0xe70193(0x318));var bi=Object[_0xe70193(0x222)],Li=(_0x168132,_0x1e6a56,_0x5a03e9,_0x40a933)=>{for(var _0x561cfc=_0x40a933>0x1?void 0x0:_0x40a933?bi(_0x1e6a56,_0x5a03e9):_0x1e6a56,_0x2f10b7=_0x168132['length']-0x1,_0x5392c3;_0x2f10b7>=0x0;_0x2f10b7--)(_0x5392c3=_0x168132[_0x2f10b7])&&(_0x561cfc=_0x5392c3(_0x561cfc)||_0x561cfc);return _0x561cfc;},K=(_0x1d9a63,_0x50e406)=>(_0x121ace,_0x4a8ad9)=>_0x50e406(_0x121ace,_0x4a8ad9,_0x1d9a63);let ce=class extends _0x5d64e7{constructor(_0x423127,_0x24cb15,_0x21670c,_0x59c573,_0x545ad3){const _0x59b9a1=_0xe70193;super(),this[_0x59b9a1(0x3df)]=_0x423127,this['_logService']=_0x24cb15,this['_commandService']=_0x21670c,this[_0x59b9a1(0x243)]=_0x59c573,_0x545ad3?_0x545ad3==null||_0x545ad3[_0x59b9a1(0x326)]()['then'](()=>this[_0x59b9a1(0x1e1)]()):(this[_0x59b9a1(0x207)]['debug']('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x59b9a1(0x1e1)]());}async[_0xe70193(0x1e1)](){const _0x28b359=_0xe70193,_0x3522f7=this[_0x28b359(0x3df)][_0x28b359(0x30b)](_0x28b359(0x1f1)),_0x27d321=this[_0x28b359(0x3df)][_0x28b359(0x30b)](_0x28b359(0x375)),_0x5c0738=this[_0x28b359(0x3df)][_0x28b359(0x30b)]('subunit');if(!_0x3522f7||!_0x27d321){this[_0x28b359(0x207)][_0x28b359(0x25b)](_0x28b359(0x35c),_0x28b359(0x3c3));return;}const _0x136ffc=await this['_dataLoaderService']['loadUnit'](_0x3522f7,Number(_0x27d321),_0x5c0738);_0x136ffc&&_0x136ffc instanceof _0x2ac049&&this[_0x28b359(0x3cd)](_0x136ffc);}async[_0xe70193(0x3cd)](_0x30c298){const _0x5dca18=_0xe70193;await this[_0x5dca18(0x403)](_0x30c298),_0x30c298[_0x5dca18(0x2f9)][_0x5dca18(0x3b5)](_0x30d24b(this['dispose$']))[_0x5dca18(0x407)](_0x47622b=>{_0x47622b&&this['_updateURLWithCurrentState'](_0x47622b);}),this[_0x5dca18(0x3df)][_0x5dca18(0x1df)][_0x5dca18(0x3b5)](_0x30d24b(this[_0x5dca18(0x21b)]))['subscribe'](()=>this[_0x5dca18(0x403)](_0x30c298));}[_0xe70193(0x27f)](_0x419e2b,_0x3cebf9=!0x1){const _0x3b5c3e=_0xe70193,_0x45b93f=this[_0x3b5c3e(0x3df)][_0x3b5c3e(0x30b)](_0x3b5c3e(0x391));_0x419e2b[_0x3b5c3e(0x223)]()!==_0x45b93f&&this[_0x3b5c3e(0x3df)][_0x3b5c3e(0x1ec)]('subunit',_0x419e2b['getSheetId'](),_0x3cebf9);}async[_0xe70193(0x403)](_0x2cba67){const _0x41b77c=_0xe70193;var _0x2df156;const _0x108f9e=this[_0x41b77c(0x3df)][_0x41b77c(0x30b)]('subunit');if(!_0x108f9e||!_0x2cba67[_0x41b77c(0x38a)](_0x108f9e)){const _0xf9bd70=_0x2cba67[_0x41b77c(0x258)]()[0x0],_0x311721=_0x2cba67[_0x41b77c(0x38a)](_0xf9bd70);if(!_0x311721)return;this[_0x41b77c(0x27f)](_0x311721,!0x0),await this[_0x41b77c(0x31e)][_0x41b77c(0x2c6)](_0x316671['id'],{'unitId':_0x2cba67[_0x41b77c(0x255)](),'subUnitId':_0xf9bd70});return;}((_0x2df156=_0x2cba67[_0x41b77c(0x32a)]())==null?void 0x0:_0x2df156[_0x41b77c(0x223)]())!==_0x108f9e&&await this[_0x41b77c(0x31e)]['executeCommand'](_0x316671['id'],{'unitId':_0x2cba67[_0x41b77c(0x255)](),'subUnitId':_0x108f9e});}};ce=Li([K(0x0,yt),K(0x1,_0x2eba95),K(0x2,_0x4a2cbd),K(0x3,_0x2cd7f4(_0x488175)),K(0x4,_0x4b7979(_0x136d4f))],ce);function _0x5de0(_0x1b300b,_0x95e285){_0x1b300b=_0x1b300b-0x1c3;const _0x591093=_0x5910();let _0x5de0b1=_0x591093[_0x1b300b];return _0x5de0b1;}var Ui=Object['getOwnPropertyDescriptor'],Mi=(_0x244002,_0x134e69,_0x44d482,_0x49bf02)=>{const _0x133af4=_0xe70193;for(var _0x54f69d=_0x49bf02>0x1?void 0x0:_0x49bf02?Ui(_0x134e69,_0x44d482):_0x134e69,_0x4ce1d3=_0x244002[_0x133af4(0x2c7)]-0x1,_0x17a3c4;_0x4ce1d3>=0x0;_0x4ce1d3--)(_0x17a3c4=_0x244002[_0x4ce1d3])&&(_0x54f69d=_0x17a3c4(_0x54f69d)||_0x54f69d);return _0x54f69d;},rt=(_0x4c167f,_0xf2c8ae)=>(_0x2f432f,_0xdef1af)=>_0xf2c8ae(_0x2f432f,_0xdef1af,_0x4c167f);let $e=class extends _0x5d64e7{constructor(_0x34892e,_0x5c51a8){const _0xb583e5=_0xe70193;super(),this['_docClipboardService']=_0x34892e,this[_0xb583e5(0x35d)]=_0x5c51a8,this['_init']();}['_init'](){const _0xda8559=_0xe70193,_0x38a9bb=this;this['disposeWithMe'](this[_0xda8559(0x352)][_0xda8559(0x382)]({'onBeforePasteImage':async _0x4d7b8b=>{const _0x21dc71=_0xda8559,_0x2d76f3=await _0x38a9bb[_0x21dc71(0x35d)][_0x21dc71(0x1c4)](_0x4d7b8b);return _0x2d76f3?{'source':_0x2d76f3['source'],'imageSourceType':_0x2d76f3[_0x21dc71(0x3ee)]}:null;}}));}};$e=Mi([rt(0x0,_0x1f9a85),rt(0x1,_0x437f33)],$e);const ot=[_0xe70193(0x281),_0xe70193(0x2d3),_0xe70193(0x34b),_0xe70193(0x31b),_0xe70193(0x2a2),_0xe70193(0x1e7)];class Ke extends _0x3f5bb1{constructor(){const _0x22bd21=_0xe70193;super(...arguments),_(this,_0x22bd21(0x2c9),new Map()),_(this,_0x22bd21(0x30a),0x0);}[_0xe70193(0x34e)](_0x40374c){const _0x205bc2=_0xe70193;if(this[_0x205bc2(0x2c9)][_0x205bc2(0x1fe)](_0x40374c))return this['_assignedColors'][_0x205bc2(0x33a)](_0x40374c);const _0x5f2471=ot[this[_0x205bc2(0x30a)]];return this[_0x205bc2(0x30a)]=(this[_0x205bc2(0x30a)]+0x1)%ot[_0x205bc2(0x2c7)],this[_0x205bc2(0x2c9)]['set'](_0x40374c,_0x5f2471),_0x5f2471;}}function $t(_0x55e8cc){const _0x3f15c9=_0xe70193;let _0x46b56f='';for(const _0x443f5a of _0x55e8cc){const {startOffset:_0x274f06,endOffset:_0x27c8c6,isActive:_0x3d2bbc,rangeType:_0x381002,segmentId:_0x14dbb0,segmentPage:_0x2a2b50}=_0x443f5a;_0x46b56f[_0x3f15c9(0x2c7)]&&(_0x46b56f+=','),_0x46b56f+=_0x274f06+':'+_0x27c8c6+':'+(_0x3d2bbc?'1':'0')+':'+_0x381002+':'+_0x14dbb0+':'+_0x2a2b50;}return _0x46b56f;}function Ai(_0x5b38d8){const _0x2eeb8d=_0xe70193,_0x9d3f79=_0x5b38d8[_0x2eeb8d(0x363)](','),_0x5375a9=[];for(const _0x4c4ce9 of _0x9d3f79){const [_0x577cf0,_0xb0bc36,_0x571340,_0x3159d4,_0x57d1b4,_0x47f985]=_0x4c4ce9[_0x2eeb8d(0x363)](':');_0x5375a9[_0x2eeb8d(0x241)]({'startOffset':Number(_0x577cf0),'endOffset':Number(_0xb0bc36),'collapsed':_0x577cf0===_0xb0bc36,'isActive':_0x571340==='1','rangeType':_0x3159d4===_0x5826e5[_0x2eeb8d(0x262)]?_0x5826e5[_0x2eeb8d(0x262)]:_0x5826e5['RECT'],'segmentId':typeof _0x57d1b4==_0x2eeb8d(0x342)?String(_0x57d1b4):'','segmentPage':Number(_0x47f985!=null?_0x47f985:-0x1)});}return _0x5375a9[_0x2eeb8d(0x217)](_0x1d728f=>_0x1d728f[_0x2eeb8d(0x2f2)])||(_0x5375a9[0x0][_0x2eeb8d(0x2f2)]=!0x0),_0x5375a9;}class ze extends _0x5d64e7{constructor(){const _0x54e079=_0xe70193;super(...arguments),_(this,_0x54e079(0x1ca),new _0x2ce55f(null)),_(this,'collabCursorState$',this[_0x54e079(0x1ca)][_0x54e079(0x3c1)]());}['syncEditingCollabCursor'](_0x5af31d){const {unitID:_0x48e116,memberID:_0x4d61f9,textRanges:_0x411c9a}=_0x5af31d,_0x15793c=$t(_0x411c9a);if(_0x15793c==='')return;const _0x5dcaf5={'unitID':_0x48e116,'memberID':_0x4d61f9,'selection':_0x15793c};this['_collabCursorState$']['next'](_0x5dcaf5);}}var Pi=Object[_0xe70193(0x222)],wi=(_0x14dc87,_0x367594,_0x34f56a,_0x26c63f)=>{const _0x543f7a=_0xe70193;for(var _0x48f367=_0x26c63f>0x1?void 0x0:_0x26c63f?Pi(_0x367594,_0x34f56a):_0x367594,_0x583522=_0x14dc87[_0x543f7a(0x2c7)]-0x1,_0x3ca838;_0x583522>=0x0;_0x583522--)(_0x3ca838=_0x14dc87[_0x583522])&&(_0x48f367=_0x3ca838(_0x48f367)||_0x48f367);return _0x48f367;},A=(_0x261f57,_0x38f87e)=>(_0x425f10,_0x4aaba8)=>_0x38f87e(_0x425f10,_0x4aaba8,_0x261f57);const yi=0x12c,$i=0x64;let xe=class extends _0x5d64e7{constructor(_0x3b1c1c,_0xc991b,_0x612968,_0x3aebd4,_0x1948c4,_0x14f3ea,_0x3c787c,_0x444ed7,_0x234139){const _0x20afd9=_0xe70193;super(),_(this,_0x20afd9(0x1d0),!0x1),_(this,_0x20afd9(0x1e1),!0x1),_(this,_0x20afd9(0x2e2),new _0x2ce55f(new Map())),_(this,_0x20afd9(0x3f0),this[_0x20afd9(0x2e2)][_0x20afd9(0x3c1)]()),_(this,'_roomMembers$',new _0x2ce55f([])),_(this,_0x20afd9(0x36f),this[_0x20afd9(0x33f)][_0x20afd9(0x3b5)](_0x3b5d0d(yi))),_(this,_0x20afd9(0x3a6),_0x1e9268(_0x5373e5=>{const _0x24a7dc=_0x20afd9,_0x13bf01={'eventID':_0x2221e4['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x24a7dc(0x361)][_0x24a7dc(0x343)](),'selection':$t(_0x5373e5)}};this[_0x24a7dc(0x361)]['send'](_0x13bf01,this[_0x24a7dc(0x1fa)]);},$i)),(this[_0x20afd9(0x1fa)]=_0x3b1c1c,this[_0x20afd9(0x361)]=_0xc991b,this[_0x20afd9(0x1e0)]=_0x612968,this[_0x20afd9(0x306)]=_0x3aebd4,this[_0x20afd9(0x3a9)]=_0x1948c4,this[_0x20afd9(0x401)]=_0x14f3ea,this['_transformService']=_0x3c787c,this[_0x20afd9(0x39a)]=_0x444ed7,this['_commandService']=_0x234139);}get['cursorInfo'](){const _0x3b7e6c=_0xe70193;return this[_0x3b7e6c(0x2e2)][_0x3b7e6c(0x321)]();}get['roomMembers'](){const _0x5d0ccd=_0xe70193;return this[_0x5d0ccd(0x33f)]['getValue']();}[_0xe70193(0x402)](){const _0x50bd05=_0xe70193;super[_0x50bd05(0x402)](),this['_cursorInfo$']['next'](new Map()),this[_0x50bd05(0x2e2)][_0x50bd05(0x37e)](),this[_0x50bd05(0x33f)][_0x50bd05(0x3c2)]([]),this[_0x50bd05(0x33f)][_0x50bd05(0x37e)]();}[_0xe70193(0x1f2)](){const _0x152503=_0xe70193;this[_0x152503(0x1e1)]||(this[_0x152503(0x1e1)]=!0x0,this[_0x152503(0x361)][_0x152503(0x23e)][_0x152503(0x3b5)](_0x30d24b(this[_0x152503(0x21b)]))['subscribe'](_0x2c2663=>{const _0x4a0dff=_0x152503;_0x2c2663===_0x512a26[_0x4a0dff(0x311)]?this[_0x4a0dff(0x1f6)]():this['_toggleOffline']();}),this['_session'][_0x152503(0x283)][_0x152503(0x3b5)](_0x30d24b(this[_0x152503(0x21b)]))[_0x152503(0x407)](_0x17ef48=>{const _0x163f56=_0x152503,_0xb5a3ba=_0x17ef48[_0x163f56(0x252)];_0xb5a3ba===_0x2221e4[_0x163f56(0x29b)]&&this[_0x163f56(0x330)](_0x17ef48),_0xb5a3ba===_0x2221e4[_0x163f56(0x32f)]&&this[_0x163f56(0x263)](_0x17ef48);}),this['disposeWithMe'](this[_0x152503(0x31e)][_0x152503(0x3ae)](_0x47e0b2=>{const _0x24edca=_0x152503,_0x1a409a=_0x47e0b2[_0x24edca(0x2d4)];_0x1a409a!=null&&this[_0x24edca(0x1d0)]&&_0x47e0b2['id']===_0x58b769['id']&&_0x1a409a[_0x24edca(0x2a0)]===this[_0x24edca(0x1fa)]&&_0x1a409a[_0x24edca(0x2cc)]===!0x1&&_0x1a409a[_0x24edca(0x29e)][_0x24edca(0x2c7)]>0x0&&this[_0x24edca(0x3a6)](_0x1a409a[_0x24edca(0x29e)]);})),this[_0x152503(0x401)][_0x152503(0x384)]['pipe'](_0x30d24b(this[_0x152503(0x21b)]))['subscribe'](_0x2ebf00=>{const _0x119005=_0x152503;if((_0x2ebf00==null?void 0x0:_0x2ebf00[_0x119005(0x1fa)])!==this[_0x119005(0x1fa)])return;const _0x30be3b={'eventID':_0x2221e4[_0x119005(0x29b)],'data':_0x2ebf00};this[_0x119005(0x330)](_0x30be3b);}),this['disposeWithMe'](this[_0x152503(0x31e)][_0x152503(0x3ae)](_0x2ee2c4=>{const _0x32c9c0=_0x152503;if(_0x2ee2c4[_0x32c9c0(0x2d4)]==null)return;const _0x14543d=_0x2ee2c4[_0x32c9c0(0x2d4)];if(_0x2ee2c4['id']!==_0x51e402['id']||_0x14543d[_0x32c9c0(0x2a0)]!==this['unitID'])return;const _0x3803ee={'id':_0x32c9c0(0x2ed),'params':_0x14543d},_0x144bdc=this[_0x32c9c0(0x21e)];for(const [_0x28939a,_0x23386e]of _0x144bdc){const _0x1e5be1={'id':_0x32c9c0(0x2ed),'params':{'unitId':this[_0x32c9c0(0x1fa)],'actions':null,'textRanges':_0x23386e[_0x32c9c0(0x29e)]}},_0x5d0850=this[_0x32c9c0(0x2ad)][_0x32c9c0(0x2e9)](_0x3803ee,_0x1e5be1,!0x1);if(_0x38dbad(_0x5d0850))throw _0x5d0850[_0x32c9c0(0x320)];_0x144bdc[_0x32c9c0(0x26e)](_0x28939a,{..._0x23386e,'ranges':_0x5d0850[_0x32c9c0(0x3b1)]['params'][_0x32c9c0(0x38b)]});}queueMicrotask(()=>{const _0x592fb7=_0x32c9c0;this[_0x592fb7(0x2e2)][_0x592fb7(0x3c2)](_0x144bdc);});})));}[_0xe70193(0x330)](_0x49c278){const _0x492f72=_0xe70193;var _0x490f83,_0x36d69d;const {memberID:_0x4a8cae,selection:_0x5cd5bf}=_0x49c278[_0x492f72(0x3c7)],_0x9c35fd=Ai(_0x5cd5bf),_0x10156b=(_0x36d69d=(_0x490f83=this[_0x492f72(0x3a9)][_0x492f72(0x337)](this['unitID'],_0x4a8cae))==null?void 0x0:_0x490f83['name'])!=null?_0x36d69d:_0x492f72(0x1c3),_0x297ce5={'color':this[_0x492f72(0x306)][_0x492f72(0x34e)](_0x4a8cae),'name':_0x10156b,'ranges':_0x9c35fd},_0x5b0208=this[_0x492f72(0x21e)];_0x5b0208[_0x492f72(0x26e)](_0x4a8cae,_0x297ce5),this[_0x492f72(0x2e2)][_0x492f72(0x3c2)](_0x5b0208);}[_0xe70193(0x263)](_0x1f889e){const _0x5ee879=_0xe70193,{memberID:_0x45aa88}=_0x1f889e[_0x5ee879(0x3c7)],_0x26dad8=this[_0x5ee879(0x21e)];_0x26dad8[_0x5ee879(0x2dd)](_0x45aa88),this[_0x5ee879(0x2e2)][_0x5ee879(0x3c2)](_0x26dad8);}['_toggleOnline'](){const _0x3ef35d=_0xe70193;var _0x3abd40;if(this[_0x3ef35d(0x1d0)]=!0x0,((_0x3abd40=this[_0x3ef35d(0x39a)][_0x3ef35d(0x28c)]())==null?void 0x0:_0x3abd40[_0x3ef35d(0x255)]())!==this[_0x3ef35d(0x1fa)])return;const _0xf68387=this['_injector'][_0x3ef35d(0x33a)](_0x32ba9d)['getDocRanges']();Array[_0x3ef35d(0x236)](_0xf68387)&&_0xf68387[_0x3ef35d(0x2c7)]>0x0&&this[_0x3ef35d(0x3a6)](_0xf68387);}[_0xe70193(0x28f)](){const _0x40c554=_0xe70193;this[_0x40c554(0x1d0)]=!0x1;}};xe=wi([A(0x2,_0x2cd7f4(_0x5b2c4d)),A(0x3,_0x2cd7f4(Ke)),A(0x4,_0x2cd7f4(_0x3fd052)),A(0x5,_0x2cd7f4(ze)),A(0x6,_0x2f8a5c),A(0x7,_0x1b26af),A(0x8,_0x4a2cbd)],xe);var xi=Object[_0xe70193(0x222)],Bi=(_0x53a820,_0x384c97,_0x1e66eb,_0x27cfed)=>{const _0x6e3111=_0xe70193;for(var _0x49d3ed=_0x27cfed>0x1?void 0x0:_0x27cfed?xi(_0x384c97,_0x1e66eb):_0x384c97,_0x1992a0=_0x53a820[_0x6e3111(0x2c7)]-0x1,_0xc84089;_0x1992a0>=0x0;_0x1992a0--)(_0xc84089=_0x53a820[_0x1992a0])&&(_0x49d3ed=_0xc84089(_0x49d3ed)||_0x49d3ed);return _0x49d3ed;},B=(_0x40093e,_0x23adf7)=>(_0x3b135e,_0x5a004a)=>_0x23adf7(_0x3b135e,_0x5a004a,_0x40093e);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x1fcdc0=[],_0x4610f4=!0x1;return _0x3baf1b=>{const _0xa119c8=_0x5de0;_0x1fcdc0[_0xa119c8(0x241)](_0x3baf1b),_0x4610f4||(_0x4610f4=!0x0,setTimeout(()=>{const _0x3b622d=_0xa119c8;_0x1fcdc0[_0x3b622d(0x3b7)](_0x1ee035=>_0x1ee035()),_0x1fcdc0=[],_0x4610f4=!0x1;}));};};let Be=class extends _0x5d64e7{constructor(_0x1e094,_0x4fe1d6,_0xdf9e24,_0x3267c4,_0xc1a158,_0x372517,_0x4b173d,_0x18f4ea){const _0x2c698f=_0xe70193;super(),_(this,_0x2c698f(0x1d0),!0x1),_(this,_0x2c698f(0x1e1),!0x1),_(this,_0x2c698f(0x2e2),new _0x2ce55f(new Map())),_(this,'cursorInfo$',this[_0x2c698f(0x2e2)][_0x2c698f(0x3c1)]()),_(this,_0x2c698f(0x33f),new _0x2ce55f([])),_(this,_0x2c698f(0x36f),this[_0x2c698f(0x33f)][_0x2c698f(0x3b5)](_0x3b5d0d(Fi))),_(this,_0x2c698f(0x3a6),_0x1e9268((_0x5dcd79,_0x239046)=>{const _0x298ac3=_0x2c698f,_0x2c7832={'eventID':_0x2221e4[_0x298ac3(0x29b)],'data':{'unitID':this[_0x298ac3(0x1fa)],'memberID':this[_0x298ac3(0x361)][_0x298ac3(0x343)](),'selection':_0x32b54a(_0x5dcd79,_0x239046[_0x298ac3(0x1e2)])}};this[_0x298ac3(0x361)][_0x298ac3(0x367)](_0x2c7832,this[_0x298ac3(0x1fa)]);},ki)),(this[_0x2c698f(0x1fa)]=_0x1e094,this[_0x2c698f(0x361)]=_0x4fe1d6,this['_injector']=_0xdf9e24,this[_0x2c698f(0x306)]=_0x3267c4,this['_memberService']=_0xc1a158,this['_univerInstanceService']=_0x372517,this['_commandService']=_0x4b173d,this[_0x2c698f(0x35b)]=_0x18f4ea);}get[_0xe70193(0x21e)](){const _0x28fee3=_0xe70193;return this[_0x28fee3(0x2e2)][_0x28fee3(0x321)]();}get['roomMembers'](){const _0x3f8906=_0xe70193;return this[_0x3f8906(0x33f)]['getValue']();}[_0xe70193(0x402)](){const _0x7a1a84=_0xe70193;super[_0x7a1a84(0x402)](),this[_0x7a1a84(0x2e2)][_0x7a1a84(0x3c2)](new Map()),this[_0x7a1a84(0x2e2)][_0x7a1a84(0x37e)](),this[_0x7a1a84(0x33f)][_0x7a1a84(0x3c2)]([]),this[_0x7a1a84(0x33f)][_0x7a1a84(0x37e)]();}[_0xe70193(0x1f2)](){const _0x1d39c5=_0xe70193;this['_init']||(this[_0x1d39c5(0x1e1)]=!0x0,this[_0x1d39c5(0x361)][_0x1d39c5(0x23e)][_0x1d39c5(0x3b5)](_0x30d24b(this[_0x1d39c5(0x21b)]))[_0x1d39c5(0x407)](_0x179382=>{const _0x29a13e=_0x1d39c5;_0x179382===_0x512a26[_0x29a13e(0x311)]?this[_0x29a13e(0x1f6)]():this[_0x29a13e(0x28f)]();}),this[_0x1d39c5(0x361)][_0x1d39c5(0x283)][_0x1d39c5(0x3b5)](_0x30d24b(this[_0x1d39c5(0x21b)]))['subscribe'](_0x3bbd2b=>{const _0x25fb45=_0x1d39c5,_0x12caf8=_0x3bbd2b[_0x25fb45(0x252)];_0x12caf8===_0x2221e4[_0x25fb45(0x29b)]&&this['_onCursorUpdate'](_0x3bbd2b),_0x12caf8===_0x2221e4[_0x25fb45(0x32f)]&&this['_onCursorDelete'](_0x3bbd2b);}),this[_0x1d39c5(0x1da)](),this[_0x1d39c5(0x205)](this[_0x1d39c5(0x31e)]['onCommandExecuted'](_0x2c318c=>{const _0x42797a=_0x1d39c5;if(this[_0x42797a(0x1d0)]&&_0x2c318c['id']===_0x1e6088['id']&&_0x2c318c['params'][_0x42797a(0x2a0)]===this[_0x42797a(0x1fa)]){const _0x714b92=_0x2c318c[_0x42797a(0x2d4)];this[_0x42797a(0x3a6)](_0x714b92['subUnitId'],_0x714b92[_0x42797a(0x219)][0x0]);}})));}['_onCursorUpdate'](_0x3f58a6){const _0x1cb1ac=_0xe70193;var _0x5cd5fe,_0x557065;const {memberID:_0x4079c1,selection:_0x1aa618}=_0x3f58a6[_0x1cb1ac(0x3c7)],{sheetName:_0x35ca98,range:_0x110f92}=_0x41a8e0(_0x1aa618),_0x502071={'name':(_0x557065=(_0x5cd5fe=this[_0x1cb1ac(0x3a9)][_0x1cb1ac(0x337)](this[_0x1cb1ac(0x1fa)],_0x4079c1))==null?void 0x0:_0x5cd5fe[_0x1cb1ac(0x325)])!=null?_0x557065:'Unknown\x20user','range':this[_0x1cb1ac(0x397)](_0x35ca98,_0x110f92),'sheetID':_0x35ca98,'color':this['_colorAssignService'][_0x1cb1ac(0x34e)](_0x4079c1),'selection':_0x1aa618},_0x4f0bb0=this[_0x1cb1ac(0x21e)];_0x4f0bb0[_0x1cb1ac(0x26e)](_0x4079c1,_0x502071),this[_0x1cb1ac(0x2e2)][_0x1cb1ac(0x3c2)](_0x4f0bb0);}[_0xe70193(0x263)](_0x251c2e){const _0x28cf04=_0xe70193,{memberID:_0x177822}=_0x251c2e['data'],_0x2f8c27=this[_0x28cf04(0x21e)];_0x2f8c27[_0x28cf04(0x2dd)](_0x177822),this['_cursorInfo$'][_0x28cf04(0x3c2)](_0x2f8c27);}[_0xe70193(0x397)](_0x2f9609,_0x3b33b8){const _0x798561=_0xe70193;var _0x59fc56,_0x415957;const _0x5cacac=(_0x415957=(_0x59fc56=this[_0x798561(0x39a)]['getUniverSheetInstance'](this[_0x798561(0x1fa)]))==null?void 0x0:_0x59fc56[_0x798561(0x38a)](_0x2f9609))==null?void 0x0:_0x415957[_0x798561(0x2e6)]();return(_0x5cacac==null?void 0x0:_0x5cacac[_0x798561(0x20a)](_0x295542=>_0x1c5318[_0x798561(0x36b)](_0x295542,_0x3b33b8)))||_0x3b33b8;}['_onRefRangeChange'](){const _0x9674e0=_0xe70193,_0x1800d2=new _0x539da2(),_0x5b46a8=Hi(),_0x1eeaa9=()=>{const _0x301c6b=_0x5de0;_0x1800d2['dispose']();const _0x1d8d37=(_0x133ad8,_0x5e72a0,_0x552369,_0x2353d4)=>{const _0x42c5e5=_0x5de0;let _0x16a9db=[];switch(_0x133ad8['id']){case _0x569e6c[_0x42c5e5(0x290)]:{_0x16a9db=_0x17dd53(_0x133ad8,_0x2353d4);break;}case _0x569e6c[_0x42c5e5(0x2bd)]:{_0x16a9db=_0x13c05d(_0x133ad8,_0x2353d4);break;}case _0x569e6c['InsertColCommandId']:{_0x16a9db=_0x7712ad(_0x133ad8,_0x2353d4);break;}case _0x569e6c[_0x42c5e5(0x3b8)]:{_0x16a9db=_0x4a2483(_0x133ad8,_0x2353d4);break;}case _0x569e6c['InsertRangeMoveRightCommandId']:{_0x16a9db=_0x163647(_0x133ad8,_0x2353d4);break;}case _0x569e6c[_0x42c5e5(0x256)]:{_0x16a9db=_0x41b022(_0x133ad8,_0x2353d4);break;}case _0x569e6c[_0x42c5e5(0x2b0)]:{_0x16a9db=_0x25d044(_0x133ad8,_0x2353d4);break;}case _0x569e6c[_0x42c5e5(0x284)]:{_0x16a9db=_0x74bcda(_0x133ad8,_0x2353d4);break;}case _0x569e6c['RemoveRowCommandId']:{_0x16a9db=_0x1a062c(_0x133ad8,_0x2353d4);break;}}const _0x24af51=_0x12324b(_0x16a9db,_0x2353d4),_0x28c7f6=this[_0x42c5e5(0x21e)][_0x42c5e5(0x33a)](_0x5e72a0);if(_0x28c7f6&&_0x24af51){const _0x5b22d9={..._0x28c7f6,'range':_0x24af51};this['cursorInfo'][_0x42c5e5(0x26e)](_0x5e72a0,_0x5b22d9),_0x5b46a8(()=>{const _0x520555=_0x42c5e5,_0x4b3410=this[_0x520555(0x35b)][_0x520555(0x2a1)](_0x24af51,_0x107dbe=>(_0x4b3410[_0x520555(0x402)](),_0x1d8d37(_0x107dbe,_0x5e72a0,_0x552369,_0x24af51)));_0x1800d2[_0x520555(0x2ee)](_0x4b3410);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x301c6b(0x3b7)]((_0x4b17b9,_0x2563b2)=>{const _0x43566e=_0x301c6b,{range:_0x26ff4d,sheetID:_0x5484d8}=_0x4b17b9,_0x1e0002=this['_refRangeService']['registerRefRange'](_0x26ff4d,_0x3bb02f=>(_0x1e0002[_0x43566e(0x402)](),_0x1d8d37(_0x3bb02f,_0x2563b2,_0x5484d8,_0x26ff4d)));_0x1800d2[_0x43566e(0x2ee)](_0x1e0002);});};this['disposeWithMe'](_0x3012f7(this[_0x9674e0(0x2e2)][_0x9674e0(0x407)](()=>{_0x1eeaa9();})));}[_0xe70193(0x1f6)](){const _0x2f0c04=_0xe70193;var _0x15a462,_0xba2d6e;if(this[_0x2f0c04(0x1d0)]=!0x0,((_0x15a462=this[_0x2f0c04(0x39a)][_0x2f0c04(0x28c)]())==null?void 0x0:_0x15a462[_0x2f0c04(0x255)]())!==this['unitID'])return;const _0x23b5cc=(_0xba2d6e=this[_0x2f0c04(0x1e0)][_0x2f0c04(0x33a)](_0x557488)[_0x2f0c04(0x238)]())==null?void 0x0:_0xba2d6e[0x0],_0x42e1f7=this[_0x2f0c04(0x39a)][_0x2f0c04(0x228)](_0x432dc0[_0x2f0c04(0x269)])[_0x2f0c04(0x32a)]();_0x23b5cc&&_0x42e1f7&&this[_0x2f0c04(0x3a6)](_0x42e1f7[_0x2f0c04(0x223)](),_0x23b5cc);}['_toggleOffline'](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0x2cd7f4(_0x5b2c4d)),B(0x3,_0x2cd7f4(Ke)),B(0x4,_0x2cd7f4(_0x3fd052)),B(0x5,_0x1b26af),B(0x6,_0x4a2cbd),B(0x7,_0x2cd7f4(_0x23d669))],Be);var Yi=Object['getOwnPropertyDescriptor'],Wi=(_0xf95c05,_0xf90acf,_0x2160ab,_0x169a4f)=>{const _0x1da016=_0xe70193;for(var _0x4874ec=_0x169a4f>0x1?void 0x0:_0x169a4f?Yi(_0xf90acf,_0x2160ab):_0xf90acf,_0x519802=_0xf95c05[_0x1da016(0x2c7)]-0x1,_0x3c8d30;_0x519802>=0x0;_0x519802--)(_0x3c8d30=_0xf95c05[_0x519802])&&(_0x4874ec=_0x3c8d30(_0x4874ec)||_0x4874ec);return _0x4874ec;},Ce=(_0x380dea,_0x4a4148)=>(_0x4b6839,_0x5b4267)=>_0x4a4148(_0x4b6839,_0x5b4267,_0x380dea);let H=class extends _0x5d64e7{constructor(_0xad6d80,_0x4c6ffa,_0x1d0f15){const _0x17dd09=_0xe70193;super(),_(this,_0x17dd09(0x30f),new Map()),_(this,'_entityInit$',new _0x4fac2d()),(this[_0x17dd09(0x39a)]=_0xad6d80,this['_injector']=_0x4c6ffa,this[_0x17dd09(0x2f3)]=_0x1d0f15,this[_0x17dd09(0x1e1)]());}['dispose'](){const _0x118b02=_0xe70193;super[_0x118b02(0x402)](),this[_0x118b02(0x2e3)][_0x118b02(0x37e)](),this[_0x118b02(0x30f)][_0x118b02(0x3b7)](_0x24b00e=>_0x24b00e['dispose']());}['getCollabCursors$'](_0x5b60af){const _0x2b678f=_0xe70193;return this['_entities'][_0x2b678f(0x1fe)](_0x5b60af)?this['_entities'][_0x2b678f(0x33a)](_0x5b60af)[_0x2b678f(0x3f0)]:this['_entityInit$'][_0x2b678f(0x3b5)](_0xa81c50(_0x16cbed=>_0x16cbed[_0x2b678f(0x1fa)]===_0x5b60af),_0x254873(_0x22f249=>_0x22f249[_0x2b678f(0x3f0)]));}[_0xe70193(0x1e1)](){const _0x212a69=_0xe70193;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x432dc0[_0x212a69(0x269)])['pipe'](_0x30d24b(this[_0x212a69(0x21b)]))[_0x212a69(0x407)](async _0x56010a=>{const _0x317dcd=_0x212a69,_0x3a4a5b=_0x56010a[_0x317dcd(0x255)](),_0x1fe995=await this[_0x317dcd(0x2ef)](_0x3a4a5b);this['_entityInit$']['next'](_0x1fe995),this[_0x317dcd(0x30f)][_0x317dcd(0x26e)](_0x3a4a5b,_0x1fe995);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x432dc0[_0x212a69(0x3c4)])[_0x212a69(0x3b5)](_0x30d24b(this['dispose$']))[_0x212a69(0x3b5)](_0xa81c50(_0x26bfdb=>!_0x26bfdb[_0x212a69(0x255)]()[_0x212a69(0x3f6)]('__')))[_0x212a69(0x407)](async _0x3da5d0=>{const _0x414960=_0x212a69,_0x19b49c=_0x3da5d0[_0x414960(0x255)](),_0x389d9=await this[_0x414960(0x310)](_0x19b49c);this[_0x414960(0x2e3)][_0x414960(0x3c2)](_0x389d9),this['_entities'][_0x414960(0x26e)](_0x19b49c,_0x389d9);}),_0x5e2d1a(this[_0x212a69(0x39a)]['getTypeOfUnitDisposed$'](_0x432dc0[_0x212a69(0x3c4)]),this[_0x212a69(0x39a)]['getTypeOfUnitDisposed$'](_0x432dc0[_0x212a69(0x269)]))[_0x212a69(0x3b5)](_0x30d24b(this['dispose$']))[_0x212a69(0x407)](_0x5436f3=>{const _0x3b307b=_0x212a69,_0x3db3ab=_0x5436f3['getUnitId'](),_0x5e80c3=this[_0x3b307b(0x30f)][_0x3b307b(0x33a)](_0x3db3ab);_0x5e80c3&&(_0x5e80c3[_0x3b307b(0x402)](),this[_0x3b307b(0x30f)][_0x3b307b(0x2dd)](_0x3db3ab));});}async[_0xe70193(0x2ef)](_0x52be7c){const _0x5bef5a=_0xe70193,_0x19a80a=await this[_0x5bef5a(0x2f3)][_0x5bef5a(0x34f)](_0x52be7c),_0x27218d=this[_0x5bef5a(0x1e0)][_0x5bef5a(0x3c6)](Be,_0x52be7c,_0x19a80a);return _0x27218d[_0x5bef5a(0x1f2)](),_0x27218d;}async[_0xe70193(0x310)](_0x56bd14){const _0x1430f5=_0xe70193,_0x2b78ff=await this['_collabSessionService'][_0x1430f5(0x34f)](_0x56bd14),_0xeed19f=this[_0x1430f5(0x1e0)][_0x1430f5(0x3c6)](xe,_0x56bd14,_0x2b78ff);return _0xeed19f[_0x1430f5(0x1f2)](),_0xeed19f;}};H=Wi([Ce(0x0,_0x1b26af),Ce(0x1,_0x2cd7f4(_0x5b2c4d)),Ce(0x2,_0x2cd7f4(_0x512455))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x278f33,_0x2d68b0){const _0xb69c0d=_0xe70193;let {radius:_0xca477a,width:_0x5eccd2,height:_0x56f8e0}=_0x2d68b0;_0xca477a=_0xca477a!=null?_0xca477a:0x0,_0x5eccd2=_0x5eccd2!=null?_0x5eccd2:0x1e,_0x56f8e0=_0x56f8e0!=null?_0x56f8e0:0x1e;let _0x441cd3=0x0,_0x31446e=0x0,_0x3cc043=0x0;_0x441cd3=_0x31446e=_0x3cc043=Math['min'](_0xca477a,_0x5eccd2/0x2,_0x56f8e0/0x2),_0x278f33[_0xb69c0d(0x406)](),_0x278f33['moveTo'](_0x441cd3,0x0),_0x278f33[_0xb69c0d(0x1cb)](_0x5eccd2-_0x31446e,0x0),_0x278f33[_0xb69c0d(0x30d)](_0x5eccd2-_0x31446e,_0x31446e,_0x31446e,Math['PI']*0x3/0x2,0x0,!0x1),_0x278f33['lineTo'](_0x5eccd2,_0x56f8e0-_0x3cc043),_0x278f33[_0xb69c0d(0x30d)](_0x5eccd2-_0x3cc043,_0x56f8e0-_0x3cc043,_0x3cc043,0x0,Math['PI']/0x2,!0x1),_0x278f33['lineTo'](0x0,_0x56f8e0),_0x278f33[_0xb69c0d(0x1cb)](0x0,_0x441cd3),_0x278f33['arc'](_0x441cd3,_0x441cd3,_0x441cd3,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x278f33[_0xb69c0d(0x2ba)](),_0x2d68b0[_0xb69c0d(0x3d1)]&&(_0x278f33[_0xb69c0d(0x3d0)](),_0x278f33[_0xb69c0d(0x39e)]=_0x2d68b0['fill'],_0x2d68b0[_0xb69c0d(0x1d6)]===_0xb69c0d(0x245)?_0x278f33['fill'](_0xb69c0d(0x245)):_0x278f33[_0xb69c0d(0x3d1)](),_0x278f33['restore']());}class ve extends _0x31b784{constructor(_0x35187a,_0x4d54e0){const _0x25487a=_0xe70193;super(_0x35187a,_0x4d54e0),_(this,_0x25487a(0x3cb)),_(this,_0x25487a(0x31c)),(this['color']=_0x4d54e0==null?void 0x0:_0x4d54e0[_0x25487a(0x3cb)],this[_0x25487a(0x31c)]=_0x4d54e0==null?void 0x0:_0x4d54e0[_0x25487a(0x31c)]);}static[_0xe70193(0x313)](_0x636214,_0x3b8d76){const _0x428ef3=_0xe70193,{text:_0x3450bd,color:_0x3332b6}=_0x3b8d76;_0x636214[_0x428ef3(0x3d0)](),_0x636214[_0x428ef3(0x2c2)]=_0x428ef3(0x358);const _0x373edf=_0x636214[_0x428ef3(0x3d6)](_0x3450bd)[_0x428ef3(0x40a)],_0x52601b=Math[_0x428ef3(0x292)](_0x373edf+0x2*Re,at);ji(_0x636214,{'height':Q,'radius':0x4,'width':_0x52601b,'fill':_0x3332b6}),_0x636214['fillStyle']=_0x428ef3(0x261);const _0x471f3d=Re,_0x13f5d8=Q-Vi,_0x5205cc=at-0x2*Re;if(_0x373edf>_0x5205cc){let _0x21d76c='',_0x193fa7=0x0;for(const _0x57442d of _0x3450bd){const _0x180cec=_0x636214['measureText'](_0x57442d)[_0x428ef3(0x40a)];if(_0x193fa7+_0x180cec<=_0x5205cc-_0x636214[_0x428ef3(0x3d6)](_0x428ef3(0x227))['width'])_0x21d76c+=_0x57442d,_0x193fa7+=_0x180cec;else{_0x21d76c+=_0x428ef3(0x227);break;}}_0x636214['fillText'](_0x21d76c,_0x471f3d,_0x13f5d8);}else _0x636214['fillText'](_0x3450bd,_0x471f3d,_0x13f5d8);_0x636214[_0x428ef3(0x3f2)]();}[_0xe70193(0x357)](_0x5185e8){const _0xf8d897=_0xe70193;ve[_0xf8d897(0x313)](_0x5185e8,this);}}const De='collab-text-anchor-',Xi=_0xe70193(0x3f3),Gi=_0xe70193(0x3b6),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0xe70193(0x202);class ct{constructor(_0x503683,_0x78f243,_0x39b1f6,_0x116592){const _0x3fccfd=_0xe70193;_(this,_0x3fccfd(0x2ca),[]),_(this,_0x3fccfd(0x3a0),null),_(this,_0x3fccfd(0x2ff),null),_(this,'_anchorDot',null),_(this,'_hideTimer',null),_(this,_0x3fccfd(0x298),null),(this['_cursor']=_0x503683,this[_0x3fccfd(0x27a)]=_0x78f243,this[_0x3fccfd(0x3a2)]=_0x39b1f6,this[_0x3fccfd(0x2c8)]=_0x116592,this[_0x3fccfd(0x240)]());}set[_0xe70193(0x2b2)](_0x3342b8){const _0x528136=_0xe70193;_0x3342b8?(this['_anchorDot']&&this['_anchorDot'][_0x528136(0x259)](),this[_0x528136(0x2ff)]&&this[_0x528136(0x2ff)][_0x528136(0x2af)]()):(this[_0x528136(0x302)]&&this[_0x528136(0x302)][_0x528136(0x2af)](),this[_0x528136(0x2ff)]&&this[_0x528136(0x2ff)]['hide']());}[_0xe70193(0x402)](){const _0xc6bab9=_0xe70193;for(const _0x466949 of this['_shapes'])_0x466949[_0xc6bab9(0x402)]();this[_0xc6bab9(0x2ff)]&&this[_0xc6bab9(0x2ff)][_0xc6bab9(0x402)](),this['_anchorDot']&&this[_0xc6bab9(0x302)][_0xc6bab9(0x402)](),this[_0xc6bab9(0x3a0)]&&this[_0xc6bab9(0x3a0)][_0xc6bab9(0x402)](),this['_eventUnsubscribe']&&this[_0xc6bab9(0x298)]();}['_render'](){const _0x4c5850=_0xe70193;var _0x179dd5;const {_docSkeleton:_0x2b5eb3,_document:_0x23e2e9}=this,{color:_0x5c90d9,name:_0x25c411,ranges:_0x2e6efc}=this['_cursor'],_0x53bc61=_0x23e2e9[_0x4c5850(0x1e6)](),{docsLeft:_0x45df65,docsTop:_0x26534d}=_0x53bc61,_0x58752b=new _0x166919(_0x53bc61,_0x2b5eb3);for(const {startOffset:_0x5f0c10,endOffset:_0x507b6c,rangeType:_0x106851,segmentId:_0x1d155a,segmentPage:_0x4aa08e,collapsed:_0x5fea9e,isActive:_0x1033b8}of _0x2e6efc){const _0x357a36=_0x2b5eb3[_0x4c5850(0x354)](_0x5f0c10,!0x0,_0x1d155a,_0x4aa08e);let _0x3330cd=_0x2b5eb3[_0x4c5850(0x354)](_0x507b6c,!0x0,_0x1d155a,_0x4aa08e);if(_0x3330cd==null&&(_0x3330cd=_0x2b5eb3['findNodePositionByCharIndex'](_0x507b6c-0x1,!0x1,_0x1d155a,_0x4aa08e)),_0x1033b8){const {contentBoxPointGroup:_0x2771a5}=_0x58752b[_0x4c5850(0x1d3)](_0x3330cd,_0x3330cd);if(_0x2771a5[_0x4c5850(0x2c7)]===0x0)continue;this[_0x4c5850(0x286)](_0x5c90d9,_0x2771a5,_0x45df65,_0x26534d,_0x25c411),this['_eventUnsubscribe']=this[_0x4c5850(0x23c)]();}if(_0x357a36&&_0x3330cd){if(_0x106851===_0x5826e5[_0x4c5850(0x315)]){const _0x5f4453=new _0x2f90aa(_0x53bc61,_0x2b5eb3),{pointGroup:_0x26a106}=(_0x179dd5=_0x5f4453[_0x4c5850(0x1d3)](_0x357a36,_0x3330cd))!=null?_0x179dd5:{};if(_0x26a106==null||_0x26a106[_0x4c5850(0x2c7)]===0x0)continue;this['_drawRectRange'](_0x5c90d9,_0x26a106,_0x45df65,_0x26534d);}else{if(!_0x5fea9e){const {borderBoxPointGroup:_0x3008e8}=_0x58752b[_0x4c5850(0x1d3)](_0x357a36,_0x3330cd);if(_0x3008e8[_0x4c5850(0x2c7)]===0x0)continue;this[_0x4c5850(0x3c9)](_0x5c90d9,_0x3008e8,_0x45df65,_0x26534d);}}}}}[_0xe70193(0x286)](_0x2fa85b,_0x2701f5,_0x52e1dc,_0x2d5519,_0x140771){const _0x2eec5a=_0xe70193,_0x5a3452=this[_0x2eec5a(0x268)](_0x2701f5),{left:_0x2ca62e,top:_0x25fab3,height:_0xc99355}=_0x5a3452,_0x392145=this[_0x2eec5a(0x3dd)](),_0x36063e=zi/_0x392145,_0x56771d=new _0x3b2708(De+_0x156fa6(z),{'left':_0x2ca62e+_0x52e1dc-_0x36063e,'top':_0x25fab3+_0x2d5519,'height':_0xc99355,'width':Ki,'fill':_0x2fa85b||_0x1ec52b(_0x361ff9[_0x2eec5a(0x264)],0x0),'strokeWidth':_0x36063e,'stroke':Ji,'evented':!0x0});this[_0x2eec5a(0x3a0)]=_0x56771d,this['_scene'][_0x2eec5a(0x28d)](_0x56771d,_0x479ab8);const _0x540b5d=new _0x3b2708(De+_0x156fa6(z),{'left':_0x2ca62e+_0x52e1dc-_0x36063e,'top':_0x25fab3+_0x2d5519-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x2fa85b||_0x1ec52b(_0x361ff9[_0x2eec5a(0x264)],0x0),'strokeWidth':0x0,'stroke':_0x2fa85b||_0x1ec52b(_0x361ff9[_0x2eec5a(0x264)],0x0),'evented':!0x1});this[_0x2eec5a(0x302)]=_0x540b5d,this[_0x2eec5a(0x27a)][_0x2eec5a(0x28d)](_0x540b5d,_0x479ab8);const _0x2ac804=new ve(De+_0x156fa6(z),{'left':_0x2ca62e+_0x52e1dc-_0x36063e,'top':_0x25fab3+_0x2d5519-Q,'text':_0x140771,'color':_0x2fa85b});this['_textBubble']=_0x2ac804,this[_0x2eec5a(0x27a)][_0x2eec5a(0x28d)](_0x2ac804,_0x479ab8),this['_hover']=!0x1;}[_0xe70193(0x23c)](){const _0x3fe7ab=_0xe70193,_0x26421d=this['_anchor'][_0x3fe7ab(0x22a)][_0x3fe7ab(0x3fb)](()=>{this['_hover']=!0x0;}),_0x466737=this[_0x3fe7ab(0x3a0)][_0x3fe7ab(0x1e4)][_0x3fe7ab(0x3fb)](()=>{const _0xa06eb4=_0x3fe7ab;this[_0xa06eb4(0x24b)]&&clearTimeout(this[_0xa06eb4(0x24b)]),this[_0xa06eb4(0x24b)]=setTimeout(()=>{const _0x55c622=_0xa06eb4;this[_0x55c622(0x2b2)]=!0x1;},0x7d0);});return()=>{const _0x57c2b0=_0x3fe7ab;_0x26421d['unsubscribe'](),_0x466737[_0x57c2b0(0x20c)]();};}['_drawTextRange'](_0x74fd36,_0x1db52a,_0x5304ce,_0x348796){const _0x4d5656=_0xe70193,_0x1a1597=new _0x43a92d(_0x74fd36)[_0x4d5656(0x31a)](0.2)['toRgbString'](),_0x509e88=new _0x357128(Xi+_0x156fa6(z),{'pointsGroup':_0x1db52a,'fill':_0x1a1597||_0x1ec52b(_0x361ff9[_0x4d5656(0x264)],0.2),'left':_0x5304ce,'top':_0x348796,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4d5656(0x2ca)][_0x4d5656(0x241)](_0x509e88),this['_scene']['addObject'](_0x509e88,_0x479ab8);}[_0xe70193(0x386)](_0x41bae5,_0x3fb9c8,_0x37ca73,_0x32b6da){const _0x946d9=_0xe70193,_0x4ff79c=new _0x43a92d(_0x41bae5)[_0x946d9(0x31a)](0.2)['toRgbString'](),_0x45cf23=new _0x357128(Gi+_0x156fa6(z),{'pointsGroup':_0x3fb9c8,'fill':_0x4ff79c||_0x1ec52b(_0x361ff9['black'],0.2),'left':_0x37ca73,'top':_0x32b6da,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x946d9(0x2ca)]['push'](_0x45cf23),this[_0x946d9(0x27a)][_0x946d9(0x28d)](_0x45cf23,_0x479ab8);}['_getAnchorBounding'](_0x1897b9){const _0x2d5806=_0x1897b9[0x0],_0x3828f3=_0x2d5806[0x0],_0x2b1625=_0x2d5806[0x2],{x:_0x34b1a6,y:_0x53f0c0}=_0x3828f3,{x:_0x3177a7,y:_0x4f09bd}=_0x2b1625;return{'left':_0x34b1a6,'top':_0x53f0c0,'width':_0x3177a7-_0x34b1a6,'height':_0x4f09bd-_0x53f0c0};}[_0xe70193(0x3dd)](){const _0x33915c=_0xe70193,{scaleX:_0x47d760,scaleY:_0x2f92ac}=this[_0x33915c(0x27a)][_0x33915c(0x229)]();return Math[_0x33915c(0x244)](_0x47d760,_0x2f92ac);}}var Zi=Object[_0xe70193(0x222)],Qi=(_0x31a062,_0x465fe3,_0x2e4216,_0x5a0b6d)=>{const _0x1fe6f9=_0xe70193;for(var _0x15c451=_0x5a0b6d>0x1?void 0x0:_0x5a0b6d?Zi(_0x465fe3,_0x2e4216):_0x465fe3,_0x3327d3=_0x31a062[_0x1fe6f9(0x2c7)]-0x1,_0xd63df4;_0x3327d3>=0x0;_0x3327d3--)(_0xd63df4=_0x31a062[_0x3327d3])&&(_0x15c451=_0xd63df4(_0x15c451)||_0x15c451);return _0x15c451;},ie=(_0x1f5bf3,_0x2881fa)=>(_0x7e9549,_0xcef876)=>_0x2881fa(_0x7e9549,_0xcef876,_0x1f5bf3);let Fe=class extends _0x5d64e7{constructor(_0x96d178,_0x221155,_0x4ec821,_0xe1555b,_0x428f07){const _0x2bb7a6=_0xe70193;super(),_(this,'_cursorShapes',[]),_(this,_0x2bb7a6(0x214),[]),(this['_context']=_0x96d178,this[_0x2bb7a6(0x37c)]=_0x221155,this[_0x2bb7a6(0x33c)]=_0x4ec821,this['_commandService']=_0xe1555b,this[_0x2bb7a6(0x34c)]=_0x428f07,this[_0x2bb7a6(0x1e1)]());}[_0xe70193(0x1e1)](){const _0x7f3bcd=_0xe70193,_0x1fa4aa=this[_0x7f3bcd(0x2cd)][_0x7f3bcd(0x2a0)],_0x3aa622=this['_docSkeletonManagerService'];this[_0x7f3bcd(0x205)](_0xeab67a([this[_0x7f3bcd(0x33c)][_0x7f3bcd(0x388)](_0x1fa4aa),this[_0x7f3bcd(0x34c)]['currentTheme$']])[_0x7f3bcd(0x3b5)](_0x1932c8(([_0x114ed6,_0x28eed1])=>({'skeleton':_0x3aa622['getSkeleton'](),'cursors':[..._0x114ed6[_0x7f3bcd(0x237)]()][_0x7f3bcd(0x335)](_0x164085=>({..._0x164085,'color':this[_0x7f3bcd(0x34c)][_0x7f3bcd(0x3d7)](_0x164085['color'])}))})))[_0x7f3bcd(0x407)](_0x519cf3=>{const _0x5bac5b=_0x7f3bcd;if(this[_0x5bac5b(0x3a1)](),_0x519cf3){const {skeleton:_0x485c16,cursors:_0x1075de}=_0x519cf3;this['_updateCollabCursors'](_0x485c16,_0x1075de);}})),this[_0x7f3bcd(0x393)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x480150,_0x513d55){const _0x2d4b08=_0xe70193,{scene:_0x1d2d5d,mainComponent:_0x2ef2fc}=this[_0x2d4b08(0x2cd)],_0x59d456=_0x513d55[_0x2d4b08(0x3e4)](_0x39aa06=>new ct(_0x39aa06,_0x1d2d5d,_0x480150,_0x2ef2fc));this[_0x2d4b08(0x28b)]=_0x59d456,this[_0x2d4b08(0x214)]=_0x513d55;}[_0xe70193(0x346)](){const _0x2c0f10=_0xe70193;this[_0x2c0f10(0x3a1)]();const {scene:_0xec812a,mainComponent:_0x12f2af}=this[_0x2c0f10(0x2cd)],_0x5d34d4=this[_0x2c0f10(0x37c)]['getSkeleton'](),_0x424b4b=this[_0x2c0f10(0x214)][_0x2c0f10(0x3e4)](_0x18ba30=>new ct(_0x18ba30,_0xec812a,_0x5d34d4,_0x12f2af));this[_0x2c0f10(0x28b)]=_0x424b4b;}[_0xe70193(0x3a1)](){const _0x5982b5=_0xe70193;this[_0x5982b5(0x28b)][_0x5982b5(0x3b7)](_0x118c24=>_0x118c24[_0x5982b5(0x402)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x1ea23e=_0xe70193,_0x4bfb20=[_0x53a0de['id']];this[_0x1ea23e(0x205)](this['_commandService']['onCommandExecuted'](_0x349b5a=>{const _0x468fe3=_0x1ea23e;_0x4bfb20[_0x468fe3(0x27b)](_0x349b5a['id'])&&_0x349b5a[_0x468fe3(0x2d4)]['unitId']===this[_0x468fe3(0x2cd)][_0x468fe3(0x2a0)]&&this[_0x468fe3(0x346)]();}));}[_0xe70193(0x393)](){const _0x3307d0=_0xe70193;this[_0x3307d0(0x205)](_0x2f567e(this[_0x3307d0(0x2cd)]['engine']['onTransformChange$'])['pipe'](_0x4868f1(_0xdb5d74=>_0xdb5d74['type']===_0x556533['resize']),_0x1ac8f8(0x10))[_0x3307d0(0x407)](()=>{const _0x494730=_0x3307d0;this[_0x494730(0x346)]();}));}};Fe=Qi([ie(0x1,_0x2cd7f4(_0x2edbca)),ie(0x2,_0x2cd7f4(H)),ie(0x3,_0x4a2cbd),ie(0x4,_0x2cd7f4(_0x18e6ab))],Fe);const qi=0x1,en=1.5;class tn extends _0x31b784{constructor(_0xfbac12,_0x2ccff3){const _0x4631e1=_0xe70193;super(_0xfbac12,_0x2ccff3),_(this,_0x4631e1(0x209)),_(this,'_hovered',!0x1),_(this,'_range'),_(this,_0x4631e1(0x212),''),_(this,_0x4631e1(0x1f5),_0x4631e1(0x2b8)),_(this,_0x4631e1(0x3ec)),(_0x2ccff3&&this[_0x4631e1(0x22b)](_0x2ccff3),this[_0x4631e1(0x22a)][_0x4631e1(0x3fb)](()=>this[_0x4631e1(0x22b)]({'hovered':!0x0})),this[_0x4631e1(0x1e4)][_0x4631e1(0x3fb)](()=>this[_0x4631e1(0x22b)]({'hovered':!0x1})));}[_0xe70193(0x22b)](_0x300cdb){const _0x1a7164=_0xe70193;var _0x4b0def,_0x49e02c,_0x3eb650,_0x29723e,_0x59a063,_0x5e0f5c;this[_0x1a7164(0x209)]=(_0x4b0def=_0x300cdb[_0x1a7164(0x3cb)])!=null?_0x4b0def:this['_color'],this[_0x1a7164(0x239)]=(_0x49e02c=_0x300cdb[_0x1a7164(0x305)])!=null?_0x49e02c:this[_0x1a7164(0x239)],this[_0x1a7164(0x22c)]=(_0x3eb650=_0x300cdb[_0x1a7164(0x1e2)])!=null?_0x3eb650:this[_0x1a7164(0x22c)],this[_0x1a7164(0x212)]=(_0x29723e=_0x300cdb[_0x1a7164(0x325)])!=null?_0x29723e:this[_0x1a7164(0x212)],this[_0x1a7164(0x1f5)]=(_0x59a063=_0x300cdb[_0x1a7164(0x3bc)])!=null?_0x59a063:this[_0x1a7164(0x1f5)],this['_backgroundColor']=(_0x5e0f5c=_0x300cdb[_0x1a7164(0x21a)])!=null?_0x5e0f5c:this[_0x1a7164(0x3ec)],this[_0x1a7164(0x294)]({'width':_0x300cdb[_0x1a7164(0x40a)],'height':_0x300cdb[_0x1a7164(0x3b0)]});}[_0xe70193(0x3a7)](_0x198a16){const _0x33721e=_0xe70193,{row:_0x4eb012,column:_0x4f02e6}=_0x198a16;if(_0x4eb012>=this[_0x33721e(0x22c)][_0x33721e(0x253)]&&_0x4eb012<=this[_0x33721e(0x22c)][_0x33721e(0x2bf)]&&_0x4f02e6>=this[_0x33721e(0x22c)][_0x33721e(0x2a6)]&&_0x4f02e6<=this['_range'][_0x33721e(0x1cd)]){this[_0x33721e(0x22b)]({'hovered':!0x0});return;}this[_0x33721e(0x22b)]({'hovered':!0x1});}[_0xe70193(0x2dc)](_0x27a143){return!0x1;}[_0xe70193(0x357)](_0x3fe56b){const _0xbc00a3=_0xe70193;_0x3b2708[_0xbc00a3(0x313)](_0x3fe56b,{'width':this[_0xbc00a3(0x40a)],'height':this[_0xbc00a3(0x3b0)],'strokeWidth':en,'stroke':this[_0xbc00a3(0x209)],'evented':!0x1,'fill':this[_0xbc00a3(0x3ec)]}),this['_hovered']&&(_0x3fe56b[_0xbc00a3(0x3d0)](),_0x3fe56b[_0xbc00a3(0x2c3)](0x1,0x0,0x0,0x1,this[_0xbc00a3(0x40a)],this[_0xbc00a3(0x1f5)]===_0xbc00a3(0x1f4)?0x0:-Q),ve[_0xbc00a3(0x313)](_0x3fe56b,{'text':this[_0xbc00a3(0x212)],'color':this[_0xbc00a3(0x209)]}),_0x3fe56b[_0xbc00a3(0x3f2)]());}}var sn=Object[_0xe70193(0x222)],nn=(_0x3d5181,_0x5a1378,_0x115935,_0x1e961a)=>{for(var _0x269b9d=_0x1e961a>0x1?void 0x0:_0x1e961a?sn(_0x5a1378,_0x115935):_0x5a1378,_0x72c794=_0x3d5181['length']-0x1,_0x17be31;_0x72c794>=0x0;_0x72c794--)(_0x17be31=_0x3d5181[_0x72c794])&&(_0x269b9d=_0x17be31(_0x269b9d)||_0x269b9d);return _0x269b9d;},be=(_0x1f7989,_0x3a4645)=>(_0x43f12f,_0x239633)=>_0x3a4645(_0x43f12f,_0x239633,_0x1f7989);const rn=0x1389;let ke=class extends _0x5d64e7{constructor(_0x597566,_0x4065a3,_0x21cd97,_0x413655){const _0x50524d=_0xe70193;super(),_(this,_0x50524d(0x214),new Set()),_(this,'_lastPointer',null),(this['_context']=_0x597566,this[_0x50524d(0x3f5)]=_0x4065a3,this[_0x50524d(0x33c)]=_0x21cd97,this[_0x50524d(0x34c)]=_0x413655,this['_init']());}[_0xe70193(0x1e1)](){const _0x20c5f2=_0xe70193;this[_0x20c5f2(0x3f5)][_0x20c5f2(0x201)][_0x20c5f2(0x3b5)](_0x199d79(this['dispose$']),_0x4c7a2f(_0x5ba4de=>{const _0x2df637=_0x20c5f2;if(_0x5ba4de){const _0x22f654=_0x5ba4de['sheetId'];return _0xeab67a(this['_collabCursorController'][_0x2df637(0x388)](this[_0x2df637(0x2cd)][_0x2df637(0x2a0)]),this['_themeService'][_0x2df637(0x3cf)])[_0x2df637(0x3b5)](_0x1932c8(([_0x1156e6,_0x116d1d])=>{const _0x31e893=_0x2df637,_0x34118b=new Map();return _0x1156e6[_0x31e893(0x3b7)]((_0x453bf5,_0x17ba69)=>{const _0x4f8a8b=_0x31e893;if(_0x453bf5[_0x4f8a8b(0x2be)]===_0x22f654){const _0x2990ef={..._0x453bf5};_0x2990ef[_0x4f8a8b(0x3cb)]=this[_0x4f8a8b(0x34c)][_0x4f8a8b(0x3d7)](_0x453bf5[_0x4f8a8b(0x3cb)]),_0x34118b[_0x4f8a8b(0x26e)](_0x17ba69,_0x2990ef);}}),{'skeleton':_0x5ba4de,'cursors':_0x34118b};}));}return _0x3f176a({'skeleton':null,'cursors':new Map()});}))[_0x20c5f2(0x407)](({skeleton:_0x59aa33,cursors:_0x136096})=>{const _0x52c3d2=_0x20c5f2;this['_removeCollabCursors'](),_0x59aa33&&this[_0x52c3d2(0x34a)](_0x59aa33,_0x136096);}),this[_0x20c5f2(0x3f5)]['currentSkeleton$']['subscribe'](_0x319bf1=>{const _0xf0dc8a=_0x20c5f2;if(_0x319bf1==null)return;const {skeleton:_0x452293}=_0x319bf1,{scene:_0x4c2930}=this[_0xf0dc8a(0x2cd)];_0x4c2930[_0xf0dc8a(0x26b)][_0xf0dc8a(0x3fb)](_0x1e9268(_0x290eff=>{const _0x1b7fa2=_0xf0dc8a;var _0x56bc2b,_0x3c6241;const {offsetX:_0x55e4d3,offsetY:_0x382aed}=_0x290eff,{x:_0x5b391b,y:_0x130c45}=_0x4c2930['getRelativeToViewportCoord'](_0x4c3c4e['FromArray']([_0x55e4d3,_0x382aed])),{scaleX:_0x43e04a,scaleY:_0x8503fd}=_0x4c2930[_0x1b7fa2(0x229)](),_0x120b3a=_0x4c2930[_0x1b7fa2(0x2b3)](_0x3613c7[_0x1b7fa2(0x2f1)]),_0x425b54=_0x4c2930[_0x1b7fa2(0x3fa)](_0x4c3c4e['FromArray']([_0x5b391b,_0x130c45]),_0x120b3a),_0x999d3d=_0x452293[_0x1b7fa2(0x334)](_0x55e4d3,_0x382aed,_0x43e04a,_0x8503fd,_0x425b54);((_0x56bc2b=this[_0x1b7fa2(0x38f)])==null?void 0x0:_0x56bc2b[_0x1b7fa2(0x221)])===_0x999d3d[_0x1b7fa2(0x221)]&&((_0x3c6241=this[_0x1b7fa2(0x38f)])==null?void 0x0:_0x3c6241['row'])===_0x999d3d[_0x1b7fa2(0x2c1)]||this[_0x1b7fa2(0x214)][_0x1b7fa2(0x3b7)](_0x3739bc=>{const _0x42da3b=_0x1b7fa2;_0x3739bc[_0x42da3b(0x3a7)](_0x999d3d);});},0x64));});}[_0xe70193(0x34a)](_0x61bf63,_0x5e448b){const _0x35316a=_0xe70193;var _0x153bd1;const _0x50761a=(_0x153bd1=this[_0x35316a(0x3f5)][_0x35316a(0x3ab)]())==null?void 0x0:_0x153bd1[_0x35316a(0x246)];if(!_0x50761a)return;const _0x3bf5d=this[_0x35316a(0x312)]();if(!_0x3bf5d)return;this[_0x35316a(0x214)][_0x35316a(0x3b7)](_0x588d5f=>{const _0x5b2030=_0x35316a;_0x588d5f[_0x5b2030(0x21f)]();});const {scene:_0x221ee2}=_0x3bf5d,_0xd18484=on(Array[_0x35316a(0x1dd)](_0x5e448b[_0x35316a(0x237)]()))['map'](_0x3c6517=>{const {color:_0x5e685b,range:_0x3709f3,name:_0xf2aa1a,selection:_0x4a16cb,sheetID:_0x5d6743}=_0x3c6517,{startColumn:_0x454bf8,startRow:_0x476b5c,endColumn:_0x38552a,endRow:_0x2dadfe}=_0x3709f3,_0x465823=_0x7d1d54(_0x476b5c,_0x454bf8,_0x221ee2,_0x50761a),_0x342dc8=_0x7d1d54(_0x2dadfe,_0x38552a,_0x221ee2,_0x50761a),{columnHeaderHeightAndMarginTop:_0x317d88}=_0x50761a,{startX:_0x158892,startY:_0x756715}=_0x465823,{endX:_0x4ec510,endY:_0x5987c2}=_0x342dc8,_0x108d15=_0x4ec510-_0x158892,_0x7fbc5f=_0x5987c2-_0x756715,_0x25e50f={'labelPosition':_0x756715-_0x317d88>=Q?'top':'bottom','sheetID':_0x5d6743,'range':_0x3709f3,'color':_0x5e685b,'name':_0xf2aa1a,'selection':_0x4a16cb,'left':_0x158892,'top':_0x756715,'width':_0x108d15,'height':_0x7fbc5f,'evented':!0x1,'zIndex':rn};return new tn(_0xf2aa1a,_0x25e50f);});_0x221ee2['addObjects'](_0xd18484,qi),this[_0x35316a(0x214)]=new Set(_0xd18484);}[_0xe70193(0x3a1)](){const _0x482d9f=_0xe70193;var _0x3db6aa;(_0x3db6aa=this['_cursors'])==null||_0x3db6aa[_0x482d9f(0x3b7)](_0x17ec59=>_0x17ec59[_0x482d9f(0x402)]());}[_0xe70193(0x312)](){const _0x18922f=_0xe70193;return _0x2da6e4(this['_context'][_0x18922f(0x1f1)],this[_0x18922f(0x2cd)]);}};ke=nn([be(0x1,_0x2cd7f4(_0x4d888a)),be(0x2,_0x2cd7f4(H)),be(0x3,_0x2cd7f4(_0x18e6ab))],ke);function on(_0x124ff5){const _0x3d24f4=_0xe70193,_0x3399f9=new Map();return _0x124ff5[_0x3d24f4(0x3b7)](_0x48bb2e=>{const _0x29fae8=_0x3d24f4;if(_0x3399f9[_0x29fae8(0x1fe)](_0x48bb2e[_0x29fae8(0x308)])){const _0x25f021=_0x3399f9['get'](_0x48bb2e[_0x29fae8(0x308)]);_0x25f021['name']+=',\x20'+_0x48bb2e[_0x29fae8(0x325)];}else _0x3399f9[_0x29fae8(0x26e)](_0x48bb2e[_0x29fae8(0x308)],_0x48bb2e);}),Array[_0x3d24f4(0x1dd)](_0x3399f9[_0x3d24f4(0x237)]());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x1f7c22,_0x32aaf1,_0x1fd099,_0x95c83c)=>{const _0x4a9110=_0xe70193;for(var _0x4e1128=_0x95c83c>0x1?void 0x0:_0x95c83c?an(_0x32aaf1,_0x1fd099):_0x32aaf1,_0x2747c4=_0x1f7c22[_0x4a9110(0x2c7)]-0x1,_0x2719a8;_0x2747c4>=0x0;_0x2747c4--)(_0x2719a8=_0x1f7c22[_0x2747c4])&&(_0x4e1128=_0x2719a8(_0x4e1128)||_0x4e1128);return _0x4e1128;},F=(_0x1971d8,_0x468442)=>(_0x230311,_0x35e3e3)=>_0x468442(_0x230311,_0x35e3e3,_0x1971d8);let _e=class extends _0x3f5bb1{constructor(_0x50fe68,_0x148ac4,_0x277a12,_0x48fb4e,_0x2c7ab0,_0x39ba79){const _0x253774=_0xe70193;super(),this['_beforeCloseService']=_0x50fe68,this[_0x253774(0x362)]=_0x148ac4,this[_0x253774(0x2ea)]=_0x277a12,this[_0x253774(0x390)]=_0x48fb4e,this['_notificationService']=_0x2c7ab0,this[_0x253774(0x366)]=_0x39ba79,this[_0x253774(0x385)](),this[_0x253774(0x242)]();}['_setupBeforeClosingHandler'](){const _0x29a596=_0xe70193;this[_0x29a596(0x205)](this['_beforeCloseService'][_0x29a596(0x32e)](()=>{const _0x368157=_0x29a596;if(this[_0x368157(0x362)]['saveTaskMap'][_0x368157(0x37a)])return this[_0x368157(0x366)]['t'](_0x368157(0x25c));}));}['_initEvent'](){const _0x322944=_0xe70193;this[_0x322944(0x205)](this[_0x322944(0x2ea)][_0x322944(0x283)][_0x322944(0x407)](_0xe40612=>{const _0x25248a=_0x322944;_0xe40612['id']===_0x4d020b[_0x25248a(0x3e0)]&&this['_messageService'][_0x25248a(0x2af)]({'type':_0x4f4e28[_0x25248a(0x39b)],'content':this[_0x25248a(0x366)]['t'](_0x25248a(0x3e7))}),_0xe40612['id']===_0x4d020b[_0x25248a(0x338)]&&this[_0x25248a(0x390)]['show']({'type':_0x4f4e28[_0x25248a(0x39b)],'content':this[_0x25248a(0x366)]['t']('collaboration.closeRoom')}),_0xe40612['id']===_0x4d020b['PERMISSION_DENIED']&&this[_0x25248a(0x3bd)][_0x25248a(0x2af)]({'title':this[_0x25248a(0x366)]['t']('permission.title'),'content':this[_0x25248a(0x366)]['t'](_0x25248a(0x3a8)),'type':_0x25248a(0x320),'duration':0x0}),_0xe40612['id']===_0x4d020b['CONFLICT']&&this[_0x25248a(0x390)][_0x25248a(0x2af)]({'type':_0x4f4e28[_0x25248a(0x2bb)],'content':this[_0x25248a(0x366)]['t']('collaboration.closeRoom')+'('+_0xe40612[_0x25248a(0x3c7)]+')'}),_0xe40612['id']===_0x4d020b[_0x25248a(0x37b)]&&this[_0x25248a(0x390)][_0x25248a(0x2af)]({'type':_0x4f4e28[_0x25248a(0x39b)],'content':this[_0x25248a(0x366)]['t'](_0xe40612[_0x25248a(0x3c7)]||'')}),_0xe40612['id']===_0x4d020b['SOCKET_FAILED_RETRY']&&this[_0x25248a(0x390)][_0x25248a(0x2af)]({'type':_0x4f4e28[_0x25248a(0x39b)],'content':this[_0x25248a(0x366)]['t'](_0x25248a(0x25d))}),_0xe40612['id']===_0x4d020b[_0x25248a(0x383)]&&this[_0x25248a(0x390)][_0x25248a(0x2af)]({'type':_0x4f4e28[_0x25248a(0x2bb)],'content':this[_0x25248a(0x366)]['t']('session.connection-failed')}),_0xe40612['id']===_0x4d020b[_0x25248a(0x220)]&&this['_messageService'][_0x25248a(0x2af)]({'type':_0x4f4e28[_0x25248a(0x2bb)],'content':this['_localeService']['t'](_0x25248a(0x340))});}));}};_e=cn([F(0x0,_0x786123),F(0x1,_0x6fb411),F(0x2,_0x2cd7f4(_0x258fad)),F(0x3,_0x3f7f0c),F(0x4,_0x3e29b5),F(0x5,_0x2cd7f4(_0x3290d2))],_e);var _n=Object['getOwnPropertyDescriptor'],ln=(_0x12feac,_0x3ef4b3,_0x382bae,_0x313cb8)=>{for(var _0x3f72b2=_0x313cb8>0x1?void 0x0:_0x313cb8?_n(_0x3ef4b3,_0x382bae):_0x3ef4b3,_0x5313ae=_0x12feac['length']-0x1,_0x432bda;_0x5313ae>=0x0;_0x5313ae--)(_0x432bda=_0x12feac[_0x5313ae])&&(_0x3f72b2=_0x432bda(_0x3f72b2)||_0x3f72b2);return _0x3f72b2;},ne=(_0xdb8d8c,_0xfa701c)=>(_0x272368,_0x3c6bca)=>_0xfa701c(_0x272368,_0x3c6bca,_0xdb8d8c);let le=class extends _0x3f5bb1{constructor(_0x25babc,_0x446c77,_0x3da49b,_0x1922d5){const _0x329d90=_0xe70193;super(),_(this,_0x329d90(0x21c)),(this['_injector']=_0x25babc,this['_httpService']=_0x446c77,this[_0x329d90(0x207)]=_0x3da49b,this['_collaborationSessionService']=_0x1922d5,this[_0x329d90(0x1e1)]());}[_0xe70193(0x1e1)](){const _0x5ca1b7=_0xe70193;this[_0x5ca1b7(0x3be)](),this[_0x5ca1b7(0x1d5)](),this['_monkeyPatchLogService'](),this[_0x5ca1b7(0x267)]();}[_0xe70193(0x267)](){const _0x4b87a0=_0xe70193;this[_0x4b87a0(0x205)](this[_0x4b87a0(0x2d9)][_0x4b87a0(0x20b)]['subscribe'](_0x53d380=>{const _0x237f1e=_0x4b87a0;this[_0x237f1e(0x21c)]=_0x53d380==null?void 0x0:_0x53d380[_0x237f1e(0x248)];}));}[_0xe70193(0x3be)](){const _0x1b2a79=_0xe70193,_0x52dfca=_0x422310=>{const _0x28015a=_0x5de0;var _0xae4892;this[_0x28015a(0x1ef)](_0x28015a(0x320),_0x28015a(0x3f7)+_0x422310[_0x28015a(0x2d2)]+_0x28015a(0x3f9)+_0x422310[_0x28015a(0x271)]+':'+_0x422310[_0x28015a(0x3af)]+':'+_0x422310[_0x28015a(0x30e)]+'\x0a'+(((_0xae4892=_0x422310['error'])==null?void 0x0:_0xae4892[_0x28015a(0x26f)])||''));};window['addEventListener']('error',_0x52dfca),this[_0x1b2a79(0x205)](()=>{const _0x46b582=_0x1b2a79;window[_0x46b582(0x387)]('error',_0x52dfca);});}[_0xe70193(0x1d5)](){const _0x14ddf2=_0xe70193,_0x53f764=_0x1dedad=>{const _0x44f5fd=_0x5de0;this[_0x44f5fd(0x1ef)](_0x44f5fd(0x320),_0x44f5fd(0x2fd)+_0x1dedad[_0x44f5fd(0x39c)]);};window[_0x14ddf2(0x2d8)]('unhandledrejection',_0x53f764),this['disposeWithMe'](()=>{const _0x30a04c=_0x14ddf2;window[_0x30a04c(0x387)](_0x30a04c(0x408),_0x53f764);});}[_0xe70193(0x1e3)](){const _0xb34a5c=_0xe70193,_0x5c302f=this[_0xb34a5c(0x207)][_0xb34a5c(0x320)][_0xb34a5c(0x2fa)](this['_logService']);this[_0xb34a5c(0x207)][_0xb34a5c(0x320)]=(..._0x9fdaa3)=>{const _0x1d1192=_0xb34a5c,_0x78e4a3=_0x9fdaa3['map'](_0x54e08a=>_0x54e08a instanceof Error?_0x54e08a['message']+'\x0a'+_0x54e08a[_0x1d1192(0x26f)]:String(_0x54e08a))[_0x1d1192(0x254)]('\x20');this[_0x1d1192(0x1ef)](_0x1d1192(0x320),_0x1d1192(0x2a9)+_0x78e4a3),_0x5c302f(..._0x9fdaa3);},this[_0xb34a5c(0x205)](()=>{const _0x4b808d=_0xb34a5c;this[_0x4b808d(0x207)][_0x4b808d(0x320)]=_0x5c302f;});}[_0xe70193(0x1ef)](_0x29baed,_0x14b194){const _0x56e94c=_0xe70193;try{const _0x587bec={'userId':this[_0x56e94c(0x21c)],'logLabel':_0x29baed,'content':_0x14b194};this[_0x56e94c(0x210)][_0x56e94c(0x33b)]('/universer-api/frontend/logs',{'body':_0x587bec})[_0x56e94c(0x1c8)](()=>{});}catch{}}};le=ln([ne(0x0,_0x2cd7f4(_0x5b2c4d)),ne(0x1,_0x2cd7f4(_0x84287d)),ne(0x2,_0x2eba95),ne(0x3,_0x2cd7f4(_0x512455))],le);const hn=_0xe70193(0x377),_t={};var un=Object['getOwnPropertyDescriptor'],dn=(_0x1c78e8,_0x82232e,_0xe4944c,_0x180a02)=>{const _0x47e9a0=_0xe70193;for(var _0x59e63b=_0x180a02>0x1?void 0x0:_0x180a02?un(_0x82232e,_0xe4944c):_0x82232e,_0x38be3b=_0x1c78e8[_0x47e9a0(0x2c7)]-0x1,_0x6bfa69;_0x38be3b>=0x0;_0x38be3b--)(_0x6bfa69=_0x1c78e8[_0x38be3b])&&(_0x59e63b=_0x6bfa69(_0x59e63b)||_0x59e63b);return _0x59e63b;},lt=(_0x1d0a93,_0x27bd27)=>(_0x3a7265,_0x546379)=>_0x27bd27(_0x3a7265,_0x546379,_0x1d0a93);let he=class{constructor(_0x14e8ad,_0x160251){const _0x42823f=_0xe70193;this[_0x42823f(0x2ad)]=_0x14e8ad,this['_renderManagerService']=_0x160251;}[_0xe70193(0x224)](_0x750509){const _0x1f71d5=_0xe70193;this[_0x1f71d5(0x295)](_0x750509),this[_0x1f71d5(0x24f)](_0x750509);}['transformRemoteChangeset'](_0x472496){const _0x1d54e2=_0xe70193,{unitID:_0x32b1e5}=_0x472496,_0x394f0c=this[_0x1d54e2(0x3d4)][_0x1d54e2(0x369)](_0x32b1e5)[_0x1d54e2(0x20e)](_0x389d8f),{redoCache:_0x2fb3fd}=_0x394f0c[_0x1d54e2(0x2e5)]();if(_0x2fb3fd[_0x1d54e2(0x2c7)]===0x0)return _0x472496;let _0x131c8a=_0x3e7095[_0x1d54e2(0x2a4)](_0x472496[_0x1d54e2(0x374)][0x0]);for(let _0x5c018b=0x0;_0x5c018b<_0x2fb3fd[_0x1d54e2(0x2c7)];_0x5c018b++){const _0x5d7b20={'id':_0x1d54e2(0x2ed),'params':{..._0x2fb3fd[_0x5c018b]}},_0x49c37a=this[_0x1d54e2(0x2ad)][_0x1d54e2(0x2e9)](_0x131c8a,_0x5d7b20,!0x1);if(_0x38dbad(_0x49c37a))throw _0x49c37a[_0x1d54e2(0x320)];_0x131c8a=_0x49c37a[_0x1d54e2(0x33d)];}return{..._0x3e7095[_0x1d54e2(0x2a4)](_0x472496),'mutations':[_0x131c8a]};}['_transformUndoRedoStack'](_0x13d8a7){const _0xb8c67a=_0xe70193,{unitID:_0x4a5f79}=_0x13d8a7,_0x48628a=this[_0xb8c67a(0x3d4)][_0xb8c67a(0x369)](_0x4a5f79)['with'](_0x389d8f),{undoCache:_0x5bb3ab,redoCache:_0x1d356b}=_0x48628a[_0xb8c67a(0x2e5)]();if(_0x5bb3ab[_0xb8c67a(0x2c7)]===0x0||_0x1d356b['length']===0x0)return;const _0x1c1292=[],_0xd72960=[];let _0x37d3c6=_0x3e7095[_0xb8c67a(0x2a4)](_0x13d8a7['mutations'][0x0]),_0x5c39bc=_0x3e7095[_0xb8c67a(0x2a4)](_0x13d8a7['mutations'][0x0]);for(let _0x5c5196=_0x5bb3ab[_0xb8c67a(0x2c7)]-0x1;_0x5c5196>=0x0;_0x5c5196--){const _0x494eeb={'id':_0xb8c67a(0x2ed),'params':{..._0x5bb3ab[_0x5c5196]}},_0x32300e={'id':'doc.mutation.rich-text-editing','params':{..._0x1d356b[_0x5c5196]}},_0x102579=this['_transformService'][_0xb8c67a(0x2e9)](_0x37d3c6,_0x494eeb,!0x1),_0x4c8e5f=this['_transformService'][_0xb8c67a(0x2e9)](_0x5c39bc,_0x32300e,!0x1);if(_0x38dbad(_0x102579))throw _0x102579['error'];if(_0x38dbad(_0x4c8e5f))throw _0x4c8e5f[_0xb8c67a(0x320)];_0x1c1292[_0xb8c67a(0x2ce)](_0x102579['m2Prime'][_0xb8c67a(0x2d4)]),_0xd72960[_0xb8c67a(0x2ce)](_0x4c8e5f['m2Prime'][_0xb8c67a(0x2d4)]),_0x37d3c6=_0x102579[_0xb8c67a(0x33d)],_0x5c39bc=_0x4c8e5f[_0xb8c67a(0x33d)];}_0x48628a['setUndoRedoMutationParamsCache']({'undoCache':_0x1c1292,'redoCache':_0xd72960});}['_transformPreviousActiveRange'](_0x5b8b9c){const _0x29d34b=_0xe70193,{unitID:_0x36051b}=_0x5b8b9c,_0x3709c4=this[_0x29d34b(0x3d4)][_0x29d34b(0x369)](_0x36051b)['with'](_0x389d8f),_0x148c58=_0x3709c4['getActiveRange']();if(_0x148c58==null)return;const _0x419ab7=[{'id':_0x29d34b(0x2ed),'params':{'unitId':_0x5b8b9c[_0x29d34b(0x1fa)],'actions':null,'textRanges':[_0x148c58]}}],_0x3a9bef=this['_transformService'][_0x29d34b(0x3d5)](_0x5b8b9c,_0x419ab7);if(!_0x3092db(_0x3a9bef))throw _0x3a9bef[_0x29d34b(0x320)];const _0x5c324a=_0x3a9bef[_0x29d34b(0x3b1)][0x0][_0x29d34b(0x2d4)][_0x29d34b(0x38b)];Array[_0x29d34b(0x236)](_0x5c324a)&&_0x5c324a['length']&&_0x3709c4['setActiveRange'](_0x5c324a[0x0]);}};he=dn([lt(0x0,_0x2f8a5c),lt(0x1,_0x4ef960)],he);var Sn=Object[_0xe70193(0x222)],In=(_0x3166e6,_0x2c18bf,_0x48c03a,_0x2423a5)=>{const _0x293064=_0xe70193;for(var _0x3e5ae0=_0x2423a5>0x1?void 0x0:_0x2423a5?Sn(_0x2c18bf,_0x48c03a):_0x2c18bf,_0x30372d=_0x3166e6[_0x293064(0x2c7)]-0x1,_0x1ebcc5;_0x30372d>=0x0;_0x30372d--)(_0x1ebcc5=_0x3166e6[_0x30372d])&&(_0x3e5ae0=_0x1ebcc5(_0x3e5ae0)||_0x3e5ae0);return _0x3e5ae0;},Le=(_0x5eb35e,_0x1c5e22)=>(_0x2f12c9,_0x5402eb)=>_0x1c5e22(_0x2f12c9,_0x5402eb,_0x5eb35e);let ue=class{constructor(_0x4b77a2,_0x428c4e,_0x3fc332){const _0x287ec6=_0xe70193;this['_injector']=_0x4b77a2,this[_0x287ec6(0x2ad)]=_0x428c4e,this[_0x287ec6(0x200)]=_0x3fc332;}[_0xe70193(0x293)](_0x5cbcc9){this['_transformHistoryAndStateStack'](_0x5cbcc9);}[_0xe70193(0x33e)](_0x27198b){const _0x26dd1f=_0xe70193,{unitID:_0x3b8d12}=_0x27198b,{collaboration:_0x38ccb0}=this[_0x26dd1f(0x200)]['getStateCache'](_0x3b8d12);if(_0x38ccb0[_0x26dd1f(0x2c7)]===0x0)return _0x27198b;let _0x4cfd49=_0x3e7095[_0x26dd1f(0x2a4)](_0x27198b['mutations'][0x0]);for(let _0xfd0b03=0x0;_0xfd0b03<_0x38ccb0[_0x26dd1f(0x2c7)];_0xfd0b03++){const _0x486784={'id':_0x26dd1f(0x2ed),'params':{'unitId':_0x38ccb0[_0xfd0b03][_0x26dd1f(0x2a0)],..._0x38ccb0[_0xfd0b03][_0x26dd1f(0x364)]}},_0x487e93=this[_0x26dd1f(0x2ad)][_0x26dd1f(0x2e9)](_0x4cfd49,_0x486784,!0x1);if(_0x38dbad(_0x487e93))throw _0x487e93[_0x26dd1f(0x320)];_0x4cfd49=_0x487e93[_0x26dd1f(0x33d)];}return{..._0x3e7095[_0x26dd1f(0x2a4)](_0x27198b),'mutations':[_0x4cfd49]};}['_transformHistoryAndStateStack'](_0x473ff7){const _0x15a1a2=_0xe70193,{unitID:_0x44b676}=_0x473ff7,{history:_0x3cb554,collaboration:_0x24af0f}=this[_0x15a1a2(0x200)][_0x15a1a2(0x35f)](_0x44b676);if(_0x3cb554[_0x15a1a2(0x2c7)]===0x0&&_0x24af0f['length']===0x0)return;const _0x33eeb4=[],_0x179616=[];let _0x55ec67=_0x3e7095[_0x15a1a2(0x2a4)](_0x473ff7['mutations'][0x0]),_0x57d30e=_0x3e7095['deepClone'](_0x473ff7[_0x15a1a2(0x374)][0x0]);for(let _0x48af9d=_0x3cb554[_0x15a1a2(0x2c7)]-0x1;_0x48af9d>=0x0;_0x48af9d--){const _0x294e5b={'id':_0x15a1a2(0x2ed),'params':{'unitId':_0x3cb554[_0x48af9d][_0x15a1a2(0x2a0)],..._0x3cb554[_0x48af9d][_0x15a1a2(0x25e)]}},_0x220906={'id':_0x15a1a2(0x2ed),'params':{'unitId':_0x3cb554[_0x48af9d]['unitId'],..._0x3cb554[_0x48af9d][_0x15a1a2(0x364)]}},_0x2d9112=this['_transformService'][_0x15a1a2(0x2e9)](_0x55ec67,_0x294e5b,!0x1),_0x34d806=this[_0x15a1a2(0x2ad)]['transformMutation'](_0x57d30e,_0x220906,!0x1);if(_0x38dbad(_0x2d9112))throw _0x2d9112['error'];if(_0x38dbad(_0x34d806))throw _0x34d806[_0x15a1a2(0x320)];_0x33eeb4[_0x15a1a2(0x2ce)]({..._0x3cb554[_0x48af9d],'undoState':_0x2d9112[_0x15a1a2(0x3b1)][_0x15a1a2(0x2d4)],'redoState':_0x34d806[_0x15a1a2(0x3b1)][_0x15a1a2(0x2d4)]}),_0x55ec67=_0x2d9112[_0x15a1a2(0x33d)],_0x57d30e=_0x34d806['m1Prime'];}_0x55ec67=_0x3e7095[_0x15a1a2(0x2a4)](_0x473ff7[_0x15a1a2(0x374)][0x0]),_0x57d30e=_0x3e7095[_0x15a1a2(0x2a4)](_0x473ff7[_0x15a1a2(0x374)][0x0]);for(let _0x43d314=_0x24af0f[_0x15a1a2(0x2c7)]-0x1;_0x43d314>=0x0;_0x43d314--){const _0x406759={'id':_0x15a1a2(0x2ed),'params':{'unitId':_0x24af0f[_0x43d314][_0x15a1a2(0x2a0)],..._0x24af0f[_0x43d314][_0x15a1a2(0x25e)]}},_0xadf63b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x24af0f[_0x43d314][_0x15a1a2(0x2a0)],..._0x24af0f[_0x43d314][_0x15a1a2(0x364)]}},_0x2b7e41=this[_0x15a1a2(0x2ad)][_0x15a1a2(0x2e9)](_0x55ec67,_0x406759,!0x1),_0x210810=this[_0x15a1a2(0x2ad)]['transformMutation'](_0x57d30e,_0xadf63b,!0x1);if(_0x38dbad(_0x2b7e41))throw _0x2b7e41[_0x15a1a2(0x320)];if(_0x38dbad(_0x210810))throw _0x210810['error'];_0x179616[_0x15a1a2(0x2ce)]({..._0x24af0f[_0x43d314],'undoState':_0x2b7e41[_0x15a1a2(0x3b1)][_0x15a1a2(0x2d4)],'redoState':_0x210810[_0x15a1a2(0x3b1)][_0x15a1a2(0x2d4)]}),_0x55ec67=_0x2b7e41[_0x15a1a2(0x33d)],_0x57d30e=_0x210810[_0x15a1a2(0x33d)];}this['_docStateChangeManagerService'][_0x15a1a2(0x32b)](_0x44b676,{'history':_0x33eeb4,'collaboration':_0x179616});}};ue=In([Le(0x0,_0x2cd7f4(_0x5b2c4d)),Le(0x1,_0x2f8a5c),Le(0x2,_0x2cd7f4(_0x5dd92e))],ue);var mn=Object[_0xe70193(0x222)],fn=(_0x37788b,_0x1d22a4,_0x150a3d,_0x56257f)=>{const _0x36c35c=_0xe70193;for(var _0x1324b9=_0x56257f>0x1?void 0x0:_0x56257f?mn(_0x1d22a4,_0x150a3d):_0x1d22a4,_0x20ecc4=_0x37788b[_0x36c35c(0x2c7)]-0x1,_0x1720f1;_0x20ecc4>=0x0;_0x20ecc4--)(_0x1720f1=_0x37788b[_0x20ecc4])&&(_0x1324b9=_0x1720f1(_0x1324b9)||_0x1324b9);return _0x1324b9;},ht=(_0x4ada19,_0x5ed516)=>(_0x5228e0,_0x50df7d)=>_0x5ed516(_0x5228e0,_0x50df7d,_0x4ada19);let de=class{constructor(_0x488632,_0x5db024){const _0x5f4a4b=_0xe70193;this[_0x5f4a4b(0x1e0)]=_0x488632,this['_transformService']=_0x5db024;}[_0xe70193(0x247)](_0x4705af){const _0x1dd4b0=_0xe70193;var _0x3022ab;const _0xbb796e=this['_injector']['get'](_0x32ba9d),_0x22e5f7=(_0x3022ab=_0xbb796e[_0x1dd4b0(0x371)]())!=null?_0x3022ab:[];if(_0x22e5f7[_0x1dd4b0(0x2c7)]===0x0)return;const _0xa27afc=_0x4705af['unitID'],_0x1732a4=[{'id':_0x1dd4b0(0x2ed),'params':{'unitId':_0xa27afc,'actions':null,'textRanges':_0x22e5f7}}],_0x47539c=this['_transformService']['transformMutationsWithChangeset'](_0x4705af,_0x1732a4);if(!_0x3092db(_0x47539c))throw _0x47539c[_0x1dd4b0(0x320)];const _0xf82826=_0x47539c[_0x1dd4b0(0x3b1)][0x0][_0x1dd4b0(0x2d4)][_0x1dd4b0(0x38b)];Array[_0x1dd4b0(0x236)](_0xf82826)&&_0xf82826[_0x1dd4b0(0x2c7)]&&_0xbb796e[_0x1dd4b0(0x2e4)](_0xf82826,{'unitId':_0xa27afc,'subUnitId':_0xa27afc},!0x1);}};de=fn([ht(0x0,_0x2cd7f4(_0x5b2c4d)),ht(0x1,_0x2f8a5c)],de);var gn=Object[_0xe70193(0x222)],En=(_0x4d8e82,_0x6c9a13,_0x3af569,_0x33f26c)=>{for(var _0x47d9ec=_0x33f26c>0x1?void 0x0:_0x33f26c?gn(_0x6c9a13,_0x3af569):_0x6c9a13,_0x4d87ce=_0x4d8e82['length']-0x1,_0x1e56f5;_0x4d87ce>=0x0;_0x4d87ce--)(_0x1e56f5=_0x4d8e82[_0x4d87ce])&&(_0x47d9ec=_0x1e56f5(_0x47d9ec)||_0x47d9ec);return _0x47d9ec;},U=(_0x3d1ba4,_0x44b834)=>(_0x4f68a7,_0x186b9b)=>_0x44b834(_0x4f68a7,_0x186b9b,_0x3d1ba4);let Se=class extends _0x3f5bb1{constructor(_0x276262,_0x2a62ce,_0x3ff2df,_0x114a46,_0x5236da,_0x32c27b,_0x5e2d38,_0x15923a){const _0x52ff6f=_0xe70193;super(),_(this,'_status$',new _0x2ce55f(_0x2acb1b[_0x52ff6f(0x2c0)])),(this[_0x52ff6f(0x200)]=_0x276262,this['_collaborationController']=_0x2a62ce,this[_0x52ff6f(0x275)]=_0x3ff2df,this[_0x52ff6f(0x319)]=_0x114a46,this['_docTransformSelectionsService']=_0x5236da,this['_docSyncEditingCollabCursorService']=_0x32c27b,this[_0x52ff6f(0x390)]=_0x5e2d38,this['_localeService']=_0x15923a,this[_0x52ff6f(0x349)]());}[_0xe70193(0x349)](){const _0xbf5a9d=_0xe70193;this[_0xbf5a9d(0x205)](this['_collaborationController'][_0xbf5a9d(0x2fe)][_0xbf5a9d(0x407)](_0x15189e=>{const _0x4aa39d=_0xbf5a9d,_0x46afde=this[_0x4aa39d(0x200)]['docStateChange$'][_0x4aa39d(0x407)](_0x192ee7=>{const _0x3e849b=_0x4aa39d;if(_0x192ee7==null)return;const {unitId:_0x4b74d2,redoState:_0x12676c,commandId:_0x4e6418}=_0x192ee7;if(_0x4b74d2!==_0x15189e[_0x3e849b(0x1fa)])return;const _0x3231d8={'id':_0x4e6418,'type':_0x8d416d['MUTATION'],'params':{'unitId':_0x4b74d2,'actions':_0x12676c[_0x3e849b(0x3f4)],'textRanges':null}};_0x15189e[_0x3e849b(0x23a)](_0x3231d8);});if(_0x15189e[_0x4aa39d(0x205)](_0x46afde),_0x15189e instanceof _0x486bbd){const _0x470012={'onTransformIME':_0x16e39e=>this[_0x4aa39d(0x275)][_0x4aa39d(0x224)](_0x16e39e),'onTransformState':_0x5760f1=>this[_0x4aa39d(0x319)]['transformStateCache'](_0x5760f1),'onTransformSelections':_0x96100b=>this[_0x4aa39d(0x380)]['transformSelections'](_0x96100b),'onSyncEditingCollabCursor':_0x1f5aee=>this[_0x4aa39d(0x327)]['syncEditingCollabCursor'](_0x1f5aee),'onTransformRemoteChangesetByIMECache':_0x1a7194=>this[_0x4aa39d(0x275)][_0x4aa39d(0x33e)](_0x1a7194),'onTransformRemoteChangesetByStateCache':_0x4f7094=>this['_docTransformStateCacheService'][_0x4aa39d(0x33e)](_0x4f7094)};_0x15189e[_0x4aa39d(0x348)](_0x470012);}}));}};function _0x5910(){const _0x1b7fd1=['collabCursorState$','_setupBeforeClosingHandler','_drawRectRange','removeEventListener','getCollabCursors$','now','getSheetBySheetId','textRanges','SYNCED','HEADER_MENU','toString','_lastPointer','_messageService','subunit','SNAPSHOT_HAS_BEEN_REMOVED','_initResize','beforeCommandExecuted','colorChannel1','stageInfo','_getMergeRange','REDEMPTION_CODE_HAS_BEEN_CREATED','div','_univerInstanceService','Warning','reason','CONFLICT','fillStyle','ENTITLE_COUPON_EXPIRED','_anchor','_removeCollabCursors','_docSkeleton','path','INVITE_CODE_HAS_BEEN_UES','ENTITLE_USE_COUPON_NOT_1ST_TRADE','_updateLocalCursor','onMouseMove','permission.content','_memberService','ENTITLE_CHAT_LIMIT_EXCEED','getCurrent','_cachedData','_scheduleHeartbeat','onCommandExecuted','lineno','height','m2Prime','_registerRenderDependencies','USER_NOT_FOUND','7195590MbFJgf','pipe','collab-rect-range-','forEach','InsertRangeMoveDownCommandId','_localStorageService','formula.calculation.started','1181PJNOHa','labelPosition','_notificationService','_initWindowErrorListener','then','[RemoteUniscriptService]:\x20no\x20focused\x20unit','asObservable','next','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','UNIVER_DOC','focused$','createInstance','data','clearInterval','_drawTextRange','releaseFormulaLimitUrl','color','_initDependencies','_setupSubUnitSync','EMAIL_HAS_BEEN_BOUND','currentTheme$','save','fill','collabStatus.synced','_hasFormulaInDirtyRanges','_renderManagerService','transformMutationsWithChangeset','measureText','getColorFromTheme','replaceState','_doCreateSocket','REDEMPTION_USER_NOT_ELIGIBLE','MOBILE_VERIFY_CODE_MISMATCH','/universer-api/license/formula/limit/status','_getScale','YUUMI_ALL_TABLES_IS_INVALID','_urlService','OTHER_CLIENT_EDITING','none','code','REDEMPTION_USER_REDEEM_TIMES_EXCEED','map','enableFrontendLog','registerRenderModule','collaboration.single-unit.warning','_clearOtherTimers','ENTITLE_CAN_NOT_BUY_LOWER_OTP','UNDEFINED','url(#off-line-icon_clip0_910_343)','_backgroundColor','_handleLeaveEvent','imageSourceType','NOT_FOUND','cursorInfo$','runId','restore','collab-text-range-','actions','_sheetSkeletonManagerService','startsWith','[Window\x20Error]:\x20','APPLY_DUPLICATED','\x20at\x20','getVpScrollXYInfoByPosToVp','subscribeEvent','formula.calculation.waiting','SNAPSHOT_INVALID_SNAPSHOT','INVITE_CODE_ALREADY_BOUND','UniverIcon','_selfUnitIDs','_syncEditingCollabCursorService','dispose','_updateSubUnitFromURLParams','_getFormulaLimitStatus','APPLY_REVISION_CONFILICT','beginPath','subscribe','unhandledrejection','_getSessionTicket','width','Unknown\x20user','saveImage','ENTITLE_INVALID_COUPON_CODE','ERROR_AGAIN','getUnit','catch','_collaborationController','_collabCursorState$','lineTo','assign','endColumn','saveTaskMap','_registerDependencies','_online','location','LICENSE_MAX_UNITS_EXCEEDED','getRangePointData','YUUMI_RATE_OVER_LIMIT','_initUnhandledRejectionListener','fillRule','_disabled','_handleHeartbeatEvent','_maxFormulaLimit','_onRefRangeChange','START_CALCULATION','LOGIN_TOKEN_PROCESSING_FAILED','from','searchParams','urlChange$','_injector','_init','range','_monkeyPatchLogService','onPointerLeave$','_startCalculationLimit','getOffsetConfig','yellow.400','_initStatusComponent','REDEMPTION_CODE_FULLY_REDEEMED','NO_OTHER_CLIENTS_EDITING','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','setParam','http://www.w3.org/2000/svg','collabStatus.fetchMiss','_uploadLog','trim','unit','init','APPLY_NON_SEQUENTIAL_REVISION','bottom','_labelPosition','_toggleOnline','getCellMatrix','tag','getItem','unitID','/universer-api/license/formula/limit/start','LICENSE_IMPORT_SIZE_EXCEEDED','662034FvjTOK','has','M0\x200H16V16H0z','_docStateChangeManagerService','currentSkeleton$','rgba(255,\x20255,\x20255,\x200.01)','1076vDkBVN','entries','disposeWithMe','EMAIL_VERIFY_CODE_MISMATCH','_logService','round','_color','find','socket$','unsubscribe','_initStatusListener','with','editingUnit','_httpService','9179360zzGCgG','_name','ticket','_cursors','_revisionService','disableLocalCache','some','disposeUnit','selections','backgroundColor','dispose$','_memberID','url(#$1','cursorInfo','makeDirty','SUBMIT_CHANGESET_TIMEOUT','column','getOwnPropertyDescriptor','getSheetId','transformIMECache','_scheduleClearOtherTimer','USER_NOT_INVITED_CODE','...','getCurrentUnitForType','getAncestorScale','onPointerEnter$','setShapeProps','_range','1328275JoEOOm','SUCCESS','OTHER_CLIENTS_EDITING','getConfig','ENTITLE_NEED_BILLING_ADDRESS','clearTimeout','ENTITLE_INSUFFICIENT_QUOTA','6ATWZrk','use','isArray','values','getCurrentSelections','_hovered','onLocalMutation','APPLY_PERMISSION_DENIED','_handleHover','setTimeout','sessionStatus$','REDEMPTION_CODE_NOT_STARTED','_render','push','_initEvent','_dataLoaderService','max','evenodd','skeleton','transformSelections','memberID','_setFormulaLimitStatus','_removeClearOtherTimer','_hideTimer','startFormulaLimitUrl','functionsExecutedState','attrs','_transformPreviousActiveRange','exhaustSavingTask','AWAITING_WITH_PENDING','eventID','startRow','join','getUnitId','InsertRowCommandId','clipPath','getUnhiddenWorksheets','hide','_currentUsage','debug','collaboration.offline-data-not-saved','session.will-retry','undoState','_send','getCollabEntity$','#FFF','TEXT','_onCursorDelete','black','UNAUTHENTICATED','createSocket','_initUserListener','_getAnchorBounding','UNIVER_SHEET','collab-client.tooltip.reconnect','onPointerMove$','ENSURE_SNAPSHOT_EXECUTION','APPLY_REJECT','set','stack','collabStatus.notCollab','filename','_handleJoinEvent','MOBILE_HAS_BEEN_BOUND','getCurrentRevOfUnit','_docTransformIMECacheService','history','ALREADY_EXISTS','_pollingInterval','OFFLINE','_scene','includes','replace','href','current','_updateURLWithCurrentState','YUUMI_SUBSCRIPTION_NOT_FOUND','purple.300','univer-mr-2\x20univer-flex\x20univer-text-xl','event$','RemoveColCommandId','YUUMI_URL_COL_OUT_OF_RANGE','_drawAnchor','all','_config','_createSocketURL','LICENSE_EXPORT_SIZE_EXCEEDED','_cursorShapes','getFocusedUnit','addObject','353724kYnNXF','_toggleOffline','DeleteRangeMoveLeftCommandId','_initCommandInterceptor','min','transformStateCache','transformByState','_transformUndoRedoStack','univerjs-icon\x20univerjs-icon-','enableLocalCache','_eventUnsubscribe','5881176SSsiZF','CURRENT_STATUS_CANNOT_OPERATE','UPDATE_CURSOR','_saveTaskMap','_checkCalculationAvailable','ranges','_ensureSubject','unitId','registerRefRange','blue.400','CONNECTOR_DATA_TOO_LARGE','deepClone','AUTHORIZE_CODE_ILLEGAL','startColumn','setConfig','OffLineIcon','[LogService\x20Error]:\x20','REDEMPTION_CODE_INACTIVE','_handleEvent','defIds','_transformService','INVALID_INVITE_CODE','show','MoveRangeCommandId','on-line-icon','_hover','getViewport','Failed','pushState','executionId','_showGuardMessage','top','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','closePath','Error','4MxBjnt','DeleteRangeMoveUpCommandId','sheetID','endRow','NOT_COLLAB','row','font','transform','YUUMI_AI_RUN_FAILED','displayName','executeCommand','length','_document','_assignedColors','_shapes','YUUMI_UNABLE_LOAD_URL','isEditing','_context','unshift','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','/run/','ENTITLE_COUPON_USED_UP','message','jiqing.500','params','DATA_SOURCE_TOO_LARGE','idSuffix','CHANGESET_REVISION_CONFILICT','addEventListener','_collaborationSessionService','loadOfflineData','REDEMPTION_INVALID_CODE','triggerDblclick','delete','UNRECOGNIZED','_releaseCalculationLimit','TOO_MANY_REQUESTS','LICENSE_DISTRO_REJECTED','_cursorInfo$','_entityInit$','replaceDocRanges','getUndoRedoMutationParamsCache','getMergeData','_instanceService','status$','transformMutation','_collaborationUIEventService','_taskIds','YUUMI_NO_CUBOID_FOR_QUESTION','doc.mutation.rich-text-editing','add','_startSheetCollabCursor','_status$','VIEW_MAIN','isActive','_collabSessionService','defineProperty','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_scheduleSaving','white','formula.calculation.unable','activeSheet$','bind','dirtyRanges','_uiPartsService','[Unhandled\x20Rejection]:\x20','entityInit$','_textBubble','ENTITLE_REPORT_LIMIT_EXCEED','storage','_anchorDot','_id','_configService','hovered','_colorAssignService','random','selection','_heartbeatTimer','_colorIndex','getParam','0\x200\x2017\x2016','arc','colno','_entities','_startDocCollabCursor','ONLINE','_getSheetObject','drawWith','reconnect','RECT','1em','AWAITING','uni.network.url-service','_docTransformStateCacheService','setAlpha','red.300','text','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_commandService','_getSaveTimeout','error','getValue','_applyCommand','YUUMI_CONNECTOR_URL_NOT_FOUND','off-line-icon_clip0_910_343','name','whenReady','_docSyncEditingCollabCursorService','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_lastResponseTimestamp','getActiveSheet','setStateCache','ENTITLE_DUP_SUBSCRIPTION','children','registerBeforeClose','USERS_LEAVE','_onCursorUpdate','svg','INVALID_ARGUMENT','_unitOnClients','getCellPositionByOffset','flatMap','search','getMember','CLOSE_ROOM','setItem','get','post','_collabCursorController','m1Prime','transformRemoteChangeset','_roomMembers$','session.collaboration-timeout','runOnServer','string','getMemberID','_checkAndWaitForCalculationPermission','newValue','_refreshCollabCursors','YUUMI_ASYNCIO_CANCELLED','addHandlerCallback','_initEntityListener','_updateCollabCursors','green.600','_themeService','COMPLETION_FINISHED','assignAColorForMemberID','requireSession','LOGIN_FAILED','_unitStatus','_docClipboardService','result','findNodePositionByCharIndex','mask','unload','_draw','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','url(#on-line-icon_clip0_910_349)','wsSessionTicketUrl','_refRangeService','[CollaborationDataLoaderController]','_imageIoService','registerComponent','getStateCache','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','_session','_localCacheService','split','redoState','PERMISSION_DENIED','_localeService','send','WECHAT_HAS_BEEN_BOUND','getRenderById','_saveCache','contains','OnLineIcon','univer-flex\x20univer-items-center','on-line-icon_clip0_910_349','roomMembers$','USER_IS_ANONYMOUS','getDocRanges','INVITE_CODE_REQUIRED','limitInfo','mutations','type','body','collaboration-client-ui.config','updateOfflineData','stringify','size','JOIN_ROOM_FAILED','_docSkeletonManagerService','translate(.97)','complete','xlink:href','_docTransformSelectionsService','currentColor','addClipboardHook','SOCKET_FAILED'];_0x5910=function(){return _0x1b7fd1;};return _0x5910();}Se=En([U(0x0,_0x2cd7f4(_0x5dd92e)),U(0x1,_0x2cd7f4(_0x2a7659)),U(0x2,_0x2cd7f4(he)),U(0x3,_0x2cd7f4(ue)),U(0x4,_0x2cd7f4(de)),U(0x5,_0x2cd7f4(ze)),U(0x6,_0x3f7f0c),U(0x7,_0x2cd7f4(_0x3290d2))],Se);var Z=(_0x16c69c=>(_0x16c69c[_0x16c69c[_0xe70193(0x3ea)]=0x0]=_0xe70193(0x3ea),_0x16c69c[_0x16c69c['OK']=0x1]='OK',_0x16c69c[_0x16c69c['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x16c69c[_0x16c69c[_0xe70193(0x365)]=0x3]='PERMISSION_DENIED',_0x16c69c[_0x16c69c[_0xe70193(0x3ef)]=0x4]=_0xe70193(0x3ef),_0x16c69c[_0x16c69c[_0xe70193(0x265)]=0x5]=_0xe70193(0x265),_0x16c69c[_0x16c69c[_0xe70193(0x277)]=0x6]=_0xe70193(0x277),_0x16c69c[_0x16c69c[_0xe70193(0x332)]=0x7]=_0xe70193(0x332),_0x16c69c[_0x16c69c[_0xe70193(0x2e0)]=0x8]=_0xe70193(0x2e0),_0x16c69c[_0x16c69c[_0xe70193(0x34d)]=0x9]=_0xe70193(0x34d),_0x16c69c[_0x16c69c[_0xe70193(0x350)]=0xa]=_0xe70193(0x350),_0x16c69c[_0x16c69c[_0xe70193(0x3db)]=0xb]=_0xe70193(0x3db),_0x16c69c[_0x16c69c[_0xe70193(0x2b9)]=0xc]=_0xe70193(0x2b9),_0x16c69c[_0x16c69c['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0xe70193(0x206),_0x16c69c[_0x16c69c[_0xe70193(0x2cf)]=0xe]=_0xe70193(0x2cf),_0x16c69c[_0x16c69c['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0xe70193(0x2a5),_0x16c69c[_0x16c69c[_0xe70193(0x1dc)]=0x10]=_0xe70193(0x1dc),_0x16c69c[_0x16c69c[_0xe70193(0x29a)]=0x64]=_0xe70193(0x29a),_0x16c69c[_0x16c69c[_0xe70193(0x1c6)]=0x65]=_0xe70193(0x1c6),_0x16c69c[_0x16c69c['USER_NOT_FOUND']=0xc9]=_0xe70193(0x3b3),_0x16c69c[_0x16c69c[_0xe70193(0x370)]=0xca]=_0xe70193(0x370),_0x16c69c[_0x16c69c[_0xe70193(0x2d7)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x16c69c[_0x16c69c[_0xe70193(0x3fd)]=0x1771]=_0xe70193(0x3fd),_0x16c69c[_0x16c69c['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0xe70193(0x392),_0x16c69c[_0x16c69c[_0xe70193(0x26c)]=0x1773]=_0xe70193(0x26c),_0x16c69c[_0x16c69c[_0xe70193(0x26d)]=0x1b59]=_0xe70193(0x26d),_0x16c69c[_0x16c69c[_0xe70193(0x1f3)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x16c69c[_0x16c69c[_0xe70193(0x405)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x16c69c[_0x16c69c[_0xe70193(0x23b)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x16c69c[_0x16c69c[_0xe70193(0x3f8)]=0x1b5d]=_0xe70193(0x3f8),_0x16c69c[_0x16c69c[_0xe70193(0x2a3)]=0x1f41]=_0xe70193(0x2a3),_0x16c69c[_0x16c69c[_0xe70193(0x1d2)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x16c69c[_0x16c69c['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x16c69c[_0x16c69c[_0xe70193(0x1fc)]=0x232b]=_0xe70193(0x1fc),_0x16c69c[_0x16c69c[_0xe70193(0x28a)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x16c69c[_0x16c69c[_0xe70193(0x2e1)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x16c69c[_0x16c69c[_0xe70193(0x2cb)]=0x2711]=_0xe70193(0x2cb),_0x16c69c[_0x16c69c[_0xe70193(0x285)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x16c69c[_0x16c69c['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0xe70193(0x1d4),_0x16c69c[_0x16c69c[_0xe70193(0x280)]=0x2714]=_0xe70193(0x280),_0x16c69c[_0x16c69c[_0xe70193(0x2ec)]=0x271a]=_0xe70193(0x2ec),_0x16c69c[_0x16c69c[_0xe70193(0x347)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x16c69c[_0x16c69c[_0xe70193(0x31d)]=0x271c]=_0xe70193(0x31d),_0x16c69c[_0x16c69c[_0xe70193(0x3de)]=0x271d]=_0xe70193(0x3de),_0x16c69c[_0x16c69c[_0xe70193(0x2f5)]=0x271e]=_0xe70193(0x2f5),_0x16c69c[_0x16c69c['YUUMI_AI_RUN_FAILED']=0x271f]=_0xe70193(0x2c4),_0x16c69c[_0x16c69c['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0xe70193(0x323),_0x16c69c[_0x16c69c['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x16c69c[_0x16c69c[_0xe70193(0x3a4)]=0x2ee1]=_0xe70193(0x3a4),_0x16c69c[_0x16c69c[_0xe70193(0x2ae)]=0x2ee2]='INVALID_INVITE_CODE',_0x16c69c[_0x16c69c[_0xe70193(0x372)]=0x2ee3]=_0xe70193(0x372),_0x16c69c[_0x16c69c[_0xe70193(0x226)]=0x2ee4]=_0xe70193(0x226),_0x16c69c[_0x16c69c[_0xe70193(0x3fe)]=0x2ee5]=_0xe70193(0x3fe),_0x16c69c[_0x16c69c['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0xe70193(0x368),_0x16c69c[_0x16c69c[_0xe70193(0x273)]=0x32ca]=_0xe70193(0x273),_0x16c69c[_0x16c69c[_0xe70193(0x3ce)]=0x32cb]=_0xe70193(0x3ce),_0x16c69c[_0x16c69c[_0xe70193(0x3e9)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x16c69c[_0x16c69c[_0xe70193(0x1eb)]=0x36b2]=_0xe70193(0x1eb),_0x16c69c[_0x16c69c[_0xe70193(0x32c)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x16c69c[_0x16c69c['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x16c69c[_0x16c69c[_0xe70193(0x1c5)]=0x36b5]=_0xe70193(0x1c5),_0x16c69c[_0x16c69c[_0xe70193(0x39f)]=0x36b6]=_0xe70193(0x39f),_0x16c69c[_0x16c69c[_0xe70193(0x2d1)]=0x36b7]='ENTITLE_COUPON_USED_UP',_0x16c69c[_0x16c69c[_0xe70193(0x3a5)]=0x36b8]=_0xe70193(0x3a5),_0x16c69c[_0x16c69c[_0xe70193(0x3aa)]=0x3715]=_0xe70193(0x3aa),_0x16c69c[_0x16c69c[_0xe70193(0x300)]=0x3716]=_0xe70193(0x300),_0x16c69c[_0x16c69c[_0xe70193(0x233)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x16c69c[_0x16c69c[_0xe70193(0x231)]=0x37dd]=_0xe70193(0x231),_0x16c69c[_0x16c69c[_0xe70193(0x2db)]=0x3a99]=_0xe70193(0x2db),_0x16c69c[_0x16c69c[_0xe70193(0x2aa)]=0x3a9a]=_0xe70193(0x2aa),_0x16c69c[_0x16c69c[_0xe70193(0x1e9)]=0x3a9b]=_0xe70193(0x1e9),_0x16c69c[_0x16c69c[_0xe70193(0x23f)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x16c69c[_0x16c69c['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0xe70193(0x3da),_0x16c69c[_0x16c69c[_0xe70193(0x3e3)]=0x3a9e]=_0xe70193(0x3e3),_0x16c69c[_0x16c69c[_0xe70193(0x398)]=0x3a9f]=_0xe70193(0x398),_0x16c69c[_0x16c69c[_0xe70193(0x2d5)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x16c69c[_0x16c69c[_0xe70193(0x2de)]=-0x1]=_0xe70193(0x2de),_0x16c69c))(Z||{});function vn(_0x48ee4e){const _0xfd8d43=_0xe70193;var _0x1481c3,_0x5063b0;const _0x286d13=(_0x1481c3=_0x48ee4e[_0xfd8d43(0x396)])==null?void 0x0:_0x1481c3['stage'],_0x4456e1=((_0x5063b0=_0x48ee4e[_0xfd8d43(0x396)])==null?void 0x0:_0x5063b0['totalFormulasToCalculate'])||0x0;return _0x286d13===_0x3b615c[_0xfd8d43(0x1db)]&&_0x4456e1>0x0;}function pn(_0x29fddf){const _0x5bf466=_0xe70193;return _0x29fddf[_0x5bf466(0x24d)]===_0x410d96[_0x5bf466(0x22e)];}var On=Object[_0xe70193(0x222)],Tn=(_0xf5e43,_0x19bac5,_0x32796e,_0x22a2ca)=>{const _0x31a8be=_0xe70193;for(var _0x1675f2=_0x22a2ca>0x1?void 0x0:_0x22a2ca?On(_0x19bac5,_0x32796e):_0x19bac5,_0x16d22c=_0xf5e43[_0x31a8be(0x2c7)]-0x1,_0x471292;_0x16d22c>=0x0;_0x16d22c--)(_0x471292=_0xf5e43[_0x16d22c])&&(_0x1675f2=_0x471292(_0x1675f2)||_0x1675f2);return _0x1675f2;},P=(_0x141ae9,_0x3af36c)=>(_0x108bd7,_0x10718c)=>_0x3af36c(_0x108bd7,_0x10718c,_0x141ae9);const Cn=_0xe70193(0x3dc),Rn=_0xe70193(0x1fb),Dn='/universer-api/license/formula/limit/done';let Ie=class extends _0x3f5bb1{constructor(_0x5a8dee,_0x257cae,_0x4dbbcf,_0x1d491b,_0xa4b8bd,_0xa058cd,_0x18694f){const _0x3b8ad5=_0xe70193;super(),_(this,_0x3b8ad5(0x278),null),_(this,_0x3b8ad5(0x1d9),0x0),_(this,_0x3b8ad5(0x25a),0x0),_(this,_0x3b8ad5(0x2eb),[]),_(this,_0x3b8ad5(0x329),0x0),(this['_messageService']=_0x5a8dee,this[_0x3b8ad5(0x31e)]=_0x257cae,this[_0x3b8ad5(0x304)]=_0x4dbbcf,this[_0x3b8ad5(0x210)]=_0x1d491b,this[_0x3b8ad5(0x39a)]=_0xa4b8bd,this[_0x3b8ad5(0x207)]=_0xa058cd,this[_0x3b8ad5(0x366)]=_0x18694f,this[_0x3b8ad5(0x291)]());}[_0xe70193(0x291)](){const _0x2180f4=_0xe70193;this[_0x2180f4(0x205)](this['_commandService'][_0x2180f4(0x394)]((_0x46c6f3,_0x226b4e)=>{const _0x31621c=_0x2180f4;var _0x470ebb;if(_0x46c6f3['id']!==_0x381baa['id'])return;const _0x296324=_0x46c6f3[_0x31621c(0x2d4)];if(!this[_0x31621c(0x3d3)]((_0x470ebb=_0x296324[_0x31621c(0x2fb)])!=null?_0x470ebb:[]))return;if(!this[_0x31621c(0x29d)]())throw this[_0x31621c(0x344)](_0x46c6f3,_0x226b4e),this[_0x31621c(0x2b7)](),new _0xb3392a();})),this['disposeWithMe'](this[_0x2180f4(0x31e)][_0x2180f4(0x3ae)]((_0x535ffc,_0x6a1cb)=>{const _0x571c00=_0x2180f4;if(_0x535ffc['id']!==_0x2142f0['id'])return;const _0x18782e=_0x535ffc[_0x571c00(0x2d4)];if(vn(_0x18782e)){const _0x32a51b=_0x156fa6();this[_0x571c00(0x2eb)][_0x571c00(0x241)](_0x32a51b),this[_0x571c00(0x1e5)](_0x32a51b);}else{if(pn(_0x18782e)&&this[_0x571c00(0x2eb)][_0x571c00(0x2c7)]>0x0){const _0xc51f36=this[_0x571c00(0x2eb)]['shift']();this['_releaseCalculationLimit'](_0xc51f36);}}}));}['dispose'](){const _0x25c914=_0xe70193;super[_0x25c914(0x402)](),this['_clearPolling'](),this[_0x25c914(0x2eb)]=[],this['_currentUsage']=0x0,this[_0x25c914(0x1d9)]=0x0,this[_0x25c914(0x329)]=0x0;}async[_0xe70193(0x344)](_0x451c0a,_0x3b1222){const _0x2ea01b=_0xe70193;for(let _0x5080d9=0x0;_0x5080d9<0x1e;_0x5080d9++)try{if(await this[_0x2ea01b(0x404)](),this[_0x2ea01b(0x29d)]()){this[_0x2ea01b(0x322)](_0x451c0a,_0x3b1222),this[_0x2ea01b(0x390)]['show']({'content':this[_0x2ea01b(0x366)]['t'](_0x2ea01b(0x3ba)),'type':_0x4f4e28['Success']});return;}await new Promise(_0x205d48=>{const _0x3d3bc6=_0x2ea01b;this[_0x3d3bc6(0x278)]=window[_0x3d3bc6(0x23d)](_0x205d48,0x3e8);});}catch(_0x43b9e1){this[_0x2ea01b(0x207)][_0x2ea01b(0x320)](_0x43b9e1);}this[_0x2ea01b(0x390)][_0x2ea01b(0x2af)]({'content':this[_0x2ea01b(0x366)]['t'](_0x2ea01b(0x2f8)),'type':_0x4f4e28[_0x2ea01b(0x2bb)]});}[_0xe70193(0x322)](_0x2a2b92,_0x363726){const _0x49f3c1=_0xe70193;try{this[_0x49f3c1(0x31e)][_0x49f3c1(0x2c6)](_0x2a2b92['id'],_0x2a2b92['params'],_0x363726);}catch(_0x1c4d8c){this[_0x49f3c1(0x207)][_0x49f3c1(0x320)](_0x1c4d8c);}}[_0xe70193(0x249)](_0xd8d050,_0xb1baf8){const _0x55d2de=_0xe70193;_0xb1baf8<this[_0x55d2de(0x329)]||(this['_lastResponseTimestamp']=_0xb1baf8,this[_0x55d2de(0x1d9)]=Number['parseInt'](_0xd8d050['maxFormulaLimit']),this[_0x55d2de(0x25a)]=Number['parseInt'](_0xd8d050['currentUsage']));}async[_0xe70193(0x1e5)](_0x41d05b){const _0x180eb6=_0xe70193;var _0x52bf7a,_0x352a7e;const _0x437b43=Date[_0x180eb6(0x389)]();try{const _0x1933a9=((_0x52bf7a=this[_0x180eb6(0x304)][_0x180eb6(0x230)](_0x42efa1))==null?void 0x0:_0x52bf7a[_0x180eb6(0x24c)])||Rn,_0x324daf=(await this['_httpService'][_0x180eb6(0x33b)](_0x1933a9,{'body':JSON[_0x180eb6(0x379)]({'taskId':_0x41d05b})}))[_0x180eb6(0x376)];if(((_0x352a7e=_0x324daf[_0x180eb6(0x320)])==null?void 0x0:_0x352a7e[_0x180eb6(0x3e2)])!==Z['OK'])return;this[_0x180eb6(0x249)](_0x324daf['limitInfo'],_0x437b43);}catch(_0x54c86d){this[_0x180eb6(0x207)][_0x180eb6(0x320)](_0x54c86d);}}async['_getFormulaLimitStatus'](_0x66211f){const _0x300c64=_0xe70193;var _0x2cbd17,_0x135f59;const _0x2e9fac=Date[_0x300c64(0x389)]();try{const _0x1adab0=((_0x2cbd17=this[_0x300c64(0x304)][_0x300c64(0x230)](_0x42efa1))==null?void 0x0:_0x2cbd17['getformulaLimitStatusUrl'])||Cn,_0xd06e4d=_0x66211f?_0x1adab0+'?taskId='+encodeURIComponent(_0x66211f):_0x1adab0,_0x3d9638=(await this[_0x300c64(0x210)][_0x300c64(0x33a)](_0xd06e4d))[_0x300c64(0x376)];if(((_0x135f59=_0x3d9638[_0x300c64(0x320)])==null?void 0x0:_0x135f59[_0x300c64(0x3e2)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x3d9638[_0x300c64(0x373)],_0x2e9fac);}catch(_0x27e677){this['_logService'][_0x300c64(0x320)](_0x27e677);}}async[_0xe70193(0x2df)](_0x32c4b0){const _0x579095=_0xe70193;var _0x43bdf3,_0x4c97ad;const _0x270969=Date['now']();try{const _0xf9ae5=((_0x43bdf3=this['_configService']['getConfig'](_0x42efa1))==null?void 0x0:_0x43bdf3[_0x579095(0x3ca)])||Dn,_0x28729b=(await this[_0x579095(0x210)][_0x579095(0x33b)](_0xf9ae5,{'body':JSON[_0x579095(0x379)]({'taskId':_0x32c4b0})}))[_0x579095(0x376)];if(((_0x4c97ad=_0x28729b[_0x579095(0x320)])==null?void 0x0:_0x4c97ad[_0x579095(0x3e2)])!==Z['OK'])return;this[_0x579095(0x249)](_0x28729b[_0x579095(0x373)],_0x270969);}catch(_0x1bbb6b){this['_logService'][_0x579095(0x320)](_0x1bbb6b);}}['_checkCalculationAvailable'](){const _0x5dbfc6=_0xe70193;return this[_0x5dbfc6(0x1d9)]===0x0?!0x0:this[_0x5dbfc6(0x1d9)]-this['_currentUsage']>0x0;}['_clearPolling'](){const _0x53895b=_0xe70193;this['_pollingInterval']&&(clearTimeout(this[_0x53895b(0x278)]),this['_pollingInterval']=null);}['_showGuardMessage'](){const _0x38c475=_0xe70193;this[_0x38c475(0x390)][_0x38c475(0x2af)]({'content':this[_0x38c475(0x366)]['t'](_0x38c475(0x3fc)),'type':_0x4f4e28['Loading']});}[_0xe70193(0x3d3)](_0x2ae9db){const _0x3c09c8=_0xe70193;for(const _0x13f8a1 of _0x2ae9db){const {unitId:_0x342abd,sheetId:_0x586df3,range:_0x14550c}=_0x13f8a1,_0x57469d=this[_0x3c09c8(0x39a)][_0x3c09c8(0x1c7)](_0x342abd);if(!_0x57469d)continue;const _0x84bba3=_0x57469d[_0x3c09c8(0x38a)](_0x586df3);if(!_0x84bba3)continue;const _0x173485=_0x84bba3[_0x3c09c8(0x1f7)]();for(let _0x2a4a52=_0x14550c[_0x3c09c8(0x253)];_0x2a4a52<=_0x14550c[_0x3c09c8(0x2bf)];_0x2a4a52++)for(let _0x3c10da=_0x14550c[_0x3c09c8(0x2a6)];_0x3c10da<=_0x14550c[_0x3c09c8(0x1cd)];_0x3c10da++){const _0x1a7a32=_0x173485[_0x3c09c8(0x321)](_0x2a4a52,_0x3c10da);if(_0x1a7a32&&(_0x5d3df1(_0x1a7a32['f'])||_0x1fba3b(_0x1a7a32['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x2cd7f4(_0x3f7f0c)),P(0x1,_0x4a2cbd),P(0x2,_0x390ec1),P(0x3,_0x2cd7f4(_0x84287d)),P(0x4,_0x1b26af),P(0x5,_0x2eba95),P(0x6,_0x2cd7f4(_0x3290d2))],Ie);var Nn=Object[_0xe70193(0x222)],bn=(_0x5a07bc,_0x2cf9b0,_0x4f0fdd,_0x52e269)=>{for(var _0x2c62fa=_0x52e269>0x1?void 0x0:_0x52e269?Nn(_0x2cf9b0,_0x4f0fdd):_0x2cf9b0,_0x347d91=_0x5a07bc['length']-0x1,_0x45f0b0;_0x347d91>=0x0;_0x347d91--)(_0x45f0b0=_0x5a07bc[_0x347d91])&&(_0x2c62fa=_0x45f0b0(_0x2c62fa)||_0x2c62fa);return _0x2c62fa;},Ue=(_0x792c16,_0x4ae292)=>(_0x625b34,_0x1f1b5a)=>_0x4ae292(_0x625b34,_0x1f1b5a,_0x792c16);let He=class extends _0x3f5bb1{constructor(_0x37b145,_0x586eec,_0x4afdeb){const _0x426104=_0xe70193;super(),_(this,_0x426104(0x3ac),new Map()),_(this,_0x426104(0x29c),new Map()),_(this,_0x426104(0x1d7),!0x1),(this[_0x426104(0x304)]=_0x37b145,this[_0x426104(0x3b9)]=_0x586eec,this[_0x426104(0x215)]=_0x4afdeb);}[_0xe70193(0x216)](){const _0x1ffb33=_0xe70193;this[_0x1ffb33(0x1d7)]=!0x0;}[_0xe70193(0x297)](){const _0x1dfba1=_0xe70193;this[_0x1dfba1(0x1d7)]=!0x1;}get[_0xe70193(0x1ce)](){const _0x4e5d0a=_0xe70193;return this[_0x4e5d0a(0x29c)];}[_0xe70193(0x402)](){const _0x1d5996=_0xe70193;this[_0x1d5996(0x250)]()['then'](()=>super[_0x1d5996(0x402)]());}async[_0xe70193(0x2da)](_0x28a614){const _0xd25596=_0xe70193;return this['_disabled']?null:this[_0xd25596(0x3b9)][_0xd25596(0x1f9)](_0x3e152c(_0x28a614));}async['saveOfflineData'](_0x6b3710,_0x824945){const _0x3b2d6e=_0xe70193;return!!this[_0x3b2d6e(0x3b9)]['setItem'](_0x6b3710,_0x824945);}[_0xe70193(0x378)](_0x5b72f2,_0x2900ab,_0x57e6de,_0x17111d){const _0x1c9a6d=_0xe70193,_0x1a55cd=this[_0x1c9a6d(0x215)][_0x1c9a6d(0x274)](_0x5b72f2);this[_0x1c9a6d(0x3ac)][_0x1c9a6d(0x26e)](_0x5b72f2,{'unitID':_0x5b72f2,'type':_0x2900ab,'awaitingChangeset':_0x57e6de,'mutations':_0x17111d,'rev':_0x1a55cd}),this[_0x1c9a6d(0x29c)][_0x1c9a6d(0x1fe)](_0x5b72f2)||this[_0x1c9a6d(0x2f6)](_0x5b72f2);}['_scheduleSaving'](_0x36abdd){const _0x396ef0=_0xe70193,_0x3d8064=this[_0x396ef0(0x31f)]();_0x3d8064===0x0?this['_saveCache'](_0x36abdd):this[_0x396ef0(0x29c)][_0x396ef0(0x26e)](_0x36abdd,setTimeout(()=>this[_0x396ef0(0x36a)](_0x36abdd),_0x3d8064));}[_0xe70193(0x31f)](){const _0x52afe3=_0xe70193;var _0x19b85a;return(_0x19b85a=this[_0x52afe3(0x304)][_0x52afe3(0x230)](_0x5a2cbf))!=null?_0x19b85a:_0x53dbda;}['_saveCache'](_0x176811){const _0x6fb829=_0xe70193,_0x476643=this[_0x6fb829(0x29c)][_0x6fb829(0x33a)](_0x176811);return _0x476643!==void 0x0&&window[_0x6fb829(0x232)](_0x476643),this['_localStorageService'][_0x6fb829(0x339)](_0x3e152c(_0x176811),this[_0x6fb829(0x3ac)][_0x6fb829(0x33a)](_0x176811))[_0x6fb829(0x3bf)](()=>this['_saveTaskMap'][_0x6fb829(0x2dd)](_0x176811));}async[_0xe70193(0x250)](){const _0x440937=_0xe70193,_0x2c01f9=[];this[_0x440937(0x29c)]['forEach']((_0xd2f7d6,_0x2b9d3e)=>{const _0x11e932=_0x440937;window[_0x11e932(0x232)](_0xd2f7d6),_0x2c01f9[_0x11e932(0x241)](this[_0x11e932(0x36a)](_0x2b9d3e)['then'](()=>{const _0x49846e=_0x11e932;this[_0x49846e(0x29c)][_0x49846e(0x2dd)](_0x2b9d3e);}));}),await Promise[_0x440937(0x287)](_0x2c01f9);}};He=bn([Ue(0x0,_0x390ec1),Ue(0x1,_0x291550),Ue(0x2,_0x2cd7f4(_0x27cb36))],He);class Ln extends _0x5d64e7{constructor(){const _0xfdb44a=_0xe70193;super(),_(this,_0xfdb44a(0x1df)),this[_0xfdb44a(0x1df)]=_0x48edfd(window,'popstate')[_0xfdb44a(0x3b5)](_0x30d24b(this[_0xfdb44a(0x21b)]),_0x16a22e(0x1),_0x2a0a6b(void 0x0));}['setParam'](_0x53dc35,_0x14e7d3,_0x42ab68=!0x1){const _0x424738=_0xe70193,_0x29c82f=new URL(window['location'][_0x424738(0x27d)]);_0x29c82f['searchParams'][_0x424738(0x26e)](_0x53dc35,_0x14e7d3),_0x42ab68?window[_0x424738(0x276)][_0x424738(0x3d8)]('','',_0x29c82f[_0x424738(0x38e)]()):window[_0x424738(0x276)][_0x424738(0x2b5)]('','',_0x29c82f['toString']());}['removeParam'](_0x53bc97,_0x56bcba=!0x1){const _0x3c7dc3=_0xe70193,_0x55d49d=new URL(window['location'][_0x3c7dc3(0x27d)]);_0x55d49d['searchParams'][_0x3c7dc3(0x2dd)](_0x53bc97),_0x56bcba?window['history']['replaceState']('','',_0x55d49d[_0x3c7dc3(0x38e)]()):window['history'][_0x3c7dc3(0x2b5)]('','',_0x55d49d[_0x3c7dc3(0x38e)]());}[_0xe70193(0x30b)](_0x10177d){const _0x338553=_0xe70193;var _0x530faf;return(_0x530faf=new URL(window['location'][_0x338553(0x27d)])['searchParams'][_0x338553(0x33a)](_0x10177d))!=null?_0x530faf:void 0x0;}}var Un=Object[_0xe70193(0x2f4)],Mn=Object[_0xe70193(0x222)],An=(_0x37ef9f,_0x4adcbd,_0x40f9ef)=>_0x4adcbd in _0x37ef9f?Un(_0x37ef9f,_0x4adcbd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x40f9ef}):_0x37ef9f[_0x4adcbd]=_0x40f9ef,Pn=(_0x2c9b5e,_0x32989f,_0x139d69,_0x38b737)=>{for(var _0x5cfa83=_0x38b737>0x1?void 0x0:_0x38b737?Mn(_0x32989f,_0x139d69):_0x32989f,_0x17e76e=_0x2c9b5e['length']-0x1,_0x319c22;_0x17e76e>=0x0;_0x17e76e--)(_0x319c22=_0x2c9b5e[_0x17e76e])&&(_0x5cfa83=_0x319c22(_0x5cfa83)||_0x5cfa83);return _0x5cfa83;},Me=(_0x1fb9fc,_0x17cfb4)=>(_0x332c18,_0x42679a)=>_0x17cfb4(_0x332c18,_0x42679a,_0x1fb9fc),wn=(_0x24c033,_0x214488,_0xe41efe)=>An(_0x24c033,_0x214488+'',_0xe41efe);const yn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ye=class extends _0x3a03b5{constructor(_0x158916=_t,_0x5eee34,_0xfa5b2e,_0x5d173f){const _0x9ec3aa=_0xe70193;super(),this[_0x9ec3aa(0x288)]=_0x158916,this[_0x9ec3aa(0x3d4)]=_0x5eee34,this[_0x9ec3aa(0x1e0)]=_0xfa5b2e,this[_0x9ec3aa(0x304)]=_0x5d173f;const {..._0x46280a}=_0x2df7fc({},_t,this[_0x9ec3aa(0x288)]);this[_0x9ec3aa(0x304)][_0x9ec3aa(0x2a7)](hn,_0x46280a);}['onStarting'](){const _0x2e3bae=_0xe70193;this['_registerDependencies'](),this[_0x2e3bae(0x3cc)]();}['onRendered'](){const _0xbb3ee1=_0xe70193;this[_0xbb3ee1(0x3b2)]();}[_0xe70193(0x1cf)](){const _0x29515f=_0xe70193;var _0x5c05d7;const _0x3ec3e1=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x3872c5,{'useClass':_0x70c8ec}],[_0x6fb411,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x29515f(0x288)][_0x29515f(0x3e5)]&&_0x3ec3e1['push']([le]),_0x21accd(this['_injector'],_0x59d70b(_0x3ec3e1,(_0x5c05d7=this[_0x29515f(0x288)])==null?void 0x0:_0x5c05d7['override']));}['_registerRenderDependencies'](){const _0x5c86ae=_0xe70193;this[_0x5c86ae(0x205)](this['_renderManagerService'][_0x5c86ae(0x3e6)](_0x432dc0[_0x5c86ae(0x3c4)],[Fe])),this['disposeWithMe'](this[_0x5c86ae(0x3d4)][_0x5c86ae(0x3e6)](_0x432dc0[_0x5c86ae(0x269)],[ke]));}[_0xe70193(0x3cc)](){const _0x1793f3=_0xe70193;_0x43802b(this[_0x1793f3(0x1e0)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x1793f3(0x288)][_0x1793f3(0x3e5)]&&_0x43802b(this[_0x1793f3(0x1e0)],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x5920d3(_0x1653ef),Me(0x1,_0x4ef960),Me(0x2,_0x2cd7f4(_0x5b2c4d)),Me(0x3,_0x390ec1)],Ye);var $n=Object[_0xe70193(0x222)],xn=(_0x1aac94,_0xf4ee4c,_0x599ab8,_0x7ed475)=>{const _0x377333=_0xe70193;for(var _0x2be782=_0x7ed475>0x1?void 0x0:_0x7ed475?$n(_0xf4ee4c,_0x599ab8):_0xf4ee4c,_0x414aeb=_0x1aac94[_0x377333(0x2c7)]-0x1,_0x228d77;_0x414aeb>=0x0;_0x414aeb--)(_0x228d77=_0x1aac94[_0x414aeb])&&(_0x2be782=_0x228d77(_0x2be782)||_0x2be782);return _0x2be782;},J=(_0x380ebd,_0x3e40f9)=>(_0x226aab,_0x2ce0ba)=>_0x3e40f9(_0x226aab,_0x2ce0ba,_0x380ebd);let ut=class extends _0xb1e4a9{constructor(_0x5e5597,_0x5d673f,_0x51c71c,_0xfdb003,_0xd985c4){super(_0x5e5597,_0x5d673f,_0x51c71c,_0xfdb003,_0xd985c4);}async[_0xe70193(0x266)](_0x518216){const _0x432661=_0xe70193,_0x12f80a=await this['_getSessionTicket'](),_0x2f313b=this['_createSocketURL'](_0x518216,_0x12f80a);return this[_0x432661(0x3d9)](_0x2f313b);}[_0xe70193(0x289)](_0x3d594a,_0x2c84b4){const _0xae5b58=_0xe70193,_0x5d21b4=typeof window>'u'?new URL(_0x3d594a):new URL(_0x3d594a,window[_0xae5b58(0x1d1)]['origin']);_0x5d21b4[_0xae5b58(0x1de)][_0xae5b58(0x26e)]('sessionTicket',_0x2c84b4);const _0x87f6e=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xae5b58(0x1d1)][_0xae5b58(0x336)]);return _0x87f6e['get']('runId')&&_0x5d21b4[_0xae5b58(0x1de)][_0xae5b58(0x26e)]('runId',_0x87f6e[_0xae5b58(0x33a)](_0xae5b58(0x3f1))),_0x5d21b4[_0xae5b58(0x38e)]();}async[_0xe70193(0x409)](){const _0x352b1d=_0xe70193;var _0x1e1184,_0x5c00fd,_0x154baf;const _0x380128=this[_0x352b1d(0x304)][_0x352b1d(0x230)](_0x42efa1),_0x4c19cd=(_0x1e1184=_0x380128==null?void 0x0:_0x380128[_0x352b1d(0x35a)])!=null?_0x1e1184:_0x49bb1a;return(_0x154baf=(_0x5c00fd=(await this['_httpService'][_0x352b1d(0x33a)](_0x4c19cd,{'headers':{'Content-Type':'application/json'}}))[_0x352b1d(0x376)])==null?void 0x0:_0x5c00fd[_0x352b1d(0x213)])!=null?_0x154baf:'';}};ut=xn([J(0x0,_0x2cd7f4(_0x5b2c4d)),J(0x1,_0x2cd7f4(_0x84287d)),J(0x2,_0x390ec1),J(0x3,_0x2eba95),J(0x4,_0x2d14da)],ut);var Bn=Object[_0xe70193(0x222)],Fn=(_0x5b211d,_0x44d694,_0x3bb29f,_0x463cd2)=>{for(var _0xf965cc=_0x463cd2>0x1?void 0x0:_0x463cd2?Bn(_0x44d694,_0x3bb29f):_0x44d694,_0x1ef717=_0x5b211d['length']-0x1,_0x5b3fdb;_0x1ef717>=0x0;_0x1ef717--)(_0x5b3fdb=_0x5b211d[_0x1ef717])&&(_0xf965cc=_0x5b3fdb(_0xf965cc)||_0xf965cc);return _0xf965cc;},Ae=(_0x448235,_0x5f1c80)=>(_0x7e5d54,_0x53b482)=>_0x5f1c80(_0x7e5d54,_0x53b482,_0x448235);let dt=class extends _0x3f5bb1{constructor(_0x204ffc,_0x251430,_0x5f51b){const _0x164047=_0xe70193;super(),this[_0x164047(0x2e7)]=_0x204ffc,this['_httpService']=_0x251430,this[_0x164047(0x304)]=_0x5f51b;}async[_0xe70193(0x341)](_0x44d807,_0x333c99,_0x4d5440,..._0x50732d){const _0x51061b=_0xe70193;var _0x2921f5,_0x488841,_0x464892,_0x4b77ac;const _0x19320d=this['_instanceService'][_0x51061b(0x28c)]();if(!_0x19320d)throw new Error(_0x51061b(0x3c0));const _0x3e12b7=((_0x2921f5=this[_0x51061b(0x304)]['getConfig'](_0x3ddd9b))!=null?_0x2921f5:_0x128294)+'/'+_0x44d807+_0x51061b(0x2d0)+_0x333c99,_0x587d0c=new URL(window[_0x51061b(0x1d1)][_0x51061b(0x27d)]),_0x509543={'scriptId':_0x44d807,'runId':(_0x488841=_0x587d0c[_0x51061b(0x1de)][_0x51061b(0x33a)](_0x51061b(0x3f1)))!=null?_0x488841:'','function':_0x333c99,'unitId':_0x19320d[_0x51061b(0x255)](),'argsOfFunction':JSON[_0x51061b(0x379)](_0x50732d),'invokeId':(_0x464892=_0x4d5440['invokeId'])!=null?_0x464892:'','executionId':(_0x4b77ac=_0x4d5440[_0x51061b(0x2b6)])!=null?_0x4b77ac:''};try{const _0x464876=await this[_0x51061b(0x210)][_0x51061b(0x33b)](_0x3e12b7,{'body':_0x509543});return _0x464876['body'][_0x51061b(0x320)]&&_0x464876[_0x51061b(0x376)][_0x51061b(0x320)][_0x51061b(0x3e2)]!==Z['OK']?_0x51061b(0x2b4):_0x464876['body'][_0x51061b(0x353)];}catch{return _0x51061b(0x2b4);}}};dt=Fn([Ae(0x0,_0x1b26af),Ae(0x1,_0x2cd7f4(_0x84287d)),Ae(0x2,_0x390ec1)],dt);const St=0x7530,It='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0x3f5bb1{constructor(){const _0x34e548=_0xe70193;super(),_(this,_0x34e548(0x303),_0x156fa6()),_(this,'_selfUnitIDs',new Set()),_(this,_0x34e548(0x333),new Map()),_(this,_0x34e548(0x309),null),_(this,'_clearOtherTimers',new Map()),_(this,_0x34e548(0x351),new Map()),this['_init']();}['dispose'](){const _0x42dc98=_0xe70193;super[_0x42dc98(0x402)](),this[_0x42dc98(0x3e8)][_0x42dc98(0x3b7)]((_0x3fb2d3,_0x40d7f5)=>this[_0x42dc98(0x24a)](_0x40d7f5)),this['_heartbeatTimer']&&window[_0x42dc98(0x3c8)](this[_0x42dc98(0x309)]);}['getUnitStatus$'](_0x383cab){const _0x1888e4=_0xe70193;return this['_ensureSubject'](_0x383cab)[_0x1888e4(0x3b5)](_0x639a16());}[_0xe70193(0x20f)](_0xf1e693){const _0x5c8e98=_0xe70193;this[_0x5c8e98(0x400)]['size']===0x0&&this[_0x5c8e98(0x3ad)](),this[_0x5c8e98(0x400)][_0x5c8e98(0x2ee)](_0xf1e693),this[_0x5c8e98(0x25f)]({'type':0x0,'memberID':this[_0x5c8e98(0x303)],'unitIDs':[_0xf1e693],'isForwarded':!0x1});}[_0xe70193(0x218)](_0xcc8318){const _0x30b16a=_0xe70193;this[_0x30b16a(0x400)][_0x30b16a(0x2dd)](_0xcc8318),this[_0x30b16a(0x400)][_0x30b16a(0x37a)]===0x0&&this[_0x30b16a(0x309)]&&window['clearInterval'](this['_heartbeatTimer']);}['_init'](){const _0x20cfd7=_0xe70193;this[_0x20cfd7(0x205)](_0x3012f7(_0x48edfd(window,_0x20cfd7(0x301))['subscribe'](_0x1f3183=>{const _0x160a5c=_0x20cfd7;if(_0x1f3183['key']!==It||!_0x1f3183[_0x160a5c(0x345)])return;const _0x4871c0=JSON['parse'](_0x1f3183[_0x160a5c(0x345)]);this[_0x160a5c(0x2ab)](_0x4871c0);}))),window[_0x20cfd7(0x2d8)](_0x20cfd7(0x356),()=>this[_0x20cfd7(0x25f)]({'type':0x1,'memberID':this[_0x20cfd7(0x303)],'unitIDs':Array[_0x20cfd7(0x1dd)](this[_0x20cfd7(0x400)])}));}[_0xe70193(0x2ab)](_0x227e81){const _0x130156=_0xe70193;switch(_0x227e81[_0x130156(0x375)]){case 0x0:this[_0x130156(0x272)](_0x227e81);break;case 0x1:this[_0x130156(0x3ed)](_0x227e81);break;case 0x2:this[_0x130156(0x1d8)](_0x227e81);break;}}['_handleJoinEvent'](_0x3f66aa){const _0x5b7d3f=_0xe70193,{unitIDs:_0x39be6d,memberID:_0x5ba73f,isForwarded:_0x1e7693}=_0x3f66aa;_0x39be6d[_0x5b7d3f(0x3b7)](_0x1ebb33=>{const _0x739d68=_0x5b7d3f;if(!_0x1e7693&&this[_0x739d68(0x333)]['has'](_0x1ebb33)&&this[_0x739d68(0x29f)](_0x1ebb33)[_0x739d68(0x3c2)](_0x13b105[_0x739d68(0x22f)]),!this['_unitOnClients']['has'](_0x1ebb33)||!this[_0x739d68(0x333)]['get'](_0x1ebb33)['has'](_0x5ba73f)){const _0x2f1461=this[_0x739d68(0x333)]['get'](_0x1ebb33)||new Set();_0x2f1461['add'](_0x5ba73f),this[_0x739d68(0x333)][_0x739d68(0x26e)](_0x1ebb33,_0x2f1461),this[_0x739d68(0x225)](_0x5ba73f);}}),_0x1e7693||this[_0x5b7d3f(0x25f)]({'type':0x0,'memberID':this[_0x5b7d3f(0x303)],'unitIDs':[...this[_0x5b7d3f(0x400)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x27407a){const _0x34f921=_0xe70193;this[_0x34f921(0x24a)](_0x27407a);const _0x4a3c96=window[_0x34f921(0x23d)](()=>{const _0x165699=_0x34f921;this[_0x165699(0x333)]['forEach'](_0x549fd4=>{_0x549fd4['delete'](_0x27407a);});},St*0x2);this['_clearOtherTimers'][_0x34f921(0x26e)](_0x27407a,_0x4a3c96);}[_0xe70193(0x24a)](_0x224c40){const _0x28b9e5=_0xe70193;if(this[_0x28b9e5(0x3e8)][_0x28b9e5(0x1fe)](_0x224c40)){const _0x51ade4=this['_clearOtherTimers'][_0x28b9e5(0x33a)](_0x224c40);_0x51ade4&&window['clearTimeout'](_0x51ade4),this[_0x28b9e5(0x3e8)][_0x28b9e5(0x26e)](_0x224c40,null);}}[_0xe70193(0x3ed)](_0x280dc9){const {memberID:_0x5592be,unitIDs:_0x56c3b1}=_0x280dc9;_0x56c3b1['forEach'](_0xe2945f=>{const _0x413396=_0x5de0;var _0x23dfbe;const _0x4a553f=this[_0x413396(0x333)]['get'](_0xe2945f);_0x4a553f&&(_0x4a553f[_0x413396(0x2dd)](_0x5592be),(_0x23dfbe=this[_0x413396(0x29f)](_0xe2945f))==null||_0x23dfbe['next'](_0x4a553f[_0x413396(0x37a)]===0x0?_0x13b105[_0x413396(0x1ea)]:_0x13b105[_0x413396(0x22f)]));}),this['_removeClearOtherTimer'](_0x5592be);}[_0xe70193(0x1d8)](_0x38616f){const _0x113cd4=_0xe70193;this[_0x113cd4(0x225)](_0x38616f['memberID']);}['_send'](_0x59cea3){const _0x397d68=_0xe70193;localStorage['setItem'](It,JSON[_0x397d68(0x379)](_0x59cea3));}[_0xe70193(0x3ad)](){const _0xf809cc=_0xe70193;this[_0xf809cc(0x309)]=window['setInterval'](()=>{const _0x1ee110=_0xf809cc;this['_send']({'type':0x2,'memberID':this[_0x1ee110(0x303)]});},St);}[_0xe70193(0x29f)](_0x57d2a0){const _0x5e7b0a=_0xe70193;return this[_0x5e7b0a(0x351)][_0x5e7b0a(0x1fe)](_0x57d2a0)||this['_unitStatus'][_0x5e7b0a(0x26e)](_0x57d2a0,new _0x2ce55f(_0x13b105[_0x5e7b0a(0x1ea)])),this[_0x5e7b0a(0x351)][_0x5e7b0a(0x33a)](_0x57d2a0);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
|