1import{l as e}from"./apiResponse-C8fEm_-L.js";import{o as t}from"./blogMeta-BvgcPzkT.js";import{i as n,n as r,r as i,t as a}from"./blogEmbed-C2PhCk_j.js";function o(e){let t=String(e??``).toLowerCase();return t===`video`||t===`1`?`video`:t===`blog`||t===`2`?`blog`:null}function s(e){return{uid:Number(e.uid),username:String(e.username??``),avatarUrl:String(e.avatar_url??``),latestActivityTime:String(e.latest_activity_time??``)}}function c(e){if(!e||typeof e!=`object`)return[];let t=e;return t.status===`error`||!Array.isArray(t.data?.user_list)?[]:t.data.user_list.map(s)}function l(e){let s=o(e.content_type);if(!s)return null;let c={contentType:s,uid:Number(e.uid??0),username:String(e.username??``),avatarUrl:e.avatar_url?String(e.avatar_url):void 0,title:String(e.title??``),time:String(e.time??``),likeCount:Number(e.like_count??0),favoriteCount:Number(e.favorite_count??0),viewCount:Number(e.view_count??0)};if(s===`video`&&e.vid!=null)return{...c,contentType:`video`,vid:Number(e.vid),coverUrl:e.cover_url?String(e.cover_url):void 0,isGore:t(e.is_gore)};if(s===`blog`&&e.bid!=null){let t=n(e.forward_bid),o=i(e.attached_vid);return{...c,contentType:`blog`,bid:Number(e.bid),content:e.content?String(e.content):void 0,commentCount:Number(e.comment_count)||0,thumbnails:Array.isArray(e.thumbnails)?e.thumbnails.map(String):[],forwardBid:t,forward:t>0?r(e.forward):null,attachedVid:o,attachedVideo:o?a(e.attached_video):null}}return null}function u(e){if(!e||typeof e!=`object`)return[];let t=e;return t.status===`error`||!Array.isArray(t.data?.timeline_list)?[]:t.data.timeline_list.map(l).filter(e=>e!==null)}function d(e){return{bid:String(e.bid),uid:String(e.uid),title:e.title,content:e.content??``,time:e.time,likeCount:e.likeCount,favoriteCount:e.favoriteCount,viewCount:e.viewCount,avatarUrl:e.avatarUrl??``,commentCount:e.commentCount,thumbnails:e.thumbnails,isGore:0,forwardBid:e.forwardBid,forward:e.forward,attachedVid:e.attachedVid,attachedVideo:e.attachedVideo}}function f(t,n){return e(`/api/following/active/${t}`,{offset:n,num:24})}function p(t,n){return e(`/api/following/timeline`,{offset:t,num:20,token:n})}function m(t,n){return e(`/api/following/timeline/${t}`,{offset:n,num:20})}export{u as a,c as i,p as n,d as o,m as r,f 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.