"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8107],{98107:(e,t,a)=>{a.r(t),a.d(t,{default:()=>i});var i=async(e,t=[{}],a=null,i=!1,l=null)=>{Array.isArray(t)||(t=[t]),t[0].fileName=t[0].fileName||"Untitled";let s=[],n=null;if(e instanceof Blob&&e.type?n=e.type:e.headers&&e.headers.get("content-type")&&(n=e.headers.get("content-type")),t.forEach((e,t)=>{s[t]={description:e.description||"",accept:{}},e.mimeTypes?(0===t&&n&&e.mimeTypes.push(n),e.mimeTypes.map(a=>{s[t].accept[a]=e.extensions||[]})):n&&(s[t].accept[n]=e.extensions||[])}),a)try{await a.getFile()}catch(e){if(a=null,i)throw e}let c=a||await window.showSaveFilePicker({suggestedName:t[0].fileName,id:t[0].id,startIn:t[0].startIn,types:s,excludeAcceptAllOption:t[0].excludeAcceptAllOption||!1});!a&&l&&l();let r=await c.createWritable();if("stream"in e){let t=e.stream();return await t.pipeTo(r),c}return"body"in e?await e.body.pipeTo(r):(await r.write(await e),await r.close()),c}}}]);