1import{_r as e,c as t}from"./dist-DAh4MArN.js";import{n}from"./dist-BSnVaRhB.js";var r=t();function i({showProgress:t}){let i=()=>{if(t&&typeof document<`u`&&e.isStarted())try{e.finish()}catch{}};return n({baseUrl:()=>r.props?r.props.api_url:`https://api.cloudconvert.com`,options:{beforeFetch:async function({options:n}){n.credentials=n.credentials||`include`;let r=new Headers(n.headers),i=(n.method??`GET`).toString().toUpperCase();if((n.credentials!==`omit`||i!==`GET`)&&r.set(`X-XSRF-TOKEN`,u()||``),n.headers=r,t&&typeof document<`u`)try{e.start()}catch{}return{options:n}},afterFetch:async function(e){return i(),e},onFetchError:async function(e){return i(),e}}})}var a=i({showProgress:!0}),o=i({showProgress:!1});async function s(e){return(await c(e))?.message??void 0}async function c(e){try{let t=e?.data?.value;if(t&&typeof t==`object`&&`message`in t)return t;let n=e?.response?.value;if(n){let e=n.clone();if((e.headers.get(`content-type`)||``).includes(`application/json`)){let t=await e.json().catch(()=>void 0);if(t&&typeof t==`object`&&`message`in t)return t}let t=await e.text().catch(()=>``);if(t)return{message:t,code:`NETWORK_ERROR`}}}catch{}}function l(e){if(typeof document>`u`)return null;let t=document.cookie.match(RegExp(`(^|;\\s*)(`+e+`)=([^;]*)`));return t?decodeURIComponent(t[3]):null}function u(){return l(`XSRF-TOKEN`)}export{o as a,a as i,s as n,u as r,c as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.