@stlite/desktop 0.99.1 → 0.100.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 (104) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/bin/dump_artifacts.js +37 -37
  3. package/build/assets/{ArrowVegaLiteChart-B-Kd_jPH-Biiko0Ef.js → ArrowVegaLiteChart-AuhdMhKC-SeC_gJ-J.js} +1 -1
  4. package/build/assets/{Audio-B5gtg70U-Bh9tGjUY.js → Audio-MPOURgx8-aU_D4eY9.js} +1 -1
  5. package/build/assets/{AudioInput-CgFzLi-y-C8cmY_cr.js → AudioInput-D-1IugfD-BGplNYfL.js} +1 -1
  6. package/build/assets/{Balloons-CqQICrNd-BGoQrXhe.js → Balloons-C0le0djA-Rl3P1-Qw.js} +1 -1
  7. package/build/assets/{BidiComponent-CkI6DfPr-CbrqDKKX.js → BidiComponent-BsO32qTF-CaRsffwV.js} +1 -1
  8. package/build/assets/{Button-BOmzB5Yb-Bpnf-WZl.js → Button-AgVrhiWW-CQ3htb45.js} +1 -1
  9. package/build/assets/{ButtonGroup-C5sVTynN-DPa0Tx1x.js → ButtonGroup-DhgjbbBB-UV1LCvdW.js} +1 -1
  10. package/build/assets/{CameraInput-C1f0GN0n-Bo12mEPo.js → CameraInput-CEJ0-YBv-CmSkei37.js} +1 -1
  11. package/build/assets/{ChatInput-ClqoaQw2-PqG4grVV.js → ChatInput-C2YGDsKa-C1FEQeOd.js} +1 -1
  12. package/build/assets/{Checkbox-ClzElazy-D-AYf8eH.js → Checkbox-DpcMXROE-DSO9dPZW.js} +1 -1
  13. package/build/assets/{ColorPicker-mCkrAGPa-CtUHNwYp.js → ColorPicker-DfcSCXdu-BA37Ck4e.js} +1 -1
  14. package/build/assets/{ComponentInstance-B_1vn-IY-BM9ElpU6.js → ComponentInstance-CZJj3rmu-NhIcYIOG.js} +1 -1
  15. package/build/assets/{DataFrame-CXPcdw96-Crfv7wfu.js → DataFrame-BARAH3XB-CnqwPbPm.js} +5 -5
  16. package/build/assets/{DateInput-DzaFFasw-CiMjvLKg.js → DateInput-dJ0HrH9I-DL8FHvR-.js} +1 -1
  17. package/build/assets/{DateTimeInput-WmD8vSCU-K1wv6LRy.js → DateTimeInput-Dc_pZKKa-C7OxzebL.js} +1 -1
  18. package/build/assets/{DeckGlJsonChart-CDmFrnUQ-CKLXTmyf.js → DeckGlJsonChart-dSij3LC8-z_q2cC3l.js} +1 -1
  19. package/build/assets/{DownloadButton-g54AS0W2-qOKvF9wp.js → DownloadButton-5Bz1-AC5-BKem2rXk.js} +1 -1
  20. package/build/assets/{ErrorOutline.esm-B1NqpuZN-D4cKYVYX.js → ErrorOutline.esm-BskdUBnE-7qRVaCY5.js} +1 -1
  21. package/build/assets/{Feedback-DTXGrEzp-Dd_SGEH7.js → Feedback-CQYxHKC--CSr7C1Wx.js} +1 -1
  22. package/build/assets/{FileDownload.esm-B_usFfyI-DvbGAuNe.js → FileDownload.esm-r6GccJGR-bDEy_L2M.js} +1 -1
  23. package/build/assets/{FileUploader-CzCdIxed-CWWB6xZB.js → FileUploader-CFj8fg_u-D1JfDby-.js} +1 -1
  24. package/build/assets/{FormSubmitContent-CstMuKlS-CwJlipqn.js → FormSubmitContent-RGGkQf1N-DmLXheJT.js} +1 -1
  25. package/build/assets/{GraphVizChart-nJ8rg3sZ-B_FsOCth.js → GraphVizChart-BKutiaGH-CUH7s5dq.js} +1 -1
  26. package/build/assets/{Html-CkFoh4ns-BXVZGZ2C.js → Html-D45ILBvq-DbWAwYlg.js} +1 -1
  27. package/build/assets/{IFrame-BklekJPV-_sg-kw0j.js → IFrame-DK-NJrL7-0m_xaaau.js} +1 -1
  28. package/build/assets/{ImageList-l3ue-eW1-CIwYKSdj.js → ImageList-I3kPNHfL-D4nqsHeP.js} +1 -1
  29. package/build/assets/{InputInstructions-C3LBp4_M-BIHPK8ho.js → InputInstructions-C-Zf4oQL-DB03cpCg.js} +1 -1
  30. package/build/assets/{Json-DmaVI2eK-CplwjZhb.js → Json-DSgvYeF6-CGGD4AZF.js} +1 -1
  31. package/build/assets/{LinkButton-D87rEwzB-C31w_f7c.js → LinkButton-DLHHsxjM-CI62E9Lm.js} +1 -1
  32. package/build/assets/{MenuButton-DCWYT9Sm-Cjs_mH64.js → MenuButton-Oq8rRct9-ZWaMUcpm.js} +1 -1
  33. package/build/assets/{Metric-B85kD6qx-D6Bt_A2_.js → Metric-B0YF468a-CFi-iNGW.js} +1 -1
  34. package/build/assets/{Multiselect-Dj9HMUjc-C1tpZV37.js → Multiselect-CVHVCj3g-BAkweYLb.js} +1 -1
  35. package/build/assets/{NumberInput-Bz1Z4Olo-HwfUQwvD.js → NumberInput-eLkJ0pTb-Bm92Kd3x.js} +1 -1
  36. package/build/assets/{PageLink-DxIPOlCu-CAX1QvMp.js → PageLink--V5rxSOF-BYF5Fo3G.js} +1 -1
  37. package/build/assets/{Particles-CgV8FzZe-CZFoM1Ot.js → Particles-DDLlrLpr-LgL3KDiE.js} +1 -1
  38. package/build/assets/{PlotlyChart-DApJXgoh-msWOSLU2.js → PlotlyChart-BVhQF5xf-Bvz7Dcax.js} +1 -1
  39. package/build/assets/{Progress-DXRywIcj-D00Siwwp.js → Progress-BokEk05X-Bv2QkIp3.js} +1 -1
  40. package/build/assets/{ProgressBar-By08lmvS-BN2oE7g_.js → ProgressBar-Buvlf_pb-DyD7N0tJ.js} +1 -1
  41. package/build/assets/{Radio-DZEQy4hT-Cx0uGU2K.js → Radio-CUrfrjvU-B2myln1A.js} +1 -1
  42. package/build/assets/{Selectbox-BywNaXj9-EovVNC_I.js → Selectbox-DwkeQO0S-BhQZidV7.js} +1 -1
  43. package/build/assets/{Slider-sLEYxDUG-Bby7yVsF.js → Slider--afJTFYr-thOxe-ly.js} +1 -1
  44. package/build/assets/{Snow-MxXLnUX_-CCUTgEUd.js → Snow-dqZuIKEv-DME-mG7b.js} +1 -1
  45. package/build/assets/{Spinner-D-YJYPV5-qoM-yuRL.js → Spinner-Bk-w9tKQ-Bwm_Vk6T.js} +1 -1
  46. package/build/assets/{StreamlitSyntaxHighlighter-y_BJ441X-Do55UoZC.js → StreamlitSyntaxHighlighter-U8o3ATK--CsLsQIfZ.js} +1 -1
  47. package/build/assets/{Table-ah-SFAz4-BuzfN8wv.js → Table-JcIvdLi_-D87CQj8k.js} +1 -1
  48. package/build/assets/{TableChart.esm-x67iDGlj-hZSJidLi.js → TableChart.esm-Dpji9oSF-DM4jytuW.js} +1 -1
  49. package/build/assets/{TextArea-COwbG28l-yfu63ssv.js → TextArea-DnpuYIA5-BF6b1Uz8.js} +1 -1
  50. package/build/assets/{TextInput-CPqz-18c-DPGxqoCs.js → TextInput-BOxdqnrF-BhQogAHg.js} +1 -1
  51. package/build/assets/{TimeInput-BQ-fP8Yi-FMCqKedu.js → TimeInput-CjU6O1Hm-BfH2ACHB.js} +1 -1
  52. package/build/assets/{Toast-CGUHIZQI-39x9j5Rs.js → Toast-Dxo0ZqMx-ZaDpGanl.js} +1 -1
  53. package/build/assets/{Video-CWomx7KF-nGUBPGaY.js → Video-CYwcC1JG-ulcwxNbn.js} +1 -1
  54. package/build/assets/{WidgetLabel-DUaobbKW-DD-xWyXR.js → WidgetLabel-DTUHhtk_-EPIQC9md.js} +1 -1
  55. package/build/assets/{WidgetLabelHelpIcon-Dk_Qm9_8-CtMOr4fX.js → WidgetLabelHelpIcon-CfpOYjLN-CUGwBOM8.js} +1 -1
  56. package/build/assets/{WidgetLabelHelpIconInline-CkTH9muE-i_BwkvTR.js → WidgetLabelHelpIconInline-D4j09uRD-MZxp3LdE.js} +1 -1
  57. package/build/assets/{_baseAssignValue-DbpQ8D1L-D2c_-zPN.js → _baseAssignValue-CBJGGLCx-DiCzbxPi.js} +1 -1
  58. package/build/assets/{base-input-CUlWnT-V-BhBQbzWk.js → base-input-YEUHRI4X-r3jc5z5D.js} +1 -1
  59. package/build/assets/{checkbox-CEu7IJmq-3LmskyhR.js → checkbox-iHgvbvtl-BQg_ZqeS.js} +1 -1
  60. package/build/assets/{constants-BFZIinC9-BhIl5GAK.js → constants-PqcOHKIA-Am2_uapM.js} +1 -1
  61. package/build/assets/{createDownloadLinkElement-CO9Q-pa0-BNUtAwjF.js → createDownloadLinkElement-CwAYcc1e-DbJb0I6l.js} +1 -1
  62. package/build/assets/{createSuper-CPupKoXU-C5x8b8jJ.js → createSuper-DwpxHxg4-FoILwayq.js} +1 -1
  63. package/build/assets/{data-grid-overlay-editor-D7_bQukB-DqAp5wnt.js → data-grid-overlay-editor-CLo-w1F9-B0x2Sg0-.js} +1 -1
  64. package/build/assets/{downloader-CZ7qD7NY-DGAnDDXL.js → downloader-CZ7qD7NY-Df1O1edF.js} +1 -1
  65. package/build/assets/{embed-Dc8baQ26-DAsqJZrc.js → embed-Dq8jQdGh-CBVvTzpb.js} +1 -1
  66. package/build/assets/{es6-BxevHr5y-DDD2E1qH.js → es6-BxevHr5y-BuJv1L-s.js} +2 -2
  67. package/build/assets/{formatNumber-DxMjoq14-D-XVTuz9.js → formatNumber-DefaFHuv-BSZLG6Yx.js} +1 -1
  68. package/build/assets/{iconPosition-9UgvX_TD-BzkVt95G.js → iconPosition-BPGPKkjQ-DDZxDFyf.js} +1 -1
  69. package/build/assets/{iframeResizer.contentWindow-CCqu70r3-2dQhJjwY.js → iframeResizer.contentWindow-bVTYWYos-CjhKIaGT.js} +1 -1
  70. package/build/assets/{index-BV2WTlzI-BDu7x5w-.js → index-BxCkce84-CXTDYP74.js} +1 -1
  71. package/build/assets/{index-DJf52eor.js → index-CHE20_1-.js} +6 -6
  72. package/build/assets/{index-CDNzkMOW-Ci5P-rfD.js → index-CeKcUppy-CpcuvBWq.js} +1 -1
  73. package/build/assets/{index-Co96_X1M-Dl06Rnsd.js → index-D1kjTmWN-D-hzXEqP.js} +1 -1
  74. package/build/assets/{index-BoaYS_fk-BOYhDwkq.js → index-DJIbJyKa-D4FORpfO.js} +1 -1
  75. package/build/assets/{index-CJ4tMOMA-DwN410du.js → index-I7jKEriY-B-n9NbT_.js} +1 -1
  76. package/build/assets/{input-HUYzfsf9-BxmLV7Ek.js → input-YNBnpJ12-038QD4s4.js} +1 -1
  77. package/build/assets/{memory-C-LDMFc2-DmYLyk9H.js → memory-C-LDMFc2-CpCm65Br.js} +1 -1
  78. package/build/assets/{number-overlay-editor-BQXyYsVn-Dh7S4LVs.js → number-overlay-editor-Cdnv58wS-HWHegkI_.js} +1 -1
  79. package/build/assets/{pandasStylerUtils-BVB-ECxE-CDURxvwo.js → pandasStylerUtils-DjDsh9Sw-f2V2gA5b.js} +1 -1
  80. package/build/assets/{possibleConstructorReturn-YeRoNy63-B2FGD3ja.js → possibleConstructorReturn-p-fKXom_-BPFgGBwd.js} +1 -1
  81. package/build/assets/{reactJsonViewCompat-CeSrJm8p-le930912.js → reactJsonViewCompat-gGOZBlvq-BHD6wBsT.js} +1 -1
  82. package/build/assets/{sandbox-DbnteG5V-yqy_7sO8.js → sandbox-DbnteG5V-DKMo4DSb.js} +1 -1
  83. package/build/assets/{select-haj_e3M_-P2nevO2w.js → select-DbfjugKJ-C8EDw3eO.js} +1 -1
  84. package/build/assets/{sprintfjs-DwuHM96D-Dbm-A0ro.js → sprintfjs-D5kvUrjM--36qIaY-.js} +1 -1
  85. package/build/assets/{stateful-menu-DhWFcRsJ-hkmyKt6q.js → stateful-menu-DsDbGVB_-C8xJ2Uve.js} +1 -1
  86. package/build/assets/{styled-components-BwoIjXty-eQCTyKeV.js → styled-components-BsL0GiBO-C2azWTC8.js} +1 -1
  87. package/build/assets/{styled-components-CggDa8xh-DRn7YfuV.js → styled-components-CZ4GSHz4-BVEj2YLE.js} +1 -1
  88. package/build/assets/{styled-components-CRl5ROSi-CaifWlLZ.js → styled-components-aeDchaOw-CDmV3dyQ.js} +1 -1
  89. package/build/assets/{timepicker-t1TdfIJG-CM4-XB8w.js → timepicker-BIFo5a1u-DTWDwWXK.js} +1 -1
  90. package/build/assets/{toConsumableArray-DtFGUM3A-BLxO6YGd.js → toConsumableArray-BJ_-nsuo-BPUSYd8M.js} +1 -1
  91. package/build/assets/{useBasicWidgetState-Bd8NTj87-Cqs9ZQAV.js → useBasicWidgetState-oLSfk0mv-C-D-ncQp.js} +1 -1
  92. package/build/assets/{useIntlLocale-CXWYgGQX-B2q3sAu2.js → useIntlLocale-BELAEOpY-BzvvmoUT.js} +1 -1
  93. package/build/assets/{useSelectCommon-O2yZsfjb-6cuQoolB.js → useSelectCommon-_ffsRexw-DbdQDzQX.js} +1 -1
  94. package/build/assets/{useTextInputAutoExpand-BTuNAk3V-5wcrsLsu.js → useTextInputAutoExpand-Coetw41P-BCx9E5Py.js} +1 -1
  95. package/build/assets/{useUpdateUiValue-B574r2my-B36XHNQq.js → useUpdateUiValue-CAsGHNl5-wS4IfynZ.js} +1 -1
  96. package/build/assets/{useWaveformController-EemjKAv5-CT3VAgB8.js → useWaveformController-B-n3rX5g-BppMHOmS.js} +1 -1
  97. package/build/assets/{utils-DNbZWtPr-BHo82ec1.js → utils-CzD7XIpv-COJ6XrrX.js} +1 -1
  98. package/build/assets/{withCalculatedWidth-CswVJ4Re-BeXEmgBt.js → withCalculatedWidth-nNNFed9I-Fzz_WpIw.js} +1 -1
  99. package/build/assets/{withFullScreenWrapper-CKo__VbV-B1HqecCF.js → withFullScreenWrapper-jebSlaHO-C2WriMN7.js} +1 -1
  100. package/build/electron/main.js +2 -2
  101. package/build/electron/manifest.js +1 -0
  102. package/build/index.html +1 -1
  103. package/package.json +34 -39
  104. package/wheels/streamlit-1.56.0-cp313-none-any.whl +0 -0
