PageSourceSearch

https://www.ottohub.cn/assets/apiResponse-C8fEm_-L.js

js ottohub.cn collected 2026-10-06 13:14:34 UTC 3,429 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zh-CN-ylOr0fuO.js","assets/rolldown-runtime-hePW80VL.js"])))=>i.map(i=>d[i]);
2import{t as e}from"./vendor-vue-Bu-KQjoC.js";import{t}from"./zh-CN-ylOr0fuO.js";import{t as n}from"./preload-helper-Czpn1I53.js";var r=`ottohub-locale`,i=[`zh-CN`,`zh-TW`,`ja`,`ko`,`en`],a=`zh-CN`;function o(e){return i.includes(e)}function s(){if(typeof window>`u`)return a;try{let e=localStorage.getItem(r);if(e&&o(e))return e}catch{}return a}var c={"zh-CN":`localeName.zhCN`,"zh-TW":`localeName.zhTW`,ja:`localeName.ja`,ko:`localeName.ko`,en:`localeName.en`};function l(e){localStorage.setItem(r,e)}function u(e){document.documentElement.lang=e}var d={"zh-CN":()=>n(()=>import(`./zh-CN-ylOr0fuO.js`).then(e=>e.n),__vite__mapDeps([0,1])),"zh-TW":()=>n(()=>import(`./zh-TW-DjUpjTx1.js`),[]),ja:()=>n(()=>import(`./ja-E-Kq_7jE.js`),[]),ko:()=>n(()=>import(`./ko-Dhkz4dh0.js`),[]),en:()=>n(()=>import(`./en-sVhj7RSA.js`),[])},f=new Set([`zh-CN`]),p=e({legacy:!1,locale:a,fallbackLocale:a,messages:{"zh-CN":t}});async function m(e){if(f.has(e))return;let t=await d[e]();p.global.setLocaleMessage(e,t.default),f.add(e)}function h(e){p.global.locale.value=e}async function g(e){await m(e),h(e)}async function _(){let e=s();return await m(e),h(e),e}var v=`https://api.ottohub.cn`;function y(e,t){let n=e.startsWith(`/`)?e:`/${e}`,r=new URL(`${v}${n}`);if(t)for(let[e,n]of Object.entries(t))n!=null&&n!==``&&r.searchParams.set(e,String(n));return r.toString()}function b(e,t){return t?{...e,token:t}:e}function x(e,t=`api.errors.fallback`){let n=`api.errors.${e}`;return p.global.te(n)?p.global.t(n):p.global.t(t)}function S(e,t,n){let r=n??p.global.t(`api.errors.fallback`);if(Array.isArray(e)){let n=e.map(e=>{let n=String(e);return t?.[n]?t[n]:p.global.te(`api.errors.${n}`)?p.global.t(`api.errors.${n}`):p.global.te(`auth.errors.${n}`)?p.global.t(`auth.errors.${n}`):n}).filter(Boolean);return n.length>0?n.join(`;`):r}let i=String(e??``).trim();return i?t?.[i]?t[i]:p.global.te(`api.errors.${i}`)?p.global.t(`api.errors.${i}`):p.global.te(`auth.errors.${i}`)?p.global.t(`auth.errors.${i}`):i:r}function C(e){return!!(e&&typeof e==`object`&&e.status===`error`)}function w(e){return!!(e&&typeof e==`object`&&e.status===`success`)}function T(e,t){return{400:x(`http400`),401:x(`http401`),403:x(`http403`),404:x(`http404`),405:x(`http405`),408:x(`http408`),429:x(`http429`),500:x(`http500`),502:x(`http502`),503:x(`http503`),504:x(`http504`),524:x(`http524`)}[e]||t||p.global.t(`api.errors.fallback`)}function E(e){if(!e||typeof e!=`object`)return;let t=e;if(t.message!==void 0)return t.message;let n=t.data;if(n&&typeof n==`object`&&n.message!==void 0)return n.message}function D(e,t,n){let r=n?.fallback??p.global.t(`api.errors.fallback`),i=E(t);return w(t)?null:C(t)?S(i,n?.messages,r):e.ok?null:i!=null&&String(i)!==``?S(i,n?.messages,r):T(e.status,r)}async function O(e){try{return k(await e.text())}catch{return null}}function k(e){let t=e.trim();if(!t)return null;try{return JSON.parse(t)}catch{let e=t.indexOf(`{`),n=t.lastIndexOf(`}`);if(e<0||n<=e)return null;try{return JSON.parse(t.slice(e,n+1))}catch{return null}}}function A(e){if(!e||typeof e!=`object`)return null;let t=e,n=t.data;return n&&typeof n==`object`&&!Array.isArray(n)?n:t}export{u as _,A as a,v as c,_ as d,p as f,c as g,a as h,C as i,y as l,i as m,E as n,O as o,g as p,T as r,D as s,S as t,b as u,s as v,l 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.