@univerjs-pro/exchange-client 1.0.0-alpha.1 → 1.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/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/types/services/utils/content-type.d.ts +2 -9
- 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 +10 -10
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x40dc66=_0x23ae;(function(_0x2343e0,_0x55f2c6){const _0x3684d5=_0x23ae,_0x3d5eca=_0x2343e0();while(!![]){try{const _0x4d6351=-parseInt(_0x3684d5(0x20f))/0x1*(parseInt(_0x3684d5(0x214))/0x2)+-parseInt(_0x3684d5(0x205))/0x3+-parseInt(_0x3684d5(0x202))/0x4*(parseInt(_0x3684d5(0x209))/0x5)+parseInt(_0x3684d5(0x1fb))/0x6*(-parseInt(_0x3684d5(0x1f3))/0x7)+parseInt(_0x3684d5(0x1f5))/0x8+parseInt(_0x3684d5(0x217))/0x9*(-parseInt(_0x3684d5(0x1f6))/0xa)+parseInt(_0x3684d5(0x206))/0xb*(parseInt(_0x3684d5(0x200))/0xc);if(_0x4d6351===_0x55f2c6)break;else _0x3d5eca['push'](_0x3d5eca['shift']());}catch(_0x3b0081){_0x3d5eca['push'](_0x3d5eca['shift']());}}}(_0x9a4d,0x26f2b));function _0x23ae(_0x5e1b2a,_0x4730e0){_0x5e1b2a=_0x5e1b2a-0x1f3;const _0x9a4ddf=_0x9a4d();let _0x23aefd=_0x9a4ddf[_0x5e1b2a];return _0x23aefd;}let e=require('@univerjs-pro/exchange-client'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');var r=class extends n[_0x40dc66(0x1f4)]{async[_0x40dc66(0x20a)](_0x57d1be){const _0x150583=_0x40dc66;let _0xb5b845=this['_injector'][_0x150583(0x1fa)](e[_0x150583(0x210)]);if(!_0xb5b845)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0xb5b845[_0x150583(0x20c)](_0x57d1be,t[_0x150583(0x216)][_0x150583(0x1f8)]);}async['importXLSXToSnapshotAsync'](_0x4d791c){const _0x4b8be3=_0x40dc66;let _0x4beefc=this[_0x4b8be3(0x208)]['get'](e[_0x4b8be3(0x210)]);if(!_0x4beefc)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x4beefc[_0x4b8be3(0x212)](_0x4d791c);}async[_0x40dc66(0x21a)](_0x2eea4a){const _0x35024c=_0x40dc66;let _0x39fd6f=this[_0x35024c(0x208)][_0x35024c(0x1fa)](e['IExchangeService']);if(!_0x39fd6f)throw Error(_0x35024c(0x21b));return _0x39fd6f[_0x35024c(0x219)](_0x2eea4a);}async[_0x40dc66(0x1ff)](_0x369b21){const _0x5226f5=_0x40dc66;let _0x278b1f=this['_injector'][_0x5226f5(0x1fa)](e[_0x5226f5(0x210)]);if(!_0x278b1f)throw Error(_0x5226f5(0x21b));return _0x278b1f[_0x5226f5(0x1f9)](_0x369b21);}async[_0x40dc66(0x201)](_0x2d9258){const _0x41df69=_0x40dc66;let _0x119ce6=this[_0x41df69(0x208)][_0x41df69(0x1fa)](e[_0x41df69(0x210)]);if(!_0x119ce6)throw Error(_0x41df69(0x21b));return _0x119ce6[_0x41df69(0x20c)](_0x2d9258,t[_0x41df69(0x216)][_0x41df69(0x20d)]);}async[_0x40dc66(0x215)](_0x441a38){const _0x58e217=_0x40dc66;let _0x4f1af4=this[_0x58e217(0x208)][_0x58e217(0x1fa)](e[_0x58e217(0x210)]);if(!_0x4f1af4)throw Error(_0x58e217(0x21b));return _0x4f1af4['importDOCXToSnapshot'](_0x441a38);}async[_0x40dc66(0x1fd)](_0x4a9997){const _0xcd3c5d=_0x40dc66;let _0x37ced0=this['_injector']['get'](e[_0xcd3c5d(0x210)]);if(!_0x37ced0)throw Error(_0xcd3c5d(0x21b));return _0x37ced0[_0xcd3c5d(0x204)](_0x4a9997);}async[_0x40dc66(0x207)](_0x329f61){const _0x5a89fc=_0x40dc66;let _0x1785b0=this[_0x5a89fc(0x208)][_0x5a89fc(0x1fa)](e[_0x5a89fc(0x210)]);if(!_0x1785b0)throw Error(_0x5a89fc(0x21b));return _0x1785b0[_0x5a89fc(0x1fe)](_0x329f61);}async[_0x40dc66(0x20e)](_0x16cf92){const _0x5bd5e2=_0x40dc66;let _0x403b1c=this[_0x5bd5e2(0x208)]['get'](e[_0x5bd5e2(0x210)]);if(!_0x403b1c)throw Error(_0x5bd5e2(0x21b));return _0x403b1c[_0x5bd5e2(0x20c)](_0x16cf92,t[_0x5bd5e2(0x216)][_0x5bd5e2(0x211)]);}async[_0x40dc66(0x1fc)](_0x39999d){const _0xa22121=_0x40dc66;let _0x1d1259=this[_0xa22121(0x208)][_0xa22121(0x1fa)](e['IExchangeService']);if(!_0x1d1259)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x1d1259[_0xa22121(0x218)](_0x39999d);}async[_0x40dc66(0x203)](_0x2d6009){const _0x4056a2=_0x40dc66;let _0x4329fe=this[_0x4056a2(0x208)]['get'](e[_0x4056a2(0x210)]);if(!_0x4329fe)throw Error(_0x4056a2(0x21b));return _0x4329fe['exportPPTXByUnitId'](_0x2d6009);}async[_0x40dc66(0x1f7)](_0x1c2248){const _0x16d35e=_0x40dc66;let _0x2bd767=this[_0x16d35e(0x208)]['get'](e[_0x16d35e(0x210)]);if(!_0x2bd767)throw Error(_0x16d35e(0x21b));return _0x2bd767[_0x16d35e(0x20b)](_0x1c2248);}};function _0x9a4d(){const _0x14bfc3=['96mGhhKD','exportPPTXByUnitIdAsync','exportDOCXBySnapshot','384492ZguIAA','11tPySMl','exportDOCXByUnitIdAsync','_injector','30405ULlPZU','importXLSXToUnitIdAsync','exportPPTXBySnapshot','importFileToUnitId','UNIVER_DOC','importPPTXToUnitIdAsync','13QWDIbR','IExchangeService','UNIVER_SLIDE','importXLSXToSnapshot','extend','48906udvRcw','importDOCXToSnapshotAsync','UniverInstanceType','9QIiPBw','importPPTXToSnapshot','exportXLSXByUnitId','exportXLSXByUnitIdAsync','The\x20exchange\x20service\x20is\x20not\x20available','6426kTrUQq','FUniver','10976qCBBvX','1872170yubvKS','exportPPTXBySnapshotAsync','UNIVER_SHEET','exportXLSXBySnapshot','get','390ftzDdE','importPPTXToSnapshotAsync','exportDOCXBySnapshotAsync','exportDOCXByUnitId','exportXLSXBySnapshotAsync','11964516wRiAef','importDOCXToUnitIdAsync'];_0x9a4d=function(){return _0x14bfc3;};return _0x9a4d();}n[_0x40dc66(0x1f4)][_0x40dc66(0x213)](r);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x33cc6a=_0x4275;(function(_0x4917a3,_0x26c96f){const _0x4c5dbb=_0x4275,_0x3de8db=_0x4917a3();while(!![]){try{const _0x129078=parseInt(_0x4c5dbb(0x1f5))/0x1+parseInt(_0x4c5dbb(0x1ef))/0x2+parseInt(_0x4c5dbb(0x285))/0x3+parseInt(_0x4c5dbb(0x368))/0x4+parseInt(_0x4c5dbb(0x346))/0x5*(-parseInt(_0x4c5dbb(0x29c))/0x6)+parseInt(_0x4c5dbb(0x281))/0x7+-parseInt(_0x4c5dbb(0x1e9))/0x8*(parseInt(_0x4c5dbb(0x2ef))/0x9);if(_0x129078===_0x26c96f)break;else _0x3de8db['push'](_0x3de8db['shift']());}catch(_0x371e44){_0x3de8db['push'](_0x3de8db['shift']());}}}(_0x5a10,0xb4734),Object['defineProperty'](exports,Symbol[_0x33cc6a(0x287)],{'value':_0x33cc6a(0x339)}));let e=require('@univerjs-pro/license'),t=require('@univerjs/core'),n=require('@univerjs/network'),r=require('@univerjs/icons'),i=require('@univerjs/ui'),a=require('react'),o=require('rxjs'),s=require('@univerjs/design'),c=require('react/jsx-runtime'),l=require('@univerjs/protocol'),u=require('@univerjs-pro/collaboration'),d=require('fflate');const f=_0x33cc6a(0x1e6),p={};var m=_0x33cc6a(0x2af),ee=_0x33cc6a(0x2e7);function h(_0x16d662){'@babel/helpers - typeof';const _0x56cf7f=_0x33cc6a;return h=typeof Symbol==_0x56cf7f(0x36f)&&typeof Symbol[_0x56cf7f(0x2e8)]==_0x56cf7f(0x22a)?function(_0x550af1){return typeof _0x550af1;}:function(_0x543c10){const _0x4ff5d5=_0x56cf7f;return _0x543c10&&typeof Symbol=='function'&&_0x543c10[_0x4ff5d5(0x1f6)]===Symbol&&_0x543c10!==Symbol[_0x4ff5d5(0x2a2)]?'symbol':typeof _0x543c10;},h(_0x16d662);}function te(_0x54b65b,_0x437c3b){const _0x26c9f1=_0x33cc6a;if(h(_0x54b65b)!=_0x26c9f1(0x248)||!_0x54b65b)return _0x54b65b;var _0x305f51=_0x54b65b[Symbol['toPrimitive']];if(_0x305f51!==void 0x0){var _0x47c873=_0x305f51['call'](_0x54b65b,_0x437c3b||_0x26c9f1(0x355));if(h(_0x47c873)!=_0x26c9f1(0x248))return _0x47c873;throw TypeError(_0x26c9f1(0x262));}return(_0x437c3b===_0x26c9f1(0x282)?String:Number)(_0x54b65b);}function ne(_0x53f632){const _0x43d807=_0x33cc6a;var _0x5788f9=te(_0x53f632,_0x43d807(0x282));return h(_0x5788f9)=='symbol'?_0x5788f9:_0x5788f9+'';}function g(_0x1eea7c,_0x2f5b1c,_0x39a3d3){const _0x108606=_0x33cc6a;return(_0x2f5b1c=ne(_0x2f5b1c))in _0x1eea7c?Object[_0x108606(0x26e)](_0x1eea7c,_0x2f5b1c,{'value':_0x39a3d3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1eea7c[_0x2f5b1c]=_0x39a3d3,_0x1eea7c;}let re=function(_0x39a38f){const _0x5cf9b8=_0x33cc6a;return _0x39a38f[_0x39a38f[_0x5cf9b8(0x2ae)]=0x0]='UPLOADING',_0x39a38f[_0x39a38f[_0x5cf9b8(0x30d)]=0x1]=_0x5cf9b8(0x30d),_0x39a38f[_0x39a38f[_0x5cf9b8(0x231)]=0x2]=_0x5cf9b8(0x231),_0x39a38f;}({});const _=(0x0,t[_0x33cc6a(0x2b9)])(_0x33cc6a(0x28a));var v=class extends t[_0x33cc6a(0x1f3)]{constructor(){const _0x4af7f9=_0x33cc6a;super(),g(this,_0x4af7f9(0x2d1),new o[(_0x4af7f9(0x228))]()),g(this,_0x4af7f9(0x2b3),new o[(_0x4af7f9(0x228))]()),g(this,'_list$',new o[(_0x4af7f9(0x228))]()),g(this,_0x4af7f9(0x2c7),this[_0x4af7f9(0x2d1)]['asObservable']()),g(this,_0x4af7f9(0x2bd),this[_0x4af7f9(0x2b3)]['asObservable']()),g(this,_0x4af7f9(0x2dc),this['_list$'][_0x4af7f9(0x2a4)]()),g(this,_0x4af7f9(0x289),[]);}[_0x33cc6a(0x1e2)](){const _0x34b62b=_0x33cc6a;super['dispose'](),this[_0x34b62b(0x2d1)][_0x34b62b(0x33d)](),this[_0x34b62b(0x2b3)][_0x34b62b(0x33d)](),this[_0x34b62b(0x33b)][_0x34b62b(0x33d)]();}[_0x33cc6a(0x217)](){const _0x546baa=_0x33cc6a;this[_0x546baa(0x2d1)][_0x546baa(0x316)](!0x0);}['hide'](){const _0x591cf6=_0x33cc6a;this['_visible$'][_0x591cf6(0x316)](!0x1);}[_0x33cc6a(0x264)](_0x5afec6){const _0x57ab85=_0x33cc6a;this[_0x57ab85(0x2b3)]['next'](_0x5afec6);}[_0x33cc6a(0x239)](_0x36bae3){const _0x530146=_0x33cc6a;this[_0x530146(0x289)][_0x530146(0x36e)](_0x36bae3),this[_0x530146(0x33b)][_0x530146(0x316)](this[_0x530146(0x289)]);}};function ie(_0x2ce196){const _0x10ca2c=_0x33cc6a;let {list:_0x254eda}=_0x2ce196;function _0x4e33fb(_0x35a6a6){const _0x154953=_0x4275;switch(_0x35a6a6){case 0x1:return(0x0,c[_0x154953(0x304)])(r['DocMultiIcon'],{});case 0x2:return(0x0,c[_0x154953(0x304)])(r[_0x154953(0x30a)],{});case 0x3:return(0x0,c['jsx'])(r[_0x154953(0x232)],{});default:return null;}}return(0x0,c['jsx'])(_0x10ca2c(0x23b),{'className':(0x0,s['clsx'])(_0x10ca2c(0x242),s[_0x10ca2c(0x2d3)]),'children':(0x0,c['jsx'])('ul',{'className':_0x10ca2c(0x2ee),'children':_0x254eda[_0x10ca2c(0x283)]((_0x1aef1c,_0x1dd7af)=>(0x0,c['jsx'])('li',{'children':(0x0,c[_0x10ca2c(0x342)])('a',{'className':_0x10ca2c(0x2f3),'href':_0x1aef1c['link'],'target':_0x10ca2c(0x35a),'rel':_0x10ca2c(0x2e0),'children':[(0x0,c[_0x10ca2c(0x342)])(_0x10ca2c(0x26c),{'className':_0x10ca2c(0x328),'children':[(0x0,c['jsx'])('span',{'className':_0x10ca2c(0x1eb),'children':_0x4e33fb(_0x1aef1c['type'])}),(0x0,c[_0x10ca2c(0x304)])(s['Tooltip'],{'showIfEllipsis':!0x0,'title':_0x1aef1c[_0x10ca2c(0x1ed)],'asChild':!0x0,'children':(0x0,c[_0x10ca2c(0x304)])(_0x10ca2c(0x26c),{'className':_0x10ca2c(0x227),'children':_0x1aef1c[_0x10ca2c(0x1ed)]})})]}),(0x0,c[_0x10ca2c(0x304)])(_0x10ca2c(0x26c),{'className':'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','children':(0x0,c[_0x10ca2c(0x304)])(r['ShareRangeIcon'],{})})]})},_0x1dd7af))})});}const y='application/vnd.openxmlformats-officedocument.wordprocessingml.document',b='application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',x='application/vnd.ms-excel.sheet.macroEnabled.12',S=_0x33cc6a(0x357),C='application/vnd.openxmlformats-officedocument.presentationml.presentation',w={[t[_0x33cc6a(0x20e)][_0x33cc6a(0x278)]]:[''],[t[_0x33cc6a(0x20e)][_0x33cc6a(0x2a1)]]:[y],[t[_0x33cc6a(0x20e)]['UNIVER_SHEET']]:[b,x,S],[t[_0x33cc6a(0x20e)][_0x33cc6a(0x2a6)]]:[C],[t[_0x33cc6a(0x20e)][_0x33cc6a(0x270)]]:[''],[t[_0x33cc6a(0x20e)]['UNIVER_PROJECT']]:[''],[t[_0x33cc6a(0x20e)][_0x33cc6a(0x2e4)]]:['']},T={[y]:_0x33cc6a(0x303),[b]:'xlsx',[x]:_0x33cc6a(0x273),[S]:'xltx',[C]:'pptx'};function ae(_0x22f364,_0x2269bf,_0x16f3b7){const _0x1e0444=_0x33cc6a;let _0x5a985a=document['createElement']('a');_0x5a985a['href']=_0x22f364,_0x5a985a[_0x1e0444(0x22d)][_0x1e0444(0x367)]=_0x1e0444(0x336),_0x5a985a['download']=_0x2269bf+'.'+_0x16f3b7,document[_0x1e0444(0x2c1)][_0x1e0444(0x219)](_0x5a985a),_0x5a985a[_0x1e0444(0x2d7)](),document[_0x1e0444(0x2c1)]['removeChild'](_0x5a985a);}function E(_0x14c200,_0x38abb7,_0x44fbad){const _0x13761b=_0x33cc6a;let _0x7890e=URL[_0x13761b(0x21a)](_0x14c200);ae(_0x7890e,_0x38abb7,_0x44fbad),URL[_0x13761b(0x2f0)](_0x7890e);}function D(_0x2a5b21){const _0x202906=_0x33cc6a;let _0x23ff8c=_0x2a5b21[_0x202906(0x1ed)][_0x202906(0x2aa)]('.')[_0x202906(0x345)]();if(!_0x23ff8c)return t[_0x202906(0x20e)][_0x202906(0x278)];let _0x26eed0=oe(),_0x28ffb4=t[_0x202906(0x20e)][_0x202906(0x278)];return _0x26eed0['some'](_0x1c1bba=>O(_0x23ff8c,_0x1c1bba)?(_0x28ffb4=_0x1c1bba,!0x0):!0x1),_0x28ffb4;}function oe(){const _0x36276b=_0x33cc6a;return Object[_0x36276b(0x2ca)](t[_0x36276b(0x20e)])[_0x36276b(0x2cf)](_0x1ad14a=>typeof _0x1ad14a=='number');}function O(_0x42330e,_0x56affc){const _0x1e1da5=_0x33cc6a;var _0x149572;return((_0x149572=w[_0x56affc])==null?[]:_0x149572)[_0x1e1da5(0x283)](_0x3e1032=>(T[_0x3e1032]||'')[_0x1e1da5(0x33c)]())[_0x1e1da5(0x256)](_0x42330e[_0x1e1da5(0x33c)]());}function k(_0x3dcae5,_0x3fbc17=!0x1){const _0x36d122=_0x33cc6a;let _0x4f7753=_0x3dcae5[_0x36d122(0x283)](_0x6d455f=>{var _0x884384;return(_0x884384=w[_0x6d455f])==null?[]:_0x884384;})[_0x36d122(0x27a)](',');return new Promise((_0x4a35b2,_0x2fde70)=>{const _0x5d60ae=_0x36d122;let _0x394f6b=document[_0x5d60ae(0x2df)](_0x5d60ae(0x32a));_0x394f6b[_0x5d60ae(0x277)]='file',_0x394f6b['accept']=_0x4f7753,_0x394f6b['multiple']=_0x3fbc17,_0x394f6b['addEventListener']('change',_0x39861d=>{const _0x30a9b3=_0x5d60ae;let _0x12a222=_0x39861d[_0x30a9b3(0x2ed)];if(!_0x12a222['files']||_0x12a222[_0x30a9b3(0x288)][_0x30a9b3(0x2a7)]===0x0)throw _0x2fde70(null),Error('No\x20file\x20selected');_0x4a35b2(_0x12a222[_0x30a9b3(0x288)]);}),_0x394f6b[_0x5d60ae(0x2d7)]();});}async function A(_0x71c41f,_0x1cffdf){const _0x20124e=_0x33cc6a;try{var _0x125c27,_0x4b92ed,_0x5a0e38;let _0x4a81f7=await _0x1cffdf[_0x20124e(0x293)](_0x71c41f,{'responseType':_0x20124e(0x22c)}),_0x38e979=_0x4a81f7[_0x20124e(0x2c1)],_0x1ff482=(_0x125c27=(_0x4b92ed=_0x4a81f7[_0x20124e(0x23e)][_0x20124e(0x293)]('Content-Type'))==null?void 0x0:_0x4b92ed[_0x20124e(0x27a)](',\x20'))==null?_0x20124e(0x31a):_0x125c27,_0x29c069=_0x20124e(0x29b)+(T[_0x1ff482]||_0x20124e(0x364)),_0x925a6c=(_0x5a0e38=_0x4a81f7[_0x20124e(0x23e)]['get'](_0x20124e(0x20a)))==null?void 0x0:_0x5a0e38['join'](',\x20');if(_0x925a6c){let _0x51f3bf=_0x925a6c[_0x20124e(0x325)](/filename=(.+)/);_0x51f3bf&&_0x51f3bf[0x1]&&(_0x29c069=_0x51f3bf[0x1]);}else _0x29c069=se(_0x71c41f)||_0x29c069;return new File([_0x38e979],_0x29c069,{'type':_0x1ff482});}catch(_0x50853b){console[_0x20124e(0x2ea)](_0x20124e(0x226),_0x50853b);return;}}function se(_0x195c48){const _0x3c5855=_0x33cc6a;try{return new URL(_0x195c48)[_0x3c5855(0x276)][_0x3c5855(0x2aa)]('/')['pop']();}catch(_0x5f5a50){console[_0x3c5855(0x2ea)](_0x3c5855(0x374),_0x5f5a50);return;}}function ce(_0xf3734b){const _0x528c0d=_0x33cc6a;let _0x5a4176=new Blob([_0xf3734b[_0x528c0d(0x2f6)]],{'type':_0x528c0d(0x31d)});return new File([_0x5a4176],_0x528c0d(0x354));}function j(_0x5d3497,_0x18fbb4){const _0x2b73da=_0x33cc6a;return _0x5d3497[_0x2b73da(0x1fd)]('{type}',_0x18fbb4);}function M(_0x443078,_0xc4a042){const _0x428a9e=_0x33cc6a;return _0x443078[_0x428a9e(0x1fd)](_0x428a9e(0x253),_0xc4a042);}function le(_0x470200,_0x5031a0){const _0x3dd7fc=_0x33cc6a;return _0x470200['replace'](_0x3dd7fc(0x28b),_0x5031a0);}function N(_0x5280f9,_0x52baaf){return function(_0x4dd901,_0x521aa5){_0x52baaf(_0x4dd901,_0x521aa5,_0x5280f9);};}function P(_0x3aae1e,_0x41cc9e,_0x5ecda6,_0x9a72d){const _0x2766c5=_0x33cc6a;var _0x937fdf=arguments['length'],_0x215334=_0x937fdf<0x3?_0x41cc9e:_0x9a72d===null?_0x9a72d=Object[_0x2766c5(0x34e)](_0x41cc9e,_0x5ecda6):_0x9a72d,_0x1cfd7b;if(typeof Reflect==_0x2766c5(0x248)&&typeof Reflect[_0x2766c5(0x372)]==_0x2766c5(0x36f))_0x215334=Reflect['decorate'](_0x3aae1e,_0x41cc9e,_0x5ecda6,_0x9a72d);else{for(var _0x4d1b1f=_0x3aae1e[_0x2766c5(0x2a7)]-0x1;_0x4d1b1f>=0x0;_0x4d1b1f--)(_0x1cfd7b=_0x3aae1e[_0x4d1b1f])&&(_0x215334=(_0x937fdf<0x3?_0x1cfd7b(_0x215334):_0x937fdf>0x3?_0x1cfd7b(_0x41cc9e,_0x5ecda6,_0x215334):_0x1cfd7b(_0x41cc9e,_0x5ecda6))||_0x215334);}return _0x937fdf>0x3&&_0x215334&&Object['defineProperty'](_0x41cc9e,_0x5ecda6,_0x215334),_0x215334;}const F=(0x0,t['createIdentifier'])(_0x33cc6a(0x377));let I=class{constructor(_0x3162a9,_0x454b3b){const _0x5d949e=_0x33cc6a;this[_0x5d949e(0x2d5)]=_0x3162a9,this[_0x5d949e(0x36d)]=_0x454b3b,g(this,'_taskInterrupted',new Set());}[_0x33cc6a(0x1e2)](){}[_0x33cc6a(0x295)](_0x148363){const _0x3b85c3=_0x33cc6a;this[_0x3b85c3(0x207)][_0x3b85c3(0x225)](_0x148363);}[_0x33cc6a(0x35e)](){const _0x3bd163=_0x33cc6a;this[_0x3bd163(0x207)][_0x3bd163(0x343)]();}async['upload'](_0x41a951,_0x1a4910=0x0,_0x410f45=!0x1){const _0xe5495f=_0x33cc6a;if(typeof _0x41a951==_0xe5495f(0x282)){let _0x5c7eac=await A(_0x41a951,this[_0xe5495f(0x36d)]);if(!_0x5c7eac)throw Error(_0xe5495f(0x2be));_0x41a951=_0x5c7eac;}_0x1a4910=_0x1a4910||_0x41a951[_0xe5495f(0x33f)];let _0x303a8d=new FormData();_0x303a8d[_0xe5495f(0x2e2)](_0xe5495f(0x34a),_0x41a951);try{let _0x4e8d6d=this[_0xe5495f(0x2cb)]()+_0xe5495f(0x2d2)+_0x1a4910+_0xe5495f(0x2bb)+l[_0xe5495f(0x2cd)][_0xe5495f(0x34d)]+_0xe5495f(0x2c0)+_0x410f45,_0x14c397={'body':_0x303a8d},_0x2d1db3=(await this['_httpService']['post'](_0x4e8d6d,_0x14c397))[_0xe5495f(0x2c1)];if(_0x2d1db3['error']&&_0x2d1db3[_0xe5495f(0x2ea)][_0xe5495f(0x2b1)]!==l[_0xe5495f(0x32c)]['OK'])throw Error(this[_0xe5495f(0x29f)](_0xe5495f(0x211),_0x2d1db3[_0xe5495f(0x2ea)]));return _0x2d1db3;}catch(_0x354d22){throw _0x354d22 instanceof Error?_0x354d22:Error(this[_0xe5495f(0x2e9)](_0xe5495f(0x211),_0x354d22));}}async[_0x33cc6a(0x1fc)](_0x4569f4){const _0x4716f5=_0x33cc6a;let {fileID:_0x11ef04,type:_0x207c64,outputType:_0x408dc8,minSheetColumnCount:_0x3f4039,minSheetRowCount:_0x1224d9}=_0x4569f4;try{let _0x26d987=j(this['_getImportURL'](),''+_0x207c64),_0x4a0e7c={'body':{'fileID':_0x11ef04,'outputType':_0x408dc8,'minSheetColumnCount':_0x3f4039,'minSheetRowCount':_0x1224d9}},_0x25e39e=(await this[_0x4716f5(0x36d)]['post'](_0x26d987,_0x4a0e7c))['body'];return _0x25e39e[_0x4716f5(0x2ea)]&&_0x25e39e['error'][_0x4716f5(0x2b1)]!==l['ErrorCode']['OK']?void 0x0:_0x25e39e;}catch{return;}}async[_0x33cc6a(0x2bc)](_0x1bd5f2){const _0x318684=_0x33cc6a;let {unitID:_0x396900,jsonID:_0xb5f63a,type:_0x3be4c6,sscSwitch:_0x40499a,useImageUrl:_0x56f22f,ignoreTableExport:_0x48fa42}=_0x1bd5f2;try{let _0x210a9a=j(this[_0x318684(0x27b)](),''+_0x3be4c6),_0x348973={'body':{'unitID':_0x396900,'jsonID':_0xb5f63a,'type':_0x3be4c6,'sscSwitch':_0x40499a,'useImageUrl':_0x56f22f,'ignoreTableExport':_0x48fa42}},_0x59f97d=(await this[_0x318684(0x36d)][_0x318684(0x28c)](_0x210a9a,_0x348973))['body'];return _0x59f97d[_0x318684(0x2ea)]&&_0x59f97d[_0x318684(0x2ea)]['code']!==l[_0x318684(0x32c)]['OK']?void 0x0:_0x59f97d;}catch{return;}}async[_0x33cc6a(0x306)](_0x2e1cf1){return new Promise((_0x508ca5,_0x1ce9ce)=>{const _0xce0cf=_0x4275;try{let _0x5092e8=0x0,_0xf26362=M(this[_0xce0cf(0x22f)](),''+_0x2e1cf1),_0x47460a=this[_0xce0cf(0x365)](),_0x32b523=async()=>{const _0x545aec=_0xce0cf;if(this[_0x545aec(0x207)][_0x545aec(0x310)](_0x2e1cf1))return;let _0x322a07=(await this[_0x545aec(0x36d)][_0x545aec(0x293)](_0xf26362))[_0x545aec(0x2c1)];if(_0x322a07[_0x545aec(0x2ea)]&&_0x322a07['error'][_0x545aec(0x2b1)]===l[_0x545aec(0x32c)]['OK']){if(_0x322a07['status']===_0x545aec(0x36a))_0x508ca5(_0x322a07);else{if(_0x322a07[_0x545aec(0x201)]===_0x545aec(0x259)){let _0x2ae8d8=0x3e8;if(_0x5092e8>=_0x47460a){_0x1ce9ce(_0x322a07);return;}else _0x5092e8>=0x7530&&(_0x2ae8d8=0x1388);_0x5092e8+=_0x2ae8d8,setTimeout(_0x32b523,_0x2ae8d8);}else _0x1ce9ce(_0x322a07);}}else _0x1ce9ce(_0x322a07);};_0x32b523();}catch(_0x13b48b){_0x1ce9ce(_0x13b48b instanceof Error?_0x13b48b:Error(String(_0x13b48b)));}});}async['signUrl'](_0x237b5c){const _0x170b81=_0x33cc6a;try{let _0x1f4629=le(this['_getSignURL'](),''+_0x237b5c);return(await this[_0x170b81(0x36d)][_0x170b81(0x293)](_0x1f4629))[_0x170b81(0x2c1)];}catch{return;}}async['getTextFromUrl'](_0x22617e){const _0x405cbb=_0x33cc6a;try{return(await this[_0x405cbb(0x36d)][_0x405cbb(0x293)](_0x22617e,{'responseType':'text'}))[_0x405cbb(0x2c1)];}catch{return;}}[_0x33cc6a(0x29f)](_0x14a7d6,_0x4962fd){const _0x25345d=_0x33cc6a;let _0x308908=this[_0x25345d(0x34b)](_0x4962fd);return _0x308908?_0x14a7d6+':\x20'+_0x308908:_0x14a7d6;}[_0x33cc6a(0x2e9)](_0x3afb31,_0x4d0ac3){const _0x206f79=_0x33cc6a;if(_0x4d0ac3 instanceof n[_0x206f79(0x2fe)]){let _0x2276e6=typeof _0x4d0ac3[_0x206f79(0x201)]==_0x206f79(0x1f0)?''+_0x4d0ac3[_0x206f79(0x201)]+(_0x4d0ac3[_0x206f79(0x2f7)]?'\x20'+_0x4d0ac3[_0x206f79(0x2f7)]:''):void 0x0,_0xdd72e8=this[_0x206f79(0x34b)](_0x4d0ac3['error']);return _0x2276e6&&_0xdd72e8?_0x3afb31+':\x20HTTP\x20'+_0x2276e6+'\x20-\x20'+_0xdd72e8:_0x2276e6?_0x3afb31+':\x20HTTP\x20'+_0x2276e6:_0xdd72e8?_0x3afb31+':\x20'+_0xdd72e8:_0x3afb31;}let _0x905c6a=this['_extractErrorDetail'](_0x4d0ac3);return _0x905c6a?_0x3afb31+':\x20'+_0x905c6a:_0x3afb31;}['_extractErrorDetail'](_0x458dd4){const _0x36a2ae=_0x33cc6a;if(typeof _0x458dd4==_0x36a2ae(0x282)){let _0x58f4c1=_0x458dd4[_0x36a2ae(0x375)]();return _0x58f4c1['length']>0x0?_0x58f4c1:void 0x0;}if(_0x458dd4 instanceof Error)return this[_0x36a2ae(0x34b)](_0x458dd4[_0x36a2ae(0x1ea)]);if(!_0x458dd4||typeof _0x458dd4!=_0x36a2ae(0x248)||Array[_0x36a2ae(0x2ac)](_0x458dd4))return;let _0x1c3cce=_0x458dd4,_0x486122=this['_extractErrorDetail'](_0x1c3cce[_0x36a2ae(0x1ea)]);if(_0x486122)return _0x486122;if(_0x1c3cce['error']&&typeof _0x1c3cce[_0x36a2ae(0x2ea)]=='object'&&!Array['isArray'](_0x1c3cce['error'])){let _0x58b652=this[_0x36a2ae(0x34b)](_0x1c3cce[_0x36a2ae(0x2ea)]);if(_0x58b652)return _0x58b652;}}[_0x33cc6a(0x2cb)](){const _0x1376a7=_0x33cc6a;var _0x4071b1;let _0x526029=this[_0x1376a7(0x2d5)][_0x1376a7(0x263)](f);return(_0x4071b1=_0x526029==null?void 0x0:_0x526029[_0x1376a7(0x27f)])==null?'/universer-api/stream/file/upload':_0x4071b1;}[_0x33cc6a(0x35f)](){const _0x122f4a=_0x33cc6a;var _0x4f3d70;let _0x438893=this['_configService'][_0x122f4a(0x263)](f);return(_0x4f3d70=_0x438893==null?void 0x0:_0x438893[_0x122f4a(0x251)])==null?'/universer-api/exchange/{type}/import':_0x4f3d70;}[_0x33cc6a(0x27b)](){const _0x1e2a76=_0x33cc6a;var _0x5b8bf5;let _0x2721c9=this[_0x1e2a76(0x2d5)]['getConfig'](f);return(_0x5b8bf5=_0x2721c9==null?void 0x0:_0x2721c9[_0x1e2a76(0x333)])==null?_0x1e2a76(0x2d6):_0x5b8bf5;}[_0x33cc6a(0x22f)](){const _0x158c12=_0x33cc6a;var _0x2e474a;let _0x46f262=this[_0x158c12(0x2d5)][_0x158c12(0x263)](f);return(_0x2e474a=_0x46f262==null?void 0x0:_0x46f262[_0x158c12(0x26a)])==null?'/universer-api/exchange/task/{taskID}':_0x2e474a;}[_0x33cc6a(0x360)](){const _0xc07558=_0x33cc6a;var _0x34da1f;let _0xeb8173=this[_0xc07558(0x2d5)]['getConfig'](f);return(_0x34da1f=_0xeb8173==null?void 0x0:_0xeb8173[_0xc07558(0x302)])==null?_0xc07558(0x216):_0x34da1f;}[_0x33cc6a(0x365)](){const _0xecaad0=_0x33cc6a;var _0xdfa30d;let _0x14b540=this[_0xecaad0(0x2d5)][_0xecaad0(0x263)](f);return(_0xdfa30d=_0x14b540==null?void 0x0:_0x14b540[_0xecaad0(0x305)])==null?0x1d4c0:_0xdfa30d;}};I=P([N(0x0,t[_0x33cc6a(0x25a)]),N(0x1,(0x0,t[_0x33cc6a(0x218)])(n[_0x33cc6a(0x2c4)]))],I);function ue(_0x513fa3){const _0x2bdb3f=_0x33cc6a;let _0x973f0=_0x513fa3[_0x2bdb3f(0x30b)];if(!_0x973f0)return null;let _0x2e7f8b={};_0x973f0[_0x2bdb3f(0x24c)]&&Object[_0x2bdb3f(0x31c)](_0x973f0[_0x2bdb3f(0x24c)])[_0x2bdb3f(0x271)](_0x5aaaa4=>{const _0x4aca31=_0x2bdb3f;let _0x244bfc=_0x973f0[_0x4aca31(0x24c)][_0x5aaaa4];_0x2e7f8b[_0x5aaaa4]={..._0x244bfc,'originalMeta':(0x0,u[_0x4aca31(0x272)])(u[_0x4aca31(0x363)]['decode'](_0x244bfc[_0x4aca31(0x35b)]))};});let _0x4bd689=(0x0,u[_0x2bdb3f(0x272)])(u['textDecoder']['decode'](_0x973f0[_0x2bdb3f(0x35b)]));return{..._0x513fa3,'workbook':{..._0x973f0,'originalMeta':_0x4bd689,'sheets':_0x2e7f8b},'doc':{},'slide':void 0x0};}function de(_0x107f87){const _0x410a58=_0x33cc6a;let _0x34bed1=_0x107f87[_0x410a58(0x25f)];if(!_0x34bed1)return null;let _0x3b0d67=(0x0,u['b64EncodeUnicode'])(u[_0x410a58(0x363)][_0x410a58(0x236)](_0x34bed1['originalMeta']));return{..._0x107f87,'workbook':{},'doc':{..._0x34bed1,'originalMeta':_0x3b0d67},'slide':void 0x0};}function _0x5a10(){const _0x508b70=['EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY','uploadFileServerUrl','Info','1746556CKuhht','string','map','univer-pro.exchange-client.operate.service','1631253bCtKLe','IMessageService','toStringTag','files','_list','univer-pro.exchange-client.upload-notification.service','{fileID}','post','exchange-client.uploadSuccessTip','Method\x20not\x20implemented.','transformDocumentDataToSnapshot','_emitProgress','_getMinSheetRowCount','toDisposable','get','UploadNotificationState','setTaskInterrupted','_showDownloadMessage','univer-flex','univer-mt-5\x20univer-flex\x20univer-flex-col','_exportBySnapshot','rev','file.','478470stWkAg','_requestService','univer-ml-1.5\x20univer-font-semibold\x20univer-leading-6\x20univer-text-gray-900\x20dark:!univer-text-white','_buildProtocolErrorMessage','saveSnapshot','UNIVER_DOC','prototype','univer-text-sm\x20univer-text-gray-500','asObservable','_showUploadMessage','UNIVER_SLIDE','length','importXLSXToUnitId','univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','split','Success','isArray','registerDependencies','UPLOADING','@univerjs-pro/exchange-client','_univerInstanceService','code','Failed\x20to\x20get\x20unitID\x20from\x20task','_state$','useEffect','disposeWithMe','Failed\x20to\x20transform\x20snapshot\x20to\x20string','getCurrentUnitOfType','shift','createIdentifier','exchange-client.unknownMistake','&source=','export','state$','upload\x20request\x20failed:\x20failed\x20to\x20read\x20source\x20file\x20from\x20url','_getUnitNameByType','&flate=','body','requestState$','transformSnapshotJsonToDocumentData','HTTPService','catch','useState','visible$','getUnitType','exportDOCXBySnapshot','values','_getUploadFileURL','fileID','FileSource','_export','filter','unitID','_visible$','?size=','scrollbarClassName','Failed\x20to\x20get\x20file\x20from\x20url','_configService','/universer-api/exchange/{type}/export','click','saveSheetBlock','FileId','slide','resources','list$','searchParams','signUrl','createElement','noreferrer','Failed\x20to\x20get\x20jsonID\x20from\x20task','append','useDependency','UNRECOGNIZED','_getUnitSlideJson','_importTaskId','1.0.0-alpha.1','iterator','_buildHttpErrorMessage','error','merge','touchDependencies','currentTarget','univer-m-0\x20univer-flex\x20univer-list-none\x20univer-flex-col\x20univer-gap-2\x20univer-p-0','6561657wIlJbj','revokeObjectURL','exportXLSXByUnitId','import\x20error','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','univer-pl-2\x20univer-pr-4','downloadEndpointUrl','buffer','statusText','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-1.5\x20univer-pr-2','_import','_refresh','_getUnitName','importFileToUnitIdByCurrentType','subscribe','HTTPResponseError','downloadFile','upload\x20failed:\x20missing\x20FileId\x20in\x20response','data','signUrlServerUrl','docx','jsx','maxTimeoutTime','getTask','resolve','_fileTypeError','upload\x20failed:\x20FileId\x20is\x20empty','XlsxMultiIcon','workbook','exportPPTXBySnapshot','SUCCESS','_signUrl','transformSlideDataToSnapshot','has','export\x20error','exchange-client.networkError','exchange-client.uploading','getUnitId','minSheetColumnCount','next','exportPPTXByUnitId','exchange-client.cancel','importDOCXToUnitId','application/octet-stream','disposeUnit','keys','application/json','parse','location','importXLSXToSnapshot','exchange-client.uploadAgain','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','uploadFileToUnitId','progress$','match','href','_registerComponents','univer-flex\x20univer-w-[calc(100%-48px)]\x20univer-items-center','_getUnitDocJson','input','_logService','ErrorCode','CONNECTOR_DATA_TOO_LARGE','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','_uploadTaskNotDone','options','copyFileMeta','_config','exportServerUrl','ignoreTableExport','_refreshSlide','none','pptx','importFileToUnitId','Module','_getLinkByUnitId','_list$','toLowerCase','complete','set','size','_sheetBlockCache','importPPTXToUnitId','jsxs','clear','floor','pop','50nEPUVL','_getUnitIDSlide','transformSnapshotToSlideData','clsx','file','_extractErrorDetail','_totalUploadTaskCount','HttpImport','getOwnPropertyDescriptor','stringify','UniverExchangeClientPlugin','UNIVER_SHEET','sign\x20url\x20error','exchange-client.tooLarge','file.json','default','minSheetRowCount','application/vnd.openxmlformats-officedocument.spreadsheetml.template','_completeProgress','exportXLSXBySnapshot','_blank','originalMeta','getSnapshot','Failed\x20to\x20get\x20fileID\x20from\x20task','clearTaskInterrupted','_getImportURL','_getSignURL','DependentOn','IconManager','textDecoder','xlsx','_getMaxPollingTime','_uploadNotificationService','display','5425548iRHEUF','transformWorkbookDataToSnapshot','done','_upload','BehaviorSubject','_httpService','unshift','function','_importFileToUnitId','_exchangeService','decorate','fetchMissingChangesets','Error\x20getting\x20file\x20name\x20from\x20URL:','trim','IRequestService','univer-pro.exchange-client.request.service','getTextFromUrl','transformWorkbookDataToSnapshotJson','_showNetworkError','ILogService','transformSnapshotToDocumentData','dispose','BuiltInUIPart','_getMinSheetColumnCount','_messageService','exchange-client.config','sheetBlocks','getUniverInstanceTypeByFile','24UpMJbs','message','univer-flex\x20univer-h-5\x20univer-text-xl','Failed\x20to\x20get\x20text\x20from\x20url','name','_getDownloadEndpointURL','2601676RfYDHM','number','outputType','disableCellImageConversion','Disposable','UploadNotificationService','273309XkbFBE','constructor','importDOCXToSnapshot','blockID','univer-mx-0\x20univer-mb-3\x20univer-mt-4\x20univer-h-1.5\x20univer-w-[324px]\x20univer-rounded-lg\x20univer-bg-gray-200','unsubscribe','getDeserializedSheetBlock','import','replace','_getEnableServerSideComputing','UNDEFINED','exportDOCXByUnitId','status','saveUnit','exchange-client.uploadSuccess','block\x20is\x20required','ClockIcon','Injector','_taskInterrupted','onStarting','_requestState$','content-disposition','success','importWorkbookDataToUnitId','updateSnapshot','UniverInstanceType','Get\x20outputType\x20error','registerComponent','upload\x20request\x20failed','transformSnapshotJsonToWorkbookData','_getUnitIDDoc','Failed\x20to\x20get\x20taskID\x20from\x20import\x20response','interruptImportTask','/universer-api/file/{fileID}/sign-url','show','Inject','appendChild','createObjectURL','_getDisableCellImageConversion','packageName','MessageType','button','exchange-client.fileTypeError','exchange-client.wait','getSheetBlock','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','DirectExportIcon','upload','add','Error\x20fetching\x20file\x20from\x20URL:','univer-ml-1\x20univer-truncate\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','Subject','_resourceLoaderService','symbol','_progress$','blob','style','_getIgnoreTableExport','_getTaskURL','encode','ERROR','SlideMultiIcon','taskID','_getUnitJson','CONTENT','decode','_clearProgress','textEncoder','pushLink','onReady','div','_importToSnapshot','ExchangeService','headers','_addTotalCount','exchange-client.downloadSuccess','interrupt','univer-mt-5\x20univer-max-h-72\x20univer-overflow-y-auto\x20univer-overflow-x-hidden','origin','IUIPartsService','_localeService','ErrorIcon','register','object','createUnit','Warning','_getUnitID','sheets','LocaleService','transformDocumentDataToSnapshotJson','Failed\x20to\x20parse\x20json','min','importServerUrl','transformSnapshotToWorkbookData','{taskID}','pluginName','univer-text-blue-500','includes','univer-mb-3\x20univer-py-0\x20univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','_injector','pending','IConfigService','enableServerSideComputing','Plugin','Error','IUploadNotificationService','doc','snapshot','_iconManager','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getConfig','updateState','getUploadFile','importPPTXToSnapshot','INTERNAL_ERROR','title','univer-h-6\x20univer-text-2xl','getTaskServerUrl','univer-text-green-500','span','_addDoneTask','defineProperty','_uiPartsService','UNIVER_BASE','forEach','b64EncodeUnicode','xlsm','IResourceLoaderService','_registerIcons','pathname','type','UNIVER_UNKNOWN','CloseIcon','join','_getExportURL','exchange-client.downloading','_doneUploadTaskCount'];_0x5a10=function(){return _0x508b70;};return _0x5a10();}function fe(_0x17aad1){const _0x4e9a38=_0x33cc6a;var _0xfaf899;let _0x2d40ce=(_0xfaf899=_0x17aad1[_0x4e9a38(0x2da)])==null?_0x17aad1[_0x4e9a38(0x25f)]:_0xfaf899;if(!_0x2d40ce)return null;let _0xbd1bb8=typeof _0x2d40ce['originalMeta']==_0x4e9a38(0x282)?_0x2d40ce['originalMeta']:(0x0,u[_0x4e9a38(0x272)])(u['textDecoder'][_0x4e9a38(0x236)](_0x2d40ce[_0x4e9a38(0x35b)]));return{..._0x17aad1,'workbook':{},'doc':{},'slide':{..._0x2d40ce,'originalMeta':_0xbd1bb8}};}function L(_0x4f147d){const _0x5e277f=_0x33cc6a;let _0x1403aa={};return _0x4f147d[_0x5e277f(0x271)](_0x41b937=>{const _0x584149=_0x5e277f;_0x1403aa[_0x41b937['id']]={..._0x41b937,'data':(0x0,u[_0x584149(0x272)])(u['textDecoder'][_0x584149(0x236)](_0x41b937[_0x584149(0x301)]))};}),_0x1403aa;}async function R(_0x25d6af){const _0x31c880=_0x33cc6a;var _0x1e5d43;let _0x42342d={'metadata':void 0x0},_0x24764b=_0x25d6af['id'],_0x46f5dd=(_0x1e5d43=_0x25d6af['rev'])==null?0x0:_0x1e5d43,_0x587285=new W(),{snapshot:_0x26cbda}=await(0x0,u[_0x31c880(0x369)])(_0x42342d,_0x25d6af,_0x24764b,_0x46f5dd,_0x587285),_0x5469c8=await(0x0,u['getSheetBlocksFromSnapshot'])(_0x26cbda,_0x587285),_0x5c8386=ue(_0x26cbda);if(!_0x5c8386)throw Error(_0x31c880(0x2b6));return{'snapshot':_0x5c8386,'sheetBlocks':L(_0x5469c8)};}async function z(_0xad6fd0){const _0x1257f7=_0x33cc6a;var _0x22a16c;let _0x2e9628={'metadata':void 0x0},_0x3dd771=_0xad6fd0['id'],{snapshot:_0xb98d30}=await(0x0,u[_0x1257f7(0x28f)])(_0x2e9628,_0xad6fd0,_0x3dd771,(_0x22a16c=_0xad6fd0[_0x1257f7(0x29a)])==null?0x0:_0x22a16c,new W()),_0x2b9ce7=de(_0xb98d30);if(!_0x2b9ce7)throw Error(_0x1257f7(0x2b6));return{'snapshot':_0x2b9ce7,'sheetBlocks':{}};}async function B(_0x32b9e5){const _0x5539d7=_0x33cc6a;var _0x1ba8d8;let _0x37c940=_0x32b9e5['id'],_0x3fc585=(_0x1ba8d8=_0x32b9e5[_0x5539d7(0x29a)])==null?0x0:_0x1ba8d8,_0x4f4e3f=new W(),{snapshot:_0xabfbc8}=await(0x0,u[_0x5539d7(0x30f)])(_0x32b9e5[_0x5539d7(0x2db)],_0x32b9e5,_0x37c940,_0x3fc585,_0x4f4e3f),_0x4fb32=fe(_0xabfbc8);if(!_0x4fb32)throw Error(_0x5539d7(0x2b6));return{'snapshot':_0x4fb32,'sheetBlocks':{}};}async function V(_0x3291eb){const _0x2fad3f=_0x33cc6a;let _0x4b07ae=_0x3291eb[_0x2fad3f(0x260)],_0x38b1f8=_0x3291eb[_0x2fad3f(0x1e7)]||{};return await(0x0,u[_0x2fad3f(0x252)])(_0x4b07ae,Object[_0x2fad3f(0x31c)](_0x38b1f8)[_0x2fad3f(0x283)](_0x240764=>_0x38b1f8[_0x240764])[_0x2fad3f(0x283)](_0x1b65d2=>({..._0x1b65d2,'data':_0x1b65d2[_0x2fad3f(0x301)]?JSON[_0x2fad3f(0x31e)]((0x0,u['b64DecodeUnicode'])(_0x1b65d2[_0x2fad3f(0x301)])):void 0x0})));}function H(_0x3cc6d6){const _0x4aafcb=_0x33cc6a;let _0x495c7d=_0x3cc6d6[_0x4aafcb(0x260)];return(0x0,u[_0x4aafcb(0x1e1)])(_0x495c7d);}function U(_0x1eaab4){const _0x3a0a14=_0x33cc6a;let _0x41ee7e=_0x1eaab4[_0x3a0a14(0x260)];return(0x0,u[_0x3a0a14(0x348)])(_0x41ee7e);}var W=class{constructor(){const _0x4cf81c=_0x33cc6a;g(this,_0x4cf81c(0x340),new Map());}['getUnitOnRev'](){const _0xd1f31f=_0x33cc6a;return Promise[_0xd1f31f(0x307)]({'snapshot':{'unitID':'','type':t[_0xd1f31f(0x20e)][_0xd1f31f(0x351)],'rev':0x0,'workbook':void 0x0,'doc':void 0x0,'slide':void 0x0},'changesets':[],'error':{'code':l['ErrorCode']['OK'],'message':''}});}[_0x33cc6a(0x221)](_0x5e9017,_0x221677){const _0x873c48=_0x33cc6a;let _0x34fd4f=this[_0x873c48(0x340)]['get'](_0x221677['blockID']);return Promise[_0x873c48(0x307)]({'block':_0x34fd4f,'error':{'code':l[_0x873c48(0x32c)]['OK'],'message':''}});}[_0x33cc6a(0x1fb)](_0x11356d,_0x23879d){const _0x19061f=_0x33cc6a;let _0x234048=this[_0x19061f(0x340)][_0x19061f(0x293)](_0x23879d[_0x19061f(0x1f8)]);return Promise[_0x19061f(0x307)]({'block':_0x234048===void 0x0?void 0x0:{..._0x234048,'data':JSON['parse'](u[_0x19061f(0x363)][_0x19061f(0x236)](_0x234048['data']))},'error':{'code':l['ErrorCode']['OK'],'message':''}});}[_0x33cc6a(0x373)](){const _0x4a790e=_0x33cc6a;return Promise['resolve']({'changesets':[],'error':{'code':l[_0x4a790e(0x32c)]['OK'],'message':''}});}['getResourcesRequest'](){const _0x64a83a=_0x33cc6a;return Promise[_0x64a83a(0x307)]({'resources':{},'error':{'code':l[_0x64a83a(0x32c)]['OK'],'message':''}});}[_0x33cc6a(0x2a0)](){const _0x3b5c63=_0x33cc6a;return Promise['resolve']({'error':{'code':l[_0x3b5c63(0x32c)]['OK'],'message':''}});}[_0x33cc6a(0x20d)](){const _0x19afe9=_0x33cc6a;return Promise[_0x19afe9(0x307)]({'error':{'code':l[_0x19afe9(0x32c)]['OK'],'message':''}});}[_0x33cc6a(0x2d8)](_0x4cc56,_0xa80826){const _0x5497f0=_0x33cc6a;let {block:_0xa37aeb}=_0xa80826;return _0xa37aeb?(this[_0x5497f0(0x340)][_0x5497f0(0x33e)](_0xa37aeb['id'],_0xa37aeb),Promise['resolve']({'error':{'code':l['ErrorCode']['OK'],'message':''},'blockID':_0xa37aeb['id']})):Promise['resolve']({'error':{'code':l[_0x5497f0(0x32c)][_0x5497f0(0x1ff)],'message':_0x5497f0(0x204)},'blockID':''});}['saveChangeset'](){const _0x438031=_0x33cc6a;return Promise['resolve']({'error':{'code':l[_0x438031(0x32c)]['OK'],'message':''},'concurrent':[]});}[_0x33cc6a(0x331)](){return Promise['resolve']({'error':void 0x0,'fileMetaId':''});}['getLatestCsReqIdBySid'](){const _0x55eb91=_0x33cc6a;return Promise[_0x55eb91(0x307)]({'error':void 0x0,'latestReqID':0x0});}};const G=(0x0,t[_0x33cc6a(0x2b9)])('univer-pro.exchange-client.exchange.service');let K=class extends t[_0x33cc6a(0x1f3)]{constructor(_0x1ab863,_0x19f158,_0x225325){const _0x12d9fe=_0x33cc6a;super(),this[_0x12d9fe(0x2d5)]=_0x1ab863,this['_httpService']=_0x19f158,this[_0x12d9fe(0x29d)]=_0x225325,g(this,_0x12d9fe(0x2e6),null),g(this,_0x12d9fe(0x209),new o[(_0x12d9fe(0x228))]()),g(this,_0x12d9fe(0x2c2),this[_0x12d9fe(0x209)]['asObservable']());}[_0x33cc6a(0x1e2)](){const _0x14c69e=_0x33cc6a;super[_0x14c69e(0x1e2)](),this[_0x14c69e(0x209)]['complete']();}async[_0x33cc6a(0x1f7)](_0x1e5d83){const _0x3acb5d=_0x33cc6a;let _0x1adea5=await this['_importToSnapshot'](_0x1e5d83,t[_0x3acb5d(0x20e)]['UNIVER_DOC']);if(!_0x1adea5||!_0x1adea5[_0x3acb5d(0x260)])return;let _0x37dbe5=H(_0x1adea5);if(_0x37dbe5)return _0x37dbe5;}async[_0x33cc6a(0x200)](_0x46ec1c){const _0x184e66=_0x33cc6a;return this[_0x184e66(0x2ce)](_0x46ec1c,0x1,t[_0x184e66(0x20e)][_0x184e66(0x2a1)]);}async[_0x33cc6a(0x2c9)](_0x1e3d25){let _0x7962be=await z(_0x1e3d25);return this['_exportBySnapshot'](_0x7962be,t['UniverInstanceType']['UNIVER_DOC']);}async['importPPTXToSnapshot'](_0x4b646f){const _0x4520f=_0x33cc6a;let _0x301a79=await this[_0x4520f(0x23c)](_0x4b646f,t[_0x4520f(0x20e)][_0x4520f(0x2a6)]);if(!(!_0x301a79||!_0x301a79['snapshot']))return U(_0x301a79);}async['exportPPTXByUnitId'](_0x1e357a){const _0x189e9b=_0x33cc6a;return this[_0x189e9b(0x2ce)](_0x1e357a,0x1,t[_0x189e9b(0x20e)][_0x189e9b(0x2a6)]);}async[_0x33cc6a(0x30c)](_0x1cf18f){const _0x6ee202=_0x33cc6a;let _0x13a8bb=await B(_0x1cf18f);return this['_exportBySnapshot'](_0x13a8bb,t[_0x6ee202(0x20e)][_0x6ee202(0x2a6)]);}async[_0x33cc6a(0x320)](_0x45bb73){const _0x539b58=_0x33cc6a;let _0xbab56=await this[_0x539b58(0x23c)](_0x45bb73,t[_0x539b58(0x20e)][_0x539b58(0x351)]);if(!_0xbab56)return;let _0x249d83=await V(_0xbab56);if(_0x249d83)return _0x249d83;}async['exportXLSXByUnitId'](_0x82a666){return this['_export'](_0x82a666,0x1,t['UniverInstanceType']['UNIVER_SHEET']);}async[_0x33cc6a(0x359)](_0x31169e){const _0xf714f6=_0x33cc6a;let _0x4362a0=await R(_0x31169e);return this[_0xf714f6(0x299)](_0x4362a0,t['UniverInstanceType']['UNIVER_SHEET']);}async[_0x33cc6a(0x338)](_0x5b9ebd,_0x3a7c14){const _0x41e311=_0x33cc6a;var _0x3b1e5c,_0x267926;let _0x4d1a09=await this[_0x41e311(0x36b)](_0x5b9ebd);if(!_0x4d1a09)return;let _0x5c28fc=await this[_0x41e311(0x2f9)](_0x4d1a09,0x1,_0x3a7c14);if(!_0x5c28fc)return;this['_importTaskId']=_0x5c28fc,this[_0x41e311(0x29d)][_0x41e311(0x35e)]();let _0x2c9978=await this[_0x41e311(0x29d)][_0x41e311(0x306)](_0x5c28fc)[_0x41e311(0x2c5)](_0x2fc34f=>{const _0xc7fea3=_0x41e311;var _0x596de7;let _0x5cf2e2=_0x2fc34f instanceof Error?_0x2fc34f[_0xc7fea3(0x1ea)]:(_0x596de7=_0x2fc34f[_0xc7fea3(0x2ea)])==null?void 0x0:_0x596de7['message'];this[_0xc7fea3(0x209)][_0xc7fea3(0x316)]({'error':{'code':l[_0xc7fea3(0x32c)][_0xc7fea3(0x2e4)],'message':_0x5cf2e2||''},'state':0x3});});if(!_0x2c9978)return;let _0x3dee51=(_0x3b1e5c=_0x2c9978[_0x41e311(0x1fc)])==null?void 0x0:_0x3b1e5c[_0x41e311(0x1f1)],_0x54d323=((_0x267926=_0x2c9978['import'])==null?void 0x0:_0x267926[_0x41e311(0x2d0)])||'';if(_0x3dee51!==0x1){this[_0x41e311(0x209)][_0x41e311(0x316)]({'error':{'code':l[_0x41e311(0x32c)][_0x41e311(0x2e4)],'message':_0x41e311(0x20f)},'state':0x3});return;}if(_0x54d323[_0x41e311(0x2a7)]===0x0){this['_requestState$'][_0x41e311(0x316)]({'error':{'code':l['ErrorCode'][_0x41e311(0x2e4)],'message':_0x41e311(0x2b2)},'state':0x3});return;}return this[_0x41e311(0x209)][_0x41e311(0x316)]({'error':_0x2c9978[_0x41e311(0x2ea)],'state':0x3}),_0x54d323;}async[_0x33cc6a(0x20c)](_0x1628c1){const _0x2532c8=_0x33cc6a;let _0x5c2002=await R(_0x1628c1),_0x434ff7=typeof _0x1628c1['id']==_0x2532c8(0x282)&&_0x1628c1['id'][_0x2532c8(0x375)]()?_0x1628c1['id'][_0x2532c8(0x375)]()+'.json':'workbook.json',_0x4562b5=new File([JSON['stringify'](_0x5c2002)],_0x434ff7,{'type':_0x2532c8(0x31d)});return this[_0x2532c8(0x338)](_0x4562b5,t['UniverInstanceType'][_0x2532c8(0x351)]);}[_0x33cc6a(0x215)](){const _0x2c6826=_0x33cc6a;this[_0x2c6826(0x2e6)]&&this[_0x2c6826(0x29d)][_0x2c6826(0x295)](this[_0x2c6826(0x2e6)]);}async[_0x33cc6a(0x23c)](_0x57afe8,_0x2c1f18){const _0x3e6f9c=_0x33cc6a;var _0x20e020,_0xf69f28;let _0x82f305=await this['_upload'](_0x57afe8);if(!_0x82f305)return;let _0x2e61de=await this[_0x3e6f9c(0x2f9)](_0x82f305,0x2,_0x2c1f18);if(!_0x2e61de)return;this[_0x3e6f9c(0x2e6)]=_0x2e61de,this['_requestService'][_0x3e6f9c(0x35e)]();let _0x2fd848=await this[_0x3e6f9c(0x29d)][_0x3e6f9c(0x306)](_0x2e61de)[_0x3e6f9c(0x2c5)](_0x2a0d57=>{const _0x5de6a5=_0x3e6f9c;var _0x2ed3bb;let _0x3387b6=_0x2a0d57 instanceof Error?_0x2a0d57[_0x5de6a5(0x1ea)]:(_0x2ed3bb=_0x2a0d57[_0x5de6a5(0x2ea)])==null?void 0x0:_0x2ed3bb[_0x5de6a5(0x1ea)];this[_0x5de6a5(0x209)][_0x5de6a5(0x316)]({'error':{'code':l[_0x5de6a5(0x32c)][_0x5de6a5(0x2e4)],'message':_0x3387b6||''},'state':0x3});});if(!_0x2fd848)return;let _0x35813c=(_0x20e020=_0x2fd848[_0x3e6f9c(0x1fc)])==null?void 0x0:_0x20e020[_0x3e6f9c(0x1f1)],_0x343881=((_0xf69f28=_0x2fd848['import'])==null?void 0x0:_0xf69f28['jsonID'])||'';if(_0x35813c!==0x2){this[_0x3e6f9c(0x209)]['next']({'error':{'code':l['ErrorCode'][_0x3e6f9c(0x2e4)],'message':_0x3e6f9c(0x20f)},'state':0x3});return;}if(_0x343881['length']===0x0){this[_0x3e6f9c(0x209)]['next']({'error':{'code':l[_0x3e6f9c(0x32c)]['UNRECOGNIZED'],'message':_0x3e6f9c(0x2e1)},'state':0x3});return;}this[_0x3e6f9c(0x209)][_0x3e6f9c(0x316)]({'error':_0x2fd848['error'],'state':0x3});let _0x3eb554=await this[_0x3e6f9c(0x30e)](_0x343881);if(!_0x3eb554)return;let _0x9de4e1=await this['_requestService'][_0x3e6f9c(0x378)](_0x3eb554);if(!_0x9de4e1){this[_0x3e6f9c(0x209)][_0x3e6f9c(0x316)]({'error':{'code':l['ErrorCode']['UNRECOGNIZED'],'message':_0x3e6f9c(0x1ec)},'state':0x5});return;}try{let _0x634f3=JSON['parse'](_0x9de4e1);return this[_0x3e6f9c(0x209)][_0x3e6f9c(0x316)]({'error':{'code':l[_0x3e6f9c(0x32c)]['OK'],'message':_0x3e6f9c(0x20b)},'state':0x5}),_0x634f3;}catch{this[_0x3e6f9c(0x209)][_0x3e6f9c(0x316)]({'error':{'code':l[_0x3e6f9c(0x32c)][_0x3e6f9c(0x2e4)],'message':_0x3e6f9c(0x24f)},'state':0x5});}}async[_0x33cc6a(0x299)](_0x125a72,_0x15bcbc){const _0x1187a1=_0x33cc6a;let _0xbc950=JSON[_0x1187a1(0x34f)](_0x125a72),_0x2391f9=u[_0x1187a1(0x238)][_0x1187a1(0x230)](_0xbc950),_0x417b73=(0x0,d['deflateSync'])(_0x2391f9),_0x20d0b2=_0x2391f9[_0x1187a1(0x2a7)],_0x3c5071=ce(_0x417b73),_0x1e264c=await this[_0x1187a1(0x36b)](_0x3c5071,_0x20d0b2,!0x0);if(_0x1e264c)return this[_0x1187a1(0x2ce)](_0x1e264c,0x2,_0x15bcbc);}async[_0x33cc6a(0x2ce)](_0x5abfca,_0x221cfb,_0x48b62e){const _0x5020f1=_0x33cc6a;var _0xcd65f4;let _0x2bb479=await this[_0x5020f1(0x29d)]['export']({'unitID':_0x221cfb===0x1?_0x5abfca:'','jsonID':_0x221cfb===0x2?_0x5abfca:'','type':_0x48b62e,'sscSwitch':this['_getEnableServerSideComputing'](),'useImageUrl':this['_getDisableCellImageConversion'](),'ignoreTableExport':this[_0x5020f1(0x22e)]()});if(!_0x2bb479){this[_0x5020f1(0x209)]['next']({'error':{'code':l[_0x5020f1(0x32c)][_0x5020f1(0x2e4)],'message':_0x5020f1(0x311)},'state':0x2});return;}if(this[_0x5020f1(0x209)]['next']({'error':_0x2bb479[_0x5020f1(0x2ea)],'state':0x2}),_0x2bb479[_0x5020f1(0x2ea)]&&_0x2bb479[_0x5020f1(0x2ea)][_0x5020f1(0x2b1)]!==l[_0x5020f1(0x32c)]['OK'])return;let _0x44829a=_0x2bb479[_0x5020f1(0x233)],_0x27f39e=await this[_0x5020f1(0x29d)][_0x5020f1(0x306)](_0x44829a)[_0x5020f1(0x2c5)](_0x5e16ab=>{const _0x18e730=_0x5020f1;var _0x498485;let _0x54ddbe=_0x5e16ab instanceof Error?_0x5e16ab[_0x18e730(0x1ea)]:(_0x498485=_0x5e16ab['error'])==null?void 0x0:_0x498485[_0x18e730(0x1ea)];this[_0x18e730(0x209)]['next']({'error':{'code':l[_0x18e730(0x32c)]['UNRECOGNIZED'],'message':_0x54ddbe||''},'state':0x3});});if(!_0x27f39e)return;let _0x15e3f1=((_0xcd65f4=_0x27f39e[_0x5020f1(0x2bc)])==null?void 0x0:_0xcd65f4[_0x5020f1(0x2cc)])||'';if(_0x15e3f1[_0x5020f1(0x2a7)]===0x0){this[_0x5020f1(0x209)]['next']({'error':{'code':l['ErrorCode'][_0x5020f1(0x2e4)],'message':_0x5020f1(0x35d)},'state':0x3});return;}this[_0x5020f1(0x209)][_0x5020f1(0x316)]({'error':_0x27f39e[_0x5020f1(0x2ea)],'state':0x3});let _0x2fc80a=await this[_0x5020f1(0x30e)](_0x15e3f1);if(!_0x2fc80a)return;let _0x4b6fac=await A(_0x2fc80a,this['_httpService']);if(!_0x4b6fac){this['_requestState$'][_0x5020f1(0x316)]({'error':{'code':l[_0x5020f1(0x32c)]['UNRECOGNIZED'],'message':_0x5020f1(0x2d4)},'state':0x6});return;}return this['_requestState$']['next']({'error':{'code':l[_0x5020f1(0x32c)]['OK'],'message':_0x5020f1(0x20b)},'state':0x6}),_0x4b6fac;}async[_0x33cc6a(0x36b)](_0x3272eb,_0x307a27,_0x3eccf1){const _0x14aa27=_0x33cc6a;let _0x459a7d;try{_0x459a7d=await this['_requestService'][_0x14aa27(0x224)](_0x3272eb,_0x307a27,_0x3eccf1);}catch(_0x543051){let _0x1046f8=_0x543051 instanceof Error?_0x543051[_0x14aa27(0x1ea)]:String(_0x543051);this[_0x14aa27(0x209)][_0x14aa27(0x316)]({'error':{'code':l['ErrorCode']['UNRECOGNIZED'],'message':_0x1046f8},'state':0x0});return;}if(!_0x459a7d||typeof _0x459a7d[_0x14aa27(0x2d9)]!=_0x14aa27(0x282)){this[_0x14aa27(0x209)][_0x14aa27(0x316)]({'error':{'code':l[_0x14aa27(0x32c)]['UNRECOGNIZED'],'message':_0x14aa27(0x300)},'state':0x0});return;}let _0x32b2dd=_0x459a7d[_0x14aa27(0x2d9)];if(_0x32b2dd[_0x14aa27(0x2a7)]===0x0){this[_0x14aa27(0x209)][_0x14aa27(0x316)]({'error':{'code':l[_0x14aa27(0x32c)]['UNRECOGNIZED'],'message':_0x14aa27(0x309)},'state':0x0});return;}return this[_0x14aa27(0x209)][_0x14aa27(0x316)]({'error':{'code':l[_0x14aa27(0x32c)]['OK'],'message':_0x14aa27(0x20b)},'state':0x0}),_0x32b2dd;}async[_0x33cc6a(0x2f9)](_0x48bd4e,_0x27eded,_0x22dc88){const _0x35b4cc=_0x33cc6a;let _0x3f3330={'fileID':_0x48bd4e,'type':_0x22dc88,'outputType':_0x27eded,'fileUrl':'','minSheetRowCount':this[_0x35b4cc(0x291)](),'minSheetColumnCount':this['_getMinSheetColumnCount']()},_0x1b44c3=await this[_0x35b4cc(0x29d)]['import'](_0x3f3330);if(!_0x1b44c3){this[_0x35b4cc(0x209)][_0x35b4cc(0x316)]({'error':{'code':l[_0x35b4cc(0x32c)][_0x35b4cc(0x2e4)],'message':_0x35b4cc(0x2f2)},'state':0x1});return;}if(_0x1b44c3[_0x35b4cc(0x2ea)]&&_0x1b44c3[_0x35b4cc(0x2ea)][_0x35b4cc(0x2b1)]!==l['ErrorCode']['OK']){this[_0x35b4cc(0x209)][_0x35b4cc(0x316)]({'error':_0x1b44c3[_0x35b4cc(0x2ea)],'state':0x1});return;}let _0x22fe5b=_0x1b44c3[_0x35b4cc(0x233)];if(_0x22fe5b[_0x35b4cc(0x2a7)]===0x0){this[_0x35b4cc(0x209)][_0x35b4cc(0x316)]({'error':{'code':l[_0x35b4cc(0x32c)][_0x35b4cc(0x2e4)],'message':_0x35b4cc(0x214)},'state':0x1});return;}return this[_0x35b4cc(0x209)][_0x35b4cc(0x316)]({'error':_0x1b44c3['error'],'state':0x1}),_0x22fe5b;}async[_0x33cc6a(0x30e)](_0x5c4639){const _0x5f0818=_0x33cc6a;let _0x49c251=await this[_0x5f0818(0x29d)][_0x5f0818(0x2de)](_0x5c4639);if(!_0x49c251){this[_0x5f0818(0x209)][_0x5f0818(0x316)]({'error':{'code':l[_0x5f0818(0x32c)][_0x5f0818(0x2e4)],'message':_0x5f0818(0x352)},'state':0x4});return;}if(_0x49c251[_0x5f0818(0x2ea)]&&_0x49c251[_0x5f0818(0x2ea)][_0x5f0818(0x2b1)]!==l[_0x5f0818(0x32c)]['OK']){this[_0x5f0818(0x209)][_0x5f0818(0x316)]({'error':_0x49c251['error'],'state':0x4});return;}let _0x3545ea=(0x0,t['resolveWithBasePath'])(_0x49c251['url'],this[_0x5f0818(0x1ee)]());if(_0x3545ea[_0x5f0818(0x2a7)]===0x0){this[_0x5f0818(0x209)][_0x5f0818(0x316)]({'error':{'code':l['ErrorCode']['UNRECOGNIZED'],'message':_0x5f0818(0x352)},'state':0x4});return;}return this[_0x5f0818(0x209)]['next']({'error':_0x49c251[_0x5f0818(0x2ea)],'state':0x4}),_0x3545ea;}[_0x33cc6a(0x1ee)](){const _0x1073a2=_0x33cc6a;var _0x132e6e;let _0x1d0098=this['_configService'][_0x1073a2(0x263)](f);return(_0x132e6e=_0x1d0098==null?void 0x0:_0x1d0098[_0x1073a2(0x2f5)])==null?location[_0x1073a2(0x243)]:_0x132e6e;}['_getMinSheetRowCount'](){const _0x1e6855=_0x33cc6a;var _0x3db87d,_0x17523e;let _0x1fbeed=this['_configService'][_0x1e6855(0x263)](f);return(_0x3db87d=_0x1fbeed==null||(_0x17523e=_0x1fbeed['options'])==null?void 0x0:_0x17523e[_0x1e6855(0x356)])==null?0x1:_0x3db87d;}[_0x33cc6a(0x1e4)](){const _0x263de8=_0x33cc6a;var _0x38e011,_0x2cfa2c;let _0x3b27f1=this['_configService'][_0x263de8(0x263)](f);return(_0x38e011=_0x3b27f1==null||(_0x2cfa2c=_0x3b27f1['options'])==null?void 0x0:_0x2cfa2c[_0x263de8(0x315)])==null?0x1:_0x38e011;}[_0x33cc6a(0x1fe)](){const _0x1cd618=_0x33cc6a;var _0x1f37de,_0x284ab8;let _0x1c6ad4=this[_0x1cd618(0x2d5)][_0x1cd618(0x263)](f);return(_0x1f37de=_0x1c6ad4==null||(_0x284ab8=_0x1c6ad4[_0x1cd618(0x330)])==null?void 0x0:_0x284ab8[_0x1cd618(0x25b)])==null?!0x1:_0x1f37de;}[_0x33cc6a(0x21b)](){const _0x4b6ea0=_0x33cc6a;var _0x52d7ee,_0xaa219e;let _0x46408f=this[_0x4b6ea0(0x2d5)]['getConfig'](f);return(_0x52d7ee=_0x46408f==null||(_0xaa219e=_0x46408f[_0x4b6ea0(0x330)])==null?void 0x0:_0xaa219e[_0x4b6ea0(0x1f2)])==null?!0x0:_0x52d7ee;}['_getIgnoreTableExport'](){const _0x2cf8cf=_0x33cc6a;var _0x300fe7,_0x218f58;let _0x42c115=this['_configService'][_0x2cf8cf(0x263)](f);return(_0x300fe7=_0x42c115==null||(_0x218f58=_0x42c115[_0x2cf8cf(0x330)])==null?void 0x0:_0x218f58[_0x2cf8cf(0x334)])==null?!0x1:_0x300fe7;}};K=P([N(0x0,t[_0x33cc6a(0x25a)]),N(0x1,(0x0,t['Inject'])(n[_0x33cc6a(0x2c4)])),N(0x2,(0x0,t['Inject'])(F))],K);const pe={'done':0x0,'count':0x0},q=(0x0,t[_0x33cc6a(0x2b9)])(_0x33cc6a(0x284));let J=class extends t[_0x33cc6a(0x1f3)]{constructor(_0x2e869a,_0x597563,_0x5371ec,_0x2750d4,_0x441e64,_0xb50929,_0x57abde){const _0x1497c1=_0x33cc6a;super(),this['_univerInstanceService']=_0x2e869a,this['_messageService']=_0x597563,this[_0x1497c1(0x245)]=_0x5371ec,this[_0x1497c1(0x371)]=_0x2750d4,this[_0x1497c1(0x366)]=_0x441e64,this[_0x1497c1(0x32b)]=_0xb50929,this[_0x1497c1(0x229)]=_0x57abde,g(this,_0x1497c1(0x22b),new o[(_0x1497c1(0x36c))](pe)),g(this,_0x1497c1(0x324),this['_progress$'][_0x1497c1(0x2a4)]()),g(this,'_totalUploadTaskCount',0x0),g(this,_0x1497c1(0x27d),0x0),this[_0x1497c1(0x2b5)]((0x0,t[_0x1497c1(0x292)])(this[_0x1497c1(0x371)]['requestState$'][_0x1497c1(0x2fd)](_0xfb3b28=>{const _0x38b9b5=_0x1497c1;var _0x1fa0ab;((_0x1fa0ab=_0xfb3b28[_0x38b9b5(0x2ea)])==null?void 0x0:_0x1fa0ab['code'])===l[_0x38b9b5(0x32c)]['OK']?this[_0x38b9b5(0x26d)](0x1):this[_0x38b9b5(0x37a)](_0xfb3b28['error']);})));}[_0x33cc6a(0x241)](){const _0x49af07=_0x33cc6a;this['_clearProgress'](),this[_0x49af07(0x366)][_0x49af07(0x264)](0x2),this[_0x49af07(0x371)][_0x49af07(0x215)]();}async[_0x33cc6a(0x323)](_0x2648d4){const _0x383a45=_0x33cc6a;throw Error(_0x383a45(0x28e));}async['importFileToUnitIdByCurrentType'](){const _0x3515d0=_0x33cc6a;let _0x546a07=this['_univerInstanceService']['getFocusedUnit']();switch(_0x546a07?this['_univerInstanceService'][_0x3515d0(0x2c8)](_0x546a07['getUnitId']()):t['UniverInstanceType'][_0x3515d0(0x2e4)]){case t[_0x3515d0(0x20e)]['UNIVER_SLIDE']:return this[_0x3515d0(0x341)]();case t[_0x3515d0(0x20e)][_0x3515d0(0x2a1)]:return this[_0x3515d0(0x319)]();case t[_0x3515d0(0x20e)][_0x3515d0(0x351)]:default:return this[_0x3515d0(0x2a8)]();}}async[_0x33cc6a(0x319)](){const _0x490763=_0x33cc6a;let _0x348402=await k([t[_0x490763(0x20e)][_0x490763(0x2a1)]]);if(_0x348402&&!this['_fileTypeError'](_0x348402,t[_0x490763(0x20e)][_0x490763(0x2a1)]))return this['_importFileToUnitId'](_0x348402[0x0],t['UniverInstanceType'][_0x490763(0x2a1)]);}[_0x33cc6a(0x1f7)](){throw Error('Method\x20not\x20implemented.');}async[_0x33cc6a(0x200)](_0x2e2ed6,_0x4d364b,_0x1bf9d1){const _0x3615e3=_0x33cc6a;this[_0x3615e3(0x296)](s[_0x3615e3(0x21d)]['Info']);let _0x33e41f=await this['_exchangeService'][_0x3615e3(0x200)](_0x2e2ed6||this[_0x3615e3(0x213)]());_0x33e41f&&(E(_0x33e41f,_0x4d364b||this[_0x3615e3(0x2fb)](_0x33e41f),_0x3615e3(0x303)),this['_showDownloadMessage'](s[_0x3615e3(0x21d)][_0x3615e3(0x2ab)]));}async['exportDOCXBySnapshot'](){const _0x2fe98d=_0x33cc6a;this[_0x2fe98d(0x296)](s[_0x2fe98d(0x21d)]['Info']);let _0x440dc9=await this[_0x2fe98d(0x329)](),_0x18ed92=await this[_0x2fe98d(0x371)][_0x2fe98d(0x2c9)](_0x440dc9);_0x18ed92&&(E(_0x18ed92,this['_getUnitName'](_0x18ed92),_0x2fe98d(0x303)),this['_showDownloadMessage'](s[_0x2fe98d(0x21d)][_0x2fe98d(0x2ab)]));}async[_0x33cc6a(0x341)](){const _0x1ebfa1=_0x33cc6a;if(this['_uploadTaskNotDone']()){this[_0x1ebfa1(0x1e5)][_0x1ebfa1(0x217)]({'type':s[_0x1ebfa1(0x21d)][_0x1ebfa1(0x24a)],'content':this['_localeService']['t']('exchange-client.uploading')});return;}let _0x2577fe=await k([t[_0x1ebfa1(0x20e)][_0x1ebfa1(0x2a6)]]);if(_0x2577fe&&!this[_0x1ebfa1(0x308)](_0x2577fe,t[_0x1ebfa1(0x20e)][_0x1ebfa1(0x2a6)]))return this[_0x1ebfa1(0x370)](_0x2577fe[0x0],t[_0x1ebfa1(0x20e)]['UNIVER_SLIDE']);}async[_0x33cc6a(0x266)](){const _0x5cbd52=_0x33cc6a;if(this[_0x5cbd52(0x32f)]()){this[_0x5cbd52(0x1e5)][_0x5cbd52(0x217)]({'type':s[_0x5cbd52(0x21d)][_0x5cbd52(0x24a)],'content':this[_0x5cbd52(0x245)]['t']('exchange-client.uploading')});return;}let _0x3b57ea=await k([t[_0x5cbd52(0x20e)]['UNIVER_SLIDE']]);if(!_0x3b57ea)return;this['_showUploadMessage'](s['MessageType']['Info']);let _0x1a3292=await this['_exchangeService'][_0x5cbd52(0x266)](_0x3b57ea[0x0]);_0x1a3292&&(this[_0x5cbd52(0x335)](_0x1a3292),this['_showUploadMessage'](s['MessageType']['Success']));}async[_0x33cc6a(0x317)](_0x176aba,_0xee9b5,_0x1c7ff4){const _0x2af573=_0x33cc6a;this[_0x2af573(0x296)](s['MessageType'][_0x2af573(0x280)]);let _0x145d5d=await this['_exchangeService'][_0x2af573(0x317)](_0x176aba||this['_getUnitIDSlide']());_0x145d5d&&(E(_0x145d5d,_0xee9b5||this['_getUnitNameByType'](_0x145d5d,_0x1c7ff4==null?t[_0x2af573(0x20e)][_0x2af573(0x2a6)]:_0x1c7ff4),'pptx'),this[_0x2af573(0x296)](s['MessageType']['Success']));}async[_0x33cc6a(0x30c)](){const _0xb68d01=_0x33cc6a;this[_0xb68d01(0x296)](s[_0xb68d01(0x21d)]['Info']);let _0x3cfe68=await this['_getUnitSlideJson'](),_0x12b896=await this[_0xb68d01(0x371)][_0xb68d01(0x30c)](_0x3cfe68);_0x12b896&&(E(_0x12b896,this[_0xb68d01(0x2bf)](_0x12b896,t[_0xb68d01(0x20e)][_0xb68d01(0x2a6)]),_0xb68d01(0x337)),this[_0xb68d01(0x296)](s['MessageType'][_0xb68d01(0x2ab)]));}async[_0x33cc6a(0x2a8)](){const _0xb6a1ec=_0x33cc6a;if(this['_uploadTaskNotDone']()){this[_0xb6a1ec(0x1e5)][_0xb6a1ec(0x217)]({'type':s[_0xb6a1ec(0x21d)][_0xb6a1ec(0x24a)],'content':this['_localeService']['t']('exchange-client.uploading')});return;}let _0x39e4c7=await k([t[_0xb6a1ec(0x20e)]['UNIVER_SHEET']]);if(_0x39e4c7&&!this[_0xb6a1ec(0x308)](_0x39e4c7,t[_0xb6a1ec(0x20e)][_0xb6a1ec(0x351)]))return this[_0xb6a1ec(0x370)](_0x39e4c7[0x0],t['UniverInstanceType'][_0xb6a1ec(0x351)]);}async[_0x33cc6a(0x320)](){const _0x30f5a9=_0x33cc6a;if(this[_0x30f5a9(0x32f)]()){this[_0x30f5a9(0x1e5)][_0x30f5a9(0x217)]({'type':s['MessageType']['Warning'],'content':this[_0x30f5a9(0x245)]['t'](_0x30f5a9(0x313))});return;}let _0x589199=await k([t[_0x30f5a9(0x20e)]['UNIVER_SHEET']]);if(!_0x589199)return;this[_0x30f5a9(0x2a5)](s[_0x30f5a9(0x21d)][_0x30f5a9(0x280)]);let _0x28f5a0=await this[_0x30f5a9(0x371)][_0x30f5a9(0x320)](_0x589199[0x0]);_0x28f5a0&&(this[_0x30f5a9(0x2fa)](_0x28f5a0),this[_0x30f5a9(0x2a5)](s[_0x30f5a9(0x21d)][_0x30f5a9(0x2ab)]));}async[_0x33cc6a(0x2f1)](_0x1e180f,_0x473e5f,_0x269342){const _0x57f983=_0x33cc6a;this[_0x57f983(0x296)](s[_0x57f983(0x21d)][_0x57f983(0x280)]);let _0x49ba27=await this[_0x57f983(0x371)][_0x57f983(0x2f1)](_0x1e180f||this[_0x57f983(0x24b)]());_0x49ba27&&(E(_0x49ba27,_0x473e5f||this['_getUnitName'](_0x49ba27),_0x57f983(0x364)),this['_showDownloadMessage'](s[_0x57f983(0x21d)]['Success']));}async[_0x33cc6a(0x359)](){const _0x4a8d15=_0x33cc6a;this[_0x4a8d15(0x296)](s[_0x4a8d15(0x21d)]['Info']);let _0x7f29b=await this[_0x4a8d15(0x234)](),_0x56ef72=await this[_0x4a8d15(0x371)]['exportXLSXBySnapshot'](_0x7f29b);_0x56ef72&&(E(_0x56ef72,this['_getUnitName'](_0x56ef72),'xlsx'),this['_showDownloadMessage'](s[_0x4a8d15(0x21d)]['Success']));}['registerLink'](_0x182870){this['_getLinkByUnitId']=_0x182870;}async['_importFileToUnitId'](_0x34eaac,_0x5d15d2){const _0x353ecd=_0x33cc6a;this['_uploadNotificationService']['show'](),this[_0x353ecd(0x366)][_0x353ecd(0x264)](0x0),this[_0x353ecd(0x23f)](0x4),this['_addDoneTask'](0x1);let _0x42a1fc=await this['_exchangeService'][_0x353ecd(0x338)](_0x34eaac,_0x5d15d2);if(!_0x42a1fc){this[_0x353ecd(0x237)](),this[_0x353ecd(0x366)][_0x353ecd(0x264)](0x2);return;}let _0x4283d8={'link':this[_0x353ecd(0x33a)](_0x42a1fc,_0x5d15d2),'name':_0x34eaac['name'],'type':_0x5d15d2};return this[_0x353ecd(0x366)]['pushLink'](_0x4283d8),this[_0x353ecd(0x358)](),this[_0x353ecd(0x366)][_0x353ecd(0x264)](0x1),_0x42a1fc;}[_0x33cc6a(0x24b)](){const _0x2528bc=_0x33cc6a;return this['_univerInstanceService'][_0x2528bc(0x2b7)](t[_0x2528bc(0x20e)]['UNIVER_SHEET'])['getUnitId']();}['_getUnitIDDoc'](){const _0x44f6e2=_0x33cc6a;return this[_0x44f6e2(0x2b0)][_0x44f6e2(0x2b7)](t[_0x44f6e2(0x20e)][_0x44f6e2(0x2a1)])[_0x44f6e2(0x314)]();}[_0x33cc6a(0x347)](){const _0x488d76=_0x33cc6a;return this[_0x488d76(0x2b0)][_0x488d76(0x2b7)](t[_0x488d76(0x20e)][_0x488d76(0x2a6)])[_0x488d76(0x314)]();}['_getUnitName'](_0x34fd65){const _0x110c43=_0x33cc6a;return this[_0x110c43(0x2bf)](_0x34fd65,t[_0x110c43(0x20e)]['UNIVER_SHEET']);}[_0x33cc6a(0x2bf)](_0x406e1d,_0x279fb6){const _0x237121=_0x33cc6a;var _0x263272;let _0x509aad=(_0x263272=this[_0x237121(0x2b0)][_0x237121(0x2b7)](_0x279fb6))==null?void 0x0:_0x263272['getSnapshot'](),_0x285487=_0x509aad==null?void 0x0:_0x509aad[_0x237121(0x1ed)];return typeof _0x285487=='string'&&_0x285487[_0x237121(0x375)]()?_0x285487:_0x406e1d['name'][_0x237121(0x2aa)]('.')[_0x237121(0x2b8)]()||document[_0x237121(0x268)];}async[_0x33cc6a(0x234)](){const _0x5f5d8b=_0x33cc6a;return this['_univerInstanceService'][_0x5f5d8b(0x2b7)](t[_0x5f5d8b(0x20e)]['UNIVER_SHEET'])[_0x5f5d8b(0x35c)]();}async[_0x33cc6a(0x329)](){const _0x2807ec=_0x33cc6a;return this[_0x2807ec(0x2b0)][_0x2807ec(0x2b7)](t['UniverInstanceType'][_0x2807ec(0x2a1)])['getSnapshot']();}async[_0x33cc6a(0x2e5)](){const _0x2b3753=_0x33cc6a;let _0x4776b8=this['_univerInstanceService'][_0x2b3753(0x2b7)](t[_0x2b3753(0x20e)][_0x2b3753(0x2a6)]),_0x3b36e4=this[_0x2b3753(0x229)][_0x2b3753(0x202)](_0x4776b8['getUnitId']());return _0x3b36e4==null?_0x4776b8[_0x2b3753(0x35c)]():_0x3b36e4;}['_getLinkByUnitId'](_0x21abf2,_0x73355){const _0x13df27=_0x33cc6a;let _0x4562d7=new URL(window[_0x13df27(0x31f)][_0x13df27(0x326)]);return _0x4562d7[_0x13df27(0x2dd)][_0x13df27(0x33e)]('unit',_0x21abf2),_0x4562d7['searchParams']['set'](_0x13df27(0x277),''+_0x73355),_0x4562d7['toString']();}[_0x33cc6a(0x2fa)](_0x2b7b02){const _0x172148=_0x33cc6a;let _0x586d4c=this[_0x172148(0x2b0)]['getCurrentUnitOfType'](t[_0x172148(0x20e)][_0x172148(0x351)])[_0x172148(0x314)]();this[_0x172148(0x2b0)][_0x172148(0x31b)](_0x586d4c),this[_0x172148(0x2b0)][_0x172148(0x249)](t[_0x172148(0x20e)][_0x172148(0x351)],_0x2b7b02);}['_refreshSlide'](_0x59aefa){const _0x49800d=_0x33cc6a;let _0x367565=this[_0x49800d(0x2b0)][_0x49800d(0x2b7)](t[_0x49800d(0x20e)][_0x49800d(0x2a6)])[_0x49800d(0x314)]();this[_0x49800d(0x2b0)][_0x49800d(0x31b)](_0x367565),this[_0x49800d(0x2b0)][_0x49800d(0x249)](t[_0x49800d(0x20e)][_0x49800d(0x2a6)],_0x59aefa);}['_showNetworkError'](_0x144e6c){const _0x5ede05=_0x33cc6a;if(_0x144e6c){let {code:_0x3542e9}=_0x144e6c;switch(_0x3542e9){case l['ErrorCode'][_0x5ede05(0x32d)]:this[_0x5ede05(0x1e5)][_0x5ede05(0x217)]({'type':s[_0x5ede05(0x21d)][_0x5ede05(0x25d)],'content':this['_localeService']['t'](_0x5ede05(0x353))});break;case l[_0x5ede05(0x32c)][_0x5ede05(0x267)]:this[_0x5ede05(0x1e5)]['show']({'type':s[_0x5ede05(0x21d)]['Error'],'content':this[_0x5ede05(0x245)]['t']('exchange-client.internalError')});break;default:this[_0x5ede05(0x1e5)][_0x5ede05(0x217)]({'type':s['MessageType'][_0x5ede05(0x25d)],'content':this[_0x5ede05(0x245)]['t'](_0x5ede05(0x312))});break;}return null;}return this['_messageService'][_0x5ede05(0x217)]({'type':s[_0x5ede05(0x21d)][_0x5ede05(0x25d)],'content':this[_0x5ede05(0x245)]['t'](_0x5ede05(0x312))}),null;}[_0x33cc6a(0x296)](_0x7bb48){const _0x970b70=_0x33cc6a;let _0xcf35e5='';switch(_0x7bb48){case s[_0x970b70(0x21d)][_0x970b70(0x2ab)]:_0xcf35e5=this[_0x970b70(0x245)]['t'](_0x970b70(0x240));break;case s[_0x970b70(0x21d)][_0x970b70(0x280)]:_0xcf35e5=this[_0x970b70(0x245)]['t'](_0x970b70(0x27c));break;default:break;}this[_0x970b70(0x1e5)][_0x970b70(0x217)]({'type':_0x7bb48,'content':_0xcf35e5});}['_showUploadMessage'](_0x1cbf9f){const _0x2e6b1f=_0x33cc6a;let _0x4a931b='';switch(_0x1cbf9f){case s[_0x2e6b1f(0x21d)]['Success']:_0x4a931b=this[_0x2e6b1f(0x245)]['t'](_0x2e6b1f(0x203));break;case s[_0x2e6b1f(0x21d)][_0x2e6b1f(0x280)]:_0x4a931b=this[_0x2e6b1f(0x245)]['t'](_0x2e6b1f(0x313));break;default:break;}this[_0x2e6b1f(0x1e5)]['show']({'type':_0x1cbf9f,'content':_0x4a931b});}[_0x33cc6a(0x290)](){const _0x53925f=_0x33cc6a;this[_0x53925f(0x22b)]['next']({'done':this[_0x53925f(0x27d)],'count':this[_0x53925f(0x34c)]});}[_0x33cc6a(0x23f)](_0x1ba80b){const _0x1a2789=_0x33cc6a;this[_0x1a2789(0x34c)]+=_0x1ba80b,this[_0x1a2789(0x290)]();}[_0x33cc6a(0x26d)](_0x16847c){const _0x447717=_0x33cc6a;this['_doneUploadTaskCount']+=_0x16847c,this['_doneUploadTaskCount']=Math[_0x447717(0x250)](this['_doneUploadTaskCount'],this['_totalUploadTaskCount']),this[_0x447717(0x290)]();}[_0x33cc6a(0x358)](){const _0x2f0fb3=_0x33cc6a;this[_0x2f0fb3(0x27d)]=this[_0x2f0fb3(0x34c)],this[_0x2f0fb3(0x290)]();}[_0x33cc6a(0x237)](){const _0x5ae09c=_0x33cc6a;this[_0x5ae09c(0x27d)]=0x0,this[_0x5ae09c(0x34c)]=0x0,this[_0x5ae09c(0x290)]();}[_0x33cc6a(0x308)](_0x508ff7,_0x2ba4e8){const _0x79aa24=_0x33cc6a;let _0x4fe398=_0x508ff7[0x0],_0x317c01=_0x4fe398[_0x79aa24(0x1ed)];return D(_0x4fe398)===_0x2ba4e8?!0x1:(this[_0x79aa24(0x1e5)][_0x79aa24(0x217)]({'type':s[_0x79aa24(0x21d)][_0x79aa24(0x25d)],'content':this[_0x79aa24(0x245)]['t'](_0x79aa24(0x21f),_0x317c01)}),!0x0);}[_0x33cc6a(0x32f)](){const _0x3a28be=_0x33cc6a;return this[_0x3a28be(0x34c)]!==0x0&&this['_doneUploadTaskCount']!==this['_totalUploadTaskCount'];}};J=P([N(0x0,(0x0,t[_0x33cc6a(0x218)])(t['IUniverInstanceService'])),N(0x1,i[_0x33cc6a(0x286)]),N(0x2,(0x0,t[_0x33cc6a(0x218)])(t[_0x33cc6a(0x24d)])),N(0x3,(0x0,t[_0x33cc6a(0x218)])(G)),N(0x4,(0x0,t[_0x33cc6a(0x218)])(_)),N(0x5,t[_0x33cc6a(0x37b)]),N(0x6,(0x0,t[_0x33cc6a(0x218)])(t[_0x33cc6a(0x274)]))],J);function Y(_0x2e3478){const _0x1e0552=_0x33cc6a;let {onClick:_0x5a18ff,children:_0x3b5693,className:_0x3dc971}=_0x2e3478;return(0x0,c[_0x1e0552(0x304)])(_0x1e0552(0x21e),{'className':(0x0,s[_0x1e0552(0x349)])(_0x1e0552(0x32e),_0x3dc971),'type':'button','onClick':_0x5a18ff,'children':_0x3b5693});}function X(){const _0x3a35fe=_0x33cc6a;let _0x3e2398=(0x0,i['useDependency'])(q),_0x52ac8d=(0x0,i['useDependency'])(t[_0x3a35fe(0x24d)]);function _0x37b662(){const _0x47ee80=_0x3a35fe;_0x3e2398[_0x47ee80(0x2fc)]();}return(0x0,c['jsx'])(Y,{'onClick':_0x37b662,'children':_0x52ac8d['t'](_0x3a35fe(0x321))});}function _0x4275(_0x4edc4d,_0x4742cd){_0x4edc4d=_0x4edc4d-0x1e1;const _0x5a1096=_0x5a10();let _0x42758e=_0x5a1096[_0x4edc4d];return _0x42758e;}function me(){const _0x199356=_0x33cc6a;return(0x0,c['jsxs'])(_0x199356(0x23b),{'className':_0x199356(0x298),'children':[(0x0,c[_0x199356(0x304)])(_0x199356(0x26c),{'className':_0x199356(0x257),'children':(0x0,i[_0x199356(0x2e3)])(t['LocaleService'])['t']('exchange-client.interrupt')}),(0x0,c[_0x199356(0x304)])(X,{})]});}function he(_0x420e2f){const _0x319efc=_0x33cc6a;let {count:_0x43c06e}=_0x420e2f;return(0x0,c[_0x319efc(0x342)])(_0x319efc(0x23b),{'className':'univer-mt-3\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-2\x20univer-pr-1','children':[(0x0,c[_0x319efc(0x304)])(_0x319efc(0x26c),{'className':_0x319efc(0x2a3),'children':(0x0,i[_0x319efc(0x2e3)])(t['LocaleService'])['t'](_0x319efc(0x28d),''+_0x43c06e)}),(0x0,c[_0x319efc(0x304)])(X,{})]});}function ge(){const _0x532ce6=_0x33cc6a;let _0x2cca42=(0x0,i[_0x532ce6(0x2e3)])(q),_0x5f3568=(0x0,i[_0x532ce6(0x2e3)])(t[_0x532ce6(0x24d)]);function _0x22137f(){_0x2cca42['interrupt']();}return(0x0,c[_0x532ce6(0x304)])(Y,{'onClick':_0x22137f,'children':_0x5f3568['t'](_0x532ce6(0x318))});}function _e(){const _0x290b51=_0x33cc6a;let {count:_0x657549,done:_0x27b2c9}=(0x0,i['useObservable'])((0x0,i['useDependency'])(q)['progress$']),[_0x4c23b7,_0x3434ba]=(0x0,a[_0x290b51(0x2c6)])(_0x657549>0x0?_0x27b2c9/_0x657549:0x0);return(0x0,a[_0x290b51(0x2b4)])(()=>{_0x3434ba(_0x657549>0x0?_0x27b2c9/_0x657549:0x0);},[_0x657549,_0x27b2c9]),(0x0,c[_0x290b51(0x304)])(_0x290b51(0x23b),{'className':_0x290b51(0x1f9),'children':(0x0,c['jsx'])(_0x290b51(0x23b),{'className':'univer-h-1.5\x20univer-rounded-lg\x20univer-bg-primary-600\x20univer-transition-[width]\x20univer-duration-500','style':{'width':Math[_0x290b51(0x344)](_0x4c23b7*0x64)+'%'}})});}function ve(){const _0x25b8b6=_0x33cc6a;return(0x0,c[_0x25b8b6(0x342)])(_0x25b8b6(0x23b),{'className':'univer-mt-5\x20univer-flex\x20univer-flex-col','children':[(0x0,c[_0x25b8b6(0x304)])(_0x25b8b6(0x26c),{'className':_0x25b8b6(0x2a9),'children':(0x0,i['useDependency'])(t['LocaleService'])['t'](_0x25b8b6(0x220))}),(0x0,c[_0x25b8b6(0x304)])(_0x25b8b6(0x23b),{'className':_0x25b8b6(0x2f4),'children':(0x0,c['jsx'])(_e,{})}),(0x0,c[_0x25b8b6(0x304)])(ge,{})]});}const ye={0x1:(0x0,c[_0x33cc6a(0x304)])(r['SuccessIcon'],{'className':_0x33cc6a(0x26b)}),0x0:(0x0,c[_0x33cc6a(0x304)])(r[_0x33cc6a(0x205)],{'className':_0x33cc6a(0x255)}),0x2:(0x0,c[_0x33cc6a(0x304)])(r[_0x33cc6a(0x246)],{'className':'univer-text-red-500'})};function be(){const _0x4cbc38=_0x33cc6a;let [_0x1be1a0,_0x365bb8]=(0x0,a['useState'])(0x0),[_0x3f53ec,_0x50490d]=(0x0,a[_0x4cbc38(0x2c6)])(!0x1),[_0x2289c6,_0x4655ac]=(0x0,a[_0x4cbc38(0x2c6)])([]),_0x255ab8=(0x0,i['useDependency'])(_),_0x27eac1=(0x0,i[_0x4cbc38(0x2e3)])(t[_0x4cbc38(0x24d)]);(0x0,a[_0x4cbc38(0x2b4)])(()=>{const _0x282b9b=_0x4cbc38;let _0x35814b=_0x255ab8['visible$'][_0x282b9b(0x2fd)](_0x7c9826=>{_0x50490d(_0x7c9826);}),_0x40bdba=_0x255ab8[_0x282b9b(0x2dc)][_0x282b9b(0x2fd)](_0x1360ae=>{_0x4655ac(_0x1360ae);}),_0x303bc4=_0x255ab8[_0x282b9b(0x2bd)][_0x282b9b(0x2fd)](_0xa86446=>{_0x365bb8(_0xa86446);});return()=>{const _0x28f7e0=_0x282b9b;_0x35814b[_0x28f7e0(0x1fa)](),_0x40bdba[_0x28f7e0(0x1fa)](),_0x303bc4[_0x28f7e0(0x1fa)]();};},[]);function _0x41fe74(){_0x50490d(!0x1);}function _0x4f8e2d(_0x181b72){const _0xb0582b=_0x4cbc38;switch(_0x181b72){case 0x1:return _0x27eac1['t'](_0xb0582b(0x203));case 0x0:return _0x27eac1['t']('exchange-client.uploading');case 0x2:return _0x27eac1['t'](_0xb0582b(0x2ba));default:return'';}}return _0x3f53ec&&(0x0,c[_0x4cbc38(0x342)])(_0x4cbc38(0x23b),{'className':_0x4cbc38(0x322),'children':[(0x0,c['jsxs'])(_0x4cbc38(0x23b),{'className':_0x4cbc38(0x2f8),'children':[(0x0,c[_0x4cbc38(0x342)])(_0x4cbc38(0x26c),{'className':_0x4cbc38(0x297),'children':[(0x0,c[_0x4cbc38(0x304)])(_0x4cbc38(0x26c),{'className':_0x4cbc38(0x269),'children':ye[_0x1be1a0]}),(0x0,c[_0x4cbc38(0x304)])(_0x4cbc38(0x26c),{'className':_0x4cbc38(0x29e),'children':_0x4f8e2d(_0x1be1a0)})]}),(0x0,c[_0x4cbc38(0x304)])(_0x4cbc38(0x26c),{'className':_0x4cbc38(0x222),'onClick':_0x41fe74,'children':(0x0,c[_0x4cbc38(0x304)])(r[_0x4cbc38(0x279)],{})})]}),(0x0,c['jsxs'])(_0x4cbc38(0x23b),{'children':[_0x1be1a0===0x0&&(0x0,c['jsx'])(ve,{}),_0x1be1a0===0x2&&(0x0,c['jsx'])(me,{}),_0x2289c6[_0x4cbc38(0x2a7)]>0x0&&(0x0,c['jsx'])(ie,{'list':_0x2289c6}),_0x1be1a0===0x1&&(0x0,c['jsx'])(he,{'count':_0x2289c6[_0x4cbc38(0x2a7)]})]})]});}function Z(){return(0x0,c['jsx'])(be,{});}let Q=class extends t[_0x33cc6a(0x1f3)]{constructor(_0xc0729c,_0x189b81,_0x41e356){const _0x446ce2=_0x33cc6a;super(),this['_injector']=_0xc0729c,this[_0x446ce2(0x26f)]=_0x189b81,this[_0x446ce2(0x261)]=_0x41e356,this[_0x446ce2(0x275)](),this[_0x446ce2(0x327)]();}[_0x33cc6a(0x275)](){const _0x32c06e=_0x33cc6a;this[_0x32c06e(0x2b5)](this['_iconManager'][_0x32c06e(0x247)]({'DirectExportIcon':r[_0x32c06e(0x223)]}));}[_0x33cc6a(0x327)](){const _0x386565=_0x33cc6a;this[_0x386565(0x2b5)](this[_0x386565(0x26f)][_0x386565(0x210)](i[_0x386565(0x1e3)][_0x386565(0x235)],()=>(0x0,i['connectInjector'])(Z,this[_0x386565(0x258)])));}};Q=P([N(0x0,(0x0,t[_0x33cc6a(0x218)])(t[_0x33cc6a(0x206)])),N(0x1,i[_0x33cc6a(0x244)]),N(0x2,(0x0,t['Inject'])(i[_0x33cc6a(0x362)]))],Q);let $=class extends t[_0x33cc6a(0x25c)]{constructor(_0x3cd019=p,_0x29f25e,_0x426c0b){const _0x1078ae=_0x33cc6a;super(),this['_config']=_0x3cd019,this['_injector']=_0x29f25e,this[_0x1078ae(0x2d5)]=_0x426c0b;let {..._0x51f562}=(0x0,t[_0x1078ae(0x2eb)])({},p,this[_0x1078ae(0x332)]);this[_0x1078ae(0x2d5)]['setConfig'](f,_0x51f562);}[_0x33cc6a(0x208)](){const _0x4abd83=_0x33cc6a;(0x0,t[_0x4abd83(0x2ad)])(this[_0x4abd83(0x258)],[[Q],[q,{'useClass':J}],[G,{'useClass':K}],[F,{'useClass':I}],[_,{'useClass':v}]]);}[_0x33cc6a(0x23a)](){const _0x42015b=_0x33cc6a;(0x0,t[_0x42015b(0x2ec)])(this[_0x42015b(0x258)],[[Q],[q]]);}};g($,_0x33cc6a(0x254),'UNIVER_EXCHANGE_CLIENT_PLUGIN'),g($,_0x33cc6a(0x21c),m),g($,'version',ee),$=P([(0x0,t[_0x33cc6a(0x361)])(n['UniverNetworkPlugin'],e['UniverLicensePlugin']),N(0x1,(0x0,t['Inject'])(t[_0x33cc6a(0x206)])),N(0x2,t[_0x33cc6a(0x25a)])],$),exports[_0x33cc6a(0x27e)]=f,Object['defineProperty'](exports,'ExchangeOperateService',{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x33cc6a(0x26e)](exports,_0x33cc6a(0x23d),{'enumerable':!0x0,'get':function(){return K;}}),exports['IExchangeOperateService']=q,exports['IExchangeService']=G,exports[_0x33cc6a(0x376)]=F,exports[_0x33cc6a(0x25e)]=_,Object[_0x33cc6a(0x26e)](exports,'RequestService',{'enumerable':!0x0,'get':function(){return I;}}),Object['defineProperty'](exports,_0x33cc6a(0x350),{'enumerable':!0x0,'get':function(){return $;}}),exports['UploadNotificationContainer']=Z,exports[_0x33cc6a(0x1f4)]=v,exports[_0x33cc6a(0x294)]=re,exports[_0x33cc6a(0x2ff)]=E,exports[_0x33cc6a(0x1e8)]=D,exports[_0x33cc6a(0x265)]=k,exports[_0x33cc6a(0x24e)]=z,exports['transformSlideDataToSnapshotJson']=B,exports[_0x33cc6a(0x2c3)]=H,exports['transformSnapshotJsonToSlideData']=U,exports[_0x33cc6a(0x212)]=V,exports[_0x33cc6a(0x379)]=R;
|
|
1
|
+
const _0x2c0792=_0x37e6;(function(_0x411f34,_0x1df63d){const _0x12e071=_0x37e6,_0xe5a76e=_0x411f34();while(!![]){try{const _0x3e0d2c=parseInt(_0x12e071(0x203))/0x1*(-parseInt(_0x12e071(0x297))/0x2)+-parseInt(_0x12e071(0x25f))/0x3+parseInt(_0x12e071(0x27e))/0x4*(-parseInt(_0x12e071(0x2cf))/0x5)+-parseInt(_0x12e071(0x2ed))/0x6+-parseInt(_0x12e071(0x27f))/0x7*(-parseInt(_0x12e071(0x303))/0x8)+parseInt(_0x12e071(0x2d0))/0x9+parseInt(_0x12e071(0x1f6))/0xa;if(_0x3e0d2c===_0x1df63d)break;else _0xe5a76e['push'](_0xe5a76e['shift']());}catch(_0x423ea3){_0xe5a76e['push'](_0xe5a76e['shift']());}}}(_0x243f,0x19201),Object[_0x2c0792(0x310)](exports,Symbol[_0x2c0792(0x319)],{'value':'Module'}));let e=require('@univerjs-pro/license'),t=require('@univerjs/core'),n=require('@univerjs/network'),r=require('@univerjs/icons'),i=require('@univerjs/ui'),a=require('react'),o=require('rxjs'),s=require('@univerjs/design'),c=require('react/jsx-runtime'),l=require('@univerjs/protocol'),u=require('@univerjs-pro/collaboration'),d=require('fflate');const f='exchange-client.config',p={};var m=_0x2c0792(0x2f8),ee=_0x2c0792(0x375);function h(_0x18f434){'@babel/helpers - typeof';const _0x3fc535=_0x2c0792;return h=typeof Symbol==_0x3fc535(0x347)&&typeof Symbol[_0x3fc535(0x272)]=='symbol'?function(_0x4655b0){return typeof _0x4655b0;}:function(_0x73bf45){const _0x1de5c8=_0x3fc535;return _0x73bf45&&typeof Symbol==_0x1de5c8(0x347)&&_0x73bf45['constructor']===Symbol&&_0x73bf45!==Symbol[_0x1de5c8(0x254)]?_0x1de5c8(0x29b):typeof _0x73bf45;},h(_0x18f434);}function te(_0x839388,_0x4d1b46){const _0x41b76c=_0x2c0792;if(h(_0x839388)!='object'||!_0x839388)return _0x839388;var _0x184015=_0x839388[Symbol[_0x41b76c(0x2e6)]];if(_0x184015!==void 0x0){var _0x2662c8=_0x184015[_0x41b76c(0x26f)](_0x839388,_0x4d1b46||_0x41b76c(0x2de));if(h(_0x2662c8)!='object')return _0x2662c8;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4d1b46===_0x41b76c(0x33b)?String:Number)(_0x839388);}function ne(_0x14d903){const _0x24aeaa=_0x2c0792;var _0xbcd4d9=te(_0x14d903,_0x24aeaa(0x33b));return h(_0xbcd4d9)==_0x24aeaa(0x29b)?_0xbcd4d9:_0xbcd4d9+'';}function g(_0x3f63b4,_0x351f40,_0x1dc807){const _0x181104=_0x2c0792;return(_0x351f40=ne(_0x351f40))in _0x3f63b4?Object[_0x181104(0x310)](_0x3f63b4,_0x351f40,{'value':_0x1dc807,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3f63b4[_0x351f40]=_0x1dc807,_0x3f63b4;}let re=function(_0x4d0d88){const _0x471367=_0x2c0792;return _0x4d0d88[_0x4d0d88[_0x471367(0x290)]=0x0]=_0x471367(0x290),_0x4d0d88[_0x4d0d88[_0x471367(0x22c)]=0x1]=_0x471367(0x22c),_0x4d0d88[_0x4d0d88['ERROR']=0x2]=_0x471367(0x2cb),_0x4d0d88;}({});const _=(0x0,t[_0x2c0792(0x242)])('univer-pro.exchange-client.upload-notification.service');var v=class extends t['Disposable']{constructor(){const _0x3de91f=_0x2c0792;super(),g(this,_0x3de91f(0x354),new o[(_0x3de91f(0x208))]()),g(this,_0x3de91f(0x2ce),new o['Subject']()),g(this,_0x3de91f(0x220),new o['Subject']()),g(this,_0x3de91f(0x2c6),this[_0x3de91f(0x354)][_0x3de91f(0x25a)]()),g(this,_0x3de91f(0x278),this[_0x3de91f(0x2ce)][_0x3de91f(0x25a)]()),g(this,_0x3de91f(0x29c),this[_0x3de91f(0x220)][_0x3de91f(0x25a)]()),g(this,_0x3de91f(0x263),[]);}['dispose'](){const _0x4849eb=_0x2c0792;super[_0x4849eb(0x33f)](),this[_0x4849eb(0x354)][_0x4849eb(0x36e)](),this[_0x4849eb(0x2ce)][_0x4849eb(0x36e)](),this[_0x4849eb(0x220)][_0x4849eb(0x36e)]();}[_0x2c0792(0x313)](){const _0x89615f=_0x2c0792;this[_0x89615f(0x354)][_0x89615f(0x320)](!0x0);}[_0x2c0792(0x37c)](){const _0x35d55f=_0x2c0792;this[_0x35d55f(0x354)][_0x35d55f(0x320)](!0x1);}[_0x2c0792(0x2e4)](_0x3db51b){const _0x493f14=_0x2c0792;this[_0x493f14(0x2ce)][_0x493f14(0x320)](_0x3db51b);}[_0x2c0792(0x206)](_0x3426a2){const _0x1ddd32=_0x2c0792;this[_0x1ddd32(0x263)][_0x1ddd32(0x2ab)](_0x3426a2),this[_0x1ddd32(0x220)][_0x1ddd32(0x320)](this[_0x1ddd32(0x263)]);}};function ie(_0x452020){const _0x240de2=_0x2c0792;let {list:_0x216600}=_0x452020;function _0x4199b8(_0x856316){const _0xf2098b=_0x37e6;switch(_0x856316){case 0x1:return(0x0,c['jsx'])(r[_0xf2098b(0x1f5)],{});case 0x2:return(0x0,c[_0xf2098b(0x31d)])(r[_0xf2098b(0x2e3)],{});case 0x3:return(0x0,c['jsx'])(r[_0xf2098b(0x350)],{});default:return null;}}return(0x0,c[_0x240de2(0x31d)])(_0x240de2(0x210),{'className':(0x0,s['clsx'])(_0x240de2(0x264),s[_0x240de2(0x322)]),'children':(0x0,c[_0x240de2(0x31d)])('ul',{'className':_0x240de2(0x28f),'children':_0x216600['map']((_0x4e740d,_0x4367e2)=>(0x0,c[_0x240de2(0x31d)])('li',{'children':(0x0,c[_0x240de2(0x2c2)])('a',{'className':_0x240de2(0x21b),'href':_0x4e740d[_0x240de2(0x270)],'target':_0x240de2(0x34e),'rel':_0x240de2(0x2e1),'children':[(0x0,c[_0x240de2(0x2c2)])(_0x240de2(0x2aa),{'className':_0x240de2(0x33c),'children':[(0x0,c[_0x240de2(0x31d)])(_0x240de2(0x2aa),{'className':'univer-flex\x20univer-h-5\x20univer-text-xl','children':_0x4199b8(_0x4e740d[_0x240de2(0x222)])}),(0x0,c[_0x240de2(0x31d)])(s['Tooltip'],{'showIfEllipsis':!0x0,'title':_0x4e740d[_0x240de2(0x376)],'asChild':!0x0,'children':(0x0,c[_0x240de2(0x31d)])(_0x240de2(0x2aa),{'className':_0x240de2(0x326),'children':_0x4e740d[_0x240de2(0x376)]})})]}),(0x0,c[_0x240de2(0x31d)])('span',{'className':_0x240de2(0x230),'children':(0x0,c[_0x240de2(0x31d)])(r['ShareRangeIcon'],{})})]})},_0x4367e2))})});}const y=_0x2c0792(0x229),b='application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',x='application/vnd.ms-excel.sheet.macroEnabled.12',S=_0x2c0792(0x1fe),C=_0x2c0792(0x30b),w={[t[_0x2c0792(0x257)][_0x2c0792(0x2c9)]]:[''],[t[_0x2c0792(0x257)][_0x2c0792(0x36d)]]:[y],[t[_0x2c0792(0x257)][_0x2c0792(0x295)]]:[b,x,S],[t[_0x2c0792(0x257)]['UNIVER_SLIDE']]:[C],[t['UniverInstanceType']['UNIVER_BASE']]:[''],[t['UniverInstanceType'][_0x2c0792(0x35a)]]:[''],[t[_0x2c0792(0x257)]['UNIVER_PROJECT']]:[''],[t['UniverInstanceType'][_0x2c0792(0x1f3)]]:['']},T={[y]:'docx',[b]:_0x2c0792(0x2f2),[x]:_0x2c0792(0x2f6),[S]:_0x2c0792(0x286),[C]:'pptx'};function ae(_0x499c1c,_0x1cf657,_0x422604){const _0x2d7ab1=_0x2c0792;let _0x3c60db=document[_0x2d7ab1(0x213)]('a');_0x3c60db[_0x2d7ab1(0x2fe)]=_0x499c1c,_0x3c60db[_0x2d7ab1(0x2e7)]['display']=_0x2d7ab1(0x2d3),_0x3c60db[_0x2d7ab1(0x20f)]=_0x1cf657+'.'+_0x422604,document[_0x2d7ab1(0x2b2)][_0x2d7ab1(0x20c)](_0x3c60db),_0x3c60db[_0x2d7ab1(0x240)](),document[_0x2d7ab1(0x2b2)][_0x2d7ab1(0x291)](_0x3c60db);}function E(_0x432f08,_0x8df155,_0x351497){const _0x50e5e3=_0x2c0792;let _0x5bcd10=URL[_0x50e5e3(0x34d)](_0x432f08);ae(_0x5bcd10,_0x8df155,_0x351497),URL[_0x50e5e3(0x325)](_0x5bcd10);}function D(_0x13a142){const _0x4a8770=_0x2c0792;let _0x168225=_0x13a142['name'][_0x4a8770(0x369)]('.')['pop']();if(!_0x168225)return t[_0x4a8770(0x257)][_0x4a8770(0x2c9)];let _0x4e3e3f=oe(),_0x489726=t[_0x4a8770(0x257)]['UNIVER_UNKNOWN'];return _0x4e3e3f[_0x4a8770(0x2dc)](_0x5490de=>O(_0x168225,_0x5490de)?(_0x489726=_0x5490de,!0x0):!0x1),_0x489726;}function oe(){const _0x215bbb=_0x2c0792;return Object[_0x215bbb(0x2b1)](t[_0x215bbb(0x257)])[_0x215bbb(0x334)](_0x1e94a4=>typeof _0x1e94a4==_0x215bbb(0x2a4));}function O(_0x8e1992,_0xf3cdf1){const _0x554b8e=_0x2c0792;var _0x2ba1ef;return((_0x2ba1ef=w[_0xf3cdf1])==null?[]:_0x2ba1ef)[_0x554b8e(0x337)](_0xaa7f85=>(T[_0xaa7f85]||'')[_0x554b8e(0x2af)]())['includes'](_0x8e1992[_0x554b8e(0x2af)]());}function k(_0x40f9b5,_0x3a5d88=!0x1){const _0x48dc21=_0x2c0792;let _0x4259a1=_0x40f9b5[_0x48dc21(0x337)](_0x4a6ff0=>{var _0x4686ef;return(_0x4686ef=w[_0x4a6ff0])==null?[]:_0x4686ef;})[_0x48dc21(0x23c)](',');return new Promise((_0x32cd8a,_0x347595)=>{const _0x378e11=_0x48dc21;let _0x2776fa=document[_0x378e11(0x213)](_0x378e11(0x252));_0x2776fa[_0x378e11(0x222)]='file',_0x2776fa[_0x378e11(0x346)]=_0x4259a1,_0x2776fa[_0x378e11(0x202)]=_0x3a5d88,_0x2776fa[_0x378e11(0x30f)](_0x378e11(0x37d),_0x563e9a=>{const _0x1f4bc4=_0x378e11;let _0x40a789=_0x563e9a['currentTarget'];if(!_0x40a789[_0x1f4bc4(0x265)]||_0x40a789[_0x1f4bc4(0x265)][_0x1f4bc4(0x365)]===0x0)throw _0x347595(null),Error(_0x1f4bc4(0x2b8));_0x32cd8a(_0x40a789['files']);}),_0x2776fa[_0x378e11(0x240)]();});}async function A(_0x37ebcd,_0x5f55cc){const _0x154308=_0x2c0792;try{var _0x2a5ef7,_0x26ac6c,_0x20aec5;let _0x5d21f6=await _0x5f55cc[_0x154308(0x30d)](_0x37ebcd,{'responseType':_0x154308(0x30c)}),_0x21dd9a=_0x5d21f6['body'],_0x385a5e=(_0x2a5ef7=(_0x26ac6c=_0x5d21f6[_0x154308(0x2ad)]['get'](_0x154308(0x1fb)))==null?void 0x0:_0x26ac6c['join'](',\x20'))==null?_0x154308(0x26a):_0x2a5ef7,_0x2822e4=_0x154308(0x2d5)+(T[_0x385a5e]||_0x154308(0x2f2)),_0x3251ae=(_0x20aec5=_0x5d21f6[_0x154308(0x2ad)][_0x154308(0x30d)](_0x154308(0x2db)))==null?void 0x0:_0x20aec5['join'](',\x20');if(_0x3251ae){let _0x792805=_0x3251ae['match'](/filename=(.+)/);_0x792805&&_0x792805[0x1]&&(_0x2822e4=_0x792805[0x1]);}else _0x2822e4=se(_0x37ebcd)||_0x2822e4;return new File([_0x21dd9a],_0x2822e4,{'type':_0x385a5e});}catch(_0x148282){console[_0x154308(0x20b)](_0x154308(0x267),_0x148282);return;}}function se(_0xe431cf){const _0xef1a63=_0x2c0792;try{return new URL(_0xe431cf)[_0xef1a63(0x20d)][_0xef1a63(0x369)]('/')[_0xef1a63(0x2f4)]();}catch(_0x4ebc88){console[_0xef1a63(0x20b)](_0xef1a63(0x237),_0x4ebc88);return;}}function ce(_0xc179c3){const _0x68adba=_0x2c0792;let _0x12ad2e=new Blob([_0xc179c3[_0x68adba(0x2f3)]],{'type':_0x68adba(0x348)});return new File([_0x12ad2e],_0x68adba(0x2c8));}function j(_0x5ac8d6,_0x25ec2d){const _0xe25536=_0x2c0792;return _0x5ac8d6[_0xe25536(0x32e)]('{type}',_0x25ec2d);}function M(_0x155769,_0x8066fa){const _0x260b60=_0x2c0792;return _0x155769[_0x260b60(0x32e)]('{taskID}',_0x8066fa);}function le(_0x4ec892,_0xd98e82){const _0xe4bf=_0x2c0792;return _0x4ec892[_0xe4bf(0x32e)](_0xe4bf(0x360),_0xd98e82);}function N(_0x5b50a6,_0xe14635){return function(_0x5d8790,_0x43f58e){_0xe14635(_0x5d8790,_0x43f58e,_0x5b50a6);};}function P(_0x550595,_0xa18cf9,_0xeb072c,_0x5684ed){const _0x54e8b9=_0x2c0792;var _0x3599ae=arguments[_0x54e8b9(0x365)],_0xe7e2ba=_0x3599ae<0x3?_0xa18cf9:_0x5684ed===null?_0x5684ed=Object['getOwnPropertyDescriptor'](_0xa18cf9,_0xeb072c):_0x5684ed,_0x5dc88d;if(typeof Reflect==_0x54e8b9(0x1fc)&&typeof Reflect[_0x54e8b9(0x352)]==_0x54e8b9(0x347))_0xe7e2ba=Reflect[_0x54e8b9(0x352)](_0x550595,_0xa18cf9,_0xeb072c,_0x5684ed);else{for(var _0x2acd62=_0x550595[_0x54e8b9(0x365)]-0x1;_0x2acd62>=0x0;_0x2acd62--)(_0x5dc88d=_0x550595[_0x2acd62])&&(_0xe7e2ba=(_0x3599ae<0x3?_0x5dc88d(_0xe7e2ba):_0x3599ae>0x3?_0x5dc88d(_0xa18cf9,_0xeb072c,_0xe7e2ba):_0x5dc88d(_0xa18cf9,_0xeb072c))||_0xe7e2ba);}return _0x3599ae>0x3&&_0xe7e2ba&&Object[_0x54e8b9(0x310)](_0xa18cf9,_0xeb072c,_0xe7e2ba),_0xe7e2ba;}const F=(0x0,t[_0x2c0792(0x242)])(_0x2c0792(0x330));let I=class{constructor(_0x5a4742,_0x2969d3){const _0x3cb888=_0x2c0792;this[_0x3cb888(0x2b5)]=_0x5a4742,this['_httpService']=_0x2969d3,g(this,_0x3cb888(0x2ec),new Set());}['dispose'](){}[_0x2c0792(0x308)](_0x11f704){const _0x556d40=_0x2c0792;this[_0x556d40(0x2ec)][_0x556d40(0x36c)](_0x11f704);}['clearTaskInterrupted'](){const _0xdfaa9b=_0x2c0792;this[_0xdfaa9b(0x2ec)][_0xdfaa9b(0x2bc)]();}async[_0x2c0792(0x223)](_0x5e5996,_0x67a5f=0x0,_0x596a30=!0x1){const _0xf7ae3b=_0x2c0792;if(typeof _0x5e5996==_0xf7ae3b(0x33b)){let _0x32e73a=await A(_0x5e5996,this[_0xf7ae3b(0x235)]);if(!_0x32e73a)throw Error(_0xf7ae3b(0x284));_0x5e5996=_0x32e73a;}_0x67a5f=_0x67a5f||_0x5e5996[_0xf7ae3b(0x288)];let _0x20abe8=new FormData();_0x20abe8[_0xf7ae3b(0x204)](_0xf7ae3b(0x2c0),_0x5e5996);try{let _0x2f7650=this['_getUploadFileURL']()+_0xf7ae3b(0x275)+_0x67a5f+_0xf7ae3b(0x27d)+l[_0xf7ae3b(0x2f7)]['HttpImport']+_0xf7ae3b(0x27b)+_0x596a30,_0xaf6a3b={'body':_0x20abe8},_0x1ed566=(await this[_0xf7ae3b(0x235)]['post'](_0x2f7650,_0xaf6a3b))[_0xf7ae3b(0x2b2)];if(_0x1ed566[_0xf7ae3b(0x20b)]&&_0x1ed566['error'][_0xf7ae3b(0x31a)]!==l[_0xf7ae3b(0x2c7)]['OK'])throw Error(this[_0xf7ae3b(0x31f)]('upload\x20request\x20failed',_0x1ed566[_0xf7ae3b(0x20b)]));return _0x1ed566;}catch(_0x363d4f){throw _0x363d4f instanceof Error?_0x363d4f:Error(this[_0xf7ae3b(0x343)]('upload\x20request\x20failed',_0x363d4f));}}async[_0x2c0792(0x2b9)](_0x30767b){const _0x76a489=_0x2c0792;let {fileID:_0x14e93e,type:_0x2f921e,outputType:_0x4d7b9e,minSheetColumnCount:_0x436bbb,minSheetRowCount:_0x3effae}=_0x30767b;try{let _0x383e58=j(this[_0x76a489(0x361)](),''+_0x2f921e),_0x59faaa={'body':{'fileID':_0x14e93e,'outputType':_0x4d7b9e,'minSheetColumnCount':_0x436bbb,'minSheetRowCount':_0x3effae}},_0x304c77=(await this['_httpService']['post'](_0x383e58,_0x59faaa))[_0x76a489(0x2b2)];return _0x304c77['error']&&_0x304c77[_0x76a489(0x20b)][_0x76a489(0x31a)]!==l[_0x76a489(0x2c7)]['OK']?void 0x0:_0x304c77;}catch{return;}}async['export'](_0x3d90aa){const _0x444eeb=_0x2c0792;let {unitID:_0x4dd6ab,jsonID:_0x585e50,type:_0x1323d4,sscSwitch:_0x1f4a5c,useImageUrl:_0x96f2c1,ignoreTableExport:_0x5a0a1c}=_0x3d90aa;try{let _0x9d48b7=j(this['_getExportURL'](),''+_0x1323d4),_0x46c34a={'body':{'unitID':_0x4dd6ab,'jsonID':_0x585e50,'type':_0x1323d4,'sscSwitch':_0x1f4a5c,'useImageUrl':_0x96f2c1,'ignoreTableExport':_0x5a0a1c}},_0x1dd075=(await this[_0x444eeb(0x235)][_0x444eeb(0x256)](_0x9d48b7,_0x46c34a))[_0x444eeb(0x2b2)];return _0x1dd075['error']&&_0x1dd075[_0x444eeb(0x20b)][_0x444eeb(0x31a)]!==l[_0x444eeb(0x2c7)]['OK']?void 0x0:_0x1dd075;}catch{return;}}async[_0x2c0792(0x226)](_0x3a791b){return new Promise((_0x1dbaf8,_0x13fa81)=>{const _0x6d3d70=_0x37e6;try{let _0x5e6709=0x0,_0x199169=M(this['_getTaskURL'](),''+_0x3a791b),_0x208bff=this[_0x6d3d70(0x294)](),_0x367abb=async()=>{const _0x2a1303=_0x6d3d70;if(this[_0x2a1303(0x2ec)]['has'](_0x3a791b))return;let _0x1c443b=(await this['_httpService']['get'](_0x199169))['body'];if(_0x1c443b[_0x2a1303(0x20b)]&&_0x1c443b[_0x2a1303(0x20b)][_0x2a1303(0x31a)]===l[_0x2a1303(0x2c7)]['OK']){if(_0x1c443b[_0x2a1303(0x36b)]==='done')_0x1dbaf8(_0x1c443b);else{if(_0x1c443b[_0x2a1303(0x36b)]==='pending'){let _0x42e244=0x3e8;if(_0x5e6709>=_0x208bff){_0x13fa81(_0x1c443b);return;}else _0x5e6709>=0x7530&&(_0x42e244=0x1388);_0x5e6709+=_0x42e244,setTimeout(_0x367abb,_0x42e244);}else _0x13fa81(_0x1c443b);}}else _0x13fa81(_0x1c443b);};_0x367abb();}catch(_0x4f39f7){_0x13fa81(_0x4f39f7 instanceof Error?_0x4f39f7:Error(String(_0x4f39f7)));}});}async[_0x2c0792(0x2ee)](_0x1bf6d0){const _0x45116c=_0x2c0792;try{let _0x1614f3=le(this[_0x45116c(0x24a)](),''+_0x1bf6d0);return(await this[_0x45116c(0x235)]['get'](_0x1614f3))[_0x45116c(0x2b2)];}catch{return;}}async[_0x2c0792(0x2e0)](_0x5ed2c8){const _0x57d133=_0x2c0792;try{return(await this['_httpService']['get'](_0x5ed2c8,{'responseType':_0x57d133(0x1f8)}))[_0x57d133(0x2b2)];}catch{return;}}['_buildProtocolErrorMessage'](_0x9c3e7a,_0x4c3b28){const _0x6b09de=_0x2c0792;let _0x4fc79a=this[_0x6b09de(0x31c)](_0x4c3b28);return _0x4fc79a?_0x9c3e7a+':\x20'+_0x4fc79a:_0x9c3e7a;}[_0x2c0792(0x343)](_0x4cf227,_0x5a13f4){const _0x2d79c1=_0x2c0792;if(_0x5a13f4 instanceof n['HTTPResponseError']){let _0x22ff2f=typeof _0x5a13f4[_0x2d79c1(0x36b)]==_0x2d79c1(0x2a4)?''+_0x5a13f4['status']+(_0x5a13f4[_0x2d79c1(0x1fa)]?'\x20'+_0x5a13f4['statusText']:''):void 0x0,_0x3d8831=this['_extractErrorDetail'](_0x5a13f4['error']);return _0x22ff2f&&_0x3d8831?_0x4cf227+_0x2d79c1(0x311)+_0x22ff2f+_0x2d79c1(0x24e)+_0x3d8831:_0x22ff2f?_0x4cf227+_0x2d79c1(0x311)+_0x22ff2f:_0x3d8831?_0x4cf227+':\x20'+_0x3d8831:_0x4cf227;}let _0x50b6e0=this[_0x2d79c1(0x31c)](_0x5a13f4);return _0x50b6e0?_0x4cf227+':\x20'+_0x50b6e0:_0x4cf227;}[_0x2c0792(0x31c)](_0x212d5d){const _0x4b270d=_0x2c0792;if(typeof _0x212d5d==_0x4b270d(0x33b)){let _0x5dcc93=_0x212d5d[_0x4b270d(0x251)]();return _0x5dcc93[_0x4b270d(0x365)]>0x0?_0x5dcc93:void 0x0;}if(_0x212d5d instanceof Error)return this['_extractErrorDetail'](_0x212d5d[_0x4b270d(0x292)]);if(!_0x212d5d||typeof _0x212d5d!=_0x4b270d(0x1fc)||Array[_0x4b270d(0x357)](_0x212d5d))return;let _0x59140c=_0x212d5d,_0x192956=this[_0x4b270d(0x31c)](_0x59140c[_0x4b270d(0x292)]);if(_0x192956)return _0x192956;if(_0x59140c[_0x4b270d(0x20b)]&&typeof _0x59140c['error']=='object'&&!Array[_0x4b270d(0x357)](_0x59140c['error'])){let _0x34a712=this['_extractErrorDetail'](_0x59140c[_0x4b270d(0x20b)]);if(_0x34a712)return _0x34a712;}}['_getUploadFileURL'](){const _0x356ccc=_0x2c0792;var _0x4d80bc;let _0x3265f0=this[_0x356ccc(0x2b5)][_0x356ccc(0x2a7)](f);return(_0x4d80bc=_0x3265f0==null?void 0x0:_0x3265f0[_0x356ccc(0x35f)])==null?'/universer-api/stream/file/upload':_0x4d80bc;}[_0x2c0792(0x361)](){const _0x530e64=_0x2c0792;var _0x4921df;let _0xcd8b77=this[_0x530e64(0x2b5)]['getConfig'](f);return(_0x4921df=_0xcd8b77==null?void 0x0:_0xcd8b77[_0x530e64(0x23d)])==null?'/universer-api/exchange/{type}/import':_0x4921df;}[_0x2c0792(0x377)](){const _0x482a4c=_0x2c0792;var _0xfad245;let _0x16369e=this[_0x482a4c(0x2b5)][_0x482a4c(0x2a7)](f);return(_0xfad245=_0x16369e==null?void 0x0:_0x16369e[_0x482a4c(0x21f)])==null?_0x482a4c(0x2c5):_0xfad245;}[_0x2c0792(0x1fd)](){const _0x434ab0=_0x2c0792;var _0x5490a5;let _0x57598d=this[_0x434ab0(0x2b5)][_0x434ab0(0x2a7)](f);return(_0x5490a5=_0x57598d==null?void 0x0:_0x57598d['getTaskServerUrl'])==null?'/universer-api/exchange/task/{taskID}':_0x5490a5;}[_0x2c0792(0x24a)](){const _0x2a5362=_0x2c0792;var _0x14aa40;let _0x4c6070=this[_0x2a5362(0x2b5)][_0x2a5362(0x2a7)](f);return(_0x14aa40=_0x4c6070==null?void 0x0:_0x4c6070[_0x2a5362(0x283)])==null?_0x2a5362(0x216):_0x14aa40;}['_getMaxPollingTime'](){const _0x4f993f=_0x2c0792;var _0xebebb2;let _0x49d937=this['_configService'][_0x4f993f(0x2a7)](f);return(_0xebebb2=_0x49d937==null?void 0x0:_0x49d937['maxTimeoutTime'])==null?0x1d4c0:_0xebebb2;}};I=P([N(0x0,t[_0x2c0792(0x331)]),N(0x1,(0x0,t[_0x2c0792(0x225)])(n[_0x2c0792(0x29d)]))],I);function ue(_0xe5798f){const _0x38458c=_0x2c0792;let _0x5223f3=_0xe5798f[_0x38458c(0x301)];if(!_0x5223f3)return null;let _0x2c9893={};_0x5223f3[_0x38458c(0x201)]&&Object[_0x38458c(0x268)](_0x5223f3['sheets'])[_0x38458c(0x29e)](_0x31d422=>{const _0x1c1df6=_0x38458c;let _0x8c8b8c=_0x5223f3[_0x1c1df6(0x201)][_0x31d422];_0x2c9893[_0x31d422]={..._0x8c8b8c,'originalMeta':(0x0,u[_0x1c1df6(0x207)])(u[_0x1c1df6(0x378)][_0x1c1df6(0x2ae)](_0x8c8b8c[_0x1c1df6(0x321)]))};});let _0x190874=(0x0,u[_0x38458c(0x207)])(u[_0x38458c(0x378)]['decode'](_0x5223f3[_0x38458c(0x321)]));return{..._0xe5798f,'workbook':{..._0x5223f3,'originalMeta':_0x190874,'sheets':_0x2c9893},'doc':{},'slide':void 0x0};}function de(_0x55c6f6){const _0x2a89ba=_0x2c0792;let _0x463423=_0x55c6f6[_0x2a89ba(0x29f)];if(!_0x463423)return null;let _0x53e0d5=(0x0,u[_0x2a89ba(0x207)])(u[_0x2a89ba(0x378)][_0x2a89ba(0x2ae)](_0x463423[_0x2a89ba(0x321)]));return{..._0x55c6f6,'workbook':{},'doc':{..._0x463423,'originalMeta':_0x53e0d5},'slide':void 0x0};}function fe(_0x2e4f65){const _0x52f331=_0x2c0792;var _0x16fb17;let _0x4636a9=(_0x16fb17=_0x2e4f65[_0x52f331(0x262)])==null?_0x2e4f65[_0x52f331(0x29f)]:_0x16fb17;if(!_0x4636a9)return null;let _0x2e4679=typeof _0x4636a9[_0x52f331(0x321)]==_0x52f331(0x33b)?_0x4636a9['originalMeta']:(0x0,u[_0x52f331(0x207)])(u[_0x52f331(0x378)][_0x52f331(0x2ae)](_0x4636a9[_0x52f331(0x321)]));return{..._0x2e4f65,'workbook':{},'doc':{},'slide':{..._0x4636a9,'originalMeta':_0x2e4679}};}function L(_0x275fa0){let _0x560a0b={};return _0x275fa0['forEach'](_0x57c7de=>{const _0x1d7deb=_0x37e6;_0x560a0b[_0x57c7de['id']]={..._0x57c7de,'data':(0x0,u[_0x1d7deb(0x207)])(u[_0x1d7deb(0x378)][_0x1d7deb(0x2ae)](_0x57c7de['data']))};}),_0x560a0b;}async function R(_0x3fe4c3){const _0x8189bc=_0x2c0792;var _0x34e3c8;let _0x2ba889={'metadata':void 0x0},_0x37a0e5=_0x3fe4c3['id'],_0x3bf8ed=(_0x34e3c8=_0x3fe4c3[_0x8189bc(0x243)])==null?0x0:_0x34e3c8,_0x1c321d=new W(),{snapshot:_0xe8f512}=await(0x0,u['transformWorkbookDataToSnapshot'])(_0x2ba889,_0x3fe4c3,_0x37a0e5,_0x3bf8ed,_0x1c321d),_0x3d6e6e=await(0x0,u['getSheetBlocksFromSnapshot'])(_0xe8f512,_0x1c321d),_0x187155=ue(_0xe8f512);if(!_0x187155)throw Error(_0x8189bc(0x302));return{'snapshot':_0x187155,'sheetBlocks':L(_0x3d6e6e)};}async function z(_0x2dd8ea){const _0x19cdf5=_0x2c0792;var _0x110d74;let _0x2a26af={'metadata':void 0x0},_0x7850b4=_0x2dd8ea['id'],{snapshot:_0xe5ebb}=await(0x0,u[_0x19cdf5(0x1f9)])(_0x2a26af,_0x2dd8ea,_0x7850b4,(_0x110d74=_0x2dd8ea['rev'])==null?0x0:_0x110d74,new W()),_0xc52c99=de(_0xe5ebb);if(!_0xc52c99)throw Error('Failed\x20to\x20transform\x20snapshot\x20to\x20string');return{'snapshot':_0xc52c99,'sheetBlocks':{}};}async function B(_0x5d412a){const _0x2d6c1a=_0x2c0792;var _0x4154de;let _0x17a9d0=_0x5d412a['id'],_0x2a0cf4=(_0x4154de=_0x5d412a[_0x2d6c1a(0x243)])==null?0x0:_0x4154de,_0xfb221b=new W(),{snapshot:_0x415bf6}=await(0x0,u[_0x2d6c1a(0x28e)])(_0x5d412a[_0x2d6c1a(0x21e)],_0x5d412a,_0x17a9d0,_0x2a0cf4,_0xfb221b),_0x4bbe46=fe(_0x415bf6);if(!_0x4bbe46)throw Error('Failed\x20to\x20transform\x20snapshot\x20to\x20string');return{'snapshot':_0x4bbe46,'sheetBlocks':{}};}async function V(_0x5df76f){const _0x427172=_0x2c0792;let _0x4ee6e5=_0x5df76f[_0x427172(0x253)],_0xca7c49=_0x5df76f[_0x427172(0x21d)]||{};return await(0x0,u[_0x427172(0x287)])(_0x4ee6e5,Object[_0x427172(0x268)](_0xca7c49)[_0x427172(0x337)](_0x233aa1=>_0xca7c49[_0x233aa1])[_0x427172(0x337)](_0x5829f1=>({..._0x5829f1,'data':_0x5829f1[_0x427172(0x316)]?JSON['parse']((0x0,u[_0x427172(0x2bf)])(_0x5829f1[_0x427172(0x316)])):void 0x0})));}function H(_0x3911b9){const _0x300dbd=_0x2c0792;let _0x4cfcc6=_0x3911b9[_0x300dbd(0x253)];return(0x0,u[_0x300dbd(0x2ba)])(_0x4cfcc6);}function U(_0x1875a2){const _0x53687e=_0x2c0792;let _0x42bcfd=_0x1875a2['snapshot'];return(0x0,u[_0x53687e(0x2ff)])(_0x42bcfd);}var W=class{constructor(){const _0x5d457a=_0x2c0792;g(this,_0x5d457a(0x379),new Map());}[_0x2c0792(0x355)](){const _0x48bf6e=_0x2c0792;return Promise['resolve']({'snapshot':{'unitID':'','type':t[_0x48bf6e(0x257)][_0x48bf6e(0x295)],'rev':0x0,'workbook':void 0x0,'doc':void 0x0,'slide':void 0x0,'board':void 0x0},'changesets':[],'error':{'code':l['ErrorCode']['OK'],'message':''}});}[_0x2c0792(0x281)](_0x1498a0,_0x3138a7){const _0xf418be=_0x2c0792;let _0x3e9dcc=this['_sheetBlockCache'][_0xf418be(0x30d)](_0x3138a7[_0xf418be(0x27c)]);return Promise[_0xf418be(0x22a)]({'block':_0x3e9dcc,'error':{'code':l[_0xf418be(0x2c7)]['OK'],'message':''}});}[_0x2c0792(0x34c)](_0x359c2e,_0x2e8ea3){const _0x5ddaaa=_0x2c0792;let _0xd41410=this['_sheetBlockCache'][_0x5ddaaa(0x30d)](_0x2e8ea3[_0x5ddaaa(0x27c)]);return Promise['resolve']({'block':_0xd41410===void 0x0?void 0x0:{..._0xd41410,'data':JSON[_0x5ddaaa(0x2ca)](u[_0x5ddaaa(0x378)][_0x5ddaaa(0x2ae)](_0xd41410[_0x5ddaaa(0x316)]))},'error':{'code':l[_0x5ddaaa(0x2c7)]['OK'],'message':''}});}['fetchMissingChangesets'](){const _0x5229dc=_0x2c0792;return Promise[_0x5229dc(0x22a)]({'changesets':[],'error':{'code':l[_0x5229dc(0x2c7)]['OK'],'message':''}});}[_0x2c0792(0x33a)](){const _0x4023a7=_0x2c0792;return Promise[_0x4023a7(0x22a)]({'resources':{},'error':{'code':l[_0x4023a7(0x2c7)]['OK'],'message':''}});}[_0x2c0792(0x2a1)](){const _0x5ef21e=_0x2c0792;return Promise[_0x5ef21e(0x22a)]({'error':{'code':l['ErrorCode']['OK'],'message':''}});}[_0x2c0792(0x372)](){const _0x52b35e=_0x2c0792;return Promise[_0x52b35e(0x22a)]({'error':{'code':l['ErrorCode']['OK'],'message':''}});}['saveSheetBlock'](_0x4d96f0,_0x1bda51){const _0x29ba98=_0x2c0792;let {block:_0xcbca06}=_0x1bda51;return _0xcbca06?(this[_0x29ba98(0x379)]['set'](_0xcbca06['id'],_0xcbca06),Promise[_0x29ba98(0x22a)]({'error':{'code':l['ErrorCode']['OK'],'message':''},'blockID':_0xcbca06['id']})):Promise['resolve']({'error':{'code':l[_0x29ba98(0x2c7)][_0x29ba98(0x217)],'message':_0x29ba98(0x239)},'blockID':''});}[_0x2c0792(0x234)](){const _0x3e5070=_0x2c0792;return Promise['resolve']({'error':{'code':l[_0x3e5070(0x2c7)]['OK'],'message':''},'concurrent':[]});}[_0x2c0792(0x351)](){const _0x515a41=_0x2c0792;return Promise[_0x515a41(0x22a)]({'error':void 0x0,'fileMetaId':''});}['getLatestCsReqIdBySid'](){const _0x1732ba=_0x2c0792;return Promise[_0x1732ba(0x22a)]({'error':void 0x0,'latestReqID':0x0});}};const G=(0x0,t[_0x2c0792(0x242)])(_0x2c0792(0x24c));let K=class extends t[_0x2c0792(0x298)]{constructor(_0x230cfc,_0x558f03,_0x4dea86){const _0x5b962e=_0x2c0792;super(),this[_0x5b962e(0x2b5)]=_0x230cfc,this[_0x5b962e(0x235)]=_0x558f03,this[_0x5b962e(0x25e)]=_0x4dea86,g(this,_0x5b962e(0x250),null),g(this,'_requestState$',new o[(_0x5b962e(0x208))]()),g(this,_0x5b962e(0x23e),this[_0x5b962e(0x214)][_0x5b962e(0x25a)]());}[_0x2c0792(0x33f)](){const _0x5bb242=_0x2c0792;super['dispose'](),this[_0x5bb242(0x214)][_0x5bb242(0x36e)]();}async[_0x2c0792(0x2d4)](_0x51a0dd){const _0x1a3ad4=_0x2c0792;let _0x1a3ee1=await this[_0x1a3ad4(0x25b)](_0x51a0dd,t[_0x1a3ad4(0x257)]['UNIVER_DOC']);if(!_0x1a3ee1||!_0x1a3ee1['snapshot'])return;let _0x41d4a4=H(_0x1a3ee1);if(_0x41d4a4)return _0x41d4a4;}async[_0x2c0792(0x25d)](_0x1edfe6){const _0x1c0d03=_0x2c0792;return this[_0x1c0d03(0x1f1)](_0x1edfe6,0x1,t['UniverInstanceType']['UNIVER_DOC']);}async['exportDOCXBySnapshot'](_0xfe7ab9){const _0x164900=_0x2c0792;let _0x5b4535=await z(_0xfe7ab9);return this[_0x164900(0x246)](_0x5b4535,t[_0x164900(0x257)]['UNIVER_DOC']);}async[_0x2c0792(0x37a)](_0x3e8465){const _0x5514ec=_0x2c0792;let _0x100c96=await this['_importToSnapshot'](_0x3e8465,t['UniverInstanceType'][_0x5514ec(0x248)]);if(!(!_0x100c96||!_0x100c96[_0x5514ec(0x253)]))return U(_0x100c96);}async[_0x2c0792(0x2a3)](_0x52e945){const _0x5e8567=_0x2c0792;return this[_0x5e8567(0x1f1)](_0x52e945,0x1,t['UniverInstanceType'][_0x5e8567(0x248)]);}async[_0x2c0792(0x205)](_0x165a7d){const _0x791fd7=_0x2c0792;let _0x4384be=await B(_0x165a7d);return this[_0x791fd7(0x246)](_0x4384be,t[_0x791fd7(0x257)][_0x791fd7(0x248)]);}async[_0x2c0792(0x241)](_0x5431ec){const _0x19efa4=_0x2c0792;let _0x14bdde=await this[_0x19efa4(0x25b)](_0x5431ec,t[_0x19efa4(0x257)][_0x19efa4(0x295)]);if(!_0x14bdde)return;let _0x3c517e=await V(_0x14bdde);if(_0x3c517e)return _0x3c517e;}async[_0x2c0792(0x339)](_0x5a7f6e){const _0x565d13=_0x2c0792;return this[_0x565d13(0x1f1)](_0x5a7f6e,0x1,t['UniverInstanceType'][_0x565d13(0x295)]);}async['exportXLSXBySnapshot'](_0x347ea4){const _0x391db6=_0x2c0792;let _0x11de44=await R(_0x347ea4);return this[_0x391db6(0x246)](_0x11de44,t[_0x391db6(0x257)][_0x391db6(0x295)]);}async[_0x2c0792(0x2b6)](_0x27d2b4,_0x1c300b){const _0xcf4d8d=_0x2c0792;var _0x2525ef,_0x54de6b;let _0x1e048f=await this['_upload'](_0x27d2b4);if(!_0x1e048f)return;let _0x37b5e1=await this[_0xcf4d8d(0x26d)](_0x1e048f,0x1,_0x1c300b);if(!_0x37b5e1)return;this[_0xcf4d8d(0x250)]=_0x37b5e1,this['_requestService'][_0xcf4d8d(0x2c1)]();let _0x2bdc60=await this[_0xcf4d8d(0x25e)]['getTask'](_0x37b5e1)['catch'](_0x3315fb=>{const _0x45c095=_0xcf4d8d;var _0x3214f5;let _0x174833=_0x3315fb instanceof Error?_0x3315fb['message']:(_0x3214f5=_0x3315fb['error'])==null?void 0x0:_0x3214f5[_0x45c095(0x292)];this[_0x45c095(0x214)]['next']({'error':{'code':l[_0x45c095(0x2c7)][_0x45c095(0x1f3)],'message':_0x174833||''},'state':0x3});});if(!_0x2bdc60)return;let _0x59d845=(_0x2525ef=_0x2bdc60[_0xcf4d8d(0x2b9)])==null?void 0x0:_0x2525ef[_0xcf4d8d(0x2e9)],_0x4e9af6=((_0x54de6b=_0x2bdc60['import'])==null?void 0x0:_0x54de6b[_0xcf4d8d(0x219)])||'';if(_0x59d845!==0x1){this[_0xcf4d8d(0x214)][_0xcf4d8d(0x320)]({'error':{'code':l['ErrorCode'][_0xcf4d8d(0x1f3)],'message':'Get\x20outputType\x20error'},'state':0x3});return;}if(_0x4e9af6[_0xcf4d8d(0x365)]===0x0){this[_0xcf4d8d(0x214)]['next']({'error':{'code':l[_0xcf4d8d(0x2c7)]['UNRECOGNIZED'],'message':_0xcf4d8d(0x2e5)},'state':0x3});return;}return this[_0xcf4d8d(0x214)][_0xcf4d8d(0x320)]({'error':_0x2bdc60[_0xcf4d8d(0x20b)],'state':0x3}),_0x4e9af6;}async['importWorkbookDataToUnitId'](_0x383863){const _0x1bc499=_0x2c0792;let _0x846bbd=await R(_0x383863),_0x1b1bd2=typeof _0x383863['id']=='string'&&_0x383863['id'][_0x1bc499(0x251)]()?_0x383863['id'][_0x1bc499(0x251)]()+'.json':_0x1bc499(0x2fb),_0x267282=new File([JSON['stringify'](_0x846bbd)],_0x1b1bd2,{'type':_0x1bc499(0x348)});return this[_0x1bc499(0x2b6)](_0x267282,t[_0x1bc499(0x257)][_0x1bc499(0x295)]);}[_0x2c0792(0x285)](){const _0x4fe8e0=_0x2c0792;this['_importTaskId']&&this['_requestService'][_0x4fe8e0(0x308)](this['_importTaskId']);}async[_0x2c0792(0x25b)](_0x4bb93d,_0x121d00){const _0x24e24c=_0x2c0792;var _0x4e37b6,_0x389733;let _0x23d84d=await this['_upload'](_0x4bb93d);if(!_0x23d84d)return;let _0x535472=await this[_0x24e24c(0x26d)](_0x23d84d,0x2,_0x121d00);if(!_0x535472)return;this['_importTaskId']=_0x535472,this['_requestService'][_0x24e24c(0x2c1)]();let _0x442206=await this[_0x24e24c(0x25e)][_0x24e24c(0x226)](_0x535472)[_0x24e24c(0x335)](_0x38d078=>{const _0x1d493d=_0x24e24c;var _0x424ecd;let _0x59b624=_0x38d078 instanceof Error?_0x38d078[_0x1d493d(0x292)]:(_0x424ecd=_0x38d078['error'])==null?void 0x0:_0x424ecd[_0x1d493d(0x292)];this[_0x1d493d(0x214)][_0x1d493d(0x320)]({'error':{'code':l[_0x1d493d(0x2c7)][_0x1d493d(0x1f3)],'message':_0x59b624||''},'state':0x3});});if(!_0x442206)return;let _0xa5c6a1=(_0x4e37b6=_0x442206[_0x24e24c(0x2b9)])==null?void 0x0:_0x4e37b6['outputType'],_0x4b1a29=((_0x389733=_0x442206['import'])==null?void 0x0:_0x389733[_0x24e24c(0x2bd)])||'';if(_0xa5c6a1!==0x2){this[_0x24e24c(0x214)]['next']({'error':{'code':l['ErrorCode'][_0x24e24c(0x1f3)],'message':_0x24e24c(0x2fc)},'state':0x3});return;}if(_0x4b1a29[_0x24e24c(0x365)]===0x0){this['_requestState$'][_0x24e24c(0x320)]({'error':{'code':l[_0x24e24c(0x2c7)][_0x24e24c(0x1f3)],'message':_0x24e24c(0x307)},'state':0x3});return;}this[_0x24e24c(0x214)][_0x24e24c(0x320)]({'error':_0x442206[_0x24e24c(0x20b)],'state':0x3});let _0x496810=await this[_0x24e24c(0x259)](_0x4b1a29);if(!_0x496810)return;let _0x50f541=await this[_0x24e24c(0x25e)][_0x24e24c(0x2e0)](_0x496810);if(!_0x50f541){this['_requestState$'][_0x24e24c(0x320)]({'error':{'code':l[_0x24e24c(0x2c7)][_0x24e24c(0x1f3)],'message':_0x24e24c(0x20a)},'state':0x5});return;}try{let _0x2136ef=JSON['parse'](_0x50f541);return this[_0x24e24c(0x214)][_0x24e24c(0x320)]({'error':{'code':l['ErrorCode']['OK'],'message':_0x24e24c(0x370)},'state':0x5}),_0x2136ef;}catch{this[_0x24e24c(0x214)]['next']({'error':{'code':l['ErrorCode'][_0x24e24c(0x1f3)],'message':_0x24e24c(0x2be)},'state':0x5});}}async['_exportBySnapshot'](_0x39bd33,_0x3bcb07){const _0xf35750=_0x2c0792;let _0x29d359=JSON['stringify'](_0x39bd33),_0x3a86f0=u['textEncoder'][_0xf35750(0x34f)](_0x29d359),_0x30d041=(0x0,d[_0xf35750(0x329)])(_0x3a86f0),_0x33b9c5=_0x3a86f0[_0xf35750(0x365)],_0x2d9d73=ce(_0x30d041),_0x1c1011=await this[_0xf35750(0x279)](_0x2d9d73,_0x33b9c5,!0x0);if(_0x1c1011)return this[_0xf35750(0x1f1)](_0x1c1011,0x2,_0x3bcb07);}async[_0x2c0792(0x1f1)](_0x182a8f,_0x47a9d0,_0x17e641){const _0x299502=_0x2c0792;var _0x3c6b16;let _0x5bf77b=await this[_0x299502(0x25e)]['export']({'unitID':_0x47a9d0===0x1?_0x182a8f:'','jsonID':_0x47a9d0===0x2?_0x182a8f:'','type':_0x17e641,'sscSwitch':this[_0x299502(0x306)](),'useImageUrl':this[_0x299502(0x2a6)](),'ignoreTableExport':this[_0x299502(0x224)]()});if(!_0x5bf77b){this[_0x299502(0x214)][_0x299502(0x320)]({'error':{'code':l[_0x299502(0x2c7)][_0x299502(0x1f3)],'message':_0x299502(0x2a8)},'state':0x2});return;}if(this[_0x299502(0x214)][_0x299502(0x320)]({'error':_0x5bf77b[_0x299502(0x20b)],'state':0x2}),_0x5bf77b[_0x299502(0x20b)]&&_0x5bf77b[_0x299502(0x20b)][_0x299502(0x31a)]!==l[_0x299502(0x2c7)]['OK'])return;let _0x4a7e91=_0x5bf77b['taskID'],_0x4be339=await this[_0x299502(0x25e)]['getTask'](_0x4a7e91)[_0x299502(0x335)](_0x4c687a=>{const _0x2aadbb=_0x299502;var _0x4e58b6;let _0x5746c3=_0x4c687a instanceof Error?_0x4c687a[_0x2aadbb(0x292)]:(_0x4e58b6=_0x4c687a['error'])==null?void 0x0:_0x4e58b6[_0x2aadbb(0x292)];this[_0x2aadbb(0x214)]['next']({'error':{'code':l[_0x2aadbb(0x2c7)][_0x2aadbb(0x1f3)],'message':_0x5746c3||''},'state':0x3});});if(!_0x4be339)return;let _0x1b3671=((_0x3c6b16=_0x4be339['export'])==null?void 0x0:_0x3c6b16[_0x299502(0x280)])||'';if(_0x1b3671['length']===0x0){this[_0x299502(0x214)][_0x299502(0x320)]({'error':{'code':l[_0x299502(0x2c7)]['UNRECOGNIZED'],'message':_0x299502(0x29a)},'state':0x3});return;}this[_0x299502(0x214)][_0x299502(0x320)]({'error':_0x4be339['error'],'state':0x3});let _0x2d6c2e=await this[_0x299502(0x259)](_0x1b3671);if(!_0x2d6c2e)return;let _0x42c7e6=await A(_0x2d6c2e,this['_httpService']);if(!_0x42c7e6){this['_requestState$'][_0x299502(0x320)]({'error':{'code':l[_0x299502(0x2c7)][_0x299502(0x1f3)],'message':'Failed\x20to\x20get\x20file\x20from\x20url'},'state':0x6});return;}return this['_requestState$'][_0x299502(0x320)]({'error':{'code':l[_0x299502(0x2c7)]['OK'],'message':_0x299502(0x370)},'state':0x6}),_0x42c7e6;}async[_0x2c0792(0x279)](_0x32b3e4,_0x46f20b,_0x14aa37){const _0xd5edcc=_0x2c0792;let _0xd97266;try{_0xd97266=await this[_0xd5edcc(0x25e)]['upload'](_0x32b3e4,_0x46f20b,_0x14aa37);}catch(_0x50c78b){let _0x5d6db0=_0x50c78b instanceof Error?_0x50c78b[_0xd5edcc(0x292)]:String(_0x50c78b);this['_requestState$'][_0xd5edcc(0x320)]({'error':{'code':l[_0xd5edcc(0x2c7)][_0xd5edcc(0x1f3)],'message':_0x5d6db0},'state':0x0});return;}if(!_0xd97266||typeof _0xd97266['FileId']!=_0xd5edcc(0x33b)){this[_0xd5edcc(0x214)][_0xd5edcc(0x320)]({'error':{'code':l[_0xd5edcc(0x2c7)][_0xd5edcc(0x1f3)],'message':'upload\x20failed:\x20missing\x20FileId\x20in\x20response'},'state':0x0});return;}let _0x1efee3=_0xd97266[_0xd5edcc(0x245)];if(_0x1efee3['length']===0x0){this[_0xd5edcc(0x214)][_0xd5edcc(0x320)]({'error':{'code':l[_0xd5edcc(0x2c7)][_0xd5edcc(0x1f3)],'message':_0xd5edcc(0x24d)},'state':0x0});return;}return this[_0xd5edcc(0x214)][_0xd5edcc(0x320)]({'error':{'code':l[_0xd5edcc(0x2c7)]['OK'],'message':_0xd5edcc(0x370)},'state':0x0}),_0x1efee3;}async[_0x2c0792(0x26d)](_0x32c19b,_0x45ad1c,_0x55bbf6){const _0x2311db=_0x2c0792;let _0x459677={'fileID':_0x32c19b,'type':_0x55bbf6,'outputType':_0x45ad1c,'fileUrl':'','minSheetRowCount':this[_0x2311db(0x282)](),'minSheetColumnCount':this['_getMinSheetColumnCount']()},_0xa840b2=await this[_0x2311db(0x25e)]['import'](_0x459677);if(!_0xa840b2){this['_requestState$'][_0x2311db(0x320)]({'error':{'code':l[_0x2311db(0x2c7)]['UNRECOGNIZED'],'message':_0x2311db(0x32a)},'state':0x1});return;}if(_0xa840b2[_0x2311db(0x20b)]&&_0xa840b2[_0x2311db(0x20b)][_0x2311db(0x31a)]!==l[_0x2311db(0x2c7)]['OK']){this['_requestState$'][_0x2311db(0x320)]({'error':_0xa840b2[_0x2311db(0x20b)],'state':0x1});return;}let _0x321353=_0xa840b2[_0x2311db(0x2f5)];if(_0x321353['length']===0x0){this[_0x2311db(0x214)]['next']({'error':{'code':l[_0x2311db(0x2c7)][_0x2311db(0x1f3)],'message':_0x2311db(0x2d1)},'state':0x1});return;}return this[_0x2311db(0x214)][_0x2311db(0x320)]({'error':_0xa840b2[_0x2311db(0x20b)],'state':0x1}),_0x321353;}async['_signUrl'](_0x2f4f64){const _0x551624=_0x2c0792;let _0x4ee022=await this[_0x551624(0x25e)][_0x551624(0x2ee)](_0x2f4f64);if(!_0x4ee022){this[_0x551624(0x214)][_0x551624(0x320)]({'error':{'code':l[_0x551624(0x2c7)][_0x551624(0x1f3)],'message':_0x551624(0x24f)},'state':0x4});return;}if(_0x4ee022[_0x551624(0x20b)]&&_0x4ee022[_0x551624(0x20b)][_0x551624(0x31a)]!==l[_0x551624(0x2c7)]['OK']){this[_0x551624(0x214)][_0x551624(0x320)]({'error':_0x4ee022['error'],'state':0x4});return;}let _0x4377c0=(0x0,t['resolveWithBasePath'])(_0x4ee022[_0x551624(0x24b)],this['_getDownloadEndpointURL']());if(_0x4377c0[_0x551624(0x365)]===0x0){this[_0x551624(0x214)][_0x551624(0x320)]({'error':{'code':l[_0x551624(0x2c7)][_0x551624(0x1f3)],'message':_0x551624(0x24f)},'state':0x4});return;}return this[_0x551624(0x214)]['next']({'error':_0x4ee022[_0x551624(0x20b)],'state':0x4}),_0x4377c0;}[_0x2c0792(0x22e)](){const _0x1c1e62=_0x2c0792;var _0x4539db;let _0x4e8d79=this[_0x1c1e62(0x2b5)][_0x1c1e62(0x2a7)](f);return(_0x4539db=_0x4e8d79==null?void 0x0:_0x4e8d79['downloadEndpointUrl'])==null?location[_0x1c1e62(0x2eb)]:_0x4539db;}['_getMinSheetRowCount'](){const _0x1b0b5c=_0x2c0792;var _0x4cf75b,_0x178d54;let _0x2c831a=this[_0x1b0b5c(0x2b5)][_0x1b0b5c(0x2a7)](f);return(_0x4cf75b=_0x2c831a==null||(_0x178d54=_0x2c831a['options'])==null?void 0x0:_0x178d54[_0x1b0b5c(0x367)])==null?0x1:_0x4cf75b;}[_0x2c0792(0x35c)](){const _0x342ad9=_0x2c0792;var _0x4ea7ca,_0x5563b8;let _0x47e0bd=this[_0x342ad9(0x2b5)]['getConfig'](f);return(_0x4ea7ca=_0x47e0bd==null||(_0x5563b8=_0x47e0bd[_0x342ad9(0x373)])==null?void 0x0:_0x5563b8[_0x342ad9(0x342)])==null?0x1:_0x4ea7ca;}[_0x2c0792(0x306)](){const _0x51c2eb=_0x2c0792;var _0x3aec02,_0x44f2e4;let _0x557b55=this['_configService'][_0x51c2eb(0x2a7)](f);return(_0x3aec02=_0x557b55==null||(_0x44f2e4=_0x557b55[_0x51c2eb(0x373)])==null?void 0x0:_0x44f2e4[_0x51c2eb(0x304)])==null?!0x1:_0x3aec02;}[_0x2c0792(0x2a6)](){const _0x32ffab=_0x2c0792;var _0x7048c5,_0x14f014;let _0x4338a7=this[_0x32ffab(0x2b5)]['getConfig'](f);return(_0x7048c5=_0x4338a7==null||(_0x14f014=_0x4338a7['options'])==null?void 0x0:_0x14f014[_0x32ffab(0x274)])==null?!0x0:_0x7048c5;}['_getIgnoreTableExport'](){const _0x2bd937=_0x2c0792;var _0xbd9b58,_0x31b568;let _0x489b56=this['_configService']['getConfig'](f);return(_0xbd9b58=_0x489b56==null||(_0x31b568=_0x489b56[_0x2bd937(0x373)])==null?void 0x0:_0x31b568['ignoreTableExport'])==null?!0x1:_0xbd9b58;}};K=P([N(0x0,t[_0x2c0792(0x331)]),N(0x1,(0x0,t['Inject'])(n['HTTPService'])),N(0x2,(0x0,t[_0x2c0792(0x225)])(F))],K);const pe={'done':0x0,'count':0x0},q=(0x0,t[_0x2c0792(0x242)])('univer-pro.exchange-client.operate.service');let J=class extends t[_0x2c0792(0x298)]{constructor(_0x3d4882,_0x3e7789,_0x4d8980,_0x55b5df,_0x692cbe,_0x33112c,_0x36a660){const _0xc1d3a3=_0x2c0792;super(),this['_univerInstanceService']=_0x3d4882,this[_0xc1d3a3(0x25c)]=_0x3e7789,this[_0xc1d3a3(0x2ea)]=_0x4d8980,this[_0xc1d3a3(0x318)]=_0x55b5df,this['_uploadNotificationService']=_0x692cbe,this[_0xc1d3a3(0x36a)]=_0x33112c,this[_0xc1d3a3(0x232)]=_0x36a660,g(this,_0xc1d3a3(0x2ef),new o['BehaviorSubject'](pe)),g(this,_0xc1d3a3(0x309),this[_0xc1d3a3(0x2ef)]['asObservable']()),g(this,'_totalUploadTaskCount',0x0),g(this,_0xc1d3a3(0x200),0x0),this['disposeWithMe']((0x0,t[_0xc1d3a3(0x371)])(this[_0xc1d3a3(0x318)][_0xc1d3a3(0x23e)][_0xc1d3a3(0x30a)](_0x5e229d=>{const _0xefe4d4=_0xc1d3a3;var _0x3c3bab;((_0x3c3bab=_0x5e229d[_0xefe4d4(0x20b)])==null?void 0x0:_0x3c3bab[_0xefe4d4(0x31a)])===l[_0xefe4d4(0x2c7)]['OK']?this['_addDoneTask'](0x1):this['_showNetworkError'](_0x5e229d[_0xefe4d4(0x20b)]);})));}[_0x2c0792(0x364)](){const _0x5b9184=_0x2c0792;this[_0x5b9184(0x349)](),this['_uploadNotificationService'][_0x5b9184(0x2e4)](0x2),this['_exchangeService']['interruptImportTask']();}async[_0x2c0792(0x261)](_0x5db46f){const _0x40b435=_0x2c0792;throw Error(_0x40b435(0x2f9));}async[_0x2c0792(0x276)](){const _0x67eaa5=_0x2c0792;let _0x43e2ea=this[_0x67eaa5(0x20e)][_0x67eaa5(0x27a)]();switch(_0x43e2ea?this[_0x67eaa5(0x20e)]['getUnitType'](_0x43e2ea['getUnitId']()):t[_0x67eaa5(0x257)][_0x67eaa5(0x1f3)]){case t[_0x67eaa5(0x257)][_0x67eaa5(0x248)]:return this[_0x67eaa5(0x277)]();case t[_0x67eaa5(0x257)]['UNIVER_DOC']:return this[_0x67eaa5(0x353)]();case t[_0x67eaa5(0x257)][_0x67eaa5(0x295)]:default:return this[_0x67eaa5(0x359)]();}}async[_0x2c0792(0x353)](){const _0x4fee14=_0x2c0792;let _0x4a12f2=await k([t['UniverInstanceType'][_0x4fee14(0x36d)]]);if(_0x4a12f2&&!this['_fileTypeError'](_0x4a12f2,t[_0x4fee14(0x257)][_0x4fee14(0x36d)]))return this[_0x4fee14(0x26e)](_0x4a12f2[0x0],t[_0x4fee14(0x257)][_0x4fee14(0x36d)]);}['importDOCXToSnapshot'](){const _0x1f67dd=_0x2c0792;throw Error(_0x1f67dd(0x2f9));}async[_0x2c0792(0x25d)](_0x2314d1,_0x51d38a,_0x13ccbd){const _0x154a9a=_0x2c0792;this[_0x154a9a(0x260)](s[_0x154a9a(0x2da)][_0x154a9a(0x344)]);let _0x5ceda3=await this['_exchangeService']['exportDOCXByUnitId'](_0x2314d1||this[_0x154a9a(0x31e)]());_0x5ceda3&&(E(_0x5ceda3,_0x51d38a||this['_getUnitName'](_0x5ceda3),_0x154a9a(0x211)),this[_0x154a9a(0x260)](s[_0x154a9a(0x2da)]['Success']));}async[_0x2c0792(0x2b3)](){const _0x27bc65=_0x2c0792;this[_0x27bc65(0x260)](s[_0x27bc65(0x2da)][_0x27bc65(0x344)]);let _0x188b2f=await this[_0x27bc65(0x345)](),_0x1f9625=await this[_0x27bc65(0x318)][_0x27bc65(0x2b3)](_0x188b2f);_0x1f9625&&(E(_0x1f9625,this[_0x27bc65(0x26c)](_0x1f9625),_0x27bc65(0x211)),this['_showDownloadMessage'](s['MessageType'][_0x27bc65(0x2a9)]));}async['importPPTXToUnitId'](){const _0x1695da=_0x2c0792;if(this[_0x1695da(0x23a)]()){this['_messageService'][_0x1695da(0x313)]({'type':s[_0x1695da(0x2da)][_0x1695da(0x323)],'content':this['_localeService']['t'](_0x1695da(0x258))});return;}let _0x2f4372=await k([t['UniverInstanceType'][_0x1695da(0x248)]]);if(_0x2f4372&&!this[_0x1695da(0x362)](_0x2f4372,t[_0x1695da(0x257)][_0x1695da(0x248)]))return this[_0x1695da(0x26e)](_0x2f4372[0x0],t[_0x1695da(0x257)][_0x1695da(0x248)]);}async[_0x2c0792(0x37a)](){const _0x39ceab=_0x2c0792;if(this[_0x39ceab(0x23a)]()){this['_messageService'][_0x39ceab(0x313)]({'type':s['MessageType']['Warning'],'content':this[_0x39ceab(0x2ea)]['t']('exchange-client.uploading')});return;}let _0x8497aa=await k([t[_0x39ceab(0x257)][_0x39ceab(0x248)]]);if(!_0x8497aa)return;this[_0x39ceab(0x2c3)](s[_0x39ceab(0x2da)][_0x39ceab(0x344)]);let _0x1d1efe=await this[_0x39ceab(0x318)][_0x39ceab(0x37a)](_0x8497aa[0x0]);_0x1d1efe&&(this[_0x39ceab(0x2df)](_0x1d1efe),this['_showUploadMessage'](s[_0x39ceab(0x2da)][_0x39ceab(0x2a9)]));}async[_0x2c0792(0x2a3)](_0x72a04a,_0x4e73c5,_0xae6dd0){const _0x227e18=_0x2c0792;this[_0x227e18(0x260)](s[_0x227e18(0x2da)][_0x227e18(0x344)]);let _0x75e4f1=await this['_exchangeService'][_0x227e18(0x2a3)](_0x72a04a||this[_0x227e18(0x33d)]());_0x75e4f1&&(E(_0x75e4f1,_0x4e73c5||this[_0x227e18(0x26b)](_0x75e4f1,_0xae6dd0==null?t[_0x227e18(0x257)][_0x227e18(0x248)]:_0xae6dd0),'pptx'),this['_showDownloadMessage'](s[_0x227e18(0x2da)][_0x227e18(0x2a9)]));}async[_0x2c0792(0x205)](){const _0x1fea9a=_0x2c0792;this[_0x1fea9a(0x260)](s[_0x1fea9a(0x2da)]['Info']);let _0x2e1c89=await this[_0x1fea9a(0x36f)](),_0x5c2b87=await this['_exchangeService'][_0x1fea9a(0x205)](_0x2e1c89);_0x5c2b87&&(E(_0x5c2b87,this[_0x1fea9a(0x26b)](_0x5c2b87,t[_0x1fea9a(0x257)][_0x1fea9a(0x248)]),'pptx'),this['_showDownloadMessage'](s[_0x1fea9a(0x2da)][_0x1fea9a(0x2a9)]));}async[_0x2c0792(0x359)](){const _0x34b965=_0x2c0792;if(this[_0x34b965(0x23a)]()){this[_0x34b965(0x25c)][_0x34b965(0x313)]({'type':s[_0x34b965(0x2da)][_0x34b965(0x323)],'content':this[_0x34b965(0x2ea)]['t'](_0x34b965(0x258))});return;}let _0x57c083=await k([t[_0x34b965(0x257)][_0x34b965(0x295)]]);if(_0x57c083&&!this[_0x34b965(0x362)](_0x57c083,t[_0x34b965(0x257)][_0x34b965(0x295)]))return this[_0x34b965(0x26e)](_0x57c083[0x0],t[_0x34b965(0x257)][_0x34b965(0x295)]);}async[_0x2c0792(0x241)](){const _0x4e88e4=_0x2c0792;if(this['_uploadTaskNotDone']()){this[_0x4e88e4(0x25c)]['show']({'type':s[_0x4e88e4(0x2da)][_0x4e88e4(0x323)],'content':this[_0x4e88e4(0x2ea)]['t'](_0x4e88e4(0x258))});return;}let _0x3bcde2=await k([t[_0x4e88e4(0x257)][_0x4e88e4(0x295)]]);if(!_0x3bcde2)return;this[_0x4e88e4(0x2c3)](s[_0x4e88e4(0x2da)][_0x4e88e4(0x344)]);let _0x4ff618=await this['_exchangeService'][_0x4e88e4(0x241)](_0x3bcde2[0x0]);_0x4ff618&&(this[_0x4e88e4(0x305)](_0x4ff618),this[_0x4e88e4(0x2c3)](s['MessageType']['Success']));}async[_0x2c0792(0x339)](_0x4d53d4,_0x472c41,_0x3f0d8c){const _0x2dcc9f=_0x2c0792;this[_0x2dcc9f(0x260)](s['MessageType'][_0x2dcc9f(0x344)]);let _0x1c6549=await this[_0x2dcc9f(0x318)]['exportXLSXByUnitId'](_0x4d53d4||this[_0x2dcc9f(0x269)]());_0x1c6549&&(E(_0x1c6549,_0x472c41||this[_0x2dcc9f(0x26c)](_0x1c6549),'xlsx'),this[_0x2dcc9f(0x260)](s[_0x2dcc9f(0x2da)][_0x2dcc9f(0x2a9)]));}async['exportXLSXBySnapshot'](){const _0x4703e9=_0x2c0792;this[_0x4703e9(0x260)](s[_0x4703e9(0x2da)][_0x4703e9(0x344)]);let _0x4a93de=await this['_getUnitJson'](),_0x17c0f6=await this[_0x4703e9(0x318)][_0x4703e9(0x247)](_0x4a93de);_0x17c0f6&&(E(_0x17c0f6,this['_getUnitName'](_0x17c0f6),_0x4703e9(0x2f2)),this[_0x4703e9(0x260)](s['MessageType'][_0x4703e9(0x2a9)]));}[_0x2c0792(0x34a)](_0x18604b){this['_getLinkByUnitId']=_0x18604b;}async['_importFileToUnitId'](_0x5a34f0,_0x2e8750){const _0x3cd2a3=_0x2c0792;this[_0x3cd2a3(0x299)][_0x3cd2a3(0x313)](),this[_0x3cd2a3(0x299)]['updateState'](0x0),this[_0x3cd2a3(0x356)](0x4),this['_addDoneTask'](0x1);let _0x2f7927=await this[_0x3cd2a3(0x318)]['importFileToUnitId'](_0x5a34f0,_0x2e8750);if(!_0x2f7927){this[_0x3cd2a3(0x349)](),this[_0x3cd2a3(0x299)][_0x3cd2a3(0x2e4)](0x2);return;}let _0x4d7c7c={'link':this['_getLinkByUnitId'](_0x2f7927,_0x2e8750),'name':_0x5a34f0['name'],'type':_0x2e8750};return this[_0x3cd2a3(0x299)][_0x3cd2a3(0x206)](_0x4d7c7c),this[_0x3cd2a3(0x35b)](),this['_uploadNotificationService']['updateState'](0x1),_0x2f7927;}[_0x2c0792(0x269)](){const _0x5a0865=_0x2c0792;return this[_0x5a0865(0x20e)][_0x5a0865(0x2b0)](t[_0x5a0865(0x257)][_0x5a0865(0x295)])[_0x5a0865(0x28a)]();}[_0x2c0792(0x31e)](){const _0x1f30ce=_0x2c0792;return this[_0x1f30ce(0x20e)]['getCurrentUnitOfType'](t[_0x1f30ce(0x257)]['UNIVER_DOC'])['getUnitId']();}[_0x2c0792(0x33d)](){const _0x23e47b=_0x2c0792;return this[_0x23e47b(0x20e)][_0x23e47b(0x2b0)](t[_0x23e47b(0x257)][_0x23e47b(0x248)])[_0x23e47b(0x28a)]();}[_0x2c0792(0x26c)](_0x345c21){return this['_getUnitNameByType'](_0x345c21,t['UniverInstanceType']['UNIVER_SHEET']);}['_getUnitNameByType'](_0x25da3e,_0xf96ddd){const _0x16e2ea=_0x2c0792;var _0x1384c8;let _0x5920b2=(_0x1384c8=this[_0x16e2ea(0x20e)][_0x16e2ea(0x2b0)](_0xf96ddd))==null?void 0x0:_0x1384c8['getSnapshot'](),_0x15d264=_0x5920b2==null?void 0x0:_0x5920b2['name'];return typeof _0x15d264=='string'&&_0x15d264[_0x16e2ea(0x251)]()?_0x15d264:_0x25da3e[_0x16e2ea(0x376)]['split']('.')['shift']()||document[_0x16e2ea(0x209)];}async[_0x2c0792(0x312)](){const _0x45859e=_0x2c0792;return this[_0x45859e(0x20e)][_0x45859e(0x2b0)](t[_0x45859e(0x257)][_0x45859e(0x295)])['getSnapshot']();}async[_0x2c0792(0x345)](){const _0x318929=_0x2c0792;return this['_univerInstanceService'][_0x318929(0x2b0)](t[_0x318929(0x257)]['UNIVER_DOC'])[_0x318929(0x28b)]();}async[_0x2c0792(0x36f)](){const _0x3cbfa7=_0x2c0792;let _0xfffbf8=this[_0x3cbfa7(0x20e)][_0x3cbfa7(0x2b0)](t[_0x3cbfa7(0x257)][_0x3cbfa7(0x248)]),_0x31e3e1=this['_resourceLoaderService'][_0x3cbfa7(0x2b4)](_0xfffbf8[_0x3cbfa7(0x28a)]());return _0x31e3e1==null?_0xfffbf8[_0x3cbfa7(0x28b)]():_0x31e3e1;}['_getLinkByUnitId'](_0x11ab87,_0x1943ea){const _0x11040e=_0x2c0792;let _0x11d63b=new URL(window[_0x11040e(0x249)][_0x11040e(0x2fe)]);return _0x11d63b[_0x11040e(0x1ff)][_0x11040e(0x231)](_0x11040e(0x233),_0x11ab87),_0x11d63b['searchParams']['set'](_0x11040e(0x222),''+_0x1943ea),_0x11d63b['toString']();}[_0x2c0792(0x305)](_0x545177){const _0xa8443e=_0x2c0792;let _0x4191ee=this[_0xa8443e(0x20e)][_0xa8443e(0x2b0)](t[_0xa8443e(0x257)][_0xa8443e(0x295)])[_0xa8443e(0x28a)]();this[_0xa8443e(0x20e)][_0xa8443e(0x32f)](_0x4191ee),this['_univerInstanceService'][_0xa8443e(0x2cd)](t[_0xa8443e(0x257)][_0xa8443e(0x295)],_0x545177);}[_0x2c0792(0x2df)](_0x1404bf){const _0x16b239=_0x2c0792;let _0x25ffb9=this[_0x16b239(0x20e)]['getCurrentUnitOfType'](t[_0x16b239(0x257)][_0x16b239(0x248)])['getUnitId']();this[_0x16b239(0x20e)]['disposeUnit'](_0x25ffb9),this['_univerInstanceService'][_0x16b239(0x2cd)](t[_0x16b239(0x257)][_0x16b239(0x248)],_0x1404bf);}['_showNetworkError'](_0x1d7ca5){const _0x1c7899=_0x2c0792;if(_0x1d7ca5){let {code:_0x384812}=_0x1d7ca5;switch(_0x384812){case l[_0x1c7899(0x2c7)][_0x1c7899(0x315)]:this[_0x1c7899(0x25c)][_0x1c7899(0x313)]({'type':s[_0x1c7899(0x2da)][_0x1c7899(0x1f2)],'content':this['_localeService']['t'](_0x1c7899(0x2c4))});break;case l[_0x1c7899(0x2c7)]['INTERNAL_ERROR']:this[_0x1c7899(0x25c)][_0x1c7899(0x313)]({'type':s[_0x1c7899(0x2da)][_0x1c7899(0x1f2)],'content':this[_0x1c7899(0x2ea)]['t'](_0x1c7899(0x34b))});break;default:this[_0x1c7899(0x25c)][_0x1c7899(0x313)]({'type':s[_0x1c7899(0x2da)][_0x1c7899(0x1f2)],'content':this[_0x1c7899(0x2ea)]['t']('exchange-client.networkError')});break;}return null;}return this[_0x1c7899(0x25c)][_0x1c7899(0x313)]({'type':s[_0x1c7899(0x2da)]['Error'],'content':this['_localeService']['t'](_0x1c7899(0x218))}),null;}[_0x2c0792(0x260)](_0x2de8d8){const _0x1bcb59=_0x2c0792;let _0xc1354b='';switch(_0x2de8d8){case s['MessageType']['Success']:_0xc1354b=this[_0x1bcb59(0x2ea)]['t'](_0x1bcb59(0x2dd));break;case s['MessageType'][_0x1bcb59(0x344)]:_0xc1354b=this[_0x1bcb59(0x2ea)]['t']('exchange-client.downloading');break;default:break;}this['_messageService'][_0x1bcb59(0x313)]({'type':_0x2de8d8,'content':_0xc1354b});}[_0x2c0792(0x2c3)](_0x22be1f){const _0x456d6b=_0x2c0792;let _0x522eda='';switch(_0x22be1f){case s[_0x456d6b(0x2da)]['Success']:_0x522eda=this['_localeService']['t'](_0x456d6b(0x32b));break;case s['MessageType']['Info']:_0x522eda=this[_0x456d6b(0x2ea)]['t'](_0x456d6b(0x258));break;default:break;}this['_messageService']['show']({'type':_0x22be1f,'content':_0x522eda});}['_emitProgress'](){this['_progress$']['next']({'done':this['_doneUploadTaskCount'],'count':this['_totalUploadTaskCount']});}[_0x2c0792(0x356)](_0x274d13){const _0x3fd6c5=_0x2c0792;this[_0x3fd6c5(0x374)]+=_0x274d13,this[_0x3fd6c5(0x244)]();}[_0x2c0792(0x327)](_0x1bfaff){const _0x5ec0d8=_0x2c0792;this[_0x5ec0d8(0x200)]+=_0x1bfaff,this['_doneUploadTaskCount']=Math[_0x5ec0d8(0x22b)](this[_0x5ec0d8(0x200)],this['_totalUploadTaskCount']),this[_0x5ec0d8(0x244)]();}[_0x2c0792(0x35b)](){const _0x233b75=_0x2c0792;this[_0x233b75(0x200)]=this[_0x233b75(0x374)],this[_0x233b75(0x244)]();}[_0x2c0792(0x349)](){const _0x407261=_0x2c0792;this['_doneUploadTaskCount']=0x0,this['_totalUploadTaskCount']=0x0,this[_0x407261(0x244)]();}[_0x2c0792(0x362)](_0x86f4a9,_0xa00c18){const _0x411c13=_0x2c0792;let _0x570727=_0x86f4a9[0x0],_0x142f3c=_0x570727[_0x411c13(0x376)];return D(_0x570727)===_0xa00c18?!0x1:(this['_messageService']['show']({'type':s[_0x411c13(0x2da)][_0x411c13(0x1f2)],'content':this[_0x411c13(0x2ea)]['t']('exchange-client.fileTypeError',_0x142f3c)}),!0x0);}['_uploadTaskNotDone'](){const _0x358815=_0x2c0792;return this[_0x358815(0x374)]!==0x0&&this['_doneUploadTaskCount']!==this[_0x358815(0x374)];}};function _0x243f(){const _0x182880=['UniverNetworkPlugin','minSheetRowCount','SuccessIcon','split','_logService','status','add','UNIVER_DOC','complete','_getUnitSlideJson','success','toDisposable','updateSnapshot','options','_totalUploadTaskCount','1.0.0-alpha.2','name','_getExportURL','textDecoder','_sheetBlockCache','importPPTXToSnapshot','univer-text-sm\x20univer-text-gray-500','hide','change','_export','Error','UNRECOGNIZED','univer-mt-5\x20univer-flex\x20univer-flex-col','DocsMultiIcon','3022190kkjWHR','useState','text','transformDocumentDataToSnapshot','statusText','Content-Type','object','_getTaskURL','application/vnd.openxmlformats-officedocument.spreadsheetml.template','searchParams','_doneUploadTaskCount','sheets','multiple','17yVDSAs','append','exportPPTXBySnapshot','pushLink','b64EncodeUnicode','Subject','title','Failed\x20to\x20get\x20text\x20from\x20url','error','appendChild','pathname','_univerInstanceService','download','div','docx','exchange-client.wait','createElement','_requestState$','connectInjector','/universer-api/file/{fileID}/sign-url','UNDEFINED','exchange-client.networkError','unitID','IExchangeOperateService','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','_registerIcons','sheetBlocks','resources','exportServerUrl','_list$','Plugin','type','upload','_getIgnoreTableExport','Inject','getTask','univer-ml-1.5\x20univer-font-semibold\x20univer-leading-6\x20univer-text-gray-900\x20dark:!univer-text-white','ExchangeOperateService','application/vnd.openxmlformats-officedocument.wordprocessingml.document','resolve','min','SUCCESS','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','_getDownloadEndpointURL','transformWorkbookDataToSnapshotJson','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','set','_resourceLoaderService','unit','saveChangeset','_httpService','exchange-client.uploadSuccessTip','Error\x20getting\x20file\x20name\x20from\x20URL:','getUploadFile','block\x20is\x20required','_uploadTaskNotDone','_uiPartsService','join','importServerUrl','requestState$','Injector','click','importXLSXToSnapshot','createIdentifier','rev','_emitProgress','FileId','_exportBySnapshot','exportXLSXBySnapshot','UNIVER_SLIDE','location','_getSignURL','url','univer-pro.exchange-client.exchange.service','upload\x20failed:\x20FileId\x20is\x20empty','\x20-\x20','sign\x20url\x20error','_importTaskId','trim','input','snapshot','prototype','IRequestService','post','UniverInstanceType','exchange-client.uploading','_signUrl','asObservable','_importToSnapshot','_messageService','exportDOCXByUnitId','_requestService','478974UkLCyO','_showDownloadMessage','uploadFileToUnitId','slide','_list','univer-mt-5\x20univer-max-h-72\x20univer-overflow-y-auto\x20univer-overflow-x-hidden','files','ClockIcon','Error\x20fetching\x20file\x20from\x20URL:','keys','_getUnitID','application/octet-stream','_getUnitNameByType','_getUnitName','_import','_importFileToUnitId','call','link','univer-flex','iterator','IExchangeService','disableCellImageConversion','?size=','importFileToUnitIdByCurrentType','importPPTXToUnitId','state$','_upload','getFocusedUnit','&flate=','blockID','&source=','76ZrRkAy','21pVHnuv','fileID','getSheetBlock','_getMinSheetRowCount','signUrlServerUrl','upload\x20request\x20failed:\x20failed\x20to\x20read\x20source\x20file\x20from\x20url','interruptImportTask','xltx','transformSnapshotToWorkbookData','size','version','getUnitId','getSnapshot','BuiltInUIPart','UploadNotificationService','transformSlideDataToSnapshot','univer-m-0\x20univer-flex\x20univer-list-none\x20univer-flex-col\x20univer-gap-2\x20univer-p-0','UPLOADING','removeChild','message','packageName','_getMaxPollingTime','UNIVER_SHEET','exchange-client.uploadAgain','946qHrOCc','Disposable','_uploadNotificationService','Failed\x20to\x20get\x20fileID\x20from\x20task','symbol','list$','HTTPService','forEach','doc','ErrorIcon','saveSnapshot','UniverExchangeClientPlugin','exportPPTXByUnitId','number','transformDocumentDataToSnapshotJson','_getDisableCellImageConversion','getConfig','export\x20error','Success','span','unshift','onReady','headers','decode','toLowerCase','getCurrentUnitOfType','values','body','exportDOCXBySnapshot','saveUnit','_configService','importFileToUnitId','useDependency','No\x20file\x20selected','import','transformSnapshotToDocumentData','transformSnapshotJsonToSlideData','clear','jsonID','Failed\x20to\x20parse\x20json','b64DecodeUnicode','file','clearTaskInterrupted','jsxs','_showUploadMessage','exchange-client.tooLarge','/universer-api/exchange/{type}/export','visible$','ErrorCode','file.json','UNIVER_UNKNOWN','parse','ERROR','univer-h-6\x20univer-text-2xl','createUnit','_state$','12010QDTvrD','169596PZRfCL','Failed\x20to\x20get\x20taskID\x20from\x20import\x20response','CONTENT','none','importDOCXToSnapshot','file.','getUniverInstanceTypeByFile','UNIVER_EXCHANGE_CLIENT_PLUGIN','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','registerComponent','MessageType','content-disposition','some','exchange-client.downloadSuccess','default','_refreshSlide','getTextFromUrl','noreferrer','_registerComponents','SheetsMultiIcon','updateState','Failed\x20to\x20get\x20unitID\x20from\x20task','toPrimitive','style','pluginName','outputType','_localeService','origin','_taskInterrupted','369420kysMIj','signUrl','_progress$','unsubscribe','IUniverInstanceService','xlsx','buffer','pop','taskID','xlsm','FileSource','@univerjs-pro/exchange-client','Method\x20not\x20implemented.','_config','workbook.json','Get\x20outputType\x20error','floor','href','transformSnapshotToSlideData','univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','workbook','Failed\x20to\x20transform\x20snapshot\x20to\x20string','151352bWiitd','enableServerSideComputing','_refresh','_getEnableServerSideComputing','Failed\x20to\x20get\x20jsonID\x20from\x20task','setTaskInterrupted','progress$','subscribe','application/vnd.openxmlformats-officedocument.presentationml.presentation','blob','get','onStarting','addEventListener','defineProperty',':\x20HTTP\x20','_getUnitJson','show','disposeWithMe','CONNECTOR_DATA_TOO_LARGE','data','IMessageService','_exchangeService','toStringTag','code','DependentOn','_extractErrorDetail','jsx','_getUnitIDDoc','_buildProtocolErrorMessage','next','originalMeta','scrollbarClassName','Warning','_iconManager','revokeObjectURL','univer-ml-1\x20univer-truncate\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','_addDoneTask','exchange-client.cancel','deflateSync','import\x20error','exchange-client.uploadSuccess','DirectExportIcon','univer-mb-3\x20univer-py-0\x20univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','replace','disposeUnit','univer-pro.exchange-client.request.service','IConfigService','univer-text-red-500','univer-text-blue-500','filter','catch','clsx','map','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','exportXLSXByUnitId','getResourcesRequest','string','univer-flex\x20univer-w-[calc(100%-48px)]\x20univer-items-center','_getUnitIDSlide','UniverLicensePlugin','dispose','useEffect','button','minSheetColumnCount','_buildHttpErrorMessage','Info','_getUnitDocJson','accept','function','application/json','_clearProgress','registerLink','exchange-client.internalError','getDeserializedSheetBlock','createObjectURL','_blank','encode','SlidesMultiIcon','copyFileMeta','decorate','importDOCXToUnitId','_visible$','getUnitOnRev','_addTotalCount','isArray','LocaleService','importXLSXToUnitId','UNIVER_BOARD','_completeProgress','_getMinSheetColumnCount','downloadFile','_injector','uploadFileServerUrl','{fileID}','_getImportURL','_fileTypeError','registerDependencies','interrupt','length'];_0x243f=function(){return _0x182880;};return _0x243f();}function _0x37e6(_0x416d57,_0x4fea30){_0x416d57=_0x416d57-0x1f1;const _0x243f9e=_0x243f();let _0x37e699=_0x243f9e[_0x416d57];return _0x37e699;}J=P([N(0x0,(0x0,t[_0x2c0792(0x225)])(t[_0x2c0792(0x2f1)])),N(0x1,i[_0x2c0792(0x317)]),N(0x2,(0x0,t['Inject'])(t[_0x2c0792(0x358)])),N(0x3,(0x0,t[_0x2c0792(0x225)])(G)),N(0x4,(0x0,t[_0x2c0792(0x225)])(_)),N(0x5,t['ILogService']),N(0x6,(0x0,t[_0x2c0792(0x225)])(t['IResourceLoaderService']))],J);function Y(_0x3f5a6a){const _0x3ac204=_0x2c0792;let {onClick:_0x85d1d3,children:_0x588649,className:_0x216ede}=_0x3f5a6a;return(0x0,c[_0x3ac204(0x31d)])(_0x3ac204(0x341),{'className':(0x0,s[_0x3ac204(0x336)])(_0x3ac204(0x22d),_0x216ede),'type':_0x3ac204(0x341),'onClick':_0x85d1d3,'children':_0x588649});}function X(){const _0x26c94c=_0x2c0792;let _0x2cb8dd=(0x0,i[_0x26c94c(0x2b7)])(q),_0x4747c1=(0x0,i[_0x26c94c(0x2b7)])(t[_0x26c94c(0x358)]);function _0x36a1eb(){const _0x34a40c=_0x26c94c;_0x2cb8dd[_0x34a40c(0x276)]();}return(0x0,c['jsx'])(Y,{'onClick':_0x36a1eb,'children':_0x4747c1['t'](_0x26c94c(0x296))});}function me(){const _0x3c35c1=_0x2c0792;return(0x0,c[_0x3c35c1(0x2c2)])(_0x3c35c1(0x210),{'className':'univer-mt-5\x20univer-flex\x20univer-flex-col','children':[(0x0,c['jsx'])('span',{'className':_0x3c35c1(0x32d),'children':(0x0,i[_0x3c35c1(0x2b7)])(t[_0x3c35c1(0x358)])['t']('exchange-client.interrupt')}),(0x0,c[_0x3c35c1(0x31d)])(X,{})]});}function he(_0x42df86){const _0x63de40=_0x2c0792;let {count:_0x1e0254}=_0x42df86;return(0x0,c[_0x63de40(0x2c2)])(_0x63de40(0x210),{'className':'univer-mt-3\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-2\x20univer-pr-1','children':[(0x0,c['jsx'])(_0x63de40(0x2aa),{'className':_0x63de40(0x37b),'children':(0x0,i[_0x63de40(0x2b7)])(t['LocaleService'])['t'](_0x63de40(0x236),''+_0x1e0254)}),(0x0,c['jsx'])(X,{})]});}function ge(){const _0x4682f4=_0x2c0792;let _0xf6605d=(0x0,i['useDependency'])(q),_0x257667=(0x0,i[_0x4682f4(0x2b7)])(t[_0x4682f4(0x358)]);function _0x21d96d(){const _0x9abbdf=_0x4682f4;_0xf6605d[_0x9abbdf(0x364)]();}return(0x0,c[_0x4682f4(0x31d)])(Y,{'onClick':_0x21d96d,'children':_0x257667['t'](_0x4682f4(0x328))});}function _e(){const _0x2f8904=_0x2c0792;let {count:_0x2477e5,done:_0xc1ebef}=(0x0,i['useObservable'])((0x0,i[_0x2f8904(0x2b7)])(q)[_0x2f8904(0x309)]),[_0x51d808,_0x345a06]=(0x0,a['useState'])(_0x2477e5>0x0?_0xc1ebef/_0x2477e5:0x0);return(0x0,a['useEffect'])(()=>{_0x345a06(_0x2477e5>0x0?_0xc1ebef/_0x2477e5:0x0);},[_0x2477e5,_0xc1ebef]),(0x0,c['jsx'])(_0x2f8904(0x210),{'className':'univer-mx-0\x20univer-mb-3\x20univer-mt-4\x20univer-h-1.5\x20univer-w-[324px]\x20univer-rounded-lg\x20univer-bg-gray-200','children':(0x0,c[_0x2f8904(0x31d)])(_0x2f8904(0x210),{'className':'univer-h-1.5\x20univer-rounded-lg\x20univer-bg-primary-600\x20univer-transition-[width]\x20univer-duration-500','style':{'width':Math[_0x2f8904(0x2fd)](_0x51d808*0x64)+'%'}})});}function ve(){const _0x4df03f=_0x2c0792;return(0x0,c[_0x4df03f(0x2c2)])('div',{'className':_0x4df03f(0x1f4),'children':[(0x0,c['jsx'])('span',{'className':_0x4df03f(0x300),'children':(0x0,i['useDependency'])(t[_0x4df03f(0x358)])['t'](_0x4df03f(0x212))}),(0x0,c[_0x4df03f(0x31d)])('div',{'className':'univer-pl-2\x20univer-pr-4','children':(0x0,c[_0x4df03f(0x31d)])(_e,{})}),(0x0,c[_0x4df03f(0x31d)])(ge,{})]});}const ye={0x1:(0x0,c['jsx'])(r[_0x2c0792(0x368)],{'className':'univer-text-green-500'}),0x0:(0x0,c[_0x2c0792(0x31d)])(r[_0x2c0792(0x266)],{'className':_0x2c0792(0x333)}),0x2:(0x0,c[_0x2c0792(0x31d)])(r[_0x2c0792(0x2a0)],{'className':_0x2c0792(0x332)})};function be(){const _0x419db9=_0x2c0792;let [_0xd4fcb0,_0x4e2bf7]=(0x0,a[_0x419db9(0x1f7)])(0x0),[_0x25160d,_0x52dbb4]=(0x0,a[_0x419db9(0x1f7)])(!0x1),[_0x48a2ea,_0x5bab8e]=(0x0,a[_0x419db9(0x1f7)])([]),_0xef2ea4=(0x0,i['useDependency'])(_),_0x547232=(0x0,i['useDependency'])(t[_0x419db9(0x358)]);(0x0,a[_0x419db9(0x340)])(()=>{const _0x3358a6=_0x419db9;let _0x192b5f=_0xef2ea4['visible$']['subscribe'](_0x5b6e43=>{_0x52dbb4(_0x5b6e43);}),_0x4d53d7=_0xef2ea4[_0x3358a6(0x29c)][_0x3358a6(0x30a)](_0x2df22c=>{_0x5bab8e(_0x2df22c);}),_0x563501=_0xef2ea4['state$'][_0x3358a6(0x30a)](_0x188832=>{_0x4e2bf7(_0x188832);});return()=>{const _0x4b1cbe=_0x3358a6;_0x192b5f[_0x4b1cbe(0x2f0)](),_0x4d53d7[_0x4b1cbe(0x2f0)](),_0x563501[_0x4b1cbe(0x2f0)]();};},[]);function _0x154e0a(){_0x52dbb4(!0x1);}function _0x3d92fe(_0x29e52e){const _0x1d853b=_0x419db9;switch(_0x29e52e){case 0x1:return _0x547232['t']('exchange-client.uploadSuccess');case 0x0:return _0x547232['t'](_0x1d853b(0x258));case 0x2:return _0x547232['t']('exchange-client.unknownMistake');default:return'';}}return _0x25160d&&(0x0,c[_0x419db9(0x2c2)])(_0x419db9(0x210),{'className':_0x419db9(0x2d8),'children':[(0x0,c['jsxs'])(_0x419db9(0x210),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-1.5\x20univer-pr-2','children':[(0x0,c[_0x419db9(0x2c2)])(_0x419db9(0x2aa),{'className':_0x419db9(0x271),'children':[(0x0,c[_0x419db9(0x31d)])(_0x419db9(0x2aa),{'className':_0x419db9(0x2cc),'children':ye[_0xd4fcb0]}),(0x0,c[_0x419db9(0x31d)])(_0x419db9(0x2aa),{'className':_0x419db9(0x227),'children':_0x3d92fe(_0xd4fcb0)})]}),(0x0,c[_0x419db9(0x31d)])(_0x419db9(0x2aa),{'className':_0x419db9(0x338),'onClick':_0x154e0a,'children':(0x0,c[_0x419db9(0x31d)])(r['CloseIcon'],{})})]}),(0x0,c[_0x419db9(0x2c2)])(_0x419db9(0x210),{'children':[_0xd4fcb0===0x0&&(0x0,c[_0x419db9(0x31d)])(ve,{}),_0xd4fcb0===0x2&&(0x0,c['jsx'])(me,{}),_0x48a2ea[_0x419db9(0x365)]>0x0&&(0x0,c[_0x419db9(0x31d)])(ie,{'list':_0x48a2ea}),_0xd4fcb0===0x1&&(0x0,c['jsx'])(he,{'count':_0x48a2ea['length']})]})]});}function Z(){const _0x3530dd=_0x2c0792;return(0x0,c[_0x3530dd(0x31d)])(be,{});}let Q=class extends t[_0x2c0792(0x298)]{constructor(_0x20ccad,_0x5d762c,_0x3c7475){const _0x4f4d51=_0x2c0792;super(),this['_injector']=_0x20ccad,this[_0x4f4d51(0x23b)]=_0x5d762c,this[_0x4f4d51(0x324)]=_0x3c7475,this[_0x4f4d51(0x21c)](),this[_0x4f4d51(0x2e2)]();}[_0x2c0792(0x21c)](){const _0x460a3b=_0x2c0792;this[_0x460a3b(0x314)](this['_iconManager']['register']({'DirectExportIcon':r[_0x460a3b(0x32c)]}));}[_0x2c0792(0x2e2)](){const _0x4e0fac=_0x2c0792;this[_0x4e0fac(0x314)](this['_uiPartsService'][_0x4e0fac(0x2d9)](i[_0x4e0fac(0x28c)][_0x4e0fac(0x2d2)],()=>(0x0,i[_0x4e0fac(0x215)])(Z,this[_0x4e0fac(0x35e)])));}};Q=P([N(0x0,(0x0,t[_0x2c0792(0x225)])(t[_0x2c0792(0x23f)])),N(0x1,i['IUIPartsService']),N(0x2,(0x0,t[_0x2c0792(0x225)])(i['IconManager']))],Q);let $=class extends t[_0x2c0792(0x221)]{constructor(_0x3320a9=p,_0x517518,_0x5b743a){const _0xdd562b=_0x2c0792;super(),this['_config']=_0x3320a9,this[_0xdd562b(0x35e)]=_0x517518,this[_0xdd562b(0x2b5)]=_0x5b743a;let {..._0x213e49}=(0x0,t['merge'])({},p,this[_0xdd562b(0x2fa)]);this[_0xdd562b(0x2b5)]['setConfig'](f,_0x213e49);}[_0x2c0792(0x30e)](){const _0x14784e=_0x2c0792;(0x0,t[_0x14784e(0x363)])(this[_0x14784e(0x35e)],[[Q],[q,{'useClass':J}],[G,{'useClass':K}],[F,{'useClass':I}],[_,{'useClass':v}]]);}[_0x2c0792(0x2ac)](){(0x0,t['touchDependencies'])(this['_injector'],[[Q],[q]]);}};g($,_0x2c0792(0x2e8),_0x2c0792(0x2d7)),g($,_0x2c0792(0x293),m),g($,_0x2c0792(0x289),ee),$=P([(0x0,t[_0x2c0792(0x31b)])(n[_0x2c0792(0x366)],e[_0x2c0792(0x33e)]),N(0x1,(0x0,t['Inject'])(t['Injector'])),N(0x2,t[_0x2c0792(0x331)])],$),exports['EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY']=f,Object['defineProperty'](exports,_0x2c0792(0x228),{'enumerable':!0x0,'get':function(){return J;}}),Object['defineProperty'](exports,'ExchangeService',{'enumerable':!0x0,'get':function(){return K;}}),exports[_0x2c0792(0x21a)]=q,exports[_0x2c0792(0x273)]=G,exports[_0x2c0792(0x255)]=F,exports['IUploadNotificationService']=_,Object[_0x2c0792(0x310)](exports,'RequestService',{'enumerable':!0x0,'get':function(){return I;}}),Object['defineProperty'](exports,_0x2c0792(0x2a2),{'enumerable':!0x0,'get':function(){return $;}}),exports['UploadNotificationContainer']=Z,exports[_0x2c0792(0x28d)]=v,exports['UploadNotificationState']=re,exports[_0x2c0792(0x35d)]=E,exports[_0x2c0792(0x2d6)]=D,exports[_0x2c0792(0x238)]=k,exports[_0x2c0792(0x2a5)]=z,exports['transformSlideDataToSnapshotJson']=B,exports['transformSnapshotJsonToDocumentData']=H,exports[_0x2c0792(0x2bb)]=U,exports['transformSnapshotJsonToWorkbookData']=V,exports[_0x2c0792(0x22f)]=R;
|
package/lib/cjs/locale/ar-SA.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1dc9(_0x22ac22,_0x19f473){_0x22ac22=_0x22ac22-0x1d5;const _0x4ae9d8=_0x4ae9();let _0x1dc9e8=_0x4ae9d8[_0x22ac22];return _0x1dc9e8;}function _0x4ae9(){const _0x17c395=['5206888yHjrDj','إعادة\x20الرفع','نوع\x20الملف\x20المحدد\x20[{0}]\x20غير\x20مدعوم\x20للرفع','2895520ZvBuls','195352hzcwuY','يرجى\x20الانتظار...','4HrpErr','exports','914004ubRmCd','1218933XiYKMv','خطأ\x20في\x20الشبكة','4JYrFMh','61194vgWpGx','تم\x20التحميل\x20بنجاح','610090FJaRTU','9ZKOyJy','البيانات\x20كبيرة\x20جداً','خطأ\x20غير\x20معروف','إلغاء'];_0x4ae9=function(){return _0x17c395;};return _0x4ae9();}const _0x54a02b=_0x1dc9;(function(_0x33969b,_0x56bc9b){const _0x3f6abf=_0x1dc9,_0xf6d5ec=_0x33969b();while(!![]){try{const _0x55c85e=-parseInt(_0x3f6abf(0x1d8))/0x1*(parseInt(_0x3f6abf(0x1e4))/0x2)+-parseInt(_0x3f6abf(0x1d6))/0x3+-parseInt(_0x3f6abf(0x1e6))/0x4*(-parseInt(_0x3f6abf(0x1e3))/0x5)+parseInt(_0x3f6abf(0x1d5))/0x6+parseInt(_0x3f6abf(0x1d9))/0x7+-parseInt(_0x3f6abf(0x1e0))/0x8*(-parseInt(_0x3f6abf(0x1dc))/0x9)+-parseInt(_0x3f6abf(0x1db))/0xa;if(_0x55c85e===_0x56bc9b)break;else _0xf6d5ec['push'](_0xf6d5ec['shift']());}catch(_0x4e964c){_0xf6d5ec['push'](_0xf6d5ec['shift']());}}}(_0x4ae9,0x82219));const e={'exchange-client':{'uploading':'جارٍ\x20الرفع','uploadSuccess':'تم\x20رفع\x20الملف\x20بنجاح','uploadSuccessTip':'تم\x20رفع\x20{0}\x20ملف/ملفات\x20بنجاح','downloading':'جارٍ\x20التحميل','downloadSuccess':_0x54a02b(0x1da),'unknownMistake':_0x54a02b(0x1de),'networkError':_0x54a02b(0x1d7),'tooLarge':_0x54a02b(0x1dd),'internalError':'خطأ\x20داخلي\x20غير\x20معروف','interrupt':'تمت\x20مقاطعة\x20الاتصال\x20بالشبكة\x20وفشل\x20رفع\x20الملف','fileTypeError':_0x54a02b(0x1e2),'wait':_0x54a02b(0x1e5),'cancel':_0x54a02b(0x1df),'uploadAgain':_0x54a02b(0x1e1)}};module[_0x54a02b(0x1e7)]=e;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1502fb=_0x334a;function _0x981a(){const _0x126ec2=['Error\x20de\x20xarxa','Fitxer\x20pujat\x20correctament','exports','La\x20connexió\x20de\x20xarxa\x20s\x27ha\x20interromput\x20i\x20la\x20pujada\x20del\x20fitxer\x20ha\x20fallat','200862EZtvNU','664OIfZWk','6ZzaEnf','4LrKXMa','1108455MhxrkW','Pujant','Cancel·lar','Error\x20intern\x20desconegut','Les\x20dades\x20són\x20massa\x20grans','{0}\x20fitxer(s)\x20pujat(s)\x20correctament','26472260wJYNOJ','Descàrrega\x20correcta','2956240LQaerM','12482876GWQIQu','Error\x20desconegut','32328HFkWUN','1873400aSlGSf'];_0x981a=function(){return _0x126ec2;};return _0x981a();}(function(_0x15658c,_0x16ad51){const _0x258523=_0x334a,_0x224b3d=_0x15658c();while(!![]){try{const _0x49a88e=parseInt(_0x258523(0x19f))/0x1+parseInt(_0x258523(0x1a0))/0x2+-parseInt(_0x258523(0x194))/0x3*(parseInt(_0x258523(0x193))/0x4)+parseInt(_0x258523(0x19c))/0x5*(-parseInt(_0x258523(0x192))/0x6)+parseInt(_0x258523(0x19d))/0x7+-parseInt(_0x258523(0x191))/0x8*(-parseInt(_0x258523(0x1a5))/0x9)+-parseInt(_0x258523(0x19a))/0xa;if(_0x49a88e===_0x16ad51)break;else _0x224b3d['push'](_0x224b3d['shift']());}catch(_0x3e151e){_0x224b3d['push'](_0x224b3d['shift']());}}}(_0x981a,0xf357b));function _0x334a(_0x2811cf,_0x54cc88){_0x2811cf=_0x2811cf-0x191;const _0x981a35=_0x981a();let _0x334ac5=_0x981a35[_0x2811cf];return _0x334ac5;}const e={'exchange-client':{'uploading':_0x1502fb(0x195),'uploadSuccess':_0x1502fb(0x1a2),'uploadSuccessTip':_0x1502fb(0x199),'downloading':'Descarregant','downloadSuccess':_0x1502fb(0x19b),'unknownMistake':_0x1502fb(0x19e),'networkError':_0x1502fb(0x1a1),'tooLarge':_0x1502fb(0x198),'internalError':_0x1502fb(0x197),'interrupt':_0x1502fb(0x1a4),'fileTypeError':'El\x20fitxer\x20seleccionat\x20[{0}]\x20no\x20és\x20compatible\x20per\x20pujar','wait':'Espereu...','cancel':_0x1502fb(0x196),'uploadAgain':'Tornar\x20a\x20pujar'}};module[_0x1502fb(0x1a3)]=e;
|
package/lib/cjs/locale/de-DE.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x28cde4=_0x3ac3;function _0x3ac3(_0x153335,_0x10aad0){_0x153335=_0x153335-0x152;const _0x483c6b=_0x483c();let _0x3ac355=_0x483c6b[_0x153335];return _0x3ac355;}function _0x483c(){const _0x258c55=['Erneut\x20hochladen','6OOygNB','Datei\x20erfolgreich\x20hochgeladen','2692711NHyCIV','Die\x20Netzwerkverbindung\x20wurde\x20unterbrochen\x20und\x20der\x20Datei-Upload\x20ist\x20fehlgeschlagen','Interner\x20unbekannter\x20Fehler','Unbekannter\x20Fehler','1311050qCSuJU','257463rHfkLi','16AbDKkt','Bitte\x20warten...','Daten\x20sind\x20zu\x20groß','exports','{0}\x20Datei(en)\x20erfolgreich\x20hochgeladen','Die\x20ausgewählte\x20Datei\x20[{0}]\x20wird\x20für\x20den\x20Upload\x20nicht\x20unterstützt','119058tvwDkn','9818990RCFyMG','Download\x20erfolgreich','1302345YCJBJN','3302280kSZztP','6iwOMvs','Netzwerkfehler','11DDbgDY'];_0x483c=function(){return _0x258c55;};return _0x483c();}(function(_0x484983,_0x112160){const _0x1b9ae8=_0x3ac3,_0xdcdcea=_0x484983();while(!![]){try{const _0x2e54e2=parseInt(_0x1b9ae8(0x165))/0x1*(parseInt(_0x1b9ae8(0x160))/0x2)+-parseInt(_0x1b9ae8(0x163))/0x3+parseInt(_0x1b9ae8(0x164))/0x4+parseInt(_0x1b9ae8(0x158))/0x5+parseInt(_0x1b9ae8(0x152))/0x6*(parseInt(_0x1b9ae8(0x154))/0x7)+-parseInt(_0x1b9ae8(0x15a))/0x8*(-parseInt(_0x1b9ae8(0x159))/0x9)+-parseInt(_0x1b9ae8(0x161))/0xa*(parseInt(_0x1b9ae8(0x167))/0xb);if(_0x2e54e2===_0x112160)break;else _0xdcdcea['push'](_0xdcdcea['shift']());}catch(_0x3bc8fb){_0xdcdcea['push'](_0xdcdcea['shift']());}}}(_0x483c,0x72f2b));const e={'exchange-client':{'uploading':'Wird\x20hochgeladen','uploadSuccess':_0x28cde4(0x153),'uploadSuccessTip':_0x28cde4(0x15e),'downloading':'Wird\x20heruntergeladen','downloadSuccess':_0x28cde4(0x162),'unknownMistake':_0x28cde4(0x157),'networkError':_0x28cde4(0x166),'tooLarge':_0x28cde4(0x15c),'internalError':_0x28cde4(0x156),'interrupt':_0x28cde4(0x155),'fileTypeError':_0x28cde4(0x15f),'wait':_0x28cde4(0x15b),'cancel':'Abbrechen','uploadAgain':_0x28cde4(0x168)}};module[_0x28cde4(0x15d)]=e;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x57b812=_0x2273;function _0x2273(_0x1cd42b,_0x1dc4aa){_0x1cd42b=_0x1cd42b-0x1e3;const _0x3d7405=_0x3d74();let _0x2273b3=_0x3d7405[_0x1cd42b];return _0x2273b3;}(function(_0x449bd6,_0xcb10dd){const _0x4232ec=_0x2273,_0x36f1d2=_0x449bd6();while(!![]){try{const _0x126489=-parseInt(_0x4232ec(0x1ec))/0x1*(parseInt(_0x4232ec(0x1e7))/0x2)+-parseInt(_0x4232ec(0x1e8))/0x3+parseInt(_0x4232ec(0x1e6))/0x4*(parseInt(_0x4232ec(0x1f4))/0x5)+-parseInt(_0x4232ec(0x1ed))/0x6+-parseInt(_0x4232ec(0x1e9))/0x7*(parseInt(_0x4232ec(0x1e3))/0x8)+-parseInt(_0x4232ec(0x1e4))/0x9*(parseInt(_0x4232ec(0x1f0))/0xa)+parseInt(_0x4232ec(0x1eb))/0xb;if(_0x126489===_0xcb10dd)break;else _0x36f1d2['push'](_0x36f1d2['shift']());}catch(_0x2f0c6a){_0x36f1d2['push'](_0x36f1d2['shift']());}}}(_0x3d74,0xf3280));const e={'exchange-client':{'uploading':_0x57b812(0x1e5),'uploadSuccess':_0x57b812(0x1f5),'uploadSuccessTip':_0x57b812(0x1ea),'downloading':_0x57b812(0x1f2),'downloadSuccess':_0x57b812(0x1f1),'unknownMistake':_0x57b812(0x1ee),'networkError':_0x57b812(0x1f8),'tooLarge':_0x57b812(0x1f7),'internalError':'Internal\x20unknown\x20error','interrupt':_0x57b812(0x1f9),'fileTypeError':'Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','wait':_0x57b812(0x1f3),'cancel':_0x57b812(0x1ef),'uploadAgain':_0x57b812(0x1f6)}};function _0x3d74(){const _0x1e383a=['Downloading','Please\x20wait...','4809615WPmEfZ','File\x20uploaded\x20successfully','Upload\x20again','Data\x20is\x20too\x20large','Network\x20error','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','1264hcYkMc','63ULAFmg','Uploading','4IiiMVR','1506686MSWyNW','621102BKCaWo','30373NIKHst','{0}\x20file(s)\x20uploaded\x20successfully','50465217wUgvjQ','1NriYkT','8067810tCXqEY','Unknown\x20mistake','Cancel','2233040fMzltP','Download\x20success'];_0x3d74=function(){return _0x1e383a;};return _0x3d74();}module['exports']=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x2b5212=_0x5e9b;function _0x5b23(){const _0x3e6e2d=['6InpiJS','223294yFvlCe','Archivo\x20subido\x20exitosamente','55bhBIkr','El\x20archivo\x20seleccionado\x20[{0}]\x20no\x20es\x20compatible\x20para\x20subir','5879160phztdE','1842612lCFEQX','8wajMAv','Error\x20de\x20red','Descargando','212600EnAPLt','Cancelar','6RGvtxw','Subiendo','{0}\x20archivo(s)\x20subido(s)\x20exitosamente','4473805PHmkmX','1379022RBkbfT','Descarga\x20exitosa','429867XHtIfn','Subir\x20de\x20nuevo','Espere...','Los\x20datos\x20son\x20demasiado\x20grandes'];_0x5b23=function(){return _0x3e6e2d;};return _0x5b23();}(function(_0x11e6b8,_0x3e4a14){const _0x50dcc7=_0x5e9b,_0x4c445b=_0x11e6b8();while(!![]){try{const _0x312da1=parseInt(_0x50dcc7(0xed))/0x1*(parseInt(_0x50dcc7(0xf8))/0x2)+parseInt(_0x50dcc7(0xf1))/0x3+-parseInt(_0x50dcc7(0xe7))/0x4+parseInt(_0x50dcc7(0xf0))/0x5*(-parseInt(_0x50dcc7(0xf7))/0x6)+parseInt(_0x50dcc7(0xe6))/0x7+-parseInt(_0x50dcc7(0xe8))/0x8*(parseInt(_0x50dcc7(0xf3))/0x9)+parseInt(_0x50dcc7(0xeb))/0xa*(-parseInt(_0x50dcc7(0xe4))/0xb);if(_0x312da1===_0x3e4a14)break;else _0x4c445b['push'](_0x4c445b['shift']());}catch(_0x5c1af6){_0x4c445b['push'](_0x4c445b['shift']());}}}(_0x5b23,0x704b7));const e={'exchange-client':{'uploading':_0x2b5212(0xee),'uploadSuccess':_0x2b5212(0xf9),'uploadSuccessTip':_0x2b5212(0xef),'downloading':_0x2b5212(0xea),'downloadSuccess':_0x2b5212(0xf2),'unknownMistake':'Error\x20desconocido','networkError':_0x2b5212(0xe9),'tooLarge':_0x2b5212(0xf6),'internalError':'Error\x20interno\x20desconocido','interrupt':'La\x20conexión\x20de\x20red\x20se\x20interrumpió\x20y\x20la\x20carga\x20del\x20archivo\x20falló','fileTypeError':_0x2b5212(0xe5),'wait':_0x2b5212(0xf5),'cancel':_0x2b5212(0xec),'uploadAgain':_0x2b5212(0xf4)}};function _0x5e9b(_0x34fe28,_0x572346){_0x34fe28=_0x34fe28-0xe4;const _0x5b2370=_0x5b23();let _0x5e9b25=_0x5b2370[_0x34fe28];return _0x5e9b25;}module['exports']=e;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x5cce(){const _0x22d221=['لطفا\x20صبر\x20کنید...','در\x20حال\x20بارگذاری','175SiCsTT','9vDOXjx','1269216asJauu','14356914VxvSzm','59463UfuNTw','لغو','دانلود\x20موفقیت\x20آمیز','داده\x20خیلی\x20بزرگ\x20است','خطای\x20ناشناخته','1079925bGXcRz','8099090KysyDH','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','در\x20حال\x20دانلود','68184tRphaf','135930sJBeCX','195OWCGqE','بارگذاری\x20مجدد','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','خطای\x20داخلی\x20ناشناخته','188XnTpyC'];_0x5cce=function(){return _0x22d221;};return _0x5cce();}const _0x26c968=_0x54f6;(function(_0x204e3e,_0xf83554){const _0x93b669=_0x54f6,_0x1dc907=_0x204e3e();while(!![]){try{const _0x6052e7=-parseInt(_0x93b669(0x1f7))/0x1+parseInt(_0x93b669(0x1f0))/0x2+parseInt(_0x93b669(0x1f2))/0x3*(parseInt(_0x93b669(0x1eb))/0x4)+-parseInt(_0x93b669(0x1fd))/0x5*(-parseInt(_0x93b669(0x1fc))/0x6)+-parseInt(_0x93b669(0x1ee))/0x7*(parseInt(_0x93b669(0x1fb))/0x8)+parseInt(_0x93b669(0x1ef))/0x9*(parseInt(_0x93b669(0x1f8))/0xa)+-parseInt(_0x93b669(0x1f1))/0xb;if(_0x6052e7===_0xf83554)break;else _0x1dc907['push'](_0x1dc907['shift']());}catch(_0x5c1333){_0x1dc907['push'](_0x1dc907['shift']());}}}(_0x5cce,0xa17e3));function _0x54f6(_0x225b14,_0xdc1151){_0x225b14=_0x225b14-0x1ea;const _0x5ccefa=_0x5cce();let _0x54f684=_0x5ccefa[_0x225b14];return _0x54f684;}const e={'exchange-client':{'uploading':_0x26c968(0x1ed),'uploadSuccess':_0x26c968(0x200),'uploadSuccessTip':_0x26c968(0x1ff),'downloading':_0x26c968(0x1fa),'downloadSuccess':_0x26c968(0x1f4),'unknownMistake':_0x26c968(0x1f6),'networkError':'خطای\x20شبکه','tooLarge':_0x26c968(0x1f5),'internalError':_0x26c968(0x1ea),'interrupt':_0x26c968(0x1f9),'fileTypeError':'فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمیشود','wait':_0x26c968(0x1ec),'cancel':_0x26c968(0x1f3),'uploadAgain':_0x26c968(0x1fe)}};module['exports']=e;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x38f192=_0x3ce4;(function(_0x3b73f5,_0x88d8c3){const _0x4ac50f=_0x3ce4,_0x5c55ff=_0x3b73f5();while(!![]){try{const _0x1af15d=-parseInt(_0x4ac50f(0x1e5))/0x1*(parseInt(_0x4ac50f(0x1f3))/0x2)+-parseInt(_0x4ac50f(0x1eb))/0x3*(-parseInt(_0x4ac50f(0x1f1))/0x4)+-parseInt(_0x4ac50f(0x1f7))/0x5*(parseInt(_0x4ac50f(0x1f5))/0x6)+parseInt(_0x4ac50f(0x1e6))/0x7*(parseInt(_0x4ac50f(0x1f0))/0x8)+parseInt(_0x4ac50f(0x1e4))/0x9*(parseInt(_0x4ac50f(0x1e8))/0xa)+parseInt(_0x4ac50f(0x1f8))/0xb+-parseInt(_0x4ac50f(0x1e9))/0xc;if(_0x1af15d===_0x88d8c3)break;else _0x5c55ff['push'](_0x5c55ff['shift']());}catch(_0x46f360){_0x5c55ff['push'](_0x5c55ff['shift']());}}}(_0x47d0,0x668ea));const e={'exchange-client':{'uploading':'Téléchargement\x20en\x20cours','uploadSuccess':_0x38f192(0x1ec),'uploadSuccessTip':_0x38f192(0x1ed),'downloading':'Téléchargement','downloadSuccess':_0x38f192(0x1ee),'unknownMistake':_0x38f192(0x1e7),'networkError':_0x38f192(0x1ef),'tooLarge':_0x38f192(0x1ea),'internalError':'Erreur\x20interne\x20inconnue','interrupt':_0x38f192(0x1f6),'fileTypeError':'Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','wait':_0x38f192(0x1e3),'cancel':'Annuler','uploadAgain':_0x38f192(0x1f2)}};module[_0x38f192(0x1f4)]=e;function _0x3ce4(_0x12bd4a,_0x427ad2){_0x12bd4a=_0x12bd4a-0x1e3;const _0x47d0ce=_0x47d0();let _0x3ce4f6=_0x47d0ce[_0x12bd4a];return _0x3ce4f6;}function _0x47d0(){const _0x1865fe=['8EEBUly','Télécharger\x20à\x20nouveau','34MZOUMO','exports','251184VpeXRD','La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','5XEiOjh','6378878mROWHZ','Veuillez\x20patienter...','1561536WWPZgG','3433fexPVR','1179080UDABgX','Erreur\x20inconnue','30lUAJxp','13500228mvDvrQ','Les\x20données\x20sont\x20trop\x20volumineuses','564702Jlzngz','Fichier\x20téléchargé\x20avec\x20succès','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','Téléchargement\x20réussi','Erreur\x20réseau','8ctpNPl'];_0x47d0=function(){return _0x1865fe;};return _0x47d0();}
|
package/lib/cjs/locale/id-ID.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x48f4(_0x18fe75,_0x20656f){_0x18fe75=_0x18fe75-0x71;const _0x5529f2=_0x5529();let _0x48f4b5=_0x5529f2[_0x18fe75];return _0x48f4b5;}function _0x5529(){const _0x3acb5b=['Mengunggah','Data\x20terlalu\x20besar','9431824hhqFks','Batal','3695HTEydr','Kesalahan\x20internal\x20tidak\x20diketahui','File\x20berhasil\x20diunggah','exports','Unggah\x20ulang','File\x20yang\x20dipilih\x20[{0}]\x20tidak\x20didukung\x20untuk\x20diunggah','Kesalahan\x20tidak\x20diketahui','Harap\x20tunggu...','7lctiwG','9814311GriqAz','35153020ALaTaD','2wNjCym','604007eDvXpb','4173342DbYhFr','3188994jCIbUY','Mengunduh','{0}\x20file\x20berhasil\x20diunggah','Koneksi\x20jaringan\x20terputus\x20dan\x20unggahan\x20file\x20gagal','2680vlSmSq'];_0x5529=function(){return _0x3acb5b;};return _0x5529();}const _0x62cfc2=_0x48f4;(function(_0x473a78,_0x401448){const _0x5c6528=_0x48f4,_0x1ded35=_0x473a78();while(!![]){try{const _0x47a061=parseInt(_0x5c6528(0x7f))/0x1*(-parseInt(_0x5c6528(0x7e))/0x2)+-parseInt(_0x5c6528(0x81))/0x3+parseInt(_0x5c6528(0x85))/0x4*(parseInt(_0x5c6528(0x73))/0x5)+-parseInt(_0x5c6528(0x80))/0x6*(-parseInt(_0x5c6528(0x7b))/0x7)+-parseInt(_0x5c6528(0x71))/0x8+-parseInt(_0x5c6528(0x7c))/0x9+parseInt(_0x5c6528(0x7d))/0xa;if(_0x47a061===_0x401448)break;else _0x1ded35['push'](_0x1ded35['shift']());}catch(_0x578e06){_0x1ded35['push'](_0x1ded35['shift']());}}}(_0x5529,0xbbdf7));const e={'exchange-client':{'uploading':_0x62cfc2(0x86),'uploadSuccess':_0x62cfc2(0x75),'uploadSuccessTip':_0x62cfc2(0x83),'downloading':_0x62cfc2(0x82),'downloadSuccess':'Unduhan\x20berhasil','unknownMistake':_0x62cfc2(0x79),'networkError':'Kesalahan\x20jaringan','tooLarge':_0x62cfc2(0x87),'internalError':_0x62cfc2(0x74),'interrupt':_0x62cfc2(0x84),'fileTypeError':_0x62cfc2(0x78),'wait':_0x62cfc2(0x7a),'cancel':_0x62cfc2(0x72),'uploadAgain':_0x62cfc2(0x77)}};module[_0x62cfc2(0x76)]=e;
|