1var e={trigger:`extractions`,retrieve:`results`,validate:`usage`,transactions:`transactions`,bigfileUpload:`uploads`,demo:`demo/extractions`};function t(t){let n=t.replace(/\/+$/,``);return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,`${n}/${t}`]))}var n={BASE_URL:`/beta/`,DEV:!1,MODE:`beta`,PROD:!0,SSR:!1,VITE_CLARITY_PROJECT_ID:`yjubaidhir`,VITE_EXTRACTION_API_URL:`https://w1edrtb1xc.execute-api.us-east-1.amazonaws.com/prod`,VITE_GOOGLE_CLIENT_ID:`387162865168-23bt45djjtuufom1mu1lg587q2q34fqf.apps.googleusercontent.com`,VITE_TURNSTILE_SITE_KEY:`0x4AAAAAAEeGFBM4cAmivsWk`},r={trigger:n.VITE_API_TRIGGER??`https://api.extracttable.com/v1/extractions`,retrieve:n.VITE_API_RETRIEVE??`https://getresult.extracttable.com`,validate:n.VITE_API_VALIDATE??`https://validator.extracttable.com`,transactions:n.VITE_API_TRANSACTIONS??`https://transactions.extracttable.com`,bigfileUpload:n.VITE_API_BIGFILE??`https://bigfile.extracttable.com`,payments:n.VITE_API_PAYMENTS??`https://payments.extracttable.com`,contact:n.VITE_API_CONTACT??`https://webactions.extracttable.com/contact`,userRating:n.VITE_API_RATING??`https://webactions.extracttable.com/userrating`,account:n.VITE_API_ACCOUNT??`https://account.extracttable.com`,demo:`${n.VITE_API_ACCOUNT??`https://account.extracttable.com`}/demo/extractions`,...n.VITE_EXTRACTION_API_URL?t(n.VITE_EXTRACTION_API_URL):{}},i=class extends Error{status;code;body;constructor(e,t,n,r){super(t),this.status=e,this.code=n,this.body=r}},a=null,o=e=>{a=e},s=null,c=e=>{s=e};async function l(e){let t,n=e.statusText,r;try{t=await e.json();let i=t;i.error?.message?(n=i.error.message,r=i.error.code):i.message&&(n=i.message)}catch{}return new i(e.status,n,r,t)}async function u(e,t,n={}){let r=await fetch(e,{...n,headers:{...n.headers??{},"x-api-key":t}});if(!r.ok)throw await l(r);return await r.json()}async function d(e,t={},n=!0){let i=await fetch(`${r.account}${e}`,{...t,headers:{"Content-Type":`application/json`,...t.headers??{},...a?{Authorization:`Bearer ${a}`}:{}},credentials:e.startsWith(`/auth/`)?`include`:`same-origin`});if(i.status===401&&n&&s&&await s())return d(e,t,!1);if(!i.ok)throw await l(i);if(i.status!==204)return await i.json()}var f=(e,t,n,r)=>d(`/auth/signup`,{method:`POST`,body:JSON.stringify({email:e,password:t,name:n,turnstile_token:r})}),p=(e,t)=>d(`/auth/login`,{method:`POST`,body:JSON.stringify({email:e,password:t})}),m=(e,t)=>d(`/auth/google`,{method:`POST`,body:JSON.stringify({code:e,redirect_uri:t})}),h=()=>d(`/auth/refresh`,{method:`POST`},!1),g=()=>d(`/auth/logout`,{method:`POST`},!1),_=()=>d(`/auth/logout-all`,{method:`POST`}),v=e=>d(`/auth/verify-email`,{method:`POST`,body:JSON.stringify({token:e})}),y=()=>d(`/auth/resend-verification`,{method:`POST`}),b=e=>d(`/auth/forgot-password`,{method:`POST`,body:JSON.stringify({email:e})}),x=(e,t)=>d(`/auth/reset-password`,{method:`POST`,body:JSON.stringify({token:e,password:t})});function S(e){let t=e.label?.trim();if(t&&t!==`My API key`)return t;let n=e.api_key||e.api_key_masked||``;return n.length>=6?`key_${n.slice(0,3)}â¦${n.slice(-3)}`:`API key`}var C=e=>e.map(e=>({...e,label:S(e)})),w=async()=>{let e=await d(`/account`);return{...e,keys:C(e.keys),archived_keys:e.archived_keys??[]}},T=async()=>{let e=await d(`/account/keys`);return{...e,keys:C(e.keys)}},E=()=>d(`/account/keys/sync`,{method:`POST`}),D=(e,t)=>d(`/account/keys/claim`,{method:`POST`,body:JSON.stringify({api_key:e,...t?{label:t}:{}})}),O=(e,t)=>d(`/account/trial-card/setup`,{method:`POST`,body:JSON.stringify({turnstile_token:e,device_id:t})}),k=e=>d(`/account/trial-card/confirm`,{method:`POST`,body:JSON.stringify({session_id:e})}),A=()=>d(`/account/keys/trial`,{method:`POST`,body:JSON.stringify({})}),j=(e,t)=>d(`/account/keys/${e}`,{method:`PATCH`,body:JSON.stringify({label:t})}),M=e=>d(`/account/keys/${e}`,{method:`DELETE`}),N=e=>{let t=new URLSearchParams;e.keyId&&t.set(`key_id`,e.keyId),e.days&&t.set(`days`,String(e.days));let n=t.toString();return d(`/account/transactions${n?`?${n}`:``}`)},P=async(e=14)=>{let t=await d(`/account/usage?days=${e}`);return{buckets:t.buckets??t.usage??[]}},F=e=>d(`/account/results/${encodeURIComponent(e)}`),I=(e,t)=>d(`/account/results/${encodeURIComponent(e)}`,{method:`PUT`,body:JSON.stringify(t)});export{v as C,o as D,l as E,c as O,j as S,u as T,x as _,w as a,E as b,P as c,p as d,g as f,y as g,A as h,b as i,r as k,F as l,h as m,k as n,N as o,_ as p,O as r,T as s,D as t,m as u,I as v,i as w,M as x,f as y};
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.