import{h as e,r,s as o,aj as n,i as u}from"./index.2e2ba873.js";function c(t){return e.get("https://api.bilibili.com/x/relation/stat",{params:{vmid:t},isWbi:!0}).then(r)}function p(t){return e.get("https://api.bilibili.com/x/dynamic/feed/space/dyn_num",{params:{uid_str:t},isWbi:!0}).then(r)}async function f(t){var s;const i=await Promise.all([c(t),p(t)]);return{follower:n(i[0].follower),following:n(i[0].following),dynamic:n((s=i[1])==null?void 0:s.dyn_num)}}function h(t){return e.get("https://api.bilibili.com/x/web-interface/history/cursor",{params:t,isWbi:!0}).then(r)}function m(t){return e.post("https://api.bilibili.com/x/v2/history/delete",t,{isWbi:!0}).then(r)}function d(){return e.post("https://api.bilibili.com/x/v2/history/clear",{},{isWbi:!0}).then(r)}function v(t){return e.get("https://api.bilibili.com/x/web-interface/history/search",{params:t,isWbi:!0}).then(r)}function g(t){return e.get("https://api.bilibili.com/x/v2/history/toview/web",{params:t,isWbi:!0}).then(r)}function W(){const t="https://api.bilibili.com/x/v2/history/toview/del";return e.post(t,{viewed:!0},{isWbi:!0}).then(r)}function w(){return e.post("https://api.bilibili.com/x/v2/history/toview/clear",{},{isWbi:!0}).then(r)}function y(t){const i="https://api.bilibili.com/x/v2/history/toview/del";return e.post(i,{aid:t},{isWbi:!0}).then(r)}function x(t,i=1){const s="https://api.bilibili.com/x/v3/fav/folder/created/list";return e.get(s,{params:{up_mid:t,ps:200,pn:i,platform:"pc"},isWbi:!0}).then(r)}function F(t){const i="https://api.bilibili.com/x/v3/fav/resource/list";return t=Object.assign({ps:20,keyword:"",order:"mtime",platform:"web"},t),e.get(i,{params:t,isWbi:!0}).then(r)}function _(t,i=1){const s="https://api.bilibili.com/x/space/fav/season/list";return e.get(s,{params:{season_id:t,ps:20,pn:i,platform:"web"},isWbi:!0}).then(r)}function L(t,i=1){const s="https://api.bilibili.com/x/v3/fav/folder/collected/list";return e.get(s,{params:{up_mid:t,ps:20,pn:i,platform:"web"},isWbi:!0}).then(r)}function S(t,i,s,a=1){const l="https://api.bilibili.com/x/space/bangumi/follow/list";return e.get(l,{params:{vmid:t,type:i,ps:20,pn:a,platform:"web",follow_status:s},isWbi:!0}).then(r)}function j(t,i){const s="https://api.bilibili.com/x/v3/fav/resource/batch-del";return e.post(s,{resources:i,media_id:t,platform:"web"},{isWbi:!0})}function D(t,i,s=2){const a=`${o.api}/x/v3/fav/folder/created/list-all`;return e.get(a,{params:{rid:t,up_mid:i,type:s},isWbi:!0}).then(r)}function H(t){const i=`${o.api}/x/v3/fav/folder/add`;return e.post(i,{...t,privacy:0},{isWbi:!0})}function $(t){const i=`${o.api}/x/v3/fav/resource/deal`;return u(t.type)||(t.type=2),e.post(i,{...t,platform:"web"},{isWbi:!0})}function C(t){const i=`${o.api}/x/v3/fav/resource/clean`;return e.post(i,{media_id:t,platform:"web"},{isWbi:!1})}export{h as a,x as b,d as c,m as d,L as e,S as f,f as g,D as h,$ as i,F as j,_ as k,C as l,j as m,g as n,W as o,H as p,w as q,y as r,v as s};
