PageSourceSearch

https://www.lingodeer.com/_nuxt/index.B0HoWSh6.js

js lingodeer.com collected 2026-10-01 12:12:26 UTC 11,091 bytes, 1 lines download raw bytes

1import{aP as P,bl as de,bc as Z,bg as A,b1 as ce,aw as ue,aT as ge,cW as we,bd as me,b6 as pe,aH as fe,aI as _e,aK as ve,aX as C,bs as F,aC as e,aQ as j,aE as ye,aS as he,b5 as xe,aM as be,dJ as J,d2 as M,he as Le,hf as Q,dE as W,dF as Y,bh as Ce,dD as G}from"./entry.D_dqNKaD.js";import{F as c}from"./flex.BB22UdKo.js";import{F as u}from"./index.BGKITkPk.js";import{c as o}from"./index.BtgXQYSM.js";import K from"./index.D26FGp5t.js";import{P as Ke}from"./index.CpaSpP8L.js";import{e as ke}from"./ensureUserReady.cwHrSc8c.js";import{f as H}from"./reviewCover.Q1qyVuyE.js";import{u as Se}from"./useNoindexCourseCanonical.d3D7uZXR.js";import I from"./index.0vZ2tZ5P.js";import{d as D}from"./debounce.B6Hjd24j.js";import{c as X}from"./concat.DAAfeqTF.js";/* empty css                   */import"./el-progress.CK3RltC5.js";import"./client-only.DfDl5tM2.js";import"./index.QBFXRw-g.js";import"./profile.Wu8_1gUe.js";import"./flexRow.C1bYdgaN.js";import"./flexCol.UWoG24IK.js";import"./index.BiUQ0pIq.js";import"./el-overlay.CjA4dIux.js";import"./event.BMp57Gnf.js";import"./error.F7sIi--R.js";import"./index.ByNwT6Ke.js";/* empty css                */import"./back.CZ3e0hMG.js";import"./refs.C0mU2Lp5.js";import"./index.DLJDYbJR.js";import"./index.BMlp3zCB.js";import"./useStoreReady.BdUgGpRp.js";import"./useSetState.RAGWIOkA.js";import"./index.Bzf5qduh.js";import"./_baseFlatten.CNTMr4H1.js";import"./useTravelEntry.BFVJOZd7.js";import"./travel.CDbgmM5z.js";import"./index.DU4lnQgG.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"1efaec818d93a34fc75e3041dd55939e084a0ab6"};var f=new t.Error().stack;f&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[f]="80d2ab2d-7fdc-4e32-b24f-5eff7804c16a",t._sentryDebugIdIdentifier="sentry-dbid-80d2ab2d-7fdc-4e32-b24f-5eff7804c16a")}catch{}})();function V(t,f=!1){const g=P(null),b=P(null),i=P(!1),r=async(...n)=>{i.value=!0,b.value=null;try{const S=await t(...n);return g.value=S,g.value}catch(S){b.value=S;return}finally{i.value=!1}};return f&&r(),{data:g,error:b,loading:i,run:r}}function ze(t,f){const g=de({...f});Z(async()=>{try{const i=await A.getItem(t);i&&Object.assign(g,JSON.parse(i))}catch(i){console.warn(`[useSetStatePersistent] 读取失败: ${i}`)}ce(g,i=>{try{A.setItem(t,JSON.stringify(i))}catch(r){console.warn(`[useSetStatePersistent] 写入失败: ${r}`)}},{deep:!0})});function b(i){const r=typeof i=="function"?i(g):i;Object.assign(g,r)}return[g,b]}const Fe="_theme_n8mt2_2",Ie="_list_n8mt2_20",Re="_bg_n8mt2_21",De="_card_n8mt2_27",Ae="_title_n8mt2_41",$e="_subtitle_n8mt2_60",Ne="_srs_n8mt2_87",Ee="_line_n8mt2_91",l={theme:Fe,list:Ie,bg:Re,card:De,title:Ae,subtitle:$e,srs:Ne,line:Ee};function k(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!be(t)}const yt=ue({setup(){Se();const t=ge(),f=we(),g=me();pe();const{get:b}=J(),{dataSourceUrl:i}=fe(),r="/images/review/new",{t:n,locale:S,localeProperties:$}=_e(),L=ve();let N="",z=null;const B=()=>{const s=`${t.learnLangKey}:${$.value.key}`;return z&&N===s||(N=s,z=f.initialize($.value.key).catch(d=>{throw N===s&&(z=null),d})),z},[a,_]=ze(`review_page_state_${t.learnLangKey}`,{total:{word:0,sent:0,chart:0,knowledgesCard:0,srs:{new:0,process:0}},loading:!1}),{loading:v,run:ee}=V(async()=>{const s=await b({langKey:t.learnLangKey}),d=`${Ce.review.knowledge(t.learnLangKey)}_filled_v2`,y=await A.getItem(d);if(t.isLogin&&!await G(t.learnLangKey,{forceFull:!y||!(s!=null&&s.all.length)}))throw new Error("Initial review sync failed");const m=await f.fillMissingKnowledgeNew();t.isLogin&&m.w+m.s+m.c>0&&await G(t.learnLangKey);const w=await b({langKey:t.learnLangKey,reviewableOnly:!0}),h=await B(),p=H({knowledge:X(w==null?void 0:w.word,w==null?void 0:w.sent),words:h.words??[],sents:h.sents??[]});return _({total:{...a.total,word:p.filter(x=>x.type==="w").length,sent:p.filter(x=>x.type==="s").length}}),t.isLogin&&await W(t.learnLangKey),Y(t.learnLangKey),!0}),{loading:E,run:te}=V(async()=>{var d;const s=await f.initializeKnowledge($.value.key);_({total:{...a.total,knowledgesCard:((d=s==null?void 0:s.unlockKnowledgeCards)==null?void 0:d.length)??0}})}),{loading:T,run:ae}=V(async()=>{const{get:s}=J(),{word:d,sent:y}=await s({langKey:t.learnLangKey,reviewableOnly:!0})||{word:[],sent:[]},m=await B(),w=H({knowledge:X(d,y),words:m.words??[],sents:m.sents??[]}),h=M(w,Le),p=M(h,Q),x=M(h,R=>!Q(R));_({total:{...a.total,srs:{new:p.length,process:x.length}}}),t.isLogin&&await W(t.learnLangKey),Y(t.learnLangKey)});_({loading:!1});const se=async()=>
1{if(!await ke({timeoutMs:1e4})||!t.learnLangKey){_({loading:!1});return}const d=`current_sync_timestamp_review_${t.learnLangKey}`,y=Number(await A.getItem(d))||0;if(_({loading:!0}),y&&_({loading:!1}),!await ee()){_({loading:!1});return}await ae(),te(),_({loading:!1}),await xe()},O=j(()=>["cn","jp","kr"].includes(t.learnLang));Z(()=>{se()});const le=()=>{if(a.total.word||a.total.sent){C(L.gotoLanguageReviewVideo(t.learnLangKey,t.learnLangLevel));return}F({showClose:!0,message:n("review.there_s_nothing_here_yet_please_start_your_first_lesson")})},ne=D(()=>{if(a.total.word||a.total.sent){C(L.gotoLanguageReviewQuiz(t.learnLangKey,t.learnLangLevel));return}F({showClose:!0,message:n("review.there_s_nothing_here_yet_please_start_your_first_lesson")})},200),U=D(()=>{if(!a.total.knowledgesCard){F({showClose:!0,message:n("review.there_s_nothing_here_yet_please_start_your_first_lesson")});return}C(L.gotoLanguageReviewKnowledgecards(t.learnLangKey,t.learnLangLevel))},200),oe=D(s=>{g.reset(),s.count?(s.type==="word"&&C(L.gotoLanguageReviewWord(t.learnLangKey,t.learnLangLevel)),s.type==="sent"&&C(L.gotoLanguageReviewSent(t.learnLangKey,t.learnLangLevel))):F({showClose:!0,message:n("review.there_s_nothing_here_yet_please_start_your_first_lesson")})},200),ie=D(()=>{if(a.total.word||a.total.sent){C(L.gotoLanguageReviewFlashcards(t.learnLangKey,t.learnLangLevel));return}F({showClose:!0,message:n("review.there_s_nothing_here_yet_please_start_your_first_lesson")})},200),re=j(()=>[{title:n("lesson.finish.character"),type:"char",icon:`${r}/c.png`,total:0,count:0,show:!1},{title:n("lesson.finish.words"),type:"word",icon:`${r}/w.png`,total:0,count:a.total.word,show:a.loading||a.total.word>0},{title:n("lesson.finish.expressions"),type:"sent",icon:`${r}/e.png`,total:0,count:a.total.sent,show:a.loading||a.total.sent>0}]),q=j(()=>S.value==="en"&&["cn","jp","kr"].includes(t.learnLang));return()=>{let s,d,y,m,w,h;return e("div",{class:o("flex w-full h-full justify-center  !overflow-y-auto",l.theme)},[e(K,{loading:a.loading},{default:()=>[e(c,{class:["max_w_1000 gap-6 pt-5 box-border !overflow-visible","max-md:gap-0"]},{default:()=>[e(c,{class:["flex-1 flex-col gap-4 !overflow-visible","max-md:p-[0_10px]"]},{default:()=>[e("div",{class:[l.subtitle,l.srs]},[e(u,{size:18},k(s=n("review.new_review_SRS"))?s:{default:()=>[s]})]),e("div",{class:o("p-[24px_20px] box-border flex ripple min-h-fit",l.list),onClick:ie},[e(c,{class:"flex-1 gap-[20px]  items-center"},{default:()=>[e("img",{class:["block w-[50px] ld_img_base","max-md:w-8"],src:`${r}/srs.png`,alt:""},null),e(u,{class:l.title},k(d=n("srs_main_title"))?d:{default:()=>[d]})]}),e(c,{class:["w-max items-center gap-[40px]","max-md:gap-4"]},{default:()=>[e(u,{class:"text-[var(--FF9513)]",size:16},{default:()=>[a.total.srs.new+a.total.srs.process]}),e(K,{class:o({hidden:!T.value}),onlyIcon:!0,size:18,text:"",loading:T.value},null),e(I,{class:o("text-[var(--AFBCDA)]",{hidden:T.value}),size:18,name:"ep:arrow-right-bold"},null)]})]),e("div",{class:[l.subtitle,l.srs]},[e(u,{size:18},k(y=n("review.new_review_Practice"))?y:{default:()=>[y]})]),e("div",{class:l.bg},[e("div",{class:o("p-[24px_20px] box-border flex items-center ripple",l.list),onClick:ne},[e(c,{class:"flex-1 gap-[20px]  items-center"},{default:()=>[e("img",{class:["block w-[50px] ld_img_base","max-md:w-8"],src:`${r}/audio.png`,alt:""},null),e(u,{class:l.title},{default:()=>[O.value?n("review._5_min_quiz_audio_based"):n("review._5_min_quiz")]})]}),e(c,{class:["w-max items-center gap-[40px]","max-md:gap-4"]},{default:()=>[e(u,{class:"text-[var(--FF9513)]",size:16},{default:()=>[a.total.word+a.total.sent]}),e(K,{class:o({hidden:!v.value}),onlyIcon:!0,size:18,text:"",loading:v.value},null),e(I,{size:18,class:o("text-[var(--AFBCDA)]",{hidden:v.value}),name:"ep:arrow-right-bold"},null)]})]),e("div",{class:o(l.line,{hidden:!O.value})},null),e("div",{class:o("p-[24px_20px] box-border flex items-center ripple",l.list,{hidden:!O.value}),onClick:le},[e(c,{class:"flex-1 gap-[20px]  items-center"},{default:()=>[e("img",{class:["block w-[50px] ld_img_base","max-md:w-8"],src:`${r}/video.png`,alt:""},null),e(u,{class:l.title},k(m=n("review._5_min_quiz_video_based"))?m:{default:()=>[m]})]}),e(c,{class:["w-max items-center gap-[40px]","max-md:gap-4"]},{default:()=>[e(u,{class:"text-[var(--FF9513)]",size:16},{default:()=>[a.total.word+a.total.sent]}),e(K,{class:o({hidden:!v.value}),onlyIcon:!0,size:18,text:"",loading:v.value},null),e(I,{size:18,class:o("text-[var(--AFBCDA)]",{hidden:v.value}),name:"ep:arrow-right-bold"},null)]})])]),e("div",{class:l.bg},[re.value.map((p,x,R)=>e(ye,null,[e("div",{class:o("p-[24px_20px] box-border flex items-center ripple",l.list,{hidden:!p.show}),onClick:()=>oe(p)},[e(c,{class:"flex-1 gap-[20px]  items-center"},{default:()=>[e("img",{class:["block w-[50px] ld_img_base","max-md:w-8"],src:p.icon,alt:""},null),e(u,{class:l.title},{default:()=>[p.title]})]}),e(c,{class:["w-max items-center gap-[40px]","max-md:gap-4"]},{default:()=>[e(u,{class:"text-[var(--FF9513)]",size:16},{default:()=>[p.count]}),e(K,{class:o({hidden:!v.value}),size:18,text:"",onlyIcon:!0,loading:v.value},null),e(I,{class:o("text-[var(--AFBCDA)]",{hidden:v.value}),size:18,name:"ep:arrow-right-bold"},null)]})]),p.show&&x!==R.length-1&&R[x+1].show&&e("div",{class:l.line},null)]))]),e("div",{class:o("p-[24px_20px] box-border  items-center flex ripple min-h-fit",l.list,"max-md:flex",{hidden:!q.value}),onClick:U},[e(c,{class:"flex-1 gap-[20px]  items-center"},{default:()=>[e("img",{class:["block w-[50px] ld_img_base","max-md:w-8"],src:`${r}/card.png`,alt:""},null),e(u,{class:l.title},k(w=n("review.knowledge_cards"))?w:{default:()=>[w]})]}),e(c,{class:["w-max items-center gap-[40px]","max-md:gap-4"]},{default:()=>[e(u,{class:"text-[var(--FF9513)]",size:16},{default:()=>[a.total.knowledgesCard]}),e(K,{class:o({hidden:!E.value}),onlyIcon:!0,size:18,text:"",loading:E.value},null),e(I,{class:o("text-[var(--AFBCDA)]",{hidden:E.value}),size:18,name:"ep:arrow-right-bold"},null)]})])]}),e(c,{class:"w-max max-md:hidden h-max"},{default:()=>[e(c,{class:o(l.card,"hidden",{hidden:!q.value}),onClick:U},{default:()=>[e(u,{class:l.title},k(h=n("review.knowledge_cards"))?h:{default:()=>[h]}),e("img",{class:"max-w-[80px] block border-none ld_img_base",src:`${r}/card.png`,alt:""},null),e(u,{size:16,class:"text-[#999]"},{default:()=>[a.total.knowledgesCard,he("/"),0]})]}),e(Ke,null,null)]})]})]})])}}});
1export{yt 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.