@univerjs-pro/exchange-client 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/es/facade.js +1 -1
  4. package/lib/es/index.js +1 -1
  5. package/lib/facade.js +1 -1
  6. package/lib/index.js +1 -1
  7. package/lib/types/index.d.ts +0 -5
  8. package/lib/types/plugin.d.ts +0 -1
  9. package/lib/types/services/utils/tool.d.ts +0 -1
  10. package/lib/umd/facade.js +1 -1
  11. package/lib/umd/index.js +1 -1
  12. package/package.json +8 -15
  13. package/lib/cjs/locale/ar-SA.js +0 -1
  14. package/lib/cjs/locale/ca-ES.js +0 -1
  15. package/lib/cjs/locale/de-DE.js +0 -1
  16. package/lib/cjs/locale/en-US.js +0 -1
  17. package/lib/cjs/locale/es-ES.js +0 -1
  18. package/lib/cjs/locale/fa-IR.js +0 -1
  19. package/lib/cjs/locale/fr-FR.js +0 -1
  20. package/lib/cjs/locale/id-ID.js +0 -1
  21. package/lib/cjs/locale/it-IT.js +0 -1
  22. package/lib/cjs/locale/ja-JP.js +0 -1
  23. package/lib/cjs/locale/ko-KR.js +0 -1
  24. package/lib/cjs/locale/pl-PL.js +0 -1
  25. package/lib/cjs/locale/pt-BR.js +0 -1
  26. package/lib/cjs/locale/ru-RU.js +0 -1
  27. package/lib/cjs/locale/sk-SK.js +0 -1
  28. package/lib/cjs/locale/vi-VN.js +0 -1
  29. package/lib/cjs/locale/zh-CN.js +0 -1
  30. package/lib/cjs/locale/zh-HK.js +0 -1
  31. package/lib/cjs/locale/zh-TW.js +0 -1
  32. package/lib/es/locale/ar-SA.js +0 -1
  33. package/lib/es/locale/ca-ES.js +0 -1
  34. package/lib/es/locale/de-DE.js +0 -1
  35. package/lib/es/locale/en-US.js +0 -1
  36. package/lib/es/locale/es-ES.js +0 -1
  37. package/lib/es/locale/fa-IR.js +0 -1
  38. package/lib/es/locale/fr-FR.js +0 -1
  39. package/lib/es/locale/id-ID.js +0 -1
  40. package/lib/es/locale/it-IT.js +0 -1
  41. package/lib/es/locale/ja-JP.js +0 -1
  42. package/lib/es/locale/ko-KR.js +0 -1
  43. package/lib/es/locale/pl-PL.js +0 -1
  44. package/lib/es/locale/pt-BR.js +0 -1
  45. package/lib/es/locale/ru-RU.js +0 -1
  46. package/lib/es/locale/sk-SK.js +0 -1
  47. package/lib/es/locale/vi-VN.js +0 -1
  48. package/lib/es/locale/zh-CN.js +0 -1
  49. package/lib/es/locale/zh-HK.js +0 -1
  50. package/lib/es/locale/zh-TW.js +0 -1
  51. package/lib/index.css +0 -459
  52. package/lib/locale/ar-SA.js +0 -1
  53. package/lib/locale/ca-ES.js +0 -1
  54. package/lib/locale/de-DE.js +0 -1
  55. package/lib/locale/en-US.js +0 -1
  56. package/lib/locale/es-ES.js +0 -1
  57. package/lib/locale/fa-IR.js +0 -1
  58. package/lib/locale/fr-FR.js +0 -1
  59. package/lib/locale/id-ID.js +0 -1
  60. package/lib/locale/it-IT.js +0 -1
  61. package/lib/locale/ja-JP.js +0 -1
  62. package/lib/locale/ko-KR.js +0 -1
  63. package/lib/locale/pl-PL.js +0 -1
  64. package/lib/locale/pt-BR.js +0 -1
  65. package/lib/locale/ru-RU.js +0 -1
  66. package/lib/locale/sk-SK.js +0 -1
  67. package/lib/locale/vi-VN.js +0 -1
  68. package/lib/locale/zh-CN.js +0 -1
  69. package/lib/locale/zh-HK.js +0 -1
  70. package/lib/locale/zh-TW.js +0 -1
  71. package/lib/types/controllers/components.controller.d.ts +0 -9
  72. package/lib/types/controllers/exchange.controller.d.ts +0 -8
  73. package/lib/types/controllers/mobile/components.controller.d.ts +0 -7
  74. package/lib/types/controllers/mobile/exchange.controller.d.ts +0 -7
  75. package/lib/types/locale/ar-SA.d.ts +0 -3
  76. package/lib/types/locale/ca-ES.d.ts +0 -3
  77. package/lib/types/locale/de-DE.d.ts +0 -3
  78. package/lib/types/locale/en-US.d.ts +0 -20
  79. package/lib/types/locale/es-ES.d.ts +0 -3
  80. package/lib/types/locale/fa-IR.d.ts +0 -3
  81. package/lib/types/locale/fr-FR.d.ts +0 -3
  82. package/lib/types/locale/id-ID.d.ts +0 -3
  83. package/lib/types/locale/it-IT.d.ts +0 -3
  84. package/lib/types/locale/ja-JP.d.ts +0 -3
  85. package/lib/types/locale/ko-KR.d.ts +0 -3
  86. package/lib/types/locale/pl-PL.d.ts +0 -3
  87. package/lib/types/locale/pt-BR.d.ts +0 -3
  88. package/lib/types/locale/ru-RU.d.ts +0 -3
  89. package/lib/types/locale/sk-SK.d.ts +0 -3
  90. package/lib/types/locale/types.d.ts +0 -3
  91. package/lib/types/locale/vi-VN.d.ts +0 -3
  92. package/lib/types/locale/zh-CN.d.ts +0 -3
  93. package/lib/types/locale/zh-HK.d.ts +0 -3
  94. package/lib/types/locale/zh-TW.d.ts +0 -3
  95. package/lib/types/mobile-plugin.d.ts +0 -13
  96. package/lib/types/services/operate.service.d.ts +0 -73
  97. package/lib/types/services/upload-notification.service.d.ts +0 -52
  98. package/lib/types/services/utils/collaboration.d.ts +0 -2
  99. package/lib/types/views/export-format-dialog/ExportFormatDialog.d.ts +0 -14
  100. package/lib/types/views/link-list/LinkList.d.ts +0 -5
  101. package/lib/types/views/mobile/MobileExportFormatDialog.d.ts +0 -14
  102. package/lib/types/views/mobile/MobileUploadNotification.d.ts +0 -1
  103. package/lib/types/views/upload-again/UploadAgain.d.ts +0 -1
  104. package/lib/types/views/upload-button/UploadButton.d.ts +0 -7
  105. package/lib/types/views/upload-error/UploadError.d.ts +0 -1
  106. package/lib/types/views/upload-notification/UploadNotification.d.ts +0 -1
  107. package/lib/types/views/upload-success/UploadSuccess.d.ts +0 -4
  108. package/lib/types/views/uploading/Uploading.d.ts +0 -1
  109. package/lib/types/views/uploading/upload-cancel/UploadCancel.d.ts +0 -1
  110. package/lib/types/views/uploading/upload-progress/UploadProgress.d.ts +0 -1
  111. package/lib/umd/locale/ar-SA.js +0 -1
  112. package/lib/umd/locale/ca-ES.js +0 -1
  113. package/lib/umd/locale/de-DE.js +0 -1
  114. package/lib/umd/locale/en-US.js +0 -1
  115. package/lib/umd/locale/es-ES.js +0 -1
  116. package/lib/umd/locale/fa-IR.js +0 -1
  117. package/lib/umd/locale/fr-FR.js +0 -1
  118. package/lib/umd/locale/id-ID.js +0 -1
  119. package/lib/umd/locale/it-IT.js +0 -1
  120. package/lib/umd/locale/ja-JP.js +0 -1
  121. package/lib/umd/locale/ko-KR.js +0 -1
  122. package/lib/umd/locale/pl-PL.js +0 -1
  123. package/lib/umd/locale/pt-BR.js +0 -1
  124. package/lib/umd/locale/ru-RU.js +0 -1
  125. package/lib/umd/locale/sk-SK.js +0 -1
  126. package/lib/umd/locale/vi-VN.js +0 -1
  127. package/lib/umd/locale/zh-CN.js +0 -1
  128. package/lib/umd/locale/zh-HK.js +0 -1
  129. package/lib/umd/locale/zh-TW.js +0 -1
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1aa3a9=_0x1569;(function(_0x14f5ef,_0x32bb37){const _0x571b73=_0x1569,_0x29cce3=_0x14f5ef();while(!![]){try{const _0x1bd9b7=-parseInt(_0x571b73(0x20d))/0x1+-parseInt(_0x571b73(0x24e))/0x2*(-parseInt(_0x571b73(0x27e))/0x3)+parseInt(_0x571b73(0x210))/0x4+-parseInt(_0x571b73(0x1df))/0x5*(-parseInt(_0x571b73(0x26e))/0x6)+-parseInt(_0x571b73(0x276))/0x7*(parseInt(_0x571b73(0x247))/0x8)+-parseInt(_0x571b73(0x1ac))/0x9+parseInt(_0x571b73(0x227))/0xa;if(_0x1bd9b7===_0x32bb37)break;else _0x29cce3['push'](_0x29cce3['shift']());}catch(_0x5429ce){_0x29cce3['push'](_0x29cce3['shift']());}}}(_0x37ff,0xd407d));import{UniverLicensePlugin as _0x46ca3a}from'@univerjs-pro/license';import{DependentOn as _0x55d581,Disposable as _0x5b511d,IConfigService as _0x1e7c97,ILogService as _0x2dce26,IUniverInstanceService as _0x2c3e5f,Inject as _0x5efb18,Injector as _0x4d975b,LocaleService as _0x1f3633,Plugin as _0xf1f2c,UniverInstanceType as _0x57dd9d,createIdentifier as _0x59b531,merge as _0x129427,registerDependencies as _0x21238f,resolveWithBasePath as _0x366571,toDisposable as _0x422c2c,touchDependencies as _0x387f54}from'@univerjs/core';import{HTTPEventType as _0x1e0c06,HTTPResponseError as _0x27df39,HTTPService as _0x327d2c,UniverNetworkPlugin as _0x1a8c40}from'@univerjs/network';import{BuiltInUIPart as _0x5b3c0a,ComponentManager as _0x3a2f9d,IMessageService as _0x317300,IUIPartsService as _0x18a697,IconManager as _0xd3551f,UniverMobileUIPlugin as _0x37c58d,connectInjector as _0x524f9d,useDependency as _0x335eaa,useObservable as _0x3a78f8}from'@univerjs/ui';import{ClockIcon as _0x3c6377,CloseIcon as _0x5a44b1,DirectExportIcon as _0xb0af65,DocsMultiIcon as _0x46f096,ErrorIcon as _0x44560a,ExportIcon as _0xdfd1fa,FolderIcon as _0xa8c4ca,LoadingMultiIcon as _0x1039d8,ShareRangeIcon as _0x11c736,SheetsMultiIcon as _0x1af0d4,SlidesMultiIcon as _0x4276ce,SuccessIcon as _0x1acff4}from'@univerjs/icons';import{Button as _0xce31ad,MessageType as _0xda4cad,MobileActionRowGroup as _0x39d4b4,MobileSelect as _0x563ac4,Radio as _0x3ceb90,Select as _0x392979,Tooltip as _0x117459,clsx as _0x426f5e,scrollbarClassName as _0x5e8de6}from'@univerjs/design';import{useRef as _0x484a32,useState as _0x4c3865}from'react';import{ErrorCode as _0x46b732,FileSource as _0x17fdb7}from'@univerjs/protocol';import{jsx as _0x46ee55,jsxs as _0x5c8fb9}from'react/jsx-runtime';import{BehaviorSubject as _0x4aacaf,Subject as _0x41e348}from'rxjs';import{ISnapshotServerService as _0x6f2389,SnapshotService as _0x586b01,b64EncodeUnicode as _0x45847b,textDecoder as _0x29d867,textEncoder as _0x21193d}from'@univerjs-pro/collaboration';import{deflateSync as _0xbb3fa}from'fflate';var D=_0x1aa3a9(0x1ae),O='1.1.0';const k=_0x1aa3a9(0x1a6),A={},Re=_0x1aa3a9(0x134),ze=_0x1aa3a9(0x119),j='application/vnd.ms-excel',M=_0x1aa3a9(0x16c),N=_0x1aa3a9(0x1d0),P=_0x1aa3a9(0x178),Be=_0x1aa3a9(0x1cb),Ve='application/vnd.openxmlformats-officedocument.presentationml.presentation',He=_0x1aa3a9(0x1be),Ue={[_0x57dd9d[_0x1aa3a9(0x280)]]:[''],[_0x57dd9d[_0x1aa3a9(0x278)]]:[ze,Re],[_0x57dd9d[_0x1aa3a9(0x1ab)]]:[j,M,N,P],[_0x57dd9d[_0x1aa3a9(0x279)]]:[Be,Ve],[_0x57dd9d[_0x1aa3a9(0x270)]]:[He],[_0x57dd9d[_0x1aa3a9(0x1ef)]]:[j,M,N,P],[_0x57dd9d[_0x1aa3a9(0x1b9)]]:[''],[_0x57dd9d['UNIVER_PROJECT']]:[''],[_0x57dd9d['UNRECOGNIZED']]:['']},We={[ze]:'doc',[Re]:'docx',[j]:_0x1aa3a9(0x16e),[M]:_0x1aa3a9(0x25d),[N]:'csv',[P]:_0x1aa3a9(0x1f4),[Be]:_0x1aa3a9(0x1b4),[Ve]:_0x1aa3a9(0x18e),[He]:_0x1aa3a9(0x1a4)},Ge=Object['fromEntries'](Object['entries'](Ue)['map'](([_0x57bbbb,_0x1edc31])=>[_0x57bbbb,_0x1edc31[_0x1aa3a9(0x283)](_0x3adae2=>We[_0x3adae2])[_0x1aa3a9(0x207)](Boolean)]));function Ke(_0x39c15f,_0xc5955,_0x9c7091){const _0x1156c6=_0x1aa3a9;let _0x563993=document['createElement']('a');_0x563993[_0x1156c6(0x167)]=_0x39c15f,_0x563993[_0x1156c6(0x1c1)]['display']=_0x1156c6(0x254),_0x563993[_0x1156c6(0x268)]=_0xc5955+'.'+_0x9c7091,document[_0x1156c6(0x202)][_0x1156c6(0x133)](_0x563993),_0x563993[_0x1156c6(0x159)](),document[_0x1156c6(0x202)][_0x1156c6(0x1d7)](_0x563993);}function qe(_0x4e4b57,_0x59fc31){const _0x4d42de=_0x1aa3a9;var _0xfbd770;let _0xdd2620=(_0xfbd770=_0x4e4b57['name'][_0x4d42de(0x170)]('.')[_0x4d42de(0x15d)]())==null?void 0x0:_0xfbd770[_0x4d42de(0x14d)]();return!!(_0xdd2620&&(Ge[_0x59fc31]??[])['includes'](_0xdd2620));}function F(_0x16a574,_0x479c83=!0x1){const _0xbe050=_0x1aa3a9;let _0x3f14dd=_0x16a574['flatMap'](_0x51925c=>Ge[_0x51925c]??[])['map'](_0x1660fd=>'.'+_0x1660fd)[_0xbe050(0x187)](',');return new Promise(_0x16490a=>{const _0x3ae5f9=_0xbe050;let _0x459465=document[_0x3ae5f9(0x149)](_0x3ae5f9(0x21e));_0x459465[_0x3ae5f9(0x1d1)]=_0x3ae5f9(0x1fc),_0x459465[_0x3ae5f9(0x199)]=_0x3f14dd,_0x459465['multiple']=_0x479c83;let _0x319b34=()=>{const _0x22b77b=_0x3ae5f9;var _0x853a19;return _0x16490a((_0x853a19=_0x459465[_0x22b77b(0x188)])!=null&&_0x853a19[_0x22b77b(0x14f)]?_0x459465[_0x22b77b(0x188)]:null);};_0x459465[_0x3ae5f9(0x230)](_0x3ae5f9(0x1f0),_0x319b34,{'once':!0x0}),_0x459465[_0x3ae5f9(0x230)]('cancel',_0x319b34,{'once':!0x0}),_0x459465[_0x3ae5f9(0x159)]();});}async function Je(_0x16e243,_0x4b1faa){const _0x460cab=_0x1aa3a9;try{return await Ye(_0x16e243,_0x4b1faa);}catch(_0x19f45c){console['error'](_0x460cab(0x181),_0x19f45c);return;}}async function Ye(_0x3c9ccc,_0x3162a0,_0x3bf3ff){const _0x453d33=_0x1aa3a9;var _0x49c9d6,_0x25bbfe;let _0x25175c=_0x3bf3ff?await Xe(_0x3c9ccc,_0x3162a0,_0x3bf3ff):await _0x3162a0['get'](_0x3c9ccc,{'responseType':_0x453d33(0x11e)}),_0x289ec9=_0x25175c[_0x453d33(0x202)],_0x1517f7=((_0x49c9d6=_0x25175c[_0x453d33(0x1ec)][_0x453d33(0x215)](_0x453d33(0x13a)))==null?void 0x0:_0x49c9d6['join'](',\x20'))??_0x453d33(0x224),_0x531331='file.'+(We[_0x1517f7]||_0x453d33(0x25d)),_0xca1d9b=(_0x25bbfe=_0x25175c[_0x453d33(0x1ec)][_0x453d33(0x215)]('content-disposition'))==null?void 0x0:_0x25bbfe['join'](',\x20');if(_0xca1d9b){let _0x3e5f96=_0xca1d9b[_0x453d33(0x19c)](/filename=(.+)/);_0x3e5f96&&_0x3e5f96[0x1]&&(_0x531331=_0x3e5f96[0x1]);}else _0x531331=Ze(_0x3c9ccc)||_0x531331;return new File([_0x289ec9],_0x531331,{'type':_0x1517f7});}function Xe(_0x109eab,_0x1c5d07,_0x40f195){return new Promise((_0x2c9962,_0x3ba063)=>{const _0x284054=_0x1569;let _0x232927=!0x1,_0xf5cba5,_0x23addf=()=>_0x40f195['removeEventListener'](_0x284054(0x1f5),_0xec52b0),_0xec52b0=()=>{const _0x164ca5=_0x284054;if(_0x232927)return;_0x232927=!0x0,_0xf5cba5==null||_0xf5cba5[_0x164ca5(0x233)](),_0x23addf();let _0x3dd04b=Error(_0x164ca5(0x20f));_0x3dd04b['name']=_0x164ca5(0x1f8),_0x3ba063(_0x3dd04b);};_0x40f195[_0x284054(0x230)]('abort',_0xec52b0,{'once':!0x0}),_0x40f195[_0x284054(0x204)]?_0xec52b0():(_0xf5cba5=_0x1c5d07[_0x284054(0x147)](_0x284054(0x155),_0x109eab,{'responseType':_0x284054(0x11e)})['subscribe']({'next'(_0x9434b0){const _0x5dd148=_0x284054;_0x232927||_0x9434b0['type']!==_0x1e0c06['Response']||(_0x232927=!0x0,_0x23addf(),_0xf5cba5==null||_0xf5cba5[_0x5dd148(0x233)](),_0x2c9962(_0x9434b0));},'error'(_0x26d9bd){_0x232927||(_0x232927=!0x0,_0x23addf(),_0x3ba063(_0x26d9bd));},'complete'(){const _0x26f2f7=_0x284054;_0x232927||(_0x232927=!0x0,_0x23addf(),_0x3ba063(Error(_0x26f2f7(0x13c))));}}),_0x232927&&_0xf5cba5['unsubscribe']());});}function Ze(_0x189f2c){const _0x5d49d2=_0x1aa3a9;try{return new URL(_0x189f2c)[_0x5d49d2(0x11c)][_0x5d49d2(0x170)]('/')['pop']();}catch(_0x870bb2){console[_0x5d49d2(0x21b)](_0x5d49d2(0x13b),_0x870bb2);return;}}function Qe(_0x1b356c){const _0x15c633=_0x1aa3a9;let _0x13a1a3=new Blob([_0x1b356c[_0x15c633(0x219)]],{'type':_0x15c633(0x1d3)});return new File([_0x13a1a3],_0x15c633(0x14c));}function $e(_0x345922,_0x564a59){const _0x21f41c=_0x1aa3a9;return _0x345922['replace'](_0x21f41c(0x1ee),_0x564a59);}function et(_0x3cc06e,_0x1f5d68){const _0x31b922=_0x1aa3a9;return _0x3cc06e[_0x31b922(0x250)](_0x31b922(0x198),_0x1f5d68);}function tt(_0x368426,_0x52fd7f){const _0x512d1e=_0x1aa3a9;return _0x368426[_0x512d1e(0x250)](_0x512d1e(0x137),_0x52fd7f);}function I(_0x546921){'@babel/helpers - typeof';const _0x3cce90=_0x1aa3a9;return I=typeof Symbol==_0x3cce90(0x27c)&&typeof Symbol[_0x3cce90(0x1dc)]==_0x3cce90(0x1b1)?function(_0x641468){return typeof _0x641468;}:function(_0x450fca){const _0x32178c=_0x3cce90;return _0x450fca&&typeof Symbol==_0x32178c(0x27c)&&_0x450fca[_0x32178c(0x23e)]===Symbol&&_0x450fca!==Symbol[_0x32178c(0x19a)]?_0x32178c(0x1b1):typeof _0x450fca;},I(_0x546921);}function nt(_0x17f6d8,_0x3179d1){const _0x337161=_0x1aa3a9;if(I(_0x17f6d8)!=_0x337161(0x111)||!_0x17f6d8)return _0x17f6d8;var _0x4e2585=_0x17f6d8[Symbol['toPrimitive']];if(_0x4e2585!==void 0x0){var _0xc568c2=_0x4e2585[_0x337161(0x19f)](_0x17f6d8,_0x3179d1||_0x337161(0x138));if(I(_0xc568c2)!=_0x337161(0x111))return _0xc568c2;throw TypeError(_0x337161(0x253));}return(_0x3179d1===_0x337161(0x15f)?String:Number)(_0x17f6d8);}function rt(_0x5164cb){const _0x518695=_0x1aa3a9;var _0x46ad55=nt(_0x5164cb,_0x518695(0x15f));return I(_0x46ad55)==_0x518695(0x1b1)?_0x46ad55:_0x46ad55+'';}function L(_0x13653c,_0x14f34b,_0x3ed9d3){const _0x246135=_0x1aa3a9;return(_0x14f34b=rt(_0x14f34b))in _0x13653c?Object[_0x246135(0x15a)](_0x13653c,_0x14f34b,{'value':_0x3ed9d3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x13653c[_0x14f34b]=_0x3ed9d3,_0x13653c;}function R(_0x450a82,_0x529863){return function(_0x444c81,_0x1eb476){_0x529863(_0x444c81,_0x1eb476,_0x450a82);};}function z(_0x18d39d,_0x98c43c,_0x29403f,_0x44556c){const _0x34e42d=_0x1aa3a9;var _0x4b7505=arguments[_0x34e42d(0x14f)],_0xc3e525=_0x4b7505<0x3?_0x98c43c:_0x44556c===null?_0x44556c=Object[_0x34e42d(0x256)](_0x98c43c,_0x29403f):_0x44556c,_0x3b3c01;if(typeof Reflect==_0x34e42d(0x111)&&typeof Reflect[_0x34e42d(0x277)]==_0x34e42d(0x27c))_0xc3e525=Reflect[_0x34e42d(0x277)](_0x18d39d,_0x98c43c,_0x29403f,_0x44556c);else{for(var _0xf88b90=_0x18d39d[_0x34e42d(0x14f)]-0x1;_0xf88b90>=0x0;_0xf88b90--)(_0x3b3c01=_0x18d39d[_0xf88b90])&&(_0xc3e525=(_0x4b7505<0x3?_0x3b3c01(_0xc3e525):_0x4b7505>0x3?_0x3b3c01(_0x98c43c,_0x29403f,_0xc3e525):_0x3b3c01(_0x98c43c,_0x29403f))||_0xc3e525);}return _0x4b7505>0x3&&_0xc3e525&&Object[_0x34e42d(0x15a)](_0x98c43c,_0x29403f,_0xc3e525),_0xc3e525;}let it=function(_0x3b6890){const _0x49b1a6=_0x1aa3a9;return _0x3b6890[_0x3b6890['UNDEFINED']=0x0]=_0x49b1a6(0x232),_0x3b6890[_0x3b6890[_0x49b1a6(0x139)]=0x1]=_0x49b1a6(0x139),_0x3b6890[_0x3b6890['JSON']=0x2]=_0x49b1a6(0x150),_0x3b6890[_0x3b6890['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x3b6890;}({}),at=function(_0xde5395){const _0x3687b3=_0x1aa3a9;return _0xde5395['XLSX']=_0x3687b3(0x25d),_0xde5395[_0x3687b3(0x20e)]=_0x3687b3(0x1e3),_0xde5395[_0x3687b3(0x18d)]='tsv',_0xde5395[_0x3687b3(0x17f)]=_0x3687b3(0x251),_0xde5395[_0x3687b3(0x1db)]=_0x3687b3(0x18e),_0xde5395[_0x3687b3(0x26a)]=_0x3687b3(0x1a4),_0xde5395;}({}),ot=function(_0x57ef69){const _0x1e0260=_0x1aa3a9;return _0x57ef69[_0x1e0260(0x22b)]=_0x1e0260(0x186),_0x57ef69['TRADITIONAL']=_0x1e0260(0x1af),_0x57ef69;}({}),st=function(_0x4c9073){const _0x86c7bf=_0x1aa3a9;return _0x4c9073[_0x86c7bf(0x180)]='auto',_0x4c9073[_0x86c7bf(0x285)]=_0x86c7bf(0x1de),_0x4c9073['SHEETS']=_0x86c7bf(0x146),_0x4c9073['HYBRID']='hybrid',_0x4c9073;}({}),ct=function(_0x543890){const _0x4c9c26=_0x1aa3a9;return _0x543890['CONVERT_THEN_VALUES']='convert-then-values',_0x543890[_0x4c9c26(0x194)]=_0x4c9c26(0x24c),_0x543890[_0x4c9c26(0x112)]=_0x4c9c26(0x257),_0x543890[_0x4c9c26(0x16d)]=_0x4c9c26(0x1a5),_0x543890;}({}),lt=function(_0x3fe95a){const _0x4825f9=_0x1aa3a9;return _0x3fe95a['TABLES']=_0x4825f9(0x1de),_0x3fe95a['RANGES']=_0x4825f9(0x163),_0x3fe95a;}({});const B=_0x59b531('univer-pro.exchange-client.request.service');function _0x1569(_0x36244b,_0x491c97){_0x36244b=_0x36244b-0x110;const _0x37ff90=_0x37ff();let _0x156961=_0x37ff90[_0x36244b];return _0x156961;}let V=class{constructor(_0x1686ca,_0x50cacf){const _0x1fc799=_0x1aa3a9;this[_0x1fc799(0x184)]=_0x1686ca,this[_0x1fc799(0x1fa)]=_0x50cacf,L(this,_0x1fc799(0x25f),new Set());}[_0x1aa3a9(0x1f2)](){}[_0x1aa3a9(0x1c5)](_0xf91ace){this['_taskInterrupted']['add'](_0xf91ace);}[_0x1aa3a9(0x272)](){const _0x365519=_0x1aa3a9;this[_0x365519(0x25f)][_0x365519(0x152)]();}async['upload'](_0x319ba9,_0x5aee7a=0x0,_0x4b9816=!0x1){const _0xc8ff18=_0x1aa3a9;if(typeof _0x319ba9=='string'){let _0x334e70=await Je(_0x319ba9,this[_0xc8ff18(0x1fa)]);if(!_0x334e70)throw Error('upload\x20request\x20failed:\x20failed\x20to\x20read\x20source\x20file\x20from\x20url');_0x319ba9=_0x334e70;}_0x5aee7a||=_0x319ba9[_0xc8ff18(0x1bb)];let _0x1abfb8=new FormData();_0x1abfb8['append'](_0xc8ff18(0x1fc),_0x319ba9);try{let _0x3c83ab=this[_0xc8ff18(0x22d)]()+_0xc8ff18(0x24f)+_0x5aee7a+_0xc8ff18(0x123)+_0x17fdb7[_0xc8ff18(0x1f3)]+'&flate='+_0x4b9816,_0x22e226={'body':_0x1abfb8},_0x10ae46=(await this[_0xc8ff18(0x1fa)][_0xc8ff18(0x22a)](_0x3c83ab,_0x22e226))[_0xc8ff18(0x202)];if(_0x10ae46[_0xc8ff18(0x21b)]&&_0x10ae46[_0xc8ff18(0x21b)][_0xc8ff18(0x206)]!==_0x46b732['OK'])throw Error(this[_0xc8ff18(0x191)](_0xc8ff18(0x208),_0x10ae46['error']));return _0x10ae46;}catch(_0x4bf0b6){throw _0x4bf0b6 instanceof Error?_0x4bf0b6:Error(this[_0xc8ff18(0x261)](_0xc8ff18(0x208),_0x4bf0b6));}}async[_0x1aa3a9(0x143)](_0x57986e){const _0x443f9b=_0x1aa3a9;let {type:_0x10ea07,..._0x1563c7}=_0x57986e;try{let _0x55980b=$e(this[_0x443f9b(0x18a)](),''+_0x10ea07),_0x336689={'body':_0x1563c7},_0x5ca458=(await this[_0x443f9b(0x1fa)][_0x443f9b(0x22a)](_0x55980b,_0x336689))[_0x443f9b(0x202)];return _0x5ca458['error']&&_0x5ca458['error'][_0x443f9b(0x206)]!==_0x46b732['OK']?void 0x0:_0x5ca458;}catch{return;}}async[_0x1aa3a9(0x228)](_0x241d48){const _0x5e1dc1=_0x1aa3a9;let {type:_0x53e27f}=_0x241d48;try{let _0x2a85e5=$e(this['_getExportURL'](),''+_0x53e27f),_0x3ac46c={'body':_0x241d48},_0x2bc7e7=(await this['_httpService'][_0x5e1dc1(0x22a)](_0x2a85e5,_0x3ac46c))[_0x5e1dc1(0x202)];return _0x2bc7e7[_0x5e1dc1(0x21b)]&&_0x2bc7e7[_0x5e1dc1(0x21b)][_0x5e1dc1(0x206)]!==_0x46b732['OK']?void 0x0:_0x2bc7e7;}catch{return;}}async[_0x1aa3a9(0x1e6)](_0x3c8fb7){return new Promise((_0x3e1a36,_0x90a6b7)=>{const _0x234b92=_0x1569;try{let _0x15abd3=0x0,_0x2d5abf=et(this[_0x234b92(0x229)](),''+_0x3c8fb7),_0x46ddc4=this[_0x234b92(0x18b)](),_0x508e25=async()=>{const _0x320a5e=_0x234b92;if(this[_0x320a5e(0x25f)]['has'](_0x3c8fb7))return;let _0x3f2493=(await this[_0x320a5e(0x1fa)][_0x320a5e(0x215)](_0x2d5abf))[_0x320a5e(0x202)];if(_0x3f2493[_0x320a5e(0x21b)]&&_0x3f2493[_0x320a5e(0x21b)][_0x320a5e(0x206)]===_0x46b732['OK']){if(_0x3f2493[_0x320a5e(0x17c)]===_0x320a5e(0x1b0))_0x3e1a36(_0x3f2493);else{if(_0x3f2493['status']===_0x320a5e(0x234)){let _0x3c626b=0x3e8;if(_0x15abd3>=_0x46ddc4){_0x90a6b7(_0x3f2493);return;}_0x15abd3>=0x7530&&(_0x3c626b=0x1388),_0x15abd3+=_0x3c626b,setTimeout(_0x508e25,_0x3c626b);}else _0x90a6b7(_0x3f2493);}}else _0x90a6b7(_0x3f2493);};_0x508e25();}catch(_0x203ee6){_0x90a6b7(_0x203ee6 instanceof Error?_0x203ee6:Error(String(_0x203ee6)));}});}async[_0x1aa3a9(0x1d4)](_0x2ad075){const _0x2cd861=_0x1aa3a9;try{let _0x8e7625=tt(this[_0x2cd861(0x1a9)](),''+_0x2ad075);return(await this['_httpService']['get'](_0x8e7625))[_0x2cd861(0x202)];}catch{return;}}async[_0x1aa3a9(0x122)](_0x340335){const _0x59cbbd=_0x1aa3a9;try{return(await this[_0x59cbbd(0x1fa)][_0x59cbbd(0x215)](_0x340335,{'responseType':_0x59cbbd(0x257)}))[_0x59cbbd(0x202)];}catch{return;}}[_0x1aa3a9(0x191)](_0x33d713,_0x18c6e3){const _0x1c7d92=_0x1aa3a9;let _0xa1ab65=this[_0x1c7d92(0x273)](_0x18c6e3);return _0xa1ab65?_0x33d713+':\x20'+_0xa1ab65:_0x33d713;}[_0x1aa3a9(0x261)](_0x37b4f2,_0x497946){const _0x5c4c47=_0x1aa3a9;if(_0x497946 instanceof _0x27df39){let _0x229cf0=typeof _0x497946[_0x5c4c47(0x17c)]==_0x5c4c47(0x237)?''+_0x497946[_0x5c4c47(0x17c)]+(_0x497946[_0x5c4c47(0x1cf)]?'\x20'+_0x497946[_0x5c4c47(0x1cf)]:''):void 0x0,_0x148e3a=this[_0x5c4c47(0x273)](_0x497946[_0x5c4c47(0x21b)]);return _0x229cf0&&_0x148e3a?_0x37b4f2+_0x5c4c47(0x1b2)+_0x229cf0+_0x5c4c47(0x1ff)+_0x148e3a:_0x229cf0?_0x37b4f2+':\x20HTTP\x20'+_0x229cf0:_0x148e3a?_0x37b4f2+':\x20'+_0x148e3a:_0x37b4f2;}let _0xa27c0e=this['_extractErrorDetail'](_0x497946);return _0xa27c0e?_0x37b4f2+':\x20'+_0xa27c0e:_0x37b4f2;}[_0x1aa3a9(0x273)](_0xd56a98){const _0x42cb08=_0x1aa3a9;if(typeof _0xd56a98==_0x42cb08(0x15f)){let _0x31cf84=_0xd56a98['trim']();return _0x31cf84[_0x42cb08(0x14f)]>0x0?_0x31cf84:void 0x0;}if(_0xd56a98 instanceof Error)return this['_extractErrorDetail'](_0xd56a98[_0x42cb08(0x124)]);if(!_0xd56a98||typeof _0xd56a98!=_0x42cb08(0x111)||Array[_0x42cb08(0x26b)](_0xd56a98))return;let _0x28ba11=_0xd56a98,_0x4af8a6=this[_0x42cb08(0x273)](_0x28ba11[_0x42cb08(0x124)]);if(_0x4af8a6)return _0x4af8a6;if(_0x28ba11[_0x42cb08(0x21b)]&&typeof _0x28ba11[_0x42cb08(0x21b)]=='object'&&!Array['isArray'](_0x28ba11[_0x42cb08(0x21b)])){let _0x3a9505=this[_0x42cb08(0x273)](_0x28ba11['error']);if(_0x3a9505)return _0x3a9505;}}[_0x1aa3a9(0x22d)](){const _0x3f0188=_0x1aa3a9;let _0x5c7a39=this[_0x3f0188(0x184)][_0x3f0188(0x190)](k);return(_0x5c7a39==null?void 0x0:_0x5c7a39[_0x3f0188(0x1bd)])??'/universer-api/stream/file/upload';}['_getImportURL'](){const _0x50322b=_0x1aa3a9;let _0xf777d=this['_configService'][_0x50322b(0x190)](k);return(_0xf777d==null?void 0x0:_0xf777d['importServerUrl'])??_0x50322b(0x1ca);}['_getExportURL'](){const _0x3f1a39=_0x1aa3a9;let _0x3b9229=this[_0x3f1a39(0x184)][_0x3f1a39(0x190)](k);return(_0x3b9229==null?void 0x0:_0x3b9229['exportServerUrl'])??'/universer-api/exchange/{type}/export';}['_getTaskURL'](){const _0x5a5404=_0x1aa3a9;let _0x89a011=this['_configService']['getConfig'](k);return(_0x89a011==null?void 0x0:_0x89a011[_0x5a5404(0x18f)])??_0x5a5404(0x211);}['_getSignURL'](){const _0x2fdeeb=_0x1aa3a9;let _0x40d22a=this[_0x2fdeeb(0x184)][_0x2fdeeb(0x190)](k);return(_0x40d22a==null?void 0x0:_0x40d22a[_0x2fdeeb(0x1b5)])??_0x2fdeeb(0x1a1);}['_getMaxPollingTime'](){const _0x1b5497=_0x1aa3a9;let _0x3610f9=this['_configService'][_0x1b5497(0x190)](k);return(_0x3610f9==null?void 0x0:_0x3610f9[_0x1b5497(0x26d)])??0x1d4c0;}};V=z([R(0x0,_0x1e7c97),R(0x1,_0x5efb18(_0x327d2c))],V);const H='exchange-client.export-format-dialog';function ut({formats:_0x15e1e3,items:_0x1a220f,selectedId:_0x3f6622,onCancel:_0xc789a8,onConfirm:_0x43bb66}){const _0x4bb331=_0x1aa3a9;let _0xffbb63=_0x335eaa(_0x1f3633),[_0x26af54,_0x2124e7]=_0x4c3865(_0x15e1e3[0x0]),[_0x3565a7,_0x2b4250]=_0x4c3865(_0x3f6622),[_0x149f2e,_0x1fe992]=_0x4c3865(!0x1),_0x53c281=_0x484a32(!0x1);return _0x5c8fb9(_0x4bb331(0x265),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-5\x20univer-p-1','children':[_0x46ee55('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':_0x15e1e3[_0x4bb331(0x283)](_0x34d28d=>_0x5c8fb9('div',{'className':_0x4bb331(0x1c6),'children':[_0x46ee55(_0x3ceb90,{'value':_0x34d28d,'checked':_0x26af54===_0x34d28d,'onChange':_0x38f1eb=>_0x2124e7(_0x38f1eb),'children':_0x46ee55(_0x4bb331(0x129),{'className':_0x4bb331(0x1cd),'children':_0x34d28d[_0x4bb331(0x142)]()})}),_0x34d28d!==_0x4bb331(0x25d)&&_0x46ee55(_0x392979,{'className':_0x4bb331(0x141),'value':_0x3565a7,'options':_0x1a220f,'onChange':_0x5512d7=>_0x2b4250(String(_0x5512d7))})]},_0x34d28d))}),_0x5c8fb9(_0x4bb331(0x265),{'className':_0x4bb331(0x1d5),'children':[_0x46ee55(_0xce31ad,{'type':_0x4bb331(0x203),'variant':_0x4bb331(0x138),'onClick':_0xc789a8,'children':_0xffbb63['t'](_0x4bb331(0x231))}),_0x5c8fb9(_0xce31ad,{'type':'button','variant':_0x4bb331(0x1c0),'aria-busy':_0x149f2e,'disabled':_0x149f2e||!_0x26af54||_0x26af54!==_0x4bb331(0x25d)&&!_0x3565a7,'onClick':async()=>{const _0x340057=_0x4bb331;if(!_0x53c281[_0x340057(0x1b3)]){_0x53c281['current']=!0x0,_0x1fe992(!0x0);try{await _0x43bb66(_0x26af54,_0x3565a7);}finally{_0x53c281[_0x340057(0x1b3)]=!0x1,_0x1fe992(!0x1);}}},'children':[_0x149f2e&&_0x46ee55(_0x1039d8,{'className':_0x4bb331(0x271)}),_0xffbb63['t'](_0x4bb331(0x1fe))]})]})]});}function dt({formats:_0x51711c,items:_0x5053d3,selectedId:_0x1b9a4f,onCancel:_0x4a991c,onConfirm:_0x474b65}){const _0x4c7180=_0x1aa3a9;let _0x43e16c=_0x335eaa(_0x1f3633),[_0x3ef06e,_0x1f6c4c]=_0x4c3865(_0x51711c[0x0]),[_0x4bfe43,_0x35a890]=_0x4c3865(_0x1b9a4f),[_0x3ce2c3,_0x77ea73]=_0x4c3865(!0x1),_0x1b6691=_0x484a32(!0x1);async function _0x4db045(){const _0xce729d=_0x1569;if(!_0x1b6691[_0xce729d(0x1b3)]){_0x1b6691[_0xce729d(0x1b3)]=!0x0,_0x77ea73(!0x0);try{await _0x474b65(_0x3ef06e,_0x4bfe43);}finally{_0x1b6691[_0xce729d(0x1b3)]=!0x1,_0x77ea73(!0x1);}}}return _0x5c8fb9(_0x4c7180(0x265),{'className':_0x4c7180(0x209),'children':[_0x46ee55(_0x4c7180(0x265),{'className':'univer-grid\x20univer-gap-3','children':_0x51711c[_0x4c7180(0x283)](_0x30f8fa=>_0x5c8fb9(_0x4c7180(0x265),{'className':'univer-grid\x20univer-gap-2\x20univer-rounded-xl\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-bg-gray-800','children':[_0x46ee55(_0x3ceb90,{'value':_0x30f8fa,'checked':_0x3ef06e===_0x30f8fa,'onChange':_0x1ef45f=>_0x1f6c4c(_0x1ef45f),'children':_0x30f8fa[_0x4c7180(0x142)]()}),_0x30f8fa!==_0x4c7180(0x25d)&&_0x3ef06e===_0x30f8fa&&_0x46ee55(_0x563ac4,{'className':_0x4c7180(0x12e),'value':_0x4bfe43,'options':_0x5053d3,'onChange':_0x2f14d7=>_0x35a890(String(_0x2f14d7))})]},_0x30f8fa))}),_0x5c8fb9(_0x39d4b4,{'className':_0x4c7180(0x217),'children':[_0x46ee55(_0xce31ad,{'type':_0x4c7180(0x203),'onClick':_0x4a991c,'children':_0x43e16c['t'](_0x4c7180(0x231))}),_0x5c8fb9(_0xce31ad,{'type':_0x4c7180(0x203),'variant':_0x4c7180(0x1c0),'aria-busy':_0x3ce2c3,'disabled':_0x3ce2c3||!_0x3ef06e||_0x3ef06e!==_0x4c7180(0x25d)&&!_0x4bfe43,'onClick':_0x4db045,'children':[_0x3ce2c3&&_0x46ee55(_0x1039d8,{'className':_0x4c7180(0x271)}),_0x43e16c['t'](_0x4c7180(0x1fe))]})]})]});}let U=class extends _0x5b511d{constructor(_0x188bf4,_0x564da0){const _0x33219a=_0x1aa3a9;super(),this['_iconManager']=_0x188bf4,this[_0x33219a(0x156)]=_0x564da0,this[_0x33219a(0x255)](this['_iconManager'][_0x33219a(0x195)]({'DirectExportIcon':_0xb0af65,'ExportIcon':_0xdfd1fa,'FolderIcon':_0xa8c4ca})),this[_0x33219a(0x255)](this[_0x33219a(0x156)][_0x33219a(0x195)](H,dt));}};U=z([R(0x0,_0x5efb18(_0xd3551f)),R(0x1,_0x5efb18(_0x3a2f9d))],U);const W=_0x59b531(_0x1aa3a9(0x1ba));let G=class extends _0x5b511d{constructor(_0x3b7887,_0x4c3f73,_0x366eb6){const _0x331c7c=_0x1aa3a9;super(),this[_0x331c7c(0x184)]=_0x3b7887,this['_httpService']=_0x4c3f73,this[_0x331c7c(0x20a)]=_0x366eb6,L(this,_0x331c7c(0x26c),null),L(this,'_requestState$',new _0x41e348()),L(this,_0x331c7c(0x25e),this[_0x331c7c(0x165)][_0x331c7c(0x242)]());}[_0x1aa3a9(0x1f2)](){const _0x584b8f=_0x1aa3a9;super['dispose'](),this[_0x584b8f(0x165)][_0x584b8f(0x225)]();}[_0x1aa3a9(0x25a)](_0x115a17,_0xb79630,_0x4b2357){const _0x32e886=_0x1aa3a9;let _0x2aec88=URL[_0x32e886(0x135)](_0x115a17);Ke(_0x2aec88,_0xb79630,_0x4b2357),URL[_0x32e886(0x23d)](_0x2aec88);}async['getFileById'](_0x4b179a,_0x4262e1){const _0x23450a=_0x1aa3a9;if(_0x4262e1!=null&&_0x4262e1[_0x23450a(0x204)])return;let _0x251779=await this[_0x23450a(0x113)](_0x4b179a);if(!(!_0x251779||_0x4262e1!=null&&_0x4262e1[_0x23450a(0x204)]))return Ye(_0x251779,this['_httpService'],_0x4262e1);}async[_0x1aa3a9(0x281)](_0x35780d,_0x45bfc5,_0x17ec63){const _0x227bfc=_0x1aa3a9;var _0x4f3061,_0x4c7a31;let _0x99ec76=await this[_0x227bfc(0x126)](_0x35780d);if(!_0x99ec76)return;let _0x106ac8=await this['_import'](_0x99ec76,0x1,_0x45bfc5,_0x17ec63);if(!_0x106ac8)return;this['_importTaskId']=_0x106ac8,this[_0x227bfc(0x20a)]['clearTaskInterrupted']();let _0x5e5a63=await this['_requestService'][_0x227bfc(0x1e6)](_0x106ac8)['catch'](_0x5d6e14=>{const _0x22768f=_0x227bfc;var _0x365804;let _0x8b0ad4=_0x5d6e14 instanceof Error?_0x5d6e14[_0x22768f(0x124)]:(_0x365804=_0x5d6e14[_0x22768f(0x21b)])==null?void 0x0:_0x365804[_0x22768f(0x124)];this['_requestState$'][_0x22768f(0x117)]({'error':{'code':_0x46b732['UNRECOGNIZED'],'message':_0x8b0ad4||''},'state':0x3});});if(!_0x5e5a63)return;let _0xdc3161=(_0x4f3061=_0x5e5a63[_0x227bfc(0x143)])==null?void 0x0:_0x4f3061[_0x227bfc(0x11b)],_0x5eda7b=((_0x4c7a31=_0x5e5a63[_0x227bfc(0x143)])==null?void 0x0:_0x4c7a31[_0x227bfc(0x1a8)])||'';if(_0xdc3161!==0x1)this[_0x227bfc(0x165)][_0x227bfc(0x117)]({'error':{'code':_0x46b732['UNRECOGNIZED'],'message':_0x227bfc(0x21f)},'state':0x3});else{if(_0x5eda7b['length']===0x0)this['_requestState$'][_0x227bfc(0x117)]({'error':{'code':_0x46b732[_0x227bfc(0x23b)],'message':_0x227bfc(0x1c2)},'state':0x3});else return this[_0x227bfc(0x165)][_0x227bfc(0x117)]({'error':_0x5e5a63['error'],'state':0x3}),_0x5eda7b;}}async['importFileToJson'](_0x5a8765,_0x419a1d,_0x356629){const _0x4f047c=_0x1aa3a9;return this[_0x4f047c(0x15b)](_0x5a8765,_0x419a1d,_0x356629);}async[_0x1aa3a9(0x17b)](_0x1d8b9d,_0x87e2ff,_0x2d1620,_0x101569){return this['_export'](_0x1d8b9d,0x1,_0x87e2ff,_0x2d1620,_0x101569);}async[_0x1aa3a9(0x192)](_0x3f4409,_0x25ea8d,_0x5e6434,_0x384724){const _0x401c80=_0x1aa3a9;return this[_0x401c80(0x220)](_0x3f4409,_0x25ea8d,_0x5e6434,_0x384724);}[_0x1aa3a9(0x171)](){const _0x5d49f9=_0x1aa3a9;this[_0x5d49f9(0x26c)]&&this[_0x5d49f9(0x20a)]['setTaskInterrupted'](this[_0x5d49f9(0x26c)]);}async[_0x1aa3a9(0x15b)](_0x255b65,_0x39673f,_0x335a1a){const _0x5497a6=_0x1aa3a9;var _0x4a8e01,_0x390c90;let _0x3a4a7d=await this[_0x5497a6(0x126)](_0x255b65);if(!_0x3a4a7d)return;let _0x2fbbd5=await this[_0x5497a6(0x14a)](_0x3a4a7d,0x2,_0x39673f,_0x335a1a);if(!_0x2fbbd5)return;this[_0x5497a6(0x26c)]=_0x2fbbd5,this['_requestService'][_0x5497a6(0x272)]();let _0x5e1fc0=await this['_requestService']['getTask'](_0x2fbbd5)[_0x5497a6(0x11d)](_0x4adef9=>{const _0x5adc95=_0x5497a6;var _0x5229fe;let _0x3bea31=_0x4adef9 instanceof Error?_0x4adef9['message']:(_0x5229fe=_0x4adef9[_0x5adc95(0x21b)])==null?void 0x0:_0x5229fe['message'];this[_0x5adc95(0x165)]['next']({'error':{'code':_0x46b732[_0x5adc95(0x23b)],'message':_0x3bea31||''},'state':0x3});});if(!_0x5e1fc0)return;let _0x44c307=(_0x4a8e01=_0x5e1fc0[_0x5497a6(0x143)])==null?void 0x0:_0x4a8e01['outputType'],_0x378e51=((_0x390c90=_0x5e1fc0['import'])==null?void 0x0:_0x390c90[_0x5497a6(0x24a)])||'';if(_0x44c307!==0x2){this[_0x5497a6(0x165)]['next']({'error':{'code':_0x46b732[_0x5497a6(0x23b)],'message':_0x5497a6(0x21f)},'state':0x3});return;}if(_0x378e51[_0x5497a6(0x14f)]===0x0){this[_0x5497a6(0x165)][_0x5497a6(0x117)]({'error':{'code':_0x46b732[_0x5497a6(0x23b)],'message':_0x5497a6(0x12c)},'state':0x3});return;}this[_0x5497a6(0x165)][_0x5497a6(0x117)]({'error':_0x5e1fc0[_0x5497a6(0x21b)],'state':0x3});let _0x2a704b=await this[_0x5497a6(0x113)](_0x378e51);if(!_0x2a704b)return;let _0x52265c=await this[_0x5497a6(0x20a)][_0x5497a6(0x122)](_0x2a704b);if(!_0x52265c)this[_0x5497a6(0x165)]['next']({'error':{'code':_0x46b732[_0x5497a6(0x23b)],'message':'Failed\x20to\x20get\x20text\x20from\x20url'},'state':0x5});else try{let _0x5d91e3=JSON['parse'](_0x52265c);return this[_0x5497a6(0x165)][_0x5497a6(0x117)]({'error':{'code':_0x46b732['OK'],'message':_0x5497a6(0x182)},'state':0x5}),_0x5d91e3;}catch{this[_0x5497a6(0x165)][_0x5497a6(0x117)]({'error':{'code':_0x46b732[_0x5497a6(0x23b)],'message':_0x5497a6(0x214)},'state':0x5});}}async[_0x1aa3a9(0x220)](_0x317da4,_0x2672f8,_0x3fa292,_0xeec879){const _0x7b9bd6=_0x1aa3a9;let _0x1e8c37=JSON[_0x7b9bd6(0x1e5)](_0x317da4),_0xa78149=_0x21193d[_0x7b9bd6(0x1c8)](_0x1e8c37),_0x3fd53f=_0xbb3fa(_0xa78149),_0x23366a=_0xa78149[_0x7b9bd6(0x14f)],_0x31e413=Qe(_0x3fd53f),_0x46863a=await this[_0x7b9bd6(0x126)](_0x31e413,_0x23366a,!0x0);if(_0x46863a)return this[_0x7b9bd6(0x144)](_0x46863a,0x2,_0x2672f8,_0x3fa292,_0xeec879);}async[_0x1aa3a9(0x144)](_0x2b0dc2,_0x1a73ba,_0x431669,_0x401170,_0x305133){const _0x34d8ad=_0x1aa3a9;var _0x1ec648;let _0x575a4a=await this[_0x34d8ad(0x20a)]['export']({..._0x1a73ba===0x1?{'unitID':_0x2b0dc2}:{'jsonID':_0x2b0dc2},'type':_0x431669,'format':_0x401170,'options':_0x305133});if(!_0x575a4a){this['_requestState$']['next']({'error':{'code':_0x46b732[_0x34d8ad(0x23b)],'message':_0x34d8ad(0x264)},'state':0x2});return;}if(this[_0x34d8ad(0x165)][_0x34d8ad(0x117)]({'error':_0x575a4a[_0x34d8ad(0x21b)],'state':0x2}),_0x575a4a[_0x34d8ad(0x21b)]&&_0x575a4a['error']['code']!==_0x46b732['OK'])return;let _0x988a69=_0x575a4a['taskID'],_0x4e1711=await this[_0x34d8ad(0x20a)][_0x34d8ad(0x1e6)](_0x988a69)[_0x34d8ad(0x11d)](_0xb9316c=>{const _0x3053b0=_0x34d8ad;var _0x10bff3;let _0x193051=_0xb9316c instanceof Error?_0xb9316c[_0x3053b0(0x124)]:(_0x10bff3=_0xb9316c[_0x3053b0(0x21b)])==null?void 0x0:_0x10bff3[_0x3053b0(0x124)];this['_requestState$']['next']({'error':{'code':_0x46b732[_0x3053b0(0x23b)],'message':_0x193051||''},'state':0x3});});if(!_0x4e1711)return;let _0xd8305b=((_0x1ec648=_0x4e1711[_0x34d8ad(0x228)])==null?void 0x0:_0x1ec648[_0x34d8ad(0x12b)])||'';if(_0xd8305b[_0x34d8ad(0x14f)]===0x0){this[_0x34d8ad(0x165)][_0x34d8ad(0x117)]({'error':{'code':_0x46b732['UNRECOGNIZED'],'message':_0x34d8ad(0x212)},'state':0x3});return;}this[_0x34d8ad(0x165)][_0x34d8ad(0x117)]({'error':_0x4e1711[_0x34d8ad(0x21b)],'state':0x3});let _0x2cf1a9=await this[_0x34d8ad(0x113)](_0xd8305b);if(!_0x2cf1a9)return;let _0x3e3c94=await Je(_0x2cf1a9,this[_0x34d8ad(0x1fa)]);if(!_0x3e3c94)this[_0x34d8ad(0x165)][_0x34d8ad(0x117)]({'error':{'code':_0x46b732[_0x34d8ad(0x23b)],'message':_0x34d8ad(0x260)},'state':0x6});else return this['_requestState$'][_0x34d8ad(0x117)]({'error':{'code':_0x46b732['OK'],'message':'success'},'state':0x6}),_0x3e3c94;}async[_0x1aa3a9(0x126)](_0x3de67b,_0x4887,_0x1bd35f){const _0x1d3461=_0x1aa3a9;let _0x4f4535;try{_0x4f4535=await this[_0x1d3461(0x20a)][_0x1d3461(0x125)](_0x3de67b,_0x4887,_0x1bd35f);}catch(_0x4307e1){let _0x284b91=_0x4307e1 instanceof Error?_0x4307e1[_0x1d3461(0x124)]:String(_0x4307e1);this[_0x1d3461(0x165)][_0x1d3461(0x117)]({'error':{'code':_0x46b732['UNRECOGNIZED'],'message':_0x284b91},'state':0x0});return;}if(!_0x4f4535||typeof _0x4f4535[_0x1d3461(0x239)]!='string'){this[_0x1d3461(0x165)]['next']({'error':{'code':_0x46b732[_0x1d3461(0x23b)],'message':_0x1d3461(0x25b)},'state':0x0});return;}let _0x3574f3=_0x4f4535['FileId'];if(_0x3574f3[_0x1d3461(0x14f)]===0x0)this['_requestState$'][_0x1d3461(0x117)]({'error':{'code':_0x46b732[_0x1d3461(0x23b)],'message':'upload\x20failed:\x20FileId\x20is\x20empty'},'state':0x0});else return this['_requestState$']['next']({'error':{'code':_0x46b732['OK'],'message':_0x1d3461(0x182)},'state':0x0}),_0x3574f3;}async[_0x1aa3a9(0x14a)](_0x1af051,_0x12349e,_0x3e14f6,_0x13d109){const _0x4745de=_0x1aa3a9;let _0x1d493a={'fileID':_0x1af051,'type':_0x3e14f6,'outputType':_0x12349e,'options':_0x13d109},_0x2cebf3=await this[_0x4745de(0x20a)]['import'](_0x1d493a);if(!_0x2cebf3){this[_0x4745de(0x165)][_0x4745de(0x117)]({'error':{'code':_0x46b732[_0x4745de(0x23b)],'message':_0x4745de(0x226)},'state':0x1});return;}if(_0x2cebf3[_0x4745de(0x21b)]&&_0x2cebf3[_0x4745de(0x21b)][_0x4745de(0x206)]!==_0x46b732['OK']){this[_0x4745de(0x165)][_0x4745de(0x117)]({'error':_0x2cebf3[_0x4745de(0x21b)],'state':0x1});return;}let _0x3b00d0=_0x2cebf3[_0x4745de(0x145)];if(_0x3b00d0[_0x4745de(0x14f)]===0x0)this[_0x4745de(0x165)][_0x4745de(0x117)]({'error':{'code':_0x46b732[_0x4745de(0x23b)],'message':'Failed\x20to\x20get\x20taskID\x20from\x20import\x20response'},'state':0x1});else return this[_0x4745de(0x165)]['next']({'error':_0x2cebf3['error'],'state':0x1}),_0x3b00d0;}async[_0x1aa3a9(0x113)](_0x51a695){const _0x5454b5=_0x1aa3a9;let _0x3275d9=await this[_0x5454b5(0x20a)]['signUrl'](_0x51a695);if(!_0x3275d9){this[_0x5454b5(0x165)][_0x5454b5(0x117)]({'error':{'code':_0x46b732[_0x5454b5(0x23b)],'message':_0x5454b5(0x266)},'state':0x4});return;}if(_0x3275d9[_0x5454b5(0x21b)]&&_0x3275d9[_0x5454b5(0x21b)][_0x5454b5(0x206)]!==_0x46b732['OK']){this[_0x5454b5(0x165)][_0x5454b5(0x117)]({'error':_0x3275d9['error'],'state':0x4});return;}let _0x100a3c=_0x366571(_0x3275d9[_0x5454b5(0x275)],this[_0x5454b5(0x1d9)]());if(_0x100a3c[_0x5454b5(0x14f)]===0x0)this[_0x5454b5(0x165)][_0x5454b5(0x117)]({'error':{'code':_0x46b732[_0x5454b5(0x23b)],'message':_0x5454b5(0x266)},'state':0x4});else return this[_0x5454b5(0x165)][_0x5454b5(0x117)]({'error':_0x3275d9[_0x5454b5(0x21b)],'state':0x4}),_0x100a3c;}[_0x1aa3a9(0x1d9)](){const _0x427896=_0x1aa3a9;let _0x3dd074=this[_0x427896(0x184)][_0x427896(0x190)](k);return(_0x3dd074==null?void 0x0:_0x3dd074[_0x427896(0x23c)])??location['origin'];}};G=z([R(0x0,_0x1e7c97),R(0x1,_0x5efb18(_0x327d2c)),R(0x2,_0x5efb18(B))],G);const K=_0x59b531(_0x1aa3a9(0x201));var ft=class extends _0x5b511d{constructor(){const _0x52a332=_0x1aa3a9;super(),L(this,'_visible$',new _0x41e348()),L(this,_0x52a332(0x153),new _0x41e348()),L(this,'_list$',new _0x41e348()),L(this,_0x52a332(0x11f),this['_visible$'][_0x52a332(0x242)]()),L(this,_0x52a332(0x284),this[_0x52a332(0x153)][_0x52a332(0x242)]()),L(this,_0x52a332(0x1d2),this[_0x52a332(0x1f7)][_0x52a332(0x242)]()),L(this,_0x52a332(0x1f6),[]);}[_0x1aa3a9(0x1f2)](){const _0x441ba1=_0x1aa3a9;super[_0x441ba1(0x1f2)](),this[_0x441ba1(0x174)]['complete'](),this['_state$']['complete'](),this[_0x441ba1(0x1f7)][_0x441ba1(0x225)]();}[_0x1aa3a9(0x1eb)](){this['_visible$']['next'](!0x0);}[_0x1aa3a9(0x222)](){const _0x339ad9=_0x1aa3a9;this[_0x339ad9(0x174)]['next'](!0x1);}[_0x1aa3a9(0x189)](_0x178561){const _0x2e80ef=_0x1aa3a9;this[_0x2e80ef(0x153)][_0x2e80ef(0x117)](_0x178561);}[_0x1aa3a9(0x1f9)](_0x3cf325){const _0x1ba6da=_0x1aa3a9;this[_0x1ba6da(0x1f6)][_0x1ba6da(0x26f)](_0x3cf325),this['_list$']['next'](this[_0x1ba6da(0x1f6)]);}};const pt={'done':0x0,'count':0x0},q=_0x59b531(_0x1aa3a9(0x115));let J=class extends _0x5b511d{constructor(_0x31d579,_0x1482f8,_0x1f8dea,_0x132d93,_0x18a74d,_0x30a4ae){const _0x29c477=_0x1aa3a9;super(),this[_0x29c477(0x1bc)]=_0x31d579,this[_0x29c477(0x27b)]=_0x1482f8,this[_0x29c477(0x13e)]=_0x1f8dea,this[_0x29c477(0x262)]=_0x132d93,this[_0x29c477(0x17a)]=_0x18a74d,this[_0x29c477(0x196)]=_0x30a4ae,L(this,_0x29c477(0x11a),new _0x4aacaf(pt)),L(this,_0x29c477(0x1d8),this[_0x29c477(0x11a)][_0x29c477(0x242)]()),L(this,_0x29c477(0x20b),0x0),L(this,'_doneUploadTaskCount',0x0),L(this,'_isSelectingUnitImportFile',!0x1),L(this,_0x29c477(0x200),null),this[_0x29c477(0x255)](_0x422c2c(this[_0x29c477(0x262)][_0x29c477(0x25e)][_0x29c477(0x12a)](_0x35ef1d=>{const _0xbcf96f=_0x29c477;var _0x4fa7f9;((_0x4fa7f9=_0x35ef1d[_0xbcf96f(0x21b)])==null?void 0x0:_0x4fa7f9[_0xbcf96f(0x206)])===_0x46b732['OK']?this[_0xbcf96f(0x1c3)](0x1):this[_0xbcf96f(0x166)](_0x35ef1d[_0xbcf96f(0x21b)]);})));}['interrupt'](){const _0x20345c=_0x1aa3a9;this['_clearProgress'](),this['_uploadNotificationService'][_0x20345c(0x189)](0x2),this['_exchangeService'][_0x20345c(0x171)]();}async['importFileToUnitId'](_0x1a1251,_0x3c1456){const _0x27bdd3=_0x1aa3a9;if(this[_0x27bdd3(0x1a3)]||this[_0x27bdd3(0x27f)]()){this[_0x27bdd3(0x27b)][_0x27bdd3(0x1eb)]({'type':_0xda4cad[_0x27bdd3(0x240)],'content':this[_0x27bdd3(0x13e)]['t'](_0x27bdd3(0x1e1))});return;}let _0x21a86b;this['_isSelectingUnitImportFile']=!0x0;try{_0x21a86b=await F([_0x1a1251]);}finally{this[_0x27bdd3(0x1a3)]=!0x1;}if(_0x21a86b&&!this[_0x27bdd3(0x17d)](_0x21a86b,_0x1a1251))return this['_lastUnitImportContext']={'type':_0x1a1251,'importer':_0x3c1456},this['_importFileToUnitId'](_0x21a86b[0x0],_0x1a1251,_0x3c1456);}async[_0x1aa3a9(0x19d)](){const _0x3405ef=_0x1aa3a9;let _0x1c6016=this[_0x3405ef(0x200)];if(_0x1c6016)return this[_0x3405ef(0x281)](_0x1c6016[_0x3405ef(0x1d1)],_0x1c6016[_0x3405ef(0x243)]);}async['importFileToSnapshot'](_0x3f8800,_0x1c75f9){const _0x1118be=_0x1aa3a9;if(this['_uploadTaskNotDone']()){this['_messageService'][_0x1118be(0x1eb)]({'type':_0xda4cad[_0x1118be(0x240)],'content':this[_0x1118be(0x13e)]['t'](_0x1118be(0x1e1))});return;}let _0xb071a0=await F([_0x3f8800]);if(!_0xb071a0||this[_0x1118be(0x17d)](_0xb071a0,_0x3f8800))return;this['_showUploadMessage'](_0xda4cad['Info']);let _0x3761c0=await _0x1c75f9(_0xb071a0[0x0]);_0x3761c0&&(this[_0x1118be(0x259)](_0x3f8800,_0x3761c0),this[_0x1118be(0x22f)](_0xda4cad[_0x1118be(0x1e4)]));}async[_0x1aa3a9(0x213)](_0x216a63,_0x5b6db0){const _0x1c0866=_0x1aa3a9;if(this['_uploadTaskNotDone']()){this[_0x1c0866(0x27b)][_0x1c0866(0x1eb)]({'type':_0xda4cad[_0x1c0866(0x240)],'content':this[_0x1c0866(0x13e)]['t'](_0x1c0866(0x1e1))});return;}let _0x599330=await F([_0x216a63]);if(!_0x599330||this['_fileTypeError'](_0x599330,_0x216a63))return;this['_showUploadMessage'](_0xda4cad[_0x1c0866(0x19b)]);let _0x56e831=await _0x5b6db0(_0x599330[0x0]);if(_0x56e831)return this[_0x1c0866(0x22f)](_0xda4cad[_0x1c0866(0x1e4)]),_0x56e831;}async[_0x1aa3a9(0x168)](_0x41477b,_0x46f67a,_0x432363){const _0x10165d=_0x1aa3a9;this[_0x10165d(0x15c)](_0xda4cad[_0x10165d(0x19b)]);let _0x515fc1=await _0x41477b();_0x515fc1&&(this[_0x10165d(0x262)][_0x10165d(0x25a)](_0x515fc1,_0x46f67a||_0x515fc1[_0x10165d(0x127)][_0x10165d(0x170)]('.')['shift']()||document['title'],_0x432363),this[_0x10165d(0x15c)](_0xda4cad['Success']));}['registerLink'](_0x39f3be){const _0x8b98d9=_0x1aa3a9;this[_0x8b98d9(0x27a)]=_0x39f3be;}async[_0x1aa3a9(0x130)](_0x3c923d,_0x31ad91,_0xebe30f){const _0x3f87dc=_0x1aa3a9;this[_0x3f87dc(0x17a)][_0x3f87dc(0x1eb)](),this[_0x3f87dc(0x17a)][_0x3f87dc(0x189)](0x0),this[_0x3f87dc(0x175)](0x4),this[_0x3f87dc(0x1c3)](0x1);let _0xef3799=await _0xebe30f(_0x3c923d);if(!_0xef3799){this[_0x3f87dc(0x249)](),this[_0x3f87dc(0x17a)]['updateState'](0x2);return;}let _0xe65895={'link':this[_0x3f87dc(0x27a)](_0xef3799,_0x31ad91),'name':_0x3c923d[_0x3f87dc(0x127)],'type':_0x31ad91};return this['_uploadNotificationService'][_0x3f87dc(0x1f9)](_0xe65895),this['_completeProgress'](),this['_uploadNotificationService']['updateState'](0x1),_0xef3799;}[_0x1aa3a9(0x259)](_0x1725c8,_0x3adad7){const _0x4a6e41=_0x1aa3a9;let _0x202f93=this['_univerInstanceService'][_0x4a6e41(0x121)](_0x1725c8);if(!_0x202f93)throw Error(_0x4a6e41(0x248)+_0x1725c8+_0x4a6e41(0x173));this['_univerInstanceService'][_0x4a6e41(0x16a)](_0x202f93[_0x4a6e41(0x185)]());let _0x1291fc=this[_0x4a6e41(0x1bc)][_0x4a6e41(0x169)](_0x1725c8,_0x3adad7);this['_univerInstanceService'][_0x4a6e41(0x1bf)](_0x1291fc['getUnitId']());}['_getLinkByUnitId'](_0x594f6a,_0xfea8cf){const _0x247970=_0x1aa3a9;let _0x297875=new URL(window['location'][_0x247970(0x167)]);return _0x297875[_0x247970(0x1e0)]['set'](_0x247970(0x16f),_0x594f6a),_0x297875[_0x247970(0x1e0)]['set']('type',''+_0xfea8cf),_0x297875[_0x247970(0x238)]();}[_0x1aa3a9(0x166)](_0xd970){const _0x3131c1=_0x1aa3a9;if(_0xd970){let {code:_0x25730a}=_0xd970;switch(_0x25730a){case _0x46b732[_0x3131c1(0x177)]:this[_0x3131c1(0x27b)][_0x3131c1(0x1eb)]({'type':_0xda4cad[_0x3131c1(0x132)],'content':this[_0x3131c1(0x13e)]['t']('exchange-client.tooLarge')});break;case _0x46b732['INTERNAL_ERROR']:this['_messageService']['show']({'type':_0xda4cad[_0x3131c1(0x132)],'content':this[_0x3131c1(0x13e)]['t'](_0x3131c1(0x128))});break;default:this[_0x3131c1(0x27b)][_0x3131c1(0x1eb)]({'type':_0xda4cad[_0x3131c1(0x132)],'content':this[_0x3131c1(0x13e)]['t'](_0x3131c1(0x27d))});}return null;}return this['_messageService'][_0x3131c1(0x1eb)]({'type':_0xda4cad[_0x3131c1(0x132)],'content':this[_0x3131c1(0x13e)]['t']('exchange-client.networkError')}),null;}['_showDownloadMessage'](_0x1d81d1){const _0x253679=_0x1aa3a9;let _0x468a40='';switch(_0x1d81d1){case _0xda4cad[_0x253679(0x1e4)]:_0x468a40=this['_localeService']['t'](_0x253679(0x110));break;case _0xda4cad[_0x253679(0x19b)]:_0x468a40=this['_localeService']['t'](_0x253679(0x1ea));}this[_0x253679(0x27b)]['show']({'type':_0x1d81d1,'content':_0x468a40});}[_0x1aa3a9(0x22f)](_0x21b44d){const _0x5549d2=_0x1aa3a9;let _0x4bc31c='';switch(_0x21b44d){case _0xda4cad['Success']:_0x4bc31c=this['_localeService']['t']('exchange-client.uploadSuccess');break;case _0xda4cad[_0x5549d2(0x19b)]:_0x4bc31c=this['_localeService']['t'](_0x5549d2(0x1e1));}this[_0x5549d2(0x27b)]['show']({'type':_0x21b44d,'content':_0x4bc31c});}[_0x1aa3a9(0x23a)](){const _0x5dd185=_0x1aa3a9;this[_0x5dd185(0x11a)][_0x5dd185(0x117)]({'done':this[_0x5dd185(0x1ce)],'count':this[_0x5dd185(0x20b)]});}[_0x1aa3a9(0x175)](_0x1e63be){const _0x502efa=_0x1aa3a9;this[_0x502efa(0x20b)]+=_0x1e63be,this[_0x502efa(0x23a)]();}[_0x1aa3a9(0x1c3)](_0x328745){const _0x176b0f=_0x1aa3a9;this[_0x176b0f(0x1ce)]+=_0x328745,this[_0x176b0f(0x1ce)]=Math[_0x176b0f(0x162)](this[_0x176b0f(0x1ce)],this['_totalUploadTaskCount']),this['_emitProgress']();}[_0x1aa3a9(0x205)](){const _0x256f3b=_0x1aa3a9;this[_0x256f3b(0x1ce)]=this[_0x256f3b(0x20b)],this[_0x256f3b(0x23a)]();}['_clearProgress'](){const _0x1809b1=_0x1aa3a9;this[_0x1809b1(0x1ce)]=0x0,this[_0x1809b1(0x20b)]=0x0,this[_0x1809b1(0x23a)]();}[_0x1aa3a9(0x17d)](_0x3f8e63,_0x3ec9da){const _0x2ae5fc=_0x1aa3a9;let _0x1a2074=_0x3f8e63[0x0],_0x1f9cf1=_0x1a2074[_0x2ae5fc(0x127)];return!qe(_0x1a2074,_0x3ec9da)&&(this[_0x2ae5fc(0x27b)][_0x2ae5fc(0x1eb)]({'type':_0xda4cad[_0x2ae5fc(0x132)],'content':this[_0x2ae5fc(0x13e)]['t'](_0x2ae5fc(0x1a7),_0x1f9cf1)}),!0x0);}[_0x1aa3a9(0x27f)](){const _0x51a840=_0x1aa3a9;return this[_0x51a840(0x20b)]!==0x0&&this[_0x51a840(0x1ce)]!==this[_0x51a840(0x20b)];}};J=z([R(0x0,_0x5efb18(_0x2c3e5f)),R(0x1,_0x317300),R(0x2,_0x5efb18(_0x1f3633)),R(0x3,_0x5efb18(W)),R(0x4,_0x5efb18(K)),R(0x5,_0x2dce26)],J);const mt={0x1:_0x46ee55(_0x1acff4,{'className':_0x1aa3a9(0x246)}),0x0:_0x46ee55(_0x3c6377,{'className':_0x1aa3a9(0x172)}),0x2:_0x46ee55(_0x44560a,{'className':_0x1aa3a9(0x218)})};function ht(){const _0xd1add8=_0x1aa3a9;let _0x2025d6=_0x335eaa(K),_0x231446=_0x335eaa(_0x1f3633),_0x2fb974=_0x335eaa(q),_0x421e65=_0x3a78f8(_0x2025d6[_0xd1add8(0x11f)],!0x1),_0x2e3103=_0x3a78f8(_0x2025d6[_0xd1add8(0x284)],0x0),_0xd9aef=_0x3a78f8(_0x2025d6[_0xd1add8(0x1d2)],[]),_0x195daa=_0x3a78f8(_0x2fb974[_0xd1add8(0x1d8)],{'done':0x0,'count':0x0});if(!_0x421e65)return null;function _0x59c532(_0x455f9c){const _0x6481ed=_0xd1add8;switch(_0x455f9c){case _0x57dd9d[_0x6481ed(0x278)]:return _0x46ee55(_0x46f096,{});case _0x57dd9d[_0x6481ed(0x1ab)]:case _0x57dd9d[_0x6481ed(0x1ef)]:return _0x46ee55(_0x1af0d4,{});case _0x57dd9d[_0x6481ed(0x279)]:return _0x46ee55(_0x4276ce,{});default:return null;}}function _0x101418(){const _0x1ef1b3=_0xd1add8;switch(_0x2e3103){case 0x1:return _0x231446['t'](_0x1ef1b3(0x140));case 0x2:return _0x231446['t']('exchange-client.unknownMistake');default:return _0x231446['t'](_0x1ef1b3(0x1e1));}}let _0x5900c4=_0x195daa['count']>0x0?Math[_0xd1add8(0x157)](_0x195daa[_0xd1add8(0x1b0)]/_0x195daa[_0xd1add8(0x1b7)]*0x64):0x0;return _0x5c8fb9(_0xd1add8(0x118),{'data-u-comp':'mobile-upload-notification','className':_0xd1add8(0x12d),'children':[_0x5c8fb9('header',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','children':[_0x5c8fb9(_0xd1add8(0x129),{'className':_0xd1add8(0x158),'children':[_0x46ee55(_0xd1add8(0x129),{'className':_0xd1add8(0x17e),'children':mt[_0x2e3103]}),_0x46ee55(_0xd1add8(0x129),{'className':'univer-truncate','children':_0x101418()})]}),_0x46ee55(_0xce31ad,{'size':_0xd1add8(0x18c),'variant':_0xd1add8(0x257),'aria-label':_0x231446['t'](_0xd1add8(0x231)),'onClick':()=>_0x2025d6[_0xd1add8(0x222)](),'children':_0x46ee55(_0x5a44b1,{})})]}),_0x2e3103===0x0&&_0x5c8fb9('div',{'className':_0xd1add8(0x19e),'children':[_0x46ee55(_0xd1add8(0x129),{'className':'univer-text-sm\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':_0x231446['t'](_0xd1add8(0x16b))}),_0x46ee55(_0xd1add8(0x265),{'className':_0xd1add8(0x24b),'children':_0x46ee55(_0xd1add8(0x265),{'className':_0xd1add8(0x197),'style':{'width':_0x5900c4+'%'}})}),_0x46ee55(_0xce31ad,{'variant':_0xd1add8(0x257),'onClick':()=>_0x2fb974['interrupt'](),'children':_0x231446['t']('exchange-client.cancel')})]}),_0x2e3103===0x2&&_0x5c8fb9(_0xd1add8(0x265),{'className':_0xd1add8(0x148),'children':[_0x46ee55(_0xd1add8(0x129),{'className':_0xd1add8(0x1c9),'children':_0x231446['t'](_0xd1add8(0x252))}),_0x46ee55(_0xce31ad,{'variant':'text','onClick':()=>_0x2fb974[_0xd1add8(0x19d)](),'children':_0x231446['t']('exchange-client.uploadAgain')})]}),_0xd9aef[_0xd1add8(0x14f)]>0x0&&_0x46ee55('ul',{'className':_0xd1add8(0x183),'children':_0xd9aef[_0xd1add8(0x283)](_0x3bbc5f=>_0x46ee55('li',{'children':_0x5c8fb9('a',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-50\x20univer-px-3\x20univer-py-2\x20univer-text-gray-900\x20univer-no-underline\x20dark:!univer-bg-gray-800\x20dark:!univer-text-gray-0','href':_0x3bbc5f[_0xd1add8(0x1da)],'target':'_blank','rel':_0xd1add8(0x24d),'children':[_0x46ee55(_0xd1add8(0x129),{'className':_0xd1add8(0x14b),'children':_0x59c532(_0x3bbc5f[_0xd1add8(0x1d1)])}),_0x46ee55(_0xd1add8(0x129),{'className':_0xd1add8(0x244),'children':_0x3bbc5f['name']}),_0x46ee55(_0x11c736,{'className':_0xd1add8(0x269)})]})},_0x3bbc5f[_0xd1add8(0x1da)]))}),_0x2e3103===0x1&&_0x5c8fb9('div',{'className':_0xd1add8(0x13f),'children':[_0x46ee55(_0xd1add8(0x129),{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x231446['t'](_0xd1add8(0x223),''+_0xd9aef[_0xd1add8(0x14f)])}),_0x46ee55(_0xce31ad,{'variant':'text','onClick':()=>_0x2fb974[_0xd1add8(0x19d)](),'children':_0x231446['t'](_0xd1add8(0x14e))})]})]});}let Y=class extends _0x5b511d{constructor(_0x2d7be,_0x539971){const _0x542555=_0x1aa3a9;super(),this[_0x542555(0x1c7)]=_0x2d7be,this[_0x542555(0x282)]=_0x539971,this[_0x542555(0x255)](this[_0x542555(0x282)][_0x542555(0x1c4)](_0x5b3c0a[_0x542555(0x258)],()=>_0x524f9d(ht,this[_0x542555(0x1c7)])));}};Y=z([R(0x0,_0x5efb18(_0x4d975b)),R(0x1,_0x18a697)],Y);let X=class extends _0xf1f2c{constructor(_0x445a08=A,_0x54fa15,_0x1eb1d7){const _0x6b75ec=_0x1aa3a9;super(),this[_0x6b75ec(0x1b8)]=_0x445a08,this[_0x6b75ec(0x1c7)]=_0x54fa15,this[_0x6b75ec(0x184)]=_0x1eb1d7;let {..._0x3cba06}=_0x129427({},A,this[_0x6b75ec(0x1b8)]);this[_0x6b75ec(0x184)][_0x6b75ec(0x1d6)](k,_0x3cba06);}[_0x1aa3a9(0x21a)](){_0x21238f(this['_injector'],[[U],[Y],[q,{'useClass':J}],[W,{'useClass':G}],[B,{'useClass':V}],[K,{'useClass':ft}]]);}[_0x1aa3a9(0x1fb)](){const _0x184fe5=_0x1aa3a9;_0x387f54(this[_0x184fe5(0x1c7)],[[U],[Y],[q]]);}};L(X,'pluginName',_0x1aa3a9(0x1b6)),L(X,_0x1aa3a9(0x116),D),L(X,_0x1aa3a9(0x1dd),O),X=z([_0x55d581(_0x46ca3a,_0x1a8c40,_0x37c58d),R(0x1,_0x5efb18(_0x4d975b)),R(0x2,_0x1e7c97)],X);let Z=class extends _0x5b511d{constructor(_0x87d18,_0x141d90){const _0xfa6c4=_0x1aa3a9;super(),this[_0xfa6c4(0x1fd)]=_0x87d18,this[_0xfa6c4(0x156)]=_0x141d90,this['_registerIcons'](),this[_0xfa6c4(0x120)]();}[_0x1aa3a9(0x236)](){const _0x178ad6=_0x1aa3a9;this[_0x178ad6(0x255)](this['_iconManager']['register']({'DirectExportIcon':_0xb0af65,'ExportIcon':_0xdfd1fa,'FolderIcon':_0xa8c4ca}));}[_0x1aa3a9(0x120)](){const _0x594350=_0x1aa3a9;this[_0x594350(0x255)](this[_0x594350(0x156)][_0x594350(0x195)](H,ut));}};function _0x37ff(){const _0xd8ad64=['decorate','UNIVER_DOC','UNIVER_SLIDE','_getLinkByUnitId','_messageService','function','exchange-client.networkError','78699ptYOAD','_uploadTaskNotDone','UNIVER_UNKNOWN','importFileToUnitId','_uiPartsService','map','state$','TABLES','exchange-client.downloadSuccess','object','TEXT','_signUrl','set','univer-pro.exchange-client.operate.service','packageName','next','section','application/msword','_progress$','outputType','pathname','catch','blob','visible$','_registerComponents','getCurrentUnitOfType','getTextFromUrl','&source=','message','upload','_upload','name','exchange-client.internalError','span','subscribe','fileID','Failed\x20to\x20get\x20jsonID\x20from\x20task','univer-fixed\x20univer-bottom-16\x20univer-left-3\x20univer-right-3\x20univer-z-[1000]\x20univer-box-border\x20univer-grid\x20univer-max-h-[50vh]\x20univer-gap-3\x20univer-overflow-y-auto\x20univer-rounded-xl\x20univer-bg-gray-0\x20univer-p-4\x20univer-shadow-lg\x20dark:!univer-bg-gray-900','univer-w-full\x20!univer-min-w-0','univer-mt-5\x20univer-max-h-72\x20univer-overflow-y-auto\x20univer-overflow-x-hidden','_importFileToUnitId','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-gray-0\x20univer-px-3\x20univer-pb-4\x20univer-pt-5\x20univer-shadow-md','Error','appendChild','application/vnd.openxmlformats-officedocument.wordprocessingml.document','createObjectURL','_blank','{fileID}','default','UNIT','Content-Type','Error\x20getting\x20file\x20name\x20from\x20URL:','File\x20request\x20completed\x20without\x20a\x20response.','fetchMissingChangesets','_localeService','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','exchange-client.uploadSuccess','univer-w-48','toUpperCase','import','_export','taskID','sheets','stream','univer-grid\x20univer-gap-2','createElement','_import','univer-flex\x20univer-size-5\x20univer-shrink-0\x20univer-items-center','file.json','toLowerCase','exchange-client.uploadAgain','length','JSON','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','clear','_state$','univer-text-primary-600','GET','_componentManager','floor','univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2\x20univer-font-semibold','click','defineProperty','_importToJson','_showDownloadMessage','pop','blockID','string','saveSnapshot','updateSnapshot','min','ranges','univer-mx-0\x20univer-mb-3\x20univer-mt-4\x20univer-h-1.5\x20univer-w-[324px]\x20univer-rounded-lg\x20univer-bg-gray-200','_requestState$','_showNetworkError','href','exportFile','createUnit','disposeUnit','exchange-client.wait','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','FAIL','xls','unit','split','interruptImportTask','univer-text-blue-500','\x20is\x20currently\x20active.','_visible$','_addTotalCount','small','CONNECTOR_DATA_TOO_LARGE','text/tab-separated-values','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','_uploadNotificationService','exportFileByUnitId','status','_fileTypeError','univer-flex\x20univer-size-6\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-text-xl','DOCX','AUTO','Error\x20fetching\x20file\x20from\x20URL:','success','univer-m-0\x20univer-grid\x20univer-list-none\x20univer-gap-2\x20univer-p-0','_configService','getUnitId','modern','join','files','updateState','_getImportURL','_getMaxPollingTime','icon','TSV','pptx','getTaskServerUrl','getConfig','_buildProtocolErrorMessage','exportFileBySnapshot','univer-mt-3\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-2\x20univer-pr-1','VALUES','register','_logService','univer-h-full\x20univer-rounded-lg\x20univer-bg-primary-600\x20univer-transition-[width]\x20univer-duration-500','{taskID}','accept','prototype','Info','match','retryImportFileToUnitId','univer-grid\x20univer-gap-3','call','univer-m-0\x20univer-flex\x20univer-list-none\x20univer-flex-col\x20univer-gap-2\x20univer-p-0','/universer-api/file/{fileID}/sign-url','exchange-client.unknownMistake','_isSelectingUnitImportFile','pdf','fail','exchange-client.config','exchange-client.fileTypeError','unitID','_getSignURL','originalMeta','UNIVER_SHEET','8448444wppzqo','pluginName','@univerjs-pro/exchange-client','traditional','done','symbol',':\x20HTTP\x20','current','ppt','signUrlServerUrl','UNIVER_EXCHANGE_CLIENT_PLUGIN','count','_config','UNIVER_BOARD','univer-pro.exchange-client.exchange.service','size','_univerInstanceService','uploadFileServerUrl','application/pdf','focusUnit','primary','style','Failed\x20to\x20get\x20unitID\x20from\x20task','_addDoneTask','registerComponent','setTaskInterrupted','univer-flex\x20univer-items-center\x20univer-gap-3','_injector','encode','univer-text-sm\x20univer-text-gray-700\x20dark:!univer-text-gray-200','/universer-api/exchange/{type}/import','application/vnd.ms-powerpoint','univer-mt-5\x20univer-flex\x20univer-flex-col','univer-w-10','_doneUploadTaskCount','statusText','text/csv','type','list$','application/json','signUrl','univer-flex\x20univer-justify-end\x20univer-gap-2','setConfig','removeChild','progress$','_getDownloadEndpointURL','link','PPTX','iterator','version','tables','110HMoxZE','searchParams','exchange-client.uploading','block\x20is\x20required','csv','Success','stringify','getTask','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-1.5\x20univer-pr-2','univer-mb-3\x20univer-py-0\x20univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-gray-0','resolve','exchange-client.downloading','show','headers','interrupt','{type}','UNIVER_BASE','change','saveSheetBlock','dispose','HttpImport','tsv','abort','_list','_list$','AbortError','pushLink','_httpService','onReady','file','_iconManager','exchange-client.confirm','\x20-\x20','_lastUnitImportContext','univer-pro.exchange-client.upload-notification.service','body','button','aborted','_completeProgress','code','filter','upload\x20request\x20failed','univer-grid\x20univer-gap-4','_requestService','_totalUploadTaskCount','univer-pl-2\x20univer-pr-4','855755rFpHBi','CSV','File\x20request\x20aborted.','5453444sSVBYK','/universer-api/exchange/task/{taskID}','Failed\x20to\x20get\x20fileID\x20from\x20task','importFileAsSnapshot','Failed\x20to\x20parse\x20json','get','univer-ml-1.5\x20univer-font-semibold\x20univer-text-gray-900\x20dark:!univer-text-gray-0','univer-sticky\x20univer-bottom-0\x20univer-bg-gray-0\x20univer-py-3\x20dark:!univer-bg-gray-900','univer-text-red-500','buffer','onStarting','error','isUnitLoadedFromServer','keys','input','Get\x20outputType\x20error','_exportBySnapshot','copyFileMeta','hide','exchange-client.uploadSuccessTip','application/octet-stream','complete','import\x20error','7176180CddIJZ','export','_getTaskURL','post','MODERN','_sheetBlockCache','_getUploadFileURL','univer-flex\x20univer-h-5\x20univer-text-xl','_showUploadMessage','addEventListener','exchange-client.cancel','UNDEFINED','unsubscribe','pending','univer-flex\x20univer-size-6\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-text-2xl','_registerIcons','number','toString','FileId','_emitProgress','UNRECOGNIZED','downloadEndpointUrl','revokeObjectURL','constructor','decode','Warning','getLatestCsReqIdBySid','asObservable','importer','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm','forEach','univer-text-green-500','176bCYSyS','No\x20unit\x20of\x20type\x20','_clearProgress','jsonID','univer-h-1.5\x20univer-w-full\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-bg-gray-200','values','noreferrer','30CrTVYE','?size=','replace','docx','exchange-client.interrupt','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','none','disposeWithMe','getOwnPropertyDescriptor','text','CONTENT','_refreshUnit','downloadFile','upload\x20failed:\x20missing\x20FileId\x20in\x20response','_registerUIParts','xlsx','requestState$','_taskInterrupted','Failed\x20to\x20get\x20file\x20from\x20url','_buildHttpErrorMessage','_exchangeService','data','export\x20error','div','sign\x20url\x20error','univer-text-sm\x20univer-text-gray-500','download','univer-shrink-0','PDF','isArray','_importTaskId','maxTimeoutTime','93174Zhzfyc','unshift','UNIVER_PDF','univer-animate-spin','clearTaskInterrupted','_extractErrorDetail','univer-h-1.5\x20univer-rounded-lg\x20univer-bg-primary-600\x20univer-transition-[width]\x20univer-duration-500','url','48734ghVvWS'];_0x37ff=function(){return _0xd8ad64;};return _0x37ff();}Z=z([R(0x0,_0x5efb18(_0xd3551f)),R(0x1,_0x5efb18(_0x3a2f9d))],Z);function gt(_0x4517ac){const _0x3befc9=_0x1aa3a9;let {list:_0x27770f}=_0x4517ac;function _0x352954(_0x1e9d67){const _0x313bb1=_0x1569;switch(_0x1e9d67){case _0x57dd9d[_0x313bb1(0x278)]:return _0x46ee55(_0x46f096,{});case _0x57dd9d[_0x313bb1(0x1ab)]:case _0x57dd9d[_0x313bb1(0x1ef)]:return _0x46ee55(_0x1af0d4,{});case _0x57dd9d[_0x313bb1(0x279)]:return _0x46ee55(_0x4276ce,{});default:return null;}}return _0x46ee55('div',{'className':_0x426f5e(_0x3befc9(0x12f),_0x5e8de6),'children':_0x46ee55('ul',{'className':_0x3befc9(0x1a0),'children':_0x27770f[_0x3befc9(0x283)]((_0x4524b6,_0x2cfaf)=>_0x46ee55('li',{'children':_0x5c8fb9('a',{'className':'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-gray-0\x20dark:hover:!univer-bg-gray-600','href':_0x4524b6['link'],'target':_0x3befc9(0x136),'rel':_0x3befc9(0x24d),'children':[_0x5c8fb9(_0x3befc9(0x129),{'className':'univer-flex\x20univer-w-[calc(100%-48px)]\x20univer-items-center','children':[_0x46ee55(_0x3befc9(0x129),{'className':_0x3befc9(0x22e),'children':_0x352954(_0x4524b6[_0x3befc9(0x1d1)])}),_0x46ee55(_0x117459,{'showIfEllipsis':!0x0,'title':_0x4524b6[_0x3befc9(0x127)],'asChild':!0x0,'children':_0x46ee55(_0x3befc9(0x129),{'className':'univer-ml-1\x20univer-truncate\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-gray-0','children':_0x4524b6[_0x3befc9(0x127)]})})]}),_0x46ee55(_0x3befc9(0x129),{'className':_0x3befc9(0x151),'children':_0x46ee55(_0x11c736,{})})]})},_0x2cfaf))})});}function _t(_0xc8e03){const _0xd88032=_0x1aa3a9;let {onClick:_0x1d345e,children:_0x5bf62c,className:_0x333232}=_0xc8e03;return _0x46ee55(_0xce31ad,{'size':_0xd88032(0x176),'variant':_0xd88032(0x257),'className':_0x426f5e(_0xd88032(0x154),_0x333232),'type':_0xd88032(0x203),'onClick':_0x1d345e,'children':_0x5bf62c});}function vt(){const _0x30a436=_0x1aa3a9;let _0xe11ff0=_0x335eaa(q),_0x48d8b5=_0x335eaa(_0x1f3633);function _0x18bce7(){const _0xbfa13=_0x1569;return _0xe11ff0[_0xbfa13(0x19d)]();}return _0x46ee55(_t,{'onClick':_0x18bce7,'children':_0x48d8b5['t'](_0x30a436(0x14e))});}function yt(){const _0x5c5c0c=_0x1aa3a9;let _0x4d8705=_0x335eaa(_0x1f3633);return _0x5c8fb9(_0x5c5c0c(0x265),{'className':_0x5c5c0c(0x1cc),'children':[_0x46ee55(_0x5c5c0c(0x129),{'className':_0x5c5c0c(0x1e8),'children':_0x4d8705['t'](_0x5c5c0c(0x252))}),_0x46ee55(vt,{})]});}function bt(_0x2b4051){const _0x5d52ab=_0x1aa3a9;let {count:_0x1d3a31}=_0x2b4051,_0x1e1dae=_0x335eaa(_0x1f3633);return _0x5c8fb9(_0x5d52ab(0x265),{'className':_0x5d52ab(0x193),'children':[_0x46ee55(_0x5d52ab(0x129),{'className':_0x5d52ab(0x267),'children':_0x1e1dae['t']('exchange-client.uploadSuccessTip',''+_0x1d3a31)}),_0x46ee55(vt,{})]});}function xt(){const _0x2d4d11=_0x1aa3a9;let _0x260c1c=_0x335eaa(q),_0x597e18=_0x335eaa(_0x1f3633);function _0x3d7e87(){const _0x2f045a=_0x1569;_0x260c1c[_0x2f045a(0x1ed)]();}return _0x46ee55(_t,{'onClick':_0x3d7e87,'children':_0x597e18['t'](_0x2d4d11(0x231))});}function St(){const _0x201c42=_0x1aa3a9;let _0x2443d0=_0x335eaa(q),{count:_0x2ecbe2,done:_0x3d9b2f}=_0x3a78f8(_0x2443d0[_0x201c42(0x1d8)]),_0x109d60=_0x2ecbe2>0x0?_0x3d9b2f/_0x2ecbe2:0x0;return _0x46ee55(_0x201c42(0x265),{'className':_0x201c42(0x164),'children':_0x46ee55(_0x201c42(0x265),{'className':_0x201c42(0x274),'style':{'width':Math['floor'](_0x109d60*0x64)+'%'}})});}function Ct(){const _0x58cc8a=_0x1aa3a9;let _0x241458=_0x335eaa(_0x1f3633);return _0x5c8fb9(_0x58cc8a(0x265),{'className':_0x58cc8a(0x1cc),'children':[_0x46ee55('span',{'className':'univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-gray-0','children':_0x241458['t']('exchange-client.wait')}),_0x46ee55(_0x58cc8a(0x265),{'className':_0x58cc8a(0x20c),'children':_0x46ee55(St,{})}),_0x46ee55(xt,{})]});}const wt={0x1:_0x46ee55(_0x1acff4,{'className':_0x1aa3a9(0x246)}),0x0:_0x46ee55(_0x3c6377,{'className':_0x1aa3a9(0x172)}),0x2:_0x46ee55(_0x44560a,{'className':'univer-text-red-500'})};function Tt(){const _0x4b80a6=_0x1aa3a9;let _0x3b83a1=_0x335eaa(K),_0x2ccaf8=_0x335eaa(_0x1f3633),_0x2c129d=_0x3a78f8(_0x3b83a1['state$'],0x0),_0x514d9c=_0x3a78f8(_0x3b83a1[_0x4b80a6(0x11f)],!0x1),_0xb5f07d=_0x3a78f8(_0x3b83a1[_0x4b80a6(0x1d2)],[]);function _0x2e79bc(){const _0x34bdbd=_0x4b80a6;_0x3b83a1[_0x34bdbd(0x222)]();}function _0x2f6337(_0x37e089){const _0x2c8aee=_0x4b80a6;switch(_0x37e089){case 0x1:return _0x2ccaf8['t']('exchange-client.uploadSuccess');case 0x0:return _0x2ccaf8['t'](_0x2c8aee(0x1e1));case 0x2:return _0x2ccaf8['t'](_0x2c8aee(0x1a2));default:return'';}}return _0x514d9c&&_0x5c8fb9(_0x4b80a6(0x265),{'className':_0x4b80a6(0x131),'children':[_0x5c8fb9(_0x4b80a6(0x265),{'className':_0x4b80a6(0x1e7),'children':[_0x5c8fb9(_0x4b80a6(0x129),{'className':'univer-flex\x20univer-items-center','children':[_0x46ee55('span',{'className':_0x4b80a6(0x235),'children':wt[_0x2c129d]}),_0x46ee55(_0x4b80a6(0x129),{'className':_0x4b80a6(0x216),'children':_0x2f6337(_0x2c129d)})]}),_0x46ee55(_0x4b80a6(0x129),{'className':_0x4b80a6(0x179),'onClick':_0x2e79bc,'children':_0x46ee55(_0x5a44b1,{})})]}),_0x5c8fb9(_0x4b80a6(0x265),{'children':[_0x2c129d===0x0&&_0x46ee55(Ct,{}),_0x2c129d===0x2&&_0x46ee55(yt,{}),_0xb5f07d['length']>0x0&&_0x46ee55(gt,{'list':_0xb5f07d}),_0x2c129d===0x1&&_0x46ee55(bt,{'count':_0xb5f07d[_0x4b80a6(0x14f)]})]})]});}let Q=class extends _0x5b511d{constructor(_0x53ce00,_0xef7d87){const _0xd612e8=_0x1aa3a9;super(),this[_0xd612e8(0x1c7)]=_0x53ce00,this[_0xd612e8(0x282)]=_0xef7d87,this[_0xd612e8(0x25c)]();}[_0x1aa3a9(0x25c)](){const _0x2e026a=_0x1aa3a9;this[_0x2e026a(0x255)](this['_uiPartsService'][_0x2e026a(0x1c4)](_0x5b3c0a[_0x2e026a(0x258)],()=>_0x524f9d(Tt,this[_0x2e026a(0x1c7)])));}};Q=z([R(0x0,_0x5efb18(_0x4d975b)),R(0x1,_0x18a697)],Q);let $=class extends _0xf1f2c{constructor(_0x2fd300=A,_0x288afe,_0x5c65f3){const _0x153f52=_0x1aa3a9;super(),this[_0x153f52(0x1b8)]=_0x2fd300,this[_0x153f52(0x1c7)]=_0x288afe,this['_configService']=_0x5c65f3;let {..._0x52839a}=_0x129427({},A,this[_0x153f52(0x1b8)]);this[_0x153f52(0x184)][_0x153f52(0x1d6)](k,_0x52839a);}[_0x1aa3a9(0x21a)](){_0x21238f(this['_injector'],[[Z],[Q],[q,{'useClass':J}],[W,{'useClass':G}],[B,{'useClass':V}],[K,{'useClass':ft}]]);}[_0x1aa3a9(0x1fb)](){const _0x5f4389=_0x1aa3a9;_0x387f54(this[_0x5f4389(0x1c7)],[[Z],[Q],[q]]);}};L($,_0x1aa3a9(0x1ad),_0x1aa3a9(0x1b6)),L($,_0x1aa3a9(0x116),D),L($,_0x1aa3a9(0x1dd),O),$=z([_0x55d581(_0x46ca3a,_0x1a8c40),R(0x1,_0x5efb18(_0x4d975b)),R(0x2,_0x1e7c97)],$);function Et(_0x29ca,_0x2a3915){const _0x4af1a2=_0x1aa3a9;let _0x30ec9b=_0x29ca[_0x4af1a2(0x215)](_0x2c3e5f)[_0x4af1a2(0x121)](_0x2a3915);return!_0x30ec9b||!_0x29ca['has'](_0x586b01)||!_0x29ca['has'](_0x6f2389)?!0x1:_0x29ca[_0x4af1a2(0x215)](_0x586b01)[_0x4af1a2(0x21c)](_0x30ec9b);}function Dt(_0xfac58c){const _0x38db72=_0x1aa3a9;let _0x4b9b42=_0xfac58c['workbook'];if(!_0x4b9b42)return null;let _0xda7970={};_0x4b9b42[_0x38db72(0x146)]&&Object[_0x38db72(0x21d)](_0x4b9b42['sheets'])[_0x38db72(0x245)](_0x121429=>{const _0x5decf9=_0x38db72;let _0x5776eb=_0x4b9b42[_0x5decf9(0x146)][_0x121429];_0xda7970[_0x121429]={..._0x5776eb,'originalMeta':_0x45847b(_0x29d867[_0x5decf9(0x23f)](_0x5776eb[_0x5decf9(0x1aa)]))};});let _0x300186=_0x45847b(_0x29d867['decode'](_0x4b9b42[_0x38db72(0x1aa)]));return{..._0xfac58c,'workbook':{..._0x4b9b42,'originalMeta':_0x300186,'sheets':_0xda7970},'doc':{},'slide':void 0x0,'board':void 0x0,'pdf':void 0x0};}function Ot(_0x1ac6ce){const _0x1feeee=_0x1aa3a9;let _0x150ebb={};return _0x1ac6ce[_0x1feeee(0x245)](_0x38d2d0=>{const _0x441a16=_0x1feeee;_0x150ebb[_0x38d2d0['id']]={..._0x38d2d0,'data':_0x45847b(_0x29d867['decode'](_0x38d2d0[_0x441a16(0x263)]))};}),_0x150ebb;}var kt=class{constructor(){L(this,'_sheetBlockCache',new Map());}['getUnitOnRev'](){const _0x387741=_0x1aa3a9;return Promise['resolve']({'snapshot':{'unitID':'','type':_0x57dd9d[_0x387741(0x1ab)],'rev':0x0,'workbook':void 0x0,'doc':void 0x0,'slide':void 0x0,'board':void 0x0},'changesets':[],'error':{'code':_0x46b732['OK'],'message':''}});}['getSheetBlock'](_0x24df14,_0x2ca4b3){const _0x47ca05=_0x1aa3a9;let _0x56990f=this['_sheetBlockCache'][_0x47ca05(0x215)](_0x2ca4b3[_0x47ca05(0x15e)]);return Promise[_0x47ca05(0x1e9)]({'block':_0x56990f,'error':{'code':_0x46b732['OK'],'message':''}});}['getDeserializedSheetBlock'](_0x540815,_0xdf3b4){const _0x1e2ad9=_0x1aa3a9;let _0x4dd44=this['_sheetBlockCache']['get'](_0xdf3b4[_0x1e2ad9(0x15e)]);return Promise[_0x1e2ad9(0x1e9)]({'block':_0x4dd44===void 0x0?void 0x0:{..._0x4dd44,'data':JSON['parse'](_0x29d867[_0x1e2ad9(0x23f)](_0x4dd44[_0x1e2ad9(0x263)]))},'error':{'code':_0x46b732['OK'],'message':''}});}[_0x1aa3a9(0x13d)](){return Promise['resolve']({'changesets':[],'error':{'code':_0x46b732['OK'],'message':''}});}['getResourcesRequest'](){const _0x27c9a8=_0x1aa3a9;return Promise[_0x27c9a8(0x1e9)]({'resources':{},'error':{'code':_0x46b732['OK'],'message':''}});}[_0x1aa3a9(0x160)](){return Promise['resolve']({'error':{'code':_0x46b732['OK'],'message':''}});}[_0x1aa3a9(0x161)](){const _0xbca582=_0x1aa3a9;return Promise[_0xbca582(0x1e9)]({'error':{'code':_0x46b732['OK'],'message':''}});}[_0x1aa3a9(0x1f1)](_0x547e71,_0x47cd82){const _0x306db6=_0x1aa3a9;let {block:_0x231597}=_0x47cd82;return _0x231597?(this[_0x306db6(0x22c)][_0x306db6(0x114)](_0x231597['id'],_0x231597),Promise[_0x306db6(0x1e9)]({'error':{'code':_0x46b732['OK'],'message':''},'blockID':_0x231597['id']})):Promise[_0x306db6(0x1e9)]({'error':{'code':_0x46b732[_0x306db6(0x232)],'message':_0x306db6(0x1e2)},'blockID':''});}['saveChangeset'](){return Promise['resolve']({'error':{'code':_0x46b732['OK'],'message':''},'concurrent':[]});}[_0x1aa3a9(0x221)](){const _0xd778a5=_0x1aa3a9;return Promise[_0xd778a5(0x1e9)]({'error':void 0x0,'fileMetaId':''});}[_0x1aa3a9(0x241)](){const _0x57a4eb=_0x1aa3a9;return Promise[_0x57a4eb(0x1e9)]({'error':void 0x0,'latestReqID':0x0});}};export{kt as ClientSnapshotServerService,H as EXPORT_FORMAT_DIALOG,lt as ExchangeBaseExportMode,ct as ExchangeBaseFormulaPolicy,st as ExchangeBaseImportMode,ot as ExchangeDocType,at as ExchangeFormat,q as IExchangeOperateService,W as IExchangeService,it as ImportOutputType,X as UniverExchangeClientMobileUIPlugin,$ as UniverExchangeClientPlugin,Et as isCurrentUnitLoadedFromServer,Ot as transformSheetBlockMetaToString,Dt as transformWorkbookSnapshotMetaToString};
1
+ const _0x524650=_0x3d1e;(function(_0x2c7568,_0x1ae85e){const _0x5af104=_0x3d1e,_0x1488d5=_0x2c7568();while(!![]){try{const _0x275c7a=-parseInt(_0x5af104(0x1df))/0x1+-parseInt(_0x5af104(0x1e1))/0x2+-parseInt(_0x5af104(0x172))/0x3+parseInt(_0x5af104(0x15e))/0x4+-parseInt(_0x5af104(0x186))/0x5+-parseInt(_0x5af104(0x175))/0x6*(parseInt(_0x5af104(0x158))/0x7)+parseInt(_0x5af104(0x17b))/0x8;if(_0x275c7a===_0x1ae85e)break;else _0x1488d5['push'](_0x1488d5['shift']());}catch(_0x338403){_0x1488d5['push'](_0x1488d5['shift']());}}}(_0x2322,0x9f900));import{UniverLicensePlugin as _0x4b875e}from'@univerjs-pro/license';import{DependentOn as _0x188883,Disposable as _0x5e593b,IConfigService as _0x54f9cd,Inject as _0x58ff1a,Injector as _0x29f00d,Plugin as _0x551cab,UniverInstanceType as _0x378b3c,createIdentifier as _0x2bb6c2,merge as _0x3c783e,registerDependencies as _0x5b5d4b,resolveWithBasePath as _0x419213}from'@univerjs/core';import{HTTPEventType as _0x4ca73f,HTTPResponseError as _0x5e60a6,HTTPService as _0x4b3b22,UniverNetworkPlugin as _0x24fb05}from'@univerjs/network';import{b64EncodeUnicode as _0x4d2ca6,textDecoder as _0x2c0e79,textEncoder as _0x504420}from'@univerjs-pro/collaboration';import{ErrorCode as _0x4c5264,FileSource as _0x864920}from'@univerjs/protocol';import{deflateSync as _0x17b490}from'fflate';import{Subject as _0x503d55}from'rxjs';var ie='@univerjs-pro/exchange-client',y=_0x524650(0x12e);const b=_0x524650(0x12a),x={},S=_0x524650(0x19a),C=_0x524650(0x154),w='application/vnd.ms-excel',T=_0x524650(0x12b),E=_0x524650(0x1ff),D='text/tab-separated-values',O=_0x524650(0x13b),k='application/vnd.openxmlformats-officedocument.presentationml.presentation',A=_0x524650(0x1d0),j={[_0x378b3c[_0x524650(0x199)]]:[''],[_0x378b3c[_0x524650(0x1c0)]]:[C,S],[_0x378b3c[_0x524650(0x1e4)]]:[w,T,E,D],[_0x378b3c[_0x524650(0x1de)]]:[O,k],[_0x378b3c[_0x524650(0x17d)]]:[A],[_0x378b3c[_0x524650(0x179)]]:[w,T,E,D],[_0x378b3c[_0x524650(0x138)]]:[''],[_0x378b3c['UNIVER_PROJECT']]:[''],[_0x378b3c['UNRECOGNIZED']]:['']},M={[C]:'doc',[S]:_0x524650(0x20b),[w]:_0x524650(0x1c1),[T]:_0x524650(0x1a6),[E]:_0x524650(0x180),[D]:_0x524650(0x147),[O]:_0x524650(0x209),[k]:_0x524650(0x188),[A]:_0x524650(0x182)};Object[_0x524650(0x19f)](Object[_0x524650(0x1b0)](j)['map'](([_0x32b5e8,_0x29af14])=>[_0x32b5e8,_0x29af14[_0x524650(0x1a7)](_0x140d29=>M[_0x140d29])[_0x524650(0x183)](Boolean)]));function N(_0x583a60,_0x5db5b1,_0x4ff0d7){const _0x18586c=_0x524650;let _0x79406d=document['createElement']('a');_0x79406d['href']=_0x583a60,_0x79406d['style'][_0x18586c(0x17e)]='none',_0x79406d['download']=_0x5db5b1+'.'+_0x4ff0d7,document['body'][_0x18586c(0x15c)](_0x79406d),_0x79406d[_0x18586c(0x1c5)](),document[_0x18586c(0x192)][_0x18586c(0x187)](_0x79406d);}async function P(_0x59b91c,_0x1bd975){const _0x291aaa=_0x524650;try{return await F(_0x59b91c,_0x1bd975);}catch(_0x145428){console[_0x291aaa(0x1e9)](_0x291aaa(0x1b5),_0x145428);return;}}async function F(_0xeb38d6,_0x600a42,_0x4db280){const _0xa99c99=_0x524650;var _0x5a8d82,_0xf98d49;let _0x3093c9=_0x4db280?await ae(_0xeb38d6,_0x600a42,_0x4db280):await _0x600a42['get'](_0xeb38d6,{'responseType':'blob'}),_0x591f02=_0x3093c9['body'],_0x12bd49=((_0x5a8d82=_0x3093c9['headers'][_0xa99c99(0x1d4)](_0xa99c99(0x193)))==null?void 0x0:_0x5a8d82[_0xa99c99(0x1aa)](',\x20'))??_0xa99c99(0x1b9),_0x2dda13=_0xa99c99(0x201)+(M[_0x12bd49]||'xlsx'),_0x4de5ee=(_0xf98d49=_0x3093c9[_0xa99c99(0x14e)][_0xa99c99(0x1d4)](_0xa99c99(0x1c7)))==null?void 0x0:_0xf98d49['join'](',\x20');if(_0x4de5ee){let _0x1d02ff=_0x4de5ee[_0xa99c99(0x1c6)](/filename=(.+)/);_0x1d02ff&&_0x1d02ff[0x1]&&(_0x2dda13=_0x1d02ff[0x1]);}else _0x2dda13=I(_0xeb38d6)||_0x2dda13;return new File([_0x591f02],_0x2dda13,{'type':_0x12bd49});}function ae(_0x3023d5,_0x4de4b6,_0x232c96){return new Promise((_0x3d9e8e,_0x26dc3d)=>{const _0x362a6e=_0x3d1e;let _0x324abb=!0x1,_0x1bdb79,_0x1d15b1=()=>_0x232c96[_0x362a6e(0x204)](_0x362a6e(0x203),_0x3cfe3a),_0x3cfe3a=()=>{const _0x52ba4a=_0x362a6e;if(_0x324abb)return;_0x324abb=!0x0,_0x1bdb79==null||_0x1bdb79[_0x52ba4a(0x1f3)](),_0x1d15b1();let _0x986d21=Error(_0x52ba4a(0x1f2));_0x986d21['name']=_0x52ba4a(0x141),_0x26dc3d(_0x986d21);};_0x232c96[_0x362a6e(0x14a)](_0x362a6e(0x203),_0x3cfe3a,{'once':!0x0}),_0x232c96[_0x362a6e(0x157)]?_0x3cfe3a():(_0x1bdb79=_0x4de4b6[_0x362a6e(0x1e8)]('GET',_0x3023d5,{'responseType':_0x362a6e(0x1c8)})[_0x362a6e(0x1af)]({'next'(_0x46b8ec){const _0x3da9c3=_0x362a6e;_0x324abb||_0x46b8ec[_0x3da9c3(0x16f)]!==_0x4ca73f['Response']||(_0x324abb=!0x0,_0x1d15b1(),_0x1bdb79==null||_0x1bdb79[_0x3da9c3(0x1f3)](),_0x3d9e8e(_0x46b8ec));},'error'(_0x3c2b2c){_0x324abb||(_0x324abb=!0x0,_0x1d15b1(),_0x26dc3d(_0x3c2b2c));},'complete'(){const _0x4d5319=_0x362a6e;_0x324abb||(_0x324abb=!0x0,_0x1d15b1(),_0x26dc3d(Error(_0x4d5319(0x1a3))));}}),_0x324abb&&_0x1bdb79['unsubscribe']());});}function _0x3d1e(_0x223012,_0x573436){_0x223012=_0x223012-0x125;const _0x2322a8=_0x2322();let _0x3d1e65=_0x2322a8[_0x223012];return _0x3d1e65;}function I(_0x4e8b23){const _0xf566c8=_0x524650;try{return new URL(_0x4e8b23)[_0xf566c8(0x191)][_0xf566c8(0x1a5)]('/')[_0xf566c8(0x1d9)]();}catch(_0x5de4c1){console[_0xf566c8(0x1e9)](_0xf566c8(0x19c),_0x5de4c1);return;}}function L(_0x4a9637){const _0x195bd7=_0x524650;let _0xde5e9=new Blob([_0x4a9637[_0x195bd7(0x189)]],{'type':'application/json'});return new File([_0xde5e9],_0x195bd7(0x1d5));}function R(_0x21ec86,_0x445e86){const _0x5043d7=_0x524650;return _0x21ec86[_0x5043d7(0x1ee)](_0x5043d7(0x1f0),_0x445e86);}function z(_0x15a661,_0x165dcd){const _0x8a619c=_0x524650;return _0x15a661[_0x8a619c(0x1ee)](_0x8a619c(0x177),_0x165dcd);}function B(_0x5b77f3,_0x40b3bd){const _0x18b940=_0x524650;return _0x5b77f3['replace'](_0x18b940(0x171),_0x40b3bd);}function V(_0x3150b1){'@babel/helpers - typeof';const _0xe5220f=_0x524650;return V=typeof Symbol=='function'&&typeof Symbol['iterator']==_0xe5220f(0x127)?function(_0x41c430){return typeof _0x41c430;}:function(_0x29ab04){const _0x92d9e7=_0xe5220f;return _0x29ab04&&typeof Symbol==_0x92d9e7(0x13f)&&_0x29ab04[_0x92d9e7(0x15f)]===Symbol&&_0x29ab04!==Symbol[_0x92d9e7(0x16c)]?_0x92d9e7(0x127):typeof _0x29ab04;},V(_0x3150b1);}function H(_0x5504b2,_0x22f56d){const _0x502d4f=_0x524650;if(V(_0x5504b2)!=_0x502d4f(0x1fa)||!_0x5504b2)return _0x5504b2;var _0x5a1e99=_0x5504b2[Symbol[_0x502d4f(0x1fb)]];if(_0x5a1e99!==void 0x0){var _0xd3c792=_0x5a1e99[_0x502d4f(0x161)](_0x5504b2,_0x22f56d||_0x502d4f(0x1cf));if(V(_0xd3c792)!=_0x502d4f(0x1fa))return _0xd3c792;throw TypeError(_0x502d4f(0x1e7));}return(_0x22f56d===_0x502d4f(0x149)?String:Number)(_0x5504b2);}function U(_0x11cec5){const _0x4a9b1d=_0x524650;var _0x1275b1=H(_0x11cec5,'string');return V(_0x1275b1)==_0x4a9b1d(0x127)?_0x1275b1:_0x1275b1+'';}function W(_0xdef296,_0xb0ca3c,_0x501749){return(_0xb0ca3c=U(_0xb0ca3c))in _0xdef296?Object['defineProperty'](_0xdef296,_0xb0ca3c,{'value':_0x501749,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xdef296[_0xb0ca3c]=_0x501749,_0xdef296;}function G(_0x5ea1e9,_0x1efcf2){return function(_0x4e5c79,_0x59d699){_0x1efcf2(_0x4e5c79,_0x59d699,_0x5ea1e9);};}function K(_0x28f1e2,_0x18672f,_0x3dcf6c,_0xdc1985){const _0x28d822=_0x524650;var _0x42779d=arguments[_0x28d822(0x1e0)],_0x423949=_0x42779d<0x3?_0x18672f:_0xdc1985===null?_0xdc1985=Object[_0x28d822(0x126)](_0x18672f,_0x3dcf6c):_0xdc1985,_0x37cdc7;if(typeof Reflect==_0x28d822(0x1fa)&&typeof Reflect[_0x28d822(0x1ed)]==_0x28d822(0x13f))_0x423949=Reflect[_0x28d822(0x1ed)](_0x28f1e2,_0x18672f,_0x3dcf6c,_0xdc1985);else{for(var _0x2dd859=_0x28f1e2['length']-0x1;_0x2dd859>=0x0;_0x2dd859--)(_0x37cdc7=_0x28f1e2[_0x2dd859])&&(_0x423949=(_0x42779d<0x3?_0x37cdc7(_0x423949):_0x42779d>0x3?_0x37cdc7(_0x18672f,_0x3dcf6c,_0x423949):_0x37cdc7(_0x18672f,_0x3dcf6c))||_0x423949);}return _0x42779d>0x3&&_0x423949&&Object[_0x28d822(0x13a)](_0x18672f,_0x3dcf6c,_0x423949),_0x423949;}let q=function(_0x4c3db3){const _0x595221=_0x524650;return _0x4c3db3[_0x4c3db3[_0x595221(0x18f)]=0x0]='UNDEFINED',_0x4c3db3[_0x4c3db3['UNIT']=0x1]='UNIT',_0x4c3db3[_0x4c3db3[_0x595221(0x150)]=0x2]='JSON',_0x4c3db3[_0x4c3db3['UNRECOGNIZED']=-0x1]=_0x595221(0x200),_0x4c3db3;}({}),oe=function(_0xfda09a){const _0x16ff4a=_0x524650;return _0xfda09a[_0x16ff4a(0x19e)]=_0x16ff4a(0x1a6),_0xfda09a['CSV']='csv',_0xfda09a[_0x16ff4a(0x168)]=_0x16ff4a(0x147),_0xfda09a['DOCX']=_0x16ff4a(0x20b),_0xfda09a['PPTX']=_0x16ff4a(0x188),_0xfda09a[_0x16ff4a(0x207)]='pdf',_0xfda09a;}({}),J=function(_0x20c855){const _0x5cd626=_0x524650;return _0x20c855[_0x5cd626(0x136)]=_0x5cd626(0x1f8),_0x20c855[_0x5cd626(0x1d3)]=_0x5cd626(0x1ae),_0x20c855;}({}),se=function(_0x24fd13){const _0x3c39ea=_0x524650;return _0x24fd13[_0x3c39ea(0x16a)]=_0x3c39ea(0x1eb),_0x24fd13[_0x3c39ea(0x1b7)]='tables',_0x24fd13[_0x3c39ea(0x1e5)]=_0x3c39ea(0x170),_0x24fd13[_0x3c39ea(0x13c)]=_0x3c39ea(0x1be),_0x24fd13;}({}),ce=function(_0x445997){const _0x44ec65=_0x524650;return _0x445997[_0x44ec65(0x12c)]='convert-then-values',_0x445997[_0x44ec65(0x1db)]=_0x44ec65(0x156),_0x445997[_0x44ec65(0x17a)]=_0x44ec65(0x1dc),_0x445997[_0x44ec65(0x1d7)]=_0x44ec65(0x1f7),_0x445997;}({}),le=function(_0x204891){const _0x500a60=_0x524650;return _0x204891[_0x500a60(0x1b7)]=_0x500a60(0x14c),_0x204891[_0x500a60(0x1a4)]=_0x500a60(0x151),_0x204891;}({});const Y=_0x2bb6c2('univer-pro.exchange-client.request.service');let X=class{constructor(_0x22bc78,_0x346ee5){this['_configService']=_0x22bc78,this['_httpService']=_0x346ee5,W(this,'_taskInterrupted',new Set());}[_0x524650(0x142)](){}[_0x524650(0x176)](_0x32a6fa){const _0xbf5b6e=_0x524650;this[_0xbf5b6e(0x17c)]['add'](_0x32a6fa);}['clearTaskInterrupted'](){const _0x4066a8=_0x524650;this['_taskInterrupted'][_0x4066a8(0x152)]();}async['upload'](_0x1c999a,_0x75bcf1=0x0,_0x48d37a=!0x1){const _0x13e1bf=_0x524650;if(typeof _0x1c999a=='string'){let _0x54b8dc=await P(_0x1c999a,this[_0x13e1bf(0x18a)]);if(!_0x54b8dc)throw Error(_0x13e1bf(0x1ab));_0x1c999a=_0x54b8dc;}_0x75bcf1||=_0x1c999a['size'];let _0x48d90b=new FormData();_0x48d90b['append'](_0x13e1bf(0x1ce),_0x1c999a);try{let _0x3a980d=this['_getUploadFileURL']()+_0x13e1bf(0x20d)+_0x75bcf1+_0x13e1bf(0x1c3)+_0x864920['HttpImport']+_0x13e1bf(0x1c2)+_0x48d37a,_0x5c9b2d={'body':_0x48d90b},_0x51daa9=(await this['_httpService'][_0x13e1bf(0x196)](_0x3a980d,_0x5c9b2d))[_0x13e1bf(0x192)];if(_0x51daa9[_0x13e1bf(0x1e9)]&&_0x51daa9['error'][_0x13e1bf(0x1b2)]!==_0x4c5264['OK'])throw Error(this[_0x13e1bf(0x1e6)](_0x13e1bf(0x1f4),_0x51daa9['error']));return _0x51daa9;}catch(_0xf30951){throw _0xf30951 instanceof Error?_0xf30951:Error(this[_0x13e1bf(0x1d6)]('upload\x20request\x20failed',_0xf30951));}}async['import'](_0x27c84d){const _0x3b0763=_0x524650;let {type:_0x34d15e,..._0x4e227f}=_0x27c84d;try{let _0x4eb28f=R(this[_0x3b0763(0x14b)](),''+_0x34d15e),_0x48f329={'body':_0x4e227f},_0x1c9314=(await this[_0x3b0763(0x18a)][_0x3b0763(0x196)](_0x4eb28f,_0x48f329))[_0x3b0763(0x192)];return _0x1c9314[_0x3b0763(0x1e9)]&&_0x1c9314['error'][_0x3b0763(0x1b2)]!==_0x4c5264['OK']?void 0x0:_0x1c9314;}catch{return;}}async[_0x524650(0x1b1)](_0x3d4743){const _0x5b4e69=_0x524650;let {type:_0x4faba4}=_0x3d4743;try{let _0x4eeb3b=R(this[_0x5b4e69(0x14f)](),''+_0x4faba4),_0xd1a6e2={'body':_0x3d4743},_0x1a20ad=(await this[_0x5b4e69(0x18a)][_0x5b4e69(0x196)](_0x4eeb3b,_0xd1a6e2))[_0x5b4e69(0x192)];return _0x1a20ad['error']&&_0x1a20ad[_0x5b4e69(0x1e9)][_0x5b4e69(0x1b2)]!==_0x4c5264['OK']?void 0x0:_0x1a20ad;}catch{return;}}async[_0x524650(0x206)](_0x1673a4){return new Promise((_0x155062,_0x5d80f8)=>{const _0x2da1e0=_0x3d1e;try{let _0x277878=0x0,_0x431e21=z(this['_getTaskURL'](),''+_0x1673a4),_0x158c0d=this[_0x2da1e0(0x1ba)](),_0x4f9e0d=async()=>{const _0x36aa58=_0x2da1e0;if(this['_taskInterrupted'][_0x36aa58(0x1e2)](_0x1673a4))return;let _0x197828=(await this[_0x36aa58(0x18a)][_0x36aa58(0x1d4)](_0x431e21))[_0x36aa58(0x192)];if(_0x197828[_0x36aa58(0x1e9)]&&_0x197828[_0x36aa58(0x1e9)]['code']===_0x4c5264['OK']){if(_0x197828[_0x36aa58(0x1fc)]===_0x36aa58(0x16e))_0x155062(_0x197828);else{if(_0x197828[_0x36aa58(0x1fc)]===_0x36aa58(0x15b)){let _0x1a11f4=0x3e8;if(_0x277878>=_0x158c0d){_0x5d80f8(_0x197828);return;}_0x277878>=0x7530&&(_0x1a11f4=0x1388),_0x277878+=_0x1a11f4,setTimeout(_0x4f9e0d,_0x1a11f4);}else _0x5d80f8(_0x197828);}}else _0x5d80f8(_0x197828);};_0x4f9e0d();}catch(_0x8969d4){_0x5d80f8(_0x8969d4 instanceof Error?_0x8969d4:Error(String(_0x8969d4)));}});}async[_0x524650(0x1ec)](_0x3aeca7){const _0x5463c1=_0x524650;try{let _0x50dcc0=B(this[_0x5463c1(0x164)](),''+_0x3aeca7);return(await this[_0x5463c1(0x18a)][_0x5463c1(0x1d4)](_0x50dcc0))[_0x5463c1(0x192)];}catch{return;}}async[_0x524650(0x17f)](_0x1bc816){const _0x28fc4e=_0x524650;try{return(await this['_httpService'][_0x28fc4e(0x1d4)](_0x1bc816,{'responseType':_0x28fc4e(0x1dc)}))['body'];}catch{return;}}[_0x524650(0x1e6)](_0x4ebe2f,_0x3c78c5){const _0x15b6cb=_0x524650;let _0x5aee0e=this[_0x15b6cb(0x1f5)](_0x3c78c5);return _0x5aee0e?_0x4ebe2f+':\x20'+_0x5aee0e:_0x4ebe2f;}['_buildHttpErrorMessage'](_0x566c9d,_0x5a634a){const _0x429f6f=_0x524650;if(_0x5a634a instanceof _0x5e60a6){let _0x599a97=typeof _0x5a634a[_0x429f6f(0x1fc)]==_0x429f6f(0x20a)?''+_0x5a634a[_0x429f6f(0x1fc)]+(_0x5a634a[_0x429f6f(0x13e)]?'\x20'+_0x5a634a['statusText']:''):void 0x0,_0x485ef1=this[_0x429f6f(0x1f5)](_0x5a634a['error']);return _0x599a97&&_0x485ef1?_0x566c9d+_0x429f6f(0x166)+_0x599a97+_0x429f6f(0x198)+_0x485ef1:_0x599a97?_0x566c9d+_0x429f6f(0x166)+_0x599a97:_0x485ef1?_0x566c9d+':\x20'+_0x485ef1:_0x566c9d;}let _0x9e3bdb=this[_0x429f6f(0x1f5)](_0x5a634a);return _0x9e3bdb?_0x566c9d+':\x20'+_0x9e3bdb:_0x566c9d;}[_0x524650(0x1f5)](_0xe626ca){const _0x35ed00=_0x524650;if(typeof _0xe626ca==_0x35ed00(0x149)){let _0x4c5aec=_0xe626ca[_0x35ed00(0x195)]();return _0x4c5aec['length']>0x0?_0x4c5aec:void 0x0;}if(_0xe626ca instanceof Error)return this[_0x35ed00(0x1f5)](_0xe626ca[_0x35ed00(0x18e)]);if(!_0xe626ca||typeof _0xe626ca!=_0x35ed00(0x1fa)||Array[_0x35ed00(0x1b4)](_0xe626ca))return;let _0x1fbcab=_0xe626ca,_0x6db038=this[_0x35ed00(0x1f5)](_0x1fbcab[_0x35ed00(0x18e)]);if(_0x6db038)return _0x6db038;if(_0x1fbcab[_0x35ed00(0x1e9)]&&typeof _0x1fbcab[_0x35ed00(0x1e9)]=='object'&&!Array['isArray'](_0x1fbcab[_0x35ed00(0x1e9)])){let _0x1bd1e2=this[_0x35ed00(0x1f5)](_0x1fbcab[_0x35ed00(0x1e9)]);if(_0x1bd1e2)return _0x1bd1e2;}}[_0x524650(0x16d)](){const _0x5566f1=_0x524650;let _0x4bdb95=this[_0x5566f1(0x1d1)][_0x5566f1(0x18d)](b);return(_0x4bdb95==null?void 0x0:_0x4bdb95[_0x5566f1(0x15a)])??_0x5566f1(0x146);}[_0x524650(0x14b)](){const _0x590e40=_0x524650;let _0x485840=this[_0x590e40(0x1d1)][_0x590e40(0x18d)](b);return(_0x485840==null?void 0x0:_0x485840['importServerUrl'])??_0x590e40(0x155);}[_0x524650(0x14f)](){const _0x2da4b8=_0x524650;let _0x49ed5e=this[_0x2da4b8(0x1d1)][_0x2da4b8(0x18d)](b);return(_0x49ed5e==null?void 0x0:_0x49ed5e['exportServerUrl'])??_0x2da4b8(0x19d);}[_0x524650(0x174)](){const _0x1c6a40=_0x524650;let _0x57bdba=this[_0x1c6a40(0x1d1)]['getConfig'](b);return(_0x57bdba==null?void 0x0:_0x57bdba['getTaskServerUrl'])??_0x1c6a40(0x1bc);}[_0x524650(0x164)](){const _0xd4cb51=_0x524650;let _0x3b9871=this[_0xd4cb51(0x1d1)][_0xd4cb51(0x18d)](b);return(_0x3b9871==null?void 0x0:_0x3b9871[_0xd4cb51(0x159)])??_0xd4cb51(0x12f);}[_0x524650(0x1ba)](){const _0x363694=_0x524650;let _0x3fde76=this['_configService'][_0x363694(0x18d)](b);return(_0x3fde76==null?void 0x0:_0x3fde76[_0x363694(0x173)])??0x1d4c0;}};X=K([G(0x0,_0x54f9cd),G(0x1,_0x58ff1a(_0x4b3b22))],X);const Z=_0x2bb6c2(_0x524650(0x132));let Q=class extends _0x5e593b{constructor(_0x2cb779,_0x558896,_0x35a43d){const _0xa7ea19=_0x524650;super(),this[_0xa7ea19(0x1d1)]=_0x2cb779,this[_0xa7ea19(0x18a)]=_0x558896,this[_0xa7ea19(0x1bb)]=_0x35a43d,W(this,_0xa7ea19(0x202),null),W(this,_0xa7ea19(0x1da),new _0x503d55()),W(this,_0xa7ea19(0x19b),this[_0xa7ea19(0x1da)][_0xa7ea19(0x1a1)]());}[_0x524650(0x142)](){const _0x110dd3=_0x524650;super['dispose'](),this[_0x110dd3(0x1da)][_0x110dd3(0x205)]();}['downloadFile'](_0x843598,_0x561ce5,_0x39ce84){const _0x29e6f4=_0x524650;let _0x36b716=URL[_0x29e6f4(0x133)](_0x843598);N(_0x36b716,_0x561ce5,_0x39ce84),URL[_0x29e6f4(0x153)](_0x36b716);}async['getFileById'](_0x5ae420,_0x1269dc){const _0x335dc5=_0x524650;if(_0x1269dc!=null&&_0x1269dc['aborted'])return;let _0x5222ff=await this[_0x335dc5(0x163)](_0x5ae420);if(!(!_0x5222ff||_0x1269dc!=null&&_0x1269dc['aborted']))return F(_0x5222ff,this[_0x335dc5(0x18a)],_0x1269dc);}async[_0x524650(0x1cd)](_0x29b6d3,_0x2d68c3,_0xe76209){const _0x43c9b8=_0x524650;var _0x5df2b7,_0x384049;let _0x5ddb67=await this[_0x43c9b8(0x130)](_0x29b6d3);if(!_0x5ddb67)return;let _0x39d79c=await this['_import'](_0x5ddb67,0x1,_0x2d68c3,_0xe76209);if(!_0x39d79c)return;this['_importTaskId']=_0x39d79c,this[_0x43c9b8(0x1bb)][_0x43c9b8(0x1b6)]();let _0x12c7fc=await this[_0x43c9b8(0x1bb)][_0x43c9b8(0x206)](_0x39d79c)[_0x43c9b8(0x169)](_0x138da3=>{const _0x3912bf=_0x43c9b8;var _0x5af144;let _0x51cf45=_0x138da3 instanceof Error?_0x138da3[_0x3912bf(0x18e)]:(_0x5af144=_0x138da3[_0x3912bf(0x1e9)])==null?void 0x0:_0x5af144[_0x3912bf(0x18e)];this[_0x3912bf(0x1da)][_0x3912bf(0x162)]({'error':{'code':_0x4c5264[_0x3912bf(0x200)],'message':_0x51cf45||''},'state':0x3});});if(!_0x12c7fc)return;let _0x1697ec=(_0x5df2b7=_0x12c7fc['import'])==null?void 0x0:_0x5df2b7[_0x43c9b8(0x129)],_0xc4ffd4=((_0x384049=_0x12c7fc[_0x43c9b8(0x1a2)])==null?void 0x0:_0x384049[_0x43c9b8(0x1b8)])||'';if(_0x1697ec!==0x1)this['_requestState$']['next']({'error':{'code':_0x4c5264[_0x43c9b8(0x200)],'message':_0x43c9b8(0x1a0)},'state':0x3});else{if(_0xc4ffd4[_0x43c9b8(0x1e0)]===0x0)this[_0x43c9b8(0x1da)]['next']({'error':{'code':_0x4c5264[_0x43c9b8(0x200)],'message':_0x43c9b8(0x128)},'state':0x3});else return this['_requestState$'][_0x43c9b8(0x162)]({'error':_0x12c7fc['error'],'state':0x3}),_0xc4ffd4;}}async[_0x524650(0x1ad)](_0x1dd49d,_0x448a46,_0x3592a0){return this['_importToJson'](_0x1dd49d,_0x448a46,_0x3592a0);}async[_0x524650(0x1a8)](_0x5c469f,_0x52bae1,_0x3ab8dd,_0x425da9){const _0x2a0e0c=_0x524650;return this[_0x2a0e0c(0x1e3)](_0x5c469f,0x1,_0x52bae1,_0x3ab8dd,_0x425da9);}async[_0x524650(0x1fe)](_0x334a08,_0xa02550,_0x55d0ba,_0x4c0a16){const _0x4581bd=_0x524650;return this[_0x4581bd(0x145)](_0x334a08,_0xa02550,_0x55d0ba,_0x4c0a16);}['interruptImportTask'](){const _0x5943eb=_0x524650;this[_0x5943eb(0x202)]&&this[_0x5943eb(0x1bb)][_0x5943eb(0x176)](this[_0x5943eb(0x202)]);}async[_0x524650(0x181)](_0x21aba7,_0x32761e,_0x3f4739){const _0x5067ed=_0x524650;var _0x121f2d,_0x34bfda;let _0x5e9554=await this[_0x5067ed(0x130)](_0x21aba7);if(!_0x5e9554)return;let _0x264202=await this['_import'](_0x5e9554,0x2,_0x32761e,_0x3f4739);if(!_0x264202)return;this[_0x5067ed(0x202)]=_0x264202,this[_0x5067ed(0x1bb)]['clearTaskInterrupted']();let _0x10e4f8=await this[_0x5067ed(0x1bb)]['getTask'](_0x264202)[_0x5067ed(0x169)](_0x229a31=>{const _0x53a798=_0x5067ed;var _0x17107b;let _0x184e6b=_0x229a31 instanceof Error?_0x229a31['message']:(_0x17107b=_0x229a31[_0x53a798(0x1e9)])==null?void 0x0:_0x17107b[_0x53a798(0x18e)];this[_0x53a798(0x1da)][_0x53a798(0x162)]({'error':{'code':_0x4c5264[_0x53a798(0x200)],'message':_0x184e6b||''},'state':0x3});});if(!_0x10e4f8)return;let _0x744da5=(_0x121f2d=_0x10e4f8[_0x5067ed(0x1a2)])==null?void 0x0:_0x121f2d[_0x5067ed(0x129)],_0x3c1e80=((_0x34bfda=_0x10e4f8[_0x5067ed(0x1a2)])==null?void 0x0:_0x34bfda[_0x5067ed(0x1ef)])||'';if(_0x744da5!==0x2){this[_0x5067ed(0x1da)][_0x5067ed(0x162)]({'error':{'code':_0x4c5264[_0x5067ed(0x200)],'message':'Get\x20outputType\x20error'},'state':0x3});return;}if(_0x3c1e80[_0x5067ed(0x1e0)]===0x0){this[_0x5067ed(0x1da)][_0x5067ed(0x162)]({'error':{'code':_0x4c5264[_0x5067ed(0x200)],'message':_0x5067ed(0x160)},'state':0x3});return;}this['_requestState$'][_0x5067ed(0x162)]({'error':_0x10e4f8[_0x5067ed(0x1e9)],'state':0x3});let _0x135752=await this[_0x5067ed(0x163)](_0x3c1e80);if(!_0x135752)return;let _0x4c13b7=await this[_0x5067ed(0x1bb)]['getTextFromUrl'](_0x135752);if(!_0x4c13b7)this[_0x5067ed(0x1da)]['next']({'error':{'code':_0x4c5264[_0x5067ed(0x200)],'message':_0x5067ed(0x1bf)},'state':0x5});else try{let _0xa3f2b7=JSON[_0x5067ed(0x178)](_0x4c13b7);return this['_requestState$'][_0x5067ed(0x162)]({'error':{'code':_0x4c5264['OK'],'message':_0x5067ed(0x1ac)},'state':0x5}),_0xa3f2b7;}catch{this[_0x5067ed(0x1da)][_0x5067ed(0x162)]({'error':{'code':_0x4c5264['UNRECOGNIZED'],'message':_0x5067ed(0x1c9)},'state':0x5});}}async['_exportBySnapshot'](_0x1a4824,_0x4f945e,_0x4d347a,_0x459cd2){const _0x535c4b=_0x524650;let _0x1a0482=JSON['stringify'](_0x1a4824),_0x3d306d=_0x504420[_0x535c4b(0x139)](_0x1a0482),_0x4a940c=_0x17b490(_0x3d306d),_0x3308b0=_0x3d306d[_0x535c4b(0x1e0)],_0x31609e=L(_0x4a940c),_0x50c630=await this[_0x535c4b(0x130)](_0x31609e,_0x3308b0,!0x0);if(_0x50c630)return this[_0x535c4b(0x1e3)](_0x50c630,0x2,_0x4f945e,_0x4d347a,_0x459cd2);}async['_export'](_0x5251cf,_0x3d592a,_0x30aebb,_0x366bb9,_0x3f504f){const _0x2fe3fc=_0x524650;var _0x153cf0;let _0xb3794b=await this[_0x2fe3fc(0x1bb)][_0x2fe3fc(0x1b1)]({..._0x3d592a===0x1?{'unitID':_0x5251cf}:{'jsonID':_0x5251cf},'type':_0x30aebb,'format':_0x366bb9,'options':_0x3f504f});if(!_0xb3794b){this[_0x2fe3fc(0x1da)][_0x2fe3fc(0x162)]({'error':{'code':_0x4c5264['UNRECOGNIZED'],'message':_0x2fe3fc(0x1ea)},'state':0x2});return;}if(this[_0x2fe3fc(0x1da)][_0x2fe3fc(0x162)]({'error':_0xb3794b[_0x2fe3fc(0x1e9)],'state':0x2}),_0xb3794b[_0x2fe3fc(0x1e9)]&&_0xb3794b[_0x2fe3fc(0x1e9)][_0x2fe3fc(0x1b2)]!==_0x4c5264['OK'])return;let _0x2977b2=_0xb3794b[_0x2fe3fc(0x1bd)],_0x23f149=await this[_0x2fe3fc(0x1bb)][_0x2fe3fc(0x206)](_0x2977b2)[_0x2fe3fc(0x169)](_0x569f4c=>{const _0x36ba58=_0x2fe3fc;var _0x4c3844;let _0x2c6aa6=_0x569f4c instanceof Error?_0x569f4c[_0x36ba58(0x18e)]:(_0x4c3844=_0x569f4c[_0x36ba58(0x1e9)])==null?void 0x0:_0x4c3844['message'];this[_0x36ba58(0x1da)][_0x36ba58(0x162)]({'error':{'code':_0x4c5264[_0x36ba58(0x200)],'message':_0x2c6aa6||''},'state':0x3});});if(!_0x23f149)return;let _0x2ad761=((_0x153cf0=_0x23f149[_0x2fe3fc(0x1b1)])==null?void 0x0:_0x153cf0['fileID'])||'';if(_0x2ad761['length']===0x0){this['_requestState$'][_0x2fe3fc(0x162)]({'error':{'code':_0x4c5264[_0x2fe3fc(0x200)],'message':_0x2fe3fc(0x1cc)},'state':0x3});return;}this[_0x2fe3fc(0x1da)][_0x2fe3fc(0x162)]({'error':_0x23f149['error'],'state':0x3});let _0x247474=await this['_signUrl'](_0x2ad761);if(!_0x247474)return;let _0x439538=await P(_0x247474,this['_httpService']);if(!_0x439538)this[_0x2fe3fc(0x1da)][_0x2fe3fc(0x162)]({'error':{'code':_0x4c5264[_0x2fe3fc(0x200)],'message':_0x2fe3fc(0x140)},'state':0x6});else return this['_requestState$'][_0x2fe3fc(0x162)]({'error':{'code':_0x4c5264['OK'],'message':'success'},'state':0x6}),_0x439538;}async[_0x524650(0x130)](_0x47e728,_0x2d3b2a,_0x3eb20f){const _0x23efb7=_0x524650;let _0x2362a1;try{_0x2362a1=await this[_0x23efb7(0x1bb)]['upload'](_0x47e728,_0x2d3b2a,_0x3eb20f);}catch(_0x1d2b20){let _0x1bf0fa=_0x1d2b20 instanceof Error?_0x1d2b20[_0x23efb7(0x18e)]:String(_0x1d2b20);this['_requestState$'][_0x23efb7(0x162)]({'error':{'code':_0x4c5264[_0x23efb7(0x200)],'message':_0x1bf0fa},'state':0x0});return;}if(!_0x2362a1||typeof _0x2362a1[_0x23efb7(0x135)]!=_0x23efb7(0x149)){this['_requestState$']['next']({'error':{'code':_0x4c5264[_0x23efb7(0x200)],'message':_0x23efb7(0x12d)},'state':0x0});return;}let _0x3da58d=_0x2362a1[_0x23efb7(0x135)];if(_0x3da58d[_0x23efb7(0x1e0)]===0x0)this[_0x23efb7(0x1da)][_0x23efb7(0x162)]({'error':{'code':_0x4c5264[_0x23efb7(0x200)],'message':_0x23efb7(0x137)},'state':0x0});else return this['_requestState$']['next']({'error':{'code':_0x4c5264['OK'],'message':_0x23efb7(0x1ac)},'state':0x0}),_0x3da58d;}async[_0x524650(0x194)](_0x42e793,_0x1e247d,_0x2b0a3d,_0x5693bf){const _0x2ca3c3=_0x524650;let _0x12fed6={'fileID':_0x42e793,'type':_0x2b0a3d,'outputType':_0x1e247d,'options':_0x5693bf},_0x5cc22a=await this[_0x2ca3c3(0x1bb)]['import'](_0x12fed6);if(!_0x5cc22a){this[_0x2ca3c3(0x1da)][_0x2ca3c3(0x162)]({'error':{'code':_0x4c5264[_0x2ca3c3(0x200)],'message':_0x2ca3c3(0x1f9)},'state':0x1});return;}if(_0x5cc22a[_0x2ca3c3(0x1e9)]&&_0x5cc22a['error']['code']!==_0x4c5264['OK']){this[_0x2ca3c3(0x1da)][_0x2ca3c3(0x162)]({'error':_0x5cc22a[_0x2ca3c3(0x1e9)],'state':0x1});return;}let _0x4b21ad=_0x5cc22a[_0x2ca3c3(0x1bd)];if(_0x4b21ad['length']===0x0)this[_0x2ca3c3(0x1da)][_0x2ca3c3(0x162)]({'error':{'code':_0x4c5264['UNRECOGNIZED'],'message':_0x2ca3c3(0x148)},'state':0x1});else return this['_requestState$']['next']({'error':_0x5cc22a[_0x2ca3c3(0x1e9)],'state':0x1}),_0x4b21ad;}async['_signUrl'](_0x83fc48){const _0x4909fa=_0x524650;let _0x57e60e=await this['_requestService'][_0x4909fa(0x1ec)](_0x83fc48);if(!_0x57e60e){this[_0x4909fa(0x1da)][_0x4909fa(0x162)]({'error':{'code':_0x4c5264['UNRECOGNIZED'],'message':'sign\x20url\x20error'},'state':0x4});return;}if(_0x57e60e[_0x4909fa(0x1e9)]&&_0x57e60e[_0x4909fa(0x1e9)][_0x4909fa(0x1b2)]!==_0x4c5264['OK']){this[_0x4909fa(0x1da)][_0x4909fa(0x162)]({'error':_0x57e60e[_0x4909fa(0x1e9)],'state':0x4});return;}let _0xcb3a03=_0x419213(_0x57e60e[_0x4909fa(0x167)],this[_0x4909fa(0x131)]());if(_0xcb3a03['length']===0x0)this[_0x4909fa(0x1da)][_0x4909fa(0x162)]({'error':{'code':_0x4c5264[_0x4909fa(0x200)],'message':'sign\x20url\x20error'},'state':0x4});else return this[_0x4909fa(0x1da)][_0x4909fa(0x162)]({'error':_0x57e60e['error'],'state':0x4}),_0xcb3a03;}[_0x524650(0x131)](){const _0x41e5c1=_0x524650;let _0x5d5f81=this[_0x41e5c1(0x1d1)][_0x41e5c1(0x18d)](b);return(_0x5d5f81==null?void 0x0:_0x5d5f81[_0x41e5c1(0x14d)])??location[_0x41e5c1(0x15d)];}};function _0x2322(){const _0x296fb4=['content-disposition','blob','Failed\x20to\x20parse\x20json','_config','updateSnapshot','Failed\x20to\x20get\x20fileID\x20from\x20task','importFileToUnitId','file','default','application/pdf','_configService','fetchMissingChangesets','TRADITIONAL','get','file.json','_buildHttpErrorMessage','FAIL','onStarting','pop','_requestState$','VALUES','text','forEach','UNIVER_SLIDE','527749yBDDwJ','length','2463188rUSQhD','has','_export','UNIVER_SHEET','SHEETS','_buildProtocolErrorMessage','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','stream','error','export\x20error','auto','signUrl','decorate','replace','jsonID','{type}','data','File\x20request\x20aborted.','unsubscribe','upload\x20request\x20failed','_extractErrorDetail','getDeserializedSheetBlock','fail','modern','import\x20error','object','toPrimitive','status','resolve','exportFileBySnapshot','text/csv','UNRECOGNIZED','file.','_importTaskId','abort','removeEventListener','complete','getTask','PDF','set','ppt','number','docx','copyFileMeta','?size=','_injector','getOwnPropertyDescriptor','symbol','Failed\x20to\x20get\x20unitID\x20from\x20task','outputType','exchange-client.config','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','CONVERT_THEN_VALUES','upload\x20failed:\x20missing\x20FileId\x20in\x20response','1.2.0','/universer-api/file/{fileID}/sign-url','_upload','_getDownloadEndpointURL','univer-pro.exchange-client.exchange.service','createObjectURL','getLatestCsReqIdBySid','FileId','MODERN','upload\x20failed:\x20FileId\x20is\x20empty','UNIVER_BOARD','encode','defineProperty','application/vnd.ms-powerpoint','HYBRID','workbook','statusText','function','Failed\x20to\x20get\x20file\x20from\x20url','AbortError','dispose','decode','getResourcesRequest','_exportBySnapshot','/universer-api/stream/file/upload','tsv','Failed\x20to\x20get\x20taskID\x20from\x20import\x20response','string','addEventListener','_getImportURL','tables','downloadEndpointUrl','headers','_getExportURL','JSON','ranges','clear','revokeObjectURL','application/msword','/universer-api/exchange/{type}/import','values','aborted','21GLVxUb','signUrlServerUrl','uploadFileServerUrl','pending','appendChild','origin','4593432kbzADE','constructor','Failed\x20to\x20get\x20jsonID\x20from\x20task','call','next','_signUrl','_getSignURL','UNIVER_EXCHANGE_CLIENT_PLUGIN',':\x20HTTP\x20','url','TSV','catch','AUTO','setConfig','prototype','_getUploadFileURL','done','type','sheets','{fileID}','330774iXaRBG','maxTimeoutTime','_getTaskURL','2275644ZavCzw','setTaskInterrupted','{taskID}','parse','UNIVER_BASE','TEXT','28691880giEjfH','_taskInterrupted','UNIVER_PDF','display','getTextFromUrl','csv','_importToJson','pdf','filter','pluginName','_sheetBlockCache','5369260NyOIkl','removeChild','pptx','buffer','_httpService','originalMeta','block\x20is\x20required','getConfig','message','UNDEFINED','saveSnapshot','pathname','body','Content-Type','_import','trim','post','getUnitOnRev','\x20-\x20','UNIVER_UNKNOWN','application/vnd.openxmlformats-officedocument.wordprocessingml.document','requestState$','Error\x20getting\x20file\x20name\x20from\x20URL:','/universer-api/exchange/{type}/export','XLSX','fromEntries','Get\x20outputType\x20error','asObservable','import','File\x20request\x20completed\x20without\x20a\x20response.','RANGES','split','xlsx','map','exportFileByUnitId','saveChangeset','join','upload\x20request\x20failed:\x20failed\x20to\x20read\x20source\x20file\x20from\x20url','success','importFileToJson','traditional','subscribe','entries','export','code','version','isArray','Error\x20fetching\x20file\x20from\x20URL:','clearTaskInterrupted','TABLES','unitID','application/octet-stream','_getMaxPollingTime','_requestService','/universer-api/exchange/task/{taskID}','taskID','hybrid','Failed\x20to\x20get\x20text\x20from\x20url','UNIVER_DOC','xls','&flate=','&source=','saveSheetBlock','click','match'];_0x2322=function(){return _0x296fb4;};return _0x2322();}Q=K([G(0x0,_0x54f9cd),G(0x1,_0x58ff1a(_0x4b3b22)),G(0x2,_0x58ff1a(Y))],Q);let $=class extends _0x551cab{constructor(_0x48fe1e=x,_0x5a34aa,_0x5ef525){const _0x190276=_0x524650;super(),this[_0x190276(0x1ca)]=_0x48fe1e,this[_0x190276(0x125)]=_0x5a34aa,this[_0x190276(0x1d1)]=_0x5ef525;let {..._0x33ac0d}=_0x3c783e({},x,this['_config']);this[_0x190276(0x1d1)][_0x190276(0x16b)](b,_0x33ac0d);}[_0x524650(0x1d8)](){const _0x289069=_0x524650;_0x5b5d4b(this[_0x289069(0x125)],[[Z,{'useClass':Q}],[Y,{'useClass':X}]]);}};W($,_0x524650(0x184),_0x524650(0x165)),W($,'packageName',ie),W($,_0x524650(0x1b3),y),$=K([_0x188883(_0x4b875e,_0x24fb05),G(0x1,_0x58ff1a(_0x29f00d)),G(0x2,_0x54f9cd)],$);function ue(_0x874e06){const _0x4dca6d=_0x524650;let _0x4109b3=_0x874e06[_0x4dca6d(0x13d)];if(!_0x4109b3)return null;let _0x1107a8={};_0x4109b3[_0x4dca6d(0x170)]&&Object['keys'](_0x4109b3['sheets'])[_0x4dca6d(0x1dd)](_0x171e3e=>{const _0x48d2ab=_0x4dca6d;let _0xc424fa=_0x4109b3[_0x48d2ab(0x170)][_0x171e3e];_0x1107a8[_0x171e3e]={..._0xc424fa,'originalMeta':_0x4d2ca6(_0x2c0e79['decode'](_0xc424fa['originalMeta']))};});let _0x250d1f=_0x4d2ca6(_0x2c0e79[_0x4dca6d(0x143)](_0x4109b3[_0x4dca6d(0x18b)]));return{..._0x874e06,'workbook':{..._0x4109b3,'originalMeta':_0x250d1f,'sheets':_0x1107a8},'doc':{},'slide':void 0x0,'board':void 0x0,'pdf':void 0x0};}function de(_0x476b56){const _0x407b00=_0x524650;let _0x361acc={};return _0x476b56[_0x407b00(0x1dd)](_0x3f6c5f=>{const _0x4fbebd=_0x407b00;_0x361acc[_0x3f6c5f['id']]={..._0x3f6c5f,'data':_0x4d2ca6(_0x2c0e79[_0x4fbebd(0x143)](_0x3f6c5f[_0x4fbebd(0x1f1)]))};}),_0x361acc;}var fe=class{constructor(){const _0x53c3b3=_0x524650;W(this,_0x53c3b3(0x185),new Map());}[_0x524650(0x197)](){const _0x4c2c56=_0x524650;return Promise[_0x4c2c56(0x1fd)]({'snapshot':{'unitID':'','type':_0x378b3c['UNIVER_SHEET'],'rev':0x0,'workbook':void 0x0,'doc':void 0x0,'slide':void 0x0,'board':void 0x0},'changesets':[],'error':{'code':_0x4c5264['OK'],'message':''}});}['getSheetBlock'](_0x50bf93,_0x52c550){const _0x215ec2=_0x524650;let _0x3f18f4=this[_0x215ec2(0x185)][_0x215ec2(0x1d4)](_0x52c550['blockID']);return Promise[_0x215ec2(0x1fd)]({'block':_0x3f18f4,'error':{'code':_0x4c5264['OK'],'message':''}});}[_0x524650(0x1f6)](_0x1094e6,_0x4b3e14){const _0x53b8e7=_0x524650;let _0x2d4324=this[_0x53b8e7(0x185)][_0x53b8e7(0x1d4)](_0x4b3e14['blockID']);return Promise['resolve']({'block':_0x2d4324===void 0x0?void 0x0:{..._0x2d4324,'data':JSON[_0x53b8e7(0x178)](_0x2c0e79[_0x53b8e7(0x143)](_0x2d4324[_0x53b8e7(0x1f1)]))},'error':{'code':_0x4c5264['OK'],'message':''}});}[_0x524650(0x1d2)](){const _0x9c8f03=_0x524650;return Promise[_0x9c8f03(0x1fd)]({'changesets':[],'error':{'code':_0x4c5264['OK'],'message':''}});}[_0x524650(0x144)](){return Promise['resolve']({'resources':{},'error':{'code':_0x4c5264['OK'],'message':''}});}[_0x524650(0x190)](){const _0x254496=_0x524650;return Promise[_0x254496(0x1fd)]({'error':{'code':_0x4c5264['OK'],'message':''}});}[_0x524650(0x1cb)](){const _0x153364=_0x524650;return Promise[_0x153364(0x1fd)]({'error':{'code':_0x4c5264['OK'],'message':''}});}[_0x524650(0x1c4)](_0x3a882e,_0x26cda4){const _0x4aa558=_0x524650;let {block:_0x4b0bb4}=_0x26cda4;return _0x4b0bb4?(this[_0x4aa558(0x185)][_0x4aa558(0x208)](_0x4b0bb4['id'],_0x4b0bb4),Promise[_0x4aa558(0x1fd)]({'error':{'code':_0x4c5264['OK'],'message':''},'blockID':_0x4b0bb4['id']})):Promise[_0x4aa558(0x1fd)]({'error':{'code':_0x4c5264['UNDEFINED'],'message':_0x4aa558(0x18c)},'blockID':''});}[_0x524650(0x1a9)](){const _0x294ff3=_0x524650;return Promise[_0x294ff3(0x1fd)]({'error':{'code':_0x4c5264['OK'],'message':''},'concurrent':[]});}[_0x524650(0x20c)](){const _0x73cbd=_0x524650;return Promise[_0x73cbd(0x1fd)]({'error':void 0x0,'fileMetaId':''});}[_0x524650(0x134)](){const _0x15d4cc=_0x524650;return Promise[_0x15d4cc(0x1fd)]({'error':void 0x0,'latestReqID':0x0});}};export{fe as ClientSnapshotServerService,le as ExchangeBaseExportMode,ce as ExchangeBaseFormulaPolicy,se as ExchangeBaseImportMode,J as ExchangeDocType,oe as ExchangeFormat,Z as IExchangeService,q as ImportOutputType,$ as UniverExchangeClientPlugin,de as transformSheetBlockMetaToString,ue as transformWorkbookSnapshotMetaToString};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x2e10fd=_0x7af3;function _0x7af3(_0x58d37a,_0x2c8ac5){_0x58d37a=_0x58d37a-0x153;var _0x3e9a78=_0x3e9a();var _0x7af3b4=_0x3e9a78[_0x58d37a];return _0x7af3b4;}(function(_0x143305,_0x300573){var _0x4e9da6=_0x7af3,_0x329d29=_0x143305();while(!![]){try{var _0x436d79=-parseInt(_0x4e9da6(0x159))/0x1+-parseInt(_0x4e9da6(0x15c))/0x2*(-parseInt(_0x4e9da6(0x156))/0x3)+-parseInt(_0x4e9da6(0x158))/0x4*(parseInt(_0x4e9da6(0x157))/0x5)+parseInt(_0x4e9da6(0x153))/0x6+parseInt(_0x4e9da6(0x15d))/0x7+-parseInt(_0x4e9da6(0x154))/0x8*(parseInt(_0x4e9da6(0x15f))/0x9)+parseInt(_0x4e9da6(0x155))/0xa;if(_0x436d79===_0x300573)break;else _0x329d29['push'](_0x329d29['shift']());}catch(_0x262b3f){_0x329d29['push'](_0x329d29['shift']());}}}(_0x3e9a,0x34f92));import{IExchangeService as _0x23a626}from'@univerjs-pro/exchange-client';import{FUniver as _0x141105}from'@univerjs/core/facade';function _0x3e9a(){var _0x4f09d2=['22719GOCUpW','10SkzIjx','679804kuFPhe','206014zavGWE','get','downloadFile','62SkCneF','2118228DeFlIg','extend','18czJNir','116754yonSpK','120800xNtlon','2362680usxgBO'];_0x3e9a=function(){return _0x4f09d2;};return _0x3e9a();}var n=class extends _0x141105{[_0x2e10fd(0x15b)](_0x351b9e,_0x3bba67,_0x3a7e8b){var _0x487092=_0x2e10fd;this['_injector'][_0x487092(0x15a)](_0x23a626)[_0x487092(0x15b)](_0x351b9e,_0x3bba67,_0x3a7e8b);}};_0x141105[_0x2e10fd(0x15e)](n);export{};
1
+ var _0x53cb70=_0x55da;(function(_0x1a997a,_0x454b61){var _0x5bc8bc=_0x55da,_0x3d7e9b=_0x1a997a();while(!![]){try{var _0x1e7481=parseInt(_0x5bc8bc(0x140))/0x1+parseInt(_0x5bc8bc(0x141))/0x2*(parseInt(_0x5bc8bc(0x13e))/0x3)+-parseInt(_0x5bc8bc(0x13b))/0x4*(-parseInt(_0x5bc8bc(0x136))/0x5)+-parseInt(_0x5bc8bc(0x142))/0x6+parseInt(_0x5bc8bc(0x13a))/0x7+parseInt(_0x5bc8bc(0x137))/0x8+-parseInt(_0x5bc8bc(0x13d))/0x9;if(_0x1e7481===_0x454b61)break;else _0x3d7e9b['push'](_0x3d7e9b['shift']());}catch(_0x5b1368){_0x3d7e9b['push'](_0x3d7e9b['shift']());}}}(_0x13d1,0x8340a));import{IExchangeService as _0x27bed5}from'@univerjs-pro/exchange-client';import{FUniver as _0x1dc6e3}from'@univerjs/core/facade';var n=class extends _0x1dc6e3{['downloadFile'](_0x34c4ea,_0x4195b9,_0x1bba1a){var _0x1d86b=_0x55da;this[_0x1d86b(0x13f)][_0x1d86b(0x138)](_0x27bed5)[_0x1d86b(0x13c)](_0x34c4ea,_0x4195b9,_0x1bba1a);}};function _0x55da(_0x4b3765,_0x51025d){_0x4b3765=_0x4b3765-0x136;var _0x13d158=_0x13d1();var _0x55da4c=_0x13d158[_0x4b3765];return _0x55da4c;}_0x1dc6e3[_0x53cb70(0x139)](n);export{};function _0x13d1(){var _0x42eb83=['11928240TNbZPC','3pPIEuz','_injector','763030GFqZUG','618356BkyAYi','1517814atoeMs','14185kBEWlQ','7232360EqlSyK','get','extend','878507wmSrQF','20iXagsp','downloadFile'];_0x13d1=function(){return _0x42eb83;};return _0x13d1();}
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1aa3a9=_0x1569;(function(_0x14f5ef,_0x32bb37){const _0x571b73=_0x1569,_0x29cce3=_0x14f5ef();while(!![]){try{const _0x1bd9b7=-parseInt(_0x571b73(0x20d))/0x1+-parseInt(_0x571b73(0x24e))/0x2*(-parseInt(_0x571b73(0x27e))/0x3)+parseInt(_0x571b73(0x210))/0x4+-parseInt(_0x571b73(0x1df))/0x5*(-parseInt(_0x571b73(0x26e))/0x6)+-parseInt(_0x571b73(0x276))/0x7*(parseInt(_0x571b73(0x247))/0x8)+-parseInt(_0x571b73(0x1ac))/0x9+parseInt(_0x571b73(0x227))/0xa;if(_0x1bd9b7===_0x32bb37)break;else _0x29cce3['push'](_0x29cce3['shift']());}catch(_0x5429ce){_0x29cce3['push'](_0x29cce3['shift']());}}}(_0x37ff,0xd407d));import{UniverLicensePlugin as _0x46ca3a}from'@univerjs-pro/license';import{DependentOn as _0x55d581,Disposable as _0x5b511d,IConfigService as _0x1e7c97,ILogService as _0x2dce26,IUniverInstanceService as _0x2c3e5f,Inject as _0x5efb18,Injector as _0x4d975b,LocaleService as _0x1f3633,Plugin as _0xf1f2c,UniverInstanceType as _0x57dd9d,createIdentifier as _0x59b531,merge as _0x129427,registerDependencies as _0x21238f,resolveWithBasePath as _0x366571,toDisposable as _0x422c2c,touchDependencies as _0x387f54}from'@univerjs/core';import{HTTPEventType as _0x1e0c06,HTTPResponseError as _0x27df39,HTTPService as _0x327d2c,UniverNetworkPlugin as _0x1a8c40}from'@univerjs/network';import{BuiltInUIPart as _0x5b3c0a,ComponentManager as _0x3a2f9d,IMessageService as _0x317300,IUIPartsService as _0x18a697,IconManager as _0xd3551f,UniverMobileUIPlugin as _0x37c58d,connectInjector as _0x524f9d,useDependency as _0x335eaa,useObservable as _0x3a78f8}from'@univerjs/ui';import{ClockIcon as _0x3c6377,CloseIcon as _0x5a44b1,DirectExportIcon as _0xb0af65,DocsMultiIcon as _0x46f096,ErrorIcon as _0x44560a,ExportIcon as _0xdfd1fa,FolderIcon as _0xa8c4ca,LoadingMultiIcon as _0x1039d8,ShareRangeIcon as _0x11c736,SheetsMultiIcon as _0x1af0d4,SlidesMultiIcon as _0x4276ce,SuccessIcon as _0x1acff4}from'@univerjs/icons';import{Button as _0xce31ad,MessageType as _0xda4cad,MobileActionRowGroup as _0x39d4b4,MobileSelect as _0x563ac4,Radio as _0x3ceb90,Select as _0x392979,Tooltip as _0x117459,clsx as _0x426f5e,scrollbarClassName as _0x5e8de6}from'@univerjs/design';import{useRef as _0x484a32,useState as _0x4c3865}from'react';import{ErrorCode as _0x46b732,FileSource as _0x17fdb7}from'@univerjs/protocol';import{jsx as _0x46ee55,jsxs as _0x5c8fb9}from'react/jsx-runtime';import{BehaviorSubject as _0x4aacaf,Subject as _0x41e348}from'rxjs';import{ISnapshotServerService as _0x6f2389,SnapshotService as _0x586b01,b64EncodeUnicode as _0x45847b,textDecoder as _0x29d867,textEncoder as _0x21193d}from'@univerjs-pro/collaboration';import{deflateSync as _0xbb3fa}from'fflate';var D=_0x1aa3a9(0x1ae),O='1.1.0';const k=_0x1aa3a9(0x1a6),A={},Re=_0x1aa3a9(0x134),ze=_0x1aa3a9(0x119),j='application/vnd.ms-excel',M=_0x1aa3a9(0x16c),N=_0x1aa3a9(0x1d0),P=_0x1aa3a9(0x178),Be=_0x1aa3a9(0x1cb),Ve='application/vnd.openxmlformats-officedocument.presentationml.presentation',He=_0x1aa3a9(0x1be),Ue={[_0x57dd9d[_0x1aa3a9(0x280)]]:[''],[_0x57dd9d[_0x1aa3a9(0x278)]]:[ze,Re],[_0x57dd9d[_0x1aa3a9(0x1ab)]]:[j,M,N,P],[_0x57dd9d[_0x1aa3a9(0x279)]]:[Be,Ve],[_0x57dd9d[_0x1aa3a9(0x270)]]:[He],[_0x57dd9d[_0x1aa3a9(0x1ef)]]:[j,M,N,P],[_0x57dd9d[_0x1aa3a9(0x1b9)]]:[''],[_0x57dd9d['UNIVER_PROJECT']]:[''],[_0x57dd9d['UNRECOGNIZED']]:['']},We={[ze]:'doc',[Re]:'docx',[j]:_0x1aa3a9(0x16e),[M]:_0x1aa3a9(0x25d),[N]:'csv',[P]:_0x1aa3a9(0x1f4),[Be]:_0x1aa3a9(0x1b4),[Ve]:_0x1aa3a9(0x18e),[He]:_0x1aa3a9(0x1a4)},Ge=Object['fromEntries'](Object['entries'](Ue)['map'](([_0x57bbbb,_0x1edc31])=>[_0x57bbbb,_0x1edc31[_0x1aa3a9(0x283)](_0x3adae2=>We[_0x3adae2])[_0x1aa3a9(0x207)](Boolean)]));function Ke(_0x39c15f,_0xc5955,_0x9c7091){const _0x1156c6=_0x1aa3a9;let _0x563993=document['createElement']('a');_0x563993[_0x1156c6(0x167)]=_0x39c15f,_0x563993[_0x1156c6(0x1c1)]['display']=_0x1156c6(0x254),_0x563993[_0x1156c6(0x268)]=_0xc5955+'.'+_0x9c7091,document[_0x1156c6(0x202)][_0x1156c6(0x133)](_0x563993),_0x563993[_0x1156c6(0x159)](),document[_0x1156c6(0x202)][_0x1156c6(0x1d7)](_0x563993);}function qe(_0x4e4b57,_0x59fc31){const _0x4d42de=_0x1aa3a9;var _0xfbd770;let _0xdd2620=(_0xfbd770=_0x4e4b57['name'][_0x4d42de(0x170)]('.')[_0x4d42de(0x15d)]())==null?void 0x0:_0xfbd770[_0x4d42de(0x14d)]();return!!(_0xdd2620&&(Ge[_0x59fc31]??[])['includes'](_0xdd2620));}function F(_0x16a574,_0x479c83=!0x1){const _0xbe050=_0x1aa3a9;let _0x3f14dd=_0x16a574['flatMap'](_0x51925c=>Ge[_0x51925c]??[])['map'](_0x1660fd=>'.'+_0x1660fd)[_0xbe050(0x187)](',');return new Promise(_0x16490a=>{const _0x3ae5f9=_0xbe050;let _0x459465=document[_0x3ae5f9(0x149)](_0x3ae5f9(0x21e));_0x459465[_0x3ae5f9(0x1d1)]=_0x3ae5f9(0x1fc),_0x459465[_0x3ae5f9(0x199)]=_0x3f14dd,_0x459465['multiple']=_0x479c83;let _0x319b34=()=>{const _0x22b77b=_0x3ae5f9;var _0x853a19;return _0x16490a((_0x853a19=_0x459465[_0x22b77b(0x188)])!=null&&_0x853a19[_0x22b77b(0x14f)]?_0x459465[_0x22b77b(0x188)]:null);};_0x459465[_0x3ae5f9(0x230)](_0x3ae5f9(0x1f0),_0x319b34,{'once':!0x0}),_0x459465[_0x3ae5f9(0x230)]('cancel',_0x319b34,{'once':!0x0}),_0x459465[_0x3ae5f9(0x159)]();});}async function Je(_0x16e243,_0x4b1faa){const _0x460cab=_0x1aa3a9;try{return await Ye(_0x16e243,_0x4b1faa);}catch(_0x19f45c){console['error'](_0x460cab(0x181),_0x19f45c);return;}}async function Ye(_0x3c9ccc,_0x3162a0,_0x3bf3ff){const _0x453d33=_0x1aa3a9;var _0x49c9d6,_0x25bbfe;let _0x25175c=_0x3bf3ff?await Xe(_0x3c9ccc,_0x3162a0,_0x3bf3ff):await _0x3162a0['get'](_0x3c9ccc,{'responseType':_0x453d33(0x11e)}),_0x289ec9=_0x25175c[_0x453d33(0x202)],_0x1517f7=((_0x49c9d6=_0x25175c[_0x453d33(0x1ec)][_0x453d33(0x215)](_0x453d33(0x13a)))==null?void 0x0:_0x49c9d6['join'](',\x20'))??_0x453d33(0x224),_0x531331='file.'+(We[_0x1517f7]||_0x453d33(0x25d)),_0xca1d9b=(_0x25bbfe=_0x25175c[_0x453d33(0x1ec)][_0x453d33(0x215)]('content-disposition'))==null?void 0x0:_0x25bbfe['join'](',\x20');if(_0xca1d9b){let _0x3e5f96=_0xca1d9b[_0x453d33(0x19c)](/filename=(.+)/);_0x3e5f96&&_0x3e5f96[0x1]&&(_0x531331=_0x3e5f96[0x1]);}else _0x531331=Ze(_0x3c9ccc)||_0x531331;return new File([_0x289ec9],_0x531331,{'type':_0x1517f7});}function Xe(_0x109eab,_0x1c5d07,_0x40f195){return new Promise((_0x2c9962,_0x3ba063)=>{const _0x284054=_0x1569;let _0x232927=!0x1,_0xf5cba5,_0x23addf=()=>_0x40f195['removeEventListener'](_0x284054(0x1f5),_0xec52b0),_0xec52b0=()=>{const _0x164ca5=_0x284054;if(_0x232927)return;_0x232927=!0x0,_0xf5cba5==null||_0xf5cba5[_0x164ca5(0x233)](),_0x23addf();let _0x3dd04b=Error(_0x164ca5(0x20f));_0x3dd04b['name']=_0x164ca5(0x1f8),_0x3ba063(_0x3dd04b);};_0x40f195[_0x284054(0x230)]('abort',_0xec52b0,{'once':!0x0}),_0x40f195[_0x284054(0x204)]?_0xec52b0():(_0xf5cba5=_0x1c5d07[_0x284054(0x147)](_0x284054(0x155),_0x109eab,{'responseType':_0x284054(0x11e)})['subscribe']({'next'(_0x9434b0){const _0x5dd148=_0x284054;_0x232927||_0x9434b0['type']!==_0x1e0c06['Response']||(_0x232927=!0x0,_0x23addf(),_0xf5cba5==null||_0xf5cba5[_0x5dd148(0x233)](),_0x2c9962(_0x9434b0));},'error'(_0x26d9bd){_0x232927||(_0x232927=!0x0,_0x23addf(),_0x3ba063(_0x26d9bd));},'complete'(){const _0x26f2f7=_0x284054;_0x232927||(_0x232927=!0x0,_0x23addf(),_0x3ba063(Error(_0x26f2f7(0x13c))));}}),_0x232927&&_0xf5cba5['unsubscribe']());});}function Ze(_0x189f2c){const _0x5d49d2=_0x1aa3a9;try{return new URL(_0x189f2c)[_0x5d49d2(0x11c)][_0x5d49d2(0x170)]('/')['pop']();}catch(_0x870bb2){console[_0x5d49d2(0x21b)](_0x5d49d2(0x13b),_0x870bb2);return;}}function Qe(_0x1b356c){const _0x15c633=_0x1aa3a9;let _0x13a1a3=new Blob([_0x1b356c[_0x15c633(0x219)]],{'type':_0x15c633(0x1d3)});return new File([_0x13a1a3],_0x15c633(0x14c));}function $e(_0x345922,_0x564a59){const _0x21f41c=_0x1aa3a9;return _0x345922['replace'](_0x21f41c(0x1ee),_0x564a59);}function et(_0x3cc06e,_0x1f5d68){const _0x31b922=_0x1aa3a9;return _0x3cc06e[_0x31b922(0x250)](_0x31b922(0x198),_0x1f5d68);}function tt(_0x368426,_0x52fd7f){const _0x512d1e=_0x1aa3a9;return _0x368426[_0x512d1e(0x250)](_0x512d1e(0x137),_0x52fd7f);}function I(_0x546921){'@babel/helpers - typeof';const _0x3cce90=_0x1aa3a9;return I=typeof Symbol==_0x3cce90(0x27c)&&typeof Symbol[_0x3cce90(0x1dc)]==_0x3cce90(0x1b1)?function(_0x641468){return typeof _0x641468;}:function(_0x450fca){const _0x32178c=_0x3cce90;return _0x450fca&&typeof Symbol==_0x32178c(0x27c)&&_0x450fca[_0x32178c(0x23e)]===Symbol&&_0x450fca!==Symbol[_0x32178c(0x19a)]?_0x32178c(0x1b1):typeof _0x450fca;},I(_0x546921);}function nt(_0x17f6d8,_0x3179d1){const _0x337161=_0x1aa3a9;if(I(_0x17f6d8)!=_0x337161(0x111)||!_0x17f6d8)return _0x17f6d8;var _0x4e2585=_0x17f6d8[Symbol['toPrimitive']];if(_0x4e2585!==void 0x0){var _0xc568c2=_0x4e2585[_0x337161(0x19f)](_0x17f6d8,_0x3179d1||_0x337161(0x138));if(I(_0xc568c2)!=_0x337161(0x111))return _0xc568c2;throw TypeError(_0x337161(0x253));}return(_0x3179d1===_0x337161(0x15f)?String:Number)(_0x17f6d8);}function rt(_0x5164cb){const _0x518695=_0x1aa3a9;var _0x46ad55=nt(_0x5164cb,_0x518695(0x15f));return I(_0x46ad55)==_0x518695(0x1b1)?_0x46ad55:_0x46ad55+'';}function L(_0x13653c,_0x14f34b,_0x3ed9d3){const _0x246135=_0x1aa3a9;return(_0x14f34b=rt(_0x14f34b))in _0x13653c?Object[_0x246135(0x15a)](_0x13653c,_0x14f34b,{'value':_0x3ed9d3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x13653c[_0x14f34b]=_0x3ed9d3,_0x13653c;}function R(_0x450a82,_0x529863){return function(_0x444c81,_0x1eb476){_0x529863(_0x444c81,_0x1eb476,_0x450a82);};}function z(_0x18d39d,_0x98c43c,_0x29403f,_0x44556c){const _0x34e42d=_0x1aa3a9;var _0x4b7505=arguments[_0x34e42d(0x14f)],_0xc3e525=_0x4b7505<0x3?_0x98c43c:_0x44556c===null?_0x44556c=Object[_0x34e42d(0x256)](_0x98c43c,_0x29403f):_0x44556c,_0x3b3c01;if(typeof Reflect==_0x34e42d(0x111)&&typeof Reflect[_0x34e42d(0x277)]==_0x34e42d(0x27c))_0xc3e525=Reflect[_0x34e42d(0x277)](_0x18d39d,_0x98c43c,_0x29403f,_0x44556c);else{for(var _0xf88b90=_0x18d39d[_0x34e42d(0x14f)]-0x1;_0xf88b90>=0x0;_0xf88b90--)(_0x3b3c01=_0x18d39d[_0xf88b90])&&(_0xc3e525=(_0x4b7505<0x3?_0x3b3c01(_0xc3e525):_0x4b7505>0x3?_0x3b3c01(_0x98c43c,_0x29403f,_0xc3e525):_0x3b3c01(_0x98c43c,_0x29403f))||_0xc3e525);}return _0x4b7505>0x3&&_0xc3e525&&Object[_0x34e42d(0x15a)](_0x98c43c,_0x29403f,_0xc3e525),_0xc3e525;}let it=function(_0x3b6890){const _0x49b1a6=_0x1aa3a9;return _0x3b6890[_0x3b6890['UNDEFINED']=0x0]=_0x49b1a6(0x232),_0x3b6890[_0x3b6890[_0x49b1a6(0x139)]=0x1]=_0x49b1a6(0x139),_0x3b6890[_0x3b6890['JSON']=0x2]=_0x49b1a6(0x150),_0x3b6890[_0x3b6890['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x3b6890;}({}),at=function(_0xde5395){const _0x3687b3=_0x1aa3a9;return _0xde5395['XLSX']=_0x3687b3(0x25d),_0xde5395[_0x3687b3(0x20e)]=_0x3687b3(0x1e3),_0xde5395[_0x3687b3(0x18d)]='tsv',_0xde5395[_0x3687b3(0x17f)]=_0x3687b3(0x251),_0xde5395[_0x3687b3(0x1db)]=_0x3687b3(0x18e),_0xde5395[_0x3687b3(0x26a)]=_0x3687b3(0x1a4),_0xde5395;}({}),ot=function(_0x57ef69){const _0x1e0260=_0x1aa3a9;return _0x57ef69[_0x1e0260(0x22b)]=_0x1e0260(0x186),_0x57ef69['TRADITIONAL']=_0x1e0260(0x1af),_0x57ef69;}({}),st=function(_0x4c9073){const _0x86c7bf=_0x1aa3a9;return _0x4c9073[_0x86c7bf(0x180)]='auto',_0x4c9073[_0x86c7bf(0x285)]=_0x86c7bf(0x1de),_0x4c9073['SHEETS']=_0x86c7bf(0x146),_0x4c9073['HYBRID']='hybrid',_0x4c9073;}({}),ct=function(_0x543890){const _0x4c9c26=_0x1aa3a9;return _0x543890['CONVERT_THEN_VALUES']='convert-then-values',_0x543890[_0x4c9c26(0x194)]=_0x4c9c26(0x24c),_0x543890[_0x4c9c26(0x112)]=_0x4c9c26(0x257),_0x543890[_0x4c9c26(0x16d)]=_0x4c9c26(0x1a5),_0x543890;}({}),lt=function(_0x3fe95a){const _0x4825f9=_0x1aa3a9;return _0x3fe95a['TABLES']=_0x4825f9(0x1de),_0x3fe95a['RANGES']=_0x4825f9(0x163),_0x3fe95a;}({});const B=_0x59b531('univer-pro.exchange-client.request.service');function _0x1569(_0x36244b,_0x491c97){_0x36244b=_0x36244b-0x110;const _0x37ff90=_0x37ff();let _0x156961=_0x37ff90[_0x36244b];return _0x156961;}let V=class{constructor(_0x1686ca,_0x50cacf){const _0x1fc799=_0x1aa3a9;this[_0x1fc799(0x184)]=_0x1686ca,this[_0x1fc799(0x1fa)]=_0x50cacf,L(this,_0x1fc799(0x25f),new Set());}[_0x1aa3a9(0x1f2)](){}[_0x1aa3a9(0x1c5)](_0xf91ace){this['_taskInterrupted']['add'](_0xf91ace);}[_0x1aa3a9(0x272)](){const _0x365519=_0x1aa3a9;this[_0x365519(0x25f)][_0x365519(0x152)]();}async['upload'](_0x319ba9,_0x5aee7a=0x0,_0x4b9816=!0x1){const _0xc8ff18=_0x1aa3a9;if(typeof _0x319ba9=='string'){let _0x334e70=await Je(_0x319ba9,this[_0xc8ff18(0x1fa)]);if(!_0x334e70)throw Error('upload\x20request\x20failed:\x20failed\x20to\x20read\x20source\x20file\x20from\x20url');_0x319ba9=_0x334e70;}_0x5aee7a||=_0x319ba9[_0xc8ff18(0x1bb)];let _0x1abfb8=new FormData();_0x1abfb8['append'](_0xc8ff18(0x1fc),_0x319ba9);try{let _0x3c83ab=this[_0xc8ff18(0x22d)]()+_0xc8ff18(0x24f)+_0x5aee7a+_0xc8ff18(0x123)+_0x17fdb7[_0xc8ff18(0x1f3)]+'&flate='+_0x4b9816,_0x22e226={'body':_0x1abfb8},_0x10ae46=(await this[_0xc8ff18(0x1fa)][_0xc8ff18(0x22a)](_0x3c83ab,_0x22e226))[_0xc8ff18(0x202)];if(_0x10ae46[_0xc8ff18(0x21b)]&&_0x10ae46[_0xc8ff18(0x21b)][_0xc8ff18(0x206)]!==_0x46b732['OK'])throw Error(this[_0xc8ff18(0x191)](_0xc8ff18(0x208),_0x10ae46['error']));return _0x10ae46;}catch(_0x4bf0b6){throw _0x4bf0b6 instanceof Error?_0x4bf0b6:Error(this[_0xc8ff18(0x261)](_0xc8ff18(0x208),_0x4bf0b6));}}async[_0x1aa3a9(0x143)](_0x57986e){const _0x443f9b=_0x1aa3a9;let {type:_0x10ea07,..._0x1563c7}=_0x57986e;try{let _0x55980b=$e(this[_0x443f9b(0x18a)](),''+_0x10ea07),_0x336689={'body':_0x1563c7},_0x5ca458=(await this[_0x443f9b(0x1fa)][_0x443f9b(0x22a)](_0x55980b,_0x336689))[_0x443f9b(0x202)];return _0x5ca458['error']&&_0x5ca458['error'][_0x443f9b(0x206)]!==_0x46b732['OK']?void 0x0:_0x5ca458;}catch{return;}}async[_0x1aa3a9(0x228)](_0x241d48){const _0x5e1dc1=_0x1aa3a9;let {type:_0x53e27f}=_0x241d48;try{let _0x2a85e5=$e(this['_getExportURL'](),''+_0x53e27f),_0x3ac46c={'body':_0x241d48},_0x2bc7e7=(await this['_httpService'][_0x5e1dc1(0x22a)](_0x2a85e5,_0x3ac46c))[_0x5e1dc1(0x202)];return _0x2bc7e7[_0x5e1dc1(0x21b)]&&_0x2bc7e7[_0x5e1dc1(0x21b)][_0x5e1dc1(0x206)]!==_0x46b732['OK']?void 0x0:_0x2bc7e7;}catch{return;}}async[_0x1aa3a9(0x1e6)](_0x3c8fb7){return new Promise((_0x3e1a36,_0x90a6b7)=>{const _0x234b92=_0x1569;try{let _0x15abd3=0x0,_0x2d5abf=et(this[_0x234b92(0x229)](),''+_0x3c8fb7),_0x46ddc4=this[_0x234b92(0x18b)](),_0x508e25=async()=>{const _0x320a5e=_0x234b92;if(this[_0x320a5e(0x25f)]['has'](_0x3c8fb7))return;let _0x3f2493=(await this[_0x320a5e(0x1fa)][_0x320a5e(0x215)](_0x2d5abf))[_0x320a5e(0x202)];if(_0x3f2493[_0x320a5e(0x21b)]&&_0x3f2493[_0x320a5e(0x21b)][_0x320a5e(0x206)]===_0x46b732['OK']){if(_0x3f2493[_0x320a5e(0x17c)]===_0x320a5e(0x1b0))_0x3e1a36(_0x3f2493);else{if(_0x3f2493['status']===_0x320a5e(0x234)){let _0x3c626b=0x3e8;if(_0x15abd3>=_0x46ddc4){_0x90a6b7(_0x3f2493);return;}_0x15abd3>=0x7530&&(_0x3c626b=0x1388),_0x15abd3+=_0x3c626b,setTimeout(_0x508e25,_0x3c626b);}else _0x90a6b7(_0x3f2493);}}else _0x90a6b7(_0x3f2493);};_0x508e25();}catch(_0x203ee6){_0x90a6b7(_0x203ee6 instanceof Error?_0x203ee6:Error(String(_0x203ee6)));}});}async[_0x1aa3a9(0x1d4)](_0x2ad075){const _0x2cd861=_0x1aa3a9;try{let _0x8e7625=tt(this[_0x2cd861(0x1a9)](),''+_0x2ad075);return(await this['_httpService']['get'](_0x8e7625))[_0x2cd861(0x202)];}catch{return;}}async[_0x1aa3a9(0x122)](_0x340335){const _0x59cbbd=_0x1aa3a9;try{return(await this[_0x59cbbd(0x1fa)][_0x59cbbd(0x215)](_0x340335,{'responseType':_0x59cbbd(0x257)}))[_0x59cbbd(0x202)];}catch{return;}}[_0x1aa3a9(0x191)](_0x33d713,_0x18c6e3){const _0x1c7d92=_0x1aa3a9;let _0xa1ab65=this[_0x1c7d92(0x273)](_0x18c6e3);return _0xa1ab65?_0x33d713+':\x20'+_0xa1ab65:_0x33d713;}[_0x1aa3a9(0x261)](_0x37b4f2,_0x497946){const _0x5c4c47=_0x1aa3a9;if(_0x497946 instanceof _0x27df39){let _0x229cf0=typeof _0x497946[_0x5c4c47(0x17c)]==_0x5c4c47(0x237)?''+_0x497946[_0x5c4c47(0x17c)]+(_0x497946[_0x5c4c47(0x1cf)]?'\x20'+_0x497946[_0x5c4c47(0x1cf)]:''):void 0x0,_0x148e3a=this[_0x5c4c47(0x273)](_0x497946[_0x5c4c47(0x21b)]);return _0x229cf0&&_0x148e3a?_0x37b4f2+_0x5c4c47(0x1b2)+_0x229cf0+_0x5c4c47(0x1ff)+_0x148e3a:_0x229cf0?_0x37b4f2+':\x20HTTP\x20'+_0x229cf0:_0x148e3a?_0x37b4f2+':\x20'+_0x148e3a:_0x37b4f2;}let _0xa27c0e=this['_extractErrorDetail'](_0x497946);return _0xa27c0e?_0x37b4f2+':\x20'+_0xa27c0e:_0x37b4f2;}[_0x1aa3a9(0x273)](_0xd56a98){const _0x42cb08=_0x1aa3a9;if(typeof _0xd56a98==_0x42cb08(0x15f)){let _0x31cf84=_0xd56a98['trim']();return _0x31cf84[_0x42cb08(0x14f)]>0x0?_0x31cf84:void 0x0;}if(_0xd56a98 instanceof Error)return this['_extractErrorDetail'](_0xd56a98[_0x42cb08(0x124)]);if(!_0xd56a98||typeof _0xd56a98!=_0x42cb08(0x111)||Array[_0x42cb08(0x26b)](_0xd56a98))return;let _0x28ba11=_0xd56a98,_0x4af8a6=this[_0x42cb08(0x273)](_0x28ba11[_0x42cb08(0x124)]);if(_0x4af8a6)return _0x4af8a6;if(_0x28ba11[_0x42cb08(0x21b)]&&typeof _0x28ba11[_0x42cb08(0x21b)]=='object'&&!Array['isArray'](_0x28ba11[_0x42cb08(0x21b)])){let _0x3a9505=this[_0x42cb08(0x273)](_0x28ba11['error']);if(_0x3a9505)return _0x3a9505;}}[_0x1aa3a9(0x22d)](){const _0x3f0188=_0x1aa3a9;let _0x5c7a39=this[_0x3f0188(0x184)][_0x3f0188(0x190)](k);return(_0x5c7a39==null?void 0x0:_0x5c7a39[_0x3f0188(0x1bd)])??'/universer-api/stream/file/upload';}['_getImportURL'](){const _0x50322b=_0x1aa3a9;let _0xf777d=this['_configService'][_0x50322b(0x190)](k);return(_0xf777d==null?void 0x0:_0xf777d['importServerUrl'])??_0x50322b(0x1ca);}['_getExportURL'](){const _0x3f1a39=_0x1aa3a9;let _0x3b9229=this[_0x3f1a39(0x184)][_0x3f1a39(0x190)](k);return(_0x3b9229==null?void 0x0:_0x3b9229['exportServerUrl'])??'/universer-api/exchange/{type}/export';}['_getTaskURL'](){const _0x5a5404=_0x1aa3a9;let _0x89a011=this['_configService']['getConfig'](k);return(_0x89a011==null?void 0x0:_0x89a011[_0x5a5404(0x18f)])??_0x5a5404(0x211);}['_getSignURL'](){const _0x2fdeeb=_0x1aa3a9;let _0x40d22a=this[_0x2fdeeb(0x184)][_0x2fdeeb(0x190)](k);return(_0x40d22a==null?void 0x0:_0x40d22a[_0x2fdeeb(0x1b5)])??_0x2fdeeb(0x1a1);}['_getMaxPollingTime'](){const _0x1b5497=_0x1aa3a9;let _0x3610f9=this['_configService'][_0x1b5497(0x190)](k);return(_0x3610f9==null?void 0x0:_0x3610f9[_0x1b5497(0x26d)])??0x1d4c0;}};V=z([R(0x0,_0x1e7c97),R(0x1,_0x5efb18(_0x327d2c))],V);const H='exchange-client.export-format-dialog';function ut({formats:_0x15e1e3,items:_0x1a220f,selectedId:_0x3f6622,onCancel:_0xc789a8,onConfirm:_0x43bb66}){const _0x4bb331=_0x1aa3a9;let _0xffbb63=_0x335eaa(_0x1f3633),[_0x26af54,_0x2124e7]=_0x4c3865(_0x15e1e3[0x0]),[_0x3565a7,_0x2b4250]=_0x4c3865(_0x3f6622),[_0x149f2e,_0x1fe992]=_0x4c3865(!0x1),_0x53c281=_0x484a32(!0x1);return _0x5c8fb9(_0x4bb331(0x265),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-5\x20univer-p-1','children':[_0x46ee55('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':_0x15e1e3[_0x4bb331(0x283)](_0x34d28d=>_0x5c8fb9('div',{'className':_0x4bb331(0x1c6),'children':[_0x46ee55(_0x3ceb90,{'value':_0x34d28d,'checked':_0x26af54===_0x34d28d,'onChange':_0x38f1eb=>_0x2124e7(_0x38f1eb),'children':_0x46ee55(_0x4bb331(0x129),{'className':_0x4bb331(0x1cd),'children':_0x34d28d[_0x4bb331(0x142)]()})}),_0x34d28d!==_0x4bb331(0x25d)&&_0x46ee55(_0x392979,{'className':_0x4bb331(0x141),'value':_0x3565a7,'options':_0x1a220f,'onChange':_0x5512d7=>_0x2b4250(String(_0x5512d7))})]},_0x34d28d))}),_0x5c8fb9(_0x4bb331(0x265),{'className':_0x4bb331(0x1d5),'children':[_0x46ee55(_0xce31ad,{'type':_0x4bb331(0x203),'variant':_0x4bb331(0x138),'onClick':_0xc789a8,'children':_0xffbb63['t'](_0x4bb331(0x231))}),_0x5c8fb9(_0xce31ad,{'type':'button','variant':_0x4bb331(0x1c0),'aria-busy':_0x149f2e,'disabled':_0x149f2e||!_0x26af54||_0x26af54!==_0x4bb331(0x25d)&&!_0x3565a7,'onClick':async()=>{const _0x340057=_0x4bb331;if(!_0x53c281[_0x340057(0x1b3)]){_0x53c281['current']=!0x0,_0x1fe992(!0x0);try{await _0x43bb66(_0x26af54,_0x3565a7);}finally{_0x53c281[_0x340057(0x1b3)]=!0x1,_0x1fe992(!0x1);}}},'children':[_0x149f2e&&_0x46ee55(_0x1039d8,{'className':_0x4bb331(0x271)}),_0xffbb63['t'](_0x4bb331(0x1fe))]})]})]});}function dt({formats:_0x51711c,items:_0x5053d3,selectedId:_0x1b9a4f,onCancel:_0x4a991c,onConfirm:_0x474b65}){const _0x4c7180=_0x1aa3a9;let _0x43e16c=_0x335eaa(_0x1f3633),[_0x3ef06e,_0x1f6c4c]=_0x4c3865(_0x51711c[0x0]),[_0x4bfe43,_0x35a890]=_0x4c3865(_0x1b9a4f),[_0x3ce2c3,_0x77ea73]=_0x4c3865(!0x1),_0x1b6691=_0x484a32(!0x1);async function _0x4db045(){const _0xce729d=_0x1569;if(!_0x1b6691[_0xce729d(0x1b3)]){_0x1b6691[_0xce729d(0x1b3)]=!0x0,_0x77ea73(!0x0);try{await _0x474b65(_0x3ef06e,_0x4bfe43);}finally{_0x1b6691[_0xce729d(0x1b3)]=!0x1,_0x77ea73(!0x1);}}}return _0x5c8fb9(_0x4c7180(0x265),{'className':_0x4c7180(0x209),'children':[_0x46ee55(_0x4c7180(0x265),{'className':'univer-grid\x20univer-gap-3','children':_0x51711c[_0x4c7180(0x283)](_0x30f8fa=>_0x5c8fb9(_0x4c7180(0x265),{'className':'univer-grid\x20univer-gap-2\x20univer-rounded-xl\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-bg-gray-800','children':[_0x46ee55(_0x3ceb90,{'value':_0x30f8fa,'checked':_0x3ef06e===_0x30f8fa,'onChange':_0x1ef45f=>_0x1f6c4c(_0x1ef45f),'children':_0x30f8fa[_0x4c7180(0x142)]()}),_0x30f8fa!==_0x4c7180(0x25d)&&_0x3ef06e===_0x30f8fa&&_0x46ee55(_0x563ac4,{'className':_0x4c7180(0x12e),'value':_0x4bfe43,'options':_0x5053d3,'onChange':_0x2f14d7=>_0x35a890(String(_0x2f14d7))})]},_0x30f8fa))}),_0x5c8fb9(_0x39d4b4,{'className':_0x4c7180(0x217),'children':[_0x46ee55(_0xce31ad,{'type':_0x4c7180(0x203),'onClick':_0x4a991c,'children':_0x43e16c['t'](_0x4c7180(0x231))}),_0x5c8fb9(_0xce31ad,{'type':_0x4c7180(0x203),'variant':_0x4c7180(0x1c0),'aria-busy':_0x3ce2c3,'disabled':_0x3ce2c3||!_0x3ef06e||_0x3ef06e!==_0x4c7180(0x25d)&&!_0x4bfe43,'onClick':_0x4db045,'children':[_0x3ce2c3&&_0x46ee55(_0x1039d8,{'className':_0x4c7180(0x271)}),_0x43e16c['t'](_0x4c7180(0x1fe))]})]})]});}let U=class extends _0x5b511d{constructor(_0x188bf4,_0x564da0){const _0x33219a=_0x1aa3a9;super(),this['_iconManager']=_0x188bf4,this[_0x33219a(0x156)]=_0x564da0,this[_0x33219a(0x255)](this['_iconManager'][_0x33219a(0x195)]({'DirectExportIcon':_0xb0af65,'ExportIcon':_0xdfd1fa,'FolderIcon':_0xa8c4ca})),this[_0x33219a(0x255)](this[_0x33219a(0x156)][_0x33219a(0x195)](H,dt));}};U=z([R(0x0,_0x5efb18(_0xd3551f)),R(0x1,_0x5efb18(_0x3a2f9d))],U);const W=_0x59b531(_0x1aa3a9(0x1ba));let G=class extends _0x5b511d{constructor(_0x3b7887,_0x4c3f73,_0x366eb6){const _0x331c7c=_0x1aa3a9;super(),this[_0x331c7c(0x184)]=_0x3b7887,this['_httpService']=_0x4c3f73,this[_0x331c7c(0x20a)]=_0x366eb6,L(this,_0x331c7c(0x26c),null),L(this,'_requestState$',new _0x41e348()),L(this,_0x331c7c(0x25e),this[_0x331c7c(0x165)][_0x331c7c(0x242)]());}[_0x1aa3a9(0x1f2)](){const _0x584b8f=_0x1aa3a9;super['dispose'](),this[_0x584b8f(0x165)][_0x584b8f(0x225)]();}[_0x1aa3a9(0x25a)](_0x115a17,_0xb79630,_0x4b2357){const _0x32e886=_0x1aa3a9;let _0x2aec88=URL[_0x32e886(0x135)](_0x115a17);Ke(_0x2aec88,_0xb79630,_0x4b2357),URL[_0x32e886(0x23d)](_0x2aec88);}async['getFileById'](_0x4b179a,_0x4262e1){const _0x23450a=_0x1aa3a9;if(_0x4262e1!=null&&_0x4262e1[_0x23450a(0x204)])return;let _0x251779=await this[_0x23450a(0x113)](_0x4b179a);if(!(!_0x251779||_0x4262e1!=null&&_0x4262e1[_0x23450a(0x204)]))return Ye(_0x251779,this['_httpService'],_0x4262e1);}async[_0x1aa3a9(0x281)](_0x35780d,_0x45bfc5,_0x17ec63){const _0x227bfc=_0x1aa3a9;var _0x4f3061,_0x4c7a31;let _0x99ec76=await this[_0x227bfc(0x126)](_0x35780d);if(!_0x99ec76)return;let _0x106ac8=await this['_import'](_0x99ec76,0x1,_0x45bfc5,_0x17ec63);if(!_0x106ac8)return;this['_importTaskId']=_0x106ac8,this[_0x227bfc(0x20a)]['clearTaskInterrupted']();let _0x5e5a63=await this['_requestService'][_0x227bfc(0x1e6)](_0x106ac8)['catch'](_0x5d6e14=>{const _0x22768f=_0x227bfc;var _0x365804;let _0x8b0ad4=_0x5d6e14 instanceof Error?_0x5d6e14[_0x22768f(0x124)]:(_0x365804=_0x5d6e14[_0x22768f(0x21b)])==null?void 0x0:_0x365804[_0x22768f(0x124)];this['_requestState$'][_0x22768f(0x117)]({'error':{'code':_0x46b732['UNRECOGNIZED'],'message':_0x8b0ad4||''},'state':0x3});});if(!_0x5e5a63)return;let _0xdc3161=(_0x4f3061=_0x5e5a63[_0x227bfc(0x143)])==null?void 0x0:_0x4f3061[_0x227bfc(0x11b)],_0x5eda7b=((_0x4c7a31=_0x5e5a63[_0x227bfc(0x143)])==null?void 0x0:_0x4c7a31[_0x227bfc(0x1a8)])||'';if(_0xdc3161!==0x1)this[_0x227bfc(0x165)][_0x227bfc(0x117)]({'error':{'code':_0x46b732['UNRECOGNIZED'],'message':_0x227bfc(0x21f)},'state':0x3});else{if(_0x5eda7b['length']===0x0)this['_requestState$'][_0x227bfc(0x117)]({'error':{'code':_0x46b732[_0x227bfc(0x23b)],'message':_0x227bfc(0x1c2)},'state':0x3});else return this[_0x227bfc(0x165)][_0x227bfc(0x117)]({'error':_0x5e5a63['error'],'state':0x3}),_0x5eda7b;}}async['importFileToJson'](_0x5a8765,_0x419a1d,_0x356629){const _0x4f047c=_0x1aa3a9;return this[_0x4f047c(0x15b)](_0x5a8765,_0x419a1d,_0x356629);}async[_0x1aa3a9(0x17b)](_0x1d8b9d,_0x87e2ff,_0x2d1620,_0x101569){return this['_export'](_0x1d8b9d,0x1,_0x87e2ff,_0x2d1620,_0x101569);}async[_0x1aa3a9(0x192)](_0x3f4409,_0x25ea8d,_0x5e6434,_0x384724){const _0x401c80=_0x1aa3a9;return this[_0x401c80(0x220)](_0x3f4409,_0x25ea8d,_0x5e6434,_0x384724);}[_0x1aa3a9(0x171)](){const _0x5d49f9=_0x1aa3a9;this[_0x5d49f9(0x26c)]&&this[_0x5d49f9(0x20a)]['setTaskInterrupted'](this[_0x5d49f9(0x26c)]);}async[_0x1aa3a9(0x15b)](_0x255b65,_0x39673f,_0x335a1a){const _0x5497a6=_0x1aa3a9;var _0x4a8e01,_0x390c90;let _0x3a4a7d=await this[_0x5497a6(0x126)](_0x255b65);if(!_0x3a4a7d)return;let _0x2fbbd5=await this[_0x5497a6(0x14a)](_0x3a4a7d,0x2,_0x39673f,_0x335a1a);if(!_0x2fbbd5)return;this[_0x5497a6(0x26c)]=_0x2fbbd5,this['_requestService'][_0x5497a6(0x272)]();let _0x5e1fc0=await this['_requestService']['getTask'](_0x2fbbd5)[_0x5497a6(0x11d)](_0x4adef9=>{const _0x5adc95=_0x5497a6;var _0x5229fe;let _0x3bea31=_0x4adef9 instanceof Error?_0x4adef9['message']:(_0x5229fe=_0x4adef9[_0x5adc95(0x21b)])==null?void 0x0:_0x5229fe['message'];this[_0x5adc95(0x165)]['next']({'error':{'code':_0x46b732[_0x5adc95(0x23b)],'message':_0x3bea31||''},'state':0x3});});if(!_0x5e1fc0)return;let _0x44c307=(_0x4a8e01=_0x5e1fc0[_0x5497a6(0x143)])==null?void 0x0:_0x4a8e01['outputType'],_0x378e51=((_0x390c90=_0x5e1fc0['import'])==null?void 0x0:_0x390c90[_0x5497a6(0x24a)])||'';if(_0x44c307!==0x2){this[_0x5497a6(0x165)]['next']({'error':{'code':_0x46b732[_0x5497a6(0x23b)],'message':_0x5497a6(0x21f)},'state':0x3});return;}if(_0x378e51[_0x5497a6(0x14f)]===0x0){this[_0x5497a6(0x165)][_0x5497a6(0x117)]({'error':{'code':_0x46b732[_0x5497a6(0x23b)],'message':_0x5497a6(0x12c)},'state':0x3});return;}this[_0x5497a6(0x165)][_0x5497a6(0x117)]({'error':_0x5e1fc0[_0x5497a6(0x21b)],'state':0x3});let _0x2a704b=await this[_0x5497a6(0x113)](_0x378e51);if(!_0x2a704b)return;let _0x52265c=await this[_0x5497a6(0x20a)][_0x5497a6(0x122)](_0x2a704b);if(!_0x52265c)this[_0x5497a6(0x165)]['next']({'error':{'code':_0x46b732[_0x5497a6(0x23b)],'message':'Failed\x20to\x20get\x20text\x20from\x20url'},'state':0x5});else try{let _0x5d91e3=JSON['parse'](_0x52265c);return this[_0x5497a6(0x165)][_0x5497a6(0x117)]({'error':{'code':_0x46b732['OK'],'message':_0x5497a6(0x182)},'state':0x5}),_0x5d91e3;}catch{this[_0x5497a6(0x165)][_0x5497a6(0x117)]({'error':{'code':_0x46b732[_0x5497a6(0x23b)],'message':_0x5497a6(0x214)},'state':0x5});}}async[_0x1aa3a9(0x220)](_0x317da4,_0x2672f8,_0x3fa292,_0xeec879){const _0x7b9bd6=_0x1aa3a9;let _0x1e8c37=JSON[_0x7b9bd6(0x1e5)](_0x317da4),_0xa78149=_0x21193d[_0x7b9bd6(0x1c8)](_0x1e8c37),_0x3fd53f=_0xbb3fa(_0xa78149),_0x23366a=_0xa78149[_0x7b9bd6(0x14f)],_0x31e413=Qe(_0x3fd53f),_0x46863a=await this[_0x7b9bd6(0x126)](_0x31e413,_0x23366a,!0x0);if(_0x46863a)return this[_0x7b9bd6(0x144)](_0x46863a,0x2,_0x2672f8,_0x3fa292,_0xeec879);}async[_0x1aa3a9(0x144)](_0x2b0dc2,_0x1a73ba,_0x431669,_0x401170,_0x305133){const _0x34d8ad=_0x1aa3a9;var _0x1ec648;let _0x575a4a=await this[_0x34d8ad(0x20a)]['export']({..._0x1a73ba===0x1?{'unitID':_0x2b0dc2}:{'jsonID':_0x2b0dc2},'type':_0x431669,'format':_0x401170,'options':_0x305133});if(!_0x575a4a){this['_requestState$']['next']({'error':{'code':_0x46b732[_0x34d8ad(0x23b)],'message':_0x34d8ad(0x264)},'state':0x2});return;}if(this[_0x34d8ad(0x165)][_0x34d8ad(0x117)]({'error':_0x575a4a[_0x34d8ad(0x21b)],'state':0x2}),_0x575a4a[_0x34d8ad(0x21b)]&&_0x575a4a['error']['code']!==_0x46b732['OK'])return;let _0x988a69=_0x575a4a['taskID'],_0x4e1711=await this[_0x34d8ad(0x20a)][_0x34d8ad(0x1e6)](_0x988a69)[_0x34d8ad(0x11d)](_0xb9316c=>{const _0x3053b0=_0x34d8ad;var _0x10bff3;let _0x193051=_0xb9316c instanceof Error?_0xb9316c[_0x3053b0(0x124)]:(_0x10bff3=_0xb9316c[_0x3053b0(0x21b)])==null?void 0x0:_0x10bff3[_0x3053b0(0x124)];this['_requestState$']['next']({'error':{'code':_0x46b732[_0x3053b0(0x23b)],'message':_0x193051||''},'state':0x3});});if(!_0x4e1711)return;let _0xd8305b=((_0x1ec648=_0x4e1711[_0x34d8ad(0x228)])==null?void 0x0:_0x1ec648[_0x34d8ad(0x12b)])||'';if(_0xd8305b[_0x34d8ad(0x14f)]===0x0){this[_0x34d8ad(0x165)][_0x34d8ad(0x117)]({'error':{'code':_0x46b732['UNRECOGNIZED'],'message':_0x34d8ad(0x212)},'state':0x3});return;}this[_0x34d8ad(0x165)][_0x34d8ad(0x117)]({'error':_0x4e1711[_0x34d8ad(0x21b)],'state':0x3});let _0x2cf1a9=await this[_0x34d8ad(0x113)](_0xd8305b);if(!_0x2cf1a9)return;let _0x3e3c94=await Je(_0x2cf1a9,this[_0x34d8ad(0x1fa)]);if(!_0x3e3c94)this[_0x34d8ad(0x165)][_0x34d8ad(0x117)]({'error':{'code':_0x46b732[_0x34d8ad(0x23b)],'message':_0x34d8ad(0x260)},'state':0x6});else return this['_requestState$'][_0x34d8ad(0x117)]({'error':{'code':_0x46b732['OK'],'message':'success'},'state':0x6}),_0x3e3c94;}async[_0x1aa3a9(0x126)](_0x3de67b,_0x4887,_0x1bd35f){const _0x1d3461=_0x1aa3a9;let _0x4f4535;try{_0x4f4535=await this[_0x1d3461(0x20a)][_0x1d3461(0x125)](_0x3de67b,_0x4887,_0x1bd35f);}catch(_0x4307e1){let _0x284b91=_0x4307e1 instanceof Error?_0x4307e1[_0x1d3461(0x124)]:String(_0x4307e1);this[_0x1d3461(0x165)][_0x1d3461(0x117)]({'error':{'code':_0x46b732['UNRECOGNIZED'],'message':_0x284b91},'state':0x0});return;}if(!_0x4f4535||typeof _0x4f4535[_0x1d3461(0x239)]!='string'){this[_0x1d3461(0x165)]['next']({'error':{'code':_0x46b732[_0x1d3461(0x23b)],'message':_0x1d3461(0x25b)},'state':0x0});return;}let _0x3574f3=_0x4f4535['FileId'];if(_0x3574f3[_0x1d3461(0x14f)]===0x0)this['_requestState$'][_0x1d3461(0x117)]({'error':{'code':_0x46b732[_0x1d3461(0x23b)],'message':'upload\x20failed:\x20FileId\x20is\x20empty'},'state':0x0});else return this['_requestState$']['next']({'error':{'code':_0x46b732['OK'],'message':_0x1d3461(0x182)},'state':0x0}),_0x3574f3;}async[_0x1aa3a9(0x14a)](_0x1af051,_0x12349e,_0x3e14f6,_0x13d109){const _0x4745de=_0x1aa3a9;let _0x1d493a={'fileID':_0x1af051,'type':_0x3e14f6,'outputType':_0x12349e,'options':_0x13d109},_0x2cebf3=await this[_0x4745de(0x20a)]['import'](_0x1d493a);if(!_0x2cebf3){this[_0x4745de(0x165)][_0x4745de(0x117)]({'error':{'code':_0x46b732[_0x4745de(0x23b)],'message':_0x4745de(0x226)},'state':0x1});return;}if(_0x2cebf3[_0x4745de(0x21b)]&&_0x2cebf3[_0x4745de(0x21b)][_0x4745de(0x206)]!==_0x46b732['OK']){this[_0x4745de(0x165)][_0x4745de(0x117)]({'error':_0x2cebf3[_0x4745de(0x21b)],'state':0x1});return;}let _0x3b00d0=_0x2cebf3[_0x4745de(0x145)];if(_0x3b00d0[_0x4745de(0x14f)]===0x0)this[_0x4745de(0x165)][_0x4745de(0x117)]({'error':{'code':_0x46b732[_0x4745de(0x23b)],'message':'Failed\x20to\x20get\x20taskID\x20from\x20import\x20response'},'state':0x1});else return this[_0x4745de(0x165)]['next']({'error':_0x2cebf3['error'],'state':0x1}),_0x3b00d0;}async[_0x1aa3a9(0x113)](_0x51a695){const _0x5454b5=_0x1aa3a9;let _0x3275d9=await this[_0x5454b5(0x20a)]['signUrl'](_0x51a695);if(!_0x3275d9){this[_0x5454b5(0x165)][_0x5454b5(0x117)]({'error':{'code':_0x46b732[_0x5454b5(0x23b)],'message':_0x5454b5(0x266)},'state':0x4});return;}if(_0x3275d9[_0x5454b5(0x21b)]&&_0x3275d9[_0x5454b5(0x21b)][_0x5454b5(0x206)]!==_0x46b732['OK']){this[_0x5454b5(0x165)][_0x5454b5(0x117)]({'error':_0x3275d9['error'],'state':0x4});return;}let _0x100a3c=_0x366571(_0x3275d9[_0x5454b5(0x275)],this[_0x5454b5(0x1d9)]());if(_0x100a3c[_0x5454b5(0x14f)]===0x0)this[_0x5454b5(0x165)][_0x5454b5(0x117)]({'error':{'code':_0x46b732[_0x5454b5(0x23b)],'message':_0x5454b5(0x266)},'state':0x4});else return this[_0x5454b5(0x165)][_0x5454b5(0x117)]({'error':_0x3275d9[_0x5454b5(0x21b)],'state':0x4}),_0x100a3c;}[_0x1aa3a9(0x1d9)](){const _0x427896=_0x1aa3a9;let _0x3dd074=this[_0x427896(0x184)][_0x427896(0x190)](k);return(_0x3dd074==null?void 0x0:_0x3dd074[_0x427896(0x23c)])??location['origin'];}};G=z([R(0x0,_0x1e7c97),R(0x1,_0x5efb18(_0x327d2c)),R(0x2,_0x5efb18(B))],G);const K=_0x59b531(_0x1aa3a9(0x201));var ft=class extends _0x5b511d{constructor(){const _0x52a332=_0x1aa3a9;super(),L(this,'_visible$',new _0x41e348()),L(this,_0x52a332(0x153),new _0x41e348()),L(this,'_list$',new _0x41e348()),L(this,_0x52a332(0x11f),this['_visible$'][_0x52a332(0x242)]()),L(this,_0x52a332(0x284),this[_0x52a332(0x153)][_0x52a332(0x242)]()),L(this,_0x52a332(0x1d2),this[_0x52a332(0x1f7)][_0x52a332(0x242)]()),L(this,_0x52a332(0x1f6),[]);}[_0x1aa3a9(0x1f2)](){const _0x441ba1=_0x1aa3a9;super[_0x441ba1(0x1f2)](),this[_0x441ba1(0x174)]['complete'](),this['_state$']['complete'](),this[_0x441ba1(0x1f7)][_0x441ba1(0x225)]();}[_0x1aa3a9(0x1eb)](){this['_visible$']['next'](!0x0);}[_0x1aa3a9(0x222)](){const _0x339ad9=_0x1aa3a9;this[_0x339ad9(0x174)]['next'](!0x1);}[_0x1aa3a9(0x189)](_0x178561){const _0x2e80ef=_0x1aa3a9;this[_0x2e80ef(0x153)][_0x2e80ef(0x117)](_0x178561);}[_0x1aa3a9(0x1f9)](_0x3cf325){const _0x1ba6da=_0x1aa3a9;this[_0x1ba6da(0x1f6)][_0x1ba6da(0x26f)](_0x3cf325),this['_list$']['next'](this[_0x1ba6da(0x1f6)]);}};const pt={'done':0x0,'count':0x0},q=_0x59b531(_0x1aa3a9(0x115));let J=class extends _0x5b511d{constructor(_0x31d579,_0x1482f8,_0x1f8dea,_0x132d93,_0x18a74d,_0x30a4ae){const _0x29c477=_0x1aa3a9;super(),this[_0x29c477(0x1bc)]=_0x31d579,this[_0x29c477(0x27b)]=_0x1482f8,this[_0x29c477(0x13e)]=_0x1f8dea,this[_0x29c477(0x262)]=_0x132d93,this[_0x29c477(0x17a)]=_0x18a74d,this[_0x29c477(0x196)]=_0x30a4ae,L(this,_0x29c477(0x11a),new _0x4aacaf(pt)),L(this,_0x29c477(0x1d8),this[_0x29c477(0x11a)][_0x29c477(0x242)]()),L(this,_0x29c477(0x20b),0x0),L(this,'_doneUploadTaskCount',0x0),L(this,'_isSelectingUnitImportFile',!0x1),L(this,_0x29c477(0x200),null),this[_0x29c477(0x255)](_0x422c2c(this[_0x29c477(0x262)][_0x29c477(0x25e)][_0x29c477(0x12a)](_0x35ef1d=>{const _0xbcf96f=_0x29c477;var _0x4fa7f9;((_0x4fa7f9=_0x35ef1d[_0xbcf96f(0x21b)])==null?void 0x0:_0x4fa7f9[_0xbcf96f(0x206)])===_0x46b732['OK']?this[_0xbcf96f(0x1c3)](0x1):this[_0xbcf96f(0x166)](_0x35ef1d[_0xbcf96f(0x21b)]);})));}['interrupt'](){const _0x20345c=_0x1aa3a9;this['_clearProgress'](),this['_uploadNotificationService'][_0x20345c(0x189)](0x2),this['_exchangeService'][_0x20345c(0x171)]();}async['importFileToUnitId'](_0x1a1251,_0x3c1456){const _0x27bdd3=_0x1aa3a9;if(this[_0x27bdd3(0x1a3)]||this[_0x27bdd3(0x27f)]()){this[_0x27bdd3(0x27b)][_0x27bdd3(0x1eb)]({'type':_0xda4cad[_0x27bdd3(0x240)],'content':this[_0x27bdd3(0x13e)]['t'](_0x27bdd3(0x1e1))});return;}let _0x21a86b;this['_isSelectingUnitImportFile']=!0x0;try{_0x21a86b=await F([_0x1a1251]);}finally{this[_0x27bdd3(0x1a3)]=!0x1;}if(_0x21a86b&&!this[_0x27bdd3(0x17d)](_0x21a86b,_0x1a1251))return this['_lastUnitImportContext']={'type':_0x1a1251,'importer':_0x3c1456},this['_importFileToUnitId'](_0x21a86b[0x0],_0x1a1251,_0x3c1456);}async[_0x1aa3a9(0x19d)](){const _0x3405ef=_0x1aa3a9;let _0x1c6016=this[_0x3405ef(0x200)];if(_0x1c6016)return this[_0x3405ef(0x281)](_0x1c6016[_0x3405ef(0x1d1)],_0x1c6016[_0x3405ef(0x243)]);}async['importFileToSnapshot'](_0x3f8800,_0x1c75f9){const _0x1118be=_0x1aa3a9;if(this['_uploadTaskNotDone']()){this['_messageService'][_0x1118be(0x1eb)]({'type':_0xda4cad[_0x1118be(0x240)],'content':this[_0x1118be(0x13e)]['t'](_0x1118be(0x1e1))});return;}let _0xb071a0=await F([_0x3f8800]);if(!_0xb071a0||this[_0x1118be(0x17d)](_0xb071a0,_0x3f8800))return;this['_showUploadMessage'](_0xda4cad['Info']);let _0x3761c0=await _0x1c75f9(_0xb071a0[0x0]);_0x3761c0&&(this[_0x1118be(0x259)](_0x3f8800,_0x3761c0),this[_0x1118be(0x22f)](_0xda4cad[_0x1118be(0x1e4)]));}async[_0x1aa3a9(0x213)](_0x216a63,_0x5b6db0){const _0x1c0866=_0x1aa3a9;if(this['_uploadTaskNotDone']()){this[_0x1c0866(0x27b)][_0x1c0866(0x1eb)]({'type':_0xda4cad[_0x1c0866(0x240)],'content':this[_0x1c0866(0x13e)]['t'](_0x1c0866(0x1e1))});return;}let _0x599330=await F([_0x216a63]);if(!_0x599330||this['_fileTypeError'](_0x599330,_0x216a63))return;this['_showUploadMessage'](_0xda4cad[_0x1c0866(0x19b)]);let _0x56e831=await _0x5b6db0(_0x599330[0x0]);if(_0x56e831)return this[_0x1c0866(0x22f)](_0xda4cad[_0x1c0866(0x1e4)]),_0x56e831;}async[_0x1aa3a9(0x168)](_0x41477b,_0x46f67a,_0x432363){const _0x10165d=_0x1aa3a9;this[_0x10165d(0x15c)](_0xda4cad[_0x10165d(0x19b)]);let _0x515fc1=await _0x41477b();_0x515fc1&&(this[_0x10165d(0x262)][_0x10165d(0x25a)](_0x515fc1,_0x46f67a||_0x515fc1[_0x10165d(0x127)][_0x10165d(0x170)]('.')['shift']()||document['title'],_0x432363),this[_0x10165d(0x15c)](_0xda4cad['Success']));}['registerLink'](_0x39f3be){const _0x8b98d9=_0x1aa3a9;this[_0x8b98d9(0x27a)]=_0x39f3be;}async[_0x1aa3a9(0x130)](_0x3c923d,_0x31ad91,_0xebe30f){const _0x3f87dc=_0x1aa3a9;this[_0x3f87dc(0x17a)][_0x3f87dc(0x1eb)](),this[_0x3f87dc(0x17a)][_0x3f87dc(0x189)](0x0),this[_0x3f87dc(0x175)](0x4),this[_0x3f87dc(0x1c3)](0x1);let _0xef3799=await _0xebe30f(_0x3c923d);if(!_0xef3799){this[_0x3f87dc(0x249)](),this[_0x3f87dc(0x17a)]['updateState'](0x2);return;}let _0xe65895={'link':this[_0x3f87dc(0x27a)](_0xef3799,_0x31ad91),'name':_0x3c923d[_0x3f87dc(0x127)],'type':_0x31ad91};return this['_uploadNotificationService'][_0x3f87dc(0x1f9)](_0xe65895),this['_completeProgress'](),this['_uploadNotificationService']['updateState'](0x1),_0xef3799;}[_0x1aa3a9(0x259)](_0x1725c8,_0x3adad7){const _0x4a6e41=_0x1aa3a9;let _0x202f93=this['_univerInstanceService'][_0x4a6e41(0x121)](_0x1725c8);if(!_0x202f93)throw Error(_0x4a6e41(0x248)+_0x1725c8+_0x4a6e41(0x173));this['_univerInstanceService'][_0x4a6e41(0x16a)](_0x202f93[_0x4a6e41(0x185)]());let _0x1291fc=this[_0x4a6e41(0x1bc)][_0x4a6e41(0x169)](_0x1725c8,_0x3adad7);this['_univerInstanceService'][_0x4a6e41(0x1bf)](_0x1291fc['getUnitId']());}['_getLinkByUnitId'](_0x594f6a,_0xfea8cf){const _0x247970=_0x1aa3a9;let _0x297875=new URL(window['location'][_0x247970(0x167)]);return _0x297875[_0x247970(0x1e0)]['set'](_0x247970(0x16f),_0x594f6a),_0x297875[_0x247970(0x1e0)]['set']('type',''+_0xfea8cf),_0x297875[_0x247970(0x238)]();}[_0x1aa3a9(0x166)](_0xd970){const _0x3131c1=_0x1aa3a9;if(_0xd970){let {code:_0x25730a}=_0xd970;switch(_0x25730a){case _0x46b732[_0x3131c1(0x177)]:this[_0x3131c1(0x27b)][_0x3131c1(0x1eb)]({'type':_0xda4cad[_0x3131c1(0x132)],'content':this[_0x3131c1(0x13e)]['t']('exchange-client.tooLarge')});break;case _0x46b732['INTERNAL_ERROR']:this['_messageService']['show']({'type':_0xda4cad[_0x3131c1(0x132)],'content':this[_0x3131c1(0x13e)]['t'](_0x3131c1(0x128))});break;default:this[_0x3131c1(0x27b)][_0x3131c1(0x1eb)]({'type':_0xda4cad[_0x3131c1(0x132)],'content':this[_0x3131c1(0x13e)]['t'](_0x3131c1(0x27d))});}return null;}return this['_messageService'][_0x3131c1(0x1eb)]({'type':_0xda4cad[_0x3131c1(0x132)],'content':this[_0x3131c1(0x13e)]['t']('exchange-client.networkError')}),null;}['_showDownloadMessage'](_0x1d81d1){const _0x253679=_0x1aa3a9;let _0x468a40='';switch(_0x1d81d1){case _0xda4cad[_0x253679(0x1e4)]:_0x468a40=this['_localeService']['t'](_0x253679(0x110));break;case _0xda4cad[_0x253679(0x19b)]:_0x468a40=this['_localeService']['t'](_0x253679(0x1ea));}this[_0x253679(0x27b)]['show']({'type':_0x1d81d1,'content':_0x468a40});}[_0x1aa3a9(0x22f)](_0x21b44d){const _0x5549d2=_0x1aa3a9;let _0x4bc31c='';switch(_0x21b44d){case _0xda4cad['Success']:_0x4bc31c=this['_localeService']['t']('exchange-client.uploadSuccess');break;case _0xda4cad[_0x5549d2(0x19b)]:_0x4bc31c=this['_localeService']['t'](_0x5549d2(0x1e1));}this[_0x5549d2(0x27b)]['show']({'type':_0x21b44d,'content':_0x4bc31c});}[_0x1aa3a9(0x23a)](){const _0x5dd185=_0x1aa3a9;this[_0x5dd185(0x11a)][_0x5dd185(0x117)]({'done':this[_0x5dd185(0x1ce)],'count':this[_0x5dd185(0x20b)]});}[_0x1aa3a9(0x175)](_0x1e63be){const _0x502efa=_0x1aa3a9;this[_0x502efa(0x20b)]+=_0x1e63be,this[_0x502efa(0x23a)]();}[_0x1aa3a9(0x1c3)](_0x328745){const _0x176b0f=_0x1aa3a9;this[_0x176b0f(0x1ce)]+=_0x328745,this[_0x176b0f(0x1ce)]=Math[_0x176b0f(0x162)](this[_0x176b0f(0x1ce)],this['_totalUploadTaskCount']),this['_emitProgress']();}[_0x1aa3a9(0x205)](){const _0x256f3b=_0x1aa3a9;this[_0x256f3b(0x1ce)]=this[_0x256f3b(0x20b)],this[_0x256f3b(0x23a)]();}['_clearProgress'](){const _0x1809b1=_0x1aa3a9;this[_0x1809b1(0x1ce)]=0x0,this[_0x1809b1(0x20b)]=0x0,this[_0x1809b1(0x23a)]();}[_0x1aa3a9(0x17d)](_0x3f8e63,_0x3ec9da){const _0x2ae5fc=_0x1aa3a9;let _0x1a2074=_0x3f8e63[0x0],_0x1f9cf1=_0x1a2074[_0x2ae5fc(0x127)];return!qe(_0x1a2074,_0x3ec9da)&&(this[_0x2ae5fc(0x27b)][_0x2ae5fc(0x1eb)]({'type':_0xda4cad[_0x2ae5fc(0x132)],'content':this[_0x2ae5fc(0x13e)]['t'](_0x2ae5fc(0x1a7),_0x1f9cf1)}),!0x0);}[_0x1aa3a9(0x27f)](){const _0x51a840=_0x1aa3a9;return this[_0x51a840(0x20b)]!==0x0&&this[_0x51a840(0x1ce)]!==this[_0x51a840(0x20b)];}};J=z([R(0x0,_0x5efb18(_0x2c3e5f)),R(0x1,_0x317300),R(0x2,_0x5efb18(_0x1f3633)),R(0x3,_0x5efb18(W)),R(0x4,_0x5efb18(K)),R(0x5,_0x2dce26)],J);const mt={0x1:_0x46ee55(_0x1acff4,{'className':_0x1aa3a9(0x246)}),0x0:_0x46ee55(_0x3c6377,{'className':_0x1aa3a9(0x172)}),0x2:_0x46ee55(_0x44560a,{'className':_0x1aa3a9(0x218)})};function ht(){const _0xd1add8=_0x1aa3a9;let _0x2025d6=_0x335eaa(K),_0x231446=_0x335eaa(_0x1f3633),_0x2fb974=_0x335eaa(q),_0x421e65=_0x3a78f8(_0x2025d6[_0xd1add8(0x11f)],!0x1),_0x2e3103=_0x3a78f8(_0x2025d6[_0xd1add8(0x284)],0x0),_0xd9aef=_0x3a78f8(_0x2025d6[_0xd1add8(0x1d2)],[]),_0x195daa=_0x3a78f8(_0x2fb974[_0xd1add8(0x1d8)],{'done':0x0,'count':0x0});if(!_0x421e65)return null;function _0x59c532(_0x455f9c){const _0x6481ed=_0xd1add8;switch(_0x455f9c){case _0x57dd9d[_0x6481ed(0x278)]:return _0x46ee55(_0x46f096,{});case _0x57dd9d[_0x6481ed(0x1ab)]:case _0x57dd9d[_0x6481ed(0x1ef)]:return _0x46ee55(_0x1af0d4,{});case _0x57dd9d[_0x6481ed(0x279)]:return _0x46ee55(_0x4276ce,{});default:return null;}}function _0x101418(){const _0x1ef1b3=_0xd1add8;switch(_0x2e3103){case 0x1:return _0x231446['t'](_0x1ef1b3(0x140));case 0x2:return _0x231446['t']('exchange-client.unknownMistake');default:return _0x231446['t'](_0x1ef1b3(0x1e1));}}let _0x5900c4=_0x195daa['count']>0x0?Math[_0xd1add8(0x157)](_0x195daa[_0xd1add8(0x1b0)]/_0x195daa[_0xd1add8(0x1b7)]*0x64):0x0;return _0x5c8fb9(_0xd1add8(0x118),{'data-u-comp':'mobile-upload-notification','className':_0xd1add8(0x12d),'children':[_0x5c8fb9('header',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','children':[_0x5c8fb9(_0xd1add8(0x129),{'className':_0xd1add8(0x158),'children':[_0x46ee55(_0xd1add8(0x129),{'className':_0xd1add8(0x17e),'children':mt[_0x2e3103]}),_0x46ee55(_0xd1add8(0x129),{'className':'univer-truncate','children':_0x101418()})]}),_0x46ee55(_0xce31ad,{'size':_0xd1add8(0x18c),'variant':_0xd1add8(0x257),'aria-label':_0x231446['t'](_0xd1add8(0x231)),'onClick':()=>_0x2025d6[_0xd1add8(0x222)](),'children':_0x46ee55(_0x5a44b1,{})})]}),_0x2e3103===0x0&&_0x5c8fb9('div',{'className':_0xd1add8(0x19e),'children':[_0x46ee55(_0xd1add8(0x129),{'className':'univer-text-sm\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':_0x231446['t'](_0xd1add8(0x16b))}),_0x46ee55(_0xd1add8(0x265),{'className':_0xd1add8(0x24b),'children':_0x46ee55(_0xd1add8(0x265),{'className':_0xd1add8(0x197),'style':{'width':_0x5900c4+'%'}})}),_0x46ee55(_0xce31ad,{'variant':_0xd1add8(0x257),'onClick':()=>_0x2fb974['interrupt'](),'children':_0x231446['t']('exchange-client.cancel')})]}),_0x2e3103===0x2&&_0x5c8fb9(_0xd1add8(0x265),{'className':_0xd1add8(0x148),'children':[_0x46ee55(_0xd1add8(0x129),{'className':_0xd1add8(0x1c9),'children':_0x231446['t'](_0xd1add8(0x252))}),_0x46ee55(_0xce31ad,{'variant':'text','onClick':()=>_0x2fb974[_0xd1add8(0x19d)](),'children':_0x231446['t']('exchange-client.uploadAgain')})]}),_0xd9aef[_0xd1add8(0x14f)]>0x0&&_0x46ee55('ul',{'className':_0xd1add8(0x183),'children':_0xd9aef[_0xd1add8(0x283)](_0x3bbc5f=>_0x46ee55('li',{'children':_0x5c8fb9('a',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-50\x20univer-px-3\x20univer-py-2\x20univer-text-gray-900\x20univer-no-underline\x20dark:!univer-bg-gray-800\x20dark:!univer-text-gray-0','href':_0x3bbc5f[_0xd1add8(0x1da)],'target':'_blank','rel':_0xd1add8(0x24d),'children':[_0x46ee55(_0xd1add8(0x129),{'className':_0xd1add8(0x14b),'children':_0x59c532(_0x3bbc5f[_0xd1add8(0x1d1)])}),_0x46ee55(_0xd1add8(0x129),{'className':_0xd1add8(0x244),'children':_0x3bbc5f['name']}),_0x46ee55(_0x11c736,{'className':_0xd1add8(0x269)})]})},_0x3bbc5f[_0xd1add8(0x1da)]))}),_0x2e3103===0x1&&_0x5c8fb9('div',{'className':_0xd1add8(0x13f),'children':[_0x46ee55(_0xd1add8(0x129),{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x231446['t'](_0xd1add8(0x223),''+_0xd9aef[_0xd1add8(0x14f)])}),_0x46ee55(_0xce31ad,{'variant':'text','onClick':()=>_0x2fb974[_0xd1add8(0x19d)](),'children':_0x231446['t'](_0xd1add8(0x14e))})]})]});}let Y=class extends _0x5b511d{constructor(_0x2d7be,_0x539971){const _0x542555=_0x1aa3a9;super(),this[_0x542555(0x1c7)]=_0x2d7be,this[_0x542555(0x282)]=_0x539971,this[_0x542555(0x255)](this[_0x542555(0x282)][_0x542555(0x1c4)](_0x5b3c0a[_0x542555(0x258)],()=>_0x524f9d(ht,this[_0x542555(0x1c7)])));}};Y=z([R(0x0,_0x5efb18(_0x4d975b)),R(0x1,_0x18a697)],Y);let X=class extends _0xf1f2c{constructor(_0x445a08=A,_0x54fa15,_0x1eb1d7){const _0x6b75ec=_0x1aa3a9;super(),this[_0x6b75ec(0x1b8)]=_0x445a08,this[_0x6b75ec(0x1c7)]=_0x54fa15,this[_0x6b75ec(0x184)]=_0x1eb1d7;let {..._0x3cba06}=_0x129427({},A,this[_0x6b75ec(0x1b8)]);this[_0x6b75ec(0x184)][_0x6b75ec(0x1d6)](k,_0x3cba06);}[_0x1aa3a9(0x21a)](){_0x21238f(this['_injector'],[[U],[Y],[q,{'useClass':J}],[W,{'useClass':G}],[B,{'useClass':V}],[K,{'useClass':ft}]]);}[_0x1aa3a9(0x1fb)](){const _0x184fe5=_0x1aa3a9;_0x387f54(this[_0x184fe5(0x1c7)],[[U],[Y],[q]]);}};L(X,'pluginName',_0x1aa3a9(0x1b6)),L(X,_0x1aa3a9(0x116),D),L(X,_0x1aa3a9(0x1dd),O),X=z([_0x55d581(_0x46ca3a,_0x1a8c40,_0x37c58d),R(0x1,_0x5efb18(_0x4d975b)),R(0x2,_0x1e7c97)],X);let Z=class extends _0x5b511d{constructor(_0x87d18,_0x141d90){const _0xfa6c4=_0x1aa3a9;super(),this[_0xfa6c4(0x1fd)]=_0x87d18,this[_0xfa6c4(0x156)]=_0x141d90,this['_registerIcons'](),this[_0xfa6c4(0x120)]();}[_0x1aa3a9(0x236)](){const _0x178ad6=_0x1aa3a9;this[_0x178ad6(0x255)](this['_iconManager']['register']({'DirectExportIcon':_0xb0af65,'ExportIcon':_0xdfd1fa,'FolderIcon':_0xa8c4ca}));}[_0x1aa3a9(0x120)](){const _0x594350=_0x1aa3a9;this[_0x594350(0x255)](this[_0x594350(0x156)][_0x594350(0x195)](H,ut));}};function _0x37ff(){const _0xd8ad64=['decorate','UNIVER_DOC','UNIVER_SLIDE','_getLinkByUnitId','_messageService','function','exchange-client.networkError','78699ptYOAD','_uploadTaskNotDone','UNIVER_UNKNOWN','importFileToUnitId','_uiPartsService','map','state$','TABLES','exchange-client.downloadSuccess','object','TEXT','_signUrl','set','univer-pro.exchange-client.operate.service','packageName','next','section','application/msword','_progress$','outputType','pathname','catch','blob','visible$','_registerComponents','getCurrentUnitOfType','getTextFromUrl','&source=','message','upload','_upload','name','exchange-client.internalError','span','subscribe','fileID','Failed\x20to\x20get\x20jsonID\x20from\x20task','univer-fixed\x20univer-bottom-16\x20univer-left-3\x20univer-right-3\x20univer-z-[1000]\x20univer-box-border\x20univer-grid\x20univer-max-h-[50vh]\x20univer-gap-3\x20univer-overflow-y-auto\x20univer-rounded-xl\x20univer-bg-gray-0\x20univer-p-4\x20univer-shadow-lg\x20dark:!univer-bg-gray-900','univer-w-full\x20!univer-min-w-0','univer-mt-5\x20univer-max-h-72\x20univer-overflow-y-auto\x20univer-overflow-x-hidden','_importFileToUnitId','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-gray-0\x20univer-px-3\x20univer-pb-4\x20univer-pt-5\x20univer-shadow-md','Error','appendChild','application/vnd.openxmlformats-officedocument.wordprocessingml.document','createObjectURL','_blank','{fileID}','default','UNIT','Content-Type','Error\x20getting\x20file\x20name\x20from\x20URL:','File\x20request\x20completed\x20without\x20a\x20response.','fetchMissingChangesets','_localeService','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','exchange-client.uploadSuccess','univer-w-48','toUpperCase','import','_export','taskID','sheets','stream','univer-grid\x20univer-gap-2','createElement','_import','univer-flex\x20univer-size-5\x20univer-shrink-0\x20univer-items-center','file.json','toLowerCase','exchange-client.uploadAgain','length','JSON','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','clear','_state$','univer-text-primary-600','GET','_componentManager','floor','univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2\x20univer-font-semibold','click','defineProperty','_importToJson','_showDownloadMessage','pop','blockID','string','saveSnapshot','updateSnapshot','min','ranges','univer-mx-0\x20univer-mb-3\x20univer-mt-4\x20univer-h-1.5\x20univer-w-[324px]\x20univer-rounded-lg\x20univer-bg-gray-200','_requestState$','_showNetworkError','href','exportFile','createUnit','disposeUnit','exchange-client.wait','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','FAIL','xls','unit','split','interruptImportTask','univer-text-blue-500','\x20is\x20currently\x20active.','_visible$','_addTotalCount','small','CONNECTOR_DATA_TOO_LARGE','text/tab-separated-values','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','_uploadNotificationService','exportFileByUnitId','status','_fileTypeError','univer-flex\x20univer-size-6\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-text-xl','DOCX','AUTO','Error\x20fetching\x20file\x20from\x20URL:','success','univer-m-0\x20univer-grid\x20univer-list-none\x20univer-gap-2\x20univer-p-0','_configService','getUnitId','modern','join','files','updateState','_getImportURL','_getMaxPollingTime','icon','TSV','pptx','getTaskServerUrl','getConfig','_buildProtocolErrorMessage','exportFileBySnapshot','univer-mt-3\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-2\x20univer-pr-1','VALUES','register','_logService','univer-h-full\x20univer-rounded-lg\x20univer-bg-primary-600\x20univer-transition-[width]\x20univer-duration-500','{taskID}','accept','prototype','Info','match','retryImportFileToUnitId','univer-grid\x20univer-gap-3','call','univer-m-0\x20univer-flex\x20univer-list-none\x20univer-flex-col\x20univer-gap-2\x20univer-p-0','/universer-api/file/{fileID}/sign-url','exchange-client.unknownMistake','_isSelectingUnitImportFile','pdf','fail','exchange-client.config','exchange-client.fileTypeError','unitID','_getSignURL','originalMeta','UNIVER_SHEET','8448444wppzqo','pluginName','@univerjs-pro/exchange-client','traditional','done','symbol',':\x20HTTP\x20','current','ppt','signUrlServerUrl','UNIVER_EXCHANGE_CLIENT_PLUGIN','count','_config','UNIVER_BOARD','univer-pro.exchange-client.exchange.service','size','_univerInstanceService','uploadFileServerUrl','application/pdf','focusUnit','primary','style','Failed\x20to\x20get\x20unitID\x20from\x20task','_addDoneTask','registerComponent','setTaskInterrupted','univer-flex\x20univer-items-center\x20univer-gap-3','_injector','encode','univer-text-sm\x20univer-text-gray-700\x20dark:!univer-text-gray-200','/universer-api/exchange/{type}/import','application/vnd.ms-powerpoint','univer-mt-5\x20univer-flex\x20univer-flex-col','univer-w-10','_doneUploadTaskCount','statusText','text/csv','type','list$','application/json','signUrl','univer-flex\x20univer-justify-end\x20univer-gap-2','setConfig','removeChild','progress$','_getDownloadEndpointURL','link','PPTX','iterator','version','tables','110HMoxZE','searchParams','exchange-client.uploading','block\x20is\x20required','csv','Success','stringify','getTask','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-1.5\x20univer-pr-2','univer-mb-3\x20univer-py-0\x20univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-gray-0','resolve','exchange-client.downloading','show','headers','interrupt','{type}','UNIVER_BASE','change','saveSheetBlock','dispose','HttpImport','tsv','abort','_list','_list$','AbortError','pushLink','_httpService','onReady','file','_iconManager','exchange-client.confirm','\x20-\x20','_lastUnitImportContext','univer-pro.exchange-client.upload-notification.service','body','button','aborted','_completeProgress','code','filter','upload\x20request\x20failed','univer-grid\x20univer-gap-4','_requestService','_totalUploadTaskCount','univer-pl-2\x20univer-pr-4','855755rFpHBi','CSV','File\x20request\x20aborted.','5453444sSVBYK','/universer-api/exchange/task/{taskID}','Failed\x20to\x20get\x20fileID\x20from\x20task','importFileAsSnapshot','Failed\x20to\x20parse\x20json','get','univer-ml-1.5\x20univer-font-semibold\x20univer-text-gray-900\x20dark:!univer-text-gray-0','univer-sticky\x20univer-bottom-0\x20univer-bg-gray-0\x20univer-py-3\x20dark:!univer-bg-gray-900','univer-text-red-500','buffer','onStarting','error','isUnitLoadedFromServer','keys','input','Get\x20outputType\x20error','_exportBySnapshot','copyFileMeta','hide','exchange-client.uploadSuccessTip','application/octet-stream','complete','import\x20error','7176180CddIJZ','export','_getTaskURL','post','MODERN','_sheetBlockCache','_getUploadFileURL','univer-flex\x20univer-h-5\x20univer-text-xl','_showUploadMessage','addEventListener','exchange-client.cancel','UNDEFINED','unsubscribe','pending','univer-flex\x20univer-size-6\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-text-2xl','_registerIcons','number','toString','FileId','_emitProgress','UNRECOGNIZED','downloadEndpointUrl','revokeObjectURL','constructor','decode','Warning','getLatestCsReqIdBySid','asObservable','importer','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm','forEach','univer-text-green-500','176bCYSyS','No\x20unit\x20of\x20type\x20','_clearProgress','jsonID','univer-h-1.5\x20univer-w-full\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-bg-gray-200','values','noreferrer','30CrTVYE','?size=','replace','docx','exchange-client.interrupt','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','none','disposeWithMe','getOwnPropertyDescriptor','text','CONTENT','_refreshUnit','downloadFile','upload\x20failed:\x20missing\x20FileId\x20in\x20response','_registerUIParts','xlsx','requestState$','_taskInterrupted','Failed\x20to\x20get\x20file\x20from\x20url','_buildHttpErrorMessage','_exchangeService','data','export\x20error','div','sign\x20url\x20error','univer-text-sm\x20univer-text-gray-500','download','univer-shrink-0','PDF','isArray','_importTaskId','maxTimeoutTime','93174Zhzfyc','unshift','UNIVER_PDF','univer-animate-spin','clearTaskInterrupted','_extractErrorDetail','univer-h-1.5\x20univer-rounded-lg\x20univer-bg-primary-600\x20univer-transition-[width]\x20univer-duration-500','url','48734ghVvWS'];_0x37ff=function(){return _0xd8ad64;};return _0x37ff();}Z=z([R(0x0,_0x5efb18(_0xd3551f)),R(0x1,_0x5efb18(_0x3a2f9d))],Z);function gt(_0x4517ac){const _0x3befc9=_0x1aa3a9;let {list:_0x27770f}=_0x4517ac;function _0x352954(_0x1e9d67){const _0x313bb1=_0x1569;switch(_0x1e9d67){case _0x57dd9d[_0x313bb1(0x278)]:return _0x46ee55(_0x46f096,{});case _0x57dd9d[_0x313bb1(0x1ab)]:case _0x57dd9d[_0x313bb1(0x1ef)]:return _0x46ee55(_0x1af0d4,{});case _0x57dd9d[_0x313bb1(0x279)]:return _0x46ee55(_0x4276ce,{});default:return null;}}return _0x46ee55('div',{'className':_0x426f5e(_0x3befc9(0x12f),_0x5e8de6),'children':_0x46ee55('ul',{'className':_0x3befc9(0x1a0),'children':_0x27770f[_0x3befc9(0x283)]((_0x4524b6,_0x2cfaf)=>_0x46ee55('li',{'children':_0x5c8fb9('a',{'className':'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-gray-0\x20dark:hover:!univer-bg-gray-600','href':_0x4524b6['link'],'target':_0x3befc9(0x136),'rel':_0x3befc9(0x24d),'children':[_0x5c8fb9(_0x3befc9(0x129),{'className':'univer-flex\x20univer-w-[calc(100%-48px)]\x20univer-items-center','children':[_0x46ee55(_0x3befc9(0x129),{'className':_0x3befc9(0x22e),'children':_0x352954(_0x4524b6[_0x3befc9(0x1d1)])}),_0x46ee55(_0x117459,{'showIfEllipsis':!0x0,'title':_0x4524b6[_0x3befc9(0x127)],'asChild':!0x0,'children':_0x46ee55(_0x3befc9(0x129),{'className':'univer-ml-1\x20univer-truncate\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-gray-0','children':_0x4524b6[_0x3befc9(0x127)]})})]}),_0x46ee55(_0x3befc9(0x129),{'className':_0x3befc9(0x151),'children':_0x46ee55(_0x11c736,{})})]})},_0x2cfaf))})});}function _t(_0xc8e03){const _0xd88032=_0x1aa3a9;let {onClick:_0x1d345e,children:_0x5bf62c,className:_0x333232}=_0xc8e03;return _0x46ee55(_0xce31ad,{'size':_0xd88032(0x176),'variant':_0xd88032(0x257),'className':_0x426f5e(_0xd88032(0x154),_0x333232),'type':_0xd88032(0x203),'onClick':_0x1d345e,'children':_0x5bf62c});}function vt(){const _0x30a436=_0x1aa3a9;let _0xe11ff0=_0x335eaa(q),_0x48d8b5=_0x335eaa(_0x1f3633);function _0x18bce7(){const _0xbfa13=_0x1569;return _0xe11ff0[_0xbfa13(0x19d)]();}return _0x46ee55(_t,{'onClick':_0x18bce7,'children':_0x48d8b5['t'](_0x30a436(0x14e))});}function yt(){const _0x5c5c0c=_0x1aa3a9;let _0x4d8705=_0x335eaa(_0x1f3633);return _0x5c8fb9(_0x5c5c0c(0x265),{'className':_0x5c5c0c(0x1cc),'children':[_0x46ee55(_0x5c5c0c(0x129),{'className':_0x5c5c0c(0x1e8),'children':_0x4d8705['t'](_0x5c5c0c(0x252))}),_0x46ee55(vt,{})]});}function bt(_0x2b4051){const _0x5d52ab=_0x1aa3a9;let {count:_0x1d3a31}=_0x2b4051,_0x1e1dae=_0x335eaa(_0x1f3633);return _0x5c8fb9(_0x5d52ab(0x265),{'className':_0x5d52ab(0x193),'children':[_0x46ee55(_0x5d52ab(0x129),{'className':_0x5d52ab(0x267),'children':_0x1e1dae['t']('exchange-client.uploadSuccessTip',''+_0x1d3a31)}),_0x46ee55(vt,{})]});}function xt(){const _0x2d4d11=_0x1aa3a9;let _0x260c1c=_0x335eaa(q),_0x597e18=_0x335eaa(_0x1f3633);function _0x3d7e87(){const _0x2f045a=_0x1569;_0x260c1c[_0x2f045a(0x1ed)]();}return _0x46ee55(_t,{'onClick':_0x3d7e87,'children':_0x597e18['t'](_0x2d4d11(0x231))});}function St(){const _0x201c42=_0x1aa3a9;let _0x2443d0=_0x335eaa(q),{count:_0x2ecbe2,done:_0x3d9b2f}=_0x3a78f8(_0x2443d0[_0x201c42(0x1d8)]),_0x109d60=_0x2ecbe2>0x0?_0x3d9b2f/_0x2ecbe2:0x0;return _0x46ee55(_0x201c42(0x265),{'className':_0x201c42(0x164),'children':_0x46ee55(_0x201c42(0x265),{'className':_0x201c42(0x274),'style':{'width':Math['floor'](_0x109d60*0x64)+'%'}})});}function Ct(){const _0x58cc8a=_0x1aa3a9;let _0x241458=_0x335eaa(_0x1f3633);return _0x5c8fb9(_0x58cc8a(0x265),{'className':_0x58cc8a(0x1cc),'children':[_0x46ee55('span',{'className':'univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-gray-0','children':_0x241458['t']('exchange-client.wait')}),_0x46ee55(_0x58cc8a(0x265),{'className':_0x58cc8a(0x20c),'children':_0x46ee55(St,{})}),_0x46ee55(xt,{})]});}const wt={0x1:_0x46ee55(_0x1acff4,{'className':_0x1aa3a9(0x246)}),0x0:_0x46ee55(_0x3c6377,{'className':_0x1aa3a9(0x172)}),0x2:_0x46ee55(_0x44560a,{'className':'univer-text-red-500'})};function Tt(){const _0x4b80a6=_0x1aa3a9;let _0x3b83a1=_0x335eaa(K),_0x2ccaf8=_0x335eaa(_0x1f3633),_0x2c129d=_0x3a78f8(_0x3b83a1['state$'],0x0),_0x514d9c=_0x3a78f8(_0x3b83a1[_0x4b80a6(0x11f)],!0x1),_0xb5f07d=_0x3a78f8(_0x3b83a1[_0x4b80a6(0x1d2)],[]);function _0x2e79bc(){const _0x34bdbd=_0x4b80a6;_0x3b83a1[_0x34bdbd(0x222)]();}function _0x2f6337(_0x37e089){const _0x2c8aee=_0x4b80a6;switch(_0x37e089){case 0x1:return _0x2ccaf8['t']('exchange-client.uploadSuccess');case 0x0:return _0x2ccaf8['t'](_0x2c8aee(0x1e1));case 0x2:return _0x2ccaf8['t'](_0x2c8aee(0x1a2));default:return'';}}return _0x514d9c&&_0x5c8fb9(_0x4b80a6(0x265),{'className':_0x4b80a6(0x131),'children':[_0x5c8fb9(_0x4b80a6(0x265),{'className':_0x4b80a6(0x1e7),'children':[_0x5c8fb9(_0x4b80a6(0x129),{'className':'univer-flex\x20univer-items-center','children':[_0x46ee55('span',{'className':_0x4b80a6(0x235),'children':wt[_0x2c129d]}),_0x46ee55(_0x4b80a6(0x129),{'className':_0x4b80a6(0x216),'children':_0x2f6337(_0x2c129d)})]}),_0x46ee55(_0x4b80a6(0x129),{'className':_0x4b80a6(0x179),'onClick':_0x2e79bc,'children':_0x46ee55(_0x5a44b1,{})})]}),_0x5c8fb9(_0x4b80a6(0x265),{'children':[_0x2c129d===0x0&&_0x46ee55(Ct,{}),_0x2c129d===0x2&&_0x46ee55(yt,{}),_0xb5f07d['length']>0x0&&_0x46ee55(gt,{'list':_0xb5f07d}),_0x2c129d===0x1&&_0x46ee55(bt,{'count':_0xb5f07d[_0x4b80a6(0x14f)]})]})]});}let Q=class extends _0x5b511d{constructor(_0x53ce00,_0xef7d87){const _0xd612e8=_0x1aa3a9;super(),this[_0xd612e8(0x1c7)]=_0x53ce00,this[_0xd612e8(0x282)]=_0xef7d87,this[_0xd612e8(0x25c)]();}[_0x1aa3a9(0x25c)](){const _0x2e026a=_0x1aa3a9;this[_0x2e026a(0x255)](this['_uiPartsService'][_0x2e026a(0x1c4)](_0x5b3c0a[_0x2e026a(0x258)],()=>_0x524f9d(Tt,this[_0x2e026a(0x1c7)])));}};Q=z([R(0x0,_0x5efb18(_0x4d975b)),R(0x1,_0x18a697)],Q);let $=class extends _0xf1f2c{constructor(_0x2fd300=A,_0x288afe,_0x5c65f3){const _0x153f52=_0x1aa3a9;super(),this[_0x153f52(0x1b8)]=_0x2fd300,this[_0x153f52(0x1c7)]=_0x288afe,this['_configService']=_0x5c65f3;let {..._0x52839a}=_0x129427({},A,this[_0x153f52(0x1b8)]);this[_0x153f52(0x184)][_0x153f52(0x1d6)](k,_0x52839a);}[_0x1aa3a9(0x21a)](){_0x21238f(this['_injector'],[[Z],[Q],[q,{'useClass':J}],[W,{'useClass':G}],[B,{'useClass':V}],[K,{'useClass':ft}]]);}[_0x1aa3a9(0x1fb)](){const _0x5f4389=_0x1aa3a9;_0x387f54(this[_0x5f4389(0x1c7)],[[Z],[Q],[q]]);}};L($,_0x1aa3a9(0x1ad),_0x1aa3a9(0x1b6)),L($,_0x1aa3a9(0x116),D),L($,_0x1aa3a9(0x1dd),O),$=z([_0x55d581(_0x46ca3a,_0x1a8c40),R(0x1,_0x5efb18(_0x4d975b)),R(0x2,_0x1e7c97)],$);function Et(_0x29ca,_0x2a3915){const _0x4af1a2=_0x1aa3a9;let _0x30ec9b=_0x29ca[_0x4af1a2(0x215)](_0x2c3e5f)[_0x4af1a2(0x121)](_0x2a3915);return!_0x30ec9b||!_0x29ca['has'](_0x586b01)||!_0x29ca['has'](_0x6f2389)?!0x1:_0x29ca[_0x4af1a2(0x215)](_0x586b01)[_0x4af1a2(0x21c)](_0x30ec9b);}function Dt(_0xfac58c){const _0x38db72=_0x1aa3a9;let _0x4b9b42=_0xfac58c['workbook'];if(!_0x4b9b42)return null;let _0xda7970={};_0x4b9b42[_0x38db72(0x146)]&&Object[_0x38db72(0x21d)](_0x4b9b42['sheets'])[_0x38db72(0x245)](_0x121429=>{const _0x5decf9=_0x38db72;let _0x5776eb=_0x4b9b42[_0x5decf9(0x146)][_0x121429];_0xda7970[_0x121429]={..._0x5776eb,'originalMeta':_0x45847b(_0x29d867[_0x5decf9(0x23f)](_0x5776eb[_0x5decf9(0x1aa)]))};});let _0x300186=_0x45847b(_0x29d867['decode'](_0x4b9b42[_0x38db72(0x1aa)]));return{..._0xfac58c,'workbook':{..._0x4b9b42,'originalMeta':_0x300186,'sheets':_0xda7970},'doc':{},'slide':void 0x0,'board':void 0x0,'pdf':void 0x0};}function Ot(_0x1ac6ce){const _0x1feeee=_0x1aa3a9;let _0x150ebb={};return _0x1ac6ce[_0x1feeee(0x245)](_0x38d2d0=>{const _0x441a16=_0x1feeee;_0x150ebb[_0x38d2d0['id']]={..._0x38d2d0,'data':_0x45847b(_0x29d867['decode'](_0x38d2d0[_0x441a16(0x263)]))};}),_0x150ebb;}var kt=class{constructor(){L(this,'_sheetBlockCache',new Map());}['getUnitOnRev'](){const _0x387741=_0x1aa3a9;return Promise['resolve']({'snapshot':{'unitID':'','type':_0x57dd9d[_0x387741(0x1ab)],'rev':0x0,'workbook':void 0x0,'doc':void 0x0,'slide':void 0x0,'board':void 0x0},'changesets':[],'error':{'code':_0x46b732['OK'],'message':''}});}['getSheetBlock'](_0x24df14,_0x2ca4b3){const _0x47ca05=_0x1aa3a9;let _0x56990f=this['_sheetBlockCache'][_0x47ca05(0x215)](_0x2ca4b3[_0x47ca05(0x15e)]);return Promise[_0x47ca05(0x1e9)]({'block':_0x56990f,'error':{'code':_0x46b732['OK'],'message':''}});}['getDeserializedSheetBlock'](_0x540815,_0xdf3b4){const _0x1e2ad9=_0x1aa3a9;let _0x4dd44=this['_sheetBlockCache']['get'](_0xdf3b4[_0x1e2ad9(0x15e)]);return Promise[_0x1e2ad9(0x1e9)]({'block':_0x4dd44===void 0x0?void 0x0:{..._0x4dd44,'data':JSON['parse'](_0x29d867[_0x1e2ad9(0x23f)](_0x4dd44[_0x1e2ad9(0x263)]))},'error':{'code':_0x46b732['OK'],'message':''}});}[_0x1aa3a9(0x13d)](){return Promise['resolve']({'changesets':[],'error':{'code':_0x46b732['OK'],'message':''}});}['getResourcesRequest'](){const _0x27c9a8=_0x1aa3a9;return Promise[_0x27c9a8(0x1e9)]({'resources':{},'error':{'code':_0x46b732['OK'],'message':''}});}[_0x1aa3a9(0x160)](){return Promise['resolve']({'error':{'code':_0x46b732['OK'],'message':''}});}[_0x1aa3a9(0x161)](){const _0xbca582=_0x1aa3a9;return Promise[_0xbca582(0x1e9)]({'error':{'code':_0x46b732['OK'],'message':''}});}[_0x1aa3a9(0x1f1)](_0x547e71,_0x47cd82){const _0x306db6=_0x1aa3a9;let {block:_0x231597}=_0x47cd82;return _0x231597?(this[_0x306db6(0x22c)][_0x306db6(0x114)](_0x231597['id'],_0x231597),Promise[_0x306db6(0x1e9)]({'error':{'code':_0x46b732['OK'],'message':''},'blockID':_0x231597['id']})):Promise[_0x306db6(0x1e9)]({'error':{'code':_0x46b732[_0x306db6(0x232)],'message':_0x306db6(0x1e2)},'blockID':''});}['saveChangeset'](){return Promise['resolve']({'error':{'code':_0x46b732['OK'],'message':''},'concurrent':[]});}[_0x1aa3a9(0x221)](){const _0xd778a5=_0x1aa3a9;return Promise[_0xd778a5(0x1e9)]({'error':void 0x0,'fileMetaId':''});}[_0x1aa3a9(0x241)](){const _0x57a4eb=_0x1aa3a9;return Promise[_0x57a4eb(0x1e9)]({'error':void 0x0,'latestReqID':0x0});}};export{kt as ClientSnapshotServerService,H as EXPORT_FORMAT_DIALOG,lt as ExchangeBaseExportMode,ct as ExchangeBaseFormulaPolicy,st as ExchangeBaseImportMode,ot as ExchangeDocType,at as ExchangeFormat,q as IExchangeOperateService,W as IExchangeService,it as ImportOutputType,X as UniverExchangeClientMobileUIPlugin,$ as UniverExchangeClientPlugin,Et as isCurrentUnitLoadedFromServer,Ot as transformSheetBlockMetaToString,Dt as transformWorkbookSnapshotMetaToString};
1
+ const _0x524650=_0x3d1e;(function(_0x2c7568,_0x1ae85e){const _0x5af104=_0x3d1e,_0x1488d5=_0x2c7568();while(!![]){try{const _0x275c7a=-parseInt(_0x5af104(0x1df))/0x1+-parseInt(_0x5af104(0x1e1))/0x2+-parseInt(_0x5af104(0x172))/0x3+parseInt(_0x5af104(0x15e))/0x4+-parseInt(_0x5af104(0x186))/0x5+-parseInt(_0x5af104(0x175))/0x6*(parseInt(_0x5af104(0x158))/0x7)+parseInt(_0x5af104(0x17b))/0x8;if(_0x275c7a===_0x1ae85e)break;else _0x1488d5['push'](_0x1488d5['shift']());}catch(_0x338403){_0x1488d5['push'](_0x1488d5['shift']());}}}(_0x2322,0x9f900));import{UniverLicensePlugin as _0x4b875e}from'@univerjs-pro/license';import{DependentOn as _0x188883,Disposable as _0x5e593b,IConfigService as _0x54f9cd,Inject as _0x58ff1a,Injector as _0x29f00d,Plugin as _0x551cab,UniverInstanceType as _0x378b3c,createIdentifier as _0x2bb6c2,merge as _0x3c783e,registerDependencies as _0x5b5d4b,resolveWithBasePath as _0x419213}from'@univerjs/core';import{HTTPEventType as _0x4ca73f,HTTPResponseError as _0x5e60a6,HTTPService as _0x4b3b22,UniverNetworkPlugin as _0x24fb05}from'@univerjs/network';import{b64EncodeUnicode as _0x4d2ca6,textDecoder as _0x2c0e79,textEncoder as _0x504420}from'@univerjs-pro/collaboration';import{ErrorCode as _0x4c5264,FileSource as _0x864920}from'@univerjs/protocol';import{deflateSync as _0x17b490}from'fflate';import{Subject as _0x503d55}from'rxjs';var ie='@univerjs-pro/exchange-client',y=_0x524650(0x12e);const b=_0x524650(0x12a),x={},S=_0x524650(0x19a),C=_0x524650(0x154),w='application/vnd.ms-excel',T=_0x524650(0x12b),E=_0x524650(0x1ff),D='text/tab-separated-values',O=_0x524650(0x13b),k='application/vnd.openxmlformats-officedocument.presentationml.presentation',A=_0x524650(0x1d0),j={[_0x378b3c[_0x524650(0x199)]]:[''],[_0x378b3c[_0x524650(0x1c0)]]:[C,S],[_0x378b3c[_0x524650(0x1e4)]]:[w,T,E,D],[_0x378b3c[_0x524650(0x1de)]]:[O,k],[_0x378b3c[_0x524650(0x17d)]]:[A],[_0x378b3c[_0x524650(0x179)]]:[w,T,E,D],[_0x378b3c[_0x524650(0x138)]]:[''],[_0x378b3c['UNIVER_PROJECT']]:[''],[_0x378b3c['UNRECOGNIZED']]:['']},M={[C]:'doc',[S]:_0x524650(0x20b),[w]:_0x524650(0x1c1),[T]:_0x524650(0x1a6),[E]:_0x524650(0x180),[D]:_0x524650(0x147),[O]:_0x524650(0x209),[k]:_0x524650(0x188),[A]:_0x524650(0x182)};Object[_0x524650(0x19f)](Object[_0x524650(0x1b0)](j)['map'](([_0x32b5e8,_0x29af14])=>[_0x32b5e8,_0x29af14[_0x524650(0x1a7)](_0x140d29=>M[_0x140d29])[_0x524650(0x183)](Boolean)]));function N(_0x583a60,_0x5db5b1,_0x4ff0d7){const _0x18586c=_0x524650;let _0x79406d=document['createElement']('a');_0x79406d['href']=_0x583a60,_0x79406d['style'][_0x18586c(0x17e)]='none',_0x79406d['download']=_0x5db5b1+'.'+_0x4ff0d7,document['body'][_0x18586c(0x15c)](_0x79406d),_0x79406d[_0x18586c(0x1c5)](),document[_0x18586c(0x192)][_0x18586c(0x187)](_0x79406d);}async function P(_0x59b91c,_0x1bd975){const _0x291aaa=_0x524650;try{return await F(_0x59b91c,_0x1bd975);}catch(_0x145428){console[_0x291aaa(0x1e9)](_0x291aaa(0x1b5),_0x145428);return;}}async function F(_0xeb38d6,_0x600a42,_0x4db280){const _0xa99c99=_0x524650;var _0x5a8d82,_0xf98d49;let _0x3093c9=_0x4db280?await ae(_0xeb38d6,_0x600a42,_0x4db280):await _0x600a42['get'](_0xeb38d6,{'responseType':'blob'}),_0x591f02=_0x3093c9['body'],_0x12bd49=((_0x5a8d82=_0x3093c9['headers'][_0xa99c99(0x1d4)](_0xa99c99(0x193)))==null?void 0x0:_0x5a8d82[_0xa99c99(0x1aa)](',\x20'))??_0xa99c99(0x1b9),_0x2dda13=_0xa99c99(0x201)+(M[_0x12bd49]||'xlsx'),_0x4de5ee=(_0xf98d49=_0x3093c9[_0xa99c99(0x14e)][_0xa99c99(0x1d4)](_0xa99c99(0x1c7)))==null?void 0x0:_0xf98d49['join'](',\x20');if(_0x4de5ee){let _0x1d02ff=_0x4de5ee[_0xa99c99(0x1c6)](/filename=(.+)/);_0x1d02ff&&_0x1d02ff[0x1]&&(_0x2dda13=_0x1d02ff[0x1]);}else _0x2dda13=I(_0xeb38d6)||_0x2dda13;return new File([_0x591f02],_0x2dda13,{'type':_0x12bd49});}function ae(_0x3023d5,_0x4de4b6,_0x232c96){return new Promise((_0x3d9e8e,_0x26dc3d)=>{const _0x362a6e=_0x3d1e;let _0x324abb=!0x1,_0x1bdb79,_0x1d15b1=()=>_0x232c96[_0x362a6e(0x204)](_0x362a6e(0x203),_0x3cfe3a),_0x3cfe3a=()=>{const _0x52ba4a=_0x362a6e;if(_0x324abb)return;_0x324abb=!0x0,_0x1bdb79==null||_0x1bdb79[_0x52ba4a(0x1f3)](),_0x1d15b1();let _0x986d21=Error(_0x52ba4a(0x1f2));_0x986d21['name']=_0x52ba4a(0x141),_0x26dc3d(_0x986d21);};_0x232c96[_0x362a6e(0x14a)](_0x362a6e(0x203),_0x3cfe3a,{'once':!0x0}),_0x232c96[_0x362a6e(0x157)]?_0x3cfe3a():(_0x1bdb79=_0x4de4b6[_0x362a6e(0x1e8)]('GET',_0x3023d5,{'responseType':_0x362a6e(0x1c8)})[_0x362a6e(0x1af)]({'next'(_0x46b8ec){const _0x3da9c3=_0x362a6e;_0x324abb||_0x46b8ec[_0x3da9c3(0x16f)]!==_0x4ca73f['Response']||(_0x324abb=!0x0,_0x1d15b1(),_0x1bdb79==null||_0x1bdb79[_0x3da9c3(0x1f3)](),_0x3d9e8e(_0x46b8ec));},'error'(_0x3c2b2c){_0x324abb||(_0x324abb=!0x0,_0x1d15b1(),_0x26dc3d(_0x3c2b2c));},'complete'(){const _0x4d5319=_0x362a6e;_0x324abb||(_0x324abb=!0x0,_0x1d15b1(),_0x26dc3d(Error(_0x4d5319(0x1a3))));}}),_0x324abb&&_0x1bdb79['unsubscribe']());});}function _0x3d1e(_0x223012,_0x573436){_0x223012=_0x223012-0x125;const _0x2322a8=_0x2322();let _0x3d1e65=_0x2322a8[_0x223012];return _0x3d1e65;}function I(_0x4e8b23){const _0xf566c8=_0x524650;try{return new URL(_0x4e8b23)[_0xf566c8(0x191)][_0xf566c8(0x1a5)]('/')[_0xf566c8(0x1d9)]();}catch(_0x5de4c1){console[_0xf566c8(0x1e9)](_0xf566c8(0x19c),_0x5de4c1);return;}}function L(_0x4a9637){const _0x195bd7=_0x524650;let _0xde5e9=new Blob([_0x4a9637[_0x195bd7(0x189)]],{'type':'application/json'});return new File([_0xde5e9],_0x195bd7(0x1d5));}function R(_0x21ec86,_0x445e86){const _0x5043d7=_0x524650;return _0x21ec86[_0x5043d7(0x1ee)](_0x5043d7(0x1f0),_0x445e86);}function z(_0x15a661,_0x165dcd){const _0x8a619c=_0x524650;return _0x15a661[_0x8a619c(0x1ee)](_0x8a619c(0x177),_0x165dcd);}function B(_0x5b77f3,_0x40b3bd){const _0x18b940=_0x524650;return _0x5b77f3['replace'](_0x18b940(0x171),_0x40b3bd);}function V(_0x3150b1){'@babel/helpers - typeof';const _0xe5220f=_0x524650;return V=typeof Symbol=='function'&&typeof Symbol['iterator']==_0xe5220f(0x127)?function(_0x41c430){return typeof _0x41c430;}:function(_0x29ab04){const _0x92d9e7=_0xe5220f;return _0x29ab04&&typeof Symbol==_0x92d9e7(0x13f)&&_0x29ab04[_0x92d9e7(0x15f)]===Symbol&&_0x29ab04!==Symbol[_0x92d9e7(0x16c)]?_0x92d9e7(0x127):typeof _0x29ab04;},V(_0x3150b1);}function H(_0x5504b2,_0x22f56d){const _0x502d4f=_0x524650;if(V(_0x5504b2)!=_0x502d4f(0x1fa)||!_0x5504b2)return _0x5504b2;var _0x5a1e99=_0x5504b2[Symbol[_0x502d4f(0x1fb)]];if(_0x5a1e99!==void 0x0){var _0xd3c792=_0x5a1e99[_0x502d4f(0x161)](_0x5504b2,_0x22f56d||_0x502d4f(0x1cf));if(V(_0xd3c792)!=_0x502d4f(0x1fa))return _0xd3c792;throw TypeError(_0x502d4f(0x1e7));}return(_0x22f56d===_0x502d4f(0x149)?String:Number)(_0x5504b2);}function U(_0x11cec5){const _0x4a9b1d=_0x524650;var _0x1275b1=H(_0x11cec5,'string');return V(_0x1275b1)==_0x4a9b1d(0x127)?_0x1275b1:_0x1275b1+'';}function W(_0xdef296,_0xb0ca3c,_0x501749){return(_0xb0ca3c=U(_0xb0ca3c))in _0xdef296?Object['defineProperty'](_0xdef296,_0xb0ca3c,{'value':_0x501749,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xdef296[_0xb0ca3c]=_0x501749,_0xdef296;}function G(_0x5ea1e9,_0x1efcf2){return function(_0x4e5c79,_0x59d699){_0x1efcf2(_0x4e5c79,_0x59d699,_0x5ea1e9);};}function K(_0x28f1e2,_0x18672f,_0x3dcf6c,_0xdc1985){const _0x28d822=_0x524650;var _0x42779d=arguments[_0x28d822(0x1e0)],_0x423949=_0x42779d<0x3?_0x18672f:_0xdc1985===null?_0xdc1985=Object[_0x28d822(0x126)](_0x18672f,_0x3dcf6c):_0xdc1985,_0x37cdc7;if(typeof Reflect==_0x28d822(0x1fa)&&typeof Reflect[_0x28d822(0x1ed)]==_0x28d822(0x13f))_0x423949=Reflect[_0x28d822(0x1ed)](_0x28f1e2,_0x18672f,_0x3dcf6c,_0xdc1985);else{for(var _0x2dd859=_0x28f1e2['length']-0x1;_0x2dd859>=0x0;_0x2dd859--)(_0x37cdc7=_0x28f1e2[_0x2dd859])&&(_0x423949=(_0x42779d<0x3?_0x37cdc7(_0x423949):_0x42779d>0x3?_0x37cdc7(_0x18672f,_0x3dcf6c,_0x423949):_0x37cdc7(_0x18672f,_0x3dcf6c))||_0x423949);}return _0x42779d>0x3&&_0x423949&&Object[_0x28d822(0x13a)](_0x18672f,_0x3dcf6c,_0x423949),_0x423949;}let q=function(_0x4c3db3){const _0x595221=_0x524650;return _0x4c3db3[_0x4c3db3[_0x595221(0x18f)]=0x0]='UNDEFINED',_0x4c3db3[_0x4c3db3['UNIT']=0x1]='UNIT',_0x4c3db3[_0x4c3db3[_0x595221(0x150)]=0x2]='JSON',_0x4c3db3[_0x4c3db3['UNRECOGNIZED']=-0x1]=_0x595221(0x200),_0x4c3db3;}({}),oe=function(_0xfda09a){const _0x16ff4a=_0x524650;return _0xfda09a[_0x16ff4a(0x19e)]=_0x16ff4a(0x1a6),_0xfda09a['CSV']='csv',_0xfda09a[_0x16ff4a(0x168)]=_0x16ff4a(0x147),_0xfda09a['DOCX']=_0x16ff4a(0x20b),_0xfda09a['PPTX']=_0x16ff4a(0x188),_0xfda09a[_0x16ff4a(0x207)]='pdf',_0xfda09a;}({}),J=function(_0x20c855){const _0x5cd626=_0x524650;return _0x20c855[_0x5cd626(0x136)]=_0x5cd626(0x1f8),_0x20c855[_0x5cd626(0x1d3)]=_0x5cd626(0x1ae),_0x20c855;}({}),se=function(_0x24fd13){const _0x3c39ea=_0x524650;return _0x24fd13[_0x3c39ea(0x16a)]=_0x3c39ea(0x1eb),_0x24fd13[_0x3c39ea(0x1b7)]='tables',_0x24fd13[_0x3c39ea(0x1e5)]=_0x3c39ea(0x170),_0x24fd13[_0x3c39ea(0x13c)]=_0x3c39ea(0x1be),_0x24fd13;}({}),ce=function(_0x445997){const _0x44ec65=_0x524650;return _0x445997[_0x44ec65(0x12c)]='convert-then-values',_0x445997[_0x44ec65(0x1db)]=_0x44ec65(0x156),_0x445997[_0x44ec65(0x17a)]=_0x44ec65(0x1dc),_0x445997[_0x44ec65(0x1d7)]=_0x44ec65(0x1f7),_0x445997;}({}),le=function(_0x204891){const _0x500a60=_0x524650;return _0x204891[_0x500a60(0x1b7)]=_0x500a60(0x14c),_0x204891[_0x500a60(0x1a4)]=_0x500a60(0x151),_0x204891;}({});const Y=_0x2bb6c2('univer-pro.exchange-client.request.service');let X=class{constructor(_0x22bc78,_0x346ee5){this['_configService']=_0x22bc78,this['_httpService']=_0x346ee5,W(this,'_taskInterrupted',new Set());}[_0x524650(0x142)](){}[_0x524650(0x176)](_0x32a6fa){const _0xbf5b6e=_0x524650;this[_0xbf5b6e(0x17c)]['add'](_0x32a6fa);}['clearTaskInterrupted'](){const _0x4066a8=_0x524650;this['_taskInterrupted'][_0x4066a8(0x152)]();}async['upload'](_0x1c999a,_0x75bcf1=0x0,_0x48d37a=!0x1){const _0x13e1bf=_0x524650;if(typeof _0x1c999a=='string'){let _0x54b8dc=await P(_0x1c999a,this[_0x13e1bf(0x18a)]);if(!_0x54b8dc)throw Error(_0x13e1bf(0x1ab));_0x1c999a=_0x54b8dc;}_0x75bcf1||=_0x1c999a['size'];let _0x48d90b=new FormData();_0x48d90b['append'](_0x13e1bf(0x1ce),_0x1c999a);try{let _0x3a980d=this['_getUploadFileURL']()+_0x13e1bf(0x20d)+_0x75bcf1+_0x13e1bf(0x1c3)+_0x864920['HttpImport']+_0x13e1bf(0x1c2)+_0x48d37a,_0x5c9b2d={'body':_0x48d90b},_0x51daa9=(await this['_httpService'][_0x13e1bf(0x196)](_0x3a980d,_0x5c9b2d))[_0x13e1bf(0x192)];if(_0x51daa9[_0x13e1bf(0x1e9)]&&_0x51daa9['error'][_0x13e1bf(0x1b2)]!==_0x4c5264['OK'])throw Error(this[_0x13e1bf(0x1e6)](_0x13e1bf(0x1f4),_0x51daa9['error']));return _0x51daa9;}catch(_0xf30951){throw _0xf30951 instanceof Error?_0xf30951:Error(this[_0x13e1bf(0x1d6)]('upload\x20request\x20failed',_0xf30951));}}async['import'](_0x27c84d){const _0x3b0763=_0x524650;let {type:_0x34d15e,..._0x4e227f}=_0x27c84d;try{let _0x4eb28f=R(this[_0x3b0763(0x14b)](),''+_0x34d15e),_0x48f329={'body':_0x4e227f},_0x1c9314=(await this[_0x3b0763(0x18a)][_0x3b0763(0x196)](_0x4eb28f,_0x48f329))[_0x3b0763(0x192)];return _0x1c9314[_0x3b0763(0x1e9)]&&_0x1c9314['error'][_0x3b0763(0x1b2)]!==_0x4c5264['OK']?void 0x0:_0x1c9314;}catch{return;}}async[_0x524650(0x1b1)](_0x3d4743){const _0x5b4e69=_0x524650;let {type:_0x4faba4}=_0x3d4743;try{let _0x4eeb3b=R(this[_0x5b4e69(0x14f)](),''+_0x4faba4),_0xd1a6e2={'body':_0x3d4743},_0x1a20ad=(await this[_0x5b4e69(0x18a)][_0x5b4e69(0x196)](_0x4eeb3b,_0xd1a6e2))[_0x5b4e69(0x192)];return _0x1a20ad['error']&&_0x1a20ad[_0x5b4e69(0x1e9)][_0x5b4e69(0x1b2)]!==_0x4c5264['OK']?void 0x0:_0x1a20ad;}catch{return;}}async[_0x524650(0x206)](_0x1673a4){return new Promise((_0x155062,_0x5d80f8)=>{const _0x2da1e0=_0x3d1e;try{let _0x277878=0x0,_0x431e21=z(this['_getTaskURL'](),''+_0x1673a4),_0x158c0d=this[_0x2da1e0(0x1ba)](),_0x4f9e0d=async()=>{const _0x36aa58=_0x2da1e0;if(this['_taskInterrupted'][_0x36aa58(0x1e2)](_0x1673a4))return;let _0x197828=(await this[_0x36aa58(0x18a)][_0x36aa58(0x1d4)](_0x431e21))[_0x36aa58(0x192)];if(_0x197828[_0x36aa58(0x1e9)]&&_0x197828[_0x36aa58(0x1e9)]['code']===_0x4c5264['OK']){if(_0x197828[_0x36aa58(0x1fc)]===_0x36aa58(0x16e))_0x155062(_0x197828);else{if(_0x197828[_0x36aa58(0x1fc)]===_0x36aa58(0x15b)){let _0x1a11f4=0x3e8;if(_0x277878>=_0x158c0d){_0x5d80f8(_0x197828);return;}_0x277878>=0x7530&&(_0x1a11f4=0x1388),_0x277878+=_0x1a11f4,setTimeout(_0x4f9e0d,_0x1a11f4);}else _0x5d80f8(_0x197828);}}else _0x5d80f8(_0x197828);};_0x4f9e0d();}catch(_0x8969d4){_0x5d80f8(_0x8969d4 instanceof Error?_0x8969d4:Error(String(_0x8969d4)));}});}async[_0x524650(0x1ec)](_0x3aeca7){const _0x5463c1=_0x524650;try{let _0x50dcc0=B(this[_0x5463c1(0x164)](),''+_0x3aeca7);return(await this[_0x5463c1(0x18a)][_0x5463c1(0x1d4)](_0x50dcc0))[_0x5463c1(0x192)];}catch{return;}}async[_0x524650(0x17f)](_0x1bc816){const _0x28fc4e=_0x524650;try{return(await this['_httpService'][_0x28fc4e(0x1d4)](_0x1bc816,{'responseType':_0x28fc4e(0x1dc)}))['body'];}catch{return;}}[_0x524650(0x1e6)](_0x4ebe2f,_0x3c78c5){const _0x15b6cb=_0x524650;let _0x5aee0e=this[_0x15b6cb(0x1f5)](_0x3c78c5);return _0x5aee0e?_0x4ebe2f+':\x20'+_0x5aee0e:_0x4ebe2f;}['_buildHttpErrorMessage'](_0x566c9d,_0x5a634a){const _0x429f6f=_0x524650;if(_0x5a634a instanceof _0x5e60a6){let _0x599a97=typeof _0x5a634a[_0x429f6f(0x1fc)]==_0x429f6f(0x20a)?''+_0x5a634a[_0x429f6f(0x1fc)]+(_0x5a634a[_0x429f6f(0x13e)]?'\x20'+_0x5a634a['statusText']:''):void 0x0,_0x485ef1=this[_0x429f6f(0x1f5)](_0x5a634a['error']);return _0x599a97&&_0x485ef1?_0x566c9d+_0x429f6f(0x166)+_0x599a97+_0x429f6f(0x198)+_0x485ef1:_0x599a97?_0x566c9d+_0x429f6f(0x166)+_0x599a97:_0x485ef1?_0x566c9d+':\x20'+_0x485ef1:_0x566c9d;}let _0x9e3bdb=this[_0x429f6f(0x1f5)](_0x5a634a);return _0x9e3bdb?_0x566c9d+':\x20'+_0x9e3bdb:_0x566c9d;}[_0x524650(0x1f5)](_0xe626ca){const _0x35ed00=_0x524650;if(typeof _0xe626ca==_0x35ed00(0x149)){let _0x4c5aec=_0xe626ca[_0x35ed00(0x195)]();return _0x4c5aec['length']>0x0?_0x4c5aec:void 0x0;}if(_0xe626ca instanceof Error)return this[_0x35ed00(0x1f5)](_0xe626ca[_0x35ed00(0x18e)]);if(!_0xe626ca||typeof _0xe626ca!=_0x35ed00(0x1fa)||Array[_0x35ed00(0x1b4)](_0xe626ca))return;let _0x1fbcab=_0xe626ca,_0x6db038=this[_0x35ed00(0x1f5)](_0x1fbcab[_0x35ed00(0x18e)]);if(_0x6db038)return _0x6db038;if(_0x1fbcab[_0x35ed00(0x1e9)]&&typeof _0x1fbcab[_0x35ed00(0x1e9)]=='object'&&!Array['isArray'](_0x1fbcab[_0x35ed00(0x1e9)])){let _0x1bd1e2=this[_0x35ed00(0x1f5)](_0x1fbcab[_0x35ed00(0x1e9)]);if(_0x1bd1e2)return _0x1bd1e2;}}[_0x524650(0x16d)](){const _0x5566f1=_0x524650;let _0x4bdb95=this[_0x5566f1(0x1d1)][_0x5566f1(0x18d)](b);return(_0x4bdb95==null?void 0x0:_0x4bdb95[_0x5566f1(0x15a)])??_0x5566f1(0x146);}[_0x524650(0x14b)](){const _0x590e40=_0x524650;let _0x485840=this[_0x590e40(0x1d1)][_0x590e40(0x18d)](b);return(_0x485840==null?void 0x0:_0x485840['importServerUrl'])??_0x590e40(0x155);}[_0x524650(0x14f)](){const _0x2da4b8=_0x524650;let _0x49ed5e=this[_0x2da4b8(0x1d1)][_0x2da4b8(0x18d)](b);return(_0x49ed5e==null?void 0x0:_0x49ed5e['exportServerUrl'])??_0x2da4b8(0x19d);}[_0x524650(0x174)](){const _0x1c6a40=_0x524650;let _0x57bdba=this[_0x1c6a40(0x1d1)]['getConfig'](b);return(_0x57bdba==null?void 0x0:_0x57bdba['getTaskServerUrl'])??_0x1c6a40(0x1bc);}[_0x524650(0x164)](){const _0xd4cb51=_0x524650;let _0x3b9871=this[_0xd4cb51(0x1d1)][_0xd4cb51(0x18d)](b);return(_0x3b9871==null?void 0x0:_0x3b9871[_0xd4cb51(0x159)])??_0xd4cb51(0x12f);}[_0x524650(0x1ba)](){const _0x363694=_0x524650;let _0x3fde76=this['_configService'][_0x363694(0x18d)](b);return(_0x3fde76==null?void 0x0:_0x3fde76[_0x363694(0x173)])??0x1d4c0;}};X=K([G(0x0,_0x54f9cd),G(0x1,_0x58ff1a(_0x4b3b22))],X);const Z=_0x2bb6c2(_0x524650(0x132));let Q=class extends _0x5e593b{constructor(_0x2cb779,_0x558896,_0x35a43d){const _0xa7ea19=_0x524650;super(),this[_0xa7ea19(0x1d1)]=_0x2cb779,this[_0xa7ea19(0x18a)]=_0x558896,this[_0xa7ea19(0x1bb)]=_0x35a43d,W(this,_0xa7ea19(0x202),null),W(this,_0xa7ea19(0x1da),new _0x503d55()),W(this,_0xa7ea19(0x19b),this[_0xa7ea19(0x1da)][_0xa7ea19(0x1a1)]());}[_0x524650(0x142)](){const _0x110dd3=_0x524650;super['dispose'](),this[_0x110dd3(0x1da)][_0x110dd3(0x205)]();}['downloadFile'](_0x843598,_0x561ce5,_0x39ce84){const _0x29e6f4=_0x524650;let _0x36b716=URL[_0x29e6f4(0x133)](_0x843598);N(_0x36b716,_0x561ce5,_0x39ce84),URL[_0x29e6f4(0x153)](_0x36b716);}async['getFileById'](_0x5ae420,_0x1269dc){const _0x335dc5=_0x524650;if(_0x1269dc!=null&&_0x1269dc['aborted'])return;let _0x5222ff=await this[_0x335dc5(0x163)](_0x5ae420);if(!(!_0x5222ff||_0x1269dc!=null&&_0x1269dc['aborted']))return F(_0x5222ff,this[_0x335dc5(0x18a)],_0x1269dc);}async[_0x524650(0x1cd)](_0x29b6d3,_0x2d68c3,_0xe76209){const _0x43c9b8=_0x524650;var _0x5df2b7,_0x384049;let _0x5ddb67=await this[_0x43c9b8(0x130)](_0x29b6d3);if(!_0x5ddb67)return;let _0x39d79c=await this['_import'](_0x5ddb67,0x1,_0x2d68c3,_0xe76209);if(!_0x39d79c)return;this['_importTaskId']=_0x39d79c,this[_0x43c9b8(0x1bb)][_0x43c9b8(0x1b6)]();let _0x12c7fc=await this[_0x43c9b8(0x1bb)][_0x43c9b8(0x206)](_0x39d79c)[_0x43c9b8(0x169)](_0x138da3=>{const _0x3912bf=_0x43c9b8;var _0x5af144;let _0x51cf45=_0x138da3 instanceof Error?_0x138da3[_0x3912bf(0x18e)]:(_0x5af144=_0x138da3[_0x3912bf(0x1e9)])==null?void 0x0:_0x5af144[_0x3912bf(0x18e)];this[_0x3912bf(0x1da)][_0x3912bf(0x162)]({'error':{'code':_0x4c5264[_0x3912bf(0x200)],'message':_0x51cf45||''},'state':0x3});});if(!_0x12c7fc)return;let _0x1697ec=(_0x5df2b7=_0x12c7fc['import'])==null?void 0x0:_0x5df2b7[_0x43c9b8(0x129)],_0xc4ffd4=((_0x384049=_0x12c7fc[_0x43c9b8(0x1a2)])==null?void 0x0:_0x384049[_0x43c9b8(0x1b8)])||'';if(_0x1697ec!==0x1)this['_requestState$']['next']({'error':{'code':_0x4c5264[_0x43c9b8(0x200)],'message':_0x43c9b8(0x1a0)},'state':0x3});else{if(_0xc4ffd4[_0x43c9b8(0x1e0)]===0x0)this[_0x43c9b8(0x1da)]['next']({'error':{'code':_0x4c5264[_0x43c9b8(0x200)],'message':_0x43c9b8(0x128)},'state':0x3});else return this['_requestState$'][_0x43c9b8(0x162)]({'error':_0x12c7fc['error'],'state':0x3}),_0xc4ffd4;}}async[_0x524650(0x1ad)](_0x1dd49d,_0x448a46,_0x3592a0){return this['_importToJson'](_0x1dd49d,_0x448a46,_0x3592a0);}async[_0x524650(0x1a8)](_0x5c469f,_0x52bae1,_0x3ab8dd,_0x425da9){const _0x2a0e0c=_0x524650;return this[_0x2a0e0c(0x1e3)](_0x5c469f,0x1,_0x52bae1,_0x3ab8dd,_0x425da9);}async[_0x524650(0x1fe)](_0x334a08,_0xa02550,_0x55d0ba,_0x4c0a16){const _0x4581bd=_0x524650;return this[_0x4581bd(0x145)](_0x334a08,_0xa02550,_0x55d0ba,_0x4c0a16);}['interruptImportTask'](){const _0x5943eb=_0x524650;this[_0x5943eb(0x202)]&&this[_0x5943eb(0x1bb)][_0x5943eb(0x176)](this[_0x5943eb(0x202)]);}async[_0x524650(0x181)](_0x21aba7,_0x32761e,_0x3f4739){const _0x5067ed=_0x524650;var _0x121f2d,_0x34bfda;let _0x5e9554=await this[_0x5067ed(0x130)](_0x21aba7);if(!_0x5e9554)return;let _0x264202=await this['_import'](_0x5e9554,0x2,_0x32761e,_0x3f4739);if(!_0x264202)return;this[_0x5067ed(0x202)]=_0x264202,this[_0x5067ed(0x1bb)]['clearTaskInterrupted']();let _0x10e4f8=await this[_0x5067ed(0x1bb)]['getTask'](_0x264202)[_0x5067ed(0x169)](_0x229a31=>{const _0x53a798=_0x5067ed;var _0x17107b;let _0x184e6b=_0x229a31 instanceof Error?_0x229a31['message']:(_0x17107b=_0x229a31[_0x53a798(0x1e9)])==null?void 0x0:_0x17107b[_0x53a798(0x18e)];this[_0x53a798(0x1da)][_0x53a798(0x162)]({'error':{'code':_0x4c5264[_0x53a798(0x200)],'message':_0x184e6b||''},'state':0x3});});if(!_0x10e4f8)return;let _0x744da5=(_0x121f2d=_0x10e4f8[_0x5067ed(0x1a2)])==null?void 0x0:_0x121f2d[_0x5067ed(0x129)],_0x3c1e80=((_0x34bfda=_0x10e4f8[_0x5067ed(0x1a2)])==null?void 0x0:_0x34bfda[_0x5067ed(0x1ef)])||'';if(_0x744da5!==0x2){this[_0x5067ed(0x1da)][_0x5067ed(0x162)]({'error':{'code':_0x4c5264[_0x5067ed(0x200)],'message':'Get\x20outputType\x20error'},'state':0x3});return;}if(_0x3c1e80[_0x5067ed(0x1e0)]===0x0){this[_0x5067ed(0x1da)][_0x5067ed(0x162)]({'error':{'code':_0x4c5264[_0x5067ed(0x200)],'message':_0x5067ed(0x160)},'state':0x3});return;}this['_requestState$'][_0x5067ed(0x162)]({'error':_0x10e4f8[_0x5067ed(0x1e9)],'state':0x3});let _0x135752=await this[_0x5067ed(0x163)](_0x3c1e80);if(!_0x135752)return;let _0x4c13b7=await this[_0x5067ed(0x1bb)]['getTextFromUrl'](_0x135752);if(!_0x4c13b7)this[_0x5067ed(0x1da)]['next']({'error':{'code':_0x4c5264[_0x5067ed(0x200)],'message':_0x5067ed(0x1bf)},'state':0x5});else try{let _0xa3f2b7=JSON[_0x5067ed(0x178)](_0x4c13b7);return this['_requestState$'][_0x5067ed(0x162)]({'error':{'code':_0x4c5264['OK'],'message':_0x5067ed(0x1ac)},'state':0x5}),_0xa3f2b7;}catch{this[_0x5067ed(0x1da)][_0x5067ed(0x162)]({'error':{'code':_0x4c5264['UNRECOGNIZED'],'message':_0x5067ed(0x1c9)},'state':0x5});}}async['_exportBySnapshot'](_0x1a4824,_0x4f945e,_0x4d347a,_0x459cd2){const _0x535c4b=_0x524650;let _0x1a0482=JSON['stringify'](_0x1a4824),_0x3d306d=_0x504420[_0x535c4b(0x139)](_0x1a0482),_0x4a940c=_0x17b490(_0x3d306d),_0x3308b0=_0x3d306d[_0x535c4b(0x1e0)],_0x31609e=L(_0x4a940c),_0x50c630=await this[_0x535c4b(0x130)](_0x31609e,_0x3308b0,!0x0);if(_0x50c630)return this[_0x535c4b(0x1e3)](_0x50c630,0x2,_0x4f945e,_0x4d347a,_0x459cd2);}async['_export'](_0x5251cf,_0x3d592a,_0x30aebb,_0x366bb9,_0x3f504f){const _0x2fe3fc=_0x524650;var _0x153cf0;let _0xb3794b=await this[_0x2fe3fc(0x1bb)][_0x2fe3fc(0x1b1)]({..._0x3d592a===0x1?{'unitID':_0x5251cf}:{'jsonID':_0x5251cf},'type':_0x30aebb,'format':_0x366bb9,'options':_0x3f504f});if(!_0xb3794b){this[_0x2fe3fc(0x1da)][_0x2fe3fc(0x162)]({'error':{'code':_0x4c5264['UNRECOGNIZED'],'message':_0x2fe3fc(0x1ea)},'state':0x2});return;}if(this[_0x2fe3fc(0x1da)][_0x2fe3fc(0x162)]({'error':_0xb3794b[_0x2fe3fc(0x1e9)],'state':0x2}),_0xb3794b[_0x2fe3fc(0x1e9)]&&_0xb3794b[_0x2fe3fc(0x1e9)][_0x2fe3fc(0x1b2)]!==_0x4c5264['OK'])return;let _0x2977b2=_0xb3794b[_0x2fe3fc(0x1bd)],_0x23f149=await this[_0x2fe3fc(0x1bb)][_0x2fe3fc(0x206)](_0x2977b2)[_0x2fe3fc(0x169)](_0x569f4c=>{const _0x36ba58=_0x2fe3fc;var _0x4c3844;let _0x2c6aa6=_0x569f4c instanceof Error?_0x569f4c[_0x36ba58(0x18e)]:(_0x4c3844=_0x569f4c[_0x36ba58(0x1e9)])==null?void 0x0:_0x4c3844['message'];this[_0x36ba58(0x1da)][_0x36ba58(0x162)]({'error':{'code':_0x4c5264[_0x36ba58(0x200)],'message':_0x2c6aa6||''},'state':0x3});});if(!_0x23f149)return;let _0x2ad761=((_0x153cf0=_0x23f149[_0x2fe3fc(0x1b1)])==null?void 0x0:_0x153cf0['fileID'])||'';if(_0x2ad761['length']===0x0){this['_requestState$'][_0x2fe3fc(0x162)]({'error':{'code':_0x4c5264[_0x2fe3fc(0x200)],'message':_0x2fe3fc(0x1cc)},'state':0x3});return;}this[_0x2fe3fc(0x1da)][_0x2fe3fc(0x162)]({'error':_0x23f149['error'],'state':0x3});let _0x247474=await this['_signUrl'](_0x2ad761);if(!_0x247474)return;let _0x439538=await P(_0x247474,this['_httpService']);if(!_0x439538)this[_0x2fe3fc(0x1da)][_0x2fe3fc(0x162)]({'error':{'code':_0x4c5264[_0x2fe3fc(0x200)],'message':_0x2fe3fc(0x140)},'state':0x6});else return this['_requestState$'][_0x2fe3fc(0x162)]({'error':{'code':_0x4c5264['OK'],'message':'success'},'state':0x6}),_0x439538;}async[_0x524650(0x130)](_0x47e728,_0x2d3b2a,_0x3eb20f){const _0x23efb7=_0x524650;let _0x2362a1;try{_0x2362a1=await this[_0x23efb7(0x1bb)]['upload'](_0x47e728,_0x2d3b2a,_0x3eb20f);}catch(_0x1d2b20){let _0x1bf0fa=_0x1d2b20 instanceof Error?_0x1d2b20[_0x23efb7(0x18e)]:String(_0x1d2b20);this['_requestState$'][_0x23efb7(0x162)]({'error':{'code':_0x4c5264[_0x23efb7(0x200)],'message':_0x1bf0fa},'state':0x0});return;}if(!_0x2362a1||typeof _0x2362a1[_0x23efb7(0x135)]!=_0x23efb7(0x149)){this['_requestState$']['next']({'error':{'code':_0x4c5264[_0x23efb7(0x200)],'message':_0x23efb7(0x12d)},'state':0x0});return;}let _0x3da58d=_0x2362a1[_0x23efb7(0x135)];if(_0x3da58d[_0x23efb7(0x1e0)]===0x0)this[_0x23efb7(0x1da)][_0x23efb7(0x162)]({'error':{'code':_0x4c5264[_0x23efb7(0x200)],'message':_0x23efb7(0x137)},'state':0x0});else return this['_requestState$']['next']({'error':{'code':_0x4c5264['OK'],'message':_0x23efb7(0x1ac)},'state':0x0}),_0x3da58d;}async[_0x524650(0x194)](_0x42e793,_0x1e247d,_0x2b0a3d,_0x5693bf){const _0x2ca3c3=_0x524650;let _0x12fed6={'fileID':_0x42e793,'type':_0x2b0a3d,'outputType':_0x1e247d,'options':_0x5693bf},_0x5cc22a=await this[_0x2ca3c3(0x1bb)]['import'](_0x12fed6);if(!_0x5cc22a){this[_0x2ca3c3(0x1da)][_0x2ca3c3(0x162)]({'error':{'code':_0x4c5264[_0x2ca3c3(0x200)],'message':_0x2ca3c3(0x1f9)},'state':0x1});return;}if(_0x5cc22a[_0x2ca3c3(0x1e9)]&&_0x5cc22a['error']['code']!==_0x4c5264['OK']){this[_0x2ca3c3(0x1da)][_0x2ca3c3(0x162)]({'error':_0x5cc22a[_0x2ca3c3(0x1e9)],'state':0x1});return;}let _0x4b21ad=_0x5cc22a[_0x2ca3c3(0x1bd)];if(_0x4b21ad['length']===0x0)this[_0x2ca3c3(0x1da)][_0x2ca3c3(0x162)]({'error':{'code':_0x4c5264['UNRECOGNIZED'],'message':_0x2ca3c3(0x148)},'state':0x1});else return this['_requestState$']['next']({'error':_0x5cc22a[_0x2ca3c3(0x1e9)],'state':0x1}),_0x4b21ad;}async['_signUrl'](_0x83fc48){const _0x4909fa=_0x524650;let _0x57e60e=await this['_requestService'][_0x4909fa(0x1ec)](_0x83fc48);if(!_0x57e60e){this[_0x4909fa(0x1da)][_0x4909fa(0x162)]({'error':{'code':_0x4c5264['UNRECOGNIZED'],'message':'sign\x20url\x20error'},'state':0x4});return;}if(_0x57e60e[_0x4909fa(0x1e9)]&&_0x57e60e[_0x4909fa(0x1e9)][_0x4909fa(0x1b2)]!==_0x4c5264['OK']){this[_0x4909fa(0x1da)][_0x4909fa(0x162)]({'error':_0x57e60e[_0x4909fa(0x1e9)],'state':0x4});return;}let _0xcb3a03=_0x419213(_0x57e60e[_0x4909fa(0x167)],this[_0x4909fa(0x131)]());if(_0xcb3a03['length']===0x0)this[_0x4909fa(0x1da)][_0x4909fa(0x162)]({'error':{'code':_0x4c5264[_0x4909fa(0x200)],'message':'sign\x20url\x20error'},'state':0x4});else return this[_0x4909fa(0x1da)][_0x4909fa(0x162)]({'error':_0x57e60e['error'],'state':0x4}),_0xcb3a03;}[_0x524650(0x131)](){const _0x41e5c1=_0x524650;let _0x5d5f81=this[_0x41e5c1(0x1d1)][_0x41e5c1(0x18d)](b);return(_0x5d5f81==null?void 0x0:_0x5d5f81[_0x41e5c1(0x14d)])??location[_0x41e5c1(0x15d)];}};function _0x2322(){const _0x296fb4=['content-disposition','blob','Failed\x20to\x20parse\x20json','_config','updateSnapshot','Failed\x20to\x20get\x20fileID\x20from\x20task','importFileToUnitId','file','default','application/pdf','_configService','fetchMissingChangesets','TRADITIONAL','get','file.json','_buildHttpErrorMessage','FAIL','onStarting','pop','_requestState$','VALUES','text','forEach','UNIVER_SLIDE','527749yBDDwJ','length','2463188rUSQhD','has','_export','UNIVER_SHEET','SHEETS','_buildProtocolErrorMessage','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','stream','error','export\x20error','auto','signUrl','decorate','replace','jsonID','{type}','data','File\x20request\x20aborted.','unsubscribe','upload\x20request\x20failed','_extractErrorDetail','getDeserializedSheetBlock','fail','modern','import\x20error','object','toPrimitive','status','resolve','exportFileBySnapshot','text/csv','UNRECOGNIZED','file.','_importTaskId','abort','removeEventListener','complete','getTask','PDF','set','ppt','number','docx','copyFileMeta','?size=','_injector','getOwnPropertyDescriptor','symbol','Failed\x20to\x20get\x20unitID\x20from\x20task','outputType','exchange-client.config','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','CONVERT_THEN_VALUES','upload\x20failed:\x20missing\x20FileId\x20in\x20response','1.2.0','/universer-api/file/{fileID}/sign-url','_upload','_getDownloadEndpointURL','univer-pro.exchange-client.exchange.service','createObjectURL','getLatestCsReqIdBySid','FileId','MODERN','upload\x20failed:\x20FileId\x20is\x20empty','UNIVER_BOARD','encode','defineProperty','application/vnd.ms-powerpoint','HYBRID','workbook','statusText','function','Failed\x20to\x20get\x20file\x20from\x20url','AbortError','dispose','decode','getResourcesRequest','_exportBySnapshot','/universer-api/stream/file/upload','tsv','Failed\x20to\x20get\x20taskID\x20from\x20import\x20response','string','addEventListener','_getImportURL','tables','downloadEndpointUrl','headers','_getExportURL','JSON','ranges','clear','revokeObjectURL','application/msword','/universer-api/exchange/{type}/import','values','aborted','21GLVxUb','signUrlServerUrl','uploadFileServerUrl','pending','appendChild','origin','4593432kbzADE','constructor','Failed\x20to\x20get\x20jsonID\x20from\x20task','call','next','_signUrl','_getSignURL','UNIVER_EXCHANGE_CLIENT_PLUGIN',':\x20HTTP\x20','url','TSV','catch','AUTO','setConfig','prototype','_getUploadFileURL','done','type','sheets','{fileID}','330774iXaRBG','maxTimeoutTime','_getTaskURL','2275644ZavCzw','setTaskInterrupted','{taskID}','parse','UNIVER_BASE','TEXT','28691880giEjfH','_taskInterrupted','UNIVER_PDF','display','getTextFromUrl','csv','_importToJson','pdf','filter','pluginName','_sheetBlockCache','5369260NyOIkl','removeChild','pptx','buffer','_httpService','originalMeta','block\x20is\x20required','getConfig','message','UNDEFINED','saveSnapshot','pathname','body','Content-Type','_import','trim','post','getUnitOnRev','\x20-\x20','UNIVER_UNKNOWN','application/vnd.openxmlformats-officedocument.wordprocessingml.document','requestState$','Error\x20getting\x20file\x20name\x20from\x20URL:','/universer-api/exchange/{type}/export','XLSX','fromEntries','Get\x20outputType\x20error','asObservable','import','File\x20request\x20completed\x20without\x20a\x20response.','RANGES','split','xlsx','map','exportFileByUnitId','saveChangeset','join','upload\x20request\x20failed:\x20failed\x20to\x20read\x20source\x20file\x20from\x20url','success','importFileToJson','traditional','subscribe','entries','export','code','version','isArray','Error\x20fetching\x20file\x20from\x20URL:','clearTaskInterrupted','TABLES','unitID','application/octet-stream','_getMaxPollingTime','_requestService','/universer-api/exchange/task/{taskID}','taskID','hybrid','Failed\x20to\x20get\x20text\x20from\x20url','UNIVER_DOC','xls','&flate=','&source=','saveSheetBlock','click','match'];_0x2322=function(){return _0x296fb4;};return _0x2322();}Q=K([G(0x0,_0x54f9cd),G(0x1,_0x58ff1a(_0x4b3b22)),G(0x2,_0x58ff1a(Y))],Q);let $=class extends _0x551cab{constructor(_0x48fe1e=x,_0x5a34aa,_0x5ef525){const _0x190276=_0x524650;super(),this[_0x190276(0x1ca)]=_0x48fe1e,this[_0x190276(0x125)]=_0x5a34aa,this[_0x190276(0x1d1)]=_0x5ef525;let {..._0x33ac0d}=_0x3c783e({},x,this['_config']);this[_0x190276(0x1d1)][_0x190276(0x16b)](b,_0x33ac0d);}[_0x524650(0x1d8)](){const _0x289069=_0x524650;_0x5b5d4b(this[_0x289069(0x125)],[[Z,{'useClass':Q}],[Y,{'useClass':X}]]);}};W($,_0x524650(0x184),_0x524650(0x165)),W($,'packageName',ie),W($,_0x524650(0x1b3),y),$=K([_0x188883(_0x4b875e,_0x24fb05),G(0x1,_0x58ff1a(_0x29f00d)),G(0x2,_0x54f9cd)],$);function ue(_0x874e06){const _0x4dca6d=_0x524650;let _0x4109b3=_0x874e06[_0x4dca6d(0x13d)];if(!_0x4109b3)return null;let _0x1107a8={};_0x4109b3[_0x4dca6d(0x170)]&&Object['keys'](_0x4109b3['sheets'])[_0x4dca6d(0x1dd)](_0x171e3e=>{const _0x48d2ab=_0x4dca6d;let _0xc424fa=_0x4109b3[_0x48d2ab(0x170)][_0x171e3e];_0x1107a8[_0x171e3e]={..._0xc424fa,'originalMeta':_0x4d2ca6(_0x2c0e79['decode'](_0xc424fa['originalMeta']))};});let _0x250d1f=_0x4d2ca6(_0x2c0e79[_0x4dca6d(0x143)](_0x4109b3[_0x4dca6d(0x18b)]));return{..._0x874e06,'workbook':{..._0x4109b3,'originalMeta':_0x250d1f,'sheets':_0x1107a8},'doc':{},'slide':void 0x0,'board':void 0x0,'pdf':void 0x0};}function de(_0x476b56){const _0x407b00=_0x524650;let _0x361acc={};return _0x476b56[_0x407b00(0x1dd)](_0x3f6c5f=>{const _0x4fbebd=_0x407b00;_0x361acc[_0x3f6c5f['id']]={..._0x3f6c5f,'data':_0x4d2ca6(_0x2c0e79[_0x4fbebd(0x143)](_0x3f6c5f[_0x4fbebd(0x1f1)]))};}),_0x361acc;}var fe=class{constructor(){const _0x53c3b3=_0x524650;W(this,_0x53c3b3(0x185),new Map());}[_0x524650(0x197)](){const _0x4c2c56=_0x524650;return Promise[_0x4c2c56(0x1fd)]({'snapshot':{'unitID':'','type':_0x378b3c['UNIVER_SHEET'],'rev':0x0,'workbook':void 0x0,'doc':void 0x0,'slide':void 0x0,'board':void 0x0},'changesets':[],'error':{'code':_0x4c5264['OK'],'message':''}});}['getSheetBlock'](_0x50bf93,_0x52c550){const _0x215ec2=_0x524650;let _0x3f18f4=this[_0x215ec2(0x185)][_0x215ec2(0x1d4)](_0x52c550['blockID']);return Promise[_0x215ec2(0x1fd)]({'block':_0x3f18f4,'error':{'code':_0x4c5264['OK'],'message':''}});}[_0x524650(0x1f6)](_0x1094e6,_0x4b3e14){const _0x53b8e7=_0x524650;let _0x2d4324=this[_0x53b8e7(0x185)][_0x53b8e7(0x1d4)](_0x4b3e14['blockID']);return Promise['resolve']({'block':_0x2d4324===void 0x0?void 0x0:{..._0x2d4324,'data':JSON[_0x53b8e7(0x178)](_0x2c0e79[_0x53b8e7(0x143)](_0x2d4324[_0x53b8e7(0x1f1)]))},'error':{'code':_0x4c5264['OK'],'message':''}});}[_0x524650(0x1d2)](){const _0x9c8f03=_0x524650;return Promise[_0x9c8f03(0x1fd)]({'changesets':[],'error':{'code':_0x4c5264['OK'],'message':''}});}[_0x524650(0x144)](){return Promise['resolve']({'resources':{},'error':{'code':_0x4c5264['OK'],'message':''}});}[_0x524650(0x190)](){const _0x254496=_0x524650;return Promise[_0x254496(0x1fd)]({'error':{'code':_0x4c5264['OK'],'message':''}});}[_0x524650(0x1cb)](){const _0x153364=_0x524650;return Promise[_0x153364(0x1fd)]({'error':{'code':_0x4c5264['OK'],'message':''}});}[_0x524650(0x1c4)](_0x3a882e,_0x26cda4){const _0x4aa558=_0x524650;let {block:_0x4b0bb4}=_0x26cda4;return _0x4b0bb4?(this[_0x4aa558(0x185)][_0x4aa558(0x208)](_0x4b0bb4['id'],_0x4b0bb4),Promise[_0x4aa558(0x1fd)]({'error':{'code':_0x4c5264['OK'],'message':''},'blockID':_0x4b0bb4['id']})):Promise[_0x4aa558(0x1fd)]({'error':{'code':_0x4c5264['UNDEFINED'],'message':_0x4aa558(0x18c)},'blockID':''});}[_0x524650(0x1a9)](){const _0x294ff3=_0x524650;return Promise[_0x294ff3(0x1fd)]({'error':{'code':_0x4c5264['OK'],'message':''},'concurrent':[]});}[_0x524650(0x20c)](){const _0x73cbd=_0x524650;return Promise[_0x73cbd(0x1fd)]({'error':void 0x0,'fileMetaId':''});}[_0x524650(0x134)](){const _0x15d4cc=_0x524650;return Promise[_0x15d4cc(0x1fd)]({'error':void 0x0,'latestReqID':0x0});}};export{fe as ClientSnapshotServerService,le as ExchangeBaseExportMode,ce as ExchangeBaseFormulaPolicy,se as ExchangeBaseImportMode,J as ExchangeDocType,oe as ExchangeFormat,Z as IExchangeService,q as ImportOutputType,$ as UniverExchangeClientPlugin,de as transformSheetBlockMetaToString,ue as transformWorkbookSnapshotMetaToString};
@@ -1,11 +1,6 @@
1
- import './global.css';
2
- export { UniverExchangeClientMobileUIPlugin } from './mobile-plugin';
3
1
  export { UniverExchangeClientPlugin } from './plugin';
4
2
  export { IExchangeService } from './services/exchange.service';
5
- export { IExchangeOperateService } from './services/operate.service';
6
3
  export { ExchangeBaseExportMode, ExchangeBaseFormulaPolicy, ExchangeBaseImportMode, ExchangeDocType, ExchangeFormat, ImportOutputType, } from './services/request.service';
7
4
  export type { IExchangeBaseExportOption, IExchangeBaseImportOption, IExchangeDocImportOption, IExchangeExportOptions, IExchangeImportOptions, IExchangeSheetExportOption, IExchangeSheetImportOption, IExportRequest, IImportRequest, } from './services/request.service';
8
- export { isCurrentUnitLoadedFromServer } from './services/utils/collaboration';
9
5
  export { ClientSnapshotServerService, transformSheetBlockMetaToString, transformWorkbookSnapshotMetaToString, } from './services/utils/snapshot';
10
6
  export type { ISnapshotBlockJson, ISnapshotBlockJsonResponse, ISnapshotJson, } from './services/utils/snapshot';
11
- export { EXPORT_FORMAT_DIALOG } from './views/export-format-dialog/ExportFormatDialog';
@@ -9,5 +9,4 @@ export declare class UniverExchangeClientPlugin extends Plugin {
9
9
  static version: string;
10
10
  constructor(_config: IUniverExchangeClientConfig | undefined, _injector: Injector, _configService: IConfigService);
11
11
  onStarting(): void;
12
- onReady(): void;
13
12
  }