PageSourceSearch

https://daily-tohoku.news/_nuxt/Czsbdz9V.js

js daily-tohoku.news collected 2026-09-24 18:15:00 UTC 2,171 bytes, 1 lines download raw bytes

1import{i as c,S as w,F as t,N as h,A as E,V as i,ab as _}from"./aq7JMwut.js";let d=null;const R=()=>(d||(d=new u),d);class u{constructor(){}async getNewsSingle(r){const{id:o,accessLevel:a}=r,s=a===_?`/api/strapi/news/${o}`:`/api/strapi/news/${o}/premium`,e=void 0;try{return await $fetch(s,{headers:e,method:"GET",query:r})}catch(A){const n=c(A)?A.statusCode:500;switch(n){case 400:throw new i(t.ARTICLE_INVALID_PARAMS,{statusCode:n});case 401:throw new E(t.AUTH_TOKEN_EXPIRED,{statusCode:n});case 404:throw new h(t.ARTICLE_NOT_FOUND,{statusCode:n});default:throw new w(t.ARTICLE_FAILED,{statusCode:n})}}}async getNewsMany(r){const o="/api/strapi/news";try{return await $fetch(o,{headers:void 0,method:"GET",query:r})}catch(s){const e=c(s)?s.statusCode:500;switch(e){case 400:throw new i(t.NEWS_INVALID_PARAMS,{statusCode:e});case 401:throw new E(t.AUTH_TOKEN_EXPIRED,{statusCode:e});case 404:throw new h(t.NEWS_FAILED,{statusCode:e});default:throw new w(t.NEWS_FAILED,{statusCode:e})}}}async getUserPurchasedNewsDates(){const r="/api/strapi/user-purchased-news-dates";try{return await $fetch(r,{headers:void 0,method:"GET"})}catch(a){const s=c(a)?a.statusCode:500;switch(s){case 401:throw new E(t.AUTH_TOKEN_EXPIRED,{statusCode:s});default:throw new w(t.USER_PURCHASED_NEWS_DATES_FAILED,{statusCode:s})}}}async postUserTagFollows(r){const o="/api/strapi/user-tag-follows";try{return await $fetch(o,{headers:void 0,method:"POST",body:r})}catch(s){const e=c(s)?s.statusCode:500;switch(e){case 400:throw new i(t.USER_TAG_FOLLOW_INVALID_PARAMS,{statusCode:e});case 401:throw new E(t.AUTH_TOKEN_EXPIRED,{statusCode:e});case 404:throw new h(t.USER_TAG_FOLLOW_FAILED,{statusCode:e});default:throw new w(t.USER_TAG_FOLLOW_FAILED,{statusCode:e})}}}async postUserAction(r){const o="/api/strapi/user-actions";try{return await $fetch(o,{headers:void 0,method:"POST",body:r})}catch(s){const e=c(s)?s.statusCode:500;switch(e){case 400:throw new i(t.USER_ACTION_INVALID_PARAMS,{statusCode:e});case 401:throw new E(t.AUTH_TOKEN_EXPIRED,{statusCode:e});case 404:throw new h(t.USER_ACTION_FAILED,{statusCode:e});default:throw new w(t.USER_ACTION_FAILED,{statusCode:e})}}}}export{R as u};

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.