1import{Bt as e}from"./vendor-ui-kit-88L1NEx0.js";import{c as t}from"./vendor-vue-core-B42jG-o9.js";import{h as n}from"./i18n-CzACpU48.js";function r(e){if(!e||typeof e!=`object`)return{entries:[]};let t=e,n=t.data&&typeof t.data==`object`?t.data:t,r=n.traffic_entries??n.traffic,i=n.logs_available_since??n.log_available_from;return{entries:Array.isArray(r)?r:[],logsAvailableSince:i}}var i=async()=>(await n.get(`dashboard/stats`,null,!0)).data,a=async(e=50,t=0,i=``,a=``,o=``)=>{let s={limit:e,offset:t};i&&(s.start=i),a&&(s.stop=a);let{entries:c,logsAvailableSince:l}=r((await n.get(`dashboard/traffic/log-details`,s,!0)).data);return{data:{traffic:c,log_available_from:l}}},o=async(e=`daily`,t=``,r=``,i,a,o)=>{let s={type:e};return t&&(s.start=t),r&&(s.end=r),a&&a.length>0?s.user_port_id=a:i&&(s.folder_id=i),s.proxy_type=o||`all`,(await n.get(`dashboard/traffic/history`,s,!0)).data},s=async e=>(await n.post(`dashboard/traffic/totals`,e,!0)).data,c=async e=>{let t=e?.country_code?.filter(Boolean),r=t?.length?{country_code:t}:null,i=(await n.get(`dashboard/proxies/count`,r,!0)).data;return typeof i==`number`?{total_count:i}:i??{}},l=t(`proxyCounts`,()=>{let t=e(!1),n=e(null);return{data:n,loading:t,fetch:async(e=!1,r)=>{if(!t.value&&!(n.value&&!e&&!r?.country_code?.length))try{t.value=!0,n.value=await c(r)}finally{t.value=!1}}}});export{s as a,i,o as n,a as r,l 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.