1import{A as b,c as O,h as k,a as R,at as x,U as A,au as L,aa as N,X as U,f as P,C as T,b as H,V as z,ap as D,av as $,m as E,p as C,aw as K,o as J}from"./runtime.C7gIlmBF.js";import{e as q,f as B}from"./page_settings.CQaITPUw.js";import{g as W}from"./runtime.C1AkxtCQ.js";import{t as Z,e as F}from"./disclose-version.3GVHLepd.js";import"./legacy.Bzx6kFkQ.js";const w=0,p=1,I=2;function ae(f,t,n,r,c){k&&R();var h=f,a=b(),s=J,i=A,u,l,d,m=(a?N:U)(void 0),y=(a?N:U)(void 0),g=!1;function _(o,v){g=!0,v&&(z(j),D(j),$(s));try{o===w&&n&&(u?E(u):u=P(()=>n(h))),o===p&&r&&(l?E(l):l=P(()=>r(h,m))),o!==w&&u&&C(u,()=>u=null),o!==p&&l&&C(l,()=>l=null),o!==I&&d&&C(d,()=>d=null)}finally{v&&($(null),D(null),z(null),K())}}var j=O(()=>{if(i!==(i=t())){if(x(i)){var o=i;g=!1,o.then(v=>{o===i&&(L(m,v),_(p,!0))},v=>{if(o===i)throw L(y,v),_(I,!0),y.v}),k?n&&(u=P(()=>n(h))):T(()=>{g||_(w,!0)})}else L(m,i),_(p,!1);return()=>i=A}});k&&(h=H)}const e={ja:"ja",en:"en",chs:"zh_CN",cht:"zh_TW",ko:"ko"},S={"ja-JP":e.ja,ja:e.ja,en:e.en,"en-US":e.en,cn:e.chs,chs:e.chs,zh:e.chs,"zh-CN":e.chs,"zh-Hans":e.chs,tw:e.cht,cht:e.cht,"zh-TW":e.cht,"zh-Hant":e.cht,ko:e.ko,"ko-KR":e.ko},G=f=>f?f.replace(/_/g,"-")in S?S[f]:f.split("-")[0]:void 0;class M{serviceDomain;fetcher;constructor(t){this.serviceDomain=t.serviceDomain,this.fetcher=t.fetcher||fetch}async _fetch(t,n,r){"_lang"in r||(r._lang=G(W()));const c=new URL(`${this.serviceDomain}/${n}/${t}`);if(r)for(const[a,s]of Object.entries(r))Array.isArray(s)?s.forEach(i=>c.searchParams.append(`${a}[]`,String(i))):s!==void 0&&c.searchParams.append(a,String(s));return await(await this.fetcher(c)).json().catch(a=>`Data fetch error: ${a}`).then(a=>{let s=JSON.stringify(a);return s=s.replace(/https?:\/\/[-a-zA-Z0-9._]+\.kuroco-img\.app/g,B),JSON.parse(s)})}getContents(t,n=fetch){this.fetcher=n;const{endpoint:r,apiId:c,...h}=t;return this._fetch(r,c,h)}getContent(t,n=fetch){this.fetcher=n;const{endpoint:r,apiId:c,contentId:h,...a}=t;return"preview_token"in a?this._fetch(`${r}`,c,a):this._fetch(`${r}/${h}`,c,a)}}const re=new M({serviceDomain:q});var V=Z('<div class="loading svelte-7k6tqd"><div class="dot svelte-7k6tqd"></div></div>');function ne(f){var t=V();F(f,t)}export{ne as L,ae as a,re as k};
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.