@univerjs-pro/collaboration-client-ui 0.15.2-insiders.20260119-edc718c → 0.15.2
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 +15 -15
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x240916=_0x9124;(function(_0x14df41,_0x392860){const _0x3c8605=_0x9124,_0x5d3b27=_0x14df41();while(!![]){try{const _0x416a3e=parseInt(_0x3c8605(0x197))/0x1+parseInt(_0x3c8605(0x1b8))/0x2+parseInt(_0x3c8605(0x16f))/0x3+-parseInt(_0x3c8605(0x2cc))/0x4+parseInt(_0x3c8605(0xf5))/0x5+-parseInt(_0x3c8605(0x148))/0x6+-parseInt(_0x3c8605(0x17d))/0x7;if(_0x416a3e===_0x392860)break;else _0x5d3b27['push'](_0x5d3b27['shift']());}catch(_0xb31671){_0x5d3b27['push'](_0x5d3b27['shift']());}}}(_0xf9f6,0xbd63b));var Yt=Object[_0x240916(0x10c)],Wt=(_0x753bc5,_0x2f8d89,_0x16cc9d)=>_0x2f8d89 in _0x753bc5?Yt(_0x753bc5,_0x2f8d89,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16cc9d}):_0x753bc5[_0x2f8d89]=_0x16cc9d,_=(_0x3e7e3f,_0x388dd2,_0x182eec)=>Wt(_0x3e7e3f,typeof _0x388dd2!=_0x240916(0x290)?_0x388dd2+'':_0x388dd2,_0x182eec);function _0x9124(_0x4eef53,_0x4385c1){_0x4eef53=_0x4eef53-0xce;const _0xf9f668=_0xf9f6();let _0x912412=_0xf9f668[_0x4eef53];return _0x912412;}import{jsx as _0xc53f37,jsxs as _0x20f8a2}from'react/jsx-runtime';import{CollaborationStatus as _0x1cb4cc,CollaborationSessionService as _0x27d44b,CollaborationController as _0x4a10bf,DataLoaderService as _0x361d6f,MemberService as _0x11723a,SessionStatus as _0x83b48e,ILocalCacheService as _0x45d2d0,CollaborationUIEventService as _0x1be880,CollaborationUIEventId as _0x892b1e,DocCollaborationEntity as _0x320279,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2941e8,getLocalCacheKey as _0x373961,LOCAL_CACHE_INTERVAL as _0x197b86,LOCAL_CACHE_INTERVAL_KEY as _0x67fadd,UniverCollaborationClientPlugin as _0x3f596b,CollaborationSocketService as _0x5d1c82,DEFAULT_WS_SESSION_TICKET_URL as _0x67f602,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x2b191a,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x50718d,UnitStatus as _0x58c8e7}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x53f064,IUniverInstanceService as _0x81870d,Inject as _0x451de1,Injector as _0x30dac5,Disposable as _0xf771d3,createIdentifier as _0x3cc41a,ILogService as _0x48e521,ICommandService as _0x5e5675,Optional as _0x590a7d,RxDisposable as _0x3122c4,Workbook as _0x8b9ea7,DOC_RANGE_TYPE as _0x3c1574,debounce as _0x17e35b,Rectangle as _0x49f784,DisposableCollection as _0x113270,toDisposable as _0x13afa3,UniverInstanceType as _0x2e1b84,generateRandomId as _0x2664d4,COLORS as _0x2b8935,ColorKit as _0x19d4f9,ThemeService as _0x57f958,fromEventSubject as _0x63123d,Tools as _0x141325,CommandType as _0x445795,IConfigService as _0x1510c1,CanceledError as _0x100082,isFormulaString as _0x53c2f3,isFormulaId as _0x390515,ILocalStorageService as _0x3a4d59,DependentOn as _0x394ca8,Plugin as _0x18025e,merge as _0x3aa68c,registerDependencies as _0x4856aa,mergeOverrideWithDependencies as _0xc1ed92,touchDependencies as _0xa68686}from'@univerjs/core';import{useObservable as _0x2e10a2,useDependency as _0x3d0f09,IUIPartsService as _0x3cadbd,BuiltInUIPart as _0x5ab223,connectInjector as _0x3361c7,IBeforeCloseService as _0x159d32,IMessageService as _0x110574,INotificationService as _0xbbab2c}from'@univerjs/ui';import{BehaviorSubject as _0x37599d,switchMap as _0x38976a,of as _0x4cadb4,takeUntil as _0xb0eea8,debounceTime as _0x18bb22,Subject as _0x16d6c4,filter as _0xa9cd8e,merge as _0x4bce0e,combineLatest as _0x207d2b,fromEvent as _0x572af5,shareReplay as _0x5f297a,mapTo as _0x15fcb9,distinctUntilChanged as _0x57e7da}from'rxjs';import{Tooltip as _0x3726b7,clsx as _0x52ece7,MessageType as _0x24cf21}from'@univerjs/design';import{useRef as _0x4e3cf1,createElement as _0x21c330,forwardRef as _0x3805e3,useCallback as _0x5a6b05}from'react';import{IRemoteInstanceService as _0x6f5dda}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x103b32,RefRangeService as _0x44115d,SetSelectionsOperation as _0x12ebb5,SheetsSelectionsService as _0x368647,EffectRefRangId as _0xab8473,handleIRemoveRow as _0x3ad6e3,handleIRemoveCol as _0x4b51ea,handleMoveRange as _0x133eca,handleInsertRow as _0x209d65,handleInsertRangeMoveRight as _0x20f389,handleInsertRangeMoveDown as _0x3fc51e,handleInsertCol as _0x17c1bf,handleDeleteRangeMoveUp as _0x1d554c,handleDeleteRangeMoveLeft as _0x5940a0,runRefRangeMutations as _0x4fc651}from'@univerjs/sheets';import{Shape as _0xa92bc,Rect as _0x3d2ae1,getColor as _0x525b34,RegularPolygon as _0x542d56,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x97306c,Vector2 as _0x2e233c,SHEET_VIEWPORT_KEY as _0xf0062,IRenderManagerService as _0x4d689b}from'@univerjs/engine-render';import{HTTPService as _0x20e19d,ISocketService as _0x237440,WebSocketService as _0x276479}from'@univerjs/network';import{IDocClipboardService as _0x42c8e5,NodePositionConvertToCursor as _0x150b12,NodePositionConvertToRectRange as _0x19dc65,TEXT_RANGE_LAYER_INDEX as _0x15a21c,SetDocZoomRatioOperation as _0x1a7732,DocIMEInputManagerService as _0x193f11,DocStateChangeManagerService as _0x3199a5}from'@univerjs/docs-ui';import{IImageIoService as _0x152fb2}from'@univerjs/drawing';import{ITransformService as _0x10d68c,CollaborationEvent as _0x761ce2,isTransformMutationFailure as _0x699f6f,isTransformMutationsWithChangesetSuccess as _0x73df74,RevisionService as _0x5092a2,ISnapshotServerService as _0x295e6f}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x43bf97,RichTextEditingMutation as _0x87d6e4,DocSelectionManagerService as _0x5f3a65,DocSkeletonManagerService as _0x1102c9}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x1ec9a4,serializeRangeWithSheet as _0x47dbec,FormulaExecuteStageType as _0x39b8f6,FormulaExecutedStateType as _0xb5c3c9,SetFormulaCalculationStartMutation as _0x1971b5,SetFormulaCalculationNotificationMutation as _0x446ee4}from'@univerjs/engine-formula';import{map as _0x58bc15,filter as _0x491785,throttleTime as _0x3118d0,takeUntil as _0x2b4e82,switchMap as _0x1fc78b}from'rxjs/operators';import{SheetSkeletonManagerService as _0x3e7369,getCoordByCell as _0xdb9d86,getSheetObject as _0x453f91}from'@univerjs/sheets-ui';function Ge({ref:_0x30581c,..._0x5c497f}){const _0x409716=_0x240916,{icon:_0x39741f,id:_0x174781,className:_0x56f2b9,extend:_0x1fb941,..._0x5f46b1}=_0x5c497f,_0x8f1960=(_0x409716(0x2f4)+_0x174781+'\x20'+(_0x56f2b9||''))['trim'](),_0x4380c3=_0x4e3cf1('_'+vi());return At(_0x39741f,''+_0x174781,{'defIds':_0x39741f['defIds'],'idSuffix':_0x4380c3[_0x409716(0x131)]},{'ref':_0x30581c,'className':_0x8f1960,..._0x5f46b1},_0x1fb941);}function At(_0x1b83f3,_0x55b0cd,_0x1dd509,_0x2d3344,_0x2e70ff){const _0x471f3c=_0x240916;return _0x21c330(_0x1b83f3[_0x471f3c(0x2c8)],{'key':_0x55b0cd,...gi(_0x1b83f3,_0x1dd509,_0x2e70ff),..._0x2d3344},(Ei(_0x1b83f3,_0x1dd509)[_0x471f3c(0x1af)]||[])[_0x471f3c(0x281)]((_0x53b6b8,_0x29b22c)=>At(_0x53b6b8,_0x55b0cd+'-'+_0x1b83f3[_0x471f3c(0x2c8)]+'-'+_0x29b22c,_0x1dd509,void 0x0,_0x2e70ff)));}function gi(_0x31fca8,_0x1b969b,_0x271c04){const _0x1bc8e6=_0x240916,_0x30e3a2={..._0x31fca8[_0x1bc8e6(0x244)]};_0x271c04!=null&&_0x271c04[_0x1bc8e6(0x195)]&&_0x30e3a2['fill']===_0x1bc8e6(0x195)&&(_0x30e3a2[_0x1bc8e6(0x224)]=_0x271c04['colorChannel1']),_0x31fca8['tag']==='mask'&&_0x30e3a2['id']&&(_0x30e3a2['id']=_0x30e3a2['id']+_0x1b969b[_0x1bc8e6(0x27c)]),Object['entries'](_0x30e3a2)[_0x1bc8e6(0x2e8)](([_0x1461f5,_0xf19524])=>{const _0x3bdbee=_0x1bc8e6;_0x1461f5===_0x3bdbee(0x249)&&typeof _0xf19524==_0x3bdbee(0x19c)&&(_0x30e3a2[_0x1461f5]=_0xf19524['replace'](/url\(#(.*)\)/,_0x3bdbee(0x297)+_0x1b969b['idSuffix']+')'));});const {defIds:_0x195eb6}=_0x1b969b;return!_0x195eb6||_0x195eb6[_0x1bc8e6(0xfb)]===0x0||(_0x31fca8['tag']==='use'&&_0x30e3a2[_0x1bc8e6(0x222)]&&(_0x30e3a2[_0x1bc8e6(0x222)]=_0x30e3a2[_0x1bc8e6(0x222)]+_0x1b969b[_0x1bc8e6(0x27c)]),Object[_0x1bc8e6(0xe9)](_0x30e3a2)[_0x1bc8e6(0x2e8)](([_0x2ad8bf,_0x5a5442])=>{const _0x15e23a=_0x1bc8e6;typeof _0x5a5442==_0x15e23a(0x19c)&&(_0x30e3a2[_0x2ad8bf]=_0x5a5442[_0x15e23a(0x12a)](/url\(#(.*)\)/,'url(#$1'+_0x1b969b['idSuffix']+')'));})),_0x30e3a2;}function Ei(_0x561505,_0x42f9d1){const _0x178cb5=_0x240916;var _0x55f2da;const {defIds:_0x5e7036}=_0x42f9d1;return!_0x5e7036||_0x5e7036[_0x178cb5(0xfb)]===0x0?_0x561505:_0x561505['tag']==='defs'&&((_0x55f2da=_0x561505[_0x178cb5(0x1af)])!=null&&_0x55f2da[_0x178cb5(0xfb)])?{..._0x561505,'children':_0x561505[_0x178cb5(0x1af)][_0x178cb5(0x281)](_0x53a312=>typeof _0x53a312[_0x178cb5(0x244)]['id']=='string'&&_0x5e7036&&_0x5e7036['includes'](_0x53a312['attrs']['id'])?{..._0x53a312,'attrs':{..._0x53a312[_0x178cb5(0x244)],'id':_0x53a312[_0x178cb5(0x244)]['id']+_0x42f9d1['idSuffix']}}:_0x53a312)}:_0x561505;}function vi(){const _0x4a9e19=_0x240916;return Math[_0x4a9e19(0x21d)]()[_0x4a9e19(0x257)](0x24)[_0x4a9e19(0x1ce)](0x2,0x8);}Ge[_0x240916(0x18b)]=_0x240916(0x134);const pi={'tag':_0x240916(0x138),'attrs':{'xmlns':_0x240916(0x25f),'fill':_0x240916(0x319),'viewBox':'0\x200\x2016\x2016','width':_0x240916(0x18d),'height':_0x240916(0x18d)},'children':[{'tag':'g','attrs':{'clipPath':_0x240916(0x204)},'children':[{'tag':_0x240916(0x10a),'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':_0x240916(0x229),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x240916(0x196),'attrs':{},'children':[{'tag':_0x240916(0x177),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x240916(0x10a),'attrs':{'fill':_0x240916(0x20b),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Pt=_0x3805e3(function(_0x54d846,_0x4cefd5){const _0xdabca6=_0x240916;return _0x21c330(Ge,Object[_0xdabca6(0x23d)]({},_0x54d846,{'id':_0xdabca6(0x1a7),'ref':_0x4cefd5,'icon':pi}));});Pt['displayName']=_0x240916(0x137);const Oi={'tag':_0x240916(0x138),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x240916(0x319),'viewBox':_0x240916(0x1c6),'width':_0x240916(0x18d),'height':_0x240916(0x18d)},'children':[{'tag':'g','attrs':{'clipPath':_0x240916(0x16b)},'children':[{'tag':_0x240916(0x10a),'attrs':{'stroke':_0x240916(0x2ac),'d':_0x240916(0x140),'strokeLinecap':_0x240916(0x229),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x240916(0x196),'attrs':{},'children':[{'tag':_0x240916(0x177),'attrs':{'id':_0x240916(0x13d)},'children':[{'tag':_0x240916(0x10a),'attrs':{'fill':_0x240916(0x20b),'d':_0x240916(0x135),'transform':_0x240916(0x2c6)}}]}]}],'defIds':[_0x240916(0x13d)]},wt=_0x3805e3(function(_0x108499,_0x4f1ba8){const _0x65eae=_0x240916;return _0x21c330(Ge,Object[_0x65eae(0x23d)]({},_0x108499,{'id':_0x65eae(0x261),'ref':_0x4f1ba8,'icon':Oi}));});wt[_0x240916(0x18b)]=_0x240916(0x252);function Ti(_0x1eee67){const _0x2f0ecb=_0x240916;switch(_0x1eee67){case _0x1cb4cc[_0x2f0ecb(0x147)]:return _0x2f0ecb(0x191);case _0x1cb4cc[_0x2f0ecb(0x279)]:return _0x2f0ecb(0x105);case _0x1cb4cc[_0x2f0ecb(0x1d5)]:return'collabStatus.fetchMiss';case _0x1cb4cc[_0x2f0ecb(0x23c)]:return _0x2f0ecb(0x1eb);case _0x1cb4cc[_0x2f0ecb(0x314)]:case _0x1cb4cc[_0x2f0ecb(0x1ac)]:return _0x2f0ecb(0x17f);case _0x1cb4cc[_0x2f0ecb(0xfd)]:case _0x1cb4cc[_0x2f0ecb(0x25d)]:return _0x2f0ecb(0x146);}}function Ci(_0x45a1c8){const _0x99e4d7=_0x240916,{status$:_0x2543ae}=_0x45a1c8,_0x5948ec=_0x2e10a2(_0x2543ae,_0x1cb4cc[_0x99e4d7(0x23c)]),_0x29514b=_0x3d0f09(_0x53f064),_0x131fcd=_0x3d0f09(_0x27d44b),_0x1a58ed=_0x5948ec!==_0x1cb4cc[_0x99e4d7(0x147)],_0x50d72c=_0x29514b['t'](Ti(_0x5948ec)),_0x21f88b=_0x1a58ed?_0xc53f37(wt,{}):_0xc53f37(Pt,{}),_0x22f74a=_0x5a6b05(()=>{_0x1a58ed||_0x131fcd['reconnect']();},[_0x1a58ed,_0x131fcd]);function _0x31b726(){const _0x1cbbec=_0x99e4d7;return _0x20f8a2(_0x1cbbec(0x17a),{'className':_0x1cbbec(0x287),'onClick':_0x22f74a,'children':[_0xc53f37(_0x1cbbec(0x17a),{'className':_0x52ece7('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x1a58ed,'univer-text-red-500':!_0x1a58ed}),'children':_0x21f88b}),_0xc53f37('div',{'className':_0x1cbbec(0x15b),'children':_0x50d72c})]});}return _0x1a58ed?_0x31b726():_0xc53f37(_0x3726b7,{'title':_0x29514b['t'](_0x99e4d7(0x15f)),'children':_0x31b726()});}var Ri=Object[_0x240916(0x1f8)],Di=(_0x20ee02,_0x11739e,_0x57a343,_0x2e891b)=>{const _0x245bb2=_0x240916;for(var _0x118a0f=_0x2e891b>0x1?void 0x0:_0x2e891b?Ri(_0x11739e,_0x57a343):_0x11739e,_0x121e0f=_0x20ee02[_0x245bb2(0xfb)]-0x1,_0x47c329;_0x121e0f>=0x0;_0x121e0f--)(_0x47c329=_0x20ee02[_0x121e0f])&&(_0x118a0f=_0x47c329(_0x118a0f)||_0x118a0f);return _0x118a0f;},se=(_0x5ded3b,_0xa3023b)=>(_0x2b8802,_0x3b8c3c)=>_0xa3023b(_0x2b8802,_0x3b8c3c,_0x5ded3b);let ae=class extends _0xf771d3{constructor(_0x5b858c,_0x348391,_0x585164,_0x5ddb38){const _0xed6be6=_0x240916;super(),_(this,_0xed6be6(0x2a1),new _0x37599d(_0x1cb4cc[_0xed6be6(0x23c)])),(this['_univerInstanceService']=_0x5b858c,this[_0xed6be6(0x26e)]=_0x348391,this[_0xed6be6(0x114)]=_0x585164,this[_0xed6be6(0x2cd)]=_0x5ddb38,this[_0xed6be6(0x306)](),this['_initStatusListener']());}[_0x240916(0x21e)](){const _0x4272ed=_0x240916;this[_0x4272ed(0xe0)](this['_univerInstanceService'][_0x4272ed(0x1ca)][_0x4272ed(0x1e1)](_0x38976a(()=>{const _0x5a408f=_0x4272ed,_0x3ce369=this[_0x5a408f(0x1d7)]['getFocusedUnit']();return _0x3ce369?this['_collaborationController'][_0x5a408f(0x153)](_0x3ce369[_0x5a408f(0x2a6)]()):_0x4cadb4(null);}),_0x38976a(_0x3850ba=>_0x3850ba?_0x3850ba['status$']:_0x4cadb4(_0x1cb4cc['NOT_COLLAB'])))[_0x4272ed(0x111)](_0x246a8a=>{const _0x2eb6f0=_0x4272ed;this['_status$'][_0x2eb6f0(0x1cc)](_0x246a8a);}));}['_initStatusComponent'](){const _0x4f22f2=_0x240916;this[_0x4f22f2(0xe0)](this[_0x4f22f2(0x2cd)]['registerComponent'](_0x5ab223[_0x4f22f2(0x22f)],()=>_0x3361c7(Ni({'status$':this[_0x4f22f2(0x2a1)][_0x4f22f2(0x24c)]()}),this['_injector'])));}};ae=Di([se(0x0,_0x81870d),se(0x1,_0x451de1(_0x30dac5)),se(0x2,_0x451de1(_0x4a10bf)),se(0x3,_0x3cadbd)],ae);function Ni(_0x1435a4){const {status$:_0xae89cd}=_0x1435a4;return function(){return _0xc53f37(Ci,{'status$':_0xae89cd});};}const yt=_0x3cc41a(_0x240916(0x292));var bi=Object[_0x240916(0x1f8)],Li=(_0x145187,_0x5d48c1,_0x3b4162,_0x4b3d64)=>{const _0x32d37c=_0x240916;for(var _0x3e0fda=_0x4b3d64>0x1?void 0x0:_0x4b3d64?bi(_0x5d48c1,_0x3b4162):_0x5d48c1,_0x395425=_0x145187[_0x32d37c(0xfb)]-0x1,_0x24cb5e;_0x395425>=0x0;_0x395425--)(_0x24cb5e=_0x145187[_0x395425])&&(_0x3e0fda=_0x24cb5e(_0x3e0fda)||_0x3e0fda);return _0x3e0fda;},K=(_0x58b31c,_0xd8e885)=>(_0x3d4475,_0x44ff36)=>_0xd8e885(_0x3d4475,_0x44ff36,_0x58b31c);let ce=class extends _0x3122c4{constructor(_0x42e56c,_0x5bb4bf,_0x2446dc,_0xcd04ee,_0x5e2a60){const _0x22f108=_0x240916;super(),this[_0x22f108(0x13f)]=_0x42e56c,this[_0x22f108(0x26f)]=_0x5bb4bf,this[_0x22f108(0x208)]=_0x2446dc,this[_0x22f108(0x130)]=_0xcd04ee,_0x5e2a60?_0x5e2a60==null||_0x5e2a60[_0x22f108(0x142)]()['then'](()=>this['_init']()):(this[_0x22f108(0x26f)][_0x22f108(0x28c)]('[CollaborationDataLoaderController]',_0x22f108(0x2ba)),this[_0x22f108(0x163)]());}async['_init'](){const _0x38ad3d=_0x240916,_0x10e190=this[_0x38ad3d(0x13f)][_0x38ad3d(0x2ec)](_0x38ad3d(0x262)),_0x19b4fc=this['_urlService'][_0x38ad3d(0x2ec)]('type'),_0x296a39=this['_urlService']['getParam'](_0x38ad3d(0x218));if(!_0x10e190||!_0x19b4fc){this[_0x38ad3d(0x26f)][_0x38ad3d(0x28c)](_0x38ad3d(0x26b),_0x38ad3d(0xee));return;}const _0x529284=await this[_0x38ad3d(0x130)]['loadUnit'](_0x10e190,Number(_0x19b4fc),_0x296a39);_0x529284&&_0x529284 instanceof _0x8b9ea7&&this[_0x38ad3d(0x2e4)](_0x529284);}async[_0x240916(0x2e4)](_0x1b97cf){const _0x41c6bd=_0x240916;await this[_0x41c6bd(0xf6)](_0x1b97cf),_0x1b97cf[_0x41c6bd(0x14f)]['pipe'](_0xb0eea8(this[_0x41c6bd(0x221)]))[_0x41c6bd(0x111)](_0xfb7095=>{_0xfb7095&&this['_updateURLWithCurrentState'](_0xfb7095);}),this[_0x41c6bd(0x13f)]['urlChange$'][_0x41c6bd(0x1e1)](_0xb0eea8(this[_0x41c6bd(0x221)]))['subscribe'](()=>this[_0x41c6bd(0xf6)](_0x1b97cf));}['_updateURLWithCurrentState'](_0x27556e,_0xd4c260=!0x1){const _0x243de2=_0x240916,_0x3f0eb3=this[_0x243de2(0x13f)][_0x243de2(0x2ec)](_0x243de2(0x218));_0x27556e[_0x243de2(0x2c5)]()!==_0x3f0eb3&&this[_0x243de2(0x13f)][_0x243de2(0x277)](_0x243de2(0x218),_0x27556e[_0x243de2(0x2c5)](),_0xd4c260);}async['_updateSubUnitFromURLParams'](_0x1b8671){const _0x2328fd=_0x240916;var _0x605756;const _0xf2d64b=this[_0x2328fd(0x13f)]['getParam'](_0x2328fd(0x218));if(!_0xf2d64b||!_0x1b8671[_0x2328fd(0x12b)](_0xf2d64b)){const _0x2a85df=_0x1b8671[_0x2328fd(0x139)]()[0x0],_0x413455=_0x1b8671[_0x2328fd(0x12b)](_0x2a85df);if(!_0x413455)return;this[_0x2328fd(0x124)](_0x413455,!0x0),await this[_0x2328fd(0x208)][_0x2328fd(0x282)](_0x103b32['id'],{'unitId':_0x1b8671[_0x2328fd(0x2a6)](),'subUnitId':_0x2a85df});return;}((_0x605756=_0x1b8671[_0x2328fd(0x178)]())==null?void 0x0:_0x605756['getSheetId']())!==_0xf2d64b&&await this['_commandService'][_0x2328fd(0x282)](_0x103b32['id'],{'unitId':_0x1b8671[_0x2328fd(0x2a6)](),'subUnitId':_0xf2d64b});}};ce=Li([K(0x0,yt),K(0x1,_0x48e521),K(0x2,_0x5e5675),K(0x3,_0x451de1(_0x361d6f)),K(0x4,_0x590a7d(_0x6f5dda))],ce);var Ui=Object[_0x240916(0x1f8)],Mi=(_0x556df4,_0x3ecdc1,_0x4345ac,_0x1ad4a7)=>{const _0x72320e=_0x240916;for(var _0x338144=_0x1ad4a7>0x1?void 0x0:_0x1ad4a7?Ui(_0x3ecdc1,_0x4345ac):_0x3ecdc1,_0x4199ca=_0x556df4[_0x72320e(0xfb)]-0x1,_0x1acf0b;_0x4199ca>=0x0;_0x4199ca--)(_0x1acf0b=_0x556df4[_0x4199ca])&&(_0x338144=_0x1acf0b(_0x338144)||_0x338144);return _0x338144;},rt=(_0x2212d7,_0x242ba5)=>(_0x3ea308,_0x20cc81)=>_0x242ba5(_0x3ea308,_0x20cc81,_0x2212d7);let $e=class extends _0x3122c4{constructor(_0x4b98e4,_0x7e8656){const _0x25cdf7=_0x240916;super(),this[_0x25cdf7(0x2e7)]=_0x4b98e4,this[_0x25cdf7(0x1e7)]=_0x7e8656,this[_0x25cdf7(0x163)]();}[_0x240916(0x163)](){const _0x49b763=_0x240916,_0x292a22=this;this[_0x49b763(0xe0)](this[_0x49b763(0x2e7)][_0x49b763(0xd6)]({'onBeforePasteImage':async _0x4acd35=>{const _0x2f3850=_0x49b763,_0x194a8f=await _0x292a22[_0x2f3850(0x1e7)][_0x2f3850(0x2b2)](_0x4acd35);return _0x194a8f?{'source':_0x194a8f[_0x2f3850(0x234)],'imageSourceType':_0x194a8f[_0x2f3850(0x27a)]}:null;}}));}};$e=Mi([rt(0x0,_0x42c8e5),rt(0x1,_0x152fb2)],$e);const ot=[_0x240916(0x303),_0x240916(0x2eb),_0x240916(0x186),_0x240916(0x1ef),'blue.400',_0x240916(0x23f)];class Ke extends _0xf771d3{constructor(){const _0x565a37=_0x240916;super(...arguments),_(this,_0x565a37(0xf9),new Map()),_(this,_0x565a37(0x104),0x0);}[_0x240916(0x2e6)](_0x57d481){const _0x31274f=_0x240916;if(this['_assignedColors'][_0x31274f(0x298)](_0x57d481))return this['_assignedColors'][_0x31274f(0x1c7)](_0x57d481);const _0x4a7ff5=ot[this[_0x31274f(0x104)]];return this[_0x31274f(0x104)]=(this['_colorIndex']+0x1)%ot[_0x31274f(0xfb)],this[_0x31274f(0xf9)][_0x31274f(0x26a)](_0x57d481,_0x4a7ff5),_0x4a7ff5;}}function $t(_0x547dfb){const _0x3bf0f9=_0x240916;let _0x48aadc='';for(const _0x5663fd of _0x547dfb){const {startOffset:_0x3e9bcf,endOffset:_0x93db27,isActive:_0x539810,rangeType:_0x4bc5f2,segmentId:_0x2a96dc,segmentPage:_0x2563f1}=_0x5663fd;_0x48aadc[_0x3bf0f9(0xfb)]&&(_0x48aadc+=','),_0x48aadc+=_0x3e9bcf+':'+_0x93db27+':'+(_0x539810?'1':'0')+':'+_0x4bc5f2+':'+_0x2a96dc+':'+_0x2563f1;}return _0x48aadc;}function Ai(_0x28000b){const _0x4fde62=_0x240916,_0x3e2bc1=_0x28000b['split'](','),_0x255663=[];for(const _0x2ab7bc of _0x3e2bc1){const [_0x203358,_0x295579,_0x1599e4,_0x12e04f,_0x385541,_0x4a123a]=_0x2ab7bc['split'](':');_0x255663['push']({'startOffset':Number(_0x203358),'endOffset':Number(_0x295579),'collapsed':_0x203358===_0x295579,'isActive':_0x1599e4==='1','rangeType':_0x12e04f===_0x3c1574[_0x4fde62(0x1dd)]?_0x3c1574[_0x4fde62(0x1dd)]:_0x3c1574[_0x4fde62(0x241)],'segmentId':typeof _0x385541==_0x4fde62(0x19c)?String(_0x385541):'','segmentPage':Number(_0x4a123a!=null?_0x4a123a:-0x1)});}return _0x255663[_0x4fde62(0x2d7)](_0x1e0fce=>_0x1e0fce[_0x4fde62(0x173)])||(_0x255663[0x0][_0x4fde62(0x173)]=!0x0),_0x255663;}class ze extends _0x3122c4{constructor(){const _0x3b9ffd=_0x240916;super(...arguments),_(this,'_collabCursorState$',new _0x37599d(null)),_(this,_0x3b9ffd(0x19e),this[_0x3b9ffd(0x2b0)]['asObservable']());}[_0x240916(0x2f3)](_0x2b5243){const _0x2c0048=_0x240916,{unitID:_0x1ff308,memberID:_0x24f0a7,textRanges:_0x2c2f60}=_0x2b5243,_0x544278=$t(_0x2c2f60);if(_0x544278==='')return;const _0x79ff50={'unitID':_0x1ff308,'memberID':_0x24f0a7,'selection':_0x544278};this['_collabCursorState$'][_0x2c0048(0x1cc)](_0x79ff50);}}var Pi=Object[_0x240916(0x1f8)],wi=(_0x7cc092,_0x108c22,_0x117913,_0x5c82b2)=>{for(var _0x4c1c15=_0x5c82b2>0x1?void 0x0:_0x5c82b2?Pi(_0x108c22,_0x117913):_0x108c22,_0x5610d1=_0x7cc092['length']-0x1,_0x14e828;_0x5610d1>=0x0;_0x5610d1--)(_0x14e828=_0x7cc092[_0x5610d1])&&(_0x4c1c15=_0x14e828(_0x4c1c15)||_0x4c1c15);return _0x4c1c15;},A=(_0x5e9e66,_0xdd2f0d)=>(_0x5673e3,_0x2623b0)=>_0xdd2f0d(_0x5673e3,_0x2623b0,_0x5e9e66);function _0xf9f6(){const _0x183878=['PAYMENT_CHANNEL_NOT_SUPPORT','CONFLICT','imageSourceType','_ensureSubject','idSuffix','WECHAT_HAS_BEEN_BOUND','lineTo','_drawTextRange','moveTo','map','executeCommand','ticket','text','CONNECTOR_DATA_TOO_LARGE','stringify','univer-flex\x20univer-items-center','LICENSE_IMPORT_SIZE_EXCEEDED','_textBubble','cursorInfo','_docTransformSelectionsService','debug','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_selfUnitIDs','_removeClearOtherTimer','symbol','_refreshCollabCursors','uni.network.url-service','application/json','getStateCache','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','pushState','url(#$1','has','_lastPointer','YUUMI_TABLE_NOT_FOUND_IN_UNIT','USER_IS_ANONYMOUS','_heartbeatTimer','_cursorInfo$','_scheduleHeartbeat','_checkAndWaitForCalculationPermission','UNIVER_DOC','_status$','column','_saveCache','_labelPosition','?taskId=','getUnitId','sessionStatus$','ENTITLE_INVALID_COUPON_CODE','ENSURE_SNAPSHOT_EXECUTION','_docSkeletonManagerService','getTypeOfUnitDisposed$','currentColor','code','_memberID','AUTHORIZE_CODE_ILLEGAL','_collabCursorState$','_render','saveImage','arc','_anchor','startsWith','MUTATION','getUnit','_clearOtherTimers','collaboration.single-unit.warning','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','fillStyle','PY_RUNTIME_SCRIPT_ERROR','_doCreateSocket','_onRefRangeChange','_localStorageService','releaseFormulaLimitUrl','_docTransformStateCacheService','permission.title','endRow','getAncestorScale','getSheetId','translate(.97)','_hover','tag','engine','getCollabCursors$','_scheduleSaving','126044AdPoiH','_uiPartsService','ERROR_AGAIN','_beforeCloseService','removeParam','_uploadLog','UPDATE_CURSOR','_handleEvent','_docSkeleton','name','runId','some','lineno','onPointerLeave$','wsSessionTicketUrl','key','backgroundColor','RemoveColCommandId','_config','_draw','_showGuardMessage','setAlpha','YUUMI_SUBSCRIPTION_NOT_FOUND','toRgbString','_setupSubUnitSync','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','assignAColorForMemberID','_docClipboardService','forEach','REDEMPTION_CODE_FULLY_REDEEMED','ENTITLE_COUPON_USED_UP','jiqing.500','getParam','getUndoRedoMutationParamsCache','InsertColCommandId','deepClone','type','_saveTaskMap','_onCursorDelete','syncEditingCollabCursor','univerjs-icon\x20univerjs-icon-','SNAPSHOT_INVALID_SNAPSHOT','popstate','_maxFormulaLimit','_notificationService','rgba(255,\x20255,\x20255,\x200.01)','_sheetSkeletonManagerService','getTypeOfUnitAdded$','executionId','START_CALCULATION','ENTITLE_NEED_BILLING_ADDRESS','_entityInit$','_instanceService','REDEMPTION_USER_NOT_ELIGIBLE','startColumn','purple.300','stageInfo','_getSessionTicket','_initStatusComponent','_setFormulaLimitStatus','cursorInfo$','labelPosition','_docStateChangeManagerService','EMAIL_HAS_BEEN_BOUND','sessionTicket','complete','setInterval','LICENSE_DISTRO_REJECTED','with','_handleHeartbeatEvent','filename','_getSheetObject','AWAITING','InsertRangeMoveRightCommandId','endColumn','_collabCursorController','session.connection-failed','none','_cursors','override','_entities','urlChange$','_transformUndoRedoStack','_themeService','_online','restore','beforeCommandExecuted','addClipboardHook','USER_NOT_FOUND','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','Error','MOBILE_VERIFY_CODE_MISMATCH','clearTimeout','requireSession','flatMap','storage','LICENSE_MAX_UNITS_EXCEEDED','disposeWithMe','ENTITLE_REPORT_LIMIT_EXCEED','black','_updateCollabCursors','size','SNAPSHOT_HAS_BEEN_REMOVED','YUUMI_ALL_TABLES_IS_INVALID','_clearPolling','_getMergeRange','entries','event$','_disabled','MoveRangeCommandId','_colorAssignService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','/universer-api/license/formula/limit/done','beginPath','getRenderById','ENTITLE_CAN_NOT_BUY_LOWER_OTP','replaceState','Loading','3612635kxkGxK','_updateSubUnitFromURLParams','ONLINE','getFocusedUnit','_assignedColors','setTimeout','length','_session','SYNCED','#FFF','_initCommandExecutedListener','unshift','getDocRanges','top','m2Prime','_colorIndex','collabStatus.conflict','max','onStarting','createInstance','hide','path','transformMutationsWithChangeset','defineProperty','dirtyRanges','session.collaboration-timeout','href','registerRefRange','subscribe','_getScale','m1Prime','_collaborationController','currentUsage','onPointerMove$','_docSyncEditingCollabCursorService','getValue','min','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','drawWith','loadOfflineData','_initCommandInterceptor','_removeCollabCursors','YUUMI_RATE_OVER_LIMIT','clearInterval','_monkeyPatchLogService','catch','addObject','_updateURLWithCurrentState','INVITE_CODE_ALREADY_BOUND','collab-text-range-','result','_transformHistoryAndStateStack','getColorFromTheme','replace','getSheetBySheetId','Unknown\x20user','enableLocalCache','totalFormulasToCalculate','setItem','_dataLoaderService','current','getRangePointData','updateOfflineData','UniverIcon','M0\x200H16V16H0z','_handleJoinEvent','OffLineIcon','svg','getUnhiddenWorksheets','_setupBeforeClosingHandler','CHANGESET_REVISION_CONFILICT','_collaborationSessionService','on-line-icon_clip0_910_349','shift','_urlService','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','redoState','whenReady','memberID','ENTITLE_DUP_SUBSCRIPTION','_lastResponseTimestamp','collabStatus.synced','OFFLINE','4616250iJrskm','REDEMPTION_INVALID_CODE','from','YUUMI_AI_RUN_FAILED','getOffsetConfig','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','now','activeSheet$','Success','entityInit$','NO_OTHER_CLIENTS_EDITING','getCollabEntity$','ALREADY_EXISTS','getCellMatrix','transformSelections','bottom','_startDocCollabCursor','includes','_cursor','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','APPLY_DUPLICATED','PERMISSION_DENIED','_name','collab-client.tooltip.reconnect','transform','FromArray','exhaustSavingTask','_init','then','_unitOnClients','transformIMECache','_unitStatus','findNodePositionByCharIndex','onLocalMutation','_checkCalculationAvailable','url(#on-line-icon_clip0_910_349)','textRanges','collaboration-client-ui.config','message','2845146ZXnmoF','MOBILE_HAS_BEEN_BOUND','onCommandExecuted','mutations','isActive','_color','location','formula.calculation.unable','clipPath','getActiveSheet','_drawAnchor','div','transformRemoteChangeset','limitInfo','10707529NtcHBt','REDEMPTION_USER_REDEEM_TIMES_EXCEED','collabStatus.syncing','APPLY_REJECT','/universer-api/license/formula/limit/status','onRendered','transformMutation','registerRenderModule','dispose','green.600','OTHER_CLIENTS_EDITING','_cursorShapes','onTransformChange$','history','displayName','_initUserListener','1em','UNDEFINED','subscribeEvent','_messageService','collabStatus.offline','REDEMPTION_CODE_INACTIVE','currentTheme$','removeEventListener','colorChannel1','defs','143075WOZyfe','_scene','/universer-api/license/formula/limit/start','add','Failed','string','_httpService','collabCursorState$','_backgroundColor','getCurrent','RemoveRowCommandId','_revisionService','_startSheetCollabCursor','SOCKET_FAILED','_docTransformIMECacheService','setActiveRange','off-line-icon','triggerDblclick','createSocket','isEditing','...','AWAITING_WITH_PENDING','_releaseCalculationLimit','getVpScrollXYInfoByPosToVp','children','_toggleOffline','_roomMembers$','_startCalculationLimit','unsubscribe','USERS_LEAVE','doc.mutation.rich-text-editing','send','_shapes','2584576yePTuy','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_toggleOnline','EMAIL_VERIFY_CODE_MISMATCH','_drawRectRange','_getSaveTimeout','origin','_transformService','setConfig','_applyCommand','evenodd','[LogService\x20Error]:\x20','_context','startRow','0\x200\x2017\x2016','get','setUndoRedoMutationParamsCache','measureText','focused$','_taskIds','next','getViewport','substring','getMemberID','_initEvent','getCurrentRevOfUnit','post','YUUMI_CONNECTOR_URL_NOT_FOUND','\x20at\x20','FETCH_MISS','_collabSessionService','_univerInstanceService','params','APPLY_REVISION_CONFILICT','_initDependencies','actions','delete','TEXT','eventID','SOCKET_FAILED_RETRY','push','pipe','getUnitStatus$','_hideTimer','body','_registerRenderDependencies','REDEMPTION_CODE_HAS_BEEN_CREATED','_imageIoService','/universer-api/frontend/logs','row','YUUMI_UNABLE_LOAD_URL','collabStatus.notCollab','_pollingInterval','getCellPositionByOffset','getSkeleton','red.300','_handleHover','parse','_id','CLOSE_ROOM','save','init','setShapeProps','session.will-retry','getOwnPropertyDescriptor','isArray','values','onPointerEnter$','unitId','DATA_SOURCE_TOO_LARGE','_handleLeaveEvent','_transformPreviousActiveRange','transformStateCache','_initResize','functionsExecutedState','YUUMI_URL_COL_OUT_OF_RANGE','url(#off-line-icon_clip0_910_343)','DeleteRangeMoveUpCommandId','APPLY_NON_SEQUENTIAL_REVISION','ENTITLE_COUPON_EXPIRED','_commandService','YUUMI_NO_CUBOID_FOR_QUESTION','error','white','APPLY_PERMISSION_DENIED','disposeUnit','parseInt','_initUnhandledRejectionListener','newValue','searchParams','_renderManagerService','data','getMember','unhandledrejection','addEventListener','runOnServer','subunit','_onCursorUpdate','_cachedData','CURRENT_STATUS_CANNOT_OPERATE','roomMembers','random','_initStatusListener','collaboration.closeRoom','range','dispose$','xlink:href','width','fill','LICENSE_EXPORT_SIZE_EXCEEDED','_hasFormulaInDirtyRanges','_syncEditingCollabCursorService','_anchorDot','round','_initEntityListener','all','unitID','LOGIN_TOKEN_PROCESSING_FAILED','onMouseMove','HEADER_MENU','INVALID_INVITE_CODE','enableFrontendLog','INVALID_ARGUMENT','_registerDependencies','source','INVITE_CODE_REQUIRED','maxFormulaLimit','USER_NOT_INVITED_CODE','_range','_localeService','formula.calculation.started','selections','NOT_COLLAB','assign','_refRangeService','yellow.400','REDEMPTION_CODE_NOT_STARTED','RECT','NOT_FOUND','INTERNAL_ERROR','attrs','_memberService','Warning','setStateCache','search','mask','_scheduleClearOtherTimer','fillText','asObservable','_hovered','UNAUTHENTICATED','_send','color','COMPLETION_FINISHED','OnLineIcon','selection','undoState','TOO_MANY_REQUESTS','transformByState','toString','_collaborationUIEventService','_initWindowErrorListener','[Unhandled\x20Rejection]:\x20','saveTaskMap','UNRECOGNIZED','PENDING','ENTITLE_CHAT_LIMIT_EXCEED','http://www.w3.org/2000/svg','_eventUnsubscribe','on-line-icon','unit','_configService','INVITE_CODE_HAS_BEEN_UES','_getAnchorBounding','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','show','subUnitId','ENTITLE_INSUFFICIENT_QUOTA','set','[CollaborationDataLoaderController]','ranges','_currentUsage','_injector','_logService','LOGIN_FAILED','getConfig','_updateLocalCursor','stage','font','_createSocketURL','UNIVER_SHEET','setParam'];_0xf9f6=function(){return _0x183878;};return _0xf9f6();}const yi=0x12c,$i=0x64;let xe=class extends _0x3122c4{constructor(_0x1efaa2,_0x10bb26,_0x325e5e,_0x2b11f3,_0x426809,_0xfce1f7,_0x4921f2,_0x330c02,_0x1e5e6d){const _0x10e326=_0x240916;super(),_(this,'_online',!0x1),_(this,_0x10e326(0x163),!0x1),_(this,_0x10e326(0x29d),new _0x37599d(new Map())),_(this,_0x10e326(0x308),this[_0x10e326(0x29d)][_0x10e326(0x24c)]()),_(this,_0x10e326(0x1b1),new _0x37599d([])),_(this,'roomMembers$',this[_0x10e326(0x1b1)][_0x10e326(0x1e1)](_0x18bb22(yi))),_(this,_0x10e326(0x272),_0x17e35b(_0x21d156=>{const _0x90fde4=_0x10e326,_0x24db4d={'eventID':_0x761ce2[_0x90fde4(0x2d2)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x90fde4(0x1cf)](),'selection':$t(_0x21d156)}};this[_0x90fde4(0xfc)][_0x90fde4(0x1b6)](_0x24db4d,this[_0x90fde4(0x22c)]);},$i)),(this['unitID']=_0x1efaa2,this['_session']=_0x10bb26,this[_0x10e326(0x26e)]=_0x325e5e,this[_0x10e326(0xed)]=_0x2b11f3,this[_0x10e326(0x245)]=_0x426809,this['_syncEditingCollabCursorService']=_0xfce1f7,this[_0x10e326(0x1bf)]=_0x4921f2,this['_univerInstanceService']=_0x330c02,this[_0x10e326(0x208)]=_0x1e5e6d);}get['cursorInfo'](){const _0x5ef626=_0x240916;return this[_0x5ef626(0x29d)]['getValue']();}get[_0x240916(0x21c)](){const _0x40f811=_0x240916;return this[_0x40f811(0x1b1)][_0x40f811(0x118)]();}['dispose'](){const _0x37c79f=_0x240916;super[_0x37c79f(0x185)](),this[_0x37c79f(0x29d)]['next'](new Map()),this['_cursorInfo$'][_0x37c79f(0x30d)](),this[_0x37c79f(0x1b1)]['next']([]),this[_0x37c79f(0x1b1)][_0x37c79f(0x30d)]();}[_0x240916(0x1f5)](){const _0x391383=_0x240916;this[_0x391383(0x163)]||(this[_0x391383(0x163)]=!0x0,this[_0x391383(0xfc)][_0x391383(0x2a7)][_0x391383(0x1e1)](_0xb0eea8(this['dispose$']))[_0x391383(0x111)](_0x2c3e44=>{const _0x568dcb=_0x391383;_0x2c3e44===_0x83b48e[_0x568dcb(0xf7)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x391383(0xfc)]['event$'][_0x391383(0x1e1)](_0xb0eea8(this['dispose$']))['subscribe'](_0x2a7a4a=>{const _0x42457e=_0x391383,_0xa0b97c=_0x2a7a4a[_0x42457e(0x1de)];_0xa0b97c===_0x761ce2[_0x42457e(0x2d2)]&&this[_0x42457e(0x219)](_0x2a7a4a),_0xa0b97c===_0x761ce2[_0x42457e(0x1b4)]&&this[_0x42457e(0x2f2)](_0x2a7a4a);}),this[_0x391383(0xe0)](this[_0x391383(0x208)][_0x391383(0x171)](_0x2307d3=>{const _0x3ea790=_0x391383,_0x339d0=_0x2307d3[_0x3ea790(0x1d8)];_0x339d0!=null&&this['_online']&&_0x2307d3['id']===_0x43bf97['id']&&_0x339d0[_0x3ea790(0x1fc)]===this[_0x3ea790(0x22c)]&&_0x339d0[_0x3ea790(0x1aa)]===!0x1&&_0x339d0[_0x3ea790(0x26c)]['length']>0x0&&this[_0x3ea790(0x272)](_0x339d0['ranges']);})),this[_0x391383(0x227)][_0x391383(0x19e)][_0x391383(0x1e1)](_0xb0eea8(this[_0x391383(0x221)]))[_0x391383(0x111)](_0x198d77=>{const _0x2c1486=_0x391383;if((_0x198d77==null?void 0x0:_0x198d77['unitID'])!==this[_0x2c1486(0x22c)])return;const _0x417152={'eventID':_0x761ce2[_0x2c1486(0x2d2)],'data':_0x198d77};this['_onCursorUpdate'](_0x417152);}),this['disposeWithMe'](this[_0x391383(0x208)][_0x391383(0x171)](_0x260aca=>{const _0x22a09e=_0x391383;if(_0x260aca[_0x22a09e(0x1d8)]==null)return;const _0x8b8665=_0x260aca['params'];if(_0x260aca['id']!==_0x87d6e4['id']||_0x8b8665[_0x22a09e(0x1fc)]!==this[_0x22a09e(0x22c)])return;const _0x52618f={'id':_0x22a09e(0x1b5),'params':_0x8b8665},_0x328f01=this[_0x22a09e(0x28a)];for(const [_0x4fa251,_0x3ef16b]of _0x328f01){const _0x5421fe={'id':_0x22a09e(0x1b5),'params':{'unitId':this[_0x22a09e(0x22c)],'actions':null,'textRanges':_0x3ef16b[_0x22a09e(0x26c)]}},_0x205a6c=this['_transformService'][_0x22a09e(0x183)](_0x52618f,_0x5421fe,!0x1);if(_0x699f6f(_0x205a6c))throw _0x205a6c[_0x22a09e(0x20a)];_0x328f01[_0x22a09e(0x26a)](_0x4fa251,{..._0x3ef16b,'ranges':_0x205a6c[_0x22a09e(0x103)][_0x22a09e(0x1d8)][_0x22a09e(0x16c)]});}queueMicrotask(()=>{const _0x4745f4=_0x22a09e;this[_0x4745f4(0x29d)][_0x4745f4(0x1cc)](_0x328f01);});})));}[_0x240916(0x219)](_0x3de89a){const _0x1fbdd2=_0x240916;var _0x25e19d,_0x5f0f79;const {memberID:_0x45e83d,selection:_0x55ca5a}=_0x3de89a['data'],_0x2027b8=Ai(_0x55ca5a),_0x55b120=(_0x5f0f79=(_0x25e19d=this[_0x1fbdd2(0x245)][_0x1fbdd2(0x214)](this['unitID'],_0x45e83d))==null?void 0x0:_0x25e19d[_0x1fbdd2(0x2d5)])!=null?_0x5f0f79:_0x1fbdd2(0x12c),_0x42a13d={'color':this[_0x1fbdd2(0xed)][_0x1fbdd2(0x2e6)](_0x45e83d),'name':_0x55b120,'ranges':_0x2027b8},_0x906f52=this[_0x1fbdd2(0x28a)];_0x906f52['set'](_0x45e83d,_0x42a13d),this[_0x1fbdd2(0x29d)][_0x1fbdd2(0x1cc)](_0x906f52);}[_0x240916(0x2f2)](_0x51367b){const _0x12cc3b=_0x240916,{memberID:_0x231da4}=_0x51367b[_0x12cc3b(0x213)],_0x37dcd0=this[_0x12cc3b(0x28a)];_0x37dcd0[_0x12cc3b(0x1dc)](_0x231da4),this[_0x12cc3b(0x29d)][_0x12cc3b(0x1cc)](_0x37dcd0);}[_0x240916(0x1ba)](){const _0x1a66cf=_0x240916;var _0x3a8260;if(this['_online']=!0x0,((_0x3a8260=this[_0x1a66cf(0x1d7)][_0x1a66cf(0xf8)]())==null?void 0x0:_0x3a8260['getUnitId']())!==this[_0x1a66cf(0x22c)])return;const _0x42d303=this[_0x1a66cf(0x26e)][_0x1a66cf(0x1c7)](_0x5f3a65)[_0x1a66cf(0x101)]();Array[_0x1a66cf(0x1f9)](_0x42d303)&&_0x42d303[_0x1a66cf(0xfb)]>0x0&&this[_0x1a66cf(0x272)](_0x42d303);}[_0x240916(0x1b0)](){this['_online']=!0x1;}};xe=wi([A(0x2,_0x451de1(_0x30dac5)),A(0x3,_0x451de1(Ke)),A(0x4,_0x451de1(_0x11723a)),A(0x5,_0x451de1(ze)),A(0x6,_0x10d68c),A(0x7,_0x81870d),A(0x8,_0x5e5675)],xe);var xi=Object['getOwnPropertyDescriptor'],Bi=(_0x1a7520,_0xa7a775,_0x4f4331,_0x25f438)=>{const _0x20f221=_0x240916;for(var _0x51fee=_0x25f438>0x1?void 0x0:_0x25f438?xi(_0xa7a775,_0x4f4331):_0xa7a775,_0x55d6f7=_0x1a7520[_0x20f221(0xfb)]-0x1,_0x1bb836;_0x55d6f7>=0x0;_0x55d6f7--)(_0x1bb836=_0x1a7520[_0x55d6f7])&&(_0x51fee=_0x1bb836(_0x51fee)||_0x51fee);return _0x51fee;},B=(_0x2642a9,_0x5551c9)=>(_0x3d992d,_0x205527)=>_0x5551c9(_0x3d992d,_0x205527,_0x2642a9);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x462ad1=[],_0x1a7b8e=!0x1;return _0x501418=>{const _0x5a474c=_0x9124;_0x462ad1[_0x5a474c(0x1e0)](_0x501418),_0x1a7b8e||(_0x1a7b8e=!0x0,setTimeout(()=>{_0x462ad1['forEach'](_0x3f8117=>_0x3f8117()),_0x462ad1=[],_0x1a7b8e=!0x1;}));};};let Be=class extends _0x3122c4{constructor(_0x43a487,_0x47d308,_0x5ceabd,_0x117fcf,_0x4b6a2d,_0x11a3aa,_0x4e23ae,_0x93ae84){const _0x1b05cd=_0x240916;super(),_(this,_0x1b05cd(0xd3),!0x1),_(this,_0x1b05cd(0x163),!0x1),_(this,_0x1b05cd(0x29d),new _0x37599d(new Map())),_(this,_0x1b05cd(0x308),this['_cursorInfo$'][_0x1b05cd(0x24c)]()),_(this,_0x1b05cd(0x1b1),new _0x37599d([])),_(this,'roomMembers$',this['_roomMembers$']['pipe'](_0x18bb22(Fi))),_(this,_0x1b05cd(0x272),_0x17e35b((_0x442360,_0x589a82)=>{const _0x4824d9=_0x1b05cd,_0x8c7e3a={'eventID':_0x761ce2['UPDATE_CURSOR'],'data':{'unitID':this[_0x4824d9(0x22c)],'memberID':this[_0x4824d9(0xfc)][_0x4824d9(0x1cf)](),'selection':_0x47dbec(_0x442360,_0x589a82[_0x4824d9(0x220)])}};this[_0x4824d9(0xfc)][_0x4824d9(0x1b6)](_0x8c7e3a,this['unitID']);},ki)),(this[_0x1b05cd(0x22c)]=_0x43a487,this[_0x1b05cd(0xfc)]=_0x47d308,this[_0x1b05cd(0x26e)]=_0x5ceabd,this[_0x1b05cd(0xed)]=_0x117fcf,this[_0x1b05cd(0x245)]=_0x4b6a2d,this[_0x1b05cd(0x1d7)]=_0x11a3aa,this[_0x1b05cd(0x208)]=_0x4e23ae,this[_0x1b05cd(0x23e)]=_0x93ae84);}get['cursorInfo'](){const _0x451c0a=_0x240916;return this[_0x451c0a(0x29d)]['getValue']();}get['roomMembers'](){const _0x14ee5f=_0x240916;return this[_0x14ee5f(0x1b1)][_0x14ee5f(0x118)]();}[_0x240916(0x185)](){const _0x491a83=_0x240916;super['dispose'](),this[_0x491a83(0x29d)][_0x491a83(0x1cc)](new Map()),this[_0x491a83(0x29d)][_0x491a83(0x30d)](),this['_roomMembers$']['next']([]),this[_0x491a83(0x1b1)][_0x491a83(0x30d)]();}[_0x240916(0x1f5)](){const _0x5bd4d5=_0x240916;this[_0x5bd4d5(0x163)]||(this['_init']=!0x0,this[_0x5bd4d5(0xfc)][_0x5bd4d5(0x2a7)][_0x5bd4d5(0x1e1)](_0xb0eea8(this[_0x5bd4d5(0x221)]))[_0x5bd4d5(0x111)](_0x1e10db=>{const _0x5a2dcd=_0x5bd4d5;_0x1e10db===_0x83b48e['ONLINE']?this[_0x5a2dcd(0x1ba)]():this[_0x5a2dcd(0x1b0)]();}),this[_0x5bd4d5(0xfc)]['event$'][_0x5bd4d5(0x1e1)](_0xb0eea8(this[_0x5bd4d5(0x221)]))[_0x5bd4d5(0x111)](_0x30dbc6=>{const _0x3ecc30=_0x5bd4d5,_0x3c2991=_0x30dbc6[_0x3ecc30(0x1de)];_0x3c2991===_0x761ce2[_0x3ecc30(0x2d2)]&&this[_0x3ecc30(0x219)](_0x30dbc6),_0x3c2991===_0x761ce2[_0x3ecc30(0x1b4)]&&this[_0x3ecc30(0x2f2)](_0x30dbc6);}),this[_0x5bd4d5(0x2be)](),this[_0x5bd4d5(0xe0)](this[_0x5bd4d5(0x208)][_0x5bd4d5(0x171)](_0xd7d660=>{const _0x2ade57=_0x5bd4d5;if(this[_0x2ade57(0xd3)]&&_0xd7d660['id']===_0x12ebb5['id']&&_0xd7d660['params'][_0x2ade57(0x1fc)]===this[_0x2ade57(0x22c)]){const _0x4f0e4c=_0xd7d660['params'];this[_0x2ade57(0x272)](_0x4f0e4c[_0x2ade57(0x268)],_0x4f0e4c[_0x2ade57(0x23b)][0x0]);}})));}['_onCursorUpdate'](_0x55879f){const _0x2a18e7=_0x240916;var _0xa283bb,_0xd9b079;const {memberID:_0xc0a7b7,selection:_0x308f25}=_0x55879f[_0x2a18e7(0x213)],{sheetName:_0x10b014,range:_0x5f0330}=_0x1ec9a4(_0x308f25),_0x4ff4a8={'name':(_0xd9b079=(_0xa283bb=this[_0x2a18e7(0x245)][_0x2a18e7(0x214)](this['unitID'],_0xc0a7b7))==null?void 0x0:_0xa283bb[_0x2a18e7(0x2d5)])!=null?_0xd9b079:'Unknown\x20user','range':this[_0x2a18e7(0xe8)](_0x10b014,_0x5f0330),'sheetID':_0x10b014,'color':this[_0x2a18e7(0xed)][_0x2a18e7(0x2e6)](_0xc0a7b7),'selection':_0x308f25},_0x415345=this[_0x2a18e7(0x28a)];_0x415345[_0x2a18e7(0x26a)](_0xc0a7b7,_0x4ff4a8),this[_0x2a18e7(0x29d)]['next'](_0x415345);}[_0x240916(0x2f2)](_0x4589d1){const _0x20fd33=_0x240916,{memberID:_0x91c7dd}=_0x4589d1['data'],_0x5b1d18=this[_0x20fd33(0x28a)];_0x5b1d18[_0x20fd33(0x1dc)](_0x91c7dd),this['_cursorInfo$'][_0x20fd33(0x1cc)](_0x5b1d18);}[_0x240916(0xe8)](_0x131ad2,_0x561f4c){const _0x1a6760=_0x240916;var _0x426d5b,_0x772c7c;const _0x3fd833=(_0x772c7c=(_0x426d5b=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x1a6760(0x22c)]))==null?void 0x0:_0x426d5b[_0x1a6760(0x12b)](_0x131ad2))==null?void 0x0:_0x772c7c['getMergeData']();return(_0x3fd833==null?void 0x0:_0x3fd833['find'](_0x36cbc2=>_0x49f784['contains'](_0x36cbc2,_0x561f4c)))||_0x561f4c;}[_0x240916(0x2be)](){const _0xec64db=_0x240916,_0x146283=new _0x113270(),_0x59b2f7=Hi(),_0x4f4ac0=()=>{const _0x48ae34=_0x9124;_0x146283['dispose']();const _0x2e8395=(_0x4a11b8,_0xf8af1e,_0x6a1e90,_0x45e915)=>{const _0x49ddb4=_0x9124;let _0x5a3c68=[];switch(_0x4a11b8['id']){case _0xab8473['DeleteRangeMoveLeftCommandId']:{_0x5a3c68=_0x5940a0(_0x4a11b8,_0x45e915);break;}case _0xab8473[_0x49ddb4(0x205)]:{_0x5a3c68=_0x1d554c(_0x4a11b8,_0x45e915);break;}case _0xab8473[_0x49ddb4(0x2ee)]:{_0x5a3c68=_0x17c1bf(_0x4a11b8,_0x45e915);break;}case _0xab8473['InsertRangeMoveDownCommandId']:{_0x5a3c68=_0x3fc51e(_0x4a11b8,_0x45e915);break;}case _0xab8473[_0x49ddb4(0x315)]:{_0x5a3c68=_0x20f389(_0x4a11b8,_0x45e915);break;}case _0xab8473['InsertRowCommandId']:{_0x5a3c68=_0x209d65(_0x4a11b8,_0x45e915);break;}case _0xab8473[_0x49ddb4(0xec)]:{_0x5a3c68=_0x133eca(_0x4a11b8,_0x45e915);break;}case _0xab8473[_0x49ddb4(0x2dd)]:{_0x5a3c68=_0x4b51ea(_0x4a11b8,_0x45e915);break;}case _0xab8473[_0x49ddb4(0x1a1)]:{_0x5a3c68=_0x3ad6e3(_0x4a11b8,_0x45e915);break;}}const _0x351284=_0x4fc651(_0x5a3c68,_0x45e915),_0x19e380=this[_0x49ddb4(0x28a)][_0x49ddb4(0x1c7)](_0xf8af1e);if(_0x19e380&&_0x351284){const _0x54ca2a={..._0x19e380,'range':_0x351284};this['cursorInfo'][_0x49ddb4(0x26a)](_0xf8af1e,_0x54ca2a),_0x59b2f7(()=>{const _0x4f3a94=_0x49ddb4,_0x164114=this[_0x4f3a94(0x23e)][_0x4f3a94(0x110)](_0x351284,_0xad40eb=>(_0x164114[_0x4f3a94(0x185)](),_0x2e8395(_0xad40eb,_0xf8af1e,_0x6a1e90,_0x351284)));_0x146283[_0x4f3a94(0x19a)](_0x164114);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x48ae34(0x2e8)]((_0x184739,_0x2a6914)=>{const _0x353a01=_0x48ae34,{range:_0x499966,sheetID:_0x575cf6}=_0x184739,_0x26d3fb=this['_refRangeService'][_0x353a01(0x110)](_0x499966,_0x2d12d1=>(_0x26d3fb[_0x353a01(0x185)](),_0x2e8395(_0x2d12d1,_0x2a6914,_0x575cf6,_0x499966)));_0x146283[_0x353a01(0x19a)](_0x26d3fb);});};this[_0xec64db(0xe0)](_0x13afa3(this[_0xec64db(0x29d)]['subscribe'](()=>{_0x4f4ac0();})));}[_0x240916(0x1ba)](){const _0x483673=_0x240916;var _0x3a4a8b,_0x8bb734;if(this[_0x483673(0xd3)]=!0x0,((_0x3a4a8b=this['_univerInstanceService'][_0x483673(0xf8)]())==null?void 0x0:_0x3a4a8b[_0x483673(0x2a6)]())!==this[_0x483673(0x22c)])return;const _0x332edc=(_0x8bb734=this[_0x483673(0x26e)][_0x483673(0x1c7)](_0x368647)['getCurrentSelections']())==null?void 0x0:_0x8bb734[0x0],_0x2841dc=this[_0x483673(0x1d7)]['getCurrentUnitForType'](_0x2e1b84[_0x483673(0x276)])[_0x483673(0x178)]();_0x332edc&&_0x2841dc&&this[_0x483673(0x272)](_0x2841dc['getSheetId'](),_0x332edc);}[_0x240916(0x1b0)](){const _0x1c07ef=_0x240916;this[_0x1c07ef(0xd3)]=!0x1;}};Be=Bi([B(0x2,_0x451de1(_0x30dac5)),B(0x3,_0x451de1(Ke)),B(0x4,_0x451de1(_0x11723a)),B(0x5,_0x81870d),B(0x6,_0x5e5675),B(0x7,_0x451de1(_0x44115d))],Be);var Yi=Object[_0x240916(0x1f8)],Wi=(_0x5ce3a9,_0x577de3,_0x254a40,_0x15b56f)=>{const _0x5844b2=_0x240916;for(var _0xee980d=_0x15b56f>0x1?void 0x0:_0x15b56f?Yi(_0x577de3,_0x254a40):_0x577de3,_0x2f9109=_0x5ce3a9[_0x5844b2(0xfb)]-0x1,_0x203099;_0x2f9109>=0x0;_0x2f9109--)(_0x203099=_0x5ce3a9[_0x2f9109])&&(_0xee980d=_0x203099(_0xee980d)||_0xee980d);return _0xee980d;},Ce=(_0x523b4c,_0x2902ea)=>(_0x5a32eb,_0x5a6ff5)=>_0x2902ea(_0x5a32eb,_0x5a6ff5,_0x523b4c);let H=class extends _0x3122c4{constructor(_0x5a32cf,_0x32ff47,_0x1d062c){const _0x415a72=_0x240916;super(),_(this,_0x415a72(0xcf),new Map()),_(this,_0x415a72(0x2ff),new _0x16d6c4()),(this[_0x415a72(0x1d7)]=_0x5a32cf,this[_0x415a72(0x26e)]=_0x32ff47,this[_0x415a72(0x1d6)]=_0x1d062c,this[_0x415a72(0x163)]());}[_0x240916(0x185)](){const _0x2be10f=_0x240916;super['dispose'](),this['_entityInit$'][_0x2be10f(0x30d)](),this[_0x2be10f(0xcf)][_0x2be10f(0x2e8)](_0x4b0486=>_0x4b0486[_0x2be10f(0x185)]());}[_0x240916(0x2ca)](_0x5eff66){const _0x2c5f43=_0x240916;return this[_0x2c5f43(0xcf)][_0x2c5f43(0x298)](_0x5eff66)?this[_0x2c5f43(0xcf)][_0x2c5f43(0x1c7)](_0x5eff66)[_0x2c5f43(0x308)]:this['_entityInit$'][_0x2c5f43(0x1e1)](_0xa9cd8e(_0x2af836=>_0x2af836[_0x2c5f43(0x22c)]===_0x5eff66),_0x38976a(_0x20de04=>_0x20de04[_0x2c5f43(0x308)]));}[_0x240916(0x163)](){const _0x158362=_0x240916;this[_0x158362(0x1d7)][_0x158362(0x2fb)](_0x2e1b84[_0x158362(0x276)])[_0x158362(0x1e1)](_0xb0eea8(this[_0x158362(0x221)]))['subscribe'](async _0x59cc7d=>{const _0x43c730=_0x158362,_0x19cc9b=_0x59cc7d['getUnitId'](),_0x454588=await this[_0x43c730(0x1a3)](_0x19cc9b);this[_0x43c730(0x2ff)][_0x43c730(0x1cc)](_0x454588),this[_0x43c730(0xcf)][_0x43c730(0x26a)](_0x19cc9b,_0x454588);}),this[_0x158362(0x1d7)][_0x158362(0x2fb)](_0x2e1b84[_0x158362(0x2a0)])[_0x158362(0x1e1)](_0xb0eea8(this['dispose$']))['pipe'](_0xa9cd8e(_0x563204=>!_0x563204[_0x158362(0x2a6)]()[_0x158362(0x2b5)]('__')))['subscribe'](async _0x1d944a=>{const _0x3da00c=_0x158362,_0x3ffcde=_0x1d944a[_0x3da00c(0x2a6)](),_0x1ce568=await this['_startDocCollabCursor'](_0x3ffcde);this[_0x3da00c(0x2ff)][_0x3da00c(0x1cc)](_0x1ce568),this['_entities'][_0x3da00c(0x26a)](_0x3ffcde,_0x1ce568);}),_0x4bce0e(this[_0x158362(0x1d7)][_0x158362(0x2ab)](_0x2e1b84[_0x158362(0x2a0)]),this[_0x158362(0x1d7)][_0x158362(0x2ab)](_0x2e1b84[_0x158362(0x276)]))['pipe'](_0xb0eea8(this[_0x158362(0x221)]))[_0x158362(0x111)](_0x55fde1=>{const _0x5c4c33=_0x158362,_0x3356fc=_0x55fde1[_0x5c4c33(0x2a6)](),_0x1b762d=this['_entities']['get'](_0x3356fc);_0x1b762d&&(_0x1b762d['dispose'](),this[_0x5c4c33(0xcf)][_0x5c4c33(0x1dc)](_0x3356fc));});}async[_0x240916(0x1a3)](_0x200023){const _0x3d1575=_0x240916,_0x356445=await this[_0x3d1575(0x1d6)][_0x3d1575(0xdc)](_0x200023),_0x47a165=this[_0x3d1575(0x26e)][_0x3d1575(0x108)](Be,_0x200023,_0x356445);return _0x47a165[_0x3d1575(0x1f5)](),_0x47a165;}async[_0x240916(0x158)](_0x2fc74b){const _0x5793d8=_0x240916,_0x3e9e25=await this['_collabSessionService'][_0x5793d8(0xdc)](_0x2fc74b),_0x55a0a9=this[_0x5793d8(0x26e)][_0x5793d8(0x108)](xe,_0x2fc74b,_0x3e9e25);return _0x55a0a9[_0x5793d8(0x1f5)](),_0x55a0a9;}};H=Wi([Ce(0x0,_0x81870d),Ce(0x1,_0x451de1(_0x30dac5)),Ce(0x2,_0x451de1(_0x27d44b))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x1407c4,_0x22cad5){const _0x2fc4ac=_0x240916;let {radius:_0x4cc706,width:_0x1983a4,height:_0x1829bd}=_0x22cad5;_0x4cc706=_0x4cc706!=null?_0x4cc706:0x0,_0x1983a4=_0x1983a4!=null?_0x1983a4:0x1e,_0x1829bd=_0x1829bd!=null?_0x1829bd:0x1e;let _0x290748=0x0,_0x439ec5=0x0,_0x25a6c0=0x0;_0x290748=_0x439ec5=_0x25a6c0=Math['min'](_0x4cc706,_0x1983a4/0x2,_0x1829bd/0x2),_0x1407c4[_0x2fc4ac(0xf0)](),_0x1407c4[_0x2fc4ac(0x280)](_0x290748,0x0),_0x1407c4[_0x2fc4ac(0x27e)](_0x1983a4-_0x439ec5,0x0),_0x1407c4[_0x2fc4ac(0x2b3)](_0x1983a4-_0x439ec5,_0x439ec5,_0x439ec5,Math['PI']*0x3/0x2,0x0,!0x1),_0x1407c4['lineTo'](_0x1983a4,_0x1829bd-_0x25a6c0),_0x1407c4[_0x2fc4ac(0x2b3)](_0x1983a4-_0x25a6c0,_0x1829bd-_0x25a6c0,_0x25a6c0,0x0,Math['PI']/0x2,!0x1),_0x1407c4['lineTo'](0x0,_0x1829bd),_0x1407c4[_0x2fc4ac(0x27e)](0x0,_0x290748),_0x1407c4[_0x2fc4ac(0x2b3)](_0x290748,_0x290748,_0x290748,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1407c4['closePath'](),_0x22cad5['fill']&&(_0x1407c4['save'](),_0x1407c4[_0x2fc4ac(0x2bb)]=_0x22cad5[_0x2fc4ac(0x224)],_0x22cad5['fillRule']==='evenodd'?_0x1407c4[_0x2fc4ac(0x224)](_0x2fc4ac(0x1c2)):_0x1407c4['fill'](),_0x1407c4['restore']());}class ve extends _0xa92bc{constructor(_0x56b328,_0x41f904){const _0x34922e=_0x240916;super(_0x56b328,_0x41f904),_(this,_0x34922e(0x250)),_(this,_0x34922e(0x284)),(this[_0x34922e(0x250)]=_0x41f904==null?void 0x0:_0x41f904['color'],this[_0x34922e(0x284)]=_0x41f904==null?void 0x0:_0x41f904['text']);}static[_0x240916(0x11b)](_0x36647a,_0x26513e){const _0x473dd2=_0x240916,{text:_0x1e7275,color:_0x9bd810}=_0x26513e;_0x36647a[_0x473dd2(0x1f4)](),_0x36647a[_0x473dd2(0x274)]=_0x473dd2(0x295);const _0x59d75b=_0x36647a[_0x473dd2(0x1c9)](_0x1e7275)[_0x473dd2(0x223)],_0x548824=Math[_0x473dd2(0x119)](_0x59d75b+0x2*Re,at);ji(_0x36647a,{'height':Q,'radius':0x4,'width':_0x548824,'fill':_0x9bd810}),_0x36647a[_0x473dd2(0x2bb)]=_0x473dd2(0xfe);const _0x38bffa=Re,_0x13f69b=Q-Vi,_0x58e1cf=at-0x2*Re;if(_0x59d75b>_0x58e1cf){let _0x331a39='',_0x354bde=0x0;for(const _0x40a2de of _0x1e7275){const _0x366066=_0x36647a[_0x473dd2(0x1c9)](_0x40a2de)[_0x473dd2(0x223)];if(_0x354bde+_0x366066<=_0x58e1cf-_0x36647a[_0x473dd2(0x1c9)]('...')[_0x473dd2(0x223)])_0x331a39+=_0x40a2de,_0x354bde+=_0x366066;else{_0x331a39+=_0x473dd2(0x1ab);break;}}_0x36647a[_0x473dd2(0x24b)](_0x331a39,_0x38bffa,_0x13f69b);}else _0x36647a[_0x473dd2(0x24b)](_0x1e7275,_0x38bffa,_0x13f69b);_0x36647a[_0x473dd2(0xd4)]();}[_0x240916(0x2df)](_0xf77f03){const _0x4728a7=_0x240916;ve[_0x4728a7(0x11b)](_0xf77f03,this);}}const De='collab-text-anchor-',Xi=_0x240916(0x126),Gi='collab-rect-range-',z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x240916(0x2f9);class ct{constructor(_0x1adc6e,_0x41598c,_0x5b2eb4,_0x20a1c9){const _0x1be779=_0x240916;_(this,'_shapes',[]),_(this,_0x1be779(0x2b4),null),_(this,_0x1be779(0x289),null),_(this,'_anchorDot',null),_(this,_0x1be779(0x1e3),null),_(this,_0x1be779(0x260),null),(this['_cursor']=_0x1adc6e,this['_scene']=_0x41598c,this[_0x1be779(0x2d4)]=_0x5b2eb4,this['_document']=_0x20a1c9,this[_0x1be779(0x2b1)]());}set[_0x240916(0x2c7)](_0x2d2ad1){const _0x23a8d7=_0x240916;_0x2d2ad1?(this[_0x23a8d7(0x228)]&&this['_anchorDot'][_0x23a8d7(0x109)](),this[_0x23a8d7(0x289)]&&this[_0x23a8d7(0x289)]['show']()):(this[_0x23a8d7(0x228)]&&this[_0x23a8d7(0x228)]['show'](),this[_0x23a8d7(0x289)]&&this[_0x23a8d7(0x289)][_0x23a8d7(0x109)]());}[_0x240916(0x185)](){const _0x4d5b17=_0x240916;for(const _0x43c05a of this[_0x4d5b17(0x1b7)])_0x43c05a[_0x4d5b17(0x185)]();this[_0x4d5b17(0x289)]&&this[_0x4d5b17(0x289)][_0x4d5b17(0x185)](),this[_0x4d5b17(0x228)]&&this[_0x4d5b17(0x228)]['dispose'](),this['_anchor']&&this[_0x4d5b17(0x2b4)][_0x4d5b17(0x185)](),this[_0x4d5b17(0x260)]&&this[_0x4d5b17(0x260)]();}[_0x240916(0x2b1)](){const _0x5c1a62=_0x240916;var _0x9fec7;const {_docSkeleton:_0xb9c9b7,_document:_0x1e9064}=this,{color:_0xbba92f,name:_0x35e066,ranges:_0x4c4e68}=this[_0x5c1a62(0x15a)],_0xc42e99=_0x1e9064[_0x5c1a62(0x14c)](),{docsLeft:_0x37ab5b,docsTop:_0x34d10f}=_0xc42e99,_0x4404eb=new _0x150b12(_0xc42e99,_0xb9c9b7);for(const {startOffset:_0x583238,endOffset:_0x55b73c,rangeType:_0x50aac1,segmentId:_0x1a5200,segmentPage:_0x8a29f5,collapsed:_0x1dcb92,isActive:_0x2f13ee}of _0x4c4e68){const _0x26d6c5=_0xb9c9b7[_0x5c1a62(0x168)](_0x583238,!0x0,_0x1a5200,_0x8a29f5);let _0x13f582=_0xb9c9b7[_0x5c1a62(0x168)](_0x55b73c,!0x0,_0x1a5200,_0x8a29f5);if(_0x13f582==null&&(_0x13f582=_0xb9c9b7[_0x5c1a62(0x168)](_0x55b73c-0x1,!0x1,_0x1a5200,_0x8a29f5)),_0x2f13ee){const {contentBoxPointGroup:_0x2787d5}=_0x4404eb[_0x5c1a62(0x132)](_0x13f582,_0x13f582);if(_0x2787d5[_0x5c1a62(0xfb)]===0x0)continue;this['_drawAnchor'](_0xbba92f,_0x2787d5,_0x37ab5b,_0x34d10f,_0x35e066),this[_0x5c1a62(0x260)]=this['_handleHover']();}if(_0x26d6c5&&_0x13f582){if(_0x50aac1===_0x3c1574[_0x5c1a62(0x241)]){const _0x1f32b8=new _0x19dc65(_0xc42e99,_0xb9c9b7),{pointGroup:_0x2a566f}=(_0x9fec7=_0x1f32b8[_0x5c1a62(0x132)](_0x26d6c5,_0x13f582))!=null?_0x9fec7:{};if(_0x2a566f==null||_0x2a566f['length']===0x0)continue;this[_0x5c1a62(0x1bc)](_0xbba92f,_0x2a566f,_0x37ab5b,_0x34d10f);}else{if(!_0x1dcb92){const {borderBoxPointGroup:_0x276745}=_0x4404eb[_0x5c1a62(0x132)](_0x26d6c5,_0x13f582);if(_0x276745[_0x5c1a62(0xfb)]===0x0)continue;this['_drawTextRange'](_0xbba92f,_0x276745,_0x37ab5b,_0x34d10f);}}}}}[_0x240916(0x179)](_0x2200f2,_0xd6150b,_0x17131e,_0x38c76d,_0x257b5f){const _0x138dc7=_0x240916,_0x521691=this[_0x138dc7(0x265)](_0xd6150b),{left:_0x32254e,top:_0x32982a,height:_0x5c09fd}=_0x521691,_0x5cde07=this[_0x138dc7(0x112)](),_0x4d168a=zi/_0x5cde07,_0x1520c1=new _0x3d2ae1(De+_0x2664d4(z),{'left':_0x32254e+_0x17131e-_0x4d168a,'top':_0x32982a+_0x38c76d,'height':_0x5c09fd,'width':Ki,'fill':_0x2200f2||_0x525b34(_0x2b8935['black'],0x0),'strokeWidth':_0x4d168a,'stroke':Ji,'evented':!0x0});this[_0x138dc7(0x2b4)]=_0x1520c1,this['_scene'][_0x138dc7(0x123)](_0x1520c1,_0x15a21c);const _0x76203=new _0x3d2ae1(De+_0x2664d4(z),{'left':_0x32254e+_0x17131e-_0x4d168a,'top':_0x32982a+_0x38c76d-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x2200f2||_0x525b34(_0x2b8935[_0x138dc7(0xe2)],0x0),'strokeWidth':0x0,'stroke':_0x2200f2||_0x525b34(_0x2b8935[_0x138dc7(0xe2)],0x0),'evented':!0x1});this[_0x138dc7(0x228)]=_0x76203,this[_0x138dc7(0x198)][_0x138dc7(0x123)](_0x76203,_0x15a21c);const _0x5f2163=new ve(De+_0x2664d4(z),{'left':_0x32254e+_0x17131e-_0x4d168a,'top':_0x32982a+_0x38c76d-Q,'text':_0x257b5f,'color':_0x2200f2});this[_0x138dc7(0x289)]=_0x5f2163,this[_0x138dc7(0x198)]['addObject'](_0x5f2163,_0x15a21c),this[_0x138dc7(0x2c7)]=!0x1;}[_0x240916(0x1f0)](){const _0x350a87=_0x240916,_0x4796f8=this['_anchor'][_0x350a87(0x1fb)][_0x350a87(0x18f)](()=>{const _0x32d309=_0x350a87;this[_0x32d309(0x2c7)]=!0x0;}),_0x2461cf=this['_anchor'][_0x350a87(0x2d9)][_0x350a87(0x18f)](()=>{const _0x2678fb=_0x350a87;this[_0x2678fb(0x1e3)]&&clearTimeout(this[_0x2678fb(0x1e3)]),this[_0x2678fb(0x1e3)]=setTimeout(()=>{const _0xb87003=_0x2678fb;this[_0xb87003(0x2c7)]=!0x1;},0x7d0);});return()=>{const _0x1de2f1=_0x350a87;_0x4796f8[_0x1de2f1(0x1b3)](),_0x2461cf['unsubscribe']();};}[_0x240916(0x27f)](_0x4e10b8,_0x2c7eac,_0x4662a6,_0xf8dad1){const _0x4ea9f6=_0x240916,_0x5526e5=new _0x19d4f9(_0x4e10b8)[_0x4ea9f6(0x2e1)](0.2)['toRgbString'](),_0x25e0f1=new _0x542d56(Xi+_0x2664d4(z),{'pointsGroup':_0x2c7eac,'fill':_0x5526e5||_0x525b34(_0x2b8935[_0x4ea9f6(0xe2)],0.2),'left':_0x4662a6,'top':_0xf8dad1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4ea9f6(0x1b7)][_0x4ea9f6(0x1e0)](_0x25e0f1),this[_0x4ea9f6(0x198)][_0x4ea9f6(0x123)](_0x25e0f1,_0x15a21c);}[_0x240916(0x1bc)](_0x248566,_0x199f12,_0x4945e0,_0x3e40fe){const _0x346399=_0x240916,_0x4254c2=new _0x19d4f9(_0x248566)[_0x346399(0x2e1)](0.2)[_0x346399(0x2e3)](),_0x255b9d=new _0x542d56(Gi+_0x2664d4(z),{'pointsGroup':_0x199f12,'fill':_0x4254c2||_0x525b34(_0x2b8935[_0x346399(0xe2)],0.2),'left':_0x4945e0,'top':_0x3e40fe,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x346399(0x1b7)][_0x346399(0x1e0)](_0x255b9d),this[_0x346399(0x198)][_0x346399(0x123)](_0x255b9d,_0x15a21c);}[_0x240916(0x265)](_0x85498){const _0x4b9e70=_0x85498[0x0],_0xe280f9=_0x4b9e70[0x0],_0x525513=_0x4b9e70[0x2],{x:_0x5c923f,y:_0x41c112}=_0xe280f9,{x:_0x99ef93,y:_0xd94ad7}=_0x525513;return{'left':_0x5c923f,'top':_0x41c112,'width':_0x99ef93-_0x5c923f,'height':_0xd94ad7-_0x41c112};}['_getScale'](){const _0x40e63b=_0x240916,{scaleX:_0x14ed33,scaleY:_0x7c9859}=this[_0x40e63b(0x198)][_0x40e63b(0x2c4)]();return Math[_0x40e63b(0x106)](_0x14ed33,_0x7c9859);}}var Zi=Object[_0x240916(0x1f8)],Qi=(_0x5af806,_0x5acde5,_0x477e59,_0xc79394)=>{const _0x3df1cc=_0x240916;for(var _0x5f06fc=_0xc79394>0x1?void 0x0:_0xc79394?Zi(_0x5acde5,_0x477e59):_0x5acde5,_0x1115f8=_0x5af806[_0x3df1cc(0xfb)]-0x1,_0xaadfe9;_0x1115f8>=0x0;_0x1115f8--)(_0xaadfe9=_0x5af806[_0x1115f8])&&(_0x5f06fc=_0xaadfe9(_0x5f06fc)||_0x5f06fc);return _0x5f06fc;},ie=(_0x1ae933,_0x507a14)=>(_0x7c1f0f,_0x3196f6)=>_0x507a14(_0x7c1f0f,_0x3196f6,_0x1ae933);let Fe=class extends _0x3122c4{constructor(_0x34a0ee,_0x58cbdc,_0x19bc6a,_0x58ec77,_0x437617){const _0x69d3ab=_0x240916;super(),_(this,'_cursorShapes',[]),_(this,_0x69d3ab(0x31a),[]),(this[_0x69d3ab(0x1c4)]=_0x34a0ee,this[_0x69d3ab(0x2aa)]=_0x58cbdc,this[_0x69d3ab(0x317)]=_0x19bc6a,this[_0x69d3ab(0x208)]=_0x58ec77,this[_0x69d3ab(0xd2)]=_0x437617,this[_0x69d3ab(0x163)]());}[_0x240916(0x163)](){const _0x362ee5=_0x240916,_0x312ab5=this[_0x362ee5(0x1c4)]['unitId'],_0x225a74=this['_docSkeletonManagerService'];this[_0x362ee5(0xe0)](_0x207d2b([this[_0x362ee5(0x317)][_0x362ee5(0x2ca)](_0x312ab5),this[_0x362ee5(0xd2)][_0x362ee5(0x193)]])[_0x362ee5(0x1e1)](_0x58bc15(([_0x591725,_0x49074c])=>({'skeleton':_0x225a74[_0x362ee5(0x1ee)](),'cursors':[..._0x591725['values']()][_0x362ee5(0xdd)](_0x1a23e7=>({..._0x1a23e7,'color':this[_0x362ee5(0xd2)][_0x362ee5(0x129)](_0x1a23e7[_0x362ee5(0x250)])}))})))[_0x362ee5(0x111)](_0x3412e3=>{const _0x543ae7=_0x362ee5;if(this['_removeCollabCursors'](),_0x3412e3){const {skeleton:_0x1cd68e,cursors:_0xf28519}=_0x3412e3;this[_0x543ae7(0xe3)](_0x1cd68e,_0xf28519);}})),this[_0x362ee5(0x201)](),this[_0x362ee5(0xff)]();}[_0x240916(0xe3)](_0x22d342,_0x55859e){const _0x1553d3=_0x240916,{scene:_0x3af709,mainComponent:_0x367c8e}=this['_context'],_0x415975=_0x55859e['map'](_0x889472=>new ct(_0x889472,_0x3af709,_0x22d342,_0x367c8e));this[_0x1553d3(0x188)]=_0x415975,this[_0x1553d3(0x31a)]=_0x55859e;}[_0x240916(0x291)](){const _0x18e24a=_0x240916;this[_0x18e24a(0x11e)]();const {scene:_0x3b78da,mainComponent:_0x3262fb}=this[_0x18e24a(0x1c4)],_0x2e1e69=this[_0x18e24a(0x2aa)][_0x18e24a(0x1ee)](),_0x5982bc=this['_cursors'][_0x18e24a(0x281)](_0x490385=>new ct(_0x490385,_0x3b78da,_0x2e1e69,_0x3262fb));this[_0x18e24a(0x188)]=_0x5982bc;}[_0x240916(0x11e)](){const _0x578f5b=_0x240916;this[_0x578f5b(0x188)][_0x578f5b(0x2e8)](_0x54b7d4=>_0x54b7d4[_0x578f5b(0x185)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x1f88b1=_0x240916,_0x3dc3f1=[_0x1a7732['id']];this['disposeWithMe'](this[_0x1f88b1(0x208)][_0x1f88b1(0x171)](_0x4683ea=>{const _0x15fa73=_0x1f88b1;_0x3dc3f1[_0x15fa73(0x159)](_0x4683ea['id'])&&_0x4683ea[_0x15fa73(0x1d8)]['unitId']===this[_0x15fa73(0x1c4)]['unitId']&&this[_0x15fa73(0x291)]();}));}['_initResize'](){const _0x1bf695=_0x240916;this['disposeWithMe'](_0x63123d(this[_0x1bf695(0x1c4)][_0x1bf695(0x2c9)][_0x1bf695(0x189)])['pipe'](_0x491785(_0x3cb363=>_0x3cb363[_0x1bf695(0x2f0)]===_0x97306c['resize']),_0x3118d0(0x10))[_0x1bf695(0x111)](()=>{const _0x149d28=_0x1bf695;this[_0x149d28(0x291)]();}));}};Fe=Qi([ie(0x1,_0x451de1(_0x1102c9)),ie(0x2,_0x451de1(H)),ie(0x3,_0x5e5675),ie(0x4,_0x451de1(_0x57f958))],Fe);const qi=0x1,en=1.5;class tn extends _0xa92bc{constructor(_0x2c4507,_0x1ae1c8){const _0x2ead75=_0x240916;super(_0x2c4507,_0x1ae1c8),_(this,_0x2ead75(0x174)),_(this,_0x2ead75(0x24d),!0x1),_(this,_0x2ead75(0x238)),_(this,_0x2ead75(0x15e),''),_(this,'_labelPosition',_0x2ead75(0x102)),_(this,_0x2ead75(0x19f)),(_0x1ae1c8&&this[_0x2ead75(0x1f6)](_0x1ae1c8),this[_0x2ead75(0x1fb)][_0x2ead75(0x18f)](()=>this[_0x2ead75(0x1f6)]({'hovered':!0x0})),this['onPointerLeave$'][_0x2ead75(0x18f)](()=>this[_0x2ead75(0x1f6)]({'hovered':!0x1})));}[_0x240916(0x1f6)](_0x41095b){const _0x877484=_0x240916;var _0x4326e8,_0x571185,_0x17f9be,_0xf25d83,_0x40fc50,_0x239688;this[_0x877484(0x174)]=(_0x4326e8=_0x41095b['color'])!=null?_0x4326e8:this[_0x877484(0x174)],this[_0x877484(0x24d)]=(_0x571185=_0x41095b['hovered'])!=null?_0x571185:this[_0x877484(0x24d)],this[_0x877484(0x238)]=(_0x17f9be=_0x41095b[_0x877484(0x220)])!=null?_0x17f9be:this[_0x877484(0x238)],this[_0x877484(0x15e)]=(_0xf25d83=_0x41095b[_0x877484(0x2d5)])!=null?_0xf25d83:this['_name'],this[_0x877484(0x2a4)]=(_0x40fc50=_0x41095b[_0x877484(0x309)])!=null?_0x40fc50:this[_0x877484(0x2a4)],this[_0x877484(0x19f)]=(_0x239688=_0x41095b[_0x877484(0x2dc)])!=null?_0x239688:this[_0x877484(0x19f)],this[_0x877484(0x256)]({'width':_0x41095b[_0x877484(0x223)],'height':_0x41095b['height']});}[_0x240916(0x22e)](_0x5043e3){const _0x9acdbf=_0x240916,{row:_0x1f9d59,column:_0x2e5728}=_0x5043e3;if(_0x1f9d59>=this[_0x9acdbf(0x238)][_0x9acdbf(0x1c5)]&&_0x1f9d59<=this[_0x9acdbf(0x238)][_0x9acdbf(0x2c3)]&&_0x2e5728>=this['_range'][_0x9acdbf(0x302)]&&_0x2e5728<=this[_0x9acdbf(0x238)][_0x9acdbf(0x316)]){this[_0x9acdbf(0x1f6)]({'hovered':!0x0});return;}this[_0x9acdbf(0x1f6)]({'hovered':!0x1});}[_0x240916(0x1a8)](_0x391472){return!0x1;}['_draw'](_0x310986){const _0x4daceb=_0x240916;_0x3d2ae1['drawWith'](_0x310986,{'width':this[_0x4daceb(0x223)],'height':this['height'],'strokeWidth':en,'stroke':this[_0x4daceb(0x174)],'evented':!0x1,'fill':this[_0x4daceb(0x19f)]}),this[_0x4daceb(0x24d)]&&(_0x310986[_0x4daceb(0x1f4)](),_0x310986[_0x4daceb(0x160)](0x1,0x0,0x0,0x1,this[_0x4daceb(0x223)],this[_0x4daceb(0x2a4)]===_0x4daceb(0x157)?0x0:-Q),ve['drawWith'](_0x310986,{'text':this[_0x4daceb(0x15e)],'color':this[_0x4daceb(0x174)]}),_0x310986[_0x4daceb(0xd4)]());}}var sn=Object['getOwnPropertyDescriptor'],nn=(_0xc60d0b,_0x5d73b2,_0x156f9a,_0x253061)=>{const _0x1a2fe1=_0x240916;for(var _0x204ab6=_0x253061>0x1?void 0x0:_0x253061?sn(_0x5d73b2,_0x156f9a):_0x5d73b2,_0x126e9e=_0xc60d0b[_0x1a2fe1(0xfb)]-0x1,_0x30c75c;_0x126e9e>=0x0;_0x126e9e--)(_0x30c75c=_0xc60d0b[_0x126e9e])&&(_0x204ab6=_0x30c75c(_0x204ab6)||_0x204ab6);return _0x204ab6;},be=(_0x445e58,_0x444142)=>(_0x316f39,_0x4b0c0a)=>_0x444142(_0x316f39,_0x4b0c0a,_0x445e58);const rn=0x1389;let ke=class extends _0x3122c4{constructor(_0x27075f,_0x2cea59,_0x2ca89b,_0x59d74f){const _0x14c91e=_0x240916;super(),_(this,_0x14c91e(0x31a),new Set()),_(this,'_lastPointer',null),(this[_0x14c91e(0x1c4)]=_0x27075f,this[_0x14c91e(0x2fa)]=_0x2cea59,this[_0x14c91e(0x317)]=_0x2ca89b,this[_0x14c91e(0xd2)]=_0x59d74f,this[_0x14c91e(0x163)]());}[_0x240916(0x163)](){const _0x37055e=_0x240916;this[_0x37055e(0x2fa)]['currentSkeleton$'][_0x37055e(0x1e1)](_0x2b4e82(this[_0x37055e(0x221)]),_0x1fc78b(_0x107b5a=>{const _0xeced1e=_0x37055e;if(_0x107b5a){const _0x6da28b=_0x107b5a['sheetId'];return _0x207d2b(this['_collabCursorController'][_0xeced1e(0x2ca)](this[_0xeced1e(0x1c4)][_0xeced1e(0x1fc)]),this[_0xeced1e(0xd2)][_0xeced1e(0x193)])[_0xeced1e(0x1e1)](_0x58bc15(([_0x50294a,_0x5cf57f])=>{const _0x5f0e0c=_0xeced1e,_0x3b5121=new Map();return _0x50294a[_0x5f0e0c(0x2e8)]((_0x26eff3,_0x1729c8)=>{const _0x95f225=_0x5f0e0c;if(_0x26eff3['sheetID']===_0x6da28b){const _0x2a0c79={..._0x26eff3};_0x2a0c79[_0x95f225(0x250)]=this[_0x95f225(0xd2)][_0x95f225(0x129)](_0x26eff3[_0x95f225(0x250)]),_0x3b5121[_0x95f225(0x26a)](_0x1729c8,_0x2a0c79);}}),{'skeleton':_0x107b5a,'cursors':_0x3b5121};}));}return _0x4cadb4({'skeleton':null,'cursors':new Map()});}))[_0x37055e(0x111)](({skeleton:_0xdfcc3c,cursors:_0x3516c2})=>{const _0x2c87ed=_0x37055e;this[_0x2c87ed(0x11e)](),_0xdfcc3c&&this['_updateCollabCursors'](_0xdfcc3c,_0x3516c2);}),this[_0x37055e(0x2fa)]['currentSkeleton$'][_0x37055e(0x111)](_0x5301ce=>{const _0x24ff51=_0x37055e;if(_0x5301ce==null)return;const {skeleton:_0x3e2b44}=_0x5301ce,{scene:_0x1dc65b}=this[_0x24ff51(0x1c4)];_0x1dc65b[_0x24ff51(0x116)][_0x24ff51(0x18f)](_0x17e35b(_0x4bf2f6=>{const _0x47e836=_0x24ff51;var _0x98366d,_0x33ce0a;const {offsetX:_0x5a5c54,offsetY:_0x98567}=_0x4bf2f6,{x:_0x2df475,y:_0x2d1197}=_0x1dc65b['getRelativeToViewportCoord'](_0x2e233c[_0x47e836(0x161)]([_0x5a5c54,_0x98567])),{scaleX:_0x1a1b8c,scaleY:_0x4f0f66}=_0x1dc65b[_0x47e836(0x2c4)](),_0xbca479=_0x1dc65b[_0x47e836(0x1cd)](_0xf0062['VIEW_MAIN']),_0x1ad4a1=_0x1dc65b[_0x47e836(0x1ae)](_0x2e233c[_0x47e836(0x161)]([_0x2df475,_0x2d1197]),_0xbca479),_0x343601=_0x3e2b44[_0x47e836(0x1ed)](_0x5a5c54,_0x98567,_0x1a1b8c,_0x4f0f66,_0x1ad4a1);((_0x98366d=this[_0x47e836(0x299)])==null?void 0x0:_0x98366d[_0x47e836(0x2a2)])===_0x343601[_0x47e836(0x2a2)]&&((_0x33ce0a=this[_0x47e836(0x299)])==null?void 0x0:_0x33ce0a[_0x47e836(0x1e9)])===_0x343601['row']||this['_cursors'][_0x47e836(0x2e8)](_0x327db7=>{_0x327db7['onMouseMove'](_0x343601);});},0x64));});}['_updateCollabCursors'](_0x39738b,_0x79e0e9){const _0x5b8edf=_0x240916;var _0x234d60;const _0x20bc7e=(_0x234d60=this[_0x5b8edf(0x2fa)][_0x5b8edf(0x1a0)]())==null?void 0x0:_0x234d60['skeleton'];if(!_0x20bc7e)return;const _0x411c03=this[_0x5b8edf(0x313)]();if(!_0x411c03)return;this[_0x5b8edf(0x31a)]['forEach'](_0x30476c=>{_0x30476c['makeDirty']();});const {scene:_0xc1a21}=_0x411c03,_0x3815a3=on(Array[_0x5b8edf(0x14a)](_0x79e0e9[_0x5b8edf(0x1fa)]()))[_0x5b8edf(0x281)](_0x669538=>{const _0x160377=_0x5b8edf,{color:_0x1d467b,range:_0x53746c,name:_0x25f8e1,selection:_0x382c3b,sheetID:_0x2ca7ab}=_0x669538,{startColumn:_0x3a9ad8,startRow:_0x4a775b,endColumn:_0x52662e,endRow:_0x233fe2}=_0x53746c,_0x22222f=_0xdb9d86(_0x4a775b,_0x3a9ad8,_0xc1a21,_0x20bc7e),_0x3b3000=_0xdb9d86(_0x233fe2,_0x52662e,_0xc1a21,_0x20bc7e),{columnHeaderHeightAndMarginTop:_0x223705}=_0x20bc7e,{startX:_0xe064a0,startY:_0x23abbc}=_0x22222f,{endX:_0x32c999,endY:_0x50ea6e}=_0x3b3000,_0x1159a6=_0x32c999-_0xe064a0,_0x52748a=_0x50ea6e-_0x23abbc,_0x26f350={'labelPosition':_0x23abbc-_0x223705>=Q?_0x160377(0x102):_0x160377(0x157),'sheetID':_0x2ca7ab,'range':_0x53746c,'color':_0x1d467b,'name':_0x25f8e1,'selection':_0x382c3b,'left':_0xe064a0,'top':_0x23abbc,'width':_0x1159a6,'height':_0x52748a,'evented':!0x1,'zIndex':rn};return new tn(_0x25f8e1,_0x26f350);});_0xc1a21['addObjects'](_0x3815a3,qi),this[_0x5b8edf(0x31a)]=new Set(_0x3815a3);}[_0x240916(0x11e)](){const _0x3a4afc=_0x240916;var _0x2f143a;(_0x2f143a=this[_0x3a4afc(0x31a)])==null||_0x2f143a['forEach'](_0x27770e=>_0x27770e[_0x3a4afc(0x185)]());}[_0x240916(0x313)](){const _0x12ee01=_0x240916;return _0x453f91(this[_0x12ee01(0x1c4)][_0x12ee01(0x262)],this[_0x12ee01(0x1c4)]);}};ke=nn([be(0x1,_0x451de1(_0x3e7369)),be(0x2,_0x451de1(H)),be(0x3,_0x451de1(_0x57f958))],ke);function on(_0x554328){const _0x3bae7f=_0x240916,_0x837398=new Map();return _0x554328[_0x3bae7f(0x2e8)](_0x314472=>{const _0x5cbb6f=_0x3bae7f;if(_0x837398[_0x5cbb6f(0x298)](_0x314472[_0x5cbb6f(0x253)])){const _0xcd1a9=_0x837398[_0x5cbb6f(0x1c7)](_0x314472[_0x5cbb6f(0x253)]);_0xcd1a9['name']+=',\x20'+_0x314472[_0x5cbb6f(0x2d5)];}else _0x837398[_0x5cbb6f(0x26a)](_0x314472[_0x5cbb6f(0x253)],_0x314472);}),Array[_0x3bae7f(0x14a)](_0x837398[_0x3bae7f(0x1fa)]());}var an=Object[_0x240916(0x1f8)],cn=(_0x2154a7,_0x5b01c7,_0x49dda8,_0x562ada)=>{const _0x1cbc41=_0x240916;for(var _0x461b50=_0x562ada>0x1?void 0x0:_0x562ada?an(_0x5b01c7,_0x49dda8):_0x5b01c7,_0x47db7b=_0x2154a7[_0x1cbc41(0xfb)]-0x1,_0x5419d2;_0x47db7b>=0x0;_0x47db7b--)(_0x5419d2=_0x2154a7[_0x47db7b])&&(_0x461b50=_0x5419d2(_0x461b50)||_0x461b50);return _0x461b50;},F=(_0xd93924,_0x44cf31)=>(_0x518b4b,_0x529b66)=>_0x44cf31(_0x518b4b,_0x529b66,_0xd93924);let _e=class extends _0xf771d3{constructor(_0x448560,_0x5e2d3f,_0x309f0f,_0x86188a,_0x307336,_0x5b866d){const _0x4c29f7=_0x240916;super(),this[_0x4c29f7(0x2cf)]=_0x448560,this['_localCacheService']=_0x5e2d3f,this[_0x4c29f7(0x258)]=_0x309f0f,this[_0x4c29f7(0x190)]=_0x86188a,this['_notificationService']=_0x307336,this[_0x4c29f7(0x239)]=_0x5b866d,this[_0x4c29f7(0x13a)](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0xfea1ed=_0x240916;this[_0xfea1ed(0xe0)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0xe88136=_0xfea1ed;if(this['_localCacheService'][_0xe88136(0x25b)][_0xe88136(0xe4)])return this[_0xe88136(0x239)]['t']('collaboration.offline-data-not-saved');}));}[_0x240916(0x1d0)](){const _0x3515ab=_0x240916;this['disposeWithMe'](this['_collaborationUIEventService'][_0x3515ab(0xea)][_0x3515ab(0x111)](_0x273cf8=>{const _0x1736ff=_0x3515ab;_0x273cf8['id']===_0x892b1e['OTHER_CLIENT_EDITING']&&this['_messageService']['show']({'type':_0x24cf21[_0x1736ff(0x246)],'content':this[_0x1736ff(0x239)]['t'](_0x1736ff(0x2b9))}),_0x273cf8['id']===_0x892b1e[_0x1736ff(0x1f3)]&&this['_messageService'][_0x1736ff(0x267)]({'type':_0x24cf21[_0x1736ff(0x246)],'content':this[_0x1736ff(0x239)]['t'](_0x1736ff(0x21f))}),_0x273cf8['id']===_0x892b1e[_0x1736ff(0x15d)]&&this[_0x1736ff(0x2f8)][_0x1736ff(0x267)]({'title':this[_0x1736ff(0x239)]['t'](_0x1736ff(0x2c2)),'content':this[_0x1736ff(0x239)]['t']('permission.content'),'type':'error','duration':0x0}),_0x273cf8['id']===_0x892b1e[_0x1736ff(0x279)]&&this['_messageService'][_0x1736ff(0x267)]({'type':_0x24cf21[_0x1736ff(0xd9)],'content':this['_localeService']['t'](_0x1736ff(0x21f))+'('+_0x273cf8[_0x1736ff(0x213)]+')'}),_0x273cf8['id']===_0x892b1e['JOIN_ROOM_FAILED']&&this[_0x1736ff(0x190)][_0x1736ff(0x267)]({'type':_0x24cf21['Warning'],'content':this[_0x1736ff(0x239)]['t'](_0x273cf8['data']||'')}),_0x273cf8['id']===_0x892b1e[_0x1736ff(0x1df)]&&this[_0x1736ff(0x190)][_0x1736ff(0x267)]({'type':_0x24cf21[_0x1736ff(0x246)],'content':this[_0x1736ff(0x239)]['t'](_0x1736ff(0x1f7))}),_0x273cf8['id']===_0x892b1e[_0x1736ff(0x1a4)]&&this['_messageService'][_0x1736ff(0x267)]({'type':_0x24cf21[_0x1736ff(0xd9)],'content':this[_0x1736ff(0x239)]['t'](_0x1736ff(0x318))}),_0x273cf8['id']===_0x892b1e['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService']['show']({'type':_0x24cf21[_0x1736ff(0xd9)],'content':this[_0x1736ff(0x239)]['t'](_0x1736ff(0x10e))});}));}};_e=cn([F(0x0,_0x159d32),F(0x1,_0x45d2d0),F(0x2,_0x451de1(_0x1be880)),F(0x3,_0x110574),F(0x4,_0xbbab2c),F(0x5,_0x451de1(_0x53f064))],_e);var _n=Object['getOwnPropertyDescriptor'],ln=(_0x475ba5,_0x25a603,_0xefe9c0,_0x25f98f)=>{const _0x3c0700=_0x240916;for(var _0xcdcc4a=_0x25f98f>0x1?void 0x0:_0x25f98f?_n(_0x25a603,_0xefe9c0):_0x25a603,_0x45c755=_0x475ba5[_0x3c0700(0xfb)]-0x1,_0x1c5df0;_0x45c755>=0x0;_0x45c755--)(_0x1c5df0=_0x475ba5[_0x45c755])&&(_0xcdcc4a=_0x1c5df0(_0xcdcc4a)||_0xcdcc4a);return _0xcdcc4a;},ne=(_0x38d91e,_0x504be8)=>(_0x511dc1,_0x269d64)=>_0x504be8(_0x511dc1,_0x269d64,_0x38d91e);let le=class extends _0xf771d3{constructor(_0x5061a5,_0x269c5e,_0x3fe83a,_0x1271a2){const _0x5ee44d=_0x240916;super(),_(this,_0x5ee44d(0x2ae)),(this['_injector']=_0x5061a5,this[_0x5ee44d(0x19d)]=_0x269c5e,this['_logService']=_0x3fe83a,this[_0x5ee44d(0x13c)]=_0x1271a2,this[_0x5ee44d(0x163)]());}[_0x240916(0x163)](){const _0x6aa67=_0x240916;this[_0x6aa67(0x259)](),this[_0x6aa67(0x20f)](),this[_0x6aa67(0x121)](),this[_0x6aa67(0x18c)]();}[_0x240916(0x18c)](){const _0x16f95b=_0x240916;this[_0x16f95b(0xe0)](this[_0x16f95b(0x13c)]['socket$']['subscribe'](_0x3b89b3=>{const _0x3962e6=_0x16f95b;this[_0x3962e6(0x2ae)]=_0x3b89b3==null?void 0x0:_0x3b89b3[_0x3962e6(0x143)];}));}[_0x240916(0x259)](){const _0x2079c3=_0x240916,_0x2fdfd5=_0x27d535=>{const _0x3dabc6=_0x9124;var _0x289fb7;this['_uploadLog'](_0x3dabc6(0x20a),'[Window\x20Error]:\x20'+_0x27d535[_0x3dabc6(0x16e)]+_0x3dabc6(0x1d4)+_0x27d535[_0x3dabc6(0x312)]+':'+_0x27d535[_0x3dabc6(0x2d8)]+':'+_0x27d535['colno']+'\x0a'+(((_0x289fb7=_0x27d535['error'])==null?void 0x0:_0x289fb7['stack'])||''));};window['addEventListener'](_0x2079c3(0x20a),_0x2fdfd5),this[_0x2079c3(0xe0)](()=>{const _0x5adfc8=_0x2079c3;window[_0x5adfc8(0x194)](_0x5adfc8(0x20a),_0x2fdfd5);});}['_initUnhandledRejectionListener'](){const _0x5e5628=_0x240916,_0x56b26a=_0x4ff2b9=>{const _0x10925f=_0x9124;this[_0x10925f(0x2d1)](_0x10925f(0x20a),_0x10925f(0x25a)+_0x4ff2b9['reason']);};window[_0x5e5628(0x216)](_0x5e5628(0x215),_0x56b26a),this['disposeWithMe'](()=>{const _0x275464=_0x5e5628;window[_0x275464(0x194)](_0x275464(0x215),_0x56b26a);});}['_monkeyPatchLogService'](){const _0x7adff5=_0x240916,_0x1e5e5f=this[_0x7adff5(0x26f)]['error']['bind'](this[_0x7adff5(0x26f)]);this[_0x7adff5(0x26f)][_0x7adff5(0x20a)]=(..._0x25766d)=>{const _0x26e898=_0x7adff5,_0x281665=_0x25766d[_0x26e898(0x281)](_0x532519=>_0x532519 instanceof Error?_0x532519[_0x26e898(0x16e)]+'\x0a'+_0x532519['stack']:String(_0x532519))['join']('\x20');this['_uploadLog'](_0x26e898(0x20a),_0x26e898(0x1c3)+_0x281665),_0x1e5e5f(..._0x25766d);},this[_0x7adff5(0xe0)](()=>{const _0x2b9a72=_0x7adff5;this['_logService'][_0x2b9a72(0x20a)]=_0x1e5e5f;});}['_uploadLog'](_0x9daf5f,_0x2285c5){const _0x3aa0fb=_0x240916;try{const _0x4eded={'userId':this[_0x3aa0fb(0x2ae)],'logLabel':_0x9daf5f,'content':_0x2285c5};this[_0x3aa0fb(0x19d)]['post'](_0x3aa0fb(0x1e8),{'body':_0x4eded})[_0x3aa0fb(0x122)](()=>{});}catch{}}};le=ln([ne(0x0,_0x451de1(_0x30dac5)),ne(0x1,_0x451de1(_0x20e19d)),ne(0x2,_0x48e521),ne(0x3,_0x451de1(_0x27d44b))],le);const hn=_0x240916(0x16d),_t={};var un=Object['getOwnPropertyDescriptor'],dn=(_0xa9579d,_0x4e6c4b,_0x4026fa,_0x329d51)=>{const _0x40e8c7=_0x240916;for(var _0x1980ac=_0x329d51>0x1?void 0x0:_0x329d51?un(_0x4e6c4b,_0x4026fa):_0x4e6c4b,_0x3c37c4=_0xa9579d[_0x40e8c7(0xfb)]-0x1,_0x484d01;_0x3c37c4>=0x0;_0x3c37c4--)(_0x484d01=_0xa9579d[_0x3c37c4])&&(_0x1980ac=_0x484d01(_0x1980ac)||_0x1980ac);return _0x1980ac;},lt=(_0x23b242,_0x4bfa64)=>(_0x5f3a67,_0x5e5d8e)=>_0x4bfa64(_0x5f3a67,_0x5e5d8e,_0x23b242);let he=class{constructor(_0x5963dc,_0x4cc7bd){const _0x20a291=_0x240916;this[_0x20a291(0x1bf)]=_0x5963dc,this[_0x20a291(0x212)]=_0x4cc7bd;}[_0x240916(0x166)](_0x11654a){const _0x137600=_0x240916;this[_0x137600(0xd1)](_0x11654a),this[_0x137600(0x1ff)](_0x11654a);}[_0x240916(0x17b)](_0x1c91e9){const _0x347e93=_0x240916,{unitID:_0x3b620c}=_0x1c91e9,_0x3ae244=this['_renderManagerService']['getRenderById'](_0x3b620c)['with'](_0x193f11),{redoCache:_0x405741}=_0x3ae244[_0x347e93(0x2ed)]();if(_0x405741[_0x347e93(0xfb)]===0x0)return _0x1c91e9;let _0x4b287c=_0x141325[_0x347e93(0x2ef)](_0x1c91e9[_0x347e93(0x172)][0x0]);for(let _0x54b9a2=0x0;_0x54b9a2<_0x405741[_0x347e93(0xfb)];_0x54b9a2++){const _0x56f263={'id':_0x347e93(0x1b5),'params':{..._0x405741[_0x54b9a2]}},_0x34528d=this['_transformService']['transformMutation'](_0x4b287c,_0x56f263,!0x1);if(_0x699f6f(_0x34528d))throw _0x34528d['error'];_0x4b287c=_0x34528d['m1Prime'];}return{..._0x141325[_0x347e93(0x2ef)](_0x1c91e9),'mutations':[_0x4b287c]};}[_0x240916(0xd1)](_0x3e6132){const _0x33219c=_0x240916,{unitID:_0x56ba71}=_0x3e6132,_0x112bf8=this[_0x33219c(0x212)][_0x33219c(0xf1)](_0x56ba71)[_0x33219c(0x310)](_0x193f11),{undoCache:_0x4e34e9,redoCache:_0x42fac4}=_0x112bf8[_0x33219c(0x2ed)]();if(_0x4e34e9[_0x33219c(0xfb)]===0x0||_0x42fac4[_0x33219c(0xfb)]===0x0)return;const _0x1e42d7=[],_0x45a661=[];let _0x174b6d=_0x141325[_0x33219c(0x2ef)](_0x3e6132[_0x33219c(0x172)][0x0]),_0x4401bd=_0x141325[_0x33219c(0x2ef)](_0x3e6132['mutations'][0x0]);for(let _0x355469=_0x4e34e9[_0x33219c(0xfb)]-0x1;_0x355469>=0x0;_0x355469--){const _0x6ee3a5={'id':_0x33219c(0x1b5),'params':{..._0x4e34e9[_0x355469]}},_0x43e4b4={'id':_0x33219c(0x1b5),'params':{..._0x42fac4[_0x355469]}},_0x5bac09=this['_transformService'][_0x33219c(0x183)](_0x174b6d,_0x6ee3a5,!0x1),_0x1fed99=this['_transformService']['transformMutation'](_0x4401bd,_0x43e4b4,!0x1);if(_0x699f6f(_0x5bac09))throw _0x5bac09[_0x33219c(0x20a)];if(_0x699f6f(_0x1fed99))throw _0x1fed99['error'];_0x1e42d7[_0x33219c(0x100)](_0x5bac09[_0x33219c(0x103)][_0x33219c(0x1d8)]),_0x45a661[_0x33219c(0x100)](_0x1fed99[_0x33219c(0x103)][_0x33219c(0x1d8)]),_0x174b6d=_0x5bac09[_0x33219c(0x113)],_0x4401bd=_0x1fed99['m1Prime'];}_0x112bf8[_0x33219c(0x1c8)]({'undoCache':_0x1e42d7,'redoCache':_0x45a661});}[_0x240916(0x1ff)](_0xbacaa){const _0x3314f2=_0x240916,{unitID:_0x17e38d}=_0xbacaa,_0x150b78=this[_0x3314f2(0x212)]['getRenderById'](_0x17e38d)['with'](_0x193f11),_0x5124d2=_0x150b78['getActiveRange']();if(_0x5124d2==null)return;const _0x1c1d5c=[{'id':_0x3314f2(0x1b5),'params':{'unitId':_0xbacaa['unitID'],'actions':null,'textRanges':[_0x5124d2]}}],_0x402d0e=this['_transformService'][_0x3314f2(0x10b)](_0xbacaa,_0x1c1d5c);if(!_0x73df74(_0x402d0e))throw _0x402d0e[_0x3314f2(0x20a)];const _0x24e6a5=_0x402d0e['m2Prime'][0x0][_0x3314f2(0x1d8)][_0x3314f2(0x16c)];Array[_0x3314f2(0x1f9)](_0x24e6a5)&&_0x24e6a5['length']&&_0x150b78[_0x3314f2(0x1a6)](_0x24e6a5[0x0]);}};he=dn([lt(0x0,_0x10d68c),lt(0x1,_0x4d689b)],he);var Sn=Object[_0x240916(0x1f8)],In=(_0x2fd0c8,_0x54f199,_0x8e7ac0,_0x11a80e)=>{const _0xb3f604=_0x240916;for(var _0x478dbf=_0x11a80e>0x1?void 0x0:_0x11a80e?Sn(_0x54f199,_0x8e7ac0):_0x54f199,_0x49d542=_0x2fd0c8[_0xb3f604(0xfb)]-0x1,_0x70484b;_0x49d542>=0x0;_0x49d542--)(_0x70484b=_0x2fd0c8[_0x49d542])&&(_0x478dbf=_0x70484b(_0x478dbf)||_0x478dbf);return _0x478dbf;},Le=(_0x148580,_0x1556ba)=>(_0x170a0d,_0x19d7db)=>_0x1556ba(_0x170a0d,_0x19d7db,_0x148580);let ue=class{constructor(_0x412af1,_0x5997f0,_0x855e8){const _0x3bd9aa=_0x240916;this['_injector']=_0x412af1,this[_0x3bd9aa(0x1bf)]=_0x5997f0,this[_0x3bd9aa(0x30a)]=_0x855e8;}[_0x240916(0x200)](_0xa8d2b1){this['_transformHistoryAndStateStack'](_0xa8d2b1);}[_0x240916(0x17b)](_0x3b211e){const _0x29de05=_0x240916,{unitID:_0x5148e5}=_0x3b211e,{collaboration:_0x195a6e}=this['_docStateChangeManagerService'][_0x29de05(0x294)](_0x5148e5);if(_0x195a6e['length']===0x0)return _0x3b211e;let _0x5e573e=_0x141325[_0x29de05(0x2ef)](_0x3b211e[_0x29de05(0x172)][0x0]);for(let _0x5f53e2=0x0;_0x5f53e2<_0x195a6e[_0x29de05(0xfb)];_0x5f53e2++){const _0x41e6e5={'id':_0x29de05(0x1b5),'params':{'unitId':_0x195a6e[_0x5f53e2][_0x29de05(0x1fc)],..._0x195a6e[_0x5f53e2]['redoState']}},_0x1d98bc=this[_0x29de05(0x1bf)][_0x29de05(0x183)](_0x5e573e,_0x41e6e5,!0x1);if(_0x699f6f(_0x1d98bc))throw _0x1d98bc['error'];_0x5e573e=_0x1d98bc['m1Prime'];}return{..._0x141325[_0x29de05(0x2ef)](_0x3b211e),'mutations':[_0x5e573e]};}[_0x240916(0x128)](_0x3e0482){const _0x210226=_0x240916,{unitID:_0x333570}=_0x3e0482,{history:_0x4ab5f3,collaboration:_0x599183}=this['_docStateChangeManagerService']['getStateCache'](_0x333570);if(_0x4ab5f3[_0x210226(0xfb)]===0x0&&_0x599183[_0x210226(0xfb)]===0x0)return;const _0x2b0283=[],_0x4592a3=[];let _0x1c2d92=_0x141325['deepClone'](_0x3e0482['mutations'][0x0]),_0x40761a=_0x141325[_0x210226(0x2ef)](_0x3e0482[_0x210226(0x172)][0x0]);for(let _0x551ad0=_0x4ab5f3[_0x210226(0xfb)]-0x1;_0x551ad0>=0x0;_0x551ad0--){const _0x30f862={'id':_0x210226(0x1b5),'params':{'unitId':_0x4ab5f3[_0x551ad0]['unitId'],..._0x4ab5f3[_0x551ad0]['undoState']}},_0x178ac4={'id':_0x210226(0x1b5),'params':{'unitId':_0x4ab5f3[_0x551ad0][_0x210226(0x1fc)],..._0x4ab5f3[_0x551ad0][_0x210226(0x141)]}},_0x721352=this[_0x210226(0x1bf)]['transformMutation'](_0x1c2d92,_0x30f862,!0x1),_0x47e73a=this[_0x210226(0x1bf)][_0x210226(0x183)](_0x40761a,_0x178ac4,!0x1);if(_0x699f6f(_0x721352))throw _0x721352[_0x210226(0x20a)];if(_0x699f6f(_0x47e73a))throw _0x47e73a[_0x210226(0x20a)];_0x2b0283[_0x210226(0x100)]({..._0x4ab5f3[_0x551ad0],'undoState':_0x721352['m2Prime']['params'],'redoState':_0x47e73a[_0x210226(0x103)][_0x210226(0x1d8)]}),_0x1c2d92=_0x721352[_0x210226(0x113)],_0x40761a=_0x47e73a['m1Prime'];}_0x1c2d92=_0x141325[_0x210226(0x2ef)](_0x3e0482[_0x210226(0x172)][0x0]),_0x40761a=_0x141325[_0x210226(0x2ef)](_0x3e0482[_0x210226(0x172)][0x0]);for(let _0x2d9762=_0x599183['length']-0x1;_0x2d9762>=0x0;_0x2d9762--){const _0x596e7c={'id':_0x210226(0x1b5),'params':{'unitId':_0x599183[_0x2d9762][_0x210226(0x1fc)],..._0x599183[_0x2d9762][_0x210226(0x254)]}},_0x2e60bf={'id':_0x210226(0x1b5),'params':{'unitId':_0x599183[_0x2d9762][_0x210226(0x1fc)],..._0x599183[_0x2d9762][_0x210226(0x141)]}},_0x53455b=this[_0x210226(0x1bf)][_0x210226(0x183)](_0x1c2d92,_0x596e7c,!0x1),_0x4c26b8=this[_0x210226(0x1bf)]['transformMutation'](_0x40761a,_0x2e60bf,!0x1);if(_0x699f6f(_0x53455b))throw _0x53455b[_0x210226(0x20a)];if(_0x699f6f(_0x4c26b8))throw _0x4c26b8[_0x210226(0x20a)];_0x4592a3['unshift']({..._0x599183[_0x2d9762],'undoState':_0x53455b[_0x210226(0x103)][_0x210226(0x1d8)],'redoState':_0x4c26b8[_0x210226(0x103)][_0x210226(0x1d8)]}),_0x1c2d92=_0x53455b[_0x210226(0x113)],_0x40761a=_0x4c26b8[_0x210226(0x113)];}this[_0x210226(0x30a)][_0x210226(0x247)](_0x333570,{'history':_0x2b0283,'collaboration':_0x4592a3});}};ue=In([Le(0x0,_0x451de1(_0x30dac5)),Le(0x1,_0x10d68c),Le(0x2,_0x451de1(_0x3199a5))],ue);var mn=Object[_0x240916(0x1f8)],fn=(_0x257f35,_0x413c7f,_0x48ac66,_0x55e374)=>{const _0x3b8607=_0x240916;for(var _0x47a7b3=_0x55e374>0x1?void 0x0:_0x55e374?mn(_0x413c7f,_0x48ac66):_0x413c7f,_0x20f760=_0x257f35[_0x3b8607(0xfb)]-0x1,_0x546a66;_0x20f760>=0x0;_0x20f760--)(_0x546a66=_0x257f35[_0x20f760])&&(_0x47a7b3=_0x546a66(_0x47a7b3)||_0x47a7b3);return _0x47a7b3;},ht=(_0x12f40e,_0x820533)=>(_0x2f4cb8,_0x1018b0)=>_0x820533(_0x2f4cb8,_0x1018b0,_0x12f40e);let de=class{constructor(_0x3a0aa0,_0xdb1591){const _0x38b822=_0x240916;this[_0x38b822(0x26e)]=_0x3a0aa0,this[_0x38b822(0x1bf)]=_0xdb1591;}[_0x240916(0x156)](_0x47bf24){const _0x5ce377=_0x240916;var _0x2fb8c8;const _0x589126=this[_0x5ce377(0x26e)][_0x5ce377(0x1c7)](_0x5f3a65),_0x6d4b76=(_0x2fb8c8=_0x589126['getDocRanges']())!=null?_0x2fb8c8:[];if(_0x6d4b76[_0x5ce377(0xfb)]===0x0)return;const _0xc6bc96=_0x47bf24[_0x5ce377(0x22c)],_0x41ba8a=[{'id':_0x5ce377(0x1b5),'params':{'unitId':_0xc6bc96,'actions':null,'textRanges':_0x6d4b76}}],_0xcdcdcf=this[_0x5ce377(0x1bf)][_0x5ce377(0x10b)](_0x47bf24,_0x41ba8a);if(!_0x73df74(_0xcdcdcf))throw _0xcdcdcf[_0x5ce377(0x20a)];const _0x2313e5=_0xcdcdcf[_0x5ce377(0x103)][0x0][_0x5ce377(0x1d8)][_0x5ce377(0x16c)];Array[_0x5ce377(0x1f9)](_0x2313e5)&&_0x2313e5[_0x5ce377(0xfb)]&&_0x589126['replaceDocRanges'](_0x2313e5,{'unitId':_0xc6bc96,'subUnitId':_0xc6bc96},!0x1);}};de=fn([ht(0x0,_0x451de1(_0x30dac5)),ht(0x1,_0x10d68c)],de);var gn=Object['getOwnPropertyDescriptor'],En=(_0x159454,_0x415069,_0x2c3b96,_0x231e67)=>{const _0x3af46b=_0x240916;for(var _0x4051f4=_0x231e67>0x1?void 0x0:_0x231e67?gn(_0x415069,_0x2c3b96):_0x415069,_0x5b5621=_0x159454[_0x3af46b(0xfb)]-0x1,_0x47c248;_0x5b5621>=0x0;_0x5b5621--)(_0x47c248=_0x159454[_0x5b5621])&&(_0x4051f4=_0x47c248(_0x4051f4)||_0x4051f4);return _0x4051f4;},U=(_0xacc485,_0x150f58)=>(_0x3ed17a,_0x2d125d)=>_0x150f58(_0x3ed17a,_0x2d125d,_0xacc485);let Se=class extends _0xf771d3{constructor(_0x4533f5,_0x469d56,_0x250d28,_0x14cd8d,_0x40bda4,_0x297283,_0x906908,_0x4b95f6){const _0x33e55c=_0x240916;super(),_(this,_0x33e55c(0x2a1),new _0x37599d(_0x1cb4cc[_0x33e55c(0x23c)])),(this['_docStateChangeManagerService']=_0x4533f5,this[_0x33e55c(0x114)]=_0x469d56,this[_0x33e55c(0x1a5)]=_0x250d28,this[_0x33e55c(0x2c1)]=_0x14cd8d,this[_0x33e55c(0x28b)]=_0x40bda4,this[_0x33e55c(0x117)]=_0x297283,this[_0x33e55c(0x190)]=_0x906908,this[_0x33e55c(0x239)]=_0x4b95f6,this[_0x33e55c(0x22a)]());}[_0x240916(0x22a)](){const _0x3d46a4=_0x240916;this['disposeWithMe'](this[_0x3d46a4(0x114)][_0x3d46a4(0x151)]['subscribe'](_0xefe530=>{const _0x1e389b=_0x3d46a4,_0x383c73=this['_docStateChangeManagerService']['docStateChange$'][_0x1e389b(0x111)](_0x2a2332=>{const _0xd1d0cf=_0x1e389b;if(_0x2a2332==null)return;const {unitId:_0x3281db,redoState:_0x91822f,commandId:_0x18dd0c}=_0x2a2332;if(_0x3281db!==_0xefe530[_0xd1d0cf(0x22c)])return;const _0x4543cd={'id':_0x18dd0c,'type':_0x445795[_0xd1d0cf(0x2b6)],'params':{'unitId':_0x3281db,'actions':_0x91822f[_0xd1d0cf(0x1db)],'textRanges':null}};_0xefe530[_0xd1d0cf(0x169)](_0x4543cd);});if(_0xefe530['disposeWithMe'](_0x383c73),_0xefe530 instanceof _0x320279){const _0x3d1798={'onTransformIME':_0x54361b=>this['_docTransformIMECacheService']['transformIMECache'](_0x54361b),'onTransformState':_0x509e2f=>this['_docTransformStateCacheService']['transformStateCache'](_0x509e2f),'onTransformSelections':_0x58b394=>this[_0x1e389b(0x28b)][_0x1e389b(0x156)](_0x58b394),'onSyncEditingCollabCursor':_0x1ace80=>this[_0x1e389b(0x117)][_0x1e389b(0x2f3)](_0x1ace80),'onTransformRemoteChangesetByIMECache':_0x5e334b=>this[_0x1e389b(0x1a5)][_0x1e389b(0x17b)](_0x5e334b),'onTransformRemoteChangesetByStateCache':_0x70dc82=>this[_0x1e389b(0x2c1)][_0x1e389b(0x17b)](_0x70dc82)};_0xefe530['addHandlerCallback'](_0x3d1798);}}));}};Se=En([U(0x0,_0x451de1(_0x3199a5)),U(0x1,_0x451de1(_0x4a10bf)),U(0x2,_0x451de1(he)),U(0x3,_0x451de1(ue)),U(0x4,_0x451de1(de)),U(0x5,_0x451de1(ze)),U(0x6,_0x110574),U(0x7,_0x451de1(_0x53f064))],Se);var Z=(_0x1d891c=>(_0x1d891c[_0x1d891c[_0x240916(0x18e)]=0x0]='UNDEFINED',_0x1d891c[_0x1d891c['OK']=0x1]='OK',_0x1d891c[_0x1d891c[_0x240916(0x243)]=0x2]=_0x240916(0x243),_0x1d891c[_0x1d891c[_0x240916(0x15d)]=0x3]=_0x240916(0x15d),_0x1d891c[_0x1d891c['NOT_FOUND']=0x4]=_0x240916(0x242),_0x1d891c[_0x1d891c[_0x240916(0x24e)]=0x5]=_0x240916(0x24e),_0x1d891c[_0x1d891c[_0x240916(0x154)]=0x6]=_0x240916(0x154),_0x1d891c[_0x1d891c[_0x240916(0x232)]=0x7]='INVALID_ARGUMENT',_0x1d891c[_0x1d891c[_0x240916(0x255)]=0x8]=_0x240916(0x255),_0x1d891c[_0x1d891c[_0x240916(0x251)]=0x9]='COMPLETION_FINISHED',_0x1d891c[_0x1d891c['LOGIN_FAILED']=0xa]=_0x240916(0x270),_0x1d891c[_0x1d891c[_0x240916(0xda)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x1d891c[_0x1d891c[_0x240916(0x1b9)]=0xc]=_0x240916(0x1b9),_0x1d891c[_0x1d891c[_0x240916(0x1bb)]=0xd]=_0x240916(0x1bb),_0x1d891c[_0x1d891c[_0x240916(0x11a)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x1d891c[_0x1d891c[_0x240916(0x2af)]=0xf]=_0x240916(0x2af),_0x1d891c[_0x1d891c[_0x240916(0x22d)]=0x10]=_0x240916(0x22d),_0x1d891c[_0x1d891c[_0x240916(0x21b)]=0x64]=_0x240916(0x21b),_0x1d891c[_0x1d891c['ERROR_AGAIN']=0x65]=_0x240916(0x2ce),_0x1d891c[_0x1d891c[_0x240916(0xd7)]=0xc9]='USER_NOT_FOUND',_0x1d891c[_0x1d891c[_0x240916(0x29b)]=0xca]=_0x240916(0x29b),_0x1d891c[_0x1d891c[_0x240916(0x13b)]=0x1389]=_0x240916(0x13b),_0x1d891c[_0x1d891c[_0x240916(0x2f5)]=0x1771]=_0x240916(0x2f5),_0x1d891c[_0x1d891c[_0x240916(0xe5)]=0x1772]=_0x240916(0xe5),_0x1d891c[_0x1d891c[_0x240916(0x2a9)]=0x1773]=_0x240916(0x2a9),_0x1d891c[_0x1d891c[_0x240916(0x180)]=0x1b59]=_0x240916(0x180),_0x1d891c[_0x1d891c[_0x240916(0x206)]=0x1b5a]=_0x240916(0x206),_0x1d891c[_0x1d891c['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x240916(0x1d9),_0x1d891c[_0x1d891c[_0x240916(0x20c)]=0x1b5c]=_0x240916(0x20c),_0x1d891c[_0x1d891c[_0x240916(0x15c)]=0x1b5d]=_0x240916(0x15c),_0x1d891c[_0x1d891c['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x240916(0x285),_0x1d891c[_0x1d891c['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x240916(0xdf),_0x1d891c[_0x1d891c[_0x240916(0x2e5)]=0x232a]=_0x240916(0x2e5),_0x1d891c[_0x1d891c['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x240916(0x288),_0x1d891c[_0x1d891c['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x240916(0x225),_0x1d891c[_0x1d891c[_0x240916(0x30f)]=0x232d]=_0x240916(0x30f),_0x1d891c[_0x1d891c[_0x240916(0x1ea)]=0x2711]=_0x240916(0x1ea),_0x1d891c[_0x1d891c[_0x240916(0x203)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x1d891c[_0x1d891c[_0x240916(0x11f)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x1d891c[_0x1d891c[_0x240916(0x2e2)]=0x2714]=_0x240916(0x2e2),_0x1d891c[_0x1d891c['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x240916(0x209),_0x1d891c[_0x1d891c['YUUMI_ASYNCIO_CANCELLED']=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x1d891c[_0x1d891c[_0x240916(0x29a)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x1d891c[_0x1d891c[_0x240916(0xe6)]=0x271d]=_0x240916(0xe6),_0x1d891c[_0x1d891c['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x240916(0xd8),_0x1d891c[_0x1d891c[_0x240916(0x14b)]=0x271f]=_0x240916(0x14b),_0x1d891c[_0x1d891c[_0x240916(0x1d3)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x1d891c[_0x1d891c['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x240916(0x2bc),_0x1d891c[_0x1d891c['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x240916(0x264),_0x1d891c[_0x1d891c[_0x240916(0x230)]=0x2ee2]=_0x240916(0x230),_0x1d891c[_0x1d891c[_0x240916(0x235)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x1d891c[_0x1d891c[_0x240916(0x237)]=0x2ee4]=_0x240916(0x237),_0x1d891c[_0x1d891c[_0x240916(0x125)]=0x2ee5]=_0x240916(0x125),_0x1d891c[_0x1d891c[_0x240916(0x27d)]=0x32c9]=_0x240916(0x27d),_0x1d891c[_0x1d891c[_0x240916(0x170)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x1d891c[_0x1d891c[_0x240916(0x30b)]=0x32cb]=_0x240916(0x30b),_0x1d891c[_0x1d891c[_0x240916(0xf2)]=0x36b1]=_0x240916(0xf2),_0x1d891c[_0x1d891c[_0x240916(0x14d)]=0x36b2]=_0x240916(0x14d),_0x1d891c[_0x1d891c[_0x240916(0x144)]=0x36b3]=_0x240916(0x144),_0x1d891c[_0x1d891c[_0x240916(0x278)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x1d891c[_0x1d891c[_0x240916(0x2a8)]=0x36b5]=_0x240916(0x2a8),_0x1d891c[_0x1d891c[_0x240916(0x207)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x1d891c[_0x1d891c['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x240916(0x2ea),_0x1d891c[_0x1d891c['ENTITLE_USE_COUPON_NOT_1ST_TRADE']=0x36b8]='ENTITLE_USE_COUPON_NOT_1ST_TRADE',_0x1d891c[_0x1d891c[_0x240916(0x25e)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x1d891c[_0x1d891c[_0x240916(0xe1)]=0x3716]=_0x240916(0xe1),_0x1d891c[_0x1d891c['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0x240916(0x269),_0x1d891c[_0x1d891c[_0x240916(0x2fe)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x1d891c[_0x1d891c[_0x240916(0x149)]=0x3a99]=_0x240916(0x149),_0x1d891c[_0x1d891c[_0x240916(0x192)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x1d891c[_0x1d891c[_0x240916(0x2e9)]=0x3a9b]=_0x240916(0x2e9),_0x1d891c[_0x1d891c[_0x240916(0x240)]=0x3a9c]=_0x240916(0x240),_0x1d891c[_0x1d891c['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x240916(0x301),_0x1d891c[_0x1d891c[_0x240916(0x17e)]=0x3a9e]=_0x240916(0x17e),_0x1d891c[_0x1d891c[_0x240916(0x1e6)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x1d891c[_0x1d891c['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x240916(0x1fd),_0x1d891c[_0x1d891c[_0x240916(0x25c)]=-0x1]=_0x240916(0x25c),_0x1d891c))(Z||{});function vn(_0x27be7c){const _0x59e115=_0x240916;var _0xe5c215,_0x2c58d2;const _0x5cbf99=(_0xe5c215=_0x27be7c['stageInfo'])==null?void 0x0:_0xe5c215[_0x59e115(0x273)],_0x3e885f=((_0x2c58d2=_0x27be7c[_0x59e115(0x304)])==null?void 0x0:_0x2c58d2[_0x59e115(0x12e)])||0x0;return _0x5cbf99===_0x39b8f6[_0x59e115(0x2fd)]&&_0x3e885f>0x0;}function pn(_0x1f3723){const _0x511ea0=_0x240916;return _0x1f3723[_0x511ea0(0x202)]===_0xb5c3c9['SUCCESS'];}var On=Object['getOwnPropertyDescriptor'],Tn=(_0x4f1396,_0x5f4675,_0x5b892a,_0x43ca21)=>{const _0x1d076b=_0x240916;for(var _0x571ac4=_0x43ca21>0x1?void 0x0:_0x43ca21?On(_0x5f4675,_0x5b892a):_0x5f4675,_0x9a4528=_0x4f1396[_0x1d076b(0xfb)]-0x1,_0x4f4cd6;_0x9a4528>=0x0;_0x9a4528--)(_0x4f4cd6=_0x4f1396[_0x9a4528])&&(_0x571ac4=_0x4f4cd6(_0x571ac4)||_0x571ac4);return _0x571ac4;},P=(_0x4a1d68,_0x2c060f)=>(_0x35ea79,_0x2af949)=>_0x2c060f(_0x35ea79,_0x2af949,_0x4a1d68);const Cn=_0x240916(0x181),Rn=_0x240916(0x199),Dn=_0x240916(0xef);let Ie=class extends _0xf771d3{constructor(_0x52c29b,_0x5830b3,_0x518cef,_0x5c75c2,_0x196f90,_0x1e8213,_0x38c548){const _0x31a21f=_0x240916;super(),_(this,_0x31a21f(0x1ec),null),_(this,_0x31a21f(0x2f7),0x0),_(this,'_currentUsage',0x0),_(this,_0x31a21f(0x1cb),[]),_(this,_0x31a21f(0x145),0x0),(this[_0x31a21f(0x190)]=_0x52c29b,this['_commandService']=_0x5830b3,this[_0x31a21f(0x263)]=_0x518cef,this[_0x31a21f(0x19d)]=_0x5c75c2,this[_0x31a21f(0x1d7)]=_0x196f90,this[_0x31a21f(0x26f)]=_0x1e8213,this[_0x31a21f(0x239)]=_0x38c548,this[_0x31a21f(0x11d)]());}[_0x240916(0x11d)](){const _0x34cd14=_0x240916;this[_0x34cd14(0xe0)](this[_0x34cd14(0x208)][_0x34cd14(0xd5)]((_0x34c5cf,_0x283704)=>{const _0x1a3747=_0x34cd14;var _0x2d303a;if(_0x34c5cf['id']!==_0x1971b5['id'])return;const _0x293bd7=_0x34c5cf[_0x1a3747(0x1d8)];if(!this['_hasFormulaInDirtyRanges']((_0x2d303a=_0x293bd7[_0x1a3747(0x10d)])!=null?_0x2d303a:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x1a3747(0x29f)](_0x34c5cf,_0x283704),this[_0x1a3747(0x2e0)](),new _0x100082();})),this[_0x34cd14(0xe0)](this['_commandService'][_0x34cd14(0x171)]((_0x25668d,_0x3102a4)=>{const _0x11c68f=_0x34cd14;if(_0x25668d['id']!==_0x446ee4['id'])return;const _0x2f0dee=_0x25668d[_0x11c68f(0x1d8)];if(vn(_0x2f0dee)){const _0x777358=_0x2664d4();this[_0x11c68f(0x1cb)][_0x11c68f(0x1e0)](_0x777358),this['_startCalculationLimit'](_0x777358);}else{if(pn(_0x2f0dee)&&this[_0x11c68f(0x1cb)][_0x11c68f(0xfb)]>0x0){const _0x21fabb=this['_taskIds'][_0x11c68f(0x13e)]();this['_releaseCalculationLimit'](_0x21fabb);}}}));}[_0x240916(0x185)](){const _0x37d1a7=_0x240916;super[_0x37d1a7(0x185)](),this[_0x37d1a7(0xe7)](),this[_0x37d1a7(0x1cb)]=[],this[_0x37d1a7(0x26d)]=0x0,this[_0x37d1a7(0x2f7)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x240916(0x29f)](_0x4d3fd5,_0x5e2b30){const _0x5525bb=_0x240916;for(let _0x5785be=0x0;_0x5785be<0x1e;_0x5785be++)try{if(await this['_getFormulaLimitStatus'](),this[_0x5525bb(0x16a)]()){this[_0x5525bb(0x1c1)](_0x4d3fd5,_0x5e2b30),this[_0x5525bb(0x190)][_0x5525bb(0x267)]({'content':this[_0x5525bb(0x239)]['t'](_0x5525bb(0x23a)),'type':_0x24cf21[_0x5525bb(0x150)]});return;}await new Promise(_0x2b004b=>{const _0x171f13=_0x5525bb;this[_0x171f13(0x1ec)]=window[_0x171f13(0xfa)](_0x2b004b,0x3e8);});}catch(_0x127fd8){this['_logService']['error'](_0x127fd8);}this[_0x5525bb(0x190)][_0x5525bb(0x267)]({'content':this[_0x5525bb(0x239)]['t'](_0x5525bb(0x176)),'type':_0x24cf21[_0x5525bb(0xd9)]});}[_0x240916(0x1c1)](_0x1e9bc4,_0x5be3ad){const _0x25a098=_0x240916;try{this[_0x25a098(0x208)][_0x25a098(0x282)](_0x1e9bc4['id'],_0x1e9bc4[_0x25a098(0x1d8)],_0x5be3ad);}catch(_0x4631d3){this[_0x25a098(0x26f)][_0x25a098(0x20a)](_0x4631d3);}}[_0x240916(0x307)](_0x38023b,_0x1e8983){const _0x140e8f=_0x240916;_0x1e8983<this[_0x140e8f(0x145)]||(this[_0x140e8f(0x145)]=_0x1e8983,this[_0x140e8f(0x2f7)]=Number[_0x140e8f(0x20e)](_0x38023b[_0x140e8f(0x236)]),this['_currentUsage']=Number['parseInt'](_0x38023b[_0x140e8f(0x115)]));}async[_0x240916(0x1b2)](_0x37965c){const _0x5e9974=_0x240916;var _0x4a3bf1,_0xfee2c6;const _0x57467c=Date[_0x5e9974(0x14e)]();try{const _0x385450=((_0x4a3bf1=this[_0x5e9974(0x263)]['getConfig'](_0x2941e8))==null?void 0x0:_0x4a3bf1['startFormulaLimitUrl'])||Rn,_0x1ea0bb=(await this[_0x5e9974(0x19d)][_0x5e9974(0x1d2)](_0x385450,{'body':JSON['stringify']({'taskId':_0x37965c})}))[_0x5e9974(0x1e4)];if(((_0xfee2c6=_0x1ea0bb[_0x5e9974(0x20a)])==null?void 0x0:_0xfee2c6[_0x5e9974(0x2ad)])!==Z['OK'])return;this[_0x5e9974(0x307)](_0x1ea0bb[_0x5e9974(0x17c)],_0x57467c);}catch(_0x20d104){this[_0x5e9974(0x26f)][_0x5e9974(0x20a)](_0x20d104);}}async['_getFormulaLimitStatus'](_0x1b64a6){const _0x15cc86=_0x240916;var _0x24eb51,_0x3d5b2d;const _0x111b65=Date[_0x15cc86(0x14e)]();try{const _0x3e8b81=((_0x24eb51=this[_0x15cc86(0x263)][_0x15cc86(0x271)](_0x2941e8))==null?void 0x0:_0x24eb51['getformulaLimitStatusUrl'])||Cn,_0x2c8418=_0x1b64a6?_0x3e8b81+_0x15cc86(0x2a5)+encodeURIComponent(_0x1b64a6):_0x3e8b81,_0x433cd2=(await this[_0x15cc86(0x19d)][_0x15cc86(0x1c7)](_0x2c8418))[_0x15cc86(0x1e4)];if(((_0x3d5b2d=_0x433cd2[_0x15cc86(0x20a)])==null?void 0x0:_0x3d5b2d[_0x15cc86(0x2ad)])!==Z['OK'])return;this[_0x15cc86(0x307)](_0x433cd2[_0x15cc86(0x17c)],_0x111b65);}catch(_0x58ea3d){this[_0x15cc86(0x26f)][_0x15cc86(0x20a)](_0x58ea3d);}}async[_0x240916(0x1ad)](_0x5d4a04){const _0x35049f=_0x240916;var _0x33a9a8,_0x12d97a;const _0x61482f=Date[_0x35049f(0x14e)]();try{const _0x41cc6d=((_0x33a9a8=this[_0x35049f(0x263)][_0x35049f(0x271)](_0x2941e8))==null?void 0x0:_0x33a9a8[_0x35049f(0x2c0)])||Dn,_0x1ccc45=(await this[_0x35049f(0x19d)][_0x35049f(0x1d2)](_0x41cc6d,{'body':JSON[_0x35049f(0x286)]({'taskId':_0x5d4a04})}))['body'];if(((_0x12d97a=_0x1ccc45[_0x35049f(0x20a)])==null?void 0x0:_0x12d97a['code'])!==Z['OK'])return;this[_0x35049f(0x307)](_0x1ccc45[_0x35049f(0x17c)],_0x61482f);}catch(_0x1eae34){this['_logService'][_0x35049f(0x20a)](_0x1eae34);}}[_0x240916(0x16a)](){const _0x1efa3e=_0x240916;return this[_0x1efa3e(0x2f7)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x1efa3e(0x26d)]>0x0;}[_0x240916(0xe7)](){const _0x20b54c=_0x240916;this['_pollingInterval']&&(clearTimeout(this[_0x20b54c(0x1ec)]),this[_0x20b54c(0x1ec)]=null);}[_0x240916(0x2e0)](){const _0x5edadb=_0x240916;this['_messageService'][_0x5edadb(0x267)]({'content':this[_0x5edadb(0x239)]['t']('formula.calculation.waiting'),'type':_0x24cf21[_0x5edadb(0xf4)]});}[_0x240916(0x226)](_0x30b86f){const _0x3a097e=_0x240916;for(const _0x28efaf of _0x30b86f){const {unitId:_0x4b0a4f,sheetId:_0x1de772,range:_0x4bc7cf}=_0x28efaf,_0x13760f=this['_univerInstanceService'][_0x3a097e(0x2b7)](_0x4b0a4f);if(!_0x13760f)continue;const _0x417ceb=_0x13760f[_0x3a097e(0x12b)](_0x1de772);if(!_0x417ceb)continue;const _0x28dff1=_0x417ceb[_0x3a097e(0x155)]();for(let _0xdbc18d=_0x4bc7cf['startRow'];_0xdbc18d<=_0x4bc7cf[_0x3a097e(0x2c3)];_0xdbc18d++)for(let _0x22ad76=_0x4bc7cf[_0x3a097e(0x302)];_0x22ad76<=_0x4bc7cf[_0x3a097e(0x316)];_0x22ad76++){const _0x109408=_0x28dff1['getValue'](_0xdbc18d,_0x22ad76);if(_0x109408&&(_0x53c2f3(_0x109408['f'])||_0x390515(_0x109408['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x451de1(_0x110574)),P(0x1,_0x5e5675),P(0x2,_0x1510c1),P(0x3,_0x451de1(_0x20e19d)),P(0x4,_0x81870d),P(0x5,_0x48e521),P(0x6,_0x451de1(_0x53f064))],Ie);var Nn=Object[_0x240916(0x1f8)],bn=(_0x16caaa,_0x27fecd,_0x2f6a2b,_0xa07a3f)=>{const _0x270f42=_0x240916;for(var _0x5d19f0=_0xa07a3f>0x1?void 0x0:_0xa07a3f?Nn(_0x27fecd,_0x2f6a2b):_0x27fecd,_0x2feb93=_0x16caaa[_0x270f42(0xfb)]-0x1,_0x593ff2;_0x2feb93>=0x0;_0x2feb93--)(_0x593ff2=_0x16caaa[_0x2feb93])&&(_0x5d19f0=_0x593ff2(_0x5d19f0)||_0x5d19f0);return _0x5d19f0;},Ue=(_0x16eebe,_0x43e2b7)=>(_0x57a900,_0x3a42d9)=>_0x43e2b7(_0x57a900,_0x3a42d9,_0x16eebe);let He=class extends _0xf771d3{constructor(_0xf17147,_0x15b5b8,_0x2cd838){const _0x15e221=_0x240916;super(),_(this,_0x15e221(0x21a),new Map()),_(this,_0x15e221(0x2f1),new Map()),_(this,_0x15e221(0xeb),!0x1),(this[_0x15e221(0x263)]=_0xf17147,this[_0x15e221(0x2bf)]=_0x15b5b8,this[_0x15e221(0x1a2)]=_0x2cd838);}['disableLocalCache'](){const _0x1795c9=_0x240916;this[_0x1795c9(0xeb)]=!0x0;}[_0x240916(0x12d)](){const _0x5b5564=_0x240916;this[_0x5b5564(0xeb)]=!0x1;}get[_0x240916(0x25b)](){const _0x34be35=_0x240916;return this[_0x34be35(0x2f1)];}[_0x240916(0x185)](){const _0x5a4247=_0x240916;this[_0x5a4247(0x162)]()[_0x5a4247(0x164)](()=>super[_0x5a4247(0x185)]());}async[_0x240916(0x11c)](_0x56c2a8){const _0xc62a80=_0x240916;return this[_0xc62a80(0xeb)]?null:this[_0xc62a80(0x2bf)]['getItem'](_0x373961(_0x56c2a8));}async['saveOfflineData'](_0xbd0006,_0x1e3614){const _0xa6cb1a=_0x240916;return!!this[_0xa6cb1a(0x2bf)]['setItem'](_0xbd0006,_0x1e3614);}[_0x240916(0x133)](_0x4fcd71,_0x24a0cd,_0x2fcdf9,_0x4e8872){const _0x114609=_0x240916,_0x579992=this[_0x114609(0x1a2)][_0x114609(0x1d1)](_0x4fcd71);this['_cachedData']['set'](_0x4fcd71,{'unitID':_0x4fcd71,'type':_0x24a0cd,'awaitingChangeset':_0x2fcdf9,'mutations':_0x4e8872,'rev':_0x579992}),this[_0x114609(0x2f1)][_0x114609(0x298)](_0x4fcd71)||this[_0x114609(0x2cb)](_0x4fcd71);}[_0x240916(0x2cb)](_0x50ec32){const _0x17f6bc=_0x240916,_0x5a566d=this[_0x17f6bc(0x1bd)]();_0x5a566d===0x0?this[_0x17f6bc(0x2a3)](_0x50ec32):this['_saveTaskMap'][_0x17f6bc(0x26a)](_0x50ec32,setTimeout(()=>this[_0x17f6bc(0x2a3)](_0x50ec32),_0x5a566d));}[_0x240916(0x1bd)](){const _0x394b5f=_0x240916;var _0x454119;return(_0x454119=this['_configService'][_0x394b5f(0x271)](_0x67fadd))!=null?_0x454119:_0x197b86;}[_0x240916(0x2a3)](_0xdd3727){const _0x1805ab=_0x240916,_0x1f8f00=this[_0x1805ab(0x2f1)][_0x1805ab(0x1c7)](_0xdd3727);return _0x1f8f00!==void 0x0&&window[_0x1805ab(0xdb)](_0x1f8f00),this[_0x1805ab(0x2bf)][_0x1805ab(0x12f)](_0x373961(_0xdd3727),this[_0x1805ab(0x21a)]['get'](_0xdd3727))[_0x1805ab(0x164)](()=>this[_0x1805ab(0x2f1)]['delete'](_0xdd3727));}async[_0x240916(0x162)](){const _0x5e8620=_0x240916,_0x360b50=[];this[_0x5e8620(0x2f1)][_0x5e8620(0x2e8)]((_0x44e107,_0x3a6ed4)=>{const _0x426479=_0x5e8620;window[_0x426479(0xdb)](_0x44e107),_0x360b50[_0x426479(0x1e0)](this[_0x426479(0x2a3)](_0x3a6ed4)[_0x426479(0x164)](()=>{const _0x2c421d=_0x426479;this[_0x2c421d(0x2f1)]['delete'](_0x3a6ed4);}));}),await Promise[_0x5e8620(0x22b)](_0x360b50);}};He=bn([Ue(0x0,_0x1510c1),Ue(0x1,_0x3a4d59),Ue(0x2,_0x451de1(_0x5092a2))],He);class Ln extends _0x3122c4{constructor(){const _0x47ae80=_0x240916;super(),_(this,'urlChange$'),this[_0x47ae80(0xd0)]=_0x572af5(window,_0x47ae80(0x2f6))['pipe'](_0xb0eea8(this[_0x47ae80(0x221)]),_0x5f297a(0x1),_0x15fcb9(void 0x0));}[_0x240916(0x277)](_0x15ed13,_0x2cb787,_0x4a13f2=!0x1){const _0x233b2f=_0x240916,_0xed3890=new URL(window[_0x233b2f(0x175)]['href']);_0xed3890[_0x233b2f(0x211)][_0x233b2f(0x26a)](_0x15ed13,_0x2cb787),_0x4a13f2?window[_0x233b2f(0x18a)][_0x233b2f(0xf3)]('','',_0xed3890[_0x233b2f(0x257)]()):window['history']['pushState']('','',_0xed3890['toString']());}[_0x240916(0x2d0)](_0x5500cd,_0x325cf2=!0x1){const _0xaa7c31=_0x240916,_0x528d70=new URL(window[_0xaa7c31(0x175)][_0xaa7c31(0x10f)]);_0x528d70[_0xaa7c31(0x211)][_0xaa7c31(0x1dc)](_0x5500cd),_0x325cf2?window[_0xaa7c31(0x18a)][_0xaa7c31(0xf3)]('','',_0x528d70[_0xaa7c31(0x257)]()):window[_0xaa7c31(0x18a)][_0xaa7c31(0x296)]('','',_0x528d70['toString']());}[_0x240916(0x2ec)](_0x38ada4){const _0x2805ab=_0x240916;var _0x12d76a;return(_0x12d76a=new URL(window[_0x2805ab(0x175)][_0x2805ab(0x10f)])[_0x2805ab(0x211)]['get'](_0x38ada4))!=null?_0x12d76a:void 0x0;}}var Un=Object[_0x240916(0x10c)],Mn=Object[_0x240916(0x1f8)],An=(_0x2cee78,_0x2a53b7,_0x2b0ab8)=>_0x2a53b7 in _0x2cee78?Un(_0x2cee78,_0x2a53b7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b0ab8}):_0x2cee78[_0x2a53b7]=_0x2b0ab8,Pn=(_0x4bf775,_0x17fc95,_0x5e975f,_0x27601b)=>{const _0x30eb13=_0x240916;for(var _0x3f9399=_0x27601b>0x1?void 0x0:_0x27601b?Mn(_0x17fc95,_0x5e975f):_0x17fc95,_0x96b569=_0x4bf775[_0x30eb13(0xfb)]-0x1,_0x232d18;_0x96b569>=0x0;_0x96b569--)(_0x232d18=_0x4bf775[_0x96b569])&&(_0x3f9399=_0x232d18(_0x3f9399)||_0x3f9399);return _0x3f9399;},Me=(_0x31604e,_0x5ee5a7)=>(_0x34cb48,_0x43a1e4)=>_0x5ee5a7(_0x34cb48,_0x43a1e4,_0x31604e),wn=(_0x227e0f,_0x2b437f,_0x3d4d20)=>An(_0x227e0f,_0x2b437f+'',_0x3d4d20);const yn=_0x240916(0x266);let Ye=class extends _0x18025e{constructor(_0xffe9cd=_t,_0x51f6fc,_0x1f39af,_0x3f7991){const _0x11d9df=_0x240916;super(),this[_0x11d9df(0x2de)]=_0xffe9cd,this[_0x11d9df(0x212)]=_0x51f6fc,this[_0x11d9df(0x26e)]=_0x1f39af,this['_configService']=_0x3f7991;const {..._0x5331df}=_0x3aa68c({},_t,this['_config']);this['_configService'][_0x11d9df(0x1c0)](hn,_0x5331df);}[_0x240916(0x107)](){const _0x2c71fc=_0x240916;this[_0x2c71fc(0x233)](),this[_0x2c71fc(0x1da)]();}[_0x240916(0x182)](){const _0x123ae8=_0x240916;this[_0x123ae8(0x1e5)]();}[_0x240916(0x233)](){const _0x28c10b=_0x240916;var _0x3deb17;const _0x249448=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x237440,{'useClass':_0x276479}],[_0x45d2d0,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x28c10b(0x2de)][_0x28c10b(0x231)]&&_0x249448['push']([le]),_0x4856aa(this[_0x28c10b(0x26e)],_0xc1ed92(_0x249448,(_0x3deb17=this[_0x28c10b(0x2de)])==null?void 0x0:_0x3deb17[_0x28c10b(0xce)]));}[_0x240916(0x1e5)](){const _0x337cd2=_0x240916;this[_0x337cd2(0xe0)](this[_0x337cd2(0x212)][_0x337cd2(0x184)](_0x2e1b84['UNIVER_DOC'],[Fe])),this['disposeWithMe'](this[_0x337cd2(0x212)]['registerRenderModule'](_0x2e1b84['UNIVER_SHEET'],[ke]));}['_initDependencies'](){const _0x232c67=_0x240916;_0xa68686(this[_0x232c67(0x26e)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this['_config'][_0x232c67(0x231)]&&_0xa68686(this[_0x232c67(0x26e)],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x394ca8(_0x3f596b),Me(0x1,_0x4d689b),Me(0x2,_0x451de1(_0x30dac5)),Me(0x3,_0x1510c1)],Ye);var $n=Object[_0x240916(0x1f8)],xn=(_0x112283,_0x3381be,_0x19b01f,_0x20bc41)=>{const _0x185cbe=_0x240916;for(var _0x2e91fb=_0x20bc41>0x1?void 0x0:_0x20bc41?$n(_0x3381be,_0x19b01f):_0x3381be,_0x493aa5=_0x112283[_0x185cbe(0xfb)]-0x1,_0x923c34;_0x493aa5>=0x0;_0x493aa5--)(_0x923c34=_0x112283[_0x493aa5])&&(_0x2e91fb=_0x923c34(_0x2e91fb)||_0x2e91fb);return _0x2e91fb;},J=(_0x4cdfb6,_0x24b803)=>(_0x139953,_0x2e1004)=>_0x24b803(_0x139953,_0x2e1004,_0x4cdfb6);let ut=class extends _0x5d1c82{constructor(_0x56f010,_0x5e3f3d,_0x16afdf,_0x36d556,_0x3e2695){super(_0x56f010,_0x5e3f3d,_0x16afdf,_0x36d556,_0x3e2695);}async[_0x240916(0x1a9)](_0x3b1abe){const _0x4ae41f=_0x240916,_0xad87d0=await this[_0x4ae41f(0x305)](),_0x44190b=this[_0x4ae41f(0x275)](_0x3b1abe,_0xad87d0);return this[_0x4ae41f(0x2bd)](_0x44190b);}[_0x240916(0x275)](_0x282c27,_0x1b8bb6){const _0x1cf8d6=_0x240916,_0x3438f6=typeof window>'u'?new URL(_0x282c27):new URL(_0x282c27,window[_0x1cf8d6(0x175)][_0x1cf8d6(0x1be)]);_0x3438f6[_0x1cf8d6(0x211)]['set'](_0x1cf8d6(0x30c),_0x1b8bb6);const _0x4ae457=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1cf8d6(0x248)]);return _0x4ae457[_0x1cf8d6(0x1c7)](_0x1cf8d6(0x2d6))&&_0x3438f6[_0x1cf8d6(0x211)][_0x1cf8d6(0x26a)]('runId',_0x4ae457[_0x1cf8d6(0x1c7)](_0x1cf8d6(0x2d6))),_0x3438f6['toString']();}async[_0x240916(0x305)](){const _0x562d57=_0x240916;var _0x4f3bee,_0xfe27ae,_0x3c3093;const _0x3fb753=this[_0x562d57(0x263)]['getConfig'](_0x2941e8),_0x1c74d0=(_0x4f3bee=_0x3fb753==null?void 0x0:_0x3fb753[_0x562d57(0x2da)])!=null?_0x4f3bee:_0x67f602;return(_0x3c3093=(_0xfe27ae=(await this[_0x562d57(0x19d)]['get'](_0x1c74d0,{'headers':{'Content-Type':_0x562d57(0x293)}}))[_0x562d57(0x1e4)])==null?void 0x0:_0xfe27ae[_0x562d57(0x283)])!=null?_0x3c3093:'';}};ut=xn([J(0x0,_0x451de1(_0x30dac5)),J(0x1,_0x451de1(_0x20e19d)),J(0x2,_0x1510c1),J(0x3,_0x48e521),J(0x4,_0x295e6f)],ut);var Bn=Object[_0x240916(0x1f8)],Fn=(_0x2f3657,_0x596011,_0x5b4065,_0x2f9016)=>{const _0x55de58=_0x240916;for(var _0x5d4022=_0x2f9016>0x1?void 0x0:_0x2f9016?Bn(_0x596011,_0x5b4065):_0x596011,_0x41d0f6=_0x2f3657[_0x55de58(0xfb)]-0x1,_0x537bce;_0x41d0f6>=0x0;_0x41d0f6--)(_0x537bce=_0x2f3657[_0x41d0f6])&&(_0x5d4022=_0x537bce(_0x5d4022)||_0x5d4022);return _0x5d4022;},Ae=(_0x23685a,_0x57233c)=>(_0x5df0aa,_0x560a3c)=>_0x57233c(_0x5df0aa,_0x560a3c,_0x23685a);let dt=class extends _0xf771d3{constructor(_0x51ccea,_0x4a758b,_0x33982a){const _0x6efc03=_0x240916;super(),this[_0x6efc03(0x300)]=_0x51ccea,this[_0x6efc03(0x19d)]=_0x4a758b,this[_0x6efc03(0x263)]=_0x33982a;}async[_0x240916(0x217)](_0x26f5cf,_0x3e742f,_0x3b9d1f,..._0x13932e){const _0x142301=_0x240916;var _0x14873a,_0x26c791,_0x442d30,_0x54e31e;const _0x344cc0=this[_0x142301(0x300)][_0x142301(0xf8)]();if(!_0x344cc0)throw new Error(_0x142301(0x28d));const _0x2e099c=((_0x14873a=this['_configService']['getConfig'](_0x2b191a))!=null?_0x14873a:_0x50718d)+'/'+_0x26f5cf+'/run/'+_0x3e742f,_0x286e05=new URL(window[_0x142301(0x175)]['href']),_0x48a2f9={'scriptId':_0x26f5cf,'runId':(_0x26c791=_0x286e05[_0x142301(0x211)][_0x142301(0x1c7)](_0x142301(0x2d6)))!=null?_0x26c791:'','function':_0x3e742f,'unitId':_0x344cc0[_0x142301(0x2a6)](),'argsOfFunction':JSON[_0x142301(0x286)](_0x13932e),'invokeId':(_0x442d30=_0x3b9d1f['invokeId'])!=null?_0x442d30:'','executionId':(_0x54e31e=_0x3b9d1f[_0x142301(0x2fc)])!=null?_0x54e31e:''};try{const _0x1223d1=await this[_0x142301(0x19d)][_0x142301(0x1d2)](_0x2e099c,{'body':_0x48a2f9});return _0x1223d1[_0x142301(0x1e4)][_0x142301(0x20a)]&&_0x1223d1[_0x142301(0x1e4)][_0x142301(0x20a)][_0x142301(0x2ad)]!==Z['OK']?_0x142301(0x19b):_0x1223d1['body'][_0x142301(0x127)];}catch{return _0x142301(0x19b);}}};dt=Fn([Ae(0x0,_0x81870d),Ae(0x1,_0x451de1(_0x20e19d)),Ae(0x2,_0x1510c1)],dt);const St=0x7530,It='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0xf771d3{constructor(){const _0x439150=_0x240916;super(),_(this,_0x439150(0x1f2),_0x2664d4()),_(this,'_selfUnitIDs',new Set()),_(this,_0x439150(0x165),new Map()),_(this,_0x439150(0x29c),null),_(this,_0x439150(0x2b8),new Map()),_(this,_0x439150(0x167),new Map()),this[_0x439150(0x163)]();}[_0x240916(0x185)](){const _0xf728fd=_0x240916;super[_0xf728fd(0x185)](),this['_clearOtherTimers'][_0xf728fd(0x2e8)]((_0x4843dc,_0x11fdee)=>this[_0xf728fd(0x28f)](_0x11fdee)),this['_heartbeatTimer']&&window['clearInterval'](this[_0xf728fd(0x29c)]);}[_0x240916(0x1e2)](_0x1ffb8c){const _0x29b232=_0x240916;return this['_ensureSubject'](_0x1ffb8c)[_0x29b232(0x1e1)](_0x57e7da());}['editingUnit'](_0x14fdb1){const _0x1c2439=_0x240916;this[_0x1c2439(0x28e)]['size']===0x0&&this[_0x1c2439(0x29e)](),this[_0x1c2439(0x28e)][_0x1c2439(0x19a)](_0x14fdb1),this[_0x1c2439(0x24f)]({'type':0x0,'memberID':this[_0x1c2439(0x1f2)],'unitIDs':[_0x14fdb1],'isForwarded':!0x1});}[_0x240916(0x20d)](_0x84ea9f){const _0x410cda=_0x240916;this[_0x410cda(0x28e)][_0x410cda(0x1dc)](_0x84ea9f),this[_0x410cda(0x28e)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x410cda(0x120)](this['_heartbeatTimer']);}[_0x240916(0x163)](){const _0x22378f=_0x240916;this[_0x22378f(0xe0)](_0x13afa3(_0x572af5(window,_0x22378f(0xde))[_0x22378f(0x111)](_0x2b7893=>{const _0x1283ab=_0x22378f;if(_0x2b7893[_0x1283ab(0x2db)]!==It||!_0x2b7893[_0x1283ab(0x210)])return;const _0x358698=JSON[_0x1283ab(0x1f1)](_0x2b7893[_0x1283ab(0x210)]);this[_0x1283ab(0x2d3)](_0x358698);}))),window[_0x22378f(0x216)]('unload',()=>this[_0x22378f(0x24f)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x22378f(0x14a)](this[_0x22378f(0x28e)])}));}['_handleEvent'](_0x1e68b5){const _0x116719=_0x240916;switch(_0x1e68b5[_0x116719(0x2f0)]){case 0x0:this[_0x116719(0x136)](_0x1e68b5);break;case 0x1:this[_0x116719(0x1fe)](_0x1e68b5);break;case 0x2:this[_0x116719(0x311)](_0x1e68b5);break;}}['_handleJoinEvent'](_0x25b7f7){const _0x301b67=_0x240916,{unitIDs:_0x2f0a5c,memberID:_0x7afb04,isForwarded:_0x2314bb}=_0x25b7f7;_0x2f0a5c[_0x301b67(0x2e8)](_0x258139=>{const _0x20a8d0=_0x301b67;if(!_0x2314bb&&this[_0x20a8d0(0x165)][_0x20a8d0(0x298)](_0x258139)&&this[_0x20a8d0(0x27b)](_0x258139)[_0x20a8d0(0x1cc)](_0x58c8e7[_0x20a8d0(0x187)]),!this[_0x20a8d0(0x165)][_0x20a8d0(0x298)](_0x258139)||!this[_0x20a8d0(0x165)][_0x20a8d0(0x1c7)](_0x258139)[_0x20a8d0(0x298)](_0x7afb04)){const _0x29690f=this['_unitOnClients'][_0x20a8d0(0x1c7)](_0x258139)||new Set();_0x29690f[_0x20a8d0(0x19a)](_0x7afb04),this[_0x20a8d0(0x165)][_0x20a8d0(0x26a)](_0x258139,_0x29690f),this[_0x20a8d0(0x24a)](_0x7afb04);}}),_0x2314bb||this[_0x301b67(0x24f)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x301b67(0x28e)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0xd7ad1b){const _0x5bff4e=_0x240916;this['_removeClearOtherTimer'](_0xd7ad1b);const _0x53689c=window[_0x5bff4e(0xfa)](()=>{const _0x13319c=_0x5bff4e;this[_0x13319c(0x165)][_0x13319c(0x2e8)](_0x1cbbb8=>{const _0x554a39=_0x13319c;_0x1cbbb8[_0x554a39(0x1dc)](_0xd7ad1b);});},St*0x2);this[_0x5bff4e(0x2b8)][_0x5bff4e(0x26a)](_0xd7ad1b,_0x53689c);}[_0x240916(0x28f)](_0x182db1){const _0x1a6d25=_0x240916;if(this[_0x1a6d25(0x2b8)][_0x1a6d25(0x298)](_0x182db1)){const _0x4e9097=this[_0x1a6d25(0x2b8)][_0x1a6d25(0x1c7)](_0x182db1);_0x4e9097&&window['clearTimeout'](_0x4e9097),this[_0x1a6d25(0x2b8)][_0x1a6d25(0x26a)](_0x182db1,null);}}[_0x240916(0x1fe)](_0x513160){const _0x429984=_0x240916,{memberID:_0x55b070,unitIDs:_0x59290a}=_0x513160;_0x59290a[_0x429984(0x2e8)](_0xfe526a=>{const _0x36a53b=_0x429984;var _0x423bd9;const _0x11bb43=this[_0x36a53b(0x165)][_0x36a53b(0x1c7)](_0xfe526a);_0x11bb43&&(_0x11bb43[_0x36a53b(0x1dc)](_0x55b070),(_0x423bd9=this[_0x36a53b(0x27b)](_0xfe526a))==null||_0x423bd9[_0x36a53b(0x1cc)](_0x11bb43[_0x36a53b(0xe4)]===0x0?_0x58c8e7[_0x36a53b(0x152)]:_0x58c8e7[_0x36a53b(0x187)]));}),this[_0x429984(0x28f)](_0x55b070);}[_0x240916(0x311)](_0x15425d){this['_scheduleClearOtherTimer'](_0x15425d['memberID']);}[_0x240916(0x24f)](_0x574c47){const _0x2a8c80=_0x240916;localStorage['setItem'](It,JSON[_0x2a8c80(0x286)](_0x574c47));}[_0x240916(0x29e)](){const _0x6b6044=_0x240916;this[_0x6b6044(0x29c)]=window[_0x6b6044(0x30e)](()=>{const _0x3b1eab=_0x6b6044;this[_0x3b1eab(0x24f)]({'type':0x2,'memberID':this[_0x3b1eab(0x1f2)]});},St);}[_0x240916(0x27b)](_0x43d6ce){const _0x3f939e=_0x240916;return this['_unitStatus'][_0x3f939e(0x298)](_0x43d6ce)||this[_0x3f939e(0x167)][_0x3f939e(0x26a)](_0x43d6ce,new _0x37599d(_0x58c8e7['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x3f939e(0x1c7)](_0x43d6ce);}}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 _0x2d19ee=_0x3b77;(function(_0xf99d55,_0x9c8459){const _0x208190=_0x3b77,_0x14acff=_0xf99d55();while(!![]){try{const _0x24b4e3=-parseInt(_0x208190(0x1e6))/0x1*(-parseInt(_0x208190(0x208))/0x2)+parseInt(_0x208190(0x211))/0x3+parseInt(_0x208190(0x1f5))/0x4*(parseInt(_0x208190(0x13f))/0x5)+-parseInt(_0x208190(0x2b7))/0x6*(parseInt(_0x208190(0x255))/0x7)+parseInt(_0x208190(0x1f1))/0x8+parseInt(_0x208190(0x213))/0x9*(-parseInt(_0x208190(0x21a))/0xa)+parseInt(_0x208190(0x32c))/0xb*(-parseInt(_0x208190(0x316))/0xc);if(_0x24b4e3===_0x9c8459)break;else _0x14acff['push'](_0x14acff['shift']());}catch(_0x3ce0ae){_0x14acff['push'](_0x14acff['shift']());}}}(_0x4498,0xbd9fb));var Yt=Object[_0x2d19ee(0x18c)],Wt=(_0x1b3d81,_0x4aa84c,_0x2f974c)=>_0x4aa84c in _0x1b3d81?Yt(_0x1b3d81,_0x4aa84c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f974c}):_0x1b3d81[_0x4aa84c]=_0x2f974c,_=(_0x523605,_0x55d198,_0x22d6ab)=>Wt(_0x523605,typeof _0x55d198!=_0x2d19ee(0x2e2)?_0x55d198+'':_0x55d198,_0x22d6ab);import{jsx as _0x13af06,jsxs as _0x350478}from'react/jsx-runtime';import{CollaborationStatus as _0x14e54a,CollaborationSessionService as _0x431e53,CollaborationController as _0x151f08,DataLoaderService as _0x29e90b,MemberService as _0x50cc3e,SessionStatus as _0x476595,ILocalCacheService as _0x26b1ca,CollaborationUIEventService as _0x195a88,CollaborationUIEventId as _0x54f12f,DocCollaborationEntity as _0x5da887,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x189603,getLocalCacheKey as _0x5850c1,LOCAL_CACHE_INTERVAL as _0x9823a9,LOCAL_CACHE_INTERVAL_KEY as _0x3d4cf4,UniverCollaborationClientPlugin as _0x3b5370,CollaborationSocketService as _0x1caedd,DEFAULT_WS_SESSION_TICKET_URL as _0x3e7782,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x26e0b7,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x36e979,UnitStatus as _0x59d149}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x548920,IUniverInstanceService as _0x5ea64d,Inject as _0x13e3c7,Injector as _0x6717c8,Disposable as _0x55618d,createIdentifier as _0x926075,ILogService as _0x2bfead,ICommandService as _0x44deef,Optional as _0x33a5b3,RxDisposable as _0x5b8c04,Workbook as _0x828b8,DOC_RANGE_TYPE as _0x18a061,debounce as _0x1b4ae8,Rectangle as _0x5e86a6,DisposableCollection as _0x1a4482,toDisposable as _0x5684e2,UniverInstanceType as _0x1de887,generateRandomId as _0x377b4b,COLORS as _0x2aff34,ColorKit as _0x44158f,ThemeService as _0x1331d6,fromEventSubject as _0x5b2081,Tools as _0x2fbfda,CommandType as _0x569143,IConfigService as _0x46a8a4,CanceledError as _0x1dbb9e,isFormulaString as _0x14248c,isFormulaId as _0xcdcb23,ILocalStorageService as _0x12194a,DependentOn as _0x3f4a8a,Plugin as _0x3c443e,merge as _0x2b7521,registerDependencies as _0x2c2aad,mergeOverrideWithDependencies as _0x3b0ae8,touchDependencies as _0x248c4c}from'@univerjs/core';import{useObservable as _0x4db001,useDependency as _0x1efc03,IUIPartsService as _0x97227,BuiltInUIPart as _0xe393a3,connectInjector as _0x350c26,IBeforeCloseService as _0x58a1a6,IMessageService as _0x551408,INotificationService as _0x3ad334}from'@univerjs/ui';import{BehaviorSubject as _0x5689a5,switchMap as _0x1650bc,of as _0x272a51,takeUntil as _0xefe94,debounceTime as _0x5be43e,Subject as _0x233e98,filter as _0x2dc8e8,merge as _0x2a4316,combineLatest as _0x383e72,fromEvent as _0x197cc9,shareReplay as _0x240f5f,mapTo as _0x11e4f1,distinctUntilChanged as _0x52d636}from'rxjs';import{Tooltip as _0x54f95e,clsx as _0x43e4cc,MessageType as _0xe3500e}from'@univerjs/design';import{useRef as _0x24162f,createElement as _0x1b2a1b,forwardRef as _0x1b3544,useCallback as _0x204a71}from'react';import{IRemoteInstanceService as _0x317103}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x5e7345,RefRangeService as _0x14edcb,SetSelectionsOperation as _0x3b568d,SheetsSelectionsService as _0x47686c,EffectRefRangId as _0x114d3,handleIRemoveRow as _0x442d3c,handleIRemoveCol as _0x3fee0c,handleMoveRange as _0x1f2d01,handleInsertRow as _0x26c1a0,handleInsertRangeMoveRight as _0x24380d,handleInsertRangeMoveDown as _0x56e9d2,handleInsertCol as _0xd21edf,handleDeleteRangeMoveUp as _0x1edd71,handleDeleteRangeMoveLeft as _0x5efdb6,runRefRangeMutations as _0x3367c1}from'@univerjs/sheets';import{Shape as _0x5dc12a,Rect as _0x2bdd35,getColor as _0x4c407c,RegularPolygon as _0x36ecd6,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x5e28be,Vector2 as _0x59221c,SHEET_VIEWPORT_KEY as _0x29367b,IRenderManagerService as _0x3e8801}from'@univerjs/engine-render';import{HTTPService as _0x58299b,ISocketService as _0x8a83ca,WebSocketService as _0x1d6857}from'@univerjs/network';import{IDocClipboardService as _0x4f593b,NodePositionConvertToCursor as _0x10e74e,NodePositionConvertToRectRange as _0x2997cf,TEXT_RANGE_LAYER_INDEX as _0x978a3f,SetDocZoomRatioOperation as _0x2d8f9a,DocIMEInputManagerService as _0x57bd0a,DocStateChangeManagerService as _0x7528bc}from'@univerjs/docs-ui';import{IImageIoService as _0x4b07be}from'@univerjs/drawing';import{ITransformService as _0x3990fc,CollaborationEvent as _0x48c478,isTransformMutationFailure as _0xbfd48e,isTransformMutationsWithChangesetSuccess as _0x1f1a8a,RevisionService as _0x1c8bce,ISnapshotServerService as _0x35e927}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x231784,RichTextEditingMutation as _0x41a482,DocSelectionManagerService as _0x318e9f,DocSkeletonManagerService as _0x1ccfa7}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x3f42d5,serializeRangeWithSheet as _0x542bca,FormulaExecuteStageType as _0x5d8674,FormulaExecutedStateType as _0x2ae0c4,SetFormulaCalculationStartMutation as _0x4f8fdb,SetFormulaCalculationNotificationMutation as _0x33cc11}from'@univerjs/engine-formula';import{map as _0x4406a1,filter as _0x53c322,throttleTime as _0x42dfe3,takeUntil as _0xb23e26,switchMap as _0x2c4106}from'rxjs/operators';import{SheetSkeletonManagerService as _0x33de6b,getCoordByCell as _0x412d35,getSheetObject as _0x2cc164}from'@univerjs/sheets-ui';function Ge({ref:_0xc92e74,..._0x316474}){const _0x82fa73=_0x2d19ee,{icon:_0x19c54d,id:_0x4cf573,className:_0x414dd2,extend:_0x8d932b,..._0x1e0faf}=_0x316474,_0x7c0a71=(_0x82fa73(0x31b)+_0x4cf573+'\x20'+(_0x414dd2||''))[_0x82fa73(0x20d)](),_0x2fc3cd=_0x24162f('_'+vi());return At(_0x19c54d,''+_0x4cf573,{'defIds':_0x19c54d[_0x82fa73(0x2cb)],'idSuffix':_0x2fc3cd[_0x82fa73(0x349)]},{'ref':_0xc92e74,'className':_0x7c0a71,..._0x1e0faf},_0x8d932b);}function At(_0x2a31d9,_0x3fe495,_0xd794b5,_0x429547,_0x248b0e){const _0x1ea6f2=_0x2d19ee;return _0x1b2a1b(_0x2a31d9[_0x1ea6f2(0x143)],{'key':_0x3fe495,...gi(_0x2a31d9,_0xd794b5,_0x248b0e),..._0x429547},(Ei(_0x2a31d9,_0xd794b5)[_0x1ea6f2(0x1b2)]||[])['map']((_0x5a0478,_0x3ed1d9)=>At(_0x5a0478,_0x3fe495+'-'+_0x2a31d9[_0x1ea6f2(0x143)]+'-'+_0x3ed1d9,_0xd794b5,void 0x0,_0x248b0e)));}function gi(_0x371add,_0x2e5f5e,_0x424494){const _0xea8bc9=_0x2d19ee,_0x2c36dd={..._0x371add[_0xea8bc9(0x278)]};_0x424494!=null&&_0x424494[_0xea8bc9(0x1d6)]&&_0x2c36dd[_0xea8bc9(0x1be)]==='colorChannel1'&&(_0x2c36dd[_0xea8bc9(0x1be)]=_0x424494[_0xea8bc9(0x1d6)]),_0x371add[_0xea8bc9(0x143)]===_0xea8bc9(0x1ef)&&_0x2c36dd['id']&&(_0x2c36dd['id']=_0x2c36dd['id']+_0x2e5f5e[_0xea8bc9(0x15a)]),Object[_0xea8bc9(0x2c0)](_0x2c36dd)[_0xea8bc9(0x136)](([_0x5adecf,_0x29bf92])=>{const _0x361bb4=_0xea8bc9;_0x5adecf===_0x361bb4(0x1ef)&&typeof _0x29bf92==_0x361bb4(0x132)&&(_0x2c36dd[_0x5adecf]=_0x29bf92[_0x361bb4(0x23b)](/url\(#(.*)\)/,_0x361bb4(0x2e8)+_0x2e5f5e[_0x361bb4(0x15a)]+')'));});const {defIds:_0x305019}=_0x2e5f5e;return!_0x305019||_0x305019['length']===0x0||(_0x371add[_0xea8bc9(0x143)]===_0xea8bc9(0x2fa)&&_0x2c36dd[_0xea8bc9(0x1ed)]&&(_0x2c36dd[_0xea8bc9(0x1ed)]=_0x2c36dd[_0xea8bc9(0x1ed)]+_0x2e5f5e[_0xea8bc9(0x15a)]),Object[_0xea8bc9(0x2c0)](_0x2c36dd)['forEach'](([_0x44c803,_0x34f37e])=>{const _0x53ae8f=_0xea8bc9;typeof _0x34f37e==_0x53ae8f(0x132)&&(_0x2c36dd[_0x44c803]=_0x34f37e[_0x53ae8f(0x23b)](/url\(#(.*)\)/,_0x53ae8f(0x2e8)+_0x2e5f5e[_0x53ae8f(0x15a)]+')'));})),_0x2c36dd;}function Ei(_0x18d73f,_0x421119){const _0x18a6f6=_0x2d19ee;var _0x41fb6b;const {defIds:_0x5abf62}=_0x421119;return!_0x5abf62||_0x5abf62['length']===0x0?_0x18d73f:_0x18d73f[_0x18a6f6(0x143)]===_0x18a6f6(0x2d5)&&((_0x41fb6b=_0x18d73f['children'])!=null&&_0x41fb6b['length'])?{..._0x18d73f,'children':_0x18d73f['children']['map'](_0x2b33ca=>typeof _0x2b33ca[_0x18a6f6(0x278)]['id']==_0x18a6f6(0x132)&&_0x5abf62&&_0x5abf62['includes'](_0x2b33ca[_0x18a6f6(0x278)]['id'])?{..._0x2b33ca,'attrs':{..._0x2b33ca[_0x18a6f6(0x278)],'id':_0x2b33ca[_0x18a6f6(0x278)]['id']+_0x421119['idSuffix']}}:_0x2b33ca)}:_0x18d73f;}function vi(){const _0x11c765=_0x2d19ee;return Math[_0x11c765(0x19f)]()['toString'](0x24)['substring'](0x2,0x8);}Ge['displayName']='UniverIcon';const pi={'tag':'svg','attrs':{'xmlns':_0x2d19ee(0x26d),'fill':_0x2d19ee(0x29b),'viewBox':_0x2d19ee(0x209),'width':_0x2d19ee(0x34d),'height':_0x2d19ee(0x34d)},'children':[{'tag':'g','attrs':{'clipPath':_0x2d19ee(0x371)},'children':[{'tag':_0x2d19ee(0x2a2),'attrs':{'stroke':_0x2d19ee(0x1eb),'d':_0x2d19ee(0x1ff),'strokeLinecap':_0x2d19ee(0x2ab),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2d19ee(0x2d5),'attrs':{},'children':[{'tag':_0x2d19ee(0x1b9),'attrs':{'id':_0x2d19ee(0x24d)},'children':[{'tag':_0x2d19ee(0x2a2),'attrs':{'fill':_0x2d19ee(0x385),'d':_0x2d19ee(0x341)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Pt=_0x1b3544(function(_0x324bab,_0x4881df){const _0x497cdd=_0x2d19ee;return _0x1b2a1b(Ge,Object[_0x497cdd(0x20b)]({},_0x324bab,{'id':_0x497cdd(0x149),'ref':_0x4881df,'icon':pi}));});Pt['displayName']='OffLineIcon';const Oi={'tag':'svg','attrs':{'xmlns':_0x2d19ee(0x26d),'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x2d19ee(0x34d),'height':_0x2d19ee(0x34d)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x2d19ee(0x2a2),'attrs':{'stroke':_0x2d19ee(0x1eb),'d':_0x2d19ee(0x31c),'strokeLinecap':_0x2d19ee(0x2ab),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2d19ee(0x1b9),'attrs':{'id':_0x2d19ee(0x13b)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x2d19ee(0x341),'transform':_0x2d19ee(0x2b1)}}]}]}],'defIds':[_0x2d19ee(0x13b)]},wt=_0x1b3544(function(_0x1e2834,_0x1efcf0){const _0x3a0b15=_0x2d19ee;return _0x1b2a1b(Ge,Object['assign']({},_0x1e2834,{'id':_0x3a0b15(0x1f4),'ref':_0x1efcf0,'icon':Oi}));});wt[_0x2d19ee(0x321)]=_0x2d19ee(0x147);function Ti(_0xf1464c){const _0x58e388=_0x2d19ee;switch(_0xf1464c){case _0x14e54a[_0x58e388(0x370)]:return _0x58e388(0x35a);case _0x14e54a['CONFLICT']:return _0x58e388(0x1c5);case _0x14e54a[_0x58e388(0x342)]:return _0x58e388(0x314);case _0x14e54a[_0x58e388(0x130)]:return'collabStatus.notCollab';case _0x14e54a['AWAITING']:case _0x14e54a[_0x58e388(0x274)]:return _0x58e388(0x2e4);case _0x14e54a[_0x58e388(0x29c)]:case _0x14e54a[_0x58e388(0x338)]:return'collabStatus.synced';}}function Ci(_0x5c4d90){const _0x2fc783=_0x2d19ee,{status$:_0x275023}=_0x5c4d90,_0xd83c4=_0x4db001(_0x275023,_0x14e54a[_0x2fc783(0x130)]),_0x24e969=_0x1efc03(_0x548920),_0x58f16b=_0x1efc03(_0x431e53),_0x563bbb=_0xd83c4!==_0x14e54a[_0x2fc783(0x370)],_0x49b1d4=_0x24e969['t'](Ti(_0xd83c4)),_0x63d40e=_0x563bbb?_0x13af06(wt,{}):_0x13af06(Pt,{}),_0x534432=_0x204a71(()=>{const _0x250563=_0x2fc783;_0x563bbb||_0x58f16b[_0x250563(0x358)]();},[_0x563bbb,_0x58f16b]);function _0x539232(){const _0x4abcc9=_0x2fc783;return _0x350478(_0x4abcc9(0x168),{'className':_0x4abcc9(0x19c),'onClick':_0x534432,'children':[_0x13af06(_0x4abcc9(0x168),{'className':_0x43e4cc(_0x4abcc9(0x297),{'univer-text-green-500':_0x563bbb,'univer-text-red-500':!_0x563bbb}),'children':_0x63d40e}),_0x13af06('div',{'className':_0x4abcc9(0x257),'children':_0x49b1d4})]});}return _0x563bbb?_0x539232():_0x13af06(_0x54f95e,{'title':_0x24e969['t']('collab-client.tooltip.reconnect'),'children':_0x539232()});}var Ri=Object[_0x2d19ee(0x2a7)],Di=(_0x4147cc,_0xb6d86c,_0x447ead,_0x35cb94)=>{for(var _0x42b4c0=_0x35cb94>0x1?void 0x0:_0x35cb94?Ri(_0xb6d86c,_0x447ead):_0xb6d86c,_0x2d3768=_0x4147cc['length']-0x1,_0x1a2fb3;_0x2d3768>=0x0;_0x2d3768--)(_0x1a2fb3=_0x4147cc[_0x2d3768])&&(_0x42b4c0=_0x1a2fb3(_0x42b4c0)||_0x42b4c0);return _0x42b4c0;},se=(_0x5de384,_0x165912)=>(_0x7c8ec8,_0x8b5a7c)=>_0x165912(_0x7c8ec8,_0x8b5a7c,_0x5de384);let ae=class extends _0x55618d{constructor(_0x585adc,_0x7af9d2,_0x1131b5,_0x4291a7){const _0x2aa964=_0x2d19ee;super(),_(this,_0x2aa964(0x2d7),new _0x5689a5(_0x14e54a[_0x2aa964(0x130)])),(this[_0x2aa964(0x17f)]=_0x585adc,this[_0x2aa964(0x2b2)]=_0x7af9d2,this[_0x2aa964(0x156)]=_0x1131b5,this['_uiPartsService']=_0x4291a7,this[_0x2aa964(0x18e)](),this[_0x2aa964(0x2d1)]());}[_0x2d19ee(0x2d1)](){const _0x556679=_0x2d19ee;this[_0x556679(0x1b6)](this['_univerInstanceService'][_0x556679(0x26b)][_0x556679(0x359)](_0x1650bc(()=>{const _0x980042=_0x556679,_0x28cfb3=this[_0x980042(0x17f)][_0x980042(0x17b)]();return _0x28cfb3?this['_collaborationController'][_0x980042(0x148)](_0x28cfb3[_0x980042(0x377)]()):_0x272a51(null);}),_0x1650bc(_0x14a7ec=>_0x14a7ec?_0x14a7ec[_0x556679(0x305)]:_0x272a51(_0x14e54a[_0x556679(0x130)])))['subscribe'](_0x48b82e=>{const _0x42796b=_0x556679;this[_0x42796b(0x2d7)]['next'](_0x48b82e);}));}['_initStatusComponent'](){const _0x20f055=_0x2d19ee;this[_0x20f055(0x1b6)](this[_0x20f055(0x16d)][_0x20f055(0x1ac)](_0xe393a3[_0x20f055(0x15b)],()=>_0x350c26(Ni({'status$':this[_0x20f055(0x2d7)][_0x20f055(0x27b)]()}),this['_injector'])));}};ae=Di([se(0x0,_0x5ea64d),se(0x1,_0x13e3c7(_0x6717c8)),se(0x2,_0x13e3c7(_0x151f08)),se(0x3,_0x97227)],ae);function Ni(_0x48c6d1){const {status$:_0x24a863}=_0x48c6d1;return function(){return _0x13af06(Ci,{'status$':_0x24a863});};}function _0x3b77(_0x495d42,_0x58f022){_0x495d42=_0x495d42-0x12e;const _0x449872=_0x4498();let _0x3b7737=_0x449872[_0x495d42];return _0x3b7737;}const yt=_0x926075(_0x2d19ee(0x258));var bi=Object[_0x2d19ee(0x2a7)],Li=(_0x3b574f,_0x3577ae,_0x37f3ad,_0x32370a)=>{for(var _0x4559b5=_0x32370a>0x1?void 0x0:_0x32370a?bi(_0x3577ae,_0x37f3ad):_0x3577ae,_0x3fe8aa=_0x3b574f['length']-0x1,_0x43e158;_0x3fe8aa>=0x0;_0x3fe8aa--)(_0x43e158=_0x3b574f[_0x3fe8aa])&&(_0x4559b5=_0x43e158(_0x4559b5)||_0x4559b5);return _0x4559b5;},K=(_0x3bf197,_0x4af006)=>(_0x461226,_0x33cfe7)=>_0x4af006(_0x461226,_0x33cfe7,_0x3bf197);let ce=class extends _0x5b8c04{constructor(_0x2449f7,_0x3c62ac,_0x45e227,_0x2684de,_0x4f2bc4){const _0x11190c=_0x2d19ee;super(),this[_0x11190c(0x354)]=_0x2449f7,this['_logService']=_0x3c62ac,this[_0x11190c(0x162)]=_0x45e227,this['_dataLoaderService']=_0x2684de,_0x4f2bc4?_0x4f2bc4==null||_0x4f2bc4[_0x11190c(0x159)]()['then'](()=>this['_init']()):(this[_0x11190c(0x244)][_0x11190c(0x1f7)](_0x11190c(0x15d),_0x11190c(0x1d4)),this[_0x11190c(0x1e9)]());}async['_init'](){const _0x21298f=_0x2d19ee,_0x5f4f18=this[_0x21298f(0x354)][_0x21298f(0x172)](_0x21298f(0x235)),_0x3b9424=this[_0x21298f(0x354)]['getParam'](_0x21298f(0x164)),_0x1d76a3=this[_0x21298f(0x354)]['getParam'](_0x21298f(0x261));if(!_0x5f4f18||!_0x3b9424){this['_logService']['debug']('[CollaborationDataLoaderController]',_0x21298f(0x2a6));return;}const _0x38d3aa=await this[_0x21298f(0x2e9)][_0x21298f(0x154)](_0x5f4f18,Number(_0x3b9424),_0x1d76a3);_0x38d3aa&&_0x38d3aa instanceof _0x828b8&&this[_0x21298f(0x315)](_0x38d3aa);}async[_0x2d19ee(0x315)](_0x305d26){const _0x42f09e=_0x2d19ee;await this[_0x42f09e(0x33c)](_0x305d26),_0x305d26['activeSheet$'][_0x42f09e(0x359)](_0xefe94(this[_0x42f09e(0x339)]))['subscribe'](_0x17ed7f=>{const _0x5b25c9=_0x42f09e;_0x17ed7f&&this[_0x5b25c9(0x32f)](_0x17ed7f);}),this[_0x42f09e(0x354)][_0x42f09e(0x34f)][_0x42f09e(0x359)](_0xefe94(this[_0x42f09e(0x339)]))[_0x42f09e(0x150)](()=>this[_0x42f09e(0x33c)](_0x305d26));}[_0x2d19ee(0x32f)](_0x187158,_0x5b6825=!0x1){const _0x5e11e0=_0x2d19ee,_0xc8acc6=this['_urlService']['getParam'](_0x5e11e0(0x261));_0x187158[_0x5e11e0(0x2e6)]()!==_0xc8acc6&&this['_urlService'][_0x5e11e0(0x1f6)](_0x5e11e0(0x261),_0x187158['getSheetId'](),_0x5b6825);}async[_0x2d19ee(0x33c)](_0x291d6b){const _0x4ba364=_0x2d19ee;var _0xeaaa63;const _0x1941e7=this['_urlService'][_0x4ba364(0x172)](_0x4ba364(0x261));if(!_0x1941e7||!_0x291d6b['getSheetBySheetId'](_0x1941e7)){const _0x596227=_0x291d6b[_0x4ba364(0x1e3)]()[0x0],_0x52ac8b=_0x291d6b[_0x4ba364(0x275)](_0x596227);if(!_0x52ac8b)return;this[_0x4ba364(0x32f)](_0x52ac8b,!0x0),await this[_0x4ba364(0x162)]['executeCommand'](_0x5e7345['id'],{'unitId':_0x291d6b['getUnitId'](),'subUnitId':_0x596227});return;}((_0xeaaa63=_0x291d6b[_0x4ba364(0x273)]())==null?void 0x0:_0xeaaa63[_0x4ba364(0x2e6)]())!==_0x1941e7&&await this[_0x4ba364(0x162)][_0x4ba364(0x16a)](_0x5e7345['id'],{'unitId':_0x291d6b[_0x4ba364(0x377)](),'subUnitId':_0x1941e7});}};ce=Li([K(0x0,yt),K(0x1,_0x2bfead),K(0x2,_0x44deef),K(0x3,_0x13e3c7(_0x29e90b)),K(0x4,_0x33a5b3(_0x317103))],ce);var Ui=Object[_0x2d19ee(0x2a7)],Mi=(_0x58e900,_0x2d1bae,_0x57dc17,_0x11b1f2)=>{const _0x559028=_0x2d19ee;for(var _0xa3b5af=_0x11b1f2>0x1?void 0x0:_0x11b1f2?Ui(_0x2d1bae,_0x57dc17):_0x2d1bae,_0x34b2dd=_0x58e900[_0x559028(0x375)]-0x1,_0x3bc50d;_0x34b2dd>=0x0;_0x34b2dd--)(_0x3bc50d=_0x58e900[_0x34b2dd])&&(_0xa3b5af=_0x3bc50d(_0xa3b5af)||_0xa3b5af);return _0xa3b5af;},rt=(_0x4b00db,_0x2eff46)=>(_0x85a7cc,_0x33e5b5)=>_0x2eff46(_0x85a7cc,_0x33e5b5,_0x4b00db);let $e=class extends _0x5b8c04{constructor(_0x226cfa,_0x5d0f7a){const _0x520808=_0x2d19ee;super(),this[_0x520808(0x22b)]=_0x226cfa,this['_imageIoService']=_0x5d0f7a,this[_0x520808(0x1e9)]();}[_0x2d19ee(0x1e9)](){const _0x9a31ca=_0x2d19ee,_0xfaa1fc=this;this['disposeWithMe'](this[_0x9a31ca(0x22b)][_0x9a31ca(0x194)]({'onBeforePasteImage':async _0xf86f=>{const _0x3d977d=_0x9a31ca,_0x372908=await _0xfaa1fc[_0x3d977d(0x1a8)]['saveImage'](_0xf86f);return _0x372908?{'source':_0x372908['source'],'imageSourceType':_0x372908[_0x3d977d(0x135)]}:null;}}));}};$e=Mi([rt(0x0,_0x4f593b),rt(0x1,_0x4b07be)],$e);const ot=[_0x2d19ee(0x306),_0x2d19ee(0x28e),_0x2d19ee(0x228),'red.300',_0x2d19ee(0x2ee),_0x2d19ee(0x17e)];class Ke extends _0x55618d{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}[_0x2d19ee(0x267)](_0x40acbb){const _0x4c8a37=_0x2d19ee;if(this['_assignedColors']['has'](_0x40acbb))return this['_assignedColors'][_0x4c8a37(0x1a4)](_0x40acbb);const _0x39f607=ot[this[_0x4c8a37(0x301)]];return this[_0x4c8a37(0x301)]=(this[_0x4c8a37(0x301)]+0x1)%ot['length'],this[_0x4c8a37(0x1f0)]['set'](_0x40acbb,_0x39f607),_0x39f607;}}function $t(_0xc22d0){const _0x2c9473=_0x2d19ee;let _0x343932='';for(const _0x59f08c of _0xc22d0){const {startOffset:_0x178db6,endOffset:_0xf4352c,isActive:_0x452d75,rangeType:_0x13666e,segmentId:_0x366bc6,segmentPage:_0xef9c6c}=_0x59f08c;_0x343932[_0x2c9473(0x375)]&&(_0x343932+=','),_0x343932+=_0x178db6+':'+_0xf4352c+':'+(_0x452d75?'1':'0')+':'+_0x13666e+':'+_0x366bc6+':'+_0xef9c6c;}return _0x343932;}function Ai(_0x489dd3){const _0x22a264=_0x2d19ee,_0x195122=_0x489dd3[_0x22a264(0x223)](','),_0xa0cd0f=[];for(const _0x452fc6 of _0x195122){const [_0x1dd0ad,_0x1d42c0,_0x1ac622,_0x17ee72,_0x32e4b0,_0x2adb58]=_0x452fc6[_0x22a264(0x223)](':');_0xa0cd0f[_0x22a264(0x1bb)]({'startOffset':Number(_0x1dd0ad),'endOffset':Number(_0x1d42c0),'collapsed':_0x1dd0ad===_0x1d42c0,'isActive':_0x1ac622==='1','rangeType':_0x17ee72===_0x18a061['TEXT']?_0x18a061[_0x22a264(0x21f)]:_0x18a061[_0x22a264(0x1d8)],'segmentId':typeof _0x32e4b0==_0x22a264(0x132)?String(_0x32e4b0):'','segmentPage':Number(_0x2adb58!=null?_0x2adb58:-0x1)});}return _0xa0cd0f['some'](_0x953d6d=>_0x953d6d[_0x22a264(0x1b8)])||(_0xa0cd0f[0x0][_0x22a264(0x1b8)]=!0x0),_0xa0cd0f;}class ze extends _0x5b8c04{constructor(){const _0x5c5301=_0x2d19ee;super(...arguments),_(this,_0x5c5301(0x2de),new _0x5689a5(null)),_(this,_0x5c5301(0x2dc),this['_collabCursorState$'][_0x5c5301(0x27b)]());}['syncEditingCollabCursor'](_0xa88ba9){const _0x1fc8af=_0x2d19ee,{unitID:_0x16a303,memberID:_0x132aec,textRanges:_0x19d6bd}=_0xa88ba9,_0x1c2bf0=$t(_0x19d6bd);if(_0x1c2bf0==='')return;const _0x3ae1a9={'unitID':_0x16a303,'memberID':_0x132aec,'selection':_0x1c2bf0};this['_collabCursorState$'][_0x1fc8af(0x1a9)](_0x3ae1a9);}}var Pi=Object[_0x2d19ee(0x2a7)],wi=(_0x42c420,_0x3f71af,_0x152013,_0x59352b)=>{const _0x15c1ab=_0x2d19ee;for(var _0x1ab8a6=_0x59352b>0x1?void 0x0:_0x59352b?Pi(_0x3f71af,_0x152013):_0x3f71af,_0x3c5025=_0x42c420[_0x15c1ab(0x375)]-0x1,_0xcbb8e4;_0x3c5025>=0x0;_0x3c5025--)(_0xcbb8e4=_0x42c420[_0x3c5025])&&(_0x1ab8a6=_0xcbb8e4(_0x1ab8a6)||_0x1ab8a6);return _0x1ab8a6;},A=(_0x35d785,_0x5dccc0)=>(_0x453bdb,_0x590021)=>_0x5dccc0(_0x453bdb,_0x590021,_0x35d785);const yi=0x12c,$i=0x64;let xe=class extends _0x5b8c04{constructor(_0xff6ff,_0x4b1055,_0xdccaa6,_0xe66107,_0x1afff0,_0x381aad,_0x51c78a,_0x5be8fd,_0x5a0ae8){const _0x536b0a=_0x2d19ee;super(),_(this,_0x536b0a(0x2a1),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new _0x5689a5(new Map())),_(this,'cursorInfo$',this['_cursorInfo$'][_0x536b0a(0x27b)]()),_(this,_0x536b0a(0x229),new _0x5689a5([])),_(this,_0x536b0a(0x265),this[_0x536b0a(0x229)][_0x536b0a(0x359)](_0x5be43e(yi))),_(this,_0x536b0a(0x2bf),_0x1b4ae8(_0x5cbcda=>{const _0x2e00f6=_0x536b0a,_0xc59269={'eventID':_0x48c478[_0x2e00f6(0x141)],'data':{'unitID':this['unitID'],'memberID':this[_0x2e00f6(0x337)]['getMemberID'](),'selection':$t(_0x5cbcda)}};this[_0x2e00f6(0x337)][_0x2e00f6(0x16e)](_0xc59269,this['unitID']);},$i)),(this[_0x536b0a(0x369)]=_0xff6ff,this[_0x536b0a(0x337)]=_0x4b1055,this[_0x536b0a(0x2b2)]=_0xdccaa6,this[_0x536b0a(0x1e7)]=_0xe66107,this[_0x536b0a(0x268)]=_0x1afff0,this[_0x536b0a(0x33b)]=_0x381aad,this[_0x536b0a(0x2f6)]=_0x51c78a,this[_0x536b0a(0x17f)]=_0x5be8fd,this['_commandService']=_0x5a0ae8);}get[_0x2d19ee(0x344)](){const _0x1a3616=_0x2d19ee;return this[_0x1a3616(0x2eb)][_0x1a3616(0x378)]();}get[_0x2d19ee(0x2d2)](){const _0x5a59b9=_0x2d19ee;return this['_roomMembers$'][_0x5a59b9(0x378)]();}[_0x2d19ee(0x2cf)](){const _0x1ae3b6=_0x2d19ee;super['dispose'](),this[_0x1ae3b6(0x2eb)][_0x1ae3b6(0x1a9)](new Map()),this[_0x1ae3b6(0x2eb)][_0x1ae3b6(0x2a5)](),this[_0x1ae3b6(0x229)][_0x1ae3b6(0x1a9)]([]),this['_roomMembers$'][_0x1ae3b6(0x2a5)]();}[_0x2d19ee(0x155)](){const _0x53e333=_0x2d19ee;this[_0x53e333(0x1e9)]||(this[_0x53e333(0x1e9)]=!0x0,this[_0x53e333(0x337)][_0x53e333(0x351)]['pipe'](_0xefe94(this['dispose$']))[_0x53e333(0x150)](_0x3be386=>{const _0x52a13f=_0x53e333;_0x3be386===_0x476595[_0x52a13f(0x1d5)]?this[_0x52a13f(0x24f)]():this[_0x52a13f(0x1bc)]();}),this[_0x53e333(0x337)][_0x53e333(0x246)][_0x53e333(0x359)](_0xefe94(this[_0x53e333(0x339)]))[_0x53e333(0x150)](_0x579e85=>{const _0x3035ac=_0x53e333,_0x331905=_0x579e85[_0x3035ac(0x33a)];_0x331905===_0x48c478[_0x3035ac(0x141)]&&this['_onCursorUpdate'](_0x579e85),_0x331905===_0x48c478[_0x3035ac(0x284)]&&this['_onCursorDelete'](_0x579e85);}),this['disposeWithMe'](this['_commandService'][_0x53e333(0x21e)](_0x1b44c8=>{const _0xca1ef4=_0x53e333,_0x5756f7=_0x1b44c8[_0xca1ef4(0x19b)];_0x5756f7!=null&&this[_0xca1ef4(0x2a1)]&&_0x1b44c8['id']===_0x231784['id']&&_0x5756f7[_0xca1ef4(0x352)]===this['unitID']&&_0x5756f7[_0xca1ef4(0x2c9)]===!0x1&&_0x5756f7[_0xca1ef4(0x2d4)]['length']>0x0&&this[_0xca1ef4(0x2bf)](_0x5756f7[_0xca1ef4(0x2d4)]);})),this[_0x53e333(0x33b)][_0x53e333(0x2dc)][_0x53e333(0x359)](_0xefe94(this['dispose$']))['subscribe'](_0x99354b=>{const _0x57ce8d=_0x53e333;if((_0x99354b==null?void 0x0:_0x99354b['unitID'])!==this[_0x57ce8d(0x369)])return;const _0x4d48f1={'eventID':_0x48c478['UPDATE_CURSOR'],'data':_0x99354b};this[_0x57ce8d(0x324)](_0x4d48f1);}),this[_0x53e333(0x1b6)](this[_0x53e333(0x162)][_0x53e333(0x21e)](_0x307512=>{const _0x178961=_0x53e333;if(_0x307512[_0x178961(0x19b)]==null)return;const _0x5dd176=_0x307512[_0x178961(0x19b)];if(_0x307512['id']!==_0x41a482['id']||_0x5dd176[_0x178961(0x352)]!==this[_0x178961(0x369)])return;const _0x3a186c={'id':'doc.mutation.rich-text-editing','params':_0x5dd176},_0x5acc3a=this[_0x178961(0x344)];for(const [_0x42064e,_0x42b25a]of _0x5acc3a){const _0x1bd933={'id':_0x178961(0x12f),'params':{'unitId':this[_0x178961(0x369)],'actions':null,'textRanges':_0x42b25a[_0x178961(0x2d4)]}},_0x4f1b54=this[_0x178961(0x2f6)][_0x178961(0x1d9)](_0x3a186c,_0x1bd933,!0x1);if(_0xbfd48e(_0x4f1b54))throw _0x4f1b54['error'];_0x5acc3a['set'](_0x42064e,{..._0x42b25a,'ranges':_0x4f1b54[_0x178961(0x2cc)][_0x178961(0x19b)]['textRanges']});}queueMicrotask(()=>{const _0x11f23a=_0x178961;this[_0x11f23a(0x2eb)][_0x11f23a(0x1a9)](_0x5acc3a);});})));}['_onCursorUpdate'](_0x1ca262){const _0x3dd18b=_0x2d19ee;var _0x55525f,_0x2e7bf8;const {memberID:_0x308034,selection:_0x5b8179}=_0x1ca262[_0x3dd18b(0x2d3)],_0x34ef10=Ai(_0x5b8179),_0xfcaf4=(_0x2e7bf8=(_0x55525f=this[_0x3dd18b(0x268)]['getMember'](this[_0x3dd18b(0x369)],_0x308034))==null?void 0x0:_0x55525f[_0x3dd18b(0x28a)])!=null?_0x2e7bf8:_0x3dd18b(0x2b6),_0x433957={'color':this[_0x3dd18b(0x1e7)][_0x3dd18b(0x267)](_0x308034),'name':_0xfcaf4,'ranges':_0x34ef10},_0x5a9e65=this[_0x3dd18b(0x344)];_0x5a9e65['set'](_0x308034,_0x433957),this[_0x3dd18b(0x2eb)]['next'](_0x5a9e65);}[_0x2d19ee(0x1bf)](_0x31d479){const _0x26666a=_0x2d19ee,{memberID:_0x8207de}=_0x31d479['data'],_0x1d7ba8=this[_0x26666a(0x344)];_0x1d7ba8[_0x26666a(0x20a)](_0x8207de),this['_cursorInfo$'][_0x26666a(0x1a9)](_0x1d7ba8);}['_toggleOnline'](){const _0x27a8f4=_0x2d19ee;var _0x48d5b9;if(this['_online']=!0x0,((_0x48d5b9=this[_0x27a8f4(0x17f)][_0x27a8f4(0x17b)]())==null?void 0x0:_0x48d5b9[_0x27a8f4(0x377)]())!==this['unitID'])return;const _0x1d5d50=this['_injector'][_0x27a8f4(0x1a4)](_0x318e9f)['getDocRanges']();Array[_0x27a8f4(0x1c8)](_0x1d5d50)&&_0x1d5d50['length']>0x0&&this[_0x27a8f4(0x2bf)](_0x1d5d50);}['_toggleOffline'](){const _0x39e8b2=_0x2d19ee;this[_0x39e8b2(0x2a1)]=!0x1;}};xe=wi([A(0x2,_0x13e3c7(_0x6717c8)),A(0x3,_0x13e3c7(Ke)),A(0x4,_0x13e3c7(_0x50cc3e)),A(0x5,_0x13e3c7(ze)),A(0x6,_0x3990fc),A(0x7,_0x5ea64d),A(0x8,_0x44deef)],xe);var xi=Object[_0x2d19ee(0x2a7)],Bi=(_0x4cb8db,_0x1a5725,_0x30938d,_0x1fbff0)=>{for(var _0x1c494b=_0x1fbff0>0x1?void 0x0:_0x1fbff0?xi(_0x1a5725,_0x30938d):_0x1a5725,_0x5b4857=_0x4cb8db['length']-0x1,_0x3e18aa;_0x5b4857>=0x0;_0x5b4857--)(_0x3e18aa=_0x4cb8db[_0x5b4857])&&(_0x1c494b=_0x3e18aa(_0x1c494b)||_0x1c494b);return _0x1c494b;},B=(_0x48e32f,_0x1c121c)=>(_0x5214c7,_0x41ff08)=>_0x1c121c(_0x5214c7,_0x41ff08,_0x48e32f);const Fi=0x12c,ki=0x64,Hi=()=>{let _0xefb2cd=[],_0x116d10=!0x1;return _0x7051ed=>{const _0x2047a7=_0x3b77;_0xefb2cd[_0x2047a7(0x1bb)](_0x7051ed),_0x116d10||(_0x116d10=!0x0,setTimeout(()=>{_0xefb2cd['forEach'](_0x17e8cf=>_0x17e8cf()),_0xefb2cd=[],_0x116d10=!0x1;}));};};let Be=class extends _0x5b8c04{constructor(_0x4a1246,_0x23a247,_0x4637bd,_0x27cf16,_0x158d33,_0x1e2809,_0x55f71c,_0x3ac80d){const _0x3a8ff1=_0x2d19ee;super(),_(this,_0x3a8ff1(0x2a1),!0x1),_(this,_0x3a8ff1(0x1e9),!0x1),_(this,_0x3a8ff1(0x2eb),new _0x5689a5(new Map())),_(this,_0x3a8ff1(0x2a9),this['_cursorInfo$'][_0x3a8ff1(0x27b)]()),_(this,'_roomMembers$',new _0x5689a5([])),_(this,_0x3a8ff1(0x265),this[_0x3a8ff1(0x229)]['pipe'](_0x5be43e(Fi))),_(this,_0x3a8ff1(0x2bf),_0x1b4ae8((_0x1a971c,_0x4634aa)=>{const _0xedf9ff=_0x3a8ff1,_0x5a0137={'eventID':_0x48c478[_0xedf9ff(0x141)],'data':{'unitID':this[_0xedf9ff(0x369)],'memberID':this['_session'][_0xedf9ff(0x151)](),'selection':_0x542bca(_0x1a971c,_0x4634aa[_0xedf9ff(0x186)])}};this[_0xedf9ff(0x337)]['send'](_0x5a0137,this[_0xedf9ff(0x369)]);},ki)),(this[_0x3a8ff1(0x369)]=_0x4a1246,this[_0x3a8ff1(0x337)]=_0x23a247,this['_injector']=_0x4637bd,this[_0x3a8ff1(0x1e7)]=_0x27cf16,this[_0x3a8ff1(0x268)]=_0x158d33,this[_0x3a8ff1(0x17f)]=_0x1e2809,this[_0x3a8ff1(0x162)]=_0x55f71c,this[_0x3a8ff1(0x308)]=_0x3ac80d);}get[_0x2d19ee(0x344)](){const _0x92a995=_0x2d19ee;return this['_cursorInfo$'][_0x92a995(0x378)]();}get['roomMembers'](){const _0x2f79b2=_0x2d19ee;return this['_roomMembers$'][_0x2f79b2(0x378)]();}[_0x2d19ee(0x2cf)](){const _0x45c467=_0x2d19ee;super[_0x45c467(0x2cf)](),this[_0x45c467(0x2eb)][_0x45c467(0x1a9)](new Map()),this['_cursorInfo$'][_0x45c467(0x2a5)](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0x45c467(0x2a5)]();}['init'](){const _0x52e5cc=_0x2d19ee;this[_0x52e5cc(0x1e9)]||(this[_0x52e5cc(0x1e9)]=!0x0,this[_0x52e5cc(0x337)][_0x52e5cc(0x351)]['pipe'](_0xefe94(this[_0x52e5cc(0x339)]))['subscribe'](_0x5a3da4=>{const _0x5609fd=_0x52e5cc;_0x5a3da4===_0x476595[_0x5609fd(0x1d5)]?this[_0x5609fd(0x24f)]():this[_0x5609fd(0x1bc)]();}),this[_0x52e5cc(0x337)][_0x52e5cc(0x246)]['pipe'](_0xefe94(this[_0x52e5cc(0x339)]))[_0x52e5cc(0x150)](_0x4a10bb=>{const _0x1fa8d5=_0x52e5cc,_0x44e94d=_0x4a10bb['eventID'];_0x44e94d===_0x48c478[_0x1fa8d5(0x141)]&&this[_0x1fa8d5(0x324)](_0x4a10bb),_0x44e94d===_0x48c478['USERS_LEAVE']&&this['_onCursorDelete'](_0x4a10bb);}),this[_0x52e5cc(0x133)](),this[_0x52e5cc(0x1b6)](this[_0x52e5cc(0x162)][_0x52e5cc(0x21e)](_0x113298=>{const _0x462820=_0x52e5cc;if(this['_online']&&_0x113298['id']===_0x3b568d['id']&&_0x113298[_0x462820(0x19b)]['unitId']===this['unitID']){const _0x25091a=_0x113298['params'];this[_0x462820(0x2bf)](_0x25091a['subUnitId'],_0x25091a[_0x462820(0x331)][0x0]);}})));}[_0x2d19ee(0x324)](_0x5595c4){const _0x3916d0=_0x2d19ee;var _0x50131a,_0x55fc69;const {memberID:_0xc67e23,selection:_0x1504e3}=_0x5595c4[_0x3916d0(0x2d3)],{sheetName:_0x331cab,range:_0x116c6c}=_0x3f42d5(_0x1504e3),_0x12b7f6={'name':(_0x55fc69=(_0x50131a=this['_memberService'][_0x3916d0(0x2ad)](this[_0x3916d0(0x369)],_0xc67e23))==null?void 0x0:_0x50131a[_0x3916d0(0x28a)])!=null?_0x55fc69:'Unknown\x20user','range':this[_0x3916d0(0x381)](_0x331cab,_0x116c6c),'sheetID':_0x331cab,'color':this[_0x3916d0(0x1e7)]['assignAColorForMemberID'](_0xc67e23),'selection':_0x1504e3},_0x66b4c5=this[_0x3916d0(0x344)];_0x66b4c5[_0x3916d0(0x165)](_0xc67e23,_0x12b7f6),this[_0x3916d0(0x2eb)][_0x3916d0(0x1a9)](_0x66b4c5);}[_0x2d19ee(0x1bf)](_0x258b2c){const _0x14975e=_0x2d19ee,{memberID:_0x273128}=_0x258b2c[_0x14975e(0x2d3)],_0x47a572=this['cursorInfo'];_0x47a572['delete'](_0x273128),this[_0x14975e(0x2eb)][_0x14975e(0x1a9)](_0x47a572);}[_0x2d19ee(0x381)](_0x205ebf,_0x48f68a){const _0x14d71f=_0x2d19ee;var _0x5ea982,_0x39b1b0;const _0x36fae9=(_0x39b1b0=(_0x5ea982=this[_0x14d71f(0x17f)][_0x14d71f(0x1b0)](this[_0x14d71f(0x369)]))==null?void 0x0:_0x5ea982['getSheetBySheetId'](_0x205ebf))==null?void 0x0:_0x39b1b0[_0x14d71f(0x1e5)]();return(_0x36fae9==null?void 0x0:_0x36fae9[_0x14d71f(0x242)](_0x1a7fd8=>_0x5e86a6[_0x14d71f(0x1e2)](_0x1a7fd8,_0x48f68a)))||_0x48f68a;}[_0x2d19ee(0x133)](){const _0x48fdc2=_0x2d19ee,_0x508b61=new _0x1a4482(),_0x37e284=Hi(),_0x4b650f=()=>{const _0x135063=_0x3b77;_0x508b61[_0x135063(0x2cf)]();const _0x523afb=(_0x5711d5,_0x40bf88,_0xc1c214,_0xb8252f)=>{const _0xb0cff4=_0x135063;let _0x23ae11=[];switch(_0x5711d5['id']){case _0x114d3[_0xb0cff4(0x303)]:{_0x23ae11=_0x5efdb6(_0x5711d5,_0xb8252f);break;}case _0x114d3[_0xb0cff4(0x346)]:{_0x23ae11=_0x1edd71(_0x5711d5,_0xb8252f);break;}case _0x114d3['InsertColCommandId']:{_0x23ae11=_0xd21edf(_0x5711d5,_0xb8252f);break;}case _0x114d3[_0xb0cff4(0x170)]:{_0x23ae11=_0x56e9d2(_0x5711d5,_0xb8252f);break;}case _0x114d3['InsertRangeMoveRightCommandId']:{_0x23ae11=_0x24380d(_0x5711d5,_0xb8252f);break;}case _0x114d3['InsertRowCommandId']:{_0x23ae11=_0x26c1a0(_0x5711d5,_0xb8252f);break;}case _0x114d3[_0xb0cff4(0x166)]:{_0x23ae11=_0x1f2d01(_0x5711d5,_0xb8252f);break;}case _0x114d3[_0xb0cff4(0x1cc)]:{_0x23ae11=_0x3fee0c(_0x5711d5,_0xb8252f);break;}case _0x114d3['RemoveRowCommandId']:{_0x23ae11=_0x442d3c(_0x5711d5,_0xb8252f);break;}}const _0x4a33c9=_0x3367c1(_0x23ae11,_0xb8252f),_0xc45237=this[_0xb0cff4(0x344)][_0xb0cff4(0x1a4)](_0x40bf88);if(_0xc45237&&_0x4a33c9){const _0x45aa0f={..._0xc45237,'range':_0x4a33c9};this[_0xb0cff4(0x344)][_0xb0cff4(0x165)](_0x40bf88,_0x45aa0f),_0x37e284(()=>{const _0x55feb5=_0xb0cff4,_0x4b31c3=this['_refRangeService'][_0x55feb5(0x35c)](_0x4a33c9,_0x3dcc31=>(_0x4b31c3[_0x55feb5(0x2cf)](),_0x523afb(_0x3dcc31,_0x40bf88,_0xc1c214,_0x4a33c9)));_0x508b61[_0x55feb5(0x191)](_0x4b31c3);});}return{'redos':[],'undos':[]};};this[_0x135063(0x344)][_0x135063(0x136)]((_0x329e1e,_0x27dedf)=>{const _0x474f25=_0x135063,{range:_0x3f2ab5,sheetID:_0x30eba8}=_0x329e1e,_0x470991=this['_refRangeService'][_0x474f25(0x35c)](_0x3f2ab5,_0x2a772e=>(_0x470991[_0x474f25(0x2cf)](),_0x523afb(_0x2a772e,_0x27dedf,_0x30eba8,_0x3f2ab5)));_0x508b61[_0x474f25(0x191)](_0x470991);});};this[_0x48fdc2(0x1b6)](_0x5684e2(this[_0x48fdc2(0x2eb)][_0x48fdc2(0x150)](()=>{_0x4b650f();})));}['_toggleOnline'](){const _0x4cec69=_0x2d19ee;var _0x592465,_0x47c51b;if(this[_0x4cec69(0x2a1)]=!0x0,((_0x592465=this[_0x4cec69(0x17f)][_0x4cec69(0x17b)]())==null?void 0x0:_0x592465[_0x4cec69(0x377)]())!==this[_0x4cec69(0x369)])return;const _0x7b379c=(_0x47c51b=this[_0x4cec69(0x2b2)][_0x4cec69(0x1a4)](_0x47686c)['getCurrentSelections']())==null?void 0x0:_0x47c51b[0x0],_0x4628e5=this['_univerInstanceService'][_0x4cec69(0x2ca)](_0x1de887[_0x4cec69(0x225)])['getActiveSheet']();_0x7b379c&&_0x4628e5&&this[_0x4cec69(0x2bf)](_0x4628e5['getSheetId'](),_0x7b379c);}[_0x2d19ee(0x1bc)](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0x13e3c7(_0x6717c8)),B(0x3,_0x13e3c7(Ke)),B(0x4,_0x13e3c7(_0x50cc3e)),B(0x5,_0x5ea64d),B(0x6,_0x44deef),B(0x7,_0x13e3c7(_0x14edcb))],Be);var Yi=Object[_0x2d19ee(0x2a7)],Wi=(_0x2230c9,_0x5ba5ee,_0x15af10,_0x307dc9)=>{for(var _0x65d638=_0x307dc9>0x1?void 0x0:_0x307dc9?Yi(_0x5ba5ee,_0x15af10):_0x5ba5ee,_0x202282=_0x2230c9['length']-0x1,_0x266195;_0x202282>=0x0;_0x202282--)(_0x266195=_0x2230c9[_0x202282])&&(_0x65d638=_0x266195(_0x65d638)||_0x65d638);return _0x65d638;},Ce=(_0x5d140c,_0x4609b8)=>(_0x5b3e82,_0x21e5d4)=>_0x4609b8(_0x5b3e82,_0x21e5d4,_0x5d140c);let H=class extends _0x5b8c04{constructor(_0x2e6ff5,_0x302f3b,_0x2ce10a){const _0x2dff79=_0x2d19ee;super(),_(this,_0x2dff79(0x363),new Map()),_(this,_0x2dff79(0x28d),new _0x233e98()),(this[_0x2dff79(0x17f)]=_0x2e6ff5,this[_0x2dff79(0x2b2)]=_0x302f3b,this['_collabSessionService']=_0x2ce10a,this['_init']());}[_0x2d19ee(0x2cf)](){const _0x7195e=_0x2d19ee;super[_0x7195e(0x2cf)](),this[_0x7195e(0x28d)]['complete'](),this['_entities'][_0x7195e(0x136)](_0x4a3277=>_0x4a3277['dispose']());}[_0x2d19ee(0x2f9)](_0x1bb188){const _0x389de4=_0x2d19ee;return this[_0x389de4(0x363)][_0x389de4(0x230)](_0x1bb188)?this['_entities']['get'](_0x1bb188)['cursorInfo$']:this['_entityInit$'][_0x389de4(0x359)](_0x2dc8e8(_0x206cc0=>_0x206cc0[_0x389de4(0x369)]===_0x1bb188),_0x1650bc(_0x304fcf=>_0x304fcf[_0x389de4(0x2a9)]));}[_0x2d19ee(0x1e9)](){const _0xa15a0d=_0x2d19ee;this[_0xa15a0d(0x17f)][_0xa15a0d(0x2c1)](_0x1de887[_0xa15a0d(0x225)])[_0xa15a0d(0x359)](_0xefe94(this[_0xa15a0d(0x339)]))[_0xa15a0d(0x150)](async _0x482401=>{const _0x3a47de=_0xa15a0d,_0x3ec035=_0x482401[_0x3a47de(0x377)](),_0x5b27f6=await this[_0x3a47de(0x248)](_0x3ec035);this[_0x3a47de(0x28d)]['next'](_0x5b27f6),this[_0x3a47de(0x363)][_0x3a47de(0x165)](_0x3ec035,_0x5b27f6);}),this[_0xa15a0d(0x17f)]['getTypeOfUnitAdded$'](_0x1de887[_0xa15a0d(0x319)])['pipe'](_0xefe94(this[_0xa15a0d(0x339)]))[_0xa15a0d(0x359)](_0x2dc8e8(_0x4f3306=>!_0x4f3306[_0xa15a0d(0x377)]()[_0xa15a0d(0x27a)]('__')))[_0xa15a0d(0x150)](async _0x2e18c9=>{const _0x362252=_0xa15a0d,_0x26ef0a=_0x2e18c9[_0x362252(0x377)](),_0x3f06a0=await this[_0x362252(0x22a)](_0x26ef0a);this[_0x362252(0x28d)][_0x362252(0x1a9)](_0x3f06a0),this[_0x362252(0x363)][_0x362252(0x165)](_0x26ef0a,_0x3f06a0);}),_0x2a4316(this[_0xa15a0d(0x17f)]['getTypeOfUnitDisposed$'](_0x1de887[_0xa15a0d(0x319)]),this[_0xa15a0d(0x17f)]['getTypeOfUnitDisposed$'](_0x1de887[_0xa15a0d(0x225)]))[_0xa15a0d(0x359)](_0xefe94(this[_0xa15a0d(0x339)]))[_0xa15a0d(0x150)](_0x23b95b=>{const _0x573111=_0xa15a0d,_0x56aa8c=_0x23b95b['getUnitId'](),_0x215f85=this[_0x573111(0x363)]['get'](_0x56aa8c);_0x215f85&&(_0x215f85['dispose'](),this[_0x573111(0x363)][_0x573111(0x20a)](_0x56aa8c));});}async[_0x2d19ee(0x248)](_0x3c45e3){const _0x580598=_0x2d19ee,_0xc101a8=await this[_0x580598(0x1da)][_0x580598(0x187)](_0x3c45e3),_0x2ed9e7=this[_0x580598(0x2b2)]['createInstance'](Be,_0x3c45e3,_0xc101a8);return _0x2ed9e7[_0x580598(0x155)](),_0x2ed9e7;}async[_0x2d19ee(0x22a)](_0x340172){const _0x1a720b=_0x2d19ee,_0x2ceea0=await this[_0x1a720b(0x1da)]['requireSession'](_0x340172),_0x2c134d=this[_0x1a720b(0x2b2)][_0x1a720b(0x188)](xe,_0x340172,_0x2ceea0);return _0x2c134d[_0x1a720b(0x155)](),_0x2c134d;}};H=Wi([Ce(0x0,_0x5ea64d),Ce(0x1,_0x13e3c7(_0x6717c8)),Ce(0x2,_0x13e3c7(_0x431e53))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x435398,_0x31ee6a){const _0x489edb=_0x2d19ee;let {radius:_0x4da5d7,width:_0x5b2dd5,height:_0x59c3d5}=_0x31ee6a;_0x4da5d7=_0x4da5d7!=null?_0x4da5d7:0x0,_0x5b2dd5=_0x5b2dd5!=null?_0x5b2dd5:0x1e,_0x59c3d5=_0x59c3d5!=null?_0x59c3d5:0x1e;let _0x177617=0x0,_0x2c64c0=0x0,_0x36a1f9=0x0;_0x177617=_0x2c64c0=_0x36a1f9=Math[_0x489edb(0x30d)](_0x4da5d7,_0x5b2dd5/0x2,_0x59c3d5/0x2),_0x435398[_0x489edb(0x217)](),_0x435398[_0x489edb(0x1dc)](_0x177617,0x0),_0x435398[_0x489edb(0x348)](_0x5b2dd5-_0x2c64c0,0x0),_0x435398[_0x489edb(0x2aa)](_0x5b2dd5-_0x2c64c0,_0x2c64c0,_0x2c64c0,Math['PI']*0x3/0x2,0x0,!0x1),_0x435398[_0x489edb(0x348)](_0x5b2dd5,_0x59c3d5-_0x36a1f9),_0x435398['arc'](_0x5b2dd5-_0x36a1f9,_0x59c3d5-_0x36a1f9,_0x36a1f9,0x0,Math['PI']/0x2,!0x1),_0x435398[_0x489edb(0x348)](0x0,_0x59c3d5),_0x435398['lineTo'](0x0,_0x177617),_0x435398[_0x489edb(0x2aa)](_0x177617,_0x177617,_0x177617,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x435398['closePath'](),_0x31ee6a[_0x489edb(0x1be)]&&(_0x435398[_0x489edb(0x2b3)](),_0x435398[_0x489edb(0x281)]=_0x31ee6a[_0x489edb(0x1be)],_0x31ee6a[_0x489edb(0x366)]===_0x489edb(0x157)?_0x435398[_0x489edb(0x1be)]('evenodd'):_0x435398['fill'](),_0x435398['restore']());}class ve extends _0x5dc12a{constructor(_0x58343c,_0x23b311){const _0x5210d5=_0x2d19ee;super(_0x58343c,_0x23b311),_(this,_0x5210d5(0x201)),_(this,_0x5210d5(0x365)),(this[_0x5210d5(0x201)]=_0x23b311==null?void 0x0:_0x23b311[_0x5210d5(0x201)],this[_0x5210d5(0x365)]=_0x23b311==null?void 0x0:_0x23b311[_0x5210d5(0x365)]);}static[_0x2d19ee(0x25c)](_0x436f37,_0x230041){const _0x2c7688=_0x2d19ee,{text:_0x23478c,color:_0x138bc8}=_0x230041;_0x436f37['save'](),_0x436f37[_0x2c7688(0x1f2)]=_0x2c7688(0x139);const _0x50045f=_0x436f37[_0x2c7688(0x1fb)](_0x23478c)[_0x2c7688(0x199)],_0xd93d5e=Math[_0x2c7688(0x30d)](_0x50045f+0x2*Re,at);ji(_0x436f37,{'height':Q,'radius':0x4,'width':_0xd93d5e,'fill':_0x138bc8}),_0x436f37['fillStyle']=_0x2c7688(0x19a);const _0x1d6384=Re,_0x3745b9=Q-Vi,_0x206ece=at-0x2*Re;if(_0x50045f>_0x206ece){let _0x4d38e5='',_0x201c15=0x0;for(const _0x212515 of _0x23478c){const _0x4be244=_0x436f37['measureText'](_0x212515)['width'];if(_0x201c15+_0x4be244<=_0x206ece-_0x436f37[_0x2c7688(0x1fb)](_0x2c7688(0x32b))[_0x2c7688(0x199)])_0x4d38e5+=_0x212515,_0x201c15+=_0x4be244;else{_0x4d38e5+=_0x2c7688(0x32b);break;}}_0x436f37[_0x2c7688(0x1b5)](_0x4d38e5,_0x1d6384,_0x3745b9);}else _0x436f37[_0x2c7688(0x1b5)](_0x23478c,_0x1d6384,_0x3745b9);_0x436f37[_0x2c7688(0x312)]();}[_0x2d19ee(0x28f)](_0x193441){const _0x555454=_0x2d19ee;ve[_0x555454(0x25c)](_0x193441,this);}}const De=_0x2d19ee(0x271),Xi='collab-text-range-',Gi=_0x2d19ee(0x293),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x2d19ee(0x152);class ct{constructor(_0x270024,_0x4202cb,_0x1c73ac,_0x30fce4){const _0x43d2d2=_0x2d19ee;_(this,_0x43d2d2(0x25f),[]),_(this,'_anchor',null),_(this,'_textBubble',null),_(this,_0x43d2d2(0x2e0),null),_(this,_0x43d2d2(0x334),null),_(this,_0x43d2d2(0x1cf),null),(this[_0x43d2d2(0x1fe)]=_0x270024,this[_0x43d2d2(0x27f)]=_0x4202cb,this[_0x43d2d2(0x243)]=_0x1c73ac,this[_0x43d2d2(0x2db)]=_0x30fce4,this[_0x43d2d2(0x2d9)]());}set[_0x2d19ee(0x207)](_0xd57d16){const _0x1be557=_0x2d19ee;_0xd57d16?(this[_0x1be557(0x2e0)]&&this[_0x1be557(0x2e0)][_0x1be557(0x160)](),this['_textBubble']&&this[_0x1be557(0x21c)][_0x1be557(0x14b)]()):(this[_0x1be557(0x2e0)]&&this[_0x1be557(0x2e0)][_0x1be557(0x14b)](),this[_0x1be557(0x21c)]&&this[_0x1be557(0x21c)][_0x1be557(0x160)]());}[_0x2d19ee(0x2cf)](){const _0x450f87=_0x2d19ee;for(const _0x59f490 of this[_0x450f87(0x25f)])_0x59f490[_0x450f87(0x2cf)]();this['_textBubble']&&this['_textBubble'][_0x450f87(0x2cf)](),this['_anchorDot']&&this[_0x450f87(0x2e0)][_0x450f87(0x2cf)](),this[_0x450f87(0x1a2)]&&this[_0x450f87(0x1a2)]['dispose'](),this[_0x450f87(0x1cf)]&&this[_0x450f87(0x1cf)]();}[_0x2d19ee(0x2d9)](){const _0x1cca05=_0x2d19ee;var _0x19790e;const {_docSkeleton:_0x4930d9,_document:_0x1d0410}=this,{color:_0x1065cd,name:_0x27dadd,ranges:_0xcaaa52}=this[_0x1cca05(0x1fe)],_0x3cde1=_0x1d0410['getOffsetConfig'](),{docsLeft:_0xd0cb04,docsTop:_0x495fba}=_0x3cde1,_0x4de46e=new _0x10e74e(_0x3cde1,_0x4930d9);for(const {startOffset:_0x2d8b0f,endOffset:_0x411061,rangeType:_0x44b6a0,segmentId:_0x41208a,segmentPage:_0x136331,collapsed:_0x194116,isActive:_0x56c903}of _0xcaaa52){const _0x2b8bba=_0x4930d9['findNodePositionByCharIndex'](_0x2d8b0f,!0x0,_0x41208a,_0x136331);let _0x5be889=_0x4930d9['findNodePositionByCharIndex'](_0x411061,!0x0,_0x41208a,_0x136331);if(_0x5be889==null&&(_0x5be889=_0x4930d9[_0x1cca05(0x36d)](_0x411061-0x1,!0x1,_0x41208a,_0x136331)),_0x56c903){const {contentBoxPointGroup:_0x27664b}=_0x4de46e[_0x1cca05(0x161)](_0x5be889,_0x5be889);if(_0x27664b[_0x1cca05(0x375)]===0x0)continue;this[_0x1cca05(0x28c)](_0x1065cd,_0x27664b,_0xd0cb04,_0x495fba,_0x27dadd),this[_0x1cca05(0x1cf)]=this[_0x1cca05(0x215)]();}if(_0x2b8bba&&_0x5be889){if(_0x44b6a0===_0x18a061['RECT']){const _0x117d14=new _0x2997cf(_0x3cde1,_0x4930d9),{pointGroup:_0x1f6593}=(_0x19790e=_0x117d14['getRangePointData'](_0x2b8bba,_0x5be889))!=null?_0x19790e:{};if(_0x1f6593==null||_0x1f6593[_0x1cca05(0x375)]===0x0)continue;this[_0x1cca05(0x221)](_0x1065cd,_0x1f6593,_0xd0cb04,_0x495fba);}else{if(!_0x194116){const {borderBoxPointGroup:_0x445fa9}=_0x4de46e['getRangePointData'](_0x2b8bba,_0x5be889);if(_0x445fa9[_0x1cca05(0x375)]===0x0)continue;this[_0x1cca05(0x33d)](_0x1065cd,_0x445fa9,_0xd0cb04,_0x495fba);}}}}}[_0x2d19ee(0x28c)](_0x1230a9,_0x4afd4a,_0x4c163b,_0x4a110d,_0x54d55c){const _0x2a7e89=_0x2d19ee,_0x223758=this['_getAnchorBounding'](_0x4afd4a),{left:_0x39f21b,top:_0x43f7de,height:_0x2064d2}=_0x223758,_0x49e021=this[_0x2a7e89(0x1d7)](),_0x31c893=zi/_0x49e021,_0x391e37=new _0x2bdd35(De+_0x377b4b(z),{'left':_0x39f21b+_0x4c163b-_0x31c893,'top':_0x43f7de+_0x4a110d,'height':_0x2064d2,'width':Ki,'fill':_0x1230a9||_0x4c407c(_0x2aff34[_0x2a7e89(0x138)],0x0),'strokeWidth':_0x31c893,'stroke':Ji,'evented':!0x0});this[_0x2a7e89(0x1a2)]=_0x391e37,this[_0x2a7e89(0x27f)][_0x2a7e89(0x21d)](_0x391e37,_0x978a3f);const _0x4737e1=new _0x2bdd35(De+_0x377b4b(z),{'left':_0x39f21b+_0x4c163b-_0x31c893,'top':_0x43f7de+_0x4a110d-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x1230a9||_0x4c407c(_0x2aff34[_0x2a7e89(0x138)],0x0),'strokeWidth':0x0,'stroke':_0x1230a9||_0x4c407c(_0x2aff34[_0x2a7e89(0x138)],0x0),'evented':!0x1});this[_0x2a7e89(0x2e0)]=_0x4737e1,this[_0x2a7e89(0x27f)][_0x2a7e89(0x21d)](_0x4737e1,_0x978a3f);const _0x13490a=new ve(De+_0x377b4b(z),{'left':_0x39f21b+_0x4c163b-_0x31c893,'top':_0x43f7de+_0x4a110d-Q,'text':_0x54d55c,'color':_0x1230a9});this[_0x2a7e89(0x21c)]=_0x13490a,this[_0x2a7e89(0x27f)][_0x2a7e89(0x21d)](_0x13490a,_0x978a3f),this[_0x2a7e89(0x207)]=!0x1;}[_0x2d19ee(0x215)](){const _0x84acf=_0x2d19ee,_0x5ab53e=this[_0x84acf(0x1a2)][_0x84acf(0x17d)][_0x84acf(0x283)](()=>{const _0x424dad=_0x84acf;this[_0x424dad(0x207)]=!0x0;}),_0x5f0285=this['_anchor'][_0x84acf(0x249)][_0x84acf(0x283)](()=>{const _0x371626=_0x84acf;this[_0x371626(0x334)]&&clearTimeout(this[_0x371626(0x334)]),this[_0x371626(0x334)]=setTimeout(()=>{const _0x2e8654=_0x371626;this[_0x2e8654(0x207)]=!0x1;},0x7d0);});return()=>{const _0x5f3681=_0x84acf;_0x5ab53e['unsubscribe'](),_0x5f0285[_0x5f3681(0x16b)]();};}[_0x2d19ee(0x33d)](_0x2a97a6,_0x1c1457,_0x2d3dd5,_0x541528){const _0x368a24=_0x2d19ee,_0x27921d=new _0x44158f(_0x2a97a6)[_0x368a24(0x330)](0.2)[_0x368a24(0x1ae)](),_0x2282ac=new _0x36ecd6(Xi+_0x377b4b(z),{'pointsGroup':_0x1c1457,'fill':_0x27921d||_0x4c407c(_0x2aff34[_0x368a24(0x138)],0.2),'left':_0x2d3dd5,'top':_0x541528,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x368a24(0x25f)][_0x368a24(0x1bb)](_0x2282ac),this[_0x368a24(0x27f)][_0x368a24(0x21d)](_0x2282ac,_0x978a3f);}['_drawRectRange'](_0x4702e7,_0x3f59c7,_0x2cdca6,_0x4717e5){const _0x836b90=_0x2d19ee,_0x1bca27=new _0x44158f(_0x4702e7)[_0x836b90(0x330)](0.2)['toRgbString'](),_0x2f02fa=new _0x36ecd6(Gi+_0x377b4b(z),{'pointsGroup':_0x3f59c7,'fill':_0x1bca27||_0x4c407c(_0x2aff34[_0x836b90(0x138)],0.2),'left':_0x2cdca6,'top':_0x4717e5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x836b90(0x25f)]['push'](_0x2f02fa),this[_0x836b90(0x27f)][_0x836b90(0x21d)](_0x2f02fa,_0x978a3f);}[_0x2d19ee(0x23d)](_0x227d7b){const _0x322bb8=_0x227d7b[0x0],_0x537dd4=_0x322bb8[0x0],_0x4f5d8b=_0x322bb8[0x2],{x:_0x459062,y:_0x3a3901}=_0x537dd4,{x:_0x2e587d,y:_0x41b618}=_0x4f5d8b;return{'left':_0x459062,'top':_0x3a3901,'width':_0x2e587d-_0x459062,'height':_0x41b618-_0x3a3901};}[_0x2d19ee(0x1d7)](){const _0x207ad8=_0x2d19ee,{scaleX:_0x366471,scaleY:_0x5f4e42}=this['_scene'][_0x207ad8(0x224)]();return Math[_0x207ad8(0x1db)](_0x366471,_0x5f4e42);}}var Zi=Object[_0x2d19ee(0x2a7)],Qi=(_0x278a75,_0xc9b7a5,_0x156cb7,_0x28ee21)=>{const _0x20170e=_0x2d19ee;for(var _0x15ed83=_0x28ee21>0x1?void 0x0:_0x28ee21?Zi(_0xc9b7a5,_0x156cb7):_0xc9b7a5,_0x1aa9da=_0x278a75[_0x20170e(0x375)]-0x1,_0x281ee5;_0x1aa9da>=0x0;_0x1aa9da--)(_0x281ee5=_0x278a75[_0x1aa9da])&&(_0x15ed83=_0x281ee5(_0x15ed83)||_0x15ed83);return _0x15ed83;},ie=(_0x20698e,_0x8f20a8)=>(_0x4881a3,_0x280581)=>_0x8f20a8(_0x4881a3,_0x280581,_0x20698e);let Fe=class extends _0x5b8c04{constructor(_0x3e42a9,_0x3030dc,_0x43e6a9,_0x52f39a,_0x2fe8a8){const _0x71dcbf=_0x2d19ee;super(),_(this,_0x71dcbf(0x28b),[]),_(this,_0x71dcbf(0x1af),[]),(this[_0x71dcbf(0x37e)]=_0x3e42a9,this[_0x71dcbf(0x336)]=_0x3030dc,this['_collabCursorController']=_0x43e6a9,this[_0x71dcbf(0x162)]=_0x52f39a,this[_0x71dcbf(0x18f)]=_0x2fe8a8,this['_init']());}[_0x2d19ee(0x1e9)](){const _0x5c332c=_0x2d19ee,_0x4e5312=this[_0x5c332c(0x37e)][_0x5c332c(0x352)],_0x55e84a=this['_docSkeletonManagerService'];this[_0x5c332c(0x1b6)](_0x383e72([this[_0x5c332c(0x1e1)][_0x5c332c(0x2f9)](_0x4e5312),this['_themeService']['currentTheme$']])[_0x5c332c(0x359)](_0x4406a1(([_0x5a95ef,_0x45aa4c])=>({'skeleton':_0x55e84a['getSkeleton'](),'cursors':[..._0x5a95ef[_0x5c332c(0x31f)]()][_0x5c332c(0x1c9)](_0x15e2e6=>({..._0x15e2e6,'color':this[_0x5c332c(0x18f)][_0x5c332c(0x2a4)](_0x15e2e6['color'])}))})))[_0x5c332c(0x150)](_0x550d6c=>{const _0x585e47=_0x5c332c;if(this[_0x585e47(0x367)](),_0x550d6c){const {skeleton:_0x5908db,cursors:_0x441c73}=_0x550d6c;this[_0x585e47(0x252)](_0x5908db,_0x441c73);}})),this[_0x5c332c(0x37f)](),this[_0x5c332c(0x222)]();}[_0x2d19ee(0x252)](_0x2a0cf2,_0x31c3a5){const _0x1f9bc9=_0x2d19ee,{scene:_0x567b40,mainComponent:_0x2c5253}=this[_0x1f9bc9(0x37e)],_0x2af5d2=_0x31c3a5['map'](_0x57d194=>new ct(_0x57d194,_0x567b40,_0x2a0cf2,_0x2c5253));this['_cursorShapes']=_0x2af5d2,this[_0x1f9bc9(0x1af)]=_0x31c3a5;}[_0x2d19ee(0x1de)](){const _0x149397=_0x2d19ee;this['_removeCollabCursors']();const {scene:_0x44211a,mainComponent:_0x3c13af}=this[_0x149397(0x37e)],_0xdace4a=this[_0x149397(0x336)][_0x149397(0x364)](),_0x27acf5=this[_0x149397(0x1af)][_0x149397(0x350)](_0x448c02=>new ct(_0x448c02,_0x44211a,_0xdace4a,_0x3c13af));this[_0x149397(0x28b)]=_0x27acf5;}[_0x2d19ee(0x367)](){const _0x4d019c=_0x2d19ee;this[_0x4d019c(0x28b)][_0x4d019c(0x136)](_0x27de62=>_0x27de62['dispose']()),this[_0x4d019c(0x28b)]=[];}[_0x2d19ee(0x222)](){const _0x2f10e=_0x2d19ee,_0x4b209e=[_0x2d8f9a['id']];this[_0x2f10e(0x1b6)](this[_0x2f10e(0x162)][_0x2f10e(0x21e)](_0x50b433=>{const _0x4012c7=_0x2f10e;_0x4b209e[_0x4012c7(0x329)](_0x50b433['id'])&&_0x50b433[_0x4012c7(0x19b)][_0x4012c7(0x352)]===this[_0x4012c7(0x37e)][_0x4012c7(0x352)]&&this[_0x4012c7(0x1de)]();}));}[_0x2d19ee(0x37f)](){const _0xc17909=_0x2d19ee;this[_0xc17909(0x1b6)](_0x5b2081(this[_0xc17909(0x37e)]['engine'][_0xc17909(0x2c2)])[_0xc17909(0x359)](_0x53c322(_0x47198c=>_0x47198c[_0xc17909(0x164)]===_0x5e28be[_0xc17909(0x299)]),_0x42dfe3(0x10))[_0xc17909(0x150)](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0x13e3c7(_0x1ccfa7)),ie(0x2,_0x13e3c7(H)),ie(0x3,_0x44deef),ie(0x4,_0x13e3c7(_0x1331d6))],Fe);const qi=0x1,en=1.5;class tn extends _0x5dc12a{constructor(_0x12cbf3,_0x2f9888){const _0x583f39=_0x2d19ee;super(_0x12cbf3,_0x2f9888),_(this,'_color'),_(this,'_hovered',!0x1),_(this,_0x583f39(0x30f)),_(this,_0x583f39(0x2e1),''),_(this,_0x583f39(0x368),_0x583f39(0x34a)),_(this,'_backgroundColor'),(_0x2f9888&&this[_0x583f39(0x19d)](_0x2f9888),this[_0x583f39(0x17d)][_0x583f39(0x283)](()=>this[_0x583f39(0x19d)]({'hovered':!0x0})),this[_0x583f39(0x249)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2d19ee(0x19d)](_0x125eb5){const _0x3de449=_0x2d19ee;var _0x4250f4,_0x1be2af,_0x2bffea,_0x52fe26,_0x430196,_0x567229;this[_0x3de449(0x144)]=(_0x4250f4=_0x125eb5[_0x3de449(0x201)])!=null?_0x4250f4:this['_color'],this[_0x3de449(0x218)]=(_0x1be2af=_0x125eb5['hovered'])!=null?_0x1be2af:this[_0x3de449(0x218)],this['_range']=(_0x2bffea=_0x125eb5[_0x3de449(0x186)])!=null?_0x2bffea:this['_range'],this[_0x3de449(0x2e1)]=(_0x52fe26=_0x125eb5[_0x3de449(0x28a)])!=null?_0x52fe26:this[_0x3de449(0x2e1)],this[_0x3de449(0x368)]=(_0x430196=_0x125eb5[_0x3de449(0x175)])!=null?_0x430196:this[_0x3de449(0x368)],this[_0x3de449(0x181)]=(_0x567229=_0x125eb5[_0x3de449(0x276)])!=null?_0x567229:this['_backgroundColor'],this[_0x3de449(0x131)]({'width':_0x125eb5[_0x3de449(0x199)],'height':_0x125eb5['height']});}[_0x2d19ee(0x35f)](_0x499b2a){const _0x437eea=_0x2d19ee,{row:_0x4da585,column:_0x32568f}=_0x499b2a;if(_0x4da585>=this['_range'][_0x437eea(0x163)]&&_0x4da585<=this['_range'][_0x437eea(0x355)]&&_0x32568f>=this[_0x437eea(0x30f)][_0x437eea(0x309)]&&_0x32568f<=this[_0x437eea(0x30f)][_0x437eea(0x35e)]){this[_0x437eea(0x19d)]({'hovered':!0x0});return;}this[_0x437eea(0x19d)]({'hovered':!0x1});}[_0x2d19ee(0x302)](_0x4f8135){return!0x1;}[_0x2d19ee(0x28f)](_0x4545b3){const _0x1b316b=_0x2d19ee;_0x2bdd35[_0x1b316b(0x25c)](_0x4545b3,{'width':this[_0x1b316b(0x199)],'height':this[_0x1b316b(0x1ad)],'strokeWidth':en,'stroke':this[_0x1b316b(0x144)],'evented':!0x1,'fill':this[_0x1b316b(0x181)]}),this[_0x1b316b(0x218)]&&(_0x4545b3['save'](),_0x4545b3[_0x1b316b(0x251)](0x1,0x0,0x0,0x1,this['width'],this[_0x1b316b(0x368)]===_0x1b316b(0x2ac)?0x0:-Q),ve[_0x1b316b(0x25c)](_0x4545b3,{'text':this['_name'],'color':this['_color']}),_0x4545b3[_0x1b316b(0x312)]());}}var sn=Object[_0x2d19ee(0x2a7)],nn=(_0x519af5,_0x4dbca8,_0x4c928d,_0x20660b)=>{const _0x2c84c4=_0x2d19ee;for(var _0x35ff53=_0x20660b>0x1?void 0x0:_0x20660b?sn(_0x4dbca8,_0x4c928d):_0x4dbca8,_0x4d1219=_0x519af5[_0x2c84c4(0x375)]-0x1,_0x5b0742;_0x4d1219>=0x0;_0x4d1219--)(_0x5b0742=_0x519af5[_0x4d1219])&&(_0x35ff53=_0x5b0742(_0x35ff53)||_0x35ff53);return _0x35ff53;},be=(_0x1b03ea,_0x43f626)=>(_0x228205,_0x357827)=>_0x43f626(_0x228205,_0x357827,_0x1b03ea);const rn=0x1389;let ke=class extends _0x5b8c04{constructor(_0x16b685,_0x1f6949,_0x2a1a93,_0x179ca4){const _0x5cbb9f=_0x2d19ee;super(),_(this,_0x5cbb9f(0x1af),new Set()),_(this,_0x5cbb9f(0x1d1),null),(this[_0x5cbb9f(0x37e)]=_0x16b685,this[_0x5cbb9f(0x360)]=_0x1f6949,this[_0x5cbb9f(0x1e1)]=_0x2a1a93,this[_0x5cbb9f(0x18f)]=_0x179ca4,this[_0x5cbb9f(0x1e9)]());}['_init'](){const _0x5c921b=_0x2d19ee;this[_0x5c921b(0x360)]['currentSkeleton$'][_0x5c921b(0x359)](_0xb23e26(this['dispose$']),_0x2c4106(_0x5ea8e1=>{const _0x4a3bad=_0x5c921b;if(_0x5ea8e1){const _0x2bd179=_0x5ea8e1[_0x4a3bad(0x1f8)];return _0x383e72(this['_collabCursorController'][_0x4a3bad(0x2f9)](this[_0x4a3bad(0x37e)]['unitId']),this[_0x4a3bad(0x18f)][_0x4a3bad(0x33e)])[_0x4a3bad(0x359)](_0x4406a1(([_0x535f85,_0x121946])=>{const _0x3853e8=_0x4a3bad,_0x3cf1e7=new Map();return _0x535f85[_0x3853e8(0x136)]((_0x4b5fa,_0x3d290b)=>{const _0x27be4f=_0x3853e8;if(_0x4b5fa['sheetID']===_0x2bd179){const _0x24d100={..._0x4b5fa};_0x24d100[_0x27be4f(0x201)]=this[_0x27be4f(0x18f)][_0x27be4f(0x2a4)](_0x4b5fa[_0x27be4f(0x201)]),_0x3cf1e7[_0x27be4f(0x165)](_0x3d290b,_0x24d100);}}),{'skeleton':_0x5ea8e1,'cursors':_0x3cf1e7};}));}return _0x272a51({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x59f426,cursors:_0x1c917b})=>{const _0x106434=_0x5c921b;this['_removeCollabCursors'](),_0x59f426&&this[_0x106434(0x252)](_0x59f426,_0x1c917b);}),this['_sheetSkeletonManagerService'][_0x5c921b(0x1e8)][_0x5c921b(0x150)](_0x46b480=>{const _0x46ee44=_0x5c921b;if(_0x46b480==null)return;const {skeleton:_0x50ee39}=_0x46b480,{scene:_0x55114d}=this[_0x46ee44(0x37e)];_0x55114d['onPointerMove$'][_0x46ee44(0x283)](_0x1b4ae8(_0xbc0ad8=>{const _0xc583a5=_0x46ee44;var _0x573844,_0xdf07;const {offsetX:_0x3dbc63,offsetY:_0x1727d4}=_0xbc0ad8,{x:_0xcc8b54,y:_0x5627d3}=_0x55114d[_0xc583a5(0x23c)](_0x59221c['FromArray']([_0x3dbc63,_0x1727d4])),{scaleX:_0x48c0d6,scaleY:_0x15a8c9}=_0x55114d[_0xc583a5(0x224)](),_0x31afd2=_0x55114d[_0xc583a5(0x1c7)](_0x29367b[_0xc583a5(0x241)]),_0xa67a49=_0x55114d[_0xc583a5(0x32d)](_0x59221c[_0xc583a5(0x2b8)]([_0xcc8b54,_0x5627d3]),_0x31afd2),_0x4cd172=_0x50ee39[_0xc583a5(0x1ab)](_0x3dbc63,_0x1727d4,_0x48c0d6,_0x15a8c9,_0xa67a49);((_0x573844=this[_0xc583a5(0x1d1)])==null?void 0x0:_0x573844[_0xc583a5(0x2df)])===_0x4cd172[_0xc583a5(0x2df)]&&((_0xdf07=this[_0xc583a5(0x1d1)])==null?void 0x0:_0xdf07[_0xc583a5(0x317)])===_0x4cd172[_0xc583a5(0x317)]||this[_0xc583a5(0x1af)][_0xc583a5(0x136)](_0x568431=>{const _0x56e8ee=_0xc583a5;_0x568431[_0x56e8ee(0x35f)](_0x4cd172);});},0x64));});}[_0x2d19ee(0x252)](_0x451145,_0x45f7d9){const _0x3193d2=_0x2d19ee;var _0x1f3a99;const _0xdc991f=(_0x1f3a99=this[_0x3193d2(0x360)][_0x3193d2(0x280)]())==null?void 0x0:_0x1f3a99['skeleton'];if(!_0xdc991f)return;const _0x5dc77c=this[_0x3193d2(0x247)]();if(!_0x5dc77c)return;this[_0x3193d2(0x1af)][_0x3193d2(0x136)](_0x25f643=>{const _0x53f93d=_0x3193d2;_0x25f643[_0x53f93d(0x193)]();});const {scene:_0x41c697}=_0x5dc77c,_0x4cce11=on(Array[_0x3193d2(0x292)](_0x45f7d9[_0x3193d2(0x31f)]()))[_0x3193d2(0x350)](_0x58a5db=>{const _0x34f3cf=_0x3193d2,{color:_0x53ed5d,range:_0x10740f,name:_0x5cbfca,selection:_0x4ed6f8,sheetID:_0x3ea561}=_0x58a5db,{startColumn:_0x27b076,startRow:_0x3984fb,endColumn:_0xcd0d18,endRow:_0x467c29}=_0x10740f,_0x383ba6=_0x412d35(_0x3984fb,_0x27b076,_0x41c697,_0xdc991f),_0x4a707f=_0x412d35(_0x467c29,_0xcd0d18,_0x41c697,_0xdc991f),{columnHeaderHeightAndMarginTop:_0x1875e}=_0xdc991f,{startX:_0x53353b,startY:_0x448d9f}=_0x383ba6,{endX:_0x255179,endY:_0x4b6a84}=_0x4a707f,_0xc7d594=_0x255179-_0x53353b,_0x5cc2eb=_0x4b6a84-_0x448d9f,_0x398ff4={'labelPosition':_0x448d9f-_0x1875e>=Q?_0x34f3cf(0x34a):_0x34f3cf(0x2ac),'sheetID':_0x3ea561,'range':_0x10740f,'color':_0x53ed5d,'name':_0x5cbfca,'selection':_0x4ed6f8,'left':_0x53353b,'top':_0x448d9f,'width':_0xc7d594,'height':_0x5cc2eb,'evented':!0x1,'zIndex':rn};return new tn(_0x5cbfca,_0x398ff4);});_0x41c697[_0x3193d2(0x296)](_0x4cce11,qi),this[_0x3193d2(0x1af)]=new Set(_0x4cce11);}['_removeCollabCursors'](){const _0x29f29d=_0x2d19ee;var _0x550e95;(_0x550e95=this[_0x29f29d(0x1af)])==null||_0x550e95['forEach'](_0x2db9cd=>_0x2db9cd['dispose']());}[_0x2d19ee(0x247)](){const _0x57f049=_0x2d19ee;return _0x2cc164(this['_context'][_0x57f049(0x235)],this['_context']);}};ke=nn([be(0x1,_0x13e3c7(_0x33de6b)),be(0x2,_0x13e3c7(H)),be(0x3,_0x13e3c7(_0x1331d6))],ke);function on(_0x289585){const _0x2580ad=_0x2d19ee,_0x571ca0=new Map();return _0x289585[_0x2580ad(0x136)](_0x17f676=>{const _0x5acb7b=_0x2580ad;if(_0x571ca0[_0x5acb7b(0x230)](_0x17f676[_0x5acb7b(0x20c)])){const _0x344e81=_0x571ca0[_0x5acb7b(0x1a4)](_0x17f676[_0x5acb7b(0x20c)]);_0x344e81[_0x5acb7b(0x28a)]+=',\x20'+_0x17f676['name'];}else _0x571ca0[_0x5acb7b(0x165)](_0x17f676[_0x5acb7b(0x20c)],_0x17f676);}),Array[_0x2580ad(0x292)](_0x571ca0['values']());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x3c1aae,_0x435f5b,_0x54eb7a,_0x129136)=>{const _0x4a4e42=_0x2d19ee;for(var _0x469ab6=_0x129136>0x1?void 0x0:_0x129136?an(_0x435f5b,_0x54eb7a):_0x435f5b,_0xf8ae11=_0x3c1aae[_0x4a4e42(0x375)]-0x1,_0x19e0e9;_0xf8ae11>=0x0;_0xf8ae11--)(_0x19e0e9=_0x3c1aae[_0xf8ae11])&&(_0x469ab6=_0x19e0e9(_0x469ab6)||_0x469ab6);return _0x469ab6;},F=(_0x1432bf,_0xf0e77a)=>(_0x25324b,_0x44ab2d)=>_0xf0e77a(_0x25324b,_0x44ab2d,_0x1432bf);let _e=class extends _0x55618d{constructor(_0x7ceb21,_0x22fe9a,_0x785097,_0x2a45a5,_0x56240d,_0x173986){const _0x5f4ee6=_0x2d19ee;super(),this[_0x5f4ee6(0x171)]=_0x7ceb21,this['_localCacheService']=_0x22fe9a,this[_0x5f4ee6(0x345)]=_0x785097,this[_0x5f4ee6(0x16f)]=_0x2a45a5,this[_0x5f4ee6(0x1ba)]=_0x56240d,this[_0x5f4ee6(0x2ea)]=_0x173986,this[_0x5f4ee6(0x2ce)](),this[_0x5f4ee6(0x30c)]();}[_0x2d19ee(0x2ce)](){const _0x53fc5e=_0x2d19ee;this[_0x53fc5e(0x1b6)](this[_0x53fc5e(0x171)]['registerBeforeClose'](()=>{const _0x4c96e1=_0x53fc5e;if(this[_0x4c96e1(0x356)][_0x4c96e1(0x134)][_0x4c96e1(0x26a)])return this['_localeService']['t'](_0x4c96e1(0x232));}));}[_0x2d19ee(0x30c)](){const _0x4cd166=_0x2d19ee;this[_0x4cd166(0x1b6)](this[_0x4cd166(0x345)][_0x4cd166(0x246)][_0x4cd166(0x150)](_0x5010b6=>{const _0x16ffe1=_0x4cd166;_0x5010b6['id']===_0x54f12f[_0x16ffe1(0x183)]&&this[_0x16ffe1(0x16f)][_0x16ffe1(0x14b)]({'type':_0xe3500e[_0x16ffe1(0x1fc)],'content':this[_0x16ffe1(0x2ea)]['t'](_0x16ffe1(0x22f))}),_0x5010b6['id']===_0x54f12f['CLOSE_ROOM']&&this['_messageService'][_0x16ffe1(0x14b)]({'type':_0xe3500e[_0x16ffe1(0x1fc)],'content':this[_0x16ffe1(0x2ea)]['t'](_0x16ffe1(0x205))}),_0x5010b6['id']===_0x54f12f[_0x16ffe1(0x2f5)]&&this[_0x16ffe1(0x1ba)][_0x16ffe1(0x14b)]({'title':this[_0x16ffe1(0x2ea)]['t'](_0x16ffe1(0x1b1)),'content':this[_0x16ffe1(0x2ea)]['t'](_0x16ffe1(0x1a7)),'type':_0x16ffe1(0x1f9),'duration':0x0}),_0x5010b6['id']===_0x54f12f['CONFLICT']&&this[_0x16ffe1(0x16f)][_0x16ffe1(0x14b)]({'type':_0xe3500e[_0x16ffe1(0x185)],'content':this[_0x16ffe1(0x2ea)]['t']('collaboration.closeRoom')+'('+_0x5010b6['data']+')'}),_0x5010b6['id']===_0x54f12f[_0x16ffe1(0x1b4)]&&this[_0x16ffe1(0x16f)]['show']({'type':_0xe3500e['Warning'],'content':this[_0x16ffe1(0x2ea)]['t'](_0x5010b6[_0x16ffe1(0x2d3)]||'')}),_0x5010b6['id']===_0x54f12f[_0x16ffe1(0x372)]&&this[_0x16ffe1(0x16f)][_0x16ffe1(0x14b)]({'type':_0xe3500e[_0x16ffe1(0x1fc)],'content':this[_0x16ffe1(0x2ea)]['t'](_0x16ffe1(0x27d))}),_0x5010b6['id']===_0x54f12f[_0x16ffe1(0x25a)]&&this[_0x16ffe1(0x16f)][_0x16ffe1(0x14b)]({'type':_0xe3500e[_0x16ffe1(0x185)],'content':this[_0x16ffe1(0x2ea)]['t']('session.connection-failed')}),_0x5010b6['id']===_0x54f12f['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x16ffe1(0x16f)]['show']({'type':_0xe3500e[_0x16ffe1(0x185)],'content':this[_0x16ffe1(0x2ea)]['t'](_0x16ffe1(0x240))});}));}};_e=cn([F(0x0,_0x58a1a6),F(0x1,_0x26b1ca),F(0x2,_0x13e3c7(_0x195a88)),F(0x3,_0x551408),F(0x4,_0x3ad334),F(0x5,_0x13e3c7(_0x548920))],_e);var _n=Object[_0x2d19ee(0x2a7)],ln=(_0x2d8099,_0x321a93,_0x1a4a93,_0x4ec372)=>{const _0x5549ef=_0x2d19ee;for(var _0x28118d=_0x4ec372>0x1?void 0x0:_0x4ec372?_n(_0x321a93,_0x1a4a93):_0x321a93,_0x2f21a=_0x2d8099[_0x5549ef(0x375)]-0x1,_0x281734;_0x2f21a>=0x0;_0x2f21a--)(_0x281734=_0x2d8099[_0x2f21a])&&(_0x28118d=_0x281734(_0x28118d)||_0x28118d);return _0x28118d;},ne=(_0x247f78,_0x462afa)=>(_0x26fe13,_0x4ce749)=>_0x462afa(_0x26fe13,_0x4ce749,_0x247f78);let le=class extends _0x55618d{constructor(_0x1059d4,_0x3da29f,_0x25b4b9,_0x24d058){const _0x28b106=_0x2d19ee;super(),_(this,_0x28b106(0x30a)),(this[_0x28b106(0x2b2)]=_0x1059d4,this[_0x28b106(0x26e)]=_0x3da29f,this['_logService']=_0x25b4b9,this[_0x28b106(0x376)]=_0x24d058,this[_0x28b106(0x1e9)]());}[_0x2d19ee(0x1e9)](){const _0x51550b=_0x2d19ee;this[_0x51550b(0x362)](),this[_0x51550b(0x2ef)](),this[_0x51550b(0x19e)](),this[_0x51550b(0x206)]();}[_0x2d19ee(0x206)](){const _0x23753d=_0x2d19ee;this[_0x23753d(0x1b6)](this[_0x23753d(0x376)]['socket$']['subscribe'](_0x37c67d=>{const _0x266d73=_0x23753d;this[_0x266d73(0x30a)]=_0x37c67d==null?void 0x0:_0x37c67d[_0x266d73(0x169)];}));}[_0x2d19ee(0x362)](){const _0x2d4b73=_0x2d19ee,_0x1e51a6=_0x10aa05=>{const _0x244ec0=_0x3b77;var _0x306b0a;this[_0x244ec0(0x12e)](_0x244ec0(0x1f9),_0x244ec0(0x2af)+_0x10aa05[_0x244ec0(0x23f)]+_0x244ec0(0x2da)+_0x10aa05['filename']+':'+_0x10aa05[_0x244ec0(0x291)]+':'+_0x10aa05[_0x244ec0(0x212)]+'\x0a'+(((_0x306b0a=_0x10aa05[_0x244ec0(0x1f9)])==null?void 0x0:_0x306b0a[_0x244ec0(0x295)])||''));};window[_0x2d4b73(0x25b)](_0x2d4b73(0x1f9),_0x1e51a6),this['disposeWithMe'](()=>{const _0x145a73=_0x2d4b73;window[_0x145a73(0x37c)](_0x145a73(0x1f9),_0x1e51a6);});}[_0x2d19ee(0x2ef)](){const _0x3fb73f=_0x2d19ee,_0x1be6c2=_0x22afa6=>{const _0x1abeb2=_0x3b77;this[_0x1abeb2(0x12e)]('error',_0x1abeb2(0x179)+_0x22afa6['reason']);};window[_0x3fb73f(0x25b)](_0x3fb73f(0x26f),_0x1be6c2),this[_0x3fb73f(0x1b6)](()=>{const _0x57d0a7=_0x3fb73f;window[_0x57d0a7(0x37c)](_0x57d0a7(0x26f),_0x1be6c2);});}[_0x2d19ee(0x19e)](){const _0x2a94ff=_0x2d19ee,_0x48da72=this['_logService'][_0x2a94ff(0x1f9)][_0x2a94ff(0x2c3)](this[_0x2a94ff(0x244)]);this[_0x2a94ff(0x244)][_0x2a94ff(0x1f9)]=(..._0x1ac629)=>{const _0x5ad08c=_0x2a94ff,_0x16a209=_0x1ac629['map'](_0xd622e0=>_0xd622e0 instanceof Error?_0xd622e0[_0x5ad08c(0x23f)]+'\x0a'+_0xd622e0['stack']:String(_0xd622e0))[_0x5ad08c(0x184)]('\x20');this[_0x5ad08c(0x12e)](_0x5ad08c(0x1f9),_0x5ad08c(0x198)+_0x16a209),_0x48da72(..._0x1ac629);},this['disposeWithMe'](()=>{const _0x39fd0d=_0x2a94ff;this[_0x39fd0d(0x244)][_0x39fd0d(0x1f9)]=_0x48da72;});}['_uploadLog'](_0x1309f1,_0x324fc6){const _0x57f7d5=_0x2d19ee;try{const _0x5dde85={'userId':this[_0x57f7d5(0x30a)],'logLabel':_0x1309f1,'content':_0x324fc6};this[_0x57f7d5(0x26e)]['post'](_0x57f7d5(0x1c1),{'body':_0x5dde85})[_0x57f7d5(0x2be)](()=>{});}catch{}}};function _0x4498(){const _0x554654=['searchParams','url(#$1','_dataLoaderService','_localeService','_cursorInfo$','parseInt','_selfUnitIDs','blue.400','_initUnhandledRejectionListener','_docStateChangeManagerService','_instanceService','m1Prime','limitInfo','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','PERMISSION_DENIED','_transformService','_removeClearOtherTimer','SUCCESS','getCollabCursors$','use','wsSessionTicketUrl','ENTITLE_CAN_NOT_BUY_LOWER_OTP','SNAPSHOT_INVALID_SNAPSHOT','_registerRenderDependencies','YUUMI_ASYNCIO_CANCELLED','invokeId','_colorIndex','triggerDblclick','DeleteRangeMoveLeftCommandId','result','status$','purple.300','origin','_refRangeService','startColumn','_memberID','DATA_SOURCE_TOO_LARGE','_initEvent','min','_getSaveTimeout','_range','NOT_FOUND','_handleEvent','restore','START_CALCULATION','collabStatus.fetchMiss','_setupSubUnitSync','60rsowth','row','_clearPolling','UNIVER_DOC','clearTimeout','univerjs-icon\x20univerjs-icon-','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','LICENSE_IMPORT_SIZE_EXCEEDED','_docTransformIMECacheService','values','_releaseCalculationLimit','displayName','_handleHeartbeatEvent','transformSelections','_onCursorUpdate','transformStateCache','LICENSE_DISTRO_REJECTED','INVITE_CODE_REQUIRED','_docSyncEditingCollabCursorService','includes','stringify','...','3446663kCotNU','getVpScrollXYInfoByPosToVp','_transformHistoryAndStateStack','_updateURLWithCurrentState','setAlpha','selections','REDEMPTION_CODE_NOT_STARTED','_docTransformSelectionsService','_hideTimer','_initCommandInterceptor','_docSkeletonManagerService','_session','PENDING','dispose$','eventID','_syncEditingCollabCursorService','_updateSubUnitFromURLParams','_drawTextRange','currentTheme$','onLocalMutation','MUTATION','M0\x200H16V16H0z','FETCH_MISS','ENTITLE_INSUFFICIENT_QUOTA','cursorInfo','_collaborationUIEventService','DeleteRangeMoveUpCommandId','runId','lineTo','current','top','/run/','getUndoRedoMutationParamsCache','1em','deepClone','urlChange$','map','sessionStatus$','unitId','search','_urlService','endRow','_localCacheService','_handleLeaveEvent','reconnect','pipe','collabStatus.offline','ENTITLE_COUPON_EXPIRED','registerRefRange','ERROR_AGAIN','endColumn','onMouseMove','_sheetSkeletonManagerService','PY_RUNTIME_SCRIPT_ERROR','_initWindowErrorListener','_entities','getSkeleton','text','fillRule','_removeCollabCursors','_labelPosition','unitID','_checkCalculationAvailable','newValue','_getSessionTicket','findNodePositionByCharIndex','redoState','stage','OFFLINE','url(#off-line-icon_clip0_910_343)','SOCKET_FAILED_RETRY','saveOfflineData','_localStorageService','length','_collaborationSessionService','getUnitId','getValue','storage','_getFormulaLimitStatus','_doCreateSocket','removeEventListener','LOGIN_FAILED','_context','_initResize','_hasFormulaInDirtyRanges','_getMergeRange','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','ENSURE_SNAPSHOT_EXECUTION','_taskIds','white','_heartbeatTimer','_uploadLog','doc.mutation.rich-text-editing','NOT_COLLAB','transformByState','string','_onRefRangeChange','saveTaskMap','imageSourceType','forEach','_lastResponseTimestamp','black','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_configService','on-line-icon_clip0_910_349','APPLY_DUPLICATED','onRendered','REDEMPTION_CODE_FULLY_REDEEMED','4292065VBiNff','YUUMI_SUBSCRIPTION_NOT_FOUND','UPDATE_CURSOR','addHandlerCallback','tag','_color','_unitOnClients','_showGuardMessage','OnLineIcon','getCollabEntity$','off-line-icon','undoState','show','all','currentUsage','YUUMI_AI_RUN_FAILED','setTimeout','subscribe','getMemberID','rgba(255,\x20255,\x20255,\x200.01)','LOGIN_TOKEN_PROCESSING_FAILED','loadUnit','init','_collaborationController','evenodd','TOO_MANY_REQUESTS','whenReady','idSuffix','HEADER_MENU','override','[CollaborationDataLoaderController]','ACTIVE_UNIT_EVENT_CHANNEL','ENTITLE_COUPON_USED_UP','hide','getRangePointData','_commandService','startRow','type','set','MoveRangeCommandId','_id','div','memberID','executeCommand','unsubscribe','disableLocalCache','_uiPartsService','send','_messageService','InsertRangeMoveDownCommandId','_beforeCloseService','getParam','startFormulaLimitUrl','unshift','labelPosition','WECHAT_HAS_BEEN_BOUND','APPLY_PERMISSION_DENIED','ALREADY_EXISTS','[Unhandled\x20Rejection]:\x20','INVALID_ARGUMENT','getFocusedUnit','_pollingInterval','onPointerEnter$','yellow.400','_univerInstanceService','APPLY_REVISION_CONFILICT','_backgroundColor','transformIMECache','OTHER_CLIENT_EDITING','join','Error','range','requireSession','createInstance','INVALID_INVITE_CODE','setActiveRange','REDEMPTION_CODE_INACTIVE','defineProperty','_maxFormulaLimit','_initStatusComponent','_themeService','REDEMPTION_INVALID_CODE','add','CHANGESET_REVISION_CONFILICT','makeDirty','addClipboardHook','getConfig','OTHER_CLIENTS_EDITING','INVITE_CODE_HAS_BEEN_UES','[LogService\x20Error]:\x20','width','#FFF','params','univer-flex\x20univer-items-center','setShapeProps','_monkeyPatchLogService','random','YUUMI_TABLE_NOT_FOUND_IN_UNIT','APPLY_REJECT','_anchor','_send','get','totalFormulasToCalculate','AUTHORIZE_CODE_ILLEGAL','permission.content','_imageIoService','next','_clearOtherTimers','getCellPositionByOffset','registerComponent','height','toRgbString','_cursors','getUniverSheetInstance','permission.title','children','application/json','JOIN_ROOM_FAILED','fillText','disposeWithMe','then','isActive','clipPath','_notificationService','push','_toggleOffline','history','fill','_onCursorDelete','LICENSE_MAX_UNITS_EXCEEDED','/universer-api/frontend/logs','_revisionService','key','formula.calculation.waiting','collabStatus.conflict','_checkAndWaitForCalculationPermission','getViewport','isArray','flatMap','setUndoRedoMutationParamsCache','getCellMatrix','RemoveColCommandId','UNDEFINED','YUUMI_NO_CUBOID_FOR_QUESTION','_eventUnsubscribe','_startCalculationLimit','_lastPointer','replaceState','YUUMI_RATE_OVER_LIMIT','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','ONLINE','colorChannel1','_getScale','RECT','transformMutation','_collabSessionService','max','moveTo','getStateCache','_refreshCollabCursors','CURRENT_STATUS_CANNOT_OPERATE','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_collabCursorController','contains','getUnhiddenWorksheets','YUUMI_UNABLE_LOAD_URL','getMergeData','12WrOgoS','_colorAssignService','currentSkeleton$','_init','now','currentColor','mutations','xlink:href','_applyCommand','mask','_assignedColors','9400440MOyjrQ','font','location','on-line-icon','4fMOKCi','setParam','debug','sheetId','error','_docTransformStateCacheService','measureText','Warning','ticket','_cursor','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','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','color','toString','YUUMI_ALL_TABLES_IS_INVALID','enableLocalCache','collaboration.closeRoom','_initUserListener','_hover','101152LvdYuF','0\x200\x2016\x2016','delete','assign','selection','trim','REDEMPTION_USER_NOT_ELIGIBLE','parse','transformRemoteChangeset','3320121NbySqr','colno','36syBAdB','YUUMI_CONNECTOR_URL_NOT_FOUND','_handleHover','disposeUnit','beginPath','_hovered','exhaustSavingTask','966250hHDdQA','EMAIL_HAS_BEEN_BOUND','_textBubble','addObject','onCommandExecuted','TEXT','_scheduleClearOtherTimer','_drawRectRange','_initCommandExecutedListener','split','getAncestorScale','UNIVER_SHEET','href','getCurrentRevOfUnit','green.600','_roomMembers$','_startDocCollabCursor','_docClipboardService','code','_createSocketURL','transformMutationsWithChangeset','collaboration.single-unit.warning','has','dirtyRanges','collaboration.offline-data-not-saved','MOBILE_VERIFY_CODE_MISMATCH','executionId','unit','_initEntityListener','registerRenderModule','setInterval','_registerDependencies','ENTITLE_CHAT_LIMIT_EXCEED','replace','getRelativeToViewportCoord','_getAnchorBounding','_renderManagerService','message','session.collaboration-timeout','VIEW_MAIN','find','_docSkeleton','_logService','_saveTaskMap','event$','_getSheetObject','_startSheetCollabCursor','onPointerLeave$','sessionTicket','_scheduleSaving','collaboration-client-ui.config','off-line-icon_clip0_910_343','pushState','_toggleOnline','INVITE_CODE_ALREADY_BOUND','transform','_updateCollabCursors','_initDependencies','maxFormulaLimit','47789sKUNOO','REDEMPTION_CODE_HAS_BEEN_CREATED','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','uni.network.url-service','_handleJoinEvent','SOCKET_FAILED','addEventListener','drawWith','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getRenderById','_shapes','removeParam','subunit','actions','setConfig','post','roomMembers$','ENTITLE_NEED_BILLING_ADDRESS','assignAColorForMemberID','_memberService','LICENSE_EXPORT_SIZE_EXCEEDED','size','focused$','APPLY_NON_SEQUENTIAL_REVISION','http://www.w3.org/2000/svg','_httpService','unhandledrejection','_transformUndoRedoStack','collab-text-anchor-','ENTITLE_USE_COUPON_NOT_1ST_TRADE','getActiveSheet','AWAITING_WITH_PENDING','getSheetBySheetId','backgroundColor','USER_IS_ANONYMOUS','attrs','USER_NOT_INVITED_CODE','startsWith','asObservable','entityInit$','session.will-retry','_saveCache','_scene','getCurrent','fillStyle','loadOfflineData','subscribeEvent','USERS_LEAVE','body','_setFormulaLimitStatus','ENTITLE_DUP_SUBSCRIPTION','ENTITLE_INVALID_COUPON_CODE','shift','name','_cursorShapes','_drawAnchor','_entityInit$','jiqing.500','_draw','setItem','lineno','from','collab-rect-range-','CONNECTOR_DATA_TOO_LARGE','stack','addObjects','univer-mr-2\x20univer-flex\x20univer-text-xl','_disabled','resize','with','none','SYNCED','_currentUsage','releaseFormulaLimitUrl','getDocRanges','ENTITLE_REPORT_LIMIT_EXCEED','_online','path','_config','getColorFromTheme','complete','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getOwnPropertyDescriptor','_scheduleHeartbeat','cursorInfo$','arc','round','bottom','getMember','_transformPreviousActiveRange','[Window\x20Error]:\x20','NO_OTHER_CLIENTS_EDITING','translate(.97)','_injector','save','USER_NOT_FOUND','textRanges','Unknown\x20user','894maUJrJ','FromArray','onStarting','YUUMI_URL_COL_OUT_OF_RANGE','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_ensureSubject','_unitStatus','catch','_updateLocalCursor','entries','getTypeOfUnitAdded$','onTransformChange$','bind','_cachedData','docStateChange$','formula.calculation.unable','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','PAYMENT_CHANNEL_NOT_SUPPORT','isEditing','getCurrentUnitForType','defIds','m2Prime','EMAIL_VERIFY_CODE_MISMATCH','_setupBeforeClosingHandler','dispose','Failed','_initStatusListener','roomMembers','data','ranges','defs','UNAUTHENTICATED','_status$','UNRECOGNIZED','_render','\x20at\x20','_document','collabCursorState$','INTERNAL_ERROR','_collabCursorState$','column','_anchorDot','_name','symbol','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','collabStatus.syncing','getformulaLimitStatusUrl','getSheetId'];_0x4498=function(){return _0x554654;};return _0x4498();}le=ln([ne(0x0,_0x13e3c7(_0x6717c8)),ne(0x1,_0x13e3c7(_0x58299b)),ne(0x2,_0x2bfead),ne(0x3,_0x13e3c7(_0x431e53))],le);const hn=_0x2d19ee(0x24c),_t={};var un=Object[_0x2d19ee(0x2a7)],dn=(_0x540cd2,_0xf6814c,_0x5cf472,_0x2e4e6d)=>{const _0x496166=_0x2d19ee;for(var _0x3054f0=_0x2e4e6d>0x1?void 0x0:_0x2e4e6d?un(_0xf6814c,_0x5cf472):_0xf6814c,_0x1969be=_0x540cd2[_0x496166(0x375)]-0x1,_0x1d7059;_0x1969be>=0x0;_0x1969be--)(_0x1d7059=_0x540cd2[_0x1969be])&&(_0x3054f0=_0x1d7059(_0x3054f0)||_0x3054f0);return _0x3054f0;},lt=(_0x53318f,_0x13062e)=>(_0x382812,_0x557ccf)=>_0x13062e(_0x382812,_0x557ccf,_0x53318f);let he=class{constructor(_0x3fe2d8,_0x3dd813){const _0x3afe8d=_0x2d19ee;this['_transformService']=_0x3fe2d8,this[_0x3afe8d(0x23e)]=_0x3dd813;}['transformIMECache'](_0x1c8523){const _0x295601=_0x2d19ee;this[_0x295601(0x270)](_0x1c8523),this[_0x295601(0x2ae)](_0x1c8523);}[_0x2d19ee(0x210)](_0x539611){const _0x190217=_0x2d19ee,{unitID:_0x4f6ad9}=_0x539611,_0x5711fa=this[_0x190217(0x23e)][_0x190217(0x25e)](_0x4f6ad9)[_0x190217(0x29a)](_0x57bd0a),{redoCache:_0x358ead}=_0x5711fa[_0x190217(0x34c)]();if(_0x358ead['length']===0x0)return _0x539611;let _0x5aff15=_0x2fbfda[_0x190217(0x34e)](_0x539611[_0x190217(0x1ec)][0x0]);for(let _0x380c61=0x0;_0x380c61<_0x358ead[_0x190217(0x375)];_0x380c61++){const _0x23dd1f={'id':'doc.mutation.rich-text-editing','params':{..._0x358ead[_0x380c61]}},_0x31f56f=this[_0x190217(0x2f6)][_0x190217(0x1d9)](_0x5aff15,_0x23dd1f,!0x1);if(_0xbfd48e(_0x31f56f))throw _0x31f56f[_0x190217(0x1f9)];_0x5aff15=_0x31f56f[_0x190217(0x2f2)];}return{..._0x2fbfda[_0x190217(0x34e)](_0x539611),'mutations':[_0x5aff15]};}['_transformUndoRedoStack'](_0x2ca40d){const _0xc154c5=_0x2d19ee,{unitID:_0x4157f}=_0x2ca40d,_0x2a877f=this[_0xc154c5(0x23e)]['getRenderById'](_0x4157f)['with'](_0x57bd0a),{undoCache:_0x187fc7,redoCache:_0x225a4d}=_0x2a877f[_0xc154c5(0x34c)]();if(_0x187fc7[_0xc154c5(0x375)]===0x0||_0x225a4d[_0xc154c5(0x375)]===0x0)return;const _0x2498a7=[],_0x26959d=[];let _0x5118b1=_0x2fbfda[_0xc154c5(0x34e)](_0x2ca40d[_0xc154c5(0x1ec)][0x0]),_0x4baf34=_0x2fbfda[_0xc154c5(0x34e)](_0x2ca40d[_0xc154c5(0x1ec)][0x0]);for(let _0xca7224=_0x187fc7['length']-0x1;_0xca7224>=0x0;_0xca7224--){const _0x41fcf5={'id':_0xc154c5(0x12f),'params':{..._0x187fc7[_0xca7224]}},_0x1b3cb6={'id':_0xc154c5(0x12f),'params':{..._0x225a4d[_0xca7224]}},_0x3f1b3f=this[_0xc154c5(0x2f6)][_0xc154c5(0x1d9)](_0x5118b1,_0x41fcf5,!0x1),_0x4f014f=this[_0xc154c5(0x2f6)][_0xc154c5(0x1d9)](_0x4baf34,_0x1b3cb6,!0x1);if(_0xbfd48e(_0x3f1b3f))throw _0x3f1b3f[_0xc154c5(0x1f9)];if(_0xbfd48e(_0x4f014f))throw _0x4f014f[_0xc154c5(0x1f9)];_0x2498a7[_0xc154c5(0x174)](_0x3f1b3f['m2Prime'][_0xc154c5(0x19b)]),_0x26959d[_0xc154c5(0x174)](_0x4f014f[_0xc154c5(0x2cc)][_0xc154c5(0x19b)]),_0x5118b1=_0x3f1b3f[_0xc154c5(0x2f2)],_0x4baf34=_0x4f014f[_0xc154c5(0x2f2)];}_0x2a877f[_0xc154c5(0x1ca)]({'undoCache':_0x2498a7,'redoCache':_0x26959d});}['_transformPreviousActiveRange'](_0x4467b6){const _0x251f6f=_0x2d19ee,{unitID:_0x4601ff}=_0x4467b6,_0x183f85=this[_0x251f6f(0x23e)]['getRenderById'](_0x4601ff)[_0x251f6f(0x29a)](_0x57bd0a),_0x3284cb=_0x183f85['getActiveRange']();if(_0x3284cb==null)return;const _0x53a610=[{'id':_0x251f6f(0x12f),'params':{'unitId':_0x4467b6['unitID'],'actions':null,'textRanges':[_0x3284cb]}}],_0x49ef32=this['_transformService']['transformMutationsWithChangeset'](_0x4467b6,_0x53a610);if(!_0x1f1a8a(_0x49ef32))throw _0x49ef32[_0x251f6f(0x1f9)];const _0x5abd96=_0x49ef32[_0x251f6f(0x2cc)][0x0][_0x251f6f(0x19b)][_0x251f6f(0x2b5)];Array[_0x251f6f(0x1c8)](_0x5abd96)&&_0x5abd96['length']&&_0x183f85[_0x251f6f(0x18a)](_0x5abd96[0x0]);}};he=dn([lt(0x0,_0x3990fc),lt(0x1,_0x3e8801)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x590ceb,_0x375ddd,_0x16a7d4,_0x496cb6)=>{const _0x57c585=_0x2d19ee;for(var _0x5e1a43=_0x496cb6>0x1?void 0x0:_0x496cb6?Sn(_0x375ddd,_0x16a7d4):_0x375ddd,_0x1d33f9=_0x590ceb[_0x57c585(0x375)]-0x1,_0x57828c;_0x1d33f9>=0x0;_0x1d33f9--)(_0x57828c=_0x590ceb[_0x1d33f9])&&(_0x5e1a43=_0x57828c(_0x5e1a43)||_0x5e1a43);return _0x5e1a43;},Le=(_0x597f74,_0x2b0af8)=>(_0x458724,_0x5695e6)=>_0x2b0af8(_0x458724,_0x5695e6,_0x597f74);let ue=class{constructor(_0x52fc3b,_0x4819a0,_0x1d1358){const _0x2cacd1=_0x2d19ee;this['_injector']=_0x52fc3b,this[_0x2cacd1(0x2f6)]=_0x4819a0,this['_docStateChangeManagerService']=_0x1d1358;}[_0x2d19ee(0x325)](_0x5a7955){const _0x3929fb=_0x2d19ee;this[_0x3929fb(0x32e)](_0x5a7955);}[_0x2d19ee(0x210)](_0x42d9be){const _0x32def=_0x2d19ee,{unitID:_0x23398a}=_0x42d9be,{collaboration:_0x35af14}=this[_0x32def(0x2f0)][_0x32def(0x1dd)](_0x23398a);if(_0x35af14[_0x32def(0x375)]===0x0)return _0x42d9be;let _0x595e47=_0x2fbfda[_0x32def(0x34e)](_0x42d9be[_0x32def(0x1ec)][0x0]);for(let _0x3efe52=0x0;_0x3efe52<_0x35af14[_0x32def(0x375)];_0x3efe52++){const _0x34b620={'id':_0x32def(0x12f),'params':{'unitId':_0x35af14[_0x3efe52][_0x32def(0x352)],..._0x35af14[_0x3efe52]['redoState']}},_0x1598e4=this[_0x32def(0x2f6)]['transformMutation'](_0x595e47,_0x34b620,!0x1);if(_0xbfd48e(_0x1598e4))throw _0x1598e4[_0x32def(0x1f9)];_0x595e47=_0x1598e4[_0x32def(0x2f2)];}return{..._0x2fbfda[_0x32def(0x34e)](_0x42d9be),'mutations':[_0x595e47]};}[_0x2d19ee(0x32e)](_0x597f8f){const _0x192d1=_0x2d19ee,{unitID:_0x54231b}=_0x597f8f,{history:_0x3f92fe,collaboration:_0x4c5510}=this[_0x192d1(0x2f0)]['getStateCache'](_0x54231b);if(_0x3f92fe[_0x192d1(0x375)]===0x0&&_0x4c5510[_0x192d1(0x375)]===0x0)return;const _0xc73ca6=[],_0x1ff7c3=[];let _0x492ebf=_0x2fbfda[_0x192d1(0x34e)](_0x597f8f[_0x192d1(0x1ec)][0x0]),_0x4272ff=_0x2fbfda[_0x192d1(0x34e)](_0x597f8f[_0x192d1(0x1ec)][0x0]);for(let _0x263506=_0x3f92fe['length']-0x1;_0x263506>=0x0;_0x263506--){const _0x352fa3={'id':_0x192d1(0x12f),'params':{'unitId':_0x3f92fe[_0x263506][_0x192d1(0x352)],..._0x3f92fe[_0x263506][_0x192d1(0x14a)]}},_0x4bd09b={'id':_0x192d1(0x12f),'params':{'unitId':_0x3f92fe[_0x263506][_0x192d1(0x352)],..._0x3f92fe[_0x263506][_0x192d1(0x36e)]}},_0x3a6a97=this[_0x192d1(0x2f6)][_0x192d1(0x1d9)](_0x492ebf,_0x352fa3,!0x1),_0x57beae=this[_0x192d1(0x2f6)][_0x192d1(0x1d9)](_0x4272ff,_0x4bd09b,!0x1);if(_0xbfd48e(_0x3a6a97))throw _0x3a6a97['error'];if(_0xbfd48e(_0x57beae))throw _0x57beae[_0x192d1(0x1f9)];_0xc73ca6['unshift']({..._0x3f92fe[_0x263506],'undoState':_0x3a6a97[_0x192d1(0x2cc)][_0x192d1(0x19b)],'redoState':_0x57beae[_0x192d1(0x2cc)][_0x192d1(0x19b)]}),_0x492ebf=_0x3a6a97[_0x192d1(0x2f2)],_0x4272ff=_0x57beae[_0x192d1(0x2f2)];}_0x492ebf=_0x2fbfda[_0x192d1(0x34e)](_0x597f8f[_0x192d1(0x1ec)][0x0]),_0x4272ff=_0x2fbfda['deepClone'](_0x597f8f['mutations'][0x0]);for(let _0x3c63e4=_0x4c5510[_0x192d1(0x375)]-0x1;_0x3c63e4>=0x0;_0x3c63e4--){const _0x888d36={'id':_0x192d1(0x12f),'params':{'unitId':_0x4c5510[_0x3c63e4][_0x192d1(0x352)],..._0x4c5510[_0x3c63e4][_0x192d1(0x14a)]}},_0x3c2ba2={'id':_0x192d1(0x12f),'params':{'unitId':_0x4c5510[_0x3c63e4][_0x192d1(0x352)],..._0x4c5510[_0x3c63e4]['redoState']}},_0x3aab40=this[_0x192d1(0x2f6)]['transformMutation'](_0x492ebf,_0x888d36,!0x1),_0x5624cb=this[_0x192d1(0x2f6)][_0x192d1(0x1d9)](_0x4272ff,_0x3c2ba2,!0x1);if(_0xbfd48e(_0x3aab40))throw _0x3aab40[_0x192d1(0x1f9)];if(_0xbfd48e(_0x5624cb))throw _0x5624cb[_0x192d1(0x1f9)];_0x1ff7c3[_0x192d1(0x174)]({..._0x4c5510[_0x3c63e4],'undoState':_0x3aab40[_0x192d1(0x2cc)][_0x192d1(0x19b)],'redoState':_0x5624cb[_0x192d1(0x2cc)][_0x192d1(0x19b)]}),_0x492ebf=_0x3aab40['m1Prime'],_0x4272ff=_0x5624cb[_0x192d1(0x2f2)];}this[_0x192d1(0x2f0)]['setStateCache'](_0x54231b,{'history':_0xc73ca6,'collaboration':_0x1ff7c3});}};ue=In([Le(0x0,_0x13e3c7(_0x6717c8)),Le(0x1,_0x3990fc),Le(0x2,_0x13e3c7(_0x7528bc))],ue);var mn=Object[_0x2d19ee(0x2a7)],fn=(_0x9cd1c1,_0x233171,_0x4f108c,_0xb3ce5f)=>{for(var _0x4d979b=_0xb3ce5f>0x1?void 0x0:_0xb3ce5f?mn(_0x233171,_0x4f108c):_0x233171,_0x593d0d=_0x9cd1c1['length']-0x1,_0x57cbb3;_0x593d0d>=0x0;_0x593d0d--)(_0x57cbb3=_0x9cd1c1[_0x593d0d])&&(_0x4d979b=_0x57cbb3(_0x4d979b)||_0x4d979b);return _0x4d979b;},ht=(_0x15f2be,_0x576101)=>(_0x3cc277,_0x305094)=>_0x576101(_0x3cc277,_0x305094,_0x15f2be);let de=class{constructor(_0x4a170c,_0x133bdc){const _0x4e78ec=_0x2d19ee;this[_0x4e78ec(0x2b2)]=_0x4a170c,this[_0x4e78ec(0x2f6)]=_0x133bdc;}[_0x2d19ee(0x323)](_0x208d0f){const _0x362ae7=_0x2d19ee;var _0x22ef8c;const _0x1b2c54=this['_injector'][_0x362ae7(0x1a4)](_0x318e9f),_0x4b47ac=(_0x22ef8c=_0x1b2c54[_0x362ae7(0x29f)]())!=null?_0x22ef8c:[];if(_0x4b47ac[_0x362ae7(0x375)]===0x0)return;const _0x26977c=_0x208d0f[_0x362ae7(0x369)],_0x3d5eac=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x26977c,'actions':null,'textRanges':_0x4b47ac}}],_0x3084ab=this[_0x362ae7(0x2f6)][_0x362ae7(0x22e)](_0x208d0f,_0x3d5eac);if(!_0x1f1a8a(_0x3084ab))throw _0x3084ab['error'];const _0x587d1a=_0x3084ab[_0x362ae7(0x2cc)][0x0][_0x362ae7(0x19b)][_0x362ae7(0x2b5)];Array[_0x362ae7(0x1c8)](_0x587d1a)&&_0x587d1a[_0x362ae7(0x375)]&&_0x1b2c54['replaceDocRanges'](_0x587d1a,{'unitId':_0x26977c,'subUnitId':_0x26977c},!0x1);}};de=fn([ht(0x0,_0x13e3c7(_0x6717c8)),ht(0x1,_0x3990fc)],de);var gn=Object[_0x2d19ee(0x2a7)],En=(_0x29f24d,_0x43cb46,_0x268fe2,_0x313bae)=>{const _0x2b84c0=_0x2d19ee;for(var _0x2cd900=_0x313bae>0x1?void 0x0:_0x313bae?gn(_0x43cb46,_0x268fe2):_0x43cb46,_0x889780=_0x29f24d[_0x2b84c0(0x375)]-0x1,_0x17a722;_0x889780>=0x0;_0x889780--)(_0x17a722=_0x29f24d[_0x889780])&&(_0x2cd900=_0x17a722(_0x2cd900)||_0x2cd900);return _0x2cd900;},U=(_0x4a7c76,_0xd5897b)=>(_0x2de368,_0x3adc1f)=>_0xd5897b(_0x2de368,_0x3adc1f,_0x4a7c76);let Se=class extends _0x55618d{constructor(_0x687429,_0x5f3e19,_0xdc1337,_0x3b9833,_0x5c4211,_0x4109c8,_0xa97e7a,_0x339a53){const _0x5b85b3=_0x2d19ee;super(),_(this,_0x5b85b3(0x2d7),new _0x5689a5(_0x14e54a[_0x5b85b3(0x130)])),(this[_0x5b85b3(0x2f0)]=_0x687429,this[_0x5b85b3(0x156)]=_0x5f3e19,this['_docTransformIMECacheService']=_0xdc1337,this['_docTransformStateCacheService']=_0x3b9833,this['_docTransformSelectionsService']=_0x5c4211,this[_0x5b85b3(0x328)]=_0x4109c8,this['_messageService']=_0xa97e7a,this[_0x5b85b3(0x2ea)]=_0x339a53,this['_initEntityListener']());}[_0x2d19ee(0x236)](){const _0x1aa2c2=_0x2d19ee;this['disposeWithMe'](this[_0x1aa2c2(0x156)][_0x1aa2c2(0x27c)][_0x1aa2c2(0x150)](_0x564ed5=>{const _0x999348=_0x1aa2c2,_0x2bf5a6=this[_0x999348(0x2f0)][_0x999348(0x2c5)][_0x999348(0x150)](_0x72ece0=>{const _0x554c91=_0x999348;if(_0x72ece0==null)return;const {unitId:_0x546ca3,redoState:_0x5f0d0a,commandId:_0xfeea51}=_0x72ece0;if(_0x546ca3!==_0x564ed5[_0x554c91(0x369)])return;const _0xd733f={'id':_0xfeea51,'type':_0x569143[_0x554c91(0x340)],'params':{'unitId':_0x546ca3,'actions':_0x5f0d0a[_0x554c91(0x262)],'textRanges':null}};_0x564ed5[_0x554c91(0x33f)](_0xd733f);});if(_0x564ed5[_0x999348(0x1b6)](_0x2bf5a6),_0x564ed5 instanceof _0x5da887){const _0xf5f721={'onTransformIME':_0x193415=>this[_0x999348(0x31e)][_0x999348(0x182)](_0x193415),'onTransformState':_0x388489=>this[_0x999348(0x1fa)][_0x999348(0x325)](_0x388489),'onTransformSelections':_0xb6bc5c=>this[_0x999348(0x333)]['transformSelections'](_0xb6bc5c),'onSyncEditingCollabCursor':_0x52d1aa=>this[_0x999348(0x328)]['syncEditingCollabCursor'](_0x52d1aa),'onTransformRemoteChangesetByIMECache':_0x4d20d4=>this[_0x999348(0x31e)][_0x999348(0x210)](_0x4d20d4),'onTransformRemoteChangesetByStateCache':_0x293d71=>this[_0x999348(0x1fa)][_0x999348(0x210)](_0x293d71)};_0x564ed5[_0x999348(0x142)](_0xf5f721);}}));}};Se=En([U(0x0,_0x13e3c7(_0x7528bc)),U(0x1,_0x13e3c7(_0x151f08)),U(0x2,_0x13e3c7(he)),U(0x3,_0x13e3c7(ue)),U(0x4,_0x13e3c7(de)),U(0x5,_0x13e3c7(ze)),U(0x6,_0x551408),U(0x7,_0x13e3c7(_0x548920))],Se);var Z=(_0x5c5bee=>(_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1cd)]=0x0]='UNDEFINED',_0x5c5bee[_0x5c5bee['OK']=0x1]='OK',_0x5c5bee[_0x5c5bee['INTERNAL_ERROR']=0x2]=_0x2d19ee(0x2dd),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2f5)]=0x3]=_0x2d19ee(0x2f5),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x310)]=0x4]='NOT_FOUND',_0x5c5bee[_0x5c5bee['UNAUTHENTICATED']=0x5]=_0x2d19ee(0x2d6),_0x5c5bee[_0x5c5bee['ALREADY_EXISTS']=0x6]=_0x2d19ee(0x178),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x17a)]=0x7]=_0x2d19ee(0x17a),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x158)]=0x8]=_0x2d19ee(0x158),_0x5c5bee[_0x5c5bee['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x37d)]=0xa]=_0x2d19ee(0x37d),_0x5c5bee[_0x5c5bee['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x2d19ee(0x233),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2f4)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2cd)]=0xd]=_0x2d19ee(0x2cd),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x25d)]=0xe]=_0x2d19ee(0x25d),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1a6)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x153)]=0x10]=_0x2d19ee(0x153),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1df)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x35d)]=0x65]=_0x2d19ee(0x35d),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2b4)]=0xc9]=_0x2d19ee(0x2b4),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x277)]=0xca]=_0x2d19ee(0x277),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x192)]=0x1389]=_0x2d19ee(0x192),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2fd)]=0x1771]=_0x2d19ee(0x2fd),_0x5c5bee[_0x5c5bee['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x383)]=0x1773]=_0x2d19ee(0x383),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1a1)]=0x1b59]=_0x2d19ee(0x1a1),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x26c)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x180)]=0x1b5b]=_0x2d19ee(0x180),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x177)]=0x1b5c]=_0x2d19ee(0x177),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x13c)]=0x1b5d]=_0x2d19ee(0x13c),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x294)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1c0)]=0x2329]=_0x2d19ee(0x1c0),_0x5c5bee[_0x5c5bee['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x2d19ee(0x382),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x31d)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x269)]=0x232c]=_0x2d19ee(0x269),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x326)]=0x232d]=_0x2d19ee(0x326),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1e4)]=0x2711]=_0x2d19ee(0x1e4),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2ba)]=0x2712]=_0x2d19ee(0x2ba),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1d3)]=0x2713]=_0x2d19ee(0x1d3),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x140)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1ce)]=0x271a]=_0x2d19ee(0x1ce),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2ff)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1a0)]=0x271c]=_0x2d19ee(0x1a0),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x203)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x5c5bee[_0x5c5bee['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x2d19ee(0x2e3),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x14e)]=0x271f]=_0x2d19ee(0x14e),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x214)]=0x2720]=_0x2d19ee(0x214),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x361)]=0x2af9]=_0x2d19ee(0x361),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x197)]=0x2ee1]=_0x2d19ee(0x197),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x189)]=0x2ee2]='INVALID_INVITE_CODE',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x327)]=0x2ee3]=_0x2d19ee(0x327),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x279)]=0x2ee4]=_0x2d19ee(0x279),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x250)]=0x2ee5]=_0x2d19ee(0x250),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x176)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x5c5bee[_0x5c5bee['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x21b)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2fc)]=0x36b1]=_0x2d19ee(0x2fc),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x200)]=0x36b2]=_0x2d19ee(0x200),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x287)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2c8)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x288)]=0x36b5]=_0x2d19ee(0x288),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x35b)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x15f)]=0x36b7]=_0x2d19ee(0x15f),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x272)]=0x36b8]=_0x2d19ee(0x272),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x23a)]=0x3715]=_0x2d19ee(0x23a),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2a0)]=0x3716]=_0x2d19ee(0x2a0),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x343)]=0x3717]=_0x2d19ee(0x343),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x266)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x190)]=0x3a99]=_0x2d19ee(0x190),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x18b)]=0x3a9a]=_0x2d19ee(0x18b),_0x5c5bee[_0x5c5bee['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x2d19ee(0x13e),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x332)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x20e)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2bb)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x256)]=0x3a9f]=_0x2d19ee(0x256),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x30b)]=0x3e81]=_0x2d19ee(0x30b),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2d8)]=-0x1]=_0x2d19ee(0x2d8),_0x5c5bee))(Z||{});function vn(_0x2b4667){const _0x23881d=_0x2d19ee;var _0x208e70,_0x465e35;const _0x8c0661=(_0x208e70=_0x2b4667['stageInfo'])==null?void 0x0:_0x208e70[_0x23881d(0x36f)],_0x57f057=((_0x465e35=_0x2b4667['stageInfo'])==null?void 0x0:_0x465e35[_0x23881d(0x1a5)])||0x0;return _0x8c0661===_0x5d8674[_0x23881d(0x313)]&&_0x57f057>0x0;}function pn(_0x256f3d){const _0x275ed7=_0x2d19ee;return _0x256f3d['functionsExecutedState']===_0x2ae0c4[_0x275ed7(0x2f8)];}var On=Object[_0x2d19ee(0x2a7)],Tn=(_0x4e4a70,_0x418883,_0x5f2d82,_0x410715)=>{const _0x775fb1=_0x2d19ee;for(var _0x57197f=_0x410715>0x1?void 0x0:_0x410715?On(_0x418883,_0x5f2d82):_0x418883,_0x367f93=_0x4e4a70[_0x775fb1(0x375)]-0x1,_0x24e8af;_0x367f93>=0x0;_0x367f93--)(_0x24e8af=_0x4e4a70[_0x367f93])&&(_0x57197f=_0x24e8af(_0x57197f)||_0x57197f);return _0x57197f;},P=(_0x208601,_0x1cec2d)=>(_0x319a87,_0xb1bca9)=>_0x1cec2d(_0x319a87,_0xb1bca9,_0x208601);const Cn='/universer-api/license/formula/limit/status',Rn='/universer-api/license/formula/limit/start',Dn='/universer-api/license/formula/limit/done';let Ie=class extends _0x55618d{constructor(_0xcc6e53,_0x4d7258,_0x3e567e,_0x4e1d6d,_0x3ae3ac,_0x512a99,_0x5c15de){const _0x17aaf0=_0x2d19ee;super(),_(this,'_pollingInterval',null),_(this,_0x17aaf0(0x18d),0x0),_(this,_0x17aaf0(0x29d),0x0),_(this,'_taskIds',[]),_(this,_0x17aaf0(0x137),0x0),(this[_0x17aaf0(0x16f)]=_0xcc6e53,this[_0x17aaf0(0x162)]=_0x4d7258,this[_0x17aaf0(0x13a)]=_0x3e567e,this['_httpService']=_0x4e1d6d,this['_univerInstanceService']=_0x3ae3ac,this['_logService']=_0x512a99,this[_0x17aaf0(0x2ea)]=_0x5c15de,this[_0x17aaf0(0x335)]());}[_0x2d19ee(0x335)](){const _0x35c0ca=_0x2d19ee;this[_0x35c0ca(0x1b6)](this[_0x35c0ca(0x162)]['beforeCommandExecuted']((_0x4094e9,_0x55d8ab)=>{const _0x433236=_0x35c0ca;var _0x38bcf0;if(_0x4094e9['id']!==_0x4f8fdb['id'])return;const _0x101d97=_0x4094e9[_0x433236(0x19b)];if(!this[_0x433236(0x380)]((_0x38bcf0=_0x101d97[_0x433236(0x231)])!=null?_0x38bcf0:[]))return;if(!this[_0x433236(0x36a)]())throw this[_0x433236(0x1c6)](_0x4094e9,_0x55d8ab),this[_0x433236(0x146)](),new _0x1dbb9e();})),this[_0x35c0ca(0x1b6)](this[_0x35c0ca(0x162)][_0x35c0ca(0x21e)]((_0x34953d,_0x36f5b6)=>{const _0x961d0=_0x35c0ca;if(_0x34953d['id']!==_0x33cc11['id'])return;const _0xf38736=_0x34953d['params'];if(vn(_0xf38736)){const _0x1264a4=_0x377b4b();this['_taskIds']['push'](_0x1264a4),this[_0x961d0(0x1d0)](_0x1264a4);}else{if(pn(_0xf38736)&&this['_taskIds'][_0x961d0(0x375)]>0x0){const _0x1c5fc0=this['_taskIds'][_0x961d0(0x289)]();this[_0x961d0(0x320)](_0x1c5fc0);}}}));}[_0x2d19ee(0x2cf)](){const _0x472e42=_0x2d19ee;super[_0x472e42(0x2cf)](),this[_0x472e42(0x318)](),this[_0x472e42(0x384)]=[],this[_0x472e42(0x29d)]=0x0,this[_0x472e42(0x18d)]=0x0,this[_0x472e42(0x137)]=0x0;}async[_0x2d19ee(0x1c6)](_0x1f84f0,_0x1974df){const _0x23506c=_0x2d19ee;for(let _0x24729b=0x0;_0x24729b<0x1e;_0x24729b++)try{if(await this[_0x23506c(0x37a)](),this[_0x23506c(0x36a)]()){this['_applyCommand'](_0x1f84f0,_0x1974df),this[_0x23506c(0x16f)][_0x23506c(0x14b)]({'content':this[_0x23506c(0x2ea)]['t']('formula.calculation.started'),'type':_0xe3500e['Success']});return;}await new Promise(_0x16f281=>{const _0x5b94a5=_0x23506c;this[_0x5b94a5(0x17c)]=window['setTimeout'](_0x16f281,0x3e8);});}catch(_0x44fadf){this[_0x23506c(0x244)][_0x23506c(0x1f9)](_0x44fadf);}this[_0x23506c(0x16f)][_0x23506c(0x14b)]({'content':this['_localeService']['t'](_0x23506c(0x2c6)),'type':_0xe3500e[_0x23506c(0x185)]});}[_0x2d19ee(0x1ee)](_0xa2832a,_0x42294e){const _0x575c49=_0x2d19ee;try{this['_commandService'][_0x575c49(0x16a)](_0xa2832a['id'],_0xa2832a[_0x575c49(0x19b)],_0x42294e);}catch(_0x35329a){this['_logService'][_0x575c49(0x1f9)](_0x35329a);}}[_0x2d19ee(0x286)](_0x3d89d6,_0x2a4ba7){const _0x2ec63b=_0x2d19ee;_0x2a4ba7<this[_0x2ec63b(0x137)]||(this[_0x2ec63b(0x137)]=_0x2a4ba7,this[_0x2ec63b(0x18d)]=Number[_0x2ec63b(0x2ec)](_0x3d89d6[_0x2ec63b(0x254)]),this[_0x2ec63b(0x29d)]=Number[_0x2ec63b(0x2ec)](_0x3d89d6[_0x2ec63b(0x14d)]));}async[_0x2d19ee(0x1d0)](_0x488007){const _0x2f31bb=_0x2d19ee;var _0x176a45,_0x2a3f50;const _0x2f983e=Date[_0x2f31bb(0x1ea)]();try{const _0x12f937=((_0x176a45=this[_0x2f31bb(0x13a)]['getConfig'](_0x189603))==null?void 0x0:_0x176a45[_0x2f31bb(0x173)])||Rn,_0x1ecd2d=(await this[_0x2f31bb(0x26e)][_0x2f31bb(0x264)](_0x12f937,{'body':JSON[_0x2f31bb(0x32a)]({'taskId':_0x488007})}))['body'];if(((_0x2a3f50=_0x1ecd2d['error'])==null?void 0x0:_0x2a3f50[_0x2f31bb(0x22c)])!==Z['OK'])return;this[_0x2f31bb(0x286)](_0x1ecd2d[_0x2f31bb(0x2f3)],_0x2f983e);}catch(_0x32531b){this[_0x2f31bb(0x244)][_0x2f31bb(0x1f9)](_0x32531b);}}async[_0x2d19ee(0x37a)](_0x248b86){const _0xfb0003=_0x2d19ee;var _0x3ee818,_0x5e2886;const _0x58ccdf=Date[_0xfb0003(0x1ea)]();try{const _0x4044a3=((_0x3ee818=this[_0xfb0003(0x13a)][_0xfb0003(0x195)](_0x189603))==null?void 0x0:_0x3ee818[_0xfb0003(0x2e5)])||Cn,_0x5193a8=_0x248b86?_0x4044a3+'?taskId='+encodeURIComponent(_0x248b86):_0x4044a3,_0x41c7d0=(await this['_httpService']['get'](_0x5193a8))[_0xfb0003(0x285)];if(((_0x5e2886=_0x41c7d0[_0xfb0003(0x1f9)])==null?void 0x0:_0x5e2886[_0xfb0003(0x22c)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x41c7d0[_0xfb0003(0x2f3)],_0x58ccdf);}catch(_0x4677d9){this['_logService'][_0xfb0003(0x1f9)](_0x4677d9);}}async[_0x2d19ee(0x320)](_0x19825b){const _0x5774a9=_0x2d19ee;var _0x346db3,_0x48c78a;const _0x4670d1=Date[_0x5774a9(0x1ea)]();try{const _0xa1109e=((_0x346db3=this[_0x5774a9(0x13a)][_0x5774a9(0x195)](_0x189603))==null?void 0x0:_0x346db3[_0x5774a9(0x29e)])||Dn,_0x2a4fde=(await this[_0x5774a9(0x26e)]['post'](_0xa1109e,{'body':JSON[_0x5774a9(0x32a)]({'taskId':_0x19825b})}))[_0x5774a9(0x285)];if(((_0x48c78a=_0x2a4fde['error'])==null?void 0x0:_0x48c78a[_0x5774a9(0x22c)])!==Z['OK'])return;this[_0x5774a9(0x286)](_0x2a4fde[_0x5774a9(0x2f3)],_0x4670d1);}catch(_0x3e48aa){this['_logService'][_0x5774a9(0x1f9)](_0x3e48aa);}}[_0x2d19ee(0x36a)](){const _0x2faf7f=_0x2d19ee;return this[_0x2faf7f(0x18d)]===0x0?!0x0:this[_0x2faf7f(0x18d)]-this[_0x2faf7f(0x29d)]>0x0;}['_clearPolling'](){const _0x5836d1=_0x2d19ee;this[_0x5836d1(0x17c)]&&(clearTimeout(this[_0x5836d1(0x17c)]),this['_pollingInterval']=null);}[_0x2d19ee(0x146)](){const _0x29d7bd=_0x2d19ee;this[_0x29d7bd(0x16f)][_0x29d7bd(0x14b)]({'content':this[_0x29d7bd(0x2ea)]['t'](_0x29d7bd(0x1c4)),'type':_0xe3500e['Loading']});}[_0x2d19ee(0x380)](_0x1679f7){const _0x303311=_0x2d19ee;for(const _0x315506 of _0x1679f7){const {unitId:_0x5f2717,sheetId:_0x534efb,range:_0x830391}=_0x315506,_0x5826c2=this['_univerInstanceService']['getUnit'](_0x5f2717);if(!_0x5826c2)continue;const _0x5c9e7b=_0x5826c2[_0x303311(0x275)](_0x534efb);if(!_0x5c9e7b)continue;const _0x2a4045=_0x5c9e7b[_0x303311(0x1cb)]();for(let _0xb3b960=_0x830391[_0x303311(0x163)];_0xb3b960<=_0x830391[_0x303311(0x355)];_0xb3b960++)for(let _0x4ff9c8=_0x830391[_0x303311(0x309)];_0x4ff9c8<=_0x830391[_0x303311(0x35e)];_0x4ff9c8++){const _0x3074d2=_0x2a4045[_0x303311(0x378)](_0xb3b960,_0x4ff9c8);if(_0x3074d2&&(_0x14248c(_0x3074d2['f'])||_0xcdcb23(_0x3074d2['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x13e3c7(_0x551408)),P(0x1,_0x44deef),P(0x2,_0x46a8a4),P(0x3,_0x13e3c7(_0x58299b)),P(0x4,_0x5ea64d),P(0x5,_0x2bfead),P(0x6,_0x13e3c7(_0x548920))],Ie);var Nn=Object[_0x2d19ee(0x2a7)],bn=(_0x4e12cf,_0x591555,_0xe4e293,_0x2c8e13)=>{const _0x4fdefe=_0x2d19ee;for(var _0x189c67=_0x2c8e13>0x1?void 0x0:_0x2c8e13?Nn(_0x591555,_0xe4e293):_0x591555,_0x567279=_0x4e12cf[_0x4fdefe(0x375)]-0x1,_0x598bca;_0x567279>=0x0;_0x567279--)(_0x598bca=_0x4e12cf[_0x567279])&&(_0x189c67=_0x598bca(_0x189c67)||_0x189c67);return _0x189c67;},Ue=(_0x135334,_0x27e192)=>(_0x7d8942,_0x5a0c44)=>_0x27e192(_0x7d8942,_0x5a0c44,_0x135334);let He=class extends _0x55618d{constructor(_0x2d3b65,_0x55991d,_0x5d0a6f){const _0x3e7f39=_0x2d19ee;super(),_(this,_0x3e7f39(0x2c4),new Map()),_(this,_0x3e7f39(0x245),new Map()),_(this,_0x3e7f39(0x298),!0x1),(this[_0x3e7f39(0x13a)]=_0x2d3b65,this[_0x3e7f39(0x374)]=_0x55991d,this['_revisionService']=_0x5d0a6f);}[_0x2d19ee(0x16c)](){this['_disabled']=!0x0;}[_0x2d19ee(0x204)](){const _0x389f98=_0x2d19ee;this[_0x389f98(0x298)]=!0x1;}get[_0x2d19ee(0x134)](){const _0x41a64e=_0x2d19ee;return this[_0x41a64e(0x245)];}['dispose'](){const _0x2d50bf=_0x2d19ee;this[_0x2d50bf(0x219)]()['then'](()=>super['dispose']());}async[_0x2d19ee(0x282)](_0x9bedd8){const _0x296fdd=_0x2d19ee;return this[_0x296fdd(0x298)]?null:this['_localStorageService']['getItem'](_0x5850c1(_0x9bedd8));}async[_0x2d19ee(0x373)](_0x2e8cff,_0x4fbe21){const _0x298b2c=_0x2d19ee;return!!this[_0x298b2c(0x374)][_0x298b2c(0x290)](_0x2e8cff,_0x4fbe21);}['updateOfflineData'](_0x3939cb,_0x3043a1,_0x72d43d,_0x281327){const _0x175766=_0x2d19ee,_0x3e73ca=this[_0x175766(0x1c2)][_0x175766(0x227)](_0x3939cb);this[_0x175766(0x2c4)]['set'](_0x3939cb,{'unitID':_0x3939cb,'type':_0x3043a1,'awaitingChangeset':_0x72d43d,'mutations':_0x281327,'rev':_0x3e73ca}),this[_0x175766(0x245)]['has'](_0x3939cb)||this[_0x175766(0x24b)](_0x3939cb);}[_0x2d19ee(0x24b)](_0x51bf2c){const _0x3e5628=_0x2d19ee,_0x386960=this[_0x3e5628(0x30e)]();_0x386960===0x0?this[_0x3e5628(0x27e)](_0x51bf2c):this[_0x3e5628(0x245)][_0x3e5628(0x165)](_0x51bf2c,setTimeout(()=>this[_0x3e5628(0x27e)](_0x51bf2c),_0x386960));}[_0x2d19ee(0x30e)](){const _0x585e4c=_0x2d19ee;var _0x126c8d;return(_0x126c8d=this['_configService'][_0x585e4c(0x195)](_0x3d4cf4))!=null?_0x126c8d:_0x9823a9;}[_0x2d19ee(0x27e)](_0x340be8){const _0x296c6b=_0x2d19ee,_0x3ee3db=this[_0x296c6b(0x245)]['get'](_0x340be8);return _0x3ee3db!==void 0x0&&window[_0x296c6b(0x31a)](_0x3ee3db),this['_localStorageService'][_0x296c6b(0x290)](_0x5850c1(_0x340be8),this['_cachedData'][_0x296c6b(0x1a4)](_0x340be8))['then'](()=>this[_0x296c6b(0x245)]['delete'](_0x340be8));}async[_0x2d19ee(0x219)](){const _0x3b6a95=_0x2d19ee,_0x5987bb=[];this[_0x3b6a95(0x245)][_0x3b6a95(0x136)]((_0x29cf69,_0x1d223c)=>{const _0x296d15=_0x3b6a95;window[_0x296d15(0x31a)](_0x29cf69),_0x5987bb[_0x296d15(0x1bb)](this[_0x296d15(0x27e)](_0x1d223c)[_0x296d15(0x1b7)](()=>{const _0x541c5e=_0x296d15;this[_0x541c5e(0x245)]['delete'](_0x1d223c);}));}),await Promise[_0x3b6a95(0x14c)](_0x5987bb);}};He=bn([Ue(0x0,_0x46a8a4),Ue(0x1,_0x12194a),Ue(0x2,_0x13e3c7(_0x1c8bce))],He);class Ln extends _0x5b8c04{constructor(){const _0x5472f4=_0x2d19ee;super(),_(this,_0x5472f4(0x34f)),this[_0x5472f4(0x34f)]=_0x197cc9(window,'popstate')[_0x5472f4(0x359)](_0xefe94(this[_0x5472f4(0x339)]),_0x240f5f(0x1),_0x11e4f1(void 0x0));}[_0x2d19ee(0x1f6)](_0x197f8a,_0x8c19c4,_0x1d6ea1=!0x1){const _0x212600=_0x2d19ee,_0x492818=new URL(window[_0x212600(0x1f3)]['href']);_0x492818[_0x212600(0x2e7)]['set'](_0x197f8a,_0x8c19c4),_0x1d6ea1?window[_0x212600(0x1bd)][_0x212600(0x1d2)]('','',_0x492818[_0x212600(0x202)]()):window[_0x212600(0x1bd)]['pushState']('','',_0x492818[_0x212600(0x202)]());}[_0x2d19ee(0x260)](_0x3335e7,_0x552081=!0x1){const _0x278315=_0x2d19ee,_0x63faa=new URL(window[_0x278315(0x1f3)]['href']);_0x63faa['searchParams'][_0x278315(0x20a)](_0x3335e7),_0x552081?window[_0x278315(0x1bd)][_0x278315(0x1d2)]('','',_0x63faa[_0x278315(0x202)]()):window['history'][_0x278315(0x24e)]('','',_0x63faa[_0x278315(0x202)]());}[_0x2d19ee(0x172)](_0x2e6620){const _0x2ce507=_0x2d19ee;var _0xe5443b;return(_0xe5443b=new URL(window[_0x2ce507(0x1f3)][_0x2ce507(0x226)])['searchParams'][_0x2ce507(0x1a4)](_0x2e6620))!=null?_0xe5443b:void 0x0;}}var Un=Object[_0x2d19ee(0x18c)],Mn=Object['getOwnPropertyDescriptor'],An=(_0x8b4961,_0x37524b,_0x1c0475)=>_0x37524b in _0x8b4961?Un(_0x8b4961,_0x37524b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c0475}):_0x8b4961[_0x37524b]=_0x1c0475,Pn=(_0xca2858,_0xa3910f,_0x51b750,_0x2a05e7)=>{for(var _0x22df6a=_0x2a05e7>0x1?void 0x0:_0x2a05e7?Mn(_0xa3910f,_0x51b750):_0xa3910f,_0x50c4f1=_0xca2858['length']-0x1,_0x9ca1b7;_0x50c4f1>=0x0;_0x50c4f1--)(_0x9ca1b7=_0xca2858[_0x50c4f1])&&(_0x22df6a=_0x9ca1b7(_0x22df6a)||_0x22df6a);return _0x22df6a;},Me=(_0xb87721,_0x3925dc)=>(_0x48ee5a,_0xf9df4f)=>_0x3925dc(_0x48ee5a,_0xf9df4f,_0xb87721),wn=(_0x4fa227,_0x2913f8,_0x2c9dfb)=>An(_0x4fa227,_0x2913f8+'',_0x2c9dfb);const yn=_0x2d19ee(0x2c7);let Ye=class extends _0x3c443e{constructor(_0x4071f0=_t,_0x3d63ab,_0x574f6b,_0x2f1969){const _0x39e09b=_0x2d19ee;super(),this[_0x39e09b(0x2a3)]=_0x4071f0,this[_0x39e09b(0x23e)]=_0x3d63ab,this[_0x39e09b(0x2b2)]=_0x574f6b,this[_0x39e09b(0x13a)]=_0x2f1969;const {..._0x21f80d}=_0x2b7521({},_t,this[_0x39e09b(0x2a3)]);this[_0x39e09b(0x13a)][_0x39e09b(0x263)](hn,_0x21f80d);}[_0x2d19ee(0x2b9)](){const _0x232373=_0x2d19ee;this['_registerDependencies'](),this[_0x232373(0x253)]();}[_0x2d19ee(0x13d)](){const _0x30d1e4=_0x2d19ee;this[_0x30d1e4(0x2fe)]();}[_0x2d19ee(0x239)](){const _0x126b6c=_0x2d19ee;var _0x5f44d9;const _0x3a56e1=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x8a83ca,{'useClass':_0x1d6857}],[_0x26b1ca,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x126b6c(0x2a3)]['enableFrontendLog']&&_0x3a56e1[_0x126b6c(0x1bb)]([le]),_0x2c2aad(this[_0x126b6c(0x2b2)],_0x3b0ae8(_0x3a56e1,(_0x5f44d9=this[_0x126b6c(0x2a3)])==null?void 0x0:_0x5f44d9[_0x126b6c(0x15c)]));}[_0x2d19ee(0x2fe)](){const _0x3f6b56=_0x2d19ee;this[_0x3f6b56(0x1b6)](this[_0x3f6b56(0x23e)][_0x3f6b56(0x237)](_0x1de887['UNIVER_DOC'],[Fe])),this[_0x3f6b56(0x1b6)](this[_0x3f6b56(0x23e)][_0x3f6b56(0x237)](_0x1de887[_0x3f6b56(0x225)],[ke]));}[_0x2d19ee(0x253)](){const _0x4dc292=_0x2d19ee;_0x248c4c(this[_0x4dc292(0x2b2)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this['_config']['enableFrontendLog']&&_0x248c4c(this['_injector'],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x3f4a8a(_0x3b5370),Me(0x1,_0x3e8801),Me(0x2,_0x13e3c7(_0x6717c8)),Me(0x3,_0x46a8a4)],Ye);var $n=Object['getOwnPropertyDescriptor'],xn=(_0x318c35,_0x515852,_0xff9462,_0x5f3898)=>{const _0x13d982=_0x2d19ee;for(var _0x21fea2=_0x5f3898>0x1?void 0x0:_0x5f3898?$n(_0x515852,_0xff9462):_0x515852,_0xcf615=_0x318c35[_0x13d982(0x375)]-0x1,_0x266341;_0xcf615>=0x0;_0xcf615--)(_0x266341=_0x318c35[_0xcf615])&&(_0x21fea2=_0x266341(_0x21fea2)||_0x21fea2);return _0x21fea2;},J=(_0x519a48,_0x47e511)=>(_0x237372,_0x5d70d5)=>_0x47e511(_0x237372,_0x5d70d5,_0x519a48);let ut=class extends _0x1caedd{constructor(_0x425599,_0x409021,_0x382d95,_0x230b83,_0x5f0a2a){super(_0x425599,_0x409021,_0x382d95,_0x230b83,_0x5f0a2a);}async['createSocket'](_0x1d62b1){const _0x197c04=_0x2d19ee,_0x1adc14=await this[_0x197c04(0x36c)](),_0x4fbeff=this[_0x197c04(0x22d)](_0x1d62b1,_0x1adc14);return this[_0x197c04(0x37b)](_0x4fbeff);}[_0x2d19ee(0x22d)](_0x383529,_0x346137){const _0xe22fd9=_0x2d19ee,_0x498321=typeof window>'u'?new URL(_0x383529):new URL(_0x383529,window[_0xe22fd9(0x1f3)][_0xe22fd9(0x307)]);_0x498321['searchParams'][_0xe22fd9(0x165)](_0xe22fd9(0x24a),_0x346137);const _0x1ba993=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xe22fd9(0x1f3)][_0xe22fd9(0x353)]);return _0x1ba993[_0xe22fd9(0x1a4)]('runId')&&_0x498321[_0xe22fd9(0x2e7)][_0xe22fd9(0x165)]('runId',_0x1ba993[_0xe22fd9(0x1a4)]('runId')),_0x498321[_0xe22fd9(0x202)]();}async[_0x2d19ee(0x36c)](){const _0x5cb196=_0x2d19ee;var _0x28e325,_0x47b39c,_0x14b4c2;const _0x21f1ea=this[_0x5cb196(0x13a)][_0x5cb196(0x195)](_0x189603),_0x486695=(_0x28e325=_0x21f1ea==null?void 0x0:_0x21f1ea[_0x5cb196(0x2fb)])!=null?_0x28e325:_0x3e7782;return(_0x14b4c2=(_0x47b39c=(await this[_0x5cb196(0x26e)]['get'](_0x486695,{'headers':{'Content-Type':_0x5cb196(0x1b3)}}))[_0x5cb196(0x285)])==null?void 0x0:_0x47b39c[_0x5cb196(0x1fd)])!=null?_0x14b4c2:'';}};ut=xn([J(0x0,_0x13e3c7(_0x6717c8)),J(0x1,_0x13e3c7(_0x58299b)),J(0x2,_0x46a8a4),J(0x3,_0x2bfead),J(0x4,_0x35e927)],ut);var Bn=Object[_0x2d19ee(0x2a7)],Fn=(_0x5ce624,_0xfc550f,_0x3d3c17,_0x4b98ef)=>{for(var _0x977204=_0x4b98ef>0x1?void 0x0:_0x4b98ef?Bn(_0xfc550f,_0x3d3c17):_0xfc550f,_0x40c4f5=_0x5ce624['length']-0x1,_0x1c4d1e;_0x40c4f5>=0x0;_0x40c4f5--)(_0x1c4d1e=_0x5ce624[_0x40c4f5])&&(_0x977204=_0x1c4d1e(_0x977204)||_0x977204);return _0x977204;},Ae=(_0xcb0da0,_0x585f96)=>(_0x23acae,_0x3ac667)=>_0x585f96(_0x23acae,_0x3ac667,_0xcb0da0);let dt=class extends _0x55618d{constructor(_0x3caaaf,_0x38d233,_0x19e507){const _0xba47fd=_0x2d19ee;super(),this[_0xba47fd(0x2f1)]=_0x3caaaf,this[_0xba47fd(0x26e)]=_0x38d233,this['_configService']=_0x19e507;}async['runOnServer'](_0x1d119e,_0x2fddfc,_0x58d554,..._0x5a9146){const _0xd7c55d=_0x2d19ee;var _0x44568b,_0x2af588,_0x3d61fc,_0x5fc2d6;const _0x4f4098=this[_0xd7c55d(0x2f1)]['getFocusedUnit']();if(!_0x4f4098)throw new Error(_0xd7c55d(0x1e0));const _0x38f983=((_0x44568b=this[_0xd7c55d(0x13a)]['getConfig'](_0x26e0b7))!=null?_0x44568b:_0x36e979)+'/'+_0x1d119e+_0xd7c55d(0x34b)+_0x2fddfc,_0x2e8a06=new URL(window[_0xd7c55d(0x1f3)][_0xd7c55d(0x226)]),_0x2beeac={'scriptId':_0x1d119e,'runId':(_0x2af588=_0x2e8a06['searchParams'][_0xd7c55d(0x1a4)](_0xd7c55d(0x347)))!=null?_0x2af588:'','function':_0x2fddfc,'unitId':_0x4f4098[_0xd7c55d(0x377)](),'argsOfFunction':JSON[_0xd7c55d(0x32a)](_0x5a9146),'invokeId':(_0x3d61fc=_0x58d554[_0xd7c55d(0x300)])!=null?_0x3d61fc:'','executionId':(_0x5fc2d6=_0x58d554[_0xd7c55d(0x234)])!=null?_0x5fc2d6:''};try{const _0x4dde07=await this[_0xd7c55d(0x26e)]['post'](_0x38f983,{'body':_0x2beeac});return _0x4dde07[_0xd7c55d(0x285)][_0xd7c55d(0x1f9)]&&_0x4dde07[_0xd7c55d(0x285)][_0xd7c55d(0x1f9)]['code']!==Z['OK']?'Failed':_0x4dde07[_0xd7c55d(0x285)][_0xd7c55d(0x304)];}catch{return _0xd7c55d(0x2d0);}}};dt=Fn([Ae(0x0,_0x5ea64d),Ae(0x1,_0x13e3c7(_0x58299b)),Ae(0x2,_0x46a8a4)],dt);const St=0x7530,It=_0x2d19ee(0x15e);class rr extends _0x55618d{constructor(){const _0x245d20=_0x2d19ee;super(),_(this,_0x245d20(0x167),_0x377b4b()),_(this,_0x245d20(0x2ed),new Set()),_(this,_0x245d20(0x145),new Map()),_(this,_0x245d20(0x386),null),_(this,'_clearOtherTimers',new Map()),_(this,_0x245d20(0x2bd),new Map()),this['_init']();}['dispose'](){const _0x5ab909=_0x2d19ee;super[_0x5ab909(0x2cf)](),this[_0x5ab909(0x1aa)][_0x5ab909(0x136)]((_0x4cee4f,_0x21914f)=>this[_0x5ab909(0x2f7)](_0x21914f)),this[_0x5ab909(0x386)]&&window['clearInterval'](this[_0x5ab909(0x386)]);}['getUnitStatus$'](_0x4f7e4e){const _0xf6e0a2=_0x2d19ee;return this[_0xf6e0a2(0x2bc)](_0x4f7e4e)[_0xf6e0a2(0x359)](_0x52d636());}['editingUnit'](_0x19015f){const _0x3a53f8=_0x2d19ee;this['_selfUnitIDs'][_0x3a53f8(0x26a)]===0x0&&this[_0x3a53f8(0x2a8)](),this[_0x3a53f8(0x2ed)]['add'](_0x19015f),this[_0x3a53f8(0x1a3)]({'type':0x0,'memberID':this[_0x3a53f8(0x167)],'unitIDs':[_0x19015f],'isForwarded':!0x1});}[_0x2d19ee(0x216)](_0x475a7b){const _0x16e08e=_0x2d19ee;this[_0x16e08e(0x2ed)][_0x16e08e(0x20a)](_0x475a7b),this[_0x16e08e(0x2ed)][_0x16e08e(0x26a)]===0x0&&this[_0x16e08e(0x386)]&&window['clearInterval'](this[_0x16e08e(0x386)]);}['_init'](){const _0x215c95=_0x2d19ee;this[_0x215c95(0x1b6)](_0x5684e2(_0x197cc9(window,_0x215c95(0x379))[_0x215c95(0x150)](_0x269255=>{const _0x836598=_0x215c95;if(_0x269255[_0x836598(0x1c3)]!==It||!_0x269255[_0x836598(0x36b)])return;const _0x5a654d=JSON[_0x836598(0x20f)](_0x269255[_0x836598(0x36b)]);this[_0x836598(0x311)](_0x5a654d);}))),window[_0x215c95(0x25b)]('unload',()=>this[_0x215c95(0x1a3)]({'type':0x1,'memberID':this[_0x215c95(0x167)],'unitIDs':Array[_0x215c95(0x292)](this[_0x215c95(0x2ed)])}));}[_0x2d19ee(0x311)](_0x3ef991){const _0x1e0c00=_0x2d19ee;switch(_0x3ef991['type']){case 0x0:this[_0x1e0c00(0x259)](_0x3ef991);break;case 0x1:this['_handleLeaveEvent'](_0x3ef991);break;case 0x2:this[_0x1e0c00(0x322)](_0x3ef991);break;}}[_0x2d19ee(0x259)](_0x2fe8e5){const _0x42bc5f=_0x2d19ee,{unitIDs:_0x2cf65f,memberID:_0x2b265a,isForwarded:_0x41f897}=_0x2fe8e5;_0x2cf65f['forEach'](_0x5a0f9b=>{const _0x4da5ca=_0x3b77;if(!_0x41f897&&this[_0x4da5ca(0x145)]['has'](_0x5a0f9b)&&this[_0x4da5ca(0x2bc)](_0x5a0f9b)[_0x4da5ca(0x1a9)](_0x59d149[_0x4da5ca(0x196)]),!this[_0x4da5ca(0x145)][_0x4da5ca(0x230)](_0x5a0f9b)||!this[_0x4da5ca(0x145)][_0x4da5ca(0x1a4)](_0x5a0f9b)['has'](_0x2b265a)){const _0x58f465=this[_0x4da5ca(0x145)]['get'](_0x5a0f9b)||new Set();_0x58f465[_0x4da5ca(0x191)](_0x2b265a),this['_unitOnClients'][_0x4da5ca(0x165)](_0x5a0f9b,_0x58f465),this[_0x4da5ca(0x220)](_0x2b265a);}}),_0x41f897||this[_0x42bc5f(0x1a3)]({'type':0x0,'memberID':this[_0x42bc5f(0x167)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x2d19ee(0x220)](_0x354025){const _0x53e1cc=_0x2d19ee;this[_0x53e1cc(0x2f7)](_0x354025);const _0x206370=window[_0x53e1cc(0x14f)](()=>{const _0x8ec563=_0x53e1cc;this['_unitOnClients'][_0x8ec563(0x136)](_0x273db3=>{const _0x41a658=_0x8ec563;_0x273db3[_0x41a658(0x20a)](_0x354025);});},St*0x2);this['_clearOtherTimers'][_0x53e1cc(0x165)](_0x354025,_0x206370);}['_removeClearOtherTimer'](_0x389753){const _0x12850b=_0x2d19ee;if(this[_0x12850b(0x1aa)][_0x12850b(0x230)](_0x389753)){const _0x3d37be=this[_0x12850b(0x1aa)]['get'](_0x389753);_0x3d37be&&window[_0x12850b(0x31a)](_0x3d37be),this['_clearOtherTimers'][_0x12850b(0x165)](_0x389753,null);}}[_0x2d19ee(0x357)](_0x4d8fbe){const _0x58640f=_0x2d19ee,{memberID:_0x2c9bfa,unitIDs:_0x44ad08}=_0x4d8fbe;_0x44ad08['forEach'](_0x357d08=>{const _0x3bf183=_0x3b77;var _0xe82f03;const _0x11b38a=this[_0x3bf183(0x145)][_0x3bf183(0x1a4)](_0x357d08);_0x11b38a&&(_0x11b38a['delete'](_0x2c9bfa),(_0xe82f03=this['_ensureSubject'](_0x357d08))==null||_0xe82f03[_0x3bf183(0x1a9)](_0x11b38a[_0x3bf183(0x26a)]===0x0?_0x59d149[_0x3bf183(0x2b0)]:_0x59d149[_0x3bf183(0x196)]));}),this[_0x58640f(0x2f7)](_0x2c9bfa);}[_0x2d19ee(0x322)](_0x31d27a){const _0x5e6a42=_0x2d19ee;this[_0x5e6a42(0x220)](_0x31d27a['memberID']);}[_0x2d19ee(0x1a3)](_0x6877ba){const _0x4a814b=_0x2d19ee;localStorage[_0x4a814b(0x290)](It,JSON[_0x4a814b(0x32a)](_0x6877ba));}[_0x2d19ee(0x2a8)](){const _0x1a79d0=_0x2d19ee;this['_heartbeatTimer']=window[_0x1a79d0(0x238)](()=>{const _0x59aff8=_0x1a79d0;this[_0x59aff8(0x1a3)]({'type':0x2,'memberID':this[_0x59aff8(0x167)]});},St);}[_0x2d19ee(0x2bc)](_0x2bc1e6){const _0x5a3c59=_0x2d19ee;return this['_unitStatus'][_0x5a3c59(0x230)](_0x2bc1e6)||this['_unitStatus']['set'](_0x2bc1e6,new _0x5689a5(_0x59d149[_0x5a3c59(0x2b0)])),this[_0x5a3c59(0x2bd)][_0x5a3c59(0x1a4)](_0x2bc1e6);}}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};
|