@univerjs-pro/exchange-client 1.0.0-alpha.4 → 1.0.0-alpha.6
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/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.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/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.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/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.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/id-ID.js +1 -1
- package/lib/es/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.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/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.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/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.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/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.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/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +9 -9
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xbab46b=_0x3a7c;(function(_0x110754,_0x5ed9a0){const _0x122b28=_0x3a7c,_0x34d9b4=_0x110754();while(!![]){try{const _0x3f02be=-parseInt(_0x122b28(0x196))/0x1*(parseInt(_0x122b28(0x17f))/0x2)+-parseInt(_0x122b28(0x17d))/0x3*(-parseInt(_0x122b28(0x185))/0x4)+-parseInt(_0x122b28(0x1a0))/0x5+parseInt(_0x122b28(0x17e))/0x6*(parseInt(_0x122b28(0x18d))/0x7)+parseInt(_0x122b28(0x19a))/0x8+parseInt(_0x122b28(0x1a3))/0x9*(parseInt(_0x122b28(0x18b))/0xa)+-parseInt(_0x122b28(0x1a2))/0xb*(parseInt(_0x122b28(0x198))/0xc);if(_0x3f02be===_0x5ed9a0)break;else _0x34d9b4['push'](_0x34d9b4['shift']());}catch(_0x1e6a2e){_0x34d9b4['push'](_0x34d9b4['shift']());}}}(_0x411e,0x914c5));let e=require('@univerjs-pro/exchange-client'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function _0x411e(){const _0x1cf8d0=['UniverInstanceType','35539baFOdJ','get','transformSnapshotJsonToWorkbookData','importXLSXToSnapshot','FUniver','transformSnapshotJsonToWorkbookDataAsync','importFileToUnitId','transformWorkbookDataToSnapshotJsonAsync','extend','5318bInDpJ','downloadFile','36VwGnmq','exportPPTXByUnitIdAsync','9247112BVbDqx','transformWorkbookDataToSnapshotJson','importXLSXToUnitIdAsync','exportXLSXByUnitId','exportXLSXBySnapshotAsync','exportDOCXByUnitId','4189060fTfexk','importDOCXToSnapshot','1184777AmcMIx','486252oLlKSJ','importPPTXToSnapshotAsync','111eUkPwq','888qgZFsQ','418YIlWNP','exportDOCXBySnapshot','importDOCXToSnapshotAsync','exportPPTXBySnapshot','UNIVER_DOC','_injector','57084gArNMZ','IExchangeService','importDOCXToUnitIdAsync','UNIVER_SHEET','importPPTXToUnitIdAsync','exportDOCXByUnitIdAsync','80thPPBi'];_0x411e=function(){return _0x1cf8d0;};return _0x411e();}var r=class extends n['FUniver']{[_0xbab46b(0x197)](_0x1005da,_0x5bb511,_0x48ee61){const _0x28aa9c=_0xbab46b;this['_injector'][_0x28aa9c(0x18e)](e[_0x28aa9c(0x186)])['downloadFile'](_0x1005da,_0x5bb511,_0x48ee61);}async[_0xbab46b(0x192)](_0x12613d){const _0x179ee7=_0xbab46b;return this[_0x179ee7(0x184)][_0x179ee7(0x18e)](e[_0x179ee7(0x186)])[_0x179ee7(0x18f)](_0x12613d);}async[_0xbab46b(0x194)](_0x52f353){const _0x512f9a=_0xbab46b;return this[_0x512f9a(0x184)]['get'](e[_0x512f9a(0x186)])[_0x512f9a(0x19b)](_0x52f353);}async[_0xbab46b(0x19c)](_0x59ed2d){const _0x513a29=_0xbab46b;return this[_0x513a29(0x184)][_0x513a29(0x18e)](e[_0x513a29(0x186)])[_0x513a29(0x193)](_0x59ed2d,t[_0x513a29(0x18c)][_0x513a29(0x188)]);}async['importXLSXToSnapshotAsync'](_0x195f19){const _0x4c8503=_0xbab46b;return this[_0x4c8503(0x184)]['get'](e['IExchangeService'])[_0x4c8503(0x190)](_0x195f19);}async['exportXLSXByUnitIdAsync'](_0x18a70e){const _0x30aaf=_0xbab46b;return this[_0x30aaf(0x184)][_0x30aaf(0x18e)](e[_0x30aaf(0x186)])[_0x30aaf(0x19d)](_0x18a70e);}async[_0xbab46b(0x19e)](_0x1c3f5e){const _0x5073e7=_0xbab46b;return this[_0x5073e7(0x184)]['get'](e['IExchangeService'])['exportXLSXBySnapshot'](_0x1c3f5e);}async[_0xbab46b(0x187)](_0x19371a){const _0xd16f5b=_0xbab46b;return this['_injector']['get'](e[_0xd16f5b(0x186)])[_0xd16f5b(0x193)](_0x19371a,t[_0xd16f5b(0x18c)][_0xd16f5b(0x183)]);}async[_0xbab46b(0x181)](_0x1222c3){const _0x12dacc=_0xbab46b;return this[_0x12dacc(0x184)][_0x12dacc(0x18e)](e[_0x12dacc(0x186)])[_0x12dacc(0x1a1)](_0x1222c3);}async['exportDOCXBySnapshotAsync'](_0x43f0ed){const _0x14e9fe=_0xbab46b;return this[_0x14e9fe(0x184)][_0x14e9fe(0x18e)](e['IExchangeService'])[_0x14e9fe(0x180)](_0x43f0ed);}async[_0xbab46b(0x18a)](_0x497f78){const _0xd6416e=_0xbab46b;return this[_0xd6416e(0x184)][_0xd6416e(0x18e)](e[_0xd6416e(0x186)])[_0xd6416e(0x19f)](_0x497f78);}async[_0xbab46b(0x189)](_0x3232c4){const _0x2efdae=_0xbab46b;return this[_0x2efdae(0x184)][_0x2efdae(0x18e)](e[_0x2efdae(0x186)])[_0x2efdae(0x193)](_0x3232c4,t['UniverInstanceType']['UNIVER_SLIDE']);}async[_0xbab46b(0x17c)](_0x470049){const _0x35057a=_0xbab46b;return this[_0x35057a(0x184)][_0x35057a(0x18e)](e[_0x35057a(0x186)])['importPPTXToSnapshot'](_0x470049);}async[_0xbab46b(0x199)](_0x114731){const _0x3cbf88=_0xbab46b;return this[_0x3cbf88(0x184)][_0x3cbf88(0x18e)](e[_0x3cbf88(0x186)])['exportPPTXByUnitId'](_0x114731);}async['exportPPTXBySnapshotAsync'](_0x27a1e3){const _0x116a73=_0xbab46b;return this['_injector']['get'](e['IExchangeService'])[_0x116a73(0x182)](_0x27a1e3);}};function _0x3a7c(_0x39afac,_0x2059b1){_0x39afac=_0x39afac-0x17c;const _0x411e07=_0x411e();let _0x3a7c05=_0x411e07[_0x39afac];return _0x3a7c05;}n[_0xbab46b(0x191)][_0xbab46b(0x195)](r);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x379674=_0x4e7e;(function(_0x45c918,_0x5d2239){const _0x34516d=_0x4e7e,_0x2e3e6c=_0x45c918();while(!![]){try{const _0x4c5934=-parseInt(_0x34516d(0x28f))/0x1*(parseInt(_0x34516d(0x264))/0x2)+parseInt(_0x34516d(0x24f))/0x3+parseInt(_0x34516d(0x2b5))/0x4+-parseInt(_0x34516d(0x20d))/0x5*(-parseInt(_0x34516d(0x27c))/0x6)+-parseInt(_0x34516d(0x266))/0x7+-parseInt(_0x34516d(0x312))/0x8+-parseInt(_0x34516d(0x214))/0x9;if(_0x4c5934===_0x5d2239)break;else _0x2e3e6c['push'](_0x2e3e6c['shift']());}catch(_0x1fc7d4){_0x2e3e6c['push'](_0x2e3e6c['shift']());}}}(_0xb3dc,0x28c16),Object['defineProperty'](exports,Symbol[_0x379674(0x28e)],{'value':_0x379674(0x2cf)}));let e=require('@univerjs-pro/license'),t=require('@univerjs/core'),n=require('@univerjs/network'),r=require('@univerjs/icons'),i=require('@univerjs/ui'),a=require('rxjs'),o=require('@univerjs/design'),s=require('react/jsx-runtime'),c=require('@univerjs/protocol'),l=require('@univerjs-pro/collaboration'),u=require('fflate');var d=_0x379674(0x2cd),ee=_0x379674(0x1ac);const f=_0x379674(0x211),p={};function m(_0x2da062,_0x30e80a){return function(_0x4e31ef,_0x5532ba){_0x30e80a(_0x4e31ef,_0x5532ba,_0x2da062);};}function h(_0x2c6af5,_0x3f97a4,_0x48139a,_0x443710){const _0x2b503d=_0x379674;var _0x50fb0d=arguments[_0x2b503d(0x269)],_0x8f2fe1=_0x50fb0d<0x3?_0x3f97a4:_0x443710===null?_0x443710=Object[_0x2b503d(0x1a8)](_0x3f97a4,_0x48139a):_0x443710,_0x39989c;if(typeof Reflect==_0x2b503d(0x22a)&&typeof Reflect[_0x2b503d(0x1c2)]==_0x2b503d(0x1d9))_0x8f2fe1=Reflect[_0x2b503d(0x1c2)](_0x2c6af5,_0x3f97a4,_0x48139a,_0x443710);else{for(var _0x5ee2ce=_0x2c6af5[_0x2b503d(0x269)]-0x1;_0x5ee2ce>=0x0;_0x5ee2ce--)(_0x39989c=_0x2c6af5[_0x5ee2ce])&&(_0x8f2fe1=(_0x50fb0d<0x3?_0x39989c(_0x8f2fe1):_0x50fb0d>0x3?_0x39989c(_0x3f97a4,_0x48139a,_0x8f2fe1):_0x39989c(_0x3f97a4,_0x48139a))||_0x8f2fe1);}return _0x50fb0d>0x3&&_0x8f2fe1&&Object['defineProperty'](_0x3f97a4,_0x48139a,_0x8f2fe1),_0x8f2fe1;}let g=class extends t[_0x379674(0x2f5)]{constructor(_0x121e07){const _0x7e0996=_0x379674;super(),this[_0x7e0996(0x21c)]=_0x121e07,this[_0x7e0996(0x22f)]();}[_0x379674(0x22f)](){const _0x1ea97a=_0x379674;this[_0x1ea97a(0x262)](this[_0x1ea97a(0x21c)][_0x1ea97a(0x2a2)]({'DirectExportIcon':r[_0x1ea97a(0x2f7)]}));}};g=h([m(0x0,(0x0,t[_0x379674(0x25d)])(i[_0x379674(0x322)]))],g);function _(_0x21dd06){'@babel/helpers - typeof';const _0x40ca18=_0x379674;return _=typeof Symbol=='function'&&typeof Symbol[_0x40ca18(0x304)]==_0x40ca18(0x1a0)?function(_0x4df327){return typeof _0x4df327;}:function(_0x3f321d){const _0x185eba=_0x40ca18;return _0x3f321d&&typeof Symbol==_0x185eba(0x1d9)&&_0x3f321d[_0x185eba(0x283)]===Symbol&&_0x3f321d!==Symbol[_0x185eba(0x285)]?_0x185eba(0x1a0):typeof _0x3f321d;},_(_0x21dd06);}function te(_0x1ae17c,_0xb5ebbb){const _0x2b32b8=_0x379674;if(_(_0x1ae17c)!=_0x2b32b8(0x22a)||!_0x1ae17c)return _0x1ae17c;var _0x30e877=_0x1ae17c[Symbol[_0x2b32b8(0x2bb)]];if(_0x30e877!==void 0x0){var _0x553024=_0x30e877[_0x2b32b8(0x1b0)](_0x1ae17c,_0xb5ebbb||'default');if(_(_0x553024)!='object')return _0x553024;throw TypeError(_0x2b32b8(0x2d9));}return(_0xb5ebbb===_0x2b32b8(0x2f6)?String:Number)(_0x1ae17c);}function ne(_0x44cdd6){var _0x1f2ec2=te(_0x44cdd6,'string');return _(_0x1f2ec2)=='symbol'?_0x1f2ec2:_0x1f2ec2+'';}function v(_0x1448ea,_0x19a249,_0x566e98){const _0x41bb52=_0x379674;return(_0x19a249=ne(_0x19a249))in _0x1448ea?Object[_0x41bb52(0x276)](_0x1448ea,_0x19a249,{'value':_0x566e98,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1448ea[_0x19a249]=_0x566e98,_0x1448ea;}const y=(0x0,t[_0x379674(0x2eb)])(_0x379674(0x2c4));var b=class extends t['Disposable']{constructor(){const _0x5e51ff=_0x379674;super(),v(this,'_visible$',new a['Subject']()),v(this,_0x5e51ff(0x1ef),new a[(_0x5e51ff(0x324))]()),v(this,_0x5e51ff(0x257),new a[(_0x5e51ff(0x324))]()),v(this,_0x5e51ff(0x2f2),this[_0x5e51ff(0x1e4)]['asObservable']()),v(this,'state$',this[_0x5e51ff(0x1ef)][_0x5e51ff(0x263)]()),v(this,'list$',this[_0x5e51ff(0x257)][_0x5e51ff(0x263)]()),v(this,_0x5e51ff(0x219),[]);}[_0x379674(0x2b2)](){const _0x2c37ab=_0x379674;super['dispose'](),this[_0x2c37ab(0x1e4)][_0x2c37ab(0x326)](),this['_state$']['complete'](),this['_list$'][_0x2c37ab(0x326)]();}[_0x379674(0x32b)](){const _0x26ebe9=_0x379674;this[_0x26ebe9(0x1e4)][_0x26ebe9(0x1bb)](!0x0);}['hide'](){const _0x5b72b4=_0x379674;this['_visible$'][_0x5b72b4(0x1bb)](!0x1);}[_0x379674(0x1c3)](_0x32514e){const _0x42e788=_0x379674;this[_0x42e788(0x1ef)][_0x42e788(0x1bb)](_0x32514e);}[_0x379674(0x277)](_0x5b54e6){const _0x45197c=_0x379674;this[_0x45197c(0x219)][_0x45197c(0x299)](_0x5b54e6),this['_list$']['next'](this[_0x45197c(0x219)]);}};function re(_0x18661a){const _0x23716d=_0x379674;let {list:_0x5e9cd3}=_0x18661a;function _0x559511(_0x510896){const _0x181c52=_0x4e7e;switch(_0x510896){case 0x1:return(0x0,s[_0x181c52(0x1f0)])(r['DocsMultiIcon'],{});case 0x2:return(0x0,s['jsx'])(r[_0x181c52(0x212)],{});case 0x3:return(0x0,s[_0x181c52(0x1f0)])(r[_0x181c52(0x2e9)],{});default:return null;}}return(0x0,s['jsx'])(_0x23716d(0x221),{'className':(0x0,o[_0x23716d(0x204)])('univer-mt-5\x20univer-max-h-72\x20univer-overflow-y-auto\x20univer-overflow-x-hidden',o[_0x23716d(0x1dc)]),'children':(0x0,s['jsx'])('ul',{'className':'univer-m-0\x20univer-flex\x20univer-list-none\x20univer-flex-col\x20univer-gap-2\x20univer-p-0','children':_0x5e9cd3[_0x23716d(0x2f0)]((_0x411172,_0x75091b)=>(0x0,s[_0x23716d(0x1f0)])('li',{'children':(0x0,s['jsxs'])('a',{'className':_0x23716d(0x201),'href':_0x411172[_0x23716d(0x21a)],'target':'_blank','rel':_0x23716d(0x26e),'children':[(0x0,s[_0x23716d(0x2c0)])('span',{'className':_0x23716d(0x1d8),'children':[(0x0,s[_0x23716d(0x1f0)])(_0x23716d(0x1df),{'className':_0x23716d(0x23d),'children':_0x559511(_0x411172[_0x23716d(0x2ef)])}),(0x0,s['jsx'])(o[_0x23716d(0x24b)],{'showIfEllipsis':!0x0,'title':_0x411172[_0x23716d(0x22b)],'asChild':!0x0,'children':(0x0,s[_0x23716d(0x1f0)])(_0x23716d(0x1df),{'className':_0x23716d(0x1cf),'children':_0x411172[_0x23716d(0x22b)]})})]}),(0x0,s[_0x23716d(0x1f0)])(_0x23716d(0x1df),{'className':_0x23716d(0x2d2),'children':(0x0,s[_0x23716d(0x1f0)])(r[_0x23716d(0x1e9)],{})})]})},_0x75091b))})});}function _0xb3dc(){const _0x2599cf=['Error\x20getting\x20file\x20name\x20from\x20URL:','b64EncodeUnicode','url','_uploadNotificationService','accept','xlsx','outputType','445224yaOdWZ','text','docx','HTTPService','_exportBySnapshot','UNRECOGNIZED','_getTaskURL','univer-text-green-500','currentTarget','application/vnd.ms-excel.sheet.macroEnabled.12','connectInjector','forEach','exchange-client.fileTypeError','headers','_getUnitName','exportDOCXBySnapshot','IconManager','originalMeta','Subject','UNDEFINED','complete','.json','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','xlsm','_refreshSlide','show','status','exportPPTXBySnapshot','symbol','parse','getSnapshot','doc','importPPTXToSnapshot','upload\x20request\x20failed','exportXLSXBySnapshot','_fileTypeError','getOwnPropertyDescriptor','_sheetBlockCache','_buildProtocolErrorMessage',':\x20HTTP\x20','1.0.0-alpha.4','buffer','pluginName','univer-text-sm\x20univer-text-gray-500','call','_uiPartsService','shift','import','Injector','_showNetworkError','_requestService','_getImportURL','univer-pl-2\x20univer-pr-4','_configService','UniverInstanceType','next','interrupt','&flate=','statusText','isArray','exchange-client.internalError','INTERNAL_ERROR','decorate','updateState','change','trim','saveChangeset','_getIgnoreTableExport','append','_uploadTaskNotDone','sheetBlocks','_univerInstanceService','_refresh','IExchangeOperateService','UNIVER_PROJECT','univer-ml-1\x20univer-truncate\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','getSheetBlocksFromSnapshot','\x20-\x20','add','IConfigService','_getMinSheetColumnCount','disposeUnit','univer-text-red-500','filter','univer-flex\x20univer-w-[calc(100%-48px)]\x20univer-items-center','function','setTaskInterrupted','progress$','scrollbarClassName','location','_config','span','catch','_getDownloadEndpointURL','floor','hide','_visible$','/universer-api/exchange/task/{taskID}','Warning','UNIVER_BASE','_getUnitID','ShareRangeIcon','exportXLSXByUnitId','exchange-client.downloadSuccess','unit','univer-text-blue-500','UNIVER_UNKNOWN','_state$','jsx','exchange-client.cancel','ErrorIcon','_doneUploadTaskCount','UNIVER_EXCHANGE_CLIENT_PLUGIN','_registerUIParts','maxTimeoutTime','registerComponent','Info','_getMinSheetRowCount','saveUnit','jsonID','none','_progress$','_messageService','univer-ml-1.5\x20univer-font-semibold\x20univer-text-gray-900\x20dark:!univer-text-white','post','univer-flex\x20univer-justify-between\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-px-2\x20univer-py-1\x20univer-text-gray-900\x20univer-no-underline\x20univer-outline-none\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-text-white\x20dark:hover:!univer-bg-gray-600','/universer-api/stream/file/upload','toDisposable','clsx','getUnitType','minSheetRowCount','_showUploadMessage','CONNECTOR_DATA_TOO_LARGE','_getUnitDocJson','transformSnapshotJsonToWorkbookData','resolve','IMessageService','181045eRZxGM','exportPPTXByUnitId','getSheetBlock','split','exchange-client.config','SheetsMultiIcon','exchange-client.uploading','64935JkWkpi','getUnitId','files','createObjectURL','application/json','_list','link','_extractErrorDetail','_iconManager','signUrl','UNIVER_DOC','&source=','display','div','exportDOCXByUnitId','Error\x20fetching\x20file\x20from\x20URL:','_upload','options','deflateSync','exchange-client.downloading','saveSnapshot','resolveWithBasePath','object','name','importFileToJson','searchParams','merge','_registerIcons','univer-mx-0\x20univer-mb-3\x20univer-mt-4\x20univer-h-1.5\x20univer-w-[324px]\x20univer-rounded-lg\x20univer-bg-gray-200','_logService','pop','b64DecodeUnicode','_addDoneTask','UniverNetworkPlugin','_addTotalCount','LocaleService','toLowerCase','multiple','replace','HTTPResponseError','decode','univer-flex\x20univer-h-5\x20univer-text-xl','_getUnitNameByType','Failed\x20to\x20get\x20fileID\x20from\x20task','_getUploadFileURL','FileId','UNIVER_PDF','blockID','Error','state$','No\x20file\x20selected','_showDownloadMessage','univer-flex','copyFileMeta','transformWorkbookDataToSnapshotJson','Tooltip','pptx','_resourceLoaderService','has','554115MDFuEP','_getUnitIDSlide','title','UNIVER_SLIDE','getUnitOnRev','_localeService','Failed\x20to\x20get\x20jsonID\x20from\x20task','updateSnapshot','_list$','ErrorCode','appendChild','upload','_emitProgress','importXLSXToUnitId','Inject','rev','transformSnapshotToWorkbookData','revokeObjectURL','sign\x20url\x20error','disposeWithMe','asObservable','2vFPvwH','Failed\x20to\x20parse\x20json','793786EwgxgG','importDOCXToSnapshot','_completeProgress','length','exchange-client.uploadSuccess','download','packageName','registerDependencies','noreferrer','success','transformSnapshotToSlideData','interruptImportTask','_importToJson','_getUnitSlideJson','exchange-client.uploadSuccessTip','keys','defineProperty','pushLink','exchange-client.wait','useDependency','snapshot','requestState$','36DjxQbe','_importTaskId','some','transformWorkbookDataToSnapshot','_injector','_importFileToUnitId','_exchangeService','constructor','set','prototype','useObservable','body','_totalUploadTaskCount','?size=','_httpService','_taskInterrupted','_import','createUnit','toStringTag','142187sRpGsn','downloadFile','UniverExchangeClientPlugin','application/pdf','code','exchange-client.tooLarge','exchange-client.networkError','_signUrl','number','workbook','unshift','univer-h-7\x20univer-cursor-pointer\x20univer-select-none\x20univer-rounded-md\x20univer-border-0\x20univer-border-transparent\x20univer-bg-transparent\x20univer-px-2\x20univer-py-0\x20univer-text-sm\x20univer-text-primary-600\x20univer-transition-all\x20univer-duration-150\x20hover:univer-bg-primary-50','fetchMissingChangesets','Get\x20outputType\x20error','IUniverInstanceService','MessageType','slide','application/vnd.openxmlformats-officedocument.spreadsheetml.template','textEncoder','register','application/vnd.openxmlformats-officedocument.wordprocessingml.document','stringify','/universer-api/exchange/{type}/import','getTaskServerUrl','textDecoder','ILogService','clear','univer-mt-3\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-2\x20univer-pr-1','getConfig','univer-h-1.5\x20univer-rounded-lg\x20univer-bg-primary-600\x20univer-transition-[width]\x20univer-duration-500','export','file','sheets','_buildHttpErrorMessage','unitID','dispose','uploadFileToUnitId','getCurrentUnitOfType','333712WvpGXM','export\x20error','data','import\x20error','BuiltInUIPart','exchange-client.uploadAgain','toPrimitive','Failed\x20to\x20transform\x20snapshot\x20to\x20string','_export','error','_getSignURL','jsxs','removeChild','_getUnitIDDoc','block\x20is\x20required','univer-pro.exchange-client.upload-notification.service','Failed\x20to\x20get\x20text\x20from\x20url','list$','univer-mt-5\x20univer-flex\x20univer-flex-col','values','Content-Type','minSheetColumnCount','getTextFromUrl','join','@univerjs-pro/exchange-client','application/octet-stream','Module','importFileToUnitId','href','univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-p-0\x20univer-text-base\x20univer-text-gray-600\x20univer-outline-none\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-text-gray-200\x20dark:hover:!univer-bg-gray-600','UNIVER_SHEET','taskID','transformSlideDataToSnapshot','Method\x20not\x20implemented.','button','importFileToUnitIdByCurrentType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','importXLSXToSnapshot','FileSource','click','touchDependencies','transformDocumentDataToSnapshot','{fileID}','_requestState$','get','importPPTXToUnitId','setConfig','ignoreTableExport','min','getDeserializedSheetBlock','importWorkbookDataToUnitId','CloseIcon','SlidesMultiIcon','univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','createIdentifier','_getUnitJson','file.','application/vnd.openxmlformats-officedocument.presentationml.presentation','type','map','_getDisableCellImageConversion','visible$','Success','_clearProgress','Disposable','string','DirectExportIcon','Failed\x20to\x20get\x20taskID\x20from\x20import\x20response','UniverLicensePlugin','getTask','fileID','clearTaskInterrupted','message','workbook.json','downloadEndpointUrl','registerLink','pending','_getExportURL','Plugin','iterator','xltx','_getLinkByUnitId','importServerUrl','{type}','univer-h-6\x20univer-text-2xl','disableCellImageConversion'];_0xb3dc=function(){return _0x2599cf;};return _0xb3dc();}const x=_0x379674(0x2a3),S=_0x379674(0x328),C=_0x379674(0x31b),w=_0x379674(0x2a0),T=_0x379674(0x2ee),E=_0x379674(0x292),D={[t[_0x379674(0x1ba)][_0x379674(0x1ee)]]:[''],[t[_0x379674(0x1ba)][_0x379674(0x21e)]]:[x],[t[_0x379674(0x1ba)][_0x379674(0x2d3)]]:[S,C,w],[t[_0x379674(0x1ba)][_0x379674(0x252)]]:[T],[t[_0x379674(0x1ba)][_0x379674(0x1e7)]]:[''],[t[_0x379674(0x1ba)]['UNIVER_BOARD']]:[''],[t[_0x379674(0x1ba)][_0x379674(0x1ce)]]:[''],[t['UniverInstanceType'][_0x379674(0x242)]]:[E],[t[_0x379674(0x1ba)][_0x379674(0x317)]]:['']},O={[x]:_0x379674(0x314),[S]:_0x379674(0x310),[C]:_0x379674(0x329),[w]:_0x379674(0x305),[T]:_0x379674(0x24c),[E]:'pdf'};function k(_0x19116,_0x2aa547,_0x29c656){const _0x2537ea=_0x379674;let _0x4be955=document['createElement']('a');_0x4be955[_0x2537ea(0x2d1)]=_0x19116,_0x4be955['style'][_0x2537ea(0x220)]=_0x2537ea(0x1fc),_0x4be955[_0x2537ea(0x26b)]=_0x2aa547+'.'+_0x29c656,document[_0x2537ea(0x287)][_0x2537ea(0x259)](_0x4be955),_0x4be955[_0x2537ea(0x2dc)](),document['body'][_0x2537ea(0x2c1)](_0x4be955);}function A(_0x396504,_0x4bbf23,_0x1bcda3){const _0x368cf6=_0x379674;let _0x16b6c7=URL[_0x368cf6(0x217)](_0x396504);k(_0x16b6c7,_0x4bbf23,_0x1bcda3),URL[_0x368cf6(0x260)](_0x16b6c7);}function j(_0x580b7b){const _0x3ec67d=_0x379674;let _0x22a2ac=_0x580b7b[_0x3ec67d(0x22b)]['split']('.')[_0x3ec67d(0x232)]();if(!_0x22a2ac)return t[_0x3ec67d(0x1ba)][_0x3ec67d(0x1ee)];let _0x2c1326=ie(),_0x538106=t[_0x3ec67d(0x1ba)][_0x3ec67d(0x1ee)];return _0x2c1326[_0x3ec67d(0x27e)](_0x3c2636=>ae(_0x22a2ac,_0x3c2636)?(_0x538106=_0x3c2636,!0x0):!0x1),_0x538106;}function ie(){const _0x3fe555=_0x379674;return Object[_0x3fe555(0x2c8)](t[_0x3fe555(0x1ba)])[_0x3fe555(0x1d7)](_0x42b330=>typeof _0x42b330==_0x3fe555(0x297));}function ae(_0x1427b4,_0x3492fb){const _0x5581f6=_0x379674;var _0x3364db;return((_0x3364db=D[_0x3492fb])==null?[]:_0x3364db)[_0x5581f6(0x2f0)](_0x217442=>(O[_0x217442]||'')[_0x5581f6(0x238)]())['includes'](_0x1427b4[_0x5581f6(0x238)]());}function M(_0x59121c,_0x1e1ff2=!0x1){const _0x2d7791=_0x379674;let _0x52e210=_0x59121c[_0x2d7791(0x2f0)](_0x367d09=>{var _0x341cd8;return(_0x341cd8=D[_0x367d09])==null?[]:_0x341cd8;})[_0x2d7791(0x2cc)](',');return new Promise((_0x5eee98,_0x3d381e)=>{const _0x27ac6c=_0x2d7791;let _0x2b0dc4=document['createElement']('input');_0x2b0dc4[_0x27ac6c(0x2ef)]='file',_0x2b0dc4[_0x27ac6c(0x30f)]=_0x52e210,_0x2b0dc4[_0x27ac6c(0x239)]=_0x1e1ff2,_0x2b0dc4['addEventListener'](_0x27ac6c(0x1c4),_0x344068=>{const _0x1c8c08=_0x27ac6c;let _0x5d43f=_0x344068[_0x1c8c08(0x31a)];if(!_0x5d43f[_0x1c8c08(0x216)]||_0x5d43f[_0x1c8c08(0x216)]['length']===0x0)throw _0x3d381e(null),Error(_0x1c8c08(0x246));_0x5eee98(_0x5d43f[_0x1c8c08(0x216)]);}),_0x2b0dc4[_0x27ac6c(0x2dc)]();});}async function N(_0x3d90c6,_0x628b8c){const _0x374fcd=_0x379674;try{var _0x492a98,_0x46fe0a,_0x2ed78f;let _0x79ab0a=await _0x628b8c[_0x374fcd(0x2e1)](_0x3d90c6,{'responseType':'blob'}),_0x18015d=_0x79ab0a[_0x374fcd(0x287)],_0x245116=(_0x492a98=(_0x46fe0a=_0x79ab0a[_0x374fcd(0x31f)][_0x374fcd(0x2e1)](_0x374fcd(0x2c9)))==null?void 0x0:_0x46fe0a['join'](',\x20'))==null?_0x374fcd(0x2ce):_0x492a98,_0x1fe5de=_0x374fcd(0x2ed)+(O[_0x245116]||_0x374fcd(0x310)),_0x21b517=(_0x2ed78f=_0x79ab0a[_0x374fcd(0x31f)][_0x374fcd(0x2e1)]('content-disposition'))==null?void 0x0:_0x2ed78f['join'](',\x20');if(_0x21b517){let _0x10d325=_0x21b517['match'](/filename=(.+)/);_0x10d325&&_0x10d325[0x1]&&(_0x1fe5de=_0x10d325[0x1]);}else _0x1fe5de=oe(_0x3d90c6)||_0x1fe5de;return new File([_0x18015d],_0x1fe5de,{'type':_0x245116});}catch(_0x1eeba6){console['error'](_0x374fcd(0x223),_0x1eeba6);return;}}function oe(_0x2eda75){const _0x49095d=_0x379674;try{return new URL(_0x2eda75)['pathname'][_0x49095d(0x210)]('/')[_0x49095d(0x232)]();}catch(_0x15fed4){console[_0x49095d(0x2be)](_0x49095d(0x30b),_0x15fed4);return;}}function se(_0x40023a){const _0x13726d=_0x379674;let _0x21a1b1=new Blob([_0x40023a[_0x13726d(0x1ad)]],{'type':'application/json'});return new File([_0x21a1b1],'file.json');}function P(_0x4b9aa5,_0x5d1df2){const _0x225f88=_0x379674;return _0x4b9aa5[_0x225f88(0x23a)](_0x225f88(0x308),_0x5d1df2);}function ce(_0x3cd4be,_0x153656){const _0x397330=_0x379674;return _0x3cd4be[_0x397330(0x23a)]('{taskID}',_0x153656);}function le(_0x51fa80,_0x7d2766){const _0xd578dc=_0x379674;return _0x51fa80[_0xd578dc(0x23a)](_0xd578dc(0x2df),_0x7d2766);}const F=(0x0,t[_0x379674(0x2eb)])('univer-pro.exchange-client.request.service');let I=class{constructor(_0x422d28,_0x3cdf2a){const _0x2bdce7=_0x379674;this[_0x2bdce7(0x1b9)]=_0x422d28,this[_0x2bdce7(0x28a)]=_0x3cdf2a,v(this,_0x2bdce7(0x28b),new Set());}['dispose'](){}[_0x379674(0x1da)](_0x5292d8){const _0x52c844=_0x379674;this['_taskInterrupted'][_0x52c844(0x1d2)](_0x5292d8);}[_0x379674(0x2fc)](){const _0x5c27c0=_0x379674;this[_0x5c27c0(0x28b)][_0x5c27c0(0x2a9)]();}async[_0x379674(0x25a)](_0x1ed255,_0x1b1f3a=0x0,_0x3d2561=!0x1){const _0x1231d4=_0x379674;if(typeof _0x1ed255==_0x1231d4(0x2f6)){let _0x261640=await N(_0x1ed255,this['_httpService']);if(!_0x261640)throw Error('upload\x20request\x20failed:\x20failed\x20to\x20read\x20source\x20file\x20from\x20url');_0x1ed255=_0x261640;}_0x1b1f3a=_0x1b1f3a||_0x1ed255['size'];let _0x20c2a8=new FormData();_0x20c2a8[_0x1231d4(0x1c8)](_0x1231d4(0x2ae),_0x1ed255);try{let _0x44803d=this[_0x1231d4(0x240)]()+_0x1231d4(0x289)+_0x1b1f3a+_0x1231d4(0x21f)+c[_0x1231d4(0x2db)]['HttpImport']+_0x1231d4(0x1bd)+_0x3d2561,_0x40a6e2={'body':_0x20c2a8},_0x612465=(await this[_0x1231d4(0x28a)][_0x1231d4(0x200)](_0x44803d,_0x40a6e2))[_0x1231d4(0x287)];if(_0x612465[_0x1231d4(0x2be)]&&_0x612465[_0x1231d4(0x2be)][_0x1231d4(0x293)]!==c[_0x1231d4(0x258)]['OK'])throw Error(this[_0x1231d4(0x1aa)](_0x1231d4(0x1a5),_0x612465['error']));return _0x612465;}catch(_0x42acbe){throw _0x42acbe instanceof Error?_0x42acbe:Error(this['_buildHttpErrorMessage']('upload\x20request\x20failed',_0x42acbe));}}async[_0x379674(0x1b3)](_0x1e5a00){const _0x3ad55d=_0x379674;let {fileID:_0x24c0b1,type:_0x365458,outputType:_0x346dee,minSheetColumnCount:_0x5c8e53,minSheetRowCount:_0x383e16}=_0x1e5a00;try{let _0x46278d=P(this[_0x3ad55d(0x1b7)](),''+_0x365458),_0x2f26e4={'body':{'fileID':_0x24c0b1,'outputType':_0x346dee,'minSheetColumnCount':_0x5c8e53,'minSheetRowCount':_0x383e16}},_0x3bfc83=(await this[_0x3ad55d(0x28a)][_0x3ad55d(0x200)](_0x46278d,_0x2f26e4))[_0x3ad55d(0x287)];return _0x3bfc83[_0x3ad55d(0x2be)]&&_0x3bfc83[_0x3ad55d(0x2be)]['code']!==c[_0x3ad55d(0x258)]['OK']?void 0x0:_0x3bfc83;}catch{return;}}async['export'](_0x8436c0){const _0x193338=_0x379674;let {unitID:_0x495329,jsonID:_0x466c3c,type:_0x35d964,useImageUrl:_0x521600,ignoreTableExport:_0x270aeb}=_0x8436c0;try{let _0x5ced81=P(this[_0x193338(0x302)](),''+_0x35d964),_0x38198d={'body':{'unitID':_0x495329,'jsonID':_0x466c3c,'type':_0x35d964,'useImageUrl':_0x521600,'ignoreTableExport':_0x270aeb}},_0x439181=(await this[_0x193338(0x28a)][_0x193338(0x200)](_0x5ced81,_0x38198d))[_0x193338(0x287)];return _0x439181['error']&&_0x439181['error'][_0x193338(0x293)]!==c[_0x193338(0x258)]['OK']?void 0x0:_0x439181;}catch{return;}}async[_0x379674(0x2fa)](_0xdb135){return new Promise((_0x4a814b,_0x2f5d02)=>{const _0x358109=_0x4e7e;try{let _0x4129f7=0x0,_0xc8aa1b=ce(this[_0x358109(0x318)](),''+_0xdb135),_0x5203e3=this['_getMaxPollingTime'](),_0x52586f=async()=>{const _0x2a9ec4=_0x358109;if(this[_0x2a9ec4(0x28b)][_0x2a9ec4(0x24e)](_0xdb135))return;let _0x24db5e=(await this[_0x2a9ec4(0x28a)][_0x2a9ec4(0x2e1)](_0xc8aa1b))['body'];if(_0x24db5e[_0x2a9ec4(0x2be)]&&_0x24db5e[_0x2a9ec4(0x2be)][_0x2a9ec4(0x293)]===c['ErrorCode']['OK']){if(_0x24db5e['status']==='done')_0x4a814b(_0x24db5e);else{if(_0x24db5e[_0x2a9ec4(0x19e)]===_0x2a9ec4(0x301)){let _0x428895=0x3e8;if(_0x4129f7>=_0x5203e3){_0x2f5d02(_0x24db5e);return;}else _0x4129f7>=0x7530&&(_0x428895=0x1388);_0x4129f7+=_0x428895,setTimeout(_0x52586f,_0x428895);}else _0x2f5d02(_0x24db5e);}}else _0x2f5d02(_0x24db5e);};_0x52586f();}catch(_0x497994){_0x2f5d02(_0x497994 instanceof Error?_0x497994:Error(String(_0x497994)));}});}async[_0x379674(0x21d)](_0x41c3dd){const _0x64df53=_0x379674;try{let _0x70d2e6=le(this[_0x64df53(0x2bf)](),''+_0x41c3dd);return(await this[_0x64df53(0x28a)]['get'](_0x70d2e6))[_0x64df53(0x287)];}catch{return;}}async[_0x379674(0x2cb)](_0x5a2274){const _0xf58bdb=_0x379674;try{return(await this[_0xf58bdb(0x28a)][_0xf58bdb(0x2e1)](_0x5a2274,{'responseType':_0xf58bdb(0x313)}))[_0xf58bdb(0x287)];}catch{return;}}[_0x379674(0x1aa)](_0x5bcb66,_0x1ee0a5){const _0x2d8341=_0x379674;let _0x12f66b=this[_0x2d8341(0x21b)](_0x1ee0a5);return _0x12f66b?_0x5bcb66+':\x20'+_0x12f66b:_0x5bcb66;}[_0x379674(0x2b0)](_0x3e2c82,_0x9d831b){const _0x1accbd=_0x379674;if(_0x9d831b instanceof n[_0x1accbd(0x23b)]){let _0x5709ff=typeof _0x9d831b[_0x1accbd(0x19e)]==_0x1accbd(0x297)?''+_0x9d831b[_0x1accbd(0x19e)]+(_0x9d831b[_0x1accbd(0x1be)]?'\x20'+_0x9d831b[_0x1accbd(0x1be)]:''):void 0x0,_0x466f56=this[_0x1accbd(0x21b)](_0x9d831b['error']);return _0x5709ff&&_0x466f56?_0x3e2c82+_0x1accbd(0x1ab)+_0x5709ff+_0x1accbd(0x1d1)+_0x466f56:_0x5709ff?_0x3e2c82+_0x1accbd(0x1ab)+_0x5709ff:_0x466f56?_0x3e2c82+':\x20'+_0x466f56:_0x3e2c82;}let _0x5b1e60=this[_0x1accbd(0x21b)](_0x9d831b);return _0x5b1e60?_0x3e2c82+':\x20'+_0x5b1e60:_0x3e2c82;}[_0x379674(0x21b)](_0x4cf6da){const _0x3fea81=_0x379674;if(typeof _0x4cf6da==_0x3fea81(0x2f6)){let _0x340669=_0x4cf6da['trim']();return _0x340669['length']>0x0?_0x340669:void 0x0;}if(_0x4cf6da instanceof Error)return this['_extractErrorDetail'](_0x4cf6da['message']);if(!_0x4cf6da||typeof _0x4cf6da!=_0x3fea81(0x22a)||Array[_0x3fea81(0x1bf)](_0x4cf6da))return;let _0x3b03e6=_0x4cf6da,_0x14addf=this['_extractErrorDetail'](_0x3b03e6[_0x3fea81(0x2fd)]);if(_0x14addf)return _0x14addf;if(_0x3b03e6[_0x3fea81(0x2be)]&&typeof _0x3b03e6[_0x3fea81(0x2be)]=='object'&&!Array[_0x3fea81(0x1bf)](_0x3b03e6[_0x3fea81(0x2be)])){let _0x40d74b=this[_0x3fea81(0x21b)](_0x3b03e6['error']);if(_0x40d74b)return _0x40d74b;}}[_0x379674(0x240)](){const _0x3b31b2=_0x379674;var _0x486213;let _0x10863e=this[_0x3b31b2(0x1b9)][_0x3b31b2(0x2ab)](f);return(_0x486213=_0x10863e==null?void 0x0:_0x10863e['uploadFileServerUrl'])==null?_0x3b31b2(0x202):_0x486213;}[_0x379674(0x1b7)](){const _0xcc1798=_0x379674;var _0x3e54fc;let _0x3d9a88=this['_configService'][_0xcc1798(0x2ab)](f);return(_0x3e54fc=_0x3d9a88==null?void 0x0:_0x3d9a88[_0xcc1798(0x307)])==null?_0xcc1798(0x2a5):_0x3e54fc;}[_0x379674(0x302)](){const _0x4d5aca=_0x379674;var _0x51f1ff;let _0x2099cd=this[_0x4d5aca(0x1b9)]['getConfig'](f);return(_0x51f1ff=_0x2099cd==null?void 0x0:_0x2099cd['exportServerUrl'])==null?'/universer-api/exchange/{type}/export':_0x51f1ff;}[_0x379674(0x318)](){const _0x1d48b4=_0x379674;var _0x373342;let _0x2722ad=this[_0x1d48b4(0x1b9)][_0x1d48b4(0x2ab)](f);return(_0x373342=_0x2722ad==null?void 0x0:_0x2722ad[_0x1d48b4(0x2a6)])==null?_0x1d48b4(0x1e5):_0x373342;}[_0x379674(0x2bf)](){const _0x4fb3e0=_0x379674;var _0x1e66e1;let _0x3966de=this['_configService'][_0x4fb3e0(0x2ab)](f);return(_0x1e66e1=_0x3966de==null?void 0x0:_0x3966de['signUrlServerUrl'])==null?'/universer-api/file/{fileID}/sign-url':_0x1e66e1;}['_getMaxPollingTime'](){const _0x2808b5=_0x379674;var _0x156d75;let _0x42559a=this[_0x2808b5(0x1b9)][_0x2808b5(0x2ab)](f);return(_0x156d75=_0x42559a==null?void 0x0:_0x42559a[_0x2808b5(0x1f6)])==null?0x1d4c0:_0x156d75;}};I=h([m(0x0,t[_0x379674(0x1d3)]),m(0x1,(0x0,t[_0x379674(0x25d)])(n['HTTPService']))],I);function L(_0x4a5bcd){const _0x284a73=_0x379674;let _0x4cd485=_0x4a5bcd[_0x284a73(0x298)];if(!_0x4cd485)return null;let _0x4c5948={};_0x4cd485[_0x284a73(0x2af)]&&Object[_0x284a73(0x275)](_0x4cd485['sheets'])['forEach'](_0x18817b=>{const _0x1cc770=_0x284a73;let _0x4e0b7b=_0x4cd485[_0x1cc770(0x2af)][_0x18817b];_0x4c5948[_0x18817b]={..._0x4e0b7b,'originalMeta':(0x0,l[_0x1cc770(0x30c)])(l[_0x1cc770(0x2a7)]['decode'](_0x4e0b7b[_0x1cc770(0x323)]))};});let _0x12ecd7=(0x0,l['b64EncodeUnicode'])(l[_0x284a73(0x2a7)][_0x284a73(0x23c)](_0x4cd485[_0x284a73(0x323)]));return{..._0x4a5bcd,'workbook':{..._0x4cd485,'originalMeta':_0x12ecd7,'sheets':_0x4c5948},'doc':{},'slide':void 0x0,'board':void 0x0};}function R(_0x5c6985){const _0x534ad6=_0x379674;let _0x66e4ef=_0x5c6985['doc'];if(!_0x66e4ef)return null;let _0x3d72e0=(0x0,l[_0x534ad6(0x30c)])(l[_0x534ad6(0x2a7)]['decode'](_0x66e4ef['originalMeta']));return{..._0x5c6985,'workbook':{},'doc':{..._0x66e4ef,'originalMeta':_0x3d72e0},'slide':void 0x0,'board':void 0x0};}function z(_0x425ec8){const _0x31dc04=_0x379674;var _0x338940;let _0x14171e=(_0x338940=_0x425ec8[_0x31dc04(0x29f)])==null?_0x425ec8[_0x31dc04(0x1a3)]:_0x338940;if(!_0x14171e)return null;let _0x339d8e=typeof _0x14171e[_0x31dc04(0x323)]=='string'?_0x14171e[_0x31dc04(0x323)]:(0x0,l[_0x31dc04(0x30c)])(l[_0x31dc04(0x2a7)][_0x31dc04(0x23c)](_0x14171e[_0x31dc04(0x323)]));return{..._0x425ec8,'workbook':{},'doc':{},'slide':{..._0x14171e,'originalMeta':_0x339d8e},'board':void 0x0};}function B(_0x345b81){const _0x19a6d0=_0x379674;let _0x36415f={};return _0x345b81[_0x19a6d0(0x31d)](_0x3c6771=>{const _0x10226b=_0x19a6d0;_0x36415f[_0x3c6771['id']]={..._0x3c6771,'data':(0x0,l['b64EncodeUnicode'])(l['textDecoder'][_0x10226b(0x23c)](_0x3c6771['data']))};}),_0x36415f;}async function V(_0x59676d){const _0x24673e=_0x379674;var _0x432861;let _0x2bef27={'metadata':void 0x0},_0x1b595d=_0x59676d['id'],_0x5c1d57=(_0x432861=_0x59676d['rev'])==null?0x0:_0x432861,_0x457c1f=new W(),{snapshot:_0x9fa01d}=await(0x0,l[_0x24673e(0x27f)])(_0x2bef27,_0x59676d,_0x1b595d,_0x5c1d57,_0x457c1f),_0x3986b7=await(0x0,l['getSheetBlocksFromSnapshot'])(_0x9fa01d,_0x457c1f),_0x3f0071=L(_0x9fa01d);if(!_0x3f0071)throw Error('Failed\x20to\x20transform\x20snapshot\x20to\x20string');return{'snapshot':_0x3f0071,'sheetBlocks':B(_0x3986b7)};}async function H(_0x37828a){const _0x5cf78f=_0x379674;var _0x457ecb;let _0x5c96cd={'metadata':void 0x0},_0x18cb12=_0x37828a['id'],{snapshot:_0x57f5b5}=await(0x0,l[_0x5cf78f(0x2de)])(_0x5c96cd,_0x37828a,_0x18cb12,(_0x457ecb=_0x37828a['rev'])==null?0x0:_0x457ecb,new W()),_0x184234=R(_0x57f5b5);if(!_0x184234)throw Error(_0x5cf78f(0x2bc));return{'snapshot':_0x184234,'sheetBlocks':{}};}async function U(_0x5515eb){const _0x152e09=_0x379674;var _0x571bfa;let _0x1bd708=_0x5515eb['id'],_0x5367fe=(_0x571bfa=_0x5515eb['rev'])==null?0x0:_0x571bfa,_0x2084b9=new W(),{snapshot:_0x58781c}=await(0x0,l[_0x152e09(0x2d5)])(_0x5515eb['resources'],_0x5515eb,_0x1bd708,_0x5367fe,_0x2084b9),_0x31f085=z(_0x58781c);if(!_0x31f085)throw Error('Failed\x20to\x20transform\x20snapshot\x20to\x20string');return{'snapshot':_0x31f085,'sheetBlocks':{}};}async function ue(_0x2811d9){const _0x457892=_0x379674;let _0x464148=_0x2811d9[_0x457892(0x27a)],_0x4be932=_0x2811d9[_0x457892(0x1ca)]||{};return await(0x0,l[_0x457892(0x25f)])(_0x464148,Object[_0x457892(0x275)](_0x4be932)[_0x457892(0x2f0)](_0x2a0ecd=>_0x4be932[_0x2a0ecd])['map'](_0x16cd9a=>({..._0x16cd9a,'data':_0x16cd9a[_0x457892(0x2b7)]?JSON[_0x457892(0x1a1)]((0x0,l[_0x457892(0x233)])(_0x16cd9a[_0x457892(0x2b7)])):void 0x0})));}function de(_0x6697e){const _0x47d2d3=_0x379674;let _0x2cd891=_0x6697e[_0x47d2d3(0x27a)];return(0x0,l['transformSnapshotToDocumentData'])(_0x2cd891);}function _0x4e7e(_0x28477b,_0x10fa9c){_0x28477b=_0x28477b-0x19e;const _0xb3dc21=_0xb3dc();let _0x4e7ed2=_0xb3dc21[_0x28477b];return _0x4e7ed2;}function fe(_0x1f4bc6){const _0x32d6be=_0x379674;let _0x42d344=_0x1f4bc6[_0x32d6be(0x27a)];return(0x0,l[_0x32d6be(0x270)])(_0x42d344);}var W=class{constructor(){const _0xc4c321=_0x379674;v(this,_0xc4c321(0x1a9),new Map());}[_0x379674(0x253)](){const _0x241e0b=_0x379674;return Promise[_0x241e0b(0x20b)]({'snapshot':{'unitID':'','type':t['UniverInstanceType'][_0x241e0b(0x2d3)],'rev':0x0,'workbook':void 0x0,'doc':void 0x0,'slide':void 0x0,'board':void 0x0},'changesets':[],'error':{'code':c[_0x241e0b(0x258)]['OK'],'message':''}});}[_0x379674(0x20f)](_0x407c39,_0x1f534d){const _0x36d897=_0x379674;let _0x4effb5=this[_0x36d897(0x1a9)]['get'](_0x1f534d[_0x36d897(0x243)]);return Promise['resolve']({'block':_0x4effb5,'error':{'code':c[_0x36d897(0x258)]['OK'],'message':''}});}[_0x379674(0x2e6)](_0x4f58a9,_0x1f6467){const _0x2c8464=_0x379674;let _0x213664=this[_0x2c8464(0x1a9)]['get'](_0x1f6467[_0x2c8464(0x243)]);return Promise[_0x2c8464(0x20b)]({'block':_0x213664===void 0x0?void 0x0:{..._0x213664,'data':JSON['parse'](l['textDecoder']['decode'](_0x213664[_0x2c8464(0x2b7)]))},'error':{'code':c['ErrorCode']['OK'],'message':''}});}[_0x379674(0x29b)](){const _0x127dd2=_0x379674;return Promise[_0x127dd2(0x20b)]({'changesets':[],'error':{'code':c['ErrorCode']['OK'],'message':''}});}['getResourcesRequest'](){const _0xdefbb3=_0x379674;return Promise[_0xdefbb3(0x20b)]({'resources':{},'error':{'code':c[_0xdefbb3(0x258)]['OK'],'message':''}});}[_0x379674(0x228)](){const _0x33a9a2=_0x379674;return Promise[_0x33a9a2(0x20b)]({'error':{'code':c['ErrorCode']['OK'],'message':''}});}[_0x379674(0x256)](){const _0x1cf426=_0x379674;return Promise[_0x1cf426(0x20b)]({'error':{'code':c[_0x1cf426(0x258)]['OK'],'message':''}});}['saveSheetBlock'](_0x407fd2,_0x3a4213){const _0x2eec99=_0x379674;let {block:_0x4083ed}=_0x3a4213;return _0x4083ed?(this['_sheetBlockCache'][_0x2eec99(0x284)](_0x4083ed['id'],_0x4083ed),Promise['resolve']({'error':{'code':c[_0x2eec99(0x258)]['OK'],'message':''},'blockID':_0x4083ed['id']})):Promise[_0x2eec99(0x20b)]({'error':{'code':c['ErrorCode'][_0x2eec99(0x325)],'message':_0x2eec99(0x2c3)},'blockID':''});}[_0x379674(0x1c6)](){const _0x2877f2=_0x379674;return Promise[_0x2877f2(0x20b)]({'error':{'code':c[_0x2877f2(0x258)]['OK'],'message':''},'concurrent':[]});}[_0x379674(0x249)](){const _0x7a127d=_0x379674;return Promise[_0x7a127d(0x20b)]({'error':void 0x0,'fileMetaId':''});}['getLatestCsReqIdBySid'](){const _0x3cb160=_0x379674;return Promise[_0x3cb160(0x20b)]({'error':void 0x0,'latestReqID':0x0});}};const G=(0x0,t[_0x379674(0x2eb)])('univer-pro.exchange-client.exchange.service');let K=class extends t['Disposable']{constructor(_0x16e23e,_0x5a623d,_0x11eec1){const _0x295c3d=_0x379674;super(),this[_0x295c3d(0x1b9)]=_0x16e23e,this[_0x295c3d(0x28a)]=_0x5a623d,this[_0x295c3d(0x1b6)]=_0x11eec1,v(this,_0x295c3d(0x27d),null),v(this,_0x295c3d(0x2e0),new a[(_0x295c3d(0x324))]()),v(this,_0x295c3d(0x27b),this['_requestState$'][_0x295c3d(0x263)]());}['dispose'](){const _0x409ae8=_0x379674;super['dispose'](),this[_0x409ae8(0x2e0)][_0x409ae8(0x326)]();}['downloadFile'](_0x133c98,_0xf07c11,_0x2d7674){const _0x2b0f71=_0x379674;let _0x4f4aa9=URL[_0x2b0f71(0x217)](_0x133c98);k(_0x4f4aa9,_0xf07c11,_0x2d7674),URL[_0x2b0f71(0x260)](_0x4f4aa9);}async[_0x379674(0x20a)](_0x5904f3){const _0x38f94b=_0x379674;let _0x244f39=_0x5904f3[_0x38f94b(0x27a)],_0x454602=_0x5904f3['sheetBlocks']||{};return(0x0,l[_0x38f94b(0x25f)])(_0x244f39,Object['keys'](_0x454602)['map'](_0x11e3fe=>_0x454602[_0x11e3fe])['map'](_0x1dede1=>({..._0x1dede1,'data':_0x1dede1['data']?JSON[_0x38f94b(0x1a1)]((0x0,l[_0x38f94b(0x233)])(_0x1dede1['data'])):void 0x0})));}async[_0x379674(0x24a)](_0x182a4e){const _0x4a3167=_0x379674;var _0x1506a5;let _0x4f30b5={'metadata':void 0x0},_0x588250=_0x182a4e['id'],_0x5b882f=(_0x1506a5=_0x182a4e[_0x4a3167(0x25e)])==null?0x0:_0x1506a5,_0x2dbef3=new W(),{snapshot:_0x301f2f}=await(0x0,l[_0x4a3167(0x27f)])(_0x4f30b5,_0x182a4e,_0x588250,_0x5b882f,_0x2dbef3),_0x1285db=await(0x0,l[_0x4a3167(0x1d0)])(_0x301f2f,_0x2dbef3),_0x187c83=L(_0x301f2f);if(!_0x187c83)throw Error(_0x4a3167(0x2bc));return{'snapshot':_0x187c83,'sheetBlocks':B(_0x1285db)};}async[_0x379674(0x267)](_0x25830c){const _0x399563=_0x379674;let _0x2bbe42=await this[_0x399563(0x22c)](_0x25830c,t[_0x399563(0x1ba)][_0x399563(0x21e)]);if(!_0x2bbe42||!_0x2bbe42['snapshot'])return;let _0x3119c5=de(_0x2bbe42);if(_0x3119c5)return _0x3119c5;}async['exportDOCXByUnitId'](_0x47724a){const _0x33aa70=_0x379674;return this[_0x33aa70(0x2bd)](_0x47724a,0x1,t['UniverInstanceType'][_0x33aa70(0x21e)]);}async[_0x379674(0x321)](_0x281d5b){const _0x2b5c7c=_0x379674;let _0x3ee7a8=await H(_0x281d5b);return this[_0x2b5c7c(0x316)](_0x3ee7a8,t[_0x2b5c7c(0x1ba)]['UNIVER_DOC']);}async[_0x379674(0x1a4)](_0x1b49bf){const _0x267801=_0x379674;let _0x322c65=await this[_0x267801(0x22c)](_0x1b49bf,t[_0x267801(0x1ba)][_0x267801(0x252)]);if(!(!_0x322c65||!_0x322c65[_0x267801(0x27a)]))return fe(_0x322c65);}async['exportPPTXByUnitId'](_0x10cf37){const _0x4396f8=_0x379674;return this[_0x4396f8(0x2bd)](_0x10cf37,0x1,t['UniverInstanceType'][_0x4396f8(0x252)]);}async[_0x379674(0x19f)](_0x5245f6){const _0x1baa09=_0x379674;let _0x4b235c=await U(_0x5245f6);return this['_exportBySnapshot'](_0x4b235c,t[_0x1baa09(0x1ba)]['UNIVER_SLIDE']);}async[_0x379674(0x2da)](_0x1c7285){const _0x55709b=_0x379674;let _0x472930=await this[_0x55709b(0x22c)](_0x1c7285,t[_0x55709b(0x1ba)][_0x55709b(0x2d3)]);if(!_0x472930)return;let _0x3a89da=await this[_0x55709b(0x20a)](_0x472930);if(_0x3a89da)return _0x3a89da;}async[_0x379674(0x1ea)](_0x1905b1){const _0x1382e8=_0x379674;return this['_export'](_0x1905b1,0x1,t['UniverInstanceType'][_0x1382e8(0x2d3)]);}async[_0x379674(0x1a6)](_0x2b39dc){const _0x1df28f=_0x379674;let _0x334905=await this[_0x1df28f(0x24a)](_0x2b39dc);return this[_0x1df28f(0x316)](_0x334905,t['UniverInstanceType'][_0x1df28f(0x2d3)]);}async['importFileToUnitId'](_0x11aab7,_0x5c7372){const _0x34b8d9=_0x379674;var _0xe2984,_0x5ae192;let _0x3e332f=await this[_0x34b8d9(0x224)](_0x11aab7);if(!_0x3e332f)return;let _0x384df2=await this[_0x34b8d9(0x28c)](_0x3e332f,0x1,_0x5c7372);if(!_0x384df2)return;this['_importTaskId']=_0x384df2,this['_requestService'][_0x34b8d9(0x2fc)]();let _0x3cf5d5=await this[_0x34b8d9(0x1b6)][_0x34b8d9(0x2fa)](_0x384df2)['catch'](_0x4927cc=>{const _0x3e0c01=_0x34b8d9;var _0x377aa2;let _0x42e44b=_0x4927cc instanceof Error?_0x4927cc[_0x3e0c01(0x2fd)]:(_0x377aa2=_0x4927cc[_0x3e0c01(0x2be)])==null?void 0x0:_0x377aa2[_0x3e0c01(0x2fd)];this[_0x3e0c01(0x2e0)][_0x3e0c01(0x1bb)]({'error':{'code':c[_0x3e0c01(0x258)][_0x3e0c01(0x317)],'message':_0x42e44b||''},'state':0x3});});if(!_0x3cf5d5)return;let _0x3c432a=(_0xe2984=_0x3cf5d5[_0x34b8d9(0x1b3)])==null?void 0x0:_0xe2984[_0x34b8d9(0x311)],_0x52c30a=((_0x5ae192=_0x3cf5d5[_0x34b8d9(0x1b3)])==null?void 0x0:_0x5ae192[_0x34b8d9(0x2b1)])||'';if(_0x3c432a!==0x1){this[_0x34b8d9(0x2e0)][_0x34b8d9(0x1bb)]({'error':{'code':c[_0x34b8d9(0x258)][_0x34b8d9(0x317)],'message':_0x34b8d9(0x29c)},'state':0x3});return;}if(_0x52c30a['length']===0x0){this[_0x34b8d9(0x2e0)][_0x34b8d9(0x1bb)]({'error':{'code':c['ErrorCode']['UNRECOGNIZED'],'message':'Failed\x20to\x20get\x20unitID\x20from\x20task'},'state':0x3});return;}return this[_0x34b8d9(0x2e0)][_0x34b8d9(0x1bb)]({'error':_0x3cf5d5[_0x34b8d9(0x2be)],'state':0x3}),_0x52c30a;}async['importFileToJson'](_0x1aef81,_0x12b1ad){const _0x116b8e=_0x379674;return this[_0x116b8e(0x272)](_0x1aef81,_0x12b1ad);}async[_0x379674(0x2e7)](_0x9d8f35){const _0x3cad96=_0x379674;let _0x261563=await this['transformWorkbookDataToSnapshotJson'](_0x9d8f35),_0x1a8b6c=typeof _0x9d8f35['id']==_0x3cad96(0x2f6)&&_0x9d8f35['id']['trim']()?_0x9d8f35['id'][_0x3cad96(0x1c5)]()+_0x3cad96(0x327):_0x3cad96(0x2fe),_0x3f5e31=new File([JSON['stringify'](_0x261563)],_0x1a8b6c,{'type':_0x3cad96(0x218)});return this[_0x3cad96(0x2d0)](_0x3f5e31,t[_0x3cad96(0x1ba)][_0x3cad96(0x2d3)]);}[_0x379674(0x271)](){const _0x8bdf59=_0x379674;this[_0x8bdf59(0x27d)]&&this[_0x8bdf59(0x1b6)][_0x8bdf59(0x1da)](this[_0x8bdf59(0x27d)]);}async['_importToJson'](_0x2ee7c5,_0x32bbc3){const _0x117ae6=_0x379674;var _0x3578a7,_0x373f80;let _0xb7b4f6=await this[_0x117ae6(0x224)](_0x2ee7c5);if(!_0xb7b4f6)return;let _0x18a14d=await this['_import'](_0xb7b4f6,0x2,_0x32bbc3);if(!_0x18a14d)return;this[_0x117ae6(0x27d)]=_0x18a14d,this[_0x117ae6(0x1b6)][_0x117ae6(0x2fc)]();let _0x5ef1f3=await this[_0x117ae6(0x1b6)]['getTask'](_0x18a14d)[_0x117ae6(0x1e0)](_0xbf2586=>{const _0x9115ab=_0x117ae6;var _0x59d9eb;let _0x5e82c1=_0xbf2586 instanceof Error?_0xbf2586[_0x9115ab(0x2fd)]:(_0x59d9eb=_0xbf2586['error'])==null?void 0x0:_0x59d9eb[_0x9115ab(0x2fd)];this[_0x9115ab(0x2e0)][_0x9115ab(0x1bb)]({'error':{'code':c[_0x9115ab(0x258)][_0x9115ab(0x317)],'message':_0x5e82c1||''},'state':0x3});});if(!_0x5ef1f3)return;let _0x35a33a=(_0x3578a7=_0x5ef1f3[_0x117ae6(0x1b3)])==null?void 0x0:_0x3578a7[_0x117ae6(0x311)],_0x159648=((_0x373f80=_0x5ef1f3['import'])==null?void 0x0:_0x373f80[_0x117ae6(0x1fb)])||'';if(_0x35a33a!==0x2){this[_0x117ae6(0x2e0)]['next']({'error':{'code':c[_0x117ae6(0x258)][_0x117ae6(0x317)],'message':_0x117ae6(0x29c)},'state':0x3});return;}if(_0x159648[_0x117ae6(0x269)]===0x0){this['_requestState$'][_0x117ae6(0x1bb)]({'error':{'code':c[_0x117ae6(0x258)][_0x117ae6(0x317)],'message':_0x117ae6(0x255)},'state':0x3});return;}this['_requestState$'][_0x117ae6(0x1bb)]({'error':_0x5ef1f3[_0x117ae6(0x2be)],'state':0x3});let _0x3ed516=await this[_0x117ae6(0x296)](_0x159648);if(!_0x3ed516)return;let _0x45da2e=await this[_0x117ae6(0x1b6)]['getTextFromUrl'](_0x3ed516);if(!_0x45da2e){this[_0x117ae6(0x2e0)]['next']({'error':{'code':c[_0x117ae6(0x258)][_0x117ae6(0x317)],'message':_0x117ae6(0x2c5)},'state':0x5});return;}try{let _0x12f706=JSON[_0x117ae6(0x1a1)](_0x45da2e);return this['_requestState$']['next']({'error':{'code':c[_0x117ae6(0x258)]['OK'],'message':_0x117ae6(0x26f)},'state':0x5}),_0x12f706;}catch{this['_requestState$'][_0x117ae6(0x1bb)]({'error':{'code':c[_0x117ae6(0x258)][_0x117ae6(0x317)],'message':_0x117ae6(0x265)},'state':0x5});}}async['_exportBySnapshot'](_0x19514e,_0x5a1526){const _0x3bd003=_0x379674;let _0x5f052b=JSON[_0x3bd003(0x2a4)](_0x19514e),_0x29e1bd=l[_0x3bd003(0x2a1)]['encode'](_0x5f052b),_0x111f24=(0x0,u[_0x3bd003(0x226)])(_0x29e1bd),_0x55df19=_0x29e1bd[_0x3bd003(0x269)],_0x40f27e=se(_0x111f24),_0x2cd998=await this['_upload'](_0x40f27e,_0x55df19,!0x0);if(_0x2cd998)return this[_0x3bd003(0x2bd)](_0x2cd998,0x2,_0x5a1526);}async[_0x379674(0x2bd)](_0x4aa159,_0x5c9d26,_0x1a3fb1){const _0x53b3fb=_0x379674;var _0x4d0573;let _0x4a7f7f=await this[_0x53b3fb(0x1b6)][_0x53b3fb(0x2ad)]({'unitID':_0x5c9d26===0x1?_0x4aa159:'','jsonID':_0x5c9d26===0x2?_0x4aa159:'','type':_0x1a3fb1,'useImageUrl':this[_0x53b3fb(0x2f1)](),'ignoreTableExport':this[_0x53b3fb(0x1c7)]()});if(!_0x4a7f7f){this['_requestState$'][_0x53b3fb(0x1bb)]({'error':{'code':c[_0x53b3fb(0x258)][_0x53b3fb(0x317)],'message':_0x53b3fb(0x2b6)},'state':0x2});return;}if(this[_0x53b3fb(0x2e0)]['next']({'error':_0x4a7f7f[_0x53b3fb(0x2be)],'state':0x2}),_0x4a7f7f[_0x53b3fb(0x2be)]&&_0x4a7f7f['error'][_0x53b3fb(0x293)]!==c[_0x53b3fb(0x258)]['OK'])return;let _0x3f5ba3=_0x4a7f7f[_0x53b3fb(0x2d4)],_0x3e3d72=await this[_0x53b3fb(0x1b6)][_0x53b3fb(0x2fa)](_0x3f5ba3)[_0x53b3fb(0x1e0)](_0x3ff1b5=>{const _0xa07784=_0x53b3fb;var _0x4ab8a4;let _0x18da3a=_0x3ff1b5 instanceof Error?_0x3ff1b5['message']:(_0x4ab8a4=_0x3ff1b5[_0xa07784(0x2be)])==null?void 0x0:_0x4ab8a4[_0xa07784(0x2fd)];this[_0xa07784(0x2e0)][_0xa07784(0x1bb)]({'error':{'code':c['ErrorCode']['UNRECOGNIZED'],'message':_0x18da3a||''},'state':0x3});});if(!_0x3e3d72)return;let _0x369a89=((_0x4d0573=_0x3e3d72[_0x53b3fb(0x2ad)])==null?void 0x0:_0x4d0573[_0x53b3fb(0x2fb)])||'';if(_0x369a89[_0x53b3fb(0x269)]===0x0){this['_requestState$'][_0x53b3fb(0x1bb)]({'error':{'code':c[_0x53b3fb(0x258)][_0x53b3fb(0x317)],'message':_0x53b3fb(0x23f)},'state':0x3});return;}this[_0x53b3fb(0x2e0)][_0x53b3fb(0x1bb)]({'error':_0x3e3d72[_0x53b3fb(0x2be)],'state':0x3});let _0x168dfe=await this['_signUrl'](_0x369a89);if(!_0x168dfe)return;let _0x57dd7d=await N(_0x168dfe,this[_0x53b3fb(0x28a)]);if(!_0x57dd7d){this[_0x53b3fb(0x2e0)][_0x53b3fb(0x1bb)]({'error':{'code':c['ErrorCode']['UNRECOGNIZED'],'message':'Failed\x20to\x20get\x20file\x20from\x20url'},'state':0x6});return;}return this['_requestState$'][_0x53b3fb(0x1bb)]({'error':{'code':c[_0x53b3fb(0x258)]['OK'],'message':_0x53b3fb(0x26f)},'state':0x6}),_0x57dd7d;}async[_0x379674(0x224)](_0x7c7493,_0x50cdd0,_0x5ece56){const _0x2579e1=_0x379674;let _0x27b92f;try{_0x27b92f=await this[_0x2579e1(0x1b6)][_0x2579e1(0x25a)](_0x7c7493,_0x50cdd0,_0x5ece56);}catch(_0x500d88){let _0x4be795=_0x500d88 instanceof Error?_0x500d88['message']:String(_0x500d88);this['_requestState$'][_0x2579e1(0x1bb)]({'error':{'code':c[_0x2579e1(0x258)][_0x2579e1(0x317)],'message':_0x4be795},'state':0x0});return;}if(!_0x27b92f||typeof _0x27b92f['FileId']!=_0x2579e1(0x2f6)){this['_requestState$'][_0x2579e1(0x1bb)]({'error':{'code':c[_0x2579e1(0x258)][_0x2579e1(0x317)],'message':'upload\x20failed:\x20missing\x20FileId\x20in\x20response'},'state':0x0});return;}let _0x215a0a=_0x27b92f[_0x2579e1(0x241)];if(_0x215a0a[_0x2579e1(0x269)]===0x0){this['_requestState$'][_0x2579e1(0x1bb)]({'error':{'code':c[_0x2579e1(0x258)][_0x2579e1(0x317)],'message':'upload\x20failed:\x20FileId\x20is\x20empty'},'state':0x0});return;}return this[_0x2579e1(0x2e0)][_0x2579e1(0x1bb)]({'error':{'code':c[_0x2579e1(0x258)]['OK'],'message':_0x2579e1(0x26f)},'state':0x0}),_0x215a0a;}async[_0x379674(0x28c)](_0x2eb67b,_0x35ea04,_0x50548f){const _0x4dc348=_0x379674;let _0x597116={'fileID':_0x2eb67b,'type':_0x50548f,'outputType':_0x35ea04,'fileUrl':'','minSheetRowCount':this[_0x4dc348(0x1f9)](),'minSheetColumnCount':this[_0x4dc348(0x1d4)]()},_0xc515de=await this[_0x4dc348(0x1b6)][_0x4dc348(0x1b3)](_0x597116);if(!_0xc515de){this[_0x4dc348(0x2e0)][_0x4dc348(0x1bb)]({'error':{'code':c['ErrorCode']['UNRECOGNIZED'],'message':_0x4dc348(0x2b8)},'state':0x1});return;}if(_0xc515de[_0x4dc348(0x2be)]&&_0xc515de['error'][_0x4dc348(0x293)]!==c[_0x4dc348(0x258)]['OK']){this[_0x4dc348(0x2e0)][_0x4dc348(0x1bb)]({'error':_0xc515de[_0x4dc348(0x2be)],'state':0x1});return;}let _0x50248d=_0xc515de[_0x4dc348(0x2d4)];if(_0x50248d[_0x4dc348(0x269)]===0x0){this[_0x4dc348(0x2e0)][_0x4dc348(0x1bb)]({'error':{'code':c[_0x4dc348(0x258)][_0x4dc348(0x317)],'message':_0x4dc348(0x2f8)},'state':0x1});return;}return this['_requestState$'][_0x4dc348(0x1bb)]({'error':_0xc515de[_0x4dc348(0x2be)],'state':0x1}),_0x50248d;}async[_0x379674(0x296)](_0x295381){const _0x59c469=_0x379674;let _0x425d8f=await this[_0x59c469(0x1b6)][_0x59c469(0x21d)](_0x295381);if(!_0x425d8f){this[_0x59c469(0x2e0)][_0x59c469(0x1bb)]({'error':{'code':c[_0x59c469(0x258)]['UNRECOGNIZED'],'message':_0x59c469(0x261)},'state':0x4});return;}if(_0x425d8f[_0x59c469(0x2be)]&&_0x425d8f[_0x59c469(0x2be)]['code']!==c[_0x59c469(0x258)]['OK']){this['_requestState$'][_0x59c469(0x1bb)]({'error':_0x425d8f[_0x59c469(0x2be)],'state':0x4});return;}let _0x4d6779=(0x0,t[_0x59c469(0x229)])(_0x425d8f[_0x59c469(0x30d)],this[_0x59c469(0x1e1)]());if(_0x4d6779[_0x59c469(0x269)]===0x0){this[_0x59c469(0x2e0)][_0x59c469(0x1bb)]({'error':{'code':c['ErrorCode'][_0x59c469(0x317)],'message':_0x59c469(0x261)},'state':0x4});return;}return this['_requestState$'][_0x59c469(0x1bb)]({'error':_0x425d8f[_0x59c469(0x2be)],'state':0x4}),_0x4d6779;}[_0x379674(0x1e1)](){const _0x5afc7b=_0x379674;var _0x1c5b7f;let _0x49cd5d=this[_0x5afc7b(0x1b9)][_0x5afc7b(0x2ab)](f);return(_0x1c5b7f=_0x49cd5d==null?void 0x0:_0x49cd5d[_0x5afc7b(0x2ff)])==null?location['origin']:_0x1c5b7f;}[_0x379674(0x1f9)](){const _0x695d2a=_0x379674;var _0x512276,_0x3b650c;let _0x3c21a1=this[_0x695d2a(0x1b9)][_0x695d2a(0x2ab)](f);return(_0x512276=_0x3c21a1==null||(_0x3b650c=_0x3c21a1['options'])==null?void 0x0:_0x3b650c[_0x695d2a(0x206)])==null?0x1:_0x512276;}['_getMinSheetColumnCount'](){const _0x3b1a61=_0x379674;var _0x3696f5,_0x1ea185;let _0x203211=this['_configService']['getConfig'](f);return(_0x3696f5=_0x203211==null||(_0x1ea185=_0x203211[_0x3b1a61(0x225)])==null?void 0x0:_0x1ea185[_0x3b1a61(0x2ca)])==null?0x1:_0x3696f5;}[_0x379674(0x2f1)](){const _0x48f490=_0x379674;var _0x282b7b,_0x4b2976;let _0x196540=this[_0x48f490(0x1b9)][_0x48f490(0x2ab)](f);return(_0x282b7b=_0x196540==null||(_0x4b2976=_0x196540[_0x48f490(0x225)])==null?void 0x0:_0x4b2976[_0x48f490(0x30a)])==null?!0x0:_0x282b7b;}[_0x379674(0x1c7)](){const _0x48dd54=_0x379674;var _0xbfeeaa,_0x273ada;let _0x18bd38=this[_0x48dd54(0x1b9)][_0x48dd54(0x2ab)](f);return(_0xbfeeaa=_0x18bd38==null||(_0x273ada=_0x18bd38[_0x48dd54(0x225)])==null?void 0x0:_0x273ada[_0x48dd54(0x2e4)])==null?!0x1:_0xbfeeaa;}};K=h([m(0x0,t[_0x379674(0x1d3)]),m(0x1,(0x0,t[_0x379674(0x25d)])(n[_0x379674(0x315)])),m(0x2,(0x0,t['Inject'])(F))],K);const pe={'done':0x0,'count':0x0},q=(0x0,t[_0x379674(0x2eb)])('univer-pro.exchange-client.operate.service');let J=class extends t[_0x379674(0x2f5)]{constructor(_0x357771,_0x52a98c,_0xad5591,_0x473684,_0x4e5c1c,_0x2ea9b8,_0x59e362){const _0x1c93a9=_0x379674;super(),this[_0x1c93a9(0x1cb)]=_0x357771,this[_0x1c93a9(0x1fe)]=_0x52a98c,this[_0x1c93a9(0x254)]=_0xad5591,this[_0x1c93a9(0x282)]=_0x473684,this[_0x1c93a9(0x30e)]=_0x4e5c1c,this[_0x1c93a9(0x231)]=_0x2ea9b8,this[_0x1c93a9(0x24d)]=_0x59e362,v(this,'_progress$',new a['BehaviorSubject'](pe)),v(this,_0x1c93a9(0x1db),this[_0x1c93a9(0x1fd)][_0x1c93a9(0x263)]()),v(this,_0x1c93a9(0x288),0x0),v(this,'_doneUploadTaskCount',0x0),this[_0x1c93a9(0x262)]((0x0,t[_0x1c93a9(0x203)])(this[_0x1c93a9(0x282)][_0x1c93a9(0x27b)]['subscribe'](_0x13c3b5=>{const _0x274524=_0x1c93a9;var _0xeaa0c3;((_0xeaa0c3=_0x13c3b5['error'])==null?void 0x0:_0xeaa0c3[_0x274524(0x293)])===c['ErrorCode']['OK']?this[_0x274524(0x234)](0x1):this[_0x274524(0x1b5)](_0x13c3b5[_0x274524(0x2be)]);})));}[_0x379674(0x1bc)](){const _0x206fd3=_0x379674;this[_0x206fd3(0x2f4)](),this[_0x206fd3(0x30e)][_0x206fd3(0x1c3)](0x2),this[_0x206fd3(0x282)]['interruptImportTask']();}async[_0x379674(0x2b3)](_0xa701b7){const _0xc029d=_0x379674;throw Error(_0xc029d(0x2d6));}async[_0x379674(0x2d8)](){const _0x47f6a3=_0x379674;let _0x3fcbe4=this[_0x47f6a3(0x1cb)]['getFocusedUnit']();switch(_0x3fcbe4?this['_univerInstanceService'][_0x47f6a3(0x205)](_0x3fcbe4['getUnitId']()):t[_0x47f6a3(0x1ba)][_0x47f6a3(0x317)]){case t[_0x47f6a3(0x1ba)][_0x47f6a3(0x252)]:return this[_0x47f6a3(0x2e2)]();case t[_0x47f6a3(0x1ba)][_0x47f6a3(0x21e)]:return this['importDOCXToUnitId']();case t[_0x47f6a3(0x1ba)][_0x47f6a3(0x2d3)]:default:return this[_0x47f6a3(0x25c)]();}}async['importDOCXToUnitId'](){const _0x421e39=_0x379674;let _0x2f002e=await M([t[_0x421e39(0x1ba)][_0x421e39(0x21e)]]);if(_0x2f002e&&!this[_0x421e39(0x1a7)](_0x2f002e,t['UniverInstanceType'][_0x421e39(0x21e)]))return this[_0x421e39(0x281)](_0x2f002e[0x0],t[_0x421e39(0x1ba)]['UNIVER_DOC']);}[_0x379674(0x267)](){const _0x41cf4b=_0x379674;throw Error(_0x41cf4b(0x2d6));}async['exportDOCXByUnitId'](_0x42fb4b,_0x40a88d,_0x21125a){const _0x4a7dd5=_0x379674;this[_0x4a7dd5(0x247)](o[_0x4a7dd5(0x29e)][_0x4a7dd5(0x1f8)]);let _0x2277de=await this[_0x4a7dd5(0x282)][_0x4a7dd5(0x222)](_0x42fb4b||this[_0x4a7dd5(0x2c2)]());_0x2277de&&(this[_0x4a7dd5(0x282)][_0x4a7dd5(0x290)](_0x2277de,_0x40a88d||this[_0x4a7dd5(0x320)](_0x2277de),_0x4a7dd5(0x314)),this['_showDownloadMessage'](o[_0x4a7dd5(0x29e)][_0x4a7dd5(0x2f3)]));}async[_0x379674(0x321)](){const _0x591a6a=_0x379674;this[_0x591a6a(0x247)](o[_0x591a6a(0x29e)][_0x591a6a(0x1f8)]);let _0x5cb58c=await this[_0x591a6a(0x209)](),_0x1d49cd=await this[_0x591a6a(0x282)]['exportDOCXBySnapshot'](_0x5cb58c);_0x1d49cd&&(this[_0x591a6a(0x282)][_0x591a6a(0x290)](_0x1d49cd,this[_0x591a6a(0x320)](_0x1d49cd),'docx'),this[_0x591a6a(0x247)](o[_0x591a6a(0x29e)][_0x591a6a(0x2f3)]));}async['importPPTXToUnitId'](){const _0x296c7d=_0x379674;if(this[_0x296c7d(0x1c9)]()){this[_0x296c7d(0x1fe)][_0x296c7d(0x32b)]({'type':o[_0x296c7d(0x29e)][_0x296c7d(0x1e6)],'content':this[_0x296c7d(0x254)]['t'](_0x296c7d(0x213))});return;}let _0x34153f=await M([t['UniverInstanceType']['UNIVER_SLIDE']]);if(_0x34153f&&!this[_0x296c7d(0x1a7)](_0x34153f,t[_0x296c7d(0x1ba)]['UNIVER_SLIDE']))return this['_importFileToUnitId'](_0x34153f[0x0],t[_0x296c7d(0x1ba)]['UNIVER_SLIDE']);}async[_0x379674(0x1a4)](){const _0x2f8749=_0x379674;if(this['_uploadTaskNotDone']()){this[_0x2f8749(0x1fe)][_0x2f8749(0x32b)]({'type':o[_0x2f8749(0x29e)][_0x2f8749(0x1e6)],'content':this['_localeService']['t'](_0x2f8749(0x213))});return;}let _0x5bed90=await M([t['UniverInstanceType'][_0x2f8749(0x252)]]);if(!_0x5bed90)return;this[_0x2f8749(0x207)](o['MessageType']['Info']);let _0x435c8e=await this['_exchangeService'][_0x2f8749(0x1a4)](_0x5bed90[0x0]);_0x435c8e&&(this['_refreshSlide'](_0x435c8e),this[_0x2f8749(0x207)](o[_0x2f8749(0x29e)][_0x2f8749(0x2f3)]));}async[_0x379674(0x20e)](_0x11726d,_0x2d1b2a,_0x1a1ace){const _0x59fd2c=_0x379674;this[_0x59fd2c(0x247)](o[_0x59fd2c(0x29e)]['Info']);let _0x861b50=await this[_0x59fd2c(0x282)][_0x59fd2c(0x20e)](_0x11726d||this[_0x59fd2c(0x250)]());_0x861b50&&(this[_0x59fd2c(0x282)]['downloadFile'](_0x861b50,_0x2d1b2a||this[_0x59fd2c(0x23e)](_0x861b50,_0x1a1ace==null?t[_0x59fd2c(0x1ba)][_0x59fd2c(0x252)]:_0x1a1ace),_0x59fd2c(0x24c)),this['_showDownloadMessage'](o[_0x59fd2c(0x29e)][_0x59fd2c(0x2f3)]));}async[_0x379674(0x19f)](){const _0x5f21e5=_0x379674;this[_0x5f21e5(0x247)](o[_0x5f21e5(0x29e)][_0x5f21e5(0x1f8)]);let _0x4cc1c0=await this[_0x5f21e5(0x273)](),_0x425d4c=await this['_exchangeService'][_0x5f21e5(0x19f)](_0x4cc1c0);_0x425d4c&&(this[_0x5f21e5(0x282)][_0x5f21e5(0x290)](_0x425d4c,this['_getUnitNameByType'](_0x425d4c,t[_0x5f21e5(0x1ba)][_0x5f21e5(0x252)]),_0x5f21e5(0x24c)),this['_showDownloadMessage'](o[_0x5f21e5(0x29e)][_0x5f21e5(0x2f3)]));}async[_0x379674(0x25c)](){const _0x3c6cfb=_0x379674;if(this[_0x3c6cfb(0x1c9)]()){this[_0x3c6cfb(0x1fe)]['show']({'type':o['MessageType'][_0x3c6cfb(0x1e6)],'content':this['_localeService']['t'](_0x3c6cfb(0x213))});return;}let _0x38ae73=await M([t[_0x3c6cfb(0x1ba)][_0x3c6cfb(0x2d3)]]);if(_0x38ae73&&!this[_0x3c6cfb(0x1a7)](_0x38ae73,t[_0x3c6cfb(0x1ba)]['UNIVER_SHEET']))return this[_0x3c6cfb(0x281)](_0x38ae73[0x0],t[_0x3c6cfb(0x1ba)]['UNIVER_SHEET']);}async[_0x379674(0x2da)](){const _0x47dfcc=_0x379674;if(this[_0x47dfcc(0x1c9)]()){this[_0x47dfcc(0x1fe)][_0x47dfcc(0x32b)]({'type':o[_0x47dfcc(0x29e)]['Warning'],'content':this[_0x47dfcc(0x254)]['t']('exchange-client.uploading')});return;}let _0x2177a9=await M([t['UniverInstanceType'][_0x47dfcc(0x2d3)]]);if(!_0x2177a9)return;this[_0x47dfcc(0x207)](o['MessageType'][_0x47dfcc(0x1f8)]);let _0x203bed=await this['_exchangeService'][_0x47dfcc(0x2da)](_0x2177a9[0x0]);_0x203bed&&(this['_refresh'](_0x203bed),this['_showUploadMessage'](o['MessageType'][_0x47dfcc(0x2f3)]));}async[_0x379674(0x1ea)](_0x3ec134,_0x267dbf,_0x5dd5f7){const _0x11d857=_0x379674;this['_showDownloadMessage'](o[_0x11d857(0x29e)]['Info']);let _0x58e070=await this[_0x11d857(0x282)][_0x11d857(0x1ea)](_0x3ec134||this[_0x11d857(0x1e8)]());_0x58e070&&(this[_0x11d857(0x282)]['downloadFile'](_0x58e070,_0x267dbf||this[_0x11d857(0x320)](_0x58e070),_0x11d857(0x310)),this[_0x11d857(0x247)](o[_0x11d857(0x29e)]['Success']));}async[_0x379674(0x1a6)](){const _0x55c698=_0x379674;this[_0x55c698(0x247)](o[_0x55c698(0x29e)][_0x55c698(0x1f8)]);let _0x276bbe=await this[_0x55c698(0x2ec)](),_0x4bc89f=await this[_0x55c698(0x282)][_0x55c698(0x1a6)](_0x276bbe);_0x4bc89f&&(this[_0x55c698(0x282)]['downloadFile'](_0x4bc89f,this['_getUnitName'](_0x4bc89f),_0x55c698(0x310)),this['_showDownloadMessage'](o['MessageType'][_0x55c698(0x2f3)]));}[_0x379674(0x300)](_0x10b411){const _0x5de7d1=_0x379674;this[_0x5de7d1(0x306)]=_0x10b411;}async[_0x379674(0x281)](_0x10c909,_0x4be3a2){const _0x574c0b=_0x379674;this[_0x574c0b(0x30e)]['show'](),this[_0x574c0b(0x30e)]['updateState'](0x0),this[_0x574c0b(0x236)](0x4),this[_0x574c0b(0x234)](0x1);let _0x271055=await this[_0x574c0b(0x282)][_0x574c0b(0x2d0)](_0x10c909,_0x4be3a2);if(!_0x271055){this[_0x574c0b(0x2f4)](),this['_uploadNotificationService'][_0x574c0b(0x1c3)](0x2);return;}let _0x2fec96={'link':this['_getLinkByUnitId'](_0x271055,_0x4be3a2),'name':_0x10c909[_0x574c0b(0x22b)],'type':_0x4be3a2};return this[_0x574c0b(0x30e)]['pushLink'](_0x2fec96),this[_0x574c0b(0x268)](),this[_0x574c0b(0x30e)][_0x574c0b(0x1c3)](0x1),_0x271055;}[_0x379674(0x1e8)](){const _0x220e36=_0x379674;return this['_univerInstanceService'][_0x220e36(0x2b4)](t['UniverInstanceType']['UNIVER_SHEET'])[_0x220e36(0x215)]();}['_getUnitIDDoc'](){const _0xa52ad4=_0x379674;return this[_0xa52ad4(0x1cb)][_0xa52ad4(0x2b4)](t[_0xa52ad4(0x1ba)][_0xa52ad4(0x21e)])[_0xa52ad4(0x215)]();}[_0x379674(0x250)](){const _0x3996d5=_0x379674;return this[_0x3996d5(0x1cb)][_0x3996d5(0x2b4)](t[_0x3996d5(0x1ba)][_0x3996d5(0x252)])['getUnitId']();}[_0x379674(0x320)](_0x447ad5){const _0x4a0f23=_0x379674;return this[_0x4a0f23(0x23e)](_0x447ad5,t[_0x4a0f23(0x1ba)][_0x4a0f23(0x2d3)]);}[_0x379674(0x23e)](_0x50eb08,_0xba15b0){const _0x52a8ec=_0x379674;var _0x2d6ad9;let _0xcf5fb0=(_0x2d6ad9=this[_0x52a8ec(0x1cb)][_0x52a8ec(0x2b4)](_0xba15b0))==null?void 0x0:_0x2d6ad9[_0x52a8ec(0x1a2)](),_0x35782c=_0xcf5fb0==null?void 0x0:_0xcf5fb0['name'];return typeof _0x35782c==_0x52a8ec(0x2f6)&&_0x35782c[_0x52a8ec(0x1c5)]()?_0x35782c:_0x50eb08[_0x52a8ec(0x22b)]['split']('.')[_0x52a8ec(0x1b2)]()||document[_0x52a8ec(0x251)];}async[_0x379674(0x2ec)](){const _0xb8ed40=_0x379674;return this['_univerInstanceService'][_0xb8ed40(0x2b4)](t[_0xb8ed40(0x1ba)][_0xb8ed40(0x2d3)])[_0xb8ed40(0x1a2)]();}async['_getUnitDocJson'](){const _0x536c60=_0x379674;return this[_0x536c60(0x1cb)]['getCurrentUnitOfType'](t[_0x536c60(0x1ba)]['UNIVER_DOC'])[_0x536c60(0x1a2)]();}async[_0x379674(0x273)](){const _0x20e078=_0x379674;let _0x520cfb=this[_0x20e078(0x1cb)][_0x20e078(0x2b4)](t['UniverInstanceType'][_0x20e078(0x252)]),_0x5537e4=this[_0x20e078(0x24d)][_0x20e078(0x1fa)](_0x520cfb['getUnitId']());return _0x5537e4==null?_0x520cfb[_0x20e078(0x1a2)]():_0x5537e4;}[_0x379674(0x306)](_0x2dbe2c,_0x214d19){const _0x451feb=_0x379674;let _0x506220=new URL(window[_0x451feb(0x1dd)][_0x451feb(0x2d1)]);return _0x506220['searchParams']['set'](_0x451feb(0x1ec),_0x2dbe2c),_0x506220[_0x451feb(0x22d)][_0x451feb(0x284)]('type',''+_0x214d19),_0x506220['toString']();}[_0x379674(0x1cc)](_0x3ced0e){const _0x33d981=_0x379674;let _0x37d068=this[_0x33d981(0x1cb)][_0x33d981(0x2b4)](t['UniverInstanceType'][_0x33d981(0x2d3)])[_0x33d981(0x215)]();this[_0x33d981(0x1cb)][_0x33d981(0x1d5)](_0x37d068),this[_0x33d981(0x1cb)][_0x33d981(0x28d)](t[_0x33d981(0x1ba)][_0x33d981(0x2d3)],_0x3ced0e);}[_0x379674(0x32a)](_0x51ea04){const _0x4f27b2=_0x379674;let _0x26fe92=this[_0x4f27b2(0x1cb)][_0x4f27b2(0x2b4)](t['UniverInstanceType'][_0x4f27b2(0x252)])[_0x4f27b2(0x215)]();this['_univerInstanceService'][_0x4f27b2(0x1d5)](_0x26fe92),this[_0x4f27b2(0x1cb)][_0x4f27b2(0x28d)](t[_0x4f27b2(0x1ba)]['UNIVER_SLIDE'],_0x51ea04);}[_0x379674(0x1b5)](_0x43ec9b){const _0x18b518=_0x379674;if(_0x43ec9b){let {code:_0x53be9b}=_0x43ec9b;switch(_0x53be9b){case c[_0x18b518(0x258)][_0x18b518(0x208)]:this[_0x18b518(0x1fe)][_0x18b518(0x32b)]({'type':o[_0x18b518(0x29e)]['Error'],'content':this[_0x18b518(0x254)]['t'](_0x18b518(0x294))});break;case c[_0x18b518(0x258)][_0x18b518(0x1c1)]:this[_0x18b518(0x1fe)]['show']({'type':o[_0x18b518(0x29e)][_0x18b518(0x244)],'content':this[_0x18b518(0x254)]['t'](_0x18b518(0x1c0))});break;default:this[_0x18b518(0x1fe)][_0x18b518(0x32b)]({'type':o[_0x18b518(0x29e)][_0x18b518(0x244)],'content':this['_localeService']['t']('exchange-client.networkError')});break;}return null;}return this[_0x18b518(0x1fe)]['show']({'type':o['MessageType'][_0x18b518(0x244)],'content':this['_localeService']['t'](_0x18b518(0x295))}),null;}[_0x379674(0x247)](_0x151610){const _0x39dbef=_0x379674;let _0x1d1bec='';switch(_0x151610){case o[_0x39dbef(0x29e)]['Success']:_0x1d1bec=this[_0x39dbef(0x254)]['t'](_0x39dbef(0x1eb));break;case o[_0x39dbef(0x29e)][_0x39dbef(0x1f8)]:_0x1d1bec=this['_localeService']['t'](_0x39dbef(0x227));break;default:break;}this[_0x39dbef(0x1fe)][_0x39dbef(0x32b)]({'type':_0x151610,'content':_0x1d1bec});}[_0x379674(0x207)](_0xb54a17){const _0x191f17=_0x379674;let _0x37c5f2='';switch(_0xb54a17){case o[_0x191f17(0x29e)][_0x191f17(0x2f3)]:_0x37c5f2=this[_0x191f17(0x254)]['t'](_0x191f17(0x26a));break;case o[_0x191f17(0x29e)][_0x191f17(0x1f8)]:_0x37c5f2=this[_0x191f17(0x254)]['t'](_0x191f17(0x213));break;default:break;}this[_0x191f17(0x1fe)][_0x191f17(0x32b)]({'type':_0xb54a17,'content':_0x37c5f2});}[_0x379674(0x25b)](){const _0x36509e=_0x379674;this[_0x36509e(0x1fd)][_0x36509e(0x1bb)]({'done':this[_0x36509e(0x1f3)],'count':this[_0x36509e(0x288)]});}[_0x379674(0x236)](_0x56bd41){const _0x3e8f37=_0x379674;this[_0x3e8f37(0x288)]+=_0x56bd41,this[_0x3e8f37(0x25b)]();}[_0x379674(0x234)](_0x17a488){const _0x15c190=_0x379674;this[_0x15c190(0x1f3)]+=_0x17a488,this['_doneUploadTaskCount']=Math[_0x15c190(0x2e5)](this[_0x15c190(0x1f3)],this['_totalUploadTaskCount']),this['_emitProgress']();}['_completeProgress'](){const _0x33a217=_0x379674;this['_doneUploadTaskCount']=this[_0x33a217(0x288)],this[_0x33a217(0x25b)]();}[_0x379674(0x2f4)](){const _0x4d33ce=_0x379674;this[_0x4d33ce(0x1f3)]=0x0,this[_0x4d33ce(0x288)]=0x0,this['_emitProgress']();}[_0x379674(0x1a7)](_0x55879c,_0x52058d){const _0x576f13=_0x379674;let _0x3c8ade=_0x55879c[0x0],_0x54cb7e=_0x3c8ade[_0x576f13(0x22b)];return j(_0x3c8ade)===_0x52058d?!0x1:(this[_0x576f13(0x1fe)][_0x576f13(0x32b)]({'type':o[_0x576f13(0x29e)][_0x576f13(0x244)],'content':this[_0x576f13(0x254)]['t'](_0x576f13(0x31e),_0x54cb7e)}),!0x0);}[_0x379674(0x1c9)](){const _0x33996f=_0x379674;return this['_totalUploadTaskCount']!==0x0&&this['_doneUploadTaskCount']!==this[_0x33996f(0x288)];}};J=h([m(0x0,(0x0,t[_0x379674(0x25d)])(t[_0x379674(0x29d)])),m(0x1,i[_0x379674(0x20c)]),m(0x2,(0x0,t[_0x379674(0x25d)])(t[_0x379674(0x237)])),m(0x3,(0x0,t[_0x379674(0x25d)])(G)),m(0x4,(0x0,t[_0x379674(0x25d)])(y)),m(0x5,t[_0x379674(0x2a8)]),m(0x6,(0x0,t['Inject'])(t['IResourceLoaderService']))],J);function Y(_0x5d7a0e){const _0x113956=_0x379674;let {onClick:_0x1a0a10,children:_0x20a2cc,className:_0x20ea02}=_0x5d7a0e;return(0x0,s[_0x113956(0x1f0)])(_0x113956(0x2d7),{'className':(0x0,o['clsx'])(_0x113956(0x29a),_0x20ea02),'type':_0x113956(0x2d7),'onClick':_0x1a0a10,'children':_0x20a2cc});}function X(){const _0x123ce6=_0x379674;let _0x598964=(0x0,i[_0x123ce6(0x279)])(q),_0x4095cf=(0x0,i['useDependency'])(t[_0x123ce6(0x237)]);function _0x51ebc5(){_0x598964['importFileToUnitIdByCurrentType']();}return(0x0,s['jsx'])(Y,{'onClick':_0x51ebc5,'children':_0x4095cf['t'](_0x123ce6(0x2ba))});}function me(){const _0x76f1b3=_0x379674;return(0x0,s[_0x76f1b3(0x2c0)])(_0x76f1b3(0x221),{'className':'univer-mt-5\x20univer-flex\x20univer-flex-col','children':[(0x0,s[_0x76f1b3(0x1f0)])('span',{'className':'univer-mb-3\x20univer-py-0\x20univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','children':(0x0,i[_0x76f1b3(0x279)])(t['LocaleService'])['t']('exchange-client.interrupt')}),(0x0,s['jsx'])(X,{})]});}function he(_0x255351){const _0x1f33b6=_0x379674;let {count:_0x388bd3}=_0x255351;return(0x0,s['jsxs'])(_0x1f33b6(0x221),{'className':_0x1f33b6(0x2aa),'children':[(0x0,s['jsx'])(_0x1f33b6(0x1df),{'className':_0x1f33b6(0x1af),'children':(0x0,i['useDependency'])(t[_0x1f33b6(0x237)])['t'](_0x1f33b6(0x274),''+_0x388bd3)}),(0x0,s[_0x1f33b6(0x1f0)])(X,{})]});}function ge(){const _0x332120=_0x379674;let _0x3d7ac3=(0x0,i[_0x332120(0x279)])(q),_0xfa789e=(0x0,i[_0x332120(0x279)])(t['LocaleService']);function _0x5e478e(){const _0x1c220b=_0x332120;_0x3d7ac3[_0x1c220b(0x1bc)]();}return(0x0,s[_0x332120(0x1f0)])(Y,{'onClick':_0x5e478e,'children':_0xfa789e['t'](_0x332120(0x1f1))});}function _e(){const _0x2a64e4=_0x379674;let {count:_0xe20672,done:_0x101561}=(0x0,i[_0x2a64e4(0x286)])((0x0,i[_0x2a64e4(0x279)])(q)['progress$']),_0x2d2ae6=_0xe20672>0x0?_0x101561/_0xe20672:0x0;return(0x0,s[_0x2a64e4(0x1f0)])(_0x2a64e4(0x221),{'className':_0x2a64e4(0x230),'children':(0x0,s[_0x2a64e4(0x1f0)])(_0x2a64e4(0x221),{'className':_0x2a64e4(0x2ac),'style':{'width':Math[_0x2a64e4(0x1e2)](_0x2d2ae6*0x64)+'%'}})});}function ve(){const _0x145a82=_0x379674;return(0x0,s[_0x145a82(0x2c0)])(_0x145a82(0x221),{'className':_0x145a82(0x2c7),'children':[(0x0,s['jsx'])('span',{'className':_0x145a82(0x2ea),'children':(0x0,i['useDependency'])(t[_0x145a82(0x237)])['t'](_0x145a82(0x278))}),(0x0,s['jsx'])(_0x145a82(0x221),{'className':_0x145a82(0x1b8),'children':(0x0,s[_0x145a82(0x1f0)])(_e,{})}),(0x0,s[_0x145a82(0x1f0)])(ge,{})]});}const Z={0x1:(0x0,s[_0x379674(0x1f0)])(r['SuccessIcon'],{'className':_0x379674(0x319)}),0x0:(0x0,s['jsx'])(r['ClockIcon'],{'className':_0x379674(0x1ed)}),0x2:(0x0,s[_0x379674(0x1f0)])(r[_0x379674(0x1f2)],{'className':_0x379674(0x1d6)})};function ye(){const _0x5854f2=_0x379674;let _0x3b88cf=(0x0,i[_0x5854f2(0x279)])(y),_0xe421da=(0x0,i[_0x5854f2(0x279)])(t[_0x5854f2(0x237)]),_0x5a16d8=(0x0,i['useObservable'])(_0x3b88cf[_0x5854f2(0x245)],0x0),_0xdae7d3=(0x0,i[_0x5854f2(0x286)])(_0x3b88cf['visible$'],!0x1),_0x92bbd6=(0x0,i['useObservable'])(_0x3b88cf[_0x5854f2(0x2c6)],[]);function _0x5ab216(){const _0x2cfdf7=_0x5854f2;_0x3b88cf[_0x2cfdf7(0x1e3)]();}function _0x5e5623(_0x16d610){const _0x1cb028=_0x5854f2;switch(_0x16d610){case 0x1:return _0xe421da['t'](_0x1cb028(0x26a));case 0x0:return _0xe421da['t'](_0x1cb028(0x213));case 0x2:return _0xe421da['t']('exchange-client.unknownMistake');default:return'';}}return _0xdae7d3&&(0x0,s[_0x5854f2(0x2c0)])(_0x5854f2(0x221),{'className':'univer-fixed\x20univer-bottom-12\x20univer-right-3\x20univer-z-[1000]\x20univer-box-border\x20univer-flex\x20univer-w-[372px]\x20univer-flex-col\x20univer-rounded-md\x20univer-bg-white\x20univer-px-3\x20univer-pb-4\x20univer-pt-5\x20univer-shadow-md','children':[(0x0,s[_0x5854f2(0x2c0)])(_0x5854f2(0x221),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-1.5\x20univer-pr-2','children':[(0x0,s['jsxs'])(_0x5854f2(0x1df),{'className':_0x5854f2(0x248),'children':[(0x0,s[_0x5854f2(0x1f0)])('span',{'className':_0x5854f2(0x309),'children':Z[_0x5a16d8]}),(0x0,s[_0x5854f2(0x1f0)])(_0x5854f2(0x1df),{'className':_0x5854f2(0x1ff),'children':_0x5e5623(_0x5a16d8)})]}),(0x0,s[_0x5854f2(0x1f0)])(_0x5854f2(0x1df),{'className':'univer-flex\x20univer-size-6\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-text-gray-500\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-bg-gray-600','onClick':_0x5ab216,'children':(0x0,s['jsx'])(r[_0x5854f2(0x2e8)],{})})]}),(0x0,s['jsxs'])('div',{'children':[_0x5a16d8===0x0&&(0x0,s[_0x5854f2(0x1f0)])(ve,{}),_0x5a16d8===0x2&&(0x0,s[_0x5854f2(0x1f0)])(me,{}),_0x92bbd6[_0x5854f2(0x269)]>0x0&&(0x0,s[_0x5854f2(0x1f0)])(re,{'list':_0x92bbd6}),_0x5a16d8===0x1&&(0x0,s[_0x5854f2(0x1f0)])(he,{'count':_0x92bbd6[_0x5854f2(0x269)]})]})]});}function be(){const _0x48e404=_0x379674;return(0x0,s[_0x48e404(0x1f0)])(ye,{});}let Q=class extends t[_0x379674(0x2f5)]{constructor(_0x33ad6f,_0x103512){const _0x549030=_0x379674;super(),this[_0x549030(0x280)]=_0x33ad6f,this[_0x549030(0x1b1)]=_0x103512,this[_0x549030(0x1f5)]();}[_0x379674(0x1f5)](){const _0x5727f4=_0x379674;this['disposeWithMe'](this[_0x5727f4(0x1b1)][_0x5727f4(0x1f7)](i[_0x5727f4(0x2b9)]['CONTENT'],()=>(0x0,i[_0x5727f4(0x31c)])(be,this['_injector'])));}};Q=h([m(0x0,(0x0,t[_0x379674(0x25d)])(t[_0x379674(0x1b4)])),m(0x1,i['IUIPartsService'])],Q);let $=class extends t[_0x379674(0x303)]{constructor(_0x3ef104=p,_0x288004,_0x2ff8c2){const _0x148c82=_0x379674;super(),this[_0x148c82(0x1de)]=_0x3ef104,this[_0x148c82(0x280)]=_0x288004,this[_0x148c82(0x1b9)]=_0x2ff8c2;let {..._0x434d09}=(0x0,t[_0x148c82(0x22e)])({},p,this[_0x148c82(0x1de)]);this['_configService'][_0x148c82(0x2e3)](f,_0x434d09);}['onStarting'](){const _0x2fb48a=_0x379674;(0x0,t[_0x2fb48a(0x26d)])(this[_0x2fb48a(0x280)],[[g],[Q],[q,{'useClass':J}],[G,{'useClass':K}],[F,{'useClass':I}],[y,{'useClass':b}]]);}['onReady'](){const _0x549a10=_0x379674;(0x0,t[_0x549a10(0x2dd)])(this['_injector'],[[g],[Q],[q]]);}};v($,_0x379674(0x1ae),_0x379674(0x1f4)),v($,_0x379674(0x26c),d),v($,'version',ee),$=h([(0x0,t['DependentOn'])(n[_0x379674(0x235)],e[_0x379674(0x2f9)]),m(0x1,(0x0,t[_0x379674(0x25d)])(t['Injector'])),m(0x2,t['IConfigService'])],$),exports[_0x379674(0x1cd)]=q,exports['IExchangeService']=G,Object[_0x379674(0x276)](exports,_0x379674(0x291),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x379674(0x290)]=A,exports[_0x379674(0x20a)]=ue,exports['transformWorkbookDataToSnapshotJson']=V;
|
|
1
|
+
const _0x1a80b7=_0x344e;function _0x5a10(){const _0x28875f=['button','Injector','location','append','exportXLSXBySnapshot','snapshot','span','Success','file','transformSlideDataToSnapshot','_showUploadMessage','4921WRtuGU','IMessageService','importPPTXToUnitId','exportDOCXBySnapshot','19820uNuewS','display','input','importDOCXToSnapshot','IUIPartsService','UNIVER_SLIDE','.json','_buildHttpErrorMessage','331364nZTAiY','Get\x20outputType\x20error','exchange-client.uploadSuccess','download','Method\x20not\x20implemented.','jsonID','pptx','exchange-client.tooLarge','saveSnapshot','type','match','outputType','importFileToJson','revokeObjectURL','updateState','jsxs','href','forEach','univer-flex\x20univer-h-5\x20univer-text-xl','block\x20is\x20required','UNIVER_UNKNOWN','{fileID}','_clearProgress','visible$','getSnapshot','keys',':\x20HTTP\x20','/universer-api/exchange/task/{taskID}','ErrorCode','interruptImportTask','appendChild','string','DependentOn','_getUnitDocJson','_getDisableCellImageConversion','_exchangeService','values','univer-text-blue-500','_getImportURL','univer-mt-5\x20univer-max-h-72\x20univer-overflow-y-auto\x20univer-overflow-x-hidden','import','exchange-client.uploading','_getUnitSlideJson','_doneUploadTaskCount','_requestService','18qlaack','exchange-client.internalError','link','/universer-api/exchange/{type}/export','sheetBlocks','IconManager','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','isArray','pdf','_taskInterrupted','_addDoneTask','Failed\x20to\x20parse\x20json','textEncoder','UniverLicensePlugin','toLowerCase','_state$','_export','registerLink','object','importPPTXToSnapshot','&source=','exchange-client.config','&flate=','function','_list','rev','defineProperty','resolve','exchange-client.downloading','status','_addTotalCount','transformDocumentDataToSnapshot','Error','UNIVER_SHEET','getTaskServerUrl','_showNetworkError','univer-mx-0\x20univer-mb-3\x20univer-mt-4\x20univer-h-1.5\x20univer-w-[324px]\x20univer-rounded-lg\x20univer-bg-gray-200','iterator','none','includes','ShareRangeIcon','catch','HTTPService','univer-ml-1.5\x20univer-font-semibold\x20univer-text-gray-900\x20dark:!univer-text-white','getTask','error','_messageService','b64EncodeUnicode','searchParams','has','_configService','interrupt','onStarting','UNIVER_DOC','toPrimitive','next','Subject','connectInjector','fileID','_getUploadFileURL','taskID','dispose','split','downloadFile','saveChangeset','_emitProgress','clsx','Failed\x20to\x20get\x20unitID\x20from\x20task','_getMinSheetRowCount','map','getFocusedUnit','univer-mt-3\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-2\x20univer-pr-1','UNIVER_PDF','HTTPResponseError','jsx','files','transformSnapshotToDocumentData','progress$','transformWorkbookDataToSnapshot','blockID','_buildProtocolErrorMessage','deflateSync','application/vnd.openxmlformats-officedocument.spreadsheetml.template','accept','options','_localeService','/universer-api/exchange/{type}/import','univer-h-7\x20univer-cursor-pointer\x20univer-select-none\x20univer-rounded-md\x20univer-border-0\x20univer-border-transparent\x20univer-bg-transparent\x20univer-px-2\x20univer-py-0\x20univer-text-sm\x20univer-text-primary-600\x20univer-transition-all\x20univer-duration-150\x20hover:univer-bg-primary-50','text','code','getDeserializedSheetBlock','exchange-client.downloadSuccess','workbook','_visible$','Failed\x20to\x20get\x20fileID\x20from\x20task','saveSheetBlock','minSheetRowCount','IUniverInstanceService','createObjectURL','univer-flex','exchange-client.unknownMistake','registerComponent','_uploadTaskNotDone','importXLSXToUnitId','getSheetBlocksFromSnapshot','import\x20error','textDecoder','filter','exchange-client.fileTypeError','_getUnitJson','FileId','blob','MessageType','INTERNAL_ERROR','_getSignURL','3573kEXHIR','b64DecodeUnicode','_univerInstanceService','application/vnd.openxmlformats-officedocument.wordprocessingml.document','UNRECOGNIZED','sign\x20url\x20error','disposeWithMe','trim','upload','LocaleService','_blank','BuiltInUIPart','exchange-client.networkError','toStringTag','number','currentTarget','exchange-client.uploadSuccessTip','prototype','_iconManager','default','UNIVER_EXCHANGE_CLIENT_PLUGIN','clearTaskInterrupted','body','exchange-client.uploadAgain','getConfig','floor','exportServerUrl','exchange-client.wait','getUnitOnRev','1367008Jooajp','pathname','UNIVER_BASE','scrollbarClassName','univer-fixed\x20univer-bottom-12\x20univer-right-3\x20univer-z-[1000]\x20univer-box-border\x20univer-flex\x20univer-w-[372px]\x20univer-flex-col\x20univer-rounded-md\x20univer-bg-white\x20univer-px-3\x20univer-pb-4\x20univer-pt-5\x20univer-shadow-md','univer-flex\x20univer-size-6\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-text-gray-500\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-bg-gray-600','data','xlsx','upload\x20request\x20failed','decode','Info','Failed\x20to\x20transform\x20snapshot\x20to\x20string','ignoreTableExport','downloadEndpointUrl','originalMeta','list$','_upload','univer-text-green-500','application/pdf','pending','Failed\x20to\x20get\x20text\x20from\x20url','call','register','_getTaskURL','addEventListener','importServerUrl','workbook.json','transformSnapshotToWorkbookData','_getIgnoreTableExport','_totalUploadTaskCount','importFileToUnitId','success','message','parse','_progress$','buffer','Disposable','version','UniverNetworkPlugin','862389fxorSw','univer-h-1.5\x20univer-rounded-lg\x20univer-bg-primary-600\x20univer-transition-[width]\x20univer-duration-500','signUrl','_uploadNotificationService','state$','show','_importTaskId','useObservable','complete','signUrlServerUrl','file.json','Failed\x20to\x20get\x20jsonID\x20from\x20task','_requestState$','createIdentifier','_resourceLoaderService','univer-pro.exchange-client.exchange.service','28dqgpVL','_getMinSheetColumnCount','hide','_importToJson','_getMaxPollingTime','touchDependencies','min','1706590DWsKAE','CONNECTOR_DATA_TOO_LARGE','pushLink','title','HttpImport','_refresh','export\x20error','_getUnitNameByType','?size=','_getUnitID','_logService','div','asObservable','updateSnapshot','getSheetBlock','importDOCXToUnitId','click','_registerUIParts','No\x20file\x20selected','getLatestCsReqIdBySid','setTaskInterrupted','_fileTypeError','exportDOCXByUnitId','content-disposition','add','copyFileMeta','_config','transformSnapshotJsonToWorkbookData','CloseIcon','ErrorIcon','minSheetColumnCount','symbol','docx','Plugin','_getUnitIDDoc','univer-pro.exchange-client.request.service','univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-p-0\x20univer-text-base\x20univer-text-gray-600\x20univer-outline-none\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-text-gray-200\x20dark:hover:!univer-bg-gray-600','UNDEFINED','univer-pro.exchange-client.upload-notification.service','saveUnit','SuccessIcon','436nPGCZu','ClockIcon','style','exportPPTXBySnapshot','univer-flex\x20univer-justify-between\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-px-2\x20univer-py-1\x20univer-text-gray-900\x20univer-no-underline\x20univer-outline-none\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-text-white\x20dark:hover:!univer-bg-gray-600','upload\x20failed:\x20FileId\x20is\x20empty','{taskID}','univer-text-red-500','resolveWithBasePath','Module','name','univer-m-0\x20univer-flex\x20univer-list-none\x20univer-flex-col\x20univer-gap-2\x20univer-p-0','_sheetBlockCache','length','exchange-client.interrupt','2353668bqpsBk','join','Content-Type','upload\x20failed:\x20missing\x20FileId\x20in\x20response','_list$','UniverExchangeClientPlugin','univer-pl-2\x20univer-pr-4','createUnit','replace','_getDownloadEndpointURL','univer-text-sm\x20univer-text-gray-500','_getExportURL','FileSource','_injector','pop','/universer-api/stream/file/upload','maxTimeoutTime','export','_importFileToUnitId','IExchangeOperateService','encode','Tooltip','DirectExportIcon','file.','_getLinkByUnitId','Inject','UniverInstanceType','upload\x20request\x20failed:\x20failed\x20to\x20read\x20source\x20file\x20from\x20url','_getUnitName','importFileToUnitIdByCurrentType','exportXLSXByUnitId','_refreshSlide','headers','getUnitId','registerDependencies','setConfig','IResourceLoaderService','_extractErrorDetail','_uiPartsService','disposeUnit','removeChild','_httpService','decorate','origin','_import','exportPPTXByUnitId','stringify','UNIVER_BOARD','getCurrentUnitOfType','univer-mt-5\x20univer-flex\x20univer-flex-col','Failed\x20to\x20get\x20taskID\x20from\x20import\x20response','onReady','post','useDependency','importWorkbookDataToUnitId','Error\x20fetching\x20file\x20from\x20URL:','get','_signUrl','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','set','_showDownloadMessage','constructor','CONTENT','UNIVER_PROJECT','importXLSXToSnapshot','getTextFromUrl','doc','univer-pro.exchange-client.operate.service','SheetsMultiIcon','_completeProgress','unshift','unit','application/json','IConfigService','uploadFileToUnitId','_exportBySnapshot','sheets'];_0x5a10=function(){return _0x28875f;};return _0x5a10();}(function(_0x41f7bc,_0x44f16e){const _0x2e7689=_0x344e,_0x461e64=_0x41f7bc();while(!![]){try{const _0x496e5d=parseInt(_0x2e7689(0x2b5))/0x1*(-parseInt(_0x2e7689(0x24e))/0x2)+-parseInt(_0x2e7689(0x20e))/0x3+-parseInt(_0x2e7689(0x25d))/0x4+-parseInt(_0x2e7689(0x225))/0x5*(-parseInt(_0x2e7689(0x157))/0x6)+-parseInt(_0x2e7689(0x21e))/0x7*(-parseInt(_0x2e7689(0x1e7))/0x8)+-parseInt(_0x2e7689(0x1ca))/0x9*(-parseInt(_0x2e7689(0x2b9))/0xa)+parseInt(_0x2e7689(0x2c1))/0xb;if(_0x496e5d===_0x44f16e)break;else _0x461e64['push'](_0x461e64['shift']());}catch(_0x53e136){_0x461e64['push'](_0x461e64['shift']());}}}(_0x5a10,0x8c922),Object[_0x1a80b7(0x171)](exports,Symbol[_0x1a80b7(0x1d7)],{'value':_0x1a80b7(0x257)}));let e=require('@univerjs-pro/license'),t=require('@univerjs/core'),n=require('@univerjs/network'),r=require('@univerjs/icons'),i=require('@univerjs/ui'),a=require('rxjs'),o=require('@univerjs/design'),s=require('react/jsx-runtime'),c=require('@univerjs/protocol'),l=require('@univerjs-pro/collaboration'),u=require('fflate');var d='@univerjs-pro/exchange-client',ee='1.0.0-alpha.6';const f=_0x1a80b7(0x16c),p={};function m(_0x481a01,_0x4a34fa){return function(_0xf0bdf9,_0x525269){_0x4a34fa(_0xf0bdf9,_0x525269,_0x481a01);};}function h(_0x3caf75,_0x126a2c,_0x3a95e5,_0x5477c6){const _0x156329=_0x1a80b7;var _0x923150=arguments[_0x156329(0x25b)],_0x466c80=_0x923150<0x3?_0x126a2c:_0x5477c6===null?_0x5477c6=Object['getOwnPropertyDescriptor'](_0x126a2c,_0x3a95e5):_0x5477c6,_0x36023f;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x156329(0x16e))_0x466c80=Reflect[_0x156329(0x287)](_0x3caf75,_0x126a2c,_0x3a95e5,_0x5477c6);else{for(var _0x2816f0=_0x3caf75[_0x156329(0x25b)]-0x1;_0x2816f0>=0x0;_0x2816f0--)(_0x36023f=_0x3caf75[_0x2816f0])&&(_0x466c80=(_0x923150<0x3?_0x36023f(_0x466c80):_0x923150>0x3?_0x36023f(_0x126a2c,_0x3a95e5,_0x466c80):_0x36023f(_0x126a2c,_0x3a95e5))||_0x466c80);}return _0x923150>0x3&&_0x466c80&&Object['defineProperty'](_0x126a2c,_0x3a95e5,_0x466c80),_0x466c80;}let g=class extends t[_0x1a80b7(0x20b)]{constructor(_0x3a96b0){const _0x5d4eaa=_0x1a80b7;super(),this[_0x5d4eaa(0x1dc)]=_0x3a96b0,this['_registerIcons']();}['_registerIcons'](){const _0x5c4a3e=_0x1a80b7;this[_0x5c4a3e(0x1d0)](this['_iconManager'][_0x5c4a3e(0x1fd)]({'DirectExportIcon':r[_0x5c4a3e(0x273)]}));}};g=h([m(0x0,(0x0,t['Inject'])(i[_0x1a80b7(0x15c)]))],g);function _(_0x5afd8e){'@babel/helpers - typeof';const _0x4bd035=_0x1a80b7;return _=typeof Symbol=='function'&&typeof Symbol[_0x4bd035(0x17c)]=='symbol'?function(_0x35f279){return typeof _0x35f279;}:function(_0x21aea1){const _0x2044e2=_0x4bd035;return _0x21aea1&&typeof Symbol=='function'&&_0x21aea1[_0x2044e2(0x29a)]===Symbol&&_0x21aea1!==Symbol[_0x2044e2(0x1db)]?_0x2044e2(0x244):typeof _0x21aea1;},_(_0x5afd8e);}function te(_0x2031d7,_0x3bf4d5){const _0x206958=_0x1a80b7;if(_(_0x2031d7)!=_0x206958(0x169)||!_0x2031d7)return _0x2031d7;var _0x120e5b=_0x2031d7[Symbol[_0x206958(0x18d)]];if(_0x120e5b!==void 0x0){var _0x5a1450=_0x120e5b[_0x206958(0x1fc)](_0x2031d7,_0x3bf4d5||_0x206958(0x1dd));if(_(_0x5a1450)!=_0x206958(0x169))return _0x5a1450;throw TypeError(_0x206958(0x15d));}return(_0x3bf4d5===_0x206958(0x2e0)?String:Number)(_0x2031d7);}function ne(_0x18e62e){const _0x199d42=_0x1a80b7;var _0xc1f955=te(_0x18e62e,'string');return _(_0xc1f955)==_0x199d42(0x244)?_0xc1f955:_0xc1f955+'';}function v(_0x4d0578,_0x52c49c,_0x1186d9){const _0x3560b6=_0x1a80b7;return(_0x52c49c=ne(_0x52c49c))in _0x4d0578?Object[_0x3560b6(0x171)](_0x4d0578,_0x52c49c,{'value':_0x1186d9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4d0578[_0x52c49c]=_0x1186d9,_0x4d0578;}const y=(0x0,t['createIdentifier'])(_0x1a80b7(0x24b));var b=class extends t[_0x1a80b7(0x20b)]{constructor(){const _0x1aaa31=_0x1a80b7;super(),v(this,_0x1aaa31(0x1b4),new a[(_0x1aaa31(0x18f))]()),v(this,_0x1aaa31(0x166),new a[(_0x1aaa31(0x18f))]()),v(this,_0x1aaa31(0x261),new a[(_0x1aaa31(0x18f))]()),v(this,'visible$',this[_0x1aaa31(0x1b4)][_0x1aaa31(0x231)]()),v(this,_0x1aaa31(0x212),this[_0x1aaa31(0x166)][_0x1aaa31(0x231)]()),v(this,_0x1aaa31(0x1f6),this[_0x1aaa31(0x261)][_0x1aaa31(0x231)]()),v(this,_0x1aaa31(0x16f),[]);}['dispose'](){const _0xd98e60=_0x1a80b7;super[_0xd98e60(0x194)](),this[_0xd98e60(0x1b4)][_0xd98e60(0x216)](),this[_0xd98e60(0x166)][_0xd98e60(0x216)](),this[_0xd98e60(0x261)][_0xd98e60(0x216)]();}[_0x1a80b7(0x213)](){const _0x4637cc=_0x1a80b7;this[_0x4637cc(0x1b4)][_0x4637cc(0x18e)](!0x0);}[_0x1a80b7(0x220)](){const _0x266d4d=_0x1a80b7;this[_0x266d4d(0x1b4)][_0x266d4d(0x18e)](!0x1);}[_0x1a80b7(0x2cf)](_0x4274db){const _0x559c3e=_0x1a80b7;this[_0x559c3e(0x166)][_0x559c3e(0x18e)](_0x4274db);}[_0x1a80b7(0x227)](_0x3f165d){const _0x930207=_0x1a80b7;this['_list'][_0x930207(0x2a3)](_0x3f165d),this[_0x930207(0x261)][_0x930207(0x18e)](this['_list']);}};function re(_0x1c1391){const _0x5ed4cb=_0x1a80b7;let {list:_0x1f27fc}=_0x1c1391;function _0x36e55c(_0x31b5cf){const _0x504f82=_0x344e;switch(_0x31b5cf){case 0x1:return(0x0,s[_0x504f82(0x1a1)])(r['DocsMultiIcon'],{});case 0x2:return(0x0,s[_0x504f82(0x1a1)])(r[_0x504f82(0x2a1)],{});case 0x3:return(0x0,s['jsx'])(r['SlidesMultiIcon'],{});default:return null;}}return(0x0,s[_0x5ed4cb(0x1a1)])(_0x5ed4cb(0x230),{'className':(0x0,o['clsx'])(_0x5ed4cb(0x151),o[_0x5ed4cb(0x1ea)]),'children':(0x0,s[_0x5ed4cb(0x1a1)])('ul',{'className':_0x5ed4cb(0x259),'children':_0x1f27fc[_0x5ed4cb(0x19c)]((_0x22c62a,_0x3f6471)=>(0x0,s[_0x5ed4cb(0x1a1)])('li',{'children':(0x0,s[_0x5ed4cb(0x2d0)])('a',{'className':_0x5ed4cb(0x252),'href':_0x22c62a[_0x5ed4cb(0x159)],'target':_0x5ed4cb(0x1d4),'rel':'noreferrer','children':[(0x0,s[_0x5ed4cb(0x2d0)])('span',{'className':'univer-flex\x20univer-w-[calc(100%-48px)]\x20univer-items-center','children':[(0x0,s[_0x5ed4cb(0x1a1)])(_0x5ed4cb(0x2b0),{'className':_0x5ed4cb(0x2d3),'children':_0x36e55c(_0x22c62a[_0x5ed4cb(0x2ca)])}),(0x0,s['jsx'])(o[_0x5ed4cb(0x272)],{'showIfEllipsis':!0x0,'title':_0x22c62a['name'],'asChild':!0x0,'children':(0x0,s['jsx'])(_0x5ed4cb(0x2b0),{'className':'univer-ml-1\x20univer-truncate\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','children':_0x22c62a['name']})})]}),(0x0,s[_0x5ed4cb(0x1a1)])(_0x5ed4cb(0x2b0),{'className':_0x5ed4cb(0x249),'children':(0x0,s[_0x5ed4cb(0x1a1)])(r[_0x5ed4cb(0x17f)],{})})]})},_0x3f6471))})});}const x=_0x1a80b7(0x1cd),S=_0x1a80b7(0x297),C='application/vnd.ms-excel.sheet.macroEnabled.12',w=_0x1a80b7(0x1a9),T='application/vnd.openxmlformats-officedocument.presentationml.presentation',E=_0x1a80b7(0x1f9),D={[t[_0x1a80b7(0x277)][_0x1a80b7(0x2d5)]]:[''],[t[_0x1a80b7(0x277)][_0x1a80b7(0x18c)]]:[x],[t[_0x1a80b7(0x277)]['UNIVER_SHEET']]:[S,C,w],[t[_0x1a80b7(0x277)][_0x1a80b7(0x2be)]]:[T],[t['UniverInstanceType'][_0x1a80b7(0x1e9)]]:[''],[t['UniverInstanceType'][_0x1a80b7(0x28c)]]:[''],[t[_0x1a80b7(0x277)][_0x1a80b7(0x29c)]]:[''],[t['UniverInstanceType'][_0x1a80b7(0x19f)]]:[E],[t['UniverInstanceType'][_0x1a80b7(0x1ce)]]:['']},O={[x]:_0x1a80b7(0x245),[S]:_0x1a80b7(0x1ee),[C]:'xlsm',[w]:'xltx',[T]:'pptx',[E]:_0x1a80b7(0x15f)};function k(_0x4abe12,_0x429755,_0x57da4f){const _0x2327ef=_0x1a80b7;let _0x38828b=document['createElement']('a');_0x38828b[_0x2327ef(0x2d1)]=_0x4abe12,_0x38828b[_0x2327ef(0x250)][_0x2327ef(0x2ba)]=_0x2327ef(0x17d),_0x38828b[_0x2327ef(0x2c4)]=_0x429755+'.'+_0x57da4f,document[_0x2327ef(0x1e0)][_0x2327ef(0x2df)](_0x38828b),_0x38828b[_0x2327ef(0x235)](),document[_0x2327ef(0x1e0)][_0x2327ef(0x285)](_0x38828b);}function A(_0x3f96c8,_0x201863,_0x190649){const _0x465b0b=_0x1a80b7;let _0x8fae76=URL[_0x465b0b(0x1b9)](_0x3f96c8);k(_0x8fae76,_0x201863,_0x190649),URL[_0x465b0b(0x2ce)](_0x8fae76);}function j(_0x450a51){const _0x4c326b=_0x1a80b7;let _0x5a8268=_0x450a51[_0x4c326b(0x258)][_0x4c326b(0x195)]('.')[_0x4c326b(0x26b)]();if(!_0x5a8268)return t[_0x4c326b(0x277)][_0x4c326b(0x2d5)];let _0x37e1a3=ie(),_0x279145=t['UniverInstanceType'][_0x4c326b(0x2d5)];return _0x37e1a3['some'](_0x493a4d=>ae(_0x5a8268,_0x493a4d)?(_0x279145=_0x493a4d,!0x0):!0x1),_0x279145;}function ie(){const _0x17ab91=_0x1a80b7;return Object[_0x17ab91(0x2e5)](t['UniverInstanceType'])[_0x17ab91(0x1c2)](_0xd70540=>typeof _0xd70540==_0x17ab91(0x1d8));}function ae(_0x31446d,_0x3be4e9){const _0x3e6084=_0x1a80b7;var _0x492a5b;return((_0x492a5b=D[_0x3be4e9])==null?[]:_0x492a5b)['map'](_0x3b93c5=>(O[_0x3b93c5]||'')[_0x3e6084(0x165)]())[_0x3e6084(0x17e)](_0x31446d['toLowerCase']());}function M(_0x3fa2ef,_0x3c52c2=!0x1){const _0x35061a=_0x1a80b7;let _0x6071ea=_0x3fa2ef['map'](_0x3e2489=>{var _0x18ec9b;return(_0x18ec9b=D[_0x3e2489])==null?[]:_0x18ec9b;})[_0x35061a(0x25e)](',');return new Promise((_0x448d2d,_0x343cb0)=>{const _0x4d9477=_0x35061a;let _0x292d0c=document['createElement'](_0x4d9477(0x2bb));_0x292d0c[_0x4d9477(0x2ca)]=_0x4d9477(0x2b2),_0x292d0c[_0x4d9477(0x1aa)]=_0x6071ea,_0x292d0c['multiple']=_0x3c52c2,_0x292d0c[_0x4d9477(0x1ff)]('change',_0x4e7305=>{const _0x2bdaa8=_0x4d9477;let _0x419b2c=_0x4e7305[_0x2bdaa8(0x1d9)];if(!_0x419b2c[_0x2bdaa8(0x1a2)]||_0x419b2c[_0x2bdaa8(0x1a2)][_0x2bdaa8(0x25b)]===0x0)throw _0x343cb0(null),Error(_0x2bdaa8(0x237));_0x448d2d(_0x419b2c[_0x2bdaa8(0x1a2)]);}),_0x292d0c[_0x4d9477(0x235)]();});}async function N(_0x7e9c72,_0x4df570){const _0x5a4671=_0x1a80b7;try{var _0x23d1fe,_0x2ec3a4,_0x42282b;let _0x288e3c=await _0x4df570['get'](_0x7e9c72,{'responseType':_0x5a4671(0x1c6)}),_0x1346a7=_0x288e3c[_0x5a4671(0x1e0)],_0x1b72ec=(_0x23d1fe=(_0x2ec3a4=_0x288e3c[_0x5a4671(0x27d)][_0x5a4671(0x295)](_0x5a4671(0x25f)))==null?void 0x0:_0x2ec3a4['join'](',\x20'))==null?'application/octet-stream':_0x23d1fe,_0x593fc9=_0x5a4671(0x274)+(O[_0x1b72ec]||_0x5a4671(0x1ee)),_0x559a96=(_0x42282b=_0x288e3c['headers']['get'](_0x5a4671(0x23c)))==null?void 0x0:_0x42282b['join'](',\x20');if(_0x559a96){let _0x2639dc=_0x559a96[_0x5a4671(0x2cb)](/filename=(.+)/);_0x2639dc&&_0x2639dc[0x1]&&(_0x593fc9=_0x2639dc[0x1]);}else _0x593fc9=oe(_0x7e9c72)||_0x593fc9;return new File([_0x1346a7],_0x593fc9,{'type':_0x1b72ec});}catch(_0x18083b){console[_0x5a4671(0x184)](_0x5a4671(0x294),_0x18083b);return;}}function oe(_0x5e43a1){const _0x52aba2=_0x1a80b7;try{return new URL(_0x5e43a1)[_0x52aba2(0x1e8)]['split']('/')[_0x52aba2(0x26b)]();}catch(_0x179d0f){console['error']('Error\x20getting\x20file\x20name\x20from\x20URL:',_0x179d0f);return;}}function se(_0x158010){const _0x517b0c=_0x1a80b7;let _0x116339=new Blob([_0x158010[_0x517b0c(0x20a)]],{'type':_0x517b0c(0x2a5)});return new File([_0x116339],_0x517b0c(0x218));}function P(_0x340fb2,_0x14b33e){const _0x40d355=_0x1a80b7;return _0x340fb2[_0x40d355(0x265)]('{type}',_0x14b33e);}function ce(_0x5f352f,_0x31b4dc){const _0x38510b=_0x1a80b7;return _0x5f352f[_0x38510b(0x265)](_0x38510b(0x254),_0x31b4dc);}function le(_0x1cb58c,_0x24f1fb){const _0x17c750=_0x1a80b7;return _0x1cb58c[_0x17c750(0x265)](_0x17c750(0x2d6),_0x24f1fb);}const F=(0x0,t['createIdentifier'])(_0x1a80b7(0x248));let I=class{constructor(_0x51a313,_0x4b6267){const _0x5e07ac=_0x1a80b7;this[_0x5e07ac(0x189)]=_0x51a313,this['_httpService']=_0x4b6267,v(this,'_taskInterrupted',new Set());}[_0x1a80b7(0x194)](){}[_0x1a80b7(0x239)](_0x39a6ad){const _0x44f516=_0x1a80b7;this[_0x44f516(0x160)][_0x44f516(0x23d)](_0x39a6ad);}[_0x1a80b7(0x1df)](){const _0x5ce917=_0x1a80b7;this[_0x5ce917(0x160)]['clear']();}async[_0x1a80b7(0x1d2)](_0x235fe8,_0x2345cd=0x0,_0xfb84cd=!0x1){const _0x14917b=_0x1a80b7;if(typeof _0x235fe8=='string'){let _0x528df0=await N(_0x235fe8,this[_0x14917b(0x286)]);if(!_0x528df0)throw Error(_0x14917b(0x278));_0x235fe8=_0x528df0;}_0x2345cd=_0x2345cd||_0x235fe8['size'];let _0x49f861=new FormData();_0x49f861[_0x14917b(0x2ad)](_0x14917b(0x2b2),_0x235fe8);try{let _0x5829ce=this[_0x14917b(0x192)]()+_0x14917b(0x22d)+_0x2345cd+_0x14917b(0x16b)+c[_0x14917b(0x269)][_0x14917b(0x229)]+_0x14917b(0x16d)+_0xfb84cd,_0x5422ac={'body':_0x49f861},_0x23c50d=(await this[_0x14917b(0x286)][_0x14917b(0x291)](_0x5829ce,_0x5422ac))['body'];if(_0x23c50d[_0x14917b(0x184)]&&_0x23c50d[_0x14917b(0x184)][_0x14917b(0x1b0)]!==c[_0x14917b(0x2dd)]['OK'])throw Error(this['_buildProtocolErrorMessage']('upload\x20request\x20failed',_0x23c50d[_0x14917b(0x184)]));return _0x23c50d;}catch(_0x218ca5){throw _0x218ca5 instanceof Error?_0x218ca5:Error(this[_0x14917b(0x2c0)](_0x14917b(0x1ef),_0x218ca5));}}async[_0x1a80b7(0x152)](_0x1f86bf){const _0x43350b=_0x1a80b7;let {fileID:_0x1cff86,type:_0x1c45cd,outputType:_0x4fd7a0,minSheetColumnCount:_0x2493bf,minSheetRowCount:_0x47d33e}=_0x1f86bf;try{let _0x8647e5=P(this[_0x43350b(0x2e7)](),''+_0x1c45cd),_0x116651={'body':{'fileID':_0x1cff86,'outputType':_0x4fd7a0,'minSheetColumnCount':_0x2493bf,'minSheetRowCount':_0x47d33e}},_0x194e20=(await this[_0x43350b(0x286)][_0x43350b(0x291)](_0x8647e5,_0x116651))['body'];return _0x194e20[_0x43350b(0x184)]&&_0x194e20[_0x43350b(0x184)]['code']!==c[_0x43350b(0x2dd)]['OK']?void 0x0:_0x194e20;}catch{return;}}async[_0x1a80b7(0x26e)](_0x3ca93a){const _0x104e21=_0x1a80b7;let {unitID:_0x109652,jsonID:_0x12609f,type:_0x590940,useImageUrl:_0x3ffb80,ignoreTableExport:_0x18ae29}=_0x3ca93a;try{let _0x171d19=P(this['_getExportURL'](),''+_0x590940),_0x5902d2={'body':{'unitID':_0x109652,'jsonID':_0x12609f,'type':_0x590940,'useImageUrl':_0x3ffb80,'ignoreTableExport':_0x18ae29}},_0xfabb84=(await this[_0x104e21(0x286)]['post'](_0x171d19,_0x5902d2))[_0x104e21(0x1e0)];return _0xfabb84[_0x104e21(0x184)]&&_0xfabb84[_0x104e21(0x184)]['code']!==c[_0x104e21(0x2dd)]['OK']?void 0x0:_0xfabb84;}catch{return;}}async['getTask'](_0x38d3dc){return new Promise((_0x2b94d7,_0x506ee1)=>{const _0x5a6541=_0x344e;try{let _0x5d48e5=0x0,_0x5c4d3=ce(this[_0x5a6541(0x1fe)](),''+_0x38d3dc),_0x1db5af=this[_0x5a6541(0x222)](),_0x5da289=async()=>{const _0x3b88ea=_0x5a6541;if(this[_0x3b88ea(0x160)][_0x3b88ea(0x188)](_0x38d3dc))return;let _0x532ab3=(await this[_0x3b88ea(0x286)][_0x3b88ea(0x295)](_0x5c4d3))[_0x3b88ea(0x1e0)];if(_0x532ab3[_0x3b88ea(0x184)]&&_0x532ab3[_0x3b88ea(0x184)][_0x3b88ea(0x1b0)]===c[_0x3b88ea(0x2dd)]['OK']){if(_0x532ab3[_0x3b88ea(0x174)]==='done')_0x2b94d7(_0x532ab3);else{if(_0x532ab3[_0x3b88ea(0x174)]===_0x3b88ea(0x1fa)){let _0x33dacf=0x3e8;if(_0x5d48e5>=_0x1db5af){_0x506ee1(_0x532ab3);return;}else _0x5d48e5>=0x7530&&(_0x33dacf=0x1388);_0x5d48e5+=_0x33dacf,setTimeout(_0x5da289,_0x33dacf);}else _0x506ee1(_0x532ab3);}}else _0x506ee1(_0x532ab3);};_0x5da289();}catch(_0x4b13d4){_0x506ee1(_0x4b13d4 instanceof Error?_0x4b13d4:Error(String(_0x4b13d4)));}});}async['signUrl'](_0x5807a7){const _0x2c73d4=_0x1a80b7;try{let _0x2c71a1=le(this[_0x2c73d4(0x1c9)](),''+_0x5807a7);return(await this[_0x2c73d4(0x286)][_0x2c73d4(0x295)](_0x2c71a1))[_0x2c73d4(0x1e0)];}catch{return;}}async[_0x1a80b7(0x29e)](_0x14dab){const _0x40e0f3=_0x1a80b7;try{return(await this['_httpService'][_0x40e0f3(0x295)](_0x14dab,{'responseType':_0x40e0f3(0x1af)}))[_0x40e0f3(0x1e0)];}catch{return;}}[_0x1a80b7(0x1a7)](_0x12b006,_0x365ae1){const _0x4f116c=_0x1a80b7;let _0x4059a0=this[_0x4f116c(0x282)](_0x365ae1);return _0x4059a0?_0x12b006+':\x20'+_0x4059a0:_0x12b006;}[_0x1a80b7(0x2c0)](_0x26f1f1,_0x32e45e){const _0x3c04da=_0x1a80b7;if(_0x32e45e instanceof n[_0x3c04da(0x1a0)]){let _0xf9cac9=typeof _0x32e45e[_0x3c04da(0x174)]==_0x3c04da(0x1d8)?''+_0x32e45e[_0x3c04da(0x174)]+(_0x32e45e['statusText']?'\x20'+_0x32e45e['statusText']:''):void 0x0,_0x54d871=this[_0x3c04da(0x282)](_0x32e45e[_0x3c04da(0x184)]);return _0xf9cac9&&_0x54d871?_0x26f1f1+_0x3c04da(0x2db)+_0xf9cac9+'\x20-\x20'+_0x54d871:_0xf9cac9?_0x26f1f1+_0x3c04da(0x2db)+_0xf9cac9:_0x54d871?_0x26f1f1+':\x20'+_0x54d871:_0x26f1f1;}let _0x285703=this[_0x3c04da(0x282)](_0x32e45e);return _0x285703?_0x26f1f1+':\x20'+_0x285703:_0x26f1f1;}[_0x1a80b7(0x282)](_0x27d785){const _0x86a80f=_0x1a80b7;if(typeof _0x27d785==_0x86a80f(0x2e0)){let _0x1b55ba=_0x27d785[_0x86a80f(0x1d1)]();return _0x1b55ba[_0x86a80f(0x25b)]>0x0?_0x1b55ba:void 0x0;}if(_0x27d785 instanceof Error)return this['_extractErrorDetail'](_0x27d785[_0x86a80f(0x207)]);if(!_0x27d785||typeof _0x27d785!=_0x86a80f(0x169)||Array[_0x86a80f(0x15e)](_0x27d785))return;let _0x544dce=_0x27d785,_0x19d907=this[_0x86a80f(0x282)](_0x544dce[_0x86a80f(0x207)]);if(_0x19d907)return _0x19d907;if(_0x544dce[_0x86a80f(0x184)]&&typeof _0x544dce[_0x86a80f(0x184)]==_0x86a80f(0x169)&&!Array['isArray'](_0x544dce['error'])){let _0x584fd5=this['_extractErrorDetail'](_0x544dce['error']);if(_0x584fd5)return _0x584fd5;}}['_getUploadFileURL'](){const _0x3593e4=_0x1a80b7;var _0x552839;let _0x3e59a0=this['_configService']['getConfig'](f);return(_0x552839=_0x3e59a0==null?void 0x0:_0x3e59a0['uploadFileServerUrl'])==null?_0x3593e4(0x26c):_0x552839;}[_0x1a80b7(0x2e7)](){const _0x3bd53d=_0x1a80b7;var _0x279c8c;let _0x11a280=this['_configService'][_0x3bd53d(0x1e2)](f);return(_0x279c8c=_0x11a280==null?void 0x0:_0x11a280[_0x3bd53d(0x200)])==null?_0x3bd53d(0x1ad):_0x279c8c;}[_0x1a80b7(0x268)](){const _0x429f93=_0x1a80b7;var _0x10e580;let _0x4d1b8b=this[_0x429f93(0x189)][_0x429f93(0x1e2)](f);return(_0x10e580=_0x4d1b8b==null?void 0x0:_0x4d1b8b[_0x429f93(0x1e4)])==null?_0x429f93(0x15a):_0x10e580;}[_0x1a80b7(0x1fe)](){const _0x394260=_0x1a80b7;var _0x1cc0f6;let _0x4135ab=this['_configService']['getConfig'](f);return(_0x1cc0f6=_0x4135ab==null?void 0x0:_0x4135ab[_0x394260(0x179)])==null?_0x394260(0x2dc):_0x1cc0f6;}[_0x1a80b7(0x1c9)](){const _0x584001=_0x1a80b7;var _0x45ca33;let _0x498fcd=this[_0x584001(0x189)][_0x584001(0x1e2)](f);return(_0x45ca33=_0x498fcd==null?void 0x0:_0x498fcd[_0x584001(0x217)])==null?'/universer-api/file/{fileID}/sign-url':_0x45ca33;}['_getMaxPollingTime'](){const _0x167af2=_0x1a80b7;var _0xf015d6;let _0x196e4c=this[_0x167af2(0x189)][_0x167af2(0x1e2)](f);return(_0xf015d6=_0x196e4c==null?void 0x0:_0x196e4c[_0x167af2(0x26d)])==null?0x1d4c0:_0xf015d6;}};I=h([m(0x0,t[_0x1a80b7(0x2a6)]),m(0x1,(0x0,t['Inject'])(n[_0x1a80b7(0x181)]))],I);function L(_0x39df7c){const _0x47ec4f=_0x1a80b7;let _0x50320c=_0x39df7c[_0x47ec4f(0x1b3)];if(!_0x50320c)return null;let _0x1a289f={};_0x50320c[_0x47ec4f(0x2a9)]&&Object['keys'](_0x50320c[_0x47ec4f(0x2a9)])[_0x47ec4f(0x2d2)](_0x54ea99=>{const _0x31f5bf=_0x47ec4f;let _0xceed43=_0x50320c[_0x31f5bf(0x2a9)][_0x54ea99];_0x1a289f[_0x54ea99]={..._0xceed43,'originalMeta':(0x0,l[_0x31f5bf(0x186)])(l[_0x31f5bf(0x1c1)][_0x31f5bf(0x1f0)](_0xceed43['originalMeta']))};});let _0x50fc1b=(0x0,l[_0x47ec4f(0x186)])(l['textDecoder'][_0x47ec4f(0x1f0)](_0x50320c[_0x47ec4f(0x1f5)]));return{..._0x39df7c,'workbook':{..._0x50320c,'originalMeta':_0x50fc1b,'sheets':_0x1a289f},'doc':{},'slide':void 0x0,'board':void 0x0};}function R(_0x33df6c){const _0xf74994=_0x1a80b7;let _0x5d6eff=_0x33df6c[_0xf74994(0x29f)];if(!_0x5d6eff)return null;let _0x52b4c9=(0x0,l[_0xf74994(0x186)])(l[_0xf74994(0x1c1)][_0xf74994(0x1f0)](_0x5d6eff['originalMeta']));return{..._0x33df6c,'workbook':{},'doc':{..._0x5d6eff,'originalMeta':_0x52b4c9},'slide':void 0x0,'board':void 0x0};}function z(_0x288a69){const _0x2ff971=_0x1a80b7;var _0x253ce2;let _0x557f94=(_0x253ce2=_0x288a69['slide'])==null?_0x288a69[_0x2ff971(0x29f)]:_0x253ce2;if(!_0x557f94)return null;let _0x4418d4=typeof _0x557f94[_0x2ff971(0x1f5)]==_0x2ff971(0x2e0)?_0x557f94[_0x2ff971(0x1f5)]:(0x0,l[_0x2ff971(0x186)])(l[_0x2ff971(0x1c1)]['decode'](_0x557f94[_0x2ff971(0x1f5)]));return{..._0x288a69,'workbook':{},'doc':{},'slide':{..._0x557f94,'originalMeta':_0x4418d4},'board':void 0x0};}function B(_0x3ee24d){const _0x443a7c=_0x1a80b7;let _0x2760d7={};return _0x3ee24d[_0x443a7c(0x2d2)](_0x2383dd=>{const _0x4acf9f=_0x443a7c;_0x2760d7[_0x2383dd['id']]={..._0x2383dd,'data':(0x0,l['b64EncodeUnicode'])(l['textDecoder'][_0x4acf9f(0x1f0)](_0x2383dd[_0x4acf9f(0x1ed)]))};}),_0x2760d7;}async function V(_0x1b405b){const _0x40c8f8=_0x1a80b7;var _0x1f7cd1;let _0x436baa={'metadata':void 0x0},_0x12e12b=_0x1b405b['id'],_0x5b09d8=(_0x1f7cd1=_0x1b405b['rev'])==null?0x0:_0x1f7cd1,_0x108231=new W(),{snapshot:_0x4d0ffa}=await(0x0,l['transformWorkbookDataToSnapshot'])(_0x436baa,_0x1b405b,_0x12e12b,_0x5b09d8,_0x108231),_0x2ad3c0=await(0x0,l[_0x40c8f8(0x1bf)])(_0x4d0ffa,_0x108231),_0x5c328d=L(_0x4d0ffa);if(!_0x5c328d)throw Error(_0x40c8f8(0x1f2));return{'snapshot':_0x5c328d,'sheetBlocks':B(_0x2ad3c0)};}async function H(_0x16f6f7){const _0x332a4a=_0x1a80b7;var _0x3428ff;let _0x458cc1={'metadata':void 0x0},_0x636b28=_0x16f6f7['id'],{snapshot:_0x5a6371}=await(0x0,l[_0x332a4a(0x176)])(_0x458cc1,_0x16f6f7,_0x636b28,(_0x3428ff=_0x16f6f7[_0x332a4a(0x170)])==null?0x0:_0x3428ff,new W()),_0x5d35c4=R(_0x5a6371);if(!_0x5d35c4)throw Error(_0x332a4a(0x1f2));return{'snapshot':_0x5d35c4,'sheetBlocks':{}};}async function U(_0x41b8cc){const _0x13d8ed=_0x1a80b7;var _0x1049dc;let _0x5cb959=_0x41b8cc['id'],_0x9d7931=(_0x1049dc=_0x41b8cc[_0x13d8ed(0x170)])==null?0x0:_0x1049dc,_0x4770e7=new W(),{snapshot:_0x176ecd}=await(0x0,l[_0x13d8ed(0x2b3)])(_0x41b8cc['resources'],_0x41b8cc,_0x5cb959,_0x9d7931,_0x4770e7),_0x3ae9ff=z(_0x176ecd);if(!_0x3ae9ff)throw Error(_0x13d8ed(0x1f2));return{'snapshot':_0x3ae9ff,'sheetBlocks':{}};}async function ue(_0x1c0164){const _0x5f2667=_0x1a80b7;let _0x149aac=_0x1c0164[_0x5f2667(0x2af)],_0x79545d=_0x1c0164['sheetBlocks']||{};return await(0x0,l[_0x5f2667(0x202)])(_0x149aac,Object[_0x5f2667(0x2da)](_0x79545d)['map'](_0x3c83b8=>_0x79545d[_0x3c83b8])[_0x5f2667(0x19c)](_0x1b6d99=>({..._0x1b6d99,'data':_0x1b6d99[_0x5f2667(0x1ed)]?JSON['parse']((0x0,l[_0x5f2667(0x1cb)])(_0x1b6d99['data'])):void 0x0})));}function de(_0x45dd18){const _0x5615fc=_0x1a80b7;let _0x5bf6ea=_0x45dd18[_0x5615fc(0x2af)];return(0x0,l[_0x5615fc(0x1a3)])(_0x5bf6ea);}function fe(_0x57d157){let _0x2d26e7=_0x57d157['snapshot'];return(0x0,l['transformSnapshotToSlideData'])(_0x2d26e7);}var W=class{constructor(){const _0x55a844=_0x1a80b7;v(this,_0x55a844(0x25a),new Map());}[_0x1a80b7(0x1e6)](){const _0x10c2b6=_0x1a80b7;return Promise[_0x10c2b6(0x172)]({'snapshot':{'unitID':'','type':t[_0x10c2b6(0x277)][_0x10c2b6(0x178)],'rev':0x0,'workbook':void 0x0,'doc':void 0x0,'slide':void 0x0,'board':void 0x0},'changesets':[],'error':{'code':c[_0x10c2b6(0x2dd)]['OK'],'message':''}});}[_0x1a80b7(0x233)](_0x3f18ad,_0x2ff5f0){const _0x5dcf71=_0x1a80b7;let _0x1ce104=this[_0x5dcf71(0x25a)][_0x5dcf71(0x295)](_0x2ff5f0[_0x5dcf71(0x1a6)]);return Promise[_0x5dcf71(0x172)]({'block':_0x1ce104,'error':{'code':c['ErrorCode']['OK'],'message':''}});}[_0x1a80b7(0x1b1)](_0x4e7f85,_0xa8f6ac){const _0x5862df=_0x1a80b7;let _0x36240b=this[_0x5862df(0x25a)][_0x5862df(0x295)](_0xa8f6ac[_0x5862df(0x1a6)]);return Promise[_0x5862df(0x172)]({'block':_0x36240b===void 0x0?void 0x0:{..._0x36240b,'data':JSON[_0x5862df(0x208)](l[_0x5862df(0x1c1)][_0x5862df(0x1f0)](_0x36240b[_0x5862df(0x1ed)]))},'error':{'code':c[_0x5862df(0x2dd)]['OK'],'message':''}});}['fetchMissingChangesets'](){const _0x492149=_0x1a80b7;return Promise[_0x492149(0x172)]({'changesets':[],'error':{'code':c[_0x492149(0x2dd)]['OK'],'message':''}});}['getResourcesRequest'](){const _0x468700=_0x1a80b7;return Promise[_0x468700(0x172)]({'resources':{},'error':{'code':c[_0x468700(0x2dd)]['OK'],'message':''}});}[_0x1a80b7(0x2c9)](){const _0x37e1fb=_0x1a80b7;return Promise[_0x37e1fb(0x172)]({'error':{'code':c[_0x37e1fb(0x2dd)]['OK'],'message':''}});}[_0x1a80b7(0x232)](){const _0x7753c3=_0x1a80b7;return Promise['resolve']({'error':{'code':c[_0x7753c3(0x2dd)]['OK'],'message':''}});}[_0x1a80b7(0x1b6)](_0x10fa5e,_0x2cc264){const _0x23efba=_0x1a80b7;let {block:_0x346c6c}=_0x2cc264;return _0x346c6c?(this[_0x23efba(0x25a)]['set'](_0x346c6c['id'],_0x346c6c),Promise[_0x23efba(0x172)]({'error':{'code':c[_0x23efba(0x2dd)]['OK'],'message':''},'blockID':_0x346c6c['id']})):Promise[_0x23efba(0x172)]({'error':{'code':c[_0x23efba(0x2dd)][_0x23efba(0x24a)],'message':_0x23efba(0x2d4)},'blockID':''});}[_0x1a80b7(0x197)](){const _0x1c11e0=_0x1a80b7;return Promise[_0x1c11e0(0x172)]({'error':{'code':c[_0x1c11e0(0x2dd)]['OK'],'message':''},'concurrent':[]});}[_0x1a80b7(0x23e)](){const _0x114d4e=_0x1a80b7;return Promise[_0x114d4e(0x172)]({'error':void 0x0,'fileMetaId':''});}[_0x1a80b7(0x238)](){const _0x3d1deb=_0x1a80b7;return Promise[_0x3d1deb(0x172)]({'error':void 0x0,'latestReqID':0x0});}};function _0x344e(_0x5e089f,_0x1203f4){_0x5e089f=_0x5e089f-0x151;const _0x5a1042=_0x5a10();let _0x344e2b=_0x5a1042[_0x5e089f];return _0x344e2b;}const G=(0x0,t[_0x1a80b7(0x21b)])(_0x1a80b7(0x21d));let K=class extends t['Disposable']{constructor(_0x4a791c,_0x21ed01,_0x258ae0){const _0x529b51=_0x1a80b7;super(),this[_0x529b51(0x189)]=_0x4a791c,this[_0x529b51(0x286)]=_0x21ed01,this['_requestService']=_0x258ae0,v(this,_0x529b51(0x214),null),v(this,_0x529b51(0x21a),new a[(_0x529b51(0x18f))]()),v(this,'requestState$',this[_0x529b51(0x21a)][_0x529b51(0x231)]());}['dispose'](){const _0x276a45=_0x1a80b7;super['dispose'](),this[_0x276a45(0x21a)]['complete']();}['downloadFile'](_0x2f65cf,_0x33c125,_0x19c97f){const _0x16f44e=_0x1a80b7;let _0x374390=URL[_0x16f44e(0x1b9)](_0x2f65cf);k(_0x374390,_0x33c125,_0x19c97f),URL[_0x16f44e(0x2ce)](_0x374390);}async[_0x1a80b7(0x240)](_0x5502f5){const _0x2bf724=_0x1a80b7;let _0x512b5a=_0x5502f5[_0x2bf724(0x2af)],_0xdb4cd7=_0x5502f5[_0x2bf724(0x15b)]||{};return(0x0,l['transformSnapshotToWorkbookData'])(_0x512b5a,Object[_0x2bf724(0x2da)](_0xdb4cd7)['map'](_0x43e9e4=>_0xdb4cd7[_0x43e9e4])[_0x2bf724(0x19c)](_0xa216b=>({..._0xa216b,'data':_0xa216b[_0x2bf724(0x1ed)]?JSON[_0x2bf724(0x208)]((0x0,l[_0x2bf724(0x1cb)])(_0xa216b['data'])):void 0x0})));}async['transformWorkbookDataToSnapshotJson'](_0x2fdcf2){const _0x5dfedf=_0x1a80b7;var _0x5e5ceb;let _0x9243a={'metadata':void 0x0},_0x5c0d28=_0x2fdcf2['id'],_0x42be03=(_0x5e5ceb=_0x2fdcf2[_0x5dfedf(0x170)])==null?0x0:_0x5e5ceb,_0x36f792=new W(),{snapshot:_0x4d4f36}=await(0x0,l[_0x5dfedf(0x1a5)])(_0x9243a,_0x2fdcf2,_0x5c0d28,_0x42be03,_0x36f792),_0x449d36=await(0x0,l[_0x5dfedf(0x1bf)])(_0x4d4f36,_0x36f792),_0x37d3f5=L(_0x4d4f36);if(!_0x37d3f5)throw Error(_0x5dfedf(0x1f2));return{'snapshot':_0x37d3f5,'sheetBlocks':B(_0x449d36)};}async[_0x1a80b7(0x2bc)](_0x4e0ca8){const _0x427c25=_0x1a80b7;let _0x280ea5=await this['importFileToJson'](_0x4e0ca8,t['UniverInstanceType'][_0x427c25(0x18c)]);if(!_0x280ea5||!_0x280ea5[_0x427c25(0x2af)])return;let _0x9ed1c8=de(_0x280ea5);if(_0x9ed1c8)return _0x9ed1c8;}async['exportDOCXByUnitId'](_0x4eba6c){const _0x5f58c7=_0x1a80b7;return this[_0x5f58c7(0x167)](_0x4eba6c,0x1,t['UniverInstanceType']['UNIVER_DOC']);}async[_0x1a80b7(0x2b8)](_0x334abb){const _0x2de7f5=_0x1a80b7;let _0x10ef42=await H(_0x334abb);return this[_0x2de7f5(0x2a8)](_0x10ef42,t['UniverInstanceType'][_0x2de7f5(0x18c)]);}async[_0x1a80b7(0x16a)](_0x1634c2){const _0x3a7b07=_0x1a80b7;let _0x2cfd69=await this[_0x3a7b07(0x2cd)](_0x1634c2,t['UniverInstanceType']['UNIVER_SLIDE']);if(!(!_0x2cfd69||!_0x2cfd69[_0x3a7b07(0x2af)]))return fe(_0x2cfd69);}async['exportPPTXByUnitId'](_0x198029){const _0x578b88=_0x1a80b7;return this[_0x578b88(0x167)](_0x198029,0x1,t[_0x578b88(0x277)][_0x578b88(0x2be)]);}async[_0x1a80b7(0x251)](_0x21d9d5){const _0x4a6588=_0x1a80b7;let _0x2c5270=await U(_0x21d9d5);return this[_0x4a6588(0x2a8)](_0x2c5270,t[_0x4a6588(0x277)]['UNIVER_SLIDE']);}async[_0x1a80b7(0x29d)](_0x1b6c1e){const _0x4e2f03=_0x1a80b7;let _0x13ef83=await this['importFileToJson'](_0x1b6c1e,t[_0x4e2f03(0x277)][_0x4e2f03(0x178)]);if(!_0x13ef83)return;let _0x3be0ab=await this[_0x4e2f03(0x240)](_0x13ef83);if(_0x3be0ab)return _0x3be0ab;}async[_0x1a80b7(0x27b)](_0x2854a8){const _0x1a4b1c=_0x1a80b7;return this[_0x1a4b1c(0x167)](_0x2854a8,0x1,t['UniverInstanceType']['UNIVER_SHEET']);}async['exportXLSXBySnapshot'](_0x52389a){const _0x4a2c97=_0x1a80b7;let _0x3fc271=await this['transformWorkbookDataToSnapshotJson'](_0x52389a);return this[_0x4a2c97(0x2a8)](_0x3fc271,t[_0x4a2c97(0x277)][_0x4a2c97(0x178)]);}async[_0x1a80b7(0x205)](_0x603de0,_0x4e25f5){const _0x11a647=_0x1a80b7;var _0x11f44a,_0x4a1caa;let _0x2c2e44=await this[_0x11a647(0x1f7)](_0x603de0);if(!_0x2c2e44)return;let _0x140d64=await this['_import'](_0x2c2e44,0x1,_0x4e25f5);if(!_0x140d64)return;this[_0x11a647(0x214)]=_0x140d64,this[_0x11a647(0x156)][_0x11a647(0x1df)]();let _0x3375e2=await this[_0x11a647(0x156)][_0x11a647(0x183)](_0x140d64)[_0x11a647(0x180)](_0x2c7720=>{const _0x4e73ec=_0x11a647;var _0x173b6f;let _0x407b09=_0x2c7720 instanceof Error?_0x2c7720[_0x4e73ec(0x207)]:(_0x173b6f=_0x2c7720['error'])==null?void 0x0:_0x173b6f[_0x4e73ec(0x207)];this[_0x4e73ec(0x21a)][_0x4e73ec(0x18e)]({'error':{'code':c[_0x4e73ec(0x2dd)][_0x4e73ec(0x1ce)],'message':_0x407b09||''},'state':0x3});});if(!_0x3375e2)return;let _0x43d9b5=(_0x11f44a=_0x3375e2[_0x11a647(0x152)])==null?void 0x0:_0x11f44a[_0x11a647(0x2cc)],_0x3ab7cd=((_0x4a1caa=_0x3375e2[_0x11a647(0x152)])==null?void 0x0:_0x4a1caa['unitID'])||'';if(_0x43d9b5!==0x1){this[_0x11a647(0x21a)][_0x11a647(0x18e)]({'error':{'code':c[_0x11a647(0x2dd)][_0x11a647(0x1ce)],'message':_0x11a647(0x2c2)},'state':0x3});return;}if(_0x3ab7cd[_0x11a647(0x25b)]===0x0){this[_0x11a647(0x21a)][_0x11a647(0x18e)]({'error':{'code':c[_0x11a647(0x2dd)]['UNRECOGNIZED'],'message':_0x11a647(0x19a)},'state':0x3});return;}return this[_0x11a647(0x21a)]['next']({'error':_0x3375e2['error'],'state':0x3}),_0x3ab7cd;}async['importFileToJson'](_0xa405df,_0x705a5d){const _0xdf97ed=_0x1a80b7;return this[_0xdf97ed(0x221)](_0xa405df,_0x705a5d);}async[_0x1a80b7(0x293)](_0x569233){const _0x46def5=_0x1a80b7;let _0x47d166=await this['transformWorkbookDataToSnapshotJson'](_0x569233),_0x42bd02=typeof _0x569233['id']==_0x46def5(0x2e0)&&_0x569233['id'][_0x46def5(0x1d1)]()?_0x569233['id'][_0x46def5(0x1d1)]()+_0x46def5(0x2bf):_0x46def5(0x201),_0x146768=new File([JSON[_0x46def5(0x28b)](_0x47d166)],_0x42bd02,{'type':_0x46def5(0x2a5)});return this['importFileToUnitId'](_0x146768,t['UniverInstanceType'][_0x46def5(0x178)]);}['interruptImportTask'](){const _0x3770f0=_0x1a80b7;this[_0x3770f0(0x214)]&&this[_0x3770f0(0x156)]['setTaskInterrupted'](this['_importTaskId']);}async['_importToJson'](_0x108b2d,_0x3ff73a){const _0x589856=_0x1a80b7;var _0x4336ff,_0x542b5a;let _0x18551e=await this[_0x589856(0x1f7)](_0x108b2d);if(!_0x18551e)return;let _0x34ba64=await this[_0x589856(0x289)](_0x18551e,0x2,_0x3ff73a);if(!_0x34ba64)return;this['_importTaskId']=_0x34ba64,this['_requestService'][_0x589856(0x1df)]();let _0x54bc1c=await this[_0x589856(0x156)][_0x589856(0x183)](_0x34ba64)[_0x589856(0x180)](_0x115eca=>{const _0x3f46d3=_0x589856;var _0x5d3e76;let _0x286a00=_0x115eca instanceof Error?_0x115eca[_0x3f46d3(0x207)]:(_0x5d3e76=_0x115eca[_0x3f46d3(0x184)])==null?void 0x0:_0x5d3e76[_0x3f46d3(0x207)];this[_0x3f46d3(0x21a)][_0x3f46d3(0x18e)]({'error':{'code':c[_0x3f46d3(0x2dd)][_0x3f46d3(0x1ce)],'message':_0x286a00||''},'state':0x3});});if(!_0x54bc1c)return;let _0x3774d7=(_0x4336ff=_0x54bc1c[_0x589856(0x152)])==null?void 0x0:_0x4336ff[_0x589856(0x2cc)],_0x16079d=((_0x542b5a=_0x54bc1c[_0x589856(0x152)])==null?void 0x0:_0x542b5a[_0x589856(0x2c6)])||'';if(_0x3774d7!==0x2){this[_0x589856(0x21a)][_0x589856(0x18e)]({'error':{'code':c[_0x589856(0x2dd)][_0x589856(0x1ce)],'message':'Get\x20outputType\x20error'},'state':0x3});return;}if(_0x16079d['length']===0x0){this[_0x589856(0x21a)][_0x589856(0x18e)]({'error':{'code':c[_0x589856(0x2dd)]['UNRECOGNIZED'],'message':_0x589856(0x219)},'state':0x3});return;}this[_0x589856(0x21a)][_0x589856(0x18e)]({'error':_0x54bc1c[_0x589856(0x184)],'state':0x3});let _0x5959ee=await this[_0x589856(0x296)](_0x16079d);if(!_0x5959ee)return;let _0x209994=await this[_0x589856(0x156)][_0x589856(0x29e)](_0x5959ee);if(!_0x209994){this[_0x589856(0x21a)][_0x589856(0x18e)]({'error':{'code':c[_0x589856(0x2dd)][_0x589856(0x1ce)],'message':_0x589856(0x1fb)},'state':0x5});return;}try{let _0x495688=JSON['parse'](_0x209994);return this[_0x589856(0x21a)]['next']({'error':{'code':c[_0x589856(0x2dd)]['OK'],'message':_0x589856(0x206)},'state':0x5}),_0x495688;}catch{this['_requestState$']['next']({'error':{'code':c[_0x589856(0x2dd)][_0x589856(0x1ce)],'message':_0x589856(0x162)},'state':0x5});}}async[_0x1a80b7(0x2a8)](_0x4b6374,_0xa3e260){const _0xeedaac=_0x1a80b7;let _0x38fd84=JSON['stringify'](_0x4b6374),_0x215074=l[_0xeedaac(0x163)][_0xeedaac(0x271)](_0x38fd84),_0x18e34e=(0x0,u[_0xeedaac(0x1a8)])(_0x215074),_0x3e96d7=_0x215074[_0xeedaac(0x25b)],_0x94c914=se(_0x18e34e),_0x15b769=await this[_0xeedaac(0x1f7)](_0x94c914,_0x3e96d7,!0x0);if(_0x15b769)return this[_0xeedaac(0x167)](_0x15b769,0x2,_0xa3e260);}async[_0x1a80b7(0x167)](_0x339956,_0x813bc5,_0x16b9e9){const _0x5d70fb=_0x1a80b7;var _0x44c6b3;let _0x5f5d18=await this[_0x5d70fb(0x156)]['export']({'unitID':_0x813bc5===0x1?_0x339956:'','jsonID':_0x813bc5===0x2?_0x339956:'','type':_0x16b9e9,'useImageUrl':this[_0x5d70fb(0x2e3)](),'ignoreTableExport':this[_0x5d70fb(0x203)]()});if(!_0x5f5d18){this[_0x5d70fb(0x21a)][_0x5d70fb(0x18e)]({'error':{'code':c[_0x5d70fb(0x2dd)][_0x5d70fb(0x1ce)],'message':_0x5d70fb(0x22b)},'state':0x2});return;}if(this[_0x5d70fb(0x21a)][_0x5d70fb(0x18e)]({'error':_0x5f5d18[_0x5d70fb(0x184)],'state':0x2}),_0x5f5d18[_0x5d70fb(0x184)]&&_0x5f5d18[_0x5d70fb(0x184)][_0x5d70fb(0x1b0)]!==c['ErrorCode']['OK'])return;let _0x17f5e3=_0x5f5d18['taskID'],_0x74fdb=await this[_0x5d70fb(0x156)][_0x5d70fb(0x183)](_0x17f5e3)[_0x5d70fb(0x180)](_0x2f0e1a=>{const _0x496ef5=_0x5d70fb;var _0x5bc303;let _0x19fce4=_0x2f0e1a instanceof Error?_0x2f0e1a[_0x496ef5(0x207)]:(_0x5bc303=_0x2f0e1a[_0x496ef5(0x184)])==null?void 0x0:_0x5bc303[_0x496ef5(0x207)];this['_requestState$']['next']({'error':{'code':c[_0x496ef5(0x2dd)]['UNRECOGNIZED'],'message':_0x19fce4||''},'state':0x3});});if(!_0x74fdb)return;let _0x27e766=((_0x44c6b3=_0x74fdb[_0x5d70fb(0x26e)])==null?void 0x0:_0x44c6b3[_0x5d70fb(0x191)])||'';if(_0x27e766[_0x5d70fb(0x25b)]===0x0){this['_requestState$'][_0x5d70fb(0x18e)]({'error':{'code':c['ErrorCode']['UNRECOGNIZED'],'message':_0x5d70fb(0x1b5)},'state':0x3});return;}this[_0x5d70fb(0x21a)][_0x5d70fb(0x18e)]({'error':_0x74fdb[_0x5d70fb(0x184)],'state':0x3});let _0x3cb041=await this['_signUrl'](_0x27e766);if(!_0x3cb041)return;let _0x31e7b0=await N(_0x3cb041,this[_0x5d70fb(0x286)]);if(!_0x31e7b0){this['_requestState$']['next']({'error':{'code':c['ErrorCode']['UNRECOGNIZED'],'message':'Failed\x20to\x20get\x20file\x20from\x20url'},'state':0x6});return;}return this['_requestState$']['next']({'error':{'code':c[_0x5d70fb(0x2dd)]['OK'],'message':_0x5d70fb(0x206)},'state':0x6}),_0x31e7b0;}async[_0x1a80b7(0x1f7)](_0x30e2ed,_0x5c1bfb,_0x25aa0e){const _0x2335f0=_0x1a80b7;let _0x166d14;try{_0x166d14=await this['_requestService'][_0x2335f0(0x1d2)](_0x30e2ed,_0x5c1bfb,_0x25aa0e);}catch(_0xc1fde9){let _0x28bdb4=_0xc1fde9 instanceof Error?_0xc1fde9[_0x2335f0(0x207)]:String(_0xc1fde9);this[_0x2335f0(0x21a)]['next']({'error':{'code':c[_0x2335f0(0x2dd)]['UNRECOGNIZED'],'message':_0x28bdb4},'state':0x0});return;}if(!_0x166d14||typeof _0x166d14[_0x2335f0(0x1c5)]!=_0x2335f0(0x2e0)){this[_0x2335f0(0x21a)]['next']({'error':{'code':c[_0x2335f0(0x2dd)][_0x2335f0(0x1ce)],'message':_0x2335f0(0x260)},'state':0x0});return;}let _0x3630a5=_0x166d14[_0x2335f0(0x1c5)];if(_0x3630a5[_0x2335f0(0x25b)]===0x0){this['_requestState$'][_0x2335f0(0x18e)]({'error':{'code':c[_0x2335f0(0x2dd)][_0x2335f0(0x1ce)],'message':_0x2335f0(0x253)},'state':0x0});return;}return this[_0x2335f0(0x21a)]['next']({'error':{'code':c[_0x2335f0(0x2dd)]['OK'],'message':'success'},'state':0x0}),_0x3630a5;}async[_0x1a80b7(0x289)](_0x8919ab,_0xd96796,_0x4774bc){const _0x1bf77a=_0x1a80b7;let _0x79186a={'fileID':_0x8919ab,'type':_0x4774bc,'outputType':_0xd96796,'fileUrl':'','minSheetRowCount':this['_getMinSheetRowCount'](),'minSheetColumnCount':this['_getMinSheetColumnCount']()},_0x308a45=await this['_requestService'][_0x1bf77a(0x152)](_0x79186a);if(!_0x308a45){this[_0x1bf77a(0x21a)][_0x1bf77a(0x18e)]({'error':{'code':c[_0x1bf77a(0x2dd)]['UNRECOGNIZED'],'message':_0x1bf77a(0x1c0)},'state':0x1});return;}if(_0x308a45[_0x1bf77a(0x184)]&&_0x308a45[_0x1bf77a(0x184)][_0x1bf77a(0x1b0)]!==c[_0x1bf77a(0x2dd)]['OK']){this[_0x1bf77a(0x21a)][_0x1bf77a(0x18e)]({'error':_0x308a45[_0x1bf77a(0x184)],'state':0x1});return;}let _0x5e3164=_0x308a45[_0x1bf77a(0x193)];if(_0x5e3164[_0x1bf77a(0x25b)]===0x0){this['_requestState$'][_0x1bf77a(0x18e)]({'error':{'code':c[_0x1bf77a(0x2dd)][_0x1bf77a(0x1ce)],'message':_0x1bf77a(0x28f)},'state':0x1});return;}return this[_0x1bf77a(0x21a)]['next']({'error':_0x308a45[_0x1bf77a(0x184)],'state':0x1}),_0x5e3164;}async[_0x1a80b7(0x296)](_0x138b9b){const _0x227e50=_0x1a80b7;let _0x4c2f06=await this[_0x227e50(0x156)][_0x227e50(0x210)](_0x138b9b);if(!_0x4c2f06){this[_0x227e50(0x21a)][_0x227e50(0x18e)]({'error':{'code':c[_0x227e50(0x2dd)][_0x227e50(0x1ce)],'message':'sign\x20url\x20error'},'state':0x4});return;}if(_0x4c2f06[_0x227e50(0x184)]&&_0x4c2f06['error'][_0x227e50(0x1b0)]!==c[_0x227e50(0x2dd)]['OK']){this[_0x227e50(0x21a)]['next']({'error':_0x4c2f06['error'],'state':0x4});return;}let _0x5b3c0e=(0x0,t[_0x227e50(0x256)])(_0x4c2f06['url'],this[_0x227e50(0x266)]());if(_0x5b3c0e['length']===0x0){this['_requestState$']['next']({'error':{'code':c[_0x227e50(0x2dd)][_0x227e50(0x1ce)],'message':_0x227e50(0x1cf)},'state':0x4});return;}return this[_0x227e50(0x21a)][_0x227e50(0x18e)]({'error':_0x4c2f06[_0x227e50(0x184)],'state':0x4}),_0x5b3c0e;}[_0x1a80b7(0x266)](){const _0x5beec5=_0x1a80b7;var _0x2b96df;let _0x3b5019=this[_0x5beec5(0x189)][_0x5beec5(0x1e2)](f);return(_0x2b96df=_0x3b5019==null?void 0x0:_0x3b5019[_0x5beec5(0x1f4)])==null?location[_0x5beec5(0x288)]:_0x2b96df;}[_0x1a80b7(0x19b)](){const _0x1f7e65=_0x1a80b7;var _0x46ce5e,_0x1076b6;let _0x376f22=this['_configService'][_0x1f7e65(0x1e2)](f);return(_0x46ce5e=_0x376f22==null||(_0x1076b6=_0x376f22[_0x1f7e65(0x1ab)])==null?void 0x0:_0x1076b6[_0x1f7e65(0x1b7)])==null?0x1:_0x46ce5e;}[_0x1a80b7(0x21f)](){const _0x508837=_0x1a80b7;var _0x268c76,_0x2a4ec7;let _0x12fa71=this[_0x508837(0x189)][_0x508837(0x1e2)](f);return(_0x268c76=_0x12fa71==null||(_0x2a4ec7=_0x12fa71[_0x508837(0x1ab)])==null?void 0x0:_0x2a4ec7[_0x508837(0x243)])==null?0x1:_0x268c76;}['_getDisableCellImageConversion'](){const _0x5713cc=_0x1a80b7;var _0x33a4a5,_0x273500;let _0x4a5b4b=this[_0x5713cc(0x189)][_0x5713cc(0x1e2)](f);return(_0x33a4a5=_0x4a5b4b==null||(_0x273500=_0x4a5b4b['options'])==null?void 0x0:_0x273500['disableCellImageConversion'])==null?!0x0:_0x33a4a5;}[_0x1a80b7(0x203)](){const _0x55eccc=_0x1a80b7;var _0x32a6d7,_0x51d9ee;let _0x29f505=this[_0x55eccc(0x189)][_0x55eccc(0x1e2)](f);return(_0x32a6d7=_0x29f505==null||(_0x51d9ee=_0x29f505['options'])==null?void 0x0:_0x51d9ee[_0x55eccc(0x1f3)])==null?!0x1:_0x32a6d7;}};K=h([m(0x0,t[_0x1a80b7(0x2a6)]),m(0x1,(0x0,t['Inject'])(n[_0x1a80b7(0x181)])),m(0x2,(0x0,t[_0x1a80b7(0x276)])(F))],K);const pe={'done':0x0,'count':0x0},q=(0x0,t[_0x1a80b7(0x21b)])(_0x1a80b7(0x2a0));let J=class extends t[_0x1a80b7(0x20b)]{constructor(_0x3e2895,_0x2c4015,_0x1b7144,_0x301425,_0x5e20db,_0x3769fe,_0x341f9c){const _0x36fd47=_0x1a80b7;super(),this[_0x36fd47(0x1cc)]=_0x3e2895,this[_0x36fd47(0x185)]=_0x2c4015,this[_0x36fd47(0x1ac)]=_0x1b7144,this[_0x36fd47(0x2e4)]=_0x301425,this[_0x36fd47(0x211)]=_0x5e20db,this[_0x36fd47(0x22f)]=_0x3769fe,this['_resourceLoaderService']=_0x341f9c,v(this,_0x36fd47(0x209),new a['BehaviorSubject'](pe)),v(this,_0x36fd47(0x1a4),this[_0x36fd47(0x209)][_0x36fd47(0x231)]()),v(this,_0x36fd47(0x204),0x0),v(this,_0x36fd47(0x155),0x0),this[_0x36fd47(0x1d0)]((0x0,t['toDisposable'])(this['_exchangeService']['requestState$']['subscribe'](_0x41827c=>{const _0x2311c2=_0x36fd47;var _0x2463d6;((_0x2463d6=_0x41827c[_0x2311c2(0x184)])==null?void 0x0:_0x2463d6['code'])===c[_0x2311c2(0x2dd)]['OK']?this[_0x2311c2(0x161)](0x1):this[_0x2311c2(0x17a)](_0x41827c[_0x2311c2(0x184)]);})));}[_0x1a80b7(0x18a)](){const _0x5a7083=_0x1a80b7;this[_0x5a7083(0x2d7)](),this['_uploadNotificationService']['updateState'](0x2),this[_0x5a7083(0x2e4)][_0x5a7083(0x2de)]();}async[_0x1a80b7(0x2a7)](_0x3db874){const _0x393502=_0x1a80b7;throw Error(_0x393502(0x2c5));}async[_0x1a80b7(0x27a)](){const _0x3835ae=_0x1a80b7;let _0x2bebb7=this[_0x3835ae(0x1cc)][_0x3835ae(0x19d)]();switch(_0x2bebb7?this[_0x3835ae(0x1cc)]['getUnitType'](_0x2bebb7[_0x3835ae(0x27e)]()):t['UniverInstanceType'][_0x3835ae(0x1ce)]){case t['UniverInstanceType'][_0x3835ae(0x2be)]:return this[_0x3835ae(0x2b7)]();case t[_0x3835ae(0x277)]['UNIVER_DOC']:return this[_0x3835ae(0x234)]();case t[_0x3835ae(0x277)][_0x3835ae(0x178)]:default:return this[_0x3835ae(0x1be)]();}}async[_0x1a80b7(0x234)](){const _0x54d3d9=_0x1a80b7;let _0x1bde5b=await M([t[_0x54d3d9(0x277)]['UNIVER_DOC']]);if(_0x1bde5b&&!this[_0x54d3d9(0x23a)](_0x1bde5b,t['UniverInstanceType'][_0x54d3d9(0x18c)]))return this[_0x54d3d9(0x26f)](_0x1bde5b[0x0],t[_0x54d3d9(0x277)][_0x54d3d9(0x18c)]);}['importDOCXToSnapshot'](){const _0x28933e=_0x1a80b7;throw Error(_0x28933e(0x2c5));}async['exportDOCXByUnitId'](_0x1a3bfa,_0x2b2a41,_0x266d4e){const _0x49c73f=_0x1a80b7;this[_0x49c73f(0x299)](o['MessageType'][_0x49c73f(0x1f1)]);let _0x4f0cb8=await this[_0x49c73f(0x2e4)][_0x49c73f(0x23b)](_0x1a3bfa||this['_getUnitIDDoc']());_0x4f0cb8&&(this['_exchangeService']['downloadFile'](_0x4f0cb8,_0x2b2a41||this[_0x49c73f(0x279)](_0x4f0cb8),_0x49c73f(0x245)),this[_0x49c73f(0x299)](o['MessageType']['Success']));}async[_0x1a80b7(0x2b8)](){const _0x5e349f=_0x1a80b7;this[_0x5e349f(0x299)](o[_0x5e349f(0x1c7)][_0x5e349f(0x1f1)]);let _0x3fbadd=await this['_getUnitDocJson'](),_0x2c1e89=await this['_exchangeService'][_0x5e349f(0x2b8)](_0x3fbadd);_0x2c1e89&&(this[_0x5e349f(0x2e4)][_0x5e349f(0x196)](_0x2c1e89,this[_0x5e349f(0x279)](_0x2c1e89),_0x5e349f(0x245)),this[_0x5e349f(0x299)](o[_0x5e349f(0x1c7)][_0x5e349f(0x2b1)]));}async[_0x1a80b7(0x2b7)](){const _0x4d6455=_0x1a80b7;if(this['_uploadTaskNotDone']()){this['_messageService'][_0x4d6455(0x213)]({'type':o['MessageType']['Warning'],'content':this[_0x4d6455(0x1ac)]['t'](_0x4d6455(0x153))});return;}let _0x4deec3=await M([t[_0x4d6455(0x277)][_0x4d6455(0x2be)]]);if(_0x4deec3&&!this['_fileTypeError'](_0x4deec3,t[_0x4d6455(0x277)][_0x4d6455(0x2be)]))return this[_0x4d6455(0x26f)](_0x4deec3[0x0],t[_0x4d6455(0x277)]['UNIVER_SLIDE']);}async['importPPTXToSnapshot'](){const _0x4693df=_0x1a80b7;if(this['_uploadTaskNotDone']()){this[_0x4693df(0x185)][_0x4693df(0x213)]({'type':o[_0x4693df(0x1c7)]['Warning'],'content':this[_0x4693df(0x1ac)]['t'](_0x4693df(0x153))});return;}let _0x4867ee=await M([t[_0x4693df(0x277)][_0x4693df(0x2be)]]);if(!_0x4867ee)return;this['_showUploadMessage'](o[_0x4693df(0x1c7)][_0x4693df(0x1f1)]);let _0x4fa813=await this['_exchangeService'][_0x4693df(0x16a)](_0x4867ee[0x0]);_0x4fa813&&(this[_0x4693df(0x27c)](_0x4fa813),this[_0x4693df(0x2b4)](o['MessageType'][_0x4693df(0x2b1)]));}async[_0x1a80b7(0x28a)](_0x1a93ee,_0x336b30,_0xba2344){const _0x1881ce=_0x1a80b7;this[_0x1881ce(0x299)](o[_0x1881ce(0x1c7)][_0x1881ce(0x1f1)]);let _0x53a08c=await this[_0x1881ce(0x2e4)][_0x1881ce(0x28a)](_0x1a93ee||this['_getUnitIDSlide']());_0x53a08c&&(this['_exchangeService'][_0x1881ce(0x196)](_0x53a08c,_0x336b30||this['_getUnitNameByType'](_0x53a08c,_0xba2344==null?t[_0x1881ce(0x277)][_0x1881ce(0x2be)]:_0xba2344),_0x1881ce(0x2c7)),this[_0x1881ce(0x299)](o['MessageType']['Success']));}async[_0x1a80b7(0x251)](){const _0x134520=_0x1a80b7;this[_0x134520(0x299)](o[_0x134520(0x1c7)][_0x134520(0x1f1)]);let _0x1e84ab=await this[_0x134520(0x154)](),_0x517404=await this[_0x134520(0x2e4)][_0x134520(0x251)](_0x1e84ab);_0x517404&&(this[_0x134520(0x2e4)]['downloadFile'](_0x517404,this[_0x134520(0x22c)](_0x517404,t[_0x134520(0x277)][_0x134520(0x2be)]),_0x134520(0x2c7)),this['_showDownloadMessage'](o['MessageType'][_0x134520(0x2b1)]));}async[_0x1a80b7(0x1be)](){const _0x1f6aac=_0x1a80b7;if(this[_0x1f6aac(0x1bd)]()){this[_0x1f6aac(0x185)]['show']({'type':o[_0x1f6aac(0x1c7)]['Warning'],'content':this['_localeService']['t'](_0x1f6aac(0x153))});return;}let _0x200bce=await M([t[_0x1f6aac(0x277)][_0x1f6aac(0x178)]]);if(_0x200bce&&!this[_0x1f6aac(0x23a)](_0x200bce,t[_0x1f6aac(0x277)][_0x1f6aac(0x178)]))return this[_0x1f6aac(0x26f)](_0x200bce[0x0],t[_0x1f6aac(0x277)]['UNIVER_SHEET']);}async[_0x1a80b7(0x29d)](){const _0x36e8ac=_0x1a80b7;if(this[_0x36e8ac(0x1bd)]()){this[_0x36e8ac(0x185)][_0x36e8ac(0x213)]({'type':o[_0x36e8ac(0x1c7)]['Warning'],'content':this[_0x36e8ac(0x1ac)]['t'](_0x36e8ac(0x153))});return;}let _0x35d5f0=await M([t['UniverInstanceType'][_0x36e8ac(0x178)]]);if(!_0x35d5f0)return;this[_0x36e8ac(0x2b4)](o[_0x36e8ac(0x1c7)][_0x36e8ac(0x1f1)]);let _0x51c05b=await this['_exchangeService']['importXLSXToSnapshot'](_0x35d5f0[0x0]);_0x51c05b&&(this[_0x36e8ac(0x22a)](_0x51c05b),this['_showUploadMessage'](o[_0x36e8ac(0x1c7)]['Success']));}async[_0x1a80b7(0x27b)](_0x483c73,_0x78f41c,_0x237d3c){const _0x5ab07=_0x1a80b7;this[_0x5ab07(0x299)](o[_0x5ab07(0x1c7)][_0x5ab07(0x1f1)]);let _0x3bb0a0=await this[_0x5ab07(0x2e4)][_0x5ab07(0x27b)](_0x483c73||this['_getUnitID']());_0x3bb0a0&&(this[_0x5ab07(0x2e4)][_0x5ab07(0x196)](_0x3bb0a0,_0x78f41c||this[_0x5ab07(0x279)](_0x3bb0a0),_0x5ab07(0x1ee)),this[_0x5ab07(0x299)](o[_0x5ab07(0x1c7)][_0x5ab07(0x2b1)]));}async[_0x1a80b7(0x2ae)](){const _0x26635d=_0x1a80b7;this[_0x26635d(0x299)](o[_0x26635d(0x1c7)][_0x26635d(0x1f1)]);let _0x45d4ee=await this[_0x26635d(0x1c4)](),_0x1aaf2f=await this[_0x26635d(0x2e4)][_0x26635d(0x2ae)](_0x45d4ee);_0x1aaf2f&&(this[_0x26635d(0x2e4)][_0x26635d(0x196)](_0x1aaf2f,this[_0x26635d(0x279)](_0x1aaf2f),_0x26635d(0x1ee)),this[_0x26635d(0x299)](o['MessageType'][_0x26635d(0x2b1)]));}[_0x1a80b7(0x168)](_0x57593a){const _0x2607de=_0x1a80b7;this[_0x2607de(0x275)]=_0x57593a;}async[_0x1a80b7(0x26f)](_0xb58d3f,_0x7d2ee4){const _0x48ece8=_0x1a80b7;this[_0x48ece8(0x211)][_0x48ece8(0x213)](),this['_uploadNotificationService'][_0x48ece8(0x2cf)](0x0),this[_0x48ece8(0x175)](0x4),this[_0x48ece8(0x161)](0x1);let _0x2367c4=await this[_0x48ece8(0x2e4)]['importFileToUnitId'](_0xb58d3f,_0x7d2ee4);if(!_0x2367c4){this['_clearProgress'](),this['_uploadNotificationService'][_0x48ece8(0x2cf)](0x2);return;}let _0x4fa194={'link':this[_0x48ece8(0x275)](_0x2367c4,_0x7d2ee4),'name':_0xb58d3f[_0x48ece8(0x258)],'type':_0x7d2ee4};return this[_0x48ece8(0x211)][_0x48ece8(0x227)](_0x4fa194),this['_completeProgress'](),this['_uploadNotificationService']['updateState'](0x1),_0x2367c4;}[_0x1a80b7(0x22e)](){const _0x1be4b3=_0x1a80b7;return this[_0x1be4b3(0x1cc)][_0x1be4b3(0x28d)](t[_0x1be4b3(0x277)][_0x1be4b3(0x178)])[_0x1be4b3(0x27e)]();}[_0x1a80b7(0x247)](){const _0x4cfc60=_0x1a80b7;return this[_0x4cfc60(0x1cc)][_0x4cfc60(0x28d)](t[_0x4cfc60(0x277)][_0x4cfc60(0x18c)])[_0x4cfc60(0x27e)]();}['_getUnitIDSlide'](){const _0x541320=_0x1a80b7;return this[_0x541320(0x1cc)][_0x541320(0x28d)](t[_0x541320(0x277)][_0x541320(0x2be)])['getUnitId']();}[_0x1a80b7(0x279)](_0x569cd3){const _0x526d53=_0x1a80b7;return this['_getUnitNameByType'](_0x569cd3,t[_0x526d53(0x277)][_0x526d53(0x178)]);}[_0x1a80b7(0x22c)](_0x571483,_0x3d6eba){const _0x1e2055=_0x1a80b7;var _0x288a9b;let _0xf6dd9a=(_0x288a9b=this[_0x1e2055(0x1cc)]['getCurrentUnitOfType'](_0x3d6eba))==null?void 0x0:_0x288a9b['getSnapshot'](),_0x42875f=_0xf6dd9a==null?void 0x0:_0xf6dd9a[_0x1e2055(0x258)];return typeof _0x42875f==_0x1e2055(0x2e0)&&_0x42875f['trim']()?_0x42875f:_0x571483['name'][_0x1e2055(0x195)]('.')['shift']()||document[_0x1e2055(0x228)];}async[_0x1a80b7(0x1c4)](){const _0x1a87ab=_0x1a80b7;let _0x85019a=this[_0x1a87ab(0x1cc)]['getCurrentUnitOfType'](t['UniverInstanceType'][_0x1a87ab(0x178)]),_0x587209=this[_0x1a87ab(0x21c)][_0x1a87ab(0x24c)](_0x85019a['getUnitId']());return _0x587209==null?_0x85019a['getSnapshot']():_0x587209;}async[_0x1a80b7(0x2e2)](){const _0x8f6039=_0x1a80b7;let _0x2a07da=this['_univerInstanceService'][_0x8f6039(0x28d)](t[_0x8f6039(0x277)][_0x8f6039(0x18c)]),_0x47333d=this[_0x8f6039(0x21c)]['saveUnit'](_0x2a07da[_0x8f6039(0x27e)]());return _0x47333d==null?_0x2a07da['getSnapshot']():_0x47333d;}async[_0x1a80b7(0x154)](){const _0x238175=_0x1a80b7;let _0x1dc9d5=this[_0x238175(0x1cc)][_0x238175(0x28d)](t[_0x238175(0x277)][_0x238175(0x2be)]),_0x2172ef=this[_0x238175(0x21c)]['saveUnit'](_0x1dc9d5['getUnitId']());return _0x2172ef==null?_0x1dc9d5[_0x238175(0x2d9)]():_0x2172ef;}[_0x1a80b7(0x275)](_0x405993,_0x87ffb){const _0x13798a=_0x1a80b7;let _0x581b57=new URL(window[_0x13798a(0x2ac)]['href']);return _0x581b57[_0x13798a(0x187)][_0x13798a(0x298)](_0x13798a(0x2a4),_0x405993),_0x581b57[_0x13798a(0x187)]['set'](_0x13798a(0x2ca),''+_0x87ffb),_0x581b57['toString']();}['_refresh'](_0x44c2d9){const _0x17ad5b=_0x1a80b7;let _0x5a31af=this['_univerInstanceService'][_0x17ad5b(0x28d)](t['UniverInstanceType'][_0x17ad5b(0x178)])[_0x17ad5b(0x27e)]();this[_0x17ad5b(0x1cc)]['disposeUnit'](_0x5a31af),this[_0x17ad5b(0x1cc)]['createUnit'](t[_0x17ad5b(0x277)][_0x17ad5b(0x178)],_0x44c2d9);}[_0x1a80b7(0x27c)](_0x2e570d){const _0xb74d4=_0x1a80b7;let _0x39f04d=this[_0xb74d4(0x1cc)][_0xb74d4(0x28d)](t['UniverInstanceType'][_0xb74d4(0x2be)])[_0xb74d4(0x27e)]();this[_0xb74d4(0x1cc)][_0xb74d4(0x284)](_0x39f04d),this['_univerInstanceService'][_0xb74d4(0x264)](t[_0xb74d4(0x277)]['UNIVER_SLIDE'],_0x2e570d);}['_showNetworkError'](_0x53da5b){const _0x2e90e2=_0x1a80b7;if(_0x53da5b){let {code:_0x1538d2}=_0x53da5b;switch(_0x1538d2){case c[_0x2e90e2(0x2dd)][_0x2e90e2(0x226)]:this[_0x2e90e2(0x185)]['show']({'type':o[_0x2e90e2(0x1c7)][_0x2e90e2(0x177)],'content':this[_0x2e90e2(0x1ac)]['t'](_0x2e90e2(0x2c8))});break;case c[_0x2e90e2(0x2dd)][_0x2e90e2(0x1c8)]:this[_0x2e90e2(0x185)]['show']({'type':o[_0x2e90e2(0x1c7)]['Error'],'content':this[_0x2e90e2(0x1ac)]['t'](_0x2e90e2(0x158))});break;default:this['_messageService'][_0x2e90e2(0x213)]({'type':o[_0x2e90e2(0x1c7)][_0x2e90e2(0x177)],'content':this[_0x2e90e2(0x1ac)]['t'](_0x2e90e2(0x1d6))});break;}return null;}return this[_0x2e90e2(0x185)][_0x2e90e2(0x213)]({'type':o['MessageType'][_0x2e90e2(0x177)],'content':this[_0x2e90e2(0x1ac)]['t'](_0x2e90e2(0x1d6))}),null;}[_0x1a80b7(0x299)](_0x2ca7df){const _0x5758e8=_0x1a80b7;let _0x5a4c7c='';switch(_0x2ca7df){case o['MessageType'][_0x5758e8(0x2b1)]:_0x5a4c7c=this['_localeService']['t'](_0x5758e8(0x1b2));break;case o[_0x5758e8(0x1c7)][_0x5758e8(0x1f1)]:_0x5a4c7c=this[_0x5758e8(0x1ac)]['t'](_0x5758e8(0x173));break;default:break;}this[_0x5758e8(0x185)][_0x5758e8(0x213)]({'type':_0x2ca7df,'content':_0x5a4c7c});}[_0x1a80b7(0x2b4)](_0x57d555){const _0x2d3090=_0x1a80b7;let _0x1e62ec='';switch(_0x57d555){case o[_0x2d3090(0x1c7)][_0x2d3090(0x2b1)]:_0x1e62ec=this['_localeService']['t'](_0x2d3090(0x2c3));break;case o['MessageType'][_0x2d3090(0x1f1)]:_0x1e62ec=this['_localeService']['t'](_0x2d3090(0x153));break;default:break;}this[_0x2d3090(0x185)][_0x2d3090(0x213)]({'type':_0x57d555,'content':_0x1e62ec});}[_0x1a80b7(0x198)](){const _0x1318b2=_0x1a80b7;this['_progress$'][_0x1318b2(0x18e)]({'done':this[_0x1318b2(0x155)],'count':this['_totalUploadTaskCount']});}[_0x1a80b7(0x175)](_0x511ed7){const _0x36ee56=_0x1a80b7;this[_0x36ee56(0x204)]+=_0x511ed7,this[_0x36ee56(0x198)]();}[_0x1a80b7(0x161)](_0x3105f6){const _0x5b598d=_0x1a80b7;this[_0x5b598d(0x155)]+=_0x3105f6,this[_0x5b598d(0x155)]=Math[_0x5b598d(0x224)](this[_0x5b598d(0x155)],this['_totalUploadTaskCount']),this[_0x5b598d(0x198)]();}[_0x1a80b7(0x2a2)](){const _0x139516=_0x1a80b7;this[_0x139516(0x155)]=this[_0x139516(0x204)],this['_emitProgress']();}[_0x1a80b7(0x2d7)](){const _0x570fbc=_0x1a80b7;this[_0x570fbc(0x155)]=0x0,this[_0x570fbc(0x204)]=0x0,this[_0x570fbc(0x198)]();}['_fileTypeError'](_0x571358,_0x321b77){const _0x110085=_0x1a80b7;let _0x547d4d=_0x571358[0x0],_0x182649=_0x547d4d[_0x110085(0x258)];return j(_0x547d4d)===_0x321b77?!0x1:(this['_messageService'][_0x110085(0x213)]({'type':o['MessageType']['Error'],'content':this[_0x110085(0x1ac)]['t'](_0x110085(0x1c3),_0x182649)}),!0x0);}[_0x1a80b7(0x1bd)](){const _0x26fa85=_0x1a80b7;return this[_0x26fa85(0x204)]!==0x0&&this['_doneUploadTaskCount']!==this[_0x26fa85(0x204)];}};J=h([m(0x0,(0x0,t[_0x1a80b7(0x276)])(t[_0x1a80b7(0x1b8)])),m(0x1,i[_0x1a80b7(0x2b6)]),m(0x2,(0x0,t[_0x1a80b7(0x276)])(t[_0x1a80b7(0x1d3)])),m(0x3,(0x0,t[_0x1a80b7(0x276)])(G)),m(0x4,(0x0,t[_0x1a80b7(0x276)])(y)),m(0x5,t['ILogService']),m(0x6,(0x0,t[_0x1a80b7(0x276)])(t[_0x1a80b7(0x281)]))],J);function Y(_0x201db5){const _0x112c1d=_0x1a80b7;let {onClick:_0x1557ab,children:_0x14dff4,className:_0xe498bf}=_0x201db5;return(0x0,s[_0x112c1d(0x1a1)])(_0x112c1d(0x2aa),{'className':(0x0,o[_0x112c1d(0x199)])(_0x112c1d(0x1ae),_0xe498bf),'type':_0x112c1d(0x2aa),'onClick':_0x1557ab,'children':_0x14dff4});}function X(){const _0x2fc665=_0x1a80b7;let _0x1cf850=(0x0,i[_0x2fc665(0x292)])(q),_0x2ebd7d=(0x0,i[_0x2fc665(0x292)])(t[_0x2fc665(0x1d3)]);function _0x599bf5(){const _0x2902ad=_0x2fc665;_0x1cf850[_0x2902ad(0x27a)]();}return(0x0,s[_0x2fc665(0x1a1)])(Y,{'onClick':_0x599bf5,'children':_0x2ebd7d['t'](_0x2fc665(0x1e1))});}function me(){const _0x1475c9=_0x1a80b7;return(0x0,s['jsxs'])(_0x1475c9(0x230),{'className':_0x1475c9(0x28e),'children':[(0x0,s[_0x1475c9(0x1a1)])(_0x1475c9(0x2b0),{'className':'univer-mb-3\x20univer-py-0\x20univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','children':(0x0,i['useDependency'])(t[_0x1475c9(0x1d3)])['t'](_0x1475c9(0x25c))}),(0x0,s[_0x1475c9(0x1a1)])(X,{})]});}function he(_0x19e8a1){const _0x509f62=_0x1a80b7;let {count:_0x39b052}=_0x19e8a1;return(0x0,s[_0x509f62(0x2d0)])('div',{'className':_0x509f62(0x19e),'children':[(0x0,s[_0x509f62(0x1a1)])(_0x509f62(0x2b0),{'className':_0x509f62(0x267),'children':(0x0,i[_0x509f62(0x292)])(t[_0x509f62(0x1d3)])['t'](_0x509f62(0x1da),''+_0x39b052)}),(0x0,s[_0x509f62(0x1a1)])(X,{})]});}function ge(){const _0x13036e=_0x1a80b7;let _0x41599c=(0x0,i[_0x13036e(0x292)])(q),_0x31a12d=(0x0,i['useDependency'])(t[_0x13036e(0x1d3)]);function _0x1715c4(){const _0x460039=_0x13036e;_0x41599c[_0x460039(0x18a)]();}return(0x0,s[_0x13036e(0x1a1)])(Y,{'onClick':_0x1715c4,'children':_0x31a12d['t']('exchange-client.cancel')});}function _e(){const _0x1ec195=_0x1a80b7;let {count:_0x2e4936,done:_0x2a1371}=(0x0,i[_0x1ec195(0x215)])((0x0,i[_0x1ec195(0x292)])(q)[_0x1ec195(0x1a4)]),_0x10213a=_0x2e4936>0x0?_0x2a1371/_0x2e4936:0x0;return(0x0,s[_0x1ec195(0x1a1)])(_0x1ec195(0x230),{'className':_0x1ec195(0x17b),'children':(0x0,s[_0x1ec195(0x1a1)])(_0x1ec195(0x230),{'className':_0x1ec195(0x20f),'style':{'width':Math[_0x1ec195(0x1e3)](_0x10213a*0x64)+'%'}})});}function ve(){const _0x1fad33=_0x1a80b7;return(0x0,s[_0x1fad33(0x2d0)])(_0x1fad33(0x230),{'className':'univer-mt-5\x20univer-flex\x20univer-flex-col','children':[(0x0,s[_0x1fad33(0x1a1)])(_0x1fad33(0x2b0),{'className':'univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','children':(0x0,i[_0x1fad33(0x292)])(t[_0x1fad33(0x1d3)])['t'](_0x1fad33(0x1e5))}),(0x0,s[_0x1fad33(0x1a1)])(_0x1fad33(0x230),{'className':_0x1fad33(0x263),'children':(0x0,s[_0x1fad33(0x1a1)])(_e,{})}),(0x0,s[_0x1fad33(0x1a1)])(ge,{})]});}const Z={0x1:(0x0,s['jsx'])(r[_0x1a80b7(0x24d)],{'className':_0x1a80b7(0x1f8)}),0x0:(0x0,s[_0x1a80b7(0x1a1)])(r[_0x1a80b7(0x24f)],{'className':_0x1a80b7(0x2e6)}),0x2:(0x0,s[_0x1a80b7(0x1a1)])(r[_0x1a80b7(0x242)],{'className':_0x1a80b7(0x255)})};function ye(){const _0x2b9f1b=_0x1a80b7;let _0x36ce5c=(0x0,i[_0x2b9f1b(0x292)])(y),_0x168531=(0x0,i[_0x2b9f1b(0x292)])(t[_0x2b9f1b(0x1d3)]),_0x3e1305=(0x0,i['useObservable'])(_0x36ce5c[_0x2b9f1b(0x212)],0x0),_0x42e198=(0x0,i[_0x2b9f1b(0x215)])(_0x36ce5c[_0x2b9f1b(0x2d8)],!0x1),_0x8519b=(0x0,i[_0x2b9f1b(0x215)])(_0x36ce5c['list$'],[]);function _0x540ef3(){_0x36ce5c['hide']();}function _0x491d7c(_0x4dbe86){const _0x40a446=_0x2b9f1b;switch(_0x4dbe86){case 0x1:return _0x168531['t'](_0x40a446(0x2c3));case 0x0:return _0x168531['t'](_0x40a446(0x153));case 0x2:return _0x168531['t'](_0x40a446(0x1bb));default:return'';}}return _0x42e198&&(0x0,s['jsxs'])(_0x2b9f1b(0x230),{'className':_0x2b9f1b(0x1eb),'children':[(0x0,s[_0x2b9f1b(0x2d0)])('div',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-1.5\x20univer-pr-2','children':[(0x0,s[_0x2b9f1b(0x2d0)])(_0x2b9f1b(0x2b0),{'className':_0x2b9f1b(0x1ba),'children':[(0x0,s[_0x2b9f1b(0x1a1)])(_0x2b9f1b(0x2b0),{'className':'univer-h-6\x20univer-text-2xl','children':Z[_0x3e1305]}),(0x0,s['jsx'])(_0x2b9f1b(0x2b0),{'className':_0x2b9f1b(0x182),'children':_0x491d7c(_0x3e1305)})]}),(0x0,s['jsx'])(_0x2b9f1b(0x2b0),{'className':_0x2b9f1b(0x1ec),'onClick':_0x540ef3,'children':(0x0,s['jsx'])(r[_0x2b9f1b(0x241)],{})})]}),(0x0,s[_0x2b9f1b(0x2d0)])('div',{'children':[_0x3e1305===0x0&&(0x0,s[_0x2b9f1b(0x1a1)])(ve,{}),_0x3e1305===0x2&&(0x0,s['jsx'])(me,{}),_0x8519b[_0x2b9f1b(0x25b)]>0x0&&(0x0,s[_0x2b9f1b(0x1a1)])(re,{'list':_0x8519b}),_0x3e1305===0x1&&(0x0,s['jsx'])(he,{'count':_0x8519b[_0x2b9f1b(0x25b)]})]})]});}function be(){const _0xc04003=_0x1a80b7;return(0x0,s[_0xc04003(0x1a1)])(ye,{});}let Q=class extends t[_0x1a80b7(0x20b)]{constructor(_0x224332,_0x409804){const _0x6a5090=_0x1a80b7;super(),this[_0x6a5090(0x26a)]=_0x224332,this['_uiPartsService']=_0x409804,this[_0x6a5090(0x236)]();}['_registerUIParts'](){const _0x17ca2a=_0x1a80b7;this['disposeWithMe'](this[_0x17ca2a(0x283)][_0x17ca2a(0x1bc)](i[_0x17ca2a(0x1d5)][_0x17ca2a(0x29b)],()=>(0x0,i[_0x17ca2a(0x190)])(be,this[_0x17ca2a(0x26a)])));}};Q=h([m(0x0,(0x0,t[_0x1a80b7(0x276)])(t[_0x1a80b7(0x2ab)])),m(0x1,i[_0x1a80b7(0x2bd)])],Q);let $=class extends t[_0x1a80b7(0x246)]{constructor(_0x44aff3=p,_0x7b8b9,_0x2b11ad){const _0x4aeda9=_0x1a80b7;super(),this['_config']=_0x44aff3,this[_0x4aeda9(0x26a)]=_0x7b8b9,this[_0x4aeda9(0x189)]=_0x2b11ad;let {..._0xe13459}=(0x0,t['merge'])({},p,this[_0x4aeda9(0x23f)]);this[_0x4aeda9(0x189)][_0x4aeda9(0x280)](f,_0xe13459);}[_0x1a80b7(0x18b)](){const _0xf595ac=_0x1a80b7;(0x0,t[_0xf595ac(0x27f)])(this[_0xf595ac(0x26a)],[[g],[Q],[q,{'useClass':J}],[G,{'useClass':K}],[F,{'useClass':I}],[y,{'useClass':b}]]);}[_0x1a80b7(0x290)](){const _0x2dd315=_0x1a80b7;(0x0,t[_0x2dd315(0x223)])(this[_0x2dd315(0x26a)],[[g],[Q],[q]]);}};v($,'pluginName',_0x1a80b7(0x1de)),v($,'packageName',d),v($,_0x1a80b7(0x20c),ee),$=h([(0x0,t[_0x1a80b7(0x2e1)])(n[_0x1a80b7(0x20d)],e[_0x1a80b7(0x164)]),m(0x1,(0x0,t[_0x1a80b7(0x276)])(t[_0x1a80b7(0x2ab)])),m(0x2,t['IConfigService'])],$),exports[_0x1a80b7(0x270)]=q,exports['IExchangeService']=G,Object['defineProperty'](exports,_0x1a80b7(0x262),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x1a80b7(0x196)]=A,exports['transformSnapshotJsonToWorkbookData']=ue,exports['transformWorkbookDataToSnapshotJson']=V;
|
package/lib/cjs/locale/ar-SA.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x327a(_0x3a0962,_0x233b20){_0x3a0962=_0x3a0962-0x170;const _0x21a9a0=_0x21a9();let _0x327a26=_0x21a9a0[_0x3a0962];return _0x327a26;}function _0x21a9(){const _0xee7fb2=['103446lLALMU','البيانات\x20كبيرة\x20جداً','2cFpSut','2178CJvaSN','جارٍ\x20التحميل','تمت\x20مقاطعة\x20الاتصال\x20بالشبكة\x20وفشل\x20رفع\x20الملف','تم\x20التحميل\x20بنجاح','824fpUwLJ','3872901QmBKkV','exports','يرجى\x20الانتظار...','إلغاء','2983736CvRbNp','إعادة\x20الرفع','خطأ\x20في\x20الشبكة','15rPKIKR','65570CHSuom','تم\x20رفع\x20{0}\x20ملف/ملفات\x20بنجاح','33mUlMgC','1870356aNvvQp','74193ALBdJa','نوع\x20الملف\x20المحدد\x20[{0}]\x20غير\x20مدعوم\x20للرفع','4712388mqBTBd'];_0x21a9=function(){return _0xee7fb2;};return _0x21a9();}const _0x5f2882=_0x327a;(function(_0x618295,_0x1403dd){const _0x3341c0=_0x327a,_0x3f4243=_0x618295();while(!![]){try{const _0x2c3fa1=parseInt(_0x3341c0(0x17f))/0x1+-parseInt(_0x3341c0(0x184))/0x2*(parseInt(_0x3341c0(0x173))/0x3)+-parseInt(_0x3341c0(0x177))/0x4+parseInt(_0x3341c0(0x17a))/0x5*(parseInt(_0x3341c0(0x17e))/0x6)+parseInt(_0x3341c0(0x182))/0x7*(parseInt(_0x3341c0(0x172))/0x8)+parseInt(_0x3341c0(0x185))/0x9*(parseInt(_0x3341c0(0x17b))/0xa)+-parseInt(_0x3341c0(0x17d))/0xb*(parseInt(_0x3341c0(0x181))/0xc);if(_0x2c3fa1===_0x1403dd)break;else _0x3f4243['push'](_0x3f4243['shift']());}catch(_0x3111b5){_0x3f4243['push'](_0x3f4243['shift']());}}}(_0x21a9,0xdc885));const e={'exchange-client':{'uploading':'جارٍ\x20الرفع','uploadSuccess':'تم\x20رفع\x20الملف\x20بنجاح','uploadSuccessTip':_0x5f2882(0x17c),'downloading':_0x5f2882(0x186),'downloadSuccess':_0x5f2882(0x171),'unknownMistake':'خطأ\x20غير\x20معروف','networkError':_0x5f2882(0x179),'tooLarge':_0x5f2882(0x183),'internalError':'خطأ\x20داخلي\x20غير\x20معروف','interrupt':_0x5f2882(0x170),'fileTypeError':_0x5f2882(0x180),'wait':_0x5f2882(0x175),'cancel':_0x5f2882(0x176),'uploadAgain':_0x5f2882(0x178)}};module[_0x5f2882(0x174)]=e;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x329a4d=_0xdcae;function _0xdcae(_0xa63a48,_0x3dd05c){_0xa63a48=_0xa63a48-0x16c;const _0x1e3c90=_0x1e3c();let _0xdcaeb=_0x1e3c90[_0xa63a48];return _0xdcaeb;}function _0x1e3c(){const _0x3c30f8=['9VnNNbj','Espereu...','8AdSLzV','1268466MnQhjV','Descàrrega\x20correcta','119976WVNwHs','5945274iowBZH','249586akBxSf','4297736QyEfDs','Tornar\x20a\x20pujar','Fitxer\x20pujat\x20correctament','Les\x20dades\x20són\x20massa\x20grans','35XqSylK','Error\x20desconegut','{0}\x20fitxer(s)\x20pujat(s)\x20correctament','Pujant','6680320iQRkEN','Cancel·lar','Error\x20de\x20xarxa','El\x20fitxer\x20seleccionat\x20[{0}]\x20no\x20és\x20compatible\x20per\x20pujar','365040ZEkATv','Descarregant'];_0x1e3c=function(){return _0x3c30f8;};return _0x1e3c();}(function(_0x273abc,_0x2a6715){const _0x370399=_0xdcae,_0x21ad9f=_0x273abc();while(!![]){try{const _0x3c858f=parseInt(_0x370399(0x17e))/0x1*(parseInt(_0x370399(0x16d))/0x2)+-parseInt(_0x370399(0x17c))/0x3*(-parseInt(_0x370399(0x181))/0x4)+-parseInt(_0x370399(0x17a))/0x5+-parseInt(_0x370399(0x17f))/0x6*(parseInt(_0x370399(0x172))/0x7)+-parseInt(_0x370399(0x16e))/0x8+parseInt(_0x370399(0x16c))/0x9+parseInt(_0x370399(0x176))/0xa;if(_0x3c858f===_0x2a6715)break;else _0x21ad9f['push'](_0x21ad9f['shift']());}catch(_0x28a6e7){_0x21ad9f['push'](_0x21ad9f['shift']());}}}(_0x1e3c,0xb7060));const e={'exchange-client':{'uploading':_0x329a4d(0x175),'uploadSuccess':_0x329a4d(0x170),'uploadSuccessTip':_0x329a4d(0x174),'downloading':_0x329a4d(0x17b),'downloadSuccess':_0x329a4d(0x180),'unknownMistake':_0x329a4d(0x173),'networkError':_0x329a4d(0x178),'tooLarge':_0x329a4d(0x171),'internalError':'Error\x20intern\x20desconegut','interrupt':'La\x20connexió\x20de\x20xarxa\x20s\x27ha\x20interromput\x20i\x20la\x20pujada\x20del\x20fitxer\x20ha\x20fallat','fileTypeError':_0x329a4d(0x179),'wait':_0x329a4d(0x17d),'cancel':_0x329a4d(0x177),'uploadAgain':_0x329a4d(0x16f)}};module['exports']=e;
|
package/lib/cjs/locale/de-DE.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x23ce90=_0x13b7;(function(_0x41c87,_0x2b31f3){const _0x19c710=_0x13b7,_0x2821b8=_0x41c87();while(!![]){try{const _0x37ce3b=-parseInt(_0x19c710(0x15b))/0x1+-parseInt(_0x19c710(0x163))/0x2*(-parseInt(_0x19c710(0x15c))/0x3)+parseInt(_0x19c710(0x158))/0x4+-parseInt(_0x19c710(0x15d))/0x5+-parseInt(_0x19c710(0x162))/0x6+parseInt(_0x19c710(0x165))/0x7*(-parseInt(_0x19c710(0x15a))/0x8)+parseInt(_0x19c710(0x15e))/0x9;if(_0x37ce3b===_0x2b31f3)break;else _0x2821b8['push'](_0x2821b8['shift']());}catch(_0x4b4a83){_0x2821b8['push'](_0x2821b8['shift']());}}}(_0x31ed,0xa25ce));const e={'exchange-client':{'uploading':_0x23ce90(0x159),'uploadSuccess':_0x23ce90(0x156),'uploadSuccessTip':_0x23ce90(0x160),'downloading':_0x23ce90(0x15f),'downloadSuccess':'Download\x20erfolgreich','unknownMistake':_0x23ce90(0x164),'networkError':'Netzwerkfehler','tooLarge':'Daten\x20sind\x20zu\x20groß','internalError':'Interner\x20unbekannter\x20Fehler','interrupt':_0x23ce90(0x166),'fileTypeError':'Die\x20ausgewählte\x20Datei\x20[{0}]\x20wird\x20für\x20den\x20Upload\x20nicht\x20unterstützt','wait':'Bitte\x20warten...','cancel':'Abbrechen','uploadAgain':_0x23ce90(0x157)}};function _0x13b7(_0x5baeb5,_0x272035){_0x5baeb5=_0x5baeb5-0x156;const _0x31edf2=_0x31ed();let _0x13b791=_0x31edf2[_0x5baeb5];return _0x13b791;}module[_0x23ce90(0x161)]=e;function _0x31ed(){const _0x2b363b=['Datei\x20erfolgreich\x20hochgeladen','Erneut\x20hochladen','2554640yRKbyD','Wird\x20hochgeladen','15408trOCbw','816327PPaUgY','3NqLsDZ','1267355LIrQko','21677220sApncE','Wird\x20heruntergeladen','{0}\x20Datei(en)\x20erfolgreich\x20hochgeladen','exports','7938618rrulgu','2452010pQeIUM','Unbekannter\x20Fehler','4417BtpeXw','Die\x20Netzwerkverbindung\x20wurde\x20unterbrochen\x20und\x20der\x20Datei-Upload\x20ist\x20fehlgeschlagen'];_0x31ed=function(){return _0x2b363b;};return _0x31ed();}
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5791f8=_0x3b48;(function(_0x4da372,_0x45bb31){const _0x45cecf=_0x3b48,_0x1a5be2=_0x4da372();while(!![]){try{const _0x385cb9=-parseInt(_0x45cecf(0xa6))/0x1*(-parseInt(_0x45cecf(0x94))/0x2)+-parseInt(_0x45cecf(0xa3))/0x3+-parseInt(_0x45cecf(0x9b))/0x4*(-parseInt(_0x45cecf(0x93))/0x5)+-parseInt(_0x45cecf(0xa1))/0x6*(parseInt(_0x45cecf(0x99))/0x7)+parseInt(_0x45cecf(0x95))/0x8+parseInt(_0x45cecf(0x9d))/0x9*(parseInt(_0x45cecf(0xa4))/0xa)+-parseInt(_0x45cecf(0x9f))/0xb;if(_0x385cb9===_0x45bb31)break;else _0x1a5be2['push'](_0x1a5be2['shift']());}catch(_0x139e54){_0x1a5be2['push'](_0x1a5be2['shift']());}}}(_0x19f7,0xa45dd));const e={'exchange-client':{'uploading':_0x5791f8(0x97),'uploadSuccess':_0x5791f8(0x98),'uploadSuccessTip':_0x5791f8(0xa2),'downloading':_0x5791f8(0xa5),'downloadSuccess':'Download\x20success','unknownMistake':_0x5791f8(0x96),'networkError':_0x5791f8(0xa0),'tooLarge':'Data\x20is\x20too\x20large','internalError':'Internal\x20unknown\x20error','interrupt':'The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','fileTypeError':_0x5791f8(0x9e),'wait':_0x5791f8(0x9a),'cancel':_0x5791f8(0x9c),'uploadAgain':'Upload\x20again'}};module['exports']=e;function _0x3b48(_0x49a174,_0x4f7e82){_0x49a174=_0x49a174-0x93;const _0x19f7e9=_0x19f7();let _0x3b4822=_0x19f7e9[_0x49a174];return _0x3b4822;}function _0x19f7(){const _0x14da63=['1186383zzedaa','Network\x20error','7017336melhLg','{0}\x20file(s)\x20uploaded\x20successfully','3318570xMfDwe','10FqgVtX','Downloading','45822sHWNeQ','1970850cOlEpA','42cysdBe','4018736dFTynf','Unknown\x20mistake','Uploading','File\x20uploaded\x20successfully','7YhYHUs','Please\x20wait...','4bBlOKw','Cancel','10782630udWVhH','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload'];_0x19f7=function(){return _0x14da63;};return _0x19f7();}
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x1b765b=_0xbb98;function _0xbb98(_0x4c0015,_0x1306ba){_0x4c0015=_0x4c0015-0x17d;const _0x37c56d=_0x37c5();let _0xbb982a=_0x37c56d[_0x4c0015];return _0xbb982a;}function _0x37c5(){const _0x246bde=['2172204FMoPne','5484249TaGdpv','53076QlAgJB','Los\x20datos\x20son\x20demasiado\x20grandes','9aPeoSE','Subiendo','4sPxEWd','{0}\x20archivo(s)\x20subido(s)\x20exitosamente','5mZVzIP','5607679XmkwRZ','Espere...','Error\x20desconocido','Subir\x20de\x20nuevo','1311532RTrKPH','14668520kSTRNB','Cancelar','4528128bzKkBP','Descarga\x20exitosa'];_0x37c5=function(){return _0x246bde;};return _0x37c5();}(function(_0x4286e9,_0x422a15){const _0xe6b1e2=_0xbb98,_0x7db733=_0x4286e9();while(!![]){try{const _0x29f1c6=-parseInt(_0xe6b1e2(0x187))/0x1*(-parseInt(_0xe6b1e2(0x183))/0x2)+parseInt(_0xe6b1e2(0x185))/0x3*(-parseInt(_0xe6b1e2(0x18e))/0x4)+parseInt(_0xe6b1e2(0x189))/0x5*(parseInt(_0xe6b1e2(0x181))/0x6)+parseInt(_0xe6b1e2(0x18a))/0x7+-parseInt(_0xe6b1e2(0x17f))/0x8+-parseInt(_0xe6b1e2(0x182))/0x9+parseInt(_0xe6b1e2(0x17d))/0xa;if(_0x29f1c6===_0x422a15)break;else _0x7db733['push'](_0x7db733['shift']());}catch(_0x358705){_0x7db733['push'](_0x7db733['shift']());}}}(_0x37c5,0x8ce55));const e={'exchange-client':{'uploading':_0x1b765b(0x186),'uploadSuccess':'Archivo\x20subido\x20exitosamente','uploadSuccessTip':_0x1b765b(0x188),'downloading':'Descargando','downloadSuccess':_0x1b765b(0x180),'unknownMistake':_0x1b765b(0x18c),'networkError':'Error\x20de\x20red','tooLarge':_0x1b765b(0x184),'internalError':'Error\x20interno\x20desconocido','interrupt':'La\x20conexión\x20de\x20red\x20se\x20interrumpió\x20y\x20la\x20carga\x20del\x20archivo\x20falló','fileTypeError':'El\x20archivo\x20seleccionado\x20[{0}]\x20no\x20es\x20compatible\x20para\x20subir','wait':_0x1b765b(0x18b),'cancel':_0x1b765b(0x17e),'uploadAgain':_0x1b765b(0x18d)}};module['exports']=e;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x1b826a=_0x316d;function _0x2d0c(){const _0x23cd58=['8110240Qbukxp','داده\x20خیلی\x20بزرگ\x20است','79585BTxMtE','42561KQXGnp','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','4pgYpfP','2LzNCKY','خطای\x20داخلی\x20ناشناخته','خطای\x20ناشناخته','28422xMROuf','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','2389386xcUxdH','در\x20حال\x20بارگذاری','1328859uphjWg','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمیشود','لطفا\x20صبر\x20کنید...','8NjMzKp','لغو','334945sigLnY','بارگذاری\x20مجدد','دانلود\x20موفقیت\x20آمیز'];_0x2d0c=function(){return _0x23cd58;};return _0x2d0c();}function _0x316d(_0x1e6791,_0x14a81b){_0x1e6791=_0x1e6791-0x164;const _0x2d0c7a=_0x2d0c();let _0x316d20=_0x2d0c7a[_0x1e6791];return _0x316d20;}(function(_0x4bb921,_0x1d390c){const _0x2f772f=_0x316d,_0x25008e=_0x4bb921();while(!![]){try{const _0x13280d=-parseInt(_0x2f772f(0x167))/0x1*(parseInt(_0x2f772f(0x170))/0x2)+-parseInt(_0x2f772f(0x16d))/0x3*(parseInt(_0x2f772f(0x16f))/0x4)+parseInt(_0x2f772f(0x16c))/0x5+-parseInt(_0x2f772f(0x175))/0x6+parseInt(_0x2f772f(0x177))/0x7+-parseInt(_0x2f772f(0x165))/0x8*(-parseInt(_0x2f772f(0x173))/0x9)+parseInt(_0x2f772f(0x16a))/0xa;if(_0x13280d===_0x1d390c)break;else _0x25008e['push'](_0x25008e['shift']());}catch(_0x2595a9){_0x25008e['push'](_0x25008e['shift']());}}}(_0x2d0c,0x428bd));const e={'exchange-client':{'uploading':_0x1b826a(0x176),'uploadSuccess':_0x1b826a(0x16e),'uploadSuccessTip':_0x1b826a(0x174),'downloading':'در\x20حال\x20دانلود','downloadSuccess':_0x1b826a(0x169),'unknownMistake':_0x1b826a(0x172),'networkError':'خطای\x20شبکه','tooLarge':_0x1b826a(0x16b),'internalError':_0x1b826a(0x171),'interrupt':'اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','fileTypeError':_0x1b826a(0x178),'wait':_0x1b826a(0x164),'cancel':_0x1b826a(0x166),'uploadAgain':_0x1b826a(0x168)}};module['exports']=e;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x323f36=_0x2e78;function _0x2e78(_0x175c31,_0x4123cd){_0x175c31=_0x175c31-0x10a;const _0x37f40a=_0x37f4();let _0x2e7897=_0x37f40a[_0x175c31];return _0x2e7897;}(function(_0x546a3e,_0x426616){const _0x382ea3=_0x2e78,_0x43670c=_0x546a3e();while(!![]){try{const _0x4c5cd3=parseInt(_0x382ea3(0x10a))/0x1*(-parseInt(_0x382ea3(0x111))/0x2)+-parseInt(_0x382ea3(0x119))/0x3*(-parseInt(_0x382ea3(0x10b))/0x4)+parseInt(_0x382ea3(0x10c))/0x5+-parseInt(_0x382ea3(0x110))/0x6*(parseInt(_0x382ea3(0x115))/0x7)+parseInt(_0x382ea3(0x118))/0x8*(-parseInt(_0x382ea3(0x11c))/0x9)+parseInt(_0x382ea3(0x114))/0xa+-parseInt(_0x382ea3(0x113))/0xb*(-parseInt(_0x382ea3(0x117))/0xc);if(_0x4c5cd3===_0x426616)break;else _0x43670c['push'](_0x43670c['shift']());}catch(_0x43dfaf){_0x43670c['push'](_0x43670c['shift']());}}}(_0x37f4,0x85af9));const e={'exchange-client':{'uploading':'Téléchargement\x20en\x20cours','uploadSuccess':_0x323f36(0x10e),'uploadSuccessTip':_0x323f36(0x11a),'downloading':'Téléchargement','downloadSuccess':'Téléchargement\x20réussi','unknownMistake':'Erreur\x20inconnue','networkError':'Erreur\x20réseau','tooLarge':_0x323f36(0x10d),'internalError':'Erreur\x20interne\x20inconnue','interrupt':_0x323f36(0x112),'fileTypeError':'Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','wait':_0x323f36(0x10f),'cancel':'Annuler','uploadAgain':_0x323f36(0x116)}};module[_0x323f36(0x11b)]=e;function _0x37f4(){const _0x46a3f0=['Fichier\x20téléchargé\x20avec\x20succès','Veuillez\x20patienter...','234996SdwnVW','706icUJTf','La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','15112163MxyuHC','290310uNBgnF','126KhhRcD','Télécharger\x20à\x20nouveau','12HaynFr','378568NZiWQz','2042970EFNVfQ','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','exports','189sQnQxk','2467PblkRa','4hAHQYD','5166515dTuHCZ','Les\x20données\x20sont\x20trop\x20volumineuses'];_0x37f4=function(){return _0x46a3f0;};return _0x37f4();}
|
package/lib/cjs/locale/id-ID.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x569a(_0x5ab070,_0x4eee79){_0x5ab070=_0x5ab070-0xbd;const _0x598f9a=_0x598f();let _0x569a78=_0x598f9a[_0x5ab070];return _0x569a78;}const _0x30ba39=_0x569a;(function(_0x50bfd2,_0xfe98e0){const _0x394ec0=_0x569a,_0x29e1de=_0x50bfd2();while(!![]){try{const _0x535a4=parseInt(_0x394ec0(0xca))/0x1*(-parseInt(_0x394ec0(0xd3))/0x2)+-parseInt(_0x394ec0(0xbd))/0x3*(parseInt(_0x394ec0(0xc6))/0x4)+-parseInt(_0x394ec0(0xc7))/0x5*(parseInt(_0x394ec0(0xd2))/0x6)+-parseInt(_0x394ec0(0xc0))/0x7+parseInt(_0x394ec0(0xbf))/0x8+-parseInt(_0x394ec0(0xbe))/0x9*(parseInt(_0x394ec0(0xc4))/0xa)+-parseInt(_0x394ec0(0xc5))/0xb*(-parseInt(_0x394ec0(0xcb))/0xc);if(_0x535a4===_0xfe98e0)break;else _0x29e1de['push'](_0x29e1de['shift']());}catch(_0xb7a21){_0x29e1de['push'](_0x29e1de['shift']());}}}(_0x598f,0xcb4b4));const e={'exchange-client':{'uploading':_0x30ba39(0xcc),'uploadSuccess':'File\x20berhasil\x20diunggah','uploadSuccessTip':_0x30ba39(0xcd),'downloading':_0x30ba39(0xc9),'downloadSuccess':_0x30ba39(0xc1),'unknownMistake':_0x30ba39(0xc2),'networkError':_0x30ba39(0xce),'tooLarge':_0x30ba39(0xc3),'internalError':_0x30ba39(0xcf),'interrupt':_0x30ba39(0xd1),'fileTypeError':'File\x20yang\x20dipilih\x20[{0}]\x20tidak\x20didukung\x20untuk\x20diunggah','wait':'Harap\x20tunggu...','cancel':_0x30ba39(0xc8),'uploadAgain':_0x30ba39(0xd0)}};module['exports']=e;function _0x598f(){const _0x1d3fd2=['Kesalahan\x20jaringan','Kesalahan\x20internal\x20tidak\x20diketahui','Unggah\x20ulang','Koneksi\x20jaringan\x20terputus\x20dan\x20unggahan\x20file\x20gagal','2404662byzUVz','2gzXrKg','378FyjIFe','2228697PaugLB','12686392FuCRlQ','466529LySUUy','Unduhan\x20berhasil','Kesalahan\x20tidak\x20diketahui','Data\x20terlalu\x20besar','50fxtMzP','66JLKcKy','16012MxpzaL','5ElbbOA','Batal','Mengunduh','410346qmqnOz','3734412roXcHe','Mengunggah','{0}\x20file\x20berhasil\x20diunggah'];_0x598f=function(){return _0x1d3fd2;};return _0x598f();}
|
package/lib/cjs/locale/it-IT.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x144ea0=_0x6b81;function _0x6b81(_0x2b81f0,_0x396741){_0x2b81f0=_0x2b81f0-0x1dd;const _0x217ed1=_0x217e();let _0x6b81fc=_0x217ed1[_0x2b81f0];return _0x6b81fc;}(function(_0x108d5e,_0x11499f){const _0x4b2723=_0x6b81,_0x2763a2=_0x108d5e();while(!![]){try{const _0x207eb8=parseInt(_0x4b2723(0x1e0))/0x1+parseInt(_0x4b2723(0x1ef))/0x2*(parseInt(_0x4b2723(0x1df))/0x3)+parseInt(_0x4b2723(0x1e9))/0x4*(-parseInt(_0x4b2723(0x1e2))/0x5)+parseInt(_0x4b2723(0x1e3))/0x6*(parseInt(_0x4b2723(0x1f0))/0x7)+-parseInt(_0x4b2723(0x1ec))/0x8+-parseInt(_0x4b2723(0x1e4))/0x9*(-parseInt(_0x4b2723(0x1e7))/0xa)+-parseInt(_0x4b2723(0x1eb))/0xb;if(_0x207eb8===_0x11499f)break;else _0x2763a2['push'](_0x2763a2['shift']());}catch(_0x43ed5e){_0x2763a2['push'](_0x2763a2['shift']());}}}(_0x217e,0x3c011));function _0x217e(){const _0x52bb08=['1152onkZKL','207BOzgQi','Caricamento\x20in\x20corso','I\x20dati\x20sono\x20troppo\x20grandi','3610byiUtw','Attendi...','4pHbait','Download\x20riuscito','1644533eazYrw','961280AOuoBd','Errore\x20di\x20rete','exports','17362OycJCU','6664TmLmiC','Errore\x20sconosciuto','Carica\x20di\x20nuovo','87pXQJJN','354257kkjnuO','File\x20caricato\x20con\x20successo','1408265mHoyYF'];_0x217e=function(){return _0x52bb08;};return _0x217e();}const e={'exchange-client':{'uploading':_0x144ea0(0x1e5),'uploadSuccess':_0x144ea0(0x1e1),'uploadSuccessTip':'{0}\x20file\x20caricati\x20con\x20successo','downloading':'Download\x20in\x20corso','downloadSuccess':_0x144ea0(0x1ea),'unknownMistake':_0x144ea0(0x1dd),'networkError':_0x144ea0(0x1ed),'tooLarge':_0x144ea0(0x1e6),'internalError':'Errore\x20interno\x20sconosciuto','interrupt':'La\x20connessione\x20di\x20rete\x20è\x20stata\x20interrotta\x20e\x20il\x20caricamento\x20del\x20file\x20è\x20fallito','fileTypeError':'Il\x20file\x20selezionato\x20[{0}]\x20non\x20è\x20supportato\x20per\x20il\x20caricamento','wait':_0x144ea0(0x1e8),'cancel':'Annulla','uploadAgain':_0x144ea0(0x1de)}};module[_0x144ea0(0x1ee)]=e;
|