1import{_ as Ze}from"./Vd2q0r2A.js";import{_ as Qe}from"./CecshVTc.js";import{_ as Xe,a as et}from"./VMXD-H6g.js";import{_ as tt}from"./B-ynk506.js";import{_ as lt,u as st,a as ot,m as at,p as nt,q as rt,y as it,c as ct,d as r,e as t,h as k,j as C,f as e,t as s,g as ut,P as dt,F as d,B as h,A as j,r as g,L as ae,M as fe,D as yt,H as q,k as m,l as v,o as n,n as me}from"./BjJdJosU.js";import{u as ht}from"./pWoJWdgV.js";import{u as vt}from"./BAvoydaI.js";import"./6m6NLUVP.js";import"./Dyc5oyY_.js";import"./E6qi9i2G.js";import"./BJIvbjoD.js";const _t={class:"result container"},pt={class:"result-hero"},ft={class:"stamp"},mt={class:"result-layout"},gt={class:"ad-rail"},bt={class:"main-col"},kt={key:0,class:"resolving-note"},wt={key:0,class:"need-input load-error"},jt={key:1,class:"info-card"},St={class:"info-card-head"},xt={key:0,width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},$t={key:1,width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},Tt={class:"info-grid"},Ct={class:"k"},Nt={class:"v"},Mt={key:2,class:"info-card"},Kt={class:"info-card-head"},Lt={key:0,class:"need-input"},Dt={class:"section-head"},Ft={class:"eyebrow"},It={key:0,class:"loading-note"},Pt={key:1,class:"overall-list"},Et={class:"ov-glyph"},qt={class:"ov-body"},Ot={class:"ov-title"},At={class:"ov-text"},Bt={key:0,class:"need-input"},Ht={key:0,class:"loading-note"},Yt={key:0},Ut={class:"section-head"},zt={class:"eyebrow"},Vt={class:"overall-list"},Gt={class:"ov-card"},Jt={class:"ov-body"},Rt={class:"ov-text pre"},Wt={key:1},Zt={class:"section-head"},Qt={class:"eyebrow"},Xt={class:"month-list"},el={class:"mo-card"},tl={class:"mo-head"},ll={class:"mo-chip"},sl={class:"mo-text pre"},ol={key:0,class:"ad-inline"},al={key:0,class:"need-input"},nl={class:"section-head"},rl={class:"eyebrow"},il={key:0,class:"loading-note"},cl={key:1,class:"overall-list"},ul={class:"ov-glyph"},dl={class:"ov-body"},yl={class:"ov-title"},hl={class:"ov-text pre"},vl={key:0,class:"need-input"},_l={class:"section-head"},pl={class:"eyebrow"},fl={key:0,class:"loading-note"},ml={key:1,class:"overall-list"},gl={class:"ov-glyph"},bl={class:"ov-body"},kl={class:"ov-title"},wl={class:"ov-text pre"},jl={key:0,class:"need-input"},Sl={class:"section-head"},xl={class:"eyebrow"},$l={key:0,class:"loading-note"},Tl={key:1,class:"lotto-wrap"},Cl={key:0,class:"lotto-block"},Nl={class:"lotto-sec-title"},Ml={class:"lotto-gauge"},Kl={class:"lg-track"},Ll={class:"lg-label"},Dl={key:1,class:"ov-card"},Fl={class:"ov-body"},Il={class:"ov-title"},Pl={class:"ov-text pre"},El={key:2,class:"lotto-block"},ql={class:"lotto-sec-title"},Ol={class:"lotto-week"},Al={class:"lw-day"},Bl={class:"lw-wd"},Hl={class:"lw-bar"},Yl={class:"lw-phrase"},Ul={key:3,class:"lotto-block"},zl={class:"lotto-sec-title"},Vl={class:"lotto-balls"},Gl={class:"lotto-balls-legend"},Jl={key:0},Rl={key:0,class:"lotto-bundles"},Wl={class:"lb-no"},Zl={key:4,class:"ov-card"},Ql={class:"ov-body"},Xl={class:"ov-title"},es={class:"ov-text pre"},ts={key:5,class:"lotto-block"},ls={class:"lotto-sec-title"},ss={class:"lotto-table-wrap"},os={class:"lotto-saju-table"},as={class:"lst-label"},ns={key:6,class:"lotto-block"},rs={class:"lotto-sec-title"},is={class:"lotto-aura"},cs={class:"la-row"},us={class:"la-k"},ds={class:"la-v"},ys={class:"la-row"},hs={class:"la-k"},vs={class:"la-v"},_s={class:"la-row"},ps={class:"la-k"},fs={class:"la-v"},ms={key:0,class:"la-row"},gs={class:"la-k"},bs={class:"la-v"},ks={key:7,class:"ov-card"},ws={class:"ov-body"},js={class:"ov-title"},Ss={class:"ov-text pre"},xs={key:0,class:"need-input"},$s={class:"section-head"},Ts={class:"eyebrow"},Cs={key:0,class:"loading-note"},Ns={key:1,class:"overall-list"},Ms={class:"ov-glyph"},Ks={class:"ov-body"},Ls={class:"ov-title"},Ds={class:"ov-text pre"},Fs={key:9,class:"need-input"},Is={class:"disclaimer"},Ps={class:"actions"},Es={key:12,class:"ad-bottom"},qs={class:"ad-rail"},Os="taoist_upsell_free",As={__name:"free",setup(Bs){const{t:o,locale:b}=st(),w=ot(),x=at(),N=nt(),ne=ht(),{current:u,hasInput:O,save:ge}=rt();vt("result");const L=v(()=>_.value==="today"),A=v(()=>_.value==="tojung"),B=v(()=>_.value==="month"),H=v(()=>_.value==="date"),Y=v(()=>_.value==="lotto"),re=v(()=>_.value==="hour"),ie={today:{stamp:"æ¥",titleKey:"free.today.title",ganji:!1},tojung:{stamp:"ç§",titleKey:"free.tojung.title",ganji:!0},date:{stamp:"æ
",titleKey:"free.date.title",ganji:!1},lotto:{stamp:"財",titleKey:"free.lotto.title",ganji:!1},month:{stamp:"æ",titleKey:"free.month.title",ganji:!1},hour:{stamp:"å¹³",titleKey:"free.hour.title",ganji:!1}},_=v(()=>{const l=String(x.query.service||x.query.type||"").toLowerCase();return ie[l]?l:null}),D=v(()=>_.value?ie[_.value]:null),be={today:{to:{path:"/saju",query:{service:"newyear"}},copyKey:"newyearGate",product:"newyear",gate:!0},month:{to:{path:"/saju",query:{service:"newyear"}},copyKey:"newyear",product:"newyear"},lotto:{to:{path:"/saju",query:{service:"newyear"}},copyKey:"lotto",product:"newyear"},tojung:{to:{path:"/saju",query:{service:"lifetime"}},copyKey:"lifetimeGate",product:"lifetime",gate:!0},hour:{to:{path:"/saju",query:{service:"lifetime"}},copyKey:"lifetime",product:"lifetime",gate:!0,cooldownDays:7,priceKey:"lifetime"},date:{to:{path:"/celeb-select",query:{service:"celeb"}},copyKey:"celeb",product:"celeb"}},$=v(()=>_.value?be[_.value]:null),ce=v(()=>D.value?.stamp||"å"),ue=v(()=>D.value?o(D.value.titleKey):o("result.title")),de=v(()=>D.value?D.value.ganji:!0),ye=["January","February","March","April","May","June","July","August","September","October","November","December"];function ke(l){const a=l.calendar==="lunar"?"saju.cal.lunar":l.calendar==="lunar-leap"?"saju.cal.leap":"saju.cal.solar",c=o(a);let p;return b.value==="en"?p=`${ye[l.mo-1]} ${l.d}, ${l.y}`:b.value==="ko"?p=`${l.y}ë
${l.mo}ì ${l.d}ì¼`:p=`${l.y}å¹´${l.mo}æ${l.d}æ¥`,`${p} (${c})`}function we(l){const[a,c]=l.split(":");return b.value==="ko"?`${a}ì ${c}ë¶`:b.value==="ja"||b.value==="zh"?`${a}æ${c}å`:`${a}:${c}`}const he=l=>String(l).padStart(2,"0"),ve=v(()=>{const l=u.value;return l&&l.year?{name:l.name||o("saju.preview.guest"),gender:l.gender,calendar:l.calendar,y:l.year,mo:l.month,d:l.day,hh:l.hour,mm:l.minute}:null}),je=v(()=>{const l=ve.value;return l&&l.hh!=null?we(`${he(l.hh)}:${he(l.mm??0)}`):o("saju.save.none")}),Se=v(()=>{const l=ve.value;return l?[[o("result.name"),l.name],[o("result.birth"),ke(l)],[o("result.hour"),je.value],[o("saju.field.gender"),o(l.gender==="f"?"saju.field.female":"saju.field.male")]]:[]}),xe=[{key:"total",glyph:"總",col:"total"},{key:"money",glyph:"財",col:"money"},{key:"biz",glyph:"æ¥",col:"biz"},{key:"job",glyph:"è·",col:"job"},{key:"love",glyph:"æ
",col:"love"},{key:"wish",glyph:"é¡",col:"wish"},{key:"hope",glyph:"æ",col:"hope"}],U=m(null),z=m(!1),$e=v(()=>{const l=U.value;return l?xe.filter(a=>l[a.col]).map(a=>({glyph:a.glyph,title:o("today."+a.key),body:l[a.col]})):[]});async function Te(){const l=u.value;if(!L.value||!l||!l.year)return;z.value=!0;const a=new Date,c=`${a.getFullYear()}
1-${String(a.getMonth()+1).padStart(2,"0")}-${String(a.getDate()).padStart(2,"0")}`;try{const p=await $fetch("/api/fortune/today",{method:"POST",body:{year:l.year,month:l.month,day:l.day,hour:l.hour,calendar:l.calendar,lang:b.value,target:c}});U.value=p?.fortune||null}catch{L.value&&(T.value=o("result.loadError")),U.value=null}finally{z.value=!1}}const Ce=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],M=m(null),V=m(!1),_e=v(()=>{const l=M.value;return l?Ce.map((a,c)=>({n:c+1,label:b.value==="en"?ye[c]:b.value==="ko"?`${c+1}ì`:`${c+1}æ`,body:l[a]})).filter(a=>a.body):[]});async function Ne(){const l=u.value;if(!(!A.value||!l||!l.year)){V.value=!0;try{const a=await $fetch("/api/fortune/tojung",{method:"POST",body:{year:l.year,month:l.month,day:l.day,gender:l.gender,calendar:l.calendar,lang:b.value}});M.value=a?.fortune||null}catch{A.value&&(T.value=o("result.loadError")),M.value=null}finally{V.value=!1}}}const Me=[{key:"total",glyph:"總",col:"total"},{key:"manwoman",glyph:"ç·£",col:"manwoman"},{key:"date",glyph:"æ¥",col:"date_unse"},{key:"kind",glyph:"å",col:"kind_unse"}],G=m(null),J=m(!1),Ke=v(()=>{const l=G.value;return l?Me.filter(a=>l[a.col]).map(a=>({glyph:a.glyph,title:o("month."+a.key),body:l[a.col]})):[]});async function Le(){const l=u.value;if(!B.value||!l||!l.year)return;J.value=!0;const a=new Date,c=`${a.getFullYear()}-${String(a.getMonth()+1).padStart(2,"0")}-${String(a.getDate()).padStart(2,"0")}`;try{const p=await $fetch("/api/fortune/month",{method:"POST",body:{year:l.year,month:l.month,day:l.day,lang:b.value,target:c}});G.value=p?.fortune||null}catch{B.value&&(T.value=o("result.loadError")),G.value=null}finally{J.value=!1}}const De=[{key:"total",glyph:"æ
",col:"datetotal"},{key:"place",glyph:"æ",col:"dateplace"},{key:"wish",glyph:"é¡",col:"datewish"}],R=m(null),W=m(!1),Fe=v(()=>{const l=R.value;return l?De.filter(a=>l[a.col]).map(a=>({glyph:a.glyph,title:o("date."+a.key),body:l[a.col]})):[]});async function Ie(){const l=u.value;if(!H.value||!l||!l.year)return;W.value=!0;const a=new Date,c=`${a.getFullYear()}-${String(a.getMonth()+1).padStart(2,"0")}-${String(a.getDate()).padStart(2,"0")}`;try{const p=await $fetch("/api/fortune/date",{method:"POST",body:{year:l.year,month:l.month,day:l.day,hour:l.hour,gender:l.gender,calendar:l.calendar,lang:b.value,target:c}});R.value=p?.fortune||null}catch{H.value&&(T.value=o("result.loadError")),R.value=null}finally{W.value=!1}}const E=m(null),Z=m(!1),F=m(!1),S=v(()=>E.value?.text||null),y=v(()=>E.value?.computed||null),Pe={green:"#3aa655",red:"#d6455a",brown:"#9a6b3f",white:"#e8e8ea",navy:"#3a55a6"};function Ee(l){return Pe[l]||"#888"}async function qe(){const l=u.value;if(!Y.value||!l||!l.year)return;Z.value=!0,F.value=!1;const a=new Date,c=`${a.getFullYear()}-${String(a.getMonth()+1).padStart(2,"0")}-${String(a.getDate()).padStart(2,"0")}`;try{E.value=await $fetch("/api/fortune/lotto",{method:"POST",body:{year:l.year,month:l.month,day:l.day,hour:l.hour,minute:l.minute,gender:l.gender,calendar:l.calendar,lang:b.value,target:c}})}catch{Y.value&&(T.value=o("result.loadError")),E.value=null}finally{Z.value=!1}}const Oe=[{key:"saju",glyph:"å½",col:"sajuwoon"},{key:"early",glyph:"å",col:"earlyyear"},{key:"middle",glyph:"ä¸",col:"middleyear"},{key:"last",glyph:"æ«",col:"lastyear"},{key:"love",glyph:"æ
",col:"lovewealth"},{key:"job",glyph:"æ¥",col:"jobhealth"}],Q=m(null),X=m(!1),Ae=v(()=>{const l=Q.value;return l?Oe.filter(a=>l[a.col]).map(a=>({glyph:a.glyph,title:o("life."+a.key),body:l[a.col]})):[]});async function Be(){const l=u.value;if(!(!re.value||!l||!l.year)){X.value=!0;try{const a=await $fetch("/api/fortune/lifeall",{method:"POST",body:{year:l.year,month:l.month,day:l.day,hour:l.hour,gender:l.gender,calendar:l.calendar,lang:b.value}});Q.value=a?.fortune||null}catch{Q.value=null}finally{X.value=!1}}}const ee=m(null);async function He(){const l=u.value;if(!(L.value||!l||!l.year))try{ee.value=await $fetch("/api/saju/manse",{method:"POST",body:{year:l.year,month:l.month,day:l.day,hour:l.hour,minute:l.minute,calendar:l.calendar,gender:l.gender,name:l.name}})}catch{ee.value=null}}const T=m("");function te(){T.value="",Te(),Ne(),Le(),Ie(),qe(),Be(),He()}function Ye(){te()}const le=m(!0);function Ue(l){const[a,c,p]=String(l.birth_date||"").split("-").map(Number);let I=null,P=null;if(l.birth_time){const[oe,i]=String(l.birth_time).split(":");I=Number(oe),P=Number(i)}return{name:l.name||"",gender:l.gender==="f"?"f":"m",calendar:l.calendar||"solar",year:a||null,month:c||null,day:p||null,hour:Number.isFinite(I)?I:null,minute:Number.isFinite(P)?P:null,place:l.birth_place||"",mbti:typeof l.mbti=="string"&&l.mbti.length===4?l.mbti.split(""):[null,null,null,null]}}async function ze(){if(O.value||!N.value)return;const{data:l}=await ne.from("people").select("*").eq("owner_id",N.value.id).order("created_at",{ascending:!1}),a=l||[],c=a.find(p=>p.rel_key==="self")||a[0];c&&ge(Ue(c))}
1async function Ve(){if(!_.value){le.value=!1;return}if(await ze(),!O.value){q(w({path:"/saju",query:{service:_.value}}),{replace:!0});return}if(le.value=!1,te(),x.query.save==="1"&&N.value){pe();const l={...x.query};delete l.save,q({path:x.path,query:l},{replace:!0})}}it(Ve),ct(b,()=>{O.value&&te()});function Ge(){q(w({path:"/saju",query:{service:_.value||"today"}}))}const Je={today:"gold",tojung:"purple",date:"rose",lotto:"jade",month:"blue",hour:"gold"},se=m(!1);async function pe(){if(!N.value){const c=x.fullPath.includes("?")?`${x.fullPath}&save=1`:`${x.fullPath}?save=1`;q(w({path:"/login",query:{reason:"save",redirect:c}}));return}if(se.value)return;se.value=!0;const l=u.value,{error:a}=await ne.from("saved_readings").insert({owner_id:N.value.id,type_key:_.value||"today",tier:"free",subject:l?{...l}:null,ganji:de.value?o("result.ganji"):null,glyph:ce.value,tint:Je[_.value]||"gold"});se.value=!1,alert(a?a.message:o("result.saved"))}function Re(){const l=typeof window<"u"?window.location.href:"";typeof navigator<"u"&&navigator.share?navigator.share({title:ue.value,url:l}).catch(()=>{}):typeof navigator<"u"&&navigator.clipboard&&navigator.clipboard.writeText(l).then(()=>alert(o("result.shareMock")))}return(l,a)=>{const c=Ze,p=Qe,I=Xe,P=tt,oe=et;return n(),r("main",_t,[t("div",pt,[k(c,{to:e(w)("/saju"),class:"back-btn"},{default:C(()=>[a[1]||(a[1]=t("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[t("polyline",{points:"15 18 9 12 15 6"})],-1)),t("span",null,s(e(o)("common.back")),1)]),_:1},8,["to"]),t("div",ft,s(e(ce)),1),t("h1",null,s(e(ue)),1),ut(t("span",{class:"ganji"},s(e(o)("result.ganji")),513),[[dt,e(de)]])]),t("div",mt,[t("aside",gt,[k(p,{"ad-slot":"5610413079",fixed:{width:160,height:600}})]),t("div",bt,[e(le)?(n(),r("p",kt,s(e(o)("result.loading")),1)):(n(),r(d,{key:1},[e(T)?(n(),r("div",wt,[t("p",null,s(e(T)),1),t("button",{class:"btn btn-primary",onClick:Ye},s(e(o)("premium.retry")),1)])):h("",!0),e(u)&&e(u).year?(n(),r("div",jt,[t("div",St,[a[4]||(a[4]=t("span",{class:"dot"},null,-1)),t("span",null,s(e(o)("result.userInfo")),1),t("button",{class:"edit-saju",onClick:Ge},[e(N)?(n(),r("svg",xt,[...a[2]||(a[2]=[t("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"},null,-1),t("circle",{cx:"9",cy:"7",r:"4"},null,-1),t("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"},null,-1),t("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"},null,-1)])])):(n(),r("svg",$t,[...a[3]||(a[3]=[t("path",{d:"M12 20h9"},null,-1),t("path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"},null,-1)])])),j(" "+s(e(N)?e(o)("result.pickPerson"):e(o)("result.changeSaju")),1)])]),t("div",Tt,[(n(!0),r(d,null,g(e(Se),([i,f],K)=>(n(),r("div",{key:K,class:"info-item"},[t("span",Ct,s(i),1),t("span",Nt,s(f),1)]))),128))])])):h("",!0),!e(L)&&e(u)&&e(u).year?(n(),r("div",Mt,[t("div",Kt,[a[5]||(a[5]=t("span",{class:"dot"},null,-1)),t("span",null,s(e(o)("sj.title")),1)]),k(I,{data:e(ee)},null,8,["data"])])):h("",!0),e(L)?(n(),r(d,{key:3},[!e(u)||!e(u).year?(n(),r("div",Lt,[t("p",null,s(e(o)("result.needInput")),1),k(c,{class:"btn btn-primary",to:e(w)("/saju")},{default:C(()=>[j(s(e(o)("result.needInput.cta")),1)]),_:1},8,["to"])])):(n(),r(d,{key:1},[t("div",Dt,[t("div",Ft,s(e(o)("free.today.title")),1),t("h2",null,s(e(o)("free.today.title")),1),t("p",null,s(e(o)("free.today.desc")),1)]),e(z)?(n(),r("p",It,s(e(o)("result.loading")),1)):(n(),r("div",Pt,[(n(!0),r(d,null,g(e($e),(i,f)=>(n(),r("article",{key:f,class:"ov-card"},[t("div",Et,s(i.glyph),1),t("div",qt,[t("h3",Ot,s(i.title),1),t("p",At,s(i.body),1)])]))),128))]))],64))],64)):e(A)?(n(),r(d,{key:4},[!e(u)||!e(u).year?(n(),r("div",Bt,[t("p",null,s(e(o)("result.needInput")),1),k(c,{class:"btn btn-primary",to:e(w)("/saju")},{default:C(()=>[j(s(e(o)("result.needInput.cta")),1)]),_:1},8,["to"])])):(n(),r(d,{key:1},[e(V)?(n(),r("p",Ht,s(e(o)("result.loading")),1)):e(M)?(n(),r(d,{key:1},[e(M).total?(n(),r("section",Yt,[t("div",Ut,[t("div",zt,s(e(o)("result.overall")),1),t("h2",null,s(e(o)("result.overall")),1)]),t("div",Vt,[t("article",Gt,[a[6]||(a[6]=t("div",{class:"ov-glyph"}
1,"總",-1)),t("div",Jt,[t("p",Rt,s(e(M).total),1)])])])])):h("",!0),e(_e).length?(n(),r("section",Wt,[t("div",Zt,[t("div",Qt,s(e(o)("result.monthly")),1),t("h2",null,s(e(o)("result.monthly")),1)]),t("div",Xt,[(n(!0),r(d,null,g(e(_e),(i,f)=>(n(),r(d,{key:i.n},[t("article",el,[t("div",tl,[t("span",ll,s(i.label),1),a[7]||(a[7]=t("span",{class:"mo-bar"},null,-1))]),t("p",sl,s(i.body),1)]),f===3||f===7?(n(),r("div",ol,[k(p,{"ad-slot":"5610413079"})])):h("",!0)],64))),128))])])):h("",!0)],64)):h("",!0)],64))],64)):e(B)?(n(),r(d,{key:5},[!e(u)||!e(u).year?(n(),r("div",al,[t("p",null,s(e(o)("result.needInput")),1),k(c,{class:"btn btn-primary",to:e(w)("/saju")},{default:C(()=>[j(s(e(o)("result.needInput.cta")),1)]),_:1},8,["to"])])):(n(),r(d,{key:1},[t("div",nl,[t("div",rl,s(e(o)("free.month.title")),1),t("h2",null,s(e(o)("free.month.title")),1),t("p",null,s(e(o)("free.month.desc")),1)]),e(J)?(n(),r("p",il,s(e(o)("result.loading")),1)):(n(),r("div",cl,[(n(!0),r(d,null,g(e(Ke),(i,f)=>(n(),r("article",{key:f,class:"ov-card"},[t("div",ul,s(i.glyph),1),t("div",dl,[t("h3",yl,s(i.title),1),t("p",hl,s(i.body),1)])]))),128))]))],64))],64)):e(H)?(n(),r(d,{key:6},[!e(u)||!e(u).year?(n(),r("div",vl,[t("p",null,s(e(o)("result.needInput")),1),k(c,{class:"btn btn-primary",to:e(w)("/saju")},{default:C(()=>[j(s(e(o)("result.needInput.cta")),1)]),_:1},8,["to"])])):(n(),r(d,{key:1},[t("div",_l,[t("div",pl,s(e(o)("free.date.title")),1),t("h2",null,s(e(o)("free.date.title")),1),t("p",null,s(e(o)("free.date.desc")),1)]),e(W)?(n(),r("p",fl,s(e(o)("result.loading")),1)):(n(),r("div",ml,[(n(!0),r(d,null,g(e(Fe),(i,f)=>(n(),r("article",{key:f,class:"ov-card"},[t("div",gl,s(i.glyph),1),t("div",bl,[t("h3",kl,s(i.title),1),t("p",wl,s(i.body),1)])]))),128))]))],64))],64)):e(Y)?(n(),r(d,{key:7},[!e(u)||!e(u).year?(n(),r("div",jl,[t("p",null,s(e(o)("result.needInput")),1),k(c,{class:"btn btn-primary",to:e(w)("/saju")},{default:C(()=>[j(s(e(o)("result.needInput.cta")),1)]),_:1},8,["to"])])):(n(),r(d,{key:1},[t("div",Sl,[t("div",xl,s(e(o)("free.lotto.title")),1),t("h2",null,s(e(o)("free.lotto.title")),1),t("p",null,s(e(o)("free.lotto.desc")),1)]),e(Z)?(n(),r("p",$l,s(e(o)("result.loading")),1)):(n(),r("div",Tl,[e(y)?(n(),r("section",Cl,[t("h3",Nl,s(e(o)("lotto.sec.gauge")),1),t("div",Ml,[t("div",Kl,[t("div",{class:"lg-fill",style:ae({width:e(y).gauge+"%"})},[t("span",null,s(e(y).gauge)+"%",1)],4)]),t("div",Ll,s(e(o)("lotto.gauge.label")),1)])])):h("",!0),e(S)&&e(S).unsetotal?(n(),r("article",Dl,[a[8]||(a[8]=t("div",{class:"ov-glyph"},"財",-1)),t("div",Fl,[t("h3",Il,s(e(o)("lotto.sec.total")),1),t("p",Pl,s(e(S).unsetotal),1)])])):h("",!0),e(y)?(n(),r("section",El,[t("h3",ql,s(e(o)("lotto.sec.weekly")),1),t("div",Ol,[(n(!0),r(d,null,g(e(y).weekly,i=>(n(),r("div",{key:i.offset,class:"lw-row"},[t("div",Al,[j(s(i.date.slice(5).replace("-","/"))+" ",1),t("span",Bl,"("+s(e(o)("lotto.weekday."+i.weekday))+")",1)]),t("div",Hl,[t("div",{class:me(["lw-fill","bk"+i.bucket]),style:ae({width:Math.max(6,i.score)+"%"})},null,6)]),t("div",Yl,s(i.phrase),1)]))),128))])])):h("",!0),e(y)?(n(),r("section",Ul,[t("h3",zl,s(e(o)("lotto.sec.numbers")),1),t("div",Vl,[(n(!0),r(d,null,g(e(y).luckyNumbers.main,i=>(n(),r("span",{key:"m"+i,class:"ball"},s(i),1))),128)),e(y).luckyNumbers.extra&&e(y).luckyNumbers.extra.length?(n(),r(d,{key:0},[a[9]||(a[9]=t("span",{class:"ball-plus"},"+",-1)),(n(!0),r(d,null,g(e(y).luckyNumbers.extra,i=>(n(),r("span",{key:"e"+i,class:me(["ball ball-extra","ek-"+e(y).luckyNumbers.extraKind])},s(i),3))),128))],64)):h("",!0)]),t("div",Gl,[t("span",null,s(e(o)("lotto.ball.main")),1),e(y).luckyNumbers.extra&&e(y).luckyNumbers.extra.length?(n(),r("span",Jl," · "+s(e(o)("lotto.ball."+e(y).luckyNumbers.extraKind)
1),1)):h("",!0)]),t("button",{type:"button",class:"lotto-bundle-toggle",onClick:a[0]||(a[0]=i=>F.value=!e(F))},s(e(F)?e(o)("lotto.bundle.hide"):e(o)("lotto.bundle.show")),1),e(F)?(n(),r("div",Rl,[(n(!0),r(d,null,g(e(y).luckyNumbers.bundles,(i,f)=>(n(),r("div",{key:f,class:"lb-set"},[t("span",Wl,s(f+1),1),(n(!0),r(d,null,g(i,K=>(n(),r("span",{key:f+"-"+K,class:"ball ball-sm"},s(K),1))),128))]))),128))])):h("",!0)])):h("",!0),e(S)&&e(S).lottolucky?(n(),r("article",Zl,[a[10]||(a[10]=t("div",{class:"ov-glyph"},"ç¦",-1)),t("div",Ql,[t("h3",Xl,s(e(o)("lotto.sec.strategy")),1),t("p",es,s(e(S).lottolucky),1)])])):h("",!0),e(y)?(n(),r("section",ts,[t("h3",ls,s(e(o)("lotto.sec.saju")),1),t("div",ss,[t("table",os,[t("thead",null,[t("tr",null,[t("th",null,s(e(o)("lotto.table.h.draw")),1),(n(!0),r(d,null,g(e(y).sajuTable.headerKeys,i=>(n(),r("th",{key:i},s(e(o)("lotto.table.h."+i)),1))),128))])]),t("tbody",null,[(n(!0),r(d,null,g(e(y).sajuTable.rows,(i,f)=>(n(),r("tr",{key:f},[t("td",as,s(e(o)("lotto.table.row").replace("{n}",f+1)),1),(n(!0),r(d,null,g(i,(K,We)=>(n(),r("td",{key:We},s(K),1))),128))]))),128))])])])])):h("",!0),e(y)?(n(),r("section",ns,[t("h3",rs,s(e(o)("lotto.sec.aura")),1),t("div",is,[t("div",cs,[t("div",us,s(e(o)("lotto.aura.color")),1),t("div",ds,[(n(!0),r(d,null,g(e(y).attributes.colors,i=>(n(),r("span",{key:i,class:"la-color"},[t("i",{class:"la-dot",style:ae({background:Ee(i)})},null,4),j(s(e(o)("color."+i)),1)]))),128))])]),t("div",ys,[t("div",hs,s(e(o)("lotto.aura.number")),1),t("div",vs,s(e(y).attributes.numbers.join(", ")),1)]),t("div",_s,[t("div",ps,s(e(o)("lotto.aura.direction")),1),t("div",fs,s(e(y).attributes.directions.map(i=>e(o)("dir."+i)).join(", ")),1)]),e(y).attributes.surnames?(n(),r("div",ms,[t("div",gs,s(e(o)("lotto.aura.surname")),1),t("div",bs,s(e(y).attributes.surnames.join(", ")),1)])):h("",!0)])])):h("",!0),e(S)&&e(S).wish?(n(),r("article",ks,[a[11]||(a[11]=t("div",{class:"ov-glyph"},"é¡",-1)),t("div",ws,[t("h3",js,s(e(o)("lotto.wish")),1),t("p",Ss,s(e(S).wish),1)])])):h("",!0)]))],64))],64)):e(re)?(n(),r(d,{key:8},[!e(u)||!e(u).year?(n(),r("div",xs,[t("p",null,s(e(o)("result.needInput")),1),k(c,{class:"btn btn-primary",to:e(w)("/saju")},{default:C(()=>[j(s(e(o)("result.needInput.cta")),1)]),_:1},8,["to"])])):(n(),r(d,{key:1},[t("div",$s,[t("div",Ts,s(e(o)("free.hour.title")),1),t("h2",null,s(e(o)("free.hour.title")),1),t("p",null,s(e(o)("free.hour.desc")),1)]),e(X)?(n(),r("p",Cs,s(e(o)("result.loading")),1)):(n(),r("div",Ns,[(n(!0),r(d,null,g(e(Ae),(i,f)=>(n(),r("article",{key:f,class:"ov-card"},[t("div",Ms,s(i.glyph),1),t("div",Ks,[t("h3",Ls,s(i.title),1),t("p",Ds,s(i.body),1)])]))),128))]))],64))],64)):(n(),r("div",Fs,[t("p",null,s(e(o)("result.notFound")),1),k(c,{class:"btn btn-primary",to:e(w)({path:"/",hash:"#free"})},{default:C(()=>[j(s(e(o)("result.notFound.cta")),1)]),_:1},8,["to"])])),e($)&&e(_)&&e(u)&&e(u).year?(n(),fe(P,{key:10,to:e($).to,"copy-key":e($).copyKey,product:e($).product,source:`free_${e(_)}`,variant:"context",dismissible:e($).gate===!0,"session-key":e($).gate===!0?`${Os}_${e(_)}`:"","cooldown-days":e($).cooldownDays||0,"price-key":e($).priceKey||""},null,8,["to","copy-key","product","source","dismissible","session-key","cooldown-days","price-key"])):h("",!0),t("div",Is,[a[12]||(a[12]=t("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[t("circle",{cx:"12",cy:"12",r:"10"}),t("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),t("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})],-1)),t("span",null,s(e(o)("result.disclaimer")),1)]),t("div",Ps,[t("button",{class:"btn btn-primary",onClick:pe},[a[13]||(a[13]=t("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[t("path",{d:"M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"})],-1)),t("span",null,s(e(o)("result.save")),1)]),t("button",{class:"btn btn-ghost",onClick:Re},[a[14]||(a[14]=yt('<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-b3a17660><circle cx="18" cy="5" r="3" data-v-b3a17660></circle><circle cx="6" cy="12" r="3" data-v-b3a17660></circle><circle cx="18" cy="19" r="3" data-v-b3a17660></circle><line x1="8.59" y1="13.51" x2="15.42" y2="17.49" data-v-b3a17660></line><line x1="15.41" y1="6.51" x2="8.59" y2="10.49" data-v-b3a17660></line></svg>',1)),t("span",null,s(e(o)("result.share")),1)])]),e(_)&&e(u)&&e(u).year?(n(),fe(oe,{key:11,"type-key":e(_)},null,8,["type-key"])):h("",!0),e(_)&&e(u)&&e(u).year?(n(),r("div",Es,[k(p,{"ad-slot":"5610413079"}
1)])):h("",!0)],64))]),t("aside",qs,[k(p,{"ad-slot":"1831451172",fixed:{width:160,height:600}})])])])}}},Xs=lt(As,[["__scopeId","data-v-b3a17660"]]);export{Xs 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.