@@ -1 +1 @@
1
- import{r as m,dN as c}from"./index-DJf52eor.js";import{r as n}from"./inputUtils-DCYiajnz-DsrlAoKH.js";function d({formId:t,maxChars:e,setDirty:r,setUiValue:o,setValueWithSource:i,additionalAction:a}){return m.useCallback(u=>{const{value:l}=u.target;e!==0&&l.length>e||(r(!0),o(l),c({formId:t})&&i({value:l,fromUi:!0}),a&&a())},[t,e,r,o,i,a])}function p(t,e,r,o,i,a=!1){return m.useCallback(u=>{const l=a?u.metaKey||u.ctrlKey:!0;!n(u)||!l||(u.preventDefault(),r&&e(),o.allowFormEnterToSubmit(t)&&o.submitForm(t,i))},[t,i,r,e,o,a])}function b(t,e,r,o){m.useEffect(()=>{o||t!==e&&r(t)},[t,e,o,r])}export{b as a,d as c,p as v};
1
+ import{r as m,dN as c}from"./index-CHE20_1-.js";import{r as n}from"./inputUtils-DCYiajnz-DsrlAoKH.js";function d({formId:t,maxChars:e,setDirty:r,setUiValue:o,setValueWithSource:i,additionalAction:a}){return m.useCallback(u=>{const{value:l}=u.target;e!==0&&l.length>e||(r(!0),o(l),c({formId:t})&&i({value:l,fromUi:!0}),a&&a())},[t,e,r,o,i,a])}function p(t,e,r,o,i,a=!1){return m.useCallback(u=>{const l=a?u.metaKey||u.ctrlKey:!0;!n(u)||!l||(u.preventDefault(),r&&e(),o.allowFormEnterToSubmit(t)&&o.submitForm(t,i))},[t,i,r,e,o,a])}function b(t,e,r,o){m.useEffect(()=>{o||t!==e&&r(t)},[t,e,o,r])}export{b as a,d as c,p as v};
@@ -1 +1 @@
1
- import{N as G,r as i,a$ as j,w as Q,bi as M}from"./index-DJf52eor.js";class _{constructor(){this.wavesurfer=null,this.currentBlobUrl=null,this.events={},this.isPlaying=!1}initialize(e){this.wavesurfer=e,this.setupEventListeners()}setupEventListeners(){this.wavesurfer&&(this.teardownEventListeners(),this.handleTimeUpdate=e=>{this.events.onTimeUpdate?.(e*1e3)},this.handlePause=()=>{this.isPlaying=!1,this.events.onPause?.()},this.handlePlay=()=>{this.isPlaying=!0,this.events.onPlay?.()},this.handleFinish=()=>{this.isPlaying=!1,this.events.onFinish?.()},this.handleReady=()=>{this.events.onReady?.()},this.handleError=e=>{const n=e instanceof Error?e:new Error(String(e));this.events.onError?.(n)},this.wavesurfer.on("timeupdate",this.handleTimeUpdate),this.wavesurfer.on("pause",this.handlePause),this.wavesurfer.on("play",this.handlePlay),this.wavesurfer.on("finish",this.handleFinish),this.wavesurfer.on("ready",this.handleReady),this.wavesurfer.on("error",this.handleError))}setEventHandlers(e){this.events=e}async load(e){if(!this.wavesurfer)throw new Error("WaveSurfer not initialized");this.cleanupPreviousUrl();let n,s=null;try{if(e instanceof Blob)s=URL.createObjectURL(e),n=s;else if(e instanceof ArrayBuffer){const r=new Blob([e]);s=URL.createObjectURL(r),n=s}else n=e;this.currentBlobUrl=s,await this.wavesurfer.load(n)}catch(r){throw this.cleanupPreviousUrl(),r}}async play(){if(!this.wavesurfer)throw new Error("WaveSurfer not initialized");await this.wavesurfer.play()}pause(){this.wavesurfer&&this.wavesurfer.pause()}getDuration(){return this.wavesurfer?this.wavesurfer.getDuration()*1e3:0}getCurrentTime(){return this.wavesurfer?this.wavesurfer.getCurrentTime()*1e3:0}getIsPlaying(){return this.isPlaying}seekToStart(){this.wavesurfer&&this.wavesurfer.seekTo(0)}cleanupPreviousUrl(){this.currentBlobUrl&&(URL.revokeObjectURL(this.currentBlobUrl),this.currentBlobUrl=null)}destroy(){this.pause(),this.cleanupPreviousUrl(),this.wavesurfer&&(this.teardownEventListeners(),this.wavesurfer.empty(),this.wavesurfer=null),this.events={},this.isPlaying=!1,this.handleTimeUpdate=void 0,this.handlePause=void 0,this.handlePlay=void 0,this.handleFinish=void 0,this.handleReady=void 0,this.handleError=void 0}teardownEventListeners(){this.wavesurfer&&(this.handleTimeUpdate&&(this.wavesurfer.un("timeupdate",this.handleTimeUpdate),this.handleTimeUpdate=void 0),this.handlePause&&(this.wavesurfer.un("pause",this.handlePause),this.handlePause=void 0),this.handlePlay&&(this.wavesurfer.un("play",this.handlePlay),this.handlePlay=void 0),this.handleFinish&&(this.wavesurfer.un("finish",this.handleFinish),this.handleFinish=void 0),this.handleReady&&(this.wavesurfer.un("ready",this.handleReady),this.handleReady=void 0),this.handleError&&(this.wavesurfer.un("error",this.handleError),this.handleError=void 0))}}function F(c){return c.name==="NotAllowedError"||c.name==="PermissionDeniedError"||c.message?.toLowerCase().includes("permission denied")}class X{constructor(e={}){this.wavesurfer=null,this.recordPlugin=null,this.isRecording=!1,this.recordEndResolve=null,this.recordEndReject=null,this.events={},this.options=e}initialize(e,n){this.wavesurfer=e;try{const s={renderRecordedAudio:!1,mimeType:"audio/webm"};this.recordPlugin=e.registerPlugin(n.create(s)),this.setupEventListeners()}catch(s){const r=s instanceof Error?s:new Error(String(s));throw F(r)?(this.events.onPermissionDenied?.(),new Error("Microphone permission denied")):(this.events.onError?.(r),r)}}setupEventListeners(){this.recordPlugin&&(this.recordPlugin.on("record-start",()=>{this.isRecording=!0,this.events.onRecordStart?.()}),this.recordPlugin.on("record-end",e=>{this.isRecording=!1,this.events.onRecordEnd?.(e),this.recordEndResolve&&e&&e.size>0?(this.recordEndResolve(e),this.recordEndResolve=null,this.recordEndReject=null):this.recordEndReject?(this.recordEndReject(new Error("Invalid or empty recording")),this.recordEndResolve=null,this.recordEndReject=null):(this.recordEndResolve=null,this.recordEndReject=null)}),this.recordPlugin.on("record-progress",e=>{this.events.onRecordProgress?.(e)}))}setEventHandlers(e){this.events=e}async startRecording(){if(!this.recordPlugin)throw new Error("Record plugin not initialized");if(this.isRecording)return;const e=typeof this.options.sampleRate=="number"?this.options.sampleRate:void 0,n={};e!==void 0&&(n.sampleRate={ideal:e}),await this.startRecordingWithConstraints(n,e!==void 0)}async startRecordingWithConstraints(e,n){if(!this.recordPlugin)throw new Error("Record plugin not initialized");try{const s=Object.keys(e).length?e:void 0;await this.recordPlugin.startRecording(s)}catch(s){const r=s instanceof Error?s:new Error(String(s));if(F(r))throw this.events.onPermissionDenied?.(),new Error("Microphone permission denied");if(n&&(r.name==="OverconstrainedError"||r.name==="NotReadableError")){this.options.sampleRate=void 0,await this.startRecordingWithConstraints({},!1);return}throw this.events.onError?.(r),r}}async stopRecording(){if(!this.recordPlugin||!this.isRecording)throw new Error("Not currently recording");try{return await new Promise((e,n)=>{this.recordEndResolve=e,this.recordEndReject=n,this.recordPlugin?.stopRecording()})}catch(e){const n=e instanceof Error?e:new Error(String(e));throw this.events.onError?.(n),n}}cancelRecording(){this.recordPlugin&&this.isRecording&&(this.recordPlugin.stopRecording(),this.isRecording=!1,this.recordEndResolve=null,this.recordEndReject=null)}destroy(){this.cancelRecording(),this.recordPlugin&&(this.recordPlugin.destroy(),this.recordPlugin=null),this.wavesurfer=null,this.events={}}}async function Y(c,e=16e3){if(!c||c.size===0)throw new Error("Invalid or empty blob provided");if(!window.AudioContext)throw new Error("AudioContext not supported in this browser");const n=new AudioContext;try{const s=await c.arrayBuffer(),r=await n.decodeAudioData(s),o=e??r.sampleRate,u=await Z(r,o);return q(u,o)}finally{n.close()}}async function Z(c,e){const{duration:n,numberOfChannels:s,sampleRate:r}=c,o=Math.ceil(n*e);if(!window.OfflineAudioContext)throw new Error("OfflineAudioContext not supported");const u=new OfflineAudioContext(1,o,e),y=u.createBufferSource();if(y.buffer=c,s>1){const v=u.createChannelSplitter(s),p=u.createChannelMerger(1);y.connect(v);for(let l=0;l<s;l++){const d=u.createGain();d.gain.value=1/s,v.connect(d,l),d.connect(p,0,0)}p.connect(u.destination)}else y.connect(u.destination);y.start(0);try{return await u.startRendering()}catch(v){throw new Error(`Failed to resample audio from ${r}Hz to ${e}Hz: ${v instanceof Error?v.message:String(v)}`)}}function q(c,e){const n=c.length,s=n*2+44,r=new ArrayBuffer(s),o=new DataView(r),u=c.getChannelData(0),y=(p,l)=>{for(let d=0;d<l.length;d++)o.setUint8(p+d,l.charCodeAt(d))};y(0,"RIFF"),o.setUint32(4,s-8,!0),y(8,"WAVE"),y(12,"fmt "),o.setUint32(16,16,!0),o.setUint16(20,1,!0),o.setUint16(22,1,!0),o.setUint32(24,e,!0),o.setUint32(28,e*2,!0),o.setUint16(32,2,!0),o.setUint16(34,16,!0),y(36,"data"),o.setUint32(40,n*2,!0);let v=44;for(let p=0;p<n;p++){const l=Math.max(-1,Math.min(1,u[p]));o.setInt16(v,l*32767,!0),v+=2}return new Blob([r],{type:"audio/wav"})}const J=4,K=4,ee=8,re=0,te=16e3;function se({containerRef:c,sampleRate:e,events:n,waveformPadding:s=0}){const r=G(),[o,u]=i.useState("idle"),[y,v]=i.useState(null),[p,l]=i.useState(!1),d=i.useRef(null),g=i.useRef(null),a=i.useRef(null),h=i.useRef(n),z=i.useRef(!1),A=i.useRef(!1),E=i.useRef(new Set),P=i.useRef(!1),b=e===void 0?te:e,k=i.useCallback(()=>{E.current.clear(),l(!1),g.current&&(g.current.destroy(),g.current=null),a.current&&(a.current.destroy(),a.current=null),d.current&&(d.current.destroy(),d.current=null),z.current=!1,P.current=!1,u("idle"),v(null)},[]),O=i.useCallback(()=>{const t=Array.from(E.current);E.current.clear(),t.forEach(f=>{f.resolve()})},[]),D=i.useCallback(t=>{l(!1);const f=Array.from(E.current);E.current.clear(),f.forEach(w=>{w.reject(t)})},[]),U=i.useCallback(t=>{const f={onPlay:()=>{l(!0),h.current.onPlaybackPlay?.()},onPause:()=>{l(!1),h.current.onPlaybackPause?.()},onFinish:()=>{l(!1),h.current.onPlaybackFinish?.()},onReady:()=>{O()},onError:w=>{l(!1),D(w),h.current.onError?.(w)}};t.setEventHandlers(f)},[O,D]);i.useEffect(()=>{h.current=n,a.current&&U(a.current)},[n,U]);const T=i.useCallback(async()=>{if(!(z.current||A.current||!c.current)){A.current=!0;try{const[t,f]=await Promise.all([j(()=>import("./wavesurfer.esm-BdCEnQA2-Cb5Yveqj.js"),[]),j(()=>import("./record-CvRL89xC-Cpipd1Kv.js"),[])]),w=t.default,S=f.default,C=w.create({container:c.current,waveColor:r.colors.primary,progressColor:r.colors.bodyText,height:s>0?Q(r.sizes.largestElementHeight)-2*s:"auto",barWidth:J,barGap:K,barRadius:ee,cursorWidth:re,interact:!0});d.current=C,P.current=!1;const m=new X({sampleRate:b});m.initialize(C,S),m.setEventHandlers({onRecordProgress:B=>{h.current.onProgressMs?.(B)},onPermissionDenied:()=>{h.current.onPermissionDenied(),u("idle")},onError:B=>{h.current.onError(B),u("idle")}}),g.current=m;const R=new _;R.initialize(C),a.current=R,U(R),z.current=!0}catch(t){const f=t instanceof Error?t:new Error(String(t));h.current.onError?.(f)}finally{A.current=!1}}},[c,r,b,U,s]);i.useEffect(()=>(T(),()=>{k()}),[k,T]),i.useEffect(()=>{const t=d.current;if(t){if(o==="recording"){t.setOptions({waveColor:r.colors.primary,progressColor:r.colors.primary});return}if(P.current){t.setOptions({interact:!0,waveColor:M(r.colors.fadedText40,r.colors.secondaryBg),progressColor:r.colors.bodyText});return}t.setOptions({waveColor:r.colors.primary,progressColor:r.colors.bodyText})}},[o,r.colors.bodyText,r.colors.fadedText40,r.colors.primary,r.colors.secondaryBg]);const H=i.useCallback(async()=>{if(o!=="recording"){if(z.current||await T(),!g.current)throw new Error("Record backend not initialized");d.current&&d.current.setOptions({waveColor:r.colors.primary,progressColor:r.colors.primary}),P.current=!1,await g.current.startRecording(),u("recording"),v(null),l(!1),h.current.onRecordStart?.()}},[o,T,r.colors.primary]),L=i.useCallback(()=>{a.current&&d.current&&(a.current.destroy(),a.current=new _,a.current.initialize(d.current),E.current.clear(),l(!1),U(a.current)),P.current=!1},[U]),x=i.useCallback(()=>{a.current?.seekToStart(),l(!1),P.current=!0,d.current&&d.current.setOptions({interact:!0,waveColor:M(r.colors.fadedText40,r.colors.secondaryBg),progressColor:r.colors.bodyText})},[r.colors.bodyText,r.colors.fadedText40,r.colors.secondaryBg]),I=i.useCallback(async()=>{if(o!=="recording")throw new Error("Not currently recording");if(!g.current||!a.current)throw new Error("Backends not initialized");try{const t=await g.current.stopRecording();v(t),await new Promise((S,C)=>{if(!a.current){C(new Error("Player not initialized"));return}const m={resolve:()=>{E.current.delete(m),S()},reject:R=>{E.current.delete(m),C(R)}};E.current.add(m),a.current.load(t).catch(R=>{E.current.delete(m),C(R instanceof Error?R:new Error(String(R)))})}),u("idle"),l(!1),x();const f={durationMs:a.current?.getDuration()??0,sampleRate:typeof b=="number"?b:null,mimeType:t.type||"audio/webm",size:t.size},w={blob:t,meta:f};return h.current.onRecordReady?.(t),w}catch(t){const f=t instanceof Error?t:new Error(String(t));return l(!1),u("idle"),h.current.onError(f),{blob:new Blob,meta:{durationMs:0,sampleRate:null,mimeType:"audio/webm",size:0}}}},[o,x,b]),W=i.useCallback(async t=>{const f=t??y;if(!f){const w=new Error("No recorded audio to approve");h.current.onError(w);return}try{const w=await Y(f,b);await h.current.onApprove?.(w),v(null),u("idle")}catch(w){const S=w instanceof Error?w:new Error(String(w));h.current.onError(S)}},[y,b]),N=i.useCallback(()=>{o==="recording"&&g.current?.cancelRecording(),L(),v(null),u("idle"),l(!1),P.current=!1,h.current.onCancel?.()},[o,L]),V=i.useMemo(()=>({isPlaying:()=>a.current?.getIsPlaying()??!1,play:async()=>{if(!a.current)throw new Error("Player not initialized");await a.current.play()},pause:()=>{a.current?.pause()},load:async t=>{if(z.current||await T(),!a.current)throw new Error("Player not initialized");await a.current.load(t),x()},getCurrentTimeMs:()=>a.current?.getCurrentTime()??0,getDurationMs:()=>a.current?.getDuration()??0}),[x,T]),$=i.useCallback(t=>{h.current=t},[]);return i.useEffect(()=>()=>{k()},[k]),{state:o,isPlaybackPlaying:p,mountRef:c,start:H,stop:I,approve:W,cancel:N,destroy:k,playback:V,setEventHandlers:$}}export{se as c};
1
+ import{N as G,r as i,a$ as j,w as Q,bi as M}from"./index-CHE20_1-.js";class _{constructor(){this.wavesurfer=null,this.currentBlobUrl=null,this.events={},this.isPlaying=!1}initialize(e){this.wavesurfer=e,this.setupEventListeners()}setupEventListeners(){this.wavesurfer&&(this.teardownEventListeners(),this.handleTimeUpdate=e=>{this.events.onTimeUpdate?.(e*1e3)},this.handlePause=()=>{this.isPlaying=!1,this.events.onPause?.()},this.handlePlay=()=>{this.isPlaying=!0,this.events.onPlay?.()},this.handleFinish=()=>{this.isPlaying=!1,this.events.onFinish?.()},this.handleReady=()=>{this.events.onReady?.()},this.handleError=e=>{const n=e instanceof Error?e:new Error(String(e));this.events.onError?.(n)},this.wavesurfer.on("timeupdate",this.handleTimeUpdate),this.wavesurfer.on("pause",this.handlePause),this.wavesurfer.on("play",this.handlePlay),this.wavesurfer.on("finish",this.handleFinish),this.wavesurfer.on("ready",this.handleReady),this.wavesurfer.on("error",this.handleError))}setEventHandlers(e){this.events=e}async load(e){if(!this.wavesurfer)throw new Error("WaveSurfer not initialized");this.cleanupPreviousUrl();let n,s=null;try{if(e instanceof Blob)s=URL.createObjectURL(e),n=s;else if(e instanceof ArrayBuffer){const r=new Blob([e]);s=URL.createObjectURL(r),n=s}else n=e;this.currentBlobUrl=s,await this.wavesurfer.load(n)}catch(r){throw this.cleanupPreviousUrl(),r}}async play(){if(!this.wavesurfer)throw new Error("WaveSurfer not initialized");await this.wavesurfer.play()}pause(){this.wavesurfer&&this.wavesurfer.pause()}getDuration(){return this.wavesurfer?this.wavesurfer.getDuration()*1e3:0}getCurrentTime(){return this.wavesurfer?this.wavesurfer.getCurrentTime()*1e3:0}getIsPlaying(){return this.isPlaying}seekToStart(){this.wavesurfer&&this.wavesurfer.seekTo(0)}cleanupPreviousUrl(){this.currentBlobUrl&&(URL.revokeObjectURL(this.currentBlobUrl),this.currentBlobUrl=null)}destroy(){this.pause(),this.cleanupPreviousUrl(),this.wavesurfer&&(this.teardownEventListeners(),this.wavesurfer.empty(),this.wavesurfer=null),this.events={},this.isPlaying=!1,this.handleTimeUpdate=void 0,this.handlePause=void 0,this.handlePlay=void 0,this.handleFinish=void 0,this.handleReady=void 0,this.handleError=void 0}teardownEventListeners(){this.wavesurfer&&(this.handleTimeUpdate&&(this.wavesurfer.un("timeupdate",this.handleTimeUpdate),this.handleTimeUpdate=void 0),this.handlePause&&(this.wavesurfer.un("pause",this.handlePause),this.handlePause=void 0),this.handlePlay&&(this.wavesurfer.un("play",this.handlePlay),this.handlePlay=void 0),this.handleFinish&&(this.wavesurfer.un("finish",this.handleFinish),this.handleFinish=void 0),this.handleReady&&(this.wavesurfer.un("ready",this.handleReady),this.handleReady=void 0),this.handleError&&(this.wavesurfer.un("error",this.handleError),this.handleError=void 0))}}function F(c){return c.name==="NotAllowedError"||c.name==="PermissionDeniedError"||c.message?.toLowerCase().includes("permission denied")}class X{constructor(e={}){this.wavesurfer=null,this.recordPlugin=null,this.isRecording=!1,this.recordEndResolve=null,this.recordEndReject=null,this.events={},this.options=e}initialize(e,n){this.wavesurfer=e;try{const s={renderRecordedAudio:!1,mimeType:"audio/webm"};this.recordPlugin=e.registerPlugin(n.create(s)),this.setupEventListeners()}catch(s){const r=s instanceof Error?s:new Error(String(s));throw F(r)?(this.events.onPermissionDenied?.(),new Error("Microphone permission denied")):(this.events.onError?.(r),r)}}setupEventListeners(){this.recordPlugin&&(this.recordPlugin.on("record-start",()=>{this.isRecording=!0,this.events.onRecordStart?.()}),this.recordPlugin.on("record-end",e=>{this.isRecording=!1,this.events.onRecordEnd?.(e),this.recordEndResolve&&e&&e.size>0?(this.recordEndResolve(e),this.recordEndResolve=null,this.recordEndReject=null):this.recordEndReject?(this.recordEndReject(new Error("Invalid or empty recording")),this.recordEndResolve=null,this.recordEndReject=null):(this.recordEndResolve=null,this.recordEndReject=null)}),this.recordPlugin.on("record-progress",e=>{this.events.onRecordProgress?.(e)}))}setEventHandlers(e){this.events=e}async startRecording(){if(!this.recordPlugin)throw new Error("Record plugin not initialized");if(this.isRecording)return;const e=typeof this.options.sampleRate=="number"?this.options.sampleRate:void 0,n={};e!==void 0&&(n.sampleRate={ideal:e}),await this.startRecordingWithConstraints(n,e!==void 0)}async startRecordingWithConstraints(e,n){if(!this.recordPlugin)throw new Error("Record plugin not initialized");try{const s=Object.keys(e).length?e:void 0;await this.recordPlugin.startRecording(s)}catch(s){const r=s instanceof Error?s:new Error(String(s));if(F(r))throw this.events.onPermissionDenied?.(),new Error("Microphone permission denied");if(n&&(r.name==="OverconstrainedError"||r.name==="NotReadableError")){this.options.sampleRate=void 0,await this.startRecordingWithConstraints({},!1);return}throw this.events.onError?.(r),r}}async stopRecording(){if(!this.recordPlugin||!this.isRecording)throw new Error("Not currently recording");try{return await new Promise((e,n)=>{this.recordEndResolve=e,this.recordEndReject=n,this.recordPlugin?.stopRecording()})}catch(e){const n=e instanceof Error?e:new Error(String(e));throw this.events.onError?.(n),n}}cancelRecording(){this.recordPlugin&&this.isRecording&&(this.recordPlugin.stopRecording(),this.isRecording=!1,this.recordEndResolve=null,this.recordEndReject=null)}destroy(){this.cancelRecording(),this.recordPlugin&&(this.recordPlugin.destroy(),this.recordPlugin=null),this.wavesurfer=null,this.events={}}}async function Y(c,e=16e3){if(!c||c.size===0)throw new Error("Invalid or empty blob provided");if(!window.AudioContext)throw new Error("AudioContext not supported in this browser");const n=new AudioContext;try{const s=await c.arrayBuffer(),r=await n.decodeAudioData(s),o=e??r.sampleRate,u=await Z(r,o);return q(u,o)}finally{n.close()}}async function Z(c,e){const{duration:n,numberOfChannels:s,sampleRate:r}=c,o=Math.ceil(n*e);if(!window.OfflineAudioContext)throw new Error("OfflineAudioContext not supported");const u=new OfflineAudioContext(1,o,e),y=u.createBufferSource();if(y.buffer=c,s>1){const v=u.createChannelSplitter(s),p=u.createChannelMerger(1);y.connect(v);for(let l=0;l<s;l++){const d=u.createGain();d.gain.value=1/s,v.connect(d,l),d.connect(p,0,0)}p.connect(u.destination)}else y.connect(u.destination);y.start(0);try{return await u.startRendering()}catch(v){throw new Error(`Failed to resample audio from ${r}Hz to ${e}Hz: ${v instanceof Error?v.message:String(v)}`)}}function q(c,e){const n=c.length,s=n*2+44,r=new ArrayBuffer(s),o=new DataView(r),u=c.getChannelData(0),y=(p,l)=>{for(let d=0;d<l.length;d++)o.setUint8(p+d,l.charCodeAt(d))};y(0,"RIFF"),o.setUint32(4,s-8,!0),y(8,"WAVE"),y(12,"fmt "),o.setUint32(16,16,!0),o.setUint16(20,1,!0),o.setUint16(22,1,!0),o.setUint32(24,e,!0),o.setUint32(28,e*2,!0),o.setUint16(32,2,!0),o.setUint16(34,16,!0),y(36,"data"),o.setUint32(40,n*2,!0);let v=44;for(let p=0;p<n;p++){const l=Math.max(-1,Math.min(1,u[p]));o.setInt16(v,l*32767,!0),v+=2}return new Blob([r],{type:"audio/wav"})}const J=4,K=4,ee=8,re=0,te=16e3;function se({containerRef:c,sampleRate:e,events:n,waveformPadding:s=0}){const r=G(),[o,u]=i.useState("idle"),[y,v]=i.useState(null),[p,l]=i.useState(!1),d=i.useRef(null),g=i.useRef(null),a=i.useRef(null),h=i.useRef(n),z=i.useRef(!1),A=i.useRef(!1),E=i.useRef(new Set),P=i.useRef(!1),b=e===void 0?te:e,k=i.useCallback(()=>{E.current.clear(),l(!1),g.current&&(g.current.destroy(),g.current=null),a.current&&(a.current.destroy(),a.current=null),d.current&&(d.current.destroy(),d.current=null),z.current=!1,P.current=!1,u("idle"),v(null)},[]),O=i.useCallback(()=>{const t=Array.from(E.current);E.current.clear(),t.forEach(f=>{f.resolve()})},[]),D=i.useCallback(t=>{l(!1);const f=Array.from(E.current);E.current.clear(),f.forEach(w=>{w.reject(t)})},[]),U=i.useCallback(t=>{const f={onPlay:()=>{l(!0),h.current.onPlaybackPlay?.()},onPause:()=>{l(!1),h.current.onPlaybackPause?.()},onFinish:()=>{l(!1),h.current.onPlaybackFinish?.()},onReady:()=>{O()},onError:w=>{l(!1),D(w),h.current.onError?.(w)}};t.setEventHandlers(f)},[O,D]);i.useEffect(()=>{h.current=n,a.current&&U(a.current)},[n,U]);const T=i.useCallback(async()=>{if(!(z.current||A.current||!c.current)){A.current=!0;try{const[t,f]=await Promise.all([j(()=>import("./wavesurfer.esm-BdCEnQA2-Cb5Yveqj.js"),[]),j(()=>import("./record-CvRL89xC-Cpipd1Kv.js"),[])]),w=t.default,S=f.default,C=w.create({container:c.current,waveColor:r.colors.primary,progressColor:r.colors.bodyText,height:s>0?Q(r.sizes.largestElementHeight)-2*s:"auto",barWidth:J,barGap:K,barRadius:ee,cursorWidth:re,interact:!0});d.current=C,P.current=!1;const m=new X({sampleRate:b});m.initialize(C,S),m.setEventHandlers({onRecordProgress:B=>{h.current.onProgressMs?.(B)},onPermissionDenied:()=>{h.current.onPermissionDenied(),u("idle")},onError:B=>{h.current.onError(B),u("idle")}}),g.current=m;const R=new _;R.initialize(C),a.current=R,U(R),z.current=!0}catch(t){const f=t instanceof Error?t:new Error(String(t));h.current.onError?.(f)}finally{A.current=!1}}},[c,r,b,U,s]);i.useEffect(()=>(T(),()=>{k()}),[k,T]),i.useEffect(()=>{const t=d.current;if(t){if(o==="recording"){t.setOptions({waveColor:r.colors.primary,progressColor:r.colors.primary});return}if(P.current){t.setOptions({interact:!0,waveColor:M(r.colors.fadedText40,r.colors.secondaryBg),progressColor:r.colors.bodyText});return}t.setOptions({waveColor:r.colors.primary,progressColor:r.colors.bodyText})}},[o,r.colors.bodyText,r.colors.fadedText40,r.colors.primary,r.colors.secondaryBg]);const H=i.useCallback(async()=>{if(o!=="recording"){if(z.current||await T(),!g.current)throw new Error("Record backend not initialized");d.current&&d.current.setOptions({waveColor:r.colors.primary,progressColor:r.colors.primary}),P.current=!1,await g.current.startRecording(),u("recording"),v(null),l(!1),h.current.onRecordStart?.()}},[o,T,r.colors.primary]),L=i.useCallback(()=>{a.current&&d.current&&(a.current.destroy(),a.current=new _,a.current.initialize(d.current),E.current.clear(),l(!1),U(a.current)),P.current=!1},[U]),x=i.useCallback(()=>{a.current?.seekToStart(),l(!1),P.current=!0,d.current&&d.current.setOptions({interact:!0,waveColor:M(r.colors.fadedText40,r.colors.secondaryBg),progressColor:r.colors.bodyText})},[r.colors.bodyText,r.colors.fadedText40,r.colors.secondaryBg]),I=i.useCallback(async()=>{if(o!=="recording")throw new Error("Not currently recording");if(!g.current||!a.current)throw new Error("Backends not initialized");try{const t=await g.current.stopRecording();v(t),await new Promise((S,C)=>{if(!a.current){C(new Error("Player not initialized"));return}const m={resolve:()=>{E.current.delete(m),S()},reject:R=>{E.current.delete(m),C(R)}};E.current.add(m),a.current.load(t).catch(R=>{E.current.delete(m),C(R instanceof Error?R:new Error(String(R)))})}),u("idle"),l(!1),x();const f={durationMs:a.current?.getDuration()??0,sampleRate:typeof b=="number"?b:null,mimeType:t.type||"audio/webm",size:t.size},w={blob:t,meta:f};return h.current.onRecordReady?.(t),w}catch(t){const f=t instanceof Error?t:new Error(String(t));return l(!1),u("idle"),h.current.onError(f),{blob:new Blob,meta:{durationMs:0,sampleRate:null,mimeType:"audio/webm",size:0}}}},[o,x,b]),W=i.useCallback(async t=>{const f=t??y;if(!f){const w=new Error("No recorded audio to approve");h.current.onError(w);return}try{const w=await Y(f,b);await h.current.onApprove?.(w),v(null),u("idle")}catch(w){const S=w instanceof Error?w:new Error(String(w));h.current.onError(S)}},[y,b]),N=i.useCallback(()=>{o==="recording"&&g.current?.cancelRecording(),L(),v(null),u("idle"),l(!1),P.current=!1,h.current.onCancel?.()},[o,L]),V=i.useMemo(()=>({isPlaying:()=>a.current?.getIsPlaying()??!1,play:async()=>{if(!a.current)throw new Error("Player not initialized");await a.current.play()},pause:()=>{a.current?.pause()},load:async t=>{if(z.current||await T(),!a.current)throw new Error("Player not initialized");await a.current.load(t),x()},getCurrentTimeMs:()=>a.current?.getCurrentTime()??0,getDurationMs:()=>a.current?.getDuration()??0}),[x,T]),$=i.useCallback(t=>{h.current=t},[]);return i.useEffect(()=>()=>{k()},[k]),{state:o,isPlaybackPlaying:p,mountRef:c,start:H,stop:I,approve:W,cancel:N,destroy:k,playback:V,setEventHandlers:$}}export{se as c};
@@ -1,4 +1,4 @@
1
- import{r as p,d2 as V,j as f,V as Li,d3 as Vi,x as j,Q as Hi,ad as Ti,aZ as Bi,an as $i,ax as za,cO as Ni,av as Wi,a7 as Gi,am as Ui,E,_ as D,d4 as d}from"./index-DJf52eor.js";import{c as _i}from"./TableChart.esm-x67iDGlj-hZSJidLi.js";import{i as Ki}from"./ErrorOutline.esm-B1NqpuZN-D4cKYVYX.js";import{t as Yi}from"./UploadFileInfo-DdcsXhjv-m2CBXl3F.js";var li=p.forwardRef(function(a,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return p.createElement(E,D({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},a,{ref:i}),p.createElement("rect",{width:24,height:24,fill:"none"}),p.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),p.createElement("path",{d:"M14 17H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}))});li.displayName="Article";var ci=p.forwardRef(function(a,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return p.createElement(E,D({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},a,{ref:i}),p.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),p.createElement("path",{d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}))});ci.displayName="Code";var ri=p.forwardRef(function(a,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return p.createElement(E,D({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},a,{ref:i}),p.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),p.createElement("path",{d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"}))});ri.displayName="Description";var si=p.forwardRef(function(a,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return p.createElement(E,D({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},a,{ref:i}),p.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),p.createElement("path",{d:"M9.17 6l2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}))});si.displayName="Folder";var di=p.forwardRef(function(a,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return p.createElement(E,D({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},a,{ref:i}),p.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),p.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"}))});di.displayName="Image";var mi=p.forwardRef(function(a,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return p.createElement(E,D({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},a,{ref:i}),p.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),p.createElement("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))});mi.displayName="InsertDriveFile";var ui=p.forwardRef(function(a,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return p.createElement(E,D({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},a,{ref:i}),p.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),p.createElement("path",{d:"M12 3l.01 10.55c-.59-.34-1.27-.55-2-.55a4.001 4.001 0 100 8c2.22 0 3.99-1.79 3.99-4V7h4V3h-6zm-1.99 16c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}))});ui.displayName="MusicNote";var vi=p.forwardRef(function(a,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return p.createElement(E,D({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},a,{ref:i}),p.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),p.createElement("path",{d:"M15 8v8H5V8h10m1-2H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4V7c0-.55-.45-1-1-1z"}))});vi.displayName="Videocam";var fi=p.forwardRef(function(a,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return p.createElement(E,D({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},a,{ref:i}),p.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),p.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm4.29 12.89a.996.996 0 11-1.41 1.41L12 13.41 9.11 16.3a.996.996 0 11-1.41-1.41L10.59 12 7.71 9.11A.996.996 0 119.12 7.7L12 10.59l2.89-2.89a.996.996 0 111.41 1.41L13.41 12l2.88 2.89z"}))});fi.displayName="Cancel";const Ji=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function N(a,i,t){const e=Xi(a),{webkitRelativePath:n}=a,l=typeof i=="string"?i:typeof n=="string"&&n.length>0?n:`./${a.name}`;return typeof e.path!="string"&&Ka(e,"path",l),Ka(e,"relativePath",l),e}function Xi(a){const{name:i}=a;if(i&&i.lastIndexOf(".")!==-1&&!a.type){const t=i.split(".").pop().toLowerCase(),e=Ji.get(t);e&&Object.defineProperty(a,"type",{value:e,writable:!1,configurable:!1,enumerable:!0})}return a}function Ka(a,i,t){Object.defineProperty(a,i,{value:t,writable:!1,configurable:!1,enumerable:!0})}const Zi=[".DS_Store","Thumbs.db"];function Qi(a){return V(this,void 0,void 0,function*(){return ea(a)&&at(a.dataTransfer)?nt(a.dataTransfer,a.type):it(a)?tt(a):Array.isArray(a)&&a.every(i=>"getFile"in i&&typeof i.getFile=="function")?et(a):[]})}function at(a){return ea(a)}function it(a){return ea(a)&&ea(a.target)}function ea(a){return typeof a=="object"&&a!==null}function tt(a){return Ea(a.target.files).map(i=>N(i))}function et(a){return V(this,void 0,void 0,function*(){return(yield Promise.all(a.map(i=>i.getFile()))).map(i=>N(i))})}function nt(a,i){return V(this,void 0,void 0,function*(){if(a.items){const t=Ea(a.items).filter(n=>n.kind==="file");if(i!=="drop")return t;const e=yield Promise.all(t.map(ot));return Ya(xi(e))}return Ya(Ea(a.files).map(t=>N(t)))})}function Ya(a){return a.filter(i=>Zi.indexOf(i.name)===-1)}function Ea(a){if(a===null)return[];const i=[];for(let t=0;t<a.length;t++){const e=a[t];i.push(e)}return i}function ot(a){if(typeof a.webkitGetAsEntry!="function")return Ja(a);const i=a.webkitGetAsEntry();return i&&i.isDirectory?gi(i):Ja(a,i)}function xi(a){return a.reduce((i,t)=>[...i,...Array.isArray(t)?xi(t):[t]],[])}function Ja(a,i){return V(this,void 0,void 0,function*(){var t;if(globalThis.isSecureContext&&typeof a.getAsFileSystemHandle=="function"){const n=yield a.getAsFileSystemHandle();if(n===null)throw new Error(`${a} is not a File`);if(n!==void 0){const l=yield n.getFile();return l.handle=n,N(l)}}const e=a.getAsFile();if(!e)throw new Error(`${a} is not a File`);return N(e,(t=i?.fullPath)!==null&&t!==void 0?t:void 0)})}function pt(a){return V(this,void 0,void 0,function*(){return a.isDirectory?gi(a):lt(a)})}function gi(a){const i=a.createReader();return new Promise((t,e)=>{const n=[];function l(){i.readEntries(r=>V(this,void 0,void 0,function*(){if(r.length){const c=Promise.all(r.map(pt));n.push(c),l()}else try{const c=yield Promise.all(n);t(c)}catch(c){e(c)}}),r=>{e(r)})}l()})}function lt(a){return V(this,void 0,void 0,function*(){return new Promise((i,t)=>{a.file(e=>{const n=N(e,a.fullPath);i(n)},e=>{t(e)})})})}var ya={},Xa;function ct(){return Xa||(Xa=1,ya.__esModule=!0,ya.default=function(a,i){if(a&&i){var t=Array.isArray(i)?i:i.split(",");if(t.length===0)return!0;var e=a.name||"",n=(a.type||"").toLowerCase(),l=n.replace(/\/.*$/,"");return t.some(function(r){var c=r.trim().toLowerCase();return c.charAt(0)==="."?e.toLowerCase().endsWith(c):c.endsWith("/*")?l===c.replace(/\/.*$/,""):n===c})}return!0}),ya}var rt=ct();const ka=Ti(rt);function Za(a){return mt(a)||dt(a)||bi(a)||st()}function st(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1
+ import{r as p,d2 as V,j as f,V as Li,d3 as Vi,x as j,Q as Hi,ad as Ti,aZ as Bi,an as $i,ax as za,cO as Ni,av as Wi,a7 as Gi,am as Ui,E,_ as D,d4 as d}from"./index-CHE20_1-.js";import{c as _i}from"./TableChart.esm-Dpji9oSF-DM4jytuW.js";import{i as Ki}from"./ErrorOutline.esm-BskdUBnE-7qRVaCY5.js";import{t as Yi}from"./UploadFileInfo-DdcsXhjv-m2CBXl3F.js";var li=p.forwardRef(function(a,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return p.createElement(E,D({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},a,{ref:i}),p.createElement("rect",{width:24,height:24,fill:"none"}),p.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),p.createElement("path",{d:"M14 17H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}))});li.displayName="Article";var ci=p.forwardRef(function(a,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return p.createElement(E,D({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},a,{ref:i}),p.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),p.createElement("path",{d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}))});ci.displayName="Code";var ri=p.forwardRef(function(a,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return p.createElement(E,D({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},a,{ref:i}),p.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),p.createElement("path",{d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"}))});ri.displayName="Description";var si=p.forwardRef(function(a,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return p.createElement(E,D({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},a,{ref:i}),p.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),p.createElement("path",{d:"M9.17 6l2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}))});si.displayName="Folder";var di=p.forwardRef(function(a,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return p.createElement(E,D({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},a,{ref:i}),p.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),p.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"}))});di.displayName="Image";var mi=p.forwardRef(function(a,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return p.createElement(E,D({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},a,{ref:i}),p.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),p.createElement("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))});mi.displayName="InsertDriveFile";var ui=p.forwardRef(function(a,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return p.createElement(E,D({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},a,{ref:i}),p.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),p.createElement("path",{d:"M12 3l.01 10.55c-.59-.34-1.27-.55-2-.55a4.001 4.001 0 100 8c2.22 0 3.99-1.79 3.99-4V7h4V3h-6zm-1.99 16c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}))});ui.displayName="MusicNote";var vi=p.forwardRef(function(a,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return p.createElement(E,D({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},a,{ref:i}),p.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),p.createElement("path",{d:"M15 8v8H5V8h10m1-2H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4V7c0-.55-.45-1-1-1z"}))});vi.displayName="Videocam";var fi=p.forwardRef(function(a,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return p.createElement(E,D({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},a,{ref:i}),p.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),p.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm4.29 12.89a.996.996 0 11-1.41 1.41L12 13.41 9.11 16.3a.996.996 0 11-1.41-1.41L10.59 12 7.71 9.11A.996.996 0 119.12 7.7L12 10.59l2.89-2.89a.996.996 0 111.41 1.41L13.41 12l2.88 2.89z"}))});fi.displayName="Cancel";const Ji=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function N(a,i,t){const e=Xi(a),{webkitRelativePath:n}=a,l=typeof i=="string"?i:typeof n=="string"&&n.length>0?n:`./${a.name}`;return typeof e.path!="string"&&Ka(e,"path",l),Ka(e,"relativePath",l),e}function Xi(a){const{name:i}=a;if(i&&i.lastIndexOf(".")!==-1&&!a.type){const t=i.split(".").pop().toLowerCase(),e=Ji.get(t);e&&Object.defineProperty(a,"type",{value:e,writable:!1,configurable:!1,enumerable:!0})}return a}function Ka(a,i,t){Object.defineProperty(a,i,{value:t,writable:!1,configurable:!1,enumerable:!0})}const Zi=[".DS_Store","Thumbs.db"];function Qi(a){return V(this,void 0,void 0,function*(){return ea(a)&&at(a.dataTransfer)?nt(a.dataTransfer,a.type):it(a)?tt(a):Array.isArray(a)&&a.every(i=>"getFile"in i&&typeof i.getFile=="function")?et(a):[]})}function at(a){return ea(a)}function it(a){return ea(a)&&ea(a.target)}function ea(a){return typeof a=="object"&&a!==null}function tt(a){return Ea(a.target.files).map(i=>N(i))}function et(a){return V(this,void 0,void 0,function*(){return(yield Promise.all(a.map(i=>i.getFile()))).map(i=>N(i))})}function nt(a,i){return V(this,void 0,void 0,function*(){if(a.items){const t=Ea(a.items).filter(n=>n.kind==="file");if(i!=="drop")return t;const e=yield Promise.all(t.map(ot));return Ya(xi(e))}return Ya(Ea(a.files).map(t=>N(t)))})}function Ya(a){return a.filter(i=>Zi.indexOf(i.name)===-1)}function Ea(a){if(a===null)return[];const i=[];for(let t=0;t<a.length;t++){const e=a[t];i.push(e)}return i}function ot(a){if(typeof a.webkitGetAsEntry!="function")return Ja(a);const i=a.webkitGetAsEntry();return i&&i.isDirectory?gi(i):Ja(a,i)}function xi(a){return a.reduce((i,t)=>[...i,...Array.isArray(t)?xi(t):[t]],[])}function Ja(a,i){return V(this,void 0,void 0,function*(){var t;if(globalThis.isSecureContext&&typeof a.getAsFileSystemHandle=="function"){const n=yield a.getAsFileSystemHandle();if(n===null)throw new Error(`${a} is not a File`);if(n!==void 0){const l=yield n.getFile();return l.handle=n,N(l)}}const e=a.getAsFile();if(!e)throw new Error(`${a} is not a File`);return N(e,(t=i?.fullPath)!==null&&t!==void 0?t:void 0)})}function pt(a){return V(this,void 0,void 0,function*(){return a.isDirectory?gi(a):lt(a)})}function gi(a){const i=a.createReader();return new Promise((t,e)=>{const n=[];function l(){i.readEntries(r=>V(this,void 0,void 0,function*(){if(r.length){const c=Promise.all(r.map(pt));n.push(c),l()}else try{const c=yield Promise.all(n);t(c)}catch(c){e(c)}}),r=>{e(r)})}l()})}function lt(a){return V(this,void 0,void 0,function*(){return new Promise((i,t)=>{a.file(e=>{const n=N(e,a.fullPath);i(n)},e=>{t(e)})})})}var ya={},Xa;function ct(){return Xa||(Xa=1,ya.__esModule=!0,ya.default=function(a,i){if(a&&i){var t=Array.isArray(i)?i:i.split(",");if(t.length===0)return!0;var e=a.name||"",n=(a.type||"").toLowerCase(),l=n.replace(/\/.*$/,"");return t.some(function(r){var c=r.trim().toLowerCase();return c.charAt(0)==="."?e.toLowerCase().endsWith(c):c.endsWith("/*")?l===c.replace(/\/.*$/,""):n===c})}return!0}),ya}var rt=ct();const ka=Ti(rt);function Za(a){return mt(a)||dt(a)||bi(a)||st()}function st(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dt(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function mt(a){if(Array.isArray(a))return Da(a)}function Qa(a,i){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(a);i&&(e=e.filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable})),t.push.apply(t,e)}return t}function ai(a){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};i%2?Qa(Object(t),!0).forEach(function(e){hi(a,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):Qa(Object(t)).forEach(function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(t,e))})}return a}function hi(a,i,t){return i in a?Object.defineProperty(a,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[i]=t,a}function Y(a,i){return ft(a)||vt(a,i)||bi(a,i)||ut()}function ut(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bi(a,i){if(a){if(typeof a=="string")return Da(a,i);var t=Object.prototype.toString.call(a).slice(8,-1);if(t==="Object"&&a.constructor&&(t=a.constructor.name),t==="Map"||t==="Set")return Array.from(a);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Da(a,i)}}function Da(a,i){(i==null||i>a.length)&&(i=a.length);for(var t=0,e=new Array(i);t<i;t++)e[t]=a[t];return e}function vt(a,i){var t=a==null?null:typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(t!=null){var e=[],n=!0,l=!1,r,c;try{for(t=t.call(a);!(n=(r=t.next()).done)&&(e.push(r.value),!(i&&e.length===i));n=!0);}catch(x){l=!0,c=x}finally{try{!n&&t.return!=null&&t.return()}finally{if(l)throw c}}return e}}function ft(a){if(Array.isArray(a))return a}var xt=typeof ka=="function"?ka:ka.default,wi="file-invalid-type",yi="file-too-large",gt="file-too-small",ki="too-many-files",ze={FileInvalidType:wi,FileTooLarge:yi,TooManyFiles:ki},ht=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",i=a.split(","),t=i.length>1?"one of ".concat(i.join(", ")):i[0];return{code:wi,message:"File type must be ".concat(t)}},ii=function(a){return{code:yi,message:"File is larger than ".concat(a," ").concat(a===1?"byte":"bytes")}},ti=function(a){return{code:gt,message:"File is smaller than ".concat(a," ").concat(a===1?"byte":"bytes")}},bt={code:ki,message:"Too many files"};function wt(a){return a.type===""&&typeof a.getAsFile=="function"}function ji(a,i){var t=a.type==="application/x-moz-file"||xt(a,i)||wt(a);return[t,t?null:ht(i)]}function zi(a,i,t){if(L(a.size))if(L(i)&&L(t)){if(a.size>t)return[!1,ii(t)];if(a.size<i)return[!1,ti(i)]}else{if(L(i)&&a.size<i)return[!1,ti(i)];if(L(t)&&a.size>t)return[!1,ii(t)]}return[!0,null]}function L(a){return a!=null}function yt(a){var i=a.files,t=a.accept,e=a.minSize,n=a.maxSize,l=a.multiple,r=a.maxFiles,c=a.validator;return!l&&i.length>1||l&&r>=1&&i.length>r?!1:i.every(function(x){var w=ji(x,t),y=Y(w,1),O=y[0],F=zi(x,e,n),S=Y(F,1),q=S[0],I=c?c(x):null;return O&&q&&!I})}function na(a){return typeof a.isPropagationStopped=="function"?a.isPropagationStopped():typeof a.cancelBubble<"u"?a.cancelBubble:!1}function K(a){return a.dataTransfer?Array.prototype.some.call(a.dataTransfer.types,function(i){return i==="Files"||i==="application/x-moz-file"}):!!a.target&&!!a.target.files}function ei(a){a.preventDefault()}function kt(a){return a.indexOf("MSIE")!==-1||a.indexOf("Trident/")!==-1}function jt(a){return a.indexOf("Edge/")!==-1}function zt(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return kt(a)||jt(a)}function z(){for(var a=arguments.length,i=new Array(a),t=0;t<a;t++)i[t]=arguments[t];return function(e){for(var n=arguments.length,l=new Array(n>1?n-1:0),r=1;r<n;r++)l[r-1]=arguments[r];return i.some(function(c){return!na(e)&&c&&c.apply(void 0,[e].concat(l)),na(e)})}}function Et(){return"showOpenFilePicker"in window}function Dt(a){if(L(a)){var i=Object.entries(a).filter(function(t){var e=Y(t,2),n=e[0],l=e[1],r=!0;return Ei(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),r=!1),(!Array.isArray(l)||!l.every(Di))&&(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),r=!1),r}).reduce(function(t,e){var n=Y(e,2),l=n[0],r=n[1];return ai(ai({},t),{},hi({},l,r))},{});return[{description:"Files",accept:i}]}return a}function Ct(a){if(L(a))return Object.entries(a).reduce(function(i,t){var e=Y(t,2),n=e[0],l=e[1];return[].concat(Za(i),[n],Za(l))},[]).filter(function(i){return Ei(i)||Di(i)}).join(",")}function At(a){return a instanceof DOMException&&(a.name==="AbortError"||a.code===a.ABORT_ERR)}function Ot(a){return a instanceof DOMException&&(a.name==="SecurityError"||a.code===a.SECURITY_ERR)}function Ei(a){return a==="audio/*"||a==="video/*"||a==="image/*"||a==="text/*"||a==="application/*"||/\w+\/[-+.\w]+/g.test(a)}function Di(a){return/^.*\.[\w]+$/.test(a)}var Ft=["children"],St=["open"],qt=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],It=["refKey","onChange","onClick"];function ni(a){return Mt(a)||Rt(a)||Ci(a)||Pt()}function Pt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rt(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function Mt(a){if(Array.isArray(a))return Ca(a)}function ja(a,i){return Ht(a)||Vt(a,i)||Ci(a,i)||Lt()}function Lt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
@@ -1 +1 @@
1
- import{cw as o,G as c,j as t,ap as r}from"./index-DJf52eor.js";const l=s=>{const e=a=>{const{width:i,elementRef:n}=c();return t.jsx(r,{ref:n,children:t.jsx(s,{...a,width:i})})};return e.displayName=`withCalculatedWidth(${s.displayName||s.name})`,o(e,s)};export{l as o};
1
+ import{cw as o,G as c,j as t,ap as r}from"./index-CHE20_1-.js";const l=s=>{const e=a=>{const{width:i,elementRef:n}=c();return t.jsx(r,{ref:n,children:t.jsx(s,{...a,width:i})})};return e.displayName=`withCalculatedWidth(${s.displayName||s.name})`,o(e,s)};export{l as o};
@@ -1 +1 @@
1
- import{cw as p,r as n,j as c,N as h,G as f,cx as x,cy as g,x as y}from"./index-DJf52eor.js";const m=n.createContext(null);m.displayName="ElementFullscreenContext";const w=y("div",{target:"elp1w7k0"})(({theme:e,isExpanded:t})=>({width:"100%",height:"100%",...t?{position:"fixed",top:0,left:0,bottom:0,right:0,background:e.colors.bgColor,zIndex:e.zIndices.fullscreenWrapper,padding:e.spacing.md,paddingTop:e.sizes.fullScreenHeaderHeight,overflow:"auto",display:"flex",alignItems:"center",justifyContent:"center"}:{}}),""),C=()=>{const{setFullScreen:e}=n.useContext(x),[t,s]=n.useState(!1),{fullHeight:d,fullWidth:i}=g(),l=n.useCallback(a=>{s(a),e(a)},[e]),r=n.useCallback(()=>{document.body.style.overflow="hidden",l(!0)},[l]),o=n.useCallback(()=>{document.body.style.overflow="unset",l(!1)},[l]),u=n.useCallback(a=>{a.keyCode===27&&t&&o()},[o,t]);return n.useEffect(()=>(document.addEventListener("keydown",u,!1),()=>{document.removeEventListener("keydown",u,!1)}),[u]),n.useMemo(()=>({expanded:t,zoomIn:r,zoomOut:o,fullHeight:d,fullWidth:i}),[t,r,o,d,i])},v=({children:e})=>{const t=h(),{expanded:s,fullHeight:d,fullWidth:i,zoomIn:l,zoomOut:r}=C(),{width:o,elementRef:u}=f(),a=n.useMemo(()=>({width:s?i:o,height:s?d:void 0,expanded:s,expand:l,collapse:r}),[s,d,i,o,l,r]);return c.jsx(m.Provider,{value:a,children:c.jsx(w,{ref:u,isExpanded:s,"data-testid":"stFullScreenFrame",theme:t,children:e})})};function k(e){const t=s=>c.jsx(v,{children:c.jsx(e,{...s})});return t.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,p(t,e)}export{m as G,k as N};
1
+ import{cw as p,r as n,j as c,N as h,G as f,cx as x,cy as g,x as y}from"./index-CHE20_1-.js";const m=n.createContext(null);m.displayName="ElementFullscreenContext";const w=y("div",{target:"elp1w7k0"})(({theme:e,isExpanded:t})=>({width:"100%",height:"100%",...t?{position:"fixed",top:0,left:0,bottom:0,right:0,background:e.colors.bgColor,zIndex:e.zIndices.fullscreenWrapper,padding:e.spacing.md,paddingTop:e.sizes.fullScreenHeaderHeight,overflow:"auto",display:"flex",alignItems:"center",justifyContent:"center"}:{}}),""),C=()=>{const{setFullScreen:e}=n.useContext(x),[t,s]=n.useState(!1),{fullHeight:d,fullWidth:i}=g(),l=n.useCallback(a=>{s(a),e(a)},[e]),r=n.useCallback(()=>{document.body.style.overflow="hidden",l(!0)},[l]),o=n.useCallback(()=>{document.body.style.overflow="unset",l(!1)},[l]),u=n.useCallback(a=>{a.keyCode===27&&t&&o()},[o,t]);return n.useEffect(()=>(document.addEventListener("keydown",u,!1),()=>{document.removeEventListener("keydown",u,!1)}),[u]),n.useMemo(()=>({expanded:t,zoomIn:r,zoomOut:o,fullHeight:d,fullWidth:i}),[t,r,o,d,i])},v=({children:e})=>{const t=h(),{expanded:s,fullHeight:d,fullWidth:i,zoomIn:l,zoomOut:r}=C(),{width:o,elementRef:u}=f(),a=n.useMemo(()=>({width:s?i:o,height:s?d:void 0,expanded:s,expand:l,collapse:r}),[s,d,i,o,l,r]);return c.jsx(m.Provider,{value:a,children:c.jsx(w,{ref:u,isExpanded:s,"data-testid":"stFullScreenFrame",theme:t,children:e})})};function k(e){const t=s=>c.jsx(v,{children:c.jsx(e,{...s})});return t.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,p(t,e)}export{m as G,k as N};
@@ -1,2 +1,2 @@
1
- var Ce=Object.create;var Q=Object.defineProperty;var Be=Object.getOwnPropertyDescriptor;var qe=Object.getOwnPropertyNames;var Ve=Object.getPrototypeOf,Ye=Object.prototype.hasOwnProperty;var Ge=(i,s)=>()=>(s||i((s={exports:{}}).exports,s),s.exports);var Qe=(i,s,c,u)=>{if(s&&typeof s=="object"||typeof s=="function")for(let p of qe(s))!Ye.call(i,p)&&p!==c&&Q(i,p,{get:()=>s[p],enumerable:!(u=Be(s,p))||u.enumerable});return i};var O=(i,s,c)=>(c=i!=null?Ce(Ve(i)):{},Qe(s||!i||!i.__esModule?Q(c,"default",{value:i,enumerable:!0}):c,i));var ee=Ge((T,x)=>{(function(i,s){typeof T=="object"&&typeof x<"u"?s(T):typeof define=="function"&&define.amd?define(["exports"],s):(i=typeof globalThis<"u"?globalThis:i||self,s(i.Superstruct={}))})(T,(function(i){"use strict";class s extends TypeError{constructor(n,t){let r,{message:o,explanation:a,...d}=n,{path:b}=n,g=b.length===0?o:`At path: ${b.join(".")} -- ${o}`;super(a??g),a!=null&&(this.cause=g),Object.assign(this,d),this.name=this.constructor.name,this.failures=()=>r??(r=[n,...t()])}}function c(e){return u(e)&&typeof e[Symbol.iterator]=="function"}function u(e){return typeof e=="object"&&e!=null}function p(e){return u(e)&&!Array.isArray(e)}function j(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let n=Object.getPrototypeOf(e);return n===null||n===Object.prototype}function m(e){return typeof e=="symbol"?e.toString():typeof e=="string"?JSON.stringify(e):`${e}`}function S(e){let{done:n,value:t}=e.next();return n?void 0:t}function E(e,n,t,r){if(e===!0)return;e===!1?e={}:typeof e=="string"&&(e={message:e});let{path:o,branch:a}=n,{type:d}=t,{refinement:b,message:g=`Expected a value of type \`${d}\`${b?` with refinement \`${b}\``:""}, but received: \`${m(r)}\``}=e;return{value:r,type:d,refinement:b,key:o[o.length-1],path:o,branch:a,...e,message:g}}function*h(e,n,t,r){c(e)||(e=[e]);for(let o of e){let a=E(o,n,t,r);a&&(yield a)}}function*k(e,n,t={}){let{path:r=[],branch:o=[e],coerce:a=!1,mask:d=!1}=t,b={path:r,branch:o,mask:d};a&&(e=n.coercer(e,b));let g="valid";for(let w of n.validator(e,b))w.explanation=t.message,g="not_valid",yield[w,void 0];for(let[w,N,He]of n.entries(e,b)){let Le=k(N,He,{path:w===void 0?r:[...r,w],branch:w===void 0?o:[...o,N],coerce:a,mask:d,message:t.message});for(let J of Le)J[0]?(g=J[0].refinement!=null?"not_refined":"not_valid",yield[J[0],void 0]):a&&(N=J[1],w===void 0?e=N:e instanceof Map?e.set(w,N):e instanceof Set?e.add(N):u(e)&&(N!==void 0||w in e)&&(e[w]=N))}if(g!=="not_valid")for(let w of n.refiner(e,b))w.explanation=t.message,g="not_refined",yield[w,void 0];g==="valid"&&(yield[void 0,e])}class l{constructor(n){let{type:t,schema:r,validator:o,refiner:a,coercer:d=g=>g,entries:b=function*(){}}=n;this.type=t,this.schema=r,this.entries=b,this.coercer=d,o?this.validator=(g,w)=>{let N=o(g,w);return h(N,w,this,g)}:this.validator=()=>[],a?this.refiner=(g,w)=>{let N=a(g,w);return h(N,w,this,g)}:this.refiner=()=>[]}assert(n,t){return M(n,this,t)}create(n,t){return A(n,this,t)}is(n){return I(n,this)}mask(n,t){return F(n,this,t)}validate(n,t={}){return v(n,this,t)}}function M(e,n,t){let r=v(e,n,{message:t});if(r[0])throw r[0]}function A(e,n,t){let r=v(e,n,{coerce:!0,message:t});if(r[0])throw r[0];return r[1]}function F(e,n,t){let r=v(e,n,{coerce:!0,mask:!0,message:t});if(r[0])throw r[0];return r[1]}function I(e,n){return!v(e,n)[0]}function v(e,n,t={}){let r=k(e,n,t),o=S(r);return o[0]?[new s(o[0],function*(){for(let d of r)d[0]&&(yield d[0])}),void 0]:[void 0,o[1]]}function se(...e){let n=e[0].type==="type",t=e.map(o=>o.schema),r=Object.assign({},...t);return n?z(r):R(r)}function $(e,n){return new l({type:e,schema:null,validator:n})}function ae(e,n){return new l({...e,refiner:(t,r)=>t===void 0||e.refiner(t,r),validator(t,r){return t===void 0?!0:(n(t,r),e.validator(t,r))}})}function ce(e){return new l({type:"dynamic",schema:null,*entries(n,t){yield*e(n,t).entries(n,t)},validator(n,t){return e(n,t).validator(n,t)},coercer(n,t){return e(n,t).coercer(n,t)},refiner(n,t){return e(n,t).refiner(n,t)}})}function fe(e){let n;return new l({type:"lazy",schema:null,*entries(t,r){n??(n=e()),yield*n.entries(t,r)},validator(t,r){return n??(n=e()),n.validator(t,r)},coercer(t,r){return n??(n=e()),n.coercer(t,r)},refiner(t,r){return n??(n=e()),n.refiner(t,r)}})}function de(e,n){let{schema:t}=e,r={...t};for(let o of n)delete r[o];switch(e.type){case"type":return z(r);default:return R(r)}}function ue(e){let n=e instanceof l,t=n?{...e.schema}:{...e};for(let r in t)t[r]=q(t[r]);return n&&e.type==="type"?z(t):R(t)}function le(e,n){let{schema:t}=e,r={};for(let o of n)r[o]=t[o];switch(e.type){case"type":return z(r);default:return R(r)}}function pe(e,n){return console.warn("superstruct@0.11 - The `struct` helper has been renamed to `define`."),$(e,n)}function me(){return $("any",()=>!0)}function ye(e){return new l({type:"array",schema:e,*entries(n){if(e&&Array.isArray(n))for(let[t,r]of n.entries())yield[t,r,e]},coercer(n){return Array.isArray(n)?n.slice():n},validator(n){return Array.isArray(n)||`Expected an array value, but received: ${m(n)}`}})}function he(){return $("bigint",e=>typeof e=="bigint")}function be(){return $("boolean",e=>typeof e=="boolean")}function ge(){return $("date",e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \`Date\` object, but received: ${m(e)}`)}function we(e){let n={},t=e.map(r=>m(r)).join();for(let r of e)n[r]=r;return new l({type:"enums",schema:n,validator(r){return e.includes(r)||`Expected one of \`${t}\`, but received: ${m(r)}`}})}function ke(){return $("func",e=>typeof e=="function"||`Expected a function, but received: ${m(e)}`)}function $e(e){return $("instance",n=>n instanceof e||`Expected a \`${e.name}\` instance, but received: ${m(n)}`)}function Pe(){return $("integer",e=>typeof e=="number"&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${m(e)}`)}function Me(e){return new l({type:"intersection",schema:null,*entries(n,t){for(let r of e)yield*r.entries(n,t)},*validator(n,t){for(let r of e)yield*r.validator(n,t)},*refiner(n,t){for(let r of e)yield*r.refiner(n,t)}})}function Ne(e){let n=m(e),t=typeof e;return new l({type:"literal",schema:t==="string"||t==="number"||t==="boolean"?e:null,validator(r){return r===e||`Expected the literal \`${n}\`, but received: ${m(r)}`}})}function je(e,n){return new l({type:"map",schema:null,*entries(t){if(e&&n&&t instanceof Map)for(let[r,o]of t.entries())yield[r,r,e],yield[r,o,n]},coercer(t){return t instanceof Map?new Map(t):t},validator(t){return t instanceof Map||`Expected a \`Map\` object, but received: ${m(t)}`}})}function H(){return $("never",()=>!1)}function Se(e){return new l({...e,validator:(n,t)=>n===null||e.validator(n,t),refiner:(n,t)=>n===null||e.refiner(n,t)})}function Ee(){return $("number",e=>typeof e=="number"&&!isNaN(e)||`Expected a number, but received: ${m(e)}`)}function R(e){let n=e?Object.keys(e):[],t=H();return new l({type:"object",schema:e||null,*entries(r){if(e&&u(r)){let o=new Set(Object.keys(r));for(let a of n)o.delete(a),yield[a,r[a],e[a]];for(let a of o)yield[a,r[a],t]}},validator(r){return p(r)||`Expected an object, but received: ${m(r)}`},coercer(r,o){if(!p(r))return r;let a={...r};if(o.mask&&e)for(let d in a)e[d]===void 0&&delete a[d];return a}})}function q(e){return new l({...e,validator:(n,t)=>n===void 0||e.validator(n,t),refiner:(n,t)=>n===void 0||e.refiner(n,t)})}function Ae(e,n){return new l({type:"record",schema:null,*entries(t){if(u(t))for(let r in t){let o=t[r];yield[r,r,e],yield[r,o,n]}},validator(t){return p(t)||`Expected an object, but received: ${m(t)}`},coercer(t){return p(t)?{...t}:t}})}function Oe(){return $("regexp",e=>e instanceof RegExp)}function De(e){return new l({type:"set",schema:null,*entries(n){if(e&&n instanceof Set)for(let t of n)yield[t,t,e]},coercer(n){return n instanceof Set?new Set(n):n},validator(n){return n instanceof Set||`Expected a \`Set\` object, but received: ${m(n)}`}})}function V(){return $("string",e=>typeof e=="string"||`Expected a string, but received: ${m(e)}`)}function _e(e){let n=H();return new l({type:"tuple",schema:null,*entries(t){if(Array.isArray(t)){let r=Math.max(e.length,t.length);for(let o=0;o<r;o++)yield[o,t[o],e[o]||n]}},validator(t){return Array.isArray(t)||`Expected an array, but received: ${m(t)}`},coercer(t){return Array.isArray(t)?t.slice():t}})}function z(e){let n=Object.keys(e);return new l({type:"type",schema:e,*entries(t){if(u(t))for(let r of n)yield[r,t[r],e[r]]},validator(t){return p(t)||`Expected an object, but received: ${m(t)}`},coercer(t){return p(t)?{...t}:t}})}function ve(e){let n=e.map(t=>t.type).join(" | ");return new l({type:"union",schema:null,coercer(t,r){for(let o of e){let[a,d]=o.validate(t,{coerce:!0,mask:r.mask});if(!a)return d}return t},validator(t,r){let o=[];for(let a of e){let[...d]=k(t,a,r),[b]=d;if(b[0])for(let[g]of d)g&&o.push(g);else return[]}return[`Expected the value to satisfy a union of \`${n}\`, but received: ${m(t)}`,...o]}})}function Y(){return $("unknown",()=>!0)}function L(e,n,t){return new l({...e,coercer:(r,o)=>I(r,n)?e.coercer(t(r,o),o):e.coercer(r,o)})}function We(e,n,t={}){return L(e,Y(),r=>{let o=typeof n=="function"?n():n;if(r===void 0)return o;if(!t.strict&&j(r)&&j(o)){let a={...r},d=!1;for(let b in o)a[b]===void 0&&(a[b]=o[b],d=!0);if(d)return a}return r})}function Re(e){return L(e,V(),n=>n.trim())}function ze(e){return _(e,"empty",n=>{let t=G(n);return t===0||`Expected an empty ${e.type} but received one with a size of \`${t}\``})}function G(e){return e instanceof Map||e instanceof Set?e.size:e.length}function Fe(e,n,t={}){let{exclusive:r}=t;return _(e,"max",o=>r?o<n:o<=n||`Expected a ${e.type} less than ${r?"":"or equal to "}${n} but received \`${o}\``)}function Je(e,n,t={}){let{exclusive:r}=t;return _(e,"min",o=>r?o>n:o>=n||`Expected a ${e.type} greater than ${r?"":"or equal to "}${n} but received \`${o}\``)}function Te(e){return _(e,"nonempty",n=>G(n)>0||`Expected a nonempty ${e.type} but received an empty one`)}function Ue(e,n){return _(e,"pattern",t=>n.test(t)||`Expected a ${e.type} matching \`/${n.source}/\` but received "${t}"`)}function Ie(e,n,t=n){let r=`Expected a ${e.type}`,o=n===t?`of \`${n}\``:`between \`${n}\` and \`${t}\``;return _(e,"size",a=>{if(typeof a=="number"||a instanceof Date)return n<=a&&a<=t||`${r} ${o} but received \`${a}\``;if(a instanceof Map||a instanceof Set){let{size:d}=a;return n<=d&&d<=t||`${r} with a size ${o} but received one with a size of \`${d}\``}else{let{length:d}=a;return n<=d&&d<=t||`${r} with a length ${o} but received one with a length of \`${d}\``}})}function _(e,n,t){return new l({...e,*refiner(r,o){yield*e.refiner(r,o);let a=t(r,o),d=h(a,o,e,r);for(let b of d)yield{...b,refinement:n}}})}i.Struct=l,i.StructError=s,i.any=me,i.array=ye,i.assert=M,i.assign=se,i.bigint=he,i.boolean=be,i.coerce=L,i.create=A,i.date=ge,i.defaulted=We,i.define=$,i.deprecated=ae,i.dynamic=ce,i.empty=ze,i.enums=we,i.func=ke,i.instance=$e,i.integer=Pe,i.intersection=Me,i.is=I,i.lazy=fe,i.literal=Ne,i.map=je,i.mask=F,i.max=Fe,i.min=Je,i.never=H,i.nonempty=Te,i.nullable=Se,i.number=Ee,i.object=R,i.omit=de,i.optional=q,i.partial=ue,i.pattern=Ue,i.pick=le,i.record=Ae,i.refine=_,i.regexp=Oe,i.set=De,i.size=Ie,i.string=V,i.struct=pe,i.trimmed=Re,i.tuple=_e,i.type=z,i.union=ve,i.unknown=Y,i.validate=v}))});var f=require("electron"),P=O(require("node:path"),1),C=O(require("node:fs/promises"),1),B=O(require("node:worker_threads"),1);function X(i,s){let c=new URL(i),u=new URL(s);return c.search="",c.hash="",u.search="",u.hash="",u.toString().startsWith(c.toString())}var W=O(require("fs/promises"),1),D=O(require("path"),1);async function Z(i){let s={},c=await W.readdir(i);return await Promise.all(c.map(async u=>{let p=D.join(i,u);if((await W.stat(p)).isDirectory()){let m=await Z(p);Object.assign(s,m)}else{let m=await W.readFile(p);s[p]=m}})),s}async function K(i){let s=await Z(i),c={};return Object.keys(s).forEach(u=>{let j=D.relative(i,u).split(D.sep).join(D.posix.sep);c[j]=s[u]}),c}var ne=O(require("path"),1),U=O(require("fs/promises"),1),y=O(ee(),1),Xe=y.object({entrypoint:y.string(),embed:y.defaulted(y.boolean(),!1),idbfsMountpoints:y.optional(y.array(y.string())),nodeJsWorker:y.defaulted(y.boolean(),!1),nodefsMountpoints:y.optional(y.record(y.string(),y.string())),appMenu:y.defaulted(y.boolean(),!0)});async function te(){let i=ne.resolve(__dirname,"../stlite-manifest.json"),s=await U.readFile(i,{encoding:"utf-8"}),c=JSON.parse(s);return y.assert(c,Xe),c}function Ze(i,s){let c=/\{\{(.*?)\}\}/g;return s.replace(c,(u,p)=>{try{return i.getPath(p)}catch(j){return console.warn(`Failed to resolve placeholder ${p} (${j})`),u}})}function re(i,s){return Object.fromEntries(Object.entries(s).map(([c,u])=>[c,Ze(i,u)]))}function ie(i){return Promise.all(Object.values(i).map(s=>U.mkdir(s,{recursive:!0}))).catch(s=>{console.error("Failed to create nodefs mountpoints",s)}).then()}var oe=async()=>{let i=await te();i.appMenu===!1&&f.Menu.setApplicationMenu(null);let s=[];s.push(`--entrypoint=${JSON.stringify(i.entrypoint)}`),i.idbfsMountpoints&&s.push(`--idbfs-mountpoints=${JSON.stringify(i.idbfsMountpoints)}`),i.nodeJsWorker&&s.push("--nodejs-worker");let c=new f.BrowserWindow({width:1280,height:720,webPreferences:{preload:P.join(__dirname,"preload.js"),sandbox:!0,additionalArguments:s}}),u=new URL((f.app.isPackaged,"file:///index.html")),p=new URLSearchParams;i.embed&&p.set("embed","true"),u.search=p.toString();let j=u.toString(),m=h=>h==null?!1:X(j,h.url),S=(h,k)=>{if(!m(h.senderFrame))throw new Error(`Invalid IPC sender (${k}) ${h.senderFrame?.url??"(null)"}`)};f.ipcMain.handle("readSitePackagesSnapshot",h=>{S(h,"readSitePackagesSnapshot");let k=P.resolve(__dirname,"../site-packages-snapshot.tar.gz");return C.readFile(k)}),f.ipcMain.handle("readPrebuiltPackageNames",async h=>{S(h,"readPrebuiltPackageNames");let k=P.resolve(__dirname,"../prebuilt-packages.txt");return(await C.readFile(k,{encoding:"utf-8"})).split(`
2
- `).map(M=>M.trim()).filter(M=>M.length>0)}),f.ipcMain.handle("readStreamlitAppDirectory",async h=>{S(h,"readStreamlitAppDirectory");let k=P.resolve(__dirname,"../app_files");return K(k)}),c.on("closed",()=>{f.ipcMain.removeHandler("readSitePackagesSnapshot"),f.ipcMain.removeHandler("readPrebuiltPackageNames"),f.ipcMain.removeHandler("readStreamlitAppDirectory")});let E=null;f.ipcMain.handle("initializeNodeJsWorker",async h=>{S(h,"initializeNodeJsWorker");let k=P.resolve(__dirname,"..","pyodide","pyodide.mjs"),l=i.nodefsMountpoints&&re(f.app,i.nodefsMountpoints);l&&await ie(l);function M(A){c.webContents.send("messageFromNodeJsWorker",A)}E=new B.default.Worker(P.resolve(__dirname,"worker.js"),{env:{PYODIDE_URL:k,...i.nodefsMountpoints&&{NODEFS_MOUNTPOINTS:JSON.stringify(l)}}}),E.on("message",A=>{M(A)})}),f.ipcMain.on("messageToNodeJsWorker",(h,{data:k,portId:l})=>{if(S(h,"messageToNodeJsWorker"),E==null)return;let M=new B.default.MessageChannel;M.port1.on("message",F=>{h.reply(`nodeJsWorker-portMessage-${l}`,F)});let A={data:k,port:M.port2};E.postMessage(A,[M.port2])}),f.ipcMain.handle("terminateNodeJsWorker",h=>{S(h,"terminateNodeJsWorker"),E?.terminate(),E=null}),c.on("closed",()=>{f.ipcMain.removeHandler("initializeNodeJsWorker"),f.ipcMain.removeHandler("messageToNodeJsWorker"),f.ipcMain.removeHandler("terminateNodeJsWorker")}),c.loadURL(j),f.app.isPackaged||c.webContents.openDevTools()};f.app.enableSandbox();f.app.commandLine.appendSwitch("disable-features","PlzDedicatedWorker");f.app.whenReady().then(()=>{let i=P.resolve(__dirname,"..");f.protocol.handle("file",s=>{let c=new URL(s.url).pathname;if(!P.isAbsolute(c))return f.net.fetch(s,{bypassCustomProtocolHandlers:!0});let u=P.normalize(P.join(i,c)),p=new Request("file://"+u,s);return f.net.fetch(p,{bypassCustomProtocolHandlers:!0})}),oe(),f.app.on("activate",()=>{f.BrowserWindow.getAllWindows().length===0&&oe()})});f.app.on("window-all-closed",()=>{process.platform!=="darwin"&&f.app.quit()});f.app.on("web-contents-created",(i,s)=>{s.on("will-attach-webview",c=>{c.preventDefault()}),s.on("will-navigate",(c,u)=>{console.debug("will-navigate",u),c.preventDefault()}),s.setWindowOpenHandler(({url:c})=>(console.error("Opening a new window is not allowed.",c),{action:"deny"}))});
1
+ var Ce=Object.create;var Q=Object.defineProperty;var Be=Object.getOwnPropertyDescriptor;var qe=Object.getOwnPropertyNames;var Ve=Object.getPrototypeOf,Ye=Object.prototype.hasOwnProperty;var Ge=(i,s)=>()=>(s||i((s={exports:{}}).exports,s),s.exports);var Qe=(i,s,c,u)=>{if(s&&typeof s=="object"||typeof s=="function")for(let p of qe(s))!Ye.call(i,p)&&p!==c&&Q(i,p,{get:()=>s[p],enumerable:!(u=Be(s,p))||u.enumerable});return i};var D=(i,s,c)=>(c=i!=null?Ce(Ve(i)):{},Qe(s||!i||!i.__esModule?Q(c,"default",{value:i,enumerable:!0}):c,i));var ee=Ge((U,x)=>{(function(i,s){typeof U=="object"&&typeof x<"u"?s(U):typeof define=="function"&&define.amd?define(["exports"],s):(i=typeof globalThis<"u"?globalThis:i||self,s(i.Superstruct={}))})(U,(function(i){"use strict";class s extends TypeError{constructor(n,t){let r,{message:o,explanation:a,...d}=n,{path:b}=n,g=b.length===0?o:`At path: ${b.join(".")} -- ${o}`;super(a??g),a!=null&&(this.cause=g),Object.assign(this,d),this.name=this.constructor.name,this.failures=()=>r??(r=[n,...t()])}}function c(e){return u(e)&&typeof e[Symbol.iterator]=="function"}function u(e){return typeof e=="object"&&e!=null}function p(e){return u(e)&&!Array.isArray(e)}function N(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let n=Object.getPrototypeOf(e);return n===null||n===Object.prototype}function m(e){return typeof e=="symbol"?e.toString():typeof e=="string"?JSON.stringify(e):`${e}`}function j(e){let{done:n,value:t}=e.next();return n?void 0:t}function E(e,n,t,r){if(e===!0)return;e===!1?e={}:typeof e=="string"&&(e={message:e});let{path:o,branch:a}=n,{type:d}=t,{refinement:b,message:g=`Expected a value of type \`${d}\`${b?` with refinement \`${b}\``:""}, but received: \`${m(r)}\``}=e;return{value:r,type:d,refinement:b,key:o[o.length-1],path:o,branch:a,...e,message:g}}function*h(e,n,t,r){c(e)||(e=[e]);for(let o of e){let a=E(o,n,t,r);a&&(yield a)}}function*k(e,n,t={}){let{path:r=[],branch:o=[e],coerce:a=!1,mask:d=!1}=t,b={path:r,branch:o,mask:d};a&&(e=n.coercer(e,b));let g="valid";for(let w of n.validator(e,b))w.explanation=t.message,g="not_valid",yield[w,void 0];for(let[w,S,He]of n.entries(e,b)){let Le=k(S,He,{path:w===void 0?r:[...r,w],branch:w===void 0?o:[...o,S],coerce:a,mask:d,message:t.message});for(let T of Le)T[0]?(g=T[0].refinement!=null?"not_refined":"not_valid",yield[T[0],void 0]):a&&(S=T[1],w===void 0?e=S:e instanceof Map?e.set(w,S):e instanceof Set?e.add(S):u(e)&&(S!==void 0||w in e)&&(e[w]=S))}if(g!=="not_valid")for(let w of n.refiner(e,b))w.explanation=t.message,g="not_refined",yield[w,void 0];g==="valid"&&(yield[void 0,e])}class l{constructor(n){let{type:t,schema:r,validator:o,refiner:a,coercer:d=g=>g,entries:b=function*(){}}=n;this.type=t,this.schema=r,this.entries=b,this.coercer=d,o?this.validator=(g,w)=>{let S=o(g,w);return h(S,w,this,g)}:this.validator=()=>[],a?this.refiner=(g,w)=>{let S=a(g,w);return h(S,w,this,g)}:this.refiner=()=>[]}assert(n,t){return M(n,this,t)}create(n,t){return A(n,this,t)}is(n){return I(n,this)}mask(n,t){return z(n,this,t)}validate(n,t={}){return _(n,this,t)}}function M(e,n,t){let r=_(e,n,{message:t});if(r[0])throw r[0]}function A(e,n,t){let r=_(e,n,{coerce:!0,message:t});if(r[0])throw r[0];return r[1]}function z(e,n,t){let r=_(e,n,{coerce:!0,mask:!0,message:t});if(r[0])throw r[0];return r[1]}function I(e,n){return!_(e,n)[0]}function _(e,n,t={}){let r=k(e,n,t),o=j(r);return o[0]?[new s(o[0],function*(){for(let d of r)d[0]&&(yield d[0])}),void 0]:[void 0,o[1]]}function se(...e){let n=e[0].type==="type",t=e.map(o=>o.schema),r=Object.assign({},...t);return n?F(r):J(r)}function P(e,n){return new l({type:e,schema:null,validator:n})}function ae(e,n){return new l({...e,refiner:(t,r)=>t===void 0||e.refiner(t,r),validator(t,r){return t===void 0?!0:(n(t,r),e.validator(t,r))}})}function ce(e){return new l({type:"dynamic",schema:null,*entries(n,t){yield*e(n,t).entries(n,t)},validator(n,t){return e(n,t).validator(n,t)},coercer(n,t){return e(n,t).coercer(n,t)},refiner(n,t){return e(n,t).refiner(n,t)}})}function fe(e){let n;return new l({type:"lazy",schema:null,*entries(t,r){n??(n=e()),yield*n.entries(t,r)},validator(t,r){return n??(n=e()),n.validator(t,r)},coercer(t,r){return n??(n=e()),n.coercer(t,r)},refiner(t,r){return n??(n=e()),n.refiner(t,r)}})}function de(e,n){let{schema:t}=e,r={...t};for(let o of n)delete r[o];switch(e.type){case"type":return F(r);default:return J(r)}}function ue(e){let n=e instanceof l,t=n?{...e.schema}:{...e};for(let r in t)t[r]=q(t[r]);return n&&e.type==="type"?F(t):J(t)}function le(e,n){let{schema:t}=e,r={};for(let o of n)r[o]=t[o];switch(e.type){case"type":return F(r);default:return J(r)}}function pe(e,n){return console.warn("superstruct@0.11 - The `struct` helper has been renamed to `define`."),P(e,n)}function me(){return P("any",()=>!0)}function ye(e){return new l({type:"array",schema:e,*entries(n){if(e&&Array.isArray(n))for(let[t,r]of n.entries())yield[t,r,e]},coercer(n){return Array.isArray(n)?n.slice():n},validator(n){return Array.isArray(n)||`Expected an array value, but received: ${m(n)}`}})}function he(){return P("bigint",e=>typeof e=="bigint")}function be(){return P("boolean",e=>typeof e=="boolean")}function ge(){return P("date",e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \`Date\` object, but received: ${m(e)}`)}function we(e){let n={},t=e.map(r=>m(r)).join();for(let r of e)n[r]=r;return new l({type:"enums",schema:n,validator(r){return e.includes(r)||`Expected one of \`${t}\`, but received: ${m(r)}`}})}function ke(){return P("func",e=>typeof e=="function"||`Expected a function, but received: ${m(e)}`)}function Pe(e){return P("instance",n=>n instanceof e||`Expected a \`${e.name}\` instance, but received: ${m(n)}`)}function $e(){return P("integer",e=>typeof e=="number"&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${m(e)}`)}function Me(e){return new l({type:"intersection",schema:null,*entries(n,t){for(let r of e)yield*r.entries(n,t)},*validator(n,t){for(let r of e)yield*r.validator(n,t)},*refiner(n,t){for(let r of e)yield*r.refiner(n,t)}})}function Se(e){let n=m(e),t=typeof e;return new l({type:"literal",schema:t==="string"||t==="number"||t==="boolean"?e:null,validator(r){return r===e||`Expected the literal \`${n}\`, but received: ${m(r)}`}})}function Ne(e,n){return new l({type:"map",schema:null,*entries(t){if(e&&n&&t instanceof Map)for(let[r,o]of t.entries())yield[r,r,e],yield[r,o,n]},coercer(t){return t instanceof Map?new Map(t):t},validator(t){return t instanceof Map||`Expected a \`Map\` object, but received: ${m(t)}`}})}function H(){return P("never",()=>!1)}function je(e){return new l({...e,validator:(n,t)=>n===null||e.validator(n,t),refiner:(n,t)=>n===null||e.refiner(n,t)})}function Ee(){return P("number",e=>typeof e=="number"&&!isNaN(e)||`Expected a number, but received: ${m(e)}`)}function J(e){let n=e?Object.keys(e):[],t=H();return new l({type:"object",schema:e||null,*entries(r){if(e&&u(r)){let o=new Set(Object.keys(r));for(let a of n)o.delete(a),yield[a,r[a],e[a]];for(let a of o)yield[a,r[a],t]}},validator(r){return p(r)||`Expected an object, but received: ${m(r)}`},coercer(r,o){if(!p(r))return r;let a={...r};if(o.mask&&e)for(let d in a)e[d]===void 0&&delete a[d];return a}})}function q(e){return new l({...e,validator:(n,t)=>n===void 0||e.validator(n,t),refiner:(n,t)=>n===void 0||e.refiner(n,t)})}function Ae(e,n){return new l({type:"record",schema:null,*entries(t){if(u(t))for(let r in t){let o=t[r];yield[r,r,e],yield[r,o,n]}},validator(t){return p(t)||`Expected an object, but received: ${m(t)}`},coercer(t){return p(t)?{...t}:t}})}function De(){return P("regexp",e=>e instanceof RegExp)}function Oe(e){return new l({type:"set",schema:null,*entries(n){if(e&&n instanceof Set)for(let t of n)yield[t,t,e]},coercer(n){return n instanceof Set?new Set(n):n},validator(n){return n instanceof Set||`Expected a \`Set\` object, but received: ${m(n)}`}})}function V(){return P("string",e=>typeof e=="string"||`Expected a string, but received: ${m(e)}`)}function We(e){let n=H();return new l({type:"tuple",schema:null,*entries(t){if(Array.isArray(t)){let r=Math.max(e.length,t.length);for(let o=0;o<r;o++)yield[o,t[o],e[o]||n]}},validator(t){return Array.isArray(t)||`Expected an array, but received: ${m(t)}`},coercer(t){return Array.isArray(t)?t.slice():t}})}function F(e){let n=Object.keys(e);return new l({type:"type",schema:e,*entries(t){if(u(t))for(let r of n)yield[r,t[r],e[r]]},validator(t){return p(t)||`Expected an object, but received: ${m(t)}`},coercer(t){return p(t)?{...t}:t}})}function _e(e){let n=e.map(t=>t.type).join(" | ");return new l({type:"union",schema:null,coercer(t,r){for(let o of e){let[a,d]=o.validate(t,{coerce:!0,mask:r.mask});if(!a)return d}return t},validator(t,r){let o=[];for(let a of e){let[...d]=k(t,a,r),[b]=d;if(b[0])for(let[g]of d)g&&o.push(g);else return[]}return[`Expected the value to satisfy a union of \`${n}\`, but received: ${m(t)}`,...o]}})}function Y(){return P("unknown",()=>!0)}function L(e,n,t){return new l({...e,coercer:(r,o)=>I(r,n)?e.coercer(t(r,o),o):e.coercer(r,o)})}function ve(e,n,t={}){return L(e,Y(),r=>{let o=typeof n=="function"?n():n;if(r===void 0)return o;if(!t.strict&&N(r)&&N(o)){let a={...r},d=!1;for(let b in o)a[b]===void 0&&(a[b]=o[b],d=!0);if(d)return a}return r})}function Je(e){return L(e,V(),n=>n.trim())}function Fe(e){return W(e,"empty",n=>{let t=G(n);return t===0||`Expected an empty ${e.type} but received one with a size of \`${t}\``})}function G(e){return e instanceof Map||e instanceof Set?e.size:e.length}function Re(e,n,t={}){let{exclusive:r}=t;return W(e,"max",o=>r?o<n:o<=n||`Expected a ${e.type} less than ${r?"":"or equal to "}${n} but received \`${o}\``)}function ze(e,n,t={}){let{exclusive:r}=t;return W(e,"min",o=>r?o>n:o>=n||`Expected a ${e.type} greater than ${r?"":"or equal to "}${n} but received \`${o}\``)}function Te(e){return W(e,"nonempty",n=>G(n)>0||`Expected a nonempty ${e.type} but received an empty one`)}function Ue(e,n){return W(e,"pattern",t=>n.test(t)||`Expected a ${e.type} matching \`/${n.source}/\` but received "${t}"`)}function Ie(e,n,t=n){let r=`Expected a ${e.type}`,o=n===t?`of \`${n}\``:`between \`${n}\` and \`${t}\``;return W(e,"size",a=>{if(typeof a=="number"||a instanceof Date)return n<=a&&a<=t||`${r} ${o} but received \`${a}\``;if(a instanceof Map||a instanceof Set){let{size:d}=a;return n<=d&&d<=t||`${r} with a size ${o} but received one with a size of \`${d}\``}else{let{length:d}=a;return n<=d&&d<=t||`${r} with a length ${o} but received one with a length of \`${d}\``}})}function W(e,n,t){return new l({...e,*refiner(r,o){yield*e.refiner(r,o);let a=t(r,o),d=h(a,o,e,r);for(let b of d)yield{...b,refinement:n}}})}i.Struct=l,i.StructError=s,i.any=me,i.array=ye,i.assert=M,i.assign=se,i.bigint=he,i.boolean=be,i.coerce=L,i.create=A,i.date=ge,i.defaulted=ve,i.define=P,i.deprecated=ae,i.dynamic=ce,i.empty=Fe,i.enums=we,i.func=ke,i.instance=Pe,i.integer=$e,i.intersection=Me,i.is=I,i.lazy=fe,i.literal=Se,i.map=Ne,i.mask=z,i.max=Re,i.min=ze,i.never=H,i.nonempty=Te,i.nullable=je,i.number=Ee,i.object=J,i.omit=de,i.optional=q,i.partial=ue,i.pattern=Ue,i.pick=le,i.record=Ae,i.refine=W,i.regexp=De,i.set=Oe,i.size=Ie,i.string=V,i.struct=pe,i.trimmed=Je,i.tuple=We,i.type=F,i.union=_e,i.unknown=Y,i.validate=_}))});var f=require("electron"),$=D(require("node:path"),1),C=D(require("node:fs/promises"),1),B=D(require("node:worker_threads"),1);function X(i,s){let c=new URL(i),u=new URL(s);return c.search="",c.hash="",u.search="",u.hash="",u.toString().startsWith(c.toString())}var v=D(require("fs/promises"),1),O=D(require("path"),1);async function Z(i){let s={},c=await v.readdir(i);return await Promise.all(c.map(async u=>{let p=O.join(i,u);if((await v.stat(p)).isDirectory()){let m=await Z(p);Object.assign(s,m)}else{let m=await v.readFile(p);s[p]=m}})),s}async function K(i){let s=await Z(i),c={};return Object.keys(s).forEach(u=>{let N=O.relative(i,u).split(O.sep).join(O.posix.sep);c[N]=s[u]}),c}var ne=D(require("path"),1),R=D(require("fs/promises"),1),y=D(ee(),1),Xe=y.object({entrypoint:y.string(),embed:y.defaulted(y.boolean(),!1),idbfsMountpoints:y.optional(y.array(y.string())),nodeJsWorker:y.defaulted(y.boolean(),!1),nodefsMountpoints:y.optional(y.record(y.string(),y.string())),appMenu:y.defaulted(y.boolean(),!0)});async function te(){let i=ne.resolve(__dirname,"../stlite-manifest.json"),s=await R.readFile(i,{encoding:"utf-8"}),c=JSON.parse(s);return y.assert(c,Xe),c}function Ze(i,s){let c=/\{\{(.*?)\}\}/g;return s.replace(c,(u,p)=>{try{return i.getPath(p)}catch(N){return console.warn(`Failed to resolve placeholder ${p} (${N})`),u}})}function re(i,s){return Object.fromEntries(Object.entries(s).map(([c,u])=>[c,Ze(i,u)]))}function ie(i){return Promise.all(Object.values(i).map(s=>R.mkdir(s,{recursive:!0}))).catch(s=>{console.error("Failed to create nodefs mountpoints",s)}).then()}var oe=async()=>{let i=await te();i.appMenu===!1&&f.Menu.setApplicationMenu(null);let s=[];s.push(`--entrypoint=${JSON.stringify(i.entrypoint)}`),i.idbfsMountpoints&&s.push(`--idbfs-mountpoints=${JSON.stringify(i.idbfsMountpoints)}`),i.nodeJsWorker&&s.push("--nodejs-worker");let c=new f.BrowserWindow({width:1280,height:720,webPreferences:{preload:$.join(__dirname,"preload.js"),sandbox:!0,additionalArguments:s}}),u=new URL((f.app.isPackaged,"file:///index.html")),p=new URLSearchParams;i.embed&&p.set("embed","true"),u.search=p.toString();let N=u.toString(),m=h=>h==null?!1:X(N,h.url),j=(h,k)=>{if(!m(h.senderFrame))throw new Error(`Invalid IPC sender (${k}) ${h.senderFrame?.url??"(null)"}`)};f.ipcMain.handle("readSitePackagesSnapshot",h=>{j(h,"readSitePackagesSnapshot");let k=$.resolve(__dirname,"../site-packages-snapshot.tar.gz");return C.readFile(k)}),f.ipcMain.handle("readPrebuiltPackageNames",async h=>{j(h,"readPrebuiltPackageNames");let k=$.resolve(__dirname,"../prebuilt-packages.txt");return(await C.readFile(k,{encoding:"utf-8"})).split(`
2
+ `).map(M=>M.trim()).filter(M=>M.length>0)}),f.ipcMain.handle("readStreamlitAppDirectory",async h=>{j(h,"readStreamlitAppDirectory");let k=$.resolve(__dirname,"../app_files");return K(k)}),c.on("closed",()=>{f.ipcMain.removeHandler("readSitePackagesSnapshot"),f.ipcMain.removeHandler("readPrebuiltPackageNames"),f.ipcMain.removeHandler("readStreamlitAppDirectory")});let E=null;f.ipcMain.handle("initializeNodeJsWorker",async h=>{j(h,"initializeNodeJsWorker");let k=$.resolve(__dirname,"..","pyodide","pyodide.mjs"),l=i.nodefsMountpoints&&re(f.app,i.nodefsMountpoints);l&&await ie(l);function M(A){c.webContents.send("messageFromNodeJsWorker",A)}E=new B.default.Worker($.resolve(__dirname,"worker.js"),{env:{PYODIDE_URL:k,...i.nodefsMountpoints&&{NODEFS_MOUNTPOINTS:JSON.stringify(l)}}}),E.on("message",A=>{M(A)})}),f.ipcMain.on("messageToNodeJsWorker",(h,{data:k,portId:l})=>{if(j(h,"messageToNodeJsWorker"),E==null)return;let M=new B.default.MessageChannel;M.port1.on("message",z=>{h.reply(`nodeJsWorker-portMessage-${l}`,z)});let A={data:k,port:M.port2};E.postMessage(A,[M.port2])}),f.ipcMain.handle("terminateNodeJsWorker",h=>{j(h,"terminateNodeJsWorker"),E?.terminate(),E=null}),c.on("closed",()=>{f.ipcMain.removeHandler("initializeNodeJsWorker"),f.ipcMain.removeHandler("messageToNodeJsWorker"),f.ipcMain.removeHandler("terminateNodeJsWorker")}),c.loadURL(N),f.app.isPackaged||c.webContents.openDevTools()};f.app.enableSandbox();f.app.commandLine.appendSwitch("disable-features","PlzDedicatedWorker");f.app.whenReady().then(()=>{let i=$.resolve(__dirname,"..");f.protocol.handle("file",s=>{let c=new URL(s.url).pathname;if(!$.isAbsolute(c))return f.net.fetch(s,{bypassCustomProtocolHandlers:!0});let u=$.normalize($.join(i,c)),p=new Request("file://"+u,s);return f.net.fetch(p,{bypassCustomProtocolHandlers:!0})}),oe(),f.app.on("activate",()=>{f.BrowserWindow.getAllWindows().length===0&&oe()})});f.app.on("window-all-closed",()=>{process.platform!=="darwin"&&f.app.quit()});f.app.on("web-contents-created",(i,s)=>{s.on("will-attach-webview",c=>{c.preventDefault()}),s.on("will-navigate",(c,u)=>{console.debug("will-navigate",u),c.preventDefault()}),s.setWindowOpenHandler(({url:c})=>(console.error("Opening a new window is not allowed.",c),{action:"deny"}))});