1import{j as E,c as w,k as x,l as U,m as T,w as O,n as H,d as N,p as V,g as q,s as P,h as A,q as G,v as K,x as Y,a as $,y as F,f,b as i,z as Z,A as J,t as v,i as L,B as Q,F as W,r as X,T as ee,C as te,D as se,E as ae,_ as oe,o as D}from"./CWZYOOeu.js";import{u as ne}from"./IJ4_5_Vq.js";import{u as ie,a as re}from"./D1xyXIBA.js";const le=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],ce=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",b=[];class ue{_data=new M;_hash=new M([...le]);_nDataBytes=0;_minBufferSize=0;finalize(s){s&&this._append(s);const t=this._nDataBytes*8,e=this._data.sigBytes*8;return this._data.words[e>>>5]|=128<<24-e%32,this._data.words[(e+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(e+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(s,t){const e=this._hash.words;let o=e[0],a=e[1],n=e[2],d=e[3],r=e[4],m=e[5],_=e[6],g=e[7];for(let c=0;c<64;c++){if(c<16)b[c]=s[t+c]|0;else{const l=b[c-15],C=(l<<25|l>>>7)^(l<<14|l>>>18)^l>>>3,u=b[c-2],S=(u<<15|u>>>17)^(u<<13|u>>>19)^u>>>10;b[c]=C+b[c-7]+S+b[c-16]}const B=r&m^~r&_,p=o&a^o&n^a&n,k=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),I=(r<<26|r>>>6)^(r<<21|r>>>11)^(r<<7|r>>>25),z=g+I+B+ce[c]+b[c],y=k+p;g=_,_=m,m=r,r=d+z|0,d=n,n=a,a=o,o=z+y|0}e[0]=e[0]+o|0,e[1]=e[1]+a|0,e[2]=e[2]+n|0,e[3]=e[3]+d|0,e[4]=e[4]+r|0,e[5]=e[5]+m|0,e[6]=e[6]+_|0,e[7]=e[7]+g|0}_append(s){typeof s=="string"&&(s=M.fromUtf8(s)),this._data.concat(s),this._nDataBytes+=s.sigBytes}_process(s){let t,e=this._data.sigBytes/64;s?e=Math.ceil(e):e=Math.max((e|0)-this._minBufferSize,0);const o=e*16,a=Math.min(o*4,this._data.sigBytes);if(o){for(let n=0;n<o;n+=16)this._doProcessBlock(this._data.words,n);t=this._data.words.splice(0,o),this._data.sigBytes-=a}return new M(t,a)}}class M{words;sigBytes;constructor(s,t){s=this.words=s||[],this.sigBytes=t===void 0?s.length*4:t}static fromUtf8(s){const t=unescape(encodeURIComponent(s)),e=t.length,o=[];for(let a=0;a<e;a++)o[a>>>2]|=(t.charCodeAt(a)&255)<<24-a%4*8;return new M(o,e)}toBase64(){const s=[];for(let t=0;t<this.sigBytes;t+=3){const e=this.words[t>>>2]>>>24-t%4*8&255,o=this.words[t+1>>>2]>>>24-(t+1)%4*8&255,a=this.words[t+2>>>2]>>>24-(t+2)%4*8&255,n=e<<16|o<<8|a;for(let d=0;d<4&&t*8+d*6<this.sigBytes*8;d++)s.push(de.charAt(n>>>6*(3-d)&63))}return s.join("")}concat(s){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let t=0;t<s.sigBytes;t++){const e=s.words[t>>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=e<<24-(this.sigBytes+t)%4*8}else for(let t=0;t<s.sigBytes;t+=4)this.words[this.sigBytes+t>>>2]=s.words[t>>>2];this.sigBytes+=s.sigBytes}}function fe(h){return new ue().finalize(h).toBase64()}function j(h){return fe(E(h))}function he(h,s,t){const[e={},o]=[{},s],a=w(()=>x(h)),n=w(()=>x(e.key)||"$f"+j([o,typeof a.value=="string"?a.value:"",...ge(e)]));if(!e.baseURL&&typeof a.value=="string"&&a.value[0]==="/"&&a.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:d,lazy:r,default:m,transform:_,pick:g,watch:c,immediate:B,getCachedData:p,deep:k,dedupe:I,timeout:z,...y}=e,l=U({...T,...y,cache:typeof e.cache=="boolean"?void 0:e.cache}),C={server:d,lazy:r,default:m,transform:_,pick:g,immediate:B,getCachedData:p,deep:k,dedupe:I,timeout:z,watch:c===!1?[]:[...c||[],l]};if(!B){let S=function(){C.immediate=!0};O(n,S,{flush:"sync",once:!0}),O([...c||[],l],S,{flush:"sync",once:!0})}return ie(c===!1?n.value:n,(S,{signal:R})=>(e.$fetch||globalThis.$fetch)(a.value,{signal:R,...l}),C)}function ge(h){const s=[x(h.method)?.toUpperCase()||"GET",x(h.baseURL)];for(const t of[h.params||h.query]){const e=x(t);if(!e)continue;const o={};for(const[a,n]of Object.entries(e))o[x(a)]=x(n);s.push(o)}if(h.body){const t=x(h.body);if(!t)s.push(j(t));else if(t instanceof ArrayBuffer)s.push(j(Object.fromEntries([...new Uint8Array(t).entries()].map(([e,o])=>[e,o.toString()]))));else if(t instanceof FormData){const e={};for(const o of t.entries()){const[a,n]=o;e[a]=n instanceof File?n.name:n}s.push(j(e))}else if(H(t))s.push(j(U(t)));else try{s.push(j(t))}catch{console.warn("[useFetch] Failed to hash body",t)}}return s}const pe={key:0,class:"text-primary bg-background h-dvh overflow-y-auto pb-18.5 w-full max-w-192 lg:pb-24"},me={class:"relative"},_e=["src"],ye={class:"px-5.5 lg:px-16 relative -mt-8 lg:-mt-10"},ve={class:"text-surface-dark text-5 font-600 leading-5.5 px-4 lg:px-8"},we={class:"mt-4 px-4 text-surface-mid text-3.5 font-400 leading-5.5 lg:px-12 lg:text-4 lg:leading-6"},xe={class:"flex-center-center gap-1 bg-surface text-primary font-600 p-2 rounded-10 lg:text-5 lg:gap-2 lg:py-3 lg:px-4"},be={key:0,class:"w-10 h-10 z-5 w-85 h-108 bg-surface rounded-4 py-6 px-4 flex flex-col items-center relative lg:w-106"},Be={class:"flex justify-end w-full absolute top-6 right-4"},ke={class:"text-center flex flex-col mt-6"},ze={class:"text-4.5 font-700 text-surface-input"},Ce={class:"text-3.5 font-400 text-surface-mid"},De={class:"w-full h-56 overflow-auto mt-5 flex flex-col gap-3"},je={class:"border-1 border-surface-light w-full flex items-center justify-between min-h-26 rounded-3"},Me={class:"p-3 flex items-center gap-6"},Ie={class:"min-w-21 h-21 flex-center-center overflow-hidden relative"},Se=["src","alt"],$e={class:"text-4.5 font-700 text-ellipsis line-clamp-3 max-w-27.5 lg:max-w-48.5"},Fe={class:"w-full flex-center-center mt-9"},Re=N({__name:"[id]",async setup(h){let s,t;
1const e=ne(),a=V().params,n=q("hanaline_id",{default:()=>a.id}),{locale:d}=P(e),r=A(!1),m=w(()=>r.value),_=()=>{r.value=!1},{data:g}=([s,t]=G(()=>he("/proxy/hanaline/games/public","$YcCCZIvtLd")),s=await s,t(),s),c=w(()=>d.value==="zh"?["c83bf81f-2b3a-46f1-8449-2bc114125225","46ba88b4-cafe-47a7-b6a7-e9753aff3e37"]:d.value==="en"?["ca3aa00c-c499-4714-ae1f-22969b9aa016","4da1ea4e-5dbd-49e3-8daa-d3f862adacf6"]:[]),B=w(()=>g.value?g.value.filter(y=>c.value.includes(y.id)):[]),p=w(()=>g.value?g.value.find(y=>y.id===a.id):null);if(re({title:p.value?.name??"Hanaline"}),!p.value)throw K({status:404,message:"æ¾ä¸å°æ´»å"});const k=A(),I=w(()=>k.value?.height??375),z=w(()=>`calc(100dvh - ${I.value+42}px)`);return Y(()=>{n.value=a.id}),(y,l)=>{const C=oe;return f(p)?(D(),$("div",pe,[i("div",me,[i("img",{ref_key:"gameImage",ref:k,src:f(p).coverImage.url,alt:"coverImage_url",class:"w-full z-1"},null,8,_e),i("div",ye,[i("div",{class:"bg-surface rounded-t-4 pt-6 pb-24 shadow-md z-2 leading-5.5 lg:pt-7",style:J({minHeight:f(z)})},[i("div",ve,v(f(p).name),1),i("div",we,v(f(p).description),1)],4)])]),(D(),Z(ee,{to:"body"},[i("button",{class:"absolute bottom-22.5 right-4 rounded-10 p-1 z-2 lg:right-5 lg:bottom-28",style:{"box-shadow":"0px 4px 10px 0px rgba(153, 9, 93, 0.32)",background:`linear-gradient(\r 2 115.17deg,\r 3 #ff4daf 24.24%,\r 4 #ba2075 76.35%\r 5 )`},onClick:l[0]||(l[0]=u=>r.value=!0)},[i("div",xe,[l[3]||(l[3]=i("i",{class:"w-7 h-7 i-icon-game inline-block"},null,-1)),L(" "+v(f(d)==="zh"?"æ´å¤éæ²":"More"),1)])]),f(m)?(D(),$("div",{key:0,class:"absolute top-0 left-0 w-full h-dvh z-4 bg-[#0000004D] flex-center-center",onClick:Q(_,["self"])},[f(r)?(D(),$("div",be,[i("div",Be,[i("button",{class:"w-9 h-9",onClick:l[1]||(l[1]=u=>r.value=!1)},[...l[4]||(l[4]=[i("i",{class:"i-icon-close w-9 h-9 inline-block"},null,-1)])])]),i("div",ke,[i("span",ze,v(f(d)==="zh"?"è«é¸æéæ²é ç®":"Please select a game item"),1),i("span",Ce,v(f(d)==="zh"?"é»å³å°å³å»åå¾è©²éæ²":"Click to go to the game immediately"),1)]),i("div",De,[(D(!0),$(W,null,X(f(B),u=>(D(),$("div",je,[i("div",Me,[i("div",Ie,[i("img",{src:u.coverImage?.url,alt:u?.name,class:"absolute object-cover w-full h-full"},null,8,Se)]),i("div",$e,v(u?.name),1)]),te(C,{to:`/game/${u?.id}`,disabled:u?.id===f(a).id,class:ae(["h-full px-4 flex items-center rounded-r-3 whitespace-nowrap",{"bg-primary text-surface":u?.id!==f(a).id,"bg-background text-surface-mid":u?.id===f(a).id}])},{default:se(()=>[L(v(f(d)==="zh"?"åå¾":"Go"),1)]),_:1},8,["to","disabled","class"])]))),256))]),i("div",Fe,[i("button",{class:"w-full max-w-58 flex-center-center py-3 text-secondary leading-5.5 text-4 font-500 border-1 border-secondary-variant rounded-10",onClick:l[2]||(l[2]=u=>r.value=!1)},v(f(d)==="zh"?"è¿å":"Back"),1)])])):F("",!0)])):F("",!0)]))])):F("",!0)}}});export{Re as default};
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.